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OAAOG,SAASC,KAAOJ,OAAOG,SAASmC,QAAUvC,GAAY,KAAO,2B","sources":["webpack://@dwp/solution-builder/./packages/App/boot.ts"],"sourcesContent":["import './boot.css';\r\n\r\ndeclare global {\r\n\tinterface Window {\r\n\t\tforceReload: () => void;\r\n\t}\r\n}\r\n\r\nwindow.forceReload = () => {\r\n\tconst delimiter = window.location.href.includes('?') ? '&' : '?';\r\n\twindow.location.href = `${window.location.href + delimiter}cacheBreaker=${Math.random()}`;\r\n};\r\n\r\n// Checks whether the base Path equals to location.pathname with case-sensitive.\r\n// If the register doesn't match, the base Path will be substituted by value from location.pathname as template for all relative URLs in a document.\r\nlet basePath;\r\nconst baseElement = document.getElementsByTagName('base')[0];\r\nif (baseElement) {\r\n\tconst attrHref = baseElement.attributes.getNamedItem('href');\r\n\tif (!!attrHref && !!attrHref.value && attrHref.value !== '/') {\r\n\t\tbasePath = attrHref.value.replace(/^(https?:)?\\/\\/[^/]*/, '').toLowerCase();\r\n\t\tconst pathname = window.location.pathname.toLowerCase();\r\n\t\tconst startIndex = pathname.indexOf(basePath);\r\n\t\tif (startIndex !== -1) {\r\n\t\t\tattrHref.value = window.location.pathname.substring(startIndex, basePath.length);\r\n\t\t}\r\n\t}\r\n}\r\n\r\nfunction get_browser_info() {\r\n\tconst ua = navigator.userAgent;\r\n\tlet tem,\r\n\t\tM = ua.match(/(opera|chrome|safari|firefox|msie|trident(?=\\/))\\/?\\s*(\\d+)/i) || [];\r\n\tif (/trident/i.test(M[1])) {\r\n\t\ttem = /\\brv[ :]+(\\d+)/g.exec(ua) || [];\r\n\t\treturn { name: 'IE', version: tem[1] || '' };\r\n\t}\r\n\tif (M[1] === 'Chrome') {\r\n\t\ttem = ua.match(/\\bOPR\\/(\\d+)/);\r\n\t\tif (tem !== null) {\r\n\t\t\treturn { name: 'Opera', version: tem[1] };\r\n\t\t}\r\n\t}\r\n\tM = M[2] ? [M[1], M[2]] : [navigator.appName, navigator.appVersion, '-?'];\r\n\tif ((tem = ua.match(/version\\/(\\d+)/i)) !== null) {\r\n\t\tM.splice(1, 1, tem[1]);\r\n\t}\r\n\treturn {\r\n\t\tname: M[0],\r\n\t\tversion: M[1],\r\n\t};\r\n}\r\n\r\nconst browser = get_browser_info();\r\n\r\n// Checks the browser name and version.\r\n// This checking should be before loading any scripts and DOM elements that could make critical changes in processing of page (e.g. redefining location).\r\n// In case the browser is not supported we will be redirected to the proper page with an appropriate describing.\r\nconst browserIsSupported = !(\r\n\t((browser.name === 'IE' || browser.name === 'MSIE') && parseInt(browser.version, 10) <= 11) ||\r\n\t(browser.name === 'Safari' && parseInt(browser.version, 10) <= 5)\r\n);\r\n\r\nif (!browserIsSupported) {\r\n\twindow.location.href = window.location.origin + (basePath || '/') + 'unsupported-browser.html';\r\n}\r\n"],"names":["basePath","window","forceReload","delimiter","location","href","includes","Math","random","baseElement","document","getElementsByTagName","attrHref","attributes","getNamedItem","value","replace","toLowerCase","startIndex","pathname","indexOf","substring","length","browser","ua","navigator","userAgent","tem","M","match","test","exec","name","version","appName","appVersion","splice","get_browser_info","parseInt","origin"],"sourceRoot":""}