
var CoveoInProduct=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=29)}([function(e,t,n){"use strict";n.d(t,"m",(function(){return r})),n.d(t,"c",(function(){return o})),n.d(t,"k",(function(){return i})),n.d(t,"f",(function(){return a})),n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return c})),n.d(t,"l",(function(){return u})),n.d(t,"e",(function(){return l})),n.d(t,"d",(function(){return p})),n.d(t,"o",(function(){return f})),n.d(t,"i",(function(){return d})),n.d(t,"j",(function(){return h})),n.d(t,"n",(function(){return g})),n.d(t,"h",(function(){return v})),n.d(t,"g",(function(){return m}));var r="top",o="bottom",i="right",a="left",s="auto",c=[r,o,i,a],u="start",l="end",p="clippingParents",f="viewport",d="popper",h="reference",g=c.reduce((function(e,t){return e.concat([t+"-"+u,t+"-"+l])}),[]),v=[].concat(c,[s]).reduce((function(e,t){return e.concat([t,t+"-"+u,t+"-"+l])}),[]),m=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"]},function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return i}));var r=n(3);function o(e){return e instanceof Object(r.a)(e).Element||e instanceof Element}function i(e){return e instanceof Object(r.a)(e).HTMLElement||e instanceof HTMLElement}},function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return o}));class r{constructor(){this.value=new Promise((e,t)=>{this.resolve=e,this.reject=t})}}const o=(e,t)=>{const n=new r;return e.addEventListener(t,e=>n.resolve(e)),n.value}},function(e,t,n){"use strict";function r(e){if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t?t.defaultView:window}return e}n.d(t,"a",(function(){return r}))},,function(e,t,n){"use strict";function r(e){return e.split("-")[0]}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e){return e?(e.nodeName||"").toLowerCase():null}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(1);function o(e){return(Object(r.a)(e)?e.ownerDocument:e.document).documentElement}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(3);function o(e){return Object(r.a)(e).getComputedStyle(e)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n(3),o=n(6),i=n(8),a=n(1);function s(e){return["table","td","th"].indexOf(Object(o.a)(e))>=0}function c(e){var t;return!Object(a.b)(e)||!(t=e.offsetParent)||void 0!==window.InstallTrigger&&"fixed"===Object(i.a)(t).position?null:t}function u(e){for(var t=Object(r.a)(e),n=c(e);n&&s(n);)n=c(n);return n&&"body"===Object(o.a)(n)&&"static"===Object(i.a)(n).position?t:n||t}},function(e,t,n){"use strict";function r(e){var t=e.getBoundingClientRect();return{width:t.width,height:t.height,top:t.top,right:t.right,bottom:t.bottom,left:t.left,x:t.left,y:t.top}}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(3);function o(e){var t=Object(r.a)(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}},function(e,t,n){"use strict";function r(e){return{x:e.offsetLeft,y:e.offsetTop,width:e.offsetWidth,height:e.offsetHeight}}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(2),o=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))};class i{constructor(){this.ready=new r.b}start(){this.ready.resolve(!0)}clear(){this.ready=new r.b}publish(e){return o(this,void 0,void 0,(function*(){yield this.ready.value,this.pub&&this.pub.postMessage(e,this.pub.originToPublishTo)}))}subscribe(e,t){return o(this,void 0,void 0,(function*(){yield this.ready.value,this.sub&&this.sub.addEventListener("message",n=>{var r,o;const i=n.origin||(null===(o=null===(r=null==n?void 0:n.target)||void 0===r?void 0:r.location)||void 0===o?void 0:o.origin)||"";""!==i&&("*"!==this.sub.originToListenFrom&&-1===this.sub.originToListenFrom.indexOf(i)||n.data.key==e&&t(n))})}))}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(6);function o(e){return"html"===Object(r.a)(e)?e:e.parentNode||e.host||document.ownerDocument||document.documentElement}var i=n(8),a=n(1);var s=n(3);function c(e,t){void 0===t&&(t=[]);var n=function e(t){if(["html","body","#document"].indexOf(Object(r.a)(t))>=0)return t.ownerDocument.body;if(Object(a.b)(t)){var n=Object(i.a)(t),s=n.overflow,c=n.overflowX,u=n.overflowY;if(/auto|scroll|overlay|hidden/.test(s+u+c))return t}return e(o(t))}(e),u="body"===Object(r.a)(n),l=u?Object(s.a)(n):n,p=t.concat(l);return u?p:p.concat(c(o(l)))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(10),o=n(7),i=n(11);function a(e){return Object(r.a)(Object(o.a)(e)).left+Object(i.a)(e).scrollLeft}},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(10),o=n(11),i=n(3),a=n(1);var s=n(6),c=n(15),u=n(7);function l(e,t,n){var l;void 0===n&&(n=!1);var p,f,d=Object(r.a)(e),h={scrollLeft:0,scrollTop:0},g={x:0,y:0};return n||("body"!==Object(s.a)(t)&&(h=(p=t)!==Object(i.a)(p)&&Object(a.b)(p)?{scrollLeft:(f=p).scrollLeft,scrollTop:f.scrollTop}:Object(o.a)(p)),Object(a.b)(t)?((g=Object(r.a)(t)).x+=t.clientLeft,g.y+=t.clientTop):(l=Object(u.a)(t))&&(g.x=Object(c.a)(l))),{x:d.left+h.scrollLeft-g.x,y:d.top+h.scrollTop-g.y,width:d.width,height:d.height}}},function(e,t,n){"use strict";n.d(t,"popperGenerator",(function(){return d}));var r=n(16),o=n(12),i=n(14),a=n(9),s=n(20),c=n(22),u=n(21),l=n(1),p={placement:"bottom",modifiers:[],strategy:"absolute"};function f(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function d(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,d=void 0===n?[]:n,h=t.defaultOptions,g=void 0===h?p:h;return function(e,t,n){void 0===n&&(n=g);var h={placement:"bottom",orderedModifiers:[],options:Object.assign({},p,{},g),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},v=[],m=!1,y={state:h,setOptions:function(n){b(),h.options=Object.assign({},g,{},h.options,{},n),h.scrollParents={reference:Object(l.a)(e)?Object(i.a)(e):[],popper:Object(i.a)(t)};var r=Object(s.a)(Object(u.a)([].concat(d,h.options.modifiers)));return h.orderedModifiers=r.filter((function(e){return e.enabled})),h.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,o=e.effect;if("function"==typeof o){var i=o({state:h,name:t,instance:y,options:r});v.push(i||function(){})}})),y.update()},forceUpdate:function(){if(!m){var e=h.elements,t=e.reference,n=e.popper;if(f(t,n)){h.rects={reference:Object(r.a)(t,Object(a.a)(n),"fixed"===h.options.strategy),popper:Object(o.a)(n)},h.reset=!1,h.placement=h.options.placement,h.orderedModifiers.forEach((function(e){return h.modifiersData[e.name]=Object.assign({},e.data)}));for(var i=0;i<h.orderedModifiers.length;i++)if(!0!==h.reset){var s=h.orderedModifiers[i],c=s.fn,u=s.options,l=void 0===u?{}:u,p=s.name;"function"==typeof c&&(h=c({state:h,options:l,name:p,instance:y})||h)}else h.reset=!1,i=-1}}},update:Object(c.a)((function(){return new Promise((function(e){y.forceUpdate(),e(h)}))})),destroy:function(){b(),m=!0}};if(!f(e,t))return y;function b(){v.forEach((function(e){return e()})),v=[]}return y.setOptions(n).then((function(e){!m&&n.onFirstUpdate&&n.onFirstUpdate(e)})),y}}},function(e,t,n){!function(e){"use strict";
/*! *****************************************************************************
    Copyright (c) Microsoft Corporation. All rights reserved.
    Licensed under the Apache License, Version 2.0 (the "License"); you may not use
    this file except in compliance with the License. You may obtain a copy of the
    License at http://www.apache.org/licenses/LICENSE-2.0

    THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
    KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
    WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
    MERCHANTABLITY OR NON-INFRINGEMENT.

    See the Apache Version 2.0 License for specific language governing permissions
    and limitations under the License.
    ***************************************************************************** */var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,n)};function n(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}var r,o=function(){return(o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function i(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}function a(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))}function s(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}function c(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],a=0,s=i.length;a<s;a++,o++)r[o]=i[a];return r}!function(e){e.search="search",e.click="click",e.custom="custom",e.view="view",e.collect="collect"}(r||(r={}));var u=function(){function e(e){this.opts=e}return e.prototype.sendEvent=function(e,t){return a(this,void 0,void 0,(function(){var n,r,a,c,u,l,p,f,d,h,g,v,m;return s(this,(function(s){switch(s.label){case 0:return n=this.opts,r=n.baseUrl,a=n.visitorIdProvider,c=n.preprocessRequest,this.shouldAppendVisitorId(e)?[4,this.getVisitorIdParam()]:[3,2];case 1:return u=s.sent(),[3,3];case 2:u="",s.label=3;case 3:return l={url:r+"/analytics/"+e+u,credentials:"include",mode:"cors",headers:this.getHeaders(),method:"POST",body:JSON.stringify(t)},h=[o({},l)],c?[4,c(l,"analyticsFetch")]:[3,5];case 4:return g=s.sent(),[3,6];case 5:g={},s.label=6;case 6:return p=o.apply(void 0,h.concat([g])),f=p.url,d=i(p,["url"]),[4,fetch(f,d)];case 7:return(v=s.sent()).ok?[4,v.json()]:[3,9];case 8:return(m=s.sent()).visitorId&&a.setCurrentVisitorId(m.visitorId),[2,m];case 9:try{v.json()}catch(e){}throw console.error('An error has occured when sending the "'+e+'" event.',v,t),new Error('An error has occurred when sending the "'+e+'" event. Check the console logs for more details.')}}))}))},e.prototype.shouldAppendVisitorId=function(e){return-1!==[r.click,r.custom,r.search,r.view].indexOf(e)},e.prototype.getVisitorIdParam=function(){return a(this,void 0,void 0,(function(){var e;return s(this,(function(t){switch(t.label){case 0:return[4,this.opts.visitorIdProvider.getCurrentVisitorId()];case 1:return[2,(e=t.sent())?"?visitor="+e:""]}}))}))},e.prototype.getHeaders=function(){var e=this.opts.token;return o(o({},e?{Authorization:"Bearer "+e}:{}),{"Content-Type":"application/json"})},e}();function l(){return"undefined"!=typeof navigator}function p(){return"undefined"!=typeof document}function f(){return"undefined"!=typeof localStorage}function d(){return l()&&navigator.cookieEnabled}function h(){return"undefined"!=typeof crypto&&void 0!==crypto.getRandomValues}var g=[r.click,r.custom,r.search,r.view],v=function(e,t){return-1!==g.indexOf(e)?o({language:p()?document.documentElement.lang:"unknown",userAgent:l()?navigator.userAgent:"unknown"},t):t},m=function(){function e(){}return e.set=function(t,n,r){var o,i,a,s;r?((i=new Date).setTime(i.getTime()+r),a="; expires="+i.toGMTString()):a="",-1===(s=location.hostname).indexOf(".")?document.cookie=t+"="+n+a+"; path=/":((o=s.split(".")).shift(),y({name:t,value:n,expires:a,domain:"."+o.join(".")}),null!=e.get(t)&&e.get(t)==n||y({name:t,value:n,expires:a,domain:"."+s}))},e.get=function(e){for(var t=e+"=",n=document.cookie.split(";"),r=0;r<n.length;r++){var o=n[r];if(0==(o=o.replace(/^\s+/,"")).indexOf(t))return o.substring(t.length,o.length)}return null},e.erase=function(t){e.set(t,"",-1)},e}();function y(e){var t=e.name,n=e.value,r=e.expires,o=e.domain;document.cookie=t+"="+n+r+"; path=/; domain="+o+"; SameSite=Lax"}function b(){return f()?localStorage:d()?new E:"undefined"!=typeof sessionStorage?sessionStorage:new S}var w,x,E=function(){function e(){}return e.prototype.getItem=function(t){return m.get(""+e.prefix+t)},e.prototype.removeItem=function(t){m.erase(""+e.prefix+t)},e.prototype.setItem=function(t,n){m.set(""+e.prefix+t,n)},e.prefix="coveo_",e}(),O=function(){function e(){this.cookieStorage=new E}return e.prototype.getItem=function(e){return localStorage.getItem(e)||this.cookieStorage.getItem(e)},e.prototype.removeItem=function(e){this.cookieStorage.removeItem(e),localStorage.removeItem(e)},e.prototype.setItem=function(e,t){localStorage.setItem(e,t),this.cookieStorage.setItem(e,t)},e}(),S=function(){function e(){}return e.prototype.getItem=function(e){return null},e.prototype.removeItem=function(e){},e.prototype.setItem=function(e,t){},e}(),k=Object.freeze({__proto__:null,preferredStorage:null,getAvailableStorage:b,CookieStorage:E,CookieAndLocalStorage:O,NullStorage:S}),C="__coveo.analytics.history",A=function(){function e(e){this.store=e||b()}return e.prototype.addElement=function(e){e.internalTime=(new Date).getTime(),this.cropQueryElement(e);var t=this.getHistoryWithInternalTime();null!=t?this.isValidEntry(e)&&this.setHistory([e].concat(t)):this.setHistory([e])},e.prototype.addElementAsync=function(e){return a(this,void 0,void 0,(function(){var t;return s(this,(function(n){switch(n.label){case 0:return e.internalTime=(new Date).getTime(),this.cropQueryElement(e),[4,this.getHistoryWithInternalTimeAsync()];case 1:return null!=(t=n.sent())?this.isValidEntry(e)&&this.setHistory([e].concat(t)):this.setHistory([e]),[2]}}))}))},e.prototype.getHistory=function(){var e=this.getHistoryWithInternalTime();return this.stripInternalTime(e)},e.prototype.getHistoryAsync=function(){return a(this,void 0,void 0,(function(){var e;return s(this,(function(t){switch(t.label){case 0:return[4,this.getHistoryWithInternalTimeAsync()];case 1:return e=t.sent(),[2,this.stripInternalTime(e)]}}))}))},e.prototype.getHistoryWithInternalTime=function(){try{var e=this.store.getItem(C);return e&&"string"==typeof e?JSON.parse(e):[]}catch(e){return[]}},e.prototype.getHistoryWithInternalTimeAsync=function(){return a(this,void 0,void 0,(function(){var e;return s(this,(function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,this.store.getItem(C)];case 1:return(e=t.sent())?[2,JSON.parse(e)]:[2,[]];case 2:return t.sent(),[2,[]];case 3:return[2]}}))}))},e.prototype.setHistory=function(e){try{this.store.setItem(C,JSON.stringify(e.slice(0,20)))}catch(e){}},e.prototype.clear=function(){try{this.store.removeItem(C)}catch(e){}},e.prototype.getMostRecentElement=function(){var e=this.getHistoryWithInternalTime();return null!=e?e.sort((function(e,t){return(t.internalTime||0)-(e.internalTime||0)}))[0]:null},e.prototype.cropQueryElement=function(e){e.name&&"query"==e.name.toLowerCase()&&null!=e.value&&(e.value=e.value.slice(0,75))},e.prototype.isValidEntry=function(e){var t=this.getMostRecentElement();return!t||t.value!=e.value||(e.internalTime||0)-(t.internalTime||0)>6e4},e.prototype.stripInternalTime=function(e){return e.map((function(e){return{name:e.name,time:e.time,value:e.value}}))},e}(),I=Object.freeze({__proto__:null,STORE_KEY:C,MAX_NUMBER_OF_HISTORY_ELEMENTS:20,MIN_THRESHOLD_FOR_DUPLICATE_VALUE:6e4,MAX_VALUE_SIZE:75,HistoryStore:A,default:A}),P=function(e,t){return a(void 0,void 0,void 0,(function(){return s(this,(function(n){switch(n.label){case 0:return e!==r.view?[3,2]:[4,j(t.contentIdValue)];case 1:return n.sent(),[2,o({location:window.location.toString(),referrer:document.referrer,title:document.title},t)];case 2:return[2,t]}}))}))},j=function(e){return a(void 0,void 0,void 0,(function(){var t,n;return s(this,(function(r){switch(r.label){case 0:return t=new A,n={name:"PageView",value:e,time:JSON.stringify(new Date)},[4,t.addElementAsync(n)];case 1:return r.sent(),[2]}}))}))},_=function(e){return e?(Number(e)^T(new Uint8Array(1))[0]%16>>Number(e)/4).toString(16):"10000000-1000-4000-8000-100000000000".replace(/[018]/g,_)},T=function(e){if(h())return crypto.getRandomValues(e);for(var t=0,n=0;t<e.length;t++)0==(3&t)&&(n=4294967296*Math.random()),e[t]=n>>>((3&t)<<3)&255;return e},R=Object.keys,L={id:"svc_ticket_id",subject:"svc_ticket_subject",description:"svc_ticket_description",category:"svc_ticket_category",productId:"svc_ticket_product_id",custom:"svc_ticket_custom"},H=c(R(L).map((function(e){return L[e]}))).join("|"),M=new RegExp("^("+H+"$)"),F=[function(e){return M.test(e)}],q={id:"id",name:"nm",brand:"br",category:"ca",variant:"va",price:"pr",quantity:"qt",coupon:"cc",position:"ps",group:"group"},V={id:"id",name:"nm",brand:"br",category:"ca",variant:"va",position:"ps",price:"pr"},D={action:"pa",list:"pal",listSource:"pls"},N={id:"ti",revenue:"tr",tax:"tt",shipping:"ts",coupon:"tcc",affiliation:"ta",step:"cos",option:"col"},B={id:"quoteId",affiliation:"quoteAffiliation"},U={id:"reviewId",rating:"reviewRating",comment:"reviewComment"},$={add:D,click:D,checkout:D,checkout_option:D,detail:D,impression:D,remove:D,refund:o(o({},D),N),purchase:o(o({},D),N),quote:o(o({},D),B),review:o(o({},D),U)},W=function(e,t,n,r){return R(e).reduce((function(i,a){var s,c="il"+(t+1)+r+(n+1)+(V[a]||a);return o(o({},i),((s={})[c]=e[a],s))}),{})},z=R(q).map((function(e){return q[e]})),Q=R(V).map((function(e){return V[e]})),Y=R(D).map((function(e){return D[e]})),G=R(N).map((function(e){return N[e]})),J=R(U).map((function(e){return U[e]})),K=R(B).map((function(e){return B[e]})),X=c(z,["custom"]).join("|"),Z=c(Q,["custom"]).join("|"),ee=new RegExp("^(pr[0-9]+)("+X+")$"),te=new RegExp("^((il[0-9]+pi[0-9]+)("+Z+"))|(il[0-9]+nm)$"),ne=new RegExp("^("+Y.join("|")+")$"),re=new RegExp("^("+G.join("|")+")$"),oe=new RegExp("^(pr[0-9]+)custom$"),ie=new RegExp("^(il[0-9]+pi[0-9]+)custom$"),ae=new RegExp("^("+c(["loyaltyCardId","loyaltyTier","thirdPartyPersona","companyName","favoriteStore","storeName","userIndustry","userRole","userDepartment","businessUnit"],J,K).join("|")+")$"),se=[function(e){return te.test(e)},function(e){return ee.test(e)},function(e){return ne.test(e)},function(e){return re.test(e)},function(e){return ae.test(e)}],ce=[oe,ie],ue=o(o(o({},{anonymizeIp:"aip"}),{eventCategory:"ec",eventAction:"ea",eventLabel:"el",eventValue:"ev",page:"dp",visitorId:"cid",clientId:"cid",userId:"uid",currencyCode:"cu"}),{hitType:"t",pageViewId:"pid",encoding:"de",location:"dl",referrer:"dr",screenColor:"sd",screenResolution:"sr",title:"dt",userAgent:"ua",language:"ul",eventId:"z",time:"tm"}),le=o(o({},ue),{svcAction:"svc_action",svcActionData:"svc_action_data"}),pe=R(le).map((function(e){return le[e]})),fe=function(e){return-1!==pe.indexOf(e)},de=function(e){return"custom"===e},he=function(e){var t=void 0;return c(ce).every((function(n){var r;return t=null===(r=n.exec(e))||void 0===r?void 0:r[1],!Boolean(t)})),t},ge=function(e,t){return R(t).reduce((function(n,r){var i;return o(o({},n),((i={})[""+e+r]=t[r],i))}),{})},ve=function(){function e(e){this.opts=e}return e.prototype.sendEvent=function(e,t){return a(this,void 0,void 0,(function(){var n,r,i,a,c,u,l,p,f,d,h;return s(this,(function(s){switch(s.label){case 0:if(!navigator.sendBeacon)throw new Error('navigator.sendBeacon is not supported in this browser. Consider adding a polyfill like "sendbeacon-polyfill".');return n=this.opts,r=n.baseUrl,i=n.preprocessRequest,a=this.encodeForEventType(e,t),[4,this.getQueryParamsForEventType(e)];case 1:return c=s.sent(),u={url:r+"/analytics/"+e+"?"+c,body:new Blob([a],{type:"application/x-www-form-urlencoded"})},d=[o({},u)],i?[4,i(u,"analyticsBeacon")]:[3,3];case 2:return h=s.sent(),[3,4];case 3:h={},s.label=4;case 4:return l=o.apply(void 0,d.concat([h])),p=l.url,f=l.body,console.log('Sending beacon for "'+e+'" with: ',JSON.stringify(t)),navigator.sendBeacon(p,f),[2]}}))}))},e.prototype.encodeForEventType=function(e,t){return this.isEventTypeLegacy(e)?this.encodeForLegacyType(e,t):this.encodeForFormUrlEncoded(o({access_token:this.opts.token},t))},e.prototype.getQueryParamsForEventType=function(e){return a(this,void 0,void 0,(function(){var t,n,r;return s(this,(function(o){switch(o.label){case 0:return t=this.opts,n=t.token,[4,t.visitorIdProvider.getCurrentVisitorId()];case 1:return r=o.sent(),[2,[n&&this.isEventTypeLegacy(e)?"access_token="+n:"",r?"visitorId="+r:"","discardVisitInfo=true"].filter((function(e){return!!e})).join("&")]}}))}))},e.prototype.isEventTypeLegacy=function(e){return-1!==[r.click,r.custom,r.search,r.view].indexOf(e)},e.prototype.encodeForLegacyType=function(e,t){return e+"Event="+encodeURIComponent(JSON.stringify(t))},e.prototype.encodeForFormUrlEncoded=function(e){var t=this;return Object.keys(e).filter((function(t){return!!e[t]})).map((function(n){return encodeURIComponent(n)+"="+encodeURIComponent(t.encodeValue(e[n]))})).join("&")},e.prototype.encodeValue=function(e){return"number"==typeof e||"string"==typeof e||"boolean"==typeof e?e:JSON.stringify(e)},e}(),me=function(){function e(){}return e.prototype.sendEvent=function(e,t){return a(this,void 0,void 0,(function(){return s(this,(function(e){return[2,Promise.resolve()]}))}))},e}(),ye=function(e,t){f()&&d()?this.storage=new O:f()?this.storage=localStorage:(console.warn("BrowserRuntime detected no valid storage available.",this),this.storage=new S),this.beaconClient=new ve(e),window.addEventListener("beforeunload",(function(){return t()}))},be=function(e,t){this.storage=t||new S,this.beaconClient=new u(e)},we=function(){this.storage=new S,this.beaconClient=new me},xe={default:"https://platform.cloud.coveo.com/rest/ua",production:"https://platform.cloud.coveo.com/rest/ua",hipaa:"https://platformhipaa.cloud.coveo.com/rest/ua"},Ee=function(){function e(e){if(!e)throw new Error("You have to pass options to this constructor");this.options=o(o({},this.defaultOptions),e),this.visitorId="",this.bufferedRequests=[],this.beforeSendHooks=[P,v].concat(this.options.beforeSendHooks),this.afterSendHooks=this.options.afterSendHooks,this.eventTypeMapping={};var t={baseUrl:this.baseUrl,token:this.options.token,visitorIdProvider:this,preprocessRequest:this.options.preprocessRequest};this.runtime=this.options.runtimeEnvironment||this.initRuntime(t),this.analyticsFetchClient=new u(t)}return Object.defineProperty(e.prototype,"defaultOptions",{get:function(){return{endpoint:xe.default,token:"",version:"v15",beforeSendHooks:[],afterSendHooks:[]}},enumerable:!0,configurable:!0}),e.prototype.initRuntime=function(e){var t=this;return"undefined"!=typeof window&&p()?new ye(e,(function(){return t.flushBufferWithBeacon()})):("undefined"!=typeof navigator&&"ReactNative"==navigator.product&&console.warn("\n        We've detected you're using React Native but have not provided the corresponding runtime, \n        for an optimal experience please install @react-native-async-storage/async-storage and instantiate \n        your analytics client as follows:\n        \n        import {ReactNativeRuntime} from 'coveo.analytics/react-native';\n        \n        const analytics = new CoveoAnalytics({\n            ...your options,\n            runtimeEnvironment: new ReactNativeRuntime();\n        })\n    "),new be(e))},Object.defineProperty(e.prototype,"analyticsBeaconClient",{get:function(){return this.runtime.beaconClient},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"storage",{get:function(){return this.runtime.storage},enumerable:!0,configurable:!0}),e.prototype.determineVisitorId=function(){return a(this,void 0,void 0,(function(){var e;return s(this,(function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,this.storage.getItem("visitorId")];case 1:return[2,t.sent()||_()];case 2:return e=t.sent(),console.log("Could not get visitor ID from the current runtime environment storage. Using a random ID instead.",e),[2,_()];case 3:return[2]}}))}))},e.prototype.getCurrentVisitorId=function(){return a(this,void 0,void 0,(function(){var e;return s(this,(function(t){switch(t.label){case 0:return this.visitorId?[3,3]:[4,this.determineVisitorId()];case 1:return e=t.sent(),[4,this.setCurrentVisitorId(e)];case 2:t.sent(),t.label=3;case 3:return[2,this.visitorId]}}))}))},e.prototype.setCurrentVisitorId=function(e){return a(this,void 0,void 0,(function(){return s(this,(function(t){switch(t.label){case 0:return this.visitorId=e,[4,this.storage.setItem("visitorId",e)];case 1:return t.sent(),[2]}}))}))},e.prototype.getParameters=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return a(this,void 0,void 0,(function(){return s(this,(function(n){switch(n.label){case 0:return[4,this.resolveParameters.apply(this,c([e],t))];case 1:return[2,n.sent()]}}))}))},e.prototype.getPayload=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return a(this,void 0,void 0,(function(){var n;return s(this,(function(r){switch(r.label){case 0:return[4,this.resolveParameters.apply(this,c([e],t))];case 1:return n=r.sent(),[4,this.resolvePayloadForParameters(e,n)];case 2:return[2,r.sent()]}}))}))},Object.defineProperty(e.prototype,"currentVisitorId",{get:function(){return"string"!=typeof(this.visitorId||this.storage.getItem("visitorId"))&&this.setCurrentVisitorId(_()),this.visitorId},set:function(e){this.visitorId=e,this.storage.setItem("visitorId",e)},enumerable:!0,configurable:!0}),e.prototype.resolveParameters=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return a(this,void 0,void 0,(function(){var n,r,i,c,u,l,p,f=this;return s(this,(function(d){switch(d.label){case 0:return n=this.eventTypeMapping[e]||{},r=n.variableLengthArgumentsNames,i=void 0===r?[]:r,c=n.addVisitorIdParameter,u=void 0!==c&&c,l=n.usesMeasurementProtocol,p=void 0!==l&&l,[4,[function(e){return i.length>0?f.parseVariableArgumentsPayload(i,e):e[0]},function(e){return a(f,void 0,void 0,(function(){var t,n,r;return s(this,(function(i){switch(i.label){case 0:return t=[o({},e)],n={},u?[4,this.getCurrentVisitorId()]:[3,2];case 1:return r=i.sent(),[3,3];case 2:r="",i.label=3;case 3:return[2,o.apply(void 0,t.concat([(n.visitorId=r,n)]))]}}))}))},function(e){return p?f.ensureAnonymousUserWhenUsingApiKey(e):e},function(t){return f.beforeSendHooks.reduce((function(t,n){return a(f,void 0,void 0,(function(){var r;return s(this,(function(o){switch(o.label){case 0:return[4,t];case 1:return r=o.sent(),[4,n(e,r)];case 2:return[2,o.sent()]}}))}))}),t)}].reduce((function(e,t){return a(f,void 0,void 0,(function(){var n;return s(this,(function(r){switch(r.label){case 0:return[4,e];case 1:return n=r.sent(),[4,t(n)];case 2:return[2,r.sent()]}}))}))}),Promise.resolve(t))];case 1:return[2,d.sent()]}}))}))},e.prototype.resolvePayloadForParameters=function(e,t){return a(this,void 0,void 0,(function(){var n,r,i=this;return s(this,(function(c){switch(c.label){case 0:return n=(this.eventTypeMapping[e]||{}).usesMeasurementProtocol,r=void 0!==n&&n,[4,[function(t){return i.removeEmptyPayloadValues(t,e)},function(e){return i.validateParams(e)},function(e){return r?(n=!!(t=e).action&&$[t.action]||{},R(t).reduce((function(e,r){var i,a=n[r]||le[r]||r;return o(o({},e),((i={})[a]=t[r],i))}),{})):e;var t,n},function(e){return r?i.removeUnknownParameters(e):e},function(e){return r?i.processCustomParameters(e):e}].reduce((function(e,t){return a(i,void 0,void 0,(function(){var n;return s(this,(function(r){switch(r.label){case 0:return[4,e];case 1:return n=r.sent(),[4,t(n)];case 2:return[2,r.sent()]}}))}))}),Promise.resolve(t))];case 1:return[2,c.sent()]}}))}))},e.prototype.sendEvent=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return a(this,void 0,void 0,(function(){var n,r,o,i;return s(this,(function(a){switch(a.label){case 0:return n=(this.eventTypeMapping[e]||{}).newEventType,r=void 0===n?e:n,[4,this.resolveParameters.apply(this,c([e],t))];case 1:return o=a.sent(),[4,this.resolvePayloadForParameters(e,o)];case 2:return i=a.sent(),this.bufferedRequests.push({eventType:r,payload:i,handled:!1}),[4,Promise.all(this.afterSendHooks.map((function(t){return t(e,o)})))];case 3:return a.sent(),[4,this.deferExecution()];case 4:return a.sent(),[4,this.sendFromBufferWithFetch()];case 5:return[2,a.sent()]}}))}))},e.prototype.deferExecution=function(){return new Promise((function(e){return setTimeout(e,0)}))},e.prototype.flushBufferWithBeacon=function(){for(;this.hasPendingRequests();){var e=this.bufferedRequests.pop(),t=e.eventType,n=e.payload;this.analyticsBeaconClient.sendEvent(t,n)}},e.prototype.sendFromBufferWithFetch=function(){return a(this,void 0,void 0,(function(){var e,t,n;return s(this,(function(r){return(e=this.bufferedRequests.shift())?(t=e.eventType,n=e.payload,[2,this.analyticsFetchClient.sendEvent(t,n)]):[2]}))}))},e.prototype.hasPendingRequests=function(){return this.bufferedRequests.length>0},e.prototype.clear=function(){this.storage.removeItem("visitorId"),(new A).clear()},e.prototype.sendSearchEvent=function(e){return a(this,void 0,void 0,(function(){return s(this,(function(t){return[2,this.sendEvent(r.search,e)]}))}))},e.prototype.sendClickEvent=function(e){return a(this,void 0,void 0,(function(){return s(this,(function(t){return[2,this.sendEvent(r.click,e)]}))}))},e.prototype.sendCustomEvent=function(e){return a(this,void 0,void 0,(function(){return s(this,(function(t){return[2,this.sendEvent(r.custom,e)]}))}))},e.prototype.sendViewEvent=function(e){return a(this,void 0,void 0,(function(){return s(this,(function(t){return[2,this.sendEvent(r.view,e)]}))}))},e.prototype.getVisit=function(){return a(this,void 0,void 0,(function(){var e;return s(this,(function(t){switch(t.label){case 0:return[4,fetch(this.baseUrl+"/analytics/visit")];case 1:return[4,t.sent().json()];case 2:return e=t.sent(),this.visitorId=e.visitorId,[2,e]}}))}))},e.prototype.getHealth=function(){return a(this,void 0,void 0,(function(){return s(this,(function(e){switch(e.label){case 0:return[4,fetch(this.baseUrl+"/analytics/monitoring/health")];case 1:return[4,e.sent().json()];case 2:return[2,e.sent()]}}))}))},e.prototype.registerBeforeSendEventHook=function(e){this.beforeSendHooks.push(e)},e.prototype.registerAfterSendEventHook=function(e){this.afterSendHooks.push(e)},e.prototype.addEventTypeMapping=function(e,t){this.eventTypeMapping[e]=t},e.prototype.parseVariableArgumentsPayload=function(e,t){for(var n={},r=0,i=t.length;r<i;r++){var a=t[r];if("string"==typeof a)n[e[r]]=a;else if("object"==typeof a)return o(o({},n),a)}return n},e.prototype.isKeyAllowedEmpty=function(e,t){var n;return-1!==(((n={})[r.search]=["queryText"],n)[e]||[]).indexOf(t)},e.prototype.removeEmptyPayloadValues=function(e,t){var n=this;return Object.keys(e).filter((function(r){return n.isKeyAllowedEmpty(t,r)||null!=(o=e[r])&&""!==o;var o})).reduce((function(t,n){var r;return o(o({},t),((r={})[n]=e[n],r))}),{})},e.prototype.removeUnknownParameters=function(e){return Object.keys(e).filter((function(e){if(function(e){return c(se,F,[fe,de]).some((function(t){return t(e)}))}(e))return!0;console.log(e,"is not processed by coveoua")})).reduce((function(t,n){var r;return o(o({},t),((r={})[n]=e[n],r))}),{})},e.prototype.processCustomParameters=function(e){var t,n=e.custom,r=i(e,["custom"]),a=this.lowercaseKeys(n),s=R(t=r).reduce((function(e,n){var r,i=he(n);return o(o({},e),i?ge(i,t[n]):((r={})[n]=t[n],r))}),{});return o(o({},a),s)},e.prototype.lowercaseKeys=function(e){return Object.keys(e||{}).reduce((function(t,n){var r;return o(o({},t),((r={})[n.toLowerCase()]=e[n],r))}),{})},e.prototype.validateParams=function(e){var t=e.anonymizeIp,n=i(e,["anonymizeIp"]);return void 0!==t&&-1==["0","false","undefined","null","{}","[]",""].indexOf((""+t).toLowerCase())&&(n.anonymizeIp=1),n},e.prototype.ensureAnonymousUserWhenUsingApiKey=function(e){var t,n=e.userId,r=i(e,["userId"]);return(null==(t=this.options.token)?void 0:t.startsWith("xx"))&&!n?(r.userId="anonymous",r):e},Object.defineProperty(e.prototype,"baseUrl",{get:function(){var e=this.options,t=e.version,n=e.endpoint,r=-1!==n.indexOf(".cloud.coveo.com");return n+(r?"":"/rest")+"/"+t},enumerable:!0,configurable:!0}),e}(),Oe=Object.freeze({__proto__:null,Version:"v15",Endpoints:xe,CoveoAnalyticsClient:Ee,default:Ee}),Se=l()?[!0,"yes","1"].indexOf(navigator.doNotTrack||navigator.msDoNotTrack||window.doNotTrack):0,ke=Object.freeze({__proto__:null,doNotTrack:Se,default:Se}),Ce=function(e){return e.protocol+"//"+e.hostname+(0===e.pathname.indexOf("/")?e.pathname:"/"+e.pathname)+e.search},Ae={pageview:"pageview",event:"event"},Ie=function(){function e(e){var t=e.client,n=e.uuidGenerator,r=void 0===n?_:n;this.actionData={},this.client=t,this.uuidGenerator=r,this.pageViewId=r(),this.nextPageViewId=this.pageViewId,this.currentLocation=Ce(window.location),this.lastReferrer=document.referrer,this.addHooks()}return e.prototype.setAction=function(e,t){this.action=e,this.actionData=t},e.prototype.clearData=function(){this.clearPluginData(),this.action=void 0,this.actionData={}},e.prototype.getLocationInformation=function(e,t){return o({hitType:e},this.getNextValues(e,t))},e.prototype.updateLocationInformation=function(e,t){this.updateLocationForNextPageView(e,t)},e.prototype.getDefaultContextInformation=function(e){var t={title:document.title,encoding:document.characterSet},n={screenResolution:screen.width+"x"+screen.height,screenColor:screen.colorDepth+"-bit"},r={language:navigator.language,userAgent:navigator.userAgent},i={time:Date.now().toString(),eventId:this.uuidGenerator()};return o(o(o(o({},i),n),r),t)},e.prototype.updateLocationForNextPageView=function(e,t){var n=this.getNextValues(e,t),r=n.pageViewId,o=n.referrer,i=n.location;this.lastReferrer=o,this.pageViewId=r,this.currentLocation=i,e===Ae.pageview&&(this.nextPageViewId=this.uuidGenerator()),this.hasSentFirstPageView=!0},e.prototype.getNextValues=function(e,t){return{pageViewId:e===Ae.pageview?this.nextPageViewId:this.pageViewId,referrer:e===Ae.pageview&&this.hasSentFirstPageView?this.currentLocation:this.lastReferrer,location:e===Ae.pageview?this.getCurrentLocationFromPayload(t):this.currentLocation}},e.prototype.getCurrentLocationFromPayload=function(e){return e.page?""+function(e){return e.split("/").slice(0,3).join("/")}(this.currentLocation)+e.page.replace(/^\/?(.*)$/,"/$1"):Ce(window.location)},e}(),Pe=o({},Ae),je=Object.keys(Pe).map((function(e){return Pe[e]})),_e=function(e){function t(t){var n=t.client,r=t.uuidGenerator,o=void 0===r?_:r,i=e.call(this,{client:n,uuidGenerator:o})||this;return i.products=[],i.impressions=[],i}return n(t,e),t.prototype.addHooks=function(){this.addHooksForPageView(),this.addHooksForEvent(),this.addHooksForECEvents()},t.prototype.addProduct=function(e){this.products.push(e)},t.prototype.addImpression=function(e){this.impressions.push(e)},t.prototype.clearPluginData=function(){this.products=[],this.impressions=[]},t.prototype.addHooksForECEvents=function(){var e=this;this.client.registerBeforeSendEventHook((function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var o=n[0];return-1!==je.indexOf(t)?e.addECDataToPayload(t,o):o})),this.client.registerAfterSendEventHook((function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var o=n[0];return-1!==je.indexOf(t)&&e.updateLocationInformation(t,o),o}))},t.prototype.addHooksForPageView=function(){this.client.addEventTypeMapping(Pe.pageview,{newEventType:r.collect,variableLengthArgumentsNames:["page"],addVisitorIdParameter:!0,usesMeasurementProtocol:!0})},t.prototype.addHooksForEvent=function(){this.client.addEventTypeMapping(Pe.event,{newEventType:r.collect,variableLengthArgumentsNames:["eventCategory","eventAction","eventLabel","eventValue"],addVisitorIdParameter:!0,usesMeasurementProtocol:!0})},t.prototype.addECDataToPayload=function(e,t){var n=o(o(o(o({},this.getLocationInformation(e,t)),this.getDefaultContextInformation(e)),this.action?{action:this.action}:{}),this.actionData||{}),r=this.getProductPayload(),i=this.getImpressionPayload();return this.clearData(),o(o(o(o({},i),r),n),t)},t.prototype.getProductPayload=function(){var e=this;return this.products.map((function(t){return e.assureProductValidity(t)})).reduce((function(e,t,n){return o(o({},e),function(e,t){return R(e).reduce((function(n,r){var i,a="pr"+(t+1)+(q[r]||r);return o(o({},n),((i={})[a]=e[r],i))}),{})}(t,n))}),{})},t.prototype.getImpressionPayload=function(){var e=this;return this.getImpressionsByList().map((function(t){var n=t.impressions,r=i(t,["impressions"]);return o(o({},r),{impressions:n.map((function(t){return e.assureBaseImpressionValidity(t)}))})})).reduce((function(e,t,n){return o(o({},e),function(e,t,n){var r=e.impressions.reduce((function(e,r,i){return o(o({},e),W(r,t,i,n))}),{});return e.listName&&(r["il"+(t+1)+"nm"]=e.listName),r}(t,n,"pi"))}),{})},t.prototype.assureProductValidity=function(e){var t=e.position,n=i(e,["position"]);return void 0!==t&&t<1?(console.warn("The position for product '"+(e.name||e.id)+"' must be greater than 0 when provided."),n):e},t.prototype.assureBaseImpressionValidity=function(e){var t=e.position,n=i(e,["position"]);return void 0!==t&&t<1?(console.warn("The position for impression '"+(e.name||e.id)+"' must be greater than 0 when provided."),n):e},t.prototype.getImpressionsByList=function(){return this.impressions.reduce((function(e,t){var n=t.list,r=i(t,["list"]),o=e.find((function(e){return e.listName===n}));return o?o.impressions.push(r):e.push({listName:n,impressions:[r]}),e}),[])},t.Id="ec",t}(Ie),Te=o({},Ae),Re=Object.keys(Te).map((function(e){return Te[e]})),Le=function(e){function t(t){var n=t.client,r=t.uuidGenerator,o=void 0===r?_:r,i=e.call(this,{client:n,uuidGenerator:o})||this;return i.ticket={},i}return n(t,e),t.prototype.addHooks=function(){this.addHooksForEvent(),this.addHooksForPageView(),this.addHooksForSVCEvents()},t.prototype.setTicket=function(e){this.ticket=e},t.prototype.clearPluginData=function(){this.ticket={}},t.prototype.addHooksForSVCEvents=function(){var e=this;this.client.registerBeforeSendEventHook((function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var o=n[0];return-1!==Re.indexOf(t)?e.addSVCDataToPayload(t,o):o})),this.client.registerAfterSendEventHook((function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var o=n[0];return-1!==Re.indexOf(t)&&e.updateLocationInformation(t,o),o}))},t.prototype.addHooksForPageView=function(){this.client.addEventTypeMapping(Te.pageview,{newEventType:r.collect,variableLengthArgumentsNames:["page"],addVisitorIdParameter:!0,usesMeasurementProtocol:!0})},t.prototype.addHooksForEvent=function(){this.client.addEventTypeMapping(Te.event,{newEventType:r.collect,variableLengthArgumentsNames:["eventCategory","eventAction","eventLabel","eventValue"],addVisitorIdParameter:!0,usesMeasurementProtocol:!0})},t.prototype.addSVCDataToPayload=function(e,t){var n,r=o(o(o(o({},this.getLocationInformation(e,t)),this.getDefaultContextInformation(e)),this.action?{svcAction:this.action}:{}),Object.keys(null!==(n=this.actionData)&&void 0!==n?n:{}).length>0?{svcActionData:this.actionData}:{}),i=this.getTicketPayload();return this.clearData(),o(o(o({},i),r),t)},t.prototype.getTicketPayload=function(){return e=this.ticket,R(e).filter((function(t){return void 0!==e[t]})).reduce((function(t,n){var r,i=L[n]||n;return o(o({},t),((r={})[i]=e[n],r))}),{});var e},t.Id="svc",t}(Ie),He=function(){function e(){var e;this.registeredPluginsMap=((e={})[_e.Id]=_e,e[Le.Id]=Le,e),this.requiredPlugins={}}return e.prototype.require=function(e,t){var n=this.registeredPluginsMap[e];if(!n)throw new Error('No plugin named "'+e+"\" is currently registered. If you use a custom plugin, use 'provide' first.");this.requiredPlugins[e]=new n(t)},e.prototype.provide=function(e,t){this.registeredPluginsMap[e]=t},e.prototype.clearRequired=function(){this.requiredPlugins={}},e.prototype.execute=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var o=this.requiredPlugins[e];if(!o)throw new Error('The plugin "'+e+'" is not required. Check that you required it on initialization.');var i=o[t];if(!i)throw new Error('The function "'+t+'" does not exists on the plugin "'+e+'".');if("function"!=typeof i)throw new Error('"'+t+'" of the plugin "'+e+'" is not a function.');return i.apply(o,n)},e.DefaultPlugins=[_e.Id,Le.Id],e}(),Me=function(){function e(){this.plugins=new He,this.params={}}return e.prototype.init=function(e,t){var n=this;if(!e)throw new Error("You must pass your token when you call 'init'");if("string"==typeof e?this.client=new Ee({token:e,endpoint:this.getEndpoint(t)}):this.isAnalyticsClient(e)&&(this.client=e),!this.client)throw new Error("You must pass either your token or a valid object when you call 'init'");var r={client:this.client};this.plugins.clearRequired(),this.getPluginKeys(t).forEach((function(e){return n.plugins.require(e,r)})),this.client.registerBeforeSendEventHook((function(e,t){return o(o({},t),n.params)}))},e.prototype.isAnalyticsClient=function(e){return"object"==typeof e&&void 0!==e.sendEvent},e.prototype.getPluginKeys=function(e){return"string"==typeof e?He.DefaultPlugins:Array.isArray(null==e?void 0:e.plugins)?e.plugins:He.DefaultPlugins},e.prototype.getEndpoint=function(e){return"string"==typeof e?e||xe.default:(null==e?void 0:e.endpoint)?e.endpoint:xe.default},e.prototype.initForProxy=function(e){if(!e)throw new Error("You must pass your endpoint when you call 'initForProxy'");if("string"!=typeof e)throw new Error("You must pass a string as the endpoint parameter when you call 'initForProxy'");this.client=new Ee({endpoint:e})},e.prototype.set=function(e,t){var n=this;"string"==typeof e?this.params[e]=t:Object.keys(e).map((function(t){n.params[t]=e[t]}))},e.prototype.send=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=t[0],o=t.slice(1);if(void 0===this.client)throw new Error("You must call init before sending an event");if(!r)throw new Error('You must provide an event type when calling "send".');return(e=this.client).sendEvent.apply(e,c([r.toLowerCase()],o))},e.prototype.onLoad=function(e){if(void 0===e)throw new Error("You must pass a function when you call 'onLoad'");e()},e.prototype.provide=function(e,t){this.plugins.provide(e,t)},e.prototype.require=function(e,t){if(!this.client)throw new Error("You must call init before requiring a plugin");this.plugins.require(e,o(o({},t),{client:this.client}))},e.prototype.callPlugin=function(e,t){for(var n,r=[],o=2;o<arguments.length;o++)r[o-2]=arguments[o];(n=this.plugins).execute.apply(n,c([e,t],r))},e.prototype.reset=function(){this.client=void 0,this.plugins=new He,this.params={}},e}(),Fe=new Me,qe=function(){return Fe.client},Ve=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=/^(?:(\w+)\.)?(?:(\w+):)?(\w+)$/.exec(e),o=(r[1],r[2]),i=r[3],a=Fe[i];if(o&&i)return Fe.callPlugin.apply(Fe,c([o,i],t));if(a)return a.apply(Fe,t);var s=["init","set","send","onLoad","callPlugin","reset","require","provide"];throw new Error('The action "'+e+'" does not exist. Available actions: '+s.join(", ")+".")},De=Object.freeze({__proto__:null,CoveoUA:Me,coveoua:Fe,getCurrentClient:qe,handleOneAnalyticsEvent:Ve,default:Ve});!function(e){e.interfaceLoad="interfaceLoad",e.interfaceChange="interfaceChange",e.didyoumeanAutomatic="didyoumeanAutomatic",e.didyoumeanClick="didyoumeanClick",e.resultsSort="resultsSort",e.searchboxSubmit="searchboxSubmit",e.searchboxClear="searchboxClear",e.searchboxAsYouType="searchboxAsYouType",e.breadcrumbFacet="breadcrumbFacet",e.breadcrumbResetAll="breadcrumbResetAll",e.documentQuickview="documentQuickview",e.documentOpen="documentOpen",e.omniboxAnalytics="omniboxAnalytics",e.omniboxFromLink="omniboxFromLink",e.triggerNotify="notify",e.triggerExecute="execute",e.triggerQuery="query",e.triggerRedirect="redirect",e.pagerResize="pagerResize",e.pagerNumber="pagerNumber",e.pagerNext="pagerNext",e.pagerPrevious="pagerPrevious",e.pagerScrolling="pagerScrolling",e.facetClearAll="facetClearAll",e.facetSearch="facetSearch",e.facetSelect="facetSelect",e.facetSelectAll="facetSelectAll",e.facetDeselect="facetDeselect",e.facetExclude="facetExclude",e.facetUnexclude="facetUnexclude",e.facetUpdateSort="facetUpdateSort",e.facetShowMore="showMoreFacetResults",e.facetShowLess="showLessFacetResults",e.queryError="query",e.queryErrorBack="errorBack",e.queryErrorClear="errorClearQuery",e.queryErrorRetry="errorRetry",e.recommendation="recommendation",e.recommendationInterfaceLoad="recommendationInterfaceLoad"}(x||(x={}));var Ne=((w={})[x.triggerNotify]="queryPipelineTriggers",w[x.triggerExecute]="queryPipelineTriggers",w[x.triggerQuery]="queryPipelineTriggers",w[x.triggerRedirect]="queryPipelineTriggers",w[x.queryError]="errors",w[x.queryErrorBack]="errors",w[x.queryErrorClear]="errors",w[x.queryErrorRetry]="errors",w[x.pagerNext]="getMoreResults",w[x.pagerPrevious]="getMoreResults",w[x.pagerNumber]="getMoreResults",w[x.pagerResize]="getMoreResults",w[x.pagerScrolling]="getMoreResults",w[x.facetSearch]="facet",w[x.facetShowLess]="facet",w[x.facetShowMore]="facet",w[x.recommendation]="recommendation",w),Be=function(){function e(){this.runtime=new we,this.currentVisitorId=""}return e.prototype.getPayload=function(){return Promise.resolve()},e.prototype.getParameters=function(){return Promise.resolve()},e.prototype.sendEvent=function(){return Promise.resolve()},e.prototype.sendSearchEvent=function(){return Promise.resolve()},e.prototype.sendClickEvent=function(){return Promise.resolve()},e.prototype.sendCustomEvent=function(){return Promise.resolve()},e.prototype.sendViewEvent=function(){return Promise.resolve()},e.prototype.getVisit=function(){return Promise.resolve({id:"",visitorId:""})},e.prototype.getHealth=function(){return Promise.resolve({status:""})},e.prototype.registerBeforeSendEventHook=function(){},e.prototype.registerAfterSendEventHook=function(){},e.prototype.addEventTypeMapping=function(){},e}(),Ue=function(e){return function e(t){var n=t.join(";");return n.length<=256?n:e(t.slice(1))}(function(e){var t="";return e.filter((function(e){var n=e!==t;return t=e,n}))}(function(e){return e.map((function(e){return e.replace(/;/g,"")}))}(e)))};function $e(e){var t="string"==typeof e.partialQueries?e.partialQueries:Ue(e.partialQueries),n="string"==typeof e.suggestions?e.suggestions:Ue(e.suggestions);return o(o({},e),{partialQueries:t,suggestions:n})}var We=function(){function e(e,t){this.opts=e,this.provider=t,this.coveoAnalyticsClient=!1===e.enableAnalytics?new Be:new Ee(e)}return e.prototype.disable=function(){this.coveoAnalyticsClient instanceof Ee&&this.coveoAnalyticsClient.clear(),this.coveoAnalyticsClient=new Be},e.prototype.enable=function(){this.coveoAnalyticsClient=new Ee(this.opts)},e.prototype.logInterfaceLoad=function(){return this.logSearchEvent(x.interfaceLoad)},e.prototype.logRecommendationInterfaceLoad=function(){return this.logSearchEvent(x.recommendationInterfaceLoad)},e.prototype.logRecommendation=function(){return this.logCustomEvent(x.recommendation)},e.prototype.logFetchMoreResults=function(){return this.logCustomEvent(x.pagerScrolling,{type:"getMoreResults"})},e.prototype.logInterfaceChange=function(e){return this.logSearchEvent(x.interfaceChange,e)},e.prototype.logDidYouMeanAutomatic=function(){return this.logSearchEvent(x.didyoumeanAutomatic)},e.prototype.logDidYouMeanClick=function(){return this.logSearchEvent(x.didyoumeanClick)},e.prototype.logResultsSort=function(e){return this.logSearchEvent(x.resultsSort,e)},e.prototype.logSearchboxSubmit=function(){return this.logSearchEvent(x.searchboxSubmit)},e.prototype.logSearchboxClear=function(){return this.logSearchEvent(x.searchboxClear)},e.prototype.logSearchboxAsYouType=function(){return this.logSearchEvent(x.searchboxAsYouType)},e.prototype.logBreadcrumbFacet=function(e){return this.logSearchEvent(x.breadcrumbFacet,e)},e.prototype.logBreadcrumbResetAll=function(){return this.logSearchEvent(x.breadcrumbResetAll)},e.prototype.logDocumentQuickview=function(e,t){return this.logClickEvent(x.documentQuickview,e,t)},e.prototype.logDocumentOpen=function(e,t){return this.logClickEvent(x.documentOpen,e,t)},e.prototype.logOmniboxAnalytics=function(e){return this.logSearchEvent(x.omniboxAnalytics,$e(e))},e.prototype.logOmniboxFromLink=function(e){return this.logSearchEvent(x.omniboxFromLink,$e(e))},e.prototype.logTriggerNotify=function(e){return this.logCustomEvent(x.triggerNotify,e)},e.prototype.logTriggerExecute=function(e){return this.logCustomEvent(x.triggerExecute,e)},e.prototype.logTriggerQuery=function(){var e={query:this.provider.getSearchEventRequestPayload().queryText};return this.logCustomEvent(x.triggerQuery,e)},e.prototype.logTriggerRedirect=function(e){var t=o(o({},e),{query:this.provider.getSearchEventRequestPayload().queryText});return this.logCustomEvent(x.triggerRedirect,t)},e.prototype.logPagerResize=function(e){return this.logCustomEvent(x.pagerResize,e)},e.prototype.logPagerNumber=function(e){return this.logCustomEvent(x.pagerNumber,e)},e.prototype.logPagerNext=function(e){return this.logCustomEvent(x.pagerNext,e)},e.prototype.logPagerPrevious=function(e){return this.logCustomEvent(x.pagerPrevious,e)},e.prototype.logPagerScrolling=function(){return this.logCustomEvent(x.pagerScrolling)},e.prototype.logFacetClearAll=function(e){return this.logSearchEvent(x.facetClearAll,e)},e.prototype.logFacetSearch=function(e){return this.logSearchEvent(x.facetSearch,e)},e.prototype.logFacetSelect=function(e){return this.logSearchEvent(x.facetSelect,e)},e.prototype.logFacetDeselect=function(e){return this.logSearchEvent(x.facetDeselect,e)},e.prototype.logFacetExclude=function(e){return this.logSearchEvent(x.facetExclude,e)},e.prototype.logFacetUnexclude=function(e){return this.logSearchEvent(x.facetUnexclude,e)},e.prototype.logFacetSelectAll=function(e){return this.logSearchEvent(x.facetSelectAll,e)},e.prototype.logFacetUpdateSort=function(e){return this.logSearchEvent(x.facetUpdateSort,e)},e.prototype.logFacetShowMore=function(e){return this.logCustomEvent(x.facetShowMore,e)},e.prototype.logFacetShowLess=function(e){return this.logCustomEvent(x.facetShowLess,e)},e.prototype.logQueryError=function(e){return this.logCustomEvent(x.queryError,e)},e.prototype.logQueryErrorBack=function(){return a(this,void 0,void 0,(function(){return s(this,(function(e){switch(e.label){case 0:return[4,this.logCustomEvent(x.queryErrorBack)];case 1:return e.sent(),[2,this.logSearchEvent(x.queryErrorBack)]}}))}))},e.prototype.logQueryErrorRetry=function(){return a(this,void 0,void 0,(function(){return s(this,(function(e){switch(e.label){case 0:return[4,this.logCustomEvent(x.queryErrorRetry)];case 1:return e.sent(),[2,this.logSearchEvent(x.queryErrorRetry)]}}))}))},e.prototype.logQueryErrorClear=function(){return a(this,void 0,void 0,(function(){return s(this,(function(e){switch(e.label){case 0:return[4,this.logCustomEvent(x.queryErrorClear)];case 1:return e.sent(),[2,this.logSearchEvent(x.queryErrorClear)]}}))}))},e.prototype.logCustomEvent=function(e,t){var n=o(o({},this.provider.getBaseMetadata()),t),r=o(o({},this.getBaseCustomEventRequest(n)),{eventType:Ne[e],eventValue:e});return this.coveoAnalyticsClient.sendCustomEvent(r)},e.prototype.logCustomEventWithType=function(e,t,n){var r=o(o({},this.provider.getBaseMetadata()),n),i=o(o({},this.getBaseCustomEventRequest(r)),{eventType:t,eventValue:e});return this.coveoAnalyticsClient.sendCustomEvent(i)},e.prototype.logSearchEvent=function(e,t){return this.coveoAnalyticsClient.sendSearchEvent(this.getBaseSearchEventRequest(e,t))},e.prototype.logClickEvent=function(e,t,n,r){var i=o(o(o({},t),this.getBaseEventRequest(o(o({},n),r))),{searchQueryUid:this.provider.getSearchUID(),queryPipeline:this.provider.getPipeline(),actionCause:e});return this.coveoAnalyticsClient.sendClickEvent(i)},e.prototype.getBaseSearchEventRequest=function(e,t){return o(o(o({},this.getBaseEventRequest(t)),this.provider.getSearchEventRequestPayload()),{searchQueryUid:this.provider.getSearchUID(),queryPipeline:this.provider.getPipeline(),actionCause:e})},e.prototype.getBaseCustomEventRequest=function(e){return o(o({},this.getBaseEventRequest(e)),{lastSearchQueryUid:this.provider.getSearchUID()})},e.prototype.getBaseEventRequest=function(e){var t=o(o({},this.provider.getBaseMetadata()),e);return o(o({},this.getOrigins()),{customData:t,language:this.provider.getLanguage(),facetState:this.provider.getFacetState?this.provider.getFacetState():[]})},e.prototype.getOrigins=function(){return{originLevel1:this.provider.getOriginLevel1(),originLevel2:this.provider.getOriginLevel2(),originLevel3:this.provider.getOriginLevel3()}},e}();e.CoveoAnalyticsClient=Ee,e.CoveoSearchPageClient=We,e.CoveoUA=Me,e.SimpleAnalytics=De,e.analytics=Oe,e.donottrack=ke,e.getCurrentClient=qe,e.handleOneAnalyticsEvent=Ve,e.history=I,e.storage=k,Object.defineProperty(e,"__esModule",{value:!0})}(t)},,function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(0);function o(e){var t=new Map,n=new Set,r=[];return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||function e(o){n.add(o.name),[].concat(o.requires||[],o.requiresIfExists||[]).forEach((function(r){if(!n.has(r)){var o=t.get(r);o&&e(o)}})),r.push(o)}(e)})),r}function i(e){var t=o(e);return r.g.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}},function(e,t,n){"use strict";function r(e){var t=e.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,{},t,{options:Object.assign({},n.options,{},t.options),data:Object.assign({},n.data,{},t.data)}):t,e}),{});return Object.keys(t).map((function(e){return t[e]}))}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e){var t;return function(){return t||(t=new Promise((function(n){Promise.resolve().then((function(){t=void 0,n(e())}))}))),t}}n.d(t,"a",(function(){return r}))},,,,,,,function(e,t,n){e.exports=n(32)},function(e,t,n){var r;!function(o){var i=/^\s+/,a=/\s+$/,s=0,c=o.round,u=o.min,l=o.max,p=o.random;function f(e,t){if(t=t||{},(e=e||"")instanceof f)return e;if(!(this instanceof f))return new f(e,t);var n=function(e){var t={r:0,g:0,b:0},n=1,r=null,s=null,c=null,p=!1,f=!1;"string"==typeof e&&(e=function(e){e=e.replace(i,"").replace(a,"").toLowerCase();var t,n=!1;if(j[e])e=j[e],n=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};if(t=U.rgb.exec(e))return{r:t[1],g:t[2],b:t[3]};if(t=U.rgba.exec(e))return{r:t[1],g:t[2],b:t[3],a:t[4]};if(t=U.hsl.exec(e))return{h:t[1],s:t[2],l:t[3]};if(t=U.hsla.exec(e))return{h:t[1],s:t[2],l:t[3],a:t[4]};if(t=U.hsv.exec(e))return{h:t[1],s:t[2],v:t[3]};if(t=U.hsva.exec(e))return{h:t[1],s:t[2],v:t[3],a:t[4]};if(t=U.hex8.exec(e))return{r:H(t[1]),g:H(t[2]),b:H(t[3]),a:V(t[4]),format:n?"name":"hex8"};if(t=U.hex6.exec(e))return{r:H(t[1]),g:H(t[2]),b:H(t[3]),format:n?"name":"hex"};if(t=U.hex4.exec(e))return{r:H(t[1]+""+t[1]),g:H(t[2]+""+t[2]),b:H(t[3]+""+t[3]),a:V(t[4]+""+t[4]),format:n?"name":"hex8"};if(t=U.hex3.exec(e))return{r:H(t[1]+""+t[1]),g:H(t[2]+""+t[2]),b:H(t[3]+""+t[3]),format:n?"name":"hex"};return!1}(e));"object"==typeof e&&($(e.r)&&$(e.g)&&$(e.b)?(d=e.r,h=e.g,g=e.b,t={r:255*R(d,255),g:255*R(h,255),b:255*R(g,255)},p=!0,f="%"===String(e.r).substr(-1)?"prgb":"rgb"):$(e.h)&&$(e.s)&&$(e.v)?(r=F(e.s),s=F(e.v),t=function(e,t,n){e=6*R(e,360),t=R(t,100),n=R(n,100);var r=o.floor(e),i=e-r,a=n*(1-t),s=n*(1-i*t),c=n*(1-(1-i)*t),u=r%6;return{r:255*[n,s,a,a,c,n][u],g:255*[c,n,n,s,a,a][u],b:255*[a,a,c,n,n,s][u]}}(e.h,r,s),p=!0,f="hsv"):$(e.h)&&$(e.s)&&$(e.l)&&(r=F(e.s),c=F(e.l),t=function(e,t,n){var r,o,i;function a(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(e=R(e,360),t=R(t,100),n=R(n,100),0===t)r=o=i=n;else{var s=n<.5?n*(1+t):n+t-n*t,c=2*n-s;r=a(c,s,e+1/3),o=a(c,s,e),i=a(c,s,e-1/3)}return{r:255*r,g:255*o,b:255*i}}(e.h,r,c),p=!0,f="hsl"),e.hasOwnProperty("a")&&(n=e.a));var d,h,g;return n=T(n),{ok:p,format:e.format||f,r:u(255,l(t.r,0)),g:u(255,l(t.g,0)),b:u(255,l(t.b,0)),a:n}}(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=c(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=c(this._r)),this._g<1&&(this._g=c(this._g)),this._b<1&&(this._b=c(this._b)),this._ok=n.ok,this._tc_id=s++}function d(e,t,n){e=R(e,255),t=R(t,255),n=R(n,255);var r,o,i=l(e,t,n),a=u(e,t,n),s=(i+a)/2;if(i==a)r=o=0;else{var c=i-a;switch(o=s>.5?c/(2-i-a):c/(i+a),i){case e:r=(t-n)/c+(t<n?6:0);break;case t:r=(n-e)/c+2;break;case n:r=(e-t)/c+4}r/=6}return{h:r,s:o,l:s}}function h(e,t,n){e=R(e,255),t=R(t,255),n=R(n,255);var r,o,i=l(e,t,n),a=u(e,t,n),s=i,c=i-a;if(o=0===i?0:c/i,i==a)r=0;else{switch(i){case e:r=(t-n)/c+(t<n?6:0);break;case t:r=(n-e)/c+2;break;case n:r=(e-t)/c+4}r/=6}return{h:r,s:o,v:s}}function g(e,t,n,r){var o=[M(c(e).toString(16)),M(c(t).toString(16)),M(c(n).toString(16))];return r&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function v(e,t,n,r){return[M(q(r)),M(c(e).toString(16)),M(c(t).toString(16)),M(c(n).toString(16))].join("")}function m(e,t){t=0===t?0:t||10;var n=f(e).toHsl();return n.s-=t/100,n.s=L(n.s),f(n)}function y(e,t){t=0===t?0:t||10;var n=f(e).toHsl();return n.s+=t/100,n.s=L(n.s),f(n)}function b(e){return f(e).desaturate(100)}function w(e,t){t=0===t?0:t||10;var n=f(e).toHsl();return n.l+=t/100,n.l=L(n.l),f(n)}function x(e,t){t=0===t?0:t||10;var n=f(e).toRgb();return n.r=l(0,u(255,n.r-c(-t/100*255))),n.g=l(0,u(255,n.g-c(-t/100*255))),n.b=l(0,u(255,n.b-c(-t/100*255))),f(n)}function E(e,t){t=0===t?0:t||10;var n=f(e).toHsl();return n.l-=t/100,n.l=L(n.l),f(n)}function O(e,t){var n=f(e).toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,f(n)}function S(e){var t=f(e).toHsl();return t.h=(t.h+180)%360,f(t)}function k(e){var t=f(e).toHsl(),n=t.h;return[f(e),f({h:(n+120)%360,s:t.s,l:t.l}),f({h:(n+240)%360,s:t.s,l:t.l})]}function C(e){var t=f(e).toHsl(),n=t.h;return[f(e),f({h:(n+90)%360,s:t.s,l:t.l}),f({h:(n+180)%360,s:t.s,l:t.l}),f({h:(n+270)%360,s:t.s,l:t.l})]}function A(e){var t=f(e).toHsl(),n=t.h;return[f(e),f({h:(n+72)%360,s:t.s,l:t.l}),f({h:(n+216)%360,s:t.s,l:t.l})]}function I(e,t,n){t=t||6,n=n||30;var r=f(e).toHsl(),o=360/n,i=[f(e)];for(r.h=(r.h-(o*t>>1)+720)%360;--t;)r.h=(r.h+o)%360,i.push(f(r));return i}function P(e,t){t=t||6;for(var n=f(e).toHsv(),r=n.h,o=n.s,i=n.v,a=[],s=1/t;t--;)a.push(f({h:r,s:o,v:i})),i=(i+s)%1;return a}f.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,n,r=this.toRgb();return e=r.r/255,t=r.g/255,n=r.b/255,.2126*(e<=.03928?e/12.92:o.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:o.pow((t+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:o.pow((n+.055)/1.055,2.4))},setAlpha:function(e){return this._a=T(e),this._roundA=c(100*this._a)/100,this},toHsv:function(){var e=h(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=h(this._r,this._g,this._b),t=c(360*e.h),n=c(100*e.s),r=c(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+r+"%)":"hsva("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var e=d(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=d(this._r,this._g,this._b),t=c(360*e.h),n=c(100*e.s),r=c(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+r+"%)":"hsla("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(e){return g(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,n,r,o){var i=[M(c(e).toString(16)),M(c(t).toString(16)),M(c(n).toString(16)),M(q(r))];if(o&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)&&i[3].charAt(0)==i[3].charAt(1))return i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0);return i.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:c(this._r),g:c(this._g),b:c(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+c(this._r)+", "+c(this._g)+", "+c(this._b)+")":"rgba("+c(this._r)+", "+c(this._g)+", "+c(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:c(100*R(this._r,255))+"%",g:c(100*R(this._g,255))+"%",b:c(100*R(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+c(100*R(this._r,255))+"%, "+c(100*R(this._g,255))+"%, "+c(100*R(this._b,255))+"%)":"rgba("+c(100*R(this._r,255))+"%, "+c(100*R(this._g,255))+"%, "+c(100*R(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(_[g(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+v(this._r,this._g,this._b,this._a),n=t,r=this._gradientType?"GradientType = 1, ":"";if(e){var o=f(e);n="#"+v(o._r,o._g,o._b,o._a)}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1,r=this._a<1&&this._a>=0;return t||!r||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return f(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(w,arguments)},brighten:function(){return this._applyModification(x,arguments)},darken:function(){return this._applyModification(E,arguments)},desaturate:function(){return this._applyModification(m,arguments)},saturate:function(){return this._applyModification(y,arguments)},greyscale:function(){return this._applyModification(b,arguments)},spin:function(){return this._applyModification(O,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(I,arguments)},complement:function(){return this._applyCombination(S,arguments)},monochromatic:function(){return this._applyCombination(P,arguments)},splitcomplement:function(){return this._applyCombination(A,arguments)},triad:function(){return this._applyCombination(k,arguments)},tetrad:function(){return this._applyCombination(C,arguments)}},f.fromRatio=function(e,t){if("object"==typeof e){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]="a"===r?e[r]:F(e[r]));e=n}return f(e,t)},f.equals=function(e,t){return!(!e||!t)&&f(e).toRgbString()==f(t).toRgbString()},f.random=function(){return f.fromRatio({r:p(),g:p(),b:p()})},f.mix=function(e,t,n){n=0===n?0:n||50;var r=f(e).toRgb(),o=f(t).toRgb(),i=n/100;return f({r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b,a:(o.a-r.a)*i+r.a})},f.readability=function(e,t){var n=f(e),r=f(t);return(o.max(n.getLuminance(),r.getLuminance())+.05)/(o.min(n.getLuminance(),r.getLuminance())+.05)},f.isReadable=function(e,t,n){var r,o,i=f.readability(e,t);switch(o=!1,(r=function(e){var t,n;t=((e=e||{level:"AA",size:"small"}).level||"AA").toUpperCase(),n=(e.size||"small").toLowerCase(),"AA"!==t&&"AAA"!==t&&(t="AA");"small"!==n&&"large"!==n&&(n="small");return{level:t,size:n}}(n)).level+r.size){case"AAsmall":case"AAAlarge":o=i>=4.5;break;case"AAlarge":o=i>=3;break;case"AAAsmall":o=i>=7}return o},f.mostReadable=function(e,t,n){var r,o,i,a,s=null,c=0;o=(n=n||{}).includeFallbackColors,i=n.level,a=n.size;for(var u=0;u<t.length;u++)(r=f.readability(e,t[u]))>c&&(c=r,s=f(t[u]));return f.isReadable(e,s,{level:i,size:a})||!o?s:(n.includeFallbackColors=!1,f.mostReadable(e,["#fff","#000"],n))};var j=f.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},_=f.hexNames=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}(j);function T(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function R(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=u(t,l(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),o.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function L(e){return u(1,l(0,e))}function H(e){return parseInt(e,16)}function M(e){return 1==e.length?"0"+e:""+e}function F(e){return e<=1&&(e=100*e+"%"),e}function q(e){return o.round(255*parseFloat(e)).toString(16)}function V(e){return H(e)/255}var D,N,B,U=(N="[\\s|\\(]+("+(D="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+D+")[,|\\s]+("+D+")\\s*\\)?",B="[\\s|\\(]+("+D+")[,|\\s]+("+D+")[,|\\s]+("+D+")[,|\\s]+("+D+")\\s*\\)?",{CSS_UNIT:new RegExp(D),rgb:new RegExp("rgb"+N),rgba:new RegExp("rgba"+B),hsl:new RegExp("hsl"+N),hsla:new RegExp("hsla"+B),hsv:new RegExp("hsv"+N),hsva:new RegExp("hsva"+B),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function $(e){return!!U.CSS_UNIT.exec(e)}e.exports?e.exports=f:void 0===(r=function(){return f}.call(t,n,t,e))||(e.exports=r)}(Math)},,function(e,t,n){"use strict";n.r(t),n.d(t,"setContext",(function(){return Ae})),n.d(t,"setContextValue",(function(){return Ie})),n.d(t,"executeQuery",(function(){return Pe})),n.d(t,"executeRecommendationQuery",(function(){return je})),n.d(t,"onOpen",(function(){return _e})),n.d(t,"onClose",(function(){return Te})),n.d(t,"usingDefaultRenewFunc",(function(){return Re})),n.d(t,"customRenewAccessToken",(function(){return Le})),n.d(t,"setRenewAccessTokenFunction",(function(){return He})),n.d(t,"hide",(function(){return Me})),n.d(t,"show",(function(){return Fe}));const r=".coveo-custom-ipx-target",o="eyJhbGciOiJIUzI1NiJ9.eyJzZWFyY2hIdWIiOiJJbkJ1bmRsZVNlYXJjaCIsInY4Ijp0cnVlLCJvcmdhbml6YXRpb24iOiJwaW5naWRlbnRpdHlwcm9kdWN0aW9uYnVjNTdxbnEiLCJ1c2VySWRzIjpbeyJwcm92aWRlciI6IkVtYWlsIFNlY3VyaXR5IFByb3ZpZGVyIiwibmFtZSI6ImFub255bW91c0Bjb3Zlby5jb20iLCJ0eXBlIjoiVXNlciJ9XSwicm9sZXMiOlsicXVlcnlFeGVjdXRvciJdLCJ1c2VyRGlzcGxheU5hbWUiOiJBbm9ueW1vdXMiLCJleHAiOjE2MzkyMzc0OTAsImlhdCI6MTYzOTE1MTA5MH0._3hKQm_RNVXQuDjD9SKuHKfPKt6FLPhBoXMuIAQY8QU",i="https://search.cloud.coveo.com/pages/pingidentityproductionbuc57qnq/inappwidget/ee62382d-2250-4d3e-8423-d47b4d7e1d8d",a="<style></style>",s="",c="",u=".btn.mod-primary",l="	font-size: 24px;	font-family: Lato,Arial,Helvetica,sans-serif;		bottom: 10px;	right: 50px;	",p=".btn.mod-primary:hover",f=".btn.mod-primary:focus",d="btn mod-primary",h="Bundle Search",g="<svg xmlns=\"http://www.w3.org/2000/svg\" fill=\"white\" viewBox=\"0 0 22 22\">                 <g>                         <path d=\"m1,11c0,5.52 4.48,10 10,10s10,-4.48 10,-10s-4.48,-10 -10,-10s-10,4.48 -10,10z\" fill=\"transparent\"></path>                         <path d=\"m11,22c-6.07,0 -11,-4.935 -11,-11s4.935,-11 11,-11s11,4.935 11,11s-4.935,11 -11,11m0,-20c-4.962,0 -9,4.04 -9,9s4.04,9 9,9s9,-4.04 9,-9s-4.04,-9 -9,-9\"></path>                         <path d=\"m10,17l2,0l0,-2l-2,0l0,2m1,-12.344c-2.21,0 -4,1.79 -4,4l2,0c0,-1.1 0.9,-2 2,-2s2,0.9 2,2c0,2 -3,1.75 -3,5l2,0c0,-2.25 3,-2.5 3,-5c0,-2.21 -1.79,-4 -4,-4\"></path>                 </g>        </svg>",v="https://analytics.cloud.coveo.com/rest/ua",m="ee62382d-2250-4d3e-8423-d47b4d7e1d8d",y="#f58020",b="#fff";var w=n(13);class x{constructor(e=new w.a){this.bus=e,this.publishInitialization(),this.publishHref(),this.publishVisitorId()}init(e){const t={postMessage:e.postMessage.bind(e),originToPublishTo:i},n={addEventListener:window.addEventListener.bind(window),originToListenFrom:i};this.bus.sub=n,this.bus.pub=t,this.bus.start()}publishOpen(){this.bus.publish({key:"open"})}publishClose(){this.bus.publish({key:"close"})}publishExecuteQuery(e){this.bus.publish({key:"executeQuery",payload:{options:e}})}publishExecuteRecommendationQuery(e){this.bus.publish({key:"executeRecommendationQuery",payload:{options:e}})}publishContext(e){this.bus.publish({key:"context",payload:{context:e}})}publishContextValue(e,t){this.bus.publish({key:"contextValue",payload:{contextKey:e,contextValue:t}})}publishInitialization(){this.bus.publish({key:"init",payload:{origin:location.origin}})}publishHref(){this.bus.publish({key:"href",payload:{href:document.location.href}})}publishVisitorId(){const e=localStorage.getItem("visitorId");e&&this.bus.publish({key:"visitorId",payload:{visitorId:e}})}subscribeToCustomTokenHasExpired(e){this.bus.subscribe("customTokenHasExpired",()=>{e()})}publishNewCustomToken(e){this.bus.publish({key:"newAccessToken",payload:{token:e}})}customRenewFunctionIsAvailable(){this.bus.publish({key:"customRenewFunctionIsAvailable"})}subscribeToHeightChanged(e){this.bus.subscribe("heightChanged",t=>{e(t.data.payload.currentHeight)})}}const E=new x;const O=new(n(2).b);class S extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"}),this.applyStyles(),this.iframe=this.buildIFrame(),this.messages=new x,this.iframe.onload=()=>this.onIframeLoad(),this.shadowRoot.append(this.iframe)}onIframeLoad(){this.messages.init(this.iframe.contentWindow),O.resolve(this)}applyStyles(){this.style.width="100%"}buildIFrame(){const e=document.createElement("iframe");return e.setAttribute("src",i+"?access_token="+o),e.setAttribute("sandbox","allow-scripts allow-same-origin allow-top-navigation allow-popups allow-popups-to-escape-sandbox"),e.style.height="100%",e.style.width="100%",e.style.borderStyle="none",e.style.borderRadius="8px",e}}class k extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"}),this.page=new S,this.attachPage(),this.applyStyles()}connectedCallback(){this.observeDomChangeInFrame()}set popper(e){this.popperReference=e}get popper(){return this.popperReference}attachPage(){this.shadowRoot.append(this.page)}observeDomChangeInFrame(){this.page.messages.subscribeToHeightChanged(e=>this.adjustModalHeight(e))}adjustModalHeight(e){let t;t=e>this.desiredHeight||e<this.desiredHeight?this.desiredHeight:e,this.style.height=`${t}px`,this.popperReference&&this.popperReference.update()}get desiredHeight(){return Math.min(720,document.documentElement.clientHeight)}applyStyles(){this.style.display="flex",this.style.zIndex="999999",this.style.backgroundColor="white",this.style.boxShadow="0 0 7px rgba(0,0,0,.5)",this.style.height=`${this.desiredHeight}px`,this.style.maxHeight="80vh",this.style.width="80vw",this.style.maxWidth="500px",this.style.opacity="0",this.style.borderRadius="8px"}}var C=n(17),A=n(3),I={passive:!0};var P={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=void 0===o||o,a=r.resize,s=void 0===a||a,c=Object(A.a)(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach((function(e){e.addEventListener("scroll",n.update,I)})),s&&c.addEventListener("resize",n.update,I),function(){i&&u.forEach((function(e){e.removeEventListener("scroll",n.update,I)})),s&&c.removeEventListener("resize",n.update,I)}},data:{}},j=n(5);function _(e){return e.split("-")[1]}function T(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}var R=n(0);function L(e){var t,n=e.reference,r=e.element,o=e.placement,i=o?Object(j.a)(o):null,a=o?_(o):null,s=n.x+n.width/2-r.width/2,c=n.y+n.height/2-r.height/2;switch(i){case R.m:t={x:s,y:n.y-r.height};break;case R.c:t={x:s,y:n.y+n.height};break;case R.k:t={x:n.x+n.width,y:c};break;case R.f:t={x:n.x-r.width,y:c};break;default:t={x:n.x,y:n.y}}var u=i?T(i):null;if(null!=u){var l="y"===u?"height":"width";switch(a){case R.l:t[u]=Math.floor(t[u])-Math.floor(n[l]/2-r[l]/2);break;case R.e:t[u]=Math.floor(t[u])+Math.ceil(n[l]/2-r[l]/2)}}return t}var H={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=L({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},M=n(9),F=n(7),q={top:"auto",right:"auto",bottom:"auto",left:"auto"};function V(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.offsets,a=e.position,s=e.gpuAcceleration,c=e.adaptive,u=function(e){var t=e.x,n=e.y,r=window.devicePixelRatio||1;return{x:Math.round(t*r)/r||0,y:Math.round(n*r)/r||0}}(i),l=u.x,p=u.y,f=i.hasOwnProperty("x"),d=i.hasOwnProperty("y"),h=R.f,g=R.m,v=window;if(c){var m=Object(M.a)(n);m===Object(A.a)(n)&&(m=Object(F.a)(n)),o===R.m&&(g=R.c,p-=m.clientHeight-r.height,p*=s?1:-1),o===R.f&&(h=R.k,l-=m.clientWidth-r.width,l*=s?1:-1)}var y,b=Object.assign({position:a},c&&q);return s?Object.assign({},b,((y={})[g]=d?"0":"",y[h]=f?"0":"",y.transform=(v.devicePixelRatio||1)<2?"translate("+l+"px, "+p+"px)":"translate3d("+l+"px, "+p+"px, 0)",y)):Object.assign({},b,((t={})[g]=d?p+"px":"",t[h]=f?l+"px":"",t.transform="",t))}var D={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,i=n.adaptive,a=void 0===i||i,s={placement:Object(j.a)(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o};t.styles.popper=Object.assign({},t.styles.popper,{},V(Object.assign({},s,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a}))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,{},V(Object.assign({},s,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},N=n(6),B=n(1);var U={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];Object(B.b)(o)&&Object(N.a)(o)&&(Object.assign(o.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:"absolute",left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],o=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});Object(B.b)(r)&&Object(N.a)(r)&&(Object.assign(r.style,i),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]};var $={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=void 0===o?[0,0]:o,a=R.h.reduce((function(e,n){return e[n]=function(e,t,n){var r=Object(j.a)(e),o=[R.f,R.m].indexOf(r)>=0?-1:1,i="function"==typeof n?n(Object.assign({},t,{placement:e})):n,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[R.f,R.k].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}(n,t.rects,i),e}),{}),s=a[t.placement],c=s.x,u=s.y;t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=u,t.modifiersData[r]=a}},W={left:"right",right:"left",bottom:"top",top:"bottom"};function z(e){return e.replace(/left|right|bottom|top/g,(function(e){return W[e]}))}var Q={start:"end",end:"start"};function Y(e){return e.replace(/start|end/g,(function(e){return Q[e]}))}var G=n(10);var J=n(16),K=n(11);var X=n(14),Z=n(8);function ee(e){return parseFloat(e)||0}var te=n(15);function ne(e){var t=Object(A.a)(e),n=function(e){var t=Object(B.b)(e)?Object(Z.a)(e):{};return{top:ee(t.borderTopWidth),right:ee(t.borderRightWidth),bottom:ee(t.borderBottomWidth),left:ee(t.borderLeftWidth)}}(e),r="html"===Object(N.a)(e),o=Object(te.a)(e),i=e.clientWidth+n.right,a=e.clientHeight+n.bottom;return r&&t.innerHeight-e.clientHeight>50&&(a=t.innerHeight-n.bottom),{top:r?0:e.clientTop,right:e.clientLeft>n.left?n.right:r?t.innerWidth-i-o:e.offsetWidth-i,bottom:r?t.innerHeight-a:e.offsetHeight-a,left:r?o:e.clientLeft}}function re(e,t){var n=Boolean(t.getRootNode&&t.getRootNode().host);if(e.contains(t))return!0;if(n){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function oe(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function ie(e,t){return t===R.o?oe(function(e){var t=Object(A.a)(e);return{width:t.innerWidth,height:t.innerHeight,x:0,y:0}}(e)):Object(B.b)(t)?Object(G.a)(t):oe(function(e){var t=Object(A.a)(e),n=Object(K.a)(e),r=Object(J.a)(Object(F.a)(e),t);return r.height=Math.max(r.height,t.innerHeight),r.width=Math.max(r.width,t.innerWidth),r.x=-n.scrollLeft,r.y=-n.scrollTop,r}(Object(F.a)(e)))}function ae(e,t,n){var r="clippingParents"===t?function(e){var t=Object(X.a)(e),n=["absolute","fixed"].indexOf(Object(Z.a)(e).position)>=0&&Object(B.b)(e)?Object(M.a)(e):e;return Object(B.a)(n)?t.filter((function(e){return Object(B.a)(e)&&re(e,n)})):[]}(e):[].concat(t),o=[].concat(r,[n]),i=o[0],a=o.reduce((function(t,n){var r=ie(e,n),o=ne(Object(B.b)(n)?n:Object(F.a)(e));return t.top=Math.max(r.top+o.top,t.top),t.right=Math.min(r.right-o.right,t.right),t.bottom=Math.min(r.bottom-o.bottom,t.bottom),t.left=Math.max(r.left+o.left,t.left),t}),ie(e,i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function se(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},{},e)}function ce(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function ue(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,i=n.boundary,a=void 0===i?R.d:i,s=n.rootBoundary,c=void 0===s?R.o:s,u=n.elementContext,l=void 0===u?R.i:u,p=n.altBoundary,f=void 0!==p&&p,d=n.padding,h=void 0===d?0:d,g=se("number"!=typeof h?h:ce(h,R.b)),v=l===R.i?R.j:R.i,m=e.elements.reference,y=e.rects.popper,b=e.elements[f?v:l],w=ae(Object(B.a)(b)?b:Object(F.a)(e.elements.popper),a,c),x=Object(G.a)(m),E=L({reference:x,element:y,strategy:"absolute",placement:o}),O=oe(Object.assign({},y,{},E)),S=l===R.i?O:x,k={top:w.top-S.top+g.top,bottom:S.bottom-w.bottom+g.bottom,left:w.left-S.left+g.left,right:S.right-w.right+g.right},C=e.modifiersData.offset;if(l===R.i&&C){var A=C[o];Object.keys(k).forEach((function(e){var t=[R.k,R.c].indexOf(e)>=0?1:-1,n=[R.m,R.c].indexOf(e)>=0?"y":"x";k[e]+=A[n]*t}))}return k}var le={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.fallbackPlacements,i=n.padding,a=n.boundary,s=n.rootBoundary,c=n.altBoundary,u=n.flipVariations,l=void 0===u||u,p=t.options.placement,f=Object(j.a)(p),d=o||(f===p||!l?[z(p)]:function(e){if(Object(j.a)(e)===R.a)return[];var t=z(e);return[Y(e),t,Y(t)]}(p)),h=[p].concat(d).reduce((function(e,n){return e.concat(Object(j.a)(n)===R.a?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,s=n.flipVariations,c=_(r),u=(c?s?R.n:R.n.filter((function(e){return _(e)===c})):R.b).reduce((function(t,n){return t[n]=ue(e,{placement:n,boundary:o,rootBoundary:i,padding:a})[Object(j.a)(n)],t}),{});return Object.keys(u).sort((function(e,t){return u[e]-u[t]}))}(t,{placement:n,boundary:a,rootBoundary:s,padding:i,flipVariations:l}):n)}),[]),g=t.rects.reference,v=t.rects.popper,m=new Map,y=!0,b=h[0],w=0;w<h.length;w++){var x=h[w],E=Object(j.a)(x),O=_(x)===R.l,S=[R.m,R.c].indexOf(E)>=0,k=S?"width":"height",C=ue(t,{placement:x,boundary:a,rootBoundary:s,altBoundary:c,padding:i}),A=S?O?R.k:R.f:O?R.c:R.m;g[k]>v[k]&&(A=z(A));var I=z(A),P=[C[E]<=0,C[A]<=0,C[I]<=0];if(P.every((function(e){return e}))){b=x,y=!1;break}m.set(x,P)}if(y)for(var T=function(e){var t=h.find((function(t){var n=m.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return b=t,"break"},L=l?3:1;L>0;L--){if("break"===T(L))break}t.placement!==b&&(t.modifiersData[r]._skip=!0,t.placement=b,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function pe(e,t,n){return Math.max(e,Math.min(t,n))}var fe=n(12);function de(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function he(e){return[R.m,R.k,R.c,R.f].some((function(t){return e[t]>=0}))}var ge,ve=[P,H,D,U,$,le,{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=void 0===o||o,a=n.altAxis,s=void 0!==a&&a,c=n.boundary,u=n.rootBoundary,l=n.altBoundary,p=n.padding,f=n.tether,d=void 0===f||f,h=n.tetherOffset,g=void 0===h?0:h,v=ue(t,{boundary:c,rootBoundary:u,padding:p,altBoundary:l}),m=Object(j.a)(t.placement),y=_(t.placement),b=!y,w=T(m),x="x"===w?"y":"x",E=t.modifiersData.popperOffsets,O=t.rects.reference,S=t.rects.popper,k="function"==typeof g?g(Object.assign({},t.rects,{placement:t.placement})):g,C={x:0,y:0};if(i){var A="y"===w?R.m:R.f,I="y"===w?R.c:R.k,P="y"===w?"height":"width",L=E[w],H=E[w]+v[A],F=E[w]-v[I],q=d?-S[P]/2:0,V=y===R.l?O[P]:S[P],D=y===R.l?-S[P]:-O[P],N=t.elements.arrow,B=d&&N?Object(fe.a)(N):{width:0,height:0},U=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},$=U[A],W=U[I],z=pe(0,O[P],B[P]),Q=b?O[P]/2-q-z-$-k:V-z-$-k,Y=b?-O[P]/2+q+z+W+k:D+z+W+k,G=t.elements.arrow&&Object(M.a)(t.elements.arrow),J=G?"y"===w?G.clientTop||0:G.clientLeft||0:0,K=t.modifiersData.offset?t.modifiersData.offset[t.placement][w]:0,X=E[w]+Q-K-J,Z=E[w]+Y-K,ee=pe(d?Math.min(H,X):H,L,d?Math.max(F,Z):F);E[w]=ee,C[w]=ee-L}if(s){var te="x"===w?R.m:R.f,ne="x"===w?R.c:R.k,re=E[x],oe=pe(re+v[te],re,re-v[ne]);t.modifiersData.popperOffsets[x]=oe,C[x]=oe-re}t.modifiersData[r]=C},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=n.elements.arrow,i=n.modifiersData.popperOffsets,a=Object(j.a)(n.placement),s=T(a),c=[R.f,R.k].indexOf(a)>=0?"height":"width";if(o){var u=n.modifiersData[r+"#persistent"].padding,l=Object(fe.a)(o),p="y"===s?R.m:R.f,f="y"===s?R.c:R.k,d=n.rects.reference[c]+n.rects.reference[s]-i[s]-n.rects.popper[c],h=i[s]-n.rects.reference[s],g=n.elements.arrow&&Object(M.a)(n.elements.arrow),v=d/2-h/2-(g?"y"===s?g.clientLeft||0:g.clientTop||0:0),m=pe(u[p],n.rects.popper[c]/2-l[c]/2+v,n.rects.popper[c]-l[c]-u[f]),y=s;n.modifiersData[r]=((t={})[y]=m,t)}},effect:function(e){var t=e.state,n=e.options,r=e.name,o=n.element,i=void 0===o?"[data-popper-arrow]":o,a=n.padding,s=void 0===a?0:a;("string"!=typeof i||(i=t.elements.popper.querySelector(i)))&&re(t.elements.popper,i)&&(t.elements.arrow=i,t.modifiersData[r+"#persistent"]={padding:se("number"!=typeof s?s:ce(s,R.b))})},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=ue(t,{elementContext:"reference"}),s=ue(t,{altBoundary:!0}),c=de(a,r),u=de(s,o,i),l=he(c),p=he(u);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:u,isReferenceHidden:l,hasPopperEscaped:p},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":l,"data-popper-escaped":p})}}],me=Object(C.popperGenerator)({defaultModifiers:ve}),ye=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))};class be{constructor(e){this.modal=e,this.animateModal(),this.animateOpacityOnIframe()}animateModal(){switch(this.modal.style.transitionProperty="opacity,margin",this.modal.style.transitionDuration="0.5s",this.modal.style.transitionTimingFunction="ease-in",this.modal.style.opacity="1",this.modal.getAttribute("data-popper-placement")){case"bottom":this.modal.style.marginTop="16px";break;case"top":this.modal.style.marginBottom="16px"}}animateOpacityOnIframe(){return ye(this,void 0,void 0,(function*(){this.modal.page.iframe.style.transitionProperty="opacity",this.modal.page.iframe.style.transitionDuration="0.5s",this.modal.page.iframe.style.transitionTimingFunction="ease-in",this.modal.page.iframe.style.opacity="0",yield O.value,this.modal.page.iframe.style.opacity="1"}))}}class we{constructor(e){this.props=e,this.isOpen=!1,this.addClickHandler()}addClickHandler(){this.props.button.addEventListener("click",()=>this.onClick())}onClick(){this.isOpen?this.close():this.open(),this.isOpen=!this.isOpen}open(){this.popUp?(this.popUp.style.visibility="visible",this.popUp.style.pointerEvents="initial",this.popUp.popper.forceUpdate()):(this.createAndAppendPopUp(),this.positionPopUp()),this.props.onOpen()}close(){this.popUp.style.visibility="hidden",this.popUp.style.pointerEvents="none",this.props.onClose()}createAndAppendPopUp(){this.popUp=new k,document.body.append(this.popUp)}positionPopUp(){if(!this.popUp)return;const e=me(this.props.button,this.popUp,{modifiers:[{name:"preventOverflow",options:{padding:{top:this.margin,right:50,bottom:this.margin,left:this.margin}}}],onFirstUpdate:()=>{this.popUp&&new be(this.popUp)}});this.popUp.popper=e}get margin(){return 16}}!function(e){e.Page="coveo-page",e.PageModal="coveo-page-modal",e.CoveoInAppWidgetFrameAnimation="coveo-in-app-widget-frame-animation",e.CoveoInAppWidgetLoader="coveo-in-app-widget-loader"}(ge||(ge={}));const xe=n(30);class Ee extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"}),this.shadowRoot.append(this.template().content.cloneNode(!0)),this.executeAdditionalInlineJavaScript(),this.executeAdditionalHeaderJavaScript()}connectedCallback(){!this.manager&&this.initManager()}show(){this.classList.remove(this.hiddenClass)}hide(){this.classList.add(this.hiddenClass)}get hiddenClass(){return`${ge.CoveoInAppWidgetLoader}-hidden`}initManager(){const e=this.shadowRoot.querySelector("button");e&&(this.manager=new we({button:e,onOpen:()=>this.onOpen(),onClose:()=>this.onClose()}))}executeAdditionalInlineJavaScript(){for(const e of s){const t=document.createElement("script"),n=document.createTextNode(e);t.appendChild(n),this.shadowRoot.appendChild(t)}}executeAdditionalHeaderJavaScript(){for(const e of c){const t=document.createElement("script");t.src=e,this.shadowRoot.appendChild(t)}}template(){const e=document.createElement("template");return e.innerHTML=`\n    ${a}\n    \n    <style>\n\n    ${this.buttonStyling}\n    ${this.svgIconStyling}\n    ${this.hostStyling}\n    ${this.svgAnimationStyling}\n    ${this.buttonTextStyling}\n\n    </style>\n    \n    <button class="${d}" part="button">\n        <span class="icon" part="button-icon">\n            ${this.svgClose}\n            ${this.svgOpen}\n        </span>\n        <span class="buttonText" part="button-text">\n            ${h}\n        </span>\n    </button>\n    `,e}get svgClose(){var e;const t=document.createElement("div");return t.innerHTML=g,null===(e=t.querySelector("svg"))||void 0===e||e.setAttribute("fill",this.textColor),`\n    <img class='svg-close' src='data:image/svg+xml;utf8,${t.innerHTML}' >\n    `}get svgOpen(){return'\n    <svg class=\'svg-open\' viewBox="0 0 22 22">\n        <path d="M.818 2.232L2.232.818l19.02 19.02-1.413 1.415z"></path>\n        <path d="M.818 19.768L19.838.748l1.415 1.413L2.232 21.182z"></path>\n    </svg>\n    '}onOpen(){E.publishOpen(),this.button.classList.add("btn-open")}onClose(){E.publishClose(),this.button.classList.remove("btn-open")}linearGradient(e,t){return`linear-gradient(315deg, ${e} 0%, ${t} 74%);`}get button(){return this.shadowRoot.querySelector("button")}get mainColor(){return y||"rgb(253, 175, 34)"}get analogousColor(){return xe(this.mainColor).analogous()[1].toRgbString()}get textColor(){return xe(b||"rgb(255,255,255)").toRgbString()}get buttonStyling(){return` ${u} {\n            ${l}\n            \n            overflow: hidden;\n            position: fixed;\n    \n            user-select: none;\n            cursor: pointer;\n            border: none;\n            border-radius: 4px;\n            height: 44px;\n            width: 150px;\n            padding: 10px;\n            margin: 0;\n            vertical-align: middle;\n    \n            box-sizing: border-box;\n            display: flex;\n            align-items: center;\n            justify-content: center;\n            font-family: "Lato", Arial, Helvetica, sans-serif;\n            font-weight: 700;\n            line-height: 15px;\n            text-decoration: none;\n            text-overflow: ellipsis;\n            text-transform: uppercase;\n            white-space: nowrap;\n    \n            color: ${this.textColor};\n            background-color: ${this.mainColor};\n            background-image: ${this.linearGradient(this.analogousColor,this.mainColor)};\n        }\n\n        ${u}:before {\n            position: absolute;\n            content: "";\n            top: 0;\n            right: 0;\n            bottom: 0;\n            left: 0;\n            z-index: -1;\n            transition: opacity 0.5s linear;\n            opacity: 0;\n            background-image: ${this.linearGradient(this.mainColor,this.analogousColor)};\n        }\n\n        ${p}:before {\n            opacity: 1;\n        }\n    \n        ${f} {\n            outline: none;\n        }\n        `}get svgIconStyling(){return`\n        .icon {\n            fill: ${this.textColor};\n            padding: 0;\n            font-size: 100%;\n            display: inline-block;\n    \n            margin-right: 8px;\n            width: 1.2em;\n            height: 1.2em;\n            vertical-align: -0.5em;\n            position: relative;\n        }\n        `}get hostStyling(){return`\n        :host(${ge.CoveoInAppWidgetLoader}) {\n            z-index: 999999;\n            position: relative;\n          }\n      \n          :host(.${this.hiddenClass}) {\n              display: none;\n          }\n        `}get svgAnimationStyling(){return"\n        .svg-open, .svg-close {\n            transition: transform 500ms;\n            position: absolute;\n            left: 0;\n        }\n    \n        .svg-close {\n            transform: translateY(0);\n        }\n    \n        .btn-open .svg-close {\n            transform: translateY(50px);\n        }\n    \n        .svg-open {\n            transform: translateY(-50px);\n        }\n    \n        .btn-open .svg-open {\n            transform: translateY(0);\n        }\n    \n        "}get buttonTextStyling(){return"\n            .buttonText {\n                overflow: hidden;\n                max-width: 107px;\n            }\n        "}}class Oe{constructor(){this.findTargetElementUsingInterval()}findTargetElementUsingInterval(){this.findTargetAndPopulate(),window.setInterval(()=>this.findTargetAndPopulate(),200)}findTargetAndPopulate(){const e=this.findTargetElement();e&&this.onTargetElementFound(e)}findTargetElement(){const e=r;try{return document.querySelector(e)}catch(t){return console.error(`${e} is not a valid CSS selector. Cannot retrieve target element.`),null}}onTargetElementFound(e){this.pageIsNotChildOfElement(e)&&(this.appendPageToElement(e),this.publishOpenAndCloseEvents(e))}publishOpenAndCloseEvents(e){let t=!0;this.observeElementAndItsAncestors(e,()=>{const n=this.isElementVisible(e);n&&!t&&E.publishOpen(),!n&&t&&E.publishClose(),t=n})}pageIsNotChildOfElement(e){return!e.querySelector(ge.Page)}appendPageToElement(e){const t=new S;e.append(t)}observeElementAndItsAncestors(e,t){new MutationObserver(()=>t()).observe(e,{attributes:!0}),null!==e.parentElement&&this.observeElementAndItsAncestors(e.parentElement,t)}isElementVisible(e){const t=getComputedStyle(e);return"body"===e.tagName.toLowerCase()||"none"!==t.display&&(("absolute"!==t.position&&"fixed"!==t.position||"hidden"!==t.visibility&&"0"!==t.opacity)&&((0!==e.clientWidth||0!==e.clientHeight)&&(null!==e.parentElement&&this.isElementVisible(e.parentElement))))}}var Se=n(18);function ke(e){const t=`IPX is no longer injecting a "${e}" global. If you would like to use it, please load the following script before IPX:\n\n`+'<script type="text/javascript" src="https://static.cloud.coveo.com/coveo.analytics.js/2/coveoua.js"><\/script>';e in window||Object.defineProperty(window,e,{get:()=>console.warn(t)})}ke("coveoua"),ke("coveoanalytics");var Ce=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))};window.customElements.define(ge.Page,S),window.customElements.define(ge.PageModal,k),window.customElements.define(ge.CoveoInAppWidgetLoader,Ee),new class{constructor(){this.trackPageView(),this.initExperience()}trackPageView(){Object(Se.handleOneAnalyticsEvent)("init",o,v),Object(Se.handleOneAnalyticsEvent)("send","custom",{eventType:"appNavigation",eventValue:"pageView",originLevel2:"default",originLevel3:document.location.href,language:navigator.language,custom:{IPX:!0,IPX_ID:m,referrer:document.location.href}})}initExperience(){r?this.createEmbeddedSearchPage():this.createButton()}createEmbeddedSearchPage(){new Oe}createButton(){const e=document.createElement(ge.CoveoInAppWidgetLoader);document.body.appendChild(e)}},O.value.then(e=>{E.init(e.iframe.contentWindow),E.subscribeToCustomTokenHasExpired(()=>Ce(void 0,void 0,void 0,(function*(){try{const e=yield Le();E.publishNewCustomToken(e)}catch(e){E.publishNewCustomToken(""),console.error("Failed to renew the access token. Please check your renew access token function",e)}})))});const Ae=e=>E.publishContext(e),Ie=(e,t)=>E.publishContextValue(e,t),Pe=e=>E.publishExecuteQuery(e),je=e=>E.publishExecuteRecommendationQuery(e),_e=()=>E.publishOpen(),Te=()=>E.publishClose();var Re=!0,Le=()=>Promise.resolve("");const He=e=>{Le=e,Re&&(E.customRenewFunctionIsAvailable(),Re=!1)},Me=()=>{const e=document.querySelector(ge.CoveoInAppWidgetLoader);e&&e.hide()},Fe=()=>{const e=document.querySelector(ge.CoveoInAppWidgetLoader);e&&e.show()}}]);
