(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,2305,e=>{"use strict";e.s(["default",0,function(){for(var e,t,r=0,n="";r<arguments.length;)(e=arguments[r++])&&(t=function e(t){var r,n,i="";if("string"==typeof t||"number"==typeof t)i+=t;else if("object"==typeof t)if(Array.isArray(t))for(r=0;r<t.length;r++)t[r]&&(n=e(t[r]))&&(i&&(i+=" "),i+=n);else for(r in t)t[r]&&(i&&(i+=" "),i+=r);return i}(e))&&(n&&(n+=" "),n+=t);return n}])},58282,e=>{"use strict";function t(){return typeof window>"u"}e.s(["initTagManager",0,function(){if(t())return void console.warn("Cant initialize tag manager on server side");if("function"!=typeof window._init_mtm?console.warn("Cant init MTM, please check if MTM script exists"):window._init_mtm(),"function"!=typeof window._init_ytm){if("object"==typeof window._wa)return;console.warn("Cant init YTM, please check if YTM script exists")}else window._init_ytm()},"pushEvent",0,function(e){t()||(Array.isArray(window.dataLayer)?window.dataLayer.push({event:"data_event",...window.browserId?{browser_id:window.browserId}:{},...window.sessionId?{session_id:window.browserSessionId}:{},...window.customerId?{customer_id:window.customerId}:{},...e}):console.log("window.dataLayer does not exist"),Array.isArray(window._mtm)?window._mtm.push(e):console.log("window._mtm does not exist"))}])},8341,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={cancelIdleCallback:function(){return o},requestIdleCallback:function(){return a}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});let a="u">typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(e){let t=Date.now();return self.setTimeout(function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})},1)},o="u">typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(e){return clearTimeout(e)};("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},19083,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={ESCAPE_REGEX:function(){return o},htmlEscapeAttributeString:function(){return d},htmlEscapeJsonString:function(){return l}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});let a={"&":"\\u0026",">":"\\u003e","<":"\\u003c","\u2028":"\\u2028","\u2029":"\\u2029"},o=/[&><\u2028\u2029]/g,s={"&":"&amp;",'"':"&quot;","'":"&#39;","<":"&lt;",">":"&gt;"},c=/[&"'<>]/g;function l(e){return e.replace(o,e=>a[e])}function d(e){return e.replace(c,e=>s[e])}},79520,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return I},handleClientScriptLoad:function(){return y},initScriptLoader:function(){return _}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});let a=e.r(55682),o=e.r(90809),s=e.r(43476),c=a._(e.r(74080)),l=o._(e.r(71645)),d=e.r(42732),u=e.r(22737),f=e.r(8341),m=e.r(19083),p=new Map,w=new Set,g=e=>{let{src:t,id:r,onLoad:n=()=>{},onReady:i=null,dangerouslySetInnerHTML:a,children:o="",strategy:s="afterInteractive",onError:l,stylesheets:d}=e,f=r||t;if(f&&w.has(f))return;if(p.has(t)){w.add(f),p.get(t).then(n,l);return}let m=()=>{i&&i(),w.add(f)},g=document.createElement("script"),y=new Promise((e,t)=>{g.addEventListener("load",function(t){e(),n&&n.call(this,t),m()}),g.addEventListener("error",function(e){t(e)})}).catch(function(e){l&&l(e)});a?(g.innerHTML=a.__html||"",m()):o?(g.textContent="string"==typeof o?o:Array.isArray(o)?o.join(""):"",m()):t&&(g.src=t,p.set(t,y)),(0,u.setAttributesFromProps)(g,e),"worker"===s&&g.setAttribute("type","text/partytown"),g.setAttribute("data-nscript",s),d&&(e=>{if(c.default.preinit)return e.forEach(e=>{c.default.preinit(e,{as:"style"})});if("u">typeof window){let t=document.head;e.forEach(e=>{let r=document.createElement("link");r.type="text/css",r.rel="stylesheet",r.href=e,t.appendChild(r)})}})(d),document.body.appendChild(g)};function y(e){let{strategy:t="afterInteractive"}=e;"lazyOnload"===t?window.addEventListener("load",()=>{(0,f.requestIdleCallback)(()=>g(e))}):g(e)}function _(e){e.forEach(y),[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')].forEach(e=>{let t=e.id||e.getAttribute("src");w.add(t)})}function h(e){let{id:t,src:r="",onLoad:n=()=>{},onReady:i=null,strategy:a="afterInteractive",onError:o,stylesheets:u,...p}=e,{updateScripts:y,scripts:_,getIsSsr:h,appDir:I,nonce:v}=(0,l.useContext)(d.HeadManagerContext);v=p.nonce||v;let b=(0,l.useRef)(!1);(0,l.useEffect)(()=>{let e=t||r;b.current||(i&&e&&w.has(e)&&i(),b.current=!0)},[i,t,r]);let E=(0,l.useRef)(!1);if((0,l.useEffect)(()=>{if(!E.current){if("afterInteractive"===a)g(e);else"lazyOnload"===a&&("complete"===document.readyState?(0,f.requestIdleCallback)(()=>g(e)):window.addEventListener("load",()=>{(0,f.requestIdleCallback)(()=>g(e))}));E.current=!0}},[e,a]),("beforeInteractive"===a||"worker"===a)&&(y?(_[a]=(_[a]||[]).concat([{id:t,src:r,onLoad:n,onReady:i,onError:o,...p,nonce:v}]),y(_)):h&&h()?w.add(t||r):h&&!h()&&g({...e,nonce:v})),I){if(u&&u.forEach(e=>{c.default.preinit(e,{as:"style"})}),"beforeInteractive"===a)if(!r)return p.dangerouslySetInnerHTML&&(p.children=p.dangerouslySetInnerHTML.__html,delete p.dangerouslySetInnerHTML),(0,s.jsx)("script",{nonce:v,dangerouslySetInnerHTML:{__html:`(self.__next_s=self.__next_s||[]).push(${(0,m.htmlEscapeJsonString)(JSON.stringify([0,{...p,id:t}]))})`}});else return c.default.preload(r,p.integrity?{as:"script",integrity:p.integrity,nonce:v,crossOrigin:p.crossOrigin}:{as:"script",nonce:v,crossOrigin:p.crossOrigin}),(0,s.jsx)("script",{nonce:v,dangerouslySetInnerHTML:{__html:`(self.__next_s=self.__next_s||[]).push(${(0,m.htmlEscapeJsonString)(JSON.stringify([r,{...p,id:t}]))})`}});"afterInteractive"===a&&r&&c.default.preload(r,p.integrity?{as:"script",integrity:p.integrity,nonce:v,crossOrigin:p.crossOrigin}:{as:"script",nonce:v,crossOrigin:p.crossOrigin})}return null}Object.defineProperty(h,"__nextScript",{value:!0});let I=h;("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},3303,(e,t,r)=>{t.exports=e.r(79520)},10679,e=>{"use strict";var t=e.i(3303),r=e.i(71645);let n=`(function () {
  const LOG_PREFIX = '[Iframe Bridge]';
  const PARENT_ORIGIN = window._parentOrigin;
  const YTM_ID = window._ytmID;

  const isDebug = () => {
    try {
      return new URLSearchParams(window.location.search).has('_wa_debug');
    } catch {
      return false;
    }
  };

  const extendWindow = (payload) => {
    const { browserId, sessionId, customerId } = payload;

    window.browserId = browserId;
    window.sessionId = sessionId;
    window.customerId = customerId;
  };

  if (window._iframeBridgeInitialized) {
    if (isDebug()) {
      console.warn(\`\${LOG_PREFIX} Уже инициализирован\`);
    }

    return;
  }

  window._iframeBridgeInitialized = true;
  window.dataLayer = window.dataLayer || [];

  function onMessage(event) {
    if (event.origin !== PARENT_ORIGIN || event.source !== window.parent || !event.data?.type) return;

    switch (event.data.type) {
      case 'wa-iframe-ready':
        if (isDebug()) {
          console.log(\`\${LOG_PREFIX} Iframe установлен\`);
        }

        if (event.data.payload) {
          extendWindow(event.data.payload);
        }

        break;
      case 'wa-init':
        onInit(event.data);

        break;
      case 'wa-navigate':
        onNavigate(event.data);

        break;
      case 'wa-data-layer':
        onDataLayer(event.data);

        break;
      case 'wa-not-bounce':
        onNotBounce();

        break;
    }
  }

  function onInit(data) {
    document.title = data.title;

    const options = {
      ssr: true,
      webvisor: false,
      clickmap: false,
      ecommerce: 'dataLayer',
      referrer: data.referrer || '',
      url: rewriteUrl(data.url),
      accurateTrackBounce: true,
      trackLinks: true,
    };

    window.ym(YTM_ID, 'init', options);

    window.parent.postMessage({ type: 'wa-tag-manager-init-complete' }, PARENT_ORIGIN);
  }

  function onNotBounce() {
    window.ym(YTM_ID, 'notBounce');
  }

  function onNavigate(data) {
    document.title = data.title;

    window.ym(YTM_ID, 'hit', rewriteUrl(data.url), {
      referrer: rewriteUrl(data.referrer) || '',
    });
  }

  function onDataLayer(data) {
    window.dataLayer.push(data.payload);
  }

  function rewriteUrl(url) {
    if (!url) return url;

    try {
      const parsed = new URL(url);

      parsed.protocol = location.protocol;
      parsed.hostname = location.hostname;
      parsed.port = location.port;

      return parsed.toString();
    } catch (e) {
      return url;
    }
  }

  function notifyReady() {
    window.parent.postMessage({ type: 'wa-iframe-ready' }, PARENT_ORIGIN);
  }

  window.addEventListener('message', onMessage);

  notifyReady();
})();
`,i=`(function () {
  const LOG_PREFIX = '[Main Bridge]';
  const IFRAME_ORIGIN = window._wa.iframeOrigin;
  const IFRAME_ID = window._wa.iframeID;
  const ALLOWED_UTM = ['utm_source', 'utm_medium', 'utm_campaign', 'utm_content', 'utm_term'];
  const IFRAME_READY_TIMEOUT = 10000;
  const MAX_QUEUE_SIZE = 200;

  const isDebug = () => {
    try {
      return new URLSearchParams(window.location.search).has('_wa_debug');
    } catch {
      return false;
    }
  };

  if (window._wa.mainBridgeInitialized) {
    if (isDebug()) {
      console.warn(\`\${LOG_PREFIX} Уже инициализирован\`);
    }

    return;
  }

  window._wa.mainBridgeInitialized = true;

  let isInitialized = false;
  let prevUrl = location.href;
  let iframeLoaded = false;
  let iframeReady = false;
  let bridgeDead = false;
  let queue = [];

  function filterUrl(url) {
    try {
      const pathFilter = window._wa.pathFilter;

      if (typeof pathFilter === 'function') {
        url = pathFilter(url);
      }

      const parsed = new URL(url);
      const params = parsed.searchParams;
      const queryFilter = window._wa.queryFilter;

      if (typeof queryFilter === 'function') {
        const filteredParams = queryFilter(new URLSearchParams(params));
        parsed.search = filteredParams.toString();
        return parsed.toString();
      }

      const toDelete = [];

      for (const key of params.keys()) {
        if (ALLOWED_UTM.includes(key) || key === '_ym_debug') {
          continue;
        }

        toDelete.push(key);
      }

      toDelete.forEach((key) => params.delete(key));

      return parsed.toString();
    } catch (e) {
      return url;
    }
  }

  function trackBounce() {
    let sent = false;

    const onFirstInteraction = () => {
      if (sent) return;

      sent = true;

      send({ type: 'wa-not-bounce' });
    };

    ['click', 'keydown', 'scroll', 'touchstart'].forEach((evt) => {
      document.addEventListener(evt, onFirstInteraction, {
        once: true,
        passive: true,
      });
    });
  }

  function onInit() {
    send({
      type: 'wa-init',
      url: filterUrl(document.location.href),
      referrer: document.referrer ? document.referrer : '',
      title: document.title,
    });
  }

  function onMessage(event) {
    if (event.origin !== IFRAME_ORIGIN) return;
    if (!event.data?.type) return;

    const { type } = event.data || {};

    if (type === 'wa-iframe-ready' && !iframeLoaded) {
      iframeLoaded = true;
      iframeReady = true;

      event.source.postMessage(
        {
          type: 'wa-iframe-ready',
          payload: { browserId: window.browserId, sessionId: window.browserSessionId, customerId: window.customerId },
        },
        IFRAME_ORIGIN,
      );

      onInterceptDataLayer();
      onInit();
      trackBounce();
      onNavigate();
      flushQueue();
    }

    if (type === 'wa-tag-manager-init-complete' && window._wa.resolveTagManagerReady) {
      window._wa.resolveTagManagerReady();
    }
  }

  const sendItems = (items) => {
    const dataLayerFilter = window._wa.dataLayerFilter;

    if (typeof dataLayerFilter === 'function') {
      const filteredItems = dataLayerFilter([...items]);

      for (const item of filteredItems) {
        send({ type: 'wa-data-layer', payload: item });
      }
    } else {
      for (const item of items) {
        send({ type: 'wa-data-layer', payload: item });
      }
    }
  };

  function onInterceptDataLayer() {
    sendItems(window.dataLayer);

    const originalPush = window.dataLayer.push.bind(window.dataLayer);

    window.dataLayer.push = function (...args) {
      sendItems(args);

      return originalPush(...args);
    };
  }

  function onNavigate() {
    ['pushState', 'replaceState'].forEach((method) => {
      const original = history[method];

      if (!original) return;

      history[method] = function (...args) {
        const referrer = prevUrl;
        const result = original.apply(this, args);

        if (location.href === prevUrl) return result;

        prevUrl = location.href;

        requestAnimationFrame(() => {
          send({
            type: 'wa-navigate',
            url: filterUrl(location.href),
            referrer,
            title: document.title,
          });
        });
        return result;
      };
    });

    window.addEventListener('popstate', () => {
      const referrer = prevUrl;

      prevUrl = location.href;

      send({
        type: 'wa-navigate',
        url: filterUrl(location.href),
        referrer,
        title: document.title,
      });
    });
  }

  function postToIframe(data) {
    const iframe = document.getElementById(IFRAME_ID);

    if (!iframe?.contentWindow) {
      iframeReady = false;

      return;
    }

    try {
      iframe.contentWindow.postMessage(data, IFRAME_ORIGIN);
    } catch (e) {
      iframeReady = false;
    }
  }

  function send(data) {
    if (bridgeDead) return;

    if (!iframeReady) {
      if (queue.length >= MAX_QUEUE_SIZE) {
        try {
          const dropped = queue.shift();
          const saved = JSON.parse(sessionStorage.getItem('wa-dropped-events') || '[]');

          saved.push(dropped);

          sessionStorage.setItem('wa-dropped-events', JSON.stringify(saved));
        } catch (e) {
          if (isDebug()) {
            console.warn(\`\${LOG_PREFIX} Не удалось сохранить событие в sessionStorage:\`, e);
          }
        }
      }

      queue.push(data);

      return;
    }

    postToIframe(data);
  }

  function flushQueue() {
    const items = queue.splice(0);

    for (const item of items) {
      postToIframe(item);
    }
  }

  function initBridge() {
    if (isInitialized) return;

    isInitialized = true;

    if (isDebug()) {
      console.log(\`\${LOG_PREFIX} Инициализация для:\`, IFRAME_ORIGIN);
    }

    const iframe = document.getElementById(IFRAME_ID);

    if (!iframe) {
      console.error(\`\${LOG_PREFIX} Iframe не найден:\`, IFRAME_ID);

      return;
    }

    try {
      sessionStorage.removeItem('wa-dropped-events');
    } catch (e) {
      if (isDebug()) {
        console.warn(\`\${LOG_PREFIX} Не удалось очистить sessionStorage:\`, e);
      }
    }

    window.addEventListener('message', onMessage);

    if (isDebug()) {
      console.log(\`\${LOG_PREFIX} Главный мост готов\`);
    }

    setTimeout(() => {
      if (!iframeReady) {
        const droppedCount = JSON.parse(sessionStorage.getItem('wa-dropped-events') || '[]').length;

        if (isDebug()) {
          console.warn(
            \`\${LOG_PREFIX} iframe не ответил в течение \${IFRAME_READY_TIMEOUT}мс, мост отключён. Потеряно \${
              queue.length + droppedCount
            } событий.\`,
          );
        }
        bridgeDead = true;
        queue = [];
      }
    }, IFRAME_READY_TIMEOUT);
  }

  initBridge();
})();
`;function a({ytmID:e,isolated:t=!1}){return`
    (function(w,l,d, isolated){
    w._ytm_initialized=false;
      w[l]=w[l]||function(){(w[l].a=w[l].a||[]).push(arguments)};
      w[l].l=1*new Date();
      w._init_ytm=function(){
        if(w._ytm_initialized)return;
        var j;
        for(j=0;j<d.scripts.length;j++){
          if(d.scripts[j].src==='https://mc.yandex.ru/metrika/tag.js?id=${e}'){
            return;
          }
        }
        var g=d.createElement('script'),s=d.getElementsByTagName('script')[0];
        g.type='text/javascript';
        g.async=true;
        g.src='https://mc.yandex.ru/metrika/tag.js?id=${e}';
        s.parentNode.insertBefore(g,s);
        g.onload = function () {
        w._ytm_initialized=true;
        if(isolated)return;
          w.ym('${e}', 'init', {
            ssr: true,
            webvisor: true,
            clickmap: true,
            ecommerce: 'dataLayer',
            referrer: d.referrer,
            url: d.location.href,
            accurateTrackBounce: true,
            trackLinks: true,
          });
        };
      }
    })(window,'ym',document, ${t});
  `}let o="analytics-iframe";e.s(["IsolatedTagManagerScript",0,function({ytmID:e,iframeSrc:t,parentOrigin:s,iframeID:c,dataLayerFilter:l,pathFilter:d,queryFilter:u}){return r.default.createElement(r.default.Fragment,null,r.default.createElement("script",{id:"analytics-iframe-script",dangerouslySetInnerHTML:{__html:function(e,t,r,i=o){let s=JSON.stringify(a({ytmID:e,isolated:!0})),c=JSON.stringify(n);return`
    (function(d){
      if (d.getElementById('${i}')) {
        console.warn('[Analytics Iframe] iframe уже существует: ${i}');
        return;
      }
      var iframe = d.createElement('iframe');
      var iframeFinalSrc = '${t}';
      var debugMatch = d.location.search.match(/[?&]_ym_debug=([0-9]+)/);
      if (debugMatch) {
        iframeFinalSrc += (iframeFinalSrc.indexOf('?') === -1 ? '?' : '&') + '_ym_debug=' + debugMatch[1];
      }
      iframe.src = iframeFinalSrc;
      iframe.style.cssText ='position:absolute;width:0px;height:0px;left:-9999px;top:-9999px;border:none;opacity:0;pointer-events:none;';
      iframe.id = '${i}';
      iframe.setAttribute('sandbox', 'allow-scripts allow-same-origin');
      iframe.setAttribute('tabindex', '-1');
      iframe.setAttribute('aria-hidden', 'true');
      var iframeOrigin = new URL('${t}').origin;
      var parentOrigin = new URL('${r}').origin;
      iframe.onload = function() {
        if (iframe.contentWindow) {
          iframe.contentWindow.postMessage({
            type: 'wa-init-universal-loader',
            iframeBridgeCode: ${c},
            ytmCode: ${s},
            parentOrigin: parentOrigin,
            ytmID: '${e}'
          }, iframeOrigin);
        }
      };

      d.body.appendChild(iframe);
    })(document);
  `}(e,t,s,c)}}),r.default.createElement("script",{id:"analytics-main-bridge-script",dangerouslySetInnerHTML:{__html:function(e,t=o,r,n,a){let s=JSON.stringify(i),c=r?r.toString():"",l=n?n.toString():"",d=a?a.toString():"";return`
    (function(d){
      var resolveTagManagerReady;
      window._wa = {
        iframeOrigin: new URL('${e}').origin,
        iframeID: '${t}',
        mainBridgeInitialized: false,
        tagManagerReady: new Promise(function(resolve) {
          resolveTagManagerReady = resolve;
        }),
        resolveTagManagerReady: function() {
          if (resolveTagManagerReady) {
            resolveTagManagerReady();
          }
        },
        dataLayerFilter: ${r?c:void 0},
        pathFilter: ${n?l:void 0},
        queryFilter: ${a?d:void 0},
      };

      var script = d.createElement('script');
      script.id = 'analytics-main-bridge';
      script.textContent = ${s};
      d.body.appendChild(script);
    })(document);
  `}(t,c,l,d,u)}}))},"TagManagerNoscript",0,function({mtmURL:e,mtmID:t,ytmID:n,isolated:i=!1}){return r.default.createElement(r.default.Fragment,null,r.default.createElement("noscript",{id:"analytics-mtm-noscript",dangerouslySetInnerHTML:{__html:function({mtmURL:e,mtmID:t}){return`<img src="${e}/matomo.php?idsite=${t}&rec=1" alt="Matomo Tracker" style="display:none;visibility:hidden" />`}({mtmURL:e,mtmID:t})}}),!i&&r.default.createElement("noscript",{id:"analytics-ytm-noscript",dangerouslySetInnerHTML:{__html:function({ytmID:e}){return`<img src="https://mc.yandex.ru/watch/${e}" style="position:absolute; left:-9999px;" alt="" />`}({ytmID:n})}}))},"TagManagerScript",0,function({mtmURL:e,mtmID:n,ytmID:i,autoInit:o=!0,isolated:s=!1}){return r.default.createElement(r.default.Fragment,null,r.default.createElement("meta",{name:"ytm-v2",id:"analytics-ytm-meta"}),r.default.createElement("script",{id:"analytics-session-script",dangerouslySetInnerHTML:{__html:`
    (function(w) {
  /*! @script-version 1.0.0 */
  /*! js-cookie v3.0.5 | MIT */
  !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self,function(){var n=e.Cookies,o=e.Cookies=t();o.noConflict=function(){return e.Cookies=n,o}}())}(this,(function(){"use strict";function e(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)e[o]=n[o]}return e}var t=function t(n,o){function r(t,r,i){if("undefined"!=typeof document){"number"==typeof(i=e({},o,i)).expires&&(i.expires=new Date(Date.now()+864e5*i.expires)),i.expires&&(i.expires=i.expires.toUTCString()),t=encodeURIComponent(t).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var c="";for(var u in i)i[u]&&(c+="; "+u,!0!==i[u]&&(c+="="+i[u].split(";")[0]));return document.cookie=t+"="+n.write(r,t)+c}}return Object.create({set:r,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var t=document.cookie?document.cookie.split("; "):[],o={},r=0;r<t.length;r++){var i=t[r].split("="),c=i.slice(1).join("=");try{var u=decodeURIComponent(i[0]);if(o[u]=n.read(c,u),e===u)break}catch(e){}}return e?o[e]:o}},remove:function(t,n){r(t,"",e({},n,{expires:-1}))},withAttributes:function(n){return t(this.converter,e({},this.attributes,n))},withConverter:function(n){return t(e({},this.converter,n),this.attributes)}},{attributes:{value:Object.freeze(o)},converter:{value:Object.freeze(n)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"});return t}));
  function uuidv4(){return ([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,function(a){return (a^Math.random()*16>>a/4).toString(16)})}
  function normalizeDomain(domain) {return '.'+domain.replace(/^http(s)?:\\/\\//gi, '').replace(/\\/$/, '').split('.').slice(-2).join('.')}
  var uuidv4re=/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;
  var browserId=Cookies.get('browserId')||w.browserId||(function(){
    try{return w.localStorage.getItem('browserId');}catch(e){return null;}
  })()||uuidv4();
  var sessionId=Cookies.get('browserSessionId')||w.browserSessionId||(function(){
    try{return w.sessionStorage.getItem('browserSessionId')||w.sessionStorage.getItem('browserId');}catch(e){return null;}
  })()||uuidv4();
  if(!browserId.match(uuidv4re)){browserId=uuidv4();}
  if(!sessionId.match(uuidv4re)){sessionId=uuidv4();}
  w.browserId=browserId;
  w.browserSessionId=sessionId;
  try{
    w.localStorage.setItem('browserId', browserId);
    w.sessionStorage.setItem('browserId', sessionId);
    w.sessionStorage.setItem('browserSessionId', sessionId);
  }catch(e){}
  var domain=normalizeDomain(w.location.hostname);
  var cookieOptions={path:'/',secure:true,domain:domain,sameSite:w.location.protocol==='https:'?'None':'Lax'};
  Cookies.set('browserId',browserId,Object.assign({},cookieOptions,{expires: 365}));
  Cookies.set('browserSessionId',sessionId,cookieOptions);
  w.dataLayer=w.dataLayer||[];w._mtm=w._mtm||[];
  w.dataLayer.push({event:'set-vars-event',browser_id:browserId,session_id:sessionId});
  w._mtm.push({event:'setBrowserSession',browser_id:browserId,session_id:sessionId});
})(window);
  `}}),r.default.createElement("script",{id:"analytics-mtm-script",dangerouslySetInnerHTML:{__html:function({mtmURL:e,mtmID:t}){return`
    (function(w,l,d){
      w._mtm_initialized=false;
      w[l]=w[l]||[];
      w[l].push({...(w._session||{})});
      w._init_mtm=function(){
        if(w._mtm_initialized)return;
        w[l].push({'mtm.startTime':(new Date().getTime()),'event':'mtm.Start'});
        var g=d.createElement('script'),s=d.getElementsByTagName('script')[0];
        g.type='text/javascript';
        g.async=true;
        g.src='${e}/js/container_${t}.js';
        s.parentNode.insertBefore(g,s);
        g.onload=function(){
          w._mtm_initialized=true;
        };
      }
    })(window,'_mtm',document);
  `}({mtmURL:e,mtmID:n})}}),!s&&r.default.createElement("script",{id:"analytics-ytm-script",dangerouslySetInnerHTML:{__html:a({ytmID:i})}}),o&&r.default.createElement(t.default,{id:"analytics-auto-init-script",dangerouslySetInnerHTML:{__html:`
    (function(w,m,y){
      if(typeof w[m]==='function')w[m]();
      if(typeof w[y]==='function')w[y]();
    })(window,'_init_mtm','_init_ytm');
  `}}))},"useTagManagerReady",0,function(){let[e,t]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{var e;null!=(e=window._wa)&&e.tagManagerReady?window._wa.tagManagerReady.then(()=>{t(!0)}):console.warn("[useTagManagerReady] window._wa.tagManagerReady не найден")},[]),e}])},8438,e=>{"use strict";var t=e.i(71645),r=e.i(58282);let n=null;e.s(["L",0,({env:e})=>{let i=(0,t.useRef)(!1);return i.current||(n=e,i.current=!0),(0,t.useEffect)(()=>{"production"===e.NODE_ENV&&(0,r.initTagManager)()},[e.NODE_ENV]),null},"g",0,()=>n])},22468,e=>{"use strict";e.s(["g",0,function(e,t){return`finkit-widgets-${t}-${e}`}])},61193,85900,e=>{"use strict";var t=e.i(83849);e.s(["Text",()=>t.T],61193);let r=/#/g,n=/&/g,i=/\//g,a=/=/g,o=/\+/g,s=/%5e/gi,c=/%60/gi,l=/%7c/gi,d=/%20/gi;function u(e){return encodeURI(""+("string"==typeof e?e:JSON.stringify(e))).replace(l,"|").replace(o,"%2B").replace(d,"+").replace(r,"%23").replace(n,"%26").replace(c,"`").replace(s,"^").replace(i,"%2F")}function f(e){return u(e).replace(a,"%3D")}function m(e=""){try{return decodeURIComponent(""+e)}catch{return""+e}}let p=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,w=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,g=/^([/\\]\s*){2,}[^/\\]/,y=/\/$|\/\?|\/#/,_=/^\.?\//;function h(e,t={}){return("boolean"==typeof t&&(t={acceptRelative:t}),t.strict)?p.test(e):w.test(e)||!!t.acceptRelative&&g.test(e)}function I(e,...t){let r=e||"";for(let e of t.filter(e=>e&&"/"!==e))if(r){let t=e.replace(_,"");r=function(e=""){return e.endsWith("/")?e:e+"/"}(r)+t}else r=e;return r}let v=Symbol.for("ufo:protocolRelative");function b(e=""){let[t="",r="",n=""]=(e.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:t,search:r,hash:n}}e.s(["joinURL",0,I,"withBase",0,function(e,t){var r;if(!(r=t)||"/"===r||h(e))return e;let n=function(e=""){return(!function(e=""){return e.endsWith("/")}(e)?e:e.slice(0,-1))||"/"}(t);if(e.startsWith(n)){let t=e[n.length];if(!t||"/"===t||"?"===t)return e}return I(n,e)},"withQuery",0,function(e,t){var r;let n,i,a,s,c,l=function e(t="",r){let n=t.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(n){let[,e,t=""]=n;return{protocol:e.toLowerCase(),pathname:t,href:e+t,auth:"",host:"",search:"",hash:""}}if(!h(t,{acceptRelative:!0}))return r?e(r+t):b(t);let[,i="",a,o=""]=t.replace(/\\/g,"/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[],[,s="",c=""]=o.match(/([^#/?]*)(.*)?/)||[];"file:"===i&&(c=c.replace(/\/(?=[A-Za-z]:)/,""));let{pathname:l,search:d,hash:u}=b(c);return{protocol:i.toLowerCase(),auth:a?a.slice(0,Math.max(0,a.length-1)):"",host:s,pathname:l,search:d,hash:u,[v]:!i}}(e),d={...function(e=""){let t=Object.create(null);for(let r of("?"===e[0]&&(e=e.slice(1)),e.split("&"))){let e=r.match(/([^=]+)=?(.*)/)||[];if(e.length<2)continue;let n=m(e[1].replace(o," "));if("__proto__"===n||"constructor"===n)continue;let i=m((e[2]||"").replace(o," "));void 0===t[n]?t[n]=i:Array.isArray(t[n])?t[n].push(i):t[n]=[t[n],i]}return t}(l.search),...t};return l.search=Object.keys(d).filter(e=>void 0!==d[e]).map(e=>{var t;return(("number"==typeof(t=d[e])||"boolean"==typeof t)&&(t=String(t)),t)?Array.isArray(t)?t.map(t=>`${f(e)}=${u(t)}`).join("&"):`${f(e)}=${u(t)}`:f(e)}).filter(Boolean).join("&"),n=(r=l).pathname||"",i=r.search?(r.search.startsWith("?")?"":"?")+r.search:"",a=r.hash||"",s=r.auth?r.auth+"@":"",c=r.host||"",(r.protocol||r[v]?(r.protocol||"")+"//":"")+s+c+n+i+a}],85900)},28133,56239,93247,e=>{"use strict";let t,r={а:"a",б:"b",в:"v",г:"g",д:"d",е:"e",ё:"yo",ж:"zh",з:"z",и:"i",й:"y",к:"k",л:"l",м:"m",н:"n",о:"o",п:"p",р:"r",с:"s",т:"t",у:"u",ф:"f",х:"h",ц:"c",ч:"ch",ш:"sh",щ:"sch",ъ:"",ы:"y",ь:"",э:"e",ю:"yu",я:"ya"},n=e=>e.replace(/[а-яё]/gi,e=>{let t=e.toLowerCase();return t in r?r[t]:e}).replaceAll(/[ \u00A0]/g,"_");e.s(["t",0,n],56239);var i=e.i(58282);let a=(e,t)=>{if(typeof window>"u")return;let r=sessionStorage.getItem("pushedEvents"),n=r?JSON.parse(r):[];e.event||(e.event="data-event"),"string"==typeof e.eventAction&&(e.eventAction=e.eventAction.toLowerCase().replaceAll(" ","_")),"string"==typeof e.eventLabel&&(e.eventLabel=e.eventLabel.toLowerCase().replaceAll(" ","_")),e.eventLabel||(e.eventLabel="undefined");let a=n.find(r=>r.eventCategory===e.eventCategory&&r.eventAction===e.eventAction&&r.eventLabel===e.eventLabel&&("all"===t||"url"===t&&window.location.pathname===r.url));if(!t||!a){if(t){let t={...e};t.url=window.location.pathname,n.push(t),sessionStorage.setItem("pushedEvents",JSON.stringify(n))}(0,i.pushEvent)(e)}};e.s(["d",0,a],93247);var o=((t=o||{}).icon="icon",t.chip="chip",t.accordion="accordion",t.button="button",t.checkbox="checkbox",t.radio="radio",t.select="select",t.toggle="toggle",t.tooltip="tooltip",t.link="link",t.banner="banner",t.tag="tag",t.date="date",t.field="field",t.offer="offer",t.tab="tab",t.submitButton="submitButton",t.popup="popup",t.block="block",t);let s={icon:"click_icon_",chip:"click_chip_",accordion:"show_acc_",button:"click_button_",checkbox:"click_check_",radio:"click_radio_",select:"click_sel_",toggle:"click_togg_",tooltip:"click_tip_",link:"click_link_",banner:"click_bnr_",tag:"click_tag_",date:"input_date_",field:"input_field_",offer:"click_offer_",tab:"click_tab_",submitButton:"form_button_",popup:"show_pop_up_",block:"click_block_"};e.s(["D",0,o,"h",0,({eventCategory:e,eventActionType:t,eventActionText:r="",eventLabel:i})=>{let o={event:"data-event",eventCategory:e,eventAction:s[t]+n(r)};void 0!==i&&(o.eventLabel=n("string"==typeof i?i:i.toString())),a(o)}],28133)}]);