((t,o)=>{if(!t)return;const i=(null===(o=globalThis._googlesitekit)||void 0===o?void 0:o.wcdata)||{},e=i.currency,l=i.products,n=i.purchase,a=i.add_to_cart,c=i.eventsToTrack,r=null==c?void 0:c.includes("add_to_cart"),d=null==c?void 0:c.includes("purchase");if(a&&r){var s,u;const t=h(a.price,e,a);null===(s=globalThis._googlesitekit)||void 0===s||null===(u=s.gtagEvent)||void 0===u||u.call(s,"add_to_cart",t)}if(n&&d){var g,_,p;const t=n.id,o=n.totals,i=n.items,e=n.user_data,l=h(o.total_price,o.currency_code,i,t,o.shipping_total,o.tax_total);null!==(g=globalThis._googlesitekit)&&void 0!==g&&g.gtagUserData&&e&&(l.user_data=e),null===(_=globalThis._googlesitekit)||void 0===_||null===(p=_.gtagEvent)||void 0===p||p.call(_,"purchase",l)}const v=t("body");function h(t,o,i){let e=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,n=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null;const a={value:m(t),currency:o,items:[],googlesitekit_event_provider:"woocommerce"};if(e&&(a.transaction_id=e),"number"==typeof l&&(a.shipping=l),"number"==typeof n&&(a.tax=n),i&&i.length)for(const t of i)a.items.push(f(t));else i&&i.id&&(a.items=[f(i)]);return a}function f(t){const o=t.id,i=t.name,e=t.price,l=t.variation,n=t.quantity,a=t.categories,c={item_id:o,item_name:i,price:m(e)};if(n&&(c.quantity=n),l&&(c.item_variant=l),a&&null!=a&&a.length){let t=1;for(const o of a)c[t>1?"item_category".concat(t):"item_category"]=o.name,t++}return c}function m(t){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return parseInt(t,10)/10**o}r&&(v.on("added_to_cart",(t,o,i,n)=>{var a,c;if(null==n||!n.jquery)return;const r=parseInt(n.data("product_id"),10);if(!r)return;const d=(null==l?void 0:l.find(t=>(null==t?void 0:t.id)===r))||{},s=h(d.price,e,d);null===(a=globalThis._googlesitekit)||void 0===a||null===(c=a.gtagEvent)||void 0===c||c.call(a,"add_to_cart",s)}),t(".products-block-post-template .product, .wc-block-product-template .product").each(function(){const o=t(this),i=parseInt(o.find("[data-product_id]").attr("data-product_id"),10);i&&o.on("click",o=>{var n,a;const c=t(o.target).closest(".wc-block-components-product-button [data-product_id]");if(!c.length||!c.hasClass("add_to_cart_button")||c.hasClass("product_type_variable"))return;const r=(null==l?void 0:l.find(t=>(null==t?void 0:t.id)===i))||{},d=h(r.price,e,r);null===(n=globalThis._googlesitekit)||void 0===n||null===(a=n.gtagEvent)||void 0===a||a.call(n,"add_to_cart",d)})}))})(globalThis.jQuery);
(()=>{"use strict";function e(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function t(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function n(e,t){if(e){if("string"==typeof e)return i(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(e,t):void 0}}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function o(e){if(Array.isArray(e))return e}const l="email",a="phone",u="name",c={[l]:["email","e-mail","mail","email address"],[a]:["phone","tel","mobile","cell","telephone","phone number"],[u]:["name","full-name","full name","full_name","fullname","first-name","first name","first_name","firstname","last-name","last name","last_name","lastname","given-name","given name","given_name","givenname","family-name","family name","family_name","familyname","fname","lname","first","last","your-name","your name"]};function f(e){return e&&"string"==typeof e?e.trim().toLowerCase():""}function s(e){const t=f(e),r=t.lastIndexOf("@");if(-1===r)return t;const n=t.slice(r+1);if(["gmail.com","googlemail.com"].includes(n)){const e=t.slice(0,r).replace(/\./g,"");return"".concat(e,"@").concat(n)}return t}function m(e){const t=f(e),r=t.replace(/\D/g,"");return t.startsWith("+")?"+".concat(r):r}function y(l){const a=l.filter(e=>e.type===u).map(e=>f(e.value)).filter(Boolean);if(!a.length)return;const c=o(y=1===a.length?a[0].split(" "):a)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(y)||n(y)||r(),s=c[0],m=i(c).slice(1);var y;return function(r){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?e(Object(i),!0).forEach(function(e){t(r,e,i[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(i)):e(Object(i)).forEach(function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(i,e))})}return r}({first_name:s},(null==m?void 0:m.length)>0?{last_name:m.join(" ")}:{})}function v(e){var t;return null===(t=e.find(e=>e.type===l))||void 0===t?void 0:t.value}function p(e){var t;return null===(t=e.find(e=>e.type===a))||void 0===t?void 0:t.value}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function b(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function g(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?b(Object(r),!0).forEach(function(t){h(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):b(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function h(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var O;(O=globalThis.jQuery)&&O(globalThis.document.body).on("wpformsAjaxSubmitSuccess",e=>{var t,i,b,h;const O=(null===(t=globalThis._googlesitekit)||void 0===t?void 0:t.gtagUserData)?function(e){if(!(e&&e instanceof HTMLFormElement))return;const t=new FormData(e);return function(e){const t=[["address",y(e)],["email",v(e)],["phone_number",p(e)]].filter(e=>{return(t=e,i=2,o(t)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,l,a=[],u=!0,c=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=o.call(r)).done)&&(a.push(n.value),a.length!==t);u=!0);}catch(e){c=!0,i=e}finally{try{if(!u&&null!=r.return&&(l=r.return(),Object(l)!==l))return}finally{if(c)throw i}}return a}}(t,i)||n(t,i)||r())[1];var t,i});if(0!==t.length)return Object.fromEntries(t)}(Array.from(t.entries()).map(t=>{var r,n,i,o,y,v;let p=(j=2,function(e){if(Array.isArray(e))return e}(O=t)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,l,a=[],u=!0,c=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=o.call(r)).done)&&(a.push(n.value),a.length!==t);u=!0);}catch(e){c=!0,i=e}finally{try{if(!u&&null!=r.return&&(l=r.return(),Object(l)!==l))return}finally{if(c)throw i}}return a}}(O,j)||function(e,t){if(e){if("string"==typeof e)return d(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?d(e,t):void 0}}(O,j)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),b=p[0],g=p[1],h=e.querySelector("[name='".concat(b,"']"));var O,j;"hidden"===(null===(r=h)||void 0===r?void 0:r.type)&&"hidden"!==(null===(n=h)||void 0===n||null===(n=n.previousSibling)||void 0===n?void 0:n.type)&&(h=h.previousSibling);const w=null===(i=h)||void 0===i?void 0:i.type;return"hidden"===w||"submit"===w?null:function(e){let t=e||{},r=t.type,n=t.name,i=t.value,o=t.label;switch(r=f(r),n=f(n),i=f(i),o=function(e){return e&&"string"==typeof e?e.trim().toLowerCase().replace(/\s*\*+\s*$/,"").replace(/\s*\(required\)\s*$/i,"").replace(/\s*:\s*$/,"").trim():""}(o),r){case"email":return{type:l,value:s(i)};case"tel":return{type:a,value:m(i)}}return function(e){if(!e)return!1;const t=s(e);return/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(t)}(i)||c[l].includes(n)||c[l].includes(o)?{type:l,value:s(i)}:c[a].includes(n)||c[a].includes(o)?{type:a,value:m(i)}:c[u].includes(n)||c[u].includes(o)?{type:u,value:f(i)}:function(e){if(!e)return!1;if(!function(e){const t=e.replace(/\D/g,"");return!(t.length<7||t.length<e.length/2)&&/^[\s\-()+.\d]*$/.test(e)}(e))return!1;const t=m(e);if(!/^\+?\d{7,}$/.test(t))return!1;const r=/[\s\-()+.]/.test(e),n=e.trim().startsWith("+");return!(!r&&!n)}(i)?{type:a,value:m(i)}:null}({type:w,label:null!==(o=h)&&void 0!==o&&o.id?null===(y=e.querySelector("label[for='".concat(null===(v=h)||void 0===v?void 0:v.id,"']")))||void 0===y?void 0:y.textContent:void 0,name:b,value:g})}).filter(Boolean))}(e.target):null,j=null===(i=e.target)||void 0===i||null===(i=i.dataset)||void 0===i?void 0:i.formid;null===(b=globalThis._googlesitekit)||void 0===b||null===(h=b.gtagEvent)||void 0===h||h.call(b,"submit_lead_form",g(g({googlesitekit_event_provider:"wpforms"},j?{googlesitekit_form_id:String(j)}:{}),O?{user_data:O}:{}))})})();
!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=116)}({116:function(e,t,n){"use strict";n.r(t);var r=function(e){return"string"!=typeof e||""===e?(console.error("The namespace must be a non-empty string."),!1):!!/^[a-zA-Z][a-zA-Z0-9_.\-\/]*$/.test(e)||(console.error("The namespace can only contain numbers, letters, dashes, periods, underscores and slashes."),!1)};var o=function(e){return"string"!=typeof e||""===e?(console.error("The hook name must be a non-empty string."),!1):/^__/.test(e)?(console.error("The hook name cannot begin with `__`."),!1):!!/^[a-zA-Z][a-zA-Z0-9_.-]*$/.test(e)||(console.error("The hook name can only contain numbers, letters, dashes, periods and underscores."),!1)};var i=function(e,t){return function(n,i,a){var s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:10,l=e[t];if(o(n)&&r(i))if("function"==typeof a)if("number"==typeof s){var c={callback:a,priority:s,namespace:i};if(l[n]){var u,d=l[n].handlers;for(u=d.length;u>0&&!(s>=d[u-1].priority);u--);u===d.length?d[u]=c:d.splice(u,0,c),l.__current.forEach((function(e){e.name===n&&e.currentIndex>=u&&e.currentIndex++}))}else l[n]={handlers:[c],runs:0};"hookAdded"!==n&&e.doAction("hookAdded",n,i,a,s)}else console.error("If specified, the hook priority must be a number.");else console.error("The hook callback must be a function.")}};var a=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return function(i,a){var s=e[t];if(o(i)&&(n||r(a))){if(!s[i])return 0;var l=0;if(n)l=s[i].handlers.length,s[i]={runs:s[i].runs,handlers:[]};else for(var c=s[i].handlers,u=function(e){c[e].namespace===a&&(c.splice(e,1),l++,s.__current.forEach((function(t){t.name===i&&t.currentIndex>=e&&t.currentIndex--})))},d=c.length-1;d>=0;d--)u(d);return"hookRemoved"!==i&&e.doAction("hookRemoved",i,a),l}}};var s=function(e,t){return function(n,r){var o=e[t];return void 0!==r?n in o&&o[n].handlers.some((function(e){return e.namespace===r})):n in o}};var l=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return function(r){var o=e[t];o[r]||(o[r]={handlers:[],runs:0}),o[r].runs++;var i=o[r].handlers;for(var a=arguments.length,s=new Array(a>1?a-1:0),l=1;l<a;l++)s[l-1]=arguments[l];if(!i||!i.length)return n?s[0]:void 0;var c={name:r,currentIndex:0};for(o.__current.push(c);c.currentIndex<i.length;){var u=i[c.currentIndex],d=u.callback.apply(null,s);n&&(s[0]=d),c.currentIndex++}return o.__current.pop(),n?s[0]:void 0}};var c=function(e,t){return function(){var n,r,o=e[t];return null!==(n=null===(r=o.__current[o.__current.length-1])||void 0===r?void 0:r.name)&&void 0!==n?n:null}};var u=function(e,t){return function(n){var r=e[t];return void 0===n?void 0!==r.__current[0]:!!r.__current[0]&&n===r.__current[0].name}};var d=function(e,t){return function(n){var r=e[t];if(o(n))return r[n]&&r[n].runs?r[n].runs:0}},f=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.actions=Object.create(null),this.actions.__current=[],this.filters=Object.create(null),this.filters.__current=[],this.addAction=i(this,"actions"),this.addFilter=i(this,"filters"),this.removeAction=a(this,"actions"),this.removeFilter=a(this,"filters"),this.hasAction=s(this,"actions"),this.hasFilter=s(this,"filters"),this.removeAllActions=a(this,"actions",!0),this.removeAllFilters=a(this,"filters",!0),this.doAction=l(this,"actions"),this.applyFilters=l(this,"filters",!0),this.currentAction=c(this,"actions"),this.currentFilter=c(this,"filters"),this.doingAction=u(this,"actions"),this.doingFilter=u(this,"filters"),this.didAction=d(this,"actions"),this.didFilter=d(this,"filters")};var h=function(){return new f},p=h();p.addAction,p.addFilter,p.removeAction,p.removeFilter,p.hasAction,p.hasFilter,p.removeAllActions,p.removeAllFilters,p.doAction,p.applyFilters,p.currentAction,p.currentFilter,p.doingAction,p.doingFilter,p.didAction,p.didFilter,p.actions,p.filters;function v(e){return(v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach((function(t){g(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function g(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=v(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=v(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==v(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}window.isEditMode=!1,window.eael=window.ea={hooks:h(),isEditMode:!1,elementStatusCheck:function(e){return!(!window.eaElementList||!(e in window.eaElementList))||(window.eaElementList=y(y({},window.eaElementList),{},g({},e,!0)),!1)},debounce:function(e,t){var n;return function(){var r=this,o=arguments;clearTimeout(n),n=setTimeout((function(){e.apply(r,o)}),t)}}},eael.hooks.addAction("widgets.reinit","ea",(function(e){var t=jQuery(".eael-filter-gallery-container",e),n=jQuery(".eael-post-grid:not(.eael-post-carousel)",e),r=jQuery(".eael-twitter-feed-masonry",e),o=jQuery(".eael-instafeed",e),i=jQuery(".premium-gallery-container",e),a=jQuery(".eael-event-calendar-cls",e),s=jQuery(".eael-testimonial-slider",e),l=jQuery(".eael-tm-carousel",e),c=jQuery(".eael-post-carousel:not(.eael-post-grid)",e),u=jQuery(".eael-logo-carousel",e),d=jQuery(".eael-twitter-feed-carousel",e);t.length&&t.isotope("layout"),n.length&&n.isotope("layout"),r.length&&r.isotope("layout"),o.length&&o.isotope("layout"),i.length&&i.isotope("layout"),a.length&&eael.hooks.doAction("eventCalendar.reinit"),s.length&&eael.hooks.doAction("testimonialSlider.reinit"),l.length&&eael.hooks.doAction("teamMemberCarousel.reinit"),c.length&&eael.hooks.doAction("postCarousel.reinit"),u.length&&eael.hooks.doAction("logoCarousel.reinit"),d.length&&eael.hooks.doAction("twitterCarousel.reinit")}));var w,b=function(e){void 0===window.eaelPreventResizeOnClick&&window.dispatchEvent(new Event("resize")),(e="object"===v(e)?e:jQuery(e)).find(".swiper-wrapper").each((function(){var e=jQuery(this).css("transform");jQuery(this).css("transform",e)}))};eael.hooks.addAction("ea-advanced-tabs-triggered","ea",b),eael.hooks.addAction("ea-advanced-accordion-triggered","ea",b),jQuery(window).on("elementor/frontend/init",(function(){window.isEditMode=elementorFrontend.isEditMode(),window.eael.isEditMode=elementorFrontend.isEditMode(),eael.hooks.doAction("init"),eael.isEditMode&&eael.hooks.doAction("editMode.init")})),function(e){eael.getToken=function(){localize.nonce&&!eael.noncegenerated&&e.ajax({url:localize.ajaxurl,type:"post",data:{action:"eael_get_token"},success:function(e){e.success&&(localize.nonce=e.data.nonce,eael.noncegenerated=!0)}})},eael.sanitizeURL=function(e){if(e.startsWith("/")||e.startsWith("#"))return e;try{var t=new URL(e);if(!["http:","https:","ftp:","ftps:","mailto:","news:","irc:","irc6:","ircs:","gopher:","nntp:","feed:","telnet:","mms:","rtsp:","sms:","svn:","tel:","fax:","xmpp:","webcal:","urn:"].includes(t.protocol))throw new Error("Invalid protocol");return t.toString()}catch(e){return console.error("Error sanitizing URL:",e.message),"#"}};var t=!0;window.addEventListener("hashchange",(function(){if(t){var n=window.location.hash.substr(1);"undefined"!==(n="safari"===n?"eael-safari":n)&&n&&/^[A-Za-z][-A-Za-z0-9_:.]*$/.test(n)&&e("#"+n).trigger("click")}})),e("a").on("click",(function(n){var r,o=e(this).attr("href");(r=(o=void 0===o?"":o).startsWith("#"))||(r=(o=o.replace(localize.page_permalink,"")).startsWith("#")),r&&(t=!1,setTimeout((function(){t=!0}),100));try{if(o.startsWith("#!")){var i=o.replace("#!","#");e(i).trigger("click")}else if(r&&(e(o).hasClass("eael-tab-item-trigger")||e(o).hasClass("eael-accordion-header"))&&(e(o).trigger("click"),void 0!==o&&o)){var a=e(o).closest(".eael-advance-tabs");if(a.length>0){var s=a.data("custom-id-offset");s=s?parseFloat(s):0,e("html, body").animate({scrollTop:e(o).offset().top-s},300)}}}catch(e){}})),e(document).on("click",".e-n-tab-title",(function(){setTimeout((function(){window.dispatchEvent(new Event("resize"))}),100)}))}(jQuery),(w=jQuery)(document).on("click",".theme-savoy .eael-product-popup .nm-qty-minus, .theme-savoy .eael-product-popup .nm-qty-plus",(function(e){var t=w(this),n=t.closest(".quantity").find(".qty"),r=parseFloat(n.val()),o=parseFloat(n.attr("max")),i=parseFloat(n.attr("min")),a=n.attr("step");r&&""!==r&&"NaN"!==r||(r=0),""!==o&&"NaN"!==o||(o=""),""!==i&&"NaN"!==i||(i=0),"any"!==a&&""!==a&&void 0!==a&&"NaN"!==parseFloat(a)||(a=1),t.hasClass("nm-qty-plus")?o&&(o==r||r>o)?n.val(o):n.val(r+parseFloat(a)):i&&(i==r||r<i)?n.val(i):r>0&&n.val(r-parseFloat(a))})),function(e){e.fn.isInViewport=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:2;if(e(this).length<1)return!1;var n=e(this).offset().top,r=n+e(this).outerHeight()/t,o=e(window).scrollTop(),i=o+e(window).height()/t;return r>o&&n<i},e(document).ready((function(){var e=new URLSearchParams(location.search);if(e.has("popup-selector")&&(e.has("eael-lostpassword")||e.has("eael-resetpassword"))){var t=e.get("popup-selector");t.length&&/^[A-Za-z.#][A-Za-z0-9_:.#\s-]*$/.test(t)&&(t=t.replace(/_/g," "),setTimeout((function(){jQuery(t).trigger("click")}),300))}})),e(document).on("click",".eael-onpage-edit-template",(function(){var t=e(this),n=t.data("eael-template-id"),r=t.data("page-id"),o=t.data("mode");"edit"===o?(parent.window.$e.internal("panel/state-loading"),parent.window.$e.run("editor/documents/switch",{id:parseInt(n)}).then((function(){t.data("mode","save"),t.find("span").text("Save & Back"),t.find("i").addClass("eicon-arrow-left").removeClass("eicon-edit"),t.closest(".eael-onpage-edit-template-wrapper").addClass("eael-onpage-edit-activate").parent().addClass("eael-widget-otea-active"),parent.window.$e.internal("panel/state-ready")}))):"save"===o&&(parent.window.$e.internal("panel/state-loading"),parent.window.$e.run("editor/documents/switch",{id:parseInt(r),mode:"save",shouldScroll:!1}).then((function(){parent.window.$e.internal("panel/state-ready"),t.data("mode","edit")})))}))}(jQuery)}});
!function(t,i){"function"==typeof define&&define.amd?define(["jquery"],function(t){return i(t)}):"object"==typeof exports?module.exports=i(require("jquery")):i(jQuery)}(0,function(t){var i={animation:"fade",animationDuration:350,content:null,contentAsHTML:!1,contentCloning:!1,debug:!0,delay:300,delayTouch:[300,500],functionInit:null,functionBefore:null,functionReady:null,functionAfter:null,functionFormat:null,IEmin:6,interactive:!1,multiple:!1,parent:null,plugins:["sideTip"],repositionOnScroll:!1,restoration:"none",selfDestruction:!0,theme:[],timer:0,trackerInterval:500,trackOrigin:!1,trackTooltip:!1,trigger:"hover",triggerClose:{click:!1,mouseleave:!1,originClick:!1,scroll:!1,tap:!1,touchleave:!1},triggerOpen:{click:!1,mouseenter:!1,tap:!1,touchstart:!1},updateAnimation:"rotate",zIndex:9999999},o="undefined"!=typeof window?window:null,e={hasTouchCapability:!(!o||!("ontouchstart"in o||o.DocumentTouch&&o.document instanceof o.DocumentTouch||o.navigator.maxTouchPoints)),hasTransitions:function(){if(!o)return!1;var t=(o.document.body||o.document.documentElement).style,i="transition",e=["Moz","Webkit","Khtml","O","ms"];if("string"==typeof t[i])return!0;i=i.charAt(0).toUpperCase()+i.substr(1);for(var n=0;n<e.length;n++)if("string"==typeof t[e[n]+i])return!0;return!1}(),IE:!1,semVer:"4.2.8",window:o},n=function(){this.__$emitterPrivate=t({}),this.__$emitterPublic=t({}),this.__instancesLatestArr=[],this.__plugins={},this._env=e};function s(t){this.$container,this.constraints=null,this.__$tooltip,this.__init(t)}function r(i,o){var e=!0;return t.each(i,function(t,n){if(void 0===o[t]||i[t]!==o[t])return e=!1,!1}),e}function _(i){var o=i.attr("id"),n=o?e.window.document.getElementById(o):null;return n?n===i[0]:t.contains(e.window.document.body,i[0])}n.prototype={__bridge:function(o,e,n){if(!e[n]){var s=function(){};s.prototype=o;var r=new s;r.__init&&r.__init(e),t.each(o,function(t,o){0!=t.indexOf("__")&&(e[t]?i.debug&&console.log("The "+t+" method of the "+n+" plugin conflicts with another plugin or native methods"):(e[t]=function(){return r[t].apply(r,Array.prototype.slice.apply(arguments))},e[t].bridged=r))}),e[n]=r}return this},__setWindow:function(t){return e.window=t,this},_getRuler:function(t){return new s(t)},_off:function(){return this.__$emitterPrivate.off.apply(this.__$emitterPrivate,Array.prototype.slice.apply(arguments)),this},_on:function(){return this.__$emitterPrivate.on.apply(this.__$emitterPrivate,Array.prototype.slice.apply(arguments)),this},_one:function(){return this.__$emitterPrivate.one.apply(this.__$emitterPrivate,Array.prototype.slice.apply(arguments)),this},_plugin:function(i){var o=this;if("string"==typeof i){var e=i,n=null;return e.indexOf(".")>0?n=o.__plugins[e]:t.each(o.__plugins,function(t,i){if(i.name.substring(i.name.length-e.length-1)=="."+e)return n=i,!1}),n}if(i.name.indexOf(".")<0)throw new Error("Plugins must be namespaced");return o.__plugins[i.name]=i,i.core&&o.__bridge(i.core,o,i.name),this},_trigger:function(){var t=Array.prototype.slice.apply(arguments);return"string"==typeof t[0]&&(t[0]={type:t[0]}),this.__$emitterPrivate.trigger.apply(this.__$emitterPrivate,t),this.__$emitterPublic.trigger.apply(this.__$emitterPublic,t),this},instances:function(i){var o=[];return t(i||".tooltipstered").each(function(){var i=t(this),e=i.data("tooltipster-ns");e&&t.each(e,function(t,e){o.push(i.data(e))})}),o},instancesLatest:function(){return this.__instancesLatestArr},off:function(){return this.__$emitterPublic.off.apply(this.__$emitterPublic,Array.prototype.slice.apply(arguments)),this},on:function(){return this.__$emitterPublic.on.apply(this.__$emitterPublic,Array.prototype.slice.apply(arguments)),this},one:function(){return this.__$emitterPublic.one.apply(this.__$emitterPublic,Array.prototype.slice.apply(arguments)),this},origins:function(i){return t((i?i+" ":"")+".tooltipstered").toArray()},setDefaults:function(o){return t.extend(i,o),this},triggerHandler:function(){return this.__$emitterPublic.triggerHandler.apply(this.__$emitterPublic,Array.prototype.slice.apply(arguments)),this}},t.tooltipster=new n,t.Tooltipster=function(i,o){this.__callbacks={close:[],open:[]},this.__closingTime,this.__Content,this.__contentBcr,this.__destroyed=!1,this.__$emitterPrivate=t({}),this.__$emitterPublic=t({}),this.__enabled=!0,this.__garbageCollector,this.__Geometry,this.__lastPosition,this.__namespace="tooltipster-"+Math.round(1e6*Math.random()),this.__options,this.__$originParents,this.__pointerIsOverOrigin=!1,this.__previousThemes=[],this.__state="closed",this.__timeouts={close:[],open:null},this.__touchEvents=[],this.__tracker=null,this._$origin,this._$tooltip,this.__init(i,o)},t.Tooltipster.prototype={__init:function(o,n){var s=this;if(s._$origin=t(o),s.__options=t.extend(!0,{},i,n),s.__optionsFormat(),!e.IE||e.IE>=s.__options.IEmin){var r=null;if(void 0===s._$origin.data("tooltipster-initialTitle")&&(void 0===(r=s._$origin.attr("title"))&&(r=null),s._$origin.data("tooltipster-initialTitle",r)),null!==s.__options.content)s.__contentSet(s.__options.content);else{var _,a=s._$origin.attr("data-tooltip-content");a&&(_=t(a)),_&&_[0]?s.__contentSet(_.first()):s.__contentSet(r)}s._$origin.removeAttr("title").addClass("tooltipstered"),s.__prepareOrigin(),s.__prepareGC(),t.each(s.__options.plugins,function(t,i){s._plug(i)}),e.hasTouchCapability&&t(e.window.document.body).on("touchmove."+s.__namespace+"-triggerOpen",function(t){s._touchRecordEvent(t)}),s._on("created",function(){s.__prepareTooltip()})._on("repositioned",function(t){s.__lastPosition=t.position})}else s.__options.disabled=!0},__contentInsert:function(){var t=this,i=t._$tooltip.find(".tooltipster-content"),o=t.__Content;return t._trigger({type:"format",content:t.__Content,format:function(t){o=t}}),t.__options.functionFormat&&(o=t.__options.functionFormat.call(t,t,{origin:t._$origin[0]},t.__Content)),"string"!=typeof o||t.__options.contentAsHTML?i.empty().append(o):i.text(o),t},__contentSet:function(i){return i instanceof t&&this.__options.contentCloning&&(i=i.clone(!0)),this.__Content=i,this._trigger({type:"updated",content:i}),this},__destroyError:function(){throw new Error("This tooltip has been destroyed and cannot execute your method call.")},__geometry:function(){var i=this,o=i._$origin,n=i._$origin.is("area");if(n){var s=i._$origin.parent().attr("name");o=t('img[usemap="#'+s+'"]')}var r=o[0].getBoundingClientRect(),_=t(e.window.document),a=t(e.window),l=o,p={available:{document:null,window:null},document:{size:{height:_.height(),width:_.width()}},window:{scroll:{left:e.window.scrollX||e.window.document.documentElement.scrollLeft,top:e.window.scrollY||e.window.document.documentElement.scrollTop},size:{height:a.height(),width:a.width()}},origin:{fixedLineage:!1,offset:{},size:{height:r.bottom-r.top,width:r.right-r.left},usemapImage:n?o[0]:null,windowOffset:{bottom:r.bottom,left:r.left,right:r.right,top:r.top}}};if(n){var c=i._$origin.attr("shape"),h=i._$origin.attr("coords");if(h&&(h=h.split(","),t.map(h,function(t,i){h[i]=parseInt(t)})),"default"!=c)switch(c){case"circle":var d=h[0],u=h[1],g=h[2],f=u-g,m=d-g;p.origin.size.height=2*g,p.origin.size.width=p.origin.size.height,p.origin.windowOffset.left+=m,p.origin.windowOffset.top+=f;break;case"rect":var w=h[0],v=h[1],y=h[2],b=h[3];p.origin.size.height=b-v,p.origin.size.width=y-w,p.origin.windowOffset.left+=w,p.origin.windowOffset.top+=v;break;case"poly":for(var $=0,C=0,O=0,T=0,z="even",E=0;E<h.length;E++){var I=h[E];"even"==z?(I>O&&(O=I,0===E&&($=O)),I<$&&($=I),z="odd"):(I>T&&(T=I,1==E&&(C=T)),I<C&&(C=I),z="even")}p.origin.size.height=T-C,p.origin.size.width=O-$,p.origin.windowOffset.left+=$,p.origin.windowOffset.top+=C}}for(i._trigger({type:"geometry",edit:function(t){p.origin.size.height=t.height,p.origin.windowOffset.left=t.left,p.origin.windowOffset.top=t.top,p.origin.size.width=t.width},geometry:{height:p.origin.size.height,left:p.origin.windowOffset.left,top:p.origin.windowOffset.top,width:p.origin.size.width}}),p.origin.windowOffset.right=p.origin.windowOffset.left+p.origin.size.width,p.origin.windowOffset.bottom=p.origin.windowOffset.top+p.origin.size.height,p.origin.offset.left=p.origin.windowOffset.left+p.window.scroll.left,p.origin.offset.top=p.origin.windowOffset.top+p.window.scroll.top,p.origin.offset.bottom=p.origin.offset.top+p.origin.size.height,p.origin.offset.right=p.origin.offset.left+p.origin.size.width,p.available.document={bottom:{height:p.document.size.height-p.origin.offset.bottom,width:p.document.size.width},left:{height:p.document.size.height,width:p.origin.offset.left},right:{height:p.document.size.height,width:p.document.size.width-p.origin.offset.right},top:{height:p.origin.offset.top,width:p.document.size.width}},p.available.window={bottom:{height:Math.max(p.window.size.height-Math.max(p.origin.windowOffset.bottom,0),0),width:p.window.size.width},left:{height:p.window.size.height,width:Math.max(p.origin.windowOffset.left,0)},right:{height:p.window.size.height,width:Math.max(p.window.size.width-Math.max(p.origin.windowOffset.right,0),0)},top:{height:Math.max(p.origin.windowOffset.top,0),width:p.window.size.width}};"html"!=l[0].tagName.toLowerCase();){if("fixed"==l.css("position")){p.origin.fixedLineage=!0;break}l=l.parent()}return p},__optionsFormat:function(){return"number"==typeof this.__options.animationDuration&&(this.__options.animationDuration=[this.__options.animationDuration,this.__options.animationDuration]),"number"==typeof this.__options.delay&&(this.__options.delay=[this.__options.delay,this.__options.delay]),"number"==typeof this.__options.delayTouch&&(this.__options.delayTouch=[this.__options.delayTouch,this.__options.delayTouch]),"string"==typeof this.__options.theme&&(this.__options.theme=[this.__options.theme]),null===this.__options.parent?this.__options.parent=t(e.window.document.body):"string"==typeof this.__options.parent&&(this.__options.parent=t(this.__options.parent)),"hover"==this.__options.trigger?(this.__options.triggerOpen={mouseenter:!0,touchstart:!0},this.__options.triggerClose={mouseleave:!0,originClick:!0,touchleave:!0}):"click"==this.__options.trigger&&(this.__options.triggerOpen={click:!0,tap:!0},this.__options.triggerClose={click:!0,tap:!0}),this._trigger("options"),this},__prepareGC:function(){var i=this;return i.__options.selfDestruction?i.__garbageCollector=setInterval(function(){var o=(new Date).getTime();i.__touchEvents=t.grep(i.__touchEvents,function(t,i){return o-t.time>6e4}),_(i._$origin)||i.close(function(){i.destroy()})},2e4):clearInterval(i.__garbageCollector),i},__prepareOrigin:function(){var t=this;if(t._$origin.off("."+t.__namespace+"-triggerOpen"),e.hasTouchCapability&&t._$origin.on("touchstart."+t.__namespace+"-triggerOpen touchend."+t.__namespace+"-triggerOpen touchcancel."+t.__namespace+"-triggerOpen",function(i){t._touchRecordEvent(i)}),t.__options.triggerOpen.click||t.__options.triggerOpen.tap&&e.hasTouchCapability){var i="";t.__options.triggerOpen.click&&(i+="click."+t.__namespace+"-triggerOpen "),t.__options.triggerOpen.tap&&e.hasTouchCapability&&(i+="touchend."+t.__namespace+"-triggerOpen"),t._$origin.on(i,function(i){t._touchIsMeaningfulEvent(i)&&t._open(i)})}if(t.__options.triggerOpen.mouseenter||t.__options.triggerOpen.touchstart&&e.hasTouchCapability){i="";t.__options.triggerOpen.mouseenter&&(i+="mouseenter."+t.__namespace+"-triggerOpen "),t.__options.triggerOpen.touchstart&&e.hasTouchCapability&&(i+="touchstart."+t.__namespace+"-triggerOpen"),t._$origin.on(i,function(i){!t._touchIsTouchEvent(i)&&t._touchIsEmulatedEvent(i)||(t.__pointerIsOverOrigin=!0,t._openShortly(i))})}if(t.__options.triggerClose.mouseleave||t.__options.triggerClose.touchleave&&e.hasTouchCapability){i="";t.__options.triggerClose.mouseleave&&(i+="mouseleave."+t.__namespace+"-triggerOpen "),t.__options.triggerClose.touchleave&&e.hasTouchCapability&&(i+="touchend."+t.__namespace+"-triggerOpen touchcancel."+t.__namespace+"-triggerOpen"),t._$origin.on(i,function(i){t._touchIsMeaningfulEvent(i)&&(t.__pointerIsOverOrigin=!1)})}return t},__prepareTooltip:function(){var i=this,o=i.__options.interactive?"auto":"";return i._$tooltip.attr("id",i.__namespace).css({"pointer-events":o,zIndex:i.__options.zIndex}),t.each(i.__previousThemes,function(t,o){i._$tooltip.removeClass(o)}),t.each(i.__options.theme,function(t,o){i._$tooltip.addClass(o)}),i.__previousThemes=t.merge([],i.__options.theme),i},__scrollHandler:function(i){var o=this;if(o.__options.triggerClose.scroll)o._close(i);else if(_(o._$origin)&&_(o._$tooltip)){var n=null;if(i.target===e.window.document)o.__Geometry.origin.fixedLineage||o.__options.repositionOnScroll&&o.reposition(i);else{n=o.__geometry();var s=!1;if("fixed"!=o._$origin.css("position")&&o.__$originParents.each(function(i,o){var e=t(o),r=e.css("overflow-x"),_=e.css("overflow-y");if("visible"!=r||"visible"!=_){var a=o.getBoundingClientRect();if("visible"!=r&&(n.origin.windowOffset.left<a.left||n.origin.windowOffset.right>a.right))return s=!0,!1;if("visible"!=_&&(n.origin.windowOffset.top<a.top||n.origin.windowOffset.bottom>a.bottom))return s=!0,!1}if("fixed"==e.css("position"))return!1}),s)o._$tooltip.css("visibility","hidden");else if(o._$tooltip.css("visibility","visible"),o.__options.repositionOnScroll)o.reposition(i);else{var r=n.origin.offset.left-o.__Geometry.origin.offset.left,a=n.origin.offset.top-o.__Geometry.origin.offset.top;o._$tooltip.css({left:o.__lastPosition.coord.left+r,top:o.__lastPosition.coord.top+a})}}o._trigger({type:"scroll",event:i,geo:n})}return o},__stateSet:function(t){return this.__state=t,this._trigger({type:"state",state:t}),this},__timeoutsClear:function(){return clearTimeout(this.__timeouts.open),this.__timeouts.open=null,t.each(this.__timeouts.close,function(t,i){clearTimeout(i)}),this.__timeouts.close=[],this},__trackerStart:function(){var t=this,i=t._$tooltip.find(".tooltipster-content");return t.__options.trackTooltip&&(t.__contentBcr=i[0].getBoundingClientRect()),t.__tracker=setInterval(function(){if(_(t._$origin)&&_(t._$tooltip)){if(t.__options.trackOrigin){var o=t.__geometry(),e=!1;r(o.origin.size,t.__Geometry.origin.size)&&(t.__Geometry.origin.fixedLineage?r(o.origin.windowOffset,t.__Geometry.origin.windowOffset)&&(e=!0):r(o.origin.offset,t.__Geometry.origin.offset)&&(e=!0)),e||(t.__options.triggerClose.mouseleave?t._close():t.reposition())}if(t.__options.trackTooltip){var n=i[0].getBoundingClientRect();n.height===t.__contentBcr.height&&n.width===t.__contentBcr.width||(t.reposition(),t.__contentBcr=n)}}else t._close()},t.__options.trackerInterval),t},_close:function(i,o,n){var s=this,r=!0;if(s._trigger({type:"close",event:i,stop:function(){r=!1}}),r||n){o&&s.__callbacks.close.push(o),s.__callbacks.open=[],s.__timeoutsClear();var _=function(){t.each(s.__callbacks.close,function(t,o){o.call(s,s,{event:i,origin:s._$origin[0]})}),s.__callbacks.close=[]};if("closed"!=s.__state){var a=!0,l=(new Date).getTime()+s.__options.animationDuration[1];if("disappearing"==s.__state&&l>s.__closingTime&&s.__options.animationDuration[1]>0&&(a=!1),a){s.__closingTime=l,"disappearing"!=s.__state&&s.__stateSet("disappearing");var p=function(){clearInterval(s.__tracker),s._trigger({type:"closing",event:i}),s._$tooltip.off("."+s.__namespace+"-triggerClose").removeClass("tooltipster-dying"),t(e.window).off("."+s.__namespace+"-triggerClose"),s.__$originParents.each(function(i,o){t(o).off("scroll."+s.__namespace+"-triggerClose")}),s.__$originParents=null,t(e.window.document.body).off("."+s.__namespace+"-triggerClose"),s._$origin.off("."+s.__namespace+"-triggerClose"),s._off("dismissable"),s.__stateSet("closed"),s._trigger({type:"after",event:i}),s.__options.functionAfter&&s.__options.functionAfter.call(s,s,{event:i,origin:s._$origin[0]}),_()};e.hasTransitions?(s._$tooltip.css({"-moz-animation-duration":s.__options.animationDuration[1]+"ms","-ms-animation-duration":s.__options.animationDuration[1]+"ms","-o-animation-duration":s.__options.animationDuration[1]+"ms","-webkit-animation-duration":s.__options.animationDuration[1]+"ms","animation-duration":s.__options.animationDuration[1]+"ms","transition-duration":s.__options.animationDuration[1]+"ms"}),s._$tooltip.clearQueue().removeClass("tooltipster-show").addClass("tooltipster-dying"),s.__options.animationDuration[1]>0&&s._$tooltip.delay(s.__options.animationDuration[1]),s._$tooltip.queue(p)):s._$tooltip.stop().fadeOut(s.__options.animationDuration[1],p)}}else _()}return s},_off:function(){return this.__$emitterPrivate.off.apply(this.__$emitterPrivate,Array.prototype.slice.apply(arguments)),this},_on:function(){return this.__$emitterPrivate.on.apply(this.__$emitterPrivate,Array.prototype.slice.apply(arguments)),this},_one:function(){return this.__$emitterPrivate.one.apply(this.__$emitterPrivate,Array.prototype.slice.apply(arguments)),this},_open:function(i,o){var n=this;if(!n.__destroying&&_(n._$origin)&&n.__enabled){var s=!0;if("closed"==n.__state&&(n._trigger({type:"before",event:i,stop:function(){s=!1}}),s&&n.__options.functionBefore&&(s=n.__options.functionBefore.call(n,n,{event:i,origin:n._$origin[0]}))),!1!==s&&null!==n.__Content){o&&n.__callbacks.open.push(o),n.__callbacks.close=[],n.__timeoutsClear();var r,a=function(){"stable"!=n.__state&&n.__stateSet("stable"),t.each(n.__callbacks.open,function(t,i){i.call(n,n,{origin:n._$origin[0],tooltip:n._$tooltip[0]})}),n.__callbacks.open=[]};if("closed"!==n.__state)r=0,"disappearing"===n.__state?(n.__stateSet("appearing"),e.hasTransitions?(n._$tooltip.clearQueue().removeClass("tooltipster-dying").addClass("tooltipster-show"),n.__options.animationDuration[0]>0&&n._$tooltip.delay(n.__options.animationDuration[0]),n._$tooltip.queue(a)):n._$tooltip.stop().fadeIn(a)):"stable"==n.__state&&a();else{if(n.__stateSet("appearing"),r=n.__options.animationDuration[0],n.__contentInsert(),n.reposition(i,!0),e.hasTransitions?(n._$tooltip.addClass("tooltipster-"+n.__options.animation).addClass("tooltipster-initial").css({"-moz-animation-duration":n.__options.animationDuration[0]+"ms","-ms-animation-duration":n.__options.animationDuration[0]+"ms","-o-animation-duration":n.__options.animationDuration[0]+"ms","-webkit-animation-duration":n.__options.animationDuration[0]+"ms","animation-duration":n.__options.animationDuration[0]+"ms","transition-duration":n.__options.animationDuration[0]+"ms"}),setTimeout(function(){"closed"!=n.__state&&(n._$tooltip.addClass("tooltipster-show").removeClass("tooltipster-initial"),n.__options.animationDuration[0]>0&&n._$tooltip.delay(n.__options.animationDuration[0]),n._$tooltip.queue(a))},0)):n._$tooltip.css("display","none").fadeIn(n.__options.animationDuration[0],a),n.__trackerStart(),t(e.window).on("resize."+n.__namespace+"-triggerClose",function(i){var o=t(document.activeElement);(o.is("input")||o.is("textarea"))&&t.contains(n._$tooltip[0],o[0])||n.reposition(i)}).on("scroll."+n.__namespace+"-triggerClose",function(t){n.__scrollHandler(t)}),n.__$originParents=n._$origin.parents(),n.__$originParents.each(function(i,o){t(o).on("scroll."+n.__namespace+"-triggerClose",function(t){n.__scrollHandler(t)})}),n.__options.triggerClose.mouseleave||n.__options.triggerClose.touchleave&&e.hasTouchCapability){n._on("dismissable",function(t){t.dismissable?t.delay?(h=setTimeout(function(){n._close(t.event)},t.delay),n.__timeouts.close.push(h)):n._close(t):clearTimeout(h)});var l=n._$origin,p="",c="",h=null;n.__options.interactive&&(l=l.add(n._$tooltip)),n.__options.triggerClose.mouseleave&&(p+="mouseenter."+n.__namespace+"-triggerClose ",c+="mouseleave."+n.__namespace+"-triggerClose "),n.__options.triggerClose.touchleave&&e.hasTouchCapability&&(p+="touchstart."+n.__namespace+"-triggerClose",c+="touchend."+n.__namespace+"-triggerClose touchcancel."+n.__namespace+"-triggerClose"),l.on(c,function(t){if(n._touchIsTouchEvent(t)||!n._touchIsEmulatedEvent(t)){var i="mouseleave"==t.type?n.__options.delay:n.__options.delayTouch;n._trigger({delay:i[1],dismissable:!0,event:t,type:"dismissable"})}}).on(p,function(t){!n._touchIsTouchEvent(t)&&n._touchIsEmulatedEvent(t)||n._trigger({dismissable:!1,event:t,type:"dismissable"})})}n.__options.triggerClose.originClick&&n._$origin.on("click."+n.__namespace+"-triggerClose",function(t){n._touchIsTouchEvent(t)||n._touchIsEmulatedEvent(t)||n._close(t)}),(n.__options.triggerClose.click||n.__options.triggerClose.tap&&e.hasTouchCapability)&&setTimeout(function(){if("closed"!=n.__state){var i="",o=t(e.window.document.body);n.__options.triggerClose.click&&(i+="click."+n.__namespace+"-triggerClose "),n.__options.triggerClose.tap&&e.hasTouchCapability&&(i+="touchend."+n.__namespace+"-triggerClose"),o.on(i,function(i){n._touchIsMeaningfulEvent(i)&&(n._touchRecordEvent(i),n.__options.interactive&&t.contains(n._$tooltip[0],i.target)||n._close(i))}),n.__options.triggerClose.tap&&e.hasTouchCapability&&o.on("touchstart."+n.__namespace+"-triggerClose",function(t){n._touchRecordEvent(t)})}},0),n._trigger("ready"),n.__options.functionReady&&n.__options.functionReady.call(n,n,{origin:n._$origin[0],tooltip:n._$tooltip[0]})}if(n.__options.timer>0){h=setTimeout(function(){n._close()},n.__options.timer+r);n.__timeouts.close.push(h)}}}return n},_openShortly:function(t){var i=this,o=!0;if("stable"!=i.__state&&"appearing"!=i.__state&&!i.__timeouts.open&&(i._trigger({type:"start",event:t,stop:function(){o=!1}}),o)){var e=0==t.type.indexOf("touch")?i.__options.delayTouch:i.__options.delay;e[0]?i.__timeouts.open=setTimeout(function(){i.__timeouts.open=null,i.__pointerIsOverOrigin&&i._touchIsMeaningfulEvent(t)?(i._trigger("startend"),i._open(t)):i._trigger("startcancel")},e[0]):(i._trigger("startend"),i._open(t))}return i},_optionsExtract:function(i,o){var e=this,n=t.extend(!0,{},o),s=e.__options[i];return s||(s={},t.each(o,function(t,i){var o=e.__options[t];void 0!==o&&(s[t]=o)})),t.each(n,function(i,o){void 0!==s[i]&&("object"!=typeof o||o instanceof Array||null==o||"object"!=typeof s[i]||s[i]instanceof Array||null==s[i]?n[i]=s[i]:t.extend(n[i],s[i]))}),n},_plug:function(i){var o=t.tooltipster._plugin(i);if(!o)throw new Error('The "'+i+'" plugin is not defined');return o.instance&&t.tooltipster.__bridge(o.instance,this,o.name),this},_touchIsEmulatedEvent:function(t){for(var i=!1,o=(new Date).getTime(),e=this.__touchEvents.length-1;e>=0;e--){var n=this.__touchEvents[e];if(!(o-n.time<500))break;n.target===t.target&&(i=!0)}return i},_touchIsMeaningfulEvent:function(t){return this._touchIsTouchEvent(t)&&!this._touchSwiped(t.target)||!this._touchIsTouchEvent(t)&&!this._touchIsEmulatedEvent(t)},_touchIsTouchEvent:function(t){return 0==t.type.indexOf("touch")},_touchRecordEvent:function(t){return this._touchIsTouchEvent(t)&&(t.time=(new Date).getTime(),this.__touchEvents.push(t)),this},_touchSwiped:function(t){for(var i=!1,o=this.__touchEvents.length-1;o>=0;o--){var e=this.__touchEvents[o];if("touchmove"==e.type){i=!0;break}if("touchstart"==e.type&&t===e.target)break}return i},_trigger:function(){var i=Array.prototype.slice.apply(arguments);return"string"==typeof i[0]&&(i[0]={type:i[0]}),i[0].instance=this,i[0].origin=this._$origin?this._$origin[0]:null,i[0].tooltip=this._$tooltip?this._$tooltip[0]:null,this.__$emitterPrivate.trigger.apply(this.__$emitterPrivate,i),t.tooltipster._trigger.apply(t.tooltipster,i),this.__$emitterPublic.trigger.apply(this.__$emitterPublic,i),this},_unplug:function(i){var o=this;if(o[i]){var e=t.tooltipster._plugin(i);e.instance&&t.each(e.instance,function(t,e){o[t]&&o[t].bridged===o[i]&&delete o[t]}),o[i].__destroy&&o[i].__destroy(),delete o[i]}return o},close:function(t){return this.__destroyed?this.__destroyError():this._close(null,t),this},content:function(t){var i=this;if(void 0===t)return i.__Content;if(i.__destroyed)i.__destroyError();else if(i.__contentSet(t),null!==i.__Content){if("closed"!==i.__state&&(i.__contentInsert(),i.reposition(),i.__options.updateAnimation))if(e.hasTransitions){var o=i.__options.updateAnimation;i._$tooltip.addClass("tooltipster-update-"+o),setTimeout(function(){"closed"!=i.__state&&i._$tooltip.removeClass("tooltipster-update-"+o)},1e3)}else i._$tooltip.fadeTo(200,.5,function(){"closed"!=i.__state&&i._$tooltip.fadeTo(200,1)})}else i._close();return i},destroy:function(){var i=this;if(i.__destroyed)i.__destroyError();else{"closed"!=i.__state?i.option("animationDuration",0)._close(null,null,!0):i.__timeoutsClear(),i._trigger("destroy"),i.__destroyed=!0,i._$origin.removeData(i.__namespace).off("."+i.__namespace+"-triggerOpen"),t(e.window.document.body).off("."+i.__namespace+"-triggerOpen");var o=i._$origin.data("tooltipster-ns");if(o)if(1===o.length){var n=null;"previous"==i.__options.restoration?n=i._$origin.data("tooltipster-initialTitle"):"current"==i.__options.restoration&&(n="string"==typeof i.__Content?i.__Content:t("<div></div>").append(i.__Content).html()),n&&i._$origin.attr("title",n),i._$origin.removeClass("tooltipstered"),i._$origin.removeData("tooltipster-ns").removeData("tooltipster-initialTitle")}else o=t.grep(o,function(t,o){return t!==i.__namespace}),i._$origin.data("tooltipster-ns",o);i._trigger("destroyed"),i._off(),i.off(),i.__Content=null,i.__$emitterPrivate=null,i.__$emitterPublic=null,i.__options.parent=null,i._$origin=null,i._$tooltip=null,t.tooltipster.__instancesLatestArr=t.grep(t.tooltipster.__instancesLatestArr,function(t,o){return i!==t}),clearInterval(i.__garbageCollector)}return i},disable:function(){return this.__destroyed?(this.__destroyError(),this):(this._close(),this.__enabled=!1,this)},elementOrigin:function(){if(!this.__destroyed)return this._$origin[0];this.__destroyError()},elementTooltip:function(){return this._$tooltip?this._$tooltip[0]:null},enable:function(){return this.__enabled=!0,this},hide:function(t){return this.close(t)},instance:function(){return this},off:function(){return this.__destroyed||this.__$emitterPublic.off.apply(this.__$emitterPublic,Array.prototype.slice.apply(arguments)),this},on:function(){return this.__destroyed?this.__destroyError():this.__$emitterPublic.on.apply(this.__$emitterPublic,Array.prototype.slice.apply(arguments)),this},one:function(){return this.__destroyed?this.__destroyError():this.__$emitterPublic.one.apply(this.__$emitterPublic,Array.prototype.slice.apply(arguments)),this},open:function(t){return this.__destroyed?this.__destroyError():this._open(null,t),this},option:function(i,o){return void 0===o?this.__options[i]:(this.__destroyed?this.__destroyError():(this.__options[i]=o,this.__optionsFormat(),t.inArray(i,["trigger","triggerClose","triggerOpen"])>=0&&this.__prepareOrigin(),"selfDestruction"===i&&this.__prepareGC()),this)},reposition:function(t,i){var o=this;return o.__destroyed?o.__destroyError():"closed"!=o.__state&&_(o._$origin)&&(i||_(o._$tooltip))&&(i||o._$tooltip.detach(),o.__Geometry=o.__geometry(),o._trigger({type:"reposition",event:t,helper:{geo:o.__Geometry}})),o},show:function(t){return this.open(t)},status:function(){return{destroyed:this.__destroyed,enabled:this.__enabled,open:"closed"!==this.__state,state:this.__state}},triggerHandler:function(){return this.__destroyed?this.__destroyError():this.__$emitterPublic.triggerHandler.apply(this.__$emitterPublic,Array.prototype.slice.apply(arguments)),this}},t.fn.tooltipster=function(){var o=Array.prototype.slice.apply(arguments),e="You are using a single HTML element as content for several tooltips. You probably want to set the contentCloning option to TRUE.";if(0===this.length)return this;if("string"==typeof o[0]){var n="#*$~&";return this.each(function(){var i=t(this).data("tooltipster-ns"),s=i?t(this).data(i[0]):null;if(!s)throw new Error("You called Tooltipster's \""+o[0]+'" method on an uninitialized element');if("function"!=typeof s[o[0]])throw new Error('Unknown method "'+o[0]+'"');this.length>1&&"content"==o[0]&&(o[1]instanceof t||"object"==typeof o[1]&&null!=o[1]&&o[1].tagName)&&!s.__options.contentCloning&&s.__options.debug&&console.log(e);var r=s[o[0]](o[1],o[2]);if(r!==s||"instance"===o[0])return n=r,!1}),"#*$~&"!==n?n:this}t.tooltipster.__instancesLatestArr=[];var s=o[0]&&void 0!==o[0].multiple,r=s&&o[0].multiple||!s&&i.multiple,_=o[0]&&void 0!==o[0].content,a=_&&o[0].content||!_&&i.content,l=o[0]&&void 0!==o[0].contentCloning,p=l&&o[0].contentCloning||!l&&i.contentCloning,c=o[0]&&void 0!==o[0].debug,h=c&&o[0].debug||!c&&i.debug;return this.length>1&&(a instanceof t||"object"==typeof a&&null!=a&&a.tagName)&&!p&&h&&console.log(e),this.each(function(){var i=!1,e=t(this),n=e.data("tooltipster-ns"),s=null;n?r?i=!0:h&&(console.log("Tooltipster: one or more tooltips are already attached to the element below. Ignoring."),console.log(this)):i=!0,i&&(s=new t.Tooltipster(this,o[0]),n||(n=[]),n.push(s.__namespace),e.data("tooltipster-ns",n),e.data(s.__namespace,s),s.__options.functionInit&&s.__options.functionInit.call(s,s,{origin:this}),s._trigger("init")),t.tooltipster.__instancesLatestArr.push(s)}),this},s.prototype={__init:function(i){this.__$tooltip=i,this.__$tooltip.css({left:0,overflow:"hidden",position:"absolute",top:0}).find(".tooltipster-content").css("overflow","auto"),this.$container=t('<div class="tooltipster-ruler"></div>').append(this.__$tooltip).appendTo(e.window.document.body)},__forceRedraw:function(){var t=this.__$tooltip.parent();this.__$tooltip.detach(),this.__$tooltip.appendTo(t)},constrain:function(t,i){return this.constraints={width:t,height:i},this.__$tooltip.css({display:"block",height:"",overflow:"auto",width:t}),this},destroy:function(){this.__$tooltip.detach().find(".tooltipster-content").css({display:"",overflow:""}),this.$container.remove()},free:function(){return this.constraints=null,this.__$tooltip.css({display:"",height:"",overflow:"visible",width:""}),this},measure:function(){this.__forceRedraw();var t=this.__$tooltip[0].getBoundingClientRect(),i={size:{height:t.height||t.bottom-t.top,width:t.width||t.right-t.left}};if(this.constraints){var o=this.__$tooltip.find(".tooltipster-content"),n=this.__$tooltip.outerHeight(),s=o[0].getBoundingClientRect(),r={height:n<=this.constraints.height,width:t.width<=this.constraints.width&&s.width>=o[0].scrollWidth-1};i.fits=r.height&&r.width}return e.IE&&e.IE<=11&&i.size.width!==e.window.document.documentElement.clientWidth&&(i.size.width=Math.ceil(i.size.width)+1),i}};var a=navigator.userAgent.toLowerCase();-1!=a.indexOf("msie")?e.IE=parseInt(a.split("msie")[1]):-1!==a.toLowerCase().indexOf("trident")&&-1!==a.indexOf(" rv:11")?e.IE=11:-1!=a.toLowerCase().indexOf("edge/")&&(e.IE=parseInt(a.toLowerCase().split("edge/")[1]));var l="tooltipster.sideTip";return t.tooltipster._plugin({name:l,instance:{__defaults:function(){return{arrow:!0,distance:6,functionPosition:null,maxWidth:null,minIntersection:16,minWidth:0,position:null,side:"top",viewportAware:!0}},__init:function(t){var i=this;i.__instance=t,i.__namespace="tooltipster-sideTip-"+Math.round(1e6*Math.random()),i.__previousState="closed",i.__options,i.__optionsFormat(),i.__instance._on("state."+i.__namespace,function(t){"closed"==t.state?i.__close():"appearing"==t.state&&"closed"==i.__previousState&&i.__create(),i.__previousState=t.state}),i.__instance._on("options."+i.__namespace,function(){i.__optionsFormat()}),i.__instance._on("reposition."+i.__namespace,function(t){i.__reposition(t.event,t.helper)})},__close:function(){this.__instance.content()instanceof t&&this.__instance.content().detach(),this.__instance._$tooltip.remove(),this.__instance._$tooltip=null},__create:function(){var i=t('<div class="tooltipster-base tooltipster-sidetip"><div class="tooltipster-box"><div class="tooltipster-content"></div></div><div class="tooltipster-arrow"><div class="tooltipster-arrow-uncropped"><div class="tooltipster-arrow-border"></div><div class="tooltipster-arrow-background"></div></div></div></div>');this.__options.arrow||i.find(".tooltipster-box").css("margin",0).end().find(".tooltipster-arrow").hide(),this.__options.minWidth&&i.css("min-width",this.__options.minWidth+"px"),this.__options.maxWidth&&i.css("max-width",this.__options.maxWidth+"px"),this.__instance._$tooltip=i,this.__instance._trigger("created")},__destroy:function(){this.__instance._off("."+self.__namespace)},__optionsFormat:function(){var i=this;if(i.__options=i.__instance._optionsExtract(l,i.__defaults()),i.__options.position&&(i.__options.side=i.__options.position),"object"!=typeof i.__options.distance&&(i.__options.distance=[i.__options.distance]),i.__options.distance.length<4&&(void 0===i.__options.distance[1]&&(i.__options.distance[1]=i.__options.distance[0]),void 0===i.__options.distance[2]&&(i.__options.distance[2]=i.__options.distance[0]),void 0===i.__options.distance[3]&&(i.__options.distance[3]=i.__options.distance[1])),i.__options.distance={top:i.__options.distance[0],right:i.__options.distance[1],bottom:i.__options.distance[2],left:i.__options.distance[3]},"string"==typeof i.__options.side){i.__options.side=[i.__options.side,{top:"bottom",right:"left",bottom:"top",left:"right"}[i.__options.side]],"left"==i.__options.side[0]||"right"==i.__options.side[0]?i.__options.side.push("top","bottom"):i.__options.side.push("right","left")}6===t.tooltipster._env.IE&&!0!==i.__options.arrow&&(i.__options.arrow=!1)},__reposition:function(i,o){var e,n=this,s=n.__targetFind(o),r=[];n.__instance._$tooltip.detach();var _=n.__instance._$tooltip.clone(),a=t.tooltipster._getRuler(_),l=!1,p=n.__instance.option("animation");switch(p&&_.removeClass("tooltipster-"+p),t.each(["window","document"],function(e,p){var c=null;if(n.__instance._trigger({container:p,helper:o,satisfied:l,takeTest:function(t){c=t},results:r,type:"positionTest"}),1==c||0!=c&&0==l&&("window"!=p||n.__options.viewportAware))for(e=0;e<n.__options.side.length;e++){var h={horizontal:0,vertical:0},d=n.__options.side[e];"top"==d||"bottom"==d?h.vertical=n.__options.distance[d]:h.horizontal=n.__options.distance[d],n.__sideChange(_,d),t.each(["natural","constrained"],function(t,e){if(c=null,n.__instance._trigger({container:p,event:i,helper:o,mode:e,results:r,satisfied:l,side:d,takeTest:function(t){c=t},type:"positionTest"}),1==c||0!=c&&0==l){var _={container:p,distance:h,fits:null,mode:e,outerSize:null,side:d,size:null,target:s[d],whole:null},u=("natural"==e?a.free():a.constrain(o.geo.available[p][d].width-h.horizontal,o.geo.available[p][d].height-h.vertical)).measure();if(_.size=u.size,_.outerSize={height:u.size.height+h.vertical,width:u.size.width+h.horizontal},"natural"==e?o.geo.available[p][d].width>=_.outerSize.width&&o.geo.available[p][d].height>=_.outerSize.height?_.fits=!0:_.fits=!1:_.fits=u.fits,"window"==p&&(_.fits?_.whole="top"==d||"bottom"==d?o.geo.origin.windowOffset.right>=n.__options.minIntersection&&o.geo.window.size.width-o.geo.origin.windowOffset.left>=n.__options.minIntersection:o.geo.origin.windowOffset.bottom>=n.__options.minIntersection&&o.geo.window.size.height-o.geo.origin.windowOffset.top>=n.__options.minIntersection:_.whole=!1),r.push(_),_.whole)l=!0;else if("natural"==_.mode&&(_.fits||_.size.width<=o.geo.available[p][d].width))return!1}})}}),n.__instance._trigger({edit:function(t){r=t},event:i,helper:o,results:r,type:"positionTested"}),r.sort(function(t,i){return t.whole&&!i.whole?-1:!t.whole&&i.whole?1:t.whole&&i.whole?(o=n.__options.side.indexOf(t.side))<(e=n.__options.side.indexOf(i.side))?-1:o>e?1:"natural"==t.mode?-1:1:t.fits&&!i.fits?-1:!t.fits&&i.fits?1:t.fits&&i.fits?(o=n.__options.side.indexOf(t.side))<(e=n.__options.side.indexOf(i.side))?-1:o>e?1:"natural"==t.mode?-1:1:"document"==t.container&&"bottom"==t.side&&"natural"==t.mode?-1:1;var o,e}),(e=r[0]).coord={},e.side){case"left":case"right":e.coord.top=Math.floor(e.target-e.size.height/2);break;case"bottom":case"top":e.coord.left=Math.floor(e.target-e.size.width/2)}switch(e.side){case"left":e.coord.left=o.geo.origin.windowOffset.left-e.outerSize.width;break;case"right":e.coord.left=o.geo.origin.windowOffset.right+e.distance.horizontal;break;case"top":e.coord.top=o.geo.origin.windowOffset.top-e.outerSize.height;break;case"bottom":e.coord.top=o.geo.origin.windowOffset.bottom+e.distance.vertical}"window"==e.container?"top"==e.side||"bottom"==e.side?e.coord.left<0?o.geo.origin.windowOffset.right-this.__options.minIntersection>=0?e.coord.left=0:e.coord.left=o.geo.origin.windowOffset.right-this.__options.minIntersection-1:e.coord.left>o.geo.window.size.width-e.size.width&&(o.geo.origin.windowOffset.left+this.__options.minIntersection<=o.geo.window.size.width?e.coord.left=o.geo.window.size.width-e.size.width:e.coord.left=o.geo.origin.windowOffset.left+this.__options.minIntersection+1-e.size.width):e.coord.top<0?o.geo.origin.windowOffset.bottom-this.__options.minIntersection>=0?e.coord.top=0:e.coord.top=o.geo.origin.windowOffset.bottom-this.__options.minIntersection-1:e.coord.top>o.geo.window.size.height-e.size.height&&(o.geo.origin.windowOffset.top+this.__options.minIntersection<=o.geo.window.size.height?e.coord.top=o.geo.window.size.height-e.size.height:e.coord.top=o.geo.origin.windowOffset.top+this.__options.minIntersection+1-e.size.height):(e.coord.left>o.geo.window.size.width-e.size.width&&(e.coord.left=o.geo.window.size.width-e.size.width),e.coord.left<0&&(e.coord.left=0)),n.__sideChange(_,e.side),o.tooltipClone=_[0],o.tooltipParent=n.__instance.option("parent").parent[0],o.mode=e.mode,o.whole=e.whole,o.origin=n.__instance._$origin[0],o.tooltip=n.__instance._$tooltip[0],delete e.container,delete e.fits,delete e.mode,delete e.outerSize,delete e.whole,e.distance=e.distance.horizontal||e.distance.vertical;var c,h,d,u=t.extend(!0,{},e);if(n.__instance._trigger({edit:function(t){e=t},event:i,helper:o,position:u,type:"position"}),n.__options.functionPosition){var g=n.__options.functionPosition.call(n,n.__instance,o,u);g&&(e=g)}a.destroy(),"top"==e.side||"bottom"==e.side?(c={prop:"left",val:e.target-e.coord.left},h=e.size.width-this.__options.minIntersection):(c={prop:"top",val:e.target-e.coord.top},h=e.size.height-this.__options.minIntersection),c.val<this.__options.minIntersection?c.val=this.__options.minIntersection:c.val>h&&(c.val=h),d=o.geo.origin.fixedLineage?o.geo.origin.windowOffset:{left:o.geo.origin.windowOffset.left+o.geo.window.scroll.left,top:o.geo.origin.windowOffset.top+o.geo.window.scroll.top},e.coord={left:d.left+(e.coord.left-o.geo.origin.windowOffset.left),top:d.top+(e.coord.top-o.geo.origin.windowOffset.top)},n.__sideChange(n.__instance._$tooltip,e.side),o.geo.origin.fixedLineage?n.__instance._$tooltip.css("position","fixed"):n.__instance._$tooltip.css("position",""),n.__instance._$tooltip.css({left:e.coord.left,top:e.coord.top,height:e.size.height,width:e.size.width}).find(".tooltipster-arrow").css({left:"",top:""}).css(c.prop,c.val),n.__instance._$tooltip.appendTo(n.__instance.option("parent")),n.__instance._trigger({type:"repositioned",event:i,position:e})},__sideChange:function(t,i){t.removeClass("tooltipster-bottom").removeClass("tooltipster-left").removeClass("tooltipster-right").removeClass("tooltipster-top").addClass("tooltipster-"+i)},__targetFind:function(t){var i={},o=this.__instance._$origin[0].getClientRects();o.length>1&&(1==this.__instance._$origin.css("opacity")&&(this.__instance._$origin.css("opacity",.99),o=this.__instance._$origin[0].getClientRects(),this.__instance._$origin.css("opacity",1)));if(o.length<2)i.top=Math.floor(t.geo.origin.windowOffset.left+t.geo.origin.size.width/2),i.bottom=i.top,i.left=Math.floor(t.geo.origin.windowOffset.top+t.geo.origin.size.height/2),i.right=i.left;else{var e=o[0];i.top=Math.floor(e.left+(e.right-e.left)/2),e=o.length>2?o[Math.ceil(o.length/2)-1]:o[0],i.right=Math.floor(e.top+(e.bottom-e.top)/2),e=o[o.length-1],i.bottom=Math.floor(e.left+(e.right-e.left)/2),e=o.length>2?o[Math.ceil((o.length+1)/2)-1]:o[o.length-1],i.left=Math.floor(e.top+(e.bottom-e.top)/2)}return i}}}),t});
(function (global, factory){
typeof exports==='object'&&typeof module!=='undefined' ? module.exports=factory() :
typeof define==='function'&&define.amd ? define(factory) :
(global.SignaturePad=factory());
}(this, (function (){ 'use strict';
var Point=(function (){
function Point(x, y, time){
this.x=x;
this.y=y;
this.time=time||Date.now();
}
Point.prototype.distanceTo=function (start){
return Math.sqrt(Math.pow(this.x - start.x, 2) + Math.pow(this.y - start.y, 2));
};
Point.prototype.equals=function (other){
return this.x===other.x&&this.y===other.y&&this.time===other.time;
};
Point.prototype.velocityFrom=function (start){
return this.time!==start.time
? this.distanceTo(start) / (this.time - start.time)
: 0;
};
return Point;
}());
var Bezier=(function (){
function Bezier(startPoint, control2, control1, endPoint, startWidth, endWidth){
this.startPoint=startPoint;
this.control2=control2;
this.control1=control1;
this.endPoint=endPoint;
this.startWidth=startWidth;
this.endWidth=endWidth;
}
Bezier.fromPoints=function (points, widths){
var c2=this.calculateControlPoints(points[0], points[1], points[2]).c2;
var c3=this.calculateControlPoints(points[1], points[2], points[3]).c1;
return new Bezier(points[1], c2, c3, points[2], widths.start, widths.end);
};
Bezier.calculateControlPoints=function (s1, s2, s3){
var dx1=s1.x - s2.x;
var dy1=s1.y - s2.y;
var dx2=s2.x - s3.x;
var dy2=s2.y - s3.y;
var m1={ x: (s1.x + s2.x) / 2.0, y: (s1.y + s2.y) / 2.0 };
var m2={ x: (s2.x + s3.x) / 2.0, y: (s2.y + s3.y) / 2.0 };
var l1=Math.sqrt(dx1 * dx1 + dy1 * dy1);
var l2=Math.sqrt(dx2 * dx2 + dy2 * dy2);
var dxm=m1.x - m2.x;
var dym=m1.y - m2.y;
var k=l2 / (l1 + l2);
var cm={ x: m2.x + dxm * k, y: m2.y + dym * k };
var tx=s2.x - cm.x;
var ty=s2.y - cm.y;
return {
c1: new Point(m1.x + tx, m1.y + ty),
c2: new Point(m2.x + tx, m2.y + ty)
};};
Bezier.prototype.length=function (){
var steps=10;
var length=0;
var px;
var py;
for (var i=0; i <=steps; i +=1){
var t=i / steps;
var cx=this.point(t, this.startPoint.x, this.control1.x, this.control2.x, this.endPoint.x);
var cy=this.point(t, this.startPoint.y, this.control1.y, this.control2.y, this.endPoint.y);
if(i > 0){
var xdiff=cx - px;
var ydiff=cy - py;
length +=Math.sqrt(xdiff * xdiff + ydiff * ydiff);
}
px=cx;
py=cy;
}
return length;
};
Bezier.prototype.point=function (t, start, c1, c2, end){
return (start * (1.0 - t) * (1.0 - t) * (1.0 - t))
+ (3.0 * c1 * (1.0 - t) * (1.0 - t) * t)
+ (3.0 * c2 * (1.0 - t) * t * t)
+ (end * t * t * t);
};
return Bezier;
}());
function throttle(fn, wait){
if(wait===void 0){ wait=250; }
var previous=0;
var timeout=null;
var result;
var storedContext;
var storedArgs;
var later=function (){
previous=Date.now();
timeout=null;
result=fn.apply(storedContext, storedArgs);
if(!timeout){
storedContext=null;
storedArgs=[];
}};
return function wrapper(){
var args=[];
for (var _i=0; _i < arguments.length; _i++){
args[_i]=arguments[_i];
}
var now=Date.now();
var remaining=wait - (now - previous);
storedContext=this;
storedArgs=args;
if(remaining <=0||remaining > wait){
if(timeout){
clearTimeout(timeout);
timeout=null;
}
previous=now;
result=fn.apply(storedContext, storedArgs);
if(!timeout){
storedContext=null;
storedArgs=[];
}}
else if(!timeout){
timeout=window.setTimeout(later, remaining);
}
return result;
};}
var SignaturePad=(function (){
function SignaturePad(canvas, options){
if(options===void 0){ options={};}
var _this=this;
this.canvas=canvas;
this.options=options;
this._handleMouseDown=function (event){
if(event.which===1){
_this._mouseButtonDown=true;
_this._strokeBegin(event);
}};
this._handleMouseMove=function (event){
if(_this._mouseButtonDown){
_this._strokeMoveUpdate(event);
}};
this._handleMouseUp=function (event){
if(event.which===1&&_this._mouseButtonDown){
_this._mouseButtonDown=false;
_this._strokeEnd(event);
}};
this._handleTouchStart=function (event){
event.preventDefault();
if(event.targetTouches.length===1){
var touch=event.changedTouches[0];
_this._strokeBegin(touch);
}};
this._handleTouchMove=function (event){
event.preventDefault();
var touch=event.targetTouches[0];
_this._strokeMoveUpdate(touch);
};
this._handleTouchEnd=function (event){
var wasCanvasTouched=event.target===_this.canvas;
if(wasCanvasTouched){
event.preventDefault();
var touch=event.changedTouches[0];
_this._strokeEnd(touch);
}};
this.velocityFilterWeight=options.velocityFilterWeight||0.7;
this.minWidth=options.minWidth||0.5;
this.maxWidth=options.maxWidth||2.5;
this.throttle=('throttle' in options ? options.throttle:16);
this.minDistance=('minDistance' in options
? options.minDistance
: 5);
if(this.throttle){
this._strokeMoveUpdate=throttle(SignaturePad.prototype._strokeUpdate, this.throttle);
}else{
this._strokeMoveUpdate=SignaturePad.prototype._strokeUpdate;
}
this.dotSize =
options.dotSize ||
function dotSize(){
return (this.minWidth + this.maxWidth) / 2;
};
this.penColor=options.penColor||'black';
this.backgroundColor=options.backgroundColor||'rgba(0,0,0,0)';
this.onBegin=options.onBegin;
this.onEnd=options.onEnd;
this._ctx=canvas.getContext('2d');
this.clear();
this.on();
}
SignaturePad.prototype.clear=function (){
var ctx=this._ctx;
var canvas=this.canvas;
ctx.fillStyle=this.backgroundColor;
ctx.clearRect(0, 0, canvas.width, canvas.height);
ctx.fillRect(0, 0, canvas.width, canvas.height);
this._data=[];
this._reset();
this._isEmpty=true;
};
SignaturePad.prototype.fromDataURL=function (dataUrl, options, callback){
var _this=this;
if(options===void 0){ options={};}
var image=new Image();
var ratio=options.ratio||window.devicePixelRatio||1;
var width=options.width||this.canvas.width / ratio;
var height=options.height||this.canvas.height / ratio;
this._reset();
image.onload=function (){
_this._ctx.drawImage(image, 0, 0, width, height);
if(callback){
callback();
}};
image.onerror=function (error){
if(callback){
callback(error);
}};
image.src=dataUrl;
this._isEmpty=false;
};
SignaturePad.prototype.toDataURL=function (type, encoderOptions){
if(type===void 0){ type='image/png'; }
switch (type){
case 'image/svg+xml':
return this._toSVG();
default:
return this.canvas.toDataURL(type, encoderOptions);
}};
SignaturePad.prototype.on=function (){
this.canvas.style.touchAction='none';
this.canvas.style.msTouchAction='none';
if(window.PointerEvent){
this._handlePointerEvents();
}else{
this._handleMouseEvents();
if('ontouchstart' in window){
this._handleTouchEvents();
}}
};
SignaturePad.prototype.off=function (){
this.canvas.style.touchAction='auto';
this.canvas.style.msTouchAction='auto';
this.canvas.removeEventListener('pointerdown', this._handleMouseDown);
this.canvas.removeEventListener('pointermove', this._handleMouseMove);
document.removeEventListener('pointerup', this._handleMouseUp);
this.canvas.removeEventListener('mousedown', this._handleMouseDown);
this.canvas.removeEventListener('mousemove', this._handleMouseMove);
document.removeEventListener('mouseup', this._handleMouseUp);
this.canvas.removeEventListener('touchstart', this._handleTouchStart);
this.canvas.removeEventListener('touchmove', this._handleTouchMove);
this.canvas.removeEventListener('touchend', this._handleTouchEnd);
};
SignaturePad.prototype.isEmpty=function (){
return this._isEmpty;
};
SignaturePad.prototype.fromData=function (pointGroups){
var _this=this;
this.clear();
this._fromData(pointGroups, function (_a){
var color=_a.color, curve=_a.curve;
return _this._drawCurve({ color: color, curve: curve });
}, function (_a){
var color=_a.color, point=_a.point;
return _this._drawDot({ color: color, point: point });
});
this._data=pointGroups;
};
SignaturePad.prototype.toData=function (){
return this._data;
};
SignaturePad.prototype._strokeBegin=function (event){
var newPointGroup={
color: this.penColor,
points: []
};
if(typeof this.onBegin==='function'){
this.onBegin(event);
}
this._data.push(newPointGroup);
this._reset();
this._strokeUpdate(event);
};
SignaturePad.prototype._strokeUpdate=function (event){
var x=event.clientX;
var y=event.clientY;
var point=this._createPoint(x, y);
var lastPointGroup=this._data[this._data.length - 1];
var lastPoints=lastPointGroup.points;
var lastPoint=lastPoints.length > 0&&lastPoints[lastPoints.length - 1];
var isLastPointTooClose=lastPoint
? point.distanceTo(lastPoint) <=this.minDistance
: false;
var color=lastPointGroup.color;
if(!lastPoint||!(lastPoint&&isLastPointTooClose)){
var curve=this._addPoint(point);
if(!lastPoint){
this._drawDot({ color: color, point: point });
}
else if(curve){
this._drawCurve({ color: color, curve: curve });
}
lastPoints.push({
time: point.time,
x: point.x,
y: point.y
});
}};
SignaturePad.prototype._strokeEnd=function (event){
this._strokeUpdate(event);
if(typeof this.onEnd==='function'){
this.onEnd(event);
}};
SignaturePad.prototype._handlePointerEvents=function (){
this._mouseButtonDown=false;
this.canvas.addEventListener('pointerdown', this._handleMouseDown);
this.canvas.addEventListener('pointermove', this._handleMouseMove);
document.addEventListener('pointerup', this._handleMouseUp);
};
SignaturePad.prototype._handleMouseEvents=function (){
this._mouseButtonDown=false;
this.canvas.addEventListener('mousedown', this._handleMouseDown);
this.canvas.addEventListener('mousemove', this._handleMouseMove);
document.addEventListener('mouseup', this._handleMouseUp);
};
SignaturePad.prototype._handleTouchEvents=function (){
this.canvas.addEventListener('touchstart', this._handleTouchStart);
this.canvas.addEventListener('touchmove', this._handleTouchMove);
this.canvas.addEventListener('touchend', this._handleTouchEnd);
};
SignaturePad.prototype._reset=function (){
this._lastPoints=[];
this._lastVelocity=0;
this._lastWidth=(this.minWidth + this.maxWidth) / 2;
this._ctx.fillStyle=this.penColor;
};
SignaturePad.prototype._createPoint=function (x, y){
var rect=this.canvas.getBoundingClientRect();
return new Point(x - rect.left, y - rect.top, new Date().getTime());
};
SignaturePad.prototype._addPoint=function (point){
var _lastPoints=this._lastPoints;
_lastPoints.push(point);
if(_lastPoints.length > 2){
if(_lastPoints.length===3){
_lastPoints.unshift(_lastPoints[0]);
}
var widths=this._calculateCurveWidths(_lastPoints[1], _lastPoints[2]);
var curve=Bezier.fromPoints(_lastPoints, widths);
_lastPoints.shift();
return curve;
}
return null;
};
SignaturePad.prototype._calculateCurveWidths=function (startPoint, endPoint){
var velocity=this.velocityFilterWeight * endPoint.velocityFrom(startPoint) +
(1 - this.velocityFilterWeight) * this._lastVelocity;
var newWidth=this._strokeWidth(velocity);
var widths={
end: newWidth,
start: this._lastWidth
};
this._lastVelocity=velocity;
this._lastWidth=newWidth;
return widths;
};
SignaturePad.prototype._strokeWidth=function (velocity){
return Math.max(this.maxWidth / (velocity + 1), this.minWidth);
};
SignaturePad.prototype._drawCurveSegment=function (x, y, width){
var ctx=this._ctx;
ctx.moveTo(x, y);
ctx.arc(x, y, width, 0, 2 * Math.PI, false);
this._isEmpty=false;
};
SignaturePad.prototype._drawCurve=function (_a){
var color=_a.color, curve=_a.curve;
var ctx=this._ctx;
var widthDelta=curve.endWidth - curve.startWidth;
var drawSteps=Math.floor(curve.length()) * 2;
ctx.beginPath();
ctx.fillStyle=color;
for (var i=0; i < drawSteps; i +=1){
var t=i / drawSteps;
var tt=t * t;
var ttt=tt * t;
var u=1 - t;
var uu=u * u;
var uuu=uu * u;
var x=uuu * curve.startPoint.x;
x +=3 * uu * t * curve.control1.x;
x +=3 * u * tt * curve.control2.x;
x +=ttt * curve.endPoint.x;
var y=uuu * curve.startPoint.y;
y +=3 * uu * t * curve.control1.y;
y +=3 * u * tt * curve.control2.y;
y +=ttt * curve.endPoint.y;
var width=curve.startWidth + ttt * widthDelta;
this._drawCurveSegment(x, y, width);
}
ctx.closePath();
ctx.fill();
};
SignaturePad.prototype._drawDot=function (_a){
var color=_a.color, point=_a.point;
var ctx=this._ctx;
var width=typeof this.dotSize==='function' ? this.dotSize():this.dotSize;
ctx.beginPath();
this._drawCurveSegment(point.x, point.y, width);
ctx.closePath();
ctx.fillStyle=color;
ctx.fill();
};
SignaturePad.prototype._fromData=function (pointGroups, drawCurve, drawDot){
for (var _i=0, pointGroups_1=pointGroups; _i < pointGroups_1.length; _i++){
var group=pointGroups_1[_i];
var color=group.color, points=group.points;
if(points.length > 1){
for (var j=0; j < points.length; j +=1){
var basicPoint=points[j];
var point=new Point(basicPoint.x, basicPoint.y, basicPoint.time);
this.penColor=color;
if(j===0){
this._reset();
}
var curve=this._addPoint(point);
if(curve){
drawCurve({ color: color, curve: curve });
}}
}else{
this._reset();
drawDot({
color: color,
point: points[0]
});
}}
};
SignaturePad.prototype._toSVG=function (){
var _this=this;
var pointGroups=this._data;
var ratio=Math.max(window.devicePixelRatio||1, 1);
var minX=0;
var minY=0;
var maxX=this.canvas.width / ratio;
var maxY=this.canvas.height / ratio;
var svg=document.createElementNS('http://www.w3.org/2000/svg', 'svg');
svg.setAttribute('width', this.canvas.width.toString());
svg.setAttribute('height', this.canvas.height.toString());
this._fromData(pointGroups, function (_a){
var color=_a.color, curve=_a.curve;
var path=document.createElement('path');
if(!isNaN(curve.control1.x) &&
!isNaN(curve.control1.y) &&
!isNaN(curve.control2.x) &&
!isNaN(curve.control2.y)){
var attr="M " + curve.startPoint.x.toFixed(3) + "," + curve.startPoint.y.toFixed(3) + " " +
("C " + curve.control1.x.toFixed(3) + "," + curve.control1.y.toFixed(3) + " ") +
(curve.control2.x.toFixed(3) + "," + curve.control2.y.toFixed(3) + " ") +
(curve.endPoint.x.toFixed(3) + "," + curve.endPoint.y.toFixed(3));
path.setAttribute('d', attr);
path.setAttribute('stroke-width', (curve.endWidth * 2.25).toFixed(3));
path.setAttribute('stroke', color);
path.setAttribute('fill', 'none');
path.setAttribute('stroke-linecap', 'round');
svg.appendChild(path);
}}, function (_a){
var color=_a.color, point=_a.point;
var circle=document.createElement('circle');
var dotSize=typeof _this.dotSize==='function' ? _this.dotSize():_this.dotSize;
circle.setAttribute('r', dotSize.toString());
circle.setAttribute('cx', point.x.toString());
circle.setAttribute('cy', point.y.toString());
circle.setAttribute('fill', color);
svg.appendChild(circle);
});
var prefix='data:image/svg+xml;base64,';
var header='<svg' +
' xmlns="http://www.w3.org/2000/svg"' +
' xmlns:xlink="http://www.w3.org/1999/xlink"' +
(" viewBox=\"" + minX + " " + minY + " " + maxX + " " + maxY + "\"") +
(" width=\"" + maxX + "\"") +
(" height=\"" + maxY + "\"") +
'>';
var body=svg.innerHTML;
if(body===undefined){
var dummy=document.createElement('dummy');
var nodes=svg.childNodes;
dummy.innerHTML='';
for (var i=0; i < nodes.length; i +=1){
dummy.appendChild(nodes[i].cloneNode(true));
}
body=dummy.innerHTML;
}
var footer='</svg>';
var data=header + body + footer;
return prefix + btoa(data);
};
return SignaturePad;
}());
return SignaturePad;
})));
var URSignatures=window.URSignatures||function(i,e,t){"use strict";var n={config:{width:!1,changes:!1,pixelRatio:Math.max(e.devicePixelRatio||1,1)},signatures:{},signaturesDisabled:[],init:function(){n.ready(),t(e).on("user_registration_frontend_after_ajax_complete",function(i,e,n,a){t(".user-registration-signature-reset").each(function(){t(this).trigger("click")})})},ready:function(){n.config.width=t(e).width(),n.loadSignatures(),t(i).on("click",".user-registration-signature-reset",function(i){i.preventDefault(),n.resetSignature(t(this).parent().find(".user-registration-signature-canvas"))}),t(e).resize(n.resetSignatures),n.signaturesDisabled.length>0&&(n.config.changes=setInterval(n.signatureChanges,300)),t(i).on("ur-forms-signature-init",function(i,e){n.loadSignature(t(e))})},loadSignatures:function(){t(".user-registration-signature-canvas").each(function(){n.loadSignature(t(this))})},resetSignatures:function(){n.config.width!==t(e).width()&&t(".user-registration-signature-canvas").each(function(){n.resetSignature(t(this))})},getCanvas:function(i){var e=i.get(0);return e.width=e.offsetWidth*n.config.pixelRatio,e.height=e.offsetHeight*n.config.pixelRatio,e.getContext("2d").scale(n.config.pixelRatio,n.config.pixelRatio),e},loadSignature:function(i){var e=i.closest(".user-registration-field-signature").find(".user-registration-signature-input"),t=i.attr("id"),a=n.getCanvas(i);i.is(":hidden")?n.signaturesDisabled.push(t):n.signatures[t]=new SignaturePad(a,{onEnd:function(){var i=a.parentNode.getAttribute("data-image-format");e.val(this.toDataURL(i)).trigger("input change").valid()}})},resetSignature:function(i){var e=i.closest(".user-registration-field-signature").find(".user-registration-signature-input"),a=i.attr("id");n.getCanvas(i),n.signatures[a]&&n.signatures[a].clear(),e.val("").trigger("input change"),i.is(":hidden")&&(-1===t.inArray(a,n.signaturesDisabled)&&n.signaturesDisabled.push(a),n.signatures[a]&&delete n.signatures[a],n.config.changes||(n.config.changes=setInterval(n.signatureChanges,300)))},signatureChanges:function(){if(n.signaturesDisabled.length<1)return clearInterval(n.config.changes),void(n.config.changes=!1);for(var i in n.signaturesDisabled){var e=t("#"+n.signaturesDisabled[i]);e.is(":hidden")||(n.signaturesDisabled.splice(i,1),n.loadSignature(e))}}};return n}(document,window,jQuery);URSignatures.init();
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t=t||self).Sweetalert2=e()}(this,function(){"use strict";function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function n(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function o(t,e,o){return e&&n(t.prototype,e),o&&n(t,o),t}function i(){return i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},i.apply(this,arguments)}function r(t){return r=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},r(t)}function a(t,e){return a=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},a(t,e)}function u(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}function c(t,e,n){return c=u()?Reflect.construct:function(t,e,n){var o=[null];o.push.apply(o,e);var i=new(Function.bind.apply(t,o));return n&&a(i,n.prototype),i},c.apply(null,arguments)}function s(t,e){return!e||"object"!=typeof e&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function l(t,e,n){return l="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var o=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=r(t)););return t}(t,e);if(o){var i=Object.getOwnPropertyDescriptor(o,e);return i.get?i.get.call(n):i.value}},l(t,e,n||t)}var d="SweetAlert2:",p=function(t){return t.charAt(0).toUpperCase()+t.slice(1)},f=function(t){return Object.keys(t).map(function(e){return t[e]})},m=function(t){return Array.prototype.slice.call(t)},h=function(e){console.warn("".concat(d," ").concat("object"===t(e)?e.join(" "):e))},g=function(t){console.error("".concat(d," ").concat(t))},v=[],b=function(t,e){var n;n='"'.concat(t,'" is deprecated and will be removed in the next major release. Please use "').concat(e,'" instead.'),-1===v.indexOf(n)&&(v.push(n),h(n))},y=function(t){return"function"==typeof t?t():t},w=function(t){return t&&"function"==typeof t.toPromise},C=function(t){return w(t)?t.toPromise():Promise.resolve(t)},k=function(t){return t&&Promise.resolve(t)===t},A=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),x=function(e){return e instanceof Element||function(e){return"object"===t(e)&&e.jquery}(e)},B=function(t){var e={};for(var n in t)e[t[n]]="swal2-"+t[n];return e},P=B(["container","shown","height-auto","iosfix","popup","modal","no-backdrop","no-transition","toast","toast-shown","show","hide","close","title","header","content","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"]),O=B(["success","warning","info","question","error"]),E=function(){return document.body.querySelector(".".concat(P.container))},S=function(t){var e=E();return e?e.querySelector(t):null},T=function(t){return S(".".concat(t))},L=function(){return T(P.popup)},q=function(){return T(P.icon)},D=function(){return T(P.title)},j=function(){return T(P.content)},M=function(){return T(P["html-container"])},I=function(){return T(P.image)},H=function(){return T(P["progress-steps"])},V=function(){return T(P["validation-message"])},R=function(){return S(".".concat(P.actions," .").concat(P.confirm))},N=function(){return S(".".concat(P.actions," .").concat(P.deny))},U=function(){return S(".".concat(P.loader))},F=function(){return S(".".concat(P.actions," .").concat(P.cancel))},_=function(){return T(P.actions)},z=function(){return T(P.header)},W=function(){return T(P.footer)},K=function(){return T(P["timer-progress-bar"])},Y=function(){return T(P.close)},Z=function(){var t=m(L().querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])')).sort(function(t,e){return(t=parseInt(t.getAttribute("tabindex")))>(e=parseInt(e.getAttribute("tabindex")))?1:t<e?-1:0}),e=m(L().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')).filter(function(t){return"-1"!==t.getAttribute("tabindex")});return function(t){for(var e=[],n=0;n<t.length;n++)-1===e.indexOf(t[n])&&e.push(t[n]);return e}(t.concat(e)).filter(function(t){return ft(t)})},Q=function(){return!J()&&!document.body.classList.contains(P["no-backdrop"])},J=function(){return document.body.classList.contains(P["toast-shown"])},$={previousBodyPadding:null},X=function(t,e){if(t.textContent="",e){var n=(new DOMParser).parseFromString(e,"text/html");m(n.querySelector("head").childNodes).forEach(function(e){t.appendChild(e)}),m(n.querySelector("body").childNodes).forEach(function(e){t.appendChild(e)})}},G=function(t,e){if(!e)return!1;for(var n=e.split(/\s+/),o=0;o<n.length;o++)if(!t.classList.contains(n[o]))return!1;return!0},tt=function(e,n,o){if(function(t,e){m(t.classList).forEach(function(n){-1===f(P).indexOf(n)&&-1===f(O).indexOf(n)&&-1===f(e.showClass).indexOf(n)&&t.classList.remove(n)})}(e,n),n.customClass&&n.customClass[o]){if("string"!=typeof n.customClass[o]&&!n.customClass[o].forEach)return h("Invalid type of customClass.".concat(o,'! Expected string or iterable object, got "').concat(t(n.customClass[o]),'"'));rt(e,n.customClass[o])}};function et(t,e){if(!e)return null;switch(e){case"select":case"textarea":case"file":return ut(t,P[e]);case"checkbox":return t.querySelector(".".concat(P.checkbox," input"));case"radio":return t.querySelector(".".concat(P.radio," input:checked"))||t.querySelector(".".concat(P.radio," input:first-child"));case"range":return t.querySelector(".".concat(P.range," input"));default:return ut(t,P.input)}}var nt,ot=function(t){if(t.focus(),"file"!==t.type){var e=t.value;t.value="",t.value=e}},it=function(t,e,n){t&&e&&("string"==typeof e&&(e=e.split(/\s+/).filter(Boolean)),e.forEach(function(e){t.forEach?t.forEach(function(t){n?t.classList.add(e):t.classList.remove(e)}):n?t.classList.add(e):t.classList.remove(e)}))},rt=function(t,e){it(t,e,!0)},at=function(t,e){it(t,e,!1)},ut=function(t,e){for(var n=0;n<t.childNodes.length;n++)if(G(t.childNodes[n],e))return t.childNodes[n]},ct=function(t,e,n){n==="".concat(parseInt(n))&&(n=parseInt(n)),n||0===parseInt(n)?t.style[e]="number"==typeof n?"".concat(n,"px"):n:t.style.removeProperty(e)},st=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"flex";t.style.display=e},lt=function(t){t.style.display="none"},dt=function(t,e,n,o){var i=t.querySelector(e);i&&(i.style[n]=o)},pt=function(t,e,n){e?st(t,n):lt(t)},ft=function(t){return!(!t||!(t.offsetWidth||t.offsetHeight||t.getClientRects().length))},mt=function(t){return!!(t.scrollHeight>t.clientHeight)},ht=function(t){var e=window.getComputedStyle(t),n=parseFloat(e.getPropertyValue("animation-duration")||"0"),o=parseFloat(e.getPropertyValue("transition-duration")||"0");return n>0||o>0},gt=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=K();ft(n)&&(e&&(n.style.transition="none",n.style.width="100%"),setTimeout(function(){n.style.transition="width ".concat(t/1e3,"s linear"),n.style.width="0%"},10))},vt=function(){return"undefined"==typeof window||"undefined"==typeof document},bt='\n <div aria-labelledby="'.concat(P.title,'" aria-describedby="').concat(P.content,'" class="').concat(P.popup,'" tabindex="-1">\n   <div class="').concat(P.header,'">\n     <ul class="').concat(P["progress-steps"],'"></ul>\n     <div class="').concat(P.icon,'"></div>\n     <img class="').concat(P.image,'" />\n     <h2 class="').concat(P.title,'" id="').concat(P.title,'"></h2>\n     <button type="button" class="').concat(P.close,'"></button>\n   </div>\n   <div class="').concat(P.content,'">\n     <div id="').concat(P.content,'" class="').concat(P["html-container"],'"></div>\n     <input class="').concat(P.input,'" />\n     <input type="file" class="').concat(P.file,'" />\n     <div class="').concat(P.range,'">\n       <input type="range" />\n       <output></output>\n     </div>\n     <select class="').concat(P.select,'"></select>\n     <div class="').concat(P.radio,'"></div>\n     <label for="').concat(P.checkbox,'" class="').concat(P.checkbox,'">\n       <input type="checkbox" />\n       <span class="').concat(P.label,'"></span>\n     </label>\n     <textarea class="').concat(P.textarea,'"></textarea>\n     <div class="').concat(P["validation-message"],'" id="').concat(P["validation-message"],'"></div>\n   </div>\n   <div class="').concat(P.actions,'">\n     <div class="').concat(P.loader,'"></div>\n     <button type="button" class="').concat(P.confirm,'"></button>\n     <button type="button" class="').concat(P.deny,'"></button>\n     <button type="button" class="').concat(P.cancel,'"></button>\n   </div>\n   <div class="').concat(P.footer,'"></div>\n   <div class="').concat(P["timer-progress-bar-container"],'">\n     <div class="').concat(P["timer-progress-bar"],'"></div>\n   </div>\n </div>\n').replace(/(^|\n)\s*/g,""),yt=function(t){Vn.isVisible()&&nt!==t.target.value&&Vn.resetValidationMessage(),nt=t.target.value},wt=function(t){var e,n=!!(e=E())&&(e.parentNode.removeChild(e),at([document.documentElement,document.body],[P["no-backdrop"],P["toast-shown"],P["has-column"]]),!0);if(vt())g("SweetAlert2 requires document to initialize");else{var o=document.createElement("div");o.className=P.container,n&&rt(o,P["no-transition"]),X(o,bt);var i,r,a,u,c,s,l,d,p,f="string"==typeof(i=t.target)?document.querySelector(i):i;f.appendChild(o),function(t){var e=L();e.setAttribute("role",t.toast?"alert":"dialog"),e.setAttribute("aria-live",t.toast?"polite":"assertive"),t.toast||e.setAttribute("aria-modal","true")}(t),function(t){"rtl"===window.getComputedStyle(t).direction&&rt(E(),P.rtl)}(f),r=j(),a=ut(r,P.input),u=ut(r,P.file),c=r.querySelector(".".concat(P.range," input")),s=r.querySelector(".".concat(P.range," output")),l=ut(r,P.select),d=r.querySelector(".".concat(P.checkbox," input")),p=ut(r,P.textarea),a.oninput=yt,u.onchange=yt,l.onchange=yt,d.onchange=yt,p.oninput=yt,c.oninput=function(t){yt(t),s.value=c.value},c.onchange=function(t){yt(t),c.nextSibling.value=c.value}}},Ct=function(e,n){e instanceof HTMLElement?n.appendChild(e):"object"===t(e)?kt(e,n):e&&X(n,e)},kt=function(t,e){t.jquery?At(e,t):X(e,t.toString())},At=function(t,e){if(t.textContent="",0 in e)for(var n=0;n in e;n++)t.appendChild(e[n].cloneNode(!0));else t.appendChild(e.cloneNode(!0))},xt=function(){if(vt())return!1;var t=document.createElement("div"),e={WebkitAnimation:"webkitAnimationEnd",OAnimation:"oAnimationEnd oanimationend",animation:"animationend"};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&void 0!==t.style[n])return e[n];return!1}(),Bt=function(t,e){var n=_(),o=U(),i=R(),r=N(),a=F();e.showConfirmButton||e.showDenyButton||e.showCancelButton||lt(n),tt(n,e,"actions"),Pt(i,"confirm",e),Pt(r,"deny",e),Pt(a,"cancel",e),function(t,e,n,o){if(!o.buttonsStyling)return at([t,e,n],P.styled);rt([t,e,n],P.styled),o.confirmButtonColor&&(t.style.backgroundColor=o.confirmButtonColor);o.denyButtonColor&&(e.style.backgroundColor=o.denyButtonColor);o.cancelButtonColor&&(n.style.backgroundColor=o.cancelButtonColor)}(i,r,a,e),e.reverseButtons&&(n.insertBefore(a,o),n.insertBefore(r,o),n.insertBefore(i,o)),X(o,e.loaderHtml),tt(o,e,"loader")};function Pt(t,e,n){pt(t,n["show".concat(p(e),"Button")],"inline-block"),X(t,n["".concat(e,"ButtonText")]),t.setAttribute("aria-label",n["".concat(e,"ButtonAriaLabel")]),t.className=P[e],tt(t,n,"".concat(e,"Button")),rt(t,n["".concat(e,"ButtonClass")])}var Ot=function(t,e){var n=E();if(n){!function(t,e){"string"==typeof e?t.style.background=e:e||rt([document.documentElement,document.body],P["no-backdrop"])}(n,e.backdrop),!e.backdrop&&e.allowOutsideClick&&h('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`'),function(t,e){e in P?rt(t,P[e]):(h('The "position" parameter is not valid, defaulting to "center"'),rt(t,P.center))}(n,e.position),function(t,e){if(e&&"string"==typeof e){var n="grow-".concat(e);n in P&&rt(t,P[n])}}(n,e.grow),tt(n,e,"container");var o=document.body.getAttribute("data-swal2-queue-step");o&&(n.setAttribute("data-queue-step",o),document.body.removeAttribute("data-swal2-queue-step"))}},Et={promise:new WeakMap,innerParams:new WeakMap,domCache:new WeakMap},St=["input","file","range","select","radio","checkbox","textarea"],Tt=function(t){if(!It[t.input])return g('Unexpected type of input! Expected "text", "email", "password", "number", "tel", "select", "radio", "checkbox", "textarea", "file" or "url", got "'.concat(t.input,'"'));var e=Mt(t.input),n=It[t.input](e,t);st(n),setTimeout(function(){ot(n)})},Lt=function(t,e){var n=et(j(),t);if(n)for(var o in function(t){for(var e=0;e<t.attributes.length;e++){var n=t.attributes[e].name;-1===["type","value","style"].indexOf(n)&&t.removeAttribute(n)}}(n),e)"range"===t&&"placeholder"===o||n.setAttribute(o,e[o])},qt=function(t){var e=Mt(t.input);t.customClass&&rt(e,t.customClass.input)},Dt=function(t,e){t.placeholder&&!e.inputPlaceholder||(t.placeholder=e.inputPlaceholder)},jt=function(t,e,n){if(n.inputLabel){t.id=P.input;var o=document.createElement("label"),i=P["input-label"];o.setAttribute("for",t.id),o.className=i,rt(o,n.customClass.inputLabel),o.innerText=n.inputLabel,e.insertAdjacentElement("beforebegin",o)}},Mt=function(t){var e=P[t]?P[t]:P.input;return ut(j(),e)},It={};It.text=It.email=It.password=It.number=It.tel=It.url=function(e,n){return"string"==typeof n.inputValue||"number"==typeof n.inputValue?e.value=n.inputValue:k(n.inputValue)||h('Unexpected type of inputValue! Expected "string", "number" or "Promise", got "'.concat(t(n.inputValue),'"')),jt(e,e,n),Dt(e,n),e.type=n.input,e},It.file=function(t,e){return jt(t,t,e),Dt(t,e),t},It.range=function(t,e){var n=t.querySelector("input"),o=t.querySelector("output");return n.value=e.inputValue,n.type=e.input,o.value=e.inputValue,jt(n,t,e),t},It.select=function(t,e){if(t.textContent="",e.inputPlaceholder){var n=document.createElement("option");X(n,e.inputPlaceholder),n.value="",n.disabled=!0,n.selected=!0,t.appendChild(n)}return jt(t,t,e),t},It.radio=function(t){return t.textContent="",t},It.checkbox=function(t,e){var n=et(j(),"checkbox");n.value=1,n.id=P.checkbox,n.checked=Boolean(e.inputValue);var o=t.querySelector("span");return X(o,e.inputPlaceholder),t},It.textarea=function(t,e){t.value=e.inputValue,Dt(t,e),jt(t,t,e);var n=function(t){return parseInt(window.getComputedStyle(t).paddingLeft)+parseInt(window.getComputedStyle(t).paddingRight)};if("MutationObserver"in window){var o=parseInt(window.getComputedStyle(L()).width);new MutationObserver(function(){var e=t.offsetWidth+n(L())+n(j());L().style.width=e>o?"".concat(e,"px"):null}).observe(t,{attributes:!0,attributeFilter:["style"]})}return t};var Ht=function(t,e){var n=M();tt(n,e,"htmlContainer"),e.html?(Ct(e.html,n),st(n,"block")):e.text?(n.textContent=e.text,st(n,"block")):lt(n),function(t,e){var n=j(),o=Et.innerParams.get(t),i=!o||e.input!==o.input;St.forEach(function(t){var o=P[t],r=ut(n,o);Lt(t,e.inputAttributes),r.className=o,i&&lt(r)}),e.input&&(i&&Tt(e),qt(e))}(t,e),tt(j(),e,"content")},Vt=function(t,e){for(var n in O)e.icon!==n&&at(t,O[n]);rt(t,O[e.icon]),Ut(t,e),Rt(),tt(t,e,"icon")},Rt=function(){for(var t=L(),e=window.getComputedStyle(t).getPropertyValue("background-color"),n=t.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix"),o=0;o<n.length;o++)n[o].style.backgroundColor=e},Nt=function(t,e){if(t.textContent="",e.iconHtml)X(t,Ft(e.iconHtml));else if("success"===e.icon)X(t,'\n      <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> <div class="swal2-success-fix"></div>\n      <div class="swal2-success-circular-line-right"></div>\n    ');else if("error"===e.icon)X(t,'\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    ');else{X(t,Ft({question:"?",warning:"!",info:"i"}[e.icon]))}},Ut=function(t,e){if(e.iconColor){t.style.color=e.iconColor,t.style.borderColor=e.iconColor;for(var n=0,o=[".swal2-success-line-tip",".swal2-success-line-long",".swal2-x-mark-line-left",".swal2-x-mark-line-right"];n<o.length;n++){dt(t,o[n],"backgroundColor",e.iconColor)}dt(t,".swal2-success-ring","borderColor",e.iconColor)}},Ft=function(t){return'<div class="'.concat(P["icon-content"],'">').concat(t,"</div>")},_t=[],zt=function(){return E()&&E().getAttribute("data-queue-step")},Wt=function(t,e){var n=H();if(!e.progressSteps||0===e.progressSteps.length)return lt(n);st(n),n.textContent="";var o=parseInt(void 0===e.currentProgressStep?zt():e.currentProgressStep);o>=e.progressSteps.length&&h("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),e.progressSteps.forEach(function(t,i){var r=function(t){var e=document.createElement("li");return rt(e,P["progress-step"]),X(e,t),e}(t);if(n.appendChild(r),i===o&&rt(r,P["active-progress-step"]),i!==e.progressSteps.length-1){var a=function(t){var e=document.createElement("li");return rt(e,P["progress-step-line"]),t.progressStepsDistance&&(e.style.width=t.progressStepsDistance),e}(e);n.appendChild(a)}})},Kt=function(t,e){var n=z();tt(n,e,"header"),Wt(0,e),function(t,e){var n=Et.innerParams.get(t),o=q();n&&e.icon===n.icon?(Nt(o,e),Vt(o,e)):e.icon||e.iconHtml?e.icon&&-1===Object.keys(O).indexOf(e.icon)?(g('Unknown icon! Expected "success", "error", "warning", "info" or "question", got "'.concat(e.icon,'"')),lt(o)):(st(o),Nt(o,e),Vt(o,e),rt(o,e.showClass.icon)):lt(o)}(t,e),function(t,e){var n=I();if(!e.imageUrl)return lt(n);st(n,""),n.setAttribute("src",e.imageUrl),n.setAttribute("alt",e.imageAlt),ct(n,"width",e.imageWidth),ct(n,"height",e.imageHeight),n.className=P.image,tt(n,e,"image")}(0,e),function(t,e){var n=D();pt(n,e.title||e.titleText,"block"),e.title&&Ct(e.title,n),e.titleText&&(n.innerText=e.titleText),tt(n,e,"title")}(0,e),function(t,e){var n=Y();X(n,e.closeButtonHtml),tt(n,e,"closeButton"),pt(n,e.showCloseButton),n.setAttribute("aria-label",e.closeButtonAriaLabel)}(0,e)},Yt=function(t,e){t.className="".concat(P.popup," ").concat(ft(t)?e.showClass.popup:""),e.toast?(rt([document.documentElement,document.body],P["toast-shown"]),rt(t,P.toast)):rt(t,P.modal),tt(t,e,"popup"),"string"==typeof e.customClass&&rt(t,e.customClass),e.icon&&rt(t,P["icon-".concat(e.icon)])},Zt=function(t,e){!function(t,e){var n=E(),o=L();e.toast?(ct(n,"width",e.width),o.style.width="100%"):ct(o,"width",e.width),ct(o,"padding",e.padding),e.background&&(o.style.background=e.background),lt(V()),Yt(o,e)}(0,e),Ot(0,e),Kt(t,e),Ht(t,e),Bt(0,e),function(t,e){var n=W();pt(n,e.footer),e.footer&&Ct(e.footer,n),tt(n,e,"footer")}(0,e),"function"==typeof e.didRender?e.didRender(L()):"function"==typeof e.onRender&&e.onRender(L())},Qt=function(){return R()&&R().click()};var Jt=function(t){var e=L();e||Vn.fire(),e=L();var n=_(),o=U();!t&&ft(R())&&(t=R()),st(n),t&&(lt(t),o.setAttribute("data-button-to-replace",t.className)),o.parentNode.insertBefore(o,t),rt([e,n],P.loading),st(o),e.setAttribute("data-loading",!0),e.setAttribute("aria-busy",!0),e.focus()},$t={},Xt=function(t){return new Promise(function(e){if(!t)return e();var n=window.scrollX,o=window.scrollY;$t.restoreFocusTimeout=setTimeout(function(){$t.previousActiveElement&&$t.previousActiveElement.focus?($t.previousActiveElement.focus(),$t.previousActiveElement=null):document.body&&document.body.focus(),e()},100),void 0!==n&&void 0!==o&&window.scrollTo(n,o)})},Gt=function(){if($t.timeout)return function(){var t=K(),e=parseInt(window.getComputedStyle(t).width);t.style.removeProperty("transition"),t.style.width="100%";var n=parseInt(window.getComputedStyle(t).width),o=parseInt(e/n*100);t.style.removeProperty("transition"),t.style.width="".concat(o,"%")}(),$t.timeout.stop()},te=function(){if($t.timeout){var t=$t.timeout.start();return gt(t),t}},ee=!1,ne={};var oe=function(t){for(var e=t.target;e&&e!==document;e=e.parentNode)for(var n in ne){var o=e.getAttribute(n);if(o)return void ne[n].fire({template:o})}},ie={title:"",titleText:"",text:"",html:"",footer:"",icon:void 0,iconColor:void 0,iconHtml:void 0,template: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:{},target:"body",backdrop:!0,heightAuto:!0,allowOutsideClick:!0,allowEscapeKey:!0,allowEnterKey:!0,stopKeydownPropagation:!0,keydownListenerCapture:!1,showConfirmButton:!0,showDenyButton:!1,showCancelButton:!1,preConfirm:void 0,preDeny:void 0,confirmButtonText:"OK",confirmButtonAriaLabel:"",confirmButtonColor:void 0,denyButtonText:"No",denyButtonAriaLabel:"",denyButtonColor:void 0,cancelButtonText:"Cancel",cancelButtonAriaLabel:"",cancelButtonColor:void 0,buttonsStyling:!0,reverseButtons:!1,focusConfirm:!0,focusDeny:!1,focusCancel:!1,returnFocus:!0,showCloseButton:!1,closeButtonHtml:"&times;",closeButtonAriaLabel:"Close this dialog",loaderHtml:"",showLoaderOnConfirm:!1,showLoaderOnDeny:!1,imageUrl:void 0,imageWidth:void 0,imageHeight:void 0,imageAlt:"",timer:void 0,timerProgressBar:!1,width:void 0,padding:void 0,background:void 0,input:void 0,inputPlaceholder:"",inputLabel:"",inputValue:"",inputOptions:{},inputAutoTrim:!0,inputAttributes:{},inputValidator:void 0,returnInputValueOnDeny:!1,validationMessage:void 0,grow:!1,position:"center",progressSteps:[],currentProgressStep:void 0,progressStepsDistance:void 0,onBeforeOpen:void 0,onOpen:void 0,willOpen:void 0,didOpen:void 0,onRender:void 0,didRender:void 0,onClose:void 0,onAfterClose:void 0,willClose:void 0,didClose:void 0,onDestroy:void 0,didDestroy:void 0,scrollbarPadding:!0},re=["allowEscapeKey","allowOutsideClick","background","buttonsStyling","cancelButtonAriaLabel","cancelButtonColor","cancelButtonText","closeButtonAriaLabel","closeButtonHtml","confirmButtonAriaLabel","confirmButtonColor","confirmButtonText","currentProgressStep","customClass","denyButtonAriaLabel","denyButtonColor","denyButtonText","didClose","didDestroy","footer","hideClass","html","icon","iconColor","iconHtml","imageAlt","imageHeight","imageUrl","imageWidth","onAfterClose","onClose","onDestroy","progressSteps","returnFocus","reverseButtons","showCancelButton","showCloseButton","showConfirmButton","showDenyButton","text","title","titleText","willClose"],ae={animation:'showClass" and "hideClass',onBeforeOpen:"willOpen",onOpen:"didOpen",onRender:"didRender",onClose:"willClose",onAfterClose:"didClose",onDestroy:"didDestroy"},ue=["allowOutsideClick","allowEnterKey","backdrop","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],ce=function(t){return Object.prototype.hasOwnProperty.call(ie,t)},se=function(t){return ae[t]},le=function(t){ce(t)||h('Unknown parameter "'.concat(t,'"'))},de=function(t){-1!==ue.indexOf(t)&&h('The parameter "'.concat(t,'" is incompatible with toasts'))},pe=function(t){se(t)&&b(t,se(t))},fe=Object.freeze({isValidParameter:ce,isUpdatableParameter:function(t){return-1!==re.indexOf(t)},isDeprecatedParameter:se,argsToParams:function(e){var n={};return"object"!==t(e[0])||x(e[0])?["title","html","icon"].forEach(function(o,i){var r=e[i];"string"==typeof r||x(r)?n[o]=r:void 0!==r&&g("Unexpected type of ".concat(o,'! Expected "string" or "Element", got ').concat(t(r)))}):i(n,e[0]),n},isVisible:function(){return ft(L())},clickConfirm:Qt,clickDeny:function(){return N()&&N().click()},clickCancel:function(){return F()&&F().click()},getContainer:E,getPopup:L,getTitle:D,getContent:j,getHtmlContainer:M,getImage:I,getIcon:q,getInputLabel:function(){return T(P["input-label"])},getCloseButton:Y,getActions:_,getConfirmButton:R,getDenyButton:N,getCancelButton:F,getLoader:U,getHeader:z,getFooter:W,getTimerProgressBar:K,getFocusableElements:Z,getValidationMessage:V,isLoading:function(){return L().hasAttribute("data-loading")},fire:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return c(this,e)},mixin:function(t){var n=function(n){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&a(t,e)}(f,n);var c,d,p=(c=f,d=u(),function(){var t,e=r(c);if(d){var n=r(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return s(this,t)});function f(){return e(this,f),p.apply(this,arguments)}return o(f,[{key:"_main",value:function(e,n){return l(r(f.prototype),"_main",this).call(this,e,i({},t,n))}}]),f}(this);return n},queue:function(t){b("Swal.queue()","async/await");var e=this;_t=t;var n=function(t,e){_t=[],t(e)},o=[];return new Promise(function(t){!function i(r,a){r<_t.length?(document.body.setAttribute("data-swal2-queue-step",r),e.fire(_t[r]).then(function(e){void 0!==e.value?(o.push(e.value),i(r+1,a)):n(t,{dismiss:e.dismiss})})):n(t,{value:o})}(0)})},getQueueStep:zt,insertQueueStep:function(t,e){return e&&e<_t.length?_t.splice(e,0,t):_t.push(t)},deleteQueueStep:function(t){void 0!==_t[t]&&_t.splice(t,1)},showLoading:Jt,enableLoading:Jt,getTimerLeft:function(){return $t.timeout&&$t.timeout.getTimerLeft()},stopTimer:Gt,resumeTimer:te,toggleTimer:function(){var t=$t.timeout;return t&&(t.running?Gt():te())},increaseTimer:function(t){if($t.timeout){var e=$t.timeout.increase(t);return gt(e,!0),e}},isTimerRunning:function(){return $t.timeout&&$t.timeout.isRunning()},bindClickHandler:function(){ne[arguments.length>0&&void 0!==arguments[0]?arguments[0]:"data-swal-template"]=this,ee||(document.body.addEventListener("click",oe),ee=!0)}});function me(){if(Et.innerParams.get(this)){var t=Et.domCache.get(this);lt(t.loader);var e=t.popup.getElementsByClassName(t.loader.getAttribute("data-button-to-replace"));e.length?st(e[0],"inline-block"):ft(R())||ft(N())||ft(F())||lt(t.actions),at([t.popup,t.actions],P.loading),t.popup.removeAttribute("aria-busy"),t.popup.removeAttribute("data-loading"),t.confirmButton.disabled=!1,t.denyButton.disabled=!1,t.cancelButton.disabled=!1}}var he=function(){null===$.previousBodyPadding&&document.body.scrollHeight>window.innerHeight&&($.previousBodyPadding=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight="".concat($.previousBodyPadding+function(){var t=document.createElement("div");t.className=P["scrollbar-measure"],document.body.appendChild(t);var e=t.getBoundingClientRect().width-t.clientWidth;return document.body.removeChild(t),e}(),"px"))},ge=function(){if(!navigator.userAgent.match(/(CriOS|FxiOS|EdgiOS|YaBrowser|UCBrowser)/i)){L().scrollHeight>window.innerHeight-44&&(E().style.paddingBottom="".concat(44,"px"))}},ve=function(){var t,e=E();e.ontouchstart=function(e){t=be(e)},e.ontouchmove=function(e){t&&(e.preventDefault(),e.stopPropagation())}},be=function(t){var e=t.target,n=E();return!ye(t)&&!we(t)&&(e===n||!(mt(n)||"INPUT"===e.tagName||mt(j())&&j().contains(e)))},ye=function(t){return t.touches&&t.touches.length&&"stylus"===t.touches[0].touchType},we=function(t){return t.touches&&t.touches.length>1},Ce=function(){return!!window.MSInputMethodContext&&!!document.documentMode},ke=function(){var t=E(),e=L();t.style.removeProperty("align-items"),e.offsetTop<0&&(t.style.alignItems="flex-start")},Ae={swalPromiseResolve:new WeakMap};function xe(t,e,n,o){J()?Te(t,o):(Xt(n).then(function(){return Te(t,o)}),$t.keydownTarget.removeEventListener("keydown",$t.keydownHandler,{capture:$t.keydownListenerCapture}),$t.keydownHandlerAdded=!1),e.parentNode&&!document.body.getAttribute("data-swal2-queue-step")&&e.parentNode.removeChild(e),Q()&&(null!==$.previousBodyPadding&&(document.body.style.paddingRight="".concat($.previousBodyPadding,"px"),$.previousBodyPadding=null),function(){if(G(document.body,P.iosfix)){var t=parseInt(document.body.style.top,10);at(document.body,P.iosfix),document.body.style.top="",document.body.scrollTop=-1*t}}(),"undefined"!=typeof window&&Ce()&&window.removeEventListener("resize",ke),m(document.body.children).forEach(function(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")})),at([document.documentElement,document.body],[P.shown,P["height-auto"],P["no-backdrop"],P["toast-shown"]])}function Be(t){var e=L();if(e){t=Pe(t);var n=Et.innerParams.get(this);if(n&&!G(e,n.hideClass.popup)){var o=Ae.swalPromiseResolve.get(this);at(e,n.showClass.popup),rt(e,n.hideClass.popup);var i=E();at(i,n.showClass.backdrop),rt(i,n.hideClass.backdrop),Oe(this,e,n),o(t)}}}var Pe=function(t){return void 0===t?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:i({isConfirmed:!1,isDenied:!1,isDismissed:!1},t)},Oe=function(t,e,n){var o=E(),i=xt&&ht(e),r=n.onClose,a=n.onAfterClose,u=n.willClose,c=n.didClose;Ee(e,u,r),i?Se(t,e,o,n.returnFocus,c||a):xe(t,o,n.returnFocus,c||a)},Ee=function(t,e,n){null!==e&&"function"==typeof e?e(t):null!==n&&"function"==typeof n&&n(t)},Se=function(t,e,n,o,i){$t.swalCloseEventFinishedCallback=xe.bind(null,t,n,o,i),e.addEventListener(xt,function(t){t.target===e&&($t.swalCloseEventFinishedCallback(),delete $t.swalCloseEventFinishedCallback)})},Te=function(t,e){setTimeout(function(){"function"==typeof e&&e(),t._destroy()})};function Le(t,e,n){var o=Et.domCache.get(t);e.forEach(function(t){o[t].disabled=n})}function qe(t,e){if(!t)return!1;if("radio"===t.type)for(var n=t.parentNode.parentNode.querySelectorAll("input"),o=0;o<n.length;o++)n[o].disabled=e;else t.disabled=e}var De=function(){function t(n,o){e(this,t),this.callback=n,this.remaining=o,this.running=!1,this.start()}return o(t,[{key:"start",value:function(){return this.running||(this.running=!0,this.started=new Date,this.id=setTimeout(this.callback,this.remaining)),this.remaining}},{key:"stop",value:function(){return this.running&&(this.running=!1,clearTimeout(this.id),this.remaining-=new Date-this.started),this.remaining}},{key:"increase",value:function(t){var e=this.running;return e&&this.stop(),this.remaining+=t,e&&this.start(),this.remaining}},{key:"getTimerLeft",value:function(){return this.running&&(this.stop(),this.start()),this.remaining}},{key:"isRunning",value:function(){return this.running}}]),t}(),je={email:function(t,e){return/^[a-zA-Z0-9.+_-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]{2,24}$/.test(t)?Promise.resolve():Promise.resolve(e||"Invalid email address")},url:function(t,e){return/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(t)?Promise.resolve():Promise.resolve(e||"Invalid URL")}};function Me(t){!function(t){t.inputValidator||Object.keys(je).forEach(function(e){t.input===e&&(t.inputValidator=je[e])})}(t),t.showLoaderOnConfirm&&!t.preConfirm&&h("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"),t.animation=y(t.animation),function(t){(!t.target||"string"==typeof t.target&&!document.querySelector(t.target)||"string"!=typeof t.target&&!t.target.appendChild)&&(h('Target parameter is not valid, defaulting to "body"'),t.target="body")}(t),"string"==typeof t.title&&(t.title=t.title.split("\n").join("<br />")),wt(t)}var Ie=["swal-title","swal-html","swal-footer"],He=function(e){var n={};return m(e.querySelectorAll("swal-param")).forEach(function(e){ze(e,["name","value"]);var o=e.getAttribute("name"),i=e.getAttribute("value");"boolean"==typeof ie[o]&&"false"===i&&(i=!1),"object"===t(ie[o])&&(i=JSON.parse(i)),n[o]=i}),n},Ve=function(t){var e={};return m(t.querySelectorAll("swal-button")).forEach(function(t){ze(t,["type","color","aria-label"]);var n=t.getAttribute("type");e["".concat(n,"ButtonText")]=t.innerHTML,e["show".concat(p(n),"Button")]=!0,t.hasAttribute("color")&&(e["".concat(n,"ButtonColor")]=t.getAttribute("color")),t.hasAttribute("aria-label")&&(e["".concat(n,"ButtonAriaLabel")]=t.getAttribute("aria-label"))}),e},Re=function(t){var e={},n=t.querySelector("swal-image");return n&&(ze(n,["src","width","height","alt"]),n.hasAttribute("src")&&(e.imageUrl=n.getAttribute("src")),n.hasAttribute("width")&&(e.imageWidth=n.getAttribute("width")),n.hasAttribute("height")&&(e.imageHeight=n.getAttribute("height")),n.hasAttribute("alt")&&(e.imageAlt=n.getAttribute("alt"))),e},Ne=function(t){var e={},n=t.querySelector("swal-icon");return n&&(ze(n,["type","color"]),n.hasAttribute("type")&&(e.icon=n.getAttribute("type")),n.hasAttribute("color")&&(e.iconColor=n.getAttribute("color")),e.iconHtml=n.innerHTML),e},Ue=function(t){var e={},n=t.querySelector("swal-input");n&&(ze(n,["type","label","placeholder","value"]),e.input=n.getAttribute("type")||"text",n.hasAttribute("label")&&(e.inputLabel=n.getAttribute("label")),n.hasAttribute("placeholder")&&(e.inputPlaceholder=n.getAttribute("placeholder")),n.hasAttribute("value")&&(e.inputValue=n.getAttribute("value")));var o=t.querySelectorAll("swal-input-option");return o.length&&(e.inputOptions={},m(o).forEach(function(t){ze(t,["value"]);var n=t.getAttribute("value"),o=t.innerHTML;e.inputOptions[n]=o})),e},Fe=function(t,e){var n={};for(var o in e){var i=e[o],r=t.querySelector(i);r&&(ze(r,[]),n[i.replace(/^swal-/,"")]=r.innerHTML.trim())}return n},_e=function(t){var e=Ie.concat(["swal-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);m(t.querySelectorAll("*")).forEach(function(n){if(n.parentNode===t){var o=n.tagName.toLowerCase();-1===e.indexOf(o)&&h("Unrecognized element <".concat(o,">"))}})},ze=function(t,e){m(t.attributes).forEach(function(n){-1===e.indexOf(n.name)&&h(['Unrecognized attribute "'.concat(n.name,'" on <').concat(t.tagName.toLowerCase(),">."),"".concat(e.length?"Allowed attributes are: ".concat(e.join(", ")):"To set the value, use HTML within the element.")])})},We=function(t){var e=E(),n=L();"function"==typeof t.willOpen?t.willOpen(n):"function"==typeof t.onBeforeOpen&&t.onBeforeOpen(n);var o=window.getComputedStyle(document.body).overflowY;Je(e,n,t),setTimeout(function(){Ze(e,n)},10),Q()&&(Qe(e,t.scrollbarPadding,o),m(document.body.children).forEach(function(t){t===E()||function(t,e){if("function"==typeof t.contains)return t.contains(e)}(t,E())||(t.hasAttribute("aria-hidden")&&t.setAttribute("data-previous-aria-hidden",t.getAttribute("aria-hidden")),t.setAttribute("aria-hidden","true"))})),J()||$t.previousActiveElement||($t.previousActiveElement=document.activeElement),Ke(n,t),at(e,P["no-transition"])},Ke=function(t,e){"function"==typeof e.didOpen?setTimeout(function(){return e.didOpen(t)}):"function"==typeof e.onOpen&&setTimeout(function(){return e.onOpen(t)})},Ye=function t(e){var n=L();if(e.target===n){var o=E();n.removeEventListener(xt,t),o.style.overflowY="auto"}},Ze=function(t,e){xt&&ht(e)?(t.style.overflowY="hidden",e.addEventListener(xt,Ye)):t.style.overflowY="auto"},Qe=function(t,e,n){!function(){if((/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1)&&!G(document.body,P.iosfix)){var t=document.body.scrollTop;document.body.style.top="".concat(-1*t,"px"),rt(document.body,P.iosfix),ve(),ge()}}(),"undefined"!=typeof window&&Ce()&&(ke(),window.addEventListener("resize",ke)),e&&"hidden"!==n&&he(),setTimeout(function(){t.scrollTop=0})},Je=function(t,e,n){rt(t,n.showClass.backdrop),e.style.setProperty("opacity","0","important"),st(e),setTimeout(function(){rt(e,n.showClass.popup),e.style.removeProperty("opacity")},10),rt([document.documentElement,document.body],P.shown),n.heightAuto&&n.backdrop&&!n.toast&&rt([document.documentElement,document.body],P["height-auto"])},$e=function(t){return t.checked?1:0},Xe=function(t){return t.checked?t.value:null},Ge=function(t){return t.files.length?null!==t.getAttribute("multiple")?t.files:t.files[0]:null},tn=function(e,n){var o=j(),i=function(t){return nn[n.input](o,on(t),n)};w(n.inputOptions)||k(n.inputOptions)?(Jt(R()),C(n.inputOptions).then(function(t){e.hideLoading(),i(t)})):"object"===t(n.inputOptions)?i(n.inputOptions):g("Unexpected type of inputOptions! Expected object, Map or Promise, got ".concat(t(n.inputOptions)))},en=function(t,e){var n=t.getInput();lt(n),C(e.inputValue).then(function(o){n.value="number"===e.input?parseFloat(o)||0:"".concat(o),st(n),n.focus(),t.hideLoading()}).catch(function(e){g("Error in inputValue promise: ".concat(e)),n.value="",st(n),n.focus(),t.hideLoading()})},nn={select:function(t,e,n){var o=ut(t,P.select),i=function(t,e,o){var i=document.createElement("option");i.value=o,X(i,e),i.selected=rn(o,n.inputValue),t.appendChild(i)};e.forEach(function(t){var e=t[0],n=t[1];if(Array.isArray(n)){var r=document.createElement("optgroup");r.label=e,r.disabled=!1,o.appendChild(r),n.forEach(function(t){return i(r,t[1],t[0])})}else i(o,n,e)}),o.focus()},radio:function(t,e,n){var o=ut(t,P.radio);e.forEach(function(t){var e=t[0],i=t[1],r=document.createElement("input"),a=document.createElement("label");r.type="radio",r.name=P.radio,r.value=e,rn(e,n.inputValue)&&(r.checked=!0);var u=document.createElement("span");X(u,i),u.className=P.label,a.appendChild(r),a.appendChild(u),o.appendChild(a)});var i=o.querySelectorAll("input");i.length&&i[0].focus()}},on=function e(n){var o=[];return"undefined"!=typeof Map&&n instanceof Map?n.forEach(function(n,i){var r=n;"object"===t(r)&&(r=e(r)),o.push([i,r])}):Object.keys(n).forEach(function(i){var r=n[i];"object"===t(r)&&(r=e(r)),o.push([i,r])}),o},rn=function(t,e){return e&&e.toString()===t.toString()},an=function(t,e,n){var o=function(t,e){var n=t.getInput();if(!n)return null;switch(e.input){case"checkbox":return $e(n);case"radio":return Xe(n);case"file":return Ge(n);default:return e.inputAutoTrim?n.value.trim():n.value}}(t,e);e.inputValidator?un(t,e,o):t.getInput().checkValidity()?"deny"===n?cn(t,e,o):ln(t,e,o):(t.enableButtons(),t.showValidationMessage(e.validationMessage))},un=function(t,e,n){t.disableInput(),Promise.resolve().then(function(){return C(e.inputValidator(n,e.validationMessage))}).then(function(o){t.enableButtons(),t.enableInput(),o?t.showValidationMessage(o):ln(t,e,n)})},cn=function(t,e,n){(e.showLoaderOnDeny&&Jt(N()),e.preDeny)?Promise.resolve().then(function(){return C(e.preDeny(n,e.validationMessage))}).then(function(e){!1===e?t.hideLoading():t.closePopup({isDenied:!0,value:void 0===e?n:e})}):t.closePopup({isDenied:!0,value:n})},sn=function(t,e){t.closePopup({isConfirmed:!0,value:e})},ln=function(t,e,n){(e.showLoaderOnConfirm&&Jt(),e.preConfirm)?(t.resetValidationMessage(),Promise.resolve().then(function(){return C(e.preConfirm(n,e.validationMessage))}).then(function(e){ft(V())||!1===e?t.hideLoading():sn(t,void 0===e?n:e)})):sn(t,n)},dn=function(t,e,n){var o=Z();if(o.length)return(e+=n)===o.length?e=0:-1===e&&(e=o.length-1),o[e].focus();L().focus()},pn=["ArrowRight","ArrowDown","Right","Down"],fn=["ArrowLeft","ArrowUp","Left","Up"],mn=["Escape","Esc"],hn=function(t,e,n){var o=Et.innerParams.get(t);o&&(o.stopKeydownPropagation&&e.stopPropagation(),"Enter"===e.key?gn(t,e,o):"Tab"===e.key?vn(e,o):-1!==[].concat(pn,fn).indexOf(e.key)?bn(e.key):-1!==mn.indexOf(e.key)&&yn(e,o,n))},gn=function(t,e,n){if(!e.isComposing&&e.target&&t.getInput()&&e.target.outerHTML===t.getInput().outerHTML){if(-1!==["textarea","file"].indexOf(n.input))return;Qt(),e.preventDefault()}},vn=function(t,e){for(var n=t.target,o=Z(),i=-1,r=0;r<o.length;r++)if(n===o[r]){i=r;break}t.shiftKey?dn(0,i,-1):dn(0,i,1),t.stopPropagation(),t.preventDefault()},bn=function(t){if(-1!==[R(),N(),F()].indexOf(document.activeElement)){var e=-1!==pn.indexOf(t)?"nextElementSibling":"previousElementSibling",n=document.activeElement[e];n&&n.focus()}},yn=function(t,e,n){y(e.allowEscapeKey)&&(t.preventDefault(),n(A.esc))},wn=function(t,e,n){e.popup.onclick=function(){var e=Et.innerParams.get(t);e.showConfirmButton||e.showDenyButton||e.showCancelButton||e.showCloseButton||e.timer||e.input||n(A.close)}},Cn=!1,kn=function(t){t.popup.onmousedown=function(){t.container.onmouseup=function(e){t.container.onmouseup=void 0,e.target===t.container&&(Cn=!0)}}},An=function(t){t.container.onmousedown=function(){t.popup.onmouseup=function(e){t.popup.onmouseup=void 0,(e.target===t.popup||t.popup.contains(e.target))&&(Cn=!0)}}},xn=function(t,e,n){e.container.onclick=function(o){var i=Et.innerParams.get(t);Cn?Cn=!1:o.target===e.container&&y(i.allowOutsideClick)&&n(A.backdrop)}};var Bn=function(t,e){var n=function(t){var e="string"==typeof t.template?document.querySelector(t.template):t.template;if(!e)return{};var n=e.content||e;return _e(n),i(He(n),Ve(n),Re(n),Ne(n),Ue(n),Fe(n,Ie))}(t),o=i({},ie,e,n,t);return o.showClass=i({},ie.showClass,o.showClass),o.hideClass=i({},ie.hideClass,o.hideClass),!1===t.animation&&(o.showClass={popup:"swal2-noanimation",backdrop:"swal2-noanimation"},o.hideClass={}),o},Pn=function(t,e,n){return new Promise(function(o){var i=function(e){t.closePopup({isDismissed:!0,dismiss:e})};Ae.swalPromiseResolve.set(t,o),e.confirmButton.onclick=function(){return function(t,e){t.disableButtons(),e.input?an(t,e,"confirm"):ln(t,e,!0)}(t,n)},e.denyButton.onclick=function(){return function(t,e){t.disableButtons(),e.returnInputValueOnDeny?an(t,e,"deny"):cn(t,e,!1)}(t,n)},e.cancelButton.onclick=function(){return function(t,e){t.disableButtons(),e(A.cancel)}(t,i)},e.closeButton.onclick=function(){return i(A.close)},function(t,e,n){Et.innerParams.get(t).toast?wn(t,e,n):(kn(e),An(e),xn(t,e,n))}(t,e,i),function(t,e,n,o){e.keydownTarget&&e.keydownHandlerAdded&&(e.keydownTarget.removeEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!1),n.toast||(e.keydownHandler=function(e){return hn(t,e,o)},e.keydownTarget=n.keydownListenerCapture?window:L(),e.keydownListenerCapture=n.keydownListenerCapture,e.keydownTarget.addEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!0)}(t,$t,n,i),function(t,e){"select"===e.input||"radio"===e.input?tn(t,e):-1!==["text","email","number","tel","textarea"].indexOf(e.input)&&(w(e.inputValue)||k(e.inputValue))&&en(t,e)}(t,n),We(n),En($t,n,i),Sn(e,n),setTimeout(function(){e.container.scrollTop=0})})},On=function(t){var e={popup:L(),container:E(),content:j(),actions:_(),confirmButton:R(),denyButton:N(),cancelButton:F(),loader:U(),closeButton:Y(),validationMessage:V(),progressSteps:H()};return Et.domCache.set(t,e),e},En=function(t,e,n){var o=K();lt(o),e.timer&&(t.timeout=new De(function(){n("timer"),delete t.timeout},e.timer),e.timerProgressBar&&(st(o),setTimeout(function(){t.timeout&&t.timeout.running&&gt(e.timer)})))},Sn=function(t,e){if(!e.toast)return y(e.allowEnterKey)?void(Tn(t,e)||dn(0,-1,1)):Ln()},Tn=function(t,e){return e.focusDeny&&ft(t.denyButton)?(t.denyButton.focus(),!0):e.focusCancel&&ft(t.cancelButton)?(t.cancelButton.focus(),!0):!(!e.focusConfirm||!ft(t.confirmButton))&&(t.confirmButton.focus(),!0)},Ln=function(){document.activeElement&&"function"==typeof document.activeElement.blur&&document.activeElement.blur()};var qn,Dn=function(t){"function"==typeof t.didDestroy?t.didDestroy():"function"==typeof t.onDestroy&&t.onDestroy()},jn=function(t){delete t.params,delete $t.keydownHandler,delete $t.keydownTarget,Mn(Et),Mn(Ae)},Mn=function(t){for(var e in t)t[e]=new WeakMap},In=Object.freeze({hideLoading:me,disableLoading:me,getInput:function(t){var e=Et.innerParams.get(t||this),n=Et.domCache.get(t||this);return n?et(n.content,e.input):null},close:Be,closePopup:Be,closeModal:Be,closeToast:Be,enableButtons:function(){Le(this,["confirmButton","denyButton","cancelButton"],!1)},disableButtons:function(){Le(this,["confirmButton","denyButton","cancelButton"],!0)},enableInput:function(){return qe(this.getInput(),!1)},disableInput:function(){return qe(this.getInput(),!0)},showValidationMessage:function(t){var e=Et.domCache.get(this),n=Et.innerParams.get(this);X(e.validationMessage,t),e.validationMessage.className=P["validation-message"],n.customClass&&n.customClass.validationMessage&&rt(e.validationMessage,n.customClass.validationMessage),st(e.validationMessage);var o=this.getInput();o&&(o.setAttribute("aria-invalid",!0),o.setAttribute("aria-describedBy",P["validation-message"]),ot(o),rt(o,P.inputerror))},resetValidationMessage:function(){var t=Et.domCache.get(this);t.validationMessage&&lt(t.validationMessage);var e=this.getInput();e&&(e.removeAttribute("aria-invalid"),e.removeAttribute("aria-describedBy"),at(e,P.inputerror))},getProgressSteps:function(){return Et.domCache.get(this).progressSteps},_main:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!function(t){for(var e in t)le(e),t.toast&&de(e),pe(e)}(i({},e,t)),$t.currentInstance&&$t.currentInstance._destroy(),$t.currentInstance=this;var n=Bn(t,e);Me(n),Object.freeze(n),$t.timeout&&($t.timeout.stop(),delete $t.timeout),clearTimeout($t.restoreFocusTimeout);var o=On(this);return Zt(this,n),Et.innerParams.set(this,n),Pn(this,o,n)},update:function(t){var e=L(),n=Et.innerParams.get(this);if(!e||G(e,n.hideClass.popup))return h("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.");var o={};Object.keys(t).forEach(function(e){Vn.isUpdatableParameter(e)?o[e]=t[e]:h('Invalid parameter to update: "'.concat(e,'". Updatable params are listed here: https://github.com/sweetalert2/sweetalert2/blob/master/src/utils/params.js\n\nIf you think this parameter should be updatable, request it here: https://github.com/sweetalert2/sweetalert2/issues/new?template=02_feature_request.md'))});var r=i({},n,o);Zt(this,r),Et.innerParams.set(this,r),Object.defineProperties(this,{params:{value:i({},this.params,t),writable:!1,enumerable:!0}})},_destroy:function(){var t=Et.domCache.get(this),e=Et.innerParams.get(this);e&&(t.popup&&$t.swalCloseEventFinishedCallback&&($t.swalCloseEventFinishedCallback(),delete $t.swalCloseEventFinishedCallback),$t.deferDisposalTimer&&(clearTimeout($t.deferDisposalTimer),delete $t.deferDisposalTimer),Dn(e),jn(this))}}),Hn=function(){function t(){if(e(this,t),"undefined"!=typeof window){"undefined"==typeof Promise&&g("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)"),qn=this;for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];var r=Object.freeze(this.constructor.argsToParams(o));Object.defineProperties(this,{params:{value:r,writable:!1,enumerable:!0,configurable:!0}});var a=this._main(this.params);Et.promise.set(this,a)}}return o(t,[{key:"then",value:function(t){return Et.promise.get(this).then(t)}},{key:"finally",value:function(t){return Et.promise.get(this).finally(t)}}]),t}();i(Hn.prototype,In),i(Hn,fe),Object.keys(In).forEach(function(t){Hn[t]=function(){var e;if(qn)return(e=qn)[t].apply(e,arguments)}}),Hn.DismissReason=A,Hn.version="10.16.7";var Vn=Hn;return Vn.default=Vn,Vn}),void 0!==this&&this.Sweetalert2&&(this.swal=this.sweetAlert=this.Swal=this.SweetAlert=this.Sweetalert2);