/*! For license information please see ti.js.LICENSE.txt */ (()=>{var e={14298:e=>{window,e.exports=function(e){var t={};function n(i){if(t[i])return t[i].exports;var s=t[i]={i,l:!1,exports:{}};return e[i].call(s.exports,s,s.exports,n),s.l=!0,s.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var s in e)n.d(i,s,function(t){return e[t]}.bind(null,s));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}([function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return y}));function i(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,i=new Array(t);n0?setTimeout((function(){t.setTransitionCSS(),t.elementContainer.classList.add("simple-parallax-initialized")}),10):this.elementContainer.classList.add("simple-parallax-initialized"),this.isInit=!0))}},{key:"wrapElement",value:function(){var e=this.element.closest("picture")||this.element,t=this.customWrapper||document.createElement("div");t.classList.add("simpleParallax"),t.style.overflow="hidden",this.customWrapper||(e.parentNode.insertBefore(t,e),t.appendChild(e)),this.elementContainer=t}},{key:"unWrapElement",value:function(){var e=this.elementContainer;this.customWrapper?(e.classList.remove("simpleParallax"),e.style.overflow=""):e.replaceWith.apply(e,function(e){return function(e){if(Array.isArray(e))return a(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e.childNodes))}},{key:"setTransformCSS",value:function(){!1===this.settings.overflow&&(this.element.style[r]="scale(".concat(this.settings.scale,")")),this.element.style.willChange="transform"}},{key:"setTransitionCSS",value:function(){this.element.style.transition="transform ".concat(this.settings.delay,"s ").concat(this.settings.transition)}},{key:"unSetStyle",value:function(){this.element.style.willChange="",this.element.style[r]="",this.element.style.transition=""}},{key:"getElementOffset",value:function(){var e=this.elementContainer.getBoundingClientRect();if(this.elementHeight=e.height,this.elementTop=e.top+s.positions.top,this.settings.customContainer){var t=this.settings.customContainer.getBoundingClientRect();this.elementTop=e.top-t.top+s.positions.top}this.elementBottom=this.elementHeight+this.elementTop}},{key:"buildThresholdList",value:function(){for(var e=[],t=1;t<=this.elementHeight;t++){var n=t/this.elementHeight;e.push(n)}return e}},{key:"intersectionObserver",value:function(){var e={root:null,threshold:this.buildThresholdList()};this.observer=new IntersectionObserver(this.intersectionObserverCallback.bind(this),e),this.observer.observe(this.element)}},{key:"intersectionObserverCallback",value:function(e){var t=this;e.forEach((function(e){e.isIntersecting?t.isVisible=!0:t.isVisible=!1}))}},{key:"checkIfVisible",value:function(){return this.elementBottom>s.positions.top&&this.elementTopthis.settings.maxTransition&&(e=this.settings.maxTransition),this.oldPercentage!==e&&(this.rangeMax||this.getRangeMax(),this.translateValue=(e/100*this.rangeMax-this.rangeMax/2).toFixed(0),this.oldTranslateValue!==this.translateValue&&(this.oldPercentage=e,this.oldTranslateValue=this.translateValue,!0))}},{key:"animate",value:function(){var e,t=0,n=0;(this.settings.orientation.includes("left")||this.settings.orientation.includes("right"))&&(n="".concat(this.settings.orientation.includes("left")?-1*this.translateValue:this.translateValue,"px")),(this.settings.orientation.includes("up")||this.settings.orientation.includes("down"))&&(t="".concat(this.settings.orientation.includes("up")?-1*this.translateValue:this.translateValue,"px")),e=!1===this.settings.overflow?"translate3d(".concat(n,", ").concat(t,", 0) scale(").concat(this.settings.scale,")"):"translate3d(".concat(n,", ").concat(t,", 0)"),this.element.style[r]=e}}])&&l(t.prototype,n),e}();function u(e){return function(e){if(Array.isArray(e))return h(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||p(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(e,t){if(e){if("string"==typeof e)return h(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?h(e,t):void 0}}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n{"use strict";e.exports=n.p+"images/cf8cd32effce8f14064b.png"},57100:(e,t,n)=>{"use strict";e.exports=n.p+"images/e7566180fedbca0ab884.png"},72500:(e,t,n)=>{"use strict";e.exports=n.p+"images/de8424720353369deee7.png"},37476:(e,t,n)=>{"use strict";e.exports=n.p+"images/4c951c42399a4da74eb2.png"},44774:(e,t,n)=>{"use strict";e.exports=n.p+"images/890f12fd1d84b35d3027.png"},88128:(e,t,n)=>{"use strict";e.exports=n.p+"images/2ebcbbf6c232bb00f2a6.png"},84906:(e,t,n)=>{"use strict";e.exports=n.p+"images/5bf5ce672a831fe493f0.png"},66120:(e,t,n)=>{"use strict";e.exports=n.p+"images/f4b9fc927a6cbb785fb7.png"},69331:(e,t,n)=>{"use strict";e.exports=n.p+"images/a84c2cd630adcb2fb844.png"},93427:(e,t,n)=>{"use strict";e.exports=n.p+"images/cb601ecb4902055371fa.png"},33298:(e,t,n)=>{"use strict";e.exports=n.p+"images/0615efa9ac4d4acf62b9.png"},82916:(e,t,n)=>{"use strict";e.exports=n.p+"images/5a9b103dc314a4c73396.png"},92517:(e,t,n)=>{"use strict";e.exports=n.p+"images/4cd0bf4f6c3826be20e9.png"},94701:(e,t,n)=>{"use strict";e.exports=n.p+"images/ca96080890acb13f1452.png"},66735:(e,t,n)=>{"use strict";e.exports=n.p+"images/b46f607e557fa86ce5de.png"}},t={};function n(i){var s=t[i];if(void 0!==s)return s.exports;var o=t[i]={exports:{}};return e[i](o,o.exports,n),o.exports}n.m=e,n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.p="/",n.b=document.baseURI||self.location.href,(()=>{"use strict";var e=n(14298),t=n.n(e);new URL(n(66735),n.b),new URL(n(92517),n.b),new URL(n(94701),n.b),new URL(n(11535),n.b),new URL(n(57100),n.b),new URL(n(72500),n.b),new URL(n(37476),n.b),new URL(n(44774),n.b),new URL(n(88128),n.b),new URL(n(84906),n.b),new URL(n(66120),n.b),new URL(n(69331),n.b),new URL(n(93427),n.b),new URL(n(33298),n.b),new URL(n(82916),n.b);const i=new class extends class{constructor(e){this._modal=document.querySelector(e),this._handleEscButton=e=>{"Escape"===e.key&&this.close()},this._handleOverlayClick=e=>{e.target.classList.contains("popup_opened")&&this.close()}}open(){document.querySelector("body").classList.add("body-fixed"),this._modal.classList.add("popup_opened"),document.addEventListener("keydown",this._handleEscButton),this._modal.addEventListener("mousedown",this._handleOverlayClick)}close(){this._modal.classList.remove("popup_opened"),document.removeEventListener("keydown",this._handleEscButton),this._modal.removeEventListener("mousedown",this._handleOverlayClick),document.querySelector("body").classList.remove("body-fixed")}setEventListeners(){this._modal.querySelector(".popup__button-close").addEventListener("mousedown",(()=>{this.close()}))}}{constructor({popupImageSelector:e,popupImageDescSelector:t},n){super(n),this._popupImage=this._modal.querySelector(e),this._popupImageDesc=this._modal.querySelector(t)}open(e){this._popupImage.src=e.link,this._popupImage.alt=e.name,this._popupImageDesc.textContent=e.name,super.open()}close(){setTimeout((()=>{this._popupImage.src=""}),500),this._popupImage.alt="",super.close()}}({popupImageSelector:".popup__image",popupImageDescSelector:".popup__image-description"},".popup-viewport"),s=document.querySelector(".khan__book-pic_page_heatex");document.querySelector(".khan__buy-link").addEventListener("mousedown",(()=>{i.open({link:s.src,name:s.alt})})),i.setEventListeners(),new(t())(s,{delay:.6,transition:"cubic-bezier(0,0,0,1)"});const o=window.location.pathname;console.log(o)})()})();