{"version":3,"file":"shared-lib.DPspK016.mjs","names":[],"sources":["https:/framerusercontent.com/modules/jNZhs2idN6zcPBIUP7Ld/bxtsndmLZXYovCfNmWT8/HCmMN58nV.js","https:/framerusercontent.com/modules/fFiD44cPnZUQhQFzChKt/NeaZpIR9OmCswjWNVgGR/siteMetadata.js"],"sourcesContent":["// Generated by Framer (0c5492c)\nimport{fontStore}from\"framer\";fontStore.loadFonts([\"CUSTOM;Graphik Regular\"]);export const fonts=[{explicitInter:true,fonts:[{family:\"Graphik Regular\",source:\"custom\",url:\"https://framerusercontent.com/assets/S1tyCJP6uR9MmymadObARop0OE.otf\"}]}];export const css=['.framer-PtYzW .framer-styles-preset-8wlfz1:not(.rich-text-wrapper), .framer-PtYzW .framer-styles-preset-8wlfz1.rich-text-wrapper p { --framer-font-family: \"Graphik Regular\", \"Graphik Regular Placeholder\", sans-serif; --framer-font-open-type-features: normal; --framer-font-size: 24px; --framer-font-style: normal; --framer-font-variation-axes: normal; --framer-font-weight: 400; --framer-letter-spacing: -0.288px; --framer-line-height: 148%; --framer-paragraph-spacing: 18px; --framer-text-alignment: start; --framer-text-color: var(--token-e26da0d3-1456-411a-b7f4-2f6e320c9933, rgba(20, 28, 36, 0.8)); --framer-text-decoration: none; --framer-text-stroke-color: initial; --framer-text-stroke-width: initial; --framer-text-transform: none; }','@media (max-width: 2399px) and (min-width: 600px) { .framer-PtYzW .framer-styles-preset-8wlfz1:not(.rich-text-wrapper), .framer-PtYzW .framer-styles-preset-8wlfz1.rich-text-wrapper p { --framer-font-family: \"Graphik Regular\", \"Graphik Regular Placeholder\", sans-serif; --framer-font-open-type-features: normal; --framer-font-size: 18px; --framer-font-style: normal; --framer-font-variation-axes: normal; --framer-font-weight: 400; --framer-letter-spacing: -0.288px; --framer-line-height: 148%; --framer-paragraph-spacing: 18px; --framer-text-alignment: start; --framer-text-color: var(--token-e26da0d3-1456-411a-b7f4-2f6e320c9933, rgba(20, 28, 36, 0.8)); --framer-text-decoration: none; --framer-text-stroke-color: initial; --framer-text-stroke-width: initial; --framer-text-transform: none; } }','@media (max-width: 599px) and (min-width: 0px) { .framer-PtYzW .framer-styles-preset-8wlfz1:not(.rich-text-wrapper), .framer-PtYzW .framer-styles-preset-8wlfz1.rich-text-wrapper p { --framer-font-family: \"Graphik Regular\", \"Graphik Regular Placeholder\", sans-serif; --framer-font-open-type-features: normal; --framer-font-size: 16px; --framer-font-style: normal; --framer-font-variation-axes: normal; --framer-font-weight: 400; --framer-letter-spacing: -0.288px; --framer-line-height: 148%; --framer-paragraph-spacing: 16px; --framer-text-alignment: start; --framer-text-color: var(--token-e26da0d3-1456-411a-b7f4-2f6e320c9933, rgba(20, 28, 36, 0.8)); --framer-text-decoration: none; --framer-text-stroke-color: initial; --framer-text-stroke-width: initial; --framer-text-transform: none; } }'];export const className=\"framer-PtYzW\";\nexport const __FramerMetadata__ = {\"exports\":{\"className\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"css\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"fonts\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}","// Generated by Framer (60db037)\nconst valuesByLocaleId={k7ngTcnR7:{v0:\"Piano｜顧客エンゲージメント最適化\",v1:\"Pianoはデータ分析、顧客理解、エンゲージメント強化、収益最大化を支える統合プラットフォーム。データに基づく戦略で事業成長を加速します。\"}};function getLocalizedValue(key,locale){while(locale){const values=valuesByLocaleId[locale.id];if(values){const value=values[key];if(value)return value;}locale=locale.fallback;}}export default function metadata(params,activeLocale){return{customHTMLBodyEnd:\"<script>\\n  // Global variable to track whether tracking has been processed\\n  let conversionTracked = false;\\n  tp = window.tp || [];\\n  \\n  // Listen for the form submission message from the Pardot iframe\\n  window.addEventListener('message', function (event) {\\n    // Verify the message is our form submission event\\n    if (event.data && event.data.event === 'pa_pardot_form_submit' && !conversionTracked) {\\n      conversionTracked = true; // Prevent duplicate tracking\\n      window._paqueue.push(['sendEvent', event.data.event_name, event.data.data]);\\n    }\\n  });\\n  \\n  (function () {\\n    var _paqueue = window._paqueue || [];\\n    window.pianoj_utils = {\\n      setProperty: function () {\\n        try {\\n          var chapters = this.getChapter();\\n          var publishedDate = this.getPublishedDate();\\n          var propertyObject = {\\n            'd:content_publication_date': publishedDate,\\n            'page_article_lifetime_days': this.getDateCount(publishedDate),\\n            'page': this.getTitle(),\\n            'page_chapter1': chapters.chapter1,\\n            'page_chapter2': chapters.chapter2,\\n            'page_fullurl': this.QA(location.href),\\n            'page_language': location.pathname.includes('/ja/') ? 'Japanese' : 'English',\\n            'page_path': this.QA(location.pathname),\\n            'page_previous_url': this.QA(document.referrer),\\n            'page_querystring': this.QA(location.search.replace('?', '')),\\n            'tags_array': this.getTagsArray(),\\n            'user_cxid': this.getCxId()\\n          };\\n        } catch (e) {\\n          this.sendError('PianoTag - setProperty(setup): ' + e.toString());\\n        }\\n        try {\\n          if (typeof pa !== 'undefined' && typeof pa.setProperties === 'function') {\\n            pa.setProperties(propertyObject, {\\n              'persistent': true\\n            });\\n          } else {\\n            _paqueue.push(['setProperties', propertyObject, {'persistent': true}]);\\n          }\\n        } catch (e) {\\n          console.log('PianoTag - setProperty:' + e.toString());\\n        }\\n        try {\\n        } catch (e) {\\n        }\\n      },\\n      QA: function (val) {\\n        if (val === 'undefined' || val === undefined) {\\n          return ''\\n        } else {\\n          return String(val).trim();\\n        }\\n      },\\n      QA_int: function (val) {\\n        if (val === 'undefined' || val === undefined || val === '') {\\n          return ''\\n        } else {\\n          var parsed = parseInt(val);\\n          if (!isNaN(parsed)) {\\n            return parsed;\\n          }\\n        }\\n        return '';\\n      },\\n      getChapter: function () {\\n        var chapters = {\\n          chapter1: '',\\n          chapter2: ''\\n        };\\n        try {\\n          if (location.hostname === 'www.piano.io') {\\n            var parsedPath = (window.location.pathname.split(\\\"/\\\"));\\n            if (location.pathname.startsWith('/ja/')) {\\n              // https://www.piano.io/ja/product/activation/subscription-management => {chapter1: 'product', chapter2: 'activation'}\\n              chapters.chapter1 = parsedPath[2];\\n              if (parsedPath.length > 4) {\\n                chapters.chapter2 = parsedPath[3];\\n              }\\n            } else {\\n              // https://www.piano.io/product/activation/subscription-management => {chapter1: 'product', chapter2: 'activation'}\\n              chapters.chapter1 = parsedPath[1];\\n              if (parsedPath.length > 3) {\\n                chapters.chapter2 = parsedPath[2];\\n              }\\n            }\\n          }\\n        } catch (e) {\\n        }\\n        return chapters;\\n      },\\n      getCxId: function () {\\n        var id = '';\\n        try {\\n          if (typeof cX !== 'undefined') {\\n            id = cX.getCxenseUserId()\\n          } else if (document.cookie.indexOf('cX_G')) {\\n            var parsedCookie = document.cookie.split(\\\";\\\").reduce(function (a, v) {\\n              var w = v.match(/^(.*?)=(.*?)$/);\\n              if (w) {\\n                a[w[1].trim()] = decodeURIComponent(w[2].trim().replace(/^\\\"|\\\"$/g, \\\"\\\"));\\n              }\\n              return a;\\n            }, {});\\n            if (parsedCookie.hasOwnProperty('cX_G') && parsedCookie['cX_G']) {\\n              id = parsedCookie['cX_G'];\\n            }\\n          }\\n        } catch (e) {}\\n        return id;\\n      },\\n      getPosition: function (selectorTree) {\\n        var position = 'middle';\\n        try {\\n          if (location.hostname === 'www.piano.io') {\\n            var headerContainer = document.querySelector('#main [class*=\\\"-container\\\"]')?.className;\\n            var logoEls = document.querySelectorAll('a[data-framer-name=\\\"Logo\\\"]');\\n            var footerLogoEl = logoEls.length > 0 ? logoEls[logoEls.length - 1] : null;\\n            var footerContainer = null;\\n            if (footerLogoEl && footerLogoEl.parentNode && footerLogoEl.parentNode.parentNode && footerLogoEl.parentNode.parentNode.parentNode) {\\n              footerContainer = footerLogoEl.parentNode.parentNode.parentNode.className;\\n            }\\n            if (typeof headerContainer === 'string' && selectorTree.indexOf(headerContainer) !== -1) {\\n              position = 'header';\\n            } else if (typeof footerContainer === 'string' && selectorTree.indexOf(footerContainer) !== -1) {\\n              k\\n              position = 'footer';\\n            }\\n          } else if (location.hostname === 'academy.piano.io') {\\n            var headerContainer = document.querySelector('#main [class*=\\\"-container\\\"] .ssr-variant > div > [class*=\\\"-container\\\"]')?.className;\\n            var logoEls = document.querySelectorAll('[data-framer-name=\\\"Academy\\\"]');\\n            var footerLogoEl = logoEls.length > 0 ? logoEls[logoEls.length - 1] : null;\\n            if (footerLogoEl && footerLogoEl.parentNode && footerLogoEl.parentNode.parentNode && footerLogoEl.parentNode.parentNode.parentNode && footerLogoEl.parentNode.parentNode.parentNode.parentNode) {\\n              footerContainer = footerLogoEl.parentNode.parentNode.parentNode.parentNode.className;\\n            }\\n            if (headerContainer && selectorTree.indexOf(headerContainer) !== -1) {\\n              position = 'header';\\n            } else if (typeof footerContainer === 'string' && selectorTree.indexOf(footerContainer) !== -1) {\\n              position = 'footer';\\n            }\\n          }\\n        } catch (e) {\\n          position = '';\\n        }\\n        return position;\\n      },\\n      getSelectorTreeString: function (element) {\\n        try {\\n          if (!(element instanceof Element)) {\\n            return \\\"\\\";\\n          }\\n          \\n          function escapeIdentifier(identifier) {\\n            // escape if the value starts with the number\\n            if (/^[0-9]/.test(identifier)) {\\n              const firstChar = identifier.charAt(0);\\n              const unicode = firstChar.charCodeAt(0).toString(16);\\n              return '\\\\\\\\' + unicode + ' ' + identifier.slice(1);\\n            }\\n            return identifier;\\n          }\\n          \\n          var parts = [];\\n          var current = element;\\n          \\n          while (current && current.nodeType === Node.ELEMENT_NODE) {\\n            var selector = current.nodeName.toLowerCase();\\n            if (current.id) {\\n              selector += \\\"#\\\" + escapeIdentifier(current.id);\\n            }\\n            if (typeof current.className === 'string' && current.className.trim()) {\\n              var classes = current.className.trim().split(/\\\\s+/);\\n              var escapedClasses = classes.map(function (cls) {\\n                return escapeIdentifier(cls);\\n              });\\n              selector += \\\".\\\" + escapedClasses.join(\\\".\\\");\\n            }\\n            var parent = current.parentNode;\\n            if (parent) {\\n              var sameTypeSiblings = Array.prototype.filter.call(parent.children, function (child) {\\n                return child.nodeName === current.nodeName;\\n              });\\n              if (sameTypeSiblings.length > 1) {\\n                var index = sameTypeSiblings.indexOf(current) + 1;\\n                selector += \\\":nth-of-type(\\\" + index + \\\")\\\";\\n              }\\n            }\\n            parts.unshift(selector);\\n            current = current.parentNode;\\n          }\\n          return parts.join(\\\" > \\\");\\n        } catch (e) {\\n          return '';\\n        }\\n      },\\n      getPublishedDate: function () {\\n        var dateString = '';\\n        try {\\n          var dateEl = document.querySelectorAll('[data-framer-name=\\\"Date\\\"] > p');\\n          if (dateEl.length === 1) {\\n            var innerText = dateEl[0].innerText;\\n            // /ja\\n            if (innerText.match(/^\\\\d{4}\\\\/\\\\d{2}\\\\/\\\\d{2}$/)) {\\n              // ['2023/08/02', '2023/08/02', index: 0, input: '2023/08/02', groups: undefined]\\n              dateString = innerText.match(/^(\\\\d{4}\\\\/\\\\d{2}\\\\/\\\\d{2})$/)[1];\\n              dateString = dateString.replaceAll('/', '-') + 'T00:00:00Z';\\n            } else if (innerText.match(/^[A-Za-z]{3} \\\\d{2}, \\\\d{4}$/)) {\\n              var monthNames = [\\\"Jan\\\", \\\"Feb\\\", \\\"Mar\\\", \\\"Apr\\\", \\\"May\\\", \\\"Jun\\\", \\\"Jul\\\", \\\"Aug\\\", \\\"Sep\\\", \\\"Oct\\\", \\\"Nov\\\", \\\"Dec\\\"];\\n              var parsedDate = innerText.match(/^([A-Za-z]{3}) (\\\\d{2}), (\\\\d{4})$/);\\n              var day = parsedDate[2];\\n              var month = monthNames.indexOf(parsedDate[1])\\n              var year = parsedDate[3];\\n              \\n              if (month > 0 || day > 0 || year > 0) {\\n                var date = new Date(Date.UTC(parseInt(year), month, parseInt(day)));\\n              }\\n              dateString = date.toISOString();\\n            }\\n          }\\n        } catch (e) {\\n          this.sendError('PianoTag - getPublishedDate:' + e.toString());\\n        }\\n        return this.QA(dateString);\\n      },\\n      getCurrentPosition: function () {\\n        try {\\n          const scrollTop = window.pageYOffset ||\\n            document.documentElement.scrollTop ||\\n            document.body.scrollTop || 0;\\n          \\n          const scrollHeight = Math.max(\\n            document.body.scrollHeight,\\n            document.body.offsetHeight,\\n            document.documentElement.clientHeight,\\n            document.documentElement.scrollHeight,\\n            document.documentElement.offsetHeight\\n          ) - window.innerHeight;\\n          \\n          if (scrollHeight <= 0) {\\n            return 0;\\n          }\\n          let scrollPercentage = Math.min(scrollTop / scrollHeight, 1);\\n          return parseFloat(scrollPercentage.toFixed(4));\\n        } catch (e) {\\n          return '';\\n        }\\n      },\\n      getDateCount: function (publishedDate) {\\n        try {\\n          if (publishedDate) {\\n            var subDays = ((new Date() - (new Date(publishedDate)))) / (1000 * 60 * 60 * 24);\\n            if (subDays > 0) {\\n              return this.QA_int(subDays);\\n            }\\n          }\\n        } catch (e) {\\n          console.log('PianoTag - getDateCount:' + e.toString());\\n        }\\n        return '';\\n      },\\n      getTagsArray: function () {\\n        var result = [];\\n        try {\\n          var tagsEl = document.querySelectorAll('[data-framer-name=\\\"Tags\\\"] > p');\\n          if (tagsEl.length === 1) {\\n            tagsEl[0].innerText.split(',').forEach(function (tag) {\\n              result.push(tag.trim())\\n            })\\n            \\n          }\\n        } catch (e) {console.log('PianoTag - getTagsArray:' + e.toString())};\\n        try {\\n          var pathSegments = location.pathname.split('/')\\n            .filter(segment => segment.trim().length > 0)\\n            .map(segment => {\\n              return segment\\n                .replace(/[-_]/g, ' ')\\n                .replace(/\\\\b\\\\w/g, char => char.toUpperCase());\\n            });\\n          pathSegments.forEach(function (segment) {\\n            if (!result.includes(segment) && segment !== (\\\"Ja\\\" || \\\"Login\\\")) {result.push(segment)}\\n          });\\n        } catch (e) {console.log('PianoTag - getTagsArray:' + e.toString())};\\n        try {\\n          var keywordMapping = [\\n            { keywords: [\\\"analyze\\\", \\\"analytics\\\", \\\"measure\\\", \\\"data\\\"], value: \\\"Analytics\\\" },\\n            { keywords: [\\\"personalize\\\", \\\"personalization\\\", \\\"tailor\\\"], value: \\\"Activation\\\" },\\n            { keywords: [\\\"segmentation\\\", \\\"cdp\\\", \\\"crm\\\"], value: \\\"Audience\\\" },\\n            { keywords: [\\\"gdpr\\\", \\\"regulation\\\", \\\"privacy\\\", \\\"compliance\\\"], value: \\\"Privacy\\\" },\\n            { keywords: [\\\"bank\\\", \\\"finance\\\", \\\"financial\\\"], value: \\\"Financial Services\\\" },\\n            { keywords: [\\\"airline\\\", \\\"aviation\\\", \\\"transportation\\\", \\\"flight\\\", \\\"railway\\\", \\\"train\\\"], value: \\\"Transportation\\\" }\\n          ];\\n          var lowerCaseResult = result.map(value => value.toLowerCase());\\n          var toAdd = [];\\n          keywordMapping.forEach(function (mapping) {\\n            var hasMatch = mapping.keywords.some(function (keyword) {\\n              return lowerCaseResult.some(function (value) {\\n                return value.includes(keyword.toLowerCase());\\n              });\\n            });\\n            if (hasMatch && !result.includes(mapping.value)) {\\n              toAdd.push(mapping.value);\\n            }\\n          });\\n          toAdd.forEach(function (value) {\\n            if (!result.includes(value)) {\\n              result.push(value);\\n            }\\n          });\\n        } catch (e) {console.log('PianoTag - getTagsArray:' + e.toString())};\\n        /**\\n         * Add markup tags for pages containing vimeo and case studies\\n         **/\\n        try {\\n          // Vimeo video element detection\\n          if (document.querySelector('.framer-vimeo')) {\\n            if (!result.includes(\\\"Video\\\")) {\\n              result.push(\\\"Video\\\");\\n            }\\n          };\\n          // Case-study label element detection\\n          if (document.querySelector('h5.framer-text')?.innerText === \\\"CASE STUDY\\\") {\\n            result.push(\\\"Case Study\\\");\\n          }\\n        } catch (e) {}\\n        return result;\\n      },\\n      getTitle: function () {\\n        const pathname = window.location.pathname.substring(window.location.pathname.lastIndexOf('/') + 1);\\n        return this.QA((pathname === '') ? 'home' : pathname);\\n      },\\n      sendEvent: function (eventName, propertyObject) {\\n        try {\\n          if (propertyObject === undefined) {\\n            propertyObject = {};\\n          }\\n          if (typeof pa !== 'undefined') {\\n            pa.sendEvents([{name: eventName, data: propertyObject}]);\\n          } else {\\n            _paqueue.push(['sendEvents', [{name: eventName, data: propertyObject}]]);\\n          }\\n        } catch (e) {\\n          console.log('PianoTag - sendEvent:' + e.toString());\\n        }\\n      },\\n      sendEvents: function (events) {\\n        try {\\n          if (typeof pa !== 'undefined') {\\n            pa.sendEvents(events);\\n          } else {\\n            _paqueue.push(['sendEvents', events]);\\n          }\\n        } catch (e) {\\n          console.log('PianoTag - sendEvents:' + e.toString());\\n        }\\n      },\\n      sendExtraClickEvent: function (el) {\\n        try {\\n          var clickSelector = this.getSelectorTreeString(el);\\n          var position = this.getPosition(clickSelector);\\n          var patentLinkTag = null;\\n          \\n          if (clickSelector.includes('> body')) {\\n            let currentEl = el;\\n            while (currentEl && currentEl.tagName !== 'BODY') {\\n              if (currentEl.tagName === 'A') {\\n                patentLinkTag = currentEl;\\n                break;\\n              }\\n              currentEl = currentEl.parentElement;\\n            }\\n          }\\n          \\n          var isLinkTagWithoutHrefAttr = patentLinkTag && !patentLinkTag.hasAttribute('href');\\n          if (location.hostname === 'www.piano.io') {\\n            if (isLinkTagWithoutHrefAttr) {\\n              this.sendEvent('click.navigation', {\\n                click_position: position,\\n                click: el.innerText,\\n                scroll_depth: this.getCurrentPosition()\\n              });\\n            }\\n          }\\n        } catch (e) {\\n        }\\n      },\\n      sendPageDisplay: function () {\\n        try {\\n          this.beforeEventFullUrl = location.origin + location.pathname;\\n          this.beforeTitle = document.title;\\n          this.setProperty();\\n          this.sendEvent('page.display', {scroll_depth: 0.0});\\n        } catch (e) {\\n          this.sendError('PianoTag - sendPageDisplay: ' + e.toString());\\n        }\\n      },\\n      sendError: function (messageString) {\\n        try {\\n          this.sendEvent('qa.error', {'error_message': messageString});\\n        } catch (e) {\\n          console.log('PianoTag - sendError: ' + messageString);\\n        }\\n      },\\n      beforeEventFullUrl: '',\\n      beforeTitle: '',\\n      scrollEventQueue: [],\\n      scrollEventSent: false\\n    }\\n  })();\\n  (function () {\\n    if (_isRobot()) {\\n      return;\\n    }\\n    var cxIoScrollDepth2 = (function () {\\n      var _instance;\\n      var _observer;\\n      var _prnd;\\n      var _rootEl;\\n      var _dmpparams;\\n      var _targets = {};\\n      var _dmptype = \\\"scrollDepth\\\";\\n      var _pageSend = false;\\n      var _pageRate = 0;\\n      var _pageGroup = \\\"pos_in_page\\\";\\n      var _articleSend = false;\\n      var _articleRate = 0;\\n      var _articleGroup = \\\"pos_in_article\\\";\\n      var _frequency = 10;\\n      var _overrideRates = [25, 50, 75, 100];\\n      var _visibilityChangeStartTime = 3000;\\n      var _scrollDepthTag = \\\"cxscr\\\";\\n      var _init = function (dmpparams) {\\n        _pageSend = false;\\n        _pageRate = 0;\\n        _articleSend = false;\\n        _articleRate = 0;\\n        cxIoScrollDepth2.getStatus();\\n        if (_observer) {\\n          try {\\n            document.querySelectorAll(\\\"[id*='cxscr_']\\\").forEach(function (el) {\\n              var id = el.id;\\n              _observer.unobserve(_targets[id].element);\\n              _targets[id].element.parentNode.removeChild(_targets[id].element);\\n            });\\n            document.querySelector(\\\"[id='cxscr']\\\").remove();\\n            _observer = new IntersectionObserver(_ioCallback, {});\\n          } catch (e) {\\n          }\\n        }\\n        if (!_observer && window.IntersectionObserver) {\\n          _observer = new IntersectionObserver(_ioCallback, {});\\n        }\\n        _dmpparams = dmpparams;\\n        document.body.insertAdjacentHTML(\\\"beforeend\\\", '<div id=\\\"' + _scrollDepthTag + '\\\" style=\\\"opacity:0;\\\"/>');\\n        _rootEl = document.querySelector(\\\"#\\\" + _scrollDepthTag);\\n        _prnd = window.cX && window.cX.library && window.cX.library.m_rnd ? cX.library.m_rnd : 0;\\n        return true;\\n      };\\n      \\n      function _cutoffUserId(s) {\\n        return _cutoff(s, 40);\\n      }\\n      \\n      function _cutoff(s, len) {\\n        return s.slice(0, len).replace(/[\\\\x00-\\\\x1f\\\\x7f]/g, '').replace(/\\\\x20+/g, \\\"\\\\x20\\\");\\n      }\\n      \\n      var _sendDMPEvent = function (pos, group) {\\n        return; // no DMP\\n        var obj = {\\n          events: [{\\n            type: _dmptype,\\n            rnd: cX.library._randomString(),\\n            siteId: cX.library.m_siteId,\\n            prnd: _prnd,\\n            userIds: [{id: _cutoffUserId(cX.getUserId()), type: \\\"cx\\\"}],\\n            origin: _dmpparams.origin,\\n            segmentIds: undefined,\\n            customParameters: [{group: group, item: String(pos) + \\\"%\\\", type: \\\"string\\\"}]\\n          }]\\n        };\\n        if (navigator.sendBeacon) {\\n          navigator.sendBeacon(\\\"https://comcluster.cxense.com/dmp/push?persisted=\\\" + encodeURIComponent(_dmpparams.persistedQueryId), cX.JSON.stringify(obj));\\n        } else {\\n          cX.jsonpRequest(\\\"https://comcluster.cxense.com/dmp/push?callback={\\\" + \\\"{callback}\\\" + \\\"}&persisted=\\\" + encodeURIComponent(_dmpparams.persistedQueryId) + \\\"&json=\\\" + encodeURIComponent(cX.JSON.stringify(obj)));\\n        }\\n      };\\n      \\n      var _sendPAEvent = function (rate) {\\n        try {\\n          pianoj_utils.scrollEventQueue.push({\\n            name: 'page.scroll', data: {\\n              scroll_depth: rate / 100,\\n              device_timestamp_utc: (Date.now() + rate) / 1000,\\n              event_url_full: pianoj_utils.beforeEventFullUrl,\\n              page_title_html: pianoj_utils.beforeTitle\\n            }\\n          });\\n          if (rate === 100) {\\n            pianoj_utils.sendEvents(pianoj_utils.scrollEventQueue);\\n            pianoj_utils.scrollEventQueue = [];\\n          }\\n        } catch (e) {\\n        }\\n      }\\n      var _ioCallback = function (entries) {\\n        try {\\n          entries.forEach(function (entry) {\\n            if (entry.isIntersecting && entry.target) {\\n              var target = _targets[entry.target.id];\\n              if (target) {\\n                _getSelectors(target.selector, target.rate, target.mode).forEach(function (id) {\\n                  _observer.unobserve(_targets[id].element);\\n                  _targets[id].element.parentNode.removeChild(_targets[id].element);\\n                  delete _targets[id];\\n                  if ((target.mode == 1 || target.mode == 2) && target.rate == 100) {\\n                    _sendDMPEvent(_articleRate, _articleGroup);\\n                    _articleSend = false;\\n                  }\\n                });\\n                _recalcPos();\\n              }\\n            }\\n          });\\n        } catch (e) {\\n        }\\n      };\\n      var _sendPageUnload = function () {\\n        if (_pageSend) {\\n          _sendDMPEvent(_pageRate, _pageGroup);\\n          _pageSend = false;\\n        }\\n        if (_articleSend) {\\n          _sendDMPEvent(_articleRate, _articleGroup);\\n          _pageSend = false;\\n        }\\n        return true;\\n      };\\n      var _getSelectors = function (selector, rate, mode) {\\n        if (!rate) {\\n          rate = 100;\\n        } else {\\n          if (mode == 0 && _pageRate < rate) {\\n            _pageRate = rate;\\n            _sendPAEvent(rate)\\n          } else if ((mode == 1 || mode == 2) && _articleRate < rate) {\\n            _articleRate = rate;\\n            _sendPAEvent(rate)\\n          }\\n        }\\n        var ids = [];\\n        Object.keys(_targets).forEach(function (k) {\\n          if (_targets[k].selector === selector && _targets[k].rate <= rate) {\\n            ids.push(k);\\n          }\\n        });\\n        return ids;\\n      };\\n      var _buildScrollRate = function (step) {\\n        if (_overrideRates) {\\n          return _overrideRates;\\n        }\\n        var scrollRate = [];\\n        var numSteps = Math.floor(100 / step);\\n        for (var ii = 1.0; ii <= numSteps; ii++) {\\n          scrollRate.push(Math.floor(ii / numSteps * 100));\\n        }\\n        return scrollRate;\\n      };\\n      var _calculatePos = function (mode, selector) {\\n        var ret = {startY: 0, height: 0};\\n        var el = document.querySelector(selector);\\n        switch (mode) {\\n          case 0: // measure percentage relative to the entire page\\n            ret.height = document.documentElement.scrollHeight;\\n            break;\\n          case 1: // measure percentage of article\\n            if (el) {\\n              ret.startY = Math.floor(el.getBoundingClientRect().top + window.scrollY);\\n              ret.height = Math.floor((el.getBoundingClientRect().height));\\n            }\\n            break;\\n          case 2: // measure percentage relative to the end of the article\\n            if (el) {\\n              ret.height = Math.floor(el.getBoundingClientRect().top + window.scrollY);\\n            }\\n            break;\\n        }\\n        return ret;\\n      }\\n      var _recalcPos = function () {\\n        Object.keys(_targets).forEach(function (k) {\\n          var ret = _calculatePos(_targets[k].mode, _targets[k].selector);\\n          var pos = Math.floor(ret.height / 100 * _targets[k].rate) + ret.startY;\\n          _targets[k].element.style.top = pos + \\\"px\\\";\\n        });\\n      }\\n      var _startTracking = function (mode, selector, isForce) {\\n        if (!isForce && (_getSelectors(selector).length > 0 || !_observer)) {\\n          return;\\n        }\\n        var ret = _calculatePos(mode, selector);\\n        if (mode == 0) {\\n          _pageSend = true;\\n        } else if (mode == 1 || mode == 2) {\\n          _articleSend = true;\\n        }\\n        if (ret.height !== 0) {\\n          pianoj_utils.scrollEventQueue.push({\\n            name: 'page.scroll', data: {\\n              scroll_depth: 0.0,\\n              device_timestamp_utc: Date.now() / 1000,\\n              event_url_full: pianoj_utils.beforeEventFullUrl,\\n              page_title_html: pianoj_utils.beforeTitle\\n            }\\n          });\\n          _buildScrollRate(_frequency).forEach(function (rate) {\\n            var pos = Math.floor(ret.height / 100 * rate) + ret.startY;\\n            var id = \\\"cxscr_\\\" + Math.random().toString(32).substring(2);\\n            _rootEl.insertAdjacentHTML(\\\"beforeend\\\", \\\"<div id=\\\\\\\"\\\" + id + \\\"\\\\\\\" style=\\\\\\\"position:absolute;opacity:0;height:1px;top:\\\" + pos + \\\"px;\\\\\\\"/>\\\");\\n            _targets[id] = {\\n              selector: selector,\\n              rate: rate,\\n              element: document.querySelector(\\\"#\\\" + id),\\n              mode: mode\\n            };\\n            _observer.observe(_targets[id].element);\\n          });\\n        }\\n        var isOnIOS = navigator.userAgent.match(/iPad/i) || navigator.userAgent.match(/iPhone/i);\\n        var eventName = isOnIOS ? \\\"pagehide\\\" : \\\"beforeunload\\\";\\n        window.addEventListener(eventName, _sendPageUnload);\\n        setTimeout(function () {\\n          document.addEventListener(\\\"visibilitychange\\\", function () {\\n            if (document.visibilityState === \\\"hidden\\\") _sendPageUnload();\\n          });\\n        }, _visibilityChangeStartTime);\\n      };\\n      return {\\n        init: function (dmpparams, mode, selector, isForce) {\\n          if (typeof dmpparams !== \\\"object\\\") {\\n            return;\\n          }\\n          if (window.navigator.userAgent.toLowerCase().indexOf('msie') !== -1) {\\n            return;\\n          }\\n          if (window.navigator.userAgent.toLowerCase().indexOf('trident') !== -1) {\\n            return;\\n          }\\n          if (true) {\\n            _instance = _init(dmpparams);\\n          }\\n          if (mode === 0 || selector) {\\n            (function (f) {\\n              \\\"loading\\\" === document.readyState ? window.addEventListener(\\\"load\\\", f, false) : f();\\n            }(function () {\\n              _startTracking(mode, selector);\\n            }));\\n            if (isForce) {\\n              _startTracking(mode, selector, isForce);\\n            }\\n          }\\n          return _instance;\\n        },\\n        getTargets: function () {\\n          return _targets;\\n        },\\n        getStatus: function () {\\n          return {pageSend: _pageSend, pageRate: _pageRate, articleSend: _articleSend, articleRate: _articleRate};\\n        },\\n        setType: function (type) {\\n          if (typeof type === \\\"string\\\") {\\n            _dmptype = type;\\n          }\\n        },\\n        setPageGroup: function (group) {\\n          if (typeof group === \\\"string\\\") {\\n            _pageGroup = group;\\n          }\\n        },\\n        setArticleGroup: function (group) {\\n          if (typeof group === \\\"string\\\") {\\n            _articleGroup = group;\\n          }\\n        },\\n      };\\n    })();\\n    window.cxIoScrollDepth2 = cxIoScrollDepth2;\\n    \\n    // Polyfill of Object.assign\\n    \\\"function\\\" != typeof Object.assign && Object.defineProperty(Object, \\\"assign\\\", {\\n      value: function (d) {\\n        if (null == d) throw new TypeError(\\\"Cannot convert undefined or null to object\\\");\\n        for (var e = Object(d), b = 1; b < arguments.length; b++) {\\n          var a = arguments[b];\\n          if (null != a) for (var c in a) Object.prototype.hasOwnProperty.call(a, c) && (e[c] = a[c]);\\n        }\\n        return e;\\n      }, writable: !0, configurable: !0\\n    });\\n    \\n    \\n    function _isRobot() {\\n      var robot_strings = [\\\"preview\\\", \\\"phantomjs\\\", \\\"spider\\\", \\\"crawl\\\", \\\"cxense\\\", \\\"slurp\\\", \\\"read ahead agent\\\"];\\n      var re_bot = /\\\\bbot|bot\\\\b/;\\n      var ua = navigator.userAgent.toLowerCase();\\n      if (re_bot.test(ua)) {\\n        return true;\\n      } else {\\n        for (var i = 0; i < robot_strings.length; i++) {\\n          if (ua.indexOf(robot_strings[i]) != -1) {\\n            return true;\\n          }\\n        }\\n      }\\n      return ua.indexOf(\\\"mozilla\\\") == 0 && ua.indexOf(\\\" \\\") == -1;\\n    }\\n    \\n    var _cXcustom = function () {\\n      (window.cXcustom.q = window.cXcustom.q || []).push(arguments);\\n      _queueExecute();\\n    };\\n    _cXcustom.q = window.cXcustom && window.cXcustom.q ? window.cXcustom.q : [];\\n    window.cXcustom = _cXcustom;\\n    \\n    _queueExecute();\\n    \\n    function _queueExecute() {\\n      while (window.cXcustom.q && window.cXcustom.q.length > 0) {\\n        var command = window.cXcustom.q.shift();\\n        try {\\n          if (command[0] === \\\"scrollDepth4\\\") {\\n            cxIoScrollDepth2.init(command[1], command[2], command[3], command[4]);\\n          } else if (command[0] === \\\"selectorClickTracker\\\") {\\n            cxSelectorClickTracker.init(command[1], command[2], command[3], command[4]);\\n          }\\n        } catch (e) {\\n          console.log(e);\\n        }\\n      }\\n    }\\n  })();\\n  (function () {\\n    window.cxSelectorClickTracker = (function () {\\n      var _dmpparams;\\n      var _targets;\\n      var _sendExternal = false;\\n      var _instance;\\n      var _eventHandler;\\n      var _externalLabel = \\\"外部リンク\\\";\\n      var _targetTags = [\\\"a\\\"];\\n      var _intRegex = new RegExp(location.origin);\\n      var fileTypes = {\\n        'pdf': {category: 'Document'},\\n        'doc': {category: 'Document'},\\n        'docx': {category: 'Document'},\\n        'xls': {category: 'Document'},\\n        'xlsx': {category: 'Document'},\\n        'ppt': {category: 'Document'},\\n        'pptx': {category: 'Document'},\\n        'jpg': {category: 'Image'},\\n        'jpeg': {category: 'Image'},\\n        'png': {category: 'Image'},\\n        'gif': {category: 'Image'},\\n        'svg': {category: 'Image'},\\n        'webp': {category: 'Image'},\\n        'mp4': {category: 'Video'},\\n        'mov': {category: 'Video'},\\n        'avi': {category: 'Video'},\\n        'wmv': {category: 'Video'},\\n        'mkv': {category: 'Video'},\\n        'flv': {category: 'Video'},\\n        'm4v': {category: 'Video'},\\n        'apng': {category: 'Image'},\\n        'avif': {category: 'Image'}\\n      };\\n      var socialMediaSites = {\\n        'facebook.com': 'Facebook',\\n        'twitter.com': 'X',\\n        'x.com': 'X',\\n        'instagram.com': 'Instagram',\\n        'linkedin.com': 'LinkedIn',\\n        'pinterest.com': 'Pinterest',\\n        'tiktok.com': 'TikTok',\\n        'youtube.com': 'YouTube',\\n        'snapchat.com': 'Snapchat',\\n        'reddit.com': 'Reddit',\\n        'whatsapp.com': 'WhatsApp',\\n        'line.me': 'LINE',\\n        'mixi.jp': 'Mixi',\\n        'ameblo.jp': 'Ameba',\\n        'nicovideo.jp': 'Niconico',\\n        'hatena.ne.jp': 'Hatena'\\n      };\\n      \\n      var clickPositions = {\\n        'target_selector': 'position_label',\\n      }\\n      var clickPositionsArticle = {\\n        'target_selector': 'position_label',\\n      }\\n      \\n      function _init(eventHandler, targets) {\\n        _eventHandler = eventHandler;\\n        _startTracking();\\n        (function (f) {\\n          \\\"loading\\\" === document.readyState ? window.addEventListener(\\\"load\\\", f, false) : f();\\n        }(function () {\\n          _targets = targets.map(function (t) {\\n            var target = {};\\n            target.label = t.label || t.selector || \\\"no label\\\";\\n            var tag = t.tag ? t.tag.toLowerCase() : \\\"a\\\";\\n            if (_targetTags.indexOf(tag) == -1) {\\n              _targetTags.push(tag);\\n            }\\n            var sel = t.selector ? t.selector + \\\" \\\" + tag : tag;\\n            target.selector = t.selector || \\\"no selector\\\";\\n            target.links = Array.prototype.filter.call(document.querySelectorAll(sel), function (el) {\\n              return t.href ? el.href.match(t.href) : true;\\n            });\\n            return target;\\n          });\\n        }));\\n      }\\n      \\n      function _isSocialMedia(clickUrl) {\\n        var result = false;\\n        try {\\n          if (clickUrl && !clickUrl.startsWith('http')) {\\n            return result;\\n          }\\n          var urlObject = new URL(clickUrl);\\n          result = Object.keys(socialMediaSites).some(function (domain) {\\n            return urlObject.host.toLowerCase().endsWith(domain);\\n          })\\n        } catch (e) {\\n          pianoj_utils.sendError('PianoTag - _isSocialMedia: ' + e.toString());\\n        }\\n        return result;\\n      }\\n      \\n      function _socialMediaName(clickUrl) {\\n        try {\\n          var urlObject = new URL(clickUrl);\\n          var foundDomain = Object.keys(socialMediaSites).find(function (domain) {\\n            return urlObject.host.toLowerCase().endsWith(domain) || false;\\n          });\\n          return socialMediaSites[foundDomain] || '';\\n        } catch (e) {\\n          pianoj_utils.sendError('PianoTag - _socialMediaName: ' + e.toString());\\n          return '';\\n        }\\n      }\\n      \\n      function _downloadFileExtension(clickUrl) {\\n        try {\\n          var extension = clickUrl.substring(clickUrl.lastIndexOf('.') + 1).toLowerCase()\\n          if (fileTypes[extension]) {\\n            return extension;\\n          }\\n          return '';\\n        } catch (e) {\\n          return ''\\n        }\\n      }\\n      \\n      function _downloadFileType(clickUrl) {\\n        var result = {\\n          extension: '',\\n          category: '',\\n        }\\n        try {\\n          var extension = _downloadFileExtension(clickUrl);\\n          if (extension.length === 0) {\\n            return result;\\n          }\\n          if (fileTypes[extension]) {\\n            result.extension = extension.toUpperCase();\\n            result.category = fileTypes[extension].category;\\n          }\\n          \\n        } catch (e) {\\n        }\\n        return result;\\n      }\\n      \\n      function _startTracking() {\\n        window.addEventListener(\\\"mouseup\\\", _onClickEvent, false);\\n      }\\n      \\n      function _stopTracking() {\\n        window.removeEventListener(\\\"mouseup\\\", _onClickEvent, false);\\n      }\\n      \\n      function _isInternal(url) {\\n        return url.match(_intRegex) || url.charAt(0) === \\\"/\\\" || url.charAt(0) === \\\".\\\";\\n      }\\n      \\n      function _cutoffGroup(s) {\\n        return _cutoff(s, 20);\\n      }\\n      \\n      function _cutoffItem(s) {\\n        return _cutoff(s, 256);\\n      }\\n      \\n      function _cutoffUserId(s) {\\n        return _cutoff(s, 40);\\n      }\\n      \\n      function _cutoff(s, len) {\\n        return s.slice(0, len).replace(/[\\\\x00-\\\\x1f\\\\x7f]/g, '').replace(/\\\\x20+/g, \\\"\\\\x20\\\");\\n      }\\n      \\n      function _sendDMPEvent(dmpType, cps) {\\n        // Piano Analytics\\n        _sendClickToPa(cps);\\n        return;\\n        // Piano DMP\\n        if (cps.hasOwnProperty('clk_selector_tree')) {\\n          // delete unused value for PA\\n          delete cps['clk_selector_tree'];\\n        }\\n        var params = [];\\n        Object.keys(cps).forEach(function (k) {\\n          params.push({\\n            group: _cutoffGroup(k),\\n            item: _cutoffItem(cps[k]),\\n            type: typeof (cps[k]) === \\\"number\\\" ? \\\"number\\\" : \\\"string\\\"\\n          });\\n        });\\n        var obj = {\\n          events: [{\\n            type: dmpType,\\n            rnd: cX.library._randomString(),\\n            siteId: cX.library.m_siteId,\\n            prnd: cX.library.m_rnd,\\n            userIds: [{id: _cutoffUserId(cX.getUserId()), type: \\\"cx\\\"}],\\n            origin: _dmpparams.origin,\\n            customParameters: params\\n          }]\\n        };\\n        var url = \\\"https://comcluster.cxense.com/dmp/push?persisted=\\\" + encodeURIComponent(_dmpparams.persistedQueryId);\\n        if (navigator.sendBeacon) {\\n          navigator.sendBeacon(url, JSON.stringify(obj));\\n        } else {\\n          url = url + \\\"&callback={\\\" + \\\"{callback}\\\" + \\\"}&json=\\\" + encodeURIComponent(JSON.stringify(obj));\\n          cX.jsonpRequest(url);\\n        }\\n      }\\n      \\n      function _sendPAEvent(dmpType, cps) {\\n        _sendClickToPa(cps)\\n      }\\n      \\n      function _getGoalType(url) {\\n        if (location.hostname === 'www.piano.io') {\\n          if (url.indexOf('/request-a-demo') !== -1) {\\n            return 'Demo request CTA clicked';\\n          } else if (url.indexOf('/newsletter') !== -1) {\\n            return 'Newsletter CTA clicked';\\n          } else if (url.indexOf('/partner-up') !== -1) {\\n            return 'Partner CTA clicked';\\n          }\\n        }\\n        return '';\\n      }\\n      \\n      function _sendClickToPa(cps) {\\n        // send Piano Analytics events\\n        try {\\n          var properties = {\\n            click: '',\\n            click_exittype: '',\\n            click_position: '',\\n            click_targeturl: '',\\n            //click_selector: '', disabled sendExtraClickEvent in _onClickEvent\\n            download_category: '',\\n            download_filetype: '',\\n            goal_type: '',\\n            scroll_depth: pianoj_utils.getCurrentPosition()\\n          }\\n          if (!cps.hasOwnProperty('clk_url') || !cps['clk_url']) {\\n            return;\\n          }\\n          var selectorTreeString = '';\\n          if (typeof cps['clk_selector_tree'] !== 'undefined') {\\n            selectorTreeString = cps['clk_selector_tree'];\\n            properties.click_position = pianoj_utils.getPosition(selectorTreeString);\\n            //properties.click_selector = selectorTreeString;\\n          }\\n          Object.keys(cps).forEach(function (k) {\\n            cps[k] = cps[k].replace(/[\\\\x00-\\\\x1f\\\\x7f]/g, '').replace(/\\\\x20+/g, \\\"\\\\x20\\\").trim();\\n          });\\n          if (typeof cps['clk_url'] !== 'undefined') {\\n            var clickType = _isInternal(cps['clk_url']) ? 'click.navigation' : 'click.exit';\\n            var isSocial = _isSocialMedia(cps['clk_url']);\\n            var fileTyp = _downloadFileType(cps['clk_url']);\\n            properties.click = cps['clk_text'].length > 0 ? cps['clk_text'] : cps['clk_url'];\\n            properties.click_targeturl = cps['clk_url'];\\n            if (isSocial) {\\n              clickType = 'click.exit';\\n              properties.click_exittype = _socialMediaName(cps['clk_url']);\\n            } else if (clickType === 'click.exit') {\\n              properties.click_exittype = 'other';\\n            }\\n            // scroll page by anchor link\\n            if (cps['clk_url'].replace(location.origin + location.pathname + location.search, '').startsWith('#')) {\\n              clickType = 'click.shift';\\n            }\\n            \\n            // goal type\\n            var goalType = _getGoalType(cps['clk_url']);\\n            if (goalType) {\\n              properties.goal_type = goalType;\\n            }\\n            \\n            // file download event\\n            if (fileTyp.category) {\\n              clickType = 'click.download';\\n              properties.download_filetype = fileTyp.extension;\\n              properties.download_category = fileTyp.category;\\n            }\\n            \\n            pianoj_utils.sendEvent(clickType, properties);\\n          }\\n        } catch (e) {\\n          console.log(e);\\n        }\\n      }\\n      \\n      function _onClickEvent(event) {\\n        var ev = event || window.event;\\n        var target = {};\\n        if (ev) {\\n          var el = ev.target || ev.srcElement;\\n          pianoj_utils.sendExtraClickEvent(el);\\n          while (el && el.nodeName.toLowerCase() !== \\\"body\\\") {\\n            if (el.nodeType === 1 && _targetTags.indexOf(el.nodeName.toLowerCase()) > -1) {\\n              _targets.some(function (t) {\\n                var matched = t.links.filter(function (l) {\\n                  return el === l;\\n                })[0];\\n                if (matched) {\\n                  target = {label: t.label || t.selector || \\\"\\\", selector: t.selector || \\\"\\\", el: el};\\n                  return true;\\n                }\\n              });\\n              if (!target.el && _sendExternal) {\\n                target = {label: _externalLabel, selector: \\\"external\\\", el: el, isExternal: false};\\n                if (!_isInternal(el.href)) {\\n                  target.isExternal = true;\\n                }\\n                break;\\n              }\\n              if (target.el) {\\n                break;\\n              }\\n            }\\n            el = el.parentNode;\\n          }\\n        }\\n        if (target.el && (typeof target.isExternal === 'undefined' || target.isExternal)) {\\n          _eventHandler(_sendDMPEvent, target);\\n          return true;\\n        }\\n        if (target.el) {\\n          _eventHandler(_sendPAEvent, target);\\n          return true;\\n        }\\n        return true;\\n      }\\n      \\n      return {\\n        init: function (dmpparams, targets, sendExternal, eventHandler) {\\n          var error = false;\\n          if (typeof dmpparams === \\\"object\\\" && dmpparams.origin && dmpparams.persistedQueryId) {\\n            _dmpparams = dmpparams;\\n          } else {\\n            console.log(\\\"invalid dmpparams.\\\");\\n            error = true;\\n          }\\n          if (!Array.isArray(targets)) {\\n            console.log(\\\"use array for targets.\\\");\\n            error = true;\\n          }\\n          if (typeof sendExternal === \\\"boolean\\\") {\\n            _sendExternal = sendExternal;\\n          } else {\\n            console.log(\\\"invalid sendExternal.\\\");\\n            error = true;\\n          }\\n          if (!error && !_instance) {\\n            _instance = this;\\n            _init(eventHandler, targets);\\n          }\\n          return _instance;\\n        },\\n        stop: function () {\\n          _stopTracking();\\n          _instance = undefined;\\n        },\\n        getTargets: function () {\\n          return _targets;\\n        },\\n        setExternalLabel: function (s) {\\n          _externalLabel = s;\\n        }\\n      };\\n    })();\\n  })();\\n  \\n  (function () {\\n    function injectVimeoAPI() {\\n      if (!document.querySelector('script[src*=\\\"player.vimeo.com/api/player.js\\\"]')) {\\n        var tag = document.createElement('script');\\n        tag.src = 'https://player.vimeo.com/api/player.js';\\n        var firstScriptTag = document.getElementsByTagName('script')[0];\\n        firstScriptTag.parentNode.insertBefore(tag, firstScriptTag);\\n      }\\n    }\\n    \\n    var vimeoSdkLoaded = false;\\n    \\n    function trackingVideoWaitSdk() {\\n      const waitSdk = setInterval(() => {\\n        if (typeof Vimeo !== 'undefined') {\\n          clearInterval(waitSdk);\\n          const vimeoIframes = document.querySelectorAll('iframe[src*=\\\"vimeo.com\\\"]');\\n          vimeoIframes.forEach((iframe) => {\\n            if (!iframe._vimeoPlayerInitialized) {\\n              const player = new Vimeo.Player(iframe);\\n              const paVideo = new pa.avInsights.Media(5, 5)\\n              player.getVideoTitle().then(function (title) {\\n                player.on('loaded', function (data) {\\n                  paVideo.setProps({\\n                    av_content_id: String(data.id),\\n                    av_content: title,\\n                    av_channel: 'Vimeo',\\n                    av_player: 'EmbeddedPlayer'\\n                  });\\n                  console.log(data);\\n                });\\n                player.on('play', function (data) {\\n                  if (data.seconds === 0) {\\n                    paVideo.setProps({av_content_duration: data.duration * 1000});\\n                    paVideo.playbackStart(0);\\n                  } else {\\n                    paVideo.playbackResumed(data.seconds * 1000);\\n                  }\\n                  console.log(data);\\n                });\\n                player.on('pause', function (data) {\\n                  paVideo.playbackPaused(data.seconds * 1000);\\n                  console.log(data);\\n                });\\n                player.on('ended', function (data) {\\n                  paVideo.playbackStopped(data.seconds * 1000);\\n                  console.log(data);\\n                });\\n              }).catch(function (error) {\\n                console.error('Error occured when retrieving metadata:', error);\\n              });\\n              iframe._vimeoPlayerInitialized = true;\\n            }\\n          });\\n        }\\n      }, 800);\\n    }\\n    \\n    function observeBodyForVimeoIframes() {\\n      const observer = new MutationObserver(function () {\\n        if (document.querySelectorAll('iframe[src*=\\\"vimeo.com\\\"]').length > 0 && vimeoSdkLoaded === false) {\\n          vimeoSdkLoaded = true;\\n          injectVimeoAPI();\\n          observer.disconnect();\\n          trackingVideoWaitSdk();\\n        }\\n      });\\n      window.addEventListener('DOMContentLoaded', function () {\\n        observer.observe(document.body, {childList: true, subtree: true});\\n      });\\n    }\\n    \\n    observeBodyForVimeoIframes();\\n  })();\\n</script>\\n\\n<!-- tracking code -->\\n<script>\\n  (function () {\\n    try {\\n      pianoj_utils.sendPageDisplay();\\n      \\n      if (document.querySelector('body')) {\\n        cxIoScrollDepth2.init({origin: \\\"dummy\\\", persistedQueryId: \\\"dummy\\\"}, 1, \\\"body\\\");\\n      }\\n      \\n      try {\\n        var _sendPageUnload = function () {\\n          if (!pianoj_utils.scrollEventSent) {\\n            pianoj_utils.scrollEventSent = true;\\n            if (pianoj_utils.scrollEventQueue.length > 0) {\\n              pianoj_utils.sendEvents(pianoj_utils.scrollEventQueue);\\n              pianoj_utils.scrollEventQueue = [];\\n            }\\n          }\\n        }\\n        window.addEventListener(navigator.userAgent.match(/iPad|iPhone/i) ? \\\"pagehide\\\" : \\\"beforeunload\\\", _sendPageUnload);\\n        document.addEventListener(\\\"visibilitychange\\\", function () {\\n          if (document.hidden) {\\n            _sendPageUnload();\\n          }\\n        });\\n        \\n      } catch (e) {\\n      }\\n      \\n      // click tracking\\n      if (typeof cxSelectorClickTracker === \\\"object\\\") {\\n        cxSelectorClickTracker.init({origin: \\\"dummy\\\", persistedQueryId: \\\"dummy\\\"}, [{\\n          label: \\\"LinkTracking\\\",\\n          selector: 'a'\\n        }], true, function (customSendEvent, target) {\\n          var params = {};\\n          try {\\n            params.clk_selector_tree = pianoj_utils.getSelectorTreeString(target.el)\\n          } catch (e) {\\n          }\\n          params.clk_text = target.el.textContent;\\n          params.clk_url = target.el.href;\\n          params.clk_domain = target.el.href.replace(/.+:\\\\/\\\\//, \\\"\\\").split(\\\"/\\\")[0];\\n          customSendEvent(\\\"clickTrack\\\", params)\\n        });\\n      }\\n    } catch (e) {\\n      console.log('Piano Analytics:' + e);\\n    }\\n    \\n    // for SPA pages\\n    function addPushStateListener(listener) {\\n      if (!Proxy) return;\\n      window.history.pushState = new Proxy(window.history.pushState, {\\n        apply: (target, thisArg, argArray) => {\\n          target.apply(thisArg, argArray);\\n          listener();\\n        },\\n      });\\n    }\\n    \\n    addPushStateListener(() => {\\n      setTimeout(() => {\\n        if (!pianoj_utils.scrollEventSent) {\\n          pianoj_utils.scrollEventSent = true;\\n          pianoj_utils.sendEvents(pianoj_utils.scrollEventQueue);\\n          pianoj_utils.scrollEventSent = false;\\n          pianoj_utils.scrollEventQueue = [];\\n        }\\n        pianoj_utils.setProperty();\\n        pianoj_utils.sendPageDisplay();\\n        cxIoScrollDepth2.init({origin: \\\"dummy\\\", persistedQueryId: \\\"dummy\\\"}, 1, \\\"body\\\", true);\\n        try {tp.push([\\\"setAid\\\", ((location.pathname.startsWith('/ja/')) ? 'XwLyCZUfpj' : 'CCJofGiYpu')]);} catch (e) {}\\n        try {tp.push([\\\"setEndpoint\\\", 'https://buy' + ((location.pathname.startsWith('/ja/')) ? '-ap' : '') + '.piano.io/api/v3']); } catch (e) {}\\n        try {tp.push([\\\"setTags\\\", pianoj_utils.getTagsArray()])} catch (e) {}\\n        try {tp.push([\\\"setContentSection\\\", pianoj_utils.getChapter().chapter1.capitalize()])} catch (e) {}\\n        try {tp.push([\\\"setContentCreated\\\", pianoj_utils.getPublishedDate()]);} catch (e) {}\\n        try {tp.experience.execute()} catch (e) {}\\n      }, 500)\\n    });\\n  })();\\n</script>\",customHTMLHeadEnd:'<!-- Piano Analytics -->\\n<script>\\n  window.pdl = window.pdl || {};\\n  window.pdl.requireConsent = \"v2\";\\n  window.pdl.consent = {\\n    defaultPreset: {\\n      PA: \"essential\",\\n    },\\n  };\\n  window._pac = window._pac || {};\\n  window._pac.site = 619784;\\n  window._pac.collectDomain = \"https://fqwcfzg.pa-cd.com\";\\n  window._pac.campaignPrefix = [\\'at_\\', \\'utm_\\'];\\n  window._pac.enableUTMTracking = true;\\n  window._pac.addEventURL = true;\\n  window._pac.queueVarName = \\'_paqueue\\'; // set the queue variable name\\n  \\n  window._paqueue = window._paqueue || [];\\n</script>\\n<script type=\"text/javascript\" crossorigin=\"anonymous\" src=\"https://tag.aticdn.net/piano-analytics.js\"></script>\\n<!-- Adtech & consent -->\\n<script>\\n  // Consent by default Microsoft Advertising\\n  window.uetq = window.uetq || [];\\n  window.uetq.push(\"consent\", \"default\", {\\n    ad_storage: \"denied\",\\n  });\\n  function loadScript(file, id) {\\n    const newScript = document.createElement(\\'script\\');\\n    newScript.setAttribute(\\'src\\', file);\\n    newScript.setAttribute(\\'type\\', \\'text/javascript\\');\\n    newScript.setAttribute(\\'async\\', \\'true\\');\\n    if (id) newScript.setAttribute(\\'id\\', id);\\n    newScript.onload = () => console.log(`${file} loaded successfully.`);\\n    newScript.onerror = () => console.error(`Error loading script: ${file}`);\\n    document.head.appendChild(newScript);\\n  }\\n  // Microsoft Advertising (Bing UET)\\n  function loadMicrosoft() {\\n    (function (w, d, t, r, u) {\\n      var f, n, i;\\n      w[u] = w[u] || [];\\n      f = function () {\\n        var o = {\\n          ti: \"97171121\", // Ton ID UET\\n          enableAutoSpaTracking: true\\n        };\\n        o.q = w[u];\\n        w[u] = new UET(o);\\n        w[u].push(\"pageLoad\");\\n      };\\n      n = d.createElement(t);\\n      n.src = \"//bat.bing.com/bat.js\";\\n      n.async = 1;\\n      n.onload = n.onreadystatechange = function () {\\n        var s = this.readyState;\\n        if (!s || s === \"loaded\" || s === \"complete\") {\\n          f();\\n          n.onload = n.onreadystatechange = null;\\n        }\\n      };\\n      i = d.getElementsByTagName(t)[0];\\n      i.parentNode.insertBefore(n, i);\\n    })(window, document, \"script\", \"//bat.bing.com/bat.js\", \"uetq\");\\n  }\\n  function load6Sense() {\\n    loadScript(\"https://j.6sc.co/j/95d96fdf-3cea-4b7e-bde6-f81fff6a050a.js\", \"6senseWebTag\");\\n  }\\n  function loadGoogle() {\\n    loadScript(\"https://www.googletagmanager.com/gtag/js?id=AW-411313016\");\\n    window.dataLayer = window.dataLayer || [];\\n    function gtag() { dataLayer.push(arguments); }\\n    gtag(\\'js\\', new Date());\\n    gtag(\\'config\\', \\'AW-411313016\\');\\n  }\\n  function loadPardot() {\\n    piAId = \\'898611\\';\\n    piCId = \\'31570\\';\\n    piHostname = \\'pi.pardot.com\\';\\n    (function () {\\n      var async_load = function () {\\n        var s = document.createElement(\\'script\\'); s.type = \\'text/javascript\\';\\n        s.src = (\\'https:\\' == document.location.protocol ? \\'https://pi\\' : \\'http://cdn\\') + \\'.pardot.com/pd.js\\';\\n        var c = document.getElementsByTagName(\\'script\\')[0]; c.parentNode.insertBefore(s, c);\\n      };\\n      async_load();\\n    })();\\n  }\\n  function loadSalesloft() {\\n    (function (i, s, o, g, r, a, m) {\\n      i[\\'SLScoutObject\\'] = r; i[r] = i[r] || function () {\\n        (i[r].q = i[r].q || []).push(arguments)\\n      }, i[r].l = 1 * new Date(); a = s.createElement(o),\\n        m = s.getElementsByTagName(o)[0]; a.async = 1; a.src = g; m.parentNode.insertBefore(a, m)\\n    })(window, document, \\'script\\', \\'https://scout-cdn.salesloft.com/sl.js\\', \\'slscout\\');\\n    slscout([\"init\", \"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ0IjoxMTEzNDd9.LXoOpeqJAYul2HvM3UOyy6gqfaEBLyNmEepXThOi5ZM\"]);\\n  }\\n  function loadLinkedIn() {\\n    _linkedin_partner_id = \"3117068\";\\n    window._linkedin_data_partner_ids = window._linkedin_data_partner_ids || [];\\n    window._linkedin_data_partner_ids.push(_linkedin_partner_id);\\n    (function () {\\n      var s = document.getElementsByTagName(\"script\")[0];\\n      var b = document.createElement(\"script\");\\n      b.id = \"tc_script_140_1\";\\n      b.type = \"text/javascript\";\\n      b.async = true;\\n      b.src = \"https://snap.licdn.com/li.lms-analytics/insight.min.js\";\\n      s.parentNode.insertBefore(b, s);\\n    })();\\n  }\\n  //  Fonction pour d\\xe9tecter si on est sur une page japonaise\\n  function isJapanesePage() {\\n    return window.location.pathname.startsWith(\\'/ja/\\') || window.location.pathname === \\'/ja\\';\\n  }\\n  \\n  //  Axeptio + configuration conditionnelle\\n  window.axeptioSettings = {\\n    clientId: \"66535f89c5666c346d518667\",\\n    cookiesVersion: isJapanesePage() ? \"en-26-05-2024_Cp_Cp\" : \"en-26-05-2024_Cp\",\\n  };\\n  (function (d, s) {\\n    var t = d.getElementsByTagName(s)[0], e = d.createElement(s);\\n    e.async = true; e.src = \"//static.axept.io/sdk.js\";\\n    t.parentNode.insertBefore(e, t);\\n  })(document, \"script\");\\n  window._axcb = window._axcb || [];\\n  window._axcb.push(function (axeptio) {\\n    axeptio.on(\"cookies:open\", function () {\\n      window._paqueue.push([\\'sendEvent\\', \\'consent.display\\', {}]);\\n    });\\n    axeptio.on(\"consent:saved\", function (choices, stats) {\\n      if (!stats) {\\n        const total  = Object.keys(choices).length;\\n        const accept = Object.values(choices).filter(Boolean).length;\\n        const reject = total - accept;\\n        stats = { total, accept, reject };\\n      }\\n      \\n      const allAccepted = stats.accept === stats.total;\\n      const allRejected = stats.reject === stats.total;\\n      \\n      const privacy_consent_type  = allRejected ? false : true;\\n      const privacy_consent_value = allAccepted ? \"full\" : (allRejected ? \"refusal\" : \"partial\");\\n      \\n      window._paqueue.push([\\'sendEvent\\', \\'consent.answer\\', {\\n        privacy_consent_type,\\n        privacy_consent_value\\n      }]);\\n    });\\n    axeptio.on(\"cookies:complete\", function (choices) {\\n      if (choices[\\'Piano Analytics\\']) {\\n        window._paqueue.push([\\'consent.setByPurpose\\', \\'AM\\', \\'opt-in\\']);\\n      } else {\\n        window._paqueue.push([\\'consent.setByPurpose\\', \\'AM\\', \\'essential\\']);\\n      }\\n      // Microsoft Consent + chargement si accept\\xe9\\n      if (choices.microsoft) {\\n        window.uetq.push(\"consent\", \"update\", { ad_storage: \"granted\" });\\n        loadMicrosoft();\\n      } else {\\n        window.uetq.push(\"consent\", \"update\", { ad_storage: \"denied\" });\\n      }\\n      // Autres tags tiers\\n      if (choices.CloudFlare || choices.cloudflare) {\\n        // do something\\n      }\\n      if (choices.Google_Conversion_Tracking || choices.google_conversion_tracking) {\\n        loadGoogle();\\n      }\\n      if (choices.Linkedin || choices.linkedin) {\\n        loadLinkedIn();\\n      }\\n      if (choices.pardot) {\\n        loadPardot();\\n      }\\n      if (choices.salesloft) {\\n        loadSalesloft();\\n      }\\n      if (choices[\\'6sense\\']) {\\n        load6Sense();\\n      }\\n    });\\n  });\\n</script>\\n<!-- Composer -->\\n<script>\\n  (function(src){var a=document.createElement(\"script\");a.type=\"text/javascript\";a.async=true;a.src=src;var b=document.getElementsByTagName(\"script\")[0];b.parentNode.insertBefore(a,b)})(\"https://experience\" + ((location.pathname.startsWith(\\'/ja/\\')) ? \\'-ap\\' : \\'\\') +\".piano.io/xbuilder/experience/load?aid=\" + ((location.pathname.startsWith(\\'/ja/\\')) ? \\'XwLyCZUfpj\\' : \\'CCJofGiYpu\\'));\\n</script>',description:getLocalizedValue(\"v1\",activeLocale)??\"Welcome to Piano, the leading platform for data analytics, audience segmentation, and customer engagement. Discover how we help businesses grow through data-driven insights.\",favicon:\"https://framerusercontent.com/assets/ZbXxnYv5vwACt39Aq0wGkbT0no4.png\",robots:\"max-image-preview:large\",socialImage:\"https://framerusercontent.com/assets/r3Cftn7X8Pm5R1ReKYJUAAdsZH4.png\",title:getLocalizedValue(\"v0\",activeLocale)??\"Piano | Data-Driven Customer Engagement Solutions\"};}export const metadataVersion=1;\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"metadataVersion\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],"mappings":"8JAC8B,GAAU,UAAU,CAAC,yBAAyB,CAAC,CAAc,EAAM,CAAC,CAAC,cAAc,GAAK,MAAM,CAAC,CAAC,OAAO,kBAAkB,OAAO,SAAS,IAAI,sEAAsE,CAAC,CAAC,CAAC,CAAc,EAAI,CAAC,wuBAAwuB,8xBAA8xB,2xBAA2xB,CAAc,EAAU,kBCAv7E,SAAS,EAAkB,EAAI,EAAO,CAAC,KAAM,GAAO,CAAC,IAAM,EAAO,EAAiB,EAAO,IAAI,GAAG,EAAO,CAAC,IAAM,EAAM,EAAO,GAAK,GAAG,EAAM,OAAO,EAAO,EAAO,EAAO,UAAW,SAAwB,EAAS,EAAO,EAAa,CAAC,MAAM,CAAC,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAAsl/C,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAAwwO,YAAY,EAAkB,KAAK,EAAa,EAAE,gLAAgL,QAAQ,uEAAuE,OAAO,0BAA0B,YAAY,uEAAuE,MAAM,EAAkB,KAAK,EAAa,EAAE,oDAAoD,iBAAxvvD,EAAiB,CAAC,UAAU,CAAC,GAAG,sBAAsB,GAAG,wEAAwE,CAAC"}