!function e(t,n,l){function i(r,a){if(!n[r]){if(!t[r]){var s="function"==typeof require&&require;if(!a&&s)return s(r,!0);if(o)return o(r,!0);var c=new Error("Cannot find module '"+r+"'");throw c.code="MODULE_NOT_FOUND",c}var d=n[r]={exports:{}};t[r][0].call(d.exports,(function(e){return i(t[r][1][e]||e)}),d,d.exports,e,t,n,l)}return n[r].exports}for(var o="function"==typeof require&&require,r=0;r<l.length;r++)i(l[r]);return i}({1:[function(e,t,n){var l="complete",i="canceled";function o(e,t,n){e.self===e?e.scrollTo(t,n):(e.scrollLeft=t,e.scrollTop=n)}function r(e){var t=e._scrollSettings;if(t){var n=t.maxSynchronousAlignments,i=function(e,t){var n,l,i,o,r,a,s,c=e.align,d=e.target.getBoundingClientRect(),u=c&&null!=c.left?c.left:.5,f=c&&null!=c.top?c.top:.5,m=c&&null!=c.leftOffset?c.leftOffset:0,p=c&&null!=c.topOffset?c.topOffset:0,g=u,y=f;if(e.isWindow(t))a=Math.min(d.width,t.innerWidth),s=Math.min(d.height,t.innerHeight),l=d.left+t.pageXOffset-t.innerWidth*g+a*g,i=d.top+t.pageYOffset-t.innerHeight*y+s*y,i-=p,o=(l-=m)-t.pageXOffset,r=i-t.pageYOffset;else{a=d.width,s=d.height,n=t.getBoundingClientRect();var h=d.left-(n.left-t.scrollLeft),E=d.top-(n.top-t.scrollTop);l=h+a*g-t.clientWidth*g,i=E+s*y-t.clientHeight*y,l-=m,i-=p,l=Math.max(Math.min(l,t.scrollWidth-t.clientWidth),0),i=Math.max(Math.min(i,t.scrollHeight-t.clientHeight),0),o=l-t.scrollLeft,r=i-t.scrollTop}return{x:l,y:i,differenceX:o,differenceY:r}}(t,e),a=Date.now()-t.startTime,s=Math.min(1/t.time*a,1);if(t.endIterations>=n)return o(e,i.x,i.y),e._scrollSettings=null,t.end(l);var c=1-t.ease(s);if(o(e,i.x-i.differenceX*c,i.y-i.differenceY*c),a>=t.time)return t.endIterations++,r(e);!function(e){if("requestAnimationFrame"in window)return window.requestAnimationFrame(e);setTimeout(e,16)}(r.bind(null,e))}}function a(e){return e.self===e}function s(e,t,n,l){var o,s=!t._scrollSettings,c=t._scrollSettings,d=Date.now(),u={passive:!0};function f(e){t._scrollSettings=null,t.parentElement&&t.parentElement._scrollSettings&&t.parentElement._scrollSettings.end(e),n.debug,l(e),o&&(t.removeEventListener("touchstart",o,u),t.removeEventListener("wheel",o,u))}c&&c.end(i);var m=n.maxSynchronousAlignments;return null==m&&(m=3),t._scrollSettings={startTime:d,endIterations:0,target:e,time:n.time,ease:n.ease,align:n.align,isWindow:n.isWindow||a,maxSynchronousAlignments:m,end:f},"cancellable"in n&&!n.cancellable||(o=f.bind(null,i),t.addEventListener("touchstart",o,u),t.addEventListener("wheel",o,u)),s&&r(t),o}function c(e){return"pageXOffset"in e||(e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth)&&"hidden"!==getComputedStyle(e).overflow}function d(){return!0}function u(e){if(e.assignedSlot)return u(e.assignedSlot);if(e.parentElement)return"BODY"===e.parentElement.tagName?e.parentElement.ownerDocument.defaultView||e.parentElement.ownerDocument.ownerWindow:e.parentElement;if(e.getRootNode){var t=e.getRootNode();if(11===t.nodeType)return t.host}}t.exports=function(e,t,n){if(e){"function"==typeof t&&(n=t,t=null),t||(t={}),t.time=isNaN(t.time)?1e3:t.time,t.ease=t.ease||function(e){return 1-Math.pow(1-e,e/2)};var i,o=u(e),r=1,a=t.validTarget||d,f=t.isScrollable;for(t.debug;o;)if(t.debug,a(o,r)&&(f?f(o,c):c(o))&&(r++,i=s(e,o,t,m)),!(o=u(o))){m(l);break}return i}function m(e){--r||n&&n(e)}}},{}],2:[function(e,t,n){window.scrollIntoView=e("./scrollIntoView")},{"./scrollIntoView":1}]},{},[2]),window.addEventListener("load",(function(){let e=document.getElementById("tkna_preloader"),t=document.getElementById("tablero"),n=e.getAttribute("data-nametarot"),l=e.getAttribute("data-n"),i=document.getElementById("text_spread"),o=0,r=0,a=document.getElementsByClassName("molde"),s=Array.from(a),c=document.getElementsByClassName("cardImg");document.getElementsByClassName("card_click");if(l>3){let e=atob(ajax_tarot.myCard),t=document.createElement("div");t.innerHTML=e;let n=document.getElementById("subTitle");ajax_tarot.wp_content!=atob("dmFsaWQ=")&&n.appendChild(t)}let d=document.getElementById("tablero").getAttribute("data-orden").split(","),u=[],f=document.getElementsByClassName("opT"),m=[],p=[];d.forEach((e=>{u.push(parseFloat(e))})),s.forEach((function(a){let s=document.getElementById("molde"+u[o]).getAttribute("data-id");m.push(s);let d=c[o].getAttribute("id"),g=document.getElementById("blogPic"+u[o]),y=document.getElementById("pic"+u[o]).getAttribute("data-flip");p.push(y),"flip1"==y&&g.classList.add("flip1"),a.addEventListener("click",(function(o){o.preventDefault(),r+=1,a.removeAttribute("style"),a.classList.add("cc"),r<=l&&anime({targets:"#"+d,delay:600,update:function(){document.getElementById(d).classList.add("rotate"),document.getElementById(d).classList.add("flash")}});r==l&&setTimeout((()=>{scrollIntoView(e,{time:500,align:{top:0,topOffset:30}}),f[0].style.opacity=.2,f[1].style.opacity=.2,t.style.opacity=.2,i.style.display="none",document.getElementById("loader_tkna-wrapper").style.display="block",setTimeout((()=>{f[0].style.opacity=1,f[1].style.opacity=1,t.style.opacity=1,i.style.display="none",document.getElementById("loader_tkna-wrapper").style.display="none",document.getElementById("cont_result").style.display="block",jQuery(document).ready((function(e){jQuery.ajax({type:"post",url:ajax_tarot.url,data:"action="+ajax_tarot.action+"&nonce="+ajax_tarot.nonce+"&cards="+m+"&nametarot="+n+"&flip="+p,success:function(t){e("#results").html(t)}})}))}),3300)}),3300)})),o++})),t.style.opacity=1}));