1/*! For license information please see scripts.min.js.LICENSE.txt */ 2(()=>{var __webpack_modules__={227:()=>{jQuery(function(e){if(e("body").hasClass("single-post")||e("body").hasClass("single-sludinajumi")||e("body").hasClass("single-events")){let t=!0;const i=e("body").attr("class").split("postid-")[1].split(" ")[0];let s=localStorage.getItem("viewed-posts");if(s){let n=JSON.parse(s);e.each(n,function(e,s){i===s&&(t=!1)}),t&&(n.push(i),localStorage.setItem("viewed-posts",JSON.stringify(n)))}else localStorage.setItem("viewed-posts",JSON.stringify([i]));e.ajax({type:"POST",url:"/wp-admin/admin-ajax.php?action=setAndGetPostViews",data:{post_id:i,set_count:t,nonce:globalAjaxVariables.globalNonce},success:function(t){const i=JSON.parse(t);e(".views-count").html(i.viewsCount)}})}})},279:(e,t,i)=>{var s,n;window.FontAwesomeKitConfig={id:13232575,version:"6.5.1",token:"7704ba16c7",method:"css",baseUrl:"https://ka-f.fontawesome.com",license:"free",asyncLoading:{enabled:!1},autoA11y:{enabled:!0},baseUrlKit:"https://kit.fontawesome.com",detectConflictsUntil:null,iconUploads:{},minify:{enabled:!0},v4FontFaceShim:{enabled:!0},v4shim:{enabled:!0},v5FontFaceShim:{enabled:!0}},void 0===(n="function"==typeof(s=function(){"use strict";function e(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),i.push.apply(i,s)}return i}function t(t){for(var i=1;i<arguments.length;i++){var s=null!=arguments[i]?arguments[i]:{};i%2?e(Object(s),!0).forEach(function(e){n(t,e,s[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(s)):e(Object(s)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(s,e))})}return t}function s(e){return(s="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 n(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var s=i.call(e,t||"default");if("object"!=typeof s)return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var s,n,a,o,r=[],l=!0,d=!1;try{if(a=(i=i.call(e)).next,0===t){if(Object(i)!==i)return;l=!1}else for(;!(l=(s=a.call(i)).done)&&(r.push(s.value),r.length!==t);l=!0);}catch(e){d=!0,n=e}finally{try{if(!l&&null!=i.return&&(o=i.return(),Object(o)!==o))return}finally{if(d)throw n}}return r}}(e,t)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?o(e,t):void 0}}(e,t)||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.")}()}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,s=new Array(t);i<t;i++)s[i]=e[i];return s}var r="sharp",l=["classic","duotone","sharp"],d=["fak","fa-kit","fakd","fa-kit-duotone"],c=["fa","fas","fa-solid","far","fa-regular","fal","fa-light","fat","fa-thin","fad","fa-duotone","fab","fa-brands","fass","fasr","fasl","fast"];function u(e,t){var i=t&&t.addOn||"",s=t&&t.baseFilename||e.license+i,n=t&&t.minify?".min":"",a=t&&t.fileSuffix||e.method,o=t&&t.subdir||e.method;return e.baseUrl+"/releases/"+("latest"===e.version?"latest":"v".concat(e.version))+"/"+o+"/"+s+n+"."+a}function p(e,t){var i=t||["fa"],s="."+Array.prototype.join.call(i,",."),n=e.querySelectorAll(s);Array.prototype.forEach.call(n,function(t){var i=t.getAttribute("title");t.setAttribute("aria-hidden","true");var s=!t.nextElementSibling||!t.nextElementSibling.classList.contains("sr-only");if(i&&s){var n=e.createElement("span");n.innerHTML=i,n.classList.add("sr-only"),t.parentNode.insertBefore(n,t.nextSibling)}})}var h,m=function(){},f=void 0!==i.g&&void 0!==i.g.process&&"function"==typeof i.g.process.emit,w="undefined"==typeof setImmediate?setTimeout:setImmediate,g=[];function v(){for(var e=0;e<g.length;e++)g[e][0](g[e][1]);g=[],h=!1}function b(e,t){g.push([e,t]),h||(h=!0,w(v,0))}function y(e){var t=e.owner,i=t._state,s=t._data,n=e[i],a=e.then;if("function"==typeof n){i="fulfilled";try{s=n(s)}catch(e){k(a,e)}}_(a,s)||("fulfilled"===i&&x(a,s),"rejected"===i&&k(a,s))}function _(e,t){var i;try{if(e===t)throw new TypeError("A promises callback cannot return that same promise.");if(t&&("function"==typeof t||"object"===s(t))){var n=t.then;if("function"==typeof n)return n.call(t,function(s){i||(i=!0,t===s?F(e,s):x(e,s))},function(t){i||(i=!0,k(e,t))}),!0}}catch(t){return i||k(e,t),!0}return!1}function x(e,t){e!==t&&_(e,t)||F(e,t)}function F(e,t){"pending"===e._state&&(e._state="settled",e._data=t,b(A,e))}function k(e,t){"pending"===e._state&&(e._state="settled",e._data=t,b(P,e))}
2function C(e){e._then=e._then.forEach(y)}function A(e){e._state="fulfilled",C(e)}function P(e){e._state="rejected",C(e),!e._handled&&f&&i.g.process.emit("unhandledRejection",e._data,e)}function S(e){i.g.process.emit("rejectionHandled",e)}function z(e){if("function"!=typeof e)throw new TypeError("Promise resolver "+e+" is not a function");if(this instanceof z==0)throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.");this._then=[],function(e,t){function i(e){k(t,e)}try{e(function(e){x(t,e)},i)}catch(e){i(e)}}(e,this)}z.prototype={constructor:z,_state:"pending",_then:null,_data:void 0,_handled:!1,then:function(e,t){var i={owner:this,then:new this.constructor(m),fulfilled:e,rejected:t};return!t&&!e||this._handled||(this._handled=!0,"rejected"===this._state&&f&&b(S,this)),"fulfilled"===this._state||"rejected"===this._state?b(y,i):this._then.push(i),i.then},catch:function(e){return this.then(null,e)}},z.all=function(e){if(!Array.isArray(e))throw new TypeError("You must pass an array to Promise.all().");return new z(function(t,i){var s=[],n=0;function a(e){return n++,function(i){s[e]=i,--n||t(s)}}for(var o,r=0;r<e.length;r++)(o=e[r])&&"function"==typeof o.then?o.then(a(r),i):s[r]=o;n||t(s)})},z.race=function(e){if(!Array.isArray(e))throw new TypeError("You must pass an array to Promise.race().");return new z(function(t,i){for(var s,n=0;n<e.length;n++)(s=e[n])&&"function"==typeof s.then?s.then(t,i):t(s)})},z.resolve=function(e){return e&&"object"===s(e)&&e.constructor===z?e:new z(function(t){t(e)})},z.reject=function(e){return new z(function(t,i){i(e)})};var D="function"==typeof Promise?Promise:z;function j(e,t){var i=t.fetch,s=t.XMLHttpRequest,n=t.token,a=e;return n&&!function(e){return e.indexOf("kit-upload.css")>-1}(e)&&("URLSearchParams"in window?(a=new URL(e)).searchParams.set("token",n):a=a+"?token="+encodeURIComponent(n)),a=a.toString(),new D(function(e,t){if("function"==typeof i)i(a,{mode:"cors",cache:"default"}).then(function(e){if(e.ok)return e.text();throw new Error("")}).then(function(t){e(t)}).catch(t);else if("function"==typeof s){var n=new s;n.addEventListener("loadend",function(){this.responseText?e(this.responseText):t(new Error(""))}),["abort","error","timeout"].map(function(e){n.addEventListener(e,function(){t(new Error(""))})}),n.open("GET",a),n.send()}else t(new Error(""))})}function E(e,t,i){var s=e;return[[/(url\("?)\.\.\/\.\.\/\.\./g,function(e,i){return"".concat(i).concat(t)}],[/(url\("?)\.\.\/webfonts/g,function(e,s){return"".concat(s).concat(t,"/releases/v").concat(i,"/webfonts")}],[/(url\("?)https:\/\/kit-free([^.])*\.fontawesome\.com/g,function(e,i){return"".concat(i).concat(t)}]].forEach(function(e){var t=a(e,2),i=t[0],n=t[1];s=s.replace(i,n)}),s}function T(e,i){var s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){},n=i.document||n,a=p.bind(p,n,[].concat(c,d,l.map(function(e){return"fa-".concat(e)})));e.autoA11y.enabled&&s(a);var o=e.subsetPath&&e.baseUrl+"/"+e.subsetPath,r=[{id:"fa-main",addOn:void 0,url:o}];if(e.v4shim&&e.v4shim.enabled&&r.push({id:"fa-v4-shims",addOn:"-v4-shims"}),e.v5FontFaceShim&&e.v5FontFaceShim.enabled&&r.push({id:"fa-v5-font-face",addOn:"-v5-font-face"}),e.v4FontFaceShim&&e.v4FontFaceShim.enabled&&r.push({id:"fa-v4-font-face",addOn:"-v4-font-face"}),!o&&e.customIconsCssPath){var h=(e.customIconsCssPath.indexOf("kit-upload.css")>-1?e.baseUrlKit:e.baseUrl)+"/"+e.customIconsCssPath;r.push({id:"fa-kit-upload",url:h})}var m=r.map(function(s){return new D(function(n,a){var o=s.url||u(e,{addOn:s.addOn,minify:e.minify.enabled}),r={id:s.id},l=e.subset?r:t(t(t({},i),r),{},{baseUrl:e.baseUrl,version:e.version,id:s.id,contentFilter:function(e,t){return E(e,t.baseUrl,t.version)}});j(o,i).then(function(e){n(L(e,l))}).catch(a)})});return D.all(m)}function L(e,t){var i=t.contentFilter||function(e,t){return e},s=document.createElement("style"),n=document.createTextNode(i(e,t));return s.appendChild(n),s.media="all",t.id&&s.setAttribute("id",t.id),t&&t.detectingConflicts&&t.detectionIgnoreAttr&&s.setAttributeNode(document.createAttribute(t.detectionIgnoreAttr)),s}function I(e,i){i.autoA11y=e.autoA11y.enabled,"pro"===e.license&&(i.autoFetchSvg=!0,i.fetchSvgFrom=e.baseUrl+"/releases/"+("latest"===e.version?"latest":"v".concat(e.version))+"/svgs",i.fetchUploadedSvgFrom=e.uploadsUrl);var s=[];return e.v4shim.enabled&&s.push(new D(function(s,n){j(u(e,{addOn:"-v4-shims",minify:e.minify.enabled}),i).then(function(e){s(O(e,t(t({},i),{},{id:"fa-v4-shims"})))}).catch(n)})),s.push(new D(function(s,n){j(e.subsetPath&&e.baseUrl+"/"+e.subsetPath||u(e,{minify:e.minify.enabled}),i).then(function(e){var n=O(e,t(t({},i),{},{id:"fa-main"}));s(function(e,t){var i=t&&void 0!==t.autoFetchSvg?t.autoFetchSvg:void 0,s=t&&void 0!==t.autoA11y?t.autoA11y:void 0;return void 0!==s&&e.setAttribute("data-auto-a11y",s?"true":"false"),i&&(e.setAttributeNode(document.createAttribute("data-auto-fetch-svg")),e.setAttribute("data-fetch-svg-from",t.fetchSvgFrom),e.setAttribute("data-fetch-uploaded-svg-from",t.fetchUploadedSvgFrom)),e}(n,i))}).catch(n)})),D.all(s)}function O(e,t){var i=document.createElement("SCRIPT"),s=document.createTextNode(e);
2return i.appendChild(s),i.referrerPolicy="strict-origin",t.id&&i.setAttribute("id",t.id),t&&t.detectingConflicts&&t.detectionIgnoreAttr&&i.setAttributeNode(document.createAttribute(t.detectionIgnoreAttr)),i}function B(e){var t,i=[],s=document,n=(s.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(s.readyState);n||s.addEventListener("DOMContentLoaded",t=function(){for(s.removeEventListener("DOMContentLoaded",t),n=1;t=i.shift();)t()}),n?setTimeout(e,0):i.push(e)}function M(e){"undefined"!=typeof MutationObserver&&new MutationObserver(e).observe(document,{childList:!0,subtree:!0})}try{if(window.FontAwesomeKitConfig){var $=window.FontAwesomeKitConfig,Z={detectingConflicts:$.detectConflictsUntil&&new Date<=new Date($.detectConflictsUntil),detectionIgnoreAttr:"data-fa-detection-ignore",fetch:window.fetch,token:$.token,XMLHttpRequest:window.XMLHttpRequest,document},N=document.currentScript,q=N?N.parentElement:document.head;(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"js"===e.method?I(e,t):"css"===e.method?T(e,t,function(e){B(e),M(e)}):void 0})($,Z).then(function(e){e.map(function(e){try{q.insertBefore(e,N?N.nextSibling:null)}catch(t){q.appendChild(e)}}),Z.detectingConflicts&&N&&B(function(){N.setAttributeNode(document.createAttribute(Z.detectionIgnoreAttr));var e=function(e,t){var i=document.createElement("script");return t&&t.detectionIgnoreAttr&&i.setAttributeNode(document.createAttribute(t.detectionIgnoreAttr)),i.src=u(e,{baseFilename:"conflict-detection",fileSuffix:"js",subdir:"js",minify:e.minify.enabled}),i}($,Z);document.body.appendChild(e)})}).catch(function(e){console.error("".concat("Font Awesome Kit:"," ").concat(e))})}}catch(r){console.error("".concat("Font Awesome Kit:"," ").concat(r))}})?s.call(t,i,t,e):s)||(e.exports=n)},298:()=>{jQuery(function(e){jQuery("body").hasClass("single-post")&&(e(".single-post .post-content .main-image img, .single-post .post-content .content img").each(function(){var t=e(this);if(t.parent().is("a")){var i=t.parent(),s=i.attr("href");s&&s.match(/\.(jpeg|jpg|gif|png|webp|svg|bmp)(\?.*)?$/i)&&(i.attr("data-zoom")||i.attr("data-zoom","raksts"))}else t.wrap(e("<a></a>",{href:t.attr("src")}).attr("data-zoom","raksts"))}),e(".single-post .post-content .main-image .caption, .single-post .post-content .content figcaption").each(function(){var t=e(this).closest(".main-image, figure").find("a[data-zoom]").first();t.length&&e(this).css("cursor","zoom-in").on("click",function(i){if(!e(i.target).closest("a, button").length){var s=window.getSelection&&window.getSelection();s&&String(s).trim()||t[0].click()}})}))})},399:()=>{jQuery(function(e){e("#edit-profile-form .js-latvijas-pasts").lpaisais({showRegion:!0}),e("#edit-profile-form .js-toggle-latvijas-pasts").on("click",function(){e("#edit-profile-form .js-latvijas-pasts").toggleClass("active")});let t=!1;e("#edit-profile-form .js-submit").on("click",function(i){if(i.preventDefault(),t)return;t=!0;let s=e(this).parent(),n=e("#edit-profile-form input[name='first_name']"),a=e("#edit-profile-form input[name='last_name']"),o=e("#edit-profile-form input[name='email_address']"),r=e("#edit-profile-form input[name='phone_number']"),l=e("#edit-profile-form input[name='company_name']"),d=e("#edit-profile-form input[name='company_registration_number']"),c=[],u=e("#edit-profile-form input[name='password']"),p=e("#edit-profile-form input[name='password_repeat']"),h=!0,m="";e("#edit-profile-form .notification-message, #edit-profile-form .submit-notification").html(""),""===n.val()&&(h=!1,n.parent().find(".notification-message").html("Ievadi vÄrdu!"),""===m&&(m=n.parent())),""===a.val()&&(h=!1,a.parent().find(".notification-message").html("Ievadi uzvÄrdu!"),""===m&&(m=a.parent()));""===o.val()?(h=!1,o.parent().find(".notification-message").html("Ievadi e-pasta adresi!"),""===m&&(m=o.parent())):/^([a-z\d!#$%&'*+\-\/=?^_`{|}~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+(\.[a-z\d!#$%&'*+\-\/=?^_`{|}~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+)*|"((([ \t]*\r\n)?[ \t]+)?([\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|\\[\x01-\x09\x0b\x0c\x0d-\x7f\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))*(([ \t]*\r\n)?[ \t]+)?")@(([a-z\d\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|[a-z\d\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF][a-z\d\-._~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]*[a-z\d\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])\.)+([a-z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|[a-z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF][a-z\d\-._~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]*[a-z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])\.?$/i.test(o.val())||(h=!1,o.parent().find(".notification-message").html("E-pasta adrese nav derÄ«ga!"),""===m&&(m=o.parent())),""!==d.val()&&""===l.val()&&(h=!1,l.parent().find(".notification-message").html("Ievadi uzÅÄmuma nosaukumu vai noÅem uzÅÄmuma reÄ£istrÄcijas numuru!"),""===m&&(m=l.parent())),""!==l.val()&&""===d.val()&&(h=!1,d.parent().find(".notification-message").html("Ievadi uzÅÄmuma reÄ£istrÄcijas numuru vai noÅem uzÅÄmuma nosaukumu!"),""===m&&(m=d.parent())),e("#edit-profile-form .js-latvijas-pasts").is(":visible")&&""===e("#edit-profile-form input[name='addr_elem_id']").val()?(h=!1,e("#edit-profile-form .shipping-address .notification-message").html("IevadÄ«tÄ adrese ir nepareiza!"),""===m&&(m=e("#edit-profile-form .js-latvijas-pasts").parent())):e("#edit-profile-form .js-latvijas-pasts").is(":visible")&&""!==e("#edit-profile-form input[name='addr_elem_id']").val()&&c.push({region:e("#edit-profile-form select[name='addr_elem_region'] option:selected").text(),city:e("#edit-profile-form select[name='addr_elem_city'] option:selected").text(),county:e("#edit-profile-form select[name='addr_elem_county'] option:selected").text(),parish:e("#edit-profile-form select[name='addr_elem_parish'] option:selected").text(),village:e("#edit-profile-form select[name='addr_elem_village'] o
2ption:selected").text(),street:e("#edit-profile-form select[name='addr_elem_street'] option:selected").text(),house:e("#edit-profile-form select[name='addr_elem_house'] option:selected").text(),apartment:e("#edit-profile-form select[name='addr_elem_appartment'] option:selected").text(),postcode:e("#edit-profile-form input[name='addr_elem_postcode']").val(),addressId:e("#edit-profile-form input[name='addr_elem_id']").val(),addressText:e("#edit-profile-form textarea[name='addr_elem_text']").val()}),""!==u.val()&&u.val().length<5&&(h=!1,u.parent().find(".notification-message").html("Parolei jÄbÅ«t vismaz 5 simboliem garai!"),""===m&&(m=u.parent())),""!==p.val()&&""===u.val()&&(h=!1,u.parent().find(".notification-message").html("Ievadi savu paroli!"),""===m&&(m=u.parent())),""!==u.val()&&p.val()!==u.val()&&(h=!1,p.parent().find(".notification-message").html("Paroles nesakrÄ«t!"),""===m&&(m=p.parent())),!0===h?e.ajax({type:"POST",url:"/wp-admin/admin-ajax.php?action=updateAccount",data:{firstName:n.val(),lastName:a.val(),emailAddress:o.val(),phoneNumber:r.val(),companyName:l.val(),companyRegistrationNumber:d.val(),shippingAddress:c,password:u.val(),nonce:globalAjaxVariables.globalNonce},beforeSend:function(){s.addClass("loading")},success:function(i){t=!1;let a=e.parseJSON(i);"successUpdate"===a.status&&(""!==e("#edit-profile-form textarea[name='addr_elem_text']").val()&&(e("#edit-profile-form .js-latvijas-pasts").removeClass("active"),e("#edit-profile-form .js-shipping-address").html(e("#edit-profile-form textarea[name='addr_elem_text']").val()),e("#edit-profile-form textarea[name='addr_elem_text']").val("")),e("#edit-profile-form .submit-notification").show().removeClass("error").html("Profila informÄcija veiksmÄ«gi atjaunota!"),s.removeClass("loading")),"existingEmail"!==a.status&&"invalidEmail"!==a.status||(o.parent().find(".notification-message").html("existingEmail"===a.status?"Å Äda e-pasta adrese jau ir izmantota!":"E-pasta adrese nav derÄ«ga!"),e("body, html").animate({scrollTop:o.parent().offset().top},1e3),s.removeClass("loading")),"missingName"===a.status&&(n.parent().find(".notification-message").html("Ievadi vÄrdu un uzvÄrdu!"),e("body, html").animate({scrollTop:n.parent().offset().top},1e3),s.removeClass("loading")),"shortPassword"===a.status&&(u.parent().find(".notification-message").html("Parolei jÄbÅ«t vismaz 5 simboliem garai!"),e("body, html").animate({scrollTop:u.parent().offset().top},1e3),s.removeClass("loading")),"needToRedirect"===a.status&&(window.location.href=a.redirectUrl),"successUpdate"!==a.status&&"existingEmail"!==a.status&&"invalidEmail"!==a.status&&"missingName"!==a.status&&"shortPassword"!==a.status&&"needToRedirect"!==a.status&&(e("#edit-profile-form .submit-notification").addClass("error").html("Kaut kas nogÄja greizi! LÅ«dzu, mÄÄ£iniet vÄlreiz vai sazinieties ar portÄla administrÄciju."),s.removeClass("loading"))},complete:function(){t=!1},error:function(){t=!1}}):(t=!1,e("body, html").animate({scrollTop:m.offset().top},1e3))})})},420:()=>{},447:()=>{"use strict";function e(e,t,i){const s=document.createElement(t);return e&&(s.className=e),i&&i.appendChild(s),s}function t(e,t){return e.x=t.x,e.y=t.y,void 0!==t.id&&(e.id=t.id),e}function i(e){e.x=Math.round(e.x),e.y=Math.round(e.y)}function s(e,t){const i=Math.abs(e.x-t.x),s=Math.abs(e.y-t.y);return Math.sqrt(i*i+s*s)}function n(e,t){return e.x===t.x&&e.y===t.y}function a(e,t,i){return Math.min(Math.max(e,t),i)}function o(e,t,i){let s=`translate3d(${e}px,${t||0}px,0)`;return void 0!==i&&(s+=` scale3d(${i},${i},1)`),s}function r(e,t,i,s){e.style.transform=o(t,i,s)}function l(e,t,i,s){e.style.transition=t?`${t} ${i}ms ${s||"cubic-bezier(.4,0,.22,1)"}`:"none"}function d(e,t,i){e.style.width="number"==typeof t?`${t}px`:t,e.style.height="number"==typeof i?`${i}px`:i}const c="idle",u="loading",p="loaded",h="error";function m(){return!(!navigator.vendor||!navigator.vendor.match(/apple/i))}let f=!1;try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>{f=!0}}))}catch(e){}class w{constructor(){this._pool=[]}add(e,t,i,s){this._toggleListener(e,t,i,s)}remove(e,t,i,s){this._toggleListener(e,t,i,s,!0)}
vendor: 24,411 bytes, line 2
2removeAll(){this._pool.forEach(e=>{this._toggleListener(e.target,e.type,e.listener,e.passive,!0,!0)}),this._pool=[]}_toggleListener(e,t,i,s,n,a){if(!e)return;const o=n?"removeEventListener":"addEventListener";t.split(" ").forEach(t=>{if(t){a||(n?this._pool=this._pool.filter(s=>s.type!==t||s.listener!==i||s.target!==e):this._pool.push({target:e,type:t,listener:i,passive:s}));const r=!!f&&{passive:s||!1};e[o](t,i,r)}})}}function g(e,t){if(e.getViewportSizeFn){const i=e.getViewportSizeFn(e,t);if(i)return i}return{x:document.documentElement.clientWidth,y:window.innerHeight}}function v(e,t,i,s,n){let a=0;if(t.paddingFn)a=t.paddingFn(i,s,n)[e];else if(t.padding)a=t.padding[e];else{const i="padding"+e[0].toUpperCase()+e.slice(1);t[i]&&(a=t[i])}return Number(a)||0}function b(e,t,i,s){return{x:t.x-v("left",e,t,i,s)-v("right",e,t,i,s),y:t.y-v("top",e,t,i,s)-v("bottom",e,t,i,s)}}class y{constructor(e){this.slide=e,this.currZoomLevel=1,this.center={x:0,y:0},this.max={x:0,y:0},this.min={x:0,y:0}}update(e){this.currZoomLevel=e,this.slide.width?(this._updateAxis("x"),this._updateAxis("y"),this.slide.pswp.dispatch("calcBounds",{slide:this.slide})):this.reset()}_updateAxis(e){const{pswp:t}=this.slide,i=this.slide["x"===e?"width":"height"]*this.currZoomLevel,s=v("x"===e?"left":"top",t.options,t.viewportSize,this.slide.data,this.slide.index),n=this.slide.panAreaSize[e];this.center[e]=Math.round((n-i)/2)+s,this.max[e]=i>n?Math.round(n-i)+s:this.center[e],this.min[e]=i>n?s:this.center[e]}reset(){this.center.x=0,this.center.y=0,this.max.x=0,this.max.y=0,this.min.x=0,this.min.y=0}correctPan(e,t){return a(t,this.max[e],this.min[e])}}class _{constructor(e,t,i,s){this.pswp=s,this.options=e,this.itemData=t,this.index=i,this.panAreaSize=null,this.elementSize=null,this.fit=1,this.fill=1,this.vFill=1,this.initial=1,this.secondary=1,this.max=1,this.min=1}update(e,t,i){const s={x:e,y:t};this.elementSize=s,this.panAreaSize=i;const n=i.x/s.x,a=i.y/s.y;this.fit=Math.min(1,n<a?n:a),this.fill=Math.min(1,n>a?n:a),this.vFill=Math.min(1,a),this.initial=this._getInitial(),this.secondary=this._getSecondary(),this.max=Math.max(this.initial,this.secondary,this._getMax()),this.min=Math.min(this.fit,this.initial,this.secondary),this.pswp&&this.pswp.dispatch("zoomLevelsUpdate",{zoomLevels:this,slideData:this.itemData})}_parseZoomLevelOption(e){const t=e+"ZoomLevel",i=this.options[t];if(i)return"function"==typeof i?i(this):"fill"===i?this.fill:"fit"===i?this.fit:Number(i)}_getSecondary(){let e=this._parseZoomLevelOption("secondary");return e||(e=Math.min(1,3*this.fit),this.elementSize&&e*this.elementSize.x>4e3&&(e=4e3/this.elementSize.x),e)}_getInitial(){return this._parseZoomLevelOption("initial")||this.fit}_getMax(){return this._parseZoomLevelOption("max")||Math.max(1,4*this.fit)}}class x{constructor(t,i,s){this.data=t,this.index=i,this.pswp=s,this.isActive=i===s.currIndex,this.currentResolution=0,this.panAreaSize={x:0,y:0},this.pan={x:0,y:0},this.isFirstSlide=this.isActive&&!s.opener.isOpen,this.zoomLevels=new _(s.options,t,i,s),this.pswp.dispatch("gettingData",{slide:this,data:this.data,index:i}),this.content=this.pswp.contentLoader.getContentBySlide(this),this.container=e("pswp__zoom-wrap","div"),this.holderElement=null,this.currZoomLevel=1,this.width=this.content.width,this.height=this.content.height,this.heavyAppended=!1,this.bounds=new y(this),this.prevDisplayedWidth=-1,this.prevDisplayedHeight=-1,this.pswp.dispatch("slideInit",{slide:this})}setIsActive(e){e&&!this.isActive?this.activate():!e&&this.isActive&&this.deactivate()}append(e){this.holderElement=e,this.container.style.transformOrigin="0 0",this.data&&(this.calculateSize(),this.load(),this.updateContentSize(),this.appendHeavy(),this.holderElement.appendChild(this.container),this.zoomAndPanToInitial(),this.pswp.dispatch("firstZoomPan",{slide:this}),this.applyCurrentZoomPan(),this.pswp.dispatch("afterSetContent",{slide:this}),this.isActive&&this.activate())}load(){this.content.load(!1),this.pswp.dispatch("slideLoad",{slide:this})}appendHeavy(){const{pswp:e}=this;!this.heavyAppended&&e.opener.isOpen&&!e.mainScroll.isShifted()&&(this.isActive,1)&&(this.pswp.dispatch("appendHeavy",{slide:this}).defaultPrevented||(this.heavyAppended=!0,this.content.append(),this.pswp.dispatch("appendHeavyContent",{slide:this})))}activate(){this.isActive=!0,this.appendHeavy(),this.content.activate(),this.pswp.dispatch("slideActivate",{slide:this})}deactivate(){this.isActive=!1,this.content.deactivate(),this.currZoomLevel!==this.zoomLevels.initial&&this.calculateSize(),this.currentResolution=0,this.zoomAndPanToInitial(),this.applyCurrentZoomPan(),this.updateContentSize(),this.pswp.dispatch("slideDeactivate",{slide:this})}destroy(){this.content.hasSlide=!1,this.content.remove(),this.container.remove(),this.pswp.dispatch("slideDestroy",{slide:this})}resize(){this.currZoomLevel!==this.zoomLevels.initial&&this.isActive?(this.calculateSize(),this.bounds.update(this.currZoomLevel),this.panTo(this.pan.x,this.pan.y)):(this.calculateSize(),this.currentResolution=0,this.zoomAndPanToInitial(),this.applyCurrentZoomPan(),this.updateContentSize())}updateContentSize(e){const t=this.currentResolution||this.zoomLevels.initial;if(!t)return;const i=Math.round(this.width*t)||this.pswp.viewportSize.x,s=Math.round(this.height*t)||this.pswp.viewportSize.y;(this.sizeChanged(i,s)||e)&&this.content.setDisplayedSize(i,s)}sizeChanged(e,t){return(e!==this.prevDisplayedWidth||t!==this.prevDisplayedHeight)&&(this.prevDisplayedWidth=e,this.prevDisplayedHeight=t,!0)}getPlaceholderElement(){var e;return null===(e=this.content.placeholder)||void 0===e?void 0:e.element}zoomTo(e,t,s,n){const{pswp:o}=this;if(!this.isZoomable()||o.mainScroll.isShifted())return;o.dispatch("beforeZoomTo",{destZoomLevel:e,centerPoint:t,transitionDuration:s}),o.animations.stopAllPan();const r=this.currZoomLevel;n||(e=a(e,this.zoomLevels.min,this.zoomLevels.max)),this.setZoomLevel(e),this.pan.x=this.calculateZoomToPanOffset("x",t,r),this.pan.y=this.calculateZoomToPanOffset("y",t,r),i(this.pan);const l=()=>{this._setResolution(e),this.applyCurrentZoomPan()};s?o.animations.startTransition({isPan:!0,name:"zoomTo",target:this.container,transform:this.getCurrentTransform(),onComplete:l,duration:s,easing:o.options.easing}):l()}toggleZoom(e){this.zoomTo(this.currZoomLevel===this.zoomLevels.initial?this.zoomLevels.secondary:this.zoomLevels.initial,e,this.pswp.options.zoomAnimationDuration)}setZoomLevel(e){this.currZoomLevel=e,this.bounds.update(this.currZoomLevel)}calculateZoomToPanOffset(e,t,i){if(0===this.bounds.max[e]-this.bounds.min[e])return this.bounds.center[e];t||(t=this.pswp.getViewportCenterPoint()),i||(i=this.zoomLevels.initial);const s=this.currZoomLevel/i;return this.bounds.correctPan(e,(this.pan[e]-t[e])*s+t[e])}panTo(e,t){this.pan.x=this.bounds.correctPan("x",e),this.pan.y=this.bounds.correctPan("y",t),this.applyCurrentZoomPan()}isPannable(){return Boolean(this.width)&&this.currZoomLevel>this.zoomLevels.fit}isZoomable(){return Boolean(this.width)&&this.content.isZoomable()}applyCurrentZoomPan(){this._applyZoomTransform(this.pan.x,this.pan.y,this.currZoomLevel),this===this.pswp.currSlide&&this.pswp.dispatch("zoomPanUpdate",{slide:this})}zoomAndPanToInitial(){this.currZoomLevel=this.zoomLevels.initial,this.bounds.update(this.currZoomLevel),t(this.pan,this.bounds.center),this.pswp.dispatch("initialZoomPan",{slide:this})}_applyZoomTransform(e,t,i){i/=this.currentResolution||this.zoomLevels.initial,r(this.container,e,t,i)}calculateSize(){const{pswp:e}=this;t(this.panAreaSize,b(e.options,e.viewportSize,this.data,this.index)),this.zoomLevels.update(this.width,this.height,this.panAreaSize),e.dispatch("calcSlideSize",{slide:this})}getCurrentTransform(){const e=this.currZoomLevel/(this.currentResolution||this.zoomLevels.initial);return o(this.pan.x,this.pan.y,e)}_setResolution(e){e!==this.currentResolution&&(this.currentResolution=e,this.updateContentSize(),this.pswp.dispatch("resolutionChanged"))}}class F{constructor(e){this.gestures=e,this.pswp=e.pswp,this.startPan={x:0,y:0}}start(){this.pswp.currSlide&&t(this.startPan,this.pswp.currSlide.pan),this.pswp.animations.stopAll()}change(){const{p1:e,prevP1:t,dragAxis:s}=this.gestures,{currSlide:n}=this.pswp;if("y"===s&&this.pswp.options.closeOnVerticalDrag&&n&&n.currZoomLevel<=n.zoomLevels.fit&&!this.gestures.isMultitouch){const i=n.pan.y+(e.y-t.y);if(!this.pswp.dispatch("verticalDrag",{panY:i}).defaultPrevented){this._setPanWithFriction("y",i,.6);const e=1-Math.abs(this._getVerticalDragRatio(n.pan.y));this.pswp.applyBgOpacity(e),n.applyCurrentZoomPan()}}else{this._panOrMoveMainScroll("x")||(this._panOrMoveMainScroll("y"),n&&(i(n.pan),n.applyCurrentZoomPan()))}}end(){const{velocity:e}=this.gestures,{mainScroll:t,currSlide:i}=this.pswp;let s=0;if(this.pswp.animations.stopAll(),t.isShifted()){const i=(t.x-t.getCurrSlideX())/this.pswp.viewportSize.x;e.x<-.5&&i<0||e.x<.1&&i<-.5?(s=1,e.x=Math.min(e.x,0)):(e.x>.5&&i>0||e.x>-.1&&i>.5)&&(s=-1,e.x=Math.max(e.x,0)),t.moveIndexBy(s,!0,e.x)}i&&i.currZoomLevel>i.zoomLevels.max||this.gestures.isMultitouch?this.gestures.zoomLevels.correctZoomPan(!0):(this._finishPanGestureForAxis("x"),this._finishPanGestureForAxis("y"))}_finishPanGestureForAxis(e){const{velocity:t}=this.gestures,{currSlide:i}=this.pswp;if(!i)return;const{pan:s,bounds:n}=i,o=s[e],r=this.pswp.bgOpacity<1&&"y"===e,l=o+function(e,t){return e*t/(1-t)}(t[e],.995);if(r){const e=this._getVerticalDragRatio(o),t=this._getVerticalDragRatio(l);if(e<0&&t<-.4||e>0&&t>.4)return void this.pswp.close()}const d=n.correctPan(e,l);if(o===d)return;const c=d===l?1:.82,u=this.pswp.bgOpacity,p=d-o;this.pswp.animations.startSpring({name:"panGesture"+e,isPan:!0,start:o,end:d,velocity:t[e],dampingRatio:c,onUpdate:t=>{if(r&&this.pswp.bgOpacity<1){const e=1-(d-t)/p;this.pswp.applyBgOpacity(a(u+(1-u)*e,0,1))}s[e]=Math.floor(t),i.applyCurrentZoomPan()}})}_panOrMoveMainScroll(e){const{p1:t,dragAxis:i,prevP1:s,isMultitouch:n}=this.gestures,{currSlide:a,mainScroll:o}=this.pswp,r=t[e]-s[e],l=o.x+r;if(!r||!a)return!1;if("x"===e&&!a.isPannable()&&!n)return o.moveTo(l,!0),!0;const{bounds:d}=a,c=a.pan[e]+r;if(this.pswp.options.allowPanToNext&&"x"===i&&"x"===e&&!n){const t=o.getCurrSlideX(),i=o.x-t,s=r>0,n=!s;if(c>d.min[e]&&s){if(d.min[e]<=this.startPan[e])return o.moveTo(l,!0),!0;this._setPanWithFriction(e,c)}else if(c<d.max[e]&&n){if(this.startPan[e]<=d.max[e])return o.moveTo(l,!0),!0;this._setPanWithFriction(e,c)}else if(0!==i){if(i>0)return o.moveTo(Math.max(l,t),!0),!0;if(i<0)return o.moveTo(Math.min(l,t),!0),!0}else this._setPanWithFriction(e,c)}else"y"===e&&(o.isShifted()||d.min.y===d.max.y)||this._setPanWithFriction(e,c);return!1}_getVerticalDragRatio(e){var t,i;return(e-(null!==(t=null===(i=this.pswp.currSlide)||void 0===i?void 0:i.bounds.center.y)&&void 0!==t?t:0))/(this.pswp.viewportSize.y/3)}_setPanWithFriction(e,t,i){const{currSlide:s}=this.pswp;if(!s)return;const{pan:n,bounds:a}=s;if(a.correctPan(e,t)!==t||i){const s=Math.round(t-n[e]);n[e]+=s*(i||.35)}else n[e]=t}}function k(e,t,i){return e.x=(t.x+i.x)/2,e.y=(t.y+i.y)/2,e}class C{constructor(e){this.gestures=e,this._startPan={x:0,y:0},this._startZoomPoint={x:0,y:0},this._zoomPoint={x:0,y:0},this._wasOverFitZoomLevel=!1,this._startZoomLevel=1}start(){const{currSlide:e}=this.gestures.pswp;e&&(this._startZoomLevel=e.currZoomLevel,t(this._startPan,e.pan)),this.gestures.pswp.animations.stopAllPan(),this._wasOverFitZoomLevel=!1}change(){const{p1:e,startP1:t,p2:i,startP2:n,pswp:a}=this.gestures,{currSlide:o}=a;if(!o)return;const r=o.zoomLevels.min,l=o.zoomLevels.max;if(!o.isZoomable()||a.mainScroll.isShifted())return;k(this._startZoomPoint,t,n),k(this._zoomPoint,e,i);let d=1/s(t,n)*s(e,i)*this._startZoomLevel;if(d>o.zoomLevels.initial+o.zoomLevels.initial/15&&(this._wasOverFitZoomLevel=!0),d<r)if(a.options.pinchToClose&&!this._wasOverFitZoomLevel&&this._startZoomLevel<=o.zoomLevels.initial){const e=1-(r-d)/(r/1.2);a.dispatch("pinchClose",{bgOpacity:e}).defaultPrevented||a.applyBgOpacity(e)}else d=r-.15*(r-d);else d>l&&(d=l+.05*(d-l));o.pan.x=this._calculatePanForZoomLevel("x",d),o.pan.y=this._calculatePanForZoomLevel("y",d),o.setZoomLevel(d),o.applyCurrentZoomPan()}end(){const{pswp:e}=this.gestures,{currSlide:t}=e;(!t||t.currZoomLevel<t.zoomLevels.initial)&&!this._wasOverFitZoomLevel&&e.options.pinchToClose?e.close():this.correctZoomPan()}_calculatePanForZoomLevel(e,t){const i=t/this._startZoomLevel;return this._zoomPoint[e]-(this._startZoomPoint[e]-this._startPan[e])*i}correctZoomPan(e){const{pswp:i}=this.gestures,{currSlide:s}=i;if(null==s||!s.isZoomable())return;0===this._zoomPoint.x&&(e=!0);const o=s.currZoomLevel;let r,l=!0;o<s.zoomLevels.initial?r=s.zoomLevels.initial:o>s.zoomLevels.max?r=s.zoomLevels.max:(l=!1,r=o);const d=i.bgOpacity,c=i.bgOpacity<1,u=t({x:0,y:0},s.pan);let p=t({x:0,y:0},u);e&&(this._zoomPoint.x=0,this._zoomPoint.y=0,this._startZoomPoint.x=0,this._startZoomPoint.y=0,this._startZoomLevel=o,t(this._startPan,u)),l&&(p={x:this._calculatePanForZoomLevel("x",r),y:this._calculatePanForZoomLevel("y",r)}),s.setZoomLevel(r),p={x:s.bounds.correctPan("x",p.x),y:s.bounds.correctPan("y",p.y)},s.setZoomLevel(o);const h=!n(p,u);if(!h&&!l&&!c)return s._setResolution(r),void s.applyCurrentZoomPan();i.animations.stopAllPan(),i.animations.startSpring({isPan:!0,start:0,end:1e3,velocity:0,dampingRatio:1,naturalFrequency:40,onUpdate:e=>{if(e/=1e3,h||l){if(h&&(s.pan.x=u.x+(p.x-u.x)*e,s.pan.y=u.y+(p.y-u.y)*e),l){const t=o+(r-o)*e;s.setZoomLevel(t)}s.applyCurrentZoomPan()}c&&i.bgOpacity<1&&i.applyBgOpacity(a(d+(1-d)*e,0,1))},onComplete:()=>{s._setResolution(r),s.applyCurrentZoomPan()}})}}function A(e){return!!e.target.closest(".pswp__container")}class P{constructor(e){this.gestures=e}click(e,t){const i=t.target.classList,s=i.contains("pswp__img"),n=i.contains("pswp__item")||i.contains("pswp__zoom-wrap");s?this._doClickOrTapAction("imageClick",e,t):n&&this._doClickOrTapAction("bgClick",e,t)}tap(e,t){A(t)&&this._doClickOrTapAction("tap",e,t)}doubleTap(e,t){A(t)&&this._doClickOrTapAction("doubleTap",e,t)}_doClickOrTapAction(e,t,i){var s;const{pswp:n}=this.gestures,{currSlide:a}=n,o=e+"Action",r=n.options[o];if(!n.dispatch(o,{point:t,originalEvent:i}).defaultPrevented)if("function"!=typeof r)switch(r){case"close":case"next":n[r]();break;case"zoom":null==a||a.toggleZoom(t);break;case"zoom-or-close":null!=a&&a.isZoomable()&&a.zoomLevels.secondary!==a.zoomLevels.initial?a.toggleZoom(t):n.options.clickToCloseNonZoomable&&n.close();break;case"toggle-controls":null===(s=this.gestures.pswp.element)||void 0===s||s.classList.toggle("pswp--ui-visible")}else r.call(n,t,i)}}class S{constructor(e){this.pswp=e,this.dragAxis=null,this.p1={x:0,y:0},this.p2={x:0,y:0},this.prevP1={x:0,y:0},this.prevP2={x:0,y:0},this.startP1={x:0,y:0},this.startP2={x:0,y:0},this.velocity={x:0,y:0},this._lastStartP1={x:0,y:0},this._intervalP1={x:0,y:0},this._numActivePoints=0,this._ongoingPointers=[],this._touchEventEnabled="ontouchstart"in window,this._pointerEventEnabled=!!window.PointerEvent,this.supportsTouch=this._touchEventEnabled||this._pointerEventEnabled&&navigator.maxTouchPoints>1,this._numActivePoints=0,this._intervalTime=0,this._velocityCalculated=!1,this.isMultitouch=!1,this.isDragging=!1,this.isZooming=!1,this.raf=null,this._tapTimer=null,this.supportsTouch||(e.options.allowPanToNext=!1),this.drag=new F(this),this.zoomLevels=new C(this),this.tapHandler=new P(this),e.on("bindEvents",()=>{e.events.add(e.scrollWrap,"click",this._onClick.bind(this)),this._pointerEventEnabled?this._bindEvents("pointer","down","up","cancel"):this._touchEventEnabled?(this._bindEvents("touch","start","end","cancel"),e.scrollWrap&&(e.scrollWrap.ontouchmove=()=>{},e.scrollWrap.ontouchend=()=>{})):this._bindEvents("mouse","down","up")})}_bindEvents(e,t,i,s){const{pswp:n}=this,{events:a}=n,o=s?e+s:"";a.add(n.scrollWrap,e+t,this.onPointerDown.bind(this)),a.add(window,e+"move",this.onPointerMove.bind(this)),a.add(window,e+i,this.onPointerUp.bind(this)),o&&a.add(n.scrollWrap,o,this.onPointerUp.bind(this))}onPointerDown(e){const i="mousedown"===e.type||"mouse"===e.pointerType;if(i&&e.button>0)return;const{pswp:s}=this;s.opener.isOpen?s.dispatch("pointerDown",{originalEvent:e}).defaultPrevented||(i&&(s.mouseDetected(),this._preventPointerEventBehaviour(e,"down")),s.animations.stopAll(),this._updatePoints(e,"down"),1===this._numActivePoints&&(this.dragAxis=null,t(this.startP1,this.p1)),this._numActivePoints>1?(this._clearTapTimer(),this.isMultitouch=!0):this.isMultitouch=!1):e.preventDefault()}onPointerMove(e){this._preventPointerEventBehaviour(e,"move"),this._numActivePoints&&(this._updatePoints(e,"move"),this.pswp.dispatch("pointerMove",{originalEvent:e}).defaultPrevented||(1!==this._numActivePoints||this.isDragging?this._numActivePoints>1&&!this.isZooming&&(this._finishDrag(),this.isZooming=!0,this._updateStartPoints(),this.zoomLevels.start(),this._rafStopLoop(),this._rafRenderLoop()):(this.dragAxis||this._calculateDragDirection(),this.dragAxis&&!this.isDragging&&(this.isZooming&&(this.isZooming=!1,this.zoomLevels.end()),this.isDragging=!0,this._clearTapTimer(),this._updateStartPoints(),this._intervalTime=Date.now(),this._velocityCalculated=!1,t(this._intervalP1,this.p1),this.velocity.x=0,this.velocity.y=0,this.drag.start(),this._rafStopLoop(),this._rafRenderLoop()))))}_finishDrag(){this.isDragging&&(this.isDragging=!1,this._velocityCalculated||this._updateVelocity(!0),this.drag.end(),this.dragAxis=null)}onPointerUp(e){this._numActivePoints&&(this._updatePoints(e,"up"),this.pswp.dispatch("pointerUp",{originalEvent:e}).defaultPrevented||(0===this._numActivePoints&&(this._rafStopLoop(),this.isDragging?this._finishDrag():this.isZooming||this.isMultitouch||this._finishTap(e)),this._numActivePoints<2&&this.isZooming&&(this.isZooming=!1,this.zoomLevels.end(),1===this._numActivePoints&&(this.dragAxis=null,this._updateStartPoints()))))}_rafRenderLoop(){(this.isDragging||this.isZooming)&&(this._updateVelocity(),this.isDragging?n(this.p1,this.prevP1)||this.drag.change():n(this.p1,this.prevP1)&&n(this.p2,this.prevP2)||this.zoomLevels.change(),this._updatePrevPoints(),this.raf=requestAnimationFrame(this._rafRenderLoop.bind(this)))}_updateVelocity(e){const i=Date.now(),s=i-this._intervalTime;s<50&&!e||(this.velocity.x=this._getVelocity("x",s),this.velocity.y=this._getVelocity("y",s),this._intervalTime=i,t(this._intervalP1,this.p1),this._velocityCalculated=!0)}_finishTap(e){const{mainScroll:i}=this.pswp;if(i.isShifted())return void i.moveIndexBy(0,!0);if(e.type.indexOf("cancel")>0)return;if("mouseup"===e.type||"mouse"===e.pointerType)return void this.tapHandler.click(this.startP1,e);const n=this.pswp.options.doubleTapAction?300:0;this._tapTimer?(this._clearTapTimer(),s(this._lastStartP1,this.startP1)<25&&this.tapHandler.doubleTap(this.startP1,e)):(t(this._lastStartP1,this.startP1),this._tapTimer=setTimeout(()=>{this.tapHandler.tap(this.startP1,e),this._clearTapTimer()},n))}_clearTapTimer(){this._tapTimer&&(clearTimeout(this._tapTimer),this._tapTimer=null)}_getVelocity(e,t){const i=this.p1[e]-this._intervalP1[e];return Math.abs(i)>1&&t>5?i/t:0}_rafStopLoop(){this.raf&&(cancelAnimationFrame(this.raf),this.raf=null)}_preventPointerEventBehaviour(e,t){this.pswp.applyFilters("preventPointerEvent",!0,e,t)&&e.preventDefault()}_updatePoints(e,i){if(this._pointerEventEnabled){const s=e,n=this._ongoingPointers.findIndex(e=>e.id===s.pointerId);"up"===i&&n>-1?this._ongoingPointers.splice(n,1):"down"===i&&-1===n?this._ongoingPointers.push(this._convertEventPosToPoint(s,{x:0,y:0})):n>-1&&this._convertEventPosToPoint(s,this._ongoingPointers[n]),this._numActivePoints=this._ongoingPointers.length,this._numActivePoints>0&&t(this.p1,this._ongoingPointers[0]),this._numActivePoints>1&&t(this.p2,this._ongoingPointers[1])}else{const t=e;this._numActivePoints=0,t.type.indexOf("touch")>-1?t.touches&&t.touches.length>0&&(this._convertEventPosToPoint(t.touches[0],this.p1),this._numActivePoints++,t.touches.length>1&&(this._convertEventPosToPoint(t.touches[1],this.p2),this._numActivePoints++)):(this._convertEventPosToPoint(e,this.p1),"up"===i?this._numActivePoints=0:this._numActivePoints++)}}_updatePrevPoints(){t(this.prevP1,this.p1),t(this.prevP2,this.p2)}_updateStartPoints(){t(this.startP1,this.p1),t(this.startP2,this.p2),this._updatePrevPoints()}_calculateDragDirection(){if(this.pswp.mainScroll.isShifted())this.dragAxis="x";else{const e=Math.abs(this.p1.x-this.startP1.x)-Math.abs(this.p1.y-this.startP1.y);if(0!==e){const t=e>0?"x":"y";Math.abs(this.p1[t]-this.startP1[t])>=10&&(this.dragAxis=t)}}}_convertEventPosToPoint(e,t){return t.x=e.pageX-this.pswp.offset.x,t.y=e.pageY-this.pswp.offset.y,"pointerId"in e?t.id=e.pointerId:void 0!==e.identifier&&(t.id=e.identifier),t}_onClick(e){this.pswp.mainScroll.isShifted()&&(e.preventDefault(),e.stopPropagation())}}class z{constructor(e){this.pswp=e,this.x=0,this.slideWidth=0,this._currPositionIndex=0,this._prevPositionIndex=0,this._containerShiftIndex=-1,this.itemHolders=[]}resize(e){const{pswp:t}=this,i=Math.round(t.viewportSize.x+t.viewportSize.x*t.options.spacing),s=i!==this.slideWidth;s&&(this.slideWidth=i,this.moveTo(this.getCurrSlideX())),this.itemHolders.forEach((t,i)=>{s&&r(t.el,(i+this._containerShiftIndex)*this.slideWidth),e&&t.slide&&t.slide.resize()})}resetPosition(){this._currPositionIndex=0,this._prevPositionIndex=0,this.slideWidth=0,this._containerShiftIndex=-1}appendHolders(){this.itemHolders=[];for(let t=0;t<3;t++){const i=e("pswp__item","div",this.pswp.container);i.setAttribute("role","group"),i.setAttribute("aria-roledescription","slide"),i.setAttribute("aria-hidden","true"),i.style.display=1===t?"block":"none",this.itemHolders.push({el:i})}}canBeSwiped(){return this.pswp.getNumItems()>1}moveIndexBy(e,t,i){const{pswp:s}=this;let n=s.potentialIndex+e;const a=s.getNumItems();if(s.canLoop()){n=s.getLoopedIndex(n);const t=(e+a)%a;e=t<=a/2?t:t-a}else n<0?n=0:n>=a&&(n=a-1),e=n-s.potentialIndex;s.potentialIndex=n,this._currPositionIndex-=e,s.animations.stopMainScroll();const o=this.getCurrSlideX();if(t){s.animations.startSpring({isMainScroll:!0,start:this.x,end:o,velocity:i||0,naturalFrequency:30,dampingRatio:1,onUpdate:e=>{this.moveTo(e)},onComplete:()=>{this.updateCurrItem(),s.appendHeavy()}});let e=s.potentialIndex-s.currIndex;if(s.canLoop()){const t=(e+a)%a;e=t<=a/2?t:t-a}Math.abs(e)>1&&this.updateCurrItem()}else this.moveTo(o),this.updateCurrItem();return Boolean(e)}getCurrSlideX(){return this.slideWidth*this._currPositionIndex}isShifted(){return this.x!==this.getCurrSlideX()}updateCurrItem(){var e;const{pswp:t}=this,i=this._prevPositionIndex-this._currPositionIndex;if(!i)return;this._prevPositionIndex=this._currPositionIndex,t.currIndex=t.potentialIndex;let s,n=Math.abs(i);n>=3&&(this._containerShiftIndex+=i+(i>0?-3:3),n=3,this.itemHolders.forEach(e=>{var t;null===(t=e.slide)||void 0===t||t.destroy(),e.slide=void 0}));for(let e=0;e<n;e++)i>0?(s=this.itemHolders.shift(),s&&(this.itemHolders[2]=s,this._containerShiftIndex++,r(s.el,(this._containerShiftIndex+2)*this.slideWidth),t.setContent(s,t.currIndex-n+e+2))):(s=this.itemHolders.pop(),s&&(this.itemHolders.unshift(s),this._containerShiftIndex--,r(s.el,this._containerShiftIndex*this.slideWidth),t.setContent(s,t.currIndex+n-e-2)));Math.abs(this._containerShiftIndex)>50&&!this.isShifted()&&(this.resetPosition(),this.resize()),t.animations.stopAllPan(),this.itemHolders.forEach((e,t)=>{e.slide&&e.slide.setIsActive(1===t)}),t.currSlide=null===(e=this.itemHolders[1])||void 0===e?void 0:e.slide,t.contentLoader.updateLazy(i),t.currSlide&&t.currSlide.applyCurrentZoomPan(),t.dispatch("change")}moveTo(e,t){if(!this.pswp.canLoop()&&t){let t=(this.slideWidth*this._currPositionIndex-e)/this.slideWidth;t+=this.pswp.currIndex;const i=Math.round(e-this.x);(t<0&&i>0||t>=this.pswp.getNumItems()-1&&i<0)&&(e=this.x+.35*i)}this.x=e,this.pswp.container&&r(this.pswp.container,e),this.pswp.dispatch("moveMainScroll",{x:e,dragging:null!=t&&t})}}const D={Escape:27,z:90,ArrowLeft:37,ArrowUp:38,ArrowRight:39,ArrowDown:40,Tab:9},j=(e,t)=>t?e:D[e];class E{constructor(e){this.pswp=e,this._wasFocused=!1,e.on("bindEvents",()=>{e.options.trapFocus&&(e.options.initialPointerPos||this._focusRoot(),e.events.add(document,"focusin",this._onFocusIn.bind(this))),e.events.add(document,"keydown",this._onKeyDown.bind(this))});const t=document.activeElement;e.on("destroy",()=>
vendor: 4,445 bytes, line 2
2{e.options.returnFocus&&t&&this._wasFocused&&t.focus()})}_focusRoot(){!this._wasFocused&&this.pswp.element&&(this.pswp.element.focus(),this._wasFocused=!0)}_onKeyDown(e){const{pswp:t}=this;if(t.dispatch("keydown",{originalEvent:e}).defaultPrevented)return;if(function(e){return"button"in e&&1===e.button||e.ctrlKey||e.metaKey||e.altKey||e.shiftKey}(e))return;let i,s,n=!1;const a="key"in e;switch(a?e.key:e.keyCode){case j("Escape",a):t.options.escKey&&(i="close");break;case j("z",a):i="toggleZoom";break;case j("ArrowLeft",a):s="x";break;case j("ArrowUp",a):s="y";break;case j("ArrowRight",a):s="x",n=!0;break;case j("ArrowDown",a):n=!0,s="y";break;case j("Tab",a):this._focusRoot()}if(s){e.preventDefault();const{currSlide:a}=t;t.options.arrowKeys&&"x"===s&&t.getNumItems()>1?i=n?"next":"prev":a&&a.currZoomLevel>a.zoomLevels.fit&&(a.pan[s]+=n?-80:80,a.panTo(a.pan.x,a.pan.y))}i&&(e.preventDefault(),t[i]())}_onFocusIn(e){const{template:t}=this.pswp;t&&document!==e.target&&t!==e.target&&!t.contains(e.target)&&t.focus()}}const T="cubic-bezier(.4,0,.22,1)";class L{constructor(e){var t;this.props=e;const{target:i,onComplete:s,transform:n,onFinish:a=()=>{},duration:o=333,easing:r=T}=e;this.onFinish=a;const d=n?"transform":"opacity",c=null!==(t=e[d])&&void 0!==t?t:"";this._target=i,this._onComplete=s,this._finished=!1,this._onTransitionEnd=this._onTransitionEnd.bind(this),this._helperTimeout=setTimeout(()=>{l(i,d,o,r),this._helperTimeout=setTimeout(()=>{i.addEventListener("transitionend",this._onTransitionEnd,!1),i.addEventListener("transitioncancel",this._onTransitionEnd,!1),this._helperTimeout=setTimeout(()=>{this._finalizeAnimation()},o+500),i.style[d]=c},30)},0)}_onTransitionEnd(e){e.target===this._target&&this._finalizeAnimation()}_finalizeAnimation(){this._finished||(this._finished=!0,this.onFinish(),this._onComplete&&this._onComplete())}destroy(){this._helperTimeout&&clearTimeout(this._helperTimeout),l(this._target),this._target.removeEventListener("transitionend",this._onTransitionEnd,!1),this._target.removeEventListener("transitioncancel",this._onTransitionEnd,!1),this._finished||this._finalizeAnimation()}}class I{constructor(e,t,i){this.velocity=1e3*e,this._dampingRatio=t||.75,this._naturalFrequency=i||12,this._dampedFrequency=this._naturalFrequency,this._dampingRatio<1&&(this._dampedFrequency*=Math.sqrt(1-this._dampingRatio*this._dampingRatio))}easeFrame(e,t){let i,s=0;t/=1e3;const n=Math.E**(-this._dampingRatio*this._naturalFrequency*t);if(1===this._dampingRatio)i=this.velocity+this._naturalFrequency*e,s=(e+i*t)*n,this.velocity=s*-this._naturalFrequency+i*n;else if(this._dampingRatio<1){i=1/this._dampedFrequency*(this._dampingRatio*this._naturalFrequency*e+this.velocity);const a=Math.cos(this._dampedFrequency*t),o=Math.sin(this._dampedFrequency*t);s=n*(e*a+i*o),this.velocity=s*-this._naturalFrequency*this._dampingRatio+n*(-this._dampedFrequency*e*o+this._dampedFrequency*i*a)}return s}}class O{constructor(e){this.props=e,this._raf=0;const{start:t,end:i,velocity:s,onUpdate:n,onComplete:a,onFinish:o=()=>{},dampingRatio:r,naturalFrequency:l}=e;this.onFinish=o;const d=new I(s,r,l);let c=Date.now(),u=t-i;const p=()=>{this._raf&&(u=d.easeFrame(u,Date.now()-c),Math.abs(u)<1&&Math.abs(d.velocity)<50?(n(i),a&&a(),this.onFinish()):(c=Date.now(),n(u+i),this._raf=requestAnimationFrame(p)))};this._raf=requestAnimationFrame(p)}destroy(){this._raf>=0&&cancelAnimationFrame(this._raf),this._raf=0}}class B{constructor(){this.activeAnimations=[]}startSpring(e){this._start(e,!0)}startTransition(e){this._start(e)}_start(e,t){const i=t?new O(e):new L(e);return this.activeAnimations.push(i),i.onFinish=()=>this.stop(i),i}stop(e){e.destroy();const t=this.activeAnimations.indexOf(e);t>-1&&this.activeAnimations.splice(t,1)}stopAll(){this.activeAnimations.forEach(e=>{e.destroy()}),this.activeAnimations=[]}stopAllPan(){this.activeAnimations=this.activeAnimations.filter(e=>!e.props.isPan||(e.destroy(),!1))}stopMainScroll(){this.activeAnimations=this.activeAnimations.filter(e=>!e.props.isMainScroll||(e.destroy(),!1))}isPanRunning(){return this.activeAnimations.some(e=>e.props.isPan)}}class M{constructor(e){this.pswp=e,e.events.add(e.element,"wheel",this._onWheel.bind(this))}_onWheel(e){e.preventDefault();const{currSlide:t}=this.pswp;let{deltaX:i,deltaY:s}=e;if(t&&!this.pswp.dispatch("wheel",{originalEvent:e}).defaultPrevented)if(e.ctrlKey||this.pswp.options.wheelToZoom){if(t.isZoomable()){let i=-s;
vendor: 9,174 bytes, line 2
21===e.deltaMode?i*=.05:i*=e.deltaMode?1:.002,i=2**i;const n=t.currZoomLevel*i;t.zoomTo(n,{x:e.clientX,y:e.clientY})}}else t.isPannable()&&(1===e.deltaMode&&(i*=18,s*=18),t.panTo(t.pan.x-i,t.pan.y-s))}}class ${constructor(t,i){var s;const n=i.name||i.className;let a=i.html;if(!1===t.options[n])return;"string"==typeof t.options[n+"SVG"]&&(a=t.options[n+"SVG"]),t.dispatch("uiElementCreate",{data:i});let o="";i.isButton?(o+="pswp__button ",o+=i.className||`pswp__button--${i.name}`):o+=i.className||`pswp__${i.name}`;let r=i.isButton?i.tagName||"button":i.tagName||"div";r=r.toLowerCase();const l=e(o,r);if(i.isButton){"button"===r&&(l.type="button");let{title:e}=i;const{ariaLabel:s}=i;"string"==typeof t.options[n+"Title"]&&(e=t.options[n+"Title"]),e&&(l.title=e);const a=s||e;a&&l.setAttribute("aria-label",a)}l.innerHTML=function(e){if("string"==typeof e)return e;if(!e||!e.isCustomSVG)return"";const t=e;let i='<svg aria-hidden="true" class="pswp__icn" viewBox="0 0 %d %d" width="%d" height="%d">';return i=i.split("%d").join(t.size||32),t.outlineID&&(i+='<use class="pswp__icn-shadow" xlink:href="#'+t.outlineID+'"/>'),i+=t.inner,i+="</svg>",i}(a),i.onInit&&i.onInit(l,t),i.onClick&&(l.onclick=e=>{"string"==typeof i.onClick?t[i.onClick]():"function"==typeof i.onClick&&i.onClick(e,l,t)});const d=i.appendTo||"bar";let c=t.element;"bar"===d?(t.topBar||(t.topBar=e("pswp__top-bar pswp__hide-on-close","div",t.scrollWrap)),c=t.topBar):(l.classList.add("pswp__hide-on-close"),"wrapper"===d&&(c=t.scrollWrap)),null===(s=c)||void 0===s||s.appendChild(t.applyFilters("uiElement",l,i))}}function Z(e,t,i){e.classList.add("pswp__button--arrow"),e.setAttribute("aria-controls","pswp__items"),t.on("change",()=>{t.options.loop||(e.disabled=i?!(t.currIndex<t.getNumItems()-1):!(t.currIndex>0))})}const N={name:"arrowPrev",className:"pswp__button--arrow--prev",title:"Previous",order:10,isButton:!0,appendTo:"wrapper",html:{isCustomSVG:!0,size:60,inner:'<path d="M29 43l-3 3-16-16 16-16 3 3-13 13 13 13z" id="pswp__icn-arrow"/>',outlineID:"pswp__icn-arrow"},onClick:"prev",onInit:Z},q={name:"arrowNext",className:"pswp__button--arrow--next",title:"Next",order:11,isButton:!0,appendTo:"wrapper",html:{isCustomSVG:!0,size:60,inner:'<use xlink:href="#pswp__icn-arrow"/>',outlineID:"pswp__icn-arrow"},onClick:"next",onInit:(e,t)=>{Z(e,t,!0)}},H={name:"close",title:"Close",order:20,isButton:!0,html:{isCustomSVG:!0,inner:'<path d="M24 10l-2-2-6 6-6-6-2 2 6 6-6 6 2 2 6-6 6 6 2-2-6-6z" id="pswp__icn-close"/>',outlineID:"pswp__icn-close"},onClick:"close"},R={name:"zoom",title:"Zoom",order:10,isButton:!0,html:{isCustomSVG:!0,inner:'<path d="M17.426 19.926a6 6 0 1 1 1.5-1.5L23 22.5 21.5 24l-4.074-4.074z" id="pswp__icn-zoom"/><path fill="currentColor" class="pswp__zoom-icn-bar-h" d="M11 16v-2h6v2z"/><path fill="currentColor" class="pswp__zoom-icn-bar-v" d="M13 12h2v6h-2z"/>',outlineID:"pswp__icn-zoom"},onClick:"toggleZoom"},V={name:"preloader",appendTo:"bar",order:7,html:{isCustomSVG:!0,inner:'<path fill-rule="evenodd" clip-rule="evenodd" d="M21.2 16a5.2 5.2 0 1 1-5.2-5.2V8a8 8 0 1 0 8 8h-2.8Z" id="pswp__icn-loading"/>',outlineID:"pswp__icn-loading"},onInit:(e,t)=>{let i,s=null;const n=t=>{var s,n;i!==t&&(i=t,s="active",n=t,e.classList.toggle("pswp__preloader--"+s,n))},a=()=>{var e;if(null===(e=t.currSlide)||void 0===e||!e.content.isLoading())return n(!1),void(s&&(clearTimeout(s),s=null));s||(s=setTimeout(()=>{var e;n(Boolean(null===(e=t.currSlide)||void 0===e?void 0:e.content.isLoading())),s=null},t.options.preloaderDelay))};t.on("change",a),t.on("loadComplete",e=>{t.currSlide===e.slide&&a()}),t.ui&&(t.ui.updatePreloaderVisibility=a)}},U={name:"counter",order:5,onInit:(e,t)=>{t.on("change",()=>{e.innerText=t.currIndex+1+t.options.indexIndicatorSep+t.getNumItems()})}};function W(e,t){e.classList.toggle("pswp--zoomed-in",t)}class K{constructor(e){this.pswp=e,this.isRegistered=!1,this.uiElementsData=[],this.items=[],this.updatePreloaderVisibility=()=>{},this._lastUpdatedZoomLevel=void 0}init(){const{pswp:e}=this;this.isRegistered=!1,this.uiElementsData=[H,N,q,R,V,U],e.dispatch("uiRegister"),this.uiElementsData.sort((e,t)=>(e.order||0)-(t.order||0)),this.items=[],this.isRegistered=!0,this.uiElementsData.forEach(e=>{this.registerElement(e)}),e.on("change",()=>{var t;null===(t=e.element)||void 0===t||t.classList.toggle("pswp--one-slide",1===e.getNumItems())}),e.on("zoomPanUpdate",()=>this._onZoomPanUpdate())}registerElement(e){this.isRegistered?this.items.push(new $(this.pswp,e)):this.uiElementsData.push(e)}_onZoomPanUpdate(){const{template:e,currSlide:t,options:i}=this.pswp;if(this.pswp.opener.isClosing||!e||!t)return;let{currZoomLevel:s}=t;if(this.pswp.opener.isOpen||(s=t.zoomLevels.initial),s===this._lastUpdatedZoomLevel)return;this._lastUpdatedZoomLevel=s;const n=t.zoomLevels.initial-t.zoomLevels.secondary;if(Math.abs(n)<.01||!t.isZoomable())return W(e,!1),void e.classList.remove("pswp--zoom-allowed");e.classList.add("pswp--zoom-allowed");W(e,(s===t.zoomLevels.initial?t.zoomLevels.secondary:t.zoomLevels.initial)<=s),"zoom"!==i.imageClickAction&&"zoom-or-close"!==i.imageClickAction||e.classList.add("pswp--click-to-zoom")}}class Y{constructor(e,t){this.type=e,this.defaultPrevented=!1,t&&Object.assign(this,t)}preventDefault(){this.defaultPrevented=!0}}class Q{constructor(){this._listeners={},this._filters={},this.pswp=void 0,this.options=void 0}addFilter(e,t,i=100){var s,n,a;this._filters[e]||(this._filters[e]=[]),null===(s=this._filters[e])||void 0===s||s.push({fn:t,priority:i}),null===(n=this._filters[e])||void 0===n||n.sort((e,t)=>e.priority-t.priority),null===(a=this.pswp)||void 0===a||a.addFilter(e,t,i)}removeFilter(e,t){this._filters[e]&&(this._filters[e]=this._filters[e].filter(e=>e.fn!==t)),this.pswp&&this.pswp.removeFilter(e,t)}applyFilters(e,...t){var i;return null===(i=this._filters[e])||void 0===i||i.forEach(e=>{t[0]=e.fn.apply(this,t)}),t[0]}on(e,t){var i,s;this._listeners[e]||(this._listeners[e]=[]),null===(i=this._listeners[e])||void 0===i||i.push(t),null===(s=this.pswp)||void 0===s||s.on(e,t)}off(e,t){var i;this._listeners[e]&&(this._listeners[e]=this._listeners[e].filter(e=>t!==e)),null===(i=this.pswp)||void 0===i||i.off(e,t)}dispatch(e,t){var i;if(this.pswp)return this.pswp.dispatch(e,t);const s=new Y(e,t);return null===(i=this._listeners[e])||void 0===i||i.forEach(e=>{e.call(this,s)}),s}}class X{constructor(t,i){if(this.element=e("pswp__img pswp__img--placeholder",t?"img":"div",i),t){const e=this.element;e.decoding="async",e.alt="",e.src=t,e.setAttribute("role","presentation")}this.element.setAttribute("aria-hidden","true")}setDisplayedSize(e,t){this.element&&("IMG"===this.element.tagName?(d(this.element,250,"auto"),this.element.style.transformOrigin="0 0",this.element.style.transform=o(0,0,e/250)):d(this.element,e,t))}destroy(){var e;null!==(e=this.element)&&void 0!==e&&e.parentNode&&this.element.remove(),this.element=null}}class J{constructor(e,t,i){this.instance=t,this.data=e,this.index=i,this.element=void 0,this.placeholder=void 0,this.slide=void 0,this.displayedImageWidth=0,this.displayedImageHeight=0,this.width=Number(this.data.w)||Number(this.data.width)||0,this.height=Number(this.data.h)||Number(this.data.height)||0,this.isAttached=!1,this.hasSlide=!1,this.isDecoding=!1,this.state=c,this.data.type?this.type=this.data.type:this.data.src?this.type="image":this.type="html",this.instance.dispatch("contentInit",{content:this})}removePlaceholder(){this.placeholder&&!this.keepPlaceholder()&&setTimeout(()=>{this.placeholder&&(this.placeholder.destroy(),this.placeholder=void 0)},1e3)}load(t,i){if(this.slide&&this.usePlaceholder())if(this.placeholder){const e=this.placeholder.element;e&&!e.parentElement&&this.slide.container.prepend(e)}else{const e=this.instance.applyFilters("placeholderSrc",!(!this.data.msrc||!this.slide.isFirstSlide)&&this.data.msrc,this);this.placeholder=new X(e,this.slide.container)}this.element&&!i||this.instance.dispatch("contentLoad",{content:this,isLazy:t}).defaultPrevented||(this.isImageContent()?(this.element=e("pswp__img","img"),this.displayedImageWidth&&this.loadImage(t)):(this.element=e("pswp__content","div"),this.element.innerHTML=this.data.html||""),i&&this.slide&&this.slide.updateContentSize(!0))}loadImage(e){var t,i;if(!this.isImageContent()||!this.element||this.instance.dispatch("contentLoadImage",{content:this,isLazy:e}).defaultPrevented)return;const s=this.element;this.updateSrcsetSizes(),this.data.srcset&&(s.srcset=this.data.srcset),s.src=null!==(t=this.data.src)&&void 0!==t?t:"",s.alt=null!==(i=this.data.alt)&&void 0!==i?i:"",this.state=u,s.complete?this.onLoaded():(s.onload=()=>{this.onLoaded()},s.onerror=()=>{this.onError()})}setSlide(e){this.slide=e,this.hasSlide=!0,this.instance=e.pswp}onLoaded(){this.state=p,this.slide&&this.element&&(this.instance.dispatch("loadComplete",{slide:this.slide,content:this}),this.slide.isActive&&this.slide.heavyAppended&&!this.element.parentNode&&(this.append(),this.slide.updateContentSize(!0)),this.state!==p&&this.state!==h||this.removePlaceholder())}onError(){this.state=h,this.slide&&(this.displayError(),this.instance.dispatch("loadComplete",{slide:this.slide,isError:!0,
vendor: 4,992 bytes, line 2
2content:this}),this.instance.dispatch("loadError",{slide:this.slide,content:this}))}isLoading(){return this.instance.applyFilters("isContentLoading",this.state===u,this)}isError(){return this.state===h}isImageContent(){return"image"===this.type}setDisplayedSize(e,t){if(this.element&&(this.placeholder&&this.placeholder.setDisplayedSize(e,t),!this.instance.dispatch("contentResize",{content:this,width:e,height:t}).defaultPrevented&&(d(this.element,e,t),this.isImageContent()&&!this.isError()))){const i=!this.displayedImageWidth&&e;this.displayedImageWidth=e,this.displayedImageHeight=t,i?this.loadImage(!1):this.updateSrcsetSizes(),this.slide&&this.instance.dispatch("imageSizeChange",{slide:this.slide,width:e,height:t,content:this})}}isZoomable(){return this.instance.applyFilters("isContentZoomable",this.isImageContent()&&this.state!==h,this)}updateSrcsetSizes(){if(!this.isImageContent()||!this.element||!this.data.srcset)return;const e=this.element,t=this.instance.applyFilters("srcsetSizesWidth",this.displayedImageWidth,this);(!e.dataset.largestUsedSize||t>parseInt(e.dataset.largestUsedSize,10))&&(e.sizes=t+"px",e.dataset.largestUsedSize=String(t))}usePlaceholder(){return this.instance.applyFilters("useContentPlaceholder",this.isImageContent(),this)}lazyLoad(){this.instance.dispatch("contentLazyLoad",{content:this}).defaultPrevented||this.load(!0)}keepPlaceholder(){return this.instance.applyFilters("isKeepingPlaceholder",this.isLoading(),this)}destroy(){this.hasSlide=!1,this.slide=void 0,this.instance.dispatch("contentDestroy",{content:this}).defaultPrevented||(this.remove(),this.placeholder&&(this.placeholder.destroy(),this.placeholder=void 0),this.isImageContent()&&this.element&&(this.element.onload=null,this.element.onerror=null,this.element=void 0))}displayError(){if(this.slide){var t,i;let s=e("pswp__error-msg","div");s.innerText=null!==(t=null===(i=this.instance.options)||void 0===i?void 0:i.errorMsg)&&void 0!==t?t:"",s=this.instance.applyFilters("contentErrorElement",s,this),this.element=e("pswp__content pswp__error-msg-container","div"),this.element.appendChild(s),this.slide.container.innerText="",this.slide.container.appendChild(this.element),this.slide.updateContentSize(!0),this.removePlaceholder()}}append(){if(this.isAttached||!this.element)return;if(this.isAttached=!0,this.state===h)return void this.displayError();if(this.instance.dispatch("contentAppend",{content:this}).defaultPrevented)return;const e="decode"in this.element;this.isImageContent()?e&&this.slide&&(!this.slide.isActive||m())?(this.isDecoding=!0,this.element.decode().catch(()=>{}).finally(()=>{this.isDecoding=!1,this.appendImage()})):this.appendImage():this.slide&&!this.element.parentNode&&this.slide.container.appendChild(this.element)}activate(){!this.instance.dispatch("contentActivate",{content:this}).defaultPrevented&&this.slide&&(this.isImageContent()&&this.isDecoding&&!m()?this.appendImage():this.isError()&&this.load(!1,!0),this.slide.holderElement&&this.slide.holderElement.setAttribute("aria-hidden","false"))}deactivate(){this.instance.dispatch("contentDeactivate",{content:this}),this.slide&&this.slide.holderElement&&this.slide.holderElement.setAttribute("aria-hidden","true")}remove(){this.isAttached=!1,this.instance.dispatch("contentRemove",{content:this}).defaultPrevented||(this.element&&this.element.parentNode&&this.element.remove(),this.placeholder&&this.placeholder.element&&this.placeholder.element.remove())}appendImage(){this.isAttached&&(this.instance.dispatch("contentAppendImage",{content:this}).defaultPrevented||(this.slide&&this.element&&!this.element.parentNode&&this.slide.container.appendChild(this.element),this.state!==p&&this.state!==h||this.removePlaceholder()))}}function G(e,t,i){const s=t.createContentFromData(e,i);let n;const{options:a}=t;if(a){let o;n=new _(a,e,-1),o=t.pswp?t.pswp.viewportSize:g(a,t);const r=b(a,o,e,i);n.update(s.width,s.height,r)}return s.lazyLoad(),n&&s.setDisplayedSize(Math.ceil(s.width*n.initial),Math.ceil(s.height*n.initial)),s}class ee{constructor(e){this.pswp=e,this.limit=Math.max(e.options.preload[0]+e.options.preload[1]+1,5),this._cachedItems=[]}updateLazy(e){const{pswp:t}=this;if(t.dispatch("lazyLoad").defaultPrevented)return;const{preload:i}=t.options,s=void 0===e||e>=0;let n;for(n=0;n<=i[1];n++)this.loadSlideByIndex(t.currIndex+(s?n:-n));for(n=1;n<=i[0];n++)this.loadSlideByIndex(t.currIndex+(s?-n:n))}loadSlideByIndex(e){const t=this.pswp.getLoopedIndex(e);let i=this.getContentByIndex(t);i||(i=function(e,t){const i=t.getItemData(e);if(!t.dispatch("lazyLoadSlide",{index:e,itemData:i}).defaultPrevented)return G(i,t,e)}(t,this.pswp),i&&this.addToCache(i))}getContentBySlide(e){let t=this.getContentByIndex(e.index);return t||(t=this.pswp.createContentFromData(e.data,e.index),this.addToCache(t)),t.setSlide(e),t}addToCache(e){if(this.removeByIndex(e.index),this._cachedItems.push(e),this._cachedItems.length>this.limit){const e=this._cachedItems.findIndex(e=>!e.isAttached&&!e.hasSlide);
vendor: 5,776 bytes, line 2
2if(-1!==e){this._cachedItems.splice(e,1)[0].destroy()}}}removeByIndex(e){const t=this._cachedItems.findIndex(t=>t.index===e);-1!==t&&this._cachedItems.splice(t,1)}getContentByIndex(e){return this._cachedItems.find(t=>t.index===e)}destroy(){this._cachedItems.forEach(e=>e.destroy()),this._cachedItems=[]}}class te extends Q{getNumItems(){var e;let t=0;const i=null===(e=this.options)||void 0===e?void 0:e.dataSource;i&&"length"in i?t=i.length:i&&"gallery"in i&&(i.items||(i.items=this._getGalleryDOMElements(i.gallery)),i.items&&(t=i.items.length));const s=this.dispatch("numItems",{dataSource:i,numItems:t});return this.applyFilters("numItems",s.numItems,i)}createContentFromData(e,t){return new J(e,this,t)}getItemData(e){var t;const i=null===(t=this.options)||void 0===t?void 0:t.dataSource;let s={};Array.isArray(i)?s=i[e]:i&&"gallery"in i&&(i.items||(i.items=this._getGalleryDOMElements(i.gallery)),s=i.items[e]);let n=s;n instanceof Element&&(n=this._domElementToItemData(n));const a=this.dispatch("itemData",{itemData:n||{},index:e});return this.applyFilters("itemData",a.itemData,e)}_getGalleryDOMElements(e){var t,i;return null!==(t=this.options)&&void 0!==t&&t.children||null!==(i=this.options)&&void 0!==i&&i.childSelector?function(e,t,i=document){let s=[];if(e instanceof Element)s=[e];else if(e instanceof NodeList||Array.isArray(e))s=Array.from(e);else{const n="string"==typeof e?e:t;n&&(s=Array.from(i.querySelectorAll(n)))}return s}(this.options.children,this.options.childSelector,e)||[]:[e]}_domElementToItemData(e){const t={element:e},i="A"===e.tagName?e:e.querySelector("a");if(i){t.src=i.dataset.pswpSrc||i.href,i.dataset.pswpSrcset&&(t.srcset=i.dataset.pswpSrcset),t.width=i.dataset.pswpWidth?parseInt(i.dataset.pswpWidth,10):0,t.height=i.dataset.pswpHeight?parseInt(i.dataset.pswpHeight,10):0,t.w=t.width,t.h=t.height,i.dataset.pswpType&&(t.type=i.dataset.pswpType);const n=e.querySelector("img");var s;if(n)t.msrc=n.currentSrc||n.src,t.alt=null!==(s=n.getAttribute("alt"))&&void 0!==s?s:"";(i.dataset.pswpCropped||i.dataset.cropped)&&(t.thumbCropped=!0)}return this.applyFilters("domItemData",t,e,i)}lazyLoadData(e,t){return G(e,this,t)}}const ie=.003;class se{constructor(e){this.pswp=e,this.isClosed=!0,this.isOpen=!1,this.isClosing=!1,this.isOpening=!1,this._duration=void 0,this._useAnimation=!1,this._croppedZoom=!1,this._animateRootOpacity=!1,this._animateBgOpacity=!1,this._placeholder=void 0,this._opacityElement=void 0,this._cropContainer1=void 0,this._cropContainer2=void 0,this._thumbBounds=void 0,this._prepareOpen=this._prepareOpen.bind(this),e.on("firstZoomPan",this._prepareOpen)}open(){this._prepareOpen(),this._start()}close(){if(this.isClosed||this.isClosing||this.isOpening)return;const e=this.pswp.currSlide;this.isOpen=!1,this.isOpening=!1,this.isClosing=!0,this._duration=this.pswp.options.hideAnimationDuration,e&&e.currZoomLevel*e.width>=this.pswp.options.maxWidthToAnimate&&(this._duration=0),this._applyStartProps(),setTimeout(()=>{this._start()},this._croppedZoom?30:0)}_prepareOpen(){if(this.pswp.off("firstZoomPan",this._prepareOpen),!this.isOpening){const e=this.pswp.currSlide;this.isOpening=!0,this.isClosing=!1,this._duration=this.pswp.options.showAnimationDuration,e&&e.zoomLevels.initial*e.width>=this.pswp.options.maxWidthToAnimate&&(this._duration=0),this._applyStartProps()}}_applyStartProps(){const{pswp:e}=this,t=this.pswp.currSlide,{options:i}=e;var s,n;("fade"===i.showHideAnimationType?(i.showHideOpacity=!0,this._thumbBounds=void 0):"none"===i.showHideAnimationType?(i.showHideOpacity=!1,this._duration=0,this._thumbBounds=void 0):this.isOpening&&e._initialThumbBounds?this._thumbBounds=e._initialThumbBounds:this._thumbBounds=this.pswp.getThumbBounds(),this._placeholder=null==t?void 0:t.getPlaceholderElement(),e.animations.stopAll(),this._useAnimation=Boolean(this._duration&&this._duration>50),this._animateZoom=Boolean(this._thumbBounds)&&(null==t?void 0:t.content.usePlaceholder())&&(!this.isClosing||!e.mainScroll.isShifted()),this._animateZoom)?this._animateRootOpacity=null!==(s=i.showHideOpacity)&&void 0!==s&&s:(this._animateRootOpacity=!0,this.isOpening&&t&&(t.zoomAndPanToInitial(),t.applyCurrentZoomPan()));if(this._animateBgOpacity=!this._animateRootOpacity&&this.pswp.options.bgOpacity>ie,this._opacityElement=this._animateRootOpacity?e.element:e.bg,!this._useAnimation)return this._duration=0,this._animateZoom=!1,this._animateBgOpacity=!1,this._animateRootOpacity=!0,void(this.isOpening&&(e.element&&(e.element.style.opacity=String(ie)),e.applyBgOpacity(1)));this._animateZoom&&this._thumbBounds&&this._thumbBounds.innerRect?(this._croppedZoom=!0,this._cropContainer1=this.pswp.container,this._cropContainer2=null===(n=this.pswp.currSlide)||void 0===n?void 0:n.holderElement,e.container&&(e.container.style.overflow="hidden",e.container.style.width=e.viewportSize.x+"px")):this._croppedZoom=!1;this.isOpening?(this._animateRootOpacity?(e.element&&(e.element.style.opacity=String(ie)),e.applyBgOpacity(1)):(this._animateBgOpacity&&e.bg&&(e.bg.style.opacity=String(ie)),e.element&&(e.element.style.opacity="1")),this._animateZoom&&(this._setClosedStateZoomPan(),this._placeholder&&(this._placeholder.style.willChange="transform",this._placeholder.style.opacity=String(ie)))):this.isClosing&&(e.mainScroll.itemHolders[0]&&(e.mainScroll.itemHolders[0].el.style.display="none"),e.mainScroll.itemHolders[2]&&(e.mainScroll.itemHolders[2].el.style.display="none"),this._croppedZoom&&0!==e.mainScroll.x&&(e.mainScroll.resetPosition(),e.mainScroll.resize()))}_start(){this.isOpening&&this._useAnimation&&this._placeholder&&"IMG"===this._placeholder.tagName?new Promise(e=>{let t=!1,i=!0;var s;(s=this._placeholder,"decode"in s?s.decode().catch(()=>{}):s.complete?Promise.resolve(s):new Promise((e,t)=>
vendor: 10,843 bytes, line 2
2{s.onload=()=>e(s),s.onerror=t})).finally(()=>{t=!0,i||e(!0)}),setTimeout(()=>{i=!1,t&&e(!0)},50),setTimeout(e,250)}).finally(()=>this._initiate()):this._initiate()}_initiate(){var e,t;null===(e=this.pswp.element)||void 0===e||e.style.setProperty("--pswp-transition-duration",this._duration+"ms"),this.pswp.dispatch(this.isOpening?"openingAnimationStart":"closingAnimationStart"),this.pswp.dispatch("initialZoom"+(this.isOpening?"In":"Out")),null===(t=this.pswp.element)||void 0===t||t.classList.toggle("pswp--ui-visible",this.isOpening),this.isOpening?(this._placeholder&&(this._placeholder.style.opacity="1"),this._animateToOpenState()):this.isClosing&&this._animateToClosedState(),this._useAnimation||this._onAnimationComplete()}_onAnimationComplete(){const{pswp:e}=this;if(this.isOpen=this.isOpening,this.isClosed=this.isClosing,this.isOpening=!1,this.isClosing=!1,e.dispatch(this.isOpen?"openingAnimationEnd":"closingAnimationEnd"),e.dispatch("initialZoom"+(this.isOpen?"InEnd":"OutEnd")),this.isClosed)e.destroy();else if(this.isOpen){var t;this._animateZoom&&e.container&&(e.container.style.overflow="visible",e.container.style.width="100%"),null===(t=e.currSlide)||void 0===t||t.applyCurrentZoomPan()}}_animateToOpenState(){const{pswp:e}=this;this._animateZoom&&(this._croppedZoom&&this._cropContainer1&&this._cropContainer2&&(this._animateTo(this._cropContainer1,"transform","translate3d(0,0,0)"),this._animateTo(this._cropContainer2,"transform","none")),e.currSlide&&(e.currSlide.zoomAndPanToInitial(),this._animateTo(e.currSlide.container,"transform",e.currSlide.getCurrentTransform()))),this._animateBgOpacity&&e.bg&&this._animateTo(e.bg,"opacity",String(e.options.bgOpacity)),this._animateRootOpacity&&e.element&&this._animateTo(e.element,"opacity","1")}_animateToClosedState(){const{pswp:e}=this;this._animateZoom&&this._setClosedStateZoomPan(!0),this._animateBgOpacity&&e.bgOpacity>.01&&e.bg&&this._animateTo(e.bg,"opacity","0"),this._animateRootOpacity&&e.element&&this._animateTo(e.element,"opacity","0")}_setClosedStateZoomPan(e){if(!this._thumbBounds)return;const{pswp:i}=this,{innerRect:s}=this._thumbBounds,{currSlide:n,viewportSize:a}=i;if(this._croppedZoom&&s&&this._cropContainer1&&this._cropContainer2){const t=-a.x+(this._thumbBounds.x-s.x)+s.w,i=-a.y+(this._thumbBounds.y-s.y)+s.h,n=a.x-s.w,l=a.y-s.h;e?(this._animateTo(this._cropContainer1,"transform",o(t,i)),this._animateTo(this._cropContainer2,"transform",o(n,l))):(r(this._cropContainer1,t,i),r(this._cropContainer2,n,l))}n&&(t(n.pan,s||this._thumbBounds),n.currZoomLevel=this._thumbBounds.w/n.width,e?this._animateTo(n.container,"transform",n.getCurrentTransform()):n.applyCurrentZoomPan())}_animateTo(e,t,i){if(!this._duration)return void(e.style[t]=i);const{animations:s}=this.pswp,n={duration:this._duration,easing:this.pswp.options.easing,onComplete:()=>{s.activeAnimations.length||this._onAnimationComplete()},target:e};n[t]=i,s.startTransition(n)}}const ne={allowPanToNext:!0,spacing:.1,loop:!0,pinchToClose:!0,closeOnVerticalDrag:!0,hideAnimationDuration:333,showAnimationDuration:333,zoomAnimationDuration:333,escKey:!0,arrowKeys:!0,trapFocus:!0,returnFocus:!0,maxWidthToAnimate:4e3,clickToCloseNonZoomable:!0,imageClickAction:"zoom-or-close",bgClickAction:"close",tapAction:"toggle-controls",doubleTapAction:"zoom",indexIndicatorSep:" / ",preloaderDelay:2e3,bgOpacity:.8,index:0,errorMsg:"The image cannot be loaded",preload:[1,2],easing:"cubic-bezier(.4,0,.22,1)"};class ae extends te{constructor(e){super(),this.options=this._prepareOptions(e||{}),this.offset={x:0,y:0},this._prevViewportSize={x:0,y:0},this.viewportSize={x:0,y:0},this.bgOpacity=1,this.currIndex=0,this.potentialIndex=0,this.isOpen=!1,this.isDestroying=!1,this.hasMouse=!1,this._initialItemData={},this._initialThumbBounds=void 0,this.topBar=void 0,this.element=void 0,this.template=void 0,this.container=void 0,this.scrollWrap=void 0,this.currSlide=void 0,this.events=new w,this.animations=new B,this.mainScroll=new z(this),this.gestures=new S(this),this.opener=new se(this),this.keyboard=new E(this),this.contentLoader=new ee(this)}init(){if(this.isOpen||this.isDestroying)return!1;this.isOpen=!0,this.dispatch("init"),this.dispatch("beforeOpen"),this._createMainStructure();let e="pswp--open";return this.gestures.supportsTouch&&(e+=" pswp--touch"),this.options.mainClass&&(e+=" "+this.options.mainClass),this.element&&(this.element.className+=" "+e),this.currIndex=this.options.index||0,this.potentialIndex=this.currIndex,this.dispatch("firstUpdate"),this.scrollWheel=new M(this),(Number.isNaN(this.currIndex)||this.currIndex<0||this.currIndex>=this.getNumItems())&&(this.currIndex=0),this.gestures.supportsTouch||this.mouseDetected(),this.updateSize(),this.offset.y=window.pageYOffset,this._initialItemData=this.getItemData(this.currIndex),this.dispatch("gettingData",{index:this.currIndex,data:this._initialItemData,slide:void 0}),this._initialThumbBounds=this.getThumbBounds(),this.dispatch("initialLayout"),this.on("openingAnimationEnd",()=>{const{itemHolders:e}=this.mainScroll;e[0]&&(e[0].el.style.display="block",this.setContent(e[0],this.currIndex-1)),e[2]&&(e[2].el.style.display="block",this.setContent(e[2],this.currIndex+1)),this.appendHeavy(),this.contentLoader.updateLazy(),this.events.add(window,"resize",this._handlePageResize.bind(this)),this.events.add(window,"scroll",this._updatePageScrollOffset.bind(this)),this.dispatch("bindEvents")}),this.mainScroll.itemHolders[1]&&this.setContent(this.mainScroll.itemHolders[1],this.currIndex),this.dispatch("change"),this.opener.open(),this.dispatch("afterInit"),!0}getLoopedIndex(e){const t=this.getNumItems();return this.options.loop&&(e>t-1&&(e-=t),e<0&&(e+=t)),a(e,0,t-1)}appendHeavy(){this.mainScroll.itemHolders.forEach(e=>{var t;null===(t=e.slide)||void 0===t||t.appendHeavy()})}goTo(e){this.mainScroll.moveIndexBy(this.getLoopedIndex(e)-this.potentialIndex)}next(){this.goTo(this.potentialIndex+1)}prev(){this.goTo(this.potentialIndex-1)}zoomTo(...e){var t;null===(t=this.currSlide)||void 0===t||t.zoomTo(...e)}toggleZoom(){var e;null===(e=this.currSlide)||void 0===e||e.toggleZoom()}close(){this.opener.isOpen&&!this.isDestroying&&(this.isDestroying=!0,this.dispatch("close"),this.events.removeAll(),this.opener.close())}destroy(){var e;if(!this.isDestroying)return this.options.showHideAnimationType="none",void this.close();this.dispatch("destroy"),this._listeners={},this.scrollWrap&&(this.scrollWrap.ontouchmove=null,this.scrollWrap.ontouchend=null),null===(e=this.element)||void 0===e||e.remove(),this.mainScroll.itemHolders.forEach(e=>{var t;null===(t=e.slide)||void 0===t||t.destroy()}),this.contentLoader.destroy(),this.events.removeAll()}refreshSlideContent(e){this.contentLoader.removeByIndex(e),this.mainScroll.itemHolders.forEach((t,i)=>{var s,n;let a=(null!==(s=null===(n=this.currSlide)||void 0===n?void 0:n.index)&&void 0!==s?s:0)-1+i;var o;(this.canLoop()&&(a=this.getLoopedIndex(a)),a===e)&&(this.setContent(t,e,!0),1===i&&(this.currSlide=t.slide,null===(o=t.slide)||void 0===o||o.setIsActive(!0)))}),this.dispatch("change")}setContent(e,t,i){if(this.canLoop()&&(t=this.getLoopedIndex(t)),e.slide){if(e.slide.index===t&&!i)return;e.slide.destroy(),e.slide=void 0}if(!this.canLoop()&&(t<0||t>=this.getNumItems()))return;const s=this.getItemData(t);e.slide=new x(s,t,this),t===this.currIndex&&(this.currSlide=e.slide),e.slide.append(e.el)}getViewportCenterPoint(){return{x:this.viewportSize.x/2,y:this.viewportSize.y/2}}updateSize(e){if(this.isDestroying)return;const i=g(this.options,this);!e&&n(i,this._prevViewportSize)||(t(this._prevViewportSize,i),this.dispatch("beforeResize"),t(this.viewportSize,this._prevViewportSize),this._updatePageScrollOffset(),this.dispatch("viewportSize"),this.mainScroll.resize(this.opener.isOpen),!this.hasMouse&&window.matchMedia("(any-hover: hover)").matches&&this.mouseDetected(),this.dispatch("resize"))}applyBgOpacity(e){this.bgOpacity=Math.max(e,0),this.bg&&(this.bg.style.opacity=String(this.bgOpacity*this.options.bgOpacity))}mouseDetected(){var e;this.hasMouse||(this.hasMouse=!0,null===(e=this.element)||void 0===e||e.classList.add("pswp--has_mouse"))}_handlePageResize(){this.updateSize(),/iPhone|iPad|iPod/i.test(window.navigator.userAgent)&&setTimeout(()=>{this.updateSize()},500)}_updatePageScrollOffset(){this.setScrollOffset(0,window.pageYOffset)}setScrollOffset(e,t){this.offset.x=e,this.offset.y=t,this.dispatch("updateScrollOffset")}_createMainStructure(){this.element=e("pswp","div"),this.element.setAttribute("tabindex","-1"),this.element.setAttribute("role","dialog"),this.template=this.element,this.bg=e("pswp__bg","div",this.element),this.scrollWrap=e("pswp__scroll-wrap","section",this.element),this.container=e("pswp__container","div",this.scrollWrap),this.scrollWrap.setAttribute("aria-roledescription","carousel"),this.container.setAttribute("aria-live","off"),this.container.setAttribute("id","pswp__items"),this.mainScroll.appendHolders(),this.ui=new K(this),this.ui.init(),(this.options.appendToEl||document.body).appendChild(this.element)}getThumbBounds(){return function(e,t,i){const s=i.dispatch("thumbBounds",{index:e,itemData:t,instance:i});if(s.thumbBounds)return s.thumbBounds;const{element:n}=t;let a,o;if(n&&!1!==i.options.thumbSelector){const e=i.options.thumbSelector||"img";o=n.matches(e)?n:n.querySelector(e)}return o=i.applyFilters("thumbEl",o,t,e),o&&(a=t.thumbCropped?function(e,t,i){const s=e.getBoundingClientRect(),n=s.width/t,a=s.height/i,o=n>a?n:a,r=(s.width-t*o)/2,l=(s.height-i*o)/2,d={x:s.left+r,y:s.top+l,w:t*o};return d.innerRect={w:s.width,h:s.height,x:r,y:l},d}(o,t.width||t.w||0,t.height||t.h||0):function(e){const t=e.getBoundingClientRect();return{x:t.left,y:t.top,w:t.width}}(o)),i.applyFilters("thumbBounds",a,t,e)}(this.currIndex,this.currSlide?this.currSlide.data:this._initialItemData,this)}canLoop(){return this.options.loop&&this.getNumItems()>2}_prepareOptions(e){return window.matchMedia("(prefers-reduced-motion), (update: slow)").matches&&(e.showHideAnimationType="none",e.zoomAnimationDuration=0),{...ne,...e}}}!function(){var e="[data-zoom]",t="AizvÄrt",i="PietuvinÄt",s="IepriekÅ¡Äjais attÄls",n="NÄkamais attÄls",a="AttÄlu neizdevÄs ielÄdÄt.";function o(e){return e.getAttribute("data-zoom-src")||e.getAttribute("href")||""}function r(e){return e.matches("img")?e:e.querySelector("img")}function l(e){var t=e.getAttribute("data-zoom-caption");if(t)return t;var i=e.closest("figure, .image-container, .main-image, .wp-caption"),s=i&&i.querySelector("figcaption, .wp-element-caption, .img-caption, .wp-caption-text, .caption");if(s&&s.textContent.trim())return s.textContent.trim();var n=r(e);return n&&n.getAttribute("alt")||""}function d(e){var t=r(e),i=parseInt(e.getAttribute("data-zoom-width")||"0",10),s=parseInt(e.getAttribute("data-zoom-height")||"0",10),n=!(!i||!s);
2return!n&&t&&t.naturalWidth&&(i=t.naturalWidth,s=t.naturalHeight),{src:o(e),width:i||1600,height:s||1067,alt:t&&t.getAttribute("alt")||"",caption:l(e),element:e,exactSize:n}}function c(e,o){var r=new ae({dataSource:e,index:o||0,bgOpacity:.92,wheelToZoom:!0,initialZoomLevel:"fit",secondaryZoomLevel:2.5,maxZoomLevel:4,closeTitle:t,zoomTitle:i,arrowPrevTitle:s,arrowNextTitle:n,errorMsg:a});return r.on("uiRegister",function(){r.ui.registerElement({name:"rc-caption",order:9,isButton:!1,appendTo:"root",onInit:function(e){e.style.cssText="position:absolute;left:50%;bottom:16px;transform:translateX(-50%);max-width:min(92vw,900px);padding:8px 14px;border-radius:4px;background:rgba(0,0,0,.55);color:#fff;font-size:14px;line-height:1.45;text-align:center;pointer-events:none;z-index:10",r.on("change",function(){var t=r.currSlide&&r.currSlide.data.caption||"";e.textContent=t,e.style.display=t?"block":"none"})}})}),r.init(),e.forEach(function(e,t){if(!e.exactSize&&e.src){var i=new Image;i.onload=function(){i.naturalWidth&&(e.exactSize=!0,i.naturalWidth===e.width&&i.naturalHeight===e.height||(e.width=i.naturalWidth,e.height=i.naturalHeight,r.isOpen&&r.refreshSlideContent(t)))},i.src=e.src}}),r}document.addEventListener("click",function(t){var i=t.target.closest(e);if(i&&o(i)&&!(t.button||t.ctrlKey||t.metaKey||t.shiftKey)){t.preventDefault();var s=function(t){var i=t.getAttribute("data-zoom");if(!i)return[t];var s=Array.prototype.slice.call(document.querySelectorAll(e)).filter(function(e){return e.getAttribute("data-zoom")===i&&o(e)});return s.length?s:[t]}(i);c(s.map(d),Math.max(0,s.indexOf(i)))}}),window.rcZoom={open:c}}()},449:()=>{var e;e=window.matchMedia&&window.matchMedia("(pointer: coarse)").matches,navigator.share&&e&&document.addEventListener("click",function(e){var t=e.target;if(t&&"function"==typeof t.closest){var i=t.closest('a[href*="facebook.com/sharer"]');if(i){var s=function(e){var t=e.getAttribute("data-share-url");if(t)return t;var i=/[?&]u=([^&]+)/.exec(e.getAttribute("href")||"");if(i)try{return decodeURIComponent(i[1])}catch(e){}return window.location.href}(i),n=function(e){var t=e.getAttribute("data-share-title");if(t)return t;var i=document.querySelector('meta[property="og:title"]');return i&&i.getAttribute("content")||document.title}(i);e.preventDefault(),navigator.share({title:n,text:n,url:s}).catch(function(e){e&&"AbortError"===e.name||window.open(i.href,"_blank","noopener")})}}})},465:function(e){e.exports=function(){"use strict";function e(e,t,i){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:i;throw new TypeError("Private element is not present on this object")}function t(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function i(t,i){return t.get(e(t,i))}function s(e,i,s){t(e,i),i.set(e,s)}function n(t,i,s){return t.set(e(t,i),s),s}const a=100,o={},r=()=>{o.previousActiveElement instanceof HTMLElement?(o.previousActiveElement.focus(),o.previousActiveElement=null):document.body&&document.body.focus()},l=e=>new Promise(t=>{if(!e)return t();const i=window.scrollX,s=window.scrollY;o.restoreFocusTimeout=setTimeout(()=>{r(),t()},a),window.scrollTo(i,s)}),d="swal2-",c=["container","shown","height-auto","iosfix","popup","modal","no-backdrop","no-transition","toast","toast-shown","show","hide","close","title","html-container","actions","confirm","deny","cancel","footer","icon","icon-content","image","input","file","range","select","radio","checkbox","label","textarea","inputerror","input-label","validation-message","progress-steps","active-progress-step","progress-step","progress-step-line","loader","loading","styled","top","top-start","top-end","top-left","top-right","center","center-start","center-end","center-left","center-right","bottom","bottom-start","bottom-end","bottom-left","bottom-right","grow-row","grow-column","grow-fullscreen","rtl","timer-progress-bar","timer-progress-bar-container","scrollbar-measure","icon-success","icon-warning","icon-info","icon-question","icon-error","draggable","dragging"].reduce((e,t)=>(e[t]=d+t,e),{}),u=["success","warning","info","question","error"].reduce((e,t)=>
2(e[t]=d+t,e),{}),p="SweetAlert2:",h=e=>e.charAt(0).toUpperCase()+e.slice(1),m=e=>{console.warn(`${p} ${"object"==typeof e?e.join(" "):e}`)},f=e=>{console.error(`${p} ${e}`)},w=[],g=e=>{w.includes(e)||(w.push(e),m(e))},v=(e,t=null)=>{g(`"${e}" is deprecated and will be removed in the next major release.${t?` Use "${t}" instead.`:""}`)},b=e=>"function"==typeof e?e():e,y=e=>e&&"function"==typeof e.toPromise,_=e=>y(e)?e.toPromise():Promise.resolve(e),x=e=>e&&Promise.resolve(e)===e,F=()=>document.body.querySelector(`.${c.container}`),k=e=>{const t=F();return t?t.querySelector(e):null},C=e=>k(`.${e}`),A=()=>C(c.popup),P=()=>C(c.icon),S=()=>C(c["icon-content"]),z=()=>C(c.title),D=()=>C(c["html-container"]),j=()=>C(c.image),E=()=>C(c["progress-steps"]),T=()=>C(c["validation-message"]),L=()=>k(`.${c.actions} .${c.confirm}`),I=()=>k(`.${c.actions} .${c.cancel}`),O=()=>k(`.${c.actions} .${c.deny}`),B=()=>C(c["input-label"]),M=()=>k(`.${c.loader}`),$=()=>C(c.actions),Z=()=>C(c.footer),N=()=>C(c["timer-progress-bar"]),q=()=>C(c.close),H='\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',R=()=>{const e=A();if(!e)return[];const t=e.querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])'),i=Array.from(t).sort((e,t)=>{const i=parseInt(e.getAttribute("tabindex")||"0"),s=parseInt(t.getAttribute("tabindex")||"0");return i>s?1:i<s?-1:0}),s=e.querySelectorAll(H),n=Array.from(s).filter(e=>"-1"!==e.getAttribute("tabindex"));return[...new Set(i.concat(n))].filter(e=>ce(e))},V=()=>Y(document.body,c.shown)&&!Y(document.body,c["toast-shown"])&&!Y(document.body,c["no-backdrop"]),U=()=>{const e=A();return!!e&&Y(e,c.toast)},W=()=>{const e=A();return!!e&&e.hasAttribute("data-loading")},K=(e,t)=>{if(e.textContent="",t){const i=(new DOMParser).parseFromString(t,"text/html"),s=i.querySelector("head");s&&Array.from(s.childNodes).forEach(t=>{e.appendChild(t)});const n=i.querySelector("body");n&&Array.from(n.childNodes).forEach(t=>{t instanceof HTMLVideoElement||t instanceof HTMLAudioElement?e.appendChild(t.cloneNode(!0)):e.appendChild(t)})}},Y=(e,t)=>{if(!t)return!1;const i=t.split(/\s+/);for(let t=0;t<i.length;t++)if(!e.classList.contains(i[t]))return!1;return!0},Q=(e,t)=>{Array.from(e.classList).forEach(i=>{Object.values(c).includes(i)||Object.values(u).includes(i)||Object.values(t.showClass||{}).includes(i)||e.classList.remove(i)})},X=(e,t,i)=>{if(Q(e,t),!t.customClass)return;const s=t.customClass[i];s&&("string"==typeof s||s.forEach?te(e,s):m(`Invalid type of customClass.${i}! Expected string or iterable object, got "${typeof s}"`))},J=(e,t)=>{if(!t)return null;switch(t){case"select":case"textarea":case"file":return e.querySelector(`.${c.popup} > .${c[t]}`);case"checkbox":return e.querySelector(`.${c.popup} > .${c.checkbox} input`);case"radio":return e.querySelector(`.${c.popup} > .${c.radio} input:checked`)||e.querySelector(`.${c.popup} > .${c.radio} input:first-child`);case"range":return e.querySelector(`.${c.popup} > .${c.range} input`);default:return e.querySelector(`.${c.popup} > .${c.input}`)}},G=e=>{if(e.focus(),"file"!==e.type){const t=e.value;e.value="",e.value=t}},ee=(e,t,i)=>{e&&t&&("string"==typeof t&&(t=t.split(/\s+/).filter(Boolean)),t.forEach(t=>{Array.isArray(e)?e.forEach(e=>{i?e.classList.add(t):e.classList.remove(t)}):i?e.classList.add(t):e.classList.remove(t)}))},te=(e,t)=>{ee(e,t,!0)},ie=(e,t)=>{ee(e,t,!1)},se=(e,t)=>{const i=Array.from(e.children);for(let e=0;e<i.length;e++){const s=i[e];if(s instanceof HTMLElement&&Y(s,t))return s}},ne=(e,t,i)=>{i===`${parseInt(i)}`&&(i=parseInt(i)),i||0===parseInt(i)?e.style.setProperty(t,"number"==typeof i?`${i}px`:i):e.style.removeProperty(t)},ae=(e,t="flex")=>{e&&(e.style.display=t)},oe=e=>{e&&(e.style.display="none")},re=(e,t="block")=>{e&&new MutationObserver(()=>{de(e,e.innerHTML,t)}).observe(e,{childList:!0,subtree:!0})},le=(e,t,i,s)=>{const n=e.querySelector(t);n&&n.style.setProperty(i,s)},de=(e,t,i="flex")=>
2{t?ae(e,i):oe(e)},ce=e=>!(!e||!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)),ue=()=>!ce(L())&&!ce(O())&&!ce(I()),pe=e=>!!(e.scrollHeight>e.clientHeight),he=(e,t)=>{let i=e;for(;i&&i!==t;){if(pe(i))return!0;i=i.parentElement}return!1},me=e=>{const t=window.getComputedStyle(e),i=parseFloat(t.getPropertyValue("animation-duration")||"0"),s=parseFloat(t.getPropertyValue("transition-duration")||"0");return i>0||s>0},fe=(e,t=!1)=>{const i=N();i&&ce(i)&&(t&&(i.style.transition="none",i.style.width="100%"),setTimeout(()=>{i.style.transition=`width ${e/1e3}s linear`,i.style.width="0%"},10))},we=()=>{const e=N();if(!e)return;const t=parseInt(window.getComputedStyle(e).width);e.style.removeProperty("transition"),e.style.width="100%";const i=t/parseInt(window.getComputedStyle(e).width)*100;e.style.width=`${i}%`},ge=()=>"undefined"==typeof window||"undefined"==typeof document,ve=`\n <div aria-labelledby="${c.title}" aria-describedby="${c["html-container"]}" class="${c.popup}" tabindex="-1">\n <button type="button" class="${c.close}"></button>\n <ul class="${c["progress-steps"]}"></ul>\n <div class="${c.icon}"></div>\n <img class="${c.image}" />\n <h2 class="${c.title}" id="${c.title}"></h2>\n <div class="${c["html-container"]}" id="${c["html-container"]}"></div>\n <input class="${c.input}" id="${c.input}" />\n <input type="file" class="${c.file}" />\n <div class="${c.range}">\n <input type="range" />\n <output></output>\n </div>\n <select class="${c.select}" id="${c.select}"></select>\n <div class="${c.radio}"></div>\n <label class="${c.checkbox}">\n <input type="checkbox" id="${c.checkbox}" />\n <span class="${c.label}"></span>\n </label>\n <textarea class="${c.textarea}" id="${c.textarea}"></textarea>\n <div class="${c["validation-message"]}" id="${c["validation-message"]}"></div>\n <div class="${c.actions}">\n <div class="${c.loader}"></div>\n <button type="button" class="${c.confirm}"></button>\n <button type="button" class="${c.deny}"></button>\n <button type="button" class="${c.cancel}"></button>\n </div>\n <div class="${c.footer}"></div>\n <div class="${c["timer-progress-bar-container"]}">\n <div class="${c["timer-progress-bar"]}"></div>\n </div>\n </div>\n`.replace(/(^|\n)\s*/g,""),be=()=>{const e=F();return!!e&&(e.remove(),ie([document.documentElement,document.body],[c["no-backdrop"],c["toast-shown"],c["has-column"]]),!0)},ye=()=>{o.currentInstance.resetValidationMessage()},_e=()=>{const e=A(),t=se(e,c.input),i=se(e,c.file),s=e.querySelector(`.${c.range} input`),n=e.querySelector(`.${c.range} output`),a=se(e,c.select),o=e.querySelector(`.${c.checkbox} input`),r=se(e,c.textarea);t.oninput=ye,i.onchange=ye,a.onchange=ye,o.onchange=ye,r.oninput=ye,s.oninput=()=>{ye(),n.value=s.value},s.onchange=()=>{ye(),n.value=s.value}},xe=e=>"string"==typeof e?document.querySelector(e):e,Fe=e=>{const t=A();t.setAttribute("role",e.toast?"alert":"dialog"),t.setAttribute("aria-live",e.toast?"polite":"assertive"),e.toast||t.setAttribute("aria-modal","true")},ke=e=>{"rtl"===window.getComputedStyle(e).direction&&te(F(),c.rtl)},Ce=e=>{const t=be();if(ge())return void f("SweetAlert2 requires document to initialize");const i=document.createElement("div");i.className=c.container,t&&te(i,c["no-transition"]),K(i,ve),i.dataset.swal2Theme=e.theme;const s=xe(e.target);s.appendChild(i),e.topLayer&&(i.setAttribute("popover",""),i.showPopover()),Fe(e),ke(s),_e()},Ae=(e,t)=>
2{e instanceof HTMLElement?t.appendChild(e):"object"==typeof e?Pe(e,t):e&&K(t,e)},Pe=(e,t)=>{e.jquery?Se(t,e):K(t,e.toString())},Se=(e,t)=>{if(e.textContent="",0 in t)for(let i=0;i in t;i++)e.appendChild(t[i].cloneNode(!0));else e.appendChild(t.cloneNode(!0))},ze=(e,t)=>{const i=$(),s=M();i&&s&&(t.showConfirmButton||t.showDenyButton||t.showCancelButton?ae(i):oe(i),X(i,t,"actions"),De(i,s,t),K(s,t.loaderHtml||""),X(s,t,"loader"))};function De(e,t,i){const s=L(),n=O(),a=I();s&&n&&a&&(Te(s,"confirm",i),Te(n,"deny",i),Te(a,"cancel",i),je(s,n,a,i),i.reverseButtons&&(i.toast?(e.insertBefore(a,s),e.insertBefore(n,s)):(e.insertBefore(a,t),e.insertBefore(n,t),e.insertBefore(s,t))))}function je(e,t,i,s){s.buttonsStyling?(te([e,t,i],c.styled),s.confirmButtonColor&&e.style.setProperty("--swal2-confirm-button-background-color",s.confirmButtonColor),s.denyButtonColor&&t.style.setProperty("--swal2-deny-button-background-color",s.denyButtonColor),s.cancelButtonColor&&i.style.setProperty("--swal2-cancel-button-background-color",s.cancelButtonColor),Ee(e),Ee(t),Ee(i)):ie([e,t,i],c.styled)}function Ee(e){const t=window.getComputedStyle(e);if(t.getPropertyValue("--swal2-action-button-focus-box-shadow"))return;const i=t.backgroundColor.replace(/rgba?\((\d+), (\d+), (\d+).*/,"rgba($1, $2, $3, 0.5)");e.style.setProperty("--swal2-action-button-focus-box-shadow",t.getPropertyValue("--swal2-outline").replace(/ rgba\(.*/,` ${i}`))}function Te(e,t,i){const s=h(t);de(e,i[`show${s}Button`],"inline-block"),K(e,i[`${t}ButtonText`]||""),e.setAttribute("aria-label",i[`${t}ButtonAriaLabel`]||""),e.className=c[t],X(e,i,`${t}Button`)}const Le=(e,t)=>{const i=q();i&&(K(i,t.closeButtonHtml||""),X(i,t,"closeButton"),de(i,t.showCloseButton),i.setAttribute("aria-label",t.closeButtonAriaLabel||""))},Ie=(e,t)=>{const i=F();i&&(Oe(i,t.backdrop),Be(i,t.position),Me(i,t.grow),X(i,t,"container"))};function Oe(e,t){"string"==typeof t?e.style.background=t:t||te([document.documentElement,document.body],c["no-backdrop"])}function Be(e,t){t&&(t in c?te(e,c[t]):(m('The "position" parameter is not valid, defaulting to "center"'),te(e,c.center)))}function Me(e,t){t&&te(e,c[`grow-${t}`])}var $e={innerParams:new WeakMap,domCache:new WeakMap};const Ze=["input","file","range","select","radio","checkbox","textarea"],Ne=(e,t)=>{const i=A();if(!i)return;const s=$e.innerParams.get(e),n=!s||t.input!==s.input;Ze.forEach(e=>{const s=se(i,c[e]);s&&(Re(e,t.inputAttributes),s.className=c[e],n&&oe(s))}),t.input&&(n&&qe(t),Ve(t))},qe=e=>{if(!e.input)return;if(!Qe[e.input])return void f(`Unexpected type of input! Expected ${Object.keys(Qe).join(" | ")}, got "${e.input}"`);const t=Ke(e.input);if(!t)return;const i=Qe[e.input](t,e);ae(t),e.inputAutoFocus&&setTimeout(()=>{G(i)})},He=e=>{for(let t=0;t<e.attributes.length;t++){const i=e.attributes[t].name;["id","type","value","style"].includes(i)||e.removeAttribute(i)}},Re=(e,t)=>{const i=A();if(!i)return;const s=J(i,e);if(s){He(s);for(const e in t)s.setAttribute(e,t[e])}},Ve=e=>{if(!e.input)return;const t=Ke(e.input);t&&X(t,e,"input")},Ue=(e,t)=>{!e.placeholder&&t.inputPlaceholder&&(e.placeholder=t.inputPlaceholder)},We=(e,t,i)=>{if(i.inputLabel){const s=document.createElement("label"),n=c["input-label"];s.setAttribute("for",e.id),s.className=n,"object"==typeof i.customClass&&te(s,i.customClass.inputLabel),s.innerText=i.inputLabel,t.insertAdjacentElement("beforebegin",s)}},Ke=e=>{const t=A();if(t)return se(t,c[e]||c.input)},Ye=(e,t)=>{["string","number"].includes(typeof t)?e.value=`${t}`:x(t)||m(`Unexpected type of inputValue! Expected "string", "number" or "Promise", got "${typeof t}"`)},Qe={};Qe.text=Qe.email=Qe.password=Qe.number=Qe.tel=Qe.url=Qe.search=Qe.date=Qe["datetime-local"]=Qe.time=Qe.week=Qe.month=(e,t)=>(Ye(e,t.inputValue),We(e,e,t),Ue(e,t),e.type=t.input,e),Qe.file=(e,t)=>(We(e,e,t),Ue(e,t),e),Qe.range=(e,t)=>{const i=e.querySelector("input"),s=e.querySelector("output");return Ye(i,t.inputValue),i.type=t.input,Ye(s,t.inputValue),We(i,e,t),e},Qe.select=(e,t)=>{if(e.textContent="",t.inputPlaceholder){const i=document.createElement("option");K(i,t.inputPlaceholder),i.value="",i.disabled=!0,i.selected=!0,e.a
2ppendChild(i)}return We(e,e,t),e},Qe.radio=e=>(e.textContent="",e),Qe.checkbox=(e,t)=>{const i=J(A(),"checkbox");i.value="1",i.checked=Boolean(t.inputValue);const s=e.querySelector("span");return K(s,t.inputPlaceholder||t.inputLabel),i},Qe.textarea=(e,t)=>{Ye(e,t.inputValue),Ue(e,t),We(e,e,t);const i=e=>parseInt(window.getComputedStyle(e).marginLeft)+parseInt(window.getComputedStyle(e).marginRight);return setTimeout(()=>{if("MutationObserver"in window){const s=parseInt(window.getComputedStyle(A()).width);new MutationObserver(()=>{if(!document.body.contains(e))return;const n=e.offsetWidth+i(e);n>s?A().style.width=`${n}px`:ne(A(),"width",t.width)}).observe(e,{attributes:!0,attributeFilter:["style"]})}}),e};const Xe=(e,t)=>{const i=D();i&&(re(i),X(i,t,"htmlContainer"),t.html?(Ae(t.html,i),ae(i,"block")):t.text?(i.textContent=t.text,ae(i,"block")):oe(i),Ne(e,t))},Je=(e,t)=>{const i=Z();i&&(re(i),de(i,t.footer,"block"),t.footer&&Ae(t.footer,i),X(i,t,"footer"))},Ge=(e,t)=>{const i=$e.innerParams.get(e),s=P();if(s){if(i&&t.icon===i.icon)return nt(s,t),void et(s,t);if(t.icon||t.iconHtml){if(t.icon&&-1===Object.keys(u).indexOf(t.icon))return f(`Unknown icon! Expected "success", "error", "warning", "info" or "question", got "${t.icon}"`),void oe(s);ae(s),nt(s,t),et(s,t),te(s,t.showClass&&t.showClass.icon),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",tt)}else oe(s)}},et=(e,t)=>{for(const[i,s]of Object.entries(u))t.icon!==i&&ie(e,s);te(e,t.icon&&u[t.icon]),at(e,t),tt(),X(e,t,"icon")},tt=()=>{const e=A();if(!e)return;const t=window.getComputedStyle(e).getPropertyValue("background-color"),i=e.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix");for(let e=0;e<i.length;e++)i[e].style.backgroundColor=t},it=e=>`\n ${e.animation?'<div class="swal2-success-circular-line-left"></div>':""}\n <span class="swal2-success-line-tip"></span> <span class="swal2-success-line-long"></span>\n <div class="swal2-success-ring"></div>\n ${e.animation?'<div class="swal2-success-fix"></div>':""}\n ${e.animation?'<div class="swal2-success-circular-line-right"></div>':""}\n`,st='\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',nt=(e,t)=>{if(!t.icon&&!t.iconHtml)return;let i=e.innerHTML,s="";t.iconHtml?s=ot(t.iconHtml):"success"===t.icon?(s=it(t),i=i.replace(/ style=".*?"/g,"")):"error"===t.icon?s=st:t.icon&&(s=ot({question:"?",warning:"!",info:"i"}[t.icon])),i.trim()!==s.trim()&&K(e,s)},at=(e,t)=>{if(t.iconColor){e.style.color=t.iconColor,e.style.borderColor=t.iconColor;for(const i of[".swal2-success-line-tip",".swal2-success-line-long",".swal2-x-mark-line-left",".swal2-x-mark-line-right"])le(e,i,"background-color",t.iconColor);le(e,".swal2-success-ring","border-color",t.iconColor)}},ot=e=>`<div class="${c["icon-content"]}">${e}</div>`,rt=(e,t)=>{const i=j();i&&(t.imageUrl?(ae(i,""),i.setAttribute("src",t.imageUrl),i.setAttribute("alt",t.imageAlt||""),ne(i,"width",t.imageWidth),ne(i,"height",t.imageHeight),i.className=c.image,X(i,t,"image")):oe(i))};let lt=!1,dt=0,ct=0,ut=0,pt=0;const ht=e=>{e.addEventListener("mousedown",ft),document.body.addEventListener("mousemove",wt),e.addEventListener("mouseup",gt),e.addEventListener("touchstart",ft),document.body.addEventListener("touchmove",wt),e.addEventListener("touchend",gt)},mt=e=>{e.removeEventListener("mousedown",ft),document.body.removeEventListener("mousemove",wt),e.removeEventListener("mouseup",gt),e.removeEventListener("touchstart",ft),document.body.removeEventListener("touchmove",wt),e.removeEventListener("touchend",gt)},ft=e=>{const t=A();if(e.target===t||P().contains(e.target)){lt=!0;const i=vt(e);dt=i.clientX,ct=i.clientY,ut=parseInt(t.style.insetInlineStart)||0,pt=parseInt(t.style.insetBlockStart)||0,te(t,"swal2-dragging")}},wt=e=>{const t=A();if(lt){let{clientX:i,clientY:s}=vt(e);t.style.insetInlineStart=`${ut+(i-dt)}px`,t.style.insetBlockStart=`${pt+(s-ct)}px`}},gt=()=>{const e=A();lt=!1,ie(e,"swal2-dragging")},vt=e=>{let t=0,i=0;return e.type.startsWith("mouse")?(t=e.clientX,i=e.clientY):e.type.startsWith("touch")&&(t=e.touches[0].clientX,i=e.touches[0].clientY),{clientX:t,clientY:i}}
vendor: 2,859 bytes, line 2
2,bt=(e,t)=>{const i=F(),s=A();if(i&&s){if(t.toast){ne(i,"width",t.width),s.style.width="100%";const e=M();e&&s.insertBefore(e,P())}else ne(s,"width",t.width);ne(s,"padding",t.padding),t.color&&(s.style.color=t.color),t.background&&(s.style.background=t.background),oe(T()),yt(s,t),t.draggable&&!t.toast?(te(s,c.draggable),ht(s)):(ie(s,c.draggable),mt(s))}},yt=(e,t)=>{const i=t.showClass||{};e.className=`${c.popup} ${ce(e)?i.popup:""}`,t.toast?(te([document.documentElement,document.body],c["toast-shown"]),te(e,c.toast)):te(e,c.modal),X(e,t,"popup"),"string"==typeof t.customClass&&te(e,t.customClass),t.icon&&te(e,c[`icon-${t.icon}`])},_t=(e,t)=>{const i=E();if(!i)return;const{progressSteps:s,currentProgressStep:n}=t;s&&0!==s.length&&void 0!==n?(ae(i),i.textContent="",n>=s.length&&m("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),s.forEach((e,a)=>{const o=xt(e);if(i.appendChild(o),a===n&&te(o,c["active-progress-step"]),a!==s.length-1){const e=Ft(t);i.appendChild(e)}})):oe(i)},xt=e=>{const t=document.createElement("li");return te(t,c["progress-step"]),K(t,e),t},Ft=e=>{const t=document.createElement("li");return te(t,c["progress-step-line"]),e.progressStepsDistance&&ne(t,"width",e.progressStepsDistance),t},kt=(e,t)=>{const i=z();i&&(re(i),de(i,t.title||t.titleText,"block"),t.title&&Ae(t.title,i),t.titleText&&(i.innerText=t.titleText),X(i,t,"title"))},Ct=(e,t)=>{bt(e,t),Ie(e,t),_t(e,t),Ge(e,t),rt(e,t),kt(e,t),Le(e,t),Xe(e,t),ze(e,t),Je(e,t);const i=A();"function"==typeof t.didRender&&i&&t.didRender(i),o.eventEmitter.emit("didRender",i)},At=()=>ce(A()),Pt=()=>{var e;return null===(e=L())||void 0===e?void 0:e.click()},St=()=>{var e;return null===(e=O())||void 0===e?void 0:e.click()},zt=()=>{var e;return null===(e=I())||void 0===e?void 0:e.click()},Dt=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),jt=e=>{e.keydownTarget&&e.keydownHandlerAdded&&(e.keydownTarget.removeEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!1)},Et=(e,t,i)=>{jt(e),t.toast||(e.keydownHandler=e=>Ot(t,e,i),e.keydownTarget=t.keydownListenerCapture?window:A(),e.keydownListenerCapture=t.keydownListenerCapture,e.keydownTarget.addEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!0)},Tt=(e,t)=>{var i;const s=R();if(s.length)return-2===(e+=t)&&(e=s.length-1),e===s.length?e=0:-1===e&&(e=s.length-1),void s[e].focus();null===(i=A())||void 0===i||i.focus()},Lt=["ArrowRight","ArrowDown"],It=["ArrowLeft","ArrowUp"],Ot=(e,t,i)=>{e&&(t.isComposing||229===t.keyCode||(e.stopKeydownPropagation&&t.stopPropagation(),"Enter"===t.key?Bt(t,e):"Tab"===t.key?Mt(t):[...Lt,...It].includes(t.key)?$t(t.key):"Escape"===t.key&&Zt(t,e,i)))},Bt=(e,t)=>
2{if(!b(t.allowEnterKey))return;const i=J(A(),t.input);if(e.target&&i&&e.target instanceof HTMLElement&&e.target.outerHTML===i.outerHTML){if(["textarea","file"].includes(t.input))return;Pt(),e.preventDefault()}},Mt=e=>{const t=e.target,i=R();let s=-1;for(let e=0;e<i.length;e++)if(t===i[e]){s=e;break}e.shiftKey?Tt(s,-1):Tt(s,1),e.stopPropagation(),e.preventDefault()},$t=e=>{const t=$(),i=L(),s=O(),n=I();if(!(t&&i&&s&&n))return;const a=[i,s,n];if(document.activeElement instanceof HTMLElement&&!a.includes(document.activeElement))return;const o=Lt.includes(e)?"nextElementSibling":"previousElementSibling";let r=document.activeElement;if(r){for(let e=0;e<t.children.length;e++){if(r=r[o],!r)return;if(r instanceof HTMLButtonElement&&ce(r))break}r instanceof HTMLButtonElement&&r.focus()}},Zt=(e,t,i)=>{e.preventDefault(),b(t.allowEscapeKey)&&i(Dt.esc)};var Nt={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap};const qt=()=>{const e=F();Array.from(document.body.children).forEach(t=>{t.contains(e)||(t.hasAttribute("aria-hidden")&&t.setAttribute("data-previous-aria-hidden",t.getAttribute("aria-hidden")||""),t.setAttribute("aria-hidden","true"))})},Ht=()=>{Array.from(document.body.children).forEach(e=>{e.hasAttribute("data-previous-aria-hidden")?(e.setAttribute("aria-hidden",e.getAttribute("data-previous-aria-hidden")||""),e.removeAttribute("data-previous-aria-hidden")):e.removeAttribute("aria-hidden")})},Rt="undefined"!=typeof window&&!!window.GestureEvent,Vt=()=>{if(Rt&&!Y(document.body,c.iosfix)){const e=document.body.scrollTop;document.body.style.top=-1*e+"px",te(document.body,c.iosfix),Ut()}},Ut=()=>{const e=F();if(!e)return;let t;e.ontouchstart=e=>{t=Wt(e)},e.ontouchmove=e=>{t&&(e.preventDefault(),e.stopPropagation())}},Wt=e=>{const t=e.target,i=F(),s=D();return!(!i||!s||Kt(e)||Yt(e)||t!==i&&(pe(i)||!(t instanceof HTMLElement)||he(t,s)||"INPUT"===t.tagName||"TEXTAREA"===t.tagName||pe(s)&&s.contains(t)))},Kt=e=>e.touches&&e.touches.length&&"stylus"===e.touches[0].touchType,Yt=e=>e.touches&&e.touches.length>1,Qt=()=>{if(Y(document.body,c.iosfix)){const e=parseInt(document.body.style.top,10);ie(document.body,c.iosfix),document.body.style.top="",document.body.scrollTop=-1*e}},Xt=()=>{const e=document.createElement("div");e.className=c["scrollbar-measure"],document.body.appendChild(e);const t=e.getBoundingClientRect().width-e.clientWidth;return document.body.removeChild(e),t};let Jt=null;const Gt=e=>{null===Jt&&(document.body.scrollHeight>window.innerHeight||"scroll"===e)&&(Jt=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight=`${Jt+Xt()}px`)},ei=()=>{null!==Jt&&(document.body.style.paddingRight=`${Jt}px`,Jt=null)};function ti(e,t,i,s){U()?ci(e,s):(l(i).then(()=>ci(e,s)),jt(o)),Rt?(t.setAttribute("style","display:none !important"),t.removeAttribute("class"),t.innerHTML=""):t.remove(),V()&&(ei(),Qt(),Ht()),ii()}function ii(){ie([document.documentElement,document.body],[c.shown,c["height-auto"],c["no-backdrop"],c["toast-shown"]])}function si(e){e=ri(e);const t=Nt.swalPromiseResolve.get(this),i=ni(this);this.isAwaitingPromise?e.isDismissed||(oi(this),t(e)):i&&t(e)}const ni=e=>{const t=A();if(!t)return!1;const i=$e.innerParams.get(e);if(!i||Y(t,i.hideClass.popup))return!1;ie(t,i.showClass.popup),te(t,i.hideClass.popup);const s=F();return ie(s,i.showClass.backdrop),te(s,i.hideClass.backdrop),li(e,t,i),!0};function ai(e){const t=Nt.swalPromiseReject.get(this);oi(this),t&&t(e)}const oi=e=>{e.isAwaitingPromise&&(delete e.isAwaitingPromise,$e.innerParams.get(e)||e._destroy())},ri=e=>void 0===e?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},e),li=(e,t,i)=>{var s;const n=F(),a=me(t);"function"==typeof i.willClose&&i.willClose(t),null===(s=o.eventEmitter)||void 0===s||s.emit("willClose",t),a?di(e,t,n,i.returnFocus,i.didClose):ti(e,n,i.returnFocus,i.didClose)},di=(e,t,i,s,n)=>{o.swalCloseEventFinishedCallback=ti.bind(null,e,i,s,n);const a=function(e){var i;e.target===t&&(null===(i=o.swalCloseEventFinishedCallback)||void 0===i||i.call(o),delete o.swalCloseEventFinishedCallback,t.removeEventListener("animationend",a),t.removeEventListener("transitionend",a))};t.addEventListener("animationend",a),t.addEventListener("transitionend",a)},ci=(e,t)=>{setTimeout(()=>{var i;"function"==typeof t&&t.bind(e.params)(),null===(i=o.eventEmitter)||void 0===i||i.emit("didClose"),e._destroy&&e._destroy()})},ui=e=>{let t=A();if(t||new fn,t=A(),!t)return;const i=M();U()?oe(P()):pi(t,e),ae(i),t.setAttribute("data-loading","true"),t.setAttribute("aria-busy","true"),t.focu
2s()},pi=(e,t)=>{const i=$(),s=M();i&&s&&(!t&&ce(L())&&(t=L()),ae(i),t&&(oe(t),s.setAttribute("data-button-to-replace",t.className),i.insertBefore(s,t)),te([e,i],c.loading))},hi=(e,t)=>{"select"===t.input||"radio"===t.input?vi(e,t):["text","email","number","tel","textarea"].some(e=>e===t.input)&&(y(t.inputValue)||x(t.inputValue))&&(ui(L()),bi(e,t))},mi=(e,t)=>{const i=e.getInput();if(!i)return null;switch(t.input){case"checkbox":return fi(i);case"radio":return wi(i);case"file":return gi(i);default:return t.inputAutoTrim?i.value.trim():i.value}},fi=e=>e.checked?1:0,wi=e=>e.checked?e.value:null,gi=e=>e.files&&e.files.length?null!==e.getAttribute("multiple")?e.files:e.files[0]:null,vi=(e,t)=>{const i=A();if(!i)return;const s=e=>{"select"===t.input?yi(i,xi(e),t):"radio"===t.input&&_i(i,xi(e),t)};y(t.inputOptions)||x(t.inputOptions)?(ui(L()),_(t.inputOptions).then(t=>{e.hideLoading(),s(t)})):"object"==typeof t.inputOptions?s(t.inputOptions):f("Unexpected type of inputOptions! Expected object, Map or Promise, got "+typeof t.inputOptions)},bi=(e,t)=>{const i=e.getInput();i&&(oe(i),_(t.inputValue).then(s=>{i.value="number"===t.input?`${parseFloat(s)||0}`:`${s}`,ae(i),i.focus(),e.hideLoading()}).catch(t=>{f(`Error in inputValue promise: ${t}`),i.value="",ae(i),i.focus(),e.hideLoading()}))};function yi(e,t,i){const s=se(e,c.select);if(!s)return;const n=(e,t,s)=>{const n=document.createElement("option");n.value=s,K(n,t),n.selected=Fi(s,i.inputValue),e.appendChild(n)};t.forEach(e=>{const t=e[0],i=e[1];if(Array.isArray(i)){const e=document.createElement("optgroup");e.label=t,e.disabled=!1,s.appendChild(e),i.forEach(t=>n(e,t[1],t[0]))}else n(s,i,t)}),s.focus()}function _i(e,t,i){const s=se(e,c.radio);if(!s)return;t.forEach(e=>{const t=e[0],n=e[1],a=document.createElement("input"),o=document.createElement("label");a.type="radio",a.name=c.radio,a.value=t,Fi(t,i.inputValue)&&(a.checked=!0);const r=document.createElement("span");K(r,n),r.className=c.label,o.appendChild(a),o.appendChild(r),s.appendChild(o)});const n=s.querySelectorAll("input");n.length&&n[0].focus()}const xi=e=>{const t=[];return e instanceof Map?e.forEach((e,i)=>{let s=e;"object"==typeof s&&(s=xi(s)),t.push([i,s])}):Object.keys(e).forEach(i=>{let s=e[i];"object"==typeof s&&(s=xi(s)),t.push([i,s])}),t},Fi=(e,t)=>!!t&&t.toString()===e.toString(),ki=e=>{const t=$e.innerParams.get(e);e.disableButtons(),t.input?Pi(e,"confirm"):Ei(e,!0)},Ci=e=>{const t=$e.innerParams.get(e);e.disableButtons(),t.returnInputValueOnDeny?Pi(e,"deny"):zi(e,!1)},Ai=(e,t)=>{e.disableButtons(),t(Dt.cancel)},Pi=(e,t)=>{const i=$e.innerParams.get(e);if(!i.input)return void f(`The "input" parameter is needed to be set when using returnInputValueOn${h(t)}`);const s=e.getInput(),n=mi(e,i);i.inputValidator?Si(e,n,t):s&&!s.checkValidity()?(e.enableButtons(),e.showValidationMessage(i.validationMessage||s.validationMessage)):"deny"===t?zi(e,n):Ei(e,n)},Si=(e,t,i)=>{const s=$e.innerParams.get(e);e.disableInput(),Promise.resolve().then(()=>_(s.inputValidator(t,s.validationMessage))).then(s=>{e.enableButtons(),e.enableInput(),s?e.showValidationMessage(s):"deny"===i?zi(e,t):Ei(e,t)})},zi=(e,t)=>{const i=$e.innerParams.get(e||void 0);i.showLoaderOnDeny&&ui(O()),i.preDeny?(e.isAwaitingPromise=!0,Promise.resolve().then(()=>_(i.preDeny(t,i.validationMessage))).then(i=>{!1===i?(e.hideLoading(),oi(e)):e.close({isDenied:!0,value:void 0===i?t:i})}).catch(t=>ji(e||void 0,t))):e.close({isDenied:!0,value:t})},Di=(e,t)=>{e.close({isConfirmed:!0,value:t})},ji=(e,t)=>{e.rejectPromise(t)},Ei=(e,t)=>{const i=$e.innerParams.get(e||void 0);i.showLoaderOnConfirm&&ui(),i.preConfirm?(e.resetValidationMessage(),e.isAwaitingPromise=!0,Promise.resolve().then(()=>_(i.preConfirm(t,i.validationMessage))).then(i=>{ce(T())||!1===i?(e.hideLoading(),oi(e)):Di(e,void 0===i?t:i)}).catch(t=>ji(e||void 0,t))):Di(e,t)};function Ti(){const e=$e.innerParams.get(this);if(!e)return;const t=$e.domCache.get(this);oe(t.loader),U()?e.icon&&ae(P()):Li(t),ie([t.popup,t.actions],c.loading),t.popup.removeAttribute("aria-busy"),t.popup.removeAttribute("data-loading"),t.confirmButton.disabled=!1,t.denyButton.disabled=!1,t.cancelButton.disabled=!1}const Li=e=>{const t=e.popup.getElementsByClassName(e.loader.getAttribute("data-button-to-replace"));t.length?ae(t[0],"inline-block"):ue()&&oe(e.actions)};function Ii(){const e=$e.innerParams.get(this),t=$e.domCache.get(this);return t?J(t.popup,e.input):null}function Oi(e,t,i){const s=$e.domCache.get(e);
vendor: 2,638 bytes, line 2
2t.forEach(e=>{s[e].disabled=i})}function Bi(e,t){const i=A();if(i&&e)if("radio"===e.type){const e=i.querySelectorAll(`[name="${c.radio}"]`);for(let i=0;i<e.length;i++)e[i].disabled=t}else e.disabled=t}function Mi(){Oi(this,["confirmButton","denyButton","cancelButton"],!1)}function $i(){Oi(this,["confirmButton","denyButton","cancelButton"],!0)}function Zi(){Bi(this.getInput(),!1)}function Ni(){Bi(this.getInput(),!0)}function qi(e){const t=$e.domCache.get(this),i=$e.innerParams.get(this);K(t.validationMessage,e),t.validationMessage.className=c["validation-message"],i.customClass&&i.customClass.validationMessage&&te(t.validationMessage,i.customClass.validationMessage),ae(t.validationMessage);const s=this.getInput();s&&(s.setAttribute("aria-invalid","true"),s.setAttribute("aria-describedby",c["validation-message"]),G(s),te(s,c.inputerror))}function Hi(){const e=$e.domCache.get(this);e.validationMessage&&oe(e.validationMessage);const t=this.getInput();t&&(t.removeAttribute("aria-invalid"),t.removeAttribute("aria-describedby"),ie(t,c.inputerror))}const Ri={title:"",titleText:"",text:"",html:"",footer:"",icon:void 0,iconColor:void 0,iconHtml:void 0,template:void 0,toast:!1,draggable:!1,animation:!0,theme:"light",showClass:{popup:"swal2-show",backdrop:"swal2-backdrop-show",icon:"swal2-icon-show"},hideClass:{popup:"swal2-hide",backdrop:"swal2-backdrop-hide",icon:"swal2-icon-hide"},customClass:{},target:"body",color:void 0,backdrop:!0,heightAuto:!0,allowOutsideClick:!0,allowEscapeKey:!0,allowEnterKey:!0,stopKeydownPropagation:!0,keydownListenerCapture:!1,showConfirmButton:!0,showDenyButton:!1,showCancelButton:!1,preConfirm:void 0,preDeny:void 0,confirmButtonText:"OK",confirmButtonAriaLabel:"",confirmButtonColor:void 0,denyButtonText:"No",denyButtonAriaLabel:"",denyButtonColor:void 0,cancelButtonText:"Cancel",cancelButtonAriaLabel:"",cancelButtonColor:void 0,buttonsStyling:!0,reverseButtons:!1,focusConfirm:!0,focusDeny:!1,focusCancel:!1,returnFocus:!0,showCloseButton:!1,closeButtonHtml:"×",closeButtonAriaLabel:"Close this dialog",loaderHtml:"",showLoaderOnConfirm:!1,showLoaderOnDeny:!1,imageUrl:void 0,imageWidth:void 0,imageHeight:void 0,imageAlt:"",timer:void 0,timerProgressBar:!1,width:void 0,padding:void 0,background:void 0,input:void 0,inputPlaceholder:"",inputLabel:"",inputValue:"",inputOptions:{},inputAutoFocus:!0,inputAutoTrim:!0,inputAttributes:{},inputValidator:void 0,returnInputValueOnDeny:!1,validationMessage:void 0,grow:!1,position:"center",progressSteps:[],currentProgressStep:void 0,progressStepsDistance:void 0,willOpen:void 0,didOpen:void 0,didRender:void 0,willClose:void 0,didClose
vendor: 4,372 bytes, line 2
2:void 0,didDestroy:void 0,scrollbarPadding:!0,topLayer:!1},Vi=["allowEscapeKey","allowOutsideClick","background","buttonsStyling","cancelButtonAriaLabel","cancelButtonColor","cancelButtonText","closeButtonAriaLabel","closeButtonHtml","color","confirmButtonAriaLabel","confirmButtonColor","confirmButtonText","currentProgressStep","customClass","denyButtonAriaLabel","denyButtonColor","denyButtonText","didClose","didDestroy","draggable","footer","hideClass","html","icon","iconColor","iconHtml","imageAlt","imageHeight","imageUrl","imageWidth","preConfirm","preDeny","progressSteps","returnFocus","reverseButtons","showCancelButton","showCloseButton","showConfirmButton","showDenyButton","text","title","titleText","theme","willClose"],Ui={allowEnterKey:void 0},Wi=["allowOutsideClick","allowEnterKey","backdrop","draggable","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],Ki=e=>Object.prototype.hasOwnProperty.call(Ri,e),Yi=e=>-1!==Vi.indexOf(e),Qi=e=>Ui[e],Xi=e=>{Ki(e)||m(`Unknown parameter "${e}"`)},Ji=e=>{Wi.includes(e)&&m(`The parameter "${e}" is incompatible with toasts`)},Gi=e=>{const t=Qi(e);t&&v(e,t)},es=e=>{!1===e.backdrop&&e.allowOutsideClick&&m('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`'),e.theme&&!["light","dark","auto","minimal","borderless","embed-iframe","bulma","bulma-light","bulma-dark"].includes(e.theme)&&m(`Invalid theme "${e.theme}"`);for(const t in e)Xi(t),e.toast&&Ji(t),Gi(t)};function ts(e){const t=F(),i=A(),s=$e.innerParams.get(this);if(!i||Y(i,s.hideClass.popup))return void m("You're trying to update the closed or closing popup, that won't work. Use the update() method in preConfirm parameter or show a new popup.");const n=is(e),a=Object.assign({},s,n);es(a),t.dataset.swal2Theme=a.theme,Ct(this,a),$e.innerParams.set(this,a),Object.defineProperties(this,{params:{value:Object.assign({},this.params,e),writable:!1,enumerable:!0}})}const is=e=>{const t={};return Object.keys(e).forEach(i=>{Yi(i)?t[i]=e[i]:m(`Invalid parameter to update: ${i}`)}),t};function ss(){const e=$e.domCache.get(this),t=$e.innerParams.get(this);t?(e.popup&&o.swalCloseEventFinishedCallback&&(o.swalCloseEventFinishedCallback(),delete o.swalCloseEventFinishedCallback),"function"==typeof t.didDestroy&&t.didDestroy(),o.eventEmitter.emit("didDestroy"),ns(this)):as(this)}const ns=e=>{as(e),delete e.params,delete o.keydownHandler,delete o.keydownTarget,delete o.currentInstance},as=e=>{e.isAwaitingPromise?(os($e,e),e.isAwaitingPromise=!0):(os(Nt,e),os($e,e),delete e.isAwaitingPromise,delete e.disableButtons,delete e.enableButtons,delete e.getInput,delete e.disableInput,delete e.enableInput,delete e.hideLoading,delete e.disableLoading,delete e.showValidationMessage,delete e.resetValidationMessage,delete e.close,delete e.closePopup,delete e.closeModal,delete e.closeToast,delete e.rejectPromise,delete e.update,delete e._destroy)},os=(e,t)=>{for(const i in e)e[i].delete(t)};var rs=Object.freeze({__proto__:null,_destroy:ss,close:si,closeModal:si,closePopup:si,closeToast:si,disableButtons:$i,disableInput:Ni,disableLoading:Ti,enableButtons:Mi,enableInput:Zi,getInput:Ii,handleAwaitingPromise:oi,hideLoading:Ti,rejectPromise:ai,resetValidationMessage:Hi,showValidationMessage:qi,update:ts});const ls=(e,t,i)=>{e.toast?ds(e,t,i):(ps(t),hs(t),ms(e,t,i))},ds=(e,t,i)=>{t.popup.onclick=()=>{e&&(cs(e)||e.timer||e.input)||i(Dt.close)}},cs=e=>!!(e.showConfirmButton||e.showDenyButton||e.showCancelButton||e.showCloseButton);let us=!1;const ps=e=>{e.popup.onmousedown=()=>{e.container.onmouseup=function(t){e.container.onmouseup=()=>{},t.target===e.container&&(us=!0)}}},hs=e=>{e.container.onmousedown=t=>{t.target===e.container&&t.preventDefault(),e.popup.onmouseup=function(t){e.popup.onmouseup=()=>{},(t.target===e.popup||t.target instanceof HTMLElement&&e.popup.contains(t.target))&&(us=!0)}}},ms=(e,t,i)=>{t.container.onclick=s=>{us?us=!1:s.target===t.container&&b(e.allowOutsideClick)&&i(Dt.backdrop)}},fs=e=>"object"==typeof e&&e.jquery,ws=e=>e instanceof Element||fs(e),gs=e=>{const t={};return"object"!=typeof e[0]||ws(e[0])?["title","html","icon"].forEach((i,s)=>{const n=e[s];"string"==typeof n||ws(n)?t[i]=n:void 0!==n&&f(`Unexpected type of ${i}! Expected "string" or "Element", got ${typeof n}`)}):Object.assign(t,e[0]),t};function vs(...e){return new this(...e)}
2function bs(e){class t extends(this){_main(t,i){return super._main(t,Object.assign({},e,i))}}return t}const ys=()=>o.timeout&&o.timeout.getTimerLeft(),_s=()=>{if(o.timeout)return we(),o.timeout.stop()},xs=()=>{if(o.timeout){const e=o.timeout.start();return fe(e),e}},Fs=()=>{const e=o.timeout;return e&&(e.running?_s():xs())},ks=e=>{if(o.timeout){const t=o.timeout.increase(e);return fe(t,!0),t}},Cs=()=>!(!o.timeout||!o.timeout.isRunning());let As=!1;const Ps={};function Ss(e="data-swal-template"){Ps[e]=this,As||(document.body.addEventListener("click",zs),As=!0)}const zs=e=>{for(let t=e.target;t&&t!==document;t=t.parentNode)for(const e in Ps){const i=t.getAttribute(e);if(i)return void Ps[e].fire({template:i})}};class Ds{constructor(){this.events={}}_getHandlersByEventName(e){return void 0===this.events[e]&&(this.events[e]=[]),this.events[e]}on(e,t){const i=this._getHandlersByEventName(e);i.includes(t)||i.push(t)}once(e,t){const i=(...s)=>{this.removeListener(e,i),t.apply(this,s)};this.on(e,i)}emit(e,...t){this._getHandlersByEventName(e).forEach(e=>{try{e.apply(this,t)}catch(e){console.error(e)}})}removeListener(e,t){const i=this._getHandlersByEventName(e),s=i.indexOf(t);s>-1&&i.splice(s,1)}removeAllListeners(e){void 0!==this.events[e]&&(this.events[e].length=0)}reset(){this.events={}}}o.eventEmitter=new Ds;const js=(e,t)=>{o.eventEmitter.on(e,t)},Es=(e,t)=>{o.eventEmitter.once(e,t)},Ts=(e,t)=>{e?t?o.eventEmitter.removeListener(e,t):o.eventEmitter.removeAllListeners(e):o.eventEmitter.reset()};var Ls=Object.freeze({__proto__:null,argsToParams:gs,bindClickHandler:Ss,clickCancel:zt,clickConfirm:Pt,clickDeny:St,enableLoading:ui,fire:vs,getActions:$,getCancelButton:I,getCloseButton:q,getConfirmButton:L,getContainer:F,getDenyButton:O,getFocusableElements:R,getFooter:Z,getHtmlContainer:D,getIcon:P,getIconContent:S,getImage:j,getInputLabel:B,getLoader:M,getPopup:A,getProgressSteps:E,getTimerLeft:ys,getTimerProgressBar:N,getTitle:z,getValidationMessage:T,increaseTimer:ks,isDeprecatedParameter:Qi,isLoading:W,isTimerRunning:Cs,isUpdatableParameter:Yi,isValidParameter:Ki,isVisible:At,mixin:bs,off:Ts,on:js,once:Es,resumeTimer:xs,showLoading:ui,stopTimer:_s,toggleTimer:Fs});class Is{constructor(e,t){this.callback=e,this.remaining=t,this.running=!1,this.start()}start(){return this.running||(this.running=!0,this.started=new Date,this.id=setTimeout(this.callback,this.remaining)),this.remaining}stop(){return this.started&&this.running&&(this.running=!1,clearTimeout(this.id),this.remaining-=(new Date).getTime()-this.started.getTime()),this.remaining}increase(e){const t=this.running;return t&&this.stop(),this.remaining+=e,t&&this.start(),this.remaining}getTimerLeft(){return this.running&&(this.stop(),this.start()),this.remaining}isRunning(){return this.running}}const Os=["swal-title","swal-html","swal-footer"],Bs=e=>{const t="string"==typeof e.template?document.querySelector(e.template):e.template;if(!t)return{};const i=t.content;return Vs(i),Object.assign(Ms(i),$s(i),Zs(i),Ns(i),qs(i),Hs(i),Rs(i,Os))},Ms=e=>{const t={};return Array.from(e.querySelectorAll("swal-param")).forEach(e=>{Us(e,["name","value"]);const i=e.getAttribute("name"),s=e.getAttribute("value");i&&s&&("boolean"==typeof Ri[i]?t[i]="false"!==s:"object"==typeof Ri[i]?t[i]=JSON.parse(s):t[i]=s)}),t},$s=e=>{const t={};return Array.from(e.querySelectorAll("swal-function-param")).forEach(e=>{const i=e.getAttribute("name"),s=e.getAttribute("value");i&&s&&(t[i]=new Function(`return ${s}`)())}),t},Zs=e=>{const t={};return Array.from(e.querySelectorAll("swal-button")).forEach(e=>{Us(e,["type","color","aria-label"]);const i=e.getAttribute("type");i&&["confirm","cancel","deny"].includes(i)&&(t[`${i}ButtonText`]=e.innerHTML,t[`show${h(i)}Button`]=!0,e.hasAttribute("color")&&(t[`${i}ButtonColor`]=e.getAttribute("color")),e.hasAttribute("aria-label")&&(t[`${i}ButtonAriaLabel`]=e.getAttribute("aria-label")))}),t},Ns=e=>{const t={},i=e.querySelector("swal-image");return i&&(Us(i,["src","width","height","alt"]),i.hasAttribute("src")&&(t.imageUrl=i.getAttribute("src")||void 0),i.hasAttribute("width")&&(t.imageWidth=i.getAttribute("width")||void 0),i.hasAttribute("height")&&(t.imageHeight=i.getAttribute("height")||void 0),i.hasAttribute("alt")&&(t.imageAlt=i.getAttribute("alt")||void 0)),t},qs=e=>{const t={},i=e.querySelector("swal-icon");return i&&(Us(i,["type","color"]),i.hasAttribute("type")&&(t.icon=i.getAttribute("type")),i.hasAttribute("color")&&(t.iconColor=i.getAttribute("color")),t.iconHtml=i.innerHTML),t},Hs=e=>{const t={},i=e.querySelector("swal-input");i&&(Us(i,["type","label","placeholder","value"]),t.input=i.getAttribute("type")||"text",i.hasAttribute("label")&&(t.inputLabel=i.getAttribute("label")),i.hasAttribute("placeholder")&&(t.inputPlaceholder=i.getAttribute("placeholder")),i.hasAttribute("value")&&(t.inputValue=i.getAttribute("value")));const s=Array.from(e.querySelectorAll("swal-input-option"));return s.length&&(t.inputOptions={}
2,s.forEach(e=>{Us(e,["value"]);const i=e.getAttribute("value");if(!i)return;const s=e.innerHTML;t.inputOptions[i]=s})),t},Rs=(e,t)=>{const i={};for(const s in t){const n=t[s],a=e.querySelector(n);a&&(Us(a,[]),i[n.replace(/^swal-/,"")]=a.innerHTML.trim())}return i},Vs=e=>{const t=Os.concat(["swal-param","swal-function-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);Array.from(e.children).forEach(e=>{const i=e.tagName.toLowerCase();t.includes(i)||m(`Unrecognized element <${i}>`)})},Us=(e,t)=>{Array.from(e.attributes).forEach(i=>{-1===t.indexOf(i.name)&&m([`Unrecognized attribute "${i.name}" on <${e.tagName.toLowerCase()}>.`,t.length?`Allowed attributes are: ${t.join(", ")}`:"To set the value, use HTML within the element."])})},Ws=10,Ks=e=>{const t=F(),i=A();"function"==typeof e.willOpen&&e.willOpen(i),o.eventEmitter.emit("willOpen",i);const s=window.getComputedStyle(document.body).overflowY;Js(t,i,e),setTimeout(()=>{Qs(t,i)},Ws),V()&&(Xs(t,e.scrollbarPadding,s),qt()),U()||o.previousActiveElement||(o.previousActiveElement=document.activeElement),"function"==typeof e.didOpen&&setTimeout(()=>e.didOpen(i)),o.eventEmitter.emit("didOpen",i),ie(t,c["no-transition"])},Ys=e=>{const t=A();if(e.target!==t)return;const i=F();t.removeEventListener("animationend",Ys),t.removeEventListener("transitionend",Ys),i.style.overflowY="auto"},Qs=(e,t)=>{me(t)?(e.style.overflowY="hidden",t.addEventListener("animationend",Ys),t.addEventListener("transitionend",Ys)):e.style.overflowY="auto"},Xs=(e,t,i)=>{Vt(),t&&"hidden"!==i&&Gt(i),setTimeout(()=>{e.scrollTop=0})},Js=(e,t,i)=>{te(e,i.showClass.backdrop),i.animation?(t.style.setProperty("opacity","0","important"),ae(t,"grid"),setTimeout(()=>{te(t,i.showClass.popup),t.style.removeProperty("opacity")},Ws)):ae(t,"grid"),te([document.documentElement,document.body],c.shown),i.heightAuto&&i.backdrop&&!i.toast&&te([document.documentElement,document.body],c["height-auto"])};var Gs={email:(e,t)=>/^[a-zA-Z0-9.+_'-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]+$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid email address"),url:(e,t)=>/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid URL")};function en(e){e.inputValidator||("email"===e.input&&(e.inputValidator=Gs.email),"url"===e.input&&(e.inputValidator=Gs.url))}function tn(e){(!e.target||"string"==typeof e.target&&!document.querySelector(e.target)||"string"!=typeof e.target&&!e.target.appendChild)&&(m('Target parameter is not valid, defaulting to "body"'),e.target="body")}function sn(e){en(e),e.showLoaderOnConfirm&&!e.preConfirm&&m("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"),tn(e),"string"==typeof e.title&&(e.title=e.title.split("\n").join("<br />")),Ce(e)}let nn;var an=new WeakMap;class on{constructor(...e){if(s(this,an,void 0),"undefined"==typeof window)return;nn=this;const t=Object.freeze(this.constructor.argsToParams(e));this.params=t,this.isAwaitingPromise=!1,n(an,this,this._main(nn.params))}_main(e,t={}){if(es(Object.assign({},t,e)),o.currentInstance){const e=Nt.swalPromiseResolve.get(o.currentInstance),{isAwaitingPromise:t}=o.currentInstance;o.currentInstance._destroy(),t||e({isDismissed:!0}),V()&&Ht()}o.currentInstance=nn;const i=ln(e,t);sn(i),Object.freeze(i),o.timeout&&(o.timeout.stop(),delete o.timeout),clearTimeout(o.restoreFocusTimeout);const s=dn(nn);return Ct(nn,i),$e.innerParams.set(nn,i),rn(nn,s,i)}then(e){return i(an,this).then(e)}finally(e){return i(an,this).finally(e)}}const rn=(e,t,i)=>new Promise((s,n)=>{const a=t=>{e.close({isDismissed:!0,dismiss:t})};Nt.swalPromiseResolve.set(e,s),Nt.swalPromiseReject.set(e,n),t.confirmButton.onclick=()=>{ki(e)},t.denyButton.onclick=()=>{Ci(e)},t.cancelButton.onclick=()=>{Ai(e,a)},t.closeButton.onclick=()=>{a(Dt.close)},ls(i,t,a),Et(o,i,a),hi(e,i),Ks(i),cn(o,i,a),un(t,i),setTimeout(()=>{t.container.scrollTop=0})}),ln=(e,t)=>{const i=Bs(e),s=Object.assign({},Ri,t,i,e);return s.showClass=Object.assign({},Ri.showClass,s.showClass),s.hideClass=Object.assign({},Ri.hideClass,s.hideClass),!1===s.animation&&(s.showClass={backdrop:"swal2-noanimation"},s.hideClass={}),s},dn=e=>{const t={popup:A(),container:F(),actions:$(),confirmButton:L(),denyButton:O(),cancelButton:I(),loader:M(),closeButton:q(),validationMessage:T(),progressSteps:E()};return $e.domCache.set(e,t),t},cn=(e,t,i)=>{const s=N();oe(s),t.timer&&(e.timeout=new Is(()=>{i("timer"),delete e.timeout},t.timer),t.timerProgressBar&&(ae(s),X(s,t,"timerProgressBar"),setTimeout(()=>{e.timeout&&e.timeout.running&&fe(t.timer)})))},un=(e,t)=>{if(!t.toast)return b(t.allowEnterKey)?void(pn(e)||hn(e,t)||Tt(-1,1)):(v("allowEnterKey"),void mn())},pn=e=>{const t=Array.from(e.popup.querySelectorAll("[autofocus]"));for(const e of t)if(e instanceof HTMLElement&&ce(e))return e.focus(),!0;return!1},hn=(e,t)=>t.focusDeny&&ce(e.denyButton)?(e.denyButton.focus(),!0):t.focusCancel&&ce(e.cancelButton)?(e.cancelButton.focus(),!0):!(!t.focusConfirm||!ce(e.confirmButton)||(e.confirmButton.focus(),0
2)),mn=()=>{document.activeElement instanceof HTMLElement&&"function"==typeof document.activeElement.blur&&document.activeElement.blur()};on.prototype.disableButtons=$i,on.prototype.enableButtons=Mi,on.prototype.getInput=Ii,on.prototype.disableInput=Ni,on.prototype.enableInput=Zi,on.prototype.hideLoading=Ti,on.prototype.disableLoading=Ti,on.prototype.showValidationMessage=qi,on.prototype.resetValidationMessage=Hi,on.prototype.close=si,on.prototype.closePopup=si,on.prototype.closeModal=si,on.prototype.closeToast=si,on.prototype.rejectPromise=ai,on.prototype.update=ts,on.prototype._destroy=ss,Object.assign(on,Ls),Object.keys(rs).forEach(e=>{on[e]=function(...t){return nn&&nn[e]?nn[e](...t):null}}),on.DismissReason=Dt,on.version="11.23.0";const fn=on;return fn.default=fn,fn}(),void 0!==this&&this.Sweetalert2&&(this.swal=this.sweetAlert=this.Swal=this.SweetAlert=this.Sweetalert2),"undefined"!=typeof document&&function(e,t){var i=e.createElement("style");if(e.getElementsByTagName("head")[0].appendChild(i),i.styleSheet)i.styleSheet.disabled||(i.styleSheet.cssText=t);else try{i.innerHTML=t}catch(e){i.innerText=t}}(document,':root{--swal2-outline: 0 0 0 3px rgba(100, 150, 200, 0.5);--swal2-container-padding: 0.625em;--swal2-backdrop: rgba(0, 0, 0, 0.4);--swal2-backdrop-transition: background-color 0.1s;--swal2-width: 32em;--swal2-padding: 0 0 1.25em;--swal2-border: none;--swal2-border-radius: 0.3125rem;--swal2-background: white;--swal2-color: #545454;--swal2-show-animation: swal2-show 0.3s;--swal2-hide-animation: swal2-hide 0.15s forwards;--swal2-icon-zoom: 1;--swal2-icon-animations: true;--swal2-title-padding: 0.8em 1em 0;--swal2-html-container-padding: 1em 1.6em 0.3em;--swal2-input-border: 1px solid #d9d9d9;--swal2-input-border-radius: 0.1875em;--swal2-input-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.06), 0 0 0 3px transparent;--swal2-input-background: transparent;--swal2-input-transition: border-color 0.2s, box-shadow 0.2s;--swal2-input-hover-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.06), 0 0 0 3px transparent;--swal2-input-focus-border: 1px solid #b4dbed;--swal2-input-focus-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.06), 0 0 0 3px $swal2-outline-color
vendor: 11,027 bytes, line 2
2;--swal2-progress-step-background: #add8e6;--swal2-validation-message-background: #f0f0f0;--swal2-validation-message-color: #666;--swal2-footer-border-color: #eee;--swal2-footer-background: transparent;--swal2-footer-color: inherit;--swal2-timer-progress-bar-background: rgba(0, 0, 0, 0.3);--swal2-close-button-position: initial;--swal2-close-button-inset: auto;--swal2-close-button-font-size: 2.5em;--swal2-close-button-color: #ccc;--swal2-close-button-transition: color 0.2s, box-shadow 0.2s;--swal2-close-button-outline: initial;--swal2-close-button-box-shadow: inset 0 0 0 3px transparent;--swal2-close-button-focus-box-shadow: inset var(--swal2-outline);--swal2-close-button-hover-transform: none;--swal2-actions-justify-content: center;--swal2-actions-width: auto;--swal2-actions-margin: 1.25em auto 0;--swal2-actions-padding: 0;--swal2-actions-border-radius: 0;--swal2-actions-background: transparent;--swal2-action-button-transition: background-color 0.2s, box-shadow 0.2s;--swal2-action-button-hover: black 10%;--swal2-action-button-active: black 10%;--swal2-confirm-button-box-shadow: none;--swal2-confirm-button-border-radius: 0.25em;--swal2-confirm-button-background-color: #7066e0;--swal2-confirm-button-color: #fff;--swal2-deny-button-box-shadow: none;--swal2-deny-button-border-radius: 0.25em;--swal2-deny-button-background-color: #dc3741;--swal2-deny-button-color: #fff;--swal2-cancel-button-box-shadow: none;--swal2-cancel-button-border-radius: 0.25em;--swal2-cancel-button-background-color: #6e7881;--swal2-cancel-button-color: #fff;--swal2-toast-show-animation: swal2-toast-show 0.5s;--swal2-toast-hide-animation: swal2-toast-hide 0.1s forwards;--swal2-toast-border: none;--swal2-toast-box-shadow: 0 0 1px hsl(0deg 0% 0% / 0.075), 0 1px 2px hsl(0deg 0% 0% / 0.075), 1px 2px 4px hsl(0deg 0% 0% / 0.075), 1px 3px 8px hsl(0deg 0% 0% / 0.075), 2px 4px 16px hsl(0deg 0% 0% / 0.075)}[data-swal2-theme=dark]{--swal2-dark-theme-black: #19191a;--swal2-dark-theme-white: #e1e1e1;--swal2-background: var(--swal2-dark-theme-black);--swal2-color: var(--swal2-dark-theme-white);--swal2-footer-border-color: #555;--swal2-input-background: color-mix(in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10%);--swal2-validation-message-background: color-mix( in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10% );--swal2-validation-message-color: var(--swal2-dark-theme-white);--swal2-timer-progress-bar-background: rgba(255, 255, 255, 0.7)}@media(prefers-color-scheme: dark){[data-swal2-theme=auto]{--swal2-dark-theme-black: #19191a;--swal2-dark-theme-white: #e1e1e1;--swal2-background: var(--swal2-dark-theme-black);--swal2-color: var(--swal2-dark-theme-white);--swal2-footer-border-color: #555;--swal2-input-background: color-mix(in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10%);--swal2-validation-message-background: color-mix( in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10% );--swal2-validation-message-color: var(--swal2-dark-theme-white);--swal2-timer-progress-bar-background: rgba(255, 255, 255, 0.7)}}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown){overflow:hidden}body.swal2-height-auto{height:auto !important}body.swal2-no-backdrop .swal2-container{background-color:rgba(0,0,0,0) !important;pointer-events:none}body.swal2-no-backdrop .swal2-container .swal2-popup{pointer-events:all}body.swal2-no-backdrop .swal2-container .swal2-modal{box-shadow:0 0 10px var(--swal2-backdrop)}body.swal2-toast-shown .swal2-container{box-sizing:border-box;width:360px;max-width:100%;background-color:rgba(0,0,0,0);pointer-events:none}body.swal2-toast-shown .swal2-container.swal2-top{inset:0 auto auto 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-top-end,body.swal2-toast-shown .swal2-container.swal2-top-right{inset:0 0 auto auto}body.swal2-toast-shown .swal2-container.swal2-top-start,body.swal2-toast-shown .swal2-container.swal2-top-left{inset:0 auto auto 0}body.swal2-toast-shown .swal2-container.swal2-center-start,body.swal2-toast-shown .swal2-container.swal2-center-left{inset:50% auto auto 0;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-center{inset:50% auto auto 50%;transform:translate(-50%, -50%)}body.swal2-toast-shown .swal2-container.swal2-center-end,body.swal2-toast-shown .swal2-container.swal2-center-right{inset:50% 0 auto auto;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-start,body.swal2-toast-shown .swal2-container.swal2-bottom-left{inset:auto auto 0 0}body.swal2-toast-shown .swal2-container.swal2-bottom{inset:auto auto 0 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-end,body.swal2-toast-shown .swal2-container.swal2-bottom-right{inset:auto 0 0 auto}@media print{body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown){overflow-y:scroll !important}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown)>[aria-hidden=true]{display:none}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown) .swal2-container{position:static !important}}div:where(.swal2-container){display:grid;position:fixed;z-index:1060;inset:0;box-sizing:border-box;grid-template-areas:"top-start top top-end" "center-start center center-end" "bottom-start bottom-center bottom-end";grid-template-rows:minmax(min-content, auto) minmax(min-content, auto) minmax(min-content, auto);height:100%;padding:var(--swal2-container-padding);overflow-x:hidden;transition:var(--swal2-backdrop-transition);-webkit-overflow-scrolling:touch}div:where(.swal2-container).swal2-backdrop-show,div:where(.swal2-container).swal2-noanimation{background:var(--swal2-backdrop)}div:where(.swal2-container).swal2-backdrop-hide{background:rgba(0,0,0,0) !important}div:where(.swal2-container).swal2-top-start,div:where(.swal2-container).swal2-center-start,div:where(.swal2-container).swal2-bottom-start{grid-template-columns:minmax(0, 1fr) auto auto}div:where(.swal2-container).swal2-top,div:where(.swal2-container).swal2-center,div:where(.swal2-container).swal2-bottom{grid-template-columns:auto minmax(0, 1fr) auto}div:where(.swal2-container).swal2-top-end,div:where(.swal2-container).swal2-center-end,div:where(.swal2-container).swal2-bottom-end{grid-template-columns:auto auto minmax(0, 1fr)}div:where(.swal2-container).swal2-top-start>.swal2-popup{align-self:start}div:where(.swal2-container).swal2-top>.swal2-popup{grid-column:2;place-self:start center}div:where(.swal2-container).swal2-top-end>.swal2-popup,div:where(.swal2-container).swal2-top-right>.swal2-popup{grid-column:3;place-self:start end}div:where(.swal2-container).swal2-center-start>.swal2-popup,div:where(.swal2-container).swal2-center-left>.swal2-popup{grid-row:2;align-self:center}div:where(.swal2-container).swal2-center>.swal2-popup{grid-column:2;grid-row:2;place-self:center center}div:where(.swal2-container).swal2-center-end>.swal2-popup,div:where(.swal2-container).swal2-center-right>.swal2-popup{grid-column:3;grid-row:2;place-self:center end}div:where(.swal2-container).swal2-bottom-start>.swal2-popup,div:where(.swal2-container).swal2-bottom-left>.swal2-popup{grid-column:1;grid-row:3;align-self:end}div:where(.swal2-container).swal2-bottom>.swal2-popup{grid-column:2;grid-row:3;place-self:end center}div:where(.swal2-container).swal2-bottom-end>.swal2-popup,div:where(.swal2-container).swal2-bottom-right>.swal2-popup{grid-column:3;grid-row:3;place-self:end end}div:where(.swal2-container).swal2-grow-row>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-column:1/4;width:100%}div:where(.swal2-container).swal2-grow-column>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-row:1/4;align-self:stretch}div:where(.swal2-container).swal2-no-transition{transition:none !important}div:where(.swal2-container)[popover]{width:auto;border:0}div:where(.swal2-container) div:where(.swal2-popup){display:none;position:relative;box-sizing:border-box;grid-template-columns:minmax(0, 100%);width:var(--swal2-width);max-width:100%;padding:var(--swal2-padding);border:var(--swal2-border);border-radius:var(--swal2-border-radius);background:var(--swal2-background);color:var(--swal2-color);font-family:inherit;font-size:1rem;container-name:swal2-popup}div:where(.swal2-container) div:where(.swal2-popup):focus{outline:none}div:where(.swal2-container) div:where(.swal2-popup).swal2-loading{overflow-y:hidden}div:where(.swal2-container) div:where(.swal2-popup).swal2-draggable{cursor:grab}div:where(.swal2-container) div:where(.swal2-popup).swal2-draggable div:where(.swal2-icon){cursor:grab}div:where(.swal2-container) div:where(.swal2-popup).swal2-dragging{cursor:grabbing}div:where(.swal2-container) div:where(.swal2-popup).swal2-dragging div:where(.swal2-icon){cursor:grabbing}div:where(.swal2-container) h2:where(.swal2-title){position:relative;max-width:100%;margin:0;padding:var(--swal2-title-padding);color:inherit;font-size:1.875em;font-weight:600;text-align:center;text-transform:none;overflow-wrap:break-word;cursor:initial}div:where(.swal2-container) div:where(.swal2-actions){display:flex;z-index:1;box-sizing:border-box;flex-wrap:wrap;align-items:center;justify-content:var(--swal2-actions-justify-content);width:var(--swal2-actions-width);margin:var(--swal2-actions-margin);padding:var(--swal2-actions-padding);border-radius:var(--swal2-actions-border-radius);background:var(--swal2-actions-background)}div:where(.swal2-container) div:where(.swal2-loader){display:none;align-items:center;justify-content:center;width:2.2em;height:2.2em;margin:0 1.875em;animation:swal2-rotate-loading 1.5s linear 0s infinite normal;border-width:.25em;border-style:solid;border-radius:100%;border-color:#2778c4 rgba(0,0,0,0) #2778c4 rgba(0,0,0,0)}div:where(.swal2-container) button:where(.swal2-styled){margin:.3125em;padding:.625em 1.1em;transition:var(--swal2-action-button-transition);border:none;box-shadow:0 0 0 3px rgba(0,0,0,0);font-weight:500}div:where(.swal2-container) button:where(.swal2-styled):not([disabled]){cursor:pointer}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm){border-radius:var(--swal2-confirm-button-border-radius);background:initial;background-color:var(--swal2-confirm-button-background-color);box-shadow:var(--swal2-confirm-button-box-shadow);color:var(--swal2-confirm-button-color);font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm):hover{background-color:color-mix(in srgb, var(--swal2-confirm-button-background-color), var(--swal2-action-button-hover))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm):active{background-color:color-mix(in srgb, var(--swal2-confirm-button-background-color), var(--swal2-action-button-active))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny){border-radius:var(--swal2-deny-button-border-radius);background:initial;background-color:var(--swal2-deny-button-background-color);
vendor: 5,100 bytes, line 2
2box-shadow:var(--swal2-deny-button-box-shadow);color:var(--swal2-deny-button-color);font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny):hover{background-color:color-mix(in srgb, var(--swal2-deny-button-background-color), var(--swal2-action-button-hover))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny):active{background-color:color-mix(in srgb, var(--swal2-deny-button-background-color), var(--swal2-action-button-active))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel){border-radius:var(--swal2-cancel-button-border-radius);background:initial;background-color:var(--swal2-cancel-button-background-color);box-shadow:var(--swal2-cancel-button-box-shadow);color:var(--swal2-cancel-button-color);font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel):hover{background-color:color-mix(in srgb, var(--swal2-cancel-button-background-color), var(--swal2-action-button-hover))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel):active{background-color:color-mix(in srgb, var(--swal2-cancel-button-background-color), var(--swal2-action-button-active))}div:where(.swal2-container) button:where(.swal2-styled):focus-visible{outline:none;box-shadow:var(--swal2-action-button-focus-box-shadow)}div:where(.swal2-container) button:where(.swal2-styled)[disabled]:not(.swal2-loading){opacity:.4}div:where(.swal2-container) button:where(.swal2-styled)::-moz-focus-inner{border:0}div:where(.swal2-container) div:where(.swal2-footer){margin:1em 0 0;padding:1em 1em 0;border-top:1px solid var(--swal2-footer-border-color);background:var(--swal2-footer-background);color:var(--swal2-footer-color);font-size:1em;text-align:center;cursor:initial}div:where(.swal2-container) .swal2-timer-progress-bar-container{position:absolute;right:0;bottom:0;left:0;grid-column:auto !important;overflow:hidden;border-bottom-right-radius:var(--swal2-border-radius);border-bottom-left-radius:var(--swal2-border-radius)}div:where(.swal2-container) div:where(.swal2-timer-progress-bar){width:100%;height:.25em;background:var(--swal2-timer-progress-bar-background)}div:where(.swal2-container) img:where(.swal2-image){max-width:100%;margin:2em auto 1em;cursor:initial}div:where(.swal2-container) button:where(.swal2-close){position:var(--swal2-close-button-position);inset:var(--swal2-close-button-inset);z-index:2;align-items:center;justify-content:center;width:1.2em;height:1.2em;margin-top:0;margin-right:0;margin-bottom:-1.2em;padding:0;overflow:hidden;transition:var(--swal2-close-button-transition);border:none;border-radius:var(--swal2-border-radius);outline:var(--swal2-close-button-outline);background:rgba(0,0,0,0);color:var(--swal2-close-button-color);font-family:monospace;font-size:var(--swal2-close-button-font-size);cursor:pointer;justify-self:end}div:where(.swal2-container) button:where(.swal2-close):hover{transform:var(--swal2-close-button-hover-transform);background:rgba(0,0,0,0);color:#f27474}div:where(.swal2-container) button:where(.swal2-close):focus-visible{outline:none;box-shadow:var(--swal2-close-button-focus-box-shadow)}div:where(.swal2-container) button:where(.swal2-close)::-moz-focus-inner{border:0}div:where(.swal2-container) div:where(.swal2-html-container){z-index:1;justify-content:center;margin:0;padding:var(--swal2-html-container-padding);overflow:auto;color:inherit;font-size:1.125em;font-weight:normal;line-height:normal;text-align:center;overflow-wrap:break-word;word-break:break-word;cursor:initial}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea),div:where(.swal2-container) select:where(.swal2-select),div:where(.swal2-container) div:where(.swal2-radio),div:where(.swal2-container) label:where(.swal2-checkbox){margin:1em 2em 3px}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea){box-sizing:border-box;width:auto;transition:var(--swal2-input-transition);border:var(--swal2-input-border);border-radius:var(--swal2-input-border-radius);background:var(--swal2-input-background);box-shadow:var(--swal2-input-box-shadow);color:inherit;font-size:1.125em}div:where(.swal2-container) input:where(.swal2-input).swal2-inputerror,div:where(.swal2-container) input:where(.swal2-file).swal2-inputerror,div:where(.swal2-container) textarea:where(.swal2-textarea).swal2-inputerror{border-color:#f27474 !important;box-shadow:0 0 2px #f27474 !important}div:where(.swal2-container) input:where(.swal2-input):hover,div:where(.swal2-container) input:where(.swal2-file):hover,div:where(.swal2-container) textarea:where(.swal2-textarea):hover{box-shadow:var(--swal2-input-hover-box-shadow)}div:where(.swal2-container) input:where(.swal2-input):focus,div:where(.swal2-container) input:where(.swal2-file):focus,div:where(.swal2-container) textarea:where(.swal2-textarea):focus{border:var(--swal2-input-focus-border);outline:none;
vendor: 11,129 bytes, line 2
2box-shadow:var(--swal2-input-focus-box-shadow)}div:where(.swal2-container) input:where(.swal2-input)::placeholder,div:where(.swal2-container) input:where(.swal2-file)::placeholder,div:where(.swal2-container) textarea:where(.swal2-textarea)::placeholder{color:#ccc}div:where(.swal2-container) .swal2-range{margin:1em 2em 3px;background:var(--swal2-background)}div:where(.swal2-container) .swal2-range input{width:80%}div:where(.swal2-container) .swal2-range output{width:20%;color:inherit;font-weight:600;text-align:center}div:where(.swal2-container) .swal2-range input,div:where(.swal2-container) .swal2-range output{height:2.625em;padding:0;font-size:1.125em;line-height:2.625em}div:where(.swal2-container) .swal2-input{height:2.625em;padding:0 .75em}div:where(.swal2-container) .swal2-file{width:75%;margin-right:auto;margin-left:auto;background:var(--swal2-input-background);font-size:1.125em}div:where(.swal2-container) .swal2-textarea{height:6.75em;padding:.75em}div:where(.swal2-container) .swal2-select{min-width:50%;max-width:100%;padding:.375em .625em;background:var(--swal2-input-background);color:inherit;font-size:1.125em}div:where(.swal2-container) .swal2-radio,div:where(.swal2-container) .swal2-checkbox{align-items:center;justify-content:center;background:var(--swal2-background);color:inherit}div:where(.swal2-container) .swal2-radio label,div:where(.swal2-container) .swal2-checkbox label{margin:0 .6em;font-size:1.125em}div:where(.swal2-container) .swal2-radio input,div:where(.swal2-container) .swal2-checkbox input{flex-shrink:0;margin:0 .4em}div:where(.swal2-container) label:where(.swal2-input-label){display:flex;justify-content:center;margin:1em auto 0}div:where(.swal2-container) div:where(.swal2-validation-message){align-items:center;justify-content:center;margin:1em 0 0;padding:.625em;overflow:hidden;background:var(--swal2-validation-message-background);color:var(--swal2-validation-message-color);font-size:1em;font-weight:300}div:where(.swal2-container) div:where(.swal2-validation-message)::before{content:"!";display:inline-block;width:1.5em;min-width:1.5em;height:1.5em;margin:0 .625em;border-radius:50%;background-color:#f27474;color:#fff;font-weight:600;line-height:1.5em;text-align:center}div:where(.swal2-container) .swal2-progress-steps{flex-wrap:wrap;align-items:center;max-width:100%;margin:1.25em auto;padding:0;background:rgba(0,0,0,0);font-weight:600}div:where(.swal2-container) .swal2-progress-steps li{display:inline-block;position:relative}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step{z-index:20;flex-shrink:0;width:2em;height:2em;border-radius:2em;background:#2778c4;color:#fff;line-height:2em;text-align:center}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step{background:#2778c4}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step{background:var(--swal2-progress-step-background);color:#fff}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step-line{background:var(--swal2-progress-step-background)}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step-line{z-index:10;flex-shrink:0;width:2.5em;height:.4em;margin:0 -1px;background:#2778c4}div:where(.swal2-icon){position:relative;box-sizing:content-box;justify-content:center;width:5em;height:5em;margin:2.5em auto .6em;zoom:var(--swal2-icon-zoom);border:.25em solid rgba(0,0,0,0);border-radius:50%;border-color:#000;font-family:inherit;line-height:5em;cursor:default;user-select:none}div:where(.swal2-icon) .swal2-icon-content{display:flex;align-items:center;font-size:3.75em}div:where(.swal2-icon).swal2-error{border-color:#f27474;color:#f27474}div:where(.swal2-icon).swal2-error .swal2-x-mark{position:relative;flex-grow:1}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line]{display:block;position:absolute;top:2.3125em;width:2.9375em;height:.3125em;border-radius:.125em;background-color:#f27474}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=left]{left:1.0625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=right]{right:1em;transform:rotate(-45deg)}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-error.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-error.swal2-icon-show .swal2-x-mark{animation:swal2-animate-error-x-mark .5s}}div:where(.swal2-icon).swal2-warning{border-color:#f8bb86;color:#f8bb86}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-warning.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-warning.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .5s}}div:where(.swal2-icon).swal2-info{border-color:#3fc3ee;color:#3fc3ee}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-info.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-info.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .8s}}div:where(.swal2-icon).swal2-question{border-color:#87adbd;color:#87adbd}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-question.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-question.swal2-icon-show .swal2-icon-content{animation:swal2-animate-question-mark .8s}}div:where(.swal2-icon).swal2-success{border-color:#a5dc86;color:#a5dc86}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line]{position:absolute;width:3.75em;height:7.5em;border-radius:50%}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.4375em;left:-2.0635em;transform:rotate(-45deg);transform-origin:3.75em 3.75em;border-radius:7.5em 0 0 7.5em}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.6875em;left:1.875em;transform:rotate(-45deg);transform-origin:0 3.75em;border-radius:0 7.5em 7.5em 0}div:where(.swal2-icon).swal2-success .swal2-success-ring{position:absolute;z-index:2;top:-0.25em;left:-0.25em;box-sizing:content-box;width:100%;height:100%;border:.25em solid rgba(165,220,134,.3);border-radius:50%}div:where(.swal2-icon).swal2-success .swal2-success-fix{position:absolute;z-index:1;top:.5em;left:1.625em;width:.4375em;height:5.625em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-success [class^=swal2-success-line]{display:block;position:absolute;z-index:2;height:.3125em;border-radius:.125em;background-color:#a5dc86}div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=tip]{top:2.875em;left:.8125em;width:1.5625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=long]{top:2.375em;right:.5em;width:2.9375em;transform:rotate(-45deg)}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-animate-success-line-tip .75s}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-animate-success-line-long .75s}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-circular-line-right{animation:swal2-rotate-success-circular-line 4.25s ease-in}}[class^=swal2]{-webkit-tap-highlight-color:rgba(0,0,0,0)}.swal2-show{animation:var(--swal2-show-animation)}.swal2-hide{animation:var(--swal2-hide-animation)}.swal2-noanimation{transition:none}.swal2-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}.swal2-rtl .swal2-close{margin-right:initial;margin-left:0}.swal2-rtl .swal2-timer-progress-bar{right:0;left:auto}.swal2-toast{box-sizing:border-box;grid-column:1/4 !important;grid-row:1/4 !important;grid-template-columns:min-content auto min-content;padding:1em;overflow-y:hidden;border:var(--swal2-toast-border);background:var(--swal2-background);box-shadow:var(--swal2-toast-box-shadow);pointer-events:all}.swal2-toast>*{grid-column:2}.swal2-toast h2:where(.swal2-title){margin:.5em 1em;padding:0;font-size:1em;text-align:initial}.swal2-toast .swal2-loading{justify-content:center}.swal2-toast input:where(.swal2-input){height:2em;margin:.5em;font-size:1em}.swal2-toast .swal2-validation-message{font-size:1em}.swal2-toast div:where(.swal2-footer){margin:.5em 0 0;padding:.5em 0 0;font-size:.8em}.swal2-toast button:where(.swal2-close){grid-column:3/3;grid-row:1/99;align-self:center;width:.8em;height:.8em;margin:0;font-size:2em}.swal2-toast div:where(.swal2-html-container){margin:.5em 1em;padding:0;overflow:initial;font-size:1em;text-align:initial}.swal2-toast div:where(.swal2-html-container):empty{padding:0}.swal2-toast .swal2-loader{grid-column:1;grid-row:1/99;align-self:center;width:2em;height:2em;margin:.25em}.swal2-toast .swal2-icon{grid-column:1;grid-row:1/99;align-self:center;width:2em;min-width:2em;height:2em;margin:0 .5em 0 0}.swal2-toast .swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:1.8em;font-weight:bold}.swal2-toast .swal2-icon.swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line]{top:.875em;width:1.375em}.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:.3125em}.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:.3125em}.swal2-toast div:where(.swal2-actions){justify-content:flex-start;height:auto;margin:0;margin-top:.5em;padding:0 .5em}.swal2-toast button:where(.swal2-styled){margin:.25em .5em;padding:.4em .6em;font-size:1em}.swal2-toast .swal2-success{border-color:#a5dc86}.swal2-toast .swal2-success [class^=swal2-success-circular-line]{position:absolute;width:1.6em;height:3em;border-radius:50%}.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.8em;left:-0.5em;transform:rotate(-45deg);transform-origin:2em 2em;border-radius:4em 0 0 4em}.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.25em;left:.9375em;transform-origin:0 1.5em;border-radius:0 4em 4em 0}.swal2-toast .swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-toast .swal2-success .swal2-success-fix{top:0;left:.4375em;width:.4375em;height:2.6875em}.swal2-toast .swal2-success [class^=swal2-success-line]{height:.3125em}.swal2-toast .swal2-success [class^=swal2-success-line][class$=tip]{top:1.125em;left:.1875em;width:.75em}.swal2-toast .swal2-success [class^=swal2-success-line][class$=long]{top:.9375em;right:.1875em;width:1.375em}@container swal2-popup style(--swal2-icon-animations:true){.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-toast-animate-success-line-tip .75s}.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-toast-animate-success-line-long .75s}}.swal2-toast.swal2-show{animation:var(--swal2-toast-show-animation)}.swal2-toast.swal2-hide{animation:var(--swal2-toast-hide-animation)}@keyframes swal2-show{0%{transform:
2scale(0.7)}45%{transform:scale(1.05)}80%{transform:scale(0.95)}100%{transform:scale(1)}}@keyframes swal2-hide{0%{transform:scale(1);opacity:1}100%{transform:scale(0.5);opacity:0}}@keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-0.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}100%{top:2.8125em;left:.8125em;width:1.5625em}}@keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}100%{top:2.375em;right:.5em;width:2.9375em}}@keyframes swal2-rotate-success-circular-line{0%{transform:rotate(-45deg)}5%{transform:rotate(-45deg)}12%{transform:rotate(-405deg)}100%{transform:rotate(-405deg)}}@keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;transform:scale(0.4);opacity:0}50%{margin-top:1.625em;transform:scale(0.4);opacity:0}80%{margin-top:-0.375em;transform:scale(1.15)}100%{margin-top:0;transform:scale(1);opacity:1}}@keyframes swal2-animate-error-icon{0%{transform:rotateX(100deg);opacity:0}
2100%{transform:rotateX(0deg);opacity:1}}@keyframes swal2-rotate-loading{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes swal2-animate-question-mark{0%{transform:rotateY(-360deg)}100%{transform:rotateY(0)}}@keyframes swal2-animate-i-mark{0%{transform:rotateZ(45deg);opacity:0}25%{transform:rotateZ(-25deg);opacity:.4}50%{transform:rotateZ(15deg);opacity:.8}75%{transform:rotateZ(-5deg);opacity:1}100%{transform:rotateX(0);opacity:1}}@keyframes swal2-toast-show{0%{transform:translateY(-0.625em) rotateZ(2deg)}33%{transform:translateY(0) rotateZ(-2deg)}66%{transform:translateY(0.3125em) rotateZ(2deg)}100%{transform:translateY(0) rotateZ(0deg)}}@keyframes swal2-toast-hide{100%{transform:rotateZ(1deg);opacity:0}}@keyframes swal2-toast-animate-success-line-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-0.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}100%{top:1.125em;left:.1875em;width:.75em}}@keyframes swal2-toast-animate-success-line-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}100%{top:.9375em;right:.1875em;width:1.375em}}')},469:(e,t,i)=>{"use strict";var s=i(465),n=i.n(s);jQuery(function(e){if(!e("body").hasClass("page-template-page-subscribe")&&!e("body").hasClass("page-template-page-my-subscriptions"))return;let t=!1,i="monthly";c("#monthly-from","#monthly-to"),c("#daily-from","#daily-to"),p(),e(".subscription-card input[name='company'], .subscription-card select, .subscription-card input[name='subscription-type']").change(function(){if("subscription-type"===e(this).attr("name")){const t=e(this).is(":checked"),s=e(this).closest(".subscription-card");s.find(".monthly-subscription").css("display",t?"none":"flex"),s.find(".daily-subscription").css("display",t?"flex":"none"),i=t?"daily":"monthly"}p()});const s={showClass:{popup:"animate__animated animate__fadeInUp animate__faster"},hideClass:{popup:"animate__animated animate__fadeOutDown animate__faster"}};function a(t,i){return e.ajax({url:"/wp-admin/admin-ajax.php?action="+t,type:"POST",dataType:"json",data:e.extend({nonce:globalAjaxVariables.globalNonce},i)})}function o(){return n().fire(e.extend({title:"UzÅÄmuma dati rÄÄ·inam",html:'<div class="quick-profile"><p>RÄÄ·inu izrakstÄ«sim uz Å¡o uzÅÄmumu.</p><label for="qp-company">UzÅÄmuma nosaukums</label><input id="qp-company" type="text" class="swal2-input" placeholder="Nosaukums"><label for="qp-company-nr">ReÄ£istrÄcijas numurs</label><input id="qp-company-nr" type="text" class="swal2-input" placeholder="ReÄ£istrÄcijas numurs"></div>',focusConfirm:!1,showCancelButton:!0,confirmButtonText:"SaglabÄt un turpinÄt",cancelButtonText:"Atcelt",allowOutsideClick:()=>!n().isLoading(),preConfirm:function(){const t=(e("#qp-company").val()||"").trim(),i=(e("#qp-company-nr").val()||"").trim();return""===t||""===i?(n().showValidationMessage("Aizpildi abus laukus."),!1):(n().showLoading(),a("saveSubscriberCompany",{companyName:t,companyRegistrationNumber:i}).then(function(e){return!(!e||!0!==e.success)||(n().showValidationMessage("Datus neizdevÄs saglabÄt. MÄÄ£ini vÄlreiz."),!1)}).catch(function(){return n().showValidationMessage("Notika sistÄmas kļūda. MÄÄ£ini vÄlreiz."),!1}))}},s)).then(e=>!0===e.isConfirmed&&!0===e.value)}function r(){return n().fire(e.extend({title:"Kur piegÄdÄt avÄ«zi?",html:'<div class="quick-profile quick-profile-address"><p>IzvÄlies adresi no Latvijas Pasta saraksta â tÄ pati adrese saglabÄsies arÄ« TavÄ profilÄ.</p><div class="js-quick-lp"></div></div>',width:640,focusConfirm:!1,showCancelButton:!0,confirmButtonText:"SaglabÄt un turpinÄt",cancelButtonText:"Atcelt",allowOutsideClick:()=>!n().isLoading(),didOpen:function(){e(".js-quick-lp").lpaisais({showRegion:!0})},preConfirm:function(){const t=e(".quick-profile-address"),i=t.find("input[name='addr_elem_id']").val()||"",s=t.find("textarea[name='addr_elem_text']").val()||"";if(""===i||""===s)return n().showValidationMessage("IzvÄlies adresi no saraksta lÄ«dz galam."),!1;const o={region:t.find("select[name='addr_elem_region'] option:selected").text(),city:t.find("select[name='addr_elem_city'] option:selected").text(),county:t.find("select[name='addr_elem_county'] option:selected").text(),parish:t.find("select[name='addr_elem_parish'] option:selected").text(),village:t.find("select[name='addr_elem_village'] o
2ption:selected").text(),street:t.find("select[name='addr_elem_street'] option:selected").text(),house:t.find("select[name='addr_elem_house'] option:selected").text(),apartment:t.find("select[name='addr_elem_appartment'] option:selected").text(),postcode:t.find("input[name='addr_elem_postcode']").val(),addressId:i,addressText:s};return n().showLoading(),a("saveSubscriberAddress",{address:o}).then(function(e){return!(!e||!0!==e.success)||(n().showValidationMessage("Adresi neizdevÄs saglabÄt. MÄÄ£ini vÄlreiz."),!1)}).catch(function(){return n().showValidationMessage("Notika sistÄmas kļūda. MÄÄ£ini vÄlreiz."),!1})}},s)).then(e=>!0===e.isConfirmed&&!0===e.value)}function l(t,i){n().fire(e.extend({title:t,text:i,confirmButtonText:"Labi"},s))}function d(c,u){const p=c.attr("id"),h=c.find("input[name='company']");if(!c.find("input[name='terms-and-conditions']").is(":checked"))return t=!1,void l("Kļūda","Lai veiktu abonementu, ir jÄpiekrÄ«t lietoÅ¡anas noteikumiem, privÄtuma politikai un atcelÅ¡anas politikai!");const m=new FormData;m.append("nonce",globalAjaxVariables.globalNonce),m.append("planId",p),m.append("company",h.is(":checked")),"newspaper"===p&&(m.append("newspaperSubscriptionPlanType",i),"daily"===i?(m.append("from",c.find("select[name='daily-from']").val()),m.append("to",c.find("select[name='daily-to']").val())):(m.append("from",c.find("select[name='monthly-from']").val()),m.append("to",c.find("select[name='monthly-to']").val()))),e.ajax({url:"/wp-admin/admin-ajax.php?action=submitSubscription",type:"POST",data:m,processData:!1,contentType:!1,dataType:"json",beforeSend:function(){t=!0,u.addClass("loading")},success:function(i){t=!1,u.removeClass("loading");const p=i&&i.data?i.data.status:"";"success"!==p?"missingPassword"!==p?"missingAddress"!==p?"missingCompany"!==p?"missingAddressAndCompany"!==p?"alreadyHasAutoSubscription"!==p?l("Kļūda","Notika sistÄmas kļūda. LÅ«dzu, mÄÄ£iniet vÄlreiz vÄlÄk."):l("Abonements jau ir","Tev jau ir aktÄ«vs abonements ar automÄtisko maksÄjumu. To vari apskatÄ«t sadaÄ¼Ä Â«Mani abonementi»."):o().then(function(e){e&&r().then(e=>{e&&d(c,u)})}):o().then(e=>{e&&d(c,u)}):r().then(e=>{e&&d(c,u)}):n().fire(e.extend({title:"Izveido e-avÄ«zes paroli",html:'<div class="quick-profile"><p>Ar Å¡o paroli varÄsi ieiet e-avÄ«zÄ. TÄ ir tÄ pati parole, ar ko pieslÄdzies portÄlam.</p><label for="qp-password">Parole</label><input id="qp-password" type="password" class="swal2-input" autocomplete="new-password" placeholder="Vismaz 5 zÄ«mes"><label for="qp-password2">AtkÄrto paroli</label><input id="qp-password2" type="password" class="swal2-input" autocomplete="new-password" placeholder="AtkÄrto paroli"></div>',focusConfirm:!1,showCancelButton:!0,confirmButtonText:"SaglabÄt un turpinÄt",cancelButtonText:"Atcelt",allowOutsideClick:()=>!n().isLoading(),preConfirm:function(){const t=e("#qp-password").val()||"",i=e("#qp-password2").val()||"";return t.length<5?(n().showValidationMessage("ParolÄ jÄbÅ«t vismaz 5 zÄ«mÄm."),!1):t!==i?(n().showValidationMessage("Paroles nesakrÄ«t."),!1):(n().showLoading(),a("saveSubscriberPassword",{password:t}).then(function(e){return!(!e||!0!==e.success)||(n().showValidationMessage("Paroli neizdevÄs saglabÄt. MÄÄ£ini vÄlreiz."),!1)}).catch(function(){return n().showValidationMessage("Notika sistÄmas kļūda. MÄÄ£ini vÄlreiz."),!1}))}},s)).then(e=>!0===e.isConfirmed&&!0===e.value).then(e=>{e&&d(c,u)}):window.location.href=i.data.paymentUrl},error:function(){t=!1,u.removeClass("loading"),l("Kļūda","Notika sistÄmas kļūda. LÅ«dzu, mÄÄ£iniet vÄlreiz vÄlÄk.")}})}function c(t,i){const s=e(t),n=e(i);s.on("change",function(){const t=u(e(this).val());let i=!1;n.find("option").each(function(){const s=u(e(this).val()),a=s<t;e(this).prop("disabled",a),!a&&!i&&s>=t&&(u(n.val())<t&&n.val(e(this).val()),i=!0)})}),n.on("change",function(){const t=u(e(this).val());let i="";s.find("option").each(function(){const s=u(e(this).val())>t;e(this).prop("disabled",s),s||(i=e(this).val())}),u(s.val())>t&&s.val(i)})}function u(e){if(!e)return new Date(0);const t=e.split(".");return new Date(t[2],t[1]-1,t[0])}function p(){e(".subscription-card").each(function(s){let n=e(this),a=e(this).find("input[name='company']").is(":checked");const o=new FormData;o.append("nonce",globalAjaxVariables.globalNonce),o.append("planId",e(this).attr("id")),o.append("newspaperSubscriptionPlanType",i),o.append("monthly_from",e(this).find("select[name='monthly-from']").val()),o.append("monthly_to",e(this).find("select[name='monthly-to']").val()),o.append("daily_from",e(this).find("select[name='daily-from']").val()),o.append("daily_to",e(this).find("select[name='daily-to']").val()),e.ajax({url:"/wp-admin/admin-ajax.php?action=getSubscriptionPrice",type:"POST",processData:!1,contentType:!1,dataType:"json",data:o,beforeSend:function(){t=!0},success:function(e){if(!0===e.success){t=!1;const i=a?e.data.company_price:e.data.price,s=a?e.data.company_discount_price:e.data.discount_price;s?(n.find(".price").html(s+"*"),n.find(".discounted-price").html(i).show(),n.find(".legend").show()):(n.find(".price").html(i),n.find(".discounted-price").hide(),n.find(".legend").hide())}},error:function(){t=!1}})})}e(".subscription-card .js-submit").click(function(t){t.preventDefault(),e("body").hasClass("logged-in")?d(e(this).closest(".subscription-card"),e(this).parent()):n().fire(e.extend({title:"NepiecieÅ¡ams autorizÄties",text:"Lai veiktu abonementu, ir nepiecieÅ¡ams pieslÄgties savam profilam.",confirmButtonText:"AutorizÄties",showCancelButton:!0,cancelButtonText:"AizvÄrt"},s)).then(e=>{e.isConfirmed&&(window.location.href="/pieslegties?atgriezties=abonesana")})}),window.location.href.includes("?abonements-apmaksats")&&n().fire({title:"Abonements apmaksÄts",text:"Paldies, JÅ«su abonements ir veiksmÄ«gi apmaksÄts!",confirmButtonText:"AizvÄrt",showClass:{popup:"animate__animated animate__fadeInUp animate__faster"},hideClass:{popup:"animate__animated animate__fadeOutDown animate__faster"}}),e(".my-subscriptions-list .js-terminate").click(function(i){if(i.preventDefault(),t)return;t=!0;let s=e(this).parent();s.addClass("loading"),n().fire({title:"Abonementa pÄrtraukÅ¡ana!",text:"Vai tieÅ¡Äm vÄlaties pÄrtraukt abonementu?",confirmButtonText:"PÄrtraukt",showCancelButton:!0,cancelButtonText:"AizvÄrt",position:"center",showClass:{popup:"animate__animated animate__fadeInDown animate__faster"},hideClass:{popup:"animate__animated animate__fadeOutUp animate__faster"}}).then(i=>{if(i.isConfirmed){const i=new FormData;i.append("nonce",globalAjaxVariables.globalNonce),i.append("ID",e(this).find("a").attr("data-id")),e.ajax({url:"/wp-admin/admin-ajax.php?action=terminateSubscription",type:"POST",processData:!1,contentType:!1,data:i,success:function(e){!0===e.success&&(s.remove(),n().fire({title:"Abonements pÄrtraukts!",text:"Abonements veiksmÄ«gi pÄtraukts.",confirmButtonText:"AizvÄrt",position:"center",showClass:{popup:"animate__animated animate__fadeInDown animate__faster"},hideClass:{popup:"animate__animated animate__fadeOutUp animate__faster"}}))},error:function(){t=!1},complete:function(){t=!1}})}else t=!1,s.removeClass("loading")})})})},582:()=>{},587:()=>{!function(){var e,t="is-sticky-last";function i(e){var i=e.lastElementChild;if(i){for(var s=Array.prototype.slice.call(i.children),n=null,a=s.length-1;a>=0;a--)if(s[a].offsetHeight>0){n=s[a];break}s.forEach(function(e){e!==n&&e.classList.remove(t)}),n&&n.classList.add(t)}}function s(){e.forEach(i)}function n(){var e=document.querySelector(".right-side");if(e)if(window.matchMedia("(max-width: 767px)").matches)e.style.top="";else{var t=e.offsetHeight,i=window.innerHeight;
2e.style.top=t+40<=i?"20px":i-t-20+"px"}}function a(){if((e=Array.prototype.slice.call(document.querySelectorAll(".left-side"))).length){if(s(),n(),window.ResizeObserver){var t=new ResizeObserver(a);e.forEach(function(e){e.lastElementChild&&t.observe(e.lastElementChild)});var i=document.querySelector(".right-side");i&&t.observe(i)}window.addEventListener("resize",a),window.addEventListener("load",a)}function a(){s(),n()}}"loading"===document.readyState?document.addEventListener("DOMContentLoaded",a):a()}()},601:()=>{jQuery(function(){if(!(jQuery("body").hasClass("page-template-page-home")||jQuery("body").hasClass("search")||jQuery("body").hasClass("single-post")||jQuery("body").hasClass("category")))return;let e=jQuery(".left-side"),t=jQuery(".right-side"),i=jQuery(".responsive-zipper"),s=e.children("div"),n=t.children("div"),a=null;function o(){jQuery(window).width()<=767?!0!==a&&function(){e.hide(),t.hide(),i.empty();let o=Math.max(s.length,n.length);for(let e=0;e<o;e++)e<s.length&&i.append(s.eq(e)),e<n.length&&i.append(n.eq(e));a=!0}():!1!==a&&(e.show(),t.show(),e.append(s),t.append(n),a=!1)}o(),jQuery(window).on("resize",function(){setTimeout(()=>{o()},100)})})},819:(e,t,i)=>{"use strict";var s=i(465),n=i.n(s);jQuery(function(e){let t=[];if(e(document).on("change","#add-advertisement-form .upload-files",function(){let i=["jpg","png","jpeg","webp","gif","avif"],s=e("#files")[0],n=[],o=[];e("#add-advertisement-form .notification-message-files, #add-advertisement-form .notification-message-files-limit, #add-advertisement-form .notification-message-files-type").html("");for(let a=0;a<s.files.length;a++){let r=!0,l=s.files[a].name,d=l.toLowerCase().split(".").pop();-1===i.indexOf(d)&&(n.push(l),e("#add-advertisement-form .notification-message-files-type").html("<strong>"+n.join(", ")+"</strong> fails netika pievienots, jo tikai Å¡Ädi faila tipi ir atļauti: "+i.join(", ")+"!"),r=!1),s.files[a].size>5242880&&(o.push(l),e("#add-advertisement-form .notification-message-files").html("<strong>"+o.join(", ")+"</strong> fails netika pievienots, jo fails pÄrsniedz 2MB svaru!"),r=!1),t.length>=10&&(e("#add-advertisement-form .notification-message-files-limit").html("Atļautais failu daudzums ir 10!"),r=!1),r&&t.push(s.files[a])}a(t)}),e("#add-advertisement-form #file-wrapper").on("click",".js-delete-file",function(i){i.preventDefault(),e("#add-advertisement-form .notification-message-files, #add-advertisement-form .notification-message-files-limit, #add-advertisement-form .notification-message-files-type").html("");const s=e(this);let n=parseInt(s.parent().parent().attr("data-key"));e.each(t,function(e){n===e&&t.splice(n,1)}),a(t),s.parent().parent().remove()}),window.location.hash.includes("?kategorija=")){let e=window.location.hash.split("?"),t=e[0],i=new URLSearchParams(e[1]),s=new URL(window.location.href);s.hash=t,i.forEach((e,t)=>{s.searchParams.set(t,e)}),window.location.replace(s.toString())}e("#add-advertisement-form input[name='portal']").on("change",function(){e("#add-advertisement-form .js-portal").slideToggle()}),e("#add-advertisement-form input[name='newspaper']").on("change",function(){e("#add-advertisement-form .js-newspaper").slideToggle()});let i=!1;e("#add-advertisement-form .js-submit").on("click",function(n){if(n.preventDefault(),i)return;i=!0;let a=e(this).parent(),o=e("#add-advertisement-form textarea[name='text']"),r=e("#add-advertisement-form select[name='category']"),l=e("#add-advertisement-form input[name='phone']"),d=e("#add-advertisement-form input[name='email']"),c=e("#add-advertisement-form input[name='portal']"),u=e("#add-advertisement-form input[name='bold']"),p=e("#add-advertisement-form input[name='location']"),h=e("#add-advertisement-form input[name='price']"),m=e("#add-advertisement-form input[name='newspaper']"),f=e("#add-advertisement-form input[name='frame']"),w=[],g=e("#add-advertisement-form input[name='terms-and-conditions']"),v=!0,b="";e("#add-advertisement-form .notification-message").html(""),c.is(":checked")||m.is(":checked")||(v=!1,c.parent().parent().parent().find(".notification-message").html("IzvÄlies, kur vÄlies publicÄt sludinÄjumu!"),""===b&&(b=c.parent().parent().parent().parent())),"0"===r.val()&&(v=!1,r.parent().find(".notification-message").html("IzvÄlies sludinÄjuma kategoriju!"),""===b&&(b=r.parent())),""===l.val()?(v=!1,l.parent().find(".notification-message").html("Ievadi telefona numuru!"),""===b&&(b=l.parent())):""!==l.val()&&l.val().length>15&&(v=!1,l.parent().find(".notification-message").html("Telefona numurs nevar bÅ«t garÄks par 15 simboliem!"),""===b&&(b=l.parent()));if(""!==d.val()&&!0!==/^([a-z\d!#$%&'*+\-\/=?^_`{|}~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+(\.[a-z\d!#$%&'*+\-\/=?^_`{|}~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+)*|"((([ \t]*\r\n)?[ \t]+)?([\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|\\[\x01-\x09\x0b\x0c\x0d-\x7f\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))*(([ \t]*\r\n)?[ \t]+)?")@(([a-z\d\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|[a-z\d\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF][a-z\d\-._~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]*[a-z\d\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])\.)+([a-z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|[a-z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF][a-z\d\-._~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]*[a-z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])\.?$/i.test(d.val())?(v=!1,d.parent().find(".notification-message").html("E-pasta adrese nav pareiza!"),""===b&&(b=d.parent())):""===d.val()?(v=!1,d.parent().find(".notification-message").html("Ievadi e-pasta adresi!"),""===b&&(b=d.parent())):d.val().length>30&&(v=!1,d.parent().find(".notification-message").html("E-pasta adrese nevar bÅ«t garÄka par 30 simboliem!"),""===b&&(b=d.parent())),""===o.val()?(v=!1,o.parent().find(".notification-message").html("Ievadi sludinÄjuma tekstu!"),""===b&&(b=o.parent())):o.val().length<10?(v=!1,o.parent().find(".notification-message").html("SludinÄjuma tekstam ir jÄbÅ«t vismaz 10 simboliem garam!"),""===b&&(b=o.parent())):o.val().length>1e3&&(v=!1,o.parent().find(".notification-message").html("SludinÄjuma teksts nedrÄ«kst bÅ«t garÄks par 1000 simboliem!"),""===b&&(b=o.parent())),c.is(":checked")&&(p.val().length>30&&(v=!1,p.parent().find(".notification-message").html("AtraÅ¡ÄnÄs vieta nedrÄ«kst bÅ«t garÄka par 30 simboliem!"),""===b&&(b=p.parent())),h.val().length>30&&(v=!1,h.parent().find(".notification-message").html("Cena nedrÄ«kst bÅ«t garÄka par 30 simboliem!"),""===b&&(b=h.parent()))),m.is(":checked")&&(e("#add-advertisement-form input[name='date']").each(function(t){e(this).is(":checked")&&w.push(e(this).val())}),w.length<1&&(v=!1,e("#add-advertisement-form input[name='date']").parent().parent().parent().parent().find(".notification-message").html("IzvÄlies laikrakstu datumus, kuros vÄlies publicÄt sludinÄjumu!"),""===b&&(b=e("#add-advertisement-form input[name='date']").parent().parent().parent().parent()))),g.is(":checked")||(v=!1,g.parent().parent().find(".notification-message").html("Lai pievienotu sludinÄjumu, ir jÄpiekrÄ«t lietoÅ¡anas noteikumiem, privÄtuma politikai un atcelÅ¡anas politikai!"),""===b&&(b=g.parent().parent())),v){const n=new FormData;let g=0;e.each(t,function(e,t){n.append(e,t),g++}),n.append("totalFilesCount",g),n.append("text",o.val()),n.append("portal",c.is(":checked")),n.append("category",r.val()),n.append("phone",l.val()),n.append("email",d.val()),n.append("portalBold",u.is(":checked")),n.append("portalLocation",p.val()),n.append("portalPrice",h.val()),n.append("newspaper",m.is(":checked")),n.append("newspaperFrame",f.is(":checked")),n.append("newspaperDates",w),n.append("price",s()),n.append("nonce",globalAjaxVariables.globalNonce),e.ajax({url:"/wp-admin/admin-ajax.php?action=submitAdvertisement",type:"POST",data:n,processData:!1,contentType:!1,dataType:"json",beforeSend:function(){a.addClass("loading")},success:function(e){let t=e;"success"===t.status&&(window.location=t.redirect)},complete:function(){i=!1},error:function(){i=!1}})}else i=!1,e("body, html").animate({scrollTop:b.offset().top},1e3)}),e("#add-advertisement-form textarea[name='text']").on("change keyup paste",function(){e("#add-advertisement-form .counter span").html(e("#add-advertisement-form textarea[name='text']").val().length),s()}),e("#add-advertisement-form input[name='bold']").on("change",function(){s()}),e("#add-advertisement-form select[name='category']").on("change",function(){s()}),e("#add-advertisement-form input[name='frame']").on("change",function(){s()}
2),e("#add-advertisement-form input[name='newspaper']").on("change",function(){s()}),e("#add-advertisement-form input[name='date']").on("change",function(){s()});window.location.href;function s(){let t=0,i=0;if(e("#add-advertisement-form input[name='bold']").is(":checked")&&(t+=2),e("#add-advertisement-form input[name='newspaper']").is(":checked")){let t=e("#add-advertisement-form textarea[name='text']").val().length*function(){let t=e("#add-advertisement-form select[name='category']").val();if("PÄrk"===t)return.06;if("PÄrdod"===t)return.06;if("Citi"===t)return.06;if("PiedÄvÄ darbu"===t)return.06;if("MeklÄ darbu"===t)return.03;if("ĪrÄ"===t)return.05;if("IzÄ«rÄ"===t)return.06;if("Maina"===t)return.05;if("IepazīšanÄs"===t)return.05;if("PateicÄ«bas"===t)return.05;if("LÄ«dzjÅ«tÄ«bas"===t)return.06}();i=t<2?2:t,e("#add-advertisement-form input[name='frame']").is(":checked")&&(i+=3.5);let s=0;e("#add-advertisement-form input[name='date']").each(function(t){e(this).is(":checked")&&(s+=1)}),i*=s}let s=t+i;return isNaN(s)&&(s=0),e("#add-advertisement-form .advertisement-price span").html(parseFloat(s).toFixed(2)+"â¬"),parseFloat(s).toFixed(2)}function a(t){e("#add-advertisement-form #file-wrapper li").remove();let i=e("#add-advertisement-form #file-wrapper")[0];e.each(t,function(e){i.innerHTML+='<li data-key="'+e+'"><div class="button red only-icon with-icon x"><a href="#" class="js-delete-file" rel="nofollow"></a></div><span>'+t[e].name+"</span></li>"})}window.location.href.includes("?maksas-sludinajums-izveidots")&&n().fire({title:"SludinÄjums izveidots",text:"Paldies, JÅ«su sludinÄjums ir veiksmÄ«gi izveidots! Lai tas bÅ«tu aktÄ«vs, JÅ«s tiksiet novirzÄ«ts uz lapu, kur varÄsiet veikt tÄ apmaksu.",confirmButtonText:"Veikt apmaksu",showCancelButton:!0,cancelButtonText:"AizvÄrt",showClass:{popup:"animate__animated animate__fadeInUp animate__faster"},hideClass:{popup:"animate__animated animate__fadeOutDown animate__faster"}}).then(t=>{t.isConfirmed&&e.ajax({type:"POST",url:"/wp-admin/admin-ajax.php?action=getAdvertisementPaymentUrl",data:{id:new URLSearchParams(window.location.search).get("sludinajums"),nonce:globalAjaxVariables.globalNonce},success:function(t){let i=e.parseJSON(t);"success"===i.status&&(window.location.href=i.redirect)}})}),window.location.href.includes("?bezmaksas-sludinajums-izveidots")&&n().fire({title:"SludinÄjums izveidots",text:"Paldies, JÅ«su sludinÄjums ir veiksmÄ«gi izveidots!",confirmButtonText:"AizvÄrt",showClass:{popup:"animate__animated animate__fadeInUp animate__faster"},hideClass:{popup:"animate__animated animate__fadeOutDown animate__faster"}}),window.location.href.includes("?sludinajums-apmaksats")&&n().fire({title:"SludinÄjums apmaksÄts",text:"Paldies, JÅ«su sludinÄjums ir veiksmÄ«gi apmaksÄts! E-pastÄ saÅemsiet rÄÄ·inu.",confirmButtonText:"AizvÄrt",showClass:{popup:"animate__animated animate__fadeInUp animate__faster"},hideClass:{popup:"animate__animated animate__fadeOutDown animate__faster"}}),window.location.href.includes("?sludinajums-partraukts")&&n().fire({title:"SludinÄjums pÄrtraukts",text:"JÅ«su sludinÄjums ir veiksmÄ«gi pÄrtraukts!",confirmButtonText:"AizvÄrt",showClass:{popup:"animate__animated animate__fadeInUp animate__faster"},hideClass:{popup:"animate__animated animate__fadeOutDown animate__faster"}}),window.location.href.includes("?sludinajums-dzests")&&n().fire({title:"SludinÄjums dzÄsts",text:"JÅ«su sludinÄjums ir veiksmÄ«gi izdzÄsts!",confirmButtonText:"AizvÄrt",showClass:{popup:"animate__animated animate__fadeInUp animate__faster"},hideClass:{popup:"animate__animated animate__fadeOutDown animate__faster"}}),e("html").on("click",".advertisement #js-show",function(){e.ajax({type:"POST",url:"/wp-admin/admin-ajax.php?action=getMyAdvertisement",data:{id:e(this).attr("data-advertisement-id"),nonce:globalAjaxVariables.globalNonce},success:function(e){n().fire({title:"SludinÄjuma informÄcija",html:e.data.html,confirmButtonText:"AizvÄrt",showClass:{popup:"animate__animated animate__fadeInUp animate__faster"},hideClass:{popup:"animate__animated animate__fadeOutDown animate__faster"}})}})}),e("html").on("click",".advertisement #js-pay",function(){e.ajax({type:"POST",url:"/wp-admin/admin-ajax.php?action=getAdvertisementPaymentUrl",data:{id:e(this).attr("data-advertisement-id"),nonce:globalAjaxVariables.globalNonce},success:function(t){let i=e.parseJSON(t);"success"===i.status&&(window.location.href=i.redirect)}})}),e("html").on("click",".advertisement #js-remove-from-portal",function(){n().fire({title:"SludinÄjuma pÄrtraukÅ¡ana",text:"Vai tieÅ¡Äm vÄlaties pÄrtraukt sludinÄjuma publicÄÅ¡anu portÄlÄ? Atceraties, lai pÄrtrauktu avÄ«zÄ vÄl nepublicÄtus sludinÄjumus, lÅ«dzu, sazinieties ar redakciju.",confirmButtonText:"PÄrtraukt sludinÄjumu",showCancelButton:!0,cancelButtonText:"AizvÄrt",showClass:{popup:"animate__animated animate__fadeInUp animate__faster"},hideClass:{popup:"animate__animated animate__fadeOutDown animate__faster"}}).then(t=>{t.isConfirmed&&e.ajax({type:"POST",url:"/wp-admin/admin-ajax.php?action=removeAdvertisementFromPortal",data:{id:e(this).attr("data-advertisement-id"),nonce:globalAjaxVariables.globalNonce},success:function(t){let i=e.parseJSON(t);"success"===i.status&&(window.location.href=i.redirect)}})})}),e("html").on("click",".advertisement #js-delete",function(){n().fire({title:"SludinÄjuma dzÄÅ¡ana",text:"Vai tieÅ¡Äm vÄlaties dzÄst sludinÄjumu pavisam?",confirmButtonText:"DzÄst sludinÄjumu",showCancelButton:!0,cancelButtonText:"AizvÄrt",showClass:{popup:"animate__animated animate__fadeInUp animate__faster"},hideClass:{popup:"animate__animated animate__fadeOutDown animate__faster"}}).then(t=>{t.isConfirmed&&e.ajax({type:"POST",url:"/wp-admin/admin-ajax.php?action=deleteAdvertisementFromPortal",data:{id:e(this).attr("data-advertisement-id"),nonce:globalAjaxVariables.globalNonce},success:function(t){let i=e.parseJSON(t);"success"===i.status&&(window.location.href=i.redirect)}})})}),e(".advertisements-page #category-chooser").on("change",function(t){t.preventDefault();let i=e(this).val(),s=new URL(window.location.origin+"/sludinajumi/");i&&"0"!==i&&s.searchParams.set("kategorija",i),window.location.href=s.toString()})})},825:()=>{var lpaisais_url="/wp-content/themes/edruva/assets/libraries/latvijas-pasts/lpaisais.php",lpaisais_i18n={lv:{home:"MÄjas adrese",box:"Abonenta kastÄ«tes adrese",region:"Rajons",city:"PilsÄta",county:"Novads",parish:"Pagasts",village:"Ciems",street:"Iela",house:"MÄja",appartment:"DzÄ«voklis",postcode:"Pasta indekss",postcodebox:"Pasta indekss",mailbox:"Abonenta kastÄ«te",id:"Adreses ID",text:"Adreses pieraksts",reset:"NotÄ«rÄ«t datus",report:"Neatradi adresi? Pies
2aki to Å¡eit.",map:"SkatÄ«t kartÄ",loading:"LÅ«dzu uzgaidiet..."},en:{home:"Home address",box:"Mailbox address",region:"Region",city:"City",county:"County",parish:"Parish",village:"Village",street:"Street",house:"House",appartment:"Appartment",postcode:"Post code",postcodebox:"Post code",mailbox:"Mailbox",id:"Address ID",text:"Address text",reset:"Clear data",report:"Could not find the address? Report here.",map:"Look in map",loading:"Please wait..."}};(function($){$.fn.extend({lpaisais:function(options){var defaults={i18n:"lv",type:"home",showRegion:!1,onBeforeChange:function(){return!0},onAfterChange:function(){return!0},onSelect:function(){return!0}},options=$.extend(defaults,options);return this.each(function(){var obj=$(this),o=options;function lpaisais_call(obj,o,call){function lpaisais_data(e){var t={};return $("select",e).each(function(){t[$(this).attr("id")]=$(this).val()}),$("input",e).each(function(){t[$(this).attr("id")]=$(this).val()}),t}function lpaisais_disable(e,t){t=t.split(",");for(i in t)$("#addr_elem_"+t[i],e).attr("disabled","disabled")}function lpaisais_loading(e,t){t=t.split(",");for(i in t)$("#addr_elem_"+t[i],e).is("select")?$("#addr_elem_"+t[i],e).html("<option>"+o.i18n.loading+"</option>"):$("#addr_elem_"+t[i],e).val(o.i18n.loading)}function lpaisais_empty(e,t){t=t.split(",");for(i in t)$("#addr_elem_"+t[i],e).is("select")?$("#addr_elem_"+t[i],e).html(""):$("#addr_elem_"+t[i],e).val("")}var data=lpaisais_data(obj);if("addr_elem_region"==call&&"0"==$("#addr_elem_region",obj).val()&&(call=""),"addr_elem_county"==call&&"0"==$("#addr_elem_county",obj).val()&&(call=""),"addr_elem_city"==call&&"0"==$("#addr_elem_city",obj).val()&&(call=""),"addr_elem_parish"==call&&"0"==$("#addr_elem_parish",obj).val()&&(call=""),"addr_elem_id"!=call)switch(lpaisais_empty(obj,"postcode,id,text"),lpaisais_disable(obj,"region,city,county,parish,village,street,house,appartment,postcode,postcodebox,mailbox,id,text"),call){case"addr_elem_postcodebox":lpaisais_loading(obj,"mailbox");break;case"addr_elem_region":lpaisais_loading(obj,"city,county,parish"),lpaisais_empty(obj,"village,street,house,appartment,postcode,postcodebox,mailbox,id");break;case"addr_elem_city":lpaisais_loading(obj,"region,county,street"),lpaisais_empty(obj,"parish,village,house,appartment,postcode,postcodebox,mailbox,id");break;case"addr_elem_county":lpaisais_loading(obj,"region,city,parish"),lpaisais_empty(obj,"village,street,house,appartment,postcode,postcodebox,mailbox,id");break;case"addr_elem_parish":lpaisais_loading(obj,"region,county,village"),lpaisais_empty(obj,"city,street,house,appartment,postcode,postcodebox,mailbox,id");break;case"addr_elem_village":lpaisais_loading(obj,"street,house"),lpaisais_empty(obj,"appartment,postcode,postcodebox,mailbox,id");break;case"addr_elem_street":lpaisais_loading(obj,"house"),lpaisais_empty(obj,"appartment,postcode,postcodebox,mailbox,id");break;case"addr_elem_house":lpaisais_loading(obj,"appartment");break;case"addr_elem_appartment":case"addr_elem_mailbox":case"addr_elem_id":break;default:lpaisais_empty(obj,"village,street,house,appartment,postcode,id,text,postcodebox,mailbox"),lpaisais_loading(obj,"region,city,county,parish,postcodebox")}else lpaisais_empty(obj,"region,city,county,parish,village,street,house,appartment,postcode,postcodebox,mailbox,text"),lpaisais_disable(obj,"region,city,county,parish,village,street,house,appartment,postcode,postcodebox,mailbox,id,text"),lpaisais_loading(obj,"region,city,county,parish,village,street,house,appartment,postcode,postcodebox,mailbox,text");o.onBeforeChange(obj,call,o.type,data),$.post(lpaisais_url,{call,type:o.type,data},function(response){var kidas=response,response=eval("("+response+")");if(""!=(response.lpaisais_error||""))alert(response.lpaisais_error);else{var items="region,city,county,parish,village,street,house,appartment,postcode,postcodebox,mailbox,id,text",items=items.split(",");for(i in items)if($("#addr_elem_"+items[i],obj).is("select")){if(void 0!==response["addr_elem_"+items[i]]){var opts="";for(var j in response["addr_elem_"+items[i]])opts+='<option value="'+j+'">'+response["addr_elem_"+items[i]][j]+"</option>";if($("#addr_elem_"+items[i],obj).html(opts),""!=call&&call.search(items[i])<0){var maska='"addr_elem_'+items[i]+'":{.*?}',n=kidas.match(maska);null!==n&&(n=n[0].match(/"\d+"/),n=n[0].replace(/"/g,""),$("#addr_elem_"+items[i],obj).val(n))}}$("#addr_elem_"+items[i]+"_title",obj).val($("#addr_elem_"+items[i],obj).find("option:selected").html())}else void 0!==response["addr_elem_"+items[i]]&&($("#addr_elem_"+items[i],obj).val(response["addr_elem_"+items[i]]),$("#addr_elem_"+items[i]+"_title",obj).val(response["addr_elem_"+items[i]]));for(i in items)$("#addr_elem_"+items[i],obj).is("select")&&($("#addr_elem_"+items[i]+" option",obj).length>1||1==$("#addr_elem_"+items[i]+" option",obj).length&&"0"!=$("#addr_elem_"+items[i],obj).val())&&$("#addr_elem_"+items[i],obj).removeAttr("disabled");function lks2googlemapshref(e,t,i){var s=3.14159265358979,n=.9996,a=6378137,o=6356752.31414;function r(e){return e/s*180}function l(e){return 24/180*s}function d(e,t,i,s){var n,r,l,d,c,u,p,h,m,f,w,g,v,b,y,_,x,F,k,C,A,P,S,z;n=function(e){var t,i,s,n,a,o;return o=.0016792203946567046,t=e/(6367444.65707*(1+Math.pow(o,2)/4+Math.pow(o,4)/64)),i=3*o/2+-27*Math.pow(o,3)/32+269*Math.pow(o,5)/512,s=21*Math.pow(o,2)/16+-55*Math.pow(o,4)/32,n=151*Math.pow(o,3)/96+-417*Math.pow(o,5)/128,a=1097*
2Math.pow(o,4)/512,t+i*Math.sin(2*t)+s*Math.sin(4*t)+n*Math.sin(6*t)+a*Math.sin(8*t)}(t),c=(Math.pow(a,2)-Math.pow(o,2))/Math.pow(o,2),m=Math.cos(n),d=c*Math.pow(m,2),f=1/((l=r=Math.pow(a,2)/(o*Math.sqrt(1+d)))*m),w=(u=Math.tan(n))/(2*(l*=r)),g=1/(6*(l*=r)*m),v=u/(24*(l*=r)),b=1/(120*(l*=r)*m),y=u/(720*(l*=r)),_=1/(5040*(l*=r)*m),x=u/(40320*(l*=r)),F=-1-d,k=-1-2*(p=u*u)-d,C=5+3*p+6*d-6*p*d-d*d*3-9*p*(d*d),A=5+28*p+24*(h=p*p)+6*d+8*p*d,P=-61-90*p-45*h-107*d+162*p*d,S=-61-662*p-1320*h-h*p*720,z=1385+3633*p+4095*h+h*p*1575,s[0]=n+w*F*(e*e)+v*C*Math.pow(e,4)+y*P*Math.pow(e,6)+x*z*Math.pow(e,8),s[1]=i+f*e+g*k*Math.pow(e,3)+b*A*Math.pow(e,5)+_*S*Math.pow(e,7)}if(e>0&&t>0){var c=new Array(2);!function(e,t,i,s,a){e-=5e5,t-=-6e6,s&&(t-=1e7),d(e/=n,t/=n,l(),a)}(parseFloat(e),parseFloat("6"+t-6e6),0,undefined,c);var u=r(c[0]),p=r(c[1]);return"http://maps.google.com/?q="+response.addr_elem_text+"@"+u+","+p}return"#"}"home"==o.type&&$("#addr_elem_id",obj).removeAttr("disabled");var href=lks2googlemapshref(response.addr_coordinate_x||0,response.addr_coordinate_y||0,response.addr_elem_text||"");$("#addr_map",obj).attr("href",href),"#"==href?$("#addr_map",obj).hide():$("#addr_map",obj).show()}o.onAfterChange(obj,call,o.type,data,response),""!=response.addr_elem_id&&o.onSelect(obj,response.addr_elem_id)})}function lpaisais_init(e,t){function i(e,t,i,s){e.append('<div id="addr_'+i+'" class="lpaisais-div"><label for="addr_elem_'+i+'" class="lpaisais-label">'+t.i18n[i]+"</label><"+s+' disabled="disabled" id="addr_elem_'+i+'" name="addr_elem_'+i+'" class="lpaisais-'+s+'"/><input type="hidden" id="addr_elem_'+i+'_title" name="addr_elem_'+i+'_title" /></div>')}e.addClass("lpaisais"),e.html(""),e.append('<div class="lpaisais-div"><a href="#" id="addr_type_home" class="addr_type addr_type_selected">'+t.i18n.home+'</a> <a href="#" id="addr_type_box" class="addr_type">'+t.i18n.box+"</a></div>"),"home"==t.type?(1==t.showRegion&&i(e,t,"region","select"),i(e,t,"city","select"),i(e,t,"county","select"),i(e,t,"parish","select"),i(e,t,"village","select"),i(e,t,"street","select"),i(e,t,"house","select"),i(e,t,"appartment","select"),i(e,t,"postcode","input")):(i(e,t,"postcodebox","select"),i(e,t,"mailbox","select")),i(e,t,"id","input"),i(e,t,"text","textarea"),e.append('<div class="lpaisais-div"><a href="https://pasts.lv/parbaudit-adresi/neizdevas-atrast-adresi" target="_blank">'+t.i18n.report+'</a> <a href="#" id="addr_map" style="display:none;" target="_blank">'+t.i18n.map+"</a></div>"),$(".addr_type",e).click(function(){$(".addr_type_selected",e).removeClass("addr_type_selected"),$(this).addClass("addr_type_selected"),t.type=$(this).attr("id").split("_")[2],lpaisais_init(e,t)}),lpaisais_call(e,t,""),$("select",e).change(function(){lpaisais_call(e,t,$(this).attr("id"))}),$("#addr_elem_id",e).keyup(function(){var i=$(this).val();i=i.split("-").join("_").split("a").join("A"),$(this).val(i),10==i.length&&lpaisais_call(e,t,$(this).attr("id"))})}o.i18n=lpaisais_i18n[o.i18n],lpaisais_init(obj,o,"home")})}})})(jQuery)},837:()=>{jQuery(function(e){jQuery("body").hasClass("post-type-archive-events")&&e(".js-past-events-toggle").on("click",function(){e(this).toggleClass("active"),e(".js-past-events-container").slideToggle()})})},845:()=>{jQuery(function(e){let t=[];e(document).on("change","#user-message-form .upload-files",function(){let i=["jpg","png","jpeg","pdf","webp","gif","avif"],n=e("#files")[0],a=[],o=[];e("#user-message-form .notification-message-files, #user-message-form .notification-message-files-limit, #user-message-form .notification-message-files-type").html("");for(let s=0;s<n.files.length;s++){let r=!0,l=n.files[s].name,d=l.toLowerCase().split(".").pop();-1===i.indexOf(d)&&(a.push(l),e("#user-message-form .notification-message-files-type").html("<strong>"+a.join(", ")+"</strong> fails netika pievienots, jo tikai Å¡Ädi faila tipi ir atļauti: "+i.join(", ")+"!"),r=!1),n.files[s].size>5242880&&(o.push(l),e("#user-message-form .notification-message-files").html("<strong>"+o.join(", ")+"</strong> fails netika pievienots, jo fails pÄrsniedz 2MB svaru!"),r=!1),t.length>=10&&(e("#user-message-form .notification-message-files-limit").html("Atļautais failu daudzums ir 10!"),r=!1),r&&t.push(n.files[s])}s(t)}),e("#user-message-form #file-wrapper").on("click",".js-delete-file",function(i){i.preventDefault(),e("#user-message-form .notification-message-files, #user-message-form .notification-message-files-limit, #user-message-form .notification-message-files-type").html("");const n=e(this);let a=parseInt(n.parent().parent().attr("data-key"));e.each(t,function(e){a===e&&t.splice(a,1)}),s(t),n.parent().parent().remove()});let i=!1;function s(t){e("#user-message-form #file-wrapper li").remove();let i=e("#user-message-form #file-wrapper")[0];e.each(t,function(e){i.innerHTML+='<li data-key="'+e+'"><div class="button red only-icon with-icon x"><a href="#" class="js-delete-file" rel="nofollow"></a></div><span>'+t[e].name+"</span></li>"})}e("#user-message-form .js-submit").on("click",function(s){if(s.preventDefault(),i)return;i=!0;let n=e(this).parent(),a=e("#user-message-form input[name='name']"),o=e("#user-message-form input[name='email']"),r=e("#user-message-form input[name='last-name']"),l=e("#user-message-form input[name='number']"),d=e("#user-message-form textarea[name='text']"),c=e("#user-message-form input[name='terms-and-conditions']"),u=!0,p="";e("#user-message-form .notification-message, #user-message-form .submit-notification").html(""),""===a.val()&&(u=!1,a.parent().find(".notification-message").html("Ievadi vÄrdu!"),""===p&&(p=a.parent())),""===r.val()&&(u=!1,r.parent().find(".notification-message").html("Ievadi uzvÄrdu!"),""===p&&(p=r.parent()));if(""===o.val()?(u=!1,o.parent().find(".notification-message").html("Ievadi e-pasta adresi!"),""===p&&(p=o.parent())):/^([a-z\d!#$%&'*+\-\/=?^_`{|}~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+(\.[a-z\d!#$%&'*+\-\/=?^_`{|}~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+)*|"((([ \t]*\r\n)?[ \t]+)?([\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|\\[\x01-\x09\x0b\x0c\x0d-\x7f\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))*(([ \t]*\r\n)?[ \t]+)?")@(([a-z\d\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|[a-z\d\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF][a-z\d\-._~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]*[a-z\d\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])\.)+([a-z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|[a-z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF][a-z\d\-._~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]*[a-z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])\.?$/i.test(o.val())||(u=!1,o.parent().find(".notification-message").html("E-pasta adrese nav pareiza!"),""===p&&(p=o.parent())),""===l.val()&&(u=!1,l.parent().find(".notification-message").html("Ievadi telefona numuru!"),""===p&&(p=l.parent())),""===d.val()&&(u=!1,d.parent().find(".notification-message").html("Ievadi ziÅu!"),""===p&&(p=d.parent())),c.is(":checked")||(u=!1,c.parent().parent().find(".notification-message").html("Lai nosÅ«tÄ«tu ziÅu, ir jÄpiekrÄ«t lietoÅ¡anas noteikumiem un privÄtuma politikai!"),""===p&&(p=c.parent().parent())),u){const s=new FormData;let c=0;e.each(t,function(e,t){s.append(e,t),c++}),s.append("totalFilesCount",c),s.append("name",a.val()),s.append("lastName",r.val()),s.append("email",o.val()),s.append("number",l.val()),s.append("text",d.val()),s.append("nonce",globalAjaxVariables.globalNonce),e.ajax({url:"/wp-admin/admin-ajax.php?action=submitUserMessage",type:"POST",data:s,processData:!1,contentType:!1,dataType:"json",beforeSend:function(){n.addClass("loading")},success:function(s){i=!1,"success"===s.status&&(e("#user-message-form input[name='name']").val(""),e("#user-message-form input[name='last-name']").val(""),e("#user-message-form input[name='email']").val(""),e("#user-message-form input[name='number']").val(""),e("#user-message-form textarea[name='text']").val(""),e("#user-message-form input[name='terms-and-conditions']").prop("checked",!1),t=[],e("#user-message-form #files").val(null),e("#user-message-form #file-wrapper li").remove(),e("#user-message-form .submit-notification").show().html("Paldies, Tavs ziÅojums ir nosÅ«tÄ«ts!"),n.removeClass("loading"))},complete:function(){i=!1},error:function(){i=!1}})}else i=!1,e("body, html").animate({scrollTop:p.offset().top},1e3)})})},859:(e,t,i)=>{"use strict";var s=i(465),n=i.n(s);jQuery(function(e){e.ajax({type:"POST",url:"/wp-admin/admin-ajax.php?action=getLatestWeather",data:{nonce:globalAjaxVariables.globalNonce},success:function(t){e(".js-weather").html(t.data.html)}}),e(window).on("load resize",function(){if("none"!==e(".js-more-menu").css("display")){let t=0,i=e(".menu-wrapper").width()-e(".js-more-menu").width();e(".js-other-categories > .menu-item").each(function(){e(".main-menu").append(e(this))}),e(".main-menu > .menu-item").each(function(){t+=e(this).outerWidth(),t>i&&e(".js-other-categories").append(e(this))})}else e(".js-other-categories > .menu-item").each(function(){e(".main-menu").append(e(this))})}),e(".js-hamburger").click(function(t){t.preventDefault(),e(this).toggleClass("is-active"),e(".js-mobile-menu").toggleClass("active")}),e("textarea:not(.swal2-textarea)").each(function(){this.setAttribute("style","height:"+this.scrollHeight+"px;overflow-y:hidden;")}).on("input",function(){this.style.height="auto",this.style.height=this.scrollHeight+"px"}),e(".search-button").click(function(e){n().fire({title:"MeklÄÅ¡ana",text:"LÅ«dzu, ievadi atslÄgas vÄrdu pÄc kura meklÄt rakstus.",input:"text",inputAttributes:{autocapitalize:"off"},confirmButtonText:"MeklÄt",showCancelButton:!0,cancelButtonText:"AizvÄrt",preConfirm:async e=>{window.location.href="/?s="+e},showClass:{popup:"animate__animated animate__fadeInUp animate__faster"},hideClass:{popup:"animate__animated animate__fadeOutDown animate__faster"}})}),jQuery(function(e){e(window).on("resize load",void setTimeout(()=>{e("body").addClass("loaded")},100)),window.addEventListener("load",function(){e("body").addClass("loaded")}),"complete"===document.readyState&&setTimeout(()=>{e("body").addClass("loaded")},100)})})},970:()=>{jQuery(function(e){const t=new URLSearchParams(window.location.search).get("atgriezties")||"";let i=!1;e("#login-form .js-submit").on("click",function(s){if(s.preventDefault(),i)return;i=!0;let n=e(this).parent(),a=e("#login-form input[name='email']").val(),o=e("#login-form input[name='password']").val(),r=!0;e("#login-form .notification-message, #login-form .submit-notification").html("");""===a?(r=!1,e("#login-form input[name='email']").parent().find(".notification-message").html("Ievadi savu e-pastu!")):/^([a-z\d!#$%&'*+\-\/=?^_`{|}~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+(\.[a-z\d!#$%&'*+\-\/=?^_`{|}~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+)*|"((([ \t]*\r\n)?[ \t]+)?([\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|\\[\x01-\x09\x0b\x0c\x0d-\x7f\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))*(([ \t]*\r\n)?[ \t]+)?")@(([a-z\d\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|[a-z\d\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF][a-z\d\-._~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]*[a-z\d\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])\.)+([a-z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|[a-z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF][a-z\d\-._~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]*[a-z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])\.?$/i.test(a)||(r=!1,e("#login-form input[name='email']").parent().find(".notification-message").html("E-pasta adrese nav pareiza!")),""===o&&(r=!1,e("#login-form input[name='password']").parent().find(".notification-message").html("Ievadi savu paroli!")),r?e.ajax({type:"POST",url:"/wp-admin/admin-ajax.php?action=login",data:{emailAddress:a,password:o,atgriezties:t,nonce:globalAjaxVariables.globalNonce},beforeSend:function(){n.addClass("loading")},success:function(t){i=!1;let s=e.parseJSON(t);"success_login"===s.status?window.location.href=s.redirect:"failed_login"===s.status?(e("#login-form .submit-notification").show().html("E-pasta adrese vai parole nav pareiza!"),n.removeClass("loading")):"too_many_attempts"===s.status&&(e("#login-form .submit-notification").show().html("Par daudz nesekmÄ«gu mÄÄ£inÄjumu. LÅ«dzu, pamÄÄ£ini vÄlreiz pÄc 15 minÅ«tÄm."),n.removeClass("loading"))},complete:function(){i=!1},error:function(){i=!1}}):i=!1}),e("#register-form .js-submit").on("click",function(s){if(s.preventDefault(),i)return;i=!0;let n=e(this).parent(),a=e("#register-form input[name='name']").val(),o=e("#register-form input[name='surname']").val(),r=e("#register-form input[name='email']").val(),l=e("#register-form input[name='password']").val(),d=e("#register-form input[name='repeated-password']").val(),c=e("#register-form input[name='terms-and-conditions']").is(":checked"),u=!0;e("#register-form .notification-message, #register-form .submit-notification").html(""),""===a&&(u=!1,e("#register-form input[name='name']").parent().find(".notification-message").html("Ievadi savu vÄrdu!")),""===o&&(u=!1,e("#register-form input[name='surname']").parent().find(".notification-message").html("Ievadi savu uzvÄrdu!"));""===r?(u=!1,e("#register-form input[name='email']").parent().find(".notification-message").html("Ievadi savu e-pastu!")):/^([a-z\d!#$%&'*+\-\/=?^_`{|}~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+(\.[a-z\d!#$%&'*+\-\/=?^_`{|}~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+)*|"((([ \t]*\r\n)?[ \t]+)?([\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|\\[\x01-\x09\x0b\x0c\x0d-\x7f\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))*(([ \t]*\r\n)?[ \t]+)?")@(([a-z\d\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|[a-z\d\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF][a-z\d\-._~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]*[a-z\d\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])\.)+([a-z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|[a-z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF][a-z\d\-._~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]*[a-z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])\.?$/i.test(r)||(u=!1,e("#register-form input[name='email']").parent().find(".notification-message").html("IevadÄ«tais e-pasts ir nepareizs!")),""===l?(u=!1,e("#register-form input[name='password']").parent().find(".notification-message").html("Ievadi savu paroli!")):l.length<8&&(u=!1,e("#register-form input[name='password']").parent().find(".notification-message").html("Parolei jÄbÅ«t vismaz no 8 simboliem!")),""===d&&(u=!1,e("#register-form input[name='repeated-password']").parent().find(".notification-message").html("Ievadi atkÄrtoti savu paroli!")),l!==d&&(u=!1,e("#register-form input[name='repeated-password']").parent().find(".notification-message").html("Paroles nesakrÄ«t!")),c||(u=!1,e("#register-form input[name='terms-and-conditions']").parent().parent().find(".notification-message").html("Lai veiktu reÄ£istrÄciju, ir jÄpiekrÄ«t lietoÅ¡anas noteikumiem un privÄtuma politikai!")),u?e.ajax({type:"POST",url:"/wp-admin/admin-ajax.php?action=register",data:{name:a,lastName:o,emailAddress:r,password:l,atgriezties:t,nonce:globalAjaxVariables.globalNonce},beforeSend:function(){n.addClass("loading")},success:function(t){let s=e.parseJSON(t);"existing_email"===s.status?(i=!1,n.removeClass("loading"),e("#register-form input[name='email']").parent().find(".notification-message").html("Å Äds e-pasts jau ir reÄ£istrÄts!")):"invalid_email"===s.status?(i=!1,n.removeClass("loading"),e("#register-form input[name='email']").parent().find(".notification-message").html("IevadÄ«tais e-pasts ir nepareizs!")):"password_too_short"===s.status?(i=!1,n.removeClass("loading"),e("#register-form input[name='password']").parent().find(".notification-message").html("Parolei jÄbÅ«t vismaz no 8 simboliem!")):"success_registration"===s.status&&(window.location.href=s.redirect)},complete:function(){i=!1},error:function(){i=!1}}):i=!1}),e("#forgot-password-form .js-submit").on("click",function(t){if(t.preventDefault(),i)return;i=!0;let s=e(this).parent(),n=e("#forgot-password-form input[name='email']").val(),a=!0;""===n&&(a=!1,e("#forgot-password-form input[name='email']").parent().find(".notification-message").html("Ievadi savu e-pastu!"));/^([a-z\d!#$%&'*+\-\/=?^_`{|}~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+(\.[a-z\d!#$%&'*+\-\/=?^_`{|}~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+)*|"((([ \t]*\r\n)?[ \t]+)?([\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x
223-\x5b\x5d-\x7e\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|\\[\x01-\x09\x0b\x0c\x0d-\x7f\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))*(([ \t]*\r\n)?[ \t]+)?")@(([a-z\d\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|[a-z\d\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF][a-z\d\-._~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]*[a-z\d\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])\.)+([a-z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|[a-z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF][a-z\d\-._~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]*[a-z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])\.?$/i.test(n)||(a=!1,e("#forgot-password-form input[name='email']").parent().find(".notification-message").html("IevadÄ«tais e-pasts ir nepareizs!")),a?e.ajax({type:"POST",url:"/wp-admin/admin-ajax.php?action=forgotPassword",data:{email:n,nonce:globalAjaxVariables.globalNonce},beforeSend:function(){s.addClass("loading")},success:function(t){e("#forgot-password-form input[name='email']").val(""),e("#forgot-password-form .submit-notification").show().html("Paroles atjaunoÅ¡anas saite ir veiksmÄ«gi nosÅ«tÄ«ta uz JÅ«su norÄdÄ«to e-pastu!"),i=!1,s.removeClass("loading")},complete:function(){i=!1},error:function(){i=!1}}):i=!1}),e("#new-password-form .js-submit").on("click",function(t){if(t.preventDefault(),i)return;i=!0;let s=e(this).parent(),n=e("#new-password-form input[name='password']").val(),a=e("#new-password-form input[name='repeated-password']").val(),o=!0;e("#new-password-form .notification-message").html(""),""!==n&&""!==a||(o=!1,e("#new-password-form input[name='repeated-password']").parent().find(".notification-message").html("Aizpildiet visus laukus!")),n!==a&&(o=!1,e("#new-password-form input[name='repeated-password']").parent().find(".notification-message").html("Paroles nesakrÄ«t!")),n.length<8&&(o=!1,e("#new-password-form input[name='repeated-password']").parent().find(".notification-message").html("Parolei jÄbÅ«t vismaz no 8 simboliem!"));let r=new URLSearchParams(window.location.search),l=r.get("key")||"",d=r.get("rid")||"";""!==l&&""!==d||(o=!1,e("#new-password-form .submit-notification").show().html("Paroles atjaunoÅ¡anas saite nav derÄ«ga! LÅ«dzu, veic no jauna paroles atjaunoÅ¡anu.")),o?e.ajax({type:"POST",url:"/wp-admin/admin-ajax.php?action=createPassword",data:{password:n,key:l,rid:d,nonce:globalAjaxVariables.globalNonce},beforeSend:function(){s.addClass("loading")},success:function(t){let n=e.parseJSON(t);"expired_or_invalid_reset_link"===n.status?(e("#new-password-form .submit-notification").show().html("Paroles atjaunoÅ¡anas saite nav derÄ«ga! LÅ«dzu, veic no jauna paroles atjaunoÅ¡anu."),i=!1,s.removeClass("loading")):"password_too_short"===n.status?(e("#new-password-form input[name='repeated-password']").parent().find(".notification-message").html("Parolei jÄbÅ«t vismaz no 8 simboliem!"),i=!1,s.removeClass("loading")):(e("#new-password-form input[name='password']").val(""),e("#new-password-form input[name='repeated-password']").val(""),e("#new-password-form .submit-notification").show().html("Parole veiksmÄ«gi nomainÄ«ta!"),i=!1,s.removeClass("loading"))},complete:function(){i=!1},error:function(){i=!1}}):i=!1})})},986:(e,t,i)=>{"use strict";var s=i(465),n=i.n(s);jQuery(function(e){if(!jQuery("body").hasClass("single-post"))return;e(".like-comment, .dislike-comment").on("click",function(t){let i=parseInt(e(this).closest("[data-id]").attr("data-id")),s=parseInt(e("body").attr("class").match(/postid-(\d+)/)?.[1]||0,10),n=e(this).closest(".like-dislike").find(".like-comment .count"),a=e(this).closest(".like-dislike").find(".dislike-comment .count"),o=e(this).hasClass("dislike-comment")?"dislike":"like",r=e(this).closest(".like-dislike").find(".like-comment.active, .dislike-comment.active"),l=r.length>0,d=l?r.hasClass("like-comment")?"like":"dislike":null;if(!i||!o)return;l?o===d?(r.removeClass("active"),"like"===o?n.html(parseInt(n.html())-1):a.html(parseInt(a.html())-1)):(r.removeClass("active"),e(this).addClass("active"),"like"===o?(n.html(parseInt(n.html())+1),a.html(parseInt(a.html())-1)):(a.html(parseInt(a.html())+1),n.html(parseInt(n.html())-1))):"like"===o?(n.html(parseInt(n.html())+1),e(this).addClass("active")):(a.html(parseInt(a.html())+1),e(this).addClass("active"));const c=new FormData;c.append("nonce",globalAjaxVariables.globalNonce),c.append("commentID",i),c.append("postID",s),c.append("vote",o),e.ajax({url:"/wp-admin/admin-ajax.php?action=submitCommentVote",type:"POST",processData:!1,contentType:!1,data:c})});let t=!1;function i(){const t=new URL(window.location.href);if(t.searchParams.has("submitted")){const i=Array.from(t.searchParams.keys()).find(e=>e.startsWith("comment-"));if(i){const t=i.replace("comment-",""),s=e('[data-id="'+t+'"]');s.length&&e("html, body").animate({scrollTop:s.offset().top-50},300)}n().fire({title:"Paldies!",text:"KomentÄrs ir iesniegts.",confirmButtonText:"AizvÄrt",position:"center",showClass:{popup:"animate__animated animate__fadeInUp animate__faster"},hideClass:{popup:"animate__animated animate__fadeOutDown animate__faster"}})}}e(".comment-form .js-submit").on("click",function(i){if(i.preventDefault(),t)return;t=!0;let s=e(this).parent(),n=parseInt(e("body").attr("class").match(/postid-(\d+)/)?.[1]||0,10),a=e('.comment-form textarea[name="comment"]'),o=e('.comment-form input[name="name"]'),r=!0,l="";if(e(".comment-form .notification-message").html(""),""===a.val()&&(r=!1,a.parent().find(".notification-message").html("Ievadi komentÄru!"),""===l&&(l=
2a.parent())),""===o.val()&&(r=!1,o.parent().parent().find(".notification-message").html("Ievadi vÄrdu!"),""===l&&(l=o.parent().parent())),r){const i=new FormData;i.append("nonce",globalAjaxVariables.globalNonce),i.append("ID",n),i.append("comment",a.val()),i.append("name",o.val()),e.ajax({url:"/wp-admin/admin-ajax.php?action=submitComment",type:"POST",processData:!1,contentType:!1,data:i,beforeSend:function(){s.addClass("loading")},success:function(e){!0===e.success&&e.data.redirect&&(window.location.href=e.data.redirect)},complete:function(){t=!1},error:function(){t=!1}})}else t=!1,e("body, html").animate({scrollTop:l.offset().top-50},300)}),window.addEventListener("load",function(){i()}),"complete"===document.readyState&&setTimeout(()=>{i()},100)})}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var i=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e].call(i.exports,i,i.exports,__webpack_require__),i.exports}__webpack_require__.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return __webpack_require__.d(t,{a:t}),t},__webpack_require__.d=(e,t)=>{for(var i in t)__webpack_require__.o(t,i)&&!__webpack_require__.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),__webpack_require__(582),__webpack_require__(420),__webpack_require__(819),__webpack_require__(970),__webpack_require__(986),__webpack_require__(837),__webpack_require__(279),__webpack_require__(859),__webpack_require__(447),__webpack_require__(227),__webpack_require__(298),__webpack_require__(601),__webpack_require__(399),__webpack_require__(449),__webpack_require__(587),__webpack_require__(469),__webpack_require__(845);var __webpack_exports__=__webpack_require__(825)})();
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.