|
1
|
|
-(()=>{var e={3594(e,t,o){"use strict";const n="lp-hidden",s="loading",a=(e,t)=>{const o=document.querySelector(e);if(o)return void t(o);const n=new MutationObserver((o,n)=>{const s=document.querySelector(e);s&&(n.disconnect(),t(s))});n.observe(document.documentElement,{childList:!0,subtree:!0})},r=(e,t=0)=>{e&&(t?e.classList.remove(n):e.classList.add(n))},i=(e,t)=>{e&&(t?e.classList.add(s):e.classList.remove(s))},l=(e,t)=>{const o=(e=>{const t={},o=new FormData(e);for(const e of o.entries()){const n=e[0],s=o.getAll(n);t.hasOwnProperty(n)||(t[n]=s.join(","))}return t})(e);return(e=>{const t=[],o=e.elements;for(let e=0;e<o.length;e++){const n=o[e].name;n&&!t.includes(n)&&t.push(n)}return t})(e).forEach(e=>{o.hasOwnProperty(e)?""===o[e][0]&&(delete o[e],delete t[e]):delete t[e]}),t={...t,...o}},c=(e,t)=>{document.addEventListener(e,o=>{const n=o.target;let s={e:o,target:n};t.forEach(t=>{s={...s,...t},t.conditionBeforeCallBack&&!0!==t.conditionBeforeCallBack(s)||"keydown"===e&&t.checkIsEventEnter&&"Enter"!==o.key||n.closest(t.selector)&&(t.class?t.class[t.callBack](s):t.callBack(s))})})};window.lpToggleEnableInit=0,window.lpFullScreenViewInit=0;var d=o(8465),u=o.n(d),p=o(7736),w=o.n(p),m=o.cjs(function(e,t){var o=[];function n(e){for(var t=-1,n=0;n<o.length;n++)if(o[n].identifier===e){t=n;break}return t}function s(e,t){for(var s={},r=[],i=0;i<e.length;i++){var l=e[i],c=t.base?l[0]+t.base:l[0],d=s[c]||0,u="".concat(c," ").concat(d);s[c]=d+1;var p=n(u),w={css:l[1],media:l[2],sourceMap:l[3],supports:l[4],layer:l[5]};if(-1!==p)o[p].references++,o[p].updater(w);else{var m=a(w,t);t.byIndex=i,o.splice(i,0,{identifier:u,updater:m,references:1})}r.push(u)}return r}function a(e,t){var o=t.domAPI(t);return o.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;o.update(e=t)}else o.remove()}}e.exports=function(e,t){var a=s(e=e||[],t=t||{});return function(e){e=e||[];for(var r=0;r<a.length;r++){var i=n(a[r]);o[i].references--}for(var l=s(e,t),c=0;c<a.length;c++){var d=n(a[c]);0===o[d].references&&(o[d].updater(),o.splice(d,1))}a=l}}}),h=o.n(m),g=o.cjs(function(e,t){e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(o){!function(e,t,o){var n="";o.supports&&(n+="@supports (".concat(o.supports,") {")),o.media&&(n+="@media ".concat(o.media," {"));var s=void 0!==o.layer;s&&(n+="@layer".concat(o.layer.length>0?" ".concat(o.layer):""," {")),n+=o.css,s&&(n+="}"),o.media&&(n+="}"),o.supports&&(n+="}");var a=o.sourceMap;a&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")),t.styleTagTransform(n,e,t.options)}(t,e,o)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}}),f=o.n(g),b=o.cjs(function(e,t){var o={};e.exports=function(e,t){var n=function(e){if(void 0===o[e]){var t=document.querySelector(e);if(window.HTMLIFrameElement&&t instanceof window.HTMLIFrameElement)try{t=t.contentDocument.head}catch(e){t=null}o[e]=t}return o[e]}(e);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(t)}}),v=o.n(b),y=o.cjs(function(e,t){e.exports=function(e){var t=o.nc;t&&e.setAttribute("nonce",t)}}),k=o.n(y),x=o.cjs(function(e,t){e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}}),C=o.n(x),E=o.cjs(function(e,t){e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}}),A=o.n(E),L=o(9455),B={};B.styleTagTransform=A(),B.setAttributes=k(),B.insert=v().bind(null,"head"),B.domAPI=f(),B.insertStyleElement=C(),h()(L.A,B),L.A&&L.A.locals&&L.A.locals;const T={text:"",gravity:lpData.toast.gravity,position:lpData.toast.position,className:`${lpData.toast.classPrefix}`,close:1==lpData.toast.close,stopOnFocus:1==lpData.toast.stopOnFocus,duration:lpData.toast.duration},S=(e,t="success",o)=>{let n=T;o&&(n={...n,...o}),new(w())({...n,text:e,className:`${lpData.toast.classPrefix} ${t}`}).showToast()};let P,$=!1;const M=JSON.parse(localStorage.getItem("lp_course_ai_setting"))||{};class O{constructor(e={}){this.options={autoInsertButton:!0,isCourseBuilder:!1,redirectDelayMs:2e3,...e},this.init()}static selectors={elGenerateDataAiWrap:".lp-generate-data-ai-wrap"};init(){this.options.autoInsertButton&&(lpData?.enable_open_ai?a(".page-title-action",e=>{e.insertAdjacentHTML("afterend",`<button type="button" class="lp-btn-generate-course-with-ai lp-btn-ai-style">\n\t\t\t\t\t\t<i class="lp-ico-ai"></i>\n\t\t\t\t\t\t<span>${lpData.i18n.generate_with_ai}</span>\n\t\t\t\t\t</button>`)}):a(".page-title-action",e=>{e.insertAdjacentHTML("afterend",`<button type="button" class="lp-btn-warning-enable-ai lp-btn-ai-style">\n\t\t\t\t\t\t<i class="lp-ico-ai"></i>\n\t\t\t\t\t\t<span>${lpData.i18n.generate_with_ai}</span>\n\t\t\t\t\t</button>`)})),this.events()}events(){O._loadedEvents||(O._loadedEvents=!0,c("click",[{selector:".lp-btn-warning-enable-ai",class:this,callBack:this.showPopupEnableAI.name},{selector:".lp-btn-generate-course-with-ai",class:this,callBack:this.showPopupCreateFullCourse.name},{selector:".lp-btn-step",class:this,callBack:this.showStep.name},{selector:".lp-btn-generate-prompt",class:this,callBack:this.generatePrompt.name},{selector:".lp-btn-call-open-ai",class:this,callBack:this.generateDataCourse.name},{selector:".lp-btn-create-course",class:this,callBack:this.createCourse.name},{selector:".lp-btn-close-ai-popup",callBack:e=>{const{e:t,target:o}=e,n=lpData?.i18n?.confirm_close_ai||"Are you sure you want to close? Generate data will stop.";$?confirm(n)&&u().close():u().close()}}]))}showPopupEnableAI(){const e=document.querySelector("#lp-tmpl-must-enable-ai");e?u().fire({html:e.innerHTML,width:"420px",showCloseButton:!1,showConfirmButton:!1}):console.error("Enable OpenAI Modal Template not found!")}showPopupCreateFullCourse(){const e=document.querySelector("#lp-tmpl-create-course-ai");e?u().fire({html:e.innerHTML,width:"60%",showCloseButton:!1,showConfirmButton:!1,allowOutsideClick:!1,allowEscapeKey:!1,didOpen:()=>{const e=u().getPopup();e.click();const t=e.querySelector('select[name="target_audience"]');t&&M?.target_audience&&t.tomselect.setValue(M.target_audience);const o=e.querySelector('select[name="tone"]');o&&M?.tone&&o.tomselect.setValue(M.tone);const n=e.querySelector('select[name="language"]');n&&M?.language&&n.tomselect.setValue(M.language),t.addEventListener("change",e=>{M.target_audience=t.tomselect.getValue(),localStorage.setItem("lp_course_ai_setting",JSON.stringify(M))}),o.addEventListener("change",e=>{M.tone=o.tomselect.getValue(),localStorage.setItem("lp_course_ai_setting",JSON.stringify(M))}),n.addEventListener("change",e=>{const t=n.tomselect.getValue();M.language=t?[t]:[],localStorage.setItem("lp_course_ai_setting",JSON.stringify(M))})}}).then(e=>{e.isDismissed&&$&&($=!1)}):console.error("AI Create Full Course Modal Template not found!")}showStep(e){const{e:t,target:o}=e;t.preventDefault();const n=o.closest(".button-actions"),s=n.closest(O.selectors.elGenerateDataAiWrap);let a=parseInt(n.dataset.step);const i=o.dataset.action;"next"===i?a++:"prev"===i&&a--,n.dataset.step=a;const l=o.closest("form"),c=l.querySelector(`.step-content[data-step="${a}"]`),d=s.querySelector(`.step-item[data-step="${a}"]`);l.querySelectorAll(".step-content").forEach(e=>e.classList.remove("active")),c.classList.add("active"),s.querySelectorAll(".step-item").forEach(e=>e.classList.remove("active")),d.classList.add("active"),o.closest("form").querySelectorAll("button[data-step-show]").forEach(e=>{e.dataset.stepShow.split(",").map(e=>parseInt(e.trim())).includes(a)?r(e,1):r(e,0)})}generatePrompt(e){const{e:t,target:o}=e;t.preventDefault(),i(o,!0);const n=o.closest("form");let s=JSON.parse(o.dataset.send);s=l(n,s);const a={success:e=>{const{message:t,status:o,data:s}=e;S(t,o),"success"===o&&(n.querySelector(".lp-btn-step[data-action=next]").click(),n.querySelector("textarea[name=lp-openai-prompt-generated-field]").value=s)},error:e=>{S(e,"error")},completed:()=>{i(o,!1)}};window.lpAJAXG.fetchAJAX(s,a)}generateDataCourse(e){const{e:t,target:o}=e;t.preventDefault(),i(o,!0);const n=o.closest("form");let s=JSON.parse(o.dataset.send);s=l(n,s);const a=n.querySelector(".lp-btn-step[data-action=prev]");r(a,0);const c={success:e=>{const{message:t,status:o,data:s}=e;$&&S(t,o),"success"===o&&(P=s.lp_structure_course,n.querySelector(".lp-ai-generated-results").innerHTML=s.lp_html_preview,n.querySelector(".lp-btn-step[data-action=next]").click())},error:e=>{S(e,"error")},completed:()=>{i(o,!1),r(a,1),$=!1}};$=!0,window.lpAJAXG.fetchAJAX(s,c)}createCourse(e){const{e:t,target:o}=e;t.preventDefault(),i(o,!0);const n=JSON.parse(o.dataset.send);n.lp_structure_course=P,this.options.isCourseBuilder&&(n.is_course_builder=1);const s=o.closest("form").querySelector(".lp-btn-step[data-action=prev]");let a;r(s,0),a=window.outerWidth<768?"90%":"30%";const l=document.querySelector("#lp-tmpl-creating-course-ai");u().fire({html:l.innerHTML,showCloseButton:!1,showConfirmButton:!1,allowOutsideClick:!1,width:a});const c={success:e=>{const{message:t,status:o,data:n}=e;u().close(),S(t,o),"success"===o?setTimeout(()=>{window.location.href=n.edit_course_url},this.options.redirectDelayMs):r(s,1)},error:e=>{S(e,"error"),r(s,1)},completed:()=>{i(o,!1)}};window.lpAJAXG.fetchAJAX(n,c)}}class I{constructor(){this.isRequesting=!1,this.activeCourseId=0,this.init()}static selectors={wrap:"#lp-modal-enrolled-wrap",form:"#lp-modal-enrolled-form",toolbarTemplate:"#lp-tmpl-enrolled-students-toolbar-modal",targetTemplate:"#lp-tmpl-enrolled-students-target-modal",toolbar:".lp-enrolled-students-table-toolbar--modal",courseTrigger:".lp-btn-view-students",searchInput:"#lp-modal-enrolled-search-input",startDateInput:"#lp-modal-enrolled-filter-start-date",endDateInput:"#lp-modal-enrolled-filter-end-date",searchBtn:".lp-enrolled-btn-search-modal",clearBtn:".lp-enrolled-btn-clear-modal",modalSearchFields:"#lp-modal-enrolled-search-input, #lp-modal-enrolled-filter-start-date, #lp-modal-enrolled-filter-end-date"};setButtonLoadingState(e,t){e&&(i(e,t?1:0),e.disabled=!!t)}init(){I._loadedEvents||(I._loadedEvents=!0,c("click",[{selector:I.selectors.courseTrigger,class:this,callBack:this.handleOpenModal.name},{selector:I.selectors.searchBtn,class:this,callBack:this.handleModalSearch.name},{selector:I.selectors.clearBtn,class:this,callBack:this.handleModalClear.name}]),c("keydown",[{selector:I.selectors.modalSearchFields,class:this,callBack:this.handleModalSearchOnEnter.name,checkIsEventEnter:!0}]),c("change",[{selector:I.selectors.startDateInput,class:this,callBack:this.checkDatesRange.name},{selector:I.selectors.endDateInput,class:this,callBack:this.checkDatesRange.name}]))}handleOpenModal(e){const t=e?.target?.closest(I.selectors.courseTrigger);if(!t||this.isRequesting||t.classList.contains("loading")||t.disabled)return;const o=parseInt(t.dataset.courseId,10)||0;if(!o)return;const n=t.dataset.courseTitle||"";this.activeCourseId=o,this.setButtonLoadingState(t,!0),this.openModal(o,n,t)}handleModalSearch(e){const t=e?.target?.closest(I.selectors.searchBtn);t&&this.activeCourseId&&(e?.e&&e.e.preventDefault(),this.isRequesting||t.classList.contains("loading")||t.disabled||(this.setButtonLoadingState(t,!0),this.loadEnrolledStudents(this.activeCourseId,1,t)))}handleModalSearchOnEnter(e){e?.e&&e.e.preventDefault();const t=this.getModalForm();if(!t)return;const o=t.querySelector(I.selectors.searchBtn);o&&this.handleModalSearch({...e,target:o})}handleModalClear(e){const t=e?.target?.closest(I.selectors.clearBtn),o=this.getModalForm();t&&o&&this.activeCourseId&&(e?.e&&e.e.preventDefault(),this.isRequesting||t.classList.contains("loading")||t.disabled||(o.reset(),this.setButtonLoadingState(t,!0),this.loadEnrolledStudents(this.activeCourseId,1,t)))}getModalPopup(){return u().getPopup?u().getPopup():null}getModalToolbarHtml(){const e=document.querySelector(I.selectors.toolbarTemplate);return e?e.innerHTML:""}getModalTargetHtml(){const e=document.querySelector(I.selectors.targetTemplate);return e?e.innerHTML:""}getAjaxHandle(){const e=window.lpAJAXG;return e&&"function"==typeof e.getDataSetCurrent&&"function"==typeof e.setDataSetCurrent&&"function"==typeof e.showHideLoading&&"function"==typeof e.fetchAJAX?e:null}getModalForm(){const e=this.getModalPopup();return e?e.querySelector(I.selectors.form):null}getModalFilterArgs(e={}){const t=this.getModalForm();return t?l(t,e):e}loadEnrolledStudents(e,t,o=null){const n=document.querySelector(I.selectors.wrap),s=n?.querySelector(".lp-target"),a=this.getAjaxHandle();if(!n||!s||!a||this.isRequesting)return;this.isRequesting=!0,o&&this.setButtonLoadingState(o,!0);const r=a.getDataSetCurrent(s);r.args=this.getModalFilterArgs(r.args||{}),r.args.course_id=parseInt(e,10)||0,r.args.paged=t,a.setDataSetCurrent(s,r),a.showHideLoading(s,1);const i={success:e=>{s.innerHTML=e.data.content},error:e=>{console.error(e)},completed:()=>{this.isRequesting=!1,a.showHideLoading(s,0),o&&this.setButtonLoadingState(o,!1)}};a.fetchAJAX(r,i)}openModal(e,t,o=null){const n=this.getModalToolbarHtml(),s=this.getModalTargetHtml();n&&s?(this.activeCourseId=parseInt(e,10)||0,u().fire({title:`${t}`,html:n+s,width:"80%",showConfirmButton:!1,showCloseButton:!0,didOpen:()=>{this.loadEnrolledStudents(this.activeCourseId,1,o)},didClose:()=>{this.activeCourseId=0,o&&this.setButtonLoadingState(o,!1)}})):o&&this.setButtonLoadingState(o,!1)}checkDatesRange(e){const{e:t}=e,o=t?.target;if(!o)return;const n=o.closest(I.selectors.form);if(!n)return;const s=n.querySelector(I.selectors.startDateInput),a=n.querySelector(I.selectors.endDateInput);o===s?s.value?(a.min=s.value,a.value&&a.value<s.value&&(a.value=s.value)):a.min="":o===a&&(a.value?(s.max=a.value,s.value&&s.value>a.value&&(s.value=a.value)):s.max="")}}new O,new I},9455(e,t,o){"use strict";var n=o(1601),s=o.n(n),a=o(6314),r=o.n(a)()(s());r.push([e.id,"/*!\n * Toastify js 1.12.0\n * https://github.com/apvarun/toastify-js\n * @license MIT licensed\n *\n * Copyright (C) 2018 Varun A P\n */\n\n.toastify {\n padding: 12px 20px;\n color: #ffffff;\n display: inline-block;\n box-shadow: 0 3px 6px -1px rgba(0, 0, 0, 0.12), 0 10px 36px -4px rgba(77, 96, 232, 0.3);\n background: -webkit-linear-gradient(315deg, #73a5ff, #5477f5);\n background: linear-gradient(135deg, #73a5ff, #5477f5);\n position: fixed;\n opacity: 0;\n transition: all 0.4s cubic-bezier(0.215, 0.61, 0.355, 1);\n border-radius: 2px;\n cursor: pointer;\n text-decoration: none;\n max-width: calc(50% - 20px);\n z-index: 2147483647;\n}\n\n.toastify.on {\n opacity: 1;\n}\n\n.toast-close {\n background: transparent;\n border: 0;\n color: white;\n cursor: pointer;\n font-family: inherit;\n font-size: 1em;\n opacity: 0.4;\n padding: 0 5px;\n}\n\n.toastify-right {\n right: 15px;\n}\n\n.toastify-left {\n left: 15px;\n}\n\n.toastify-top {\n top: -150px;\n}\n\n.toastify-bottom {\n bottom: -150px;\n}\n\n.toastify-rounded {\n border-radius: 25px;\n}\n\n.toastify-avatar {\n width: 1.5em;\n height: 1.5em;\n margin: -7px 5px;\n border-radius: 2px;\n}\n\n.toastify-center {\n margin-left: auto;\n margin-right: auto;\n left: 0;\n right: 0;\n max-width: fit-content;\n max-width: -moz-fit-content;\n}\n\n@media only screen and (max-width: 360px) {\n .toastify-right, .toastify-left {\n margin-left: auto;\n margin-right: auto;\n left: 0;\n right: 0;\n max-width: fit-content;\n }\n}\n",""]);const i=r;o.d(t,["A",0,i])},6314(e){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var o="",n=void 0!==t[5];return t[4]&&(o+="@supports (".concat(t[4],") {")),t[2]&&(o+="@media ".concat(t[2]," {")),n&&(o+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),o+=e(t),n&&(o+="}"),t[2]&&(o+="}"),t[4]&&(o+="}"),o}).join("")},t.i=function(e,o,n,s,a){"string"==typeof e&&(e=[[null,e,void 0]]);var r={};if(n)for(var i=0;i<this.length;i++){var l=this[i][0];null!=l&&(r[l]=!0)}for(var c=0;c<e.length;c++){var d=[].concat(e[c]);n&&r[d[0]]||(void 0!==a&&(void 0===d[5]||(d[1]="@layer".concat(d[5].length>0?" ".concat(d[5]):""," {").concat(d[1],"}")),d[5]=a),o&&(d[2]?(d[1]="@media ".concat(d[2]," {").concat(d[1],"}"),d[2]=o):d[2]=o),s&&(d[4]?(d[1]="@supports (".concat(d[4],") {").concat(d[1],"}"),d[4]=s):d[4]="".concat(s)),t.push(d))}},t}},1601(e){"use strict";e.exports=function(e){return e[1]}},8465(e){e.exports=function(){"use strict";function e(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}function t(t,o){return t.get(e(t,o))}function o(e,t,o){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,o)}const n={},s=e=>new Promise(t=>{if(!e)return t();const o=window.scrollX,s=window.scrollY;n.restoreFocusTimeout=setTimeout(()=>{n.previousActiveElement instanceof HTMLElement?(n.previousActiveElement.focus(),n.previousActiveElement=null):document.body&&document.body.focus(),t()},100),window.scrollTo(o,s)}),a="swal2-",r=["container","shown","height-auto","iosfix","popup","modal","no-backdrop","no-transition","toast","toast-shown","show","hide","close","title","html-container","actions","confirm","deny","cancel","footer","icon","icon-content","image","input","file","range","select","radio","checkbox","label","textarea","inputerror","input-label","validation-message","progress-steps","active-progress-step","progress-step","progress-step-line","loader","loading","styled","top","top-start","top-end","top-left","top-right","center","center-start","center-end","center-left","center-right","bottom","bottom-start","bottom-end","bottom-left","bottom-right","grow-row","grow-column","grow-fullscreen","rtl","timer-progress-bar","timer-progress-bar-container","scrollbar-measure","icon-success","icon-warning","icon-info","icon-question","icon-error","draggable","dragging"].reduce((e,t)=>(e[t]=a+t,e),{}),i=["success","warning","info","question","error"].reduce((e,t)=>(e[t]=a+t,e),{}),l="SweetAlert2:",c=e=>e.charAt(0).toUpperCase()+e.slice(1),d=e=>{console.warn(`${l} ${"object"==typeof e?e.join(" "):e}`)},u=e=>{console.error(`${l} ${e}`)},p=[],w=(e,t=null)=>{var o;o=`"${e}" is deprecated and will be removed in the next major release.${t?` Use "${t}" instead.`:""}`,p.includes(o)||(p.push(o),d(o))},m=e=>"function"==typeof e?e():e,h=e=>e&&"function"==typeof e.toPromise,g=e=>h(e)?e.toPromise():Promise.resolve(e),f=e=>e&&Promise.resolve(e)===e,b=()=>document.body.querySelector(`.${r.container}`),v=e=>{const t=b();return t?t.querySelector(e):null},y=e=>v(`.${e}`),k=()=>y(r.popup),x=()=>y(r.icon),C=()=>y(r.title),E=()=>y(r["html-container"]),A=()=>y(r.image),L=()=>y(r["progress-steps"]),B=()=>y(r["validation-message"]),T=()=>v(`.${r.actions} .${r.confirm}`),S=()=>v(`.${r.actions} .${r.cancel}`),P=()=>v(`.${r.actions} .${r.deny}`),$=()=>v(`.${r.loader}`),M=()=>y(r.actions),O=()=>y(r.footer),I=()=>y(r["timer-progress-bar"]),j=()=>y(r.close),D=()=>{const e=k();if(!e)return[];const t=e.querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])'),o=Array.from(t).sort((e,t)=>{const o=parseInt(e.getAttribute("tabindex")||"0"),n=parseInt(t.getAttribute("tabindex")||"0");return o>n?1:o<n?-1:0}),n=e.querySelectorAll('\n a[href],\n area[href],\n input:not([disabled]),\n select:not([disabled]),\n textarea:not([disabled]),\n button:not([disabled]),\n iframe,\n object,\n embed,\n [tabindex="0"],\n [contenteditable],\n audio[controls],\n video[controls],\n summary\n'),s=Array.from(n).filter(e=>"-1"!==e.getAttribute("tabindex"));return[...new Set(o.concat(s))].filter(e=>ee(e))},H=()=>_(document.body,r.shown)&&!_(document.body,r["toast-shown"])&&!_(document.body,r["no-backdrop"]),q=()=>{const e=k();return!!e&&_(e,r.toast)},N=(e,t)=>{if(e.textContent="",t){const o=(new DOMParser).parseFromString(t,"text/html"),n=o.querySelector("head");n&&Array.from(n.childNodes).forEach(t=>{e.appendChild(t)});const s=o.querySelector("body");s&&Array.from(s.childNodes).forEach(t=>{t instanceof HTMLVideoElement||t instanceof HTMLAudioElement?e.appendChild(t.cloneNode(!0)):e.appendChild(t)})}},_=(e,t)=>!!t&&t.split(/\s+/).every(t=>e.classList.contains(t)),z=(e,t,o)=>{if(((e,t)=>{Array.from(e.classList).forEach(o=>{Object.values(r).includes(o)||Object.values(i).includes(o)||Object.values(t.showClass||{}).includes(o)||e.classList.remove(o)})})(e,t),!t.customClass)return;const n=t.customClass[o];n&&("string"==typeof n||n.forEach?W(e,n):d(`Invalid type of customClass.${o}! Expected string or iterable object, got "${typeof n}"`))},V=(e,t)=>{if(!t)return null;switch(t){case"select":case"textarea":case"file":return e.querySelector(`.${r.popup} > .${r[t]}`);case"checkbox":return e.querySelector(`.${r.popup} > .${r.checkbox} input`);case"radio":return e.querySelector(`.${r.popup} > .${r.radio} input:checked`)||e.querySelector(`.${r.popup} > .${r.radio} input:first-child`);case"range":return e.querySelector(`.${r.popup} > .${r.range} input`);default:return e.querySelector(`.${r.popup} > .${r.input}`)}},F=e=>{if(e.focus(),"file"!==e.type){const t=e.value;e.value="",e.value=t}},R=(e,t,o)=>{if(!e||!t)return;const n="string"==typeof t?t.split(/\s+/).filter(Boolean):t;(Array.isArray(e)?e:[e]).forEach(e=>{n.forEach(t=>{o?e.classList.add(t):e.classList.remove(t)})})},W=(e,t)=>{R(e,t,!0)},U=(e,t)=>{R(e,t,!1)},X=(e,t)=>Array.from(e.children).find(e=>e instanceof HTMLElement&&_(e,t)),J=(e,t,o)=>{o===`${parseInt(`${o}`)}`&&(o=parseInt(o)),o||0===o?e.style.setProperty(t,"number"==typeof o?`${o}px`:o):e.style.removeProperty(t)},Y=(e,t="flex")=>{e&&(e.style.display=t)},K=e=>{e&&(e.style.display="none")},Z=(e,t="block")=>{e&&new MutationObserver(()=>{Q(e,e.innerHTML,t)}).observe(e,{childList:!0,subtree:!0})},G=(e,t,o,n)=>{const s=e.querySelector(t);s&&s.style.setProperty(o,n)},Q=(e,t,o="flex")=>{t?Y(e,o):K(e)},ee=e=>Boolean(e&&(e.offsetWidth||e.offsetHeight||e.getClientRects().length)),te=e=>Boolean(e.scrollHeight>e.clientHeight),oe=e=>{const t=window.getComputedStyle(e),o=parseFloat(t.getPropertyValue("animation-duration")||"0"),n=parseFloat(t.getPropertyValue("transition-duration")||"0");return o>0||n>0},ne=(e,t=!1)=>{const o=I();o&&ee(o)&&(t&&(o.style.transition="none",o.style.width="100%"),setTimeout(()=>{o.style.transition=`width ${e/1e3}s linear`,o.style.width="0%"},10))},se=`\n <div aria-labelledby="${r.title}" aria-describedby="${r["html-container"]}" class="${r.popup}" tabindex="-1">\n <button type="button" class="${r.close}"></button>\n <ul class="${r["progress-steps"]}"></ul>\n <div class="${r.icon}"></div>\n <img class="${r.image}" />\n <h2 class="${r.title}" id="${r.title}"></h2>\n <div class="${r["html-container"]}" id="${r["html-container"]}"></div>\n <input class="${r.input}" id="${r.input}" />\n <input type="file" class="${r.file}" />\n <div class="${r.range}">\n <input type="range" />\n <output></output>\n </div>\n <select class="${r.select}" id="${r.select}"></select>\n <div class="${r.radio}"></div>\n <label class="${r.checkbox}">\n <input type="checkbox" id="${r.checkbox}" />\n <span class="${r.label}"></span>\n </label>\n <textarea class="${r.textarea}" id="${r.textarea}"></textarea>\n <div class="${r["validation-message"]}" id="${r["validation-message"]}"></div>\n <div class="${r.actions}">\n <div class="${r.loader}"></div>\n <button type="button" class="${r.confirm}"></button>\n <button type="button" class="${r.deny}"></button>\n <button type="button" class="${r.cancel}"></button>\n </div>\n <div class="${r.footer}"></div>\n <div class="${r["timer-progress-bar-container"]}">\n <div class="${r["timer-progress-bar"]}"></div>\n </div>\n </div>\n`.replace(/(^|\n)\s*/g,""),ae=()=>{n.currentInstance&&n.currentInstance.resetValidationMessage()},re=e=>{const t=(()=>{const e=b();return!!e&&(e.remove(),U([document.documentElement,document.body],[r["no-backdrop"],r["toast-shown"],r["has-column"]]),!0)})();if("undefined"==typeof window||"undefined"==typeof document)return void u("SweetAlert2 requires document to initialize");const o=document.createElement("div");o.className=r.container,t&&W(o,r["no-transition"]),N(o,se),o.dataset.swal2Theme=e.theme;const s=(e=>{if("string"==typeof e){const t=document.querySelector(e);if(!t)throw new Error(`Target element "${e}" not found`);return t}return e})(e.target||"body");s.appendChild(o),e.topLayer&&(o.setAttribute("popover",""),o.showPopover()),(e=>{const t=k();t&&(t.setAttribute("role",e.toast?"alert":"dialog"),t.setAttribute("aria-live",e.toast?"polite":"assertive"),e.toast||t.setAttribute("aria-modal","true"))})(e),(e=>{"rtl"===window.getComputedStyle(e).direction&&(W(b(),r.rtl),n.isRTL=!0)})(s),(()=>{const e=k();if(!e)return;const t=X(e,r.input),o=X(e,r.file),n=e.querySelector(`.${r.range} input`),s=e.querySelector(`.${r.range} output`),a=X(e,r.select),i=e.querySelector(`.${r.checkbox} input`),l=X(e,r.textarea);t&&(t.oninput=ae),o&&(o.onchange=ae),a&&(a.onchange=ae),i&&(i.onchange=ae),l&&(l.oninput=ae),n&&s&&(n.oninput=()=>{ae(),s.value=n.value},n.onchange=()=>{ae(),s.value=n.value})})()},ie=(e,t)=>{e instanceof HTMLElement?t.appendChild(e):"object"==typeof e?le(e,t):e&&N(t,e)},le=(e,t)=>{"jquery"in e?ce(t,e):N(t,e.toString())},ce=(e,t)=>{if(e.textContent="",0 in t)for(let o=0;o in t;o++)e.appendChild(t[o].cloneNode(!0));else e.appendChild(t.cloneNode(!0))},de=(e,t)=>{const o=M(),n=$();o&&n&&(t.showConfirmButton||t.showDenyButton||t.showCancelButton?Y(o):K(o),z(o,t,"actions"),function(e,t,o){const n=T(),s=P(),a=S();n&&s&&a&&(ue(n,"confirm",o),ue(s,"deny",o),ue(a,"cancel",o),function(e,t,o,n){n.buttonsStyling?(W([e,t,o],r.styled),[[e,"confirm",n.confirmButtonColor],[t,"deny",n.denyButtonColor],[o,"cancel",n.cancelButtonColor]].forEach(([e,t,o])=>{o&&e.style.setProperty(`--swal2-${t}-button-background-color`,o),function(e){const t=window.getComputedStyle(e);if(t.getPropertyValue("--swal2-action-button-focus-box-shadow"))return;const o=t.backgroundColor.replace(/rgba?\((\d+), (\d+), (\d+).*/,"rgba($1, $2, $3, 0.5)");e.style.setProperty("--swal2-action-button-focus-box-shadow",t.getPropertyValue("--swal2-outline").replace(/ rgba\(.*/,` ${o}`))}(e)})):U([e,t,o],r.styled)}(n,s,a,o),o.reverseButtons&&(o.toast?(e.insertBefore(a,n),e.insertBefore(s,n)):(e.insertBefore(a,t),e.insertBefore(s,t),e.insertBefore(n,t))))}(o,n,t),N(n,t.loaderHtml||""),z(n,t,"loader"))};function ue(e,t,o){const n=c(t);Q(e,o[`show${n}Button`],"inline-block"),N(e,o[`${t}ButtonText`]||""),e.setAttribute("aria-label",o[`${t}ButtonAriaLabel`]||""),e.className=r[t],z(e,o,`${t}Button`)}const pe=(e,t)=>{const o=b();o&&(function(e,t){"string"==typeof t?e.style.background=t:t||W([document.documentElement,document.body],r["no-backdrop"])}(o,t.backdrop),function(e,t){t&&(t in r?W(e,r[t]):(d('The "position" parameter is not valid, defaulting to "center"'),W(e,r.center)))}(o,t.position),function(e,t){t&&W(e,r[`grow-${t}`])}(o,t.grow),z(o,t,"container"))};var we={innerParams:new WeakMap,domCache:new WeakMap,focusedElement:new WeakMap};const me=["input","file","range","select","radio","checkbox","textarea"],he=e=>{if(!e.input)return;if(!xe[e.input])return void u(`Unexpected type of input! Expected ${Object.keys(xe).join(" | ")}, got "${e.input}"`);const t=ye(e.input);if(!t)return;const o=xe[e.input](t,e);Y(t),e.inputAutoFocus&&setTimeout(()=>{F(o)})},ge=(e,t)=>{const o=k();if(!o)return;const n=V(o,e);if(n){(e=>{for(const{name:t}of Array.from(e.attributes))["id","type","value","style"].includes(t)||e.removeAttribute(t)})(n);for(const e in t)n.setAttribute(e,t[e])}},fe=e=>{if(!e.input)return;const t=ye(e.input);t&&z(t,e,"input")},be=(e,t)=>{!e.placeholder&&t.inputPlaceholder&&(e.placeholder=t.inputPlaceholder)},ve=(e,t,o)=>{if(o.inputLabel){const n=document.createElement("label"),s=r["input-label"];n.setAttribute("for",e.id),n.className=s,"object"==typeof o.customClass&&W(n,o.customClass.inputLabel),n.innerText=o.inputLabel,t.insertAdjacentElement("beforebegin",n)}},ye=e=>{const t=k();if(t)return X(t,r[e]||r.input)},ke=(e,t)=>{["string","number"].includes(typeof t)?e.value=`${t}`:f(t)||d(`Unexpected type of inputValue! Expected "string", "number" or "Promise", got "${typeof t}"`)},xe={};xe.text=xe.email=xe.password=xe.number=xe.tel=xe.url=xe.search=xe.date=xe["datetime-local"]=xe.time=xe.week=xe.month=(e,t)=>{const o=e;return ke(o,t.inputValue),ve(o,o,t),be(o,t),o.type=t.input,o},xe.file=(e,t)=>{const o=e;return ve(o,o,t),be(o,t),o},xe.range=(e,t)=>{const o=e,n=o.querySelector("input"),s=o.querySelector("output");return n&&(ke(n,t.inputValue),n.type=t.input,ve(n,e,t)),s&&ke(s,t.inputValue),e},xe.select=(e,t)=>{const o=e;if(o.textContent="",t.inputPlaceholder){const e=document.createElement("option");N(e,t.inputPlaceholder),e.value="",e.disabled=!0,e.selected=!0,o.appendChild(e)}return ve(o,o,t),o},xe.radio=e=>(e.textContent="",e),xe.checkbox=(e,t)=>{const o=k();if(!o)throw new Error("Popup not found");const n=V(o,"checkbox");if(!n)throw new Error("Checkbox input not found");n.value="1",n.checked=Boolean(t.inputValue);const s=e.querySelector("span");if(s){const e=t.inputPlaceholder||t.inputLabel;e&&N(s,e)}return n},xe.textarea=(e,t)=>{const o=e;ke(o,t.inputValue),be(o,t),ve(o,o,t);return setTimeout(()=>{if("MutationObserver"in window){const e=k();if(!e)return;const n=parseInt(window.getComputedStyle(e).width);new MutationObserver(()=>{if(!document.body.contains(o))return;const e=o.offsetWidth+(a=o,parseInt(window.getComputedStyle(a).marginLeft)+parseInt(window.getComputedStyle(a).marginRight)),s=k();var a;s&&(e>n?s.style.width=`${e}px`:J(s,"width",t.width))}).observe(o,{attributes:!0,attributeFilter:["style"]})}}),o};const Ce=(e,t)=>{const o=E();o&&(Z(o),z(o,t,"htmlContainer"),t.html?(ie(t.html,o),Y(o,"block")):t.text?(o.textContent=t.text,Y(o,"block")):K(o),((e,t)=>{const o=k();if(!o)return;const n=we.innerParams.get(e),s=!n||t.input!==n.input;me.forEach(e=>{const n=X(o,r[e]);n&&(ge(e,t.inputAttributes),n.className=r[e],s&&K(n))}),t.input&&(s&&he(t),fe(t))})(e,t))},Ee=(e,t)=>{for(const[o,n]of Object.entries(i))t.icon!==o&&U(e,n);W(e,t.icon&&i[t.icon]),Be(e,t),Ae(),z(e,t,"icon")},Ae=()=>{const e=k();if(!e)return;const t=window.getComputedStyle(e).getPropertyValue("background-color");e.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix").forEach(e=>{e.style.backgroundColor=t})},Le=(e,t)=>{if(!t.icon&&!t.iconHtml)return;let o=e.innerHTML,n="";t.iconHtml?n=Te(t.iconHtml):"success"===t.icon?(n=(e=>`\n ${e.animation?'<div class="swal2-success-circular-line-left"></div>':""}\n <span class="swal2-success-line-tip"></span> <span class="swal2-success-line-long"></span>\n <div class="swal2-success-ring"></div>\n ${e.animation?'<div class="swal2-success-fix"></div>':""}\n ${e.animation?'<div class="swal2-success-circular-line-right"></div>':""}\n`)(t),o=o.replace(/ style=".*?"/g,"")):"error"===t.icon?n='\n <span class="swal2-x-mark">\n <span class="swal2-x-mark-line-left"></span>\n <span class="swal2-x-mark-line-right"></span>\n </span>\n':t.icon&&(n=Te({question:"?",warning:"!",info:"i"}[t.icon])),o.trim()!==n.trim()&&N(e,n)},Be=(e,t)=>{if(t.iconColor){e.style.color=t.iconColor,e.style.borderColor=t.iconColor;for(const o of[".swal2-success-line-tip",".swal2-success-line-long",".swal2-x-mark-line-left",".swal2-x-mark-line-right"])G(e,o,"background-color",t.iconColor);G(e,".swal2-success-ring","border-color",t.iconColor)}},Te=e=>`<div class="${r["icon-content"]}">${e}</div>`;let Se=!1,Pe=0,$e=0,Me=0,Oe=0;const Ie=e=>{const t=k();if(!t)return;const o=x();if(e.target===t||o&&o.contains(e.target)){Se=!0;const o=He(e);Pe=o.clientX,$e=o.clientY,Me=parseInt(t.style.insetInlineStart)||0,Oe=parseInt(t.style.insetBlockStart)||0,W(t,"swal2-dragging")}},je=e=>{const t=k();if(t&&Se){let{clientX:o,clientY:s}=He(e);const a=o-Pe;t.style.insetInlineStart=`${Me+(n.isRTL?-a:a)}px`,t.style.insetBlockStart=`${Oe+(s-$e)}px`}},De=()=>{const e=k();Se=!1,U(e,"swal2-dragging")},He=e=>{const t=e.type.startsWith("touch")?e.touches[0]:e;return{clientX:t.clientX,clientY:t.clientY}},qe=(e,t)=>{const o=b(),n=k();if(o&&n){if(t.toast){J(o,"width",t.width),n.style.width="100%";const e=$();e&&n.insertBefore(e,x())}else J(n,"width",t.width);J(n,"padding",t.padding),t.color&&(n.style.color=t.color),t.background&&(n.style.background=t.background),K(B()),Ne(n,t),t.draggable&&!t.toast?(W(n,r.draggable),(e=>{e.addEventListener("mousedown",Ie),document.body.addEventListener("mousemove",je),e.addEventListener("mouseup",De),e.addEventListener("touchstart",Ie),document.body.addEventListener("touchmove",je),e.addEventListener("touchend",De)})(n)):(U(n,r.draggable),(e=>{e.removeEventListener("mousedown",Ie),document.body.removeEventListener("mousemove",je),e.removeEventListener("mouseup",De),e.removeEventListener("touchstart",Ie),document.body.removeEventListener("touchmove",je),e.removeEventListener("touchend",De)})(n))}},Ne=(e,t)=>{const o=t.showClass||{};e.className=`${r.popup} ${ee(e)?o.popup:""}`,t.toast?(W([document.documentElement,document.body],r["toast-shown"]),W(e,r.toast)):W(e,r.modal),z(e,t,"popup"),"string"==typeof t.customClass&&W(e,t.customClass),t.icon&&W(e,r[`icon-${t.icon}`])},_e=e=>{const t=document.createElement("li");return W(t,r["progress-step"]),N(t,e),t},ze=e=>{const t=document.createElement("li");return W(t,r["progress-step-line"]),e.progressStepsDistance&&J(t,"width",e.progressStepsDistance),t},Ve=(e,t)=>{var o;qe(0,t),pe(0,t),((e,t)=>{const o=L();if(!o)return;const{progressSteps:n,currentProgressStep:s}=t;n&&0!==n.length&&void 0!==s?(Y(o),o.textContent="",s>=n.length&&d("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),n.forEach((e,a)=>{const i=_e(e);if(o.appendChild(i),a===s&&W(i,r["active-progress-step"]),a!==n.length-1){const e=ze(t);o.appendChild(e)}})):K(o)})(0,t),((e,t)=>{const o=we.innerParams.get(e),n=x();if(n){if(o&&t.icon===o.icon)return Le(n,t),void Ee(n,t);if(t.icon||t.iconHtml){if(t.icon&&-1===Object.keys(i).indexOf(t.icon))return u(`Unknown icon! Expected "success", "error", "warning", "info" or "question", got "${t.icon}"`),void K(n);Y(n),Le(n,t),Ee(n,t),W(n,t.showClass&&t.showClass.icon),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",Ae)}else K(n)}})(e,t),((e,t)=>{const o=A();o&&(t.imageUrl?(Y(o,""),o.setAttribute("src",t.imageUrl),o.setAttribute("alt",t.imageAlt||""),J(o,"width",t.imageWidth),J(o,"height",t.imageHeight),o.className=r.image,z(o,t,"image")):K(o))})(0,t),((e,t)=>{const o=C();o&&(Z(o),Q(o,Boolean(t.title||t.titleText),"block"),t.title&&ie(t.title,o),t.titleText&&(o.innerText=t.titleText),z(o,t,"title"))})(0,t),((e,t)=>{const o=j();o&&(N(o,t.closeButtonHtml||""),z(o,t,"closeButton"),Q(o,t.showCloseButton),o.setAttribute("aria-label",t.closeButtonAriaLabel||""))})(0,t),Ce(e,t),de(0,t),((e,t)=>{const o=O();o&&(Z(o),Q(o,Boolean(t.footer),"block"),t.footer&&ie(t.footer,o),z(o,t,"footer"))})(0,t);const s=k();"function"==typeof t.didRender&&s&&t.didRender(s),null===(o=n.eventEmitter)||void 0===o||o.emit("didRender",s)},Fe=()=>{var e;return null===(e=T())||void 0===e?void 0:e.click()},Re=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),We=e=>{if(e.keydownTarget&&e.keydownHandlerAdded&&e.keydownHandler){const t=e.keydownHandler;e.keydownTarget.removeEventListener("keydown",t,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!1}},Ue=(e,t)=>{var o;const n=D();return n.length?(-2===(e+=t)&&(e=n.length-1),e===n.length?e=0:-1===e&&(e=n.length-1),n[e].focus(),!(navigator.userAgent.includes("Firefox")&&n[e]instanceof HTMLIFrameElement)):(null===(o=k())||void 0===o||o.focus(),!0)},Xe=["ArrowRight","ArrowDown"],Je=["ArrowLeft","ArrowUp"],Ye=(e,t,o)=>{e&&(t.isComposing||229===t.keyCode||(e.stopKeydownPropagation&&t.stopPropagation(),"Enter"===t.key?Ke(t,e):"Tab"===t.key?Ze(t):[...Xe,...Je].includes(t.key)?Ge(t.key):"Escape"===t.key&&Qe(t,e,o)))},Ke=(e,t)=>{if(!m(t.allowEnterKey))return;const o=k();if(!o||!t.input)return;const n=V(o,t.input);if(e.target&&n&&e.target instanceof HTMLElement&&e.target.outerHTML===n.outerHTML){if(["textarea","file"].includes(t.input))return;Fe(),e.preventDefault()}},Ze=e=>{const t=e.target,o=D().findIndex(e=>e===t);let n=!0;n=e.shiftKey?Ue(o,-1):Ue(o,1),e.stopPropagation(),n&&e.preventDefault()},Ge=e=>{const t=M(),o=T(),n=P(),s=S();if(!(t&&o&&n&&s))return;const a=[o,n,s];if(document.activeElement instanceof HTMLElement&&!a.includes(document.activeElement))return;const r=Xe.includes(e)?"nextElementSibling":"previousElementSibling";let i=document.activeElement;if(i){for(let e=0;e<t.children.length;e++){if(i=i[r],!i)return;if(i instanceof HTMLButtonElement&&ee(i))break}i instanceof HTMLButtonElement&&i.focus()}},Qe=(e,t,o)=>{e.preventDefault(),m(t.allowEscapeKey)&&o(Re.esc)};var et={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap};const tt=()=>{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")})},ot="undefined"!=typeof window&&Boolean(window.GestureEvent),nt=ot&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,st=()=>{const e=b();if(!e)return;let t;e.ontouchstart=e=>{t=at(e)},e.ontouchmove=e=>{t&&(e.preventDefault(),e.stopPropagation())}},at=e=>{const t=e.target,o=b(),n=E();return!(!o||!n||rt(e)||it(e)||t!==o&&(te(o)||!(t instanceof HTMLElement)||((e,t)=>{let o=e;for(;o&&o!==t;){if(te(o))return!0;o=o.parentElement}return!1})(t,n)||"INPUT"===t.tagName||"TEXTAREA"===t.tagName||te(n)&&n.contains(t)))},rt=e=>Boolean(e.touches&&e.touches.length&&"stylus"===e.touches[0].touchType),it=e=>e.touches&&e.touches.length>1;let lt=null;const ct=e=>{null===lt&&(document.body.scrollHeight>window.innerHeight||"scroll"===e)&&(lt=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight=`${lt+(()=>{const e=document.createElement("div");e.className=r["scrollbar-measure"],document.body.appendChild(e);const t=e.getBoundingClientRect().width-e.clientWidth;return document.body.removeChild(e),t})()}px`)};function dt(e,t,o,a){q()?bt(e,a):(s(o).then(()=>bt(e,a)),We(n)),ot?(t.setAttribute("style","display:none !important"),t.removeAttribute("class"),t.innerHTML=""):t.remove(),H()&&(null!==lt&&(document.body.style.paddingRight=`${lt}px`,lt=null),(()=>{if(_(document.body,r.iosfix)){const e=parseInt(document.body.style.top,10);U(document.body,r.iosfix),document.body.style.top="",document.body.scrollTop=-1*e}})(),tt()),U([document.documentElement,document.body],[r.shown,r["height-auto"],r["no-backdrop"],r["toast-shown"]])}function ut(e){e=ht(e);const t=et.swalPromiseResolve.get(this),o=pt(this);this.isAwaitingPromise?e.isDismissed||(mt(this),t(e)):o&&t(e)}const pt=e=>{const t=k();if(!t)return!1;const o=we.innerParams.get(e);if(!o||_(t,o.hideClass.popup))return!1;U(t,o.showClass.popup),W(t,o.hideClass.popup);const n=b();return U(n,o.showClass.backdrop),W(n,o.hideClass.backdrop),gt(e,t,o),!0};function wt(e){const t=et.swalPromiseReject.get(this);mt(this),t&&t(e)}const mt=e=>{e.isAwaitingPromise&&(delete e.isAwaitingPromise,we.innerParams.get(e)||e._destroy())},ht=e=>void 0===e?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},e),gt=(e,t,o)=>{var s;const a=b(),r=oe(t);"function"==typeof o.willClose&&o.willClose(t),null===(s=n.eventEmitter)||void 0===s||s.emit("willClose",t),r&&a?ft(e,t,a,Boolean(o.returnFocus),o.didClose):a&&dt(e,a,Boolean(o.returnFocus),o.didClose)},ft=(e,t,o,s,a)=>{n.swalCloseEventFinishedCallback=dt.bind(null,e,o,s,a);const r=function(e){var o;e.target===t&&(null===(o=n.swalCloseEventFinishedCallback)||void 0===o||o.call(n),delete n.swalCloseEventFinishedCallback,t.removeEventListener("animationend",r),t.removeEventListener("transitionend",r))};t.addEventListener("animationend",r),t.addEventListener("transitionend",r)},bt=(e,t)=>{setTimeout(()=>{var o;"function"==typeof t&&t.bind(e.params)(),null===(o=n.eventEmitter)||void 0===o||o.emit("didClose"),e._destroy&&e._destroy()})},vt=e=>{let t=k();if(t||new Go,t=k(),!t)return;const o=$();q()?K(x()):yt(t,e),Y(o),t.setAttribute("data-loading","true"),t.setAttribute("aria-busy","true"),t.focus()},yt=(e,t)=>{const o=M(),n=$();o&&n&&(!t&&ee(T())&&(t=T()),Y(o),t&&(K(t),n.setAttribute("data-button-to-replace",t.className),o.insertBefore(n,t)),W([e,o],r.loading))},kt=e=>e.checked?1:0,xt=e=>e.checked?e.value:null,Ct=e=>e.files&&e.files.length?null!==e.getAttribute("multiple")?e.files:e.files[0]:null,Et=(e,t)=>{const o=k();if(!o)return;const n=e=>{"select"===t.input?function(e,t,o){const n=X(e,r.select);if(!n)return;const s=(e,t,n)=>{const s=document.createElement("option");s.value=n,N(s,t),s.selected=Bt(n,o.inputValue),e.appendChild(s)};t.forEach(e=>{const t=e[0],o=e[1];if(Array.isArray(o)){const e=document.createElement("optgroup");e.label=t,e.disabled=!1,n.appendChild(e),o.forEach(t=>s(e,t[1],t[0]))}else s(n,o,t)}),n.focus()}(o,Lt(e),t):"radio"===t.input&&function(e,t,o){const n=X(e,r.radio);if(!n)return;t.forEach(e=>{const t=e[0],s=e[1],a=document.createElement("input"),i=document.createElement("label");a.type="radio",a.name=r.radio,a.value=t,Bt(t,o.inputValue)&&(a.checked=!0);const l=document.createElement("span");N(l,s),l.className=r.label,i.appendChild(a),i.appendChild(l),n.appendChild(i)});const s=n.querySelectorAll("input");s.length&&s[0].focus()}(o,Lt(e),t)};h(t.inputOptions)||f(t.inputOptions)?(vt(T()),g(t.inputOptions).then(t=>{e.hideLoading(),n(t)})):"object"==typeof t.inputOptions?n(t.inputOptions):u("Unexpected type of inputOptions! Expected object, Map or Promise, got "+typeof t.inputOptions)},At=(e,t)=>{const o=e.getInput();o&&(K(o),g(t.inputValue).then(n=>{o.value="number"===t.input?`${parseFloat(n)||0}`:`${n}`,Y(o),o.focus(),e.hideLoading()}).catch(t=>{u(`Error in inputValue promise: ${t}`),o.value="",Y(o),o.focus(),e.hideLoading()}))};const Lt=e=>(e instanceof Map?Array.from(e):Object.entries(e)).map(([e,t])=>[e,"object"==typeof t?Lt(t):t]),Bt=(e,t)=>Boolean(t)&&null!=t&&t.toString()===e.toString(),Tt=(e,t)=>{const o=we.innerParams.get(e);if(!o.input)return void u(`The "input" parameter is needed to be set when using returnInputValueOn${c(t)}`);const n=e.getInput(),s=((e,t)=>{const o=e.getInput();if(!o)return null;switch(t.input){case"checkbox":return kt(o);case"radio":return xt(o);case"file":return Ct(o);default:return t.inputAutoTrim?o.value.trim():o.value}})(e,o);o.inputValidator?St(e,s,t):n&&!n.checkValidity()?(e.enableButtons(),e.showValidationMessage(o.validationMessage||n.validationMessage)):"deny"===t?Pt(e,s):Ot(e,s)},St=(e,t,o)=>{const n=we.innerParams.get(e);e.disableInput(),Promise.resolve().then(()=>g(n.inputValidator(t,n.validationMessage))).then(n=>{e.enableButtons(),e.enableInput(),n?e.showValidationMessage(n):"deny"===o?Pt(e,t):Ot(e,t)})},Pt=(e,t)=>{const o=we.innerParams.get(e);o.showLoaderOnDeny&&vt(P()),o.preDeny?(e.isAwaitingPromise=!0,Promise.resolve().then(()=>g(o.preDeny(t,o.validationMessage))).then(o=>{!1===o?(e.hideLoading(),mt(e)):e.close({isDenied:!0,value:void 0===o?t:o})}).catch(t=>Mt(e,t))):e.close({isDenied:!0,value:t})},$t=(e,t)=>{e.close({isConfirmed:!0,value:t})},Mt=(e,t)=>{e.rejectPromise(t)},Ot=(e,t)=>{const o=we.innerParams.get(e);o.showLoaderOnConfirm&&vt(),o.preConfirm?(e.resetValidationMessage(),e.isAwaitingPromise=!0,Promise.resolve().then(()=>g(o.preConfirm(t,o.validationMessage))).then(o=>{ee(B())||!1===o?(e.hideLoading(),mt(e)):$t(e,void 0===o?t:o)}).catch(t=>Mt(e,t))):$t(e,t)};function It(){const e=we.innerParams.get(this);if(!e)return;const t=we.domCache.get(this);K(t.loader),q()?e.icon&&Y(x()):jt(t),U([t.popup,t.actions],r.loading),t.popup.removeAttribute("aria-busy"),t.popup.removeAttribute("data-loading"),this.enableButtons()}const jt=e=>{const t=e.loader.getAttribute("data-button-to-replace"),o=t?e.popup.getElementsByClassName(t):[];o.length?Y(o[0],"inline-block"):!ee(T())&&!ee(P())&&!ee(S())&&K(e.actions)};function Dt(){const e=we.innerParams.get(this),t=we.domCache.get(this);return t?V(t.popup,e.input):null}function Ht(e,t,o){const n=we.domCache.get(e);t.forEach(e=>{n[e].disabled=o})}function qt(e,t){const o=k();o&&e&&("radio"===e.type?o.querySelectorAll(`[name="${r.radio}"]`).forEach(e=>{e.disabled=t}):e.disabled=t)}function Nt(){Ht(this,["confirmButton","denyButton","cancelButton"],!1);const e=we.focusedElement.get(this);e instanceof HTMLElement&&document.activeElement===document.body&&e.focus(),we.focusedElement.delete(this)}function _t(){we.focusedElement.set(this,document.activeElement),Ht(this,["confirmButton","denyButton","cancelButton"],!0)}function zt(){qt(this.getInput(),!1)}function Vt(){qt(this.getInput(),!0)}function Ft(e){const t=we.domCache.get(this),o=we.innerParams.get(this);N(t.validationMessage,e),t.validationMessage.className=r["validation-message"],o.customClass&&o.customClass.validationMessage&&W(t.validationMessage,o.customClass.validationMessage),Y(t.validationMessage);const n=this.getInput();n&&(n.setAttribute("aria-invalid","true"),n.setAttribute("aria-describedby",r["validation-message"]),F(n),W(n,r.inputerror))}function Rt(){const e=we.domCache.get(this);e.validationMessage&&K(e.validationMessage);const t=this.getInput();t&&(t.removeAttribute("aria-invalid"),t.removeAttribute("aria-describedby"),U(t,r.inputerror))}const Wt={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:"×",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},Ut=["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"],Xt={allowEnterKey:void 0},Jt=["allowOutsideClick","allowEnterKey","backdrop","draggable","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],Yt=e=>Object.prototype.hasOwnProperty.call(Wt,e),Kt=e=>-1!==Ut.indexOf(e),Zt=e=>Xt[e],Gt=e=>{Yt(e)||d(`Unknown parameter "${e}"`)},Qt=e=>{Jt.includes(e)&&d(`The parameter "${e}" is incompatible with toasts`)},eo=e=>{const t=Zt(e);t&&w(e,t)},to=e=>{!1===e.backdrop&&e.allowOutsideClick&&d('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`'),e.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(e.theme)&&d(`Invalid theme "${e.theme}"`);for(const t in e)Gt(t),e.toast&&Qt(t),eo(t)};function oo(e){const t=b(),o=k(),n=we.innerParams.get(this);if(!o||_(o,n.hideClass.popup))return void d("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.");const s=no(e),a=Object.assign({},n,s);to(a),t&&(t.dataset.swal2Theme=a.theme),Ve(this,a),we.innerParams.set(this,a),Object.defineProperties(this,{params:{value:Object.assign({},this.params,e),writable:!1,enumerable:!0}})}const no=e=>{const t={};return Object.keys(e).forEach(o=>{if(Kt(o)){const n=e;t[o]=n[o]}else d(`Invalid parameter to update: ${o}`)}),t};function so(){var e;const t=we.domCache.get(this),o=we.innerParams.get(this);o?(t.popup&&n.swalCloseEventFinishedCallback&&(n.swalCloseEventFinishedCallback(),delete n.swalCloseEventFinishedCallback),"function"==typeof o.didDestroy&&o.didDestroy(),null===(e=n.eventEmitter)||void 0===e||e.emit("didDestroy"),ao(this)):ro(this)}const ao=e=>{ro(e),delete e.params,delete n.keydownHandler,delete n.keydownTarget,delete n.currentInstance},ro=e=>{e.isAwaitingPromise?(io(we,e),e.isAwaitingPromise=!0):(io(et,e),io(we,e),delete e.isAwaitingPromise,delete e.disableButtons,delete e.enableButtons,delete e.getInput,delete e.disableInput,delete e.enableInput,delete e.hideLoading,delete e.disableLoading,delete e.showValidationMessage,delete e.resetValidationMessage,delete e.close,delete e.closePopup,delete e.closeModal,delete e.closeToast,delete e.rejectPromise,delete e.update,delete e._destroy)},io=(e,t)=>{for(const o in e)e[o].delete(t)};var lo=Object.freeze({__proto__:null,_destroy:so,close:ut,closeModal:ut,closePopup:ut,closeToast:ut,disableButtons:_t,disableInput:Vt,disableLoading:It,enableButtons:Nt,enableInput:zt,getInput:Dt,handleAwaitingPromise:mt,hideLoading:It,rejectPromise:wt,resetValidationMessage:Rt,showValidationMessage:Ft,update:oo});const co=(e,t,o)=>{t.popup.onclick=()=>{e&&(uo(e)||e.timer||e.input)||o(Re.close)}},uo=e=>Boolean(e.showConfirmButton||e.showDenyButton||e.showCancelButton||e.showCloseButton);let po=!1;const wo=e=>{e.popup.onmousedown=()=>{e.container.onmouseup=function(t){e.container.onmouseup=()=>{},t.target===e.container&&(po=!0)}}},mo=e=>{e.container.onmousedown=t=>{t.target===e.container&&t.preventDefault(),e.popup.onmouseup=function(t){e.popup.onmouseup=()=>{},(t.target===e.popup||t.target instanceof HTMLElement&&e.popup.contains(t.target))&&(po=!0)}}},ho=(e,t,o)=>{t.container.onclick=n=>{po?po=!1:n.target===t.container&&m(e.allowOutsideClick)&&o(Re.backdrop)}},go=e=>e instanceof Element||(e=>"object"==typeof e&&null!==e&&"jquery"in e)(e);const fo=()=>{if(n.timeout)return(()=>{const e=I();if(!e)return;const t=parseInt(window.getComputedStyle(e).width);e.style.removeProperty("transition"),e.style.width="100%";const o=t/parseInt(window.getComputedStyle(e).width)*100;e.style.width=`${o}%`})(),n.timeout.stop()},bo=()=>{if(n.timeout){const e=n.timeout.start();return ne(e),e}};let vo=!1;const yo={};const ko=e=>{for(let t=e.target;t&&t!==document;t=t.parentNode)for(const e in yo){const o=t.getAttribute&&t.getAttribute(e);if(o)return void yo[e].fire({template:o})}};n.eventEmitter=new class{constructor(){this.events={}}_getHandlersByEventName(e){return void 0===this.events[e]&&(this.events[e]=[]),this.events[e]}on(e,t){const o=this._getHandlersByEventName(e);o.includes(t)||o.push(t)}once(e,t){const o=(...n)=>{this.removeListener(e,o),t.apply(this,n)};this.on(e,o)}emit(e,...t){this._getHandlersByEventName(e).forEach(e=>{try{e.apply(this,t)}catch(e){console.error(e)}})}removeListener(e,t){const o=this._getHandlersByEventName(e),n=o.indexOf(t);n>-1&&o.splice(n,1)}removeAllListeners(e){void 0!==this.events[e]&&(this.events[e].length=0)}reset(){this.events={}}};var xo=Object.freeze({__proto__:null,argsToParams:e=>{const t={};return"object"!=typeof e[0]||go(e[0])?["title","html","icon"].forEach((o,n)=>{const s=e[n];"string"==typeof s||go(s)?t[o]=s:void 0!==s&&u(`Unexpected type of ${o}! Expected "string" or "Element", got ${typeof s}`)}):Object.assign(t,e[0]),t},bindClickHandler:function(e="data-swal-template"){yo[e]=this,vo||(document.body.addEventListener("click",ko),vo=!0)},clickCancel:()=>{var e;return null===(e=S())||void 0===e?void 0:e.click()},clickConfirm:Fe,clickDeny:()=>{var e;return null===(e=P())||void 0===e?void 0:e.click()},enableLoading:vt,fire:function(...e){return new this(...e)},getActions:M,getCancelButton:S,getCloseButton:j,getConfirmButton:T,getContainer:b,getDenyButton:P,getFocusableElements:D,getFooter:O,getHtmlContainer:E,getIcon:x,getIconContent:()=>y(r["icon-content"]),getImage:A,getInputLabel:()=>y(r["input-label"]),getLoader:$,getPopup:k,getProgressSteps:L,getTimerLeft:()=>n.timeout&&n.timeout.getTimerLeft(),getTimerProgressBar:I,getTitle:C,getValidationMessage:B,increaseTimer:e=>{if(n.timeout){const t=n.timeout.increase(e);return ne(t,!0),t}},isDeprecatedParameter:Zt,isLoading:()=>{const e=k();return!!e&&e.hasAttribute("data-loading")},isTimerRunning:()=>Boolean(n.timeout&&n.timeout.isRunning()),isUpdatableParameter:Kt,isValidParameter:Yt,isVisible:()=>ee(k()),mixin:function(e){return class extends(this){_main(t,o){return super._main(t,Object.assign({},e,o))}}},off:(e,t)=>{n.eventEmitter&&(e?t?n.eventEmitter.removeListener(e,t):n.eventEmitter.removeAllListeners(e):n.eventEmitter.reset())},on:(e,t)=>{n.eventEmitter&&n.eventEmitter.on(e,t)},once:(e,t)=>{n.eventEmitter&&n.eventEmitter.once(e,t)},resumeTimer:bo,showLoading:vt,stopTimer:fo,toggleTimer:()=>{const e=n.timeout;return e&&(e.running?fo():bo())}});class Co{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 Eo=["swal-title","swal-html","swal-footer"],Ao=e=>{const t={};return Array.from(e.querySelectorAll("swal-param")).forEach(e=>{Oo(e,["name","value"]);const o=e.getAttribute("name"),n=e.getAttribute("value");o&&n&&(t[o]=o in Wt&&"boolean"==typeof Wt[o]?"false"!==n:o in Wt&&"object"==typeof Wt[o]?JSON.parse(n):n)}),t},Lo=e=>{const t={};return Array.from(e.querySelectorAll("swal-function-param")).forEach(e=>{const o=e.getAttribute("name"),n=e.getAttribute("value");o&&n&&(t[o]=new Function(`return ${n}`)())}),t},Bo=e=>{const t={};return Array.from(e.querySelectorAll("swal-button")).forEach(e=>{Oo(e,["type","color","aria-label"]);const o=e.getAttribute("type");if(!o||!["confirm","cancel","deny"].includes(o))return;t[`${o}ButtonText`]=e.innerHTML,t[`show${c(o)}Button`]=!0;const n=e.getAttribute("color");null!==n&&(t[`${o}ButtonColor`]=n);const s=e.getAttribute("aria-label");null!==s&&(t[`${o}ButtonAriaLabel`]=s)}),t},To=e=>{const t={},o=e.querySelector("swal-image");if(o){Oo(o,["src","width","height","alt"]);const e=o.getAttribute("src");null!==e&&(t.imageUrl=e||void 0);const n=o.getAttribute("width");null!==n&&(t.imageWidth=n||void 0);const s=o.getAttribute("height");null!==s&&(t.imageHeight=s||void 0);const a=o.getAttribute("alt");null!==a&&(t.imageAlt=a||void 0)}return t},So=e=>{const t={},o=e.querySelector("swal-icon");return o&&(Oo(o,["type","color"]),o.hasAttribute("type")&&(t.icon=o.getAttribute("type")),o.hasAttribute("color")&&(t.iconColor=o.getAttribute("color")),t.iconHtml=o.innerHTML),t},Po=e=>{const t={},o=e.querySelector("swal-input");o&&(Oo(o,["type","label","placeholder","value"]),t.input=o.getAttribute("type")||"text",o.hasAttribute("label")&&(t.inputLabel=o.getAttribute("label")),o.hasAttribute("placeholder")&&(t.inputPlaceholder=o.getAttribute("placeholder")),o.hasAttribute("value")&&(t.inputValue=o.getAttribute("value")));const n=Array.from(e.querySelectorAll("swal-input-option"));return n.length&&(t.inputOptions={},n.forEach(e=>{Oo(e,["value"]);const o=e.getAttribute("value");if(!o)return;const n=e.innerHTML;t.inputOptions[o]=n})),t},$o=(e,t)=>{const o={};for(const n in t){const s=t[n],a=e.querySelector(s);a&&(Oo(a,[]),o[s.replace(/^swal-/,"")]=a.innerHTML.trim())}return o},Mo=e=>{const t=Eo.concat(["swal-param","swal-function-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);Array.from(e.children).forEach(e=>{const o=e.tagName.toLowerCase();t.includes(o)||d(`Unrecognized element <${o}>`)})},Oo=(e,t)=>{Array.from(e.attributes).forEach(o=>{-1===t.indexOf(o.name)&&d([`Unrecognized attribute "${o.name}" on <${e.tagName.toLowerCase()}>.`,t.length?`Allowed attributes are: ${t.join(", ")}`:"To set the value, use HTML within the element."])})},Io=e=>{var t,o;const s=b(),a=k();if(!s||!a)return;"function"==typeof e.willOpen&&e.willOpen(a),null===(t=n.eventEmitter)||void 0===t||t.emit("willOpen",a);const r=window.getComputedStyle(document.body).overflowY;if(qo(s,a,e),setTimeout(()=>{Do(s,a)},10),H()&&(Ho(s,void 0!==e.scrollbarPadding&&e.scrollbarPadding,r),(()=>{const e=b();Array.from(document.body.children).forEach(t=>{t.contains(e)||(t.hasAttribute("aria-hidden")&&t.setAttribute("data-previous-aria-hidden",t.getAttribute("aria-hidden")||""),t.setAttribute("aria-hidden","true"))})})()),nt&&!1===e.backdrop&&a.scrollHeight>s.clientHeight&&(s.style.pointerEvents="auto"),q()||n.previousActiveElement||(n.previousActiveElement=document.activeElement),"function"==typeof e.didOpen){const t=e.didOpen;setTimeout(()=>t(a))}null===(o=n.eventEmitter)||void 0===o||o.emit("didOpen",a)},jo=e=>{const t=k();if(!t||e.target!==t)return;const o=b();o&&(t.removeEventListener("animationend",jo),t.removeEventListener("transitionend",jo),o.style.overflowY="auto",U(o,r["no-transition"]))},Do=(e,t)=>{oe(t)?(e.style.overflowY="hidden",t.addEventListener("animationend",jo),t.addEventListener("transitionend",jo)):e.style.overflowY="auto"},Ho=(e,t,o)=>{(()=>{if(ot&&!_(document.body,r.iosfix)){const e=document.body.scrollTop;document.body.style.top=-1*e+"px",W(document.body,r.iosfix),st()}})(),t&&"hidden"!==o&&ct(o),setTimeout(()=>{e.scrollTop=0})},qo=(e,t,o)=>{var n;null!==(n=o.showClass)&&void 0!==n&&n.backdrop&&W(e,o.showClass.backdrop),o.animation?(t.style.setProperty("opacity","0","important"),Y(t,"grid"),setTimeout(()=>{var e;null!==(e=o.showClass)&&void 0!==e&&e.popup&&W(t,o.showClass.popup),t.style.removeProperty("opacity")},10)):Y(t,"grid"),W([document.documentElement,document.body],r.shown),o.heightAuto&&o.backdrop&&!o.toast&&W([document.documentElement,document.body],r["height-auto"])};var No=(e,t)=>/^[a-zA-Z0-9.+_'-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]+$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid email address"),_o=(e,t)=>/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid URL");function zo(e){(function(e){e.inputValidator||("email"===e.input&&(e.inputValidator=No),"url"===e.input&&(e.inputValidator=_o))})(e),e.showLoaderOnConfirm&&!e.preConfirm&&d("showLoaderOnConfirm is set to true, but preConfirm is not defined.\nshowLoaderOnConfirm should be used together with preConfirm, see usage example:\nhttps://sweetalert2.github.io/#ajax-request"),function(e){(!e.target||"string"==typeof e.target&&!document.querySelector(e.target)||"string"!=typeof e.target&&!e.target.appendChild)&&(d('Target parameter is not valid, defaulting to "body"'),e.target="body")}(e),"string"==typeof e.title&&(e.title=e.title.split("\n").join("<br />")),re(e)}let Vo;var Fo=new WeakMap;class Ro{constructor(...t){if(o(this,Fo,Promise.resolve({isConfirmed:!1,isDenied:!1,isDismissed:!0})),"undefined"==typeof window)return;Vo=this;const n=Object.freeze(this.constructor.argsToParams(t));var s,a,r;this.params=n,this.isAwaitingPromise=!1,s=Fo,a=this,r=this._main(Vo.params),s.set(e(s,a),r)}_main(e,t={}){if(to(Object.assign({},t,e)),n.currentInstance){const e=et.swalPromiseResolve.get(n.currentInstance),{isAwaitingPromise:t}=n.currentInstance;n.currentInstance._destroy(),t||e({isDismissed:!0}),H()&&tt()}n.currentInstance=Vo;const o=Uo(e,t);zo(o),Object.freeze(o),n.timeout&&(n.timeout.stop(),delete n.timeout),clearTimeout(n.restoreFocusTimeout);const s=Xo(Vo);return Ve(Vo,o),we.innerParams.set(Vo,o),Wo(Vo,s,o)}then(e){return t(Fo,this).then(e)}finally(e){return t(Fo,this).finally(e)}}const Wo=(e,t,o)=>new Promise((s,a)=>{const r=t=>{e.close({isDismissed:!0,dismiss:t,isConfirmed:!1,isDenied:!1})};et.swalPromiseResolve.set(e,s),et.swalPromiseReject.set(e,a),t.confirmButton.onclick=()=>{(e=>{const t=we.innerParams.get(e);e.disableButtons(),t.input?Tt(e,"confirm"):Ot(e,!0)})(e)},t.denyButton.onclick=()=>{(e=>{const t=we.innerParams.get(e);e.disableButtons(),t.returnInputValueOnDeny?Tt(e,"deny"):Pt(e,!1)})(e)},t.cancelButton.onclick=()=>{((e,t)=>{e.disableButtons(),t(Re.cancel)})(e,r)},t.closeButton.onclick=()=>{r(Re.close)},((e,t,o)=>{e.toast?co(e,t,o):(wo(t),mo(t),ho(e,t,o))})(o,t,r),((e,t,o)=>{if(We(e),!t.toast){const n=e=>Ye(t,e,o);e.keydownHandler=n;const s=t.keydownListenerCapture?window:k();if(s){e.keydownTarget=s,e.keydownListenerCapture=t.keydownListenerCapture;const o=n;e.keydownTarget.addEventListener("keydown",o,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!0}}})(n,o,r),((e,t)=>{"select"===t.input||"radio"===t.input?Et(e,t):["text","email","number","tel","textarea"].some(e=>e===t.input)&&(h(t.inputValue)||f(t.inputValue))&&(vt(T()),At(e,t))})(e,o),Io(o),Jo(n,o,r),Yo(t,o),setTimeout(()=>{t.container.scrollTop=0})}),Uo=(e,t)=>{const o=(e=>{const t="string"==typeof e.template?document.querySelector(e.template):e.template;if(!t)return{};const o=t.content;return Mo(o),Object.assign(Ao(o),Lo(o),Bo(o),To(o),So(o),Po(o),$o(o,Eo))})(e),n=Object.assign({},Wt,t,o,e);return n.showClass=Object.assign({},Wt.showClass,n.showClass),n.hideClass=Object.assign({},Wt.hideClass,n.hideClass),!1===n.animation&&(n.showClass={backdrop:"swal2-noanimation"},n.hideClass={}),n},Xo=e=>{const t={popup:k(),container:b(),actions:M(),confirmButton:T(),denyButton:P(),cancelButton:S(),loader:$(),closeButton:j(),validationMessage:B(),progressSteps:L()};return we.domCache.set(e,t),t},Jo=(e,t,o)=>{const n=I();K(n),t.timer&&(e.timeout=new Co(()=>{o("timer"),delete e.timeout},t.timer),t.timerProgressBar&&n&&(Y(n),z(n,t,"timerProgressBar"),setTimeout(()=>{e.timeout&&e.timeout.running&&ne(t.timer)})))},Yo=(e,t)=>{if(!t.toast)return m(t.allowEnterKey)?void(Ko(e)||Zo(e,t)||Ue(-1,1)):(w("allowEnterKey","preConfirm: () => false"),void e.popup.focus())},Ko=e=>{const t=Array.from(e.popup.querySelectorAll("[autofocus]"));for(const e of t)if(e instanceof HTMLElement&&ee(e))return e.focus(),!0;return!1},Zo=(e,t)=>t.focusDeny&&ee(e.denyButton)?(e.denyButton.focus(),!0):t.focusCancel&&ee(e.cancelButton)?(e.cancelButton.focus(),!0):!(!t.focusConfirm||!ee(e.confirmButton)||(e.confirmButton.focus(),0));Ro.prototype.disableButtons=_t,Ro.prototype.enableButtons=Nt,Ro.prototype.getInput=Dt,Ro.prototype.disableInput=Vt,Ro.prototype.enableInput=zt,Ro.prototype.hideLoading=It,Ro.prototype.disableLoading=It,Ro.prototype.showValidationMessage=Ft,Ro.prototype.resetValidationMessage=Rt,Ro.prototype.close=ut,Ro.prototype.closePopup=ut,Ro.prototype.closeModal=ut,Ro.prototype.closeToast=ut,Ro.prototype.rejectPromise=wt,Ro.prototype.update=oo,Ro.prototype._destroy=so,Object.assign(Ro,xo),Object.keys(lo).forEach(e=>{Ro[e]=function(...t){if(Vo&&Vo[e])return Vo[e](...t)}}),Ro.DismissReason=Re,Ro.version="11.26.25";const Go=Ro;return Go.default=Go,Go}(),void 0!==this&&this.Sweetalert2&&(this.swal=this.sweetAlert=this.Swal=this.SweetAlert=this.Sweetalert2),"undefined"!=typeof document&&function(e,t){var o=e.createElement("style");if(e.getElementsByTagName("head")[0].appendChild(o),o.styleSheet)o.styleSheet.disabled||(o.styleSheet.cssText=t);else try{o.innerHTML=t}catch(e){o.innerText=t}}(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-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:auto}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}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)}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}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}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}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)}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:auto}.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}.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}}')},7736(e){var t;t=function(e){var t=function(e){return new t.lib.init(e)};function o(e,t){return t.offset[e]?isNaN(t.offset[e])?t.offset[e]:t.offset[e]+"px":"0px"}function n(e,t){return!(!e||"string"!=typeof t||!(e.className&&e.className.trim().split(/\s+/gi).indexOf(t)>-1))}return t.defaults={oldestFirst:!0,text:"Toastify is awesome!",node:void 0,duration:3e3,selector:void 0,callback:function(){},destination:void 0,newWindow:!1,close:!1,gravity:"toastify-top",positionLeft:!1,position:"",backgroundColor:"",avatar:"",className:"",stopOnFocus:!0,onClick:function(){},offset:{x:0,y:0},escapeMarkup:!0,ariaLive:"polite",style:{background:""}},t.lib=t.prototype={toastify:"1.12.0",constructor:t,init:function(e){return e||(e={}),this.options={},this.toastElement=null,this.options.text=e.text||t.defaults.text,this.options.node=e.node||t.defaults.node,this.options.duration=0===e.duration?0:e.duration||t.defaults.duration,this.options.selector=e.selector||t.defaults.selector,this.options.callback=e.callback||t.defaults.callback,this.options.destination=e.destination||t.defaults.destination,this.options.newWindow=e.newWindow||t.defaults.newWindow,this.options.close=e.close||t.defaults.close,this.options.gravity="bottom"===e.gravity?"toastify-bottom":t.defaults.gravity,this.options.positionLeft=e.positionLeft||t.defaults.positionLeft,this.options.position=e.position||t.defaults.position,this.options.backgroundColor=e.backgroundColor||t.defaults.backgroundColor,this.options.avatar=e.avatar||t.defaults.avatar,this.options.className=e.className||t.defaults.className,this.options.stopOnFocus=void 0===e.stopOnFocus?t.defaults.stopOnFocus:e.stopOnFocus,this.options.onClick=e.onClick||t.defaults.onClick,this.options.offset=e.offset||t.defaults.offset,this.options.escapeMarkup=void 0!==e.escapeMarkup?e.escapeMarkup:t.defaults.escapeMarkup,this.options.ariaLive=e.ariaLive||t.defaults.ariaLive,this.options.style=e.style||t.defaults.style,e.backgroundColor&&(this.options.style.background=e.backgroundColor),this},buildToast:function(){if(!this.options)throw"Toastify is not initialized";var e=document.createElement("div");for(var t in e.className="toastify on "+this.options.className,this.options.position?e.className+=" toastify-"+this.options.position:!0===this.options.positionLeft?(e.className+=" toastify-left",console.warn("Property `positionLeft` will be depreciated in further versions. Please use `position` instead.")):e.className+=" toastify-right",e.className+=" "+this.options.gravity,this.options.backgroundColor&&console.warn('DEPRECATION NOTICE: "backgroundColor" is being deprecated. Please use the "style.background" property.'),this.options.style)e.style[t]=this.options.style[t];if(this.options.ariaLive&&e.setAttribute("aria-live",this.options.ariaLive),this.options.node&&this.options.node.nodeType===Node.ELEMENT_NODE)e.appendChild(this.options.node);else if(this.options.escapeMarkup?e.innerText=this.options.text:e.innerHTML=this.options.text,""!==this.options.avatar){var n=document.createElement("img");n.src=this.options.avatar,n.className="toastify-avatar","left"==this.options.position||!0===this.options.positionLeft?e.appendChild(n):e.insertAdjacentElement("afterbegin",n)}if(!0===this.options.close){var s=document.createElement("button");s.type="button",s.setAttribute("aria-label","Close"),s.className="toast-close",s.innerHTML="✖",s.addEventListener("click",function(e){e.stopPropagation(),this.removeElement(this.toastElement),window.clearTimeout(this.toastElement.timeOutValue)}.bind(this));var a=window.innerWidth>0?window.innerWidth:screen.width;("left"==this.options.position||!0===this.options.positionLeft)&&a>360?e.insertAdjacentElement("afterbegin",s):e.appendChild(s)}if(this.options.stopOnFocus&&this.options.duration>0){var r=this;e.addEventListener("mouseover",function(t){window.clearTimeout(e.timeOutValue)}),e.addEventListener("mouseleave",function(){e.timeOutValue=window.setTimeout(function(){r.removeElement(e)},r.options.duration)})}if(void 0!==this.options.destination&&e.addEventListener("click",function(e){e.stopPropagation(),!0===this.options.newWindow?window.open(this.options.destination,"_blank"):window.location=this.options.destination}.bind(this)),"function"==typeof this.options.onClick&&void 0===this.options.destination&&e.addEventListener("click",function(e){e.stopPropagation(),this.options.onClick()}.bind(this)),"object"==typeof this.options.offset){var i=o("x",this.options),l=o("y",this.options),c="left"==this.options.position?i:"-"+i,d="toastify-top"==this.options.gravity?l:"-"+l;e.style.transform="translate("+c+","+d+")"}return e},showToast:function(){var e;if(this.toastElement=this.buildToast(),!(e="string"==typeof this.options.selector?document.getElementById(this.options.selector):this.options.selector instanceof HTMLElement||"undefined"!=typeof ShadowRoot&&this.options.selector instanceof ShadowRoot?this.options.selector:document.body))throw"Root element is not defined";var o=t.defaults.oldestFirst?e.firstChild:e.lastChild;return e.insertBefore(this.toastElement,o),t.reposition(),this.options.duration>0&&(this.toastElement.timeOutValue=window.setTimeout(function(){this.removeElement(this.toastElement)}.bind(this),this.options.duration)),this},hideToast:function(){this.toastElement.timeOutValue&&clearTimeout(this.toastElement.timeOutValue),this.removeElement(this.toastElement)},removeElement:function(e){e.className=e.className.replace(" on",""),window.setTimeout(function(){this.options.node&&this.options.node.parentNode&&this.options.node.parentNode.removeChild(this.options.node),e.parentNode&&e.parentNode.removeChild(e),this.options.callback.call(e),t.reposition()}.bind(this),400)}},t.reposition=function(){for(var e,t={top:15,bottom:15},o={top:15,bottom:15},s={top:15,bottom:15},a=document.getElementsByClassName("toastify"),r=0;r<a.length;r++){e=!0===n(a[r],"toastify-top")?"toastify-top":"toastify-bottom";var i=a[r].offsetHeight;e=e.substr(9,e.length-1),(window.innerWidth>0?window.innerWidth:screen.width)<=360?(a[r].style[e]=s[e]+"px",s[e]+=i+15):!0===n(a[r],"toastify-left")?(a[r].style[e]=t[e]+"px",t[e]+=i+15):(a[r].style[e]=o[e]+"px",o[e]+=i+15)}return this},t.lib.init.prototype=t.lib,t},e.exports?e.exports=t():this.Toastify=t()}};const t={};function o(n){const s=t[n];if(void 0!==s)return s.exports;const a=t[n]={id:n,exports:{}};return e[n].call(a.exports,a,a.exports,o),a.exports}o.n=e=>{const t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{if(Array.isArray(t))for(var n=0;n<t.length;){var s=t[n++],a=t[n++];o.o(e,s)?0===a&&n++:0===a?Object.defineProperty(e,s,{enumerable:!0,value:t[n++]}):Object.defineProperty(e,s,{enumerable:!0,get:a})}else for(var s in t)o.o(t,s)&&!o.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:t[s]})},o.o=(e,t)=>Object.hasOwn(e,t),o.cjs=e=>{const t={exports:{}};return e.call(t.exports,t,t.exports),t.exports},o.nc=void 0,o(3594)})(); |
|
1
|
+(()=>{var e={9455(e,t,o){"use strict";o.d(t,{A:()=>i});var n=o(1601),s=o.n(n),a=o(6314),r=o.n(a)()(s());r.push([e.id,"/*!\n * Toastify js 1.12.0\n * https://github.com/apvarun/toastify-js\n * @license MIT licensed\n *\n * Copyright (C) 2018 Varun A P\n */\n\n.toastify {\n padding: 12px 20px;\n color: #ffffff;\n display: inline-block;\n box-shadow: 0 3px 6px -1px rgba(0, 0, 0, 0.12), 0 10px 36px -4px rgba(77, 96, 232, 0.3);\n background: -webkit-linear-gradient(315deg, #73a5ff, #5477f5);\n background: linear-gradient(135deg, #73a5ff, #5477f5);\n position: fixed;\n opacity: 0;\n transition: all 0.4s cubic-bezier(0.215, 0.61, 0.355, 1);\n border-radius: 2px;\n cursor: pointer;\n text-decoration: none;\n max-width: calc(50% - 20px);\n z-index: 2147483647;\n}\n\n.toastify.on {\n opacity: 1;\n}\n\n.toast-close {\n background: transparent;\n border: 0;\n color: white;\n cursor: pointer;\n font-family: inherit;\n font-size: 1em;\n opacity: 0.4;\n padding: 0 5px;\n}\n\n.toastify-right {\n right: 15px;\n}\n\n.toastify-left {\n left: 15px;\n}\n\n.toastify-top {\n top: -150px;\n}\n\n.toastify-bottom {\n bottom: -150px;\n}\n\n.toastify-rounded {\n border-radius: 25px;\n}\n\n.toastify-avatar {\n width: 1.5em;\n height: 1.5em;\n margin: -7px 5px;\n border-radius: 2px;\n}\n\n.toastify-center {\n margin-left: auto;\n margin-right: auto;\n left: 0;\n right: 0;\n max-width: fit-content;\n max-width: -moz-fit-content;\n}\n\n@media only screen and (max-width: 360px) {\n .toastify-right, .toastify-left {\n margin-left: auto;\n margin-right: auto;\n left: 0;\n right: 0;\n max-width: fit-content;\n }\n}\n",""]);const i=r},6314(e){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var o="",n=void 0!==t[5];return t[4]&&(o+="@supports (".concat(t[4],") {")),t[2]&&(o+="@media ".concat(t[2]," {")),n&&(o+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),o+=e(t),n&&(o+="}"),t[2]&&(o+="}"),t[4]&&(o+="}"),o}).join("")},t.i=function(e,o,n,s,a){"string"==typeof e&&(e=[[null,e,void 0]]);var r={};if(n)for(var i=0;i<this.length;i++){var l=this[i][0];null!=l&&(r[l]=!0)}for(var c=0;c<e.length;c++){var d=[].concat(e[c]);n&&r[d[0]]||(void 0!==a&&(void 0===d[5]||(d[1]="@layer".concat(d[5].length>0?" ".concat(d[5]):""," {").concat(d[1],"}")),d[5]=a),o&&(d[2]?(d[1]="@media ".concat(d[2]," {").concat(d[1],"}"),d[2]=o):d[2]=o),s&&(d[4]?(d[1]="@supports (".concat(d[4],") {").concat(d[1],"}"),d[4]=s):d[4]="".concat(s)),t.push(d))}},t}},1601(e){"use strict";e.exports=function(e){return e[1]}},5072(e){"use strict";var t=[];function o(e){for(var o=-1,n=0;n<t.length;n++)if(t[n].identifier===e){o=n;break}return o}function n(e,n){for(var a={},r=[],i=0;i<e.length;i++){var l=e[i],c=n.base?l[0]+n.base:l[0],d=a[c]||0,u="".concat(c," ").concat(d);a[c]=d+1;var p=o(u),w={css:l[1],media:l[2],sourceMap:l[3],supports:l[4],layer:l[5]};if(-1!==p)t[p].references++,t[p].updater(w);else{var m=s(w,n);n.byIndex=i,t.splice(i,0,{identifier:u,updater:m,references:1})}r.push(u)}return r}function s(e,t){var o=t.domAPI(t);return o.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;o.update(e=t)}else o.remove()}}e.exports=function(e,s){var a=n(e=e||[],s=s||{});return function(e){e=e||[];for(var r=0;r<a.length;r++){var i=o(a[r]);t[i].references--}for(var l=n(e,s),c=0;c<a.length;c++){var d=o(a[c]);0===t[d].references&&(t[d].updater(),t.splice(d,1))}a=l}}},7659(e){"use strict";var t={};e.exports=function(e,o){var n=function(e){if(void 0===t[e]){var o=document.querySelector(e);if(window.HTMLIFrameElement&&o instanceof window.HTMLIFrameElement)try{o=o.contentDocument.head}catch(e){o=null}t[e]=o}return t[e]}(e);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(o)}},540(e){"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},5056(e,t,o){"use strict";e.exports=function(e){var t=o.nc;t&&e.setAttribute("nonce",t)}},7825(e){"use strict";e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(o){!function(e,t,o){var n="";o.supports&&(n+="@supports (".concat(o.supports,") {")),o.media&&(n+="@media ".concat(o.media," {"));var s=void 0!==o.layer;s&&(n+="@layer".concat(o.layer.length>0?" ".concat(o.layer):""," {")),n+=o.css,s&&(n+="}"),o.media&&(n+="}"),o.supports&&(n+="}");var a=o.sourceMap;a&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")),t.styleTagTransform(n,e,t.options)}(t,e,o)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},1113(e){"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},8465(e){e.exports=function(){"use strict";function e(e,t,o){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:o;throw new TypeError("Private element is not present on this object")}function t(t,o){return t.get(e(t,o))}function o(e,t,o){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,o)}const n={},s=e=>new Promise(t=>{if(!e)return t();const o=window.scrollX,s=window.scrollY;n.restoreFocusTimeout=setTimeout(()=>{n.previousActiveElement instanceof HTMLElement?(n.previousActiveElement.focus(),n.previousActiveElement=null):document.body&&document.body.focus(),t()},100),window.scrollTo(o,s)}),a="swal2-",r=["container","shown","height-auto","iosfix","popup","modal","no-backdrop","no-transition","toast","toast-shown","show","hide","close","title","html-container","actions","confirm","deny","cancel","footer","icon","icon-content","image","input","file","range","select","radio","checkbox","label","textarea","inputerror","input-label","validation-message","progress-steps","active-progress-step","progress-step","progress-step-line","loader","loading","styled","top","top-start","top-end","top-left","top-right","center","center-start","center-end","center-left","center-right","bottom","bottom-start","bottom-end","bottom-left","bottom-right","grow-row","grow-column","grow-fullscreen","rtl","timer-progress-bar","timer-progress-bar-container","scrollbar-measure","icon-success","icon-warning","icon-info","icon-question","icon-error","draggable","dragging"].reduce((e,t)=>(e[t]=a+t,e),{}),i=["success","warning","info","question","error"].reduce((e,t)=>(e[t]=a+t,e),{}),l="SweetAlert2:",c=e=>e.charAt(0).toUpperCase()+e.slice(1),d=e=>{console.warn(`${l} ${"object"==typeof e?e.join(" "):e}`)},u=e=>{console.error(`${l} ${e}`)},p=[],w=(e,t=null)=>{var o;o=`"${e}" is deprecated and will be removed in the next major release.${t?` Use "${t}" instead.`:""}`,p.includes(o)||(p.push(o),d(o))},m=e=>"function"==typeof e?e():e,h=e=>e&&"function"==typeof e.toPromise,g=e=>h(e)?e.toPromise():Promise.resolve(e),f=e=>e&&Promise.resolve(e)===e,b=()=>document.body.querySelector(`.${r.container}`),v=e=>{const t=b();return t?t.querySelector(e):null},y=e=>v(`.${e}`),k=()=>y(r.popup),x=()=>y(r.icon),C=()=>y(r.title),E=()=>y(r["html-container"]),A=()=>y(r.image),L=()=>y(r["progress-steps"]),B=()=>y(r["validation-message"]),T=()=>v(`.${r.actions} .${r.confirm}`),S=()=>v(`.${r.actions} .${r.cancel}`),$=()=>v(`.${r.actions} .${r.deny}`),P=()=>v(`.${r.loader}`),M=()=>y(r.actions),O=()=>y(r.footer),I=()=>y(r["timer-progress-bar"]),D=()=>y(r.close),j=()=>{const e=k();if(!e)return[];const t=e.querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])'),o=Array.from(t).sort((e,t)=>{const o=parseInt(e.getAttribute("tabindex")||"0"),n=parseInt(t.getAttribute("tabindex")||"0");return o>n?1:o<n?-1:0}),n=e.querySelectorAll('\n a[href],\n area[href],\n input:not([disabled]),\n select:not([disabled]),\n textarea:not([disabled]),\n button:not([disabled]),\n iframe,\n object,\n embed,\n [tabindex="0"],\n [contenteditable],\n audio[controls],\n video[controls],\n summary\n'),s=Array.from(n).filter(e=>"-1"!==e.getAttribute("tabindex"));return[...new Set(o.concat(s))].filter(e=>ee(e))},q=()=>_(document.body,r.shown)&&!_(document.body,r["toast-shown"])&&!_(document.body,r["no-backdrop"]),H=()=>{const e=k();return!!e&&_(e,r.toast)},N=(e,t)=>{if(e.textContent="",t){const o=(new DOMParser).parseFromString(t,"text/html"),n=o.querySelector("head");n&&Array.from(n.childNodes).forEach(t=>{e.appendChild(t)});const s=o.querySelector("body");s&&Array.from(s.childNodes).forEach(t=>{t instanceof HTMLVideoElement||t instanceof HTMLAudioElement?e.appendChild(t.cloneNode(!0)):e.appendChild(t)})}},_=(e,t)=>{if(!t)return!1;const o=t.split(/\s+/);for(let t=0;t<o.length;t++)if(!e.classList.contains(o[t]))return!1;return!0},z=(e,t,o)=>{if(((e,t)=>{Array.from(e.classList).forEach(o=>{Object.values(r).includes(o)||Object.values(i).includes(o)||Object.values(t.showClass||{}).includes(o)||e.classList.remove(o)})})(e,t),!t.customClass)return;const n=t.customClass[o];n&&("string"==typeof n||n.forEach?W(e,n):d(`Invalid type of customClass.${o}! Expected string or iterable object, got "${typeof n}"`))},V=(e,t)=>{if(!t)return null;switch(t){case"select":case"textarea":case"file":return e.querySelector(`.${r.popup} > .${r[t]}`);case"checkbox":return e.querySelector(`.${r.popup} > .${r.checkbox} input`);case"radio":return e.querySelector(`.${r.popup} > .${r.radio} input:checked`)||e.querySelector(`.${r.popup} > .${r.radio} input:first-child`);case"range":return e.querySelector(`.${r.popup} > .${r.range} input`);default:return e.querySelector(`.${r.popup} > .${r.input}`)}},F=e=>{if(e.focus(),"file"!==e.type){const t=e.value;e.value="",e.value=t}},R=(e,t,o)=>{e&&t&&("string"==typeof t&&(t=t.split(/\s+/).filter(Boolean)),t.forEach(t=>{Array.isArray(e)?e.forEach(e=>{o?e.classList.add(t):e.classList.remove(t)}):o?e.classList.add(t):e.classList.remove(t)}))},W=(e,t)=>{R(e,t,!0)},U=(e,t)=>{R(e,t,!1)},X=(e,t)=>{const o=Array.from(e.children);for(let e=0;e<o.length;e++){const n=o[e];if(n instanceof HTMLElement&&_(n,t))return n}},J=(e,t,o)=>{o===`${parseInt(`${o}`)}`&&(o=parseInt(o)),o||0===parseInt(`${o}`)?e.style.setProperty(t,"number"==typeof o?`${o}px`:o):e.style.removeProperty(t)},Y=(e,t="flex")=>{e&&(e.style.display=t)},K=e=>{e&&(e.style.display="none")},Z=(e,t="block")=>{e&&new MutationObserver(()=>{Q(e,e.innerHTML,t)}).observe(e,{childList:!0,subtree:!0})},G=(e,t,o,n)=>{const s=e.querySelector(t);s&&s.style.setProperty(o,n)},Q=(e,t,o="flex")=>{t?Y(e,o):K(e)},ee=e=>Boolean(e&&(e.offsetWidth||e.offsetHeight||e.getClientRects().length)),te=e=>Boolean(e.scrollHeight>e.clientHeight),oe=e=>{const t=window.getComputedStyle(e),o=parseFloat(t.getPropertyValue("animation-duration")||"0"),n=parseFloat(t.getPropertyValue("transition-duration")||"0");return o>0||n>0},ne=(e,t=!1)=>{const o=I();o&&ee(o)&&(t&&(o.style.transition="none",o.style.width="100%"),setTimeout(()=>{o.style.transition=`width ${e/1e3}s linear`,o.style.width="0%"},10))},se=`\n <div aria-labelledby="${r.title}" aria-describedby="${r["html-container"]}" class="${r.popup}" tabindex="-1">\n <button type="button" class="${r.close}"></button>\n <ul class="${r["progress-steps"]}"></ul>\n <div class="${r.icon}"></div>\n <img class="${r.image}" />\n <h2 class="${r.title}" id="${r.title}"></h2>\n <div class="${r["html-container"]}" id="${r["html-container"]}"></div>\n <input class="${r.input}" id="${r.input}" />\n <input type="file" class="${r.file}" />\n <div class="${r.range}">\n <input type="range" />\n <output></output>\n </div>\n <select class="${r.select}" id="${r.select}"></select>\n <div class="${r.radio}"></div>\n <label class="${r.checkbox}">\n <input type="checkbox" id="${r.checkbox}" />\n <span class="${r.label}"></span>\n </label>\n <textarea class="${r.textarea}" id="${r.textarea}"></textarea>\n <div class="${r["validation-message"]}" id="${r["validation-message"]}"></div>\n <div class="${r.actions}">\n <div class="${r.loader}"></div>\n <button type="button" class="${r.confirm}"></button>\n <button type="button" class="${r.deny}"></button>\n <button type="button" class="${r.cancel}"></button>\n </div>\n <div class="${r.footer}"></div>\n <div class="${r["timer-progress-bar-container"]}">\n <div class="${r["timer-progress-bar"]}"></div>\n </div>\n </div>\n`.replace(/(^|\n)\s*/g,""),ae=()=>{n.currentInstance&&n.currentInstance.resetValidationMessage()},re=e=>{const t=(()=>{const e=b();return!!e&&(e.remove(),U([document.documentElement,document.body],[r["no-backdrop"],r["toast-shown"],r["has-column"]]),!0)})();if("undefined"==typeof window||"undefined"==typeof document)return void u("SweetAlert2 requires document to initialize");const o=document.createElement("div");o.className=r.container,t&&W(o,r["no-transition"]),N(o,se),o.dataset.swal2Theme=e.theme;const s=(e=>{if("string"==typeof e){const t=document.querySelector(e);if(!t)throw new Error(`Target element "${e}" not found`);return t}return e})(e.target||"body");s.appendChild(o),e.topLayer&&(o.setAttribute("popover",""),o.showPopover()),(e=>{const t=k();t&&(t.setAttribute("role",e.toast?"alert":"dialog"),t.setAttribute("aria-live",e.toast?"polite":"assertive"),e.toast||t.setAttribute("aria-modal","true"))})(e),(e=>{"rtl"===window.getComputedStyle(e).direction&&(W(b(),r.rtl),n.isRTL=!0)})(s),(()=>{const e=k();if(!e)return;const t=X(e,r.input),o=X(e,r.file),n=e.querySelector(`.${r.range} input`),s=e.querySelector(`.${r.range} output`),a=X(e,r.select),i=e.querySelector(`.${r.checkbox} input`),l=X(e,r.textarea);t&&(t.oninput=ae),o&&(o.onchange=ae),a&&(a.onchange=ae),i&&(i.onchange=ae),l&&(l.oninput=ae),n&&s&&(n.oninput=()=>{ae(),s.value=n.value},n.onchange=()=>{ae(),s.value=n.value})})()},ie=(e,t)=>{e instanceof HTMLElement?t.appendChild(e):"object"==typeof e?le(e,t):e&&N(t,e)},le=(e,t)=>{"jquery"in e?ce(t,e):N(t,e.toString())},ce=(e,t)=>{if(e.textContent="",0 in t)for(let o=0;o in t;o++)e.appendChild(t[o].cloneNode(!0));else e.appendChild(t.cloneNode(!0))},de=(e,t)=>{const o=M(),n=P();o&&n&&(t.showConfirmButton||t.showDenyButton||t.showCancelButton?Y(o):K(o),z(o,t,"actions"),function(e,t,o){const n=T(),s=$(),a=S();n&&s&&a&&(pe(n,"confirm",o),pe(s,"deny",o),pe(a,"cancel",o),function(e,t,o,n){n.buttonsStyling?(W([e,t,o],r.styled),n.confirmButtonColor&&e.style.setProperty("--swal2-confirm-button-background-color",n.confirmButtonColor),n.denyButtonColor&&t.style.setProperty("--swal2-deny-button-background-color",n.denyButtonColor),n.cancelButtonColor&&o.style.setProperty("--swal2-cancel-button-background-color",n.cancelButtonColor),ue(e),ue(t),ue(o)):U([e,t,o],r.styled)}(n,s,a,o),o.reverseButtons&&(o.toast?(e.insertBefore(a,n),e.insertBefore(s,n)):(e.insertBefore(a,t),e.insertBefore(s,t),e.insertBefore(n,t))))}(o,n,t),N(n,t.loaderHtml||""),z(n,t,"loader"))};function ue(e){const t=window.getComputedStyle(e);if(t.getPropertyValue("--swal2-action-button-focus-box-shadow"))return;const o=t.backgroundColor.replace(/rgba?\((\d+), (\d+), (\d+).*/,"rgba($1, $2, $3, 0.5)");e.style.setProperty("--swal2-action-button-focus-box-shadow",t.getPropertyValue("--swal2-outline").replace(/ rgba\(.*/,` ${o}`))}function pe(e,t,o){const n=c(t);Q(e,o[`show${n}Button`],"inline-block"),N(e,o[`${t}ButtonText`]||""),e.setAttribute("aria-label",o[`${t}ButtonAriaLabel`]||""),e.className=r[t],z(e,o,`${t}Button`)}const we=(e,t)=>{const o=b();o&&(function(e,t){"string"==typeof t?e.style.background=t:t||W([document.documentElement,document.body],r["no-backdrop"])}(o,t.backdrop),function(e,t){t&&(t in r?W(e,r[t]):(d('The "position" parameter is not valid, defaulting to "center"'),W(e,r.center)))}(o,t.position),function(e,t){t&&W(e,r[`grow-${t}`])}(o,t.grow),z(o,t,"container"))};var me={innerParams:new WeakMap,domCache:new WeakMap};const he=["input","file","range","select","radio","checkbox","textarea"],ge=e=>{if(!e.input)return;if(!Ce[e.input])return void u(`Unexpected type of input! Expected ${Object.keys(Ce).join(" | ")}, got "${e.input}"`);const t=ke(e.input);if(!t)return;const o=Ce[e.input](t,e);Y(t),e.inputAutoFocus&&setTimeout(()=>{F(o)})},fe=(e,t)=>{const o=k();if(!o)return;const n=V(o,e);if(n){(e=>{for(let t=0;t<e.attributes.length;t++){const o=e.attributes[t].name;["id","type","value","style"].includes(o)||e.removeAttribute(o)}})(n);for(const e in t)n.setAttribute(e,t[e])}},be=e=>{if(!e.input)return;const t=ke(e.input);t&&z(t,e,"input")},ve=(e,t)=>{!e.placeholder&&t.inputPlaceholder&&(e.placeholder=t.inputPlaceholder)},ye=(e,t,o)=>{if(o.inputLabel){const n=document.createElement("label"),s=r["input-label"];n.setAttribute("for",e.id),n.className=s,"object"==typeof o.customClass&&W(n,o.customClass.inputLabel),n.innerText=o.inputLabel,t.insertAdjacentElement("beforebegin",n)}},ke=e=>{const t=k();if(t)return X(t,r[e]||r.input)},xe=(e,t)=>{["string","number"].includes(typeof t)?e.value=`${t}`:f(t)||d(`Unexpected type of inputValue! Expected "string", "number" or "Promise", got "${typeof t}"`)},Ce={};Ce.text=Ce.email=Ce.password=Ce.number=Ce.tel=Ce.url=Ce.search=Ce.date=Ce["datetime-local"]=Ce.time=Ce.week=Ce.month=(e,t)=>{const o=e;return xe(o,t.inputValue),ye(o,o,t),ve(o,t),o.type=t.input,o},Ce.file=(e,t)=>{const o=e;return ye(o,o,t),ve(o,t),o},Ce.range=(e,t)=>{const o=e,n=o.querySelector("input"),s=o.querySelector("output");return n&&(xe(n,t.inputValue),n.type=t.input,ye(n,e,t)),s&&xe(s,t.inputValue),e},Ce.select=(e,t)=>{const o=e;if(o.textContent="",t.inputPlaceholder){const e=document.createElement("option");N(e,t.inputPlaceholder),e.value="",e.disabled=!0,e.selected=!0,o.appendChild(e)}return ye(o,o,t),o},Ce.radio=e=>(e.textContent="",e),Ce.checkbox=(e,t)=>{const o=k();if(!o)throw new Error("Popup not found");const n=V(o,"checkbox");if(!n)throw new Error("Checkbox input not found");n.value="1",n.checked=Boolean(t.inputValue);const s=e.querySelector("span");if(s){const e=t.inputPlaceholder||t.inputLabel;e&&N(s,e)}return n},Ce.textarea=(e,t)=>{const o=e;xe(o,t.inputValue),ve(o,t),ye(o,o,t);return setTimeout(()=>{if("MutationObserver"in window){const e=k();if(!e)return;const n=parseInt(window.getComputedStyle(e).width);new MutationObserver(()=>{if(!document.body.contains(o))return;const e=o.offsetWidth+(a=o,parseInt(window.getComputedStyle(a).marginLeft)+parseInt(window.getComputedStyle(a).marginRight)),s=k();var a;s&&(e>n?s.style.width=`${e}px`:J(s,"width",t.width))}).observe(o,{attributes:!0,attributeFilter:["style"]})}}),o};const Ee=(e,t)=>{const o=E();o&&(Z(o),z(o,t,"htmlContainer"),t.html?(ie(t.html,o),Y(o,"block")):t.text?(o.textContent=t.text,Y(o,"block")):K(o),((e,t)=>{const o=k();if(!o)return;const n=me.innerParams.get(e),s=!n||t.input!==n.input;he.forEach(e=>{const n=X(o,r[e]);n&&(fe(e,t.inputAttributes),n.className=r[e],s&&K(n))}),t.input&&(s&&ge(t),be(t))})(e,t))},Ae=(e,t)=>{for(const[o,n]of Object.entries(i))t.icon!==o&&U(e,n);W(e,t.icon&&i[t.icon]),Te(e,t),Le(),z(e,t,"icon")},Le=()=>{const e=k();if(!e)return;const t=window.getComputedStyle(e).getPropertyValue("background-color"),o=e.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix");for(let e=0;e<o.length;e++)o[e].style.backgroundColor=t},Be=(e,t)=>{if(!t.icon&&!t.iconHtml)return;let o=e.innerHTML,n="";t.iconHtml?n=Se(t.iconHtml):"success"===t.icon?(n=(e=>`\n ${e.animation?'<div class="swal2-success-circular-line-left"></div>':""}\n <span class="swal2-success-line-tip"></span> <span class="swal2-success-line-long"></span>\n <div class="swal2-success-ring"></div>\n ${e.animation?'<div class="swal2-success-fix"></div>':""}\n ${e.animation?'<div class="swal2-success-circular-line-right"></div>':""}\n`)(t),o=o.replace(/ style=".*?"/g,"")):"error"===t.icon?n='\n <span class="swal2-x-mark">\n <span class="swal2-x-mark-line-left"></span>\n <span class="swal2-x-mark-line-right"></span>\n </span>\n':t.icon&&(n=Se({question:"?",warning:"!",info:"i"}[t.icon])),o.trim()!==n.trim()&&N(e,n)},Te=(e,t)=>{if(t.iconColor){e.style.color=t.iconColor,e.style.borderColor=t.iconColor;for(const o of[".swal2-success-line-tip",".swal2-success-line-long",".swal2-x-mark-line-left",".swal2-x-mark-line-right"])G(e,o,"background-color",t.iconColor);G(e,".swal2-success-ring","border-color",t.iconColor)}},Se=e=>`<div class="${r["icon-content"]}">${e}</div>`;let $e=!1,Pe=0,Me=0,Oe=0,Ie=0;const De=e=>{const t=k();if(!t)return;const o=x();if(e.target===t||o&&o.contains(e.target)){$e=!0;const o=He(e);Pe=o.clientX,Me=o.clientY,Oe=parseInt(t.style.insetInlineStart)||0,Ie=parseInt(t.style.insetBlockStart)||0,W(t,"swal2-dragging")}},je=e=>{const t=k();if(t&&$e){let{clientX:o,clientY:s}=He(e);const a=o-Pe;t.style.insetInlineStart=`${Oe+(n.isRTL?-a:a)}px`,t.style.insetBlockStart=`${Ie+(s-Me)}px`}},qe=()=>{const e=k();$e=!1,U(e,"swal2-dragging")},He=e=>{let t=0,o=0;return e.type.startsWith("mouse")?(t=e.clientX,o=e.clientY):e.type.startsWith("touch")&&(t=e.touches[0].clientX,o=e.touches[0].clientY),{clientX:t,clientY:o}},Ne=(e,t)=>{const o=b(),n=k();if(o&&n){if(t.toast){J(o,"width",t.width),n.style.width="100%";const e=P();e&&n.insertBefore(e,x())}else J(n,"width",t.width);J(n,"padding",t.padding),t.color&&(n.style.color=t.color),t.background&&(n.style.background=t.background),K(B()),_e(n,t),t.draggable&&!t.toast?(W(n,r.draggable),(e=>{e.addEventListener("mousedown",De),document.body.addEventListener("mousemove",je),e.addEventListener("mouseup",qe),e.addEventListener("touchstart",De),document.body.addEventListener("touchmove",je),e.addEventListener("touchend",qe)})(n)):(U(n,r.draggable),(e=>{e.removeEventListener("mousedown",De),document.body.removeEventListener("mousemove",je),e.removeEventListener("mouseup",qe),e.removeEventListener("touchstart",De),document.body.removeEventListener("touchmove",je),e.removeEventListener("touchend",qe)})(n))}},_e=(e,t)=>{const o=t.showClass||{};e.className=`${r.popup} ${ee(e)?o.popup:""}`,t.toast?(W([document.documentElement,document.body],r["toast-shown"]),W(e,r.toast)):W(e,r.modal),z(e,t,"popup"),"string"==typeof t.customClass&&W(e,t.customClass),t.icon&&W(e,r[`icon-${t.icon}`])},ze=e=>{const t=document.createElement("li");return W(t,r["progress-step"]),N(t,e),t},Ve=e=>{const t=document.createElement("li");return W(t,r["progress-step-line"]),e.progressStepsDistance&&J(t,"width",e.progressStepsDistance),t},Fe=(e,t)=>{var o;Ne(0,t),we(0,t),((e,t)=>{const o=L();if(!o)return;const{progressSteps:n,currentProgressStep:s}=t;n&&0!==n.length&&void 0!==s?(Y(o),o.textContent="",s>=n.length&&d("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),n.forEach((e,a)=>{const i=ze(e);if(o.appendChild(i),a===s&&W(i,r["active-progress-step"]),a!==n.length-1){const e=Ve(t);o.appendChild(e)}})):K(o)})(0,t),((e,t)=>{const o=me.innerParams.get(e),n=x();if(n){if(o&&t.icon===o.icon)return Be(n,t),void Ae(n,t);if(t.icon||t.iconHtml){if(t.icon&&-1===Object.keys(i).indexOf(t.icon))return u(`Unknown icon! Expected "success", "error", "warning", "info" or "question", got "${t.icon}"`),void K(n);Y(n),Be(n,t),Ae(n,t),W(n,t.showClass&&t.showClass.icon),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",Le)}else K(n)}})(e,t),((e,t)=>{const o=A();o&&(t.imageUrl?(Y(o,""),o.setAttribute("src",t.imageUrl),o.setAttribute("alt",t.imageAlt||""),J(o,"width",t.imageWidth),J(o,"height",t.imageHeight),o.className=r.image,z(o,t,"image")):K(o))})(0,t),((e,t)=>{const o=C();o&&(Z(o),Q(o,Boolean(t.title||t.titleText),"block"),t.title&&ie(t.title,o),t.titleText&&(o.innerText=t.titleText),z(o,t,"title"))})(0,t),((e,t)=>{const o=D();o&&(N(o,t.closeButtonHtml||""),z(o,t,"closeButton"),Q(o,t.showCloseButton),o.setAttribute("aria-label",t.closeButtonAriaLabel||""))})(0,t),Ee(e,t),de(0,t),((e,t)=>{const o=O();o&&(Z(o),Q(o,Boolean(t.footer),"block"),t.footer&&ie(t.footer,o),z(o,t,"footer"))})(0,t);const s=k();"function"==typeof t.didRender&&s&&t.didRender(s),null===(o=n.eventEmitter)||void 0===o||o.emit("didRender",s)},Re=()=>{var e;return null===(e=T())||void 0===e?void 0:e.click()},We=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),Ue=e=>{if(e.keydownTarget&&e.keydownHandlerAdded&&e.keydownHandler){const t=e.keydownHandler;e.keydownTarget.removeEventListener("keydown",t,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!1}},Xe=(e,t)=>{var o;const n=j();if(n.length)return-2===(e+=t)&&(e=n.length-1),e===n.length?e=0:-1===e&&(e=n.length-1),void n[e].focus();null===(o=k())||void 0===o||o.focus()},Je=["ArrowRight","ArrowDown"],Ye=["ArrowLeft","ArrowUp"],Ke=(e,t,o)=>{e&&(t.isComposing||229===t.keyCode||(e.stopKeydownPropagation&&t.stopPropagation(),"Enter"===t.key?Ze(t,e):"Tab"===t.key?Ge(t):[...Je,...Ye].includes(t.key)?Qe(t.key):"Escape"===t.key&&et(t,e,o)))},Ze=(e,t)=>{if(!m(t.allowEnterKey))return;const o=k();if(!o||!t.input)return;const n=V(o,t.input);if(e.target&&n&&e.target instanceof HTMLElement&&e.target.outerHTML===n.outerHTML){if(["textarea","file"].includes(t.input))return;Re(),e.preventDefault()}},Ge=e=>{const t=e.target,o=j();let n=-1;for(let e=0;e<o.length;e++)if(t===o[e]){n=e;break}e.shiftKey?Xe(n,-1):Xe(n,1),e.stopPropagation(),e.preventDefault()},Qe=e=>{const t=M(),o=T(),n=$(),s=S();if(!(t&&o&&n&&s))return;const a=[o,n,s];if(document.activeElement instanceof HTMLElement&&!a.includes(document.activeElement))return;const r=Je.includes(e)?"nextElementSibling":"previousElementSibling";let i=document.activeElement;if(i){for(let e=0;e<t.children.length;e++){if(i=i[r],!i)return;if(i instanceof HTMLButtonElement&&ee(i))break}i instanceof HTMLButtonElement&&i.focus()}},et=(e,t,o)=>{e.preventDefault(),m(t.allowEscapeKey)&&o(We.esc)};var tt={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap};const ot=()=>{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")})},nt="undefined"!=typeof window&&Boolean(window.GestureEvent),st=()=>{const e=b();if(!e)return;let t;e.ontouchstart=e=>{t=at(e)},e.ontouchmove=e=>{t&&(e.preventDefault(),e.stopPropagation())}},at=e=>{const t=e.target,o=b(),n=E();return!(!o||!n||rt(e)||it(e)||t!==o&&(te(o)||!(t instanceof HTMLElement)||((e,t)=>{let o=e;for(;o&&o!==t;){if(te(o))return!0;o=o.parentElement}return!1})(t,n)||"INPUT"===t.tagName||"TEXTAREA"===t.tagName||te(n)&&n.contains(t)))},rt=e=>Boolean(e.touches&&e.touches.length&&"stylus"===e.touches[0].touchType),it=e=>e.touches&&e.touches.length>1;let lt=null;const ct=e=>{null===lt&&(document.body.scrollHeight>window.innerHeight||"scroll"===e)&&(lt=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight=`${lt+(()=>{const e=document.createElement("div");e.className=r["scrollbar-measure"],document.body.appendChild(e);const t=e.getBoundingClientRect().width-e.clientWidth;return document.body.removeChild(e),t})()}px`)};function dt(e,t,o,a){H()?bt(e,a):(s(o).then(()=>bt(e,a)),Ue(n)),nt?(t.setAttribute("style","display:none !important"),t.removeAttribute("class"),t.innerHTML=""):t.remove(),q()&&(null!==lt&&(document.body.style.paddingRight=`${lt}px`,lt=null),(()=>{if(_(document.body,r.iosfix)){const e=parseInt(document.body.style.top,10);U(document.body,r.iosfix),document.body.style.top="",document.body.scrollTop=-1*e}})(),ot()),U([document.documentElement,document.body],[r.shown,r["height-auto"],r["no-backdrop"],r["toast-shown"]])}function ut(e){e=ht(e);const t=tt.swalPromiseResolve.get(this),o=pt(this);this.isAwaitingPromise?e.isDismissed||(mt(this),t(e)):o&&t(e)}const pt=e=>{const t=k();if(!t)return!1;const o=me.innerParams.get(e);if(!o||_(t,o.hideClass.popup))return!1;U(t,o.showClass.popup),W(t,o.hideClass.popup);const n=b();return U(n,o.showClass.backdrop),W(n,o.hideClass.backdrop),gt(e,t,o),!0};function wt(e){const t=tt.swalPromiseReject.get(this);mt(this),t&&t(e)}const mt=e=>{e.isAwaitingPromise&&(delete e.isAwaitingPromise,me.innerParams.get(e)||e._destroy())},ht=e=>void 0===e?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},e),gt=(e,t,o)=>{var s;const a=b(),r=oe(t);"function"==typeof o.willClose&&o.willClose(t),null===(s=n.eventEmitter)||void 0===s||s.emit("willClose",t),r&&a?ft(e,t,a,Boolean(o.returnFocus),o.didClose):a&&dt(e,a,Boolean(o.returnFocus),o.didClose)},ft=(e,t,o,s,a)=>{n.swalCloseEventFinishedCallback=dt.bind(null,e,o,s,a);const r=function(e){var o;e.target===t&&(null===(o=n.swalCloseEventFinishedCallback)||void 0===o||o.call(n),delete n.swalCloseEventFinishedCallback,t.removeEventListener("animationend",r),t.removeEventListener("transitionend",r))};t.addEventListener("animationend",r),t.addEventListener("transitionend",r)},bt=(e,t)=>{setTimeout(()=>{var o;"function"==typeof t&&t.bind(e.params)(),null===(o=n.eventEmitter)||void 0===o||o.emit("didClose"),e._destroy&&e._destroy()})},vt=e=>{let t=k();if(t||new Qo,t=k(),!t)return;const o=P();H()?K(x()):yt(t,e),Y(o),t.setAttribute("data-loading","true"),t.setAttribute("aria-busy","true"),t.focus()},yt=(e,t)=>{const o=M(),n=P();o&&n&&(!t&&ee(T())&&(t=T()),Y(o),t&&(K(t),n.setAttribute("data-button-to-replace",t.className),o.insertBefore(n,t)),W([e,o],r.loading))},kt=e=>e.checked?1:0,xt=e=>e.checked?e.value:null,Ct=e=>e.files&&e.files.length?null!==e.getAttribute("multiple")?e.files:e.files[0]:null,Et=(e,t)=>{const o=k();if(!o)return;const n=e=>{"select"===t.input?function(e,t,o){const n=X(e,r.select);if(!n)return;const s=(e,t,n)=>{const s=document.createElement("option");s.value=n,N(s,t),s.selected=Bt(n,o.inputValue),e.appendChild(s)};t.forEach(e=>{const t=e[0],o=e[1];if(Array.isArray(o)){const e=document.createElement("optgroup");e.label=t,e.disabled=!1,n.appendChild(e),o.forEach(t=>s(e,t[1],t[0]))}else s(n,o,t)}),n.focus()}(o,Lt(e),t):"radio"===t.input&&function(e,t,o){const n=X(e,r.radio);if(!n)return;t.forEach(e=>{const t=e[0],s=e[1],a=document.createElement("input"),i=document.createElement("label");a.type="radio",a.name=r.radio,a.value=t,Bt(t,o.inputValue)&&(a.checked=!0);const l=document.createElement("span");N(l,s),l.className=r.label,i.appendChild(a),i.appendChild(l),n.appendChild(i)});const s=n.querySelectorAll("input");s.length&&s[0].focus()}(o,Lt(e),t)};h(t.inputOptions)||f(t.inputOptions)?(vt(T()),g(t.inputOptions).then(t=>{e.hideLoading(),n(t)})):"object"==typeof t.inputOptions?n(t.inputOptions):u("Unexpected type of inputOptions! Expected object, Map or Promise, got "+typeof t.inputOptions)},At=(e,t)=>{const o=e.getInput();o&&(K(o),g(t.inputValue).then(n=>{o.value="number"===t.input?`${parseFloat(n)||0}`:`${n}`,Y(o),o.focus(),e.hideLoading()}).catch(t=>{u(`Error in inputValue promise: ${t}`),o.value="",Y(o),o.focus(),e.hideLoading()}))};const Lt=e=>{const t=[];return e instanceof Map?e.forEach((e,o)=>{let n=e;"object"==typeof n&&(n=Lt(n)),t.push([o,n])}):Object.keys(e).forEach(o=>{let n=e[o];"object"==typeof n&&(n=Lt(n)),t.push([o,n])}),t},Bt=(e,t)=>Boolean(t)&&null!=t&&t.toString()===e.toString(),Tt=(e,t)=>{const o=me.innerParams.get(e);if(!o.input)return void u(`The "input" parameter is needed to be set when using returnInputValueOn${c(t)}`);const n=e.getInput(),s=((e,t)=>{const o=e.getInput();if(!o)return null;switch(t.input){case"checkbox":return kt(o);case"radio":return xt(o);case"file":return Ct(o);default:return t.inputAutoTrim?o.value.trim():o.value}})(e,o);o.inputValidator?St(e,s,t):n&&!n.checkValidity()?(e.enableButtons(),e.showValidationMessage(o.validationMessage||n.validationMessage)):"deny"===t?$t(e,s):Ot(e,s)},St=(e,t,o)=>{const n=me.innerParams.get(e);e.disableInput(),Promise.resolve().then(()=>g(n.inputValidator(t,n.validationMessage))).then(n=>{e.enableButtons(),e.enableInput(),n?e.showValidationMessage(n):"deny"===o?$t(e,t):Ot(e,t)})},$t=(e,t)=>{const o=me.innerParams.get(e);o.showLoaderOnDeny&&vt($()),o.preDeny?(e.isAwaitingPromise=!0,Promise.resolve().then(()=>g(o.preDeny(t,o.validationMessage))).then(o=>{!1===o?(e.hideLoading(),mt(e)):e.close({isDenied:!0,value:void 0===o?t:o})}).catch(t=>Mt(e,t))):e.close({isDenied:!0,value:t})},Pt=(e,t)=>{e.close({isConfirmed:!0,value:t})},Mt=(e,t)=>{e.rejectPromise(t)},Ot=(e,t)=>{const o=me.innerParams.get(e);o.showLoaderOnConfirm&&vt(),o.preConfirm?(e.resetValidationMessage(),e.isAwaitingPromise=!0,Promise.resolve().then(()=>g(o.preConfirm(t,o.validationMessage))).then(o=>{ee(B())||!1===o?(e.hideLoading(),mt(e)):Pt(e,void 0===o?t:o)}).catch(t=>Mt(e,t))):Pt(e,t)};function It(){const e=me.innerParams.get(this);if(!e)return;const t=me.domCache.get(this);K(t.loader),H()?e.icon&&Y(x()):Dt(t),U([t.popup,t.actions],r.loading),t.popup.removeAttribute("aria-busy"),t.popup.removeAttribute("data-loading"),t.confirmButton.disabled=!1,t.denyButton.disabled=!1,t.cancelButton.disabled=!1}const Dt=e=>{const t=e.loader.getAttribute("data-button-to-replace"),o=t?e.popup.getElementsByClassName(t):[];o.length?Y(o[0],"inline-block"):!ee(T())&&!ee($())&&!ee(S())&&K(e.actions)};function jt(){const e=me.innerParams.get(this),t=me.domCache.get(this);return t?V(t.popup,e.input):null}function qt(e,t,o){const n=me.domCache.get(e);t.forEach(e=>{n[e].disabled=o})}function Ht(e,t){const o=k();if(o&&e)if("radio"===e.type){const e=o.querySelectorAll(`[name="${r.radio}"]`);for(let o=0;o<e.length;o++)e[o].disabled=t}else e.disabled=t}function Nt(){qt(this,["confirmButton","denyButton","cancelButton"],!1)}function _t(){qt(this,["confirmButton","denyButton","cancelButton"],!0)}function zt(){Ht(this.getInput(),!1)}function Vt(){Ht(this.getInput(),!0)}function Ft(e){const t=me.domCache.get(this),o=me.innerParams.get(this);N(t.validationMessage,e),t.validationMessage.className=r["validation-message"],o.customClass&&o.customClass.validationMessage&&W(t.validationMessage,o.customClass.validationMessage),Y(t.validationMessage);const n=this.getInput();n&&(n.setAttribute("aria-invalid","true"),n.setAttribute("aria-describedby",r["validation-message"]),F(n),W(n,r.inputerror))}function Rt(){const e=me.domCache.get(this);e.validationMessage&&K(e.validationMessage);const t=this.getInput();t&&(t.removeAttribute("aria-invalid"),t.removeAttribute("aria-describedby"),U(t,r.inputerror))}const Wt={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:"×",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},Ut=["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"],Xt={allowEnterKey:void 0},Jt=["allowOutsideClick","allowEnterKey","backdrop","draggable","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],Yt=e=>Object.prototype.hasOwnProperty.call(Wt,e),Kt=e=>-1!==Ut.indexOf(e),Zt=e=>Xt[e],Gt=e=>{Yt(e)||d(`Unknown parameter "${e}"`)},Qt=e=>{Jt.includes(e)&&d(`The parameter "${e}" is incompatible with toasts`)},eo=e=>{const t=Zt(e);t&&w(e,t)},to=e=>{!1===e.backdrop&&e.allowOutsideClick&&d('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`'),e.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(e.theme)&&d(`Invalid theme "${e.theme}"`);for(const t in e)Gt(t),e.toast&&Qt(t),eo(t)};function oo(e){const t=b(),o=k(),n=me.innerParams.get(this);if(!o||_(o,n.hideClass.popup))return void d("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.");const s=no(e),a=Object.assign({},n,s);to(a),t&&(t.dataset.swal2Theme=a.theme),Fe(this,a),me.innerParams.set(this,a),Object.defineProperties(this,{params:{value:Object.assign({},this.params,e),writable:!1,enumerable:!0}})}const no=e=>{const t={};return Object.keys(e).forEach(o=>{if(Kt(o)){const n=e;t[o]=n[o]}else d(`Invalid parameter to update: ${o}`)}),t};function so(){var e;const t=me.domCache.get(this),o=me.innerParams.get(this);o?(t.popup&&n.swalCloseEventFinishedCallback&&(n.swalCloseEventFinishedCallback(),delete n.swalCloseEventFinishedCallback),"function"==typeof o.didDestroy&&o.didDestroy(),null===(e=n.eventEmitter)||void 0===e||e.emit("didDestroy"),ao(this)):ro(this)}const ao=e=>{ro(e),delete e.params,delete n.keydownHandler,delete n.keydownTarget,delete n.currentInstance},ro=e=>{e.isAwaitingPromise?(io(me,e),e.isAwaitingPromise=!0):(io(tt,e),io(me,e),delete e.isAwaitingPromise,delete e.disableButtons,delete e.enableButtons,delete e.getInput,delete e.disableInput,delete e.enableInput,delete e.hideLoading,delete e.disableLoading,delete e.showValidationMessage,delete e.resetValidationMessage,delete e.close,delete e.closePopup,delete e.closeModal,delete e.closeToast,delete e.rejectPromise,delete e.update,delete e._destroy)},io=(e,t)=>{for(const o in e)e[o].delete(t)};var lo=Object.freeze({__proto__:null,_destroy:so,close:ut,closeModal:ut,closePopup:ut,closeToast:ut,disableButtons:_t,disableInput:Vt,disableLoading:It,enableButtons:Nt,enableInput:zt,getInput:jt,handleAwaitingPromise:mt,hideLoading:It,rejectPromise:wt,resetValidationMessage:Rt,showValidationMessage:Ft,update:oo});const co=(e,t,o)=>{t.popup.onclick=()=>{e&&(uo(e)||e.timer||e.input)||o(We.close)}},uo=e=>Boolean(e.showConfirmButton||e.showDenyButton||e.showCancelButton||e.showCloseButton);let po=!1;const wo=e=>{e.popup.onmousedown=()=>{e.container.onmouseup=function(t){e.container.onmouseup=()=>{},t.target===e.container&&(po=!0)}}},mo=e=>{e.container.onmousedown=t=>{t.target===e.container&&t.preventDefault(),e.popup.onmouseup=function(t){e.popup.onmouseup=()=>{},(t.target===e.popup||t.target instanceof HTMLElement&&e.popup.contains(t.target))&&(po=!0)}}},ho=(e,t,o)=>{t.container.onclick=n=>{po?po=!1:n.target===t.container&&m(e.allowOutsideClick)&&o(We.backdrop)}},go=e=>e instanceof Element||(e=>"object"==typeof e&&e.jquery)(e);const fo=()=>{if(n.timeout)return(()=>{const e=I();if(!e)return;const t=parseInt(window.getComputedStyle(e).width);e.style.removeProperty("transition"),e.style.width="100%";const o=t/parseInt(window.getComputedStyle(e).width)*100;e.style.width=`${o}%`})(),n.timeout.stop()},bo=()=>{if(n.timeout){const e=n.timeout.start();return ne(e),e}};let vo=!1;const yo={};const ko=e=>{for(let t=e.target;t&&t!==document;t=t.parentNode)for(const e in yo){const o=t.getAttribute&&t.getAttribute(e);if(o)return void yo[e].fire({template:o})}};n.eventEmitter=new class{constructor(){this.events={}}_getHandlersByEventName(e){return void 0===this.events[e]&&(this.events[e]=[]),this.events[e]}on(e,t){const o=this._getHandlersByEventName(e);o.includes(t)||o.push(t)}once(e,t){const o=(...n)=>{this.removeListener(e,o),t.apply(this,n)};this.on(e,o)}emit(e,...t){this._getHandlersByEventName(e).forEach(e=>{try{e.apply(this,t)}catch(e){console.error(e)}})}removeListener(e,t){const o=this._getHandlersByEventName(e),n=o.indexOf(t);n>-1&&o.splice(n,1)}removeAllListeners(e){void 0!==this.events[e]&&(this.events[e].length=0)}reset(){this.events={}}};var xo=Object.freeze({__proto__:null,argsToParams:e=>{const t={};return"object"!=typeof e[0]||go(e[0])?["title","html","icon"].forEach((o,n)=>{const s=e[n];"string"==typeof s||go(s)?t[o]=s:void 0!==s&&u(`Unexpected type of ${o}! Expected "string" or "Element", got ${typeof s}`)}):Object.assign(t,e[0]),t},bindClickHandler:function(e="data-swal-template"){yo[e]=this,vo||(document.body.addEventListener("click",ko),vo=!0)},clickCancel:()=>{var e;return null===(e=S())||void 0===e?void 0:e.click()},clickConfirm:Re,clickDeny:()=>{var e;return null===(e=$())||void 0===e?void 0:e.click()},enableLoading:vt,fire:function(...e){return new this(...e)},getActions:M,getCancelButton:S,getCloseButton:D,getConfirmButton:T,getContainer:b,getDenyButton:$,getFocusableElements:j,getFooter:O,getHtmlContainer:E,getIcon:x,getIconContent:()=>y(r["icon-content"]),getImage:A,getInputLabel:()=>y(r["input-label"]),getLoader:P,getPopup:k,getProgressSteps:L,getTimerLeft:()=>n.timeout&&n.timeout.getTimerLeft(),getTimerProgressBar:I,getTitle:C,getValidationMessage:B,increaseTimer:e=>{if(n.timeout){const t=n.timeout.increase(e);return ne(t,!0),t}},isDeprecatedParameter:Zt,isLoading:()=>{const e=k();return!!e&&e.hasAttribute("data-loading")},isTimerRunning:()=>Boolean(n.timeout&&n.timeout.isRunning()),isUpdatableParameter:Kt,isValidParameter:Yt,isVisible:()=>ee(k()),mixin:function(e){return class extends(this){_main(t,o){return super._main(t,Object.assign({},e,o))}}},off:(e,t)=>{n.eventEmitter&&(e?t?n.eventEmitter.removeListener(e,t):n.eventEmitter.removeAllListeners(e):n.eventEmitter.reset())},on:(e,t)=>{n.eventEmitter&&n.eventEmitter.on(e,t)},once:(e,t)=>{n.eventEmitter&&n.eventEmitter.once(e,t)},resumeTimer:bo,showLoading:vt,stopTimer:fo,toggleTimer:()=>{const e=n.timeout;return e&&(e.running?fo():bo())}});class Co{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 Eo=["swal-title","swal-html","swal-footer"],Ao=e=>{const t={};return Array.from(e.querySelectorAll("swal-param")).forEach(e=>{Oo(e,["name","value"]);const o=e.getAttribute("name"),n=e.getAttribute("value");o&&n&&(t[o]=o in Wt&&"boolean"==typeof Wt[o]?"false"!==n:o in Wt&&"object"==typeof Wt[o]?JSON.parse(n):n)}),t},Lo=e=>{const t={};return Array.from(e.querySelectorAll("swal-function-param")).forEach(e=>{const o=e.getAttribute("name"),n=e.getAttribute("value");o&&n&&(t[o]=new Function(`return ${n}`)())}),t},Bo=e=>{const t={};return Array.from(e.querySelectorAll("swal-button")).forEach(e=>{Oo(e,["type","color","aria-label"]);const o=e.getAttribute("type");if(o&&["confirm","cancel","deny"].includes(o)){if(t[`${o}ButtonText`]=e.innerHTML,t[`show${c(o)}Button`]=!0,e.hasAttribute("color")){const n=e.getAttribute("color");null!==n&&(t[`${o}ButtonColor`]=n)}if(e.hasAttribute("aria-label")){const n=e.getAttribute("aria-label");null!==n&&(t[`${o}ButtonAriaLabel`]=n)}}}),t},To=e=>{const t={},o=e.querySelector("swal-image");return o&&(Oo(o,["src","width","height","alt"]),o.hasAttribute("src")&&(t.imageUrl=o.getAttribute("src")||void 0),o.hasAttribute("width")&&(t.imageWidth=o.getAttribute("width")||void 0),o.hasAttribute("height")&&(t.imageHeight=o.getAttribute("height")||void 0),o.hasAttribute("alt")&&(t.imageAlt=o.getAttribute("alt")||void 0)),t},So=e=>{const t={},o=e.querySelector("swal-icon");return o&&(Oo(o,["type","color"]),o.hasAttribute("type")&&(t.icon=o.getAttribute("type")),o.hasAttribute("color")&&(t.iconColor=o.getAttribute("color")),t.iconHtml=o.innerHTML),t},$o=e=>{const t={},o=e.querySelector("swal-input");o&&(Oo(o,["type","label","placeholder","value"]),t.input=o.getAttribute("type")||"text",o.hasAttribute("label")&&(t.inputLabel=o.getAttribute("label")),o.hasAttribute("placeholder")&&(t.inputPlaceholder=o.getAttribute("placeholder")),o.hasAttribute("value")&&(t.inputValue=o.getAttribute("value")));const n=Array.from(e.querySelectorAll("swal-input-option"));return n.length&&(t.inputOptions={},n.forEach(e=>{Oo(e,["value"]);const o=e.getAttribute("value");if(!o)return;const n=e.innerHTML;t.inputOptions[o]=n})),t},Po=(e,t)=>{const o={};for(const n in t){const s=t[n],a=e.querySelector(s);a&&(Oo(a,[]),o[s.replace(/^swal-/,"")]=a.innerHTML.trim())}return o},Mo=e=>{const t=Eo.concat(["swal-param","swal-function-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);Array.from(e.children).forEach(e=>{const o=e.tagName.toLowerCase();t.includes(o)||d(`Unrecognized element <${o}>`)})},Oo=(e,t)=>{Array.from(e.attributes).forEach(o=>{-1===t.indexOf(o.name)&&d([`Unrecognized attribute "${o.name}" on <${e.tagName.toLowerCase()}>.`,t.length?`Allowed attributes are: ${t.join(", ")}`:"To set the value, use HTML within the element."])})},Io=e=>{var t,o;const s=b(),a=k();if(!s||!a)return;"function"==typeof e.willOpen&&e.willOpen(a),null===(t=n.eventEmitter)||void 0===t||t.emit("willOpen",a);const r=window.getComputedStyle(document.body).overflowY;if(Ho(s,a,e),setTimeout(()=>{jo(s,a)},10),q()&&(qo(s,void 0!==e.scrollbarPadding&&e.scrollbarPadding,r),(()=>{const e=b();Array.from(document.body.children).forEach(t=>{t.contains(e)||(t.hasAttribute("aria-hidden")&&t.setAttribute("data-previous-aria-hidden",t.getAttribute("aria-hidden")||""),t.setAttribute("aria-hidden","true"))})})()),H()||n.previousActiveElement||(n.previousActiveElement=document.activeElement),"function"==typeof e.didOpen){const t=e.didOpen;setTimeout(()=>t(a))}null===(o=n.eventEmitter)||void 0===o||o.emit("didOpen",a)},Do=e=>{const t=k();if(!t||e.target!==t)return;const o=b();o&&(t.removeEventListener("animationend",Do),t.removeEventListener("transitionend",Do),o.style.overflowY="auto",U(o,r["no-transition"]))},jo=(e,t)=>{oe(t)?(e.style.overflowY="hidden",t.addEventListener("animationend",Do),t.addEventListener("transitionend",Do)):e.style.overflowY="auto"},qo=(e,t,o)=>{(()=>{if(nt&&!_(document.body,r.iosfix)){const e=document.body.scrollTop;document.body.style.top=-1*e+"px",W(document.body,r.iosfix),st()}})(),t&&"hidden"!==o&&ct(o),setTimeout(()=>{e.scrollTop=0})},Ho=(e,t,o)=>{var n;null!==(n=o.showClass)&&void 0!==n&&n.backdrop&&W(e,o.showClass.backdrop),o.animation?(t.style.setProperty("opacity","0","important"),Y(t,"grid"),setTimeout(()=>{var e;null!==(e=o.showClass)&&void 0!==e&&e.popup&&W(t,o.showClass.popup),t.style.removeProperty("opacity")},10)):Y(t,"grid"),W([document.documentElement,document.body],r.shown),o.heightAuto&&o.backdrop&&!o.toast&&W([document.documentElement,document.body],r["height-auto"])};var No=(e,t)=>/^[a-zA-Z0-9.+_'-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]+$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid email address"),_o=(e,t)=>/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid URL");function zo(e){(function(e){e.inputValidator||("email"===e.input&&(e.inputValidator=No),"url"===e.input&&(e.inputValidator=_o))})(e),e.showLoaderOnConfirm&&!e.preConfirm&&d("showLoaderOnConfirm is set to true, but preConfirm is not defined.\nshowLoaderOnConfirm should be used together with preConfirm, see usage example:\nhttps://sweetalert2.github.io/#ajax-request"),function(e){(!e.target||"string"==typeof e.target&&!document.querySelector(e.target)||"string"!=typeof e.target&&!e.target.appendChild)&&(d('Target parameter is not valid, defaulting to "body"'),e.target="body")}(e),"string"==typeof e.title&&(e.title=e.title.split("\n").join("<br />")),re(e)}let Vo;var Fo=new WeakMap;class Ro{constructor(...t){if(o(this,Fo,Promise.resolve({isConfirmed:!1,isDenied:!1,isDismissed:!0})),"undefined"==typeof window)return;Vo=this;const n=Object.freeze(this.constructor.argsToParams(t));var s,a,r;this.params=n,this.isAwaitingPromise=!1,s=Fo,a=this,r=this._main(Vo.params),s.set(e(s,a),r)}_main(e,t={}){if(to(Object.assign({},t,e)),n.currentInstance){const e=tt.swalPromiseResolve.get(n.currentInstance),{isAwaitingPromise:t}=n.currentInstance;n.currentInstance._destroy(),t||e({isDismissed:!0}),q()&&ot()}n.currentInstance=Vo;const o=Uo(e,t);zo(o),Object.freeze(o),n.timeout&&(n.timeout.stop(),delete n.timeout),clearTimeout(n.restoreFocusTimeout);const s=Xo(Vo);return Fe(Vo,o),me.innerParams.set(Vo,o),Wo(Vo,s,o)}then(e){return t(Fo,this).then(e)}finally(e){return t(Fo,this).finally(e)}}const Wo=(e,t,o)=>new Promise((s,a)=>{const r=t=>{e.close({isDismissed:!0,dismiss:t,isConfirmed:!1,isDenied:!1})};tt.swalPromiseResolve.set(e,s),tt.swalPromiseReject.set(e,a),t.confirmButton.onclick=()=>{(e=>{const t=me.innerParams.get(e);e.disableButtons(),t.input?Tt(e,"confirm"):Ot(e,!0)})(e)},t.denyButton.onclick=()=>{(e=>{const t=me.innerParams.get(e);e.disableButtons(),t.returnInputValueOnDeny?Tt(e,"deny"):$t(e,!1)})(e)},t.cancelButton.onclick=()=>{((e,t)=>{e.disableButtons(),t(We.cancel)})(e,r)},t.closeButton.onclick=()=>{r(We.close)},((e,t,o)=>{e.toast?co(e,t,o):(wo(t),mo(t),ho(e,t,o))})(o,t,r),((e,t,o)=>{if(Ue(e),!t.toast){const n=e=>Ke(t,e,o);e.keydownHandler=n;const s=t.keydownListenerCapture?window:k();if(s){e.keydownTarget=s,e.keydownListenerCapture=t.keydownListenerCapture;const o=n;e.keydownTarget.addEventListener("keydown",o,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!0}}})(n,o,r),((e,t)=>{"select"===t.input||"radio"===t.input?Et(e,t):["text","email","number","tel","textarea"].some(e=>e===t.input)&&(h(t.inputValue)||f(t.inputValue))&&(vt(T()),At(e,t))})(e,o),Io(o),Jo(n,o,r),Yo(t,o),setTimeout(()=>{t.container.scrollTop=0})}),Uo=(e,t)=>{const o=(e=>{const t="string"==typeof e.template?document.querySelector(e.template):e.template;if(!t)return{};const o=t.content;return Mo(o),Object.assign(Ao(o),Lo(o),Bo(o),To(o),So(o),$o(o),Po(o,Eo))})(e),n=Object.assign({},Wt,t,o,e);return n.showClass=Object.assign({},Wt.showClass,n.showClass),n.hideClass=Object.assign({},Wt.hideClass,n.hideClass),!1===n.animation&&(n.showClass={backdrop:"swal2-noanimation"},n.hideClass={}),n},Xo=e=>{const t={popup:k(),container:b(),actions:M(),confirmButton:T(),denyButton:$(),cancelButton:S(),loader:P(),closeButton:D(),validationMessage:B(),progressSteps:L()};return me.domCache.set(e,t),t},Jo=(e,t,o)=>{const n=I();K(n),t.timer&&(e.timeout=new Co(()=>{o("timer"),delete e.timeout},t.timer),t.timerProgressBar&&n&&(Y(n),z(n,t,"timerProgressBar"),setTimeout(()=>{e.timeout&&e.timeout.running&&ne(t.timer)})))},Yo=(e,t)=>{if(!t.toast)return m(t.allowEnterKey)?void(Ko(e)||Zo(e,t)||Xe(-1,1)):(w("allowEnterKey"),void Go())},Ko=e=>{const t=Array.from(e.popup.querySelectorAll("[autofocus]"));for(const e of t)if(e instanceof HTMLElement&&ee(e))return e.focus(),!0;return!1},Zo=(e,t)=>t.focusDeny&&ee(e.denyButton)?(e.denyButton.focus(),!0):t.focusCancel&&ee(e.cancelButton)?(e.cancelButton.focus(),!0):!(!t.focusConfirm||!ee(e.confirmButton)||(e.confirmButton.focus(),0)),Go=()=>{document.activeElement instanceof HTMLElement&&"function"==typeof document.activeElement.blur&&document.activeElement.blur()};Ro.prototype.disableButtons=_t,Ro.prototype.enableButtons=Nt,Ro.prototype.getInput=jt,Ro.prototype.disableInput=Vt,Ro.prototype.enableInput=zt,Ro.prototype.hideLoading=It,Ro.prototype.disableLoading=It,Ro.prototype.showValidationMessage=Ft,Ro.prototype.resetValidationMessage=Rt,Ro.prototype.close=ut,Ro.prototype.closePopup=ut,Ro.prototype.closeModal=ut,Ro.prototype.closeToast=ut,Ro.prototype.rejectPromise=wt,Ro.prototype.update=oo,Ro.prototype._destroy=so,Object.assign(Ro,xo),Object.keys(lo).forEach(e=>{Ro[e]=function(...t){if(Vo&&Vo[e])return Vo[e](...t)}}),Ro.DismissReason=We,Ro.version="11.26.17";const Qo=Ro;return Qo.default=Qo,Qo}(),void 0!==this&&this.Sweetalert2&&(this.swal=this.sweetAlert=this.Swal=this.SweetAlert=this.Sweetalert2),"undefined"!=typeof document&&function(e,t){var o=e.createElement("style");if(e.getElementsByTagName("head")[0].appendChild(o),o.styleSheet)o.styleSheet.disabled||(o.styleSheet.cssText=t);else try{o.innerHTML=t}catch(e){o.innerText=t}}(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}}')},7736(e){var t;t=function(e){var t=function(e){return new t.lib.init(e)};function o(e,t){return t.offset[e]?isNaN(t.offset[e])?t.offset[e]:t.offset[e]+"px":"0px"}function n(e,t){return!(!e||"string"!=typeof t||!(e.className&&e.className.trim().split(/\s+/gi).indexOf(t)>-1))}return t.defaults={oldestFirst:!0,text:"Toastify is awesome!",node:void 0,duration:3e3,selector:void 0,callback:function(){},destination:void 0,newWindow:!1,close:!1,gravity:"toastify-top",positionLeft:!1,position:"",backgroundColor:"",avatar:"",className:"",stopOnFocus:!0,onClick:function(){},offset:{x:0,y:0},escapeMarkup:!0,ariaLive:"polite",style:{background:""}},t.lib=t.prototype={toastify:"1.12.0",constructor:t,init:function(e){return e||(e={}),this.options={},this.toastElement=null,this.options.text=e.text||t.defaults.text,this.options.node=e.node||t.defaults.node,this.options.duration=0===e.duration?0:e.duration||t.defaults.duration,this.options.selector=e.selector||t.defaults.selector,this.options.callback=e.callback||t.defaults.callback,this.options.destination=e.destination||t.defaults.destination,this.options.newWindow=e.newWindow||t.defaults.newWindow,this.options.close=e.close||t.defaults.close,this.options.gravity="bottom"===e.gravity?"toastify-bottom":t.defaults.gravity,this.options.positionLeft=e.positionLeft||t.defaults.positionLeft,this.options.position=e.position||t.defaults.position,this.options.backgroundColor=e.backgroundColor||t.defaults.backgroundColor,this.options.avatar=e.avatar||t.defaults.avatar,this.options.className=e.className||t.defaults.className,this.options.stopOnFocus=void 0===e.stopOnFocus?t.defaults.stopOnFocus:e.stopOnFocus,this.options.onClick=e.onClick||t.defaults.onClick,this.options.offset=e.offset||t.defaults.offset,this.options.escapeMarkup=void 0!==e.escapeMarkup?e.escapeMarkup:t.defaults.escapeMarkup,this.options.ariaLive=e.ariaLive||t.defaults.ariaLive,this.options.style=e.style||t.defaults.style,e.backgroundColor&&(this.options.style.background=e.backgroundColor),this},buildToast:function(){if(!this.options)throw"Toastify is not initialized";var e=document.createElement("div");for(var t in e.className="toastify on "+this.options.className,this.options.position?e.className+=" toastify-"+this.options.position:!0===this.options.positionLeft?(e.className+=" toastify-left",console.warn("Property `positionLeft` will be depreciated in further versions. Please use `position` instead.")):e.className+=" toastify-right",e.className+=" "+this.options.gravity,this.options.backgroundColor&&console.warn('DEPRECATION NOTICE: "backgroundColor" is being deprecated. Please use the "style.background" property.'),this.options.style)e.style[t]=this.options.style[t];if(this.options.ariaLive&&e.setAttribute("aria-live",this.options.ariaLive),this.options.node&&this.options.node.nodeType===Node.ELEMENT_NODE)e.appendChild(this.options.node);else if(this.options.escapeMarkup?e.innerText=this.options.text:e.innerHTML=this.options.text,""!==this.options.avatar){var n=document.createElement("img");n.src=this.options.avatar,n.className="toastify-avatar","left"==this.options.position||!0===this.options.positionLeft?e.appendChild(n):e.insertAdjacentElement("afterbegin",n)}if(!0===this.options.close){var s=document.createElement("button");s.type="button",s.setAttribute("aria-label","Close"),s.className="toast-close",s.innerHTML="✖",s.addEventListener("click",function(e){e.stopPropagation(),this.removeElement(this.toastElement),window.clearTimeout(this.toastElement.timeOutValue)}.bind(this));var a=window.innerWidth>0?window.innerWidth:screen.width;("left"==this.options.position||!0===this.options.positionLeft)&&a>360?e.insertAdjacentElement("afterbegin",s):e.appendChild(s)}if(this.options.stopOnFocus&&this.options.duration>0){var r=this;e.addEventListener("mouseover",function(t){window.clearTimeout(e.timeOutValue)}),e.addEventListener("mouseleave",function(){e.timeOutValue=window.setTimeout(function(){r.removeElement(e)},r.options.duration)})}if(void 0!==this.options.destination&&e.addEventListener("click",function(e){e.stopPropagation(),!0===this.options.newWindow?window.open(this.options.destination,"_blank"):window.location=this.options.destination}.bind(this)),"function"==typeof this.options.onClick&&void 0===this.options.destination&&e.addEventListener("click",function(e){e.stopPropagation(),this.options.onClick()}.bind(this)),"object"==typeof this.options.offset){var i=o("x",this.options),l=o("y",this.options),c="left"==this.options.position?i:"-"+i,d="toastify-top"==this.options.gravity?l:"-"+l;e.style.transform="translate("+c+","+d+")"}return e},showToast:function(){var e;if(this.toastElement=this.buildToast(),!(e="string"==typeof this.options.selector?document.getElementById(this.options.selector):this.options.selector instanceof HTMLElement||"undefined"!=typeof ShadowRoot&&this.options.selector instanceof ShadowRoot?this.options.selector:document.body))throw"Root element is not defined";var o=t.defaults.oldestFirst?e.firstChild:e.lastChild;return e.insertBefore(this.toastElement,o),t.reposition(),this.options.duration>0&&(this.toastElement.timeOutValue=window.setTimeout(function(){this.removeElement(this.toastElement)}.bind(this),this.options.duration)),this},hideToast:function(){this.toastElement.timeOutValue&&clearTimeout(this.toastElement.timeOutValue),this.removeElement(this.toastElement)},removeElement:function(e){e.className=e.className.replace(" on",""),window.setTimeout(function(){this.options.node&&this.options.node.parentNode&&this.options.node.parentNode.removeChild(this.options.node),e.parentNode&&e.parentNode.removeChild(e),this.options.callback.call(e),t.reposition()}.bind(this),400)}},t.reposition=function(){for(var e,t={top:15,bottom:15},o={top:15,bottom:15},s={top:15,bottom:15},a=document.getElementsByClassName("toastify"),r=0;r<a.length;r++){e=!0===n(a[r],"toastify-top")?"toastify-top":"toastify-bottom";var i=a[r].offsetHeight;e=e.substr(9,e.length-1),(window.innerWidth>0?window.innerWidth:screen.width)<=360?(a[r].style[e]=s[e]+"px",s[e]+=i+15):!0===n(a[r],"toastify-left")?(a[r].style[e]=t[e]+"px",t[e]+=i+15):(a[r].style[e]=o[e]+"px",o[e]+=i+15)}return this},t.lib.init.prototype=t.lib,t},e.exports?e.exports=t():this.Toastify=t()}},t={};function o(n){var s=t[n];if(void 0!==s)return s.exports;var a=t[n]={id:n,exports:{}};return e[n].call(a.exports,a,a.exports,o),a.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.nc=void 0,(()=>{"use strict";const e="lp-hidden",t="loading",n=(e,t)=>{const o=document.querySelector(e);if(o)return void t(o);const n=new MutationObserver((o,n)=>{const s=document.querySelector(e);s&&(n.disconnect(),t(s))});n.observe(document.documentElement,{childList:!0,subtree:!0})},s=(t,o=0)=>{t&&(o?t.classList.remove(e):t.classList.add(e))},a=(e,o)=>{e&&(o?e.classList.add(t):e.classList.remove(t))},r=(e,t)=>{const o=(e=>{const t={},o=new FormData(e);for(const e of o.entries()){const n=e[0],s=o.getAll(n);t.hasOwnProperty(n)||(t[n]=s.join(","))}return t})(e);return(e=>{const t=[],o=e.elements;for(let e=0;e<o.length;e++){const n=o[e].name;n&&!t.includes(n)&&t.push(n)}return t})(e).forEach(e=>{o.hasOwnProperty(e)?""===o[e][0]&&(delete o[e],delete t[e]):delete t[e]}),t={...t,...o}},i=(e,t)=>{document.addEventListener(e,o=>{const n=o.target;let s={e:o,target:n};t.forEach(t=>{s={...s,...t},t.conditionBeforeCallBack&&!0!==t.conditionBeforeCallBack(s)||"keydown"===e&&t.checkIsEventEnter&&"Enter"!==o.key||n.closest(t.selector)&&(t.class?t.class[t.callBack](s):t.callBack(s))})})};window.lpToggleEnableInit=0,window.lpFullScreenViewInit=0;var l=o(8465),c=o.n(l),d=o(7736),u=o.n(d),p=o(5072),w=o.n(p),m=o(7825),h=o.n(m),g=o(7659),f=o.n(g),b=o(5056),v=o.n(b),y=o(540),k=o.n(y),x=o(1113),C=o.n(x),E=o(9455),A={};A.styleTagTransform=C(),A.setAttributes=v(),A.insert=f().bind(null,"head"),A.domAPI=h(),A.insertStyleElement=k(),w()(E.A,A),E.A&&E.A.locals&&E.A.locals;const L={text:"",gravity:lpData.toast.gravity,position:lpData.toast.position,className:`${lpData.toast.classPrefix}`,close:1==lpData.toast.close,stopOnFocus:1==lpData.toast.stopOnFocus,duration:lpData.toast.duration},B=(e,t="success",o)=>{let n=L;o&&(n={...n,...o}),new(u())({...n,text:e,className:`${lpData.toast.classPrefix} ${t}`}).showToast()};let T,S=!1;const $=JSON.parse(localStorage.getItem("lp_course_ai_setting"))||{};class P{constructor(e={}){this.options={autoInsertButton:!0,isCourseBuilder:!1,redirectDelayMs:2e3,...e},this.init()}static selectors={elGenerateDataAiWrap:".lp-generate-data-ai-wrap"};init(){this.options.autoInsertButton&&(lpData?.enable_open_ai?n(".page-title-action",e=>{e.insertAdjacentHTML("afterend",`<button type="button" class="lp-btn-generate-course-with-ai lp-btn-ai-style">\n\t\t\t\t\t\t<i class="lp-ico-ai"></i>\n\t\t\t\t\t\t<span>${lpData.i18n.generate_with_ai}</span>\n\t\t\t\t\t</button>`)}):n(".page-title-action",e=>{e.insertAdjacentHTML("afterend",`<button type="button" class="lp-btn-warning-enable-ai lp-btn-ai-style">\n\t\t\t\t\t\t<i class="lp-ico-ai"></i>\n\t\t\t\t\t\t<span>${lpData.i18n.generate_with_ai}</span>\n\t\t\t\t\t</button>`)})),this.events()}events(){P._loadedEvents||(P._loadedEvents=!0,i("click",[{selector:".lp-btn-warning-enable-ai",class:this,callBack:this.showPopupEnableAI.name},{selector:".lp-btn-generate-course-with-ai",class:this,callBack:this.showPopupCreateFullCourse.name},{selector:".lp-btn-step",class:this,callBack:this.showStep.name},{selector:".lp-btn-generate-prompt",class:this,callBack:this.generatePrompt.name},{selector:".lp-btn-call-open-ai",class:this,callBack:this.generateDataCourse.name},{selector:".lp-btn-create-course",class:this,callBack:this.createCourse.name},{selector:".lp-btn-close-ai-popup",callBack:e=>{const{e:t,target:o}=e,n=lpData?.i18n?.confirm_close_ai||"Are you sure you want to close? Generate data will stop.";S?confirm(n)&&c().close():c().close()}}]))}showPopupEnableAI(){const e=document.querySelector("#lp-tmpl-must-enable-ai");e?c().fire({html:e.innerHTML,width:"420px",showCloseButton:!1,showConfirmButton:!1}):console.error("Enable OpenAI Modal Template not found!")}showPopupCreateFullCourse(){const e=document.querySelector("#lp-tmpl-create-course-ai");e?c().fire({html:e.innerHTML,width:"60%",showCloseButton:!1,showConfirmButton:!1,allowOutsideClick:!1,allowEscapeKey:!1,didOpen:()=>{const e=c().getPopup();e.click();const t=e.querySelector('select[name="target_audience"]');t&&$?.target_audience&&t.tomselect.setValue($.target_audience);const o=e.querySelector('select[name="tone"]');o&&$?.tone&&o.tomselect.setValue($.tone);const n=e.querySelector('select[name="language"]');n&&$?.language&&n.tomselect.setValue($.language),t.addEventListener("change",e=>{$.target_audience=t.tomselect.getValue(),localStorage.setItem("lp_course_ai_setting",JSON.stringify($))}),o.addEventListener("change",e=>{$.tone=o.tomselect.getValue(),localStorage.setItem("lp_course_ai_setting",JSON.stringify($))}),n.addEventListener("change",e=>{const t=n.tomselect.getValue();$.language=t?[t]:[],localStorage.setItem("lp_course_ai_setting",JSON.stringify($))})}}).then(e=>{e.isDismissed&&S&&(S=!1)}):console.error("AI Create Full Course Modal Template not found!")}showStep(e){const{e:t,target:o}=e;t.preventDefault();const n=o.closest(".button-actions"),a=n.closest(P.selectors.elGenerateDataAiWrap);let r=parseInt(n.dataset.step);const i=o.dataset.action;"next"===i?r++:"prev"===i&&r--,n.dataset.step=r;const l=o.closest("form"),c=l.querySelector(`.step-content[data-step="${r}"]`),d=a.querySelector(`.step-item[data-step="${r}"]`);l.querySelectorAll(".step-content").forEach(e=>e.classList.remove("active")),c.classList.add("active"),a.querySelectorAll(".step-item").forEach(e=>e.classList.remove("active")),d.classList.add("active"),o.closest("form").querySelectorAll("button[data-step-show]").forEach(e=>{e.dataset.stepShow.split(",").map(e=>parseInt(e.trim())).includes(r)?s(e,1):s(e,0)})}generatePrompt(e){const{e:t,target:o}=e;t.preventDefault(),a(o,!0);const n=o.closest("form");let s=JSON.parse(o.dataset.send);s=r(n,s);const i={success:e=>{const{message:t,status:o,data:s}=e;B(t,o),"success"===o&&(n.querySelector(".lp-btn-step[data-action=next]").click(),n.querySelector("textarea[name=lp-openai-prompt-generated-field]").value=s)},error:e=>{B(e,"error")},completed:()=>{a(o,!1)}};window.lpAJAXG.fetchAJAX(s,i)}generateDataCourse(e){const{e:t,target:o}=e;t.preventDefault(),a(o,!0);const n=o.closest("form");let i=JSON.parse(o.dataset.send);i=r(n,i);const l=n.querySelector(".lp-btn-step[data-action=prev]");s(l,0);const c={success:e=>{const{message:t,status:o,data:s}=e;S&&B(t,o),"success"===o&&(T=s.lp_structure_course,n.querySelector(".lp-ai-generated-results").innerHTML=s.lp_html_preview,n.querySelector(".lp-btn-step[data-action=next]").click())},error:e=>{B(e,"error")},completed:()=>{a(o,!1),s(l,1),S=!1}};S=!0,window.lpAJAXG.fetchAJAX(i,c)}createCourse(e){const{e:t,target:o}=e;t.preventDefault(),a(o,!0);const n=JSON.parse(o.dataset.send);n.lp_structure_course=T,this.options.isCourseBuilder&&(n.is_course_builder=1);const r=o.closest("form").querySelector(".lp-btn-step[data-action=prev]");let i;s(r,0),i=window.outerWidth<768?"90%":"30%";const l=document.querySelector("#lp-tmpl-creating-course-ai");c().fire({html:l.innerHTML,showCloseButton:!1,showConfirmButton:!1,allowOutsideClick:!1,width:i});const d={success:e=>{const{message:t,status:o,data:n}=e;c().close(),B(t,o),"success"===o?setTimeout(()=>{window.location.href=n.edit_course_url},this.options.redirectDelayMs):s(r,1)},error:e=>{B(e,"error"),s(r,1)},completed:()=>{a(o,!1)}};window.lpAJAXG.fetchAJAX(n,d)}}class M{constructor(){this.isRequesting=!1,this.activeCourseId=0,this.init()}static selectors={wrap:"#lp-modal-enrolled-wrap",form:"#lp-modal-enrolled-form",toolbarTemplate:"#lp-tmpl-enrolled-students-toolbar-modal",targetTemplate:"#lp-tmpl-enrolled-students-target-modal",toolbar:".lp-enrolled-students-table-toolbar--modal",courseTrigger:".lp-btn-view-students",searchInput:"#lp-modal-enrolled-search-input",startDateInput:"#lp-modal-enrolled-filter-start-date",endDateInput:"#lp-modal-enrolled-filter-end-date",searchBtn:".lp-enrolled-btn-search-modal",clearBtn:".lp-enrolled-btn-clear-modal",modalSearchFields:"#lp-modal-enrolled-search-input, #lp-modal-enrolled-filter-start-date, #lp-modal-enrolled-filter-end-date"};setButtonLoadingState(e,t){e&&a(e,t?1:0)}init(){M._loadedEvents||(M._loadedEvents=!0,i("click",[{selector:M.selectors.courseTrigger,class:this,callBack:this.handleOpenModal.name},{selector:M.selectors.searchBtn,class:this,callBack:this.handleModalSearch.name},{selector:M.selectors.clearBtn,class:this,callBack:this.handleModalClear.name}]),i("keydown",[{selector:M.selectors.modalSearchFields,class:this,callBack:this.handleModalSearchOnEnter.name,checkIsEventEnter:!0}]),i("change",[{selector:M.selectors.startDateInput,class:this,callBack:this.checkDatesRange.name},{selector:M.selectors.endDateInput,class:this,callBack:this.checkDatesRange.name}]))}handleOpenModal(e){const t=e?.target?.closest(M.selectors.courseTrigger);if(!t||this.isRequesting||t.classList.contains("loading"))return;const o=parseInt(t.dataset.courseId,10)||0;if(!o)return;const n=t.dataset.courseTitle||"";this.activeCourseId=o,this.setButtonLoadingState(t,!0),this.openModal(o,n,t)}handleModalSearch(e){const t=e?.target?.closest(M.selectors.searchBtn);t&&this.activeCourseId&&(e?.e&&e.e.preventDefault(),this.isRequesting||t.classList.contains("loading")||t.disabled||(this.setButtonLoadingState(t,!0),this.loadEnrolledStudents(this.activeCourseId,1,t)))}handleModalSearchOnEnter(e){e?.e&&e.e.preventDefault();const t=this.getModalForm();if(!t)return;const o=t.querySelector(M.selectors.searchBtn);o&&this.handleModalSearch({...e,target:o})}handleModalClear(e){const t=e?.target?.closest(M.selectors.clearBtn),o=this.getModalForm();t&&o&&this.activeCourseId&&(e?.e&&e.e.preventDefault(),this.isRequesting||t.classList.contains("loading")||(o.reset(),this.setButtonLoadingState(t,!0),this.loadEnrolledStudents(this.activeCourseId,1,t)))}getModalPopup(){return c().getPopup?c().getPopup():null}getModalToolbarHtml(){const e=document.querySelector(M.selectors.toolbarTemplate);return e?e.innerHTML:""}getModalTargetHtml(){const e=document.querySelector(M.selectors.targetTemplate);return e?e.innerHTML:""}getAjaxHandle(){const e=window.lpAJAXG;return e&&"function"==typeof e.getDataSetCurrent&&"function"==typeof e.setDataSetCurrent&&"function"==typeof e.showHideLoading&&"function"==typeof e.fetchAJAX?e:null}getModalForm(){const e=this.getModalPopup();return e?e.querySelector(M.selectors.form):null}getModalFilterArgs(e={}){const t=this.getModalForm();return t?r(t,e):e}loadEnrolledStudents(e,t,o=null){const n=document.querySelector(M.selectors.wrap),s=n?.querySelector(".lp-target"),a=this.getAjaxHandle();if(!n||!s||!a||this.isRequesting)return;this.isRequesting=!0,o&&this.setButtonLoadingState(o,!0);const r=a.getDataSetCurrent(s);r.args=this.getModalFilterArgs(r.args||{}),r.args.course_id=parseInt(e,10)||0,r.args.paged=t,a.setDataSetCurrent(s,r),a.showHideLoading(s,1);const i={success:e=>{s.innerHTML=e.data.content},error:e=>{console.error(e)},completed:()=>{this.isRequesting=!1,a.showHideLoading(s,0),o&&this.setButtonLoadingState(o,!1)}};a.fetchAJAX(r,i)}openModal(e,t,o=null){const n=this.getModalToolbarHtml(),s=this.getModalTargetHtml();n&&s?(this.activeCourseId=parseInt(e,10)||0,c().fire({title:`${t}`,html:n+s,width:"80%",showConfirmButton:!1,showCloseButton:!0,didOpen:()=>{this.loadEnrolledStudents(this.activeCourseId,1,o)},didClose:()=>{this.activeCourseId=0,o&&this.setButtonLoadingState(o,!1)}})):o&&this.setButtonLoadingState(o,!1)}checkDatesRange(e){const{e:t}=e,o=t?.target;if(!o)return;const n=o.closest(M.selectors.form);if(!n)return;const s=n.querySelector(M.selectors.startDateInput),a=n.querySelector(M.selectors.endDateInput);o===s?s.value?(a.min=s.value,a.value&&a.value<s.value&&(a.value=s.value)):a.min="":o===a&&(a.value?(s.max=a.value,s.value&&s.value>a.value&&(s.value=a.value)):s.max="")}}new P,new M})()})(); |