{"version":3,"file":"speech-language-pathologist.js","sources":["speech-language-pathologist.js"],"sourcesContent":["var tns = (function (){\r\nvar win = window;\r\n\r\nvar raf = win.requestAnimationFrame\r\n || win.webkitRequestAnimationFrame\r\n || win.mozRequestAnimationFrame\r\n || win.msRequestAnimationFrame\r\n || function(cb) { return setTimeout(cb, 16); };\r\n\r\nvar win$1 = window;\r\n\r\nvar caf = win$1.cancelAnimationFrame\r\n || win$1.mozCancelAnimationFrame\r\n || function(id){ clearTimeout(id); };\r\n\r\nfunction extend() {\r\n var obj, name, copy,\r\n target = arguments[0] || {},\r\n i = 1,\r\n length = arguments.length;\r\n\r\n for (; i < length; i++) {\r\n if ((obj = arguments[i]) !== null) {\r\n for (name in obj) {\r\n copy = obj[name];\r\n\r\n if (target === copy) {\r\n continue;\r\n } else if (copy !== undefined) {\r\n target[name] = copy;\r\n }\r\n }\r\n }\r\n }\r\n return target;\r\n}\r\n\r\nfunction checkStorageValue (value) {\r\n return ['true', 'false'].indexOf(value) >= 0 ? JSON.parse(value) : value;\r\n}\r\n\r\nfunction setLocalStorage(storage, key, value, access) {\r\n if (access) {\r\n try { storage.setItem(key, value); } catch (e) {}\r\n }\r\n return value;\r\n}\r\n\r\nfunction getSlideId() {\r\n var id = window.tnsId;\r\n window.tnsId = !id ? 1 : id + 1;\r\n \r\n return 'tns' + window.tnsId;\r\n}\r\n\r\nfunction getBody () {\r\n var doc = document,\r\n body = doc.body;\r\n\r\n if (!body) {\r\n body = doc.createElement('body');\r\n body.fake = true;\r\n }\r\n\r\n return body;\r\n}\r\n\r\nvar docElement = document.documentElement;\r\n\r\nfunction setFakeBody (body) {\r\n var docOverflow = '';\r\n if (body.fake) {\r\n docOverflow = docElement.style.overflow;\r\n //avoid crashing IE8, if background image is used\r\n body.style.background = '';\r\n //Safari 5.13/5.1.4 OSX stops loading if ::-webkit-scrollbar is used and scrollbars are visible\r\n body.style.overflow = docElement.style.overflow = 'hidden';\r\n docElement.appendChild(body);\r\n }\r\n\r\n return docOverflow;\r\n}\r\n\r\nfunction resetFakeBody (body, docOverflow) {\r\n if (body.fake) {\r\n body.remove();\r\n docElement.style.overflow = docOverflow;\r\n // Trigger layout so kinetic scrolling isn't disabled in iOS6+\r\n // eslint-disable-next-line\r\n docElement.offsetHeight;\r\n }\r\n}\r\n\r\n// get css-calc \r\n\r\nfunction calc() {\r\n var doc = document, \r\n body = getBody(),\r\n docOverflow = setFakeBody(body),\r\n div = doc.createElement('div'), \r\n result = false;\r\n\r\n body.appendChild(div);\r\n try {\r\n var str = '(10px * 10)',\r\n vals = ['calc' + str, '-moz-calc' + str, '-webkit-calc' + str],\r\n val;\r\n for (var i = 0; i < 3; i++) {\r\n val = vals[i];\r\n div.style.width = val;\r\n if (div.offsetWidth === 100) { \r\n result = val.replace(str, ''); \r\n break;\r\n }\r\n }\r\n } catch (e) {}\r\n \r\n body.fake ? resetFakeBody(body, docOverflow) : div.remove();\r\n\r\n return result;\r\n}\r\n\r\n// get subpixel support value\r\n\r\nfunction percentageLayout() {\r\n // check subpixel layout supporting\r\n var doc = document,\r\n body = getBody(),\r\n docOverflow = setFakeBody(body),\r\n wrapper = doc.createElement('div'),\r\n outer = doc.createElement('div'),\r\n str = '',\r\n count = 70,\r\n perPage = 3,\r\n supported = false;\r\n\r\n wrapper.className = \"tns-t-subp2\";\r\n outer.className = \"tns-t-ct\";\r\n\r\n for (var i = 0; i < count; i++) {\r\n str += '
';\r\n }\r\n\r\n outer.innerHTML = str;\r\n wrapper.appendChild(outer);\r\n body.appendChild(wrapper);\r\n\r\n supported = Math.abs(wrapper.getBoundingClientRect().left - outer.children[count - perPage].getBoundingClientRect().left) < 2;\r\n\r\n body.fake ? resetFakeBody(body, docOverflow) : wrapper.remove();\r\n\r\n return supported;\r\n}\r\n\r\nfunction mediaquerySupport () {\r\n if (window.matchMedia || window.msMatchMedia) {\r\n return true;\r\n }\r\n \r\n var doc = document,\r\n body = getBody(),\r\n docOverflow = setFakeBody(body),\r\n div = doc.createElement('div'),\r\n style = doc.createElement('style'),\r\n rule = '@media all and (min-width:1px){.tns-mq-test{position:absolute}}',\r\n position;\r\n\r\n style.type = 'text/css';\r\n div.className = 'tns-mq-test';\r\n\r\n body.appendChild(style);\r\n body.appendChild(div);\r\n\r\n if (style.styleSheet) {\r\n style.styleSheet.cssText = rule;\r\n } else {\r\n style.appendChild(doc.createTextNode(rule));\r\n }\r\n\r\n position = window.getComputedStyle ? window.getComputedStyle(div).position : div.currentStyle['position'];\r\n\r\n body.fake ? resetFakeBody(body, docOverflow) : div.remove();\r\n\r\n return position === \"absolute\";\r\n}\r\n\r\n// create and append style sheet\r\nfunction createStyleSheet (media, nonce) {\r\n // Create the