(window.webpackJsonp=window.webpackJsonp||[]).push([[35],{1246:function(t,e,n){"use strict";n.r(e);n(310),n(312),n(313),n(314),n(315),n(316),n(317),n(318),n(319),n(320),n(321),n(322),n(323),n(324),n(325),n(326),n(327),n(328),n(329),n(330),n(331),n(332),n(333),n(334),n(335),n(336),n(337),n(303),n(338),n(339),n(340),n(341),n(342),n(343),n(344),n(345),n(346),n(347),n(348),n(349),n(350),n(351),n(352),n(353),n(354),n(355),n(356),n(304),n(357),n(358),n(359),n(360),n(361),n(362),n(363),n(364),n(365),n(366),n(367),n(368),n(369),n(370),n(371),n(372),n(373),n(374),n(375),n(376),n(377),n(378),n(379),n(380),n(381),n(382),n(383),n(384),n(385),n(386),n(387),n(388),n(389),n(390),n(391),n(392),n(393),n(394),n(395),n(396),n(397),n(398),n(399),n(400),n(401),n(402),n(403),n(404),n(405),n(406),n(407),n(408),n(409),n(410),n(411),n(412),n(413),n(414),n(415),n(416),n(417),n(418),n(419),n(420),n(421),n(422),n(423),n(306),n(424),n(425),n(307),n(426),n(427),n(428),n(429),n(308),n(430),n(431),n(432),n(433),n(434),n(435),n(436),n(437),n(438),n(439),n(440),n(441),n(442),n(443),n(444),n(445),n(446),n(447),n(448),n(449),n(450),n(451),n(452),n(453),n(454),n(455),n(456),n(457),n(458),n(459),n(460),n(461),n(462),n(463),n(464),n(465),n(466),n(467),n(468),n(469),n(470),n(471),n(472),n(473),n(474),n(475),n(476),n(477),n(478),n(479),n(480),n(481),n(482),n(483),n(484),n(485),n(486),n(487),n(488),n(305),n(489),n(490),n(491),n(492),n(493),n(494),n(495),n(496),n(497),n(498),n(499),n(500),n(501),n(502),n(503),n(504),n(505),n(506),n(507),n(508),n(509),n(510),n(511),n(512),n(513),n(514),n(515),n(516),n(517),n(518),n(519),n(520),n(521),n(522),n(523),n(524),n(525),n(526),n(527),n(528),n(529),n(530),n(531),n(532),n(533),n(534),n(535),n(536),n(537),n(538),n(539),n(540),n(541),n(542),n(543),n(544),n(545),n(546),n(547),n(548),n(549),n(550),n(551),n(552),n(553),n(554),n(555),n(556),n(557),n(558),n(559),n(560),n(561),n(562),n(563),n(564),n(565),n(566),n(567),n(568),n(569),n(570),n(571),n(572),n(573),n(574),n(575),n(576),n(577),n(309),n(31),n(33),n(34),n(35),n(36),n(37),n(38),n(39),n(40),n(41),n(42),n(43),n(44),n(45),n(46),n(47),n(48),n(49),n(50),n(51),n(52),n(53),n(54),n(55),n(56),n(57),n(58),n(21),n(59),n(60),n(61),n(62),n(63),n(64),n(65),n(66),n(67),n(68),n(69),n(70),n(71),n(72),n(73),n(74),n(75),n(76),n(77),n(24),n(78),n(79),n(80),n(81),n(82),n(83),n(84),n(85),n(86),n(87),n(88),n(89),n(90),n(91),n(92),n(93),n(94),n(95),n(96),n(97),n(98),n(99),n(100),n(101),n(102),n(103),n(104),n(105),n(106),n(107),n(108),n(109),n(110),n(111),n(112),n(113),n(114),n(115),n(116),n(117),n(118),n(119),n(120),n(121),n(122),n(123),n(124),n(125),n(126),n(127),n(128),n(129),n(130),n(131),n(132),n(133),n(134),n(135),n(136),n(137),n(138),n(139),n(140),n(141),n(142),n(143),n(144),n(28),n(145),n(146),n(147),n(148),n(149),n(29),n(150),n(30),n(151),n(152),n(153),n(154),n(155),n(156),n(157),n(158),n(159),n(160),n(161),n(162),n(163),n(164),n(165),n(166),n(167),n(168),n(169),n(170),n(171),n(172),n(173),n(174),n(175),n(176),n(177),n(178),n(179),n(180),n(181),n(182),n(183),n(184),n(185),n(186),n(187),n(188),n(189),n(190),n(191),n(192),n(193),n(194),n(195),n(196),n(197),n(198),n(199),n(200),n(201),n(202),n(203),n(204),n(205),n(206),n(207),n(208),n(209),n(25),n(210),n(211),n(212),n(213),n(214),n(215),n(216),n(217),n(218),n(219),n(220),n(221),n(222),n(223),n(224),n(225),n(226),n(227),n(228),n(229),n(230),n(231),n(232),n(233),n(234),n(235),n(236),n(237),n(238),n(239),n(240),n(241),n(242),n(243),n(244),n(245),n(246),n(247),n(248),n(249),n(250),n(251),n(252),n(253),n(254),n(255),n(256),n(257),n(258),n(259),n(260),n(261),n(262),n(263),n(264),n(265),n(266),n(267),n(268),n(269),n(270),n(271),n(272),n(273),n(274),n(275),n(276),n(277),n(278),n(279),n(280),n(281),n(282),n(283),n(284),n(285),n(286),n(287),n(288),n(289),n(290),n(291),n(292),n(293),n(294),n(295),n(296),n(297),n(298),n(299);function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){return(i=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function o(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=c(t);if(e){var i=c(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return a(this,n)}}function a(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function c(t){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var s=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&i(t,e)}(n,t);var e=o(n);function n(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),e.call(this,"storefront")}return n}(n(6).default);function l(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function u(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?l(Object(n),!0).forEach((function(e){f(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function f(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function h(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function p(t,e){var n={value:t.value};return t.label&&(n.label=e(t.label)),t.customClass&&(n.customClass=t.customClass),n}function v(t,e,n,r){return(t-e)*n+r}var d=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.config=function(t){var e,n,r,i,o=t.points,a=null!==(e=null===(n=t.angleLimitation)||void 0===n?void 0:n.min)&&void 0!==e?e:10,c=null!==(r=null===(i=t.angleLimitation)||void 0===i?void 0:i.max)&&void 0!==r?r:350,s=function(t){var e={min:null,max:null};for(var n in t){var r=t[n];null===e.min?e={min:r.value,max:r.value}:e.min>r.value?e.min=r.value:e.max<r.value&&(e.max=r.value)}return e}(o),l=function(t,e,n){var r=t-e,i=n.max-n.min;return r/i}(c,a,s);for(var u in o){var f=o[u];f.value=v(f.value,s.min,l,a)}return t}(e),this.cache={pointsConfigs:new Map}}var e,n,r;return e=t,(n=[{key:"getConfig",value:function(t){var e={radius:this.config.radius,arcs:this.config.arcs};return this.config.customClass&&(e.customClass=this.config.customClass),this.config.points&&(e.points=this.getPointsConfig(t)),e}},{key:"getPointsConfig",value:function(t){if(this.cache.pointsConfigs.has(t))return u({},this.cache.pointsConfigs.get(t));var e={};for(var n in this.config.points){var r=this.config.points[n];e[n]=p(r,t)}return this.cache.pointsConfigs.set(t,e),u({},e)}}])&&h(e.prototype,n),r&&h(e,r),t}();function m(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function g(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?m(Object(n),!0).forEach((function(e){y(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function y(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function b(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var w=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.rawConfig=e,this.cache={performanceRangeConfigs:new Map}}var e,n,r;return e=t,(n=[{key:"getConfig",value:function(t){var e=null;return this.rawConfig&&(e={},this.rawConfig.text&&(e.text=this.rawConfig.text),this.rawConfig.icon&&(e.icon=this.rawConfig.icon),this.rawConfig.performanceRange&&(e.animatedRange=this.getPerformanceRangeConfig(t))),e}},{key:"getPerformanceRangeConfig",value:function(t){if(this.cache.performanceRangeConfigs.has(t))return g({},this.cache.performanceRangeConfigs.get(t));var e=this.rawConfig.performanceRange,n=t(e.from),r=t(e.to),i=Math.max(Math.abs(n),Math.abs(r)),o=100*parseInt((i+40)/100)+99,a={from:{startValue:app.util.getNumberWithSign(o,n),endValue:n},to:{startValue:app.util.getNumberWithSign(o,r),endValue:r}};return this.cache.performanceRangeConfigs.set(t,a),g({},a)}}])&&b(e.prototype,n),r&&b(e,r),t}();function C(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function O(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var j=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];C(this,t),this.rawConfig=e}var e,n,r;return e=t,(n=[{key:"getConfig",value:function(){return this.rawConfig.map((function(t){return{name:t.label}}))}}])&&O(e.prototype,n),r&&O(e,r),t}();function E(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function S(t){var e=document.createElement("div");e.classList.add("b-widget_title","js-widget_title"),t.appendChild(e),this.titleWrapper=e}function P(){var t=document.createElement("div");t.innerHTML=this.config.text,t.classList.add("b-widget_title-text"),this.titleWrapper.appendChild(t),this.textElement=t}function A(){var t=document.createElement("img");t.src=this.config.icon,t.classList.add("widget_title-icon"),this.titleWrapper.appendChild(t),this.iconElement=t}function k(){var t=this.config.animatedRange;this.animatedRangeElement=document.createElement("div"),this.animatedRangeElement.className="b-widget_title-range js-widget_title-range",this.animatedRangeElement.innerHTML='<span class="end-range js-end-range">'.concat(t.to.startValue,'</span><span class="divider">/</span><span class="start-range js-start-range">').concat(t.from.startValue,"</span>"),this.titleWrapper.appendChild(this.animatedRangeElement),x.call(this,t.from,".js-start-range"),x.call(this,t.to,".js-end-range")}function x(t,e){var n=this.titleWrapper.querySelector(e),r=parseInt(t.endValue),i=parseInt(t.startValue),o="",a=setInterval((function(){if(i===r)return o=r>0?"+":"",n.innerHTML=o+r,void clearInterval(a);i>0?(o="+",i--):i++,n.innerHTML=o+i}),10)}var _=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.config=n,S.call(this,e),n.text&&P.call(this),n.icon&&A.call(this),n.animatedRange&&k.call(this)}var e,n,r;return e=t,(n=[{key:"setRanges",value:function(t){this.animatedRangeElement&&this.wipeRanges(),this.config.animatedRange=t,k.call(this)}},{key:"wipeRanges",value:function(){this.animatedRangeElement.remove()}}])&&E(e.prototype,n),r&&E(e,r),t}();function M(t){return function(t){if(Array.isArray(t))return T(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||R(t)||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 R(t,e){if(t){if("string"==typeof t)return T(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?T(t,e):void 0}}function T(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function W(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function I(){var t=document.createElement("div");t.className="b-circle_chart-graph",this.container.appendChild(t),this.chart=t}function L(){var t=2*this.config.radius+2*this.maxArcWidth;this.svg=document.createElementNS("http://www.w3.org/2000/svg","svg"),this.svg.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.svg.setAttribute("width",t),this.svg.setAttribute("height",t),this.svg.style.setProperty("--maxArcWidth",this.maxArcWidth+"px");var e,n=function(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=R(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,c=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return a=t.done,t},e:function(t){c=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(c)throw o}}}}(this.config.arcs);try{for(n.s();!(e=n.n()).done;){var r=e.value;q.call(this,r)}}catch(t){n.e(t)}finally{n.f()}this.chart.appendChild(this.svg)}function q(t){var e=document.createElementNS("http://www.w3.org/2000/svg","path");e.setAttribute("fill","transparent"),e.setAttribute("stroke",t.color),e.setAttribute("stroke-width",t.width),e.setAttribute("stroke-linecap","round"),e.setAttribute("class",t.customClass),this.svg.appendChild(e);var n=V.call(this,t.start),r=V.call(this,t.end);t.isAnimated?this.animateArc(e,n,r):U.call(this,e,n,r)}function D(t,e,n,r){var i=this;!function o(a){var c=e-r;if(c<=n)app.util.requestAnimationFrame(U.call(i,t,e,n));else{app.util.requestAnimationFrame(U.call(i,t,e,c));var s=Date.now(),l=700/360-(s-a);l>0?setTimeout((function(){o(Date.now())}),l):o(s),r++}}(Date.now())}function N(t,e){var n,r,i,o,a=Y(t).toFixed(3),c=Y(e).toFixed(3);return n=a,r=c,i=this.config.radius,o=r-n<Math.PI?0:1,["M",i+i*Math.cos(n),i+i*Math.sin(n),"A",i,i,0,o,1,i+i*Math.cos(r),i+i*Math.sin(r)].join(" ")}function H(t,e){var n=Y(e),r=this.config.radius*Math.cos(n),i=this.config.radius*Math.sin(n);e>0&&e<180&&(r-=20),e>180&&e<360&&(r+=20),e>90&&e<270&&(i+=10),(e<90||e>270&&e<360)&&(i-=10),t.style.left=r+"px",t.style.top=i+"px"}function B(){for(var t in this.pointsContainer=document.createElement("ul"),this.pointsContainer.className=this.pointContainerClasses,this.config.points){var e=this.config.points[t];if(void 0!==e){var n=document.createElement("li");n.className="b-circle_chart-point",n.innerHTML=e.label,H.call(this,n,e.value),this.pointsContainer.appendChild(n)}}return this.container.appendChild(this.pointsContainer),this}function F(){return this.config.arcs[this.config.arcs.length-1]}function V(t){return Number.isInteger(t)?t:parseInt(this.config.points[t].value)}function z(){return Math.max.apply(Math,M(this.config.arcs.map((function(t){return t.width}))))}function U(t,e,n){t.setAttribute("d",N.call(this,e,n))}function J(t){this.container.style.setProperty("--text-color",t.color)}function Y(t){return-Math.PI/180*90- -Math.PI/180*(360-t)}var G=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.chart=null,this.textClass="js-widget_title-range",this.pointContainerClasses="b-circle_chart-points js-circle_chart-points",this.container=e,this.config=n,this.maxArcWidth=z.call(this),this.svg=null,this.arcAnimationDelay=0;var r=F.call(this);I.call(this),L.call(this),B.call(this),J.call(this,r)}var e,n,r;return e=t,(n=[{key:"animateArc",value:function(t,e,n){var r=this,i=this.arcAnimationDelay;return this.arcAnimationDelay+=function(t,e){var n=function(t,e){return 700/360*Math.floor(Math.abs(t-e))}(t,e);return Math.round(200*n/100)}(e,n),setTimeout((function(){D.call(r,t,e,n,1)}),i),this}},{key:"setPoints",value:function(t){var e=this;Object.keys(t).forEach((function(n){e.config.points[n]=t[n]})),B.call(this)}},{key:"wipePoints",value:function(){this.pointsContainer.remove()}},{key:"destroy",value:function(){this.chart.remove()}}])&&W(e.prototype,n),r&&W(e,r),t}(),K=n(774);function Q(){var t=document.createElement("div");t.className="b-performance-scoreboard",this.container.appendChild(t),this.infoContainer=t}function X(){var t=it.call(this),e=this.titleConfig.getConfig(t);e&&(this.title=new _(this.infoContainer,e))}function Z(){var t=it.call(this),e=this.chartConfig.getConfig(t);this.chart=new G(this.container,e)}function tt(){var t=it.call(this),e=this.slidingPillsConfig.getConfig(t);e.length&&(this.slidingPills=new K.a(e,0,this.infoContainer),this.slidingPills.init(),this.slidingPills.subscribe({update:et.bind(this)}))}function et(t,e){var n=it.call(this,e.id);switch(t){case"changeActivePills":nt.call(this,n),rt.call(this,n)}}function nt(t){var e=this.chartConfig.getPointsConfig(t);this.chart.wipePoints(),this.chart.setPoints(e)}function rt(t){var e;if(null===(e=this.config.title)||void 0===e?void 0:e.performanceRange){var n=this.titleConfig.getPerformanceRangeConfig(t);this.title.setRanges(n)}}function it(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(this.cache.valueConversionFunctions[e])return this.cache.valueConversionFunctions[e];var n=null===(t=this.config.slidingPills)||void 0===t?void 0:t[e].valueConversionFunction,r=n?app.util.getAppComponentByPath(n):function(t){return t},i=function(t){return app.util.getNumberWithSign(r(t))};return this.cache.valueConversionFunctions[e]=i,i}var ot=function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.config=n,this.container=e,this.cache={valueConversionFunctions:{}},this.titleConfig=new w(this.config.title),this.chartConfig=new d(this.config.chart),this.slidingPillsConfig=new j(this.config.slidingPills),Q.call(this),X.call(this),Z.call(this),tt.call(this),this.container.classList.add("js-initialized")};function at(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var ct=new(function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}var e,n,r;return e=t,(n=[{key:"initAll",value:function(){var t=this;document.querySelectorAll(".js-widget_performance_chart").forEach((function(e){return t.init(e)}))}},{key:"init",value:function(t){var e=null;if(function(t){var e=!1,n=t.parentElement.parentElement.parentElement,r=n.classList.contains("js-performance_tabs-content"),i="none"===n.style.display;return r&&i&&(e=!0),e}(t))return!1;try{e=JSON.parse(t.dataset.config)}catch(t){}return e?new ot(t,e):null}}])&&at(e.prototype,n),r&&at(e,r),t}());function st(){this.hoverElement.addEventListener("mouseenter",lt.bind(this)),this.hoverElement.addEventListener("mouseleave",ut.bind(this))}function lt(){var t=this;this.timerId=setTimeout((function(){t.parentItemEl.classList.add("m-hovered-item"),t.targetEl.classList.add(t.hoverClass)}),100)}function ut(){var t=this;clearTimeout(this.timerId),setTimeout((function(){t.parentItemEl.classList.remove("m-hovered-item"),t.targetEl.classList.remove(t.hoverClass)}),100)}var ft=function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.moduleConstructorWrapper=e.moduleConstructorWrapper,this.hoverElement=e.hoverElement,this.hoverClass=this.hoverElement.dataset.hoverTargetClass,this.parentItemEl=this.hoverElement.closest(".js-module_constructor-item"),this.timerId=null;var n=this.hoverElement.dataset.targetElementSel;this.targetEl=n?this.hoverElement.closest(n):this.moduleConstructorWrapper,st.call(this)};var ht=null,pt=app.device.isMobileUserAgent(),vt={startTransitionPoint:pt?35:15,scalePoints:[{seenPercents:0,scaleCoef:pt?0:2.7,durationCoef:700},{seenPercents:15,scaleCoef:pt?0:4,durationCoef:pt?700:500},{seenPercents:30,scaleCoef:pt?1:4,durationCoef:pt?100:500},{seenPercents:40,scaleCoef:pt?1:5,durationCoef:pt?100:500},{seenPercents:50,scaleCoef:pt?1.5:5,durationCoef:pt?100:500}]};function dt(t){t.forEach((function(t){if(t.isIntersecting){var e=t.target.querySelector(".js-stretchOnScroll-element"),n=e.offsetWidth,r=e.getBoundingClientRect().width,i=Math.round(document.body.clientWidth/n*1e3)/1e3,o=t.target.querySelector(".js-stretched_container-limiter"),a=(h=o,p=window.innerHeight,v=window.scrollY,d=h.getBoundingClientRect().top+v,m=h.offsetHeight,g=v+p-d,Math.round(g/((p+m)/100))),c=mt(a,"scaleCoef"),s=mt(a,"durationCoef");o.classList.remove("m-ready","m-scale_transition");var l=1,u=1+c/100*a;n*u>=t.boundingClientRect.width&&!pt?(l=i,o.classList.add("m-ready")):a>vt.startTransitionPoint&&(l=Math.round(10*u)/10);var f=r-r/l;s=0!==f?Math.round(s/f*1e4)/10:mt(0,"durationCoef"),o.classList.add("m-scale_transition"),o.style.setProperty("--currentScale",l),o.style.setProperty("--scaleDuration",s+"ms")}var h,p,v,d,m,g}))}function mt(t,e){var n=0,r=vt.scalePoints;r&&r.sort((function(t,e){return t.seenPercents-e.seenPercents})).forEach((function(r){t>=1*r.seenPercents&&(n=1*r[e])}));return n}var gt=function t(e){var n,r,i;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.moduleConstructorWrapper=e.moduleConstructorWrapper,this.imageBlock=e.imageBlock,n=this.moduleConstructorWrapper,null===ht&&(ht=new IntersectionObserver(dt,{root:null,rootMargin:pt?"-50% 0% 0% -50%":"-5% 0% 0% 0%",threshold:app.util.buildThresholdList(0,100)})),r=ht,i=n.querySelector(".js-stretched_container-outer"),r.observe(i)};var yt=null,bt=null,wt=!app.device.isTabletUserAgent()&&!app.device.isMobileUserAgent(),Ct=0,Ot=0,jt=0,Et=$(".js-parallax"),St=".js-parallax",Pt=".js-sticky_container",At=".js-sticky-frame",kt="js-parallax",xt="js-sticky_container",_t="js-sticky-frame";function Mt(t){t.forEach((function(t){t.target.classList.contains(_t)?function(t){var e=0,n=t.target.closest(Pt);t.isIntersecting&&(e=wt?100*t.intersectionRatio:Rt(t.boundingClientRect,window.visualViewport)),n.style.setProperty("--default-color-visible-percentage","".concat(100-e,"%"))}(t):t.target.classList.contains(kt)&&!app.device.isMobileView()&&function(t){var e=t.target.querySelector("img"),n=e.getBoundingClientRect().height;if(t.isIntersecting){var r=window.pageYOffset||document.documentElement.scrollTop,i=r-Ot,o=t.boundingClientRect.height+Math.abs(jt)>=n,a=jt-i,c=0;c=!o&&t.intersectionRatio>Ct?a:t.boundingClientRect.height-n,e.style.setProperty("--parallax-image-offset","".concat(c,"px")),jt=a,Ot=r}}(t)}))}function Rt(t,e){return Math.max(0,Math.min(t.bottom,e.height)-Math.max(t.top,e.offsetTop))/t.height*100}var Tt=function t(e){var n,r;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.moduleConstructorWrapper=e.moduleConstructorWrapper,this.stickyColorBlock=e.stickyColorBlock,this.frame=this.moduleConstructorWrapper.querySelector(At),this.mediaBlock=this.moduleConstructorWrapper.querySelector(St),this.frame&&this.moduleConstructorWrapper.classList.contains(xt)&&(n=this.stickyColorBlock,(r=n.cloneNode(!0)).classList.add("cloned"),n.parentNode.insertBefore(r,n.nextSibling),function(t,e,n){var r=function(){null===yt&&(yt=new IntersectionObserver(Mt,{root:null,rootMargin:"0% 0% 0% 0%",threshold:app.util.buildThresholdList(0,100)}));return yt}(),i=function(){null===bt&&(bt=new ResizeObserver((function(t){t.forEach((function(t){t.target.parentElement.previousElementSibling.style.height="".concat(t.borderBoxSize[0].blockSize,"px")}))})));return bt}();r.observe(e),i.observe(t),Et.length&&!app.device.isMobileView()&&r.observe(n);wt||window.visualViewport.addEventListener("resize",(function(t){document.querySelectorAll(Pt).forEach((function(e){var n=Rt(e.querySelector(At).getBoundingClientRect(),t.target);e.style.setProperty("--default-color-visible-percentage","".concat(100-n,"%"))}))}),50)}(this.stickyColorBlock,this.frame,this.mediaBlock))};function Wt(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return It(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return It(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,c=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return a=t.done,t},e:function(t){c=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(c)throw o}}}}function It(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Lt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function qt(t){var e,n=Wt(t.moduleConstructorWrapper.querySelectorAll(".js-hover-element"));try{for(n.s();!(e=n.n()).done;){var r=e.value;new ft({hoverElement:r,moduleConstructorWrapper:t.moduleConstructorWrapper})}}catch(t){n.e(t)}finally{n.f()}}function Dt(t){var e=t.moduleConstructorWrapper.querySelectorAll("[data-src]"),n={rootMargin:"".concat(100,"px 0px 0px 0px"),threshold:0},r=new IntersectionObserver((function(t,e){t.forEach((function(t){t.isIntersecting&&(!function(t){var e=t.getAttribute("data-src");if(!e)return;t.src=e}(t.target),e.unobserve(t.target))}))}),n);e.forEach((function(t){r.observe(t)}))}function Nt(t){var e,n=Wt(t.moduleConstructorWrapper.querySelectorAll(".js-stretchOnScroll-element"));try{for(n.s();!(e=n.n()).done;){e.value;new gt({moduleConstructorWrapper:t.moduleConstructorWrapper})}}catch(t){n.e(t)}finally{n.f()}}function Ht(t){var e,n=Wt(t.moduleConstructorWrapper.querySelectorAll(".js-sticky_header"));try{for(n.s();!(e=n.n()).done;){var r=e.value;new Tt({stickyColorBlock:r,moduleConstructorWrapper:t.moduleConstructorWrapper})}}catch(t){n.e(t)}finally{n.f()}}var Bt=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}var e,n,r;return e=t,r=[{key:"build",value:function(t){qt.call(this,t),Dt.call(this,t),Nt.call(this,t),t.moduleConstructorWrapper.classList.contains("js-sticky_container")&&Ht.call(this,t)}}],(n=null)&&Lt(e.prototype,n),r&&Lt(e,r),t}();function Ft(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return Vt(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Vt(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,c=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return a=t.done,t},e:function(t){c=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(c)throw o}}}}function Vt(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function $t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var zt=new(function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}var e,n,r;return e=t,(n=[{key:"initAll",value:function(t){var e,n,r=Ft(t);try{for(r.s();!(e=r.n()).done;){var i=e.value;n=void 0,n={moduleConstructorWrapper:i},Bt.build(n)}}catch(t){r.e(t)}finally{r.f()}}}])&&$t(e.prototype,n),r&&$t(e,r),t}());function Ut(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var Jt=null,Yt=[];function Gt(t){try{var e=this.config.carouselWidget.getAttribute("data-settings");Object.assign(t,JSON.parse(e))}catch(t){}}function Kt(){this.allItems.length>1&&Zt.call(this),this.carouselWidget.parentElement.style.setProperty("opacity",1),this.carouselNavObj.querySelector(this.config.carouselNavItemSel).classList.add("active")}function Qt(t){var e=this.carouselWidget.querySelectorAll(this.config.itemOwlSel+":not(.cloned)"),n=this;e.forEach((function(t){var e=app.device.isMobileView()?"":'<div class="b-owl_carousel-nav_item-content"><div class="b-owl_carousel-nav_item-title">'+t.querySelector(".b-page_module-slider-title").innerHTML+'</div><div class="b-owl_carousel-nav_item-text">'+t.querySelector(".b-page_module-slider-text").innerHTML+"</div></div>";n.carouselNavObj.innerHTML+='<div class="b-owl_carousel-nav_item">'+e+'<div class="b-owl_carousel-progress"><div class="b-owl_carousel-progress-inner"></div></div></div>'})),this.carouselNavObj.querySelectorAll(".b-owl_carousel-progress-inner").forEach((function(e){e.style.setProperty("--autoplay-timeout",t+"ms")}))}function Xt(){var t;this.config.excludeElementsFromHeight&&(t=this.config.excludeElementsFromHeight,Yt=t.map((function(t){return document.querySelector(t)})).filter(Boolean)),ne.call(this),te(this.carouselWidget)}function Zt(){var t=this,e=this.getSliderAutoplayTimeout();Qt.call(this,e),$(this.carouselWidget).on("changed.owl.carousel",re.bind(this)),$(document).on("click",this.config.carouselNavItemSel,(function(){$(t.config.carouselSelector).trigger("to.owl.carousel",$(this).index())})),Xt.call(this)}function te(t){var e=Yt.length?Yt.reduce((function(t,e){return t+((null==e?void 0:e.offsetHeight)||0)}),0):0,n=document.documentElement.clientHeight-e;t.setAttribute("style","height:".concat(n,"px;"))}function ee(){var t=this;return null===Jt&&(Jt=new ResizeObserver((function(e){e.forEach((function(e){var n=e.target,r=t.observedElementsHeightMap.has(n)?t.observedElementsHeightMap.get(n):0,i=e.target.offsetHeight;r!==i&&(te(t.carouselWidget),t.observedElementsHeightMap.set(n,i))}))}))),Jt}function ne(){var t=ee.call(this),e=this;this.config.excludeElementsFromHeight.forEach((function(n){var r=document.querySelector(n);e.observedElementsHeightMap.set(r,r.offsetHeight),t.observe(r)})),this.observedElementsHeightMap.set(document.documentElement),t.observe(document.documentElement)}function re(t){var e=t.item.index-1,n=this.carouselNavObj.querySelectorAll(this.config.carouselNavItemSel);e>t.item.count&&(e=1),n.forEach((function(t,n){t.classList.remove("active","m-complete"),n+1<e&&t.classList.add("m-complete")})),n[e-1].classList.add("active")}var ie=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.config=e,this.carouselWidget=e.carouselWidget,Gt.call(this,e),this.allItems=this.carouselWidget.querySelectorAll(e.itemOwlSel),this.carouselNavObj=this.carouselWidget.nextElementSibling,this.observedElementsHeightMap=new Map}var e,n,r;return e=t,(n=[{key:"init",value:function(){Kt.call(this)}},{key:"getSliderAutoplayTimeout",value:function(){var t,e=null;try{e=JSON.parse(this.carouselWidget.dataset.settings)}catch(t){e={}}return void 0!==(null===(t=e)||void 0===t?void 0:t.autoplayTimeout)?e.autoplayTimeout:this.config.autoplayTimeoutDefault}}])&&Ut(e.prototype,n),r&&Ut(e,r),t}(),oe={carouselSelector:".js-owl_sliding",itemOwlSel:".b-owl_carousel-item",carouselNavSel:".b-owl_carousel-nav",carouselNavItemSel:".b-owl_carousel-nav_item",autoplayTimeoutDefault:"3000",excludeElementsFromHeight:[".js-dynamic-promo-banner"]};function ae(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function ce(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?ae(Object(n),!0).forEach((function(e){se(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ae(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function se(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function le(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var ue=new(function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}var e,n,r;return e=t,(n=[{key:"initAll",value:function(){var t=this;document.querySelectorAll(oe.carouselSelector).forEach((function(e){t.init(e)}))}},{key:"init",value:function(t){var e=ce(ce({},oe),{},{carouselWidget:t});new ie(e).init()}}])&&le(e.prototype,n),r&&le(e,r),t}());function fe(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var he=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}var e,n,r;return e=t,r=[{key:"init",value:function(){zt.initAll(document.querySelectorAll(".js-module_constructor")),ue.initAll(),ct.initAll()}}],(n=null)&&fe(e.prototype,n),r&&fe(e,r),t}();function pe(t){return(pe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ve(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function de(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function me(t,e,n){return(me="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=we(t)););return t}(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(n):i.value}})(t,e,n||t)}function ge(t,e){return(ge=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function ye(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=we(t);if(e){var i=we(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return be(this,n)}}function be(t,e){return!e||"object"!==pe(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function we(t){return(we=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Ce(){document.addEventListener("DOMContentLoaded",(function(){he.init()}))}(new(function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&ge(t,e)}(o,t);var e,n,r,i=ye(o);function o(){return ve(this,o),i.apply(this,arguments)}return e=o,(n=[{key:"init",value:function(){me(we(o.prototype),"init",this).call(this),Ce.call(this)}}])&&de(e.prototype,n),r&&de(e,r),o}(s))).init()}},[[1246,1,0,2]]]);