dolphin-components 2.2.26 → 2.2.27

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.
@@ -243,4 +243,4 @@ EOD`}return{to_workbook:i,to_sheet:t,from_sheet:s}})(),qP=(function(){function a
243
243
  `,fR=(a,e)=>{if(!e.icon&&!e.iconHtml)return;let t=a.innerHTML,i="";e.iconHtml?i=pR(e.iconHtml):e.icon==="success"?(i=Kie(e),t=t.replace(/ style=".*?"/g,"")):e.icon==="error"?i=Zie:e.icon&&(i=pR({question:"?",warning:"!",info:"i"}[e.icon])),t.trim()!==i.trim()&&Va(a,i)},$ie=(a,e)=>{if(e.iconColor){a.style.color=e.iconColor,a.style.borderColor=e.iconColor;for(const t of[".swal2-success-line-tip",".swal2-success-line-long",".swal2-x-mark-line-left",".swal2-x-mark-line-right"])dR(a,t,"background-color",e.iconColor);dR(a,".swal2-success-ring","border-color",e.iconColor)}},pR=a=>`<div class="${te["icon-content"]}">${a}</div>`,ere=(a,e)=>{const t=Qz();if(t){if(!e.imageUrl){fa(t);return}Jt(t,""),t.setAttribute("src",e.imageUrl),t.setAttribute("alt",e.imageAlt||""),Al(t,"width",e.imageWidth),Al(t,"height",e.imageHeight),t.className=te.image,za(t,e,"image")}};let xD=!1,tO=0,aO=0,iO=0,rO=0;const tre=a=>{a.addEventListener("mousedown",cS),document.body.addEventListener("mousemove",hS),a.addEventListener("mouseup",dS),a.addEventListener("touchstart",cS),document.body.addEventListener("touchmove",hS),a.addEventListener("touchend",dS)},are=a=>{a.removeEventListener("mousedown",cS),document.body.removeEventListener("mousemove",hS),a.removeEventListener("mouseup",dS),a.removeEventListener("touchstart",cS),document.body.removeEventListener("touchmove",hS),a.removeEventListener("touchend",dS)},cS=a=>{const e=st();if(a.target===e||E1().contains(a.target)){xD=!0;const t=nO(a);tO=t.clientX,aO=t.clientY,iO=parseInt(e.style.insetInlineStart)||0,rO=parseInt(e.style.insetBlockStart)||0,ht(e,"swal2-dragging")}},hS=a=>{const e=st();if(xD){let{clientX:t,clientY:i}=nO(a);const r=t-tO;e.style.insetInlineStart=`${iO+(He.isRTL?-r:r)}px`,e.style.insetBlockStart=`${rO+(i-aO)}px`}},dS=()=>{const a=st();xD=!1,Ya(a,"swal2-dragging")},nO=a=>{let e=0,t=0;return a.type.startsWith("mouse")?(e=a.clientX,t=a.clientY):a.type.startsWith("touch")&&(e=a.touches[0].clientX,t=a.touches[0].clientY),{clientX:e,clientY:t}},ire=(a,e)=>{const t=ba(),i=st();if(!(!t||!i)){if(e.toast){Al(t,"width",e.width),i.style.width="100%";const r=T1();r&&i.insertBefore(r,E1())}else Al(i,"width",e.width);Al(i,"padding",e.padding),e.color&&(i.style.color=e.color),e.background&&(i.style.background=e.background),fa(jS()),rre(i,e),e.draggable&&!e.toast?(ht(i,te.draggable),tre(i)):(Ya(i,te.draggable),are(i))}},rre=(a,e)=>{const t=e.showClass||{};a.className=`${te.popup} ${Ta(a)?t.popup:""}`,e.toast?(ht([document.documentElement,document.body],te["toast-shown"]),ht(a,te.toast)):ht(a,te.modal),za(a,e,"popup"),typeof e.customClass=="string"&&ht(a,e.customClass),e.icon&&ht(a,te[`icon-${e.icon}`])},nre=(a,e)=>{const t=fD();if(!t)return;const{progressSteps:i,currentProgressStep:r}=e;if(!i||i.length===0||r===void 0){fa(t);return}Jt(t),t.textContent="",r>=i.length&&wa("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),i.forEach((n,s)=>{const o=sre(n);if(t.appendChild(o),s===r&&ht(o,te["active-progress-step"]),s!==i.length-1){const l=ore(e);t.appendChild(l)}})},sre=a=>{const e=document.createElement("li");return ht(e,te["progress-step"]),Va(e,a),e},ore=a=>{const e=document.createElement("li");return ht(e,te["progress-step-line"]),a.progressStepsDistance&&Al(e,"width",a.progressStepsDistance),e},lre=(a,e)=>{const t=Yz();t&&(gD(t),O0(t,!!(e.title||e.titleText),"block"),e.title&&vD(e.title,t),e.titleText&&(t.innerText=e.titleText),za(t,e,"title"))},sO=(a,e)=>{ire(a,e),Vie(a,e),nre(a,e),Jie(a,e),ere(a,e),lre(a,e),Oie(a,e),Qie(a,e),Pie(a,e),Xie(a,e);const t=st();typeof e.didRender=="function"&&t&&e.didRender(t),He.eventEmitter.emit("didRender",t)},cre=()=>Ta(st()),oO=()=>{var a;return(a=Ci())===null||a===void 0?void 0:a.click()},hre=()=>{var a;return(a=Jl())===null||a===void 0?void 0:a.click()},dre=()=>{var a;return(a=L1())===null||a===void 0?void 0:a.click()},S1=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),lO=a=>{a.keydownTarget&&a.keydownHandlerAdded&&(a.keydownTarget.removeEventListener("keydown",a.keydownHandler,{capture:a.keydownListenerCapture}),a.keydownHandlerAdded=!1)},ure=(a,e,t)=>{lO(a),e.toast||(a.keydownHandler=i=>pre(e,i,t),a.keydownTarget=e.keydownListenerCapture?window:st(),a.keydownListenerCapture=e.keydownListenerCapture,a.keydownTarget.addEventListener("keydown",a.keydownHandler,{capture:a.keydownListenerCapture}),a.keydownHandlerAdded=!0)},JI=(a,e)=>{var t;const i=mD();if(i.length){a=a+e,a===-2&&(a=i.length-1),a===i.length?a=0:a===-1&&(a=i.length-1),i[a].focus();return}(t=st())===null||t===void 0||t.focus()},cO=["ArrowRight","ArrowDown"],fre=["ArrowLeft","ArrowUp"],pre=(a,e,t)=>{a&&(e.isComposing||e.keyCode===229||(a.stopKeydownPropagation&&e.stopPropagation(),e.key==="Enter"?mre(e,a):e.key==="Tab"?yre(e):[...cO,...fre].includes(e.key)?gre(e.key):e.key==="Escape"&&kre(e,a,t)))},mre=(a,e)=>{if(!qS(e.allowEnterKey))return;const t=GS(st(),e.input);if(a.target&&t&&a.target instanceof HTMLElement&&a.target.outerHTML===t.outerHTML){if(["textarea","file"].includes(e.input))return;oO(),a.preventDefault()}},yre=a=>{const e=a.target,t=mD();let i=-1;for(let r=0;r<t.length;r++)if(e===t[r]){i=r;break}a.shiftKey?JI(i,-1):JI(i,1),a.stopPropagation(),a.preventDefault()},gre=a=>{const e=z0(),t=Ci(),i=Jl(),r=L1();if(!e||!t||!i||!r)return;const n=[t,i,r];if(document.activeElement instanceof HTMLElement&&!n.includes(document.activeElement))return;const s=cO.includes(a)?"nextElementSibling":"previousElementSibling";let o=document.activeElement;if(o){for(let l=0;l<e.children.length;l++){if(o=o[s],!o)return;if(o instanceof HTMLButtonElement&&Ta(o))break}o instanceof HTMLButtonElement&&o.focus()}},kre=(a,e,t)=>{a.preventDefault(),qS(e.allowEscapeKey)&&t(S1.esc)};var k1={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap};const vre=()=>{const a=ba();Array.from(document.body.children).forEach(t=>{t.contains(a)||(t.hasAttribute("aria-hidden")&&t.setAttribute("data-previous-aria-hidden",t.getAttribute("aria-hidden")||""),t.setAttribute("aria-hidden","true"))})},hO=()=>{Array.from(document.body.children).forEach(e=>{e.hasAttribute("data-previous-aria-hidden")?(e.setAttribute("aria-hidden",e.getAttribute("data-previous-aria-hidden")||""),e.removeAttribute("data-previous-aria-hidden")):e.removeAttribute("aria-hidden")})},dO=typeof window<"u"&&!!window.GestureEvent,wre=()=>{if(dO&&!Oi(document.body,te.iosfix)){const a=document.body.scrollTop;document.body.style.top=`${a*-1}px`,ht(document.body,te.iosfix),xre()}},xre=()=>{const a=ba();if(!a)return;let e;a.ontouchstart=t=>{e=bre(t)},a.ontouchmove=t=>{e&&(t.preventDefault(),t.stopPropagation())}},bre=a=>{const e=a.target,t=ba(),i=uD();return!t||!i||Mre(a)||Cre(a)?!1:e===t||!XI(t)&&e instanceof HTMLElement&&!bie(e,i)&&e.tagName!=="INPUT"&&e.tagName!=="TEXTAREA"&&!(XI(i)&&i.contains(e))},Mre=a=>a.touches&&a.touches.length&&a.touches[0].touchType==="stylus",Cre=a=>a.touches&&a.touches.length>1,Ere=()=>{if(Oi(document.body,te.iosfix)){const a=parseInt(document.body.style.top,10);Ya(document.body,te.iosfix),document.body.style.top="",document.body.scrollTop=a*-1}},Lre=()=>{const a=document.createElement("div");a.className=te["scrollbar-measure"],document.body.appendChild(a);const e=a.getBoundingClientRect().width-a.clientWidth;return document.body.removeChild(a),e};let d1=null;const Tre=a=>{d1===null&&(document.body.scrollHeight>window.innerHeight||a==="scroll")&&(d1=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight=`${d1+Lre()}px`)},Sre=()=>{d1!==null&&(document.body.style.paddingRight=`${d1}px`,d1=null)};function uO(a,e,t,i){US()?mR(a,i):(uie(t).then(()=>mR(a,i)),lO(He)),dO?(e.setAttribute("style","display:none !important"),e.removeAttribute("class"),e.innerHTML=""):e.remove(),yD()&&(Sre(),Ere(),hO()),Ire()}function Ire(){Ya([document.documentElement,document.body],[te.shown,te["height-auto"],te["no-backdrop"],te["toast-shown"]])}function Xi(a){a=Dre(a);const e=k1.swalPromiseResolve.get(this),t=Fre(this);this.isAwaitingPromise?a.isDismissed||(B0(this),e(a)):t&&e(a)}const Fre=a=>{const e=st();if(!e)return!1;const t=kt.innerParams.get(a);if(!t||Oi(e,t.hideClass.popup))return!1;Ya(e,t.showClass.popup),ht(e,t.hideClass.popup);const i=ba();return Ya(i,t.showClass.backdrop),ht(i,t.hideClass.backdrop),Are(a,e,t),!0};function fO(a){const e=k1.swalPromiseReject.get(this);B0(this),e&&e(a)}const B0=a=>{a.isAwaitingPromise&&(delete a.isAwaitingPromise,kt.innerParams.get(a)||a._destroy())},Dre=a=>typeof a>"u"?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},a),Are=(a,e,t)=>{var i;const r=ba(),n=Zz(e);typeof t.willClose=="function"&&t.willClose(e),(i=He.eventEmitter)===null||i===void 0||i.emit("willClose",e),n?Rre(a,e,r,t.returnFocus,t.didClose):uO(a,r,t.returnFocus,t.didClose)},Rre=(a,e,t,i,r)=>{He.swalCloseEventFinishedCallback=uO.bind(null,a,t,i,r);const n=function(s){if(s.target===e){var o;(o=He.swalCloseEventFinishedCallback)===null||o===void 0||o.call(He),delete He.swalCloseEventFinishedCallback,e.removeEventListener("animationend",n),e.removeEventListener("transitionend",n)}};e.addEventListener("animationend",n),e.addEventListener("transitionend",n)},mR=(a,e)=>{setTimeout(()=>{var t;typeof e=="function"&&e.bind(a.params)(),(t=He.eventEmitter)===null||t===void 0||t.emit("didClose"),a._destroy&&a._destroy()})},v1=a=>{let e=st();if(e||new El,e=st(),!e)return;const t=T1();US()?fa(E1()):Pre(e,a),Jt(t),e.setAttribute("data-loading","true"),e.setAttribute("aria-busy","true"),e.focus()},Pre=(a,e)=>{const t=z0(),i=T1();!t||!i||(!e&&Ta(Ci())&&(e=Ci()),Jt(t),e&&(fa(e),i.setAttribute("data-button-to-replace",e.className),t.insertBefore(i,e)),ht([a,t],te.loading))},Hre=(a,e)=>{e.input==="select"||e.input==="radio"?Nre(a,e):["text","email","number","tel","textarea"].some(t=>t===e.input)&&(hD(e.inputValue)||dD(e.inputValue))&&(v1(Ci()),qre(a,e))},zre=(a,e)=>{const t=a.getInput();if(!t)return null;switch(e.input){case"checkbox":return Ore(t);case"radio":return Vre(t);case"file":return Bre(t);default:return e.inputAutoTrim?t.value.trim():t.value}},Ore=a=>a.checked?1:0,Vre=a=>a.checked?a.value:null,Bre=a=>a.files&&a.files.length?a.getAttribute("multiple")!==null?a.files:a.files[0]:null,Nre=(a,e)=>{const t=st();if(!t)return;const i=r=>{e.input==="select"?jre(t,uS(r),e):e.input==="radio"&&_re(t,uS(r),e)};hD(e.inputOptions)||dD(e.inputOptions)?(v1(Ci()),P0(e.inputOptions).then(r=>{a.hideLoading(),i(r)})):typeof e.inputOptions=="object"?i(e.inputOptions):Xl(`Unexpected type of inputOptions! Expected object, Map or Promise, got ${typeof e.inputOptions}`)},qre=(a,e)=>{const t=a.getInput();t&&(fa(t),P0(e.inputValue).then(i=>{t.value=e.input==="number"?`${parseFloat(i)||0}`:`${i}`,Jt(t),t.focus(),a.hideLoading()}).catch(i=>{Xl(`Error in inputValue promise: ${i}`),t.value="",Jt(t),t.focus(),a.hideLoading()}))};function jre(a,e,t){const i=Qi(a,te.select);if(!i)return;const r=(n,s,o)=>{const l=document.createElement("option");l.value=o,Va(l,s),l.selected=pO(o,t.inputValue),n.appendChild(l)};e.forEach(n=>{const s=n[0],o=n[1];if(Array.isArray(o)){const l=document.createElement("optgroup");l.label=s,l.disabled=!1,i.appendChild(l),o.forEach(h=>r(l,h[1],h[0]))}else r(i,o,s)}),i.focus()}function _re(a,e,t){const i=Qi(a,te.radio);if(!i)return;e.forEach(n=>{const s=n[0],o=n[1],l=document.createElement("input"),h=document.createElement("label");l.type="radio",l.name=te.radio,l.value=s,pO(s,t.inputValue)&&(l.checked=!0);const d=document.createElement("span");Va(d,o),d.className=te.label,h.appendChild(l),h.appendChild(d),i.appendChild(h)});const r=i.querySelectorAll("input");r.length&&r[0].focus()}const uS=a=>{const e=[];return a instanceof Map?a.forEach((t,i)=>{let r=t;typeof r=="object"&&(r=uS(r)),e.push([i,r])}):Object.keys(a).forEach(t=>{let i=a[t];typeof i=="object"&&(i=uS(i)),e.push([t,i])}),e},pO=(a,e)=>!!e&&e.toString()===a.toString(),Ure=a=>{const e=kt.innerParams.get(a);a.disableButtons(),e.input?mO(a,"confirm"):MD(a,!0)},Gre=a=>{const e=kt.innerParams.get(a);a.disableButtons(),e.returnInputValueOnDeny?mO(a,"deny"):bD(a,!1)},Wre=(a,e)=>{a.disableButtons(),e(S1.cancel)},mO=(a,e)=>{const t=kt.innerParams.get(a);if(!t.input){Xl(`The "input" parameter is needed to be set when using returnInputValueOn${cD(e)}`);return}const i=a.getInput(),r=zre(a,t);t.inputValidator?Yre(a,r,e):i&&!i.checkValidity()?(a.enableButtons(),a.showValidationMessage(t.validationMessage||i.validationMessage)):e==="deny"?bD(a,r):MD(a,r)},Yre=(a,e,t)=>{const i=kt.innerParams.get(a);a.disableInput(),Promise.resolve().then(()=>P0(i.inputValidator(e,i.validationMessage))).then(n=>{a.enableButtons(),a.enableInput(),n?a.showValidationMessage(n):t==="deny"?bD(a,e):MD(a,e)})},bD=(a,e)=>{const t=kt.innerParams.get(a||void 0);t.showLoaderOnDeny&&v1(Jl()),t.preDeny?(a.isAwaitingPromise=!0,Promise.resolve().then(()=>P0(t.preDeny(e,t.validationMessage))).then(r=>{r===!1?(a.hideLoading(),B0(a)):a.close({isDenied:!0,value:typeof r>"u"?e:r})}).catch(r=>yO(a||void 0,r))):a.close({isDenied:!0,value:e})},yR=(a,e)=>{a.close({isConfirmed:!0,value:e})},yO=(a,e)=>{a.rejectPromise(e)},MD=(a,e)=>{const t=kt.innerParams.get(a||void 0);t.showLoaderOnConfirm&&v1(),t.preConfirm?(a.resetValidationMessage(),a.isAwaitingPromise=!0,Promise.resolve().then(()=>P0(t.preConfirm(e,t.validationMessage))).then(r=>{Ta(jS())||r===!1?(a.hideLoading(),B0(a)):yR(a,typeof r>"u"?e:r)}).catch(r=>yO(a||void 0,r))):yR(a,e)};function fS(){const a=kt.innerParams.get(this);if(!a)return;const e=kt.domCache.get(this);fa(e.loader),US()?a.icon&&Jt(E1()):Qre(e),Ya([e.popup,e.actions],te.loading),e.popup.removeAttribute("aria-busy"),e.popup.removeAttribute("data-loading"),e.confirmButton.disabled=!1,e.denyButton.disabled=!1,e.cancelButton.disabled=!1}const Qre=a=>{const e=a.popup.getElementsByClassName(a.loader.getAttribute("data-button-to-replace"));e.length?Jt(e[0],"inline-block"):xie()&&fa(a.actions)};function gO(){const a=kt.innerParams.get(this),e=kt.domCache.get(this);return e?GS(e.popup,a.input):null}function kO(a,e,t){const i=kt.domCache.get(a);e.forEach(r=>{i[r].disabled=t})}function vO(a,e){const t=st();if(!(!t||!a))if(a.type==="radio"){const i=t.querySelectorAll(`[name="${te.radio}"]`);for(let r=0;r<i.length;r++)i[r].disabled=e}else a.disabled=e}function wO(){kO(this,["confirmButton","denyButton","cancelButton"],!1)}function xO(){kO(this,["confirmButton","denyButton","cancelButton"],!0)}function bO(){vO(this.getInput(),!1)}function MO(){vO(this.getInput(),!0)}function CO(a){const e=kt.domCache.get(this),t=kt.innerParams.get(this);Va(e.validationMessage,a),e.validationMessage.className=te["validation-message"],t.customClass&&t.customClass.validationMessage&&ht(e.validationMessage,t.customClass.validationMessage),Jt(e.validationMessage);const i=this.getInput();i&&(i.setAttribute("aria-invalid","true"),i.setAttribute("aria-describedby",te["validation-message"]),Jz(i),ht(i,te.inputerror))}function EO(){const a=kt.domCache.get(this);a.validationMessage&&fa(a.validationMessage);const e=this.getInput();e&&(e.removeAttribute("aria-invalid"),e.removeAttribute("aria-describedby"),Ya(e,te.inputerror))}const u1={title:"",titleText:"",text:"",html:"",footer:"",icon:void 0,iconColor:void 0,iconHtml:void 0,template:void 0,toast:!1,draggable:!1,animation:!0,theme:"light",showClass:{popup:"swal2-show",backdrop:"swal2-backdrop-show",icon:"swal2-icon-show"},hideClass:{popup:"swal2-hide",backdrop:"swal2-backdrop-hide",icon:"swal2-icon-hide"},customClass:{},target:"body",color:void 0,backdrop:!0,heightAuto:!0,allowOutsideClick:!0,allowEscapeKey:!0,allowEnterKey:!0,stopKeydownPropagation:!0,keydownListenerCapture:!1,showConfirmButton:!0,showDenyButton:!1,showCancelButton:!1,preConfirm:void 0,preDeny:void 0,confirmButtonText:"OK",confirmButtonAriaLabel:"",confirmButtonColor:void 0,denyButtonText:"No",denyButtonAriaLabel:"",denyButtonColor:void 0,cancelButtonText:"Cancel",cancelButtonAriaLabel:"",cancelButtonColor:void 0,buttonsStyling:!0,reverseButtons:!1,focusConfirm:!0,focusDeny:!1,focusCancel:!1,returnFocus:!0,showCloseButton:!1,closeButtonHtml:"&times;",closeButtonAriaLabel:"Close this dialog",loaderHtml:"",showLoaderOnConfirm:!1,showLoaderOnDeny:!1,imageUrl:void 0,imageWidth:void 0,imageHeight:void 0,imageAlt:"",timer:void 0,timerProgressBar:!1,width:void 0,padding:void 0,background:void 0,input:void 0,inputPlaceholder:"",inputLabel:"",inputValue:"",inputOptions:{},inputAutoFocus:!0,inputAutoTrim:!0,inputAttributes:{},inputValidator:void 0,returnInputValueOnDeny:!1,validationMessage:void 0,grow:!1,position:"center",progressSteps:[],currentProgressStep:void 0,progressStepsDistance:void 0,willOpen:void 0,didOpen:void 0,didRender:void 0,willClose:void 0,didClose:void 0,didDestroy:void 0,scrollbarPadding:!0,topLayer:!1},Xre=["allowEscapeKey","allowOutsideClick","background","buttonsStyling","cancelButtonAriaLabel","cancelButtonColor","cancelButtonText","closeButtonAriaLabel","closeButtonHtml","color","confirmButtonAriaLabel","confirmButtonColor","confirmButtonText","currentProgressStep","customClass","denyButtonAriaLabel","denyButtonColor","denyButtonText","didClose","didDestroy","draggable","footer","hideClass","html","icon","iconColor","iconHtml","imageAlt","imageHeight","imageUrl","imageWidth","preConfirm","preDeny","progressSteps","returnFocus","reverseButtons","showCancelButton","showCloseButton","showConfirmButton","showDenyButton","text","title","titleText","theme","willClose"],Jre={allowEnterKey:void 0},Kre=["allowOutsideClick","allowEnterKey","backdrop","draggable","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],LO=a=>Object.prototype.hasOwnProperty.call(u1,a),TO=a=>Xre.indexOf(a)!==-1,SO=a=>Jre[a],Zre=a=>{LO(a)||wa(`Unknown parameter "${a}"`)},$re=a=>{Kre.includes(a)&&wa(`The parameter "${a}" is incompatible with toasts`)},ene=a=>{const e=SO(a);e&&Wz(a,e)},IO=a=>{a.backdrop===!1&&a.allowOutsideClick&&wa('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`'),a.theme&&!["light","dark","auto","minimal","borderless","bootstrap-4","bootstrap-4-light","bootstrap-4-dark","bootstrap-5","bootstrap-5-light","bootstrap-5-dark","material-ui","material-ui-light","material-ui-dark","embed-iframe","bulma","bulma-light","bulma-dark"].includes(a.theme)&&wa(`Invalid theme "${a.theme}"`);for(const e in a)Zre(e),a.toast&&$re(e),ene(e)};function FO(a){const e=ba(),t=st(),i=kt.innerParams.get(this);if(!t||Oi(t,i.hideClass.popup)){wa("You're trying to update the closed or closing popup, that won't work. Use the update() method in preConfirm parameter or show a new popup.");return}const r=tne(a),n=Object.assign({},i,r);IO(n),e.dataset.swal2Theme=n.theme,sO(this,n),kt.innerParams.set(this,n),Object.defineProperties(this,{params:{value:Object.assign({},this.params,a),writable:!1,enumerable:!0}})}const tne=a=>{const e={};return Object.keys(a).forEach(t=>{TO(t)?e[t]=a[t]:wa(`Invalid parameter to update: ${t}`)}),e};function DO(){const a=kt.domCache.get(this),e=kt.innerParams.get(this);if(!e){AO(this);return}a.popup&&He.swalCloseEventFinishedCallback&&(He.swalCloseEventFinishedCallback(),delete He.swalCloseEventFinishedCallback),typeof e.didDestroy=="function"&&e.didDestroy(),He.eventEmitter.emit("didDestroy"),ane(this)}const ane=a=>{AO(a),delete a.params,delete He.keydownHandler,delete He.keydownTarget,delete He.currentInstance},AO=a=>{a.isAwaitingPromise?(bI(kt,a),a.isAwaitingPromise=!0):(bI(k1,a),bI(kt,a),delete a.isAwaitingPromise,delete a.disableButtons,delete a.enableButtons,delete a.getInput,delete a.disableInput,delete a.enableInput,delete a.hideLoading,delete a.disableLoading,delete a.showValidationMessage,delete a.resetValidationMessage,delete a.close,delete a.closePopup,delete a.closeModal,delete a.closeToast,delete a.rejectPromise,delete a.update,delete a._destroy)},bI=(a,e)=>{for(const t in a)a[t].delete(e)};var ine=Object.freeze({__proto__:null,_destroy:DO,close:Xi,closeModal:Xi,closePopup:Xi,closeToast:Xi,disableButtons:xO,disableInput:MO,disableLoading:fS,enableButtons:wO,enableInput:bO,getInput:gO,handleAwaitingPromise:B0,hideLoading:fS,rejectPromise:fO,resetValidationMessage:EO,showValidationMessage:CO,update:FO});const rne=(a,e,t)=>{a.toast?nne(a,e,t):(one(e),lne(e),cne(a,e,t))},nne=(a,e,t)=>{e.popup.onclick=()=>{a&&(sne(a)||a.timer||a.input)||t(S1.close)}},sne=a=>!!(a.showConfirmButton||a.showDenyButton||a.showCancelButton||a.showCloseButton);let pS=!1;const one=a=>{a.popup.onmousedown=()=>{a.container.onmouseup=function(e){a.container.onmouseup=()=>{},e.target===a.container&&(pS=!0)}}},lne=a=>{a.container.onmousedown=e=>{e.target===a.container&&e.preventDefault(),a.popup.onmouseup=function(t){a.popup.onmouseup=()=>{},(t.target===a.popup||t.target instanceof HTMLElement&&a.popup.contains(t.target))&&(pS=!0)}}},cne=(a,e,t)=>{e.container.onclick=i=>{if(pS){pS=!1;return}i.target===e.container&&qS(a.allowOutsideClick)&&t(S1.backdrop)}},hne=a=>typeof a=="object"&&a.jquery,gR=a=>a instanceof Element||hne(a),dne=a=>{const e={};return typeof a[0]=="object"&&!gR(a[0])?Object.assign(e,a[0]):["title","html","icon"].forEach((t,i)=>{const r=a[i];typeof r=="string"||gR(r)?e[t]=r:r!==void 0&&Xl(`Unexpected type of ${t}! Expected "string" or "Element", got ${typeof r}`)}),e};function une(...a){return new this(...a)}function fne(a){class e extends this{_main(i,r){return super._main(i,Object.assign({},a,r))}}return e}const pne=()=>He.timeout&&He.timeout.getTimerLeft(),RO=()=>{if(He.timeout)return Mie(),He.timeout.stop()},PO=()=>{if(He.timeout){const a=He.timeout.start();return kD(a),a}},mne=()=>{const a=He.timeout;return a&&(a.running?RO():PO())},yne=a=>{if(He.timeout){const e=He.timeout.increase(a);return kD(e,!0),e}},gne=()=>!!(He.timeout&&He.timeout.isRunning());let kR=!1;const KI={};function kne(a="data-swal-template"){KI[a]=this,kR||(document.body.addEventListener("click",vne),kR=!0)}const vne=a=>{for(let e=a.target;e&&e!==document;e=e.parentNode)for(const t in KI){const i=e.getAttribute(t);if(i){KI[t].fire({template:i});return}}};class wne{constructor(){this.events={}}_getHandlersByEventName(e){return typeof this.events[e]>"u"&&(this.events[e]=[]),this.events[e]}on(e,t){const i=this._getHandlersByEventName(e);i.includes(t)||i.push(t)}once(e,t){const i=(...r)=>{this.removeListener(e,i),t.apply(this,r)};this.on(e,i)}emit(e,...t){this._getHandlersByEventName(e).forEach(i=>{try{i.apply(this,t)}catch(r){console.error(r)}})}removeListener(e,t){const i=this._getHandlersByEventName(e),r=i.indexOf(t);r>-1&&i.splice(r,1)}removeAllListeners(e){this.events[e]!==void 0&&(this.events[e].length=0)}reset(){this.events={}}}He.eventEmitter=new wne;const xne=(a,e)=>{He.eventEmitter.on(a,e)},bne=(a,e)=>{He.eventEmitter.once(a,e)},Mne=(a,e)=>{if(!a){He.eventEmitter.reset();return}e?He.eventEmitter.removeListener(a,e):He.eventEmitter.removeAllListeners(a)};var Cne=Object.freeze({__proto__:null,argsToParams:dne,bindClickHandler:kne,clickCancel:dre,clickConfirm:oO,clickDeny:hre,enableLoading:v1,fire:une,getActions:z0,getCancelButton:L1,getCloseButton:pD,getConfirmButton:Ci,getContainer:ba,getDenyButton:Jl,getFocusableElements:mD,getFooter:Xz,getHtmlContainer:uD,getIcon:E1,getIconContent:yie,getImage:Qz,getInputLabel:gie,getLoader:T1,getPopup:st,getProgressSteps:fD,getTimerLeft:pne,getTimerProgressBar:_S,getTitle:Yz,getValidationMessage:jS,increaseTimer:yne,isDeprecatedParameter:SO,isLoading:vie,isTimerRunning:gne,isUpdatableParameter:TO,isValidParameter:LO,isVisible:cre,mixin:fne,off:Mne,on:xne,once:bne,resumeTimer:PO,showLoading:v1,stopTimer:RO,toggleTimer:mne});class Ene{constructor(e,t){this.callback=e,this.remaining=t,this.running=!1,this.start()}start(){return this.running||(this.running=!0,this.started=new Date,this.id=setTimeout(this.callback,this.remaining)),this.remaining}stop(){return this.started&&this.running&&(this.running=!1,clearTimeout(this.id),this.remaining-=new Date().getTime()-this.started.getTime()),this.remaining}increase(e){const t=this.running;return t&&this.stop(),this.remaining+=e,t&&this.start(),this.remaining}getTimerLeft(){return this.running&&(this.stop(),this.start()),this.remaining}isRunning(){return this.running}}const HO=["swal-title","swal-html","swal-footer"],Lne=a=>{const e=typeof a.template=="string"?document.querySelector(a.template):a.template;if(!e)return{};const t=e.content;return Pne(t),Object.assign(Tne(t),Sne(t),Ine(t),Fne(t),Dne(t),Ane(t),Rne(t,HO))},Tne=a=>{const e={};return Array.from(a.querySelectorAll("swal-param")).forEach(i=>{ql(i,["name","value"]);const r=i.getAttribute("name"),n=i.getAttribute("value");!r||!n||(typeof u1[r]=="boolean"?e[r]=n!=="false":typeof u1[r]=="object"?e[r]=JSON.parse(n):e[r]=n)}),e},Sne=a=>{const e={};return Array.from(a.querySelectorAll("swal-function-param")).forEach(i=>{const r=i.getAttribute("name"),n=i.getAttribute("value");!r||!n||(e[r]=new Function(`return ${n}`)())}),e},Ine=a=>{const e={};return Array.from(a.querySelectorAll("swal-button")).forEach(i=>{ql(i,["type","color","aria-label"]);const r=i.getAttribute("type");!r||!["confirm","cancel","deny"].includes(r)||(e[`${r}ButtonText`]=i.innerHTML,e[`show${cD(r)}Button`]=!0,i.hasAttribute("color")&&(e[`${r}ButtonColor`]=i.getAttribute("color")),i.hasAttribute("aria-label")&&(e[`${r}ButtonAriaLabel`]=i.getAttribute("aria-label")))}),e},Fne=a=>{const e={},t=a.querySelector("swal-image");return t&&(ql(t,["src","width","height","alt"]),t.hasAttribute("src")&&(e.imageUrl=t.getAttribute("src")||void 0),t.hasAttribute("width")&&(e.imageWidth=t.getAttribute("width")||void 0),t.hasAttribute("height")&&(e.imageHeight=t.getAttribute("height")||void 0),t.hasAttribute("alt")&&(e.imageAlt=t.getAttribute("alt")||void 0)),e},Dne=a=>{const e={},t=a.querySelector("swal-icon");return t&&(ql(t,["type","color"]),t.hasAttribute("type")&&(e.icon=t.getAttribute("type")),t.hasAttribute("color")&&(e.iconColor=t.getAttribute("color")),e.iconHtml=t.innerHTML),e},Ane=a=>{const e={},t=a.querySelector("swal-input");t&&(ql(t,["type","label","placeholder","value"]),e.input=t.getAttribute("type")||"text",t.hasAttribute("label")&&(e.inputLabel=t.getAttribute("label")),t.hasAttribute("placeholder")&&(e.inputPlaceholder=t.getAttribute("placeholder")),t.hasAttribute("value")&&(e.inputValue=t.getAttribute("value")));const i=Array.from(a.querySelectorAll("swal-input-option"));return i.length&&(e.inputOptions={},i.forEach(r=>{ql(r,["value"]);const n=r.getAttribute("value");if(!n)return;const s=r.innerHTML;e.inputOptions[n]=s})),e},Rne=(a,e)=>{const t={};for(const i in e){const r=e[i],n=a.querySelector(r);n&&(ql(n,[]),t[r.replace(/^swal-/,"")]=n.innerHTML.trim())}return t},Pne=a=>{const e=HO.concat(["swal-param","swal-function-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);Array.from(a.children).forEach(t=>{const i=t.tagName.toLowerCase();e.includes(i)||wa(`Unrecognized element <${i}>`)})},ql=(a,e)=>{Array.from(a.attributes).forEach(t=>{e.indexOf(t.name)===-1&&wa([`Unrecognized attribute "${t.name}" on <${a.tagName.toLowerCase()}>.`,`${e.length?`Allowed attributes are: ${e.join(", ")}`:"To set the value, use HTML within the element."}`])})},zO=10,Hne=a=>{const e=ba(),t=st();typeof a.willOpen=="function"&&a.willOpen(t),He.eventEmitter.emit("willOpen",t);const r=window.getComputedStyle(document.body).overflowY;Vne(e,t,a),setTimeout(()=>{zne(e,t)},zO),yD()&&(One(e,a.scrollbarPadding,r),vre()),!US()&&!He.previousActiveElement&&(He.previousActiveElement=document.activeElement),typeof a.didOpen=="function"&&setTimeout(()=>a.didOpen(t)),He.eventEmitter.emit("didOpen",t)},mS=a=>{const e=st();if(a.target!==e)return;const t=ba();e.removeEventListener("animationend",mS),e.removeEventListener("transitionend",mS),t.style.overflowY="auto",Ya(t,te["no-transition"])},zne=(a,e)=>{Zz(e)?(a.style.overflowY="hidden",e.addEventListener("animationend",mS),e.addEventListener("transitionend",mS)):a.style.overflowY="auto"},One=(a,e,t)=>{wre(),e&&t!=="hidden"&&Tre(t),setTimeout(()=>{a.scrollTop=0})},Vne=(a,e,t)=>{ht(a,t.showClass.backdrop),t.animation?(e.style.setProperty("opacity","0","important"),Jt(e,"grid"),setTimeout(()=>{ht(e,t.showClass.popup),e.style.removeProperty("opacity")},zO)):Jt(e,"grid"),ht([document.documentElement,document.body],te.shown),t.heightAuto&&t.backdrop&&!t.toast&&ht([document.documentElement,document.body],te["height-auto"])};var vR={email:(a,e)=>/^[a-zA-Z0-9.+_'-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]+$/.test(a)?Promise.resolve():Promise.resolve(e||"Invalid email address"),url:(a,e)=>/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(a)?Promise.resolve():Promise.resolve(e||"Invalid URL")};function Bne(a){a.inputValidator||(a.input==="email"&&(a.inputValidator=vR.email),a.input==="url"&&(a.inputValidator=vR.url))}function Nne(a){(!a.target||typeof a.target=="string"&&!document.querySelector(a.target)||typeof a.target!="string"&&!a.target.appendChild)&&(wa('Target parameter is not valid, defaulting to "body"'),a.target="body")}function qne(a){Bne(a),a.showLoaderOnConfirm&&!a.preConfirm&&wa(`showLoaderOnConfirm is set to true, but preConfirm is not defined.
244
244
  showLoaderOnConfirm should be used together with preConfirm, see usage example:
245
245
  https://sweetalert2.github.io/#ajax-request`),Nne(a),typeof a.title=="string"&&(a.title=a.title.split(`
246
- `).join("<br />")),Die(a)}let mi;var sc=new WeakMap;class At{constructor(...e){if(lie(this,sc,void 0),typeof window>"u")return;mi=this;const t=Object.freeze(this.constructor.argsToParams(e));this.params=t,this.isAwaitingPromise=!1,cie(sc,this,this._main(mi.params))}_main(e,t={}){if(IO(Object.assign({},t,e)),He.currentInstance){const n=k1.swalPromiseResolve.get(He.currentInstance),{isAwaitingPromise:s}=He.currentInstance;He.currentInstance._destroy(),s||n({isDismissed:!0}),yD()&&hO()}He.currentInstance=mi;const i=_ne(e,t);qne(i),Object.freeze(i),He.timeout&&(He.timeout.stop(),delete He.timeout),clearTimeout(He.restoreFocusTimeout);const r=Une(mi);return sO(mi,i),kt.innerParams.set(mi,i),jne(mi,r,i)}then(e){return cR(sc,this).then(e)}finally(e){return cR(sc,this).finally(e)}}const jne=(a,e,t)=>new Promise((i,r)=>{const n=s=>{a.close({isDismissed:!0,dismiss:s,isConfirmed:!1,isDenied:!1})};k1.swalPromiseResolve.set(a,i),k1.swalPromiseReject.set(a,r),e.confirmButton.onclick=()=>{Ure(a)},e.denyButton.onclick=()=>{Gre(a)},e.cancelButton.onclick=()=>{Wre(a,n)},e.closeButton.onclick=()=>{n(S1.close)},rne(t,e,n),ure(He,t,n),Hre(a,t),Hne(t),Gne(He,t,n),Wne(e,t),setTimeout(()=>{e.container.scrollTop=0})}),_ne=(a,e)=>{const t=Lne(a),i=Object.assign({},u1,e,t,a);return i.showClass=Object.assign({},u1.showClass,i.showClass),i.hideClass=Object.assign({},u1.hideClass,i.hideClass),i.animation===!1&&(i.showClass={backdrop:"swal2-noanimation"},i.hideClass={}),i},Une=a=>{const e={popup:st(),container:ba(),actions:z0(),confirmButton:Ci(),denyButton:Jl(),cancelButton:L1(),loader:T1(),closeButton:pD(),validationMessage:jS(),progressSteps:fD()};return kt.domCache.set(a,e),e},Gne=(a,e,t)=>{const i=_S();fa(i),e.timer&&(a.timeout=new Ene(()=>{t("timer"),delete a.timeout},e.timer),e.timerProgressBar&&(Jt(i),za(i,e,"timerProgressBar"),setTimeout(()=>{a.timeout&&a.timeout.running&&kD(e.timer)})))},Wne=(a,e)=>{if(!e.toast){if(!qS(e.allowEnterKey)){Wz("allowEnterKey"),Xne();return}Yne(a)||Qne(a,e)||JI(-1,1)}},Yne=a=>{const e=Array.from(a.popup.querySelectorAll("[autofocus]"));for(const t of e)if(t instanceof HTMLElement&&Ta(t))return t.focus(),!0;return!1},Qne=(a,e)=>e.focusDeny&&Ta(a.denyButton)?(a.denyButton.focus(),!0):e.focusCancel&&Ta(a.cancelButton)?(a.cancelButton.focus(),!0):e.focusConfirm&&Ta(a.confirmButton)?(a.confirmButton.focus(),!0):!1,Xne=()=>{document.activeElement instanceof HTMLElement&&typeof document.activeElement.blur=="function"&&document.activeElement.blur()};At.prototype.disableButtons=xO;At.prototype.enableButtons=wO;At.prototype.getInput=gO;At.prototype.disableInput=MO;At.prototype.enableInput=bO;At.prototype.hideLoading=fS;At.prototype.disableLoading=fS;At.prototype.showValidationMessage=CO;At.prototype.resetValidationMessage=EO;At.prototype.close=Xi;At.prototype.closePopup=Xi;At.prototype.closeModal=Xi;At.prototype.closeToast=Xi;At.prototype.rejectPromise=fO;At.prototype.update=FO;At.prototype._destroy=DO;Object.assign(At,Cne);Object.keys(ine).forEach(a=>{At[a]=function(...e){return mi&&mi[a]?mi[a](...e):null}});At.DismissReason=S1;At.version="11.26.10";const El=At;El.default=El;typeof document<"u"&&(function(a,e){var t=a.createElement("style");if(a.getElementsByTagName("head")[0].appendChild(t),t.styleSheet)t.styleSheet.disabled||(t.styleSheet.cssText=e);else try{t.innerHTML=e}catch{t.innerText=e}})(document,':root{--swal2-outline: 0 0 0 3px rgba(100, 150, 200, 0.5);--swal2-container-padding: 0.625em;--swal2-backdrop: rgba(0, 0, 0, 0.4);--swal2-backdrop-transition: background-color 0.15s;--swal2-width: 32em;--swal2-padding: 0 0 1.25em;--swal2-border: none;--swal2-border-radius: 0.3125rem;--swal2-background: white;--swal2-color: #545454;--swal2-show-animation: swal2-show 0.3s;--swal2-hide-animation: swal2-hide 0.15s forwards;--swal2-icon-zoom: 1;--swal2-icon-animations: true;--swal2-title-padding: 0.8em 1em 0;--swal2-html-container-padding: 1em 1.6em 0.3em;--swal2-input-border: 1px solid #d9d9d9;--swal2-input-border-radius: 0.1875em;--swal2-input-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.06), 0 0 0 3px transparent;--swal2-input-background: transparent;--swal2-input-transition: border-color 0.2s, box-shadow 0.2s;--swal2-input-hover-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.06), 0 0 0 3px transparent;--swal2-input-focus-border: 1px solid #b4dbed;--swal2-input-focus-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.06), 0 0 0 3px rgba(100, 150, 200, 0.5);--swal2-progress-step-background: #add8e6;--swal2-validation-message-background: #f0f0f0;--swal2-validation-message-color: #666;--swal2-footer-border-color: #eee;--swal2-footer-background: transparent;--swal2-footer-color: inherit;--swal2-timer-progress-bar-background: rgba(0, 0, 0, 0.3);--swal2-close-button-position: initial;--swal2-close-button-inset: auto;--swal2-close-button-font-size: 2.5em;--swal2-close-button-color: #ccc;--swal2-close-button-transition: color 0.2s, box-shadow 0.2s;--swal2-close-button-outline: initial;--swal2-close-button-box-shadow: inset 0 0 0 3px transparent;--swal2-close-button-focus-box-shadow: inset var(--swal2-outline);--swal2-close-button-hover-transform: none;--swal2-actions-justify-content: center;--swal2-actions-width: auto;--swal2-actions-margin: 1.25em auto 0;--swal2-actions-padding: 0;--swal2-actions-border-radius: 0;--swal2-actions-background: transparent;--swal2-action-button-transition: background-color 0.2s, box-shadow 0.2s;--swal2-action-button-hover: black 10%;--swal2-action-button-active: black 10%;--swal2-confirm-button-box-shadow: none;--swal2-confirm-button-border-radius: 0.25em;--swal2-confirm-button-background-color: #7066e0;--swal2-confirm-button-color: #fff;--swal2-deny-button-box-shadow: none;--swal2-deny-button-border-radius: 0.25em;--swal2-deny-button-background-color: #dc3741;--swal2-deny-button-color: #fff;--swal2-cancel-button-box-shadow: none;--swal2-cancel-button-border-radius: 0.25em;--swal2-cancel-button-background-color: #6e7881;--swal2-cancel-button-color: #fff;--swal2-toast-show-animation: swal2-toast-show 0.5s;--swal2-toast-hide-animation: swal2-toast-hide 0.1s forwards;--swal2-toast-border: none;--swal2-toast-box-shadow: 0 0 1px hsl(0deg 0% 0% / 0.075), 0 1px 2px hsl(0deg 0% 0% / 0.075), 1px 2px 4px hsl(0deg 0% 0% / 0.075), 1px 3px 8px hsl(0deg 0% 0% / 0.075), 2px 4px 16px hsl(0deg 0% 0% / 0.075)}[data-swal2-theme=dark]{--swal2-dark-theme-black: #19191a;--swal2-dark-theme-white: #e1e1e1;--swal2-background: var(--swal2-dark-theme-black);--swal2-color: var(--swal2-dark-theme-white);--swal2-footer-border-color: #555;--swal2-input-background: color-mix(in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10%);--swal2-validation-message-background: color-mix( in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10% );--swal2-validation-message-color: var(--swal2-dark-theme-white);--swal2-timer-progress-bar-background: rgba(255, 255, 255, 0.7)}@media(prefers-color-scheme: dark){[data-swal2-theme=auto]{--swal2-dark-theme-black: #19191a;--swal2-dark-theme-white: #e1e1e1;--swal2-background: var(--swal2-dark-theme-black);--swal2-color: var(--swal2-dark-theme-white);--swal2-footer-border-color: #555;--swal2-input-background: color-mix(in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10%);--swal2-validation-message-background: color-mix( in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10% );--swal2-validation-message-color: var(--swal2-dark-theme-white);--swal2-timer-progress-bar-background: rgba(255, 255, 255, 0.7)}}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown){overflow:hidden}body.swal2-height-auto{height:auto !important}body.swal2-no-backdrop .swal2-container{background-color:rgba(0,0,0,0) !important;pointer-events:none}body.swal2-no-backdrop .swal2-container .swal2-popup{pointer-events:all}body.swal2-no-backdrop .swal2-container .swal2-modal{box-shadow:0 0 10px var(--swal2-backdrop)}body.swal2-toast-shown .swal2-container{box-sizing:border-box;width:360px;max-width:100%;background-color:rgba(0,0,0,0);pointer-events:none}body.swal2-toast-shown .swal2-container.swal2-top{inset:0 auto auto 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-top-end,body.swal2-toast-shown .swal2-container.swal2-top-right{inset:0 0 auto auto}body.swal2-toast-shown .swal2-container.swal2-top-start,body.swal2-toast-shown .swal2-container.swal2-top-left{inset:0 auto auto 0}body.swal2-toast-shown .swal2-container.swal2-center-start,body.swal2-toast-shown .swal2-container.swal2-center-left{inset:50% auto auto 0;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-center{inset:50% auto auto 50%;transform:translate(-50%, -50%)}body.swal2-toast-shown .swal2-container.swal2-center-end,body.swal2-toast-shown .swal2-container.swal2-center-right{inset:50% 0 auto auto;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-start,body.swal2-toast-shown .swal2-container.swal2-bottom-left{inset:auto auto 0 0}body.swal2-toast-shown .swal2-container.swal2-bottom{inset:auto auto 0 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-end,body.swal2-toast-shown .swal2-container.swal2-bottom-right{inset:auto 0 0 auto}@media print{body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown){overflow-y:scroll !important}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown)>[aria-hidden=true]{display:none}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown) .swal2-container{position:static !important}}div:where(.swal2-container){display:grid;position:fixed;z-index:1060;inset:0;box-sizing:border-box;grid-template-areas:"top-start top top-end" "center-start center center-end" "bottom-start bottom-center bottom-end";grid-template-rows:minmax(min-content, auto) minmax(min-content, auto) minmax(min-content, auto);height:100%;padding:var(--swal2-container-padding);overflow-x:hidden;transition:var(--swal2-backdrop-transition);-webkit-overflow-scrolling:touch}div:where(.swal2-container).swal2-backdrop-show,div:where(.swal2-container).swal2-noanimation{background:var(--swal2-backdrop)}div:where(.swal2-container).swal2-backdrop-hide{background:rgba(0,0,0,0) !important}div:where(.swal2-container).swal2-top-start,div:where(.swal2-container).swal2-center-start,div:where(.swal2-container).swal2-bottom-start{grid-template-columns:minmax(0, 1fr) auto auto}div:where(.swal2-container).swal2-top,div:where(.swal2-container).swal2-center,div:where(.swal2-container).swal2-bottom{grid-template-columns:auto minmax(0, 1fr) auto}div:where(.swal2-container).swal2-top-end,div:where(.swal2-container).swal2-center-end,div:where(.swal2-container).swal2-bottom-end{grid-template-columns:auto auto minmax(0, 1fr)}div:where(.swal2-container).swal2-top-start>.swal2-popup{align-self:start}div:where(.swal2-container).swal2-top>.swal2-popup{grid-column:2;place-self:start center}div:where(.swal2-container).swal2-top-end>.swal2-popup,div:where(.swal2-container).swal2-top-right>.swal2-popup{grid-column:3;place-self:start end}div:where(.swal2-container).swal2-center-start>.swal2-popup,div:where(.swal2-container).swal2-center-left>.swal2-popup{grid-row:2;align-self:center}div:where(.swal2-container).swal2-center>.swal2-popup{grid-column:2;grid-row:2;place-self:center center}div:where(.swal2-container).swal2-center-end>.swal2-popup,div:where(.swal2-container).swal2-center-right>.swal2-popup{grid-column:3;grid-row:2;place-self:center end}div:where(.swal2-container).swal2-bottom-start>.swal2-popup,div:where(.swal2-container).swal2-bottom-left>.swal2-popup{grid-column:1;grid-row:3;align-self:end}div:where(.swal2-container).swal2-bottom>.swal2-popup{grid-column:2;grid-row:3;place-self:end center}div:where(.swal2-container).swal2-bottom-end>.swal2-popup,div:where(.swal2-container).swal2-bottom-right>.swal2-popup{grid-column:3;grid-row:3;place-self:end end}div:where(.swal2-container).swal2-grow-row>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-column:1/4;width:100%}div:where(.swal2-container).swal2-grow-column>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-row:1/4;align-self:stretch}div:where(.swal2-container).swal2-no-transition{transition:none !important}div:where(.swal2-container)[popover]{width:auto;border:0}div:where(.swal2-container) div:where(.swal2-popup){display:none;position:relative;box-sizing:border-box;grid-template-columns:minmax(0, 100%);width:var(--swal2-width);max-width:100%;padding:var(--swal2-padding);border:var(--swal2-border);border-radius:var(--swal2-border-radius);background:var(--swal2-background);color:var(--swal2-color);font-family:inherit;font-size:1rem;container-name:swal2-popup}div:where(.swal2-container) div:where(.swal2-popup):focus{outline:none}div:where(.swal2-container) div:where(.swal2-popup).swal2-loading{overflow-y:hidden}div:where(.swal2-container) div:where(.swal2-popup).swal2-draggable{cursor:grab}div:where(.swal2-container) div:where(.swal2-popup).swal2-draggable div:where(.swal2-icon){cursor:grab}div:where(.swal2-container) div:where(.swal2-popup).swal2-dragging{cursor:grabbing}div:where(.swal2-container) div:where(.swal2-popup).swal2-dragging div:where(.swal2-icon){cursor:grabbing}div:where(.swal2-container) h2:where(.swal2-title){position:relative;max-width:100%;margin:0;padding:var(--swal2-title-padding);color:inherit;font-size:1.875em;font-weight:600;text-align:center;text-transform:none;overflow-wrap:break-word;cursor:initial}div:where(.swal2-container) div:where(.swal2-actions){display:flex;z-index:1;box-sizing:border-box;flex-wrap:wrap;align-items:center;justify-content:var(--swal2-actions-justify-content);width:var(--swal2-actions-width);margin:var(--swal2-actions-margin);padding:var(--swal2-actions-padding);border-radius:var(--swal2-actions-border-radius);background:var(--swal2-actions-background)}div:where(.swal2-container) div:where(.swal2-loader){display:none;align-items:center;justify-content:center;width:2.2em;height:2.2em;margin:0 1.875em;animation:swal2-rotate-loading 1.5s linear 0s infinite normal;border-width:.25em;border-style:solid;border-radius:100%;border-color:#2778c4 rgba(0,0,0,0) #2778c4 rgba(0,0,0,0)}div:where(.swal2-container) button:where(.swal2-styled){margin:.3125em;padding:.625em 1.1em;transition:var(--swal2-action-button-transition);border:none;box-shadow:0 0 0 3px rgba(0,0,0,0);font-weight:500}div:where(.swal2-container) button:where(.swal2-styled):not([disabled]){cursor:pointer}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm){border-radius:var(--swal2-confirm-button-border-radius);background:initial;background-color:var(--swal2-confirm-button-background-color);box-shadow:var(--swal2-confirm-button-box-shadow);color:var(--swal2-confirm-button-color);font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm):hover{background-color:color-mix(in srgb, var(--swal2-confirm-button-background-color), var(--swal2-action-button-hover))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm):active{background-color:color-mix(in srgb, var(--swal2-confirm-button-background-color), var(--swal2-action-button-active))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny){border-radius:var(--swal2-deny-button-border-radius);background:initial;background-color:var(--swal2-deny-button-background-color);box-shadow:var(--swal2-deny-button-box-shadow);color:var(--swal2-deny-button-color);font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny):hover{background-color:color-mix(in srgb, var(--swal2-deny-button-background-color), var(--swal2-action-button-hover))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny):active{background-color:color-mix(in srgb, var(--swal2-deny-button-background-color), var(--swal2-action-button-active))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel){border-radius:var(--swal2-cancel-button-border-radius);background:initial;background-color:var(--swal2-cancel-button-background-color);box-shadow:var(--swal2-cancel-button-box-shadow);color:var(--swal2-cancel-button-color);font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel):hover{background-color:color-mix(in srgb, var(--swal2-cancel-button-background-color), var(--swal2-action-button-hover))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel):active{background-color:color-mix(in srgb, var(--swal2-cancel-button-background-color), var(--swal2-action-button-active))}div:where(.swal2-container) button:where(.swal2-styled):focus-visible{outline:none;box-shadow:var(--swal2-action-button-focus-box-shadow)}div:where(.swal2-container) button:where(.swal2-styled)[disabled]:not(.swal2-loading){opacity:.4}div:where(.swal2-container) button:where(.swal2-styled)::-moz-focus-inner{border:0}div:where(.swal2-container) div:where(.swal2-footer){margin:1em 0 0;padding:1em 1em 0;border-top:1px solid var(--swal2-footer-border-color);background:var(--swal2-footer-background);color:var(--swal2-footer-color);font-size:1em;text-align:center;cursor:initial}div:where(.swal2-container) .swal2-timer-progress-bar-container{position:absolute;right:0;bottom:0;left:0;grid-column:auto !important;overflow:hidden;border-bottom-right-radius:var(--swal2-border-radius);border-bottom-left-radius:var(--swal2-border-radius)}div:where(.swal2-container) div:where(.swal2-timer-progress-bar){width:100%;height:.25em;background:var(--swal2-timer-progress-bar-background)}div:where(.swal2-container) img:where(.swal2-image){max-width:100%;margin:2em auto 1em;cursor:initial}div:where(.swal2-container) button:where(.swal2-close){position:var(--swal2-close-button-position);inset:var(--swal2-close-button-inset);z-index:2;align-items:center;justify-content:center;width:1.2em;height:1.2em;margin-top:0;margin-right:0;margin-bottom:-1.2em;padding:0;overflow:hidden;transition:var(--swal2-close-button-transition);border:none;border-radius:var(--swal2-border-radius);outline:var(--swal2-close-button-outline);background:rgba(0,0,0,0);color:var(--swal2-close-button-color);font-family:monospace;font-size:var(--swal2-close-button-font-size);cursor:pointer;justify-self:end}div:where(.swal2-container) button:where(.swal2-close):hover{transform:var(--swal2-close-button-hover-transform);background:rgba(0,0,0,0);color:#f27474}div:where(.swal2-container) button:where(.swal2-close):focus-visible{outline:none;box-shadow:var(--swal2-close-button-focus-box-shadow)}div:where(.swal2-container) button:where(.swal2-close)::-moz-focus-inner{border:0}div:where(.swal2-container) div:where(.swal2-html-container){z-index:1;justify-content:center;margin:0;padding:var(--swal2-html-container-padding);overflow:auto;color:inherit;font-size:1.125em;font-weight:normal;line-height:normal;text-align:center;overflow-wrap:break-word;word-break:break-word;cursor:initial}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea),div:where(.swal2-container) select:where(.swal2-select),div:where(.swal2-container) div:where(.swal2-radio),div:where(.swal2-container) label:where(.swal2-checkbox){margin:1em 2em 3px}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea){box-sizing:border-box;width:auto;transition:var(--swal2-input-transition);border:var(--swal2-input-border);border-radius:var(--swal2-input-border-radius);background:var(--swal2-input-background);box-shadow:var(--swal2-input-box-shadow);color:inherit;font-size:1.125em}div:where(.swal2-container) input:where(.swal2-input).swal2-inputerror,div:where(.swal2-container) input:where(.swal2-file).swal2-inputerror,div:where(.swal2-container) textarea:where(.swal2-textarea).swal2-inputerror{border-color:#f27474 !important;box-shadow:0 0 2px #f27474 !important}div:where(.swal2-container) input:where(.swal2-input):hover,div:where(.swal2-container) input:where(.swal2-file):hover,div:where(.swal2-container) textarea:where(.swal2-textarea):hover{box-shadow:var(--swal2-input-hover-box-shadow)}div:where(.swal2-container) input:where(.swal2-input):focus,div:where(.swal2-container) input:where(.swal2-file):focus,div:where(.swal2-container) textarea:where(.swal2-textarea):focus{border:var(--swal2-input-focus-border);outline:none;box-shadow:var(--swal2-input-focus-box-shadow)}div:where(.swal2-container) input:where(.swal2-input)::placeholder,div:where(.swal2-container) input:where(.swal2-file)::placeholder,div:where(.swal2-container) textarea:where(.swal2-textarea)::placeholder{color:#ccc}div:where(.swal2-container) .swal2-range{margin:1em 2em 3px;background:var(--swal2-background)}div:where(.swal2-container) .swal2-range input{width:80%}div:where(.swal2-container) .swal2-range output{width:20%;color:inherit;font-weight:600;text-align:center}div:where(.swal2-container) .swal2-range input,div:where(.swal2-container) .swal2-range output{height:2.625em;padding:0;font-size:1.125em;line-height:2.625em}div:where(.swal2-container) .swal2-input{height:2.625em;padding:0 .75em}div:where(.swal2-container) .swal2-file{width:75%;margin-right:auto;margin-left:auto;background:var(--swal2-input-background);font-size:1.125em}div:where(.swal2-container) .swal2-textarea{height:6.75em;padding:.75em}div:where(.swal2-container) .swal2-select{min-width:50%;max-width:100%;padding:.375em .625em;background:var(--swal2-input-background);color:inherit;font-size:1.125em}div:where(.swal2-container) .swal2-radio,div:where(.swal2-container) .swal2-checkbox{align-items:center;justify-content:center;background:var(--swal2-background);color:inherit}div:where(.swal2-container) .swal2-radio label,div:where(.swal2-container) .swal2-checkbox label{margin:0 .6em;font-size:1.125em}div:where(.swal2-container) .swal2-radio input,div:where(.swal2-container) .swal2-checkbox input{flex-shrink:0;margin:0 .4em}div:where(.swal2-container) label:where(.swal2-input-label){display:flex;justify-content:center;margin:1em auto 0}div:where(.swal2-container) div:where(.swal2-validation-message){align-items:center;justify-content:center;margin:1em 0 0;padding:.625em;overflow:hidden;background:var(--swal2-validation-message-background);color:var(--swal2-validation-message-color);font-size:1em;font-weight:300}div:where(.swal2-container) div:where(.swal2-validation-message)::before{content:"!";display:inline-block;width:1.5em;min-width:1.5em;height:1.5em;margin:0 .625em;border-radius:50%;background-color:#f27474;color:#fff;font-weight:600;line-height:1.5em;text-align:center}div:where(.swal2-container) .swal2-progress-steps{flex-wrap:wrap;align-items:center;max-width:100%;margin:1.25em auto;padding:0;background:rgba(0,0,0,0);font-weight:600}div:where(.swal2-container) .swal2-progress-steps li{display:inline-block;position:relative}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step{z-index:20;flex-shrink:0;width:2em;height:2em;border-radius:2em;background:#2778c4;color:#fff;line-height:2em;text-align:center}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step{background:#2778c4}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step{background:var(--swal2-progress-step-background);color:#fff}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step-line{background:var(--swal2-progress-step-background)}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step-line{z-index:10;flex-shrink:0;width:2.5em;height:.4em;margin:0 -1px;background:#2778c4}div:where(.swal2-icon){position:relative;box-sizing:content-box;justify-content:center;width:5em;height:5em;margin:2.5em auto .6em;zoom:var(--swal2-icon-zoom);border:.25em solid rgba(0,0,0,0);border-radius:50%;border-color:#000;font-family:inherit;line-height:5em;cursor:default;user-select:none}div:where(.swal2-icon) .swal2-icon-content{display:flex;align-items:center;font-size:3.75em}div:where(.swal2-icon).swal2-error{border-color:#f27474;color:#f27474}div:where(.swal2-icon).swal2-error .swal2-x-mark{position:relative;flex-grow:1}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line]{display:block;position:absolute;top:2.3125em;width:2.9375em;height:.3125em;border-radius:.125em;background-color:#f27474}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=left]{left:1.0625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=right]{right:1em;transform:rotate(-45deg)}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-error.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-error.swal2-icon-show .swal2-x-mark{animation:swal2-animate-error-x-mark .5s}}div:where(.swal2-icon).swal2-warning{border-color:#f8bb86;color:#f8bb86}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-warning.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-warning.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .5s}}div:where(.swal2-icon).swal2-info{border-color:#3fc3ee;color:#3fc3ee}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-info.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-info.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .8s}}div:where(.swal2-icon).swal2-question{border-color:#87adbd;color:#87adbd}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-question.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-question.swal2-icon-show .swal2-icon-content{animation:swal2-animate-question-mark .8s}}div:where(.swal2-icon).swal2-success{border-color:#a5dc86;color:#a5dc86}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line]{position:absolute;width:3.75em;height:7.5em;border-radius:50%}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.4375em;left:-2.0635em;transform:rotate(-45deg);transform-origin:3.75em 3.75em;border-radius:7.5em 0 0 7.5em}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.6875em;left:1.875em;transform:rotate(-45deg);transform-origin:0 3.75em;border-radius:0 7.5em 7.5em 0}div:where(.swal2-icon).swal2-success .swal2-success-ring{position:absolute;z-index:2;top:-0.25em;left:-0.25em;box-sizing:content-box;width:100%;height:100%;border:.25em solid rgba(165,220,134,.3);border-radius:50%}div:where(.swal2-icon).swal2-success .swal2-success-fix{position:absolute;z-index:1;top:.5em;left:1.625em;width:.4375em;height:5.625em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-success [class^=swal2-success-line]{display:block;position:absolute;z-index:2;height:.3125em;border-radius:.125em;background-color:#a5dc86}div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=tip]{top:2.875em;left:.8125em;width:1.5625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=long]{top:2.375em;right:.5em;width:2.9375em;transform:rotate(-45deg)}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-animate-success-line-tip .75s}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-animate-success-line-long .75s}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-circular-line-right{animation:swal2-rotate-success-circular-line 4.25s ease-in}}[class^=swal2]{-webkit-tap-highlight-color:rgba(0,0,0,0)}.swal2-show{animation:var(--swal2-show-animation)}.swal2-hide{animation:var(--swal2-hide-animation)}.swal2-noanimation{transition:none}.swal2-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}.swal2-rtl .swal2-close{margin-right:initial;margin-left:0}.swal2-rtl .swal2-timer-progress-bar{right:0;left:auto}.swal2-toast{box-sizing:border-box;grid-column:1/4 !important;grid-row:1/4 !important;grid-template-columns:min-content auto min-content;padding:1em;overflow-y:hidden;border:var(--swal2-toast-border);background:var(--swal2-background);box-shadow:var(--swal2-toast-box-shadow);pointer-events:all}.swal2-toast>*{grid-column:2}.swal2-toast h2:where(.swal2-title){margin:.5em 1em;padding:0;font-size:1em;text-align:initial}.swal2-toast .swal2-loading{justify-content:center}.swal2-toast input:where(.swal2-input){height:2em;margin:.5em;font-size:1em}.swal2-toast .swal2-validation-message{font-size:1em}.swal2-toast div:where(.swal2-footer){margin:.5em 0 0;padding:.5em 0 0;font-size:.8em}.swal2-toast button:where(.swal2-close){grid-column:3/3;grid-row:1/99;align-self:center;width:.8em;height:.8em;margin:0;font-size:2em}.swal2-toast div:where(.swal2-html-container){margin:.5em 1em;padding:0;overflow:initial;font-size:1em;text-align:initial}.swal2-toast div:where(.swal2-html-container):empty{padding:0}.swal2-toast .swal2-loader{grid-column:1;grid-row:1/99;align-self:center;width:2em;height:2em;margin:.25em}.swal2-toast .swal2-icon{grid-column:1;grid-row:1/99;align-self:center;width:2em;min-width:2em;height:2em;margin:0 .5em 0 0}.swal2-toast .swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:1.8em;font-weight:bold}.swal2-toast .swal2-icon.swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line]{top:.875em;width:1.375em}.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:.3125em}.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:.3125em}.swal2-toast div:where(.swal2-actions){justify-content:flex-start;height:auto;margin:0;margin-top:.5em;padding:0 .5em}.swal2-toast button:where(.swal2-styled){margin:.25em .5em;padding:.4em .6em;font-size:1em}.swal2-toast .swal2-success{border-color:#a5dc86}.swal2-toast .swal2-success [class^=swal2-success-circular-line]{position:absolute;width:1.6em;height:3em;border-radius:50%}.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.8em;left:-0.5em;transform:rotate(-45deg);transform-origin:2em 2em;border-radius:4em 0 0 4em}.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.25em;left:.9375em;transform-origin:0 1.5em;border-radius:0 4em 4em 0}.swal2-toast .swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-toast .swal2-success .swal2-success-fix{top:0;left:.4375em;width:.4375em;height:2.6875em}.swal2-toast .swal2-success [class^=swal2-success-line]{height:.3125em}.swal2-toast .swal2-success [class^=swal2-success-line][class$=tip]{top:1.125em;left:.1875em;width:.75em}.swal2-toast .swal2-success [class^=swal2-success-line][class$=long]{top:.9375em;right:.1875em;width:1.375em}@container swal2-popup style(--swal2-icon-animations:true){.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-toast-animate-success-line-tip .75s}.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-toast-animate-success-line-long .75s}}.swal2-toast.swal2-show{animation:var(--swal2-toast-show-animation)}.swal2-toast.swal2-hide{animation:var(--swal2-toast-hide-animation)}@keyframes swal2-show{0%{transform:translate3d(0, -50px, 0) scale(0.9);opacity:0}100%{transform:translate3d(0, 0, 0) scale(1);opacity:1}}@keyframes swal2-hide{0%{transform:translate3d(0, 0, 0) scale(1);opacity:1}100%{transform:translate3d(0, -50px, 0) scale(0.9);opacity:0}}@keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-0.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}100%{top:2.8125em;left:.8125em;width:1.5625em}}@keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}100%{top:2.375em;right:.5em;width:2.9375em}}@keyframes swal2-rotate-success-circular-line{0%{transform:rotate(-45deg)}5%{transform:rotate(-45deg)}12%{transform:rotate(-405deg)}100%{transform:rotate(-405deg)}}@keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;transform:scale(0.4);opacity:0}50%{margin-top:1.625em;transform:scale(0.4);opacity:0}80%{margin-top:-0.375em;transform:scale(1.15)}100%{margin-top:0;transform:scale(1);opacity:1}}@keyframes swal2-animate-error-icon{0%{transform:rotateX(100deg);opacity:0}100%{transform:rotateX(0deg);opacity:1}}@keyframes swal2-rotate-loading{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes swal2-animate-question-mark{0%{transform:rotateY(-360deg)}100%{transform:rotateY(0)}}@keyframes swal2-animate-i-mark{0%{transform:rotateZ(45deg);opacity:0}25%{transform:rotateZ(-25deg);opacity:.4}50%{transform:rotateZ(15deg);opacity:.8}75%{transform:rotateZ(-5deg);opacity:1}100%{transform:rotateX(0);opacity:1}}@keyframes swal2-toast-show{0%{transform:translateY(-0.625em) rotateZ(2deg)}33%{transform:translateY(0) rotateZ(-2deg)}66%{transform:translateY(0.3125em) rotateZ(2deg)}100%{transform:translateY(0) rotateZ(0deg)}}@keyframes swal2-toast-hide{100%{transform:rotateZ(1deg);opacity:0}}@keyframes swal2-toast-animate-success-line-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-0.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}100%{top:1.125em;left:.1875em;width:.75em}}@keyframes swal2-toast-animate-success-line-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}100%{top:.9375em;right:.1875em;width:1.375em}}');const oc=a=>El.mixin({toast:!0,position:"top-end",showConfirmButton:!1,timer:a||3e3,timerProgressBar:!0,didOpen:e=>{e.onmouseenter=El.stopTimer,e.onmouseleave=El.resumeTimer,e.onclick=()=>{El.close()}}}),CD={error(a,e){oc(e).fire({icon:"error",title:a})},warn(a,e){oc(e).fire({icon:"warning",title:a})},success(a,e){oc(e).fire({icon:"success",title:a})},info(a,e){oc(e).fire({icon:"info",title:a})}},Jne={install(a){a.config.globalProperties.$toast=CD}},Kne={key:0,class:"border-2 border-dashed border-gray-300 rounded-lg p-8 text-center hover:border-gray-400 transition-colors h-[300px] flex select-none"},Zne={class:"space-y-4 m-auto"},$ne={class:"text-sm text-gray-500 mt-2"},ese={key:1,class:"select-none"},tse=["src"],ase=["onMousedown"],ise={key:1,class:"absolute inset-0 pointer-events-none"},rse=p.defineComponent({__name:"UploadImage",props:{show:{type:Boolean,default:!1},uploadSize:{default:2}},setup(a,{emit:e}){const t=a,i=p.ref([{name:"Upload Image",link:"#"}]),r=e,n=p.ref([{title:"Close",emit:"onClose"}]);p.ref(!0);const s=p.ref(),o=p.ref(""),l=p.ref(!1),h=p.ref(""),d=p.ref(570),f=p.ref(300),u=p.ref(null),m=p.ref({width:0,height:0,scaleX:1,scaleY:1}),y=p.ref({x:0,y:0,height:0,width:0}),v=p.ref(!1),k=p.ref({x:0,y:0}),g=p.ref(!1),x=p.ref(""),w=p.ref(1),b=p.ref(!1);p.ref({x:0,y:0});const L=p.ref({x:0,y:0}),F=()=>{s.value&&s.value.click()},C=p.computed(()=>{if(!y.value)return[];const{width:W,height:K}=y.value;return[{position:"nw",class:"cursor-nw-resize absolute w-3 h-3 bg-blue-500 border border-white cursor-pointer",style:{left:"-6px",top:"-6px"}},{position:"ne",class:"cursor-ne-resize absolute w-3 h-3 bg-blue-500 border border-white cursor-pointer",style:{right:"-6px",top:"-6px"}},{position:"sw",class:"cursor-sw-resize absolute w-3 h-3 bg-blue-500 border border-white cursor-pointer",style:{left:"-6px",bottom:"-6px"}},{position:"se",class:"cursor-se-resize absolute w-3 h-3 bg-blue-500 border border-white cursor-pointer",style:{right:"-6px",bottom:"-6px"}}]}),T=()=>{const W=w.value,K=L.value,B=m.value.width,ce=m.value.height,ee=B/ce,oe=d.value/f.value;let re=0,ue=0;ee>oe?(re=d.value*W,ue=d.value/ee*W):(ue=f.value*W,re=f.value*ee*W);const Me=(d.value-re)/2+K.x,Ce=(f.value-ue)/2+K.y;return{left:Me,top:Ce,right:Me+re,bottom:Ce+ue,width:re,height:ue}},H=W=>{const K=t.uploadSize,B=W.target.files[0];if(B&&B.type.startsWith("image/")&&s.value){if(B.size/1048576>K){CD.error(`Upload size mute be below ${t.uploadSize} MB.`),s.value.value="";return}const ee=new FileReader;ee.onload=oe=>{o.value=oe.target.result,l.value=!0,h.value=""},ee.readAsDataURL(B),n.value=[{title:"Cancel",emit:"onCancel",class:"btn btn-danger"},{title:"Reset",emit:"onReset",class:"btn-outline btn-danger"},{title:"Crop",emit:"onCrop"}]}},O=()=>{if(!u.value)return;const W=u.value,K=W.naturalWidth,B=W.naturalHeight;m.value={width:K,height:B,scaleX:K/d.value,scaleY:B/f.value},w.value=1,L.value={x:0,y:0};const ce=200,ee=200;y.value={x:(d.value-ce)/2,y:(f.value-ee)/2,width:ce,height:ee}},V=W=>{v.value=!0,k.value={x:W.clientX-y.value.x,y:W.clientY-y.value.y},W.preventDefault()},j=(W,K)=>{g.value=!0,x.value=W,k.value={x:K.clientX,y:K.clientY,cropX:y.value.x,cropY:y.value.y,cropWidth:y.value.width,cropHeight:y.value.height},K.preventDefault()},J=()=>{v.value=!1,g.value=!1,b.value=!1,x.value=""},he=W=>{if(v.value){const K=T(),B=W.clientX-k.value.x,ce=W.clientY-k.value.y,ee=Math.max(0,K.left),oe=Math.max(0,K.top),re=Math.min(d.value-y.value.width,K.right-y.value.width),ue=Math.min(f.value-y.value.height,K.bottom-y.value.height);y.value={...y.value,x:Math.min(Math.max(B,ee),re),y:Math.min(Math.max(ce,oe),ue)}}else if(g.value){const K=W.clientX-k.value.x,B=W.clientY-k.value.y,ce=T();let ee={...y.value};const oe=50;switch(x.value){case"nw":ee.x=Math.max(Math.max(0,ce.left),Math.min(k.value.cropX+K,k.value.cropX+k.value.cropWidth-oe)),ee.y=Math.max(Math.max(0,ce.top),Math.min(k.value.cropY+B,k.value.cropY+k.value.cropHeight-oe)),ee.width=k.value.cropWidth-(ee.x-k.value.cropX),ee.height=k.value.cropHeight-(ee.y-k.value.cropY);break;case"ne":ee.y=Math.max(Math.max(0,ce.top),Math.min(k.value.cropY+B,k.value.cropY+k.value.cropHeight-oe)),ee.height=k.value.cropHeight-(ee.y-k.value.cropY),ee.width=Math.min(Math.min(d.value-ee.x,ce.right-ee.x),Math.max(oe,k.value.cropWidth+K));break;case"sw":ee.x=Math.max(Math.max(0,ce.left),Math.min(k.value.cropX+K,k.value.cropX+k.value.cropWidth-oe)),ee.width=k.value.cropWidth-(ee.x-k.value.cropX),ee.height=Math.min(Math.min(f.value-ee.y,ce.bottom-ee.y),Math.max(oe,k.value.cropHeight+B));break;case"se":ee.width=Math.min(Math.min(d.value-ee.x,ce.right-ee.x),Math.max(oe,k.value.cropWidth+K)),ee.height=Math.min(Math.min(f.value-ee.y,ce.bottom-ee.y),Math.max(oe,k.value.cropHeight+B));break}y.value=ee}},Z=W=>{const K=y.value,B=W.currentTarget.getBoundingClientRect(),ce=W.clientX-B.left,ee=W.clientY-B.top;ce>=K.x&&ce<=K.x+K.width&&ee>=K.y&&ee<=K.y+K.height||(b.value=!0,k.value={x:W.clientX-L.value.x,y:W.clientY-L.value.y},W.preventDefault())},ge=()=>{if(!y.value||!u.value)return;const W=u.value,K=m.value.width,B=m.value.height,ce=w.value,ee=L.value.x,oe=L.value.y,re=d.value,ue=f.value,Me=K/B,Ce=re/ue;let A=0,_=0;Me>Ce?(A=re*ce,_=re/Me*ce):(_=ue*ce,A=ue*Me*ce);const q=(re-A)/2+ee,S=(ue-_)/2+oe,N=y.value.x-q,E=y.value.y-S,ne=K/A,ye=B/_,de=N*ne,Ie=E*ye,ve=y.value.width*ne,Re=y.value.height*ye,$e=Math.max(0,de),rt=Math.max(0,Ie),gt=Math.max(1,Math.min(K-$e,ve)),Le=Math.max(1,Math.min(B-rt,Re)),We=document.createElement("canvas");We.width=gt,We.height=Le;const we=We.getContext("2d");we&&(we.drawImage(W,$e,rt,gt,Le,0,0,gt,Le),h.value=We.toDataURL("image/png"),r("onImageCrop",h.value),ie())},ie=()=>{l.value=!1,o.value="",y.value={},h.value="",L.value={x:0,y:0},w.value=1,s.value&&(s.value.value=""),n.value=[{title:"Close",emit:"onClose"}]};return p.onMounted(()=>{document.addEventListener("mousemove",he),document.addEventListener("mouseup",J)}),p.onUnmounted(()=>{document.removeEventListener("mousemove",he),document.removeEventListener("mouseup",J)}),(W,K)=>(p.openBlock(),p.createBlock(ZI,{title:i.value,actions:n.value,show:a.show,onOnClose:K[0]||(K[0]=B=>r("onClose")),onOnCrop:ge,onOnReset:ie,onOnCancel:K[1]||(K[1]=B=>{ie(),r("onClose")})},{default:p.withCtx(()=>[l.value?(p.openBlock(),p.createElementBlock("div",ese,[p.createElementVNode("div",{ref:"cropperContainer",class:"relative mx-auto shadow-sm overflow-hidden",style:p.normalizeStyle({width:d.value+"px",height:f.value+"px",backgroundImage:`url(${p.unref(sie)})`}),onMousedown:Z},[p.createElementVNode("img",{ref_key:"cropperImage",ref:u,src:o.value,class:"w-full h-full object-contain",style:p.normalizeStyle({transform:`scale(${w.value}) translate(${L.value.x}px, ${L.value.y}px)`}),onLoad:O},null,44,tse),y.value?(p.openBlock(),p.createElementBlock("div",{key:0,class:"absolute border-2 border-primary border-dashed cursor-move",style:p.normalizeStyle({left:y.value.x+"px",top:y.value.y+"px",width:y.value.width+"px",height:y.value.height+"px"}),onMousedown:V},[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(C.value,B=>(p.openBlock(),p.createElementBlock("div",{key:B.position,class:p.normalizeClass(B.class),style:p.normalizeStyle(B.style),onMousedown:p.withModifiers(ce=>j(B.position,ce),["stop"])},null,46,ase))),128))],36)):p.createCommentVNode("",!0),y.value?(p.openBlock(),p.createElementBlock("div",ise,[p.createElementVNode("div",{class:"absolute bg-black/20",style:p.normalizeStyle({left:"0px",top:"0px",width:"100%",height:y.value.y+"px"})},null,4),p.createElementVNode("div",{class:"absolute bg-black/20",style:p.normalizeStyle({left:"0px",top:y.value.y+y.value.height+"px",width:"100%",height:f.value-y.value.y-y.value.height+"px"})},null,4),p.createElementVNode("div",{class:"absolute bg-black/20",style:p.normalizeStyle({left:"0px",top:y.value.y+"px",width:y.value.x+"px",height:y.value.height+"px"})},null,4),p.createElementVNode("div",{class:"absolute bg-black/20",style:p.normalizeStyle({left:y.value.x+y.value.width+"px",top:y.value.y+"px",width:d.value-y.value.x-y.value.width+"px",height:y.value.height+"px"})},null,4)])):p.createCommentVNode("",!0)],36)])):(p.openBlock(),p.createElementBlock("div",Kne,[p.createElementVNode("input",{ref_key:"fileInput",ref:s,type:"file",class:"hidden",onChange:H,accept:"image/png, image/jpeg, image/jpg, image/webp"},null,544),p.createElementVNode("div",Zne,[K[2]||(K[2]=p.createElementVNode("div",{class:"mx-auto w-16 h-16 bg-gray-100 rounded-full flex items-center justify-center"},[p.createElementVNode("svg",{class:"w-8 h-8 text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[p.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 16l4.586-4.586a2 2 0 012.828 0L16 16m-2-2l1.586-1.586a2 2 0 012.828 0L20 14m-6-6h.01M6 20h12a2 2 0 002-2V6a2 2 0 00-2-2H6a2 2 0 00-2 2v12a2 2 0 002 2z"})])],-1)),p.createElementVNode("div",null,[p.createElementVNode("button",{class:"btn",onClick:F},"Choose Image"),p.createElementVNode("p",$ne,"PNG, JPG up to "+p.toDisplayString(a.uploadSize)+" MB",1)])])]))]),_:1},8,["title","actions","show"]))}}),nse=(a,e)=>{if(e.value){a.classList.add("flex"),a.classList.add("flex-col");const t=a.querySelector("input"),i=document.createElement("span");i.classList.add("text-red-500","text-[12px]","error-message"),t?.classList.add("border-red-500"),a.classList.add("border-red-500"),i.textContent=e.value,a.appendChild(i)}},sse=(a,e)=>{const t=a.querySelector("input"),i=a.querySelector(".error-message");if(!i&&e.value){const r=document.createElement("span");r.classList.add("text-red-500","text-[12px]","error-message"),r.textContent=e.value,t?.classList.add("border-red-500"),a.appendChild(r)}else e.value?(a.classList.add("input-error"),t?.classList.add("border-red-500"),i&&(i.textContent=e.value)):(a.classList.remove("input-error"),a.classList.remove("border-red-500"),t?.classList.remove("border-red-500"),i&&i.remove())},ose={mounted:nse,updated:sse},MI=new WeakMap,lse={mounted(a,e){let t=null,i=0;a.classList.add("hide-scrollbar");const r=()=>{a.classList.remove("hide-scrollbar")},n=()=>{a.classList.add("hide-scrollbar"),i=Date.now()},s=()=>{Date.now()-i>=100&&r(),t&&clearTimeout(t),t=setTimeout(n,1e3)};a.addEventListener("scroll",s),MI.set(a,s)},unmounted(a){const e=MI.get(a);e&&(a.removeEventListener("scroll",e),MI.delete(a))}};var CI={exports:{}},wR;function cse(){if(wR)return CI.exports;wR=1;var a=CI.exports={},e,t;function i(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?e=setTimeout:e=i}catch{e=i}try{typeof clearTimeout=="function"?t=clearTimeout:t=r}catch{t=r}})();function n(v){if(e===setTimeout)return setTimeout(v,0);if((e===i||!e)&&setTimeout)return e=setTimeout,setTimeout(v,0);try{return e(v,0)}catch{try{return e.call(null,v,0)}catch{return e.call(this,v,0)}}}function s(v){if(t===clearTimeout)return clearTimeout(v);if((t===r||!t)&&clearTimeout)return t=clearTimeout,clearTimeout(v);try{return t(v)}catch{try{return t.call(null,v)}catch{return t.call(this,v)}}}var o=[],l=!1,h,d=-1;function f(){!l||!h||(l=!1,h.length?o=h.concat(o):d=-1,o.length&&u())}function u(){if(!l){var v=n(f);l=!0;for(var k=o.length;k;){for(h=o,o=[];++d<k;)h&&h[d].run();d=-1,k=o.length}h=null,l=!1,s(v)}}a.nextTick=function(v){var k=new Array(arguments.length-1);if(arguments.length>1)for(var g=1;g<arguments.length;g++)k[g-1]=arguments[g];o.push(new m(v,k)),o.length===1&&!l&&n(u)};function m(v,k){this.fun=v,this.array=k}m.prototype.run=function(){this.fun.apply(null,this.array)},a.title="browser",a.browser=!0,a.env={},a.argv=[],a.version="",a.versions={};function y(){}return a.on=y,a.addListener=y,a.once=y,a.off=y,a.removeListener=y,a.removeAllListeners=y,a.emit=y,a.prependListener=y,a.prependOnceListener=y,a.listeners=function(v){return[]},a.binding=function(v){throw new Error("process.binding is not supported")},a.cwd=function(){return"/"},a.chdir=function(v){throw new Error("process.chdir is not supported")},a.umask=function(){return 0},CI.exports}var OO=cse();const EI=new WeakMap,hse={mounted(a){OO.nextTick(()=>{const e=()=>{typeof a.select=="function"&&a.select()};a.addEventListener("focus",e),EI.set(a,e)})},unmounted(a){const e=EI.get(a);e&&(a.removeEventListener("focus",e),EI.delete(a))}},ED=(a,e,t="RS.",i="usa",r="nepali")=>{const n=parseFloat(a);if(isNaN(n))return"";const s=i==="euro",o=s?",":".",l=s?".":",",h=n.toFixed(2).split(".");let d=h[0];const f=h[1];if(r==="nepali"){const u=d.slice(-3),m=d.slice(0,-3),y=m.replace(/\B(?=(\d{2})+(?!\d))/g,l);d=m?y+l+u:u}else d=d.replace(/\B(?=(\d{3})+(?!\d))/g,l);return e&&t?`${t}${d}${o}${f}`:`${d}${o}${f}`},LD=(a,e,t="RS.",i="usa")=>{if(!a)return 0;const r=i==="euro",n=r?",":".",s=r?".":",";let o=a.trim();e&&t&&o.startsWith(t)&&(o=o.slice(t.length).trim());const l=new RegExp(`\\${s}(?=\\d{2,3})`,"g");o=o.replace(l,"");const h=o.lastIndexOf(n);h!==-1&&n!=="."&&(o=o.slice(0,h)+"."+o.slice(h+1));const d=parseFloat(o);return isNaN(d)?0:d},dse={install(a){a.config.globalProperties.$currencyFormatter=ED,a.config.globalProperties.$currencyUnformatter=LD}},lc=(a,e,t=!0)=>{t?a.value=ED(a.value,!1,"",e.format,e.structure):a.value=LD(a.value,!1,"",e.format).toString()},use={mounted(a,e){const t={format:e.modifiers.euro?"euro":"usa",structure:e.arg==="foreign"?"foreign":"nepali"};OO.nextTick(()=>{a.value&&lc(a,t)});const i=()=>{lc(a,t),a.removeEventListener("blur",i),a.removeEventListener("keydown",n)},r=()=>{lc(a,t,!1),a.addEventListener("blur",i),a.addEventListener("keydown",n)},n=s=>{const o=/^\d$/.test(s.key),l=s.key===".",h=s.ctrlKey||s.metaKey,d=s.key==="Enter"||s.key==="Tab"||s.key==="Backspace",f=a.value.includes(".");if(l&&f){s.preventDefault();return}o||l&&!f||h||d||s.preventDefault()};a.addEventListener("focus",r),a.eventCleanUp=()=>{a.removeEventListener("focus",r),a.removeEventListener("blur",i),a.removeEventListener("keydown",n)}},updated(a,e){const t={format:e.modifiers.euro?"euro":"usa",structure:e.arg==="foreign"?"foreign":"nepali"};document.activeElement!=a&&lc(a,t)},unmounted(a){}},fse={mounted(a){const e=a.closest(".sidebar-dropdown");if(!e)return;const t=700,i=()=>{const s=a.scrollHeight,o=s*1e3/t;a.style.overflow="hidden",a.style.transition=`height ${o}ms linear`,a.style.height=`${s}px`,clearTimeout(a._timeout),a._timeout=window.setTimeout(()=>{a.style.height="",a.style.transition="",a.style.overflow=""},o)},r=()=>{const s=a.scrollHeight,o=s*1e3/t;a.style.transition=`height ${o}ms linear`,a.style.overflow="hidden",a.style.height=`${s}px`,a.offsetHeight,a.style.height="0px",clearTimeout(a._timeout),a._timeout=window.setTimeout(()=>{a.style.transition="",a.style.overflow=""},o)},n=new MutationObserver(()=>{e.classList.contains("sidebar-item-open")?i():r()});n.observe(e,{attributes:!0,attributeFilter:["class"]}),a._observer=n,e.classList.contains("sidebar-item-open")?a.style.height="auto":(a.style.height="0px",a.style.overflow="hidden")},unmounted(a){a._observer&&a._observer.disconnect(),clearTimeout(a._timeout)}},pse=["innerHTML"],mse={key:1},yse=p.defineComponent({__name:"Tooltip",props:{content:{},raw:{type:Boolean}},setup(a,{expose:e}){const t=p.ref(!1);p.onMounted(()=>{requestAnimationFrame(()=>{t.value=!0})});function i(){t.value=!1}return e({hide:i}),(r,n)=>(p.openBlock(),p.createElementBlock("div",{class:p.normalizeClass(["tooltip-content",{visible:t.value}])},[a.raw?(p.openBlock(),p.createElementBlock("div",{key:0,innerHTML:a.content},null,8,pse)):(p.openBlock(),p.createElementBlock("span",mse,p.toDisplayString(a.content),1))],2))}}),gse=az(yse,[["__scopeId","data-v-3e0dd3fc"]]),kse={mounted(a,e){let t=null,i=null,r=null,n=e;function s(f,u,m){const y=window.innerWidth,v=window.innerHeight;switch(f){case"top":return u.top>=m.height;case"bottom":return v-u.bottom>=m.height;case"left":return u.left>=m.width;case"right":return y-u.right>=m.width;default:return!1}}const o=async()=>{if(!n.value||!n.value.content)return;const{content:f,raw:u=!1,preferredPosition:m="top"}=n.value;if(t&&i&&(t.unmount(),i.remove()),i=document.createElement("div"),i.style.position="absolute",i.style.zIndex="9999",document.body.appendChild(i),t=p.createApp(gse,{content:f,raw:u}),t.mount(i),await p.nextTick(),!i)return;const y=a.getBoundingClientRect(),v=i.getBoundingClientRect(),x=[m,...["top","bottom","left","right"].filter(L=>L!==m)].find(L=>s(L,y,v))||"bottom";let w=0,b=0;switch(x){case"top":w=y.top-v.height+window.scrollY,b=y.left+(y.width-v.width)/2+window.scrollX;break;case"bottom":w=y.bottom+window.scrollY,b=y.left+(y.width-v.width)/2+window.scrollX;break;case"left":w=y.top+(y.height-v.height)/2+window.scrollY,b=y.left-v.width+window.scrollX;break;case"right":w=y.top+(y.height-v.height)/2+window.scrollY,b=y.right+window.scrollX;break}b=Math.max(0,Math.min(b,window.innerWidth-v.width)),w=Math.max(0,Math.min(w,window.innerHeight-v.height)),i.style.top=`${w}px`,i.style.left=`${b}px`},l=async()=>{r&&(clearTimeout(r),r=null),await o()},h=()=>{r&&(clearTimeout(r),r=null),t&&i&&(t.unmount(),i.remove(),t=null,i=null)},d=()=>{r||(r=window.setTimeout(()=>{l(),r=null},200))};a.__tooltipHandlers={showTooltip:d,hideTooltip:h,clearShowTimeout:()=>{r&&(clearTimeout(r),r=null)},createTooltip:o,updateBinding:f=>{n=f}},a.addEventListener("mouseenter",d),a.addEventListener("mouseleave",h)},updated(a,e){a.__tooltipHandlers&&(a.__tooltipHandlers.updateBinding(e),a.matches(":hover")&&a.__tooltipHandlers.createTooltip())},unmounted(a){a.__tooltipHandlers&&(a.__tooltipHandlers.hideTooltip(),a.removeEventListener("mouseenter",a.__tooltipHandlers.showTooltip),a.removeEventListener("mouseleave",a.__tooltipHandlers.hideTooltip),a.__tooltipHandlers.clearShowTimeout(),delete a.__tooltipHandlers)}};class vse{constructor(){this.socket=null,this.url="",this.isConnected=!1}setURL(e){this.url=e}init(){return this.url==""?(console.log("❗WebSocket url not set!"),Promise.resolve(this)):this.socket&&this.socket.readyState!==WebSocket.CLOSED&&this.socket.readyState!==WebSocket.CLOSING?(console.log("❗WebSocket is already initialized"),Promise.resolve(this)):(this.socket=new WebSocket(this.url),new Promise((e,t)=>{this.socket.onopen=()=>{this.isConnected=!0,console.log("✅ WebSocket connected"),e(this)},this.socket.onclose=()=>{this.isConnected=!1,console.log("❌ WebSocket connection closed")},this.socket.onerror=i=>{this.close(),console.error("⛔ WebSocket error occurred:",i),t(i)}}))}onMessage(e){return this.socket?(this.socket.onmessage=t=>{e&&t.data&&e(t.data)},Promise.resolve(this)):(console.error("❗WebSocket is not initialized"),Promise.resolve(this))}sendMessage(e){return new Promise((t,i)=>{if(this.socket&&this.isConnected)try{this.socket.send(e),t()}catch(r){console.error("❗Error sending message:",r),i(r)}else{const r="❗WebSocket is not connected";console.error(r),i(new Error(r))}})}close(){this.socket&&(this.socket.close(),this.socket=null,this.isConnected=!1,console.log("❌ WebSocket connection closed"))}getConnectionStatus(){return this.isConnected}}const wse=(a,e)=>{const t=a.toLowerCase().split("+").map(l=>l.trim()),i={ctrl:t.includes("ctrl"),alt:t.includes("alt"),shift:t.includes("shift"),meta:t.includes("meta")},r=t.filter(l=>!["ctrl","alt","shift","meta"].includes(l));if(r.length===0)throw new Error("No main keys specified in shortcut.");const n=new Set,s=l=>{n.add(l.key.toLowerCase());const h=l.ctrlKey===i.ctrl&&l.altKey===i.alt&&l.shiftKey===i.shift&&l.metaKey===i.meta,d=r.every(f=>n.has(f));h&&d&&(l.preventDefault(),e(l))},o=l=>{n.delete(l.key.toLowerCase())};return window.addEventListener("keydown",s),window.addEventListener("keyup",o),{destroy(){window.removeEventListener("keydown",s),window.removeEventListener("keyup",o)}}},xse=(a,e)=>{let t=null;return{run:n=>{t&&clearTimeout(t),t=setTimeout(()=>{a(n),t=null},e)},cancel:()=>{t&&(clearTimeout(t),t=null)}}},VO=a=>{const t=(void 0).$refs?.[a];if(t&&typeof t.activate=="function"){t.activate();return}const i=document.getElementById(a);if(!i)return;const r=i.tagName;(r==="INPUT"||r==="TEXTAREA"||r==="BUTTON")&&i.focus()},bse={install(a){a.config.globalProperties.$focusNext=VO}},BO=(a,e=!1,t=!0)=>{if(a==null||a==="")return"";const i=["","एक","दुई","तीन","चार","पाँच","छ","सात","आठ","नौ","दश","एघार","बाह्र","तेह्र","चौध","पन्ध्र","सोह्र","सत्र","अठार","उन्नाइस"],r=["","","बीस","एक्काइस","बाइस","तेइस","चौबीस","पच्चीस","छब्बीस","सत्ताइस","अठ्ठाइस","उनन्तिस","तीस","एकतीस","बत्तीस","तेत्तीस","चौँतीस","पैंतीस","छत्तीस","सैतीस","अठतीस","उनन्चालीस","चालीस","एकचालीस","बयालीस","त्रियालीस","चवालीस","पैंतालीस","छयालीस","सतचालीस","अठचालीस","उनन्चास","पचास","एकाउन्न","बाउन्न","त्रिपन्न","चवन्न","पचपन्न","छपन्न","सन्ताउन्न","अन्ठाउन्न","उनन्साठी","साठी","एकसठ्ठी","बयसठ्ठी","त्रिसठ्ठी","चौंसठ्ठी","पैंसठ्ठी","छयसठ्ठी","सतसठ्ठी","अठसठ्ठी","उनन्सत्तरी","सत्तरी","एकहत्तर","बहत्तर","त्रिहत्तर","चौहत्तर","पचहत्तर","छयहत्तर","सतहत्तर","अठहत्तर","उनासी","असी","एकासी","बयासी","त्रियासी","चौरासी","पचासी","छयासी","सतासी","अठासी","उनान्नब्बे","नब्बे","एकानब्बे","बयानब्बे","त्रियानब्बे","चौरानब्बे","पन्चानब्बे","छयानब्बे","सन्तानब्बे","अन्ठानब्बे","उनान्सय"],n=["","One","Two","Three","Four","Five","Six","Seven","Eight","Nine","Ten","Eleven","Twelve","Thirteen","Fourteen","Fifteen","Sixteen","Seventeen","Eighteen","Nineteen"],s=["","","Twenty","Thirty","Forty","Fifty","Sixty","Seventy","Eighty","Ninety"],o=e?["खर्ब","अर्ब","करोड","लाख","हजार","सय"]:["Kharaab","Arab","Crore","Lakh","Thousand","Hundred"],l=e?"ऋण":"Negative",h=e?"रुपैयाँ":"Rupees",d=e?"पैसा":"Paisa",f=e?"शून्य":"Zero",u=e?"दश":"Point";let m=String(a).trim(),y=!1;m.startsWith("-")&&(y=!0,m=m.slice(1));const[v,k]=m.split("."),g=parseInt(v,10);if(isNaN(g))return"";if(g===0&&!k)return f;function x(L){if(e)return L<20?i[L]:r[L];{if(L<20)return n[L];const F=Math.floor(L/10),C=L%10;return s[F]+(C?" "+n[C]:"")}}function w(L){if(L===0)return"";let F=L;const C=ie=>{const W=F%ie;return F=Math.floor(F/ie),W},T=C(1e3),H=C(100),O=C(100),V=C(100),j=C(100),he=[{value:C(100),label:o[0]},{value:j,label:o[1]},{value:V,label:o[2]},{value:O,label:o[3]},{value:H,label:o[4]},{value:Math.floor(T/100),label:o[5],suffix:!0}];let Z=[],ge=T%100;for(const ie of he)ie.value&&(ie.suffix?Z.push(e?i[ie.value]:n[ie.value],ie.label):Z.push(x(ie.value),ie.label));return ge&&Z.push(x(ge)),Z.filter(Boolean).join(" ")}let b=w(g);if(b&&t&&(b+=" "+h),k)if(t){const L=parseInt(k.substring(0,2).padEnd(2,"0"),10);if(L>0){const F=x(L);b+=" "+F+" "+d}}else{const L=k.split("").map(F=>e?i[parseInt(F,10)]||"":n[parseInt(F,10)]||"").join(" ");b+=" "+u+" "+L}return y&&(b=l+" "+b),b.trim().replace(/\s+/g," ")},Mse={install(a){a.config.globalProperties.$numToWords=BO}};exports.ContentLayout=sV;exports.CreateDebounce=xse;exports.CreateShortCutKey=wse;exports.CurrencyFormatterPlugin=dse;exports.DateRange=Kae;exports.DateSelector=Tae;exports.FocusNextPlugin=bse;exports.Icons=BT;exports.InputCurrency=use;exports.InputError=ose;exports.InputSelect=hse;exports.Loader=nie;exports.Modal=ZI;exports.NumbertoWordPlugin=Mse;exports.ScrollbarAnimateDropdown=fse;exports.ScrollbarScroll=lse;exports.Switch=gV;exports.Tabulator=Q$;exports.ToastPlugin=Jne;exports.Toggle=WF;exports.Tooltip=kse;exports.Towser=see;exports.UploadImage=rse;exports.WebSocketWrapper=vse;exports.Wizard=iie;exports.currencyFormatter=ED;exports.currencyUnformatter=LD;exports.focusNext=VO;exports.numToWord=BO;exports.toast=CD;
246
+ `).join("<br />")),Die(a)}let mi;var sc=new WeakMap;class At{constructor(...e){if(lie(this,sc,void 0),typeof window>"u")return;mi=this;const t=Object.freeze(this.constructor.argsToParams(e));this.params=t,this.isAwaitingPromise=!1,cie(sc,this,this._main(mi.params))}_main(e,t={}){if(IO(Object.assign({},t,e)),He.currentInstance){const n=k1.swalPromiseResolve.get(He.currentInstance),{isAwaitingPromise:s}=He.currentInstance;He.currentInstance._destroy(),s||n({isDismissed:!0}),yD()&&hO()}He.currentInstance=mi;const i=_ne(e,t);qne(i),Object.freeze(i),He.timeout&&(He.timeout.stop(),delete He.timeout),clearTimeout(He.restoreFocusTimeout);const r=Une(mi);return sO(mi,i),kt.innerParams.set(mi,i),jne(mi,r,i)}then(e){return cR(sc,this).then(e)}finally(e){return cR(sc,this).finally(e)}}const jne=(a,e,t)=>new Promise((i,r)=>{const n=s=>{a.close({isDismissed:!0,dismiss:s,isConfirmed:!1,isDenied:!1})};k1.swalPromiseResolve.set(a,i),k1.swalPromiseReject.set(a,r),e.confirmButton.onclick=()=>{Ure(a)},e.denyButton.onclick=()=>{Gre(a)},e.cancelButton.onclick=()=>{Wre(a,n)},e.closeButton.onclick=()=>{n(S1.close)},rne(t,e,n),ure(He,t,n),Hre(a,t),Hne(t),Gne(He,t,n),Wne(e,t),setTimeout(()=>{e.container.scrollTop=0})}),_ne=(a,e)=>{const t=Lne(a),i=Object.assign({},u1,e,t,a);return i.showClass=Object.assign({},u1.showClass,i.showClass),i.hideClass=Object.assign({},u1.hideClass,i.hideClass),i.animation===!1&&(i.showClass={backdrop:"swal2-noanimation"},i.hideClass={}),i},Une=a=>{const e={popup:st(),container:ba(),actions:z0(),confirmButton:Ci(),denyButton:Jl(),cancelButton:L1(),loader:T1(),closeButton:pD(),validationMessage:jS(),progressSteps:fD()};return kt.domCache.set(a,e),e},Gne=(a,e,t)=>{const i=_S();fa(i),e.timer&&(a.timeout=new Ene(()=>{t("timer"),delete a.timeout},e.timer),e.timerProgressBar&&(Jt(i),za(i,e,"timerProgressBar"),setTimeout(()=>{a.timeout&&a.timeout.running&&kD(e.timer)})))},Wne=(a,e)=>{if(!e.toast){if(!qS(e.allowEnterKey)){Wz("allowEnterKey"),Xne();return}Yne(a)||Qne(a,e)||JI(-1,1)}},Yne=a=>{const e=Array.from(a.popup.querySelectorAll("[autofocus]"));for(const t of e)if(t instanceof HTMLElement&&Ta(t))return t.focus(),!0;return!1},Qne=(a,e)=>e.focusDeny&&Ta(a.denyButton)?(a.denyButton.focus(),!0):e.focusCancel&&Ta(a.cancelButton)?(a.cancelButton.focus(),!0):e.focusConfirm&&Ta(a.confirmButton)?(a.confirmButton.focus(),!0):!1,Xne=()=>{document.activeElement instanceof HTMLElement&&typeof document.activeElement.blur=="function"&&document.activeElement.blur()};At.prototype.disableButtons=xO;At.prototype.enableButtons=wO;At.prototype.getInput=gO;At.prototype.disableInput=MO;At.prototype.enableInput=bO;At.prototype.hideLoading=fS;At.prototype.disableLoading=fS;At.prototype.showValidationMessage=CO;At.prototype.resetValidationMessage=EO;At.prototype.close=Xi;At.prototype.closePopup=Xi;At.prototype.closeModal=Xi;At.prototype.closeToast=Xi;At.prototype.rejectPromise=fO;At.prototype.update=FO;At.prototype._destroy=DO;Object.assign(At,Cne);Object.keys(ine).forEach(a=>{At[a]=function(...e){return mi&&mi[a]?mi[a](...e):null}});At.DismissReason=S1;At.version="11.26.10";const El=At;El.default=El;typeof document<"u"&&(function(a,e){var t=a.createElement("style");if(a.getElementsByTagName("head")[0].appendChild(t),t.styleSheet)t.styleSheet.disabled||(t.styleSheet.cssText=e);else try{t.innerHTML=e}catch{t.innerText=e}})(document,':root{--swal2-outline: 0 0 0 3px rgba(100, 150, 200, 0.5);--swal2-container-padding: 0.625em;--swal2-backdrop: rgba(0, 0, 0, 0.4);--swal2-backdrop-transition: background-color 0.15s;--swal2-width: 32em;--swal2-padding: 0 0 1.25em;--swal2-border: none;--swal2-border-radius: 0.3125rem;--swal2-background: white;--swal2-color: #545454;--swal2-show-animation: swal2-show 0.3s;--swal2-hide-animation: swal2-hide 0.15s forwards;--swal2-icon-zoom: 1;--swal2-icon-animations: true;--swal2-title-padding: 0.8em 1em 0;--swal2-html-container-padding: 1em 1.6em 0.3em;--swal2-input-border: 1px solid #d9d9d9;--swal2-input-border-radius: 0.1875em;--swal2-input-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.06), 0 0 0 3px transparent;--swal2-input-background: transparent;--swal2-input-transition: border-color 0.2s, box-shadow 0.2s;--swal2-input-hover-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.06), 0 0 0 3px transparent;--swal2-input-focus-border: 1px solid #b4dbed;--swal2-input-focus-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.06), 0 0 0 3px rgba(100, 150, 200, 0.5);--swal2-progress-step-background: #add8e6;--swal2-validation-message-background: #f0f0f0;--swal2-validation-message-color: #666;--swal2-footer-border-color: #eee;--swal2-footer-background: transparent;--swal2-footer-color: inherit;--swal2-timer-progress-bar-background: rgba(0, 0, 0, 0.3);--swal2-close-button-position: initial;--swal2-close-button-inset: auto;--swal2-close-button-font-size: 2.5em;--swal2-close-button-color: #ccc;--swal2-close-button-transition: color 0.2s, box-shadow 0.2s;--swal2-close-button-outline: initial;--swal2-close-button-box-shadow: inset 0 0 0 3px transparent;--swal2-close-button-focus-box-shadow: inset var(--swal2-outline);--swal2-close-button-hover-transform: none;--swal2-actions-justify-content: center;--swal2-actions-width: auto;--swal2-actions-margin: 1.25em auto 0;--swal2-actions-padding: 0;--swal2-actions-border-radius: 0;--swal2-actions-background: transparent;--swal2-action-button-transition: background-color 0.2s, box-shadow 0.2s;--swal2-action-button-hover: black 10%;--swal2-action-button-active: black 10%;--swal2-confirm-button-box-shadow: none;--swal2-confirm-button-border-radius: 0.25em;--swal2-confirm-button-background-color: #7066e0;--swal2-confirm-button-color: #fff;--swal2-deny-button-box-shadow: none;--swal2-deny-button-border-radius: 0.25em;--swal2-deny-button-background-color: #dc3741;--swal2-deny-button-color: #fff;--swal2-cancel-button-box-shadow: none;--swal2-cancel-button-border-radius: 0.25em;--swal2-cancel-button-background-color: #6e7881;--swal2-cancel-button-color: #fff;--swal2-toast-show-animation: swal2-toast-show 0.5s;--swal2-toast-hide-animation: swal2-toast-hide 0.1s forwards;--swal2-toast-border: none;--swal2-toast-box-shadow: 0 0 1px hsl(0deg 0% 0% / 0.075), 0 1px 2px hsl(0deg 0% 0% / 0.075), 1px 2px 4px hsl(0deg 0% 0% / 0.075), 1px 3px 8px hsl(0deg 0% 0% / 0.075), 2px 4px 16px hsl(0deg 0% 0% / 0.075)}[data-swal2-theme=dark]{--swal2-dark-theme-black: #19191a;--swal2-dark-theme-white: #e1e1e1;--swal2-background: var(--swal2-dark-theme-black);--swal2-color: var(--swal2-dark-theme-white);--swal2-footer-border-color: #555;--swal2-input-background: color-mix(in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10%);--swal2-validation-message-background: color-mix( in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10% );--swal2-validation-message-color: var(--swal2-dark-theme-white);--swal2-timer-progress-bar-background: rgba(255, 255, 255, 0.7)}@media(prefers-color-scheme: dark){[data-swal2-theme=auto]{--swal2-dark-theme-black: #19191a;--swal2-dark-theme-white: #e1e1e1;--swal2-background: var(--swal2-dark-theme-black);--swal2-color: var(--swal2-dark-theme-white);--swal2-footer-border-color: #555;--swal2-input-background: color-mix(in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10%);--swal2-validation-message-background: color-mix( in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10% );--swal2-validation-message-color: var(--swal2-dark-theme-white);--swal2-timer-progress-bar-background: rgba(255, 255, 255, 0.7)}}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown){overflow:hidden}body.swal2-height-auto{height:auto !important}body.swal2-no-backdrop .swal2-container{background-color:rgba(0,0,0,0) !important;pointer-events:none}body.swal2-no-backdrop .swal2-container .swal2-popup{pointer-events:all}body.swal2-no-backdrop .swal2-container .swal2-modal{box-shadow:0 0 10px var(--swal2-backdrop)}body.swal2-toast-shown .swal2-container{box-sizing:border-box;width:360px;max-width:100%;background-color:rgba(0,0,0,0);pointer-events:none}body.swal2-toast-shown .swal2-container.swal2-top{inset:0 auto auto 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-top-end,body.swal2-toast-shown .swal2-container.swal2-top-right{inset:0 0 auto auto}body.swal2-toast-shown .swal2-container.swal2-top-start,body.swal2-toast-shown .swal2-container.swal2-top-left{inset:0 auto auto 0}body.swal2-toast-shown .swal2-container.swal2-center-start,body.swal2-toast-shown .swal2-container.swal2-center-left{inset:50% auto auto 0;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-center{inset:50% auto auto 50%;transform:translate(-50%, -50%)}body.swal2-toast-shown .swal2-container.swal2-center-end,body.swal2-toast-shown .swal2-container.swal2-center-right{inset:50% 0 auto auto;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-start,body.swal2-toast-shown .swal2-container.swal2-bottom-left{inset:auto auto 0 0}body.swal2-toast-shown .swal2-container.swal2-bottom{inset:auto auto 0 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-end,body.swal2-toast-shown .swal2-container.swal2-bottom-right{inset:auto 0 0 auto}@media print{body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown){overflow-y:scroll !important}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown)>[aria-hidden=true]{display:none}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown) .swal2-container{position:static !important}}div:where(.swal2-container){display:grid;position:fixed;z-index:1060;inset:0;box-sizing:border-box;grid-template-areas:"top-start top top-end" "center-start center center-end" "bottom-start bottom-center bottom-end";grid-template-rows:minmax(min-content, auto) minmax(min-content, auto) minmax(min-content, auto);height:100%;padding:var(--swal2-container-padding);overflow-x:hidden;transition:var(--swal2-backdrop-transition);-webkit-overflow-scrolling:touch}div:where(.swal2-container).swal2-backdrop-show,div:where(.swal2-container).swal2-noanimation{background:var(--swal2-backdrop)}div:where(.swal2-container).swal2-backdrop-hide{background:rgba(0,0,0,0) !important}div:where(.swal2-container).swal2-top-start,div:where(.swal2-container).swal2-center-start,div:where(.swal2-container).swal2-bottom-start{grid-template-columns:minmax(0, 1fr) auto auto}div:where(.swal2-container).swal2-top,div:where(.swal2-container).swal2-center,div:where(.swal2-container).swal2-bottom{grid-template-columns:auto minmax(0, 1fr) auto}div:where(.swal2-container).swal2-top-end,div:where(.swal2-container).swal2-center-end,div:where(.swal2-container).swal2-bottom-end{grid-template-columns:auto auto minmax(0, 1fr)}div:where(.swal2-container).swal2-top-start>.swal2-popup{align-self:start}div:where(.swal2-container).swal2-top>.swal2-popup{grid-column:2;place-self:start center}div:where(.swal2-container).swal2-top-end>.swal2-popup,div:where(.swal2-container).swal2-top-right>.swal2-popup{grid-column:3;place-self:start end}div:where(.swal2-container).swal2-center-start>.swal2-popup,div:where(.swal2-container).swal2-center-left>.swal2-popup{grid-row:2;align-self:center}div:where(.swal2-container).swal2-center>.swal2-popup{grid-column:2;grid-row:2;place-self:center center}div:where(.swal2-container).swal2-center-end>.swal2-popup,div:where(.swal2-container).swal2-center-right>.swal2-popup{grid-column:3;grid-row:2;place-self:center end}div:where(.swal2-container).swal2-bottom-start>.swal2-popup,div:where(.swal2-container).swal2-bottom-left>.swal2-popup{grid-column:1;grid-row:3;align-self:end}div:where(.swal2-container).swal2-bottom>.swal2-popup{grid-column:2;grid-row:3;place-self:end center}div:where(.swal2-container).swal2-bottom-end>.swal2-popup,div:where(.swal2-container).swal2-bottom-right>.swal2-popup{grid-column:3;grid-row:3;place-self:end end}div:where(.swal2-container).swal2-grow-row>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-column:1/4;width:100%}div:where(.swal2-container).swal2-grow-column>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-row:1/4;align-self:stretch}div:where(.swal2-container).swal2-no-transition{transition:none !important}div:where(.swal2-container)[popover]{width:auto;border:0}div:where(.swal2-container) div:where(.swal2-popup){display:none;position:relative;box-sizing:border-box;grid-template-columns:minmax(0, 100%);width:var(--swal2-width);max-width:100%;padding:var(--swal2-padding);border:var(--swal2-border);border-radius:var(--swal2-border-radius);background:var(--swal2-background);color:var(--swal2-color);font-family:inherit;font-size:1rem;container-name:swal2-popup}div:where(.swal2-container) div:where(.swal2-popup):focus{outline:none}div:where(.swal2-container) div:where(.swal2-popup).swal2-loading{overflow-y:hidden}div:where(.swal2-container) div:where(.swal2-popup).swal2-draggable{cursor:grab}div:where(.swal2-container) div:where(.swal2-popup).swal2-draggable div:where(.swal2-icon){cursor:grab}div:where(.swal2-container) div:where(.swal2-popup).swal2-dragging{cursor:grabbing}div:where(.swal2-container) div:where(.swal2-popup).swal2-dragging div:where(.swal2-icon){cursor:grabbing}div:where(.swal2-container) h2:where(.swal2-title){position:relative;max-width:100%;margin:0;padding:var(--swal2-title-padding);color:inherit;font-size:1.875em;font-weight:600;text-align:center;text-transform:none;overflow-wrap:break-word;cursor:initial}div:where(.swal2-container) div:where(.swal2-actions){display:flex;z-index:1;box-sizing:border-box;flex-wrap:wrap;align-items:center;justify-content:var(--swal2-actions-justify-content);width:var(--swal2-actions-width);margin:var(--swal2-actions-margin);padding:var(--swal2-actions-padding);border-radius:var(--swal2-actions-border-radius);background:var(--swal2-actions-background)}div:where(.swal2-container) div:where(.swal2-loader){display:none;align-items:center;justify-content:center;width:2.2em;height:2.2em;margin:0 1.875em;animation:swal2-rotate-loading 1.5s linear 0s infinite normal;border-width:.25em;border-style:solid;border-radius:100%;border-color:#2778c4 rgba(0,0,0,0) #2778c4 rgba(0,0,0,0)}div:where(.swal2-container) button:where(.swal2-styled){margin:.3125em;padding:.625em 1.1em;transition:var(--swal2-action-button-transition);border:none;box-shadow:0 0 0 3px rgba(0,0,0,0);font-weight:500}div:where(.swal2-container) button:where(.swal2-styled):not([disabled]){cursor:pointer}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm){border-radius:var(--swal2-confirm-button-border-radius);background:initial;background-color:var(--swal2-confirm-button-background-color);box-shadow:var(--swal2-confirm-button-box-shadow);color:var(--swal2-confirm-button-color);font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm):hover{background-color:color-mix(in srgb, var(--swal2-confirm-button-background-color), var(--swal2-action-button-hover))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm):active{background-color:color-mix(in srgb, var(--swal2-confirm-button-background-color), var(--swal2-action-button-active))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny){border-radius:var(--swal2-deny-button-border-radius);background:initial;background-color:var(--swal2-deny-button-background-color);box-shadow:var(--swal2-deny-button-box-shadow);color:var(--swal2-deny-button-color);font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny):hover{background-color:color-mix(in srgb, var(--swal2-deny-button-background-color), var(--swal2-action-button-hover))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny):active{background-color:color-mix(in srgb, var(--swal2-deny-button-background-color), var(--swal2-action-button-active))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel){border-radius:var(--swal2-cancel-button-border-radius);background:initial;background-color:var(--swal2-cancel-button-background-color);box-shadow:var(--swal2-cancel-button-box-shadow);color:var(--swal2-cancel-button-color);font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel):hover{background-color:color-mix(in srgb, var(--swal2-cancel-button-background-color), var(--swal2-action-button-hover))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel):active{background-color:color-mix(in srgb, var(--swal2-cancel-button-background-color), var(--swal2-action-button-active))}div:where(.swal2-container) button:where(.swal2-styled):focus-visible{outline:none;box-shadow:var(--swal2-action-button-focus-box-shadow)}div:where(.swal2-container) button:where(.swal2-styled)[disabled]:not(.swal2-loading){opacity:.4}div:where(.swal2-container) button:where(.swal2-styled)::-moz-focus-inner{border:0}div:where(.swal2-container) div:where(.swal2-footer){margin:1em 0 0;padding:1em 1em 0;border-top:1px solid var(--swal2-footer-border-color);background:var(--swal2-footer-background);color:var(--swal2-footer-color);font-size:1em;text-align:center;cursor:initial}div:where(.swal2-container) .swal2-timer-progress-bar-container{position:absolute;right:0;bottom:0;left:0;grid-column:auto !important;overflow:hidden;border-bottom-right-radius:var(--swal2-border-radius);border-bottom-left-radius:var(--swal2-border-radius)}div:where(.swal2-container) div:where(.swal2-timer-progress-bar){width:100%;height:.25em;background:var(--swal2-timer-progress-bar-background)}div:where(.swal2-container) img:where(.swal2-image){max-width:100%;margin:2em auto 1em;cursor:initial}div:where(.swal2-container) button:where(.swal2-close){position:var(--swal2-close-button-position);inset:var(--swal2-close-button-inset);z-index:2;align-items:center;justify-content:center;width:1.2em;height:1.2em;margin-top:0;margin-right:0;margin-bottom:-1.2em;padding:0;overflow:hidden;transition:var(--swal2-close-button-transition);border:none;border-radius:var(--swal2-border-radius);outline:var(--swal2-close-button-outline);background:rgba(0,0,0,0);color:var(--swal2-close-button-color);font-family:monospace;font-size:var(--swal2-close-button-font-size);cursor:pointer;justify-self:end}div:where(.swal2-container) button:where(.swal2-close):hover{transform:var(--swal2-close-button-hover-transform);background:rgba(0,0,0,0);color:#f27474}div:where(.swal2-container) button:where(.swal2-close):focus-visible{outline:none;box-shadow:var(--swal2-close-button-focus-box-shadow)}div:where(.swal2-container) button:where(.swal2-close)::-moz-focus-inner{border:0}div:where(.swal2-container) div:where(.swal2-html-container){z-index:1;justify-content:center;margin:0;padding:var(--swal2-html-container-padding);overflow:auto;color:inherit;font-size:1.125em;font-weight:normal;line-height:normal;text-align:center;overflow-wrap:break-word;word-break:break-word;cursor:initial}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea),div:where(.swal2-container) select:where(.swal2-select),div:where(.swal2-container) div:where(.swal2-radio),div:where(.swal2-container) label:where(.swal2-checkbox){margin:1em 2em 3px}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea){box-sizing:border-box;width:auto;transition:var(--swal2-input-transition);border:var(--swal2-input-border);border-radius:var(--swal2-input-border-radius);background:var(--swal2-input-background);box-shadow:var(--swal2-input-box-shadow);color:inherit;font-size:1.125em}div:where(.swal2-container) input:where(.swal2-input).swal2-inputerror,div:where(.swal2-container) input:where(.swal2-file).swal2-inputerror,div:where(.swal2-container) textarea:where(.swal2-textarea).swal2-inputerror{border-color:#f27474 !important;box-shadow:0 0 2px #f27474 !important}div:where(.swal2-container) input:where(.swal2-input):hover,div:where(.swal2-container) input:where(.swal2-file):hover,div:where(.swal2-container) textarea:where(.swal2-textarea):hover{box-shadow:var(--swal2-input-hover-box-shadow)}div:where(.swal2-container) input:where(.swal2-input):focus,div:where(.swal2-container) input:where(.swal2-file):focus,div:where(.swal2-container) textarea:where(.swal2-textarea):focus{border:var(--swal2-input-focus-border);outline:none;box-shadow:var(--swal2-input-focus-box-shadow)}div:where(.swal2-container) input:where(.swal2-input)::placeholder,div:where(.swal2-container) input:where(.swal2-file)::placeholder,div:where(.swal2-container) textarea:where(.swal2-textarea)::placeholder{color:#ccc}div:where(.swal2-container) .swal2-range{margin:1em 2em 3px;background:var(--swal2-background)}div:where(.swal2-container) .swal2-range input{width:80%}div:where(.swal2-container) .swal2-range output{width:20%;color:inherit;font-weight:600;text-align:center}div:where(.swal2-container) .swal2-range input,div:where(.swal2-container) .swal2-range output{height:2.625em;padding:0;font-size:1.125em;line-height:2.625em}div:where(.swal2-container) .swal2-input{height:2.625em;padding:0 .75em}div:where(.swal2-container) .swal2-file{width:75%;margin-right:auto;margin-left:auto;background:var(--swal2-input-background);font-size:1.125em}div:where(.swal2-container) .swal2-textarea{height:6.75em;padding:.75em}div:where(.swal2-container) .swal2-select{min-width:50%;max-width:100%;padding:.375em .625em;background:var(--swal2-input-background);color:inherit;font-size:1.125em}div:where(.swal2-container) .swal2-radio,div:where(.swal2-container) .swal2-checkbox{align-items:center;justify-content:center;background:var(--swal2-background);color:inherit}div:where(.swal2-container) .swal2-radio label,div:where(.swal2-container) .swal2-checkbox label{margin:0 .6em;font-size:1.125em}div:where(.swal2-container) .swal2-radio input,div:where(.swal2-container) .swal2-checkbox input{flex-shrink:0;margin:0 .4em}div:where(.swal2-container) label:where(.swal2-input-label){display:flex;justify-content:center;margin:1em auto 0}div:where(.swal2-container) div:where(.swal2-validation-message){align-items:center;justify-content:center;margin:1em 0 0;padding:.625em;overflow:hidden;background:var(--swal2-validation-message-background);color:var(--swal2-validation-message-color);font-size:1em;font-weight:300}div:where(.swal2-container) div:where(.swal2-validation-message)::before{content:"!";display:inline-block;width:1.5em;min-width:1.5em;height:1.5em;margin:0 .625em;border-radius:50%;background-color:#f27474;color:#fff;font-weight:600;line-height:1.5em;text-align:center}div:where(.swal2-container) .swal2-progress-steps{flex-wrap:wrap;align-items:center;max-width:100%;margin:1.25em auto;padding:0;background:rgba(0,0,0,0);font-weight:600}div:where(.swal2-container) .swal2-progress-steps li{display:inline-block;position:relative}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step{z-index:20;flex-shrink:0;width:2em;height:2em;border-radius:2em;background:#2778c4;color:#fff;line-height:2em;text-align:center}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step{background:#2778c4}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step{background:var(--swal2-progress-step-background);color:#fff}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step-line{background:var(--swal2-progress-step-background)}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step-line{z-index:10;flex-shrink:0;width:2.5em;height:.4em;margin:0 -1px;background:#2778c4}div:where(.swal2-icon){position:relative;box-sizing:content-box;justify-content:center;width:5em;height:5em;margin:2.5em auto .6em;zoom:var(--swal2-icon-zoom);border:.25em solid rgba(0,0,0,0);border-radius:50%;border-color:#000;font-family:inherit;line-height:5em;cursor:default;user-select:none}div:where(.swal2-icon) .swal2-icon-content{display:flex;align-items:center;font-size:3.75em}div:where(.swal2-icon).swal2-error{border-color:#f27474;color:#f27474}div:where(.swal2-icon).swal2-error .swal2-x-mark{position:relative;flex-grow:1}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line]{display:block;position:absolute;top:2.3125em;width:2.9375em;height:.3125em;border-radius:.125em;background-color:#f27474}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=left]{left:1.0625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=right]{right:1em;transform:rotate(-45deg)}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-error.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-error.swal2-icon-show .swal2-x-mark{animation:swal2-animate-error-x-mark .5s}}div:where(.swal2-icon).swal2-warning{border-color:#f8bb86;color:#f8bb86}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-warning.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-warning.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .5s}}div:where(.swal2-icon).swal2-info{border-color:#3fc3ee;color:#3fc3ee}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-info.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-info.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .8s}}div:where(.swal2-icon).swal2-question{border-color:#87adbd;color:#87adbd}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-question.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-question.swal2-icon-show .swal2-icon-content{animation:swal2-animate-question-mark .8s}}div:where(.swal2-icon).swal2-success{border-color:#a5dc86;color:#a5dc86}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line]{position:absolute;width:3.75em;height:7.5em;border-radius:50%}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.4375em;left:-2.0635em;transform:rotate(-45deg);transform-origin:3.75em 3.75em;border-radius:7.5em 0 0 7.5em}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.6875em;left:1.875em;transform:rotate(-45deg);transform-origin:0 3.75em;border-radius:0 7.5em 7.5em 0}div:where(.swal2-icon).swal2-success .swal2-success-ring{position:absolute;z-index:2;top:-0.25em;left:-0.25em;box-sizing:content-box;width:100%;height:100%;border:.25em solid rgba(165,220,134,.3);border-radius:50%}div:where(.swal2-icon).swal2-success .swal2-success-fix{position:absolute;z-index:1;top:.5em;left:1.625em;width:.4375em;height:5.625em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-success [class^=swal2-success-line]{display:block;position:absolute;z-index:2;height:.3125em;border-radius:.125em;background-color:#a5dc86}div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=tip]{top:2.875em;left:.8125em;width:1.5625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=long]{top:2.375em;right:.5em;width:2.9375em;transform:rotate(-45deg)}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-animate-success-line-tip .75s}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-animate-success-line-long .75s}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-circular-line-right{animation:swal2-rotate-success-circular-line 4.25s ease-in}}[class^=swal2]{-webkit-tap-highlight-color:rgba(0,0,0,0)}.swal2-show{animation:var(--swal2-show-animation)}.swal2-hide{animation:var(--swal2-hide-animation)}.swal2-noanimation{transition:none}.swal2-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}.swal2-rtl .swal2-close{margin-right:initial;margin-left:0}.swal2-rtl .swal2-timer-progress-bar{right:0;left:auto}.swal2-toast{box-sizing:border-box;grid-column:1/4 !important;grid-row:1/4 !important;grid-template-columns:min-content auto min-content;padding:1em;overflow-y:hidden;border:var(--swal2-toast-border);background:var(--swal2-background);box-shadow:var(--swal2-toast-box-shadow);pointer-events:all}.swal2-toast>*{grid-column:2}.swal2-toast h2:where(.swal2-title){margin:.5em 1em;padding:0;font-size:1em;text-align:initial}.swal2-toast .swal2-loading{justify-content:center}.swal2-toast input:where(.swal2-input){height:2em;margin:.5em;font-size:1em}.swal2-toast .swal2-validation-message{font-size:1em}.swal2-toast div:where(.swal2-footer){margin:.5em 0 0;padding:.5em 0 0;font-size:.8em}.swal2-toast button:where(.swal2-close){grid-column:3/3;grid-row:1/99;align-self:center;width:.8em;height:.8em;margin:0;font-size:2em}.swal2-toast div:where(.swal2-html-container){margin:.5em 1em;padding:0;overflow:initial;font-size:1em;text-align:initial}.swal2-toast div:where(.swal2-html-container):empty{padding:0}.swal2-toast .swal2-loader{grid-column:1;grid-row:1/99;align-self:center;width:2em;height:2em;margin:.25em}.swal2-toast .swal2-icon{grid-column:1;grid-row:1/99;align-self:center;width:2em;min-width:2em;height:2em;margin:0 .5em 0 0}.swal2-toast .swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:1.8em;font-weight:bold}.swal2-toast .swal2-icon.swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line]{top:.875em;width:1.375em}.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:.3125em}.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:.3125em}.swal2-toast div:where(.swal2-actions){justify-content:flex-start;height:auto;margin:0;margin-top:.5em;padding:0 .5em}.swal2-toast button:where(.swal2-styled){margin:.25em .5em;padding:.4em .6em;font-size:1em}.swal2-toast .swal2-success{border-color:#a5dc86}.swal2-toast .swal2-success [class^=swal2-success-circular-line]{position:absolute;width:1.6em;height:3em;border-radius:50%}.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.8em;left:-0.5em;transform:rotate(-45deg);transform-origin:2em 2em;border-radius:4em 0 0 4em}.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.25em;left:.9375em;transform-origin:0 1.5em;border-radius:0 4em 4em 0}.swal2-toast .swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-toast .swal2-success .swal2-success-fix{top:0;left:.4375em;width:.4375em;height:2.6875em}.swal2-toast .swal2-success [class^=swal2-success-line]{height:.3125em}.swal2-toast .swal2-success [class^=swal2-success-line][class$=tip]{top:1.125em;left:.1875em;width:.75em}.swal2-toast .swal2-success [class^=swal2-success-line][class$=long]{top:.9375em;right:.1875em;width:1.375em}@container swal2-popup style(--swal2-icon-animations:true){.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-toast-animate-success-line-tip .75s}.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-toast-animate-success-line-long .75s}}.swal2-toast.swal2-show{animation:var(--swal2-toast-show-animation)}.swal2-toast.swal2-hide{animation:var(--swal2-toast-hide-animation)}@keyframes swal2-show{0%{transform:translate3d(0, -50px, 0) scale(0.9);opacity:0}100%{transform:translate3d(0, 0, 0) scale(1);opacity:1}}@keyframes swal2-hide{0%{transform:translate3d(0, 0, 0) scale(1);opacity:1}100%{transform:translate3d(0, -50px, 0) scale(0.9);opacity:0}}@keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-0.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}100%{top:2.8125em;left:.8125em;width:1.5625em}}@keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}100%{top:2.375em;right:.5em;width:2.9375em}}@keyframes swal2-rotate-success-circular-line{0%{transform:rotate(-45deg)}5%{transform:rotate(-45deg)}12%{transform:rotate(-405deg)}100%{transform:rotate(-405deg)}}@keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;transform:scale(0.4);opacity:0}50%{margin-top:1.625em;transform:scale(0.4);opacity:0}80%{margin-top:-0.375em;transform:scale(1.15)}100%{margin-top:0;transform:scale(1);opacity:1}}@keyframes swal2-animate-error-icon{0%{transform:rotateX(100deg);opacity:0}100%{transform:rotateX(0deg);opacity:1}}@keyframes swal2-rotate-loading{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes swal2-animate-question-mark{0%{transform:rotateY(-360deg)}100%{transform:rotateY(0)}}@keyframes swal2-animate-i-mark{0%{transform:rotateZ(45deg);opacity:0}25%{transform:rotateZ(-25deg);opacity:.4}50%{transform:rotateZ(15deg);opacity:.8}75%{transform:rotateZ(-5deg);opacity:1}100%{transform:rotateX(0);opacity:1}}@keyframes swal2-toast-show{0%{transform:translateY(-0.625em) rotateZ(2deg)}33%{transform:translateY(0) rotateZ(-2deg)}66%{transform:translateY(0.3125em) rotateZ(2deg)}100%{transform:translateY(0) rotateZ(0deg)}}@keyframes swal2-toast-hide{100%{transform:rotateZ(1deg);opacity:0}}@keyframes swal2-toast-animate-success-line-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-0.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}100%{top:1.125em;left:.1875em;width:.75em}}@keyframes swal2-toast-animate-success-line-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}100%{top:.9375em;right:.1875em;width:1.375em}}');const oc=a=>El.mixin({toast:!0,position:"top-end",showConfirmButton:!1,timer:a||3e3,timerProgressBar:!0,didOpen:e=>{e.onmouseenter=El.stopTimer,e.onmouseleave=El.resumeTimer,e.onclick=()=>{El.close()}}}),CD={error(a,e){oc(e).fire({icon:"error",title:a})},warn(a,e){oc(e).fire({icon:"warning",title:a})},success(a,e){oc(e).fire({icon:"success",title:a})},info(a,e){oc(e).fire({icon:"info",title:a})}},Jne={install(a){a.config.globalProperties.$toast=CD}},Kne={key:0,class:"border-2 border-dashed border-gray-300 rounded-lg p-8 text-center hover:border-gray-400 transition-colors h-[300px] flex select-none"},Zne={class:"space-y-4 m-auto"},$ne={class:"text-sm text-gray-500 mt-2"},ese={key:1,class:"select-none"},tse=["src"],ase=["onMousedown"],ise={key:1,class:"absolute inset-0 pointer-events-none"},rse=p.defineComponent({__name:"UploadImage",props:{show:{type:Boolean,default:!1},uploadSize:{default:2}},setup(a,{emit:e}){const t=a,i=p.ref([{name:"Upload Image",link:"#"}]),r=e,n=p.ref([{title:"Close",emit:"onClose"}]);p.ref(!0);const s=p.ref(),o=p.ref(""),l=p.ref(!1),h=p.ref(""),d=p.ref(570),f=p.ref(300),u=p.ref(null),m=p.ref({width:0,height:0,scaleX:1,scaleY:1}),y=p.ref({x:0,y:0,height:0,width:0}),v=p.ref(!1),k=p.ref({x:0,y:0}),g=p.ref(!1),x=p.ref(""),w=p.ref(1),b=p.ref(!1);p.ref({x:0,y:0});const L=p.ref({x:0,y:0}),F=()=>{s.value&&s.value.click()},C=p.computed(()=>{if(!y.value)return[];const{width:W,height:K}=y.value;return[{position:"nw",class:"cursor-nw-resize absolute w-3 h-3 bg-blue-500 border border-white cursor-pointer",style:{left:"-6px",top:"-6px"}},{position:"ne",class:"cursor-ne-resize absolute w-3 h-3 bg-blue-500 border border-white cursor-pointer",style:{right:"-6px",top:"-6px"}},{position:"sw",class:"cursor-sw-resize absolute w-3 h-3 bg-blue-500 border border-white cursor-pointer",style:{left:"-6px",bottom:"-6px"}},{position:"se",class:"cursor-se-resize absolute w-3 h-3 bg-blue-500 border border-white cursor-pointer",style:{right:"-6px",bottom:"-6px"}}]}),T=()=>{const W=w.value,K=L.value,B=m.value.width,ce=m.value.height,ee=B/ce,oe=d.value/f.value;let re=0,ue=0;ee>oe?(re=d.value*W,ue=d.value/ee*W):(ue=f.value*W,re=f.value*ee*W);const Me=(d.value-re)/2+K.x,Ce=(f.value-ue)/2+K.y;return{left:Me,top:Ce,right:Me+re,bottom:Ce+ue,width:re,height:ue}},H=W=>{const K=t.uploadSize,B=W.target.files[0];if(B&&B.type.startsWith("image/")&&s.value){if(B.size/1048576>K){CD.error(`Upload size mute be below ${t.uploadSize} MB.`),s.value.value="";return}const ee=new FileReader;ee.onload=oe=>{o.value=oe.target.result,l.value=!0,h.value=""},ee.readAsDataURL(B),n.value=[{title:"Cancel",emit:"onCancel",class:"btn btn-danger"},{title:"Reset",emit:"onReset",class:"btn-outline btn-danger"},{title:"Crop",emit:"onCrop"}]}},O=()=>{if(!u.value)return;const W=u.value,K=W.naturalWidth,B=W.naturalHeight;m.value={width:K,height:B,scaleX:K/d.value,scaleY:B/f.value},w.value=1,L.value={x:0,y:0};const ce=200,ee=200;y.value={x:(d.value-ce)/2,y:(f.value-ee)/2,width:ce,height:ee}},V=W=>{v.value=!0,k.value={x:W.clientX-y.value.x,y:W.clientY-y.value.y},W.preventDefault()},j=(W,K)=>{g.value=!0,x.value=W,k.value={x:K.clientX,y:K.clientY,cropX:y.value.x,cropY:y.value.y,cropWidth:y.value.width,cropHeight:y.value.height},K.preventDefault()},J=()=>{v.value=!1,g.value=!1,b.value=!1,x.value=""},he=W=>{if(v.value){const K=T(),B=W.clientX-k.value.x,ce=W.clientY-k.value.y,ee=Math.max(0,K.left),oe=Math.max(0,K.top),re=Math.min(d.value-y.value.width,K.right-y.value.width),ue=Math.min(f.value-y.value.height,K.bottom-y.value.height);y.value={...y.value,x:Math.min(Math.max(B,ee),re),y:Math.min(Math.max(ce,oe),ue)}}else if(g.value){const K=W.clientX-k.value.x,B=W.clientY-k.value.y,ce=T();let ee={...y.value};const oe=50;switch(x.value){case"nw":ee.x=Math.max(Math.max(0,ce.left),Math.min(k.value.cropX+K,k.value.cropX+k.value.cropWidth-oe)),ee.y=Math.max(Math.max(0,ce.top),Math.min(k.value.cropY+B,k.value.cropY+k.value.cropHeight-oe)),ee.width=k.value.cropWidth-(ee.x-k.value.cropX),ee.height=k.value.cropHeight-(ee.y-k.value.cropY);break;case"ne":ee.y=Math.max(Math.max(0,ce.top),Math.min(k.value.cropY+B,k.value.cropY+k.value.cropHeight-oe)),ee.height=k.value.cropHeight-(ee.y-k.value.cropY),ee.width=Math.min(Math.min(d.value-ee.x,ce.right-ee.x),Math.max(oe,k.value.cropWidth+K));break;case"sw":ee.x=Math.max(Math.max(0,ce.left),Math.min(k.value.cropX+K,k.value.cropX+k.value.cropWidth-oe)),ee.width=k.value.cropWidth-(ee.x-k.value.cropX),ee.height=Math.min(Math.min(f.value-ee.y,ce.bottom-ee.y),Math.max(oe,k.value.cropHeight+B));break;case"se":ee.width=Math.min(Math.min(d.value-ee.x,ce.right-ee.x),Math.max(oe,k.value.cropWidth+K)),ee.height=Math.min(Math.min(f.value-ee.y,ce.bottom-ee.y),Math.max(oe,k.value.cropHeight+B));break}y.value=ee}},Z=W=>{const K=y.value,B=W.currentTarget.getBoundingClientRect(),ce=W.clientX-B.left,ee=W.clientY-B.top;ce>=K.x&&ce<=K.x+K.width&&ee>=K.y&&ee<=K.y+K.height||(b.value=!0,k.value={x:W.clientX-L.value.x,y:W.clientY-L.value.y},W.preventDefault())},ge=()=>{if(!y.value||!u.value)return;const W=u.value,K=m.value.width,B=m.value.height,ce=w.value,ee=L.value.x,oe=L.value.y,re=d.value,ue=f.value,Me=K/B,Ce=re/ue;let A=0,_=0;Me>Ce?(A=re*ce,_=re/Me*ce):(_=ue*ce,A=ue*Me*ce);const q=(re-A)/2+ee,S=(ue-_)/2+oe,N=y.value.x-q,E=y.value.y-S,ne=K/A,ye=B/_,de=N*ne,Ie=E*ye,ve=y.value.width*ne,Re=y.value.height*ye,$e=Math.max(0,de),rt=Math.max(0,Ie),gt=Math.max(1,Math.min(K-$e,ve)),Le=Math.max(1,Math.min(B-rt,Re)),We=document.createElement("canvas");We.width=gt,We.height=Le;const we=We.getContext("2d");we&&(we.drawImage(W,$e,rt,gt,Le,0,0,gt,Le),h.value=We.toDataURL("image/png"),r("onImageCrop",h.value),ie())},ie=()=>{l.value=!1,o.value="",y.value={},h.value="",L.value={x:0,y:0},w.value=1,s.value&&(s.value.value=""),n.value=[{title:"Close",emit:"onClose"}]};return p.onMounted(()=>{document.addEventListener("mousemove",he),document.addEventListener("mouseup",J)}),p.onUnmounted(()=>{document.removeEventListener("mousemove",he),document.removeEventListener("mouseup",J)}),(W,K)=>(p.openBlock(),p.createBlock(ZI,{title:i.value,actions:n.value,show:a.show,onOnClose:K[0]||(K[0]=B=>r("onClose")),onOnCrop:ge,onOnReset:ie,onOnCancel:K[1]||(K[1]=B=>{ie(),r("onClose")})},{default:p.withCtx(()=>[l.value?(p.openBlock(),p.createElementBlock("div",ese,[p.createElementVNode("div",{ref:"cropperContainer",class:"relative mx-auto shadow-sm overflow-hidden",style:p.normalizeStyle({width:d.value+"px",height:f.value+"px",backgroundImage:`url(${p.unref(sie)})`}),onMousedown:Z},[p.createElementVNode("img",{ref_key:"cropperImage",ref:u,src:o.value,class:"w-full h-full object-contain",style:p.normalizeStyle({transform:`scale(${w.value}) translate(${L.value.x}px, ${L.value.y}px)`}),onLoad:O},null,44,tse),y.value?(p.openBlock(),p.createElementBlock("div",{key:0,class:"absolute border-2 border-primary border-dashed cursor-move",style:p.normalizeStyle({left:y.value.x+"px",top:y.value.y+"px",width:y.value.width+"px",height:y.value.height+"px"}),onMousedown:V},[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(C.value,B=>(p.openBlock(),p.createElementBlock("div",{key:B.position,class:p.normalizeClass(B.class),style:p.normalizeStyle(B.style),onMousedown:p.withModifiers(ce=>j(B.position,ce),["stop"])},null,46,ase))),128))],36)):p.createCommentVNode("",!0),y.value?(p.openBlock(),p.createElementBlock("div",ise,[p.createElementVNode("div",{class:"absolute bg-black/20",style:p.normalizeStyle({left:"0px",top:"0px",width:"100%",height:y.value.y+"px"})},null,4),p.createElementVNode("div",{class:"absolute bg-black/20",style:p.normalizeStyle({left:"0px",top:y.value.y+y.value.height+"px",width:"100%",height:f.value-y.value.y-y.value.height+"px"})},null,4),p.createElementVNode("div",{class:"absolute bg-black/20",style:p.normalizeStyle({left:"0px",top:y.value.y+"px",width:y.value.x+"px",height:y.value.height+"px"})},null,4),p.createElementVNode("div",{class:"absolute bg-black/20",style:p.normalizeStyle({left:y.value.x+y.value.width+"px",top:y.value.y+"px",width:d.value-y.value.x-y.value.width+"px",height:y.value.height+"px"})},null,4)])):p.createCommentVNode("",!0)],36)])):(p.openBlock(),p.createElementBlock("div",Kne,[p.createElementVNode("input",{ref_key:"fileInput",ref:s,type:"file",class:"hidden",onChange:H,accept:"image/png, image/jpeg, image/jpg, image/webp"},null,544),p.createElementVNode("div",Zne,[K[2]||(K[2]=p.createElementVNode("div",{class:"mx-auto w-16 h-16 bg-gray-100 rounded-full flex items-center justify-center"},[p.createElementVNode("svg",{class:"w-8 h-8 text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[p.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 16l4.586-4.586a2 2 0 012.828 0L16 16m-2-2l1.586-1.586a2 2 0 012.828 0L20 14m-6-6h.01M6 20h12a2 2 0 002-2V6a2 2 0 00-2-2H6a2 2 0 00-2 2v12a2 2 0 002 2z"})])],-1)),p.createElementVNode("div",null,[p.createElementVNode("button",{class:"btn",onClick:F},"Choose Image"),p.createElementVNode("p",$ne,"PNG, JPG up to "+p.toDisplayString(a.uploadSize)+" MB",1)])])]))]),_:1},8,["title","actions","show"]))}}),nse=(a,e)=>{if(e.value){const t=a.querySelector("input"),i=document.createElement("span");i.classList.add("field-error","error-message"),t?.classList.add("input-error"),i.textContent=e.value,a.appendChild(i)}},sse=(a,e)=>{const t=a.querySelector("input"),i=a.querySelector(".error-message");if(!i&&e.value){const r=document.createElement("span");r.classList.add("field-error","error-message"),r.textContent=e.value,t?.classList.add("input-error"),a.appendChild(r)}else e.value?(a.classList.add("input-error"),t?.classList.add("input-error"),i&&(i.textContent=e.value)):(t?.classList.remove("input-error"),i&&i.remove())},ose={mounted:nse,updated:sse},MI=new WeakMap,lse={mounted(a,e){let t=null,i=0;a.classList.add("hide-scrollbar");const r=()=>{a.classList.remove("hide-scrollbar")},n=()=>{a.classList.add("hide-scrollbar"),i=Date.now()},s=()=>{Date.now()-i>=100&&r(),t&&clearTimeout(t),t=setTimeout(n,1e3)};a.addEventListener("scroll",s),MI.set(a,s)},unmounted(a){const e=MI.get(a);e&&(a.removeEventListener("scroll",e),MI.delete(a))}};var CI={exports:{}},wR;function cse(){if(wR)return CI.exports;wR=1;var a=CI.exports={},e,t;function i(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?e=setTimeout:e=i}catch{e=i}try{typeof clearTimeout=="function"?t=clearTimeout:t=r}catch{t=r}})();function n(v){if(e===setTimeout)return setTimeout(v,0);if((e===i||!e)&&setTimeout)return e=setTimeout,setTimeout(v,0);try{return e(v,0)}catch{try{return e.call(null,v,0)}catch{return e.call(this,v,0)}}}function s(v){if(t===clearTimeout)return clearTimeout(v);if((t===r||!t)&&clearTimeout)return t=clearTimeout,clearTimeout(v);try{return t(v)}catch{try{return t.call(null,v)}catch{return t.call(this,v)}}}var o=[],l=!1,h,d=-1;function f(){!l||!h||(l=!1,h.length?o=h.concat(o):d=-1,o.length&&u())}function u(){if(!l){var v=n(f);l=!0;for(var k=o.length;k;){for(h=o,o=[];++d<k;)h&&h[d].run();d=-1,k=o.length}h=null,l=!1,s(v)}}a.nextTick=function(v){var k=new Array(arguments.length-1);if(arguments.length>1)for(var g=1;g<arguments.length;g++)k[g-1]=arguments[g];o.push(new m(v,k)),o.length===1&&!l&&n(u)};function m(v,k){this.fun=v,this.array=k}m.prototype.run=function(){this.fun.apply(null,this.array)},a.title="browser",a.browser=!0,a.env={},a.argv=[],a.version="",a.versions={};function y(){}return a.on=y,a.addListener=y,a.once=y,a.off=y,a.removeListener=y,a.removeAllListeners=y,a.emit=y,a.prependListener=y,a.prependOnceListener=y,a.listeners=function(v){return[]},a.binding=function(v){throw new Error("process.binding is not supported")},a.cwd=function(){return"/"},a.chdir=function(v){throw new Error("process.chdir is not supported")},a.umask=function(){return 0},CI.exports}var OO=cse();const EI=new WeakMap,hse={mounted(a){OO.nextTick(()=>{const e=()=>{typeof a.select=="function"&&a.select()};a.addEventListener("focus",e),EI.set(a,e)})},unmounted(a){const e=EI.get(a);e&&(a.removeEventListener("focus",e),EI.delete(a))}},ED=(a,e,t="RS.",i="usa",r="nepali")=>{const n=parseFloat(a);if(isNaN(n))return"";const s=i==="euro",o=s?",":".",l=s?".":",",h=n.toFixed(2).split(".");let d=h[0];const f=h[1];if(r==="nepali"){const u=d.slice(-3),m=d.slice(0,-3),y=m.replace(/\B(?=(\d{2})+(?!\d))/g,l);d=m?y+l+u:u}else d=d.replace(/\B(?=(\d{3})+(?!\d))/g,l);return e&&t?`${t}${d}${o}${f}`:`${d}${o}${f}`},LD=(a,e,t="RS.",i="usa")=>{if(!a)return 0;const r=i==="euro",n=r?",":".",s=r?".":",";let o=a.trim();e&&t&&o.startsWith(t)&&(o=o.slice(t.length).trim());const l=new RegExp(`\\${s}(?=\\d{2,3})`,"g");o=o.replace(l,"");const h=o.lastIndexOf(n);h!==-1&&n!=="."&&(o=o.slice(0,h)+"."+o.slice(h+1));const d=parseFloat(o);return isNaN(d)?0:d},dse={install(a){a.config.globalProperties.$currencyFormatter=ED,a.config.globalProperties.$currencyUnformatter=LD}},lc=(a,e,t=!0)=>{t?a.value=ED(a.value,!1,"",e.format,e.structure):a.value=LD(a.value,!1,"",e.format).toString()},use={mounted(a,e){const t={format:e.modifiers.euro?"euro":"usa",structure:e.arg==="foreign"?"foreign":"nepali"};OO.nextTick(()=>{a.value&&lc(a,t)});const i=()=>{lc(a,t),a.removeEventListener("blur",i),a.removeEventListener("keydown",n)},r=()=>{lc(a,t,!1),a.addEventListener("blur",i),a.addEventListener("keydown",n)},n=s=>{const o=/^\d$/.test(s.key),l=s.key===".",h=s.ctrlKey||s.metaKey,d=s.key==="Enter"||s.key==="Tab"||s.key==="Backspace",f=a.value.includes(".");if(l&&f){s.preventDefault();return}o||l&&!f||h||d||s.preventDefault()};a.addEventListener("focus",r),a.eventCleanUp=()=>{a.removeEventListener("focus",r),a.removeEventListener("blur",i),a.removeEventListener("keydown",n)}},updated(a,e){const t={format:e.modifiers.euro?"euro":"usa",structure:e.arg==="foreign"?"foreign":"nepali"};document.activeElement!=a&&lc(a,t)},unmounted(a){}},fse={mounted(a){const e=a.closest(".sidebar-dropdown");if(!e)return;const t=700,i=()=>{const s=a.scrollHeight,o=s*1e3/t;a.style.overflow="hidden",a.style.transition=`height ${o}ms linear`,a.style.height=`${s}px`,clearTimeout(a._timeout),a._timeout=window.setTimeout(()=>{a.style.height="",a.style.transition="",a.style.overflow=""},o)},r=()=>{const s=a.scrollHeight,o=s*1e3/t;a.style.transition=`height ${o}ms linear`,a.style.overflow="hidden",a.style.height=`${s}px`,a.offsetHeight,a.style.height="0px",clearTimeout(a._timeout),a._timeout=window.setTimeout(()=>{a.style.transition="",a.style.overflow=""},o)},n=new MutationObserver(()=>{e.classList.contains("sidebar-item-open")?i():r()});n.observe(e,{attributes:!0,attributeFilter:["class"]}),a._observer=n,e.classList.contains("sidebar-item-open")?a.style.height="auto":(a.style.height="0px",a.style.overflow="hidden")},unmounted(a){a._observer&&a._observer.disconnect(),clearTimeout(a._timeout)}},pse=["innerHTML"],mse={key:1},yse=p.defineComponent({__name:"Tooltip",props:{content:{},raw:{type:Boolean}},setup(a,{expose:e}){const t=p.ref(!1);p.onMounted(()=>{requestAnimationFrame(()=>{t.value=!0})});function i(){t.value=!1}return e({hide:i}),(r,n)=>(p.openBlock(),p.createElementBlock("div",{class:p.normalizeClass(["tooltip-content",{visible:t.value}])},[a.raw?(p.openBlock(),p.createElementBlock("div",{key:0,innerHTML:a.content},null,8,pse)):(p.openBlock(),p.createElementBlock("span",mse,p.toDisplayString(a.content),1))],2))}}),gse=az(yse,[["__scopeId","data-v-3e0dd3fc"]]),kse={mounted(a,e){let t=null,i=null,r=null,n=e;function s(f,u,m){const y=window.innerWidth,v=window.innerHeight;switch(f){case"top":return u.top>=m.height;case"bottom":return v-u.bottom>=m.height;case"left":return u.left>=m.width;case"right":return y-u.right>=m.width;default:return!1}}const o=async()=>{if(!n.value||!n.value.content)return;const{content:f,raw:u=!1,preferredPosition:m="top"}=n.value;if(t&&i&&(t.unmount(),i.remove()),i=document.createElement("div"),i.style.position="absolute",i.style.zIndex="9999",document.body.appendChild(i),t=p.createApp(gse,{content:f,raw:u}),t.mount(i),await p.nextTick(),!i)return;const y=a.getBoundingClientRect(),v=i.getBoundingClientRect(),x=[m,...["top","bottom","left","right"].filter(L=>L!==m)].find(L=>s(L,y,v))||"bottom";let w=0,b=0;switch(x){case"top":w=y.top-v.height+window.scrollY,b=y.left+(y.width-v.width)/2+window.scrollX;break;case"bottom":w=y.bottom+window.scrollY,b=y.left+(y.width-v.width)/2+window.scrollX;break;case"left":w=y.top+(y.height-v.height)/2+window.scrollY,b=y.left-v.width+window.scrollX;break;case"right":w=y.top+(y.height-v.height)/2+window.scrollY,b=y.right+window.scrollX;break}b=Math.max(0,Math.min(b,window.innerWidth-v.width)),w=Math.max(0,Math.min(w,window.innerHeight-v.height)),i.style.top=`${w}px`,i.style.left=`${b}px`},l=async()=>{r&&(clearTimeout(r),r=null),await o()},h=()=>{r&&(clearTimeout(r),r=null),t&&i&&(t.unmount(),i.remove(),t=null,i=null)},d=()=>{r||(r=window.setTimeout(()=>{l(),r=null},200))};a.__tooltipHandlers={showTooltip:d,hideTooltip:h,clearShowTimeout:()=>{r&&(clearTimeout(r),r=null)},createTooltip:o,updateBinding:f=>{n=f}},a.addEventListener("mouseenter",d),a.addEventListener("mouseleave",h)},updated(a,e){a.__tooltipHandlers&&(a.__tooltipHandlers.updateBinding(e),a.matches(":hover")&&a.__tooltipHandlers.createTooltip())},unmounted(a){a.__tooltipHandlers&&(a.__tooltipHandlers.hideTooltip(),a.removeEventListener("mouseenter",a.__tooltipHandlers.showTooltip),a.removeEventListener("mouseleave",a.__tooltipHandlers.hideTooltip),a.__tooltipHandlers.clearShowTimeout(),delete a.__tooltipHandlers)}};class vse{constructor(){this.socket=null,this.url="",this.isConnected=!1}setURL(e){this.url=e}init(){return this.url==""?(console.log("❗WebSocket url not set!"),Promise.resolve(this)):this.socket&&this.socket.readyState!==WebSocket.CLOSED&&this.socket.readyState!==WebSocket.CLOSING?(console.log("❗WebSocket is already initialized"),Promise.resolve(this)):(this.socket=new WebSocket(this.url),new Promise((e,t)=>{this.socket.onopen=()=>{this.isConnected=!0,console.log("✅ WebSocket connected"),e(this)},this.socket.onclose=()=>{this.isConnected=!1,console.log("❌ WebSocket connection closed")},this.socket.onerror=i=>{this.close(),console.error("⛔ WebSocket error occurred:",i),t(i)}}))}onMessage(e){return this.socket?(this.socket.onmessage=t=>{e&&t.data&&e(t.data)},Promise.resolve(this)):(console.error("❗WebSocket is not initialized"),Promise.resolve(this))}sendMessage(e){return new Promise((t,i)=>{if(this.socket&&this.isConnected)try{this.socket.send(e),t()}catch(r){console.error("❗Error sending message:",r),i(r)}else{const r="❗WebSocket is not connected";console.error(r),i(new Error(r))}})}close(){this.socket&&(this.socket.close(),this.socket=null,this.isConnected=!1,console.log("❌ WebSocket connection closed"))}getConnectionStatus(){return this.isConnected}}const wse=(a,e)=>{const t=a.toLowerCase().split("+").map(l=>l.trim()),i={ctrl:t.includes("ctrl"),alt:t.includes("alt"),shift:t.includes("shift"),meta:t.includes("meta")},r=t.filter(l=>!["ctrl","alt","shift","meta"].includes(l));if(r.length===0)throw new Error("No main keys specified in shortcut.");const n=new Set,s=l=>{n.add(l.key.toLowerCase());const h=l.ctrlKey===i.ctrl&&l.altKey===i.alt&&l.shiftKey===i.shift&&l.metaKey===i.meta,d=r.every(f=>n.has(f));h&&d&&(l.preventDefault(),e(l))},o=l=>{n.delete(l.key.toLowerCase())};return window.addEventListener("keydown",s),window.addEventListener("keyup",o),{destroy(){window.removeEventListener("keydown",s),window.removeEventListener("keyup",o)}}},xse=(a,e)=>{let t=null;return{run:n=>{t&&clearTimeout(t),t=setTimeout(()=>{a(n),t=null},e)},cancel:()=>{t&&(clearTimeout(t),t=null)}}},VO=a=>{const t=(void 0).$refs?.[a];if(t&&typeof t.activate=="function"){t.activate();return}const i=document.getElementById(a);if(!i)return;const r=i.tagName;(r==="INPUT"||r==="TEXTAREA"||r==="BUTTON")&&i.focus()},bse={install(a){a.config.globalProperties.$focusNext=VO}},BO=(a,e=!1,t=!0)=>{if(a==null||a==="")return"";const i=["","एक","दुई","तीन","चार","पाँच","छ","सात","आठ","नौ","दश","एघार","बाह्र","तेह्र","चौध","पन्ध्र","सोह्र","सत्र","अठार","उन्नाइस"],r=["","","बीस","एक्काइस","बाइस","तेइस","चौबीस","पच्चीस","छब्बीस","सत्ताइस","अठ्ठाइस","उनन्तिस","तीस","एकतीस","बत्तीस","तेत्तीस","चौँतीस","पैंतीस","छत्तीस","सैतीस","अठतीस","उनन्चालीस","चालीस","एकचालीस","बयालीस","त्रियालीस","चवालीस","पैंतालीस","छयालीस","सतचालीस","अठचालीस","उनन्चास","पचास","एकाउन्न","बाउन्न","त्रिपन्न","चवन्न","पचपन्न","छपन्न","सन्ताउन्न","अन्ठाउन्न","उनन्साठी","साठी","एकसठ्ठी","बयसठ्ठी","त्रिसठ्ठी","चौंसठ्ठी","पैंसठ्ठी","छयसठ्ठी","सतसठ्ठी","अठसठ्ठी","उनन्सत्तरी","सत्तरी","एकहत्तर","बहत्तर","त्रिहत्तर","चौहत्तर","पचहत्तर","छयहत्तर","सतहत्तर","अठहत्तर","उनासी","असी","एकासी","बयासी","त्रियासी","चौरासी","पचासी","छयासी","सतासी","अठासी","उनान्नब्बे","नब्बे","एकानब्बे","बयानब्बे","त्रियानब्बे","चौरानब्बे","पन्चानब्बे","छयानब्बे","सन्तानब्बे","अन्ठानब्बे","उनान्सय"],n=["","One","Two","Three","Four","Five","Six","Seven","Eight","Nine","Ten","Eleven","Twelve","Thirteen","Fourteen","Fifteen","Sixteen","Seventeen","Eighteen","Nineteen"],s=["","","Twenty","Thirty","Forty","Fifty","Sixty","Seventy","Eighty","Ninety"],o=e?["खर्ब","अर्ब","करोड","लाख","हजार","सय"]:["Kharaab","Arab","Crore","Lakh","Thousand","Hundred"],l=e?"ऋण":"Negative",h=e?"रुपैयाँ":"Rupees",d=e?"पैसा":"Paisa",f=e?"शून्य":"Zero",u=e?"दश":"Point";let m=String(a).trim(),y=!1;m.startsWith("-")&&(y=!0,m=m.slice(1));const[v,k]=m.split("."),g=parseInt(v,10);if(isNaN(g))return"";if(g===0&&!k)return f;function x(L){if(e)return L<20?i[L]:r[L];{if(L<20)return n[L];const F=Math.floor(L/10),C=L%10;return s[F]+(C?" "+n[C]:"")}}function w(L){if(L===0)return"";let F=L;const C=ie=>{const W=F%ie;return F=Math.floor(F/ie),W},T=C(1e3),H=C(100),O=C(100),V=C(100),j=C(100),he=[{value:C(100),label:o[0]},{value:j,label:o[1]},{value:V,label:o[2]},{value:O,label:o[3]},{value:H,label:o[4]},{value:Math.floor(T/100),label:o[5],suffix:!0}];let Z=[],ge=T%100;for(const ie of he)ie.value&&(ie.suffix?Z.push(e?i[ie.value]:n[ie.value],ie.label):Z.push(x(ie.value),ie.label));return ge&&Z.push(x(ge)),Z.filter(Boolean).join(" ")}let b=w(g);if(b&&t&&(b+=" "+h),k)if(t){const L=parseInt(k.substring(0,2).padEnd(2,"0"),10);if(L>0){const F=x(L);b+=" "+F+" "+d}}else{const L=k.split("").map(F=>e?i[parseInt(F,10)]||"":n[parseInt(F,10)]||"").join(" ");b+=" "+u+" "+L}return y&&(b=l+" "+b),b.trim().replace(/\s+/g," ")},Mse={install(a){a.config.globalProperties.$numToWords=BO}};exports.ContentLayout=sV;exports.CreateDebounce=xse;exports.CreateShortCutKey=wse;exports.CurrencyFormatterPlugin=dse;exports.DateRange=Kae;exports.DateSelector=Tae;exports.FocusNextPlugin=bse;exports.Icons=BT;exports.InputCurrency=use;exports.InputError=ose;exports.InputSelect=hse;exports.Loader=nie;exports.Modal=ZI;exports.NumbertoWordPlugin=Mse;exports.ScrollbarAnimateDropdown=fse;exports.ScrollbarScroll=lse;exports.Switch=gV;exports.Tabulator=Q$;exports.ToastPlugin=Jne;exports.Toggle=WF;exports.Tooltip=kse;exports.Towser=see;exports.UploadImage=rse;exports.WebSocketWrapper=vse;exports.Wizard=iie;exports.currencyFormatter=ED;exports.currencyUnformatter=LD;exports.focusNext=VO;exports.numToWord=BO;exports.toast=CD;