') !== '7';\n});\n\n// @@replace logic\nfixRegExpWellKnownSymbolLogic('replace', function (_, nativeReplace, maybeCallNative) {\n var UNSAFE_SUBSTITUTE = REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE ? '$' : '$0';\n\n return [\n // `String.prototype.replace` method\n // https://tc39.es/ecma262/#sec-string.prototype.replace\n function replace(searchValue, replaceValue) {\n var O = requireObjectCoercible(this);\n var replacer = isNullOrUndefined(searchValue) ? undefined : getMethod(searchValue, REPLACE);\n return replacer\n ? call(replacer, searchValue, O, replaceValue)\n : call(nativeReplace, toString(O), searchValue, replaceValue);\n },\n // `RegExp.prototype[@@replace]` method\n // https://tc39.es/ecma262/#sec-regexp.prototype-@@replace\n function (string, replaceValue) {\n var rx = anObject(this);\n var S = toString(string);\n\n if (\n typeof replaceValue == 'string' &&\n stringIndexOf(replaceValue, UNSAFE_SUBSTITUTE) === -1 &&\n stringIndexOf(replaceValue, '$<') === -1\n ) {\n var res = maybeCallNative(nativeReplace, rx, S, replaceValue);\n if (res.done) return res.value;\n }\n\n var functionalReplace = isCallable(replaceValue);\n if (!functionalReplace) replaceValue = toString(replaceValue);\n\n var global = rx.global;\n var fullUnicode;\n if (global) {\n fullUnicode = rx.unicode;\n rx.lastIndex = 0;\n }\n\n var results = [];\n var result;\n while (true) {\n result = regExpExec(rx, S);\n if (result === null) break;\n\n push(results, result);\n if (!global) break;\n\n var matchStr = toString(result[0]);\n if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);\n }\n\n var accumulatedResult = '';\n var nextSourcePosition = 0;\n for (var i = 0; i < results.length; i++) {\n result = results[i];\n\n var matched = toString(result[0]);\n var position = max(min(toIntegerOrInfinity(result.index), S.length), 0);\n var captures = [];\n var replacement;\n // NOTE: This is equivalent to\n // captures = result.slice(1).map(maybeToString)\n // but for some reason `nativeSlice.call(result, 1, result.length)` (called in\n // the slice polyfill when slicing native arrays) \"doesn't work\" in safari 9 and\n // causes a crash (https://pastebin.com/N21QzeQA) when trying to debug it.\n for (var j = 1; j < result.length; j++) push(captures, maybeToString(result[j]));\n var namedCaptures = result.groups;\n if (functionalReplace) {\n var replacerArgs = concat([matched], captures, position, S);\n if (namedCaptures !== undefined) push(replacerArgs, namedCaptures);\n replacement = toString(apply(replaceValue, undefined, replacerArgs));\n } else {\n replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue);\n }\n if (position >= nextSourcePosition) {\n accumulatedResult += stringSlice(S, nextSourcePosition, position) + replacement;\n nextSourcePosition = position + matched.length;\n }\n }\n\n return accumulatedResult + stringSlice(S, nextSourcePosition);\n }\n ];\n}, !REPLACE_SUPPORTS_NAMED_GROUPS || !REPLACE_KEEPS_$0 || REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE);\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","function sanitizeString(str) {\r\n return String(str)\r\n .replace(/&/g, \"&\")\r\n .replace(/\"/g, \""\")\r\n .replace(/'/g, \"'\")\r\n .replace(//g, \">\")\r\n .replace(\"(\", \"%28\")\r\n .replace(\")\", \"%29\")\r\n .toLowerCase()\r\n .replace(\"script\", \"script type='javascript/blocked'\");\r\n // For now just escaping 7 characters but if we need to escape more chars then we can use escape()\r\n // too in future for chars like !@#$%^&{}[]=:/,;?+\\'\"\\\\\r\n}\r\n\r\n$(\".st-default-search-input\").on(\"keyup\", function (e) {\r\n if (e.keyCode === 13) {\r\n let searchTerm = $(this).val();\r\n if (searchTerm.length) {\r\n window.location.href =\r\n \"/search?stq=\" +\r\n sanitizeString(searchTerm) +\r\n \"#stq=\" +\r\n sanitizeString(searchTerm);\r\n }\r\n }\r\n});\r\n\r\n$(\".siteHeaderSearch i.icon.icon-search\").on(\"click\", function (e) {\r\n e.preventDefault();\r\n let searchTerm = $(this)\r\n .parents(\"form\")\r\n .find(\".st-default-search-input\")\r\n .val();\r\n if (searchTerm.length) {\r\n window.location.href =\r\n \"/search?stq=\" +\r\n sanitizeString(searchTerm) +\r\n \"#stq=\" +\r\n sanitizeString(searchTerm);\r\n }\r\n});\r\n\r\n$(\".mobileSearchForm button.textInputWithIcon__icon\").on(\"click\", function (e) {\r\n e.preventDefault();\r\n let searchTerm = $(this)\r\n .parents(\"form\")\r\n .find(\".st-default-search-input\")\r\n .val();\r\n if (searchTerm.length) {\r\n window.location.href =\r\n \"/search?stq=\" +\r\n sanitizeString(searchTerm) +\r\n \"#stq=\" +\r\n sanitizeString(searchTerm);\r\n }\r\n});\r\n\r\n$(\".searchBtn\").on(\"click\", function (e) {\r\n e.preventDefault();\r\n let searchTerm = $(this).parent().find(\".st-default-search-input\").val();\r\n if (searchTerm.length) {\r\n window.location.href =\r\n \"/search?stq=\" +\r\n sanitizeString(searchTerm) +\r\n \"#stq=\" +\r\n sanitizeString(searchTerm);\r\n }\r\n});\r\n\r\nlet customRenderPaginationForType = function (type, currentPage, totalPages) {\r\n let pages = '\";\r\n return pages;\r\n};\r\n\r\nlet customRenderFunction = function (document_type, item) {\r\n let resultTitle = \"\";\r\n let description = \"\";\r\n let targetBlank = 'target=\"_blank\"';\r\n let isPdfLink = item[\"url\"].match(/(\\.pdf$)|(\\.pdf(\\?){1}.+)/);\r\n\r\n if (item[\"highlight\"][\"title\"]) {\r\n resultTitle = item[\"highlight\"][\"title\"];\r\n } else {\r\n resultTitle = item[\"title\"];\r\n }\r\n if (item[\"highlight\"][\"body\"]) {\r\n description = item[\"highlight\"][\"body\"].split(\" \", 22).join(\" \") + \" ... \";\r\n } else {\r\n description = item[\"body\"].split(\" \", 22).join(\" \") + \" ... \";\r\n }\r\n\r\n if (isPdfLink) {\r\n return `\r\n \r\n \r\n \r\n
\r\n ${description}\r\n
\r\n
\r\n `;\r\n }\r\n return `\r\n \r\n \r\n \r\n
\r\n ${description}\r\n
\r\n
\r\n `;\r\n};\r\n\r\nlet customPostRenderFunction = function (data) {\r\n let totalResultCount = 0;\r\n let $resultContainer = this.getContext().resultContainer;\r\n let searchQuery = data[\"info\"][\"page\"][\"query\"];\r\n let resultInfo = data.info;\r\n let currentPage = 0;\r\n // let totalPages = 0;\r\n let startIndex = 1;\r\n let endIndex = 10;\r\n let maxPagesType,\r\n maxPages = -1;\r\n\r\n if (data[\"info\"]) {\r\n $.each(data[\"info\"], function (index, value) {\r\n totalResultCount += value[\"total_result_count\"];\r\n });\r\n }\r\n\r\n $.each(resultInfo, function (documentType, typeInfo) {\r\n if (typeInfo.num_pages > maxPages) {\r\n maxPagesType = documentType;\r\n maxPages = typeInfo.num_pages;\r\n }\r\n });\r\n\r\n currentPage = resultInfo[maxPagesType].current_page;\r\n // totalPages = resultInfo[maxPagesType].num_pages;\r\n endIndex = endIndex * currentPage;\r\n if (currentPage !== 1) {\r\n startIndex = endIndex - 9;\r\n }\r\n if (totalResultCount === 0) {\r\n $resultContainer.html(\r\n `\r\n No results found for \"${searchQuery}\"\r\n
`\r\n );\r\n } else {\r\n $resultContainer.prepend(\r\n ``\r\n );\r\n }\r\n};\r\n\r\nlet customOnComplete = function (data) {\r\n if (data.attr(\"target\")?.toLowerCase() === \"_blank\") {\r\n window.open(data.attr(\"href\"));\r\n } else {\r\n window.location = data.attr(\"href\");\r\n }\r\n};\r\n\r\n$(\".st-default-search-input\").swiftypeSearch({\r\n renderFunction: customRenderFunction,\r\n resultContainingElement: \".st-search-container\",\r\n renderPaginationForType: customRenderPaginationForType,\r\n postRenderFunction: customPostRenderFunction,\r\n onComplete: customOnComplete,\r\n engineKey: \"Gdf1ZFhibyNrgYEqufVG\",\r\n});\r\n","__webpack_require__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();"],"names":["isCallable","tryToString","$TypeError","TypeError","module","exports","argument","wellKnownSymbol","create","defineProperty","UNSCOPABLES","ArrayPrototype","Array","prototype","undefined","configurable","value","key","charAt","S","index","unicode","length","isObject","$String","String","toIndexedObject","toAbsoluteIndex","lengthOfArrayLike","createMethod","IS_INCLUDES","$this","el","fromIndex","O","includes","indexOf","bind","uncurryThis","IndexedObject","toObject","arraySpeciesCreate","push","TYPE","IS_MAP","IS_FILTER","IS_SOME","IS_EVERY","IS_FIND_INDEX","IS_FILTER_REJECT","NO_HOLES","callbackfn","that","specificCreate","result","self","boundFunction","target","forEach","map","filter","some","every","find","findIndex","filterReject","fails","METHOD_NAME","method","call","isArray","isConstructor","SPECIES","$Array","originalArray","C","constructor","arraySpeciesConstructor","toString","stringSlice","slice","it","TO_STRING_TAG_SUPPORT","classofRaw","TO_STRING_TAG","$Object","Object","CORRECT_ARGUMENTS","arguments","tag","error","tryGet","callee","hasOwn","ownKeys","getOwnPropertyDescriptorModule","definePropertyModule","source","exceptions","keys","f","getOwnPropertyDescriptor","i","DESCRIPTORS","createPropertyDescriptor","object","bitmap","enumerable","writable","makeBuiltIn","defineGlobalProperty","options","simple","name","global","unsafe","nonConfigurable","nonWritable","globalThis","get","document","EXISTS","createElement","navigator","userAgent","match","version","process","Deno","versions","v8","split","createNonEnumerableProperty","defineBuiltIn","copyConstructorProperties","isForced","targetProperty","sourceProperty","descriptor","TARGET","GLOBAL","STATIC","stat","dontCallGetSet","forced","sham","exec","regexpExec","RegExpPrototype","RegExp","KEY","FORCED","SHAM","SYMBOL","DELEGATES_TO_SYMBOL","DELEGATES_TO_EXEC","execCalled","re","flags","nativeRegExpMethod","methods","nativeMethod","regexp","str","arg2","forceStringMethod","$exec","done","NATIVE_BIND","FunctionPrototype","Function","apply","Reflect","aCallable","fn","test","hasOwnProperty","getDescriptor","PROPER","CONFIGURABLE","uncurryThisWithBind","namespace","isNullOrUndefined","V","P","func","floor","Math","replace","SUBSTITUTION_SYMBOLS","SUBSTITUTION_SYMBOLS_NO_NAMED","matched","position","captures","namedCaptures","replacement","tailPos","m","symbols","ch","capture","n","check","window","g","this","getBuiltIn","a","classof","propertyIsEnumerable","store","functionToString","inspectSource","set","has","NATIVE_WEAK_MAP","shared","sharedKey","hiddenKeys","OBJECT_ALREADY_INITIALIZED","WeakMap","state","metadata","facade","STATE","enforce","getterFor","type","documentAll","all","noop","construct","constructorRegExp","INCORRECT_TO_STRING","isConstructorModern","isConstructorLegacy","called","feature","detection","data","normalize","POLYFILL","NATIVE","string","toLowerCase","isPrototypeOf","USE_SYMBOL_AS_UID","$Symbol","toLength","obj","CONFIGURABLE_FUNCTION_NAME","InternalStateModule","enforceInternalState","getInternalState","join","CONFIGURABLE_LENGTH","TEMPLATE","getter","setter","arity","ceil","trunc","x","activeXDocument","anObject","definePropertiesModule","enumBugKeys","html","documentCreateElement","PROTOTYPE","SCRIPT","IE_PROTO","EmptyConstructor","scriptTag","content","LT","NullProtoObjectViaActiveX","write","close","temp","parentWindow","NullProtoObject","ActiveXObject","iframeDocument","iframe","JS","domain","style","display","appendChild","src","contentWindow","open","F","Properties","V8_PROTOTYPE_DEFINE_BUG","objectKeys","defineProperties","props","IE8_DOM_DEFINE","toPropertyKey","$defineProperty","$getOwnPropertyDescriptor","ENUMERABLE","WRITABLE","Attributes","current","propertyIsEnumerableModule","internalObjectKeys","concat","getOwnPropertyNames","getOwnPropertySymbols","names","$propertyIsEnumerable","NASHORN_BUG","input","pref","val","valueOf","getOwnPropertyNamesModule","getOwnPropertySymbolsModule","R","re1","re2","regexpFlags","stickyHelpers","UNSUPPORTED_DOT_ALL","UNSUPPORTED_NCG","nativeReplace","nativeExec","patchedExec","UPDATES_LAST_INDEX_WRONG","lastIndex","UNSUPPORTED_Y","BROKEN_CARET","NPCG_INCLUDED","reCopy","group","raw","groups","sticky","charsAdded","strCopy","multiline","hasIndices","ignoreCase","dotAll","unicodeSets","$RegExp","MISSED_STICKY","uid","IS_PURE","SHARED","mode","copyright","license","toIntegerOrInfinity","requireObjectCoercible","charCodeAt","CONVERT_TO_STRING","pos","first","second","size","codeAt","V8_VERSION","symbol","Symbol","max","min","integer","number","len","isSymbol","getMethod","ordinaryToPrimitive","TO_PRIMITIVE","exoticToPrim","toPrimitive","id","postfix","random","NATIVE_SYMBOL","iterator","WellKnownSymbolsStore","createWellKnownSymbol","withoutSetter","$","$find","addToUnscopables","FIND","SKIPS_HOLES","proto","arrayMethodIsStrict","nativeJoin","separator","fixRegExpWellKnownSymbolLogic","advanceStringIndex","regExpExec","MATCH","nativeMatch","maybeCallNative","matcher","rx","res","fullUnicode","A","matchStr","getSubstitution","REPLACE","stringIndexOf","REPLACE_KEEPS_$0","REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE","_","UNSAFE_SUBSTITUTE","searchValue","replaceValue","replacer","functionalReplace","results","accumulatedResult","nextSourcePosition","j","replacerArgs","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","__webpack_modules__","sanitizeString","e","on","keyCode","searchTerm","location","href","preventDefault","parents","parent","swiftypeSearch","renderFunction","document_type","item","resultTitle","description","isPdfLink","resultContainingElement","renderPaginationForType","currentPage","totalPages","pages","postRenderFunction","maxPagesType","totalResultCount","$resultContainer","getContext","resultContainer","searchQuery","resultInfo","info","startIndex","endIndex","maxPages","each","documentType","typeInfo","num_pages","current_page","prepend","onComplete","_data$attr","attr","engineKey"],"sourceRoot":""}