1/*! For license information please see algoliaArticleVideoSearch.min.js.LICENSE.txt */ 2!function(){var h={
vendor: 14,516 bytes, line 2
2"../../node_modules/algoliasearch/dist/algoliasearch-lite.umd.js":function(h,p,v){var g,q,O;function _typeof(h){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(h){return typeof h}:function(h){return h&&"function"==typeof Symbol&&h.constructor===Symbol&&h!==Symbol.prototype?"symbol":typeof h},_typeof(h)}O=function(){"use strict";function e(h,p,v){return p in h?Object.defineProperty(h,p,{value:v,enumerable:!0,configurable:!0,writable:!0}):h[p]=v,h}function t(h,p){var v=Object.keys(h);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(h);p&&(g=g.filter((function(p){return Object.getOwnPropertyDescriptor(h,p).enumerable}))),v.push.apply(v,g)}return v}function r(h){for(var p=1;arguments.length>p;p++){var v=null!=arguments[p]?arguments[p]:{};p%2?t(Object(v),!0).forEach((function(p){e(h,p,v[p])})):Object.getOwnPropertyDescriptors?Object.defineProperties(h,Object.getOwnPropertyDescriptors(v)):t(Object(v)).forEach((function(p){Object.defineProperty(h,p,Object.getOwnPropertyDescriptor(v,p))}))}return h}function o(h,p){return function(h){if(Array.isArray(h))return h}(h)||function(h,p){if(Symbol.iterator in Object(h)||"[object Arguments]"===Object.prototype.toString.call(h)){var v=[],g=!0,q=!1,O=void 0;try{for(var P,_=h[Symbol.iterator]();!(g=(P=_.next()).done)&&(v.push(P.value),!p||v.length!==p);g=!0);}catch(h){q=!0,O=h}finally{try{g||null==_.return||_.return()}finally{if(q)throw O}}return v}}(h,p)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function a(h){return function(h){if(Array.isArray(h)){for(var p=0,v=Array(h.length);h.length>p;p++)v[p]=h[p];return v}}(h)||function(h){if(Symbol.iterator in Object(h)||"[object Arguments]"===Object.prototype.toString.call(h))return Array.from(h)}(h)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function u(h){var p,v="algoliasearch-client-js-".concat(h.key),n=function(){return void 0===p&&(p=h.localStorage||window.localStorage),p},a=function(){return JSON.parse(n().getItem(v)||"{}")},u=function(h){n().setItem(v,JSON.stringify(h))},i=function(){var p=h.timeToLive?1e3*h.timeToLive:null,v=a(),g=Object.fromEntries(Object.entries(v).filter((function(h){return void 0!==o(h,2)[1].timestamp})));if(u(g),p){var q=Object.fromEntries(Object.entries(g).filter((function(h){var v=o(h,2)[1];return!((new Date).getTime()>v.timestamp+p)})));u(q)}};return{get:function(h,p){var v=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}};return Promise.resolve().then((function(){i();var p=JSON.stringify(h);return a()[p]})).then((function(h){return Promise.all([h?h.value:p(),void 0!==h])})).then((function(h){var p=o(h,2),g=p[0];return Promise.all([g,p[1]||v.miss(g)])})).then((function(h){return o(h,1)[0]}))},set:function(h,p){return Promise.resolve().then((function(){var g=a();return g[JSON.stringify(h)]={timestamp:(new Date).getTime(),value:p},n().setItem(v,JSON.stringify(g)),p}))},delete:function(h){return Promise.resolve().then((function(){var p=a();delete p[JSON.stringify(h)],n().setItem(v,JSON.stringify(p))}))},clear:function(){return Promise.resolve().then((function(){n().removeItem(v)}))}}}function i(h){var p=a(h.caches),v=p.shift();return void 0===v?{get:function(h,p){var v=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}};return p().then((function(h){return Promise.all([h,v.miss(h)])})).then((function(h){return o(h,1)[0]}))},set:function(h,p){return Promise.resolve(p)},delete:function(h){return Promise.resolve()},clear:function(){return Promise.resolve()}}:{get:function(h,g){var q=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}};return v.get(h,g,q).catch((function(){return i({caches:p}).get(h,g,q)}))},set:function(h,g){return v.set(h,g).catch((function(){return i({caches:p}).set(h,g)}))},delete:function(h){return v.delete(h).catch((function(){return i({caches:p}).delete(h)}))},clear:function(){return v.clear().catch((function(){return i({caches:p}).clear()}))}}}function s(){var h=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{serializable:!0},p={};return{get:function(v,g){var q=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}},O=JSON.stringify(v);if(O in p)return Promise.resolve(h.serializable?JSON.parse(p[O]):p[O]);var P=g(),_=q&&q.miss||function(){return Promise.resolve()};return P.then((function(h){return _(h)})).then((function(){return P}))},set:function(v,g){return p[JSON.stringify(v)]=h.serializable?JSON.stringify(g):g,Promise.resolve(g)},delete:function(h){return delete p[JSON.stringify(h)],Promise.resolve()},clear:function(){return p={},Promise.resolve()}}}function c(h){for(var p=h.length-1;p>0;p--){var v=Math.floor(Math.random()*(p+1)),g=h[p];h[p]=h[v],h[v]=g}return h}function l(h,p){return p?(Object.keys(p).forEach((function(v){h[v]=p[v](h)})),h):h}function f(h){for(var p=arguments.length,v=Array(p>1?p-1:0),g=1;p>g;g++)v[g-1]=arguments[g];var q=0;return h.replace(/%s/g,(function(){return encodeURIComponent(v[q++])}))}var h=0,p=1;function m(h,p){var v=h||{},g=v.data||{};return Object.keys(v).forEach((function(h){-1===["timeout","headers","queryParameters","data","cacheable"].indexOf(h)&&(g[h]=v[h])})),{data:Object.entries(g).length>0?g:void 0,timeout:v.timeout||p,headers:v.headers||{},queryParameters:v.queryParameters||{},cacheable:v.cacheable}}var v={Read:1,Write:2,Any:3};function y(h){var p=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return r(r({},h),{},{status:p,lastUpdate:Date.now()})}function b(h){return"string"==typeof h?{protocol:"https",url:h,accept:v.Any}:{protocol:h.protocol||"https",url:h.url,accept:h.accept||v.Any}}var g="GET",q="POST";function j(h,p,v,q){var O=[],P=function(h,p){if(h.method!==g&&(void 0!==h.data||void 0!==p.data)){var v=Array.isArray(h.data)?h.data:r(r({},h.data),p.data);return JSON.stringify(v)}}(v,q),_=function(h,p){var v=r(r({},h.headers),p.headers),g={};return Object.keys(v).forEach((function(h){var p=v[h];g[h.toLowerCase()]=p})),g}(h,q),M=v.method,D=v.method!==g?{}:r(r({},v.data),q.data),z=r(r(r({"x-algolia-agent":h.userAgent.value},h.queryParameters),D),q.queryParameters),B=0,U=function t(p,g){var D=p.pop();if(void 0===D)throw{name:"RetryError",message:"Unreachable hosts - your application id may be incorrect. If the error persists, please reach out to the Algolia Support team: https://alg.li/support .",transporterStackTrace:A(O)};var U={data:P,headers:_,method:M,url:S(D,v.path,z),connectTimeout:g(B,h.timeouts.connect),responseTimeout:g(B,q.timeout)},d=function(h){var v={request:U,response:h,host:D,triesLeft:p.length};return O.push(v),v},V={onSuccess:function(h){return function(h){try{return JSON.parse(h.content)}catch(p){throw function(h,p){return{name:"DeserializationError",message:h,response:p}}(p.message,h)}}(h)},onRetry:function(v){var q=d(v);return v.isTimedOut&&B++,Promise.all([h.logger.info("Retryable failure",x(q)),h.hostsCache.set(D,y(D,v.isTimedOut?3:2))]).then((function(){return t(p,g)}))},onFail:function(h){throw d(h),function(h,p){var v=h.content,g=h.status,q=v;try{q=JSON.parse(v).message}catch(h){}return function(h,p,v){return{name:"ApiError",message:h,status:p,transporterStackTrace:v}}(q,g,p)}(h,A(O))}};return h.requester.send(U).then((function(h){return function(h,p){return function(h){var p=h.status;return h.isTimedOut||function(h){return!h.isTimedOut&&!~~h.status}(h)||2!=~~(p/100)&&4!=~~(p/100)}(h)?p.onRetry(h):2==~~(h.status/100)?p.onSuccess(h):p.onFail(h)}(h,V)}))};return function(h,p){return Promise.all(p.map((function(p){return h.get(p,(function(){return Promise.resolve(y(p))}))}))).then((function(h){var v=h.filter((function(h){return function(h){return 1===h.status||Date.now()-h.lastUpdate>12e4}(h)})),g=h.filter((function(h){return function(h){return 3===h.status&&12e4>=Date.now()-h.lastUpdate}(h)})),q=[].concat(a(v),a(g));return{getTimeout:function(h,p){return(0===g.length&&0===h?1:g.length+3+h)*p},statelessHosts:q.length>0?q.map((function(h){return b(h)})):p}}))}(h.hostsCache,p).then((function(h){return U(a(h.statelessHosts).reverse(),h.getTimeout)}))}function w(h){var p={value:"Algolia for JavaScript (".concat(h,")"),add:function(h){var v="; ".concat(h.segment).concat(void 0!==h.version?" (".concat(h.version,")"):"");return-1===p.value.indexOf(v)&&(p.value="".concat(p.value).concat(v)),p}};return p}function S(h,p,v){var g=T(v),q="".concat(h.protocol,"://").concat(h.url,"/").concat("/"===p.charAt(0)?p.substr(1):p);return g.length&&(q+="?".concat(g)),q}function T(h){return Object.keys(h).map((function(p){return f("%s=%s",p,"[object Object]"===Object.prototype.toString.call(v=h[p])||"[object Array]"===Object.prototype.toString.call(v)?JSON.stringify(h[p]):h[p]);var v})).join("&")}function A(h){return h.map((function(h){return x(h)}))}function x(h){var p=h.request.headers["x-algolia-api-key"]?{"x-algolia-api-key":"*****"}:{};return r(r({},h),{},{request:r(r({},h.request),{},{headers:r(r({},h.request.headers),p)})})}var N=function(g){var q=g.appId,O=function(v,g,q){var O={"x-algolia-api-key":q,"x-algolia-application-id":g};return{headers:function(){return v===p?O:{}},queryParameters:function(){return v===h?O:{}}}}(void 0!==g.authMode?g.authMode:p,q,g.apiKey),P=function(h){var p={hostsCache:h.hostsCache,logger:h.logger,requester:h.requester,requestsCache:h.requestsCache,responsesCache:h.responsesCache,timeouts:h.timeouts,userAgent:h.userAgent,headers:h.headers,queryParameters:h.queryParameters,hosts:h.hosts.map((function(h){return b(h)})),read:function(h,g){var q=m(g,p.timeouts.read),n=function(){return j(p,p.hosts.filter((function(h){return!!(h.accept&v.Read)})),h,q)};if(!0!==(void 0!==q.cacheable?q.cacheable:h.cacheable))return n();var O={request:h,mappedRequestOptions:q,transporter:{queryParameters:p.queryParameters,headers:p.headers}};return p.responsesCache.get(O,(function(){return p.requestsCache.get(O,(function(){return p.requestsCache.set(O,n()).then((function(h){return Promise.all([p.requestsCache.delete(O),h])}),(function(h){return Promise.all([p.requestsCache.delete(O),Promise.reject(h)])})).then((function(h){var p=o(h,2);return p[1]}))}))}),{miss:function(h){return p.responsesCache.set(O,h)}})},write:function(h,g){return j(p,p.hosts.filter((function(h){return!!(h.accept&v.Write)})),h,m(g,p.timeouts.write))}};return p}(r(r({hosts:[{url:"".concat(q,"-dsn.algolia.net"),accept:v.Read},{url:"".concat(q,".algolia.net"),accept:v.Write}].concat(c([{url:"".concat(q,"-1.algolianet.com")},{url:"".concat(q,"-2.algolianet.com")},{url:"".concat(q,"-3.algolianet.com")}]))},g),{},{headers:r(r(r({},O.headers()),{"content-type":"application/x-www-form-urlencoded"}),g.headers),queryParameters:r(r({},O.queryParameters()),g.queryParameters)}));return l({transporter:P,appId:q,addAlgoliaAgent:function(h,p){P.userAgent.add({segment:h,version:p})},clearCache:function(){return Promise.all([P.requestsCache.clear(),P.responsesCache.clear()]).then((function(){}))}},g.methods)},C=function(h){return function(p,v){return p.method===g?h.transporter.read(p,v):h.transporter.write(p,v)}},E=function(h){return function(p){return l({transporter:h.transporter,appId:h.appId,indexName:p},(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).methods)}},J=function(h){return function(p,v){var g=p.map((function(h){return r(r({},h),{},{params:T(h.params||{})})}));return h.transporter.read({method:q,path:"1/indexes/*/queries",data:{requests:g},cacheable:!0},v)}},k=function(h){return function(p,v){return Promise.all(p.map((function(p){var g=p.params,q=g.facetName,O=g.facetQuery,P=function(h,p){if(null==h)return{};var v,g,q=function(h,p){if(null==h)return{};var v,g,q={},O=Object.keys(h);for(g=0;O.length>g;g++)p.indexOf(v=O[g])>=0||(q[v]=h[v]);return q}(h,p);if(Object.getOwnPropertySymbols){var O=Object.getOwnPropertySymbols(h);for(g=0;O.length>g;g++)p.indexOf(v=O[g])>=0||Object.prototype.propertyIsEnumerable.call(h,v)&&(q[v]=h[v])}return q}(g,["facetName","facetQuery"]);return E(h)(p.indexName,{methods:{searchForFacetValues:F}}).searchForFacetValues(q,O,r(r({},v),P))})))}},I=function(h){return function(p,v,g){return h.transporter.read({method:q,path:f("1/answers/%s/prediction",h.indexName),data:{query:p,queryLanguages:v},cacheable:!0},g)}},R=function(h){return function(p,v){return h.transporter.read({method:q,path:f("1/indexes/%s/query",h.indexName),data:{query:p},cacheable:!0},v)}},F=function(h){return function(p,v,g){return h.transporter.read({method:q,path:f("1/indexes/%s/facets/%s/query",h.indexName,p),data:{facetQuery:v},cacheable:!0},g)}},Q=function(h){return function(p,v){var g=p.map((function(h){return r(r({},h),{},{threshold:h.threshold||0})}));return h.transporter.read({method:q,path:"1/indexes/*/recommendations",data:{requests:g},cacheable:!0},v)}};function L(p,v,g){var q={appId:p,apiKey:v,timeouts:{connect:1,read:2,write:30},requester:{send:function(h){return new Promise((function(p){var v=new XMLHttpRequest;v.open(h.method,h.url,!0),Object.keys(h.headers).forEach((function(p){return v.setRequestHeader(p,h.headers[p])}));var g,o=function(h,g){return setTimeout((function(){v.abort(),p({status:0,content:g,isTimedOut:!0})}),1e3*h)},q=o(h.connectTimeout,"Connection timeout");v.onreadystatechange=function(){v.readyState>v.OPENED&&void 0===g&&(clearTimeout(q),g=o(h.responseTimeout,"Socket timeout"))},v.onerror=function(){0===v.status&&(clearTimeout(q),clearTimeout(g),p({content:v.responseText||"Network request failed",status:v.status,isTimedOut:!1}))},v.onload=function(){clearTimeout(q),clearTimeout(g),p({content:v.responseText,status:v.status,isTimedOut:!1})},v.send(h.data)}))}},logger:{debug:function(h,p){return Promise.resolve()},info:function(h,p){return Promise.resolve()},error:function(h,p){return console.error(h,p),Promise.resolve()}},responsesCache:s(),requestsCache:s({serializable:!1}),hostsCache:i({caches:[u({key:"".concat("4.24.0","-").concat(p)}),s()]}),userAgent:w("4.24.0").add({segment:"Browser",version:"lite"}),authMode:h};return N(r(r(r({},q),g),{},{methods:{search:J,searchForFacetValues:k,multipleQueries:J,multipleSearchForFacetValues:k,customRequest:C,initIndex:function(h){return function(p){return E(h)(p,{methods:{search:R,searchForFacetValues:F,findAnswers:I}})}},getRecommendations:Q}}))}return L.version="4.24.0",L},"object"==_typeof(p)?h.exports=O():void 0===(q="function"==typeof(g=O)?g.call(p,v,p,h):g)||(h.exports=q)},
2"./sitecorePages/algolia/articleVideoSearch.js":function(h,p,v){"use strict";v.r(p);var g=v("../../node_modules/algoliasearch/dist/algoliasearch-lite.umd.js");v.n(g)()(document.querySelector("#appId").value,document.querySelector("#apiKey").value);var updateUrlParams=function(h,p){var v=new URLSearchParams(document.location.search);v.set(h,p),"page"!==h&&v.set("page",1),location.href="".concat(location.origin).concat(location.pathname,"?").concat(v)},updateFiltersList=function(h){var p=document.querySelector(".list-control-search--tags");p.innerHTML="",h.forEach((function(h){var v=document.querySelector('input[type="checkbox"][value="'.concat(h,'"]')).dataset.label;p.innerHTML+='<span class="tag-list--item" data-tag="'.concat(h,'">').concat(v,"</span>")}))},handleCheckboxChange=function(){for(var h=document.querySelectorAll('input[type="checkbox"]:checked'),p="",v=[],g=0;h.length>g;g+=1)v.push(h[g].value),p+="".concat(h[g].value,",");updateFiltersList(v),updateUrlParams("filterBy",p.substring(0,p.lastIndexOf(",")))};window.onload=function(){!function(){var h=new URLSearchParams(document.location.search).get("filterBy");if(h&&0!==h.split(",").length){var p=h.split(",");updateFiltersList(p);for(var v=0;p.length>v;v+=1)document.querySelector('input[type="checkbox"][value="'.concat(p[v],'"]')).checked=!0}}(),function(){var h=new URLSearchParams(document.location.search).get("sort");if(h){for(var p=document.querySelectorAll(".btn-sort"),v=0;p.length>v;v+=1)p[v].classList.remove("selected");document.querySelector('.btn-sort[data-sort="'.concat(h,'"]')).classList.add("selected")}}(),document.querySelector(".filter-form.filter-form--results.form-horizontal input.aa-Input").value=new URL(window.location).searchParams.get("filter"),document.querySelector(".filter-form .aa-Autocomplete button.aa-ClearButton").hidden=0===document.querySelector(".filter-form.filter-form--results.form-horizontal input.aa-Input").value.length;for(var h=document.querySelectorAll('input[type="checkbox"]'),p=0;h.length>p;p+=1)h[p].addEventListener("change",(function(h){return handleCheckboxChange()}));for(var v=document.querySelectorAll(".results-list__pagination button"),g=0;v.length>g;g+=1)"pageModalButton"!==v[g].id&&v[g].addEventListener("click",(function(h){updateUrlParams("page",Number(h.currentTarget.dataset.page)+1)}));for(var q=document.querySelectorAll(".btn-sort"),O=0;q.length>O;O+=1)q[O].addEventListener("click",(function(h){updateUrlParams("sort",h.currentTarget.dataset.sort)}));document.querySelector("#gotoPageButton").addEventListener("click",(function(h){return function(){var h=document.querySelector("#gotoInput");if(h||$("#pageModal").modal("hide"),0>=Number(h.value))return h.value="",void h.focus();$("#pageModal").modal("show"),updateUrlParams("page",h.value)}()}));for(var P=document.querySelectorAll(".tag-list--item"),_=0;P.length>_;_+=1)P[_].addEventListener("click",(function(h){return p=h,(v=new URLSearchParams(document.location.search).get("filterBy").replace("".concat(p.target.dataset.tag,","),"").replace(p.target.dataset.tag,"")).endsWith(",")&&(v=v.substring(0,v.length-1)),void updateUrlParams("filterBy",v);var p,v}));document.querySelector(".filter-form__go-button").addEventListener("click",(function(h){return h.preventDefault(),void updateUrlParams("filter",document.querySelector(".filter-form.filter-form--results.form-horizontal .aa-Input").value)})),document.querySelector(".filter-form.filter-form--results.form-horizontal .aa-Input").addEventListener("focus",(function(h){var p;(p=new URLSearchParams(document.location.search).get("filter"))&&(document.querySelector(".aa-Input").value=p)})),document.querySelector(".filter-form.filter-form--results.form-horizontal .aa-Input").addEventListener("input",(function(h){return p=h,void(document.querySelector(".filter-form.filter-form--results.form-horizontal button.aa-ClearButton").hidden=0===p.target.value.length);var p})),document.querySelector(".filter-form .aa-Autocomplete button.aa-ClearButton").addEventListener("click",(function(h){return document.querySelector(".aa-Input").value="",document.querySelector(".filter-form .aa-Autocomplete button.aa-ClearButton").hidden=!0,void updateUrlParams("filter","")}))}()}
2},p={};function __webpack_require__(v){var g=p[v];if(void 0!==g)return g.exports;var q=p[v]={exports:{}};return h[v].call(q.exports,q,q.exports,__webpack_require__),q.exports}__webpack_require__.n=function(h){var p=h&&h.__esModule?function(){return h.default}:function(){return h};return __webpack_require__.d(p,{a:p}),p},__webpack_require__.d=function(h,p){for(var v in p)__webpack_require__.o(p,v)&&!__webpack_require__.o(h,v)&&Object.defineProperty(h,v,{enumerable:!0,get:p[v]})},__webpack_require__.o=function(h,p){return Object.prototype.hasOwnProperty.call(h,p)},__webpack_require__.r=function(h){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(h,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(h,"__esModule",{value:!0})},function(){"use strict";__webpack_require__("./sitecorePages/algolia/articleVideoSearch.js")}()}();
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.