!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.hmr=t():e.hmr=t()}(window,(function(){return function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:r})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var o in e)t.d(r,o,function(t){return e[t]}.bind(null,o));return r},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=22)}([function(e,t,n){"use strict";function r(){t.findElement("active-complete").classList.remove("visible"),t.findElement("inactive-complete").classList.add("visible")}function o(){t.findElement("active-complete").classList.add("visible"),t.findElement("inactive-complete").classList.remove("visible")}var i=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),c=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||t.hasOwnProperty(n)||i(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.getQueryParam=t.moveCursorToEnd=t.watch=t.EnableCheckoutButton=t.DisableCheckoutButton=t.showConsentButton=t.showPaymentType=t.showStepBasedElements=t.showUserBasedElements=t.queryElements=t.queryElement=t.findElement=t.cloneNode=t.getHash=t.Id=t.ShortId=void 0;var u=n(1);c(n(12),t),c(n(39),t),c(n(40),t),t.ShortId=function(){return Math.random().toString(36).substring(2,15)},t.Id=function(){return t.ShortId()+t.ShortId()},t.getHash=function(e){for(var t=JSON.stringify(e),n=0,r=0;rc[0]&&n[1]c[0]&&n[1]i?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(e,t,n,r);else for(var u=e.length-1;0<=u;u--)(o=e[u])&&(c=(3>i?o(c):3c[0]&&n[1]c[0]&&n[1]=e.Amount&&(r=!0),e.Price=o(e,0),e.PriceFloat=f.sumCartItem(e))})),r?e.removeProduct(t,n):l.storeData(m,JSON.parse(JSON.stringify(t)))},e.removeProduct=function(e,t){var n=e.filter((function(e){return e.Id!=t}));return r(t,"remove"),l.storeData(m,JSON.parse(JSON.stringify(n)))},e.addOneItem=function(e,t){return e.forEach((function(e){e.Id==t&&(e.Amount+=1,e.Price=o(e,0),e.PriceFloat=f.sumCartItem(e))})),l.storeData(m,JSON.parse(JSON.stringify(e)))},e.prototype.Render=function(){return u(this,void 0,void 0,(function(){return a(this,(function(){return this.coupon=l.getData(y),this._items=this.items.map((function(e){return e.Price=o(e,0),e.PriceFloat=f.sumCartItem(e),e})),this.renderOverviews(),this.renderCart(),[2]}))}))},e.prototype.renderCart=function(){f.render("cart-items",this._items.map((function(e){var t=e.Prices.usd;return 0c[0]&&n[1]=this.imgs.length&&(this.i=0),this.Replace()},e.prototype.Previous=function(){this.i--,0>this.i&&(this.i=this.imgs.length-1),this.Replace()},e.prototype.Replace=function(){this.t.setAttribute("src",this.imgs[this.i].getAttribute("data-showcase-src"))},e}();t.Gallery=n},function(e,t,n){e.exports=n(23)},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||t.hasOwnProperty(n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(24),t),o(n(25),t)},function(e,t,n){"use strict";n.r(t),t.default=n.p+"css/styles.min.css"},function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||t.hasOwnProperty(n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0});var i=n(8),c=n(41),u=n(4),a=n(1),s=n(20),l=n(6),f=n(3);n(43);var d=n(11),h=n(46),p=n(2);o(n(11),t),o(n(8),t),o(n(1),t),o(n(6),t),o(n(3),t),o(n(20),t),o(n(0),t),o(n(9),t),o(n(2),t),i.registerListener(window,"scroll",(function(e){d.scrollHeader(e),c.loadImageSource()})),i.registerListener(window,"resize",c.loadImageSource),i.registerListener(window,"ready",c.loadImageSource),i.registerListener(window,"load",(function(e){c.loadImageSource(),d.activateScrollHeader(e)})),i.registerListener(window,"DOMContentLoaded",(function(){return"undefined"==typeof magicToken?(l.accountService.Init(),f.modalService.Init(),a.shopService.Init(),void s.galleryService.Init()):(p.storeData("token",{Token:magicToken}),void(window.location.href=magicTargetUrl))})),u.listenOnFormSubmit("#subscription-form",u.defaultFormHandler)(),u.listenOnFormSubmit("#subscription-form-onpage",u.defaultFormHandler)(),l.LoginModal.attachLoginForm("#login-form"),l.RegisterModal.attachRegisterForm("#register-form"),l.ForgotPasswordModal.attachForgotPasswordForm("#forgot-password-form"),h.MagicLinkForm.attachLoginForm("#magic-link-form"),i.registerListener(window,"DOMContentLoaded",(function(){"undefined"!=typeof completedPurchase&&i.trackingService.Purchase(completedPurchase)})),i.attachListeners()},function(e,t,n){"use strict";function r(){return a.shopService.currency.selector().toUpperCase()}function o(){var e=a.shopService.cart.items;return{value:e.reduce((function(e,t){return e+u.sumCartItem(t)}),0),currency:r(),items:e.map((function(e){return i(e)}))}}function i(e){var t=u.sumCartItem(e);return function(e,t,n,r){return void 0===n&&(n=""),void 0===r&&(r=0),{id:e.toString(),brand:"HMR",category:n,quantity:1,name:t,price:r}}(e.Id,e.Name,function(e){return 4>e?"Printable PDF":"Paid Pattern"}(t),t)}var c=this&&this.__assign||function(){return(c=Object.assign||function(e){for(var t,n=1,r=arguments.length;nc[0]&&n[1]d.status)if(u)s(d.getResponseHeader("x-region"));else{var e=JSON.parse(d.response);r&&i.storeData(a,e),s(e)}else l({status:d.status,statusText:d.statusText})},d.onerror=function(){l({status:d.status,statusText:d.statusText})},n?c.authorize(c.localize(d),o).send(JSON.stringify(n)):c.authorize(c.localize(d),o).send()}))},e}();t.Http=u},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.States=void 0,function(e){e.Error="Error",e.Success="Success",e.Processing="Processing"}(t.States||(t.States={}))},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.snackbarService=void 0;var r=n(0),o=function(){function e(){this.items={}}return e.prototype.addSnackbar=function(e,t,n){var o=this;void 0===t&&(t=function(){return null}),void 0===n&&(n=4e3),this.removeAllSnackbars();var c=new i(r.Id(),e,t);this.items[c.Id()]={timer:setTimeout((function(){return o.removeSnackbar(c.Id())}),n),item:c},r.findElement("snackbars").appendChild(c.Render())},e.prototype.removeSnackbar=function(e){clearInterval(this.items[e].timer),this.items[e].item.Dismiss((function(){return r.findElement(e).remove()})),delete this.items[e]},e.prototype.removeAllSnackbars=function(){for(var e in this.items)this.removeSnackbar(e)},e}();t.snackbarService=new o;var i=function(){function e(e,t,n){void 0===n&&(n=function(){return null}),this.id=e,this.msg=t,this.callback=n}return e.prototype.Id=function(){return this.id},e.prototype.Render=function(){var e=this,n=document.createElement("div");return n.classList.add("snackbar"),n.id=this.Id(),n.innerHTML=""+this.msg,n.onclick=function(){e.callback(),t.snackbarService.removeSnackbar(e.Id())},this.timer=setTimeout((function(){return n.classList.add("visible")}),100),n},e.prototype.Dismiss=function(e){r.findElement(this.Id()).onclick=function(){},r.findElement(this.Id()).classList.add("fade-out"),clearTimeout(this.timer),setTimeout((function(){return e()}),500)},e}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.modalService=t.ModalService=void 0;var r=n(11),o=function(){function e(){this.m=null}return e.prototype.Init=function(){},e.prototype.SetModal=function(e){this.m&&this.m.Destroy(),r.closeMenu(),this.m=e()},e.prototype.Close=function(){this.m&&this.m.Destroy(),this.m=null},e}();t.ModalService=o,t.modalService=new o},function(e,t,n){"use strict";function r(){var e=o.queryElements("body");return e.length?e[0].classList:null}Object.defineProperty(t,"__esModule",{value:!0}),t.closeMenu=t.openMenu=void 0;var o=n(0),i="menu-open";t.openMenu=function(){r().add(i)},t.closeMenu=function(){r().remove(i)}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.activateScrollHeader=t.scrollHeader=void 0;var n=768,r=!1,o=document.querySelector("header");o.addEventListener("transitionend",(function(){return o.classList.remove("header--animatable")})),t.scrollHeader=function(e){window.innerWidth>n&&r&&(150").concat(e,"")},v=function(e,t,r){var i=document.createDocumentFragment();t.forEach((function(e,c){var u=document.createElement(r.element),a=t[c].index;u.setAttribute(n,a),u.setAttribute("class",o),r.content?r.content(e,u):u.innerHTML=e.match||e,i.appendChild(u)})),e.appendChild(i)},m=function(e,t,n,r){var o,i=t.childNodes,l=i.length-1,d=void 0,h=function(e){d.classList.remove(c),o=1===e?d.nextSibling:d.previousSibling},p=function(e){(d=e).classList.add(c)};e.onkeydown=function(c){if(0e.threshold&&o.replace(/ /g,"").length,u=function(e,n){t.dispatchEvent(new b.CustomEventWrapper("autoComplete",{bubbles:!0,detail:{event:e,input:r,query:o,matches:n?n.matches:null,results:n?n.list:null},cancelable:!0}))};if(i){var a=e.resultsList.view;y(a),c?e.listMatchedResults(e.dataStream,n).then((function(r){u(n,r),e.resultsList.render&&(0===r.list.length&&e.noResults?e.noResults():(v(a,r.list,e.resultItem),e.onSelection&&(e.resultsList.navigation?e.resultsList.navigation(n,t,a,e.onSelection,r):m(t,a,e.onSelection,r))))})):u(n)}else!i&&c&&e.listMatchedResults(e.dataStream,n).then((function(e){u(n,e)}))},r=function(t){Promise.resolve(e.data.cache?e.dataStream:e.data.src()).then((function(r){e.dataStream=r,n(t)}))};this.trigger.event.forEach((function(n){t.addEventListener(n,function(e,t){var n;return function(){var r=this,o=arguments;clearTimeout(n),n=setTimeout((function(){return e.apply(r,o)}),t)}}((function(e){return r(e)}),e.debounce))}))}},{key:"init",value:function(){var e=this;this.data.cache?Promise.resolve(this.data.src()).then((function(t){e.dataStream=t,e.ignite()})):this.ignite(),b.initElementClosestPolyfill()}}]),e}()}()},function(e,t,n){"use strict";function r(e){return i.findElement(e+"-template")}function o(e,t){var n=t.map((function(t){return[t,e]}));return(e.match(/:(\w*):/gm)||[]).forEach((function(e){var t=e.replace(/:/g,"");n=n.map((function(n){var r=n[0];return[r,n[1].replace(e,r[t]).replace("tpl-","")]}))})),n}Object.defineProperty(t,"__esModule",{value:!0}),t.parseTemplate=t.render=t.getTemplateElement=t.CacheMap=void 0;var i=n(0);t.CacheMap=new Map,t.getTemplateElement=r,t.render=function(e,n,c,u){void 0===c&&(c=function(){return!0}),void 0===u&&(u=null);var a=u||"#"+e,s=i.queryElement(a),l=[];if(!s)return[];if(0===n.length)return(t.CacheMap.get(a)||[]).forEach((function(e){0>l.indexOf(e)&&(t.CacheMap.delete(e),i.findElement(e).remove())})),s.classList.add("empty"),t.CacheMap.delete(a),[];var f=r(e),d=i.cloneNode(f);d.innerHTML=null,d.attributes.removeNamedItem("template");var h=[];d.classList.forEach((function(e){return h.push(e)})),s.append.apply(s,o(f.innerHTML,n).map((function(e){var n,r=e[0],o=e[1],u=a+":"+(r.Id||i.ShortId()).toString();l.push(u);var f=t.CacheMap.get(u),p=!1,v=!1;if(void 0===f?p=!0:v=c(f,r),p||v){var m=i.cloneNode(d);return m.insertAdjacentHTML("beforeend",o),m.id=u,m.setAttribute("value",u),(n=m.classList).add.apply(n,h),p||null==i.findElement(u)?p=!0:s.replaceChild(m,i.findElement(u)),t.CacheMap.set(u,JSON.parse(JSON.stringify(r))),[m,p]}return[null,!1]})).filter((function(e){e[0];return e[1]})).map((function(e){var t=e[0];e[1];return t})));var p=t.CacheMap.get(a);return void 0!==p&&p.forEach((function(e){0>l.indexOf(e)&&(t.CacheMap.delete(e),i.findElement(e).remove())})),t.CacheMap.set(a,JSON.parse(JSON.stringify(l))),l},t.parseTemplate=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.otherPaymentMethods=t.preferredPaymentMethod=t.findPaymentMethod=t.findCountryLabel=t.patchPaymentType=t.patchCheckoutProfile=t.patchConsent=t.sumCartItem=void 0;var r=n(2),o=n(12),i=n(1),c=n(15),u=n(6);t.sumCartItem=function(e){var t=[];null!==u.accountService.GetAccountData()&&(t=u.accountService.GetAccountData().Products);var n=c.Cart.GetApplicablePrice(e.combinesWith,{EUR:e.Prices.eur,USD:e.Prices.usd},t.concat(i.shopService.cart.items.map((function(e){return parseInt(e.Id)}))));return e.Amount*n[i.shopService.currency.selector().toUpperCase()]},t.patchConsent=function(e){var t=r.getData("checkout");return t.Consent=e,r.storeData("checkout",t)},t.patchCheckoutProfile=function(e,t){var n=r.getData("checkout")||{Step:1,CheckoutProfile:{},Payments:{},Consent:!1};return n.Step=e,n.CheckoutProfile=t,r.storeData("checkout",n)},t.patchPaymentType=function(e,t,n){var o=r.getData("checkout")||{Step:2,CheckoutProfile:{},Payments:{},Consent:!1};return(void 0===o.Payments||null===o.Payments)&&(o.Payments={}),o.Payments.Type=e,o.Payments.Method=t,o.Payments.Issuer=n,r.storeData("checkout",o)},t.findCountryLabel=function(e,t){var n=e.find((function(e){return e.Id==t}));return n?n.Name:""},t.findPaymentMethod=function(e,t){return e.find((function(e){return e.Id==t}))},t.preferredPaymentMethod=function(e,t){return e.find((function(e){return"hmr_nl"==o.site()&&"EUR"==t?"ideal"==e.Id:"paypal"==e.Id}))},t.otherPaymentMethods=function(e,t){return e.filter((function(e){return"hmr_nl"==o.site()&&"EUR"==t?"ideal"!==e.Id:"paypal"!==e.Id}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.loadImageSource=void 0;var r=n(0);t.loadImageSource=function(){for(var e=r.queryElements("*[data-src]"),t=0;t=this._keys.length?(this._index=-1,this._keys=o,this._values=o):this._index++,{value:t,done:!1}}return{value:void 0,done:!0}},e.prototype.throw=function(e){throw 0<=this._index&&(this._index=-1,this._keys=o,this._values=o),e},e.prototype.return=function(e){return 0<=this._index&&(this._index=-1,this._keys=o,this._values=o),{value:e,done:!0}},e}();return function(){function o(){this._keys=[],this._values=[],this._cacheKey=r,this._cacheIndex=-2}return Object.defineProperty(o.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),o.prototype.has=function(e){return 0<=this._find(e,!1)},o.prototype.get=function(e){var t=this._find(e,!1);return 0<=t?this._values[t]:void 0},o.prototype.set=function(e,t){var n=this._find(e,!0);return this._values[n]=t,this},o.prototype.delete=function(e){var t=this._find(e,!1);if(0<=t){for(var n=this._keys.length,o=t+1;othis._cacheIndex&&t&&(this._cacheIndex=this._keys.length,this._keys.push(e),this._values.push(void 0)),this._cacheIndex},o}()}():Map,L=x||"function"!=typeof Set||"function"!=typeof Set.prototype.entries?function(){function e(){this._map=new I}return Object.defineProperty(e.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),e.prototype.has=function(e){return this._map.has(e)},e.prototype.add=function(e){return this._map.set(e,e),this},e.prototype.delete=function(e){return this._map.delete(e)},e.prototype.clear=function(){this._map.clear()},e.prototype.keys=function(){return this._map.keys()},e.prototype.values=function(){return this._map.values()},e.prototype.entries=function(){return this._map.entries()},e.prototype["@@iterator"]=function(){return this.keys()},e.prototype[k]=function(){return this.keys()},e}():Set,j=new(x||"function"!=typeof WeakMap?function(){function e(){var e;do{e="@@WeakMap@@"+o()}while(T.has(c,e));return c[e]=!0,e}function t(e,t){if(!S.call(e,u)){if(!t)return;Object.defineProperty(e,u,{value:T.create()})}return e[u]}function n(e,t){for(var n=0;n(t=e[o])&&(n+="0"),n+=t.toString(16).toLowerCase();return n}var i=16,c=T.create(),u=e();return function(){function n(){this._key=e()}return n.prototype.has=function(e){var n=t(e,!1);return void 0!==n&&T.has(n,this._key)},n.prototype.get=function(e){var n=t(e,!1);return void 0===n?void 0:T.get(n,this._key)},n.prototype.set=function(e,n){return t(e,!0)[this._key]=n,this},n.prototype.delete=function(e){var n=t(e,!1);return void 0!==n&&delete n[this._key]},n.prototype.clear=function(){this._key=e()},n}()}():WeakMap);t("decorate",(function(e,t,n,r){if(!a(n)){if(!h(e))throw new TypeError;if(!l(t))throw new TypeError;if(!l(r)&&!a(r)&&!s(r))throw new TypeError;return s(r)&&(r=void 0),function(e,t,n,r){for(var o=e.length-1;0<=o;--o){var i=(0,e[o])(t,n,r);if(!a(i)&&!s(i)){if(!l(i))throw new TypeError;r=i}}return r}(e,t,n=d(n),r)}if(!h(e))throw new TypeError;if(!v(t))throw new TypeError;return function(e,t){for(var n=e.length-1;0<=n;--n){var r=(0,e[n])(t);if(!a(r)&&!s(r)){if(!v(r))throw new TypeError;t=r}}return t}(e,t)})),t("metadata",(function(e,t){return function(n,r){if(!l(n))throw new TypeError;if(!a(r)&&!function(e){switch(u(e)){case 3:case 4:return!0;default:return!1}}(r))throw new TypeError;i(e,t,n,r)}})),t("defineMetadata",(function(e,t,n,r){if(!l(n))throw new TypeError;return a(r)||(r=d(r)),i(e,t,n,r)})),t("hasMetadata",(function(e,t,n){if(!l(t))throw new TypeError;return a(n)||(n=d(n)),function e(t,n,o){if(r(t,n,o))return!0;var i=_(n);return!s(i)&&e(t,i,o)}(e,t,n)})),t("hasOwnMetadata",(function(e,t,n){if(!l(t))throw new TypeError;return a(n)||(n=d(n)),r(e,t,n)})),t("getMetadata",(function(e,t,n){if(!l(t))throw new TypeError;return a(n)||(n=d(n)),function e(t,n,i){if(r(t,n,i))return o(t,n,i);var c=_(n);return s(c)?void 0:e(t,c,i)}(e,t,n)})),t("getOwnMetadata",(function(e,t,n){if(!l(t))throw new TypeError;return a(n)||(n=d(n)),o(e,t,n)})),t("getMetadataKeys",(function(e,t){if(!l(e))throw new TypeError;return a(t)||(t=d(t)),function e(t,n){var r=c(t,n),o=_(t);if(null===o)return r;var i=e(o,n);if(0>=i.length)return r;if(0>=r.length)return i;for(var u=new L,a=[],s=0,l=r;s