mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
3 lines
18 KiB
JavaScript
3 lines
18 KiB
JavaScript
/* Notiflix Block AIO (https://notiflix.github.io) - Version: 3.2.8 - Author: Furkan (https://github.com/furcan) - Copyright 2019 - 2025 Notiflix, MIT License (https://opensource.org/licenses/MIT) */
|
|
|
|
(function(a,b){"function"==typeof define&&define.amd?define([],function(){return b(a)}):"object"==typeof module&&"object"==typeof module.exports?module.exports=b(a):a.Notiflix=b(a)})("undefined"==typeof global?"undefined"==typeof window?this:window:global,function(a){'use strict';if("undefined"==typeof a&&"undefined"==typeof a.document)return!1;var b,c="\n\nVisit documentation page to learn more: https://notiflix.github.io/documentation",d={Standard:"Standard",Hourglass:"Hourglass",Circle:"Circle",Arrows:"Arrows",Dots:"Dots",Pulse:"Pulse"},e={ID:"NotiflixBlockWrap",querySelectorLimit:200,className:"notiflix-block",position:"absolute",zindex:1e3,backgroundColor:"rgba(255,255,255,0.9)",rtl:!1,fontFamily:"Quicksand",cssAnimation:!0,cssAnimationDuration:300,svgSize:"45px",svgColor:"#383838",messageFontSize:"14px",messageMaxLength:34,messageColor:"#383838"},f=function(a){return console.error("%c Notiflix Error ","padding:2px;border-radius:20px;color:#fff;background:#ff5549","\n"+a+c)},g=function(a){return console.log("%c Notiflix Info ","padding:2px;border-radius:20px;color:#fff;background:#26c0d3","\n"+a+c)},h=function(b){return b||(b="head"),void 0!==a.document[b]||(f("\nNotiflix needs to be appended to the \"<"+b+">\" element, but you called it before the \"<"+b+">\" element has been created."),!1)},i=function(b,c){if(!h("head"))return!1;if(null!==b()&&!a.document.getElementById(c)){var d=a.document.createElement("style");d.id=c,d.innerHTML=b(),a.document.head.appendChild(d)}},j=function(){var a={},b=!1,c=0;"[object Boolean]"===Object.prototype.toString.call(arguments[0])&&(b=arguments[0],c++);for(var d=function(c){for(var d in c)Object.prototype.hasOwnProperty.call(c,d)&&(a[d]=b&&"[object Object]"===Object.prototype.toString.call(c[d])?j(a[d],c[d]):c[d])};c<arguments.length;c++)d(arguments[c]);return a},k=function(b){var c=a.document.createElement("div");return c.innerHTML=b,c.textContent||c.innerText||""},l=function(a,b){a||(a="60px"),b||(b="#32c682");var c="<svg xmlns=\"http://www.w3.org/2000/svg\" stroke=\""+b+"\" width=\""+a+"\" height=\""+a+"\" transform=\"scale(.8)\" viewBox=\"0 0 38 38\"><g fill=\"none\" fill-rule=\"evenodd\" stroke-width=\"2\" transform=\"translate(1 1)\"><circle cx=\"18\" cy=\"18\" r=\"18\" stroke-opacity=\".25\"/><path d=\"M36 18c0-9.94-8.06-18-18-18\"><animateTransform attributeName=\"transform\" dur=\"1s\" from=\"0 18 18\" repeatCount=\"indefinite\" to=\"360 18 18\" type=\"rotate\"/></path></g></svg>";return c},m=function(a,b){a||(a="60px"),b||(b="#32c682");var c="<svg xmlns=\"http://www.w3.org/2000/svg\" id=\"NXLoadingHourglass\" fill=\""+b+"\" width=\""+a+"\" height=\""+a+"\" viewBox=\"0 0 200 200\"><style>@-webkit-keyframes NXhourglass5-animation{0%{-webkit-transform:scale(1,1);transform:scale(1,1)}16.67%{-webkit-transform:scale(1,.8);transform:scale(1,.8)}33.33%{-webkit-transform:scale(.88,.6);transform:scale(.88,.6)}37.5%{-webkit-transform:scale(.85,.55);transform:scale(.85,.55)}41.67%{-webkit-transform:scale(.8,.5);transform:scale(.8,.5)}45.83%{-webkit-transform:scale(.75,.45);transform:scale(.75,.45)}50%{-webkit-transform:scale(.7,.4);transform:scale(.7,.4)}54.17%{-webkit-transform:scale(.6,.35);transform:scale(.6,.35)}58.33%{-webkit-transform:scale(.5,.3);transform:scale(.5,.3)}83.33%,to{-webkit-transform:scale(.2,0);transform:scale(.2,0)}}@keyframes NXhourglass5-animation{0%{-webkit-transform:scale(1,1);transform:scale(1,1)}16.67%{-webkit-transform:scale(1,.8);transform:scale(1,.8)}33.33%{-webkit-transform:scale(.88,.6);transform:scale(.88,.6)}37.5%{-webkit-transform:scale(.85,.55);transform:scale(.85,.55)}41.67%{-webkit-transform:scale(.8,.5);transform:scale(.8,.5)}45.83%{-webkit-transform:scale(.75,.45);transform:scale(.75,.45)}50%{-webkit-transform:scale(.7,.4);transform:scale(.7,.4)}54.17%{-webkit-transform:scale(.6,.35);transform:scale(.6,.35)}58.33%{-webkit-transform:scale(.5,.3);transform:scale(.5,.3)}83.33%,to{-webkit-transform:scale(.2,0);transform:scale(.2,0)}}@-webkit-keyframes NXhourglass3-animation{0%{-webkit-transform:scale(1,.02);transform:scale(1,.02)}79.17%,to{-webkit-transform:scale(1,1);transform:scale(1,1)}}@keyframes NXhourglass3-animation{0%{-webkit-transform:scale(1,.02);transform:scale(1,.02)}79.17%,to{-webkit-transform:scale(1,1);transform:scale(1,1)}}@-webkit-keyframes NXhourglass1-animation{0%,83.33%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(180deg);transform:rotate(180deg)}}@keyframes NXhourglass1-animation{0%,83.33%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(180deg);transform:rotate(180deg)}}#NXLoadingHourglass *{-webkit-animation-duration:1.2s;animation-duration:1.2s;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-timing-function:cubic-bezier(0,0,1,1);animation-timing-function:cubic-bezier(0,0,1,1)}</style><g data-animator-group=\"true\" data-animator-type=\"1\" style=\"-webkit-animation-name:NXhourglass1-animation;animation-name:NXhourglass1-animation;-webkit-transform-origin:50% 50%;transform-origin:50% 50%;transform-box:fill-box\"><g id=\"NXhourglass2\" fill=\"inherit\"><g data-animator-group=\"true\" data-animator-type=\"2\" style=\"-webkit-animation-name:NXhourglass3-animation;animation-name:NXhourglass3-animation;-webkit-animation-timing-function:cubic-bezier(.42,0,.58,1);animation-timing-function:cubic-bezier(.42,0,.58,1);-webkit-transform-origin:50% 100%;transform-origin:50% 100%;transform-box:fill-box\" opacity=\".4\"><path id=\"NXhourglass4\" d=\"M100 100l-34.38 32.08v31.14h68.76v-31.14z\"/></g><g data-animator-group=\"true\" data-animator-type=\"2\" style=\"-webkit-animation-name:NXhourglass5-animation;animation-name:NXhourglass5-animation;-webkit-transform-origin:50% 100%;transform-origin:50% 100%;transform-box:fill-box\" opacity=\".4\"><path id=\"NXhourglass6\" d=\"M100 100L65.62 67.92V36.78h68.76v31.14z\"/></g><path d=\"M51.14 38.89h8.33v14.93c0 15.1 8.29 28.99 23.34 39.1 1.88 1.25 3.04 3.97 3.04 7.08s-1.16 5.83-3.04 7.09c-15.05 10.1-23.34 23.99-23.34 39.09v14.93h-8.33a4.859 4.859 0 1 0 0 9.72h97.72a4.859 4.859 0 1 0 0-9.72h-8.33v-14.93c0-15.1-8.29-28.99-23.34-39.09-1.88-1.26-3.04-3.98-3.04-7.09s1.16-5.83 3.04-7.08c15.05-10.11 23.34-24 23.34-39.1V38.89h8.33a4.859 4.859 0 1 0 0-9.72H51.14a4.859 4.859 0 1 0 0 9.72zm79.67 14.93c0 15.87-11.93 26.25-19.04 31.03-4.6 3.08-7.34 8.75-7.34 15.15 0 6.41 2.74 12.07 7.34 15.15 7.11 4.78 19.04 15.16 19.04 31.03v14.93H69.19v-14.93c0-15.87 11.93-26.25 19.04-31.02 4.6-3.09 7.34-8.75 7.34-15.16 0-6.4-2.74-12.07-7.34-15.15-7.11-4.78-19.04-15.16-19.04-31.03V38.89h61.62v14.93z\"/></g></g></svg>";return c},n=function(a,b){a||(a="60px"),b||(b="#32c682");var c="<svg xmlns=\"http://www.w3.org/2000/svg\" width=\""+a+"\" height=\""+a+"\" viewBox=\"25 25 50 50\" style=\"-webkit-animation:rotate 2s linear infinite;animation:rotate 2s linear infinite;height:"+a+";-webkit-transform-origin:center center;-ms-transform-origin:center center;transform-origin:center center;width:"+a+";position:absolute;top:0;left:0;margin:auto\"><style>@-webkit-keyframes rotate{to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes rotate{to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@-webkit-keyframes dash{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:89,200;stroke-dashoffset:-35}to{stroke-dasharray:89,200;stroke-dashoffset:-124}}@keyframes dash{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:89,200;stroke-dashoffset:-35}to{stroke-dasharray:89,200;stroke-dashoffset:-124}}</style><circle cx=\"50\" cy=\"50\" r=\"20\" fill=\"none\" stroke=\""+b+"\" stroke-width=\"2\" style=\"-webkit-animation:dash 1.5s ease-in-out infinite,color 1.5s ease-in-out infinite;animation:dash 1.5s ease-in-out infinite,color 1.5s ease-in-out infinite\" stroke-dasharray=\"150 200\" stroke-dashoffset=\"-10\" stroke-linecap=\"round\"/></svg>";return c},o=function(a,b){a||(a="60px"),b||(b="#32c682");var c="<svg xmlns=\"http://www.w3.org/2000/svg\" fill=\""+b+"\" width=\""+a+"\" height=\""+a+"\" viewBox=\"0 0 128 128\"><g><path fill=\"inherit\" d=\"M109.25 55.5h-36l12-12a29.54 29.54 0 0 0-49.53 12H18.75A46.04 46.04 0 0 1 96.9 31.84l12.35-12.34v36zm-90.5 17h36l-12 12a29.54 29.54 0 0 0 49.53-12h16.97A46.04 46.04 0 0 1 31.1 96.16L18.74 108.5v-36z\"/><animateTransform attributeName=\"transform\" dur=\"1.5s\" from=\"0 64 64\" repeatCount=\"indefinite\" to=\"360 64 64\" type=\"rotate\"/></g></svg>";return c},p=function(a,b){a||(a="60px"),b||(b="#32c682");var c="<svg xmlns=\"http://www.w3.org/2000/svg\" fill=\""+b+"\" width=\""+a+"\" height=\""+a+"\" viewBox=\"0 0 100 100\"><g transform=\"translate(25 50)\"><circle r=\"9\" fill=\"inherit\" transform=\"scale(.239)\"><animateTransform attributeName=\"transform\" begin=\"-0.266s\" calcMode=\"spline\" dur=\"0.8s\" keySplines=\"0.3 0 0.7 1;0.3 0 0.7 1\" keyTimes=\"0;0.5;1\" repeatCount=\"indefinite\" type=\"scale\" values=\"0;1;0\"/></circle></g><g transform=\"translate(50 50)\"><circle r=\"9\" fill=\"inherit\" transform=\"scale(.00152)\"><animateTransform attributeName=\"transform\" begin=\"-0.133s\" calcMode=\"spline\" dur=\"0.8s\" keySplines=\"0.3 0 0.7 1;0.3 0 0.7 1\" keyTimes=\"0;0.5;1\" repeatCount=\"indefinite\" type=\"scale\" values=\"0;1;0\"/></circle></g><g transform=\"translate(75 50)\"><circle r=\"9\" fill=\"inherit\" transform=\"scale(.299)\"><animateTransform attributeName=\"transform\" begin=\"0s\" calcMode=\"spline\" dur=\"0.8s\" keySplines=\"0.3 0 0.7 1;0.3 0 0.7 1\" keyTimes=\"0;0.5;1\" repeatCount=\"indefinite\" type=\"scale\" values=\"0;1;0\"/></circle></g></svg>";return c},q=function(a,b){a||(a="60px"),b||(b="#32c682");var c="<svg xmlns=\"http://www.w3.org/2000/svg\" stroke=\""+b+"\" width=\""+a+"\" height=\""+a+"\" viewBox=\"0 0 44 44\"><g fill=\"none\" fill-rule=\"evenodd\" stroke-width=\"2\"><circle cx=\"22\" cy=\"22\" r=\"1\"><animate attributeName=\"r\" begin=\"0s\" calcMode=\"spline\" dur=\"1.8s\" keySplines=\"0.165, 0.84, 0.44, 1\" keyTimes=\"0; 1\" repeatCount=\"indefinite\" values=\"1; 20\"/><animate attributeName=\"stroke-opacity\" begin=\"0s\" calcMode=\"spline\" dur=\"1.8s\" keySplines=\"0.3, 0.61, 0.355, 1\" keyTimes=\"0; 1\" repeatCount=\"indefinite\" values=\"1; 0\"/></circle><circle cx=\"22\" cy=\"22\" r=\"1\"><animate attributeName=\"r\" begin=\"-0.9s\" calcMode=\"spline\" dur=\"1.8s\" keySplines=\"0.165, 0.84, 0.44, 1\" keyTimes=\"0; 1\" repeatCount=\"indefinite\" values=\"1; 20\"/><animate attributeName=\"stroke-opacity\" begin=\"-0.9s\" calcMode=\"spline\" dur=\"1.8s\" keySplines=\"0.3, 0.61, 0.355, 1\" keyTimes=\"0; 1\" repeatCount=\"indefinite\" values=\"1; 0\"/></circle></g></svg>";return c},r=function(){return"[id^=NotiflixBlockWrap]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-box-sizing:border-box;box-sizing:border-box;position:absolute;z-index:1000;font-family:\"Quicksand\",-apple-system,BlinkMacSystemFont,\"Segoe UI\",Roboto,\"Helvetica Neue\",Arial,sans-serif;background:rgba(255,255,255,.9);text-align:center;animation-duration:.4s;width:100%;height:100%;left:0;top:0;border-radius:inherit;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center}[id^=NotiflixBlockWrap] *{-webkit-box-sizing:border-box;box-sizing:border-box}[id^=NotiflixBlockWrap]>span[class*=\"-icon\"]{display:block;width:45px;height:45px;position:relative;margin:0 auto}[id^=NotiflixBlockWrap]>span[class*=\"-icon\"] svg{width:inherit;height:inherit}[id^=NotiflixBlockWrap]>span[class*=\"-message\"]{position:relative;display:block;width:100%;margin:10px auto 0;padding:0 10px;font-family:inherit!important;font-weight:normal;font-size:14px;line-height:1.4}[id^=NotiflixBlockWrap].nx-with-animation{-webkit-animation:block-animation-fade .3s ease-in-out 0s normal;animation:block-animation-fade .3s ease-in-out 0s normal}@-webkit-keyframes block-animation-fade{0%{opacity:0}100%{opacity:1}}@keyframes block-animation-fade{0%{opacity:0}100%{opacity:1}}[id^=NotiflixBlockWrap].nx-with-animation.nx-remove{opacity:0;-webkit-animation:block-animation-fade-remove .3s ease-in-out 0s normal;animation:block-animation-fade-remove .3s ease-in-out 0s normal}@-webkit-keyframes block-animation-fade-remove{0%{opacity:1}100%{opacity:0}}@keyframes block-animation-fade-remove{0%{opacity:1}100%{opacity:0}}"},s=0,t=function(c,i,r,t,v,w){var x;if(Array.isArray(r)){if(1>r.length)return f("Array of HTMLElements should contains at least one HTMLElement."),!1;x=r}else if(Object.prototype.isPrototypeOf.call(NodeList.prototype,r)){if(1>r.length)return f("NodeListOf<HTMLElement> should contains at least one HTMLElement."),!1;x=Array.prototype.slice.call(r)}else{var y="string"!=typeof r||1>(r||"").length||1===(r||"").length&&("#"===(r||"")[0]||"."===(r||"")[0]);if(y)return f("The selector parameter must be a string and matches a specified CSS selector(s)."),!1;var z=a.document.querySelectorAll(r);if(1>z.length)return f("You called the \"Notiflix.Block...\" function with \""+r+"\" selector, but there is no such element(s) in the document."),!1;x=z}b||u.Block.init({});var A=j(!0,b,{});if("object"==typeof t&&!Array.isArray(t)||"object"==typeof v&&!Array.isArray(v)){var B={};"object"==typeof t?B=t:"object"==typeof v&&(B=v),b=j(!0,b,B)}var C="";"string"==typeof t&&0<t.length&&(C=t),b.cssAnimation||(b.cssAnimationDuration=0);var D=e.className;"string"==typeof b.className&&(D=b.className.trim());var E="number"==typeof b.querySelectorLimit?b.querySelectorLimit:200,F=(x||[]).length>=E?E:x.length,G="nx-block-temporary-position";if(c){for(var H,I=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr","html","head","title","script","style","iframe"],J=0;J<F;J++)if(H=x[J],H){if(-1<I.indexOf(H.tagName.toLocaleLowerCase("en")))break;var K=H.querySelectorAll("[id^="+e.ID+"]");if(1>K.length){var L="";i&&(i===d.Hourglass?L=m(b.svgSize,b.svgColor):i===d.Circle?L=n(b.svgSize,b.svgColor):i===d.Arrows?L=o(b.svgSize,b.svgColor):i===d.Dots?L=p(b.svgSize,b.svgColor):i===d.Pulse?L=q(b.svgSize,b.svgColor):L=l(b.svgSize,b.svgColor));var M="<span class=\""+D+"-icon\" style=\"width:"+b.svgSize+";height:"+b.svgSize+";\">"+L+"</span>",N="";0<C.length&&(C=C.length>b.messageMaxLength?k(C).substring(0,b.messageMaxLength)+"...":k(C),N="<span style=\"font-size:"+b.messageFontSize+";color:"+b.messageColor+";\" class=\""+D+"-message\">"+C+"</span>"),s++;var O=a.document.createElement("div");O.id=e.ID+"-"+s,O.className=D+(b.cssAnimation?" nx-with-animation":""),O.style.position=b.position,O.style.zIndex=b.zindex,O.style.background=b.backgroundColor,O.style.animationDuration=b.cssAnimationDuration+"ms",O.style.fontFamily="\""+b.fontFamily+"\", "+"-apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, \"Noto Sans\", sans-serif",O.style.display="flex",O.style.flexWrap="wrap",O.style.flexDirection="column",O.style.alignItems="center",O.style.justifyContent="center",b.rtl&&(O.setAttribute("dir","rtl"),O.classList.add("nx-rtl-on")),O.innerHTML=M+N;var P=a.getComputedStyle(H).getPropertyValue("position"),Q="string"==typeof P?P.toLocaleLowerCase("en"):"relative",R=Math.round(1.25*parseInt(b.svgSize))+40,S=H.offsetHeight||0,T="";R>S&&(T="min-height:"+R+"px;");var U="";U=H.getAttribute("id")?"#"+H.getAttribute("id"):H.classList[0]?"."+H.classList[0]:(H.tagName||"").toLocaleLowerCase("en");var V="",W=-1>=["absolute","relative","fixed","sticky"].indexOf(Q);if(W||0<T.length){if(!h("head"))return!1;W&&(V="position:relative!important;");var X="<style id=\"Style-"+e.ID+"-"+s+"\">"+U+"."+G+"{"+V+T+"}</style>",Y=a.document.createRange();Y.selectNode(a.document.head);var Z=Y.createContextualFragment(X);a.document.head.appendChild(Z),H.classList.add(G)}H.appendChild(O)}}}else var $=function(c){var d=setTimeout(function(){null!==c.parentNode&&c.parentNode.removeChild(c);var b=c.getAttribute("id"),e=a.document.getElementById("Style-"+b);e&&null!==e.parentNode&&e.parentNode.removeChild(e),clearTimeout(d)},b.cssAnimationDuration)},_=function(a){if(a&&0<a.length)for(var b,c=0;c<a.length;c++)b=a[c],b&&(b.classList.add("nx-remove"),$(b));else"string"==typeof r?g("\"Notiflix.Block.remove();\" function called with \""+r+"\" selector, but this selector does not have a \"Block\" element to remove."):g("\"Notiflix.Block.remove();\" function called with \""+r+"\", but this \"Array<HTMLElement>\" or \"NodeListOf<HTMLElement>\" does not have a \"Block\" element to remove.")},aa=function(a){var c=setTimeout(function(){a.classList.remove(G),clearTimeout(c)},b.cssAnimationDuration+300)},ba=setTimeout(function(){for(var a,b=0;b<F;b++)a=x[b],a&&(aa(a),K=a.querySelectorAll("[id^="+e.ID+"]"),_(K));clearTimeout(ba)},w);b=j(!0,b,A)},u={Block:{init:function(a){b=j(!0,e,a),i(r,"NotiflixBlockInternalCSS")},merge:function(a){return b?void(b=j(!0,b,a)):(f("You have to initialize the \"Notiflix.Block\" module before call Merge function."),!1)},standard:function(a,b,c){t(!0,d.Standard,a,b,c)},hourglass:function(a,b,c){t(!0,d.Hourglass,a,b,c)},circle:function(a,b,c){t(!0,d.Circle,a,b,c)},arrows:function(a,b,c){t(!0,d.Arrows,a,b,c)},dots:function(a,b,c){t(!0,d.Dots,a,b,c)},pulse:function(a,b,c){t(!0,d.Pulse,a,b,c)},remove:function(a,b){"number"!=typeof b&&(b=0),t(!1,null,a,null,null,b)}}};return"object"==typeof a.Notiflix?j(!0,a.Notiflix,{Block:u.Block}):{Block:u.Block}}); |