typeof process!=="undefined"&&process.env&&"production"==="test";function n(){(function(n,t,e,o,i){if(typeof window.btntConfig!=="object"){window.btntConfig={domain:"https://ssgtm.infineon.com",withCookies:true,maxBatchSize:10}}if(window["btnt"])return;window["btnt"]=function(n){if(typeof n!=="object"){n={}}if(typeof window.btntQueue!=="object"){window.btntQueue=[]}window.btntQueue.push(n)};o=n.createElement(t);i=n.getElementsByTagName(t)[0];if(i&&i.parentNode){o.async=1;o.src=window.btntConfig.domain+"/btnt.js";i.parentNode.insertBefore(o,i)}})(document,"script")}function t(t,e){const o=["jest","localhost","error"];if(o.includes(e)){return}if(!window.INFINEON_TRACKED_COMPONENTS){window.INFINEON_TRACKED_COMPONENTS=new Set}if(window.INFINEON_TRACKED_COMPONENTS.has(t)){return}window.INFINEON_TRACKED_COMPONENTS.add(t);if(!window.btnt)n();window.btnt({event_name:"component_initialized",component_name:t,environment:e})}const e=()=>new Promise((n=>{if(document.readyState==="complete"||document.readyState==="interactive"){n()}else{const t=()=>{n();document.removeEventListener("DOMContentLoaded",t)};document.addEventListener("DOMContentLoaded",t)}}));let o=null;const i=async()=>{if(o)return o;if(typeof window==="undefined"||typeof document==="undefined"){o="non-browser";return o}const n=window;const t=document;typeof process!=="undefined"&&process.env&&"production"==="test";const i=n.location.search.includes("viewMode")||n.location.href.includes("viewMode")||n.__STORYBOOK_ENV__;if(i){o="Storybook";return o}const r=["localhost","127.0.0.1"].includes(n.location.hostname);if(r){o="localhost";return o}try{if(n.React||n.ReactDOM){o="React";return o}if(n.ng||n.getAllAngularRootElements){o="Angular";return o}if(n.Vue||n.__VUE__){o="Vue";return o}await e();const i=t.querySelector("[data-reactroot], [data-reactid]");if(i){o="React";return o}const r=Array.from(t.querySelectorAll("body > div"));const c=r.some((n=>{const t=Object.keys(n);return t.some((n=>n.startsWith("__reactContainer")))}));if(c){o="React";return o}if(t.querySelector("[ng-version], [ng-app]")){o="Angular";return o}if(t.querySelector("[data-v-app]")){o="Vue";return o}o="Vanilla";return o}catch(n){o="error";return o}};export{i as d,t};
//# sourceMappingURL=p-DcmcuUOA.js.map