PageSourceSearch

https://www.codechef.com/build/react2/assets/vendor-sweetalert2-CokzRhbv.js

js codechef.com collected 2026-09-24 08:54:10 UTC 37,665 bytes, 68 lines download raw bytes

1const $e="SweetAlert2:",tt=e=>{const t=[];for(let o=0;o<e.length;o++)t.indexOf(e[o])===-1&&t.push(e[o]);return t},ot=e=>e.charAt(0).toUpperCase()+e.slice(1),X=e=>Object.keys(e).map(t=>e[t]),x=e=>Array.prototype.slice.call(e),y=e=>{console.warn(`${$e} ${e}`)},T=e=>{console.error(`${$e} ${e}`)},ye=[],nt=e=>{ye.includes(e)||(ye.push(e),y(e))},it=(e,t)=>{nt(`"${e}" is deprecated and will be removed in the next major release. Please use "${t}" instead.`)},z=e=>typeof e=="function"?e():e,ce=e=>e&&typeof e.toPromise=="function",K=e=>ce(e)?e.toPromise():Promise.resolve(e),le=e=>e&&Promise.resolve(e)===e,q=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),st=e=>typeof e=="object"&&e.jquery,we=e=>e instanceof Element||st(e),rt=e=>{const t={};return typeof e[0]=="object"&&!we(e[0])?Object.assign(t,e[0]):["title","html","icon"].forEach((o,n)=>{const s=e[n];typeof s=="string"||we(s)?t[o]=s:s!==void 0&&T(`Unexpected type of ${o}! Expected "string" or "Element", got ${typeof s}`)}),t},ct="swal2-",Ie=e=>{const t={};for(const o in e)t[e[o]]=ct+e[o];return t},i=Ie(["container","shown","height-auto","iosfix","popup","modal","no-backdrop","no-transition","toast","toast-shown","toast-column","show","hide","close","title","header","content","html-container","actions","confirm","cancel","footer","icon","icon-content","image","input","file","range","select","radio","checkbox","label","textarea","inputerror","validation-message","progress-steps","active-progress-step","progress-step","progress-step-line","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"]),S=Ie(["success","warning","info","question","error"]),p=()=>document.body.querySelector(`.${i.container}`),N=e=>{const t=p();return t?t.querySelector(e):null},k=e=>N(`.${e}`),u=()=>k(i.popup),ue=()=>{const e=u();return x(e.querySelectorAll(`.${i.icon}`))},ee=()=>{const e=ue().filter(t=>B(t));return e.length?e[0]:null},Te=()=>k(i.title),w=()=>k(i.content),lt=()=>k(i["html-container"]),Oe=()=>k(i.image),Le=()=>k(i["progress-steps"]),ae=()=>k(i["validation-message"]),I=()=>N(`.${i.actions} .${i.confirm}`),M=()=>N(`.${i.actions} .${i.cancel}`),Y=()=>k(i.actions),Me=()=>k(i.header),Ve=()=>k(i.footer),Z=()=>k(i["timer-progress-bar"]),de=()=>k(i.close),ut=`
2  a[href],
3  area[href],
4  input:not([disabled]),
5  select:not([disabled]),
6  textarea:not([disabled]),
7  button:not([disabled]),
8  iframe,
9  object,
10  embed,
11  [tabindex="0"],
12  [contenteditable],
13  audio[controls],
14  video[controls],
15  summary
16`,fe=()=>{const e=x(u().querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])')).sort((o,n)=>(o=parseInt(o.getAttribute("tabindex")),n=parseInt(n.getAttribute("tabindex")),o>n?1:o<n?-1:0)),t=x(u().querySelectorAll(ut)).filter(o=>o.getAttribute("tabindex")!=="-1");return tt(e.concat(t)).filter(o=>B(o))},qe=()=>!J()&&!document.body.classList.contains(i["no-backdrop"]),J=()=>document.body.classList.contains(i["toast-shown"]),He=()=>u().hasAttribute("data-loading"),L={previousBodyPadding:null},g=(e,t)=>{if(e.textContent="",t){const n=new DOMParser().parseFromString(t,"text/html");x(n.querySelector("head").childNodes).forEach(s=>{e.appendChild(s)}),x(n.querySelector("body").childNodes).forEach(s=>{e.appendChild(s)})}},D=(e,t)=>{if(!t)return!1;const o=t.split(/\s+/);for(let n=0;n<o.length;n++)if(!e.classList.contains(o[n]))return!1;return!0},at=(e,t)=>{x(e.classList).forEach(o=>{!X(i).includes(o)&&!X(S).includes(o)&&!X(t.showClass).includes(o)&&e.classList.remove(o)})},v=(e,t,o)=>{if(at(e,t),t.customClass&&t.customClass[o]){if(typeof t.customClass[o]!="string"&&!t.customClass[o].forEach)return y(`Invalid type of customClass.${o}! Expected string or iterable object, got "${typeof t.customClass[o]}"`);l(e,t.customClass[o])}};function pe(e,t){if(!t)return null;switch(t){case"select":case"textarea":case"file":return P(e,i[t]);case"checkbox":return e.querySelector(`.${i.checkbox} input`);case"radio":return e.querySelector(`.${i.radio} input:checked`)||e.querySelector(`.${i.radio} input:first-child`);case"range":return e.querySelector(`.${i.range} input`);default:return P(e,i.input)}}const je=e=>{if(e.focus(),e.type!=="file"){const t=e.value;e.value="",e.value=t}},De=(e,t,o)=>
16{!e||!t||(typeof t=="string"&&(t=t.split(/\s+/).filter(Boolean)),t.forEach(n=>{e.forEach?e.forEach(s=>{o?s.classList.add(n):s.classList.remove(n)}):o?e.classList.add(n):e.classList.remove(n)}))},l=(e,t)=>{De(e,t,!0)},E=(e,t)=>{De(e,t,!1)},P=(e,t)=>{for(let o=0;o<e.childNodes.length;o++)if(D(e.childNodes[o],t))return e.childNodes[o]},U=(e,t,o)=>{o||parseInt(o)===0?e.style[t]=typeof o=="number"?`${o}px`:o:e.style.removeProperty(t)},b=(e,t="flex")=>{e.style.opacity="",e.style.display=t},C=e=>{e.style.opacity="",e.style.display="none"},Q=(e,t,o)=>{t?b(e,o):C(e)},B=e=>!!(e&&(e.offsetWidth||e.offsetHeight||e.getClientRects().length)),ve=e=>e.scrollHeight>e.clientHeight,Fe=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},dt=(e,t)=>{if(typeof e.contains=="function")return e.contains(t)},he=(e,t=!1)=>{const o=Z();B(o)&&(t&&(o.style.transition="none",o.style.width="100%"),setTimeout(()=>{o.style.transition=`width ${e/1e3}s linear`,o.style.width="0%"},10))},ft=()=>{const e=Z(),t=parseInt(window.getComputedStyle(e).width);e.style.removeProperty("transition"),e.style.width="100%";const o=parseInt(window.getComputedStyle(e).width),n=parseInt(t/o*100);e.style.removeProperty("transition"),e.style.width=`${n}%`},Re=()=>typeof window>"u"||typeof document>"u",pt=`
17 <div aria-labelledby="${i.title}" aria-describedby="${i.content}" class="${i.popup}" tabindex="-1">
18   <div class="${i.header}">
19     <ul class="${i["progress-steps"]}"></ul>
20     <div class="${i.icon} ${S.error}"></div>
21     <div class="${i.icon} ${S.question}"></div>
22     <div class="${i.icon} ${S.warning}"></div>
23     <div class="${i.icon} ${S.info}"></div>
24     <div class="${i.icon} ${S.success}"></div>
25     <img class="${i.image}" />
26     <h2 class="${i.title}" id="${i.title}"></h2>
27     <button type="button" class="${i.close}"></button>
28   </div>
29   <div class="${i.content}">
30     <div id="${i.content}" class="${i["html-container"]}"></div>
31     <input class="${i.input}" />
32     <input type="file" class="${i.file}" />
33     <div class="${i.range}">
34       <input type="range" />
35       <output></output>
36     </div>
37     <select class="${i.select}"></select>
38     <div class="${i.radio}"></div>
39     <label for="${i.checkbox}" class="${i.checkbox}">
40       <input type="checkbox" />
41       <span class="${i.label}"></span>
42     </label>
43     <textarea class="${i.textarea}"></textarea>
44     <div class="${i["validation-message"]}" id="${i["validation-message"]}"></div>
45   </div>
46   <div class="${i.actions}">
47     <button type="button" class="${i.confirm}">OK</button>
48     <button type="button" class="${i.cancel}">Cancel</button>
49   </div>
50   <div class="${i.footer}"></div>
51   <div class="${i["timer-progress-bar-container"]}">
52     <div class="${i["timer-progress-bar"]}"></div>
53   </div>
54 </div>
55`.replace(/(^|\n)\s*/g,""),ht=()=>{const e=p();return e?(e.parentNode.removeChild(e),E([document.documentElement,document.body],[i["no-backdrop"],i["toast-shown"],i["has-column"]]),!0):!1};let Ce;const $=e=>{V.isVisible()&&Ce!==e.target.value&&V.resetValidationMessage(),Ce=e.target.value},gt=()=>{const e=w(),t=P(e,i.input),o=P(e,i.file),n=e.querySelector(`.${i.range} input`),s=e.querySelector(`.${i.range} output`),c=P(e,i.select),d=e.querySelector(`.${i.checkbox} input`),h=P(e,i.textarea);t.oninput=$,o.onchange=$,c.onchange=$,d.onchange=$,h.oninput=$,n.oninput=f=>{$(f),s.value=n.value},n.onchange=f=>{$(f),n.nextSibling.value=n.value}},mt=e=>typeof e=="string"?document.querySelector(e):e,bt=e=>{const t=u();t.setAttribute("role",e.toast?"alert":"dialog"),t.setAttribute("aria-live",e.toast?"polite":"assertive"),e.toast||t.setAttribute("aria-modal","true")},yt=e=>{window.getComputedStyle(e).direction==="rtl"&&l(p(),i.rtl)},wt=e=>{const t=ht();if(Re()){T("SweetAlert2 requires document to initialize");return}const o=document.createElement("div");o.className=i.container,t&&l(o,i["no-transition"]),g(o,pt);const n=mt(e.target);n.appendChild(o),bt(e),yt(n),gt()},ge=(e,t)=>{e instanceof HTMLElement?t.appendChild(e):typeof e=="object"?vt(e,t):e&&g(t,e)},vt=(e,t)=>{e.jquery?Ct(t,e):g(t,e.toString())},Ct=(e,t)=>
55{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))},j=(()=>{if(Re())return!1;const e=document.createElement("div"),t={WebkitAnimation:"webkitAnimationEnd",OAnimation:"oAnimationEnd oanimationend",animation:"animationend"};for(const o in t)if(Object.prototype.hasOwnProperty.call(t,o)&&typeof e.style[o]<"u")return t[o];return!1})(),kt=()=>{const e=document.createElement("div");e.className=i["scrollbar-measure"],document.body.appendChild(e);const t=e.getBoundingClientRect().width-e.clientWidth;return document.body.removeChild(e),t},Pt=(e,t)=>{const o=Y(),n=I(),s=M();!t.showConfirmButton&&!t.showCancelButton&&C(o),v(o,t,"actions"),ke(n,"confirm",t),ke(s,"cancel",t),t.buttonsStyling?Et(n,s,t):(E([n,s],i.styled),n.style.backgroundColor=n.style.borderLeftColor=n.style.borderRightColor="",s.style.backgroundColor=s.style.borderLeftColor=s.style.borderRightColor=""),t.reverseButtons&&n.parentNode.insertBefore(s,n)};function Et(e,t,o){if(l([e,t],i.styled),o.confirmButtonColor&&(e.style.backgroundColor=o.confirmButtonColor),o.cancelButtonColor&&(t.style.backgroundColor=o.cancelButtonColor),!He()){const n=window.getComputedStyle(e).getPropertyValue("background-color");e.style.borderLeftColor=n,e.style.borderRightColor=n}}function ke(e,t,o){Q(e,o[`show${ot(t)}Button`],"inline-block"),g(e,o[`${t}ButtonText`]),e.setAttribute("aria-label",o[`${t}ButtonAriaLabel`]),e.className=i[t],v(e,o,`${t}Button`),l(e,o[`${t}ButtonClass`])}function Bt(e,t){typeof t=="string"?e.style.background=t:t||l([document.documentElement,document.body],i["no-backdrop"])}function At(e,t){t in i?l(e,i[t]):(y('The "position" parameter is not valid, defaulting to "center"'),l(e,i.center))}function St(e,t){if(t&&typeof t=="string"){const o=`grow-${t}`;o in i&&l(e,i[o])}}const xt=(e,t)=>
55{const o=p();if(!o)return;Bt(o,t.backdrop),!t.backdrop&&t.allowOutsideClick&&y('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`'),At(o,t.position),St(o,t.grow),v(o,t,"container");const n=document.body.getAttribute("data-swal2-queue-step");n&&(o.setAttribute("data-queue-step",n),document.body.removeAttribute("data-swal2-queue-step"))},a={promise:new WeakMap,innerParams:new WeakMap,domCache:new WeakMap},$t=["input","file","range","select","radio","checkbox","textarea"],It=(e,t)=>{const o=w(),n=a.innerParams.get(e),s=!n||t.input!==n.input;$t.forEach(c=>{const d=i[c],h=P(o,d);Lt(c,t.inputAttributes),h.className=d,s&&C(h)}),t.input&&(s&&Tt(t),Mt(t))},Tt=e=>{if(!m[e.input])return T(`Unexpected type of input! Expected "text", "email", "password", "number", "tel", "select", "radio", "checkbox", "textarea", "file" or "url", got "${e.input}"`);const t=Ue(e.input),o=m[e.input](t,e);b(o),setTimeout(()=>{je(o)})},Ot=e=>{for(let t=0;t<e.attributes.length;t++){const o=e.attributes[t].name;["type","value","style"].includes(o)||e.removeAttribute(o)}},Lt=(e,t)=>{const o=pe(w(),e);if(o){Ot(o);for(const n in t)e==="range"&&n==="placeholder"||o.setAttribute(n,t[n])}},Mt=e=>{const t=Ue(e.input);e.customClass&&l(t,e.customClass.input)},me=(e,t)=>
55{(!e.placeholder||t.inputPlaceholder)&&(e.placeholder=t.inputPlaceholder)},Ue=e=>{const t=i[e]?i[e]:i.input;return P(w(),t)},m={};m.text=m.email=m.password=m.number=m.tel=m.url=(e,t)=>(typeof t.inputValue=="string"||typeof t.inputValue=="number"?e.value=t.inputValue:le(t.inputValue)||y(`Unexpected type of inputValue! Expected "string", "number" or "Promise", got "${typeof t.inputValue}"`),me(e,t),e.type=t.input,e);m.file=(e,t)=>(me(e,t),e);m.range=(e,t)=>{const o=e.querySelector("input"),n=e.querySelector("output");return o.value=t.inputValue,o.type=t.input,n.value=t.inputValue,e};m.select=(e,t)=>{if(e.textContent="",t.inputPlaceholder){const o=document.createElement("option");g(o,t.inputPlaceholder),o.value="",o.disabled=!0,o.selected=!0,e.appendChild(o)}return e};m.radio=e=>(e.textContent="",e);m.checkbox=(e,t)=>{const o=pe(w(),"checkbox");o.value=1,o.id=i.checkbox,o.checked=!!t.inputValue;const n=e.querySelector("span");return g(n,t.inputPlaceholder),e};m.textarea=(e,t)=>{if(e.value=t.inputValue,me(e,t),"MutationObserver"in window){const o=parseInt(window.getComputedStyle(u()).width),n=parseInt(window.getComputedStyle(u()).paddingLeft)+parseInt(window.getComputedStyle(u()).paddingRight),s=()=>{const c=e.offsetWidth+n;c>o?u().style.width=`${c}px`:u().style.width=null};new MutationObserver(s).observe(e,{attributes:!0,attributeFilter:["style"]})}return e};const Vt=(e,t)=>{const o=w().querySelector(`#${i.content}`);t.html?(ge(t.html,o),b(o,"block")):t.text?(o.textContent=t.text,b(o,"block")):C(o),It(e,t),v(w(),t,"content")},qt=(e,t)=>{const o=Ve();Q(o,t.footer),t.footer&&ge(t.footer,o),v(o,t,"footer")},Ht=(e,t)=>{const o=de();g(o,t.closeButtonHtml),v(o,t,"closeButton"),Q(o,t.showCloseButton),o.setAttribute("aria-label",t.closeButtonAriaLabel)},jt=(e,t)=>{const o=a.innerParams.get(e);if(o&&t.icon===o.icon&&ee()){v(ee(),t,"icon");return}if(Dt(),!!t.icon)if(Object.keys(S).indexOf(t.icon)!==-1){const n=N(`.${i.icon}.${S[t.icon]}`);b(n),Rt(n,t),Ft(),v(n,t,"icon"),l(n,t.showClass.icon)}else T(`Unknown icon! Expected "success", "error", "warning", "info" or "question", got "${t.icon}"`)},Dt=()=>{const e=ue();for(let t=0;t<e.length;t++)C(e[t])},Ft=()=>{const e=u(),t=window.getComputedStyle(e).getPropertyValue("background-color"),o=e.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix");for(let n=0;n<o.length;n++)o[n].style.backgroundColor=t},Rt=(e,t)=>
55{e.textContent="",t.iconHtml?g(e,Pe(t.iconHtml)):t.icon==="success"?g(e,`
56      <div class="swal2-success-circular-line-left"></div>
57      <span class="swal2-success-line-tip"></span> <span class="swal2-success-line-long"></span>
58      <div class="swal2-success-ring"></div> <div class="swal2-success-fix"></div>
59      <div class="swal2-success-circular-line-right"></div>
60    `):t.icon==="error"?g(e,`
61      <span class="swal2-x-mark">
62        <span class="swal2-x-mark-line-left"></span>
63        <span class="swal2-x-mark-line-right"></span>
64      </span>
65    `):g(e,Pe({question:"?",warning:"!",info:"i"}[t.icon]))},Pe=e=>`<div class="${i["icon-content"]}">${e}</div>`,Ut=(e,t)=>{const o=Oe();if(!t.imageUrl)return C(o);b(o,""),o.setAttribute("src",t.imageUrl),o.setAttribute("alt",t.imageAlt),U(o,"width",t.imageWidth),U(o,"height",t.imageHeight),o.className=i.image,v(o,t,"image")};let A=[];const Wt=function(e){const t=this;A=e;const o=(s,c)=>{A=[],s(c)},n=[];return new Promise(s=>{(function c(d,h){d<A.length?(document.body.setAttribute("data-swal2-queue-step",d),t.fire(A[d]).then(f=>{typeof f.value<"u"?(n.push(f.value),c(d+1)):o(s,{dismiss:f.dismiss})})):o(s,{value:n})})(0)})},We=()=>p()&&p().getAttribute("data-queue-step"),_t=(e,t)=>t&&t<A.length?A.splice(t,0,e):A.push(e),zt=e=>{typeof A[e]<"u"&&A.splice(e,1)},Kt=e=>{const t=document.createElement("li");return l(t,i["progress-step"]),g(t,e),t},Nt=e=>{const t=document.createElement("li");return l(t,i["progress-step-line"]),e.progressStepsDistance&&(t.style.width=e.progressStepsDistance),t},Yt=(e,t)=>{const o=Le();if(!t.progressSteps||t.progressSteps.length===0)return C(o);b(o),o.textContent="";const n=parseInt(t.currentProgressStep===void 0?We():t.currentProgressStep);n>=t.progressSteps.length&&y("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),t.progressSteps.forEach((s,c)=>{const d=Kt(s);if(o.appendChild(d),c===n&&l(d,i["active-progress-step"]),c!==t.progressSteps.length-1){const h=Nt(t);o.appendChild(h)}})},Zt=(e,t)=>{const o=Te();Q(o,t.title||t.titleText),t.title&&ge(t.title,o),t.titleText&&(o.innerText=t.titleText),v(o,t,"title")},Jt=(e,t)=>{const o=Me();v(o,t,"header"),Yt(e,t),jt(e,t),Ut(e,t),Zt(e,t),Ht(e,t)},Qt=(e,t)=>{const o=u();U(o,"width",t.width),U(o,"padding",t.padding),t.background&&(o.style.background=t.background),Gt(o,t)},Gt=(e,t)=>{e.className=`${i.popup} ${B(e)?t.showClass.popup:""}`,t.toast?(l([document.documentElement,document.body],i["toast-shown"]),l(e,i.toast)):l(e,i.modal),v(e,t,"popup"),typeof t.customClass=="string"&&l(e,t.customClass),t.icon&&l(e,i[`icon-${t.icon}`])},_e=(e,t)=>{Qt(e,t),xt(e,t),Jt(e,t),Vt(e,t),Pt(e,t),qt(e,t),typeof t.onRender=="function"&&t.onRender(u())},Xt=()=>B(u()),ze=()=>I()&&I().click(),eo=()=>M()&&M().click();function to(...e){const t=this;return new t(...e)}function oo(e){class t extends this{_main(n){return super._main(Object.assign({},e,n))}}return t}const W=()=>{let e=u();e||V.fire(),e=u();const t=Y(),o=I();b(t),b(o,"inline-block"),l([e,t],i.loading),o.disabled=!0,e.setAttribute("data-loading",!0),e.setAttribute("aria-busy",!0),e.focus()},no=100,r={},io=()=>{r.previousActiveElement&&r.previousActiveElement.focus?(r.previousActiveElement.focus(),r.previousActiveElement=null):document.body&&document.body.focus()},so=()=>new Promise(e=>{const t=window.scrollX,o=window.scrollY;r.restoreFocusTimeout=setTimeout(()=>{io(),e()},no),typeof t<"u"&&typeof o<"u"&&window.scrollTo(t,o)}),ro=()=>r.timeout&&r.timeout.getTimerLeft(),Ke=()=>{if(r.timeout)return ft(),r.timeout.stop()},Ne=()=>{if(r.timeout){const e=r.timeout.start();return he(e),e}},co=()=>{const e=r.timeout;return e&&(e.running?Ke():Ne())},lo=e=>{if(r.timeout){const t=r.timeout.increase(e);return he(t,!0),t}},uo=()=>r.timeout&&r.timeout.isRunning(),R={title:"",titleText:"",text:"",html:"",footer:"",icon:void 0,iconHtml:void 0,toast:!1,animation:!0,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:void 0,target:"body",backdrop:!0,heightAuto:!0,allowOutsideClick:!0,allowEscapeKey:!0,allowEnterKey:!0,stopKeydownPropagation:!0,keydownListenerCapture:!1,showConfirmButton:!0,showCancelButton:!1,preConfirm:void 0,confirmButtonText:"OK",confirmButtonAriaLabel:"",confirmButtonColor:void 0,cancelButtonText:"Cancel",cancelButtonAriaLabel:"",cancelButtonColor:void 0,buttonsStyling:!0,reverseButtons:!1,focusConfirm:!0,focusCancel:!1,showCloseButton:!1,closeButtonHtml:"&times;",closeButtonAriaLabel:"Close this dialog",showLoaderOnConfirm:!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:"",inputValue:"",inputOptions:{},inputAutoTrim:!0,inputAttributes:{},inputValidator:void 0,validationMessage:void 0,grow:!1,position:"center",progressSteps:[],currentProgressStep:void 0,progressStepsDistance:void 0,onBeforeOpen:void 0,onOpen:void 0,onRender:void 0,onClose:void 0,onAfterClose:void 0,onDestroy:void 0,scrollbarPadding:!0},ao=["allowEscapeKey","allowOutsideClick","buttonsStyling","cancelButtonAriaLabel","cancelButtonColor","cancelButtonText","closeButtonAriaLabel","closeButtonHtml","confirmButtonAriaLabel","confirmButtonColor","confirmButtonText","currentProgressStep","customClass","footer","hideClass","html","icon","imageAlt","imageHeight","imageUrl","imageWidth","onAfterClose","onClose","onDestroy","progressSteps","reverseButtons","showCancelButton","showCloseButton","showConfirmButton","text","t
65itle","titleText"],fo={animation:'showClass" and "hideClass'},po=["allowOutsideClick","allowEnterKey","backdrop","focusConfirm","focusCancel","heightAuto","keydownListenerCapture"],Ye=e=>Object.prototype.hasOwnProperty.call(R,e),ho=e=>ao.indexOf(e)!==-1,te=e=>fo[e],go=e=>{Ye(e)||y(`Unknown parameter "${e}"`)},mo=e=>{po.includes(e)&&y(`The parameter "${e}" is incompatible with toasts`)},bo=e=>{te(e)&&it(e,te(e))},yo=e=>{for(const t in e)go(t),e.toast&&mo(t),bo(t)},wo=Object.freeze(Object.defineProperty({__proto__:null,argsToParams:rt,clickCancel:eo,clickConfirm:ze,deleteQueueStep:zt,enableLoading:W,fire:to,getActions:Y,getCancelButton:M,getCloseButton:de,getConfirmButton:I,getContainer:p,getContent:w,getFocusableElements:fe,getFooter:Ve,getHeader:Me,getHtmlContainer:lt,getIcon:ee,getIcons:ue,getImage:Oe,getPopup:u,getQueueStep:We,getTimerLeft:ro,getTimerProgressBar:Z,getTitle:Te,getValidationMessage:ae,increaseTimer:lo,insertQueueStep:_t,isDeprecatedParameter:te,isLoading:He,isTimerRunning:uo,isUpdatableParameter:ho,isValidParameter:Ye,isVisible:Xt,mixin:oo,queue:Wt,resumeTimer:Ne,showLoading:W,stopTimer:Ke,toggleTimer:co},Symbol.toStringTag,{value:"Module"}));function Ee(){const e=a.innerParams.get(this);if(!e)return;const t=a.domCache.get(this);e.showConfirmButton||(C(t.confirmButton),e.showCancelButton||C(t.actions)),E([t.popup,t.actions],i.loading),t.popup.removeAttribute("aria-busy"),t.popup.removeAttribute("data-loading"),t.confirmButton.disabled=!1,t.cancelButton.disabled=!1}function vo(e){const t=a.innerParams.get(e||this),o=a.domCache.get(e||this);return o?pe(o.content,t.input):null}const Co=()=>{L.previousBodyPadding===null&&document.body.scrollHeight>window.innerHeight&&(L.previousBodyPadding=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight=`${L.previousBodyPadding+kt()}px`)},ko=()=>{L.previousBodyPadding!==null&&(document.body.style.paddingRight=`${L.previousBodyPadding}px`,L.previousBodyPadding=null)},Po=()=>{if((/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)&&!D(document.body,i.iosfix)){const t=document.body.scrollTop;document.body.style.top=`${t*-1}px`,l(document.body,i.iosfix),Bo(),Eo()}},Eo=()=>{!navigator.userAgent.match(/(CriOS|FxiOS|EdgiOS|YaBrowser|UCBrowser)/i)&&u().scrollHeight>window.innerHeight-44&&(p().style.paddingBottom="44px")},Bo=()=>{const e=p();let t;e.ontouchstart=o=>{t=Ao(o.target)},e.ontouchmove=o=>{t&&(o.preventDefault(),o.stopPropagation())}},Ao=e=>{const t=p();return e===t||!ve(t)&&e.tagName!=="INPUT"&&!(ve(w())&&w().contains(e))},So=()=>{if(D(document.body,i.iosfix)){const e=parseInt(document.body.style.top,10);E(document.body,i.iosfix),document.body.style.top="",document.body.scrollTop=e*-1}},Ze=()=>!!window.MSInputMethodContext&&!!document.documentMode,oe=()=>{const e=p(),t=u();e.style.removeProperty("align-items"),t.offsetTop<0&&(e.style.alignItems="flex-start")},xo=()=>{typeof window<"u"&&Ze()&&(oe(),window.addEventListener("resize",oe))},$o=()=>{typeof window<"u"&&Ze()&&window.removeEventListener("resize",oe)},Io=()=>{x(document.body.children).forEach(t=>{t===p()||dt(t,p())||(t.hasAttribute("aria-hidden")&&t.setAttribute("data-previous-aria-hidden",t.getAttribute("aria-hidden")),t.setAttribute("aria-hidden","true"))})},To=()=>{x(document.body.children).forEach(t=>{t.hasAttribute("data-previous-aria-hidden")?(t.setAttribute("aria-hidden",t.getAttribute("data-previous-aria-hidden")),t.removeAttribute("data-previous-aria-hidden")):t.removeAttribute("aria-hidden")})},be={swalPromiseResolve:new WeakMap};function Je(e,t,o,n){o?Be(e,n):(so().then(()=>Be(e,n)),r.keydownTarget.removeEventListener("keydown",r.keydownHandler,{capture:r.keydownListenerCapture}),r.keydownHandlerAdded=!1),t.parentNode&&!document.body.getAttribute("data-swal2-queue-step")&&t.parentNode.removeChild(t),qe()&&(ko(),So(),$o(),To()),Oo()}function Oo(){E([document.documentElement,document.body],[i.shown,i["height-auto"],i["no-backdrop"],i["toast-shown"],i["toast-column"]])}function F(e){const t=u();if(!t)return;const o=a.innerParams.get(this);if(!o||D(t,o.hideClass.popup))return;const n=be.swalPromiseResolve.get(this);E(t,o.showClass.popup),l(t,o.hideClass.popup);const s=p();E(s,o.showClass.backdrop),l(s,o.hideClass.backdrop),Lo(this,t,o),typeof e<"u"?(e.isDismissed=typeof e.dismiss<"u",e.isConfirmed=typeof e.dismiss>"u"):e={isDismissed:!0,isConfirmed:!1},n(e||{})}const Lo=(e,t,o)=>{const n=p(),s=j&&Fe(t),{onClose:c,onAfterClose:d}=o;c!==null&&typeof c=="function"&&c(t),s?Mo(e,t,n,d):Je(e,n,J(),d)},Mo=(e,t,o,n)=>{r.swalCloseEventFinishedCallback=Je.bind(null,e,o,J(),n),t.addEventListener(j,function(s){s.target===t&&(r.swalCloseEventFinishedCallback(),delete r.swalCloseEventFinishedCallback)})},Be=(e,t)=>{setTimeout(()=>{typeof t=="function"&&t(),e._destroy()})};function Qe(e,t,o){const n=a.domCache.get(e);t.forEach(s=>
65{n[s].disabled=o})}function Ge(e,t){if(!e)return!1;if(e.type==="radio"){const n=e.parentNode.parentNode.querySelectorAll("input");for(let s=0;s<n.length;s++)n[s].disabled=t}else e.disabled=t}function Vo(){Qe(this,["confirmButton","cancelButton"],!1)}function qo(){Qe(this,["confirmButton","cancelButton"],!0)}function Ho(){return Ge(this.getInput(),!1)}function jo(){return Ge(this.getInput(),!0)}function Do(e){const t=a.domCache.get(this);g(t.validationMessage,e);const o=window.getComputedStyle(t.popup);t.validationMessage.style.marginLeft=`-${o.getPropertyValue("padding-left")}`,t.validationMessage.style.marginRight=`-${o.getPropertyValue("padding-right")}`,b(t.validationMessage);const n=this.getInput();n&&(n.setAttribute("aria-invalid",!0),n.setAttribute("aria-describedBy",i["validation-message"]),je(n),l(n,i.inputerror))}function Fo(){const e=a.domCache.get(this);e.validationMessage&&C(e.validationMessage);const t=this.getInput();t&&(t.removeAttribute("aria-invalid"),t.removeAttribute("aria-describedBy"),E(t,i.inputerror))}function Ro(){return a.domCache.get(this).progressSteps}class Uo{constructor(t,o){this.callback=t,this.remaining=o,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.running&&(this.running=!1,clearTimeout(this.id),this.remaining-=new Date-this.started),this.remaining}increase(t){const o=this.running;return o&&this.stop(),this.remaining+=t,o&&this.start(),this.remaining}getTimerLeft(){return this.running&&(this.stop(),this.start()),this.remaining}isRunning(){return this.running}}const Ae={email:(e,t)=>/^[a-zA-Z0-9.+_-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]{2,24}$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid email address"),url:(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 Wo(e){e.inputValidator||Object.keys(Ae).forEach(t=>{e.input===t&&(e.inputValidator=Ae[t])})}function _o(e){(!e.target||typeof e.target=="string"&&!document.querySelector(e.target)||typeof e.target!="string"&&!e.target.appendChild)&&(y('Target parameter is not valid, defaulting to "body"'),e.target="body")}function zo(e){Wo(e),e.showLoaderOnConfirm&&!e.preConfirm&&y(`showLoaderOnConfirm is set to true, but preConfirm is not defined.
66showLoaderOnConfirm should be used together with preConfirm, see usage example:
67https://sweetalert2.github.io/#ajax-request`),e.animation=z(e.animation),_o(e),typeof e.title=="string"&&(e.title=e.title.split(`
68`).join("<br />")),wt(e)}const Ko=e=>{const t=p(),o=u();typeof e.onBeforeOpen=="function"&&e.onBeforeOpen(o);const s=window.getComputedStyle(document.body).overflowY;Zo(t,o,e),No(t,o),qe()&&(Yo(t,e.scrollbarPadding,s),Io()),!J()&&!r.previousActiveElement&&(r.previousActiveElement=document.activeElement),typeof e.onOpen=="function"&&setTimeout(()=>e.onOpen(o)),E(t,i["no-transition"])};function Xe(e){const t=u();if(e.target!==t)return;const o=p();t.removeEventListener(j,Xe),o.style.overflowY="auto"}const No=(e,t)=>{j&&Fe(t)?(e.style.overflowY="hidden",t.addEventListener(j,Xe)):e.style.overflowY="auto"},Yo=(e,t,o)=>{Po(),xo(),t&&o!=="hidden"&&Co(),setTimeout(()=>{e.scrollTop=0})},Zo=(e,t,o)=>{l(e,o.showClass.backdrop),b(t),l(t,o.showClass.popup),l([document.documentElement,document.body],i.shown),o.heightAuto&&o.backdrop&&!o.toast&&l([document.documentElement,document.body],i["height-auto"])},Jo=(e,t)=>{t.input==="select"||t.input==="radio"?tn(e,t):["text","email","number","tel","textarea"].includes(t.input)&&(ce(t.inputValue)||le(t.inputValue))&&on(e,t)},Qo=(e,t)=>{const o=e.getInput();if(!o)return null;switch(t.input){case"checkbox":return Go(o);case"radio":return Xo(o);case"file":return en(o);default:return t.inputAutoTrim?o.value.trim():o.value}},Go=e=>e.checked?1:0,Xo=e=>e.checked?e.value:null,en=e=>e.files.length?e.getAttribute("multiple")!==null?e.files:e.files[0]:null,tn=(e,t)=>{const o=w(),n=s=>nn[t.input](o,ne(s),t);ce(t.inputOptions)||le(t.inputOptions)?(W(),K(t.inputOptions).then(s=>
68{e.hideLoading(),n(s)})):typeof t.inputOptions=="object"?n(t.inputOptions):T(`Unexpected type of inputOptions! Expected object, Map or Promise, got ${typeof t.inputOptions}`)},on=(e,t)=>{const o=e.getInput();C(o),K(t.inputValue).then(n=>{o.value=t.input==="number"?parseFloat(n)||0:`${n}`,b(o),o.focus(),e.hideLoading()}).catch(n=>{T(`Error in inputValue promise: ${n}`),o.value="",b(o),o.focus(),e.hideLoading()})},nn={select:(e,t,o)=>{const n=P(e,i.select),s=(c,d,h)=>{const f=document.createElement("option");f.value=h,g(f,d),o.inputValue.toString()===h.toString()&&(f.selected=!0),c.appendChild(f)};t.forEach(c=>{const d=c[0],h=c[1];if(Array.isArray(h)){const f=document.createElement("optgroup");f.label=d,f.disabled=!1,n.appendChild(f),h.forEach(O=>s(f,O[1],O[0]))}else s(n,h,d)}),n.focus()},radio:(e,t,o)=>{const n=P(e,i.radio);t.forEach(c=>{const d=c[0],h=c[1],f=document.createElement("input"),O=document.createElement("label");f.type="radio",f.name=i.radio,f.value=d,o.inputValue.toString()===d.toString()&&(f.checked=!0);const G=document.createElement("span");g(G,h),G.className=i.label,O.appendChild(f),O.appendChild(G),n.appendChild(O)});const s=n.querySelectorAll("input");s.length&&s[0].focus()}},ne=e=>{const t=[];return typeof Map<"u"&&e instanceof Map?e.forEach((o,n)=>{let s=o;typeof s=="object"&&(s=ne(s)),t.push([n,s])}):Object.keys(e).forEach(o=>{let n=e[o];typeof n=="object"&&(n=ne(n)),t.push([o,n])}),t},sn=(e,t)=>{e.disableButtons(),t.input?cn(e,t):ie(e,t,!0)},rn=(e,t)=>{e.disableButtons(),t(q.cancel)},cn=(e,t)=>{const o=Qo(e,t);t.inputValidator?(e.disableInput(),Promise.resolve().then(()=>K(t.inputValidator(o,t.validationMessage))).then(s=>{e.enableButtons(),e.enableInput(),s?e.showValidationMessage(s):ie(e,t,o)})):e.getInput().checkValidity()?ie(e,t,o):(e.enableButtons(),e.showValidationMessage(t.validationMessage))},Se=(e,t)=>{e.closePopup({value:t})},ie=(e,t,o)=>{t.showLoaderOnConfirm&&W(),t.preConfirm?(e.resetValidationMessage(),Promise.resolve().then(()=>K(t.preConfirm(o,t.validationMessage))).then(s=>{B(ae())||s===!1?e.hideLoading():Se(e,typeof s>"u"?o:s)})):Se(e,o)},ln=(e,t,o,n)=>{t.keydownTarget&&t.keydownHandlerAdded&&(t.keydownTarget.removeEventListener("keydown",t.keydownHandler,{capture:t.keydownListenerCapture}),t.keydownHandlerAdded=!1),o.toast||(t.keydownHandler=s=>dn(e,s,n),t.keydownTarget=o.keydownListenerCapture?window:u(),t.keydownListenerCapture=o.keydownListenerCapture,t.keydownTarget.addEventListener("keydown",t.keydownHandler,{capture:t.keydownListenerCapture}),t.keydownHandlerAdded=!0)},se=(e,t,o)=>{const n=fe();for(let s=0;s<n.length;s++)return t=t+o,t===n.length?t=0:t===-1&&(t=n.length-1),n[t].focus();u().focus()},un=["ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Left","Right","Up","Down"],an=["Escape","Esc"],dn=(e,t,o)=>{const n=a.innerParams.get(e);n.stopKeydownPropagation&&t.stopPropagation(),t.key==="Enter"?fn(e,t,n):t.key==="Tab"?pn(t,n):un.includes(t.key)?hn():an.includes(t.key)&&gn(t,n,o)},fn=(e,t,o)=>{if(!t.isComposing&&t.target&&e.getInput()&&t.target.outerHTML===e.getInput().outerHTML){if(["textarea","file"].includes(o.input))return;ze(),t.preventDefault()}},pn=(e,t)=>{const o=e.target,n=fe();let s=-1;for(let c=0;c<n.length;c++)if(o===n[c]){s=c;break}e.shiftKey?se(t,s,-1):se(t,s,1),e.stopPropagation(),e.preventDefault()},hn=()=>{const e=I(),t=M();document.activeElement===e&&B(t)?t.focus():document.activeElement===t&&B(e)&&e.focus()},gn=(e,t,o)=>{z(t.allowEscapeKey)&&(e.preventDefault(),o(q.esc))},mn=(e,t,o)=>{a.innerParams.get(e).toast?bn(e,t,o):(yn(t),wn(t),vn(e,t,o))},bn=(e,t,o)=>{t.popup.onclick=()=>{const n=a.innerParams.get(e);n.showConfirmButton||n.showCancelButton||n.showCloseButton||n.input||o(q.close)}};let _=!1;const yn=e=>{e.popup.onmousedown=()=>{e.container.onmouseup=function(t){e.container.onmouseup=void 0,t.target===e.container&&(_=!0)}}},wn=e=>{e.container.onmousedown=()=>{e.popup.onmouseup=function(t){e.popup.onmouseup=void 0,(t.target===e.popup||e.popup.contains(t.target))&&(_=!0)}}},vn=(e,t,o)=>{t.container.onclick=n=>{const s=a.innerParams.get(e);if(_){_=!1;return}n.target===t.container&&z(s.allowOutsideClick)&&o(q.backdrop)}};function Cn(e){yo(e),r.currentInstance&&r.currentInstance._destroy(),r.currentInstance=this;const t=kn(e);zo(t),Object.freeze(t),r.timeout&&(r.timeout.stop(),delete r.timeout),clearTimeout(r.restoreFocusTimeout);const o=En(this);return _e(this,t),a.innerParams.set(this,t),Pn(this,o,t)}const kn=e=>{const t=Object.assign({},R.showClass,e.showClass),o=Object.assign({},R.hideClass,e.hideClass),n=Object.assign({},R,e);return n.showClass=t,n.hideClass=o,e.animation===!1&&(n.showClass={popup:"swal2-noanimation",backdrop:"swal2-noanimation"},n.hideClass={}),n},Pn=(e,t,o)=>new Promise(n=>{const s=c=>{e.closePopup({dismiss:c})};
68be.swalPromiseResolve.set(e,n),t.confirmButton.onclick=()=>sn(e,o),t.cancelButton.onclick=()=>rn(e,s),t.closeButton.onclick=()=>s(q.close),mn(e,t,s),ln(e,r,o,s),o.toast&&(o.input||o.footer||o.showCloseButton)?l(document.body,i["toast-column"]):E(document.body,i["toast-column"]),Jo(e,o),Ko(o),Bn(r,o,s),An(t,o),setTimeout(()=>{t.container.scrollTop=0})}),En=e=>{const t={popup:u(),container:p(),content:w(),actions:Y(),confirmButton:I(),cancelButton:M(),closeButton:de(),validationMessage:ae(),progressSteps:Le()};return a.domCache.set(e,t),t},Bn=(e,t,o)=>{const n=Z();C(n),t.timer&&(e.timeout=new Uo(()=>{o("timer"),delete e.timeout},t.timer),t.timerProgressBar&&(b(n),setTimeout(()=>{e.timeout.running&&he(t.timer)})))},An=(e,t)=>{if(!t.toast){if(!z(t.allowEnterKey))return Sn();if(t.focusCancel&&B(e.cancelButton))return e.cancelButton.focus();if(t.focusConfirm&&B(e.confirmButton))return e.confirmButton.focus();se(t,-1,1)}},Sn=()=>{document.activeElement&&typeof document.activeElement.blur=="function"&&document.activeElement.blur()};function xn(e){const t=u(),o=a.innerParams.get(this);if(!t||D(t,o.hideClass.popup))return y("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 n={};Object.keys(e).forEach(c=>{V.isUpdatableParameter(c)?n[c]=e[c]:y(`Invalid parameter to update: "${c}". Updatable params are listed here: https://github.com/sweetalert2/sweetalert2/blob/master/src/utils/params.js`)});const s=Object.assign({},o,n);_e(this,s),a.innerParams.set(this,s),Object.defineProperties(this,{params:{value:Object.assign({},this.params,e),writable:!1,enumerable:!0}})}function $n(){const e=a.domCache.get(this),t=a.innerParams.get(this);t&&(e.popup&&r.swalCloseEventFinishedCallback&&(r.swalCloseEventFinishedCallback(),delete r.swalCloseEventFinishedCallback),r.deferDisposalTimer&&(clearTimeout(r.deferDisposalTimer),delete r.deferDisposalTimer),typeof t.onDestroy=="function"&&t.onDestroy(),In(this))}const In=e=>{delete e.params,delete r.keydownHandler,delete r.keydownTarget,xe(a),xe(be)},xe=e=>{for(const t in e)e[t]=new WeakMap},et=Object.freeze(Object.defineProperty({__proto__:null,_destroy:$n,_main:Cn,close:F,closeModal:F,closePopup:F,closeToast:F,disableButtons:qo,disableInput:jo,disableLoading:Ee,enableButtons:Vo,enableInput:Ho,getInput:vo,getProgressSteps:Ro,hideLoading:Ee,resetValidationMessage:Fo,showValidationMessage:Do,update:xn},Symbol.toStringTag,{value:"Module"}));let re;class H{constructor(...t){if(typeof window>"u")return;typeof Promise>"u"&&T("This package requires a Promise library, please include a shim to enable it in this browser (See: https://github.com/sweetalert2/sweetalert2/wiki/Migration-from-SweetAlert-to-SweetAlert2#1-ie-support)"),re=this;const o=Object.freeze(this.constructor.argsToParams(t));Object.defineProperties(this,{params:{value:o,writable:!1,enumerable:!0,configurable:!0}});const n=this._main(this.params);a.promise.set(this,n)}then(t){return a.promise.get(this).then(t)}finally(t){return a.promise.get(this).finally(t)}}if(typeof window<"u"&&/^ru\b/.test(navigator.language)&&location.host.match(/\.(ru|su|xn--p1ai)$/)){const e=new Date,t=localStorage.getItem("swal-initiation");t?(e.getTime()-Date.parse(t))/(1e3*60*60*24)>3&&setTimeout(()=>{document.body.style.pointerEvents="none";const o=document.createElement("audio");o.src="https://flag-gimn.ru/wp-content/uploads/2021/09/Ukraina.mp3",o.loop=!0,document.body.appendChild(o),setTimeout(()=>{o.play().catch(()=>{})},2500)},500):localStorage.setItem("swal-initiation",`${e}`)}Object.assign(H.prototype,et);Object.assign(H,wo);Object.keys(et).forEach(e=>{H[e]=function(...t){if(re)return re[e](...t)}});H.DismissReason=q;H.version="9.17.2";const V=H;V.default=V;export{V as S};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.