!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("Coveo__temporary",[],t):"object"==typeof exports?exports.Coveo__temporary=t():e.Coveo__temporary=t()}("undefined"!=typeof self?self:this,function(){return function(e){function t(n){if(i[n])return i[n].exports;var o=i[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n=window.webpackJsonpCoveo__temporary;window.webpackJsonpCoveo__temporary=function(t,i,r){for(var s,a,u=0,l=[];u<t.length;u++)a=t[u],o[a]&&l.push(o[a][0]),o[a]=0;for(s in i)Object.prototype.hasOwnProperty.call(i,s)&&(e[s]=i[s]);for(n&&n(t,i,r);l.length;)l.shift()()};var i={},o={88:0,1:0,2:0,3:0,4:0,5:0,6:0,7:0,8:0,9:0,10:0,11:0,12:0,13:0,14:0,15:0,16:0,17:0,18:0,19:0,20:0,21:0,22:0,23:0,24:0,25:0,26:0,27:0,28:0,29:0,30:0,31:0,32:0,33:0,34:0,35:0,36:0,37:0,38:0,39:0,40:0,41:0,42:0,43:0,44:0,45:0,46:0,47:0,48:0,49:0,50:0,51:0,52:0,53:0,54:0,55:0,56:0,57:0,58:0,59:0,60:0,61:0,62:0,63:0,64:0,65:0,66:0,67:0,68:0,69:0,70:0,71:0,72:0,73:0,74:0,75:0,76:0,77:0,78:0,79:0,80:0,81:0,82:0,83:0,84:0,85:0,86:0,87:0};return t.e=function(e){function n(){a.onerror=a.onload=null,clearTimeout(u);var t=o[e];0!==t&&(t&&t[1](new Error("Loading chunk "+e+" failed.")),o[e]=void 0)}var i=o[e];if(0===i)return new Promise(function(e){e()});if(i)return i[2];var r=new Promise(function(t,n){i=o[e]=[t,n]});i[2]=r;var s=document.getElementsByTagName("head")[0],a=document.createElement("script");a.type="text/javascript",a.charset="utf-8",a.async=!0,a.timeout=12e4,t.nc&&a.setAttribute("nonce",t.nc),a.src=t.p+""+({0:"RelevanceInspector"}[e]||e)+".min__96eeaf9466001777995a.js";var u=setTimeout(n,12e4);return a.onerror=a.onload=n,s.appendChild(a),r},t.m=e,t.c=i,t.d=function(e,n,i){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:i})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="js/",t.oe=function(e){throw console.error(e),e},t(t.s=807)}([function(e,t,n){"use strict";function i(e,t){return t=null==t?e.length-1:+t,function(){for(var n=Math.max(arguments.length-t,0),i=Array(n),o=0;o<n;o++)i[o]=arguments[o+t];switch(t){case 0:return e.call(this,i);case 1:return e.call(this,arguments[0],i);case 2:return e.call(this,arguments[0],arguments[1],i)}var r=Array(t+1);for(o=0;o<t;o++)r[o]=arguments[o];return r[t]=i,e.apply(this,r)}}function o(e){var t=typeof e;return"function"===t||"object"===t&&!!e}function r(e){return null===e}function s(e){return void 0===e}function a(e){return!0===e||!1===e||"[object Boolean]"===rt.t.call(e)}function u(e){return!(!e||1!==e.nodeType)}function l(e){var t="[object "+e+"]";return function(e){return rt.t.call(e)===t}}function c(e){return null!=e&&mt(e.getInt8)&&dt(e.buffer)}function p(e,t){return null!=e&&rt.i.call(e,t)}function d(e){return!pt(e)&&Object(rt.f)(e)&&!isNaN(parseFloat(e))}function h(e){return at(e)&&Object(rt.g)(e)}function f(e){return function(){return e}}function m(e){return function(t){var n=e(t);return"number"==typeof n&&n>=0&&n<=rt.b}}function y(e){return function(t){return null==t?void 0:t[e]}}function g(e){return rt.l?Object(rt.l)(e)&&!St(e):xt(e)&&Et.test(rt.t.call(e))}function v(e){for(var t={},n=e.length,i=0;i<n;++i)t[e[i]]=!0;return{contains:function(e){return t[e]},push:function(n){return t[n]=!0,e.push(n)}}}function b(e,t){t=v(t);var n=rt.n.length,i=e.constructor,o=mt(i)&&i.prototype||rt.c,r="constructor";for(p(e,r)&&!t.contains(r)&&t.push(r);n--;)(r=rt.n[n])in e&&e[r]!==o[r]&&!t.contains(r)&&t.push(r)}function S(e){if(!o(e))return[];if(rt.m)return Object(rt.m)(e);var t=[];for(var n in e)p(e,n)&&t.push(n);return rt.h&&b(e,t),t}function C(e){if(null==e)return!0;var t=Tt(e);return"number"==typeof t&&(Ct(e)||st(e)||_t(e))?0===t:0===Tt(S(e))}function w(e,t){var n=S(t),i=n.length;if(null==e)return!i;for(var o=Object(e),r=0;r<i;r++){var s=n[r];if(t[s]!==o[s]||!(s in o))return!1}return!0}function _(e){return e instanceof _?e:this instanceof _?void(this._wrapped=e):new _(e)}function O(e){return new Uint8Array(e.buffer||e,e.byteOffset||0,Ot(e))}function x(e,t,n,i){if(e===t)return 0!==e||1/e==1/t;if(null==e||null==t)return!1;if(e!==e)return t!==t;var o=typeof e;return("function"===o||"object"===o||"object"==typeof t)&&E(e,t,n,i)}function E(e,t,n,i){e instanceof _&&(e=e._wrapped),t instanceof _&&(t=t._wrapped);var o=rt.t.call(e);if(o!==rt.t.call(t))return!1;if(gt&&"[object Object]"==o&&St(e)){if(!St(t))return!1;o=Rt}switch(o){case"[object RegExp]":case"[object String]":return""+e==""+t;case"[object Number]":return+e!=+e?+t!=+t:0==+e?1/+e==1/t:+e==+t;case"[object Date]":case"[object Boolean]":return+e==+t;case"[object Symbol]":return rt.d.valueOf.call(e)===rt.d.valueOf.call(t);case"[object ArrayBuffer]":case Rt:return E(O(e),O(t),n,i)}var r="[object Array]"===o;if(!r&&At(e)){if(Ot(e)!==Ot(t))return!1;if(e.buffer===t.buffer&&e.byteOffset===t.byteOffset)return!0;r=!0}if(!r){if("object"!=typeof e||"object"!=typeof t)return!1;var s=e.constructor,a=t.constructor;if(s!==a&&!(mt(s)&&s instanceof s&&mt(a)&&a instanceof a)&&"constructor"in e&&"constructor"in t)return!1}n=n||[],i=i||[];for(var u=n.length;u--;)if(n[u]===e)return i[u]===t;if(n.push(e),i.push(t),r){if((u=e.length)!==t.length)return!1;for(;u--;)if(!x(e[u],t[u],n,i))return!1}else{var l,c=S(e);if(u=c.length,S(t).length!==u)return!1;for(;u--;)if(l=c[u],!p(t,l)||!x(e[l],t[l],n,i))return!1}return n.pop(),i.pop(),!0}function A(e,t){return x(e,t)}function T(e){if(!o(e))return[];var t=[];for(var n in e)t.push(n);return rt.h&&b(e,t),t}function R(e){var t=Tt(e);return function(n){if(null==n)return!1;var i=T(n);if(Tt(i))return!1;for(var o=0;o<t;o++)if(!mt(n[e[o]]))return!1;return e!==Dt||!mt(n[Ft])}}function F(e){for(var t=S(e),n=t.length,i=Array(n),o=0;o<n;o++)i[o]=e[t[o]];return i}function M(e){for(var t=S(e),n=t.length,i=Array(n),o=0;o<n;o++)i[o]=[t[o],e[t[o]]];return i}function I(e){for(var t={},n=S(e),i=0,o=n.length;i<o;i++)t[e[n[i]]]=n[i];return t}function P(e){var t=[];for(var n in e)mt(e[n])&&t.push(n);return t.sort()}function D(e,t){return function(n){var i=arguments.length;if(t&&(n=Object(n)),i<2||null==n)return n;for(var o=1;o<i;o++)for(var r=arguments[o],s=e(r),a=s.length,u=0;u<a;u++){var l=s[u];t&&void 0!==n[l]||(n[l]=r[l])}return n}}function $(){return function(){}}function N(e){if(!o(e))return{};if(rt.j)return Object(rt.j)(e);var t=$();t.prototype=e;var n=new t;return t.prototype=null,n}function k(e,t){var n=N(e);return t&&Ut(n,t),n}function V(e){return o(e)?Ct(e)?e.slice():Bt({},e):e}function L(e,t){return t(e),e}function B(e){return Ct(e)?e:[e]}function U(e){return _.toPath(e)}function Q(e,t){for(var n=t.length,i=0;i<n;i++){if(null==e)return;e=e[t[i]]}return n?e:void 0}function j(e,t,n){var i=Q(e,U(t));return s(i)?n:i}function H(e,t){t=U(t);for(var n=t.length,i=0;i<n;i++){var o=t[i];if(!p(e,o))return!1;e=e[o]}return!!n}function q(e){return e}function z(e){return e=Ut({},e),function(t){return w(t,e)}}function W(e){return e=U(e),function(t){return Q(t,e)}}function G(e,t,n){if(void 0===t)return e;switch(null==n?3:n){case 1:return function(n){return e.call(t,n)};case 3:return function(n,i,o){return e.call(t,n,i,o)};case 4:return function(n,i,o,r){return e.call(t,n,i,o,r)}}return function(){return e.apply(t,arguments)}}function Y(e,t,n){return null==e?q:mt(e)?G(e,t,n):o(e)&&!Ct(e)?z(e):W(e)}function K(e,t){return Y(e,t,1/0)}function J(e,t,n){return _.iteratee!==K?_.iteratee(e,t):Y(e,t,n)}function Z(e,t,n){t=J(t,n);for(var i=S(e),o=i.length,r={},s=0;s<o;s++){var a=i[s];r[a]=t(e[a],a,e)}return r}function X(){}function ee(e){return null==e?X:function(t){return j(e,t)}}function te(e,t,n){var i=Array(Math.max(0,e));t=G(t,n,1);for(var o=0;o<e;o++)i[o]=t(o);return i}function ne(e,t){return null==t&&(t=e,e=0),e+Math.floor(Math.random()*(t-e+1))}function ie(e){var t=function(t){return e[t]},n="(?:"+S(e).join("|")+")",i=RegExp(n),o=RegExp(n,"g");return function(e){return e=null==e?"":""+e,i.test(e)?e.replace(o,t):e}}function oe(e){return"\\"+Kt[e]}function re(e,t,n){!t&&n&&(t=n),t=Qt({},t,_.templateSettings);var i=RegExp([(t.escape||Yt).source,(t.interpolate||Yt).source,(t.evaluate||Yt).source].join("|")+"|$","g"),o=0,r="__p+='";e.replace(i,function(t,n,i,s,a){return r+=e.slice(o,a).replace(Jt,oe),o=a+t.length,n?r+="'+\n((__t=("+n+"))==null?'':_.escape(__t))+\n'":i?r+="'+\n((__t=("+i+"))==null?'':__t)+\n'":s&&(r+="';\n"+s+"\n__p+='"),t}),r+="';\n";var s=t.variable;if(s){if(!Zt.test(s))throw new Error("variable is not a bare identifier: "+s)}else r="with(obj||{}){\n"+r+"}\n",s="obj";r="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+r+"return __p;\n";var a;try{a=new Function(s,"_",r)}catch(e){throw e.source=r,e}var u=function(e){return a.call(this,e,_)};return u.source="function("+s+"){\n"+r+"}",u}function se(e,t,n){t=U(t);var i=t.length;if(!i)return mt(n)?n.call(e):n;for(var o=0;o<i;o++){var r=null==e?void 0:e[t[o]];void 0===r&&(r=n,o=i),e=mt(r)?r.call(e):r}return e}function ae(e){var t=++Xt+"";return e?e+t:t}function ue(e){var t=_(e);return t._chain=!0,t}function le(e,t,n,i,r){if(!(i instanceof t))return e.apply(n,r);var s=N(e.prototype),a=e.apply(s,r);return o(a)?a:s}function ce(e,t,n,i){if(i=i||[],t||0===t){if(t<=0)return i.concat(e)}else t=1/0;for(var o=i.length,r=0,s=Tt(e);r<s;r++){var a=e[r];if(on(a)&&(Ct(a)||_t(a)))if(t>1)ce(a,t-1,n,i),o=i.length;else for(var u=0,l=a.length;u<l;)i[o++]=a[u++];else n||(i[o++]=a)}return i}function pe(e,t){var n=function(i){var o=n.cache,r=""+(t?t.apply(this,arguments):i);return p(o,r)||(o[r]=e.apply(this,arguments)),o[r]};return n.cache={},n}function de(e,t,n){var i,o,r,s,a=0;n||(n={});var u=function(){a=!1===n.leading?0:jt(),i=null,s=e.apply(o,r),i||(o=r=null)},l=function(){var l=jt();a||!1!==n.leading||(a=l);var c=t-(l-a);return o=this,r=arguments,c<=0||c>t?(i&&(clearTimeout(i),i=null),a=l,s=e.apply(o,r),i||(o=r=null)):i||!1===n.trailing||(i=setTimeout(u,c)),s};return l.cancel=function(){clearTimeout(i),a=0,i=o=r=null},l}function he(e,t,n){var o,r,s,a,u,l=function(){var i=jt()-r;t>i?o=setTimeout(l,t-i):(o=null,n||(a=e.apply(u,s)),o||(s=u=null))},c=i(function(i){return u=this,s=i,r=jt(),o||(o=setTimeout(l,t),n&&(a=e.apply(u,s))),a});return c.cancel=function(){clearTimeout(o),o=s=u=null},c}function fe(e,t){return tn(t,e)}function me(e){return function(){return!e.apply(this,arguments)}}function ye(){var e=arguments,t=e.length-1;return function(){for(var n=t,i=e[t].apply(this,arguments);n--;)i=e[n].call(this,i);return i}}function ge(e,t){return function(){if(--e<1)return t.apply(this,arguments)}}function ve(e,t){var n;return function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=null),n}}function be(e,t,n){t=J(t,n);for(var i,o=S(e),r=0,s=o.length;r<s;r++)if(i=o[r],t(e[i],i,e))return i}function Se(e){return function(t,n,i){n=J(n,i);for(var o=Tt(t),r=e>0?0:o-1;r>=0&&r<o;r+=e)if(n(t[r],r,t))return r;return-1}}function Ce(e,t,n,i){n=J(n,i,1);for(var o=n(t),r=0,s=Tt(e);r<s;){var a=Math.floor((r+s)/2);n(e[a])<o?r=a+1:s=a}return r}function we(e,t,n){return function(i,o,r){var s=0,a=Tt(i);if("number"==typeof r)e>0?s=r>=0?r:Math.max(r+a,s):a=r>=0?Math.min(r+1,a):r+a+1;else if(n&&r&&a)return r=n(i,o),i[r]===o?r:-1;if(o!==o)return r=t(rt.q.call(i,s,a),h),r>=0?r+s:-1;for(r=e>0?s:a-1;r>=0&&r<a;r+=e)if(i[r]===o)return r;return-1}}function _e(e,t,n){var i=on(e)?ln:be,o=i(e,t,n);if(void 0!==o&&-1!==o)return e[o]}function Oe(e,t){return _e(e,z(t))}function xe(e,t,n){t=G(t,n);var i,o;if(on(e))for(i=0,o=e.length;i<o;i++)t(e[i],i,e);else{var r=S(e);for(i=0,o=r.length;i<o;i++)t(e[r[i]],r[i],e)}return e}function Ee(e,t,n){t=J(t,n);for(var i=!on(e)&&S(e),o=(i||e).length,r=Array(o),s=0;s<o;s++){var a=i?i[s]:s;r[s]=t(e[a],a,e)}return r}function Ae(e){var t=function(t,n,i,o){var r=!on(t)&&S(t),s=(r||t).length,a=e>0?0:s-1;for(o||(i=t[r?r[a]:a],a+=e);a>=0&&a<s;a+=e){var u=r?r[a]:a;i=n(i,t[u],u,t)}return i};return function(e,n,i,o){var r=arguments.length>=3;return t(e,G(n,o,4),i,r)}}function Te(e,t,n){var i=[];return t=J(t,n),xe(e,function(e,n,o){t(e,n,o)&&i.push(e)}),i}function Re(e,t,n){return Te(e,me(J(t)),n)}function Fe(e,t,n){t=J(t,n);for(var i=!on(e)&&S(e),o=(i||e).length,r=0;r<o;r++){var s=i?i[r]:r;if(!t(e[s],s,e))return!1}return!0}function Me(e,t,n){t=J(t,n);for(var i=!on(e)&&S(e),o=(i||e).length,r=0;r<o;r++){var s=i?i[r]:r;if(t(e[s],s,e))return!0}return!1}function Ie(e,t,n,i){return on(e)||(e=F(e)),("number"!=typeof n||i)&&(n=0),pn(e,t,n)>=0}function Pe(e,t){return Ee(e,W(t))}function De(e,t){return Te(e,z(t))}function $e(e,t,n){var i,o,r=-1/0,s=-1/0;if(null==t||"number"==typeof t&&"object"!=typeof e[0]&&null!=e){e=on(e)?e:F(e);for(var a=0,u=e.length;a<u;a++)null!=(i=e[a])&&i>r&&(r=i)}else t=J(t,n),xe(e,function(e,n,i){((o=t(e,n,i))>s||o===-1/0&&r===-1/0)&&(r=e,s=o)});return r}function Ne(e,t,n){var i,o,r=1/0,s=1/0;if(null==t||"number"==typeof t&&"object"!=typeof e[0]&&null!=e){e=on(e)?e:F(e);for(var a=0,u=e.length;a<u;a++)null!=(i=e[a])&&i<r&&(r=i)}else t=J(t,n),xe(e,function(e,n,i){((o=t(e,n,i))<s||o===1/0&&r===1/0)&&(r=e,s=o)});return r}function ke(e,t,n){if(null==t||n)return on(e)||(e=F(e)),e[ne(e.length-1)];var i=on(e)?V(e):F(e),o=Tt(i);t=Math.max(Math.min(t,o),0);for(var r=o-1,s=0;s<t;s++){var a=ne(s,r),u=i[s];i[s]=i[a],i[a]=u}return i.slice(0,t)}function Ve(e){return ke(e,1/0)}function Le(e,t,n){var i=0;return t=J(t,n),Pe(Ee(e,function(e,n,o){return{value:e,index:i++,criteria:t(e,n,o)}}).sort(function(e,t){var n=e.criteria,i=t.criteria;if(n!==i){if(n>i||void 0===n)return 1;if(n<i||void 0===i)return-1}return e.index-t.index}),"value")}function Be(e,t){return function(n,i,o){var r=t?[[],[]]:{};return i=J(i,o),xe(n,function(t,o){var s=i(t,o,n);e(r,t,s)}),r}}function Ue(e){return e?Ct(e)?rt.q.call(e):st(e)?e.match(Sn):on(e)?Ee(e,q):F(e):[]}function Qe(e){return null==e?0:on(e)?e.length:S(e).length}function je(e,t,n){return t in n}function He(e,t,n){return rt.q.call(e,0,Math.max(0,e.length-(null==t||n?1:t)))}function qe(e,t,n){return null==e||e.length<1?null==t||n?void 0:[]:null==t||n?e[0]:He(e,e.length-t)}function ze(e,t,n){return rt.q.call(e,null==t||n?1:t)}function We(e,t,n){return null==e||e.length<1?null==t||n?void 0:[]:null==t||n?e[e.length-1]:ze(e,Math.max(0,e.length-t))}function Ge(e){return Te(e,Boolean)}function Ye(e,t){return ce(e,t,!1)}function Ke(e,t,n,i){a(t)||(i=n,n=t,t=!1),null!=n&&(n=J(n,i));for(var o=[],r=[],s=0,u=Tt(e);s<u;s++){var l=e[s],c=n?n(l,s,e):l;t&&!n?(s&&r===c||o.push(l),r=c):n?Ie(r,c)||(r.push(c),o.push(l)):Ie(o,l)||o.push(l)}return o}function Je(e){for(var t=[],n=arguments.length,i=0,o=Tt(e);i<o;i++){var r=e[i];if(!Ie(t,r)){var s;for(s=1;s<n&&Ie(arguments[s],r);s++);s===n&&t.push(r)}}return t}function Ze(e){for(var t=e&&$e(e,Tt).length||0,n=Array(t),i=0;i<t;i++)n[i]=Pe(e,i);return n}function Xe(e,t){for(var n={},i=0,o=Tt(e);i<o;i++)t?n[e[i]]=t[i]:n[e[i][0]]=e[i][1];return n}function et(e,t,n){null==t&&(t=e||0,e=0),n||(n=t<e?-1:1);for(var i=Math.max(Math.ceil((t-e)/n),0),o=Array(i),r=0;r<i;r++,e+=n)o[r]=e;return o}function tt(e,t){if(null==t||t<1)return[];for(var n=[],i=0,o=e.length;i<o;)n.push(rt.q.call(e,i,i+=t));return n}function nt(e,t){return e._chain?_(t).chain():t}function it(e){return xe(P(e),function(t){var n=_[t]=e[t];_.prototype[t]=function(){var e=[this._wrapped];return rt.o.apply(e,arguments),nt(this,n.apply(_,e))}}),_}Object.defineProperty(t,"__esModule",{value:!0});var ot={};n.d(ot,"VERSION",function(){return rt.e}),n.d(ot,"restArguments",function(){return i}),n.d(ot,"isObject",function(){return o}),n.d(ot,"isNull",function(){return r}),n.d(ot,"isUndefined",function(){return s}),n.d(ot,"isBoolean",function(){return a}),n.d(ot,"isElement",function(){return u}),n.d(ot,"isString",function(){return st}),n.d(ot,"isNumber",function(){return at}),n.d(ot,"isDate",function(){return ut}),n.d(ot,"isRegExp",function(){return lt}),n.d(ot,"isError",function(){return ct}),n.d(ot,"isSymbol",function(){return pt}),n.d(ot,"isArrayBuffer",function(){return dt}),n.d(ot,"isDataView",function(){return St}),n.d(ot,"isArray",function(){return Ct}),n.d(ot,"isFunction",function(){return mt}),n.d(ot,"isArguments",function(){return _t}),n.d(ot,"isFinite",function(){return d}),n.d(ot,"isNaN",function(){return h}),n.d(ot,"isTypedArray",function(){return At}),n.d(ot,"isEmpty",function(){return C}),n.d(ot,"isMatch",function(){return w}),n.d(ot,"isEqual",function(){return A}),n.d(ot,"isMap",function(){return Nt}),n.d(ot,"isWeakMap",function(){return kt}),n.d(ot,"isSet",function(){return Vt}),n.d(ot,"isWeakSet",function(){return Lt}),n.d(ot,"keys",function(){return S}),n.d(ot,"allKeys",function(){return T}),n.d(ot,"values",function(){return F}),n.d(ot,"pairs",function(){return M}),n.d(ot,"invert",function(){return I}),n.d(ot,"functions",function(){return P}),n.d(ot,"methods",function(){return P}),n.d(ot,"extend",function(){return Bt}),n.d(ot,"extendOwn",function(){return Ut}),n.d(ot,"assign",function(){return Ut}),n.d(ot,"defaults",function(){return Qt}),n.d(ot,"create",function(){return k}),n.d(ot,"clone",function(){return V}),n.d(ot,"tap",function(){return L}),n.d(ot,"get",function(){return j}),n.d(ot,"has",function(){return H}),n.d(ot,"mapObject",function(){return Z}),n.d(ot,"identity",function(){return q}),n.d(ot,"constant",function(){return f}),n.d(ot,"noop",function(){return X}),n.d(ot,"toPath",function(){return B}),n.d(ot,"property",function(){return W}),n.d(ot,"propertyOf",function(){return ee}),n.d(ot,"matcher",function(){return z}),n.d(ot,"matches",function(){return z}),n.d(ot,"times",function(){return te}),n.d(ot,"random",function(){return ne}),n.d(ot,"now",function(){return jt}),n.d(ot,"escape",function(){return qt}),n.d(ot,"unescape",function(){return Wt}),n.d(ot,"templateSettings",function(){return Gt}),n.d(ot,"template",function(){return re}),n.d(ot,"result",function(){return se}),n.d(ot,"uniqueId",function(){return ae}),n.d(ot,"chain",function(){return ue}),n.d(ot,"iteratee",function(){return K}),n.d(ot,"partial",function(){return tn}),n.d(ot,"bind",function(){return nn}),n.d(ot,"bindAll",function(){return rn}),n.d(ot,"memoize",function(){return pe}),n.d(ot,"delay",function(){return sn}),n.d(ot,"defer",function(){return an}),n.d(ot,"throttle",function(){return de}),n.d(ot,"debounce",function(){return he}),n.d(ot,"wrap",function(){return fe}),n.d(ot,"negate",function(){return me}),n.d(ot,"compose",function(){return ye}),n.d(ot,"after",function(){return ge}),n.d(ot,"before",function(){return ve}),n.d(ot,"once",function(){return un}),n.d(ot,"findKey",function(){return be}),n.d(ot,"findIndex",function(){return ln}),n.d(ot,"findLastIndex",function(){return cn}),n.d(ot,"sortedIndex",function(){return Ce}),n.d(ot,"indexOf",function(){return pn}),n.d(ot,"lastIndexOf",function(){return dn}),n.d(ot,"find",function(){return _e}),n.d(ot,"detect",function(){return _e}),n.d(ot,"findWhere",function(){return Oe}),n.d(ot,"each",function(){return xe}),n.d(ot,"forEach",function(){return xe}),n.d(ot,"map",function(){return Ee}),n.d(ot,"collect",function(){return Ee}),n.d(ot,"reduce",function(){return hn}),n.d(ot,"foldl",function(){return hn}),n.d(ot,"inject",function(){return hn}),n.d(ot,"reduceRight",function(){return fn}),n.d(ot,"foldr",function(){return fn}),n.d(ot,"filter",function(){return Te}),n.d(ot,"select",function(){return Te}),n.d(ot,"reject",function(){return Re}),n.d(ot,"every",function(){return Fe}),n.d(ot,"all",function(){return Fe}),n.d(ot,"some",function(){return Me}),n.d(ot,"any",function(){return Me}),n.d(ot,"contains",function(){return Ie}),n.d(ot,"includes",function(){return Ie}),n.d(ot,"include",function(){return Ie}),n.d(ot,"invoke",function(){return mn}),n.d(ot,"pluck",function(){return Pe}),n.d(ot,"where",function(){return De}),n.d(ot,"max",function(){return $e}),n.d(ot,"min",function(){return Ne}),n.d(ot,"shuffle",function(){return Ve}),n.d(ot,"sample",function(){return ke}),n.d(ot,"sortBy",function(){return Le}),n.d(ot,"groupBy",function(){return yn}),n.d(ot,"indexBy",function(){return gn}),n.d(ot,"countBy",function(){return vn}),n.d(ot,"partition",function(){return bn}),n.d(ot,"toArray",function(){return Ue}),n.d(ot,"size",function(){return Qe}),n.d(ot,"pick",function(){return Cn}),n.d(ot,"omit",function(){return wn}),n.d(ot,"first",function(){return qe}),n.d(ot,"head",function(){return qe}),n.d(ot,"take",function(){return qe}),n.d(ot,"initial",function(){return He}),n.d(ot,"last",function(){return We}),n.d(ot,"rest",function(){return ze}),n.d(ot,"tail",function(){return ze}),n.d(ot,"drop",function(){return ze}),n.d(ot,"compact",function(){return Ge}),n.d(ot,"flatten",function(){return Ye}),n.d(ot,"without",function(){return On}),n.d(ot,"uniq",function(){return Ke}),n.d(ot,"unique",function(){return Ke}),n.d(ot,"union",function(){return xn}),n.d(ot,"intersection",function(){return Je}),n.d(ot,"difference",function(){return _n}),n.d(ot,"unzip",function(){return Ze}),n.d(ot,"transpose",function(){return Ze}),n.d(ot,"zip",function(){return En}),n.d(ot,"object",function(){return Xe}),n.d(ot,"range",function(){return et}),n.d(ot,"chunk",function(){return tt}),n.d(ot,"mixin",function(){return it}),n.d(ot,"default",function(){return An});var rt=n(14),st=l("String"),at=l("Number"),ut=l("Date"),lt=l("RegExp"),ct=l("Error"),pt=l("Symbol"),dt=l("ArrayBuffer"),ht=l("Function"),ft=rt.p.document&&rt.p.document.childNodes;"function"!=typeof/./&&"object"!=typeof Int8Array&&"function"!=typeof ft&&(ht=function(e){return"function"==typeof e||!1});var mt=ht,yt=l("Object"),gt=rt.s&&yt(new DataView(new ArrayBuffer(8))),vt="undefined"!=typeof Map&&yt(new Map),bt=l("DataView"),St=gt?c:bt,Ct=rt.k||l("Array"),wt=l("Arguments");!function(){wt(arguments)||(wt=function(e){return p(e,"callee")})}();var _t=wt,Ot=y("byteLength"),xt=m(Ot),Et=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/,At=rt.r?g:f(!1),Tt=y("length");_.VERSION=rt.e,_.prototype.value=function(){return this._wrapped},_.prototype.valueOf=_.prototype.toJSON=_.prototype.value,_.prototype.toString=function(){return String(this._wrapped)};var Rt="[object DataView]",Ft="forEach",Mt=["clear","delete"],It=["get","has","set"],Pt=Mt.concat(Ft,It),Dt=Mt.concat(It),$t=["add"].concat(Mt,Ft,"has"),Nt=vt?R(Pt):l("Map"),kt=vt?R(Dt):l("WeakMap"),Vt=vt?R($t):l("Set"),Lt=l("WeakSet"),Bt=D(T),Ut=D(S),Qt=D(T,!0);_.toPath=B,_.iteratee=K;var jt=Date.now||function(){return(new Date).getTime()},Ht={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},qt=ie(Ht),zt=I(Ht),Wt=ie(zt),Gt=_.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},Yt=/(.)^/,Kt={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},Jt=/\\|'|\r|\n|\u2028|\u2029/g,Zt=/^\s*(\w|\$)+\s*$/,Xt=0,en=i(function(e,t){var n=en.placeholder,i=function(){for(var o=0,r=t.length,s=Array(r),a=0;a<r;a++)s[a]=t[a]===n?arguments[o++]:t[a];for(;o<arguments.length;)s.push(arguments[o++]);return le(e,i,this,this,s)};return i});en.placeholder=_;var tn=en,nn=i(function(e,t,n){if(!mt(e))throw new TypeError("Bind must be called on a function");var o=i(function(i){return le(e,o,t,this,n.concat(i))});return o}),on=m(Tt),rn=i(function(e,t){t=ce(t,!1,!1);var n=t.length;if(n<1)throw new Error("bindAll must be passed function names");for(;n--;){var i=t[n];e[i]=nn(e[i],e)}return e}),sn=i(function(e,t,n){return setTimeout(function(){return e.apply(null,n)},t)}),an=tn(sn,_,1),un=tn(ve,2),ln=Se(1),cn=Se(-1),pn=we(1,ln,Ce),dn=we(-1,cn),hn=Ae(1),fn=Ae(-1),mn=i(function(e,t,n){var i,o;return mt(t)?o=t:(t=U(t),i=t.slice(0,-1),t=t[t.length-1]),Ee(e,function(e){var r=o;if(!r){if(i&&i.length&&(e=Q(e,i)),null==e)return;r=e[t]}return null==r?r:r.apply(e,n)})}),yn=Be(function(e,t,n){p(e,n)?e[n].push(t):e[n]=[t]}),gn=Be(function(e,t,n){e[n]=t}),vn=Be(function(e,t,n){p(e,n)?e[n]++:e[n]=1}),bn=Be(function(e,t,n){e[n?0:1].push(t)},!0),Sn=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g,Cn=i(function(e,t){var n={},i=t[0];if(null==e)return n;mt(i)?(t.length>1&&(i=G(i,t[1])),t=T(e)):(i=je,t=ce(t,!1,!1),e=Object(e));for(var o=0,r=t.length;o<r;o++){var s=t[o],a=e[s];i(a,s,e)&&(n[s]=a)}return n}),wn=i(function(e,t){var n,i=t[0];return mt(i)?(i=me(i),t.length>1&&(n=t[1])):(t=Ee(ce(t,!1,!1),String),i=function(e,n){return!Ie(t,n)}),Cn(e,i,n)}),_n=i(function(e,t){return t=ce(t,!0,!0),Te(e,function(e){return!Ie(t,e)})}),On=i(function(e,t){return _n(e,t)}),xn=i(function(e){return Ke(ce(e,!0,!0))}),En=i(Ze);xe(["pop","push","reverse","shift","sort","splice","unshift"],function(e){var t=rt.a[e];_.prototype[e]=function(){var n=this._wrapped;return null!=n&&(t.apply(n,arguments),"shift"!==e&&"splice"!==e||0!==n.length||delete n[0]),nt(this,n)}}),xe(["concat","join","slice"],function(e){var t=rt.a[e];_.prototype[e]=function(){var e=this._wrapped;return null!=e&&(e=t.apply(e,arguments)),nt(this,e)}});var An=_,Tn=it(ot);Tn._=Tn;var Rn=Tn;n.d(t,"default",function(){return Rn}),n.d(t,"VERSION",function(){return rt.e}),n.d(t,"restArguments",function(){return i}),n.d(t,"isObject",function(){return o}),n.d(t,"isNull",function(){return r}),n.d(t,"isUndefined",function(){return s}),n.d(t,"isBoolean",function(){return a}),n.d(t,"isElement",function(){return u}),n.d(t,"isString",function(){return st}),n.d(t,"isNumber",function(){return at}),n.d(t,"isDate",function(){return ut}),n.d(t,"isRegExp",function(){return lt}),n.d(t,"isError",function(){return ct}),n.d(t,"isSymbol",function(){return pt}),n.d(t,"isArrayBuffer",function(){return dt}),n.d(t,"isDataView",function(){return St}),n.d(t,"isArray",function(){return Ct}),n.d(t,"isFunction",function(){return mt}),n.d(t,"isArguments",function(){return _t}),n.d(t,"isFinite",function(){return d}),n.d(t,"isNaN",function(){return h}),n.d(t,"isTypedArray",function(){return At}),n.d(t,"isEmpty",function(){return C}),n.d(t,"isMatch",function(){return w}),n.d(t,"isEqual",function(){return A}),n.d(t,"isMap",function(){return Nt}),n.d(t,"isWeakMap",function(){return kt}),n.d(t,"isSet",function(){return Vt}),n.d(t,"isWeakSet",function(){return Lt}),n.d(t,"keys",function(){return S}),n.d(t,"allKeys",function(){return T}),n.d(t,"values",function(){return F}),n.d(t,"pairs",function(){return M}),n.d(t,"invert",function(){return I}),n.d(t,"functions",function(){return P}),n.d(t,"methods",function(){return P}),n.d(t,"extend",function(){return Bt}),n.d(t,"extendOwn",function(){return Ut}),n.d(t,"assign",function(){return Ut}),n.d(t,"defaults",function(){return Qt}),n.d(t,"create",function(){return k}),n.d(t,"clone",function(){return V}),n.d(t,"tap",function(){return L}),n.d(t,"get",function(){return j}),n.d(t,"has",function(){return H}),n.d(t,"mapObject",function(){return Z}),n.d(t,"identity",function(){return q}),n.d(t,"constant",function(){return f}),n.d(t,"noop",function(){return X}),n.d(t,"toPath",function(){return B}),n.d(t,"property",function(){return W}),n.d(t,"propertyOf",function(){return ee}),n.d(t,"matcher",function(){return z}),n.d(t,"matches",function(){return z}),n.d(t,"times",function(){return te}),n.d(t,"random",function(){return ne}),n.d(t,"now",function(){return jt}),n.d(t,"escape",function(){return qt}),n.d(t,"unescape",function(){return Wt}),n.d(t,"templateSettings",function(){return Gt}),n.d(t,"template",function(){return re}),n.d(t,"result",function(){return se}),n.d(t,"uniqueId",function(){return ae}),n.d(t,"chain",function(){return ue}),n.d(t,"iteratee",function(){return K}),n.d(t,"partial",function(){return tn}),n.d(t,"bind",function(){return nn}),n.d(t,"bindAll",function(){return rn}),n.d(t,"memoize",function(){return pe}),n.d(t,"delay",function(){return sn}),n.d(t,"defer",function(){return an}),n.d(t,"throttle",function(){return de}),n.d(t,"debounce",function(){return he}),n.d(t,"wrap",function(){return fe}),n.d(t,"negate",function(){return me}),n.d(t,"compose",function(){return ye}),n.d(t,"after",function(){return ge}),n.d(t,"before",function(){return ve}),n.d(t,"once",function(){return un}),n.d(t,"findKey",function(){return be}),n.d(t,"findIndex",function(){return ln}),n.d(t,"findLastIndex",function(){return cn}),n.d(t,"sortedIndex",function(){return Ce}),n.d(t,"indexOf",function(){return pn}),n.d(t,"lastIndexOf",function(){return dn}),n.d(t,"find",function(){return _e}),n.d(t,"detect",function(){return _e}),n.d(t,"findWhere",function(){return Oe}),n.d(t,"each",function(){return xe}),n.d(t,"forEach",function(){return xe}),n.d(t,"map",function(){return Ee}),n.d(t,"collect",function(){return Ee}),n.d(t,"reduce",function(){return hn}),n.d(t,"foldl",function(){return hn}),n.d(t,"inject",function(){return hn}),n.d(t,"reduceRight",function(){return fn}),n.d(t,"foldr",function(){return fn}),n.d(t,"filter",function(){return Te}),n.d(t,"select",function(){return Te}),n.d(t,"reject",function(){return Re}),n.d(t,"every",function(){return Fe}),n.d(t,"all",function(){return Fe}),n.d(t,"some",function(){return Me}),n.d(t,"any",function(){return Me}),n.d(t,"contains",function(){return Ie}),n.d(t,"includes",function(){return Ie}),n.d(t,"include",function(){return Ie}),n.d(t,"invoke",function(){return mn}),n.d(t,"pluck",function(){return Pe}),n.d(t,"where",function(){return De}),n.d(t,"max",function(){return $e}),n.d(t,"min",function(){return Ne}),n.d(t,"shuffle",function(){return Ve}),n.d(t,"sample",function(){return ke}),n.d(t,"sortBy",function(){return Le}),n.d(t,"groupBy",function(){return yn}),n.d(t,"indexBy",function(){return gn}),n.d(t,"countBy",function(){return vn}),n.d(t,"partition",function(){return bn}),n.d(t,"toArray",function(){return Ue}),n.d(t,"size",function(){return Qe}),n.d(t,"pick",function(){return Cn}),n.d(t,"omit",function(){return wn}),n.d(t,"first",function(){return qe}),n.d(t,"head",function(){return qe}),n.d(t,"take",function(){return qe}),n.d(t,"initial",function(){return He}),n.d(t,"last",function(){return We}),n.d(t,"rest",function(){return ze}),n.d(t,"tail",function(){return ze}),n.d(t,"drop",function(){return ze}),n.d(t,"compact",function(){return Ge}),n.d(t,"flatten",function(){return Ye}),n.d(t,"without",function(){return On}),n.d(t,"uniq",function(){return Ke}),n.d(t,"unique",function(){return Ke}),n.d(t,"union",function(){return xn}),n.d(t,"intersection",function(){return Je}),n.d(t,"difference",function(){return _n}),n.d(t,"unzip",function(){return Ze}),n.d(t,"transpose",function(){return Ze}),n.d(t,"zip",function(){return En}),n.d(t,"object",function(){return Xe}),n.d(t,"range",function(){return et}),n.d(t,"chunk",function(){return tt}),n.d(t,"mixin",function(){return it})},function(e,t,n){"use strict";function i(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return 1===e.length&&e[0]instanceof c?e[0]:new c(1!==e.length||o.isString(e[0])?c.createElement.apply(c,e):e[0])}Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),r=n(5),s=n(9),a=n(75),u=n(4),l=n(24),c=function(){function e(e){r.Assert.exists(e),this.el=e}return e.createElement=function(t,n){for(var i=[],r=2;r<arguments.length;r++)i[r-2]=arguments[r];var s=document.createElement(t);for(var a in n)if("className"===a)s.className=n.className;else{var l=-1!==a.indexOf("-")?a:u.Utils.toDashCase(a);s.setAttribute(l,n[a])}return o.each(i,function(t){t instanceof HTMLElement?s.appendChild(t):o.isString(t)?s.innerHTML+=t:t instanceof e&&s.appendChild(t.el)}),s},e.prototype.append=function(e){this.el.appendChild(e)},e.prototype.css=function(e){return this.el.style[e]?this.el.style[e]:window.getComputedStyle(this.el).getPropertyValue(e)},e.prototype.text=function(e){if(u.Utils.isUndefined(e))return this.el.innerText||this.el.textContent;void 0!=this.el.innerText?this.el.innerText=e:void 0!=this.el.textContent&&(this.el.textContent=e)},e.nodeListToArray=function(e){for(var t=e.length,n=new Array(t);t--;)n[t]=e.item(t);return n},e.prototype.focus=function(e){if("IE"===l.DeviceUtils.getDeviceName()){var t=window.pageXOffset,n=window.pageYOffset;this.el.focus(),e&&window.scrollTo(t,n)}else this.el.focus({preventScroll:e})},e.prototype.empty=function(){for(;this.el.firstChild;)this.removeChild(this.el.firstChild)},e.prototype.removeChild=function(e){var t=e.parentNode;try{this.el.removeChild(e)}catch(n){if("NotFoundError"!==n.name)throw n;if(t===e.parentNode)throw n}},e.prototype.remove=function(){this.el.parentNode&&this.el.parentNode.removeChild(this.el)},e.prototype.show=function(){this.el.style.display="block",i(this.el).setAttribute("aria-hidden","false")},e.prototype.hide=function(){this.el.style.display="none",i(this.el).setAttribute("aria-hidden","true")},e.prototype.unhide=function(){this.el.style.display="",i(this.el).setAttribute("aria-hidden","false")},e.prototype.toggle=function(e){void 0===e?"block"==this.el.style.display?this.hide():this.show():e?this.show():this.hide()},e.prototype.isVisible=function(){return"none"!==this.css("display")&&("hidden"!==this.css("visibility")&&(!this.hasClass("coveo-tab-disabled")&&(!this.hasClass("coveo-hidden")&&!this.hasClass("coveo-hidden-dependant-facet"))))},e.prototype.getAttribute=function(e){return this.el.getAttribute(e)},e.prototype.setAttribute=function(e,t){this.el.setAttribute(e,t)},e.prototype.find=function(e){return this.el.querySelector(e)},e.prototype.is=function(e){return this.el.tagName.toLowerCase()==e.toLowerCase()||(!("."!=e[0]||!this.hasClass(e.substr(1)))||"#"==e[0]&&this.el.getAttribute("id")==e.substr(1))},e.prototype.closest=function(e){return this.traverseAncestorForClass(this.el,e)},e.prototype.parent=function(e){if(void 0!=this.el.parentElement)return this.traverseAncestorForClass(this.el.parentElement,e)},e.prototype.parents=function(t){for(var n=[],i=this.parent(t);i;)n.push(i),i=new e(i).parent(t);return n},e.prototype.children=function(){return e.nodeListToArray(this.el.children)},e.prototype.siblings=function(e){for(var t=[],n=this.el.parentNode.firstChild;n;n=n.nextSibling)n!=this.el&&(!this.matches(n,e)&&e||t.push(n));return t},e.prototype.matches=function(e,t){for(var n=document.querySelectorAll(t),i=0;i<n.length;i++)if(n[i]===e)return!0;return!1},e.prototype.findAll=function(t){return e.nodeListToArray(this.el.querySelectorAll(t))},e.prototype.findClass=function(t){if("getElementsByClassName"in this.el)return e.nodeListToArray(this.el.getElementsByClassName(t))},e.prototype.findId=function(e){return document.getElementById(e)},e.prototype.addClass=function(e){var t=this;o.isArray(e)?o.each(e,function(e){t.addClass(e)}):this.hasClass(e)||(this.el.className?this.el.className+=" "+e:this.el.className=e)},e.prototype.removeClass=function(e){this.el.className=this.el.className.replace(new RegExp("(^|\\s)"+e+"(\\s|$)","g"),"$1").trim()},e.prototype.toggleClass=function(e,t){u.Utils.isNullOrUndefined(t)?this.hasClass(e)?this.removeClass(e):this.addClass(e):t?this.addClass(e):this.removeClass(e)},e.prototype.setHtml=function(e){this.el.innerHTML=e},e.prototype.getClass=function(){var t=this.getAttribute("class");return t&&t.match?t.match(e.CLASS_NAME_REGEX)||[]:[]},e.prototype.hasClass=function(e){return o.contains(this.getClass(),e)},e.prototype.detach=function(){this.el.parentElement&&this.el.parentElement.removeChild(this.el)},e.prototype.insertAfter=function(e){e.parentNode&&e.parentNode.insertBefore(this.el,e.nextSibling)},e.prototype.insertBefore=function(e){e.parentNode&&e.parentNode.insertBefore(this.el,e)},e.prototype.prepend=function(t){this.el.firstChild?new e(t).insertBefore(this.el.firstChild):this.el.appendChild(t)},e.prototype.on=function(t,n){var i=this;if(o.isArray(t))o.each(t,function(e){i.on(e,n)});else{var r=this.processEventTypeToBeJQueryCompatible(t),s=a.JQueryUtils.getJQuery();if(this.shouldUseJQueryEvent())s(this.el).on(r,n);else if(this.el.addEventListener){var u=function(e){n(e,e.detail)};e.handlers.set(n,u),r&&-1!=r.indexOf("touch")?this.el.addEventListener(r,u,{passive:!0}):this.el.addEventListener(r,u,!1)}else this.el.on&&this.el.on("on"+r,n)}},e.prototype.one=function(e,t){var n=this;if(o.isArray(e))o.each(e,function(e){n.one(e,t)});else{var i=this.processEventTypeToBeJQueryCompatible(e),r=function(e,o){return n.off(i,r),t(e,o)};this.on(i,r)}},e.prototype.off=function(t,n){var i=this;if(o.isArray(t))o.each(t,function(e){i.off(e,n)});else{var r=this.processEventTypeToBeJQueryCompatible(t),s=a.JQueryUtils.getJQuery();if(this.shouldUseJQueryEvent())s(this.el).off(r,n);else if(this.el.removeEventListener){var u=e.handlers.get(n);u&&this.el.removeEventListener(r,u,!1)}else this.el.off&&this.el.off("on"+r,n)}},e.prototype.trigger=function(e,t){var n=this.processEventTypeToBeJQueryCompatible(e);if(this.shouldUseJQueryEvent())a.JQueryUtils.getJQuery()(this.el).trigger(n,t);else if(void 0!==window.CustomEvent){var i=new CustomEvent(n,{detail:t,bubbles:!0});this.el.dispatchEvent(i)}else try{this.el.dispatchEvent(this.buildIE11CustomEvent(n,t))}catch(e){this.oldBrowserError()}},e.prototype.isEmpty=function(){return e.ONLY_WHITE_SPACE_REGEX.test(this.el.innerHTML)},e.prototype.isValid=function(){return null!=this.el&&void 0!=this.el.getAttribute},e.prototype.isDescendant=function(e){for(var t=this.el.parentNode;null!=t;){if(t==e)return!0;t=t.parentNode}return!1},e.prototype.replaceWith=function(t){this.el.parentNode&&new e(t).insertAfter(this.el),this.detach()},e.prototype.position=function(){var e=this.offsetParent(),t=this.offset(),n={top:0,left:0};i(e).is("html")||(n=i(e).offset());var o=parseInt(i(e).css("borderTopWidth")),r=parseInt(i(e).css("borderLeftWidth"));o=isNaN(o)?0:o,r=isNaN(r)?0:r,n={top:n.top+o,left:n.left+r};var s=parseInt(this.css("marginTop")),a=parseInt(this.css("marginLeft"));return s=isNaN(s)?0:s,a=isNaN(a)?0:a,{top:t.top-n.top-s,left:t.left-n.left-a}},e.prototype.offsetParent=function(){for(var e=this.el.offsetParent;e instanceof HTMLElement&&"static"===i(e).css("position");)e=e.offsetParent;return e instanceof HTMLElement?e:document.documentElement},e.prototype.offset=function(){if(!this.el.getClientRects().length)return{top:0,left:0};var e=this.el.getBoundingClientRect();if(e.width||e.height){var t=this.el.ownerDocument,n=t.documentElement;return{top:e.top+window.pageYOffset-n.clientTop,left:e.left+window.pageXOffset-n.clientLeft}}return e},e.prototype.width=function(){return this.el.offsetWidth},e.prototype.height=function(){return this.el.offsetHeight},e.prototype.clone=function(e){return void 0===e&&(e=!1),i(this.el.cloneNode(e))},e.prototype.canHandleEvent=function(e){var t="on"+e,n=t in this.el;return!n&&this.el.setAttribute&&(this.el.setAttribute(t,"return;"),n="function"==typeof this.el[t],this.el.removeAttribute(t)),n},e.prototype.buildIE11CustomEvent=function(e,t){var n=document.createEvent("CustomEvent");return n.initCustomEvent(e,!0,!0,t),n},e.prototype.shouldUseJQueryEvent=function(){return a.JQueryUtils.getJQuery()&&!e.useNativeJavaScriptEvents},e.prototype.processEventTypeToBeJQueryCompatible=function(e){return e?e.replace(/[^a-zA-Z0-9\:\_]/g,""):e},e.prototype.traverseAncestorForClass=function(e,t){void 0===e&&(e=this.el),0==t.indexOf(".")&&(t=t.substr(1));for(var n=!1;!n&&(i(e).hasClass(t)&&(n=!0),"body"!=e.tagName.toLowerCase())&&null!=e.parentElement;)n||(e=e.parentElement);if(n)return e},e.prototype.oldBrowserError=function(){new s.Logger(this).error("CANNOT TRIGGER EVENT FOR OLDER BROWSER")},e.CLASS_NAME_REGEX=/-?[_a-zA-Z]+[_a-zA-Z0-9-]*/g,e.ONLY_WHITE_SPACE_REGEX=/^\s*$/,e.useNativeJavaScriptEvents=!1,e.handlers=new WeakMap,e}();t.Dom=c;var p=function(){function e(e){this.win=e}return e.prototype.height=function(){return this.win.innerHeight},e.prototype.width=function(){return this.win.innerWidth},e.prototype.scrollY=function(){return this.supportPageOffset()?this.win.pageYOffset:this.isCSS1Compat()?this.win.document.documentElement.scrollTop:this.win.document.body.scrollTop},e.prototype.scrollX=function(){return this.supportPageOffset()?window.pageXOffset:this.isCSS1Compat()?document.documentElement.scrollLeft:document.body.scrollLeft},e.prototype.isCSS1Compat=function(){return"CSS1Compat"===(this.win.document.compatMode||"")},e.prototype.supportPageOffset=function(){return void 0!==this.win.pageXOffset},e}();t.Win=p;var d=function(){function e(e){this.doc=e}return e.prototype.height=function(){var e=this.doc.body;return Math.max(e.scrollHeight,e.offsetHeight)},e.prototype.width=function(){var e=this.doc.body;return Math.max(e.scrollWidth,e.offsetWidth)},e}();t.Doc=d,t.$$=i},function(e,t,n){"use strict";var i=this&&this.__assign||Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},o=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))(function(o,r){function s(e){try{u(i.next(e))}catch(e){r(e)}}function a(e){try{u(i.throw(e))}catch(e){r(e)}}function u(e){e.done?o(e.value):new n(function(t){t(e.value)}).then(s,a)}u((i=i.apply(e,t||[])).next())})},r=this&&this.__generator||function(e,t){function n(e){return function(t){return i([e,t])}}function i(n){if(o)throw new TypeError("Generator is already executing.");for(;u;)try{if(o=1,r&&(s=r[2&n[0]?"return":n[0]?"throw":"next"])&&!(s=s.call(r,n[1])).done)return s;switch(r=0,s&&(n=[0,s.value]),n[0]){case 0:case 1:s=n;break;case 4:return u.label++,{value:n[1],done:!1};case 5:u.label++,r=n[1],n=[0];continue;case 7:n=u.ops.pop(),u.trys.pop();continue;default:if(s=u.trys,!(s=s.length>0&&s[s.length-1])&&(6===n[0]||2===n[0])){u=0;continue}if(3===n[0]&&(!s||n[1]>s[0]&&n[1]<s[3])){u.label=n[1];break}if(6===n[0]&&u.label<s[1]){u.label=s[1],s=n;break}if(s&&u.label<s[2]){u.label=s[2],u.ops.push(n);break}s[2]&&u.ops.pop(),u.trys.pop();continue}n=t.call(e,u)}catch(e){n=[6,e],r=0}finally{o=s=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}var o,r,s,a,u={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return a={next:n(0),throw:n(1),return:n(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a};Object.defineProperty(t,"__esModule",{value:!0});var s=n(0),a=n(44),u=n(16),l=n(5),c=n(9),p=n(28),d=n(77),h=n(13),f=n(1),m=n(42),y=n(75),g=n(4),v=n(10),b=n(7),S=n(19),C=n(451),w=n(30),_=function(){function e(){}return e.registerDefaultOptions=function(e,t){var n=e.CoveoDefaultOptions||{},i=g.Utils.extendDeep(n,t);e.CoveoDefaultOptions=i},e.resolveDefaultOptions=function(t,n){var i,o=t.CoveoDefaultOptions;return i=g.Utils.exists(o)?g.Utils.extendDeep(o,n):n,t.parentElement?e.resolveDefaultOptions(t.parentElement,i):i},e.registerAutoCreateComponent=function(t){l.Assert.exists(t),l.Assert.exists(t.ID),l.Assert.doesNotExists(e.namedMethods[t.ID]),s.contains(e.registeredComponents,t.ID)||(e.registeredComponents.push(t.ID),t.aliases&&(e.componentAliases[t.ID]=t.aliases)),null==x.eagerlyLoadedComponents[t.ID]&&(x.eagerlyLoadedComponents[t.ID]=t),null==O.lazyLoadedComponents[t.ID]&&(O.lazyLoadedComponents[t.ID]=function(){return new Promise(function(e,n){e(t)})})},e.registerComponentFields=function(t,n){e.fieldsNeededForQuery=g.Utils.concatWithoutDuplicate(e.fieldsNeededForQuery,n);var i=function(t){null==e.fieldsNeededForQueryByComponent[t]?e.fieldsNeededForQueryByComponent[t]=n:e.fieldsNeededForQueryByComponent[t]=g.Utils.concatWithoutDuplicate(e.fieldsNeededForQueryByComponent[t],n)};i(t),i(b.Component.computeCssClassNameForType(t))},e.getRegisteredFieldsForQuery=function(){return e.fieldsNeededForQuery},e.getRegisteredFieldsComponentForQuery=function(t){var n=e.fieldsNeededForQueryByComponent[t]||[],i=e.fieldsNeededForQueryByComponent[b.Component.computeCssClassNameForType(t)]||[];return g.Utils.concatWithoutDuplicate(n,i)},e.isComponentClassIdRegistered=function(t){return s.contains(e.registeredComponents,t)||s.contains(e.registeredComponents,b.Component.computeCssClassNameForType(t))},e.getListOfRegisteredComponents=function(){return e.registeredComponents},e.getListOfLoadedComponents=function(){return s.keys(x.eagerlyLoadedComponents)},e.getRegisteredComponent=function(e){return x.eagerlyLoadedComponents[e]},e.initializeFramework=function(t,n,i){var s=this;if(l.Assert.exists(t),b.Component.get(t,a.QueryController,!0))return this.logger.error("This DOM element has already been initialized as a search interface, skipping initialization",t),Promise.resolve({elem:t});n=e.resolveDefaultOptions(t,n);var c=function(e,t){return o(s,void 0,void 0,function(){var n,i=this;return r(this,function(o){try{return n=t.map(function(t){return t.catch(function(t){return i.logger.warn('An error occurred when trying to defer the "'+e+'" event. The defer will be ignored.',"Error: "+t)})}),[2,Promise.all(n)]}catch(e){this.logger.error('An unexpected error occurred when trying to defer the "'+event+'" event. All defers will be ignored.',"Error: "+e)}return[2]})})},p=function(e){var n={defer:[]};return f.$$(t).trigger(e,n),n.defer.length>0?c(e,n.defer):Promise.resolve()};e.performInitFunctionsOption(n,u.InitializationEvents.beforeInitialization),f.$$(t).trigger(u.InitializationEvents.beforeInitialization);var d=function(){return o(s,void 0,void 0,function(){var i,o,s;return r(this,function(r){switch(r.label){case 0:return[4,e.initExternalComponents(t,n)];case 1:return i=r.sent(),e.performInitFunctionsOption(n,u.InitializationEvents.afterComponentsInitialization),[4,p(u.InitializationEvents.afterComponentsInitialization)];case 2:return r.sent(),f.$$(t).trigger(u.InitializationEvents.restoreHistoryState),e.performInitFunctionsOption(n,u.InitializationEvents.afterInitialization),[4,p(u.InitializationEvents.afterInitialization)];case 3:return r.sent(),o=b.Component.get(t,S.SearchInterface),e.shouldExecuteFirstQueryAutomatically(o)&&(e.logFirstQueryCause(o),s=!0,Coveo.Recommendation&&(s=!(o instanceof Coveo.Recommendation)),b.Component.get(t,a.QueryController).executeQuery({logInActionsHistory:s,isFirstQuery:!0})),[2,i]}})})},h=i(t,n);return h.isLazyInit?h.initResult.then(d).then(function(){return{elem:t}}):d().then(function(){return{elem:t}})},e.initSearchInterface=function(t,n){void 0===n&&(n={}),n=e.resolveDefaultOptions(t,n);var i=new S.SearchInterface(t,n.SearchInterface,n.Analytics);i.options.originalOptionsObject=n;var o={options:n,bindings:i.getBindings()};return e.automaticallyCreateComponentsInside(t,o,["Recommendation"])},e.initStandaloneSearchInterface=function(t,n){void 0===n&&(n={}),n=e.resolveDefaultOptions(t,n),n.Querybox||(n.Querybox={}),n.Omnibox||(n.Omnibox={}),n.Searchbox||(n.Searchbox={}),n.Querybox.triggerQueryOnClear&&n.Omnibox.triggerQueryOnClear&&n.Searchbox.triggerOnQueryClear||(n.Querybox.triggerQueryOnClear=!1,n.Omnibox.triggerQueryOnClear=!1,n.Searchbox.triggerQueryOnClear=!1);var i=new S.StandaloneSearchInterface(t,n.StandaloneSearchInterface,n.Analytics);i.options.originalOptionsObject=n;var o={options:n,bindings:i.getBindings()};return e.automaticallyCreateComponentsInside(t,o)},e.initRecommendationInterface=function(t,n){void 0===n&&(n={}),n=e.resolveDefaultOptions(t,n);var i=s.extend({},n.SearchInterface,n.Recommendation);i.mainSearchInterface&&(i.firstLoadingAnimation=f.$$("span").el);var o=new window.Coveo.Recommendation(t,i,n.Analytics);o.options.originalOptionsObject=n;var r={options:n,bindings:o.getBindings()};return e.automaticallyCreateComponentsInside(t,r)},e.automaticallyCreateComponentsInsideResult=function(t,n,o){void 0===o&&(o={});var r=i({initOptions:o},n.searchInterface.options.originalOptionsObject),s=i({},n.searchInterface.getBindings(),{resultElement:t}),a={options:r,bindings:s,result:n};return e.automaticallyCreateComponentsInside(t,a)},e.automaticallyCreateComponentsInside=function(e,t,n){var i=this;void 0===n&&(n=[]),l.Assert.exists(e);var o,r=C.InitializationHelper.findDOMElementsToIgnore(e,n),a=C.InitializationHelper.findDOMElementsToInitialize(e,r),u=s.chain(a).map(function(e){var n=i.componentsFactory(e.htmlElements,e.componentClassId,t);return o=n.isLazyInit,n.factory}).map(function(e){var t=e();return t?Promise.all(t).then(function(){return!0}):Promise.resolve(!0)}).value();return{initResult:Promise.all(u).then(function(){return!0}).catch(function(e){return i.logger.error(e),i.logger.warn("Skipping initialization of previous component in error ... "),!0}),isLazyInit:o}},e.registerNamedMethod=function(t,n){l.Assert.isNonEmptyString(t),l.Assert.doesNotExists(x.eagerlyLoadedComponents[t]),l.Assert.doesNotExists(e.namedMethods[t]),l.Assert.exists(n),e.namedMethods[t]=n},e.isNamedMethodRegistered=function(t){return g.Utils.exists(e.namedMethods[t])},e.monkeyPatchComponentMethod=function(e,t,n){l.Assert.isNonEmptyString(e),l.Assert.exists(n);var i;if(e.indexOf(".")>0){var o=e.split(".");l.Assert.check(2==o.length,"Invalid method name, correct syntax is CoveoComponent.methodName."),i=o[0],e=o[1]}var r=b.Component.get(t,i);l.Assert.exists(r),l.Assert.exists(r[e]);var s="__"+e;g.Utils.exists(r[s])||(r[s]=r[e]),r[e]=n},e.initBoxInterface=function(t,n,i,o){void 0===n&&(n={}),void 0===i&&(i="Standard"),void 0===o&&(o=!0),n=e.resolveDefaultOptions(t,n);var r="Box";"Standard"!=i&&(r+="For"+i);var s=b.Component.getComponentRef(r);if(s){new c.Logger(t).info("Initializing box of type "+r);var a=o?s.getInjection:function(){},u=new s(t,n[r],n.Analytics,a,n);u.options.originalOptionsObject=n;var p={options:n,bindings:u.getBindings()};return e.automaticallyCreateComponentsInside(t,p)}return{initResult:new Promise(function(e,n){new c.Logger(t).error("Trying to initialize box of type : "+r+" but not found in code (not compiled)!"),l.Assert.fail("Cannot initialize unknown type of box"),n(!1)}),isLazyInit:!1}},e.dispatchNamedMethodCall=function(t,n,i){l.Assert.isNonEmptyString(t),l.Assert.exists(n);var o=e.namedMethods[t];return l.Assert.exists(o),e.logger.trace("Dispatching named method call of "+t,n,i),0!=i.length?o.apply(null,[n].concat(i)):o.apply(null,[n])},e.dispatchNamedMethodCallOrComponentCreation=function(t,n,i){return l.Assert.isNonEmptyString(t),l.Assert.exists(n),e.isNamedMethodRegistered(t)?e.dispatchNamedMethodCall(t,n,i):e.isThereASingleComponentBoundToThisElement(n)?e.dispatchMethodCallOnBoundComponent(t,n,i):void l.Assert.fail("No method or component named "+t+" are registered.")},e.isSearchFromLink=function(e){return g.Utils.isNonEmptyString(e.getBindings().queryStateModel.get("q"))},e.isThereASingleComponentBoundToThisElement=function(e){return l.Assert.exists(e),g.Utils.exists(b.Component.get(e,null,!0))},e.isThereANonSearchInterfaceComponentBoundToThisElement=function(t){return!!f.$$(t).hasClass("CoveoRecommendation")||e.isThereASingleComponentBoundToThisElement(t)&&!w.get(t,S.SearchInterface,!0)&&!f.$$(t).hasClass("CoveoRecommendation")},e.dispatchMethodCallOnBoundComponent=function(e,t,n){l.Assert.isNonEmptyString(e),l.Assert.exists(t);var i=b.Component.get(t);l.Assert.exists(i);var o=i[e];if(g.Utils.exists(o))return o.apply(i,n);l.Assert.fail("No method named "+e+" exist on component "+i.type)},e.logFirstQueryCause=function(t){var n=m.HashUtils.getValue("firstQueryCause",m.HashUtils.getHash());if(null!=n){var i=m.HashUtils.getValue("firstQueryMeta",m.HashUtils.getHash())||{};t.usageAnalytics.logSearchEvent(v.analyticsActionCauseList[n],i)}else e.isSearchFromLink(t)?t.usageAnalytics.logSearchEvent(v.analyticsActionCauseList.searchFromLink,{}):t.usageAnalytics.logSearchEvent(v.analyticsActionCauseList.interfaceLoad,{})},e.performInitFunctionsOption=function(t,n){g.Utils.exists(t)&&e.performFunctions(t[n])},e.performFunctions=function(e){g.Utils.exists(e)&&s.each(e,function(e){"function"==typeof e&&e()})},e.initExternalComponents=function(t,n){var i=this;if(n&&n.externalComponents){var o=b.Component.get(t,S.SearchInterface),r=b.Component.get(t,h.QueryStateModel),u=b.Component.get(t,d.ComponentStateModel),c=b.Component.get(t,a.QueryController),f=b.Component.get(t,p.ComponentOptionsModel),m=o.usageAnalytics;l.Assert.exists(o),l.Assert.exists(r),l.Assert.exists(c),l.Assert.exists(u),l.Assert.exists(m);var v={options:n,bindings:{searchInterface:o,queryStateModel:r,queryController:c,usageAnalytics:m,componentStateModel:u,componentOptionsModel:f,root:t}},C=s.map(n.externalComponents,function(t){var n=t;return g.Utils.isHtmlElement(n)?e.automaticallyCreateComponentsInside(n,v).initResult:y.JQueryUtils.isInstanceOfJQuery(n)?e.automaticallyCreateComponentsInside(n.get(0),v).initResult:void 0});return Promise.all(C).then(function(e){return s.first(e)}).catch(function(e){return i.logger.error(e),!1})}return Promise.resolve(!1)},e.shouldExecuteFirstQueryAutomatically=function(e){var t=e.options;return!t||!1!==t.autoTriggerQuery&&(!0===t.allowQueriesWithoutKeywords||""!=w.state(e.element).get("q"))},e.logger=new c.Logger("Initialization"),e.registeredComponents=[],e.componentAliases={},e.namedMethods={},e.fieldsNeededForQuery=[],e.fieldsNeededForQueryByComponent={},e}();t.Initialization=_;var O=function(){function e(){}return e.getLazyRegisteredComponent=function(t){return e.lazyLoadedComponents[t]()},e.getLazyRegisteredModule=function(t){return e.lazyLoadedModule[t]()},e.registerLazyComponent=function(t,n,i){null==e.lazyLoadedComponents[t]?(l.Assert.exists(n),s.contains(_.registeredComponents,t)||_.registeredComponents.push(t),e.lazyLoadedComponents[t]=n,i&&(_.componentAliases[t]=i)):this.logger.warn("Component being registered twice",t)},e.buildErrorCallback=function(t,n){return function(i){e.logger.warn("Cannot load chunk for "+t+". You may need to add the coveo-script class on the script tag that includes the Coveo framework. More details [here](https://docs.coveo.com/en/295/javascript-search-framework/lazy-versus-eager-component-loading#fixing-code-chunks-loading-path-issues).\n        "+i),n(function(){})}},e.registerLazyModule=function(t,n){null==e.lazyLoadedModule[t]?(l.Assert.exists(n),e.lazyLoadedModule[t]=n):this.logger.warn("Module being registered twice",t)},e.componentsFactory=function(t,n,i){return{factory:function(){var o=[];return s.each(t,function(t){if(null==b.Component.get(t,n)){var r=void 0;if(g.Utils.exists(i.options)){var a=i.options[n],u=i.options[t.id],l=i.options.initOptions?i.options.initOptions[n]:{};r=g.Utils.extendDeep(u,l),r=g.Utils.extendDeep(a,r)}var c=s.extend({},i,{options:r});o.push(e.createComponentOfThisClassOnElement(n,t,c))}}),o},isLazyInit:!0}},e.createComponentOfThisClassOnElement=function(t,n,i){return l.Assert.isNonEmptyString(t),l.Assert.exists(n),_.isThereANonSearchInterfaceComponentBoundToThisElement(n)?null:e.getLazyRegisteredComponent(t).then(function(o){if(l.Assert.exists(o),_.isThereANonSearchInterfaceComponentBoundToThisElement(n))return null;var r,a={},u={};return void 0!=i&&(s.each(i.bindings,function(e,t){a[t]=e}),u=i.options,r=i.result),e.logger.trace("Creating component of class "+t,n,u),new o(n,u,a,r)})},e.logger=new c.Logger("LazyInitialization"),e.lazyLoadedComponents={},e.lazyLoadedModule={},e}();t.LazyInitialization=O;var x=function(){function e(){}return e.componentsFactory=function(t,n,i){return{factory:function(){s.each(t,function(t){if(null==b.Component.get(t,n)){var o=void 0;if(g.Utils.exists(i.options)){var r=i.options[n],a=i.options[t.id],u=i.options.initOptions?i.options.initOptions[n]:{};o=g.Utils.extendDeep(a,u),o=g.Utils.extendDeep(r,o)}var l=s.extend({},i,{options:o});e.createComponentOfThisClassOnElement(n,t,l)}})},isLazyInit:!1}},e.createComponentOfThisClassOnElement=function(t,n,i){l.Assert.isNonEmptyString(t),l.Assert.exists(n);var o,r=_.getRegisteredComponent(t),a={},u={};return void 0!=i&&(s.each(i.bindings,function(e,t){a[t]=e}),u=i.options,o=i.result),_.isThereANonSearchInterfaceComponentBoundToThisElement(n)?null:(e.logger.trace("Creating component of class "+t,n,u),null==r?(O.getLazyRegisteredComponent(t).then(function(i){e.logger.warn("Component of class "+t+' was not found in "Eager" mode. Using lazy mode as a fallback.'),new i(n,u,a,o)}).catch(function(){e.logger.error("Component of class "+t+' was not found in "Eager" mode nor "Lazy" mode. It will not be initialized properly...')}),null):new r(n,u,a,o))},e.logger=new c.Logger("EagerInitialization"),e.eagerlyLoadedComponents={},e}();t.EagerInitialization=x},function(e,t,n){"use strict";function i(e){void 0==window.Coveo&&(window.Coveo={}),s.each(s.keys(e),function(t){null==window.Coveo[t]&&(window.Coveo[t]=e[t])})}function o(e,t){e.doExport?e.doExport():new a.Logger(this).error("Component "+e+" has no export function !"),u.Initialization.registerAutoCreateComponent(e),t(e)}function r(e,t){e.doExport&&e.doExport(),t(e)}Object.defineProperty(t,"__esModule",{value:!0});var s=n(0),a=n(9),u=n(2);t.exportGlobally=i,t.lazyExport=o,t.lazyExportModule=r},function(e,t,n){"use strict";var i=this&&this.__assign||Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e};Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),r=/^@[a-zA-Z0-9_\.]+$/,s=function(){function e(){}return e.isUndefined=function(e){return void 0===e},e.isNull=function(e){return null===e},e.isNullOrUndefined=function(t){return e.isUndefined(t)||e.isNull(t)},e.exists=function(t){return!e.isNullOrUndefined(t)},e.toNotNullString=function(e){return o.isString(e)?e:""},e.anyTypeToString=function(e){return e?e.toString():""},e.isNullOrEmptyString=function(t){return e.isNullOrUndefined(t)||!e.isNonEmptyString(t)},e.isNonEmptyString=function(e){return o.isString(e)&&""!==e},e.isEmptyString=function(t){return!e.isNonEmptyString(t)},e.stringStartsWith=function(e,t){return e.slice(0,t.length)==t},e.isNonEmptyArray=function(e){return o.isArray(e)&&e.length>0},e.isEmptyArray=function(t){return!e.isNonEmptyArray(t)},e.isHtmlElement=function(e){return void 0!=window.HTMLElement?e instanceof HTMLElement:e&&e.nodeType&&1==e.nodeType},e.parseIntIfNotUndefined=function(t){return e.isNonEmptyString(t)?parseInt(t,10):void 0},e.parseFloatIfNotUndefined=function(t){return HTMLDocument,e.isNonEmptyString(t)?parseFloat(t):void 0},e.round=function(e,t){return Math.round(e*Math.pow(10,t))/Math.pow(10,t)},e.parseBooleanIfNotUndefined=function(t){if(e.isNonEmptyString(t))switch(t.toLowerCase()){case"true":case"1":case"yes":return!0;case"false":case"0":case"no":return!1;default:return}},e.trim=function(e){return null==e?null:e.replace(/^\s+|\s+$/g,"")},e.encodeHTMLEntities=function(e){for(var t=[],n=e.length-1;n>=0;n--)/^[a-z0-9]/i.test(e[n])?t.unshift(e[n]):t.unshift(["&#",e.charCodeAt(n),";"].join(""));return t.join("")},e.decodeHTMLEntities=function(e){return e.replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(t)})},e.safeEncodeURIComponent=function(e){return o.isString(e)?encodeURIComponent(e.replace(/[\uD800-\uDBFF](?![\uDC00-\uDFFF])/g,"").split("").reverse().join("").replace(/[\uDC00-\uDFFF](?![\uD800-\uDBFF])/g,"").split("").reverse().join("")):encodeURIComponent(e)},e.arrayEqual=function(e,t,n){if(void 0===n&&(n=!0),n)return o.isEqual(e,t);var i=[e,t];return o.all(i,function(e){return e.length==i[0].length&&0==o.difference(e,i[0]).length})},e.objectEqual=function(e,t){return o.isEqual(e,t)},e.isCoveoField=function(e){return r.test(e)},e.escapeRegexCharacter=function(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")},e.getCaseInsensitiveProperty=function(e,t){var n=e[t];if(null==n){var i=t.toLowerCase();if(null==(n=e[i])){var r=o.find(o.keys(e),function(e){return e.toLowerCase()==i});null!=r&&(n=e[r])}}return n},e.getFirstAvailableFieldValue=function(t,n){for(var i=0;i<n.length;i++){var o=e.getFieldValue(t,n[i]);if(void 0!==o)return o}},e.getFieldValue=function(t,n){if(null!=n&&(n=e.trim(n),"@"==n[0]&&(n=n.substr(1)),""!=n)){if(!e.isCoveoField("@"+n))throw"Not a valid field : "+n;for(var i=n.split(".").reverse(),o=t.raw;i.length>1;)if(o=e.getCaseInsensitiveProperty(o,i.pop()),e.isUndefined(o))return;var r=e.getCaseInsensitiveProperty(o,i[0]);return null==r&&(r=e.getCaseInsensitiveProperty(t,n)),r}},e.throttle=function(e,t,n,i,o){void 0===n&&(n={});var r,s=null,a=0,u=function(){a=!1===n.leading?0:(new Date).getTime(),s=null,r=e.apply(i,o)};return function(){var l=(new Date).getTime();a||!1!==n.leading||(a=l);var c=t-(l-a);return i=this,o=arguments,c<=0?(clearTimeout(s),s=null,a=l,r=e.apply(i,o)):s||!1===n.trailing||(s=window.setTimeout(u,c)),r}},e.extendDeep=function(t,n){t||(t={});var i=o.isArray(n),r=i&&[]||{};return i?(t=t||[],r=r.concat(t),o.each(n,function(n,i,s){void 0===t[i]?r[i]=n:"object"!=typeof n||o.isElement(n)?-1===t.indexOf(n)&&r.push(n):r[i]=e.extendDeep(t[i],n)})):(t&&"object"==typeof t&&!o.isElement(t)&&o.each(o.keys(t),function(e){r[e]=t[e]}),o.each(o.keys(n),function(i){"object"==typeof n[i]&&n[i]&&t[i]?r[i]=e.extendDeep(t[i],n[i]):r[i]=n[i]})),r},e.getQueryStringValue=function(e,t){return void 0===t&&(t=window.location.search),t.replace(new RegExp("^(?:.*[&\\?]"+e.replace(/[\.\+\*]/g,"\\$&")+"(?:\\=([^&]*))?)?.*$","i"),"$1")},e.isValidUrl=function(e){return/(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?/.test(e)},e.debounce=function(e,t){var n,i;return function(){for(var o=this,r=[],s=0;s<arguments.length;s++)r[s]=arguments[s];null==n?(n=window.setTimeout(function(){n=null},t),i=setTimeout(function(){e.apply(o,r),i=null})):null==i&&(clearTimeout(n),n=window.setTimeout(function(){e.apply(o,r),n=null},t))}},e.readCookie=function(e){for(var t=e+"=",n=document.cookie.split(";"),i=0;i<n.length;i++){for(var o=n[i];" "==o.charAt(0);)o=o.substring(1,o.length);if(0==o.indexOf(t))return o.substring(t.length,o.length)}return null},e.toDashCase=function(e){return e.replace(/([a-z][A-Z])/g,function(e){return e[0]+"-"+e[1].toLowerCase()})},e.toCamelCase=function(e){return e.replace(/-([a-z])/g,function(e){return e[1].toUpperCase()})},e.parseXml=function(e){if("undefined"!=typeof DOMParser)return(new DOMParser).parseFromString(e,"text/xml");if("undefined"!=typeof ActiveXObject&&new ActiveXObject("Microsoft.XMLDOM")){var t=new ActiveXObject("Microsoft.XMLDOM");return t.async="false",t.loadXML(e),t}throw new Error("No XML parser found")},e.copyObject=function(e,t){var n=this;o.each(o.keys(t),function(i){"object"==typeof t[i]&&t[i]&&e[i]?n.copyObject(e[i],t[i]):e[i]=t[i]})},e.copyObjectAttributes=function(e,t,n){var i=this;o.each(o.keys(t),function(r){o.contains(n,r)&&("object"==typeof t[r]&&t[r]&&e[r]?i.copyObject(e[r],t[r]):e[r]=t[r])})},e.concatWithoutDuplicate=function(e,t){var n=o.difference(t,e);return n&&n.length>0&&(e=e.concat(n)),e},e.differenceBetweenObjects=function(e,t){var n={},i=function(e,t){for(var i in e)e[i]!==t[i]&&null==n[i]&&(n[i]=e[i])};return i(e,t),i(t,e),n},e.resolveAfter=function(e,t){return new Promise(function(n){return setTimeout(function(){return void 0!==t?n(t):n()},e)})},e.reorderValuesByKeys=function(e,t,n){var r=e.reduce(function(e,t){return i({},e,(o={},o[n(t)]=t,o));var o},{}),s=[];return t.forEach(function(e){r[e]&&s.push(r[e])}),s.concat(o.without.apply(o,[e].concat(s)))},e}();t.Utils=s},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=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])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n(9),r=n(4),s=n(0),a=function(){function e(){}return e.fail=function(t){e.failureHandler(t)},e.check=function(t,n){t||e.fail(n)},e.isUndefined=function(t){e.check(r.Utils.isUndefined(t),"Value should be undefined.")},e.isNotUndefined=function(t){e.check(!r.Utils.isUndefined(t),"Value should not be undefined.")},e.isNull=function(t){e.check(r.Utils.isNull(t),"Value should be null.")},e.isNotNull=function(t){e.check(!r.Utils.isNull(t),"Value should not be null.")},e.exists=function(t){e.check(!r.Utils.isNullOrUndefined(t),"Value should not be null or undefined")},e.doesNotExists=function(t){e.check(r.Utils.isNullOrUndefined(t),"Value should be null or undefined")},e.isString=function(t){e.check(s.isString(t),"Value should be a string.")},e.stringStartsWith=function(t,n){e.isNonEmptyString(t),e.isNonEmptyString(n),e.check(0==t.indexOf(n),"Value should start with "+n)},e.isNonEmptyString=function(t){e.check(r.Utils.isNonEmptyString(t),"Value should be a non-empty string.")},e.isNumber=function(t){e.check(s.isNumber(t),"Value should be a number.")},e.isLargerThan=function(t,n){e.check(n>t,"Value "+n+" should be larger than "+t)},e.isLargerOrEqualsThan=function(t,n){e.check(n>=t,"Value "+n+" should be larger or equal than "+t)},e.isSmallerThan=function(t,n){e.check(n<t,"Value "+n+" should be smaller than "+t)},e.isSmallerOrEqualsThan=function(t,n){e.check(n<=t,"Value "+n+" should be smaller or equal than "+t)},e.logger=new o.Logger("Assert"),e.failureHandler=function(t){throw e.logger.error("Assertion Failed!",t),window.console&&console.trace&&console.trace(),new u(r.Utils.isNonEmptyString(t)?t:"Assertion Failed!")},e}();t.Assert=a;var u=function(e){function t(t){var n=e.call(this,t)||this;return n.message=t,n}return i(t,e),t.prototype.toString=function(){return this.message},t}(Error);t.PreconditionFailedException=u},function(e,t,n){"use strict";function i(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return o.L10N.format.apply(this,arguments)}Object.defineProperty(t,"__esModule",{value:!0});var o=n(149);t.l=i},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=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])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n(5),r=n(4),s=n(75),a=n(1),u=n(13),l=n(77),c=n(28),p=n(44),d=n(19),h=n(101),f=n(36),m=n(100),y=n(0),g=n(3),v=function(){function e(e){this.owner=e,o.Assert.exists(e)}return e.doExport=function(){g.exportGlobally({ComponentEvents:e})},e.prototype.on=function(e,t,n){this.shouldTreatElementAsJQuery(e)?e.on(t,this.wrapToCallIfEnabled(n)):a.$$(e).on(t,this.wrapToCallIfEnabled(n))},e.prototype.one=function(e,t,n){this.shouldTreatElementAsJQuery(e)?e.one(t,this.wrapToCallIfEnabled(n)):a.$$(e).one(t,this.wrapToCallIfEnabled(n))},e.prototype.onRootElement=function(e,t){this.on(this.owner.root,e,t)},e.prototype.oneRootElement=function(e,t){this.one(this.owner.root,e,t)},e.prototype.onQueryState=function(e,t,n){this.onRootElement(this.getQueryStateEventName(e,t),n)},e.prototype.onComponentOptions=function(e,t,n){this.onRootElement(this.getComponentOptionEventName(e,t),n)},e.prototype.oneQueryState=function(e,t,n){this.oneRootElement(this.getQueryStateEventName(e,t),n)},e.prototype.trigger=function(e,t,n){var i=this;this.wrapToCallIfEnabled(function(){i.shouldTreatElementAsJQuery(e)?e.trigger(t,n):a.$$(e).trigger(t,n)})(n)},e.prototype.wrapToCallIfEnabled=function(e){var t=this;return function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];if(!t.owner.disabled)return n&&n[0]instanceof CustomEvent?n[0].detail&&(n=[n[0].detail]):n&&t.shouldTreatEventAsJQuery(n[0])&&(n=void 0!=n[1]?[n[1]]:n[0].hasOwnProperty("originalEvent")?[n[0].originalEvent]:[]),e.apply(t.owner,n)}},e.prototype.shouldTreatElementAsJQuery=function(e){return!0!==a.Dom.useNativeJavaScriptEvents&&!(!s.JQueryUtils.getJQuery()||!s.JQueryUtils.isInstanceOfJQuery(e))},e.prototype.shouldTreatEventAsJQuery=function(e){return!0!==a.Dom.useNativeJavaScriptEvents&&(s.JQueryUtils.getJQuery()&&s.JQueryUtils.isInstanceOfJqueryEvent(e))},e.prototype.getQueryStateEventName=function(e,t){return this.getModelEvent(this.owner.queryStateModel,e,t)},e.prototype.getComponentOptionEventName=function(e,t){return this.getModelEvent(this.owner.componentOptionsModel,e,t)},e.prototype.getModelEvent=function(e,t,n){return t&&n?e.getEventName(t+n):e.getEventName(t)},e}();t.ComponentEvents=v;var b=function(e){function t(n,i,o){void 0===o&&(o={});var r=e.call(this,n,i)||this;return r.element=n,r.type=i,r.bind=new t.ComponentEventClass(r),r.root=o.root||t.resolveRoot(n),r.queryStateModel=o.queryStateModel||r.resolveQueryStateModel(),r.componentStateModel=o.componentStateModel||r.resolveComponentStateModel(),r.queryController=o.queryController||r.resolveQueryController(),r.searchInterface=o.searchInterface||r.resolveSearchInterface(),r.componentOptionsModel=o.componentOptionsModel||r.resolveComponentOptionsModel(),r.ensureDom=y.once(function(){return r.createDom()}),null!=r.searchInterface&&r.searchInterface.attachComponent(i,r),r.initDebugInfo(),r}return i(t,e),t.prototype.getBindings=function(){return{root:this.root,queryStateModel:this.queryStateModel,queryController:this.queryController,searchInterface:this.searchInterface,componentStateModel:this.componentStateModel,componentOptionsModel:this.componentOptionsModel,usageAnalytics:this.usageAnalytics}},Object.defineProperty(t.prototype,"usageAnalytics",{get:function(){return this.resolveUA()},enumerable:!0,configurable:!0}),t.prototype.createDom=function(){},t.prototype.resolveSearchInterface=function(){return t.resolveBinding(this.element,d.SearchInterface)},t.prototype.resolveQueryController=function(){return t.resolveBinding(this.element,p.QueryController)},t.prototype.resolveComponentStateModel=function(){return t.resolveBinding(this.element,l.ComponentStateModel)},t.prototype.resolveQueryStateModel=function(){return t.resolveBinding(this.element,u.QueryStateModel)},t.prototype.resolveComponentOptionsModel=function(){return t.resolveBinding(this.element,c.ComponentOptionsModel)},t.prototype.resolveUA=function(){return this.searchInterface&&this.searchInterface.usageAnalytics?this.searchInterface.usageAnalytics:new h.NoopAnalyticsClient},t.prototype.resolveResult=function(){return t.getResult(this.element)},t.prototype.removeTabSupport=function(){this.element.hasAttribute("data-tab")&&(this.logger.warn('The "data-tab" attribute is not supported for this component and was removed.'),this.element.removeAttribute("data-tab")),this.element.hasAttribute("data-tab-not")&&(this.logger.warn('The "data-tab-not" attribute is not supported for this component and was removed.'),this.element.removeAttribute("data-tab-not"))},t.prototype.initDebugInfo=function(){var e=this;a.$$(this.element).on("dblclick",function(t){if(t.altKey){null!=e.debugInfo()&&a.$$(e.root).trigger(m.DebugEvents.showDebugPanel,e.debugInfo())}})},t.get=function(e,n,i){if(o.Assert.exists(e),y.isString(n))return e[t.computeCssClassNameForType(n)];if(r.Utils.exists(n))return o.Assert.exists(n.ID),e[t.computeCssClassNameForType(n.ID)];var s=f.BaseComponent.getBoundComponentsForElement(e);return i||o.Assert.check(s.length<=1,"More than one component is bound to this element. You need to specify the component type."),s[0]},t.getResult=function(e,t){void 0===t&&(t=!1);var n=a.$$(e).closest(".CoveoResult");return o.Assert.check(t||void 0!=n),n.CoveoResult},t.bindResultToElement=function(e,t){o.Assert.exists(e),o.Assert.exists(t),a.$$(e).addClass("CoveoResult"),e.CoveoResult=t;var n=s.JQueryUtils.getJQuery();n&&n(e).data(t)},t.resolveRoot=function(e){o.Assert.exists(e);var n=t.resolveBinding(e,d.SearchInterface);return n?n.element:document.body},t.resolveBinding=function(e,n){o.Assert.exists(e),o.Assert.exists(n),o.Assert.exists(n.ID);var i,r=t.computeCssClassNameForType(n.ID);if(a.$$(e).is("."+r))i=e;else{var s=a.$$(e).findClass(r);if(s&&0!==s.length)i=s[0];else{var u=a.$$(e).closest(r);u&&(i=u)}}return i?i[r]:void 0},t.pointElementsToDummyForm=function(e){var t=a.$$(e).is("input")?[e]:[];t=t.concat(a.$$(e).findAll("input")),y.each(y.compact(t),function(e){e.setAttribute("form","coveo-dummy-form")})},t.ComponentEventClass=v,t}(f.BaseComponent);t.Component=b},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(5),r=n(9),s=n(1),a=n(12),u=n(4),l=n(381),c=n(382),p=n(383),d=n(384),h=n(49),f=n(61),m=/([A-Z])|\W+(\w)/g,y=/\s*,\s*/,g=/([a-zA-Z\-]+)\s*:\s*(([^,]|,\s*(?!([a-zA-Z\-]+)\s*:))+)/g,v=function(){function e(){}return e.buildTemplateOption=function(e){return f.TemplateComponentOptions.buildTemplateOption(e)},e.buildBooleanOption=function(t){return e.buildOption(h.ComponentOptionsType.BOOLEAN,e.loadBooleanOption,t)},e.buildNumberOption=function(t){return e.buildOption(h.ComponentOptionsType.NUMBER,e.loadNumberOption,t)},e.buildStringOption=function(t){return e.buildOption(h.ComponentOptionsType.STRING,e.loadStringOption,t)},e.buildIconOption=function(t){return e.buildOption(h.ComponentOptionsType.ICON,e.loadIconOption,t)},e.buildColorOption=function(t){return e.buildOption(h.ComponentOptionsType.COLOR,e.loadStringOption,t)},e.buildHelperOption=function(t){return e.buildOption(h.ComponentOptionsType.HELPER,e.loadStringOption,t)},e.buildJsonOption=function(t){return e.buildOption(h.ComponentOptionsType.JSON,e.loadJsonObjectOption,t)},e.buildJsonObjectOption=function(t){return e.buildJsonOption(t)},e.buildLocalizedStringOption=function(t){return e.buildOption(h.ComponentOptionsType.LOCALIZED_STRING,e.loadLocalizedStringOption,t)},e.buildFieldOption=function(t){return e.buildOption(h.ComponentOptionsType.FIELD,e.loadFieldOption,t)},e.buildFieldsOption=function(t){return e.buildOption(h.ComponentOptionsType.FIELDS,e.loadFieldsOption,t)},e.buildQueryExpressionOption=function(t){return e.buildOption(h.ComponentOptionsType.QUERY_EXPRESSION,e.loadStringOption,t)},e.buildListOption=function(t){return e.buildOption(h.ComponentOptionsType.LIST,e.loadListOption,t)},e.buildSelectorOption=function(t){return e.buildOption(h.ComponentOptionsType.SELECTOR,e.loadSelectorOption,t)},e.buildChildHtmlElementOption=function(t){return e.buildOption(h.ComponentOptionsType.CHILD_HTML_ELEMENT,e.loadChildHtmlElementOption,t)},e.buildCustomOption=function(t,n){var i=function(n,i,o){var r=e.loadStringOption(n,i,o);if(!u.Utils.isNullOrEmptyString(r))return t(r)};return e.buildOption(h.ComponentOptionsType.STRING,i,n)},e.buildCustomListOption=function(t,n){var i=function(n,i,o){var r=e.loadListOption(n,i,o);return t(r)};return e.buildOption(h.ComponentOptionsType.LIST,i,n)},e.buildObjectOption=function(t){var n=function(n,o,r){for(var s=i.keys(t.subOptions),a={},u={},l=0;l<s.length;l++){var c=s[l],p=e.mergeCamelCase(o,c);a[p]=t.subOptions[c]}e.initOptions(n,a,u,"");for(var d={},h=!1,l=0;l<s.length;l++){var c=s[l],p=e.mergeCamelCase(o,c);null!=u[p]&&(d[c]=u[p],h=!0)}return h?d:null};return e.buildOption(h.ComponentOptionsType.OBJECT,n,t)},e.buildFieldConditionOption=function(){return e.buildOption(h.ComponentOptionsType.FIELD,e.loadFieldConditionOption)},e.buildOption=function(e,t,n){void 0===n&&(n={});var i=n;return i.type=e,i.load=t,i},e.attrNameFromName=function(t,n){return n&&n.attrName?n.attrName:t?"data-"+e.camelCaseToHyphen(t):t},e.camelCaseToHyphen=function(e){return e.replace(m,"-$1$2").toLowerCase()},e.mergeCamelCase=function(e,t){return e+t.substr(0,1).toUpperCase()+t.substr(1)},e.initComponentOptions=function(t,n,i){return e.initOptions(t,n.options,i,n.ID)},e.initOptions=function(e,t,n,o){return void 0===n&&(n={}),u.Utils.isNullOrUndefined(n)&&(n={}),i.each(t,function(t,i){var r=new l.ComponentOptionLoader(e,n,i,t).load();new c.ComponentOptionsMerger(t,{value:r,name:i},n).merge(),new d.ComponentOptionsValidator(t,{componentID:o,name:i,value:r},n).validate()}),new p.ComponentOptionsPostProcessor(t,n,o).postProcess(),n},e.tryLoadFromAttribute=function(e,t,n){var i=n.load;return i?i(e,t,n):null},e.loadStringOption=function(t,n,i){return t.getAttribute(e.attrNameFromName(n,i))||e.getAttributeFromAlias(t,i)},e.loadIconOption=function(t,n,i){var o=e.loadStringOption(t,n,i);return null==o?null:(o=o.replace("coveo-sprites-replies","replies"),o=o.replace("coveo-sprites-main-search-active","search"),u.Utils.isNullOrUndefined(a.SVGIcons.icons[o])?(new r.Logger(t).warn("Icon with name "+o+" not found."),null):o=u.Utils.toCamelCase(o))},e.loadFieldOption=function(t,n,i){var r=e.loadStringOption(t,n,i);return o.Assert.check(!u.Utils.isNonEmptyString(r)||u.Utils.isCoveoField(r),r+" is not a valid field"),r},e.loadFieldConditionOption=function(e,t,n){var i=s.Dom.nodeListToArray(e.attributes).filter(function(e){return u.Utils.stringStartsWith(e.nodeName,"data-condition-field-")});return 0!=i.length?i.map(function(e){return{field:e.nodeName.replace("data-condition-field-not-","").replace("data-condition-field-",""),values:u.Utils.isNonEmptyString(e.nodeValue)?e.nodeValue.split(/\s*,\s*/):null,reverseCondition:0==e.nodeName.indexOf("data-condition-field-not-")}}):void 0},e.loadFieldsOption=function(t,n,r){var s=e.loadStringOption(t,n,r);if(null==s)return null;var a=s.split(y);return i.each(a,function(e){o.Assert.check(u.Utils.isCoveoField(e),e+" is not a valid field")}),a},e.loadLocalizedStringOption=function(t,n,o){var r=e.loadStringOption(t,n,o),s=String.locale||String.defaultLocale;if(null!=s&&null!=r){var a=s.toLowerCase().split("-"),u=i.map(a,function(e,t){return a.slice(0,t+1).join("-")}),l=r.match(g);if(null!=l)for(var c=0;c<l.length;c++){var p=g.exec(l[c]);if(null!=p){var d=p[1].toLowerCase();if(i.contains(u,d))return p[2].replace(/^\s+|\s+$/g,"")}}return null!=r?r.toLocaleString():null}return r},e.loadNumberOption=function(t,n,i){var o=e.loadStringOption(t,n,i);if(null==o)return null;var s=!0===i.float?u.Utils.parseFloatIfNotUndefined(o):u.Utils.parseIntIfNotUndefined(o);return null!=i.min&&i.min>s&&(new r.Logger(t).info("Value for option "+n+" is less than the possible minimum (Value is "+s+", minimum is "+i.min+"). It has been forced to its minimum value.",i),s=i.min),null!=i.max&&i.max<s&&(new r.Logger(t).info("Value for option "+n+" is higher than the possible maximum (Value is "+s+", maximum is "+i.max+"). It has been forced to its maximum value.",i),s=i.max),s},e.loadBooleanOption=function(t,n,i){return u.Utils.parseBooleanIfNotUndefined(e.loadStringOption(t,n,i))},e.loadListOption=function(t,n,i){var o=i.separator||/\s*,\s*/,r=e.loadStringOption(t,n,i);return u.Utils.isNonEmptyString(r)?r.split(o):null},e.loadEnumOption=function(t,n,i,o){var r=e.loadStringOption(t,n,i);return null!=r?o[r]:null},e.loadJsonObjectOption=function(t,n,i){var o=e.loadStringOption(t,n,i);if(null==o)return null;try{return JSON.parse(o)}catch(e){return new r.Logger(t).info("Value for option "+n+" is not a valid JSON string (Value is "+o+"). It has been disabled.",e),null}},e.loadSelectorOption=function(t,n,i,o){void 0===o&&(o=document);var r=e.loadStringOption(t,n,i);return u.Utils.isNonEmptyString(r)?o.querySelector(r):null},e.loadChildHtmlElementOption=function(t,n,i,o){void 0===o&&(o=document);var r,s=i.selectorAttr||e.attrNameFromName(n,i)+"-selector",a=t.getAttribute(s)||e.getAttributeFromAlias(t,i);if(null!=a&&(r=o.body.querySelector(a)),null==r){var u=i.childSelector;null==u&&(u="."+n),r=e.loadChildHtmlElementFromSelector(t,u)}return r},e.loadChildHtmlElementFromSelector=function(e,t){return o.Assert.isNonEmptyString(t),s.$$(e).is(t)?e:s.$$(e).find(t)},e.loadChildrenHtmlElementFromSelector=function(e,t){return o.Assert.isNonEmptyString(t),s.$$(e).findAll(t)},e.findParentScrolling=function(t,n){return void 0===n&&(n=document),t=this.findParentScrollLockable(t,n),t instanceof HTMLBodyElement||!e.isElementScrollable(t)?window:t},e.findParentScrollLockable=function(t,n){return void 0===n&&(n=document),t?e.isElementScrollable(t)||t instanceof HTMLBodyElement||!t.parentElement?t:e.findParentScrollLockable(t.parentElement,n):n.body},e.isElementScrollable=function(e){var t=s.$$(e).css("overflow-y");return"scroll"==t||"auto"==t},e.getAttributeFromAlias=function(t,n){if(i.isArray(n.alias)){var o;return i.each(n.alias,function(n){var i=t.getAttribute(e.attrNameFromName(n));i&&(o=i)}),o}return n.alias?t.getAttribute(e.attrNameFromName(n.alias)):void 0},e}();t.ComponentOptions=v},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),window.console||(console={log:function(){},debug:function(){},info:function(){},warn:function(){},error:function(){},assert:function(){},clear:function(){},count:function(){},dir:function(){},dirxml:function(){},group:function(){},groupCollapsed:function(){},groupEnd:function(){},msIsIndependentlyComposed:function(e){},profile:function(){},profileEnd:function(){},select:function(){},time:function(){},timeEnd:function(){},trace:function(){}});var i=function(){function e(e){this.owner=e}return e.prototype.trace=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e.level<=e.TRACE&&this.log("TRACE",t)},e.prototype.debug=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e.level<=e.DEBUG&&this.log("DEBUG",t)},e.prototype.info=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e.level<=e.INFO&&this.log("INFO",t)},e.prototype.warn=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e.level<=e.WARN&&this.log("WARN",t)},e.prototype.error=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e.level<=e.ERROR&&this.log("ERROR",t)},e.prototype.log=function(t,n){window.console&&console.log&&(console.error&&"ERROR"==t?console.error([t,this.owner].concat(n)):console.info&&"INFO"==t?console.info([t,this.owner].concat(n)):console.warn&&"WARN"==t?console.warn([t,this.owner].concat(n)):console.log([t,this.owner].concat(n)),e.executionTime&&(console.timeEnd("Execution time"),console.time("Execution time")))},e.enable=function(){e.level=e.TRACE},e.disable=function(){e.level=e.NOTHING},e.TRACE=1,e.DEBUG=2,e.INFO=3,e.WARN=4,e.ERROR=5,e.NOTHING=6,e.level=e.INFO,e.executionTime=!1,e}();t.Logger=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});!function(e){e.DoesNotAnswer="does_not_answer",e.PartiallyAnswers="partially_answers",e.WasNotAQuestion="was_not_a_question",e.Other="other"}(t.AnalyticsSmartSnippetFeedbackReason||(t.AnalyticsSmartSnippetFeedbackReason={})),t.analyticsActionCauseList={interfaceLoad:{name:"interfaceLoad",type:"interface"},interfaceChange:{name:"interfaceChange",type:"interface"},contextRemove:{name:"contextRemove",type:"misc"},didyoumeanAutomatic:{name:"didyoumeanAutomatic",type:"misc"},didyoumeanClick:{name:"didyoumeanClick",type:"misc"},resultsSort:{name:"resultsSort",type:"misc"},searchboxSubmit:{name:"searchboxSubmit",type:"search box"},searchboxClear:{name:"searchboxClear",type:"search box"},searchboxAsYouType:{name:"searchboxAsYouType",type:"search box"},breadcrumbFacet:{name:"breadcrumbFacet",type:"breadcrumb"},breadcrumbAdvancedSearch:{name:"breadcrumbAdvancedSearch",type:"breadcrumb"},breadcrumbResetAll:{name:"breadcrumbResetAll",type:"breadcrumb"},documentTag:{name:"documentTag",type:"document"},documentField:{name:"documentField",type:"document"},documentQuickview:{name:"documentQuickview",type:"document"},documentOpen:{name:"documentOpen",type:"document"},omniboxFacetSelect:{name:"omniboxFacetSelect",type:"omnibox"},omniboxFacetExclude:{name:"omniboxFacetExclude",type:"omnibox"},omniboxFacetDeselect:{name:"omniboxFacetDeselect",type:"omnibox"},omniboxFacetUnexclude:{name:"omniboxFacetUnexclude",type:"omnibox"},omniboxAnalytics:{name:"omniboxAnalytics",type:"omnibox"},omniboxFromLink:{name:"omniboxFromLink",type:"omnibox"},omniboxField:{name:"omniboxField",type:"omnibox"},facetClearAll:{name:"facetClearAll",type:"facet"},facetSearch:{name:"facetSearch",type:"facet"},facetToggle:{name:"facetToggle",type:"facet"},facetRangeSlider:{name:"facetRangeSlider",type:"facet"},facetRangeGraph:{name:"facetRangeGraph",type:"facet"},facetSelect:{name:"facetSelect",type:"facet"},facetSelectAll:{name:"facetSelectAll",type:"facet"},facetDeselect:{name:"facetDeselect",type:"facet"},facetExclude:{name:"facetExclude",type:"facet"},facetUnexclude:{name:"facetUnexclude",type:"facet"},facetUpdateSort:{name:"facetUpdateSort",type:"facet"},facetShowMore:{name:"showMoreFacetResults",type:"facet"},facetShowLess:{name:"showLessFacetResults",type:"facet"},categoryFacetSelect:{name:"categoryFacetSelect",type:"categoryFacet"},categoryFacetReload:{name:"categoryFacetReload",type:"categoryFacet"},categoryFacetClear:{name:"categoryFacetClear",type:"categoryFacet"},categoryFacetBreadcrumb:{name:"categoryFacetBreadcrumb",type:"categoryFacet"},categoryFacetSearch:{name:"categoryFacetSearch",type:"categoryFacet"},dynamicFacetSelect:{name:"facetSelect",type:"dynamicFacet"},dynamicFacetDeselect:{name:"facetDeselect",type:"dynamicFacet"},dynamicFacetClearAll:{name:"facetClearAll",type:"dynamicFacet"},dynamicFacetShowMore:{name:"showMoreFacetResults",type:"dynamicFacet"},dynamicFacetShowLess:{name:"showLessFacetResults",type:"dynamicFacet"},errorBack:{name:"errorBack",type:"errors"},errorClearQuery:{name:"errorClearQuery",type:"errors"},errorRetry:{name:"errorRetry",type:"errors"},noResultsBack:{name:"noResultsBack",type:"noResults"},expandToFullUI:{name:"expandToFullUI",type:"interface"},caseCreationInputChange:{name:"inputChange",type:"caseCreation"},caseCreationSubmitButton:{name:"submitButton",type:"caseCreation"},caseCreationCancelButton:{name:"cancelButton",type:"caseCreation"},caseCreationUnloadPage:{name:"unloadPage",type:"caseCreation"},casecontextAdd:{name:"casecontextAdd",type:"casecontext"},casecontextRemove:{name:"casecontextRemove",type:"casecontext"},preferencesChange:{name:"preferencesChange",type:"preferences"},getUserHistory:{name:"getUserHistory",type:"userHistory"},userActionDocumentClick:{name:"userActionDocumentClick",type:"userHistory"},caseAttach:{name:"caseAttach",type:"case"},caseDetach:{name:"caseDetach",type:"case"},customfiltersChange:{name:"customfiltersChange",type:"customfilters"},pagerNumber:{name:"pagerNumber",type:"getMoreResults"},pagerNext:{name:"pagerNext",type:"getMoreResults"},pagerPrevious:{name:"pagerPrevious",type:"getMoreResults"},pagerScrolling:{name:"pagerScrolling",type:"getMoreResults"},pagerResize:{name:"pagerResize",type:"getMoreResults"},positionSet:{name:"positionSet",type:"distance"},searchFromLink:{name:"searchFromLink",type:"interface"},triggerNotify:{name:"notify",type:"queryPipelineTriggers"},triggerExecute:{name:"execute",type:"queryPipelineTriggers"},triggerQuery:{name:"query",type:"queryPipelineTriggers"},triggerRedirect:{name:"redirect",type:"queryPipelineTriggers"},queryError:{name:"query",type:"errors"},exportToExcel:{name:"exportToExcel",type:"misc"},recommendation:{name:"recommendation",type:"recommendation"},recommendationInterfaceLoad:{name:"recommendationInterfaceLoad",type:"recommendation"},recommendationOpen:{name:"recommendationOpen",type:"recommendation"},advancedSearch:{name:"advancedSearch",type:"advancedSearch"},searchAlertsFollowDocument:{name:"followDocument",type:"searchAlerts"},searchAlertsFollowQuery:{name:"followQuery",type:"searchAlerts"},searchAlertsUpdateSubscription:{name:"updateSubscription",type:"searchAlerts"},searchAlertsDeleteSubscription:{name:"deleteSubscription",type:"searchAlerts"},searchAlertsUnfollowDocument:{name:"unfollowDocument",type:"searchAlerts"},searchAlertsUnfollowQuery:{name:"unfollowQuery",type:"searchAlerts"},simpleFilterSelectValue:{name:"selectValue",type:"simpleFilter"},simpleFilterDeselectValue:{name:"deselectValue",type:"simpleFilter"},simpleFilterClearAll:{name:"clearAll",type:"simpleFilter"},resultsLayoutChange:{name:"changeResultsLayout",type:"resultsLayout"},foldingShowMore:{name:"showMoreFoldedResults",type:"folding"},foldingShowLess:{name:"showLessFoldedResults",type:"folding"},addMissingTerm:{name:"addMissingTerm",type:"missingTerm"},removeMissingTerm:{name:"removeMissingTerm",type:"missingTerm"},showQuerySuggestPreview:{name:"showQuerySuggestPreview",type:"querySuggestPreview"},clickQuerySuggestPreview:{name:"clickQuerySuggestPreview",type:"querySuggestPreview"},likeSmartSnippet:{name:"likeSmartSnippet",type:"smartSnippet"},dislikeSmartSnippet:{name:"dislikeSmartSnippet",type:"smartSnippet"},expandSmartSnippet:{name:"expandSmartSnippet",type:"smartSnippet"},collapseSmartSnippet:{name:"collapseSmartSnippet",type:"smartSnippet"},openSmartSnippetFeedbackModal:{name:"openSmartSnippetFeedbackModal",type:"smartSnippet"},closeSmartSnippetFeedbackModal:{name:"closeSmartSnippetFeedbackModal",type:"smartSnippet"},sendSmartSnippetReason:{name:"sendSmartSnippetReason",type:"smartSnippet"},openSmartSnippetSource:{name:"openSmartSnippetSource",type:"smartSnippet"},expandSmartSnippetSuggestion:{name:"expandSmartSnippetSuggestion",type:"smartSnippetSuggestions"},collapseSmartSnippetSuggestion:{name:"collapseSmartSnippetSuggestion",type:"smartSnippetSuggestions"},openSmartSnippetSuggestionSource:{name:"openSmartSnippetSuggestionSource",type:"smartSnippet"}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){}return e.newQuery="newQuery",e.buildingQuery="buildingQuery",e.doneBuildingQuery="doneBuildingQuery",e.duringQuery="duringQuery",e.duringFetchMoreQuery="duringFetchMoreQuery",e.querySuccess="querySuccess",e.fetchMoreSuccess="fetchMoreSuccess",e.deferredQuerySuccess="deferredQuerySuccess",e.queryError="queryError",e.preprocessResults="preprocessResults",e.preprocessMoreResults="preprocessMoreResults",e.noResults="noResults",e.buildingCallOptions="buildingCallOptions",e}();t.QueryEvents=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){}return e.icons={search:n(341),more:n(342),loading:n(343),checkboxHookExclusionMore:n(344),arrowUp:n(345),arrowDown:n(346),mainClear:n(347),clearSmall:n(348),clear:n(349),close:n(350),delete:n(351),save:n(352),checkYes:n(353),orAnd:n(354),sort:n(355),ascending:n(356),descending:n(357),dropdownMore:n(358),dropdownLess:n(359),facetCollapse:n(360),facetExpand:n(361),dropdownShareQuery:n(362),dropdownPreferences:n(363),dropdownAuthenticate:n(364),dropdownExport:n(365),dropdownFollowQuery:n(366),quickview:n(367),pagerRightArrow:n(368),pagerLeftArrow:n(369),replies:n(370),video:n(371),coveoLogo:n(372),coveoPoweredBy:n(373),taggingOk:n(374),edit:n(375),star:n(376),listLayout:n(377),cardLayout:n(378),tableLayout:n(379),plus:n(380)},e}();t.SVGIcons=i},function(e,t,n){"use strict";function i(e,t){if(a.Assert.exists(e),0==t.length||void 0==t[0])return e;if(1==t.length&&l.Utils.isNonEmptyString(t[0]))return e.get(t[0]);if(u.isObject(t[0])){var n=t[0],i=u.extend({customAttribute:!0},t[1]);return e.setMultiple(n,i)}if(t.length>1){var o=t[0],r=t[1],i=u.extend({customAttribute:!0},t[2]);return a.Assert.isNonEmptyString(o),e.set(o,r,i)}}var o=this&&this.__extends||function(){var e=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])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),r=this&&this.__assign||Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e};Object.defineProperty(t,"__esModule",{value:!0});var s=n(18),a=n(5),u=n(0),l=n(4);t.QUERY_STATE_ATTRIBUTES={Q:"q",FIRST:"first",T:"t",TG:"tg",SORT:"sort",LAYOUT:"layout",HD:"hd",HQ:"hq",QUICKVIEW:"quickview",DEBUG:"debug",NUMBER_OF_RESULTS:"numberOfResults",MISSING_TERMS:"missingTerms"};var c=function(e){function t(n,i){var o=r({},t.defaultAttributes,i);return e.call(this,n,t.ID,o)||this}return o(t,e),t.getFacetId=function(e,t){return void 0===t&&(t=!0),"f:"+e+(t?"":":not")},t.getFacetOperator=function(e){return"f:"+e+":operator"},t.getFacetLookupValue=function(e){return t.getFacetId(e)+":lookupvalues"},t.prototype.atLeastOneFacetIsActive=function(){var e=this;return!u.isUndefined(u.find(this.attributes,function(t,n){return n.match(/^f:/)&&!l.Utils.arrayEqual(e.getDefault(n),t)}))},t.prototype.set=function(t,n,i){this.validate(t,n),e.prototype.set.call(this,t,n,i)},t.prototype.validate=function(e,n){e==t.attributesEnum.first&&(a.Assert.isNumber(n),a.Assert.isLargerOrEqualsThan(0,n))},t.ID="state",t.defaultAttributes={q:"",first:0,fv:"",t:"",hd:"",hq:"",sort:"",layout:"list",tg:"",quickview:"",debug:!1,numberOfResults:10,missingTerms:[]},t.attributesEnum={q:"q",first:"first",fv:"fv",t:"t",sort:"sort",layout:"layout",hd:"hd",hq:"hq",tg:"tg",quickview:"quickview",debug:"debug",numberOfResults:"numberOfResults",missingTerms:"missingTerms"},t}(s.Model);t.QueryStateModel=c,t.setState=i},function(e,t,n){"use strict";(function(e){n.d(t,"e",function(){return i}),n.d(t,"p",function(){return o}),n.d(t,"a",function(){return r}),n.d(t,"c",function(){return s}),n.d(t,"d",function(){return a}),n.d(t,"o",function(){return u}),n.d(t,"q",function(){return l}),n.d(t,"t",function(){return c}),n.d(t,"i",function(){return p}),n.d(t,"r",function(){return d}),n.d(t,"s",function(){return h}),n.d(t,"k",function(){return f}),n.d(t,"m",function(){return m}),n.d(t,"j",function(){return y}),n.d(t,"l",function(){return g}),n.d(t,"g",function(){return v}),n.d(t,"f",function(){return b}),n.d(t,"h",function(){return S}),n.d(t,"n",function(){return C}),n.d(t,"b",function(){return w});var i="1.13.1",o="object"==typeof self&&self.self===self&&self||"object"==typeof e&&e.global===e&&e||Function("return this")()||{},r=Array.prototype,s=Object.prototype,a="undefined"!=typeof Symbol?Symbol.prototype:null,u=r.push,l=r.slice,c=s.toString,p=s.hasOwnProperty,d="undefined"!=typeof ArrayBuffer,h="undefined"!=typeof DataView,f=Array.isArray,m=Object.keys,y=Object.create,g=d&&ArrayBuffer.isView,v=isNaN,b=isFinite,S=!{toString:null}.propertyIsEnumerable("toString"),C=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],w=Math.pow(2,53)-1}).call(t,n(74))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=function(){function e(){}return e.addClassToSVGInContainer=function(t,n){var i=t.querySelector("svg");i.setAttribute("class",""+e.getClass(i)+n)},e.removeClassFromSVGInContainer=function(t,n){var i=t.querySelector("svg");i.setAttribute("class",e.getClass(i).replace(n,""))},e.addStyleToSVGInContainer=function(e,t){var n=e.querySelector("svg");i.each(t,function(e,t){n.style[t]=e})},e.addAttributesToSVGInContainer=function(e,t){var n=e.querySelector("svg");i.each(t,function(e,t){n.setAttribute(t,e)})},e.getClass=function(e){var t=e.getAttribute("class");return t?t+" ":""},e}();t.SVGDom=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){}return e.beforeInitialization="beforeInitialization",e.afterComponentsInitialization="afterComponentsInitialization",e.restoreHistoryState="restoreHistoryState",e.afterInitialization="afterInitialization",e.nuke="nuke",e}();t.InitializationEvents=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(9),o=n(25),r=n(1);n(450);var s;!function(e){e[e.UP=0]="UP",e[e.RIGHT=1]="RIGHT",e[e.DOWN=2]="DOWN",e[e.LEFT=3]="LEFT"}(s=t.ArrowDirection||(t.ArrowDirection={}));var a=function(){function e(){this.labelOrTitleRequired=!0,this.logger=new i.Logger(this)}return e.prototype.withOwner=function(e){return this.eventOwner=e,this},e.prototype.withElement=function(e){return e instanceof HTMLElement?this.element=r.$$(e):this.element=e,this},e.prototype.withLabel=function(e){return this.label=e,this},e.prototype.withoutLabelOrTitle=function(){return this.labelOrTitleRequired=!1,this},e.prototype.withTitle=function(e){return this.title=e,this},e.prototype.withSelectAction=function(e){return this.clickAction=e,this.enterKeyboardAction=e,this},e.prototype.withClickAction=function(e){return this.clickAction=e,this},e.prototype.withEnterKeyboardAction=function(e){return this.enterKeyboardAction=e,this},e.prototype.withFocusAndMouseEnterAction=function(e){return this.focusAction=e,this.mouseenterAction=e,this},e.prototype.withFocusAction=function(e){return this.focusAction=e,this},e.prototype.withMouseEnterAction=function(e){return this.mouseenterAction=e,this},e.prototype.withBlurAndMouseLeaveAction=function(e){return this.mouseleaveAction=e,this.blurAction=e,this},e.prototype.withMouseLeaveAction=function(e){return this.mouseleaveAction=e,this},e.prototype.withBlurAction=function(e){return this.blurAction=e,this},e.prototype.withArrowsAction=function(e){return this.arrowsAction=e,this},e.prototype.withRole=function(e){return this.role=e,this},e.prototype.build=function(){return this.element||(this.element=r.$$("div")),this.ensureCorrectRole(),this.ensureCorrectLabelOrTitle(),this.ensureSelectAction(),this.ensureUnselectAction(),this.ensureMouseenterAndFocusAction(),this.ensureMouseleaveAndBlurAction(),this.ensureArrowsAction(),this.ensureDifferentiationBetweenKeyboardAndMouseFocus(),this},e.prototype.ensureDifferentiationBetweenKeyboardAndMouseFocus=function(){var e=this;r.$$(this.element).addClass("coveo-accessible-button"),r.$$(this.element).on("mouseup",function(){return r.$$(e.element).addClass("coveo-accessible-button-pressed")}),r.$$(this.element).on("focus",function(){r.$$(e.element).removeClass("coveo-accessible-button-pressed")})},e.prototype.ensureCorrectRole=function(){this.element.getAttribute("role")||this.element.setAttribute("role",this.role||"button")},e.prototype.ensureCorrectLabelOrTitle=function(){if(this.labelOrTitleRequired)return this.label||this.title?this.title?void this.element.setAttribute("title",this.title):void this.element.setAttribute("aria-label",this.label):void this.logger.error("Missing a label or title to create an accessible button!")},e.prototype.ensureTabIndex=function(){this.element.setAttribute("tabindex","0")},e.prototype.ensureSelectAction=function(){var e=this;this.enterKeyboardAction&&(this.ensureTabIndex(),this.bindEvent("keyup",o.KeyboardUtils.keypressAction(o.KEYBOARD.ENTER,function(t){return e.enterKeyboardAction(t)})),this.bindEvent("keydown",o.KeyboardUtils.keypressAction(o.KEYBOARD.SPACEBAR,function(e){e.target instanceof HTMLInputElement||e.preventDefault()})),this.bindEvent("keyup",o.KeyboardUtils.keypressAction(o.KEYBOARD.SPACEBAR,function(t){t.target instanceof HTMLInputElement||e.enterKeyboardAction(t)}))),this.clickAction&&this.bindEvent("click",this.clickAction)},e.prototype.ensureUnselectAction=function(){this.blurAction&&this.bindEvent("blur",this.blurAction),this.mouseleaveAction&&this.bindEvent("mouseleave",this.mouseleaveAction)},e.prototype.ensureMouseenterAndFocusAction=function(){this.mouseenterAction&&this.bindEvent("mouseenter",this.mouseenterAction),this.focusAction&&this.bindEvent("focus",this.focusAction)},e.prototype.ensureMouseleaveAndBlurAction=function(){this.mouseleaveAction&&this.bindEvent("mouseleave",this.mouseleaveAction),this.blurAction&&this.bindEvent("blur",this.blurAction)},e.prototype.ensureArrowsAction=function(){var e=this;this.arrowsAction&&(this.bindEvent("keyup",o.KeyboardUtils.keypressAction(o.KEYBOARD.UP_ARROW,function(t){return e.arrowsAction(s.UP,t)})),this.bindEvent("keyup",o.KeyboardUtils.keypressAction(o.KEYBOARD.RIGHT_ARROW,function(t){return e.arrowsAction(s.RIGHT,t)})),this.bindEvent("keyup",o.KeyboardUtils.keypressAction(o.KEYBOARD.DOWN_ARROW,function(t){return e.arrowsAction(s.DOWN,t)})),this.bindEvent("keyup",o.KeyboardUtils.keypressAction(o.KEYBOARD.LEFT_ARROW,function(t){return e.arrowsAction(s.LEFT,t)})))},e.prototype.bindEvent=function(e,t){this.eventOwner?this.eventOwner.on(this.element,e,t):r.$$(this.element).on(e,t)},e}();t.AccessibleButton=a},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=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])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),r=n(5),s=n(4),a=n(36),u=n(0);t.MODEL_EVENTS={PREPROCESS:"preprocess",CHANGE_ONE:"change:",CHANGE:"change",RESET:"reset",ALL:"all"};var l=function(e){function t(t,n,i){var o=e.call(this,t,n)||this;return o.eventNameSpace=n,o.defaultAttributes=s.Utils.extendDeep(o.defaultAttributes,i),o.attributes=i,o.logger.debug("Creating model"),o}return i(t,e),t.prototype.set=function(e,t,n){var i={};i[e]=t,this.setMultiple(i,n)},t.prototype.getAttributes=function(){var e=this,t={};return u.each(this.attributes,function(n,i){u.isObject(n)?s.Utils.objectEqual(n,e.defaultAttributes[i])||(t[i]=s.Utils.extendDeep({},n)):n!=e.defaultAttributes[i]&&(t[i]=n)}),t},t.prototype.setMultiple=function(e,t){var n=this,i=!1;this.preprocessEvent(e),u.each(e,function(e,o){t&&t.customAttribute||n.checkIfAttributeExists(o),e=n.parseToCorrectType(o,e),(t&&!t.validateType||n.typeIsValid(o,e))&&n.checkIfAttributeChanged(o,e)&&(n.attributes[o]=e,i=!0,null!=t&&t.silent||n.attributeHasChangedEvent(o))}),!i||null!=t&&t.silent||(this.attributesHasChangedEvent(),this.anyEvent())},t.prototype.setNewDefault=function(e,t,n){n&&n.customAttribute||this.checkIfAttributeExists(e),this.defaultAttributes[e]=t},t.prototype.setDefault=function(e){this.set(e,this.defaultAttributes[e])},t.prototype.get=function(e){return void 0==e?this.attributes:this.attributes[e]},t.prototype.getDefault=function(e){return void 0==e?this.defaultAttributes:this.defaultAttributes[e]},t.prototype.reset=function(){this.setMultiple(this.defaultAttributes),this.modelWasResetEvent()},t.prototype.registerNewAttribute=function(e,t){this.defaultAttributes[e]=t,this.attributes[e]=t},t.prototype.getEventName=function(e){return this.eventNameSpace+":"+e},t.prototype.attributesHasChangedEvent=function(){o.$$(this.element).trigger(this.getEventName(t.eventTypes.change),this.createAttributesChangedArgument())},t.prototype.attributeHasChangedEvent=function(e){o.$$(this.element).trigger(this.getEventName(t.eventTypes.changeOne)+e,this.createAttributeChangedArgument(e))},t.prototype.preprocessEvent=function(e){o.$$(this.element).trigger(this.getEventName(t.eventTypes.preprocess),e)},t.prototype.modelWasResetEvent=function(){o.$$(this.element).trigger(this.getEventName(t.eventTypes.reset),this.createModelChangedArgument())},t.prototype.anyEvent=function(){o.$$(this.element).trigger(this.getEventName(t.eventTypes.all),this.createModelChangedArgument())},t.prototype.createAttributeChangedArgument=function(e){return{attribute:e,value:this.attributes[e]}},t.prototype.createAttributesChangedArgument=function(){return{attributes:this.attributes}},t.prototype.createModelChangedArgument=function(){return{model:this}},t.prototype.checkIfAttributeExists=function(e){r.Assert.check(u.has(this.attributes,e),"The attribute "+e+" is not registered.")},t.prototype.typeIsValid=function(e,t){return!(!s.Utils.isNullOrUndefined(this.attributes[e])&&!s.Utils.isUndefined(t))||(u.isNumber(this.attributes[e])?this.validateNumber(e,t):u.isBoolean(this.attributes[e])?this.validateBoolean(e,t):this.validateOther(e,t))},t.prototype.validateNumber=function(e,t){return!(!u.isNumber(t)||isNaN(t))||(this.logger.error("Non-matching type for "+e+". Expected number and got "+t),!1)},t.prototype.validateBoolean=function(e,t){return!(!u.isBoolean(t)&&void 0!==!s.Utils.parseBooleanIfNotUndefined(t))||(this.logger.error("Non matching type for "+e+". Expected boolean and got "+t),!1)},t.prototype.validateOther=function(e,t){if(!s.Utils.isNullOrUndefined(this.defaultAttributes[e])){var n=typeof t,i=typeof this.defaultAttributes[e];if(n!==i)return this.logger.error("Non-matching type for "+e+". Expected "+i+" and got "+n),!1}return!0},t.prototype.parseToCorrectType=function(e,t){return u.isNumber(this.attributes[e])?parseInt(t,10):u.isBoolean(this.attributes[e])?u.isBoolean(t)?t:s.Utils.parseBooleanIfNotUndefined(t):t},t.prototype.checkIfAttributeChanged=function(e,t){var n=this.attributes[e];return u.isNumber(n)||u.isString(n)||u.isBoolean(n)?n!==t:u.isArray(n)?!s.Utils.arrayEqual(n,t):!u.isObject(n)||!s.Utils.objectEqual(n,t)},t.prototype.debugInfo=function(){return null},t.eventTypes={preprocess:"preprocess",changeOne:"change:",change:"change",reset:"reset",all:"all"},t}(a.BaseComponent);t.Model=l},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=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])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),o=this&&this.__assign||Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},r=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))(function(o,r){function s(e){try{u(i.next(e))}catch(e){r(e)}}function a(e){try{u(i.throw(e))}catch(e){r(e)}}function u(e){e.done?o(e.value):new n(function(t){t(e.value)}).then(s,a)}u((i=i.apply(e,t||[])).next())})},s=this&&this.__generator||function(e,t){function n(e){return function(t){return i([e,t])}}function i(n){if(o)throw new TypeError("Generator is already executing.");for(;u;)try{if(o=1,r&&(s=r[2&n[0]?"return":n[0]?"throw":"next"])&&!(s=s.call(r,n[1])).done)return s;switch(r=0,s&&(n=[0,s.value]),n[0]){case 0:case 1:s=n;break;case 4:return u.label++,{value:n[1],done:!1};case 5:u.label++,r=n[1],n=[0];continue;case 7:n=u.ops.pop(),u.trys.pop();continue;default:if(s=u.trys,!(s=s.length>0&&s[s.length-1])&&(6===n[0]||2===n[0])){u=0;continue}if(3===n[0]&&(!s||n[1]>s[0]&&n[1]<s[3])){u.label=n[1];break}if(6===n[0]&&u.label<s[1]){u.label=s[1],s=n;break}if(s&&u.label<s[2]){u.label=s[2],u.ops.push(n);break}s[2]&&u.ops.pop(),u.trys.pop();continue}n=t.call(e,u)}catch(e){n=[6,e],r=0}finally{o=s=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}var o,r,s,a,u={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return a={next:n(0),throw:n(1),return:n(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a};Object.defineProperty(t,"__esModule",{value:!0});var a=n(330);n(333),n(334),n(335),n(336);var u=n(0),l=n(151),c=n(152),p=n(337),d=n(44),h=n(16),f=n(11),m=n(96),y=n(5),g=n(338),v=n(28),b=n(77),S=n(18),C=n(13),w=n(51),_=n(1),O=n(42),x=n(4),E=n(10),A=n(101),T=n(339),R=n(36),F=n(8),M=n(175),I=n(45),P=n(155),D=n(203),$=n(446),N=n(53),k=n(447),V=n(448),L=n(47),B=n(449),U=function(e){function t(n,i,o,r){void 0===r&&(r=window);var s=e.call(this,n,t.ID)||this;s.element=n,s.options=i,s.analyticsOptions=o,s._window=r,s.isResultsPerPageModifiedByPipeline=!1,s.options=F.ComponentOptions.initComponentOptions(n,t,i),y.Assert.exists(n),y.Assert.exists(s.options),s.root=n,s.setupQueryMode(),s.queryStateModel=new C.QueryStateModel(n),s.componentStateModel=new b.ComponentStateModel(n),s.componentOptionsModel=new v.ComponentOptionsModel(n),s.usageAnalytics=s.initializeAnalytics(),s.queryController=new d.QueryController(n,s.options,s.usageAnalytics,s),s.facetValueStateHandler=new V.FacetValueStateHandler(s),new g.SentryLogger(s.queryController);var a={element:s.element,queryStateModel:s.queryStateModel,queryController:s.queryController,usageAnalytics:s.usageAnalytics};return new D.MissingTermManager(a),s.omniboxAnalytics=new $.OmniboxAnalytics,s.setupEventsHandlers(),s.setupHistoryManager(n,r),s.setupScrollRestorer(n,r,s.queryStateModel),s.element.style.display=n.style.display||"block",s.setupDebugInfo(),s.setupResponsiveComponents(),s.ariaLive=new T.AriaLive(n),s}return i(t,e),Object.defineProperty(t.prototype,"resultsPerPage",{get:function(){return null!=this.queryPipelineConfigurationForResultsPerPage&&0!=this.queryPipelineConfigurationForResultsPerPage?this.queryPipelineConfigurationForResultsPerPage:null!=this.queryController.options.resultsPerPage&&0!=this.queryController.options.resultsPerPage?this.queryController.options.resultsPerPage:(this.logger.warn("Results per page is incoherent in the search interface.",this),10)},set:function(e){this.options.resultsPerPage=this.queryController.options.resultsPerPage=e},enumerable:!0,configurable:!0}),t.prototype.getOmniboxAnalytics=function(){return this.omniboxAnalytics},t.prototype.attachComponent=function(e,t){this.getComponents(e).push(t)},t.prototype.detachComponent=function(e,t){var n=this.getComponents(e),i=u.indexOf(n,t);i>-1&&n.splice(i,1)},t.prototype.getBindings=function(){return{root:this.root,queryStateModel:this.queryStateModel,queryController:this.queryController,searchInterface:this,componentStateModel:this.componentStateModel,componentOptionsModel:this.componentOptionsModel,usageAnalytics:this.usageAnalytics}},t.prototype.getQueryContext=function(){var e,t=this.queryController.getLastQuery();if(t.context)e=t.context;else{var n=this.getComponents("PipelineContext");if(n&&!u.isEmpty(n)){var i=u.chain(n).map(function(e){return e.getContext()}).reduce(function(e,t){return o({},e,t)},{}).value();u.isEmpty(i)||(e=i)}}return e},t.prototype.getComponents=function(e){return null==this.attachedComponents&&(this.attachedComponents={}),e in this.attachedComponents||(this.attachedComponents[e]=[]),this.attachedComponents[e]},t.prototype.detachComponentsInside=function(e){var t=this;u.each(this.attachedComponents,function(n,i){n.filter(function(t){return e!=t.element&&e.contains(t.element)}).forEach(function(e){return t.detachComponent(i,e)})})},t.prototype.initializeAnalytics=function(){var e=R.BaseComponent.getComponentRef("Analytics");return e?e.create(this.element,this.analyticsOptions,this.getBindings()):new A.NoopAnalyticsClient},t.prototype.setupHistoryManager=function(e,t){var n=this;return this.options.enableHistory?this.options.useLocalStorageForHistory?void(this.historyManager=new c.LocalStorageHistoryController(e,t,this.queryStateModel,this.queryController)):void(this.historyManager=new l.HistoryController(e,t,this.queryStateModel,this.queryController)):(this.historyManager=new p.NoopHistoryController,void _.$$(this.element).on(h.InitializationEvents.restoreHistoryState,function(){return n.queryStateModel.setMultiple(o({},n.queryStateModel.defaultAttributes))}))},t.prototype.setupQueryMode=function(){this.options.allowQueriesWithoutKeywords?this.initializeEmptyQueryAllowed():this.initializeEmptyQueryNotAllowed()},t.prototype.setupEventsHandlers=function(){var e=this,t=this.queryStateModel.getEventName(S.Model.eventTypes.preprocess);_.$$(this.element).on(t,function(t,n){return e.handlePreprocessQueryStateModel(n)}),_.$$(this.element).on(f.QueryEvents.buildingQuery,function(t,n){return e.handleBuildingQuery(n)}),_.$$(this.element).on(f.QueryEvents.querySuccess,function(t,n){return e.handleQuerySuccess(n)}),_.$$(this.element).on(f.QueryEvents.queryError,function(t,n){return e.handleQueryError(n)}),_.$$(this.element).on(h.InitializationEvents.afterComponentsInitialization,function(){return e.handleAfterComponentsInitialization()});var n=this.queryStateModel.getEventName(S.Model.eventTypes.changeOne+C.QueryStateModel.attributesEnum.debug);_.$$(this.element).on(n,function(t,n){return e.handleDebugModeChange(n)}),this.queryStateModel.registerNewAttribute(C.QueryStateModel.attributesEnum.fv,{});var i=this.queryStateModel.getEventName(S.Model.eventTypes.changeOne+C.QueryStateModel.attributesEnum.quickview);_.$$(this.element).on(i,function(t,n){return e.handleQuickviewChanged(n)})},t.prototype.setupDebugInfo=function(){var e=this;this.options.enableDebugInfo&&setTimeout(function(){return new P.Debug(e.element,e.getBindings())})},t.prototype.setupScrollRestorer=function(e,t,n){this.options.enableScrollRestoration&&(this.scrollRestorer=new B.ScrollRestorer(e,n))},t.prototype.setupResponsiveComponents=function(){this.responsiveComponents=new N.ResponsiveComponents,this.responsiveComponents.setMediumScreenWidth(this.options.responsiveMediumBreakpoint),this.responsiveComponents.setSmallScreenWidth(this.options.responsiveSmallBreakpoint),this.responsiveComponents.setResponsiveMode(this.options.responsiveMode)},t.prototype.handleDebugModeChange=function(e){var t=this;e.value&&!this.relevanceInspector&&this.options.enableDebugInfo&&n.e(0).then(function(){var e=n(232),i=e.RelevanceInspector,o=_.$$("btn");_.$$(t.element).prepend(o.el),t.relevanceInspector=new i(o.el,t.getBindings())}.bind(null,n)).catch(null)},t.prototype.handlePreprocessQueryStateModel=function(e){var t=this.queryStateModel.get(C.QueryStateModel.attributesEnum.tg),n=this.queryStateModel.get(C.QueryStateModel.attributesEnum.t),i=t,o=n;e&&void 0!==e.tg&&(e.tg=this.getTabGroupId(e.tg),i!=e.tg&&(e.t=e.t||C.QueryStateModel.defaultAttributes.t,e.sort=e.sort||C.QueryStateModel.defaultAttributes.sort,i=e.tg)),e&&void 0!==e.t&&(e.t=this.getTabId(i,e.t),o!=e.t&&(e.sort=e.sort||C.QueryStateModel.defaultAttributes.sort,o=e.t)),e&&void 0!==e.sort&&(e.sort=this.getSort(o,e.sort)),e&&void 0!==e.quickview&&(e.quickview=this.getQuickview(e.quickview)),!e||!e.fv||this instanceof Q||this.facetValueStateHandler.handleFacetValueState(e)},t.prototype.getTabGroupId=function(e){var t=R.BaseComponent.getComponentRef("TabGroup");if(t){var n=this.getComponents(t.ID);if(e!=C.QueryStateModel.defaultAttributes.tg&&u.any(n,function(t){return!t.disabled&&e==t.options.id}))return e;if(n.length>0)return n[0].options.id}return C.QueryStateModel.defaultAttributes.tg},t.prototype.getTabId=function(e,t){var n=R.BaseComponent.getComponentRef("Tab"),i=R.BaseComponent.getComponentRef("TabGroup");if(n){var o=this.getComponents(n.ID);if(i&&e!=C.QueryStateModel.defaultAttributes.tg){var r=this.getComponents(i.ID),s=u.find(r,function(t){return e==t.options.id});if(t!=C.QueryStateModel.defaultAttributes.t&&u.any(o,function(e){return t==e.options.id&&s.isElementIncludedInTabGroup(e.element)}))return t;var a=u.find(o,function(e){return s.isElementIncludedInTabGroup(e.element)});return null!=a?a.options.id:C.QueryStateModel.defaultAttributes.t}if(t!=C.QueryStateModel.defaultAttributes.t&&u.any(o,function(e){return t==e.options.id}))return t;if(o.length>0)return o[0].options.id}return C.QueryStateModel.defaultAttributes.t},t.prototype.getSort=function(e,t){var n=R.BaseComponent.getComponentRef("Sort");if(n){var i=this.getComponents(n.ID),o=R.BaseComponent.getComponentRef("Tab");if(o&&e!=C.QueryStateModel.defaultAttributes.t){var r=this.getComponents(o.ID),s=u.find(r,function(t){return e==t.options.id}),a=s.options.sort;if(t!=C.QueryStateModel.defaultAttributes.sort&&u.any(i,function(e){return s.isElementIncludedInTab(e.element)&&e.match(t)}))return t;if(null!=a)return a.toString();var l=u.find(i,function(e){return s.isElementIncludedInTab(e.element)});return null!=l?l.options.sortCriteria[0].toString():C.QueryStateModel.defaultAttributes.sort}if(t!=C.QueryStateModel.defaultAttributes.sort&&u.any(i,function(e){return e.match(t)}))return t;if(i.length>0)return i[0].options.sortCriteria[0].toString()}return C.QueryStateModel.defaultAttributes.sort},t.prototype.getQuickview=function(e){var t=R.BaseComponent.getComponentRef("Quickview");if(t){var n=this.getComponents(t.ID);if(u.any(n,function(t){return t.getHashId()==e}))return e}return C.QueryStateModel.defaultAttributes.quickview},t.prototype.handleQuickviewChanged=function(e){var t=R.BaseComponent.getComponentRef("Quickview");if(t){var n=this.getComponents(t.ID);if(""!=e.value){var i=u.partition(n,function(t){return t.getHashId()==e.value});0!=i[0].length&&(u.first(i[0]).open(),u.each(u.tail(i[0]),function(e){return e.close()})),u.each(i[1],function(e){return e.close()})}else u.each(n,function(e){e.close()})}},t.prototype.handleBuildingQuery=function(e){this.options.enableDuplicateFiltering&&(e.queryBuilder.enableDuplicateFiltering=!0),x.Utils.isNullOrUndefined(this.options.pipeline)||(e.queryBuilder.pipeline=this.options.pipeline),x.Utils.isNullOrUndefined(this.options.maximumAge)||(e.queryBuilder.maximumAge=this.options.maximumAge),x.Utils.isNullOrUndefined(this.options.resultsPerPage)||(e.queryBuilder.numberOfResults=this.options.resultsPerPage),x.Utils.isNullOrUndefined(this.options.excerptLength)||(e.queryBuilder.excerptLength=this.options.excerptLength),x.Utils.isNonEmptyString(this.options.expression)&&e.queryBuilder.constantExpression.add(this.options.expression),x.Utils.isNonEmptyString(this.options.filterField)&&(e.queryBuilder.filterField=this.options.filterField),x.Utils.isNonEmptyString(this.options.timezone)&&(e.queryBuilder.timezone=this.options.timezone),e.queryBuilder.enableCollaborativeRating=this.options.enableCollaborativeRating,e.queryBuilder.enableDuplicateFiltering=this.options.enableDuplicateFiltering,e.queryBuilder.allowQueriesWithoutKeywords=this.options.allowQueriesWithoutKeywords;var t=this.queryController.getEndpoint();null!=t&&t.options&&this.queryStateModel.get(C.QueryStateModel.attributesEnum.debug)&&(e.queryBuilder.maximumAge=0,e.queryBuilder.enableDebug=!0,e.queryBuilder.fieldsToExclude=["allmetadatavalues"],e.queryBuilder.fieldsToInclude=null)},t.prototype.handleQuerySuccess=function(e){var t=0==e.results.results.length;this.toggleSectionState("coveo-no-results",t),this.handlePossiblyModifiedNumberOfResultsInQueryPipeline(e);var n=_.$$(this.element).find(".coveo-results-header");n&&_.$$(n).removeClass("coveo-query-error")},t.prototype.handlePossiblyModifiedNumberOfResultsInQueryPipeline=function(e){if(e&&e.query&&e.results){var t=e.query.numberOfResults,n=e.results.results.length,i=e.results.totalCountFiltered-e.query.firstResult===n,o=!i&&e.results.totalCountFiltered>n;t!=n&&o?(this.isResultsPerPageModifiedByPipeline=!0,this.queryPipelineConfigurationForResultsPerPage=n):(this.isResultsPerPageModifiedByPipeline=!1,this.queryPipelineConfigurationForResultsPerPage=null)}},t.prototype.handleQueryError=function(e){this.toggleSectionState("coveo-no-results");var t=_.$$(this.element).find(".coveo-results-header");t&&_.$$(t).addClass("coveo-query-error")},t.prototype.handleAfterComponentsInitialization=function(){var e=this;u.each(this.attachedComponents,function(t){t.forEach(function(t){k.FacetColumnAutoLayoutAdjustment.isAutoLayoutAdjustable(t)&&k.FacetColumnAutoLayoutAdjustment.initializeAutoLayoutAdjustment(e.element,t)})}),this.duplicatesFacets.length&&this.logger.warn("The following facets have duplicate id/field:",this.duplicatesFacets,"Ensure that each facet in your search interface has a unique id.")},Object.defineProperty(t.prototype,"duplicatesFacets",{get:function(){var e=[],t=L.ComponentsTypes.getAllFacetsFromSearchInterface(this);return t.forEach(function(n){t.forEach(function(t){if(n!=t)return n.options.id===t.options.id?void e.push(n):void 0})}),e},enumerable:!0,configurable:!0}),t.prototype.toggleSectionState=function(e,t){var n=this;void 0===t&&(t=!0);var i=_.$$(this.element).find(".coveo-facet-column"),o=_.$$(this.element).find(".coveo-results-column"),r=_.$$(this.element).find(".coveo-results-header"),s=_.$$(this.element).findAll(".coveo-facet-search-results"),a=_.$$(this.element).find(".coveo-recommendation-main-section");i&&_.$$(i).toggleClass(e,t&&!this.queryStateModel.atLeastOneFacetIsActive()),o&&_.$$(o).toggleClass(e,t&&!this.queryStateModel.atLeastOneFacetIsActive()),r&&_.$$(r).toggleClass(e,t&&!this.queryStateModel.atLeastOneFacetIsActive()),a&&_.$$(a).toggleClass(e,t),s&&s.length>0&&u.each(s,function(i){_.$$(i).toggleClass(e,t&&!n.queryStateModel.atLeastOneFacetIsActive())})},t.prototype.initializeEmptyQueryAllowed=function(){new M.InitializationPlaceholder(this.element).withFullInitializationStyling().withAllPlaceholders()},t.prototype.initializeEmptyQueryNotAllowed=function(){var e=this,t=new M.InitializationPlaceholder(this.element).withEventToRemovePlaceholder(f.QueryEvents.newQuery).withFullInitializationStyling().withHiddenRootElement().withPlaceholderForFacets().withPlaceholderForResultList();_.$$(this.root).on(h.InitializationEvents.restoreHistoryState,function(){t.withVisibleRootElement(),""==e.queryStateModel.get("q")&&t.withWaitingForFirstQueryMode()}),_.$$(this.element).on(f.QueryEvents.doneBuildingQuery,function(t,n){if(!n.queryBuilder.containsEndUserKeywords()){var i=e.queryController.getLastQuery().q;x.Utils.isNonEmptyString(i)?(e.queryStateModel.set(C.QUERY_STATE_ATTRIBUTES.Q,i),n.queryBuilder.expression.add(i)):(e.logger.info("Query cancelled by the Search Interface","Configuration does not allow empty query",e,e.options),n.cancel=!0,e.queryStateModel.reset(),new M.InitializationPlaceholder(e.element).withEventToRemovePlaceholder(f.QueryEvents.newQuery).withFullInitializationStyling().withVisibleRootElement().withPlaceholderForFacets().withPlaceholderForResultList().withWaitingForFirstQueryMode())}})},t.ID="SearchInterface",t.options={enableHistory:F.ComponentOptions.buildBooleanOption({defaultValue:!1}),enableAutomaticResponsiveMode:F.ComponentOptions.buildBooleanOption({defaultValue:!0}),useLocalStorageForHistory:F.ComponentOptions.buildBooleanOption({defaultValue:!1}),resultsPerPage:F.ComponentOptions.buildNumberOption({defaultValue:10,min:0}),excerptLength:F.ComponentOptions.buildNumberOption({defaultValue:200,min:0}),expression:F.ComponentOptions.buildQueryExpressionOption({defaultValue:""}),filterField:F.ComponentOptions.buildFieldOption({defaultValue:""}),hideUntilFirstQuery:F.ComponentOptions.buildBooleanOption({deprecated:"Exposed for legacy reasons. The loading animation is now composed of placeholders, and this option is obsolete."}),firstLoadingAnimation:F.ComponentOptions.buildChildHtmlElementOption({deprecated:"Exposed for legacy reasons. The loading animation is now composed of placeholder, and this options is obsolete."}),autoTriggerQuery:F.ComponentOptions.buildBooleanOption({defaultValue:!0}),allowQueriesWithoutKeywords:F.ComponentOptions.buildBooleanOption({defaultValue:!0}),endpoint:F.ComponentOptions.buildCustomOption(function(e){return null!=e&&e in w.SearchEndpoint.endpoints?w.SearchEndpoint.endpoints[e]:null},{defaultFunction:function(){return w.SearchEndpoint.endpoints.default}}),timezone:F.ComponentOptions.buildStringOption({defaultFunction:function(){return a.determine().name()}}),enableDebugInfo:F.ComponentOptions.buildBooleanOption({defaultValue:!0}),enableCollaborativeRating:F.ComponentOptions.buildBooleanOption({defaultValue:!1}),enableDuplicateFiltering:F.ComponentOptions.buildBooleanOption({defaultValue:!1}),pipeline:F.ComponentOptions.buildStringOption(),maximumAge:F.ComponentOptions.buildNumberOption(),searchPageUri:F.ComponentOptions.buildStringOption(),responsiveMediumBreakpoint:F.ComponentOptions.buildNumberOption({defaultValue:N.MEDIUM_SCREEN_WIDTH,depend:"enableAutomaticResponsiveMode"}),responsiveSmallBreakpoint:F.ComponentOptions.buildNumberOption({defaultValue:N.SMALL_SCREEN_WIDTH,depend:"enableAutomaticResponsiveMode"}),responsiveMode:F.ComponentOptions.buildCustomOption(function(e){return"auto"===e||"small"===e||"medium"===e||"large"===e?e:(console.warn(e+" is not a proper value for responsiveMode, auto has been used instead."),"auto")},{defaultValue:"auto"}),enableScrollRestoration:F.ComponentOptions.buildBooleanOption({defaultValue:!1}),modalContainer:F.ComponentOptions.buildSelectorOption({defaultFunction:function(e){return e.ownerDocument.body}})},t.SMALL_INTERFACE_CLASS_NAME="coveo-small-search-interface",t}(I.RootComponent);t.SearchInterface=U;var Q=function(e){function t(n,i,o,r){void 0===r&&(r=window);var s=e.call(this,n,F.ComponentOptions.initComponentOptions(n,t,i),o,r)||this;return s.element=n,s.options=i,s.analyticsOptions=o,s._window=r,_.$$(s.root).on(f.QueryEvents.newQuery,function(e,t){return s.handleRedirect(e,t)}),s}return i(t,e),t.prototype.handleRedirect=function(e,t){if(!1!==t.shouldRedirectStandaloneSearchbox){var n={searchPageUri:this.options.searchPageUri,cancel:!1};_.$$(this.root).trigger(m.StandaloneSearchInterfaceEvents.beforeRedirect,n),n.cancel||(t.cancel=!0,this.searchboxIsEmpty()&&!this.options.redirectIfEmpty||this.doRedirect(n.searchPageUri))}},t.prototype.doRedirect=function(e){return r(this,void 0,void 0,function(){var t,n,i;return s(this,function(o){switch(o.label){case 0:return t=this.encodedHashValues,[4,this.queryController.fetchQueryExecutionPlan()];case 1:return n=o.sent(),(i=n&&n.redirectionURL)?(this.redirectToURL(i),[2]):[2,this.redirectToSearchPage(e,t)]}})})},t.prototype.redirectToURL=function(e){this.usageAnalytics.logCustomEvent(E.analyticsActionCauseList.triggerRedirect,{redirectedTo:e,query:this.queryStateModel.get(C.QueryStateModel.attributesEnum.q)},this.element),this._window.location.assign(e)},t.prototype.redirectToSearchPage=function(e,t){var n=this,i=document.createElement("a");i.href=e,i.href=i.href;var o=0==i.pathname.indexOf("/")?i.pathname:"/"+i.pathname,r=i.hash?i.hash+"&":"#",s=t||this.encodedHashValues;setTimeout(function(){n._window.location.href=i.protocol+"//"+i.host+o+i.search+r+s},0)},Object.defineProperty(t.prototype,"encodedHashValues",{get:function(){var e=o({},this.modelAttributesToIncludeInUrl,this.uaCausedByAttribute,this.uaMetadataAttribute);return O.HashUtils.encodeValues(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"modelAttributesToIncludeInUrl",{get:function(){return this.historyManager instanceof c.LocalStorageHistoryController?{}:this.queryStateModel.getAttributes()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"uaCausedByAttribute",{get:function(){var e=this.uaCausedBy;return e?{firstQueryCause:e}:{}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"uaCausedBy",{get:function(){var e=this.usageAnalytics.getCurrentEventCause();return e===E.analyticsActionCauseList.searchboxSubmit.name?E.analyticsActionCauseList.searchFromLink.name:e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"uaMetadataAttribute",{get:function(){var e=this.usageAnalytics.getCurrentEventMeta();return e&&!u.isEmpty(e)?{firstQueryMeta:e}:{}},enumerable:!0,configurable:!0}),t.prototype.searchboxIsEmpty=function(){return x.Utils.isEmptyString(this.queryStateModel.get(C.QueryStateModel.attributesEnum.q))},t.ID="StandaloneSearchInterface",t.options={redirectIfEmpty:F.ComponentOptions.buildBooleanOption({defaultValue:!0})},t}(U);t.StandaloneSearchInterface=Q},function(e,t,n){"use strict";function i(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),window.Promise instanceof Function||n(297);var o=n(207);t._=o.underscoreInstance,i(n(299)),i(n(62)),i(n(325)),i(n(137)),i(n(327)),i(n(201)),i(n(329)),i(n(455)),i(n(122))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(5),o=n(4),r=n(0),s=function(){function e(){}return e.createGuid=function(){var t,n=!1;if("undefined"!=typeof crypto&&void 0!==crypto.getRandomValues)try{t=e.generateWithCrypto(),n=!0}catch(e){n=!1}return n||(t=e.generateWithRandom()),t},e.generateWithRandom=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)})},e.generateWithCrypto=function(){var e=new Uint16Array(8);crypto.getRandomValues(e);var t=function(e){for(var t=e.toString(16);t.length<4;)t="0"+t;return t};return t(e[0])+t(e[1])+"-"+t(e[2])+"-"+t(e[3])+"-"+t(e[4])+"-"+t(e[5])+t(e[6])+t(e[7])},e.setStateObjectOnQueryResults=function(t,n){e.setPropertyOnResults(n,"state",t)},e.setStateObjectOnQueryResult=function(t,n){e.setPropertyOnResult(n,"state",t)},e.setSearchInterfaceObjectOnQueryResult=function(t,n){e.setPropertyOnResult(n,"searchInterface",t)},e.setIndexAndUidOnQueryResults=function(t,n,o,r,s){i.Assert.exists(t),i.Assert.exists(n);var a=t.firstResult;e.setPropertyOnResults(n,"queryUid",o),e.setPropertyOnResults(n,"pipeline",r),e.setPropertyOnResults(n,"splitTestRun",s),e.setPropertyOnResults(n,"index",a,function(){return++a})},e.setTermsToHighlightOnQueryResults=function(t,n){e.setPropertyOnResults(n,"termsToHighlight",n.termsToHighlight),e.setPropertyOnResults(n,"phrasesToHighlight",n.phrasesToHighlight)},e.splitFlags=function(e,t){return void 0===t&&(t=";"),i.Assert.exists(e),e.split(t)},e.isAttachment=function(t){return r.contains(e.splitFlags(t.flags),"IsAttachment")},e.containsAttachment=function(t){return r.contains(e.splitFlags(t.flags),"ContainsAttachment")},e.hasHTMLVersion=function(t){return r.contains(e.splitFlags(t.flags),"HasHtmlVersion")},e.hasThumbnail=function(t){return r.contains(e.splitFlags(t.flags),"HasThumbnail")},e.hasExcerpt=function(e){return void 0!=e.excerpt&&""!=e.excerpt},e.getAuthor=function(e){return e.raw.author},e.getUriHash=function(e){return e.raw.urihash},e.getObjectType=function(e){return e.raw.objecttype},e.getCollection=function(e){return e.raw.collection||"default"},e.getSource=function(e){return e.raw.source},e.getLanguage=function(e){return e.raw.language},e.getPermanentId=function(e){var t,n,i=o.Utils.getFieldValue(e,"permanentid");return i?(n="permanentid",t=i):(n="urihash",t=o.Utils.getFieldValue(e,"urihash")),{fieldValue:t,fieldUsed:n}},e.quoteAndEscapeIfNeeded=function(t){return i.Assert.isString(t),e.isAtomicString(t)||e.isRangeString(t)||e.isRangeWithoutOuterBoundsString(t)?t:e.quoteAndEscape(t)},e.quoteAndEscape=function(t){return i.Assert.isString(t),'"'+e.escapeString(t)+'"'},e.escapeString=function(e){return i.Assert.isString(e),e.replace(/"/g," ")},e.isAtomicString=function(e){return i.Assert.isString(e),/^\d+(\.\d+)?$|^[\d\w]+$/.test(e)},e.isRangeString=function(e){return i.Assert.isString(e),/^\d+(\.\d+)?\.\.\d+(\.\d+)?$|^\d{4}\/\d{2}\/\d{2}@\d{2}:\d{2}:\d{2}\.\.\d{4}\/\d{2}\/\d{2}@\d{2}:\d{2}:\d{2}$/.test(e)},e.isRangeWithoutOuterBoundsString=function(e){return i.Assert.isString(e),/^\d+(\.\d+)?$|^\d{4}\/\d{2}\/\d{2}@\d{2}:\d{2}:\d{2}$/.test(e)},e.buildFieldExpression=function(t,n,o){return i.Assert.isNonEmptyString(t),i.Assert.stringStartsWith(t,"@"),i.Assert.isNonEmptyString(n),i.Assert.isLargerOrEqualsThan(1,o.length),1==o.length?t+n+e.quoteAndEscapeIfNeeded(o[0]):t+n+"("+r.map(o,function(t){return e.quoteAndEscapeIfNeeded(t)}).join(",")+")"},e.buildFieldNotEqualExpression=function(t,n){i.Assert.isNonEmptyString(t),i.Assert.stringStartsWith(t,"@"),i.Assert.isLargerOrEqualsThan(1,n.length);return"(NOT "+(1==n.length?t+"=="+e.quoteAndEscapeIfNeeded(n[0]):t+"==("+r.map(n,function(t){return e.quoteAndEscapeIfNeeded(t)}).join(",")+")")+")"},e.setPropertyOnResults=function(t,n,i,o){r.each(t.results,function(t){e.setPropertyOnResult(t,n,i),i=o?o():i})},e.setPropertyOnResult=function(e,t,n){e[t]=n,r.each(e.childResults,function(e){e[t]=n}),o.Utils.isNullOrUndefined(e.parentResult)||(e.parentResult[t]=n)},e.isStratusAgnosticField=function(e,t){var n=/^(@?)(sys)?(.*)/i,i=n.exec(e),o=n.exec(t);return!(!i||!o)&&(i[1]+i[3]).toLowerCase()==(o[1]+o[3]).toLowerCase()},e}();t.QueryUtils=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(5),o=n(1),r=n(9),s=n(385),a=n(0),u=function(){function e(){}return e.javascriptEncode=function(e){return i.Assert.isString(e),e=e.replace(/\\/g,"\\\\"),e=e.replace(/'/g,"\\'"),e=e.replace(/"/g,'\\"')},e.htmlEncode=function(e){i.Assert.isString(e);var t=o.$$("div");return t.text(e),t.el.innerHTML},e.splice=function(e,t,n,i){return e.slice(0,t)+i+e.slice(t+Math.abs(n))},e.removeMiddle=function(t,n,i){if(t.length<n)return t;var o=t.length-n,r=Math.floor(n/2);return e.splice(t,r,o,i)},e.regexEncode=function(e){return i.Assert.isString(e),e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},e.stringToRegex=function(t,n){void 0===n&&(n=!1),i.Assert.isString(t);var o=e.regexEncode(t);return n?a.map(o,function(t){var n=a.find(e.accented,function(e){return null!=t.match(e)});return n?n.source:t}).join(""):o},e.wildcardsToRegex=function(t,n){void 0===n&&(n=!1),i.Assert.isString(t);var o=e.stringToRegex(t,n);return o=o.replace(/\\\*/,".*"),o=o.replace(/\\\?/,".")},e.getHighlights=function(e,t,n){for(var i,o=[];i=t.exec(e);){var r=i[2],s=i[1],u=i.index+s.length;if(o.push({offset:u,length:r.length,dataHighlightGroupTerm:n}),!t.global)break}return a.isEmpty(o)?void 0:o},e.encodeCarriageReturn=function(e){return i.Assert.isString(e),e.replace(/\n/g,"<br/>")},e.equalsCaseInsensitive=function(e,t){return e.toLowerCase()==t.toLowerCase()},e.match=function(e,t){for(var n,i=[];null!==(n=t.exec(e));)i.push(n);return i},e.hashCode=function(e){for(var t=0,n=e.length,i=0;i<n;i++){t=(t<<5)-t+e.charCodeAt(i),t&=t}return t.toString(16)},e.latinize=function(e){return s.latinize(e)},e.capitalizeFirstLetter=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},e.buildStringTemplateFromResult=function(t,n){var i=this;return t?t.replace(/\$\{(.*?)\}/g,function(t){var o=t.substring(2,t.length-1),s=e.readFromObject(n,o);return s||(s=e.readFromObject(window,o)),s||new r.Logger(i).warn(o+" used in the ResultLink template is undefined for this result: "+n.title),s||t}):""},e.readFromObject=function(e,t){var n=t.indexOf(".");if(e&&-1!==n){var i=t.substring(n+1);return t=t.substring(0,n),this.readFromObject(e[t],i)}return e?e[t]:void 0},e.accented={A:/[Aa\xaa\xc0-\xc5\xe0-\xe5\u0100-\u0105\u01cd\u01ce\u0200-\u0203\u0226\u0227\u1d2c\u1d43\u1e00\u1e01\u1e9a\u1ea0-\u1ea3\u2090\u2100\u2101\u213b\u249c\u24b6\u24d0\u3371-\u3374\u3380-\u3384\u3388\u3389\u33a9-\u33af\u33c2\u33ca\u33df\u33ff\uff21\uff41]/g,B:/[Bb\u1d2e\u1d47\u1e02-\u1e07\u212c\u249d\u24b7\u24d1\u3374\u3385-\u3387\u33c3\u33c8\u33d4\u33dd\uff22\uff42]/g,C:/[Cc\xc7\xe7\u0106-\u010d\u1d9c\u2100\u2102\u2103\u2105\u2106\u212d\u216d\u217d\u249e\u24b8\u24d2\u3376\u3388\u3389\u339d\u33a0\u33a4\u33c4-\u33c7\uff23\uff43]/g,D:/[Dd\u010e\u010f\u01c4-\u01c6\u01f1-\u01f3\u1d30\u1d48\u1e0a-\u1e13\u2145\u2146\u216e\u217e\u249f\u24b9\u24d3\u32cf\u3372\u3377-\u3379\u3397\u33ad-\u33af\u33c5\u33c8\uff24\uff44]/g,E:/[Ee\xc8-\xcb\xe8-\xeb\u0112-\u011b\u0204-\u0207\u0228\u0229\u1d31\u1d49\u1e18-\u1e1b\u1eb8-\u1ebd\u2091\u2121\u212f\u2130\u2147\u24a0\u24ba\u24d4\u3250\u32cd\u32ce\uff25\uff45]/g,F:/[Ff\u1da0\u1e1e\u1e1f\u2109\u2131\u213b\u24a1\u24bb\u24d5\u338a-\u338c\u3399\ufb00-\ufb04\uff26\uff46]/g,G:/[Gg\u011c-\u0123\u01e6\u01e7\u01f4\u01f5\u1d33\u1d4d\u1e20\u1e21\u210a\u24a2\u24bc\u24d6\u32cc\u32cd\u3387\u338d-\u338f\u3393\u33ac\u33c6\u33c9\u33d2\u33ff\uff27\uff47]/g,H:/[Hh\u0124\u0125\u021e\u021f\u02b0\u1d34\u1e22-\u1e2b\u1e96\u210b-\u210e\u24a3\u24bd\u24d7\u32cc\u3371\u3390-\u3394\u33ca\u33cb\u33d7\uff28\uff48]/g,I:/[Ii\xcc-\xcf\xec-\xef\u0128-\u0130\u0132\u0133\u01cf\u01d0\u0208-\u020b\u1d35\u1d62\u1e2c\u1e2d\u1ec8-\u1ecb\u2071\u2110\u2111\u2139\u2148\u2160-\u2163\u2165-\u2168\u216a\u216b\u2170-\u2173\u2175-\u2178\u217a\u217b\u24a4\u24be\u24d8\u337a\u33cc\u33d5\ufb01\ufb03\uff29\uff49]/g,J:/[Jj\u0132-\u0135\u01c7-\u01cc\u01f0\u02b2\u1d36\u2149\u24a5\u24bf\u24d9\u2c7c\uff2a\uff4a]/g,K:/[Kk\u0136\u0137\u01e8\u01e9\u1d37\u1d4f\u1e30-\u1e35\u212a\u24a6\u24c0\u24da\u3384\u3385\u3389\u338f\u3391\u3398\u339e\u33a2\u33a6\u33aa\u33b8\u33be\u33c0\u33c6\u33cd-\u33cf\uff2b\uff4b]/g,L:/[Ll\u0139-\u0140\u01c7-\u01c9\u02e1\u1d38\u1e36\u1e37\u1e3a-\u1e3d\u2112\u2113\u2121\u216c\u217c\u24a7\u24c1\u24db\u32cf\u3388\u3389\u33d0-\u33d3\u33d5\u33d6\u33ff\ufb02\ufb04\uff2c\uff4c]/g,M:/[Mm\u1d39\u1d50\u1e3e-\u1e43\u2120\u2122\u2133\u216f\u217f\u24a8\u24c2\u24dc\u3377-\u3379\u3383\u3386\u338e\u3392\u3396\u3399-\u33a8\u33ab\u33b3\u33b7\u33b9\u33bd\u33bf\u33c1\u33c2\u33ce\u33d0\u33d4-\u33d6\u33d8\u33d9\u33de\u33df\uff2d\uff4d]/g,N:/[Nn\xd1\xf1\u0143-\u0149\u01ca-\u01cc\u01f8\u01f9\u1d3a\u1e44-\u1e4b\u207f\u2115\u2116\u24a9\u24c3\u24dd\u3381\u338b\u339a\u33b1\u33b5\u33bb\u33cc\u33d1\uff2e\uff4e]/g,O:/[Oo\xba\xd2-\xd6\xf2-\xf6\u014c-\u0151\u01a0\u01a1\u01d1\u01d2\u01ea\u01eb\u020c-\u020f\u022e\u022f\u1d3c\u1d52\u1ecc-\u1ecf\u2092\u2105\u2116\u2134\u24aa\u24c4\u24de\u3375\u33c7\u33d2\u33d6\uff2f\uff4f]/g,P:/[Pp\u1d3e\u1d56\u1e54-\u1e57\u2119\u24ab\u24c5\u24df\u3250\u3371\u3376\u3380\u338a\u33a9-\u33ac\u33b0\u33b4\u33ba\u33cb\u33d7-\u33da\uff30\uff50]/g,Q:/[Qq\u211a\u24ac\u24c6\u24e0\u33c3\uff31\uff51]/g,R:/[Rr\u0154-\u0159\u0210-\u0213\u02b3\u1d3f\u1d63\u1e58-\u1e5b\u1e5e\u1e5f\u20a8\u211b-\u211d\u24ad\u24c7\u24e1\u32cd\u3374\u33ad-\u33af\u33da\u33db\uff32\uff52]/g,S:/[Ss\u015a-\u0161\u017f\u0218\u0219\u02e2\u1e60-\u1e63\u20a8\u2101\u2120\u24ae\u24c8\u24e2\u33a7\u33a8\u33ae-\u33b3\u33db\u33dc\ufb06\uff33\uff53]/g,T:/[Tt\u0162-\u0165\u021a\u021b\u1d40\u1d57\u1e6a-\u1e71\u1e97\u2121\u2122\u24af\u24c9\u24e3\u3250\u32cf\u3394\u33cf\ufb05\ufb06\uff34\uff54]/g,U:/[Uu\xd9-\xdc\xf9-\xfc\u0168-\u0173\u01af\u01b0\u01d3\u01d4\u0214-\u0217\u1d41\u1d58\u1d64\u1e72-\u1e77\u1ee4-\u1ee7\u2106\u24b0\u24ca\u24e4\u3373\u337a\uff35\uff55]/g,V:/[Vv\u1d5b\u1d65\u1e7c-\u1e7f\u2163-\u2167\u2173-\u2177\u24b1\u24cb\u24e5\u2c7d\u32ce\u3375\u33b4-\u33b9\u33dc\u33de\uff36\uff56]/g,W:/[Ww\u0174\u0175\u02b7\u1d42\u1e80-\u1e89\u1e98\u24b2\u24cc\u24e6\u33ba-\u33bf\u33dd\uff37\uff57]/g,X:/[Xx\u02e3\u1e8a-\u1e8d\u2093\u213b\u2168-\u216b\u2178-\u217b\u24b3\u24cd\u24e7\u33d3\uff38\uff58]/g,Y:/[Yy\xdd\xfd\xff\u0176-\u0178\u0232\u0233\u02b8\u1e8e\u1e8f\u1e99\u1ef2-\u1ef9\u24b4\u24ce\u24e8\u33c9\uff39\uff59]/g,Z:/[Zz\u0179-\u017e\u01f1-\u01f3\u1dbb\u1e90-\u1e95\u2124\u2128\u24b5\u24cf\u24e9\u3390-\u3394\uff3a\uff5a]/g},e}();t.StringUtils=u},function(e,t,n){(function(t){e.exports=t.Globalize=n(324)}).call(t,n(74))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(53),o=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),r=function(){function e(){}return e.getDeviceName=function(e){return void 0===e&&(e=navigator.userAgent),e.match(/Edge/i)?"Edge":e.match(/Opera Mini/i)?"Opera Mini":e.match(/Android/i)?"Android":e.match(/BlackBerry/i)?"BlackBerry":e.match(/iPhone/i)?"iPhone":e.match(/iPad/i)||this.isSafariIPadOS(e)?"iPad":e.match(/iPod/i)?"iPod":e.match(/Chrome/i)?"Chrome":e.match(/MSIE/i)||e.match(/Trident/i)?"IE":e.match(/Opera/i)?"Opera":e.match(/Firefox/i)?"Firefox":e.match(/Safari/i)?"Safari":"Others"},e.isAndroid=function(){return"Android"==e.getDeviceName()},e.isIos=function(){var t=e.getDeviceName();return"iPhone"==t||"iPad"==t||"iPod"==t},e.isMobileDevice=function(){return!!this.isSafariIPadOS()||o},e.isSafariIPadOS=function(e){return void 0===e&&(e=navigator.userAgent),e.match(/Macintosh/i)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>2},e.isSmallScreenWidth=function(){return(new i.ResponsiveComponents).isSmallScreenWidth()},e}();t.DeviceUtils=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,o=n(4),r=n(0);!function(e){e[e.BACKSPACE=8]="BACKSPACE",e[e.TAB=9]="TAB",e[e.ENTER=13]="ENTER",e[e.SHIFT=16]="SHIFT",e[e.CTRL=17]="CTRL",e[e.ALT=18]="ALT",e[e.ESCAPE=27]="ESCAPE",e[e.SPACEBAR=32]="SPACEBAR",e[e.PAGE_UP=33]="PAGE_UP",e[e.PAGE_DOWN=34]="PAGE_DOWN",e[e.END=35]="END",e[e.HOME=36]="HOME",e[e.LEFT_ARROW=37]="LEFT_ARROW",e[e.UP_ARROW=38]="UP_ARROW",e[e.RIGHT_ARROW=39]="RIGHT_ARROW",e[e.DOWN_ARROW=40]="DOWN_ARROW",e[e.INSERT=45]="INSERT",e[e.DELETE=46]="DELETE"}(i=t.KEYBOARD||(t.KEYBOARD={}));var s=function(){function e(){}return e.keysEqual=function(e,t){return o.Utils.isNullOrUndefined(e.keyCode)?!o.Utils.isNullOrUndefined(e.which)&&e.which==t:e.keyCode==t},e.isAllowedKeyForOmnibox=function(t){var n=t.keyCode;return e.isNumberKeyPushed(n)||32==n||13==n||e.isLetterKeyPushed(n)||n>95&&n<112||n>185&&n<193||n>218&&n<223||n==i.BACKSPACE||n==i.DELETE||e.isArrowKeyPushed(n)},e.isAllowedKeyForSearchAsYouType=function(t){return e.isAllowedKeyForOmnibox(t)&&!e.isArrowKeyPushed(t.keyCode)},e.isDeleteOrBackspace=function(t){return e.keysEqual(t,i.BACKSPACE)||e.keysEqual(t,i.DELETE)},e.isArrowKeyPushed=function(e){return e==i.LEFT_ARROW||e==i.UP_ARROW||e==i.RIGHT_ARROW||e==i.DOWN_ARROW},e.isNumberKeyPushed=function(e){return e>47&&e<58},e.isLetterKeyPushed=function(e){return e>64&&e<91},e.keypressAction=function(e,t){return function(n){for(var i=[],o=1;o<arguments.length;o++)i[o-1]=arguments[o];if(n){var s=n.charCode||n.keyCode;s&&(r.isArray(e)&&r.contains(e,s)?t(n):s===e&&t(n))}}},e}();t.KeyboardUtils=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ModalBox=n(322),t.LocaleString=n(323)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(9),o=n(1),r=n(153),s=n(132),a=n(53),u=n(0),l=n(2),c=n(4),p=function(){function e(){this.currentLayout=null,this.checkCondition=!0,this.wrapInDiv=!0,this.responsiveComponents=new a.ResponsiveComponents}return e.prototype.get=function(){return{currentLayout:this.currentLayout,checkCondition:this.checkCondition,wrapInDiv:this.wrapInDiv,responsiveComponents:this.responsiveComponents}},e.prototype.merge=function(e){return e?u.extend(this.get(),e):this.get()},e}();t.DefaultInstantiateTemplateOptions=p;var d=function(){function e(e){this.dataToString=e,this.logger=new i.Logger(this),this.fields=[]}return e.prototype.instantiateToString=function(e,t){if(void 0===t&&(t=new p),this.dataToString){if(!1===t.checkCondition)return this.dataToString(e);if(null==t.responsiveComponents&&(t.responsiveComponents=new a.ResponsiveComponents),!0===this.mobile&&!t.responsiveComponents.isSmallScreenWidth())return this.logger.trace("Template was skipped because it is optimized for small screen width",this),null;if(!1===this.mobile&&t.responsiveComponents.isSmallScreenWidth())return this.logger.trace("Template was skipped because it is not optimized for small screen width",this),null;if(!0===this.tablet&&!t.responsiveComponents.isMediumScreenWidth())return this.logger.trace("Template was skipped because it is optimized for medium screen width",this),null;if(!1===this.tablet&&t.responsiveComponents.isMediumScreenWidth())return this.logger.trace("Template was skipped because it is not optimized for medium screen width",this),null;if(!0===this.desktop&&!t.responsiveComponents.isLargeScreenWidth())return this.logger.trace("Template was skipped because it is optimized for large screen width",this),null;if(!1===this.desktop&&t.responsiveComponents.isLargeScreenWidth())return this.logger.trace("Template was skipped because it is not optimized for large screen width",this),null;if(null!=this.layout&&null!=t.currentLayout&&t.currentLayout!==this.layout)return this.logger.trace("Template was skipped because layout does not match",this,this.layout),null;try{if(this.logger.trace("Evaluating template ..."),null!=this.condition&&this.condition(e))return this.logger.trace("Template was loaded because condition was :",this.condition,e),this.dataToString(e);if(null!=this.conditionToParse&&r.TemplateConditionEvaluator.evaluateCondition(this.conditionToParse,e,t.responsiveComponents))return this.logger.trace("Template was loaded because condition was :",this.conditionToParse,e),this.dataToString(e);if(null!=this.fieldsToMatch&&s.TemplateFieldsEvaluator.evaluateFieldsToMatch(this.fieldsToMatch,e))return this.logger.trace("Template was loaded because condition was :",this.fieldsToMatch,e),this.dataToString(e);if(null==this.condition&&null==this.conditionToParse&&null==this.fieldsToMatch)return this.logger.trace("Template was loaded because there was *NO* condition",this.condition,e),this.dataToString(e)}catch(e){return new i.Logger(this).error("Cannot instantiate template",e.message,this.getTemplateInfo()),new i.Logger(this).warn("A default template was used"),null}}return this.logger.trace("Template was skipped because it did not match any condition",this),null},e.prototype.addField=function(e){u.contains(this.fields,e)||this.fields.push(e)},e.prototype.addFields=function(e){c.Utils.isNonEmptyArray(e)&&(this.fields=c.Utils.concatWithoutDuplicate(this.fields,e))},e.prototype.getComponentsInside=function(e){var t=u.map(l.Initialization.getListOfRegisteredComponents(),function(t){return new RegExp("Coveo"+t,"g").exec(e)?t:null});return u.compact(t)},e.prototype.instantiateToElement=function(e,t){var n=this;void 0===t&&(t={});var i=(new p).merge(t),o=this.instantiateToString(e,i);return null==o?null:this.ensureComponentsInHtmlStringHaveLoaded(o).then(function(){var t=n.buildTemplate(o,i);return n.logger.trace("Instantiated result template",e,t),t})},e.prototype.toHtmlElement=function(){return null},e.prototype.getFields=function(){return this.fields},e.prototype.getType=function(){return"Template"},e.prototype.setConditionWithFallback=function(e){try{this.condition=new Function("obj","with(obj||{}){return "+e+"}")}catch(t){this.conditionToParse=e}},e.prototype.getTemplateInfo=function(){return void 0!=this.conditionToParse?this.conditionToParse:void 0!=this.condition?this.condition:this.fieldsToMatch},e.prototype.ensureComponentsInHtmlStringHaveLoaded=function(e){var t=this.getComponentsInside(e).map(function(e){return l.LazyInitialization.getLazyRegisteredComponent(e)});return Promise.all(t)},e.prototype.buildTemplate=function(e,t){var n=this.layout||t.currentLayout,i="table"===n?"tr":"div",r=o.$$(i,{},e).el;return t.wrapInDiv||1!==r.children.length||(r=r.children.item(0)),n&&o.$$(r).addClass("coveo-"+n+"-layout"),r.template=this,r},e}();t.Template=d},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=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])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n(18),r=n(0);t.COMPONENT_OPTIONS_ATTRIBUTES={RESULT_LINK:"resultLink",SEARCH_HUB:"searchHub",SEARCH_BOX:"searchBox"};var s=function(e){function t(n,i){var o=r.extend({},t.defaultAttributes,i);return e.call(this,n,t.ID,o)||this}return i(t,e),t.ID="ComponentOptions",t.defaultAttributes={resultLink:void 0,searchHub:void 0,searchBox:void 0},t.attributesEnum={resultLink:"resultLink",searchHub:"searchHub",searchBox:"searchBox"},t}(o.Model);t.ComponentOptionsModel=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){}return e.newResultsDisplayed="newResultsDisplayed",e.newResultDisplayed="newResultDisplayed",e.openQuickview="openQuickview",e.changeLayout="changeLayout",e}();t.ResultListEvents=i},function(e,t,n){"use strict";function i(e,t){return void 0===t&&(t={}),T.Initialization.initializeFramework(e,t,function(){return T.Initialization.initSearchInterface(e,t)})}function o(e,t,n){void 0===n&&(n={}),R.Assert.isNonEmptyString(t);var i={};return i.searchPageUri=t,i.autoTriggerQuery=!1,i.enableHistory=!1,i=A({},i,n.StandaloneSearchInterface),n=N.extend({},n,{StandaloneSearchInterface:i}),T.Initialization.initializeFramework(e,n,function(){return T.Initialization.initStandaloneSearchInterface(e,n)})}function r(e,t,n,i){void 0===i&&(i={});var o={};return o.mainSearchInterface=t,o.userContext=n,o.enableHistory=!1,i=N.extend({},i,{Recommendation:o}),null!=window.Coveo.Recommendation&&(T.LazyInitialization.registerLazyComponent("Recommendation",function(){return Promise.resolve(window.Coveo.Recommendation)}),T.EagerInitialization.eagerlyLoadedComponents.Recommendation=window.Coveo.Recommendation),T.LazyInitialization.getLazyRegisteredComponent("Recommendation").then(function(){return T.Initialization.initializeFramework(e,i,function(){return T.Initialization.initRecommendationInterface(e,i)})})}function s(e){R.Assert.exists(e);var t=D.Component.resolveBinding(e,F.QueryController);return R.Assert.exists(t),t.executeQuery()}function a(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];R.Assert.exists(e);var i=D.Component.resolveBinding(e,M.QueryStateModel);return M.setState(i,t)}function u(e,t,n){return R.Assert.exists(e),D.Component.get(e,t,n)}function l(e,t){return R.Assert.exists(e),D.Component.getResult(e,t)}function c(e){var t=p(e);return t?t.client:void 0}function p(e){var t=e.classList.contains(D.Component.computeCssClassNameForType("Analytics"))?e:P.$$(e).find(D.Component.computeSelectorForType("Analytics"));return t?D.Component.resolveBinding(t,L.Analytics):void 0}function d(e,t,n,i){var o=c(e);o&&o.logCustomEvent(t,n,e,i)}function h(e,t,n){var i=c(e);i&&i.logSearchEvent(t,n)}function f(e,t,n){var i=c(e);i&&i.logSearchAsYouType(t,n)}function m(e,t,n,i){var o=c(e);o&&o.logClickEvent(t,n,i,e)}function y(e,t){void 0===t&&(t={}),T.Initialization.registerDefaultOptions(e,t)}function g(e,t,n){T.Initialization.monkeyPatchComponentMethod(t,e,n)}function v(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var i,o,r={};0==t.length?(i="Standard",o=!1):1==t.length?"string"==typeof t[0]?(i=t[0],o=!0):"object"==typeof t[0]?(i="Standard",o=!1,r=t[0]):R.Assert.fail("Invalid parameters to init a box"):2==t.length&&(i=t[0],r=t[1],o=!0);var s={};s[i||"Container"]=N.extend({},r.SearchInterface,r[i]),r=N.extend({},r,s),T.Initialization.initializeFramework(e,r,function(){return T.Initialization.initBoxInterface(e,r,i,o)})}function b(e){P.$$(e).trigger(I.InitializationEvents.nuke)}function S(e){k.PublicPathUtils.configureResourceRoot(e)}function C(e){void 0===e&&(e=document.querySelector(D.Component.computeSelectorForType($.SearchInterface.ID)));var t=p(e);if(!t)return U.warn("Could not enable analytics because no Analytics component could be found in the specified searchRoot.");t.enable()}function w(e){void 0===e&&(e=document.querySelector(D.Component.computeSelectorForType($.SearchInterface.ID)));var t=p(e);if(!t)return U.warn("Could not clear local data because no Analytics component could be found in the specified searchRoot.");t.clearLocalData()}function _(e){void 0===e&&(e=document.querySelector(D.Component.computeSelectorForType($.SearchInterface.ID)));var t=p(e);if(!t)return U.warn("Could not disable analytics because no Analytics component could be found in the specified searchRoot.");t.disable()}function O(e){B.AnalyticsUtils.addActionCauseToList(e)}function x(e){B.AnalyticsUtils.removeActionCauseFromList(e)}function E(e){return null!=T.LazyInitialization.lazyLoadedComponents[e]?T.LazyInitialization.getLazyRegisteredComponent(e):null!=T.LazyInitialization.lazyLoadedModule[e]?T.LazyInitialization.getLazyRegisteredModule(e):Promise.reject("Module "+e+" is not available")}var A=this&&this.__assign||Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e};Object.defineProperty(t,"__esModule",{value:!0});var T=n(2),R=n(5),F=n(44),M=n(13),I=n(16),P=n(1),D=n(7),$=n(19),N=n(0),k=n(167),V=n(9),L=n(125),B=n(208),U=new V.Logger("RegisteredNamedMethods");t.init=i,T.Initialization.registerNamedMethod("init",function(e,t){return void 0===t&&(t={}),i(e,t)}),t.initSearchbox=o,T.Initialization.registerNamedMethod("initSearchbox",function(e,t,n){void 0===n&&(n={}),o(e,t,n)}),t.initRecommendation=r,T.Initialization.registerNamedMethod("initRecommendation",function(e,t,n,i){void 0===n&&(n={}),void 0===i&&(i={}),r(e,t,n,i)}),t.executeQuery=s,T.Initialization.registerNamedMethod("executeQuery",function(e){return s(e)}),t.state=a,T.Initialization.registerNamedMethod("state",function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return 0!=t.length?a.apply(void 0,[e].concat(t)):a.apply(void 0,[e])}),t.get=u,T.Initialization.registerNamedMethod("get",function(e,t,n){return u(e,t,n)}),t.result=l,T.Initialization.registerNamedMethod("result",function(e,t){return l(e,t)}),t.logCustomEvent=d,T.Initialization.registerNamedMethod("logCustomEvent",function(e,t,n,i){d(e,t,n,i)}),t.logSearchEvent=h,T.Initialization.registerNamedMethod("logSearchEvent",function(e,t,n){h(e,t,n)}),t.logSearchAsYouTypeEvent=f,T.Initialization.registerNamedMethod("logSearchAsYouTypeEvent",function(e,t,n){f(e,t,n)}),t.logClickEvent=m,T.Initialization.registerNamedMethod("logClickEvent",function(e,t,n,i){m(e,t,n,i)}),t.options=y,T.Initialization.registerNamedMethod("options",function(e,t){void 0===t&&(t={}),y(e,t)}),t.patch=g,T.Initialization.registerNamedMethod("patch",function(e,t,n){g(e,t,n)}),t.initBox=v,T.Initialization.registerNamedMethod("initBox",function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];v(e,t)}),t.nuke=b,T.Initialization.registerNamedMethod("nuke",function(e){b(e)}),t.configureResourceRoot=S,T.Initialization.registerNamedMethod("configureResourceRoot",function(e){S(e)}),t.enableAnalytics=C,T.Initialization.registerNamedMethod("enableAnalytics",function(){C()}),t.clearLocalData=w,T.Initialization.registerNamedMethod("clearLocalData",function(){w()}),t.disableAnalytics=_,T.Initialization.registerNamedMethod("disableAnalytics",function(){_()}),t.addActionCauseToList=O,T.Initialization.registerNamedMethod("addActionCauseToList",function(e){O(e)}),t.removeActionCauseFromList=x,T.Initialization.registerNamedMethod("removeActionCauseFromList",function(e){x(e)}),t.load=E,T.Initialization.registerNamedMethod("require",function(e){return E(e)})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=function(){function e(){}return e.defer=function(t){e.functions.push(t),e.arm()},e.flush=function(){for(;e.popOne(););},e.arm=function(){i.defer(function(){e.popOne()&&e.arm()})},e.popOne=function(){if(e.functions.length>0){var t=e.functions[0];return e.functions=i.rest(e.functions),t(),e.functions.length>0}return!1},e.functions=[],e}();t.Defer=o},function(e,t,n){"use strict";function i(e){return function(t,n){return u(e(t),n)}}function o(e,t){return[e,t]}function r(e,t,n){var i=(t-e)/Math.max(0,n),o=Math.floor(Math.log(i)/Math.LN10),r=i/Math.pow(10,o);return o>=0?(r>=A?10:r>=T?5:r>=R?2:1)*Math.pow(10,o):-Math.pow(10,-o)/(r>=A?10:r>=T?5:r>=R?2:1)}function s(e,t,n){var i=Math.abs(t-e)/Math.max(0,n),o=Math.pow(10,Math.floor(Math.log(i)/Math.LN10)),r=i/o;return r>=A?o*=10:r>=T?o*=5:r>=R&&(o*=2),t<e?-o:o}function a(e){return e.length}var u=function(e,t){return e<t?-1:e>t?1:e>=t?0:NaN},l=function(e){return 1===e.length&&(e=i(e)),{left:function(t,n,i,o){for(null==i&&(i=0),null==o&&(o=t.length);i<o;){var r=i+o>>>1;e(t[r],n)<0?i=r+1:o=r}return i},right:function(t,n,i,o){for(null==i&&(i=0),null==o&&(o=t.length);i<o;){var r=i+o>>>1;e(t[r],n)>0?o=r:i=r+1}return i}}},c=l(u),p=c.right,d=c.left,h=p,f=function(e,t){null==t&&(t=o);for(var n=0,i=e.length-1,r=e[0],s=new Array(i<0?0:i);n<i;)s[n]=t(r,r=e[++n]);return s},m=function(e,t,n){var i,r,s,a,u=e.length,l=t.length,c=new Array(u*l);for(null==n&&(n=o),i=s=0;i<u;++i)for(a=e[i],r=0;r<l;++r,++s)c[s]=n(a,t[r]);return c},y=function(e,t){return t<e?-1:t>e?1:t>=e?0:NaN},g=function(e){return null===e?NaN:+e},v=function(e,t){var n,i,o=e.length,r=0,s=-1,a=0,u=0;if(null==t)for(;++s<o;)isNaN(n=g(e[s]))||(i=n-a,a+=i/++r,u+=i*(n-a));else for(;++s<o;)isNaN(n=g(t(e[s],s,e)))||(i=n-a,a+=i/++r,u+=i*(n-a));if(r>1)return u/(r-1)},b=function(e,t){var n=v(e,t);return n?Math.sqrt(n):n},S=function(e,t){var n,i,o,r=e.length,s=-1;if(null==t){for(;++s<r;)if(null!=(n=e[s])&&n>=n)for(i=o=n;++s<r;)null!=(n=e[s])&&(i>n&&(i=n),o<n&&(o=n))}else for(;++s<r;)if(null!=(n=t(e[s],s,e))&&n>=n)for(i=o=n;++s<r;)null!=(n=t(e[s],s,e))&&(i>n&&(i=n),o<n&&(o=n));return[i,o]},C=Array.prototype,w=C.slice,_=C.map,O=function(e){return function(){return e}},x=function(e){return e},E=function(e,t,n){e=+e,t=+t,n=(o=arguments.length)<2?(t=e,e=0,1):o<3?1:+n;for(var i=-1,o=0|Math.max(0,Math.ceil((t-e)/n)),r=new Array(o);++i<o;)r[i]=e+i*n;return r},A=Math.sqrt(50),T=Math.sqrt(10),R=Math.sqrt(2),F=function(e,t,n){var i,o,s,a,u=-1;if(t=+t,e=+e,n=+n,e===t&&n>0)return[e];if((i=t<e)&&(o=e,e=t,t=o),0===(a=r(e,t,n))||!isFinite(a))return[];if(a>0)for(e=Math.ceil(e/a),t=Math.floor(t/a),s=new Array(o=Math.ceil(t-e+1));++u<o;)s[u]=(e+u)*a;else for(e=Math.floor(e*a),t=Math.ceil(t*a),s=new Array(o=Math.ceil(e-t+1));++u<o;)s[u]=(e-u)/a;return i&&s.reverse(),s},M=function(e){return Math.ceil(Math.log(e.length)/Math.LN2)+1},I=function(){function e(e){var o,r,a=e.length,u=new Array(a);for(o=0;o<a;++o)u[o]=t(e[o],o,e);var l=n(u),c=l[0],p=l[1],d=i(u,c,p);Array.isArray(d)||(d=s(c,p,d),d=E(Math.ceil(c/d)*d,p,d));for(var f=d.length;d[0]<=c;)d.shift(),--f;for(;d[f-1]>p;)d.pop(),--f;var m,y=new Array(f+1);for(o=0;o<=f;++o)m=y[o]=[],m.x0=o>0?d[o-1]:c,m.x1=o<f?d[o]:p;for(o=0;o<a;++o)r=u[o],c<=r&&r<=p&&y[h(d,r,0,f)].push(e[o]);return y}var t=x,n=S,i=M;return e.value=function(n){return arguments.length?(t="function"==typeof n?n:O(n),e):t},e.domain=function(t){return arguments.length?(n="function"==typeof t?t:O([t[0],t[1]]),e):n},e.thresholds=function(t){return arguments.length?(i="function"==typeof t?t:O(Array.isArray(t)?w.call(t):t),e):i},e},P=function(e,t,n){if(null==n&&(n=g),i=e.length){if((t=+t)<=0||i<2)return+n(e[0],0,e);if(t>=1)return+n(e[i-1],i-1,e);var i,o=(i-1)*t,r=Math.floor(o),s=+n(e[r],r,e);return s+(+n(e[r+1],r+1,e)-s)*(o-r)}},D=function(e,t,n){return e=_.call(e,g).sort(u),Math.ceil((n-t)/(2*(P(e,.75)-P(e,.25))*Math.pow(e.length,-1/3)))},$=function(e,t,n){return Math.ceil((n-t)/(3.5*b(e)*Math.pow(e.length,-1/3)))},N=function(e,t){var n,i,o=e.length,r=-1;if(null==t){for(;++r<o;)if(null!=(n=e[r])&&n>=n)for(i=n;++r<o;)null!=(n=e[r])&&n>i&&(i=n)}else for(;++r<o;)if(null!=(n=t(e[r],r,e))&&n>=n)for(i=n;++r<o;)null!=(n=t(e[r],r,e))&&n>i&&(i=n);return i},k=function(e,t){var n,i=e.length,o=i,r=-1,s=0;if(null==t)for(;++r<i;)isNaN(n=g(e[r]))?--o:s+=n;else for(;++r<i;)isNaN(n=g(t(e[r],r,e)))?--o:s+=n;if(o)return s/o},V=function(e,t){var n,i=e.length,o=-1,r=[];if(null==t)for(;++o<i;)isNaN(n=g(e[o]))||r.push(n);else for(;++o<i;)isNaN(n=g(t(e[o],o,e)))||r.push(n);return P(r.sort(u),.5)},L=function(e){for(var t,n,i,o=e.length,r=-1,s=0;++r<o;)s+=e[r].length;for(n=new Array(s);--o>=0;)for(i=e[o],t=i.length;--t>=0;)n[--s]=i[t];return n},B=function(e,t){var n,i,o=e.length,r=-1;if(null==t){for(;++r<o;)if(null!=(n=e[r])&&n>=n)for(i=n;++r<o;)null!=(n=e[r])&&i>n&&(i=n)}else for(;++r<o;)if(null!=(n=t(e[r],r,e))&&n>=n)for(i=n;++r<o;)null!=(n=t(e[r],r,e))&&i>n&&(i=n);return i},U=function(e,t){for(var n=t.length,i=new Array(n);n--;)i[n]=e[t[n]];return i},Q=function(e,t){if(n=e.length){var n,i,o=0,r=0,s=e[r];for(null==t&&(t=u);++o<n;)(t(i=e[o],s)<0||0!==t(s,s))&&(s=i,r=o);return 0===t(s,s)?r:void 0}},j=function(e,t,n){for(var i,o,r=(null==n?e.length:n)-(t=null==t?0:+t);r;)o=Math.random()*r--|0,i=e[r+t],e[r+t]=e[o+t],e[o+t]=i;return e},H=function(e,t){var n,i=e.length,o=-1,r=0;if(null==t)for(;++o<i;)(n=+e[o])&&(r+=n);else for(;++o<i;)(n=+t(e[o],o,e))&&(r+=n);return r},q=function(e){if(!(o=e.length))return[];for(var t=-1,n=B(e,a),i=new Array(n);++t<n;)for(var o,r=-1,s=i[t]=new Array(o);++r<o;)s[r]=e[r][t];return i},z=function(){return q(arguments)};n.d(t,"b",function(){return h}),n.d(t,"d",function(){return p}),n.d(t,"c",function(){return d}),n.d(t,"a",function(){return u}),n.d(t,"e",function(){return l}),n.d(t,"f",function(){return m}),n.d(t,"g",function(){return y}),n.d(t,"h",function(){return b}),n.d(t,"i",function(){return S}),n.d(t,"j",function(){return I}),n.d(t,"w",function(){return D}),n.d(t,"x",function(){return $}),n.d(t,"y",function(){return M}),n.d(t,"k",function(){return N}),n.d(t,"l",function(){return k}),n.d(t,"m",function(){return V}),n.d(t,"n",function(){return L}),n.d(t,"o",function(){return B}),n.d(t,"p",function(){return f}),n.d(t,"q",function(){return U}),n.d(t,"r",function(){return P}),n.d(t,"s",function(){return E}),n.d(t,"t",function(){return Q}),n.d(t,"u",function(){return j}),n.d(t,"v",function(){return H}),n.d(t,"B",function(){return F}),n.d(t,"z",function(){return r}),n.d(t,"A",function(){return s}),n.d(t,"C",function(){return q}),n.d(t,"D",function(){return v}),n.d(t,"E",function(){return z})},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=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])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n(76),r=n(4),s=n(6),a=n(0),u=n(139),l=n(9),c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.now=u().toDate(),t.useTodayYesterdayAndTomorrow=!0,t.useWeekdayIfThisWeek=!0,t.omitYearIfCurrentOne=!0,t.useLongDateFormat=!1,t.includeTimeIfToday=!0,t.includeTimeIfThisWeek=!0,t.alwaysIncludeTime=!1,t.predefinedFormat=void 0,t}return i(t,e),t}(o.Options),p=function(){function e(){}return e.convertFromJsonDateIfNeeded=function(t){return e.convertToStandardDate(t)},e.convertToStandardDate=function(e){if(a.isDate(e))return u(e).toDate();if(null!==e&&!isNaN(Number(e)))return u(Number(e)).toDate();if(a.isString(e)){var t=["YYYY/MM/DD@HH:mm:ssZ",u.ISO_8601];return u(e,t).toDate()}},e.setLocale=function(){e.saveOriginalMomentLocaleData(),u.updateLocale(e.momentjsCompatibleLocale,e.transformGlobalizeCalendarToMomentCalendar()),u.locale(e.momentjsCompatibleLocale)},e.saveOriginalMomentLocaleData=function(){var t=e.momentjsCompatibleLocale;null!=e.momentjsLocaleDataMap[t]||(e.momentjsLocaleDataMap[t]=u.localeData())},e.dateForQuery=function(t){return e.setLocale(),u(t).format("YYYY/MM/DD")},e.dateTimeForQuery=function(t){return e.setLocale(),u(t).format("YYYY/MM/DD@HH:mm:ss")},e.keepOnlyDatePart=function(t){e.setLocale();var n=u(t);return new Date(n.year(),n.month(),n.date())},e.offsetDateByDays=function(e,t){return u(e).add(t,"days").toDate()},e.isTodayYesterdayOrTomorrow=function(t,n){var i=u(e.keepOnlyDatePart(t)),o=u(e.keepOnlyDatePart(n.now)),r=i.diff(o,"days");return 0==r||1==r||-1==r},e.getMomentJsFormat=function(t){var n=t,i=e.buildRegexMatchingExactCharSequence("y",4);n=n.replace(i,"$1YYYY");var o=e.buildRegexMatchingExactCharSequence("y",2);n=n.replace(o,"$1YY");var r=e.buildRegexMatchingExactCharSequence("d",2);n=n.replace(r,"$1DD");var s=e.buildRegexMatchingExactCharSequence("d",1);n=n.replace(s,"$1D");var a=e.buildRegexMatchingExactCharSequence("h",2);return n=n.replace(a,"$1H")},e.buildRegexMatchingExactCharSequence=function(e,t){var n="(?:([^"+e+"]|^))",i=e+"{"+t+"}",o="(?!"+e+")",r=""+n+i+o;return new RegExp(r,"g")},e.dateToString=function(t,n){if(e.setLocale(),r.Utils.isNullOrUndefined(t))return new l.Logger(this).warn("Impossible to format an undefined or null date."),"";n=(new c).merge(n);var i=u(e.keepOnlyDatePart(t)),o=u(e.keepOnlyDatePart(n.now));if(n.predefinedFormat)return i.format(this.getMomentJsFormat(n.predefinedFormat));if(n.useTodayYesterdayAndTomorrow&&e.isTodayYesterdayOrTomorrow(t,n))return u(i).calendar(u(o));var a=0==i.diff(u(o),"weeks");return n.useWeekdayIfThisWeek&&a?i.valueOf()>o.valueOf()?s.l("NextDay",s.l(i.format("dddd"))):i.valueOf()<o.valueOf()?s.l("LastDay",s.l(i.format("dddd"))):i.format("dddd"):n.omitYearIfCurrentOne&&i.year()===o.year()?i.format("LL"):n.useLongDateFormat?i.format(this.longDateFormat):i.format("L")},Object.defineProperty(e,"longDateFormat",{get:function(){return e.momentjsLocaleDataMap[e.momentjsCompatibleLocale].longDateFormat("LLLL").replace(/[h:mA]/g,"").trim()},enumerable:!0,configurable:!0}),e.timeToString=function(e,t){return r.Utils.isNullOrUndefined(e)?"":u(e).format("h:mm A")},e.dateTimeToString=function(t,n){if(e.setLocale(),n=(new c).merge(n),r.Utils.isNullOrUndefined(t))return new l.Logger(this).warn("Impossible to format an undefined or null date."),"";if(!u(t).isValid())return new l.Logger(this).warn("Impossible to format an invalid date: "+t),"";if(n.predefinedFormat)return u(t).format(this.getMomentJsFormat(n.predefinedFormat));var i=e.keepOnlyDatePart(n.now),o=e.dateToString(t,n),s=e.keepOnlyDatePart(t),a=0==u(t).diff(u(i),"weeks"),p=s.valueOf()==i.valueOf();return function(){return!!n.alwaysIncludeTime||(!(!n.includeTimeIfThisWeek||!a)||!(!n.includeTimeIfToday||!p))}()?o+", "+e.timeToString(t):o},e.monthToString=function(t){e.setLocale();var n=u(new Date(1980,t)).toDate();return u(n).format("MMMM")},e.isValid=function(t){return e.setLocale(),t instanceof Date&&!isNaN(t.getTime())},e.timeBetween=function(e,t){return r.Utils.isNullOrUndefined(e)||r.Utils.isNullOrUndefined(t)?"":("0"+((u(t).valueOf()-u(e).valueOf())/36e5).toFixed()).slice(-2)+":"+("0"+((u(t).valueOf()-u(e).valueOf())%36e5/6e4).toFixed()).slice(-2)+":"+("0"+((u(t).valueOf()-u(e).valueOf())%6e4/1e3).toFixed()).slice(-2)},Object.defineProperty(e,"currentGlobalizeCalendar",{get:function(){return Globalize.culture(e.currentLocale).calendar},enumerable:!0,configurable:!0}),Object.defineProperty(e,"currentLocale",{get:function(){return String.locale},enumerable:!0,configurable:!0}),Object.defineProperty(e,"momentjsCompatibleLocale",{get:function(){var t=e.currentLocale;return"no"==t.toLowerCase()?t="nn":"es-es"==t.toLowerCase()&&(t="es"),t},enumerable:!0,configurable:!0}),e.transformGlobalizeCalendarToMomentCalendar=function(){var t=function(e){return e.replace(/y/g,"Y").replace(/d/g,"D")};return{months:e.currentGlobalizeCalendar.months.names,monthsShort:e.currentGlobalizeCalendar.months.namesAbbr,weekdays:e.currentGlobalizeCalendar.days.names,weekdaysShort:e.currentGlobalizeCalendar.days.namesAbbr,weekdaysMin:e.currentGlobalizeCalendar.days.namesShort,longDateFormat:{LT:t(e.currentGlobalizeCalendar.patterns.t),LTS:t(e.currentGlobalizeCalendar.patterns.T),L:t(e.currentGlobalizeCalendar.patterns.d),LL:t(e.currentGlobalizeCalendar.patterns.M),LLL:t(e.currentGlobalizeCalendar.patterns.f),LLLL:t(e.currentGlobalizeCalendar.patterns.F)},calendar:{lastDay:"["+s.l("Yesterday")+"]",sameDay:"["+s.l("Today")+"]",nextDay:"["+s.l("Tomorrow")+"]"}}},e.momentjsLocaleDataMap={},e}();t.DateUtils=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){}return e.populateOmnibox="populateOmnibox",e.populateOmniboxSuggestions="populateOmniboxSuggestions",e.omniboxPreprocessResultForQuery="omniboxPreprocessResultForQuery",e.buildingQuerySuggest="buildingQuerySuggest",e.querySuggestSuccess="querySuggestSuccess",e.querySuggestRendered="querySuggestRendered",e.querySuggestGetFocus="querySuggestGetFocus",e.querySuggestLoseFocus="querySuggestLooseFocus",e.querySuggestSelection="querySuggestSelection",e}();t.OmniboxEvents=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){}return e.populateBreadcrumb="populateBreadcrumb",e.clearBreadcrumb="clearBreadcrumb",e.redrawBreadcrumb="redrawBreadcrumb",e}();t.BreadcrumbEvents=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(5),o=n(1),r=n(9),s=function(){function e(t,n){this.element=t,this.type=n,this.disabled=!1,i.Assert.exists(t),i.Assert.isNonEmptyString(n),this.logger=new r.Logger(this),e.bindComponentToElement(t,this)}return e.prototype.debugInfo=function(){var e={};return e[this.constructor.ID]=this,e},e.prototype.disable=function(){this.disabled=!0},e.prototype.enable=function(){this.disabled=!1},e.bindComponentToElement=function(t,n){i.Assert.exists(t),i.Assert.exists(n),i.Assert.isNonEmptyString(n.type),t[e.computeCssClassNameForType(n.type)]=n,o.$$(t).addClass(e.computeCssClassNameForType(n.type)),e.getBoundComponentsForElement(t).push(n)},e.computeCssClassName=function(t){return e.computeCssClassNameForType(t.ID)},e.computeCssClassNameForType=function(e){return i.Assert.isNonEmptyString(e),"Coveo"+e},e.computeSelectorForType=function(t){return i.Assert.isNonEmptyString(t),"."+e.computeCssClassNameForType(t)},e.getBoundComponentsForElement=function(e){return i.Assert.exists(e),null==e.CoveoBoundComponents&&(e.CoveoBoundComponents=[]),e.CoveoBoundComponents},e.getComponentRef=function(e){return Coveo[e]},e}();t.BaseComponent=s},function(e,t){function n(e){return e&&e.__esModule?e:{default:e}}e.exports=n},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t){var n=e.exports={version:"2.6.9"};"number"==typeof __e&&(__e=n)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(22),o=n(21),r=n(115),s=n(33),a=n(4),u=n(1),l=n(0),c=n(6),p=function(){function e(){}return e.getRegexToUseForFacetSearch=function(e,t){return new RegExp(i.StringUtils.stringToRegex(e,t),"i")},e.getDisplayValueFromValueCaption=function(e,t,n){var i=this.tryToGetTranslatedCaption(t,e);return n[e]||i},e.getValuesToUseForSearchInFacet=function(e,t){var n=[e],i=this.getRegexToUseForFacetSearch(e,t.options.facetSearchIgnoreAccents);return t.options.valueCaption?(l.chain(t.options.valueCaption).pairs().filter(function(e){return i.test(e[1])}).each(function(e){n.push(e[0])}),(o.QueryUtils.isStratusAgnosticField(t.options.field,"@objecttype")||o.QueryUtils.isStratusAgnosticField(t.options.field,"@filetype"))&&l.each(r.FileTypes.getFileTypeCaptions(),function(e,o){o in t.options.valueCaption||!i.test(e)||n.push(o)})):o.QueryUtils.isStratusAgnosticField(t.options.field,"@objecttype")||o.QueryUtils.isStratusAgnosticField(t.options.field,"@filetype")?l.each(l.filter(l.pairs(r.FileTypes.getFileTypeCaptions()),function(e){return i.test(e[1])}),function(e){n.push(e[0])}):o.QueryUtils.isStratusAgnosticField(t.options.field,"@month")&&l.each(l.range(1,13),function(e){i.test(s.DateUtils.monthToString(e-1))&&n.push(("0"+e.toString()).substr(-2))}),n},e.buildFacetSearchPattern=function(e){return e=l.map(e,function(e){return a.Utils.escapeRegexCharacter(e)}),e[0]=".*"+e[0]+".*",e.join("|")},e.needAnotherFacetSearch=function(e,t,n,i){return e<t&&e<i&&e>n},e.addNoStateCssClassToFacetValues=function(e,t){if(0!=e.values.getSelected().length){var n=u.$$(t).findAll("li:not(.coveo-selected)");l.each(n,function(e){u.$$(e).addClass("coveo-no-state")})}},e.tryToGetTranslatedCaption=function(t,n){var i;if(o.QueryUtils.isStratusAgnosticField(t.toLowerCase(),"@filetype"))i=r.FileTypes.getFileType(n).caption;else if(o.QueryUtils.isStratusAgnosticField(t.toLowerCase(),"@objecttype"))i=r.FileTypes.getObjectType(n).caption;else if(e.isMonthFieldValue(t,n)){var u=parseInt(n,10);i=s.DateUtils.monthToString(u-1)}else i=c.l(n);return void 0!=i&&a.Utils.isNonEmptyString(i)?i:n},e.isMonthFieldValue=function(e,t){if(!o.QueryUtils.isStratusAgnosticField(e.toLowerCase(),"@month"))return!1;var n=parseInt(t,10);return!isNaN(n)&&!(n<1||n>12)},e}();t.FacetUtils=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i;try{i=window.localStorage}catch(e){console.warn("Unable to access localStorage. Certain features like analytics will not work. If this is unintended, consider adjusting your browser settings to allow third-party cookies and data.\n\n",e),i=null}t.localStorageExists=!!i;var o=function(){function e(e){this.id=e}return e.prototype.save=function(e){try{null!=i&&i.setItem(this.getLocalStorageKey(),JSON.stringify(e))}catch(e){}},e.prototype.load=function(){try{if(null==i)return null;var e=i.getItem(this.getLocalStorageKey());return e&&JSON.parse(e)}catch(e){return null}},e.prototype.remove=function(e){try{if(null!=i)if(void 0==e)i.removeItem(this.getLocalStorageKey());else{var t=this.load();delete t[e],this.save(t)}}catch(e){}},e.prototype.getLocalStorageKey=function(){return"coveo-"+this.id},e}();t.LocalStorageUtils=o;var r=function(){function e(){}return e.prototype.getItem=function(e){try{return i.getItem(e)}catch(e){return null}},e.prototype.removeItem=function(e){try{i.removeItem(e)}catch(e){}},e.prototype.setItem=function(e,t){try{i.setItem(e,t)}catch(e){}},e.prototype.clear=function(){try{i.clear()}catch(e){}},e.prototype.key=function(e){try{return i.key(e)}catch(e){return null}},Object.defineProperty(e.prototype,"length",{get:function(){try{return i.length}catch(e){return 0}},enumerable:!0,configurable:!0}),e}();t.SafeLocalStorage=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(5),o=n(4),r=n(0),s=n(62),a=function(){function e(){}return e.getHash=function(t){void 0===t&&(t=window),i.Assert.exists(t);var n="#"+(t.location.href.split("#")[1]||"");return e.getAjaxcrawlableHash(n)},e.getValue=function(t,n){i.Assert.isNonEmptyString(t),i.Assert.exists(n),n=e.getAjaxcrawlableHash(n);var o=e.getRawValue(t,n);return void 0!=o&&(o=e.getValueDependingOnType(t,o)),o},e.encodeValues=function(t){var n=[];return r.each(t,function(t,i,s){var a="";o.Utils.isNonEmptyArray(t)?a=e.encodeArray(t):r.isObject(t)&&o.Utils.isNonEmptyArray(r.keys(t))?a=e.encodeObject(t):o.Utils.isNullOrUndefined(t)||(a=o.Utils.safeEncodeURIComponent(t.toString())),""!=a&&n.push(i+"="+a)}),n.join("&")},e.getAjaxcrawlableHash=function(e){return void 0!=e[1]&&"!"==e[1]?e.substring(0,1)+e.substring(2):e},e.getRawValue=function(e,t){i.Assert.exists(e),i.Assert.exists(t),i.Assert.check(0==t.indexOf("#")||""==t);for(var n=t.substr(1).split("&"),o=0,r=!0,s=void 0;r;){var a=n[o].split("=");a[0]==e?(r=!1,s=a[1]):++o>=n.length&&(o=void 0,r=!1)}return s},e.getValueDependingOnType=function(t,n){var i,o=e.getValueType(t,n);if("object"==o)i=e.decodeObject(n);else if("array"==o)i=e.decodeArray(n);else try{i=decodeURIComponent(n)}catch(i){new s.Logger(e).warn("Error while decoding a value from the URL as a standard value",i,t,n)}return i},e.getValueType=function(t,n){return"q"==t?"other":e.isObject(n)?"object":e.startsOrEndsWithSquareBracket(n)?"array":"other"},e.startsWithLeftSquareBracket=function(t){return e.DELIMITER.arrayStartRegExp.test(t)},e.startsWithEncodedLeftSquareBracket=function(t){return 0==t.indexOf(o.Utils.safeEncodeURIComponent(e.DELIMITER.arrayStart))},e.endsWithRightSquareBracket=function(t){return e.DELIMITER.arrayEndRegExp.test(t)},e.endsWithEncodedRightSquareBracket=function(t){var n=o.Utils.safeEncodeURIComponent(e.DELIMITER.arrayEnd),i=t.indexOf(n);return-1!==i&&i==t.length-n.length},e.isObjectStartNotEncoded=function(t){return t.substr(0,1)==e.DELIMITER.objectStart},e.isObjectStartEncoded=function(t){return 0==t.indexOf(o.Utils.safeEncodeURIComponent(e.DELIMITER.objectStart))},e.isObjectEndNotEncoded=function(t){return t.substr(t.length-1)==e.DELIMITER.objectEnd},e.isObjectEndEncoded=function(t){return t.indexOf(o.Utils.safeEncodeURIComponent(e.DELIMITER.objectEnd))==t.length-o.Utils.safeEncodeURIComponent(e.DELIMITER.objectEnd).length},e.isObject=function(t){var n=e.isObjectStartNotEncoded(t)||e.isObjectStartEncoded(t),i=e.isObjectEndNotEncoded(t)||e.isObjectEndEncoded(t);return n&&i},e.startsOrEndsWithSquareBracket=function(t){var n=e.startsWithLeftSquareBracket(t)||e.startsWithEncodedLeftSquareBracket(t),i=e.endsWithRightSquareBracket(t)||e.endsWithEncodedRightSquareBracket(t);return n||i},e.encodeArray=function(t){var n=r.map(t,function(e){return o.Utils.safeEncodeURIComponent(e)});return e.DELIMITER.arrayStart+n.join(",")+e.DELIMITER.arrayEnd},e.encodeObject=function(t){var n=this,i=r.map(t,function(e,t,i){return'"'+o.Utils.safeEncodeURIComponent(t)+'":'+n.encodeValue(e)});return e.DELIMITER.objectStart+i.join(" , ")+e.DELIMITER.objectEnd},e.encodeValue=function(t){return r.isArray(t)?e.encodeArray(t):r.isObject(t)?JSON.stringify(t):r.isNumber(t)||r.isBoolean(t)?o.Utils.safeEncodeURIComponent(t.toString()):'"'+o.Utils.safeEncodeURIComponent(t)+'"'},e.decodeObject=function(t){e.isObjectStartEncoded(t)&&e.isObjectEndEncoded(t)&&(t=t.replace(/encodeURIComponent(HashUtils.Delimiter.objectStart)/,e.DELIMITER.objectStart),t=t.replace(o.Utils.safeEncodeURIComponent(e.DELIMITER.objectEnd),e.DELIMITER.objectEnd));try{var n=/(\[.*\])/.exec(t);n&&(t=t.replace(/(\[.*\])/,"["+this.decodeArray(n[1]).map(function(e){return'"'+e+'"'}).join(",")+"]"));var i=decodeURIComponent(t);return JSON.parse(i)}catch(n){return new s.Logger(e).warn("Error while decoding a value from the URL as an object",n,t),{}}},e.decodeArray=function(t){var n=e.removeSquareBrackets(t),i=n.split(",");return r.chain(i).map(function(n){try{return decodeURIComponent(n)}catch(i){return new s.Logger(e).warn("Error while decoding a value from the URL as an array",i,n,t),null}}).compact().value()},e.removeSquareBrackets=function(t){return e.startsWithEncodedLeftSquareBracket(t)&&(t=t.replace(o.Utils.safeEncodeURIComponent(e.DELIMITER.arrayStart),"")),e.endsWithEncodedRightSquareBracket(t)&&(t=t.replace(o.Utils.safeEncodeURIComponent(e.DELIMITER.arrayEnd),"")),e.startsWithLeftSquareBracket(t)&&(t=t.replace(e.DELIMITER.arrayStart,"")),e.endsWithRightSquareBracket(t)&&(t=t.replace(e.DELIMITER.arrayEnd,"")),t},e.DELIMITER={objectStart:"{",objectEnd:"}",arrayStart:"[",arrayEnd:"]",arrayStartRegExp:/^\[/,arrayEndRegExp:/\]$/},e}();t.HashUtils=a},function(e,t,n){"use strict";var i=this&&this.__assign||Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e};Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),r=n(4),s=function(){function e(){}return e.getUrlParameter=function(e){return decodeURIComponent((new RegExp("[?|&]"+e+"=([^&;]+?)(&|#|;|$)").exec(location.search)||[,""])[1].replace(/\+/g,"%20"))||null},e.merge=function(t){for(var n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];return n.forEach(function(n){var o=e.normalizeAsParts(n),s=o.path,a=o.queryNormalized;if(r.Utils.isNonEmptyString(s)&&(t=i({},t,{url:s})),r.Utils.isNonEmptyArray(a)){var u=r.Utils.isNonEmptyArray(t.queryString),l=u?r.Utils.concatWithoutDuplicate(t.queryString,a):a;t=i({},t,{queryString:l})}}),t},e.normalizeAsString=function(e){var t=this.normalizeAsParts(e),n=t.queryNormalized;return""+t.path+this.addToUrlIfNotEmpty(n,"&","?")},e.normalizeAsParts=function(t){var n=this.normalizePaths(t);return{pathsNormalized:n,queryNormalized:this.normalizeQueryString(t),path:this.addToUrlIfNotEmpty(n,"/",e.getRelativePathLeadingCharacters(t))}},e.getRelativePathLeadingCharacters=function(e){var t="",n=/^(([\/])+)/,i=o.first(this.toArray(e.paths));if(i){var r=n.exec(i);r&&(t=r[0])}return t},e.normalizePaths=function(e){var t=this;return this.toArray(e.paths).map(function(e){return r.Utils.isNonEmptyString(e)?t.removeProblematicChars(e):""})},e.normalizeQueryString=function(t){var n=this,i=[];if(t.queryAsString){var r=this.toArray(t.queryAsString).map(function(e){return e=n.removeProblematicChars(e),e=n.encodeKeyValuePair(e)});i=i.concat(r)}if(t.query){var s=o.pairs(t.query),a=s.map(function(t){var i=t[0],r=t[1],s=["pipeline"];return o.isString(i)&&o.contains(s,i.toLowerCase())||!e.isInvalidQueryStringValue(r)&&!e.isInvalidQueryStringValue(i)?[n.removeProblematicChars(i),n.decodeThenEncode(r)].join("="):""});i=i.concat(a)}return o.uniq(i)},e.addToUrlIfNotEmpty=function(e,t,n){return r.Utils.isNonEmptyArray(e)?""+n+o.compact(e).join(t):""},e.startsWith=function(e,t){return t.substr(0,e.length)===e},e.endsWith=function(e,t){return t.substring(t.length-e.length,t.length)===e},e.removeAtEnd=function(e,t){for(;this.endsWith(e,t);)t=t.slice(0,t.length-e.length);return t},e.removeAtStart=function(e,t){for(;this.startsWith(e,t);)t=t.slice(e.length);return t},e.toArray=function(e){return o.isArray(e)?e:[e]},e.encodeKeyValuePair=function(e){var t=e.split("=");if(0==t.length)return e;var n=t[0],i=o.rest(t,1).join("");return n&&i?(n=this.removeProblematicChars(n),i=this.decodeThenEncode(i),n+"="+i):e},e.removeProblematicChars=function(e){var t=this;return["?","/","#","="].forEach(function(n){e=t.removeAtStart(n,e),e=t.removeAtEnd(n,e)}),e},e.decodeThenEncode=function(e){var t=decodeURIComponent(e);return r.Utils.safeEncodeURIComponent(t)},e.isInvalidQueryStringValue=function(e){return o.isString(e)?r.Utils.isEmptyString(e):r.Utils.isNullOrUndefined(e)},e}();t.UrlUtils=s},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=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])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),o=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))(function(o,r){function s(e){try{u(i.next(e))}catch(e){r(e)}}function a(e){try{u(i.throw(e))}catch(e){r(e)}}function u(e){e.done?o(e.value):new n(function(t){t(e.value)}).then(s,a)}u((i=i.apply(e,t||[])).next())})},r=this&&this.__generator||function(e,t){function n(e){return function(t){return i([e,t])}}function i(n){if(o)throw new TypeError("Generator is already executing.");for(;u;)try{if(o=1,r&&(s=r[2&n[0]?"return":n[0]?"throw":"next"])&&!(s=s.call(r,n[1])).done)return s;switch(r=0,s&&(n=[0,s.value]),n[0]){case 0:case 1:s=n;break;case 4:return u.label++,{value:n[1],done:!1};case 5:u.label++,r=n[1],n=[0];continue;case 7:n=u.ops.pop(),u.trys.pop();continue;default:if(s=u.trys,!(s=s.length>0&&s[s.length-1])&&(6===n[0]||2===n[0])){u=0;continue}if(3===n[0]&&(!s||n[1]>s[0]&&n[1]<s[3])){u.label=n[1];break}if(6===n[0]&&u.label<s[1]){u.label=s[1],s=n;break}if(s&&u.label<s[2]){u.label=s[2],u.ops.push(n);break}s[2]&&u.ops.pop(),u.trys.pop();continue}n=t.call(e,u)}catch(e){n=[6,e],r=0}finally{o=s=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}var o,r,s,a,u={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return a={next:n(0),throw:n(1),return:n(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a};Object.defineProperty(t,"__esModule",{value:!0});var s=n(86),a=n(0),u=n(11),l=n(26),c=n(5),p=n(31),d=n(328),h=n(36),f=n(48),m=n(45),y=n(1),g=n(41),v=n(21),b=n(43),S=n(4),C=function(){function e(){this.searchAsYouType=!1,this.cancel=!1,this.logInActionsHistory=!1,this.shouldRedirectStandaloneSearchbox=!0}return e}(),w=function(e){function t(n,i,o,r){var s=e.call(this,n,t.ID)||this;return s.options=i,s.searchInterface=r,s.modalBox=l.ModalBox,s.closeModalBox=!0,s.showingExecutingQueryAnimation=!1,s.localStorage=new g.LocalStorageUtils("lastQueryHash"),c.Assert.exists(n),c.Assert.exists(i),s.firstQuery=!0,s.initializeActionsHistory(),s}return i(t,e),Object.defineProperty(t.prototype,"usageAnalytics",{get:function(){return this.searchInterface.usageAnalytics},enumerable:!0,configurable:!0}),t.prototype.setEndpoint=function(e){this.overrideEndpoint=e,this.logger.debug("Endpoint set",e)},t.prototype.getEndpoint=function(){var e=this.overrideEndpoint||this.options.endpoint;return new d.SearchEndpointWithDefaultCallOptions(e,this.getCallOptions())},t.prototype.getLastQuery=function(){return this.lastQuery||(new f.QueryBuilder).build()},t.prototype.getLastResults=function(){return this.lastQueryResults},t.prototype.fetchQueryExecutionPlan=function(){return o(this,void 0,void 0,function(){var e,t;return r(this,function(n){switch(n.label){case 0:e=this.createQueryBuilder(new C).build(),this.logger.debug("Fetching query execution plan"),n.label=1;case 1:return n.trys.push([1,3,,4]),[4,this.getEndpoint().plan(e)];case 2:return[2,n.sent()];case 3:return t=n.sent(),[2,null];case 4:return[2]}})})},t.prototype.executeQuery=function(e){var t=this;e=a.extend(new C,e),this.closeModalBoxIfNeeded(e?e.closeModalBox:void 0),this.logger.debug("Executing new query"),this.cancelAnyCurrentPendingQuery(),null!=e.beforeExecuteQuery&&e.beforeExecuteQuery(),e.ignoreWarningSearchEvent||this.usageAnalytics.warnAboutSearchEvent(),this.showExecutingQueryAnimation();var n={searchAsYouType:e.searchAsYouType,cancel:e.cancel,origin:e.origin,shouldRedirectStandaloneSearchbox:e.shouldRedirectStandaloneSearchbox};if(this.newQueryEvent(n),n.cancel)return void this.cancelQuery();var i=this.createQueryBuilder(e);if(i){var o=i.build();e.logInActionsHistory&&this.logQueryInActionsHistory(o);var r=this.getEndpoint(),s=this.currentPendingQuery=r.search(o);s.then(function(n){if(c.Assert.exists(n),t.firstQuery&&(t.firstQuery=!1),s===t.currentPendingQuery){t.logger.debug("Query results received",o,n),t.keepLastSearchUid(o,n,e)?(n.searchUid=t.getLastSearchUid(),n._reusedSearchUid=!0,v.QueryUtils.setPropertyOnResults(n,"queryUid",t.getLastSearchUid())):(t.lastQueryHash=t.queryHash(o,n),t.lastSearchUid=n.searchUid),t.lastQuery=o,t.lastQueryResults=n,t.currentError=null;var r={queryBuilder:i,query:o,results:n,searchAsYouType:e.searchAsYouType};t.preprocessResultsEvent(r);var a={queryBuilder:i,query:o,results:n,searchAsYouType:e.searchAsYouType,retryTheQuery:!1};if(0==n.results.length&&t.noResultEvent(a),a.retryTheQuery)return t.executeQuery();t.lastQueryBuilder=i,t.currentPendingQuery=void 0;var u={queryBuilder:i,query:o,results:n,searchAsYouType:e.searchAsYouType};return t.querySuccessEvent(u),p.Defer.defer(function(){t.deferredQuerySuccessEvent(u),t.hideExecutingQueryAnimation()}),n}}).catch(function(n){if(s===t.currentPendingQuery){t.logger.error("Query triggered an error",o,n),t.currentPendingQuery=void 0;var a={queryBuilder:i,endpoint:r,query:o,error:n,searchAsYouType:e.searchAsYouType};t.lastQuery=o,t.lastQueryResults=null,t.currentError=n,t.queryError(a),t.hideExecutingQueryAnimation()}});var u={queryBuilder:i,query:o,searchAsYouType:e.searchAsYouType,promise:s};return this.duringQueryEvent(u),this.currentPendingQuery}},t.prototype.fetchMore=function(e){var t=this;if(void 0==this.currentPendingQuery){this.usageAnalytics.sendAllPendingEvents();var n=new f.QueryBuilder;this.continueLastQueryBuilder(n,e);var i=n.build(),o=this.getEndpoint(),r=this.currentPendingQuery=o.search(i),s={queryBuilder:n,query:i,searchAsYouType:!1,promise:r};return y.$$(this.element).trigger(u.QueryEvents.duringFetchMoreQuery,s),this.lastQueryBuilder=n,this.lastQuery=i,r.then(function(e){t.currentPendingQuery=void 0,null==t.lastQueryResults?t.lastQueryResults=e:a.forEach(e.results,function(e){t.lastQueryResults.results.push(e)});var o={queryBuilder:n,query:i,results:e,searchAsYouType:!1};t.preprocessResultsEvent(o),v.QueryUtils.setIndexAndUidOnQueryResults(i,e,t.getLastSearchUid(),e.pipeline,e.splitTestRun);var r={query:i,results:e,queryBuilder:n,searchAsYouType:!1};t.fetchMoreSuccessEvent(r)}),this.currentPendingQuery}},t.prototype.cancelQuery=function(){this.cancelAnyCurrentPendingQuery(),this.hideExecutingQueryAnimation()},t.prototype.deferExecuteQuery=function(e){var t=this;this.showExecutingQueryAnimation(),p.Defer.defer(function(){return t.executeQuery(e)})},t.prototype.ensureCreatedQueryBuilder=function(){this.createdOneQueryBuilder||this.createQueryBuilder(new C)},t.prototype.createQueryBuilder=function(e){c.Assert.exists(e),this.createdOneQueryBuilder=!0;var t=new f.QueryBuilder;t.locale=String.locale,t.firstResult=t.firstResult||0;var n={queryBuilder:t,searchAsYouType:e.searchAsYouType,cancel:e.cancel};this.buildingQueryEvent(n);var i={queryBuilder:t,searchAsYouType:e.searchAsYouType,cancel:e.cancel};if(this.doneBuildingQueryEvent(i),n.cancel||i.cancel)return void this.cancelQuery();var o=this.getPipelineInUrl();return o&&(t.pipeline=o),t},t.prototype.isStandaloneSearchbox=function(){return S.Utils.isNonEmptyString(this.options.searchPageUri)},t.prototype.saveLastQuery=function(){this.localStorage.save({expire:(new Date).getTime()+18e5,hash:this.lastQueryHash,uid:this.lastSearchUid})},t.prototype.getLastQueryHash=function(){return null!=this.lastQueryHash?this.lastQueryHash:(this.loadLastQueryHash(),this.lastQueryHash||this.queryHash((new f.QueryBuilder).build()))},t.prototype.resetHistory=function(){this.historyStore.clear()},t.prototype.enableHistory=function(){this.historyStore=s.buildHistoryStore()},t.prototype.disableHistory=function(){this.historyStore=s.buildNullHistoryStore()},t.prototype.initializeActionsHistory=function(){this.enableHistory(),this.usageAnalytics.isActivated()||(this.historyStore.clear(),this.disableHistory())},t.prototype.closeModalBoxIfNeeded=function(e){(void 0!=e?e:this.closeModalBox)&&this.modalBox.close(!0)},t.prototype.getLastSearchUid=function(){return null!=this.lastSearchUid?this.lastSearchUid:(this.loadLastQueryHash(),this.lastSearchUid)},t.prototype.loadLastQueryHash=function(){var e=this.localStorage.load();null!=e&&(new Date).getTime()<=e.expire&&(this.lastQueryHash=e.hash,this.lastSearchUid=e.uid,this.localStorage.remove())},t.prototype.continueLastQueryBuilder=function(e,t){a.extend(e,this.lastQueryBuilder),e.firstResult=e.firstResult+e.numberOfResults,e.numberOfResults=t},t.prototype.getPipelineInUrl=function(){return b.UrlUtils.getUrlParameter("pipeline")},t.prototype.cancelAnyCurrentPendingQuery=function(){return!!S.Utils.exists(this.currentPendingQuery)&&(this.logger.debug("Cancelling current pending query"),Promise.reject("Cancelling current pending query"),this.currentPendingQuery=void 0,!0)},t.prototype.showExecutingQueryAnimation=function(){this.showingExecutingQueryAnimation||(y.$$(this.element).addClass("coveo-executing-query"),this.showingExecutingQueryAnimation=!0)},t.prototype.hideExecutingQueryAnimation=function(){this.showingExecutingQueryAnimation&&(y.$$(this.element).removeClass("coveo-executing-query"),this.showingExecutingQueryAnimation=!1)},t.prototype.keepLastSearchUid=function(e,t,n){return!0===n.keepLastSearchUid||this.searchInterface&&this.searchInterface.options&&this.searchInterface.options.enableHistory&&this.getLastQueryHash()==this.queryHash(e,t)},t.prototype.queryHash=function(e,t){var n=JSON.stringify(a.omit(e,"firstResult","groupBy","debug"));return null!=t&&(n+=t.pipeline),n},t.prototype.getCallOptions=function(){var e={options:{authentication:[]}};return y.$$(this.element).trigger(u.QueryEvents.buildingCallOptions,e),e.options},t.prototype.newQueryEvent=function(e){y.$$(this.element).trigger(u.QueryEvents.newQuery,e)},t.prototype.buildingQueryEvent=function(e){y.$$(this.element).trigger(u.QueryEvents.buildingQuery,e)},t.prototype.doneBuildingQueryEvent=function(e){y.$$(this.element).trigger(u.QueryEvents.doneBuildingQuery,e)},t.prototype.duringQueryEvent=function(e){y.$$(this.element).trigger(u.QueryEvents.duringQuery,e)},t.prototype.querySuccessEvent=function(e){y.$$(this.element).trigger(u.QueryEvents.querySuccess,e)},t.prototype.fetchMoreSuccessEvent=function(e){y.$$(this.element).trigger(u.QueryEvents.fetchMoreSuccess,e)},t.prototype.deferredQuerySuccessEvent=function(e){y.$$(this.element).trigger(u.QueryEvents.deferredQuerySuccess,e)},t.prototype.queryError=function(e){y.$$(this.element).trigger(u.QueryEvents.queryError,e)},t.prototype.preprocessResultsEvent=function(e){y.$$(this.element).trigger(u.QueryEvents.preprocessResults,e)},t.prototype.noResultEvent=function(e){y.$$(this.element).trigger(u.QueryEvents.noResults,e)},t.prototype.debugInfo=function(){var e=this,t={query:this.lastQuery};return null!=this.lastQueryResults&&(t.queryDuration=function(){return e.buildQueryDurationSection(e.lastQueryResults)},t.results=function(){return a.omit(e.lastQueryResults,"results")}),null!=this.currentError&&(t.error=function(){return e.currentError}),t},t.prototype.buildQueryDurationSection=function(e){var t=y.Dom.createElement("div",{className:"coveo-debug-queryDuration"}),n=y.Dom.createElement("div",{className:"coveo-debug-durations"}),i=h.BaseComponent.getComponentRef("Debug");return t.appendChild(n),a.forEach(i.durationKeys,function(i){var o=e[i];if(null!=o){n.appendChild(y.Dom.createElement("div",{className:"coveo-debug-duration",style:"width:"+o+"px","data-id":i}));var r=y.Dom.createElement("div",{className:"coveo-debug-duration-legend","data-id":i});t.appendChild(r);var s=y.Dom.createElement("span",{className:"coveo-debug-duration-label"});s.appendChild(document.createTextNode(i)),r.appendChild(s);var a=y.Dom.createElement("span",{className:"coveo-debug-duration-value"});a.appendChild(document.createTextNode(o)),r.appendChild(a)}}),t},t.prototype.logQueryInActionsHistory=function(e){var t={name:"Query",value:e.q,time:JSON.stringify(new Date)};this.historyStore.addElement(t)},t.ID="QueryController",t}(m.RootComponent);t.QueryController=w},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=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])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n(36),r=function(e){function t(t,n){var i=e.call(this,t,n)||this;return i.element=t,i.type=n,i}return i(t,e),t}(o.BaseComponent);t.RootComponent=r},function(e,t,n){var i=n(159)("wks"),o=n(161),r=n(38).Symbol,s="function"==typeof r;(e.exports=function(e){return i[e]||(i[e]=s&&r[e]||(s?r:o)("Symbol."+e))}).store=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(7),o=n(1),r=function(){function e(){}return Object.defineProperty(e,"allFacetsType",{get:function(){return["Facet","FacetSlider","FacetRange","TimespanFacet","HierarchicalFacet","CategoryFacet","DynamicFacet","DynamicFacetRange","DynamicHierarchicalFacet"]},enumerable:!0,configurable:!0}),Object.defineProperty(e,"allFacetsClassname",{get:function(){return e.allFacetsType.map(function(e){return"Coveo"+e})},enumerable:!0,configurable:!0}),e.getAllFacetElementsFromElement=function(t){var n=e.allFacetsClassname.map(function(e){return"."+e}).join(", "),i=function(e){return!o.$$(e).findAll(n).length};return o.$$(t).findAll(n).filter(i)},e.getAllFacetInstancesFromElement=function(t){return e.getAllFacetElementsFromElement(t).map(function(e){return i.Component.get(e)})},e.getAllFacetsFromSearchInterface=function(t){return e.allFacetsType.reduce(function(e,n){return e.concat(t.getComponents(n))},[])},e}();t.ComponentsTypes=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(4),r=n(73),s=n(181),a=function(){function e(){this.expression=new r.ExpressionBuilder,this.advancedExpression=new r.ExpressionBuilder,this.constantExpression=new r.ExpressionBuilder,this.longQueryExpression=new r.ExpressionBuilder,this.disjunctionExpression=new r.ExpressionBuilder,this.enableQuerySyntax=!1,this.firstResult=0,this.numberOfResults=10,this.requiredFields=[],this.includeRequiredFields=!1,this.enableDidYouMean=!1,this.enableDebug=!1,this.sortCriteria="relevancy",this.retrieveFirstSentences=!0,this.queryFunctions=[],this.rankingFunctions=[],this.groupByRequests=[],this.facetRequests=[],this.facetOptions={},this.categoryFacets=[],this.enableDuplicateFiltering=!1}return e.prototype.build=function(){return{q:this.expression.build(),aq:this.advancedExpression.build(),cq:this.constantExpression.build(),lq:this.longQueryExpression.build(),dq:this.disjunctionExpression.build(),searchHub:this.searchHub,tab:this.tab,locale:this.locale,pipeline:this.pipeline,maximumAge:this.maximumAge,wildcards:this.enableWildcards,questionMark:this.enableQuestionMarks,lowercaseOperators:this.enableLowercaseOperators,partialMatch:this.enablePartialMatch,partialMatchKeywords:this.partialMatchKeywords,partialMatchThreshold:this.partialMatchThreshold,firstResult:this.firstResult,numberOfResults:this.numberOfResults,excerptLength:this.excerptLength,filterField:this.filterField,filterFieldRange:this.filterFieldRange,parentField:this.parentField,childField:this.childField,fieldsToInclude:this.computeFieldsToInclude(),fieldsToExclude:this.fieldsToExclude,enableDidYouMean:this.enableDidYouMean,sortCriteria:this.sortCriteria,sortField:this.sortField,queryFunctions:this.queryFunctions,rankingFunctions:this.rankingFunctions,groupBy:this.groupBy,facets:this.facets,facetOptions:this.facetOptions,categoryFacets:this.categoryFacets,retrieveFirstSentences:this.retrieveFirstSentences,timezone:this.timezone,enableQuerySyntax:this.enableQuerySyntax,enableDuplicateFiltering:this.enableDuplicateFiltering,enableCollaborativeRating:this.enableCollaborativeRating,debug:this.enableDebug,context:this.context,actionsHistory:this.actionsHistory,recommendation:this.recommendation,allowQueriesWithoutKeywords:this.allowQueriesWithoutKeywords,userActions:this.userActions,commerce:this.commerce}},e.prototype.computeCompleteExpression=function(){return this.computeCompleteExpressionParts().full},e.prototype.computeCompleteExpressionParts=function(){return new s.QueryBuilderExpression(this.expression.build(),this.advancedExpression.build(),this.constantExpression.build(),this.disjunctionExpression.build())},e.prototype.computeCompleteExpressionExcept=function(e){return this.computeCompleteExpressionPartsExcept(e).full},e.prototype.computeCompleteExpressionPartsExcept=function(e){r.ExpressionBuilder.merge(this.expression,this.advancedExpression).remove(e);var t=new r.ExpressionBuilder;t.fromExpressionBuilder(this.expression),t.remove(e);var n=new r.ExpressionBuilder;n.fromExpressionBuilder(this.advancedExpression),n.remove(e);var i=new r.ExpressionBuilder;i.fromExpressionBuilder(this.constantExpression),i.remove(e);var o=new r.ExpressionBuilder;return o.fromExpressionBuilder(this.disjunctionExpression),o.remove(e),new s.QueryBuilderExpression(t.build(),n.build(),i.build(),o.build())},e.prototype.addFieldsToInclude=function(e){this.fieldsToInclude=i.uniq((this.fieldsToInclude||[]).concat(e))},e.prototype.addRequiredFields=function(e){this.requiredFields=i.uniq(this.requiredFields.concat(e))},e.prototype.addFieldsToExclude=function(e){this.fieldsToExclude=i.uniq((this.fieldsToInclude||[]).concat(e))},e.prototype.computeFieldsToInclude=function(){return this.includeRequiredFields||null!=this.fieldsToInclude?this.requiredFields.concat(this.fieldsToInclude||[]):null},e.prototype.addContextValue=function(e,t){null==this.context&&(this.context={}),this.context[e]=t},e.prototype.addContext=function(e){null==this.context&&(this.context={}),i.extend(this.context,e)},e.prototype.containsEndUserKeywords=function(){var e=this.build();return o.Utils.isNonEmptyString(e.q)||o.Utils.isNonEmptyString(e.lq)},Object.defineProperty(e.prototype,"groupBy",{get:function(){if(!o.Utils.isEmptyArray(this.groupByRequests))return this.groupByRequests},set:function(e){this.groupByRequests=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"facets",{get:function(){if(!o.Utils.isEmptyArray(this.facetRequests))return this.facetRequests},set:function(e){this.facetRequests=e},enumerable:!0,configurable:!0}),e}();t.QueryBuilder=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});!function(e){e[e.BOOLEAN=0]="BOOLEAN",e[e.NUMBER=1]="NUMBER",e[e.STRING=2]="STRING",e[e.LOCALIZED_STRING=3]="LOCALIZED_STRING",e[e.LIST=4]="LIST",e[e.SELECTOR=5]="SELECTOR",e[e.CHILD_HTML_ELEMENT=6]="CHILD_HTML_ELEMENT",e[e.TEMPLATE=7]="TEMPLATE",e[e.FIELD=8]="FIELD",e[e.FIELDS=9]="FIELDS",e[e.ICON=10]="ICON",e[e.COLOR=11]="COLOR",e[e.OBJECT=12]="OBJECT",e[e.QUERY=13]="QUERY",e[e.HELPER=14]="HELPER",e[e.LONG_STRING=15]="LONG_STRING",e[e.JSON=16]="JSON",e[e.JAVASCRIPT=17]="JAVASCRIPT",e[e.NONE=18]="NONE",e[e.QUERY_EXPRESSION=19]="QUERY_EXPRESSION"}(t.ComponentOptionsType||(t.ComponentOptionsType={}))},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=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])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n(214),r=n(215),s=n(0),a=function(){function e(e,t,n){var i=this;this.expression=t,this.input=n,s.isString(e)?this.value=e:s.isArray(e)&&(this.subResults=e,s.forEach(this.subResults,function(e){e.parent=i}))}return e.prototype.isSuccess=function(){return null!=this.value||null!=this.subResults&&s.all(this.subResults,function(e){return e.isSuccess()})},e.prototype.path=function(e){var t=null!=this.parent&&this.parent!=e?this.parent.path(e):[];return t.push(this),t},e.prototype.findParent=function(e){for(var t=this,n=s.isString(e)?function(t){return e==t.expression.id}:e;null!=t&&!n(t);)t=t.parent;return t},e.prototype.find=function(e){var t=s.isString(e)?function(t){return e==t.expression.id}:e;if(t(this))return this;if(this.subResults)for(var n=0;n<this.subResults.length;n++){var i=this.subResults[n].find(t);if(i)return i}return null},e.prototype.findAll=function(e){var t=[],n=s.isString(e)?function(t){return e==t.expression.id}:e;return n(this)&&t.push(this),this.subResults&&(t=s.reduce(this.subResults,function(e,t){return e.concat(t.findAll(n))},t)),t},e.prototype.resultAt=function(e,t){if(e<0||e>this.getLength())return[];if(null!=t){if(s.isString(t)){if(t==this.expression.id)return[this]}else if(t(this))return[this]}else{if(null!=(null==this.value&&null==this.subResults?this.input:this.value))return[this]}if(null!=this.subResults){for(var n=[],i=0;i<this.subResults.length;i++){var o=this.subResults[i];if(n=n.concat(o.resultAt(e,t)),(e-=o.getLength())<0)break}return n}return[]},e.prototype.getExpect=function(){return null==this.value&&null==this.subResults?[this]:null!=this.subResults?s.reduce(this.subResults,function(e,t){return e.concat(t.getExpect())},[]):[]},e.prototype.getBestExpect=function(){var e=this.getExpect(),t=s.groupBy(e,function(e){return e.input}),n=s.last(s.keys(t).sort(function(e,t){return t.length-e.length})),i=t[n],t=s.groupBy(i,function(e){return e.expression.id});return s.map(t,function(e){return s.chain(e).map(function(e){return{path:e.path().length,result:e}}).sortBy("path").pluck("result").first().value()})},e.prototype.getHumanReadableExpect=function(){var e=this.getBestExpect(),t=e.length>0?s.last(e).input:"";return"Expected "+s.map(e,function(e){return e.getHumanReadable()}).join(" or ")+" but "+(t.length>0?JSON.stringify(t[0]):"end of input")+" found."},e.prototype.before=function(){if(null==this.parent)return"";var e=s.indexOf(this.parent.subResults,this);return this.parent.before()+s.chain(this.parent.subResults).first(e).map(function(e){return e.toString()}).join("").value()},e.prototype.after=function(){if(null==this.parent)return"";var e=s.indexOf(this.parent.subResults,this);return s.chain(this.parent.subResults).last(this.parent.subResults.length-e-1).map(function(e){return e.toString()}).join("").value()+this.parent.after()},e.prototype.getLength=function(){return null!=this.value?this.value.length:null!=this.subResults?s.reduce(this.subResults,function(e,t){return e+t.getLength()},0):this.input.length},e.prototype.toHtmlElement=function(){var e=document.createElement("span"),t=null!=this.expression?this.expression.id:null;return null!=t&&e.setAttribute("data-id",t),e.setAttribute("data-success",this.isSuccess().toString()),null!=this.value?(e.appendChild(document.createTextNode(this.value)),e.setAttribute("data-value",this.value)):null!=this.subResults?s.each(this.subResults,function(t){e.appendChild(t.toHtmlElement())}):(e.appendChild(document.createTextNode(this.input)),e.setAttribute("data-input",this.input),e.className="magic-box-error"+(this.input.length>0?"":" magic-box-error-empty")),e.result=this,e},e.prototype.clean=function(t){if(null!=t||!this.isSuccess()){t=t||s.last(this.getBestExpect()).path(this);var n=s.first(t);if(null!=n){var i=s.indexOf(this.subResults,n),o=-1==i?[]:s.map(s.first(this.subResults,i),function(e){return e.clean()});return o.push(n.clean(s.rest(t))),new e(o,this.expression,this.input)}return new e(null,this.expression,this.input)}return null!=this.value?new e(this.value,this.expression,this.input):null!=this.subResults?new e(s.map(this.subResults,function(e){return e.clean()}),this.expression,this.input):void 0},e.prototype.clone=function(){return null!=this.value?new e(this.value,this.expression,this.input):null!=this.subResults?new e(s.map(this.subResults,function(e){return e.clone()}),this.expression,this.input):new e(null,this.expression,this.input)},e.prototype.toString=function(){return null!=this.value?this.value:null!=this.subResults?s.map(this.subResults,function(e){return e.toString()}).join(""):this.input},e.prototype.getHumanReadable=function(){return this.expression instanceof r.ExpressionConstant?JSON.stringify(this.expression.value):this.expression.id},e}();t.Result=a;var u=function(e){function t(t){var n=e.call(this,[t],o.ExpressionEndOfInput,t.input)||this,i=new a(null,o.ExpressionEndOfInput,t.input.substr(t.getLength()));return i.parent=n,n.subResults.push(i),n}return i(t,e),t}(a);t.EndOfInputResult=u},function(e,t,n){"use strict";function i(e,t,n){return{originalMethod:n.value,nbParams:e[t].prototype.constructor.length}}function o(){return{url:"",queryString:[],requestData:{},method:"",responseType:"",errorsAsSuccess:!1}}function r(e,t){return t[e-1]||(t[e-1]=o()),t[e-1]}function s(e){return function(t,n,o){var s=i(t,n,o),a=s.originalMethod,u=s.nbParams;return o.value=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return r(u,t).url=this.buildBaseUri(e),a.apply(this,t)},o}}function a(e){return function(t,n,o){var s=i(t,n,o),a=s.originalMethod,u=s.nbParams;return o.value=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return r(u,t).url=this.buildSearchAlertsUri(e),a.apply(this,t)},o}}function u(e){return function(t,n,o){var s=i(t,n,o),a=s.originalMethod,u=s.nbParams;return o.value=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return r(u,t).requestDataType=e,a.apply(this,t)},o}}function l(e){return function(t,n,o){var s=i(t,n,o),a=s.originalMethod,u=s.nbParams;return o.value=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return r(u,t).method=e,a.apply(this,t)},o}}function c(e){return function(t,n,o){var s=i(t,n,o),a=s.originalMethod,u=s.nbParams;return o.value=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return r(u,t).responseType=e,a.apply(this,t)},o}}function p(e){return void 0===e&&(e="access_token"),function(t,n,o){var s=i(t,n,o),a=s.originalMethod,u=s.nbParams,l=function(e,t){var n=[];return R.Utils.isNonEmptyString(t.accessToken.token)&&n.push(e+"="+R.Utils.safeEncodeURIComponent(t.accessToken.token)),n};return o.value=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var i=l(e,this),o=r(u,t);return o.queryString=(o.queryString||[]).concat(i),a.apply(this,t)},o}}function d(e){return void 0===e&&(e=M.buildHistoryStore()),function(t,n,o){var s=i(t,n,o),a=s.originalMethod,u=s.nbParams;return o.value=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var i=e.getHistory();return null==i&&(i=[]),r(u,t).requestData.actionsHistory=i,a.apply(this,t)},o}}function h(){return function(e,t,n){var o=i(e,t,n),s=o.originalMethod,a=o.nbParams;return n.value=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=document.referrer;return null==n&&(n=""),r(a,e).requestData.referrer=n,s.apply(this,e)},n}}function f(){return function(e,t,n){var o=i(e,t,n),s=o.originalMethod,a=o.nbParams;return n.value=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=new V.AnalyticsInformation,i={clientId:n.clientId,documentLocation:n.location,documentReferrer:n.referrer,pageId:n.lastPageId};return r(a,e).requestData.analytics=k.mapObject(i,function(e){return e||""}),s.apply(this,e)},n}}function m(){return function(e,t,n){var o=i(e,t,n),s=o.originalMethod,a=o.nbParams;return n.value=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return r(a,e).requestData.visitorId=(new V.AnalyticsInformation).clientId,s.apply(this,e)},n}}function y(){return function(e,t,n){var o=i(e,t,n),s=o.originalMethod,a=o.nbParams;return n.value=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=this.options.isGuestUser;return r(a,e).requestData.isGuestUser=n,s.apply(this,e)},n}}var g=this&&this.__assign||Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},v=this&&this.__decorate||function(e,t,n,i){var o,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(r<3?o(s):r>3?o(t,n,s):o(t,n))||s);return r>3&&s&&Object.defineProperty(t,n,s),s},b=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))(function(o,r){function s(e){try{u(i.next(e))}catch(e){r(e)}}function a(e){try{u(i.throw(e))}catch(e){r(e)}}function u(e){e.done?o(e.value):new n(function(t){t(e.value)}).then(s,a)}u((i=i.apply(e,t||[])).next())})},S=this&&this.__generator||function(e,t){function n(e){return function(t){return i([e,t])}}function i(n){if(o)throw new TypeError("Generator is already executing.");for(;u;)try{if(o=1,r&&(s=r[2&n[0]?"return":n[0]?"throw":"next"])&&!(s=s.call(r,n[1])).done)return s;switch(r=0,s&&(n=[0,s.value]),n[0]){case 0:case 1:s=n;break;case 4:return u.label++,{value:n[1],done:!1};case 5:u.label++,r=n[1],n=[0];continue;case 7:n=u.ops.pop(),u.trys.pop();continue;default:if(s=u.trys,!(s=s.length>0&&s[s.length-1])&&(6===n[0]||2===n[0])){u=0;continue}if(3===n[0]&&(!s||n[1]>s[0]&&n[1]<s[3])){u.label=n[1];break}if(6===n[0]&&u.label<s[1]){u.label=s[1],s=n;break}if(s&&u.label<s[2]){u.label=s[2],u.ops.push(n);break}s[2]&&u.ops.pop(),u.trys.pop();continue}n=t.call(e,u)}catch(e){n=[6,e],r=0}finally{o=s=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}var o,r,s,a,u={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return a={next:n(0),throw:n(1),return:n(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a};Object.defineProperty(t,"__esModule",{value:!0});var C=n(88),w=n(9),_=n(5),O=n(98),x=n(304),E=n(305),A=n(21),T=n(141),R=n(4),F=n(0),M=n(86),I=n(72),P=n(43),D=n(145),$=n(313),N=n(321),k=n(0),V=n(66),L=function(){function e(){this.version="v2",this.queryStringArguments={},this.anonymous=!1,this.isGuestUser=!1}return e}();t.DefaultSearchEndpointOptions=L;var B=function(){function e(t){var n=this;this.options=t,_.Assert.exists(t),_.Assert.exists(t.restUri);var i=new L;i.anonymous=0==window.location.href.indexOf("file://")&&R.Utils.isNonEmptyString(t.accessToken),this.options=F.extend({},i,t),this.accessToken=new D.AccessToken(this.options.accessToken,this.options.renewAccessToken),this.accessToken.subscribeToRenewal(function(){return n.createEndpointCaller()}),e.isDebugArgumentPresent()&&(this.options.queryStringArguments.debug=1),this.onUnload=function(){n.handleUnload()},window.addEventListener("beforeunload",this.onUnload),this.logger=new w.Logger(this),this.createEndpointCaller()}return e.configureSampleEndpoint=function(t){e.isUseLocalArgumentPresent()?e.endpoints.default=new e(F.extend({restUri:"http://localhost:8100/rest/search",searchAlertsUri:"http://localhost:8088/rest/search/alerts/"},t)):e.endpoints.default=new e(F.extend({restUri:"https://cloudplatform.coveo.com/rest/search",accessToken:"52d806a2-0f64-4390-a3f2-e0f41a4a73ec"},t))},e.configureSampleEndpointV2=function(t){e.endpoints.default=new e(F.extend({restUri:"https://platform.cloud.coveo.com/rest/search",accessToken:"xx564559b1-0045-48e1-953c-3addd1ee4457",queryStringArguments:{organizationId:"searchuisamples",viewAllContent:1}},t))},e.configureCloudEndpoint=function(t,n,i,o){void 0===i&&(i="https://cloudplatform.coveo.com/rest/search");var r={restUri:i,accessToken:n,queryStringArguments:{organizationId:t}},s=e.mergeConfigOptions(r,o);e.endpoints.default=new e(e.removeUndefinedConfigOption(s))},e.configureCloudV2Endpoint=function(t,n,i,o){return void 0===i&&(i="https://platform.cloud.coveo.com/rest/search"),e.configureCloudEndpoint(t,n,i,o)},e.configureOnPremiseEndpoint=function(t,n,i){var o=e.mergeConfigOptions({restUri:t,accessToken:n},i);e.endpoints.default=new e(e.removeUndefinedConfigOption(o))},Object.defineProperty(e,"defaultEndpoint",{get:function(){return this.endpoints.default||F.find(e.endpoints,function(e){return null!=e})},enumerable:!0,configurable:!0}),e.removeUndefinedConfigOption=function(e){return F.each(F.keys(e),function(t){void 0==e[t]&&delete e[t]}),e},e.mergeConfigOptions=function(t,n){return t=e.removeUndefinedConfigOption(t),n=e.removeUndefinedConfigOption(n),F.extend({},t,n)},e.prototype.reset=function(){this.createEndpointCaller()},e.prototype.setRequestModifier=function(e){this.caller.options.requestModifier=e},e.prototype.getBaseUri=function(){return this.buildBaseUri("")},e.prototype.getBaseAlertsUri=function(){return this.buildSearchAlertsUri("")},e.prototype.getAuthenticationProviderUri=function(e,t,n,i,o){return P.UrlUtils.normalizeAsString({paths:[o.url,e],queryAsString:o.queryString,query:g({redirectUri:t,message:n},this.buildBaseQueryString(i))})},e.prototype.exchangeHandshakeToken=function(e,t,n){return b(this,void 0,void 0,function(){var i,o;return S(this,function(r){switch(r.label){case 0:return i=this.buildCompleteCall(e,t,n),[4,this.performOneCall(i.params,i.options)];case 1:if(o=r.sent(),!o.token)throw new Error("Failed to exchange handshake token.");return[2,o.token]}})})},e.prototype.isJsonp=function(){return this.caller.useJsonp},e.prototype.buildCompleteCall=function(e,t,n){return _.Assert.exists(e),n=g({},n,{requestData:g({},n.requestData,F.omit(e,function(e){return R.Utils.isNullOrUndefined(e)}))}),{options:t,params:n}},e.prototype.search=function(e,t,n){var i=this,o=this.buildCompleteCall(e,t,n);this.logger.info("Performing REST query",e);var r=new Date;return this.performOneCall(o.params,o.options).then(function(t){return i.logger.info("REST query successful",t,e),null==t.apiVersion&&(t.apiVersion=1),t.apiVersion<O.version.supportedApiVersion&&i.logger.error("Please update your REST Search API"),t.searchAPIDuration=t.duration,t.duration=I.TimeSpan.fromDates(r,new Date).getMilliseconds(),R.Utils.isNullOrEmptyString(t.searchUid)&&(t.searchUid=A.QueryUtils.createGuid()),A.QueryUtils.setIndexAndUidOnQueryResults(e,t,t.searchUid,t.pipeline,t.splitTestRun),A.QueryUtils.setTermsToHighlightOnQueryResults(e,t),t})},e.prototype.fetchBinary=function(e,t,n){return b(this,void 0,void 0,function(){var i;return S(this,function(o){return i=this.buildCompleteCall(e,t,n),this.logger.info("Performing REST query",e),[2,this.performOneCall(i.params,i.options)]})})},e.prototype.plan=function(e,t,n){return b(this,void 0,void 0,function(){var i,o;return S(this,function(r){switch(r.label){case 0:return i=this.buildCompleteCall(e,t,n),this.logger.info("Performing REST query PLAN",e),[4,this.performOneCall(i.params,i.options)];case 1:return o=r.sent(),this.logger.info("REST query successful",o,e),[2,new N.ExecutionPlan(o)]}})})},e.prototype.getExportToExcelLink=function(e,t,n,i){return P.UrlUtils.normalizeAsString({paths:i.url,queryAsString:i.queryString,query:g({numberOfResults:t?t.toString():null,format:"xlsx"},this.buildQueryAsQueryString(null,e),this.buildBaseQueryString(n))})},e.prototype.getRawDataStream=function(e,t,n,i){var o=this;return _.Assert.exists(e),i=P.UrlUtils.merge(i,{paths:i.url,query:g({dataStream:t},this.buildViewAsHtmlQueryString(e,n))}),this.logger.info("Performing REST query for datastream "+t+" on item uniqueID "+e),this.performOneCall(i,n).then(function(t){return o.logger.info("REST query successful",t,e),t})},e.prototype.getViewAsDatastreamUri=function(e,t,n,i){return void 0===n&&(n={}),P.UrlUtils.normalizeAsString({paths:i.url,queryAsString:i.queryString,query:g({dataStream:t},this.buildViewAsHtmlQueryString(e,n),this.buildQueryAsQueryString(n.query,n.queryObject),this.buildBaseQueryString(n))})},e.prototype.getDocument=function(e,t,n){var i=this;return n=P.UrlUtils.merge(n,{paths:n.url,queryAsString:n.queryString,query:g({},this.buildViewAsHtmlQueryString(e,t))}),this.logger.info("Performing REST query to retrieve document",e),this.performOneCall(n,t).then(function(t){return i.logger.info("REST query successful",t,e),t})},e.prototype.getDocumentText=function(e,t,n){var i=this;return n=P.UrlUtils.merge(n,{paths:n.url,queryAsString:n.queryString,query:g({},this.buildViewAsHtmlQueryString(e,t))}),this.logger.info('Performing REST query to retrieve "TEXT" version of document',e),this.performOneCall(n,t).then(function(t){return i.logger.info("REST query successful",t,e),t.content})},e.prototype.getDocumentHtml=function(e,t,n){var i=this;return t=g({},t),n=P.UrlUtils.merge(g({},n,{requestData:t.queryObject||{q:t.query}}),{paths:n.url,queryAsString:n.queryString,query:g({},this.buildViewAsHtmlQueryString(e,t))}),this.logger.info('Performing REST query to retrieve "HTML" version of document',e),this.performOneCall(n,t).then(function(t){return i.logger.info("REST query successful",t,e),t})},e.prototype.getViewAsHtmlUri=function(e,t,n){return P.UrlUtils.normalizeAsString({paths:n.url,queryAsString:n.queryString,query:g({},this.buildViewAsHtmlQueryString(e,t),this.buildBaseQueryString(t))})},e.prototype.listFieldValues=function(e,t,n){var i=this;return _.Assert.exists(e),n=g({},n,{requestData:g({},n.requestData,e)}),this.logger.info("Listing field values",e),this.performOneCall(n,t).then(function(t){return i.logger.info("REST list field values successful",t.values,e),t.values})},e.prototype.listFieldValuesBatch=function(e,t,n){var i=this;return _.Assert.exists(e),n=g({},n,{requestData:g({},n.requestData,e)}),this.logger.info("Listing field batch values",e),this.performOneCall(n,t).then(function(t){return i.logger.info("REST list field batch values successful",t.batch,e),t.batch})},e.prototype.listFields=function(e,t){var n=this;return this.logger.info("Listing fields"),this.performOneCall(t,e).then(function(e){return n.logger.info("REST list fields successful",e.fields),e.fields})},e.prototype.extensions=function(e,t){var n=this;return this.logger.info("Performing REST query to list extensions"),this.performOneCall(t,e).then(function(e){return n.logger.info("REST query successful",e),e})},e.prototype.rateDocument=function(e,t,n){var i=this;return this.logger.info("Performing REST query to rate a document",e),n=g({},n,{requestData:g({},n.requestData,e)}),this.performOneCall(n,t).then(function(){return i.logger.info("REST query successful",e),!0})},e.prototype.tagDocument=function(e,t,n){var i=this;return this.logger.info("Performing REST query to tag an item",e),n=g({},n,{requestData:g({},n.requestData,e)}),this.performOneCall(n,t).then(function(){return i.logger.info("REST query successful",e),!0})},e.prototype.getQuerySuggest=function(e,t,n){var i=this,o=this.buildCompleteCall(e,t,n);return this.logger.info("Performing REST query to get query suggest",e),this.performOneCall(o.params,o.options).then(function(e){return i.logger.info("REST query successful",e),e})},e.prototype.getRevealQuerySuggest=function(e,t,n){return this.getQuerySuggest(e,t,n)},e.prototype.facetSearch=function(e,t,n){return b(this,void 0,void 0,function(){var i,o;return S(this,function(r){switch(r.label){case 0:return i=this.buildCompleteCall(e,t,n),this.logger.info("Performing REST query to get facet search results",e),[4,this.performOneCall(i.params,i.options)];case 1:return o=r.sent(),this.logger.info("REST query successful",o),[2,o]}})})},e.prototype.follow=function(e,t,n){var i=this;return n.requestData=e,this.logger.info("Performing REST query to follow an item or a query",e),this.performOneCall(n,t).then(function(e){return i.logger.info("REST query successful",e),e})},e.prototype.listSubscriptions=function(e,t,n){var i=this;return this.options.isGuestUser?new Promise(function(e,t){t()}):(null==this.currentListSubscriptions&&(n=P.UrlUtils.merge(n,{paths:n.url,query:{page:e||0}}),this.logger.info("Performing REST query to list subscriptions"),this.currentListSubscriptions=this.performOneCall(n,t),this.currentListSubscriptions.then(function(e){return i.currentListSubscriptions=null,i.logger.info("REST query successful",e),e}).catch(function(e){if(403!=e.status)throw e})),this.currentListSubscriptions)},e.prototype.updateSubscription=function(e,t,n){var i=this;return n=P.UrlUtils.merge(g({},n,{requestData:g({},n.requestData,e)}),{paths:[n.url,e.id]}),this.logger.info("Performing REST query to update a subscription",e),this.performOneCall(n,t).then(function(e){return i.logger.info("REST query successful",e),e})},e.prototype.deleteSubscription=function(e,t,n){var i=this;return n=P.UrlUtils.merge(n,{paths:[n.url,e.id]}),this.logger.info("Performing REST query to delete a subscription",e),this.performOneCall(n,t).then(function(e){return i.logger.info("REST query successful",e),e})},e.prototype.logError=function(e,t,n){return n=g({},n,{requestData:g({},n.requestData,e)}),this.performOneCall(n,t).then(function(){return!0}).catch(function(){return!1})},e.prototype.nuke=function(){window.removeEventListener("beforeunload",this.onUnload)},e.prototype.createEndpointCaller=function(){this.caller=new C.EndpointCaller(g({},this.options,{accessToken:this.accessToken.token}))},e.isDebugArgumentPresent=function(){return/[?&]debug=1([&]|$)/.test(window.location.search)},e.isUseLocalArgumentPresent=function(){return/[?&]useLocal=1([&]|$)/.test(window.location.search)},e.prototype.handleUnload=function(){this.isRedirecting=!0},e.prototype.buildBaseUri=function(e){return _.Assert.isString(e),P.UrlUtils.normalizeAsString({paths:[this.options.restUri,this.options.version,e]})},e.prototype.buildSearchAlertsUri=function(e){_.Assert.isString(e);var t=this.options.searchAlertsUri||P.UrlUtils.normalizeAsString({paths:[this.options.restUri,"/alerts"]});return P.UrlUtils.normalizeAsString({paths:[t,e]})},e.prototype.buildBaseQueryString=function(e){return e=g({},e),F.isArray(e.authentication)&&R.Utils.isNonEmptyArray(e.authentication)?g({},this.options.queryStringArguments,{authentication:e.authentication.join(",")}):g({},this.options.queryStringArguments)},e.prototype.buildQueryAsQueryString=function(e,t){t=g({},t);var n={};["q","aq","cq","dq","searchHub","tab","locale","pipeline","lowercaseOperators","timezone"].forEach(function(e){n[e]=t[e]});var i={};if(F.pairs(t.context).forEach(function(e){var t=e[0],n=e[1];i["context["+R.Utils.safeEncodeURIComponent(t)+"]"]=n}),t.fieldsToInclude){var o=t.fieldsToInclude.map(function(e){return'"'+R.Utils.safeEncodeURIComponent(e.replace("@",""))+'"'});n.fieldsToInclude="["+o.join(",")+"]"}return g({q:e},i,n)},e.prototype.buildViewAsHtmlQueryString=function(e,t){return t=F.extend({},t),{uniqueId:R.Utils.safeEncodeURIComponent(e),enableNavigation:"true",requestedOutputSize:t.requestedOutputSize?t.requestedOutputSize.toString():null,contentType:t.contentType}},e.prototype.performOneCall=function(e,t){return b(this,void 0,void 0,function(){var n,i,o,r,s,a,i,u=this;return S(this,function(l){switch(l.label){case 0:e=P.UrlUtils.merge(e,{paths:e.url,queryAsString:e.queryString,query:g({},this.buildBaseQueryString(t))}),n=function(){return u.caller.call(e)},l.label=1;case 1:return l.trys.push([1,3,,10]),[4,n()];case 2:return i=l.sent(),[2,i.data];case 3:if(!(o=l.sent()))throw new Error("Request failed but it did not return an error.");switch(r=o.statusCode,s=r){case 419:return[3,4];case 429:return[3,6]}return[3,8];case 4:return[4,this.accessToken.doRenew()];case 5:if(!(a=l.sent()))throw this.handleErrorResponse(o);return[2,this.performOneCall(e,t)];case 6:return[4,this.backOffThrottledRequest(n)];case 7:return i=l.sent(),[2,i.data];case 8:throw this.handleErrorResponse(o);case 9:return[3,10];case 10:return[2]}})})},e.prototype.backOffThrottledRequest=function(e){return b(this,void 0,void 0,function(){var t,n,i,o=this;return S(this,function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),t={retry:function(e,t){return o.retryIf429Error(e,t)}},n={fn:e,options:t},[4,$.BackOffRequest.enqueue(n)];case 1:return[2,r.sent()];case 2:throw i=r.sent(),this.handleErrorResponse(i);case 3:return[2]}})})},e.prototype.retryIf429Error=function(e,t){return!!this.isThrottled(e)&&(this.logger.info("Resending the request because it was throttled. Retry attempt "+t),!0)},e.prototype.isThrottled=function(e){return e&&429===e.statusCode},e.prototype.handleErrorResponse=function(e){return this.isMissingAuthenticationProviderStatus(e.statusCode)?new E.MissingAuthenticationError(e.data.provider):e.data&&e.data.message&&e.data.type?new T.QueryError(e):e.data&&e.data.message?new x.AjaxError("Request Error : "+e.data.message,e.statusCode):new x.AjaxError("Request Error",e.statusCode)},e.prototype.isMissingAuthenticationProviderStatus=function(e){return 402==e},e.endpoints={},v([s("/login/"),p()],e.prototype,"getAuthenticationProviderUri",null),v([s("/login/handshake/token"),l("POST"),u("application/json"),c("json")],e.prototype,"exchangeHandshakeToken",null),v([d(),h(),f(),m(),y()],e.prototype,"buildCompleteCall",null),v([s("/"),l("POST"),c("text")],e.prototype,"search",null),v([s("/"),l("POST"),c("arraybuffer")],e.prototype,"fetchBinary",null),v([s("/plan"),l("POST"),u("application/json"),c("json")],e.prototype,"plan",null),v([s("/"),p()],e.prototype,"getExportToExcelLink",null),v([s("/datastream"),p(),l("GET"),c("arraybuffer")],e.prototype,"getRawDataStream",null),v([s("/datastream"),p()],e.prototype,"getViewAsDatastreamUri",null),v([s("/document"),l("GET"),c("text")],e.prototype,"getDocument",null),v([s("/text"),l("GET"),c("text")],e.prototype,"getDocumentText",null),v([s("/html"),l("POST"),c("document")],e.prototype,"getDocumentHtml",null),v([s("/html"),p()],e.prototype,"getViewAsHtmlUri",null),v([s("/values"),l("POST"),c("text")],e.prototype,"listFieldValues",null),v([s("/values/batch"),l("POST"),c("text")],e.prototype,"listFieldValuesBatch",null),v([s("/fields"),l("GET"),c("text")],e.prototype,"listFields",null),v([s("/extensions"),l("GET"),c("text")],e.prototype,"extensions",null),v([s("/rating"),l("POST"),c("text")],e.prototype,"rateDocument",null),v([s("/tag"),l("POST"),c("text")],e.prototype,"tagDocument",null),v([s("/querySuggest"),l("POST"),c("text")],e.prototype,"getQuerySuggest",null),v([s("/facet"),l("POST"),u("application/json"),c("text")],e.prototype,"facetSearch",null),v([a("/subscriptions"),p("accessToken"),l("POST"),u("application/json"),c("text")],e.prototype,"follow",null),v([a("/subscriptions"),p("accessToken"),l("GET"),u("application/json"),c("text")],e.prototype,"listSubscriptions",null),v([a("/subscriptions/"),p("accessToken"),l("PUT"),u("application/json"),c("text")],e.prototype,"updateSubscription",null),v([a("/subscriptions/"),p("accessToken"),l("DELETE"),u("application/json"),c("text")],e.prototype,"deleteSubscription",null),v([s("/log"),l("POST")],e.prototype,"logError",null),e}();t.SearchEndpoint=B},function(e,t,n){"use strict";function i(e,t){var n=Object.create(e.prototype);for(var i in t)n[i]=t[i];return n}function o(){}function r(){return this.rgb().formatHex()}function s(){return v(this).formatHsl()}function a(){return this.rgb().formatRgb()}function u(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Q.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?l(t):3===n?new h(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?c(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?c(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=j.exec(e))?new h(t[1],t[2],t[3],1):(t=H.exec(e))?new h(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=q.exec(e))?c(t[1],t[2],t[3],t[4]):(t=z.exec(e))?c(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=W.exec(e))?g(t[1],t[2]/100,t[3]/100,1):(t=G.exec(e))?g(t[1],t[2]/100,t[3]/100,t[4]):Y.hasOwnProperty(e)?l(Y[e]):"transparent"===e?new h(NaN,NaN,NaN,0):null}function l(e){return new h(e>>16&255,e>>8&255,255&e,1)}function c(e,t,n,i){return i<=0&&(e=t=n=NaN),new h(e,t,n,i)}function p(e){return e instanceof o||(e=u(e)),e?(e=e.rgb(),new h(e.r,e.g,e.b,e.opacity)):new h}function d(e,t,n,i){return 1===arguments.length?p(e):new h(e,t,n,null==i?1:i)}function h(e,t,n,i){this.r=+e,this.g=+t,this.b=+n,this.opacity=+i}function f(){return"#"+y(this.r)+y(this.g)+y(this.b)}function m(){var e=this.opacity;return e=isNaN(e)?1:Math.max(0,Math.min(1,e)),(1===e?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===e?")":", "+e+")")}function y(e){return e=Math.max(0,Math.min(255,Math.round(e)||0)),(e<16?"0":"")+e.toString(16)}function g(e,t,n,i){return i<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new S(e,t,n,i)}function v(e){if(e instanceof S)return new S(e.h,e.s,e.l,e.opacity);if(e instanceof o||(e=u(e)),!e)return new S;if(e instanceof S)return e;e=e.rgb();var t=e.r/255,n=e.g/255,i=e.b/255,r=Math.min(t,n,i),s=Math.max(t,n,i),a=NaN,l=s-r,c=(s+r)/2;return l?(a=t===s?(n-i)/l+6*(n<i):n===s?(i-t)/l+2:(t-n)/l+4,l/=c<.5?s+r:2-s-r,a*=60):l=c>0&&c<1?0:a,new S(a,l,c,e.opacity)}function b(e,t,n,i){return 1===arguments.length?v(e):new S(e,t,n,null==i?1:i)}function S(e,t,n,i){this.h=+e,this.s=+t,this.l=+n,this.opacity=+i}function C(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}function w(e){if(e instanceof x)return new x(e.l,e.a,e.b,e.opacity);if(e instanceof P)return D(e);e instanceof h||(e=p(e));var t,n,i=R(e.r),o=R(e.g),r=R(e.b),s=E((.2225045*i+.7168786*o+.0606169*r)/X);return i===o&&o===r?t=n=s:(t=E((.4360747*i+.3850649*o+.1430804*r)/Z),n=E((.0139322*i+.0971045*o+.7141733*r)/ee)),new x(116*s-16,500*(t-s),200*(s-n),e.opacity)}function _(e,t){return new x(e,0,0,null==t?1:t)}function O(e,t,n,i){return 1===arguments.length?w(e):new x(e,t,n,null==i?1:i)}function x(e,t,n,i){this.l=+e,this.a=+t,this.b=+n,this.opacity=+i}function E(e){return e>oe?Math.pow(e,1/3):e/ie+te}function A(e){return e>ne?e*e*e:ie*(e-te)}function T(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function R(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function F(e){if(e instanceof P)return new P(e.h,e.c,e.l,e.opacity);if(e instanceof x||(e=w(e)),0===e.a&&0===e.b)return new P(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*J;return new P(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function M(e,t,n,i){return 1===arguments.length?F(e):new P(n,t,e,null==i?1:i)}function I(e,t,n,i){return 1===arguments.length?F(e):new P(e,t,n,null==i?1:i)}function P(e,t,n,i){this.h=+e,this.c=+t,this.l=+n,this.opacity=+i}function D(e){if(isNaN(e.h))return new x(e.l,0,0,e.opacity);var t=e.h*K;return new x(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}function $(e){if(e instanceof k)return new k(e.h,e.s,e.l,e.opacity);e instanceof h||(e=p(e));var t=e.r/255,n=e.g/255,i=e.b/255,o=(de*i+ce*t-pe*n)/(de+ce-pe),r=i-o,s=(le*(n-o)-ae*r)/ue,a=Math.sqrt(s*s+r*r)/(le*o*(1-o)),u=a?Math.atan2(s,r)*J-120:NaN;return new k(u<0?u+360:u,a,o,e.opacity)}function N(e,t,n,i){return 1===arguments.length?$(e):new k(e,t,n,null==i?1:i)}function k(e,t,n,i){this.h=+e,this.s=+t,this.l=+n,this.opacity=+i}var V=function(e,t,n){e.prototype=t.prototype=n,n.constructor=e},L="\\s*([+-]?\\d+)\\s*",B="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",U="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Q=/^#([0-9a-f]{3,8})$/,j=new RegExp("^rgb\\("+[L,L,L]+"\\)$"),H=new RegExp("^rgb\\("+[U,U,U]+"\\)$"),q=new RegExp("^rgba\\("+[L,L,L,B]+"\\)$"),z=new RegExp("^rgba\\("+[U,U,U,B]+"\\)$"),W=new RegExp("^hsl\\("+[B,U,U]+"\\)$"),G=new RegExp("^hsla\\("+[B,U,U,B]+"\\)$"),Y={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};V(o,u,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:r,formatHex:r,formatHsl:s,formatRgb:a,toString:a}),V(h,d,i(o,{brighter:function(e){return e=null==e?1/.7:Math.pow(1/.7,e),new h(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new h(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:f,formatHex:f,formatRgb:m,toString:m})),V(S,b,i(o,{brighter:function(e){return e=null==e?1/.7:Math.pow(1/.7,e),new S(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new S(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,i=n+(n<.5?n:1-n)*t,o=2*n-i;return new h(C(e>=240?e-240:e+120,o,i),C(e,o,i),C(e<120?e+240:e-120,o,i),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return e=isNaN(e)?1:Math.max(0,Math.min(1,e)),(1===e?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===e?")":", "+e+")")}}));const K=Math.PI/180,J=180/Math.PI,Z=.96422,X=1,ee=.82521,te=4/29,ne=6/29,ie=3*ne*ne,oe=ne*ne*ne;V(x,O,i(o,{brighter:function(e){return new x(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker:function(e){return new x(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb:function(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return t=Z*A(t),e=X*A(e),n=ee*A(n),new h(T(3.1338561*t-1.6168667*e-.4906146*n),T(-.9787684*t+1.9161415*e+.033454*n),T(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),V(P,I,i(o,{brighter:function(e){return new P(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker:function(e){return new P(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb:function(){return D(this).rgb()}}));var re=-.14861,se=1.78277,ae=-.29227,ue=-.90649,le=1.97294,ce=le*ue,pe=le*se,de=se*ae-ue*re;V(k,N,i(o,{brighter:function(e){return e=null==e?1/.7:Math.pow(1/.7,e),new k(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new k(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=isNaN(this.h)?0:(this.h+120)*K,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),i=Math.cos(e),o=Math.sin(e);return new h(255*(t+n*(re*i+se*o)),255*(t+n*(ae*i+ue*o)),255*(t+n*(le*i)),this.opacity)}})),n.d(t,"a",function(){return u}),n.d(t,"h",function(){return d}),n.d(t,"e",function(){return b}),n.d(t,"f",function(){return O}),n.d(t,"d",function(){return I}),n.d(t,"g",function(){return M}),n.d(t,"c",function(){return _}),n.d(t,"b",function(){return N})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(5);n(302),t.MEDIUM_SCREEN_WIDTH=800,t.SMALL_SCREEN_WIDTH=480;var o=function(){function e(e){void 0===e&&(e=window),this.windoh=e,this.responsiveMode="auto"}return e.prototype.setSmallScreenWidth=function(e){i.Assert.check("auto"===this.responsiveMode,"Cannot modify medium screen width if responsiveMode is locked on "+this.responsiveMode+"."),i.Assert.check(e<this.getMediumScreenWidth(),"Cannot set small screen width ("+e+") larger or equal to the current medium screen width ("+this.getMediumScreenWidth()+")"),this.smallScreenWidth=e},e.prototype.setMediumScreenWidth=function(e){i.Assert.check("auto"===this.responsiveMode,"Cannot modify medium screen width if responsiveMode is locked on "+this.responsiveMode+"."),i.Assert.check(e>this.getSmallScreenWidth(),"Cannot set medium screen width ("+e+") smaller or equal to the current small screen width ("+this.getSmallScreenWidth()+")"),this.mediumScreenWidth=e},e.prototype.setResponsiveMode=function(e){this.responsiveMode=e},e.prototype.getSmallScreenWidth=function(){return"small"===this.responsiveMode?Number.POSITIVE_INFINITY:"auto"!==this.responsiveMode?0:null==this.smallScreenWidth?t.SMALL_SCREEN_WIDTH:this.smallScreenWidth},e.prototype.getMediumScreenWidth=function(){return"medium"===this.responsiveMode?Number.POSITIVE_INFINITY:"auto"!==this.responsiveMode?0:null==this.mediumScreenWidth?t.MEDIUM_SCREEN_WIDTH:this.mediumScreenWidth},e.prototype.getResponsiveMode=function(){return this.responsiveMode},e.prototype.isSmallScreenWidth=function(){return null!=this.windoh.clientWidth?this.windoh.clientWidth<=this.getSmallScreenWidth():document.body.clientWidth<=this.getSmallScreenWidth()},e.prototype.isMediumScreenWidth=function(){return!this.isSmallScreenWidth()&&(null!=this.windoh.clientWidth?this.windoh.clientWidth<=this.getMediumScreenWidth():document.body.clientWidth<=this.getMediumScreenWidth())},e.prototype.isLargeScreenWidth=function(){return!this.isSmallScreenWidth()&&!this.isMediumScreenWidth()},e}();t.ResponsiveComponents=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){}return e.settingsPopulateMenu="settingsPopulateMenu",e}();t.SettingsEvents=i},function(e,t,n){"use strict";var i=this&&this.__assign||Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e};Object.defineProperty(t,"__esModule",{value:!0});var o=n(3),r=n(12),s=n(1),a=n(25),u=n(15),l={usePlaceholder:!1,className:"coveo-input",triggerOnChangeAsYouType:!1,isRequired:!0},c=function(){function e(e,t,n){void 0===e&&(e=function(e){}),this.onChange=e,this.name=t,this.options=n,this.lastQueryText="",this.options=i({},l,this.options),this.buildContent(),this.buildIcon()}return e.doExport=function(){o.exportGlobally({TextInput:e})},e.prototype.getElement=function(){return this.element},e.prototype.getValue=function(){return s.$$(this.element).find("input").value},e.prototype.setValue=function(e){var t=this.getValue();s.$$(this.element).find("input").value=e,t!=e&&this.onChange(this),this.lastQueryText=this.getInput().value},e.prototype.reset=function(){var e=this.getValue();s.$$(this.element).find("input").value="",""!=e&&this.onChange(this),this.lastQueryText=this.getInput().value},e.prototype.build=function(){return this.element},e.prototype.getInput=function(){return s.$$(this.element).find("input")},e.prototype.buildContent=function(){this.element=s.$$("div",{className:this.options.className}).el,this.input=s.$$("input",{type:"text",autocomplete:"off"}),this.options.isRequired&&this.input.setAttribute("required","true"),this.options.ariaLabel&&this.input.setAttribute("aria-label",this.options.ariaLabel),this.addEventListeners(),this.element.appendChild(this.input.el),this.name&&this.createLabelOrPlaceholder()},e.prototype.buildIcon=function(){if(this.options.icon){var e=this.options.className+"-icon";this.icon=s.$$("span",{className:e}),this.icon.setHtml(r.SVGIcons.icons[this.options.icon]),u.SVGDom.addClassToSVGInContainer(this.icon.el,e+"-svg"),s.$$(this.element).prepend(this.icon.el)}},e.prototype.addEventListeners=function(){this.options.triggerOnChangeAsYouType?this.addOnTypeEventListener():this.addOnChangeEventListener()},e.prototype.addOnChangeEventListener=function(){var e=this;this.input.on(["keydown","blur"],function(t){"blur"!=t.type&&t.keyCode!=a.KEYBOARD.ENTER||e.triggerChange()})},e.prototype.addOnTypeEventListener=function(){var e=this;this.input.on(["keyup"],function(){e.triggerChange()})},e.prototype.createLabelOrPlaceholder=function(){if(this.options.usePlaceholder)return this.input.setAttribute("placeholder",this.name);var e=s.$$("label");e.text(this.name),this.element.appendChild(e.el)},e.prototype.triggerChange=function(){this.lastQueryText!=this.getInput().value&&(this.onChange(this),this.lastQueryText=this.getInput().value)},e}();t.TextInput=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){}return e.searchEvent="analyticsSearchEvent",e.documentViewEvent="analyticsDocumentViewEvent",e.customEvent="analyticsCustomEvent",e.analyticsEventReady="analyticsEventReady",e.changeAnalyticsCustomData="changeAnalyticsCustomData",e}();t.AnalyticsEvents=i},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=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])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n(27),r=n(5),s=n(4),a=n(9),u=n(154),l=n(117),c=n(0),p=n(1),d=function(e){function t(n){var i=e.call(this)||this;i.element=n,r.Assert.exists(n);var o=n.innerHTML;try{i.template=c.template(o)}catch(e){new a.Logger(i).error("Cannot instantiate underscore template. Might be caused by strict Content-Security-Policy. Will fallback on a default template...",e)}return i.templateFromAScriptTag=new u.TemplateFromAScriptTag(i,i.element),i.dataToString=function(e){var n=c.extend({},e,t.templateHelpers);if(!i.template)return(new l.DefaultResultTemplate).getFallbackTemplate();try{return i.template(n)}catch(e){return new a.Logger(i).error("Cannot instantiate template",e.message,i.getTemplateInfo()),new a.Logger(i).warn("A default template was used"),(new l.DefaultResultTemplate).getFallbackTemplate()}},i}return i(t,e),t.prototype.toHtmlElement=function(){var e=this.templateFromAScriptTag.toHtmlElement(p.$$("script"));return e.setAttribute("type",c.first(t.mimeTypes)),e},t.prototype.getType=function(){return"UnderscoreTemplate"},t.prototype.getTemplateInfo=function(){return this.element},t.registerTemplateHelper=function(e,n){t.templateHelpers[e]=n},t.isLibraryAvailable=function(){return s.Utils.exists(window._)},t.fromString=function(e,n){var i=u.TemplateFromAScriptTag.fromString(e,n,document.createElement("script"));return i.setAttribute("type",t.mimeTypes[0]),new t(i)},t.create=function(e){return r.Assert.exists(e),new t(e)},t.templateHelpers={},t.mimeTypes=["text/underscore","text/underscore-template","text/x-underscore","text/x-underscore-template"],t}(o.Template);t.UnderscoreTemplate=d},function(e,t,n){var i=n(38),o=n(39),r=n(396),s=n(59),a=n(80),u=function(e,t,n){var l,c,p,d=e&u.F,h=e&u.G,f=e&u.S,m=e&u.P,y=e&u.B,g=e&u.W,v=h?o:o[t]||(o[t]={}),b=v.prototype,S=h?i:f?i[t]:(i[t]||{}).prototype;h&&(n=t);for(l in n)(c=!d&&S&&void 0!==S[l])&&a(v,l)||(p=c?S[l]:n[l],v[l]=h&&"function"!=typeof S[l]?n[l]:y&&c?r(p,i):g&&S[l]==p?function(e){var t=function(t,n,i){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,i)}return e.apply(this,arguments)};return t.prototype=e.prototype,t}(p):m&&"function"==typeof p?r(Function.call,p):p,m&&((v.virtual||(v.virtual={}))[l]=p,e&u.R&&b&&!b[l]&&s(b,l,p)))};u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,e.exports=u},function(e,t,n){var i=n(103),o=n(157);e.exports=n(79)?function(e,t,n){return i.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=n(16),r=n(7),s=n(19),a=n(4),u=n(0),l=n(11),c=n(9),p=n(24),d=n(0),h=function(){function e(t){var n=this;this.disabledComponents=[],this.responsiveComponents=[],this.coveoRoot=t,this.searchInterface=r.Component.get(this.coveoRoot.el,s.SearchInterface,!1),this.dropdownHeadersWrapper=i.$$("div",{className:e.DROPDOWN_HEADER_WRAPPER_CSS_CLASS}),this.searchBoxElement=this.getSearchBoxElement(),this.logger=new c.Logger(this),this.resizeListener=d.debounce(function(){n.isAbleToDetermineMode()?(n.addDropdownHeaderWrapperIfNeeded(),n.shouldSwitchToSmallMode()?n.coveoRoot.addClass("coveo-small-interface"):n.shouldSwitchToSmallMode()||n.coveoRoot.removeClass("coveo-small-interface"),u.each(n.responsiveComponents,function(e){e.handleResizeEvent()})):n.logger.warn("The width of the search interface is 0, cannot dispatch resize events to responsive components. This means that the tabs will not\n        automatically fit in the tab section. Also, the facet and recommendation component will not hide in a menu. Could the search\n        interface display property be none? Could its visibility property be set to hidden? Also, if either of these scenarios happen during\n        loading, it could be the cause of this issue.")},250),p.DeviceUtils.isMobileDevice()?window.addEventListener("orientationchange",this.resizeListener):window.addEventListener("resize",this.resizeListener),this.bindNukeEvents(),e.componentManagers.push(this)}return e.register=function(e,t,n,i,r){var s=this;(r.initializationEventRoot||t).on(o.InitializationEvents.afterInitialization,function(){if(s.shouldEnableResponsiveMode(t)&&s.registerComponentIfResponsiveModeEnabled(e,t,n,i,r),0==--s.remainingComponentInitializations)if(s.instantiateResponsiveComponents(),0==t.width()){var o=new c.Logger("ResponsiveComponentsManager");o.info("Search interface width is 0, cannot dispatch resize events to responsive components. Will try again after first\n          query success."),t.one(l.QueryEvents.querySuccess,function(){s.resizeAllComponentsManager()})}else s.resizeAllComponentsManager()}),this.remainingComponentInitializations++},e.registerComponentIfResponsiveModeEnabled=function(t,n,i,o,r){var s=u.find(this.componentManagers,function(e){return n.el==e.coveoRoot.el});if(s||(s=new e(n)),!a.Utils.isNullOrUndefined(r.enableResponsiveMode)&&!r.enableResponsiveMode)return void s.disableComponent(i);this.componentInitializations.push({responsiveComponentsManager:s,arguments:[t,n,i,o,r]})},e.shouldEnableResponsiveMode=function(e){var t=r.Component.get(e.el,s.SearchInterface,!0);return t instanceof s.SearchInterface&&t.options.enableAutomaticResponsiveMode},e.instantiateResponsiveComponents=function(){u.each(this.componentInitializations,function(e){var t=e.responsiveComponentsManager;t.register.apply(t,e.arguments)})},e.resizeAllComponentsManager=function(){u.each(this.componentManagers,function(e){e.resizeListener()})},e.prototype.register=function(e,t,n,i,o){if(!this.isDisabled(n)){if(!this.isActivated(n)){var r=new e(t,n,o);this.isTabs(n)?this.responsiveComponents.push(r):this.responsiveComponents.unshift(r)}u.each(this.responsiveComponents,function(e){null!=e.registerComponent&&e.registerComponent(i)})}},e.prototype.disableComponent=function(e){this.disabledComponents.push(e)},e.prototype.isDisabled=function(e){return-1!=u.indexOf(this.disabledComponents,e)},e.prototype.shouldSwitchToSmallMode=function(){var e=this.needDropdownWrapper(),t=this.coveoRoot.width()<=this.searchInterface.responsiveComponents.getMediumScreenWidth();return e||t},e.prototype.needDropdownWrapper=function(){for(var e=0;e<this.responsiveComponents.length;e++){var t=this.responsiveComponents[e];if(t.needDropdownWrapper&&t.needDropdownWrapper())return!0}return!1},e.prototype.addDropdownHeaderWrapperIfNeeded=function(){if(this.needDropdownWrapper()){var e=i.$$(this.coveoRoot).find(".coveo-tab-section");this.searchBoxElement?this.dropdownHeadersWrapper.insertAfter(this.searchBoxElement):e?this.dropdownHeadersWrapper.insertAfter(e):this.coveoRoot.prepend(this.dropdownHeadersWrapper.el)}},e.prototype.isTabs=function(e){return"Tab"==e},e.prototype.isActivated=function(e){return void 0!=u.find(this.responsiveComponents,function(t){return t.ID==e})},e.prototype.getSearchBoxElement=function(){var e=this.coveoRoot.find(".coveo-search-section");return e||this.coveoRoot.find(".CoveoSearchbox")},e.prototype.bindNukeEvents=function(){var t=this;i.$$(this.coveoRoot).on(o.InitializationEvents.nuke,function(){window.removeEventListener("resize",t.resizeListener),e.componentManagers=u.filter(e.componentManagers,function(e){return e.coveoRoot.el!=t.coveoRoot.el})})},e.prototype.isAbleToDetermineMode=function(){return 0!=this.coveoRoot.width()||"auto"!==this.searchInterface.options.responsiveMode},e.DROPDOWN_HEADER_WRAPPER_CSS_CLASS="coveo-dropdown-header-wrapper",e.componentManagers=[],e.remainingComponentInitializations=0,e.componentInitializations=[],e}();t.ResponsiveComponentsManager=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(5),r=n(4),s=n(102),a=n(67),u=n(92),l=n(57),c=n(8),p=n(49),d=function(){function e(){}return e.buildTemplateOption=function(t){return c.ComponentOptions.buildOption(p.ComponentOptionsType.TEMPLATE,e.loadTemplateOption,t)},e.loadTemplateOption=function(t,n,i,o){void 0===o&&(o=document);var r,s=i.selectorAttr||c.ComponentOptions.attrNameFromName(n,i)+"-selector",a=t.getAttribute(s)||c.ComponentOptions.getAttributeFromAlias(t,i);if(null!=a){var u=o.querySelector(a);null!=u&&(r=e.createResultTemplateFromElement(u))}if(null==r){var l=i.idAttr||c.ComponentOptions.attrNameFromName(n,i)+"-id",p=t.getAttribute(l)||c.ComponentOptions.getAttributeFromAlias(t,i);null!=p&&(r=e.loadResultTemplateFromId(p))}if(null==r){var d=i.childSelector;null==d&&(d="."+n.replace(/([A-Z])/g,"-$1").toLowerCase()),r=e.loadChildrenResultTemplateFromSelector(t,d)}return r},e.createResultTemplateFromElement=function(e){o.Assert.exists(e);var t=e.getAttribute("type"),n="You must specify the type of template. Valid values are: "+l.UnderscoreTemplate.mimeTypes.toString()+" "+s.HtmlTemplate.mimeTypes.toString();return o.Assert.check(r.Utils.isNonEmptyString(t),n),-1!=i.indexOf(l.UnderscoreTemplate.mimeTypes,t.toLowerCase())?l.UnderscoreTemplate.create(e):-1!=i.indexOf(s.HtmlTemplate.mimeTypes,t.toLowerCase())?new s.HtmlTemplate(e):void o.Assert.fail("Cannot guess template type from attribute: "+t+". Valid values are "+n)},e.loadResultTemplateFromId=function(e){return r.Utils.isNonEmptyString(e)?a.TemplateCache.getTemplate(e):null},e.loadChildrenResultTemplateFromSelector=function(t,n){var o=c.ComponentOptions.loadChildrenHtmlElementFromSelector(t,n);return o.length>0?new u.TemplateList(i.compact(o.map(function(t){return e.createResultTemplateFromElement(t)}))):null},e}();t.TemplateComponentOptions=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(5);t.Assert=i.Assert;var o=n(31);t.Defer=o.Defer;var r=n(149);t.L10N=r.L10N;var s=n(9);t.Logger=s.Logger;var a=n(76);t.Options=a.Options;var u=n(6);t.l=u.l,n(9).Logger.disable()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=n(6),r=n(0),s=n(3),a=function(){function e(e,t,n,i){void 0===e&&(e=function(e){}),void 0===n&&(n=o.l),this.onChange=e,this.listOfValues=t,this.getDisplayValue=n,this.label=i,this.optionsElement=[],this.buildContent(),this.select(0,!1),this.bindEvents()}return e.doExport=function(){s.exportGlobally({Dropdown:e})},e.prototype.reset=function(){this.select(0,!1)},e.prototype.setId=function(e){i.$$(this.element).setAttribute("id",e)},e.prototype.getElement=function(){return this.element},e.prototype.getValue=function(){return this.selectElement.value},e.prototype.select=function(e,t){void 0===t&&(t=!0),this.selectOption(this.optionsElement[e],t)},e.prototype.build=function(){return this.element},e.prototype.setValue=function(e){var t=this;r.each(this.optionsElement,function(n){i.$$(n).getAttribute("data-value")==e&&t.selectOption(n)})},e.prototype.selectOption=function(e,t){void 0===t&&(t=!0),this.selectElement.value=e.value,t&&this.onChange(this)},e.prototype.buildContent=function(){var e=this;this.selectElement=i.$$("select",{className:"coveo-dropdown"}).el,this.label&&this.selectElement.setAttribute("aria-label",o.l(this.label));var t=this.buildOptions();r.each(t,function(t){i.$$(e.selectElement).append(t)}),this.element=this.selectElement},e.prototype.buildOptions=function(){var e=this,t=[];return r.each(this.listOfValues,function(n){t.push(e.buildOption(n))}),t},e.prototype.buildOption=function(e){var t=i.$$("option");return t.setAttribute("data-value",e),t.setAttribute("value",e),t.text(this.getDisplayValue(e)),this.optionsElement.push(t.el),t.el},e.prototype.bindEvents=function(){var e=this;i.$$(this.selectElement).on("change",function(){return e.onChange(e)})},e}();t.Dropdown=a},function(e,t,n){"use strict";function i(e,t,n,i,o){var r=e*e,s=r*e;return((1-3*e+3*r-s)*t+(4-6*r+3*s)*n+(1+3*e+3*r-3*s)*i+s*o)/6}function o(e,t){return function(n){return e+n*t}}function r(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(i){return Math.pow(e+i*t,n)}}function s(e,t){var n=t-e;return n?o(e,n>180||n<-180?n-360*Math.round(n/360):n):I(isNaN(e)?t:e)}function a(e){return 1==(e=+e)?u:function(t,n){return n-t?r(t,n,e):I(isNaN(t)?n:t)}}function u(e,t){var n=t-e;return n?o(e,n):I(isNaN(e)?t:e)}function l(e){return function(t){var n,i,o=t.length,r=new Array(o),s=new Array(o),a=new Array(o);for(n=0;n<o;++n)i=Object(R.h)(t[n]),r[n]=i.r||0,s[n]=i.g||0,a[n]=i.b||0;return r=e(r),s=e(s),a=e(a),i.opacity=1,function(e){return i.r=r(e),i.g=s(e),i.b=a(e),i+""}}}function c(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function p(e,t){var n,i=t?t.length:0,o=e?Math.min(i,e.length):0,r=new Array(o),s=new Array(i);for(n=0;n<o;++n)r[n]=H(e[n],t[n]);for(;n<i;++n)s[n]=t[n];return function(e){for(n=0;n<o;++n)s[n]=r[n](e);return s}}function d(e){return function(){return e}}function h(e){return function(t){return e(t)+""}}function f(e){return"none"===e?Y:(x||(x=document.createElement("DIV"),E=document.documentElement,A=document.defaultView),x.style.transform=e,e=A.getComputedStyle(E.appendChild(x),null).getPropertyValue("transform"),E.removeChild(x),e=e.slice(7,-1).split(","),K(+e[0],+e[1],+e[2],+e[3],+e[4],+e[5]))}function m(e){return null==e?Y:(T||(T=document.createElementNS("http://www.w3.org/2000/svg","g")),T.setAttribute("transform",e),(e=T.transform.baseVal.consolidate())?(e=e.matrix,K(e.a,e.b,e.c,e.d,e.e,e.f)):Y)}function y(e,t,n,i){function o(e){return e.length?e.pop()+" ":""}function r(e,i,o,r,s,a){if(e!==o||i!==r){var u=s.push("translate(",null,t,null,n);a.push({i:u-4,x:L(e,o)},{i:u-2,x:L(i,r)})}else(o||r)&&s.push("translate("+o+t+r+n)}function s(e,t,n,r){e!==t?(e-t>180?t+=360:t-e>180&&(e+=360),r.push({i:n.push(o(n)+"rotate(",null,i)-2,x:L(e,t)})):t&&n.push(o(n)+"rotate("+t+i)}function a(e,t,n,r){e!==t?r.push({i:n.push(o(n)+"skewX(",null,i)-2,x:L(e,t)}):t&&n.push(o(n)+"skewX("+t+i)}function u(e,t,n,i,r,s){if(e!==n||t!==i){var a=r.push(o(r)+"scale(",null,",",null,")");s.push({i:a-4,x:L(e,n)},{i:a-2,x:L(t,i)})}else 1===n&&1===i||r.push(o(r)+"scale("+n+","+i+")")}return function(t,n){var i=[],o=[];return t=e(t),n=e(n),r(t.translateX,t.translateY,n.translateX,n.translateY,i,o),s(t.rotate,n.rotate,i,o),a(t.skewX,n.skewX,i,o),u(t.scaleX,t.scaleY,n.scaleX,n.scaleY,i,o),t=n=null,function(e){for(var t,n=-1,r=o.length;++n<r;)i[(t=o[n]).i]=t.x(e);return i.join("")}}}function g(e){return((e=Math.exp(e))+1/e)/2}function v(e){return((e=Math.exp(e))-1/e)/2}function b(e){return((e=Math.exp(2*e))-1)/(e+1)}function S(e){return function(t,n){var i=e((t=Object(R.e)(t)).h,(n=Object(R.e)(n)).h),o=u(t.s,n.s),r=u(t.l,n.l),s=u(t.opacity,n.opacity);return function(e){return t.h=i(e),t.s=o(e),t.l=r(e),t.opacity=s(e),t+""}}}function C(e,t){var n=u((e=Object(R.f)(e)).l,(t=Object(R.f)(t)).l),i=u(e.a,t.a),o=u(e.b,t.b),r=u(e.opacity,t.opacity);return function(t){return e.l=n(t),e.a=i(t),e.b=o(t),e.opacity=r(t),e+""}}function w(e){return function(t,n){var i=e((t=Object(R.d)(t)).h,(n=Object(R.d)(n)).h),o=u(t.c,n.c),r=u(t.l,n.l),s=u(t.opacity,n.opacity);return function(e){return t.h=i(e),t.c=o(e),t.l=r(e),t.opacity=s(e),t+""}}}function _(e){return function t(n){function i(t,i){var o=e((t=Object(R.b)(t)).h,(i=Object(R.b)(i)).h),r=u(t.s,i.s),s=u(t.l,i.l),a=u(t.opacity,i.opacity);return function(e){return t.h=o(e),t.s=r(e),t.l=s(Math.pow(e,n)),t.opacity=a(e),t+""}}return n=+n,i.gamma=t,i}(1)}function O(e,t){for(var n=0,i=t.length-1,o=t[0],r=new Array(i<0?0:i);n<i;)r[n]=e(o,o=t[++n]);return function(e){var t=Math.max(0,Math.min(i-1,Math.floor(e*=i)));return r[t](e-t)}}var x,E,A,T,R=n(52),F=function(e){var t=e.length-1;return function(n){var o=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),r=e[o],s=e[o+1],a=o>0?e[o-1]:2*r-s,u=o<t-1?e[o+2]:2*s-r;return i((n-o/t)*t,a,r,s,u)}},M=function(e){var t=e.length;return function(n){var o=Math.floor(((n%=1)<0?++n:n)*t),r=e[(o+t-1)%t],s=e[o%t],a=e[(o+1)%t],u=e[(o+2)%t];return i((n-o/t)*t,r,s,a,u)}},I=function(e){return function(){return e}},P=function e(t){function n(e,t){var n=i((e=Object(R.h)(e)).r,(t=Object(R.h)(t)).r),o=i(e.g,t.g),r=i(e.b,t.b),s=u(e.opacity,t.opacity);return function(t){return e.r=n(t),e.g=o(t),e.b=r(t),e.opacity=s(t),e+""}}var i=a(t);return n.gamma=e,n}(1),D=l(F),$=l(M),N=function(e,t){t||(t=[]);var n,i=e?Math.min(t.length,e.length):0,o=t.slice();return function(r){for(n=0;n<i;++n)o[n]=e[n]*(1-r)+t[n]*r;return o}},k=function(e,t){return(c(t)?N:p)(e,t)},V=function(e,t){var n=new Date;return e=+e,t=+t,function(i){return n.setTime(e*(1-i)+t*i),n}},L=function(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}},B=function(e,t){var n,i={},o={};null!==e&&"object"==typeof e||(e={}),null!==t&&"object"==typeof t||(t={});for(n in t)n in e?i[n]=H(e[n],t[n]):o[n]=t[n];return function(e){for(n in i)o[n]=i[n](e);return o}},U=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Q=new RegExp(U.source,"g"),j=function(e,t){var n,i,o,r=U.lastIndex=Q.lastIndex=0,s=-1,a=[],u=[];for(e+="",t+="";(n=U.exec(e))&&(i=Q.exec(t));)(o=i.index)>r&&(o=t.slice(r,o),a[s]?a[s]+=o:a[++s]=o),(n=n[0])===(i=i[0])?a[s]?a[s]+=i:a[++s]=i:(a[++s]=null,u.push({i:s,x:L(n,i)})),r=Q.lastIndex;return r<t.length&&(o=t.slice(r),a[s]?a[s]+=o:a[++s]=o),a.length<2?u[0]?h(u[0].x):d(t):(t=u.length,function(e){for(var n,i=0;i<t;++i)a[(n=u[i]).i]=n.x(e);return a.join("")})},H=function(e,t){var n,i=typeof t;return null==t||"boolean"===i?I(t):("number"===i?L:"string"===i?(n=Object(R.a)(t))?(t=n,P):j:t instanceof R.a?P:t instanceof Date?V:c(t)?N:Array.isArray(t)?p:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?B:L)(e,t)},q=function(e){var t=e.length;return function(n){return e[Math.max(0,Math.min(t-1,Math.floor(n*t)))]}},z=function(e,t){var n=s(+e,+t);return function(e){var t=n(e);return t-360*Math.floor(t/360)}},W=function(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}},G=180/Math.PI,Y={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},K=function(e,t,n,i,o,r){var s,a,u;return(s=Math.sqrt(e*e+t*t))&&(e/=s,t/=s),(u=e*n+t*i)&&(n-=e*u,i-=t*u),(a=Math.sqrt(n*n+i*i))&&(n/=a,i/=a,u/=a),e*i<t*n&&(e=-e,t=-t,u=-u,s=-s),{translateX:o,translateY:r,rotate:Math.atan2(t,e)*G,skewX:Math.atan(u)*G,scaleX:s,scaleY:a}},J=y(f,"px, ","px)","deg)"),Z=y(m,", ",")",")"),X=Math.SQRT2,ee=function(e,t){var n,i,o=e[0],r=e[1],s=e[2],a=t[0],u=t[1],l=t[2],c=a-o,p=u-r,d=c*c+p*p;if(d<1e-12)i=Math.log(l/s)/X,n=function(e){return[o+e*c,r+e*p,s*Math.exp(X*e*i)]};else{var h=Math.sqrt(d),f=(l*l-s*s+4*d)/(2*s*2*h),m=(l*l-s*s-4*d)/(2*l*2*h),y=Math.log(Math.sqrt(f*f+1)-f),S=Math.log(Math.sqrt(m*m+1)-m);i=(S-y)/X,n=function(e){var t=e*i,n=g(y),a=s/(2*h)*(n*b(X*t+y)-v(y));return[o+a*c,r+a*p,s*n/g(X*t+y)]}}return n.duration=1e3*i,n},te=S(s),ne=S(u),ie=w(s),oe=w(u),re=_(s),se=_(u),ae=function(e,t){for(var n=new Array(t),i=0;i<t;++i)n[i]=e(i/(t-1));return n};n.d(t,"a",function(){return H}),n.d(t,"b",function(){return k}),n.d(t,"c",function(){return F}),n.d(t,"d",function(){return M}),n.d(t,"g",function(){return V}),n.d(t,"h",function(){return q}),n.d(t,"m",function(){return z}),n.d(t,"o",function(){return L}),n.d(t,"p",function(){return N}),n.d(t,"q",function(){return B}),n.d(t,"u",function(){return W}),n.d(t,"v",function(){return j}),n.d(t,"w",function(){return J}),n.d(t,"x",function(){return Z}),n.d(t,"y",function(){return ee}),n.d(t,"r",function(){return P}),n.d(t,"s",function(){return D}),n.d(t,"t",function(){return $}),n.d(t,"k",function(){return te}),n.d(t,"l",function(){return ne}),n.d(t,"n",function(){return C}),n.d(t,"i",function(){return ie}),n.d(t,"j",function(){return oe}),n.d(t,"e",function(){return re}),n.d(t,"f",function(){return se}),n.d(t,"z",function(){return O}),n.d(t,"A",function(){return ae})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n(389);var i=n(3),o=n(1),r=function(){function e(e,t,n,i){void 0===e&&(e=function(e){}),this.onChange=e,this.label=t,this.ariaLabel=n,this.labelSuffix=i,this.ignoreNextChange=!1,this.buildContent()}return e.prototype.toggle=function(){this.checkbox.checked=!this.isSelected(),o.$$(this.checkbox).trigger("change")},e.prototype.getElement=function(){return this.element},e.prototype.build=function(){return this.element},e.prototype.getValue=function(){return this.label},e.prototype.reset=function(){var e=this.isSelected();this.checkbox.checked=!1,e&&o.$$(this.checkbox).trigger("change")},e.prototype.select=function(e){void 0===e&&(e=!0);var t=this.isSelected();this.checkbox.checked=!0,t||(this.ignoreNextChange=!e,o.$$(this.checkbox).trigger("change"))},e.prototype.isSelected=function(){return this.checkbox.checked},e.prototype.getLabel=function(){return this.element},e.prototype.buildContent=function(){var e=this,t=o.$$("label",{className:"coveo-checkbox-label"});this.checkbox=o.$$("input",{type:"checkbox",className:"coveo-checkbox",value:this.label,ariaLabel:this.ariaLabel||this.label,ariaHidden:!0}).el,this.button=o.$$("button",{type:"button",className:"coveo-checkbox-button",ariaLabel:this.ariaLabel||this.label,ariaPressed:this.isSelected().toString()}).el;var n=o.$$("span",{className:"coveo-checkbox-span-label"});n.text(this.label);var i=o.$$("span",{className:"coveo-checkbox-span-label-suffix"});i.text(this.labelSuffix),t.append(this.checkbox),t.append(this.button),t.append(n.el),this.labelSuffix&&t.append(i.el),o.$$(this.button).on("click",function(t){t.preventDefault(),e.toggle()}),o.$$(this.checkbox).on("change",function(){e.updateAccessibilityAttributes(),e.ignoreNextChange?e.ignoreNextChange=!1:e.onChange(e)}),this.element=t.el},e.prototype.updateAccessibilityAttributes=function(){this.button.setAttribute("aria-pressed",this.isSelected().toString())},e.doExport=function(){i.exportGlobally({Checkbox:e})},e}();t.Checkbox=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(20),r=n(124),s=n(86),a=n(41),u=function(){function e(){this.visitorIdKey="visitorId",this.clientIdKey="clientId",this.storage=new a.SafeLocalStorage}return Object.defineProperty(e.prototype,"clientId",{get:function(){return this.storage.getItem(this.visitorIdKey)||null},set:function(e){this.storage.setItem(this.visitorIdKey,e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"lastPageId",{get:function(){var e=s.buildHistoryStore(),t=e.getHistory(),n=i.findLastIndex(t,function(e){return"PageView"===e.name});return-1===n?null:t[n].value},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"location",{get:function(){return document.location.href},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"referrer",{get:function(){return document.referrer},enumerable:!0,configurable:!0}),e.prototype.clear=function(){this.clearLocalStorage(),this.clearCookies()},e.prototype.clearLocalStorage=function(){this.storage.removeItem(this.visitorIdKey),new o.LocalStorageUtils(this.clientIdKey).remove()},e.prototype.clearCookies=function(){r.Cookie.erase(this.visitorIdKey),r.Cookie.erase(this.clientIdKey)},e}();t.AnalyticsInformation=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(27),o=n(5),r=n(57),s=n(102),a=n(0),u=function(){function e(){}return e.registerTemplate=function(t,n,r,s,u){void 0===r&&(r=!0),void 0===s&&(s=!1),void 0===u&&(u=!1),o.Assert.isNonEmptyString(t),o.Assert.exists(n),n instanceof i.Template||(n=new i.Template(n)),null==n.name&&(n.name=t),e.templates[t]=n,r&&!a.contains(e.templateNames,t)&&e.templateNames.push(t),u&&!a.contains(e.resultListTemplateNames,t)&&e.resultListTemplateNames.push(t),s&&(e.defaultTemplates[t]=n)},e.unregisterTemplate=function(t){o.Assert.isNonEmptyString(t),void 0!=e.templates[t]&&delete e.templates[t],void 0!=e.defaultTemplates[t]&&delete e.defaultTemplates[t]},e.getTemplate=function(t){return e.templates[t]||e.scanAndRegisterTemplates(),o.Assert.exists(e.templates[t]),e.templates[t]},e.getTemplates=function(){return e.templates},e.getTemplateNames=function(){return e.templateNames},e.getResultListTemplateNames=function(){return e.resultListTemplateNames},e.getDefaultTemplates=function(){return a.keys(e.defaultTemplates)},e.getDefaultTemplate=function(t){return o.Assert.exists(e.defaultTemplates[t]),e.defaultTemplates[t]},e.scanAndRegisterTemplates=function(){r.UnderscoreTemplate.isLibraryAvailable()&&e.scanAndRegisterUnderscoreTemplates(),e.scanAndRegisterHtmlTemplates()},e.scanAndRegisterUnderscoreTemplates=function(){a.each(r.UnderscoreTemplate.mimeTypes,function(t){for(var n=document.querySelectorAll("script[id][type='"+t+"']"),i=n.length,o=new Array(i);i--;)o[i]=n.item(i);a.each(o,function(t){var n=new r.UnderscoreTemplate(t);e.registerTemplate(t.getAttribute("id"),n)})})},e.scanAndRegisterHtmlTemplates=function(){a.each(s.HtmlTemplate.mimeTypes,function(t){for(var n=document.querySelectorAll("script[id][type='"+t+"']"),i=n.length,o=new Array(i);i--;)o[i]=n.item(i);a.each(o,function(t){var n=new s.HtmlTemplate(t);e.registerTemplate(t.getAttribute("id"),n)})})},e.templates={},e.templateNames=[],e.resultListTemplateNames=[],e.defaultTemplates={},e}();t.TemplateCache=u,document.addEventListener("DOMContentLoaded",function(){u.scanAndRegisterTemplates()})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(4),o=n(5),r=n(0),s=function(){function e(){}return e.replace=function(t,n,o){var r=new e;if(i.Utils.isNullOrEmptyString(t))return r;var s=t.lastIndexOf(n);if(-1==s)return r.value=t,r;for(var a=[];s>=0;){var u={begin:s,size:n.length,replacementSize:o.length};a.push(u),t=t.slice(0,s)+o+t.slice(s+n.length),s=t.lastIndexOf(n)}return r.holes=a,r.value=t,r},e.shortenPath=function(t,n){var o=new e,r=t;if(i.Utils.isNullOrEmptyString(r)||r.length<=n)return o.value=r,o;var s=[],a=-1;if(-1!==(a=i.Utils.stringStartsWith(r,"\\\\")?r.indexOf("\\",a+2):r.indexOf("\\"))){for(var u=0,l=r.indexOf("\\",a+1);-1!==l&&r.length-u+e.SHORTEN_END.length>n;)u=l-a-1,l=r.indexOf("\\",l+1);if(u>0){r=r.slice(0,a+1)+e.SHORTEN_END+r.slice(u);var c={begin:a+1,size:u-e.SHORTEN_END.length,replacementSize:e.SHORTEN_END.length};s.push(c)}}if(r.length>n){var p=r.length-n+e.SHORTEN_END.length,d=r.length-p;r=r.slice(0,d)+e.SHORTEN_END;var c={begin:d,size:p,replacementSize:e.SHORTEN_END.length};s.push(c)}return o.holes=s,o.value=r,o},e.shortenString=function(t,n,o){void 0===n&&(n=200);var r=t;o=i.Utils.toNotNullString(o);var s=new e;if(i.Utils.isNullOrEmptyString(r)||n<=o.length)return s.value=r,s;if(r.length<=n)return s.value=r,s;var a=r;if(n-=o.length,a=a.slice(0,n)," "!==r.charAt(a.length)){var u=a.lastIndexOf(" ");-1!==u&&a.length-u<e.WORD_SHORTER&&(a=a.slice(0,u))}var l=[];return l[0]={begin:a.length,size:r.length-a.length,replacementSize:o.length},a+=o,s.value=a,s.holes=l,s},e.shortenUri=function(t,n){var o=new e;if(i.Utils.isNullOrEmptyString(t)||t.length<=n)return o.value=t,o;var r=[],s=t.indexOf("//");if(-1!==s&&(s=t.indexOf("/",s+2)),-1!==s){for(var a=0,u=t.indexOf("/",s+1);-1!==u&&t.length-a+e.SHORTEN_END.length>n;)a=u-s-1,u=t.indexOf("/",u+1);if(a>0){t=t.slice(0,s+1)+e.SHORTEN_END+t.slice(s+1+a);var l={begin:s+1,size:a,replacementSize:e.SHORTEN_END.length};r.push(l)}}if(t.length>n){var c=t.length-n+e.SHORTEN_END.length,p=t.length-c;t=t.slice(0,p)+e.SHORTEN_END;var l={begin:p,size:c,replacementSize:e.SHORTEN_END.length};r.push(l)}return o.holes=r,o.value=t,o},e.SHORTEN_END="...",e.WORD_SHORTER=10,e}();t.StringAndHoles=s;var a=function(){function e(){}return e.highlightString=function(e,t,n,s){if(o.Assert.isNotUndefined(t),o.Assert.isNotNull(t),o.Assert.isNonEmptyString(s),i.Utils.isNullOrEmptyString(e))return e;for(var a=e.length,u="",l=0,c=0;c<t.length;c++){var p=t[c],d=p.offset,h=d+p.length;if(null!==n){for(var f=!1,m=0;m<n.length;m++){var y=n[m],g=y.begin,v=g+y.size;if(d<g&&h>=g&&h<v)h=g;else{if(d>=g&&h<v){f=!0;break}if(d>=g&&d<v&&h>=v)d=g+y.replacementSize,h-=y.size-y.replacementSize;else if(d<g&&h>=v)h-=y.size-y.replacementSize;else if(d>=v){var b=y.size-y.replacementSize;d-=b,h-=b}}}if(f||d===h)continue}if(h>a)break;u+=r.escape(e.slice(l,d)),u+='<span class="'+s+'"',p.dataHighlightGroup&&(u+=' data-highlight-group="'+p.dataHighlightGroup.toString()+'"'),p.dataHighlightGroupTerm&&(u+=' data-highlight-group-term="'+p.dataHighlightGroupTerm+'"'),u+=">",u+=r.escape(e.slice(d,h)),u+="</span>",l=h}return l!=a&&(u+=r.escape(e.slice(l))),u},e}();t.HighlightUtils=a},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=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])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),o=this&&this.__assign||Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e};Object.defineProperty(t,"__esModule",{value:!0}),n(540),n(541);var r=n(0),s=n(213),a=n(35),u=n(34),l=n(11),c=n(84),p=n(3),d=n(5),h=n(31),f=n(18),m=n(13),y=n(6),g=n(17),v=n(47),b=n(171),S=n(24),C=n(1),w=n(15),_=n(12),O=n(4),x=n(10),E=n(7),A=n(8),T=n(2),R=n(83),F=n(172),M=n(482),I=n(483),P=n(481),D=n(484),$=n(170),N=n(485),k=n(479),V=n(480),L=n(40),B=n(127),U=n(113),Q=n(559),j=n(486),H=n(475),q=n(487),z=n(488),W=n(474),G=function(e){function t(n,i,o,s){void 0===s&&(s=t.ID);var a=e.call(this,n,s,o)||this;return a.element=n,a.options=i,a.keepDisplayedValuesNextTime=!1,a.values=new Q.FacetValues,a.currentPage=0,a.firstQuery=!0,a.isFieldValueCompatible=!0,a.canFetchMore=!0,a.showingWaitAnimation=!1,a.listenToQueryStateChange=!0,a.options=A.ComponentOptions.initComponentOptions(n,t,i),null!=a.options.valueCaption&&(a.options.availableSorts=r.filter(a.options.availableSorts,function(e){return!/^alpha.*$/.test(e)}),a.logger.warn("Because the "+a.options.field+" facet is using value captions, alphabetical sorts are disabled.")),F.ResponsiveFacets.init(a.root,a,a.options),a.omniboxZIndex=t.omniboxIndex,t.omniboxIndex--,a.checkForComputedFieldAndSort(),a.checkForValueCaptionType(),a.checkForCustomSort(),a.initDependsOnManager(),a.initFacetQueryController(),a.initQueryEvents(),a.initQueryStateEvents(),a.initComponentStateEvents(),a.initOmniboxEvents(),a.initBreadCrumbEvents(),a.initSearchAlertEvents(),a.updateNumberOfValues(),a.bind.oneRootElement(l.QueryEvents.querySuccess,function(){a.firstQuery=!1}),a}return i(t,e),t.prototype.setExpandedFacetSearchAccessibilityAttributes=function(e){if(this.searchContainer){d.Assert.exists(e);this.searchContainer.accessibleElement.setAttribute("aria-expanded",(!0).toString())}},t.prototype.setCollapsedFacetSearchAccessibilityAttributes=function(){this.searchContainer&&this.searchContainer.accessibleElement.setAttribute("aria-expanded",(!1).toString())},t.prototype.isCurrentlyDisplayed=function(){return!!C.$$(this.element).isVisible()&&(!!C.$$(this.element).hasClass("coveo-active")||!C.$$(this.element).hasClass("coveo-facet-empty"))},t.prototype.createDom=function(){var e=this;if(this.initBottomAndTopSpacer(),this.buildFacetContent(),this.updateAppearanceDependingOnState(),this.facetSettings&&this.options.enableSettingsFacetState){var t=r.once(function(){e.facetSettings.loadSavedState.apply(e.facetSettings)});this.bind.onRootElement(l.QueryEvents.newQuery,t)}},t.prototype.selectValue=function(e){d.Assert.exists(e),this.ensureDom(),this.logger.info("Selecting facet value",this.facetValuesList.select(e)),this.facetValueHasChanged()},t.prototype.selectMultipleValues=function(e){var t=this;d.Assert.exists(e),this.ensureDom(),r.each(e,function(e){t.logger.info("Selecting facet value",t.facetValuesList.select(e))}),this.facetValueHasChanged()},t.prototype.deselectValue=function(e){d.Assert.exists(e),this.ensureDom(),this.logger.info("Deselecting facet value",this.facetValuesList.unselect(e)),this.facetValueHasChanged()},t.prototype.deselectMultipleValues=function(e){var t=this;d.Assert.exists(e),this.ensureDom(),r.each(e,function(e){t.logger.info("Deselecting facet value",t.facetValuesList.unselect(e))}),this.facetValueHasChanged()},t.prototype.excludeValue=function(e){d.Assert.exists(e),this.ensureDom(),this.logger.info("Excluding facet value",this.facetValuesList.exclude(e)),this.facetValueHasChanged()},t.prototype.excludeMultipleValues=function(e){var t=this;d.Assert.exists(e),this.ensureDom(),r.each(e,function(e){t.logger.info("Excluding facet value",t.facetValuesList.exclude(e))}),this.facetValueHasChanged()},t.prototype.unexcludeValue=function(e){d.Assert.exists(e),this.ensureDom(),this.logger.info("Unexcluding facet value",this.facetValuesList.unExclude(e)),this.facetValueHasChanged()},t.prototype.unexcludeMultipleValues=function(e){var t=this;d.Assert.exists(e),this.ensureDom(),r.each(e,function(e){t.logger.info("Unexcluding facet value",t.facetValuesList.unExclude(e))}),this.facetValueHasChanged()},t.prototype.toggleSelectValue=function(e){d.Assert.exists(e),this.ensureDom(),this.logger.info("Toggle select facet value",this.facetValuesList.toggleSelect(e)),this.facetValueHasChanged()},t.prototype.toggleExcludeValue=function(e){d.Assert.exists(e),this.ensureDom(),this.logger.info("Toggle exclude facet value",this.facetValuesList.toggleExclude(e)),this.facetValueHasChanged()},t.prototype.getDisplayedValues=function(){return r.pluck(this.getDisplayedFacetValues(),"value")},t.prototype.getDisplayedFacetValues=function(){this.ensureDom();var e=this.facetValuesList.getAllCurrentlyDisplayed();return r.map(e,function(e){return e.facetValue})},t.prototype.getSelectedValues=function(){return this.ensureDom(),r.map(this.values.getSelected(),function(e){return e.value})},t.prototype.hasSelectedValue=function(e){var t=this.values.get(e);return t&&t.selected},t.prototype.getExcludedValues=function(){return this.ensureDom(),r.map(this.values.getExcluded(),function(e){return e.value})},t.prototype.reset=function(){this.ensureDom(),this.values.reset(),this.rebuildValueElements(),this.updateAppearanceDependingOnState(),this.updateQueryStateModel()},t.prototype.switchToAnd=function(){this.ensureDom(),this.logger.info("Switching to AND"),this.facetHeader.switchToAnd()},t.prototype.switchToOr=function(){this.ensureDom(),this.logger.info("Switching to OR"),this.facetHeader.switchToOr()},t.prototype.getEndpoint=function(){return this.queryController.getEndpoint()},t.prototype.updateSort=function(e){this.ensureDom(),this.options.sortCriteria!=e&&(this.options.sortCriteria=e,this.usageAnalytics.logCustomEvent(x.analyticsActionCauseList.facetUpdateSort,{criteria:e,facetId:this.options.id,facetField:this.options.field.toString(),facetTitle:this.options.title},this.element),this.triggerNewQuery())},t.prototype.unfadeInactiveValuesInMainList=function(){C.$$(this.element).removeClass("coveo-facet-fade")},t.prototype.fadeInactiveValuesInMainList=function(e){C.$$(this.element).addClass("coveo-facet-fade")},t.prototype.showWaitingAnimation=function(){this.ensureDom(),this.showingWaitAnimation||(C.$$(this.headerElement).find(".coveo-facet-header-wait-animation").style.visibility="visible",this.showingWaitAnimation=!0)},t.prototype.hideWaitingAnimation=function(){this.ensureDom(),this.showingWaitAnimation&&(C.$$(this.headerElement).find(".coveo-facet-header-wait-animation").style.visibility="hidden",this.showingWaitAnimation=!1)},t.prototype.processFacetSearchAllResultsSelected=function(e){var t=this,n=[];r.each(e,function(e){t.ensureFacetValueIsInList(e),n.push(e.value)});var i=this.values.getSelected().concat(this.values.getExcluded());this.numberOfValues=i.length+r.difference(i,e).length,this.numberOfValues=Math.max(this.numberOfValues,this.options.numberOfValues),this.updateQueryStateModel(),this.triggerNewQuery(function(){return t.usageAnalytics.logSearchEvent(x.analyticsActionCauseList.facetSelectAll,{facetId:t.options.id,facetField:t.options.field.toString(),facetTitle:t.options.title})})},t.prototype.pinFacetPosition=function(){this.options.preservePosition&&(this.pinnedViewportPosition=this.element.getBoundingClientRect().top)},t.prototype.getValueCaption=function(e){d.Assert.exists(e);var t="string"==typeof e?e:e.lookupValue||e.value,n=L.FacetUtils.tryToGetTranslatedCaption(this.options.field,t);if(O.Utils.exists(this.options.valueCaption)&&("object"==typeof this.options.valueCaption&&(n=this.options.valueCaption[t]||n),"function"==typeof this.options.valueCaption)){var i=e instanceof U.FacetValue?e:U.FacetValue.create(e),o=this.facetValuesList.get(i).facetValue;n=this.options.valueCaption.call(this,o)}return n},t.prototype.getCaptionForStringValue=function(e){return d.Assert.exists(e),this.getValueCaption(e)},t.prototype.showMore=function(){this.currentPage=Math.floor((this.numberOfValues-this.options.numberOfValues)/this.options.pageSize)+1,this.updateNumberOfValues(),this.nbAvailableValues>=this.numberOfValues||!this.canFetchMore?this.rebuildValueElements():this.triggerMoreQuery()},t.prototype.showLess=function(){C.$$(this.lessElement).removeClass("coveo-active"),this.currentPage=0,this.updateNumberOfValues(),C.$$(this.moreElement).addClass("coveo-active"),this.values.sortValuesDependingOnStatus(this.numberOfValues),this.rebuildValueElements(),this.logAnalyticsFacetShowMoreLess(x.analyticsActionCauseList.facetShowLess)},t.prototype.collapse=function(){this.ensureDom(),this.facetHeader&&this.facetHeader.collapseFacet()},t.prototype.expand=function(){this.ensureDom(),this.facetHeader&&this.facetHeader.expandFacet()},t.prototype.triggerNewQuery=function(e){e?this.queryController.executeQuery({beforeExecuteQuery:e}):this.queryController.executeQuery({ignoreWarningSearchEvent:!0}),this.showWaitingAnimation()},t.prototype.handleDeferredQuerySuccess=function(e){d.Assert.exists(e),this.unfadeInactiveValuesInMainList(),this.hideWaitingAnimation();var t=e.results.groupByResults[this.facetQueryController.lastGroupByRequestIndex];this.facetQueryController.lastGroupByResult=t,t||(this.keepDisplayedValuesNextTime=!1),1==this.values.getAll().length&&(this.keepDisplayedValuesNextTime=!1),this.processNewGroupByResults(t)},t.prototype.handleQueryError=function(){this.updateValues(new Q.FacetValues),this.updateAppearanceDependingOnState(),this.hideWaitingAnimation()},t.prototype.handlePopulateBreadcrumb=function(e){if(d.Assert.exists(e),this.values.hasSelectedOrExcludedValues()){var t=new I.BreadcrumbValueList(this,this.values.getSelected().concat(this.values.getExcluded()),M.BreadcrumbValueElement).build();e.breadcrumbs.push({element:t})}},t.prototype.handlePopulateSearchAlerts=function(e){if(this.values.hasSelectedOrExcludedValues()){var t=this.values.getExcluded(),n=this.values.getSelected();r.isEmpty(t)||e.text.push({value:new I.BreadcrumbValueList(this,t,M.BreadcrumbValueElement).buildAsString(),lineThrough:!0}),r.isEmpty(n)||e.text.push({value:new I.BreadcrumbValueList(this,n,M.BreadcrumbValueElement).buildAsString(),lineThrough:!1})}},t.prototype.initFacetQueryController=function(){this.facetQueryController=new s.FacetQueryController(this)},t.prototype.initFacetValuesList=function(){this.facetValuesList=new j.FacetValuesList(this,B.FacetValueElement),this.element.appendChild(this.facetValuesList.build())},t.prototype.initFacetSearch=function(){this.facetSearch=new D.FacetSearch(this,N.FacetSearchValuesList,this.root),this.element.appendChild(this.facetSearch.build())},t.prototype.facetValueHasChanged=function(){var e=this;this.updateQueryStateModel(),this.rebuildValueElements(),h.Defer.defer(function(){e.updateAppearanceDependingOnState()})},t.prototype.updateAppearanceDependingOnState=function(){C.$$(this.element).toggleClass("coveo-active",this.values.hasSelectedOrExcludedValues()),C.$$(this.element).toggleClass("coveo-facet-empty",!this.isAnyValueCurrentlyDisplayed()),C.$$(this.facetHeader.eraserElement).toggleClass("coveo-facet-header-eraser-visible",this.values.hasSelectedOrExcludedValues())},t.prototype.initQueryEvents=function(){var e=this;this.bind.onRootElement(l.QueryEvents.duringQuery,function(){return e.handleDuringQuery()}),this.bind.onRootElement(l.QueryEvents.buildingQuery,function(t){return e.handleBuildingQuery(t)}),this.bind.onRootElement(l.QueryEvents.doneBuildingQuery,function(t){return e.handleDoneBuildingQuery(t)}),this.bind.onRootElement(l.QueryEvents.deferredQuerySuccess,function(t){return e.handleDeferredQuerySuccess(t)}),this.bind.onRootElement(l.QueryEvents.queryError,function(){return e.handleQueryError()})},t.prototype.initQueryStateEvents=function(){var e=this;this.includedAttributeId=m.QueryStateModel.getFacetId(this.options.id),this.excludedAttributeId=m.QueryStateModel.getFacetId(this.options.id,!1),this.operatorAttributeId=m.QueryStateModel.getFacetOperator(this.options.id),this.lookupValueAttributeId=m.QueryStateModel.getFacetLookupValue(this.options.id),this.queryStateModel.registerNewAttribute(this.includedAttributeId,[]),this.queryStateModel.registerNewAttribute(this.excludedAttributeId,[]),this.queryStateModel.registerNewAttribute(this.operatorAttributeId,""),this.queryStateModel.registerNewAttribute(this.lookupValueAttributeId,{}),this.bind.onQueryState(f.MODEL_EVENTS.CHANGE,void 0,function(t){return e.handleQueryStateChanged(t)})},t.prototype.initComponentStateEvents=function(){this.componentStateId=m.QueryStateModel.getFacetId(this.options.id),this.componentStateModel.registerComponent(this.componentStateId,this)},t.prototype.initOmniboxEvents=function(){var e=this;this.options.includeInOmnibox&&this.bind.onRootElement(u.OmniboxEvents.populateOmnibox,function(t){return e.handlePopulateOmnibox(t)})},t.prototype.initBreadCrumbEvents=function(){var e=this;this.options.includeInBreadcrumb&&(this.bind.onRootElement(a.BreadcrumbEvents.populateBreadcrumb,function(t){return e.handlePopulateBreadcrumb(t)}),this.bind.onRootElement(a.BreadcrumbEvents.clearBreadcrumb,function(t){return e.handleClearBreadcrumb()}))},t.prototype.initSearchAlertEvents=function(){var e=this;this.bind.onRootElement(c.SearchAlertsEvents.searchAlertsPopulateMessage,function(t){return e.handlePopulateSearchAlerts(t)})},t.prototype.handleOmniboxWithStaticValue=function(e){var t=this,n=new RegExp("^"+e.completeQueryExpression.regex.source,"i"),i=r.first(r.filter(this.getDisplayedValues(),function(e){var i=t.getValueCaption(t.facetValuesList.get(e).facetValue);return n.test(i)}),this.options.numberOfValuesInOmnibox),o=r.map(i,function(e){return t.facetValuesList.get(e).facetValue}),s=new z.OmniboxValuesList(this,o,e,q.OmniboxValueElement).build();e.rows.push({element:s,zIndex:this.omniboxZIndex})},t.prototype.processNewGroupByResults=function(e){this.logger.trace("Displaying group by results",e),void 0!=e&&void 0!=e.values&&(this.nbAvailableValues=e.values.length);var t=new Q.FacetValues(e);this.updateValues(t),this.canFetchMore=this.numberOfValues<this.nbAvailableValues,this.values.hasSelectedOrExcludedValues()&&!this.options.useAnd&&this.options.isMultiValueField?this.triggerUpdateDeltaQuery(r.filter(this.values.getAll(),function(e){return!e.selected&&!e.excluded})):this.values.getSelected().length>0&&!this.options.useAnd&&this.values.updateDeltaWithFilteredFacetValues(new Q.FacetValues,this.options.isMultiValueField),this.values.hasSelectedOrExcludedValues()&&!this.options.useAnd&&this.options.isMultiValueField||(this.rebuildValueElements(),this.updateAppearanceDependingOnState(),this.ensurePinnedFacetHasntMoved()),this.keepDisplayedValuesNextTime=!1},t.prototype.updateQueryStateModel=function(){this.listenToQueryStateChange=!1,this.updateExcludedQueryStateModel(),this.updateIncludedQueryStateModel(),this.facetHeader.updateOperatorQueryStateModel(),this.updateLookupValueQueryStateModel(),this.listenToQueryStateChange=!0},t.prototype.rebuildValueElements=function(){this.updateNumberOfValues(),this.facetValuesList.rebuild(this.numberOfValues),this.shouldRenderMoreLess()?(this.updateMoreLess(),this.shouldRenderFacetSearch()&&this.updateSearchElement(this.nbAvailableValues>this.numberOfValues)):this.shouldRenderFacetSearch()&&this.updateSearchElement()},t.prototype.updateSearchElement=function(e){var t=this;if(void 0===e&&(e=!0),e){var n=new W.ValueElementRenderer(this,U.FacetValue.create(y.l("Search")));this.searchContainer=n.build().withNo([n.excludeIcon,n.icon]),C.$$(this.searchContainer.listItem).addClass("coveo-facet-search-button"),(new g.AccessibleButton).withElement(this.searchContainer.accessibleElement).withLabel(y.l("SearchFacetResults",this.options.title)).withEnterKeyboardAction(function(e){return t.toggleSearchMenu(e)}).build(),this.setCollapsedFacetSearchAccessibilityAttributes(),S.DeviceUtils.isMobileDevice()&&C.$$(this.searchContainer.label).on("click",function(e){return t.toggleSearchMenu(e)}),C.$$(this.searchContainer.checkbox).on("change",function(){C.$$(t.element).addClass("coveo-facet-searching"),t.facetSearch.focus()}),this.facetValuesList.valueContainer.appendChild(this.searchContainer.listItem)}},t.prototype.updateMoreLess=function(e,t){void 0===e&&(e=this.getMinimumNumberOfValuesToDisplay()<this.numberOfValues),void 0===t&&(t=this.nbAvailableValues>this.numberOfValues),e?C.$$(this.lessElement).addClass("coveo-active"):C.$$(this.lessElement).removeClass("coveo-active"),t?C.$$(this.moreElement).addClass("coveo-active"):C.$$(this.moreElement).removeClass("coveo-active"),e||t?C.$$(this.footerElement).removeClass("coveo-facet-empty"):C.$$(this.footerElement).addClass("coveo-facet-empty")},t.prototype.handleClickMore=function(){this.showMore()},t.prototype.handleClickLess=function(){this.showLess()},t.prototype.toggleSearchMenu=function(e){var t=this.searchContainer;t.checkbox.getAttribute("checked")?t.checkbox.removeAttribute("checked"):t.checkbox.setAttribute("checked","checked"),C.$$(t.checkbox).trigger("change"),e.stopPropagation(),e.preventDefault()},t.prototype.checkForComputedFieldAndSort=function(){-1!=this.options.sortCriteria.toLowerCase().indexOf("computedfield")&&O.Utils.isNullOrUndefined(this.options.computedField)&&this.logger.warn("Sort criteria is specified as ComputedField, but the facet uses no computed field. Facet will always be empty !",this)},t.prototype.checkForValueCaptionType=function(){this.options.valueCaption&&"function"==typeof this.options.valueCaption&&(this.options.enableFacetSearch=!1,this.options.includeInOmnibox=!1,this.logger.warn("Using a function as valueCaption is now deprecated. Use a json key value pair instead. Facet search and omnibox has been disabled for this facet",this))},t.prototype.checkForCustomSort=function(){void 0==this.options.customSort||r.contains(this.options.availableSorts,"custom")||this.options.availableSorts.unshift("custom"),"custom"==this.options.availableSorts[0]&&(this.options.sortCriteria="nosort")},t.prototype.initDependsOnManager=function(){var e=this,t={reset:function(){return e.reset()},ref:this};this.dependsOnManager=new b.DependsOnManager(t)},t.prototype.dependsOnUpdateParentDisplayValue=function(){var e=this;if(this.options.dependsOn){var n=v.ComponentsTypes.getAllFacetInstancesFromElement(this.root).filter(function(n){return n instanceof t&&n.options.id===e.options.dependsOn});if(!n.length)return void this.logger.warn('Unable to find a Facet with the id or field "'+this.options.dependsOn+'".',"The master facet values can't be updated.");if(n.length>1)return void this.logger.warn('Multiple facets with id "'+this.options.dependsOn+'" found.',"A given facet may only depend on a single other facet.","Ensure that each facet in your search interface has a unique id.","The master facet cannot be updated.",n);n[0].keepDisplayedValuesNextTime=!1}},t.prototype.initBottomAndTopSpacer=function(){var e=this,t=C.$$(this.options.paddingContainer).find(".coveo-bottomSpace"),n=C.$$(this.options.paddingContainer).find(".coveo-topSpace");this.options.preservePosition&&(C.$$(this.options.paddingContainer).on("mouseleave",function(){return e.unpinFacetPosition()}),this.pinnedTopSpace=n,this.pinnedBottomSpace=t,this.pinnedTopSpace||(this.pinnedTopSpace=document.createElement("div"),C.$$(this.pinnedTopSpace).addClass("coveo-topSpace"),C.$$(this.pinnedTopSpace).insertBefore(this.options.paddingContainer.firstChild)),this.pinnedBottomSpace||(this.pinnedBottomSpace=document.createElement("div"),C.$$(this.pinnedBottomSpace).addClass("coveo-bottomSpace"),this.options.paddingContainer.appendChild(this.pinnedBottomSpace)))},t.prototype.updateIncludedQueryStateModel=function(){var e={included:this.getSelectedValues(),title:this.includedAttributeId};this.queryStateModel.set(this.includedAttributeId,e.included)},t.prototype.updateExcludedQueryStateModel=function(){var e={title:this.excludedAttributeId,excluded:this.getExcludedValues()};this.queryStateModel.set(this.excludedAttributeId,e.excluded)},t.prototype.updateLookupValueQueryStateModel=function(){if(this.options.lookupField){var e={};r.each(this.values.getSelected().concat(this.values.getExcluded()),function(t){e[t.value]=t.lookupValue}),this.queryStateModel.set(this.lookupValueAttributeId,e)}},t.prototype.handleQueryStateChangedOperator=function(e){"and"==e?this.switchToAnd():"or"==e&&this.switchToOr()},t.prototype.handleQueryStateChangedIncluded=function(e){var t=r.difference(this.getSelectedValues(),e);O.Utils.isNonEmptyArray(t)&&this.deselectMultipleValues(t),O.Utils.arrayEqual(this.getSelectedValues(),e,!1)||this.selectMultipleValues(e)},t.prototype.handleQueryStateChangedExcluded=function(e){var t=r.difference(this.getExcludedValues(),e);O.Utils.isNonEmptyArray(t)&&this.unexcludeMultipleValues(t),O.Utils.arrayEqual(this.getExcludedValues(),e,!1)||this.excludeMultipleValues(e)},t.prototype.handleLookupvalueChanged=function(e){var t=this;r.each(e,function(e,n){t.facetValuesList.get(decodeURIComponent(n)).facetValue.lookupValue=decodeURIComponent(e)})},t.prototype.handleQueryStateChanged=function(e){d.Assert.exists(e),this.ensureDom(),this.dependsOnUpdateParentDisplayValue();var t=function(e){return e&&(e=r.map(e,function(e){return e.trim()})),e},n=e.attributes,i=t(n[this.includedAttributeId]),o=t(n[this.excludedAttributeId]),s=n[this.operatorAttributeId],a=n[this.lookupValueAttributeId];this.listenToQueryStateChange&&(O.Utils.isNullOrEmptyString(s)||this.handleQueryStateChangedOperator(s),O.Utils.isNullOrUndefined(i)||this.handleQueryStateChangedIncluded(i),O.Utils.isNullOrUndefined(o)||this.handleQueryStateChangedExcluded(o),O.Utils.isNullOrUndefined(a)||this.handleLookupvalueChanged(a))},t.prototype.handlePopulateOmnibox=function(e){d.Assert.exists(e),d.Assert.exists(e.completeQueryExpression),this.queryController.ensureCreatedQueryBuilder(),this.canFetchMore?this.handleOmniboxWithSearchInFacet(e):this.handleOmniboxWithStaticValue(e)},t.prototype.handleOmniboxWithSearchInFacet=function(e){var t=this,n=new RegExp("^"+e.completeQueryExpression.regex.source,"i"),i=new Promise(function(i,o){var s=new $.FacetSearchParameters(t);s.setValueToSearch(e.completeQueryExpression.word),s.nbResults=t.options.numberOfValuesInOmnibox,t.facetQueryController.search(s).then(function(o){var s=r.map(r.filter(o,function(e){return n.test(e.lookupValue)}),function(e){return t.values.get(e.lookupValue)||U.FacetValue.create(e)}),a=new z.OmniboxValuesList(t,s,e,q.OmniboxValueElement).build();i({element:a,zIndex:t.omniboxZIndex})}).catch(function(){i({element:void 0})})});e.rows.push({deferred:i})},t.prototype.handleDuringQuery=function(){this.ensureDom(),this.keepDisplayedValuesNextTime||this.fadeInactiveValuesInMainList(this.options.facetSearchDelay)},t.prototype.handleBuildingQuery=function(e){if(d.Assert.exists(e),d.Assert.exists(e.queryBuilder),this.facetQueryController.prepareForNewQuery(),this.values.hasSelectedOrExcludedValues()){var t=this.facetQueryController.computeOurFilterExpression();this.logger.trace("Putting filter in query",t),e.queryBuilder.advancedExpression.add(t)}},t.prototype.handleDoneBuildingQuery=function(e){d.Assert.exists(e),d.Assert.exists(e.queryBuilder);var t=e.queryBuilder;this.facetQueryController.putGroupByIntoQueryBuilder(t)},t.prototype.handleClearBreadcrumb=function(){this.reset()},t.prototype.updateValues=function(e){d.Assert.exists(e),this.keepDisplayedValuesNextTime?this.values.updateCountsFromNewValues(e):this.values=this.consolidateAndSortNewFacetValues(e),this.updateNumberOfValues()},t.prototype.consolidateAndSortNewFacetValues=function(e){return e.importActiveValuesFromOtherList(this.values),e.sort(this.optionsToSortFacetValues),e},Object.defineProperty(t.prototype,"optionsToSortFacetValues",{get:function(){return{facetValuesOrder:this.facetValuesOrder,numberOfValues:this.numberOfValues}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"facetValuesOrder",{get:function(){return new H.FacetValuesOrder(this,this.facetSort)},enumerable:!0,configurable:!0}),t.prototype.ensureFacetValueIsInList=function(e){d.Assert.exists(e),this.values.contains(e.value)||this.values.add(e)},t.prototype.isAnyValueCurrentlyDisplayed=function(){return!this.values.isEmpty()},t.prototype.buildFacetContent=function(){this.headerElement=this.buildHeader(),this.element.appendChild(this.headerElement),this.initFacetValuesList(),this.shouldRenderFacetSearch()&&this.initFacetSearch(),this.shouldRenderMoreLess()&&(this.moreElement=this.buildMore(),this.lessElement=this.buildLess()),this.footerElement=this.buildFooter(),this.element.appendChild(this.footerElement),this.lessElement&&this.moreElement&&(this.footerElement.appendChild(this.lessElement),this.footerElement.appendChild(this.moreElement))},t.prototype.buildHeader=function(){var e=this.options.headerIcon;this.options.headerIcon==this.options.field&&(e=void 0),this.facetHeader=new P.FacetHeader({facetElement:this.element,title:this.options.title,icon:e,field:this.options.field,enableClearElement:!0,enableCollapseElement:this.options.enableCollapse,facet:this,settingsKlass:this.options.enableSettings?k.FacetSettings:void 0,sortKlass:V.FacetSort,availableSorts:this.options.availableSorts});var t=this.facetHeader.build();return this.facetSettings=this.facetHeader.settings,this.facetSort=this.facetHeader.sort,t},t.prototype.unpinFacetPosition=function(){this.shouldFacetUnpin()&&this.options.preservePosition&&(C.$$(this.pinnedTopSpace).addClass("coveo-with-animation"),C.$$(this.pinnedBottomSpace).addClass("coveo-with-animation"),this.pinnedTopSpace.style.height="0px",this.pinnedBottomSpace.style.height="0px"),this.unpinnedViewportPosition=void 0,this.pinnedViewportPosition=void 0},t.prototype.isFacetPinned=function(){return O.Utils.exists(this.pinnedViewportPosition)},t.prototype.shouldFacetUnpin=function(){return O.Utils.exists(this.unpinnedViewportPosition)},t.prototype.ensurePinnedFacetHasntMoved=function(){if(this.isFacetPinned()){d.Assert.exists(this.pinnedViewportPosition),C.$$(this.pinnedTopSpace).removeClass("coveo-with-animation"),C.$$(this.pinnedBottomSpace).removeClass("coveo-with-animation"),this.pinnedTopSpace.style.height="0px",this.pinnedBottomSpace.style.height="0px";var e=this.options.scrollContainer==document.body?window:this.options.scrollContainer,t=this.element.getBoundingClientRect().top,n=t-this.pinnedViewportPosition;!function(){e instanceof Window?window.scrollTo(0,new C.Win(e).scrollY()+n):e.scrollTop=e.scrollTop+n}(),t=this.element.getBoundingClientRect().top,n=t-this.pinnedViewportPosition,n<0&&(this.pinnedTopSpace.style.height=-1*n+"px"),this.unpinnedViewportPosition=this.pinnedViewportPosition,this.pinnedViewportPosition=null}},t.prototype.buildFooter=function(){return C.$$("div",{className:"coveo-facet-footer"}).el},t.prototype.buildMore=function(){var e=this,t=C.$$("span",{className:"coveo-facet-more-icon"},_.SVGIcons.icons.arrowDown).el;w.SVGDom.addClassToSVGInContainer(t,"coveo-facet-more-icon-svg");var n=C.$$("div",{className:"coveo-facet-more",tabindex:0},t).el;return(new g.AccessibleButton).withElement(n).withLabel(y.l("ShowMoreFacetResults",this.options.title)).withSelectAction(function(){return e.handleClickMore()}).build(),n},t.prototype.buildLess=function(){var e=this,t=C.$$("span",{className:"coveo-facet-less-icon"},_.SVGIcons.icons.arrowUp).el;w.SVGDom.addClassToSVGInContainer(t,"coveo-facet-less-icon-svg");var n=C.$$("div",{className:"coveo-facet-less",tabindex:0},t).el;return(new g.AccessibleButton).withElement(n).withLabel(y.l("ShowLessFacetResults",this.options.title)).withSelectAction(function(){return e.handleClickLess()}).build(),n},t.prototype.triggerMoreQuery=function(){var e=this;this.logger.info("Triggering new facet more query"),this.showWaitingAnimation(),this.facetQueryController.fetchMore(this.numberOfValues+1).then(function(t){e.logAnalyticsFacetShowMoreLess(x.analyticsActionCauseList.facetShowMore);var n=new Q.FacetValues(t.groupByResults[0]);e.values=e.consolidateAndSortNewFacetValues(n),e.nbAvailableValues=e.values.size(),e.updateNumberOfValues(),e.canFetchMore=e.numberOfValues<e.nbAvailableValues,e.values.hasSelectedOrExcludedValues()&&!e.options.useAnd&&e.options.isMultiValueField?e.triggerUpdateDeltaQuery(r.filter(e.values.getAll(),function(e){return!e.selected&&!e.excluded})):e.values.hasSelectedOrExcludedValues()&&!e.options.useAnd?(e.values.updateDeltaWithFilteredFacetValues(new Q.FacetValues,e.options.isMultiValueField),e.hideWaitingAnimation()):e.hideWaitingAnimation(),e.rebuildValueElements()}).catch(function(){return e.hideWaitingAnimation()})},t.prototype.triggerUpdateDeltaQuery=function(e){var t=this;this.showWaitingAnimation(),this.facetQueryController.searchInFacetToUpdateDelta(e).then(function(e){var n=new Q.FacetValues;r.each(e.groupByResults,function(e){r.each(e.values,function(e){n.contains(e.value)||n.add(U.FacetValue.createFromGroupByValue(e))})}),t.values.updateDeltaWithFilteredFacetValues(n,t.options.isMultiValueField),t.cleanupDeltaValuesForMultiValueField(),t.rebuildValueElements(),t.hideWaitingAnimation()})},t.prototype.updateNumberOfValues=function(){this.keepDisplayedValuesNextTime||(this.currentPage<=0?(this.currentPage=0,this.numberOfValues=0):this.numberOfValues=this.options.numberOfValues+this.currentPage*this.options.pageSize,this.numberOfValues=Math.max(this.numberOfValues,this.getMinimumNumberOfValuesToDisplay()))},t.prototype.getMinimumNumberOfValuesToDisplay=function(){var e=this.values.getExcluded().length+this.values.getSelected().length;if(null!=this.options.customSort&&null!=this.facetSort&&this.options.customSort.length>0){var t=-1;new H.FacetValuesOrder(this,this.facetSort).reorderValues(this.values.getAll()).forEach(function(e,n){e.selected&&(t=n)}),e=t+1}return Math.max(e,this.options.numberOfValues)},t.prototype.cleanupDeltaValuesForMultiValueField=function(){var e=this;this.options.isMultiValueField&&(r.each(this.values.getAll(),function(t){0!=t.occurrences||t.selected||t.excluded||e.values.remove(t.value)}),this.nbAvailableValues=this.values.getAll().length)},t.prototype.shouldRenderFacetSearch=function(){return this.options.enableFacetSearch},t.prototype.shouldRenderMoreLess=function(){return this.options.enableMoreLess},t.prototype.debugInfo=function(){var e={};return e[this.constructor.ID]={component:this,groupByRequest:this.facetQueryController.lastGroupByRequest,groupByResult:this.facetQueryController.lastGroupByResult},e},t.prototype.logAnalyticsFacetShowMoreLess=function(e){this.usageAnalytics.logCustomEvent(e,{facetId:this.options.id,facetField:this.options.field.toString(),facetTitle:this.options.title},this.element)},t.ID="Facet",t.omniboxIndex=50,t.doExport=function(){p.exportGlobally({Facet:t,FacetHeader:P.FacetHeader,FacetSearchValuesList:N.FacetSearchValuesList,FacetSettings:k.FacetSettings,FacetSort:V.FacetSort,FacetUtils:L.FacetUtils,FacetValueElement:B.FacetValueElement,FacetValue:U.FacetValue})},t.options=o({title:A.ComponentOptions.buildLocalizedStringOption({localizedString:function(){return y.l("NoTitle")},section:"CommonOptions",priority:10}),field:A.ComponentOptions.buildFieldOption({required:!0,groupByField:!0,section:"CommonOptions"}),headerIcon:A.ComponentOptions.buildStringOption({deprecated:"This option is exposed for legacy reasons, and the recommendation is to not use this option."}),id:A.ComponentOptions.buildStringOption({postProcessing:function(e,t){if(e){var n=e.replace(/[^a-zA-Z0-9-@$_.+!*'(),,]+/g,"");return O.Utils.isNullOrEmptyString(n)?t.field:n}return t.field}}),isMultiValueField:A.ComponentOptions.buildBooleanOption({defaultValue:!1,section:"CommonOptions"}),lookupField:A.ComponentOptions.buildFieldOption({deprecated:"This option is exposed for legacy reasons. It is not recommended to use this option."}),enableSettings:A.ComponentOptions.buildBooleanOption({defaultValue:!0,section:"Sorting",priority:9}),enableSettingsFacetState:A.ComponentOptions.buildBooleanOption({defaultValue:!1,depend:"enableSettings"}),availableSorts:A.ComponentOptions.buildListOption({defaultValue:["occurrences","score","alphaascending","alphadescending"],section:"Sorting",depend:"enableSettings",values:["occurrences","score","alphaascending","alphadescending","computedfieldascending","computedfielddescending","chisquare","nosort"]}),sortCriteria:A.ComponentOptions.buildStringOption({postProcessing:function(e,t){return e||(t.availableSorts.length>0?t.availableSorts[0]:"occurrences")},section:"Sorting"}),customSort:A.ComponentOptions.buildListOption({section:"Sorting"}),numberOfValues:A.ComponentOptions.buildNumberOption({defaultValue:5,min:0,section:"CommonOptions"}),injectionDepth:A.ComponentOptions.buildNumberOption({defaultValue:1e3,min:0}),showIcon:A.ComponentOptions.buildBooleanOption({defaultValue:!1,deprecated:"This option is exposed for legacy reasons. It is not recommended to use this option."}),useAnd:A.ComponentOptions.buildBooleanOption({defaultValue:!1,section:"Filtering"}),enableTogglingOperator:A.ComponentOptions.buildBooleanOption({defaultValue:!1,alias:"allowTogglingOperator"}),enableFacetSearch:A.ComponentOptions.buildBooleanOption({defaultValue:!0,section:"FacetSearch",priority:8}),facetSearchDelay:A.ComponentOptions.buildNumberOption({defaultValue:100,min:0,depend:"enableFacetSearch"}),facetSearchIgnoreAccents:A.ComponentOptions.buildBooleanOption({defaultValue:!1,depend:"enableFacetSearch"}),numberOfValuesInFacetSearch:A.ComponentOptions.buildNumberOption({defaultValue:15,min:1,section:"FacetSearch"}),useWildcardsInFacetSearch:A.ComponentOptions.buildBooleanOption({defaultValue:!1,section:"FacetSearch"}),includeInBreadcrumb:A.ComponentOptions.buildBooleanOption({defaultValue:!0}),numberOfValuesInBreadcrumb:A.ComponentOptions.buildNumberOption({defaultFunction:function(){return S.DeviceUtils.isMobileDevice()?3:5},min:0,depend:"includeInBreadcrumb"}),includeInOmnibox:A.ComponentOptions.buildBooleanOption({defaultValue:!1,deprecated:"This option is exposed for legacy reasons. It is not recommended to use this option."}),numberOfValuesInOmnibox:A.ComponentOptions.buildNumberOption({defaultFunction:function(){return S.DeviceUtils.isMobileDevice()?3:5},min:0,depend:"includeInOmnibox",deprecated:"This option is exposed for legacy reasons. It is not recommended to use this option."}),computedField:A.ComponentOptions.buildFieldOption({priority:7}),computedFieldOperation:A.ComponentOptions.buildStringOption({defaultValue:"sum",section:"ComputedField"}),computedFieldFormat:A.ComponentOptions.buildStringOption({defaultValue:"c0",section:"ComputedField"}),computedFieldCaption:A.ComponentOptions.buildLocalizedStringOption({localizedString:function(){return y.l("ComputedField")},section:"ComputedField"}),preservePosition:A.ComponentOptions.buildBooleanOption({defaultValue:!0}),paddingContainer:A.ComponentOptions.buildSelectorOption({defaultFunction:function(e){var t=C.$$(e).parent("coveo-facet-column");return null!=t?t:e.parentElement}}),scrollContainer:A.ComponentOptions.buildSelectorOption({defaultFunction:function(e){return document.body}}),enableMoreLess:A.ComponentOptions.buildBooleanOption({defaultValue:!0}),pageSize:A.ComponentOptions.buildNumberOption({defaultValue:10,min:1,depend:"enableMoreLess"}),enableCollapse:A.ComponentOptions.buildBooleanOption({defaultValue:!0,depend:"enableSettings"}),allowedValues:A.ComponentOptions.buildListOption(),additionalFilter:A.ComponentOptions.buildQueryExpressionOption(),dependsOn:A.ComponentOptions.buildStringOption(),dependsOnCondition:A.ComponentOptions.buildCustomOption(function(){return null},{depend:"dependsOn",section:"CommonOptions"}),valueCaption:A.ComponentOptions.buildJsonOption()},R.ResponsiveFacetOptions),t}(E.Component);t.Facet=G,T.Initialization.registerAutoCreateComponent(G),G.doExport()},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=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])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),o=this&&this.__assign||Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e};Object.defineProperty(t,"__esModule",{value:!0});var r=n(7),s=n(8),a=n(28),u=n(10),l=n(29),c=n(68),p=n(24),d=n(178),h=n(2),f=n(21),m=n(5),y=n(4),g=n(31),v=n(1),b=n(114),S=n(22),C=n(0),w=n(3);n(534);var _=n(17),O=n(62),x=function(e){function t(n,i,r,u,l){var c=e.call(this,n,t.ID,r)||this;c.element=n,c.options=i,c.bindings=r,c.result=u,c.os=l,c.logAnalytics=C.debounce(function(){c.queryController.saveLastQuery();var e=v.$$(c.element).getAttribute("href");void 0!=e&&""!=e||(e=c.escapedClickUri),c.options.logAnalytics?c.options.logAnalytics(e):c.logDocumentOpen(e),g.Defer.flush()},1500,!0);var d=c.searchInterface.options.originalOptionsObject[t.ID]||{},h=s.ComponentOptions.initComponentOptions(n,t,o({},d,i)),f=c.componentOptionsModel.get(a.ComponentOptionsModel.attributesEnum.resultLink);if(c.options=C.extend({},h,f),c.result=u||c.resolveResult(),null==c.options.openQuickview&&(c.options.openQuickview="ExchangeCrawler"==u.raw.connectortype&&p.DeviceUtils.isMobileDevice()),c.element.setAttribute("tabindex","0"),m.Assert.exists(c.componentOptionsModel),m.Assert.exists(c.result),!c.quickviewShouldBeOpened()){var y=C.once(function(){return c.logAnalytics()});v.$$(n).on(["contextmenu","click","mousedown","mouseup"],y);var b;v.$$(n).on("touchstart",function(){b=window.setTimeout(y,1e3)}),v.$$(n).on("touchend",function(){b&&clearTimeout(b)})}return c.renderUri(n,u),c.bindEventToOpen(),c}return i(t,e),t.prototype.renderUri=function(e,t){if(/^\s*$/.test(this.element.innerHTML)){var n=this.getDisplayedTitle();this.element.innerHTML=n,this.element.setAttribute("aria-label",O.l("Result")),this.element.title||(this.element.title=this.getDisplayedTitleAsText())}},t.prototype.openLink=function(e){void 0===e&&(e=!0),e&&this.logAnalytics(),window.location.href=this.getResultUri()},t.prototype.openLinkInNewWindow=function(e){void 0===e&&(e=!0),e&&this.logAnalytics(),window.open(this.getResultUri(),"_blank")},t.prototype.openLinkInOutlook=function(e){void 0===e&&(e=!0),this.hasOutlookField()&&(e&&this.logAnalytics(),this.openLink())},t.prototype.openLinkAsConfigured=function(e){void 0===e&&(e=!0),this.toExecuteOnOpen&&(e&&this.logAnalytics(),this.toExecuteOnOpen())},t.prototype.bindEventToOpen=function(){return this.bindOnClickIfNotUndefined()||this.bindOpenQuickviewIfNotUndefined()||this.setHrefIfNotAlready()||this.openLinkThatIsNotAnAnchor()},t.prototype.getDisplayedTitle=function(){if(this.options.titleTemplate){var e=S.StringUtils.buildStringTemplateFromResult(this.options.titleTemplate,this.result);return e?b.StreamHighlightUtils.highlightStreamText(e,this.result.termsToHighlight,this.result.phrasesToHighlight):this.escapedClickUri}return this.result.title?c.HighlightUtils.highlightString(this.result.title,this.result.titleHighlights,null,"coveo-highlight"):this.escapedClickUri},t.prototype.getDisplayedTitleAsText=function(){var e=v.$$("div");return e.setHtml(this.getDisplayedTitle()),e.text()},Object.defineProperty(t.prototype,"escapedClickUri",{get:function(){return C.escape(this.result.clickUri)},enumerable:!0,configurable:!0}),t.prototype.bindOnClickIfNotUndefined=function(){var e=this;return void 0!=this.options.onClick&&(this.toExecuteOnOpen=function(t){e.options.onClick.call(e,t,e.result)},(new _.AccessibleButton).withElement(this.element).withLabel(this.result.title).withSelectAction(function(t){return e.toExecuteOnOpen(t)}).build(),!0)},t.prototype.bindOpenQuickviewIfNotUndefined=function(){var e=this;return!!this.quickviewShouldBeOpened()&&(this.toExecuteOnOpen=function(){v.$$(e.bindings.resultElement).trigger(l.ResultListEvents.openQuickview)},v.$$(this.element).on("click",function(t){t.preventDefault(),e.toExecuteOnOpen()}),!0)},t.prototype.openLinkThatIsNotAnAnchor=function(){var e=this;return!this.elementIsAnAnchor()&&(this.toExecuteOnOpen=function(){e.options.alwaysOpenInNewWindow?e.options.openInOutlook?e.openLinkInOutlook():e.openLinkInNewWindow():e.openLink()},v.$$(this.element).on("click",function(){e.toExecuteOnOpen()}),!0)},t.prototype.setHrefIfNotAlready=function(){return!(!this.elementIsAnAnchor()||y.Utils.isNonEmptyString(v.$$(this.element).getAttribute("href")))&&(v.$$(this.element).setAttribute("href",this.getResultUri()),!this.options.alwaysOpenInNewWindow||this.options.openInOutlook&&this.hasOutlookField()||v.$$(this.element).setAttribute("target","_blank"),!0)},t.prototype.logDocumentOpen=function(e){this.usageAnalytics.logClickEvent(u.analyticsActionCauseList.documentOpen,{documentURL:e,documentTitle:this.result.title,author:y.Utils.getFieldValue(this.result,"author")},this.result,this.root)},t.prototype.filterProtocol=function(e){var t=/^(https?|ftp|file|mailto|tel):/i.test(e),n=/^(\/|\.\/|\.\.\/)/.test(e);return t||n?e:""},t.prototype.getResultUri=function(){if(this.options.hrefTemplate){var e=S.StringUtils.buildStringTemplateFromResult(this.options.hrefTemplate,this.result);return this.filterProtocol(e)}return void 0==this.options.field&&this.options.openInOutlook&&this.setField(),void 0!=this.options.field?this.filterProtocol(y.Utils.getFieldValue(this.result,this.options.field)):this.filterProtocol(this.result.clickUri)},t.prototype.elementIsAnAnchor=function(){return"A"==this.element.tagName},t.prototype.setField=function(){var e=y.Utils.exists(this.os)?this.os:d.OSUtils.get();e==d.OS_NAME.MACOSX&&this.hasOutlookField()?this.options.field="@outlookformacuri":e==d.OS_NAME.WINDOWS&&this.hasOutlookField()&&(this.options.field="@outlookuri")},t.prototype.hasOutlookField=function(){var e=y.Utils.exists(this.os)?this.os:d.OSUtils.get();return e==d.OS_NAME.MACOSX&&void 0!=this.result.raw.outlookformacuri||e==d.OS_NAME.WINDOWS&&void 0!=this.result.raw.outlookuri},t.prototype.isUriThatMustBeOpenedInQuickview=function(){return 0==this.escapedClickUri.toLowerCase().indexOf("ldap://")},t.prototype.quickviewShouldBeOpened=function(){return(this.options.openQuickview||this.isUriThatMustBeOpenedInQuickview())&&f.QueryUtils.hasHTMLVersion(this.result)},t.ID="ResultLink",t.doExport=function(){w.exportGlobally({ResultLink:t})},t.options={field:s.ComponentOptions.buildFieldOption(),openInOutlook:s.ComponentOptions.buildBooleanOption({defaultValue:!1}),openQuickview:s.ComponentOptions.buildBooleanOption({defaultValue:!1}),alwaysOpenInNewWindow:s.ComponentOptions.buildBooleanOption({defaultValue:!1}),hrefTemplate:s.ComponentOptions.buildStringOption(),titleTemplate:s.ComponentOptions.buildStringOption(),onClick:s.ComponentOptions.buildCustomOption(function(){return null}),logAnalytics:s.ComponentOptions.buildCustomOption(function(){return null})},t}(r.Component);t.ResultLink=x,h.Initialization.registerAutoCreateComponent(x)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});!function(e){e.idle="idle",e.selected="selected"}(t.FacetValueState||(t.FacetValueState={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(5),o=function(){function e(e,t){void 0===t&&(t=!0),this.milliseconds=t?e:1e3*e}return e.prototype.getMilliseconds=function(){return this.milliseconds},e.prototype.getSeconds=function(){return this.getMilliseconds()/1e3},e.prototype.getMinutes=function(){return this.getSeconds()/60},e.prototype.getHours=function(){return this.getMinutes()/60},e.prototype.getDays=function(){return this.getHours()/24},e.prototype.getWeeks=function(){return this.getDays()/7},e.prototype.getHHMMSS=function(){var e,t,n,i=Math.floor(this.getHours()),o=Math.floor(this.getMinutes())%60,r=Math.floor(this.getSeconds())%60;return e=0==i?"":i<10?"0"+i.toString():i.toString(),t=o<10?"0"+o.toString():o.toString(),n=r<10?"0"+r.toString():r.toString(),(""!=e?e+":":"")+t+":"+n},e.fromDates=function(t,n){return i.Assert.exists(t),i.Assert.exists(n),new e(n.valueOf()-t.valueOf())},e}();t.TimeSpan=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(5),o=n(21),r=n(0),s=function(){function e(){this.parts=[],this.wrapParts=!0}return e.prototype.add=function(e){i.Assert.isNonEmptyString(e),this.parts.push(e)},e.prototype.fromExpressionBuilder=function(e){this.parts=this.parts.concat(e.parts)},e.prototype.addFieldExpression=function(e,t,n){i.Assert.isNonEmptyString(e),i.Assert.stringStartsWith(e,"@"),i.Assert.isNonEmptyString(t),i.Assert.isLargerOrEqualsThan(1,n.length),this.add(o.QueryUtils.buildFieldExpression(e,t,n))},e.prototype.addFieldNotEqualExpression=function(e,t){i.Assert.isNonEmptyString(e),i.Assert.stringStartsWith(e,"@"),i.Assert.isLargerOrEqualsThan(1,t.length),this.add(o.QueryUtils.buildFieldNotEqualExpression(e,t))},e.prototype.remove=function(e){i.Assert.isNonEmptyString(e),-1!=r.indexOf(this.parts,e)&&this.parts.splice(r.indexOf(this.parts,e),1)},e.prototype.isEmpty=function(){return 0==this.parts.length},e.prototype.build=function(e){return void 0===e&&(e=" "),0==this.parts.length?void 0:1==this.parts.length?this.parts[0]:this.wrapParts?"("+this.parts.join(")"+e+"(")+")":this.parts.join(e)},e.prototype.getParts=function(){return this.parts},e.merge=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var i=new e;return r.each(t,function(e){i.parts=i.parts.concat(e.parts)}),i},e.mergeUsingOr=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var i=r.filter(t,function(e){return!e.isEmpty()}),o=new e;if(1==i.length)o.parts=[].concat(i[0].parts);else if(i.length>1){var s=r.map(i,function(e){return e.build()});o.add("("+s.join(") OR (")+")")}return o},e}();t.ExpressionBuilder=s},function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){}return e.getJQuery=function(){return!!(window&&window.Coveo&&window.Coveo.$)&&window.Coveo.$},e.isInstanceOfJQuery=function(e){var t=this.getJQuery();return!!t&&e instanceof t},e.isInstanceOfJqueryEvent=function(e){var t=this.getJQuery();return!!t&&e instanceof t.Event},e}();t.JQueryUtils=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(4),o=n(0),r=function(){function e(){}return e.prototype.merge=function(e){return o.extend({},this,e)},e.prototype.mergeDeep=function(e){return o.extend({},i.Utils.extendDeep(this,e))},e}();t.Options=r},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=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])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n(18),r=function(e){function t(n){return e.call(this,n,t.ID,{})||this}return i(t,e),t.prototype.registerComponent=function(e,t){void 0==this.attributes[e]?this.attributes[e]=[t]:this.attributes[e].push(t)},t.ID="ComponentState",t}(o.Model);t.ComponentStateModel=r},function(e,t,n){var i=n(104);e.exports=function(e){if(!i(e))throw TypeError(e+" is not an object!");return e}},function(e,t,n){e.exports=!n(105)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on  "+e);return e}},function(e,t){e.exports={}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(8);t.ResponsiveFacetOptions={enableResponsiveMode:i.ComponentOptions.buildBooleanOption({defaultValue:!0,section:"ResponsiveOptions"}),responsiveBreakpoint:i.ComponentOptions.buildNumberOption({deprecated:"This option is exposed for legacy reasons. It is not recommended to use this option. Instead, use `SearchInterface.options.responsiveMediumBreakpoint` options exposed on the `SearchInterface`."}),dropdownHeaderLabel:i.ComponentOptions.buildLocalizedStringOption({section:"ResponsiveOptions"})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){}return e.searchAlertsCreated="searchAlertsCreated",e.searchAlertsDeleted="searchAlertsDeleted",e.searchAlertsFail="searchAlertsFail",e.searchAlertsPopulateMessage="searchAlertsPopulateMessage",e}();t.SearchAlertsEvents=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){}return e.buildingAdvancedSearch="buildingAdvancedSearch",e.executeAdvancedSearch="executeAdvancedSearch",e}();t.AdvancedSearchEvents=i},function(e,t,n){"use strict";function i(){var e=r();return e.store=a.getAvailableStorage(),e}function o(){var e=r();return e.store=new a.NullStorage,e}function r(){var e=new a.CookieStorage;return new s.history.HistoryStore(e)}Object.defineProperty(t,"__esModule",{value:!0});var s=n(306),a=n(99);t.buildHistoryStore=i,t.buildNullHistoryStore=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=n(33),r=n(3),s=n(6),a=n(5),u=n(23),l=n(453),c=function(){function e(e){void 0===e&&(e=function(){}),this.onChange=e,this.wasReset=!0,a.Assert.exists(e),this.buildContent()}return e.prototype.reset=function(){this.picker.setDate(void 0),this.wasReset=!0,this.onChange(this)},e.prototype.getElement=function(){return this.element},e.prototype.getValue=function(){return this.wasReset?"":this.picker.getDate()?o.DateUtils.dateForQuery(this.picker.getDate()):""},e.prototype.getDateValue=function(){return this.wasReset?null:this.picker.getDate()},e.prototype.setValue=function(e){a.Assert.exists(e),this.picker.setDate(e),this.wasReset=!1},e.prototype.build=function(){return this.element},e.prototype.buildContent=function(){var e=this;this.element=i.$$("input",{className:"coveo-button","aria-label":s.l("Date")}).el,this.element.readOnly=!0,this.picker=new l({field:this.element,onSelect:function(){e.wasReset=!1,e.onChange.call(e,e)},i18n:{previousMonth:s.l("PreviousMonth"),nextMonth:s.l("NextMonth"),months:u.culture().calendar.months.names,weekdays:u.culture().calendar.days.names,weekdaysShort:u.culture().calendar.days.namesAbbr}})},e.doExport=function(){r.exportGlobally({DatePicker:e})},e}();t.DatePicker=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,o=n(9),r=n(5),s=n(72),a=n(24),u=n(4),l=n(75),c=n(0),p=n(43);!function(e){e[e.OPENED=XMLHttpRequest.OPENED||1]="OPENED",e[e.HEADERS_RECEIVED=XMLHttpRequest.HEADERS_RECEIVED||2]="HEADERS_RECEIVED",e[e.DONE=XMLHttpRequest.DONE||4]="DONE"}(i||(i={}));var d=function(){function e(e){void 0===e&&(e={}),this.options=e,this.useJsonp=!1,this.logger=new o.Logger(this)}return e.convertJsonToQueryString=function(e){return r.Assert.exists(e),c.chain(e).map(function(e,t){if(null!=e){var n=c.isObject(e)?JSON.stringify(e):e.toString();return t+"="+u.Utils.safeEncodeURIComponent(n)}return null}).compact().value()},e.convertJsonToFormBody=function(e){return this.convertJsonToQueryString(e).join("&")},e.prototype.call=function(e){var t={url:e.url,queryString:e.errorsAsSuccess?e.queryString.concat(["errorsAsSuccess=1"]):e.queryString,requestData:e.requestData,requestDataType:e.requestDataType||"application/x-www-form-urlencoded; charset=UTF-8",begun:new Date,method:e.method};t.headers=this.buildRequestHeaders(t),c.isFunction(this.options.requestModifier)&&(t=this.options.requestModifier(t)),this.logger.trace("Performing REST request",t);var n=this.parseURL(t.url),i=window.location.hostname===n.hostname||""===n.hostname,o=""!=window.location.port?window.location.port:"https:"==window.location.protocol?"443":"80",r=o==n.port,s=!(i&&r);return this.useJsonp?this.callUsingAjaxJsonP(t):this.isCORSSupported()||!s?this.callUsingXMLHttpRequest(t,e.responseType):this.isXDomainRequestSupported()?this.callUsingXDomainRequest(t):this.callUsingAjaxJsonP(t)},e.prototype.callUsingXMLHttpRequest=function(t,n){var o=this;return void 0===n&&(n="text"),new Promise(function(r,s){var u=o.getXmlHttpRequest(),l=!1;u.onreadystatechange=function(p){if(u.readyState!=i.OPENED||l){if(u.readyState==i.HEADERS_RECEIVED){var d=u.status;o.isSuccessHttpStatus(d)?u.responseType=n:u.responseType="text"}else if(u.readyState==i.DONE){var h=u.status,f=void 0;switch(n){case"json":if(f=u.response,"json"==n&&"IE"==a.DeviceUtils.getDeviceName())try{f=JSON.parse(f)}catch(e){}break;case"text":f=o.tryParseResponseText(u.responseText,u.getResponseHeader("Content-Type"));break;default:f=u.response}void 0==f&&(f=o.tryParseResponseText(u.responseText,u.getResponseHeader("Content-Type"))),o.isSuccessHttpStatus(h)?o.handleSuccessfulResponseThatMightBeAnError(t,f,r,s):o.handleError(t,u.status,f,s)}}else l=!0,u.withCredentials=!o.options.anonymous,c.each(t.headers,function(e,t){u.setRequestHeader(t,e)}),"GET"==t.method?u.send():0===t.requestDataType.indexOf("application/json")?u.send(JSON.stringify(t.requestData)):u.send(e.convertJsonToFormBody(t.requestData))};var p=t.queryString;"GET"==t.method&&(p=p.concat(e.convertJsonToQueryString(t.requestData))),u.open(t.method,o.combineUrlAndQueryString(t.url,p))})},e.prototype.callUsingXDomainRequest=function(t){var n=this;return new Promise(function(i,o){var r=t.queryString.concat([]);n.options.accessToken&&r.push("access_token="+u.Utils.safeEncodeURIComponent(n.options.accessToken));var s=new XDomainRequest;"GET"==t.method&&(r=r.concat(e.convertJsonToQueryString(t.requestData))),s.open(t.method,n.combineUrlAndQueryString(t.url,r)),s.onload=function(){var e=n.tryParseResponseText(s.responseText,s.contentType);n.handleSuccessfulResponseThatMightBeAnError(t,e,i,o)},s.onerror=function(){var e=n.tryParseResponseText(s.responseText,s.contentType);n.handleError(t,0,e,o)},s.ontimeout=function(){return n.logger.error("Request timeout",s,t.requestData)},s.onprogress=function(){return n.logger.trace("Request progress",s,t.requestData)},c.defer(function(){"GET"==t.method?s.send():s.send(e.convertJsonToFormBody(t.requestData))})})},e.prototype.callUsingAjaxJsonP=function(t){var n=this,i=l.JQueryUtils.getJQuery();return r.Assert.check(i,"Using jsonp without having included jQuery is not supported."),new Promise(function(o,r){var s=t.queryString.concat(e.convertJsonToQueryString(t.requestData));n.options.accessToken&&s.push("access_token="+u.Utils.safeEncodeURIComponent(n.options.accessToken)),s.push("callback=?"),i.ajax({url:n.combineUrlAndQueryString(t.url,s),dataType:"jsonp",success:function(e){return n.handleSuccessfulResponseThatMightBeAnError(t,e,o,r)},timeout:e.JSONP_ERROR_TIMEOUT,error:function(){return n.handleError(t,0,void 0,r)}})})},e.prototype.parseURL=function(e){var t=document.createElement("a");return t.href=e,t},e.prototype.getXmlHttpRequest=function(){return new(this.options.xmlHttpRequest||XMLHttpRequest)},e.prototype.handleSuccessfulResponseThatMightBeAnError=function(e,t,n,i){this.isErrorResponseBody(t)?this.handleError(e,t.statusCode,t,i):this.handleSuccess(e,t,n)},e.prototype.handleSuccess=function(e,t,n){var i={duration:s.TimeSpan.fromDates(e.begun,new Date).getMilliseconds(),data:t};this.logger.trace("REST request successful",t,e),n(i)},e.prototype.handleError=function(e,t,n,i){var o={statusCode:t,data:n};this.logger.error("REST request failed",t,n,e),i(o)},e.prototype.combineUrlAndQueryString=function(e,t){return p.UrlUtils.normalizeAsString({paths:[e],queryAsString:t})},e.prototype.isXDomainRequestSupported=function(){return"XDomainRequest"in window},e.prototype.isCORSSupported=function(){return"withCredentials"in this.getXmlHttpRequest()},e.prototype.isSuccessHttpStatus=function(e){return e>=200&&e<300||304===e},e.prototype.tryParseResponseText=function(e,t){if(null==t||-1==t.indexOf("application/json"))return e;if(u.Utils.isNonEmptyString(e))try{return JSON.parse(e)}catch(e){return}},e.prototype.isErrorResponseBody=function(e){return!(!e||!e.statusCode)&&!this.isSuccessHttpStatus(e.statusCode)},e.prototype.buildRequestHeaders=function(e){var t={};return this.options.accessToken?t.Authorization="Bearer "+this.options.accessToken:this.options.username&&this.options.password&&(t.Authorization="Basic "+btoa(this.options.username+":"+this.options.password)),"GET"==e.method?t:(0===e.requestDataType.indexOf("application/json")?t["Content-Type"]="application/json; charset=UTF-8":t["Content-Type"]="application/x-www-form-urlencoded; charset=UTF-8",t)},e.JSONP_ERROR_TIMEOUT=1e4,e}();t.EndpointCaller=d},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=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])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),o=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))(function(o,r){function s(e){try{u(i.next(e))}catch(e){r(e)}}function a(e){try{u(i.throw(e))}catch(e){r(e)}}function u(e){e.done?o(e.value):new n(function(t){t(e.value)}).then(s,a)}u((i=i.apply(e,t||[])).next())})},r=this&&this.__generator||function(e,t){function n(e){return function(t){return i([e,t])}}function i(n){if(o)throw new TypeError("Generator is already executing.");for(;u;)try{if(o=1,r&&(s=r[2&n[0]?"return":n[0]?"throw":"next"])&&!(s=s.call(r,n[1])).done)return s;switch(r=0,s&&(n=[0,s.value]),n[0]){case 0:case 1:s=n;break;case 4:return u.label++,{value:n[1],done:!1};case 5:u.label++,r=n[1],n=[0];continue;case 7:n=u.ops.pop(),u.trys.pop();continue;default:if(s=u.trys,!(s=s.length>0&&s[s.length-1])&&(6===n[0]||2===n[0])){u=0;continue}if(3===n[0]&&(!s||n[1]>s[0]&&n[1]<s[3])){u.label=n[1];break}if(6===n[0]&&u.label<s[1]){u.label=s[1],s=n;break}if(s&&u.label<s[2]){u.label=s[2],u.ops.push(n);break}s[2]&&u.ops.pop(),u.trys.pop();continue}n=t.call(e,u)}catch(e){n=[6,e],r=0}finally{o=s=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}var o,r,s,a,u={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return a={next:n(0),throw:n(1),return:n(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a};Object.defineProperty(t,"__esModule",{value:!0}),n(527),n(528),n(529);var s=n(0),a=n(11),u=n(129),l=n(29),c=n(3),p=n(5),d=n(31),h=n(18),f=n(13),m=n(24),y=n(1),g=n(93),v=n(4),b=n(10),S=n(7),C=n(8),w=n(2),_=n(175),O=n(61),x=n(530),E=n(471),A=n(468),T=n(117),R=n(467),F=n(67),M=n(92),I=n(531),P=n(532),D=n(211),$=n(533),N=n(112),k=n(469);E.CoreHelpers.exportAllHelpersGlobally(window.Coveo);var V=function(e){function t(n,i,o,r){void 0===r&&(r=t.ID);var s=e.call(this,n,r,o)||this;return s.element=n,s.options=i,s.bindings=o,s.currentlyDisplayedResults=[],s.reachedTheEndOfResults=!1,s.disableLayoutChange=!1,s.successiveScrollCount=0,s.options=C.ComponentOptions.initComponentOptions(n,t,i),p.Assert.exists(n),p.Assert.exists(s.options),p.Assert.exists(s.options.resultTemplate),p.Assert.exists(s.options.infiniteScrollContainer),s.showOrHideElementsDependingOnState(!1,!1),s.addListeners(),s.resultContainer=s.initResultContainer(),p.Assert.exists(s.options.resultsContainer),s.initWaitAnimationContainer(),p.Assert.exists(s.options.waitAnimationContainer),s.setupTemplatesVersusLayouts(),y.$$(s.root).on(u.ResultLayoutEvents.populateResultLayout,function(e,t){return t.layouts.push(s.options.layout)}),s.setupRenderer(),s.makeElementFocusable(),s.ensureHasId(),s}return i(t,e),t.getDefaultTemplate=function(e){var n=t.loadTemplatesFromCache();if(null!=n)return n;var i=S.Component.get(e);return Coveo.Recommendation&&i.searchInterface instanceof Coveo.Recommendation?new A.DefaultRecommendationTemplate:new T.DefaultResultTemplate},t.loadTemplatesFromCache=function(){var e=F.TemplateCache.getResultListTemplateNames();return e.length>0?new M.TemplateList(s.compact(s.map(e,function(e){return F.TemplateCache.getTemplate(e)}))):null},t.prototype.addListeners=function(){var e=this;this.bind.onRootElement(a.QueryEvents.newQuery,function(t){return e.handleNewQuery()}),this.bind.onRootElement(a.QueryEvents.buildingQuery,function(t){return e.handleBuildingQuery(t)}),this.bind.onRootElement(a.QueryEvents.querySuccess,function(t){return e.handleQuerySuccess(t)}),this.bind.onRootElement(a.QueryEvents.duringQuery,function(t){return e.handleDuringQuery()}),this.bind.onRootElement(a.QueryEvents.queryError,function(t){return e.handleQueryError()}),y.$$(this.root).on(l.ResultListEvents.changeLayout,function(t,n){return e.handleChangeLayout(n)}),this.options.enableInfiniteScroll?this.addInfiniteScrollListeners():this.addPagerListeners()},t.prototype.addInfiniteScrollListeners=function(){var e=this;this.bind.on(this.options.infiniteScrollContainer,"scroll",function(){e.successiveScrollCount=0,e.handleScrollOfResultList()}),this.bind.onRootElement(a.QueryEvents.deferredQuerySuccess,function(){setTimeout(function(){e.scrollToTopIfEnabled()},0)})},t.prototype.addPagerListeners=function(){var e=this;this.bind.onQueryState(h.MODEL_EVENTS.CHANGE_ONE,f.QUERY_STATE_ATTRIBUTES.FIRST,function(){e.bind.oneRootElement(a.QueryEvents.deferredQuerySuccess,function(){setTimeout(function(){e.scrollToTopIfEnabled()},0)})})},t.prototype.getAutoSelectedFieldsToInclude=function(){return s.chain(this.options.resultTemplate.getFields()).concat(this.getMinimalFieldsToInclude()).compact().unique().value()},t.prototype.setupTemplatesVersusLayouts=function(){var e=this,t="coveo-"+this.options.layout+"-layout-container";this.resultContainer.addClass(t),"table"===this.options.layout&&(this.options.resultTemplate=new R.TableTemplate(this.options.resultTemplate.templates||[])),this.options.resultTemplate instanceof M.TemplateList?s.each(this.options.resultTemplate.templates,function(t){t.layout||(t.layout=e.options.layout)}):this.options.resultTemplate instanceof T.DefaultResultTemplate&&"list"==this.options.layout&&x.ResponsiveDefaultResultTemplate.init(this.root,this,{})},t.prototype.renderResults=function(e,t){var n=this;return void 0===t&&(t=!1),t||this.resultContainer.empty(),this.renderer.renderResults(e,t,this.triggerNewResultDisplayed.bind(this)).then(function(){return n.triggerNewResultsDisplayed()})},t.prototype.buildResults=function(e){var t=this.options.layout;return this.templateToHtml.buildResults(e,t,this.currentlyDisplayedResults)},t.prototype.buildResult=function(e){var t=this.options.layout;return this.templateToHtml.buildResult(e,t,this.currentlyDisplayedResults)},t.prototype.displayMoreResults=function(e){return p.Assert.isLargerOrEqualsThan(1,e),this.isCurrentlyFetchingMoreResults()?void this.logger.warn("Ignoring request to display more results since we're already doing so"):this.hasPotentiallyMoreResultsToDisplay()?(this.options.enableInfiniteScrollWaitingAnimation&&this.showWaitingAnimationForInfiniteScrolling(),this.fetchAndRenderMoreResults(e)):void this.logger.warn("Ignoring request to display more results since we know there aren't more to display")},Object.defineProperty(t.prototype,"templateToHtml",{get:function(){var e={resultTemplate:this.options.resultTemplate,searchInterface:this.searchInterface,queryStateModel:this.queryStateModel};return new k.TemplateToHtml(e)},enumerable:!0,configurable:!0}),t.prototype.getDisplayedResults=function(){return this.currentlyDisplayedResults},t.prototype.getDisplayedResultsElements=function(){return this.resultContainer.getResultElements()},t.prototype.enable=function(){this.disableLayoutChange=!1,this.resultLayoutSelectors.length>0?this.enableBasedOnActiveLayouts():(e.prototype.enable.call(this),y.$$(this.element).removeClass("coveo-hidden"))},t.prototype.disable=function(){var t=this;e.prototype.disable.call(this);var n=s.map(this.otherResultLists,function(e){return e.options.layout});s.contains(n,this.options.layout)||this.disableLayoutChange||s.each(this.resultLayoutSelectors,function(e){e.disableLayouts([t.options.layout])}),this.disableLayoutChange=!1,y.$$(this.element).addClass("coveo-hidden")},t.prototype.autoCreateComponentsInsideResult=function(e,t){return this.templateToHtml.autoCreateComponentsInsideResult(e,t)},t.prototype.triggerNewResultDisplayed=function(e,t){var n={result:e,item:t};y.$$(this.element).trigger(l.ResultListEvents.newResultDisplayed,n)},t.prototype.triggerNewResultsDisplayed=function(){var e={isInfiniteScrollEnabled:this.options.enableInfiniteScroll};y.$$(this.element).trigger(l.ResultListEvents.newResultsDisplayed,e)},t.prototype.fetchAndRenderMoreResults=function(e){return o(this,void 0,void 0,function(){var t,n;return r(this,function(i){switch(i.label){case 0:this.fetchingMoreResults=this.queryController.fetchMore(e),i.label=1;case 1:return i.trys.push([1,3,,4]),[4,this.fetchingMoreResults];case 2:return t=i.sent(),p.Assert.exists(t),this.usageAnalytics.logCustomEvent(b.analyticsActionCauseList.pagerScrolling,{},this.element),this.reachedTheEndOfResults=e>t.results.length,this.renderNewResults(t),this.resetStateAfterFetchingMoreResults(),[2,t];case 3:return n=i.sent(),this.resetStateAfterFetchingMoreResults(),[2,Promise.reject(n)];case 4:return[2]}})})},t.prototype.renderNewResults=function(e){return o(this,void 0,void 0,function(){var t,n;return r(this,function(i){switch(i.label){case 0:return[4,this.buildResults(e)];case 1:return t=i.sent(),this.renderResults(t,!0),(n=this.currentlyDisplayedResults).push.apply(n,e.results),this.triggerNewResultsDisplayed(),[2]}})})},t.prototype.resetStateAfterFetchingMoreResults=function(){var e=this;this.hideWaitingAnimationForInfiniteScrolling(),this.fetchingMoreResults=void 0,d.Defer.defer(function(){e.successiveScrollCount++,e.successiveScrollCount<=t.MAX_AMOUNT_OF_SUCESSIVE_REQUESTS?e.handleScrollOfResultList():e.logger.info("Result list has triggered 5 consecutive queries to try and fill up the scrolling container, but it is still unable to do so.\n          Try explicitly setting the 'data-infinite-scroll-container-selector' option on the result list. See: https://coveo.github.io/search-ui/components/resultlist.html#options.infinitescrollcontainer")})},t.prototype.handleDuringQuery=function(){this.logger.trace("Emptying the result container"),this.cancelFetchingMoreResultsIfNeeded(),this.showWaitingAnimation(),this.showOrHideElementsDependingOnState(!1,!1)},t.prototype.handleQueryError=function(){this.hideWaitingAnimation(),this.resultContainer.empty(),this.currentlyDisplayedResults=[],this.reachedTheEndOfResults=!0},t.prototype.handleQuerySuccess=function(e){var n=this;p.Assert.exists(e),p.Assert.exists(e.results);var i=e.results;this.logger.trace("Received query results from new query",i),this.hideWaitingAnimation(),t.resultCurrentlyBeingRendered=void 0,this.reachedTheEndOfResults=e.query.numberOfResults>e.results.results.length,this.currentlyDisplayedResults=[],this.buildResults(e.results).then(function(t){return o(n,void 0,void 0,function(){return r(this,function(n){switch(n.label){case 0:return[4,this.renderResults(t)];case 1:return n.sent(),this.showOrHideElementsDependingOnState(!0,0!=this.currentlyDisplayedResults.length),m.DeviceUtils.isMobileDevice()&&void 0!=this.options.mobileScrollContainer&&(this.options.mobileScrollContainer.scrollTop=0),this.options.enableInfiniteScroll&&i.results.length==e.queryBuilder.numberOfResults&&(this.scrollToTopIfEnabled(),this.handleScrollOfResultList()),[2]}})})})},t.prototype.handleScrollOfResultList=function(){!this.isCurrentlyFetchingMoreResults()&&this.options.enableInfiniteScroll&&this.isScrollingOfResultListAlmostAtTheBottom()&&this.hasPotentiallyMoreResultsToDisplay()&&this.displayMoreResults(this.options.infiniteScrollPageSize)},t.prototype.scrollToTopIfEnabled=function(){this.options.enableScrollToTop&&N.ResultListUtils.scrollToTop(this.root)},t.prototype.handleNewQuery=function(){y.$$(this.element).removeClass("coveo-hidden"),t.resultCurrentlyBeingRendered=void 0},Object.defineProperty(t.prototype,"otherResultLists",{get:function(){var e=this.searchInterface.getComponents(t.ID);return s.without(e,this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"resultLayoutSelectors",{get:function(){return this.searchInterface.getComponents("ResultLayoutSelector")},enumerable:!0,configurable:!0}),t.prototype.handleBuildingQuery=function(e){if(null!=this.options.fieldsToInclude&&e.queryBuilder.addFieldsToInclude(s.map(this.options.fieldsToInclude,function(e){return e.substr(1)})),this.options.autoSelectFieldsToInclude){var t=s.flatten(s.map(this.otherResultLists,function(e){return e.getAutoSelectedFieldsToInclude()}));e.queryBuilder.addRequiredFields(s.unique(t.concat(this.getAutoSelectedFieldsToInclude()))),e.queryBuilder.includeRequiredFields=!0}},t.prototype.handleChangeLayout=function(e){var t=this;e.layout===this.options.layout?(this.disableLayoutChange=!1,this.enable(),this.options.resultTemplate.layout=this.options.layout,e.results&&(this.resultContainer.isEmpty()&&new _.InitializationPlaceholder(this.root).withVisibleRootElement().withPlaceholderForResultList(),d.Defer.defer(function(){return o(t,void 0,void 0,function(){var t;return r(this,function(n){switch(n.label){case 0:return[4,this.buildResults(e.results)];case 1:return t=n.sent(),this.renderResults(t),this.showOrHideElementsDependingOnState(!0,0!==this.currentlyDisplayedResults.length),[2]}})})}))):(this.disableLayoutChange=!0,this.disable(),this.resultContainer.empty())},t.prototype.isCurrentlyFetchingMoreResults=function(){return v.Utils.exists(this.fetchingMoreResults)},t.prototype.getMinimalFieldsToInclude=function(){return["author","language","urihash","objecttype","collection","source","language","permanentid"]},t.prototype.isScrollingOfResultListAlmostAtTheBottom=function(){var e;try{e=this.options.infiniteScrollContainer instanceof Window}catch(t){e=!1}return e?this.isScrollAtBottomForWindowElement():this.isScrollAtBottomForHtmlElement()},t.prototype.isScrollAtBottomForWindowElement=function(){var e=new y.Win(window),t=e.height(),n=e.scrollY();return new y.Doc(document).height()-(t+n)<t/2},t.prototype.isScrollAtBottomForHtmlElement=function(){var e=this.options.infiniteScrollContainer,t=e.clientHeight;return e.scrollHeight-(e.scrollTop+t)<t/2},t.prototype.hasPotentiallyMoreResultsToDisplay=function(){return this.currentlyDisplayedResults.length>0&&!this.reachedTheEndOfResults},t.prototype.cancelFetchingMoreResultsIfNeeded=function(){this.isCurrentlyFetchingMoreResults()&&(this.logger.trace("Cancelling fetching more results"),Promise.reject(this.fetchingMoreResults),this.fetchingMoreResults=void 0)},t.prototype.showOrHideElementsDependingOnState=function(e,t){var n=y.$$(this.element).findAll(".coveo-show-if-query"),i=y.$$(this.element).findAll(".coveo-show-if-no-query"),o=y.$$(this.element).findAll(".coveo-show-if-results"),r=y.$$(this.element).findAll(".coveo-show-if-no-results");s.each(n,function(t){y.$$(t).toggle(e)}),s.each(i,function(t){y.$$(t).toggle(!e)}),s.each(o,function(n){y.$$(n).toggle(e&&t)}),s.each(r,function(n){y.$$(n).toggle(e&&!t)})},Object.defineProperty(t.prototype,"waitAnimation",{get:function(){return this.options.waitAnimation.toLowerCase()},enumerable:!0,configurable:!0}),t.prototype.showWaitingAnimation=function(){switch(this.waitAnimation){case"fade":y.$$(this.options.waitAnimationContainer).addClass("coveo-fade-out");break;case"spinner":this.resultContainer.hideChildren(),void 0==y.$$(this.options.waitAnimationContainer).find(".coveo-wait-animation")&&this.options.waitAnimationContainer.appendChild(g.DomUtils.getBasicLoadingAnimation())}},t.prototype.hideWaitingAnimation=function(){switch(this.waitAnimation){case"fade":y.$$(this.options.waitAnimationContainer).removeClass("coveo-fade-out");break;case"spinner":var e=y.$$(this.options.waitAnimationContainer).find(".coveo-loading-spinner");e&&y.$$(e).detach()}},t.prototype.showWaitingAnimationForInfiniteScrolling=function(){var e=g.DomUtils.getLoadingSpinner();if("card"==this.options.layout&&this.options.enableInfiniteScroll){var t=y.$$(this.options.waitAnimationContainer).findAll(".coveo-loading-spinner-container");s.each(t,function(e){return y.$$(e).remove()});var n=y.$$("div",{className:"coveo-loading-spinner-container"});n.append(e),this.options.waitAnimationContainer.appendChild(n.el)}else this.options.waitAnimationContainer.appendChild(g.DomUtils.getLoadingSpinner())},t.prototype.hideWaitingAnimationForInfiniteScrolling=function(){var e=y.$$(this.options.waitAnimationContainer).findAll(".coveo-loading-spinner"),t=y.$$(this.options.waitAnimationContainer).findAll(".coveo-loading-spinner-container");s.each(e,function(e){return y.$$(e).remove()}),s.each(t,function(e){return y.$$(e).remove()})},t.prototype.initResultContainer=function(){if(!this.options.resultsContainer){var e="table"===this.options.layout?"table":"div";this.options.resultsContainer=y.$$(e,{className:"coveo-result-list-container"}).el,this.initResultContainerAddToDom()}return new I.ResultContainer(this.options.resultsContainer,this.searchInterface)},t.prototype.initResultContainerAddToDom=function(){this.element.appendChild(this.options.resultsContainer)},t.prototype.initWaitAnimationContainer=function(){this.options.waitAnimationContainer||(this.options.waitAnimationContainer=this.resultContainer.el)},t.prototype.setupRenderer=function(){var e={options:this.searchInterface.options.originalOptionsObject,bindings:this.bindings},t=function(t){return w.Initialization.automaticallyCreateComponentsInside(t,e)};switch(this.options.layout){case"card":this.renderer=new P.ResultListCardRenderer(this.options,t);break;case"table":this.renderer=new $.ResultListTableRenderer(this.options,t);break;case"list":default:this.renderer=new D.ResultListRenderer(this.options,t)}},t.prototype.makeElementFocusable=function(){y.$$(this.element).setAttribute("tabindex","-1")},t.prototype.ensureHasId=function(){""===this.element.id&&(this.element.id=s.uniqueId("coveo-result-list"))},t.prototype.enableBasedOnActiveLayouts=function(){var t=this;s.each(this.resultLayoutSelectors,function(n){s.find(n.activeLayouts,function(e,n){return n==t.options.layout})&&(e.prototype.enable.call(t),n.enableLayouts([t.options.layout]),y.$$(t.element).removeClass("coveo-hidden"))})},t.ID="ResultList",t.doExport=function(){c.exportGlobally({ResultList:t})},t.options={resultsContainer:C.ComponentOptions.buildChildHtmlElementOption({alias:"resultContainerSelector"}),resultTemplate:O.TemplateComponentOptions.buildTemplateOption({defaultFunction:t.getDefaultTemplate}),waitAnimation:C.ComponentOptions.buildStringOption({defaultValue:"none"}),waitAnimationContainer:C.ComponentOptions.buildChildHtmlElementOption({postProcessing:function(e,t){return e||t.resultsContainer}}),enableInfiniteScroll:C.ComponentOptions.buildBooleanOption({defaultValue:!1}),infiniteScrollPageSize:C.ComponentOptions.buildNumberOption({defaultValue:10,min:1,depend:"enableInfiniteScroll"}),infiniteScrollContainer:C.ComponentOptions.buildChildHtmlElementOption({depend:"enableInfiniteScroll",defaultFunction:function(e){return C.ComponentOptions.findParentScrolling(e)}}),enableInfiniteScrollWaitingAnimation:C.ComponentOptions.buildBooleanOption({depend:"enableInfiniteScroll",defaultValue:!0}),mobileScrollContainer:C.ComponentOptions.buildSelectorOption({defaultFunction:function(){return document.querySelector(".coveo-results-column")}}),autoSelectFieldsToInclude:C.ComponentOptions.buildBooleanOption({defaultValue:!1}),fieldsToInclude:C.ComponentOptions.buildFieldsOption({includeInResults:!0}),layout:C.ComponentOptions.buildStringOption({defaultValue:"list",required:!0}),enableScrollToTop:C.ComponentOptions.buildBooleanOption({defaultValue:!0})},t.resultCurrentlyBeingRendered=null,t.MAX_AMOUNT_OF_SUCESSIVE_REQUESTS=5,t}(S.Component);t.ResultList=V,w.Initialization.registerAutoCreateComponent(V)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=n(94),r=n(60),s=n(5),a=n(6),u=n(8),l=function(){function e(e,t,n,i,o){this.element=t,s.Assert.isString(e),s.Assert.exists(t),s.Assert.exists(n),s.Assert.isLargerOrEqualsThan(0,i),s.Assert.isLargerOrEqualsThan(0,o),s.Assert.isSmallerOrEqualsThan(1,o),this.cssClassName="coveo-"+e+"-dropdown-content",this.coveoRoot=n,this.widthRatio=o,this.minWidth=i}return e.isTargetInsideOpenedDropdown=function(t){s.Assert.exists(t);var n=t.parent(e.DEFAULT_CSS_CLASS_NAME);return!!n&&"none"!=n.style.display},e.prototype.positionDropdown=function(){this.setElementAttributes(),this.createPopper()},e.prototype.hideDropdown=function(){this.popperReference&&(this.unbindPopperEvents(),this.popperReference.destroy()),this.unsetElementAttributes()},e.prototype.cleanUp=function(){this.element.el.removeAttribute("style")},e.prototype.setElementAttributes=function(){this.element.show(),this.element.addClass(this.cssClassName),this.element.addClass(e.DEFAULT_CSS_CLASS_NAME),this.element.setAttribute("role","group"),this.element.setAttribute("aria-label",a.l("FiltersDropdown")),this.setElementWidth()},e.prototype.setElementWidth=function(){var e=this.widthRatio*this.coveoRoot.width();e<=this.minWidth&&(e=this.minWidth),this.element.el.style.width=e.toString()+"px"},e.prototype.unsetElementAttributes=function(){this.element.hide(),this.element.removeClass(this.cssClassName),this.element.removeClass(e.DEFAULT_CSS_CLASS_NAME),this.element.setAttribute("role",null),this.element.setAttribute("aria-label",null)},Object.defineProperty(e.prototype,"popperReferenceElement",{get:function(){return this.coveoRoot.find("."+r.ResponsiveComponentsManager.DROPDOWN_HEADER_WRAPPER_CSS_CLASS)},enumerable:!0,configurable:!0}),e.prototype.createPopper=function(){this.popperReference=new o.default(this.popperReferenceElement,this.element.el,{placement:"bottom-end",positionFixed:!0,modifiers:{preventOverflow:{boundariesElement:this.coveoRoot.el},computeStyle:{gpuAcceleration:!1}},eventsEnabled:!1}),this.bindPopperEvents()},Object.defineProperty(e.prototype,"scrollableParent",{get:function(){return u.ComponentOptions.findParentScrolling(this.popperReferenceElement)},enumerable:!0,configurable:!0}),e.prototype.bindPopperEvents=function(){var e=this;i.$$(this.scrollableParent).on(["scroll","resize"],function(){e.popperReference.update()})},e.prototype.unbindPopperEvents=function(){var e=this;i.$$(this.scrollableParent).off(["scroll","resize"],function(){e.popperReference.update()})},e.DEFAULT_CSS_CLASS_NAME="coveo-dropdown-content",e}();t.ResponsiveDropdownContent=l},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=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])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),o=this&&this.__assign||Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},r=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))(function(o,r){function s(e){try{u(i.next(e))}catch(e){r(e)}}function a(e){try{u(i.throw(e))}catch(e){r(e)}}function u(e){e.done?o(e.value):new n(function(t){t(e.value)}).then(s,a)}u((i=i.apply(e,t||[])).next())})},s=this&&this.__generator||function(e,t){function n(e){return function(t){return i([e,t])}}function i(n){if(o)throw new TypeError("Generator is already executing.");for(;u;)try{if(o=1,r&&(s=r[2&n[0]?"return":n[0]?"throw":"next"])&&!(s=s.call(r,n[1])).done)return s;switch(r=0,s&&(n=[0,s.value]),n[0]){case 0:case 1:s=n;break;case 4:return u.label++,{value:n[1],done:!1};case 5:u.label++,r=n[1],n=[0];continue;case 7:n=u.ops.pop(),u.trys.pop();continue;default:if(s=u.trys,!(s=s.length>0&&s[s.length-1])&&(6===n[0]||2===n[0])){u=0;continue}if(3===n[0]&&(!s||n[1]>s[0]&&n[1]<s[3])){u.label=n[1];break}if(6===n[0]&&u.label<s[1]){u.label=s[1],s=n;break}if(s&&u.label<s[2]){u.label=s[2],u.ops.push(n);break}s[2]&&u.ops.pop(),u.trys.pop();continue}n=t.call(e,u)}catch(e){n=[6,e],r=0}finally{o=s=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}var o,r,s,a,u={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return a={next:n(0),throw:n(1),return:n(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a};Object.defineProperty(t,"__esModule",{value:!0});var a=n(7),u=n(6),l=n(8),c=n(1),p=n(2),d=n(3),h=n(547),f=n(548),m=n(550),y=n(15),g=n(12),v=n(13);n(551);var b=n(18),S=n(4),C=n(0),w=n(5),_=n(11),O=n(552),x=n(35),E=n(554),A=n(10),T=n(555),R=n(48),F=n(172),M=n(83),I=n(556),P=n(17),D=n(171),$=n(112),N=n(557),k=function(e){function t(n,i,o){var r=e.call(this,n,"CategoryFacet",o)||this;return r.element=n,r.options=i,r.listenToQueryStateChange=!0,r.moreValuesToFetch=!0,r.showingWaitAnimation=!1,r.numberOfChildValuesCurrentlyDisplayed=0,r.options=l.ComponentOptions.initComponentOptions(n,t,i),r.categoryFacetQueryController=new m.CategoryFacetQueryController(r),r.categoryFacetTemplates=new h.CategoryFacetTemplates,r.categoryValueRoot=new f.CategoryValueRoot(c.$$(r.element),r.categoryFacetTemplates,r),r.categoryValueRoot.path=r.activePath,r.currentPage=0,r.numberOfValues=r.options.numberOfValues,r.categoryFacetValuesTree=new N.CategoryFacetValuesTree,r.tryToInitFacetSearch(),r.options.debug&&new T.CategoryFacetDebug(r),F.ResponsiveFacets.init(r.root,r,r.options),r.initDependsOnManager(),r.bind.onRootElement(_.QueryEvents.buildingQuery,function(e){return r.handleBuildingQuery(e)}),r.bind.onRootElement(_.QueryEvents.querySuccess,function(e){return r.handleQuerySuccess(e)}),r.bind.onRootElement(_.QueryEvents.duringQuery,function(){return r.addFading()}),r.bind.onRootElement(_.QueryEvents.deferredQuerySuccess,function(){return r.handleDeferredQuerySuccess()}),r.bind.onRootElement(x.BreadcrumbEvents.populateBreadcrumb,function(e){return r.handlePopulateBreadCrumb(e)}),r.bind.onRootElement(x.BreadcrumbEvents.clearBreadcrumb,function(){return r.handleClearBreadcrumb()}),r.buildFacetHeader(),r.initQueryStateEvents(),r}return i(t,e),t.prototype.isCurrentlyDisplayed=function(){return c.$$(this.element).isVisible()},Object.defineProperty(t.prototype,"activePath",{get:function(){return this.queryStateModel.get(this.queryStateAttribute)||this.options.basePath},set:function(e){this.listenToQueryStateChange=!1,this.queryStateModel.set(this.queryStateAttribute,e),this.listenToQueryStateChange=!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"queryStateAttribute",{get:function(){return v.QueryStateModel.getFacetId(this.options.id)},enumerable:!0,configurable:!0}),t.prototype.handleBuildingQuery=function(e){this.positionInQuery=this.categoryFacetQueryController.putCategoryFacetInQueryBuilder(e.queryBuilder,this.activePath,this.numberOfValues+1)},t.prototype.scrollToTop=function(){$.ResultListUtils.scrollToTop(this.root)},t.prototype.tryToInitFacetSearch=function(){if(!this.isFacetSearchAvailable)return this.logDisabledFacetSearchWarning();this.categoryFacetSearch=new O.CategoryFacetSearch(this,this.options.displaySearchButton)},t.prototype.logDisabledFacetSearchWarning=function(){if(!this.isEnableFacetSearchFalsy){var e=this.getOptionAttributeName("valueCaption"),t=this.getOptionAttributeName("enableFacetSearch"),n=this.options.field;this.logger.warn("The search box is disabled on the "+n+" CategoryFacet. To hide this warning,\n    either remove the "+e+" option or set the "+t+' option to "false".')}},t.prototype.getOptionAttributeName=function(e){return l.ComponentOptions.attrNameFromName(e)},Object.defineProperty(t.prototype,"isFacetSearchAvailable",{get:function(){return!this.areValueCaptionsSpecified&&!this.isEnableFacetSearchFalsy},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"areValueCaptionsSpecified",{get:function(){var e=this.options.valueCaption;return 0!==C.keys(e).length},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isEnableFacetSearchFalsy",{get:function(){return!this.options.enableFacetSearch},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isCategoryEmpty",{get:function(){return!this.categoryValueRoot.children.length},enumerable:!0,configurable:!0}),t.prototype.updateAppearance=function(){if(this.disabled||this.isCategoryEmpty)return this.hide();this.show()},t.prototype.handleQuerySuccess=function(e){if(S.Utils.isNullOrUndefined(e.results.categoryFacets))return this.notImplementedError();if(!S.Utils.isNullOrUndefined(e.results.categoryFacets[this.positionInQuery])){var t=e.query.categoryFacets[this.positionInQuery].maximumNumberOfValues,n=e.results.categoryFacets[this.positionInQuery];if(this.moreValuesToFetch=t==n.values.length,this.clear(),n.notImplemented)return this.notImplementedError();if(n.values.length||n.parentValues.length){if(this.renderValues(n,t),this.isFacetSearchAvailable){var i=this.categoryFacetSearch.build();this.options.displaySearchOnTop?c.$$(i).insertBefore(this.categoryValueRoot.listRoot.el):c.$$(i).insertAfter(this.categoryValueRoot.listRoot.el)}this.moreLessContainer=c.$$("div",{className:"coveo-category-facet-more-less-container"}),c.$$(this.element).append(this.moreLessContainer.el),this.options.enableMoreLess&&this.renderMoreLess(),this.isPristine()||c.$$(this.element).addClass("coveo-category-facet-non-empty-path")}}},t.prototype.changeActivePath=function(e){this.activePath=e},t.prototype.executeQuery=function(){return r(this,void 0,void 0,function(){return s(this,function(e){switch(e.label){case 0:this.showWaitingAnimation(),e.label=1;case 1:return e.trys.push([1,,3,4]),[4,this.queryController.executeQuery()];case 2:return e.sent(),[3,4];case 3:return this.hideWaitingAnimation(),[7];case 4:return[2]}})})},t.prototype.reload=function(){this.changeActivePath(this.activePath),this.logAnalyticsEvent(A.analyticsActionCauseList.categoryFacetReload),this.executeQuery()},t.prototype.getVisibleParentValues=function(){return this.getVisibleParentCategoryValues().map(function(e){return e.getDescriptor()})},t.prototype.getVisibleParentCategoryValues=function(){if(0==this.categoryValueRoot.children.length||0==this.categoryValueRoot.children[0].children.length)return[];for(var e=this.categoryValueRoot.children[0],t=[e];0!=e.children.length&&!S.Utils.arrayEqual(e.path,this.activePath);)e=e.children[0],t.push(e);return t},t.prototype.showMore=function(){this.moreValuesToFetch&&(this.currentPage++,this.numberOfValues=this.options.numberOfValues+this.currentPage*this.options.pageSize,this.reload(),this.logAnalyticsFacetShowMoreLess(A.analyticsActionCauseList.facetShowMore))},t.prototype.showLess=function(){this.currentPage>0&&(this.currentPage--,this.numberOfValues=this.options.numberOfValues+this.currentPage*this.options.pageSize,this.reload(),this.logAnalyticsFacetShowMoreLess(A.analyticsActionCauseList.facetShowLess))},t.prototype.getAvailableValues=function(){return this.activeCategoryValue?this.activeCategoryValue.children.map(function(e){return{value:e.categoryValueDescriptor.value,count:e.categoryValueDescriptor.count,path:e.path}}):[]},t.prototype.selectValue=function(e){w.Assert.check(C.contains(C.pluck(this.getAvailableValues(),"value"),e),"Failed while trying to select a value that is not available.");var t=this.activePath.slice(0);t.push(e),this.changeActivePath(t),this.logAnalyticsEvent(A.analyticsActionCauseList.categoryFacetSelect),this.executeQuery()},t.prototype.deselectCurrentValue=function(){if(0!=this.activePath.length){var e=this.activePath.slice(0);e.pop(),this.changeActivePath(e),this.logAnalyticsEvent(A.analyticsActionCauseList.categoryFacetSelect),this.executeQuery()}},t.prototype.resetPath=function(){this.changeActivePath(this.options.basePath)},t.prototype.reset=function(){this.resetPath(),this.logAnalyticsEvent(A.analyticsActionCauseList.categoryFacetClear),this.executeQuery()},t.prototype.hide=function(){c.$$(this.element).addClass("coveo-hidden")},t.prototype.show=function(){c.$$(this.element).removeClass("coveo-hidden")},t.prototype.enable=function(){e.prototype.enable.call(this),this.updateAppearance()},t.prototype.disable=function(){e.prototype.disable.call(this),this.updateAppearance()},t.prototype.debugValue=function(e){return r(this,void 0,void 0,function(){var t,n;return s(this,function(i){switch(i.label){case 0:return t=new R.QueryBuilder,this.categoryFacetQueryController.addDebugGroupBy(t,e),[4,this.queryController.getEndpoint().search(t.build())];case 1:return n=i.sent(),T.CategoryFacetDebug.analyzeResults(n.groupByResults[0],this.options.delimitingCharacter),[2]}})})},t.prototype.getCaption=function(e){var t=this.options.valueCaption,n=t[e];return n||e},t.prototype.showWaitingAnimation=function(){this.ensureDom(),this.showingWaitAnimation||(c.$$(this.headerElement).find(".coveo-category-facet-header-wait-animation").style.visibility="visible",this.showingWaitAnimation=!0)},t.prototype.hideWaitingAnimation=function(){this.ensureDom(),this.showingWaitAnimation&&(c.$$(this.headerElement).find(".coveo-category-facet-header-wait-animation").style.visibility="hidden",this.showingWaitAnimation=!1)},t.prototype.logAnalyticsEvent=function(e,t){void 0===t&&(t=this.activePath),this.usageAnalytics.logSearchEvent(e,{categoryFacetId:this.options.id,categoryFacetField:this.options.field.toString(),categoryFacetPath:t,categoryFacetTitle:this.options.title})},t.prototype.getEndpoint=function(){return this.queryController.getEndpoint()},Object.defineProperty(t.prototype,"children",{get:function(){return this.categoryValueRoot.children},enumerable:!0,configurable:!0}),t.prototype.renderValues=function(e,n){this.categoryFacetValuesTree.storeNewValues(e);var i,o=this.sortParentValues(e.parentValues),r=this.categoryValueRoot,s=!1,a=Math.floor(t.NUMBER_OF_VALUES_TO_KEEP_AFTER_TRUNCATING/2),u=Math.ceil(t.NUMBER_OF_VALUES_TO_KEEP_AFTER_TRUNCATING/2);o=this.hideBasePathInParentValues(o),this.shouldTruncate(o)&&(i=this.findPathOfLastTruncatedParentValue(o,u),s=!0,o=C.first(o,a).concat(C.last(o,u))),this.isPristine()||this.addAllCategoriesButton();for(var l=0;l<o.length;l++){r=r.renderAsParent(o[l]);l==o.length-1||r.makeSelectable().showCollapseArrow(),s&&(l==a-1&&this.addEllipsis(),l==a&&(r.path=i.concat([o[l].value])))}var c=this.moreValuesToFetch?e.values.slice(0,n-1):e.values.slice(0,n);this.numberOfChildValuesCurrentlyDisplayed=c.length,r.renderChildren(c),this.activeCategoryValue=r},t.prototype.hideBasePathInParentValues=function(e){return S.Utils.arrayEqual(C.first(this.activePath,this.options.basePath.length),this.options.basePath)&&(e=C.last(e,e.length-this.options.basePath.length)),e},t.prototype.shouldTruncate=function(e){return e.length>t.MAXIMUM_NUMBER_OF_VALUES_BEFORE_TRUNCATING},t.prototype.addEllipsis=function(){this.categoryValueRoot.listRoot.append(this.categoryFacetTemplates.buildEllipsis().el)},t.prototype.findPathOfLastTruncatedParentValue=function(e,t){var n=e.length-t-1;return C.reduce(C.first(e,n+1),function(e,t){return e.concat([t.value])},[])},t.prototype.addAllCategoriesButton=function(){var e=this,t=this.categoryFacetTemplates.buildAllCategoriesButton();(new P.AccessibleButton).withLabel(u.l("AllCategories")).withElement(t).withSelectAction(function(){e.reset(),e.scrollToTop()}).build(),this.categoryValueRoot.listRoot.append(t.el)},t.prototype.isPristine=function(){return S.Utils.arrayEqual(this.activePath,this.options.basePath)},t.prototype.buildFacetHeader=function(){var e=new I.CategoryFacetHeader({categoryFacet:this,title:this.options.title});this.headerElement=e.build(),c.$$(this.element).prepend(this.headerElement)},t.prototype.handleQueryStateChanged=function(e){if(this.listenToQueryStateChange){var t=e.attributes[this.queryStateAttribute];!S.Utils.isNullOrUndefined(t)&&C.isArray(t)&&0!=t.length&&(this.activePath=t)}},t.prototype.initQueryStateEvents=function(){var e=this;this.queryStateModel.registerNewAttribute(this.queryStateAttribute,this.options.basePath),this.bind.onQueryState(b.MODEL_EVENTS.CHANGE,void 0,function(t){return e.handleQueryStateChanged(t)})},t.prototype.initDependsOnManager=function(){var e=this,t={reset:function(){return e.dependsOnReset()},ref:this};this.dependsOnManager=new D.DependsOnManager(t)},t.prototype.dependsOnReset=function(){this.changeActivePath(this.options.basePath),this.clear()},t.prototype.addFading=function(){c.$$(this.element).addClass("coveo-category-facet-values-fade")},t.prototype.handleDeferredQuerySuccess=function(){this.updateAppearance(),this.removeFading()},t.prototype.removeFading=function(){c.$$(this.element).removeClass("coveo-category-facet-values-fade")},t.prototype.notImplementedError=function(){this.logger.error("Category Facets are not supported by your current search endpoint. Disabling this component."),this.disable()},t.prototype.sortParentValues=function(e){if(this.activePath.length!=e.length)return this.logger.warn("Inconsistent CategoryFacet results: Number of parent values results does not equal length of active path"),e;for(var t=[],n=this,i=0,o=this.activePath;i<o.length;i++){var r=o[i],s=function(i){var o=C.find(e,function(e){return e.value.toLowerCase()==i.toLowerCase()});if(!o)return n.logger.warn("Inconsistent CategoryFacet results: path not consistent with parent values results"),{value:e};t.push(o)}(r);if("object"==typeof s)return s.value}return t},t.prototype.renderMoreLess=function(){this.numberOfChildValuesCurrentlyDisplayed>this.options.numberOfValues&&this.moreLessContainer.append(this.buildLessButton()),this.moreValuesToFetch&&this.moreLessContainer.append(this.buildMoreButton())},t.prototype.clear=function(){this.categoryValueRoot.clear(),this.isFacetSearchAvailable&&this.categoryFacetSearch.clear(),this.moreLessContainer&&this.moreLessContainer.detach(),c.$$(this.element).removeClass("coveo-category-facet-non-empty-path")},t.prototype.buildMoreButton=function(){var e=this,t=c.$$("span",{className:"coveo-facet-more-icon"},g.SVGIcons.icons.arrowDown).el;y.SVGDom.addClassToSVGInContainer(t,"coveo-facet-more-icon-svg");var n=c.$$("div",{className:"coveo-category-facet-more"},t);return(new P.AccessibleButton).withElement(n).withSelectAction(function(){return e.showMore()}).withLabel(u.l("ShowMoreFacetResults",this.options.title)).build(),n.el},t.prototype.buildLessButton=function(){var e=this,t=c.$$("span",{className:"coveo-facet-less-icon"},g.SVGIcons.icons.arrowUp).el;y.SVGDom.addClassToSVGInContainer(t,"coveo-facet-less-icon-svg");var n=c.$$("div",{className:"coveo-category-facet-less"},t);return(new P.AccessibleButton).withElement(n).withSelectAction(function(){return e.showLess()}).withLabel(u.l("ShowLessFacetResults",this.options.title)).build(),n.el},t.prototype.handlePopulateBreadCrumb=function(e){var t=this;if(!this.isPristine()){var n=this.categoryFacetValuesTree.getValueForLastPartInPath(this.activePath),i={path:this.activePath,count:n.numberOfResults,value:n.value},o=function(){t.logAnalyticsEvent(A.analyticsActionCauseList.breadcrumbFacet),t.reset()},r=new E.CategoryFacetBreadcrumb(this,o,i);e.breadcrumbs.push({element:r.build()})}},t.prototype.handleClearBreadcrumb=function(){this.changeActivePath(this.options.basePath)},t.prototype.logAnalyticsFacetShowMoreLess=function(e){this.usageAnalytics.logCustomEvent(e,{facetId:this.options.id,facetField:this.options.field.toString(),facetTitle:this.options.title},this.element)},t.doExport=function(){d.exportGlobally({CategoryFacet:t})},t.ID="CategoryFacet",t.options=o({field:l.ComponentOptions.buildFieldOption({required:!0}),title:l.ComponentOptions.buildLocalizedStringOption({localizedString:function(){return u.l("NoTitle")}}),numberOfValues:l.ComponentOptions.buildNumberOption({defaultValue:5,min:0,section:"CommonOptions"}),enableFacetSearch:l.ComponentOptions.buildBooleanOption({defaultValue:!0}),id:l.ComponentOptions.buildStringOption({postProcessing:function(e,t){return e||t.field}}),injectionDepth:l.ComponentOptions.buildNumberOption({defaultValue:1e3,min:0}),numberOfResultsInFacetSearch:l.ComponentOptions.buildNumberOption({defaultValue:15,min:1}),facetSearchDelay:l.ComponentOptions.buildNumberOption({defaultValue:100,min:0}),enableMoreLess:l.ComponentOptions.buildBooleanOption({defaultValue:!0}),pageSize:l.ComponentOptions.buildNumberOption({defaultValue:10,min:1,depend:"enableMoreLess"}),delimitingCharacter:l.ComponentOptions.buildStringOption({defaultValue:"|"}),basePath:l.ComponentOptions.buildListOption({defaultValue:[]}),maximumDepth:l.ComponentOptions.buildNumberOption({min:1,defaultValue:Number.MAX_VALUE}),debug:l.ComponentOptions.buildBooleanOption({defaultValue:!1}),valueCaption:l.ComponentOptions.buildJsonOption({defaultValue:{}}),dependsOn:l.ComponentOptions.buildStringOption(),dependsOnCondition:l.ComponentOptions.buildCustomOption(function(){return null},{depend:"dependsOn",section:"CommonOptions"}),displaySearchOnTop:l.ComponentOptions.buildBooleanOption({defaultValue:!1}),displaySearchButton:l.ComponentOptions.buildBooleanOption({defaultValue:!0})},M.ResponsiveFacetOptions),t.MAXIMUM_NUMBER_OF_VALUES_BEFORE_TRUNCATING=15,t.NUMBER_OF_VALUES_TO_KEEP_AFTER_TRUNCATING=10,t.WAIT_ELEMENT_CLASS="coveo-category-facet-header-wait-animation",t}(a.Component);t.CategoryFacet=k,p.Initialization.registerAutoCreateComponent(k),k.doExport()},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=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])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n(27),r=n(117),s=n(5),a=n(0),u=function(e){function t(t){var n=e.call(this)||this;return n.templates=t,s.Assert.exists(t),n}return i(t,e),t.prototype.instantiateToString=function(e,t){void 0===t&&(t={});for(var n=(new o.DefaultInstantiateTemplateOptions).merge(t),i=a.reject(this.templates,function(e){return null!=e.role}),r=0;r<i.length;r++){var s=i[r].instantiateToString(e,n);if(null!=s)return s}return this.getFallbackTemplate().instantiateToString(e,t)},t.prototype.instantiateToElement=function(e,t){void 0===t&&(t={});for(var n=(new o.DefaultInstantiateTemplateOptions).merge(t),i=a.reject(this.templates,function(e){return null!=e.role}),r=0;r<i.length;r++){var s=i[r].instantiateToElement(e,n);if(null!=s)return s}return this.getFallbackTemplate().instantiateToElement(e,n)},t.prototype.getFields=function(){return a.reduce(this.templates,function(e,t){return e.concat(t.getFields())},[])},t.prototype.getType=function(){return"TemplateList"},t.prototype.getFallbackTemplate=function(){return new r.DefaultResultTemplate},t}(o.Template);t.TemplateList=u},function(e,t,n){"use strict";var i=this&&this.__assign||Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},o=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))(function(o,r){function s(e){try{u(i.next(e))}catch(e){r(e)}}function a(e){try{u(i.throw(e))}catch(e){r(e)}}function u(e){e.done?o(e.value):new n(function(t){t(e.value)}).then(s,a)}u((i=i.apply(e,t||[])).next())})},r=this&&this.__generator||function(e,t){function n(e){return function(t){return i([e,t])}}function i(n){if(o)throw new TypeError("Generator is already executing.");for(;u;)try{if(o=1,r&&(s=r[2&n[0]?"return":n[0]?"throw":"next"])&&!(s=s.call(r,n[1])).done)return s;switch(r=0,s&&(n=[0,s.value]),n[0]){case 0:case 1:s=n;break;case 4:return u.label++,{value:n[1],done:!1};case 5:u.label++,r=n[1],n=[0];continue;case 7:n=u.ops.pop(),u.trys.pop();continue;default:if(s=u.trys,!(s=s.length>0&&s[s.length-1])&&(6===n[0]||2===n[0])){u=0;continue}if(3===n[0]&&(!s||n[1]>s[0]&&n[1]<s[3])){u.label=n[1];break}if(6===n[0]&&u.label<s[1]){u.label=s[1],s=n;break}if(s&&u.label<s[2]){u.label=s[2],u.ops.push(n);break}s[2]&&u.ops.pop(),u.trys.pop();continue}n=t.call(e,u)}catch(e){n=[6,e],r=0}finally{o=s=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}var o,r,s,a,u={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return a={next:n(0),throw:n(1),return:n(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a};Object.defineProperty(t,"__esModule",{value:!0});var s=n(1),a=n(33),u=n(115),l=n(4),c=n(22),p=n(12),d=n(30),h=n(9),f=n(20),m=n(5),y=function(){function e(){}return e.getPopUpCloseButton=function(e,t){var n=document.createElement("span"),i=document.createElement("span");s.$$(i).addClass("coveo-close-button"),n.appendChild(i);var o=document.createElement("span");s.$$(o).addClass("coveo-icon"),s.$$(o).addClass("coveo-sprites-quickview-close"),i.appendChild(o),s.$$(i).text(e);var r=document.createElement("span");return s.$$(r).addClass("coveo-pop-up-reminder"),s.$$(r).text(t),n.appendChild(r),n.outerHTML},e.getBasicLoadingAnimation=function(){var e=document.createElement("div");return e.className="coveo-first-loading-animation",e.innerHTML="<div class='coveo-logo'>"+p.SVGIcons.icons.coveoLogo+"</div>\n    <div class='coveo-loading-container'>\n      <div class='coveo-loading-dot'></div>\n      <div class='coveo-loading-dot'></div>\n      <div class='coveo-loading-dot'></div>\n      <div class='coveo-loading-dot'></div>\n    </div>",e},e.highlight=function(e,t,n){void 0===t&&(t="coveo-highlight"),void 0===n&&(n=!0);var i=null!==t?t.trim():null;return null!==i&&m.Assert.check(/^([^\s\-][a-z\s\-]*[^\s\-])?$/i.test(i),"Invalid class"),"<span"+(null!==i&&i.length>0?" class='"+i+"'":"")+">"+(n?c.StringUtils.htmlEncode(e):e)+"</span>"},e.highlightElement=function(e,t,n){void 0===n&&(n="coveo-highlight");var i=new RegExp(l.Utils.escapeRegexCharacter(c.StringUtils.latinize(t)),"i"),o=c.StringUtils.latinize(e).search(i);if(o>=0){var r=o+t.length;return c.StringUtils.htmlEncode(e.slice(0,o))+this.highlight(e.slice(o,r),n,!0)+c.StringUtils.htmlEncode(e.slice(r))}return e},e.getLoadingSpinner=function(){return s.$$("div",{className:"coveo-loading-spinner"}).el},e.getModalBoxHeader=function(e){var t=s.$$("div");return t.el.innerHTML="<div class='coveo-modalbox-right-header'>\n        <span class='coveo-modalbox-close-button'>\n          <span class='coveo-icon coveo-sprites-common-clear'></span>\n        </span>\n      </div>\n      <div class='coveo-modalbox-left-header'>\n        <span class='coveo-modalbox-pop-up-reminder'> "+(e||"")+"</span>\n      </div>",t},e.getQuickviewHeader=function(t,n,o){var r="";if(n.showDate){var c=l.Utils.getFieldValue(t,"date");c&&(r=a.DateUtils.dateTimeToString(new Date(c)))}var p=u.FileTypes.get(t),d=s.$$("div");d.el.innerHTML="<div class='coveo-quickview-right-header'>\n        <span class='coveo-quickview-time'>"+r+"</span>\n        <span class='coveo-quickview-close-button'>\n          <span class='coveo-icon coveo-sprites-common-clear'></span>\n        </span>\n      </div>\n      <div class='coveo-quickview-left-header'>\n        <span class='coveo-quickview-icon coveo-small "+p.icon+"'></span>\n      </div>";var h=s.$$("a",{className:"coveo-quickview-pop-up-reminder"}),f=Coveo.Salesforce?"SalesforceResultLink":"ResultLink",m=i({},t);return n.title&&(m.title=n.title),e.loadResultLink(f,h,d,m,n),d},e.loadResultLink=function(e,t,n,i,a){return o(this,void 0,void 0,function(){var o,u;return r(this,function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,d.load(e)];case 1:return r.sent(),t.addClass("Coveo"+e),f.Initialization.automaticallyCreateComponentsInsideResult(t.el,i),[3,3];case 2:return o=r.sent(),u=new h.Logger(this),u.error("Failed to load module "+e+" : "+o),u.info("Fallback on displaying a non clickable header"),t.text(a.title),[3,3];case 3:return s.$$(n.find(".coveo-quickview-left-header")).append(t.el),[2]}})})},e}();t.DomUtils=y},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){function n(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1,e()}))}}function i(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},pe))}}function o(e){var t={};return e&&"[object Function]"===t.toString.call(e)}function r(e,t){if(1!==e.nodeType)return[];var n=getComputedStyle(e,null);return t?n[t]:n}function s(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function a(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=r(e),n=t.overflow,i=t.overflowX;return/(auto|scroll|overlay)/.test(n+t.overflowY+i)?e:a(s(e))}function u(e){return 11===e?me:10===e?ye:me||ye}function l(e){if(!e)return document.documentElement;for(var t=u(10)?document.body:null,n=e.offsetParent;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var i=n&&n.nodeName;return i&&"BODY"!==i&&"HTML"!==i?-1!==["TD","TABLE"].indexOf(n.nodeName)&&"static"===r(n,"position")?l(n):n:e?e.ownerDocument.documentElement:document.documentElement}function c(e){var t=e.nodeName;return"BODY"!==t&&("HTML"===t||l(e.firstElementChild)===e)}function p(e){return null!==e.parentNode?p(e.parentNode):e}function d(e,t){if(!(e&&e.nodeType&&t&&t.nodeType))return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,i=n?e:t,o=n?t:e,r=document.createRange();r.setStart(i,0),r.setEnd(o,0);var s=r.commonAncestorContainer;if(e!==s&&t!==s||i.contains(o))return c(s)?s:l(s);var a=p(e);return a.host?d(a.host,t):d(e,p(t).host)}function h(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",n="top"===t?"scrollTop":"scrollLeft",i=e.nodeName;if("BODY"===i||"HTML"===i){var o=e.ownerDocument.documentElement;return(e.ownerDocument.scrollingElement||o)[n]}return e[n]}function f(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=h(t,"top"),o=h(t,"left"),r=n?-1:1;return e.top+=i*r,e.bottom+=i*r,e.left+=o*r,e.right+=o*r,e}function m(e,t){var n="x"===t?"Left":"Top",i="Left"===n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"],10)+parseFloat(e["border"+i+"Width"],10)}function y(e,t,n,i){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],u(10)?n["offset"+e]+i["margin"+("Height"===e?"Top":"Left")]+i["margin"+("Height"===e?"Bottom":"Right")]:0)}function g(){var e=document.body,t=document.documentElement,n=u(10)&&getComputedStyle(t);return{height:y("Height",e,t,n),width:y("Width",e,t,n)}}function v(e){return Se({},e,{right:e.left+e.width,bottom:e.top+e.height})}function b(e){var t={};try{if(u(10)){t=e.getBoundingClientRect();var n=h(e,"top"),i=h(e,"left");t.top+=n,t.left+=i,t.bottom+=n,t.right+=i}else t=e.getBoundingClientRect()}catch(e){}var o={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},s="HTML"===e.nodeName?g():{},a=s.width||e.clientWidth||o.right-o.left,l=s.height||e.clientHeight||o.bottom-o.top,c=e.offsetWidth-a,p=e.offsetHeight-l;if(c||p){var d=r(e);c-=m(d,"x"),p-=m(d,"y"),o.width-=c,o.height-=p}return v(o)}function S(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=u(10),o="HTML"===t.nodeName,s=b(e),l=b(t),c=a(e),p=r(t),d=parseFloat(p.borderTopWidth,10),h=parseFloat(p.borderLeftWidth,10);n&&"HTML"===t.nodeName&&(l.top=Math.max(l.top,0),l.left=Math.max(l.left,0));var m=v({top:s.top-l.top-d,left:s.left-l.left-h,width:s.width,height:s.height});if(m.marginTop=0,m.marginLeft=0,!i&&o){var y=parseFloat(p.marginTop,10),g=parseFloat(p.marginLeft,10);m.top-=d-y,m.bottom-=d-y,m.left-=h-g,m.right-=h-g,m.marginTop=y,m.marginLeft=g}return(i&&!n?t.contains(c):t===c&&"BODY"!==c.nodeName)&&(m=f(m,t)),m}function C(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,i=S(e,n),o=Math.max(n.clientWidth,window.innerWidth||0),r=Math.max(n.clientHeight,window.innerHeight||0),s=t?0:h(n),a=t?0:h(n,"left");return v({top:s-i.top+i.marginTop,left:a-i.left+i.marginLeft,width:o,height:r})}function w(e){var t=e.nodeName;return"BODY"!==t&&"HTML"!==t&&("fixed"===r(e,"position")||w(s(e)))}function _(e){if(!e||!e.parentElement||u())return document.documentElement;for(var t=e.parentElement;t&&"none"===r(t,"transform");)t=t.parentElement;return t||document.documentElement}function O(e,t,n,i){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],r={top:0,left:0},u=o?_(e):d(e,t);if("viewport"===i)r=C(u,o);else{var l=void 0;"scrollParent"===i?(l=a(s(t)),"BODY"===l.nodeName&&(l=e.ownerDocument.documentElement)):l="window"===i?e.ownerDocument.documentElement:i;var c=S(l,u,o);if("HTML"!==l.nodeName||w(u))r=c;else{var p=g(),h=p.height,f=p.width;r.top+=c.top-c.marginTop,r.bottom=h+c.top,r.left+=c.left-c.marginLeft,r.right=f+c.left}}return r.left+=n,r.top+=n,r.right-=n,r.bottom-=n,r}function x(e){return e.width*e.height}function E(e,t,n,i,o){var r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var s=O(n,i,r,o),a={top:{width:s.width,height:t.top-s.top},right:{width:s.right-t.right,height:s.height},bottom:{width:s.width,height:s.bottom-t.bottom},left:{width:t.left-s.left,height:s.height}},u=Object.keys(a).map(function(e){return Se({key:e},a[e],{area:x(a[e])})}).sort(function(e,t){return t.area-e.area}),l=u.filter(function(e){var t=e.width,i=e.height;return t>=n.clientWidth&&i>=n.clientHeight}),c=l.length>0?l[0].key:u[0].key,p=e.split("-")[1];return c+(p?"-"+p:"")}function A(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return S(n,i?_(t):d(t,n),i)}function T(e){var t=getComputedStyle(e),n=parseFloat(t.marginTop)+parseFloat(t.marginBottom),i=parseFloat(t.marginLeft)+parseFloat(t.marginRight);return{width:e.offsetWidth+i,height:e.offsetHeight+n}}function R(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,function(e){return t[e]})}function F(e,t,n){n=n.split("-")[0];var i=T(e),o={width:i.width,height:i.height},r=-1!==["right","left"].indexOf(n),s=r?"top":"left",a=r?"left":"top",u=r?"height":"width",l=r?"width":"height";return o[s]=t[s]+t[u]/2-i[u]/2,o[a]=n===a?t[a]-i[l]:t[R(a)],o}function M(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function I(e,t,n){if(Array.prototype.findIndex)return e.findIndex(function(e){return e[t]===n});var i=M(e,function(e){return e[t]===n});return e.indexOf(i)}function P(e,t,n){return(void 0===n?e:e.slice(0,I(e,"name",n))).forEach(function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=e.function||e.fn;e.enabled&&o(n)&&(t.offsets.popper=v(t.offsets.popper),t.offsets.reference=v(t.offsets.reference),t=n(t,e))}),t}function D(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=A(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=E(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=F(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=P(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function $(e,t){return e.some(function(e){var n=e.name;return e.enabled&&n===t})}function N(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),i=0;i<t.length;i++){var o=t[i],r=o?""+o+n:e;if(void 0!==document.body.style[r])return r}return null}function k(){return this.state.isDestroyed=!0,$(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[N("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function V(e){var t=e.ownerDocument;return t?t.defaultView:window}function L(e,t,n,i){var o="BODY"===e.nodeName,r=o?e.ownerDocument.defaultView:e;r.addEventListener(t,n,{passive:!0}),o||L(a(r.parentNode),t,n,i),i.push(r)}function B(e,t,n,i){n.updateBound=i,V(e).addEventListener("resize",n.updateBound,{passive:!0});var o=a(e);return L(o,"scroll",n.updateBound,n.scrollParents),n.scrollElement=o,n.eventsEnabled=!0,n}function U(){this.state.eventsEnabled||(this.state=B(this.reference,this.options,this.state,this.scheduleUpdate))}function Q(e,t){return V(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEach(function(e){e.removeEventListener("scroll",t.updateBound)}),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t}function j(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=Q(this.reference,this.state))}function H(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function q(e,t){Object.keys(t).forEach(function(n){var i="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&H(t[n])&&(i="px"),e.style[n]=t[n]+i})}function z(e,t){Object.keys(t).forEach(function(n){!1!==t[n]?e.setAttribute(n,t[n]):e.removeAttribute(n)})}function W(e){return q(e.instance.popper,e.styles),z(e.instance.popper,e.attributes),e.arrowElement&&Object.keys(e.arrowStyles).length&&q(e.arrowElement,e.arrowStyles),e}function G(e,t,n,i,o){var r=A(o,t,e,n.positionFixed),s=E(n.placement,r,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",s),q(t,{position:n.positionFixed?"fixed":"absolute"}),n}function Y(e,t){var n=t.x,i=t.y,o=e.offsets.popper,r=M(e.instance.modifiers,function(e){return"applyStyle"===e.name}).gpuAcceleration;void 0!==r&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var s=void 0!==r?r:t.gpuAcceleration,a=l(e.instance.popper),u=b(a),c={position:o.position},p={left:Math.floor(o.left),top:Math.round(o.top),bottom:Math.round(o.bottom),right:Math.floor(o.right)},d="bottom"===n?"top":"bottom",h="right"===i?"left":"right",f=N("transform"),m=void 0,y=void 0;if(y="bottom"===d?-u.height+p.bottom:p.top,m="right"===h?-u.width+p.right:p.left,s&&f)c[f]="translate3d("+m+"px, "+y+"px, 0)",c[d]=0,c[h]=0,c.willChange="transform";else{var g="bottom"===d?-1:1,v="right"===h?-1:1;c[d]=y*g,c[h]=m*v,c.willChange=d+", "+h}var S={"x-placement":e.placement};return e.attributes=Se({},S,e.attributes),e.styles=Se({},c,e.styles),e.arrowStyles=Se({},e.offsets.arrow,e.arrowStyles),e}function K(e,t,n){var i=M(e,function(e){return e.name===t}),o=!!i&&e.some(function(e){return e.name===n&&e.enabled&&e.order<i.order});if(!o){var r="`"+t+"`",s="`"+n+"`";console.warn(s+" modifier is required by "+r+" modifier in order to work, be sure to include it before "+r+"!")}return o}function J(e,t){var n;if(!K(e.instance.modifiers,"arrow","keepTogether"))return e;var i=t.element;if("string"==typeof i){if(!(i=e.instance.popper.querySelector(i)))return e}else if(!e.instance.popper.contains(i))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var o=e.placement.split("-")[0],s=e.offsets,a=s.popper,u=s.reference,l=-1!==["left","right"].indexOf(o),c=l?"height":"width",p=l?"Top":"Left",d=p.toLowerCase(),h=l?"left":"top",f=l?"bottom":"right",m=T(i)[c];u[f]-m<a[d]&&(e.offsets.popper[d]-=a[d]-(u[f]-m)),u[d]+m>a[f]&&(e.offsets.popper[d]+=u[d]+m-a[f]),e.offsets.popper=v(e.offsets.popper);var y=u[d]+u[c]/2-m/2,g=r(e.instance.popper),b=parseFloat(g["margin"+p],10),S=parseFloat(g["border"+p+"Width"],10),C=y-e.offsets.popper[d]-b-S;return C=Math.max(Math.min(a[c]-m,C),0),e.arrowElement=i,e.offsets.arrow=(n={},be(n,d,Math.round(C)),be(n,h,""),n),e}function Z(e){return"end"===e?"start":"start"===e?"end":e}function X(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=we.indexOf(e),i=we.slice(n+1).concat(we.slice(0,n));return t?i.reverse():i}function ee(e,t){if($(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=O(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),i=e.placement.split("-")[0],o=R(i),r=e.placement.split("-")[1]||"",s=[];switch(t.behavior){case _e.FLIP:s=[i,o];break;case _e.CLOCKWISE:s=X(i);break;case _e.COUNTERCLOCKWISE:s=X(i,!0);break;default:s=t.behavior}return s.forEach(function(a,u){if(i!==a||s.length===u+1)return e;i=e.placement.split("-")[0],o=R(i);var l=e.offsets.popper,c=e.offsets.reference,p=Math.floor,d="left"===i&&p(l.right)>p(c.left)||"right"===i&&p(l.left)<p(c.right)||"top"===i&&p(l.bottom)>p(c.top)||"bottom"===i&&p(l.top)<p(c.bottom),h=p(l.left)<p(n.left),f=p(l.right)>p(n.right),m=p(l.top)<p(n.top),y=p(l.bottom)>p(n.bottom),g="left"===i&&h||"right"===i&&f||"top"===i&&m||"bottom"===i&&y,v=-1!==["top","bottom"].indexOf(i),b=!!t.flipVariations&&(v&&"start"===r&&h||v&&"end"===r&&f||!v&&"start"===r&&m||!v&&"end"===r&&y);(d||g||b)&&(e.flipped=!0,(d||g)&&(i=s[u+1]),b&&(r=Z(r)),e.placement=i+(r?"-"+r:""),e.offsets.popper=Se({},e.offsets.popper,F(e.instance.popper,e.offsets.reference,e.placement)),e=P(e.instance.modifiers,e,"flip"))}),e}function te(e){var t=e.offsets,n=t.popper,i=t.reference,o=e.placement.split("-")[0],r=Math.floor,s=-1!==["top","bottom"].indexOf(o),a=s?"right":"bottom",u=s?"left":"top",l=s?"width":"height";return n[a]<r(i[u])&&(e.offsets.popper[u]=r(i[u])-n[l]),n[u]>r(i[a])&&(e.offsets.popper[u]=r(i[a])),e}function ne(e,t,n,i){var o=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),r=+o[1],s=o[2];if(!r)return e;if(0===s.indexOf("%")){var a=void 0;switch(s){case"%p":a=n;break;case"%":case"%r":default:a=i}return v(a)[t]/100*r}if("vh"===s||"vw"===s){return("vh"===s?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*r}return r}function ie(e,t,n,i){var o=[0,0],r=-1!==["right","left"].indexOf(i),s=e.split(/(\+|\-)/).map(function(e){return e.trim()}),a=s.indexOf(M(s,function(e){return-1!==e.search(/,|\s/)}));s[a]&&-1===s[a].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var u=/\s*,\s*|\s+/,l=-1!==a?[s.slice(0,a).concat([s[a].split(u)[0]]),[s[a].split(u)[1]].concat(s.slice(a+1))]:[s];return l=l.map(function(e,i){var o=(1===i?!r:r)?"height":"width",s=!1;return e.reduce(function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,s=!0,e):s?(e[e.length-1]+=t,s=!1,e):e.concat(t)},[]).map(function(e){return ne(e,o,t,n)})}),l.forEach(function(e,t){e.forEach(function(n,i){H(n)&&(o[t]+=n*("-"===e[i-1]?-1:1))})}),o}function oe(e,t){var n=t.offset,i=e.placement,o=e.offsets,r=o.popper,s=o.reference,a=i.split("-")[0],u=void 0;return u=H(+n)?[+n,0]:ie(n,r,s,a),"left"===a?(r.top+=u[0],r.left-=u[1]):"right"===a?(r.top+=u[0],r.left+=u[1]):"top"===a?(r.left+=u[0],r.top-=u[1]):"bottom"===a&&(r.left+=u[0],r.top+=u[1]),e.popper=r,e}function re(e,t){var n=t.boundariesElement||l(e.instance.popper);e.instance.reference===n&&(n=l(n));var i=N("transform"),o=e.instance.popper.style,r=o.top,s=o.left,a=o[i];o.top="",o.left="",o[i]="";var u=O(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);o.top=r,o.left=s,o[i]=a,t.boundaries=u;var c=t.priority,p=e.offsets.popper,d={primary:function(e){var n=p[e];return p[e]<u[e]&&!t.escapeWithReference&&(n=Math.max(p[e],u[e])),be({},e,n)},secondary:function(e){var n="right"===e?"left":"top",i=p[n];return p[e]>u[e]&&!t.escapeWithReference&&(i=Math.min(p[n],u[e]-("right"===e?p.width:p.height))),be({},n,i)}};return c.forEach(function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";p=Se({},p,d[t](e))}),e.offsets.popper=p,e}function se(e){var t=e.placement,n=t.split("-")[0],i=t.split("-")[1];if(i){var o=e.offsets,r=o.reference,s=o.popper,a=-1!==["bottom","top"].indexOf(n),u=a?"left":"top",l=a?"width":"height",c={start:be({},u,r[u]),end:be({},u,r[u]+r[l]-s[l])};e.offsets.popper=Se({},s,c[i])}return e}function ae(e){if(!K(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=M(e.instance.modifiers,function(e){return"preventOverflow"===e.name}).boundaries;if(t.bottom<n.top||t.left>n.right||t.top>n.bottom||t.right<n.left){if(!0===e.hide)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(!1===e.hide)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}function ue(e){var t=e.placement,n=t.split("-")[0],i=e.offsets,o=i.popper,r=i.reference,s=-1!==["left","right"].indexOf(n),a=-1===["top","left"].indexOf(n);return o[s?"left":"top"]=r[n]-(a?o[s?"width":"height"]:0),e.placement=R(t),e.offsets.popper=v(o),e}for(var le="undefined"!=typeof window&&"undefined"!=typeof document,ce=["Edge","Trident","Firefox"],pe=0,de=0;de<ce.length;de+=1)if(le&&navigator.userAgent.indexOf(ce[de])>=0){pe=1;break}var he=le&&window.Promise,fe=he?n:i,me=le&&!(!window.MSInputMethodContext||!document.documentMode),ye=le&&/MSIE 10/.test(navigator.userAgent),ge=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},ve=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),be=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},Se=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},Ce=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],we=Ce.slice(3),_e={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"},Oe={shift:{order:100,enabled:!0,fn:se},offset:{order:200,enabled:!0,fn:oe,offset:0},preventOverflow:{order:300,enabled:!0,fn:re,priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:te},arrow:{order:500,enabled:!0,fn:J,element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:ee,behavior:"flip",padding:5,boundariesElement:"viewport"},inner:{order:700,enabled:!1,fn:ue},hide:{order:800,enabled:!0,fn:ae},computeStyle:{order:850,enabled:!0,fn:Y,gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:W,onLoad:G,gpuAcceleration:void 0}},xe={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:Oe},Ee=function(){function e(t,n){var i=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};ge(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(i.update)},this.update=fe(this.update.bind(this)),this.options=Se({},e.Defaults,r),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(Se({},e.Defaults.modifiers,r.modifiers)).forEach(function(t){i.options.modifiers[t]=Se({},e.Defaults.modifiers[t]||{},r.modifiers?r.modifiers[t]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(e){return Se({name:e},i.options.modifiers[e])}).sort(function(e,t){return e.order-t.order}),this.modifiers.forEach(function(e){e.enabled&&o(e.onLoad)&&e.onLoad(i.reference,i.popper,i.options,e,i.state)}),this.update();var s=this.options.eventsEnabled;s&&this.enableEventListeners(),this.state.eventsEnabled=s}return ve(e,[{key:"update",value:function(){return D.call(this)}},{key:"destroy",value:function(){return k.call(this)}},{key:"enableEventListeners",value:function(){return U.call(this)}},{key:"disableEventListeners",value:function(){return j.call(this)}}]),e}();Ee.Utils=("undefined"!=typeof window?window:e).PopperUtils,Ee.placements=Ce,Ee.Defaults=xe,t.default=Ee}.call(t,n(74))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1);n(560);var o=n(3),r=function(){function e(e,t,n,i){void 0===e&&(e=function(e){}),void 0===i&&(i=t),this.onChange=e,this.label=t,this.name=n,this.id=i,this.buildContent()}return e.doExport=function(){o.exportGlobally({RadioButton:e})},e.prototype.reset=function(){var e=this.isSelected();this.getRadio().checked=!1,e&&this.onChange(this)},e.prototype.select=function(e){void 0===e&&(e=!0);var t=this.isSelected();this.getRadio().checked=!0,!t&&e&&this.onChange(this)},e.prototype.build=function(){return this.element},e.prototype.getElement=function(){return this.element},e.prototype.getValue=function(){return this.label},e.prototype.isSelected=function(){return this.getRadio().checked},e.prototype.getRadio=function(){return i.$$(this.element).find("input")},e.prototype.getLabel=function(){return i.$$(this.element).find("label")},e.prototype.buildContent=function(){var e=this,t=i.$$("div",{className:"coveo-radio"}),n=i.$$("input",{type:"radio",name:this.name,id:this.id}),o=i.$$("label",{className:"coveo-radio-input-label",for:this.id});o.text(this.label),n.on("change",function(){e.onChange(e)}),t.append(n.el),t.append(o.el),this.element=t.el},e}();t.RadioButton=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){}return e.beforeRedirect="beforeRedirect",e}();t.StandaloneSearchInterfaceEvents=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){}return e.savePreferences="savePreferences",e.exitPreferencesWithoutSave="exitPreferencesWithoutSave",e}();t.PreferencesPanelEvents=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.version={lib:"2.10091.3",product:"2.10091.3",supportedApiVersion:2}},function(e,t,n){"use strict";function i(){return t.preferredStorage?t.preferredStorage:o.hasLocalStorage()?localStorage:o.hasCookieStorage()?new s:o.hasSessionStorage()?sessionStorage:new a}var o=n(144),r=n(307);t.preferredStorage=null,t.getAvailableStorage=i;var s=function(){function e(){}return e.prototype.getItem=function(e){return r.Cookie.get(e)},e.prototype.removeItem=function(e){r.Cookie.erase(e)},e.prototype.setItem=function(e,t){r.Cookie.set(e,t)},e}();t.CookieStorage=s;var a=function(){function e(){}return e.prototype.getItem=function(e){return null},e.prototype.removeItem=function(e){},e.prototype.setItem=function(e,t){},e}();t.NullStorage=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){}return e.showDebugPanel="showDebugPanel",e}();t.DebugEvents=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){this.isContextual=!1,this.endpoint=null}return e.prototype.isActivated=function(){return!1},e.prototype.getCurrentEventCause=function(){return this.currentEventCause},e.prototype.getCurrentEventMeta=function(){return this.currentEventMeta},e.prototype.logSearchEvent=function(e,t){this.setNoopCauseAndMeta(e.name,t)},e.prototype.logSearchAsYouType=function(e,t){this.setNoopCauseAndMeta(e.name,t)},e.prototype.logClickEvent=function(e,t,n,i){return this.setNoopCauseAndMeta(e.name,t),Promise.resolve(null)},e.prototype.logCustomEvent=function(e,t,n){return this.setNoopCauseAndMeta(e.name,t),Promise.resolve(null)},e.prototype.getTopQueries=function(e){return new Promise(function(e,t){e([])})},e.prototype.getCurrentVisitIdPromise=function(){return new Promise(function(e,t){e(null)})},e.prototype.getCurrentVisitId=function(){return null},e.prototype.sendAllPendingEvents=function(){},e.prototype.cancelAllPendingEvents=function(){},e.prototype.warnAboutSearchEvent=function(){},e.prototype.getPendingSearchEvent=function(){return null},e.prototype.setOriginContext=function(e){},e.prototype.setNoopCauseAndMeta=function(e,t){this.currentEventCause=e,this.currentEventMeta=t},e}();t.NoopAnalyticsClient=i},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=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])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n(27),r=n(5),s=n(154),a=function(e){function t(t){var n=e.call(this,function(){return t.innerHTML})||this;return n.element=t,n.templateFromAScriptTag=new s.TemplateFromAScriptTag(n,n.element),n}return i(t,e),t.prototype.toHtmlElement=function(){return this.templateFromAScriptTag.toHtmlElement()},t.prototype.getType=function(){return"HtmlTemplate"},t.create=function(e){return r.Assert.exists(e),new t(e)},t.fromString=function(e,n){return new t(s.TemplateFromAScriptTag.fromString(e,n))},t.prototype.getTemplateInfo=function(){return this.element},t.mimeTypes=["text/html","text/HTML"],t}(o.Template);t.HtmlTemplate=a},function(e,t,n){var i=n(78),o=n(398),r=n(399),s=Object.defineProperty;t.f=n(79)?Object.defineProperty:function(e,t,n){if(i(e),t=r(t,!0),i(n),o)try{return s(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){var i=n(403),o=n(81);e.exports=function(e){return i(o(e))}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t){var n=Math.ceil,i=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?i:n)(e)}},function(e,t,n){var i=n(159)("keys"),o=n(161);e.exports=function(e){return i[e]||(i[e]=o(e))}},function(e,t,n){e.exports=n(415)},function(e,t,n){"use strict";var i=this&&this.__assign||Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},o=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))(function(o,r){function s(e){try{u(i.next(e))}catch(e){r(e)}}function a(e){try{u(i.throw(e))}catch(e){r(e)}}function u(e){e.done?o(e.value):new n(function(t){t(e.value)}).then(s,a)}u((i=i.apply(e,t||[])).next())})},r=this&&this.__generator||function(e,t){function n(e){return function(t){return i([e,t])}}function i(n){if(o)throw new TypeError("Generator is already executing.");for(;u;)try{if(o=1,r&&(s=r[2&n[0]?"return":n[0]?"throw":"next"])&&!(s=s.call(r,n[1])).done)return s;switch(r=0,s&&(n=[0,s.value]),n[0]){case 0:case 1:s=n;break;case 4:return u.label++,{value:n[1],done:!1};case 5:u.label++,r=n[1],n=[0];continue;case 7:n=u.ops.pop(),u.trys.pop();continue;default:if(s=u.trys,!(s=s.length>0&&s[s.length-1])&&(6===n[0]||2===n[0])){u=0;continue}if(3===n[0]&&(!s||n[1]>s[0]&&n[1]<s[3])){u.label=n[1];break}if(6===n[0]&&u.label<s[1]){u.label=s[1],s=n;break}if(s&&u.label<s[2]){u.label=s[2],u.ops.push(n);break}s[2]&&u.ops.pop(),u.trys.pop();continue}n=t.call(e,u)}catch(e){n=[6,e],r=0}finally{o=s=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}var o,r,s,a,u={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return a={next:n(0),throw:n(1),return:n(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a};Object.defineProperty(t,"__esModule",{value:!0});var s=n(11),a=n(5),u=n(1),l=n(19),c=n(7),p=n(44),d=n(31),h=n(169),f=n(56),m=n(10),y=n(13),g=n(0),v=n(9),b=function(){function e(e,t,n,i){var o=this;this.root=e,this.endpoint=t,this.templateSearchEvent=n,this.sendToCloud=i,this.searchPromises=[],this.results=[],this.cancelled=!1,this.finished=!1,this.searchEvents=[],a.Assert.exists(e),a.Assert.exists(t),a.Assert.exists(n),this.handler=function(e,t){o.handleDuringQuery(e,t)},u.$$(e).on(s.QueryEvents.duringQuery,this.handler)}return e.prototype.getEventCause=function(){return this.templateSearchEvent.actionCause},e.prototype.getEventMeta=function(){return this.templateSearchEvent.customData},e.prototype.addFacetState=function(e){this.facetState||(this.facetState=[]),(t=this.facetState).push.apply(t,e);var t},e.prototype.cancel=function(){this.stopRecording(),this.cancelled=!0},e.prototype.stopRecording=function(){this.handler&&(u.$$(this.root).off(s.QueryEvents.duringQuery,this.handler),u.$$(this.root).off(s.QueryEvents.duringFetchMoreQuery,this.handler),this.handler=null)},e.prototype.handleDuringQuery=function(e,t,n){a.Assert.check(!this.finished),a.Assert.check(!this.cancelled),this.searchPromises.push(t.promise);var i=e.target,o=c.Component.get(i,l.SearchInterface);a.Assert.exists(o),n||(n=o.queryStateModel.get(y.QueryStateModel.attributesEnum.q));var r=c.Component.get(i,p.QueryController);a.Assert.exists(r),this.updateSearchEventsAndQueryResults(t,o,n)},e.prototype.updateSearchEventsAndQueryResults=function(e,t,n){return o(this,void 0,void 0,function(){var o,s,u,l,c;return r(this,function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,e.promise];case 1:return o=r.sent(),a.Assert.exists(o),a.Assert.check(!this.finished),s=this.templateSearchEvent.actionCause===m.analyticsActionCauseList.recommendation.name,(!0!==o._reusedSearchUid||s)&&(u=i({},this.templateSearchEvent),this.fillSearchEvent(u,t,e.query,o,n),this.searchEvents.push(u),this.results.push(o)),[3,3];case 2:return l=r.sent(),new v.Logger(this).error(l),[3,3];case 3:return c=g.indexOf(this.searchPromises,e.promise),this.searchPromises.splice(c,1),this.searchPromises.length||this.flush(),[2]}})})},e.prototype.flush=function(){var e=this;this.cancelled||(this.stopRecording(),this.finished=!0,a.Assert.check(this.searchEvents.length==this.results.length),d.Defer.defer(function(){e.sendToCloud&&e.endpoint.sendSearchEvents(e.searchEvents);var t=g.map(e.searchEvents,function(e){return h.APIAnalyticsBuilder.convertSearchEventToAPI(e)});u.$$(e.root).trigger(f.AnalyticsEvents.searchEvent,{searchEvents:t}),e.searchEvents.length&&e.searchEvents.forEach(function(t){u.$$(e.root).trigger(f.AnalyticsEvents.analyticsEventReady,{event:"CoveoSearchEvent",coveoAnalyticsEventData:t})})}))},e.prototype.fillSearchEvent=function(e,t,n,i,o){a.Assert.exists(e),a.Assert.exists(t),a.Assert.exists(n),a.Assert.exists(i);var r=t.queryStateModel.get(y.QueryStateModel.attributesEnum.q);e.queryPipeline=i.pipeline,e.splitTestRunName=e.splitTestRunName||i.splitTestRun,e.splitTestRunVersion=e.splitTestRunVersion||(void 0!=i.splitTestRun?i.pipeline:void 0),e.originLevel2=e.originLevel2||t.queryStateModel.get("t")||"default",e.queryText=o||r||n.q||"",e.advancedQuery=n.aq||"",e.didYouMean=n.enableDidYouMean,e.numberOfResults=i.totalCount,e.responseTime=i.duration,e.pageNumber=n.firstResult/n.numberOfResults,e.resultsPerPage=n.numberOfResults,e.searchQueryUid=i.searchUid,e.queryPipeline=i.pipeline,e.facetState=this.facetState,void 0!=n.context&&g.each(n.context,function(t,n){return e.customData["context_"+n]=t}),void 0!=i.refinedKeywords&&0!=i.refinedKeywords.length&&(e.customData.refinedKeywords=i.refinedKeywords)},e}();t.PendingSearchEvent=b},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(7),o=n(89),r=n(1),s=n(0),a=n(9),u=function(){function e(){}return e.hideIfInfiniteScrollEnabled=function(t){e.isInfiniteScrollEnabled(t.searchInterface.element)?(t.disable(),r.$$(t.element).hide(),e.warnIfComponentNotNeeded(t)):(t.enable(),r.$$(t.element).unhide())},e.isInfiniteScrollEnabled=function(t){var n=e.getActiveResultList(t);return!!n&&!!n.options.enableInfiniteScroll},e.scrollToTop=function(t){var n=e.getActiveResultList(t);if(!n)return new a.Logger(this).warn("No active ResultList, scrolling to the top of the Window"),window.scrollTo(0,0);var i=n.searchInterface.element.getBoundingClientRect().top;i>0||window.scrollTo(0,window.pageYOffset+i)},e.getActiveResultList=function(t){var n=e.getResultLists(t);return s.find(n,function(e){return!e.disabled})},e.getResultLists=function(t){return r.$$(t).findAll("."+e.cssClass()).map(function(e){return i.Component.get(e,o.ResultList)})},e.cssClass=function(){return i.Component.computeCssClassName(o.ResultList)},e.warnIfComponentNotNeeded=function(t){var n=t.searchInterface.root;e.allResultListsUseInfiniteScroll(n)&&e.notNeededComponentWarning(t)},e.allResultListsUseInfiniteScroll=function(t){return 0===e.getResultLists(t).filter(function(e){return!e.options.enableInfiniteScroll}).length},e.notNeededComponentWarning=function(t){var n=i.Component.computeCssClassNameForType(t.type),o="The "+n+" component is not needed because all "+e.cssClass()+" components have enableInfiniteScroll set to 'true'.\n    For the best performance, remove the "+n+" component from your search page.";new a.Logger(t).warn(o)},e}();t.ResultListUtils=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(5),o=n(4),r=n(23),s=n(0),a=function(){function e(){this.selected=!1,this.excluded=!1,this.waitingForDelta=!1}return e.prototype.reset=function(){this.selected=!1,this.excluded=!1},e.prototype.updateCountsFromNewValue=function(e){i.Assert.exists(e),this.occurrences=e.occurrences,this.delta=e.delta,this.computedField=e.computedField},e.prototype.clone=function(){return this.computedField=void 0,this.delta=void 0,this},e.prototype.cloneWithZeroOccurrences=function(){return this.occurrences=0,this.clone()},e.prototype.cloneWithDelta=function(e,t){i.Assert.isLargerOrEqualsThan(0,e);var n=this.cloneWithZeroOccurrences();return n.delta=t,n.occurrences=e,n},e.prototype.getFormattedCount=function(){var e=void 0;return o.Utils.exists(this.delta)&&this.delta>0?e="+"+r.format(this.delta,"n0"):this.occurrences>0&&(e=r.format(this.occurrences,"n0")),e},e.prototype.getFormattedComputedField=function(e){return 0!=this.computedField?r.format(this.computedField,e):void 0},e.create=function(t){if(s.isString(t))return e.createFromValue(t);if(s.isObject(t))return"computedFieldResults"in t?e.createFromGroupByValue(t):e.createFromFieldValue(t);throw new Error("Can't create value from "+t)},e.createFromValue=function(t){i.Assert.isNonEmptyString(t);var n=new e;return n.value=t,n.lookupValue=t,n},e.createFromGroupByValue=function(t){i.Assert.exists(t),i.Assert.exists(t);var n=new e;return n.value=t.value,n.lookupValue=o.Utils.exists(t.lookupValue)?t.lookupValue:t.value,n.occurrences=t.numberOfResults,n.computedField=o.Utils.isNonEmptyArray(t.computedFieldResults)?t.computedFieldResults[0]:void 0,n.score=t.score,n},e.createFromFieldValue=function(t){i.Assert.exists(t);var n=new e;return n.value=t.value,n.lookupValue=t.lookupValue,n.occurrences=t.numberOfResults,n},e}();t.FacetValue=a},function(e,t,n){"use strict";function i(e,t,n,i){var o=[],r=p.chain(n).values().map(p.keys).flatten().value();return p.each(t,function(t,n){var s=p.chain([n]).concat(t).compact().difference(r).map(l.Utils.escapeRegexCharacter).sortBy("length").value();if(0!==s.length){var a=""+h+s.join("|")+")(?=(?:"+d+"|$)+)",c=u.StringUtils.getHighlights(e,new RegExp(a,i.regexFlags),n);void 0!=c&&l.Utils.isNonEmptyArray(c)&&o.push(c)}}),p.each(n,function(t,n){var r=n.split(" "),s=h;p.each(r,function(e,n){s+="(?:"+[e].concat(t[e]).join("|")+")",n==r.length-1&&(s+="(?="),s+=d,n==r.length-1&&(s+="|$)"),n!=r.length-1&&(s+="+")}),s+=")";var a=u.StringUtils.getHighlights(e,new RegExp(s,i.regexFlags),n);void 0!=a&&l.Utils.isNonEmptyArray(a)&&o.push(a)}),p.chain(o).flatten().compact().uniq(function(e){return e.offset}).sortBy(function(e){return e.offset}).map(function(e){var i=p.keys(t),o=p.keys(n),r=i.concat(o),s=p.indexOf(r,e.dataHighlightGroupTerm)+1;return p.extend(e,{dataHighlightGroup:s})}).value()}function o(e){var t=c.$$("div").el;return t.innerHTML=e,t}var r=this&&this.__extends||function(){var e=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])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var s=n(76),a=n(68),u=n(22),l=n(4),c=n(1),p=n(0),d="[\\.\\-\\u2011\\s~=,.\\|\\/:'`’;_()!?&+]",h="("+d+"|^)(",f=function(e){function t(t,n,i){void 0===t&&(t="coveo-highlight"),void 0===n&&(n=0),void 0===i&&(i="gi");var o=e.call(this)||this;return o.cssClass=t,o.shorten=n,o.regexFlags=i,o}return r(t,e),t}(s.Options);t.DefaultStreamHighlightOptions=f;var m=function(){function e(){}return e.highlightStreamHTML=function(t,n,r,s){var u=(new f).merge(s),l=o(t),d=c.$$(l).findAll("*");return d.length>0?(p.each(d,function(e,t){var o=c.$$(e).text();e.innerHTML=a.HighlightUtils.highlightString(o,i(o,n,r,u),[],u.cssClass)}),l.innerHTML):e.highlightStreamText(t,n,r,s)},e.highlightStreamText=function(e,t,n,o){var r=(new f).merge(o);return a.HighlightUtils.highlightString(e,i(e,t,n,r),[],r.cssClass)},e}();t.StreamHighlightUtils=m,t.getRestHighlightsForAllTerms=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,o=n(4),r=n(6),s=n(5),a=n(0),u=function(){function e(){}return e.get=function(t){var n=o.Utils.getFieldValue(t,"objecttype"),i=o.Utils.getFieldValue(t,"filetype");return o.Utils.isNonEmptyString(n)&&!n.match(/^(file|document|contentversion|item)$/i)?e.getObjectType(n):o.Utils.isNonEmptyString(i)?e.getFileType(i):{icon:"coveo-icon filetype",caption:r.l("Unknown")}},e.getObjectType=function(e){var t=e.toLowerCase(),n="objecttype_"+t,i=r.l(n);return i.toLowerCase()==n.toLowerCase()&&(i=r.l(e)),this.safelyBuildFileTypeInfo("objecttype",t,i)},e.getFileType=function(e){var t=e.toLowerCase();"."==t[0]&&(t=t.substring(1));var n="filetype_"+t,i=r.l(n);return i.toLowerCase()==n.toLowerCase()&&(i=r.l(e)),this.safelyBuildFileTypeInfo("filetype",t,i)},e.getFileTypeCaptions=function(){if(void 0==i){i={};var e=String.locales[String.locale.toLowerCase()];s.Assert.isNotUndefined(e),a.keys(e).forEach(function(e){0==e.indexOf("filetype_")?i[e.substr("filetype_".length)]=e.toLocaleString():0==e.indexOf("objecttype_")&&(i[e.substr("objecttype_".length)]=e.toLocaleString())})}return i},e.safelyBuildFileTypeInfo=function(e,t,n){return{icon:"coveo-icon "+e+" "+a.escape(t.replace(" ","-")),caption:a.escape(n)}},e}();t.FileTypes=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(5),o=n(57),r=n(4),s=function(){function e(){}return e.registerFieldHelper=function(t,n){e.fieldHelpers.push(t),e.registerTemplateHelper(t,n)},e.registerTemplateHelper=function(t,n){i.Assert.isNonEmptyString(t),i.Assert.exists(n),e.registerTemplateHelperInUnderscore(t,n),e.helpers[t]=n},e.getHelper=function(t){return r.Utils.getCaseInsensitiveProperty(e.helpers,t)},e.getHelpers=function(){return e.helpers},e.registerTemplateHelperInUnderscore=function(e,t){i.Assert.isNonEmptyString(e),i.Assert.exists(t),o.UnderscoreTemplate.registerTemplateHelper(e,t)},e.helpers={},e.fieldHelpers=[],e}();t.TemplateHelpers=s},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=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])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n(27),r=n(57),s=n(67),a=n(5),u=n(1),l=n(0),c=n(2),p=function(e){function t(){var t=e.call(this)||this;return t.addFields(c.Initialization.getRegisteredFieldsForQuery()),t}return i(t,e),t.prototype.instantiateToString=function(e,t){void 0===t&&(t={}),a.Assert.exists(e);var n=(new o.DefaultInstantiateTemplateOptions).merge(t);e=l.extend({},e,r.UnderscoreTemplate.templateHelpers);for(var i=l.chain(s.TemplateCache.getDefaultTemplates()).map(function(e){return s.TemplateCache.getTemplate(e)}).value(),u=l.chain(i).sortBy(function(e){return null==e.condition}).sortBy(function(e){return null==e.fieldsToMatch}).value(),c=0;c<u.length;c++){var p=u[c].instantiateToString(e,n);if(null!=p)return p}return this.getFallbackTemplate()},t.prototype.getFields=function(){var e=l.map(s.TemplateCache.getDefaultTemplates(),function(e){return s.TemplateCache.getTemplate(e)});return l.flatten(l.map(e,function(e){return e.getFields()}))},t.prototype.getType=function(){return"DefaultResultTemplate"},t.prototype.getFallbackTemplate=function(){var e=u.$$("div",{className:"coveo-title",role:"heading",ariaLevel:2}),t=u.$$("a",{className:"CoveoResultLink"});e.append(t.el);var n=u.$$("div",{className:"CoveoExcerpt"}),i=u.$$("div");return i.append(e.el),i.append(n.el),i.el.outerHTML},t}(o.Template);t.DefaultResultTemplate=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,o=n(1),r=n(133),s=n(0),a=n(17),u=n(25),l=n(16),c=n(5),p=n(6);!function(e){e.OPEN="responsiveDropdownOpen",e.CLOSE="responsiveDropdownClose"}(i=t.ResponsiveDropdownEvent||(t.ResponsiveDropdownEvent={}));var d=function(){function e(e,t,n){var i=this;this.dropdownContent=e,this.dropdownHeader=t,this.coveoRoot=n,this.isOpened=!1,this.onOpenHandlers=[],this.onCloseHandlers=[],this.popupBackgroundIsEnabled=!0,this.scrollableContainerToLock=null,this.closeIfOpened=function(){i.isOpened&&i.close()},c.Assert.exists(e),c.Assert.exists(t),c.Assert.exists(n),this.popupBackground=this.buildPopupBackground(),this.bindOnClickDropdownHeaderEvent(),this.saveContentPosition(),this.bindOnKeyboardEscapeEvent(),this.bindNukeEvents()}return Object.defineProperty(e.prototype,"scrollLocked",{set:function(e){this.scrollableContainerToLock&&(this.scrollableContainerToLock.style.overflow=e?"hidden":"")},enumerable:!0,configurable:!0}),e.prototype.registerOnOpenHandler=function(e,t){c.Assert.exists(e),this.onOpenHandlers.push({handler:e,context:t})},e.prototype.registerOnCloseHandler=function(e,t){c.Assert.exists(e),this.onCloseHandlers.push({handler:e,context:t})},e.prototype.cleanUp=function(){this.close(),this.dropdownHeader.cleanUp(),this.dropdownContent.cleanUp(),this.restoreContentPosition()},e.prototype.open=function(){this.isOpened=!0,this.dropdownHeader.open(),this.dropdownContent.positionDropdown(),s.each(this.onOpenHandlers,function(e){e.handler.apply(e.context)}),this.showPopupBackground(),this.lockScroll(),o.$$(this.dropdownHeader.element).trigger(i.OPEN)},e.prototype.close=function(){this.isOpened=!1,s.each(this.onCloseHandlers,function(e){e.handler.apply(e.context)}),this.dropdownHeader.close(),this.dropdownContent.hideDropdown(),this.hidePopupBackground(),this.unlockScroll(),o.$$(this.dropdownHeader.element).trigger(i.CLOSE)},e.prototype.disablePopupBackground=function(){this.popupBackgroundIsEnabled=!1},e.prototype.enableScrollLocking=function(e){this.scrollableContainerToLock=e},e.prototype.bindOnClickDropdownHeaderEvent=function(){var e=this;(new a.AccessibleButton).withElement(this.dropdownHeader.element).withSelectAction(function(){return e.isOpened?e.close():e.open()}).withLabel(p.l(this.isOpened?"CloseFiltersDropdown":"OpenFiltersDropdown")).build()},e.prototype.bindOnKeyboardEscapeEvent=function(){o.$$(document.documentElement).on("keyup",u.KeyboardUtils.keypressAction(u.KEYBOARD.ESCAPE,this.closeIfOpened))},e.prototype.unbindOnKeyboardEscapeEvent=function(){o.$$(document.documentElement).off("keyup",u.KeyboardUtils.keypressAction(u.KEYBOARD.ESCAPE,this.closeIfOpened))},e.prototype.bindNukeEvents=function(){var e=this;o.$$(this.coveoRoot).on(l.InitializationEvents.nuke,function(){e.unbindOnKeyboardEscapeEvent()})},e.prototype.showPopupBackground=function(){this.popupBackgroundIsEnabled&&(this.coveoRoot.el.appendChild(this.popupBackground.el),window.getComputedStyle(this.popupBackground.el).opacity,this.popupBackground.el.style.opacity=e.TRANSPARENT_BACKGROUND_OPACITY,this.popupBackground.addClass(e.DROPDOWN_BACKGROUND_ACTIVE_CSS_CLASS_NAME))},e.prototype.lockScroll=function(){this.scrollLocked=!0},e.prototype.unlockScroll=function(){this.scrollLocked=!1},e.prototype.hidePopupBackground=function(){this.popupBackgroundIsEnabled&&(window.getComputedStyle(this.popupBackground.el).opacity,this.popupBackground.el.style.opacity="0",this.popupBackground.removeClass(e.DROPDOWN_BACKGROUND_ACTIVE_CSS_CLASS_NAME))},e.prototype.buildPopupBackground=function(){var t=this,n=o.$$("div",{className:e.DROPDOWN_BACKGROUND_CSS_CLASS_NAME});return r.EventsUtils.addPrefixedEvent(n.el,"TransitionEnd",function(){"0"==n.el.style.opacity&&n.detach()}),n.on("click",function(){return t.close()}),n},e.prototype.saveContentPosition=function(){var e=this.dropdownContent.element.el.previousSibling,t=this.dropdownContent.element.el.parentElement;this.previousSibling=e?o.$$(e):null,this.parent=o.$$(t)},e.prototype.restoreContentPosition=function(){this.previousSibling?this.dropdownContent.element.insertAfter(this.previousSibling.el):this.parent.prepend(this.dropdownContent.element.el)},e.TRANSPARENT_BACKGROUND_OPACITY="0.9",e.DROPDOWN_BACKGROUND_CSS_CLASS_NAME="coveo-dropdown-background",e.DROPDOWN_BACKGROUND_ACTIVE_CSS_CLASS_NAME="coveo-dropdown-background-active",e}();t.ResponsiveDropdown=d},function(module,exports,__webpack_require__){"use strict";function showOnlyWithHelper(e,t){return null==t&&(t={}),t.helpers=e,t}var __extends=this&&this.__extends||function(){var e=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])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(exports,"__esModule",{value:!0});var underscore_1=__webpack_require__(0),GlobalExports_1=__webpack_require__(3),Assert_1=__webpack_require__(5),Strings_1=__webpack_require__(6),AccessibleButton_1=__webpack_require__(17),DateUtils_1=__webpack_require__(33),Dom_1=__webpack_require__(1),StringUtils_1=__webpack_require__(22),Utils_1=__webpack_require__(4),AnalyticsActionListMeta_1=__webpack_require__(10),Component_1=__webpack_require__(7),ComponentOptions_1=__webpack_require__(8),Initialization_1=__webpack_require__(2),FacetUtils_1=__webpack_require__(40),TemplateFieldsEvaluator_1=__webpack_require__(132),TemplateHelpers_1=__webpack_require__(116),IFieldValueCompatibleFacet_1=__webpack_require__(539),ComponentsTypes_1=__webpack_require__(47),FieldValue=function(_super){function FieldValue(e,t,n,i,o){void 0===o&&(o=FieldValue.ID);var r=_super.call(this,e,o,n)||this;return r.element=e,r.options=t,r.result=i,r.options=ComponentOptions_1.ComponentOptions.initOptions(e,FieldValue.simpleOptions,t,FieldValue.ID),null!=r.options.helper&&r.normalizeHelperAndOptions(),r.result=r.result||r.resolveResult(),Assert_1.Assert.exists(r.result),TemplateFieldsEvaluator_1.TemplateFieldsEvaluator.evaluateFieldsToMatch(r.options.conditions,r.result)&&r.getValue()?r.initialize():null!=r.element.parentElement&&r.element.parentElement.removeChild(r.element),r}return __extends(FieldValue,_super),FieldValue.prototype.initialize=function(){var e,t=this.getValue();underscore_1.isArray(t)?e=t:this.options.splitValues?underscore_1.isString(t)&&(e=underscore_1.map(t.split(this.options.separator),function(e){return e.trim()})):(t=t.toString(),e=[t]),this.appendValuesToDom(e),null!=this.options.textCaption&&this.prependTextCaptionToDom()},FieldValue.prototype.getValue=function(){var e=Utils_1.Utils.getFieldValue(this.result,this.options.field);return!underscore_1.isArray(e)&&underscore_1.isObject(e)&&(e=null),e},FieldValue.prototype.renderOneValue=function(e){var t=Dom_1.$$("span").el,n=this.getCaption(e);if(this.options.helper){var i=TemplateHelpers_1.TemplateHelpers.getHelper(this.options.helper+"v2")||TemplateHelpers_1.TemplateHelpers.getHelper(""+this.options.helper);Utils_1.Utils.exists(i)?n=i.call(this,e,this.getHelperOptions(),this.result):this.logger.warn("Helper "+this.options.helper+" is not found in available helpers. The list of supported helpers is :",underscore_1.keys(TemplateHelpers_1.TemplateHelpers.getHelpers()));var o=this.getFullDate(e,this.options.helper);o&&t.setAttribute("title",o),"date"!=this.options.helper&&"dateTime"!=this.options.helper&&"emailDateTime"!=this.options.helper||(n=StringUtils_1.StringUtils.capitalizeFirstLetter(n))}return this.options.htmlValue?t.innerHTML=n:t.appendChild(document.createTextNode(n)),this.bindEventOnValue(t,e,n),t},FieldValue.prototype.getValueContainer=function(){return this.element},FieldValue.prototype.normalizeHelperAndOptions=function(){var e=this;this.options=ComponentOptions_1.ComponentOptions.initOptions(this.element,FieldValue.helperOptions,this.options,FieldValue.ID);var t=underscore_1.keys(FieldValue.options.helperOptions.subOptions),n=underscore_1.filter(t,function(t){var n=FieldValue.options.helperOptions.subOptions[t];if(n){var i=n.helpers;return null!=i&&underscore_1.contains(i,e.options.helper)}return!1});this.options.helperOptions=underscore_1.omit(this.options.helperOptions,function(e,t){return!underscore_1.contains(n,t)})},FieldValue.prototype.getHelperOptions=function(){var inlineOptions=ComponentOptions_1.ComponentOptions.loadStringOption(this.element,"helperOptions",{});return Utils_1.Utils.isNonEmptyString(inlineOptions)?underscore_1.extend({},this.options.helperOptions,eval("("+inlineOptions+")")):this.options.helperOptions},FieldValue.prototype.getFullDate=function(e,t){var n={useLongDateFormat:!0,useTodayYesterdayAndTomorrow:!1,useWeekdayIfThisWeek:!1,omitYearIfCurrentOne:!1};return"date"==t?DateUtils_1.DateUtils.dateToString(new Date(parseInt(e)),n):"dateTime"==t||"emailDateTime"==t?DateUtils_1.DateUtils.dateTimeToString(new Date(parseInt(e)),n):""},FieldValue.prototype.appendValuesToDom=function(e){var t=this;underscore_1.each(e,function(n,i){void 0!=n&&(t.getValueContainer().appendChild(t.renderOneValue(n)),i!==e.length-1&&t.getValueContainer().appendChild(document.createTextNode(t.options.displaySeparator)))})},FieldValue.prototype.renderTextCaption=function(){return Dom_1.$$("span",{className:"coveo-field-caption"},underscore_1.escape(this.options.textCaption)).el},FieldValue.prototype.prependTextCaptionToDom=function(){var e=this.getValueContainer();Dom_1.$$(e).prepend(this.renderTextCaption()),Dom_1.$$(e).addClass("coveo-with-label")},FieldValue.prototype.bindEventOnValue=function(e,t,n){this.bindFacets(e,t,n)},FieldValue.prototype.getCaption=function(e){for(var t=0,n=this.getFacets();t<n.length;t++){var i=n[t],o=i.getCaptionForStringValue(e);if(o)return o}return FacetUtils_1.FacetUtils.tryToGetTranslatedCaption(this.options.field,e)},FieldValue.prototype.getFacets=function(){var e=this,t=ComponentsTypes_1.ComponentsTypes.getAllFacetsFromSearchInterface(this.searchInterface).filter(IFieldValueCompatibleFacet_1.isFacetFieldValueCompatible).filter(function(e){return!e.disabled}),n=t.filter(function(t){return t.options.id===e.options.facet});return n.length?n:t.filter(function(t){return t.options.field===e.options.field})},FieldValue.prototype.bindFacets=function(e,t,n){var i=this,o=this.getFacets();if(o.length){var r=!!underscore_1.find(o,function(e){return e.hasSelectedValue(t)}),s=function(){return i.handleFacetSelection(r,o,t)};this.buildClickableElement(e,r,n,s)}},FieldValue.prototype.buildClickableElement=function(e,t,n,i){var o=t?Strings_1.l("RemoveFilterOn",n):Strings_1.l("FilterOn",n);(new AccessibleButton_1.AccessibleButton).withTitle(o).withElement(e).withSelectAction(i).build(),t&&Dom_1.$$(e).addClass("coveo-selected"),Dom_1.$$(e).addClass("coveo-clickable")},FieldValue.prototype.handleFacetSelection=function(e,t,n){t.forEach(function(t){e?t.deselectValue(n):t.selectValue(n)}),this.executeQuery(n)},FieldValue.prototype.executeQuery=function(e){var t=this;this.queryController.deferExecuteQuery({beforeExecuteQuery:function(){return t.usageAnalytics.logSearchEvent(AnalyticsActionListMeta_1.analyticsActionCauseList.documentField,{facetId:t.options.facet,facetField:t.options.field.toString(),facetValue:e.toLowerCase()})}})},FieldValue.ID="FieldValue",FieldValue.doExport=function(){GlobalExports_1.exportGlobally({FieldValue:FieldValue})},FieldValue.options={field:ComponentOptions_1.ComponentOptions.buildFieldOption({defaultValue:"@field",required:!0}),facet:ComponentOptions_1.ComponentOptions.buildStringOption({postProcessing:function(e,t){return e||t.field}}),htmlValue:ComponentOptions_1.ComponentOptions.buildBooleanOption({defaultValue:!1}),splitValues:ComponentOptions_1.ComponentOptions.buildBooleanOption({defaultValue:!1}),separator:ComponentOptions_1.ComponentOptions.buildStringOption({depend:"splitValues",defaultValue:";"}),displaySeparator:ComponentOptions_1.ComponentOptions.buildStringOption({depend:"splitValues",defaultValue:", "}),helper:ComponentOptions_1.ComponentOptions.buildHelperOption(),helperOptions:ComponentOptions_1.ComponentOptions.buildObjectOption({subOptions:{text:ComponentOptions_1.ComponentOptions.buildStringOption(showOnlyWithHelper(["anchor"])),target:ComponentOptions_1.ComponentOptions.buildStringOption(showOnlyWithHelper(["anchor"])),class:ComponentOptions_1.ComponentOptions.buildStringOption(showOnlyWithHelper(["anchor"])),format:ComponentOptions_1.ComponentOptions.buildStringOption(showOnlyWithHelper(["number"])),decimals:ComponentOptions_1.ComponentOptions.buildNumberOption(showOnlyWithHelper(["currency"],{min:0})),symbol:ComponentOptions_1.ComponentOptions.buildStringOption(showOnlyWithHelper(["currency"])),useTodayYesterdayAndTomorrow:ComponentOptions_1.ComponentOptions.buildBooleanOption(showOnlyWithHelper(["date","dateTime","emailDateTime","time"],{defaultValue:!0})),useWeekdayIfThisWeek:ComponentOptions_1.ComponentOptions.buildBooleanOption(showOnlyWithHelper(["date","dateTime","emailDateTime","time"],{defaultValue:!0})),omitYearIfCurrentOne:ComponentOptions_1.ComponentOptions.buildBooleanOption(showOnlyWithHelper(["date","dateTime","emailDateTime","time"],{defaultValue:!0})),useLongDateFormat:ComponentOptions_1.ComponentOptions.buildBooleanOption(showOnlyWithHelper(["date","dateTime","emailDateTime","time"],{defaultValue:!1})),includeTimeIfToday:ComponentOptions_1.ComponentOptions.buildBooleanOption(showOnlyWithHelper(["date","dateTime","emailDateTime","time"],{defaultValue:!0})),includeTimeIfThisWeek:ComponentOptions_1.ComponentOptions.buildBooleanOption(showOnlyWithHelper(["date","dateTime","emailDateTime","time"],{defaultValue:!0})),alwaysIncludeTime:ComponentOptions_1.ComponentOptions.buildBooleanOption(showOnlyWithHelper(["date","dateTime","emailDateTime","time"],{defaultValue:!1})),predefinedFormat:ComponentOptions_1.ComponentOptions.buildStringOption(showOnlyWithHelper(["date","dateTime","emailDateTime","time"])),companyDomain:ComponentOptions_1.ComponentOptions.buildStringOption(showOnlyWithHelper(["email"])),me:ComponentOptions_1.ComponentOptions.buildStringOption(showOnlyWithHelper(["email"])),lengthLimit:ComponentOptions_1.ComponentOptions.buildNumberOption(showOnlyWithHelper(["email"],{min:1})),truncateName:ComponentOptions_1.ComponentOptions.buildBooleanOption(showOnlyWithHelper(["email"])),alt:ComponentOptions_1.ComponentOptions.buildStringOption(showOnlyWithHelper(["image"])),height:ComponentOptions_1.ComponentOptions.buildStringOption(showOnlyWithHelper(["image"])),width:ComponentOptions_1.ComponentOptions.buildStringOption(showOnlyWithHelper(["image"])),srcTemplate:ComponentOptions_1.ComponentOptions.buildStringOption(showOnlyWithHelper(["image"])),precision:ComponentOptions_1.ComponentOptions.buildNumberOption(showOnlyWithHelper(["size"],{min:0,defaultValue:2})),base:ComponentOptions_1.ComponentOptions.buildNumberOption(showOnlyWithHelper(["size"],{min:0,defaultValue:0})),isMilliseconds:ComponentOptions_1.ComponentOptions.buildBooleanOption(showOnlyWithHelper(["timeSpan"])),length:ComponentOptions_1.ComponentOptions.buildNumberOption(showOnlyWithHelper(["shorten","shortenPath","shortenUri"],{defaultValue:200}))}}),textCaption:ComponentOptions_1.ComponentOptions.buildLocalizedStringOption(),conditions:ComponentOptions_1.ComponentOptions.buildFieldConditionOption()},FieldValue.simpleOptions=underscore_1.omit(FieldValue.options,"helperOptions"),FieldValue.helperOptions={helperOptions:FieldValue.options.helperOptions},FieldValue}(Component_1.Component);exports.FieldValue=FieldValue,Initialization_1.Initialization.registerAutoCreateComponent(FieldValue)},function(e,t,n){"use strict";function i(e){e.logSearchEvent(r.analyticsActionCauseList.searchboxSubmit,{})}function o(e,t){e.logSearchEvent(r.analyticsActionCauseList.resultsSort,{resultsSortBy:t})}Object.defineProperty(t,"__esModule",{value:!0});var r=n(10);t.logSearchBoxSubmitEvent=i,t.logSortEvent=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(3),o=n(6),r=n(1),s=n(15),a=n(12),u=function(){function e(e,t,n,i){void 0===e&&(e=function(e){}),void 0===t&&(t=0),this.onChange=e,this.min=t,this.max=n,this.label=i,this.buildContent(),this.bindEvents()}return e.doExport=function(){i.exportGlobally({NumericSpinner:e})},e.prototype.reset=function(){this.getSpinnerInput().value="",this.onChange(this)},e.prototype.getElement=function(){return this.element},e.prototype.getValue=function(){return this.getSpinnerInput().value},e.prototype.getIntValue=function(){return this.getSpinnerInput().value?parseInt(this.getSpinnerInput().value,10):this.min},e.prototype.getFloatValue=function(){return this.getSpinnerInput().value?parseFloat(this.getSpinnerInput().value):this.min},e.prototype.setValue=function(e){this.max&&e>this.max&&(e=this.max),e<this.min&&(e=this.min),this.getSpinnerInput().value=e.toString(),this.onChange(this)},e.prototype.build=function(){return this.element},e.prototype.buildContent=function(){var e=r.$$("div",{className:"coveo-numeric-spinner"}),t=r.$$("input",{className:"coveo-number-input",type:"text","aria-label":this.label?o.l(this.label):""}),n=r.$$("span",{className:"coveo-add-on"}),i=r.$$("div",{className:"coveo-spinner-up"},a.SVGIcons.icons.arrowUp);s.SVGDom.addClassToSVGInContainer(i.el,"coveo-spinner-up-svg");var u=r.$$("div",{className:"coveo-spinner-down"},a.SVGIcons.icons.arrowDown);s.SVGDom.addClassToSVGInContainer(u.el,"coveo-spinner-down-svg"),n.append(i.el),n.append(u.el),e.append(t.el),e.append(n.el),this.element=e.el},e.prototype.bindEvents=function(){var e=this,t=r.$$(this.element).find(".coveo-spinner-up");r.$$(t).on("click",function(){e.setValue(e.getFloatValue()+1)});var n=r.$$(this.element).find(".coveo-spinner-down");r.$$(n).on("click",function(){e.setValue(e.getFloatValue()-1)});var i=r.$$(this.element).find("input");r.$$(i).on("input",function(){i.value.match(/[0-9]*/)&&e.onChange(e)})},e.prototype.getSpinnerInput=function(){return r.$$(this.element).find(".coveo-number-input")},e}();t.NumericSpinner=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(140);t.ColorUtils=i.ColorUtils;var o=n(124);t.Cookie=o.Cookie;var r=n(130);t.CurrencyUtils=r.CurrencyUtils;var s=n(33);t.DateUtils=s.DateUtils;var a=n(24);t.DeviceUtils=a.DeviceUtils;var u=n(1);t.Dom=u.Dom,t.$$=u.$$;var l=n(93);t.DomUtils=l.DomUtils;var c=n(176);t.EmailUtils=c.EmailUtils;var p=n(42);t.HashUtils=p.HashUtils;var d=n(68);t.HighlightUtils=d.HighlightUtils,t.StringAndHoles=d.StringAndHoles;var h=n(177);t.HTMLUtils=h.HTMLUtils;var f=n(25);t.KEYBOARD=f.KEYBOARD,t.KeyboardUtils=f.KeyboardUtils;var m=n(41);t.LocalStorageUtils=m.LocalStorageUtils;var y=n(178);t.OSUtils=y.OSUtils,t.OS_NAME=y.OS_NAME;var g=n(194);t.PopupUtils=g.PopupUtils;var v=n(21);t.QueryUtils=v.QueryUtils;var b=n(114);t.StreamHighlightUtils=b.StreamHighlightUtils;var S=n(22);t.StringUtils=S.StringUtils;var C=n(72);t.TimeSpan=C.TimeSpan;var w=n(4);t.Utils=w.Utils;var _=n(43);t.UrlUtils=_.UrlUtils},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=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])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n(111),r=n(1),s=n(16),a=n(19),u=n(7),l=n(13),c=n(0),p=function(e){function t(t,n,i,o){var a=e.call(this,t,n,i,o)||this;return a.root=t,a.endpoint=n,a.templateSearchEvent=i,a.sendToCloud=o,a.delayBeforeSending=5e3,a.queryContent="",a.beforeUnloadHandler=function(){a.onWindowUnload()},window.addEventListener("beforeunload",a.beforeUnloadHandler),r.$$(t).on(s.InitializationEvents.nuke,function(){return a.handleNuke()}),a}return i(t,e),t.prototype.handleDuringQuery=function(t,n){var i=this,o=c.clone(t),r=t.target,s=u.Component.get(r,a.SearchInterface);this.modifyQueryContent(s.queryStateModel.get(l.QueryStateModel.attributesEnum.q)),this.beforeResolve=new Promise(function(t){i.toSendRightNow=function(){i.isCancelledOrFinished()||(t(i),e.prototype.handleDuringQuery.call(i,o,n,i.queryContent))},c.delay(function(){i.toSendRightNow()},i.delayBeforeSending)})},t.prototype.sendRightNow=function(){this.toSendRightNow&&this.toSendRightNow()},t.prototype.modifyCustomData=function(e,t){c.each(this.searchEvents,function(n){n.customData[e]=t}),this.templateSearchEvent.customData||(this.templateSearchEvent.customData={}),this.templateSearchEvent.customData[e]=t},t.prototype.modifyEventCause=function(e){c.each(this.searchEvents,function(t){t.actionCause=e.name,t.actionType=e.type}),this.templateSearchEvent.actionCause=e.name,this.templateSearchEvent.actionType=e.type},t.prototype.modifyQueryContent=function(e){this.queryContent=e},t.prototype.stopRecording=function(){e.prototype.stopRecording.call(this),this.beforeUnloadHandler&&(window.removeEventListener("beforeunload",this.beforeUnloadHandler),this.beforeUnloadHandler=void 0)},t.prototype.handleNuke=function(){window.removeEventListener("beforeunload",this.beforeUnloadHandler)},t.prototype.onWindowUnload=function(){this.isCancelledOrFinished()||this.sendRightNow()},t.prototype.isCancelledOrFinished=function(){return!!this.cancelled||!!this.finished&&(this.cancel(),!0)},t}(o.PendingSearchEvent);t.PendingSearchAsYouTypeSearchEvent=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){}return e.set=function(t,n,i){var o=location.hostname;if(1===o.split(".").length)document.cookie=this.buildCookie(t,n,i);else{var r=o.split(".");r.shift();var s="."+r.join(".");document.cookie=this.buildCookie(t,n,i,s),null!=e.get(t)&&e.get(t)==n||(s="."+o,document.cookie=this.buildCookie(t,n,i,s))}},e.buildCookie=function(e,t,n,i){var o=n?this.buildExpiresValue(n):"",r=i?"; domain="+i:"";return""+this.prefix+e+"="+t+o+r+"; SameSite=Lax; path=/"},e.buildExpiresValue=function(e){return"; expires="+new Date(Date.now()+e).toUTCString()},e.get=function(e){for(var t=""+this.prefix+e+"=",n=document.cookie.split(";"),i=0;i<n.length;i++){for(var o=n[i];" "===o.charAt(0);)o=o.substring(1,o.length);if(0==o.indexOf(t))return o.substring(t.length,o.length)}return null},e.erase=function(t){e.set(t,"",-1)},e.prefix="coveo_",e}();t.Cookie=i},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=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])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n(7),r=n(8),s=n(150),a=n(51),u=n(5),l=n(11),c=n(28),p=n(1),d=n(18),h=n(4),f=n(101),m=n(168),y=n(452),g=n(10),v=n(206),b=n(0),S=n(3),C=n(111),w=n(123),_=n(145),O=n(56),x=n(21),E=n(66),A=n(16),T=function(e){function t(n,i,s){void 0===i&&(i={});var a=e.call(this,n,t.ID,s)||this;if(a.element=n,a.options=i,a.bindings=s,a.options=r.ComponentOptions.initComponentOptions(n,t,i),a.setupAccessToken(),null==a.accessToken)return a.logger.error("Analytics component could not resolve any access token"),a.logger.error('Either provide a analytics token : data-option-token="an-authentication-token" on the Analytics element, or configure a default SearchEndpoint',a.element),a;if(a.options.token=a.accessToken.token,a.accessToken.subscribeToRenewal(function(e){a.options.token=e,a.client.endpoint.endpointCaller.options.accessToken=e}),a.initializeAnalyticsClient(),u.Assert.exists(a.client),p.$$(a.root).on(l.QueryEvents.buildingQuery,function(e,t){return a.handleBuildingQuery(t)}),a.bind.onRootElement(l.QueryEvents.queryError,function(e){return a.handleQueryError(e)}),a.bind.onRootElement(A.InitializationEvents.afterComponentsInitialization,function(){return a.handleDoNotTrack()}),a.options.autoPushToGtmDataLayer&&a.isGtmDataLayerInitialized&&a.bind.onRootElement(O.AnalyticsEvents.analyticsEventReady,function(e){return a.pushToGtmDataLayer(e)}),!a.componentOptionsModel){var h=p.$$(n).find("."+o.Component.computeCssClassName(c.ComponentOptionsModel));h&&(a.componentOptionsModel=h[o.Component.computeCssClassName(c.ComponentOptionsModel)])}if(a.componentOptionsModel){a.componentOptionsModel.set(c.ComponentOptionsModel.attributesEnum.searchHub,a.options.searchHub);var f=a.componentOptionsModel.getEventName(d.Model.eventTypes.changeOne+c.ComponentOptionsModel.attributesEnum.searchHub);p.$$(a.root).on(f,function(e,t){return a.handleSearchHubChanged(t)})}return a.createClientId(),a}return i(t,e),t.doExport=function(){S.exportGlobally({PendingSearchEvent:C.PendingSearchEvent,PendingSearchAsYouTypeSearchEvent:w.PendingSearchAsYouTypeSearchEvent,analyticsActionCauseList:g.analyticsActionCauseList,NoopAnalyticsClient:f.NoopAnalyticsClient,LiveAnalyticsClient:m.LiveAnalyticsClient,MultiAnalyticsClient:y.MultiAnalyticsClient,Analytics:t})},t.prototype.logSearchEvent=function(e,t){this.client.logSearchEvent(e,t)},t.prototype.logSearchAsYouType=function(e,t){this.client.logSearchAsYouType(e,t)},t.prototype.logCustomEvent=function(e,t,n,i){void 0===n&&(n=this.element),this.client.logCustomEvent(e,t,n,i)},t.prototype.logClickEvent=function(e,t,n,i){void 0===i&&(i=this.element),this.client.logClickEvent(e,t,n,i)},t.prototype.setOriginContext=function(e){this.client.setOriginContext(e)},t.prototype.enable=function(){if(!this.disabled)return this.logger.warn("The Analytics component is already enabled.");e.prototype.enable.call(this),this.initializeAnalyticsClient(),this.updateSearchInterfaceUAClient(),this.resolveQueryController().enableHistory()},t.prototype.clearLocalData=function(){if(this.disabled||this.client instanceof f.NoopAnalyticsClient)return this.logger.warn("Could not clear local data while analytics are disabled.");(new E.AnalyticsInformation).clear(),this.resolveQueryController().resetHistory()},t.prototype.disable=function(){if(this.disabled)return this.logger.warn("The Analytics component is already disabled.");this.clearLocalData(),this.client.cancelAllPendingEvents(),this.client=new f.NoopAnalyticsClient,this.updateSearchInterfaceUAClient(),this.resolveQueryController().disableHistory(),e.prototype.disable.call(this)},t.prototype.updateSearchInterfaceUAClient=function(){this.searchInterface.usageAnalytics=this.client},t.prototype.pushToGtmDataLayer=function(e){var t=this.options.gtmDataLayerName;try{window[t].push(e)}catch(e){this.logger.error("Unexpected error when pushing to Google Tag Manager data layer '"+t+"': '"+e+"'.")}},t.prototype.initializeAnalyticsEndpoint=function(){return new s.AnalyticsEndpoint({accessToken:this.accessToken,serviceUrl:this.options.endpoint,organization:this.options.organization})},t.prototype.createClientId=function(){var e=new E.AnalyticsInformation;e.clientId||(e.clientId=x.QueryUtils.createGuid())},t.prototype.initializeAnalyticsClient=function(){if(h.Utils.isNonEmptyString(this.options.endpoint)){var e=this.initializeAnalyticsEndpoint(),t=void 0;this.root&&this.element&&(t=this.root.contains(this.element)?this.root:this.element);var n=p.$$(this.root).hasClass(o.Component.computeCssClassNameForType("Recommendation"));this.instantiateAnalyticsClient(e,t,n)}else this.client=new f.NoopAnalyticsClient},t.prototype.instantiateAnalyticsClient=function(e,t,n){this.client=n?new v.RecommendationAnalyticsClient(e,t,this.options.user,this.options.userDisplayName,this.options.anonymous,this.options.splitTestRunName,this.options.splitTestRunVersion,this.options.searchHub,this.options.sendToCloud,this.getBindings()):new m.LiveAnalyticsClient(e,t,this.options.user,this.options.userDisplayName,this.options.anonymous,this.options.splitTestRunName,this.options.splitTestRunVersion,this.options.searchHub,this.options.sendToCloud,this.getBindings())},t.prototype.setupAccessToken=function(){this.trySetupAccessTokenFromOptions(),null==this.accessToken&&this.trySetupAccessTokenFromDefaultSearchEndpoint()},t.prototype.trySetupAccessTokenFromOptions=function(){null!=this.options.token&&(this.accessToken=new _.AccessToken(this.options.token,this.options.renewAccessToken))},t.prototype.trySetupAccessTokenFromDefaultSearchEndpoint=function(){this.defaultEndpoint&&(this.accessToken=this.defaultEndpoint.accessToken,this.options.token=this.defaultEndpoint.accessToken.token),!this.options.organization&&this.defaultEndpoint&&(this.options.organization=this.defaultEndpoint.options.queryStringArguments.organizationId)},Object.defineProperty(t.prototype,"defaultEndpoint",{get:function(){return this.searchInterface.options.endpoint||a.SearchEndpoint.defaultEndpoint},enumerable:!0,configurable:!0}),t.prototype.handleBuildingQuery=function(e){u.Assert.exists(e),e.queryBuilder.searchHub=this.options.searchHub},t.prototype.handleSearchHubChanged=function(e){this.options.searchHub=e.value},t.prototype.handleQueryError=function(e){u.Assert.exists(e),this.client.logCustomEvent(g.analyticsActionCauseList.queryError,{query:e.query.q,aq:e.query.aq,cq:e.query.cq,dq:e.query.dq,errorType:e.error.type,errorMessage:e.error.message},this.element)},Object.defineProperty(t.prototype,"isGtmDataLayerInitialized",{get:function(){var e=this.options.gtmDataLayerName;return!!e&&(!!window[e]||(this.logger.warn("Cannot automatically push to Google Tag Manager data layer: '"+e+"' is undefined."),!1))},enumerable:!0,configurable:!0}),t.create=function(e,n,i){var r=o.Component.computeSelectorForType(t.ID),s=[];return s=s.concat(p.$$(e).findAll(r)),p.$$(e).hasClass(o.Component.computeCssClassNameForType("Recommendation"))||(s=this.ignoreElementsInsideRecommendationInterface(s)),s.push(p.$$(e).closest(o.Component.computeCssClassName(t))),p.$$(e).is(r)&&s.push(e),s=b.compact(s),1==s.length?t.getClient(s[0],n,i):s.length>1?new y.MultiAnalyticsClient(b.map(s,function(e){return t.getClient(e,n,i)})):new f.NoopAnalyticsClient},t.ignoreElementsInsideRecommendationInterface=function(e){return b.filter(e,function(e){return void 0===p.$$(e).closest(o.Component.computeCssClassNameForType("Recommendation"))})},t.getClient=function(e,n,i){var r=o.Component.get(e,t,!0);return r instanceof t?r.client:new t(e,n,i).client},t.prototype.handleDoNotTrack=function(){this.doNotTrack()&&(this.logger.warn("Coveo Analytics tracking disabled due to doNotTrack"),this.disable())},t.prototype.doNotTrack=function(){var e=[!0,"yes","1",1].indexOf(navigator.doNotTrack||window.doNotTrack||navigator.msDoNotTrack),t=navigator.globalPrivacyControl;return-1!==e||t},t.ID="Analytics",t.options={user:r.ComponentOptions.buildStringOption(),userDisplayName:r.ComponentOptions.buildStringOption(),token:r.ComponentOptions.buildStringOption(),endpoint:r.ComponentOptions.buildStringOption({postProcessing:function(e){if(!e)return s.AnalyticsEndpoint.getURLFromSearchEndpoint(a.SearchEndpoint.defaultEndpoint);if(-1!==e.indexOf("usageanalytics"))return e.split("/rest")[0]+"/rest";return e}}),anonymous:r.ComponentOptions.buildBooleanOption({defaultValue:!1}),searchHub:r.ComponentOptions.buildStringOption({defaultValue:"default"}),splitTestRunName:r.ComponentOptions.buildStringOption(),splitTestRunVersion:r.ComponentOptions.buildStringOption(),sendToCloud:r.ComponentOptions.buildBooleanOption({defaultValue:!0}),organization:r.ComponentOptions.buildStringOption(),autoPushToGtmDataLayer:r.ComponentOptions.buildBooleanOption({defaultValue:!1}),gtmDataLayerName:r.ComponentOptions.buildStringOption({defaultValue:"dataLayer"})},t}(o.Component);t.Analytics=T},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(90),o=function(){function e(){}return e.shouldDrawFacetSlider=function(e,t){return i.ResponsiveDropdownContent.isTargetInsideOpenedDropdown(t)||!this.isSmallFacetActivated(e)},e.isSmallTabsActivated=function(e){return e.hasClass(this.smallTabsClassName)},e.isSmallFacetActivated=function(e){return e.hasClass(this.smallFacetClassName)},e.isSmallRecommendationActivated=function(e){return e.hasClass(this.smallRecommendationClassName)},e.activateSmallTabs=function(e){e.addClass(this.smallTabsClassName)},e.deactivateSmallTabs=function(e){e.removeClass(this.smallTabsClassName)},e.activateSmallFacet=function(e){e.addClass(this.smallFacetClassName)},e.deactivateSmallFacet=function(e){e.removeClass(this.smallFacetClassName)},e.activateSmallRecommendation=function(e){e.addClass(this.smallRecommendationClassName)},e.deactivateSmallRecommendation=function(e){e.removeClass(this.smallRecommendationClassName)},e.smallTabsClassName="coveo-small-tabs",e.smallFacetClassName="coveo-small-facets",e.smallRecommendationClassName="coveo-small-recommendation",e}();t.ResponsiveComponentsUtils=o},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=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])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n(473),r=function(e){function t(t,n,i){var o=e.call(this,t,n)||this;return o.facet=t,o.facetValue=n,o.keepDisplayedValueNextTime=i,o}return i(t,e),t.prototype.bindEvent=function(){e.prototype.bindEvent.call(this,{displayNextTime:this.keepDisplayedValueNextTime,pinFacet:this.facet.options.preservePosition})},t}(o.ValueElement);t.FacetValueElement=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(50),o=n(50);t.notWordStart=" ()[],$@'\"",t.notInWord=" ()[],:",t.Basic={basicExpressions:["Word","DoubleQuoted"],grammars:{DoubleQuoted:'"[NotDoubleQuote]"',NotDoubleQuote:/[^"]*/,SingleQuoted:"'[NotSingleQuote]'",NotSingleQuote:/[^']*/,Number:/-?(0|[1-9]\d*)(\.\d+)?/,Word:function(e,n,r){var s=new RegExp("[^"+t.notWordStart.replace(/(.)/g,"\\$1")+"][^"+t.notInWord.replace(/(.)/g,"\\$1")+"]*"),a=e.match(s);null!=a&&0!=a.index&&(a=null);var u=new i.Result(null!=a?a[0]:null,r,e);return u.isSuccess()&&n&&e.length>u.value.length?new o.EndOfInputResult(u):u}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){}return e.populateResultLayout="populateResultLayout",e}();t.ResultLayoutEvents=i},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=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])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n(5),r=n(76),s=n(4),a=n(23),u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.decimals=0,t}return i(t,e),t}(r.Options),l=function(){function e(){}return e.currencyToString=function(e,t){if(s.Utils.isNullOrUndefined(e))return"";e=Number(e),o.Assert.isNumber(e),t=(new u).merge(t);var n=a.culture().numberFormat.currency,i=n.symbol;s.Utils.isNonEmptyString(t.symbol)&&(n.symbol=t.symbol);var r=a.format(e,"c"+t.decimals.toString());return n.symbol=i,r},e}();t.CurrencyUtils=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=n(5),r=function(){function e(t,n){this.element=n,o.Assert.isString(t),o.Assert.exists(n),this.element.addClass("coveo-"+t+"-dropdown-header"),this.element.addClass(e.DEFAULT_CSS_CLASS_NAME)}return e.prototype.open=function(){this.element.addClass(e.ACTIVE_HEADER_CSS_CLASS_NAME)},e.prototype.close=function(){this.element.removeClass(e.ACTIVE_HEADER_CSS_CLASS_NAME)},e.prototype.cleanUp=function(){this.element.detach()},e.prototype.hide=function(){i.$$(this.element).addClass("coveo-hidden")},e.prototype.show=function(){i.$$(this.element).removeClass("coveo-hidden")},e.DEFAULT_CSS_CLASS_NAME="coveo-dropdown-header",e.ACTIVE_HEADER_CSS_CLASS_NAME="coveo-dropdown-header-active",e}();t.ResponsiveDropdownHeader=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=function(){function e(){}return e.evaluateFieldsToMatch=function(t,n){var o=!0;return!t||(i.each(t,function(t){var r=!1;t.values?i.each(t.values,function(i){if(!r){var o=n.raw[t.field],s=e.getFieldValueAsArray(o);r=e.isMatch(s,i)}}):r=null!=n.raw[t.field],o=o&&(t.reverseCondition?!r:r)}),o)},e.getFieldValueAsArray=function(e){return"string"==typeof e?[e]:e},e.isMatch=function(e,t){return void 0!=i.find(e,function(e){return e.toLowerCase()==t.toLowerCase()})},e}();t.TemplateFieldsEvaluator=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=function(){function e(){}return e.addPrefixedEvent=function(e,t,n){i.each(this.prefixes,function(i){""==i&&(t=t.toLowerCase()),e.addEventListener(i+t,n,!1)})},e.removePrefixedEvent=function(e,t,n){i.each(this.prefixes,function(i){""==i&&(t=t.toLowerCase()),e.removeEventListener(i+t,n,!1)})},e.prefixes=["webkit","moz","MS","o",""],e}();t.EventsUtils=o},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=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])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0}),n(565);var o=n(11),r=n(96),s=n(3),a=n(174),u=n(218),l=n(5),c=n(18),p=n(13),d=n(6),h=n(1),f=n(10),m=n(7),y=n(8),g=n(2),v=n(507),b=n(508),S=function(e){function t(n,i,s){var l=e.call(this,n,t.ID,s)||this;l.element=n,l.options=i,l.bindings=s,n instanceof HTMLInputElement&&l.logger.error("Querybox cannot be used on an HTMLInputElement"),l.options=y.ComponentOptions.initComponentOptions(n,t,i),new v.QueryboxOptionsProcessing(l).postProcess(),h.$$(l.element).toggleClass("coveo-query-syntax-disabled",0==l.options.enableQuerySyntax),l.magicBox=u.createMagicBox(n,new a.Grammar("Query",{Query:"[Term*][Spaces?]",Term:"[Spaces?][Word]",Spaces:/ +/,Word:/[^ ]+/}),{inline:!0});var m=h.$$(l.magicBox.element).find("input");return m&&h.$$(m).setAttribute("aria-label",l.options.placeholder||d.l("Search")),l.bind.onRootElement(o.QueryEvents.buildingQuery,function(e){return l.handleBuildingQuery(e)}),l.bind.onRootElement(r.StandaloneSearchInterfaceEvents.beforeRedirect,function(){return l.updateQueryState()}),l.bind.onQueryState(c.MODEL_EVENTS.CHANGE_ONE,p.QUERY_STATE_ATTRIBUTES.Q,function(e){return l.handleQueryStateChanged(e)}),l.options.enableSearchAsYouType&&(h.$$(l.element).addClass("coveo-search-as-you-type"),l.magicBox.onchange=function(){l.searchAsYouType()}),l.magicBox.onsubmit=function(){l.submit()},l.magicBox.onblur=function(){l.updateQueryState()},l.magicBox.onclear=function(){l.updateQueryState(),l.options.triggerQueryOnClear&&(l.usageAnalytics.logSearchEvent(f.analyticsActionCauseList.searchboxClear,{}),l.triggerNewQuery(!1))},l}return i(t,e),t.prototype.submit=function(){this.magicBox.clearSuggestion(),this.updateQueryState(),this.usageAnalytics.logSearchEvent(f.analyticsActionCauseList.searchboxSubmit,{}),this.triggerNewQuery(!1)},t.prototype.setText=function(e){this.magicBox.setText(e),this.updateQueryState()},t.prototype.clear=function(){this.magicBox.clear()},t.prototype.getText=function(){return this.magicBox.getText()},t.prototype.getResult=function(){return this.magicBox.getResult()},t.prototype.getDisplayedResult=function(){return this.magicBox.getDisplayedResult()},t.prototype.getCursor=function(){return this.magicBox.getCursor()},t.prototype.resultAtCursor=function(e){return this.magicBox.resultAtCursor(e)},t.prototype.handleBuildingQuery=function(e){l.Assert.exists(e),l.Assert.exists(e.queryBuilder),this.updateQueryState(),this.lastQuery=this.magicBox.getText(),new b.QueryboxQueryParameters(this.options).addParameters(e.queryBuilder,this.lastQuery)},t.prototype.triggerNewQuery=function(e){clearTimeout(this.searchAsYouTypeTimeout);var t=this.magicBox.getText();this.lastQuery!=t&&null!=t&&(this.lastQuery=t,this.queryController.executeQuery({searchAsYouType:e,logInActionsHistory:!0}))},t.prototype.updateQueryState=function(){this.queryStateModel.set(p.QueryStateModel.attributesEnum.q,this.magicBox.getText())},t.prototype.handleQueryStateChanged=function(e){l.Assert.exists(e);var t=e.value;t!=this.magicBox.getText()&&this.magicBox.setText(t)},t.prototype.searchAsYouType=function(){var e=this;clearTimeout(this.searchAsYouTypeTimeout),this.searchAsYouTypeTimeout=window.setTimeout(function(){e.usageAnalytics.logSearchAsYouType(f.analyticsActionCauseList.searchboxAsYouType,{}),e.triggerNewQuery(!0)},this.options.searchAsYouTypeDelay)},t.ID="Querybox",t.doExport=function(){s.exportGlobally({Querybox:t,QueryboxQueryParameters:b.QueryboxQueryParameters})},t.options={enableSearchAsYouType:y.ComponentOptions.buildBooleanOption({defaultValue:!1,section:"Advanced Options"}),searchAsYouTypeDelay:y.ComponentOptions.buildNumberOption({defaultValue:50,min:0,section:"Advanced Options"}),enableQuerySyntax:y.ComponentOptions.buildBooleanOption({defaultValue:!1,section:"Advanced Options"}),enableWildcards:y.ComponentOptions.buildBooleanOption({defaultValue:!1,section:"Advanced Options"}),enableQuestionMarks:y.ComponentOptions.buildBooleanOption({defaultValue:!1,depend:"enableWildcards"}),enableLowercaseOperators:y.ComponentOptions.buildBooleanOption({defaultValue:!1,depend:"enableQuerySyntax"}),enablePartialMatch:y.ComponentOptions.buildBooleanOption({defaultValue:!1}),partialMatchKeywords:y.ComponentOptions.buildNumberOption({defaultValue:5,min:1,depend:"enablePartialMatch"}),partialMatchThreshold:y.ComponentOptions.buildStringOption({defaultValue:"50%",depend:"enablePartialMatch"}),triggerQueryOnClear:y.ComponentOptions.buildBooleanOption({defaultValue:!1})},t}(m.Component);t.Querybox=S,g.Initialization.registerAutoCreateComponent(S)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=n(0);n(566);var r=n(3),s=function(){function e(e,t){var n=this;this.labelElement=i.$$("span",{className:"coveo-form-group-label"}),this.labelElement.text(t),this.element=i.$$("fieldset",{className:"coveo-form-group"},this.labelElement),o.each(e,function(e){n.element.append(e.build())})}return e.doExport=function(){r.exportGlobally({FormGroup:e})},e.prototype.build=function(){return this.element.el},e}();t.FormGroup=s},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=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])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),o=this&&this.__assign||Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},r=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))(function(o,r){function s(e){try{u(i.next(e))}catch(e){r(e)}}function a(e){try{u(i.throw(e))}catch(e){r(e)}}function u(e){e.done?o(e.value):new n(function(t){t(e.value)}).then(s,a)}u((i=i.apply(e,t||[])).next())})},s=this&&this.__generator||function(e,t){function n(e){return function(t){return i([e,t])}}function i(n){if(o)throw new TypeError("Generator is already executing.");for(;u;)try{if(o=1,r&&(s=r[2&n[0]?"return":n[0]?"throw":"next"])&&!(s=s.call(r,n[1])).done)return s;switch(r=0,s&&(n=[0,s.value]),n[0]){case 0:case 1:s=n;break;case 4:return u.label++,{value:n[1],done:!1};case 5:u.label++,r=n[1],n=[0];continue;case 7:n=u.ops.pop(),u.trys.pop();continue;default:if(s=u.trys,!(s=s.length>0&&s[s.length-1])&&(6===n[0]||2===n[0])){u=0;continue}if(3===n[0]&&(!s||n[1]>s[0]&&n[1]<s[3])){u.label=n[1];break}if(6===n[0]&&u.label<s[1]){u.label=s[1],s=n;break}if(s&&u.label<s[2]){u.label=s[2],u.ops.push(n);break}s[2]&&u.ops.pop(),u.trys.pop();continue}n=t.call(e,u)}catch(e){n=[6,e],r=0}finally{o=s=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}var o,r,s,a,u={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return a={next:n(0),throw:n(1),return:n(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a};Object.defineProperty(t,"__esModule",{value:!0}),n(221);var a=n(0),u=n(1),l=n(3),c=n(7),p=n(8),d=n(2),h=n(83),f=n(580),m=n(581),y=n(179),g=n(515),v=n(11),b=n(13),S=n(516),C=n(4),w=n(18),_=n(5),O=n(511),x=n(6),E=n(24),A=n(35),T=n(10),R=n(583),F=n(112),M=n(180),I=n(171),P=n(586),D=n(9),$=n(40),N=function(e){function t(n,i,o,r){void 0===r&&(r=t.ID);var s=e.call(this,n,r,o)||this;return s.element=n,s.listenToQueryStateChange=!0,s.moreValuesAvailable=!1,s.isDynamicFacet=!0,s.isFieldValueCompatible=!0,s.handleQueryStateChangedIncluded=function(e){var t=s.values.selectedValues,n=e.filter(function(e){return s.values.get(e)}),i=a.difference(n,t),o=a.difference(t,n);C.Utils.isNonEmptyArray(i)&&s.selectMultipleValues(i),C.Utils.isNonEmptyArray(o)&&s.deselectMultipleValues(o)},s.options=p.ComponentOptions.initComponentOptions(n,t,i),s.initDynamicFacetQueryController(),s.initDependsOnManager(),s.initQueryEvents(),s.initQueryStateEvents(),s.initBreadCrumbEvents(),s.initComponentStateEvents(),s.initValues(),s.verifyCollapsingConfiguration(),s.isCollapsed=s.options.enableCollapse&&s.options.collapsedByDefault,f.ResponsiveDynamicFacets.init(s.root,s,s.options),s}return i(t,e),Object.defineProperty(t.prototype,"fieldName",{get:function(){return this.options.field.slice(1)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"facetType",{get:function(){return M.FacetType.specific},enumerable:!0,configurable:!0}),t.prototype.selectValue=function(e){_.Assert.exists(e),this.selectMultipleValues([e])},t.prototype.selectMultipleValues=function(e){var t=this;_.Assert.exists(e),this.ensureDom(),this.logger.info("Selecting facet value(s)",e),e.forEach(function(e){t.values.get(e).select()}),this.updateQueryStateModel()},t.prototype.deselectValue=function(e){_.Assert.exists(e),this.deselectMultipleValues([e])},t.prototype.hasSelectedValue=function(e){return this.values.hasSelectedValue(e)},t.prototype.deselectMultipleValues=function(e){var t=this;_.Assert.exists(e),this.ensureDom(),this.logger.info("Deselecting facet value(s)",e),e.forEach(function(e){t.values.get(e).deselect()}),this.updateQueryStateModel()},t.prototype.toggleSelectValue=function(e){_.Assert.exists(e),this.ensureDom();var t=this.values.get(e);t.toggleSelect(),this.logger.info("Toggle select facet value",t),this.updateQueryStateModel()},t.prototype.getCaptionForStringValue=function(e){return $.FacetUtils.getDisplayValueFromValueCaption(e,this.options.field,this.options.valueCaption)},t.prototype.showMoreValues=function(e){var t=this;void 0===e&&(e=this.options.numberOfValues),this.ensureDom(),this.logger.info("Show more values"),this.dynamicFacetQueryController.increaseNumberOfValuesToRequest(e),this.triggerNewIsolatedQuery(function(){return t.logAnalyticsFacetShowMoreLess(T.analyticsActionCauseList.dynamicFacetShowMore)})},t.prototype.showLessValues=function(){var e=this;this.ensureDom(),this.logger.info("Show less values"),this.dynamicFacetQueryController.resetNumberOfValuesToRequest(),this.triggerNewIsolatedQuery(function(){return e.logAnalyticsFacetShowMoreLess(T.analyticsActionCauseList.dynamicFacetShowLess)})},t.prototype.reset=function(){this.ensureDom(),this.values.hasActiveValues&&(this.logger.info("Deselect all values"),this.values.clearAll(),this.values.render()),this.enablePreventAutoSelectionFlag(),this.updateAppearance(),this.updateQueryStateModel()},t.prototype.toggleCollapse=function(){this.isCollapsed?this.expand():this.collapse()},t.prototype.expand=function(){if(!this.options.enableCollapse)return this.logger.warn('Calling expand() won\'t do anything on a facet that has the option "enableCollapse" set to "false"');this.isCollapsed&&(this.ensureDom(),this.logger.info("Expand facet values"),this.isCollapsed=!1,this.updateAppearance())},t.prototype.collapse=function(){if(!this.options.enableCollapse)return this.logger.warn('Calling collapse() won\'t do anything on a facet that has the option "enableCollapse" set to "false"');this.isCollapsed||(this.ensureDom(),this.logger.info("Collapse facet values"),this.isCollapsed=!0,this.updateAppearance())},t.prototype.enableFreezeCurrentValuesFlag=function(){this.dynamicFacetQueryController.enableFreezeCurrentValuesFlag()},t.prototype.enableFreezeFacetOrderFlag=function(){this.dynamicFacetQueryController.enableFreezeFacetOrderFlag()},t.prototype.enablePreventAutoSelectionFlag=function(){this.dynamicFacetQueryController.enablePreventAutoSelectionFlag()},t.prototype.scrollToTop=function(){this.options.enableScrollToTop&&F.ResultListUtils.scrollToTop(this.root)},Object.defineProperty(t.prototype,"analyticsFacetState",{get:function(){return this.values.activeValues.map(function(e){return e.analyticsFacetState})},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"basicAnalyticsFacetState",{get:function(){return{field:this.options.field.toString(),id:this.options.id,title:this.options.title,facetType:this.facetType,facetPosition:this.position}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"basicAnalyticsFacetMeta",{get:function(){return{facetField:this.options.field.toString(),facetId:this.options.id,facetTitle:this.options.title}},enumerable:!0,configurable:!0}),t.prototype.logAnalyticsEvent=function(e,t){this.usageAnalytics.logSearchEvent(e,t)},t.prototype.putStateIntoQueryBuilder=function(e){_.Assert.exists(e),this.dynamicFacetQueryController.putFacetIntoQueryBuilder(e)},t.prototype.putStateIntoAnalytics=function(){var e=this.usageAnalytics.getPendingSearchEvent();e&&e.addFacetState(this.analyticsFacetState)},t.prototype.isCurrentlyDisplayed=function(){return u.$$(this.element).isVisible()},Object.defineProperty(t.prototype,"hasActiveValues",{get:function(){return this.values.hasActiveValues},enumerable:!0,configurable:!0}),t.prototype.initQueryEvents=function(){var e=this;this.bind.onRootElement(v.QueryEvents.duringQuery,function(){return e.ensureDom()}),this.bind.onRootElement(v.QueryEvents.doneBuildingQuery,function(t){return e.handleDoneBuildingQuery(t)}),this.bind.onRootElement(v.QueryEvents.deferredQuerySuccess,function(t){return e.handleQuerySuccess(t.results)}),this.bind.onRootElement(v.QueryEvents.queryError,function(){return e.onNoValues()})},t.prototype.initQueryStateEvents=function(){this.includedAttributeId=b.QueryStateModel.getFacetId(this.options.id),this.queryStateModel.registerNewAttribute(this.includedAttributeId,[]),this.bind.onQueryState(w.MODEL_EVENTS.CHANGE,void 0,this.handleQueryStateChanged)},t.prototype.initBreadCrumbEvents=function(){var e=this;this.options.includeInBreadcrumb&&(this.bind.onRootElement(A.BreadcrumbEvents.populateBreadcrumb,function(t){return e.handlePopulateBreadcrumb(t)}),this.bind.onRootElement(A.BreadcrumbEvents.clearBreadcrumb,function(){return e.reset()}))},t.prototype.initValues=function(){this.values=new g.DynamicFacetValues(this,P.DynamicFacetValueCreator)},t.prototype.initComponentStateEvents=function(){var e=b.QueryStateModel.getFacetId(this.options.id);this.componentStateModel.registerComponent(e,this)},t.prototype.initDynamicFacetQueryController=function(){this.dynamicFacetQueryController=new S.DynamicFacetQueryController(this)},t.prototype.handleDoneBuildingQuery=function(e){this.dynamicFacetManager||(_.Assert.exists(e),_.Assert.exists(e.queryBuilder),this.putStateIntoQueryBuilder(e.queryBuilder),this.putStateIntoAnalytics())},t.prototype.handleQuerySuccess=function(e){if(!this.dynamicFacetManager)return C.Utils.isNullOrUndefined(e.facets)?this.notImplementedError():void this.handleQueryResults(e)},t.prototype.handleQueryResults=function(e){var t=a.findIndex(e.facets,{facetId:this.options.id}),n=-1!==t?e.facets[t]:null;this.position=n?t+1:void 0,n?this.onNewValues(n):this.onNoValues(),this.header.hideLoading(),this.updateQueryStateModel(),this.values.render(),this.updateAppearance()},t.prototype.onNewValues=function(e){this.moreValuesAvailable=e.moreValuesAvailable,this.values.createFromResponse(e),this.options.customSort&&this.values.reorderValues(this.options.customSort)},t.prototype.onNoValues=function(){this.moreValuesAvailable=!1,this.values.resetValues()},t.prototype.handleQueryStateChanged=function(e){if(this.listenToQueryStateChange){var t=e.attributes[this.includedAttributeId];t&&this.handleQueryStateChangedIncluded(t)}},t.prototype.handlePopulateBreadcrumb=function(e){if(_.Assert.exists(e),this.values.hasActiveValues){var t=new m.DynamicFacetBreadcrumbs(this);e.breadcrumbs.push({element:t.element})}},t.prototype.initDependsOnManager=function(){var e=this,t={reset:function(){return e.reset()},ref:this};this.dependsOnManager=new I.DependsOnManager(t)},t.prototype.createDom=function(){this.createAndAppendContent(),this.updateAppearance()},t.prototype.createAndAppendContent=function(){this.createAndAppendHeader(),this.createAndAppendSearch(),this.createAndAppendValues()},t.prototype.createAndAppendHeader=function(){var e=this;this.header=new y.DynamicFacetHeader({id:this.options.id,title:this.options.title,enableCollapse:this.options.enableCollapse,clear:function(){return e.clear()},toggleCollapse:function(){return e.toggleCollapse()},collapse:function(){return e.collapse()},expand:function(){return e.expand()}}),this.element.appendChild(this.header.element)},t.prototype.createAndAppendSearch=function(){!1!==this.options.enableFacetSearch&&(this.search=new R.DynamicFacetSearch(this),this.element.appendChild(this.search.element))},t.prototype.createAndAppendValues=function(){this.element.appendChild(this.values.render())},t.prototype.updateQueryStateModel=function(){this.listenToQueryStateChange=!1,this.queryStateModel.set(this.includedAttributeId,this.values.selectedValues),this.listenToQueryStateChange=!0},t.prototype.updateAppearance=function(){this.header.toggleClear(this.values.hasSelectedValues),this.header.toggleCollapse(this.isCollapsed),this.toggleSearchDisplay(),u.$$(this.element).toggleClass("coveo-dynamic-facet-collapsed",this.isCollapsed),u.$$(this.element).toggleClass("coveo-active",this.values.hasSelectedValues),u.$$(this.element).toggleClass("coveo-hidden",!this.values.hasDisplayedValues)},t.prototype.toggleSearchDisplay=function(){if(!1!==this.options.enableFacetSearch)return this.isCollapsed?u.$$(this.search.element).toggleClass("coveo-hidden",!0):void u.$$(this.search.element).toggleClass("coveo-hidden",!this.options.enableFacetSearch&&!this.moreValuesAvailable)},t.prototype.triggerNewQuery=function(e){this.beforeSendingQuery();var t=e?{beforeExecuteQuery:e}:{ignoreWarningSearchEvent:!0};this.queryController.executeQuery(t)},t.prototype.triggerNewIsolatedQuery=function(e){return r(this,void 0,void 0,function(){var t,n;return s(this,function(i){switch(i.label){case 0:this.beforeSendingQuery(),e&&e(),i.label=1;case 1:return i.trys.push([1,3,,4]),[4,this.dynamicFacetQueryController.getQueryResults()];case 2:return t=i.sent(),this.handleQueryResults(t),[3,4];case 3:return n=i.sent(),this.header.hideLoading(),[3,4];case 4:return[2]}})})},t.prototype.beforeSendingQuery=function(){this.header.showLoading()},t.prototype.notImplementedError=function(){this.logger.error("DynamicFacets are not supported by your current search endpoint. Disabling this component."),this.disable(),this.updateAppearance()},t.prototype.verifyCollapsingConfiguration=function(){this.options.collapsedByDefault&&!this.options.enableCollapse&&this.logger.warn('The "collapsedByDefault" option is "true" while the "enableCollapse" is "false"')},t.prototype.logAnalyticsFacetShowMoreLess=function(e){this.usageAnalytics.logCustomEvent(e,this.basicAnalyticsFacetMeta,this.element)},t.prototype.clear=function(){var e=this;this.reset(),this.enableFreezeFacetOrderFlag(),this.scrollToTop(),this.triggerNewQuery(function(){return e.logClearAllToAnalytics()})},t.prototype.logClearAllToAnalytics=function(){this.logAnalyticsEvent(T.analyticsActionCauseList.dynamicFacetClearAll,this.basicAnalyticsFacetMeta)},t.ID="DynamicFacet",t.doExport=function(){return l.exportGlobally({DynamicFacet:t})},t.options=o({},h.ResponsiveFacetOptions,{id:p.ComponentOptions.buildStringOption({postProcessing:function(e,t){void 0===e&&(e="");var n=e.replace(/[^A-Za-z0-9-_@]+/g,"");return C.Utils.isNonEmptyString(n)?n.slice(0,59):t.field.slice(0,59)},section:"CommonOptions"}),title:p.ComponentOptions.buildLocalizedStringOption({localizedString:function(){return x.l("NoTitle")},section:"CommonOptions",priority:10}),field:p.ComponentOptions.buildFieldOption({required:!0,section:"CommonOptions"}),sortCriteria:p.ComponentOptions.buildStringOption({postProcessing:function(e){if(e)return O.isFacetSortCriteria(e)?e:void new D.Logger(e).warn('sortCriteria is not of the the allowed values: "score", "alphanumeric", "occurrences"')},section:"Sorting"}),customSort:p.ComponentOptions.buildListOption({section:"Sorting"}),numberOfValues:p.ComponentOptions.buildNumberOption({min:0,defaultValue:8,section:"CommonOptions"}),enableCollapse:p.ComponentOptions.buildBooleanOption({defaultValue:!0,section:"CommonOptions"}),enableScrollToTop:p.ComponentOptions.buildBooleanOption({defaultValue:!0,section:"CommonOptions"}),enableMoreLess:p.ComponentOptions.buildBooleanOption({defaultValue:!0,section:"CommonOptions"}),enableFacetSearch:p.ComponentOptions.buildBooleanOption({section:"Filtering"}),useLeadingWildcardInFacetSearch:p.ComponentOptions.buildBooleanOption({defaultValue:!0,section:"Filtering",depend:"enableFacetSearch"}),collapsedByDefault:p.ComponentOptions.buildBooleanOption({defaultValue:!1,section:"CommonOptions",depend:"enableCollapse"}),includeInBreadcrumb:p.ComponentOptions.buildBooleanOption({defaultValue:!0,section:"CommonOptions"}),numberOfValuesInBreadcrumb:p.ComponentOptions.buildNumberOption({defaultFunction:function(){return E.DeviceUtils.isMobileDevice()?3:5},min:0,depend:"includeInBreadcrumb",section:"CommonOptions"}),valueCaption:p.ComponentOptions.buildJsonOption({defaultValue:{}}),dependsOn:p.ComponentOptions.buildStringOption({section:"CommonOptions"}),dependsOnCondition:p.ComponentOptions.buildCustomOption(function(){return null},{depend:"dependsOn",section:"CommonOptions"}),injectionDepth:p.ComponentOptions.buildNumberOption({defaultValue:1e3,min:0}),filterFacetCount:p.ComponentOptions.buildBooleanOption({section:"Filtering"})}),t}(c.Component);t.DynamicFacet=N,d.Initialization.registerAutoCreateComponent(N),N.doExport()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(85);t.AdvancedSearchEvents=i.AdvancedSearchEvents;var o=n(56);t.AnalyticsEvents=o.AnalyticsEvents;var r=n(35);t.BreadcrumbEvents=r.BreadcrumbEvents;var s=n(100);t.DebugEvents=s.DebugEvents;var a=n(200);t.DistanceEvents=a.DistanceEvents;var u=n(16);t.InitializationEvents=u.InitializationEvents;var l=n(34);t.OmniboxEvents=l.OmniboxEvents;var c=n(97);t.PreferencesPanelEvents=c.PreferencesPanelEvents;var p=n(11);t.QueryEvents=p.QueryEvents;var d=n(29);t.ResultListEvents=d.ResultListEvents;var h=n(129);t.ResultLayoutEvents=h.ResultLayoutEvents;var f=n(84);t.SearchAlertsEvents=f.SearchAlertsEvents;var m=n(54);t.SettingsEvents=m.SettingsEvents;var y=n(138);t.SliderEvents=y.SliderEvents;var g=n(96);t.StandaloneSearchInterfaceEvents=g.StandaloneSearchInterfaceEvents},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){}return e.startSlide="startSlide",e.duringSlide="duringSlide",e.endSlide="endSlide",e.graphValueSelected="graphValueSelected",e}();t.SliderEvents=i},function(e,t,n){(function(e){!function(t,n){e.exports=n()}(0,function(){"use strict";function t(){return Ai.apply(null,arguments)}function n(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function i(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function o(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(e.hasOwnProperty(t))return!1;return!0}function r(e){return void 0===e}function s(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function a(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function u(e,t){var n,i=[];for(n=0;n<e.length;++n)i.push(t(e[n],n));return i}function l(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function c(e,t){for(var n in t)l(t,n)&&(e[n]=t[n]);return l(t,"toString")&&(e.toString=t.toString),l(t,"valueOf")&&(e.valueOf=t.valueOf),e}function p(e,t,n,i){return Ot(e,t,n,i,!0).utc()}function d(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function h(e){return null==e._pf&&(e._pf=d()),e._pf}function f(e){if(null==e._isValid){var t=h(e),n=Ti.call(t.parsedDateParts,function(e){return null!=e}),i=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n);if(e._strict&&(i=i&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return i;e._isValid=i}return e._isValid}function m(e){var t=p(NaN);return null!=e?c(h(t),e):h(t).userInvalidated=!0,t}function y(e,t){var n,i,o;if(r(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),r(t._i)||(e._i=t._i),r(t._f)||(e._f=t._f),r(t._l)||(e._l=t._l),r(t._strict)||(e._strict=t._strict),r(t._tzm)||(e._tzm=t._tzm),r(t._isUTC)||(e._isUTC=t._isUTC),r(t._offset)||(e._offset=t._offset),r(t._pf)||(e._pf=h(t)),r(t._locale)||(e._locale=t._locale),Ri.length>0)for(n=0;n<Ri.length;n++)i=Ri[n],o=t[i],r(o)||(e[i]=o);return e}function g(e){y(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===Fi&&(Fi=!0,t.updateOffset(this),Fi=!1)}function v(e){return e instanceof g||null!=e&&null!=e._isAMomentObject}function b(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function S(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=b(t)),n}function C(e,t,n){var i,o=Math.min(e.length,t.length),r=Math.abs(e.length-t.length),s=0;for(i=0;i<o;i++)(n&&e[i]!==t[i]||!n&&S(e[i])!==S(t[i]))&&s++;return s+r}function w(e){!1===t.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function _(e,n){var i=!0;return c(function(){if(null!=t.deprecationHandler&&t.deprecationHandler(null,e),i){for(var o,r=[],s=0;s<arguments.length;s++){if(o="","object"==typeof arguments[s]){o+="\n["+s+"] ";for(var a in arguments[0])o+=a+": "+arguments[0][a]+", ";o=o.slice(0,-2)}else o=arguments[s];r.push(o)}w(e+"\nArguments: "+Array.prototype.slice.call(r).join("")+"\n"+(new Error).stack),i=!1}return n.apply(this,arguments)},n)}function O(e,n){null!=t.deprecationHandler&&t.deprecationHandler(e,n),Mi[e]||(w(n),Mi[e]=!0)}function x(e){return e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function E(e){var t,n;for(n in e)t=e[n],x(t)?this[n]=t:this["_"+n]=t;this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function A(e,t){var n,o=c({},e);for(n in t)l(t,n)&&(i(e[n])&&i(t[n])?(o[n]={},c(o[n],e[n]),c(o[n],t[n])):null!=t[n]?o[n]=t[n]:delete o[n]);for(n in e)l(e,n)&&!l(t,n)&&i(e[n])&&(o[n]=c({},o[n]));return o}function T(e){null!=e&&this.set(e)}function R(e,t,n){var i=this._calendar[e]||this._calendar.sameElse;return x(i)?i.call(t,n):i}function F(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.replace(/MMMM|MM|DD|dddd/g,function(e){return e.slice(1)}),this._longDateFormat[e])}function M(){return this._invalidDate}function I(e){return this._ordinal.replace("%d",e)}function P(e,t,n,i){var o=this._relativeTime[n];return x(o)?o(e,t,n,i):o.replace(/%d/i,e)}function D(e,t){var n=this._relativeTime[e>0?"future":"past"];return x(n)?n(t):n.replace(/%s/i,t)}function $(e,t){var n=e.toLowerCase();ki[n]=ki[n+"s"]=ki[t]=e}function N(e){return"string"==typeof e?ki[e]||ki[e.toLowerCase()]:void 0}function k(e){var t,n,i={};for(n in e)l(e,n)&&(t=N(n))&&(i[t]=e[n]);return i}function V(e,t){Vi[e]=t}function L(e){var t=[];for(var n in e)t.push({unit:n,priority:Vi[n]});return t.sort(function(e,t){return e.priority-t.priority}),t}function B(e,t,n){var i=""+Math.abs(e),o=t-i.length;return(e>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,o)).toString().substr(1)+i}function U(e,t,n,i){var o=i;"string"==typeof i&&(o=function(){return this[i]()}),e&&(Qi[e]=o),t&&(Qi[t[0]]=function(){return B(o.apply(this,arguments),t[1],t[2])}),n&&(Qi[n]=function(){return this.localeData().ordinal(o.apply(this,arguments),e)})}function Q(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function j(e){var t,n,i=e.match(Li);for(t=0,n=i.length;t<n;t++)Qi[i[t]]?i[t]=Qi[i[t]]:i[t]=Q(i[t]);return function(t){var o,r="";for(o=0;o<n;o++)r+=x(i[o])?i[o].call(t,e):i[o];return r}}function H(e,t){return e.isValid()?(t=q(t,e.localeData()),Ui[t]=Ui[t]||j(t),Ui[t](e)):e.localeData().invalidDate()}function q(e,t){function n(e){return t.longDateFormat(e)||e}var i=5;for(Bi.lastIndex=0;i>=0&&Bi.test(e);)e=e.replace(Bi,n),Bi.lastIndex=0,i-=1;return e}function z(e,t,n){so[e]=x(t)?t:function(e,i){return e&&n?n:t}}function W(e,t){return l(so,e)?so[e](t._strict,t._locale):new RegExp(G(e))}function G(e){return Y(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,i,o){return t||n||i||o}))}function Y(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function K(e,t){var n,i=t;for("string"==typeof e&&(e=[e]),s(t)&&(i=function(e,n){n[t]=S(e)}),n=0;n<e.length;n++)ao[e[n]]=i}function J(e,t){K(e,function(e,n,i,o){i._w=i._w||{},t(e,i._w,i,o)})}function Z(e,t,n){null!=t&&l(ao,e)&&ao[e](t,n._a,n,e)}function X(e){return ee(e)?366:365}function ee(e){return e%4==0&&e%100!=0||e%400==0}function te(){return ee(this.year())}function ne(e,n){return function(i){return null!=i?(oe(this,e,i),t.updateOffset(this,n),this):ie(this,e)}}function ie(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function oe(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&ee(e.year())&&1===e.month()&&29===e.date()?e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),ue(n,e.month())):e._d["set"+(e._isUTC?"UTC":"")+t](n))}function re(e){return e=N(e),x(this[e])?this[e]():this}function se(e,t){if("object"==typeof e){e=k(e);for(var n=L(e),i=0;i<n.length;i++)this[n[i].unit](e[n[i].unit])}else if(e=N(e),x(this[e]))return this[e](t);return this}function ae(e,t){return(e%t+t)%t}function ue(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=ae(t,12);return e+=(t-n)/12,1===n?ee(e)?29:28:31-n%7%2}function le(e,t){return e?n(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||So).test(t)?"format":"standalone"][e.month()]:n(this._months)?this._months:this._months.standalone}function ce(e,t){return e?n(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[So.test(t)?"format":"standalone"][e.month()]:n(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function pe(e,t,n){var i,o,r,s=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],i=0;i<12;++i)r=p([2e3,i]),this._shortMonthsParse[i]=this.monthsShort(r,"").toLocaleLowerCase(),this._longMonthsParse[i]=this.months(r,"").toLocaleLowerCase();return n?"MMM"===t?(o=vo.call(this._shortMonthsParse,s),-1!==o?o:null):(o=vo.call(this._longMonthsParse,s),-1!==o?o:null):"MMM"===t?-1!==(o=vo.call(this._shortMonthsParse,s))?o:(o=vo.call(this._longMonthsParse,s),-1!==o?o:null):-1!==(o=vo.call(this._longMonthsParse,s))?o:(o=vo.call(this._shortMonthsParse,s),-1!==o?o:null)}function de(e,t,n){var i,o,r;if(this._monthsParseExact)return pe.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(o=p([2e3,i]),n&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(o,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(o,"").replace(".","")+"$","i")),n||this._monthsParse[i]||(r="^"+this.months(o,"")+"|^"+this.monthsShort(o,""),this._monthsParse[i]=new RegExp(r.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[i].test(e))return i;if(n&&"MMM"===t&&this._shortMonthsParse[i].test(e))return i;if(!n&&this._monthsParse[i].test(e))return i}}function he(e,t){var n;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=S(t);else if(t=e.localeData().monthsParse(t),!s(t))return e;return n=Math.min(e.date(),ue(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function fe(e){return null!=e?(he(this,e),t.updateOffset(this,!0),this):ie(this,"Month")}function me(){return ue(this.year(),this.month())}function ye(e){return this._monthsParseExact?(l(this,"_monthsRegex")||ve.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(l(this,"_monthsShortRegex")||(this._monthsShortRegex=_o),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function ge(e){return this._monthsParseExact?(l(this,"_monthsRegex")||ve.call(this),e?this._monthsStrictRegex:this._monthsRegex):(l(this,"_monthsRegex")||(this._monthsRegex=Oo),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function ve(){function e(e,t){return t.length-e.length}var t,n,i=[],o=[],r=[];for(t=0;t<12;t++)n=p([2e3,t]),i.push(this.monthsShort(n,"")),o.push(this.months(n,"")),r.push(this.months(n,"")),r.push(this.monthsShort(n,""));for(i.sort(e),o.sort(e),r.sort(e),t=0;t<12;t++)i[t]=Y(i[t]),o[t]=Y(o[t]);for(t=0;t<24;t++)r[t]=Y(r[t]);this._monthsRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+i.join("|")+")","i")}function be(e,t,n,i,o,r,s){var a=new Date(e,t,n,i,o,r,s);return e<100&&e>=0&&isFinite(a.getFullYear())&&a.setFullYear(e),a}function Se(e){var t=new Date(Date.UTC.apply(null,arguments));return e<100&&e>=0&&isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e),t}function Ce(e,t,n){var i=7+t-n;return-(7+Se(e,0,i).getUTCDay()-t)%7+i-1}function we(e,t,n,i,o){var r,s,a=(7+n-i)%7,u=Ce(e,i,o),l=1+7*(t-1)+a+u;return l<=0?(r=e-1,s=X(r)+l):l>X(e)?(r=e+1,s=l-X(e)):(r=e,s=l),{year:r,dayOfYear:s}}function _e(e,t,n){var i,o,r=Ce(e.year(),t,n),s=Math.floor((e.dayOfYear()-r-1)/7)+1;return s<1?(o=e.year()-1,i=s+Oe(o,t,n)):s>Oe(e.year(),t,n)?(i=s-Oe(e.year(),t,n),o=e.year()+1):(o=e.year(),i=s),{week:i,year:o}}function Oe(e,t,n){var i=Ce(e,t,n),o=Ce(e+1,t,n);return(X(e)-i+o)/7}function xe(e){return _e(e,this._week.dow,this._week.doy).week}function Ee(){return this._week.dow}function Ae(){return this._week.doy}function Te(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function Re(e){var t=_e(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}function Fe(e,t){return"string"!=typeof e?e:isNaN(e)?(e=t.weekdaysParse(e),"number"==typeof e?e:null):parseInt(e,10)}function Me(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Ie(e,t){return e?n(this._weekdays)?this._weekdays[e.day()]:this._weekdays[this._weekdays.isFormat.test(t)?"format":"standalone"][e.day()]:n(this._weekdays)?this._weekdays:this._weekdays.standalone}function Pe(e){return e?this._weekdaysShort[e.day()]:this._weekdaysShort}function De(e){return e?this._weekdaysMin[e.day()]:this._weekdaysMin}function $e(e,t,n){var i,o,r,s=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)r=p([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(r,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(r,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(r,"").toLocaleLowerCase();return n?"dddd"===t?(o=vo.call(this._weekdaysParse,s),-1!==o?o:null):"ddd"===t?(o=vo.call(this._shortWeekdaysParse,s),-1!==o?o:null):(o=vo.call(this._minWeekdaysParse,s),-1!==o?o:null):"dddd"===t?-1!==(o=vo.call(this._weekdaysParse,s))?o:-1!==(o=vo.call(this._shortWeekdaysParse,s))?o:(o=vo.call(this._minWeekdaysParse,s),-1!==o?o:null):"ddd"===t?-1!==(o=vo.call(this._shortWeekdaysParse,s))?o:-1!==(o=vo.call(this._weekdaysParse,s))?o:(o=vo.call(this._minWeekdaysParse,s),-1!==o?o:null):-1!==(o=vo.call(this._minWeekdaysParse,s))?o:-1!==(o=vo.call(this._weekdaysParse,s))?o:(o=vo.call(this._shortWeekdaysParse,s),-1!==o?o:null)}function Ne(e,t,n){var i,o,r;if(this._weekdaysParseExact)return $e.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(o=p([2e3,1]).day(i),n&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(o,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(o,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(o,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[i]||(r="^"+this.weekdays(o,"")+"|^"+this.weekdaysShort(o,"")+"|^"+this.weekdaysMin(o,""),this._weekdaysParse[i]=new RegExp(r.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[i].test(e))return i;if(n&&"ddd"===t&&this._shortWeekdaysParse[i].test(e))return i;if(n&&"dd"===t&&this._minWeekdaysParse[i].test(e))return i;if(!n&&this._weekdaysParse[i].test(e))return i}}function ke(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=Fe(e,this.localeData()),this.add(e-t,"d")):t}function Ve(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")}function Le(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=Me(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function Be(e){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||je.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(l(this,"_weekdaysRegex")||(this._weekdaysRegex=Ro),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Ue(e){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||je.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(l(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Fo),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Qe(e){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||je.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(l(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Mo),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function je(){function e(e,t){return t.length-e.length}var t,n,i,o,r,s=[],a=[],u=[],l=[];for(t=0;t<7;t++)n=p([2e3,1]).day(t),i=this.weekdaysMin(n,""),o=this.weekdaysShort(n,""),r=this.weekdays(n,""),s.push(i),a.push(o),u.push(r),l.push(i),l.push(o),l.push(r);for(s.sort(e),a.sort(e),u.sort(e),l.sort(e),t=0;t<7;t++)a[t]=Y(a[t]),u[t]=Y(u[t]),l[t]=Y(l[t]);this._weekdaysRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+s.join("|")+")","i")}function He(){return this.hours()%12||12}function qe(){return this.hours()||24}function ze(e,t){U(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function We(e,t){return t._meridiemParse}function Ge(e){return"p"===(e+"").toLowerCase().charAt(0)}function Ye(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}function Ke(e){return e?e.toLowerCase().replace("_","-"):e}function Je(e){for(var t,n,i,o,r=0;r<e.length;){for(o=Ke(e[r]).split("-"),t=o.length,n=Ke(e[r+1]),n=n?n.split("-"):null;t>0;){if(i=Ze(o.slice(0,t).join("-")))return i;if(n&&n.length>=t&&C(o,n,!0)>=t-1)break;t--}r++}return Io}function Ze(t){var n=null;if(!No[t]&&void 0!==e&&e&&e.exports)try{n=Io._abbr;!function(){var e=new Error('Cannot find module "./locale"');throw e.code="MODULE_NOT_FOUND",e}(),Xe(n)}catch(e){}return No[t]}function Xe(e,t){var n;return e&&(n=r(t)?nt(e):et(e,t),n?Io=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Io._abbr}function et(e,t){if(null!==t){var n,i=$o;if(t.abbr=e,null!=No[e])O("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),i=No[e]._config;else if(null!=t.parentLocale)if(null!=No[t.parentLocale])i=No[t.parentLocale]._config;else{if(null==(n=Ze(t.parentLocale)))return ko[t.parentLocale]||(ko[t.parentLocale]=[]),ko[t.parentLocale].push({name:e,config:t}),null;i=n._config}return No[e]=new T(A(i,t)),ko[e]&&ko[e].forEach(function(e){et(e.name,e.config)}),Xe(e),No[e]}return delete No[e],null}function tt(e,t){if(null!=t){var n,i,o=$o;i=Ze(e),null!=i&&(o=i._config),t=A(o,t),n=new T(t),n.parentLocale=No[e],No[e]=n,Xe(e)}else null!=No[e]&&(null!=No[e].parentLocale?No[e]=No[e].parentLocale:null!=No[e]&&delete No[e]);return No[e]}function nt(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Io;if(!n(e)){if(t=Ze(e))return t;e=[e]}return Je(e)}function it(){return Ii(No)}function ot(e){var t,n=e._a;return n&&-2===h(e).overflow&&(t=n[lo]<0||n[lo]>11?lo:n[co]<1||n[co]>ue(n[uo],n[lo])?co:n[po]<0||n[po]>24||24===n[po]&&(0!==n[ho]||0!==n[fo]||0!==n[mo])?po:n[ho]<0||n[ho]>59?ho:n[fo]<0||n[fo]>59?fo:n[mo]<0||n[mo]>999?mo:-1,h(e)._overflowDayOfYear&&(t<uo||t>co)&&(t=co),h(e)._overflowWeeks&&-1===t&&(t=yo),h(e)._overflowWeekday&&-1===t&&(t=go),h(e).overflow=t),e}function rt(e,t,n){return null!=e?e:null!=t?t:n}function st(e){var n=new Date(t.now());return e._useUTC?[n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate()]:[n.getFullYear(),n.getMonth(),n.getDate()]}function at(e){var t,n,i,o,r,s=[];if(!e._d){for(i=st(e),e._w&&null==e._a[co]&&null==e._a[lo]&&ut(e),null!=e._dayOfYear&&(r=rt(e._a[uo],i[uo]),(e._dayOfYear>X(r)||0===e._dayOfYear)&&(h(e)._overflowDayOfYear=!0),n=Se(r,0,e._dayOfYear),e._a[lo]=n.getUTCMonth(),e._a[co]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=s[t]=i[t];for(;t<7;t++)e._a[t]=s[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[po]&&0===e._a[ho]&&0===e._a[fo]&&0===e._a[mo]&&(e._nextDay=!0,e._a[po]=0),e._d=(e._useUTC?Se:be).apply(null,s),o=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[po]=24),e._w&&void 0!==e._w.d&&e._w.d!==o&&(h(e).weekdayMismatch=!0)}}function ut(e){var t,n,i,o,r,s,a,u;if(t=e._w,null!=t.GG||null!=t.W||null!=t.E)r=1,s=4,n=rt(t.GG,e._a[uo],_e(xt(),1,4).year),i=rt(t.W,1),((o=rt(t.E,1))<1||o>7)&&(u=!0);else{r=e._locale._week.dow,s=e._locale._week.doy;var l=_e(xt(),r,s);n=rt(t.gg,e._a[uo],l.year),i=rt(t.w,l.week),null!=t.d?((o=t.d)<0||o>6)&&(u=!0):null!=t.e?(o=t.e+r,(t.e<0||t.e>6)&&(u=!0)):o=r}i<1||i>Oe(n,r,s)?h(e)._overflowWeeks=!0:null!=u?h(e)._overflowWeekday=!0:(a=we(n,i,o,r,s),e._a[uo]=a.year,e._dayOfYear=a.dayOfYear)}function lt(e){var t,n,i,o,r,s,a=e._i,u=Vo.exec(a)||Lo.exec(a);if(u){for(h(e).iso=!0,t=0,n=Uo.length;t<n;t++)if(Uo[t][1].exec(u[1])){o=Uo[t][0],i=!1!==Uo[t][2];break}if(null==o)return void(e._isValid=!1);if(u[3]){for(t=0,n=Qo.length;t<n;t++)if(Qo[t][1].exec(u[3])){r=(u[2]||" ")+Qo[t][0];break}if(null==r)return void(e._isValid=!1)}if(!i&&null!=r)return void(e._isValid=!1);if(u[4]){if(!Bo.exec(u[4]))return void(e._isValid=!1);s="Z"}e._f=o+(r||"")+(s||""),gt(e)}else e._isValid=!1}function ct(e,t,n,i,o,r){var s=[pt(e),wo.indexOf(t),parseInt(n,10),parseInt(i,10),parseInt(o,10)];return r&&s.push(parseInt(r,10)),s}function pt(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function dt(e){return e.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function ht(e,t,n){if(e){if(Ao.indexOf(e)!==new Date(t[0],t[1],t[2]).getDay())return h(n).weekdayMismatch=!0,n._isValid=!1,!1}return!0}function ft(e,t,n){if(e)return qo[e];if(t)return 0;var i=parseInt(n,10),o=i%100;return(i-o)/100*60+o}function mt(e){var t=Ho.exec(dt(e._i));if(t){var n=ct(t[4],t[3],t[2],t[5],t[6],t[7]);if(!ht(t[1],n,e))return;e._a=n,e._tzm=ft(t[8],t[9],t[10]),e._d=Se.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),h(e).rfc2822=!0}else e._isValid=!1}function yt(e){var n=jo.exec(e._i);if(null!==n)return void(e._d=new Date(+n[1]));lt(e),!1===e._isValid&&(delete e._isValid,mt(e),!1===e._isValid&&(delete e._isValid,t.createFromInputFallback(e)))}function gt(e){if(e._f===t.ISO_8601)return void lt(e);if(e._f===t.RFC_2822)return void mt(e);e._a=[],h(e).empty=!0;var n,i,o,r,s,a=""+e._i,u=a.length,l=0;for(o=q(e._f,e._locale).match(Li)||[],n=0;n<o.length;n++)r=o[n],i=(a.match(W(r,e))||[])[0],i&&(s=a.substr(0,a.indexOf(i)),s.length>0&&h(e).unusedInput.push(s),a=a.slice(a.indexOf(i)+i.length),l+=i.length),Qi[r]?(i?h(e).empty=!1:h(e).unusedTokens.push(r),Z(r,i,e)):e._strict&&!i&&h(e).unusedTokens.push(r);h(e).charsLeftOver=u-l,a.length>0&&h(e).unusedInput.push(a),e._a[po]<=12&&!0===h(e).bigHour&&e._a[po]>0&&(h(e).bigHour=void 0),h(e).parsedDateParts=e._a.slice(0),h(e).meridiem=e._meridiem,e._a[po]=vt(e._locale,e._a[po],e._meridiem),at(e),ot(e)}function vt(e,t,n){var i;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?(i=e.isPM(n),i&&t<12&&(t+=12),i||12!==t||(t=0),t):t}function bt(e){var t,n,i,o,r;if(0===e._f.length)return h(e).invalidFormat=!0,void(e._d=new Date(NaN));for(o=0;o<e._f.length;o++)r=0,t=y({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[o],gt(t),f(t)&&(r+=h(t).charsLeftOver,r+=10*h(t).unusedTokens.length,h(t).score=r,(null==i||r<i)&&(i=r,n=t));c(e,n||t)}function St(e){if(!e._d){var t=k(e._i);e._a=u([t.year,t.month,t.day||t.date,t.hour,t.minute,t.second,t.millisecond],function(e){return e&&parseInt(e,10)}),at(e)}}function Ct(e){var t=new g(ot(wt(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function wt(e){var t=e._i,i=e._f;return e._locale=e._locale||nt(e._l),null===t||void 0===i&&""===t?m({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),v(t)?new g(ot(t)):(a(t)?e._d=t:n(i)?bt(e):i?gt(e):_t(e),f(e)||(e._d=null),e))}function _t(e){var o=e._i;r(o)?e._d=new Date(t.now()):a(o)?e._d=new Date(o.valueOf()):"string"==typeof o?yt(e):n(o)?(e._a=u(o.slice(0),function(e){return parseInt(e,10)}),at(e)):i(o)?St(e):s(o)?e._d=new Date(o):t.createFromInputFallback(e)}function Ot(e,t,r,s,a){var u={};return!0!==r&&!1!==r||(s=r,r=void 0),(i(e)&&o(e)||n(e)&&0===e.length)&&(e=void 0),u._isAMomentObject=!0,u._useUTC=u._isUTC=a,u._l=r,u._i=e,u._f=t,u._strict=s,Ct(u)}function xt(e,t,n,i){return Ot(e,t,n,i,!1)}function Et(e,t){var i,o;if(1===t.length&&n(t[0])&&(t=t[0]),!t.length)return xt();for(i=t[0],o=1;o<t.length;++o)t[o].isValid()&&!t[o][e](i)||(i=t[o]);return i}function At(){return Et("isBefore",[].slice.call(arguments,0))}function Tt(){return Et("isAfter",[].slice.call(arguments,0))}function Rt(e){for(var t in e)if(-1===vo.call(Yo,t)||null!=e[t]&&isNaN(e[t]))return!1;for(var n=!1,i=0;i<Yo.length;++i)if(e[Yo[i]]){if(n)return!1;parseFloat(e[Yo[i]])!==S(e[Yo[i]])&&(n=!0)}return!0}function Ft(){return this._isValid}function Mt(){return Kt(NaN)}function It(e){var t=k(e),n=t.year||0,i=t.quarter||0,o=t.month||0,r=t.week||0,s=t.day||0,a=t.hour||0,u=t.minute||0,l=t.second||0,c=t.millisecond||0;this._isValid=Rt(t),this._milliseconds=+c+1e3*l+6e4*u+1e3*a*60*60,this._days=+s+7*r,this._months=+o+3*i+12*n,this._data={},this._locale=nt(),this._bubble()}function Pt(e){return e instanceof It}function Dt(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function $t(e,t){U(e,0,0,function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+B(~~(e/60),2)+t+B(~~e%60,2)})}function Nt(e,t){var n=(t||"").match(e);if(null===n)return null;var i=n[n.length-1]||[],o=(i+"").match(Ko)||["-",0,0],r=60*o[1]+S(o[2]);return 0===r?0:"+"===o[0]?r:-r}function kt(e,n){var i,o;return n._isUTC?(i=n.clone(),o=(v(e)||a(e)?e.valueOf():xt(e).valueOf())-i.valueOf(),i._d.setTime(i._d.valueOf()+o),t.updateOffset(i,!1),i):xt(e).local()}function Vt(e){return 15*-Math.round(e._d.getTimezoneOffset()/15)}function Lt(e,n,i){var o,r=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=Nt(io,e)))return this}else Math.abs(e)<16&&!i&&(e*=60);return!this._isUTC&&n&&(o=Vt(this)),this._offset=e,this._isUTC=!0,null!=o&&this.add(o,"m"),r!==e&&(!n||this._changeInProgress?tn(this,Kt(e-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,t.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?r:Vt(this)}function Bt(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function Ut(e){return this.utcOffset(0,e)}function Qt(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Vt(this),"m")),this}function jt(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=Nt(no,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this}function Ht(e){return!!this.isValid()&&(e=e?xt(e).utcOffset():0,(this.utcOffset()-e)%60==0)}function qt(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function zt(){if(!r(this._isDSTShifted))return this._isDSTShifted;var e={};if(y(e,this),e=wt(e),e._a){var t=e._isUTC?p(e._a):xt(e._a);this._isDSTShifted=this.isValid()&&C(e._a,t.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}function Wt(){return!!this.isValid()&&!this._isUTC}function Gt(){return!!this.isValid()&&this._isUTC}function Yt(){return!!this.isValid()&&(this._isUTC&&0===this._offset)}function Kt(e,t){var n,i,o,r=e,a=null;return Pt(e)?r={ms:e._milliseconds,d:e._days,M:e._months}:s(e)?(r={},t?r[t]=e:r.milliseconds=e):(a=Jo.exec(e))?(n="-"===a[1]?-1:1,r={y:0,d:S(a[co])*n,h:S(a[po])*n,m:S(a[ho])*n,s:S(a[fo])*n,ms:S(Dt(1e3*a[mo]))*n}):(a=Zo.exec(e))?(n="-"===a[1]?-1:(a[1],1),r={y:Jt(a[2],n),M:Jt(a[3],n),w:Jt(a[4],n),d:Jt(a[5],n),h:Jt(a[6],n),m:Jt(a[7],n),s:Jt(a[8],n)}):null==r?r={}:"object"==typeof r&&("from"in r||"to"in r)&&(o=Xt(xt(r.from),xt(r.to)),r={},r.ms=o.milliseconds,r.M=o.months),i=new It(r),Pt(e)&&l(e,"_locale")&&(i._locale=e._locale),i}function Jt(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Zt(e,t){var n={milliseconds:0,months:0};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Xt(e,t){var n;return e.isValid()&&t.isValid()?(t=kt(t,e),e.isBefore(t)?n=Zt(e,t):(n=Zt(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function en(e,t){return function(n,i){var o,r;return null===i||isNaN(+i)||(O(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),r=n,n=i,i=r),n="string"==typeof n?+n:n,o=Kt(n,i),tn(this,o,e),this}}function tn(e,n,i,o){var r=n._milliseconds,s=Dt(n._days),a=Dt(n._months);e.isValid()&&(o=null==o||o,a&&he(e,ie(e,"Month")+a*i),s&&oe(e,"Date",ie(e,"Date")+s*i),r&&e._d.setTime(e._d.valueOf()+r*i),o&&t.updateOffset(e,s||a))}function nn(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function on(e,n){var i=e||xt(),o=kt(i,this).startOf("day"),r=t.calendarFormat(this,o)||"sameElse",s=n&&(x(n[r])?n[r].call(this,i):n[r]);return this.format(s||this.localeData().calendar(r,this,xt(i)))}function rn(){return new g(this)}function sn(e,t){var n=v(e)?e:xt(e);return!(!this.isValid()||!n.isValid())&&(t=N(r(t)?"millisecond":t),"millisecond"===t?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())}function an(e,t){var n=v(e)?e:xt(e);return!(!this.isValid()||!n.isValid())&&(t=N(r(t)?"millisecond":t),"millisecond"===t?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())}function un(e,t,n,i){return i=i||"()",("("===i[0]?this.isAfter(e,n):!this.isBefore(e,n))&&(")"===i[1]?this.isBefore(t,n):!this.isAfter(t,n))}function ln(e,t){var n,i=v(e)?e:xt(e);return!(!this.isValid()||!i.isValid())&&(t=N(t||"millisecond"),"millisecond"===t?this.valueOf()===i.valueOf():(n=i.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))}function cn(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function pn(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function dn(e,t,n){var i,o,r;if(!this.isValid())return NaN;if(i=kt(e,this),!i.isValid())return NaN;switch(o=6e4*(i.utcOffset()-this.utcOffset()),t=N(t)){case"year":r=hn(this,i)/12;break;case"month":r=hn(this,i);break;case"quarter":r=hn(this,i)/3;break;case"second":r=(this-i)/1e3;break;case"minute":r=(this-i)/6e4;break;case"hour":r=(this-i)/36e5;break;case"day":r=(this-i-o)/864e5;break;case"week":r=(this-i-o)/6048e5;break;default:r=this-i}return n?r:b(r)}function hn(e,t){var n,i,o=12*(t.year()-e.year())+(t.month()-e.month()),r=e.clone().add(o,"months");return t-r<0?(n=e.clone().add(o-1,"months"),i=(t-r)/(r-n)):(n=e.clone().add(o+1,"months"),i=(t-r)/(n-r)),-(o+i)||0}function fn(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function mn(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?H(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):x(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",H(n,"Z")):H(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function yn(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="";this.isLocal()||(e=0===this.utcOffset()?"moment.utc":"moment.parseZone",t="Z");var n="["+e+'("]',i=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",o=t+'[")]';return this.format(n+i+"-MM-DD[T]HH:mm:ss.SSS"+o)}function gn(e){e||(e=this.isUtc()?t.defaultFormatUtc:t.defaultFormat);var n=H(this,e);return this.localeData().postformat(n)}function vn(e,t){return this.isValid()&&(v(e)&&e.isValid()||xt(e).isValid())?Kt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function bn(e){return this.from(xt(),e)}function Sn(e,t){return this.isValid()&&(v(e)&&e.isValid()||xt(e).isValid())?Kt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Cn(e){return this.to(xt(),e)}function wn(e){var t;return void 0===e?this._locale._abbr:(t=nt(e),null!=t&&(this._locale=t),this)}function _n(){return this._locale}function On(e){switch(e=N(e)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":case"date":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===e&&this.weekday(0),"isoWeek"===e&&this.isoWeekday(1),"quarter"===e&&this.month(3*Math.floor(this.month()/3)),this}function xn(e){return void 0===(e=N(e))||"millisecond"===e?this:("date"===e&&(e="day"),this.startOf(e).add(1,"isoWeek"===e?"week":e).subtract(1,"ms"))}function En(){return this._d.valueOf()-6e4*(this._offset||0)}function An(){return Math.floor(this.valueOf()/1e3)}function Tn(){return new Date(this.valueOf())}function Rn(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function Fn(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function Mn(){return this.isValid()?this.toISOString():null}function In(){return f(this)}function Pn(){return c({},h(this))}function Dn(){return h(this).overflow}function $n(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function Nn(e,t){U(0,[e,e.length],0,t)}function kn(e){return Un.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function Vn(e){return Un.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function Ln(){return Oe(this.year(),1,4)}function Bn(){var e=this.localeData()._week;return Oe(this.year(),e.dow,e.doy)}function Un(e,t,n,i,o){var r;return null==e?_e(this,i,o).year:(r=Oe(e,i,o),t>r&&(t=r),Qn.call(this,e,t,n,i,o))}function Qn(e,t,n,i,o){var r=we(e,t,n,i,o),s=Se(r.year,0,r.dayOfYear);return this.year(s.getUTCFullYear()),this.month(s.getUTCMonth()),this.date(s.getUTCDate()),this}function jn(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}function Hn(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")}function qn(e,t){t[mo]=S(1e3*("0."+e))}function zn(){return this._isUTC?"UTC":""}function Wn(){return this._isUTC?"Coordinated Universal Time":""}function Gn(e){return xt(1e3*e)}function Yn(){return xt.apply(null,arguments).parseZone()}function Kn(e){return e}function Jn(e,t,n,i){var o=nt(),r=p().set(i,t);return o[n](r,e)}function Zn(e,t,n){if(s(e)&&(t=e,e=void 0),e=e||"",null!=t)return Jn(e,t,n,"month");var i,o=[];for(i=0;i<12;i++)o[i]=Jn(e,i,n,"month");return o}function Xn(e,t,n,i){"boolean"==typeof e?(s(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,s(t)&&(n=t,t=void 0),t=t||"");var o=nt(),r=e?o._week.dow:0;if(null!=n)return Jn(t,(n+r)%7,i,"day");var a,u=[];for(a=0;a<7;a++)u[a]=Jn(t,(a+r)%7,i,"day");return u}function ei(e,t){return Zn(e,t,"months")}function ti(e,t){return Zn(e,t,"monthsShort")}function ni(e,t,n){return Xn(e,t,n,"weekdays")}function ii(e,t,n){return Xn(e,t,n,"weekdaysShort")}function oi(e,t,n){return Xn(e,t,n,"weekdaysMin")}function ri(){var e=this._data;return this._milliseconds=lr(this._milliseconds),this._days=lr(this._days),this._months=lr(this._months),e.milliseconds=lr(e.milliseconds),e.seconds=lr(e.seconds),e.minutes=lr(e.minutes),e.hours=lr(e.hours),e.months=lr(e.months),e.years=lr(e.years),this}function si(e,t,n,i){var o=Kt(t,n);return e._milliseconds+=i*o._milliseconds,e._days+=i*o._days,e._months+=i*o._months,e._bubble()}function ai(e,t){return si(this,e,t,1)}function ui(e,t){return si(this,e,t,-1)}function li(e){return e<0?Math.floor(e):Math.ceil(e)}function ci(){var e,t,n,i,o,r=this._milliseconds,s=this._days,a=this._months,u=this._data;return r>=0&&s>=0&&a>=0||r<=0&&s<=0&&a<=0||(r+=864e5*li(di(a)+s),s=0,a=0),u.milliseconds=r%1e3,e=b(r/1e3),u.seconds=e%60,t=b(e/60),u.minutes=t%60,n=b(t/60),u.hours=n%24,s+=b(n/24),o=b(pi(s)),a+=o,s-=li(di(o)),i=b(a/12),a%=12,u.days=s,u.months=a,u.years=i,this}function pi(e){return 4800*e/146097}function di(e){return 146097*e/4800}function hi(e){if(!this.isValid())return NaN;var t,n,i=this._milliseconds;if("month"===(e=N(e))||"year"===e)return t=this._days+i/864e5,n=this._months+pi(t),"month"===e?n:n/12;switch(t=this._days+Math.round(di(this._months)),e){case"week":return t/7+i/6048e5;case"day":return t+i/864e5;case"hour":return 24*t+i/36e5;case"minute":return 1440*t+i/6e4;case"second":return 86400*t+i/1e3;case"millisecond":return Math.floor(864e5*t)+i;default:throw new Error("Unknown unit "+e)}}function fi(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*S(this._months/12):NaN}function mi(e){return function(){return this.as(e)}}function yi(){return Kt(this)}function gi(e){return e=N(e),this.isValid()?this[e+"s"]():NaN}function vi(e){return function(){return this.isValid()?this._data[e]:NaN}}function bi(){return b(this.days()/7)}function Si(e,t,n,i,o){return o.relativeTime(t||1,!!n,e,i)}function Ci(e,t,n){var i=Kt(e).abs(),o=xr(i.as("s")),r=xr(i.as("m")),s=xr(i.as("h")),a=xr(i.as("d")),u=xr(i.as("M")),l=xr(i.as("y")),c=o<=Er.ss&&["s",o]||o<Er.s&&["ss",o]||r<=1&&["m"]||r<Er.m&&["mm",r]||s<=1&&["h"]||s<Er.h&&["hh",s]||a<=1&&["d"]||a<Er.d&&["dd",a]||u<=1&&["M"]||u<Er.M&&["MM",u]||l<=1&&["y"]||["yy",l];return c[2]=t,c[3]=+e>0,c[4]=n,Si.apply(null,c)}function wi(e){return void 0===e?xr:"function"==typeof e&&(xr=e,!0)}function _i(e,t){return void 0!==Er[e]&&(void 0===t?Er[e]:(Er[e]=t,"s"===e&&(Er.ss=t-1),!0))}function Oi(e){if(!this.isValid())return this.localeData().invalidDate();var t=this.localeData(),n=Ci(this,!e,t);return e&&(n=t.pastFuture(+this,n)),t.postformat(n)}function xi(e){return(e>0)-(e<0)||+e}function Ei(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,i=Ar(this._milliseconds)/1e3,o=Ar(this._days),r=Ar(this._months);e=b(i/60),t=b(e/60),i%=60,e%=60,n=b(r/12),r%=12;var s=n,a=r,u=o,l=t,c=e,p=i?i.toFixed(3).replace(/\.?0+$/,""):"",d=this.asSeconds();if(!d)return"P0D";var h=d<0?"-":"",f=xi(this._months)!==xi(d)?"-":"",m=xi(this._days)!==xi(d)?"-":"",y=xi(this._milliseconds)!==xi(d)?"-":"";return h+"P"+(s?f+s+"Y":"")+(a?f+a+"M":"")+(u?m+u+"D":"")+(l||c||p?"T":"")+(l?y+l+"H":"")+(c?y+c+"M":"")+(p?y+p+"S":"")}var Ai,Ti;Ti=Array.prototype.some?Array.prototype.some:function(e){for(var t=Object(this),n=t.length>>>0,i=0;i<n;i++)if(i in t&&e.call(this,t[i],i,t))return!0;return!1};var Ri=t.momentProperties=[],Fi=!1,Mi={};t.suppressDeprecationWarnings=!1,t.deprecationHandler=null;var Ii;Ii=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)l(e,t)&&n.push(t);return n};var Pi={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},Di={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},$i=/\d{1,2}/,Ni={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},ki={},Vi={},Li=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Bi=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Ui={},Qi={},ji=/\d/,Hi=/\d\d/,qi=/\d{3}/,zi=/\d{4}/,Wi=/[+-]?\d{6}/,Gi=/\d\d?/,Yi=/\d\d\d\d?/,Ki=/\d\d\d\d\d\d?/,Ji=/\d{1,3}/,Zi=/\d{1,4}/,Xi=/[+-]?\d{1,6}/,eo=/\d+/,to=/[+-]?\d+/,no=/Z|[+-]\d\d:?\d\d/gi,io=/Z|[+-]\d\d(?::?\d\d)?/gi,oo=/[+-]?\d+(\.\d{1,3})?/,ro=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,so={},ao={},uo=0,lo=1,co=2,po=3,ho=4,fo=5,mo=6,yo=7,go=8;U("Y",0,0,function(){var e=this.year();return e<=9999?""+e:"+"+e}),U(0,["YY",2],0,function(){return this.year()%100}),U(0,["YYYY",4],0,"year"),U(0,["YYYYY",5],0,"year"),U(0,["YYYYYY",6,!0],0,"year"),$("year","y"),V("year",1),z("Y",to),z("YY",Gi,Hi),z("YYYY",Zi,zi),z("YYYYY",Xi,Wi),z("YYYYYY",Xi,Wi),K(["YYYYY","YYYYYY"],uo),K("YYYY",function(e,n){n[uo]=2===e.length?t.parseTwoDigitYear(e):S(e)}),K("YY",function(e,n){n[uo]=t.parseTwoDigitYear(e)}),K("Y",function(e,t){t[uo]=parseInt(e,10)}),t.parseTwoDigitYear=function(e){return S(e)+(S(e)>68?1900:2e3)};var vo,bo=ne("FullYear",!0);vo=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},U("M",["MM",2],"Mo",function(){return this.month()+1}),U("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),U("MMMM",0,0,function(e){return this.localeData().months(this,e)}),$("month","M"),V("month",8),z("M",Gi),z("MM",Gi,Hi),z("MMM",function(e,t){return t.monthsShortRegex(e)}),z("MMMM",function(e,t){return t.monthsRegex(e)}),K(["M","MM"],function(e,t){t[lo]=S(e)-1}),K(["MMM","MMMM"],function(e,t,n,i){var o=n._locale.monthsParse(e,i,n._strict);null!=o?t[lo]=o:h(n).invalidMonth=e});var So=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Co="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),wo="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),_o=ro,Oo=ro;U("w",["ww",2],"wo","week"),U("W",["WW",2],"Wo","isoWeek"),$("week","w"),$("isoWeek","W"),V("week",5),V("isoWeek",5),z("w",Gi),z("ww",Gi,Hi),z("W",Gi),z("WW",Gi,Hi),J(["w","ww","W","WW"],function(e,t,n,i){t[i.substr(0,1)]=S(e)});var xo={dow:0,doy:6};U("d",0,"do","day"),U("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),U("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),U("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),U("e",0,0,"weekday"),U("E",0,0,"isoWeekday"),$("day","d"),$("weekday","e"),$("isoWeekday","E"),V("day",11),V("weekday",11),V("isoWeekday",11),z("d",Gi),z("e",Gi),z("E",Gi),z("dd",function(e,t){return t.weekdaysMinRegex(e)}),z("ddd",function(e,t){return t.weekdaysShortRegex(e)}),z("dddd",function(e,t){return t.weekdaysRegex(e)}),J(["dd","ddd","dddd"],function(e,t,n,i){var o=n._locale.weekdaysParse(e,i,n._strict);null!=o?t.d=o:h(n).invalidWeekday=e}),J(["d","e","E"],function(e,t,n,i){t[i]=S(e)});var Eo="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ao="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),To="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ro=ro,Fo=ro,Mo=ro;U("H",["HH",2],0,"hour"),U("h",["hh",2],0,He),U("k",["kk",2],0,qe),U("hmm",0,0,function(){return""+He.apply(this)+B(this.minutes(),2)}),U("hmmss",0,0,function(){return""+He.apply(this)+B(this.minutes(),2)+B(this.seconds(),2)}),U("Hmm",0,0,function(){return""+this.hours()+B(this.minutes(),2)}),U("Hmmss",0,0,function(){return""+this.hours()+B(this.minutes(),2)+B(this.seconds(),2)}),ze("a",!0),ze("A",!1),$("hour","h"),V("hour",13),z("a",We),z("A",We),z("H",Gi),z("h",Gi),z("k",Gi),z("HH",Gi,Hi),z("hh",Gi,Hi),z("kk",Gi,Hi),z("hmm",Yi),z("hmmss",Ki),z("Hmm",Yi),z("Hmmss",Ki),K(["H","HH"],po),K(["k","kk"],function(e,t,n){var i=S(e);t[po]=24===i?0:i}),K(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),K(["h","hh"],function(e,t,n){t[po]=S(e),h(n).bigHour=!0}),K("hmm",function(e,t,n){var i=e.length-2;t[po]=S(e.substr(0,i)),t[ho]=S(e.substr(i)),h(n).bigHour=!0}),K("hmmss",function(e,t,n){var i=e.length-4,o=e.length-2;t[po]=S(e.substr(0,i)),t[ho]=S(e.substr(i,2)),t[fo]=S(e.substr(o)),h(n).bigHour=!0}),K("Hmm",function(e,t,n){var i=e.length-2;t[po]=S(e.substr(0,i)),t[ho]=S(e.substr(i))}),K("Hmmss",function(e,t,n){var i=e.length-4,o=e.length-2;t[po]=S(e.substr(0,i)),t[ho]=S(e.substr(i,2)),t[fo]=S(e.substr(o))});var Io,Po=/[ap]\.?m?\.?/i,Do=ne("Hours",!0),$o={calendar:Pi,longDateFormat:Di,invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:$i,relativeTime:Ni,months:Co,monthsShort:wo,week:xo,weekdays:Eo,weekdaysMin:To,weekdaysShort:Ao,meridiemParse:Po},No={},ko={},Vo=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Lo=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Bo=/Z|[+-]\d\d(?::?\d\d)?/,Uo=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],Qo=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],jo=/^\/?Date\((\-?\d+)/i,Ho=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,qo={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};t.createFromInputFallback=_("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),t.ISO_8601=function(){},t.RFC_2822=function(){};var zo=_("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=xt.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:m()}),Wo=_("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=xt.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:m()}),Go=function(){return Date.now?Date.now():+new Date},Yo=["year","quarter","month","week","day","hour","minute","second","millisecond"];$t("Z",":"),$t("ZZ",""),z("Z",io),z("ZZ",io),K(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=Nt(io,e)});var Ko=/([\+\-]|\d\d)/gi;t.updateOffset=function(){};var Jo=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,Zo=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;Kt.fn=It.prototype,Kt.invalid=Mt;var Xo=en(1,"add"),er=en(-1,"subtract");t.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",t.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var tr=_("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});U(0,["gg",2],0,function(){return this.weekYear()%100}),U(0,["GG",2],0,function(){return this.isoWeekYear()%100}),Nn("gggg","weekYear"),Nn("ggggg","weekYear"),Nn("GGGG","isoWeekYear"),Nn("GGGGG","isoWeekYear"),$("weekYear","gg"),$("isoWeekYear","GG"),V("weekYear",1),V("isoWeekYear",1),z("G",to),z("g",to),z("GG",Gi,Hi),z("gg",Gi,Hi),z("GGGG",Zi,zi),z("gggg",Zi,zi),z("GGGGG",Xi,Wi),z("ggggg",Xi,Wi),J(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,i){t[i.substr(0,2)]=S(e)}),J(["gg","GG"],function(e,n,i,o){n[o]=t.parseTwoDigitYear(e)}),U("Q",0,"Qo","quarter"),$("quarter","Q"),V("quarter",7),z("Q",ji),K("Q",function(e,t){t[lo]=3*(S(e)-1)}),U("D",["DD",2],"Do","date"),$("date","D"),V("date",9),z("D",Gi),z("DD",Gi,Hi),z("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),K(["D","DD"],co),K("Do",function(e,t){t[co]=S(e.match(Gi)[0])});var nr=ne("Date",!0);U("DDD",["DDDD",3],"DDDo","dayOfYear"),$("dayOfYear","DDD"),V("dayOfYear",4),z("DDD",Ji),z("DDDD",qi),K(["DDD","DDDD"],function(e,t,n){n._dayOfYear=S(e)}),U("m",["mm",2],0,"minute"),$("minute","m"),V("minute",14),z("m",Gi),z("mm",Gi,Hi),K(["m","mm"],ho);var ir=ne("Minutes",!1);U("s",["ss",2],0,"second"),$("second","s"),V("second",15),z("s",Gi),z("ss",Gi,Hi),K(["s","ss"],fo);var or=ne("Seconds",!1);U("S",0,0,function(){return~~(this.millisecond()/100)}),U(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),U(0,["SSS",3],0,"millisecond"),U(0,["SSSS",4],0,function(){return 10*this.millisecond()}),U(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),U(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),U(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),U(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),U(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),$("millisecond","ms"),V("millisecond",16),z("S",Ji,ji),z("SS",Ji,Hi),z("SSS",Ji,qi);var rr;for(rr="SSSS";rr.length<=9;rr+="S")z(rr,eo);for(rr="S";rr.length<=9;rr+="S")K(rr,qn);var sr=ne("Milliseconds",!1);U("z",0,0,"zoneAbbr"),U("zz",0,0,"zoneName");var ar=g.prototype;ar.add=Xo,ar.calendar=on,ar.clone=rn,ar.diff=dn,ar.endOf=xn,ar.format=gn,ar.from=vn,ar.fromNow=bn,ar.to=Sn,ar.toNow=Cn,ar.get=re,ar.invalidAt=Dn,ar.isAfter=sn,ar.isBefore=an,ar.isBetween=un,ar.isSame=ln,ar.isSameOrAfter=cn,ar.isSameOrBefore=pn,ar.isValid=In,ar.lang=tr,ar.locale=wn,ar.localeData=_n,ar.max=Wo,ar.min=zo,ar.parsingFlags=Pn,ar.set=se,ar.startOf=On,ar.subtract=er,ar.toArray=Rn,ar.toObject=Fn,ar.toDate=Tn,ar.toISOString=mn,ar.inspect=yn,ar.toJSON=Mn,ar.toString=fn,ar.unix=An,ar.valueOf=En,ar.creationData=$n,ar.year=bo,ar.isLeapYear=te,ar.weekYear=kn,ar.isoWeekYear=Vn,ar.quarter=ar.quarters=jn,ar.month=fe,ar.daysInMonth=me,ar.week=ar.weeks=Te,ar.isoWeek=ar.isoWeeks=Re,ar.weeksInYear=Bn,ar.isoWeeksInYear=Ln,ar.date=nr,ar.day=ar.days=ke,ar.weekday=Ve,ar.isoWeekday=Le,ar.dayOfYear=Hn,ar.hour=ar.hours=Do,ar.minute=ar.minutes=ir,ar.second=ar.seconds=or,ar.millisecond=ar.milliseconds=sr,ar.utcOffset=Lt,ar.utc=Ut,ar.local=Qt,ar.parseZone=jt,ar.hasAlignedHourOffset=Ht,ar.isDST=qt,ar.isLocal=Wt,ar.isUtcOffset=Gt,ar.isUtc=Yt,ar.isUTC=Yt,ar.zoneAbbr=zn,ar.zoneName=Wn,ar.dates=_("dates accessor is deprecated. Use date instead.",nr),ar.months=_("months accessor is deprecated. Use month instead",fe),ar.years=_("years accessor is deprecated. Use year instead",bo),ar.zone=_("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Bt),ar.isDSTShifted=_("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",zt);var ur=T.prototype;ur.calendar=R,ur.longDateFormat=F,ur.invalidDate=M,ur.ordinal=I,ur.preparse=Kn,ur.postformat=Kn,ur.relativeTime=P,ur.pastFuture=D,ur.set=E,ur.months=le,ur.monthsShort=ce,ur.monthsParse=de,ur.monthsRegex=ge,ur.monthsShortRegex=ye,ur.week=xe,ur.firstDayOfYear=Ae,ur.firstDayOfWeek=Ee,ur.weekdays=Ie,ur.weekdaysMin=De,ur.weekdaysShort=Pe,ur.weekdaysParse=Ne,ur.weekdaysRegex=Be,ur.weekdaysShortRegex=Ue,ur.weekdaysMinRegex=Qe,ur.isPM=Ge,ur.meridiem=Ye,Xe("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===S(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),t.lang=_("moment.lang is deprecated. Use moment.locale instead.",Xe),t.langData=_("moment.langData is deprecated. Use moment.localeData instead.",nt);var lr=Math.abs,cr=mi("ms"),pr=mi("s"),dr=mi("m"),hr=mi("h"),fr=mi("d"),mr=mi("w"),yr=mi("M"),gr=mi("y"),vr=vi("milliseconds"),br=vi("seconds"),Sr=vi("minutes"),Cr=vi("hours"),wr=vi("days"),_r=vi("months"),Or=vi("years"),xr=Math.round,Er={ss:44,s:45,m:45,h:22,d:26,M:11},Ar=Math.abs,Tr=It.prototype;return Tr.isValid=Ft,Tr.abs=ri,Tr.add=ai,Tr.subtract=ui,Tr.as=hi,Tr.asMilliseconds=cr,Tr.asSeconds=pr,Tr.asMinutes=dr,Tr.asHours=hr,Tr.asDays=fr,Tr.asWeeks=mr,Tr.asMonths=yr,Tr.asYears=gr,Tr.valueOf=fi,Tr._bubble=ci,Tr.clone=yi,Tr.get=gi,Tr.milliseconds=vr,Tr.seconds=br,Tr.minutes=Sr,Tr.hours=Cr,Tr.days=wr,Tr.weeks=bi,Tr.months=_r,Tr.years=Or,Tr.humanize=Oi,Tr.toISOString=Ei,Tr.toString=Ei,Tr.toJSON=Ei,Tr.locale=wn,Tr.localeData=_n,Tr.toIsoString=_("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Ei),Tr.lang=tr,U("X",0,0,"unix"),U("x",0,0,"valueOf"),z("x",to),z("X",oo),K("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e,10))}),K("x",function(e,t,n){n._d=new Date(S(e))}),t.version="2.22.2",function(e){Ai=e}(xt),t.fn=ar,t.min=At,t.max=Tt,t.now=Go,t.utc=p,t.unix=Gn,t.months=ei,t.isDate=a,t.locale=Xe,t.invalid=m,t.duration=Kt,t.isMoment=v,t.weekdays=ni,t.parseZone=Yn,t.localeData=nt,t.isDuration=Pt,t.monthsShort=ti,t.weekdaysMin=oi,t.defineLocale=et,t.updateLocale=tt,t.locales=it,t.weekdaysShort=ii,t.normalizeUnits=N,t.relativeTimeRounding=wi,t.relativeTimeThreshold=_i,t.calendarFormat=nn,t.prototype=ar,t.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"YYYY-[W]WW",MONTH:"YYYY-MM"},t})}).call(t,n(166)(e))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){}return e.hsvToRgb=function(e,t,n){var i,o,r,s=Math.floor(6*e),a=6*e-s,u=n*(1-t),l=n*(1-a*t),c=n*(1-(1-a)*t);switch(s%6){case 0:i=n,o=c,r=u;break;case 1:i=l,o=n,r=u;break;case 2:i=u,o=n,r=c;break;case 3:i=u,o=l,r=n;break;case 4:i=c,o=u,r=n;break;case 5:i=n,o=u,r=l}return[Math.round(255*i),Math.round(255*o),Math.round(255*r)]},e.rgbToHsv=function(e,t,n){e/=255,t/=255,n/=255;var i,o,r=Math.max(e,t,n),s=Math.min(e,t,n),a=r,u=r-s;if(o=0==r?0:u/r,r==s)i=0;else{switch(r){case e:i=(t-n)/u+(t<n?6:0);break;case t:i=(n-e)/u+2;break;case n:i=(e-t)/u+4}i/=6}return[i,o,a]},e}();t.ColorUtils=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(5),o=function(){function e(e){this.status=e.statusCode,this.message=e.data.message,this.name=this.type=e.data.type,this.queryExecutionReport=e.data.executionReport,i.Assert.isNumber(this.status),i.Assert.isNonEmptyString(this.message),i.Assert.isNonEmptyString(this.type)}return e}();t.QueryError=o},function(e,t,n){"use strict";function i(e){return e.json().then(function(t){return t.raw=e,t})}var o=n(143);n(308),t.Version="v15",t.Endpoints={default:"https://usageanalytics.coveo.com",production:"https://usageanalytics.coveo.com",dev:"https://usageanalyticsdev.coveo.com",staging:"https://usageanalyticsstaging.coveo.com"};var r=function(){function e(e){if(void 0===e)throw new Error("You have to pass options to this constructor");this.endpoint=e.endpoint||t.Endpoints.default,this.token=e.token,this.version=e.version||t.Version}return e.prototype.sendEvent=function(e,t){return fetch(this.getRestEndpoint()+"/analytics/"+e,{method:"POST",headers:this.getHeaders(),mode:"cors",body:JSON.stringify(t),credentials:"include"})},e.prototype.sendSearchEvent=function(e){return this.sendEvent("search",e).then(i)},e.prototype.sendClickEvent=function(e){return this.sendEvent("click",e).then(i)},e.prototype.sendCustomEvent=function(e){return this.sendEvent("custom",e).then(i)},e.prototype.sendViewEvent=function(e){""===e.referrer&&delete e.referrer;var t=new o.HistoryStore,n={name:"PageView",value:e.contentIdValue,time:JSON.stringify(new Date)};return t.addElement(n),this.sendEvent("view",e).then(i)},e.prototype.getVisit=function(){return fetch(this.getRestEndpoint()+"/analytics/visit").then(i)},e.prototype.getHealth=function(){return fetch(this.getRestEndpoint()+"/analytics/monitoring/health").then(i)},e.prototype.getRestEndpoint=function(){return this.endpoint+"/rest/"+this.version},e.prototype.getHeaders=function(){var e={"Content-Type":"application/json"};return this.token&&(e.Authorization="Bearer "+this.token),e},e}();t.Client=r,Object.defineProperty(t,"__esModule",{value:!0}),t.default=r},function(e,t,n){"use strict";var i=n(99),o=n(144);t.STORE_KEY="__coveo.analytics.history",t.MAX_NUMBER_OF_HISTORY_ELEMENTS=20,t.MIN_THRESHOLD_FOR_DUPLICATE_VALUE=6e4,t.MAX_VALUE_SIZE=75;var r=function(){function e(e){this.store=e||i.getAvailableStorage(),this.store instanceof i.CookieStorage||!o.hasCookieStorage()||(new i.CookieStorage).removeItem(t.STORE_KEY)}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.getHistory=function(){var e=this.getHistoryWithInternalTime();return this.stripInternalTime(e)},e.prototype.getHistoryWithInternalTime=function(){try{return JSON.parse(this.store.getItem(t.STORE_KEY))}catch(e){return[]}},e.prototype.setHistory=function(e){try{this.store.setItem(t.STORE_KEY,JSON.stringify(e.slice(0,t.MAX_NUMBER_OF_HISTORY_ELEMENTS)))}catch(e){}},e.prototype.clear=function(){try{this.store.removeItem(t.STORE_KEY)}catch(e){}},e.prototype.getMostRecentElement=function(){var e=this.getHistoryWithInternalTime();if(null!=e){return e.sort(function(e,t){return null==e.internalTime&&null==t.internalTime?0:null==e.internalTime&&null!=t.internalTime?1:null!=e.internalTime&&null==t.internalTime?-1:t.internalTime-e.internalTime})[0]}return null},e.prototype.cropQueryElement=function(e){e.name&&"query"==e.name.toLowerCase()&&null!=e.value&&(e.value=e.value.slice(0,t.MAX_VALUE_SIZE))},e.prototype.isValidEntry=function(e){var n=this.getMostRecentElement();return!n||n.value!=e.value||e.internalTime-n.internalTime>t.MIN_THRESHOLD_FOR_DUPLICATE_VALUE},e.prototype.stripInternalTime=function(e){return e&&e.forEach(function(e,t,n){delete e.internalTime}),e},e}();t.HistoryStore=r,Object.defineProperty(t,"__esModule",{value:!0}),t.default=r},function(e,t,n){"use strict";function i(){try{return"localStorage"in window&&null!==window.localStorage}catch(e){return!1}}function o(){try{return"sessionStorage"in window&&null!==window.sessionStorage}catch(e){return!1}}function r(){return navigator.cookieEnabled}function s(){return null!==document}function a(){return s()&&null!==document.location}t.hasLocalStorage=i,t.hasSessionStorage=o,t.hasCookieStorage=r,t.hasDocument=s,t.hasDocumentLocation=a},function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))(function(o,r){function s(e){try{u(i.next(e))}catch(e){r(e)}}function a(e){try{u(i.throw(e))}catch(e){r(e)}}function u(e){e.done?o(e.value):new n(function(t){t(e.value)}).then(s,a)}u((i=i.apply(e,t||[])).next())})},o=this&&this.__generator||function(e,t){function n(e){return function(t){return i([e,t])}}function i(n){if(o)throw new TypeError("Generator is already executing.");for(;u;)try{if(o=1,r&&(s=r[2&n[0]?"return":n[0]?"throw":"next"])&&!(s=s.call(r,n[1])).done)return s;switch(r=0,s&&(n=[0,s.value]),n[0]){case 0:case 1:s=n;break;case 4:return u.label++,{value:n[1],done:!1};case 5:u.label++,r=n[1],n=[0];continue;case 7:n=u.ops.pop(),u.trys.pop();continue;default:if(s=u.trys,!(s=s.length>0&&s[s.length-1])&&(6===n[0]||2===n[0])){u=0;continue}if(3===n[0]&&(!s||n[1]>s[0]&&n[1]<s[3])){u.label=n[1];break}if(6===n[0]&&u.label<s[1]){u.label=s[1],s=n;break}if(s&&u.label<s[2]){u.label=s[2],u.ops.push(n);break}s[2]&&u.ops.pop(),u.trys.pop();continue}n=t.call(e,u)}catch(e){n=[6,e],r=0}finally{o=s=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}var o,r,s,a,u={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return a={next:n(0),throw:n(1),return:n(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a};Object.defineProperty(t,"__esModule",{value:!0});var r,s=n(9),a=n(0);!function(e){e.NO_RENEW_FUNCTION="NO_RENEW_FUNCTION",e.REPEATED_FAILURES="REPEATED_FAILURES"}(r=t.ACCESS_TOKEN_ERRORS||(t.ACCESS_TOKEN_ERRORS={}));var u=function(){function e(e,t){var n=this;this.token=e,this.renew=t,this.subscribers=[],this.logger=new s.Logger(this),this.triedRenewals=0,this.resetRenewalTriesAfterDelay=a.debounce(function(){n.triedRenewals=0},500,!1)}return e.prototype.updateToken=function(e){this.token=e,this.notifySubscribers()},e.prototype.doRenew=function(e){return i(this,void 0,void 0,function(){var t,n;return o(this,function(i){switch(i.label){case 0:this.triedRenewals++,this.resetRenewalTriesAfterDelay(),i.label=1;case 1:return i.trys.push([1,3,,4]),this.verifyRenewSetup(),this.logger.info("Renewing expired access token"),t=this,[4,this.renew()];case 2:return t.token=i.sent(),this.logger.info("Access token renewed",this.token),this.notifySubscribers(),[2,!0];case 3:switch(n=i.sent(),n.message){case r.REPEATED_FAILURES:this.logger.error("AccessToken tried to renew itself extremely fast in a short period of time"),this.logger.error("There is most probably an authentication error, or a bad implementation of the custom renew function"),this.logger.error("Inspect the developer console of your browser to find out the root cause");break;case r.NO_RENEW_FUNCTION:this.logger.error("AccessToken tried to renew, but no function is configured on initialization to provide acess token renewal"),this.logger.error("The option name is renewAccessToken on the SearchEndpoint class")}return this.logger.error("Failed to renew access token",n),e&&e(n),[2,!1];case 4:return[2]}})})},e.prototype.subscribeToRenewal=function(e){this.subscribers.push(e)},e.prototype.verifyRenewSetup=function(){if(null==this.renew)throw new Error(r.NO_RENEW_FUNCTION);if(this.triedRenewals>=5)throw new Error(r.REPEATED_FAILURES)},e.prototype.notifySubscribers=function(){var e=this;this.subscribers.forEach(function(t){return t(e.token)})},e}();t.AccessToken=u},function(e,t,n){"use strict";function i(e){var t=o(o({},s),e);return t.numOfAttempts<1&&(t.numOfAttempts=1),t}var o=this&&this.__assign||function(){return o=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},o.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0});var r;!function(e){e.None="none",e.Full="full"}(r=t.JitterTypes||(t.JitterTypes={}));var s={delayFirstAttempt:!1,jitter:r.None,maxDelay:1/0,numOfAttempts:10,retry:function(){return!0},startingDelay:100,timeMultiple:2};t.getSanitizedOptions=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(317),o=function(){function e(e){this.options=e,this.attempt=0}return e.prototype.apply=function(){var e=this;return new Promise(function(t){return setTimeout(t,e.jitteredDelay)})},e.prototype.setAttemptNumber=function(e){this.attempt=e},Object.defineProperty(e.prototype,"jitteredDelay",{get:function(){return i.JitterFactory(this.options)(this.delay)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"delay",{get:function(){var e=this.options.startingDelay,t=this.options.timeMultiple,n=this.numOfDelayedAttempts,i=e*Math.pow(t,n);return Math.min(i,this.options.maxDelay)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"numOfDelayedAttempts",{get:function(){return this.attempt},enumerable:!0,configurable:!0}),e}();t.Delay=o},function(e,t,n){"use strict";function i(){var e=String.locales||(String.locales={});e.en=s(e.en,a),String.toLocaleString.call(this,{en:a}),String.locale="en",String.defaultLocale="en",r.culture("en")}function o(){var e=String.locales||(String.locales={});e.en=s(e.en,a),String.toLocaleString.call(this,{en:a}),String.locale="en",String.defaultLocale="en",r.culture("en")}Object.defineProperty(t,"__esModule",{value:!0});var r=n(23),s=function(e,t){var n={};for(var i in e)n[i]=e[i];for(var i in t)n[i]=t[i];return n},a={"box user":"User","filetype_box user":"User",html:"HTML File",filetype_html:"HTML File",wiki:"Wiki",filetype_wiki:"Wiki",webscraperwebpage:"Web Page",filetype_webscraperwebpage:"Web Page",image:"Image",filetype_image:"Image",folder:"Folder",filetype_folder:"Folder",txt:"Text",filetype_txt:"Text",zip:"Zip File",filetype_zip:"Zip File",olefile:"OLE file",filetype_olefile:"OLE file",gmailmessage:"Gmail Message",filetype_gmailmessage:"Gmail Message",pdf:"PDF File",filetype_pdf:"PDF File",swf:"Flash File",filetype_swf:"Flash File",xml:"XML File",filetype_xml:"XML File",vsd:"Visio",filetype_vsd:"Visio",svg:"SVG",filetype_svg:"SVG",svm:"Open Office",filetype_svm:"Open Office",rssitem:"RSS feed",filetype_rssitem:"RSS feed",doc:"Document",filetype_doc:"Document",docx:"Microsoft Word Document",filetype_docx:"Microsoft Word Document",xls:"Spreadsheet Document",filetype_xls:"Spreadsheet Document",ppt:"Presentation Document",filetype_ppt:"Presentation Document",video:"Video",filetype_video:"Video",youtube:"YouTube video",filetype_youtube:"YouTube video",saleforceitem:"Salesforce",filetype_saleforceitem:"Salesforce",dynamicscrmitem:"Dynamics CRM",filetype_dynamicscrmitem:"Dynamics CRM",salesforceitem:"Salesforce",filetype_salesforceitem:"Salesforce",odt:"Open Text Document",filetype_odt:"Open Text Document",box:"User",filetype_box:"User",jiraissue:"Jira Issue",filetype_jiraissue:"Jira Issue",cfpage:"Confluence Page",filetype_cfpage:"Confluence Page",cfcomment:"Confluence Comment",filetype_cfcomment:"Confluence Comment",cfspace:"Confluence Space",filetype_cfspace:"Confluence Space",cfblogentry:"Confluence Blog Entry",filetype_cfblogentry:"Confluence Blog Entry",confluencespace:"Confluence Space",filetype_confluencespace:"Confluence Space",exchangemessage:"Message",filetype_exchangemessage:"Message",exchangeappointment:"Appointment",filetype_exchangeappointment:"Appointment",exchangenote:"Note",filetype_exchangenote:"Note",exchangetask:"Task",filetype_exchangetask:"Task",exchangeperson:"Exchange User",filetype_exchangeperson:"Exchange User",activedirperson:"Active Directory User",filetype_activedirperson:"Active Directory User",exchangeactivity:"Activity",filetype_exchangeactivity:"Activity",exchangecalendarmessage:"Calendar Message",filetype_exchangecalendarmessage:"Calendar Message",exchangedocument:"Exchange Document",filetype_exchangedocument:"Exchange Document",exchangedsn:"DSN",filetype_exchangedsn:"DSN",exchangefreebusy:"Free/Busy",filetype_exchangefreebusy:"Free/Busy",exchangegroup:"Group",filetype_exchangegroup:"Group",exchangerssfeed:"RSS Feed",filetype_exchangerssfeed:"RSS Feed",exchangejunkmessage:"Junk Email",filetype_exchangejunkmessage:"Junk Email",exchangeofficecom:"Communications",filetype_exchangeofficecom:"Communications",lithiummessage:"Lithium Message",filetype_lithiummessage:"Lithium Message",lithiumthread:"Lithium Thread",filetype_lithiumthread:"Lithium Thread",lithiumboard:"Lithium Board",filetype_lithiumboard:"Lithium Board",lithiumcategory:"Lithium Category",filetype_lithiumcategory:"Lithium Category",lithiumcommunity:"Lithium Community",filetype_lithiumcommunity:"Lithium Community",people:"User",objecttype_people:"User",message:"Message",objecttype_message:"Message",feed:"RSS Feed",objecttype_feed:"RSS Feed",thread:"Thread",objecttype_thread:"Thread",file:"File",objecttype_file:"File",board:"Board",objecttype_board:"Board",category:"Category",objecttype_category:"Category",account:"Account",objecttype_account:"Account",annotation:"Note",objecttype_annotation:"Note",campaign:"Campaign",objecttype_campaign:"Campaign",case:"Case",objecttype_case:"Case",contact:"Contact",objecttype_contact:"Contact",contract:"Contract",objecttype_contract:"Contract",event:"Event",objecttype_event:"Event",email:"Email",objecttype_email:"Email",goal:"Goal",objecttype_goal:"Goal",incident:"Incident",objecttype_incident:"Incident",invoice:"Invoice",objecttype_invoice:"Invoice",lead:"Lead",objecttype_lead:"Lead",list:"List",objecttype_list:"Marketing List",solution:"Solution",objecttype_solution:"Solution",report:"Report",objecttype_report:"Report",task:"Task",objecttype_task:"Task",user:"User",objecttype_user:"User",attachment:"Attachment",objecttype_attachment:"Attachment",casecomment:"Case Comment",objecttype_casecomment:"Case Comment",opportunity:"Opportunity",objecttype_opportunity:"Opportunity",opportunityproduct:"Opportunity Product",objecttype_opportunityproduct:"Opportunity Product",feeditem:"Chatter",objecttype_feeditem:"Chatter",feedcomment:"Comment",objecttype_feedcomment:"Comment",note:"Note",objecttype_note:"Note",product:"Product",objecttype_product:"Product",partner:"Partner",objecttype_partner:"Partner",queueitem:"Queue Item",objecttype_queueitem:"Queue Item",quote:"Quote",objecttype_quote:"Quote",salesliterature:"Sales Literature",objecttype_salesliterature:"Sales Literature",salesorder:"Sales Order",objecttype_salesorder:"Sales Order",service:"Service",objecttype_service:"Service",socialprofile:"Social Profile",objecttype_socialprofile:"Social Profile",kbdocumentation:"Knowledge Document",objecttype_kbdocumentation:"Knowledge Document",kbtechnicalarticle:"Technical Documentation",objecttype_kbtechnicalarticle:"Technical Documentation",kbsolution:"Solution",objecttype_kbsolution:"Solution",kbknowledgearticle:"Knowledge Article",objecttype_kbknowledgearticle:"Knowledge Article",kbattachment:"Attachment",objecttype_kbattachment:"Attachment",kbarticle:"Article",objecttype_kbarticle:"Article",kbarticlecomment:"Article Comment",objecttype_kbarticlecomment:"Article Comment",knowledgearticle:"Knowledge Article",objecttype_knowledgearticle:"Knowledge Article",topic:"Topic",objecttype_topic:"Topic",dashboard:"Dashboard",objecttype_dashboard:"Dashboard",contentversion:"Document",objecttype_contentversion:"Document",collaborationgroup:"Collaboration group",objecttype_collaborationgroup:"Collaboration group",phonecall:"Phone call",objecttype_phonecall:"Phone call",appointment:"Appointment",objecttype_appointment:"Appointment",sn_hr_core_case:"HR Case",filetype_sn_hr_core_case:"HR Case",sc_cat_item:"Catalog Item",filetype_sc_cat_item:"Catalog Item",sn_customerservice_case:"Case",filetype_sn_customerservice_case:"Case",kb_social_qa_answer:"Answer",filetype_kb_social_qa_answer:"Answer",kb_social_qa_question:"Question",filetype_kb_social_qa_question:"Question",kb_social_qa_comment:"Comment",filetype_kb_social_qa_comment:"Comment",filetype_incident:"Incident",kb_knowledge:"Knowledge Article",filetype_kb_knowledge:"Knowledge Article",spportal:"Portal",filetype_spportal:"Portal",spsite:"SharePoint Site",filetype_spsite:"SharePoint Site",spuserprofile:"SharePoint User",filetype_spuserprofile:"SharePoint User",sparea:"Area",filetype_sparea:"Area",spannouncement:"Announcement",filetype_spannouncement:"Announcement",spannouncementlist:"Announcements",filetype_spannouncementlist:"Announcements",spcontact:"Contact",filetype_spcontact:"Contact",spcontactlist:"Contacts",filetype_spcontactlist:"Contacts",spcustomlist:"Custom Lists",filetype_spcustomlist:"Custom Lists",spdiscussionboard:"Discussion Board",filetype_spdiscussionboard:"Discussion Board",spdiscussionboardlist:"Discussion Boards",filetype_spdiscussionboardlist:"Discussion Boards",spdocumentlibrarylist:"Document Library",filetype_spdocumentlibrarylist:"Document Library",spevent:"Event",filetype_spevent:"Event",speventlist:"Events",filetype_speventlist:"Events",spformlibrarylist:"Form Library",filetype_spformlibrarylist:"Form Library",spissue:"Issue",filetype_spissue:"Issue",spissuelist:"Issues",filetype_spissuelist:"Issues",splink:"Link",filetype_splink:"Link",splinklist:"Links",filetype_splinklist:"Links",sppicturelibrarylist:"Picture Library",filetype_sppicturelibrarylist:"Picture Library",spsurvey:"Survey",filetype_spsurvey:"Survey",spsurveylist:"Surveys",filetype_spsurveylist:"Surveys",sptask:"Task",filetype_sptask:"Task",sptasklist:"Tasks",filetype_sptasklist:"Tasks",spagenda:"Agenda",filetype_spagenda:"Agenda",spagendalist:"Agendas",filetype_spagendalist:"Agendas",spattendee:"Attendee",filetype_spattendee:"Attendee",spattendeelist:"Attendees",filetype_spattendeelist:"Attendees",spcustomgridlist:"Custom Grids",filetype_spcustomgridlist:"Custom Grids",spdecision:"Decision",filetype_spdecision:"Decision",spdecisionlist:"Decisions",filetype_spdecisionlist:"Decisions",spobjective:"Objective",filetype_spobjective:"Objective",spobjectivelist:"Objectives",filetype_spobjectivelist:"Objectives",sptextbox:"Textbox",filetype_sptextbox:"Textbox",sptextboxlist:"Textbox list",filetype_sptextboxlist:"Textbox list",spthingstobring:"Thing To Bring",filetype_spthingstobring:"Thing To Bring",spthingstobringlist:"Things To Bring",filetype_spthingstobringlist:"Things To Bring",sparealisting:"Area Listing",filetype_sparealisting:"Area Listing",spmeetingserie:"Meeting series",filetype_spmeetingserie:"Meeting series",spmeetingserielist:"Meeting Series List",filetype_spmeetingserielist:"Meeting Series List",spsitedirectory:"Site Directory Item",filetype_spsitedirectory:"Site Directory Item",spsitedirectorylist:"Site Directory",filetype_spsitedirectorylist:"Site Directory",spdatasource:"Data Source",filetype_spdatasource:"Data Source",spdatasourcelist:"Data Source List",filetype_spdatasourcelist:"Data Source List",splisttemplatecataloglist:"List Template Gallery",filetype_splisttemplatecataloglist:"List Template Gallery",spwebpartcataloglist:"WebPart Gallery",filetype_spwebpartcataloglist:"WebPart Gallery",spwebtemplatecataloglist:"Site Template Gallery",filetype_spwebtemplatecataloglist:"Site Template Gallery",spworkspacepagelist:"Workspace Pages",filetype_spworkspacepagelist:"Workspace Pages",spunknownlist:"Custom List",filetype_spunknownlist:"Custom List",spadministratortask:"Administrator Task",filetype_spadministratortask:"Administrator Task",spadministratortasklist:"Administrator Tasks",filetype_spadministratortasklist:"Administrator Tasks",spareadocumentlibrarylist:"Area Document Library",filetype_spareadocumentlibrarylist:"Area Document Library",spblogcategory:"Blog Category",filetype_spblogcategory:"Blog Category",spblogcategorylist:"Blog Categories",filetype_spblogcategorylist:"Blog Categories",spblogcomment:"Blog Comment",filetype_spblogcomment:"Blog Comment",spblogcommentlist:"Blog Comments",filetype_spblogcommentlist:"Blog Comments",spblogpost:"Blog Post",filetype_spblogpost:"Blog Post",spblogpostlist:"Blog Posts",filetype_spblogpostlist:"Blog Posts",spdataconnectionlibrarylist:"Data Connection Library",filetype_spdataconnectionlibrarylist:"Data Connection Library",spdistributiongroup:"Distribution Group",filetype_spdistributiongroup:"Distribution Group",spdistributiongrouplist:"Distribution Groups",filetype_spdistributiongrouplist:"Distribution Groups",spipfslist:"InfoPath Forms Servers",filetype_spipfslist:"InfoPath Forms Servers",spkeyperformanceindicator:"Key Performance Indicator",filetype_spkeyperformanceindicator:"Key Performance Indicator",spkeyperformanceindicatorlist:"Key Performance Indicators",filetype_spkeyperformanceindicatorlist:"Key Performance Indicators",splanguagesandtranslator:"Languages and Translator",filetype_splanguagesandtranslator:"Languages and Translator",splanguagesandtranslatorlist:"Languages and Translators",filetype_splanguagesandtranslatorlist:"Languages and Translators",spmasterpagescataloglist:"Master Page Gallery",filetype_spmasterpagescataloglist:"Master Page Gallery",spnocodeworkflowlibrarylist:"No-code Workflow Libraries",filetype_spnocodeworkflowlibrarylist:"No-code Workflow Libraries",spprojecttask:"Project Task",filetype_spprojecttask:"Project Task",spprojecttasklist:"Project Tasks",filetype_spprojecttasklist:"Project Tasks",sppublishingpageslibrarylist:"Page Library",filetype_sppublishingpageslibrarylist:"Page Library",spreportdocumentlibrarylist:"Report Document Library",filetype_spreportdocumentlibrarylist:"Report Document Library",spreportlibrarylist:"Report Library",filetype_spreportlibrarylist:"Report Library",spslidelibrarylist:"Slide Library",filetype_spslidelibrarylist:"Slide Library",sptab:"Tabs",filetype_sptab:"Tabs",sptablist:"Tabs List",filetype_sptablist:"Tabs List",sptranslationmanagementlibrarylist:"Translation Management Library",filetype_sptranslationmanagementlibrarylist:"Translation Management Library",spuserinformation:"User Information",filetype_spuserinformation:"User Information",spuserinformationlist:"User Information List",filetype_spuserinformationlist:"User Information List",spwikipagelibrarylist:"Wiki Page Library",filetype_spwikipagelibrarylist:"Wiki Page Library",spworkflowhistory:"Workflow History",filetype_spworkflowhistory:"Workflow History",spworkflowhistorylist:"Workflow History List",filetype_spworkflowhistorylist:"Workflow History List",spworkflowprocess:"Custom Workflow Process",filetype_spworkflowprocess:"Custom Workflow Process",spworkflowprocesslist:"Custom Workflow Processes",filetype_spworkflowprocesslist:"Custom Workflow Processes",sppublishingimageslibrarylist:"Publishing Image Library",filetype_sppublishingimageslibrarylist:"Publishing Image Library",spcirculation:"Circulation",filetype_spcirculation:"Circulation",spcirculationlist:"Circulations",filetype_spcirculationlist:"Circulations",spdashboardslibrarylist:"Dashboards Library",filetype_spdashboardslibrarylist:"Dashboards Library",spdataconnectionforperformancepointlibrarylist:"PerformancePoint Data Connection Library",filetype_spdataconnectionforperformancepointlibrarylist:"PerformancePoint Data Connection Library",sphealthreport:"Health Report",filetype_sphealthreport:"Health Report",sphealthreportlist:"Health Reports",filetype_sphealthreportlist:"Health Reports",sphealthrule:"Health Rule",filetype_sphealthrule:"Health Rule",sphealthrulelist:"Health Rules",filetype_sphealthrulelist:"Health Rules",spimedictionary:"IME Dictionary",filetype_spimedictionary:"IME Dictionary",spimedictionarylist:"IME Dictionaries",filetype_spimedictionarylist:"IME Dictionaries",spperformancepointcontent:"PerformancePoint Content",filetype_spperformancepointcontent:"PerformancePoint Content",spperformancepointcontentlist:"PerformancePoint Contents",filetype_spperformancepointcontentlist:"PerformancePoint Contents",spphonecallmemo:"Phone Call Memo",filetype_spphonecallmemo:"Phone Call Memo",spphonecallmemolist:"Phone Call Memos",filetype_spphonecallmemolist:"Phone Call Memos",sprecordlibrarylist:"Record Library",filetype_sprecordlibrarylist:"Record Library",spresource:"Resource",filetype_spresource:"Resource",spresourcelist:"Resources",filetype_spresourcelist:"Resources",spprocessdiagramslibrarylist:"Process Diagram Library",filetype_spprocessdiagramslibrarylist:"Process Diagram Library",spsitethemeslibrarylist:"Site Theme Library",filetype_spsitethemeslibrarylist:"Site Theme Library",spsolutionslibrarylist:"Solution Library",filetype_spsolutionslibrarylist:"Solution Library",spwfpublibrarylist:"WFPUB Library",filetype_spwfpublibrarylist:"WFPUB Library",spwhereabout:"Whereabout",filetype_spwhereabout:"Whereabout",spwhereaboutlist:"Whereabouts",filetype_spwhereaboutlist:"Whereabouts",spdocumentlink:"Link to a Document",filetype_spdocumentlink:"Link to a Document",spdocumentset:"Document Set",filetype_spdocumentset:"Document Set",spmicrofeedpost:"Microfeed Post",filetype_spmicrofeedpost:"Microfeed Post",spmicrofeedlist:"Microfeed",filetype_spmicrofeedlist:"Microfeed",splistfolder:"List Folder",filetype_splistfolder:"List Folder",slackmessage:"Slack Message",filetype_slackmessage:"Slack Message",slackchannel:"Slack Channel",filetype_slackchannel:"Slack Channel",slackfile:"Slack File",filetype_slackfile:"Slack File",slackuser:"Slack User",filetype_slackuser:"Slack User",youtubevideo:"YouTube video",filetype_youtubevideo:"YouTube video",youtubeplaylistitem:"YouTube playlist item",filetype_youtubeplaylistitem:"YouTube playlist item",youtubeplaylist:"YouTube playlist",filetype_youtubeplaylist:"YouTube playlist",Unknown:"Unknown",And:"AND",Authenticating:"Authenticating {0}...",Clear:"Clear {0}",CompleteQuery:"Complete query",Exclude:"Exclude {0}",EnterTag:"Add Tag",Next:"Next",Last:"Last",Link:"Link",Or:"OR",Previous:"Previous",QueryDidntMatchAnyDocuments:"Your query did not match any documents.",QueryException:"Your query has an error: {0}.",Me:"Me",Remove:"Remove",Search:"Search",SearchFor:"Search for {0}",SubmitSearch:"Submit search",ShareQuery:"Share Query",Preferences:"Preferences",LinkOpeningSettings:"Link opening settings",Reauthenticate:"Reauthenticate {0}",ResultsFilteringExpression:"Result filtering expressions",FiltersInYourPreferences:"Filters in your preferences",Create:"Create",SearchIn:"Search in {0}",Seconds:"in {0} second<pl>s</pl>",ShowingResultsOf:"Result<pl>s</pl> {0}<pl>-{1}</pl> of {2}",ShowingResultsOfWithQuery:"Result<pl>s</pl> {0}<pl>-{1}</pl> of {2} for {3}",SwitchTo:"Switch to {0}",Unexclude:"Remove exclusion filter on {0}",ClearAllFilters:"Clear All Filters",SkipLogin:"Skip login",LoginInProgress:"Login in progress, please wait ...",Login:"Log In",GetStarted:"Get Started",More:"More",NMore:"{0} more...",Less:"Fewer",Settings:"Settings",Score:"Score",ScoreDescription:"The score is computed from the number of occurrences as well as from the position in the result set.",Occurrences:"Occurrences",OccurrencesDescription:"Sort by number of occurrences, with values having the highest number appearing first.",Label:"Label",Of:"of",LabelDescription:"Sort alphabetically on the field values.",Value:"Value",ValueDescription:"Sort on the values of the first computed field",AlphaAscending:"Value Ascending",AlphaDescending:"Value Descending",ChiSquare:"Chi Square",Nosort:"No Sort",NosortDescription:"Do not sort the values. The values will be returned in a random order.",RelativeFrequency:"Relative Frequency",RelativeFrequencyDescription:"Sort based on the relative frequency of values. Less common values will appear higher.",DateDistribution:"Date distribution",Custom:"Custom",CustomDescription:"Sort based on a custom order",ComputedField:"Computed Field",Ascending:"Ascending",Descending:"Descending",noResultFor:"No results for {0}",noResult:"No results",autoCorrectedQueryTo:"Query was automatically corrected to {0}",didYouMean:"Did you mean: {0}",SuggestedResults:"Suggested Results",SuggestedQueries:"Suggested Queries",MostRelevantItems:"Most relevant items:",AllItems:"All items:",ShowLess:"Show less",ShowMore:"Show more",HideFacet:"Hide Facet",ShowFacet:"Show Facet",AndOthers:"and {0} other<pl>s</pl>",Others:"{0} other<pl>s</pl>",MostRelevantPosts:"Most Relevant Posts:",CompleteThread:"Complete Thread:",ShowCompleteThread:"Show Complete Thread",ShowOnlyTopMatchingPosts:"Show Only Top Matching Posts",MostRelevantReplies:"Most Relevant Replies:",AllConversation:"All Conversation:",ShowAllConversation:"Show All Conversation",ShowAllReplies:"Show All Replies",ShowOnlyMostRelevantReplies:"Show Only Most Relevant Replies",Close:"Close",Open:"Open",OpenInOutlookWhenPossible:"Open in Outlook (when possible)",AlwaysOpenInNewWindow:"Always open results in new window",Quickview:"Quick View",NoQuickview:"The Quick View for this document is unavailable",ErrorReport:"Error Report",OopsError:"Something went wrong.",ProblemPersists:"If the problem persists contact the administrator.",GoBack:"Go Back",Reset:"Reset",Retry:"Retry",MoreInfo:"More Information",Username:"Username",Password:"Password",PostedBy:"Posted by",CannotConnect:"Cannot connect to the server address.",BadUserPass:"Password does not match with username.",PleaseEnterYourCredentials:"Please enter your credentials for {0}.",PleaseEnterYourSearchPage:"Please enter your search page URL",Collapse:"Collapse",Collapsable:"Collapsible",Expand:"Expand",CollapseFacet:"Collapse {0} facet",ExpandFacet:"Expand {0} facet",ShowLessFacetResults:"Show fewer results for {0} facet",ShowMoreFacetResults:"Show more results for {0} facet",ShowLessCategoryResults:"Show fewer results for the {0} category",ShowMoreCategoryResults:"Show more results for the {0} category",SearchFacetResults:"Search for values in {0} facet",Today:"Today",Yesterday:"Yesterday",Tomorrow:"Tomorrow",Duration:"Duration: {0}",IndexDuration:"Index Duration: {0}",ProxyDuration:"Proxy Duration: {0}",ClientDuration:"Client Duration: {0}",Unavailable:"Unavailable",Reply:"Reply",ReplyAll:"Reply All",Forward:"Forward",From:"From",Caption:"Caption",Expression:"Expression",Tab:"Tab",Tabs:"Tabs",EnterExpressionName:"Enter expression name",EnterExpressionToFilterWith:"Enter expression to filter results with",SelectTab:"Select Tab",SelectAll:"Select All",PageUrl:"Search page URL",ErrorSavingToDevice:"Error while saving the information to your device",ErrorReadingFromDevice:"Error while reading the information from your device",AppIntro:"Speak with a product specialist who can answer your questions about Coveo and help you decide which Coveo solution is right for you. Or, try a live demo !",TryDemo:"Try the demo",ContactUs:"Contact us",NewToCoveo:"New to Coveo?",LetUsHelpGetStarted:"Let us help you get started",LikesThis:"{0} like<sn>s</sn> this.",CannotConnectSearchPage:"Cannot connect to your search page",AreYouSureDeleteFilter:"Are you sure you want to delete the filter {0} with the expression {1}",OnlineHelp:"Online Help",Done:"Done",SaveFacetState:"Save this facet state",ClearFacetState:"Clear facet state",DisplayingTheOnlyMessage:"Displaying the only message in this conversation",NoNetworkConnection:"No network connection",UnknownConnection:"Unknown connection",EthernetConnection:"Ethernet connection",WiFi:"WiFi connection",CELL:"Cellular connection",CELL_2G:"Cellular 2G connection",CELL_3G:"Cellular 3G connection",CELL_4G:"Cellular 4G connection",Relevance:"Relevance",Date:"Date",Amount:"Amount",QueryExceptionNoException:"No exception",QueryExceptionInvalidSyntax:"Invalid syntax",QueryExceptionInvalidCustomField:"Invalid custom field",QueryExceptionInvalidDate:"Invalid date",QueryExceptionInvalidExactPhrase:"Invalid exact phrase",QueryExceptionInvalidDateOp:"Invalid date operator",QueryExceptionInvalidNear:"Invalid NEAR operator",QueryExceptionInvalidWeightedNear:"Invalid weighted NEAR",QueryExceptionInvalidTerm:"Invalid term",QueryExceptionTooManyTerms:"Too many terms",QueryExceptionWildcardTooGeneral:"Wildcard too general",QueryExceptionInvalidSortField:"Invalid sort field",QueryExceptionInvalidSmallStringOp:"Invalid small string operator",QueryExceptionRequestedResultsMax:"Requested results maximum",QueryExceptionAggregatedMirrorDead:"Aggregated mirror is offline",QueryExceptionAggregatedMirrorQueryTimeOut:"Aggregated mirror query timeout",QueryExceptionAggregatedMirrorInvalidBuildNumber:"Aggregated mirror invalid build number",QueryExceptionAggregatedMirrorCannotConnect:"Aggregated mirror cannot connect",QueryExceptionNotEnoughLeadingCharsWildcard:"Not enough leading character wildcard",QueryExceptionSecurityInverterNotFound:"Security inverter not found",QueryExceptionSecurityInverterAccessDenied:"Security inverter access denied",QueryExceptionAggregatedMirrorCannotImpersonate:"Aggregated mirror cannot impersonate",QueryExceptionUnexpected:"Unexpected",QueryExceptionAccessDenied:"Access denied",QueryExceptionSuperUserTokenInvalid:"Super user token invalid",QueryExceptionSuperUserTokenExpired:"Super user token is expired",QueryExceptionLicenseQueriesExpired:"Queries license expired",QueryExceptionLicenseSuperUserTokenNotSupported:"License super user token not supported",QueryExceptionInvalidSession:"Invalid session",QueryExceptionInvalidDocument:"Invalid document",QueryExceptionSearchDisabled:"Search disabled",FileType:"File type",ShowAttachment:"Show attachment",OnFeed:"on {0}'s feed.",Author:"Author",NoTitle:"No title",CurrentSelections:"Current selections",AllContent:"All content",CancelLastAction:"Cancel last action",SearchTips:"Search tips",CheckSpelling:"Check the spelling of your keywords.",TryUsingFewerKeywords:"Try using fewer, different or more general keywords.",SelectFewerFilters:"Select fewer filters to broaden your search.",Document:"Document",Time:"Time",StartDate:"Start Date",StartTime:"Start Time",DurationTitle:"Duration",UserQuery:"User query",ShowUserActions:"Show User Actions",NoData:"No data available",EventType:"Event type",GoToFullSearch:"Full search",GoToEdition:"Customize Panel",RemoveContext:"Remove context",BoxAttachToCase:"Attach to case",AttachToCase:"Attach to case",Attach:"Attach",Attached:"Attached",Detach:"Detach",Details:"Details",AdditionalFilters:"Additional filters",SelectNonContextualSearch:"Remove the context from the current record to broaden your search",CopyPasteToSupport:"Copy paste this message to the Coveo Support team for more information.",FollowQueryDescription:"Alert me for changes to the search results of this query.",SearchAlerts_Panel:"Manage Alerts",SearchAlerts_PanelDescription:"View and manage your search alerts.",SearchAlerts_PanelNoSearchAlerts:"You have no subscriptions.",SearchAlerts_Fail:"The Search Alerts service is currently unavailable.",SearchAlerts_Type:"Type",SearchAlerts_Content:"Content",SearchAlerts_Actions:"Action",EmptyQuery:"<empty>",SearchAlerts_Type_followQuery:"Query",SearchAlerts_Type_followDocument:"Item",SearchAlerts_unFollowing:"Stop Following",SearchAlerts_follow:"Follow",SearchAlerts_followed:"Followed",SearchAlerts_followQuery:"Follow Query",Subscription_StopFollowingQuery:"Stop Following Query",SearchAlerts_Frequency:"When",SubscriptionsManageSubscriptions:"Manage Alerts",SubscriptionsMessageFollowQuery:"You will receive alerts when the query <b>{0}</b> returns new or updated items.",SubscriptionsMessageFollow:"You will receive alerts for changes to the item <b>{0}</b>.",Expiration:"Expiration",Monthly:"Monthly",Daily:"Daily",Monday:"Monday",Tuesday:"Tuesday",Wednesday:"Wednesday",Thursday:"Thursday",Friday:"Friday",Saturday:"Saturday",Sunday:"Sunday",NextDay:"Next {0}",LastDay:"Last {0}",StartTypingCaseForSuggestions:"Describe your problem to see possible solutions",ExportToExcel:"Export to Excel",ExportToExcelDescription:"Export search results to Excel",CaseCreationNoResults:"No recommended solutions were found",SortBy:"Sort by",BoxCreateArticle:"Create Article",Facets:"Facets",AdvancedSearch:"Advanced Search",Keywords:"Keywords",AllTheseWords:"All these words",ExactPhrase:"This exact phrase",AnyOfTheseWords:"Any of these words",NoneOfTheseWords:"None of these words",Anytime:"Anytime",InTheLast:"In the last",Days:"days",Months:"months",Month:"Month",Year:"Year",Between:"Between",Language:"Language",Size:"Size",AtLeast:"at least",AtMost:"at most",Contains:"contains",DoesNotContain:"does not contain",Matches:"matches",Bytes:"bytes",card:"Card",table:"Table",ResultLinks:"Result links",EnableQuerySyntax:"Enable query syntax",On:"On",Off:"Off",Automatic:"Automatic",ResultsPerPage:"Results per page",PreviousMonth:"Previous month",NextMonth:"Next month",Title:"Title",FiltersInAdvancedSearch:"Filters in Advanced Search",NoEndpoints:"{0} has no registered endpoints.",InvalidToken:"The token used is invalid.",AddSources:"You will need to add sources in your index, or wait for the created sources to finish indexing.",TryAgain:"Please try again.",CoveoOnlineHelp:"Coveo Online Help",CannotAccess:"{0} cannot be accessed.",CoveoOrganization:"Coveo Organization",SearchAPIDuration:"Search API Duration: {0}",LastUpdated:"Last updated",AllDates:"All dates",WithinLastDay:"Within last day",WithinLastWeek:"Within last week",WithinLastMonth:"Within last month",WithinLastYear:"Within last year",RelevanceInspector:"Relevance Inspector",KeywordInCategory:'{0} <span class="coveo-omnibox-suggestion-category">in {1}</span>',Result:"Result",ResultCount:"{0} result<pl>s</pl>",ShowingResults:"{0} result<pl>s</pl>",ShowingResultsWithQuery:"{0} result<pl>s</pl> for {1}",NumberOfVideos:"Number of videos",AllCategories:"All Categories",Recommended:"Recommended",Featured:"Featured",CoveoHomePage:"Coveo Home page",SizeValue:"Size value",UnitMeasurement:"Unit of measurement",Toggle:"Toggle",FilterOn:"Filter on {0}",RemoveFilterOn:"Remove inclusion filter on {0}",Enter:"Enter",InsertAQuery:"Insert a query",PressEnterToSend:"Press enter to send",SortResultsBy:"Sort results by {0}",SortResultsByAscending:"Sort by {0} in ascending order",SortResultsByDescending:"Sort by {0} in descending order",DisplayResultsAs:"Display results as {0}",FacetTitle:"{0} facet",IncludeValueWithResultCount:"Inclusion filter on {0}; {1}",ExcludeValueWithResultCount:"Exclusion filter on {0}; {1}",PageNumber:"Page {0}",DisplayResultsPerPage:"Display {0} results per page",GroupByAndFacetRequestsCannotCoexist:"The query is invalid because it contains both Group By and Facet requests. Ensure that the search interface does not initialize DynamicFacet components alongside Facet components (or alongside any component extending the Facet component, such as FacetRange or FacetSlider).",MustContain:"Must contain:",Missing:"Missing:",Filters:"Filters",FiltersDropdown:"Filters dropdown",OpenFiltersDropdown:"Open the filters dropdown",CloseFiltersDropdown:"Close the filters dropdown",NoValuesFound:"No values found.",To:"to",DeselectFilterValues:"Deselect all active filters on {0} field",Rated:"Rated {0} out of {1} star<pl>s</pl>",RatedBy:"by {0} user<pl>s</pl>",NoRatings:"No ratings",Pagination:"Pagination",ThumbnailOf:'Thumbnail of "{0}"',CollapsedUriParts:"Collapsed URI parts",HierarchicalFacetValueIndentedUnder:"{0} under {1}",HierarchicalFacetValuePathPrefix:"in",UsefulnessFeedbackRequest:"Was this useful?",UsefulnessFeedbackThankYou:"Thanks for your feedback!",UsefulnessFeedbackExplainWhy:"Explain why",UsefulnessFeedbackExplainWhyImperative:"Explain why",UsefulnessFeedbackDoesNotAnswer:"This didn't answer my question at all",UsefulnessFeedbackPartiallyAnswers:"This only partially answered my question",UsefulnessFeedbackWasNotAQuestion:"My request wasn't meant to be perceived as a question",Yes:"Yes",No:"No",Other:"Other",Send:"Send",UsefulnessFeedbackReason:"Reason",AnswerSnippet:"Answer to your question",AnswerSpecificSnippet:'Answer to "{0}"',SuggestedQuestions:"People also ask",ExpandQuestionAnswer:'View answer for "{0}"',MoreValuesAvailable:"additional values are available",Breadcrumb:"Active filters",OrganizationIsPaused:"Your Coveo organization is paused due to inactivity and search is currently unavailable.",OrganizationWillResume:"Your organization is resuming and will be available shortly.",UpdatingResults:"Updating results"};t.defaultLanguage=i,t.setLanguageAfterPageLoaded=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(26),o=n(0);String.toLocaleString=i.LocaleString;var r=/<pl>(((?!<\/pl>).)*)<\/pl>/g,s=/<sn>(((?!<\/sn>).)*)<\/sn>/g;t.L10N={format:function(e){for(var n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];var r=e.toLocaleString();if(r==e){var s=e.toUpperCase().toLocaleString(),a=e.toLowerCase().toLocaleString(),u=(e.charAt(0).toUpperCase()+e.toLowerCase().slice(1)).toLocaleString();s!=e.toUpperCase().toLocaleString()?r=s:a!=e.toLowerCase().toLocaleString()?r=a:u!=e.charAt(0).toUpperCase()+e.toLowerCase().slice(1)&&(r=u)}if(n.length>0){var l=o.last(n);(o.isBoolean(l)||o.isNumber(l))&&(n.pop(),r=t.L10N.formatPlSn(r,l)),o.each(n,function(e,t){return r=r.replace("{"+t+"}",e)})}else r=r.replace(/{[0-9]}|<pl>[a-zA-Z]+<\/pl>|<sn>|<\/sn>/g,"").trim();return r},formatPlSn:function(e,t){return e=(o.isBoolean(t)?t:t>1)?e.replace(r,"$1").replace(s,""):e.replace(r,"").replace(s,"$1")}}},function(e,t,n){"use strict";var i=this&&this.__assign||Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},o=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))(function(o,r){function s(e){try{u(i.next(e))}catch(e){r(e)}}function a(e){try{u(i.throw(e))}catch(e){r(e)}}function u(e){e.done?o(e.value):new n(function(t){t(e.value)}).then(s,a)}u((i=i.apply(e,t||[])).next())})},r=this&&this.__generator||function(e,t){function n(e){return function(t){return i([e,t])}}function i(n){if(o)throw new TypeError("Generator is already executing.");for(;u;)try{if(o=1,r&&(s=r[2&n[0]?"return":n[0]?"throw":"next"])&&!(s=s.call(r,n[1])).done)return s;switch(r=0,s&&(n=[0,s.value]),n[0]){case 0:case 1:s=n;break;case 4:return u.label++,{value:n[1],done:!1};case 5:u.label++,r=n[1],n=[0];continue;case 7:n=u.ops.pop(),u.trys.pop();continue;default:if(s=u.trys,!(s=s.length>0&&s[s.length-1])&&(6===n[0]||2===n[0])){u=0;continue}if(3===n[0]&&(!s||n[1]>s[0]&&n[1]<s[3])){u.label=n[1];break}if(6===n[0]&&u.label<s[1]){u.label=s[1],s=n;break}if(s&&u.label<s[2]){u.label=s[2],u.ops.push(n);break}s[2]&&u.ops.pop(),u.trys.pop();continue}n=t.call(e,u)}catch(e){n=[6,e],r=0}finally{o=s=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}var o,r,s,a,u={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return a={next:n(0),throw:n(1),return:n(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a};Object.defineProperty(t,"__esModule",{value:!0});var s=n(0),a=n(5),u=n(9),l=n(326),c=n(43),p=n(4),d=n(66),h=function(){function e(e){this.options=e,this.logger=new u.Logger(this);var t={accessToken:this.options.accessToken.token};this.endpointCaller=new l.AnalyticsEndpointCaller(t),this.organization=e.organization}return e.getURLFromSearchEndpoint=function(e){return e&&e.options&&e.options.restUri?e.options.restUri.replace(/^(https?:\/\/)platform/,"$1analytics").split("/rest")[0]+"/rest/ua":this.DEFAULT_ANALYTICS_URI},e.prototype.getCurrentVisitId=function(){return this.visitId},e.prototype.getCurrentVisitIdPromise=function(){var e=this;return new Promise(function(t,n){if(e.getCurrentVisitId())t(e.getCurrentVisitId());else{var i=e.buildAnalyticsUrl("/analytics/visit");e.getFromService(i,{}).then(function(n){e.visitId=n.id,t(e.visitId)}).catch(function(e){n(e)})}})},e.prototype.sendSearchEvents=function(e){if(e.length>0)return this.logger.info("Logging analytics search events",e),this.sendToService(e,"searches","searchEvents")},e.prototype.sendDocumentViewEvent=function(e){return a.Assert.exists(e),this.logger.info("Logging analytics document view",e),this.sendToService(e,"click","clickEvent")},e.prototype.sendCustomEvent=function(e){return a.Assert.exists(e),this.logger.info("Logging analytics custom event",e),this.sendToService(e,"custom","customEvent")},e.prototype.getTopQueries=function(e){var t=this.buildAnalyticsUrl("/stats/topQueries");return this.getFromService(t,e)},e.prototype.clearCookies=function(){(new d.AnalyticsInformation).clear()},e.prototype.sendToService=function(t,n,i){return o(this,void 0,void 0,function(){var o,s,a,u,l;return r(this,function(r){switch(r.label){case 0:return null==e.pendingRequest?[3,2]:[4,e.pendingRequest];case 1:r.sent(),r.label=2;case 2:o=this.getURL(n),s=this.executeRequest(o,t),r.label=3;case 3:return r.trys.push([3,5,,8]),[4,s];case 4:return a=r.sent(),e.pendingRequest=null,this.handleAnalyticsEventResponse(a.data),[2,a.data];case 5:return u=r.sent(),e.pendingRequest=null,this.isAnalyticsTokenExpired(u)?[4,this.options.accessToken.doRenew()]:[3,7];case 6:if(l=r.sent())return[2,this.sendToService(t,n,i)];r.label=7;case 7:throw u;case 8:return[2]}})})},e.prototype.isAnalyticsTokenExpired=function(e){return null!=e&&400===e.statusCode&&e.data&&"InvalidToken"===e.data.type},e.prototype.executeRequest=function(t,n){var i=this.endpointCaller.call({errorsAsSuccess:!1,method:"POST",queryString:t.queryNormalized,requestData:n,url:t.path,responseType:"text",requestDataType:"application/json"});return i?(e.pendingRequest=i,i):Promise.resolve({data:{visitId:"",visitorId:""},duration:0})},e.prototype.getURL=function(t){var n=e.CUSTOM_ANALYTICS_VERSION||e.DEFAULT_ANALYTICS_VERSION;return c.UrlUtils.normalizeAsParts({paths:[this.options.serviceUrl,n,"/analytics/",t],query:{org:this.organization}})},e.prototype.getFromService=function(e,t){var n=i({},t,{access_token:this.options.accessToken.token});return this.endpointCaller.call({errorsAsSuccess:!1,method:"GET",queryString:this.options.organization?["org="+p.Utils.safeEncodeURIComponent(this.options.organization)]:[],requestData:n,responseType:"json",url:e}).then(function(e){return e.data})},e.prototype.handleAnalyticsEventResponse=function(e){var t;return e.visitId?t=e.visitId:e.searchEventResponses&&(t=s.first(e.searchEventResponses).visitId),t&&(this.visitId=t),e},e.prototype.buildAnalyticsUrl=function(t){return c.UrlUtils.normalizeAsString({paths:[this.options.serviceUrl,e.CUSTOM_ANALYTICS_VERSION||e.DEFAULT_ANALYTICS_VERSION,t]})},e.DEFAULT_ANALYTICS_URI="https://analytics.cloud.coveo.com/rest/ua",e.DEFAULT_ANALYTICS_VERSION="v15",e.CUSTOM_ANALYTICS_VERSION=void 0,e}();t.AnalyticsEndpoint=h},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=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])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n(5),r=n(16),s=n(1),a=n(42),u=n(31),l=n(45),c=n(4),p=n(0),d=n(13),h=n(10),f=n(120),m=n(18),y=function(e){function t(n,i,a,u,l){var c=e.call(this,n,t.ID)||this;return c.window=i,c.queryStateModel=a,c.queryController=u,c.initialHashChange=!1,c.willUpdateHash=!1,o.Assert.exists(c.queryStateModel),o.Assert.exists(c.queryController),s.$$(c.element).on(r.InitializationEvents.restoreHistoryState,function(){c.logger.trace("Restore history state. Update model"),c.updateModelFromHash(),c.initialHashChange=!1,c.lastState=c.queryStateModel.getAttributes()}),s.$$(c.element).on(c.queryStateModel.getEventName(m.Model.eventTypes.all),function(){c.logger.trace("Query model changed. Update hash"),c.updateHashFromModel()}),c.hashchange=function(){c.handleHashChange(),c.lastState=c.queryStateModel.getAttributes()},c.window.addEventListener("hashchange",c.hashchange),s.$$(c.element).on(r.InitializationEvents.nuke,function(){return c.handleNuke()}),c}return i(t,e),Object.defineProperty(t.prototype,"usageAnalytics",{get:function(){return this.queryController.usageAnalytics},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hashUtils",{get:function(){return this.hashUtilsModule?this.hashUtilsModule:a.HashUtils},set:function(e){this.hashUtilsModule=e},enumerable:!0,configurable:!0}),t.prototype.setState=function(e){this.setHashValues(e)},t.prototype.replaceState=function(e){var t="#"+this.hashUtils.encodeValues(e);this.window.location.replace(t)},t.prototype.setHashValues=function(e){this.logger.trace("Update history hash");var t=this.hashUtils.encodeValues(e),n=t?"#"+t:"",i=this.window.location.hash!=n;if(this.logger.trace("initialHashChange",this.initialHashChange),this.logger.trace("from",this.window.location.hash,"to",n),this.initialHashChange)this.initialHashChange=!1,i&&(this.replaceState(e),this.logger.trace("History hash modified",n));else if(i){var o=this.window.location,r=""+o.pathname+o.search+n;this.window.history.pushState("","",r),this.logger.trace("History hash created",n)}},t.prototype.debugInfo=function(){return{state:this.queryStateModel.getAttributes()}},t.prototype.handleHashChange=function(){this.logger.trace("History hash changed");var e=this.updateModelFromHash();if(p.difference(e,t.attributesThatDoNotTriggerQuery).length>0){if(this.lastState){var n=c.Utils.differenceBetweenObjects(this.queryStateModel.getAttributes(),this.lastState);this.mapStateDifferenceToUsageAnalyticsCall(n)}this.queryController.executeQuery()}},t.prototype.handleNuke=function(){this.window.removeEventListener("hashchange",this.hashchange)},t.prototype.updateHashFromModel=function(){var e=this;this.logger.trace("Model -> history hash"),this.willUpdateHash||(u.Defer.defer(function(){var t=e.queryStateModel.getAttributes();e.setHashValues(t),e.logger.debug("Saving state to hash",t),e.willUpdateHash=!1}),this.willUpdateHash=!0)},t.prototype.updateModelFromHash=function(){var e=this;this.logger.trace("History hash -> model");var t={},n=[];return p.each(this.queryStateModel.attributes,function(i,o,r){var s=e.getHashValue(o);t[o]=s,""+e.queryStateModel.get(o)!=""+s&&n.push(o)}),this.initialHashChange=!0,this.queryStateModel.setMultiple(t),n},t.prototype.getHashValue=function(e){o.Assert.isNonEmptyString(e);var t;try{var n=this.hashUtils.getHash(this.window);t=this.hashUtils.getValue(e,n)}catch(t){this.logger.error("Could not parse parameter "+e+" from URI")}return c.Utils.isUndefined(t)&&(t=this.queryStateModel.defaultAttributes[e]),t},t.prototype.mapStateDifferenceToUsageAnalyticsCall=function(e){var t=this;return this.usageAnalytics?d.QUERY_STATE_ATTRIBUTES.Q in e?void f.logSearchBoxSubmitEvent(this.usageAnalytics):d.QUERY_STATE_ATTRIBUTES.SORT in e?void f.logSortEvent(this.usageAnalytics,e[d.QUERY_STATE_ATTRIBUTES.SORT]):void p.keys(e).forEach(function(e){var n=t.extractFacetInfoFromStateDifference(e);n&&t.usageAnalytics.logSearchEvent(n.actionCause,{facetId:n.fieldName,facetField:n.fieldName,facetTitle:n.fieldName,facetValue:n.valueModified})}):(this.logger.warn("The query state has been modified directly in the URL and we couldn't log the proper analytics call."),void this.logger.warn("This is caused by an history controller that has been initialized without the usage analytics parameter."))},t.prototype.extractFacetInfoFromStateDifference=function(e){var t,n=/^f:(?!.*:not)(.*)/,i=n.exec(e),o=/^f:(.*):not/,r=o.exec(e),s=this.queryStateModel.get(e)||[],a=this.lastState[e]||[],u=s.length<a.length;if(t=u?p.first(p.difference(a,s)):p.first(p.difference(s,a)),i){var l=i[1],c=void 0;return c=u?h.analyticsActionCauseList.facetDeselect:h.analyticsActionCauseList.facetSelect,{fieldName:l,actionCause:c,valueModified:t}}if(r){var l=r[1],c=void 0;return c=u?h.analyticsActionCauseList.facetUnexclude:h.analyticsActionCauseList.facetExclude,{fieldName:l,actionCause:c,valueModified:t}}return null},t.ID="HistoryController",t.attributesThatDoNotTriggerQuery=["quickview"],t}(l.RootComponent);t.HistoryController=y},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=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])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n(41),r=n(18),s=n(9),a=n(5),u=n(16),l=n(45),c=n(1),p=n(0),d=function(e){function t(n,i,l,p){var d=e.call(this,n,t.ID)||this;return d.windoh=i,d.model=l,d.queryController=p,d.omit=[],o.localStorageExists?(d.storage=new o.LocalStorageUtils(t.ID),a.Assert.exists(d.model),a.Assert.exists(d.queryController),c.$$(d.element).on(u.InitializationEvents.restoreHistoryState,function(){return d.initModelFromLocalStorage()}),c.$$(d.element).on(d.model.getEventName(r.Model.eventTypes.all),function(){return d.updateLocalStorageFromModel()})):new s.Logger(n).info("No local storage available in current browser. LocalStorageHistoryController cannot initialize itself",d),d}return i(t,e),t.prototype.replaceState=function(e){this.storage.save(e)},t.prototype.withoutThoseAttribute=function(e){this.omit=e},t.prototype.setState=function(e){this.storage.save(e)},t.prototype.updateLocalStorageFromModel=function(){var e=p.omit(this.model.getAttributes(),this.omit);this.setState(e),this.logger.debug("Saving state to localstorage",e)},t.prototype.initModelFromLocalStorage=function(){var e=this.localStorageModel;this.model.setMultiple(e)},Object.defineProperty(t.prototype,"localStorageModel",{get:function(){var e=this,t={},n=this.storage.load()||{};return p.each(this.model.attributes,function(i,o){var r=n[o],s=e.model.defaultAttributes[o],a=void 0==r?s:r;t[o]=a}),t},enumerable:!0,configurable:!0}),t.ID="LocalStorageHistoryController",t}(l.RootComponent);t.LocalStorageHistoryController=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(22),o=n(53),r=n(0),s=function(){function e(){}return e.getFieldFromString=function(e){var t=new RegExp('@([a-z0-9_]+)\\b|\\braw\\.([a-z0-9_]+)\\b|\\braw\\[(?:"[^"]*?([a-z0-9_]+)[^"]*?"|'+"'[^']*?([a-z0-9_]+)[^']*?')\\]|data-condition-field-(?:not-)?([a-z0-9_]+)=","gi"),n=i.StringUtils.match(e,t);return r.map(n,function(e){return r.find(e.splice(1),function(e){return e})})},e.evaluateCondition=function(t,n,i){void 0===i&&(i=new o.ResponsiveComponents);var s=!0,a=e.getFieldFromString(t);return r.each(a,function(i){var o=e.evaluateMatchingFieldValues(i,t);(0!=o.length||e.evaluateFieldShouldNotBeNull(i,t))&&(s=s&&null!=n.raw[i]),s&&r.each(o,function(e){s=s&&n.raw[i].toLowerCase()==e.toLowerCase()})}),s&&e.evaluateShouldUseSmallScreen(t)&&(s=s&&i.isSmallScreenWidth()),s},e.evaluateMatchingFieldValues=function(e,t){var n=[],o=new RegExp("raw."+e+"\\s*=+\\s*[\"|']([a-zA-Z]+)[\"|']","gi"),s=new RegExp("raw[[\"|']"+e+"[\"|']]\\s*=+\\s*[\"|']([a-zA-Z]+)[\"|']","gi");return i.StringUtils.match(t,o).concat(i.StringUtils.match(t,s)).forEach(function(e){n=n.concat(e[1])}),r.unique(n)},e.evaluateFieldShouldNotBeNull=function(e,t){var n=new RegExp("raw."+e+"\\s*!=\\s*(?=null|undefined)","gi"),i=new RegExp("raw[[\"|']"+e+"[\"|']]\\s*!=\\s*(?=null|undefined)","gi");return null!=t.match(n)||null!=t.match(i)},e.evaluateShouldUseSmallScreen=function(e){return e.match(/Coveo\.DeviceUtils\.isSmallScreenWidth/gi)},e}();t.TemplateConditionEvaluator=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(4),o=n(153),r=n(8),s=n(1),a=n(2),u=n(0),l=function(){function e(e,t){this.template=e,this.scriptTag=t;var n=t.getAttribute("data-condition");if(null!=n)n=n.toString().replace(/&quot;/g,'"'),e.setConditionWithFallback(n);else{var s=this.parseFieldsAttributes();s&&i.Utils.isNonEmptyArray(s)&&(this.template.fieldsToMatch=s)}this.template.layout=this.parseLayout(),this.template.mobile=this.parseScreenSize("data-mobile"),this.template.tablet=this.parseScreenSize("data-tablet"),this.template.desktop=this.parseScreenSize("data-desktop"),this.template.fields=o.TemplateConditionEvaluator.getFieldFromString(t.innerHTML+" "+(n||"")),this.template.role=t.getAttribute("data-role"),this.template.addFields(o.TemplateConditionEvaluator.getFieldFromString(t.innerHTML+" "+n)||[]);var l=r.ComponentOptions.loadFieldsOption(t,"fields",{includeInResults:!0});null!=l&&this.template.addFields(u.map(l,function(e){return e.substr(1)})),this.template.addFields(u.map(this.template.fieldsToMatch,function(e){return e.field}));var c=u.chain(this.template.getComponentsInside(t.innerHTML)).map(function(e){return a.Initialization.getRegisteredFieldsComponentForQuery(e)}).flatten().value();this.template.addFields(c)}return e.prototype.toHtmlElement=function(e){e||(e=s.$$("code"));var t=s.$$(this.scriptTag).getAttribute("data-condition");return t&&e.setAttribute("data-condition",t),e.setHtml(this.scriptTag.innerHTML),e.el},e.prototype.parseFieldsAttributes=function(){var e=this.scriptTag.dataset;return u.chain(e).map(function(e,t){var n=t.match(/field([a-zA-Z0-9_\.]*)/i);if(n){var i=void 0;return null!=e&&"null"!=e&&""!=e&&(i=u.map(e.split(","),function(e){return e.trim()})),{field:n[1].toLowerCase(),values:i}}}).compact().value()},e.prototype.parseScreenSize=function(e){return i.Utils.parseBooleanIfNotUndefined(this.scriptTag.getAttribute(e))},e.prototype.parseLayout=function(){return this.scriptTag.getAttribute("data-layout")},e.fromString=function(e,t,n){return void 0===t&&(t={}),void 0===n&&(n=document.createElement("code")),n.innerHTML=e,null!=t.condition&&n.setAttribute("data-condition",t.condition),null!=t.layout?n.setAttribute("data-layout",t.layout):n.setAttribute("data-layout","list"),null!=t.mobile&&n.setAttribute("data-mobile",t.mobile.toString()),null!=t.tablet&&n.setAttribute("data-tablet",t.tablet.toString()),null!=t.desktop&&n.setAttribute("data-desktop",t.desktop.toString()),null!=t.fieldsToMatch&&u.each(t.fieldsToMatch,function(e){e.values?n.setAttribute("data-field-"+e.field.toLowerCase(),e.values.join(",")):n.setAttribute("data-field-"+e.field.toLowerCase(),null)}),null!=t.role&&n.setAttribute("data-role",t.role),n},e}();t.TemplateFromAScriptTag=l},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=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])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),o=this&&this.__assign||Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e};Object.defineProperty(t,"__esModule",{value:!0});var r=n(8),s=n(41),a=n(29),u=n(100),l=n(1),c=n(22),p=n(51),d=n(45),h=n(36),f=n(26),m=n(23),y=n(0);n(387);var g=n(6),v=n(388),b=n(11),S=n(390),C=n(3),w=n(27),_=function(e){function t(n,i,o,c){void 0===c&&(c=f.ModalBox);var p=e.call(this,n,t.ID)||this;return p.element=n,p.bindings=i,p.options=o,p.ModalBox=c,p.opened=!1,p.options=r.ComponentOptions.initComponentOptions(n,t,o),p.showDebugPanel=y.debounce(function(){return p.openModalBox()},100),l.$$(p.element).on(a.ResultListEvents.newResultDisplayed,function(e,t){return p.handleNewResultDisplayed(t)}),l.$$(p.element).on(u.DebugEvents.showDebugPanel,function(e,t){return p.handleShowDebugPanel(t)}),l.$$(p.element).on(b.QueryEvents.querySuccess,function(e,t){return p.handleQuerySuccess(t)}),l.$$(p.element).on(b.QueryEvents.newQuery,function(){return p.handleNewQuery()}),p.localStorageDebug=new s.LocalStorageUtils("DebugPanel"),p.collapsedSections=p.localStorageDebug.load()||[],p}return i(t,e),t.prototype.debugInfo=function(){return null},t.prototype.addInfoToDebugPanel=function(e){null==this.stackDebug&&(this.stackDebug={}),this.stackDebug=o({},this.stackDebug,e)},t.prototype.handleNewResultDisplayed=function(e){var t=this;l.$$(e.item).on("dblclick",function(n){t.handleResultDoubleClick(n,e)})},t.prototype.handleResultDoubleClick=function(e,t){if(e.altKey){var n=t.result.index,i=t.item.template,r=function(e){return null!=e?y.find(e.results,function(e){return e.index==n}):t.result},s=o({},new S.DebugForResult(this.bindings).generateDebugInfoForResult(t.result),{findResult:r,template:this.templateToJson(i)});this.addInfoToDebugPanel(s),this.showDebugPanel()}},t.prototype.handleQuerySuccess=function(e){this.opened&&(this.stackDebug&&this.stackDebug.findResult&&this.addInfoToDebugPanel(new S.DebugForResult(this.bindings).generateDebugInfoForResult(this.stackDebug.findResult(e.results))),this.redrawDebugPanel(),this.hideAnimationDuringQuery())},t.prototype.handleNewQuery=function(){this.opened&&this.showAnimationDuringQuery()},t.prototype.handleShowDebugPanel=function(e){this.addInfoToDebugPanel(e),this.showDebugPanel()},t.prototype.buildStackPanel=function(){var e=this,n=l.$$("div",{className:"coveo-debug"}),i=y.chain(this.stackDebug).omit("findResult").keys().value(),o=y.pairs(i);o=o.sort(function(e,n){var i=y.indexOf(t.customOrder,e[1]),o=y.indexOf(t.customOrder,n[1]);return-1!=i&&-1!=o?i-o:-1!=i?-1:-1!=o?1:e[0]-n[0]});var r={};return y.forEach(o,function(t){var i=e.buildSection(t[1]),o=e.buildStackPanelSection(e.stackDebug[t[1]],e.stackDebug.result);i.container.append(o.section),null!=o.json&&(r[t[1]]=o.json),n.append(i.dom.el)}),{body:n.el,json:r}},t.prototype.getModalBody=function(){return this.modalBox&&this.modalBox.content?l.$$(this.modalBox.content).find(".coveo-modal-body"):null},t.prototype.redrawDebugPanel=function(){var e=this.buildStackPanel(),t=this.getModalBody();t&&(l.$$(t).empty(),l.$$(t).append(e.body)),this.updateSearchFunctionnality(e)},t.prototype.openModalBox=function(){var e=this,t=this.buildStackPanel();this.opened=!0,this.modalBox=this.ModalBox.open(t.body,{title:g.l("Debug"),className:"coveo-debug",titleClose:!0,overlayClose:!0,validation:function(){return e.onCloseModalBox(),!0},sizeMod:"big",body:this.bindings.root});var n=l.$$(this.modalBox.wrapper).find(".coveo-modal-header");n?this.debugHeader?(this.debugHeader.moveTo(n),this.updateSearchFunctionnality(t)):this.debugHeader=new v.DebugHeader(this,n,function(n){return e.search(n,t.body)},this.stackDebug):this.logger.warn("No title found in modal box.")},t.prototype.updateSearchFunctionnality=function(e){var t=this;this.debugHeader&&(this.debugHeader.setNewInfoToDebug(this.stackDebug),this.debugHeader.setSearch(function(n){return t.search(n,e.body)}))},t.prototype.onCloseModalBox=function(){this.stackDebug=null,this.opened=!1},t.prototype.buildStackPanelSection=function(e,t){if(e instanceof HTMLElement)return{section:e};if(y.isFunction(e))return this.buildStackPanelSection(e(t),t);var n=this.toJson(e);return{section:this.buildProperty(n),json:n}},t.prototype.findInProperty=function(e,t){var n=this,i=l.$$(e),o=-1!=e.label.indexOf(t);if(o?this.highlightSearch(e.labelDom,t):this.removeHighlightSearch(e.labelDom),i.hasClass("coveo-property-object")){i.toggleClass("coveo-search-match",o);var r=e.buildKeys(),s=!1;return y.each(r,function(e){s=n.findInProperty(e,t)||s}),i.toggleClass("coveo-search-submatch",s),o||s}return-1!=e.values.indexOf(t)?(this.highlightSearch(e.valueDom,t),o=!0):this.removeHighlightSearch(e.valueDom),i.toggleClass("coveo-search-match",o),o},t.prototype.buildSection=function(e){var t=this,n=l.$$("div",{className:"coveo-section coveo-"+e+"-section"}),i=l.$$("div",{className:"coveo-section-header"});l.$$(i).text(e),n.append(i.el);var o=l.$$("div",{className:"coveo-section-container"});return n.append(o.el),y.contains(this.collapsedSections,e)&&l.$$(n).addClass("coveo-debug-collapsed"),i.on("click",function(){l.$$(n).toggleClass("coveo-debug-collapsed"),y.contains(t.collapsedSections,e)?t.collapsedSections=y.without(t.collapsedSections,e):t.collapsedSections.push(e),t.localStorageDebug.save(t.collapsedSections)}),{dom:n,header:i,container:o}},t.prototype.buildProperty=function(e,t){return e instanceof Promise?this.buildPromise(e,t):!y.isArray(e)&&!y.isObject(e)||y.isString(e)?this.buildBasicProperty(e,t):this.buildObjectProperty(e,t)},t.prototype.buildPromise=function(e,t){var n=this,i=l.$$("div",{className:"coveo-property coveo-property-promise"});return e.then(function(e){var o=n.buildProperty(e,t);i.replaceWith(o)}),i.el},t.prototype.buildObjectProperty=function(e,t){var n=this,i=l.$$("div",{className:"coveo-property coveo-property-object"}),o=l.$$("div",{className:"coveo-property-value"}),r=y.keys(e);y.isArray(e)||r.sort();var s,a=function(){return null==s&&(s=[],y.each(r,function(t){var i=n.buildProperty(e[t],t);null!=i&&(s.push(i),o.append(i))})),s};if(i.el.buildKeys=a,null!=t){var u=l.$$("div",{className:"coveo-property-label"});u.text(t),i.el.labelDom=u.el,i.append(u.el),0!=r.length&&(i.addClass("coveo-collapsible"),u.on("click",function(){a();var e=i.el.className.split(/\s+/);y.contains(e,"coveo-expanded")?e=y.without(e,"coveo-expanded"):e.push("coveo-expanded"),i.el.className=e.join(" ")}))}else a();if(0==r.length){var c=y.without(i.el.className.split(/\s+/),"coveo-property-object");c.push("coveo-property-basic"),i.el.className=c.join(" "),y.isArray(e)?o.setHtml("[]"):o.setHtml("{}"),i.el.values=""}return i.el.label=null!=t?t.toLowerCase():"",i.append(o.el),i.el},t.prototype.buildBasicProperty=function(e,t){var n=this,i=l.$$("div",{className:"coveo-property coveo-property-basic"});if(null!=t){var o=l.$$("div",{className:"coveo-property-label"});o.text(t),i.append(o.el),i.el.labelDom=o.el}var r=null!=e?e.toString():String(e);null!=e&&null!=e.ref&&(e=e.ref);var s=l.$$("div");s.text(r),s.on("dblclick",function(){n.selectElementText(s.el)}),i.append(s.el),i.el.valueDom=s;var a=["coveo-property-value"];return y.isString(e)&&a.push("coveo-property-value-string"),(y.isNull(e)||y.isUndefined(e))&&a.push("coveo-property-value-null"),y.isNumber(e)&&a.push("coveo-property-value-number"),y.isBoolean(e)&&a.push("coveo-property-value-boolean"),y.isDate(e)&&a.push("coveo-property-value-date"),y.isObject(e)&&a.push("coveo-property-value-object"),y.isArray(e)&&a.push("coveo-property-value-array"),s.el.className=a.join(" "),i.el.label=null!=t?t.toLowerCase():"",i.el.values=r.toLowerCase(),i.el},t.prototype.toJson=function(e,n,i){var o=this;if(void 0===n&&(n=0),void 0===i&&(i=[]),e instanceof h.BaseComponent||e instanceof p.SearchEndpoint)return this.componentToJson(e,n);if(e instanceof HTMLElement)return this.htmlToJson(e);if(e instanceof w.Template)return this.templateToJson(e);if(e instanceof Promise)return e.then(function(e){return o.toJson(e,n,i)});if(e==window)return this.toJsonRef(e);if(y.isArray(e)||y.isObject(e)){if(y.contains(i,e))return this.toJsonRef(e,"< RECURSIVE >");if(n>=t.maxDepth)return this.toJsonRef(e);if(y.isArray(e))return y.map(e,function(t,r){return o.toJson(t,n+1,i.concat([e]))});if(y.isDate(e))return this.toJsonRef(e,m.format(e,"F"));var r={};return y.each(e,function(t,s){r[s]=o.toJson(t,n+1,i.concat([e]))}),r.ref,r}return e},t.prototype.toJsonRef=function(e,t){return t=new String(t||e),t.ref=e,t},t.prototype.componentToJson=function(e,t){return void 0===t&&(t=0),y.keys(e.options).length>0?this.toJson(e.options,t):this.toJsonRef(e.options,new String("No options"))},t.prototype.htmlToJson=function(e){if(null!=e)return{tagName:e.tagName,id:e.id,classList:e.className.split(/\s+/)}},t.prototype.templateToJson=function(e){if(null==e)return null;var t=e.element,n={type:e.getType()};return null!=t&&(n.id=t.id,n.condition=t.attributes["data-condition"],n.content=t.innerText),n},t.prototype.selectElementText=function(e){if(window.getSelection&&document.createRange){var t=window.getSelection(),n=document.createRange();n.selectNodeContents(e),t.removeAllRanges(),t.addRange(n)}else if("createTextRange"in document.body){var i=document.body.createTextRange();i.moveToElementText(e),i.select()}},t.prototype.search=function(e,t){var n=this;y.isEmpty(e)?(l.$$(t).findAll(".coveo-search-match, .coveo-search-submatch").forEach(function(e){l.$$(e).removeClass("coveo-search-match, coveo-search-submatch")}),l.$$(t).removeClass("coveo-searching")):(l.$$(t).addClass("coveo-searching-loading"),setTimeout(function(){var i=l.$$(t).findAll(".coveo-section .coveo-section-container > .coveo-property");y.each(i,function(t){n.findInProperty(t,e)}),l.$$(t).addClass("coveo-searching"),l.$$(t).removeClass("coveo-searching-loading")}))},t.prototype.highlightSearch=function(e,t){var n;if(e instanceof HTMLElement?n=e:e instanceof l.Dom&&(n=e.el),null!=n&&null!=n.innerText){var i=n.innerText.split(new RegExp("(?="+c.StringUtils.regexEncode(t)+")","gi"));n.innerHTML="",i.forEach(function(e){var i,o=new RegExp("("+c.StringUtils.regexEncode(t)+")","i"),r=e.match(o);null!=r?(i=l.$$("span",{className:"coveo-debug-highlight"}),i.text(r[1]),n.appendChild(i.el),i=l.$$("span"),i.text(e.substr(r[1].length)),n.appendChild(i.el)):(i=l.$$("span"),i.text(e),n.appendChild(i.el))})}},t.prototype.removeHighlightSearch=function(e){null!=e&&(e.innerHTML=e.innerText)},t.prototype.showAnimationDuringQuery=function(){l.$$(this.modalBox.content).addClass("coveo-debug-loading")},t.prototype.hideAnimationDuringQuery=function(){l.$$(this.modalBox.content).removeClass("coveo-debug-loading")},t.ID="Debug",t.doExport=function(){C.exportGlobally({Debug:t})},t.options={enableDebug:r.ComponentOptions.buildBooleanOption({defaultValue:!1})},t.customOrder=["error","queryDuration","result","fields","rankingInfo","template","query","results","state"],t.durationKeys=["indexDuration","proxyDuration","clientDuration","duration"],t.maxDepth=10,t}(d.RootComponent);t.Debug=_},function(e,t,n){var i=n(104),o=n(38).document,r=i(o)&&i(o.createElement);e.exports=function(e){return r?o.createElement(e):{}}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var i=n(78),o=n(400),r=n(162),s=n(109)("IE_PROTO"),a=function(){},u=function(){var e,t=n(156)("iframe"),i=r.length;for(t.style.display="none",n(407).appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write("<script>document.F=Object<\/script>"),e.close(),u=e.F;i--;)delete u.prototype[r[i]];return u()};e.exports=Object.create||function(e,t){var n;return null!==e?(a.prototype=i(e),n=new a,a.prototype=null,n[s]=e):n=u(),void 0===t?n:o(n,t)}},function(e,t,n){var i=n(39),o=n(38),r=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(e.exports=function(e,t){return r[e]||(r[e]=void 0!==t?t:{})})("versions",[]).push({version:i.version,mode:n(160)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(e,t){e.exports=!0},function(e,t){var n=0,i=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+i).toString(36))}},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,n){"use strict";var i=n(160),o=n(58),r=n(420),s=n(59),a=n(82),u=n(421),l=n(164),c=n(422),p=n(46)("iterator"),d=!([].keys&&"next"in[].keys()),h=function(){return this};e.exports=function(e,t,n,f,m,y,g){u(n,t,f);var v,b,S,C=function(e){if(!d&&e in x)return x[e];switch(e){case"keys":case"values":return function(){return new n(this,e)}}return function(){return new n(this,e)}},w=t+" Iterator",_="values"==m,O=!1,x=e.prototype,E=x[p]||x["@@iterator"]||m&&x[m],A=E||C(m),T=m?_?C("entries"):A:void 0,R="Array"==t?x.entries||E:E;if(R&&(S=c(R.call(new e)))!==Object.prototype&&S.next&&(l(S,w,!0),i||"function"==typeof S[p]||s(S,p,h)),_&&E&&"values"!==E.name&&(O=!0,A=function(){return E.call(this)}),i&&!g||!d&&!O&&x[p]||s(x,p,A),a[t]=A,a[w]=h,m)if(v={values:_?A:C("values"),keys:y?A:C("keys"),entries:T},g)for(b in v)b in x||r(x,b,v[b]);else o(o.P+o.F*(d||O),t,v);return v}},function(e,t,n){var i=n(103).f,o=n(80),r=n(46)("toStringTag");e.exports=function(e,t,n){e&&!o(e=n?e:e.prototype,r)&&i(e,r,{configurable:!0,value:t})}},function(e,t){e.exports="\t\n\v\f\r   ᠎             　\u2028\u2029\ufeff"},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(4),o=n(20),r=n(0),s=function(){function e(){}return e.detectPublicPath=function(){this.pathHasBeenConfigured||(n.p=e.getDynamicPublicPath())},e.getDynamicPublicPath=function(){var e=this.getCurrentScript(),t=this.getCoveoScript();if(this.isScript(t)||new o.Logger(this).warn("You should add the class coveo-script on the script tag that includes the Coveo framework. Not doing so may cause the framework to not be able to auto-detect the path to load the lazy chunks in certain environments.\n        More details [here](https://docs.coveo.com/en/295/javascript-search-framework/lazy-versus-eager-component-loading#fixing-code-chunks-loading-path-issues)."),i.Utils.isNullOrUndefined(e)){if(this.isScript(t))return this.parseScriptDirectoryPath(t);var n=document.getElementsByTagName("script");return this.parseScriptDirectoryPath(n[n.length-1])}return this.parseScriptDirectoryPath(e)},e.configureResourceRoot=function(e){this.pathHasBeenConfigured=!0,n.p=e},e.reset=function(){this.pathHasBeenConfigured=!1},e.getCurrentScript=function(){return document.currentScript},e.getCoveoScript=function(){var e=this;return r.find(document.querySelectorAll(".coveo-script"),function(t){return e.isScript(t)})},e.parseScriptDirectoryPath=function(e){return e.src.replace(/\/[\w\.-]*\.js((#|\?)(.*)){0,1}$/,"/")},e.isScript=function(e){return e&&o.$$(e).is("script")},e.pathHasBeenConfigured=!1,e}();t.PublicPathUtils=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(24),o=n(111),r=n(123),s=n(5),a=n(9),u=n(10),l=n(31),c=n(1),p=n(56),d=n(169),h=n(13),f=n(7),m=n(98),y=n(21),g=n(0),v=n(66),b=function(){function e(e,t,n,o,r,u,l,c,p,d){this.endpoint=e,this.rootElement=t,this.userId=n,this.userDisplayName=o,this.anonymous=r,this.splitTestRunName=u,this.splitTestRunVersion=l,this.originLevel1=c,this.sendToCloud=p,this.bindings=d,this.isContextual=!1,this.originContext="Search",this.language=String.locale,this.device=i.DeviceUtils.getDeviceName(),this.mobile=i.DeviceUtils.isMobileDevice(),s.Assert.exists(e),s.Assert.exists(t),s.Assert.isNonEmptyString(this.language),s.Assert.isNonEmptyString(this.device),s.Assert.isNonEmptyString(this.originLevel1),this.logger=new a.Logger(this)}return e.prototype.isActivated=function(){return!0},e.prototype.getCurrentVisitId=function(){return this.endpoint.getCurrentVisitId()},e.prototype.getCurrentVisitIdPromise=function(){return this.endpoint.getCurrentVisitIdPromise()},e.prototype.getCurrentEventCause=function(){return null!=this.pendingSearchEvent?this.pendingSearchEvent.getEventCause():null!=this.pendingSearchAsYouTypeSearchEvent?this.pendingSearchAsYouTypeSearchEvent.getEventCause():null},e.prototype.getCurrentEventMeta=function(){return null!=this.pendingSearchEvent?this.pendingSearchEvent.getEventMeta():null!=this.pendingSearchAsYouTypeSearchEvent?this.pendingSearchAsYouTypeSearchEvent.getEventMeta():null},e.prototype.logSearchEvent=function(e,t){var n=this.buildMetaObject(t);this.pushSearchEvent(e,n)},e.prototype.logSearchAsYouType=function(e,t){var n=this.buildMetaObject(t);this.pushSearchAsYouTypeEvent(e,n)},e.prototype.logClickEvent=function(e,t,n,i){var o=this.buildMetaObject(t,n);return this.pushClickEvent(e,o,n,i)},e.prototype.logCustomEvent=function(e,t,n,i){var o=this.buildMetaObject(t,i);return this.pushCustomEvent(e,o,n)},e.prototype.getTopQueries=function(e){return this.endpoint.getTopQueries(e)},e.prototype.sendAllPendingEvents=function(){this.pendingSearchAsYouTypeSearchEvent&&this.pendingSearchAsYouTypeSearchEvent.sendRightNow()},e.prototype.cancelAllPendingEvents=function(){this.pendingSearchAsYouTypeSearchEvent&&(this.pendingSearchAsYouTypeSearchEvent.cancel(),this.pendingSearchAsYouTypeSearchEvent=null),this.pendingSearchEvent&&(this.pendingSearchEvent.cancel(),this.pendingSearchEvent=null)},e.prototype.getPendingSearchEvent=function(){return this.pendingSearchEvent?this.pendingSearchEvent:this.pendingSearchAsYouTypeSearchEvent?this.pendingSearchAsYouTypeSearchEvent:null},e.prototype.warnAboutSearchEvent=function(){g.isUndefined(this.pendingSearchEvent)&&g.isUndefined(this.pendingSearchAsYouTypeSearchEvent)&&(this.logger.warn("A search was triggered, but no analytics event was logged. If you wish to have consistent analytics data, consider logging a search event using the methods provided by the framework","https://docs.coveo.com/en/2726/#logging-your-own-search-events"),window.console&&console.trace&&console.trace())},e.prototype.setOriginContext=function(e){this.originContext=e},e.prototype.pushCustomEvent=function(e,t,n){var i=this.buildCustomEvent(e,t,n);return this.triggerChangeAnalyticsCustomData("CustomEvent",t,i),this.checkToSendAnyPendingSearchAsYouType(e),c.$$(this.rootElement).trigger(p.AnalyticsEvents.customEvent,{customEvent:d.APIAnalyticsBuilder.convertCustomEventToAPI(i)}),c.$$(this.rootElement).trigger(p.AnalyticsEvents.analyticsEventReady,{event:"CoveoCustomEvent",coveoAnalyticsEventData:i}),this.sendToCloud?this.endpoint.sendCustomEvent(i):Promise.resolve(null)},e.prototype.pushSearchEvent=function(e,t){var n=this;if(s.Assert.exists(e),this.pendingSearchEvent&&this.pendingSearchEvent.getEventCause()!==e.name&&(this.pendingSearchEvent.stopRecording(),this.pendingSearchEvent=null),this.checkToSendAnyPendingSearchAsYouType(e),!this.pendingSearchEvent){var i=this.buildSearchEvent(e,t);this.triggerChangeAnalyticsCustomData("SearchEvent",t,i);var r=this.pendingSearchEvent=new o.PendingSearchEvent(this.rootElement,this.endpoint,i,this.sendToCloud);l.Defer.defer(function(){n.pendingSearchEvent=void 0,r.stopRecording()})}},e.prototype.checkToSendAnyPendingSearchAsYouType=function(e){this.eventIsNotRelatedToSearchbox(e.name)?this.sendAllPendingEvents():this.cancelAnyPendingSearchAsYouTypeEvent()},e.prototype.pushSearchAsYouTypeEvent=function(e,t){this.cancelAnyPendingSearchAsYouTypeEvent();var n=this.buildSearchEvent(e,t);this.triggerChangeAnalyticsCustomData("SearchEvent",t,n),this.pendingSearchAsYouTypeSearchEvent=new r.PendingSearchAsYouTypeSearchEvent(this.rootElement,this.endpoint,n,this.sendToCloud)},e.prototype.pushClickEvent=function(e,t,n,i){var o=this.buildClickEvent(e,t,n,i);return this.checkToSendAnyPendingSearchAsYouType(e),this.triggerChangeAnalyticsCustomData("ClickEvent",t,o,{resultData:n}),s.Assert.isNonEmptyString(o.searchQueryUid),s.Assert.isNonEmptyString(o.collectionName),s.Assert.isNonEmptyString(o.sourceName),s.Assert.isNumber(o.documentPosition),c.$$(this.rootElement).trigger(p.AnalyticsEvents.documentViewEvent,{documentViewEvent:d.APIAnalyticsBuilder.convertDocumentViewToAPI(o)}),c.$$(this.rootElement).trigger(p.AnalyticsEvents.analyticsEventReady,{event:"CoveoClickEvent",coveoAnalyticsEventData:o}),this.sendToCloud?this.endpoint.sendDocumentViewEvent(o):Promise.resolve(null)},e.prototype.buildAnalyticsEvent=function(e,t){return{actionCause:e.name,actionType:e.type,username:this.userId,userDisplayName:this.userDisplayName,anonymous:this.anonymous,device:this.device,mobile:this.mobile,language:this.language,responseTime:void 0,originLevel1:this.originLevel1,originLevel2:this.getOriginLevel2(this.rootElement),originLevel3:document.referrer,originContext:this.originContext,customData:g.keys(t).length>0?t:void 0,userAgent:navigator.userAgent,clientId:(new v.AnalyticsInformation).clientId}},e.prototype.buildSearchEvent=function(e,t){return this.merge(this.buildAnalyticsEvent(e,t),{searchQueryUid:void 0,pipeline:void 0,splitTestRunName:this.splitTestRunName,splitTestRunVersion:this.splitTestRunVersion,queryText:void 0,advancedQuery:void 0,results:void 0,resultsPerPage:void 0,pageNumber:void 0,didYouMean:void 0,facets:void 0,contextual:this.isContextual})},e.prototype.buildClickEvent=function(e,t,n,i){return this.merge(this.buildAnalyticsEvent(e,t),{searchQueryUid:n.queryUid,queryPipeline:n.pipeline,splitTestRunName:this.splitTestRunName||n.splitTestRun,splitTestRunVersion:this.splitTestRunVersion||(void 0!=n.splitTestRun?n.pipeline:void 0),documentUri:n.uri,documentUriHash:y.QueryUtils.getUriHash(n),documentUrl:n.clickUri,documentTitle:n.title,documentCategory:y.QueryUtils.getObjectType(n),originLevel2:this.getOriginLevel2(i),collectionName:y.QueryUtils.getCollection(n),sourceName:y.QueryUtils.getSource(n),documentPosition:n.index+1,responseTime:0,viewMethod:e.name,rankingModifier:n.rankingModifier})},e.prototype.buildCustomEvent=function(e,t,n){return this.merge(this.buildAnalyticsEvent(e,t),{eventType:e.type,eventValue:e.name,originLevel2:this.getOriginLevel2(n),responseTime:0})},e.prototype.getOriginLevel2=function(e){return this.resolveActiveTabFromElement(e)||"default"},e.prototype.buildMetaObject=function(e,t){var n=g.extend({},e);if(n.JSUIVersion=m.version.lib+";"+m.version.product,!(n.contentIDKey&&n.contentIDValue)&&t){var i=y.QueryUtils.getPermanentId(t);n.contentIDKey=i.fieldUsed,n.contentIDValue=i.fieldValue}return n},e.prototype.cancelAnyPendingSearchAsYouTypeEvent=function(){this.pendingSearchAsYouTypeSearchEvent&&(this.pendingSearchAsYouTypeSearchEvent.cancel(),this.pendingSearchAsYouTypeSearchEvent=void 0)},e.prototype.resolveActiveTabFromElement=function(e){s.Assert.exists(e);var t=this.resolveQueryStateModel(e);return t&&t.get(h.QueryStateModel.attributesEnum.t)},e.prototype.resolveQueryStateModel=function(e){return f.Component.resolveBinding(e,h.QueryStateModel)},e.prototype.eventIsNotRelatedToSearchbox=function(e){return e!==u.analyticsActionCauseList.searchboxSubmit.name&&e!==u.analyticsActionCauseList.searchboxClear.name},e.prototype.triggerChangeAnalyticsCustomData=function(e,t,n,i){t.metaDataAsString={},t.metaDataAsNumber={};var o={language:n.language,originLevel1:n.originLevel1,originLevel2:n.originLevel2,originLevel3:n.originLevel3,metaObject:t},r=g.extend({},{type:e,actionType:n.actionType,actionCause:n.actionCause},o,i);c.$$(this.rootElement).trigger(p.AnalyticsEvents.changeAnalyticsCustomData,r),n.language=r.language,n.originLevel1=r.originLevel1,n.originLevel2=r.originLevel2,n.originLevel3=r.originLevel3,n.customData=t;var s=n.customData.metaDataAsString;g.keys(s).length>0&&(this.logger.warn("Using deprecated 'metaDataAsString' key to log custom analytics data. Custom meta should now be put at the root of the object."),g.extend(n.customData,s)),delete n.customData.metaDataAsString;var a=n.customData.metaDataAsNumber;g.keys(a).length>0&&(this.logger.warn("Using deprecated 'metaDataAsNumber' key to log custom analytics data. Custom meta should now be put at the root of the object."),g.extend(n.customData,a)),delete n.customData.metaDataAsNumber},e.prototype.merge=function(e,t){return g.extend({},e,t)},e}();t.LiveAnalyticsClient=b},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){}return e.convertSearchEventToAPI=function(e){return{advancedQuery:e.advancedQuery,customMetadatas:e.customData,device:e.device,didYouMean:e.didYouMean,language:e.language,pageNumber:e.pageNumber,queryText:e.queryText,responseTime:e.responseTime,numberOfResults:e.numberOfResults,resultsPerPage:e.resultsPerPage,searchHub:e.originLevel1,searchInterface:e.originLevel2,searchQueryUid:e.searchQueryUid,type:e.actionType,actionCause:e.actionCause,queryPipeline:e.queryPipeline,splitTestRunName:e.splitTestRunName,splitTestRunVersion:e.splitTestRunVersion}},e.convertDocumentViewToAPI=function(e){return{collectionName:e.collectionName,device:e.device,documentPosition:e.documentPosition,title:e.documentTitle,documentUrl:e.documentUrl,documentUri:e.documentUri,documentUriHash:e.documentUriHash,language:e.language,responseTime:e.responseTime,searchHub:e.originLevel1,searchInterface:e.originLevel2,searchQueryUid:e.searchQueryUid,sourceName:e.sourceName,viewMethod:e.viewMethod,customMetadatas:e.customData,actionCause:e.actionCause,queryPipeline:e.queryPipeline,splitTestRunName:e.splitTestRunName,splitTestRunVersion:e.splitTestRunVersion}},e.convertCustomEventToAPI=function(e){return{actionCause:e.actionCause,actionType:e.actionType,device:e.device,language:e.language,responseTime:e.responseTime,searchHub:e.originLevel1,searchInterface:e.originLevel2,customMetadatas:e.customData}},e}();t.APIAnalyticsBuilder=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(4),o=n(40),r=n(48),s=n(1),a=n(0),u=n(472),l=function(){function e(e){this.facet=e,this.valueToSearch="",this.alwaysInclude=[],this.alwaysExclude=[],this.sortCriteria="occurrences",this.fetchMore=!1,this.completeFacetWithStandardValues=!0,this.nbResults=e.options.numberOfValuesInFacetSearch,this.ignoreAccents=e.options.facetSearchIgnoreAccents}return e.prototype.setValueToSearch=function(e){return this.valueToSearch=e,i.Utils.isNonEmptyString(e)&&(this.valueToSearch=this.valueToSearch.trim(),this.alwaysInclude=this.alwaysInclude.concat(o.FacetUtils.getValuesToUseForSearchInFacet(this.valueToSearch,this.facet))),this},e.prototype.excludeCurrentlyDisplayedValuesInSearch=function(e){var t=this;a.each(this.getCurrentlyShowedValueInSearch(e),function(e){var n=o.FacetUtils.getValuesToUseForSearchInFacet(e,t.facet);a.each(n,function(e){t.alwaysExclude.push(e)})}),a.each(this.facet.getDisplayedFacetValues(),function(e){t.alwaysExclude.push(e.value)})},e.prototype.getGroupByRequest=function(){this.lowerCaseAll();var e=this.nbResults;e+=this.alwaysExclude.length;var t=[];this.valueToSearch&&(t=["*"+this.valueToSearch+"*"]);var n;n=this.valueToSearch?t.concat(this.alwaysInclude).concat(this.alwaysExclude):a.compact(t.concat(this.alwaysInclude).concat(this.facet.options.allowedValues));var i=this.completeFacetWithStandardValues;null!=this.facet.options.lookupField&&(i=!1);var o={allowedValues:n,allowedValuesPatternType:this.facet.options.useWildcardsInFacetSearch?u.AllowedValuesPatternType.Wildcards:u.AllowedValuesPatternType.Legacy,maximumNumberOfValues:e,completeFacetWithStandardValues:i,field:this.facet.options.field,sortCriteria:this.facet.options.sortCriteria||this.sortCriteria,injectionDepth:this.facet.options.injectionDepth};return this.facet.options.lookupField&&(o.lookupField=this.facet.options.lookupField),this.facet.options.computedField&&(o.computedFields=[{field:this.facet.options.computedField,operation:this.facet.options.computedFieldOperation}]),o},e.prototype.getQuery=function(){var e=a.clone(this.facet.queryController.getLastQuery());return e||(e=(new r.QueryBuilder).build()),e.enableQuerySyntax?e.q=this.facet.facetQueryController.basicExpressionToUseForFacetSearch:i.Utils.isNonEmptyString(this.facet.facetQueryController.basicExpressionToUseForFacetSearch)?e.q="<@- "+this.facet.facetQueryController.basicExpressionToUseForFacetSearch+" -@>":e.q="",e.enableQuerySyntax=!0,e.cq=this.facet.facetQueryController.constantExpressionToUseForFacetSearch,e.aq=this.facet.facetQueryController.advancedExpressionToUseForFacetSearch,e.enableDidYouMean=!1,e.firstResult=0,e.numberOfResults=0,e.fieldsToInclude=[],e.groupBy=[this.getGroupByRequest()],e},e.prototype.getCurrentlyShowedValueInSearch=function(e){return a.map(s.$$(e).findAll(".coveo-facet-value-caption"),function(e){return s.$$(e).getAttribute("data-original-value")||s.$$(e).text()})},e.prototype.lowerCaseAll=function(){this.alwaysExclude=a.chain(this.alwaysExclude).map(function(e){return e.toLowerCase()}).uniq().value(),this.alwaysInclude=a.chain(this.alwaysInclude).map(function(e){return e.toLowerCase()}).uniq().value()},e}();t.FacetSearchParameters=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(20),r=n(18),s=n(47),a=n(1),u=n(16),l=function(){function e(e){var t=this;this.facet=e,a.$$(this.facet.ref.searchInterface.element).on(o.QueryEvents.buildingQuery,function(){return t.handleBuildingQuery()}),this.getDependsOn(this.facet.ref)&&this.facet.ref.bind.onRootElement(u.InitializationEvents.afterComponentsInitialization,function(){return t.setupDependentFacet()})}return e.prototype.setupDependentFacet=function(){var e=this;a.$$(this.facet.ref.element).addClass("coveo-hidden-dependant-facet"),this.parentFacetRef=this.getParentFacet(this.facet.ref),this.parentFacetRef&&this.facet.ref.bind.onQueryState(r.MODEL_EVENTS.CHANGE,void 0,function(){return e.resetIfConditionUnfullfiled()})},e.prototype.resetIfConditionUnfullfiled=function(){this.getDependsOnCondition(this.facet.ref)(this.parentFacetRef)||this.facet.reset()},e.prototype.getId=function(e){var t=e.options.id;return t?""+t:null},e.prototype.getDependsOn=function(e){var t=e.options.dependsOn;return t?""+t:null},e.prototype.getDependsOnCondition=function(e){var t=this,n=e.options.dependsOnCondition;return n&&i.isFunction(n)?n:function(){return t.parentHasSelectedValues(e)}},e.prototype.parentHasSelectedValues=function(e){var t=this.getParentFacet(e);return t&&this.valuesExistForFacetWithId(this.getId(t))},e.prototype.valuesExistForFacetWithId=function(e){var t=this.facet.ref.queryStateModel.get(o.QueryStateModel.getFacetId(e));return!!t&&!!t.length},Object.defineProperty(e.prototype,"allFacetsInInterface",{get:function(){return s.ComponentsTypes.getAllFacetsFromSearchInterface(this.facet.ref.searchInterface)},enumerable:!0,configurable:!0}),e.prototype.getParentFacet=function(e){var t=this,n=this.allFacetsInInterface.filter(function(n){return t.getId(n)===t.getDependsOn(e)});return n.length?n[0]:(e.logger.warn("DependsOn reference does not exist",this.getDependsOn(this.facet.ref)),null)},Object.defineProperty(e.prototype,"dependentFacets",{get:function(){var e=this;return this.allFacetsInInterface.filter(function(t){return e.getId(e.facet.ref)===e.getDependsOn(t)})},enumerable:!0,configurable:!0}),e.prototype.handleBuildingQuery=function(){var e=this;this.dependentFacets.forEach(function(t){if(e.getDependsOnCondition(t)(e.facet.ref))return a.$$(t.element).removeClass("coveo-hidden-dependant-facet"),t.enable();t.disable(),a.$$(t.element).addClass("coveo-hidden-dependant-facet")})},Object.defineProperty(e.prototype,"hasDependentFacets",{get:function(){return!!this.dependentFacets.length},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dependentFacetsHaveSelectedValues",{get:function(){var e=this;return this.dependentFacets.some(function(t){return e.valuesExistForFacetWithId(e.getId(t))})},enumerable:!0,configurable:!0}),e}();t.DependsOnManager=l},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=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])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n(212),r=n(69),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.init=function(e,n,i){o.ResponsiveFacetColumn.init(t,e,n,i,r.Facet.ID)},t}(o.ResponsiveFacetColumn);t.ResponsiveFacets=s},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=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])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n(7),r=n(8),s=n(3),a=n(20),u=n(2),l=function(e){function t(n,i,o){var s=e.call(this,n,t.ID,o)||this;if(s.element=n,s.options=r.ComponentOptions.initComponentOptions(n,t,i),s.options.preventScrolling){var a=s.options.scrollContainer||s.searchInterface.element;s.options.scrollContainer=r.ComponentOptions.findParentScrollLockable(a)}return s}return i(t,e),t.ID="FacetsMobileMode",t.options={breakpoint:r.ComponentOptions.buildNumberOption(),isModal:r.ComponentOptions.buildBooleanOption({defaultValue:!1}),displayOverlayWhileOpen:r.ComponentOptions.buildBooleanOption({postProcessing:function(e,t){return a.Utils.isNullOrUndefined(e)?!t.isModal:e}}),preventScrolling:r.ComponentOptions.buildBooleanOption({postProcessing:function(e,t){return a.Utils.isNullOrUndefined(e)?t.isModal:e}}),scrollContainer:r.ComponentOptions.buildChildHtmlElementOption({depend:"preventScrolling"})},t.doExport=function(){s.exportGlobally({FacetsMobileMode:t})},t}(o.Component);t.FacetsMobileMode=l,u.Initialization.registerAutoCreateComponent(l)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(489),o=n(491),r=n(493),s=n(0),a=n(494),u=n(215),l=n(495),c=function(){function e(e,t){void 0===t&&(t={}),this.expressions={},this.start=new i.ExpressionRef(e,null,"start",this),this.addExpressions(t)}return e.prototype.addExpressions=function(e){var t=this;s.each(e,function(e,n){t.addExpression(n,e)})},e.prototype.addExpression=function(t,n){if(t in this.expressions)throw new Error("Grammar already contain the id:"+t);this.expressions[t]=e.buildExpression(n,t,this)},e.prototype.getExpression=function(e){return this.expressions[e]},e.prototype.parse=function(e){return this.start.parse(e,!0)},e.buildExpression=function(e,t,n){if(void 0===e)throw new Error("Invalid Expression: "+e);if(s.isString(e))return this.buildStringExpression(e,t,n);if(s.isArray(e))return new o.ExpressionOptions(s.map(e,function(e,o){return new i.ExpressionRef(e,null,t+"_"+o,n)}),t);if(s.isRegExp(e))return new r.ExpressionRegExp(e,t,n);if(s.isFunction(e))return new a.ExpressionFunction(e,t,n);throw new Error("Invalid Expression: "+e)},e.buildStringExpression=function(t,n,o){var r=e.stringMatch(t,e.spliter),a=s.map(r,function(e,t){if(e[1]){var r=e[1],s=e[3]?Number(e[3]):e[2]||null;return new i.ExpressionRef(r,s,n+"_"+t,o)}return new u.ExpressionConstant(e[4],n+"_"+t)});if(1==a.length){var c=a[0];return c.id=n,c}return new l.ExpressionList(a,n)},e.stringMatch=function(e,t){for(var n=[],i=new RegExp(t.source,"g"),o=i.exec(e);null!==o;)n.push(o),o=i.exec(e);return n},e.spliter=/\[(\w+)(\*|\+|\?|\{([1-9][0-9]*)\})?\]|(.[^\[]*)/,e}();t.Grammar=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=n(4),r=n(0);n(386);var s=n(11),a=n(16),u=n(29),l=n(42),c=n(47),p=function(){function e(e){this.root=e,this.facetPlaceholder='<div class="coveo-placeholder-title"></div>\n    <div class="coveo-facet-placeholder-line">\n      <div class="coveo-facet-placeholder-checkbox"></div>\n      <div class="coveo-placeholder-text"></div>\n    </div>\n    <div class="coveo-facet-placeholder-line">\n      <div class="coveo-facet-placeholder-checkbox"></div>\n      <div class="coveo-placeholder-text"></div>\n    </div>\n    <div class="coveo-facet-placeholder-line">\n      <div class="coveo-facet-placeholder-checkbox"></div>\n      <div class="coveo-placeholder-text"></div>\n    </div>\n    <div class="coveo-facet-placeholder-line">\n      <div class="coveo-facet-placeholder-checkbox"></div>\n      <div class="coveo-placeholder-text"></div>\n    </div>\n    <div class="coveo-facet-placeholder-line">\n      <div class="coveo-facet-placeholder-checkbox"></div>\n      <div class="coveo-placeholder-text"></div>\n    </div>',this.resultListPlaceholder='<div class="coveo-result-frame coveo-placeholder-result">\n  <div class="coveo-result-row">\n    <div class="coveo-result-cell" style="width:85px;text-align:center;">\n      <div class="coveo-placeholder-icon"></div>\n    </div>\n    <div class="coveo-result-cell" style="padding-left:15px;">\n      <div class="coveo-result-row">\n        <div class="coveo-result-cell">\n          <div class="coveo-placeholder-title" style="width: 60%"></div>\n        </div>\n        <div class="coveo-result-cell" style="width:120px; text-align:right;">\n          <div class="coveo-placeholder-text" style="width: 80%"></div>\n        </div>\n      </div>\n      <div class="coveo-result-row">\n        <div class="coveo-result-cell">\n          <div class="coveo-placeholder-text" style="width: 70%"></div>\n          <div class="coveo-placeholder-text" style="width: 90%"></div>\n          <div class="coveo-placeholder-text" style="width: 60%"></div>\n        </div>\n      </div>\n    </div>\n  </div>\n</div>',this.cardResultListPlaceholder='<div class="coveo-card-layout coveo-placeholder-result CoveoResult">\n  <div class="coveo-result-frame">\n    <div class="coveo-result-row" style="margin-bottom: 20px;">\n      <div class="coveo-result-cell" style="width: 32px; vertical-align: middle;">\n        <div class="coveo-placeholder-icon-small"></div>\n      </div>\n      <div class="coveo-result-cell" style="text-align:left; padding-left: 10px; vertical-align: middle;">\n        <div class="coveo-placeholder-title" style="width: 60%"></div>\n      </div>\n    </div>\n    <div class="coveo-result-row" style="margin-bottom: 20px;">\n      <div class="coveo-result-cell">\n        <div class="coveo-placeholder-text" style="width: 70%"></div>\n        <div class="coveo-placeholder-text" style="width: 90%"></div>\n        <div class="coveo-placeholder-text" style="width: 60%"></div>\n      </div>\n      <div class="coveo-result-cell">\n        <div class="coveo-placeholder-text" style="width: 90%"></div>\n        <div class="coveo-placeholder-text" style="width: 70%"></div>\n        <div class="coveo-placeholder-text" style="width: 60%"></div>\n      </div>\n    </div>\n    <div class="coveo-result-row">\n      <div class="coveo-result-cell">\n        <div class="coveo-placeholder-text" style="width: 90%"></div>\n          <div class="coveo-placeholder-text" style="width: 100%"></div>\n      </div>\n    </div>\n  </div>\n</div>\n',this.recommendationResultListPlaceholder='<div class="coveo-result-frame coveo-placeholder-result">\n  <div class="coveo-result-row">\n    <div class="coveo-result-cell" style="width: 32px; vertical-align: middle;">\n        <div class="coveo-placeholder-icon-small"></div>\n      </div>\n    <div class="coveo-result-cell" style="padding-left:10px; vertical-align: middle;">\n      <div class="coveo-result-row">\n        <div class="coveo-result-cell">\n          <div class="coveo-placeholder-title" style="width: 90%"></div>\n        </div>\n      </div>\n    </div>\n  </div>\n  ',this.eventToRemovePlaceholder=a.InitializationEvents.afterComponentsInitialization}return e.prototype.withEventToRemovePlaceholder=function(e){return this.eventToRemovePlaceholder=e,this},e.prototype.withFullInitializationStyling=function(){var t=this;return i.$$(this.root).addClass(e.INITIALIZATION_CLASS),i.$$(this.root).removeClass(e.AFTER_INITIALIZATION_CLASS),i.$$(this.root).one(this.eventToRemovePlaceholder,function(){i.$$(t.root).removeClass(e.INITIALIZATION_CLASS),i.$$(t.root).addClass(e.AFTER_INITIALIZATION_CLASS)}),this},e.prototype.withHiddenRootElement=function(){return i.$$(this.root).addClass("coveo-hidden"),this},e.prototype.withVisibleRootElement=function(){return i.$$(this.root).removeClass("coveo-hidden"),this},e.prototype.withWaitingForFirstQueryMode=function(){var e=this;return i.$$(this.root).addClass("coveo-waiting-for-query"),i.$$(this.root).one(s.QueryEvents.duringQuery,function(){i.$$(e.root).removeClass("coveo-waiting-for-query")}),this},e.prototype.withAllPlaceholders=function(){return this.withPlaceholderForFacets(),this.withPlaceholderForResultList(),this.withPlaceholderSearchbox(),this},e.prototype.withPlaceholderForFacets=function(){var t=this,n=c.ComponentsTypes.getAllFacetElementsFromElement(this.root);if(o.Utils.isNonEmptyArray(n)){var a=[];r.each(n,function(t){return i.$$(t).addClass(e.INITIALIZATION_CLASS)}),r.each(r.first(n,e.NUMBER_OF_FACETS),function(e){i.$$(e).addClass("coveo-with-placeholder");var n=i.$$("div",{className:"coveo-facet-placeholder"},t.facetPlaceholder);e.appendChild(n.el),a.push(n)}),i.$$(this.root).one(this.eventToRemovePlaceholder,function(){var o=function(){r.each(a,function(e){return e.remove()}),r.each(n,function(t){return i.$$(t).removeClass(e.INITIALIZATION_CLASS)}),r.each(n,function(e){return i.$$(e).removeClass("coveo-with-placeholder")})};i.$$(t.root).one(s.QueryEvents.queryError,function(){return o()}),i.$$(t.root).one(s.QueryEvents.deferredQuerySuccess,function(){return o()})})}return this},e.prototype.withPlaceholderSearchbox=function(){var t=i.$$(this.root).findAll(".CoveoSearchbox");return o.Utils.isNonEmptyArray(t)&&(r.each(t,function(t){i.$$(t).addClass(e.INITIALIZATION_CLASS)}),i.$$(this.root).one(this.eventToRemovePlaceholder,function(){r.each(t,function(t){return i.$$(t).removeClass(e.INITIALIZATION_CLASS)})})),this},e.prototype.withPlaceholderForResultList=function(){var t=i.$$(this.root).findAll(".CoveoResultList");if(o.Utils.isNonEmptyArray(t)){r.each(t,function(t){return i.$$(t).addClass(e.INITIALIZATION_CLASS)});var n=this.determineResultListPlaceholder(t),a=n.placeholderToUse,l=n.resultListToUse,c=n.rootToUse;i.$$(l).append(c),i.$$(l).addClass("coveo-with-placeholder"),r.times(this.isRecommendationRoot()?e.NUMBER_OF_RESULTS_RECOMMENDATION:e.NUMBER_OF_RESULTS,function(){c.innerHTML+=a});var p=function(){i.$$(c).remove(),r.each(t,function(t){return i.$$(t).removeClass(e.INITIALIZATION_CLASS)}),i.$$(l).removeClass("coveo-with-placeholder")};i.$$(this.root).one(u.ResultListEvents.newResultDisplayed,function(){return p()}),i.$$(this.root).one(s.QueryEvents.queryError,function(){return p()}),i.$$(this.root).one(s.QueryEvents.noResults,function(){return p()})}return this},e.prototype.determineResultListPlaceholder=function(e){var t;if(e.length>1?t=l.HashUtils.getValue("layout",l.HashUtils.getHash()):1==e.length&&(t=e[0].getAttribute("data-layout")),t||(t="list"),e.length>1){var n=r.find(e,function(e){return e.getAttribute("data-layout")==t});return n||(n=r.find(e,function(e){return null==e.getAttribute("data-layout")})),n||(n=r.first(e)),{placeholderToUse:this.determineResultListFromLayout(t),resultListToUse:n,rootToUse:this.determineRootFromLayout(t)}}return 1==e.length?{placeholderToUse:this.determineResultListFromLayout(t),resultListToUse:e[0],rootToUse:this.determineRootFromLayout(t)}:null},e.prototype.determineResultListFromLayout=function(e){switch(e){case"list":return this.isRecommendationRoot()?this.recommendationResultListPlaceholder:this.resultListPlaceholder;case"card":return this.cardResultListPlaceholder;default:return this.resultListPlaceholder}},e.prototype.determineRootFromLayout=function(e){switch(e){case"list":return i.$$("div").el;case"card":return i.$$("div",{className:"coveo-result-list-container coveo-card-layout-container"}).el;default:return i.$$("div").el}},e.prototype.isRecommendationRoot=function(){return i.$$(this.root).hasClass("CoveoRecommendation")},e.NUMBER_OF_FACETS=3,e.NUMBER_OF_RESULTS=10,e.NUMBER_OF_RESULTS_RECOMMENDATION=5,e.INITIALIZATION_CLASS="coveo-during-initialization",e.AFTER_INITIALIZATION_CLASS="coveo-after-initialization",e}();t.InitializationPlaceholder=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(4),o=n(6),r=n(0),s=function(){function e(){}return e.splitSemicolonSeparatedListOfEmailAddresses=function(e){var t=e.split(/\s*;\s*/);return r.filter(t,function(e){return i.Utils.exists(e)&&i.Utils.isNonEmptyString(i.Utils.trim(e))})},e.emailAddressesToHyperlinks=function(t,n,s,a,u){void 0===a&&(a=2),void 0===u&&(u=!1),t=r.filter(t,function(e){return i.Utils.exists(e)&&i.Utils.isNonEmptyString(i.Utils.trim(e))});var l=r.map(t,function(t){var r=e.parseEmail(t),a=r[1],l=r[0];if(i.Utils.exists(s)&&a==s&&(l=o.l("Me")),u){var c=l.split(" ");i.Utils.isNullOrUndefined(c[1])||(l=c[0]+" "+c[1].substring(0,1)+".")}var p=a.indexOf("@")>=0?a.indexOf("@")+1:0,d=a.substr(p);return i.Utils.exists(n)&&d!=n&&(l+=" ("+d+")"),'<a title="'+t.replace(/'/g,"&quot;")+'" href="mailto:'+encodeURI(a)+'">'+l+"</a>"}),c=l.length-a,p=c>0?e.buildEmailAddressesAndOthers(r.last(l,c)):"";return r.first(l,a).join(", ")+p},e.buildEmailAddressesAndOthers=function(e){return'<span class="coveo-emails-excess-collapsed coveo-active" onclick="Coveo.TemplateHelpers.getHelper(\'excessEmailToggle\')(this);"> '+o.l("AndOthers",e.length.toString(),e.length)+'</span><span class="coveo-emails-excess-expanded"> , '+e.join(" , ")+"</span>"},e.parseEmail=function(e){var t,n=e.match(/^\s*(.*)\s+<(.*)>$/);return null!=n?(t=n[1],/^'.*'|'.*'$/.test(t)&&(t=t.substr(1,t.length-2)),e=n[2]):(t=e,e=e),[t,e]},e}();t.EmailUtils=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=function(){function e(){}return e.buildAttributeString=function(e){var t=[];return i.each(e,function(e,n,i){void 0!=e&&t.push(n+"="+JSON.stringify(e.toString()))}),t.join(" ")},e}();t.HTMLUtils=o;var r=function(){function e(){}return e.buildAnchor=function(e,t){var n;return t&&t.text?(n=t.text,t.text=void 0):n=e,"<a href='"+e+"' "+o.buildAttributeString(t)+">"+n+"</a>"},e}();t.AnchorUtils=r;var s=function(){function e(){}return e.buildImage=function(e,t){var n="<img ";return n+=e?"src='"+e+"' ":"",n+=o.buildAttributeString(t)+"/>"},e.selectImageFromResult=function(e){return document.querySelector("img[data-coveo-uri-hash="+e.raw.urihash+"]")},e.buildImageWithDirectSrcAttribute=function(t,n){var i=new Image,o=t.getViewAsDatastreamUri(n.uniqueId,"$Thumbnail$",{contentType:"image/png"});i.onload=function(){e.selectImageFromResult(n).setAttribute("src",o)},i.src=o},e.buildImageWithBase64SrcAttribute=function(t,n){t.getRawDataStream(n.uniqueId,"$Thumbnail$").then(function(t){var i=String.fromCharCode.apply(null,new Uint8Array(t));e.selectImageFromResult(n).setAttribute("src","data:image/png;base64, "+btoa(i))}).catch(function(){e.selectImageFromResult(n).remove()})},e.buildImageFromResult=function(t,n,o){o=o||{};var r=e.buildImage(void 0,i.extend(o,{"data-coveo-uri-hash":t.raw.urihash}));return n.isJsonp()?e.buildImageWithDirectSrcAttribute(n,t):e.buildImageWithBase64SrcAttribute(n,t),r},e}();t.ImageUtils=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i;!function(e){e[e.WINDOWS=0]="WINDOWS",e[e.MACOSX=1]="MACOSX",e[e.UNIX=2]="UNIX",e[e.LINUX=3]="LINUX",e[e.UNKNOWN=4]="UNKNOWN"}(i=t.OS_NAME||(t.OS_NAME={}));var o=function(){function e(){}return e.get=function(e){void 0===e&&(e=navigator);return-1!=e.appVersion.indexOf("Win")?i.WINDOWS:-1!=e.appVersion.indexOf("Mac")?i.MACOSX:-1!=e.appVersion.indexOf("X11")?i.UNIX:-1!=e.appVersion.indexOf("Linux")?i.LINUX:i.UNKNOWN},e}();t.OSUtils=o},function(e,t,n){"use strict";function i(e){return e+"-facet-heading"}Object.defineProperty(t,"__esModule",{value:!0}),n(567);var o=n(1),r=n(6),s=n(12),a=n(15),u=n(502),l=n(568);t.getDynamicFacetHeaderId=i;var c=function(){function e(e){this.options=e,this.element=o.$$("div",{className:"coveo-dynamic-facet-header"}).el,this.title=this.createTitle(),o.$$(this.element).append(this.title.el),o.$$(this.element).append(this.createWaitAnimation()),o.$$(this.element).append(this.createClearButton()),this.options.enableCollapse&&this.enableCollapse()}return e.prototype.createClearButton=function(){var e=this;return this.clearButton=new u.DynamicFacetHeaderButton({label:r.l("Clear"),ariaLabel:r.l("Clear",this.options.title),className:"coveo-dynamic-facet-header-clear",shouldDisplay:!1,action:function(){return e.options.clear()}}),this.clearButton.element},e.prototype.createCollapseToggle=function(){return this.collapseToggle=new l.DynamicFacetHeaderCollapseToggle(this.options),this.collapseToggle.element},e.prototype.enableCollapse=function(){var e=this;o.$$(this.element).append(this.createCollapseToggle()),o.$$(this.title).addClass("coveo-clickable"),o.$$(this.title).on("click",function(){return e.options.toggleCollapse()})},e.prototype.toggleCollapse=function(e){this.options.enableCollapse&&this.collapseToggle.toggleButton(e)},e.prototype.createTitle=function(){return o.$$("h2",{className:"coveo-dynamic-facet-header-title",ariaLabel:""+r.l("FacetTitle",this.options.title),id:i(this.options.id)},o.$$("span",{ariaHidden:!0,title:this.options.title},this.options.title))},e.prototype.createWaitAnimation=function(){return this.waitAnimation=o.$$("div",{className:"coveo-dynamic-facet-header-wait-animation"},s.SVGIcons.icons.loading),a.SVGDom.addClassToSVGInContainer(this.waitAnimation.el,"coveo-dynamic-facet-header-wait-animation-svg"),this.waitAnimation.toggle(!1),this.waitAnimation.el},e.prototype.toggleClear=function(e){this.clearButton.toggle(e)},e.prototype.showLoading=function(){var t=this;clearTimeout(this.showLoadingTimeout),this.showLoadingTimeout=window.setTimeout(function(){return t.waitAnimation.toggle(!0)},e.showLoadingDelay)},e.prototype.hideLoading=function(){clearTimeout(this.showLoadingTimeout),this.waitAnimation.toggle(!1)},e.showLoadingDelay=2e3,e}();t.DynamicFacetHeader=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});!function(e){e.specific="specific",e.numericalRange="numericalRange",e.dateRange="dateRange",e.hierarchical="hierarchical"}(t.FacetType||(t.FacetType={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(73),r=n(4),s=function(){function e(e,t,n,i){this.basicExpression=e,this.advancedExpression=t,this.constantExpression=n,this.disjunctionExpression=i}return e.isEmpty=function(e){var t=i.chain(e).values().compact().value();return i.isEmpty(t)},e.prototype.reset=function(){this.basicExpression="",this.advancedExpression="",this.constantExpression="",this.disjunctionExpression=""},Object.defineProperty(e.prototype,"withoutConstant",{get:function(){return this.expressionBuilders.withoutConstantExpression.build()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"full",{get:function(){return o.ExpressionBuilder.mergeUsingOr(this.expressionBuilders.fullExpression,this.expressionBuilders.disjunctionExpression).build()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"basic",{get:function(){return this.expressionBuilders.basicExpression.build()},set:function(e){this.basicExpression=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"advanced",{get:function(){return this.expressionBuilders.advancedExpression.build()},set:function(e){this.advancedExpression=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"constant",{get:function(){return this.expressionBuilders.constantExpression.build()},set:function(e){this.constantExpression=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"expressionBuilders",{get:function(){var e=function(e,t){r.Utils.isNonEmptyString(t)&&e.add(t)},t=new o.ExpressionBuilder;e(t,this.basicExpression);var n=new o.ExpressionBuilder;e(n,this.advancedExpression);var i=new o.ExpressionBuilder;e(i,this.constantExpression);var s=new o.ExpressionBuilder;return e(s,this.disjunctionExpression),{basicExpression:t,advancedExpression:n,constantExpression:i,disjunctionExpression:s,withoutConstantExpression:o.ExpressionBuilder.merge(t,n),fullExpression:o.ExpressionBuilder.merge(t,n,i)}},enumerable:!0,configurable:!0}),e}();t.QueryBuilderExpression=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(55),o=n(85),r=n(1),s=function(){function e(e,t){this.inputName=e,this.root=t}return e.prototype.reset=function(){this.clear()},e.prototype.build=function(){return this.input=new i.TextInput(this.onChange.bind(this),this.inputName),this.input.getElement()},e.prototype.setValue=function(e){this.input.setValue(e)},e.prototype.getValue=function(){return this.input.getValue()},e.prototype.clear=function(){this.input.setValue("")},e.prototype.updateQuery=function(e){var t=this.getValue();t&&e.advancedExpression.add(t)},e.prototype.onChange=function(){this.root?r.$$(this.root).trigger(o.AdvancedSearchEvents.executeAdvancedSearch):this.input&&r.$$(this.input.getElement()).trigger(o.AdvancedSearchEvents.executeAdvancedSearch)},e}();t.KeywordsInput=s},function(e,t,n){"use strict";function i(){}function o(e,t){var n=new i;if(e instanceof i)e.each(function(e,t){n.set(t,e)});else if(Array.isArray(e)){var o,r=-1,s=e.length;if(null==t)for(;++r<s;)n.set(r,e[r]);else for(;++r<s;)n.set(t(o=e[r],r,e),o)}else if(e)for(var a in e)n.set(a,e[a]);return n}function r(){return{}}function s(e,t,n){e[t]=n}function a(){return p()}function u(e,t,n){e.set(t,n)}function l(){}function c(e,t){var n=new l;if(e instanceof l)e.each(function(e){n.add(e)});else if(e){var i=-1,o=e.length;if(null==t)for(;++i<o;)n.add(e[i]);else for(;++i<o;)n.add(t(e[i],i,e))}return n}i.prototype=o.prototype={constructor:i,has:function(e){return"$"+e in this},get:function(e){return this["$"+e]},set:function(e,t){return this["$"+e]=t,this},remove:function(e){var t="$"+e;return t in this&&delete this[t]},clear:function(){for(var e in this)"$"===e[0]&&delete this[e]},keys:function(){var e=[];for(var t in this)"$"===t[0]&&e.push(t.slice(1));return e},values:function(){var e=[];for(var t in this)"$"===t[0]&&e.push(this[t]);return e},entries:function(){var e=[];for(var t in this)"$"===t[0]&&e.push({key:t.slice(1),value:this[t]});return e},size:function(){var e=0;for(var t in this)"$"===t[0]&&++e;return e},empty:function(){for(var e in this)if("$"===e[0])return!1;return!0},each:function(e){for(var t in this)"$"===t[0]&&e(this[t],t.slice(1),this)}};var p=o,d=function(){function e(t,o,r,s){if(o>=l.length)return null!=n&&t.sort(n),null!=i?i(t):t;for(var a,u,c,d=-1,h=t.length,f=l[o++],m=p(),y=r();++d<h;)(c=m.get(a=f(u=t[d])+""))?c.push(u):m.set(a,[u]);return m.each(function(t,n){s(y,n,e(t,o,r,s))}),y}function t(e,n){if(++n>l.length)return e;var o,r=c[n-1];return null!=i&&n>=l.length?o=e.entries():(o=[],e.each(function(e,i){o.push({key:i,values:t(e,n)})})),null!=r?o.sort(function(e,t){return r(e.key,t.key)}):o}var n,i,o,l=[],c=[];return o={object:function(t){return e(t,0,r,s)},map:function(t){return e(t,0,a,u)},entries:function(n){return t(e(n,0,a,u),0)},key:function(e){return l.push(e),o},sortKeys:function(e){return c[l.length-1]=e,o},sortValues:function(e){return n=e,o},rollup:function(e){return i=e,o}}},h=p.prototype;l.prototype=c.prototype={constructor:l,has:h.has,add:function(e){return e+="",this["$"+e]=e,this},remove:h.remove,clear:h.clear,values:h.keys,size:h.size,empty:h.empty,each:h.each};var f=c,m=function(e){var t=[];for(var n in e)t.push(n);return t},y=function(e){var t=[];for(var n in e)t.push(e[n]);return t},g=function(e){var t=[];for(var n in e)t.push({key:n,value:e[n]});return t};n.d(t,"d",function(){return d}),n.d(t,"e",function(){return f}),n.d(t,"c",function(){return p}),n.d(t,"b",function(){return m}),n.d(t,"f",function(){return y}),n.d(t,"a",function(){return g})},function(e,t,n){"use strict";function i(e,t,n,o){function r(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return r.floor=function(t){return e(t=new Date(+t)),t},r.ceil=function(n){return e(n=new Date(n-1)),t(n,1),e(n),n},r.round=function(e){var t=r(e),n=r.ceil(e);return e-t<n-e?t:n},r.offset=function(e,n){return t(e=new Date(+e),null==n?1:Math.floor(n)),e},r.range=function(n,i,o){var s,a=[];if(n=r.ceil(n),o=null==o?1:Math.floor(o),!(n<i&&o>0))return a;do{a.push(s=new Date(+n)),t(n,o),e(n)}while(s<n&&n<i);return a},r.filter=function(n){return i(function(t){if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)},function(e,i){if(e>=e)if(i<0)for(;++i<=0;)for(;t(e,-1),!n(e););else for(;--i>=0;)for(;t(e,1),!n(e););})},n&&(r.count=function(t,i){return s.setTime(+t),a.setTime(+i),e(s),e(a),Math.floor(n(s,a))},r.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?r.filter(o?function(t){return o(t)%e==0}:function(t){return r.count(0,t)%e==0}):r:null}),r}function o(e){return i(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},function(e,t){e.setDate(e.getDate()+7*t)},function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*p)/d})}function r(e){return i(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+7*t)},function(e,t){return(t-e)/d})}var s=new Date,a=new Date,u=i(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e});u.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?i(function(t){t.setTime(Math.floor(t/e)*e)},function(t,n){t.setTime(+t+n*e)},function(t,n){return(n-t)/e}):u:null};var l=u,c=u.range,p=6e4,d=6048e5,h=i(function(e){e.setTime(e-e.getMilliseconds())},function(e,t){e.setTime(+e+1e3*t)},function(e,t){return(t-e)/1e3},function(e){return e.getUTCSeconds()}),f=h,m=h.range,y=i(function(e){e.setTime(e-e.getMilliseconds()-1e3*e.getSeconds())},function(e,t){e.setTime(+e+t*p)},function(e,t){return(t-e)/p},function(e){return e.getMinutes()}),g=y,v=y.range,b=i(function(e){e.setTime(e-e.getMilliseconds()-1e3*e.getSeconds()-e.getMinutes()*p)},function(e,t){e.setTime(+e+36e5*t)},function(e,t){return(t-e)/36e5},function(e){return e.getHours()}),S=b,C=b.range,w=i(function(e){e.setHours(0,0,0,0)},function(e,t){e.setDate(e.getDate()+t)},function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*p)/864e5},function(e){return e.getDate()-1}),_=w,O=w.range,x=o(0),E=o(1),A=o(2),T=o(3),R=o(4),F=o(5),M=o(6),I=x.range,P=E.range,D=A.range,$=T.range,N=R.range,k=F.range,V=M.range,L=i(function(e){e.setDate(1),e.setHours(0,0,0,0)},function(e,t){e.setMonth(e.getMonth()+t)},function(e,t){return t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())},function(e){return e.getMonth()}),B=L,U=L.range,Q=i(function(e){e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e,t){return t.getFullYear()-e.getFullYear()},function(e){return e.getFullYear()});Q.every=function(e){return isFinite(e=Math.floor(e))&&e>0?i(function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n*e)}):null};var j=Q,H=Q.range,q=i(function(e){e.setUTCSeconds(0,0)},function(e,t){e.setTime(+e+t*p)},function(e,t){return(t-e)/p},function(e){return e.getUTCMinutes()}),z=q,W=q.range,G=i(function(e){e.setUTCMinutes(0,0,0)},function(e,t){e.setTime(+e+36e5*t)},function(e,t){return(t-e)/36e5},function(e){return e.getUTCHours()}),Y=G,K=G.range,J=i(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/864e5},function(e){return e.getUTCDate()-1}),Z=J,X=J.range,ee=r(0),te=r(1),ne=r(2),ie=r(3),oe=r(4),re=r(5),se=r(6),ae=ee.range,ue=te.range,le=ne.range,ce=ie.range,pe=oe.range,de=re.range,he=se.range,fe=i(function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCMonth(e.getUTCMonth()+t)},function(e,t){return t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear())},function(e){return e.getUTCMonth()}),me=fe,ye=fe.range,ge=i(function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)},function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()},function(e){return e.getUTCFullYear()});ge.every=function(e){return isFinite(e=Math.floor(e))&&e>0?i(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)}):null};var ve=ge,be=ge.range;n.d(t,"g",function(){return i}),n.d(t,"h",function(){return l}),n.d(t,"i",function(){return c}),n.d(t,"L",function(){return l}),n.d(t,"M",function(){return c}),n.d(t,"r",function(){return f}),n.d(t,"s",function(){return m}),n.d(t,"V",function(){return f}),n.d(t,"W",function(){return m}),n.d(t,"j",function(){return g}),n.d(t,"k",function(){return v}),n.d(t,"e",function(){return S}),n.d(t,"f",function(){return C}),n.d(t,"a",function(){return _}),n.d(t,"b",function(){return O}),n.d(t,"B",function(){return x}),n.d(t,"C",function(){return I}),n.d(t,"t",function(){return x}),n.d(t,"u",function(){return I}),n.d(t,"l",function(){return E}),n.d(t,"m",function(){return P}),n.d(t,"x",function(){return A}),n.d(t,"y",function(){return D}),n.d(t,"z",function(){return T}),n.d(t,"A",function(){return $}),n.d(t,"v",function(){return R}),n.d(t,"w",function(){return N}),n.d(t,"c",function(){return F}),n.d(t,"d",function(){return k}),n.d(t,"p",function(){return M}),n.d(t,"q",function(){return V}),n.d(t,"n",function(){return B}),n.d(t,"o",function(){return U}),n.d(t,"D",function(){return j}),n.d(t,"E",function(){return H}),n.d(t,"N",function(){return z}),n.d(t,"O",function(){return W}),n.d(t,"J",function(){return Y}),n.d(t,"K",function(){return K}),n.d(t,"F",function(){return Z}),n.d(t,"G",function(){return X}),n.d(t,"_5",function(){return ee}),n.d(t,"_6",function(){return ae}),n.d(t,"X",function(){return ee}),n.d(t,"Y",function(){return ae}),n.d(t,"P",function(){return te}),n.d(t,"Q",function(){return ue}),n.d(t,"_1",function(){return ne}),n.d(t,"_2",function(){return le}),n.d(t,"_3",function(){return ie}),n.d(t,"_4",function(){return ce}),n.d(t,"Z",function(){return oe}),n.d(t,"_0",function(){return pe}),n.d(t,"H",function(){return re}),n.d(t,"I",function(){return de}),n.d(t,"T",function(){return se}),n.d(t,"U",function(){return he}),n.d(t,"R",function(){return me}),n.d(t,"S",function(){return ye}),n.d(t,"_7",function(){return ve}),n.d(t,"_8",function(){return be})},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=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])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n(26),r=n(3),s=n(1),a=n(15),u=n(12),l=n(4),c=n(7),p=n(8),d=n(2),h=n(30),f=n(70),m=n(220),y=function(e){function t(n,i,r,h,y,g){void 0===y&&(y=o.ModalBox);var v=e.call(this,n,t.ID,r)||this;v.element=n,v.options=i,v.bindings=r,v.result=h,v.origin=g,v.options=p.ComponentOptions.initComponentOptions(n,t,i),v.resultLink=s.$$("a",{className:c.Component.computeCssClassName(f.ResultLink)}),g||(v.origin=v.resultLink.el);var b=s.$$("div",{className:"coveo-youtube-thumbnail-container"});v.resultLink.append(b.el);var S=s.$$("img",{src:l.Utils.getFieldValue(v.result,"ytthumbnailurl"),className:"coveo-youtube-thumbnail-img",alt:v.result.title,title:v.result.title});S.el.style.width=v.options.width,S.el.style.height=v.options.height,S.el.onerror=function(){var e=s.$$("div",{},u.SVGIcons.icons.video).el;a.SVGDom.addStyleToSVGInContainer(e,{width:v.options.width}),s.$$(S).remove(),b.append(e)},b.append(S.el);var C=s.$$("span",{className:"coveo-youtube-thumbnail-play-button"});return b.append(C.el),s.$$(v.element).append(v.resultLink.el),d.Initialization.automaticallyCreateComponentsInsideResult(n,h,{ResultLink:v.options.embed?{onClick:function(){return v.openYoutubeIframe()}}:null}),v.modalbox=new m.AccessibleModal("coveo-youtube-player",v.searchInterface.options.modalContainer,y,{overlayClose:!0}),v}return i(t,e),t.prototype.openResultLink=function(){h.get(this.resultLink.el).openLinkAsConfigured()},t.prototype.openYoutubeIframe=function(){var e=this,t=s.$$("iframe",{src:"https://www.youtube.com/embed/"+this.extractVideoId()+"?autoplay=1",allowfullscreen:"allowfullscreen",width:"100%",height:"100%",title:this.result.title}),n=s.$$("div");n.append(t.el),this.modalbox.openResult({result:this.result,options:{showDate:!0,title:this.result.title},bindings:this.bindings,content:n.el,validation:function(){return!0},origin:this.origin}),s.$$(s.$$(this.modalbox.wrapper).find(".coveo-quickview-close-button")).on("click",function(){e.modalbox.close()})},t.prototype.extractVideoId=function(){return this.result.clickUri.split("watch?v=")[1]},t.ID="YouTubeThumbnail",t.doExport=function(){r.exportGlobally({YouTubeThumbnail:t})},t.options={width:p.ComponentOptions.buildStringOption({defaultValue:"200px"}),height:p.ComponentOptions.buildStringOption({defaultValue:"112px"}),embed:p.ComponentOptions.buildBooleanOption({defaultValue:!0})},t}(c.Component);t.YouTubeThumbnail=y,d.Initialization.registerAutoCreateComponent(y)},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=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])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),o=this&&this.__assign||Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e};Object.defineProperty(t,"__esModule",{value:!0});var r=n(69),s=n(8),a=n(116),u=n(572),l=n(2),c=n(23),p=n(3),d=n(83),h=n(172),f=n(0),m=function(e){function t(n,i,o){var r=e.call(this,n,s.ComponentOptions.initComponentOptions(n,t,i),o,t.ID)||this;return r.element=n,r.isFieldValueCompatible=!1,r.options.enableFacetSearch=!1,r.options.enableSettings=!1,r.options.includeInOmnibox=!1,r.options.enableMoreLess=!1,h.ResponsiveFacets.init(r.root,r,r.options),r}return i(t,e),t.prototype.getValueCaption=function(t){return this.options.valueCaption||this.isLabelSpecifiedForValue(t)?e.prototype.getValueCaption.call(this,t):this.translateValuesFromFormat(t)},t.prototype.isLabelSpecifiedForValue=function(e){return this.options.ranges&&!!f.find(this.options.ranges,function(t){return!f.isUndefined(t.label)&&t.label===e.lookupValue})},t.prototype.initFacetQueryController=function(){this.facetQueryController=new u.FacetRangeQueryController(this)},t.prototype.processNewGroupByResults=function(t){var n=this;null!=t&&null==this.options.ranges&&t.values.sort(function(e,t){return n.sortRangeGroupByResults(e.value,t.value)}),e.prototype.processNewGroupByResults.call(this,t)},t.prototype.sortRangeGroupByResults=function(e,t){var n,i,o=this.extractStartAndEndValue(e),r=this.extractStartAndEndValue(t);return n=o?o.start:e,i=r?r.start:t,this.options.dateField?Date.parse(n)-Date.parse(i):Number(n)-Number(i)},t.prototype.translateValuesFromFormat=function(e){var t=this.extractStartAndEndValue(e.lookupValue||e.value);return t?this.formatValue(t.start)+" - "+this.formatValue(t.end):null},t.prototype.extractStartAndEndValue=function(e){var t=/^(.*)\.\.(.*)$/.exec(e);return null==t?null:{start:t[1],end:t[2]}},t.prototype.formatValue=function(e){var t=!!e.match(/^[\+\-]?[0-9]+(\.[0-9]+)?$/);return this.options.dateField||!t?this.formatDateValue(e):this.formatNumberValue(Number(e))},t.prototype.formatDateValue=function(e){return a.TemplateHelpers.getHelper("dateTime")(e,{alwaysIncludeTime:!1,includeTimeIfThisWeek:!1,includeTimeIfToday:!1,omitYearIfCurrentOne:!1,useTodayYesterdayAndTomorrow:!1,useWeekdayIfThisWeek:!1})},t.prototype.formatNumberValue=function(e){return c.format(e,this.options.valueFormat)},t.ID="FacetRange",t.parent=r.Facet,t.doExport=function(){p.exportGlobally({FacetRange:t})},t.options=o({dateField:s.ComponentOptions.buildBooleanOption({defaultValue:!1}),ranges:s.ComponentOptions.buildJsonOption(),valueFormat:s.ComponentOptions.buildStringOption({defaultValue:"n0"})},d.ResponsiveFacetOptions),t}(r.Facet);t.FacetRange=m,l.Initialization.registerAutoCreateComponent(m)},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=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])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),r=n(11),s=n(3),a=n(5),u=n(1),l=n(4),c=n(7),p=n(8),d=n(2),h=n(48),f=n(503),m=function(e){function t(n,i,o){var s=e.call(this,n,t.ID,o)||this;return s.element=n,s.options=i,s.options=p.ComponentOptions.initComponentOptions(n,t,i),a.Assert.check(l.Utils.isCoveoField(s.options.field),s.options.field+" is not a valid field"),a.Assert.exists(s.options.maximumExpandedResults),s.swapParentChildFoldingFields(),s.bind.onRootElement(r.QueryEvents.buildingQuery,s.handleBuildingQuery),s.bind.onRootElement(r.QueryEvents.preprocessResults,s.handlepreprocessResults),s}return i(t,e),t.foldWithParent=function(e){var n={score:Number.NEGATIVE_INFINITY,children:[],result:{raw:!1}};o.each(e,function(e,i){var r=t.findUniqueId(n.children,e.uniqueId);if(null==e.parentResult||e.parentResult.uniqueId==e.uniqueId)null==r&&(r={result:e,score:i,children:[]},n.children.push(r),r.parent=n);else{null!=r?(r.score=Math.min(i,r.score),r.parent.children=o.without(r.parent.children,r)):r={result:e,score:i,children:[]};var s=t.findUniqueId(n.children,e.parentResult.uniqueId);null==s&&(s={result:e.parentResult,score:Number.POSITIVE_INFINITY,children:[]},n.children.push(s),s.parent=n),s.children.push(r),r.parent=s;for(var a=s;null!=a&&r.score<a.score;)a.score=r.score,a=a.parent}});var i=t.resultNodeToQueryResult(n);return o.each(i.attachments,function(e){return e.parentResult=null}),i.attachments},t.defaultGetResult=function(e){var n=e.childResults||[];n.unshift(e),e.childResults=[],n=t.foldWithParent(n);var i=n.shift();return i.childResults=n,i},t.defaultGetMoreResults=function(e){return t.foldWithParent(e)},t.resultNodeToQueryResult=function(e){var n=e.result;return n.attachments=o.map(o.sortBy(e.children,"score"),t.resultNodeToQueryResult),n.parentResult=null!=e.parent?e.parent.result:null,n},t.findUniqueId=function(e,n){for(var i=0;i<e.length;i++){if(e[i].result.uniqueId==n)return e[i];var o=t.findUniqueId(e[i].children,n);if(null!=o)return o}return null},t.prototype.swapParentChildFoldingFields=function(){null!=this.options.childField&&(this.logger.warn('Detecting usage of deprecated option "childField". Assigning it automatically to the "parent" option instead.'),this.logger.warn("The option definition was changed to support universal folding across all sources."),this.logger.warn('To remove this warning, rename the "childField" option (data-child-field) to "parent" (data-parent).'),this.options.parent=this.options.childField),null!=this.options.parentField&&(this.logger.warn('Detecting usage of deprecated option "parentField". Assigning it automatically to the "child" option instead.'),this.logger.warn("The option definition was changed to support universal folding across all sources."),this.logger.warn('To remove this warning, rename the "parentField" option (data-parent-field) to "child" (data-child).'),this.options.child=this.options.parentField)},t.prototype.handleBuildingQuery=function(e){a.Assert.exists(e),this.disabled||(e.queryBuilder.childField=this.options.parent,e.queryBuilder.parentField=this.options.child,e.queryBuilder.filterField=this.options.field,e.queryBuilder.filterFieldRange=this.options.range,e.queryBuilder.requiredFields.push(this.options.field),null!=this.options.parent&&e.queryBuilder.requiredFields.push(this.options.parent),null!=this.options.child&&e.queryBuilder.requiredFields.push(this.options.child))},t.prototype.handlepreprocessResults=function(e){var n=this;a.Assert.exists(e),a.Assert.check(!e.results._folded,"Two or more Folding components are active at the same time for the same Tab. Cannot process the results."),e.results._folded=!0;var i=e.results,r=this.options.getResult||t.defaultGetResult;i.results=o.map(i.results,r),this.options.rearrange&&i.results.forEach(function(e){e.childResults=o.sortBy(e.childResults,function(e){return l.Utils.getFieldValue(e,n.options.rearrange.sort)}),n.shouldBeReversed(e.childResults)&&(e.childResults=e.childResults.reverse())}),this.addLoadMoreHandler(i.results,e.query)},t.prototype.shouldBeReversed=function(e){var t=this;return"ascending"!=this.options.rearrange.direction&&!o.any(e,function(e){return l.Utils.isNullOrUndefined(l.Utils.getFieldValue(e,t.options.rearrange.sort))})},t.prototype.addLoadMoreHandler=function(e,t){var n=this;return o.map(e,function(e){return n.options.enableExpand&&!l.Utils.isNullOrUndefined(l.Utils.getFieldValue(e,n.options.field))&&(e.moreResults=function(){return n.moreResults(e,t)}),e})},t.prototype.moreResults=function(e,t){var n=this,i=o.clone(t),r=new h.QueryBuilder;i.numberOfResults=this.options.maximumExpandedResults;var s=l.Utils.getFieldValue(e,this.options.field);return l.Utils.isNonEmptyString(s)&&(r.advancedExpression.addFieldExpression(this.options.field,"=",[s]),i.aq=r.build().aq),l.Utils.isNonEmptyString(t.q)&&(t.enableQuerySyntax?i.q="( "+t.q+" ) OR @uri":(i.enableQuerySyntax=!0,i.q="( <@- "+t.q+" -@> ) OR @uri")),l.Utils.isNonEmptyString(this.options.expandExpression)&&(i.cq=this.options.expandExpression),null!=this.options.child&&(i.parentField=this.options.child),null!=this.options.parent&&(i.childField=this.options.parent),i.filterField=null,i.filterFieldRange=null,i.firstResult=0,this.options.rearrange?(this.options.rearrange.putInQueryBuilder(r),i.sortCriteria=r.sortCriteria,i.sortField=r.sortField):(i.sortCriteria=t.sortCriteria,i.sortField=t.sortField),this.queryController.getEndpoint().search(i).then(function(e){return n.handlePreprocessMoreResults(e),e.results}).catch(function(e){return n.logger.error("Invalid query performed while trying to retrieve more results for folding.",e),[]})},t.prototype.handlePreprocessMoreResults=function(e){var n=this.options.getMoreResults||t.defaultGetMoreResults;e.results=n(e.results),u.$$(this.element).trigger(r.QueryEvents.preprocessMoreResults,{results:e})},t.ID="Folding",t.doExport=function(){s.exportGlobally({Folding:t})},t.options={field:p.ComponentOptions.buildFieldOption({defaultValue:"@foldingcollection"}),child:p.ComponentOptions.buildFieldOption({defaultValue:"@foldingchild"}),parent:p.ComponentOptions.buildFieldOption({defaultValue:"@foldingparent"}),childField:p.ComponentOptions.buildFieldOption({deprecated:"This option is deprecated. Instead, use the data-parent option."}),parentField:p.ComponentOptions.buildFieldOption({deprecated:"This option is deprecated. Instead, use the data-child option."}),range:p.ComponentOptions.buildNumberOption({defaultValue:2,min:0}),rearrange:p.ComponentOptions.buildCustomOption(function(e){return l.Utils.isNonEmptyString(e)?f.SortCriteria.parse(e):null}),enableExpand:p.ComponentOptions.buildBooleanOption({defaultValue:!0}),expandExpression:p.ComponentOptions.buildQueryExpressionOption({depend:"enableExpand"}),maximumExpandedResults:p.ComponentOptions.buildNumberOption({defaultValue:100,min:1,depend:"enableExpand"}),getResult:p.ComponentOptions.buildCustomOption(function(){return null}),getMoreResults:p.ComponentOptions.buildCustomOption(function(){return null})},t}(c.Component);t.Folding=m,d.Initialization.registerAutoCreateComponent(m)},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=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])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n(7),r=n(8),s=n(5),a=n(21),u=n(2),l=n(4),c=n(115),p=n(1),d=n(3),h=n(132),f=function(e){function t(n,i,o,a){var u=e.call(this,n,t.ID,o)||this;return u.element=n,u.options=i,u.result=a,u.options=r.ComponentOptions.initComponentOptions(n,t,i),u.result=u.result||u.resolveResult(),s.Assert.exists(u.result),h.TemplateFieldsEvaluator.evaluateFieldsToMatch(u.options.conditions,u.result)?u.initialize(n,o):null!=u.element.parentElement&&u.element.parentElement.removeChild(u.element),u}return i(t,e),t.prototype.initialize=function(e,n){var i=p.$$(this.element).find("."+o.Component.computeCssClassNameForType("Quickview"));!l.Utils.isNullOrUndefined(i)&&a.QueryUtils.hasHTMLVersion(this.result)&&(p.$$(this.element).addClass("coveo-with-quickview"),p.$$(this.element).on("click",function(){o.Component.get(i).open()})),t.createIcon(this.result,this.options,e,n)},t.createIcon=function(e,n,i,o){void 0===n&&(n={}),void 0===i&&(i=p.$$("div").el);var r=c.FileTypes.get(e);return!o&&e.searchInterface&&(o=e.searchInterface.getBindings()),r=t.preprocessIconInfo(n,r),p.$$(i).toggleClass("coveo-small",!0===n.small),void 0!=n.value&&(!0===n.small&&-1==n.value.indexOf("-small")&&(r.icon+="-small"),!1===n.small&&-1!=n.value.indexOf("-small")&&(r.icon=r.icon.replace("-small",""))),p.$$(i).addClass(r.icon),i.setAttribute("title",r.caption),t.shouldDisplayLabel(n,o)&&(i.appendChild(p.$$("span",{className:"coveo-icon-caption-overlay"},r.caption).el),p.$$(i).addClass("coveo-icon-with-caption-overlay"),p.$$(i).setAttribute("data-with-label","true")),i},t.shouldDisplayLabel=function(e,t){return!1!==e.withLabel},t.preprocessIconInfo=function(e,t){return null!=e.labelValue&&(t.caption=e.labelValue),null!=e.value&&(t.icon="coveo-icon "+e.value),null==t.caption&&(t.caption=""),null==t.icon&&(t.icon="coveo-icon coveo-sprites-custom"),t},t.ID="Icon",t.doExport=function(){d.exportGlobally({Icon:t})},t.options={value:r.ComponentOptions.buildStringOption(),small:r.ComponentOptions.buildBooleanOption(),withLabel:r.ComponentOptions.buildBooleanOption(),labelValue:r.ComponentOptions.buildLocalizedStringOption(),conditions:r.ComponentOptions.buildFieldConditionOption()},t}(o.Component);t.Icon=f,u.Initialization.registerAutoCreateComponent(f)},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=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])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),o=this&&this.__assign||Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e};Object.defineProperty(t,"__esModule",{value:!0}),n(573);var r=n(0),s=n(0),a=n(35),u=n(34),l=n(11),c=n(96),p=n(3),d=n(174),h=n(504),f=n(505),m=n(218),y=n(5),g=n(28),v=n(18),b=n(13),S=n(6),C=n(1),w=n(4),_=n(10),O=n(123),x=n(120),E=n(7),A=n(8),T=n(2),R=n(134),F=n(507),M=n(508),I=n(19),P=n(574),D=n(575),$=n(576),N=n(577),k=function(e){function t(n,i,o){var r=e.call(this,n,t.ID,o)||this;r.element=n,r.options=i,r.lastSuggestions=[],r.movedOnce=!1,r.skipAutoSuggest=!1,r.options=A.ComponentOptions.initComponentOptions(n,t,i);var s=r.options.enableQuerySyntax;return new F.QueryboxOptionsProcessing(r).postProcess(),r.omniboxAnalytics=r.searchInterface.getOmniboxAnalytics(),C.$$(r.element).toggleClass("coveo-query-syntax-disabled",0==r.options.enableQuerySyntax),r.suggestionAddon=r.options.enableQuerySuggestAddon?new N.QuerySuggestAddon(r):new N.VoidQuerySuggestAddon,new D.OldOmniboxAddon(r),r.createMagicBox(),r.bind.onRootElement(l.QueryEvents.newQuery,function(e){return r.handleNewQuery(e)}),r.bind.onRootElement(l.QueryEvents.buildingQuery,function(e){return r.handleBuildingQuery(e)}),r.bind.onRootElement(c.StandaloneSearchInterfaceEvents.beforeRedirect,function(){return r.handleBeforeRedirect()}),r.bind.onRootElement(l.QueryEvents.querySuccess,function(){return r.handleQuerySuccess()}),r.bind.onQueryState(v.MODEL_EVENTS.CHANGE_ONE,b.QUERY_STATE_ATTRIBUTES.Q,function(e){return r.handleQueryStateChanged(e)}),r.isAutoSuggestion()&&r.bind.onRootElement(l.QueryEvents.duringQuery,function(e){return r.handleDuringQuery(e)}),r.bind.onComponentOptions(v.MODEL_EVENTS.CHANGE_ONE,g.COMPONENT_OPTIONS_ATTRIBUTES.SEARCH_BOX,function(e){null!=e.value.enableQuerySyntax?r.options.enableQuerySyntax=e.value.enableQuerySyntax:r.options.enableQuerySyntax=s,r.updateGrammar()}),r.bind.onRootElement(u.OmniboxEvents.querySuggestGetFocus,function(e){return r.handleQuerySuggestGetFocus(e)}),r}return i(t,e),t.prototype.submit=function(){var e=this;this.magicBox.clearSuggestion(),this.updateQueryState(),this.triggerNewQuery(!1,function(){x.logSearchBoxSubmitEvent(e.usageAnalytics)}),this.magicBox.blur()},t.prototype.getText=function(){return this.magicBox.getText()},t.prototype.setText=function(e){this.magicBox.setText(e),this.updateQueryState()},t.prototype.clear=function(){this.magicBox.clear()},t.prototype.getInput=function(){return this.magicBox.element.querySelector("input")},t.prototype.getResult=function(){return this.magicBox.getResult()},t.prototype.getDisplayedResult=function(){return this.magicBox.getDisplayedResult()},t.prototype.getCursor=function(){return this.magicBox.getCursor()},t.prototype.resultAtCursor=function(e){return this.magicBox.resultAtCursor(e)},t.prototype.createGrammar=function(){var e=null;return this.options.enableQuerySyntax?(e=f.Expressions(h.Complete),this.options.enableFieldAddon&&new P.FieldAddon(this),null!=this.options.fieldAlias&&(this.options.listOfFields=this.options.listOfFields||[],this.options.listOfFields=this.options.listOfFields.concat(r.keys(this.options.fieldAlias))),this.options.enableQueryExtensionAddon&&new $.QueryExtensionAddon(this)):e={start:"Any",expressions:{Any:/.*/}},null!=this.options.grammar&&(e=this.options.grammar(e)),e},t.prototype.updateGrammar=function(){var e=this.createGrammar();this.magicBox.grammar=new d.Grammar(e.start,e.expressions),this.magicBox.setText(this.magicBox.getText())},t.prototype.createMagicBox=function(){var e=this.createGrammar();this.magicBox=m.createMagicBox(this.element,new d.Grammar(e.start,e.expressions),{inline:this.options.inline,selectableSuggestionClass:"coveo-omnibox-selectable",selectedSuggestionClass:"coveo-omnibox-selected",suggestionTimeout:this.options.omniboxTimeout});var t=C.$$(this.magicBox.element).find("input");t&&C.$$(t).setAttribute("aria-label",S.l("Search")),this.setupMagicBox()},t.prototype.setupMagicBox=function(){var e=this;this.magicBox.onmove=function(){e.isAutoSuggestion()&&(e.modifyEventTo=e.getOmniboxAnalyticsEventCause()),e.movedOnce=!0},this.magicBox.onfocus=function(){e.isAutoSuggestion()&&(e.skipAutoSuggest=!0)},this.magicBox.onSuggestions=function(t){w.Utils.isEmptyString(e.getText())&&(e.omniboxAnalytics.partialQueries=[]),e.movedOnce=!1,e.lastSuggestions=t,e.isAutoSuggestion()&&!e.skipAutoSuggest&&e.searchAsYouType()},this.options.enableSearchAsYouType&&C.$$(this.element).addClass("coveo-magicbox-search-as-you-type"),this.magicBox.onchange=function(){e.skipAutoSuggest=!1;var t=e.getText();void 0!=t&&""!=t?e.isAutoSuggestion()?e.movedOnce&&e.searchAsYouType(!0):e.options.enableSearchAsYouType&&e.searchAsYouType(!0):e.clear()},this.options.placeholder&&(this.magicBox.element.querySelector("input").placeholder=this.options.placeholder),this.magicBox.onsubmit=function(){return e.submit()},this.magicBox.onselect=function(t){var n=r.indexOf(e.lastSuggestions,t),i=r.compact(r.map(e.lastSuggestions,function(e){return e.text}));e.magicBox.clearSuggestion(),e.updateQueryState(),e.isAutoSuggestion()?e.isAutoSuggestion()&&e.movedOnce?e.handleAutoSuggestionWithKeyboard(n,i):e.isAutoSuggestion()&&!e.movedOnce&&e.handleAutoSuggestionsWithMouse(n,i):(e.usageAnalytics.cancelAllPendingEvents(),e.triggerNewQuery(!1,function(){e.usageAnalytics.logSearchEvent(e.getOmniboxAnalyticsEventCause(),e.buildCustomDataForPartialQueries(n,i))})),e.isAutoSuggestion()&&(e.omniboxAnalytics.partialQueries=[])},this.magicBox.onblur=function(){e.isAutoSuggestion()&&(e.setText(e.getQuery(!0)),e.usageAnalytics.sendAllPendingEvents())},this.magicBox.onclear=function(){e.updateQueryState(),(e.options.triggerQueryOnClear||e.options.enableSearchAsYouType)&&e.triggerNewQuery(!1,function(){e.usageAnalytics.logSearchEvent(_.analyticsActionCauseList.searchboxClear,{})})},this.magicBox.ontabpress=function(){e.handleTabPress()},this.magicBox.getSuggestions=function(){return e.handleSuggestions()}},t.prototype.handleAutoSuggestionWithKeyboard=function(e,t){var n=this;this.searchAsYouTypeTimeout?(this.usageAnalytics.cancelAllPendingEvents(),clearTimeout(this.searchAsYouTypeTimeout),this.searchAsYouTypeTimeout=void 0,this.triggerNewQuery(!1,function(){n.usageAnalytics.logSearchEvent(n.getOmniboxAnalyticsEventCause(),n.buildCustomDataForPartialQueries(e,t))})):(this.modifyEventTo=this.getOmniboxAnalyticsEventCause(),this.modifyCustomDataOnPending(e,t),this.modifyQueryContentOnPending(),this.usageAnalytics.sendAllPendingEvents())},t.prototype.handleAutoSuggestionsWithMouse=function(e,t){var n=this;this.searchAsYouTypeTimeout||0!=e?(this.clearSearchAsYouType(),this.usageAnalytics.cancelAllPendingEvents(),this.triggerNewQuery(!1,function(){n.usageAnalytics.logSearchEvent(n.getOmniboxAnalyticsEventCause(),n.buildCustomDataForPartialQueries(e,t))})):(this.modifyEventTo=this.getOmniboxAnalyticsEventCause(),this.modifyCustomDataOnPending(e,t),this.modifyQueryContentOnPending(),this.usageAnalytics.sendAllPendingEvents(),this.lastQuery!=this.getText()&&this.triggerNewQuery(!1,function(){n.usageAnalytics.logSearchEvent(n.getOmniboxAnalyticsEventCause(),n.buildCustomDataForPartialQueries(e,t))}))},t.prototype.modifyCustomDataOnPending=function(e,t){var n=this.usageAnalytics.getPendingSearchEvent();if(n instanceof O.PendingSearchAsYouTypeSearchEvent){var i=this.buildCustomDataForPartialQueries(e,t);r.each(r.keys(i),function(e){n.modifyCustomData(e,i[e])})}},t.prototype.modifyQueryContentOnPending=function(){var e=this.usageAnalytics.getPendingSearchEvent();if(e instanceof O.PendingSearchAsYouTypeSearchEvent){var t=this.getQuery(this.options.enableSearchAsYouType);e.modifyQueryContent(t)}},t.prototype.buildCustomDataForPartialQueries=function(e,t){return this.updateOmniboxAnalytics(t,e),this.omniboxAnalytics.buildCustomDataForPartialQueries()},t.prototype.handleQuerySuggestGetFocus=function(e){var t=e.suggestion,n=r.compact(r.map(this.lastSuggestions,function(e){return e.text})),i=this.lastSuggestions.indexOf(s.findWhere(this.lastSuggestions,{text:t}));this.updateOmniboxAnalytics(n,i)},t.prototype.updateOmniboxAnalytics=function(e,t){this.omniboxAnalytics.suggestions=e,this.omniboxAnalytics.suggestionRanking=t},t.prototype.handleSuggestions=function(){var e=this.getText();if(this.options.querySuggestCharacterThreshold<=e.length){var t={suggestions:[],omnibox:this};return this.triggerOmniboxSuggestions(t),w.Utils.isNullOrEmptyString(e)||this.omniboxAnalytics.partialQueries.push(e),r.compact(t.suggestions)}return[]},t.prototype.triggerOmniboxSuggestions=function(e){this.bind.trigger(this.element,u.OmniboxEvents.populateOmniboxSuggestions,e),C.$$(this.element).isDescendant(this.root)||this.bind.trigger(this.root,u.OmniboxEvents.populateOmniboxSuggestions,e)},t.prototype.handleBeforeRedirect=function(){this.updateQueryState()},t.prototype.handleBuildingQuery=function(e){var t=this;y.Assert.exists(e),y.Assert.exists(e.queryBuilder),this.updateQueryState(),this.lastQuery=this.getQuery(e.searchAsYouType);var n=this.lastQuery==this.magicBox.getDisplayedResult().input?this.magicBox.getDisplayedResult().clone():this.magicBox.grammar.parse(this.lastQuery).clean(),i={result:n};if(this.options.enableQuerySyntax){var o=i.result.findAll("FieldValueNotQuoted");if(r.each(o,function(e){return e.value='"'+e.value.replace(/"|\u00A0/g," ")+'"'}),this.options.fieldAlias){var s=i.result.findAll(function(e){return"FieldName"==e.expression.id&&e.isSuccess()});r.each(s,function(e){var n=r.find(r.keys(t.options.fieldAlias),function(t){return t.toLowerCase()==e.value.toLowerCase()});null!=n&&(e.value=t.options.fieldAlias[n])})}}this.triggerOmniboxPreprocessResultForQuery(i);var a=i.result.toString();new M.QueryboxQueryParameters(this.options).addParameters(e.queryBuilder,a)},t.prototype.triggerOmniboxPreprocessResultForQuery=function(e){this.bind.trigger(this.element,u.OmniboxEvents.omniboxPreprocessResultForQuery,e),C.$$(this.element).isDescendant(this.root)||this.bind.trigger(this.root,u.OmniboxEvents.omniboxPreprocessResultForQuery,e)},t.prototype.handleNewQuery=function(e){y.Assert.exists(e),this.options.clearFiltersOnNewQuery&&this.clearFiltersIfNewQuery(e)},t.prototype.clearFiltersIfNewQuery=function(e){var n=e.origin,i=e.searchAsYouType;if(!this.queryController.firstQuery){var o=[t.ID,"SearchButton"];if(n&&-1!==o.indexOf(n.type)){(this.queryController.getLastQuery().q||"")!==this.getQuery(i)&&this.bind.trigger(this.root,a.BreadcrumbEvents.clearBreadcrumb)}}},t.prototype.handleTabPress=function(){this.options.enableQuerySuggestAddon&&this.handleTabPressForSuggestions(),this.handleTabPressForOldOmniboxAddon()},t.prototype.handleTabPressForSuggestions=function(){if(this.options.enableSearchAsYouType)this.setText(this.getQuery(!0));else{var e=r.compact(r.map(this.lastSuggestions,function(e){return e.text}));this.usageAnalytics.logCustomEvent(this.getOmniboxAnalyticsEventCause(),this.buildCustomDataForPartialQueries(0,e),this.element)}},t.prototype.handleTabPressForOldOmniboxAddon=function(){var e=this.lastSuggestions.filter(function(e){return e.dom}).map(function(e){return C.$$(e.dom)}),t=this.findAllElementsWithClass(e,".coveo-omnibox-selected");if(t.length>0)C.$$(t[0]).trigger("tabSelect");else if(!this.options.enableQuerySuggestAddon){var n=this.findAllElementsWithClass(e,".coveo-omnibox-selectable");n.length>0&&C.$$(n[0]).trigger("tabSelect")}},t.prototype.findAllElementsWithClass=function(e,t){return e.map(function(e){return e.find(t)}).filter(function(e){return e}).reduce(function(e,t){return e.concat(t)},[])},t.prototype.triggerNewQuery=function(e,t){clearTimeout(this.searchAsYouTypeTimeout);var n=this.shouldExecuteQuery(e);this.lastQuery=this.getQuery(e),n&&t(),this.queryController.executeQuery({searchAsYouType:e,logInActionsHistory:!0,cancel:!n,origin:this})},t.prototype.getQuery=function(e){if(this.lastQuery==this.magicBox.getText())return this.lastQuery;if(!e)return this.magicBox.getText();var t=this.magicBox.getWordCompletion();if(null!=t)return t;var n=this.magicBox.getWordCompletion()||this.getFirstSuggestion();return n||(this.isAutoSuggestion()?this.lastQuery||this.magicBox.getText():this.magicBox.getText())},t.prototype.getFirstSuggestion=function(){if(null==this.lastSuggestions)return"";if(this.lastSuggestions.length<=0)return"";var e=r.find(this.lastSuggestions,function(e){return null!=e.text});return null==e?"":e.text},t.prototype.updateQueryState=function(){this.queryStateModel.set(b.QueryStateModel.attributesEnum.q,this.magicBox.getText())},t.prototype.handleQueryStateChanged=function(e){y.Assert.exists(e);var t=e.value;t!=this.magicBox.getText()&&this.magicBox.setText(t)},t.prototype.handleQuerySuccess=function(){this.isAutoSuggestion()||(this.omniboxAnalytics.partialQueries=[])},t.prototype.handleDuringQuery=function(e){var t=this;e.promise.then(function(){var n=t.usageAnalytics.getPendingSearchEvent();n instanceof O.PendingSearchAsYouTypeSearchEvent&&n.beforeResolve.then(function(n){e.promise.then(function(){t.modifyEventTo&&(n.modifyEventCause(t.modifyEventTo),t.modifyEventTo=null)})})})},t.prototype.searchAsYouType=function(e){var t=this;void 0===e&&(e=!1),this.clearSearchAsYouType(),this.shouldExecuteQuery(!0)&&(this.searchAsYouTypeTimeout=window.setTimeout(function(){if(t.suggestionShouldTriggerQuery()||e){var n=r.map(t.lastSuggestions,function(e){return e.text}),i=r.indexOf(n,t.magicBox.getWordCompletion());t.triggerNewQuery(!0,function(){t.usageAnalytics.logSearchAsYouType(_.analyticsActionCauseList.searchboxAsYouType,t.buildCustomDataForPartialQueries(i,n))}),t.clearSearchAsYouType()}},this.options.searchAsYouTypeDelay))},t.prototype.isAutoSuggestion=function(){return this.options.enableSearchAsYouType&&this.options.enableQuerySuggestAddon},t.prototype.shouldExecuteQuery=function(e){var t=this.getQuery(e);return!1===this.searchInterface.options.allowQueriesWithoutKeywords?this.lastQuery!=t&&w.Utils.isNonEmptyString(t):this.lastQuery!=t&&null!=t},t.prototype.suggestionShouldTriggerQuery=function(e){if(void 0===e&&(e=this.lastSuggestions),this.shouldExecuteQuery(!0)&&e&&e[0]){var t=e[0];if(t&&void 0!=t.executableConfidence)return t.executableConfidence>=.8;if(t.text&&0==t.text.indexOf(this.magicBox.getText()))return!0}return!1},t.prototype.clearSearchAsYouType=function(){clearTimeout(this.searchAsYouTypeTimeout),this.searchAsYouTypeTimeout=void 0},t.prototype.getOmniboxAnalyticsEventCause=function(){return this.searchInterface instanceof I.StandaloneSearchInterface?_.analyticsActionCauseList.omniboxFromLink:_.analyticsActionCauseList.omniboxAnalytics},t.ID="Omnibox",t.doExport=function(){p.exportGlobally({Omnibox:t,QueryboxQueryParameters:M.QueryboxQueryParameters})},t.options={inline:A.ComponentOptions.buildBooleanOption({defaultValue:!1}),enableSearchAsYouType:A.ComponentOptions.buildBooleanOption({defaultValue:!1,section:"Advanced Options"}),searchAsYouTypeDelay:A.ComponentOptions.buildNumberOption({defaultValue:2e3,min:0,depend:"enableSearchAsYouType",section:"Advanced Options"}),enableFieldAddon:A.ComponentOptions.buildBooleanOption({defaultValue:!1,depend:"enableQuerySyntax",postProcessing:function(e,t){return e&&(t.enableQuerySyntax=!0),e},section:"Advanced Options"}),enableSimpleFieldAddon:A.ComponentOptions.buildBooleanOption({defaultValue:!1,depend:"enableFieldAddon"}),listOfFields:A.ComponentOptions.buildFieldsOption({depend:"enableFieldAddon"}),enableQuerySuggestAddon:A.ComponentOptions.buildBooleanOption({defaultValue:!0,alias:["enableTopQueryAddon","enableRevealQuerySuggestAddon"]}),enableQueryExtensionAddon:A.ComponentOptions.buildBooleanOption({defaultValue:!1,depend:"enableQuerySyntax",postProcessing:function(e,t){return e&&(t.enableQuerySyntax=!0),e},section:"Advanced Options"}),placeholder:A.ComponentOptions.buildLocalizedStringOption(),omniboxTimeout:A.ComponentOptions.buildNumberOption({defaultValue:2e3,min:0}),enableQuerySyntax:A.ComponentOptions.buildBooleanOption({defaultValue:!1,section:"Advanced Options"}),numberOfSuggestions:A.ComponentOptions.buildNumberOption({defaultValue:5,min:1}),querySuggestCharacterThreshold:A.ComponentOptions.buildNumberOption({defaultValue:0,min:0}),clearFiltersOnNewQuery:A.ComponentOptions.buildBooleanOption({defaultValue:!1})},t}(E.Component);t.Omnibox=k,k.options=o({},k.options,R.Querybox.options),T.Initialization.registerAutoCreateComponent(k)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=n(0),r=n(6);n(578);var s=n(4),a=n(3),u=function(){function e(e,t,n){void 0===e&&(e=function(e){}),this.onChange=e,this.options=t,this.label=n,this.buildContent()}return e.doExport=function(){a.exportGlobally({MultiSelect:e})},e.prototype.build=function(){return this.element},e.prototype.getElement=function(){return this.element},e.prototype.getValue=function(){return o.chain(this.element.options).toArray().filter(function(e){return e.selected}).map(function(e){return e.value}).value()},e.prototype.getUnselectedValues=function(){return o.chain(this.element.options).toArray().filter(function(e){return!e.selected}).map(function(e){return e.value}).value()},e.prototype.setValue=function(e){var t=this.getValue(),n=o.partition(o.toArray(this.element.options),function(e){return o.contains(t,e.value)}),r=o.partition(o.toArray(this.element.options),function(t){return o.contains(e,t.value)});o.each(r[0],function(e){return e.selected=!0}),o.each(r[1],function(e){return e.selected=!1});var a=!1;s.Utils.arrayEqual(n[0],r[0],!1)||(a=!0),s.Utils.arrayEqual(n[1],r[1],!1)||(a=!0),a&&i.$$(this.element).trigger("change")},e.prototype.reset=function(){var e=this.getValue();this.element.selectedIndex=-1,s.Utils.isEmptyArray(e)||i.$$(this.element).trigger("change")},e.prototype.buildContent=function(){var e=this;this.element=i.$$("select",{className:"coveo-multi-select",multiple:"",size:this.options.length.toString()}).el;var t=i.$$("optgroup",{className:"coveo-list-group",label:this.label}),n=o.map(this.options,function(e){return i.$$("option",{value:e,className:"coveo-list-item"},r.l(e))});o.each(n,function(e){return t.append(e.el)}),this.element.appendChild(t.el),i.$$(this.element).on("change",function(){return e.onChange(e)})},e}();t.MultiSelect=u},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=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])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n(3),r=n(6),s=n(17),a=n(1),u=n(15),l=n(12),c=n(4),p=n(10),d=n(7),h=n(2),f=n(13),m=function(e){function t(n,i,o){var p=e.call(this,n,t.ID,o)||this;if(p.element=n,p.options=i,(new s.AccessibleButton).withElement(n).withOwner(p.bind).withLabel(r.l("Search")).withSelectAction(function(){return p.handleClick()}).build(),""==c.Utils.trim(a.$$(p.element).text())){var d=a.$$("span",{className:"coveo-search-button"},l.SVGIcons.icons.search).el;u.SVGDom.addClassToSVGInContainer(d,"coveo-search-button-svg");var h=a.$$("span",{className:"coveo-search-button-loading"},l.SVGIcons.icons.loading).el;u.SVGDom.addClassToSVGInContainer(h,"coveo-search-button-loading-svg"),n.appendChild(d),n.appendChild(h)}return p}return i(t,e),t.prototype.click=function(){this.handleClick()},t.prototype.handleClick=function(){this.logger.debug("Performing query following button click"),this.updateQueryStateModelWithSearchboxQuery(),this.usageAnalytics.logSearchEvent(p.analyticsActionCauseList.searchboxSubmit,{}),this.queryController.executeQuery({origin:this})},t.prototype.updateQueryStateModelWithSearchboxQuery=function(){var e=this.options&&this.options.searchbox;e&&this.queryStateModel.set(f.QueryStateModel.attributesEnum.q,e.getText())},t.ID="SearchButton",t.doExport=function(){o.exportGlobally({SearchButton:t})},t.options={},t}(d.Component);t.SearchButton=m,h.Initialization.registerAutoCreateComponent(m)},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=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])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0}),n(579);var o=n(3),r=n(11),s=n(5),a=n(18),u=n(13),l=n(1),c=n(15),p=n(12),d=n(4),h=n(120),f=n(7),m=n(8),y=n(2),g=n(503),v=n(17),b=n(6),S=n(0),C=function(e){function t(n,i,o){var l=e.call(this,n,t.ID,o)||this;return l.element=n,l.options=i,l.options=m.ComponentOptions.initComponentOptions(n,t,i),s.Assert.isLargerOrEqualsThan(1,l.options.sortCriteria.length),l.bind.onQueryState(a.MODEL_EVENTS.CHANGE_ONE,u.QUERY_STATE_ATTRIBUTES.SORT,function(){return l.handleQueryStateChanged()}),l.bind.onRootElement(r.QueryEvents.querySuccess,function(e){return l.handleQuerySuccess(e)}),l.bind.onRootElement(r.QueryEvents.buildingQuery,function(e){return l.handleBuildingQuery(e)}),l.bind.onRootElement(r.QueryEvents.queryError,function(e){return l.handleQueryError(e)}),l.ensureDom(),l}return i(t,e),t.prototype.createDom=function(){var e=this,t=l.$$(this.element);t.on("click",function(){return e.selectAndExecuteQuery()});var n=t.text();t.empty(),this.findOrCreateRadioGroup(),this.createSortButton(n),this.isToggle()&&this.createDirectionButton(),this.update()},t.prototype.select=function(e){e?(this.currentCriteria=S.find(this.options.sortCriteria,function(t){return t.direction==e}),this.updateQueryStateModel()):d.Utils.exists(this.currentCriteria)?this.selectNextCriteria():this.selectFirstCriteria()},t.prototype.selectAndExecuteQuery=function(){var e=this.currentCriteria;this.select(),e!=this.currentCriteria&&this.executeSearchQuery()},t.prototype.enable=function(){l.$$(this.element).removeClass("coveo-tab-disabled"),this.update(),e.prototype.enable.call(this)},t.prototype.disable=function(){l.$$(this.element).addClass("coveo-tab-disabled"),e.prototype.disable.call(this)},t.prototype.getCurrentCriteria=function(){return this.currentCriteria},t.prototype.match=function(e){return S.any(this.options.sortCriteria,function(t){return e==t.toString()})},t.prototype.findOrCreateRadioGroup=function(){this.radioGroup=this.findRadioGroup(),this.radioGroup||(this.element.setAttribute("role","radiogroup"),this.radioGroup=this.element)},t.prototype.createSortButton=function(e){var t=this;this.sortButton=l.$$("span").el,this.sortButton.innerText=this.options.caption||e,(new v.AccessibleButton).withElement(this.sortButton).withEnterKeyboardAction(function(){return t.selectAndExecuteQuery()}).withArrowsAction(function(e,n){return t.onArrowPressed(e,n)}).withLabel(this.isToggle()?this.getDirectionalLabel(this.initialDirection):this.getOmnidirectionalLabel()).withRole("radio").build(),this.element.appendChild(this.sortButton)},t.prototype.createDirectionButton=function(){var e=this;this.directionButton=l.$$.apply(void 0,["span",{className:"coveo-icon"}].concat(this.createIcons())).el,(new v.AccessibleButton).withElement(this.directionButton).withSelectAction(function(t){t.stopPropagation(),e.selectNextCriteriaAndExecuteQuery()}).withArrowsAction(function(t,n){return e.onArrowPressed(t,n)}).withLabel(this.getDirectionalLabel(this.initialDirection===g.VALID_DIRECTION.DESCENDING?g.VALID_DIRECTION.ASCENDING:g.VALID_DIRECTION.DESCENDING)).withRole("radio").build(),this.element.appendChild(this.directionButton)},t.prototype.onArrowPressed=function(e,t){this.selectNextRadioButton(e===v.ArrowDirection.RIGHT||e===v.ArrowDirection.DOWN?1:-1),t.stopPropagation()},t.prototype.createIcons=function(){var e=l.$$("span",{className:"coveo-sort-icon-ascending"},p.SVGIcons.icons.arrowUp);c.SVGDom.addClassToSVGInContainer(e.el,"coveo-sort-icon-ascending-svg");var t=l.$$("span",{className:"coveo-sort-icon-descending"},p.SVGIcons.icons.arrowDown);return c.SVGDom.addClassToSVGInContainer(t.el,"coveo-sort-icon-descending-svg"),[e,t]},t.prototype.findRadioGroup=function(e){return void 0===e&&(e=this.element),e&&e!==document.body?"radiogroup"===e.getAttribute("role")?e:this.findRadioGroup(e.parentElement):null},t.prototype.selectNextRadioButton=function(e){void 0===e&&(e=1);var t,n=l.$$(this.radioGroup).findAll('[role="radio"]'),i=S.findIndex(n,function(e){return"true"===e.getAttribute("aria-checked")});t=-1!==i?(i+e+n.length)%n.length:e>=0?0:n.length-1;var o=n[t];o.focus(),o.click()},t.prototype.executeSearchQuery=function(){var e=this;this.queryController.deferExecuteQuery({beforeExecuteQuery:function(){return h.logSortEvent(e.usageAnalytics,e.currentCriteria.sort+e.currentCriteria.direction)}})},t.prototype.selectFirstCriteria=function(){this.currentCriteria=this.options.sortCriteria[0],this.updateQueryStateModel()},t.prototype.selectNextCriteria=function(){var e=this.currentCriteria?this.options.sortCriteria.indexOf(this.currentCriteria):0;this.currentCriteria=this.options.sortCriteria[(e+1)%this.options.sortCriteria.length],this.updateQueryStateModel()},t.prototype.selectNextCriteriaAndExecuteQuery=function(){var e=this.currentCriteria;this.selectNextCriteria(),e!=this.currentCriteria&&this.executeSearchQuery()},t.prototype.handleQueryStateChanged=function(){this.update()},t.prototype.update=function(){var e=this.queryStateModel.get(u.QueryStateModel.attributesEnum.sort);if(d.Utils.isNonEmptyString(e)){var t=g.SortCriteria.parse(e);this.currentCriteria=S.find(this.options.sortCriteria,function(e){return t.equals(e)})}else this.currentCriteria=null;this.updateAppearance(),this.updateAccessibilityProperties()},Object.defineProperty(t.prototype,"captionIsDefined",{get:function(){return d.Utils.isNonEmptyString(this.options.caption)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"currentDirection",{get:function(){return this.currentCriteria?this.currentCriteria.direction:this.initialDirection},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"initialDirection",{get:function(){return this.options.sortCriteria[0].direction},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"displayedSortText",{get:function(){return this.captionIsDefined?this.options.caption:this.element.textContent},enumerable:!0,configurable:!0}),t.prototype.handleBuildingQuery=function(e){s.Assert.exists(e),(this.queryStateModel.get(u.QueryStateModel.attributesEnum.sort)==u.QueryStateModel.defaultAttributes.sort||this.isSelected())&&this.currentCriteria&&this.currentCriteria.putInQueryBuilder(e.queryBuilder)},t.prototype.handleQuerySuccess=function(e){0==e.results.results.length?l.$$(this.element).addClass("coveo-sort-hidden"):l.$$(this.element).removeClass("coveo-sort-hidden")},t.prototype.handleQueryError=function(e){l.$$(this.element).addClass("coveo-sort-hidden")},t.prototype.isToggle=function(){return this.options.sortCriteria.length>1},t.prototype.isSelected=function(){return d.Utils.exists(this.currentCriteria)},t.prototype.updateAppearance=function(){l.$$(this.element).toggleClass("coveo-selected",this.isSelected()),this.isToggle()&&(l.$$(this.element).removeClass("coveo-ascending"),l.$$(this.element).removeClass("coveo-descending"),this.isSelected()&&l.$$(this.element).addClass("ascending"===this.currentDirection?"coveo-ascending":"coveo-descending"))},t.prototype.updateAccessibilityProperties=function(){this.sortButton.setAttribute("aria-controls",this.resultListsIds);var e=this.currentDirection===this.initialDirection;this.sortButton.setAttribute("aria-checked",""+(this.isSelected()&&e)),this.isToggle()&&(this.directionButton.setAttribute("aria-controls",this.resultListsIds),this.directionButton.setAttribute("aria-checked",""+(this.isSelected()&&!e)))},Object.defineProperty(t.prototype,"resultListsIds",{get:function(){return this.searchInterface.getComponents("ResultList").map(function(e){return e.element.id}).join(" ")},enumerable:!0,configurable:!0}),t.prototype.getDirectionalLabel=function(e){var t=b.l(this.displayedSortText);return e===g.VALID_DIRECTION.DESCENDING?b.l("SortResultsByDescending",t):b.l("SortResultsByAscending",t)},t.prototype.getOmnidirectionalLabel=function(){var e=b.l(this.displayedSortText);return b.l("SortResultsBy",e)},t.prototype.updateQueryStateModel=function(){this.queryStateModel.set(u.QueryStateModel.attributesEnum.sort,this.currentCriteria.toString())},t.ID="Sort",t.doExport=function(){o.exportGlobally({Sort:t,SortCriteria:g.SortCriteria})},t.options={sortCriteria:m.ComponentOptions.buildCustomListOption(function(e){return e.map(function(e){return"string"==typeof e?new g.SortCriteria(e):e})},{required:!0}),caption:m.ComponentOptions.buildLocalizedStringOption({required:!0})},t}(f.Component);t.Sort=C,y.Initialization.registerAutoCreateComponent(C)},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=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])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n(20),r=n(3),s=n(8),a=n(119),u=function(e){function t(n,i,o,r){var u=e.call(this,n,t.ID,o)||this;u.element=n,u.options=i,u.result=r,u.options=s.ComponentOptions.initComponentOptions(n,t,i);var l={field:u.options.field,helper:"image",htmlValue:!0,helperOptions:{height:u.options.height,width:u.options.width,alt:r.title,srcTemplate:u.options.srcTemplate}};return new a.FieldValue(n,l,o,r),u}return i(t,e),t.ID="ImageFieldValue",t.doExport=function(){r.exportGlobally({ImageFieldValue:t})},t.options={field:s.ComponentOptions.buildFieldOption({required:!0}),width:s.ComponentOptions.buildNumberOption(),height:s.ComponentOptions.buildNumberOption(),srcTemplate:s.ComponentOptions.buildStringOption()},t}(o.Component);t.ImageFieldValue=u,o.Initialization.registerAutoCreateComponent(u)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,o=n(1);!function(e){e[e.TOP=0]="TOP",e[e.MIDDLE=1]="MIDDLE",e[e.BOTTOM=2]="BOTTOM",e[e.INNERTOP=3]="INNERTOP",e[e.INNERBOTTOM=4]="INNERBOTTOM"}(i=t.PopupVerticalAlignment||(t.PopupVerticalAlignment={}));var r;!function(e){e[e.LEFT=0]="LEFT",e[e.CENTER=1]="CENTER",e[e.RIGHT=2]="RIGHT",e[e.INNERLEFT=3]="INNERLEFT",e[e.INNERRIGHT=4]="INNERRIGHT"}(r=t.PopupHorizontalAlignment||(t.PopupHorizontalAlignment={}));var s=function(){function e(){}return e.positionPopup=function(t,n,i,r,s,a){void 0===a&&(a=0),t.style.position="absolute",s&&o.$$(s).append(t),r.verticalOffset=r.verticalOffset?r.verticalOffset:0,r.horizontalOffset=r.horizontalOffset?r.horizontalOffset:0;var u=o.$$(n).offset();e.basicVerticalAlignment(u,t,n,r),e.basicHorizontalAlignment(u,t,n,r),e.finalAdjustement(o.$$(t).offset(),u,t,r);var l=e.getBoundary(t),c=e.getBoundary(i);if(a<2){var p=e.checkForOutOfBoundary(l,c);if("ok"!=p.horizontal&&!0===r.horizontalClip){var d=t.offsetWidth;l.left<c.left&&(d-=c.left-l.left),l.right>c.right&&(d-=l.right-c.right),t.style.width=d+"px",p.horizontal="ok"}if("ok"!=p.vertical||"ok"!=p.horizontal){var h=e.alignInsideBoundary(r,p);e.positionPopup(t,n,i,h,s,a+1)}}},e.finalAdjustement=function(e,t,n,i){var r=o.$$(n).position();n.style.top=r.top+i.verticalOffset-(e.top-t.top)+"px",n.style.left=r.left+i.horizontalOffset-(e.left-t.left)+"px"},e.basicVerticalAlignment=function(e,t,n,o){switch(o.vertical){case i.TOP:e.top-=t.offsetHeight;break;case i.BOTTOM:e.top+=n.offsetHeight;break;case i.MIDDLE:e.top-=t.offsetHeight/3;case i.INNERTOP:break;case i.INNERBOTTOM:e.top-=t.offsetHeight-n.offsetHeight}},e.basicHorizontalAlignment=function(t,n,i,o){switch(o.horizontal){case r.LEFT:t.left-=n.offsetWidth;break;case r.RIGHT:t.left+=i.offsetWidth;break;case r.CENTER:t.left+=e.offSetToAlignCenter(n,i);break;case r.INNERLEFT:break;case r.INNERRIGHT:t.left-=n.offsetWidth-i.offsetWidth}},e.alignInsideBoundary=function(e,t){var n=e;return"left"==t.horizontal&&(n.horizontal=r.RIGHT),"right"==t.horizontal&&(n.horizontal=r.LEFT),"top"==t.vertical&&(n.vertical=i.BOTTOM),"bottom"==t.vertical&&(n.vertical=i.TOP),n},e.offSetToAlignCenter=function(e,t){return(t.offsetWidth-e.offsetWidth)/2},e.getBoundary=function(e){var t,n=o.$$(e).offset();return t="body"==e.tagName.toLowerCase()?Math.max(e.scrollHeight,e.offsetHeight):"html"==e.tagName.toLowerCase()?Math.max(e.clientHeight,e.scrollHeight,e.offsetHeight):e.offsetHeight,{top:n.top,left:n.left,right:n.left+e.offsetWidth,bottom:n.top+t}},e.checkForOutOfBoundary=function(e,t){var n={vertical:"ok",horizontal:"ok"};return e.top<t.top&&(n.vertical="top"),e.bottom>t.bottom&&(n.vertical="bottom"),e.left<t.left&&(n.horizontal="left"),e.right>t.right&&(n.horizontal="right"),n},e}();t.PopupUtils=s},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=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])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),o=this&&this.__assign||Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e};Object.defineProperty(t,"__esModule",{value:!0}),n(613);var r=n(0),s=n(614),a=n(35),u=n(16),l=n(11),c=n(84),p=n(138),d=n(3),h=n(5),f=n(62),m=n(18),y=n(13),g=n(6),v=n(1),b=n(15),S=n(12),C=n(4),w=n(10),_=n(7),O=n(8),x=n(2),E=n(481),A=n(615),T=n(126),R=n(118),F=n(83),M=n(617),I=function(e){function t(n,i,o,r){var a=e.call(this,n,t.ID,o)||this;return a.element=n,a.options=i,a.slider=r,a.isSimpleSliderConfig=!1,a.isEmpty=!1,a.options=O.ComponentOptions.initComponentOptions(n,t,i),a.isSimpleSliderConfig=null!=a.options.start&&null!=a.options.end,M.ResponsiveFacetSlider.init(a.root,a,a.options),null==a.options.excludeOuterBounds&&(a.options.excludeOuterBounds=!1),a.normalizeStartAndEndOptionsValues(),a.facetQueryController=new s.FacetSliderQueryController(a),a.bindQueryStateEvents(),a.bindQueryEvents(),a.bindResizeEvents(),a.bindBreadcrumbEvents(),a.bind.onRootElement(c.SearchAlertsEvents.searchAlertsPopulateMessage,function(e){return a.handlePopulateSearchAlerts(e)}),a}return i(t,e),t.prototype.isCurrentlyDisplayed=function(){return!!v.$$(this.element).isVisible()&&!v.$$(this.element).hasClass("coveo-disabled-empty")},t.prototype.createDom=function(){this.facetHeader=new E.FacetHeader({field:this.options.field,facetElement:this.element,title:this.options.title,enableClearElement:!0,enableCollapseElement:!0,facetSlider:this}),this.element.appendChild(this.facetHeader.build())},t.prototype.reset=function(){this.slider&&(this.slider.initializeState(),this.updateQueryState(),this.updateAppearanceDependingOnState())},t.prototype.getSelectedValues=function(){return void 0!=this.startOfSlider&&void 0!=this.endOfSlider?[this.startOfSlider,this.endOfSlider]:[void 0,void 0]},t.prototype.setSelectedValues=function(e){this.setupSliderIfNeeded(void 0),this.startOfSlider=e[0],this.endOfSlider=e[1],this.slider.setValues([this.startOfSlider,this.endOfSlider]),this.updateAppearanceDependingOnState()},t.prototype.isActive=function(){return!(isNaN(this.startOfSlider)||isNaN(this.endOfSlider)||isNaN(this.initialStartOfSlider)||isNaN(this.initialEndOfSlider)||this.startOfSlider==this.initialStartOfSlider&&this.endOfSlider==this.initialEndOfSlider)},t.prototype.getSliderBoundaryForQuery=function(){var e=!1;return this.slider?this.slider&&this.isActive()&&(e=!0):e=!0,e?this.generateBoundary():void 0},t.prototype.drawDelayedGraphData=function(){null==this.delayedGraphData||this.isEmpty||this.slider.drawGraph(this.delayedGraphData),this.delayedGraphData=null},t.prototype.hasAGraph=function(){return void 0!=this.options.graph},t.prototype.normalizeStartAndEndOptionsValues=function(){this.options.start&&(this.options.start=this.options.dateField?new Date(this.options.start.replace(/-/g,"/")).getTime():Number(this.options.start)),this.options.end&&(this.options.end=this.options.dateField?new Date(this.options.end.replace(/-/g,"/")).getTime():Number(this.options.end))},t.prototype.bindQueryEvents=function(){var e=this;this.bind.onRootElement(l.QueryEvents.newQuery,function(){return e.handleNewQuery()}),this.bind.onRootElement(l.QueryEvents.noResults,function(){return e.handleNoresults()}),this.bind.onRootElement(l.QueryEvents.deferredQuerySuccess,function(t){return e.handleDeferredQuerySuccess(t)}),this.bind.onRootElement(l.QueryEvents.buildingQuery,function(t){return e.handleBuildingQuery(t)}),this.bind.onRootElement(l.QueryEvents.doneBuildingQuery,function(t){return e.handleDoneBuildingQuery(t)})},t.prototype.bindResizeEvents=function(){var e=this;this.onResize=r.debounce(function(){T.ResponsiveComponentsUtils.shouldDrawFacetSlider(v.$$(e.root),v.$$(e.element))&&e.slider&&!e.isEmpty&&(e.delayedGraphData?e.drawDelayedGraphData():e.slider.drawGraph()),e.slider&&e.slider.onMoving()},250),window.addEventListener("resize",this.onResize),this.bind.onRootElement(R.ResponsiveDropdownEvent.OPEN,this.onResize),this.bind.onRootElement("onPopupOpen",this.onResize),v.$$(this.root).on(u.InitializationEvents.nuke,function(){return e.handleNuke()})},t.prototype.bindBreadcrumbEvents=function(){var e=this;this.bind.onRootElement(a.BreadcrumbEvents.clearBreadcrumb,function(){return e.reset()}),this.bind.onRootElement(a.BreadcrumbEvents.populateBreadcrumb,function(t){return e.handlePopulateBreadcrumb(t)})},t.prototype.handleNoresults=function(){this.isEmpty=!0,this.updateAppearanceDependingOnState()},t.prototype.handleNewQuery=function(){this.isEmpty=!1},t.prototype.handleRangeQueryStateChanged=function(e){this.setupSliderIfNeeded(e),this.startOfSlider=void 0==e.value[0]?this.startOfSlider:e.value[0],this.endOfSlider=void 0==e.value[1]?this.endOfSlider:e.value[1],this.setSelectedValues([this.startOfSlider,this.endOfSlider])},t.prototype.handlePopulateBreadcrumb=function(e){var t=this,n=function(){t.isActive()&&e.breadcrumbs.push({element:t.buildBreadcrumbFacetSlider()})};this.slider?n():v.$$(this.root).one(l.QueryEvents.deferredQuerySuccess,function(){n(),v.$$(t.root).trigger(a.BreadcrumbEvents.redrawBreadcrumb)})},t.prototype.handlePopulateSearchAlerts=function(e){this.isActive()&&e.text.push(v.$$(this.buildBreadcrumbFacetSlider()).text())},t.prototype.buildBreadcrumbFacetSlider=function(){var e=this,t=v.$$("div",{className:"coveo-facet-slider-breadcrumb"}).el,n=v.$$("span",{className:"coveo-facet-slider-breadcrumb-title"});n.text(this.options.title+": "),t.appendChild(n.el);var i=v.$$("span",{className:"coveo-facet-slider-breadcrumb-values"});t.appendChild(i.el);var o=v.$$("span",{className:"coveo-facet-slider-breadcrumb-value"}),r=v.$$("span",{className:"coveo-facet-slider-breadcrumb-caption"});r.text(this.slider.getCaption()),o.append(r.el),i.el.appendChild(o.el);var s=v.$$("span",{className:"coveo-facet-slider-breadcrumb-clear"},S.SVGIcons.icons.mainClear);return b.SVGDom.addClassToSVGInContainer(s.el,"coveo-facet-slider-clear-svg"),o.el.appendChild(s.el),o.on("click",function(){e.reset(),e.usageAnalytics.logSearchEvent(w.analyticsActionCauseList.facetClearAll,{facetId:e.options.id,facetField:e.options.field.toString(),facetTitle:e.options.title}),e.queryController.executeQuery()}),t},t.prototype.initSlider=function(){this.buildSlider(),this.slider.initializeState([this.startOfSlider,this.endOfSlider]),this.updateAppearanceDependingOnState()},t.prototype.bindQueryStateEvents=function(){var e=this;this.rangeQueryStateAttribute=y.QueryStateModel.getFacetId(this.options.id)+":range",this.queryStateModel.registerNewAttribute(this.rangeQueryStateAttribute,[void 0,void 0]);var t=this.queryStateModel.getEventName(m.Model.eventTypes.changeOne+this.rangeQueryStateAttribute);this.bind.onRootElement(t,function(t){e.slider?e.handleRangeQueryStateChanged(t):e.setRangeStateSliderStillNotCreated(t)})},t.prototype.setRangeStateSliderStillNotCreated=function(e){this.rangeFromUrlState=this.copyValues(e.value)},t.prototype.buildSlider=function(){var e=this,t=v.$$("div",{className:"coveo-slider-container"}).el;this.hasAGraph()&&v.$$(t).addClass("coveo-with-graph");var n=v.$$("div").el;this.slider=this.slider?this.slider:new A.Slider(n,o({},this.options,{dateField:this.options.dateField}),this.root),v.$$(n).on(p.SliderEvents.endSlide,function(t,n){e.handleEndSlide(n)}),v.$$(n).on(p.SliderEvents.duringSlide,function(t,n){e.handleDuringSlide(n)}),this.hasAGraph()&&v.$$(n).on(p.SliderEvents.graphValueSelected,function(t,n){e.handleGraphValueSelected(n)}),t.appendChild(n),this.element.appendChild(t),this.updateAppearanceDependingOnState()},t.prototype.handleBuildingQuery=function(e){h.Assert.exists(e),h.Assert.exists(e.queryBuilder);var t=this.getSliderBoundaryForQuery();if(void 0!=t){this.facetQueryController.prepareForNewQuery();var n=this.facetQueryController.computeOurFilterExpression(t);C.Utils.isNonEmptyString(n)&&(this.logger.trace("Putting filter in query",n),e.queryBuilder.advancedExpression.add(n))}},t.prototype.handleDoneBuildingQuery=function(e){var t=e.queryBuilder;this.facetQueryController.putGroupByIntoQueryBuilder(t)},t.prototype.handleDeferredQuerySuccess=function(e){this.ensureDom(),this.setupSliderIfNeeded(e);var t=e.results.groupByResults[this.facetQueryController.lastGroupByRequestIndex];this.isEmpty=this.isFacetEmpty(t,e),this.updateAppearanceDependingOnState(),this.hasAGraph()&&this.renderToSliderGraph(e)},t.prototype.handleEndSlide=function(e){var t=e.slider.getValues();this.startOfSlider=t[0],this.endOfSlider=t[1],this.updateQueryState(t)&&(this.updateAppearanceDependingOnState(),this.usageAnalytics.logSearchEvent(w.analyticsActionCauseList.facetRangeSlider,{facetId:this.options.id,facetField:this.options.field.toString(),facetRangeStart:this.startOfSlider.toString(),facetRangeEnd:this.endOfSlider.toString()}),this.queryController.executeQuery())},t.prototype.handleDuringSlide=function(e){var t=e.slider.getValues();this.startOfSlider=t[0],this.endOfSlider=t[1],this.slider.setValues([this.startOfSlider,this.endOfSlider]),this.updateAppearanceDependingOnState(!0)},t.prototype.handleGraphValueSelected=function(e){(this.options.rangeSlider&&this.startOfSlider!=e.start||this.endOfSlider!=e.end)&&(this.options.rangeSlider&&(this.startOfSlider=e.start),this.endOfSlider=e.end,this.slider.setValues([this.startOfSlider,this.endOfSlider]),this.updateQueryState(),this.usageAnalytics.logSearchEvent(w.analyticsActionCauseList.facetRangeGraph,{facetId:this.options.id,facetField:this.options.field.toString(),facetRangeStart:this.startOfSlider.toString(),facetRangeEnd:this.endOfSlider.toString()}),this.queryController.executeQuery())},t.prototype.updateQueryState=function(e,t){void 0===e&&(e=this.slider.getValues()),void 0===t&&(t=!1);var n=this.copyValues(e),i=e[0]+0,o=e[1]+0,r=this.queryStateModel.get(this.rangeQueryStateAttribute);return(null==r||n[0]!=r[0]||n[1]!=r[1])&&(n[0]=i,n[1]=o,this.queryStateModel.set(this.rangeQueryStateAttribute,n,{silent:t}),!0)},t.prototype.copyValues=function(e){var t=[];return t[0]=Number(e[0])+0,t[1]=Number(e[1])+0,t},t.prototype.renderToSliderGraph=function(e){var t,n=this,i=e.results.groupByResults[this.facetQueryController.graphGroupByQueriesIndex],o=0;i&&(t=r.map(i.values,function(e){o+=e.numberOfResults;var t=e.value.split("..")[0],i=e.value.split("..")[1];return n.options.dateField?(t=new Date(t.split("@")[0]).getTime(),i=new Date(i.split("@")[0]).getTime()):(t=Number(t),i=Number(i)),{start:t,y:e.numberOfResults,end:i,isDate:n.options.dateField}})),0==o&&(this.isEmpty=!0,this.updateAppearanceDependingOnState()),void 0==t||this.isDropdownHidden()?void 0!=t&&this.isDropdownHidden()&&(this.delayedGraphData=t):f.Defer.defer(function(){return n.slider.drawGraph(t)})},t.prototype.isDropdownHidden=function(){var e=this.root.querySelector(".coveo-facet-column");if(e)return"none"==v.$$(e).css("display");if(v.$$(this.root).hasClass("CoveoRecommendation")){var t=v.$$(this.root).parents(".coveo-recommendation-column")[0]||this.root;return"none"==v.$$(t).css("display")}return!1},t.prototype.generateBoundary=function(){if(this.slider){var e=this.generateBoundaryFromSlider();return void 0==e[0]&&void 0==e[1]?this.generateBoundaryFromState():e}return this.generateBoundaryFromState()},t.prototype.generateBoundaryFromSlider=function(){var e,t;return void 0!=this.startOfSlider&&(e=this.startOfSlider),void 0!=this.endOfSlider&&(t=this.endOfSlider),[e,t]},t.prototype.generateBoundaryFromState=function(){var e,t,n=this.queryStateModel.get(this.rangeQueryStateAttribute)[0];void 0!=n&&(e=n);var i=this.queryStateModel.get(this.rangeQueryStateAttribute)[1];return void 0!=i&&(t=i),e!=this.queryStateModel.getDefault(this.rangeQueryStateAttribute)[0]||t!=this.queryStateModel.getDefault(this.rangeQueryStateAttribute)[1]?[e,t]:[void 0,void 0]},t.prototype.setupSliderIfNeeded=function(e){if(this.ensureDom(),C.Utils.isNullOrUndefined(this.slider)){this.alreadySetBoundary()||this.trySetSliderBoundaryFromOptions(),this.alreadySetBoundary()||void 0==e||this.trySetSliderBoundaryFromQueryResult(e),this.trySetSliderBoundaryFromState(),this.setupSliderStateVariables();this.verifySetup()?this.logger.warn("Unable to initialize slider with current values",this):(this.initSlider(),this.updateQueryState())}},t.prototype.verifySetup=function(){var e=0;return e+=void 0==this.initialStartOfSlider?1:0,e+=isNaN(this.initialStartOfSlider)?1:0,e+=void 0==this.initialEndOfSlider?1:0,e+=isNaN(this.initialEndOfSlider)?1:0},t.prototype.setupSliderStateVariables=function(){isNaN(this.initialStartOfSlider)||isNaN(this.initialEndOfSlider)?this.logger.warn("Cannnot initialize slider with those values : start: "+this.initialStartOfSlider+" end: "+this.initialEndOfSlider):(this.initialStartOfSlider=Number(this.initialStartOfSlider),this.initialEndOfSlider=Number(this.initialEndOfSlider),this.startOfSlider=void 0!=this.startOfSlider?Number(this.startOfSlider):this.initialStartOfSlider,this.endOfSlider=void 0!=this.endOfSlider?Number(this.endOfSlider):this.initialEndOfSlider,this.options.start=this.initialStartOfSlider,this.options.end=this.initialEndOfSlider,this.queryStateModel.setNewDefault(this.rangeQueryStateAttribute,[this.initialStartOfSlider,this.initialEndOfSlider]))},t.prototype.alreadySetBoundary=function(){return void 0!=this.startOfSlider&&void 0!=this.endOfSlider},t.prototype.trySetSliderBoundaryFromOptions=function(){C.Utils.isNullOrUndefined(this.options.start)||this.setupInitialSliderStateStart(this.options.start),C.Utils.isNullOrUndefined(this.options.end)||this.setupInitialSliderStateEnd(this.options.end)},t.prototype.trySetSliderBoundaryFromState=function(){var e=this.getBoundariesFromState();e&&(this.setupInitialSliderStateStart(e.start),this.setupInitialSliderStateEnd(e.end),this.startOfSlider=e.start,this.endOfSlider=e.end)},t.prototype.trySetSliderBoundaryFromQueryResult=function(e){var t=e.results.groupByResults[this.facetQueryController.lastGroupByRequestForFullRangeIndex];if(t&&!(t.values.length<=0)&&0!=t.values[0].numberOfResults){var n=t.values[0].value.split("..")[0],i=t.values[t.values.length-1].value.split("..")[1];if(this.isValueADate(n)&&this.isValueADate(i))return this.setupInitialSliderStateStart(n),void this.setupInitialSliderStateEnd(i);var o=this.getBoundariesFromState(),r=Number(n),s=Number(i);o&&(r=Math.min(r,o.start),s=Math.max(s,o.end)),this.setupInitialSliderStateStart(r),this.setupInitialSliderStateEnd(s)}},t.prototype.getBoundariesFromState=function(){var e=this.rangeFromUrlState||this.queryStateModel.get(this.rangeQueryStateAttribute);if(e&&void 0!=e[0]&&void 0!=e[1]){var t=Number(e[0]),n=Number(e[1]);if(!isNaN(t)&&!isNaN(n))return{start:t,end:n}}},t.prototype.setupInitialSliderStateStart=function(e){void 0==this.initialStartOfSlider&&(this.initialStartOfSlider=e,this.isValueADate(e)&&(this.initialStartOfSlider=this.getTimeFromAPIResponse(e)))},t.prototype.setupInitialSliderStateEnd=function(e){void 0==this.initialEndOfSlider&&(this.initialEndOfSlider=e,this.isValueADate(e)&&(this.initialEndOfSlider=this.getTimeFromAPIResponse(e)))},t.prototype.getTimeFromAPIResponse=function(e){return new Date(e.replace("@"," ")).getTime()},t.prototype.isValueADate=function(e){return this.options.dateField&&isNaN(e)},t.prototype.updateAppearanceDependingOnState=function(e){var t=this;void 0===e&&(e=!1),f.Defer.defer(function(){!t.isEmpty||t.isActive()||e?(v.$$(t.element).removeClass("coveo-disabled-empty"),v.$$(t.facetHeader.eraserElement).toggle(t.isActive())):v.$$(t.element).addClass("coveo-disabled-empty"),t.isActive()||e?v.$$(t.element).removeClass("coveo-disabled"):v.$$(t.element).addClass("coveo-disabled"),t.isActive()&&t.slider&&t.slider.onMoving()})},t.prototype.handleNuke=function(){window.removeEventListener("resize",this.onResize)},t.prototype.isFacetEmpty=function(e,t){return C.Utils.isNullOrUndefined(e)||r.every(e.values,function(e){return C.Utils.isNullOrUndefined(e)||0===e.numberOfResults})||0==t.results.results.length},t.options=o({title:O.ComponentOptions.buildLocalizedStringOption({localizedString:function(){return g.l("NoTitle")},section:"CommonOptions"}),dateField:O.ComponentOptions.buildBooleanOption({defaultValue:!1,section:"CommonOptions"}),field:O.ComponentOptions.buildFieldOption({groupByField:!0,required:!0,section:"CommonOptions"}),id:O.ComponentOptions.buildStringOption({postProcessing:function(e,t){return e||t.field}}),dateFormat:O.ComponentOptions.buildStringOption({section:"Display"}),queryOverride:O.ComponentOptions.buildQueryExpressionOption({section:"Filtering"}),start:O.ComponentOptions.buildStringOption({section:"Filtering"}),end:O.ComponentOptions.buildStringOption({section:"Filtering"}),excludeOuterBounds:O.ComponentOptions.buildBooleanOption({defaultValue:!1,section:"Filtering"}),rounded:O.ComponentOptions.buildNumberOption({min:0,section:"Filtering"}),steps:O.ComponentOptions.buildNumberOption({min:2}),rangeSlider:O.ComponentOptions.buildBooleanOption(),displayAsValue:O.ComponentOptions.buildObjectOption({subOptions:{enable:O.ComponentOptions.buildBooleanOption({defaultValue:!0}),unitSign:O.ComponentOptions.buildStringOption(),separator:O.ComponentOptions.buildStringOption({defaultValue:"-"})},section:"Display"}),displayAsPercent:O.ComponentOptions.buildObjectOption({subOptions:{enable:O.ComponentOptions.buildBooleanOption({defaultValue:!1}),separator:O.ComponentOptions.buildStringOption({defaultValue:"-"})},section:"Display"}),graph:O.ComponentOptions.buildObjectOption({subOptions:{steps:O.ComponentOptions.buildNumberOption({min:2}),animationDuration:O.ComponentOptions.buildNumberOption({min:0}),margin:O.ComponentOptions.buildObjectOption({subOptions:{top:O.ComponentOptions.buildNumberOption({min:0}),bottom:O.ComponentOptions.buildNumberOption({min:0}),left:O.ComponentOptions.buildNumberOption({min:0}),right:O.ComponentOptions.buildNumberOption({min:0})}})},section:"Graph"}),getSteps:O.ComponentOptions.buildCustomOption(function(){return null}),valueCaption:O.ComponentOptions.buildCustomOption(function(){return null})},F.ResponsiveFacetOptions),t.ID="FacetSlider",t.doExport=function(){d.exportGlobally({FacetSlider:t,Slider:A.Slider})},t.DEBOUNCED_RESIZE_DELAY=250,t}(_.Component);t.FacetSlider=I,x.Initialization.registerAutoCreateComponent(I)},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=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])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n(19),r=n(8),s=n(11),a=n(34),u=n(29),l=n(54),c=n(97),p=n(56),d=n(10),h=n(35),f=n(225),m=n(13),y=n(18),g=n(4),v=n(1),b=n(650),S=n(30),C=n(16),w=n(0),_=n(3),O=n(468),x=n(653),E=n(206);n(654);var A=n(6),T=function(e){function t(n,i,o,a){void 0===i&&(i={}),void 0===o&&(o={}),void 0===a&&(a=window);var u=e.call(this,n,r.ComponentOptions.initComponentOptions(n,t,i),o,a)||this;return u.element=n,u.options=i,u.analyticsOptions=o,u.element.style.display="",u.options.id||u.generateDefaultId(),u.preventEventPropagation(),u.options.mainSearchInterface&&u.bindToMainSearchInterface(),v.$$(u.element).on(s.QueryEvents.buildingQuery,function(e,t){return u.handleRecommendationBuildingQuery(t)}),v.$$(u.element).on(s.QueryEvents.querySuccess,function(e,t){return u.handleRecommendationQuerySuccess(t)}),v.$$(u.element).on(s.QueryEvents.noResults,function(e,t){return u.handleRecommendationNoResults()}),v.$$(u.element).on(s.QueryEvents.queryError,function(e,t){return u.handleRecommendationQueryError()}),u.options.mainSearchInterface||u.ensureCurrentPageViewExistsInStore(),b.ResponsiveRecommendation.init(u.root,u,i),u}return i(t,e),Object.defineProperty(t.prototype,"historyStore",{get:function(){return this.queryController.historyStore},enumerable:!0,configurable:!0}),t.prototype.getId=function(){return this.options.id},t.prototype.enable=function(){e.prototype.enable.call(this),this.show()},t.prototype.disable=function(){e.prototype.disable.call(this),this.hide()},t.prototype.hide=function(){v.$$(this.element).addClass("coveo-hidden")},t.prototype.show=function(){v.$$(this.element).removeClass("coveo-hidden")},t.prototype.ensureCurrentPageViewExistsInStore=function(){var e={name:"PageView",value:document.location.toString(),time:JSON.stringify(new Date),title:w.escape(document.title)};this.historyStore.addElement(e)},t.prototype.bindToMainSearchInterface=function(){this.bindComponentOptionsModelToMainSearchInterface(),this.bindQueryEventsToMainSearchInterface()},t.prototype.bindComponentOptionsModelToMainSearchInterface=function(){var e=this,t=S.get(this.options.mainSearchInterface,o.SearchInterface),n=null!=t,i=function(){var n=t.getBindings().componentOptionsModel;e.componentOptionsModel.setMultiple(n.getAttributes()),v.$$(e.options.mainSearchInterface).on(e.componentOptionsModel.getEventName(y.MODEL_EVENTS.ALL),function(){e.componentOptionsModel.setMultiple(n.getAttributes())})};n?i():v.$$(this.options.mainSearchInterface).on(C.InitializationEvents.afterComponentsInitialization,function(){t=S.get(e.options.mainSearchInterface,o.SearchInterface),i()})},t.prototype.bindQueryEventsToMainSearchInterface=function(){var e=this;v.$$(this.options.mainSearchInterface).on(s.QueryEvents.querySuccess,function(t,n){e.mainInterfaceQuery=n,e.mainQuerySearchUID=n.results.searchUid,e.mainQueryPipeline=n.results.pipeline,0!=n.results.results.length&&(e.usageAnalytics.logSearchEvent(d.analyticsActionCauseList.recommendation,{}),e.queryController.executeQuery({closeModalBox:!1}))}),v.$$(this.options.mainSearchInterface).on(s.QueryEvents.queryError,function(){return e.hide()}),v.$$(this.options.mainSearchInterface).on(s.QueryEvents.noResults,function(){return e.hide()})},t.prototype.handleRecommendationBuildingQuery=function(e){this.disabled||(this.modifyQueryForRecommendation(e),this.addRecommendationInfoInQuery(e))},t.prototype.handleRecommendationQuerySuccess=function(e){this.disabled||this.options.hideIfNoResults&&(0===e.results.totalCount?this.hide():this.show())},t.prototype.handleRecommendationNoResults=function(){this.disabled||this.options.hideIfNoResults&&this.hide()},t.prototype.handleRecommendationQueryError=function(){this.disabled||this.hide()},t.prototype.modifyQueryForRecommendation=function(e){this.mainInterfaceQuery&&g.Utils.copyObjectAttributes(e.queryBuilder,this.mainInterfaceQuery.queryBuilder,this.options.optionsToUse)},t.prototype.addRecommendationInfoInQuery=function(e){w.isEmpty(this.options.userContext)||e.queryBuilder.addContext(this.options.userContext),e.queryBuilder.recommendation=this.options.id},t.prototype.preventEventPropagation=function(){this.preventEventPropagationOn(s.QueryEvents),this.preventEventPropagationOn(a.OmniboxEvents),this.preventEventPropagationOn(u.ResultListEvents),this.preventEventPropagationOn(l.SettingsEvents),this.preventEventPropagationOn(c.PreferencesPanelEvents),this.preventEventPropagationOn(p.AnalyticsEvents),this.preventEventPropagationOn(h.BreadcrumbEvents),this.preventEventPropagationOn(f.QuickviewEvents),this.preventEventPropagationOn(C.InitializationEvents),this.preventEventPropagationOn(this.getAllModelEvents())},t.prototype.preventEventPropagationOn=function(e,t){void 0===t&&(t=function(e){return e});for(var n in e)v.$$(this.root).on(t(n),function(e){return e.stopPropagation()})},t.prototype.getAllModelEvents=function(){var e=this,t={},n=this.getBindings().queryStateModel;return w.each(w.values(y.Model.eventTypes),function(i){var o=n.getEventName(i);t[o]=o,w.each(w.values(m.QUERY_STATE_ATTRIBUTES),function(n){var o=e.queryStateModel.getEventName(i+n);t[o]=o})}),t},t.prototype.generateDefaultId=function(){var e="Recommendation";1!==t.NEXT_ID&&(this.logger.warn("Generating another recommendation default id","Consider configuring a human friendly / meaningful id for this interface"),e=e+"_"+t.NEXT_ID),t.NEXT_ID++,this.options.id=e},t.ID="Recommendation",t.NEXT_ID=1,t.doExport=function(){_.exportGlobally({Recommendation:t,DefaultRecommendationTemplate:O.DefaultRecommendationTemplate,RecommendationQuery:x.RecommendationQuery,RecommendationAnalyticsClient:E.RecommendationAnalyticsClient})},t.options={mainSearchInterface:r.ComponentOptions.buildSelectorOption(),userContext:r.ComponentOptions.buildJsonOption(),id:r.ComponentOptions.buildStringOption(),optionsToUse:r.ComponentOptions.buildListOption({defaultValue:["expression"]}),sendActionsHistory:r.ComponentOptions.buildBooleanOption({defaultValue:!0,deprecated:"This option is now deprecated. The correct way to control this behaviour is to configure an appropriate machine learning model in the administration interface (Recommendation, Relevance tuning, Query suggestions)"}),hideIfNoResults:r.ComponentOptions.buildBooleanOption({defaultValue:!0}),autoTriggerQuery:r.ComponentOptions.buildBooleanOption({postProcessing:function(e,t){return!t.mainSearchInterface&&e}}),enableResponsiveMode:r.ComponentOptions.buildBooleanOption({defaultValue:!0}),responsiveBreakpoint:r.ComponentOptions.buildNumberOption({defaultValue:1e3}),dropdownHeaderLabel:r.ComponentOptions.buildLocalizedStringOption({localizedString:function(){return A.l("Recommendations")}})},t}(o.SearchInterface);t.Recommendation=T},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=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])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0}),n(660);var o=n(0),r=n(16),s=n(11),a=n(129),u=n(29),l=n(5),c=n(18),p=n(13),d=n(3),h=n(6),f=n(1),m=n(15),y=n(12),g=n(4),v=n(10),b=n(7),S=n(8),C=n(2),w=n(661),_=n(17);t.defaultLayout="list";var O=function(e){function t(n,i,o){var a=e.call(this,n,t.ID,o)||this;return a.element=n,a.options=i,a.preferredLayout=null,a.options=S.ComponentOptions.initComponentOptions(n,t,i),a.currentActiveLayouts={},a.bind.onQueryState(c.MODEL_EVENTS.CHANGE_ONE,p.QUERY_STATE_ATTRIBUTES.LAYOUT,a.handleQueryStateChanged.bind(a)),a.bind.onRootElement(s.QueryEvents.querySuccess,function(e){return a.handleQuerySuccess(e)}),a.bind.onRootElement(s.QueryEvents.queryError,function(e){return a.handleQueryError(e)}),a.resultLayoutSection=f.$$(a.element).closest(".coveo-result-layout-section"),a.bind.oneRootElement(r.InitializationEvents.afterComponentsInitialization,function(){return a.populate()}),a.bind.oneRootElement(r.InitializationEvents.afterInitialization,function(){return a.handleQueryStateChanged()}),w.ResponsiveResultLayout.init(a.root,a,{}),a}return i(t,e),Object.defineProperty(t.prototype,"activeLayouts",{get:function(){return this.searchInterface.responsiveComponents.isLargeScreenWidth()?o.pick(this.currentActiveLayouts,this.options.desktopLayouts):this.searchInterface.responsiveComponents.isMediumScreenWidth()?o.pick(this.currentActiveLayouts,this.options.tabletLayouts):this.searchInterface.responsiveComponents.isSmallScreenWidth()?o.pick(this.currentActiveLayouts,this.options.mobileLayouts):this.currentActiveLayouts},enumerable:!0,configurable:!0}),t.prototype.changeLayout=function(e){this.preferredLayout=null,this.performLayoutChange(e)},t.prototype.getCurrentLayout=function(){return this.currentLayout},t.prototype.disableLayouts=function(e){var t=this;if(g.Utils.isNonEmptyArray(e)){o.each(e,function(e){return t.disableLayout(e)});var n=o.difference(o.keys(this.currentActiveLayouts),e);if(this.preferredLayout=this.currentLayout,o.isEmpty(n)){this.logger.error("Cannot disable the last valid layout ... Re-enabling the first one possible");var i=o.keys(this.currentActiveLayouts)[0];this.enableLayout(i),this.setLayout(i)}else{var r=o.contains(n,this.currentLayout)?this.currentLayout:n[0];this.performLayoutChange(r)}}},t.prototype.enableLayouts=function(e){var t=this;o.each(e,function(e){return t.enableLayout(e)}),o.find(e,function(e){return e===t.preferredLayout})&&this.restorePreferredLayout()},t.prototype.restorePreferredLayout=function(){this.performLayoutChange(this.preferredLayout),this.preferredLayout=null},t.prototype.performLayoutChange=function(e){if(l.Assert.check(this.isLayoutDisplayedByButton(e),"Layout not available or invalid"),e!==this.currentLayout||""===this.getModelValue()){this.setModelValue(e);var t=this.queryController.getLastResults();this.setLayout(e,t),t?this.usageAnalytics.logCustomEvent(v.analyticsActionCauseList.resultsLayoutChange,{resultsLayoutChangeTo:e},this.element):(this.usageAnalytics.logSearchEvent(v.analyticsActionCauseList.resultsLayoutChange,{resultsLayoutChangeTo:e}),this.queryController.firstQuery||this.queryController.executeQuery())}},t.prototype.disableLayout=function(e){this.isLayoutDisplayedByButton(e)&&this.hideButton(e)},t.prototype.enableLayout=function(e){var t=this.resultLists;o.find(t,function(t){return t.options.layout==e})&&this.isLayoutDisplayedByButton(e)&&(this.showButton(e),this.updateSelectorAppearance())},Object.defineProperty(t.prototype,"resultLists",{get:function(){return this.searchInterface.getComponents("ResultList")},enumerable:!0,configurable:!0}),t.prototype.hideButton=function(e){if(this.isLayoutDisplayedByButton(e)){var t=this.currentActiveLayouts[e].button;f.$$(t.el).addClass("coveo-hidden"),t.visible=!1,this.updateSelectorAppearance()}},t.prototype.showButton=function(e){if(this.isLayoutDisplayedByButton(e)){var t=this.currentActiveLayouts[e].button;f.$$(t.el).removeClass("coveo-hidden"),t.visible=!0}},t.prototype.setLayout=function(e,t){e&&(this.currentLayout&&(f.$$(this.currentActiveLayouts[this.currentLayout].button.el).removeClass("coveo-selected"),f.$$(this.currentActiveLayouts[this.currentLayout].button.el).setAttribute("aria-pressed",(!1).toString())),f.$$(this.currentActiveLayouts[e].button.el).addClass("coveo-selected"),f.$$(this.currentActiveLayouts[e].button.el).setAttribute("aria-pressed",(!0).toString()),this.currentLayout=e,f.$$(this.element).trigger(u.ResultListEvents.changeLayout,{layout:e,results:t}))},t.prototype.handleQuerySuccess=function(e){this.hasNoResults=0==e.results.results.length,this.shouldShowSelector()?this.show():this.hide()},t.prototype.handleQueryStateChanged=function(e){var t=this.getModelValue(),n=o.find(o.keys(this.currentActiveLayouts),function(e){return e===t});void 0!==n?this.setLayout(n):this.setLayout(o.keys(this.currentActiveLayouts)[0])},t.prototype.handleQueryError=function(e){this.hasNoResults=!0,this.hide()},t.prototype.updateSelectorAppearance=function(){this.shouldShowSelector()?this.show():this.hide()},t.prototype.populate=function(){var e=this,n={layouts:[]};f.$$(this.root).trigger(a.ResultLayoutEvents.populateResultLayout,n);var i=o.uniq(n.layouts.map(function(e){return e.toLowerCase()}));o.each(i,function(e){return l.Assert.check(o.contains(t.validLayouts,e),"Invalid layout")}),o.isEmpty(i)||(o.each(i,function(t){return e.addButton(t)}),this.shouldShowSelector()||this.hide())},t.prototype.addButton=function(e){var t=this,n=f.$$("span",{className:"coveo-result-layout-selector"}),i=f.$$("span",{className:"coveo-result-layout-selector-caption"},h.l(e));n.append(i.el);var o=f.$$("span",{className:"coveo-icon coveo-"+e+"-layout-icon"},y.SVGIcons.icons[e+"Layout"]);m.SVGDom.addClassToSVGInContainer(o.el,"coveo-"+e+"-svg"),n.prepend(o.el);var r=function(){return t.changeLayout(e)};(new _.AccessibleButton).withElement(n).withLabel(h.l("DisplayResultsAs",h.l(e))).withSelectAction(r).withOwner(this.bind).build();var s=e===this.currentLayout;n.toggleClass("coveo-selected",s),n.setAttribute("aria-pressed",s.toString()),f.$$(this.element).append(n.el),this.currentActiveLayouts[e]={button:{visible:!0,el:n.el},enabled:!0}},t.prototype.hide=function(){var e=this.resultLayoutSection||this.element;f.$$(e).addClass("coveo-result-layout-hidden")},t.prototype.show=function(){var e=this.resultLayoutSection||this.element;f.$$(e).removeClass("coveo-result-layout-hidden")},t.prototype.getModelValue=function(){return this.queryStateModel.get(p.QueryStateModel.attributesEnum.layout)},t.prototype.setModelValue=function(e){this.queryStateModel.set(p.QueryStateModel.attributesEnum.layout,e)},t.prototype.shouldShowSelector=function(){return o.keys(this.currentActiveLayouts).length>1&&o.filter(this.currentActiveLayouts,function(e){return e.button.visible}).length>1&&!this.hasNoResults},t.prototype.isLayoutDisplayedByButton=function(e){return o.contains(o.keys(this.currentActiveLayouts),e)},t.ID="ResultLayoutSelector",t.aliases=["ResultLayout"],t.doExport=function(){d.exportGlobally({ResultLayoutSelector:t,ResultLayout:t})},t.validLayouts=["list","card","table"],t.options={mobileLayouts:S.ComponentOptions.buildListOption({defaultValue:["card","table"]}),tabletLayouts:S.ComponentOptions.buildListOption({defaultValue:["list","card","table"]}),desktopLayouts:S.ComponentOptions.buildListOption({defaultValue:["list","card","table"]})},t}(b.Component);t.ResultLayoutSelector=O,C.Initialization.registerAutoCreateComponent(O)},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=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])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0}),n(673);var o=n(0),r=n(16),s=n(11),a=n(3),u=n(5),l=n(18),c=n(13),p=n(51),d=n(17),h=n(1),f=n(4),m=n(10),y=n(7),g=n(8),v=n(2),b=n(674),S=function(e){function t(n,i,o){var a=e.call(this,n,t.ID,o)||this;return a.element=n,a.options=i,a.options=g.ComponentOptions.initComponentOptions(n,t,i),a.bind.onRootElement(s.QueryEvents.buildingQuery,function(e){return a.handleBuildingQuery(e)}),a.bind.onRootElement(r.InitializationEvents.afterInitialization,function(){return a.handleAfterInitialization()}),a.bind.onQueryState(l.MODEL_EVENTS.CHANGE_ONE,c.QUERY_STATE_ATTRIBUTES.T,function(e){return a.handleQueryStateChanged(e)}),(new d.AccessibleButton).withElement(n).withSelectAction(function(){return a.select()}).withTitle(a.options.caption).withOwner(a.bind).build(),a.render(),b.ResponsiveTabs.init(a.root,a,a.options),a}return i(t,e),t.prototype.select=function(){if(!this.disabled){var e={t:this.options.id,sort:this.options.sort||c.QueryStateModel.defaultAttributes.sort};this.options.layout&&(e.layout=this.options.layout),this.queryStateModel.setMultiple(e),this.usageAnalytics.logSearchEvent(m.analyticsActionCauseList.interfaceChange,{interfaceChangeTo:this.options.id}),this.queryController.executeQuery()}},t.prototype.isElementIncludedInTab=function(e){u.Assert.exists(e);var t=this.splitListOfTabs(e.getAttribute("data-tab")),n=this.splitListOfTabs(e.getAttribute("data-tab-not"));return u.Assert.check(!(0!=t.length&&0!=n.length),"You cannot both explicitly include and exclude an element from tabs."),0!=t.length&&-1!=o.indexOf(t,this.options.id)||0!=n.length&&-1==o.indexOf(n,this.options.id)||0==t.length&&0==n.length},t.prototype.render=function(){var e=this.options.icon;if(f.Utils.isNonEmptyString(e)){var t=h.$$("span").el;h.$$(t).addClass(["coveo-icon",e]),this.element.insertBefore(t,this.element.firstChild)}var n=this.options.caption;if(f.Utils.isNonEmptyString(n)){var i=document.createElement("p");h.$$(i).text(n),this.element.appendChild(i)}},t.prototype.handleBuildingQuery=function(e){u.Assert.exists(e),!this.disabled&&this.isSelected()&&(e.queryBuilder.tab=this.options.id,f.Utils.isNonEmptyString(this.options.expression)&&(this.options.constant?e.queryBuilder.constantExpression.add(this.options.expression):e.queryBuilder.advancedExpression.add(this.options.expression)),this.options.enableDuplicateFiltering&&(e.queryBuilder.enableDuplicateFiltering=!0),null!=this.options.pipeline&&(e.queryBuilder.pipeline=this.options.pipeline),null!=this.options.maximumAge&&(e.queryBuilder.maximumAge=this.options.maximumAge))},t.prototype.handleQueryStateChanged=function(e){u.Assert.exists(e),!this.disabled&&this.isSelected()?(h.$$(this.element).addClass("coveo-selected"),this.queryController.setEndpoint(this.options.endpoint),this.showAndHideAppropriateElements()):h.$$(this.element).removeClass("coveo-selected")},t.prototype.handleAfterInitialization=function(){this.isSelected()&&this.options.layout&&this.queryStateModel.set(c.QUERY_STATE_ATTRIBUTES.LAYOUT,this.options.layout)},t.prototype.isSelected=function(){return this.queryStateModel.get(c.QueryStateModel.attributesEnum.t)==this.options.id},t.prototype.showAndHideAppropriateElements=function(){var e=this,t=[],n=[];o.each(h.$$(this.root).findAll("[data-tab],[data-tab-not]"),function(i){e.isElementIncludedInTab(i)?(e.toggleAllComponentsUnder(i,!0),t.push(i)):(e.toggleAllComponentsUnder(i,!1),n.push(i))}),h.$$(this.root).one(s.QueryEvents.querySuccess,function(){o.each(t,function(e){return h.$$(e).removeClass("coveo-tab-disabled")}),o.each(n,function(e){return h.$$(e).addClass("coveo-tab-disabled")})})},t.prototype.splitListOfTabs=function(e){return f.Utils.exists(e)?o.map(e.split(","),function(e){return f.Utils.trim(e)}):[]},t.prototype.toggleAllComponentsUnder=function(e,t){u.Assert.exists(e);var n=function(e){var n=y.Component.get(e,void 0,!0);n&&(t?n.enable():n.disable())};n(e),o.each(h.$$(e).findAll("*"),function(e){n(e)})},t.prototype.enable=function(){e.prototype.enable.call(this),this.element.style.display=""},t.prototype.disable=function(){e.prototype.disable.call(this),this.element.style.display="none"},t.ID="Tab",t.doExport=function(){a.exportGlobally({Tab:t})},t.options={id:g.ComponentOptions.buildStringOption({required:!0,section:"Common Options"}),caption:g.ComponentOptions.buildLocalizedStringOption({required:!0,section:"Common Options"}),icon:g.ComponentOptions.buildStringOption(),expression:g.ComponentOptions.buildQueryExpressionOption({section:"Common Options"}),endpoint:g.ComponentOptions.buildCustomOption(function(e){return null!=e?p.SearchEndpoint.endpoints[e]:null}),sort:g.ComponentOptions.buildStringOption(),layout:g.ComponentOptions.buildStringOption(),constant:g.ComponentOptions.buildBooleanOption({defaultValue:!0,section:"Filtering"}),enableDuplicateFiltering:g.ComponentOptions.buildBooleanOption({defaultValue:!1}),pipeline:g.ComponentOptions.buildStringOption(),maximumAge:g.ComponentOptions.buildNumberOption(),enableResponsiveMode:g.ComponentOptions.buildBooleanOption({defaultValue:!0,section:"ResponsiveOptions"}),dropdownHeaderLabel:g.ComponentOptions.buildLocalizedStringOption({section:"ResponsiveOptions"})},t}(y.Component);t.Tab=S,v.Initialization.registerAutoCreateComponent(S)},function(e,t){function n(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function o(e){if(c===setTimeout)return setTimeout(e,0);if((c===n||!c)&&setTimeout)return c=setTimeout,setTimeout(e,0);try{return c(e,0)}catch(t){try{return c.call(null,e,0)}catch(t){return c.call(this,e,0)}}}function r(e){if(p===clearTimeout)return clearTimeout(e);if((p===i||!p)&&clearTimeout)return p=clearTimeout,clearTimeout(e);try{return p(e)}catch(t){try{return p.call(null,e)}catch(t){return p.call(this,e)}}}function s(){m&&h&&(m=!1,h.length?f=h.concat(f):y=-1,f.length&&a())}function a(){if(!m){var e=o(s);m=!0;for(var t=f.length;t;){for(h=f,f=[];++y<t;)h&&h[y].run();y=-1,t=f.length}h=null,m=!1,r(e)}}function u(e,t){this.fun=e,this.array=t}function l(){}var c,p,d=e.exports={};!function(){try{c="function"==typeof setTimeout?setTimeout:n}catch(e){c=n}try{p="function"==typeof clearTimeout?clearTimeout:i}catch(e){p=i}}();var h,f=[],m=!1,y=-1;d.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];f.push(new u(e,t)),1!==f.length||m||o(a)},u.prototype.run=function(){this.fun.apply(null,this.array)},d.title="browser",d.browser=!0,d.env={},d.argv=[],d.version="",d.versions={},d.on=l,d.addListener=l,d.once=l,d.off=l,d.removeListener=l,d.removeAllListeners=l,d.emit=l,d.prependListener=l,d.prependOnceListener=l,d.listeners=function(e){return[]},d.binding=function(e){throw new Error("process.binding is not supported")},d.cwd=function(){return"/"},d.chdir=function(e){throw new Error("process.chdir is not supported")},d.umask=function(){return 0}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){}return e.onPositionResolved="onPositionResolved",e.onResolvingPosition="onResolvingPosition",e.onPositionNotResolved="onPositionNotResolved",e}();t.DistanceEvents=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(18);t.Model=i.Model;var o=n(13);t.QueryStateModel=o.QueryStateModel;var r=n(28);t.ComponentOptionsModel=r.ComponentOptionsModel;var s=n(77);t.ComponentStateModel=s.ComponentStateModel},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(23),o=n(0),r=n(6),s=n(30),a=n(1),u=function(){function e(){}return e.message=function(t,n){return e.messageBuilderForMode(t)(n,e.getSummaryStrings(n))},e.htmlMessage=function(t,n){return e.messageBuilderForMode(t)(n,e.getHtmlSummaryStrings(n))},e.replaceQueryTags=function(e,t){var n=/\$\{query\}/g;return e?e.replace(n,t):""},e.messageBuilderForMode=function(t){return e.isInfiniteScrollMode(t)?e.buildInfiniteScrollMessage:e.buildStandardMessage},e.isInfiniteScrollMode=function(e){var t=a.$$(e).findAll(".CoveoResultList");return o.any(t,function(e){var t=s.get(e).options;return t&&t.enableInfiniteScroll})},e.buildStandardMessage=function(t,n){var i=t.results.results.length,o={includingQuery:r.l("ShowingResultsOfWithQuery",n.first,n.last,n.totalCount,n.query,i),excludingQuery:r.l("ShowingResultsOf",n.first,n.last,n.totalCount,i)};return e.buildMessage(t,o)},e.buildInfiniteScrollMessage=function(t,n){var i=t.results.results.length,o={includingQuery:r.l("ShowingResultsWithQuery",n.totalCount,n.query,i),excludingQuery:r.l("ShowingResults",n.totalCount,i)};return e.buildMessage(t,o)},e.buildMessage=function(t,n){var i=t.results.results.length,o=e.sanitizeQuery(t.query);return i?o?n.includingQuery:n.excludingQuery:""},e.getHtmlSummaryStrings=function(t){var n=e.getSummaryStrings(t);return{first:e.wrapWithSpanTag(n.first),last:e.wrapWithSpanTag(n.last),totalCount:e.wrapWithSpanTag(n.totalCount),query:e.wrapWithSpanTag(n.query)}},e.wrapWithSpanTag=function(e){return a.$$("span",{className:"coveo-highlight"},e).el.outerHTML},e.getSummaryStrings=function(t){var n=t.query,o=t.results;return{first:i.format(n.firstResult+1,"n0"),last:i.format(n.firstResult+o.results.length,"n0"),totalCount:i.format(o.totalCountFiltered,"n0"),query:e.sanitizeQuery(n)}},e.sanitizeQuery=function(e){return e.q?o.escape(e.q.trim()):""},e}();t.QuerySummaryUtils=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n(391);var i=n(1),o=n(10),r=n(20),s=n(12),a=n(18),u=n(13),l=n(204),c=n(0),p=function(){function e(e){var t=this;this.args=e,i.$$(e.element).on(r.QueryEvents.doneBuildingQuery,function(e,n){return t.handleBuildingQuery(n)}),i.$$(e.element).on("state:"+a.MODEL_EVENTS.CHANGE_ONE+u.QUERY_STATE_ATTRIBUTES.Q,function(e,n){return t.handleQueryChange(n)}),i.$$(e.element).on(r.BreadcrumbEvents.populateBreadcrumb,function(e,n){t.handlePopulateBreadcrumb(n)}),i.$$(e.element).on(r.BreadcrumbEvents.clearBreadcrumb,function(e,n){return t.handleClearBreadcrumb()})}return e.prototype.handleBuildingQuery=function(e){this.args.queryStateModel.get("missingTerms").forEach(function(t){e.queryBuilder.advancedExpression.add(t)})},Object.defineProperty(e.prototype,"termsForcedToAppear",{get:function(){return this.args.queryStateModel.get("missingTerms").slice()},enumerable:!0,configurable:!0}),e.prototype.setUpdateTermsForcedToAppear=function(e){this.args.queryStateModel.set("missingTerms",e.slice())},e.prototype.handlePopulateBreadcrumb=function(e){if(0!==this.termsForcedToAppear.length){var t=this.buildTermForcedToAppear(),n=this.buildBreadcrumbContainer();t.forEach(function(e){return i.$$(n).append(e.el)}),e.breadcrumbs.push({element:n.el})}},e.prototype.buildTermForcedToAppear=function(){var e=this;return this.termsForcedToAppear.map(function(t){var n=i.$$("button",{className:"coveo-missing-term-breadcrumb-value coveo-accessible-button"},i.$$("span",{className:"coveo-missing-term-breadcrumb-caption"},c.escape(t)),i.$$("span",{className:"coveo-missing-term-breadcrumb-clear"},s.SVGIcons.icons.mainClear));return n.on("click",function(){return e.removeTermForcedToAppear(t)}),n})},e.prototype.buildBreadcrumbContainer=function(){return i.$$("div",{className:"coveo-remove-term-container"},i.$$("span",{className:"coveo-missing-term-breadcrumb-title"},r.l("MustContain")))},e.prototype.removeTermForcedToAppear=function(e){var t=this.termsForcedToAppear,n=t.indexOf(e);t.splice(n,1),this.setUpdateTermsForcedToAppear(t),this.logAnalyticsRemoveMissingTerm(e),this.args.queryController.executeQuery()},e.prototype.logAnalyticsRemoveMissingTerm=function(e){this.args.usageAnalytics.logSearchEvent(o.analyticsActionCauseList.removeMissingTerm,{missingTerm:e})},e.prototype.handleClearBreadcrumb=function(){this.setUpdateTermsForcedToAppear([])},e.prototype.handleQueryChange=function(e){this.updateTermsForcedToAppearToOnlyIncludeWords(e);var t=document.querySelector(".CoveoBreadcrumb");if(t){var n=r.get(t);n&&(n.getBreadcrumbs(),i.$$(this.args.element).trigger(r.BreadcrumbEvents.redrawBreadcrumb))}},e.prototype.updateTermsForcedToAppearToOnlyIncludeWords=function(t){var n=this.termsForcedToAppear;this.termsForcedToAppear.forEach(function(i){if(!l(e.wordBoundary+"("+i+")"+e.wordBoundary,"g").test(t.value)){var o=n.indexOf(i);n.splice(o,1)}}),this.setUpdateTermsForcedToAppear(n)},e.ID="MissingTermManager",e.wordBoundary="(([\\p{Han}])?([^(\\p{Latin}-)])|^|$)",e}();t.MissingTermManager=p},function(e,t,n){"use strict";var i=n(37);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(n(392)),r=i(n(435)),s=i(n(436)),a=i(n(437)),u=i(n(438)),l=i(n(440)),c=i(n(442)),p=i(n(444));(0,r.default)(o.default),(0,s.default)(o.default),(0,a.default)(o.default),(0,u.default)(o.default),(0,l.default)(o.default),(0,c.default)(o.default),(0,p.default)(o.default);var d=o.default;t.default=d,e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){void 0===t&&(t="local"),this.id=e;try{switch(t){case"local":this.storage=window.localStorage;break;case"session":this.storage=window.sessionStorage;break;default:this.storage=null}}catch(e){this.storage=null}}return e.prototype.save=function(e){if(this.storage)try{this.storage.setItem(this.getStorageKey(),JSON.stringify(e))}catch(e){}},e.prototype.load=function(){if(!this.storage)return null;try{var e=this.storage.getItem(this.getStorageKey());return e&&JSON.parse(e)}catch(e){return null}},e.prototype.remove=function(e){if(this.storage)try{if(void 0==e)this.storage.removeItem(this.getStorageKey());else{var t=this.load();delete t[e],this.save(t)}}catch(e){}},e.prototype.getStorageKey=function(){return"coveo-"+this.id},e}();t.StorageUtils=i},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=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])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n(168),r=n(10),s=n(7),a=n(19),u=n(0),l=function(e){function t(t,n,i,o,r,s,a,u,l,c){var p=e.call(this,t,n,i,o,r,s,a,u,l,c)||this;return p.endpoint=t,p.rootElement=n,p.userId=i,p.userDisplayName=o,p.anonymous=r,p.splitTestRunName=s,p.splitTestRunVersion=a,p.originLevel1=u,p.sendToCloud=l,p.bindings=c,p.recommendation=p.bindings.searchInterface,p}return i(t,e),t.prototype.logSearchEvent=function(t,n){t==r.analyticsActionCauseList.interfaceLoad&&(t=r.analyticsActionCauseList.recommendationInterfaceLoad),e.prototype.logSearchEvent.call(this,t,n)},t.prototype.logClickEvent=function(t,n,i,o){t==r.analyticsActionCauseList.documentOpen&&(t=r.analyticsActionCauseList.recommendationOpen);var l=[e.prototype.logClickEvent.call(this,t,n,i,o)];if(this.recommendation.mainQuerySearchUID&&null!=this.recommendation.mainQueryPipeline){var c=s.Component.get(this.recommendation.options.mainSearchInterface,a.SearchInterface);i.queryUid=this.recommendation.mainQuerySearchUID,i.pipeline=this.recommendation.mainQueryPipeline,l.push(c.usageAnalytics.logClickEvent(t,n,i,o))}return Promise.all(l).then(function(e){return u.first(e)})},t.prototype.getOriginLevel2=function(e){return this.recommendation.getId()},t}(o.LiveAnalyticsClient);t.RecommendationAnalyticsClient=l},function(e,t,n){"use strict";function i(e){var t=e.templateSettings;t.evaluate=/(?:<%|{{)([\s\S]+?)(?:%>|}})/g,t.interpolate=/(?:<%|{{)=([\s\S]+?)(?:%>|}})/g,t.escape=/(?:<%|{{)-([\s\S]+?)(?:%>|}})/g}Object.defineProperty(t,"__esModule",{value:!0});var o=n(0);t.underscoreInstance=o,function(){void 0==window.Coveo&&(window.Coveo={}),void 0==window.Coveo._&&(window.Coveo._=o,i(window.Coveo._),t.underscoreInstance=window.Coveo._)}();var r=window._;window._=o,window._.noConflict=function(){return window._=r,o},i(window._)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(10),o=function(){function e(){}return e.addActionCauseToList=function(e){e.name&&e.type&&(i.analyticsActionCauseList[e.name]=e)},e.removeActionCauseFromList=function(e){delete i.analyticsActionCauseList[e]},e}();t.AnalyticsUtils=o},function(e,t,n){"use strict";function i(){return!!o()&&(t.jQueryInstance=a(),void 0==window.Coveo&&(window.Coveo={}),void 0==window.Coveo.$&&(window.Coveo.$=t.jQueryInstance),t.jQueryInstance.fn.coveo=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n;return this.each(function(t,i){var o;if(l.isString(e[0])){var r=e[0];o=u.Initialization.dispatchNamedMethodCallOrComponentCreation(r,i,e.slice(1))}else o=u.Initialization.dispatchNamedMethodCall("get",i,e);n=n||o}),n},!0)}function o(){return s()||r()}function r(){return void 0!=window.Coveo&&void 0!=window.Coveo.$}function s(){return void 0!=window.$&&void 0!=window.$.fn&&void 0!=window.$.fn.jquery}function a(){return window.$?window.$:window.Coveo.$}Object.defineProperty(t,"__esModule",{value:!0});var u=n(2),l=n(0);i()||document.addEventListener("DOMContentLoaded",function(){i()}),t.initCoveoJQuery=i,t.jQueryIsDefined=o},function(e,t,n){"use strict";function i(){o.Initialization.registerComponentFields("YouTubeThumbnail",t.fields)}Object.defineProperty(t,"__esModule",{value:!0});var o=n(2);t.fields=["ytthumbnailurl"],t.registerFields=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(7),o=n(0),r=function(){function e(e,t){this.resultListOptions=e,this.autoCreateComponentsFn=t}return e.prototype.renderResults=function(e,t,n){var r=this;return void 0===t&&(t=!1),Promise.all([this.getStartFragment(e,t),this.getEndFragment(e,t)]).then(function(t){var s=t[0],a=t[1],u=document.createDocumentFragment();s&&u.appendChild(s),o.each(e,function(e){u.appendChild(e),n(i.Component.getResult(e),e)}),a&&u.appendChild(a),r.resultListOptions.resultsContainer.appendChild(u)})},e.prototype.getStartFragment=function(e,t){return Promise.resolve(document.createDocumentFragment())},e.prototype.getEndFragment=function(e,t){return Promise.resolve(document.createDocumentFragment())},e}();t.ResultListRenderer=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n(535);var i=n(11),o=n(9),r=n(6),s=n(1),a=n(4),u=n(7),l=n(19),c=n(53),p=n(60),d=n(126),h=n(118),f=n(90),m=n(131),y=n(0),g=n(47),v=n(536),b=n(173),S=n(537),C=function(){function e(e,t,n,i){this.coveoRoot=e,this.ID=t,this.componentsInFacetColumn=[],this.preservePositionOriginalValues=[],this.searchInterface=u.Component.get(this.coveoRoot.el,l.SearchInterface,!1),this.dropdownHeaderLabel=this.getDropdownHeaderLabel(),this.dropdown=this.buildDropdown(i),this.bindDropdownContentEvents(),this.bindFacetsMobileModeEvents(),this.registerOnCloseHandler(),this.registerQueryEvents(),this.initializeBreakpoint(n.responsiveBreakpoint)}return e.init=function(t,n,i,o,r){this.findColumn(n)&&(p.ResponsiveComponentsManager.register(e,s.$$(n),"ResponsiveFacetColumn",i,o),p.ResponsiveComponentsManager.register(t,s.$$(n),r,i,o))},e.findColumn=function(e){var t=s.$$(e).find(".coveo-facet-column");if(!t){new o.Logger("ResponsiveFacets").info("No element with class coveo-facet-column. Responsive facets cannot be enabled")}return t},Object.defineProperty(e.prototype,"facetsMobileModeComponent",{get:function(){return this.searchInterface?this.searchInterface.getComponents(b.FacetsMobileMode.ID)[0]:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"facetsMobileModeOptions",{get:function(){var e=this.facetsMobileModeComponent;return e?e.options:{isModal:!1,preventScrolling:!1,displayOverlayWhileOpen:!0}},enumerable:!0,configurable:!0}),e.prototype.registerComponent=function(e){return this.componentsInFacetColumn.push(e),this.preservePositionOriginalValues.push(e.options.preservePosition),!0},e.prototype.needDropdownWrapper=function(){return this.needSmallMode()},e.prototype.handleResizeEvent=function(){this.needSmallMode()&&!d.ResponsiveComponentsUtils.isSmallFacetActivated(this.coveoRoot)?this.changeToSmallMode():!this.needSmallMode()&&d.ResponsiveComponentsUtils.isSmallFacetActivated(this.coveoRoot)&&this.changeToLargeMode(),this.dropdown.isOpened&&this.dropdown.dropdownContent.positionDropdown()},e.prototype.dismissFacetSearches=function(){y.each(this.componentsInFacetColumn,function(e){e.facetSearch&&e.facetSearch.currentlyDisplayedResults&&e.facetSearch.dismissSearchResults()})},e.prototype.needSmallMode=function(){if(!this.searchInterface)return this.coveoRoot.width()<=(a.Utils.isNullOrUndefined(this.breakpoint)?(new c.ResponsiveComponents).getMediumScreenWidth():this.breakpoint);switch(this.searchInterface.responsiveComponents.getResponsiveMode()){case"small":case"medium":return!0;case"auto":return this.coveoRoot.width()<=(a.Utils.isNullOrUndefined(this.breakpoint)?this.searchInterface.responsiveComponents.getMediumScreenWidth():this.breakpoint);default:return!1}},e.prototype.changeToSmallMode=function(){this.dropdown.close(),this.disableFacetPreservePosition(),s.$$(this.coveoRoot.find("."+p.ResponsiveComponentsManager.DROPDOWN_HEADER_WRAPPER_CSS_CLASS)).append(this.dropdown.dropdownHeader.element.el),d.ResponsiveComponentsUtils.activateSmallFacet(this.coveoRoot)},e.prototype.changeToLargeMode=function(){this.restoreFacetPreservePositionValue(),this.dropdown.cleanUp(),d.ResponsiveComponentsUtils.deactivateSmallFacet(this.coveoRoot)},e.prototype.buildDropdown=function(e){var t=this.buildDropdownContent(),n=this.buildDropdownHeader(),i=e||new h.ResponsiveDropdown(t,n,this.coveoRoot);return this.facetsMobileModeOptions.displayOverlayWhileOpen||i.disablePopupBackground(),this.facetsMobileModeOptions.preventScrolling&&i.enableScrollLocking(this.facetsMobileModeOptions.scrollContainer),i},e.prototype.buildDropdownContent=function(){var t=this,n=s.$$(this.coveoRoot.find(".coveo-facet-column")),i=s.$$("div",{className:"coveo-facet-header-filter-by-container",style:"display: none"}),o=s.$$("div",{className:"coveo-facet-header-filter-by"});return o.text(r.l("Filter by:")),i.append(o.el),n.prepend(i.el),this.facetsMobileModeOptions.isModal?new v.ResponsiveDropdownModalContent("facet",n,r.l("CloseFiltersDropdown"),function(){return t.dropdown.close()}):new f.ResponsiveDropdownContent("facet",n,this.coveoRoot,e.DROPDOWN_MIN_WIDTH,e.DROPDOWN_WIDTH_RATIO)},e.prototype.buildDropdownHeader=function(){var e=s.$$("a"),t=s.$$("p");return t.text(this.dropdownHeaderLabel),e.el.appendChild(t.el),new m.ResponsiveDropdownHeader("facet",e)},e.prototype.initializeBreakpoint=function(e){var t=this.facetsMobileModeOptions.breakpoint;this.breakpoint=a.Utils.isNullOrUndefined(t)?e:t},e.prototype.registerOnCloseHandler=function(){this.dropdown.registerOnCloseHandler(this.dismissFacetSearches,this)},e.prototype.registerQueryEvents=function(){var e=this;this.coveoRoot.on(i.QueryEvents.noResults,function(){return e.handleNoResults()}),this.coveoRoot.on(i.QueryEvents.querySuccess,function(t,n){return e.handleQuerySuccess(n)}),this.coveoRoot.on(i.QueryEvents.queryError,function(){return e.handleQueryError()})},e.prototype.bindDropdownContentEvents=function(){var t=this;this.dropdown.dropdownContent.element.on("scroll",y.debounce(function(){y.each(t.componentsInFacetColumn,function(e){var n=e.facetSearch;n&&n.currentlyDisplayedResults&&!t.isFacetSearchScrolledIntoView(n.search)?e.facetSearch.positionSearchResults(t.dropdown.dropdownContent.element.el):n&&e.facetSearch.currentlyDisplayedResults&&e.facetSearch.positionSearchResults()})},e.DEBOUNCE_SCROLL_WAIT))},e.prototype.bindFacetsMobileModeEvents=function(){var e=this.facetsMobileModeComponent;e&&(this.dropdown.registerOnOpenHandler(function(){return s.$$(e.element).trigger(S.FacetsMobileModeEvents.popupOpened)},e),this.dropdown.registerOnCloseHandler(function(){return s.$$(e.element).trigger(S.FacetsMobileModeEvents.popupClosed)},e))},e.prototype.restoreFacetPreservePositionValue=function(){var e=this;y.each(this.componentsInFacetColumn,function(t,n){t.options&&(t.options.preservePosition=e.preservePositionOriginalValues[n])})},e.prototype.disableFacetPreservePosition=function(){y.each(this.componentsInFacetColumn,function(e){e.options&&(e.options.preservePosition=!1)})},e.prototype.isFacetSearchScrolledIntoView=function(e){var t=e.getBoundingClientRect().top,n=e.getBoundingClientRect().bottom,i=this.dropdown.dropdownContent.element.el.getBoundingClientRect().top,o=this.dropdown.dropdownContent.element.el.getBoundingClientRect().bottom;return i=i>=0?i:0,t>=i&&n<=o},e.prototype.getDropdownHeaderLabel=function(){var t;return g.ComponentsTypes.getAllFacetInstancesFromElement(this.coveoRoot.find(".coveo-facet-column")).forEach(function(e){var n=e.options;!t&&n.dropdownHeaderLabel&&(t=n.dropdownHeaderLabel)}),t||(t=r.l(e.DROPDOWN_HEADER_LABEL_DEFAULT_VALUE)),t},e.prototype.handleNoResults=function(){this.dropdown.dropdownHeader.hide()},e.prototype.handleQueryError=function(){this.dropdown.dropdownHeader.hide()},e.prototype.handleQuerySuccess=function(e){0===e.results.totalCount?this.dropdown.dropdownHeader.hide():this.dropdown.dropdownHeader.show()},e.DEBOUNCE_SCROLL_WAIT=250,e.DROPDOWN_MIN_WIDTH=280,e.DROPDOWN_WIDTH_RATIO=.35,e.DROPDOWN_HEADER_LABEL_DEFAULT_VALUE="Filters",e}();t.ResponsiveFacetColumn=C},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(73),o=n(4),r=n(170),s=n(5),a=n(40),u=n(0),l=n(181),c=function(){function e(e){this.facet=e}return e.prototype.prepareForNewQuery=function(){this.lastGroupByRequestIndex=void 0,this.expressionToUseForFacetSearch=void 0,this.constantExpressionToUseForFacetSearch=void 0},e.prototype.computeOurFilterExpression=function(){var e=this,t=new i.ExpressionBuilder,n=this.facet.values.getSelected();n.length>0&&(this.facet.options.useAnd?u.each(n,function(n){t.addFieldExpression(e.facet.options.field,"==",[n.value])}):t.addFieldExpression(this.facet.options.field,"==",u.map(n,function(e){return e.value})));var r=this.facet.values.getExcluded();return r.length>0&&t.addFieldNotEqualExpression(this.facet.options.field,u.map(r,function(e){return e.value})),o.Utils.isNonEmptyString(this.facet.options.additionalFilter)&&t.add(this.facet.options.additionalFilter),t.build()},e.prototype.putGroupByIntoQueryBuilder=function(e){s.Assert.exists(e);var t=this.createGroupByAllowedValues(),n=this.createBasicGroupByRequest(t),i=this.createGroupByQueryOverride(e);if(o.Utils.isNullOrUndefined(i)&&l.QueryBuilderExpression.isEmpty(i)){var r=e.computeCompleteExpressionParts();this.expressionToUseForFacetSearch=null==r.withoutConstant?"":r.withoutConstant,this.basicExpressionToUseForFacetSearch=null==r.basic?"":r.basic,this.advancedExpressionToUseForFacetSearch=r.advanced,this.constantExpressionToUseForFacetSearch=r.constant}else n.queryOverride=i.basic,n.advancedQueryOverride=i.advanced,n.constantQueryOverride=i.constant,this.expressionToUseForFacetSearch=i.withoutConstant,this.basicExpressionToUseForFacetSearch=i.basic,this.advancedExpressionToUseForFacetSearch=i.advanced,this.constantExpressionToUseForFacetSearch=i.constant;this.lastGroupByRequestIndex=e.groupByRequests.length,this.lastGroupByRequest=n,e.groupByRequests.push(n)},e.prototype.search=function(e,t){var n=this;return void 0===t&&(t=e.nbResults),e.completeFacetWithStandardValues=!1,new Promise(function(i,o){var r=function(o){var r=o.length;if(o=n.checkForFacetSearchValuesToRemove(o,e.valueToSearch),a.FacetUtils.needAnotherFacetSearch(o.length,r,t,5))return e.nbResults+=5,n.search(e,o.length);i(o)},s=n.facet.getEndpoint().search(e.getQuery());n.currentSearchPromise=s,s.then(function(t){if(n.currentSearchPromise==s){var i=[];t.groupByResults&&t.groupByResults[0]&&u.each(t.groupByResults[0].values,function(t){t.lookupValue?u.contains(e.alwaysExclude,t.lookupValue.toLowerCase())||i.push(t):u.contains(e.alwaysExclude,t.value.toLowerCase())||i.push(t)}),r(u.first(i,e.nbResults))}else o()}).catch(function(e){o(e)})})},e.prototype.fetchMore=function(e){var t=this,n=new r.FacetSearchParameters(this.facet);return n.alwaysInclude=this.facet.options.allowedValues||u.pluck(this.facet.values.getAll(),"value"),n.nbResults=e,this.facet.getEndpoint().search(n.getQuery()).then(function(e){return t.facet.options.allowedValues&&e&&e.groupByResults&&e.groupByResults[0]&&(e.groupByResults[0].values=t.filterByAllowedValueOption(e.groupByResults[0].values)),e})},e.prototype.searchInFacetToUpdateDelta=function(e){var t=new r.FacetSearchParameters(this.facet),n=t.getQuery();return n.aq=(n.aq?n.aq:"")+" "+this.computeOurFilterExpression(),u.each(e,function(e){e.waitingForDelta=!0}),n.groupBy=[this.createBasicGroupByRequest(u.map(e,function(e){return e.value}))],n.groupBy[0].completeFacetWithStandardValues=!1,this.facet.getEndpoint().search(n)},e.prototype.createGroupByAllowedValues=function(){return void 0!=this.facet.options.allowedValues?this.facet.options.allowedValues:void 0!=this.facet.options.customSort?this.getUnionWithCustomSortLowercase(this.facet.options.customSort,this.getAllowedValuesFromSelected()):u.map(this.getAllowedValuesFromSelected(),function(e){return e.value})},e.prototype.createBasicGroupByRequest=function(e,t){void 0===t&&(t=!0);var n=this.facet.numberOfValues;if(null!=this.facet.options.customSort){var i=this.getUnionWithCustomSortLowercase(this.facet.options.customSort,this.facet.values.getSelected().concat(this.facet.values.getExcluded()));n=Math.max(n,i.length)}var r={field:this.facet.options.field,maximumNumberOfValues:n+(this.facet.options.enableMoreLess?1:0),sortCriteria:this.facet.options.sortCriteria,injectionDepth:this.facet.options.injectionDepth,completeFacetWithStandardValues:void 0==this.facet.options.allowedValues};return this.facet.options.lookupField&&(r.lookupField=this.facet.options.lookupField),null!=e&&(r.allowedValues=e),t&&o.Utils.isNonEmptyString(this.facet.options.computedField)&&(r.computedFields=[{field:this.facet.options.computedField,operation:this.facet.options.computedFieldOperation}]),r},e.prototype.getAllowedValuesFromSelected=function(){var e=[];if(this.facet.options.useAnd||!this.facet.keepDisplayedValuesNextTime){if(0==this.facet.values.getSelected().length)return;e=this.facet.values.getSelected()}else e=this.facet.values.getAll();return e},Object.defineProperty(e.prototype,"additionalFilter",{get:function(){return this.facet.options.additionalFilter?this.facet.options.additionalFilter:""},enumerable:!0,configurable:!0}),e.prototype.getUnionWithCustomSortLowercase=function(e,t){var n=u.map(e,function(e){return e.toLowerCase()}),i=u.chain(t).filter(function(e){return!u.contains(n,e.value.toLowerCase())}).map(function(e){return e.value}).value();return u.compact(e.concat(i))},e.prototype.createGroupByQueryOverride=function(e){var t=e.computeCompleteExpressionParts();return this.queryOverrideIsNeededForMultiSelection()?t=this.processQueryOverrideForMultiSelection(e,t):t.reset(),this.queryOverrideIsNeededForAdditionalFilter()&&(t=this.processQueryOverrideForAdditionalFilter(e,t)),t=this.processQueryOverrideForEmptyValues(e,t),l.QueryBuilderExpression.isEmpty(t)?null:t},e.prototype.queryOverrideIsNeededForMultiSelection=function(){return!this.facet.options.useAnd&&!!this.facet.values.hasSelectedOrExcludedValues()},e.prototype.queryOverrideIsNeededForAdditionalFilter=function(){return o.Utils.isNonEmptyString(this.additionalFilter)},e.prototype.processQueryOverrideForMultiSelection=function(e,t){if(this.facet.values.hasSelectedOrExcludedValues()){var n=this.computeOurFilterExpression();t=e.computeCompleteExpressionPartsExcept(n),l.QueryBuilderExpression.isEmpty(t)&&(t.advanced="@uri")}return t},e.prototype.processQueryOverrideForAdditionalFilter=function(e,t){if(o.Utils.isEmptyString(t.basic)&&(t.basic=e.expression.build()),o.Utils.isEmptyString(t.constant)){var n=e.constantExpression.isEmpty()?"":e.constantExpression.build()+" ";t.constant=""+n+this.additionalFilter}else t.constant=t.constant+" "+this.additionalFilter;return t.advanced||(t.advanced=this.getFilterExpressionWithoutOurFilterExpression(e)),t},e.prototype.getFilterExpressionWithoutOurFilterExpression=function(e){var t=new i.ExpressionBuilder;e.advancedExpression.getParts().forEach(function(e){return t.add(e)});var n=this.computeOurFilterExpression();return t.remove(n),t.build()},e.prototype.processQueryOverrideForEmptyValues=function(e,t){var n=u.chain(t).keys().each(function(e){(o.Utils.isEmptyString(t[e])||o.Utils.isNullOrUndefined(t[e]))&&delete t[e]}).value();return 0==u.keys(n).length&&(t=void 0),t},e.prototype.checkForFacetSearchValuesToRemove=function(e,t){var n=this,i=a.FacetUtils.getRegexToUseForFacetSearch(t,this.facet.options.facetSearchIgnoreAccents);return u.filter(e,function(e){var t=u.isEmpty(n.facet.options.allowedValues)||n.isValueAllowedByAllowedValueOption(e.value),o=n.facet.getValueCaption(e);return t&&i.test(o)})},e.prototype.filterByAllowedValueOption=function(e){var t=this;return u.filter(e,function(e){return t.isValueAllowedByAllowedValueOption(e.value)})},e.prototype.isValueAllowedByAllowedValueOption=function(e){var t=this;return u.some(this.facet.options.allowedValues,function(n){var i=t.replaceWildcardsWithRegexEquivalent(t.escapeMostRegexCharacters(n));return new RegExp("^"+i+"$","gi").test(e)})},e.prototype.escapeMostRegexCharacters=function(e){return e.replace(/[.+^${}()|[\]\\]/g,"\\$&")},e.prototype.replaceWildcardsWithRegexEquivalent=function(e){return e.replace(/\*/g,".*").replace(/\?/g,".")},e}();t.FacetQueryController=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ExpressionEndOfInput={id:"end of input",parse:null}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(50),o=n(50),r=function(){function e(e,t){this.value=e,this.id=t}return e.prototype.parse=function(e,t){var n=0==e.indexOf(this.value),r=new i.Result(n?this.value:null,this,e);return n&&t&&e.length>this.value.length?new o.EndOfInputResult(r):r},e.prototype.toString=function(){return this.value},e}();t.ExpressionConstant=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(128),o=n(497);t.Field={basicExpressions:["FieldSimpleQuery","FieldQuery","Field"],grammars:{FieldQuery:"[Field][OptionalSpaces][FieldQueryOperation]",FieldQueryOperation:["FieldQueryValue","FieldQueryNumeric"],FieldQueryValue:"[FieldOperator][OptionalSpaces][FieldValue]",FieldQueryNumeric:"[FieldOperatorNumeric][OptionalSpaces][FieldValueNumeric]",FieldSimpleQuery:"[FieldName]:[OptionalSpaces][FieldValue]",Field:"@[FieldName]",FieldName:/[a-zA-Z][a-zA-Z0-9\.\_]*/,FieldOperator:/==|=|<>/,FieldOperatorNumeric:/<=|>=|<|>/,FieldValue:["DateRange","NumberRange","DateRelative","Date","Number","FieldValueList","FieldValueString"],FieldValueNumeric:["DateRelative","Date","Number"],FieldValueString:["DoubleQuoted","FieldValueNotQuoted"],FieldValueList:"([FieldValueString][FieldValueStringList*])",FieldValueStringList:"[FieldValueSeparator][FieldValueString]",FieldValueSeparator:/ *, */,FieldValueNotQuoted:/[^ \(\)\[\],]+/,NumberRange:"[Number][Spaces?]..[Spaces?][Number]"},include:[o.Date,i.Basic]}},function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))(function(o,r){function s(e){try{u(i.next(e))}catch(e){r(e)}}function a(e){try{u(i.throw(e))}catch(e){r(e)}}function u(e){e.done?o(e.value):new n(function(t){t(e.value)}).then(s,a)}u((i=i.apply(e,t||[])).next())})},o=this&&this.__generator||function(e,t){function n(e){return function(t){return i([e,t])}}function i(n){if(o)throw new TypeError("Generator is already executing.");for(;u;)try{if(o=1,r&&(s=r[2&n[0]?"return":n[0]?"throw":"next"])&&!(s=s.call(r,n[1])).done)return s;switch(r=0,s&&(n=[0,s.value]),n[0]){case 0:case 1:s=n;break;case 4:return u.label++,{value:n[1],done:!1};case 5:u.label++,r=n[1],n=[0];continue;case 7:n=u.ops.pop(),u.trys.pop();continue;default:if(s=u.trys,!(s=s.length>0&&s[s.length-1])&&(6===n[0]||2===n[0])){u=0;continue}if(3===n[0]&&(!s||n[1]>s[0]&&n[1]<s[3])){u.label=n[1];break}if(6===n[0]&&u.label<s[1]){u.label=s[1],s=n;break}if(s&&u.label<s[2]){u.label=s[2],u.ops.push(n);break}s[2]&&u.ops.pop(),u.trys.pop();continue}n=t.call(e,u)}catch(e){n=[6,e],r=0}finally{o=s=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}var o,r,s,a,u={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return a={next:n(0),throw:n(1),return:n(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a};Object.defineProperty(t,"__esModule",{value:!0});var r,s=n(0),a=n(34),u=n(7),l=n(1),c=n(563),p=n(501),d=n(21);!function(e){e.Up="Up",e.Down="Down",e.Left="Left",e.Right="Right"}(r=t.Direction||(t.Direction={}));var h=function(){function e(e,t,n,i){var o=this;this.element=e,this.magicBoxContainer=t,this.inputManager=n,this.suggestionListboxID="coveo-magicbox-suggestions-"+d.QueryUtils.createGuid(),this.suggestionListboxClassName="coveo-magicbox-suggestions",this.root=u.Component.resolveRoot(e),this.options=s.defaults(i,{suggestionClass:"magic-box-suggestion",selectedClass:"magic-box-selected"}),void 0==this.options.timeout&&(this.options.timeout=500),l.$$(this.element).on("mouseover",function(e){o.handleMouseOver(e)}),l.$$(this.element).on("mouseout",function(e){o.handleMouseOut(e)}),this.suggestionsProcessor=new p.QueryProcessor({timeout:this.options.timeout}),this.resultPreviewsManager=new c.ResultPreviewsManager(e,{selectedClass:this.options.selectedClass,timeout:this.options.timeout}),this.suggestionsListbox=this.buildSuggestionsContainer(),l.$$(this.element).append(this.suggestionsListbox.el),this.addAccessibilityProperties(),this.appendEmptySuggestionOption()}return Object.defineProperty(e.prototype,"hasSuggestions",{get:function(){return this.currentSuggestions&&this.currentSuggestions.length>0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasFocus",{get:function(){return l.$$(this.element).findClass(this.options.selectedClass).length>0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasPreviews",{get:function(){return this.resultPreviewsManager.hasPreviews},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"focusedSuggestion",{get:function(){var e=this;return s.find(this.currentSuggestions,function(t){return l.$$(t.dom).hasClass(e.options.selectedClass)||l.$$(t.dom).findClass(e.options.selectedClass).length>0})},enumerable:!0,configurable:!0}),e.prototype.handleMouseOver=function(e){var t=l.$$(e.target),n=t.parents(this.options.suggestionClass);t.hasClass(this.options.suggestionClass)?this.processMouseSelection(t.el):n.length>0&&this.element.contains(n[0])&&this.processMouseSelection(n[0])},e.prototype.handleMouseOut=function(e){var t=l.$$(e.target),n=t.parents(this.options.suggestionClass);if(e.relatedTarget&&l.$$(e.relatedTarget).isValid()){var i=l.$$(e.relatedTarget).parents(this.options.suggestionClass);t.hasClass(this.options.selectedClass)&&!l.$$(e.relatedTarget).hasClass(this.options.suggestionClass)?this.removeSelectedStatus(t.el):0==i.length&&n.length>0&&this.removeSelectedStatus(n[0])}else t.hasClass(this.options.selectedClass)?this.removeSelectedStatus(t.el):n.length>0&&this.removeSelectedStatus(n[0]);l.$$(this.root).trigger(a.OmniboxEvents.querySuggestLoseFocus)},e.prototype.moveDown=function(){return i(this,void 0,void 0,function(){return o(this,function(e){switch(e.label){case 0:return[4,this.move(r.Down)];case 1:return e.sent(),[2]}})})},e.prototype.moveUp=function(){return i(this,void 0,void 0,function(){return o(this,function(e){switch(e.label){case 0:return[4,this.move(r.Up)];case 1:return e.sent(),[2]}})})},e.prototype.moveLeft=function(){return i(this,void 0,void 0,function(){return o(this,function(e){switch(e.label){case 0:return[4,this.move(r.Left)];case 1:return e.sent(),[2]}})})},e.prototype.moveRight=function(){return i(this,void 0,void 0,function(){return o(this,function(e){switch(e.label){case 0:return[4,this.move(r.Right)];case 1:return e.sent(),[2]}})})},e.prototype.selectAndReturnKeyboardFocusedElement=function(){var e=this.keyboardFocusedElement;return e&&(l.$$(e).trigger("keyboardSelect"),this.keyboardFocusedElement=null,this.inputManager.blur()),e},e.prototype.clearKeyboardFocusedElement=function(){this.keyboardFocusedElement=null},e.prototype.receiveSuggestions=function(e){return i(this,void 0,void 0,function(){var t,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.suggestionsProcessor.processQueries(e)];case 1:return t=o.sent(),(n=t.results,i=t.status,i===p.ProcessingStatus.Overriden)?[2,[]]:(this.updateSuggestions(n),[2,n])}})})},e.prototype.clearSuggestions=function(){this.updateSuggestions([])},e.prototype.updateSuggestions=function(e){var t=this;if(this.suggestionsListbox.empty(),this.inputManager.activeDescendant=null,this.currentSuggestions=e,l.$$(this.element).toggleClass("magic-box-hasSuggestion",this.hasSuggestions),this.inputManager.expanded=this.hasSuggestions,this.resultPreviewsManager.displaySearchResultPreviewsForSuggestion(null),!this.hasSuggestions)return this.appendEmptySuggestionOption(),void l.$$(this.root).trigger(a.OmniboxEvents.querySuggestLoseFocus);e.sort(function(e,t){return(t.index||0)-(e.index||0)}).forEach(function(n){var i=n.dom?t.modifyDomFromExistingSuggestion(n.dom):t.createDomFromSuggestion(n);i.setAttribute("id","magic-box-suggestion-"+s.indexOf(e,n)),i.setAttribute("role","option"),i.setAttribute("aria-selected","false"),i.setAttribute("aria-label",i.text()),i.suggestion=n,t.suggestionsListbox.append(i.el)}),l.$$(this.root).trigger(a.OmniboxEvents.querySuggestRendered)},Object.defineProperty(e.prototype,"selectedSuggestion",{get:function(){return this.htmlElementIsSuggestion(this.keyboardFocusedElement)?this.returnMoved(this.keyboardFocusedElement):null},enumerable:!0,configurable:!0}),e.prototype.processKeyboardSelection=function(e){return i(this,void 0,void 0,function(){return o(this,function(t){switch(t.label){case 0:return this.addSelectedStatus(e),this.keyboardFocusedElement=e,[4,this.updateSelectedSuggestion(this.focusedSuggestion)];case 1:return t.sent(),[2]}})})},e.prototype.processKeyboardPreviewSelection=function(e){this.addSelectedStatus(e),this.keyboardFocusedElement=e},e.prototype.processMouseSelection=function(e){this.addSelectedStatus(e),this.updateSelectedSuggestion(this.focusedSuggestion),this.keyboardFocusedElement=null},e.prototype.buildSuggestionsContainer=function(){return l.$$("div",{className:this.suggestionListboxClassName,id:this.suggestionListboxID,role:"listbox",ariaLabel:"Search Suggestions"})},e.prototype.createDomFromSuggestion=function(e){var t=this,n=l.$$("div",{className:"magic-box-suggestion "+this.options.suggestionClass});if(e.dom=n.el,n.on("click",function(){t.selectSuggestion(e)}),n.on("keyboardSelect",function(){t.selectSuggestion(e)}),e.html)return n.el.innerHTML=e.html,n;if(e.text)return n.text(e.text),n;if(e.separator){n.addClass("magic-box-suggestion-seperator");var i=l.$$("div",{className:"magic-box-suggestion-seperator-label"},e.separator);return n.append(i.el),n}return n},e.prototype.selectSuggestion=function(e){e.onSelect(),l.$$(this.root).trigger(a.OmniboxEvents.querySuggestSelection,{suggestion:e.text})},e.prototype.appendEmptySuggestionOption=function(){this.suggestionsListbox.append(l.$$("div",{role:"option"}).el)},e.prototype.modifyDomFromExistingSuggestion=function(e){this.removeSelectedStatus(e);var t=e.classList.contains(this.options.suggestionClass)?e:l.$$(e).find("."+this.options.suggestionClass);return this.removeSelectedStatus(t),l.$$(e)},e.prototype.move=function(e){return i(this,void 0,void 0,function(){var t;return o(this,function(n){switch(n.label){case 0:return this.resultPreviewsManager.focusedPreviewElement?[4,this.moveWithinPreview(e)]:[3,2];case 1:return n.sent(),[2];case 2:return e!==r.Right&&e!==r.Left||!(t=this.resultPreviewsManager.previewElements[0])?[4,this.moveWithinSuggestion(e)]:(this.processKeyboardPreviewSelection(t),[2]);case 3:return n.sent(),[2]}})})},e.prototype.moveWithinSuggestion=function(e){return i(this,void 0,void 0,function(){var t,n,i,a;return o(this,function(o){switch(o.label){case 0:return t=l.$$(this.element).find("."+this.options.selectedClass),n=l.$$(this.element).findAll("."+this.options.suggestionClass),i=s.indexOf(n,t),a=e===r.Up?i-1:i+1,a=(a+n.length)%n.length,[4,this.selectQuerySuggest(n[a])];case 1:return o.sent(),[2]}})})},e.prototype.selectQuerySuggest=function(e){return i(this,void 0,void 0,function(){return o(this,function(t){switch(t.label){case 0:return e?[4,this.processKeyboardSelection(e)]:[3,2];case 1:return t.sent(),[3,3];case 2:this.keyboardFocusedElement=null,this.inputManager.input.removeAttribute("aria-activedescendant"),t.label=3;case 3:return[2,e]}})})},e.prototype.moveWithinPreview=function(e){return i(this,void 0,void 0,function(){var t;return o(this,function(n){switch(n.label){case 0:return t=this.resultPreviewsManager.getElementInDirection(e),t?[3,2]:[4,this.selectQuerySuggest(this.resultPreviewsManager.previewsOwner.dom)];case 1:return n.sent(),[2];case 2:return this.processKeyboardPreviewSelection(t),[2]}})})},e.prototype.returnMoved=function(e){if(e){if(e.suggestion)return e.suggestion;if(e["no-text-suggestion"])return null;if(e instanceof HTMLElement)return{text:l.$$(e).text()}}return null},e.prototype.addSelectedStatus=function(e){for(var t=this.element.getElementsByClassName(this.options.selectedClass),n=0;n<t.length;n++){var i=t.item(n);this.removeSelectedStatus(i)}l.$$(e).addClass(this.options.selectedClass),this.updateAreaSelectedIfDefined(e,"true")},e.prototype.updateSelectedSuggestion=function(e){return i(this,void 0,void 0,function(){return o(this,function(t){switch(t.label){case 0:return l.$$(this.root).trigger(a.OmniboxEvents.querySuggestGetFocus,{suggestion:e.text}),[4,this.resultPreviewsManager.displaySearchResultPreviewsForSuggestion(e)];case 1:return t.sent(),[2]}})})},e.prototype.removeSelectedStatus=function(e){l.$$(e).removeClass(this.options.selectedClass),this.updateAreaSelectedIfDefined(e,"false")},e.prototype.updateAreaSelectedIfDefined=function(e,t){l.$$(e).getAttribute("aria-selected")&&(this.inputManager.activeDescendant=e,l.$$(e).setAttribute("aria-selected",t))},e.prototype.addAccessibilityProperties=function(){this.addAccessibilityPropertiesForMagicBox(),this.addAccessibilityPropertiesForInput()},e.prototype.addAccessibilityPropertiesForMagicBox=function(){var e=l.$$(this.magicBoxContainer);e.setAttribute("role","search"),e.setAttribute("aria-haspopup","listbox")},e.prototype.addAccessibilityPropertiesForInput=function(){var e=l.$$(this.inputManager.input);this.inputManager.activeDescendant=null,this.inputManager.expanded=!1,e.setAttribute("aria-owns",this.suggestionListboxID),e.setAttribute("aria-controls",this.suggestionListboxID)},e.prototype.htmlElementIsSuggestion=function(e){var t=l.$$(this.element).findAll("."+this.options.suggestionClass);return s.indexOf(t,e)>-1},e}();t.SuggestionsManager=h},function(e,t,n){"use strict";function i(e,t,n){return new f(e,t,n)}function o(e){return"requestAnimationFrame"in window?window.requestAnimationFrame(e):setTimeout(e)}var r=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))(function(o,r){function s(e){try{u(i.next(e))}catch(e){r(e)}}function a(e){try{u(i.throw(e))}catch(e){r(e)}}function u(e){e.done?o(e.value):new n(function(t){t(e.value)}).then(s,a)}u((i=i.apply(e,t||[])).next())})},s=this&&this.__generator||function(e,t){function n(e){return function(t){return i([e,t])}}function i(n){if(o)throw new TypeError("Generator is already executing.");for(;u;)try{if(o=1,r&&(s=r[2&n[0]?"return":n[0]?"throw":"next"])&&!(s=s.call(r,n[1])).done)return s;switch(r=0,s&&(n=[0,s.value]),n[0]){case 0:case 1:s=n;break;case 4:return u.label++,{value:n[1],done:!1};case 5:u.label++,r=n[1],n=[0];continue;case 7:n=u.ops.pop(),u.trys.pop();continue;default:if(s=u.trys,!(s=s.length>0&&s[s.length-1])&&(6===n[0]||2===n[0])){u=0;continue}if(3===n[0]&&(!s||n[1]>s[0]&&n[1]<s[3])){u.label=n[1];break}if(6===n[0]&&u.label<s[1]){u.label=s[1],s=n;break}if(s&&u.label<s[2]){u.label=s[2],u.ops.push(n);break}s[2]&&u.ops.pop(),u.trys.pop();continue}n=t.call(e,u)}catch(e){n=[6,e],r=0}finally{o=s=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}var o,r,s,a,u={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return a={next:n(0),throw:n(1),return:n(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a};Object.defineProperty(t,"__esModule",{value:!0});var a=n(0),u=n(20),l=n(1),c=n(561),p=n(500),d=n(564),h=n(217),f=function(){function e(e,t,n){void 0===n&&(n={});var i=this;this.element=e,this.grammar=t,this.options=n,this.lastSuggestions=[],a.isUndefined(this.options.inline)&&(this.options.inline=!1),l.$$(e).addClass("magic-box"),this.options.inline&&l.$$(e).addClass("magic-box-inline"),this.result=this.grammar.parse(""),this.displayedResult=this.result.clean();var o=l.$$(e).find(".magic-box-input");o||(o=document.createElement("div"),o.className="magic-box-input",e.appendChild(o)),this.inputManager=new p.InputManager(o,function(e,t){t?(i.setText(e),i.onselect&&i.onselect(i.firstSuggestionWithText)):(i.setText(e),i.addSuggestions(),i.onchange&&i.onchange())},this),this.inputManager.ontabpress=function(){i.ontabpress&&i.ontabpress()};var r=this.inputManager.getValue();r&&(this.displayedResult.input=r),this.inputManager.setResult(this.displayedResult);var s=document.createElement("div");s.className="magic-box-suggestions",this.element.appendChild(s),this.suggestionsManager=new h.SuggestionsManager(s,this.element,this.inputManager,{suggestionClass:this.options.selectableSuggestionClass,selectedClass:this.options.selectedSuggestionClass,timeout:this.options.suggestionTimeout}),this.magicBoxClear=new d.MagicBoxClear(this),this.setupHandler()}return Object.defineProperty(e.prototype,"firstSuggestionWithText",{get:function(){return a.find(this.lastSuggestions,function(e){return e.text})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"firstSuggestionText",{get:function(){var e=this.firstSuggestionWithText;return e?e.text:""},enumerable:!0,configurable:!0}),e.prototype.getResult=function(){return this.result},e.prototype.getDisplayedResult=function(){return this.displayedResult},e.prototype.setText=function(e){l.$$(this.element).toggleClass("magic-box-notEmpty",e.length>0),this.magicBoxClear.toggleTabindexAndAriaHidden(e.length>0),this.result=this.grammar.parse(e),this.displayedResult=this.result.clean(),this.inputManager.setResult(this.displayedResult)},e.prototype.setCursor=function(e){this.inputManager.setCursor(e)},e.prototype.getCursor=function(){return this.inputManager.getCursor()},e.prototype.resultAtCursor=function(e){return this.displayedResult.resultAt(this.getCursor(),e)},e.prototype.setupHandler=function(){var e=this;this.inputManager.onblur=function(){l.$$(e.element).removeClass("magic-box-hasFocus"),e.onblur&&e.onblur(),e.options.inline||e.clearSuggestion()},this.inputManager.onfocus=function(){l.$$(e.element).addClass("magic-box-hasFocus"),e.addSuggestions(),e.onfocus&&e.onfocus()},this.inputManager.onkeydown=function(t){if(e.shouldMoveInSuggestions(t))return!1;if(t===u.KEYBOARD.ENTER){return null==e.suggestionsManager.selectAndReturnKeyboardFocusedElement()&&e.onsubmit&&e.onsubmit(),!1}return t===u.KEYBOARD.ESCAPE?(e.clearSuggestion(),e.blur()):e.suggestionsManager.clearKeyboardFocusedElement(),!0},this.inputManager.onchangecursor=function(){e.addSuggestions()},this.inputManager.onkeyup=function(t){if(e.onmove&&e.onmove(),!e.shouldMoveInSuggestions(t))return!0;switch(t){case u.KEYBOARD.UP_ARROW:e.suggestionsManager.moveUp();break;case u.KEYBOARD.DOWN_ARROW:e.suggestionsManager.moveDown();break;case u.KEYBOARD.LEFT_ARROW:e.suggestionsManager.moveLeft();break;case u.KEYBOARD.RIGHT_ARROW:e.suggestionsManager.moveRight()}return e.suggestionsManager.selectedSuggestion&&e.focusOnSuggestion(e.suggestionsManager.selectedSuggestion),e.onchange&&e.onchange(),!1}},e.prototype.addSuggestions=function(){return r(this,void 0,void 0,function(){var e;return s(this,function(t){switch(t.label){case 0:return[4,this.suggestionsManager.receiveSuggestions(null!=this.getSuggestions?this.getSuggestions():[])];case 1:return e=t.sent(),this.addSelectEventHandlers(e),this.inputManager.setWordCompletion(this.firstSuggestionText),this.onSuggestions(e),[2]}})})},e.prototype.shouldMoveInSuggestions=function(e){switch(e){case u.KEYBOARD.UP_ARROW:case u.KEYBOARD.DOWN_ARROW:return!0;case u.KEYBOARD.LEFT_ARROW:case u.KEYBOARD.RIGHT_ARROW:if(this.suggestionsManager.hasFocus&&this.suggestionsManager.hasPreviews)return!0}return!1},e.prototype.addSelectEventHandlers=function(e){var t=this;a.each(e,function(e){null==e.onSelect&&null!=e.text&&(e.onSelect=function(){t.setText(e.text),t.onselect&&t.onselect(e)})})},e.prototype.focus=function(){l.$$(this.element).addClass("magic-box-hasFocus"),this.inputManager.focus()},e.prototype.blur=function(){this.inputManager.blur()},e.prototype.clearSuggestion=function(){return r(this,void 0,void 0,function(){return s(this,function(e){return this.inputManager.setWordCompletion(null),this.suggestionsManager.clearSuggestions(),this.onSuggestions([]),[2]})})},e.prototype.focusOnSuggestion=function(e){null==e||null==e.text?this.inputManager.setResult(this.displayedResult,this.firstSuggestionText):this.inputManager.setResult(this.grammar.parse(e.text).clean(),e.text)},e.prototype.getText=function(){return this.inputManager.getValue()},e.prototype.getWordCompletion=function(){return this.inputManager.getWordCompletion()},e.prototype.clear=function(){this.setText(""),this.clearSuggestion(),this.focus(),this.onclear&&this.onclear()},e.prototype.hasSuggestions=function(){return this.suggestionsManager.hasSuggestions},e}();t.MagicBoxInstance=f,t.createMagicBox=i,t.requestAnimationFrame=o,c.doMagicBoxExport()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=function(){function e(){}return e.escapeRegExp=function(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},e.highlightText=function(e,t,n,i,o){var r=this;if(void 0===n&&(n=!1),void 0===i&&(i="magic-box-hightlight"),void 0===o&&(o=""),0==t.length)return e;var s=this.escapeRegExp(t),a="("+s+")|(.*?(?="+s+")|.+)",u=new RegExp(a,n?"gi":"g");return e.replace(u,function(e,t,n){return r.escapeText(null!=t?i:o,e)})},e.escapeText=function(e,t){return'<span class="'+e+'">'+i.escape(t)+"</span>"},e}();t.MagicBoxUtils=o},function(e,t,n){"use strict";var i=this&&this.__assign||Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e};Object.defineProperty(t,"__esModule",{value:!0});var o=n(26),r=n(470),s=n(6),a=n(1),u=n(25),l=n(20),c=function(){function e(e,t,n,r){void 0===n&&(n=o.ModalBox),void 0===r&&(r={}),this.className=e,this.ownerElement=t,this.modalboxModule=n,this.options=i({sizeMod:"big"},r)}return Object.defineProperty(e.prototype,"isOpen",{get:function(){return!!this.focusTrap},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"element",{get:function(){return this.activeModal&&this.activeModal.modalBox},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"content",{get:function(){return this.activeModal&&this.activeModal.content},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"wrapper",{get:function(){return this.activeModal&&this.activeModal.wrapper},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"headerElement",{get:function(){return this.element&&this.element.querySelector(".coveo-modal-header h1")},enumerable:!0,configurable:!0}),e.prototype.openResult=function(e){this.isOpen||(this.openModalAndTrap({content:e.content,validation:e.validation,origin:e.origin,title:l.DomUtils.getQuickviewHeader(e.result,e.options,e.bindings).el}),this.makeAccessible(e.options.title||e.result.title))},e.prototype.open=function(e){this.isOpen||(this.openModalAndTrap(e),this.makeAccessible())},e.prototype.openModalAndTrap=function(e){var t=this;this.initiallyFocusedElement=e.origin||document.activeElement,this.activeModal=this.modalboxModule.open(e.content,{title:e.title,className:this.className,validation:function(){return t.onModalClose(),e.validation()},body:this.ownerElement,sizeMod:this.options.sizeMod,overlayClose:this.options.overlayClose}),this.focusTrap=new r.FocusTrap(this.element)},e.prototype.close=function(){this.isOpen&&(this.activeModal.close(),this.activeModal=null)},e.prototype.makeAccessible=function(e){this.element.setAttribute("aria-modal","true"),e&&this.headerElement.setAttribute("aria-label",e),this.makeCloseButtonAccessible()},e.prototype.makeCloseButtonAccessible=function(){var e=this.element.querySelector(".coveo-small-close");e.setAttribute("aria-label",s.l("Close")),e.setAttribute("role","button"),e.tabIndex=0,e.focus(),a.$$(e).on("keyup",u.KeyboardUtils.keypressAction(u.KEYBOARD.ENTER,function(){return e.click()}))},e.prototype.onModalClose=function(){this.focusTrap.disable(),this.focusTrap=null,this.initiallyFocusedElement&&document.body.contains(this.initiallyFocusedElement)&&this.initiallyFocusedElement.focus()},e}();t.AccessibleModal=c},function(e,t){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=function(){function e(e){var t=i.$$("button",{className:e.className,ariaLabel:e.ariaLabel,type:"button"},e.label);this.element=i.$$("li",null,t).el,t.on("click",function(){return e.action()})}return e}();t.DynamicFacetValueShowMoreLessButton=o},function(e,t,n){"use strict";var i=this&&this.__assign||Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e};Object.defineProperty(t,"__esModule",{value:!0});var o=n(23),r=n(71),s=n(10),a=n(6),u=n(180),l=function(){function e(e,t,n){this.facet=t,this.element=null,this.value=e.value,this.start=e.start,this.end=e.end,this.endInclusive=e.endInclusive,this.state=e.state,this.numberOfResults=e.numberOfResults,this.position=e.position,this.displayValue=e.displayValue,this.renderer=new n(this,t)}return Object.defineProperty(e.prototype,"isSelected",{get:function(){return this.state===r.FacetValueState.selected},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isIdle",{get:function(){return this.state===r.FacetValueState.idle},enumerable:!0,configurable:!0}),e.prototype.toggleSelect=function(){this.state===r.FacetValueState.selected?this.deselect():this.select()},e.prototype.select=function(){this.state=r.FacetValueState.selected},e.prototype.deselect=function(){this.state=r.FacetValueState.idle},e.prototype.equals=function(e){return("string"==typeof e?e:e.value).toLowerCase()===this.value.toLowerCase()},Object.defineProperty(e.prototype,"formattedCount",{get:function(){return o.format(this.numberOfResults,"n0")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"selectAriaLabel",{get:function(){var e=a.l("ResultCount",this.formattedCount,this.numberOfResults);return this.displayValue+" "+e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isRange",{get:function(){return this.facet.facetType!==u.FacetType.specific},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"analyticsValue",{get:function(){return this.isRange?this.start+".."+this.end:this.value},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rangeFacetState",{get:function(){return this.isRange?{start:""+this.start,end:""+this.end,endInclusive:this.endInclusive}:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"analyticsFacetState",{get:function(){return i({},this.facet.basicAnalyticsFacetState,this.rangeFacetState,{value:this.analyticsValue,valuePosition:this.position,displayValue:this.displayValue,state:this.state})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rangeFacetMeta",{get:function(){return this.isRange?{facetRangeStart:""+this.start,facetRangeEnd:""+this.end,facetRangeEndInclusive:this.endInclusive}:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"analyticsFacetMeta",{get:function(){return i({},this.facet.basicAnalyticsFacetMeta,this.rangeFacetMeta,{facetValue:this.analyticsValue})},enumerable:!0,configurable:!0}),e.prototype.logSelectActionToAnalytics=function(){var e=this.state===r.FacetValueState.selected?s.analyticsActionCauseList.dynamicFacetSelect:s.analyticsActionCauseList.dynamicFacetDeselect;this.facet.logAnalyticsEvent(e,this.analyticsFacetMeta)},e.prototype.render=function(){return this.element=this.renderer.render(),this.element},Object.defineProperty(e.prototype,"renderedElement",{get:function(){return this.element?this.element:this.render()},enumerable:!0,configurable:!0}),e}();t.DynamicFacetValue=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){}return e.buildURI=function(e,t,n){return e.replace(t,n)},e.bindClickEventToElement=function(e,t,n){return e},e}();t.ChatterUtils=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){}return e.quickviewLoaded="quickviewLoaded",e.openQuickview="openQuickview",e}();t.QuickviewEvents=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SUBSCRIPTION_TYPE={followQuery:"followQuery",followDocument:"followDocument"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(85),o=n(1),r=n(95),s=n(0),a=function(){function e(e,t){this.inputName=e,this.root=t,this.buildContent()}return e.prototype.reset=function(){this.radio.reset()},e.prototype.build=function(){return this.element},e.prototype.getElement=function(){return this.element},e.prototype.isSelected=function(){return this.getRadio().checked},e.prototype.updateQuery=function(e){try{var t=this.getValue();t&&e.advancedExpression.add(t),this.removeErrorMessage()}catch(e){this.setErrorMessage(e)}},e.prototype.getRadio=function(){return o.$$(this.element).find("input")},e.prototype.setErrorMessage=function(e){this.removeErrorMessage(),this.error=o.$$("div",{className:"coveo-error coveo-error-date-input"},e).el,o.$$(this.element).append(this.error)},e.prototype.removeErrorMessage=function(){this.error&&o.$$(this.error).remove()},e.prototype.buildContent=function(){var e=this;this.radio=new r.RadioButton(function(){e.deactivateAllInputs(),e.activateSelectedInput()},this.inputName,"coveo-advanced-search-date-input"),this.element=this.radio.getElement(),o.$$(this.element).addClass("coveo-advanced-search-date-input-section"),o.$$(this.radio.getRadio()).addClass("coveo-advanced-search-date"),o.$$(this.radio.getLabel()).addClass("coveo-advanced-search-label")},e.prototype.deactivateAllInputs=function(){var e=o.$$(this.element.parentElement).findAll("fieldset");s.each(e,function(e){e.disabled=!0})},e.prototype.activateSelectedInput=function(){var e=o.$$(this.element).findAll("fieldset");s.each(e,function(e){e.disabled=!1})},e.prototype.onChange=function(){this.root?o.$$(this.root).trigger(i.AdvancedSearchEvents.executeAdvancedSearch):this.element&&o.$$(this.element).trigger(i.AdvancedSearchEvents.executeAdvancedSearch)},e}();t.DateInput=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=n(85),r=n(6),s=function(){function e(e,t){this.inputName=e,this.root=t}return e.prototype.reset=function(){},e.prototype.build=function(){var e=i.$$("div",{className:"coveo-advanced-search-document-input-section"}),t=i.$$("span",{className:"coveo-advanced-search-label"});return t.text(r.l(this.inputName)),e.append(t.el),this.element=e.el,this.element},e.prototype.getValue=function(){return""},e.prototype.updateQuery=function(e){this.getValue()&&e.advancedExpression.add(this.getValue())},e.prototype.onChange=function(){this.root?i.$$(this.root).trigger(o.AdvancedSearchEvents.executeAdvancedSearch):this.element&&i.$$(this.element).trigger(o.AdvancedSearchEvents.executeAdvancedSearch)},e}();t.DocumentInput=s},function(e,t,n){"use strict";function i(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,i=e.slice(0,n);return[i.length>1?i[0]+i.slice(2):i,+e.slice(n+1)]}function o(e){if(!(t=p.exec(e)))throw new Error("invalid format: "+e);var t;return new r({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function r(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}function s(e){return h=_(e),f=h.format,m=h.formatPrefix,h}var a=function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)},u=function(e){return e=i(Math.abs(e)),e?e[1]:NaN},l=function(e,t){return function(n,i){for(var o=n.length,r=[],s=0,a=e[0],u=0;o>0&&a>0&&(u+a+1>i&&(a=Math.max(1,i-u)),r.push(n.substring(o-=a,o+a)),!((u+=a+1)>i));)a=e[s=(s+1)%e.length];return r.reverse().join(t)}},c=function(e){return function(t){return t.replace(/[0-9]/g,function(t){return e[+t]})}},p=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;o.prototype=r.prototype,r.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var d,h,f,m,y=function(e){e:for(var t,n=e.length,i=1,o=-1;i<n;++i)switch(e[i]){case".":o=t=i;break;case"0":0===o&&(o=i),t=i;break;default:if(!+e[i])break e;o>0&&(o=0)}return o>0?e.slice(0,o)+e.slice(t+1):e},g=function(e,t){var n=i(e,t);if(!n)return e+"";var o=n[0],r=n[1],s=r-(d=3*Math.max(-8,Math.min(8,Math.floor(r/3))))+1,a=o.length;return s===a?o:s>a?o+new Array(s-a+1).join("0"):s>0?o.slice(0,s)+"."+o.slice(s):"0."+new Array(1-s).join("0")+i(e,Math.max(0,t+s-1))[0]},v=function(e,t){var n=i(e,t);if(!n)return e+"";var o=n[0],r=n[1];return r<0?"0."+new Array(-r).join("0")+o:o.length>r+1?o.slice(0,r+1)+"."+o.slice(r+1):o+new Array(r-o.length+2).join("0")},b={"%":function(e,t){return(100*e).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:a,e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return v(100*e,t)},r:v,s:g,X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}},S=function(e){return e},C=Array.prototype.map,w=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"],_=function(e){function t(e){function t(e){var t,o,r,s=x,c=E;if("c"===O)c=A(e)+c,e="";else{e=+e;var h=e<0||1/e<0;if(e=isNaN(e)?m:A(Math.abs(e),C),_&&(e=y(e)),h&&0==+e&&"+"!==l&&(h=!1),s=(h?"("===l?l:f:"-"===l||"("===l?"":l)+s,c=("s"===O?w[8+d/3]:"")+c+(h&&"("===l?")":""),T)for(t=-1,o=e.length;++t<o;)if(48>(r=e.charCodeAt(t))||r>57){c=(46===r?a+e.slice(t+1):e.slice(t))+c,e=e.slice(0,t);break}}S&&!g&&(e=i(e,1/0));var b=s.length+e.length+c.length,R=b<v?new Array(v-b+1).join(n):"";switch(S&&g&&(e=i(R+e,R.length?v-c.length:1/0),R=""),u){case"<":e=s+e+c+R;break;case"=":e=s+R+e+c;break;case"^":e=R.slice(0,b=R.length>>1)+s+e+c+R.slice(b);break;default:e=R+s+e+c}return p(e)}e=o(e);var n=e.fill,u=e.align,l=e.sign,c=e.symbol,g=e.zero,v=e.width,S=e.comma,C=e.precision,_=e.trim,O=e.type;"n"===O?(S=!0,O="g"):b[O]||(void 0===C&&(C=12),_=!0,O="g"),(g||"0"===n&&"="===u)&&(g=!0,n="0",u="=");var x="$"===c?r:"#"===c&&/[boxX]/.test(O)?"0"+O.toLowerCase():"",E="$"===c?s:/[%p]/.test(O)?h:"",A=b[O],T=/[defgprs%]/.test(O);return C=void 0===C?6:/[gprs]/.test(O)?Math.max(1,Math.min(21,C)):Math.max(0,Math.min(20,C)),t.toString=function(){return e+""},t}function n(e,n){var i=t((e=o(e),e.type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(u(n)/3))),s=Math.pow(10,-r),a=w[8+r/3];return function(e){return i(s*e)+a}}var i=void 0===e.grouping||void 0===e.thousands?S:l(C.call(e.grouping,Number),e.thousands+""),r=void 0===e.currency?"":e.currency[0]+"",s=void 0===e.currency?"":e.currency[1]+"",a=void 0===e.decimal?".":e.decimal+"",p=void 0===e.numerals?S:c(C.call(e.numerals,String)),h=void 0===e.percent?"%":e.percent+"",f=void 0===e.minus?"-":e.minus+"",m=void 0===e.nan?"NaN":e.nan+"";return{format:t,formatPrefix:n}};s({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});var O=function(e){return Math.max(0,-u(Math.abs(e)))},x=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(u(t)/3)))-u(Math.abs(e)))},E=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,u(t)-u(e))+1};n.d(t,"c",function(){return s}),n.d(t,"b",function(){return f}),n.d(t,"e",function(){return m}),n.d(t,"d",function(){return _}),n.d(t,"f",function(){return o}),n.d(t,"a",function(){return r}),n.d(t,"g",function(){return O}),n.d(t,"h",function(){return x}),n.d(t,"i",function(){return E})},function(e,t,n){"use strict";function i(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function o(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function r(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function s(e){function t(e,t){return function(n){var i,o,r,s=[],a=-1,u=0,l=e.length;for(n instanceof Date||(n=new Date(+n));++a<l;)37===e.charCodeAt(a)&&(s.push(e.slice(u,a)),null!=(o=Re[i=e.charAt(++a)])?i=e.charAt(++a):o="e"===i?" ":"0",(r=t[i])&&(i=r(n,o)),s.push(i),u=a+1);return s.push(e.slice(u,a)),s.join("")}}function n(e,t){return function(n){var a,u,l=r(1900,void 0,1),c=s(l,e,n+="",0);if(c!=n.length)return null;if("Q"in l)return new Date(l.Q);if("s"in l)return new Date(1e3*l.s+("L"in l?l.L:0));if(!t||"Z"in l||(l.Z=0),"p"in l&&(l.H=l.H%12+12*l.p),void 0===l.m&&(l.m="q"in l?l.q:0),"V"in l){if(l.V<1||l.V>53)return null;"w"in l||(l.w=1),"Z"in l?(a=o(r(l.y,0,1)),u=a.getUTCDay(),a=u>4||0===u?Te.P.ceil(a):Object(Te.P)(a),a=Te.F.offset(a,7*(l.V-1)),l.y=a.getUTCFullYear(),l.m=a.getUTCMonth(),l.d=a.getUTCDate()+(l.w+6)%7):(a=i(r(l.y,0,1)),u=a.getDay(),a=u>4||0===u?Te.l.ceil(a):Object(Te.l)(a),a=Te.a.offset(a,7*(l.V-1)),l.y=a.getFullYear(),l.m=a.getMonth(),l.d=a.getDate()+(l.w+6)%7)}else("W"in l||"U"in l)&&("w"in l||(l.w="u"in l?l.u%7:"W"in l?1:0),u="Z"in l?o(r(l.y,0,1)).getUTCDay():i(r(l.y,0,1)).getDay(),l.m=0,l.d="W"in l?(l.w+6)%7+7*l.W-(u+5)%7:l.w+7*l.U-(u+6)%7);return"Z"in l?(l.H+=l.Z/100|0,l.M+=l.Z%100,o(l)):i(l)}}function s(e,t,n,i){for(var o,r,s=0,a=t.length,u=n.length;s<a;){if(i>=u)return-1;if(37===(o=t.charCodeAt(s++))){if(o=t.charAt(s++),!(r=ot[o in Re?t.charAt(s++):o])||(i=r(e,n,i))<0)return-1}else if(o!=n.charCodeAt(i++))return-1}return i}function a(e,t,n){var i=ze.exec(t.slice(n));return i?(e.p=We[i[0].toLowerCase()],n+i[0].length):-1}function u(e,t,n){var i=Ke.exec(t.slice(n));return i?(e.w=Je[i[0].toLowerCase()],n+i[0].length):-1}function Q(e,t,n){var i=Ge.exec(t.slice(n));return i?(e.w=Ye[i[0].toLowerCase()],n+i[0].length):-1}function ue(e,t,n){var i=et.exec(t.slice(n));return i?(e.m=tt[i[0].toLowerCase()],n+i[0].length):-1}function Se(e,t,n){var i=Ze.exec(t.slice(n));return i?(e.m=Xe[i[0].toLowerCase()],n+i[0].length):-1}function Ce(e,t,n){return s(e,Ve,t,n)}function we(e,t,n){return s(e,Le,t,n)}function _e(e,t,n){return s(e,Be,t,n)}function Oe(e){return je[e.getDay()]}function xe(e){return Qe[e.getDay()]}function Ee(e){return qe[e.getMonth()]}function Ae(e){return He[e.getMonth()]}function Fe(e){return Ue[+(e.getHours()>=12)]}function Me(e){return 1+~~(e.getMonth()/3)}function Ie(e){return je[e.getUTCDay()]}function Pe(e){return Qe[e.getUTCDay()]}function De(e){return qe[e.getUTCMonth()]}function $e(e){return He[e.getUTCMonth()]}function Ne(e){return Ue[+(e.getUTCHours()>=12)]}function ke(e){return 1+~~(e.getUTCMonth()/3)}var Ve=e.dateTime,Le=e.date,Be=e.time,Ue=e.periods,Qe=e.days,je=e.shortDays,He=e.months,qe=e.shortMonths,ze=l(Ue),We=c(Ue),Ge=l(Qe),Ye=c(Qe),Ke=l(je),Je=c(je),Ze=l(He),Xe=c(He),et=l(qe),tt=c(qe),nt={a:Oe,A:xe,b:Ee,B:Ae,c:null,d:M,e:M,f:N,g:W,G:Y,H:I,I:P,j:D,L:$,m:k,M:V,p:Fe,q:Me,Q:ve,s:be,S:L,u:B,U:U,V:j,w:H,W:q,x:null,X:null,y:z,Y:G,Z:K,"%":ge},it={a:Ie,A:Pe,b:De,B:$e,c:null,d:J,e:J,f:ne,g:he,G:me,H:Z,I:X,j:ee,L:te,m:ie,M:oe,p:Ne,q:ke,Q:ve,s:be,S:re,u:se,U:ae,V:le,w:ce,W:pe,x:null,X:null,y:de,Y:fe,Z:ye,"%":ge},ot={a:u,A:Q,b:ue,B:Se,c:Ce,d:C,e:C,f:A,g:g,G:y,H:_,I:_,j:w,L:E,m:S,M:O,p:a,q:b,Q:R,s:F,S:x,u:d,U:h,V:f,w:p,W:m,x:we,X:_e,y:g,Y:y,Z:v,"%":T};return nt.x=t(Le,nt),nt.X=t(Be,nt),nt.c=t(Ve,nt),it.x=t(Le,it),it.X=t(Be,it),it.c=t(Ve,it),{format:function(e){var n=t(e+="",nt);return n.toString=function(){return e},n},parse:function(e){var t=n(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var n=t(e+="",it);return n.toString=function(){return e},n},utcParse:function(e){var t=n(e+="",!0);return t.toString=function(){return e},t}}}function a(e,t,n){var i=e<0?"-":"",o=(i?-e:e)+"",r=o.length;return i+(r<n?new Array(n-r+1).join(t)+o:o)}function u(e){return e.replace(Ie,"\\$&")}function l(e){return new RegExp("^(?:"+e.map(u).join("|")+")","i")}function c(e){for(var t={},n=-1,i=e.length;++n<i;)t[e[n].toLowerCase()]=n;return t}function p(e,t,n){var i=Fe.exec(t.slice(n,n+1));return i?(e.w=+i[0],n+i[0].length):-1}function d(e,t,n){var i=Fe.exec(t.slice(n,n+1));return i?(e.u=+i[0],n+i[0].length):-1}function h(e,t,n){var i=Fe.exec(t.slice(n,n+2));return i?(e.U=+i[0],n+i[0].length):-1}function f(e,t,n){var i=Fe.exec(t.slice(n,n+2));return i?(e.V=+i[0],n+i[0].length):-1}function m(e,t,n){var i=Fe.exec(t.slice(n,n+2));return i?(e.W=+i[0],n+i[0].length):-1}function y(e,t,n){var i=Fe.exec(t.slice(n,n+4));return i?(e.y=+i[0],n+i[0].length):-1}function g(e,t,n){var i=Fe.exec(t.slice(n,n+2));return i?(e.y=+i[0]+(+i[0]>68?1900:2e3),n+i[0].length):-1}function v(e,t,n){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return i?(e.Z=i[1]?0:-(i[2]+(i[3]||"00")),n+i[0].length):-1}function b(e,t,n){var i=Fe.exec(t.slice(n,n+1));return i?(e.q=3*i[0]-3,n+i[0].length):-1}function S(e,t,n){var i=Fe.exec(t.slice(n,n+2));return i?(e.m=i[0]-1,n+i[0].length):-1}function C(e,t,n){var i=Fe.exec(t.slice(n,n+2));return i?(e.d=+i[0],n+i[0].length):-1}function w(e,t,n){var i=Fe.exec(t.slice(n,n+3));return i?(e.m=0,e.d=+i[0],n+i[0].length):-1}function _(e,t,n){var i=Fe.exec(t.slice(n,n+2));return i?(e.H=+i[0],n+i[0].length):-1}function O(e,t,n){var i=Fe.exec(t.slice(n,n+2));return i?(e.M=+i[0],n+i[0].length):-1}function x(e,t,n){var i=Fe.exec(t.slice(n,n+2));return i?(e.S=+i[0],n+i[0].length):-1}function E(e,t,n){var i=Fe.exec(t.slice(n,n+3));return i?(e.L=+i[0],n+i[0].length):-1}function A(e,t,n){var i=Fe.exec(t.slice(n,n+6));return i?(e.L=Math.floor(i[0]/1e3),n+i[0].length):-1}function T(e,t,n){var i=Me.exec(t.slice(n,n+1));return i?n+i[0].length:-1}function R(e,t,n){var i=Fe.exec(t.slice(n));return i?(e.Q=+i[0],n+i[0].length):-1}function F(e,t,n){var i=Fe.exec(t.slice(n));return i?(e.s=+i[0],n+i[0].length):-1}function M(e,t){return a(e.getDate(),t,2)}function I(e,t){return a(e.getHours(),t,2)}function P(e,t){return a(e.getHours()%12||12,t,2)}function D(e,t){return a(1+Te.a.count(Object(Te.D)(e),e),t,3)}function $(e,t){return a(e.getMilliseconds(),t,3)}function N(e,t){return $(e,t)+"000"}function k(e,t){return a(e.getMonth()+1,t,2)}function V(e,t){return a(e.getMinutes(),t,2)}function L(e,t){return a(e.getSeconds(),t,2)}function B(e){var t=e.getDay();return 0===t?7:t}function U(e,t){return a(Te.t.count(Object(Te.D)(e)-1,e),t,2)}function Q(e){var t=e.getDay();return t>=4||0===t?Object(Te.v)(e):Te.v.ceil(e)}function j(e,t){return e=Q(e),a(Te.v.count(Object(Te.D)(e),e)+(4===Object(Te.D)(e).getDay()),t,2)}function H(e){return e.getDay()}function q(e,t){return a(Te.l.count(Object(Te.D)(e)-1,e),t,2)}function z(e,t){return a(e.getFullYear()%100,t,2)}function W(e,t){return e=Q(e),a(e.getFullYear()%100,t,2)}function G(e,t){return a(e.getFullYear()%1e4,t,4)}function Y(e,t){var n=e.getDay();return e=n>=4||0===n?Object(Te.v)(e):Te.v.ceil(e),a(e.getFullYear()%1e4,t,4)}function K(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+a(t/60|0,"0",2)+a(t%60,"0",2)}function J(e,t){return a(e.getUTCDate(),t,2)}function Z(e,t){return a(e.getUTCHours(),t,2)}function X(e,t){return a(e.getUTCHours()%12||12,t,2)}function ee(e,t){return a(1+Te.F.count(Object(Te._7)(e),e),t,3)}function te(e,t){return a(e.getUTCMilliseconds(),t,3)}function ne(e,t){return te(e,t)+"000"}function ie(e,t){return a(e.getUTCMonth()+1,t,2)}function oe(e,t){return a(e.getUTCMinutes(),t,2)}function re(e,t){return a(e.getUTCSeconds(),t,2)}function se(e){var t=e.getUTCDay();return 0===t?7:t}function ae(e,t){return a(Te.X.count(Object(Te._7)(e)-1,e),t,2)}function ue(e){var t=e.getUTCDay();return t>=4||0===t?Object(Te.Z)(e):Te.Z.ceil(e)}function le(e,t){return e=ue(e),a(Te.Z.count(Object(Te._7)(e),e)+(4===Object(Te._7)(e).getUTCDay()),t,2)}function ce(e){return e.getUTCDay()}function pe(e,t){return a(Te.P.count(Object(Te._7)(e)-1,e),t,2)}function de(e,t){return a(e.getUTCFullYear()%100,t,2)}function he(e,t){return e=ue(e),a(e.getUTCFullYear()%100,t,2)}function fe(e,t){return a(e.getUTCFullYear()%1e4,t,4)}function me(e,t){var n=e.getUTCDay();return e=n>=4||0===n?Object(Te.Z)(e):Te.Z.ceil(e),a(e.getUTCFullYear()%1e4,t,4)}function ye(){return"+0000"}function ge(){return"%"}function ve(e){return+e}function be(e){return Math.floor(+e/1e3)}function Se(e){return _e=s(e),Oe=_e.format,xe=_e.parse,Ee=_e.utcFormat,Ae=_e.utcParse,_e}function Ce(e){return e.toISOString()}function we(e){var t=new Date(e);return isNaN(t)?null:t}var _e,Oe,xe,Ee,Ae,Te=n(184),Re={"-":"",_:" ",0:"0"},Fe=/^\s*\d+/,Me=/^%/,Ie=/[\\^$*+?|[\]().{}]/g;Se({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});var Pe=Date.prototype.toISOString?Ce:Ee("%Y-%m-%dT%H:%M:%S.%LZ"),De=Pe,$e=+new Date("2000-01-01T00:00:00.000Z")?we:Ae("%Y-%m-%dT%H:%M:%S.%LZ"),Ne=$e;n.d(t,"d",function(){return Se}),n.d(t,"c",function(){return Oe}),n.d(t,"f",function(){return xe}),n.d(t,"g",function(){return Ee}),n.d(t,"h",function(){return Ae}),n.d(t,"e",function(){return s}),n.d(t,"a",function(){return De}),n.d(t,"b",function(){return Ne})},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=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])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),o=this&&this.__assign||Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},r=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))(function(o,r){function s(e){try{u(i.next(e))}catch(e){r(e)}}function a(e){try{u(i.throw(e))}catch(e){r(e)}}function u(e){e.done?o(e.value):new n(function(t){t(e.value)}).then(s,a)}u((i=i.apply(e,t||[])).next())})},s=this&&this.__generator||function(e,t){function n(e){return function(t){return i([e,t])}}function i(n){if(o)throw new TypeError("Generator is already executing.");for(;u;)try{if(o=1,r&&(s=r[2&n[0]?"return":n[0]?"throw":"next"])&&!(s=s.call(r,n[1])).done)return s;switch(r=0,s&&(n=[0,s.value]),n[0]){case 0:case 1:s=n;break;case 4:return u.label++,{value:n[1],done:!1};case 5:u.label++,r=n[1],n=[0];continue;case 7:n=u.ops.pop(),u.trys.pop();continue;default:if(s=u.trys,!(s=s.length>0&&s[s.length-1])&&(6===n[0]||2===n[0])){u=0;continue}if(3===n[0]&&(!s||n[1]>s[0]&&n[1]<s[3])){u.label=n[1];break}if(6===n[0]&&u.label<s[1]){u.label=s[1],s=n;break}if(s&&u.label<s[2]){u.label=s[2],u.ops.push(n);break}s[2]&&u.ops.pop(),u.trys.pop();continue}n=t.call(e,u)}catch(e){n=[6,e],r=0}finally{o=s=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}var o,r,s,a,u={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return a={next:n(0),throw:n(1),return:n(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a};Object.defineProperty(t,"__esModule",{value:!0});var a=n(225),u=n(5),l=n(1),c=n(4),p=n(7),d=n(8),h=n(2),f=n(643),m=n(644),y=n(645),g=n(0),v=n(648),b=n(649);t.HIGHLIGHT_PREFIX="CoveoHighlight";var S=function(e){function t(n,i,o,r){var s=e.call(this,n,t.ID,o)||this;return s.element=n,s.options=i,s.result=r,s.options=d.ComponentOptions.initComponentOptions(n,t,i),s.result=r||s.resolveResult(),u.Assert.exists(s.result),s}return i(t,e),t.prototype.createDom=function(){var e=l.$$("div",{className:"coveo-quickview-document"});this.element.appendChild(e.el),this.header=new m.QuickviewDocumentHeader,this.iframe=new f.QuickviewDocumentIframe,e.append(this.header.el),e.append(this.iframe.el)},t.prototype.open=function(){return r(this,void 0,void 0,function(){var e,t,n,i,o,r,a,u,a,l=this;return s(this,function(s){switch(s.label){case 0:this.ensureDom(),e=(new Date).getTime(),t=this.initialTermsToHighlight,this.triggerOpenQuickViewEvent({termsToHighlight:t}),n=this.wereTermsToHighlightModified(t),n&&this.handleTermsToHighlight(t,this.query),s.label=1;case 1:return s.trys.push([1,4,,6]),[4,this.queryController.getEndpoint().getDocumentHtml(this.result.uniqueId,{queryObject:this.query,requestedOutputSize:this.options.maximumDocumentSize})];case 2:return i=s.sent(),[4,this.iframe.render(i,this.result.title)];case 3:return s.sent(),o=new y.QuickviewDocumentWords(this.iframe,this.result),r=new b.QuickviewDocumentPreviewBar(this.iframe,o),g.each(o.words,function(e){var t=new v.QuickviewDocumentWordButton(e,r,l.iframe);l.header.addWord(t)}),a=(new Date).getTime(),this.triggerQuickviewLoaded(a-e),[3,6];case 4:return u=s.sent(),[4,this.iframe.renderError(u)];case 5:return s.sent(),a=(new Date).getTime(),this.triggerQuickviewLoaded(a-e),[3,6];case 6:return[2]}})})},Object.defineProperty(t.prototype,"initialTermsToHighlight",{get:function(){return g.keys(this.result.termsToHighlight)},enumerable:!0,configurable:!0}),t.prototype.triggerOpenQuickViewEvent=function(e){l.$$(this.root).trigger(a.QuickviewEvents.openQuickview,e)},Object.defineProperty(t.prototype,"query",{get:function(){return o({},this.queryController.getLastQuery())},enumerable:!0,configurable:!0}),t.prototype.triggerQuickviewLoaded=function(e){l.$$(this.element).trigger(a.QuickviewEvents.quickviewLoaded,{duration:e})},t.prototype.handleTermsToHighlight=function(e,t){var n=this;for(var i in this.result.termsToHighlight)delete this.result.termsToHighlight[i];var o="";g.each(e,function(e){o+=e+" ",n.result.termsToHighlight[e]=[e]}),o=o.substring(0,o.length-1),t.q=o},t.prototype.wereTermsToHighlightModified=function(e){return!c.Utils.arrayEqual(e,this.initialTermsToHighlight)},t.ID="QuickviewDocument",t.options={maximumDocumentSize:d.ComponentOptions.buildNumberOption({defaultValue:0,min:0})},t}(p.Component);t.QuickviewDocument=S,h.Initialization.registerAutoCreateComponent(S)},,function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=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])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n(7),r=n(8),s=n(11),a=n(85),u=n(54),l=n(2),c=n(6),p=n(1),d=n(588),h=n(10),f=n(518),m=n(0),y=n(3);n(599);var g=n(121),v=n(87),b=n(63),S=n(55),C=n(95),w=n(26),_=n(35),O=n(12),x=n(17),E=function(e){function t(n,i,o,s){void 0===s&&(s=w.ModalBox);var a=e.call(this,n,t.ID,o)||this;return a.element=n,a.options=i,a.ModalBox=s,a.inputs=[],a.inputFactory=new d.AdvancedSearchInputFactory(a.queryController.getEndpoint(),a.root),a.externalSections=[],a.needToPopulateBreadcrumb=!1,a.needToExecuteAdvancedSearch=!0,a.options=r.ComponentOptions.initComponentOptions(n,t,i),a.bindEvents(),a.buildContent(),a}return i(t,e),t.prototype.executeAdvancedSearch=function(){this.needToExecuteAdvancedSearch&&(this.usageAnalytics.logSearchEvent(h.analyticsActionCauseList.advancedSearch,{}),this.queryController.executeQuery({closeModalBox:!1}))},t.prototype.reset=function(){m.each(this.inputs,function(e){e.reset()})},t.prototype.open=function(){null==this.modalbox&&(this.modalbox=this.ModalBox.open(this.content.el,{sizeMod:"big",title:c.l("AdvancedSearch"),className:"coveo-advanced-search-modal",body:this.searchInterface.options.modalContainer}))},t.prototype.close=function(){null!=this.modalbox&&(this.modalbox.close(),this.modalbox=null)},t.prototype.handlePopulateBreadcrumb=function(e){if(this.needToPopulateBreadcrumb){var t=this.buildBreadcrumbElements(),n=t.container,i=t.title,o=t.clear;n.append(i.el),n.append(o.el),e.breadcrumbs.push({element:n.el})}},t.prototype.buildBreadcrumbElements=function(){return{container:this.buildBreadcrumbContainer(),title:this.buildBreadcrumbTitle(),clear:this.buildBreacrumbClear()}},t.prototype.buildBreadcrumbContainer=function(){return p.$$("div",{className:"coveo-advanced-search-breadcrumb"})},t.prototype.buildBreadcrumbTitle=function(){return p.$$("span",{className:"coveo-advanced-search-breadcrumb-title"},c.l("FiltersInAdvancedSearch")+":")},t.prototype.buildBreacrumbClear=function(){var e=this,t=p.$$("span",{className:"coveo-advanced-search-breadcrumb-clear"},O.SVGIcons.icons.mainClear),n=function(){e.handleClearBreadcrumb(),e.usageAnalytics.logSearchEvent(h.analyticsActionCauseList.breadcrumbAdvancedSearch,{}),e.queryController.executeQuery()};return(new x.AccessibleButton).withElement(t).withLabel(c.l("Clear")).withSelectAction(function(){return n()}).build(),t},t.prototype.handleClearBreadcrumb=function(){this.needToPopulateBreadcrumb&&(this.needToExecuteAdvancedSearch=!1,this.reset(),this.needToExecuteAdvancedSearch=!0)},t.prototype.handleQuerySummaryCancelLastAction=function(){this.needToExecuteAdvancedSearch=!1,this.reset(),this.needToExecuteAdvancedSearch=!0},t.prototype.handlePopulateMenu=function(e){var t=this;e.menuData.push({text:c.l("AdvancedSearch"),className:"coveo-advanced-search",onOpen:function(){return t.open()},onClose:function(){return t.close()},svgIcon:O.SVGIcons.icons.dropdownPreferences,svgIconClassName:"coveo-advanced-search-svg"})},t.prototype.handleBuildingQuery=function(e){var t=e.queryBuilder.build();m.each(this.externalSections,function(t){t.updateQuery&&t.updateQuery(t.inputs,e.queryBuilder)}),m.each(this.inputs,function(t){t.updateQuery&&t.updateQuery(e.queryBuilder)});var n=e.queryBuilder.build();this.needToPopulateBreadcrumb=n.aq!=t.aq},t.prototype.buildContent=function(){var e=this,t=p.$$("div"),n=[];this.options.includeKeywords&&n.push(this.getKeywordsSection()),this.options.includeDate&&n.push(this.getDateSection()),this.options.includeDocument&&n.push(this.getDocumentSection()),this.externalSections=[],p.$$(this.root).trigger(a.AdvancedSearchEvents.buildingAdvancedSearch,{sections:this.externalSections,executeQuery:function(t){return t=m.extend({},t,{closeModalBox:!1}),e.queryController.executeQuery(t)}}),m.each(this.externalSections,function(n){t.append(e.buildExternalSection(n))}),m.each(n,function(n){t.append(e.buildInternalSection(n))}),this.content=t},t.prototype.getKeywordsSection=function(){var e=c.l("Keywords"),t=[];return t.push(this.inputFactory.createAllKeywordsInput()),t.push(this.inputFactory.createExactKeywordsInput()),t.push(this.inputFactory.createAnyKeywordsInput()),t.push(this.inputFactory.createNoneKeywordsInput()),{name:e,inputs:t}},t.prototype.getDateSection=function(){var e=c.l("Date"),t=[];return t.push(this.inputFactory.createAnytimeDateInput()),t.push(this.inputFactory.createInTheLastDateInput()),t.push(this.inputFactory.createBetweenDateInput()),{name:e,inputs:t}},t.prototype.getDocumentSection=function(){var e=c.l("Document"),t=[];return t.push(this.inputFactory.createSimpleFieldInput(c.l("FileType"),"@filetype")),t.push(this.inputFactory.createSimpleFieldInput(c.l("Language"),"@language")),t.push(this.inputFactory.createSizeInput()),t.push(this.inputFactory.createAdvancedFieldInput(c.l("Title"),"@title")),t.push(this.inputFactory.createAdvancedFieldInput(c.l("Author"),"@author")),{name:e,inputs:t}},t.prototype.buildExternalSection=function(e){var t=this.buildSectionTitle(e).el;return this.inputs=m.union(this.inputs,e.inputs),t.appendChild(e.content),t},t.prototype.buildInternalSection=function(e){var t=this,n=this.buildSectionTitle(e),i=n.el,o=n.id,r=[];return m.each(e.inputs,function(e){r.push(t.buildDefaultInput(e))}),this.inputs=m.union(this.inputs,r),m.each(r,function(e){var t=e.build(),n=t.querySelector("input");n&&n.setAttribute("aria-labelledby",o),p.$$(i).append(t)}),i},t.prototype.buildSectionTitle=function(e){var t=p.$$("div",{className:"coveo-advanced-search-section"}),n=p.$$("div",{className:"coveo-advanced-search-section-title"});n.text(e.name);var i="coveo-advanced-search-section-"+e.name;return n.el.id=i,t.append(n.el),{el:t.el,id:i}},t.prototype.buildDefaultInput=function(e){return this.isPrebuiltInput(e)?this.inputFactory.create(e.name,e.parameters):e},t.prototype.isPrebuiltInput=function(e){return void 0!==e.name},t.prototype.bindEvents=function(){var e=this;this.bind.onRootElement(_.BreadcrumbEvents.populateBreadcrumb,function(t){return e.handlePopulateBreadcrumb(t)}),this.bind.onRootElement(_.BreadcrumbEvents.clearBreadcrumb,function(t){return e.handleClearBreadcrumb()}),this.bind.onRootElement(u.SettingsEvents.settingsPopulateMenu,function(t){return e.handlePopulateMenu(t)}),this.bind.onRootElement(s.QueryEvents.buildingQuery,function(t){return e.handleBuildingQuery(t)}),this.bind.onRootElement(a.AdvancedSearchEvents.executeAdvancedSearch,function(){return e.executeAdvancedSearch()}),this.bind.onRootElement(f.QuerySummaryEvents.cancelLastAction,function(){return e.handleQuerySummaryCancelLastAction()})},t.ID="AdvancedSearch",t.doExport=function(){y.exportGlobally({AdvancedSearch:t,NumericSpinner:g.NumericSpinner,DatePicker:v.DatePicker,Dropdown:b.Dropdown,TextInput:S.TextInput,RadioButton:C.RadioButton})},t.options={includeKeywords:r.ComponentOptions.buildBooleanOption({defaultValue:!0}),includeDate:r.ComponentOptions.buildBooleanOption({defaultValue:!0}),includeDocument:r.ComponentOptions.buildBooleanOption({defaultValue:!0})},t}(o.Component);t.AdvancedSearch=E,l.Initialization.registerAutoCreateComponent(E)},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=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])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n(7),r=n(8),s=n(11),a=n(2),u=n(1),l=n(23),c=n(0),p=n(3),d=function(e){function t(n,i,o){var a=e.call(this,n,t.ID,o)||this;return a.element=n,a.options=i,a.options=r.ComponentOptions.initComponentOptions(n,t,i),a.bind.onRootElement(s.QueryEvents.buildingQuery,function(e){return a.handleBuildingQuery(e)}),a.bind.onRootElement(s.QueryEvents.querySuccess,function(e){return a.handleQuerySuccess(e)}),u.$$(a.element).hide(),a}return i(t,e),t.doExport=function(){p.exportGlobally({Aggregate:t})},t.prototype.handleBuildingQuery=function(e){var t={field:this.options.field,maximumNumberOfValues:0,computedFields:[{field:this.options.field,operation:this.options.operation}]};this.index=e.queryBuilder.groupByRequests.length,e.queryBuilder.groupByRequests.push(t)},t.prototype.handleQuerySuccess=function(e){if(c.isNumber(this.index)&&0!=e.results.groupByResults.length){var t=e.results.groupByResults[this.index],n=t.globalComputedFieldResults[0];u.$$(this.element).text(l.format(n,this.options.format)),u.$$(this.element).show()}else u.$$(this.element).hide()},t.ID="Aggregate",t.options={field:r.ComponentOptions.buildFieldOption({required:!0}),operation:r.ComponentOptions.buildStringOption({defaultValue:"sum"}),format:r.ComponentOptions.buildStringOption({defaultValue:"c0"})},t}(o.Component);t.Aggregate=d,a.Initialization.registerAutoCreateComponent(d)},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=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])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),r=n(34),s=n(11),a=n(3),u=n(5),l=n(13),c=n(6),p=n(17),d=n(1),h=n(10),f=n(7),m=n(8),y=n(2),g=n(519),v=n(19),b=function(e){function t(n,i,a){var u=e.call(this,n,t.ID,a)||this;u.options=i,u.partialQueries=[],u.lastSuggestions=[],u.resultsToBuildWith=[],u.options&&"omniboxSuggestionOptions"in u.options&&(u.options=o.extend(u.options,u.options.omniboxSuggestionOptions)),u.options=m.ComponentOptions.initComponentOptions(n,t,u.options);var l=function(e){var t=d.$$("div",{className:"magic-box-suggestion coveo-omnibox-selectable coveo-top-analytics-suggestion-row"});return(new p.AccessibleButton).withElement(t).withLabel(e.rawValue).build(),e.data&&(t.el.innerHTML=e.data),t.el.outerHTML};u.options.onSelect=u.options.onSelect||u.onRowSelection;var c={row:l};return u.suggestionForOmnibox=new g.SuggestionForOmnibox(c,function(e,t){u.options.onSelect.call(u,e,t)},function(e,t){u.onRowTab.call(u,e,t)}),u.bind.onRootElement(r.OmniboxEvents.populateOmnibox,function(e){return u.handlePopulateOmnibox(e)}),u.bind.onRootElement(s.QueryEvents.querySuccess,function(){return u.partialQueries=[]}),u}return i(t,e),t.doExport=function(){a.exportGlobally({AnalyticsSuggestions:t})},t.prototype.selectSuggestion=function(e){if(this.currentlyDisplayedSuggestions)if(isNaN(e))this.currentlyDisplayedSuggestions[e]&&d.$$(this.currentlyDisplayedSuggestions[e].element).trigger("click");else{var t=o.findWhere(this.currentlyDisplayedSuggestions,{pos:e});t&&d.$$(t.element).trigger("click")}},t.prototype.handlePopulateOmnibox=function(e){var t=this;u.Assert.exists(e);var n=new Promise(function(n,i){var r=t.usageAnalytics.getTopQueries({pageSize:t.options.numberOfSuggestions,queryText:e.completeQueryExpression.word});r.then(function(i){t.resultsToBuildWith=o.map(i,function(e){return{value:e}}),t.lastSuggestions=i,o.isEmpty(t.resultsToBuildWith)||""==e.completeQueryExpression.word||t.partialQueries.push(e.completeQueryExpression.word);var r=t.suggestionForOmnibox.buildOmniboxElement(t.resultsToBuildWith,e);t.currentlyDisplayedSuggestions={},r&&o.map(d.$$(r).findAll(".coveo-omnibox-selectable"),function(e,n){t.currentlyDisplayedSuggestions[d.$$(e).text()]={element:e,pos:n}}),n({element:r,zIndex:t.options.omniboxZIndex})}),r.catch(function(){n({element:void 0})})});e.rows.push({deferred:n})},t.prototype.onRowSelection=function(e,t){t.clear(),t.closeOmnibox(),this.queryStateModel.set(l.QueryStateModel.attributesEnum.q,e),this.usageAnalytics.logSearchEvent(this.getOmniboxAnalyticsEventCause(),{partialQueries:this.cleanCustomData(this.partialQueries),suggestionRanking:o.indexOf(o.pluck(this.resultsToBuildWith,"value"),e),suggestions:this.cleanCustomData(this.lastSuggestions),partialQuery:t.completeQueryExpression.word}),this.queryController.executeQuery()},t.prototype.onRowTab=function(e,t){t.clear(),t.closeOmnibox(),this.queryStateModel.set(l.QueryStateModel.attributesEnum.q,""+e),this.usageAnalytics.logCustomEvent(this.getOmniboxAnalyticsEventCause(),{partialQueries:this.cleanCustomData(this.partialQueries),suggestionRanking:o.indexOf(o.pluck(this.resultsToBuildWith,"value"),e),suggestions:this.cleanCustomData(this.lastSuggestions),partialQuery:t.completeQueryExpression.word},this.element)},t.prototype.cleanCustomData=function(e,t){void 0===t&&(t=256),e=o.compact(o.filter(e,function(e,t,n){return 0===t||e!==n[t-1]})),e=o.map(e,function(e){return e.replace(/;/g,"")});var n=[];return o.reduceRight(e,function(e,i){var o=e+i.length;return o<=t&&n.push(i),o},0),e=n.reverse(),e.join(";").length>=256?this.cleanCustomData(e,t-10):e.join(";")},t.prototype.getOmniboxAnalyticsEventCause=function(){return this.searchInterface instanceof v.StandaloneSearchInterface?h.analyticsActionCauseList.omniboxFromLink:h.analyticsActionCauseList.omniboxAnalytics},t.ID="AnalyticsSuggestions",t.options={omniboxZIndex:m.ComponentOptions.buildNumberOption({defaultValue:52,min:0}),headerTitle:m.ComponentOptions.buildLocalizedStringOption({localizedString:function(){return c.l("SuggestedQueries")}}),numberOfSuggestions:m.ComponentOptions.buildNumberOption({defaultValue:5,min:1})},t}(f.Component);t.AnalyticsSuggestions=b,y.Initialization.registerAutoCreateComponent(b)},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=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])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n(7),r=n(8),s=n(5),a=n(11),u=n(16),l=n(54),c=n(93),p=n(1),d=n(2),h=n(6),f=n(26),m=n(0),y=n(3);n(600);var g=n(12),v=n(42),b=n(13),S=n(41),C=function(e){function t(n,i,o,c){void 0===i&&(i={});var p=e.call(this,n,t.ID,o)||this;return p.element=n,p.options=i,p._window=c,p.storage=new S.SafeLocalStorage,p.options=r.ComponentOptions.initComponentOptions(n,t,i),s.Assert.exists(p.options.name),p.handlers=[],p._window=p._window||window,p.redirectCount=0,p.bind.onRootElement(a.QueryEvents.buildingCallOptions,p.handleBuildingCallOptions),p.bind.onRootElement(a.QueryEvents.queryError,p.handleQueryError),p.bind.onRootElement(u.InitializationEvents.nuke,p.handleNuke),p.bind.onRootElement(u.InitializationEvents.afterComponentsInitialization,function(e){return p.onAfterComponentsInitialization(e)}),p.bind.onRootElement(l.SettingsEvents.settingsPopulateMenu,function(e){e.menuData.push({text:h.l("Reauthenticate",p.options.caption),className:"coveo-authentication-provider",onOpen:function(){return p.authenticateWithProvider()},svgIcon:g.SVGIcons.icons.dropdownAuthenticate,svgIconClassName:"coveo-authentication-provider-svg"})}),p}return i(t,e),t.prototype.getHandshakeTokenFromUrl=function(){var e=this.getHashAfterAdjustingForAngular(),t=v.HashUtils.getValue("handshake_token",e);return"string"==typeof t?t:""},t.prototype.getHashAfterAdjustingForAngular=function(){var e=v.HashUtils.getHash();return this.isAngularHash?"#"+e.slice(2):e},Object.defineProperty(t.prototype,"isAngularHash",{get:function(){return 0===v.HashUtils.getHash().indexOf("#/")},enumerable:!0,configurable:!0}),t.prototype.onAfterComponentsInitialization=function(e){var n=this;if(t.handshakeInProgress){var i=this.waitForHandshakeToFinish().then(function(){return n.loadAccessTokenFromStorage()});return void e.defer.push(i)}var o=this.getHandshakeTokenFromUrl();if(!o)return this.loadAccessTokenFromStorage();if(this.shouldExchangeHandshakeToken){this.enableHandshakeInProgressFlag();var r=this.exchangeHandshakeToken(o).then(function(e){return n.storeAccessToken(e)}).then(function(){return n.removeHandshakeTokenFromUrl()}).then(function(){return n.loadAccessTokenFromStorage()}).catch(function(e){return n.logger.error(e)}).finally(function(){return n.disableHandshakeInProgressFlag()});e.defer.push(r)}},Object.defineProperty(t.prototype,"shouldExchangeHandshakeToken",{get:function(){var e=p.$$(this.element).getAttribute("data-tab"),t=v.HashUtils.getHash(),n=v.HashUtils.getValue(b.QUERY_STATE_ATTRIBUTES.T,t);return!e||e===n},enumerable:!0,configurable:!0}),t.prototype.exchangeHandshakeToken=function(e){var t=this.getAccessTokenFromStorage(),n=t?{handshakeToken:e,accessToken:t}:{handshakeToken:e};return this.queryController.getEndpoint().exchangeHandshakeToken(n)},t.prototype.storeAccessToken=function(e){this.storage.setItem(this.accessTokenStorageKey,e)},Object.defineProperty(t.prototype,"accessTokenStorageKey",{get:function(){return"coveo-auth-provider-access-token-"+this.queryController.getEndpoint().options.queryStringArguments.organizationId},enumerable:!0,configurable:!0}),t.prototype.waitForHandshakeToFinish=function(){return new Promise(function(e){var n=setInterval(function(){t.handshakeInProgress||(clearInterval(n),e())},100)})},t.prototype.enableHandshakeInProgressFlag=function(){t.handshakeInProgress=!0},t.prototype.disableHandshakeInProgressFlag=function(){t.handshakeInProgress=!1},t.prototype.removeHandshakeTokenFromUrl=function(){var e=this.getHashAfterAdjustingForAngular(),t=this.getHandshakeTokenFromUrl(),n="handshake_token="+t,i=e.substr(1).split("&"),o=i.filter(function(e){return e!==n}).join("&"),r=this.isAngularHash?"/"+o:o;this._window.history.replaceState(null,"","#"+r)},t.prototype.loadAccessTokenFromStorage=function(){var e=this.getAccessTokenFromStorage();e&&this.queryController.getEndpoint().accessToken.updateToken(e)},t.prototype.getAccessTokenFromStorage=function(){return this.storage.getItem(this.accessTokenStorageKey)},t.prototype.handleBuildingCallOptions=function(e){e.options.authentication.push(this.options.name)},t.prototype.handleQueryError=function(e){var t=this.getAccessTokenFromStorage(),n=this.shouldClearTokenFollowingErrorEvent(e);if(t&&n)return this.storage.removeItem(this.accessTokenStorageKey),void this._window.location.reload();var i=e.error;i.isMissingAuthentication&&i.provider===this.options.name&&this.redirectCount<2&&-1!==this.redirectCount?(++this.redirectCount,this.authenticateWithProvider()):(this.logger.error("The AuthenticationProvider is in a redirect loop. This may be due to a back-end configuration problem."),this.redirectCount=-1)},t.prototype.shouldClearTokenFollowingErrorEvent=function(e){var t=["InvalidTokenException","ExpiredTokenException","InvalidAuthenticationProviderException"],n=e.error.name;return-1!==t.indexOf(n)},t.prototype.authenticateWithProvider=function(){this.options.useIFrame?this.authenticateWithIFrame():this.redirectToAuthenticationProvider()},t.prototype.redirectToAuthenticationProvider=function(){this.logger.info("Redirecting to authentication provider "+this.options.name),this._window.location.href=this.getAuthenticationProviderUriForRedirect()},t.prototype.authenticateWithIFrame=function(){this.logger.info("Using iframe to retrieve authentication for provider "+this.options.name);var e,t=p.$$("iframe",{src:this.getAuthenticationProviderUriForIFrame()}).el;e=this.options.showIFrame?this.createPopupForVisibleIFrame(t):this.createPopupForWaitMessage(t);var n=this.createHandler(e,t);p.$$(this._window).one("message",n),this.handlers.push(n)},t.prototype.createHandler=function(e,t){var n=this;return function(){p.$$(t).detach(),n.logger.info("Got authentication for provider "+n.options.name+"; retrying query."),e.close(),n.queryController.executeQuery()}},t.prototype.handleNuke=function(){var e=this;m.each(this.handlers,function(t){return p.$$(e._window).off("message",t)})},t.prototype.createPopupForWaitMessage=function(e){var t=p.$$("div",{className:"coveo-waiting-for-authentication-popup"},c.DomUtils.getBasicLoadingAnimation()).el;return p.$$(e).hide(),document.body.appendChild(e),f.ModalBox.open(t,{title:h.l("Authenticating",this.options.caption),sizeMod:"small",body:this.searchInterface.options.modalContainer}),f.ModalBox},t.prototype.createPopupForVisibleIFrame=function(e){p.$$(e).addClass("coveo-authentication-iframe");var t=p.$$("div",{},e).el;return f.ModalBox.open(t,{title:h.l("Authenticating",this.options.caption),className:"coveo-authentication-popup",sizeMod:"big",body:this.searchInterface.options.modalContainer}),f.ModalBox},t.prototype.getAuthenticationProviderUriForRedirect=function(){return this.queryController.getEndpoint().getAuthenticationProviderUri(this.options.name,this._window.location.href,void 0)},t.prototype.getAuthenticationProviderUriForIFrame=function(){return this.queryController.getEndpoint().getAuthenticationProviderUri(this.options.name,void 0,"success")},t.ID="AuthenticationProvider",t.handshakeInProgress=!1,t.doExport=function(){y.exportGlobally({AuthenticationProvider:t})},t.options={name:r.ComponentOptions.buildStringOption(),caption:r.ComponentOptions.buildStringOption({postProcessing:function(e,t){return e||t.name}}),useIFrame:r.ComponentOptions.buildBooleanOption({defaultValue:!1,alias:["useIframe"]}),showIFrame:r.ComponentOptions.buildBooleanOption({defaultValue:!0,alias:["showIframe"],depend:"useIFrame"})},t}(o.Component);t.AuthenticationProvider=C,d.Initialization.registerAutoCreateComponent(C)},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=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])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0}),n(601);var o=n(26),r=n(3),s=n(1),a=n(4),u=n(7),l=n(8),c=n(2),p=n(185),d=n(17),h=function(e){function t(n,i,r,s,u,p){void 0===p&&(p=o.ModalBox);var d=e.call(this,n,t.ID,r)||this;d.element=n,d.options=i,d.result=s,d._window=u,d.ModalBox=p,d.options=l.ComponentOptions.initComponentOptions(n,t,i),d._window=d._window||window;var h="";return d.options.overlayColor&&(h+="linear-gradient("+d.options.overlayColor+", "+(d.options.overlayGradient?"rgba(0,0,0,0)":d.options.overlayColor)+"), "),h+="url('"+(d.options.imageUrl||a.Utils.getFieldValue(s,d.options.imageField))+"') center center",d.element.style.background=h,d.element.style.backgroundSize="cover",c.Initialization.automaticallyCreateComponentsInsideResult(n,s),d.configureSpecialBackdropActions(),d}return i(t,e),t.prototype.configureSpecialBackdropActions=function(){if(a.Utils.getFieldValue(this.result,"ytthumbnailurl")){var e=new p.YouTubeThumbnail(s.$$("div").el,{embed:!0},this.getBindings(),this.result,this.ModalBox,this.element);(new d.AccessibleButton).withElement(this.element).withLabel(this.result.title).withSelectAction(function(t){s.$$(t.target).hasClass("CoveoResultLink")||e.openResultLink()}).build()}},t.ID="Backdrop",t.doExport=function(){r.exportGlobally({Backdrop:t})},t.options={imageUrl:l.ComponentOptions.buildStringOption(),imageField:l.ComponentOptions.buildFieldOption(),overlayColor:l.ComponentOptions.buildColorOption(),overlayGradient:l.ComponentOptions.buildBooleanOption({defaultValue:!1,depend:"overlayColor"})},t}(u.Component);t.Backdrop=h,c.Initialization.registerAutoCreateComponent(h)},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=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])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n(8),r=n(2),s=n(119),a=n(22),u=n(5),l=n(1),c=n(0),p=n(3),d=function(e){function t(n,i,r,s){var a=e.call(this,n,o.ComponentOptions.initComponentOptions(n,t,i),r,s,t.ID)||this;return a.options=i,c.isString(a.options.colors)&&(a.options.colors=t.parseColors(a.options.colors)),null==a.options.colors.values&&(a.options.colors.values={}),a}return i(t,e),t.parseColors=function(e){if(e){if(t.colorsRegex.test(e)){var n={values:{}},i=a.StringUtils.match(e,t.colorRegex);return c.each(i,function(e){var t=e[1],i=e[2];null!=t?n.values[t.replace(/\\(:|;)/g,"$1")]={icon:i}:n.icon=i}),n}try{return JSON.parse(e)}catch(t){u.Assert.fail("Invalid colors for badge '"+e+"'")}}return{}},t.prototype.getColor=function(e){void 0===e&&(e="");var t=c.find(c.keys(this.options.colors.values),function(t){return e.toLowerCase()==t.toLowerCase()}),n=t?this.options.colors.values[t]:{};return{icon:n.icon||this.options.colors.icon,text:n.text||this.options.colors.text}},t.prototype.renderOneValue=function(t){var n=e.prototype.renderOneValue.call(this,t);l.$$(n).addClass("coveo-value");var i=this.getColor(t),o=l.$$("span",{className:"coveo-badge-icon"}).el;null!=i.icon&&(o.style.color=i.icon);var r=l.$$("span",{className:"coveo-badge-label"},n.innerHTML).el;return null!=i.text&&(r.style.color=i.text),l.$$(n).empty(),n.appendChild(o),n.appendChild(r),n},t.prototype.prependTextCaptionToDom=function(){},t.ID="Badge",t.doExport=function(){p.exportGlobally({Badge:t})},t.options={colors:o.ComponentOptions.buildCustomOption(function(e){return t.parseColors(e)},{defaultValue:{values:{}}}),textCaption:o.ComponentOptions.buildLocalizedStringOption()},t.parent=s.FieldValue,t.colorRegex=/(?:\s*((?:[^:;]|\\[;:])*)\s*:\s*)?(\w+|#[A-Fa-f0-9]{6}|#[A-Fa-f0-9]{3})/g,t.colorsRegex=new RegExp("^(\\s*"+t.colorRegex.source+"\\s*;)*(\\s*"+t.colorRegex.source+")?\\s*$"),t}(s.FieldValue);t.Badge=d,d.options=c.omit(d.options,"textCaption"),r.Initialization.registerAutoCreateComponent(d)},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=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])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0}),n(602);var o=n(0),r=n(35),s=n(16),a=n(11),u=n(3),l=n(6),c=n(17),p=n(1),d=n(10),h=n(7),f=n(8),m=n(2),y=function(e){function t(n,i,o){var a=e.call(this,n,t.ID,o)||this;return a.element=n,a.options=i,a.options=f.ComponentOptions.initComponentOptions(n,t,i),a.bind.oneRootElement(s.InitializationEvents.afterInitialization,function(){return a.handleAfterInitialization()}),a.bind.onRootElement(r.BreadcrumbEvents.redrawBreadcrumb,function(){return a.redrawBreadcrumb()}),a.element.style.display="none",a.element.setAttribute("tabindex","-1"),a.addDefaultAccessibilityAttributes(),a}return i(t,e),t.prototype.getBreadcrumbs=function(){var e={breadcrumbs:[]};return this.bind.trigger(this.root,r.BreadcrumbEvents.populateBreadcrumb,e),this.logger.debug("Retrieved breadcrumbs",e.breadcrumbs),o.isEmpty(e.breadcrumbs)&&!o.isEmpty(this.lastBreadcrumbs)&&this.focusFirstEnabledResultList(),this.lastBreadcrumbs=e.breadcrumbs,e.breadcrumbs},t.prototype.clearBreadcrumbs=function(){var e={};this.bind.trigger(this.root,r.BreadcrumbEvents.clearBreadcrumb,e),this.logger.debug("Clearing breadcrumbs"),this.usageAnalytics.logSearchEvent(d.analyticsActionCauseList.breadcrumbResetAll,{}),this.queryController.executeQuery()},t.prototype.drawBreadcrumb=function(e){var t=this;p.$$(this.element).empty(),0!=e.length?this.element.style.display="":this.element.style.display="none";var n=document.createElement("div");p.$$(n).addClass("coveo-breadcrumb-items"),this.element.appendChild(n),o.each(e,function(e){var t=e.element;p.$$(t).addClass("coveo-breadcrumb-item"),n.appendChild(t)});var i=p.$$("div",void 0,l.l("ClearAllFilters")).el,r=p.$$("div",{className:"coveo-breadcrumb-clear-all"},i).el;(new c.AccessibleButton).withElement(r).withSelectAction(function(){return t.clearBreadcrumbs()}).withOwner(this.bind).withoutLabelOrTitle().build(),this.element.appendChild(r)},t.prototype.redrawBreadcrumb=function(){this.lastBreadcrumbs?this.drawBreadcrumb(this.lastBreadcrumbs):this.drawBreadcrumb(this.getBreadcrumbs())},t.prototype.handleDeferredQuerySuccess=function(){this.drawBreadcrumb(this.getBreadcrumbs())},t.prototype.handleQueryError=function(){this.drawBreadcrumb(this.getBreadcrumbs())},t.prototype.handleAfterInitialization=function(){var e=this;this.bind.onRootElement(a.QueryEvents.deferredQuerySuccess,function(){return e.handleDeferredQuerySuccess()}),this.bind.onRootElement(a.QueryEvents.queryError,function(){return e.handleQueryError()})},t.prototype.focusFirstEnabledResultList=function(){var e=this.searchInterface.getComponents("ResultList"),t=o.find(e,function(e){return!1===e.disabled});t&&p.$$(t.element).focus(!0)},t.prototype.addDefaultAccessibilityAttributes=function(){this.element.getAttribute("role")||this.element.setAttribute("role","navigation"),this.element.getAttribute("aria-label")||this.element.setAttribute("aria-label",l.l("Breadcrumb"))},t.ID="Breadcrumb",t.options={},t.doExport=function(){u.exportGlobally({Breadcrumb:t})},t}(h.Component);t.Breadcrumb=y,m.Initialization.registerAutoCreateComponent(y)},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=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])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n(7),r=n(8),s=n(2),a=n(5),u=n(1),l=n(25),c=n(0),p=n(3);n(603);var d=n(12),h=n(15),f=function(e){function t(n,i,o,s){var l=e.call(this,n,t.ID,o)||this;return l.element=n,l.options=i,l.result=s,l.removedTabIndexElements=[],l.options=r.ComponentOptions.initComponentOptions(n,t,i),l.parentResult=u.$$(l.element).closest("CoveoResult"),a.Assert.check(void 0!==l.parentResult,"ActionBar needs to be a child of a Result"),l.options.hidden?(u.$$(l.parentResult).addClass("coveo-clickable"),l.appendArrow(),l.bindEvents(),c.forEach(u.$$(l.element).findAll("*"),function(e){e.hasAttribute("tabindex")&&"0"==e.getAttribute("tabindex")&&(l.removedTabIndexElements.push(e),e.removeAttribute("tabindex"))})):(l.element.style.transition="none",l.element.style.transform="none"),l}return i(t,e),t.prototype.show=function(){u.$$(this.element).addClass("coveo-opened"),c.forEach(this.removedTabIndexElements,function(e){e.setAttribute("tabindex","0")})},t.prototype.hide=function(){u.$$(this.element).removeClass("coveo-opened"),c.forEach(this.removedTabIndexElements,function(e){e.removeAttribute("tabindex")})},t.prototype.bindEvents=function(){var e=this;u.$$(this.parentResult).on("click",function(){return e.show()}),u.$$(this.parentResult).on("mouseleave",function(){return e.hide()}),u.$$(this.element).on("focusin",function(){return e.show()}),u.$$(this.element).on("focusout",function(){return e.hide()}),this.options.openOnMouseOver&&u.$$(this.arrowContainer).on("mouseenter",function(){return e.show()})},t.prototype.appendArrow=function(){var e=this;this.arrowContainer=u.$$("div",{className:"coveo-card-action-bar-arrow-container",tabindex:0}).el,this.bind.on(this.arrowContainer,"keyup",l.KeyboardUtils.keypressAction(l.KEYBOARD.ENTER,function(){return e.show()}));var t=u.$$("span",{className:"coveo-icon coveo-card-action-bar-arrow-icon"},d.SVGIcons.icons.arrowUp);h.SVGDom.addClassToSVGInContainer(t.el,"coveo-card-action-bar-arrow-svg"),this.arrowContainer.appendChild(t.el),this.parentResult.appendChild(this.arrowContainer)},t.ID="CardActionBar",t.doExport=function(){p.exportGlobally({CardActionBar:t})},t.options={hidden:r.ComponentOptions.buildBooleanOption({defaultValue:!0}),openOnMouseOver:r.ComponentOptions.buildBooleanOption({defaultValue:!0,depend:"hidden"})},t}(o.Component);t.CardActionBar=f,s.Initialization.registerAutoCreateComponent(f)},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=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])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n(7),r=n(8),s=n(2),a=n(604),u=n(1),l=n(5),c=n(25),p=n(3);n(605);var d=n(12),h=n(15),f=n(4),m=n(6),y=function(e){function t(n,i,o){var s=e.call(this,n,t.ID,o)||this;return s.element=n,s.options=i,s.options=r.ComponentOptions.initComponentOptions(n,t,i),s.parentCard=u.$$(s.element).closest(".CoveoResult"),l.Assert.exists(s.parentCard),u.$$(s.parentCard).addClass("coveo-with-card-overlay"),s.createOverlay(),s.createButton(s.element),s.closeOverlay(),s}return i(t,e),t.prototype.toggleOverlay=function(e){void 0!==e?e?this.openOverlay():this.closeOverlay():u.$$(this.overlay).hasClass("coveo-opened")?this.closeOverlay():this.openOverlay()},t.prototype.openOverlay=function(){u.$$(this.overlay).removeClass("coveo-hidden-for-tab-nav"),u.$$(this.overlay).addClass("coveo-opened"),u.$$(this.parentCard).addClass("coveo-card-overlay-opened"),this.bind.trigger(this.element,a.CardOverlayEvents.openCardOverlay)},t.prototype.closeOverlay=function(){u.$$(this.overlay).addClass("coveo-hidden-for-tab-nav"),u.$$(this.overlay).removeClass("coveo-opened"),u.$$(this.parentCard).removeClass("coveo-card-overlay-opened"),this.bind.trigger(this.element,a.CardOverlayEvents.closeCardOverlay)},t.prototype.createOverlay=function(){var e=this;this.overlay=u.$$("div",{className:"coveo-card-overlay"}).el;var t=u.$$("div",{className:"coveo-card-overlay-header"}).el;this.createButton(t),this.overlay.appendChild(t);for(var n=u.$$("div",{className:"coveo-card-overlay-body"}).el;this.element.childNodes.length>0;)n.appendChild(this.element.firstChild);this.overlay.appendChild(n);var i=u.$$("span",{className:"coveo-icon coveo-open-card-overlay"},d.SVGIcons.icons.arrowDown);h.SVGDom.addClassToSVGInContainer(i.el,"coveo-open-card-overlay-svg");var o=u.$$("div",{className:"coveo-card-overlay-footer",tabindex:"0"},i.el);o.on("click",function(){return e.toggleOverlay(!1)}),this.bind.on(o.el,"keyup",c.KeyboardUtils.keypressAction(c.KEYBOARD.ENTER,function(){return e.toggleOverlay(!1)})),this.overlay.appendChild(o.el),this.parentCard.appendChild(this.overlay)},t.prototype.createButton=function(e){var t=this;if(this.options.icon){var n=u.$$("span",{className:"coveo-icon "},d.SVGIcons.icons[this.options.icon]).el;e.appendChild(n),h.SVGDom.addClassToSVGInContainer(e,"coveo-"+f.Utils.toDashCase(this.options.icon)+"-svg")}e.appendChild(u.$$("span",{className:"coveo-label"},this.options.title).el),e.setAttribute("tabindex","0"),u.$$(e).on("click",function(){return t.toggleOverlay()}),this.bind.on(e,"keyup",c.KeyboardUtils.keypressAction(c.KEYBOARD.ENTER,function(){return t.toggleOverlay()}))},t.ID="CardOverlay",t.doExport=function(){p.exportGlobally({CardOverlay:t})},t.options={title:r.ComponentOptions.buildLocalizedStringOption({required:!0,localizedString:function(){return m.l("NoTitle")}}),icon:r.ComponentOptions.buildIconOption()},t}(o.Component);t.CardOverlay=y,s.Initialization.registerAutoCreateComponent(y)},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=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])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n(2),r=n(8),s=n(7),a=n(4),u=n(1),l=n(6),c=n(224),p=n(3),d=function(e){function t(n,i,o,s){var l=e.call(this,n,t.ID,o)||this;if(l.element=n,l.options=i,l.bindings=o,l.result=s,l.options=r.ComponentOptions.initComponentOptions(n,t,i),!a.Utils.isNullOrUndefined(a.Utils.getFieldValue(s,"sflikedby"))&&!a.Utils.isNullOrUndefined(a.Utils.getFieldValue(s,"sflikedbyid"))){var c=a.Utils.getFieldValue(s,"sflikedby").split(";"),p=a.Utils.getFieldValue(s,"sflikedbyid").split(";"),d=u.$$("div",{className:"coveo-chatter-result-box-row"});u.$$(n).append(d.el);var h=u.$$("div",{className:"coveo-sprites-common-thumbup_inactive coveo-chatter-result-box-icon"});d.append(h.el);var f=u.$$("div",{className:"coveo-chatter-result-likes"});d.append(f.el),l.renderLikesList(f.el,s,c,p,l.options.nbLikesToRender)}return l}return i(t,e),t.prototype.renderLikesList=function(e,t,n,i,o){for(var r=this,s=u.$$("div"),a=0;a<i.length-1&&(0==o||a<o);a++)s.append(this.renderLikeLink(t,n[a],i[a])),(0==o||a<o-1)&&a<i.length-2?s.append(u.$$("span",{},", ").el):a<i.length-1&&s.append(u.$$("span",{}," "+l.l("And").toLowerCase()+" ").el);if(0==o||i.length<=o)s.append(this.renderLikeLink(t,n[i.length-1],i[i.length-1]));else{var c=i.length-o,p=u.$$("a");p.text(" "+l.l("Others",c.toString(),c)),p.on("click",function(o){o.preventDefault(),u.$$(e).empty(),r.renderLikesList(e,t,n,i,0)}),s.append(p.el)}if(i.length>0){var d=u.$$("span");d.el.innerHTML=l.l("LikesThis",s.el.innerHTML,i.length),u.$$(e).append(d.el)}},t.prototype.renderLikeLink=function(e,t,n){var i=u.$$("a",{href:c.ChatterUtils.buildURI(e.clickUri,a.Utils.getFieldValue(e,"sffeeditemid"),n)});return i.text(t),i.el},t.ID="ChatterLikedBy",t.doExport=function(){p.exportGlobally({ChatterLikedBy:t})},t.options={nbLikesToRender:r.ComponentOptions.buildNumberOption({defaultValue:2,min:0}),openInPrimaryTab:r.ComponentOptions.buildBooleanOption({defaultValue:!1}),openInSubTab:r.ComponentOptions.buildBooleanOption({defaultValue:!0})},t}(s.Component);t.ChatterLikedBy=d,o.Initialization.registerAutoCreateComponent(d)},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=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])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n(7),r=n(4),s=n(224),a=n(6),u=n(2),l=n(1),c=n(3),p=function(e){function t(n,i,o,u){var c=e.call(this,n,t.ID,o)||this;if(c.element=n,c.options=i,c.bindings=o,c.result=u,!r.Utils.isNullOrUndefined(r.Utils.getFieldValue(u,"sfcontentversionid"))){var p=l.$$("div",{className:"coveo-chatter-result-box-row"});l.$$(n).append(p.el);var d=l.$$("div",{className:"coveo-sprites-common-system coveo-chatter-result-box-icon"});p.append(d.el);var h=l.$$("a",{href:s.ChatterUtils.buildURI(u.clickUri,r.Utils.getFieldValue(u,"sffeeditemid"),r.Utils.getFieldValue(u,"sfcontentversionid"))});p.append(h.el);var f=r.Utils.getFirstAvailableFieldValue(u,["sfcontentfilename","sftitle","sf_title"]);r.Utils.isNullOrUndefined(f)?h.text(a.l("ShowAttachment")):h.text(f)}return c}return i(t,e),t.ID="ChatterPostAttachment",t.doExport=function(){c.exportGlobally({ChatterPostAttachment:t})},t}(o.Component);t.ChatterPostAttachment=p,u.Initialization.registerAutoCreateComponent(p)},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=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])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n(7),r=n(8),s=n(224),a=n(2),u=n(6),l=n(4),c=n(1),p=n(3),d=function(e){function t(n,i,o,s){var a=e.call(this,n,t.ID,o)||this;if(a.element=n,a.options=i,a.bindings=o,a.result=s,a.options=r.ComponentOptions.initComponentOptions(n,t,i),null!=l.Utils.getFieldValue(a.result,"sfcreatedbyname")){var p=c.$$("span");if(p.text((a.options.useFromInstead?u.l("From"):u.l("PostedBy"))+" "),c.$$(n).append(p.el),c.$$(n).append(a.renderLink(l.Utils.getFieldValue(a.result,"sfcreatedbyname"),l.Utils.getFieldValue(a.result,"sfcreatedbyid"))),a.options.enablePostedOn&&!l.Utils.isNullOrUndefined(l.Utils.getFieldValue(a.result,"sfparentname"))&&!l.Utils.isNullOrUndefined(l.Utils.getFieldValue(a.result,"sfparentid")))if(l.Utils.isNullOrUndefined(l.Utils.getFieldValue(a.result,"sfuserid"))||l.Utils.getFieldValue(a.result,"sfuserid")==l.Utils.getFieldValue(a.result,"sfinsertedbyid")){if(l.Utils.isNullOrUndefined(l.Utils.getFieldValue(a.result,"sfuserid"))){var d=c.$$("span");d.text(" "+u.l("On").toLowerCase()+" "),c.$$(n).append(d.el),c.$$(n).append(a.renderLink(l.Utils.getFieldValue(a.result,"sfparentname"),l.Utils.getFieldValue(a.result,"sfparentid")))}}else{var h=c.$$("span"),f=" "+u.l("OnFeed",a.renderLink(l.Utils.getFieldValue(a.result,"sfparentname"),l.Utils.getFieldValue(a.result,"sfparentid")).outerHTML);h.el.innerHTML=f,c.$$(n).append(h.el)}}return a}return i(t,e),t.prototype.renderLink=function(e,t){var n=c.$$("a",{href:s.ChatterUtils.buildURI(this.result.clickUri,l.Utils.getFieldValue(this.result,"sffeeditemid"),t)});return n.text(e),s.ChatterUtils.bindClickEventToElement(n.el,this.options.openInPrimaryTab,this.options.openInSubTab)},t.ID="ChatterPostedBy",t.doExport=function(){p.exportGlobally({ChatterPostedBy:t})},t.options={enablePostedOn:r.ComponentOptions.buildBooleanOption({defaultValue:!0}),useFromInstead:r.ComponentOptions.buildBooleanOption({defaultValue:!1}),openInPrimaryTab:r.ComponentOptions.buildBooleanOption({defaultValue:!1}),openInSubTab:r.ComponentOptions.buildBooleanOption({defaultValue:!0})},t.fields=["sfcreatedbyname","sfcreatedbyid","sffeeditemid","sfuserid","sfinsertedbyid","sfparentid","sfparentname"],t}(o.Component);t.ChatterPostedBy=d,a.Initialization.registerAutoCreateComponent(d)},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=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])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n(7),r=n(4),s=n(2),a=n(1),u=n(3),l=function(e){function t(n,i,o,s){var u=e.call(this,n,t.ID,o)||this;if(u.element=n,u.options=i,u.bindings=o,u.result=s,!r.Utils.isNullOrUndefined(r.Utils.getFieldValue(u.result,"coveochatterfeedtopics"))){var l=a.$$("div",{className:"coveo-chatter-result-box-row"}),c=r.Utils.getFieldValue(s,"coveochatterfeedtopics").split(";"),p=a.$$("div",{className:"coveo-sprites-common-tagging_tag coveo-chatter-result-box-icon"});l.append(p.el);for(var d=0;d<c.length;d++){var h=a.$$("span");if(h.text(c[d]),l.append(h.el),d<c.length-1){var f=a.$$("span");f.text(", "),l.append(f.el)}}a.$$(n).append(l.el)}return u}return i(t,e),t.ID="ChatterTopic",t.doExport=function(){u.exportGlobally({ChatterTopic:t})},t}(o.Component);t.ChatterTopic=l,s.Initialization.registerAutoCreateComponent(l)},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=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])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0}),n(606);var o=n(0),r=n(3),s=n(11),a=n(5),u=n(13),l=n(6),c=n(1),p=n(22),d=n(4),h=n(10),f=n(7),m=n(8),y=n(2),g=function(e){function t(n,i,o){var r=e.call(this,n,t.ID,o)||this;return r.element=n,r.options=i,r.bindings=o,r.options=m.ComponentOptions.initComponentOptions(n,t,i),a.Assert.exists(n),a.Assert.exists(r.options),r.hideNext=!0,r.correctedTerm=null,r.bind.onRootElement(s.QueryEvents.buildingQuery,r.handlePrepareQueryBuilder),r.bind.onRootElement(s.QueryEvents.querySuccess,r.handleProcessNewQueryResults),r.bind.onRootElement(s.QueryEvents.noResults,r.handleNoResults),r.bind.onRootElement(s.QueryEvents.newQuery,r.handleNewQuery),c.$$(r.element).hide(),r}return i(t,e),t.prototype.doQueryWithCorrectedTerm=function(){var e=this;a.Assert.exists(this.correctedTerm),this.queryStateModel.set(u.QueryStateModel.attributesEnum.q,this.correctedTerm),this.queryController.deferExecuteQuery({beforeExecuteQuery:function(){return e.usageAnalytics.logSearchEvent(h.analyticsActionCauseList.didyoumeanClick,{})}})},t.prototype.handleNewQuery=function(){this.hideNext?(c.$$(this.element).empty(),c.$$(this.element).hide(),this.correctedTerm=null):this.hideNext=!0},t.prototype.handlePrepareQueryBuilder=function(e){a.Assert.exists(e),e.queryBuilder.enableDidYouMean=!0},t.prototype.handleNoResults=function(e){if(d.Utils.isNonEmptyArray(e.results.queryCorrections)&&!e.searchAsYouType&&this.options.enableAutoCorrection){var t=this.queryStateModel.get(u.QueryStateModel.attributesEnum.q);this.correctedTerm=e.results.queryCorrections[0].correctedQuery;var n=this.buildCorrectedSentence(e.results.queryCorrections[0]);this.queryStateModel.set(u.QueryStateModel.attributesEnum.q,e.results.queryCorrections[0].correctedQuery),this.searchInterface.historyManager.replaceState(this.queryStateModel.getAttributes()),e.retryTheQuery=!0,this.hideNext=!1;var i=c.$$("div",{className:"coveo-did-you-mean-no-results-for"}).el;i.innerHTML=l.l("noResultFor",'<span class="coveo-highlight coveo-did-you-mean-highlight">'+p.StringUtils.htmlEncode(t)+"</span>"),this.element.appendChild(i);var o=c.$$("div",{className:"coveo-did-you-mean-automatic-correct"}).el;o.innerHTML=l.l("autoCorrectedQueryTo",'<span class="coveo-highlight">'+n+"</span>"),this.element.appendChild(o),c.$$(this.element).show(),this.usageAnalytics.logSearchEvent(h.analyticsActionCauseList.didyoumeanAutomatic,{})}},t.prototype.handleProcessNewQueryResults=function(e){var t=this;a.Assert.exists(e),a.Assert.exists(e.results);var n=e.results;if(this.logger.trace("Received query results from new query",n),d.Utils.isNonEmptyArray(n.queryCorrections)){var i=this.buildCorrectedSentence(n.queryCorrections[0]);this.correctedTerm=n.queryCorrections[0].correctedQuery;var o=c.$$("button",{},i).el,r=c.$$("div",{className:"coveo-did-you-mean-suggestion"},l.l("didYouMean",o.outerHTML));this.element.appendChild(r.el);var s=r.find(o.tagName);c.$$(s).on("click",function(){return t.doQueryWithCorrectedTerm()}),c.$$(this.element).show()}},t.prototype.buildCorrectedSentence=function(e){var t=[],n=0;return o.each(e.wordCorrections,function(i){t.push(p.StringUtils.htmlEncode(e.correctedQuery.slice(n,i.offset))),n=i.offset,t.push("<span class='coveo-did-you-mean-word-correction'>"),t.push(p.StringUtils.htmlEncode(e.correctedQuery.slice(n,i.length+n))),t.push("</span>"),n=i.offset+i.length}),t.push(p.StringUtils.htmlEncode(e.correctedQuery.slice(n))),t.join("")},t.ID="DidYouMean",t.doExport=function(){r.exportGlobally({DidYouMean:t})},t.options={enableAutoCorrection:m.ComponentOptions.buildBooleanOption({defaultValue:!0})},t}(f.Component);t.DidYouMean=g,y.Initialization.registerAutoCreateComponent(g)},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=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])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),o=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))(function(o,r){function s(e){try{u(i.next(e))}catch(e){r(e)}}function a(e){try{u(i.throw(e))}catch(e){r(e)}}function u(e){e.done?o(e.value):new n(function(t){t(e.value)}).then(s,a)}u((i=i.apply(e,t||[])).next())})},r=this&&this.__generator||function(e,t){function n(e){return function(t){return i([e,t])}}function i(n){if(o)throw new TypeError("Generator is already executing.");for(;u;)try{if(o=1,r&&(s=r[2&n[0]?"return":n[0]?"throw":"next"])&&!(s=s.call(r,n[1])).done)return s;switch(r=0,s&&(n=[0,s.value]),n[0]){case 0:case 1:s=n;break;case 4:return u.label++,{value:n[1],done:!1};case 5:u.label++,r=n[1],n=[0];continue;case 7:n=u.ops.pop(),u.trys.pop();continue;default:if(s=u.trys,!(s=s.length>0&&s[s.length-1])&&(6===n[0]||2===n[0])){u=0;continue}if(3===n[0]&&(!s||n[1]>s[0]&&n[1]<s[3])){u.label=n[1];break}if(6===n[0]&&u.label<s[1]){u.label=s[1],s=n;break}if(s&&u.label<s[2]){u.label=s[2],u.ops.push(n);break}s[2]&&u.ops.pop(),u.trys.pop();continue}n=t.call(e,u)}catch(e){n=[6,e],r=0}finally{o=s=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}var o,r,s,a,u={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return a={next:n(0),throw:n(1),return:n(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a};Object.defineProperty(t,"__esModule",{value:!0});var s=n(200),a=n(137),u=n(3),l=n(1),c=n(10),p=n(7),d=n(8),h=n(2),f=n(30),m=n(607),y=n(608),g=n(609),v=function(e){function t(n,i,o){var r=e.call(this,n,t.ID,o)||this;return r.element=n,r.options=i,r.bindings=o,r.isFirstPositionResolved=!1,r.options=d.ComponentOptions.initComponentOptions(n,t,i),r.registerDistanceQuery(),r.bind.onRootElement(a.InitializationEvents.afterComponentsInitialization,function(e){return r.onAfterComponentsInitialization(e)}),r}return i(t,e),t.prototype.setPosition=function(e,t){this.enable(),this.latitude=e,this.longitude=t;var n={position:{latitude:e,longitude:t}};this.bind.trigger(this.element,s.DistanceEvents.onPositionResolved,n);var i=this.shouldTriggerQueryWhenPositionSet();this.isFirstPositionResolved=!0,i&&(this.sendAnalytics(),this.queryController.executeQuery())},t.prototype.getLastPositionRequest=function(){return o(this,void 0,void 0,function(){return r(this,function(e){switch(e.label){case 0:return this.lastPositionRequest?[4,this.lastPositionRequest]:[3,2];case 1:return e.sent(),[2,{latitude:this.latitude,longitude:this.longitude}];case 2:Promise.reject("No position request was executed yet."),e.label=3;case 3:return[2]}})})},t.prototype.sendAnalytics=function(){this.usageAnalytics.logSearchEvent(c.analyticsActionCauseList.positionSet,{})},t.prototype.shouldTriggerQueryWhenPositionSet=function(){return!this.queryController.firstQuery&&this.options.triggerNewQueryOnNewPosition},t.prototype.onAfterComponentsInitialization=function(e){var t={providers:this.getProvidersFromOptions()};this.bind.trigger(this.element,s.DistanceEvents.onResolvingPosition,t),this.lastPositionRequest=this.tryToSetPositionFromProviders(t.providers),this.options.cancelQueryUntilPositionResolved&&e.defer.push(this.lastPositionRequest)},t.prototype.tryToSetPositionFromProviders=function(e){return o(this,void 0,void 0,function(){var t,n;return r(this,function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,this.tryGetPositionFromProviders(e)];case 1:return t=i.sent(),t?this.setPosition(t.latitude,t.longitude):this.triggerDistanceNotSet(),[3,3];case 2:return n=i.sent(),this.logger.error("An error occurred while trying to resolve the current position.",n),this.triggerDistanceNotSet(),[3,3];case 3:return[2]}})})},t.prototype.getProvidersFromOptions=function(){var e=[];return this.options.useNavigator&&e.push(new y.NavigatorPositionProvider),this.options.googleApiKey&&e.push(new m.GoogleApiPositionProvider(this.options.googleApiKey)),this.options.longitudeValue&&this.options.latitudeValue&&e.push(new g.StaticPositionProvider(this.options.latitudeValue,this.options.longitudeValue)),e},t.prototype.tryGetPositionFromProviders=function(e){return o(this,void 0,void 0,function(){var t,n,i;return r(this,function(o){switch(o.label){case 0:if(!(e.length>0))return[3,5];t=e.shift(),o.label=1;case 1:return o.trys.push([1,3,,4]),[4,t.getPosition()];case 2:return n=o.sent(),n.latitude&&n.longitude?[2,n]:[3,4];case 3:return i=o.sent(),this.logger.warn("An error occurred while trying to resolve the position within a position provider.",i),[3,4];case 4:return[3,0];case 5:return[2]}})})},t.prototype.triggerDistanceNotSet=function(){this.isFirstPositionResolved=!0,this.logger.warn("None of the given position providers could resolve the current position. The distance field will not be calculated and the distance components will be disabled until the next call to 'setPosition'."),this.bind.trigger(this.element,s.DistanceEvents.onPositionNotResolved,{}),this.disable()},t.prototype.registerDistanceQuery=function(){var e=this;this.bind.onRootElement(a.QueryEvents.buildingQuery,function(t){if(e.isFirstPositionResolved&&t&&t.queryBuilder){var n={function:e.getConvertedUnitsFunction("dist("+e.options.latitudeField+", "+e.options.longitudeField+", "+e.latitude+", "+e.longitude+")"),fieldName:""+e.options.distanceField};t.queryBuilder.queryFunctions.push(n),e.enableDistanceComponents()}})},t.prototype.enableDistanceComponents=function(){var e=this;l.$$(this.root).findAll("."+this.options.disabledDistanceCssClass).forEach(function(t){try{t.classList.remove(e.options.disabledDistanceCssClass);var n=f.get(t);n&&n.enable()}catch(n){e.logger.error("Could not re-enable distance component.",n,t)}})},t.prototype.getConvertedUnitsFunction=function(e){return e+"/"+this.options.unitConversionFactor},t.ID="DistanceResources",t.doExport=function(){u.exportGlobally({DistanceResources:t})},t.options={distanceField:d.ComponentOptions.buildFieldOption({required:!0}),latitudeField:d.ComponentOptions.buildFieldOption({required:!0}),longitudeField:d.ComponentOptions.buildFieldOption({required:!0}),unitConversionFactor:d.ComponentOptions.buildNumberOption({defaultValue:1e3,validator:function(e){return!!e&&e>0}}),disabledDistanceCssClass:d.ComponentOptions.buildStringOption({defaultValue:"coveo-distance-disabled"}),latitudeValue:d.ComponentOptions.buildNumberOption({float:!0}),longitudeValue:d.ComponentOptions.buildNumberOption({float:!0}),googleApiKey:d.ComponentOptions.buildStringOption(),useNavigator:d.ComponentOptions.buildBooleanOption(),triggerNewQueryOnNewPosition:d.ComponentOptions.buildBooleanOption({defaultValue:!1}),cancelQueryUntilPositionResolved:d.ComponentOptions.buildBooleanOption({defaultValue:!0})},t}(p.Component);t.DistanceResources=v,h.Initialization.registerAutoCreateComponent(v)},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=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])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0}),n(610);var o=n(11),r=n(3),s=n(5),a=n(6),u=n(17),l=n(1),c=n(10),p=n(7),d=n(8),h=n(2),f=function(e){function t(n,i,r){var s=e.call(this,n,t.ID,r)||this;return s.element=n,s.options=i,s.options=d.ComponentOptions.initComponentOptions(n,t,i),s.container=l.$$("div",{className:"coveo-error-report-container"}),s.element.appendChild(s.container.el),s.options.showDetailedError&&(s.message=l.$$("div",{className:"coveo-error-report-message"}),s.container.append(s.message.el)),s.helpSuggestion=l.$$("div",{className:"coveo-error-report-help-suggestion"}),l.$$(s.element).hide(),s.bind.onRootElement(o.QueryEvents.newQuery,function(){return s.handleNewQuery()}),s.bind.onRootElement(o.QueryEvents.queryError,function(e){return s.handleQueryError(e)}),s}return i(t,e),t.prototype.back=function(){this.usageAnalytics.logCustomEvent(c.analyticsActionCauseList.errorBack,{},this.root),this.usageAnalytics.logSearchEvent(c.analyticsActionCauseList.errorBack,{}),history.back()},t.prototype.reset=function(){this.queryStateModel.reset(),this.usageAnalytics.logSearchEvent(c.analyticsActionCauseList.errorClearQuery,{}),this.usageAnalytics.logCustomEvent(c.analyticsActionCauseList.errorClearQuery,{},this.root),this.queryController.executeQuery()},t.prototype.retry=function(){this.usageAnalytics.logSearchEvent(c.analyticsActionCauseList.errorRetry,{}),this.usageAnalytics.logCustomEvent(c.analyticsActionCauseList.errorRetry,{},this.root),this.queryController.executeQuery()},t.prototype.buildOrGetTitleElements=function(){var e,t=l.$$(this.element).find(".coveo-error-report-title");t?e=l.$$(t):(e=l.$$("div",{className:"coveo-error-report-title"}),this.container.prepend(e.el));var n=e.find("h1");n||(n=l.$$("h1").el,e.append(n));var i=e.find("h2");return i||(i=l.$$("h2").el,e.append(i)),{title:e,h1:l.$$(n),h2:l.$$(i)}},t.prototype.setErrorTitle=function(e,t){var n={h1:e?a.l(e):a.l("OopsError"),h2:t?a.l(t):a.l("ProblemPersists")},i=this.buildOrGetTitleElements(),o=i.h1,r=i.h2;o&&r&&(l.$$(o).text(n.h1),l.$$(r).text(n.h2))},t.prototype.buildPrevious=function(){var e=this,t=l.$$("span",{className:"coveo-error-report-previous"},a.l("GoBack"));return(new u.AccessibleButton).withElement(t).withSelectAction(function(){return e.back()}).withLabel(a.l("GoBack")).build(),t.el},t.prototype.buildReset=function(){var e=this,t=l.$$("span",{className:"coveo-error-report-clear"},a.l("Reset"));return(new u.AccessibleButton).withElement(t).withSelectAction(function(){return e.reset()}).withLabel(a.l("Reset")).build(),t.el},t.prototype.buildRetry=function(){var e=this,t=l.$$("span",{className:"coveo-error-report-retry"},a.l("Retry"));return(new u.AccessibleButton).withElement(t).withSelectAction(function(){return e.retry()}).withLabel(a.l("Retry")).build(),t.el},t.prototype.handleNewQuery=function(){l.$$(this.element).hide();var e=this.buildOrGetTitleElements(),t=e.h1,n=e.h2;t.remove(),n.remove(),null!=this.closePopup&&this.closePopup()},t.prototype.handleQueryError=function(e){var t=this;if(s.Assert.exists(e),s.Assert.exists(e.error),e.endpoint.options.queryStringArguments.organizationId?this.organizationId=e.endpoint.options.queryStringArguments.organizationId:this.organizationId=a.l("CoveoOrganization"),!e.error.isMissingAuthentication){switch(e.error.name){case"NoEndpointsException":this.options.showDetailedError=!1,this.buildEndpointErrorElements("https://docs.coveo.com/en/331/"),this.setErrorTitle(a.l("NoEndpoints",this.organizationId),a.l("AddSources"));break;case"InvalidTokenException":this.options.showDetailedError=!1,this.buildEndpointErrorElements("https://docs.coveo.com/en/56/"),this.setErrorTitle(a.l("CannotAccess",this.organizationId),a.l("InvalidToken"));break;case"GroupByAndFacetBothExistingException":this.options.showDetailedError=!1,this.buildEndpointErrorElements("https://docs.coveo.com/en/2917"),this.setErrorTitle(void 0,a.l("GroupByAndFacetRequestsCannotCoexist"));break;case"OrganizationIsPausedException":this.options.showDetailedError=!1,this.buildEndpointErrorElements("https://docs.coveo.com/l6af0467"),this.setErrorTitle(a.l("OrganizationWillResume"),a.l("OrganizationIsPaused"));break;default:this.buildOptionsElement(),this.setErrorTitle()}if(this.options.showDetailedError){this.message.empty();var n=l.$$("span",{className:"coveo-error-report-more-info"},a.l("MoreInfo"));n.on("click",function(){n.empty(),t.message.el.appendChild(t.buildErrorInfo(e.error))}),this.message.el.appendChild(n.el)}l.$$(this.element).show()}},t.prototype.buildErrorInfo=function(e){var t=l.$$("div",{className:"coveo-error-info"}),n=l.$$("textarea",void 0,JSON.stringify(e,null,2));t.el.appendChild(n.el);var i=l.$$("div",{className:"coveo-error-info-label"},a.l("CopyPasteToSupport"));return t.el.appendChild(i.el),t.el},t.prototype.buildOptionsElement=function(){var e=this.container.find(".coveo-error-report-options");e&&l.$$(e).remove();var t=l.$$("div",{className:"coveo-error-report-options"});t.el.appendChild(this.buildPrevious()),t.el.appendChild(this.buildReset()),t.el.appendChild(this.buildRetry()),this.container.append(t.el)},t.prototype.buildEndpointErrorElements=function(e){void 0===e&&(e="https://docs.coveo.com/en/331/"),this.helpSuggestion.empty();var t=l.$$("a",{href:e,className:"coveo-error-report-help-link"});t.setHtml(a.l("CoveoOnlineHelp")),this.helpSuggestion.append(t.el),this.container.el.insertBefore(this.helpSuggestion.el,this.message.el)},t.ID="ErrorReport",t.doExport=function(){r.exportGlobally({ErrorReport:t})},t.options={showDetailedError:d.ComponentOptions.buildBooleanOption({defaultValue:!0})},t}(p.Component);t.ErrorReport=f,h.Initialization.registerAutoCreateComponent(f)},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=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])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n(7),r=n(8),s=n(5),a=n(68),u=n(2),l=n(3);n(611);var c=function(e){function t(n,i,o,u){var l=e.call(this,n,t.ID,o)||this;return l.element=n,l.options=i,l.bindings=o,l.result=u,l.options=r.ComponentOptions.initComponentOptions(n,t,i),l.result=l.result||l.resolveResult(),s.Assert.exists(l.result),l.element.innerHTML=a.HighlightUtils.highlightString(l.result.excerpt,l.result.excerptHighlights,null,"coveo-highlight"),l}return i(t,e),t.ID="Excerpt",t.doExport=function(){l.exportGlobally({Excerpt:t})},t}(o.Component);t.Excerpt=c,u.Initialization.registerAutoCreateComponent(c)},function(e,t,n){"use strict";function i(e){v=e}var o=this&&this.__extends||function(){var e=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])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),r=this&&this.__assign||Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e};Object.defineProperty(t,"__esModule",{value:!0});var s=n(7),a=n(8),u=n(54),l=n(10),c=n(2),p=n(6),d=n(0),h=n(3);n(612);var f=n(12),m=n(19),y=n(30),g=n(139),v=function(){return document.createElement("a")};t.setCreateAnchor=i;var b=function(e){function t(n,i,o,r){var s=e.call(this,n,t.ID,o)||this;return s.element=n,s.options=i,s.bindings=o,s._window=r,s._window=s._window||window,s.options=a.ComponentOptions.initComponentOptions(n,t,i),s.bind.onRootElement(u.SettingsEvents.settingsPopulateMenu,function(e){e.menuData.push({text:p.l("ExportToExcel"),className:"coveo-export-to-excel",tooltip:p.l("ExportToExcelDescription"),onOpen:function(){return s.download()},svgIcon:f.SVGIcons.icons.dropdownExport,svgIconClassName:"coveo-export-to-excel-svg"})}),s}return o(t,e),t.prototype.download=function(){var e=this,t=this.buildExcelQuery();this.logger.debug("Performing query following 'Export to Excel' click");var n=this.queryController.getEndpoint();this.usageAnalytics.logCustomEvent(l.analyticsActionCauseList.exportToExcel,{},this.element),n.fetchBinary(t).then(function(t){return e.downloadExcelFile(t)})},t.prototype.buildExcelQuery=function(){var e=this.queryController.getLastQuery();return e=d.omit(e,["numberOfResults","fieldsToInclude"]),this.options.fieldsToInclude&&(e.fieldsToInclude=this.options.fieldsToInclude),r({},e,{format:"xlsx",numberOfResults:this.options.numberOfResults})},t.prototype.downloadExcelFile=function(e){var t=new Blob([e],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}),n=this.buildExcelFileName();if(window.navigator.msSaveOrOpenBlob)return void window.navigator.msSaveOrOpenBlob(t,n);var i=URL.createObjectURL(t),o=v();o.href=i,o.download=n,o.click(),URL.revokeObjectURL(i)},t.prototype.buildExcelFileName=function(){var e=g().utc();return"query--"+e.format("YYYY")+"-"+e.format("MM")+"-"+e.format("DD")+"--"+e.format("HH")+"-"+e.format("mm")+"-"+e.format("ss")+".xlsx"},t.create=function(e,n,i){return new t(e,n,y.get(i,m.SearchInterface).getBindings())},t.ID="ExportToExcel",t.doExport=function(){h.exportGlobally({ExportToExcel:t})},t.options={numberOfResults:a.ComponentOptions.buildNumberOption({defaultValue:100,min:1}),fieldsToInclude:a.ComponentOptions.buildFieldsOption()},t}(s.Component);t.ExportToExcel=b,c.Initialization.registerAutoCreateComponent(b)},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=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])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0}),n(520);var o=n(0),r=n(34),s=n(3),a=n(5),u=n(13),l=n(1),c=n(4),p=n(10),d=n(7),h=n(8),f=n(2),m=n(519),y=function(e){function t(n,i,s){var u=e.call(this,n,t.ID,s)||this;u.options=i,u.options&&"omniboxSuggestionOptions"in u.options&&(u.options=o.extend(u.options,u.options.omniboxSuggestionOptions)),u.options=h.ComponentOptions.initComponentOptions(n,t,i),a.Assert.check(c.Utils.isCoveoField(u.options.field),u.options.field+" is not a valid field"),u.options.onSelect=u.options.onSelect||u.onRowSelection;var p,d=function(e){var t=l.$$("div",{className:"magic-box-suggestion coveo-omnibox-selectable coveo-top-field-suggestion-row"});return e.data&&(t.el.innerHTML=e.data),t.el.outerHTML};if(null==u.options.headerTitle)p={row:d};else{p={header:{template:function(){var e=l.$$("div",{className:"coveo-top-field-suggestion-header"}),t=l.$$("span",{className:"coveo-icon-top-field"}),n=l.$$("span",{className:"coveo-caption"});return u.options.headerTitle&&n.text(u.options.headerTitle),e.append(t.el),e.append(n.el),e.el.outerHTML},title:u.options.headerTitle},row:d}}return u.suggestionForOmnibox=new m.SuggestionForOmnibox(p,function(e,t){u.options.onSelect.call(u,e,t)},function(e,t){u.onRowTab(e,t)}),u.bind.onRootElement(r.OmniboxEvents.populateOmnibox,function(e){return u.handlePopulateOmnibox(e)}),u}return i(t,e),t.prototype.selectSuggestion=function(e){if(this.currentlyDisplayedSuggestions)if(isNaN(e))this.currentlyDisplayedSuggestions[e]&&l.$$(this.currentlyDisplayedSuggestions[e].element).trigger("click");else{var t=o.findWhere(this.currentlyDisplayedSuggestions,{pos:e});t&&l.$$(t.element).trigger("click")}},t.prototype.handlePopulateOmnibox=function(e){var t=this;a.Assert.exists(e);var n=e.completeQueryExpression.word,i=new Promise(function(i){t.queryController.getEndpoint().listFieldValues(t.buildListFieldValueRequest(n)).then(function(n){var r=t.suggestionForOmnibox.buildOmniboxElement(n,e);t.currentlyDisplayedSuggestions={},r?(o.map(l.$$(r).findAll(".coveo-omnibox-selectable"),function(e,n){t.currentlyDisplayedSuggestions[l.$$(e).text()]={element:e,pos:n}}),i({element:r,zIndex:t.options.omniboxZIndex})):i({element:void 0})}).catch(function(){i({element:void 0})})});e.rows.push({deferred:i})},t.prototype.onRowSelection=function(e,t){t.closeOmnibox(),this.queryStateModel.set(u.QueryStateModel.attributesEnum.q,e),this.usageAnalytics.logSearchEvent(p.analyticsActionCauseList.omniboxField,{}),this.queryController.executeQuery()},t.prototype.onRowTab=function(e,t){t.clear(),t.closeOmnibox(),this.queryStateModel.set(u.QueryStateModel.attributesEnum.q,""+e),this.usageAnalytics.logCustomEvent(p.analyticsActionCauseList.omniboxField,{},this.element)},t.prototype.buildListFieldValueRequest=function(e){return{field:this.options.field,ignoreAccents:!0,sortCriteria:"occurrences",maximumNumberOfValues:this.options.numberOfSuggestions,patternType:"Wildcards",pattern:"*"+e+"*",queryOverride:this.options.queryOverride}},t.ID="FieldSuggestions",t.doExport=function(){s.exportGlobally({FieldSuggestions:t})},t.options={field:h.ComponentOptions.buildFieldOption({required:!0}),queryOverride:h.ComponentOptions.buildQueryExpressionOption({defaultValue:""}),omniboxZIndex:h.ComponentOptions.buildNumberOption({defaultValue:51,min:0}),headerTitle:h.ComponentOptions.buildLocalizedStringOption(),numberOfSuggestions:h.ComponentOptions.buildNumberOption({defaultValue:5,min:1}),onSelect:h.ComponentOptions.buildCustomOption(function(){return null})},t}(d.Component);t.FieldSuggestions=y,f.Initialization.registerAutoCreateComponent(y)},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=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])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),o=this&&this.__assign||Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},r=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))(function(o,r){function s(e){try{u(i.next(e))}catch(e){r(e)}}function a(e){try{u(i.throw(e))}catch(e){r(e)}}function u(e){e.done?o(e.value):new n(function(t){t(e.value)}).then(s,a)}u((i=i.apply(e,t||[])).next())})},s=this&&this.__generator||function(e,t){function n(e){return function(t){return i([e,t])}}function i(n){if(o)throw new TypeError("Generator is already executing.");for(;u;)try{if(o=1,r&&(s=r[2&n[0]?"return":n[0]?"throw":"next"])&&!(s=s.call(r,n[1])).done)return s;switch(r=0,s&&(n=[0,s.value]),n[0]){case 0:case 1:s=n;break;case 4:return u.label++,{value:n[1],done:!1};case 5:u.label++,r=n[1],n=[0];continue;case 7:n=u.ops.pop(),u.trys.pop();continue;default:if(s=u.trys,!(s=s.length>0&&s[s.length-1])&&(6===n[0]||2===n[0])){u=0;continue}if(3===n[0]&&(!s||n[1]>s[0]&&n[1]<s[3])){u.label=n[1];break}if(6===n[0]&&u.label<s[1]){u.label=s[1],s=n;break}if(s&&u.label<s[2]){u.label=s[2],u.ops.push(n);break}s[2]&&u.ops.pop(),u.trys.pop();continue}n=t.call(e,u)}catch(e){n=[6,e],r=0}finally{o=s=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}var o,r,s,a,u={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return a={next:n(0),throw:n(1),return:n(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a};Object.defineProperty(t,"__esModule",{value:!0}),n(520);var a=n(0),u=n(34),l=n(3),c=n(62),p=n(201),d=n(1),h=n(122),f=n(10),m=n(7),y=n(8),g=n(2),v=n(618),b=function(e){function t(n,i,o){var r=e.call(this,n,t.ID,o)||this;return r.options=i,r.options=y.ComponentOptions.initComponentOptions(n,t,i),r.facetValueSuggestionsProvider=new v.FacetValueSuggestionsProvider(r.queryController,{field:r.options.field,expression:r.options.expression}),r.queryStateFieldFacetId="f:"+r.options.field,r.options.templateHelper||(r.options.templateHelper=t.defaultTemplate),d.$$(r.root).on(u.OmniboxEvents.populateOmniboxSuggestions,function(e,t){t.suggestions.push(r.getSuggestions(t.omnibox))}),r}return i(t,e),t.defaultTemplate=function(e,t){var n=e.keyword.html,i=h.DomUtils.highlight(e.value,"coveo-omnibox-hightlight"),o=this.options.displayEstimateNumberOfResults?h.DomUtils.highlight(" ("+c.l("ResultCount",e.numberOfResults.toString(),e.numberOfResults)+")","coveo-omnibox-suggestion-results-count",!0):"";return""+c.l("KeywordInCategory",n,i)+o},t.getQuerySuggestionKeywordFromText=function(e){return{text:e,html:h.DomUtils.highlight(e,"coveo-omnibox-hightlight")}},t.prototype.getSuggestions=function(e){return r(this,void 0,void 0,function(){var t,n;return s(this,function(i){switch(i.label){case 0:return 0==this.options.numberOfSuggestions?[2,[]]:(t=e.getText(),[4,this.getFacetValueSuggestions(t,e)]);case 1:return n=i.sent(),[2,n||[]]}})})},t.prototype.getQuerySuggestionsKeywords=function(e){return r(this,void 0,void 0,function(){var t;return s(this,function(n){switch(n.label){case 0:return this.options.useQuerySuggestions&&e.suggestionAddon?[4,e.suggestionAddon.getSuggestion()]:[3,2];case 1:return t=n.sent(),[2,t.map(function(e){var t=e.text,n=e.html;return{text:t||"",html:n}})];case 2:return[2,[]]}})})},t.prototype.getFacetValueSuggestions=function(e,n){return r(this,void 0,void 0,function(){var i,o,r;return s(this,function(s){switch(s.label){case 0:return i=this.options.useValueFromSearchbox?[t.getQuerySuggestionKeywordFromText(e)]:[],[4,this.getQuerySuggestionsKeywords(n)];case 1:return o=s.sent(),r=a.unique(i.concat(o).filter(function(e){return""!=e.text}),function(e){return e.text}),0===r.length?[2,[]]:[2,this.getSuggestionsForWords(r,n)]}})})},t.prototype.getSuggestionsForWords=function(e,t){return r(this,void 0,void 0,function(){var n,i,o,r,a=this;return s(this,function(s){switch(s.label){case 0:return s.trys.push([0,2,,3]),[4,this.facetValueSuggestionsProvider.getSuggestions(e)];case 1:return n=s.sent(),this.logger.debug("FacetValue Suggestions Results",n),i=this.queryStateModel.get(this.queryStateFieldFacetId)||[],o=n.filter(function(e){return a.isSuggestionRowAlreadyCheckedInFacet(e,i)}),[2,this.rankSuggestionRows(o).map(function(e){return a.mapFacetValueSuggestion(e,t)})];case 2:return r=s.sent(),this.logger.error(r),[2,[]];case 3:return[2]}})})},t.prototype.isSuggestionRowAlreadyCheckedInFacet=function(e,t){return!t.some(function(t){return t==e.value})},t.prototype.rankSuggestionRows=function(e){var t=e.sort(function(e,t){return t.score.distanceFromTotalForField-e.score.distanceFromTotalForField}).slice(),n=Math.ceil(this.options.numberOfSuggestions/2),i=-Math.floor(this.options.numberOfSuggestions/2),o=t.splice(0,n);if(0!=i){var r=t.slice(i);return o.concat(r)}return o},t.prototype.mapFacetValueSuggestion=function(e,t){var n=this,i={html:this.buildDisplayNameForRow(e,t),text:e.keyword.text},o=this.options.isCategoryField?e.value.split(this.options.categoryFieldDelimitingCharacter):[e.value];return i.advancedQuery=o.map(function(e){return n.options.field+'=="'+e+'"'}).join(" AND "),i.onSelect=function(){return n.onSuggestionSelected(i,o,t)},i},t.prototype.buildDisplayNameForRow=function(e,n){try{return this.options.templateHelper.call(this,e,n)}catch(i){return this.logger.error("Could not apply template from options for the given row. Will use default template.",i,e,n),t.defaultTemplate.call(this,e,n)}},t.prototype.onSuggestionSelected=function(e,t,n){n.setText(e.text);var i=o({},this.queryStateModel.get(p.QueryStateModel.attributesEnum.fv)),r=i[this.options.field.toString()]||[];i[this.options.field.toString()]=r.concat(t),this.queryStateModel.set(p.QueryStateModel.attributesEnum.fv,i),n.magicBox.blur(),this.usageAnalytics.logSearchEvent(f.analyticsActionCauseList.omniboxField,{}),this.queryController.executeQuery()},t.ID="FacetValueSuggestions",t.doExport=function(){l.exportGlobally({FacetValueSuggestions:t})},t.options={field:y.ComponentOptions.buildFieldOption({required:!0}),numberOfSuggestions:y.ComponentOptions.buildNumberOption({defaultValue:5,min:1}),useQuerySuggestions:y.ComponentOptions.buildBooleanOption({defaultValue:!0}),useValueFromSearchbox:y.ComponentOptions.buildBooleanOption({postProcessing:function(e,t){return e||!t.useQuerySuggestions}}),displayEstimateNumberOfResults:y.ComponentOptions.buildBooleanOption({defaultValue:!1}),templateHelper:y.ComponentOptions.buildCustomOption(function(){return null}),isCategoryField:y.ComponentOptions.buildBooleanOption({defaultValue:!1}),categoryFieldDelimitingCharacter:y.ComponentOptions.buildStringOption({defaultValue:"|",depend:"isCategoryField"}),expression:y.ComponentOptions.buildQueryExpressionOption()},t}(m.Component);t.FacetValueSuggestions=b,g.Initialization.registerAutoCreateComponent(b)},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=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])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0}),n(619);var o=n(0),r=n(3),s=n(6),a=n(17),u=n(1),l=n(21),c=n(15),p=n(12),d=n(7),h=n(8),f=n(2),m=n(119),y=function(e){function t(n,i,r,s){var a=e.call(this,n,g.ID,r)||this;a.element=n,a.options=i,a.result=s,a.options=h.ComponentOptions.initComponentOptions(n,t,i);var l=u.$$(a.element).findAll("tr[data-field]");if(o.each(l,function(e){new g(e,{},r,s)}),null==u.$$(a.element).find("tr")&&u.$$(n).detach(),a.isTogglable()){var c="coveo-field-table-toggle-container";a.toggleContainer=u.$$("div",{className:c,id:o.uniqueId(c)}).el,a.buildToggle(),u.$$(a.toggleContainer).insertBefore(a.element),a.toggleContainer.appendChild(a.element),a.toggleContainer.appendChild(a.toggleButtonInsideTable)}return a}return i(t,e),Object.defineProperty(t.prototype,"isExpanded",{get:function(){return!this.toggleButton||"true"===this.toggleButton.getAttribute("aria-expanded")},set:function(e){this.toggleButton&&this.toggleButton.setAttribute("aria-expanded",e.toString())},enumerable:!0,configurable:!0}),t.prototype.toggle=function(e){void 0===e&&(e=!1),this.isExpanded?this.minimize(e):this.expand(e)},t.prototype.expand=function(e){void 0===e&&(e=!1),this.isTogglable()&&(this.isExpanded=!0,this.toggleCaption.textContent=this.options.expandedTitle,c.SVGDom.addClassToSVGInContainer(this.toggleButtonSVGContainer,"coveo-opened"),c.SVGDom.addClassToSVGInContainer(this.toggleButtonInsideTable,"coveo-opened"),e?this.slideToggle(!0):this.slideToggle(!0,!1))},t.prototype.minimize=function(e){void 0===e&&(e=!1),this.isTogglable()&&(this.isExpanded=!1,this.toggleCaption.textContent=this.options.minimizedTitle,c.SVGDom.removeClassFromSVGInContainer(this.toggleButtonSVGContainer,"coveo-opened"),c.SVGDom.removeClassFromSVGInContainer(this.toggleButtonInsideTable,"coveo-opened"),e?this.slideToggle(!1):this.slideToggle(!1,!1))},t.prototype.updateToggleHeight=function(){this.updateToggleContainerHeight(),this.isExpanded?this.expand():this.minimize()},t.prototype.isTogglable=function(){return!!this.options.allowMinimization},t.prototype.buildToggle=function(){var e=this;this.toggleCaption=u.$$("span",{className:"coveo-field-table-toggle-caption"}).el,this.toggleButton=u.$$("div",{className:"coveo-field-table-toggle coveo-field-table-toggle-down",ariaControls:this.toggleContainer.id}).el,this.toggleButtonSVGContainer=u.$$("span",null,p.SVGIcons.icons.arrowDown).el,c.SVGDom.addClassToSVGInContainer(this.toggleButtonSVGContainer,"coveo-field-table-toggle-down-svg"),this.toggleButton.appendChild(this.toggleCaption),this.toggleButton.appendChild(this.toggleButtonSVGContainer),u.$$(this.toggleButton).insertBefore(this.element),this.toggleButtonInsideTable=u.$$("span",{className:"coveo-field-table-toggle coveo-field-table-toggle-up"},p.SVGIcons.icons.arrowUp).el,c.SVGDom.addClassToSVGInContainer(this.toggleButtonInsideTable,"coveo-field-table-toggle-up-svg"),!0===this.options.minimizedByDefault?this.isExpanded=!1:!1===this.options.minimizedByDefault?this.isExpanded=!0:this.isExpanded=!l.QueryUtils.hasExcerpt(this.result),requestAnimationFrame(function(){return e.updateToggleHeight()});var t=function(){return e.toggle(!0)};(new a.AccessibleButton).withElement(this.toggleButton).withSelectAction(function(){return t()}).withOwner(this.bind).withLabel(s.l("Details")).build(),u.$$(this.toggleButtonInsideTable).on("click",t)},t.prototype.slideToggle=function(e,t){void 0===e&&(e=!0),void 0===t&&(t=!0),t||u.$$(this.toggleContainer).addClass("coveo-no-transition"),e?(this.toggleContainer.style.display="block",this.toggleContainer.style.height=this.containerHeight):this.toggleContainer.style.height="0",t||(this.toggleContainer.offsetHeight,u.$$(this.toggleContainer).removeClass("coveo-no-transition"))},Object.defineProperty(t.prototype,"containerHeight",{get:function(){return this.toggleContainerHeight||this.updateToggleContainerHeight(),this.toggleContainerHeight+"px"},enumerable:!0,configurable:!0}),t.prototype.updateToggleContainerHeight=function(){this.toggleContainerHeight=this.toggleContainer.scrollHeight},t.ID="FieldTable",t.doExport=function(){r.exportGlobally({FieldTable:t,FieldValue:m.FieldValue})},t.options={allowMinimization:h.ComponentOptions.buildBooleanOption({defaultValue:!0}),expandedTitle:h.ComponentOptions.buildLocalizedStringOption({localizedString:function(){return s.l("Details")},depend:"allowMinimization"}),minimizedTitle:h.ComponentOptions.buildLocalizedStringOption({localizedString:function(){return s.l("Details")},depend:"allowMinimization"}),minimizedByDefault:h.ComponentOptions.buildBooleanOption({depend:"allowMinimization"})},t}(d.Component);t.FieldTable=y,f.Initialization.registerAutoCreateComponent(y);var g=function(e){function t(n,i,o,r){var s=e.call(this,n,i,o,r,t.ID)||this;s.element=n,s.options=i,s.result=r,s.options=h.ComponentOptions.initComponentOptions(n,t,i);var a=u.$$("th").el;return a.appendChild(document.createTextNode(s.options.caption.toLocaleString())),s.element.insertBefore(a,s.getValueContainer()),s}return i(t,e),t.prototype.getValueContainer=function(){return null==this.valueContainer&&(this.valueContainer=document.createElement("td"),this.element.appendChild(this.valueContainer)),this.valueContainer},t.ID="ValueRow",t.options={caption:h.ComponentOptions.buildStringOption({postProcessing:function(e,t){return e||t.field.substr(1)}})},t.parent=m.FieldValue,t}(m.FieldValue)},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=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])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n(3),r=n(2),s=n(187),a=function(e){function t(t,n,i){var o=e.call(this,t,n,i)||this;return o.element=t,o.options=n,o.options.getMoreResults=function(e){return s.Folding.foldWithParent(e)[0].attachments},o.options.getResult=function(e){var t=s.Folding.defaultGetResult(e);return t.childResults=t.attachments,t.attachments=[],t},o}return i(t,e),t.ID="FoldingForThread",t.doExport=function(){o.exportGlobally({FoldingForThread:t})},t}(s.Folding);t.FoldingForThread=a,r.Initialization.registerAutoCreateComponent(a)},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=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])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n(7),r=n(8),s=n(6),a=n(11),u=n(35),l=n(10),c=n(13),p=n(1),d=n(4),h=n(2),f=n(5),m=n(0),y=n(3);n(620);var g=n(12),v=function(e){function t(n,i,o){var s=e.call(this,n,t.ID,o)||this;return s.element=n,s.options=i,s.options=r.ComponentOptions.initComponentOptions(n,t,i),s.bind.onRootElement(a.QueryEvents.buildingQuery,function(e){return s.handleBuildingQuery(e)}),s.bind.onRootElement(u.BreadcrumbEvents.populateBreadcrumb,function(e){return s.handlePopulateBreadcrumb(e)}),s.bind.onRootElement(u.BreadcrumbEvents.clearBreadcrumb,function(){return s.setStateEmpty()}),s}return i(t,e),t.prototype.clear=function(){this.setStateEmpty();var e=this.getDescription();this.usageAnalytics.logSearchEvent(l.analyticsActionCauseList.contextRemove,{contextName:e}),this.queryController.executeQuery()},t.prototype.setStateEmpty=function(){this.queryStateModel.set(c.QUERY_STATE_ATTRIBUTES.HD,""),this.queryStateModel.set(c.QUERY_STATE_ATTRIBUTES.HQ,"")},t.prototype.handleBuildingQuery=function(e){f.Assert.exists(e);var t=this.queryStateModel.get(c.QUERY_STATE_ATTRIBUTES.HQ);d.Utils.isNonEmptyString(t)&&e.queryBuilder.advancedExpression.add(t)},t.prototype.handlePopulateBreadcrumb=function(e){var t=this,n=this.getDescription();if(!m.isEmpty(n)&&!m.isEmpty(this.queryStateModel.get(c.QUERY_STATE_ATTRIBUTES.HQ))){var i=document.createElement("div");p.$$(i).addClass("coveo-hidden-query-breadcrumb");var o=document.createElement("span");p.$$(o).addClass("coveo-hidden-query-breadcrumb-title"),p.$$(o).text(this.options.title),i.appendChild(o);var r=p.$$("span",{className:"coveo-hidden-query-breadcrumb-value"},m.escape(n)).el;i.appendChild(r);var s=p.$$("span",{className:"coveo-hidden-query-breadcrumb-clear"},g.SVGIcons.icons.mainClear);r.appendChild(s.el),p.$$(r).on("click",function(){return t.clear()}),e.breadcrumbs.push({element:i})}},t.prototype.getDescription=function(){var e=this.queryStateModel.get(c.QueryStateModel.attributesEnum.hd);return m.isEmpty(e)&&(e=this.queryStateModel.get(c.QueryStateModel.attributesEnum.hq)),m.isEmpty(e)||e.length>this.options.maximumDescriptionLength&&(e=e.slice(0,this.options.maximumDescriptionLength)+" ..."),e},t.ID="HiddenQuery",t.doExport=function(){y.exportGlobally({HiddenQuery:t})},t.options={maximumDescriptionLength:r.ComponentOptions.buildNumberOption({min:0,defaultValue:100}),title:r.ComponentOptions.buildLocalizedStringOption({localizedString:function(){return s.l("AdditionalFilters")+":"}})},t}(o.Component);t.HiddenQuery=v,h.Initialization.registerAutoCreateComponent(v)},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=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])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),o=this&&this.__assign||Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e};Object.defineProperty(t,"__esModule",{value:!0});var r=n(113),s=n(69),a=n(8),u=n(621),l=n(622),c=n(4),p=n(1),d=n(31),h=n(623),f=n(625),m=n(626),y=n(5),g=n(628),v=n(630),b=n(2),S=n(0),C=n(3);n(631);var w=n(12),_=n(15),O=n(83),x=function(e){function t(n,i,o){var r=e.call(this,n,i,o,t.ID)||this;return r.element=n,r.bindings=o,r.shouldReshuffleFacetValuesClientSide=!1,r.correctLevels=[],r.options=a.ComponentOptions.initComponentOptions(n,t,r.options),r.numberOfValuesToShow=r.originalNumberOfValuesToShow=r.options.numberOfValues||5,r.numberOfValues=Math.max(r.options.numberOfValues,1e4),r.options.injectionDepth=Math.max(r.options.injectionDepth,1e4),r.logger.info("Hierarchy facet: Set number of values very high in order to build hierarchy",r.numberOfValues,r),r.logger.info("Hierarchy facet: Set injection depth very high in order to build hierarchy",r.options.injectionDepth),r}return i(t,e),t.prototype.selectValue=function(t,n){void 0===n&&(n=!this.options.useAnd),this.ensureDom(),this.ensureValueHierarchyExists([t]);var i=this.getValueFromHierarchy(t);n&&this.selectChilds(i,i.childs),this.flagParentForSelection(i),e.prototype.selectValue.call(this,t)},t.prototype.selectMultipleValues=function(t,n){var i=this;void 0===n&&(n=!this.options.useAnd),this.ensureDom(),this.ensureValueHierarchyExists(t),S.each(t,function(e){var t=i.getValueFromHierarchy(e);i.flagParentForSelection(t),n&&S.each(t.childs,function(e){i.selectValue(e.facetValue)})}),e.prototype.selectMultipleValues.call(this,t)},t.prototype.deselectValue=function(t,n){var i=this;void 0===n&&(n=!0),this.ensureDom(),this.ensureValueHierarchyExists([t]);var o=this.getValueFromHierarchy(t);if(n){if(void 0!=o.childs){var r=S.filter(o.childs,function(e){var t=i.getFacetValueFromHierarchy(e.facetValue);return t.selected||t.excluded});o.hasChildSelected=!1,r.length==o.childs.length&&this.deselectChilds(o,o.childs)}}this.deselectParent(o.parent),this.unflagParentForSelection(o),e.prototype.deselectValue.call(this,t)},t.prototype.excludeValue=function(t,n){void 0===n&&(n=!this.options.useAnd),this.ensureDom(),this.ensureValueHierarchyExists([t]);var i=this.getValueFromHierarchy(t);n?this.excludeChilds(i.childs):(this.deselectChilds(i,i.childs),this.close(i)),this.flagParentForSelection(i),e.prototype.excludeValue.call(this,t)},t.prototype.unexcludeValue=function(t,n){void 0===n&&(n=!this.options.useAnd),this.ensureDom(),this.ensureValueHierarchyExists([t]);var i=this.getValueFromHierarchy(t);n&&this.unexcludeChilds(i.childs),this.unflagParentForSelection(i),e.prototype.unexcludeValue.call(this,t)},t.prototype.deselectMultipleValues=function(t,n){var i=this;void 0===n&&(n=!this.options.useAnd),this.ensureDom(),this.ensureValueHierarchyExists(t),S.each(t,function(e){var t=i.getValueFromHierarchy(e);t.hasChildSelected=!1,i.unflagParentForSelection(t),n&&S.each(t.childs,function(e){i.getValueFromHierarchy(e.facetValue).hasChildSelected=!1,i.deselectValue(e.facetValue)})}),e.prototype.deselectMultipleValues.call(this,t)},t.prototype.toggleSelectValue=function(e){this.ensureDom(),this.ensureValueHierarchyExists([e]),0==this.getFacetValueFromHierarchy(e).selected?this.selectValue(e):this.deselectValue(e)},t.prototype.toggleExcludeValue=function(e){this.ensureDom(),this.ensureValueHierarchyExists([e]),0==this.getFacetValueFromHierarchy(e).excluded?this.excludeValue(e):this.unexcludeValue(e)},t.prototype.getValueCaption=function(e){var t=this.getSelf(e),n=t;return c.Utils.exists(this.options.valueCaption)&&("object"==typeof this.options.valueCaption&&(n=this.options.valueCaption[t]||n),"function"==typeof this.options.valueCaption&&(n=this.options.valueCaption.call(this,e))),n},t.prototype.getDisplayedValues=function(){var e=this,t=S.filter(this.values.getAll(),function(t){if(e.getValueFromHierarchy(t)){var n=e.getElementFromFacetValueList(t);return!p.$$(n).hasClass("coveo-inactive")}return!1});return S.pluck(t,"value")},t.prototype.updateSort=function(t){e.prototype.updateSort.call(this,t)},t.prototype.open=function(e){var t;void 0!=(t=S.isString(e)?this.getValueHierarchy(e):e instanceof r.FacetValue?this.getValueHierarchy(e.value):e)&&(p.$$(this.getElementFromFacetValueList(t.facetValue.value)).addClass("coveo-open"),this.showChilds(t.childs),void 0!=t.parent&&this.open(this.getValueHierarchy(t.facetValue.value).parent),this.getValueHierarchy(t.facetValue.value).keepOpened=!0)},t.prototype.close=function(e){var t,n=this;void 0!=(t=S.isString(e)?this.getValueHierarchy(e):e instanceof r.FacetValue?this.getValueHierarchy(e.value):e)&&(p.$$(this.getElementFromFacetValueList(t.facetValue)).removeClass("coveo-open"),this.hideChilds(t.childs),S.each(t.childs,function(e){n.close(n.getValueHierarchy(e.facetValue.value))}),this.getValueHierarchy(t.facetValue.value).keepOpened=!1)},t.prototype.reset=function(){var t=this;S.each(this.getAllValueHierarchy(),function(e){e.hasChildSelected=!1,e.allChildShouldBeSelected=!1}),S.each(this.getAllValueHierarchy(),function(e){t.close(e)}),e.prototype.reset.call(this)},t.prototype.processFacetSearchAllResultsSelected=function(e){this.selectMultipleValues(e),this.triggerNewQuery()},t.prototype.triggerUpdateDeltaQuery=function(t){this.shouldReshuffleFacetValuesClientSide=this.keepDisplayedValuesNextTime,e.prototype.triggerUpdateDeltaQuery.call(this,t)},t.prototype.updateSearchElement=function(t){void 0===t&&(t=!0),e.prototype.updateSearchElement.call(this,!0)},t.prototype.facetValueHasChanged=function(){var e=this;this.updateQueryStateModel(),d.Defer.defer(function(){e.updateAppearanceDependingOnState()})},t.prototype.initFacetQueryController=function(){this.facetQueryController=new l.HierarchicalFacetQueryController(this)},t.prototype.initFacetSearch=function(){this.facetSearch=new f.HierarchicalFacetSearch(this,h.HierarchicalFacetSearchValuesList,this.root),this.element.appendChild(this.facetSearch.build())},t.prototype.handleDeferredQuerySuccess=function(t){this.updateAppearanceDependingOnState(),e.prototype.handleDeferredQuerySuccess.call(this,t)},t.prototype.handlePopulateSearchAlerts=function(e){this.values.hasSelectedOrExcludedValues()&&e.text.push(new m.HierarchicalBreadcrumbValuesList(this,this.values.getSelected().concat(this.values.getExcluded()),this.getAllValueHierarchy()).buildAsString())},t.prototype.handlePopulateBreadcrumb=function(e){if(y.Assert.exists(e),this.values.hasSelectedOrExcludedValues()){var t=new m.HierarchicalBreadcrumbValuesList(this,this.values.getSelected().concat(this.values.getExcluded()),this.getAllValueHierarchy()).build();e.breadcrumbs.push({element:t})}},t.prototype.handleOmniboxWithStaticValue=function(e){var t=this,n=e.completeQueryExpression.regex,i=S.first(S.filter(this.getAllValueHierarchy(),function(e){return n.test(t.getValueCaption(e.facetValue))}),this.options.numberOfValuesInOmnibox),o=S.compact(S.map(i,function(e){var n=t.getFromFacetValueList(e.facetValue);return n?n.facetValue:void 0})),r=new g.OmniboxHierarchicalValuesList(this,o,e).build();e.rows.push({element:r,zIndex:this.omniboxZIndex})},t.prototype.rebuildValueElements=function(){this.shouldReshuffleFacetValuesClientSide=this.shouldReshuffleFacetValuesClientSide||this.keepDisplayedValuesNextTime,this.numberOfValues=Math.max(this.numberOfValues,1e4),this.processHierarchy(),this.setValueListContent(),e.prototype.rebuildValueElements.call(this),this.buildParentChildRelationship(),this.checkForOrphans(),this.checkForNewUnselectedChild(),this.crop(),this.shouldReshuffleFacetValuesClientSide=!1},t.prototype.initFacetValuesList=function(){this.facetValuesList=new u.HierarchicalFacetValuesList(this,v.HierarchicalFacetValueElement),this.element.appendChild(this.facetValuesList.build())},t.prototype.updateMoreLess=function(){var t=this.numberOfValuesToShow<this.topLevelHierarchy.length,n=this.numberOfValuesToShow>this.originalNumberOfValuesToShow;e.prototype.updateMoreLess.call(this,n,t)},t.prototype.handleClickMore=function(){this.numberOfValuesToShow+=this.originalNumberOfValuesToShow,this.numberOfValuesToShow=Math.min(this.numberOfValuesToShow,this.values.size()),this.crop(),this.updateMoreLess()},t.prototype.handleClickLess=function(){this.numberOfValuesToShow=this.originalNumberOfValuesToShow,this.crop(),this.updateMoreLess()},t.prototype.updateNumberOfValues=function(){this.numberOfValues=Math.max(this.numberOfValues,1e4)},t.prototype.ensureValueHierarchyExists=function(e){var t=this;e[0]&&"string"==typeof e[0]&&(e=S.map(e,function(e){return r.FacetValue.createFromValue(e)}));var n=!1;S.each(e,function(e){void 0==t.getValueHierarchy(e.value)&&(n=!0)}),n&&this.processHierarchy(e)},t.prototype.crop=function(){var e=this,t=S.partition(this.topLevelHierarchy,function(e){return e.facetValue.selected||e.facetValue.excluded||e.hasChildSelected}),n=this.numberOfValuesToShow-t[0].length;S.each(S.last(t[1],t[1].length-n),function(t){e.hideFacetValue(t),e.hideChilds(t.childs)}),S.each(S.first(t[1],n),function(t){e.showFacetValue(t)})},t.prototype.placeChildsUnderTheirParent=function(e,t){var n=this,i=e.childs;if(i){var o=this.facetValuesList.sortFacetValues(S.pluck(i,"facetValue")).reverse();S.each(o,function(e){var i=n.getValueFromHierarchy(e);if(i){var o=n.getElementFromFacetValueList(e);p.$$(o).insertAfter(t),i.childs&&0!=i.childs.length&&n.placeChildsUnderTheirParent(i,o)}})}e.keepOpened?(this.open(e),this.showChilds(e.childs)):this.hideChilds(e.childs)},t.prototype.addCssClassToParentAndChilds=function(e,t){var n=this;p.$$(t).addClass("coveo-has-childs"),e.hasChildSelected&&p.$$(t).addClass("coveo-has-childs-selected");var i=p.$$("span",{className:"coveo-hierarchical-facet-expand"},w.SVGIcons.icons.facetExpand),o=p.$$("span",{className:"coveo-hierarchical-facet-collapse"},w.SVGIcons.icons.facetCollapse);_.SVGDom.addClassToSVGInContainer(i.el,"coveo-hierarchical-facet-expand-svg"),_.SVGDom.addClassToSVGInContainer(o.el,"coveo-hierarchical-facet-collapse-svg");var r=p.$$("div",{className:"coveo-has-childs-toggle"},i.el,o.el).el;p.$$(r).on("click",function(){p.$$(t).hasClass("coveo-open")?n.close(e):n.open(e)}),p.$$(t).prepend(r)},t.prototype.buildParentChildRelationship=function(){var e=this,t=document.createDocumentFragment();t.appendChild(this.facetValuesList.valueContainer);var n=S.map(this.facetValuesList.sortFacetValues(),function(t){return e.getValueFromHierarchy(t)});S.each(n,function(t){var n=e.getElementFromFacetValueList(t.facetValue);c.Utils.isNonEmptyArray(t.childs)?(e.placeChildsUnderTheirParent(t,n),e.addCssClassToParentAndChilds(t,n)):p.$$(n).addClass("coveo-no-childs"),n.style.marginLeft=e.options.marginByLevel*(t.level-e.options.levelStart)+"px"}),p.$$(t).insertAfter(this.headerElement)},t.prototype.setValueListContent=function(){var e=this;this.facetValuesList.hierarchyFacetValues=S.map(this.correctLevels,function(t){return e.values.contains(t.facetValue.value)||(t.facetValue.occurrences=0,e.values.add(t.facetValue)),t.facetValue})},t.prototype.createHierarchy=function(e){var t=this,n=S.map(e,function(e){var n=t.getParent(e),i=e.lookupValue||e.value;return{facetValue:e,level:t.getLevel(e),parent:n,self:i}});return this.setInHierarchy(n),S.each(this.getAllValueHierarchy(),function(e){e.facetValue.selected&&t.flagParentForSelection(e)}),n},t.prototype.processHierarchy=function(e){var t=this;void 0===e&&(e=this.values.getAll()),S.each(this.getAllValueHierarchy(),function(e){void 0==t.values.get(e.facetValue.value)&&t.deleteValueHierarchy(t.getLookupOrValue(e.facetValue))}),this.createHierarchy(e)},t.prototype.setInHierarchy=function(e){var t=this;this.correctLevels=S.filter(e,function(e){var n=void 0==t.options.levelStart||e.level>=t.options.levelStart,i=void 0==t.options.levelEnd||e.level<t.options.levelEnd;return n&&i}),S.each(this.correctLevels,function(e){var n=S.map(S.filter(t.correctLevels,function(t){return null!=t.parent&&t.parent.toLowerCase()==e.self.toLowerCase()}),function(e){return{facetValue:e.facetValue,level:e.level,keepOpened:!1,hasChildSelected:!1,allChildShouldBeSelected:!1}}),i=null!=e.parent?S.find(t.correctLevels,function(t){return t.self.toLowerCase()==e.parent.toLowerCase()}):null,o=t.getValueHierarchy(e.facetValue.value);o&&o.childs.length!=n.length&&(o.childs=n);var r;i&&(r=t.getValueHierarchy(i.facetValue.value)),t.setValueHierarchy(e.facetValue.value,{childs:n,parent:void 0==i?void 0:{facetValue:i.facetValue,level:i.level,keepOpened:!!r&&r.keepOpened,hasChildSelected:!!r&&r.hasChildSelected,originalPosition:r?r.originalPosition:void 0,allChildShouldBeSelected:!!r&&r.allChildShouldBeSelected},facetValue:e.facetValue,level:e.level,keepOpened:!!o&&o.keepOpened,hasChildSelected:!!o&&o.hasChildSelected,originalPosition:o?o.originalPosition:void 0,allChildShouldBeSelected:!!o&&o.allChildShouldBeSelected})}),this.topLevelHierarchy=S.chain(this.values.getAll()).filter(function(e){var n=t.getValueFromHierarchy(e);return!!n&&n.level==(t.options.levelStart||0)}).map(function(e){return t.getValueFromHierarchy(e)}).value()},t.prototype.getParent=function(e){var t=this.getLookupOrValue(e).lastIndexOf(this.options.delimitingCharacter);if(-1!=t)return this.getLookupOrValue(e).substring(0,t)},t.prototype.getSelf=function(e){var t=this.getParent(e);if(void 0==t)return this.getLookupOrValue(e);var n=this.getLookupOrValue(e).indexOf(t);return this.getLookupOrValue(e).substring(n+t.length+1)},t.prototype.showFacetValue=function(e){p.$$(this.getElementFromFacetValueList(e.facetValue.value)).removeClass("coveo-inactive")},t.prototype.hideFacetValue=function(e){p.$$(this.getElementFromFacetValueList(e.facetValue.value)).addClass("coveo-inactive")},t.prototype.hideChilds=function(e){var t=this;S.each(e,function(e){t.hideFacetValue(e)})},t.prototype.showChilds=function(e){var t=this;S.each(e,function(e){t.showFacetValue(e)})},t.prototype.selectChilds=function(e,t){this.flagParentForSelection(e),e.allChildShouldBeSelected=!0,this.selectMultipleValues(S.map(t,function(e){return e.facetValue}))},t.prototype.deselectChilds=function(e,t){e.hasChildSelected=!1,e.allChildShouldBeSelected=!1,this.deselectMultipleValues(S.map(t,function(e){return e.facetValue}))},t.prototype.excludeChilds=function(e){this.excludeMultipleValues(S.map(e,function(e){return e.facetValue}))},t.prototype.unexcludeChilds=function(e){this.unexcludeMultipleValues(S.map(e,function(e){return e.facetValue}))},t.prototype.deselectParent=function(e){void 0!=e&&this.deselectValue(e.facetValue,!1)},t.prototype.flagParentForSelection=function(e){for(var t=e.parent,n=e;t;){var i=this.getValueHierarchy(t.facetValue.value);i.hasChildSelected=!0;var o=S.find(i.childs,function(e){return e.facetValue.value.toLowerCase()==n.facetValue.value.toLowerCase()});o&&this.getValueHierarchy(o.facetValue.value).hasChildSelected&&(o.hasChildSelected=!0),t=i.parent,n=i}},t.prototype.unflagParentForSelection=function(e){for(var t=this,n=e.parent;n;){var i=this.getValueHierarchy(n.facetValue.value);0==S.filter(i.childs,function(n){var i=t.getValueHierarchy(n.facetValue.value);if(void 0!=i)return i.facetValue.value!=e.facetValue.value&&(i.facetValue.selected||i.facetValue.excluded||i.hasChildSelected)}).length&&(i.hasChildSelected=!1),i.allChildShouldBeSelected=!1,n=i.parent}},t.prototype.getValueFromHierarchy=function(e){var t=e instanceof r.FacetValue?e.value:e;return this.getValueHierarchy(t)},t.prototype.getFacetValueFromHierarchy=function(e){return this.getValueFromHierarchy(e).facetValue},t.prototype.getLookupOrValue=function(e){return e.lookupValue||e.value},t.prototype.getElementFromFacetValueList=function(e){var t=this.getFromFacetValueList(e);return t?t.renderer.listItem:p.$$("div").el},t.prototype.getFromFacetValueList=function(e){return void 0!=this.getValueFromHierarchy(e)?this.facetValuesList.get(e):void 0},t.prototype.getLevel=function(e){return e.value.split(this.options.delimitingCharacter).length-1},t.prototype.getAllValueHierarchy=function(){return null==this.valueHierarchy&&(this.valueHierarchy={}),this.valueHierarchy},t.prototype.deleteValueHierarchy=function(e){null!=this.valueHierarchy&&delete this.valueHierarchy[e.toLowerCase()]},t.prototype.getValueHierarchy=function(e){if(null!=this.valueHierarchy)return this.valueHierarchy[e.toLowerCase()]},t.prototype.setValueHierarchy=function(e,t){null==this.valueHierarchy&&(this.valueHierarchy={}),this.valueHierarchy[e.toLowerCase()]=t},t.prototype.checkForOrphans=function(){var e=this;S.each(this.valueHierarchy,function(t){e.getLevel(t.facetValue)!=e.options.levelStart&&void 0==e.getValueHierarchy(e.getParent(t.facetValue))&&(e.logger.error("Orphan value found in HierarchicalFacet : "+t.facetValue.value,"Needed : "+e.getParent(t.facetValue)+" but not found"),e.logger.warn("Removing incoherent facet value : "+t.facetValue.value),e.hideFacetValue(t))})},t.prototype.checkForNewUnselectedChild=function(){var e=this;S.each(this.valueHierarchy,function(t){if(t.allChildShouldBeSelected){S.find(t.childs,function(e){return 1!=e.facetValue.selected})&&(e.selectValue(t.facetValue,!0),e.logger.info("Re-executing query with new facet values returned by index"),e.queryController.deferExecuteQuery())}})},t.ID="HierarchicalFacet",t.doExport=function(){C.exportGlobally({HierarchicalFacet:t})},t.options=o({delimitingCharacter:a.ComponentOptions.buildStringOption({defaultValue:"|"}),levelStart:a.ComponentOptions.buildNumberOption({defaultValue:0,min:0}),levelEnd:a.ComponentOptions.buildNumberOption({min:0}),marginByLevel:a.ComponentOptions.buildNumberOption({defaultValue:10,min:0})},O.ResponsiveFacetOptions),t.parent=s.Facet,t}(s.Facet);t.HierarchicalFacet=x,b.Initialization.registerAutoCreateComponent(x)},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=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])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n(11),r=n(3),s=n(6),a=n(1),u=n(15),l=n(12),c=n(7),p=n(8),d=n(2),h=function(e){function t(n,i,r){var s=e.call(this,n,t.ID,r)||this;return s.element=n,s.options=i,s.options=p.ComponentOptions.initComponentOptions(n,t,i),s.buildLink(),s.bind.onRootElement(o.QueryEvents.queryError,function(){return s.hide()}),s.bind.onRootElement(o.QueryEvents.querySuccess,function(e){return s.handleQuerySuccess(e)}),s}return i(t,e),t.prototype.buildLink=function(){var e=a.$$("a",{className:"coveo-powered-by coveo-footer-logo",href:"https://www.coveo.com/","aria-label":s.l("CoveoHomePage")},l.SVGIcons.icons.coveoPoweredBy);this.options.target&&e.setAttribute("target",this.options.target),u.SVGDom.addClassToSVGInContainer(e.el,"coveo-powered-by-svg"),this.element.appendChild(e.el)},t.prototype.handleQuerySuccess=function(e){e.results.results.length>0?this.show():this.hide()},t.prototype.hide=function(){a.$$(this.element).addClass("coveo-hidden")},t.prototype.show=function(){a.$$(this.element).removeClass("coveo-hidden")},t.ID="Logo",t.doExport=function(){r.exportGlobally({Logo:t})},t.options={target:p.ComponentOptions.buildStringOption()},t}(c.Component);t.Logo=h,d.Initialization.registerAutoCreateComponent(h)},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=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])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n(23);n(632);var r=n(0),s=n(11),a=n(3),u=n(13),l=n(1),c=n(21),p=n(4),d=n(7),h=n(8),f=n(2),m=n(61),y=n(633),g=n(634),v=function(e){function t(n,i,o){var r=e.call(this,n,t.ID,o)||this;return r.element=n,r.options=i,r.groupByIndex=[],r.rowId="",r.columnId="",r.selectedRowValue=void 0,r.selectedColumnValue=void 0,r.numberOfRows=0,r.numberOfColumns=0,r.options=h.ComponentOptions.initComponentOptions(n,t,i),r.options.previewTemplate||(r.options.previewTemplate=new g.DefaultMatrixResultPreviewTemplate(r.options.computedField,r.options.computedFieldFormat)),r.options.previewSortField||(r.options.previewSortField=r.options.computedField),r.options.columnFieldValues.length!=r.options.columnLabels.length&&(r.options.columnLabels=r.options.columnFieldValues),r.buildMatrix(),null==r.options.rowField?r.logger.error("'rowField' option is required in the Matrix component"):null==r.options.columnField?r.logger.error("'columnField' option is required in the Matrix component"):null==r.options.computedField?r.logger.error("'computedField' option is required in the Matrix component"):(r.bindEvents(),r.initQueryState()),r}return i(t,e),t.prototype.selectCell=function(e,t){var n,i;0!==e&&e!==this.numberOfRows-1&&(n=this.getRowValue(e)),0!==t&&t!==this.numberOfColumns-1&&(i=this.getColumnValue(t)),n&&this.isRowFacetPresent()?this.queryStateModel.set(this.rowId,[n]):(this.selectedRowValue=n,this.queryStateModel.set(this.rowId,[])),i&&this.isColumnFacetPresent()?this.queryStateModel.set(this.columnId,[i]):(this.selectedColumnValue=i,this.queryStateModel.set(this.columnId,[]))},t.prototype.getSelectedColumnValue=function(){return this.selectedColumnValue},t.prototype.getSelectedRowValue=function(){return this.selectedRowValue},t.prototype.getCellElement=function(e,t){return this.data[e][t].getHTML()},t.prototype.getCellValue=function(e,t){var n=this.getCellElement(e,t);return l.$$(n).text()},t.prototype.drawMatrix=function(){var e=this,t=l.$$("div",{className:"coveo-matrix-row matrix-header-row"});this.drawRow(t.el,0);for(var n=this.options.enableColumnTotals?this.numberOfRows-1:this.numberOfRows,i=1;i<n;i++){var o=l.$$("div",{className:"coveo-matrix-row"}).el;this.drawRow(o,i)}if(this.options.enableColumnTotals){var s=l.$$("div",{className:"coveo-matrix-row matrix-total-row"}).el;this.drawRow(s,this.numberOfRows-1)}if(""!==this.options.cellFontSize){var a=l.$$(this.element).findAll(".coveo-matrix-cell");r.each(a,function(t){t.style.fontSize=e.options.cellFontSize})}},t.prototype.bindEvents=function(){var e=this;this.bind.onRootElement(s.QueryEvents.buildingQuery,function(t){return e.handleBuildingQuery(t)}),this.bind.onRootElement(s.QueryEvents.doneBuildingQuery,function(t){return e.handleDoneBuildingQuery(t)}),this.bind.onRootElement(s.QueryEvents.deferredQuerySuccess,function(t){return e.handleDeferredQuerySuccess(t)})},t.prototype.initQueryState=function(){this.rowId=u.QueryStateModel.getFacetId(this.options.rowField),this.columnId=u.QueryStateModel.getFacetId(this.options.columnField),this.queryStateModel.registerNewAttribute(this.rowId,[]),this.queryStateModel.registerNewAttribute(this.columnId,[])},t.prototype.buildMatrix=function(){this.buildTitle(),this.buildBody(),this.data=new Array,this.addHeaderRow()},t.prototype.buildTitle=function(){var e=this.options.title?this.options.title:"",t=l.$$("div",{className:"coveo-matrix-title"},e).el;this.element.appendChild(t)},t.prototype.buildBody=function(){var e=l.$$("div",{className:"coveo-matrix"}).el;this.element.appendChild(e)},t.prototype.handleBuildingQuery=function(e){this.areFacetsPresent()||(this.selectedRowValue&&!this.isRowFacetPresent()&&e.queryBuilder.advancedExpression.addFieldExpression(this.options.rowField,"=",[this.selectedRowValue]),this.selectedColumnValue&&!this.isColumnFacetPresent()&&e.queryBuilder.advancedExpression.addFieldExpression(this.options.columnField,"=",[this.selectedColumnValue]))},t.prototype.handleDoneBuildingQuery=function(e){this.groupByIndex=[],this.addMainGroubByRequest(e.queryBuilder),this.addColumnsGroupByRequests(e.queryBuilder)},t.prototype.handleDeferredQuerySuccess=function(e){this.reset(),this.parseResults(e.results),this.addTotals(),this.drawMatrix(),this.formatCells(),this.selectedRowValue=void 0,this.selectedColumnValue=void 0},t.prototype.addMainGroubByRequest=function(e){var t={field:this.options.rowField,sortCriteria:this.options.sortCriteria,computedFields:this.getComputedFields(),maximumNumberOfValues:this.options.maximumNumberOfRows};this.groupByIndex.push(e.groupByRequests.length),e.groupByRequests.push(t)},t.prototype.addColumnsGroupByRequests=function(e){for(var t=0;t<this.options.columnFieldValues.length;t++){var n={field:this.options.rowField,sortCriteria:this.options.sortCriteria,computedFields:this.getComputedFields(),queryOverride:"("+this.buildExpression(e)+")("+this.options.columnField+"='"+this.options.columnFieldValues[t]+"')",maximumNumberOfValues:this.options.maximumNumberOfValuesInGroupBy};this.groupByIndex.push(e.groupByRequests.length),e.groupByRequests.push(n)}},t.prototype.buildExpression=function(e){var t=e.expression.build(),n=e.advancedExpression.build(),i=e.constantExpression.build(),o="";return t&&(o+=" "+t),n&&(o+=" "+n),i&&(o+=" "+i),o},t.prototype.getComputedFields=function(){return[{field:this.options.computedField,operation:this.options.computedFieldOperation}]},t.prototype.getCellResult=function(e,t,n){for(var i=this.getRowValue(t),o=this.getColumnValue(n),r=0,s=0;s<e.values.length;s++)if(e.values[s].value===i){r=e.values[s].computedFieldResults[0];break}return this.isAColumnSelected()&&!this.isColumnSelected(o)&&(r=0),r},t.prototype.addTotals=function(){this.options.enableRowTotals&&this.addRowTotals(),this.options.enableColumnTotals&&this.addColumnTotals()},t.prototype.addRowTotals=function(){var e=this;this.addColumn(),this.setValue("Total",0,this.numberOfColumns-1);for(var t=1;t<this.numberOfRows;t++){var n=this.computeRowTotal(t);this.setValue(n,t,this.numberOfColumns-1)}"computedfielddescending"==this.options.sortCriteria.toLowerCase()&&this.data.sort(function(t,n){return n[e.numberOfColumns-1].getValue()-t[e.numberOfColumns-1].getValue()}),"computedfieldascending"==this.options.sortCriteria.toLowerCase()&&this.data.sort(function(t,n){return t[e.numberOfColumns-1].getValue()-n[e.numberOfColumns-1].getValue()})},t.prototype.addColumnTotals=function(){this.addRow(),this.setValue("Total",this.numberOfRows-1,0);for(var e=1;e<this.numberOfColumns;e++){var t=this.computeColumnTotal(e);this.setValue(t,this.numberOfRows-1,e)}},t.prototype.computeRowTotal=function(e){for(var t=0,n=1;n<this.numberOfColumns-1;n++)t+=parseInt(this.getCellValue(e,n));return t},t.prototype.computeColumnTotal=function(e){for(var t=0,n=1;n<this.numberOfRows-1;n++)t+=parseInt(this.getCellValue(n,e));return t},t.prototype.formatCells=function(){for(var e=1;e<this.numberOfRows;e++)for(var t=1;t<this.numberOfColumns;t++){var n=this.getCellValue(e,t);n=o.format(parseInt(n),this.options.computedFieldFormat),this.setValue(n,e,t)}},t.prototype.addHeaderRow=function(){this.addRow(),this.addColumn(),this.setValue(this.options.columnHeader,0,0);for(var e=0;e<this.options.columnLabels.length;e++)this.addColumn(),this.setValue(this.options.columnLabels[e],0,e+1)},t.prototype.addRow=function(){this.data.push(new Array);for(var e=0;e<this.numberOfColumns;e++)this.addCellToRow(this.numberOfRows,e);this.numberOfRows++},t.prototype.addColumn=function(){for(var e=0;e<this.numberOfRows;e++)this.addCellToRow(e,this.numberOfColumns);this.numberOfColumns++},t.prototype.addCellToRow=function(e,t){var n=l.$$("div",{className:"coveo-matrix-cell"});0==t&&n.addClass("matrix-first-column"),this.data[e].push(new y.Cell(0,n.el))},t.prototype.setValue=function(e,t,n){var i=this.getCellElement(t,n);p.Utils.isNullOrUndefined(e)||l.$$(i).text(e.toString()),this.isCellSelected(this.getRowValue(t),this.getColumnValue(n))&&l.$$(i).addClass("coveo-matrix-selected"),this.isAColumnSelected()&&!this.isColumnSelected(this.getColumnValue(n))&&0!=n&&0!=t&&l.$$(i).addClass("coveo-matrix-unimportant"),this.data[t][n].setValue(e)},t.prototype.handleClick=function(e,t){this.selectCell(e,t),this.queryController.executeQuery()},t.prototype.getRowValue=function(e){return this.data[e][0].getValue()},t.prototype.getColumnValue=function(e){return this.options.columnFieldValues[e-1]},t.prototype.isAColumnSelected=function(){return 0!==(this.queryStateModel.get(this.columnId)||[]).length||void 0!=this.selectedColumnValue},t.prototype.isColumnSelected=function(e){if(this.isAColumnSelected()&&e)for(var t=this.queryStateModel.attributes[this.columnId]||[],n=0;n<t.length;n++)if(t[n].toLowerCase()===e.toLowerCase())return!0;return this.selectedColumnValue==e},t.prototype.isARowSelected=function(){return 0!==(this.queryStateModel.get(this.rowId)||[]).length||void 0!==this.selectedRowValue},t.prototype.isRowSelected=function(e){if(this.isARowSelected()&&e)for(var t=this.queryStateModel.get(this.rowId)||[],n=0;n<t.length;n++)if(t[n].toLowerCase()===e.toLowerCase())return!0;return this.selectedRowValue==e},t.prototype.isCellSelected=function(e,t){return this.isAColumnSelected()&&this.isARowSelected()?this.isRowSelected(e)&&this.isColumnSelected(t):!!this.isAColumnSelected()&&this.isColumnSelected(t)},t.prototype.areFacetsPresent=function(){return this.isRowFacetPresent()&&this.isColumnFacetPresent()},t.prototype.isRowFacetPresent=function(){var e=this.componentStateModel.get(this.rowId);return e&&!e[0].disabled},t.prototype.isColumnFacetPresent=function(){var e=this.componentStateModel.get(this.columnId);return e&&!e[0].disabled},t.prototype.reset=function(){l.$$(this.element).empty(),this.numberOfRows=0,this.numberOfColumns=0,this.data=new Array,this.buildMatrix()},t.prototype.parseResults=function(e){if(e){var t=e.groupByResults[this.groupByIndex[0]];if(t)for(var n=0;n<t.values.length;n++){var i=t.values[n].value;this.addRow(),this.setValue(i,n+1,0)}for(var n=1;n<this.numberOfRows;n++)for(var o=1;o<this.numberOfColumns;o++){var r=e.groupByResults[this.groupByIndex[o]],s=this.getCellResult(r,n,o);this.setValue(s,n,o)}}},t.prototype.drawRow=function(e,t){for(var n=this,i=l.$$(this.element).find(".coveo-matrix"),o=this,r=0;r<this.numberOfColumns;r++)!function(i){var r=o.data[t][i].getHTML();l.$$(r).on("click",function(){!function(e){n.handleClick(t,e)}(i)}),o.options.enableHoverPreview&&function(e){l.$$(r).on("mouseover",function(){return n.handleHoverIn(t,e)}),l.$$(r).on("mouseout",function(){return n.handleHoverOut(t,e)})}(i),e.appendChild(r)}(r);i.appendChild(e)},t.prototype.handleHoverIn=function(e,t){var n=this;this.isHoverWorkingOnRow(e)&&this.isHoverWorkingOnColumn(t)&&(this.previewTimeout=window.setTimeout(function(){n.displayResultsPreview(e,t)},this.options.previewDelay))},t.prototype.handleHoverOut=function(e,t){clearTimeout(this.previewTimeout),this.data[e][t].removePreview()},t.prototype.displayResultsPreview=function(e,t){var n=this,i=this.createPreviewQuery(e,t);this.data[e][t].addPreview(this.options.previewMinWidth,this.options.previewMaxWidth),this.queryController.getEndpoint().search(i).then(function(i){if(n.isDataAvailable(e,t)){var o=n.data[e][t],s=r.map(i.results,function(e){return n.instantiateTemplate(e)}),a="";r.each(s,function(e){e.then(function(e){a+=e.outerHTML})}),Promise.all(s).then(function(){o.updatePreview(a)})}})},t.prototype.instantiateTemplate=function(e){var t=this;return this.options.previewTemplate.instantiateToElement(e,{checkCondition:!1,responsiveComponents:this.searchInterface.responsiveComponents}).then(function(n){var i={options:t.options,bindings:t.getBindings(),result:e};return f.Initialization.automaticallyCreateComponentsInside(n,i).initResult.then(function(){return n})})},t.prototype.createPreviewQuery=function(e,t){var n="("+c.QueryUtils.buildFieldExpression(this.options.rowField,"=",[this.getRowValue(e)])+")",i="("+c.QueryUtils.buildFieldExpression(this.options.columnField,"=",[this.getColumnValue(t)])+")",o=this.queryController.getLastQuery();o.aq=n,o.aq+=i,o.sortCriteria=this.options.previewSortCriteria,o.sortField=this.options.previewSortField;var s=this.options.computedField.slice(1);return!r.find(o.fieldsToInclude,function(e){return e==s})&&o.fieldsToInclude&&o.fieldsToInclude.push(s),o},t.prototype.isHoverWorkingOnRow=function(e){return this.options.enableColumnTotals?0!==e&&e!==this.numberOfRows-1:0!==e},t.prototype.isHoverWorkingOnColumn=function(e){return this.options.enableRowTotals?0!==e&&e!==this.numberOfColumns-1:0!==e},t.prototype.isDataAvailable=function(e,t){return void 0!==this.data[e]&&void 0!==this.data[e][t]},t.ID="Matrix",t.doExport=function(){a.exportGlobally({Matrix:t})},t.options={title:h.ComponentOptions.buildStringOption(),rowField:h.ComponentOptions.buildFieldOption({required:!0}),columnField:h.ComponentOptions.buildFieldOption({required:!0}),sortCriteria:h.ComponentOptions.buildStringOption({defaultValue:"computedfielddescending"}),maximumNumberOfRows:h.ComponentOptions.buildNumberOption({defaultValue:10,min:0}),enableRowTotals:h.ComponentOptions.buildBooleanOption({defaultValue:!0}),columnFieldValues:h.ComponentOptions.buildListOption({defaultValue:[]}),columnLabels:h.ComponentOptions.buildListOption({defaultValue:[]}),columnHeader:h.ComponentOptions.buildStringOption(),maximumNumberOfValuesInGroupBy:h.ComponentOptions.buildNumberOption({defaultValue:100,min:0}),enableColumnTotals:h.ComponentOptions.buildBooleanOption({defaultValue:!0}),computedField:h.ComponentOptions.buildFieldOption({required:!0}),computedFieldOperation:h.ComponentOptions.buildStringOption({defaultValue:"sum"}),computedFieldFormat:h.ComponentOptions.buildStringOption({defaultValue:"c0"}),cellFontSize:h.ComponentOptions.buildStringOption({defaultValue:""}),enableHoverPreview:h.ComponentOptions.buildBooleanOption({defaultValue:!0}),previewSortCriteria:h.ComponentOptions.buildStringOption({defaultValue:"FieldDescending"}),previewSortField:h.ComponentOptions.buildFieldOption(),previewMaxWidth:h.ComponentOptions.buildStringOption({defaultValue:"500px"}),previewMinWidth:h.ComponentOptions.buildStringOption({defaultValue:"0"}),previewDelay:h.ComponentOptions.buildNumberOption({defaultValue:500}),previewTemplate:m.TemplateComponentOptions.buildTemplateOption()},t}(d.Component);t.Matrix=v,f.Initialization.registerAutoCreateComponent(v)},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=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])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0}),n(635);var o=n(0),r=n(34),s=n(11),a=n(137),u=n(3),l=n(5),c=n(9),p=n(6),d=n(1),h=n(4),f=n(10),m=n(120),y=n(7),g=n(8),v=n(2),b=n(89),S=function(e){function t(n,i,o){var u=e.call(this,n,i,o,t.ID)||this;return u.element=n,u.options=i,u.bindings=o,u.options=g.ComponentOptions.initComponentOptions(n,t,i),u.setupOptions(),u.bind.onRootElement(r.OmniboxEvents.populateOmnibox,function(e){return u.handlePopulateOmnibox(e)}),u.bind.onRootElement(s.QueryEvents.buildingQuery,function(e){return u.handleBuildingQuery(e)}),u.bind.onRootElement(a.InitializationEvents.afterComponentsInitialization,function(){u.handleAfterComponentInit()}),u}return i(t,e),t.prototype.buildResults=function(e){var t=this,n=[],i=o.map(e.results,function(e){return t.buildResult(e).then(function(i){return d.$$(i).addClass("coveo-omnibox-selectable"),i["no-text-suggestion"]=!0,d.$$(i).on(["keyboardSelect","click"],function(n){return t.handleOmniboxElementSelection(n,i,e)}),t.autoCreateComponentsInsideResult(i,e).initResult.then(function(){return n.push(i),i})})});return Promise.all(i).then(function(){return n})},t.prototype.renderResults=function(e,t){return void 0===t&&(t=!1),d.$$(this.options.resultsContainer).empty(),this.lastOmniboxRequest?(e.length&&(this.appendHeaderIfTitleIsSpecified(),this.appendResults(e)),this.resolveLastOmniboxRequest(),Promise.resolve(null)):Promise.resolve(null)},t.prototype.handleAfterComponentInit=function(){var e=this,t=d.$$(this.root).find("."+y.Component.computeCssClassNameForType("Omnibox"));if(t){y.Component.get(t).magicBox.onsubmit=function(){m.logSearchBoxSubmitEvent(e.usageAnalytics),e.queryController.executeQuery()}}},t.prototype.appendHeaderIfTitleIsSpecified=function(){this.options.headerTitle&&this.options.resultsContainer.appendChild(d.$$("div",{className:"coveo-omnibox-result-list-header"},d.$$("span",{className:"coveo-icon-omnibox-result-list"}).el,d.$$("span",{className:"coveo-caption"},p.l(this.options.headerTitle)).el).el)},t.prototype.appendResults=function(e){var t=this;o.each(e,function(e){t.options.resultsContainer.appendChild(e),t.triggerNewResultDisplayed(y.Component.getResult(e),e)}),this.triggerNewResultsDisplayed()},t.prototype.resolveLastOmniboxRequest=function(){0==d.$$(this.options.resultsContainer).findAll(".coveo-omnibox-selectable").length?this.lastOmniboxRequest.resolve({element:null,zIndex:this.options.omniboxZIndex}):this.lastOmniboxRequest.resolve({element:this.options.resultsContainer,zIndex:this.options.omniboxZIndex})},t.prototype.handleChangeLayout=function(){},t.prototype.setupOptions=function(){this.logger.info("Disabling infinite scroll for OmniboxResultList",this),this.options.enableInfiniteScroll=!1,this.options.onSelect=this.options.onSelect||this.onRowSelection},t.prototype.handlePopulateOmnibox=function(e){var t=this,n=new Promise(function(n,i){t.queryController.executeQuery({searchAsYouType:!0,shouldRedirectStandaloneSearchbox:!1,beforeExecuteQuery:function(){return t.usageAnalytics.logSearchAsYouType(f.analyticsActionCauseList.searchboxSubmit,{})}}),t.lastOmniboxRequest={omniboxObject:e,resolve:n}});e.rows.push({deferred:n})},t.prototype.handleBuildingQuery=function(e){l.Assert.exists(e),h.Utils.isNonEmptyString(this.options.queryOverride)&&e.queryBuilder.constantExpression.add(this.options.queryOverride)},t.prototype.handleOmniboxElementSelection=function(e,t,n){e&&e.target&&this.otherComponentShouldHandleSelection(e,t)||this.lastOmniboxRequest&&this.options.onSelect.call(this,n,t,this.lastOmniboxRequest.omniboxObject,e)},t.prototype.otherComponentShouldHandleSelection=function(e,n){for(var i=e.target,r=!1;i&&i!=n&&!(r=null!=o.find(t.elementsToIgnore,function(e){return d.$$(i).hasClass(e)}));)i=i.parentElement;return r},t.prototype.onRowSelection=function(e,t,n,i){this.usageAnalytics.logClickEvent(f.analyticsActionCauseList.documentOpen,{author:h.Utils.getFieldValue(e,"author")},e,this.root),window.location.href=e.clickUri},t.prototype.initResultContainerAddToDom=function(){},t.ID="OmniboxResultList",t.elementsToIgnore=["coveo-field-table-toggle-caption","CoveoFollowItem","CoveoPrintableUri","CoveoQuickview","CoveoResultLink","CoveoResultRating","CoveoResultTagging","CoveoYouTubeThumbnail"],t.doExport=function(){u.exportGlobally({OmniboxResultList:t})},t.options={layout:g.ComponentOptions.buildStringOption({defaultValue:"list",postProcessing:function(e){if("list"!=e){var n=new c.Logger(t);n.warn("Cannot apply layout "+e+" on the OmniboxResultListComponent"),n.warn('OmniboxResultList does not support any layout other than "list"')}return"list"}}),omniboxZIndex:g.ComponentOptions.buildNumberOption({defaultValue:51,min:16}),headerTitle:g.ComponentOptions.buildStringOption(),queryOverride:g.ComponentOptions.buildQueryExpressionOption(),onSelect:g.ComponentOptions.buildCustomOption(function(){return null})},t}(b.ResultList);t.OmniboxResultList=S,v.Initialization.registerAutoCreateComponent(S)},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=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])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0}),n(636);var o=n(11),r=n(29),s=n(3),a=n(5),u=n(18),l=n(13),c=n(6),p=n(17),d=n(24),h=n(1),f=n(112),m=n(15),y=n(12),g=n(10),v=n(7),b=n(8),S=n(2),C=function(e){function t(n,i,r){var s=e.call(this,n,t.ID,r)||this;return s.element=n,s.options=i,s.listenToQueryStateChange=!0,s.ignoreNextQuerySuccess=!1,s.needToReset=!0,s.options=b.ComponentOptions.initComponentOptions(n,t,i),s.currentPage=1,s.bind.onRootElement(o.QueryEvents.newQuery,function(e){return s.handleNewQuery(e)}),s.bind.onRootElement(o.QueryEvents.buildingQuery,function(e){return s.handleBuildingQuery(e)}),s.bind.onRootElement(o.QueryEvents.querySuccess,function(e){return s.handleQuerySuccess(e)}),s.bind.onRootElement(o.QueryEvents.queryError,function(){return s.handleQueryError()}),s.bind.onRootElement(o.QueryEvents.noResults,function(e){return s.handleNoResults(e)}),s.bind.onQueryState(u.MODEL_EVENTS.CHANGE_ONE,l.QUERY_STATE_ATTRIBUTES.FIRST,function(e){return s.handleQueryStateFirstResultChanged(e)}),s.bind.onQueryState(u.MODEL_EVENTS.CHANGE_ONE,l.QUERY_STATE_ATTRIBUTES.NUMBER_OF_RESULTS,function(e){return s.handleQueryStateNumberOfResultsPerPageChanged(e)}),s.addAlwaysActiveListeners(),s.list=h.$$("ul",{className:"coveo-pager-list",role:"navigation",ariaLabel:c.l("Pagination")}).el,n.appendChild(s.list),s}return i(t,e),Object.defineProperty(t.prototype,"currentPage",{get:function(){return this._currentPage},set:function(e){var t=e;isNaN(e)&&(this.logger.warn("Unable to set pager current page to an invalid value: "+e+". Resetting to 1."),t=1),t=Math.max(Math.min(t,this.getMaxNumberOfPagesForCurrentResultsPerPage()),1),t=Math.floor(t),this._currentPage=t},enumerable:!0,configurable:!0}),t.prototype.setPage=function(e,t){void 0===t&&(t=g.analyticsActionCauseList.pagerNumber),a.Assert.exists(e),this.currentPage=e,this.updateQueryStateModel(this.getFirstResultNumber(this.currentPage)),this.usageAnalytics.logCustomEvent(t,{pagerNumber:this.currentPage},this.element),this.queryController.executeQuery({ignoreWarningSearchEvent:!0,keepLastSearchUid:!0,origin:this})},t.prototype.previousPage=function(){this.setPage(this.currentPage-1,g.analyticsActionCauseList.pagerPrevious)},t.prototype.nextPage=function(){this.setPage(this.currentPage+1,g.analyticsActionCauseList.pagerNext)},t.prototype.addAlwaysActiveListeners=function(){var e=this;this.searchInterface.element.addEventListener(r.ResultListEvents.newResultsDisplayed,function(){return f.ResultListUtils.hideIfInfiniteScrollEnabled(e)})},t.prototype.getMaxNumberOfPagesForCurrentResultsPerPage=function(){return Math.ceil(this.options.maximumNumberOfResultsFromIndex/this.searchInterface.resultsPerPage)},t.prototype.handleNewQuery=function(e){var n=e&&e.origin&&(e.origin.type==t.ID||"Debug"==e.origin.type);this.needToReset&&!n&&(this.currentPage=1,this.updateQueryStateModel(this.getFirstResultNumber(this.currentPage))),this.needToReset=!0},t.prototype.updateQueryStateModel=function(e){this.listenToQueryStateChange=!1,this.queryStateModel.set(l.QueryStateModel.attributesEnum.first,e),this.listenToQueryStateChange=!0},t.prototype.handleQueryError=function(){this.reset()},t.prototype.handleQuerySuccess=function(e){var t=this;if(this.reset(),this.ignoreNextQuerySuccess)this.ignoreNextQuerySuccess=!1;else{a.Assert.isNotUndefined(e);var n=e.query.firstResult,i=e.results.totalCountFiltered,o=this.computePagerBoundary(n,i);if(this.currentPage=o.currentPage,o.end-o.start>0){for(var r=this,s=o.start;s<=o.end;s++)!function(e){var n=h.$$("a",{className:"coveo-pager-list-item-text coveo-pager-anchor",tabindex:-1,ariaHidden:"true"},e.toString(10)).el,i=e,o=h.$$("li",{className:"coveo-pager-list-item",tabindex:0}).el,s=i===r.currentPage;s&&h.$$(o).addClass("coveo-active"),h.$$(o).setAttribute("aria-pressed",s.toString());var a=function(){return t.handleClickPage(i)};(new p.AccessibleButton).withElement(o).withLabel(c.l("PageNumber",e.toString(10))).withClickAction(a).withEnterKeyboardAction(a).build(),o.appendChild(n),r.list.appendChild(o)}(s);this.options.enableNavigationButton&&o.lastResultPage>1&&this.renderNavigationButton(o)}}},t.prototype.handleNoResults=function(e){var t;if(e.results.totalCount>0){var n=this.computePagerBoundary(e.results.totalCountFiltered,e.results.totalCount).lastResultPage;this.currentPage>n&&(t=n)}else this.currentPage>this.getMaxNumberOfPagesForCurrentResultsPerPage()&&(t=this.getMaxNumberOfPagesForCurrentResultsPerPage());null!=t&&(this.currentPage=t,e.retryTheQuery=!0,this.needToReset=!1,this.ignoreNextQuerySuccess=!1,this.updateQueryStateModel(this.getFirstResultNumber(this.currentPage)))},t.prototype.reset=function(){h.$$(this.list).empty()},t.prototype.handleBuildingQuery=function(e){a.Assert.exists(e);var t=this.getQueryEventArgs();e.queryBuilder.firstResult=t.first,null==e.queryBuilder.numberOfResults&&(e.queryBuilder.numberOfResults=t.count);var n=e.queryBuilder.firstResult+e.queryBuilder.numberOfResults,i=Math.max(0,n-this.options.maximumNumberOfResultsFromIndex);e.queryBuilder.numberOfResults-=i},t.prototype.computePagerBoundary=function(e,t){var n=this.searchInterface.resultsPerPage,i=Math.floor(e/n)+1,o=Math.max(Math.min(Math.ceil(t/n),this.getMaxNumberOfPagesForCurrentResultsPerPage()),1),r=Math.floor(this.options.numberOfPages/2),s=Math.max(Math.min(i-r,o-this.options.numberOfPages+1),1);return{start:s,end:Math.min(s+this.options.numberOfPages-1,o),lastResultPage:o,currentPage:i}},t.prototype.renderNavigationButton=function(e){if(this.currentPage>1){var t=this.renderPreviousButton();this.list.insertBefore(t.el,this.list.firstChild)}if(this.currentPage<e.lastResultPage){var n=this.renderNextButton();this.list.appendChild(n.el)}},t.prototype.renderPreviousButton=function(){var e=this,t=h.$$("li",{className:"coveo-pager-previous coveo-pager-anchor coveo-pager-list-item"}),n=h.$$("a",{title:c.l("Previous"),tabindex:-1,ariaHidden:"true"}),i=h.$$("span",{className:"coveo-pager-previous-icon"},y.SVGIcons.icons.pagerLeftArrow);return m.SVGDom.addClassToSVGInContainer(i.el,"coveo-pager-previous-icon-svg"),n.append(i.el),t.append(n.el),(new p.AccessibleButton).withElement(t).withLabel(c.l("Previous")).withSelectAction(function(){return e.handleClickPrevious()}).build(),t},t.prototype.renderNextButton=function(){var e=this,t=h.$$("li",{className:"coveo-pager-next coveo-pager-anchor coveo-pager-list-item"}),n=h.$$("a",{title:c.l("Next"),tabindex:-1,ariaHidden:"true"}),i=h.$$("span",{className:"coveo-pager-next-icon"},y.SVGIcons.icons.pagerRightArrow);return m.SVGDom.addClassToSVGInContainer(i.el,"coveo-pager-next-icon-svg"),n.append(i.el),t.append(n.el),(new p.AccessibleButton).withElement(t).withLabel(c.l("Next")).withSelectAction(function(){return e.handleClickNext()}).build(),t},t.prototype.handleQueryStateFirstResultChanged=function(e){if(this.listenToQueryStateChange){a.Assert.exists(e),this.needToReset=!1;var t=e.value;this.currentPage=this.fromFirstResultsToPageNumber(t)}},t.prototype.handleQueryStateNumberOfResultsPerPageChanged=function(e){var t=this.queryStateModel.get(l.QUERY_STATE_ATTRIBUTES.FIRST);this.searchInterface.resultsPerPage=e.value,this.currentPage=this.fromFirstResultsToPageNumber(t)},t.prototype.handleClickPage=function(e){a.Assert.exists(e),this.setPage(e)},t.prototype.handleClickPrevious=function(){this.previousPage()},t.prototype.handleClickNext=function(){this.nextPage()},t.prototype.fromFirstResultsToPageNumber=function(e){return e/this.searchInterface.resultsPerPage+1},t.prototype.getFirstResultNumber=function(e){return void 0===e&&(e=this.currentPage),(e-1)*this.searchInterface.resultsPerPage},t.prototype.getQueryEventArgs=function(){return{count:this.searchInterface.resultsPerPage,first:this.getFirstResultNumber()}},t.ID="Pager",t.doExport=function(){s.exportGlobally({Pager:t})},t.options={numberOfPages:b.ComponentOptions.buildNumberOption({defaultFunction:function(){return d.DeviceUtils.isMobileDevice()?3:5},min:1}),enableNavigationButton:b.ComponentOptions.buildBooleanOption({defaultValue:!0}),maxNumberOfPages:b.ComponentOptions.buildNumberOption({defaultValue:void 0,deprecated:"This is a deprecated option. The pager will automatically adapt itself on each new query. You no longer need to specify this option. Use maximumNumberOfResultsFromIndex instead."}),maximumNumberOfResultsFromIndex:b.ComponentOptions.buildNumberOption({defaultValue:1e3})},t}(v.Component);t.Pager=C,S.Initialization.registerAutoCreateComponent(C)},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=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])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),r=n(11),s=n(3),a=n(1),u=n(4),l=n(7),c=n(8),p=n(2),d=function(e){function t(n,i,o){var s=e.call(this,n,t.ID,o)||this;return s.element=n,s.options=i,s.bindings=o,s.contextContent={},s.options=c.ComponentOptions.initComponentOptions(n,t,i),s.setContext(a.$$(s.element).text().trim()),s.bind.onRootElement(r.QueryEvents.buildingQuery,function(e){return s.handleBuildingQuery(e)}),s}return i(t,e),t.prototype.setContext=function(e){if(o.isString(e)){var t=this.tryParseContextFromString(e);this.contextContent=t}else this.contextContent=e},t.prototype.getContext=function(){var e=this,t=this.getContextKeys();return o.object(t,o.map(t,function(t){return e.getContextValue(t)}))},t.prototype.setContextValue=function(e,t){this.contextContent[e]=t},t.prototype.getContextKeys=function(){return o.keys(this.contextContent)},t.prototype.getContextValue=function(e){var t=this,n=this.contextContent[e];if(o.isArray(n)){var i=[];return o.each(this.contextContent[e],function(e){i.push(t.getModifiedData(e))}),i}return o.isString(n)?this.getModifiedData(n):""},t.prototype.handleBuildingQuery=function(e){var t=this,n=this.getContextKeys();o.each(n,function(n){e.queryBuilder.addContextValue(n,t.getContextValue(n))})},t.prototype.tryParseContextFromString=function(e){if(o.isEmpty(e))return{};try{return JSON.parse(u.Utils.decodeHTMLEntities(e))}catch(t){try{return JSON.parse(e)}catch(e){return this.logger.error("Error while trying to parse context from the PipelineContext component",e),null}}},t.prototype.getModifiedData=function(e){return e.replace(/\{\!([^\}]+)\}/g,function(e,n){var i=n.trim();return Coveo.context&&i in Coveo.context?Coveo.context[i]:i==t.CURRENT_URL?window.location.href:""})},t.ID="PipelineContext",t.CURRENT_URL="CurrentUrl",t.doExport=function(){s.exportGlobally({PipelineContext:t})},t}(l.Component);t.PipelineContext=d,p.Initialization.registerAutoCreateComponent(d)},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=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])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n(7),r=n(8),s=n(54),a=n(97),u=n(2),l=n(6),c=n(1),p=n(3),d=n(26),h=n(0);n(637);var f=n(16),m=n(12),y=function(e){function t(n,i,o,a){void 0===a&&(a=d.ModalBox);var u=e.call(this,n,t.ID,o)||this;return u.element=n,u.options=i,u.ModalBox=a,u.content=[],u.options=r.ComponentOptions.initComponentOptions(n,t,i),u.bind.onRootElement(s.SettingsEvents.settingsPopulateMenu,function(e){e.menuData.push({className:"coveo-preferences-panel",text:l.l("Preferences"),onOpen:function(){return u.open()},onClose:function(){return u.close()},svgIcon:m.SVGIcons.icons.dropdownPreferences,svgIconClassName:"coveo-preferences-panel-svg"})}),u.bind.onRootElement(f.InitializationEvents.afterComponentsInitialization,function(){u.content=c.$$(u.element).children()}),u}return i(t,e),t.prototype.open=function(){var e=this;if(null==this.modalbox){var t=c.$$("div");h.each(this.content,function(e){t.append(e)}),this.modalbox=this.ModalBox.open(t.el,{title:l.l("Preferences"),validation:function(){return e.cleanupOnExit(),!0},body:this.searchInterface.options.modalContainer})}},t.prototype.close=function(){this.modalbox&&(this.cleanupOnExit(),this.modalbox.close(),this.modalbox=null)},t.prototype.save=function(){c.$$(this.element).trigger(a.PreferencesPanelEvents.savePreferences),this.queryController.executeQuery()},t.prototype.cleanupOnExit=function(){c.$$(this.element).trigger(a.PreferencesPanelEvents.exitPreferencesWithoutSave)},t.ID="PreferencesPanel",t.doExport=function(){p.exportGlobally({PreferencesPanel:t})},t.options={},t}(o.Component);t.PreferencesPanel=y,u.Initialization.registerAutoCreateComponent(y)},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=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])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),o=this&&this.__assign||Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e};Object.defineProperty(t,"__esModule",{value:!0});var r=n(8),s=n(68),a=n(2),u=n(4),l=n(1),c=n(3);n(638);var p=n(70),d=n(114),h=n(0),f=n(28),m=n(7),y=n(17),g=n(24),v=n(6),b=function(e){function t(n,i,o,s){var a=e.call(this,n,t.ID,o)||this;return a.element=n,a.options=i,a.bindings=o,a.result=s,a.links=[],a.options=r.ComponentOptions.initComponentOptions(n,t,i),a.options=h.extend({},a.options,a.componentOptionsModel.get(f.ComponentOptionsModel.attributesEnum.resultLink)),a.renderUri(a.result),a.addAccessibilityAttributes(),a}return i(t,e),t.prototype.openLink=function(e){void 0===e&&(e=!0),h.last(this.links).openLink(e)},t.prototype.openLinkInNewWindow=function(e){void 0===e&&(e=!0),h.last(this.links).openLinkInNewWindow(e)},t.prototype.openLinkAsConfigured=function(e){void 0===e&&(e=!0),h.last(this.links).openLinkAsConfigured(e)},t.prototype.renderUri=function(e){var t=u.Utils.getFieldValue(e,"parents");if(t)this.renderParents({parents:this.parseXmlParents(t),firstIndexToRender:0,maxNumOfParts:g.DeviceUtils.isMobileDevice()?3:5});else if(this.options.titleTemplate){var n=new p.ResultLink(this.buildElementForResultLink(e.printableUri),this.options,this.bindings,this.result);this.links.push(n),this.element.appendChild(this.makeLinkAccessible(n.element))}else this.renderShortenedUri()},t.prototype.buildSeparator=function(){return l.$$("span",{className:"coveo-printable-uri-separator",role:"separator"}," > ").el},t.prototype.buildHtmlToken=function(e,t){var n=e.charAt(0).toUpperCase()+e.slice(1),i=h.extend({},this.result,{clickUri:t,title:n,titleHighlights:this.getModifiedHighlightsForModifiedResultTitle(n)}),o=new p.ResultLink(this.buildElementForResultLink(n),this.options,this.bindings,i);return this.links.push(o),o.element},t.prototype.parseXmlParents=function(e){for(var t=u.Utils.parseXml(e).getElementsByTagName("parent"),n=[],i=0;i<t.length;i++)n.push(t.item(i));return n},t.prototype.renderParents=function(e){l.$$(this.element).empty();var t=e.parents.length-1,n=t-1,i=e.maxNumOfParts-1,r=Math.min(n,e.firstIndexToRender+i-1),s=n-r;this.optionallyRenderFirstEllipsis(e),this.renderMiddleParts(e,r),s>0&&this.renderLastEllipsis(o({},e,{firstIndexToRender:Math.min(Math.max(r+1,0),e.parents.length-e.maxNumOfParts)})),this.renderLastPart(e)},t.prototype.optionallyRenderFirstEllipsis=function(e){e.firstIndexToRender>0&&(this.appendEllipsis(o({},e,{firstIndexToRender:Math.max(0,e.firstIndexToRender-e.maxNumOfParts+1)})),this.appendSeparator())},t.prototype.renderMiddleParts=function(e,t){for(var n=e.firstIndexToRender;n<=t;n++)n>e.firstIndexToRender&&this.appendSeparator(),this.appendToken(e.parents[n])},t.prototype.renderLastEllipsis=function(e){this.appendSeparator(),this.appendEllipsis(e)},t.prototype.renderLastPart=function(e){this.appendSeparator(),this.appendToken(e.parents[e.parents.length-1])},t.prototype.appendSeparator=function(){this.element.appendChild(this.buildSeparator())},t.prototype.appendEllipsis=function(e){var t=this;this.element.appendChild(this.buildEllipsis(function(){t.renderParents(e),t.element.firstChild.firstChild.focus()}))},t.prototype.appendToken=function(e){this.element.appendChild(this.makeLinkAccessible(this.buildHtmlToken(e.getAttribute("name"),e.getAttribute("uri"))))},t.prototype.renderShortenedUri=function(){var e;e=-1==this.result.printableUri.indexOf("\\")?s.StringAndHoles.shortenUri(this.result.printableUri,l.$$(this.element).width()):s.StringAndHoles.shortenPath(this.result.printableUri,l.$$(this.element).width());var t=s.HighlightUtils.highlightString(e.value,this.result.printableUriHighlights,e.holes,"coveo-highlight"),n=h.extend({},this.result,{title:t,titleHighlights:this.getModifiedHighlightsForModifiedResultTitle(t)}),i=new p.ResultLink(this.buildElementForResultLink(this.result.printableUri),this.options,this.bindings,n);this.links.push(i),this.element.appendChild(this.makeLinkAccessible(i.element))},t.prototype.makeLinkAccessible=function(e){return l.$$("span",{className:"coveo-printable-uri-part",role:"listitem"},e).el},t.prototype.buildEllipsis=function(e){var t=l.$$("button",{},"..."),n=l.$$("span",{className:"coveo-printable-uri-ellipsis",role:"listitem"},t).el;return(new y.AccessibleButton).withElement(t).withLabel(v.l("CollapsedUriParts")).withSelectAction(e).build(),n},t.prototype.buildElementForResultLink=function(e){return l.$$("a",{className:"CoveoResultLink",title:e}).el},t.prototype.getModifiedHighlightsForModifiedResultTitle=function(e){return d.getRestHighlightsForAllTerms(e,this.result.termsToHighlight,this.result.phrasesToHighlight,new d.DefaultStreamHighlightOptions)},t.prototype.addAccessibilityAttributes=function(){this.element.setAttribute("role","list")},t.ID="PrintableUri",t.options={},t.doExport=function(){c.exportGlobally({PrintableUri:t})},t}(m.Component);t.PrintableUri=b,b.options=h.extend({},b.options,p.ResultLink.options),a.Initialization.registerAutoCreateComponent(b)},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=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])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n(7),r=n(8),s=n(11),a=n(5),u=n(1),l=n(6),c=n(2),p=n(23),d=n(3);n(639);var h=function(e){function t(n,i,o){var a=e.call(this,n,t.ID,o)||this;return a.element=n,a.options=i,a.options=r.ComponentOptions.initComponentOptions(n,t,i),a.bind.onRootElement(s.QueryEvents.querySuccess,function(e){return a.handleQuerySuccess(e)}),a.bind.onRootElement(s.QueryEvents.queryError,function(){return u.$$(a.element).hide()}),a.element.style.display="none",a.textContainer=u.$$("span").el,a.element.appendChild(a.textContainer),a}return i(t,e),t.prototype.handleQuerySuccess=function(e){if(!this.disabled&&e.results.results.length>0){a.Assert.exists(e);var t=[l.l("Duration",this.formatQueryDuration(e.results.duration)),l.l("SearchAPIDuration",this.formatQueryDuration(e.results.searchAPIDuration)),l.l("IndexDuration",this.formatQueryDuration(e.results.indexDuration))].join("\n");this.textContainer.textContent=this.formatQueryDuration(e.results.duration),this.element.setAttribute("title",t),this.element.style.display="inline"}else this.element.style.display="none"},t.prototype.formatQueryDuration=function(e){if(void 0==e)return l.l("Unavailable");var t=Math.max(e/1e3,.01);return"en"===String.locale?l.l("Seconds",p.format(t,"n2"),t,!0):l.l("Seconds",p.format(t,"n2"),t)},t.ID="QueryDuration",t.doExport=function(){d.exportGlobally({QueryDuration:t})},t.options={},t}(o.Component);t.QueryDuration=h,c.Initialization.registerAutoCreateComponent(h)},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=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])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0}),n(640);var o=n(0),r=n(11),s=n(518),a=n(3),u=n(5),l=n(13),c=n(6),p=n(1),d=n(202),h=n(10),f=n(7),m=n(8),y=n(2),g=n(17);t.noResultsCssClass="coveo-show-if-no-results";var v=function(e){function n(t,i,o){var s=e.call(this,t,n.ID,o)||this;return s.element=t,s.options=i,s.options=m.ComponentOptions.initComponentOptions(t,n,i),s.bind.onRootElement(r.QueryEvents.querySuccess,function(e){return s.handleQuerySuccess(e)}),s.bind.onRootElement(r.QueryEvents.queryError,function(){return s.hide()}),s.hide(),s.textContainer=p.$$("span").el,p.$$(s.element).prepend(s.textContainer),s}return i(n,e),n.prototype.hide=function(){p.$$(this.element).addClass("coveo-hidden")},n.prototype.show=function(){p.$$(this.element).removeClass("coveo-hidden")},n.prototype.render=function(e){p.$$(this.textContainer).empty(),this.show(),this.updateNoResultsSnapshot(),this.hideNoResultsPage(),this.options.onlyDisplaySearchTips||this.updateSummaryIfResultsWereReceived(e);var t=e.results;if(null!=t.exception&&null!=t.exception.code){var n=("QueryException"+t.exception.code).toLocaleString();this.textContainer.innerHTML=c.l("QueryException",n)}else 0==t.results.length?(this.updateQueryTagsInNoResultsContainer(),this.displayInfoOnNoResults()):this.lastKnownGoodState=this.queryStateModel.getAttributes()},n.prototype.handleQuerySuccess=function(e){u.Assert.exists(e),this.render(e)},n.prototype.updateSummaryIfResultsWereReceived=function(e){if(e.results.results.length){var t=d.QuerySummaryUtils.htmlMessage(this.root,e);this.textContainer.innerHTML=t}},n.prototype.updateNoResultsSnapshot=function(){var e=this.getNoResultsContainer();null==this.noResultsSnapshot&&e&&(this.noResultsSnapshot=e.innerHTML)},n.prototype.updateQueryTagsInNoResultsContainer=function(){var e=this.getNoResultsContainer();e&&(e.innerHTML=this.replaceQueryTagsWithHighlightedQuery(this.noResultsSnapshot))},n.prototype.replaceQueryTagsWithHighlightedQuery=function(e){var t='<span class="coveo-highlight">'+this.sanitizedQuery+"</span>";return d.QuerySummaryUtils.replaceQueryTags(e,t)},Object.defineProperty(n.prototype,"sanitizedQuery",{get:function(){return o.escape(this.queryStateModel.get(l.QueryStateModel.attributesEnum.q))},enumerable:!0,configurable:!0}),n.prototype.displayInfoOnNoResults=function(){if(this.showNoResultsPage(),this.options.enableNoResultsFoundMessage){var e=this.getNoResultsFoundMessageElement();this.textContainer.appendChild(e.el)}if(this.options.enableCancelLastAction){var t=this.getCancelLastActionElement();this.textContainer.appendChild(t.el)}if(this.options.enableSearchTips){var n=this.getSearchTipsTitleElement(),i=this.getSearchTipsListElement();this.textContainer.appendChild(n.el),this.textContainer.appendChild(i.el)}},n.prototype.hideNoResultsPage=function(){this.getAllNoResultsContainer().forEach(function(e){p.$$(e).removeClass("coveo-no-results")})},n.prototype.showNoResultsPage=function(){this.getAllNoResultsContainer().forEach(function(e){p.$$(e).addClass("coveo-no-results")})},n.prototype.getNoResultsContainer=function(){return p.$$(this.element).find("."+t.noResultsCssClass)},n.prototype.getAllNoResultsContainer=function(){return p.$$(this.element).findAll("."+t.noResultsCssClass)},Object.defineProperty(n.prototype,"parsedNoResultsFoundMessage",{get:function(){return""===this.sanitizedQuery.trim()?c.l("noResult"):this.replaceQueryTagsWithHighlightedQuery(this.options.noResultsFoundMessage)},enumerable:!0,configurable:!0}),n.prototype.getNoResultsFoundMessageElement=function(){return p.$$("div",{className:"coveo-query-summary-no-results-string"},this.parsedNoResultsFoundMessage)},n.prototype.getCancelLastActionElement=function(){var e=this,t=p.$$("div",{className:"coveo-query-summary-cancel-last"},c.l("CancelLastAction"));return(new g.AccessibleButton).withLabel(c.l("CancelLastAction")).withElement(t).withSelectAction(function(){e.usageAnalytics.logCustomEvent(h.analyticsActionCauseList.noResultsBack,{},e.root),e.usageAnalytics.logSearchEvent(h.analyticsActionCauseList.noResultsBack,{}),e.lastKnownGoodState?(e.queryStateModel.reset(),e.queryStateModel.setMultiple(e.lastKnownGoodState),p.$$(e.root).trigger(s.QuerySummaryEvents.cancelLastAction),e.queryController.executeQuery()):history.back()}).build(),t},n.prototype.getSearchTipsTitleElement=function(){var e=p.$$("div",{className:"coveo-query-summary-search-tips-info"});return e.text(c.l("SearchTips")),e},n.prototype.getSearchTipsListElement=function(){var e=p.$$("ul"),t=p.$$("li");t.text(c.l("CheckSpelling"));var n=p.$$("li");if(n.text(c.l("TryUsingFewerKeywords")),e.el.appendChild(t.el),e.el.appendChild(n.el),this.queryStateModel.atLeastOneFacetIsActive()){var i=p.$$("li");i.text(c.l("SelectFewerFilters")),e.el.appendChild(i.el)}return e},n.ID="QuerySummary",n.doExport=function(){a.exportGlobally({QuerySummary:n})},n.options={onlyDisplaySearchTips:m.ComponentOptions.buildBooleanOption({defaultValue:!1}),enableNoResultsFoundMessage:m.ComponentOptions.buildBooleanOption({defaultValue:!0}),noResultsFoundMessage:m.ComponentOptions.buildLocalizedStringOption({localizedString:function(){return c.l("noResultFor","${query}")},depend:"enableNoResultsFoundMessage",postProcessing:function(e){return o.escape(e)}}),enableCancelLastAction:m.ComponentOptions.buildBooleanOption({defaultValue:!0}),enableSearchTips:m.ComponentOptions.buildBooleanOption({defaultValue:!0})},n}(f.Component);t.QuerySummary=v,y.Initialization.registerAutoCreateComponent(v)},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=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])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),o=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))(function(o,r){function s(e){try{u(i.next(e))}catch(e){r(e)}}function a(e){try{u(i.throw(e))}catch(e){r(e)}}function u(e){e.done?o(e.value):new n(function(t){t(e.value)}).then(s,a)}u((i=i.apply(e,t||[])).next())})},r=this&&this.__generator||function(e,t){function n(e){return function(t){return i([e,t])}}function i(n){if(o)throw new TypeError("Generator is already executing.");for(;u;)try{if(o=1,r&&(s=r[2&n[0]?"return":n[0]?"throw":"next"])&&!(s=s.call(r,n[1])).done)return s;switch(r=0,s&&(n=[0,s.value]),n[0]){case 0:case 1:s=n;break;case 4:return u.label++,{value:n[1],done:!1};case 5:u.label++,r=n[1],n=[0];continue;case 7:n=u.ops.pop(),u.trys.pop();continue;default:if(s=u.trys,!(s=s.length>0&&s[s.length-1])&&(6===n[0]||2===n[0])){u=0;continue}if(3===n[0]&&(!s||n[1]>s[0]&&n[1]<s[3])){u.label=n[1];break}if(6===n[0]&&u.label<s[1]){u.label=s[1],s=n;break}if(s&&u.label<s[2]){u.label=s[2],u.ops.push(n);break}s[2]&&u.ops.pop(),u.trys.pop();continue}n=t.call(e,u)}catch(e){n=[6,e],r=0}finally{o=s=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}var o,r,s,a,u={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return a={next:n(0),throw:n(1),return:n(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a};Object.defineProperty(t,"__esModule",{value:!0});var s=n(94);n(641);var a=n(225),u=n(29),l=n(26),c=n(3),p=n(13),d=n(6),h=n(17),f=n(1),m=n(93),y=n(22),g=n(15),v=n(12),b=n(4),S=n(10),C=n(7),w=n(8),_=n(49),O=n(2),x=n(61),E=n(642),A=n(231),T=n(220),R=function(e){function t(n,i,o,r,s){void 0===s&&(s=l.ModalBox);var a=e.call(this,n,t.ID,o)||this;return a.element=n,a.options=i,a.bindings=o,a.result=r,a.options=w.ComponentOptions.initComponentOptions(n,t,i),null==a.options.contentTemplate&&(a.options.contentTemplate=new E.DefaultQuickviewTemplate),/^\s*$/.test(a.element.innerHTML)&&a.buildContent(),a.bindClick(r),a.bindings.resultElement&&a.bind.on(a.bindings.resultElement,u.ResultListEvents.openQuickview,function(e){e&&e.stopPropagation(),a.open()}),a.modalbox=new T.AccessibleModal("coveo-quick-view",a.searchInterface.options.modalContainer,s),a}return i(t,e),t.prototype.buildContent=function(){var e=this.buildIcon(),t=this.buildCaption(),n=f.$$("div");n.append(e),n.append(t),f.$$(this.element).append(n.el),this.buildTooltipIfNotInCardLayout(e,t)},t.prototype.buildIcon=function(){var e=f.$$("div",{className:"coveo-icon-for-quickview"},v.SVGIcons.icons.quickview).el;return g.SVGDom.addClassToSVGInContainer(e,"coveo-icon-for-quickview-svg"),e},t.prototype.buildCaption=function(){return f.$$("div",{className:"coveo-caption-for-icon"},"Quickview".toLocaleString()).el},t.prototype.buildTooltipIfNotInCardLayout=function(e,t){if(!this.resultsAreInCardLayout){var n=f.$$("div").el;t.appendChild(n),this.buildPopper(e,t,n)}},Object.defineProperty(t.prototype,"resultsAreInCardLayout",{get:function(){return"card"===this.queryStateModel.get(p.QueryStateModel.attributesEnum.layout)},enumerable:!0,configurable:!0}),t.prototype.buildPopper=function(e,t,n){var i=new s.default(e,t,{placement:this.options.tooltipPlacement,modifiers:{preventOverflow:{boundariesElement:f.$$(this.root).el,padding:0},arrow:{element:n},offset:{offset:"0,8"}},eventsEnabled:!1});f.$$(this.element).on("mouseover",function(){i.update()})},t.prototype.open=function(){var e=this;if(!this.modalbox.isOpen){t.resultCurrentlyBeingRendered=this.result,document.activeElement&&document.activeElement instanceof HTMLElement&&f.$$(document.activeElement).trigger("blur");var n=this.prepareOpenQuickviewObject();return this.createModalBox(n).then(function(){e.bindQuickviewEvents(n),e.animateAndOpen(),e.logUsageAnalyticsEvent(),e.queryStateModel.set(p.QueryStateModel.attributesEnum.quickview,e.getHashId()),t.resultCurrentlyBeingRendered=null})}},t.prototype.close=function(){this.modalbox.isOpen&&this.modalbox.close()},t.prototype.getHashId=function(){return this.result.queryUid+"."+this.result.index+"."+y.StringUtils.hashCode(this.result.uniqueId)},t.prototype.logUsageAnalyticsEvent=function(){this.usageAnalytics.logClickEvent(S.analyticsActionCauseList.documentQuickview,{author:b.Utils.getFieldValue(this.result,"author"),documentURL:this.result.clickUri,documentTitle:this.result.title},this.result,this.element)},t.prototype.bindClick=function(e){var t=this;if(void 0===e.hasHtmlVersion||e.hasHtmlVersion||this.options.alwaysShow){var n=function(){return t.open()};(new h.AccessibleButton).withElement(this.element).withSelectAction(n).withLabel(d.l("Quickview")).withOwner(this.bind).build()}else this.element.style.display="none"},t.prototype.bindQuickviewEvents=function(e){var t=this;f.$$(this.modalbox.content).on(a.QuickviewEvents.quickviewLoaded,function(){return o(t,void 0,void 0,function(){var t;return r(this,function(n){switch(n.label){case 0:return[4,e.loadingAnimation];case 1:return t=n.sent(),f.$$(t).remove(),[2]}})})})},t.prototype.animateAndOpen=function(){var e=f.$$(this.modalbox.element).find("."+C.Component.computeCssClassName(A.QuickviewDocument));e&&O.Initialization.dispatchNamedMethodCallOrComponentCreation("open",e,null)},t.prototype.createModalBox=function(e){var t=this,n=f.$$("div");return n.addClass("coveo-computed-modal-box-content"),e.content.then(function(e){return n.append(e.el),t.modalbox.openResult({result:t.result,options:{showDate:t.options.showDate,title:t.options.title},bindings:t.bindings,content:n.el,validation:function(){return t.closeQuickview(),!0},origin:t.element}),n})},t.prototype.prepareOpenQuickviewObject=function(){var e=this.options.loadingAnimation;return{loadingAnimation:e,content:this.prepareQuickviewContent(e)}},t.prototype.prepareQuickviewContent=function(e){return o(this,void 0,void 0,function(){var t,n,i,o,s=this;return r(this,function(r){switch(r.label){case 0:return[4,this.instantiateTemplateToDom()];case 1:return t=r.sent(),n=this.searchInterface.options,i={options:n,bindings:this.getBindings(),result:this.result},[4,O.Initialization.automaticallyCreateComponentsInside(t.el,i).initResult];case 2:return r.sent(),o=function(){return void 0!=t.find("."+C.Component.computeCssClassName(A.QuickviewDocument))&&s.options.enableLoadingAnimation},o()&&(e instanceof HTMLElement?t.prepend(e):e instanceof Promise&&e.then(function(e){t.prepend(e)})),[2,t]}})})},t.prototype.instantiateTemplateToDom=function(){return o(this,void 0,void 0,function(){var e,t;return r(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,3,6]),[4,this.options.contentTemplate.instantiateToElement(this.result)];case 1:return e=n.sent(),[3,6];case 2:return t=n.sent(),this.logger.warn(t),[3,6];case 3:return e?[3,5]:(this.logger.warn("An unexpected error happened while trying to render a custom template quickview, fallbacking on default quickview template...",this.options.contentTemplate),[4,(new E.DefaultQuickviewTemplate).instantiateToElement(this.result)]);case 4:e=n.sent(),n.label=5;case 5:return[7];case 6:return[2,f.$$(e)]}})})},t.prototype.closeQuickview=function(){this.queryStateModel.set(p.QueryStateModel.attributesEnum.quickview,"")},t.ID="Quickview",t.doExport=function(){c.exportGlobally({Quickview:t,QuickviewDocument:A.QuickviewDocument})},t.options={alwaysShow:w.ComponentOptions.buildBooleanOption({defaultValue:!1}),title:w.ComponentOptions.buildStringOption(),showDate:w.ComponentOptions.buildBooleanOption({defaultValue:!0}),enableLoadingAnimation:w.ComponentOptions.buildBooleanOption({defaultValue:!0}),contentTemplate:x.TemplateComponentOptions.buildTemplateOption({selectorAttr:"data-template-selector",idAttr:"data-template-id"}),loadingAnimation:w.ComponentOptions.buildOption(_.ComponentOptionsType.NONE,function(e){var t=e.getAttribute("data-loading-animation-selector");if(null!=t){var n=f.$$(document.documentElement).find(t);if(null!=n)return f.$$(n).detach(),n}var i=e.getAttribute("data-loading-animation-template-id");if(null!=i){var o=x.TemplateComponentOptions.loadResultTemplateFromId(i);if(o)return o.instantiateToElement(void 0,{checkCondition:!1})}return m.DomUtils.getBasicLoadingAnimation()}),tooltipPlacement:w.ComponentOptions.buildCustomOption(function(e){return e},{defaultValue:"bottom"})},t.resultCurrentlyBeingRendered=null,t}(C.Component);t.Quickview=R,O.Initialization.registerAutoCreateComponent(R)},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=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])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n(7),r=n(8),s=n(1),a=n(5),u=n(2),l=n(0),c=n(3);n(655);var p=function(e){function t(n,i,o,s){var a=e.call(this,n,t.ID,o)||this;return a.element=n,a.options=i,a.bindings=o,a.result=s,a.options=r.ComponentOptions.initComponentOptions(n,t,i),a.initializeParentResult(),a.bindEvents(),a.buildMenuItems(),a}return i(t,e),t.prototype.show=function(){s.$$(this.element).addClass(t.SHOW_CLASS)},t.prototype.hide=function(){s.$$(this.element).removeClass(t.SHOW_CLASS)},t.prototype.initializeParentResult=function(){this.parentResult=s.$$(this.element).closest("CoveoResult"),a.Assert.check(void 0!==this.parentResult,"ResultActionsMenu needs to be a child of a Result"),s.$$(this.parentResult).addClass("coveo-clickable")},t.prototype.bindEvents=function(){var e=this;s.$$(this.parentResult).on("click",function(){return e.show()}),s.$$(this.parentResult).on("mouseleave",function(){return e.hide()}),this.options.openOnMouseOver&&s.$$(this.parentResult).on("mouseenter",function(){return e.show()})},t.prototype.buildMenuItems=function(){var e=this;this.menuItems=[],l.forEach(s.$$(this.element).children(),function(t){e.menuItems.push(t),s.$$(t).addClass("coveo-result-actions-menu-menu-item")})},t.ID="ResultActionsMenu",t.doExport=function(){c.exportGlobally({ResultActionsMenu:t})},t.SHOW_CLASS="coveo-menu-opened",t.options={openOnMouseOver:r.ComponentOptions.buildBooleanOption({defaultValue:!0})},t}(o.Component);t.ResultActionsMenu=p,u.Initialization.registerAutoCreateComponent(p)},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=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])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n(7),r=n(8),s=n(656),a=n(4),u=n(21),l=n(2),c=n(5),p=n(1),d=n(0),h=n(3);n(657);var f=n(61),m=function(e){function t(n,i,o,s,u){void 0===u&&(u=0);var l=e.call(this,n,t.ID,o)||this;return l.element=n,l.options=i,l.bindings=o,l.attachmentLevel=u,l.options=r.ComponentOptions.initComponentOptions(n,t,i),l.attachments=s.attachments,a.Utils.isNonEmptyArray(l.attachments)&&l.renderAttachments(),l}return i(t,e),t.prototype.renderAttachments=function(){var e=this;d.each(this.attachments,function(n){u.QueryUtils.setStateObjectOnQueryResult(e.queryStateModel.get(),n),u.QueryUtils.setSearchInterfaceObjectOnQueryResult(e.searchInterface,n),(e.attachmentLevel>0?e.options.subResultTemplate.instantiateToElement(n):e.options.resultTemplate.instantiateToElement(n)).then(function(i){if(e.autoCreateComponentsInsideResult(i,d.extend({},n,{attachments:[]})),p.$$(i).addClass("coveo-result-attachments-container"),e.element.appendChild(i),e.attachmentHasSubAttachment(n)&&e.attachmentLevel<e.options.maximumAttachmentLevel){var o=p.$$("div").el;i.appendChild(o),new t(o,e.options,e.bindings,n,e.attachmentLevel+1)}})})},t.prototype.attachmentHasSubAttachment=function(e){return!!a.Utils.isNonEmptyArray(e.attachments)||!!a.Utils.isNonEmptyArray(e.childResults)&&(e.attachments=e.childResults,!0)},t.prototype.autoCreateComponentsInsideResult=function(e,n){c.Assert.exists(e);var i=this.searchInterface.options,o={options:i,bindings:this.getBindings(),result:n};l.Initialization.automaticallyCreateComponentsInside(e,o,[t.ID])},t.ID="ResultAttachments",t.doExport=function(){h.exportGlobally({ResultAttachments:t,DefaultResultAttachmentTemplate:s.DefaultResultAttachmentTemplate})},t.options={resultTemplate:f.TemplateComponentOptions.buildTemplateOption({defaultFunction:function(e){return new s.DefaultResultAttachmentTemplate}}),subResultTemplate:f.TemplateComponentOptions.buildTemplateOption({postProcessing:function(e,t){return null!=e?e:t.resultTemplate}}),maximumAttachmentLevel:r.ComponentOptions.buildNumberOption({defaultValue:5,min:0})},t}(o.Component);t.ResultAttachments=m,l.Initialization.registerAutoCreateComponent(m)},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=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])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),o=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))(function(o,r){function s(e){try{u(i.next(e))}catch(e){r(e)}}function a(e){try{u(i.throw(e))}catch(e){r(e)}}function u(e){e.done?o(e.value):new n(function(t){t(e.value)}).then(s,a)}u((i=i.apply(e,t||[])).next())})},r=this&&this.__generator||function(e,t){function n(e){return function(t){return i([e,t])}}function i(n){if(o)throw new TypeError("Generator is already executing.");for(;u;)try{if(o=1,r&&(s=r[2&n[0]?"return":n[0]?"throw":"next"])&&!(s=s.call(r,n[1])).done)return s;switch(r=0,s&&(n=[0,s.value]),n[0]){case 0:case 1:s=n;break;case 4:return u.label++,{value:n[1],done:!1};case 5:u.label++,r=n[1],n=[0];continue;case 7:n=u.ops.pop(),u.trys.pop();continue;default:if(s=u.trys,!(s=s.length>0&&s[s.length-1])&&(6===n[0]||2===n[0])){u=0;continue}if(3===n[0]&&(!s||n[1]>s[0]&&n[1]<s[3])){u.label=n[1];break}if(6===n[0]&&u.label<s[1]){u.label=s[1],s=n;break}if(s&&u.label<s[2]){u.label=s[2],u.ops.push(n);break}s[2]&&u.ops.pop(),u.trys.pop();continue}n=t.call(e,u)}catch(e){n=[6,e],r=0}finally{o=s=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}var o,r,s,a,u={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return a={next:n(0),throw:n(1),return:n(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a};Object.defineProperty(t,"__esModule",{value:!0});var s=n(7),a=n(8),u=n(658),l=n(4),c=n(21),p=n(2),d=n(5),h=n(1),f=n(6),m=n(0),y=n(3),g=n(10),v=n(9);n(659);var b=n(12),S=n(15),C=n(61),w=n(17),_=function(e){function t(n,i,o,r){var s=e.call(this,n,t.ID,o)||this;return s.element=n,s.options=i,s.result=r,s.showingMoreResults=!1,s.options=a.ComponentOptions.initComponentOptions(s.element,t,i),d.Assert.exists(r),s.buildElements(),s.renderElements(),s}return i(t,e),t.prototype.showMoreResults=function(){return o(this,void 0,void 0,function(){var e,t,n;return r(this,function(i){switch(i.label){case 0:return d.Assert.exists(this.result.moreResults),this.cancelAnyPendingShowMore(),this.moreResultsPromise=this.result.moreResults(),this.waitAnimation=h.$$("div",{className:"coveo-loading-spinner"}).el,this.results.appendChild(this.waitAnimation),this.updateElementVisibility(),[4,this.moreResultsPromise];case 1:e=i.sent(),this.childResults=e,this.showingMoreResults=!0,this.usageAnalytics.logClickEvent(g.analyticsActionCauseList.foldingShowMore,this.getAnalyticsMetadata(),this.result,this.element),i.label=2;case 2:return i.trys.push([2,4,,5]),[4,this.displayThoseResults(e)];case 3:return i.sent(),this.updateElementVisibility(e.length),[3,5];case 4:return t=i.sent(),n=new v.Logger(this),n.warn("An error occured when trying to display more results"),[3,5];case 5:return this.moreResultsPromise=void 0,h.$$(this.waitAnimation).detach(),this.waitAnimation=void 0,[2,e]}})})},t.prototype.showLessResults=function(){return o(this,void 0,void 0,function(){return r(this,function(e){switch(e.label){case 0:return this.cancelAnyPendingShowMore(),this.showingMoreResults=!1,this.usageAnalytics.logCustomEvent(g.analyticsActionCauseList.foldingShowLess,this.getAnalyticsMetadata(),this.element),[4,this.displayThoseResults(this.result.childResults)];case 1:return e.sent(),this.updateElementVisibility(),this.scrollToResultElement(),[2]}})})},t.prototype.buildElements=function(){this.buildHeader(),this.buildResults(),this.buildFooter()},t.prototype.renderElements=function(){return o(this,void 0,void 0,function(){return r(this,function(e){switch(e.label){case 0:return[4,this.displayThoseResults(this.result.childResults)];case 1:return e.sent(),this.updateElementVisibility(),h.$$(this.element.parentElement).hasClass("CoveoCardOverlay")&&this.bindOverlayEvents(),0!=this.result.childResults.length||this.result.moreResults||h.$$(this.element).hide(),[2]}})})},t.prototype.buildHeader=function(){var e=h.$$("div",{className:"coveo-folding-header"}).el;this.element.appendChild(e),void 0!=this.options.normalCaption&&void 0!=this.options.expandedCaption&&(this.normalCaption=h.$$("div",{className:"coveo-folding-normal-caption"},this.options.normalCaption).el,e.appendChild(this.normalCaption),this.expandedCaption=h.$$("div",{className:"coveo-folding-expanded-caption"},this.options.expandedCaption).el,e.appendChild(this.expandedCaption)),this.oneResultCaption=h.$$("div",{className:"coveo-folding-oneresult-caption"},this.options.oneResultCaption).el,e.appendChild(this.oneResultCaption)},t.prototype.buildResults=function(){this.results=h.$$("div",{className:"coveo-folding-results"}).el,this.element.appendChild(this.results)},t.prototype.buildFooter=function(){var e=this,t=h.$$("div",{className:"coveo-folding-footer"}).el;if(this.element.parentElement.appendChild(t),this.result.moreResults){this.showMore=h.$$("div",{className:"coveo-folding-footer-section-for-less"}).el,t.appendChild(this.showMore),this.showLess=h.$$("div",{className:"coveo-folding-footer-section-for-more"}).el,t.appendChild(this.showLess);var n=h.$$("div",{className:"coveo-folding-more"},h.$$("span",{className:"coveo-folding-footer-icon"},b.SVGIcons.icons.arrowDown).el).el;S.SVGDom.addClassToSVGInContainer(n,"coveo-folding-more-svg");var i=h.$$("div",{className:"coveo-folding-less"},h.$$("span",{className:"coveo-folding-footer-icon"},b.SVGIcons.icons.arrowUp).el).el;S.SVGDom.addClassToSVGInContainer(i,"coveo-folding-less-svg");var o=h.$$("a",{className:"coveo-folding-show-more"},this.options.moreCaption).el,r=h.$$("a",{className:"coveo-folding-show-less"},this.options.lessCaption).el;(new w.AccessibleButton).withElement(this.showMore).withLabel(this.options.moreCaption).withSelectAction(function(){return e.showMoreResults()}).build(),(new w.AccessibleButton).withElement(this.showLess).withLabel(this.options.lessCaption).withSelectAction(function(){return e.showLessResults()}).build(),this.showMore.appendChild(o),this.showLess.appendChild(r),this.showMore.appendChild(n),this.showLess.appendChild(i)}},t.prototype.updateElementVisibility=function(e){this.normalCaption&&h.$$(this.normalCaption).toggle(!this.showingMoreResults&&this.result.childResults.length>0),this.expandedCaption&&h.$$(this.expandedCaption).toggle(this.showingMoreResults),h.$$(this.oneResultCaption).toggleClass("coveo-hidden",!(e&&1==e)),this.showMore&&(h.$$(this.showMore).toggleClass("coveo-visible",!this.showingMoreResults&&!l.Utils.exists(this.moreResultsPromise)),h.$$(this.showLess).toggleClass("coveo-visible",this.showingMoreResults));var t=h.$$(this.element).find(".coveo-show-if-normal");t&&h.$$(t).toggle(!this.showingMoreResults);var n=h.$$(this.element).find(".coveo-show-if-expanded");n&&h.$$(n).toggle(this.showingMoreResults)},t.prototype.scrollToResultElement=function(){var e=h.$$(this.element).closest("CoveoResult");window.scrollTo(0,new h.Win(window).scrollY()+e.getBoundingClientRect().top)},t.prototype.displayThoseResults=function(e){return o(this,void 0,void 0,function(){var t,n,i=this;return r(this,function(o){switch(o.label){case 0:return t=m.map(e,function(e){return i.renderChildResult(e)}),[4,Promise.all(t)];case 1:return n=o.sent(),h.$$(this.results).empty(),m.each(n,function(e){i.results.appendChild(e)}),[2,!0]}})})},t.prototype.renderChildResult=function(e){return o(this,void 0,void 0,function(){var t;return r(this,function(n){switch(n.label){case 0:return c.QueryUtils.setStateObjectOnQueryResult(this.queryStateModel.get(),e),c.QueryUtils.setSearchInterfaceObjectOnQueryResult(this.searchInterface,e),[4,this.options.resultTemplate.instantiateToElement(e,{wrapInDiv:!1,checkCondition:!1,responsiveComponents:this.searchInterface.responsiveComponents})];case 1:return t=n.sent(),h.$$(t).addClass("coveo-result-folding-child-result"),h.$$(t).toggleClass("coveo-normal-child-result",!this.showingMoreResults),h.$$(t).toggleClass("coveo-expanded-child-result",this.showingMoreResults),[4,p.Initialization.automaticallyCreateComponentsInsideResult(t,e).initResult];case 2:return n.sent(),[2,t]}})})},t.prototype.cancelAnyPendingShowMore=function(){this.moreResultsPromise&&(this.moreResultsPromise=void 0),d.Assert.doesNotExists(this.moreResultsPromise),d.Assert.doesNotExists(this.waitAnimation)},t.prototype.bindOverlayEvents=function(){var e=this;this.bind.one(this.element.parentElement,"openCardOverlay",function(){e.result.moreResults&&e.showMoreResults()})},t.prototype.getAnalyticsMetadata=function(){return{documentURL:this.result.clickUri,documentTitle:this.result.title,author:l.Utils.getFieldValue(this.result,"author")}},t.ID="ResultFolding",t.doExport=function(){y.exportGlobally({ResultFolding:t,DefaultFoldingTemplate:u.DefaultFoldingTemplate})},t.options={resultTemplate:C.TemplateComponentOptions.buildTemplateOption({defaultFunction:function(){return new u.DefaultFoldingTemplate}}),normalCaption:a.ComponentOptions.buildLocalizedStringOption(),expandedCaption:a.ComponentOptions.buildLocalizedStringOption(),moreCaption:a.ComponentOptions.buildLocalizedStringOption({postProcessing:function(e){return e||f.l("ShowMore")}}),lessCaption:a.ComponentOptions.buildLocalizedStringOption({postProcessing:function(e){return e||f.l("ShowLess")}}),oneResultCaption:a.ComponentOptions.buildLocalizedStringOption({postProcessing:function(e){return e||f.l("DisplayingTheOnlyMessage")}})},t}(s.Component);t.ResultFolding=_,p.Initialization.registerAutoCreateComponent(_)},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=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])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0}),n(662);var o,r=n(3),s=n(17),a=n(1),u=n(15),l=n(12),c=n(4),p=n(7),d=n(8),h=n(2);!function(e){e[e.Undefined=0]="Undefined",e[e.Lowest=1]="Lowest",e[e.Low=2]="Low",e[e.Average=3]="Average",e[e.Good=4]="Good",e[e.Best=5]="Best"}(o=t.RatingValues||(t.RatingValues={}));var f=function(e){function t(n,i,o,r){var s=e.call(this,n,t.ID,o)||this;return s.element=n,s.options=i,s.bindings=o,s.result=r,s.options=d.ComponentOptions.initComponentOptions(n,t,i),c.Utils.isNullOrUndefined(r.rating)||s.renderComponent(n,r.rating),s}return i(t,e),t.prototype.renderComponent=function(e,t){for(var n=1;n<=5;n++)this.renderStar(e,n<=t,n)},t.prototype.renderStar=function(e,t,n){var i,o=this,r=a.$$(e).find('a[rating-value="'+n+'"]');null==r?(i=a.$$("a",{className:"coveo-result-rating-star"},l.SVGIcons.icons.star),u.SVGDom.addClassToSVGInContainer(i.el,"coveo-result-rating-star-svg"),e.appendChild(i.el),this.bindings.searchInterface.options.enableCollaborativeRating&&((new s.AccessibleButton).withElement(i).withSelectAction(function(e){var t=e.currentTarget;o.rateDocument(parseInt(t.getAttribute("rating-value")))}).withLabel(n.toString()).build(),i.on("mouseover",function(t){var n=t.currentTarget;o.renderComponent(e,parseInt(n.getAttribute("rating-value")))}),i.on("mouseout",function(){o.renderComponent(e,o.result.rating)})),i.el.setAttribute("rating-value",n.toString())):i=a.$$(r),i.toggleClass("coveo-result-rating-star-active",t)},t.prototype.rateDocument=function(e){var t=this,n={rating:o[e],uniqueId:this.result.uniqueId};this.queryController.getEndpoint().rateDocument(n).then(function(){t.result.rating=e,t.renderComponent(t.element,e)}).catch(function(){t.logger.error("An error occurred while rating the item")})},t.ID="ResultRating",t.doExport=function(){r.exportGlobally({ResultRating:t})},t}(p.Component);t.ResultRating=f,h.Initialization.registerAutoCreateComponent(f)},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=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])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0}),n(663);var o=n(1),r=n(4),s=n(6),a=n(7),u=n(12),l=n(3),c=n(2),p=n(8),d=function(e){function t(n,i,o,r){var s=e.call(this,n,t.ID)||this;return s.element=n,s.options=i,s.bindings=o,s.result=r,s.options=p.ComponentOptions.initComponentOptions(n,t,i),r?(s.renderComponent(),s):(s.logger.error("No result passed to Star Rating component."),s)}return i(t,e),Object.defineProperty(t.prototype,"configuredFieldsAreValid",{get:function(){var e=r.Utils.getFieldValue(this.result,this.options.ratingField),t=r.Utils.getFieldValue(this.result,this.options.numberOfRatingsField);void 0!==t&&(this.numberOfRatings=Number(t)<0?0:Number(t)||0),this.rating=Number(e)<0?0:Number(e)||0;var n=this.options.ratingScale;return n<this.rating||n<=0?(this.logger.error("The rating scale property is either missing or invalid."),!1):(this.rating=Math.round(this.rating*(5/n)),!0)},enumerable:!0,configurable:!0}),t.prototype.renderComponent=function(){if(this.configuredFieldsAreValid){this.makeAccessible();for(var e=1;e<=5;e++)this.renderStar(e<=this.rating);void 0!==this.numberOfRatings&&this.renderNumberOfReviews(this.numberOfRatings)}},t.prototype.makeAccessible=function(){this.setDefaultTabIndex(),this.element.setAttribute("aria-label",this.getAriaLabel())},t.prototype.setDefaultTabIndex=function(){r.Utils.isNullOrUndefined(this.element.getAttribute("tabindex"))&&(this.element.tabIndex=0)},t.prototype.getAriaLabel=function(){var e=!r.Utils.isNullOrUndefined(this.numberOfRatings),t=!!this.numberOfRatings;if(e&&!t)return s.l("NoRatings");var n=s.l("Rated",this.rating,this.options.ratingScale,this.options.ratingScale);return e?n+" "+s.l("RatedBy",this.numberOfRatings,this.numberOfRatings):n},t.prototype.renderStar=function(e){var t=o.$$("span",{className:"coveo-star-rating-star"},u.SVGIcons.icons.star);t.toggleClass("coveo-star-rating-star-active",e),this.element.appendChild(t.el)},t.prototype.renderNumberOfReviews=function(e){var t=o.$$("span",{className:"coveo-star-rating-label"});t.text(e>0?"("+e+")":s.l("NoRatings")),this.element.appendChild(t.el)},t.ID="StarRating",t.doExport=function(){l.exportGlobally({StarRating:t})},t.options={ratingField:p.ComponentOptions.buildFieldOption({required:!0}),numberOfRatingsField:p.ComponentOptions.buildFieldOption(),ratingScale:p.ComponentOptions.buildNumberOption({defaultValue:5,min:1,max:1e5})},t}(a.Component);t.StarRating=d,c.Initialization.registerAutoCreateComponent(d)},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=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])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0}),n(664);var o=n(0),r=n(35),s=n(16),a=n(97),u=n(11),l=n(3),c=n(18),p=n(13),d=n(6),h=n(17),f=n(1),m=n(41),y=n(15),g=n(12),v=n(4),b=n(10),S=n(7),C=n(8),w=n(2),_=n(65),O=n(135),x=n(190),E=n(55),A=function(e){function t(n,i,o){var r=e.call(this,n,t.ID,o)||this;return r.element=n,r.options=i,r.bindings=o,r.preferencePanelCheckboxInput={},r.options=C.ComponentOptions.initComponentOptions(n,t,i),r.preferencePanel=f.$$(r.element).closest(S.Component.computeCssClassNameForType("PreferencesPanel")),r.preferencePanel?(r.preferencePanelLocalStorage=new m.LocalStorageUtils(t.ID),r.mergeLocalPreferencesWithStaticPreferences(),r.bindPreferencePanelEvent(),r.bindBreadcrumbEvent(),r.bindQueryEvent(),r.bind.oneRootElement(s.InitializationEvents.afterComponentsInitialization,function(){return r.createDom()}),r.bind.oneQueryState(c.MODEL_EVENTS.CHANGE_ONE,p.QUERY_STATE_ATTRIBUTES.T,function(){return r.fromPreferencesToCheckboxInput()}),r):(r.logger.warn('Cannot instantiate ResultsFilterPreferences, as there is no "CoveoPreferencesPanel" in your page !'),r)}return i(t,e),t.prototype.createDom=function(){this.container=new O.FormGroup([],d.l("ResultsFilteringExpression")).build(),this.element.appendChild(this.container),this.buildCheckboxesInput(),this.options.showAdvancedFilters&&this.buildAdvancedFilters()},t.prototype.save=function(){this.fromCheckboxInputToPreferences();var e=o.omit(this.preferences,"tab");this.logger.info("Saving preferences",e),this.preferencePanelLocalStorage.save(e)},t.prototype.exitWithoutSave=function(){this.fromPreferencesToCheckboxInput(),this.hideAdvancedFilterBuilder()},t.prototype.bindPreferencePanelEvent=function(){var e=this;this.bind.on(this.preferencePanel,a.PreferencesPanelEvents.savePreferences,function(){return e.save()}),this.bind.on(this.preferencePanel,a.PreferencesPanelEvents.exitPreferencesWithoutSave,function(){return e.exitWithoutSave()})},t.prototype.bindBreadcrumbEvent=function(){var e=this;this.options.includeInBreadcrumb&&(this.bind.onRootElement(r.BreadcrumbEvents.populateBreadcrumb,function(t){return e.handlePopulateBreadcrumb(t)}),this.bind.onRootElement(r.BreadcrumbEvents.clearBreadcrumb,function(){return e.handleClearBreadcrumb()}))},t.prototype.bindQueryEvent=function(){var e=this;this.bind.onRootElement(u.QueryEvents.buildingQuery,function(t){return e.handleBuildingQuery(t)})},t.prototype.handleBuildingQuery=function(e){o.each(this.getActiveFilters(),function(t){v.Utils.isNonEmptyString(t.expression)&&e.queryBuilder.advancedExpression.add(t.expression)})},t.prototype.handlePopulateBreadcrumb=function(e){var t=this.getActiveFilters();if(v.Utils.isNonEmptyArray(t)){var n=f.$$("div",{className:"coveo-results-filter-preferences-breadcrumb"}),i=f.$$("span",{className:"coveo-title"});i.text(d.l("FiltersInYourPreferences")+":"),n.el.appendChild(i.el);var o=f.$$("span",{className:"coveo-values"});n.el.appendChild(o.el);for(var r=0;r<t.length;r++)o.el.appendChild(this.buildBreadcrumb(t[r]));e.breadcrumbs.push({element:n.el})}},t.prototype.handleClearBreadcrumb=function(){this.isFullBreadcrumbClear=!0,o.each(this.getActiveFilters(),function(e){e.selected=!1}),this.fromPreferencesToCheckboxInput(),this.isFullBreadcrumbClear=!1},t.prototype.buildAdvancedFilters=function(){var e=this;this.advancedFilters=f.$$("div",{className:"coveo-advanced-filters"},d.l("Create")).el,this.buildAdvancedFilterInput(),this.buildAdvancedFilterFormValidate(),this.advancedFiltersBuilder=f.$$("div",{className:"coveo-advanced-filters-builder"}).el,this.advancedFiltersBuilder.appendChild(this.advancedFilterFormValidate),f.$$(this.advancedFilters).on("click",function(){return e.openAdvancedFilterSectionOrSaveFilters()});var t=f.$$("a",{href:"https://docs.coveo.com/en/2053/index-content/inspect-items-with-the-content-browser#results-filtering-expressions",className:"coveo-online-help"},"?"),n=f.$$(this.container).find(".coveo-form-group-label");t.insertAfter(n),f.$$(this.advancedFilters).insertAfter(n),this.container.appendChild(this.advancedFiltersBuilder)},t.prototype.buildAdvancedFilterInput=function(){this.advancedFiltersTextInputCaption=new E.TextInput(function(){},d.l("Caption")),this.advancedFiltersTextInputCaption.getInput().setAttribute("required",""),this.advancedFiltersTextInputExpression=new E.TextInput(function(){},d.l("Expression")),this.advancedFiltersTextInputExpression.getInput().setAttribute("required",""),this.advancedFiltersTabSelect=new x.MultiSelect(function(){},this.getAllTabs(),d.l("Tab"))},t.prototype.buildAdvancedFilterFormValidate=function(){var e=this;this.advancedFilterFormValidate=f.$$("form").el;var t=f.$$("input",{type:"submit"}),n=f.$$("span",{className:"coveo-save"},g.SVGIcons.icons.save);y.SVGDom.addClassToSVGInContainer(n.el,"coveo-save-svg");var i=f.$$("span",{className:"coveo-close"},g.SVGIcons.icons.close);y.SVGDom.addClassToSVGInContainer(i.el,"coveo-close-svg");var r=f.$$("div",{className:"coveo-choice-container coveo-close-and-save"});r.el.appendChild(n.el),r.el.appendChild(i.el);var s=this.advancedFiltersTextInputCaption.build();f.$$(s).addClass("coveo-caption");var a=this.advancedFiltersTabSelect.build();f.$$(a).addClass("coveo-tab");var u=this.advancedFiltersTextInputExpression.build();f.$$(u).addClass("coveo-expression"),o.each([s,u,a,r.el,t.el],function(t){e.advancedFilterFormValidate.appendChild(t)}),n.on("click",function(){t.el.click()}),i.on("click",function(){e.hideAdvancedFilterBuilder()}),f.$$(this.advancedFilterFormValidate).on("submit",function(t){return e.validateAndSaveAdvancedFilter(t)})},t.prototype.getAllTabs=function(){var e=S.Component.getComponentRef("Tab");if(e){var t=f.$$(this.root).findAll("."+S.Component.computeCssClassName(e));return o.map(t,function(e){return S.Component.get(e).options.id})}return[]},t.prototype.getPreferencesBoxInputToBuild=function(){return o.map(this.preferences,function(e){return{label:e.caption,tab:e.tab,expression:e.expression}})},t.prototype.buildCheckboxesInput=function(){var e=this;void 0!=this.preferenceContainer&&this.preferenceContainer.remove();var t=this.getPreferencesBoxInputToBuild();v.Utils.isNonEmptyArray(t)&&(this.preferenceContainer=f.$$("div",{className:"coveo-choices-container"}).el,o.each(t,function(t){var n=new _.Checkbox(function(t){e.save();var n=e.preferences[t.getValue()];e.queryController.firstQuery||e.isFullBreadcrumbClear||(e.fromFilterToAnalyticsEvent(n,n.selected?"selected":"unselected"),e.queryController.executeQuery({closeModalBox:!1}))},t.label);f.$$(n.build()).addClass("coveo-choice-container"),e.preferencePanelCheckboxInput[t.label]=n,e.preferenceContainer.appendChild(n.getElement())}),o.each(f.$$(this.preferenceContainer).findAll(".coveo-choice-container"),function(e){e.appendChild(f.$$("div",{className:"coveo-section coveo-section-edit-delete"}).el)}),f.$$(this.container).append(this.preferenceContainer),this.buildEditAdvancedFilter(),this.buildDeleteAdvancedFilter(),this.fromPreferencesToCheckboxInput())},t.prototype.buildDeleteAdvancedFilter=function(){var e=this;o.each(this.preferences,function(t){if(t.custom){var n=f.$$("span",{className:"coveo-delete"},g.SVGIcons.icons.delete).el;y.SVGDom.addClassToSVGInContainer(n,"coveo-delete-svg");var i=e.getFilterElementByCaption(t.caption);f.$$(i).find(".coveo-section-edit-delete").appendChild(n),f.$$(n).on("click",function(){return e.confirmDelete(t,i)})}})},t.prototype.buildEditAdvancedFilter=function(){var e=this;o.each(this.preferences,function(t){if(t.custom){var n=f.$$("span",{className:"coveo-edit"},g.SVGIcons.icons.edit);y.SVGDom.addClassToSVGInContainer(n.el,"coveo-edit-svg");var i=e.getFilterElementByCaption(t.caption);f.$$(i).find(".coveo-section-edit-delete").appendChild(n.el),n.on("click",function(){return e.editElement(t,i)})}})},t.prototype.buildBreadcrumb=function(e){var t=this,n=f.$$("span",{className:"coveo-value"}),i=f.$$("span",{className:"coveo-caption"});i.text(e.caption),n.el.appendChild(i.el);var o=f.$$("span",{className:"coveo-clear"},g.SVGIcons.icons.mainClear);n.el.appendChild(o.el);var r=function(){e.selected=!1,t.fromFilterToAnalyticsEvent(e,"cleared from breadcrumb"),t.fromPreferencesToCheckboxInput()};return(new h.AccessibleButton).withElement(n).withLabel(d.l("RemoveFilterOn",e.caption)).withSelectAction(r).build(),n.el},t.prototype.confirmDelete=function(e,t){if(confirm(d.l("AreYouSureDeleteFilter",e.caption,e.expression))){var n=e.selected;this.deleteFilterPreference(e,t),n&&(this.fromFilterToAnalyticsEvent(e,"deleted"),this.queryController.executeQuery({closeModalBox:!1}))}},t.prototype.editElement=function(e,t){var n=this.preferences[e.caption].caption,i=this.preferences[e.caption].tab,o=this.preferences[e.caption].expression;this.deleteFilterPreference(e,t),this.openAdvancedFilterSectionOrSaveFilters(),this.populateEditSection({tab:i,caption:n,expression:o})},t.prototype.populateEditSection=function(e){void 0===e&&(e={tab:[""],caption:"",expression:""}),this.advancedFiltersTextInputCaption.setValue(e.caption),this.advancedFiltersTextInputExpression.setValue(e.expression),this.advancedFiltersTabSelect.setValue(e.tab)},t.prototype.deleteFilterPreference=function(e,t){this.preferencePanelLocalStorage.remove(e.caption),delete this.preferences[e.caption],f.$$(f.$$(t).closest(".coveo-choice-container")).detach()},t.prototype.openAdvancedFilterSectionOrSaveFilters=function(){f.$$(this.advancedFiltersBuilder).hasClass("coveo-active")?(f.$$(f.$$(this.advancedFilterFormValidate).find("input[type=submit]")).trigger("click"),this.hideAdvancedFilterBuilder()):(this.populateEditSection(),this.showAdvancedFilterBuilder())},t.prototype.validateAndSaveAdvancedFilter=function(e){e.preventDefault(),this.hideAdvancedFilterBuilder();var t=this.advancedFiltersTextInputCaption.getValue(),n=this.advancedFiltersTextInputExpression.getValue(),i=this.advancedFiltersTabSelect.getValue();this.preferences[t]={caption:t,custom:!0,expression:n,tab:i,selected:!0},this.buildCheckboxesInput(),this.save(),this.queryStateModel.set(p.QueryStateModel.attributesEnum.t,this.getActiveTab()),this.advancedFiltersTextInputCaption.reset(),this.advancedFiltersTextInputExpression.reset(),this.advancedFiltersTabSelect.reset(),this.container.appendChild(this.advancedFiltersBuilder),this.fromFilterToAnalyticsEvent(this.preferences[t],"saved"),this.queryController.executeQuery({closeModalBox:!1})},t.prototype.fromPreferencesToCheckboxInput=function(){var e=this;o.each(this.getActiveFilters(),function(t){e.preferencePanelCheckboxInput[t.caption].select()}),o.each(this.getInactiveFilters(),function(t){e.preferencePanelCheckboxInput[t.caption].reset()}),o.each(this.getDormantFilters(),function(t){e.preferencePanelCheckboxInput[t.caption].select()})},t.prototype.fromCheckboxInputToPreferences=function(){if(this.preferencePanelCheckboxInput){var e=o.map(o.filter(this.preferencePanelCheckboxInput,function(e){return e.isSelected()}),function(e){return e.getValue()});o.each(this.preferences,function(t){o.contains(e,t.caption)?t.selected=!0:t.selected=!1})}},t.prototype.getDormantFilters=function(){var e=this,t=this.getActiveTab();return o.filter(this.preferences,function(n){return n.selected&&!e.filterIsInActiveTab(n,t)})},t.prototype.getActiveFilters=function(){var e=this,t=this.getActiveTab();return o.filter(this.preferences,function(n){return n.selected&&e.filterIsInActiveTab(n,t)})},t.prototype.getInactiveFilters=function(){var e=this,t=this.getActiveTab();return o.filter(this.preferences,function(n){return!n.selected||!e.filterIsInActiveTab(n,t)})},t.prototype.getActiveTab=function(){return this.queryStateModel.get(p.QueryStateModel.attributesEnum.t)},t.prototype.filterIsInActiveTab=function(e,t){return e.tab=o.compact(e.tab),o.contains(e.tab,t)||v.Utils.isEmptyArray(e.tab)},t.prototype.getFilterElementByCaption=function(e){return f.$$(this.preferenceContainer).find("input[value='"+e+"']").parentElement},t.prototype.fromResultsFilterOptionToResultsPreferenceInterface=function(){var e={};return o.each(this.options.filters,function(t,n){e[n]={expression:t.expression,tab:t.tab,selected:!!t.selected&&t.selected,custom:!1,caption:n}}),e},t.prototype.mergeLocalPreferencesWithStaticPreferences=function(){var e=this.fromResultsFilterOptionToResultsPreferenceInterface(),t=this.preferencePanelLocalStorage.load(),n=o.filter(t,function(t){var n=t.custom,i=o.find(e,function(e){return e.caption==t.caption});return n||void 0!=i}),i={};o.each(n,function(e){i[e.caption]={expression:e.expression,tab:e.tab,selected:e.selected,custom:e.custom,caption:e.caption}}),this.preferences=v.Utils.extendDeep(e,i)},t.prototype.fromFilterToAnalyticsEvent=function(e,t){this.usageAnalytics.logSearchEvent(b.analyticsActionCauseList.customfiltersChange,{customFilterName:e.caption,customFilterExpression:e.expression,customFilterType:t})},t.prototype.enlargeModalBox=function(){var e=f.$$(document.body).find(".coveo-modal-container");e&&f.$$(e).addClass("coveo-mod-big")},t.prototype.shrinkModalBox=function(){var e=f.$$(document.body).find(".coveo-modal-container");e&&f.$$(e).removeClass("coveo-mod-big")},t.prototype.showAdvancedFilterBuilder=function(){this.advancedFiltersBuilder&&(f.$$(this.advancedFiltersBuilder).addClass("coveo-active"),this.enlargeModalBox())},t.prototype.hideAdvancedFilterBuilder=function(){this.advancedFiltersBuilder&&(f.$$(this.advancedFiltersBuilder).removeClass("coveo-active"),this.shrinkModalBox())},t.ID="ResultsFiltersPreferences",t.doExport=function(){l.exportGlobally({ResultsFiltersPreferences:t})},t.options={includeInBreadcrumb:C.ComponentOptions.buildBooleanOption({defaultValue:!0}),showAdvancedFilters:C.ComponentOptions.buildBooleanOption({defaultValue:!0}),filters:C.ComponentOptions.buildJsonOption()},t}(S.Component);t.ResultsFiltersPreferences=A,w.Initialization.registerAutoCreateComponent(A)},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=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])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0}),n(665);var o=n(0),r=n(16),s=n(11),a=n(29),u=n(3),l=n(5),c=n(18),p=n(13),d=n(6),h=n(17),f=n(24),m=n(1),y=n(112),g=n(10),v=n(7),b=n(8),S=n(2),C=n(0),w=function(e){function t(n,i,o){var a=e.call(this,n,t.ID,o)||this;return a.element=n,a.options=i,a.options=b.ComponentOptions.initComponentOptions(n,t,i),a.bind.onRootElement(r.InitializationEvents.afterInitialization,function(){return a.resolveInitialState()}),a.bind.onRootElement(s.QueryEvents.querySuccess,function(e){return a.handleQuerySuccess(e)}),a.bind.onRootElement(s.QueryEvents.queryError,function(){return a.handleQueryError()}),a.bind.onRootElement(s.QueryEvents.noResults,function(e){return a.handleNoResults()}),a.bind.onQueryState(c.MODEL_EVENTS.CHANGE_ONE,p.QUERY_STATE_ATTRIBUTES.NUMBER_OF_RESULTS,function(e){return a.handleQueryStateModelChanged(e)}),a.addAlwaysActiveListeners(),a.initComponent(),a}return i(t,e),t.prototype.setResultsPerPage=function(e,t){void 0===t&&(t=g.analyticsActionCauseList.pagerResize),l.Assert.exists(e),l.Assert.check(this.isValidChoice(e),"The specified number of results is not available in the options."),this.updateResultsPerPage(e),this.updateQueryStateModelResultsPerPage(),this.logAnalyticsEvent(t),this.executeQuery()},Object.defineProperty(t.prototype,"resultsPerPage",{get:function(){return this.currentResultsPerPage},enumerable:!0,configurable:!0}),t.prototype.updateResultsPerPage=function(e){this.queryController.options.resultsPerPage=e,this.searchInterface.resultsPerPage=e,this.currentResultsPerPage=e},t.prototype.updateQueryStateModelResultsPerPage=function(){this.queryStateModel.set(p.QueryStateModel.attributesEnum.numberOfResults,this.currentResultsPerPage)},t.prototype.logAnalyticsEvent=function(e){this.usageAnalytics.logCustomEvent(e,{currentResultsPerPage:this.currentResultsPerPage},this.element)},t.prototype.executeQuery=function(){this.queryController.executeQuery({ignoreWarningSearchEvent:!0,keepLastSearchUid:!0,origin:this})},t.prototype.handleQueryStateModelChanged=function(e){var t=e.value;this.isValidChoice(t)?this.updateResultsPerPage(t):(this.logInvalidConfiguredChoiceWarning(t),this.resolveInitialState())},t.prototype.addAlwaysActiveListeners=function(){var e=this;this.searchInterface.element.addEventListener(a.ResultListEvents.newResultsDisplayed,function(){return y.ResultListUtils.hideIfInfiniteScrollEnabled(e)})},t.prototype.resolveInitialState=function(){this.updateResultsPerPage(this.getInitialChoice()),this.updateQueryStateModelResultsPerPage()},t.prototype.getInitialChoice=function(){var e=this.options.choicesDisplayed[0],t=this.options.initialChoice,n=this.queryStateModel.get(p.QueryStateModel.attributesEnum.numberOfResults);if(n!==p.QueryStateModel.defaultAttributes.numberOfResults&&this.isValidChoice(n))return n;if(void 0!==t){if(this.isValidChoice(t))return t;this.logInvalidConfiguredChoiceWarning(t)}return e},t.prototype.isValidChoice=function(e){return-1!==this.options.choicesDisplayed.indexOf(e)},t.prototype.logInvalidConfiguredChoiceWarning=function(e){var t=this.options.choicesDisplayed;this.logger.warn("The choice "+e+" is not within the choices displayed. Consider setting a value that is valid: "+t+". The first choice will be selected instead.")},t.prototype.initComponent=function(){this.span=m.$$("span",{id:C.uniqueId("coveo-results-per-page-text-"),className:"coveo-results-per-page-text"},d.l("ResultsPerPage")).el,this.element.appendChild(this.span),this.list=m.$$("ul",{className:"coveo-results-per-page-list",role:"radiogroup","aria-labelledby":this.span.id}).el,this.element.appendChild(this.list)},t.prototype.render=function(){var e=this;m.$$(this.span).removeClass("coveo-results-per-page-no-results");for(var t=this.options.choicesDisplayed,n=this,i=0;i<t.length;i++)!function(){var o=m.$$("li",{className:"coveo-results-per-page-list-item",role:"radio",tabindex:0}).el,r=t[i],s=r===n.currentResultsPerPage;s&&m.$$(o).addClass("coveo-active"),o.setAttribute("aria-checked",s.toString());var a=function(){return e.handleClickPage(r)};(new h.AccessibleButton).withElement(o).withLabel(d.l("DisplayResultsPerPage",t[i].toString())).withClickAction(a).withEnterKeyboardAction(a).build(),o.appendChild(m.$$("a",{className:"coveo-results-per-page-list-item-text",tabindex:-1,ariaHidden:"true"},t[i].toString()).el),n.list.appendChild(o)}()},t.prototype.handleQueryError=function(){this.reset()},t.prototype.handleNoResults=function(){this.reset()},t.prototype.handleQuerySuccess=function(e){if(this.searchInterface.isResultsPerPageModifiedByPipeline){this.logger.info("Results per page was modified by backend code (query pipeline). ResultsPerPage component will be hidden",this),this.reset();var t=this.getInitialChoice();return void this.updateResultsPerPage(t)}0!=e.results.results.length&&(this.reset(),this.render())},t.prototype.handleClickPage=function(e){l.Assert.exists(e),this.setResultsPerPage(e)},t.prototype.reset=function(){m.$$(this.span).addClass("coveo-results-per-page-no-results"),m.$$(this.list).empty()},t.ID="ResultsPerPage",t.doExport=function(){u.exportGlobally({ResultsPerPage:t})},t.options={choicesDisplayed:b.ComponentOptions.buildCustomListOption(function(e){var t=o.map(e,function(e){return parseInt(e,10)});return 0==t.length?null:t},{defaultFunction:function(){return f.DeviceUtils.isMobileDevice()?[10,25,50]:[10,25,50,100]}}),initialChoice:b.ComponentOptions.buildNumberOption()},t}(v.Component);t.ResultsPerPage=w,S.Initialization.registerAutoCreateComponent(w)},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=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])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0}),n(666);var o=n(0),r=n(97),s=n(3),a=n(5),u=n(31),l=n(28),c=n(6),p=n(1),d=n(205),h=n(10),f=n(7),m=n(8),y=n(2),g=n(65),v=n(135),b=n(95),S=function(e){function t(n,i,o){var s=e.call(this,n,t.ID,o)||this;return s.element=n,s.options=i,s.bindings=o,s.preferencePanelCheckboxInputs={},s.preferencePanelRadioInputs={},s.options=m.ComponentOptions.initComponentOptions(n,t,i),s.preferencesPanel=p.$$(s.element).closest(f.Component.computeCssClassNameForType("PreferencesPanel")),s.preferencePanelLocalStorage=new d.StorageUtils(t.ID),a.Assert.exists(s.componentOptionsModel),a.Assert.exists(s.preferencesPanel),s.preferences=s.preferencePanelLocalStorage.load()||{},s.adjustPreferencesToComponentConfig(),m.ComponentOptions.initComponentOptions(s.element,t,s.options),s.updateComponentOptionsModel(),s.bind.on(s.preferencesPanel,r.PreferencesPanelEvents.savePreferences,function(){return s.save()}),s.bind.on(s.preferencesPanel,r.PreferencesPanelEvents.exitPreferencesWithoutSave,function(){return s.exitWithoutSave()}),s.buildCheckboxesInput(),s.buildRadiosInput(),s}return i(t,e),t.prototype.save=function(){this.fromInputToPreferences(),this.logger.info("Saving preferences",this.preferences),this.preferencePanelLocalStorage.save(this.preferences),this.updateComponentOptionsModel()},t.prototype.exitWithoutSave=function(){this.fromPreferencesToCheckboxInput()},t.prototype.updateComponentOptionsModel=function(){var e=o.pick(this.preferences,"openInOutlook","alwaysOpenInNewWindow"),t=o.pick(this.preferences,"enableQuerySyntax");this.componentOptionsModel.set(l.ComponentOptionsModel.attributesEnum.resultLink,e),this.componentOptionsModel.set(l.ComponentOptionsModel.attributesEnum.searchBox,t)},t.prototype.buildRadiosInput=function(){var e=this;if(this.options.enableQuerySyntax){var t=function(t){return new b.RadioButton(function(n){e.fromPreferenceChangeEventToUsageAnalyticsLog(n.isSelected()?"selected":"unselected",t),e.save(),e.queryController.executeQuery({closeModalBox:!1})},t,"coveo-results-preferences-query-syntax")},n=o.map(["On","Off","Automatic"],function(e){return c.l(e)}),i=o.map(n,function(n){var i=t(n);return e.preferencePanelRadioInputs[n]=i,i}),r=new v.FormGroup(i,c.l("EnableQuerySyntax"));p.$$(this.element).append(r.build()),this.fromPreferencesToRadioInput()}},t.prototype.buildCheckboxesInput=function(){var e=this,t=function(t){var n=new g.Checkbox(function(n){e.fromPreferenceChangeEventToUsageAnalyticsLog(n.isSelected()?"selected":"unselected",t),e.save(),e.queryController.executeQuery({closeModalBox:!1})},t);return e.preferencePanelCheckboxInputs[t]=n,n},n=[];this.options.enableOpenInOutlook&&n.push(t(c.l("OpenInOutlookWhenPossible"))),this.options.enableOpenInNewWindow&&n.push(t(c.l("AlwaysOpenInNewWindow"))),this.element.appendChild(new v.FormGroup(n,c.l("ResultLinks")).build()),this.fromPreferencesToCheckboxInput()},t.prototype.fromInputToPreferences=function(){var e=this;this.preferences=this.preferences||{openInOutlook:!1,alwaysOpenInNewWindow:!1,enableQuerySyntax:void 0},o.each(this.preferencePanelCheckboxInputs,function(t,n){n==c.l("OpenInOutlookWhenPossible")&&(e.isSelected(c.l("OpenInOutlookWhenPossible"),n,t)?e.preferences.openInOutlook=!0:null!=e.preferences.openInOutlook&&(e.preferences.openInOutlook=!1)),n==c.l("AlwaysOpenInNewWindow")&&(e.isSelected(c.l("AlwaysOpenInNewWindow"),n,t)?e.preferences.alwaysOpenInNewWindow=!0:null!=e.preferences.alwaysOpenInNewWindow&&(e.preferences.alwaysOpenInNewWindow=!1))}),o.each(this.preferencePanelRadioInputs,function(t,n){e.isSelected(c.l("On"),n,t)&&(e.preferences.enableQuerySyntax=!0),e.isSelected(c.l("Off"),n,t)&&(e.preferences.enableQuerySyntax=!1),e.isSelected(c.l("Automatic"),n,t)&&delete e.preferences.enableQuerySyntax})},t.prototype.fromPreferencesToCheckboxInput=function(){this.preferences.openInOutlook&&this.preferencePanelCheckboxInputs[c.l("OpenInOutlookWhenPossible")].select(!1),this.preferences.alwaysOpenInNewWindow&&this.preferencePanelCheckboxInputs[c.l("AlwaysOpenInNewWindow")].select(!1)},t.prototype.fromPreferencesToRadioInput=function(){!0===this.preferences.enableQuerySyntax?this.preferencePanelRadioInputs[c.l("On")].select(!1):!1===this.preferences.enableQuerySyntax?this.preferencePanelRadioInputs[c.l("Off")].select(!1):this.preferencePanelRadioInputs[c.l("Automatic")].select(!1)},t.prototype.fromPreferenceChangeEventToUsageAnalyticsLog=function(e,t){this.usageAnalytics.logCustomEvent(h.analyticsActionCauseList.preferencesChange,{preferenceName:t,preferenceType:e},this.element),this.usageAnalytics.logSearchEvent(h.analyticsActionCauseList.preferencesChange,{preferenceName:t,preferenceType:e})},t.prototype.adjustPreferencesToComponentConfig=function(){var e=this,t=!1;this.options.enableOpenInNewWindow||(delete this.preferences.alwaysOpenInNewWindow,t=!0),this.options.enableOpenInOutlook||(delete this.preferences.openInOutlook,t=!0),this.options.enableQuerySyntax||(delete this.preferences.enableQuerySyntax,t=!0),t&&u.Defer.defer(function(){e.save()})},t.prototype.isSelected=function(e,t,n){return e==t&&n.isSelected()},t.ID="ResultsPreferences",t.doExport=function(){s.exportGlobally({ResultsPreferences:t})},t.options={enableOpenInOutlook:m.ComponentOptions.buildBooleanOption({defaultValue:!1}),enableOpenInNewWindow:m.ComponentOptions.buildBooleanOption({defaultValue:!0}),enableQuerySyntax:m.ComponentOptions.buildBooleanOption({defaultValue:!1})},t}(f.Component);t.ResultsPreferences=S,y.Initialization.registerAutoCreateComponent(S)},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=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])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0}),n(667);var o=n(0),r=n(3),s=n(5),a=n(13),u=n(6),l=n(1),c=n(25),p=n(22),d=n(15),h=n(12),f=n(4),m=n(10),y=n(7),g=n(8),v=n(2),b=function(e){function t(n,i,r,a){var u=e.call(this,n,t.ID,r)||this;if(u.element=n,u.options=i,u.result=a,u.options=g.ComponentOptions.initComponentOptions(n,t,i),u.result=a||u.resolveResult(),s.Assert.exists(u.componentOptionsModel),s.Assert.exists(u.result),!u.options.field)return u.logger.error("You must specify a field to the ResultTagging component"),u;var c=f.Utils.getFieldValue(u.result,u.options.field);return c&&f.Utils.isNonEmptyString(c)?u.tags=c.split(";"):c&&f.Utils.isNonEmptyArray(c)?u.tags=c:u.tags=[],u.tags=o.map(u.tags,function(e){return e.trim()}),u.tagZone=l.$$("div",{className:"coveo-result-tagging-tag-zone"}).el,n.appendChild(u.tagZone),n.appendChild(u.buildTagIcon()),u.autoCompleteZone=l.$$("div",{className:"coveo-result-tagging-auto-complete-zone"}).el,n.appendChild(u.autoCompleteZone),u.autoCompleteZone.appendChild(u.buildTextBox()),u.autoCompleteZone.appendChild(u.buildAddIcon()),u.autoCompleteZone.appendChild(u.buildClearIcon()),u.buildExistingTags(),u}return i(t,e),t.prototype.buildExistingTags=function(){var e=this;this.tags&&o.each(this.tags,function(t){e.tagZone.appendChild(e.buildTagValue(t))})},t.prototype.buildTagIcon=function(){var e=this,t=l.$$("div",{className:"coveo-result-tagging-add-tag"}),n=l.$$("span",{className:"coveo-result-tagging-add-tag-text"});n.text(u.l("EnterTag"));var i=l.$$("span",{className:"coveo-result-tagging-add-tag-icon"});return i.on("click",function(){o.defer(function(){e.focusOnTextBox()},20)}),t.el.appendChild(i.el),t.append(n.el),t.setAttribute("title",u.l("EnterTag")),t.el},t.prototype.focusOnTextBox=function(){this.textBox.focus()},t.prototype.buildTagValue=function(e){var t=this,n=l.$$("div",{className:"coveo-result-tagging-coveo-tag"});n.el.appendChild(this.buildShortenedTagWithTitle(e));var i=l.$$("span",{className:"coveo-result-tagging-delete-icon"},h.SVGIcons.icons.delete);return d.SVGDom.addClassToSVGInContainer(i.el,"coveo-result-tagging-delete-icon-svg"),n.el.appendChild(i.el),i.on("click",function(){t.doRemoveTag(n.el,e.toLowerCase())}),n.el},t.prototype.buildShortenedTagWithTitle=function(e){var t=p.StringUtils.removeMiddle(e,16,"..."),n=l.$$("a",{title:e,href:"javascript:void(0);"});return n.text(t),this.bindFacetEventOnValue(n.el,e),n.el},t.prototype.buildTextBox=function(){var e=this;return this.textBox=l.$$("input",{type:"text",className:"coveo-add-tag-textbox",placeholder:u.l("EnterTag")}).el,this.autoCompletePopup=l.$$("div",{className:t.autoCompleteClass}).el,this.autoCompleteZone.appendChild(this.autoCompletePopup),this.manageAutocompleteAutoHide(),l.$$(this.textBox).on("keyup",function(t){t.keyCode==c.KEYBOARD.UP_ARROW||t.keyCode==c.KEYBOARD.DOWN_ARROW||t.keyCode==c.KEYBOARD.ENTER?e.manageUpDownEnter(t.keyCode):c.KeyboardUtils.isArrowKeyPushed(t.keyCode)||e.populateSuggestions(),l.$$(e.element).removeClass("coveo-error")}),l.$$(this.textBox).on("click",function(){e.populateSuggestions()}),this.textBox},t.prototype.buildAddIcon=function(){var e=this,t=l.$$("div",{className:"coveo-result-tagging-add-tag-tick-icon"},h.SVGIcons.icons.taggingOk);d.SVGDom.addClassToSVGInContainer(t.el,"coveo-result-tagging-add-tag-tick-icon-svg");var n=l.$$("span");return n.on("click",function(){e.doAddTag()}),t.el.appendChild(n.el),t.el},t.prototype.buildClearIcon=function(){var e=this,t=l.$$("div",{className:"coveo-result-tagging-clear-icon"},h.SVGIcons.icons.clear);d.SVGDom.addClassToSVGInContainer(t.el,"coveo-result-tagging-clear-icon-svg");var n=l.$$("span");return n.on("click",function(){e.textBox.value=""}),t.el.appendChild(n.el),t.el},t.prototype.bindFacetEventOnValue=function(e,t){var n=this,i=a.QueryStateModel.getFacetId(this.options.field),r=this.queryStateModel.get(i),s=this.componentStateModel.get(i),u=o.filter(s,function(e){return!e.disabled}).length>0;null!=r&&u&&(l.$$(e).on("click",function(){o.contains(r,t)?n.queryStateModel.set(i,o.without(r,t)):n.queryStateModel.set(i,o.union(r,[t])),n.queryController.deferExecuteQuery({beforeExecuteQuery:function(){return n.usageAnalytics.logSearchEvent(m.analyticsActionCauseList.documentTag,{facetId:n.options.field,facetField:n.options.field,facetValue:t})}})}),o.contains(r,t)&&l.$$(e).addClass("coveo-selected"),l.$$(e).addClass("coveo-clickable"))},t.prototype.clearPopup=function(){l.$$(this.autoCompletePopup).hide(),l.$$(this.autoCompletePopup).empty()},t.prototype.showPopup=function(){l.$$(this.autoCompletePopup).show()},t.prototype.populateSuggestions=function(){var e=this,t=this.queryController.getEndpoint(),n=this.textBox.value,i={field:this.options.field,ignoreAccents:!0,sortCriteria:"occurences",maximumNumberOfValues:this.options.suggestBoxSize,queryOverride:"@uri",pattern:this.buildRegEx(n),patternType:"RegularExpression"};t.listFieldValues(i).then(function(t){e.clearPopup(),o.each(t,function(t){e.autoCompletePopup.appendChild(e.buildSelectableValue(t.lookupValue))}),e.showPopup(),e.autoCompletePopup.style.width=e.textBox.offsetWidth+" px"})},t.prototype.manageAutocompleteAutoHide=function(){var e,n=this;l.$$(this.textBox).on("mouseover",function(){clearTimeout(e)}),l.$$(this.autoCompletePopup).on("mouseout",function(i){l.$$(i.target).hasClass(t.autoCompleteClass)&&(e=setTimeout(function(){n.clearPopup()},n.options.autoCompleteTimer))}),l.$$(this.autoCompletePopup).on("mouseenter",function(){clearTimeout(e)}),l.$$(this.element).on("mouseenter",function(){n.clearPopup(),l.$$(n.element).addClass("coveo-opened")}),l.$$(l.$$(this.element).closest(".CoveoResult")).on("mouseleave",function(){n.clearPopup(),""==n.textBox.value&&l.$$(n.element).removeClass("coveo-opened")}),l.$$(l.$$(this.element).closest(".CoveoResult")).on("focusout",function(e){""!=n.textBox.value&&l.$$(e.target).closest(".CoveoResult")!=l.$$(n.element).closest(".CoveoResult")&&l.$$(n.element).addClass("coveo-error")}),l.$$(l.$$(this.element).closest(".CoveoResult")).on("focusin",function(){l.$$(n.element).removeClass("coveo-error")})},t.prototype.buildRegEx=function(e){var t=this;return"(?=.*"+e+")"+o.map(this.tags,function(e){return t.buildTermToExclude(e)}).join("")+".*"},t.prototype.buildTermToExclude=function(e){return"(?!^"+e+"$)"},t.prototype.manageUpDownEnter=function(e){var t=l.$$(this.element).findAll(".coveo-selectable");if(e==c.KEYBOARD.ENTER)return void this.doAddTag();if(t.length>0){var n=this.computeNextIndex(e,t);n=Math.max(0,n),n=Math.min(t.length-1,n);var i=l.$$(t[n]);i.addClass("coveo-selected"),this.textBox.value=i.text()}},t.prototype.computeNextIndex=function(e,t){var n=0;return o.each(t,function(t,i){l.$$(t).hasClass("coveo-selected")&&(e==c.KEYBOARD.UP_ARROW?n=i-1:e==c.KEYBOARD.DOWN_ARROW&&(n=i+1),l.$$(t).removeClass("coveo-selected"))}),n},t.prototype.buildSelectableValue=function(e){var t=this,n=l.$$("div",{className:"coveo-selectable"});return n.el.appendChild(this.buildShortenedTagWithTitle(e)),n.on("click",function(){t.doAddTagWithValue(e)}),n.el},t.prototype.doRemoveTag=function(e,t){var n=this,i={fieldName:this.options.field,fieldValue:t,doAdd:!1,uniqueId:this.result.uniqueId};this.queryController.getEndpoint().tagDocument(i).then(function(){n.tags.splice(o.indexOf(n.tags,t),1),l.$$(e).detach()})},t.prototype.doAddTagWithValue=function(e){var t=this;o.each(e.split(","),function(e){t.doAddSingleTagValue(e)})},t.prototype.doAddSingleTagValue=function(e){var t=this;if(this.clearPopup(),o.indexOf(this.tags,e)>-1)return void l.$$(this.element).addClass("coveo-error");this.tags.push(e);var n={fieldName:this.options.field,fieldValue:e,doAdd:!0,uniqueId:this.result.uniqueId};this.queryController.getEndpoint().tagDocument(n).then(function(){t.tagZone.appendChild(t.buildTagValue(e)),t.textBox.value="",l.$$(t.element).removeClass("coveo-error")}).catch(function(){t.tags=o.without(t.tags,o.findWhere(t.tags,e))})},t.prototype.doAddTag=function(){var e=f.Utils.trim(this.textBox.value.toLowerCase());this.doAddTagWithValue(e)},t.ID="ResultTagging",t.autoCompleteClass="coveo-result-tagging-auto-complete",t.doExport=function(){r.exportGlobally({ResultTagging:t})},t.options={field:g.ComponentOptions.buildFieldOption({match:function(e){return"Tag"==e.type},required:!0}),suggestBoxSize:g.ComponentOptions.buildNumberOption({defaultValue:5,min:0}),autoCompleteTimer:g.ComponentOptions.buildNumberOption({defaultValue:2e3,min:0})},t.AUTO_COMPLETE_CLASS="coveo-result-tagging-auto-complete",t}(y.Component);t.ResultTagging=b,v.Initialization.registerAutoCreateComponent(b)},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=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])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),r=n(84),s=n(3),a=n(5),u=n(226),l=n(6),c=n(1),p=n(25),d=n(21),h=n(15),f=n(12),m=n(4),y=n(10),g=n(7),v=n(8),b=n(2),S=function(e){function t(n,i,o,s){var u=e.call(this,n,t.ID,o)||this;u.element=n,u.options=i,u.bindings=o,u.result=s,u.options=v.ComponentOptions.initComponentOptions(n,t,i),a.Assert.exists(u.result),u.container=c.$$(u.element),u.text=c.$$("span");var l=u.buildIcon(),d=u.buildLoadingIcon();return u.container.append(l),u.container.append(d),u.container.append(u.text.el),u.container.on("click",function(){return u.toggleFollow()}),u.container.setAttribute("tabindex","0"),u.bind.on(u.container,"keyup",p.KeyboardUtils.keypressAction(p.KEYBOARD.ENTER,function(){return u.toggleFollow()})),u.bind.onRootElement(r.SearchAlertsEvents.searchAlertsDeleted,function(e){return u.handleSubscriptionDeleted(e)}),u.bind.onRootElement(r.SearchAlertsEvents.searchAlertsCreated,function(e){return u.handleSubscriptionCreated(e)}),u.container.addClass("coveo-follow-item-loading"),u.updateIsFollowed(),u}return i(t,e),t.prototype.setFollowed=function(e){this.container.removeClass("coveo-follow-item-loading"),this.subscription=e,this.container.addClass("coveo-follow-item-followed"),this.text.text(l.l("SearchAlerts_unFollowing"))},t.prototype.setNotFollowed=function(){this.container.removeClass("coveo-follow-item-loading"),this.subscription=t.buildFollowRequest(this.getId(),this.result.title,this.options),this.container.removeClass("coveo-follow-item-followed"),this.text.text(l.l("SearchAlerts_follow"))},t.prototype.toggleFollow=function(){var e=this;this.container.hasClass("coveo-follow-item-loading")||(this.container.removeClass("coveo-follow-item-followed"),this.container.addClass("coveo-follow-item-loading"),this.subscription.id?(this.logAnalyticsEvent(y.analyticsActionCauseList.searchAlertsUnfollowDocument),this.queryController.getEndpoint().deleteSubscription(this.subscription).then(function(){var t={subscription:e.subscription,dom:e.element};c.$$(e.root).trigger(r.SearchAlertsEvents.searchAlertsDeleted,t)}).catch(function(){e.container.removeClass("coveo-follow-item-loading");var t={dom:e.element};c.$$(e.root).trigger(r.SearchAlertsEvents.searchAlertsFail,t)})):(this.logAnalyticsEvent(y.analyticsActionCauseList.searchAlertsFollowDocument),this.queryController.getEndpoint().follow(this.subscription).then(function(t){var n={subscription:t,dom:e.element};c.$$(e.root).trigger(r.SearchAlertsEvents.searchAlertsCreated,n)}).catch(function(){e.container.removeClass("coveo-follow-item-loading");var t={dom:e.element};c.$$(e.root).trigger(r.SearchAlertsEvents.searchAlertsFail,t)})))},t.prototype.getText=function(){return this.text.text()},t.prototype.updateIsFollowed=function(){var e=this;this.queryController.getEndpoint().listSubscriptions().then(function(t){if(o.isArray(t)){var n=o.find(t,function(t){var n=t.typeConfig;return n&&null!=n.id&&n.id==e.getId()});null!=n?e.setFollowed(n):e.setNotFollowed()}else e.remove()}).catch(function(){e.remove()})},t.prototype.buildIcon=function(){var e=c.$$("span",{className:"coveo-follow-item-icon"},f.SVGIcons.icons.dropdownFollowQuery);return h.SVGDom.addClassToSVGInContainer(e.el,"coveo-follow-item-icon-svg"),e.el},t.prototype.buildLoadingIcon=function(){var e=c.$$("span",{className:"coveo-follow-item-icon-loading"},f.SVGIcons.icons.loading);return h.SVGDom.addClassToSVGInContainer(e.el,"coveo-follow-item-icon-loading-svg"),e.el},t.prototype.handleSubscriptionDeleted=function(e){if(e.subscription&&e.subscription.type==u.SUBSCRIPTION_TYPE.followDocument){e.subscription.typeConfig.id==this.getId()&&this.setNotFollowed()}},t.prototype.handleSubscriptionCreated=function(e){if(e.subscription&&e.subscription.type==u.SUBSCRIPTION_TYPE.followDocument){e.subscription.typeConfig.id==this.getId()&&this.setFollowed(e.subscription)}},t.prototype.remove=function(){this.element.parentElement&&this.element.parentElement.removeChild(this.element)},t.prototype.getId=function(){return m.Utils.getFieldValue(this.result,"sysurihash")||m.Utils.getFieldValue(this.result,"urihash")},t.buildFollowRequest=function(e,t,n){var i={id:e,title:t};return n.modifiedDateField&&(i.modifiedDateField=n.modifiedDateField),n.watchedFields&&(i.watchedFields=n.watchedFields),{type:u.SUBSCRIPTION_TYPE.followDocument,typeConfig:i,name:t}},t.prototype.logAnalyticsEvent=function(e){this.usageAnalytics.logCustomEvent(e,{author:d.QueryUtils.getAuthor(this.result),documentLanguage:d.QueryUtils.getLanguage(this.result),documentSource:d.QueryUtils.getSource(this.result),documentTitle:this.result.title,contentIDValue:d.QueryUtils.getPermanentId(this.result).fieldValue,contentIDKey:d.QueryUtils.getPermanentId(this.result).fieldUsed},this.element)},t.ID="FollowItem",t.doExport=function(){s.exportGlobally({FollowItem:t})},t.options={watchedFields:v.ComponentOptions.buildFieldsOption(),modifiedDateField:v.ComponentOptions.buildStringOption()},t}(g.Component);t.FollowItem=S,b.Initialization.registerAutoCreateComponent(S)},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=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])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),o=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))(function(o,r){function s(e){try{u(i.next(e))}catch(e){r(e)}}function a(e){try{u(i.throw(e))}catch(e){r(e)}}function u(e){e.done?o(e.value):new n(function(t){t(e.value)}).then(s,a)}u((i=i.apply(e,t||[])).next())})},r=this&&this.__generator||function(e,t){function n(e){return function(t){return i([e,t])}}function i(n){if(o)throw new TypeError("Generator is already executing.");for(;u;)try{if(o=1,r&&(s=r[2&n[0]?"return":n[0]?"throw":"next"])&&!(s=s.call(r,n[1])).done)return s;switch(r=0,s&&(n=[0,s.value]),n[0]){case 0:case 1:s=n;break;case 4:return u.label++,{value:n[1],done:!1};case 5:u.label++,r=n[1],n=[0];continue;case 7:n=u.ops.pop(),u.trys.pop();continue;default:if(s=u.trys,!(s=s.length>0&&s[s.length-1])&&(6===n[0]||2===n[0])){u=0;continue}if(3===n[0]&&(!s||n[1]>s[0]&&n[1]<s[3])){u.label=n[1];break}if(6===n[0]&&u.label<s[1]){u.label=s[1],s=n;break}if(s&&u.label<s[2]){u.label=s[2],u.ops.push(n);break}s[2]&&u.ops.pop(),u.trys.pop();continue}n=t.call(e,u)}catch(e){n=[6,e],r=0}finally{o=s=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}var o,r,s,a,u={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return a={next:n(0),throw:n(1),return:n(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a};Object.defineProperty(t,"__esModule",{value:!0});var s=n(0),a=n(11),u=n(84),l=n(54),c=n(26),p=n(3),d=n(5),h=n(226),f=n(6),m=n(1),y=n(12),g=n(10),v=n(7),b=n(8),S=n(2),C=n(30),w=n(63),_=n(19),O=n(668),x=function(e){function t(n,i,o,r){void 0===r&&(r=c.ModalBox);var s=e.call(this,n,t.ID,o)||this;s.element=n,s.options=i,s.ModalBox=r,s.options=b.ComponentOptions.initComponentOptions(n,t,i),s.options.enableMessage&&(s.message=new O.SearchAlertsMessage(n,{closeDelay:s.options.messageCloseDelay},s.getBindings())),s.queryController.getEndpoint().options.isGuestUser?s.logger.warn("Logged in as guest user, search alerts are therefore not available."):s.bind.onRootElement(l.SettingsEvents.settingsPopulateMenu,function(e){s.options.enableManagePanel&&e.menuData.push({text:f.l("SearchAlerts_Panel"),className:"coveo-subscriptions-panel",onOpen:function(){return s.openPanel()},onClose:function(){return s.close()},svgIcon:y.SVGIcons.icons.dropdownFollowQuery,svgIconClassName:"coveo-subscriptions-panel-svg"})});var u=!1;return s.bind.onRootElement(a.QueryEvents.querySuccess,function(){u||(u=!0,s.queryController.getEndpoint().listSubscriptions().then(function(){s.bind.onRootElement(l.SettingsEvents.settingsPopulateMenu,function(e){s.options.enableFollowQuery&&e.menuData.push({text:f.l("SearchAlerts_followQuery"),className:"coveo-follow-query",tooltip:f.l("FollowQueryDescription"),onOpen:function(){return s.followQuery()},onClose:function(){},svgIcon:y.SVGIcons.icons.dropdownFollowQuery,svgIconClassName:"coveo-follow-query-svg"})})}).catch(function(e){if(403!=e.status)throw e}))}),s}return i(t,e),t.prototype.followQuery=function(){var e=this,t=this.queryController.createQueryBuilder({}),n=this.buildFollowQueryRequest(t.build(),this.options);this.usageAnalytics.logCustomEvent(g.analyticsActionCauseList.searchAlertsFollowQuery,{subscription:n.name},this.element),this.queryController.getEndpoint().follow(n).then(function(t){if(t){var n={subscription:t,dom:e.findQueryBoxDom()};m.$$(e.root).trigger(u.SearchAlertsEvents.searchAlertsCreated,n)}else e.triggerSearchAlertsFail()}).catch(function(){e.triggerSearchAlertsFail()})},t.prototype.openPanel=function(){return o(this,void 0,void 0,function(){var e,t,n,i,o,a,u,l,c,p,d,h,y,g,v,b=this;return r(this,function(r){switch(r.label){case 0:e=m.$$("div"),t=m.$$("div",{className:"coveo-subscriptions-panel-title"},f.l("SearchAlerts_Panel")),e.append(t.el),n=m.$$("div"),i=m.$$("table",{className:"coveo-subscriptions-panel-content",cellspacing:0}),n.append(i.el),o=m.$$("thead"),i.append(o.el),a=m.$$("tr"),o.append(a.el),u=m.$$("th",{className:"coveo-subscriptions-panel-content-type"},f.l("SearchAlerts_Type")),l=m.$$("th",null,f.l("SearchAlerts_Content")),c=m.$$("th",null,f.l("SearchAlerts_Frequency")),p=m.$$("th",{className:"coveo-subscriptions-panel-content-actions"},f.l("SearchAlerts_Actions")),a.append(u.el),a.append(l.el),a.append(c.el),a.append(p.el),d=m.$$("tbody",{className:"coveo-subscriptions-panel-spacer"},m.$$("tr",null,m.$$("td",{colsspan:3}))),i.append(d.el),h=m.$$("tbody",{className:"coveo-subscriptions-panel-subscriptions"},m.$$("tr",{className:"coveo-subscriptions-panel-no-subscriptions"},m.$$("td",{colspan:3},f.l("SearchAlerts_PanelNoSearchAlerts")))),i.append(h.el),y="big",r.label=1;case 1:return r.trys.push([1,3,,4]),[4,this.queryController.getEndpoint().listSubscriptions()];case 2:return g=r.sent(),s.each(g,function(e){return b.addSearchAlert(e,n)}),[3,4];case 3:return v=r.sent(),this.logger.error("Error retrieving subscriptions",v),y="small",n.empty(),n.append(this.getFailureMessage().el),[3,4];case 4:return this.modal=this.ModalBox.open(n.el,{title:e.el.outerHTML,className:"coveo-subscriptions-panel",sizeMod:y,body:this.searchInterface.options.modalContainer}),[2]}})})},t.prototype.getFailureMessage=function(){return m.$$("div",{className:"coveo-subscriptions-panel-fail"},f.l("SearchAlerts_Fail"))},t.prototype.handleSearchAlertsFail=function(){if(null!=this.modal){var e=m.$$(this.modal.wrapper).find(".coveo-modal-body");m.$$(e).empty(),m.$$(e).append(this.getFailureMessage().el)}},t.prototype.close=function(){this.modal&&(this.modal.close(),this.modal=null)},t.prototype.addSearchAlert=function(e,t){var n,i=this,o=[{value:"monthly",label:f.l("Monthly")},{value:"daily",label:f.l("Daily")},{value:"monday",label:f.l("Monday")},{value:"tuesday",label:f.l("Tuesday")},{value:"wednesday",label:f.l("Wednesday")},{value:"thursday",label:f.l("Thursday")},{value:"friday",label:f.l("Friday")},{value:"saturday",label:f.l("Saturday")},{value:"sunday",label:f.l("Sunday")}];if(e.name)if("<empty>"==e.name)n="&lt;empty&gt;";else{var r=m.$$("div").el;r.innerHTML=e.name,n=m.$$(r).text()}else if(e.type==h.SUBSCRIPTION_TYPE.followQuery){var a=e.typeConfig;n=s.escape(a.query.q)||f.l("EmptyQuery")}else{var a=e.typeConfig;n=s.escape(a.title||a.id)}var l=m.$$("tr",{className:"coveo-subscriptions-panel-subscription"}),c=s.pluck(o,"value"),p=function(e){return s.findWhere(o,{value:e}).label},d=m.$$("td",{className:"coveo-subscriptions-panel-content-type"},f.l("SearchAlerts_Type_"+e.type)),y=m.$$("td",{className:"coveo-subscriptions-panel-context",title:n});y.setHtml(n);var v=m.$$("td",null,m.$$("div",{className:"coveo-subscriptions-panel-frequency"},function(){return new w.Dropdown(function(t){i.usageAnalytics.logCustomEvent(g.analyticsActionCauseList.searchAlertsUpdateSubscription,{subscription:n,frequency:t.getValue()},i.element),e.frequency=t.getValue(),i.updateAndSyncSearchAlert(e)},c,p).build()}())),b=m.$$("td",{className:"coveo-subscriptions-panel-content-actions"},null,m.$$("div",{className:"coveo-subscriptions-panel-action coveo-subscriptions-panel-action-unfollow"},f.l("SearchAlerts_unFollowing")),m.$$("div",{className:"coveo-subscriptions-panel-action coveo-subscriptions-panel-action-follow"},f.l("SearchAlerts_follow")));l.append(d.el),l.append(y.el),l.append(v.el),l.append(b.el);var S=t.find(".coveo-subscriptions-panel-no-subscriptions");l.insertBefore(S),v.find("select").value=e.frequency,m.$$(l.find(".coveo-subscriptions-panel-action-unfollow")).on("click",function(){l.addClass("coveo-subscription-unfollowed"),i.queryController.getEndpoint().deleteSubscription(e).then(function(){e.type==h.SUBSCRIPTION_TYPE.followDocument?i.logAnalyticsEvent(g.analyticsActionCauseList.searchAlertsUnfollowDocument,e):e.type==h.SUBSCRIPTION_TYPE.followQuery&&i.logAnalyticsEvent(g.analyticsActionCauseList.searchAlertsUnfollowQuery,e),delete e.id;var t={subscription:e};m.$$(i.root).trigger(u.SearchAlertsEvents.searchAlertsDeleted,t)}).catch(function(){i.handleSearchAlertsFail()})}),m.$$(l.find(".coveo-subscriptions-panel-action-follow")).on("click",function(){l.removeClass("coveo-subscription-unfollowed"),i.queryController.getEndpoint().follow(e).then(function(t){e.type==h.SUBSCRIPTION_TYPE.followDocument?i.logAnalyticsEvent(g.analyticsActionCauseList.searchAlertsFollowDocument,e):e.type==h.SUBSCRIPTION_TYPE.followQuery&&i.logAnalyticsEvent(g.analyticsActionCauseList.searchAlertsFollowQuery,e),e.id=t.id;var n={subscription:e};m.$$(i.root).trigger(u.SearchAlertsEvents.searchAlertsCreated,n)}).catch(function(){i.handleSearchAlertsFail()})})},t.prototype.updateAndSyncSearchAlert=function(e){var t=this;this.queryController.getEndpoint().updateSubscription(e).then(function(t){return s.extend(e,t)}).catch(function(){t.handleSearchAlertsFail()})},t.prototype.triggerSearchAlertsFail=function(){var e={dom:this.findQueryBoxDom()};m.$$(this.root).trigger(u.SearchAlertsEvents.searchAlertsFail,e)},t.prototype.findQueryBoxDom=function(){var e,t=this.searchInterface.getComponents("Querybox");if(t&&t.length>0)e=s.first(t).element;else{var n=this.searchInterface.getComponents("Omnibox");n&&n.length>0&&(e=s.first(n).element)}return e},t.prototype.buildFollowQueryRequest=function(e,t){var n={query:e};return t.modifiedDateField&&(n.modifiedDateField=t.modifiedDateField),{type:h.SUBSCRIPTION_TYPE.followQuery,typeConfig:n,name:this.message.getFollowQueryMessage(e.q)}},t.prototype.logAnalyticsEvent=function(e,t){this.usageAnalytics.logCustomEvent(e,{subscription:t.name},this.element)},t.create=function(e,n,i){return d.Assert.exists(e),new t(e,n,C.get(i,_.SearchInterface).getBindings())},t.ID="SearchAlerts",t.doExport=function(){p.exportGlobally({SearchAlerts:t,SearchAlertsMessage:O.SearchAlertsMessage})},t.options={enableManagePanel:b.ComponentOptions.buildBooleanOption({defaultValue:!0}),enableFollowQuery:b.ComponentOptions.buildBooleanOption({defaultValue:!0}),modifiedDateField:b.ComponentOptions.buildFieldOption(),enableMessage:b.ComponentOptions.buildBooleanOption({defaultValue:!0}),messageCloseDelay:b.ComponentOptions.buildNumberOption({defaultValue:2e3,min:0,depend:"enableMessage"})},t}(v.Component);t.SearchAlerts=x,S.Initialization.registerAutoCreateComponent(x)},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=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])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),o=this&&this.__assign||Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e};Object.defineProperty(t,"__esModule",{value:!0}),n(669);var r=n(3),s=n(1),a=n(15),u=n(12),l=n(670),c=n(7),p=n(8),d=n(2),h=n(189),f=n(134),m=n(191),y=n(0),g=function(e){function t(n,i,o){var r=e.call(this,n,t.ID,o)||this;return r.element=n,r.options=i,r.bindings=o,r.options=p.ComponentOptions.initComponentOptions(n,t,i),r.options.inline&&s.$$(n).addClass("coveo-inline"),r.initSearchBox(),r.initSearchButton(),r.applyMagicBoxIcon(),r.applyCustomHeight(),r}return i(t,e),t.prototype.initSearchBox=function(){var e=document.createElement("div");this.element.appendChild(e),this.options.enableOmnibox?this.searchbox=new h.Omnibox(e,this.options,this.bindings):this.searchbox=new f.Querybox(e,this.options,this.bindings)},t.prototype.initSearchButton=function(){if(this.options.addSearchButton){var e=s.$$("a");this.element.appendChild(e.el),this.searchButton=new m.SearchButton(e.el,{searchbox:this.searchbox},this.bindings)}},t.prototype.applyMagicBoxIcon=function(){var e=s.$$(this.element).find(".magic-box-icon");e.innerHTML=u.SVGIcons.icons.mainClear,a.SVGDom.addClassToSVGInContainer(e,"magic-box-clear-svg")},t.prototype.applyCustomHeight=function(){this.options.height&&(s.$$(this.element).addClass("coveo-custom-height"),l.SearchBoxResize.resize(this.element,this.options.height))},t.ID="Searchbox",t.parent=h.Omnibox,t.doExport=function(){r.exportGlobally({Searchbox:t,SearchButton:m.SearchButton,Omnibox:h.Omnibox,Querybox:f.Querybox})},t.options={addSearchButton:p.ComponentOptions.buildBooleanOption({defaultValue:!0}),height:p.ComponentOptions.buildNumberOption({min:25}),enableOmnibox:p.ComponentOptions.buildBooleanOption({defaultValue:!0})},t}(c.Component);t.Searchbox=g,g.options=o({},g.options,h.Omnibox.options,f.Querybox.options),y.each(g.options,function(e,t){t in h.Omnibox.options&&!(t in f.Querybox.options)&&(g.options[t]=y.extend({depend:"enableOmnibox"},e))}),d.Initialization.registerAutoCreateComponent(g)},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=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])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n(94);n(671);var r=n(0),s=n(16),a=n(54),u=n(3),l=n(6),c=n(17),p=n(1),d=n(15),h=n(7),f=n(8),m=n(2),y=function(e){function t(n,i,o){var r=e.call(this,n,t.ID,o)||this;return r.element=n,r.options=i,r.isOpened=!1,r.options=f.ComponentOptions.initComponentOptions(n,t,i),r.bind.onRootElement(s.InitializationEvents.afterInitialization,function(){return r.init()}),r}return i(t,e),t.prototype.open=function(){this.isOpened=!0,null!=this.menu&&p.$$(this.menu).detach(),this.menu=this.buildMenu(),p.$$(this.menu).insertAfter(this.element),new o.default(this.element,this.menu,{placement:"bottom-end",modifiers:{offset:{offset:"0, 5"},preventOverflow:{boundariesElement:this.root}}})},t.prototype.close=function(){this.isOpened=!1,null!=this.menu&&(p.$$(this.menu).detach(),this.menu=null)},t.prototype.toggle=function(){this.isOpened?this.close():this.open()},t.prototype.init=function(){var e=this,t=p.$$("span",{className:"coveo-settings-square"}).el,n=p.$$("span",{className:"coveo-settings-squares"}).el;r.times(3,function(){return n.appendChild(t.cloneNode())}),this.element.appendChild(n),(new c.AccessibleButton).withElement(this.element).withOwner(this.bind).withSelectAction(function(){return e.toggle()}).withFocusAndMouseEnterAction(function(){return e.onfocus()}).withBlurAndMouseLeaveAction(function(){return e.onblur()}).withLabel(l.l("Settings")).build()},t.prototype.buildMenu=function(){var e=this,t=p.$$("div",{className:"coveo-settings-advanced-menu"}).el,n={settings:this,menuData:[]};return p.$$(this.root).trigger(a.SettingsEvents.settingsPopulateMenu,n),r.each(n.menuData,function(i){var o=e.buildMenuItem(i,n),r=o.menuItemElement,s=o.menuItemIcon,a=o.menuItemText;r.appendChild(s),r.appendChild(a),t.appendChild(r)}),t},t.prototype.buildMenuItem=function(e,t){var n=this,i=p.$$("div",{className:"coveo-settings-item "+e.className}).el,o=function(){r.each(t.menuData,function(e){e.onClose&&e.onClose()}),n.close(),e.onOpen()};return(new c.AccessibleButton).withElement(i).withSelectAction(o).withFocusAndMouseEnterAction(function(){return n.onfocus()}).withBlurAndMouseLeaveAction(function(){return n.onblur()}).withLabel(e.tooltip||e.text).build(),{menuItemElement:i,menuItemIcon:this.buildMenuItemIcon(e),menuItemText:this.buildMenuItemText(e)}},t.prototype.buildMenuItemIcon=function(e){var t=p.$$("div",{className:"coveo-icon"}).el;return e.svgIcon&&(t.innerHTML=e.svgIcon),e.svgIconClassName&&d.SVGDom.addClassToSVGInContainer(t,e.svgIconClassName),t},t.prototype.buildMenuItemText=function(e){return p.$$("div",{className:"coveo-settings-text"},r.escape(e.text)).el},t.prototype.onblur=function(){var e=this;clearTimeout(this.closeTimeout),this.closeTimeout=window.setTimeout(function(){e.close()},this.options.menuDelay)},t.prototype.onfocus=function(){clearTimeout(this.closeTimeout)},t.ID="Settings",t.doExport=function(){u.exportGlobally({Settings:t})},t.options={menuDelay:f.ComponentOptions.buildNumberOption({defaultValue:300,min:0})},t}(h.Component);t.Settings=y,m.Initialization.registerAutoCreateComponent(y)},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=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])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n(7),r=n(54),s=n(1),a=n(6),u=n(4),l=n(2),c=n(3),p=n(26);n(672);var d=n(12),h=function(e){function t(n,i,o,s){void 0===s&&(s=p.ModalBox);var u=e.call(this,n,t.ID,o)||this;return u.element=n,u.options=i,u.ModalBox=s,u.bind.onRootElement(r.SettingsEvents.settingsPopulateMenu,function(e){e.menuData.push({className:"coveo-share-query",text:a.l("ShareQuery"),onOpen:function(){return u.open()},onClose:function(){return u.close()},svgIcon:d.SVGIcons.icons.dropdownShareQuery,svgIconClassName:"coveo-share-query-svg"})}),u}return i(t,e),t.prototype.open=function(){null==this.modalbox&&(this.dialogBoxContent=this.buildContent(),this.modalbox=this.ModalBox.open(this.dialogBoxContent,{title:a.l("ShareQuery"),className:"coveo-share-query-opened",body:this.searchInterface.options.modalContainer}))},t.prototype.close=function(){this.modalbox&&(this.modalbox.close(),this.modalbox=null)},t.prototype.getLinkToThisQuery=function(){return this.linkToThisQuery||this.buildLinkToThisQuery(),this.linkToThisQuery.value},t.prototype.setLinkToThisQuery=function(e){this.linkToThisQuery||this.buildLinkToThisQuery(),this.linkToThisQuery.value=e},t.prototype.getCompleteQuery=function(){return this.completeQuery||this.buildCompleteQuery(),this.completeQuery.value},t.prototype.setCompleteQuery=function(e){this.completeQuery||this.buildCompleteQuery(),this.completeQuery.value=e},t.prototype.outputIfNotNull=function(e){return e?"("+e+")":""},t.prototype.buildContent=function(){var e=s.$$("div",{className:"coveo-share-query-summary-info"}).el,t=s.$$("div",{className:"coveo-share-query-summary-info-boxes"}).el;return this.buildLinkToThisQuery(),this.buildCompleteQuery(),t.appendChild(this.buildTextBoxWithLabel(a.l("Link"),this.linkToThisQuery)),t.appendChild(this.buildTextBoxWithLabel(a.l("CompleteQuery"),this.completeQuery)),e.appendChild(t),o.Component.pointElementsToDummyForm(e),e},t.prototype.buildCompleteQuery=function(){this.completeQuery=s.$$("input",{type:"text",className:"coveo-share-query-summary-info-input"}).el;var e=this.queryController.getLastQuery();this.completeQuery.value=u.Utils.trim(this.outputIfNotNull(e.q)+" "+this.outputIfNotNull(e.aq)+" "+this.outputIfNotNull(e.cq))},t.prototype.buildLinkToThisQuery=function(){var e=this;this.linkToThisQuery=s.$$("input",{type:"text",className:"coveo-share-query-summary-info-input"}).el,s.$$(this.linkToThisQuery).on("click",function(){return e.linkToThisQuery.select()}),this.linkToThisQuery.value=window.location.href},t.prototype.buildTextBoxWithLabel=function(e,t){var n=s.$$("span",{className:"coveo-share-query-summary-info-label"});n.text(e);var i=s.$$("div").el;return i.appendChild(n.el),i.appendChild(t),i},t.ID="ShareQuery",t.options={},t.doExport=function(){c.exportGlobally({ShareQuery:t})},t}(o.Component);t.ShareQuery=h,l.Initialization.registerAutoCreateComponent(h)},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=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])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),r=n(3),s=n(5),a=n(1),u=n(7),l=n(8),c=n(2),p=n(61),d=function(e){function t(n,i,o,r){var a=e.call(this,n,t.ID,o)||this;if(a.element=n,a.options=i,a.bindings=o,a.result=r,a.options=l.ComponentOptions.initComponentOptions(n,t,i),a.result=a.result||a.resolveResult(),s.Assert.exists(a.result),null!=a.options.condition){new Function("obj","with(obj||{}){return "+a.options.condition+"}")(a.result)&&a.initialize()}else a.initialize();return a}return i(t,e),t.prototype.initialize=function(){var e=this;if(null!=this.options.template){var n=this.searchInterface.options,i={options:n,bindings:this.bindings,result:this.result},r=a.$$(this.element).parents(u.Component.computeCssClassName(t));o.each(r,function(t){var n=t.cloneNode();a.$$(n).empty();var i=n.outerHTML;s.Assert.check(-1===i.indexOf(e.element.outerHTML),"TemplateLoader cannot load a template into itself.")}),this.element.innerHTML=this.options.template.instantiateToString(this.result,{checkCondition:!1,responsiveComponents:this.bindings?this.bindings.searchInterface.responsiveComponents:null}),c.Initialization.automaticallyCreateComponentsInside(this.element,i)}},t.ID="TemplateLoader",t.doExport=function(){r.exportGlobally({TemplateLoader:t})},t.options={template:p.TemplateComponentOptions.buildTemplateOption(),condition:l.ComponentOptions.buildStringOption()},t}(u.Component);t.TemplateLoader=d,c.Initialization.registerAutoCreateComponent(d)},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=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])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0}),n(676);var o=n(3),r=n(1),s=n(7),a=n(8),u=n(2),l=function(e){function t(n,i,o){var s=e.call(this,n,t.ID,o)||this;return s.element=n,s.options=i,s.options=a.ComponentOptions.initComponentOptions(n,t,i),r.$$(s.element).text(s.options.value),s.element.style.fontSize=s.options.size,s.element.style.fontStyle=s.options.style,s.element.style.color=s.options.color,s.element.style.fontWeight=s.options.weight,s.element.style.textAlign=s.options.textAlign,s.element.style.marginTop=s.options.marginTop,s.element.style.marginBottom=s.options.marginBottom,s.element.style.marginRight=s.options.marginRight,s.element.style.marginLeft=s.options.marginLeft,s.element.style.paddingTop=s.options.paddingTop,s.element.style.paddingBottom=s.options.paddingBottom,s.element.style.paddingLeft=s.options.paddingLeft,s.element.style.paddingRight=s.options.paddingRight,s}return i(t,e),t.ID="Text",t.doExport=function(){o.exportGlobally({Text:t})},t.options={value:a.ComponentOptions.buildLocalizedStringOption(),size:a.ComponentOptions.buildStringOption(),style:a.ComponentOptions.buildStringOption(),color:a.ComponentOptions.buildStringOption(),weight:a.ComponentOptions.buildStringOption(),textAlign:a.ComponentOptions.buildStringOption(),marginTop:a.ComponentOptions.buildStringOption(),marginBottom:a.ComponentOptions.buildStringOption(),marginLeft:a.ComponentOptions.buildStringOption(),marginRight:a.ComponentOptions.buildStringOption(),paddingTop:a.ComponentOptions.buildStringOption(),paddingBottom:a.ComponentOptions.buildStringOption(),paddingLeft:a.ComponentOptions.buildStringOption(),paddingRight:a.ComponentOptions.buildStringOption()},t}(s.Component);t.Text=l,u.Initialization.registerAutoCreateComponent(l)},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=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])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),r=n(3),s=n(1),a=n(21),u=n(7),l=n(8),c=n(2),p=n(30),d=n(188),h=n(70),f=n(6),m=function(e){function t(n,i,o,r){var u=e.call(this,n,t.ID,o)||this;if(u.element=n,u.options=i,u.bindings=o,u.result=r,u.options=l.ComponentOptions.initOptions(n,t.options,i,t.ID),"img"!=u.element.tagName.toLowerCase()?(u.img=s.$$("img").el,u.element.appendChild(u.img)):u.img=u.element,u.options.clickable)if("img"!=u.element.tagName.toLowerCase())new h.ResultLink(u.element,u.options,u.bindings,u.result);else{var c=s.$$("a");s.$$(u.element).replaceWith(c.el),s.$$(c).append(u.element),new h.ResultLink(c.el,u.options,u.bindings,u.result)}if(u.img.setAttribute("src","data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),a.QueryUtils.hasThumbnail(r))u.buildThumbnailImage();else{u.logger.info("Result has no thumbnail. Cannot build thumbnail image, instanciating an Icon component instead.");var p=new d.Icon(s.$$("div").el,{small:!0},o,r);s.$$(u.element).replaceWith(p.element)}return u}return i(t,e),t.prototype.buildThumbnailImage=function(){var e=this.bindings.queryController.getEndpoint();e.isJsonp()?this.buildImageWithDirectSrcAttribute(e):this.buildImageWithBase64SrcAttribute(e),this.makeAccessible()},t.prototype.buildImageWithDirectSrcAttribute=function(e){var t=e.getViewAsDatastreamUri(this.result.uniqueId,"$Thumbnail$",{contentType:"image/png"});this.img.setAttribute("src",t),this.resizeContainingFieldTable()},t.prototype.buildImageWithBase64SrcAttribute=function(e){var t=this;e.getRawDataStream(this.result.uniqueId,"$Thumbnail$").then(function(e){var n=String.fromCharCode.apply(null,new Uint8Array(e));t.img.setAttribute("src","data:image/png;base64, "+btoa(n)),t.resizeContainingFieldTable()}).catch(function(){t.setEmptyThumbnailClass()})},t.prototype.makeAccessible=function(){this.img.setAttribute("alt",f.l("ThumbnailOf",this.result.title))},t.prototype.resizeContainingFieldTable=function(){var e=u.Component.computeCssClassNameForType("FieldTable"),t=s.$$(this.element).closest(e);if(null!=t){p.get(t).updateToggleHeight()}},t.prototype.setEmptyThumbnailClass=function(){s.$$(this.img).addClass(this.options.noThumbnailClass)},t.ID="Thumbnail",t.doExport=function(){r.exportGlobally({Thumbnail:t})},t.options={noThumbnailClass:l.ComponentOptions.buildStringOption({defaultValue:"coveo-no-thumbnail"}),clickable:l.ComponentOptions.buildBooleanOption({defaultValue:!1})},t.parent=h.ResultLink,t}(u.Component);t.Thumbnail=m,m.options=o.extend({},h.ResultLink.options,m.options),c.Initialization.registerAutoCreateComponent(m)},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=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])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n(7),r=n(8),s=n(5),a=n(11),u=n(1),l=n(10),c=n(13),p=n(2),d=n(0),h=n(3);n(677);var f=function(e){function t(n,i,o,u){var l=e.call(this,n,t.ID,o)||this;return l.element=n,l.options=i,l.bindings=o,l._window=u,l._window=l._window||window,l.options=r.ComponentOptions.initComponentOptions(n,t,i),s.Assert.exists(n),s.Assert.exists(l.options),l.notifications=[],l.bind.onRootElement(a.QueryEvents.querySuccess,l.handleProcessNewQueryResults),l}return i(t,e),t.prototype.handleProcessNewQueryResults=function(e){var t=this;s.Assert.exists(e),s.Assert.exists(e.results),u.$$(this.element).empty(),this.notifications.length=0;var n=!1;if(void 0===e.results.triggers)return void u.$$(this.element).toggleClass("coveo-visible",n);this.executeTriggers(e.results.triggers,"notify",function(e){t.usageAnalytics.logCustomEvent(l.analyticsActionCauseList.triggerNotify,{notification:e.content},t.element),t.notifications.push(e.content),t.element.appendChild(u.$$("div",{className:"coveo-trigger-notify"},e.content).el),n=!0}),this.executeTriggers(e.results.triggers,"redirect",function(e){t.usageAnalytics.logCustomEvent(l.analyticsActionCauseList.triggerRedirect,{redirectedTo:e.content},t.element),t._window.location.replace(e.content)},!0),this.executeTriggers(e.results.triggers,"query",function(e){t.queryStateModel.set(c.QueryStateModel.attributesEnum.q,e.content),t.queryController.executeQuery({beforeExecuteQuery:function(){t.usageAnalytics.logCustomEvent(l.analyticsActionCauseList.triggerQuery,{query:e.content},t.element)}})},!0),this.executeTriggers(e.results.triggers,"execute",function(n){try{var i=t._window[""+n.content.name];if("function"==typeof i){var o=d.object(d.map(n.content.params,function(e,t){return["param"+(t+1),e]}));o.element=t.element,t.usageAnalytics.logCustomEvent(l.analyticsActionCauseList.triggerExecute,{executed:n.content.name},t.element),i.apply(t._window,[o])}else t.logger.error("A trigger tried to call the function '"+n.content.name+"', which doesn't exist.",t,e.query,n)}catch(i){t.logger.error("A trigger called the function '"+n.content.name+"', which threw an error.",t,e.query,n)}}),u.$$(this.element).toggleClass("coveo-visible",n)},t.prototype.executeTriggers=function(e,t,n,i){void 0===i&&(i=!1);var o=d.filter(e,function(e){return e.type==t}),r=d.take(o,i?1:Number.MAX_VALUE);d.each(r,n)},t.ID="Triggers",t.options={},t.doExport=function(){h.exportGlobally({Triggers:t})},t}(o.Component);t.Triggers=f,p.Initialization.registerAutoCreateComponent(f)},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=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])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0}),n(524);var o=n(0),r=n(35),s=n(11),a=n(3),u=n(5),l=n(9),c=n(6),p=n(17),d=n(1),h=n(15),f=n(12),m=n(10),y=n(7),g=n(8),v=n(2),b=n(40),S=n(65),C=n(678),w=function(e){function t(n,i,o){var a=e.call(this,n,t.ID,o)||this;return a.element=n,a.options=i,a.bindings=o,a.previouslySelected=[],a.groupByRequestValues=[],a.isSticky=!1,a.shouldTriggerQuery=!0,a.options=g.ComponentOptions.initComponentOptions(n,t,i),a.element.title=a.options.title,a.buildContent(),(new p.AccessibleButton).withElement(a.element).withClickAction(function(e){return a.handleClick(e)}).withEnterKeyboardAction(function(e){return a.handleKeyboardSelect(e)}).withBlurAction(function(e){return a.handleBlur(e)}).withLabel(a.options.title).build(),a.bind.onRootElement(r.BreadcrumbEvents.populateBreadcrumb,function(e){return a.handlePopulateBreadcrumb(e)}),a.bind.onRootElement(r.BreadcrumbEvents.clearBreadcrumb,function(){return a.handleClearBreadcrumb()}),a.bind.onRootElement(s.QueryEvents.buildingQuery,function(e){return a.handleBuildingQuery(e)}),a.bind.onRootElement(s.QueryEvents.doneBuildingQuery,function(e){return a.handleDoneBuildingQuery(e)}),a.bind.onRootElement(s.QueryEvents.querySuccess,function(e){return a.handleQuerySuccess(e)}),a}return i(t,e),t.simpleFilterSortCritera=function(){return["score","occurrences","alphaascending","alphadescending","chisquare"]},t.prototype.getValueContainer=function(){return this.valueContainer},t.prototype.getValueCaption=function(e){var t=e;return o.contains(o.keys(this.options.valueCaption),e)?(t=this.options.valueCaption[t]||t,c.l(t)):b.FacetUtils.tryToGetTranslatedCaption(this.options.field.toString(),t)},t.prototype.getSelectedCaptions=function(){var e=this;return o.map(this.getSelectedValues(),function(t){return e.getValueCaption(t)})},t.prototype.toggleContainer=function(){d.$$(this.valueContainer).hasClass("coveo-simplefilter-value-container-expanded")?this.closeContainer():this.openContainer()},t.prototype.selectValue=function(e,t){var n=this;void 0===t&&(t=!0),o.each(this.checkboxes,function(i){var o=n.getValueCaption(i.label);i.label!=e&&o!=e||i.checkbox.select(t)})},t.prototype.deselectValue=function(e){var t=this;o.each(this.checkboxes,function(n){var i=t.getValueCaption(n.label);n.label!=e&&i!=e||n.checkbox.reset()})},t.prototype.toggleValue=function(e){var t=this;o.each(this.checkboxes,function(n){var i=t.getValueCaption(n.label);n.label!=e&&i!=e||n.checkbox.toggle()})},t.prototype.resetSimpleFilter=function(){var e=this;o.each(this.checkboxes,function(t){t.checkbox.isSelected()&&e.deselectValue(t.label)})},t.prototype.openContainer=function(){d.$$(this.element).addClass("coveo-simplefilter-value-container-expanded"),this.valueContainer.addClass("coveo-simplefilter-value-container-expanded"),this.refreshValueContainer(),this.isSticky=!0,this.backdrop.hasClass("coveo-dropdown-background-active")||this.showBackdrop()},t.prototype.closeContainer=function(){d.$$(this.element).removeClass("coveo-simplefilter-value-container-expanded"),this.valueContainer.removeClass("coveo-simplefilter-value-container-expanded"),this.backdrop.hasClass("coveo-dropdown-background-active")&&this.hideBackdrop(),0==this.getSelectedLabeledCheckboxes().length&&(this.isSticky=!1)},t.prototype.getSelectedValues=function(){return o.map(this.getSelectedLabeledCheckboxes(),function(e){return e.label})},t.prototype.handleClick=function(e){e.stopPropagation(),e.target==this.element&&this.toggleContainer()},t.prototype.handleKeyboardSelect=function(e){e.target==this.element?this.toggleContainer():this.toggleValue(d.$$(e.target).text())},t.prototype.handleBlur=function(e){var n=e.relatedTarget;n&&(d.$$(n).parent(y.Component.computeCssClassName(t))||this.closeContainer())},t.prototype.handleValueToggle=function(e){var t=this.getSelectedValues();this.circleElement.text(t.length.toString()),this.circleElement.removeClass("coveo-simplefilter-circle-hidden"),this.options.enableClearButton&&this.clearElement.show(),1==t.length?(this.setDisplayedTitle(this.getValueCaption(t[0])),this.element.title=this.getValueCaption(t[0])):(this.setDisplayedTitle(this.options.title),this.element.title=this.options.title,t.length<1&&(this.circleElement.addClass("coveo-simplefilter-circle-hidden"),this.options.enableClearButton&&this.clearElement.hide())),0==t.length&&(this.isSticky=!1);var n=e.isSelected()?m.analyticsActionCauseList.simpleFilterSelectValue:m.analyticsActionCauseList.simpleFilterDeselectValue;this.shouldTriggerQuery&&(this.usageAnalytics.logSearchEvent(n,{simpleFilterTitle:this.options.title,simpleFilterSelectedValue:e.label,simpleFilterField:this.options.field}),this.queryController.executeQuery())},t.prototype.createCheckbox=function(e){var t=this,n=new S.Checkbox(function(){t.handleValueToggle(n)},this.getValueCaption(e));return n.getElement().title=c.l(e),{checkbox:n,label:e}},t.prototype.createCheckboxes=function(){var e=this;this.previouslySelected.length>0?(this.checkboxes=o.map(this.previouslySelected,function(t){return e.createCheckbox(t)}),o.each(this.checkboxes,function(t){e.previouslySelected.indexOf(t.label)>=0&&e.selectValue(t.label,!1)})):void 0!=this.options.values?this.checkboxes=o.map(this.options.values,function(t){return e.createCheckbox(t)}):void 0!=this.groupByRequestValues&&(this.checkboxes=o.map(this.groupByRequestValues,function(t){return e.createCheckbox(t)})),"alphaascending"!==this.options.sortCriteria.toLocaleLowerCase()&&"alphadescending"!==this.options.sortCriteria.toLowerCase()||(this.checkboxes.sort(function(e,t){return e.checkbox.label.localeCompare(t.checkbox.label)}),"alphadescending"===this.options.sortCriteria.toLowerCase()&&this.checkboxes.reverse()),o.each(this.checkboxes,function(t){e.valueContainer.append(t.checkbox.getElement())}),this.checkboxes.length>0&&d.$$(d.$$(this.checkboxes[this.checkboxes.length-1].checkbox.getElement()).find(".coveo-checkbox-button")).on("blur",function(){e.closeContainer()})},t.prototype.createValueContainer=function(){this.valueContainer=d.$$("div",{className:"coveo-simplefilter-value-container"})},t.prototype.buildContent=function(){this.createValueContainer(),this.element.appendChild(this.buildSelect()),this.element.appendChild(this.valueContainer.el),this.findOrCreateWrapper().append(this.element),this.createBackdrop()},t.prototype.buildSelect=function(){var e=d.$$("span",{className:"coveo-simplefilter-select"});return this.selectTitle=d.$$("span",{className:"coveo-simplefilter-selecttext"},this.options.title),e.append(this.selectTitle.el),e.append(this.buildCircleElement()),this.options.enableClearButton&&e.append(this.buildClearElement()),e.append(this.buildSvgToggleUpIcon()),e.el},t.prototype.buildSvgToggleUpIcon=function(){var e=d.$$("span",{className:"coveo-simplefilter-toggle-svg-container"},f.SVGIcons.icons.arrowDown).el;return h.SVGDom.addClassToSVGInContainer(e,"coveo-simplefilter-toggle-down-svg"),e},t.prototype.buildCircleElement=function(){return this.circleElement=d.$$("span",{className:"coveo-simplefilter-circle coveo-simplefilter-circle-hidden"},this.getSelectedLabeledCheckboxes().length.toString()),this.circleElement.el},t.prototype.buildClearElement=function(){var e=this;return this.clearElement=d.$$("button",{title:c.l("DeselectFilterValues",this.options.title),"aria-label":c.l("Clear",this.options.title),className:"coveo-simplefilter-eraser"},f.SVGIcons.icons.mainClear),this.clearElement.hide(),this.clearElement.on("click",function(t){t.stopPropagation(),e.handleClear()}),this.clearElement.el},t.prototype.createBackdrop=function(){var e=this,t=d.$$(this.root).find(".coveo-dropdown-background");null==t?(this.backdrop=d.$$("div",{className:"coveo-dropdown-background"}),this.root.appendChild(this.backdrop.el)):this.backdrop=d.$$(t),this.backdrop.on("click",function(){return e.closeContainer()})},t.prototype.handlePopulateBreadcrumb=function(e){var t=this;if(this.getSelectedLabeledCheckboxes().length>0){var n=d.$$("div",{className:"coveo-simplefilter-breadcrumb"}),i=d.$$("span",{className:"coveo-simplefilter-breadcrumb-title"},this.options.title+":");n.append(i.el);var r=d.$$("span",{className:"coveo-simplefilter-breadcrumb-values"});n.append(r.el),o.each(this.getSelectedLabeledCheckboxes(),function(e){var n=d.$$("span",{className:"coveo-simplefilter-breadcrumb-value"},t.getValueCaption(e.label));r.append(n.el);var i=d.$$("span",{className:"coveo-simplefilter-breadcrumb-clear"},f.SVGIcons.icons.mainClear);n.append(i.el),n.el.title=t.getValueCaption(e.label),d.$$(n).on("click",function(){return t.handleRemoveFromBreadcrumb(e)})}),e.breadcrumbs.push({element:n.el})}},t.prototype.handleRemoveFromBreadcrumb=function(e){e.checkbox.reset(),this.refreshValueContainer()},t.prototype.handleClearBreadcrumb=function(){this.resetWithoutTriggeringQuery()},t.prototype.handleClear=function(){this.usageAnalytics.logSearchEvent(m.analyticsActionCauseList.simpleFilterClearAll,{simpleFilterTitle:this.options.title,simpleFilterField:this.options.field}),this.resetWithoutTriggeringQuery(),this.queryController.executeQuery()},t.prototype.resetWithoutTriggeringQuery=function(){this.shouldTriggerQuery=!1,this.resetSimpleFilter(),this.shouldTriggerQuery=!0},t.prototype.handleQuerySuccess=function(e){e.results.results.length>0?this.findOrCreateWrapper().removeClass("coveo-no-results"):this.findOrCreateWrapper().addClass("coveo-no-results"),void 0==this.options.values&&(this.groupByBuilder.groupBy(e),this.groupByRequestValues=this.groupByBuilder.getValuesFromGroupBy(),this.refreshValueContainer(),d.$$(this.element).hasClass("coveo-simplefilter-value-container-expanded")||(this.isSticky=!1))},t.prototype.handleBuildingQuery=function(e){u.Assert.exists(e),u.Assert.exists(e.queryBuilder);var t=this.getSelectedValues();t.length>0&&e.queryBuilder.advancedExpression.addFieldExpression(this.options.field.toString(),"==",t)},t.prototype.handleDoneBuildingQuery=function(e){void 0==this.options.values&&(u.Assert.exists(e),u.Assert.exists(e.queryBuilder),this.previouslySelected=this.getSelectedValues(),this.groupByBuilder=new C.SimpleFilterValues(this,this.options),this.groupByBuilder.handleDoneBuildingQuery(e))},t.prototype.getSelectedLabeledCheckboxes=function(){return o.filter(this.checkboxes,function(e){return e.checkbox.isSelected()})},t.prototype.setDisplayedTitle=function(e){this.selectTitle.text(this.getValueCaption(e))},t.prototype.showBackdrop=function(){this.backdrop.addClass("coveo-dropdown-background-active")},t.prototype.hideBackdrop=function(){this.backdrop.removeClass("coveo-dropdown-background-active")},t.prototype.findOrCreateWrapper=function(){if(null==d.$$(this.root).find(".coveo-simplefilter-header-wrapper")){var e=d.$$("div",{className:"coveo-simplefilter-header-wrapper"});return e.insertBefore(this.element),e}var e=d.$$(this.root).find(".coveo-simplefilter-header-wrapper");return d.$$(e)},t.prototype.refreshValueContainer=function(){this.isSticky||(this.valueContainer.empty(),this.createCheckboxes()),0!=this.checkboxes.length||this.isSticky?d.$$(this.element).removeClass("coveo-simplefilter-empty"):d.$$(this.element).addClass("coveo-simplefilter-empty"),d.$$(this.circleElement).text(this.getSelectedLabeledCheckboxes().length.toString())},t.ID="SimpleFilter",t.doExport=function(){a.exportGlobally({SimpleFilter:t})},t.options={maximumNumberOfValues:g.ComponentOptions.buildNumberOption({defaultValue:5,min:0}),values:g.ComponentOptions.buildListOption(),field:g.ComponentOptions.buildFieldOption({required:!0}),title:g.ComponentOptions.buildLocalizedStringOption({localizedString:function(){return c.l("NoTitle")}}),valueCaption:g.ComponentOptions.buildJsonOption(),sortCriteria:g.ComponentOptions.buildStringOption({postProcessing:function(e,n){var i=e||"score";return-1!==t.simpleFilterSortCritera().indexOf(i.toLowerCase())?i:(new l.Logger(t).warn("The simpleFilter component doesn't accept "+i+" as the value for the sortCriteria option.","Available option are : "+t.simpleFilterSortCritera().toString()),"score")}}),enableClearButton:g.ComponentOptions.buildBooleanOption({defaultValue:!1})},t}(y.Component);t.SimpleFilter=w,v.Initialization.registerAutoCreateComponent(w)},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=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])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),o=this&&this.__assign||Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e};Object.defineProperty(t,"__esModule",{value:!0});var r=n(139),s=n(0),a=n(3),u=n(6),l=n(1),c=n(7),p=n(8),d=n(2),h=n(186),f=n(83),m=function(e){function t(n,i,o){var s=e.call(this,n,t.ID,o)||this;return s.element=n,s.options=i,s.bindings=o,s.rangeValues=[{start:r(0).toDate(),end:r().endOf("day").toDate(),label:u.l("AllDates"),endInclusive:!1},{start:r().startOf("day").subtract(1,"day").toDate(),end:r().endOf("day").toDate(),label:u.l("WithinLastDay"),endInclusive:!1},{start:r().startOf("day").subtract(1,"week").toDate(),end:r().endOf("day").toDate(),label:u.l("WithinLastWeek"),endInclusive:!1},{start:r().startOf("day").subtract(1,"month").toDate(),end:r().endOf("day").toDate(),label:u.l("WithinLastMonth"),endInclusive:!1},{start:r().startOf("day").subtract(1,"year").toDate(),end:r().endOf("day").toDate(),label:u.l("WithinLastYear"),endInclusive:!1}],s.options=p.ComponentOptions.initComponentOptions(n,t,i),s.buildFacet(),s}return i(t,e),t.prototype.isCurrentlyDisplayed=function(){return!!l.$$(this.element).isVisible()&&!this.disabled},Object.defineProperty(t.prototype,"ranges",{get:function(){return this.rangeValues},set:function(e){this.rangeValues=e,this.buildFacet()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"facet",{get:function(){return this.facetRange},enumerable:!0,configurable:!0}),t.prototype.buildFacet=function(){this.destroyFacet(),this.facetRangeElement=l.$$("div"),l.$$(this.element).append(this.facetRangeElement.el),this.facetRange=new h.FacetRange(this.facetRangeElement.el,{field:this.options.field,title:this.options.title,ranges:this.rangeValues,availableSorts:["custom"],customSort:s.pluck(this.rangeValues,"label"),id:this.options.id},this.bindings),this.facetRange.isCurrentlyDisplayed=this.isCurrentlyDisplayed},t.prototype.destroyFacet=function(){this.facetRangeElement&&this.facetRangeElement.remove(),delete this.facetRange},t.ID="TimespanFacet",t.options=o({title:p.ComponentOptions.buildStringOption({defaultValue:u.l("LastUpdated")}),field:p.ComponentOptions.buildFieldOption({defaultValue:"@date"}),id:p.ComponentOptions.buildStringOption({postProcessing:function(e,t){return e||t.field}})},f.ResponsiveFacetOptions),t.doExport=function(){a.exportGlobally({TimespanFacet:t})},t}(c.Component);t.TimespanFacet=m,d.Initialization.registerAutoCreateComponent(m)},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=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])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0}),n(679);var o=n(20),r=n(3),s=n(7),a=function(e){function t(n,i,r){var s=e.call(this,n,t.ID,r)||this;return s.element=n,s.options=i,s.bindings=r,s.options=o.ComponentOptions.initComponentOptions(n,t,i),s.bind.onRootElement(o.ResultListEvents.newResultDisplayed,function(e){var t=s.buildBadge(e.result,e.item);t&&s.appendBadge(t,e.item)}),s}return i(t,e),t.prototype.buildBadge=function(e,t){if(!this.shouldShowABadge(e,t))return null;var n=o.$$("div",{className:this.getClassName(e)});return this.applyTagline(e,n),this.applyColor(e,n),n},t.prototype.appendBadge=function(e,t){this.isCardLayout(t)?this.addBadgeToCardLayout(e,t):o.$$(t).prepend(e.el)},t.prototype.addBadgeToCardLayout=function(e,t){var n;null==t.parentElement?(n=o.$$("div",{className:"coveo-promoted-result-badge-container-card-layout"}),n.insertBefore(t)):n=o.$$(t.parentElement),n.append(e.el),n.append(t)},t.prototype.applyColor=function(e,t){this.isFeatured(e)&&this.options.colorForFeaturedResults&&(t.el.style.backgroundColor=this.options.colorForFeaturedResults),this.isRecommended(e)&&this.options.colorForRecommendedResults&&(t.el.style.backgroundColor=this.options.colorForRecommendedResults)},t.prototype.applyTagline=function(e,t){if(this.isFeatured(e)&&this.options.showBadgeForFeaturedResults&&t.text(this.options.captionForFeatured),this.isRecommended(e)&&this.options.showBadgeForRecommendedResults)return t.text(this.options.captionForRecommended)},t.prototype.isFeatured=function(e){return e.isTopResult},t.prototype.isRecommended=function(e){return e.isRecommendation&&!e.isTopResult},t.prototype.isTableLayout=function(e){return o.$$(e).hasClass("coveo-table-layout")},t.prototype.isCardLayout=function(e){return o.$$(e).hasClass("coveo-card-layout")},t.prototype.getClassName=function(e){return"coveo-promoted-result-badge coveo-"+(this.isFeatured(e)?"featured":"recommended")+"-result-badge"},t.prototype.shouldShowABadge=function(e,t){return!this.isTableLayout(t)&&(!(!this.isFeatured(e)||!this.options.showBadgeForFeaturedResults)||!(!this.isRecommended(e)||!this.options.showBadgeForRecommendedResults))},t.ID="PromotedResultsBadge",t.doExport=function(){r.exportGlobally({PromotedResultsBadge:t})},t.options={showBadgeForFeaturedResults:o.ComponentOptions.buildBooleanOption({defaultValue:!0}),showBadgeForRecommendedResults:o.ComponentOptions.buildBooleanOption({defaultValue:!1}),captionForRecommended:o.ComponentOptions.buildLocalizedStringOption({localizedString:function(){return o.l("Recommended")},depend:"showBadgeForRecommendedResults"}),captionForFeatured:o.ComponentOptions.buildLocalizedStringOption({localizedString:function(){return o.l("Featured")},depend:"showBadgeForFeaturedResults"}),colorForFeaturedResults:o.ComponentOptions.buildColorOption({depend:"showBadgeForFeaturedResults"}),colorForRecommendedResults:o.ComponentOptions.buildColorOption({depend:"showBadgeForRecommendedResults"})},t}(s.Component);t.PromotedResultsBadge=a,o.Initialization.registerAutoCreateComponent(a)},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=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])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),o=this&&this.__assign||Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},r=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))(function(o,r){function s(e){try{u(i.next(e))}catch(e){r(e)}}function a(e){try{u(i.throw(e))}catch(e){r(e)}}function u(e){e.done?o(e.value):new n(function(t){t(e.value)}).then(s,a)}u((i=i.apply(e,t||[])).next())})},s=this&&this.__generator||function(e,t){function n(e){return function(t){return i([e,t])}}function i(n){if(o)throw new TypeError("Generator is already executing.");for(;u;)try{if(o=1,r&&(s=r[2&n[0]?"return":n[0]?"throw":"next"])&&!(s=s.call(r,n[1])).done)return s;switch(r=0,s&&(n=[0,s.value]),n[0]){case 0:case 1:s=n;break;case 4:return u.label++,{value:n[1],done:!1};case 5:u.label++,r=n[1],n=[0];continue;case 7:n=u.ops.pop(),u.trys.pop();continue;default:if(s=u.trys,!(s=s.length>0&&s[s.length-1])&&(6===n[0]||2===n[0])){u=0;continue}if(3===n[0]&&(!s||n[1]>s[0]&&n[1]<s[3])){u.label=n[1];break}if(6===n[0]&&u.label<s[1]){u.label=s[1],s=n;break}if(s&&u.label<s[2]){u.label=s[2],u.ops.push(n);break}s[2]&&u.ops.pop(),u.trys.pop();continue}n=t.call(e,u)}catch(e){n=[6,e],r=0}finally{o=s=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}var o,r,s,a,u={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return a={next:n(0),throw:n(1),return:n(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a};Object.defineProperty(t,"__esModule",{value:!0}),n(221);var a=n(7),u=n(6),l=n(8),c=n(1),p=n(2),d=n(3),h=n(680),f=n(13),m=n(18),y=n(4),g=n(0),v=n(5),b=n(11),S=n(35),C=n(681),w=n(10),_=n(172),O=n(83),x=n(179),E=n(171),A=n(112),T=n(180),R=n(682),F=n(71),M=n(511),I=n(9),P=n(686),D=function(e){function t(n,i,o){var r=e.call(this,n,"DynamicHierarchicalFacet",o)||this;return r.element=n,r.listenToQueryStateChange=!0,r.moreValuesAvailable=!1,r.isDynamicFacet=!0,r.options=l.ComponentOptions.initComponentOptions(n,t,i),r.dynamicHierarchicalFacetQueryController=new h.DynamicHierarchicalFacetQueryController(r),r.isCollapsed=r.options.enableCollapse&&r.options.collapsedByDefault,r.verifyCollapsingConfiguration(),r.values=new R.DynamicHierarchicalFacetValues(r),_.ResponsiveFacets.init(r.root,r,r.options),r.initDependsOnManager(),r.initBreadCrumbEvents(),r.initQueryEvents(),r.initQueryStateEvents(),r}return i(t,e),Object.defineProperty(t.prototype,"fieldName",{get:function(){return this.options.field.slice(1)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"facetType",{get:function(){return T.FacetType.hierarchical},enumerable:!0,configurable:!0}),t.prototype.isCurrentlyDisplayed=function(){return c.$$(this.element).isVisible()},Object.defineProperty(t.prototype,"hasActiveValues",{get:function(){return this.values.hasSelectedValue},enumerable:!0,configurable:!0}),t.prototype.initQueryEvents=function(){var e=this;this.bind.onRootElement(b.QueryEvents.doneBuildingQuery,function(t){return e.handleDoneBuildingQuery(t)}),this.bind.onRootElement(b.QueryEvents.deferredQuerySuccess,function(t){return e.handleQuerySuccess(t.results)}),this.bind.onRootElement(b.QueryEvents.duringQuery,function(){return e.ensureDom()}),this.bind.onRootElement(b.QueryEvents.queryError,function(){return e.onNoValues()})},t.prototype.initBreadCrumbEvents=function(){var e=this;this.options.includeInBreadcrumb&&(this.bind.onRootElement(S.BreadcrumbEvents.populateBreadcrumb,function(t){return e.handlePopulateBreadcrumb(t)}),this.bind.onRootElement(S.BreadcrumbEvents.clearBreadcrumb,function(){return e.reset()}))},Object.defineProperty(t.prototype,"queryStateAttribute",{get:function(){return f.QueryStateModel.getFacetId(this.options.id)},enumerable:!0,configurable:!0}),t.prototype.handleDoneBuildingQuery=function(e){this.dynamicFacetManager||(v.Assert.exists(e),v.Assert.exists(e.queryBuilder),this.putStateIntoQueryBuilder(e.queryBuilder),this.putStateIntoAnalytics())},t.prototype.verifyCollapsingConfiguration=function(){this.options.collapsedByDefault&&!this.options.enableCollapse&&this.logger.warn('Setting "collapseByDefault" to "true" has no effect when "enableCollapse" is set to "false"')},t.prototype.putStateIntoQueryBuilder=function(e){v.Assert.exists(e),this.dynamicHierarchicalFacetQueryController.putFacetIntoQueryBuilder(e)},t.prototype.putStateIntoAnalytics=function(){var e=this.usageAnalytics.getPendingSearchEvent();e&&e.addFacetState(this.analyticsFacetState)},t.prototype.scrollToTop=function(){this.options.enableScrollToTop&&A.ResultListUtils.scrollToTop(this.root)},t.prototype.updateAppearance=function(){this.header.toggleCollapse(this.isCollapsed),this.toggleSearchDisplay(),c.$$(this.element).toggleClass("coveo-dynamic-hierarchical-facet-collapsed",this.isCollapsed),c.$$(this.element).toggleClass("coveo-hidden",!this.values.allFacetValues.length)},t.prototype.toggleSearchDisplay=function(){if(!1!==this.options.enableFacetSearch)return c.$$(this.search.element).toggleClass("coveo-hidden",this.isCollapsed)},t.prototype.handleQuerySuccess=function(e){if(!this.dynamicFacetManager)return y.Utils.isNullOrUndefined(e.facets)?this.notImplementedError():void this.handleQueryResults(e)},t.prototype.handleQueryResults=function(e){var t=g.findIndex(e.facets,{facetId:this.options.id}),n=-1!==t?e.facets[t]:null;this.position=n?t+1:void 0,n?this.onNewValues(n):this.onNoValues(),this.header.hideLoading(),this.updateQueryStateModel(this.values.selectedPath),this.values.render(),this.updateAppearance()},t.prototype.onNewValues=function(e){var t=this;if(this.moreValuesAvailable=e.moreValuesAvailable,this.values.createFromResponse(e),this.options.customSort){var n=this.options.customSort.split(this.options.customSortDelimitingCharacter).map(function(e){return e.trim().split(t.options.delimitingCharacter)});this.values.reorderValues(n)}},t.prototype.onNoValues=function(){this.moreValuesAvailable=!1,this.values.resetValues()},t.prototype.updateQueryStateModel=function(e){this.listenToQueryStateChange=!1,this.queryStateModel.set(this.queryStateAttribute,e),this.listenToQueryStateChange=!0},t.prototype.beforeSendingQuery=function(){this.header.showLoading()},t.prototype.triggerNewQuery=function(e){this.beforeSendingQuery();var t=e?{beforeExecuteQuery:e}:{ignoreWarningSearchEvent:!0};this.queryController.executeQuery(t)},t.prototype.triggerNewIsolatedQuery=function(e){return r(this,void 0,void 0,function(){var t,n;return s(this,function(i){switch(i.label){case 0:this.beforeSendingQuery(),e&&e(),i.label=1;case 1:return i.trys.push([1,3,,4]),[4,this.dynamicHierarchicalFacetQueryController.getQueryResults()];case 2:return t=i.sent(),this.handleQueryResults(t),[3,4];case 3:return n=i.sent(),this.header.hideLoading(),[3,4];case 4:return[2]}})})},t.prototype.showMoreValues=function(e){var t=this;void 0===e&&(e=this.options.numberOfValues),this.ensureDom(),this.logger.info("Show more values"),this.dynamicHierarchicalFacetQueryController.increaseNumberOfValuesToRequest(e),this.triggerNewIsolatedQuery(function(){return t.logAnalyticsFacetShowMoreLess(w.analyticsActionCauseList.dynamicFacetShowMore)})},t.prototype.showLessValues=function(){var e=this;this.ensureDom(),this.logger.info("Show less values"),this.dynamicHierarchicalFacetQueryController.resetNumberOfValuesToRequest(),this.triggerNewIsolatedQuery(function(){return e.logAnalyticsFacetShowMoreLess(w.analyticsActionCauseList.dynamicFacetShowLess)})},t.prototype.selectPath=function(e){v.Assert.exists(e),v.Assert.isLargerThan(0,e.length),this.ensureDom(),this.updateQueryStateModel(e),this.values.selectPath(e),this.logger.info("Toggle select facet value at path",e)},t.prototype.clear=function(){var e=this;this.reset(),this.scrollToTop(),this.triggerNewQuery(function(){return e.logAnalyticsEvent(w.analyticsActionCauseList.dynamicFacetClearAll)})},t.prototype.reset=function(){this.ensureDom(),this.values.hasSelectedValue&&(this.enablePreventAutoSelectionFlag(),this.logger.info("Deselect facet value"),this.values.clearPath(),this.updateQueryStateModel([]))},t.prototype.toggleCollapse=function(){this.isCollapsed?this.expand():this.collapse()},t.prototype.expand=function(){if(!this.options.enableCollapse)return this.logger.warn('Calling expand() won\'t do anything on a facet that has the option "enableCollapse" set to "false"');this.isCollapsed&&(this.ensureDom(),this.logger.info("Expand facet values"),this.isCollapsed=!1,this.updateAppearance())},t.prototype.enableFreezeFacetOrderFlag=function(){this.dynamicHierarchicalFacetQueryController.enableFreezeFacetOrderFlag()},t.prototype.enablePreventAutoSelectionFlag=function(){this.dynamicHierarchicalFacetQueryController.enablePreventAutoSelectionFlag()},t.prototype.collapse=function(){if(!this.options.enableCollapse)return this.logger.warn('Calling collapse() won\'t do anything on a facet that has the option "enableCollapse" set to "false"');this.isCollapsed||(this.ensureDom(),this.logger.info("Collapse facet values"),this.isCollapsed=!0,this.updateAppearance())},t.prototype.createDom=function(){this.createAndAppendContent(),this.updateAppearance()},t.prototype.getCaption=function(e){var t=this.options.valueCaption,n=t[e];return n||e},t.prototype.logAnalyticsEvent=function(e){this.usageAnalytics.logSearchEvent(e,this.analyticsFacetMeta)},Object.defineProperty(t.prototype,"analyticsFacetValue",{get:function(){return this.values.selectedPath.join(this.options.delimitingCharacter)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"analyticsFacetState",{get:function(){return this.values.hasSelectedValue?[{field:this.options.field.toString(),id:this.options.id,title:this.options.title,facetType:this.facetType,facetPosition:this.position,value:this.analyticsFacetValue,displayValue:this.analyticsFacetValue,state:F.FacetValueState.selected,valuePosition:1}]:[]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"analyticsFacetMeta",{get:function(){return{facetField:this.options.field.toString(),facetId:this.options.id,facetTitle:this.options.title,facetValue:this.analyticsFacetValue}},enumerable:!0,configurable:!0}),t.prototype.createAndAppendContent=function(){this.createAndAppendHeader(),this.createAndAppendSearch(),this.createAndAppendValues()},t.prototype.createAndAppendHeader=function(){var e=this;this.header=new x.DynamicFacetHeader({id:this.options.id,title:this.options.title,enableCollapse:this.options.enableCollapse,clear:function(){return e.clear()},toggleCollapse:function(){return e.toggleCollapse()},expand:function(){return e.expand()},collapse:function(){return e.collapse()}}),this.element.appendChild(this.header.element)},t.prototype.createAndAppendSearch=function(){!1!==this.options.enableFacetSearch&&(this.search=new P.DynamicHierarchicalFacetSearch(this),this.element.appendChild(this.search.element))},t.prototype.createAndAppendValues=function(){this.element.appendChild(this.values.render())},t.prototype.pathIsValidForSelection=function(e){return!y.Utils.isNullOrUndefined(e)&&g.isArray(e)},t.prototype.handleQueryStateChanged=function(e){if(this.listenToQueryStateChange){var t=e.attributes[this.queryStateAttribute];this.pathIsValidForSelection(t)&&(y.Utils.arrayEqual(t,this.values.selectedPath)||(t.length?this.selectPath(t):this.reset()))}},t.prototype.initQueryStateEvents=function(){var e=this;this.queryStateModel.registerNewAttribute(this.queryStateAttribute,[]),this.bind.onQueryState(m.MODEL_EVENTS.CHANGE,void 0,function(t){return e.handleQueryStateChanged(t)})},t.prototype.initDependsOnManager=function(){var e=this,t={reset:function(){return e.reset()},ref:this};this.dependsOnManager=new E.DependsOnManager(t)},t.prototype.notImplementedError=function(){this.logger.error("DynamicHierarchicalFacets are not supported by your current search endpoint. Disabling this component."),this.disable(),this.updateAppearance()},t.prototype.handlePopulateBreadcrumb=function(e){if(v.Assert.exists(e),this.values.hasSelectedValue){var t=new C.DynamicHierarchicalFacetBreadcrumb(this);e.breadcrumbs.push({element:t.element})}},t.prototype.logAnalyticsFacetShowMoreLess=function(e){this.usageAnalytics.logCustomEvent(e,this.analyticsFacetMeta,this.element)},t.ID="DynamicHierarchicalFacet",t.doExport=function(){d.exportGlobally({DynamicHierarchicalFacet:t})},t.options=o({id:l.ComponentOptions.buildStringOption({postProcessing:function(e,t){return e||t.field},section:"CommonOptions"}),field:l.ComponentOptions.buildFieldOption({required:!0,section:"CommonOptions"}),title:l.ComponentOptions.buildLocalizedStringOption({localizedString:function(){return u.l("NoTitle")},section:"CommonOptions"}),numberOfValues:l.ComponentOptions.buildNumberOption({defaultValue:5,min:0,section:"CommonOptions"}),enableCollapse:l.ComponentOptions.buildBooleanOption({defaultValue:!0,section:"CommonOptions"}),collapsedByDefault:l.ComponentOptions.buildBooleanOption({defaultValue:!1,section:"CommonOptions",depend:"enableCollapse"}),enableScrollToTop:l.ComponentOptions.buildBooleanOption({defaultValue:!0,section:"CommonOptions"}),includeInBreadcrumb:l.ComponentOptions.buildBooleanOption({defaultValue:!0,section:"CommonOptions"}),injectionDepth:l.ComponentOptions.buildNumberOption({defaultValue:1e3,min:0}),enableMoreLess:l.ComponentOptions.buildBooleanOption({defaultValue:!0,section:"CommonOptions"}),enableFacetSearch:l.ComponentOptions.buildBooleanOption({section:"Filtering",defaultValue:!1}),delimitingCharacter:l.ComponentOptions.buildStringOption({defaultValue:"|",section:"CommonOptions"}),valueCaption:l.ComponentOptions.buildJsonOption({defaultValue:{}}),dependsOn:l.ComponentOptions.buildStringOption({section:"CommonOptions"}),dependsOnCondition:l.ComponentOptions.buildCustomOption(function(){return null},{depend:"dependsOn",section:"CommonOptions"}),filterFacetCount:l.ComponentOptions.buildBooleanOption({section:"Filtering"}),sortCriteria:l.ComponentOptions.buildStringOption({postProcessing:function(e){if(e)return e===M.FacetSortCriteria.alphanumeric||e===M.FacetSortCriteria.occurrences?e:void new I.Logger(e).warn('sortCriteria is not of the the allowed values: "alphanumeric", "occurrences"')},section:"Sorting"}),customSort:l.ComponentOptions.buildStringOption({section:"Sorting"}),customSortDelimitingCharacter:l.ComponentOptions.buildStringOption({section:"Sorting",depend:"customSort",postProcessing:function(e,t){return y.Utils.isNullOrUndefined(e)?","===t.delimitingCharacter?"|":",":e}}),clearLabel:l.ComponentOptions.buildLocalizedStringOption({localizedString:function(){return u.l("AllCategories")},section:"CommonOptions"}),basePath:l.ComponentOptions.buildListOption({defaultValue:[]})},O.ResponsiveFacetOptions),t}(a.Component);t.DynamicHierarchicalFacet=D,p.Initialization.registerAutoCreateComponent(D),D.doExport()},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=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])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),o=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))(function(o,r){function s(e){try{u(i.next(e))}catch(e){r(e)}}function a(e){try{u(i.throw(e))}catch(e){r(e)}}function u(e){e.done?o(e.value):new n(function(t){t(e.value)}).then(s,a)}u((i=i.apply(e,t||[])).next())})},r=this&&this.__generator||function(e,t){function n(e){return function(t){return i([e,t])}}function i(n){if(o)throw new TypeError("Generator is already executing.");for(;u;)try{if(o=1,r&&(s=r[2&n[0]?"return":n[0]?"throw":"next"])&&!(s=s.call(r,n[1])).done)return s;switch(r=0,s&&(n=[0,s.value]),n[0]){case 0:case 1:s=n;break;case 4:return u.label++,{value:n[1],done:!1};case 5:u.label++,r=n[1],n=[0];continue;case 7:n=u.ops.pop(),u.trys.pop();continue;default:if(s=u.trys,!(s=s.length>0&&s[s.length-1])&&(6===n[0]||2===n[0])){u=0;continue}if(3===n[0]&&(!s||n[1]>s[0]&&n[1]<s[3])){u.label=n[1];break}if(6===n[0]&&u.label<s[1]){u.label=s[1],s=n;break}if(s&&u.label<s[2]){u.label=s[2],u.ops.push(n);break}s[2]&&u.ops.pop(),u.trys.pop();continue}n=t.call(e,u)}catch(e){n=[6,e],r=0}finally{o=s=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}var o,r,s,a,u={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return a={next:n(0),throw:n(1),return:n(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a};Object.defineProperty(t,"__esModule",{value:!0}),n(221);var s=n(2),a=n(136),u=n(525),l=n(8),c=n(3),p=n(6),d=n(180),h=n(515),f=n(692),m=n(698),y=n(20),g=n(699),v=n(9),b=function(e){function t(n,i,o){var r=e.call(this,n,l.ComponentOptions.initComponentOptions(n,t,i),o,t.ID)||this;return r.element=n,r.options=i,r.isFieldValueCompatible=!1,r.disableUnavailableOptions(),r}return i(t,e),t.prototype.initValues=function(){this.values=new h.DynamicFacetValues(this,f.DynamicFacetRangeValueCreator)},t.prototype.initDynamicFacetQueryController=function(){this.dynamicFacetQueryController=new m.DynamicFacetRangeQueryController(this)},t.prototype.disableUnavailableOptions=function(){this.options.enableFacetSearch=!1,this.options.useLeadingWildcardInFacetSearch=!1,this.options.enableMoreLess=!1,this.options.valueCaption={},this.options.sortCriteria=void 0,this.options.customSort=void 0},Object.defineProperty(t.prototype,"facetType",{get:function(){return this.options.valueFormat===u.DynamicFacetRangeValueFormat.date?d.FacetType.dateRange:d.FacetType.numericalRange},enumerable:!0,configurable:!0}),t.prototype.showMoreValues=function(){this.logger.warn('The "showMoreValues" method is not available on the "DynamicFacetRange" component')},t.prototype.showLessValues=function(){this.logger.warn('The "showLessValues" method is not available on the "DynamicFacetRange" component')},t.prototype.triggerNewIsolatedQuery=function(){return o(this,void 0,void 0,function(){return r(this,function(e){return this.logger.warn('The "triggerNewIsolatedQuery" method is not available on the "DynamicFacetRange" component'),[2]})})},t.ID="DynamicFacetRange",t.parent=a.DynamicFacet,t.doExport=function(){return c.exportGlobally({DynamicFacetRange:t})},t.options={valueSeparator:l.ComponentOptions.buildLocalizedStringOption({localizedString:function(){return p.l("To")},section:"CommonOptions"}),field:l.ComponentOptions.buildFieldOption({required:!0,section:"CommonOptions"}),valueFormat:l.ComponentOptions.buildStringOption({postProcessing:function(e,t){return u.isFacetRangeValueFormat(e)?e:-1!==t.field.indexOf("date")?u.DynamicFacetRangeValueFormat.date:u.DynamicFacetRangeValueFormat.number},section:"CommonOptions"}),currencySymbol:l.ComponentOptions.buildStringOption({section:"CommonOptions"}),ranges:l.ComponentOptions.buildJsonOption({section:"CommonOptions",postProcessing:function(e){return y.Utils.isNonEmptyArray(e)?e:[]}}),sortOrder:l.ComponentOptions.buildStringOption({postProcessing:function(e){if(e)return g.isFacetRangeSortOrder(e)?e:void new v.Logger(e).warn('sortOrder is not of the the allowed values: "ascending", "descending"')},section:"Sorting"})},t}(a.DynamicFacet);t.DynamicFacetRange=b,s.Initialization.registerAutoCreateComponent(b),b.doExport()},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=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])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n(7),r=n(16),s=n(11),a=n(3),u=n(0),l=n(1),c=n(4),p=n(8),d=n(5),h=n(2),f=n(47),m=function(e){function t(n,i){var o=e.call(this,n,"DynamicFacetManager")||this;return o.options=i,o.childrenFacets=[],o.options=p.ComponentOptions.initComponentOptions(n,t,i),o.resetContainer(),o.prependContainer(),o.initEvents(),o}return i(t,e),Object.defineProperty(t.prototype,"enabledFacets",{get:function(){return this.childrenFacets.filter(function(e){return!e.disabled})},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"displayedFacets",{get:function(){return this.childrenFacets.filter(function(e){return e.isCurrentlyDisplayed()})},enumerable:!0,configurable:!0}),t.prototype.resetContainer=function(){this.containerElement&&l.$$(this.containerElement).remove(),this.containerElement=l.$$("div",{className:"coveo-dynamic-facet-manager-container"}).el},t.prototype.prependContainer=function(){l.$$(this.element).prepend(this.containerElement)},t.prototype.initEvents=function(){var e=this;this.bind.onRootElement(r.InitializationEvents.afterComponentsInitialization,function(){return e.handleAfterComponentsInitialization()}),this.bind.onRootElement(s.QueryEvents.doneBuildingQuery,function(t){return e.handleDoneBuildingQuery(t)}),this.bind.onRootElement(s.QueryEvents.deferredQuerySuccess,function(t){return e.handleQuerySuccess(t)})},t.prototype.isDynamicFacet=function(e){return!!e.isDynamicFacet},Object.defineProperty(t.prototype,"allDynamicFacets",{get:function(){return f.ComponentsTypes.getAllFacetInstancesFromElement(this.element).filter(this.isDynamicFacet)},enumerable:!0,configurable:!0}),t.prototype.handleAfterComponentsInitialization=function(){var e=this;this.childrenFacets=this.allDynamicFacets,this.childrenFacets.forEach(function(t){t.dynamicFacetManager=e,e.containerElement.appendChild(t.element)}),this.element.children.length>1&&this.logger.warn("DynamicFacetManager contains incompatible elements. Those elements may be moved in the DOM.\n        To prevent this warning, move those elements outside of the DynamicFacetManager."),this.childrenFacets.length||this.disable()},t.prototype.handleDoneBuildingQuery=function(e){d.Assert.exists(e),d.Assert.exists(e.queryBuilder),this.enabledFacets.forEach(function(t){t.putStateIntoQueryBuilder(e.queryBuilder),t.putStateIntoAnalytics()})},t.prototype.handleQuerySuccess=function(e){return c.Utils.isNullOrUndefined(e.results.facets)?this.notImplementedError():(this.enabledFacets.forEach(function(t){t.handleQueryResults(e.results)}),e.query.facetOptions&&e.query.facetOptions.freezeFacetOrder?this.callOnUpdateOnChildrenFacets():(this.options.enableReorder&&(this.options.compareFacets?this.sortFacetsWithCompareOption():this.sortFacetsWithResponseOrder(e.results.facets),this.reorderFacetsInDom()),this.respectMaximumExpandedFacetsThreshold(),void this.callOnUpdateOnChildrenFacets()))},t.prototype.callOnUpdateOnChildrenFacets=function(){var e=this;this.options.onUpdate&&this.childrenFacets.forEach(function(t,n){return e.options.onUpdate(t,n)})},t.prototype.sortFacetsWithResponseOrder=function(e){var t=this,n=e.map(function(e){var n=e.facetId;return t.getChildFacetWithId(n)}).filter(c.Utils.exists),i=u.without.apply(void 0,[this.childrenFacets].concat(n));this.childrenFacets=n.concat(i)},t.prototype.sortFacetsWithCompareOption=function(){this.childrenFacets=this.childrenFacets.sort(this.options.compareFacets)},t.prototype.reorderFacetsInDom=function(){this.resetContainer();var e=document.createDocumentFragment();this.childrenFacets.forEach(function(t){return e.appendChild(t.element)}),this.containerElement.appendChild(e),this.prependContainer()},t.prototype.respectMaximumExpandedFacetsThreshold=function(){if(-1!==this.options.maximumNumberOfExpandedFacets){var e=u.partition(this.displayedFacets,function(e){return e.options.enableCollapse}),t=e[0],n=e[1],i=this.options.maximumNumberOfExpandedFacets-n.length;t.forEach(function(e){return i<1?e.collapse():e.options.collapsedByDefault?(e.logger.info('The facet has its "collapsedByDefault" option set to "true", which prevents the DynamicFacetManager from expanding it.',"While this configuration may be legitimate, it partially defeats the purpose of the dynamic navigation experience feature.","For more information, see https://docs.coveo.com/en/2917/."),e.collapse()):(i--,void e.expand())})}},t.prototype.getChildFacetWithId=function(e){return u.find(this.childrenFacets,function(t){return t.options.id===e})},t.prototype.notImplementedError=function(){this.logger.error("DynamicFacetManager is not supported by your current search endpoint. Disabling this component."),this.disable()},t.prototype.isCurrentlyDisplayed=function(){return!!u.find(this.childrenFacets,function(e){return e.isCurrentlyDisplayed()})},t.ID="DynamicFacetManager",t.doExport=function(){return a.exportGlobally({DynamicFacetManager:t})},t.options={enableReorder:p.ComponentOptions.buildBooleanOption({defaultValue:!0,section:"Filtering"}),onUpdate:p.ComponentOptions.buildCustomOption(function(){return null}),compareFacets:p.ComponentOptions.buildCustomOption(function(){return null}),maximumNumberOfExpandedFacets:p.ComponentOptions.buildNumberOption({defaultValue:4,min:-1})},t}(o.Component);t.DynamicFacetManager=m,h.Initialization.registerAutoCreateComponent(m),m.doExport()},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=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])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0}),n(700);var o=n(20),r=n(3),s=n(10),a=n(7),u=n(8),l=n(203),c=n(204),p=function(e){function t(n,i,o,r){var s=e.call(this,n,t.ID,o)||this;return s.element=n,s.options=i,s.result=r,s.options=u.ComponentOptions.initComponentOptions(n,t,i),s.addMissingTerms(),s}return i(t,e),Object.defineProperty(t.prototype,"missingTerms",{get:function(){for(var e=[],t=0,n=this.result.absentTerms;t<n.length;t++){var i=n[t],o=this.createWordBoundaryDelimitedRegex(i),r=this.queryStateModel.get("q"),s=o.exec(r);if(s){var a=s[4];e.push(a)}}return e},enumerable:!0,configurable:!0}),t.prototype.addTermForcedToAppear=function(e){if(-1===this.missingTerms.indexOf(e))return void this.logger.warn('Method execution aborted because the term to inject in aq ("'+e+'") is not a missing term.',"Allowed missing terms: "+this.missingTerms.toString()+".");this.updateTermForcedToAppear(),this.termForcedToAppear.push(e),this.queryStateModel.set("missingTerms",this.termForcedToAppear.slice())},t.prototype.updateTermForcedToAppear=function(){this.termForcedToAppear=this.queryStateModel.get("missingTerms").slice()},t.prototype.addMissingTerms=function(){var e=this;if(0!==this.missingTerms.length){var t=this.buildContainer();t.length>1&&(this.hideMissingTermsOverTheNumberOfResults(t),t.map(function(t){o.$$(e.element).append(t)}))}},t.prototype.buildContainer=function(){var e=[];return e.push(this.buildCaption().el),this.buildMissingTerms().forEach(function(t){t&&e.push(t.el)}),e},t.prototype.buildCaption=function(){return o.$$("span",{className:"coveo-field-caption"},this.options.caption)},t.prototype.buildMissingTerms=function(){var e=this;return this.missingTerms.filter(function(t){return e.isValidTerm(t)}).map(function(t){return e.makeTermClickableIfEnabled(t)})},t.prototype.executeNewQuery=function(e){void 0===e&&(e=this.queryStateModel.get("q")),this.queryController.executeQuery()},t.prototype.makeTermClickableIfEnabled=function(e){var t=this;if(this.options.clickable){var n=o.$$("button",{className:"coveo-missing-term coveo-clickable"},e);return n.on("click",function(){t.addTermForcedToAppear(e),t.logAnalyticsAddMissingTerm(e),t.executeNewQuery(e)}),n}return o.$$("span",{className:"coveo-missing-term"},e)},t.prototype.createWordBoundaryDelimitedRegex=function(e){return c(l.MissingTermManager.wordBoundary+"("+e+")"+l.MissingTermManager.wordBoundary,"gi")},t.prototype.containsFeaturedResults=function(e){return this.updateTermForcedToAppear(),-1!==this.termForcedToAppear.indexOf(e)},t.prototype.hideMissingTermsOverTheNumberOfResults=function(e){var t=this,n=e.filter(function(e){return"BUTTON"===e.tagName});if(!(n.length<=this.options.numberOfTerms)){for(var i=this.options.numberOfTerms;i<n.length;i++)o.$$(n[i]).hide();var r=n.length-this.options.numberOfTerms,s=o.$$("button",{className:"coveo-missing-term-show-more coveo-clickable"},o.l("NMore",[r]));s.on("click",function(){t.showAllHiddenMissingTerms()}),e.push(s.el)}},t.prototype.showAllHiddenMissingTerms=function(){var e=o.$$(this.element).find(".coveo-missing-term-show-more");e.parentNode.removeChild(e);for(var t=o.$$(this.element).findAll(".coveo-missing-term"),n=this.options.numberOfTerms;n<t.length;n++)o.$$(t[n]).show(),t[n].removeAttribute("style")},t.prototype.isValidTerm=function(e){return this.isNonBoundaryTerm(e)&&!this.containsFeaturedResults(e)},t.prototype.isNonBoundaryTerm=function(e){var t=c("\\p{L}*[-'?*’.~=,/\\\\:`;_!&()]+\\p{L}*","gi");return(this.queryStateModel.get("q").match(t)||[]).every(function(t){return-1===t.indexOf(e)})},t.prototype.logAnalyticsAddMissingTerm=function(e){this.usageAnalytics.logSearchEvent(s.analyticsActionCauseList.addMissingTerm,{missingTerm:e})},t.ID="MissingTerms",t.options={clickable:u.ComponentOptions.buildBooleanOption({defaultValue:!0}),caption:u.ComponentOptions.buildLocalizedStringOption({localizedString:function(){return o.l("Missing")}}),numberOfTerms:u.ComponentOptions.buildNumberOption({defaultValue:5,min:1})},t.doExport=function(){r.exportGlobally({MissingTerms:t})},t}(a.Component);t.MissingTerms=p,o.Initialization.registerAutoCreateComponent(p)},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=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])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),o=this&&this.__assign||Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},r=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))(function(o,r){function s(e){try{u(i.next(e))}catch(e){r(e)}}function a(e){try{u(i.throw(e))}catch(e){r(e)}}function u(e){e.done?o(e.value):new n(function(t){t(e.value)}).then(s,a)}u((i=i.apply(e,t||[])).next())})},s=this&&this.__generator||function(e,t){function n(e){return function(t){return i([e,t])}}function i(n){if(o)throw new TypeError("Generator is already executing.");for(;u;)try{if(o=1,r&&(s=r[2&n[0]?"return":n[0]?"throw":"next"])&&!(s=s.call(r,n[1])).done)return s;switch(r=0,s&&(n=[0,s.value]),n[0]){case 0:case 1:s=n;break;case 4:return u.label++,{value:n[1],done:!1};case 5:u.label++,r=n[1],n=[0];continue;case 7:n=u.ops.pop(),u.trys.pop();continue;default:if(s=u.trys,!(s=s.length>0&&s[s.length-1])&&(6===n[0]||2===n[0])){u=0;continue}if(3===n[0]&&(!s||n[1]>s[0]&&n[1]<s[3])){u.label=n[1];break}if(6===n[0]&&u.label<s[1]){u.label=s[1],s=n;break}if(s&&u.label<s[2]){u.label=s[2],u.ops.push(n);break}s[2]&&u.ops.pop(),u.trys.pop();continue}n=t.call(e,u)}catch(e){n=[6,e],r=0}finally{o=s=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}var o,r,s,a,u={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return a={next:n(0),throw:n(1),return:n(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a};Object.defineProperty(t,"__esModule",{value:!0});var a=n(3),u=n(20);n(701);var l=n(61),c=n(469),p=n(70),d=n(10),h=n(193),f=n(506),m=function(e){function t(n,i,o){var r=e.call(this,n,t.ID,o)||this;return r.element=n,r.options=i,r.bindings=o,r.options=u.ComponentOptions.initComponentOptions(n,t,i),r.options.resultTemplate||(r.logger.warn("No template was provided for "+t.ID+", a default template was used instead."),r.options.resultTemplate=r.buildDefaultSearchResultPreviewTemplate()),r.bind.onRootElement(f.ResultPreviewsManagerEvents.updateResultPreviewsManagerOptions,function(e){return e.displayAfterDuration=Math.max(e.displayAfterDuration||0,r.options.executeQueryDelay)}),r.bind.onRootElement(f.ResultPreviewsManagerEvents.populateSearchResultPreviews,function(e){return r.populateSearchResultPreviews(e)}),r.omniboxAnalytics=r.searchInterface.getOmniboxAnalytics(),r}return i(t,e),t.prototype.buildDefaultSearchResultPreviewTemplate=function(){return u.HtmlTemplate.create(u.$$("div",{className:"result-template"},u.$$("div",{className:"coveo-result-frame coveo-default-result-preview"},u.$$("div",{className:u.Component.computeCssClassName(h.ImageFieldValue),"data-field":"@image"}),u.$$("a",{className:u.Component.computeCssClassName(p.ResultLink)}))).el)},Object.defineProperty(t.prototype,"templateToHtml",{get:function(){var e={searchInterface:this.searchInterface,queryStateModel:this.queryStateModel,resultTemplate:this.options.resultTemplate};return new c.TemplateToHtml(e)},enumerable:!0,configurable:!0}),t.prototype.populateSearchResultPreviews=function(e){e.previewsQueries.push(this.fetchSearchResultPreviews(e.suggestion))},t.prototype.fetchSearchResultPreviews=function(e){return r(this,void 0,void 0,function(){var t,n;return s(this,function(i){switch(i.label){case 0:return t=this.buildQuery(e),this.logShowQuerySuggestPreview(),[4,this.queryController.getEndpoint().search(t)];case 1:return n=i.sent(),n?[2,this.buildResultsPreview(e,n)]:[2,[]]}})})},t.prototype.buildQuery=function(e){var t=this.buildDefaultQuery(e);return u.$$(this.root).trigger(f.ResultPreviewsManagerEvents.buildingResultPreviewsQuery,{query:t}),t},t.prototype.buildDefaultQuery=function(e){var t=this.queryController.getLastQuery(),n=t.searchHub,i=t.pipeline,r=t.tab,s=t.locale,a=t.timezone,u=t.context,l=t.cq;return o({firstResult:0,searchHub:n,pipeline:i,tab:r,locale:s,timezone:a,context:u,cq:l,numberOfResults:this.options.numberOfPreviewResults,q:e.text||e.dom.innerText},e.advancedQuery&&{aq:e.advancedQuery})},t.prototype.buildResultsPreview=function(e,t){return r(this,void 0,void 0,function(){var n,i=this;return s(this,function(o){switch(o.label){case 0:return[4,this.templateToHtml.buildResults(t,"preview",[])];case 1:return n=o.sent(),n.length>0?[2,n.map(function(t,n){return i.buildResultPreview(e,t,n)})]:[2,[]]}})})},t.prototype.buildResultPreview=function(e,t,n){var i=this;t.classList.add("coveo-preview-selectable");var o=t.querySelector(u.Component.computeSelectorForType(p.ResultLink.ID));return o&&(t.setAttribute("aria-label",o.textContent),o.setAttribute("role","link"),o.removeAttribute("aria-level")),{element:t,onSelect:function(){return i.handleSelect(e,t,n)}}},t.prototype.handleSelect=function(e,t,n){this.logClickQuerySuggestPreview(e,n,t);var i=u.$$(t).find("."+u.Component.computeCssClassNameForType("ResultLink"));if(i){var o=u.Component.get(i);o.openLinkAsConfigured(),o.openLink()}},t.prototype.logShowQuerySuggestPreview=function(){this.usageAnalytics.logSearchEvent(d.analyticsActionCauseList.showQuerySuggestPreview,this.omniboxAnalytics.buildCustomDataForPartialQueries())},t.prototype.logClickQuerySuggestPreview=function(e,t,n){this.usageAnalytics.logCustomEvent(d.analyticsActionCauseList.clickQuerySuggestPreview,{suggestion:e.text||e.dom.innerText,displayedRank:t},n)},t.ID="QuerySuggestPreview",t.doExport=function(){a.exportGlobally({QuerySuggestPreview:t})},t.options={resultTemplate:l.TemplateComponentOptions.buildTemplateOption(),numberOfPreviewResults:u.ComponentOptions.buildNumberOption({defaultValue:4,min:1,max:6}),executeQueryDelay:u.ComponentOptions.buildNumberOption({defaultValue:200})},t}(u.Component);t.QuerySuggestPreview=m,u.Initialization.registerAutoCreateComponent(m)},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=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])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n(7),r=n(8),s=n(11),a=n(56),u=n(2),l=n(3),c=n(34),p=function(e){function t(n,i,o){var u=e.call(this,n,t.ID,o)||this;return u.element=n,u.options=i,u.bindings=o,u.options=r.ComponentOptions.initComponentOptions(n,t,i),u.bind.onRootElement(s.QueryEvents.doneBuildingQuery,u.handleDoneBuildingQuery),u.bind.onRootElement(c.OmniboxEvents.buildingQuerySuggest,u.handleBuildingQuerySuggest),u.bind.onRootElement(a.AnalyticsEvents.changeAnalyticsCustomData,u.handleChangeAnalytics),u}return i(t,e),t.prototype.handleDoneBuildingQuery=function(e){this.options.listing&&(e.queryBuilder.tab=this.options.listing,e.queryBuilder.addContextValue("listing",this.options.listing))},t.prototype.handleBuildingQuerySuggest=function(e){this.options.listing&&(e.payload.tab=this.options.listing,(e.payload.context||(e.payload.context={})).listing=this.options.listing)},t.prototype.handleChangeAnalytics=function(e){this.options.listing&&(e.originLevel2=this.options.listing)},t.ID="CommerceQuery",t.doExport=function(){l.exportGlobally({CommerceQuery:t})},t.options={listing:r.ComponentOptions.buildStringOption()},t}(o.Component);t.CommerceQuery=p,u.Initialization.registerAutoCreateComponent(p)},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=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])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0}),n(702);var o=n(0),r=n(3),s=n(11),a=n(18),u=n(13),l=n(1),c=n(7),p=n(8),d=n(2),h=n(16),f=n(192),m=n(63),y=n(6),g=function(e){function t(n,i,o){var r=e.call(this,n,t.ID,o)||this;return r.element=n,r.options=i,r.sortComponents=[],r.options=p.ComponentOptions.initComponentOptions(n,t,i),r.removeTabSupport(),r.bind.oneRootElement(h.InitializationEvents.afterInitialization,function(){return r.handleAfterInitialization()}),r.bind.onQueryState(a.MODEL_EVENTS.CHANGE_ONE,u.QUERY_STATE_ATTRIBUTES.SORT,function(e){return r.handleQueryStateChanged(e)}),r.bind.onRootElement(s.QueryEvents.querySuccess,function(e){return r.handleQuerySuccess(e)}),r.bind.onRootElement(s.QueryEvents.queryError,function(e){return r.handleQueryError(e)}),r}return i(t,e),t.prototype.handleAfterInitialization=function(){this.buildDropdown()},t.prototype.clearDropdown=function(){this.dropdown&&this.element.removeChild(this.dropdown.getElement()),this.dropdown=null},t.prototype.buildDropdown=function(){var e=this;this.sortComponents=this.getEnabledSortComponents(),this.clearDropdown(),this.sortComponents.length&&(this.dropdown=new m.Dropdown(function(){return e.handleChange()},this.getValuesForDropdown(),function(t){return e.getCaptionForValue(t)},y.l("SortBy")),this.element.appendChild(this.dropdown.getElement()),this.update())},t.prototype.getEnabledSortComponents=function(){var e=this;return l.$$(this.element).findAll("."+c.Component.computeCssClassNameForType("Sort")).map(function(t){var n=c.Component.get(t,f.Sort);return 1==n.options.sortCriteria.length?n:void e.logger.warn("Each Sort component inside a SortDropdown should have only one sort criteria. Skipping "+n.options.caption+" in the SortDropdown.")}).filter(function(e){return e&&!e.disabled})},t.prototype.getValuesForDropdown=function(){return this.sortComponents.map(function(e){return e.options.sortCriteria.toString()})},t.prototype.handleQueryStateChanged=function(e){this.update()},t.prototype.update=function(){if(this.dropdown){var e=this.queryStateModel.get(u.QueryStateModel.attributesEnum.sort);this.select(e)}},t.prototype.select=function(e,t){void 0===t&&(t=!1);var n=this.getSortIndex(e);n>-1&&this.dropdown.select(n,t),l.$$(this.dropdown.getElement()).toggleClass("coveo-selected",n>-1)},t.prototype.handleQuerySuccess=function(e){return e.results.results.length?(this.buildDropdown(),this.sortComponents.length?void this.showElement():this.hideElement()):this.hideElement()},t.prototype.handleQueryError=function(e){this.hideElement()},t.prototype.handleChange=function(){var e=this.dropdown.getValue(),t=this.getSortIndex(e);t>-1&&this.sortComponents[t].selectAndExecuteQuery()},t.prototype.getCaptionForValue=function(e){var t=this.getSortIndex(e);return t>-1?this.sortComponents[t].options.caption:""},t.prototype.getSortIndex=function(e){return o.findIndex(this.sortComponents,function(t){return t.options.sortCriteria.toString()===e})},t.prototype.hideElement=function(){l.$$(this.element).hide()},t.prototype.showElement=function(){l.$$(this.element).show()},t.ID="SortDropdown",t.options={},t.doExport=function(){r.exportGlobally({SortDropdown:t})},t}(c.Component);t.SortDropdown=g,d.Initialization.registerAutoCreateComponent(g)},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=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])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),o=this&&this.__assign||Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},r=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))(function(o,r){function s(e){try{u(i.next(e))}catch(e){r(e)}}function a(e){try{u(i.throw(e))}catch(e){r(e)}}function u(e){e.done?o(e.value):new n(function(t){t(e.value)}).then(s,a)}u((i=i.apply(e,t||[])).next())})},s=this&&this.__generator||function(e,t){function n(e){return function(t){return i([e,t])}}function i(n){if(o)throw new TypeError("Generator is already executing.");for(;u;)try{if(o=1,r&&(s=r[2&n[0]?"return":n[0]?"throw":"next"])&&!(s=s.call(r,n[1])).done)return s;switch(r=0,s&&(n=[0,s.value]),n[0]){case 0:case 1:s=n;break;case 4:return u.label++,{value:n[1],done:!1};case 5:u.label++,r=n[1],n=[0];continue;case 7:n=u.ops.pop(),u.trys.pop();continue;default:if(s=u.trys,!(s=s.length>0&&s[s.length-1])&&(6===n[0]||2===n[0])){u=0;continue}if(3===n[0]&&(!s||n[1]>s[0]&&n[1]<s[3])){u.label=n[1];break}if(6===n[0]&&u.label<s[1]){u.label=s[1],s=n;break}if(s&&u.label<s[2]){u.label=s[2],u.ops.push(n);break}s[2]&&u.ops.pop(),u.trys.pop();continue}n=t.call(e,u)}catch(e){n=[6,e],r=0}finally{o=s=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}var o,r,s,a,u={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return a={next:n(0),throw:n(1),return:n(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a};Object.defineProperty(t,"__esModule",{value:!0});var a=n(26),u=n(3),l=n(7),c=n(20);n(703);var p=n(0),d=n(704),h=n(10),f=n(705),m=n(706),y=n(6),g=n(521),v=n(4),b=n(8),S=n(522),C=n(70),w=[{analytics:h.AnalyticsSmartSnippetFeedbackReason.DoesNotAnswer,localeKey:"UsefulnessFeedbackDoesNotAnswer"},{analytics:h.AnalyticsSmartSnippetFeedbackReason.PartiallyAnswers,localeKey:"UsefulnessFeedbackPartiallyAnswers"},{analytics:h.AnalyticsSmartSnippetFeedbackReason.WasNotAQuestion,localeKey:"UsefulnessFeedbackWasNotAQuestion"},{analytics:h.AnalyticsSmartSnippetFeedbackReason.Other,localeKey:"Other",hasDetails:!0}],_="coveo-smart-snippet",O=_+"-content-wrapper",x=_+"-source";t.SmartSnippetClassNames={QUESTION_CLASSNAME:"coveo-smart-snippet-question",ANSWER_CONTAINER_CLASSNAME:"coveo-smart-snippet-answer",HAS_ANSWER_CLASSNAME:"coveo-smart-snippet-has-answer",SHADOW_CLASSNAME:"coveo-smart-snippet-content",CONTENT_CLASSNAME:O,SOURCE_CLASSNAME:x,SOURCE_TITLE_CLASSNAME:"coveo-smart-snippet-source-title",SOURCE_URL_CLASSNAME:"coveo-smart-snippet-source-url"};var E=function(e){function t(n,i,o,r){void 0===r&&(r=a.ModalBox);var s=e.call(this,n,t.ID,o)||this;return s.element=n,s.options=i,s.ModalBox=r,s.lastRenderedResult=null,s.options=b.ComponentOptions.initComponentOptions(n,t,i),s.bind.onRootElement(c.QueryEvents.deferredQuerySuccess,function(e){return s.handleQuerySuccess(e)}),s}return i(t,e),Object.defineProperty(t.prototype,"loading",{get:function(){return this.shadowLoading},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"style",{get:function(){var e=c.$$(this.element).children().filter(function(e){return e instanceof HTMLScriptElement&&"text/css"===e.type.toLowerCase()}).map(function(e){return e.innerHTML});return e.length?e.join("\n"):null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasAnswer",{set:function(e){c.$$(this.element).toggleClass("coveo-smart-snippet-has-answer",e)},enumerable:!0,configurable:!0}),t.prototype.createDom=function(){var e=this;this.element.appendChild(this.buildAnswerContainer()),this.feedbackBanner=new d.UserFeedbackBanner(function(t){return t?e.sendLikeSmartSnippetAnalytics():e.sendDislikeSmartSnippetAnalytics()},function(){return e.openExplanationModal()}),this.element.appendChild(this.feedbackBanner.build()),this.explanationModal=new m.ExplanationModal({reasons:w.map(function(t){return{label:y.l(t.localeKey),id:t.analytics.replace(/_/g,"-"),onSelect:function(){return e.sendExplanationAnalytics(t.analytics,e.explanationModal.details)},hasDetails:t.hasDetails}}),onClosed:function(){return e.sendCloseFeedbackModalAnalytics()},ownerElement:this.searchInterface.options.modalContainer,modalBoxModule:this.ModalBox})},t.prototype.buildAnswerContainer=function(){return c.$$("div",{className:"coveo-smart-snippet-answer"},this.buildQuestion(),this.buildShadow(),this.buildHeightLimiter(),this.buildSourceContainer()).el},t.prototype.buildQuestion=function(){return this.questionContainer=c.$$("div",{className:"coveo-smart-snippet-question"}).el},t.prototype.buildShadow=function(){var e=this;return this.shadowContainer=c.$$("div",{className:"coveo-smart-snippet-content"}).el,this.snippetContainer=c.$$("section",{className:O}).el,this.shadowLoading=g.attachShadow(this.shadowContainer,{mode:"open",title:y.l("AnswerSnippet"),onSizeChanged:function(){return e.handleAnswerSizeChanged()},useIFrame:this.options.useIFrame}).then(function(t){t.appendChild(e.snippetContainer);var n=e.buildStyle();return t.appendChild(n),t}),this.shadowContainer},t.prototype.buildHeightLimiter=function(){var e=this;return(this.heightLimiter=new f.HeightLimiter(this.shadowContainer,this.shadowContainer.childNodes.item(0),this.options.maximumSnippetHeight,function(t){return t?e.sendExpandSmartSnippetAnalytics():e.sendCollapseSmartSnippetAnalytics()})).toggleButton},t.prototype.buildSourceContainer=function(){return this.sourceContainer=c.$$("div",{className:x}).el},t.prototype.buildStyle=function(){var e=v.Utils.isNullOrUndefined(this.style)?S.getDefaultSnippetStyle(O):this.style,t=document.createElement("style");return t.innerHTML=e,t},t.prototype.handleAnswerSizeChanged=function(){this.heightLimiter.onContentHeightChanged()},t.prototype.getCorrespondingResult=function(e){var t=this.queryController.getLastResults().results,n=p.flatten(p.map(t,function(e){return e.childResults})),i=p.flatten(p.map(t,function(e){return e.attachments}));return p.find(p.compact(t.concat(n,i)),function(t){return t.raw[e.documentId.contentIdKey]===e.documentId.contentIdValue})},t.prototype.handleQuerySuccess=function(e){return r(this,void 0,void 0,function(){var t;return s(this,function(n){switch(n.label){case 0:return t=e.results.questionAnswer,this.containsQuestionAnswer(t)?(this.hasAnswer=!0,this.searchUid=e.results.searchUid,[4,this.render(t)]):(this.hasAnswer=!1,[2]);case 1:return n.sent(),[2]}})})},t.prototype.containsQuestionAnswer=function(e){return e&&e.question&&e.answerSnippet},t.prototype.render=function(e){return r(this,void 0,void 0,function(){return s(this,function(t){return this.ensureDom(),this.feedbackBanner.reset(),this.questionContainer.innerText=e.question,this.renderSnippet(e.answerSnippet),this.lastRenderedResult=this.getCorrespondingResult(e),this.lastRenderedResult?this.renderSource():this.lastRenderedResult=null,[2]})})},t.prototype.renderSnippet=function(e){this.snippetContainer.innerHTML=e},t.prototype.renderSource=function(){var e=c.$$(this.sourceContainer);e.empty(),e.append(this.renderSourceUrl().el),e.append(this.renderSourceTitle().el)},t.prototype.renderSourceTitle=function(){var e=this.buildLink("coveo-smart-snippet-source-title");return e.text(v.Utils.getFieldValue(this.lastRenderedResult,this.options.titleField)),e},t.prototype.renderSourceUrl=function(){var e=this.buildLink("coveo-smart-snippet-source-url");return e.text(e.el.href),e},t.prototype.buildLink=function(e){var t=this,n=c.$$("a",{className:"CoveoResultLink"});return n.addClass(e),new C.ResultLink(n.el,{hrefTemplate:this.options.hrefTemplate,logAnalytics:function(e){return t.sendClickSourceAnalytics(n.el,e)}},o({},this.getBindings(),{resultElement:this.element}),this.lastRenderedResult),n},t.prototype.openExplanationModal=function(){this.sendOpenFeedbackModalAnalytics(),this.explanationModal.open(this.feedbackBanner.explainWhy)},t.prototype.sendLikeSmartSnippetAnalytics=function(){return this.usageAnalytics.logCustomEvent(h.analyticsActionCauseList.likeSmartSnippet,{searchQueryUid:this.searchUid},this.element)},t.prototype.sendDislikeSmartSnippetAnalytics=function(){return this.usageAnalytics.logCustomEvent(h.analyticsActionCauseList.dislikeSmartSnippet,{searchQueryUid:this.searchUid},this.element)},t.prototype.sendExpandSmartSnippetAnalytics=function(){return this.usageAnalytics.logCustomEvent(h.analyticsActionCauseList.expandSmartSnippet,{searchQueryUid:this.searchUid},this.element)},t.prototype.sendCollapseSmartSnippetAnalytics=function(){return this.usageAnalytics.logCustomEvent(h.analyticsActionCauseList.collapseSmartSnippet,{searchQueryUid:this.searchUid},this.element)},t.prototype.sendOpenFeedbackModalAnalytics=function(){return this.usageAnalytics.logCustomEvent(h.analyticsActionCauseList.openSmartSnippetFeedbackModal,{searchQueryUid:this.searchUid},this.element)},t.prototype.sendCloseFeedbackModalAnalytics=function(){return this.usageAnalytics.logCustomEvent(h.analyticsActionCauseList.closeSmartSnippetFeedbackModal,{searchQueryUid:this.searchUid},this.element)},t.prototype.sendExplanationAnalytics=function(e,t){return this.usageAnalytics.logCustomEvent(h.analyticsActionCauseList.sendSmartSnippetReason,{searchQueryUid:this.searchUid,reason:e,details:t},this.element)},t.prototype.sendClickSourceAnalytics=function(e,t){return this.usageAnalytics.logClickEvent(h.analyticsActionCauseList.openSmartSnippetSource,{searchQueryUid:this.searchUid,documentTitle:this.lastRenderedResult.title,author:v.Utils.getFieldValue(this.lastRenderedResult,"author"),documentURL:t},this.lastRenderedResult,e)},t.ID="SmartSnippet",t.doExport=function(){u.exportGlobally({SmartSnippet:t})},t.options={maximumSnippetHeight:b.ComponentOptions.buildNumberOption({defaultValue:250,min:0}),titleField:b.ComponentOptions.buildFieldOption({defaultValue:"@title"}),hrefTemplate:b.ComponentOptions.buildStringOption(),useIFrame:b.ComponentOptions.buildBooleanOption({defaultValue:!0})},t}(l.Component);t.SmartSnippet=E,c.Initialization.registerAutoCreateComponent(E)},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=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])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0}),n(708);var o=n(7),r=n(3),s=n(11),a=n(1),u=n(0),l=n(709),c=n(6),p=n(2),d=n(4),h=n(522),f=n(8),m="coveo-smart-snippet-suggestions-questions-title";t.SmartSnippetSuggestionsClassNames={HAS_QUESTIONS_CLASSNAME:"coveo-smart-snippet-suggestions-has-questions",QUESTIONS_LIST_CLASSNAME:"coveo-smart-snippet-suggestions-questions",QUESTIONS_LIST_TITLE_CLASSNAME:m};var y=function(e){function t(n,i,o){var r=e.call(this,n,t.ID,o)||this;return r.element=n,r.options=i,r.titleId=u.uniqueId(m),r.options=f.ComponentOptions.initComponentOptions(n,t,i),r.bind.onRootElement(s.QueryEvents.deferredQuerySuccess,function(e){return r.handleQuerySuccess(e)}),r}return i(t,e),Object.defineProperty(t.prototype,"loading",{get:function(){return this.contentLoaded},enumerable:!0,configurable:!0}),t.prototype.getCorrespondingResult=function(e){return u.find(this.queryController.getLastResults().results,function(t){return t.raw[e.documentId.contentIdKey]===e.documentId.contentIdValue})},t.prototype.handleQuerySuccess=function(e){var t=e.results.questionAnswer,n=!(!t||!t.relatedQuestions.length);if(a.$$(this.element).toggleClass("coveo-smart-snippet-suggestions-has-questions",n),n){if(this.searchUid=e.results.searchUid,this.renderedQuestionAnswer&&u.isEqual(t,this.renderedQuestionAnswer))return;this.detachContent(),this.element.appendChild((this.title=this.buildTitle()).el),this.element.appendChild((this.questionAnswers=this.buildQuestionAnswers(t.relatedQuestions)).el)}else this.detachContent();this.renderedQuestionAnswer=t},t.prototype.detachContent=function(){this.title&&this.title.detach(),this.questionAnswers&&this.questionAnswers.detach(),this.title=this.questionAnswers=null},t.prototype.buildTitle=function(){return a.$$("span",{className:m,id:this.titleId},c.l("SuggestedQuestions"))},t.prototype.buildQuestionAnswers=function(e){var t=this,n=this.getInnerCSS(),i=e.map(function(e){return new l.SmartSnippetCollapsibleSuggestion(e,t.getBindings(),d.Utils.isNullOrUndefined(n)?h.getDefaultSnippetStyle(l.SmartSnippetCollapsibleSuggestionClassNames.RAW_CONTENT_CLASSNAME):n,t.searchUid,t.getCorrespondingResult(e),t.options.useIFrame)}),o=a.$$.apply(void 0,["ul",{className:"coveo-smart-snippet-suggestions-questions",ariaLabelledby:this.titleId}].concat(i.map(function(e){return e.build()})));return this.contentLoaded=Promise.all(i.map(function(e){return e.loading.then(function(){return e})})),o},t.prototype.getInnerCSS=function(){var e=a.$$(this.element).children().filter(function(e){return e instanceof HTMLScriptElement&&"text/css"===e.type.toLowerCase()}).map(function(e){return e.innerHTML});return e.length?e.join("\n"):null},t.ID="SmartSnippetSuggestions",t.doExport=function(){r.exportGlobally({SmartSnippetSuggestions:t})},t.options={useIFrame:f.ComponentOptions.buildBooleanOption({defaultValue:!0})},t}(o.Component);t.SmartSnippetSuggestions=y,p.Initialization.registerAutoCreateComponent(y),y.doExport()},function(e,t,n){"use strict";e.exports=n(298).polyfill()},function(e,t,n){(function(t,n){/*!
 * @overview es6-promise - a tiny implementation of Promises/A+.
 * @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald)
 * @license   Licensed under MIT license
 *            See https://raw.githubusercontent.com/stefanpenner/es6-promise/master/LICENSE
 * @version   v4.2.4+314e4831
 */
!function(t,n){e.exports=n()}(0,function(){"use strict";function e(e){var t=typeof e;return null!==e&&("object"===t||"function"===t)}function i(e){return"function"==typeof e}function o(e){U=e}function r(e){Q=e}function s(){return void 0!==B?function(){B(u)}:a()}function a(){var e=setTimeout;return function(){return e(u,1)}}function u(){for(var e=0;e<L;e+=2){(0,G[e])(G[e+1]),G[e]=void 0,G[e+1]=void 0}L=0}function l(e,t){var n=this,i=new this.constructor(p);void 0===i[K]&&R(i);var o=n._state;if(o){var r=arguments[o-1];Q(function(){return E(o,i,r,n._result)})}else _(n,i,e,t);return i}function c(e){var t=this;if(e&&"object"==typeof e&&e.constructor===t)return e;var n=new t(p);return b(n,e),n}function p(){}function d(){return new TypeError("You cannot resolve a promise with itself")}function h(){return new TypeError("A promises callback cannot return that same promise.")}function f(e){try{return e.then}catch(e){return ee.error=e,ee}}function m(e,t,n,i){try{e.call(t,n,i)}catch(e){return e}}function y(e,t,n){Q(function(e){var i=!1,o=m(n,t,function(n){i||(i=!0,t!==n?b(e,n):C(e,n))},function(t){i||(i=!0,w(e,t))},"Settle: "+(e._label||" unknown promise"));!i&&o&&(i=!0,w(e,o))},e)}function g(e,t){t._state===Z?C(e,t._result):t._state===X?w(e,t._result):_(t,void 0,function(t){return b(e,t)},function(t){return w(e,t)})}function v(e,t,n){t.constructor===e.constructor&&n===l&&t.constructor.resolve===c?g(e,t):n===ee?(w(e,ee.error),ee.error=null):void 0===n?C(e,t):i(n)?y(e,t,n):C(e,t)}function b(t,n){t===n?w(t,d()):e(n)?v(t,n,f(n)):C(t,n)}function S(e){e._onerror&&e._onerror(e._result),O(e)}function C(e,t){e._state===J&&(e._result=t,e._state=Z,0!==e._subscribers.length&&Q(O,e))}function w(e,t){e._state===J&&(e._state=X,e._result=t,Q(S,e))}function _(e,t,n,i){var o=e._subscribers,r=o.length;e._onerror=null,o[r]=t,o[r+Z]=n,o[r+X]=i,0===r&&e._state&&Q(O,e)}function O(e){var t=e._subscribers,n=e._state;if(0!==t.length){for(var i=void 0,o=void 0,r=e._result,s=0;s<t.length;s+=3)i=t[s],o=t[s+n],i?E(n,i,o,r):o(r);e._subscribers.length=0}}function x(e,t){try{return e(t)}catch(e){return ee.error=e,ee}}function E(e,t,n,o){var r=i(n),s=void 0,a=void 0,u=void 0,l=void 0;if(r){if(s=x(n,o),s===ee?(l=!0,a=s.error,s.error=null):u=!0,t===s)return void w(t,h())}else s=o,u=!0;t._state!==J||(r&&u?b(t,s):l?w(t,a):e===Z?C(t,s):e===X&&w(t,s))}function A(e,t){try{t(function(t){b(e,t)},function(t){w(e,t)})}catch(t){w(e,t)}}function T(){return te++}function R(e){e[K]=te++,e._state=void 0,e._result=void 0,e._subscribers=[]}function F(){return new Error("Array Methods must be provided an Array")}function M(e){return new ne(this,e).promise}function I(e){var t=this;return new t(V(e)?function(n,i){for(var o=e.length,r=0;r<o;r++)t.resolve(e[r]).then(n,i)}:function(e,t){return t(new TypeError("You must pass an array to race."))})}function P(e){var t=this,n=new t(p);return w(n,e),n}function D(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function $(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}function N(){var e=void 0;if(void 0!==n)e=n;else if("undefined"!=typeof self)e=self;else try{e=Function("return this")()}catch(e){throw new Error("polyfill failed because global object is unavailable in this environment")}var t=e.Promise;if(t){var i=null;try{i=Object.prototype.toString.call(t.resolve())}catch(e){}if("[object Promise]"===i&&!t.cast)return}e.Promise=ie}var k=void 0;k=Array.isArray?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)};var V=k,L=0,B=void 0,U=void 0,Q=function(e,t){G[L]=e,G[L+1]=t,2===(L+=2)&&(U?U(u):Y())},j="undefined"!=typeof window?window:void 0,H=j||{},q=H.MutationObserver||H.WebKitMutationObserver,z="undefined"==typeof self&&void 0!==t&&"[object process]"==={}.toString.call(t),W="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel,G=new Array(1e3),Y=void 0;Y=z?function(){return function(){return t.nextTick(u)}}():q?function(){var e=0,t=new q(u),n=document.createTextNode("");return t.observe(n,{characterData:!0}),function(){n.data=e=++e%2}}():W?function(){var e=new MessageChannel;return e.port1.onmessage=u,function(){return e.port2.postMessage(0)}}():void 0===j?function(){try{var e=Function("return this")().require("vertx");return B=e.runOnLoop||e.runOnContext,s()}catch(e){return a()}}():a();var K=Math.random().toString(36).substring(2),J=void 0,Z=1,X=2,ee={error:null},te=0,ne=function(){function e(e,t){this._instanceConstructor=e,this.promise=new e(p),this.promise[K]||R(this.promise),V(t)?(this.length=t.length,this._remaining=t.length,this._result=new Array(this.length),0===this.length?C(this.promise,this._result):(this.length=this.length||0,this._enumerate(t),0===this._remaining&&C(this.promise,this._result))):w(this.promise,F())}return e.prototype._enumerate=function(e){for(var t=0;this._state===J&&t<e.length;t++)this._eachEntry(e[t],t)},e.prototype._eachEntry=function(e,t){var n=this._instanceConstructor,i=n.resolve;if(i===c){var o=f(e);if(o===l&&e._state!==J)this._settledAt(e._state,t,e._result);else if("function"!=typeof o)this._remaining--,this._result[t]=e;else if(n===ie){var r=new n(p);v(r,e,o),this._willSettleAt(r,t)}else this._willSettleAt(new n(function(t){return t(e)}),t)}else this._willSettleAt(i(e),t)},e.prototype._settledAt=function(e,t,n){var i=this.promise;i._state===J&&(this._remaining--,e===X?w(i,n):this._result[t]=n),0===this._remaining&&C(i,this._result)},e.prototype._willSettleAt=function(e,t){var n=this;_(e,void 0,function(e){return n._settledAt(Z,t,e)},function(e){return n._settledAt(X,t,e)})},e}(),ie=function(){function e(t){this[K]=T(),this._result=this._state=void 0,this._subscribers=[],p!==t&&("function"!=typeof t&&D(),this instanceof e?A(this,t):$())}return e.prototype.catch=function(e){return this.then(null,e)},e.prototype.finally=function(e){var t=this,n=t.constructor;return t.then(function(t){return n.resolve(e()).then(function(){return t})},function(t){return n.resolve(e()).then(function(){throw t})})},e}();return ie.prototype.then=l,ie.all=M,ie.race=I,ie.resolve=c,ie.reject=P,ie._setScheduler=o,ie._setAsap=r,ie._asap=Q,ie.polyfill=N,ie.Promise=ie,ie})}).call(t,n(199),n(74))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n(300).shim(),n(301).customEventPolyfill();var i=n(98);t.version=i.version;var o=n(51);t.SearchEndpoint=o.SearchEndpoint,function(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}(n(26)),n(148).defaultLanguage();var r=n(148);t.setLanguageAfterPageLoaded=r.setLanguageAfterPageLoaded},function(e,t,n){"use strict";function i(){var e=function(e){"function"!=typeof e.prototype.finally&&(e.prototype.finally=function(e){var t=this.constructor;return this.then(function(n){return t.resolve(e()).then(function(){return n})},function(n){return t.resolve(e()).then(function(){throw n})})});var t=function(e){e.then(null,function(e){setTimeout(function(){throw e},0)})};"function"!=typeof e.prototype.done&&(e.prototype.done=function(e,n){var i=arguments.length?this.then.apply(this,arguments):this;return t(i),this}),"function"!=typeof e.prototype.fail&&(e.prototype.fail=function(e,n){var i=arguments.length?this.catch.apply(this,arguments):this;return t(i),this})},t=window.Promise,n=Promise;t&&e(t),n&&e(n)}Object.defineProperty(t,"__esModule",{value:!0}),t.shim=i},function(e,t,n){"use strict";function i(){if("function"!=typeof window.CustomEvent){var e=function(e,t){t=t||{bubbles:!1,cancelable:!1,detail:void 0};var n=document.createEvent("CustomEvent");return n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),n};e.prototype=window.Event.prototype,window.CustomEvent=e}}Object.defineProperty(t,"__esModule",{value:!0}),t.customEventPolyfill=i},function(e,t){},function(e,t){e.exports=function(e){var t="undefined"!=typeof window&&window.location;if(!t)throw new Error("fixUrls requires window.location");if(!e||"string"!=typeof e)return e;var n=t.protocol+"//"+t.host,i=n+t.pathname.replace(/\/[^\/]*$/,"/");return e.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,function(e,t){var o=t.trim().replace(/^"(.*)"$/,function(e,t){return t}).replace(/^'(.*)'$/,function(e,t){return t});if(/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/)/i.test(o))return e;var r;return r=0===o.indexOf("//")?o:0===o.indexOf("/")?n+o:i+o.replace(/^\.\//,""),"url("+JSON.stringify(r)+")"})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(5),o=function(){function e(e,t){this.message=e,this.status=t,i.Assert.exists(e),i.Assert.exists(t),this.name=this.type="Ajax Error (status: "+t+")"}return e}();t.AjaxError=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e){this.provider=e,this.isMissingAuthentication=!0,this.name=this.type=this.message="Missing Authentication (provider: "+e+")"}return e}();t.MissingAuthenticationError=i},function(e,t,n){"use strict";var i=n(142);t.analytics=i;var o=n(309);t.SimpleAnalytics=o;var r=n(143);t.history=r;var s=n(312);t.donottrack=s;var a=n(99);t.storage=a},function(e,t,n){"use strict";var i=function(){function e(){}return e.set=function(t,n,i){var o,r,s,a,u;i?(s=new Date,s.setTime(s.getTime()+i),a="; expires="+s.toGMTString()):a="",u=location.hostname,-1===u.indexOf(".")?document.cookie=t+"="+n+a+"; path=/":(r=u.split("."),r.shift(),o="."+r.join("."),document.cookie=t+"="+n+a+"; path=/; domain="+o,null!=e.get(t)&&e.get(t)==n||(o="."+u,document.cookie=t+"="+n+a+"; path=/; domain="+o))},e.get=function(e){for(var t=e+"=",n=document.cookie.split(";"),i=0;i<n.length;i++){var o=n[i];if(o=o.replace(/^\s+/,""),0==o.indexOf(t))return o.substring(t.length,o.length)}return null},e.erase=function(t){e.set(t,"",-1)},e}();t.Cookie=i},function(e,t){!function(e){"use strict";function t(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function n(e){return"string"!=typeof e&&(e=String(e)),e}function i(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return g.iterable&&(t[Symbol.iterator]=function(){return t}),t}function o(e){this.map={},e instanceof o?e.forEach(function(e,t){this.append(t,e)},this):Array.isArray(e)?e.forEach(function(e){this.append(e[0],e[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function r(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function s(e){return new Promise(function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}})}function a(e){var t=new FileReader,n=s(t);return t.readAsArrayBuffer(e),n}function u(e){var t=new FileReader,n=s(t);return t.readAsText(e),n}function l(e){for(var t=new Uint8Array(e),n=new Array(t.length),i=0;i<t.length;i++)n[i]=String.fromCharCode(t[i]);return n.join("")}function c(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function p(){return this.bodyUsed=!1,this._initBody=function(e){if(this._bodyInit=e,e)if("string"==typeof e)this._bodyText=e;else if(g.blob&&Blob.prototype.isPrototypeOf(e))this._bodyBlob=e;else if(g.formData&&FormData.prototype.isPrototypeOf(e))this._bodyFormData=e;else if(g.searchParams&&URLSearchParams.prototype.isPrototypeOf(e))this._bodyText=e.toString();else if(g.arrayBuffer&&g.blob&&b(e))this._bodyArrayBuffer=c(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer]);else{if(!g.arrayBuffer||!ArrayBuffer.prototype.isPrototypeOf(e)&&!S(e))throw new Error("unsupported BodyInit type");this._bodyArrayBuffer=c(e)}else this._bodyText="";this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):g.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},g.blob&&(this.blob=function(){var e=r(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?r(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(a)}),this.text=function(){var e=r(this);if(e)return e;if(this._bodyBlob)return u(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(l(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},g.formData&&(this.formData=function(){return this.text().then(f)}),this.json=function(){return this.text().then(JSON.parse)},this}function d(e){var t=e.toUpperCase();return C.indexOf(t)>-1?t:e}function h(e,t){t=t||{};var n=t.body;if(e instanceof h){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new o(e.headers)),this.method=e.method,this.mode=e.mode,n||null==e._bodyInit||(n=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"omit",!t.headers&&this.headers||(this.headers=new o(t.headers)),this.method=d(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(n)}function f(e){var t=new FormData;return e.trim().split("&").forEach(function(e){if(e){var n=e.split("="),i=n.shift().replace(/\+/g," "),o=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(i),decodeURIComponent(o))}}),t}function m(e){var t=new o;return e.split(/\r?\n/).forEach(function(e){var n=e.split(":"),i=n.shift().trim();if(i){var o=n.join(":").trim();t.append(i,o)}}),t}function y(e,t){t||(t={}),this.type="default",this.status="status"in t?t.status:200,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new o(t.headers),this.url=t.url||"",this._initBody(e)}if(!e.fetch){var g={searchParams:"URLSearchParams"in e,iterable:"Symbol"in e&&"iterator"in Symbol,blob:"FileReader"in e&&"Blob"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in e,arrayBuffer:"ArrayBuffer"in e};if(g.arrayBuffer)var v=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],b=function(e){return e&&DataView.prototype.isPrototypeOf(e)},S=ArrayBuffer.isView||function(e){return e&&v.indexOf(Object.prototype.toString.call(e))>-1};o.prototype.append=function(e,i){e=t(e),i=n(i);var o=this.map[e];this.map[e]=o?o+","+i:i},o.prototype.delete=function(e){delete this.map[t(e)]},o.prototype.get=function(e){return e=t(e),this.has(e)?this.map[e]:null},o.prototype.has=function(e){return this.map.hasOwnProperty(t(e))},o.prototype.set=function(e,i){this.map[t(e)]=n(i)},o.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},o.prototype.keys=function(){var e=[];return this.forEach(function(t,n){e.push(n)}),i(e)},o.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),i(e)},o.prototype.entries=function(){var e=[];return this.forEach(function(t,n){e.push([n,t])}),i(e)},g.iterable&&(o.prototype[Symbol.iterator]=o.prototype.entries);var C=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];h.prototype.clone=function(){return new h(this,{body:this._bodyInit})},p.call(h.prototype),p.call(y.prototype),y.prototype.clone=function(){return new y(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new o(this.headers),url:this.url})},y.error=function(){var e=new y(null,{status:0,statusText:""});return e.type="error",e};var w=[301,302,303,307,308];y.redirect=function(e,t){if(-1===w.indexOf(t))throw new RangeError("Invalid status code");return new y(null,{status:t,headers:{location:e}})},e.Headers=o,e.Request=h,e.Response=y,e.fetch=function(e,t){return new Promise(function(n,i){var o=new h(e,t),r=new XMLHttpRequest;r.onload=function(){var e={status:r.status,statusText:r.statusText,headers:m(r.getAllResponseHeaders()||"")};e.url="responseURL"in r?r.responseURL:e.headers.get("X-Request-URL");var t="response"in r?r.response:r.responseText;n(new y(t,e))},r.onerror=function(){i(new TypeError("Network request failed"))},r.ontimeout=function(){i(new TypeError("Network request failed"))},r.open(o.method,o.url,!0),"include"===o.credentials&&(r.withCredentials=!0),"responseType"in r&&g.blob&&(r.responseType="blob"),o.headers.forEach(function(e,t){r.setRequestHeader(t,e)}),r.send(void 0===o._bodyInit?null:o._bodyInit)})},e.fetch.polyfill=!0}}("undefined"!=typeof self?self:this)},function(e,t,n){"use strict";var i=n(142),o=n(310),r=n(311),s=function(){function e(){}return e.prototype.init=function(e,t){if(void 0===e)throw new Error("You must pass your token when you call 'init'");if("string"==typeof e)t=t||i.Endpoints.default,this.client=new i.Client({token:e,endpoint:t});else{if("object"!=typeof e||void 0===e.sendEvent)throw new Error("You must pass either your token or a valid object when you call 'init'");this.client=e}},e.prototype.send=function(e,t){if(void 0===this.client)throw new Error("You must call init before sending an event");switch(t=o.default({},{hash:window.location.hash},t),e){case"pageview":return void this.client.sendViewEvent({location:window.location.toString(),referrer:document.referrer,language:document.documentElement.lang,title:document.title,contentIdKey:r.popFromObject(t,"contentIdKey"),contentIdValue:r.popFromObject(t,"contentIdValue"),contentType:r.popFromObject(t,"contentType"),anonymous:r.popFromObject(t,"anonymous"),customData:t});default:throw new Error("Event type: '"+e+"' not implemented")}},e.prototype.onLoad=function(e){if(void 0===e)throw new Error("You must pass a function when you call 'onLoad'");e()},e}();t.SimpleAPI=s;var a=new s;t.SimpleAnalytics=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var i=a[e];if(i)return i.apply(a,t)},Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.SimpleAnalytics},function(e,t,n){"use strict";var i=Object.prototype.hasOwnProperty,o=Object.getOwnPropertySymbols,r=Object.prototype.propertyIsEnumerable,s=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(void 0===e||null===e)throw new TypeError("Cannot convert undefined or null to object");var s=Object(e);return t.forEach(function(e){var t=Object(e);for(var n in t)i.call(t,n)&&(s[n]=t[n]);if(o){o(t).forEach(function(e){r.call(t,e)&&(s[e]=t[e])})}}),s};t.ponyfill=s,t.assign="function"==typeof Object.assign?Object.assign:s,Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.assign},function(e,t,n){"use strict";function i(e,t){if(e){var n=e[t];return delete e[t],n}}t.popFromObject=i},function(e,t,n){"use strict";t.doNotTrack=[!0,"yes","1"].indexOf(navigator.doNotTrack||navigator.msDoNotTrack||window.doNotTrack),Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.doNotTrack},function(e,t,n){"use strict";function i(e){a=e||s.backOff}var o=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))(function(o,r){function s(e){try{u(i.next(e))}catch(e){r(e)}}function a(e){try{u(i.throw(e))}catch(e){r(e)}}function u(e){e.done?o(e.value):new n(function(t){t(e.value)}).then(s,a)}u((i=i.apply(e,t||[])).next())})},r=this&&this.__generator||function(e,t){function n(e){return function(t){return i([e,t])}}function i(n){if(o)throw new TypeError("Generator is already executing.");for(;u;)try{if(o=1,r&&(s=r[2&n[0]?"return":n[0]?"throw":"next"])&&!(s=s.call(r,n[1])).done)return s;switch(r=0,s&&(n=[0,s.value]),n[0]){case 0:case 1:s=n;break;case 4:return u.label++,{value:n[1],done:!1};case 5:u.label++,r=n[1],n=[0];continue;case 7:n=u.ops.pop(),u.trys.pop();continue;default:if(s=u.trys,!(s=s.length>0&&s[s.length-1])&&(6===n[0]||2===n[0])){u=0;continue}if(3===n[0]&&(!s||n[1]>s[0]&&n[1]<s[3])){u.label=n[1];break}if(6===n[0]&&u.label<s[1]){u.label=s[1],s=n;break}if(s&&u.label<s[2]){u.label=s[2],u.ops.push(n);break}s[2]&&u.ops.pop(),u.trys.pop();continue}n=t.call(e,u)}catch(e){n=[6,e],r=0}finally{o=s=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}var o,r,s,a,u={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return a={next:n(0),throw:n(1),return:n(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a};Object.defineProperty(t,"__esModule",{value:!0});var s=n(314),a=s.backOff;t.setBackOffModule=i;var u=function(){function e(){}return e.enqueue=function(t){return new Promise(function(n,i){e.enqueueRequest(t,n,i),e.clearQueueIfNotAlready()})},e.enqueueRequest=function(t,n,i){var o=function(){return a(t.fn,t.options).then(n).catch(i)};e.queue.push(o)},e.clearQueueIfNotAlready=function(){return o(this,void 0,void 0,function(){var t;return r(this,function(n){switch(n.label){case 0:if(e.clearingQueue)return[2];e.clearingQueue=!0,n.label=1;case 1:return e.queue.length?(t=e.queue.shift(),[4,t()]):[3,3];case 2:return n.sent(),[3,1];case 3:return e.clearingQueue=!1,[2]}})})},e.queue=[],e.clearingQueue=!1,e}();t.BackOffRequest=u},function(e,t,n){"use strict";function i(e,t){return void 0===t&&(t={}),o(this,void 0,void 0,function(){var n,i;return r(this,function(o){switch(o.label){case 0:return n=s.getSanitizedOptions(t),i=new u(e,n),[4,i.execute()];case 1:return[2,o.sent()]}})})}var o=this&&this.__awaiter||function(e,t,n,i){function o(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||(n=Promise))(function(n,r){function s(e){try{u(i.next(e))}catch(e){r(e)}}function a(e){try{u(i.throw(e))}catch(e){r(e)}}function u(e){e.done?n(e.value):o(e.value).then(s,a)}u((i=i.apply(e,t||[])).next())})},r=this&&this.__generator||function(e,t){function n(e){return function(t){return i([e,t])}}function i(n){if(o)throw new TypeError("Generator is already executing.");for(;u;)try{if(o=1,r&&(s=2&n[0]?r.return:n[0]?r.throw||((s=r.return)&&s.call(r),0):r.next)&&!(s=s.call(r,n[1])).done)return s;switch(r=0,s&&(n=[2&n[0],s.value]),n[0]){case 0:case 1:s=n;break;case 4:return u.label++,{value:n[1],done:!1};case 5:u.label++,r=n[1],n=[0];continue;case 7:n=u.ops.pop(),u.trys.pop();continue;default:if(s=u.trys,!(s=s.length>0&&s[s.length-1])&&(6===n[0]||2===n[0])){u=0;continue}if(3===n[0]&&(!s||n[1]>s[0]&&n[1]<s[3])){u.label=n[1];break}if(6===n[0]&&u.label<s[1]){u.label=s[1],s=n;break}if(s&&u.label<s[2]){u.label=s[2],u.ops.push(n);break}s[2]&&u.ops.pop(),u.trys.pop();continue}n=t.call(e,u)}catch(e){n=[6,e],r=0}finally{o=s=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}var o,r,s,a,u={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return a={next:n(0),throw:n(1),return:n(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a};Object.defineProperty(t,"__esModule",{value:!0});var s=n(146),a=n(315);t.backOff=i;var u=function(){function e(e,t){this.request=e,this.options=t,this.attemptNumber=0}return e.prototype.execute=function(){return o(this,void 0,void 0,function(){var e,t;return r(this,function(n){switch(n.label){case 0:if(this.attemptLimitReached)return[3,6];n.label=1;case 1:return n.trys.push([1,4,,5]),[4,this.applyDelay()];case 2:return n.sent(),[4,this.request()];case 3:return[2,n.sent()];case 4:if(e=n.sent(),this.attemptNumber++,!(t=this.options.retry(e,this.attemptNumber))||this.attemptLimitReached)throw e;return[3,5];case 5:return[3,0];case 6:throw new Error("Something went wrong.")}})})},Object.defineProperty(e.prototype,"attemptLimitReached",{get:function(){return this.attemptNumber>=this.options.numOfAttempts},enumerable:!0,configurable:!0}),e.prototype.applyDelay=function(){return o(this,void 0,void 0,function(){var e;return r(this,function(t){switch(t.label){case 0:return e=a.DelayFactory(this.options,this.attemptNumber),[4,e.apply()];case 1:return t.sent(),[2]}})})},e}()},function(e,t,n){"use strict";function i(e,t){var n=o(e);return n.setAttemptNumber(t),n}function o(e){return e.delayFirstAttempt?new s.AlwaysDelay(e):new r.SkipFirstDelay(e)}Object.defineProperty(t,"__esModule",{value:!0});var r=n(316),s=n(320);t.DelayFactory=i},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=function(t,n){return(e=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])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),o=this&&this.__awaiter||function(e,t,n,i){function o(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||(n=Promise))(function(n,r){function s(e){try{u(i.next(e))}catch(e){r(e)}}function a(e){try{u(i.throw(e))}catch(e){r(e)}}function u(e){e.done?n(e.value):o(e.value).then(s,a)}u((i=i.apply(e,t||[])).next())})},r=this&&this.__generator||function(e,t){function n(e){return function(t){return i([e,t])}}function i(n){if(o)throw new TypeError("Generator is already executing.");for(;u;)try{if(o=1,r&&(s=2&n[0]?r.return:n[0]?r.throw||((s=r.return)&&s.call(r),0):r.next)&&!(s=s.call(r,n[1])).done)return s;switch(r=0,s&&(n=[2&n[0],s.value]),n[0]){case 0:case 1:s=n;break;case 4:return u.label++,{value:n[1],done:!1};case 5:u.label++,r=n[1],n=[0];continue;case 7:n=u.ops.pop(),u.trys.pop();continue;default:if(s=u.trys,!(s=s.length>0&&s[s.length-1])&&(6===n[0]||2===n[0])){u=0;continue}if(3===n[0]&&(!s||n[1]>s[0]&&n[1]<s[3])){u.label=n[1];break}if(6===n[0]&&u.label<s[1]){u.label=s[1],s=n;break}if(s&&u.label<s[2]){u.label=s[2],u.ops.push(n);break}s[2]&&u.ops.pop(),u.trys.pop();continue}n=t.call(e,u)}catch(e){n=[6,e],r=0}finally{o=s=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}var o,r,s,a,u={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return a={next:n(0),throw:n(1),return:n(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a};Object.defineProperty(t,"__esModule",{value:!0});var s=n(147),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.apply=function(){return o(this,void 0,void 0,function(){return r(this,function(t){return[2,!!this.isFirstAttempt||e.prototype.apply.call(this)]})})},Object.defineProperty(t.prototype,"isFirstAttempt",{get:function(){return 0===this.attempt},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"numOfDelayedAttempts",{get:function(){return this.attempt-1},enumerable:!0,configurable:!0}),t}(s.Delay);t.SkipFirstDelay=a},function(e,t,n){"use strict";function i(e){switch(e.jitter){case o.JitterTypes.Full:return r.fullJitter;case o.JitterTypes.None:default:return s.noJitter}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(146),r=n(318),s=n(319);t.JitterFactory=i},function(e,t,n){"use strict";function i(e){var t=Math.random()*e;return Math.round(t)}Object.defineProperty(t,"__esModule",{value:!0}),t.fullJitter=i},function(e,t,n){"use strict";function i(e){return e}Object.defineProperty(t,"__esModule",{value:!0}),t.noJitter=i},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=function(t,n){return(e=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])})(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n(147),r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t}(o.Delay);t.AlwaysDelay=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e){this.response=e}return Object.defineProperty(e.prototype,"basicExpression",{get:function(){return this.response.parsedInput.basicExpression},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"largeExpression",{get:function(){return this.response.parsedInput.largeExpression},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"redirectionURL",{get:function(){var e=this.response.preprocessingOutput.triggers.filter(function(e){return"redirect"===e.type});return e.length?e[0].content:null},enumerable:!0,configurable:!0}),e}();t.ExecutionPlan=i},function(e,t){var n;!function(e){!function(e){function t(e,t){void 0===t&&(t={});var n=t.body||document.body;n.className?-1==n.className.indexOf("coveo-modal-opened")&&(n.className+=" coveo-modal-opened"):n.className="coveo-modal-opened";var u=document.createElement("div");u.className="coveo-modal-container coveo-opened ","small"==t.sizeMod&&(u.className+=" coveo-mod-small"),"big"==t.sizeMod&&(u.className+=" coveo-mod-big"),setTimeout(function(){u.className+=" coveo-mod-fade-in-scale"},0),n.appendChild(u),!0===t.fullscreen&&(u.className+=" coveo-fullscreen");var l=document.createElement("div");l.className="coveo-modal-backdrop coveo-modal-transparent",n.appendChild(l),setTimeout(function(){r(l,"coveo-modal-transparent")},0);var c=document.createElement("div");c.className="coveo-modal-content",u.appendChild(c);var p=function(e,i){if(void 0===e&&(e=0),void 0===i&&(i=!1),!1!==(null==t.validation||t.validation(e))||i){u.parentElement&&u.parentElement.removeChild(u);var o=a.indexOf(p);return o>=0&&a.splice(o,1),null==n.querySelector(".coveo-modal-container")&&r(n,"coveo-modal-opened"),l.parentNode&&l.parentNode.removeChild(l),!0}return!1},d=i(t,p),h=d.header,f=d.closeIcon;c.appendChild(h),c.appendChild(o(t,e)),f.addEventListener("click",function(){p()}),l.addEventListener("click",function(){p()});var m=function(e){27==e.keyCode&&-1!=n.className.indexOf("coveo-modal-opened")&&(p(),document.removeEventListener("keyup",m))};document.addEventListener("keyup",m);var y,g=function(e,t){var n=document.createElement("button");n.className="coveo-btn",n.textContent=e,n.addEventListener("click",function(){return p(t)}),y.appendChild(n)};return null!=t.buttons&&(y=document.createElement("footer"),y.className="coveo-modal-footer",c.appendChild(y),t.buttons&s.OK&&g("Ok",s.OK),t.buttons&s.APPLY&&g("Apply",s.APPLY),t.buttons&s.YES&&g("Yes",s.YES),t.buttons&s.NO&&g("No",s.NO),t.buttons&s.CANCEL&&g("Cancel",s.CANCEL)),a.push(p),null!=t.className&&(u.className+=" "+t.className),{modalBox:u,wrapper:c,buttons:y,content:c,overlay:l,close:p}}function n(e){void 0===e&&(e=!1);for(var t=0;a.length>t;){a[t](0,e)||t++}}function i(e,t){var n=document.createElement("header");if(n.className="coveo-modal-header",null!=e.title){var i=document.createElement("h1");n.appendChild(i),e.title instanceof HTMLElement?i.appendChild(e.title):i.innerHTML=e.title,!0===e.titleClose&&i.addEventListener("click",function(){return t()})}var o=document.createElement("span");o.className="coveo-small-close",n.appendChild(o);return o.innerHTML='<svg viewBox="0 0 22 22" class="coveo-icon coveo-fill-pure-white">\n                    <g transform="matrix(.7071-.7071.7071.7071-3.142 11)">\n                        <path d="m9-3.4h2v26.9h-2z"></path>\n                        <path d="m-3.4 9h26.9v2h-26.9z"></path>\n                    </g>\n                </svg>',{header:n,closeIcon:o}}function o(e,t){var n=document.createElement("div");return n.className="coveo-modal-body coveo-mod-header-paddding coveo-mod-form-top-bottom-padding",n.appendChild(t),n}function r(e,t){e.className=e.className.replace(new RegExp("(^|\\s)"+t+"(\\s|\\b)","g"),"$1")}!function(e){e[e.OK=1]="OK",e[e.APPLY=2]="APPLY",e[e.YES=4]="YES",e[e.NO=8]="NO",e[e.CANCEL=16]="CANCEL"}(e.BUTTON||(e.BUTTON={}));var s=e.BUTTON,a=[];e.open=t,e.close=n}(e.ModalBox||(e.ModalBox={}))}(n||(n={})),e.exports=n.ModalBox},function(e,t){!function(){"use strict";var e,t,n="undefined",i="string",o=self.navigator,r=String,s=Object.prototype.hasOwnProperty,a={},u={},l=/^\s*application\/(?:vnd\.oftn\.|x-)?l10n\+json\s*(?:$|;)/i,c="locale",p="defaultLocale",d="toLocaleString",h="toLowerCase",f=Array.prototype.indexOf||function(e){for(var t=this.length,n=0;t>n;n++)if(n in this&&this[n]===e)return n;return-1},m=function(t){var n=new e;return n.open("GET",t,!1),n.send(null),200!==n.status?(setTimeout(function(){var e=new Error("Unable to load localization data: "+t);throw e.name="Localization Error",e},0),{}):JSON.parse(n.responseText)},y=r[d]=function(e){if(arguments.length>0&&"number"!=typeof e)if(typeof e===i)y(m(e));else if(!1===e)u={};else{var t,n,o;for(t in e)if(s.call(e,t)){if(n=e[t],t=t[h](),t in u&&!1!==n||(u[t]={}),!1===n)continue;if(typeof n===i){if(0!==r[c][h]().indexOf(t)){t in a||(a[t]=[]),a[t].push(n);continue}n=m(n)}for(o in n)s.call(n,o)&&(u[t][o]=n[o])}}return Function.prototype[d].apply(r,arguments)},g=function(e){for(var t,n=a[e],i=0,o=n.length;o>i;i++)t={},t[e]=m(n[i]),y(t);delete a[e]},v=r.prototype[d]=function(){var e,n=t,i=r[n?p:c],o=i[h]().split("-"),s=o.length,l=this.valueOf();t=!1;do{if(e=o.slice(0,s).join("-"),e in a&&g(e),e in u&&l in u[e])return u[e][l]}while(s-- >1);return!n&&r[p]?(t=!0,v.call(l)):l};if(typeof XMLHttpRequest===n&&typeof ActiveXObject!==n){var b=ActiveXObject;e=function(){try{return new b("Msxml2.XMLHTTP.6.0")}catch(e){}try{return new b("Msxml2.XMLHTTP.3.0")}catch(e){}try{return new b("Msxml2.XMLHTTP")}catch(e){}throw new Error("XMLHttpRequest not supported by this browser.")}}else e=XMLHttpRequest;if(r[p]=r[p]||"",r[c]=o&&(o.language||o.userLanguage)||"",typeof document!==n)for(var S,C=document.getElementsByTagName("link"),w=C.length;w--;){var _=C[w],O=(_.getAttribute("rel")||"")[h]().split(/\s+/);l.test(_.type)&&(-1!==f.call(O,"localizations")?y(_.getAttribute("href")):-1!==f.call(O,"localization")&&(S={},S[(_.getAttribute("hreflang")||"")[h]()]=_.getAttribute("href"),y(S)))}}(),e.exports=window.String.toLocaleString},function(e,t,n){/*! globalize - v0.1.1 - 2013-04-30
* https://github.com/jquery/globalize
* Copyright 2013 ; Licensed MIT */
var i=function(t,n){var o,r,s,a,u,l,c,p,d,h,f,m,y,g,v,b,S,C,w,_,O,x,E,A;return o=function(e){return new o.prototype.init(e)},e.exports=o,o.cultures={},o.prototype={constructor:o,init:function(e){return this.cultures=o.cultures,this.cultureSelector=e,this}},o.prototype.init.prototype=o.prototype,o.cultures.default={name:"en",englishName:"English",nativeName:"English",isRTL:!1,language:"en",numberFormat:{pattern:["-n"],decimals:2,",":",",".":".",groupSizes:[3],"+":"+","-":"-",NaN:"NaN",negativeInfinity:"-Infinity",positiveInfinity:"Infinity",percent:{pattern:["-n %","n %"],decimals:2,groupSizes:[3],",":",",".":".",symbol:"%"},currency:{pattern:["($n)","$n"],decimals:2,groupSizes:[3],",":",",".":".",symbol:"$"}},calendars:{standard:{name:"Gregorian_USEnglish","/":"/",":":":",firstDay:0,days:{names:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],namesAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],namesShort:["Su","Mo","Tu","We","Th","Fr","Sa"]},months:{names:["January","February","March","April","May","June","July","August","September","October","November","December",""],namesAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec",""]},AM:["AM","am","AM"],PM:["PM","pm","PM"],eras:[{name:"A.D.",start:null,offset:0}],twoDigitYearMax:2029,patterns:{d:"M/d/yyyy",D:"dddd, MMMM dd, yyyy",t:"h:mm tt",T:"h:mm:ss tt",f:"dddd, MMMM dd, yyyy h:mm tt",F:"dddd, MMMM dd, yyyy h:mm:ss tt",M:"MMMM dd",Y:"yyyy MMMM",S:"yyyy'-'MM'-'dd'T'HH':'mm':'ss"}}},messages:{}},o.cultures.default.calendar=o.cultures.default.calendars.standard,o.cultures.en=o.cultures.default,o.cultureSelector="en",r=/^0x[a-f0-9]+$/i,s=/^[+\-]?infinity$/i,a=/^[+\-]?\d*\.?\d*(e[+\-]?\d+)?$/,u=/^\s+|\s+$/g,l=function(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,i=e.length;i>n;n++)if(e[n]===t)return n;return-1},c=function(e,t){return e.substr(e.length-t.length)===t},p=function(){var e,t,i,o,r,s,a=arguments[0]||{},u=1,l=arguments.length,c=!1;for("boolean"==typeof a&&(c=a,a=arguments[1]||{},u=2),"object"==typeof a||h(a)||(a={});l>u;u++)if(null!=(e=arguments[u]))for(t in e)i=a[t],o=e[t],a!==o&&(c&&o&&(f(o)||(r=d(o)))?(r?(r=!1,s=i&&d(i)?i:[]):s=i&&f(i)?i:{},a[t]=p(c,s,o)):o!==n&&(a[t]=o));return a},d=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},h=function(e){return"[object Function]"===Object.prototype.toString.call(e)},f=function(e){return"[object Object]"===Object.prototype.toString.call(e)},m=function(e,t){return 0===e.indexOf(t)},y=function(e){return(e+"").replace(u,"")},g=function(e){return isNaN(e)?NaN:Math[0>e?"ceil":"floor"](e)},v=function(e,t,n){var i;for(i=e.length;t>i;i+=1)e=n?"0"+e:e+"0";return e},b=function(e,t){for(var n=0,i=!1,o=0,r=e.length;r>o;o++){var s=e.charAt(o);switch(s){case"'":i?t.push("'"):n++,i=!1;break;case"\\":i&&t.push("\\"),i=!i;break;default:t.push(s),i=!1}}return n},S=function(e,t){t=t||"F";var n,i=e.patterns,o=t.length;if(1===o){if(!(n=i[t]))throw"Invalid date format string '"+t+"'.";t=n}else 2===o&&"%"===t.charAt(0)&&(t=t.charAt(1));return t},C=function(e,t,n){function i(e,t){var n,i=e+"";return t>1&&t>i.length?(n=y[t-2]+i,n.substr(n.length-t,t)):n=i}function o(e,t){if(m)return m[t];switch(t){case 0:return e.getFullYear();case 1:return e.getMonth();case 2:return e.getDate();default:throw"Invalid part value "+t}}var r,s=n.calendar,a=s.convert;if(!t||!t.length||"i"===t){if(n&&n.name.length)if(a)r=C(e,s.patterns.F,n);else{var u=new Date(e.getTime()),l=O(e,s.eras);u.setFullYear(x(e,s,l)),r=u.toLocaleString()}else r=""+e;return r}var c=s.eras,p="s"===t;t=S(s,t),r=[];var d,h,f,m,y=["0","00","000"],g=/([^d]|^)(d|dd)([^d]|$)/g,v=0,w=_();for(!p&&a&&(m=a.fromGregorian(e));;){var E=w.lastIndex,A=w.exec(t),T=t.slice(E,A?A.index:t.length);if(v+=b(T,r),!A)break;if(v%2)r.push(A[0]);else{var R=A[0],F=R.length;switch(R){case"ddd":case"dddd":var M=3===F?s.days.namesAbbr:s.days.names;r.push(M[e.getDay()]);break;case"d":case"dd":h=!0,r.push(i(o(e,2),F));break;case"MMM":case"MMMM":var I=o(e,1);r.push(s.monthsGenitive&&function(){return h||f?h:(h=g.test(t),f=!0,h)}()?s.monthsGenitive[3===F?"namesAbbr":"names"][I]:s.months[3===F?"namesAbbr":"names"][I]);break;case"M":case"MM":r.push(i(o(e,1)+1,F));break;case"y":case"yy":case"yyyy":I=m?m[0]:x(e,s,O(e,c),p),4>F&&(I%=100),r.push(i(I,F));break;case"h":case"hh":d=e.getHours()%12,0===d&&(d=12),r.push(i(d,F));break;case"H":case"HH":r.push(i(e.getHours(),F));break;case"m":case"mm":r.push(i(e.getMinutes(),F));break;case"s":case"ss":r.push(i(e.getSeconds(),F));break;case"t":case"tt":I=12>e.getHours()?s.AM?s.AM[0]:" ":s.PM?s.PM[0]:" ",r.push(1===F?I.charAt(0):I);break;case"f":case"ff":case"fff":r.push(i(e.getMilliseconds(),3).substr(0,F));break;case"z":case"zz":d=e.getTimezoneOffset()/60,r.push((0>=d?"+":"-")+i(Math.floor(Math.abs(d)),F));break;case"zzz":d=e.getTimezoneOffset()/60,r.push((0>=d?"+":"-")+i(Math.floor(Math.abs(d)),2)+":"+i(Math.abs(e.getTimezoneOffset()%60),2));break;case"g":case"gg":s.eras&&r.push(s.eras[O(e,c)].name);break;case"/":r.push(s["/"]);break;default:throw"Invalid date format pattern '"+R+"'."}}}return r.join("")},function(){var e;e=function(e,t,n){var i=n.groupSizes,o=i[0],r=1,s=Math.pow(10,t),a=Math.round(e*s)/s;isFinite(a)||(a=e),e=a;var u=e+"",l="",c=u.split(/e/i),p=c.length>1?parseInt(c[1],10):0;u=c[0],c=u.split("."),u=c[0],l=c.length>1?c[1]:"",p>0?(l=v(l,p,!1),u+=l.slice(0,p),l=l.substr(p)):0>p&&(p=-p,u=v(u,p+1,!0),l=u.slice(-p,u.length)+l,u=u.slice(0,-p)),l=t>0?n["."]+(l.length>t?l.slice(0,t):v(l,t)):"";for(var d=u.length-1,h=n[","],f="";d>=0;){if(0===o||o>d)return u.slice(0,d+1)+(f.length?h+f+l:l);f=u.slice(d-o+1,d+1)+(f.length?h+f:""),d-=o,i.length>r&&(o=i[r],r++)}return u.slice(0,d+1)+h+f+l},w=function(t,n,i){if(!isFinite(t))return 1/0===t?i.numberFormat.positiveInfinity:t===-1/0?i.numberFormat.negativeInfinity:i.numberFormat.NaN;if(!n||"i"===n)return i.name.length?t.toLocaleString():""+t;n=n||"D";var o,r=i.numberFormat,s=Math.abs(t),a=-1;n.length>1&&(a=parseInt(n.slice(1),10));var u,l=n.charAt(0).toUpperCase();switch(l){case"D":o="n",s=g(s),-1!==a&&(s=v(""+s,a,!0)),0>t&&(s="-"+s);break;case"N":u=r;case"C":u=u||r.currency;case"P":u=u||r.percent,o=0>t?u.pattern[0]:u.pattern[1]||"n",-1===a&&(a=u.decimals),s=e(s*("P"===l?100:1),a,u);break;default:throw"Bad number format specifier: "+l}for(var c=/n|\$|-|%/g,p="";;){var d=c.lastIndex,h=c.exec(o);if(p+=o.slice(d,h?h.index:o.length),!h)break;switch(h[0]){case"n":p+=s;break;case"$":p+=r.currency.symbol;break;case"-":/[1-9]/.test(s)&&(p+=r["-"]);break;case"%":p+=r.percent.symbol}}return p}}(),_=function(){return/\/|dddd|ddd|dd|d|MMMM|MMM|MM|M|yyyy|yy|y|hh|h|HH|H|mm|m|ss|s|tt|t|fff|ff|f|zzz|zz|z|gg|g/g},O=function(e,t){if(!t)return 0;for(var n,i=e.getTime(),o=0,r=t.length;r>o;o++)if(null===(n=t[o].start)||i>=n)return o;return 0},x=function(e,t,n,i){var o=e.getFullYear();return!i&&t.eras&&(o-=t.eras[n].offset),o},function(){var e,t,n,i,o,r,s;e=function(e,t){if(100>t){var n=new Date,i=O(n),o=x(n,e,i),r=e.twoDigitYearMax;r="string"==typeof r?(new Date).getFullYear()%100+parseInt(r,10):r,(t+=o-o%100)>r&&(t-=100)}return t},t=function(e,t,n){var i,o=e.days,a=e._upperDays;return a||(e._upperDays=a=[s(o.names),s(o.namesAbbr),s(o.namesShort)]),t=r(t),n?-1===(i=l(a[1],t))&&(i=l(a[2],t)):i=l(a[0],t),i},n=function(e,t,n){var i=e.months,o=e.monthsGenitive||e.months,a=e._upperMonths,u=e._upperMonthsGen;a||(e._upperMonths=a=[s(i.names),s(i.namesAbbr)],e._upperMonthsGen=u=[s(o.names),s(o.namesAbbr)]),t=r(t);var c=l(n?a[1]:a[0],t);return 0>c&&(c=l(n?u[1]:u[0],t)),c},i=function(e,t){var n=e._parseRegExp;if(n){var i=n[t];if(i)return i}else e._parseRegExp=n={};for(var o,r=S(e,t).replace(/([\^\$\.\*\+\?\|\[\]\(\)\{\}])/g,"\\\\$1"),s=["^"],a=[],u=0,l=0,c=_();null!==(o=c.exec(r));){var p=r.slice(u,o.index);if(u=c.lastIndex,(l+=b(p,s))%2)s.push(o[0]);else{var d,h=o[0],f=h.length;switch(h){case"dddd":case"ddd":case"MMMM":case"MMM":case"gg":case"g":d="(\\D+)";break;case"tt":case"t":d="(\\D*)";break;case"yyyy":case"fff":case"ff":case"f":d="(\\d{"+f+"})";break;case"dd":case"d":case"MM":case"M":case"yy":case"y":case"HH":case"H":case"hh":case"h":case"mm":case"m":case"ss":case"s":d="(\\d\\d?)";break;case"zzz":d="([+-]?\\d\\d?:\\d{2})";break;case"zz":case"z":d="([+-]?\\d\\d?)";break;case"/":d="(\\/)";break;default:throw"Invalid date format pattern '"+h+"'."}d&&s.push(d),a.push(o[0])}}b(r.slice(u),s),s.push("$");var m=s.join("").replace(/\s+/g,"\\s+"),y={regExp:m,groups:a};return n[t]=y},o=function(e,t,n){return t>e||e>n},r=function(e){return e.split(" ").join(" ").toUpperCase()},s=function(e){for(var t=[],n=0,i=e.length;i>n;n++)t[n]=r(e[n]);return t},E=function(r,s,a){r=y(r);var u=a.calendar,l=i(u,s),c=RegExp(l.regExp).exec(r);if(null===c)return null;for(var p,d=l.groups,h=null,f=null,g=null,v=null,b=null,S=0,C=0,w=0,_=0,O=null,x=!1,E=0,A=d.length;A>E;E++){var T=c[E+1];if(T){var R=d[E],F=R.length,M=parseInt(T,10);switch(R){case"dd":case"d":if(v=M,o(v,1,31))return null;break;case"MMM":case"MMMM":if(g=n(u,T,3===F),o(g,0,11))return null;break;case"M":case"MM":if(g=M-1,o(g,0,11))return null;break;case"y":case"yy":case"yyyy":if(f=4>F?e(u,M):M,o(f,0,9999))return null;break;case"h":case"hh":if(S=M,12===S&&(S=0),o(S,0,11))return null;break;case"H":case"HH":if(S=M,o(S,0,23))return null;break;case"m":case"mm":if(C=M,o(C,0,59))return null;break;case"s":case"ss":if(w=M,o(w,0,59))return null;break;case"tt":case"t":if(!(x=u.PM&&(T===u.PM[0]||T===u.PM[1]||T===u.PM[2]))&&(!u.AM||T!==u.AM[0]&&T!==u.AM[1]&&T!==u.AM[2]))return null;break;case"f":case"ff":case"fff":if(_=M*Math.pow(10,3-F),o(_,0,999))return null;break;case"ddd":case"dddd":if(b=t(u,T,3===F),o(b,0,6))return null;break;case"zzz":var I=T.split(/:/);if(2!==I.length)return null;if(p=parseInt(I[0],10),o(p,-12,13))return null;var P=parseInt(I[1],10);if(o(P,0,59))return null;O=60*p+(m(T,"-")?-P:P);break;case"z":case"zz":if(p=M,o(p,-12,13))return null;O=60*p;break;case"g":case"gg":var D=T;if(!D||!u.eras)return null;D=y(D.toLowerCase());for(var $=0,N=u.eras.length;N>$;$++)if(D===u.eras[$].name.toLowerCase()){h=$;break}if(null===h)return null}}}var k,V=new Date,L=u.convert;if(k=L?L.fromGregorian(V)[0]:V.getFullYear(),null===f?f=k:u.eras&&(f+=u.eras[h||0].offset),null===g&&(g=0),null===v&&(v=1),L){if(null===(V=L.toGregorian(f,g,v)))return null}else{if(V.setFullYear(f,g,v),V.getDate()!==v)return null;if(null!==b&&V.getDay()!==b)return null}if(x&&12>S&&(S+=12),V.setHours(S,C,w,_),null!==O){var B=V.getMinutes()-(O+V.getTimezoneOffset());V.setHours(V.getHours()+parseInt(B/60,10),B%60)}return V}}(),A=function(e,t,n){var i,o=t["-"],r=t["+"];switch(n){case"n -":o=" "+o,r=" "+r;case"n-":c(e,o)?i=["-",e.substr(0,e.length-o.length)]:c(e,r)&&(i=["+",e.substr(0,e.length-r.length)]);break;case"- n":o+=" ",r+=" ";case"-n":m(e,o)?i=["-",e.substr(o.length)]:m(e,r)&&(i=["+",e.substr(r.length)]);break;case"(n)":m(e,"(")&&c(e,")")&&(i=["-",e.substr(1,e.length-2)])}return i||["",e]},o.prototype.findClosestCulture=function(e){return o.findClosestCulture.call(this,e)},o.prototype.format=function(e,t,n){return o.format.call(this,e,t,n)},o.prototype.localize=function(e,t){return o.localize.call(this,e,t)},o.prototype.parseInt=function(e,t,n){return o.parseInt.call(this,e,t,n)},o.prototype.parseFloat=function(e,t,n){return o.parseFloat.call(this,e,t,n)},o.prototype.culture=function(e){return o.culture.call(this,e)},o.addCultureInfo=function(e,t,n){var i={},o=!1;"string"!=typeof e?(n=e,e=this.culture().name,i=this.cultures[e]):"string"!=typeof t?(n=t,o=null==this.cultures[e],i=this.cultures[e]||this.cultures.default):(o=!0,i=this.cultures[t]),this.cultures[e]=p(!0,{},i,n),o&&(this.cultures[e].calendar=this.cultures[e].calendars.standard)},o.findClosestCulture=function(e){var t;if(!e)return this.findClosestCulture(this.cultureSelector)||this.cultures.default;if("string"==typeof e&&(e=e.split(",")),d(e)){var n,i,o=this.cultures,r=e,s=r.length,a=[];for(i=0;s>i;i++){e=y(r[i]);var u,l=e.split(";");n=y(l[0]),1===l.length?u=1:(e=y(l[1]),0===e.indexOf("q=")?(e=e.substr(2),u=parseFloat(e),u=isNaN(u)?0:u):u=1),a.push({lang:n,pri:u})}for(a.sort(function(e,t){return e.pri<t.pri?1:e.pri>t.pri?-1:0}),i=0;s>i;i++)if(n=a[i].lang,t=o[n])return t;for(i=0;s>i;i++)for(n=a[i].lang;;){var c=n.lastIndexOf("-");if(-1===c)break;if(n=n.substr(0,c),t=o[n])return t}for(i=0;s>i;i++){n=a[i].lang;for(var p in o){var h=o[p];if(h.language===n)return h}}}else if("object"==typeof e)return e;return t||null},o.format=function(e,t,n){var i=this.findClosestCulture(n);return e instanceof Date?e=C(e,t,i):"number"==typeof e&&(e=w(e,t,i)),e},o.localize=function(e,t){return this.findClosestCulture(t).messages[e]||this.cultures.default.messages[e]},o.parseDate=function(e,t,n){n=this.findClosestCulture(n);var i,o,r;if(t){if("string"==typeof t&&(t=[t]),t.length)for(var s=0,a=t.length;a>s;s++){var u=t[s];if(u&&(i=E(e,u,n)))break}}else{r=n.calendar.patterns;for(o in r)if(i=E(e,r[o],n))break}return i||null},o.parseInt=function(e,t,n){return g(o.parseFloat(e,t,n))},o.parseFloat=function(e,t,n){"number"!=typeof t&&(n=t,t=10);var i=this.findClosestCulture(n),o=NaN,u=i.numberFormat;if(e.indexOf(i.numberFormat.currency.symbol)>-1&&(e=e.replace(i.numberFormat.currency.symbol,""),e=e.replace(i.numberFormat.currency["."],i.numberFormat["."])),e.indexOf(i.numberFormat.percent.symbol)>-1&&(e=e.replace(i.numberFormat.percent.symbol,"")),e=e.replace(/ /g,""),s.test(e))o=parseFloat(e);else if(!t&&r.test(e))o=parseInt(e,16);else{var l=A(e,u,u.pattern[0]),c=l[0],p=l[1];""===c&&"(n)"!==u.pattern[0]&&(l=A(e,u,"(n)"),c=l[0],p=l[1]),""===c&&"-n"!==u.pattern[0]&&(l=A(e,u,"-n"),c=l[0],p=l[1]),c=c||"+";var d,h,f=p.indexOf("e");0>f&&(f=p.indexOf("E")),0>f?(h=p,d=null):(h=p.substr(0,f),d=p.substr(f+1));var m,y,g=u["."],v=h.indexOf(g);0>v?(m=h,y=null):(m=h.substr(0,v),y=h.substr(v+g.length));var b=u[","];m=m.split(b).join("");var S=b.replace(/\u00A0/g," ");b!==S&&(m=m.split(S).join(""));var C=c+m;if(null!==y&&(C+="."+y),null!==d){var w=A(d,u,"-n");C+="e"+(w[0]||"+")+w[1]}a.test(C)&&(o=parseFloat(C))}return o},o.culture=function(e){return e!==n&&(this.cultureSelector=e),this.findClosestCulture(e)||this.cultures.default},i}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(150);t.AnalyticsEndpoint=i.AnalyticsEndpoint;var o=n(88);t.EndpointCaller=o.EndpointCaller;var r=n(141);t.QueryError=r.QueryError},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(88),o=n(43),r=function(){function e(e){void 0===e&&(e={}),this.options=e,this.passthrough=new i.EndpointCaller(e)}return e.prototype.call=function(e){return this.shouldSendAsBeacon(e)?void this.sendBeacon(e):this.passthrough.call(e)},Object.defineProperty(e.prototype,"beaconApiIsUsable",{get:function(){return"function"==typeof navigator.sendBeacon},enumerable:!0,configurable:!0}),e.prototype.sendBeacon=function(e){var t=e.queryString.concat(this.additionalQueryStringParams),n=o.UrlUtils.normalizeAsString({paths:e.url,queryAsString:t}),r=i.EndpointCaller.convertJsonToFormBody({clickEvent:e.requestData});navigator.sendBeacon(n,new Blob([r],{type:"application/x-www-form-urlencoded"}))},Object.defineProperty(e.prototype,"additionalQueryStringParams",{get:function(){var e=this.accessTokenAsQueryString;return e?[e]:[]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"accessTokenAsQueryString",{get:function(){var e=this.options.accessToken;return e?"access_token="+e:""},enumerable:!0,configurable:!0}),e.prototype.shouldSendAsBeacon=function(e){return-1!=e.url.indexOf("/click")&&this.beaconApiIsUsable},e}();t.AnalyticsEndpointCaller=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(44);t.QueryController=i.QueryController;var o=n(151);t.HistoryController=o.HistoryController;var r=n(152);t.LocalStorageHistoryController=r.LocalStorageHistoryController},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=function(){function e(e,t){this.endpoint=e,this.callOptions=t,this.options=e.options}return Object.defineProperty(e.prototype,"accessToken",{get:function(){return this.endpoint.accessToken},enumerable:!0,configurable:!0}),e.prototype.getBaseUri=function(){return this.endpoint.getBaseUri()},e.prototype.getBaseAlertsUri=function(){return this.endpoint.getBaseAlertsUri()},e.prototype.getAuthenticationProviderUri=function(e,t,n){return this.endpoint.getAuthenticationProviderUri(e,t,n)},e.prototype.isJsonp=function(){return this.endpoint.isJsonp()},e.prototype.search=function(e,t){return this.endpoint.search(e,this.enrichCallOptions(t))},e.prototype.fetchBinary=function(e,t){return this.endpoint.fetchBinary(e,this.enrichCallOptions(t))},e.prototype.plan=function(e,t){return this.endpoint.plan(e,this.enrichCallOptions(t))},e.prototype.getExportToExcelLink=function(e,t,n){return this.endpoint.getExportToExcelLink(e,t,this.enrichCallOptions(n))},e.prototype.tagDocument=function(e,t){return this.endpoint.tagDocument(e,this.enrichCallOptions(t))},e.prototype.getQuerySuggest=function(e,t){return this.endpoint.getQuerySuggest(e,this.enrichCallOptions(t))},e.prototype.facetSearch=function(e,t){return this.endpoint.facetSearch(e,this.enrichCallOptions(t))},e.prototype.rateDocument=function(e,t){return this.endpoint.rateDocument(e,this.enrichCallOptions(t))},e.prototype.getRawDataStream=function(e,t,n){return this.endpoint.getRawDataStream(e,t,this.enrichCallOptions(n))},e.prototype.getDocument=function(e,t){return this.endpoint.getDocument(e,this.enrichCallOptions(t))},e.prototype.getDocumentText=function(e,t){return this.endpoint.getDocumentText(e,this.enrichCallOptions(t))},e.prototype.getDocumentHtml=function(e,t){return this.endpoint.getDocumentHtml(e,this.enrichCallOptions(t))},e.prototype.getViewAsHtmlUri=function(e,t){return this.endpoint.getViewAsHtmlUri(e,this.enrichCallOptions(t))},e.prototype.getViewAsDatastreamUri=function(e,t,n){return this.endpoint.getViewAsDatastreamUri(e,t,this.enrichCallOptions(n))},e.prototype.listFieldValuesBatch=function(e,t){return this.endpoint.listFieldValuesBatch(e,this.enrichCallOptions(t))},e.prototype.listFieldValues=function(e,t){return this.endpoint.listFieldValues(e,this.enrichCallOptions(t))},e.prototype.listFields=function(e){return this.endpoint.listFields(this.enrichCallOptions(e))},e.prototype.extensions=function(e){return this.endpoint.extensions(this.enrichCallOptions(e))},e.prototype.follow=function(e){return this.endpoint.follow(e)},e.prototype.listSubscriptions=function(e){return this.endpoint.listSubscriptions(e)},e.prototype.updateSubscription=function(e){return this.endpoint.updateSubscription(e)},e.prototype.deleteSubscription=function(e){return this.endpoint.deleteSubscription(e)},e.prototype.logError=function(e){return this.endpoint.logError(e)},e.prototype.exchangeHandshakeToken=function(e){return this.endpoint.exchangeHandshakeToken(e)},e.prototype.enrichCallOptions=function(e){return i.extend({},e,this.callOptions)},e}();t.SearchEndpointWithDefaultCallOptions=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}(n(30));var i=n(49);t.ComponentOptionsType=i.ComponentOptionsType;var o=n(8);t.ComponentOptions=o.ComponentOptions;var r=n(7);t.Component=r.Component;var s=n(36);t.BaseComponent=s.BaseComponent;var a=n(45);t.RootComponent=a.RootComponent;var u=n(48);t.QueryBuilder=u.QueryBuilder;var l=n(73);t.ExpressionBuilder=l.ExpressionBuilder;var c=n(2);t.Initialization=c.Initialization;var p=n(2);t.CoveoJQuery=p.Initialization;var d=n(209);t.initCoveoJQuery=d.initCoveoJQuery;var h=n(87);t.DatePicker=h.DatePicker;var f=n(60);t.ResponsiveComponentsManager=f.ResponsiveComponentsManager;var m=n(118);t.ResponsiveDropdown=m.ResponsiveDropdown;var y=n(131);t.ResponsiveDropdownHeader=y.ResponsiveDropdownHeader;var g=n(90);t.ResponsiveDropdownContent=g.ResponsiveDropdownContent},function(e,t,n){var i,o;!function(r){/**
 * This script gives you the zone info key representing your device's time zone setting.
 *
 * @name jsTimezoneDetect
 * @version 1.0.6
 * @author Jon Nylander
 * @license MIT License - https://bitbucket.org/pellepim/jstimezonedetect/src/default/LICENCE.txt
 *
 * For usage and examples, visit:
 * http://pellepim.bitbucket.org/jstz/
 *
 * Copyright (c) Jon Nylander
 */
var s=function(){"use strict";var e={DAY:864e5,HOUR:36e5,MINUTE:6e4,SECOND:1e3,BASELINE_YEAR:2014,MAX_SCORE:864e6,AMBIGUITIES:{"America/Denver":["America/Mazatlan"],"Europe/London":["Africa/Casablanca"],"America/Chicago":["America/Mexico_City"],"America/Asuncion":["America/Campo_Grande","America/Santiago"],"America/Montevideo":["America/Sao_Paulo","America/Santiago"],"Asia/Beirut":["Asia/Amman","Asia/Jerusalem","Europe/Helsinki","Asia/Damascus","Africa/Cairo","Asia/Gaza","Europe/Minsk"],"Pacific/Auckland":["Pacific/Fiji"],"America/Los_Angeles":["America/Santa_Isabel"],"America/New_York":["America/Havana"],"America/Halifax":["America/Goose_Bay"],"America/Godthab":["America/Miquelon"],"Asia/Dubai":["Asia/Yerevan"],"Asia/Jakarta":["Asia/Krasnoyarsk"],"Asia/Shanghai":["Asia/Irkutsk","Australia/Perth"],"Australia/Sydney":["Australia/Lord_Howe"],"Asia/Tokyo":["Asia/Yakutsk"],"Asia/Dhaka":["Asia/Omsk"],"Asia/Baku":["Asia/Yerevan"],"Australia/Brisbane":["Asia/Vladivostok"],"Pacific/Noumea":["Asia/Vladivostok"],"Pacific/Majuro":["Asia/Kamchatka","Pacific/Fiji"],"Pacific/Tongatapu":["Pacific/Apia"],"Asia/Baghdad":["Europe/Minsk","Europe/Moscow"],"Asia/Karachi":["Asia/Yekaterinburg"],"Africa/Johannesburg":["Asia/Gaza","Africa/Cairo"]}},t=function(e){var t=-e.getTimezoneOffset();return null!==t?t:0},n=function(){var n=t(new Date(e.BASELINE_YEAR,0,2)),i=t(new Date(e.BASELINE_YEAR,5,2)),o=n-i;return o<0?n+",1":o>0?i+",1,s":n+",0"},i=function(){var e,t;if("undefined"!=typeof Intl&&void 0!==Intl.DateTimeFormat&&void 0!==(e=Intl.DateTimeFormat())&&void 0!==e.resolvedOptions)return t=e.resolvedOptions().timeZone,t&&(t.indexOf("/")>-1||"UTC"===t)?t:void 0},o=function(e){for(var t=new Date(e,0,1,0,0,1,0).getTime(),n=new Date(e,12,31,23,59,59).getTime(),i=t,o=new Date(i).getTimezoneOffset(),s=null,a=null;i<n-864e5;){var u=new Date(i),l=u.getTimezoneOffset();l!==o&&(l<o&&(s=u),l>o&&(a=u),o=l),i+=864e5}return!(!s||!a)&&{s:r(s).getTime(),e:r(a).getTime()}},r=function t(n,i,o){void 0===i&&(i=e.DAY,o=e.HOUR);for(var r=new Date(n.getTime()-i).getTime(),s=n.getTime()+i,a=new Date(r).getTimezoneOffset(),u=r,l=null;u<s-o;){var c=new Date(u);if(c.getTimezoneOffset()!==a){l=c;break}u+=o}return i===e.DAY?t(l,e.HOUR,e.MINUTE):i===e.HOUR?t(l,e.MINUTE,e.SECOND):l},a=function(e,t,n,i){if("N/A"!==n)return n;if("Asia/Beirut"===t){if("Africa/Cairo"===i.name&&13983768e5===e[6].s&&14116788e5===e[6].e)return 0;if("Asia/Jerusalem"===i.name&&13959648e5===e[6].s&&14118588e5===e[6].e)return 0}else if("America/Santiago"===t){if("America/Asuncion"===i.name&&14124816e5===e[6].s&&1397358e6===e[6].e)return 0;if("America/Campo_Grande"===i.name&&14136912e5===e[6].s&&13925196e5===e[6].e)return 0}else if("America/Montevideo"===t){if("America/Sao_Paulo"===i.name&&14136876e5===e[6].s&&1392516e6===e[6].e)return 0}else if("Pacific/Auckland"===t&&"Pacific/Fiji"===i.name&&14142456e5===e[6].s&&13961016e5===e[6].e)return 0;return n},u=function(t,n){for(var i={},o=s.olson.dst_rules.zones,r=o.length,u=e.AMBIGUITIES[n],l=0;l<r;l++){var c=o[l],p=function(i){for(var o=0,r=0;r<t.length;r++)if(i.rules[r]&&t[r]){if(!(t[r].s>=i.rules[r].s&&t[r].e<=i.rules[r].e)){o="N/A";break}if(o=0,o+=Math.abs(t[r].s-i.rules[r].s),o+=Math.abs(i.rules[r].e-t[r].e),o>e.MAX_SCORE){o="N/A";break}}return o=a(t,n,o,i)}(o[l]);"N/A"!==p&&(i[c.name]=p)}for(var d in i)if(i.hasOwnProperty(d))for(var h=0;h<u.length;h++)if(u[h]===d)return d;return n},l=function(e){var t=function(){for(var e=[],t=0;t<s.olson.dst_rules.years.length;t++){var n=o(s.olson.dst_rules.years[t]);e.push(n)}return e}();return function(e){for(var t=0;t<e.length;t++)if(!1!==e[t])return!0;return!1}(t)?u(t,e):e};return{determine:function(){var t=i();return t||(t=s.olson.timezones[n()],void 0!==e.AMBIGUITIES[t]&&(t=l(t))),{name:function(){return t}}}}}();s.olson=s.olson||{},s.olson.timezones={"-720,0":"Etc/GMT+12","-660,0":"Pacific/Pago_Pago","-660,1,s":"Pacific/Apia","-600,1":"America/Adak","-600,0":"Pacific/Honolulu","-570,0":"Pacific/Marquesas","-540,0":"Pacific/Gambier","-540,1":"America/Anchorage","-480,1":"America/Los_Angeles","-480,0":"Pacific/Pitcairn","-420,0":"America/Phoenix","-420,1":"America/Denver","-360,0":"America/Guatemala","-360,1":"America/Chicago","-360,1,s":"Pacific/Easter","-300,0":"America/Bogota","-300,1":"America/New_York","-270,0":"America/Caracas","-240,1":"America/Halifax","-240,0":"America/Santo_Domingo","-240,1,s":"America/Asuncion","-210,1":"America/St_Johns","-180,1":"America/Godthab","-180,0":"America/Argentina/Buenos_Aires","-180,1,s":"America/Montevideo","-120,0":"America/Noronha","-120,1":"America/Noronha","-60,1":"Atlantic/Azores","-60,0":"Atlantic/Cape_Verde","0,0":"UTC","0,1":"Europe/London","60,1":"Europe/Berlin","60,0":"Africa/Lagos","60,1,s":"Africa/Windhoek","120,1":"Asia/Beirut","120,0":"Africa/Johannesburg","180,0":"Asia/Baghdad","180,1":"Europe/Moscow","210,1":"Asia/Tehran","240,0":"Asia/Dubai","240,1":"Asia/Baku","270,0":"Asia/Kabul","300,1":"Asia/Yekaterinburg","300,0":"Asia/Karachi","330,0":"Asia/Kolkata","345,0":"Asia/Kathmandu","360,0":"Asia/Dhaka","360,1":"Asia/Omsk","390,0":"Asia/Rangoon","420,1":"Asia/Krasnoyarsk","420,0":"Asia/Jakarta","480,0":"Asia/Shanghai","480,1":"Asia/Irkutsk","525,0":"Australia/Eucla","525,1,s":"Australia/Eucla","540,1":"Asia/Yakutsk","540,0":"Asia/Tokyo","570,0":"Australia/Darwin","570,1,s":"Australia/Adelaide","600,0":"Australia/Brisbane","600,1":"Asia/Vladivostok","600,1,s":"Australia/Sydney","630,1,s":"Australia/Lord_Howe","660,1":"Asia/Kamchatka","660,0":"Pacific/Noumea","690,0":"Pacific/Norfolk","720,1,s":"Pacific/Auckland","720,0":"Pacific/Majuro","765,1,s":"Pacific/Chatham","780,0":"Pacific/Tongatapu","780,1,s":"Pacific/Apia","840,0":"Pacific/Kiritimati"},s.olson.dst_rules={years:[2008,2009,2010,2011,2012,2013,2014],zones:[{name:"Africa/Cairo",rules:[{e:12199572e5,s:12090744e5},{e:1250802e6,s:1240524e6},{e:12858804e5,s:12840696e5},!1,!1,!1,{e:14116788e5,s:1406844e6}]},{name:"Africa/Casablanca",rules:[{e:12202236e5,s:12122784e5},{e:12508092e5,s:12438144e5},{e:1281222e6,s:12727584e5},{e:13120668e5,s:13017888e5},{e:13489704e5,s:1345428e6},{e:13828392e5,s:13761e8},{e:14142888e5,s:14069448e5}]},{name:"America/Asuncion",rules:[{e:12050316e5,s:12243888e5},{e:12364812e5,s:12558384e5},{e:12709548e5,s:12860784e5},{e:13024044e5,s:1317528e6},{e:1333854e6,s:13495824e5},{e:1364094e6,s:1381032e6},{e:13955436e5,s:14124816e5}]},{name:"America/Campo_Grande",rules:[{e:12032172e5,s:12243888e5},{e:12346668e5,s:12558384e5},{e:12667212e5,s:1287288e6},{e:12981708e5,s:13187376e5},{e:13302252e5,s:1350792e6},{e:136107e7,s:13822416e5},{e:13925196e5,s:14136912e5}]},{name:"America/Goose_Bay",rules:[{e:122559486e4,s:120503526e4},{e:125704446e4,s:123648486e4},{e:128909886e4,s:126853926e4},{e:13205556e5,s:129998886e4},{e:13520052e5,s:13314456e5},{e:13834548e5,s:13628952e5},{e:14149044e5,s:13943448e5}]},{name:"America/Havana",rules:[{e:12249972e5,s:12056436e5},{e:12564468e5,s:12364884e5},{e:12885012e5,s:12685428e5},{e:13211604e5,s:13005972e5},{e:13520052e5,s:13332564e5},{e:13834548e5,s:13628916e5},{e:14149044e5,s:13943412e5}]},{name:"America/Mazatlan",rules:[{e:1225008e6,s:12074724e5},{e:12564576e5,s:1238922e6},{e:1288512e6,s:12703716e5},{e:13199616e5,s:13018212e5},{e:13514112e5,s:13332708e5},{e:13828608e5,s:13653252e5},{e:14143104e5,s:13967748e5}]},{name:"America/Mexico_City",rules:[{e:12250044e5,s:12074688e5},{e:1256454e6,s:12389184e5},{e:12885084e5,s:1270368e6},{e:1319958e6,s:13018176e5},{e:13514076e5,s:13332672e5},{e:13828572e5,s:13653216e5},{e:14143068e5,s:13967712e5}]},{name:"America/Miquelon",rules:[{e:12255984e5,s:12050388e5},{e:1257048e6,s:12364884e5},{e:12891024e5,s:12685428e5},{e:1320552e6,s:12999924e5},{e:13520016e5,s:1331442e6},{e:13834512e5,s:13628916e5},{e:14149008e5,s:13943412e5}]},{name:"America/Santa_Isabel",rules:[{e:12250116e5,s:1207476e6},{e:12564612e5,s:12389256e5},{e:12885156e5,s:12703752e5},{e:13199652e5,s:13018248e5},{e:13514148e5,s:13332744e5},{e:13828644e5,s:13653288e5},{e:1414314e6,s:13967784e5}]},{name:"America/Santiago",rules:[{e:1206846e6,s:1223784e6},{e:1237086e6,s:12552336e5},{e:127035e7,s:12866832e5},{e:13048236e5,s:13138992e5},{e:13356684e5,s:13465584e5},{e:1367118e6,s:13786128e5},{e:13985676e5,s:14100624e5}]},{name:"America/Sao_Paulo",rules:[{e:12032136e5,s:12243852e5},{e:12346632e5,s:12558348e5},{e:12667176e5,s:12872844e5},{e:12981672e5,s:1318734e6},{e:13302216e5,s:13507884e5},{e:13610664e5,s:1382238e6},{e:1392516e6,s:14136876e5}]},{name:"Asia/Amman",rules:[{e:1225404e6,s:12066552e5},{e:12568536e5,s:12381048e5},{e:12883032e5,s:12695544e5},{e:13197528e5,s:13016088e5},!1,!1,{e:14147064e5,s:13959576e5}]},{name:"Asia/Damascus",rules:[{e:12254868e5,s:120726e7},{e:125685e7,s:12381048e5},{e:12882996e5,s:12701592e5},{e:13197492e5,s:13016088e5},{e:13511988e5,s:13330584e5},{e:13826484e5,s:1364508e6},{e:14147028e5,s:13959576e5}]},{name:"Asia/Dubai",rules:[!1,!1,!1,!1,!1,!1,!1]},{name:"Asia/Gaza",rules:[{e:12199572e5,s:12066552e5},{e:12520152e5,s:12381048e5},{e:1281474e6,s:126964086e4},{e:1312146e6,s:130160886e4},{e:13481784e5,s:13330584e5},{e:13802292e5,s:1364508e6},{e:1414098e6,s:13959576e5}]},{name:"Asia/Irkutsk",rules:[{e:12249576e5,s:12068136e5},{e:12564072e5,s:12382632e5},{e:12884616e5,s:12697128e5},!1,!1,!1,!1]},{name:"Asia/Jerusalem",rules:[{e:12231612e5,s:12066624e5},{e:1254006e6,s:1238112e6},{e:1284246e6,s:12695616e5},{e:131751e7,s:1301616e6},{e:13483548e5,s:13330656e5},{e:13828284e5,s:13645152e5},{e:1414278e6,s:13959648e5}]},{name:"Asia/Kamchatka",rules:[{e:12249432e5,s:12067992e5},{e:12563928e5,s:12382488e5},{e:12884508e5,s:12696984e5},!1,!1,!1,!1]},{name:"Asia/Krasnoyarsk",rules:[{e:12249612e5,s:12068172e5},{e:12564108e5,s:12382668e5},{e:12884652e5,s:12697164e5},!1,!1,!1,!1]},{name:"Asia/Omsk",rules:[{e:12249648e5,s:12068208e5},{e:12564144e5,s:12382704e5},{e:12884688e5,s:126972e7},!1,!1,!1,!1]},{name:"Asia/Vladivostok",rules:[{e:12249504e5,s:12068064e5},{e:12564e8,s:1238256e6},{e:12884544e5,s:12697056e5},!1,!1,!1,!1]},{name:"Asia/Yakutsk",rules:[{e:1224954e6,s:120681e7},{e:12564036e5,s:12382596e5},{e:1288458e6,s:12697092e5},!1,!1,!1,!1]},{name:"Asia/Yekaterinburg",rules:[{e:12249684e5,s:12068244e5},{e:1256418e6,s:1238274e6},{e:12884724e5,s:12697236e5},!1,!1,!1,!1]},{name:"Asia/Yerevan",rules:[{e:1224972e6,s:1206828e6},{e:12564216e5,s:12382776e5},{e:1288476e6,s:12697272e5},{e:13199256e5,s:13011768e5},!1,!1,!1]},{name:"Australia/Lord_Howe",rules:[{e:12074076e5,s:12231342e5},{e:12388572e5,s:12545838e5},{e:12703068e5,s:12860334e5},{e:13017564e5,s:1317483e6},{e:1333206e6,s:13495374e5},{e:13652604e5,s:1380987e6},{e:139671e7,s:14124366e5}]},{name:"Australia/Perth",rules:[{e:12068136e5,s:12249576e5},!1,!1,!1,!1,!1,!1]},{name:"Europe/Helsinki",rules:[{e:12249828e5,s:12068388e5},{e:12564324e5,s:12382884e5},{e:12884868e5,s:1269738e6},{e:13199364e5,s:13011876e5},{e:1351386e6,s:13326372e5},{e:13828356e5,s:13646916e5},{e:14142852e5,s:13961412e5}]},{name:"Europe/Minsk",rules:[{e:12249792e5,s:12068352e5},{e:12564288e5,s:12382848e5},{e:12884832e5,s:12697344e5},!1,!1,!1,!1]},{name:"Europe/Moscow",rules:[{e:12249756e5,s:12068316e5},{e:12564252e5,s:12382812e5},{e:12884796e5,s:12697308e5},!1,!1,!1,!1]},{name:"Pacific/Apia",rules:[!1,!1,!1,{e:13017528e5,s:13168728e5},{e:13332024e5,s:13489272e5},{e:13652568e5,s:13803768e5},{e:13967064e5,s:14118264e5}]},{name:"Pacific/Fiji",rules:[!1,!1,{e:12696984e5,s:12878424e5},{e:13271544e5,s:1319292e6},{e:1358604e6,s:13507416e5},{e:139005e7,s:1382796e6},{e:14215032e5,s:14148504e5}]},{name:"Europe/London",rules:[{e:12249828e5,s:12068388e5},{e:12564324e5,s:12382884e5},{e:12884868e5,s:1269738e6},{e:13199364e5,s:13011876e5},{e:1351386e6,s:13326372e5},{e:13828356e5,s:13646916e5},{e:14142852e5,s:13961412e5}]}]},void 0!==e&&void 0!==e.exports?e.exports=s:null!==n(331)&&null!=n(332)?(i=[],void 0!==(o=function(){return s}.apply(t,i))&&(e.exports=o)):void 0===r?window.jstz=s:r.jstz=s}()},function(e,t){e.exports=function(){throw new Error("define cannot be used indirect")}},function(e,t){(function(t){e.exports=t}).call(t,{})},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){}return e.prototype.setState=function(e){},e.prototype.replaceState=function(e){},e}();t.NoopHistoryController=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(24),o=n(0),r=function(){function e(e,t){void 0===t&&(t=window),this.queryController=e,this.windoh=t,this.bindErrorHandler()}return e.prototype.bindErrorHandler=function(){var e=this,t=this.windoh.onerror;o.isFunction(t)?this.windoh.onerror=function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];return e.handleError.apply(e,n),t.apply(t,n)}:this.windoh.onerror=this.handleError.bind(this)},e.prototype.handleError=function(e,t,n,o,r){if(t.toLowerCase().match(/coveo/)&&!this.windoh.location.host.toLowerCase().match(/localhost/)){var s={message:e,filename:t,line:n,column:o,error:r.toString(),errorStack:r.stack,device:i.DeviceUtils.getDeviceName()},a={level:"DEBUG",title:this.windoh.location.href,message:JSON.stringify(s)};this.queryController.getEndpoint().logError(a)}},e}();t.SentryLogger=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n(340);var i=n(1),o=n(11),r=n(202),s=n(6),a=function(){function e(e){this.root=e,this.initAriaLiveEl(),this.appendToRoot(),this.addQueryEventListeners()}return e.prototype.updateText=function(e){var t=e===i.$$(this.ariaLiveEl).text()?e+" ":e;i.$$(this.ariaLiveEl).text(t)},e.prototype.appendToRoot=function(){this.root.appendChild(this.ariaLiveEl)},e.prototype.initAriaLiveEl=function(){this.ariaLiveEl=i.$$("div",{"aria-live":"polite",className:"coveo-visible-to-screen-reader-only"}).el},e.prototype.addQueryEventListeners=function(){var e=this,t=i.$$(this.root);t.on(o.QueryEvents.duringQuery,function(){return e.onDuringQuery()}),t.on(o.QueryEvents.querySuccess,function(t,n){return e.onQuerySuccess(n)}),t.on(o.QueryEvents.queryError,function(t,n){return e.onQueryError(n)})},e.prototype.onDuringQuery=function(){var e=s.l("UpdatingResults");this.updateText(e)},e.prototype.onQuerySuccess=function(e){var t=this.messageForResultCount(e);this.updateText(t)},e.prototype.messageForResultCount=function(e){return e.results.results.length?r.QuerySummaryUtils.message(this.root,e):this.noResultMessage(e.query.q)},e.prototype.noResultMessage=function(e){var t=s.l("noResultFor","${query}"),n=escape(e);return r.QuerySummaryUtils.replaceQueryTags(t,n)},e.prototype.onQueryError=function(e){var t=s.l("QueryException",e.error.message);this.updateText(t)},e}();t.AriaLive=a},function(e,t){},function(e,t){e.exports='<svg focusable="false" enable-background="new 0 0 20 20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="Search"><title>Search</title><g fill="currentColor"><path class="coveo-magnifier-circle-svg" d="m8.368 16.736c-4.614 0-8.368-3.754-8.368-8.368s3.754-8.368 8.368-8.368 8.368 3.754 8.368 8.368-3.754 8.368-8.368 8.368m0-14.161c-3.195 0-5.793 2.599-5.793 5.793s2.599 5.793 5.793 5.793 5.793-2.599 5.793-5.793-2.599-5.793-5.793-5.793"></path><path d="m18.713 20c-.329 0-.659-.126-.91-.377l-4.552-4.551c-.503-.503-.503-1.318 0-1.82.503-.503 1.318-.503 1.82 0l4.552 4.551c.503.503.503 1.318 0 1.82-.252.251-.581.377-.91.377"></path></g></svg>'},function(e,t){e.exports='<svg focusable="false" enable-background="new 0 0 16 16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="More"><title>More</title><g fill="currentColor"><path class="coveo-more-background-svg" fill-opacity="0" d="m8.03.819c3.987 0 7.227 3.222 7.227 7.181s-3.239 7.181-7.227 7.181c-3.976 0-7.209-3.222-7.209-7.181s3.237-7.181 7.209-7.181"></path><path d="m0 8c0 4.416 3.572 8 7.991 8 4.425 0 8.009-3.581 8.009-8 0-4.416-3.581-8-8.009-8-4.416 0-7.991 3.581-7.991 8m8.031-6.4c3.553 0 6.441 2.872 6.441 6.4s-2.887 6.4-6.441 6.4c-3.544 0-6.425-2.872-6.425-6.4s2.885-6.4 6.425-6.4"></path><path d="m10.988 9.024c.551 0 1-.449 1-1s-.449-1-1-1-1 .449-1 1 .449 1 1 1"></path><path d="m7.991 9c .551 0 1-.449 1-1s-.449-1-1-1-1 .449-1 1 .449 1 1 1"></path><path d="m4.994 9c .551 0 1-.449 1-1s-.449-1-1-1-1 .449-1 1 .449 1 1 1"></path></g></svg>'},function(e,t){e.exports='<svg focusable="false" enable-background="new 0 0 18 18" viewBox="0 0 18 18" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="Loading"><title>Loading</title><g fill="currentColor"><path d="m16.76 8.051c-.448 0-.855-.303-.969-.757-.78-3.117-3.573-5.294-6.791-5.294s-6.01 2.177-6.79 5.294c-.134.537-.679.861-1.213.727-.536-.134-.861-.677-.728-1.212 1.004-4.009 4.594-6.809 8.731-6.809 4.138 0 7.728 2.8 8.73 6.809.135.536-.191 1.079-.727 1.213-.081.02-.162.029-.243.029z"></path><path d="m9 18c-4.238 0-7.943-3.007-8.809-7.149-.113-.541.234-1.071.774-1.184.541-.112 1.071.232 1.184.773.674 3.222 3.555 5.56 6.851 5.56s6.178-2.338 6.852-5.56c.113-.539.634-.892 1.184-.773.54.112.887.643.773 1.184-.866 4.142-4.57 7.149-8.809 7.149z"></path></g></svg>'},function(e,t){e.exports='<svg focusable="false" enable-background="new 0 0 11 11" viewBox="0 0 11 11" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="Toggle"><title>Toggle</title><g class="coveo-more-svg" fill="none"><path d="m10.083 4.583h-3.666v-3.666c0-.524-.393-.917-.917-.917s-.917.393-.917.917v3.667h-3.666c-.524-.001-.917.392-.917.916s.393.917.917.917h3.667v3.667c-.001.523.392.916.916.916s.917-.393.917-.917v-3.666h3.667c.523 0 .916-.393.916-.917-.001-.524-.394-.917-.917-.917z"></path></g><g class="coveo-line-svg" fill="none"><path d="m10 6.5h-9c-.552 0-1-.448-1-1 0-.552.448-1 1-1h9c .552 0 1 .448 1 1 0 .552-.448 1-1 1z"></path></g><g class="coveo-exclusion-svg" fill="none"><path d="m9.233 7.989-2.489-2.489 2.489-2.489c.356-.356.356-.889 0-1.244-.356-.356-.889-.356-1.244 0l-2.489 2.489-2.489-2.489c-.356-.356-.889-.356-1.244 0-.356.356-.356.889 0 1.244l2.489 2.489-2.489 2.489c-.356.356-.356.889 0 1.244.356.356.889.356 1.244 0l2.489-2.489 2.489 2.489c.356.356.889.356 1.244 0 .356-.355.356-.889 0-1.244z"></path></g><g class="coveo-hook-svg" fill="none"><path d="m10.252 2.213c-.155-.142-.354-.211-.573-.213-.215.005-.414.091-.561.24l-4.873 4.932-2.39-2.19c-.154-.144-.385-.214-.57-.214-.214.004-.415.09-.563.24-.148.147-.227.343-.222.549.005.207.093.4.249.542l2.905 2.662c.168.154.388.239.618.239h.022.003c.237-.007.457-.101.618-.266l5.362-5.428c.148-.148.228-.344.223-.551s-.093-.399-.248-.542z"></path></g></svg>'},function(e,t){e.exports='<svg focusable="false" enable-background="new 0 0 10 6" viewBox="0 0 10 6" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="Arrow Up"><title>Arrow Up</title><g fill="currentColor"><path d="m5 .068c.222 0 .443.084.612.253l4.134 4.134c.338.338.338.886 0 1.224s-.886.338-1.224 0l-3.522-3.521-3.523 3.521c-.336.338-.886.338-1.224 0s-.337-.886.001-1.224l4.134-4.134c.168-.169.39-.253.612-.253z"></path></g></svg>'},function(e,t){e.exports='<svg focusable="false" enable-background="new 0 0 10 6" viewBox="0 0 10 6" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="Arrow Down"><title>Arrow Down</title><g fill="currentColor"><path d="m5 5.932c-.222 0-.443-.084-.612-.253l-4.134-4.134c-.338-.338-.338-.886 0-1.224s.886-.338 1.224 0l3.522 3.521 3.523-3.521c.336-.338.886-.338 1.224 0s .337.886-.001 1.224l-4.135 4.134c-.168.169-.39.253-.611.253z"></path></g></svg>'},function(e,t){e.exports='<svg focusable="false" enable-background="new 0 0 13 13" viewBox="0 0 13 13" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="Clear"><title>Clear</title><g fill="currentColor"><path d="m7.881 6.501 4.834-4.834c.38-.38.38-1.001 0-1.381s-1.001-.38-1.381 0l-4.834 4.834-4.834-4.835c-.38-.38-1.001-.38-1.381 0s-.38 1.001 0 1.381l4.834 4.834-4.834 4.834c-.38.38-.38 1.001 0 1.381s1.001.38 1.381 0l4.834-4.834 4.834 4.834c.38.38 1.001.38 1.381 0s .38-1.001 0-1.381z"></path></g></svg>'},function(e,t){e.exports='<svg viewBox="0 0 18 18" xmlns="http://www.w3.org/2000/svg"><path d="m9 16c-3.9 0-7-3.1-7-7s3.1-7 7-7 7 3.1 7 7-3.1 7-7 7m0-16c-5 0-9 4-9 9s4 9 9 9 9-4 9-9-4-9-9-9"></path><path d="m11.1 5.5-2.1 2.1-2.1-2.1-1.4 1.4 2.1 2.1-2.1 2.1 1.4 1.4 2.1-2.1 2.1 2.1 1.4-1.4-2.1-2.1 2.1-2.1z"></path></svg>'},function(e,t){e.exports='<svg focusable="false" enable-background="new 0 0 11 11" viewBox="0 0 11 11" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="Clear"><title>Clear</title><g class="coveo-exclusion-svg" fill="none"><path d="m9.233 7.989-2.489-2.489 2.489-2.489c.356-.356.356-.889 0-1.244-.356-.356-.889-.356-1.244 0l-2.489 2.489-2.489-2.489c-.356-.356-.889-.356-1.244 0-.356.356-.356.889 0 1.244l2.489 2.489-2.489 2.489c-.356.356-.356.889 0 1.244.356.356.889.356 1.244 0l2.489-2.489 2.489 2.489c.356.356.889.356 1.244 0 .356-.355.356-.889 0-1.244z"></path></g></svg>'},function(e,t){e.exports='<svg focusable="false" enable-background="new 0 0 11 11" viewBox="0 0 11 11" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="Close"><title>Close</title><g class="coveo-exclusion-svg" fill="none"><path d="m9.233 7.989-2.489-2.489 2.489-2.489c.356-.356.356-.889 0-1.244-.356-.356-.889-.356-1.244 0l-2.489 2.489-2.489-2.489c-.356-.356-.889-.356-1.244 0-.356.356-.356.889 0 1.244l2.489 2.489-2.489 2.489c-.356.356-.356.889 0 1.244.356.356.889.356 1.244 0l2.489-2.489 2.489 2.489c.356.356.889.356 1.244 0 .356-.355.356-.889 0-1.244z"></path></g></svg>'},function(e,t){e.exports='<svg focusable="false" enable-background="new 0 0 11 11" viewBox="0 0 11 11" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="Delete"><title>Delete</title><g class="coveo-exclusion-svg" fill="none"><path d="m9.233 7.989-2.489-2.489 2.489-2.489c.356-.356.356-.889 0-1.244-.356-.356-.889-.356-1.244 0l-2.489 2.489-2.489-2.489c-.356-.356-.889-.356-1.244 0-.356.356-.356.889 0 1.244l2.489 2.489-2.489 2.489c-.356.356-.356.889 0 1.244.356.356.889.356 1.244 0l2.489-2.489 2.489 2.489c.356.356.889.356 1.244 0 .356-.355.356-.889 0-1.244z"></path></g></svg>'},function(e,t){e.exports='<svg focusable="false" enable-background="new 0 0 11 11" viewBox="0 0 11 11" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="Save"><title>Save</title><g class="coveo-hook-svg" fill="none"><path d="m10.252 2.213c-.155-.142-.354-.211-.573-.213-.215.005-.414.091-.561.24l-4.873 4.932-2.39-2.19c-.154-.144-.385-.214-.57-.214-.214.004-.415.09-.563.24-.148.147-.227.343-.222.549.005.207.093.4.249.542l2.905 2.662c.168.154.388.239.618.239h.022.003c.237-.007.457-.101.618-.266l5.362-5.428c.148-.148.228-.344.223-.551s-.093-.399-.248-.542z"></path></g></svg>'},function(e,t){e.exports='<svg viewBox="0 0 96 96" xmlns="http://www.w3.org/2000/svg"><g><path d="m48 .5c-26.2 0-47.5 21.3-47.5 47.5s21.3 47.5 47.5 47.5 47.5-21.3 47.5-47.5-21.3-47.5-47.5-47.5zm0 86.6c-21.6 0-39.1-17.5-39.1-39.1s17.5-39.1 39.1-39.1 39.1 17.5 39.1 39.1-17.5 39.1-39.1 39.1z"></path><path d="m42.1 51.6-11.3-11.4-10 9.9 21.3 21.3 33.4-33.4-9.9-9.9z"></path></g></svg>'},function(e,t){e.exports='<svg focusable="false" enable-background="new 0 0 18 18" viewBox="0 0 18 18" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="Or/And Operator"><title>Or/And Operator</title><g fill="currentColor"><path class="coveo-and-svg" d="m13.769 5.294h-1.063v-1.063c0-2.329-1.894-4.231-4.231-4.231h-4.244c-2.329 0-4.231 1.894-4.231 4.231v4.244c0 2.329 1.894 4.231 4.231 4.231h1.063v1.063c0 2.329 1.894 4.231 4.231 4.231h4.244c2.329 0 4.231-1.894 4.231-4.231v-4.244c0-2.329-1.894-4.231-4.231-4.231zm2.731 8.475c0 1.506-1.225 2.731-2.731 2.731h-4.244c-1.506 0-2.731-1.225-2.731-2.731v-2.563h-2.563c-1.506 0-2.731-1.225-2.731-2.731v-4.244c0-1.506 1.225-2.731 2.731-2.731h4.244c1.506 0 2.731 1.225 2.731 2.731v2.563h2.563c1.506 0 2.731 1.225 2.731 2.731z"></path><path class="coveo-or-svg" d="m11.206 6.794v1.909c0 1.38-1.123 2.503-2.503 2.503h-1.909v-1.909c0-1.38 1.123-2.503 2.503-2.503zm1.5-1.5h-3.409c-2.209 0-4.003 1.792-4.003 4.003v3.409h3.409c2.209 0 4.003-1.792 4.003-4.003z"></path></g></svg>'},function(e,t){e.exports='<svg focusable="false" enable-background="new 0 0 15 14" viewBox="0 0 15 14" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="Sort"><title>Sort</title><g fill="currentColor"><path class="coveo-active-shape-svg" d="m13.002 4.076 0 0c0 .536-.439.975-.975.975h-2.925c-.536 0-.975-.439-.975-.975l0 0c0-.536.439-.975.975-.975h2.925c.537 0 .975.438.975.975z"></path><path class="coveo-active-shape-svg" d="m13.002 9.925 0 0c0 .536-.439.975-.975.975h-2.925c-.536 0-.975-.439-.975-.975l0 0c0-.536.439-.975.975-.975h2.925c.537 0 .975.439.975.975z"></path><path class="coveo-active-shape-svg" d="m15 7 0 0c0 .536-.439.975-.975.975h-4.923c-.536 0-.974-.438-.974-.975l0 0c0-.536.439-.975.975-.975h4.923c.535.001.974.439.974.975z"></path><path d="m4.956 9.837-.671.671v-7.015l.671.671c.381.381.997.381 1.379 0 .381-.38.381-.997 0-1.379l-2.335-2.336c-.183-.184-.431-.286-.69-.286s-.506.102-.689.286l-2.335 2.336c-.381.381-.381.997 0 1.379s.997.381 1.379 0l .671-.671v7.015l-.671-.671c-.381-.381-.997-.381-1.379 0-.381.38-.381.997 0 1.379l2.335 2.336c.182.183.431.286.689.286s.506-.103.69-.287l2.335-2.336c.381-.381.381-.997 0-1.379-.382-.381-.998-.381-1.379.001z"></path></g></svg>'},function(e,t){e.exports='<svg focusable="false" enable-background="new 0 0 15 12" viewBox="0 0 15 12" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="Ascending"><title>Ascending</title><g fill="currentColor"><path class="coveo-active-shape-svg" d="m10.936 2.021 0 0c0 .549-.452.998-1.004.998h-1.004c-.552 0-1.004-.449-1.004-.998l0 0c0-.549.452-.998 1.004-.998h1.004c.552 0 1.004.449 1.004.998z"></path><path class="coveo-active-shape-svg" d="m12.943 5.015 0 0c0 .549-.452.998-1.004.998h-3.011c-.552 0-1.004-.449-1.004-.998l0 0c0-.549.452-.998 1.004-.998h3.011c.553 0 1.004.449 1.004.998z"></path><path class="coveo-active-shape-svg" d="m15 8.008 0 0c0 .549-.452.998-1.004.998h-5.068c-.552 0-1.004-.449-1.004-.998l0 0c0-.549.452-.998 1.004-.998h5.068c.552 0 1.004.449 1.004.998z"></path><path d="m6.521 2.683-2.403-2.391c-.188-.187-.444-.292-.71-.292s-.521.105-.71.292l-2.404 2.391c-.392.39-.392 1.021 0 1.411s1.027.39 1.419 0l .691-.687v7.594c0 .55.452.999 1.004.999s1.004-.449 1.004-.998v-7.594l.691.687c.392.39 1.027.39 1.419 0s .392-1.021-.001-1.412z"></path></g></svg>'},function(e,t){e.exports='<svg focusable="false" enable-background="new 0 0 15 12" viewBox="0 0 15 12" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="Descending"><title>Descending</title><g fill="currentColor"><path d="m6.521 7.906c-.392-.39-1.027-.39-1.419 0l-.69.686v-7.594c0-.549-.452-.998-1.004-.998s-1.004.449-1.004.998v7.594l-.69-.686c-.392-.39-1.027-.39-1.419 0-.392.39-.392 1.021 0 1.411l2.404 2.391c.188.187.443.292.709.292s.522-.105.71-.292l2.404-2.391c.392-.391.392-1.022-.001-1.411z"></path><path class="coveo-active-shape-svg" d="m9.932 11.001h-1.004c-.552 0-1.004-.449-1.004-.998l0 0c0-.549.452-.998 1.004-.998h1.004c.552 0 1.004.449 1.004.998l0 0c0 .549-.452.998-1.004.998z"></path><path class="coveo-active-shape-svg" d="m11.94 8.007h-3.012c-.552 0-1.004-.449-1.004-.998l0 0c0-.549.452-.998 1.004-.998h3.011c.552 0 1.004.449 1.004.998l0 0c0 .549-.451.998-1.003.998z"></path><path class="coveo-active-shape-svg" d="m13.996 5.014h-5.068c-.552 0-1.004-.449-1.004-.998l0 0c0-.549.452-.998 1.004-.998h5.068c.552 0 1.004.449 1.004.998l0 0c0 .548-.452.998-1.004.998z"></path></g></svg>'},function(e,t){e.exports='<svg focusable="false" enable-background="new 0 0 16 16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="Dropdown More"><title>Dropdown More</title><g fill="currentColor"><path class="coveo-active-shape-svg" d="m14 2v12h-12v-12zm1.306-2h-14.607c-.386 0-.699.318-.699.694v14.607c0 .384.315.699.699.699h14.602c.385 0 .699-.316.699-.694v-14.612c0-.383-.311-.694-.694-.694z"></path><path d="m10.969 7.055h-1.97v-1.968c0-.571-.448-1.032-1-1.032s-1 .462-1 1.032v1.969h-1.969c-.57 0-1.032.448-1.032 1s .463 1 1.032 1h1.97v1.969c0 .57.448 1.032 1 1.032s1-.463 1-1.032v-1.97h1.969c.571 0 1.032-.448 1.032-1 .001-.552-.462-1-1.032-1z"></path></g></svg>'},function(e,t){e.exports='<svg focusable="false" enable-background="new 0 0 16 16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="Dropdown Less"><title>Dropdown Less</title><g fill="currentColor"><path class="coveo-active-shape-svg" d="m14 2v12h-11.999v-12zm1.306-2h-14.607c-.386 0-.699.318-.699.694v14.607c0 .384.315.699.699.699h14.602c.385 0 .699-.316.699-.694v-14.612c0-.383-.311-.694-.694-.694z"></path><path d="m10.969 9.055h-5.939c-.569 0-1.032-.448-1.032-1s .462-1 1.032-1h5.938c.57 0 1.032.448 1.032 1 .001.552-.46 1-1.031 1"></path></g></svg>'},function(e,t){e.exports='<svg focusable="false" enable-background="new 0 0 16 16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="Collapse"><title>Collapse</title><g fill="currentColor"><path class="coveo-active-shape-svg" d="m8.01 0c-4.425 0-8.01 3.581-8.01 7.992 0 4.425 3.581 8.01 7.999 8.01l.003-.003c4.417 0 7.999-3.581 7.999-7.999 0-4.417-3.581-7.999-7.992-7.999m.002 1.5c3.58 0 6.493 2.916 6.493 6.5s-2.916 6.5-6.5 6.5h-.172c-3.506-.09-6.331-2.975-6.331-6.508 0-3.58 2.92-6.493 6.51-6.492"></path><path d="m11.04 10.27c-.192 0-.384-.073-.53-.22l-2.51-2.51-2.51 2.51c-.293.293-.768.293-1.061 0s-.293-.768 0-1.061l3.041-3.04c.141-.14.332-.219.53-.219l0 0c .199 0 .39.079.53.22l3.04 3.041c.293.293.293.768 0 1.061-.146.145-.337.218-.53.218z"></path></g></svg>'},function(e,t){e.exports='<svg focusable="false" enable-background="new 0 0 16 16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="Expand"><title>Expand</title><g fill="currentColor"><path class="coveo-active-shape-svg" d="m7.991 16.002c4.425 0 8.01-3.581 8.01-7.992 0-4.425-3.581-8.01-7.999-8.01l-.003.003c-4.417 0-7.999 3.581-7.999 7.999 0 4.417 3.581 7.999 7.992 7.999m-.002-1.5c-3.58 0-6.493-2.916-6.493-6.5s2.916-6.5 6.5-6.5h.172c3.506.09 6.331 2.975 6.331 6.508 0 3.58-2.92 6.493-6.51 6.493"></path><path d="m4.961 5.732c.192 0 .384.073.53.22l2.51 2.51 2.51-2.51c.293-.293.768-.293 1.061 0s .293.768 0 1.061l-3.041 3.04c-.141.14-.332.219-.53.219l0 0c-.199 0-.39-.079-.53-.22l-3.04-3.041c-.293-.293-.293-.768 0-1.061.146-.145.337-.218.53-.218z"></path></g></svg>'},function(e,t){e.exports='<svg focusable="false" viewBox="0 0 18 14" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="Dropdown Share Query"><title>Dropdown Share Query</title><g fill="currentColor" fill-rule="evenodd"><path class="coveo-active-shape-svg" d="m12.1 13.5c-.426 0-.771-.332-.771-.74 0-.409.346-.74.771-.74h1.862c1.374 0 2.49-1.136 2.49-2.534v-.193c0-1.144-.756-2.15-1.839-2.448l-.488-.134-.066-.484c-.132-.979-1.11-1.673-2.041-1.458l-.635.143-.253-.578c-.626-1.429-2.024-2.352-3.562-2.352-2.147 0-3.892 1.769-3.892 3.944 0 .082.002.164.007.246l.032.541-.529.192c-.986.359-1.65 1.319-1.65 2.388v.192c0 1.398 1.117 2.535 2.49 2.535h.782c.426 0 .771.332.771.74 0 .409-.346.74-.771.74h-.782c-2.224 0-4.03-1.802-4.03-4.02v-.192c0-1.496.842-2.861 2.143-3.549.097-2.908 2.496-5.243 5.432-5.243 1.968 0 3.767 1.061 4.726 2.747 1.501-.024 2.798.945 3.198 2.327 1.495.61 2.501 2.077 2.501 3.717v.193c0 2.215-1.808 4.02-4.03 4.02h-1.863"></path><path d="m9 5.234c-.098-.149-.3-.233-.511-.234-.212 0-.413.084-.561.232l-3.193 3.176c-.311.309-.312.812-.003 1.123.155.156.359.233.563.233.202 0 .406-.076.56-.231l1.822-1.813v5.485c0 .438.356.794.794.794.438 0 .794-.356.794-.794v-5.504l1.82 1.83c.309.311.812.312 1.122.002.31-.309.312-.812.002-1.123l-3.21-3.176"></path></g></svg>'},function(e,t){e.exports='<svg focusable="false" enable-background="new 0 0 22 22" viewBox="0 0 22 22" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="Dropdown Preferences"><title>Dropdown Preferences</title><g fill="currentColor"><path class="coveo-active-shape-svg" d="m12.989 21.947h-3.978c-.752 0-1.388-.557-1.48-1.295l-.298-2.075c-.309-.154-.611-.33-.905-.526l-1.968.79c-.722.268-1.508-.028-1.858-.668l-1.977-3.419c-.366-.671-.207-1.47.365-1.922l1.669-1.306c-.013-.186-.019-.359-.019-.526s.006-.34.02-.526l-1.665-1.303c-.586-.462-.742-1.292-.365-1.932l1.985-3.434c.343-.633 1.136-.923 1.836-.65l1.98.796c.3-.2.6-.375.901-.527l.301-2.096c.089-.719.726-1.275 1.478-1.275h3.979c.753 0 1.39.557 1.479 1.296l.298 2.074c.31.154.611.33.905.526l1.968-.791c.721-.263 1.508.028 1.857.667l1.979 3.421c.365.671.207 1.47-.365 1.922l-1.669 1.305c.012.166.02.342.02.527s-.008.361-.02.526l1.665 1.302c.576.457.734 1.256.381 1.903l-2 3.463c-.35.636-1.146.922-1.84.649l-1.978-.794c-.301.199-.6.374-.902.526l-.3 2.095c-.088.72-.725 1.277-1.478 1.277m-3.539-2h3.1l.396-2.762.529-.217c.485-.2.964-.478 1.461-.851l.45-.337 2.585 1.038 1.554-2.688-2.198-1.718.071-.563c.035-.277.062-.555.062-.85s-.027-.572-.062-.85l-.071-.563 2.198-1.718-1.555-2.688-2.592 1.042-.452-.348c-.466-.358-.94-.633-1.451-.843l-.529-.217-.396-2.761h-3.1l-.396 2.762-.53.217c-.485.199-.962.477-1.46.85l-.451.337-2.584-1.038-1.554 2.688 2.196 1.718-.07.562c-.034.277-.061.564-.061.851s.027.573.062.852l.07.562-2.196 1.718 1.554 2.688 2.591-1.041.452.348c.465.356.939.632 1.452.843l.529.217z"></path><path d="m11 15c-2.206 0-4-1.794-4-4s1.794-4 4-4 4 1.794 4 4-1.794 4-4 4m0-6c-1.103 0-2 .897-2 2s .897 2 2 2 2-.897 2-2-.897-2-2-2"></path></g></svg>'},function(e,t){e.exports='<svg focusable="false" enable-background="new 0 0 12 16" viewBox="0 0 12 16" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="Dropdown Authenticate"><title>Dropdown Authenticate</title><g class="coveo-dropdown-authenticate-svg" fill="none"><path d="m10 5h-8c-1.1 0-2 .9-2 2v5c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2v-5c0-1.1-.9-2-2-2m0 1.5c.3 0 .5.2.5.5v5c0 .3-.2.5-.5.5h-8c-.3 0-.5-.2-.5-.5v-5c0-.3.2-.5.5-.5z"></path><path d="m10 5h-1.6v-1.1c0-1.3-1.1-2.4-2.4-2.4s-2.4 1.1-2.4 2.4v1.1h-1.6v-1.1c0-2.1 1.8-3.9 4-3.9s4 1.8 4 3.9z"></path></g><g class="coveo-dropdown-authenticate-hover-svg" fill="none"><path class="coveo-active-shape-svg" d="m10 7h-8c-1.1 0-2 .9-2 2v5c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2v-5c0-1.1-.9-2-2-2m0 1.5c.3 0 .5.2.5.5v5c0 .3-.2.5-.5.5h-8c-.3 0-.5-.2-.5-.5v-5c0-.3.2-.5.5-.5z"></path><path d="m5.1.1c-1.8.4-3.1 2.1-3.1 4v2.9h1.6v-3.1c0-1.7 1.8-3 3.6-2.1.8.4 1.2 1.3 1.2 2.2v.6c0 .4.4.8.8.8s.8-.4.8-.8v-.7c0-2.4-2.3-4.4-4.9-3.8z"></path></g></svg>'},function(e,t){e.exports='<svg focusable="false" enable-background="new 0 0 14 14" viewBox="0 0 14 14" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="Dropdown Export"><title>Dropdown Export</title><g fill="currentColor" transform="matrix(0 1 -1 0 20 0)"><path d="m7.699 8.591 1.05 1.05c.49.49 1.05 0 1.05 0s .49-.56 0-1.05l-2.31-2.381c-.28-.28-.7-.28-.98 0l-2.309 2.451c-.49.49 0 .98 0 .98s.56.49 1.05 0l1.05-1.05v7.91c0 .42.35.7.7.7s.7-.35.7-.7z"></path><path class="coveo-active-shape-svg" d="m10.5 12.301h2.033l.065 6.301h-11.198v-6.301h2.1c.386 0 .7-.314.7-.7l0 0c0-.386-.314-.7-.7-.7h-2.806c-.383-.001-.694.31-.694.694v7.706c0 .385.318.699.694.699h12.607c.384 0 .699-.315.699-.699v-7.7c0-.386-.316-.699-.694-.699h-2.806c-.386 0-.7.314-.7.7l0 0c0 .385.314.699.7.699z"></path></g></svg>'},function(e,t){e.exports='<svg focusable="false" enable-background="new 0 0 15 12" viewBox="0 0 15 12" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="Dropdown Follow Query"><title>Dropdown Follow Query</title><g fill="currentColor"><path d="m9.224 11.999c-.198 0-.496-.103-.694-.308-.397-.411-.397-1.025 0-1.436l3.965-4.409-3.966-4.102c-.397-.411-.397-1.025 0-1.436s.991-.411 1.388 0l4.859 4.922c.298.308.298.718 0 1.025l-4.859 5.435c-.198.206-.496.309-.693.309"></path><path class="coveo-active-shape-svg" d="m4.958.411c-.397-.411-.991-.411-1.388 0s-.397 1.025 0 1.436l2.973 2.974h-5.552c-.594 0-.991.41-.991 1.025s.397 1.025.991 1.025h5.651l-3.074 3.384c-.397.411-.397 1.025 0 1.436.199.206.398.309.695.309.298 0 .495-.103.694-.308l4.859-5.333c.298-.308.298-.718 0-1.025z"></path></g></svg>'},function(e,t){e.exports='<svg focusable="false" enable-background="new 0 0 20 12" viewBox="0 0 20 12" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="Quickview"><title>Quickview</title><g fill="currentColor"><path d="m10 4.3c-1 0-1.7.8-1.7 1.7 0 1 .8 1.7 1.7 1.7 1 0 1.7-.8 1.7-1.7 0-1-.7-1.7-1.7-1.7m0 4.7c-1.6 0-3-1.4-3-3s1.4-3 3-3 3 1.4 3 3-1.4 3-3 3"></path><path d="m19.8 6.4v-.001c.069-.117.109-.253.109-.399s-.04-.282-.109-.399v-.001c-.005-.008.005.007 0 0-2.203-3.473-5.917-5.6-9.8-5.6-3.884 0-7.655 2.091-9.8 5.602l0 0c-.069.117-.109.253-.109.398s.04.281.109.398c0 0-.001-.002 0 0 2.203 3.475 5.916 5.602 9.8 5.602 3.883 0 7.597-2.127 9.8-5.6.005-.007-.005.008 0 0zm-9.8 4.1c-3.236 0-6.28-1.635-8.189-4.339-.067-.095-.067-.228-.002-.324 1.908-2.797 4.953-4.337 8.191-4.337 3.235 0 6.278 1.634 8.187 4.337.068.096.068.231 0 .327-1.909 2.702-4.952 4.336-8.187 4.336z"></path></g></svg>'},function(e,t){e.exports='<svg focusable="false" enable-background="new 0 0 11 20" viewBox="0 0 11 20" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="Right Arrow"><title>Right Arrow</title><g fill="currentColor"><path d="m .308 18.189c-.412.413-.411 1.086 0 1.5.2.201.465.311.746.311.282 0 .547-.11.747-.31l8.891-8.939c.199-.2.307-.466.307-.75 0-.286-.109-.551-.305-.748l-8.893-8.942c-.199-.2-.465-.311-.747-.311-.001 0-.001 0-.001 0-.281 0-.546.11-.745.309-.198.201-.308.468-.308.753 0 .284.11.548.306.745l8.145 8.193z"></path></g></svg>'},function(e,t){e.exports='<svg focusable="false" enable-background="new 0 0 11 20" viewBox="0 0 11 20" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="Left Arrow"><title>Left Arrow</title><g fill="currentColor"><path d="m10.692 1.811c.412-.413.411-1.086 0-1.5-.2-.201-.465-.311-.746-.311-.283 0-.548.11-.747.31l-8.892 8.939c-.198.2-.307.466-.307.75 0 .286.109.551.305.748l8.893 8.941c.2.201.466.312.748.312h.001c.281 0 .546-.11.745-.309.199-.201.308-.468.308-.753 0-.284-.109-.548-.306-.745l-8.146-8.194z"></path></g></svg>'},function(e,t){e.exports='<svg focusable="false" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="Replies"><title>Replies</title><g fill="currentColor" fill-rule="evenodd" transform="translate(1)"><path d="m4 5h7v1h-7v-1m0 3h7v1h-7v-1m0 3h7v1h-7v-1"></path><path d="m15 1c.009-.525.066-1-1-1h-12.998c-.651 0-1 .33-1 1v15c0 .66.351 1 1 1h1.998v2c.075.546.383 1 1 1h13c.718 0 1-.295 1-1v-16c.001-.468-.406-.99-1-1h-2v-1m-13 14v-13h11v13h-11m14 3h-11v-.995l9-.005c.5.005.976-.428 1-1l.021-12h.979v14"></path></g></svg>'},function(e,t){e.exports='<svg focusable="false" enable-background="new 0 0 60 60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="Video"><title>Video</title><path clip-rule="evenodd" d="m3.753 60c-2.073 0-3.753-1.667-3.753-3.753v-52.494c0-2.073 1.667-3.753 3.753-3.753h52.494c2.073 0 3.753 1.667 3.753 3.753v52.493c0 2.074-1.667 3.754-3.753 3.754z" fill="#cc0d00" fill-rule="evenodd"></path><path d="m42.8 21.536h-8.96c-.267-.64-.64-1.173-1.12-1.653l3.36-4.32c.533-.693.427-1.707-.267-2.24-.693-.533-1.707-.427-2.24.267l-3.733 4.8c-.32 0-.587-.053-.907-.053s-.587.053-.853.053l-3.733-4.8c-.533-.693-1.547-.8-2.24-.267s-.8 1.547-.267 2.24l3.36 4.32c-.48.48-.853 1.013-1.12 1.653h-6.88c-1.76 0-3.2 1.44-3.2 3.2v14.933c0 1.76 1.44 3.2 3.2 3.2h25.6c1.76 0 3.2-1.44 3.2-3.2v-14.933c0-1.76-1.44-3.2-3.2-3.2zm-4.267 17.067c0 .587-.48 1.067-1.067 1.067h-19.2c-.587 0-1.067-.48-1.067-1.067v-12.8c0-.587.48-1.067 1.067-1.067h19.2c.587 0 1.067.48 1.067 1.067zm3.734-5.334c-.907 0-1.6-.693-1.6-1.6s.693-1.6 1.6-1.6 1.6.693 1.6 1.6-.694 1.6-1.6 1.6zm0-5.333c-.907 0-1.6-.693-1.6-1.6s.693-1.6 1.6-1.6 1.6.693 1.6 1.6-.694 1.6-1.6 1.6z" fill="#fff"></path></svg>'},function(e,t){e.exports='<svg version="1.1" id="prefix__Layer_1" xmlns="http://www.w3.org/2000/svg" x="0" y="0" viewBox="0 0 409.4 103.6" xml:space="preserve" aria-label="Coveo Logo"><style>.prefix__st0{fill:#333357}</style><path class="prefix__st0" d="M164.6 36.2l-4.9 5.2c-3.3-3.3-7-5.2-11.9-5.2-8.5 0-14.9 6.7-14.9 16.1s6.4 16.1 14.9 16.1c4.9 0 9.1-2.1 12.2-5.2l4.6 5.2c-4 4.6-9.7 7-16.4 7-14 0-23.1-10-23.1-23.1 0-13.4 9.1-23.4 23.1-23.4 6.6 0 12.4 2.7 16.4 7.3zM219.3 52.3c0 13.1-10 23.1-23.4 23.1-13.7 0-23.7-10-23.7-23.1 0-13.4 10-23.4 23.7-23.4 13.3 0 23.4 10 23.4 23.4zm-39.2 0c0 9.4 6.7 16.1 15.8 16.1 8.8 0 15.5-6.7 15.5-16.1s-6.7-16.1-15.5-16.1c-9.2 0-15.8 6.7-15.8 16.1zM252.1 74.5H243l-18.9-44.4h8.5l14.9 36.8 14.9-36.8h8.2l-18.5 44.4zM318.6 52v3h-35c.9 9.1 7.3 13.7 14.9 13.7 5.5 0 10-1.8 14-5.2l4 5.2c-5.5 5.2-11.5 6.7-18.2 6.7-13.4 0-22.8-9.1-22.8-23.1 0-13.7 9.4-23.4 22.2-23.4 12.1 0 20.9 9.7 20.9 23.1zm-34.9-3.4h27.4c-.9-7.6-6.1-12.8-13.4-12.8-7.9.1-12.8 5.2-14 12.8zM375.8 52.3c0 13.1-10 23.1-23.4 23.1-13.7 0-23.7-10-23.7-23.1 0-13.4 10-23.4 23.7-23.4 13.4 0 23.4 10 23.4 23.4zm-39.2 0c0 9.4 6.7 16.1 15.8 16.1 8.8 0 15.5-6.7 15.5-16.1s-6.7-16.1-15.5-16.1c-9.1 0-15.8 6.7-15.8 16.1z"></path><g><path class="prefix__st0" d="M394 30.2h-9v1.7h3.6V43h1.9V31.9h3.5v-1.7M409.4 30.2h-2l-3.7 8-3.7-8h-2V43h2v-8.6l3 6.3h1.5l2.9-6.3V43h2V30.2"></path></g><g><path d="M88.1 15C79.2 6.1 67.9 1.1 56.2 0 54.8-.1 54 1.6 55 2.6l18.7 18.7c.1.1 0 .3-.2.2-5.3-3.9-11.5-6.1-17.8-6.7-1-.1-1.5 1.1-.8 1.8l12.7 12.7c.1.1 0 .3-.2.2-3.5-2.4-7.5-3.8-11.6-4.2-.7-.1-1.1.8-.6 1.2l21.6 21.6c.5.5 1.3.1 1.2-.6-.4-4.1-1.8-8-4.2-11.5-.1-.1.1-.3.2-.2L86.2 48c.7.7 1.9.1 1.8-.8-.6-6.3-2.8-12.4-6.7-17.8-.1-.1.1-.3.2-.2L100.4 48c1 1 2.7.2 2.6-1.2-1-11.6-6-22.9-14.9-31.8" fill="#00adff"></path><path d="M15 15C23.9 6.1 35.2 1.1 46.8 0 48.2-.1 49 1.6 48 2.6L29.4 21.3c-.1.1 0 .3.2.2 5.3-3.9 11.5-6.1 17.8-6.7 1-.1 1.5 1.1.8 1.8L35.4 29.3c-.1.1 0 .3.2.2 3.5-2.4 7.5-3.8 11.6-4.2.7-.1 1.1.8.6 1.2L26.1 48.2c-.5.5-1.3.1-1.2-.6.4-4.1 1.8-8 4.2-11.5.1-.1-.1-.3-.2-.2L16.6 48.1c-.7.7-1.9.1-1.8-.8.6-6.3 2.8-12.4 6.7-17.8.1-.1-.1-.3-.2-.2L2.6 48c-1 1-2.7.2-2.6-1.2C1.1 35.2 6.1 23.9 15 15" fill="#f05245"></path><path d="M15 88.7c8.9 8.9 20.2 13.9 31.9 15 1.4.1 2.2-1.6 1.2-2.6L29.4 82.4c-.1-.1 0-.3.2-.2 5.3 3.9 11.5 6.1 17.8 6.7 1 .1 1.5-1.1.8-1.8L35.4 74.3c-.1-.1 0-.3.2-.2 3.5 2.4 7.5 3.8 11.6 4.2.7.1 1.1-.8.6-1.2L26.1 55.4c-.5-.5-1.3-.1-1.2.6.4 4.1 1.8 8 4.2 11.5.1.1-.1.3-.2.2L16.6 55.5c-.7-.7-1.9-.1-1.8.8.6 6.3 2.8 12.4 6.7 17.8.1.1-.1.3-.2.2L2.6 55.6c-1-1-2.7-.2-2.6 1.2 1.1 11.7 6.1 23 15 31.9" fill="#1cebcf"></path><path d="M88.1 88.7c-8.9 8.9-20.2 13.9-31.9 15-1.4.1-2.2-1.6-1.2-2.6l18.7-18.7c.1-.1 0-.3-.2-.2-5.3 3.8-11.5 6.1-17.8 6.6-1 .1-1.5-1.1-.8-1.8l12.7-12.7c.1-.1 0-.3-.2-.2-3.5 2.4-7.5 3.8-11.6 4.2-.7.1-1.1-.8-.6-1.2l21.6-21.6c.5-.5 1.3-.1 1.2.6-.4 4.1-1.8 8-4.2 11.5-.1.1.1.3.2.2l12.2-12.2c.7-.7 1.9-.1 1.8.8-.6 6.3-2.8 12.4-6.7 17.8-.1.1.1.3.2.2l18.7-18.7c1-1 2.7-.2 2.6 1.2-.8 11.6-5.8 22.9-14.7 31.8" fill="#ffe300"></path></g></svg>'},function(e,t){e.exports='<svg version="1.1" id="prefix__Layer_1" xmlns="http://www.w3.org/2000/svg" x="0" y="0" viewBox="0 0 409.4 103.6" xml:space="preserve" aria-label="Powered By Coveo Logo"><style>.prefix__st0{fill:#282829}</style><path class="prefix__st0" d="M164.6 36.2l-4.9 5.2c-3.3-3.3-7-5.2-11.9-5.2-8.5 0-14.9 6.7-14.9 16.1s6.4 16.1 14.9 16.1c4.9 0 9.1-2.1 12.2-5.2l4.6 5.2c-4 4.6-9.7 7-16.4 7-14 0-23.1-10-23.1-23.1 0-13.4 9.1-23.4 23.1-23.4 6.6 0 12.4 2.7 16.4 7.3zM219.3 52.3c0 13.1-10 23.1-23.4 23.1-13.7 0-23.7-10-23.7-23.1 0-13.4 10-23.4 23.7-23.4 13.3 0 23.4 10 23.4 23.4zm-39.2 0c0 9.4 6.7 16.1 15.8 16.1 8.8 0 15.5-6.7 15.5-16.1s-6.7-16.1-15.5-16.1c-9.2 0-15.8 6.7-15.8 16.1zM252.1 74.5H243l-18.9-44.4h8.5l14.9 36.8 14.9-36.8h8.2zM318.6 52v3h-35c.9 9.1 7.3 13.7 14.9 13.7 5.5 0 10-1.8 14-5.2l4 5.2c-5.5 5.2-11.5 6.7-18.2 6.7-13.4 0-22.8-9.1-22.8-23.1 0-13.7 9.4-23.4 22.2-23.4 12.1 0 20.9 9.7 20.9 23.1zm-34.9-3.4h27.4c-.9-7.6-6.1-12.8-13.4-12.8-7.9.1-12.8 5.2-14 12.8zM375.8 52.3c0 13.1-10 23.1-23.4 23.1-13.7 0-23.7-10-23.7-23.1 0-13.4 10-23.4 23.7-23.4 13.4 0 23.4 10 23.4 23.4zm-39.2 0c0 9.4 6.7 16.1 15.8 16.1 8.8 0 15.5-6.7 15.5-16.1s-6.7-16.1-15.5-16.1c-9.1 0-15.8 6.7-15.8 16.1z"></path><g><path class="prefix__st0" d="M394 30.2h-9v1.7h3.6V43h1.9V31.9h3.5v-1.7M409.4 30.2h-2l-3.7 8-3.7-8h-2V43h2v-8.6l3 6.3h1.5l2.9-6.3V43h2V30.2"></path></g><g><path class="prefix__st0" d="M88.1 15C79.2 6.1 67.9 1.1 56.2 0 54.8-.1 54 1.6 55 2.6l18.7 18.7c.1.1 0 .3-.2.2-5.3-3.9-11.5-6.1-17.8-6.7-1-.1-1.5 1.1-.8 1.8l12.7 12.7c.1.1 0 .3-.2.2-3.5-2.4-7.5-3.8-11.6-4.2-.7-.1-1.1.8-.6 1.2l21.6 21.6c.5.5 1.3.1 1.2-.6-.4-4.1-1.8-8-4.2-11.5-.1-.1.1-.3.2-.2L86.2 48c.7.7 1.9.1 1.8-.8-.6-6.3-2.8-12.4-6.7-17.8-.1-.1.1-.3.2-.2L100.4 48c1 1 2.7.2 2.6-1.2-1-11.6-6-22.9-14.9-31.8M15 15C23.9 6.1 35.2 1.1 46.8 0 48.2-.1 49 1.6 48 2.6L29.4 21.3c-.1.1 0 .3.2.2 5.3-3.9 11.5-6.1 17.8-6.7 1-.1 1.5 1.1.8 1.8L35.4 29.3c-.1.1 0 .3.2.2 3.5-2.4 7.5-3.8 11.6-4.2.7-.1 1.1.8.6 1.2L26.1 48.2c-.5.5-1.3.1-1.2-.6.4-4.1 1.8-8 4.2-11.5.1-.1-.1-.3-.2-.2L16.6 48.1c-.7.7-1.9.1-1.8-.8.6-6.3 2.8-12.4 6.7-17.8.1-.1-.1-.3-.2-.2L2.6 48c-1 1-2.7.2-2.6-1.2C1.1 35.2 6.1 23.9 15 15M15 88.7c8.9 8.9 20.2 13.9 31.9 15 1.4.1 2.2-1.6 1.2-2.6L29.4 82.4c-.1-.1 0-.3.2-.2 5.3 3.9 11.5 6.1 17.8 6.7 1 .1 1.5-1.1.8-1.8L35.4 74.3c-.1-.1 0-.3.2-.2 3.5 2.4 7.5 3.8 11.6 4.2.7.1 1.1-.8.6-1.2L26.1 55.4c-.5-.5-1.3-.1-1.2.6.4 4.1 1.8 8 4.2 11.5.1.1-.1.3-.2.2L16.6 55.5c-.7-.7-1.9-.1-1.8.8.6 6.3 2.8 12.4 6.7 17.8.1.1-.1.3-.2.2L2.6 55.6c-1-1-2.7-.2-2.6 1.2 1.1 11.7 6.1 23 15 31.9M88.1 88.7c-8.9 8.9-20.2 13.9-31.9 15-1.4.1-2.2-1.6-1.2-2.6l18.7-18.7c.1-.1 0-.3-.2-.2-5.3 3.8-11.5 6.1-17.8 6.6-1 .1-1.5-1.1-.8-1.8l12.7-12.7c.1-.1 0-.3-.2-.2-3.5 2.4-7.5 3.8-11.6 4.2-.7.1-1.1-.8-.6-1.2l21.6-21.6c.5-.5 1.3-.1 1.2.6-.4 4.1-1.8 8-4.2 11.5-.1.1.1.3.2.2l12.2-12.2c.7-.7 1.9-.1 1.8.8-.6 6.3-2.8 12.4-6.7 17.8-.1.1.1.3.2.2l18.7-18.7c1-1 2.7-.2 2.6 1.2-.8 11.6-5.8 22.9-14.7 31.8"></path></g></svg>'},function(e,t){e.exports='<svg focusable="false" enable-background="new 0 0 9 7" viewBox="0 0 9 7" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="Tagging Ok"><title>Tagging Ok</title><g fill="currentColor"><path d="m8.755.446c-.154-.145-.35-.216-.567-.218-.212.005-.409.093-.555.246l-4.176 4.422-2.117-2.003c-.152-.147-.381-.22-.564-.22-.211.004-.41.092-.556.247-.147.151-.225.352-.22.563.005.213.092.41.246.557l2.627 2.487c.166.158.384.245.611.245h.022.003c.234-.007.452-.103.611-.272l4.66-4.931c.146-.153.225-.354.22-.566-.005-.213-.092-.41-.245-.557z"></path></g></svg>'},function(e,t){e.exports='<svg focusable="false" enable-background="new 0 0 20 20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="Edit"><title>Edit</title><g fill="currentColor"><path d="m1 4c0-.552.448-1 1-1h7c .552 0 1 .448 1 1v0c0 .552-.448 1-1 1h-6v12h12v-6c0-.552.448-1 1-1h0c .552 0 1 .448 1 1v7c0 .552-.448 1-1 1h-14c-.552 0-1-.448-1-1z"></path><path d="m17.8.8c-.2-.2-.5-.2-.7 0l-1.7 1.7 2 2 1.7-1.7c.2-.2.2-.5 0-.7z"></path><path d="m14.5 3.5-6.9 6.9c-.1.1-.2.2-.2.3l-1.2 2.8c-.1.2.1.4.3.3l2.8-1.2c.1 0 .2-.1.3-.2l6.9-6.9z"></path></g></svg>'},function(e,t){e.exports='<svg focusable="false" enable-background="new 0 0 16 16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="Star"><title>Star</title><g fill="currentColor"><path d="m8.683.852 1.558 4.794h5.041c.695 0 .985.889.421 1.298l-4.077 2.963 1.558 4.794c.215.661-.542 1.211-1.104.802l-4.08-2.962-4.077 2.963c-.562.409-1.32-.141-1.104-.802l1.558-4.794-4.079-2.963c-.563-.409-.274-1.298.421-1.298h5.041l1.558-4.794c.214-.662 1.15-.662 1.365-.001z"></path></g></svg>'},function(e,t){e.exports='<svg focusable="false" enable-background="new 0 0 19 14" viewBox="0 0 19 14" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="List Layout"><title>List Layout</title><g fill="currentColor"><path d="m19 12c0 .552-.397 1-.813 1h-11.375c-.416 0-.813-.448-.813-1s .397-1 .813-1h11.375c.416 0 .813.448.813 1"></path><path d="m19 7c0 .552-.397 1-.813 1h-11.375c-.416 0-.813-.448-.813-1s .397-1 .813-1h11.375c.416 0 .813.448.813 1"></path><path d="m19 2c0 .552-.397 1-.813 1h-11.375c-.416 0-.813-.448-.813-1s .397-1 .813-1h11.375c.416 0 .813.448.813 1"></path><path d="m2 10c1.105 0 2 .895 2 2s-.895 2-2 2-2-.895-2-2 .895-2 2-2"></path><path d="m2 5c1.105 0 2 .895 2 2s-.895 2-2 2-2-.895-2-2 .895-2 2-2"></path><path d="m2 0c1.105 0 2 .895 2 2s-.895 2-2 2-2-.895-2-2 .895-2 2-2"></path></g></svg>'},function(e,t){e.exports='<svg focusable="false" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="Card Layout"><title>Card Layout</title><g fill="currentColor" fill-rule="evenodd"><rect x="12" y="12" width="4" height="4" rx="1"></rect><rect x="6" y="12" width="4" height="4" rx="1"></rect><rect y="12" width="4" height="4" rx="1"></rect><rect x="12" y="6" width="4" height="4" rx="1"></rect><rect x="6" y="6" width="4" height="4" rx="1"></rect><rect y="6" width="4" height="4" rx="1"></rect><rect x="12" width="4" height="4" rx="1"></rect><rect x="6" width="4" height="4" rx="1"></rect><rect width="4" height="4" rx="1"></rect></g></svg>'},function(e,t){e.exports='<svg focusable="false" viewBox="0 0 18 13" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="Table Layout"><title>Table Layout</title><g fill="currentColor" fill-rule="evenodd"><rect x="11" y="10" width="7" height="3" rx="1"></rect><rect x="11" y="5" width="7" height="3" rx="1"></rect><rect x="11" width="7" height="3" rx="1"></rect><rect y="10" width="9" height="3" rx="1"></rect><rect y="5" width="9" height="3" rx="1"></rect><rect width="9" height="3" rx="1"></rect></g></svg>'},function(e,t){e.exports='<svg viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="Plus"><title>Plus</title><path d="M496 208H304V16h-96v192H16v96h192v192h96V304h192"></path></svg>'},function(e,t,n){"use strict";var i=this&&this.__assign||Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e};Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),r=n(9),s=n(4),a=n(49),u=function(){function e(e,t,n,i){this.element=e,this.values=t,this.optionName=n,this.optionDefinition=i,this.logger=new r.Logger(this)}return e.prototype.load=function(){return this.findFirstValidValue(this.loadFromAttribute.bind(this),this.loadFromOptionsDictionnary.bind(this),this.loadFromDefaultValue.bind(this),this.loadFromDefaultFunction.bind(this))},e.prototype.loadFromAttribute=function(){return this.optionDefinition.load?this.optionDefinition.load(this.element,this.optionName,this.optionDefinition):null},e.prototype.loadFromOptionsDictionnary=function(){return this.values[this.optionName]},e.prototype.loadFromDefaultValue=function(){if(this.optionDefinition.type==a.ComponentOptionsType.LOCALIZED_STRING)return this.loadDefaultLocalizedString();if(s.Utils.isNullOrUndefined(this.optionDefinition.defaultValue))return null;switch(this.optionDefinition.type){case a.ComponentOptionsType.LIST:return this.optionDefinition.defaultValue.slice();case a.ComponentOptionsType.OBJECT:return i({},this.optionDefinition.defaultValue);default:return this.optionDefinition.defaultValue}},e.prototype.loadDefaultLocalizedString=function(){if(!s.Utils.isNullOrUndefined(this.optionDefinition.defaultValue))return this.warnDeprecatedLocalizedStringAndReturnDefaultValue();var e=this.optionDefinition;return e.localizedString?e.localizedString():null},e.prototype.loadFromDefaultFunction=function(){return this.optionDefinition.defaultFunction?this.optionDefinition.defaultFunction(this.element):null},e.prototype.warnDeprecatedLocalizedStringAndReturnDefaultValue=function(){return this.logger.warn("defaultValue for option "+this.optionName+" is deprecated. You should instead use localizedString. Not doing so could cause localization bug in your interface."),this.optionDefinition.defaultValue},e.prototype.findFirstValidValue=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=null;return o.find(e,function(e){return n=e(),!s.Utils.isNullOrUndefined(n)}),n},e}();t.ComponentOptionLoader=u},function(e,t,n){"use strict";var i=this&&this.__assign||Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e};Object.defineProperty(t,"__esModule",{value:!0});var o=n(6),r=n(4),s=n(49),a=function(){function e(e,t,n){this.optionDefinition=e,this.valueToMerge=t,this.optionsDictionary=n}return e.prototype.merge=function(){var e=this.valueToMerge,t=e.name,n=e.value;if(!r.Utils.isNullOrUndefined(n)){switch(this.optionDefinition.type){case s.ComponentOptionsType.OBJECT:var a=this.optionsDictionary[t]||{};this.optionsDictionary[t]=i({},a,n);break;case s.ComponentOptionsType.LOCALIZED_STRING:this.optionsDictionary[t]=o.l(n);break;default:this.optionsDictionary[t]=n}return this.valueToMerge}},e}();t.ComponentOptionsMerger=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(4),r=n(9),s=function(){function e(e,t,n){this.allOptionsDefinitions=e,this.optionsDictionnary=t,this.componentID=n,this.logger=new r.Logger(this)}return e.prototype.postProcess=function(){var e=this;i.each(this.allOptionsDefinitions,function(t,n){t.required&&o.Utils.isNullOrUndefined(e.optionsDictionnary[n])&&e.logger.warn('Option "'+n+'" is *REQUIRED* on the component "'+e.componentID+'". The component or the search page might *NOT WORK PROPERLY*.'),t.postProcessing&&(e.optionsDictionnary[n]=t.postProcessing(e.optionsDictionnary[n],e.optionsDictionnary))})},e}();t.ComponentOptionsPostProcessor=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(9),o=function(){function e(e,t,n){this.optionDefinition=e,this.valueToValidate=t,this.optionsDictionnary=n,this.logger=new i.Logger(this)}return e.prototype.validate=function(){var e=this.valueToValidate,t=e.name,n=e.value,i=e.componentID;!this.optionDefinition.validator||this.optionDefinition.validator(n)||(this.logger.warn(i+" ."+t+" has invalid value: "+n),this.optionDefinition.required&&this.logger.error(i+" ."+t+" is required and has an invalid value: "+n+". ***THIS COMPONENT WILL NOT WORK***"),delete this.optionsDictionnary[t])},e}();t.ComponentOptionsValidator=o},function(e,t,n){"use strict";function i(e){return"string"==typeof e?e.replace(/[^A-Za-z0-9]/g,function(e){return o[e]||e}):e}Object.defineProperty(t,"__esModule",{value:!0});var o={"Á":"A","Ă":"A","Ắ":"A","Ặ":"A","Ằ":"A","Ẳ":"A","Ẵ":"A","Ǎ":"A","Â":"A","Ấ":"A","Ậ":"A","Ầ":"A","Ẩ":"A","Ẫ":"A","Ä":"A","Ǟ":"A","Ȧ":"A","Ǡ":"A","Ạ":"A","Ȁ":"A","À":"A","Ả":"A","Ȃ":"A","Ā":"A","Ą":"A","Å":"A","Ǻ":"A","Ḁ":"A","Ⱥ":"A","Ã":"A","Ꜳ":"AA","Æ":"AE","Ǽ":"AE","Ǣ":"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY","Ḃ":"B","Ḅ":"B","Ɓ":"B","Ḇ":"B","Ƀ":"B","Ƃ":"B","Ć":"C","Č":"C","Ç":"C","Ḉ":"C","Ĉ":"C","Ċ":"C","Ƈ":"C","Ȼ":"C","Ď":"D","Ḑ":"D","Ḓ":"D","Ḋ":"D","Ḍ":"D","Ɗ":"D","Ḏ":"D","ǲ":"D","ǅ":"D","Đ":"D","Ð":"D","Ƌ":"D","Ǳ":"DZ","Ǆ":"DZ","É":"E","Ĕ":"E","Ě":"E","Ȩ":"E","Ḝ":"E","Ê":"E","Ế":"E","Ệ":"E","Ề":"E","Ể":"E","Ễ":"E","Ḙ":"E","Ë":"E","Ė":"E","Ẹ":"E","Ȅ":"E","È":"E","Ẻ":"E","Ȇ":"E","Ē":"E","Ḗ":"E","Ḕ":"E","Ę":"E","Ɇ":"E","Ẽ":"E","Ḛ":"E","Ꝫ":"ET","Ḟ":"F","Ƒ":"F","Ǵ":"G","Ğ":"G","Ǧ":"G","Ģ":"G","Ĝ":"G","Ġ":"G","Ɠ":"G","Ḡ":"G","Ǥ":"G","Ḫ":"H","Ȟ":"H","Ḩ":"H","Ĥ":"H","Ⱨ":"H","Ḧ":"H","Ḣ":"H","Ḥ":"H","Ħ":"H","Í":"I","Ĭ":"I","Ǐ":"I","Î":"I","Ï":"I","Ḯ":"I","İ":"I","Ị":"I","Ȉ":"I","Ì":"I","Ỉ":"I","Ȋ":"I","Ī":"I","Į":"I","Ɨ":"I","Ĩ":"I","Ḭ":"I","І":"I","Ꝺ":"D","Ꝼ":"F","Ᵹ":"G","Ꞃ":"R","Ꞅ":"S","Ꞇ":"T","Ꝭ":"IS","Ĵ":"J","Ɉ":"J","Ḱ":"K","Ǩ":"K","Ķ":"K","Ⱪ":"K","Ꝃ":"K","Ḳ":"K","Ƙ":"K","Ḵ":"K","Ꝁ":"K","Ꝅ":"K","Ĺ":"L","Ƚ":"L","Ľ":"L","Ļ":"L","Ḽ":"L","Ḷ":"L","Ḹ":"L","Ⱡ":"L","Ꝉ":"L","Ḻ":"L","Ŀ":"L","Ɫ":"L","ǈ":"L","Ł":"L","Ǉ":"LJ","Ḿ":"M","Ṁ":"M","Ṃ":"M","Ɱ":"M","Ń":"N","Ň":"N","Ņ":"N","Ṋ":"N","Ṅ":"N","Ṇ":"N","Ǹ":"N","Ɲ":"N","Ṉ":"N","Ƞ":"N","ǋ":"N","Ñ":"N","Ǌ":"NJ","Ó":"O","Ŏ":"O","Ǒ":"O","Ô":"O","Ố":"O","Ộ":"O","Ồ":"O","Ổ":"O","Ỗ":"O","Ö":"O","Ȫ":"O","Ȯ":"O","Ȱ":"O","Ọ":"O","Ő":"O","Ȍ":"O","Ò":"O","Ỏ":"O","Ơ":"O","Ớ":"O","Ợ":"O","Ờ":"O","Ở":"O","Ỡ":"O","Ȏ":"O","Ꝋ":"O","Ꝍ":"O","Ō":"O","Ṓ":"O","Ṑ":"O","Ɵ":"O","Ǫ":"O","Ǭ":"O","Ø":"O","Ǿ":"O","Õ":"O","Ṍ":"O","Ṏ":"O","Ȭ":"O","Ƣ":"OI","Ꝏ":"OO","Ɛ":"E","Ɔ":"O","Ȣ":"OU","Ṕ":"P","Ṗ":"P","Ꝓ":"P","Ƥ":"P","Ꝕ":"P","Ᵽ":"P","Ꝑ":"P","Ꝙ":"Q","Ꝗ":"Q","Ŕ":"R","Ř":"R","Ŗ":"R","Ṙ":"R","Ṛ":"R","Ṝ":"R","Ȑ":"R","Ȓ":"R","Ṟ":"R","Ɍ":"R","Ɽ":"R","Ꜿ":"C","Ǝ":"E","Ś":"S","Ṥ":"S","Š":"S","Ṧ":"S","Ş":"S","Ŝ":"S","Ș":"S","Ṡ":"S","Ṣ":"S","Ṩ":"S","ß":"ss","Ť":"T","Ţ":"T","Ṱ":"T","Ț":"T","Ⱦ":"T","Ṫ":"T","Ṭ":"T","Ƭ":"T","Ṯ":"T","Ʈ":"T","Ŧ":"T","Ɐ":"A","Ꞁ":"L","Ɯ":"M","Ʌ":"V","Ꜩ":"TZ","Ú":"U","Ŭ":"U","Ǔ":"U","Û":"U","Ṷ":"U","Ü":"U","Ǘ":"U","Ǚ":"U","Ǜ":"U","Ǖ":"U","Ṳ":"U","Ụ":"U","Ű":"U","Ȕ":"U","Ù":"U","Ủ":"U","Ư":"U","Ứ":"U","Ự":"U","Ừ":"U","Ử":"U","Ữ":"U","Ȗ":"U","Ū":"U","Ṻ":"U","Ų":"U","Ů":"U","Ũ":"U","Ṹ":"U","Ṵ":"U","Ꝟ":"V","Ṿ":"V","Ʋ":"V","Ṽ":"V","Ꝡ":"VY","Ẃ":"W","Ŵ":"W","Ẅ":"W","Ẇ":"W","Ẉ":"W","Ẁ":"W","Ⱳ":"W","Ẍ":"X","Ẋ":"X","Ý":"Y","Ŷ":"Y","Ÿ":"Y","Ẏ":"Y","Ỵ":"Y","Ỳ":"Y","Ƴ":"Y","Ỷ":"Y","Ỿ":"Y","Ȳ":"Y","Ɏ":"Y","Ỹ":"Y","Ї":"YI","Ź":"Z","Ž":"Z","Ẑ":"Z","Ⱬ":"Z","Ż":"Z","Ẓ":"Z","Ȥ":"Z","Ẕ":"Z","Ƶ":"Z","Þ":"TH","Ĳ":"IJ","Œ":"OE","ᴀ":"A","ᴁ":"AE","ʙ":"B","ᴃ":"B","ᴄ":"C","ᴅ":"D","ᴇ":"E","ꜰ":"F","ɢ":"G","ʛ":"G","ʜ":"H","ɪ":"I","ʁ":"R","ᴊ":"J","ᴋ":"K","ʟ":"L","ᴌ":"L","ᴍ":"M","ɴ":"N","ᴏ":"O","ɶ":"OE","ᴐ":"O","ᴕ":"OU","ᴘ":"P","ʀ":"R","ᴎ":"N","ᴙ":"R","ꜱ":"S","ᴛ":"T","ⱻ":"E","ᴚ":"R","ᴜ":"U","ᴠ":"V","ᴡ":"W","ʏ":"Y","ᴢ":"Z","á":"a","ă":"a","ắ":"a","ặ":"a","ằ":"a","ẳ":"a","ẵ":"a","ǎ":"a","â":"a","ấ":"a","ậ":"a","ầ":"a","ẩ":"a","ẫ":"a","ä":"a","ǟ":"a","ȧ":"a","ǡ":"a","ạ":"a","ȁ":"a","à":"a","ả":"a","ȃ":"a","ā":"a","ą":"a","ᶏ":"a","ẚ":"a","å":"a","ǻ":"a","ḁ":"a","ⱥ":"a","ã":"a","ꜳ":"aa","æ":"ae","ǽ":"ae","ǣ":"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay","ḃ":"b","ḅ":"b","ɓ":"b","ḇ":"b","ᵬ":"b","ᶀ":"b","ƀ":"b","ƃ":"b","ɵ":"o","ć":"c","č":"c","ç":"c","ḉ":"c","ĉ":"c","ɕ":"c","ċ":"c","ƈ":"c","ȼ":"c","ď":"d","ḑ":"d","ḓ":"d","ȡ":"d","ḋ":"d","ḍ":"d","ɗ":"d","ᶑ":"d","ḏ":"d","ᵭ":"d","ᶁ":"d","đ":"d","ɖ":"d","ƌ":"d","ð":"d","ı":"i","ȷ":"j","ɟ":"j","ʄ":"j","ǳ":"dz","ǆ":"dz","é":"e","ĕ":"e","ě":"e","ȩ":"e","ḝ":"e","ê":"e","ế":"e","ệ":"e","ề":"e","ể":"e","ễ":"e","ḙ":"e","ë":"e","ė":"e","ẹ":"e","ȅ":"e","è":"e","ẻ":"e","ȇ":"e","ē":"e","ḗ":"e","ḕ":"e","ⱸ":"e","ę":"e","ᶒ":"e","ɇ":"e","ẽ":"e","ḛ":"e","ꝫ":"et","ḟ":"f","ƒ":"f","ᵮ":"f","ᶂ":"f","ǵ":"g","ğ":"g","ǧ":"g","ģ":"g","ĝ":"g","ġ":"g","ɠ":"g","ḡ":"g","ᶃ":"g","ǥ":"g","ḫ":"h","ȟ":"h","ḩ":"h","ĥ":"h","ⱨ":"h","ḧ":"h","ḣ":"h","ḥ":"h","ɦ":"h","ẖ":"h","ħ":"h","ƕ":"hv","í":"i","ĭ":"i","ǐ":"i","î":"i","ï":"i","ḯ":"i","ị":"i","ȉ":"i","ì":"i","ỉ":"i","ȋ":"i","ī":"i","į":"i","ᶖ":"i","ɨ":"i","ĩ":"i","ḭ":"i","і":"i","ꝺ":"d","ꝼ":"f","ᵹ":"g","ꞃ":"r","ꞅ":"s","ꞇ":"t","ꝭ":"is","ǰ":"j","ĵ":"j","ʝ":"j","ɉ":"j","ḱ":"k","ǩ":"k","ķ":"k","ⱪ":"k","ꝃ":"k","ḳ":"k","ƙ":"k","ḵ":"k","ᶄ":"k","ꝁ":"k","ꝅ":"k","ĺ":"l","ƚ":"l","ɬ":"l","ľ":"l","ļ":"l","ḽ":"l","ȴ":"l","ḷ":"l","ḹ":"l","ⱡ":"l","ꝉ":"l","ḻ":"l","ŀ":"l","ɫ":"l","ᶅ":"l","ɭ":"l","ł":"l","ǉ":"lj","ſ":"s","ẜ":"s","ẛ":"s","ẝ":"s","ḿ":"m","ṁ":"m","ṃ":"m","ɱ":"m","ᵯ":"m","ᶆ":"m","ń":"n","ň":"n","ņ":"n","ṋ":"n","ȵ":"n","ṅ":"n","ṇ":"n","ǹ":"n","ɲ":"n","ṉ":"n","ƞ":"n","ᵰ":"n","ᶇ":"n","ɳ":"n","ñ":"n","ǌ":"nj","ó":"o","ŏ":"o","ǒ":"o","ô":"o","ố":"o","ộ":"o","ồ":"o","ổ":"o","ỗ":"o","ö":"o","ȫ":"o","ȯ":"o","ȱ":"o","ọ":"o","ő":"o","ȍ":"o","ò":"o","ỏ":"o","ơ":"o","ớ":"o","ợ":"o","ờ":"o","ở":"o","ỡ":"o","ȏ":"o","ꝋ":"o","ꝍ":"o","ⱺ":"o","ō":"o","ṓ":"o","ṑ":"o","ǫ":"o","ǭ":"o","ø":"o","ǿ":"o","õ":"o","ṍ":"o","ṏ":"o","ȭ":"o","ƣ":"oi","ꝏ":"oo","ɛ":"e","ᶓ":"e","ɔ":"o","ᶗ":"o","ȣ":"ou","ṕ":"p","ṗ":"p","ꝓ":"p","ƥ":"p","ᵱ":"p","ᶈ":"p","ꝕ":"p","ᵽ":"p","ꝑ":"p","ꝙ":"q","ʠ":"q","ɋ":"q","ꝗ":"q","ŕ":"r","ř":"r","ŗ":"r","ṙ":"r","ṛ":"r","ṝ":"r","ȑ":"r","ɾ":"r","ᵳ":"r","ȓ":"r","ṟ":"r","ɼ":"r","ᵲ":"r","ᶉ":"r","ɍ":"r","ɽ":"r","ↄ":"c","ꜿ":"c","ɘ":"e","ɿ":"r","ś":"s","ṥ":"s","š":"s","ṧ":"s","ş":"s","ŝ":"s","ș":"s","ṡ":"s","ṣ":"s","ṩ":"s","ʂ":"s","ᵴ":"s","ᶊ":"s","ȿ":"s","ɡ":"g","ᴑ":"o","ᴓ":"o","ᴝ":"u","ť":"t","ţ":"t","ṱ":"t","ț":"t","ȶ":"t","ẗ":"t","ⱦ":"t","ṫ":"t","ṭ":"t","ƭ":"t","ṯ":"t","ᵵ":"t","ƫ":"t","ʈ":"t","ŧ":"t","ᵺ":"th","ɐ":"a","ᴂ":"ae","ǝ":"e","ᵷ":"g","ɥ":"h","ʮ":"h","ʯ":"h","ᴉ":"i","ʞ":"k","ꞁ":"l","ɯ":"m","ɰ":"m","ᴔ":"oe","ɹ":"r","ɻ":"r","ɺ":"r","ⱹ":"r","ʇ":"t","ʌ":"v","ʍ":"w","ʎ":"y","ꜩ":"tz","ú":"u","ŭ":"u","ǔ":"u","û":"u","ṷ":"u","ü":"u","ǘ":"u","ǚ":"u","ǜ":"u","ǖ":"u","ṳ":"u","ụ":"u","ű":"u","ȕ":"u","ù":"u","ủ":"u","ư":"u","ứ":"u","ự":"u","ừ":"u","ử":"u","ữ":"u","ȗ":"u","ū":"u","ṻ":"u","ų":"u","ᶙ":"u","ů":"u","ũ":"u","ṹ":"u","ṵ":"u","ᵫ":"ue","ꝸ":"um","ⱴ":"v","ꝟ":"v","ṿ":"v","ʋ":"v","ᶌ":"v","ⱱ":"v","ṽ":"v","ꝡ":"vy","ẃ":"w","ŵ":"w","ẅ":"w","ẇ":"w","ẉ":"w","ẁ":"w","ⱳ":"w","ẘ":"w","ẍ":"x","ẋ":"x","ᶍ":"x","ý":"y","ŷ":"y","ÿ":"y","ẏ":"y","ỵ":"y","ỳ":"y","ƴ":"y","ỷ":"y","ỿ":"y","ȳ":"y","ẙ":"y","ɏ":"y","ỹ":"y","ї":"yi","ź":"z","ž":"z","ẑ":"z","ʑ":"z","ⱬ":"z","ż":"z","ẓ":"z","ȥ":"z","ẕ":"z","ᵶ":"z","ᶎ":"z","ʐ":"z","ƶ":"z","ɀ":"z","þ":"th","ﬀ":"ff","ﬃ":"ffi","ﬄ":"ffl","ﬁ":"fi","ﬂ":"fl","ĳ":"ij","œ":"oe","ﬆ":"st","ₐ":"a","ₑ":"e","ᵢ":"i","ⱼ":"j","ₒ":"o","ᵣ":"r","ᵤ":"u","ᵥ":"v","ₓ":"x","Ё":"YO","Й":"I","Ц":"TS","У":"U","К":"K","Е":"E","Н":"N","Г":"G","Ґ":"G","Ш":"SH","Щ":"SCH","З":"Z","Х":"H","Ъ":"'","ё":"yo","й":"i","ц":"ts","у":"u","к":"k","е":"e","н":"n","г":"g","ґ":"g","ш":"sh","щ":"sch","з":"z","х":"h","ъ":"'","Ф":"F","Ы":"I","В":"V","А":"a","П":"P","Р":"R","О":"O","Л":"L","Д":"D","Ж":"ZH","Э":"E","ф":"f","ы":"i","в":"v","а":"a","п":"p","р":"r","о":"o","л":"l","д":"d","ж":"zh","э":"e","Я":"Ya","Ч":"CH","С":"S","М":"M","И":"I","Т":"T","Ь":"'","Б":"B","Ю":"YU","я":"ya","ч":"ch","с":"s","м":"m","и":"i","т":"t","ь":"'","б":"b","ю":"yu"};t.latinize=i},function(e,t){},function(e,t){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(11),r=n(29),s=n(28),a=n(1),u=n(65),l=n(55),c=function(){function e(e,t,n,i){var s=this;this.debugInstance=e,this.element=t,this.onSearch=n,this.infoToDebug=i,this.debug=!1,this.enableQuerySyntax=!1,this.highlightRecommendation=!1,this.requestAllFields=!1,this.widgets=[],this.widgets.push(this.buildEnabledHighlightRecommendation()),this.widgets.push(this.buildEnableDebugCheckbox()),this.widgets.push(this.buildEnableQuerySyntaxCheckbox()),this.widgets.push(this.buildRequestAllFieldsCheckbox()),this.widgets.push(this.buildSearch()),this.moveTo(t),a.$$(this.root).on(r.ResultListEvents.newResultDisplayed,function(e,t){return s.handleNewResultDisplayed(t)}),a.$$(this.root).on(o.QueryEvents.doneBuildingQuery,function(e,t){return s.handleDoneBuildingQuery(t)})}return e.prototype.moveTo=function(e){i.each(this.widgets,function(t){return e.appendChild(t)}),this.element=e},e.prototype.setSearch=function(e){this.onSearch=e,this.resetSearchbox()},e.prototype.setNewInfoToDebug=function(e){this.infoToDebug=e},e.prototype.resetSearchbox=function(){this.search&&this.search.reset()},Object.defineProperty(e.prototype,"bindings",{get:function(){return this.debugInstance.bindings},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"root",{get:function(){return this.debugInstance.element},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"queryOptions",{get:function(){return{closeModalBox:!1,origin:this.debugInstance}},enumerable:!0,configurable:!0}),e.prototype.handleNewResultDisplayed=function(e){null!=e.item&&e.result.isRecommendation&&this.highlightRecommendation&&a.$$(e.item).addClass("coveo-is-recommendation")},e.prototype.handleDoneBuildingQuery=function(e){e.queryBuilder.enableDebug=this.debug||e.queryBuilder.enableDebug,this.requestAllFields&&(e.queryBuilder.fieldsToInclude=void 0,e.queryBuilder.includeRequiredFields=!1)},e.prototype.buildSearch=function(){var e=this;return this.search=new l.TextInput(function(t){var n=t.getValue().toLowerCase();e.onSearch(n)},"Search in debug"),this.search.build(),this.search.getElement()},e.prototype.buildEnableDebugCheckbox=function(){var e=this,t=new u.Checkbox(function(t){e.debug=t.isSelected(),e.bindings.queryController.executeQuery(e.queryOptions),e.resetSearchbox()},"Enable query debug");return this.debug&&t.select(),t.build()},e.prototype.buildEnableQuerySyntaxCheckbox=function(){var e=this,t=new u.Checkbox(function(t){e.enableQuerySyntax=t.isSelected(),e.bindings.componentOptionsModel.set(s.COMPONENT_OPTIONS_ATTRIBUTES.SEARCH_BOX,{enableQuerySyntax:e.enableQuerySyntax}),e.bindings.queryController.executeQuery(e.queryOptions)},"Enable query syntax in search box");return this.enableQuerySyntax&&t.select(),t.build()},e.prototype.buildRequestAllFieldsCheckbox=function(){var e=this,t=new u.Checkbox(function(t){e.requestAllFields=t.isSelected(),e.bindings.queryController.executeQuery(e.queryOptions)},"Request all fields available");return this.requestAllFields&&t.select(),t.build()},e.prototype.buildEnabledHighlightRecommendation=function(){var e=this,t=new u.Checkbox(function(t){e.highlightRecommendation=t.isSelected(),e.bindings.queryController.executeQuery(e.queryOptions)},"Highlight recommendation");return this.highlightRecommendation&&t.select(),t.build()},e}();t.DebugHeader=c},function(e,t){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(22),o=n(0),r=function(){function e(e){this.bindings=e}return e.prototype.generateDebugInfoForResult=function(e){var t=this;return{result:e,fields:function(){return t.buildFieldsSection(e)},rankingInfo:function(){return t.buildRankingInfoSection(e)}}},e.prototype.fetchFields=function(){var e=this;return null==this.fields?this.bindings.queryController.getEndpoint().listFields().then(function(t){return e.fields={},t.forEach(function(t){e.fields[t.name]=t}),e.fields}):Promise.resolve(this.fields)},e.prototype.buildRankingInfoSection=function(e){return e.rankingInfo&&this.parseRankingInfo(e.rankingInfo)},e.prototype.parseWeights=function(e){var t=e.match(/(\w+(?:\s\w+)*): ([-0-9]+)/g);return o.object(o.map(t,function(e){var t=e.match(/^(\w+(?:\s\w+)*): ([-0-9]+)$/);return[t[1],Number(t[2])]}))},e.prototype.buildFieldsSection=function(e){return this.fetchFields().then(function(t){var n={};return o.each(e.raw,function(e,i){var r=t["@"+i];null==r&&i.match(/^sys/)&&(r=t["@"+i.substr(3)]),null==r?n["@"+i]=e:"Date"==r.fieldType?n["@"+i]=new Date(e):r.splitGroupByField&&o.isString(e)?n["@"+i]=e.split(/\s*;\s*/):n["@"+i]=e}),n})},e.prototype.parseRankingInfo=function(e){var t=this,n={};if(e){var r=/Document weights:\n((?:.)*?)\n+/g.exec(e),s=/Terms weights:\n((?:.|\n)*)\n+/g.exec(e),a=/Total weight: ([0-9]+)/g.exec(e);if(r&&r[1]&&(n["Document weights"]=this.parseWeights(r[1])),a&&a[1]&&(n["Total weight"]=Number(a[1])),s&&s[1]){var u=i.StringUtils.match(s[1],/((?:[^:]+: [0-9]+, [0-9]+; )+)\n((?:\w+: [0-9]+; )+)/g);n["Terms weights"]=o.object(o.map(u,function(e){var n=o.object(o.map(i.StringUtils.match(e[1],/([^:]+): ([0-9]+), ([0-9]+); /g),function(e){return[e[1],{Correlation:Number(e[2]),"TF-IDF":Number(e[3])}]})),r=t.parseWeights(e[2]);return[o.keys(n).join(", "),{terms:n,Weights:r}]}))}}return n},e}();t.DebugForResult=r},function(e,t){},function(e,t,n){"use strict";function i(e){var t=!0;try{new RegExp("",e)}catch(e){t=!1}return t}function o(e,t,n,i,o){if(e[T]={captureNames:t},o)return e;if(e.__proto__)e.__proto__=w.prototype;else for(var r in w.prototype)e[r]=w.prototype[r];return e[T].source=n,e[T].flags=i?i.split("").sort().join(""):i,e}function r(e){return F.replace.call(e,/([\s\S])(?=[\s\S]*\1)/g,"")}function s(e,t){if(!w.isRegExp(e))throw new TypeError("Type RegExp expected");var n=e[T]||{},i=l(e),s="",a="",u=null,p=null;return t=t||{},t.removeG&&(a+="g"),t.removeY&&(a+="y"),a&&(i=F.replace.call(i,new RegExp("[".concat(a,"]+"),"g"),"")),t.addG&&(s+="g"),t.addY&&(s+="y"),s&&(i=r(i+s)),t.isInternalOnly||(void 0!==n.source&&(u=n.source),null!=n.flags&&(p=s?r(n.flags+s):n.flags)),e=o(new RegExp(t.source||e.source,i),c(e)?n.captureNames.slice(0):null,u,p,t.isInternalOnly)}function a(e){return(0,A.default)(e,16)}function u(e,t,n){return"("===e.input[e.index-1]||")"===e.input[e.index+e[0].length]||"|"===e.input[e.index-1]||"|"===e.input[e.index+e[0].length]||e.index<1||e.index+e[0].length>=e.input.length||F.test.call(/^\(\?[:=!]/,e.input.substr(e.index-3,3))||d(e.input,e.index+e[0].length,n)?"":"(?:)"}function l(e){return B?e.flags:F.exec.call(/\/([a-z]*)$/i,RegExp.prototype.toString.call(e))[1]}function c(e){return!(!e[T]||!e[T].captureNames)}function p(e){return(0,A.default)(e,10).toString(16)}function d(e,t,n){return F.test.call(-1!==n.indexOf("x")?/^(?:\s|#[^#\n]*|\(\?#[^)]*\))*(?:[?*+]|{\d+(?:,\d*)?})/:/^(?:\(\?#[^)]*\))*(?:[?*+]|{\d+(?:,\d*)?})/,e.slice(t))}function h(e,t){return Q.call(e)==="[object ".concat(t,"]")}function f(e){for(;e.length<4;)e="0".concat(e);return e}function m(e,t){if(r(t)!==t)throw new SyntaxError("Invalid duplicate regex flag ".concat(t));e=F.replace.call(e,/^\(\?([\w$]+)\)/,function(e,n){if(F.test.call(/[gy]/,n))throw new SyntaxError("Cannot use flag g or y in mode modifier ".concat(e));return t=r(t+n),""});var n=!0,i=!1,o=void 0;try{for(var s,a=(0,E.default)(t);!(n=(s=a.next()).done);n=!0){var u=s.value;if(!q[u])throw new SyntaxError("Unknown regex flag ".concat(u))}}catch(e){i=!0,o=e}finally{try{n||null==a.return||a.return()}finally{if(i)throw o}}return{pattern:e,flags:t}}function y(e){var t={};return h(e,"String")?(w.forEach(e,/[^\s,]+/,function(e){t[e]=!0}),t):e}function g(e){if(!/^[\w$]$/.test(e))throw new Error("Flag must be a single character A-Za-z0-9_$");q[e]=!0}function v(e,t,n,i,o){for(var r,s,a=D.length,u=e[n],l=null;a--;)if(s=D[a],!(s.leadChar&&s.leadChar!==u||s.scope!==i&&"all"!==s.scope||s.flag&&-1===t.indexOf(s.flag))&&(r=w.exec(e,s.regex,n,"sticky"))){l={matchLength:r[0].length,output:s.handler.call(o,r,i,t),reparse:s.reparse};break}return l}function b(e){R.astral=e}function S(e){R.namespacing=e}function C(e){if(null==e)throw new TypeError("Cannot convert null or undefined to object");return e}function w(e,t){if(w.isRegExp(e)){if(void 0!==t)throw new TypeError("Cannot supply flags when copying a RegExp");return s(e)}if(e=void 0===e?"":String(e),t=void 0===t?"":String(t),w.isInstalled("astral")&&-1===t.indexOf("A")&&(t+="A"),P[e]||(P[e]={}),!P[e][t]){for(var n,i={hasNamedCapture:!1,captureNames:[]},r=$,a="",u=0,l=m(e,t),c=l.pattern,p=l.flags;u<c.length;){do{(n=v(c,p,u,r,i))&&n.reparse&&(c=c.slice(0,u)+n.output+c.slice(u+n.matchLength))}while(n&&n.reparse);if(n)a+=n.output,u+=n.matchLength||1;else{var d=w.exec(c,k[r],u,"sticky"),h=(0,x.default)(d,1),f=h[0];a+=f,u+=f.length,"["===f&&r===$?r=N:"]"===f&&r===N&&(r=$)}}P[e][t]={pattern:F.replace.call(a,/(?:\(\?:\))+/g,"(?:)"),flags:F.replace.call(p,/[^gimuy]+/g,""),captures:i.hasNamedCapture?i.captureNames:null}}var y=P[e][t];return o(new RegExp(y.pattern,y.flags),y.captures,e,t)}var _=n(37);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var O=_(n(393)),x=_(n(408)),E=_(n(110)),A=_(n(430)),T="xregexp",R={astral:!1,namespacing:!1},F={exec:RegExp.prototype.exec,test:RegExp.prototype.test,match:String.prototype.match,replace:String.prototype.replace,split:String.prototype.split},M={},I={},P={},D=[],$="default",N="class",k={default:/\\(?:0(?:[0-3][0-7]{0,2}|[4-7][0-7]?)?|[1-9]\d*|x[\dA-Fa-f]{2}|u(?:[\dA-Fa-f]{4}|{[\dA-Fa-f]+})|c[A-Za-z]|[\s\S])|\(\?(?:[:=!]|<[=!])|[?*+]\?|{\d+(?:,\d*)?}\??|[\s\S]/,class:/\\(?:[0-3][0-7]{0,2}|[4-7][0-7]?|x[\dA-Fa-f]{2}|u(?:[\dA-Fa-f]{4}|{[\dA-Fa-f]+})|c[A-Za-z]|[\s\S])|[\s\S]/},V=/\$(?:{([\w$]+)}|<([\w$]+)>|(\d\d?|[\s\S]))/g,L=void 0===F.exec.call(/()??/,"")[1],B=void 0!==/x/.flags,U={},Q=U.toString,j=i("u"),H=i("y"),q={g:!0,i:!0,m:!0,u:j,y:H};w.prototype=/(?:)/,w.version="4.2.4",w._clipDuplicates=r,w._hasNativeFlag=i,w._dec=a,w._hex=p,w._pad4=f,w.addToken=function(e,t,n){n=n||{};var i=n,o=i.optionalFlags;if(n.flag&&g(n.flag),o){o=F.split.call(o,"");var r=!0,a=!1,u=void 0;try{for(var l,c=(0,E.default)(o);!(r=(l=c.next()).done);r=!0){g(l.value)}}catch(e){a=!0,u=e}finally{try{r||null==c.return||c.return()}finally{if(a)throw u}}}D.push({regex:s(e,{addG:!0,addY:H,isInternalOnly:!0}),handler:t,scope:n.scope||$,flag:n.flag,reparse:n.reparse,leadChar:n.leadChar}),w.cache.flush("patterns")},w.cache=function(e,t){return I[e]||(I[e]={}),I[e][t]||(I[e][t]=w(e,t))},w.cache.flush=function(e){"patterns"===e?P={}:I={}},w.escape=function(e){return F.replace.call(C(e),/[-\[\]{}()*+?.,\\^$|#\s]/g,"\\$&")},w.exec=function(e,t,n,i){var o,r="g",a=!1,u=!1;a=H&&!!(i||t.sticky&&!1!==i),a?r+="y":i&&(u=!0,r+="FakeY"),t[T]=t[T]||{};var l=t[T][r]||(t[T][r]=s(t,{addG:!0,addY:a,source:u?"".concat(t.source,"|()"):void 0,removeY:!1===i,isInternalOnly:!0}));return n=n||0,l.lastIndex=n,o=M.exec.call(l,e),u&&o&&""===o.pop()&&(o=null),t.global&&(t.lastIndex=o?l.lastIndex:0),o},w.forEach=function(e,t,n){for(var i,o=0,r=-1;i=w.exec(e,t,o);)n(i,++r,e,t),o=i.index+(i[0].length||1)},w.globalize=function(e){return s(e,{addG:!0})},w.install=function(e){e=y(e),!R.astral&&e.astral&&b(!0),!R.namespacing&&e.namespacing&&S(!0)},w.isInstalled=function(e){return!!R[e]},w.isRegExp=function(e){return"[object RegExp]"===Q.call(e)},w.match=function(e,t,n){var i=t.global&&"one"!==n||"all"===n,o=(i?"g":"")+(t.sticky?"y":"")||"noGY";t[T]=t[T]||{};var r=t[T][o]||(t[T][o]=s(t,{addG:!!i,removeG:"one"===n,isInternalOnly:!0})),a=F.match.call(C(e),r);return t.global&&(t.lastIndex="one"===n&&a?a.index+a[0].length:0),i?a||[]:a&&a[0]},w.matchChain=function(e,t){return function e(n,i){function o(e){if(r.backref){var t="Backreference to undefined group: ".concat(r.backref),n=isNaN(r.backref);if(n&&w.isInstalled("namespacing")){if(!(r.backref in e.groups))throw new ReferenceError(t)}else if(!e.hasOwnProperty(r.backref))throw new ReferenceError(t);var i=n&&w.isInstalled("namespacing")?e.groups[r.backref]:e[r.backref];s.push(i||"")}else s.push(e[0])}var r=t[i].regex?t[i]:{regex:t[i]},s=[],a=!0,u=!1,l=void 0;try{for(var c,p=(0,E.default)(n);!(a=(c=p.next()).done);a=!0){var d=c.value;w.forEach(d,r.regex,o)}}catch(e){u=!0,l=e}finally{try{a||null==p.return||p.return()}finally{if(u)throw l}}return i!==t.length-1&&s.length?e(s,i+1):s}([e],0)},w.replace=function(e,t,n,i){var o=w.isRegExp(t),r=t.global&&"one"!==i||"all"===i,a=(r?"g":"")+(t.sticky?"y":"")||"noGY",u=t;o?(t[T]=t[T]||{},u=t[T][a]||(t[T][a]=s(t,{addG:!!r,removeG:"one"===i,isInternalOnly:!0}))):r&&(u=new RegExp(w.escape(String(t)),"g"));var l=M.replace.call(C(e),u,n);return o&&t.global&&(t.lastIndex=0),l},w.replaceEach=function(e,t){var n=!0,i=!1,o=void 0;try{for(var r,s=(0,E.default)(t);!(n=(r=s.next()).done);n=!0){var a=r.value;e=w.replace(e,a[0],a[1],a[2])}}catch(e){i=!0,o=e}finally{try{n||null==s.return||s.return()}finally{if(i)throw o}}return e},w.split=function(e,t,n){return M.split.call(C(e),t,n)},w.test=function(e,t,n,i){return!!w.exec(e,t,n,i)},w.uninstall=function(e){e=y(e),R.astral&&e.astral&&b(!1),R.namespacing&&e.namespacing&&S(!1)},w.union=function(e,t,n){function i(e,t,n){var i=r[a-o];if(t){if(++a,i)return"(?<".concat(i,">")}else if(n)return"\\".concat(+n+o);return e}n=n||{};var o,r,s=n.conjunction||"or",a=0;if(!h(e,"Array")||!e.length)throw new TypeError("Must provide a nonempty array of patterns to merge");var u=/(\()(?!\?)|\\([1-9]\d*)|\\[\s\S]|\[(?:[^\\\]]|\\[\s\S])*\]/g,l=[],c=!0,p=!1,d=void 0;try{for(var f,m=(0,E.default)(e);!(c=(f=m.next()).done);c=!0){var y=f.value;w.isRegExp(y)?(o=a,r=y[T]&&y[T].captureNames||[],l.push(F.replace.call(w(y.source).source,u,i))):l.push(w.escape(y))}}catch(e){p=!0,d=e}finally{try{c||null==m.return||m.return()}finally{if(p)throw d}}var g="none"===s?"":"|";return w(l.join(g),t)},M.exec=function(e){var t=this.lastIndex,n=F.exec.apply(this,arguments);if(n){if(!L&&n.length>1&&-1!==n.indexOf("")){var i=s(this,{removeG:!0,isInternalOnly:!0});F.replace.call(String(e).slice(n.index),i,function(){for(var e=arguments.length,t=1;t<e-2;++t)void 0===(t<0||arguments.length<=t?void 0:arguments[t])&&(n[t]=void 0)})}var o=n;if(w.isInstalled("namespacing")&&(n.groups=(0,O.default)(null),o=n.groups),this[T]&&this[T].captureNames)for(var r=1;r<n.length;++r){var a=this[T].captureNames[r-1];a&&(o[a]=n[r])}this.global&&!n[0].length&&this.lastIndex>n.index&&(this.lastIndex=n.index)}return this.global||(this.lastIndex=t),n},M.test=function(e){return!!M.exec.call(this,e)},M.match=function(e){if(w.isRegExp(e)){if(e.global){var t=F.match.apply(this,arguments);return e.lastIndex=0,t}}else e=new RegExp(e);return M.exec.call(e,C(this))},M.replace=function(e,t){var n,i,o,r=w.isRegExp(e);return r?(e[T]&&(i=e[T].captureNames),n=e.lastIndex):e+="",o=h(t,"Function")?F.replace.call(String(this),e,function(){for(var n=arguments.length,o=new Array(n),s=0;s<n;s++)o[s]=arguments[s];if(i){var a;w.isInstalled("namespacing")?(a=(0,O.default)(null),o.push(a)):(o[0]=new String(o[0]),a=o[0]);for(var u=0;u<i.length;++u)i[u]&&(a[i[u]]=o[u+1])}return r&&e.global&&(e.lastIndex=o[o.length-2]+o[0].length),t.apply(void 0,o)}):F.replace.call(null==this?this:String(this),e,function(){function e(e,t,n,r){if(t=t||n){var s=+t;if(s<=o.length-3)return o[s]||"";if((s=i?i.indexOf(t):-1)<0)throw new SyntaxError("Backreference to undefined group ".concat(e));return o[s+1]||""}if("$"===r)return"$";if("&"===r||0==+r)return o[0];if("`"===r)return o[o.length-1].slice(0,o[o.length-2]);if("'"===r)return o[o.length-1].slice(o[o.length-2]+o[0].length);if(r=+r,!isNaN(r)){if(r>o.length-3)throw new SyntaxError("Backreference to undefined group ".concat(e));return o[r]||""}throw new SyntaxError("Invalid token ".concat(e))}for(var n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];return F.replace.call(String(t),V,e)}),r&&(e.global?e.lastIndex=0:e.lastIndex=n),o},M.split=function(e,t){if(!w.isRegExp(e))return F.split.apply(this,arguments);var n,i=String(this),o=[],r=e.lastIndex,s=0;return t=(void 0===t?-1:t)>>>0,w.forEach(i,e,function(e){e.index+e[0].length>s&&(o.push(i.slice(s,e.index)),e.length>1&&e.index<i.length&&Array.prototype.push.apply(o,e.slice(1)),n=e[0].length,s=e.index+n)}),s===i.length?F.test.call(e,"")&&!n||o.push(""):o.push(i.slice(s)),e.lastIndex=r,o.length>t?o.slice(0,t):o},w.addToken(/\\([ABCE-RTUVXYZaeg-mopqyz]|c(?![A-Za-z])|u(?![\dA-Fa-f]{4}|{[\dA-Fa-f]+})|x(?![\dA-Fa-f]{2}))/,function(e,t){if("B"===e[1]&&t===$)return e[0];throw new SyntaxError("Invalid escape ".concat(e[0]))},{scope:"all",leadChar:"\\"}),w.addToken(/\\u{([\dA-Fa-f]+)}/,function(e,t,n){var i=a(e[1]);if(i>1114111)throw new SyntaxError("Invalid Unicode code point ".concat(e[0]));if(i<=65535)return"\\u".concat(f(p(i)));if(j&&-1!==n.indexOf("u"))return e[0];throw new SyntaxError("Cannot use Unicode code point above \\u{FFFF} without flag u")},{scope:"all",leadChar:"\\"}),w.addToken(/\[(\^?)\]/,function(e){return e[1]?"[\\s\\S]":"\\b\\B"},{leadChar:"["}),w.addToken(/\(\?#[^)]*\)/,u,{leadChar:"("}),w.addToken(/\s+|#[^\n]*\n?/,u,{flag:"x"}),w.addToken(/\./,function(){return"[\\s\\S]"},{flag:"s",leadChar:"."}),w.addToken(/\\k<([\w$]+)>/,function(e){var t=isNaN(e[1])?this.captureNames.indexOf(e[1])+1:+e[1],n=e.index+e[0].length;if(!t||t>this.captureNames.length)throw new SyntaxError("Backreference to undefined group ".concat(e[0]));return"\\".concat(t).concat(n===e.input.length||isNaN(e.input[n])?"":"(?:)")},{leadChar:"\\"}),w.addToken(/\\(\d+)/,function(e,t){if(!(t===$&&/^[1-9]/.test(e[1])&&+e[1]<=this.captureNames.length)&&"0"!==e[1])throw new SyntaxError("Cannot use octal escape or backreference to undefined group ".concat(e[0]));return e[0]},{scope:"all",leadChar:"\\"}),w.addToken(/\(\?P?<([\w$]+)>/,function(e){if(!isNaN(e[1]))throw new SyntaxError("Cannot use integer as capture name ".concat(e[0]));if(!w.isInstalled("namespacing")&&("length"===e[1]||"__proto__"===e[1]))throw new SyntaxError("Cannot use reserved word as capture name ".concat(e[0]));if(-1!==this.captureNames.indexOf(e[1]))throw new SyntaxError("Cannot use same name for multiple groups ".concat(e[0]));return this.captureNames.push(e[1]),this.hasNamedCapture=!0,"("},{leadChar:"("}),w.addToken(/\((?!\?)/,function(e,t,n){return-1!==n.indexOf("n")?"(?:":(this.captureNames.push(null),"(")},{optionalFlags:"n",leadChar:"("});var z=w;t.default=z,e.exports=t.default},function(e,t,n){e.exports=n(394)},function(e,t,n){n(395);var i=n(39).Object;e.exports=function(e,t){return i.create(e,t)}},function(e,t,n){var i=n(58);i(i.S,"Object",{create:n(158)})},function(e,t,n){var i=n(397);e.exports=function(e,t,n){if(i(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,i){return e.call(t,n,i)};case 3:return function(n,i,o){return e.call(t,n,i,o)}}return function(){return e.apply(t,arguments)}}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){e.exports=!n(79)&&!n(105)(function(){return 7!=Object.defineProperty(n(156)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){var i=n(104);e.exports=function(e,t){if(!i(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!i(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!i(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!i(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},function(e,t,n){var i=n(103),o=n(78),r=n(401);e.exports=n(79)?Object.defineProperties:function(e,t){o(e);for(var n,s=r(t),a=s.length,u=0;a>u;)i.f(e,n=s[u++],t[n]);return e}},function(e,t,n){var i=n(402),o=n(162);e.exports=Object.keys||function(e){return i(e,o)}},function(e,t,n){var i=n(80),o=n(106),r=n(404)(!1),s=n(109)("IE_PROTO");e.exports=function(e,t){var n,a=o(e),u=0,l=[];for(n in a)n!=s&&i(a,n)&&l.push(n);for(;t.length>u;)i(a,n=t[u++])&&(~r(l,n)||l.push(n));return l}},function(e,t,n){var i=n(107);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==i(e)?e.split(""):Object(e)}},function(e,t,n){var i=n(106),o=n(405),r=n(406);e.exports=function(e){return function(t,n,s){var a,u=i(t),l=o(u.length),c=r(s,l);if(e&&n!=n){for(;l>c;)if((a=u[c++])!=a)return!0}else for(;l>c;c++)if((e||c in u)&&u[c]===n)return e||c||0;return!e&&-1}}},function(e,t,n){var i=n(108),o=Math.min;e.exports=function(e){return e>0?o(i(e),9007199254740991):0}},function(e,t,n){var i=n(108),o=Math.max,r=Math.min;e.exports=function(e,t){return e=i(e),e<0?o(e+t,0):r(e,t)}},function(e,t,n){var i=n(38).document;e.exports=i&&i.documentElement},function(e,t,n){function i(e,t){return o(e)||r(e,t)||s()}var o=n(409),r=n(414),s=n(429);e.exports=i},function(e,t,n){function i(e){if(o(e))return e}var o=n(410);e.exports=i},function(e,t,n){e.exports=n(411)},function(e,t,n){n(412),e.exports=n(39).Array.isArray},function(e,t,n){var i=n(58);i(i.S,"Array",{isArray:n(413)})},function(e,t,n){var i=n(107);e.exports=Array.isArray||function(e){return"Array"==i(e)}},function(e,t,n){function i(e,t){var n=[],i=!0,r=!1,s=void 0;try{for(var a,u=o(e);!(i=(a=u.next()).done)&&(n.push(a.value),!t||n.length!==t);i=!0);}catch(e){r=!0,s=e}finally{try{i||null==u.return||u.return()}finally{if(r)throw s}}return n}var o=n(110);e.exports=i},function(e,t,n){n(416),n(424),e.exports=n(426)},function(e,t,n){n(417);for(var i=n(38),o=n(59),r=n(82),s=n(46)("toStringTag"),a="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),u=0;u<a.length;u++){var l=a[u],c=i[l],p=c&&c.prototype;p&&!p[s]&&o(p,s,l),r[l]=r.Array}},function(e,t,n){"use strict";var i=n(418),o=n(419),r=n(82),s=n(106);e.exports=n(163)(Array,"Array",function(e,t){this._t=s(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,o(1)):"keys"==t?o(0,n):"values"==t?o(0,e[n]):o(0,[n,e[n]])},"values"),r.Arguments=r.Array,i("keys"),i("values"),i("entries")},function(e,t){e.exports=function(){}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,n){e.exports=n(59)},function(e,t,n){"use strict";var i=n(158),o=n(157),r=n(164),s={};n(59)(s,n(46)("iterator"),function(){return this}),e.exports=function(e,t,n){e.prototype=i(s,{next:o(1,n)}),r(e,t+" Iterator")}},function(e,t,n){var i=n(80),o=n(423),r=n(109)("IE_PROTO"),s=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=o(e),i(e,r)?e[r]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?s:null}},function(e,t,n){var i=n(81);e.exports=function(e){return Object(i(e))}},function(e,t,n){"use strict";var i=n(425)(!0);n(163)(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=i(t,n),this._i+=e.length,{value:e,done:!1})})},function(e,t,n){var i=n(108),o=n(81);e.exports=function(e){return function(t,n){var r,s,a=String(o(t)),u=i(n),l=a.length;return u<0||u>=l?e?"":void 0:(r=a.charCodeAt(u),r<55296||r>56319||u+1===l||(s=a.charCodeAt(u+1))<56320||s>57343?e?a.charAt(u):r:e?a.slice(u,u+2):s-56320+(r-55296<<10)+65536)}}},function(e,t,n){var i=n(78),o=n(427);e.exports=n(39).getIterator=function(e){var t=o(e);if("function"!=typeof t)throw TypeError(e+" is not iterable!");return i(t.call(e))}},function(e,t,n){var i=n(428),o=n(46)("iterator"),r=n(82);e.exports=n(39).getIteratorMethod=function(e){if(void 0!=e)return e[o]||e["@@iterator"]||r[i(e)]}},function(e,t,n){var i=n(107),o=n(46)("toStringTag"),r="Arguments"==i(function(){return arguments}()),s=function(e,t){try{return e[t]}catch(e){}};e.exports=function(e){var t,n,a;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=s(t=Object(e),o))?n:r?i(t):"Object"==(a=i(t))&&"function"==typeof t.callee?"Arguments":a}},function(e,t){function n(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}e.exports=n},function(e,t,n){e.exports=n(431)},function(e,t,n){n(432),e.exports=n(39).parseInt},function(e,t,n){var i=n(58),o=n(433);i(i.G+i.F*(parseInt!=o),{parseInt:o})},function(e,t,n){var i=n(38).parseInt,o=n(434).trim,r=n(165),s=/^[-+]?0[xX]/;e.exports=8!==i(r+"08")||22!==i(r+"0x16")?function(e,t){var n=o(String(e),3);return i(n,t>>>0||(s.test(n)?16:10))}:i},function(e,t,n){var i=n(58),o=n(81),r=n(105),s=n(165),a="["+s+"]",u="​",l=RegExp("^"+a+a+"*"),c=RegExp(a+a+"*$"),p=function(e,t,n){var o={},a=r(function(){return!!s[e]()||u[e]()!=u}),l=o[e]=a?t(d):s[e];n&&(o[n]=l),i(i.P+i.F*a,"String",o)},d=p.trim=function(e,t){return e=String(o(e)),1&t&&(e=e.replace(l,"")),2&t&&(e=e.replace(c,"")),e};e.exports=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;/*!
 * XRegExp.build 4.2.4
 * <xregexp.com>
 * Steven Levithan (c) 2012-present MIT License
 */
var i=function(e){function t(e){var t=/^(?:\(\?:\))*\^/,n=/\$(?:\(\?:\))*$/;return t.test(e)&&n.test(e)&&n.test(e.replace(/\\[\s\S]/g,""))?e.replace(t,"").replace(n,""):e}function n(t,n){var i=n?"x":"";return e.isRegExp(t)?t[s]&&t[s].captureNames?t:e(t.source,i):e(t,i)}function i(t){return t instanceof RegExp?t:e.escape(t)}function o(e,t,n){return e["subpattern".concat(n)]=t,e}function r(e,t,n){return e+(t<n.length-1?"{{subpattern".concat(t,"}}"):"")}var s="xregexp",a=/(\()(?!\?)|\\([1-9]\d*)|\\[\s\S]|\[(?:[^\\\]]|\\[\s\S])*\]/g,u=e.union([/\({{([\w$]+)}}\)|{{([\w$]+)}}/,a],"g",{conjunction:"or"});e.tag=function(t){return function(n){for(var s=arguments.length,a=new Array(s>1?s-1:0),u=1;u<s;u++)a[u-1]=arguments[u];var l=a.map(i).reduce(o,{}),c=n.raw.map(r).join("");return e.build(c,l,t)}},e.build=function(i,o,r){r=r||"";var l=-1!==r.indexOf("x"),c=/^\(\?([\w$]+)\)/.exec(i);c&&(r=e._clipDuplicates(r+c[1]));var p={};for(var d in o)if(o.hasOwnProperty(d)){var h=n(o[d],l);p[d]={pattern:t(h.source),names:h[s].captureNames||[]}}var f,m=n(i,l),y=0,g=0,v=[0],b=m[s].captureNames||[],S=m.source.replace(u,function(e,t,n,i,o){var r,s,u,l=t||n;if(l){if(!p.hasOwnProperty(l))throw new ReferenceError("Undefined property ".concat(e));t?(r=b[g],v[++g]=++y,s="(?<".concat(r||l,">")):s="(?:",f=y;var c=p[l].pattern.replace(a,function(e,t,n){if(t){if(r=p[l].names[y-f],++y,r)return"(?<".concat(r,">")}else if(n)return u=+n-1,p[l].names[u]?"\\k<".concat(p[l].names[u],">"):"\\".concat(+n+f);return e});return"".concat(s).concat(c,")")}if(i){if(r=b[g],v[++g]=++y,r)return"(?<".concat(r,">")}else if(o)return u=+o-1,b[u]?"\\k<".concat(b[u],">"):"\\".concat(v[+o]);return e});return e(S,r)}};t.default=i,e.exports=t.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;/*!
 * XRegExp.matchRecursive 4.2.4
 * <xregexp.com>
 * Steven Levithan (c) 2009-present MIT License
 */
var i=function(e){function t(e,t,n,i){return{name:e,value:t,start:n,end:i}}e.matchRecursive=function(n,i,o,r,s){r=r||"",s=s||{};var a,u,l,c,p,d=-1!==r.indexOf("g"),h=-1!==r.indexOf("y"),f=r.replace(/y/g,""),m=s,y=m.escapeChar,g=s.valueNames,v=[],b=0,S=0,C=0,w=0;if(i=e(i,f),o=e(o,f),y){if(y.length>1)throw new Error("Cannot use more than one escape character");y=e.escape(y),p=new RegExp("(?:".concat(y,"[\\S\\s]|(?:(?!").concat(e.union([i,o],"",{conjunction:"or"}).source,")[^").concat(y,"])+)+"),r.replace(/[^imu]+/g,""))}for(;;){if(y&&(C+=(e.exec(n,p,C,"sticky")||[""])[0].length),l=e.exec(n,i,C),c=e.exec(n,o,C),l&&c&&(l.index<=c.index?c=null:l=null),l||c)S=(l||c).index,C=S+(l||c)[0].length;else if(!b)break;if(h&&!b&&S>w)break;if(l)b||(a=S,u=C),++b;else{if(!c||!b)throw new Error("Unbalanced delimiter found in string");if(!--b&&(g?(g[0]&&a>w&&v.push(t(g[0],n.slice(w,a),w,a)),g[1]&&v.push(t(g[1],n.slice(a,u),a,u)),g[2]&&v.push(t(g[2],n.slice(u,S),u,S)),g[3]&&v.push(t(g[3],n.slice(S,C),S,C))):v.push(n.slice(u,S)),w=C,!d))break}S===C&&++C}return d&&!h&&g&&g[0]&&n.length>w&&v.push(t(g[0],n.slice(w),w,n.length)),v}};t.default=i,e.exports=t.default},function(e,t,n){"use strict";var i=n(37);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(n(110)),r=function(e){function t(e){return e.replace(/[- _]+/g,"").toLowerCase()}function n(e){var t=/^\\[xu](.+)/.exec(e);return t?l(t[1]):e.charCodeAt("\\"===e[0]?1:0)}function i(t){var i="",o=-1;return e.forEach(t,/(\\x..|\\u....|\\?[\s\S])(?:-(\\x..|\\u....|\\?[\s\S]))?/,function(e){var t=n(e[1]);t>o+1&&(i+="\\u".concat(p(c(o+1))),t>o+2&&(i+="-\\u".concat(p(c(t-1))))),o=n(e[2]||e[1])}),o<65535&&(i+="\\u".concat(p(c(o+1))),o<65534&&(i+="-\\uFFFF")),i}function r(e){return u[e]["b!"]||(u[e]["b!"]=i(u[e].bmp))}function s(e,t){var n=u[e],i="";return n.bmp&&!n.isBmpLast&&(i="[".concat(n.bmp,"]").concat(n.astral?"|":"")),n.astral&&(i+=n.astral),n.isBmpLast&&n.bmp&&(i+="".concat(n.astral?"|":"","[").concat(n.bmp,"]")),t?"(?:(?!".concat(i,")(?:[�-�][�-�]|[\0-￿]))"):"(?:".concat(i,")")}function a(e,t){var n=t?"a!":"a=";return u[e][n]||(u[e][n]=s(e,t))}var u={},l=e._dec,c=e._hex,p=e._pad4;e.addToken(/\\([pP])(?:{(\^?)([^}]*)}|([A-Za-z]))/,function(e,n,i){var o="P"===e[1]||!!e[2],s=-1!==i.indexOf("A"),l=t(e[4]||e[3]),c=u[l];if("P"===e[1]&&e[2])throw new SyntaxError("Invalid double negation "+e[0]);if(!u.hasOwnProperty(l))throw new SyntaxError("Unknown Unicode token "+e[0]);if(c.inverseOf){if(l=t(c.inverseOf),!u.hasOwnProperty(l))throw new ReferenceError("".concat("Unicode token missing data "+e[0]," -> ").concat(c.inverseOf));c=u[l],o=!o}if(!c.bmp&&!s)throw new SyntaxError("Astral mode required for Unicode token "+e[0]);if(s){if("class"===n)throw new SyntaxError("Astral mode does not support Unicode tokens within character classes");return a(l,o)}return"class"===n?o?r(l):c.bmp:"".concat((o?"[^":"[")+c.bmp,"]")},{scope:"all",optionalFlags:"A",leadChar:"\\"}),e.addUnicodeData=function(n){var i=!0,r=!1,s=void 0;try{for(var a,l=(0,o.default)(n);!(i=(a=l.next()).done);i=!0){var c=a.value;if(!c.name)throw new Error("Unicode token requires name");if(!(c.inverseOf||c.bmp||c.astral))throw new Error("Unicode token has no character data "+c.name);u[t(c.name)]=c,c.alias&&(u[t(c.alias)]=c)}}catch(e){r=!0,s=e}finally{try{i||null==l.return||l.return()}finally{if(r)throw s}}e.cache.flush("patterns")},e._getUnicodeProperty=function(e){var n=t(e);return u[n]}};t.default=r,e.exports=t.default},function(e,t,n){"use strict";var i=n(37);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(n(439)),r=function(e){if(!e.addUnicodeData)throw new ReferenceError("Unicode Base must be loaded before Unicode Blocks");e.addUnicodeData(o.default)};t.default=r,e.exports=t.default},function(e,t){e.exports=[{name:"InAdlam",astral:"�[�-�]"},{name:"InAegean_Numbers",astral:"�[�-�]"},{name:"InAhom",astral:"�[�-�]"},{name:"InAlchemical_Symbols",astral:"�[�-�]"},{name:"InAlphabetic_Presentation_Forms",bmp:"ﬀ-ﭏ"},{name:"InAnatolian_Hieroglyphs",astral:"�[�-�]"},{name:"InAncient_Greek_Musical_Notation",astral:"�[�-�]"},{name:"InAncient_Greek_Numbers",astral:"�[�-�]"},{name:"InAncient_Symbols",astral:"�[�-�]"},{name:"InArabic",bmp:"؀-ۿ"},{name:"InArabic_Extended_A",bmp:"ࢠ-ࣿ"},{name:"InArabic_Mathematical_Alphabetic_Symbols",astral:"�[�-�]"},{name:"InArabic_Presentation_Forms_A",bmp:"ﭐ-﷿"},{name:"InArabic_Presentation_Forms_B",bmp:"ﹰ-\ufeff"},{name:"InArabic_Supplement",bmp:"ݐ-ݿ"},{name:"InArmenian",bmp:"԰-֏"},{name:"InArrows",bmp:"←-⇿"},{name:"InAvestan",astral:"�[�-�]"},{name:"InBalinese",bmp:"ᬀ-᭿"},{name:"InBamum",bmp:"ꚠ-꛿"},{name:"InBamum_Supplement",astral:"�[�-�]"},{name:"InBasic_Latin",bmp:"\0-"},{name:"InBassa_Vah",astral:"�[�-�]"},{name:"InBatak",bmp:"ᯀ-᯿"},{name:"InBengali",bmp:"ঀ-৿"},{name:"InBhaiksuki",astral:"�[�-�]"},{name:"InBlock_Elements",bmp:"▀-▟"},{name:"InBopomofo",bmp:"㄀-ㄯ"},{name:"InBopomofo_Extended",bmp:"ㆠ-ㆿ"},{name:"InBox_Drawing",bmp:"─-╿"},{name:"InBrahmi",astral:"�[�-�]"},{name:"InBraille_Patterns",bmp:"⠀-⣿"},{name:"InBuginese",bmp:"ᨀ-᨟"},{name:"InBuhid",bmp:"ᝀ-᝟"},{name:"InByzantine_Musical_Symbols",astral:"�[�-�]"},{name:"InCJK_Compatibility",bmp:"㌀-㏿"},{name:"InCJK_Compatibility_Forms",bmp:"︰-﹏"},{name:"InCJK_Compatibility_Ideographs",bmp:"豈-﫿"},{name:"InCJK_Compatibility_Ideographs_Supplement",astral:"�[�-�]"},{name:"InCJK_Radicals_Supplement",bmp:"⺀-⻿"},{name:"InCJK_Strokes",bmp:"㇀-㇯"},{name:"InCJK_Symbols_And_Punctuation",bmp:"　-〿"},{name:"InCJK_Unified_Ideographs",bmp:"一-鿿"},{name:"InCJK_Unified_Ideographs_Extension_A",bmp:"㐀-䶿"},{name:"InCJK_Unified_Ideographs_Extension_B",astral:"[�-�][�-�]|�[�-�]"},{name:"InCJK_Unified_Ideographs_Extension_C",astral:"�[�-�]|[�-�][�-�]|�[�-�]"},{name:"InCJK_Unified_Ideographs_Extension_D",astral:"�[�-�]|�[�-�]"},{name:"InCJK_Unified_Ideographs_Extension_E",astral:"�[�-�]|[�-�][�-�]|�[�-�]"},{name:"InCJK_Unified_Ideographs_Extension_F",astral:"�[�-�]|[�-�][�-�]|�[�-�]"},{name:"InCarian",astral:"�[�-�]"},{name:"InCaucasian_Albanian",astral:"�[�-�]"},{name:"InChakma",astral:"�[�-�]"},{name:"InCham",bmp:"ꨀ-꩟"},{name:"InCherokee",bmp:"Ꭰ-᏿"},{name:"InCherokee_Supplement",bmp:"ꭰ-ꮿ"},{name:"InChess_Symbols",astral:"�[�-�]"},{name:"InCombining_Diacritical_Marks",bmp:"̀-ͯ"},{name:"InCombining_Diacritical_Marks_Extended",bmp:"᪰-᫿"},{name:"InCombining_Diacritical_Marks_For_Symbols",bmp:"⃐-⃿"},{name:"InCombining_Diacritical_Marks_Supplement",bmp:"᷀-᷿"},{name:"InCombining_Half_Marks",bmp:"︠-︯"},{name:"InCommon_Indic_Number_Forms",bmp:"꠰-꠿"},{name:"InControl_Pictures",bmp:"␀-␿"},{name:"InCoptic",bmp:"Ⲁ-⳿"},{name:"InCoptic_Epact_Numbers",astral:"�[�-�]"},{name:"InCounting_Rod_Numerals",astral:"�[�-�]"},{name:"InCuneiform",astral:"�[�-�]"},{name:"InCuneiform_Numbers_And_Punctuation",astral:"�[�-�]"},{name:"InCurrency_Symbols",bmp:"₠-⃏"},{name:"InCypriot_Syllabary",astral:"�[�-�]"},{name:"InCyrillic",bmp:"Ѐ-ӿ"},{name:"InCyrillic_Extended_A",bmp:"ⷠ-ⷿ"},{name:"InCyrillic_Extended_B",bmp:"Ꙁ-ꚟ"},{name:"InCyrillic_Extended_C",bmp:"ᲀ-᲏"},{name:"InCyrillic_Supplement",bmp:"Ԁ-ԯ"},{name:"InDeseret",astral:"�[�-�]"},{name:"InDevanagari",bmp:"ऀ-ॿ"},{name:"InDevanagari_Extended",bmp:"꣠-ꣿ"},{name:"InDingbats",bmp:"✀-➿"},{name:"InDogra",astral:"�[�-�]"},{name:"InDomino_Tiles",astral:"�[�-�]"},{name:"InDuployan",astral:"�[�-�]"},{name:"InEarly_Dynastic_Cuneiform",astral:"�[�-�]"},{name:"InEgyptian_Hieroglyphs",astral:"�[�-�]|�[�-�]"},{name:"InElbasan",astral:"�[�-�]"},{name:"InEmoticons",astral:"�[�-�]"},{name:"InEnclosed_Alphanumeric_Supplement",astral:"�[�-�]"},{name:"InEnclosed_Alphanumerics",bmp:"①-⓿"},{name:"InEnclosed_CJK_Letters_And_Months",bmp:"㈀-㋿"},{name:"InEnclosed_Ideographic_Supplement",astral:"�[�-�]"},{name:"InEthiopic",bmp:"ሀ-፿"},{name:"InEthiopic_Extended",bmp:"ⶀ-⷟"},{name:"InEthiopic_Extended_A",bmp:"꬀-꬯"},{name:"InEthiopic_Supplement",bmp:"ᎀ-᎟"},{name:"InGeneral_Punctuation",bmp:" -⁯"},{name:"InGeometric_Shapes",bmp:"■-◿"},{name:"InGeometric_Shapes_Extended",astral:"�[�-�]"},{name:"InGeorgian",bmp:"Ⴀ-ჿ"},{name:"InGeorgian_Extended",bmp:"Ა-Ჿ"},{name:"InGeorgian_Supplement",bmp:"ⴀ-⴯"},{name:"InGlagolitic",bmp:"Ⰰ-ⱟ"},{name:"InGlagolitic_Supplement",astral:"�[�-�]"},{name:"InGothic",astral:"�[�-�]"},{name:"InGrantha",astral:"�[�-�]"},{name:"InGreek_And_Coptic",bmp:"Ͱ-Ͽ"},{name:"InGreek_Extended",bmp:"ἀ-῿"},{name:"InGujarati",bmp:"઀-૿"},{name:"InGunjala_Gondi",astral:"�[�-�]"},{name:"InGurmukhi",bmp:"਀-੿"},{name:"InHalfwidth_And_Fullwidth_Forms",bmp:"＀-￯"},{name:"InHangul_Compatibility_Jamo",bmp:"㄰-㆏"},{name:"InHangul_Jamo",bmp:"ᄀ-ᇿ"},{name:"InHangul_Jamo_Extended_A",bmp:"ꥠ-꥿"},{name:"InHangul_Jamo_Extended_B",bmp:"ힰ-퟿"},{name:"InHangul_Syllables",bmp:"가-힯"},{name:"InHanifi_Rohingya",astral:"�[�-�]"},{name:"InHanunoo",bmp:"ᜠ-᜿"},{name:"InHatran",astral:"�[�-�]"},{name:"InHebrew",bmp:"֐-׿"},{name:"InHigh_Private_Use_Surrogates",bmp:"�-�"},{name:"InHigh_Surrogates",bmp:"�-�"},{name:"InHiragana",bmp:"぀-ゟ"},{name:"InIPA_Extensions",bmp:"ɐ-ʯ"},{name:"InIdeographic_Description_Characters",bmp:"⿰-⿿"},{name:"InIdeographic_Symbols_And_Punctuation",astral:"�[�-�]"},{name:"InImperial_Aramaic",astral:"�[�-�]"},{name:"InIndic_Siyaq_Numbers",astral:"�[�-�]"},{name:"InInscriptional_Pahlavi",astral:"�[�-�]"},{name:"InInscriptional_Parthian",astral:"�[�-�]"},{name:"InJavanese",bmp:"ꦀ-꧟"},{name:"InKaithi",astral:"�[�-�]"},{name:"InKana_Extended_A",astral:"�[�-�]"},{name:"InKana_Supplement",astral:"�[�-�]"},{name:"InKanbun",bmp:"㆐-㆟"},{name:"InKangxi_Radicals",bmp:"⼀-⿟"},{name:"InKannada",bmp:"ಀ-೿"},{name:"InKatakana",bmp:"゠-ヿ"},{name:"InKatakana_Phonetic_Extensions",bmp:"ㇰ-ㇿ"},{name:"InKayah_Li",bmp:"꤀-꤯"},{name:"InKharoshthi",astral:"�[�-�]"},{name:"InKhmer",bmp:"ក-៿"},{name:"InKhmer_Symbols",bmp:"᧠-᧿"},{name:"InKhojki",astral:"�[�-�]"},{name:"InKhudawadi",astral:"�[�-�]"},{name:"InLao",bmp:"຀-໿"},{name:"InLatin_1_Supplement",bmp:"-ÿ"},{name:"InLatin_Extended_A",bmp:"Ā-ſ"},{name:"InLatin_Extended_Additional",bmp:"Ḁ-ỿ"},{name:"InLatin_Extended_B",bmp:"ƀ-ɏ"},{name:"InLatin_Extended_C",bmp:"Ⱡ-Ɀ"},{name:"InLatin_Extended_D",bmp:"꜠-ꟿ"},{name:"InLatin_Extended_E",bmp:"ꬰ-꭯"},{name:"InLepcha",bmp:"ᰀ-ᱏ"},{name:"InLetterlike_Symbols",bmp:"℀-⅏"},{name:"InLimbu",bmp:"ᤀ-᥏"},{name:"InLinear_A",astral:"�[�-�]"},{name:"InLinear_B_Ideograms",astral:"�[�-�]"},{name:"InLinear_B_Syllabary",astral:"�[�-�]"},{name:"InLisu",bmp:"ꓐ-꓿"},{name:"InLow_Surrogates",bmp:"�-�"},{name:"InLycian",astral:"�[�-�]"},{name:"InLydian",astral:"�[�-�]"},{name:"InMahajani",astral:"�[�-�]"},{name:"InMahjong_Tiles",astral:"�[�-�]"},{name:"InMakasar",astral:"�[�-�]"},{name:"InMalayalam",bmp:"ഀ-ൿ"},{name:"InMandaic",bmp:"ࡀ-࡟"},{name:"InManichaean",astral:"�[�-�]"},{name:"InMarchen",astral:"�[�-�]"},{name:"InMasaram_Gondi",astral:"�[�-�]"},{name:"InMathematical_Alphanumeric_Symbols",astral:"�[�-�]"},{name:"InMathematical_Operators",bmp:"∀-⋿"},{name:"InMayan_Numerals",astral:"�[�-�]"},{name:"InMedefaidrin",astral:"�[�-�]"},{name:"InMeetei_Mayek",bmp:"ꯀ-꯿"},{name:"InMeetei_Mayek_Extensions",bmp:"ꫠ-꫿"},{name:"InMende_Kikakui",astral:"�[�-�]"},{name:"InMeroitic_Cursive",astral:"�[�-�]"},{name:"InMeroitic_Hieroglyphs",astral:"�[�-�]"},{name:"InMiao",astral:"�[�-�]"},{name:"InMiscellaneous_Mathematical_Symbols_A",bmp:"⟀-⟯"},{name:"InMiscellaneous_Mathematical_Symbols_B",bmp:"⦀-⧿"},{name:"InMiscellaneous_Symbols",bmp:"☀-⛿"},{name:"InMiscellaneous_Symbols_And_Arrows",bmp:"⬀-⯿"},{name:"InMiscellaneous_Symbols_And_Pictographs",astral:"�[�-�]|�[�-�]"},{name:"InMiscellaneous_Technical",bmp:"⌀-⏿"},{name:"InModi",astral:"�[�-�]"},{name:"InModifier_Tone_Letters",bmp:"꜀-ꜟ"},{name:"InMongolian",bmp:"᠀-᢯"},{name:"InMongolian_Supplement",astral:"�[�-�]"},{name:"InMro",astral:"�[�-�]"},{name:"InMultani",astral:"�[�-�]"},{name:"InMusical_Symbols",astral:"�[�-�]"},{name:"InMyanmar",bmp:"က-႟"},{name:"InMyanmar_Extended_A",bmp:"ꩠ-ꩿ"},{name:"InMyanmar_Extended_B",bmp:"ꧠ-꧿"},{name:"InNKo",bmp:"߀-߿"},{name:"InNabataean",astral:"�[�-�]"},{name:"InNew_Tai_Lue",bmp:"ᦀ-᧟"},{name:"InNewa",astral:"�[�-�]"},{name:"InNumber_Forms",bmp:"⅐-↏"},{name:"InNushu",astral:"�[�-�]"},{name:"InOgham",bmp:" -᚟"},{name:"InOl_Chiki",bmp:"᱐-᱿"},{name:"InOld_Hungarian",astral:"�[�-�]"},{name:"InOld_Italic",astral:"�[�-�]"},{name:"InOld_North_Arabian",astral:"�[�-�]"},{name:"InOld_Permic",astral:"�[�-�]"},{name:"InOld_Persian",astral:"�[�-�]"},{name:"InOld_Sogdian",astral:"�[�-�]"},{name:"InOld_South_Arabian",astral:"�[�-�]"},{name:"InOld_Turkic",astral:"�[�-�]"},{name:"InOptical_Character_Recognition",bmp:"⑀-⑟"},{name:"InOriya",bmp:"଀-୿"},{name:"InOrnamental_Dingbats",astral:"�[�-�]"},{name:"InOsage",astral:"�[�-�]"},{name:"InOsmanya",astral:"�[�-�]"},{name:"InPahawh_Hmong",astral:"�[�-�]"},{name:"InPalmyrene",astral:"�[�-�]"},{name:"InPau_Cin_Hau",astral:"�[�-�]"},{name:"InPhags_Pa",bmp:"ꡀ-꡿"},{name:"InPhaistos_Disc",astral:"�[�-�]"},{name:"InPhoenician",astral:"�[�-�]"},{name:"InPhonetic_Extensions",bmp:"ᴀ-ᵿ"},{name:"InPhonetic_Extensions_Supplement",bmp:"ᶀ-ᶿ"},{name:"InPlaying_Cards",astral:"�[�-�]"},{name:"InPrivate_Use_Area",bmp:"-"},{name:"InPsalter_Pahlavi",astral:"�[�-�]"},{name:"InRejang",bmp:"ꤰ-꥟"},{name:"InRumi_Numeral_Symbols",astral:"�[�-�]"},{name:"InRunic",bmp:"ᚠ-᛿"},{name:"InSamaritan",bmp:"ࠀ-࠿"},{name:"InSaurashtra",bmp:"ꢀ-꣟"},{name:"InSharada",astral:"�[�-�]"},{name:"InShavian",astral:"�[�-�]"},{name:"InShorthand_Format_Controls",astral:"�[�-�]"},{name:"InSiddham",astral:"�[�-�]"},{name:"InSinhala",bmp:"඀-෿"},{name:"InSinhala_Archaic_Numbers",astral:"�[�-�]"},{name:"InSmall_Form_Variants",bmp:"﹐-﹯"},{name:"InSogdian",astral:"�[�-�]"},{name:"InSora_Sompeng",astral:"�[�-�]"},{name:"InSoyombo",astral:"�[�-�]"},{name:"InSpacing_Modifier_Letters",bmp:"ʰ-˿"},{name:"InSpecials",bmp:"￰-￿"},{name:"InSundanese",bmp:"ᮀ-ᮿ"},{name:"InSundanese_Supplement",bmp:"᳀-᳏"},{name:"InSuperscripts_And_Subscripts",bmp:"⁰-₟"},{name:"InSupplemental_Arrows_A",bmp:"⟰-⟿"},{name:"InSupplemental_Arrows_B",bmp:"⤀-⥿"},{name:"InSupplemental_Arrows_C",astral:"�[�-�]"},{name:"InSupplemental_Mathematical_Operators",bmp:"⨀-⫿"},{name:"InSupplemental_Punctuation",bmp:"⸀-⹿"},{name:"InSupplemental_Symbols_And_Pictographs",astral:"�[�-�]"},{name:"InSupplementary_Private_Use_Area_A",astral:"[�-�][�-�]"},{name:"InSupplementary_Private_Use_Area_B",astral:"[�-�][�-�]"},{name:"InSutton_SignWriting",astral:"�[�-�]"},{name:"InSyloti_Nagri",bmp:"ꠀ-꠯"},{name:"InSyriac",bmp:"܀-ݏ"},{name:"InSyriac_Supplement",bmp:"ࡠ-࡯"},{name:"InTagalog",bmp:"ᜀ-ᜟ"},{name:"InTagbanwa",bmp:"ᝠ-᝿"},{name:"InTags",astral:"�[�-�]"},{name:"InTai_Le",bmp:"ᥐ-᥿"},{name:"InTai_Tham",bmp:"ᨠ-᪯"},{name:"InTai_Viet",bmp:"ꪀ-꫟"},{name:"InTai_Xuan_Jing_Symbols",astral:"�[�-�]"},{name:"InTakri",astral:"�[�-�]"},{name:"InTamil",bmp:"஀-௿"},{name:"InTangut",astral:"[�-�][�-�]"},{name:"InTangut_Components",astral:"�[�-�]"},{name:"InTelugu",bmp:"ఀ-౿"},{name:"InThaana",bmp:"ހ-޿"},{name:"InThai",bmp:"฀-๿"},{name:"InTibetan",bmp:"ༀ-࿿"},{name:"InTifinagh",bmp:"ⴰ-⵿"},{name:"InTirhuta",astral:"�[�-�]"},{name:"InTransport_And_Map_Symbols",astral:"�[�-�]"},{name:"InUgaritic",astral:"�[�-�]"},{name:"InUnified_Canadian_Aboriginal_Syllabics",bmp:"᐀-ᙿ"},{name:"InUnified_Canadian_Aboriginal_Syllabics_Extended",bmp:"ᢰ-᣿"},{name:"InVai",bmp:"ꔀ-꘿"},{name:"InVariation_Selectors",bmp:"︀-️"},{name:"InVariation_Selectors_Supplement",astral:"�[�-�]"},{name:"InVedic_Extensions",bmp:"᳐-᳿"},{name:"InVertical_Forms",bmp:"︐-︟"},{name:"InWarang_Citi",astral:"�[�-�]"},{name:"InYi_Radicals",bmp:"꒐-꓏"},{name:"InYi_Syllables",bmp:"ꀀ-꒏"},{name:"InYijing_Hexagram_Symbols",bmp:"䷀-䷿"},{name:"InZanabazar_Square",astral:"�[�-�]"}]},function(e,t,n){"use strict";var i=n(37);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(n(441)),r=function(e){if(!e.addUnicodeData)throw new ReferenceError("Unicode Base must be loaded before Unicode Categories");e.addUnicodeData(o.default)};t.default=r,e.exports=t.default},function(e,t){e.exports=[{name:"C",alias:"Other",isBmpLast:!0,bmp:"\0--­͸͹΀-΃΋΍΢԰՗՘֋֌֐׈-׏׫-׮׵-؅؜؝۝܎܏݋݌޲-޿߻߼࠮࠯࠿࡜࡝࡟࡫-࢟ࢵࢾ-࣒࣢঄঍঎঑঒঩঱঳-঵঺঻৅৆৉৊৏-৖৘-৛৞৤৥৿਀਄਋-਎਑਒਩਱਴਷਺਻਽੃-੆੉੊੎-੐੒-੘੝੟-੥੷-઀઄઎઒઩઱઴઺઻૆૊૎૏૑-૟૤૥૲-૸଀଄଍଎଑଒଩଱଴଺଻୅୆୉୊୎-୕୘-୛୞୤୥୸-஁஄஋-஍஑஖-஘஛஝஠-஢஥-஧஫-஭஺-஽௃-௅௉௎௏௑-௖௘-௥௻-௿఍఑఩఺-఼౅౉౎-౔౗౛-౟౤౥౰-౷಍಑಩಴಺಻೅೉೎-೔೗-ೝ೟೤೥೰ೳ-೿ഄ഍഑൅൉൐-൓൤൥඀ඁ඄඗-඙඲඼඾඿෇-෉෋-෎෕෗෠-෥෰෱෵-฀฻-฾๜-຀຃຅ຆຉ຋ຌຎ-ຓຘຠ຤຦ຨຩຬ຺຾຿໅໇໎໏໚໛໠-໿཈཭-཰྘྽࿍࿛-࿿჆჈-჌჎჏቉቎቏቗቙቞቟኉኎኏኱኶኷኿዁዆዇዗጑጖጗፛፜፽-፿᎚-᎟᏶᏷᏾᏿᚝-᚟᛹-᛿ᜍ᜕-ᜟ᜷-᜿᝔-᝟᝭᝱᝴-᝿៞៟៪-៯៺-៿᠎᠏᠚-᠟᡹-᡿᢫-᢯᣶-᣿᤟᤬-᤯᤼-᤿᥁-᥃᥮᥯᥵-᥿᦬-᦯᧊-᧏᧛-᧝᨜᨝᩟᩽᩾᪊-᪏᪚-᪟᪮᪯ᪿ-᫿ᭌ-᭏᭽-᭿᯴-᯻᰸-᰺᱊-᱌Ᲊ-᲏᲻᲼᳈-᳏ᳺ-᳿᷺἖἗἞἟὆὇὎὏὘὚὜὞὾὿᾵῅῔῕῜῰῱῵῿​-‏‪-‮⁠-⁯⁲⁳₏₝-₟⃀-⃏⃱-⃿↌-↏␧-␿⑋-⑟⭴⭵⮖⮗⯉⯿Ⱟⱟ⳴-⳸⴦⴨-⴬⴮⴯⵨-⵮⵱-⵾⶗-⶟⶧⶯⶷⶿⷇⷏⷗⷟⹏-⹿⺚⻴-⻿⿖-⿯⿼-⿿぀゗゘㄀-㄄㄰㆏ㆻ-ㆿ㇤-㇯㈟㋿䶶-䶿鿰-鿿꒍-꒏꓇-꓏꘬-꘿꛸-꛿Ꞻ-ꟶ꠬-꠯꠺-꠿꡸-꡿꣆-꣍꣚-꣟꥔-꥞꥽-꥿꧎꧚-꧝꧿꨷-꨿꩎꩏꩚꩛꫃-꫚꫷-꬀꬇꬈꬏꬐꬗-꬟꬧꬯ꭦ-꭯꯮꯯꯺-꯿힤-힯퟇-퟊퟼-﩮﩯﫚-﫿﬇-﬒﬘-﬜﬷﬽﬿﭂﭅﯂-﯒﵀-﵏﶐﶑﷈-﷯﷾﷿︚-︟﹓﹧﹬-﹯﹵﻽-＀﾿-￁￈￉￐￑￘￙￝-￟￧￯-￻￾￿",astral:"�[�������-��-��-��-���-��-��-��-��-��-��-��-��-���-��-�]|�[���-��-��-��-��-��-��-��-��-�]|�[�����-�����-��-���-��-��-��-��-�����-������-��-��-��-��-��-��-����-��-��-��-�]|�[�-��-��-��-��-��-��-��-�]|�[�-��-���-��-��-���-��-�����-���-������-��-��-�����������������-��-����-��-�]|�[���-��-��-����-��-��-��-��-��-����-��-�]|�[�-��-��-��-����-��-�]|�[���-��-�����-����-����-��-������-��-��-�]|�[�-�]|�[��-��-�]|[���-��-��-����-�����-��-��-�][�-�]|�[�-�]|�[�-�]|�[�-���-��-����-��-����-��-�]|�[�-��-��-��-��-��-�]|�[�-�]|�[�-�]|�[�-��-�]|�[�-��-��-����-�]|�[�-����-��-��-��-��-��-�]|�[���������������������-������]|�[�-���-�]|�[������-�]|�[���-��-��-��-�]|�[�-��-�����������-��-�����������������������-����-��-�]|�[�-��-������-��-��-��-��-��-��-��-��-�]|�[�-��-��-��-��-�]|�[�-��-��-��-��-��-�����-���-��-��-��-��-�]|�[�-�]|�[�-�]|�[��]|�[�-�]|�[�-�]|�[�-�]|�[�-��-�]"},{name:"Cc",alias:"Control",bmp:"\0--"},{name:"Cf",alias:"Format",bmp:"­؀-؅؜۝܏࣢᠎​-‏‪-‮⁠-⁤⁦-⁯\ufeff￹-￻",astral:"�[��]|�[�-�]|�[�-�]|�[��-�]"},{name:"Cn",alias:"Unassigned",bmp:"͸͹΀-΃΋΍΢԰՗՘֋֌֐׈-׏׫-׮׵-׿؝܎݋݌޲-޿߻߼࠮࠯࠿࡜࡝࡟࡫-࢟ࢵࢾ-࣒঄঍঎঑঒঩঱঳-঵঺঻৅৆৉৊৏-৖৘-৛৞৤৥৿਀਄਋-਎਑਒਩਱਴਷਺਻਽੃-੆੉੊੎-੐੒-੘੝੟-੥੷-઀઄઎઒઩઱઴઺઻૆૊૎૏૑-૟૤૥૲-૸଀଄଍଎଑଒଩଱଴଺଻୅୆୉୊୎-୕୘-୛୞୤୥୸-஁஄஋-஍஑஖-஘஛஝஠-஢஥-஧஫-஭஺-஽௃-௅௉௎௏௑-௖௘-௥௻-௿఍఑఩఺-఼౅౉౎-౔౗౛-౟౤౥౰-౷಍಑಩಴಺಻೅೉೎-೔೗-ೝ೟೤೥೰ೳ-೿ഄ഍഑൅൉൐-൓൤൥඀ඁ඄඗-඙඲඼඾඿෇-෉෋-෎෕෗෠-෥෰෱෵-฀฻-฾๜-຀຃຅ຆຉ຋ຌຎ-ຓຘຠ຤຦ຨຩຬ຺຾຿໅໇໎໏໚໛໠-໿཈཭-཰྘྽࿍࿛-࿿჆჈-჌჎჏቉቎቏቗቙቞቟኉኎኏኱኶኷኿዁዆዇዗጑጖጗፛፜፽-፿᎚-᎟᏶᏷᏾᏿᚝-᚟᛹-᛿ᜍ᜕-ᜟ᜷-᜿᝔-᝟᝭᝱᝴-᝿៞៟៪-៯៺-៿᠏᠚-᠟᡹-᡿᢫-᢯᣶-᣿᤟᤬-᤯᤼-᤿᥁-᥃᥮᥯᥵-᥿᦬-᦯᧊-᧏᧛-᧝᨜᨝᩟᩽᩾᪊-᪏᪚-᪟᪮᪯ᪿ-᫿ᭌ-᭏᭽-᭿᯴-᯻᰸-᰺᱊-᱌Ᲊ-᲏᲻᲼᳈-᳏ᳺ-᳿᷺἖἗἞἟὆὇὎὏὘὚὜὞὾὿᾵῅῔῕῜῰῱῵῿⁥⁲⁳₏₝-₟⃀-⃏⃱-⃿↌-↏␧-␿⑋-⑟⭴⭵⮖⮗⯉⯿Ⱟⱟ⳴-⳸⴦⴨-⴬⴮⴯⵨-⵮⵱-⵾⶗-⶟⶧⶯⶷⶿⷇⷏⷗⷟⹏-⹿⺚⻴-⻿⿖-⿯⿼-⿿぀゗゘㄀-㄄㄰㆏ㆻ-ㆿ㇤-㇯㈟㋿䶶-䶿鿰-鿿꒍-꒏꓇-꓏꘬-꘿꛸-꛿Ꞻ-ꟶ꠬-꠯꠺-꠿꡸-꡿꣆-꣍꣚-꣟꥔-꥞꥽-꥿꧎꧚-꧝꧿꨷-꨿꩎꩏꩚꩛꫃-꫚꫷-꬀꬇꬈꬏꬐꬗-꬟꬧꬯ꭦ-꭯꯮꯯꯺-꯿힤-힯퟇-퟊퟼-퟿﩮﩯﫚-﫿﬇-﬒﬘-﬜﬷﬽﬿﭂﭅﯂-﯒﵀-﵏﶐﶑﷈-﷯﷾﷿︚-︟﹓﹧﹬-﹯﹵﻽﻾＀﾿-￁￈￉￐￑￘￙￝-￟￧￯-￸￾￿",astral:"�[�������-��-��-��-���-��-��-��-��-��-��-��-��-���-��-�]|�[���-��-��-��-��-��-��-��-��-�]|�[�����-�����-��-���-��-��-��-��-�����-������-��-��-��-��-��-��-����-��-��-��-�]|�[�-��-��-��-��-��-��-��-�]|�[�-��-��-����-��-���-��-�����-���-������-��-��-�����������������-��-����-��-�]|�[���-��-��-����-��-��-��-��-��-����-��-�]|�[�-��-��-��-����-��-�]|�[���-��-�����-����-����-��-������-��-��-�]|�[�-�]|�[��-��-�]|[���-��-��-����-�����-��-��-�][�-�]|�[�-�]|�[�-�]|�[�-���-��-����-��-����-��-�]|�[�-��-��-��-��-��-�]|�[�-�]|�[�-�]|�[�-��-�]|�[�-��-��-����-�]|�[�-����-��-��-��-��-�]|�[���������������������-������]|�[�-���-�]|�[������-�]|�[���-��-��-��-�]|�[�-��-�����������-��-�����������������������-����-��-�]|�[�-��-������-��-��-��-��-��-��-��-��-�]|�[�-��-��-��-��-�]|�[�-��-��-��-��-��-�����-���-��-��-��-��-�]|�[�-�]|�[�-�]|�[��]|�[�-�]|�[�-�]|�[�-�]|�[��-��-��-�]|[��][��]"},{name:"Co",alias:"Private_Use",bmp:"-",astral:"[�-��-�][�-�]|[��][�-�]"},{name:"Cs",alias:"Surrogate",bmp:"�-�"},{name:"L",alias:"Letter",bmp:"A-Za-zªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࢠ-ࢴࢶ-ࢽऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛱ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢄᢇ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎↃↄⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々〆〱-〵〻〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿯ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛥꜗ-ꜟꜢ-ꞈꞋ-ꞹꟷ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭥꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ﬀ-ﬆﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼＡ-Ｚａ-ｚｦ-ﾾￂ-ￇￊ-ￏￒ-ￗￚ-ￜ",astral:"�[�-��-��-����-��-��-��-��-��-��-��-��-��-��-��-�]|�[�-��-��-��-��-��-��-��-�]|�[�-���-�����-��-��-��-����-��-��-�����-��-��-��-��-��-��-��-��-��-��-�]|�[�-��-��-��-��-���-�]|�[�-��-��-��-���-���-��-����-��-��-���-��-��-��-��-����-��-����-����-�]|�[�-��-��-�����-��-��-���-��-�]|�[�-��-����-����-��-���-�]|�[�-��-���-��-����-���-����-���-�]|�[�-�]|�[�-�]|[��-��-��-��-��-�][�-�]|�[�-�]|�[�-�]|�[�-��-��-��-��-��-��-�]|�[�-��-���-���]|�[�-�]|�[�-�]|�[�-��-�]|�[�-��-��-��-�]|�[�-��-�������-��-���-��-��-��-��-��-��-��-���-��-��-��-��-��-��-��-��-��-��-��-��-�]|�[�-��-�]|�[�-��-������-��-��������-�������������-��-��-��-���-��-��-��-��-�]|�[�-��-�]|�[�-��-�]|�[�-��-�]|�[�-��-�]|�[�-�]|�[�-�]"},{name:"LC",alias:"Cased_Letter",bmp:"A-Za-zµÀ-ÖØ-öø-ƺƼ-ƿǄ-ʓʕ-ʯͰ-ͳͶͷͻ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՠ-ֈႠ-ჅჇჍა-ჺჽ-ჿᎠ-Ᏽᏸ-ᏽᲀ-ᲈᲐ-ᲺᲽ-Ჿᴀ-ᴫᵫ-ᵷᵹ-ᶚḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℴℹℼ-ℿⅅ-ⅉⅎↃↄⰀ-Ⱞⰰ-ⱞⱠ-ⱻⱾ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭꙀ-ꙭꚀ-ꚛꜢ-ꝯꝱ-ꞇꞋ-ꞎꞐ-ꞹꟺꬰ-ꭚꭠ-ꭥꭰ-ꮿﬀ-ﬆﬓ-ﬗＡ-Ｚａ-ｚ",astral:"�[�-��-��-�]|�[�-��-�]|�[�-�]|�[�-�]|�[�-��-�������-��-���-��-��-��-��-��-��-��-���-��-��-��-��-��-��-��-��-��-��-��-��-�]|�[�-�]"},{name:"Ll",alias:"Lowercase_Letter",bmp:"a-zµß-öø-ÿāăąćĉċčďđēĕėęěĝğġģĥħĩīĭįıĳĵķĸĺļľŀłńņňŉŋōŏőœŕŗřśŝşšţťŧũūŭůűųŵŷźżž-ƀƃƅƈƌƍƒƕƙ-ƛƞơƣƥƨƪƫƭưƴƶƹƺƽ-ƿǆǉǌǎǐǒǔǖǘǚǜǝǟǡǣǥǧǩǫǭǯǰǳǵǹǻǽǿȁȃȅȇȉȋȍȏȑȓȕȗșțȝȟȡȣȥȧȩȫȭȯȱȳ-ȹȼȿɀɂɇɉɋɍɏ-ʓʕ-ʯͱͳͷͻ-ͽΐά-ώϐϑϕ-ϗϙϛϝϟϡϣϥϧϩϫϭϯ-ϳϵϸϻϼа-џѡѣѥѧѩѫѭѯѱѳѵѷѹѻѽѿҁҋҍҏґғҕҗҙқҝҟҡңҥҧҩҫҭүұҳҵҷҹһҽҿӂӄӆӈӊӌӎӏӑӓӕӗәӛӝӟӡӣӥӧөӫӭӯӱӳӵӷӹӻӽӿԁԃԅԇԉԋԍԏԑԓԕԗԙԛԝԟԡԣԥԧԩԫԭԯՠ-ֈა-ჺჽ-ჿᏸ-ᏽᲀ-ᲈᴀ-ᴫᵫ-ᵷᵹ-ᶚḁḃḅḇḉḋḍḏḑḓḕḗḙḛḝḟḡḣḥḧḩḫḭḯḱḳḵḷḹḻḽḿṁṃṅṇṉṋṍṏṑṓṕṗṙṛṝṟṡṣṥṧṩṫṭṯṱṳṵṷṹṻṽṿẁẃẅẇẉẋẍẏẑẓẕ-ẝẟạảấầẩẫậắằẳẵặẹẻẽếềểễệỉịọỏốồổỗộớờởỡợụủứừửữựỳỵỷỹỻỽỿ-ἇἐ-ἕἠ-ἧἰ-ἷὀ-ὅὐ-ὗὠ-ὧὰ-ώᾀ-ᾇᾐ-ᾗᾠ-ᾧᾰ-ᾴᾶᾷιῂ-ῄῆῇῐ-ΐῖῗῠ-ῧῲ-ῴῶῷℊℎℏℓℯℴℹℼℽⅆ-ⅉⅎↄⰰ-ⱞⱡⱥⱦⱨⱪⱬⱱⱳⱴⱶ-ⱻⲁⲃⲅⲇⲉⲋⲍⲏⲑⲓⲕⲗⲙⲛⲝⲟⲡⲣⲥⲧⲩⲫⲭⲯⲱⲳⲵⲷⲹⲻⲽⲿⳁⳃⳅⳇⳉⳋⳍⳏⳑⳓⳕⳗⳙⳛⳝⳟⳡⳣⳤⳬⳮⳳⴀ-ⴥⴧⴭꙁꙃꙅꙇꙉꙋꙍꙏꙑꙓꙕꙗꙙꙛꙝꙟꙡꙣꙥꙧꙩꙫꙭꚁꚃꚅꚇꚉꚋꚍꚏꚑꚓꚕꚗꚙꚛꜣꜥꜧꜩꜫꜭꜯ-ꜱꜳꜵꜷꜹꜻꜽꜿꝁꝃꝅꝇꝉꝋꝍꝏꝑꝓꝕꝗꝙꝛꝝꝟꝡꝣꝥꝧꝩꝫꝭꝯꝱ-ꝸꝺꝼꝿꞁꞃꞅꞇꞌꞎꞑꞓ-ꞕꞗꞙꞛꞝꞟꞡꞣꞥꞧꞩꞯꞵꞷꞹꟺꬰ-ꭚꭠ-ꭥꭰ-ꮿﬀ-ﬆﬓ-ﬗａ-ｚ",astral:"�[�-��-�]|�[�-�]|�[�-�]|�[�-�]|�[�-��-��-��-��-���-��-��-��-��-��-��-��-��-��-��-��-��-��-��-��-��-��-��-��-��-��]|�[�-�]"},{name:"Lm",alias:"Modifier_Letter",bmp:"ʰ-ˁˆ-ˑˠ-ˤˬˮʹͺՙـۥۦߴߵߺࠚࠤࠨॱๆໆჼៗᡃᪧᱸ-ᱽᴬ-ᵪᵸᶛ-ᶿⁱⁿₐ-ₜⱼⱽⵯⸯ々〱-〵〻ゝゞー-ヾꀕꓸ-ꓽꘌꙿꚜꚝꜗ-ꜟꝰꞈꟸꟹꧏꧦꩰꫝꫳꫴꭜ-ꭟｰﾞﾟ",astral:"�[�-�]|�[�-���]"},{name:"Lo",alias:"Other_Letter",bmp:"ªºƻǀ-ǃʔא-תׯ-ײؠ-ؿف-يٮٯٱ-ۓەۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪࠀ-ࠕࡀ-ࡘࡠ-ࡪࢠ-ࢴࢶ-ࢽऄ-हऽॐक़-ॡॲ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๅກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎᄀ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛱ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៜᠠ-ᡂᡄ-ᡸᢀ-ᢄᢇ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱷᳩ-ᳬᳮ-ᳱᳵᳶℵ-ℸⴰ-ⵧⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ〆〼ぁ-ゖゟァ-ヺヿㄅ-ㄯㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿯ꀀ-ꀔꀖ-ꒌꓐ-ꓷꔀ-ꘋꘐ-ꘟꘪꘫꙮꚠ-ꛥꞏꟷꟻ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧠ-ꧤꧧ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩯꩱ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛꫜꫠ-ꫪꫲꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎יִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼｦ-ｯｱ-ﾝﾠ-ﾾￂ-ￇￊ-ￏￒ-ￗￚ-ￜ",astral:"�[�-��-��-����-��-��-��-��-��-��-��-��-��-��-��-�]|�[�-��-��-��-��-��-�]|�[�-���-�����-��-��-��-����-��-��-�����-��-��-��-��-��-��-��-��-��-��-�]|�[�-��-��-���-�]|�[�-��-��-��-���-���-��-����-��-��-���-��-��-��-��-����-��-����-����-�]|�[�-��-��-�����-��-��-���-��-�]|�[�-����-����-��-���-�]|�[�-��-���-��-����-���-����-���-�]|�[�-�]|�[�-�]|[��-��-��-��-��-�][�-�]|�[�-�]|�[�-�]|�[�-��-��-��-��-��-�]|�[�-��]|�[�-�]|�[�-�]|�[�-��-�]|�[�-��-��-��-�]|�[�-�]|�[�-��-������-��-��������-�������������-��-��-��-���-��-��-��-��-�]|�[�-��-�]|�[�-��-�]|�[�-��-�]|�[�-��-�]|�[�-�]|�[�-�]"},{name:"Lt",alias:"Titlecase_Letter",bmp:"ǅǈǋǲᾈ-ᾏᾘ-ᾟᾨ-ᾯᾼῌῼ"},{name:"Lu",alias:"Uppercase_Letter",bmp:"A-ZÀ-ÖØ-ÞĀĂĄĆĈĊČĎĐĒĔĖĘĚĜĞĠĢĤĦĨĪĬĮİĲĴĶĹĻĽĿŁŃŅŇŊŌŎŐŒŔŖŘŚŜŞŠŢŤŦŨŪŬŮŰŲŴŶŸŹŻŽƁƂƄƆƇƉ-ƋƎ-ƑƓƔƖ-ƘƜƝƟƠƢƤƦƧƩƬƮƯƱ-ƳƵƷƸƼǄǇǊǍǏǑǓǕǗǙǛǞǠǢǤǦǨǪǬǮǱǴǶ-ǸǺǼǾȀȂȄȆȈȊȌȎȐȒȔȖȘȚȜȞȠȢȤȦȨȪȬȮȰȲȺȻȽȾɁɃ-ɆɈɊɌɎͰͲͶͿΆΈ-ΊΌΎΏΑ-ΡΣ-ΫϏϒ-ϔϘϚϜϞϠϢϤϦϨϪϬϮϴϷϹϺϽ-ЯѠѢѤѦѨѪѬѮѰѲѴѶѸѺѼѾҀҊҌҎҐҒҔҖҘҚҜҞҠҢҤҦҨҪҬҮҰҲҴҶҸҺҼҾӀӁӃӅӇӉӋӍӐӒӔӖӘӚӜӞӠӢӤӦӨӪӬӮӰӲӴӶӸӺӼӾԀԂԄԆԈԊԌԎԐԒԔԖԘԚԜԞԠԢԤԦԨԪԬԮԱ-ՖႠ-ჅჇჍᎠ-ᏵᲐ-ᲺᲽ-ᲿḀḂḄḆḈḊḌḎḐḒḔḖḘḚḜḞḠḢḤḦḨḪḬḮḰḲḴḶḸḺḼḾṀṂṄṆṈṊṌṎṐṒṔṖṘṚṜṞṠṢṤṦṨṪṬṮṰṲṴṶṸṺṼṾẀẂẄẆẈẊẌẎẐẒẔẞẠẢẤẦẨẪẬẮẰẲẴẶẸẺẼẾỀỂỄỆỈỊỌỎỐỒỔỖỘỚỜỞỠỢỤỦỨỪỬỮỰỲỴỶỸỺỼỾἈ-ἏἘ-ἝἨ-ἯἸ-ἿὈ-ὍὙὛὝὟὨ-ὯᾸ-ΆῈ-ΉῘ-ΊῨ-ῬῸ-Ώℂℇℋ-ℍℐ-ℒℕℙ-ℝℤΩℨK-ℭℰ-ℳℾℿⅅↃⰀ-ⰮⱠⱢ-ⱤⱧⱩⱫⱭ-ⱰⱲⱵⱾ-ⲀⲂⲄⲆⲈⲊⲌⲎⲐⲒⲔⲖⲘⲚⲜⲞⲠⲢⲤⲦⲨⲪⲬⲮⲰⲲⲴⲶⲸⲺⲼⲾⳀⳂⳄⳆⳈⳊⳌⳎⳐⳒⳔⳖⳘⳚⳜⳞⳠⳢⳫⳭⳲꙀꙂꙄꙆꙈꙊꙌꙎꙐꙒꙔꙖꙘꙚꙜꙞꙠꙢꙤꙦꙨꙪꙬꚀꚂꚄꚆꚈꚊꚌꚎꚐꚒꚔꚖꚘꚚꜢꜤꜦꜨꜪꜬꜮꜲꜴꜶꜸꜺꜼꜾꝀꝂꝄꝆꝈꝊꝌꝎꝐꝒꝔꝖꝘꝚꝜꝞꝠꝢꝤꝦꝨꝪꝬꝮꝹꝻꝽꝾꞀꞂꞄꞆꞋꞍꞐꞒꞖꞘꞚꞜꞞꞠꞢꞤꞦꞨꞪ-ꞮꞰ-ꞴꞶꞸＡ-Ｚ",astral:"�[�-��-�]|�[�-�]|�[�-�]|�[�-�]|�[�-��-��-��������-��-��-����-��-��-����-��-���-��-��-��-��-��-��-��-��-��-��-��-��]|�[�-�]"},{name:"M",alias:"Mark",bmp:"̀-ͯ҃-҉֑-ׇֽֿׁׂׅׄؐ-ًؚ-ٰٟۖ-ۜ۟-۪ۤۧۨ-ܑۭܰ-݊ަ-ް߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࣓-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣঁ-ঃ়া-ৄেৈো-্ৗৢৣ৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑੰੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୢୣஂா-ூெ-ைொ-்ௗఀ-ఄా-ౄె-ైొ-్ౕౖౢౣಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣංඃ්ා-ුූෘ-ෟෲෳัิ-ฺ็-๎ັິ-ູົຼ່-ໍ༹༘༙༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏႚ-ႝ፝-፟ᜒ-᜔ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝᠋-᠍ᢅᢆᢩᤠ-ᤫᤰ-᤻ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼᪰-᪾ᬀ-ᬄ᬴-᭄᭫-᭳ᮀ-ᮂᮡ-ᮭ᯦-᯳ᰤ-᰷᳐-᳔᳒-᳨᳭ᳲ-᳴᳷-᳹᷀-᷹᷻-᷿⃐-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꙯-꙲ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧꢀꢁꢴ-ꣅ꣠-꣱ꣿꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀ꧥꨩ-ꨶꩃꩌꩍꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭ﬞ︀-️︠-︯",astral:"�[���-�]|�[�-����-��-����]|�[�-��-�]|�[�-��-��-��-��-��-�����-��-��-��-���-��-����-����-�����-��-�]|�[�-���-��-��-����-��-��-�]|�[�-��-��-��-���-��-�]|�[�-��-��-��-��-�����-���-����-��-�]|�[�-��-�]|�[�-��-�]|�[��]|�[�-��-��-��-��-��-�]|�[�-��-����-��-�]|�[�-��-��-����-�]|�[�-��-�]|�[�-�]"},{name:"Mc",alias:"Spacing_Mark",bmp:"ःऻा-ीॉ-ौॎॏংঃা-ীেৈোৌৗਃਾ-ੀઃા-ીૉોૌଂଃାୀେୈୋୌୗாிுூெ-ைொ-ௌௗఁ-ఃు-ౄಂಃಾೀ-ೄೇೈೊೋೕೖംഃാ-ീെ-ൈൊ-ൌൗංඃා-ෑෘ-ෟෲෳ༾༿ཿါာေးျြၖၗၢ-ၤၧ-ၭႃႄႇ-ႌႏႚ-ႜាើ-ៅះៈᤣ-ᤦᤩ-ᤫᤰᤱᤳ-ᤸᨙᨚᩕᩗᩡᩣᩤᩭ-ᩲᬄᬵᬻᬽ-ᭁᭃ᭄ᮂᮡᮦᮧ᮪ᯧᯪ-ᯬᯮ᯲᯳ᰤ-ᰫᰴᰵ᳡ᳲᳳ᳷〮〯ꠣꠤꠧꢀꢁꢴ-ꣃꥒ꥓ꦃꦴꦵꦺꦻꦽ-꧀ꨯꨰꨳꨴꩍꩻꩽꫫꫮꫯꫵꯣꯤꯦꯧꯩꯪ꯬",astral:"�[����-��������-����-�����-������-����-����]|�[�-�����-���-���-��-���-�����������]|�[�-������]|�[������-������]|�[�-�]|�[���-�]"},{name:"Me",alias:"Enclosing_Mark",bmp:"҈҉᪾⃝-⃠⃢-⃤꙰-꙲"},{name:"Mn",alias:"Nonspacing_Mark",bmp:"̀-ͯ҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-ٰٟۖ-ۜ۟-۪ۤۧۨ-ܑۭܰ-݊ަ-ް߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࣓-ࣣ࣡-ंऺ़ु-ै्॑-ॗॢॣঁ়ু-ৄ্ৢৣ৾ਁਂ਼ੁੂੇੈੋ-੍ੑੰੱੵઁં઼ુ-ૅેૈ્ૢૣૺ-૿ଁ଼ିୁ-ୄ୍ୖୢୣஂீ்ఀఄా-ీె-ైొ-్ౕౖౢౣಁ಼ಿೆೌ್ೢೣഀഁ഻഼ു-ൄ്ൢൣ්ි-ුූัิ-ฺ็-๎ັິ-ູົຼ່-ໍཱ༹༘༙༵༷-ཾྀ-྄྆྇ྍ-ྗྙ-ྼ࿆ိ-ူဲ-့္်ွှၘၙၞ-ၠၱ-ၴႂႅႆႍႝ፝-፟ᜒ-᜔ᜲ-᜴ᝒᝓᝲᝳ឴឵ិ-ួំ៉-៓៝᠋-᠍ᢅᢆᢩᤠ-ᤢᤧᤨᤲ᤹-᤻ᨘᨗᨛᩖᩘ-ᩞ᩠ᩢᩥ-ᩬᩳ-᩿᩼᪰-᪽ᬀ-ᬃ᬴ᬶ-ᬺᬼᭂ᭫-᭳ᮀᮁᮢ-ᮥᮨᮩ᮫-ᮭ᯦ᯨᯩᯭᯯ-ᯱᰬ-ᰳᰶ᰷᳐-᳔᳒-᳢᳠-᳨᳭᳴᳸᳹᷀-᷹᷻-᷿⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〭꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠥꠦ꣄ꣅ꣠-꣱ꣿꤦ-꤭ꥇ-ꥑꦀ-ꦂ꦳ꦶ-ꦹꦼꧥꨩ-ꨮꨱꨲꨵꨶꩃꩌꩼꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫬꫭ꫶ꯥꯨ꯭ﬞ︀-️︠-︯",astral:"�[���-�]|�[�-����-��-����]|�[�-��-�]|�[��-��-��-����-��-��-�����-��-��-�������-�������-��-�]|�[�-��-����-�������-��������-�������-���-��-��-�]|�[�-����-��-��-���-��-��-���]|�[�-��-���-��-������-�����-��������]|�[�-��-�]|�[�-�]|�[��]|�[�-��-��-��-��-�]|�[�-��-����-��-�]|�[�-��-��-����-�]|�[�-��-�]|�[�-�]"},{name:"N",alias:"Number",bmp:"0-9²³¹¼-¾٠-٩۰-۹߀-߉०-९০-৯৴-৹੦-੯૦-૯୦-୯୲-୷௦-௲౦-౯౸-౾೦-೯൘-൞൦-൸෦-෯๐-๙໐-໙༠-༳၀-၉႐-႙፩-፼ᛮ-ᛰ០-៩៰-៹᠐-᠙᥆-᥏᧐-᧚᪀-᪉᪐-᪙᭐-᭙᮰-᮹᱀-᱉᱐-᱙⁰⁴-⁹₀-₉⅐-ↂↅ-↉①-⒛⓪-⓿❶-➓⳽〇〡-〩〸-〺㆒-㆕㈠-㈩㉈-㉏㉑-㉟㊀-㊉㊱-㊿꘠-꘩ꛦ-ꛯ꠰-꠵꣐-꣙꤀-꤉꧐-꧙꧰-꧹꩐-꩙꯰-꯹０-９",astral:"�[�-��-����-��-����-�]|�[�-�]|�[�-��-��-��-��-����-��-��-����-��-��-��-��-�]|�[�-��-��-��-��-�]|�[�-��-��-��-��-��-�]|�[�-��-��-��-��-�]|�[�-�]|�[�-��-��-�]|�[�-�]|�[�-��-��-�]|�[�-�]|�[�-��-�]|�[�-�]|�[�-��-�]|�[�-��-��-�]|�[�-�]"},{name:"Nd",alias:"Decimal_Number",bmp:"0-9٠-٩۰-۹߀-߉०-९০-৯੦-੯૦-૯୦-୯௦-௯౦-౯೦-೯൦-൯෦-෯๐-๙໐-໙༠-༩၀-၉႐-႙០-៩᠐-᠙᥆-᥏᧐-᧙᪀-᪉᪐-᪙᭐-᭙᮰-᮹᱀-᱉᱐-᱙꘠-꘩꣐-꣙꤀-꤉꧐-꧙꧰-꧹꩐-꩙꯰-꯹０-９",astral:"�[�-�]|�[�-�]|�[�-��-��-��-��-�]|�[�-��-��-��-��-�]|�[�-�]|�[�-��-��-�]|�[�-��-�]|�[�-�]|�[�-�]"},{name:"Nl",alias:"Letter_Number",bmp:"ᛮ-ᛰⅠ-ↂↅ-ↈ〇〡-〩〸-〺ꛦ-ꛯ",astral:"�[�-����-�]|�[�-�]"},{name:"No",alias:"Other_Number",bmp:"²³¹¼-¾৴-৹୲-୷௰-௲౸-౾൘-൞൰-൸༪-༳፩-፼៰-៹᧚⁰⁴-⁹₀-₉⅐-⅟↉①-⒛⓪-⓿❶-➓⳽㆒-㆕㈠-㈩㉈-㉏㉑-㉟㊀-㊉㊱-㊿꠰-꠵",astral:"�[�-��-����-��-�]|�[�-��-��-��-��-����-��-��-����-��-��-��-��-�]|�[�-��-��-��-�]|�[�-��-�]|�[��]|�[�-�]|�[�-�]|�[�-�]|�[�-�]|�[�-��-�]|�[�-�]|�[�-��-��-�]|�[�-�]"},{name:"P",alias:"Punctuation",bmp:"!-#%-\\*,-\\/:;\\?@\\[-\\]_\\{\\}¡§«¶·»¿;·՚-՟։֊־׀׃׆׳״؉؊،؍؛؞؟٪-٭۔܀-܍߷-߹࠰-࠾࡞।॥॰৽੶૰಄෴๏๚๛༄-༒༔༺-༽྅࿐-࿔࿙࿚၊-၏჻፠-፨᐀᙭᙮᚛᚜᛫-᛭᜵᜶។-៖៘-៚᠀-᠊᥄᥅᨞᨟᪠-᪦᪨-᪭᭚-᭠᯼-᯿᰻-᰿᱾᱿᳀-᳇᳓‐-‧‰-⁃⁅-⁑⁓-⁞⁽⁾₍₎⌈-⌋〈〉❨-❵⟅⟆⟦-⟯⦃-⦘⧘-⧛⧼⧽⳹-⳼⳾⳿⵰⸀-⸮⸰-⹎、-〃〈-】〔-〟〰〽゠・꓾꓿꘍-꘏꙳꙾꛲-꛷꡴-꡷꣎꣏꣸-꣺꣼꤮꤯꥟꧁-꧍꧞꧟꩜-꩟꫞꫟꫰꫱꯫﴾﴿︐-︙︰-﹒﹔-﹡﹣﹨﹪﹫！-＃％-＊，-／：；？＠［-］＿｛｝｟-･",astral:"�[�-���]|𐕯|�[����-���-��-��-�]|�[�-�]|�[�-����-��-����-����-��-��]|�[�-�����-��-��-��-�]|�[��-��-��-�]|�[�-�����]|�[�-�]|�[����-��]|�[�-�]|𛲟|�[�-�]|�[��]"},{name:"Pc",alias:"Connector_Punctuation",bmp:"_‿⁀⁔︳︴﹍-﹏＿"},{name:"Pd",alias:"Dash_Punctuation",bmp:"\\-֊־᐀᠆‐-―⸗⸚⸺⸻⹀〜〰゠︱︲﹘﹣－"},{name:"Pe",alias:"Close_Punctuation",bmp:"\\)\\]\\}༻༽᚜⁆⁾₎⌉⌋〉❩❫❭❯❱❳❵⟆⟧⟩⟫⟭⟯⦄⦆⦈⦊⦌⦎⦐⦒⦔⦖⦘⧙⧛⧽⸣⸥⸧⸩〉》」』】〕〗〙〛〞〟﴾︘︶︸︺︼︾﹀﹂﹄﹈﹚﹜﹞）］｝｠｣"},{name:"Pf",alias:"Final_Punctuation",bmp:"»’”›⸃⸅⸊⸍⸝⸡"},{name:"Pi",alias:"Initial_Punctuation",bmp:"«‘‛“‟‹⸂⸄⸉⸌⸜⸠"},{name:"Po",alias:"Other_Punctuation",bmp:"!-#%-'\\*,\\.\\/:;\\?@\\¡§¶·¿;·՚-՟։׀׃׆׳״؉؊،؍؛؞؟٪-٭۔܀-܍߷-߹࠰-࠾࡞।॥॰৽੶૰಄෴๏๚๛༄-༒༔྅࿐-࿔࿙࿚၊-၏჻፠-፨᙭᙮᛫-᛭᜵᜶។-៖៘-៚᠀-᠅᠇-᠊᥄᥅᨞᨟᪠-᪦᪨-᪭᭚-᭠᯼-᯿᰻-᰿᱾᱿᳀-᳇᳓‖‗†-‧‰-‸※-‾⁁-⁃⁇-⁑⁓⁕-⁞⳹-⳼⳾⳿⵰⸀⸁⸆-⸈⸋⸎-⸖⸘⸙⸛⸞⸟⸪-⸮⸰-⸹⸼-⸿⹁⹃-⹎、-〃〽・꓾꓿꘍-꘏꙳꙾꛲-꛷꡴-꡷꣎꣏꣸-꣺꣼꤮꤯꥟꧁-꧍꧞꧟꩜-꩟꫞꫟꫰꫱꯫︐-︖︙︰﹅﹆﹉-﹌﹐-﹒﹔-﹗﹟-﹡﹨﹪﹫！-＃％-＇＊，．／：；？＠＼｡､･",astral:"�[�-���]|𐕯|�[����-���-��-��-�]|�[�-�]|�[�-����-��-����-����-��-��]|�[�-�����-��-��-��-�]|�[��-��-��-�]|�[�-�����]|�[�-�]|�[����-��]|�[�-�]|𛲟|�[�-�]|�[��]"},{name:"Ps",alias:"Open_Punctuation",bmp:"\\(\\[\\{༺༼᚛‚„⁅⁽₍⌈⌊〈❨❪❬❮❰❲❴⟅⟦⟨⟪⟬⟮⦃⦅⦇⦉⦋⦍⦏⦑⦓⦕⦗⧘⧚⧼⸢⸤⸦⸨⹂〈《「『【〔〖〘〚〝﴿︗︵︷︹︻︽︿﹁﹃﹇﹙﹛﹝（［｛｟｢"},{name:"S",alias:"Symbol",bmp:"\\$\\+<->\\^`\\|~¢-¦¨©¬®-±´¸×÷˂-˅˒-˟˥-˫˭˯-˿͵΄΅϶҂֍-֏؆-؈؋؎؏۞۩۽۾߶߾߿৲৳৺৻૱୰௳-௺౿൏൹฿༁-༃༓༕-༗༚-༟༴༶༸྾-࿅࿇-࿌࿎࿏࿕-࿘႞႟᎐-᎙៛᥀᧞-᧿᭡-᭪᭴-᭼᾽᾿-῁῍-῏῝-῟῭-`´῾⁄⁒⁺-⁼₊-₌₠-₿℀℁℃-℆℈℉℔№-℘℞-℣℥℧℩℮℺℻⅀-⅄⅊-⅍⅏↊↋←-⌇⌌-⌨⌫-␦⑀-⑊⒜-ⓩ─-❧➔-⟄⟇-⟥⟰-⦂⦙-⧗⧜-⧻⧾-⭳⭶-⮕⮘-⯈⯊-⯾⳥-⳪⺀-⺙⺛-⻳⼀-⿕⿰-⿻〄〒〓〠〶〷〾〿゛゜㆐㆑㆖-㆟㇀-㇣㈀-㈞㈪-㉇㉐㉠-㉿㊊-㊰㋀-㋾㌀-㏿䷀-䷿꒐-꓆꜀-꜖꜠꜡꞉꞊꠨-꠫꠶-꠹꩷-꩹꭛﬩﮲-﯁﷼﷽﹢﹤-﹦﹩＄＋＜-＞＾｀｜～￠-￦￨-￮￼�",astral:"�[�-��-��-��-���-�]|�[���]|𑜿|�[�-��]|𛲜|�[�-��-��-��-����-��-��-���-�]|�[����������]|�[�-��-��-��-���]|�[����]|�[�-��-��-��-��-��-��-��-��-��-��-����-��-�]|�[�-��-��-��-��-�]|�[�-��-��-��-��-��-��-��-��-���-��-��-��-��-�]"},{name:"Sc",alias:"Currency_Symbol",bmp:"\\$¢-¥֏؋߾߿৲৳৻૱௹฿៛₠-₿꠸﷼﹩＄￠￡￥￦",astral:"𞲰"},{name:"Sk",alias:"Modifier_Symbol",bmp:"\\^`¨¯´¸˂-˅˒-˟˥-˫˭˯-˿͵΄΅᾽᾿-῁῍-῏῝-῟῭-`´῾゛゜꜀-꜖꜠꜡꞉꞊꭛﮲-﯁＾｀￣",astral:"�[�-�]"},{name:"Sm",alias:"Math_Symbol",bmp:"\\+<->\\|~¬±×÷϶؆-؈⁄⁒⁺-⁼₊-₌℘⅀-⅄⅋←-↔↚↛↠↣↦↮⇎⇏⇒⇔⇴-⋿⌠⌡⍼⎛-⎳⏜-⏡▷◁◸-◿♯⟀-⟄⟇-⟥⟰-⟿⤀-⦂⦙-⧗⧜-⧻⧾-⫿⬰-⭄⭇-⭌﬩﹢﹤-﹦＋＜-＞｜～￢￩-￬",astral:"�[����������]|�[��]"},{name:"So",alias:"Other_Symbol",bmp:"¦©®°҂֍֎؎؏۞۩۽۾߶৺୰௳-௸௺౿൏൹༁-༃༓༕-༗༚-༟༴༶༸྾-࿅࿇-࿌࿎࿏࿕-࿘႞႟᎐-᎙᥀᧞-᧿᭡-᭪᭴-᭼℀℁℃-℆℈℉℔№℗℞-℣℥℧℩℮℺℻⅊⅌⅍⅏↊↋↕-↙↜-↟↡↢↤↥↧-↭↯-⇍⇐⇑⇓⇕-⇳⌀-⌇⌌-⌟⌢-⌨⌫-⍻⍽-⎚⎴-⏛⏢-␦⑀-⑊⒜-ⓩ─-▶▸-◀◂-◷☀-♮♰-❧➔-➿⠀-⣿⬀-⬯⭅⭆⭍-⭳⭶-⮕⮘-⯈⯊-⯾⳥-⳪⺀-⺙⺛-⻳⼀-⿕⿰-⿻〄〒〓〠〶〷〾〿㆐㆑㆖-㆟㇀-㇣㈀-㈞㈪-㉇㉐㉠-㉿㊊-㊰㋀-㋾㌀-㏿䷀-䷿꒐-꓆꠨-꠫꠶꠷꠹꩷-꩹﷽￤￨￭￮￼�",astral:"�[�-��-��-��-���-�]|�[���]|𑜿|�[�-��]|𛲜|�[�-��-��-��-����-��-��-���-�]|�[�-��-��-��-���]|𞲬|�[�-��-��-��-��-��-��-��-��-��-��-����-��-�]|�[�-��-��-��-��-�]|�[�-��-��-��-��-��-��-��-��-���-��-��-��-��-�]"},{name:"Z",alias:"Separator",bmp:"    - \u2028\u2029  　"},{name:"Zl",alias:"Line_Separator",bmp:"\u2028"},{name:"Zp",alias:"Paragraph_Separator",bmp:"\u2029"},{name:"Zs",alias:"Space_Separator",bmp:"    -   　"}]},function(e,t,n){"use strict";var i=n(37);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(n(443)),r=function(e){if(!e.addUnicodeData)throw new ReferenceError("Unicode Base must be loaded before Unicode Properties");var t=o.default;t.push({name:"Assigned",inverseOf:"Cn"}),e.addUnicodeData(t)};t.default=r,e.exports=t.default},function(e,t){e.exports=[{name:"ASCII",bmp:"\0-"},{name:"Alphabetic",bmp:"A-Za-zªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͅͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈְ-ׇֽֿׁׂׅׄא-תׯ-ײؐ-ؚؠ-ٗٙ-ٟٮ-ۓە-ۜۡ-ۭۨ-ۯۺ-ۼۿܐ-ܿݍ-ޱߊ-ߪߴߵߺࠀ-ࠗࠚ-ࠬࡀ-ࡘࡠ-ࡪࢠ-ࢴࢶ-ࢽࣔ-ࣣࣟ-ࣰࣩ-ऻऽ-ौॎ-ॐॕ-ॣॱ-ঃঅ-ঌএঐও-নপ-রলশ-হঽ-ৄেৈোৌৎৗড়ঢ়য়-ৣৰৱৼਁ-ਃਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਾ-ੂੇੈੋੌੑਖ਼-ੜਫ਼ੰ-ੵઁ-ઃઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽ-ૅે-ૉોૌૐૠ-ૣૹ-ૼଁ-ଃଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽ-ୄେୈୋୌୖୗଡ଼ଢ଼ୟ-ୣୱஂஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹா-ூெ-ைொ-ௌௐௗఀ-ఃఅ-ఌఎ-ఐఒ-నప-హఽ-ౄె-ైొ-ౌౕౖౘ-ౚౠ-ౣಀ-ಃಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽ-ೄೆ-ೈೊ-ೌೕೖೞೠ-ೣೱೲഀ-ഃഅ-ഌഎ-ഐഒ-ഺഽ-ൄെ-ൈൊ-ൌൎൔ-ൗൟ-ൣൺ-ൿංඃඅ-ඖක-නඳ-රලව-ෆා-ුූෘ-ෟෲෳก-ฺเ-ๆํກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ູົ-ຽເ-ໄໆໍໜ-ໟༀཀ-ཇཉ-ཬཱ-ཱྀྈ-ྗྙ-ྼက-ံးျ-ဿၐ-ၢၥ-ၨၮ-ႆႎႜႝႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚ፟ᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜌᜎ-ᜓᜠ-ᜳᝀ-ᝓᝠ-ᝬᝮ-ᝰᝲᝳក-ឳា-ៈៗៜᠠ-ᡸᢀ-ᢪᢰ-ᣵᤀ-ᤞᤠ-ᤫᤰ-ᤸᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨛᨠ-ᩞᩡ-ᩴᪧᬀ-ᬳᬵ-ᭃᭅ-ᭋᮀ-ᮩᮬ-ᮯᮺ-ᯥᯧ-ᯱᰀ-ᰵᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᴀ-ᶿᷧ-ᷴḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⒶ-ⓩⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⷠ-ⷿⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿯ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙴ-ꙻꙿ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞹꟷ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠧꡀ-ꡳꢀ-ꣃꣅꣲ-ꣷꣻꣽꣾꤊ-ꤪꤰ-ꥒꥠ-ꥼꦀ-ꦲꦴ-ꦿꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨶꩀ-ꩍꩠ-ꩶꩺꩾ-ꪾꫀꫂꫛ-ꫝꫠ-ꫯꫲ-ꫵꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭥꭰ-ꯪ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ﬀ-ﬆﬓ-ﬗיִ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼＡ-Ｚａ-ｚｦ-ﾾￂ-ￇￊ-ￏￒ-ￗￚ-ￜ",astral:"�[�-��-��-����-��-��-��-��-��-��-��-��-��-��-��-��-�]|�[�-��-��-��-��-��-��-��-�]|�[�-���-�����-��-��-��-����-��-��-����-����-��-��-��-��-��-��-��-��-��-��-�]|�[�-��-��-��-��-���-�]|�[�-��-��-��-��-��-���-��-����-��-����-���-��-��-��-��-��-����-��-����-��-��������-�]|�[�-��-��-��-�����-��-��-��-����-��-��-�]|�[�-��-���-��-��-��-���-�]|�[�-��-��-���-��-��-��-����-�����-�����-����-����-���-�]|�[�-�]|�[�-��-�]|[��-��-��-��-��-�][�-�]|�[�-�]|�[�-�]|�[�-��-��-��-��-��-��-�]|�[�-��-��-��-���]|�[�-�]|�[�-�]|�[�-��-�]|�[�-��-��-��-��]|�[�-��-�������-��-���-��-��-��-��-��-��-��-���-��-��-��-��-��-��-��-��-��-��-��-��-�]|�[�-��-��-����-�]|�[�-��-��]|�[�-��-������-��-��������-�������������-��-��-��-���-��-��-��-��-�]|�[�-��-��-�]|�[�-��-�]|�[�-��-�]|�[�-��-�]|�[�-��-�]|�[�-�]|�[�-�]"},{name:"Any",isBmpLast:!0,bmp:"\0-￿",astral:"[�-�][�-�]"},{name:"Default_Ignorable_Code_Point",bmp:"­͏؜ᅟᅠ឴឵᠋-᠎​-‏‪-‮⁠-⁯ㅤ︀-️\ufeffﾠ￰-￸",astral:"�[�-�]|�[�-�]|[�-�][�-�]"},{name:"Lowercase",bmp:"a-zªµºß-öø-ÿāăąćĉċčďđēĕėęěĝğġģĥħĩīĭįıĳĵķĸĺļľŀłńņňŉŋōŏőœŕŗřśŝşšţťŧũūŭůűųŵŷźżž-ƀƃƅƈƌƍƒƕƙ-ƛƞơƣƥƨƪƫƭưƴƶƹƺƽ-ƿǆǉǌǎǐǒǔǖǘǚǜǝǟǡǣǥǧǩǫǭǯǰǳǵǹǻǽǿȁȃȅȇȉȋȍȏȑȓȕȗșțȝȟȡȣȥȧȩȫȭȯȱȳ-ȹȼȿɀɂɇɉɋɍɏ-ʓʕ-ʸˀˁˠ-ˤͅͱͳͷͺ-ͽΐά-ώϐϑϕ-ϗϙϛϝϟϡϣϥϧϩϫϭϯ-ϳϵϸϻϼа-џѡѣѥѧѩѫѭѯѱѳѵѷѹѻѽѿҁҋҍҏґғҕҗҙқҝҟҡңҥҧҩҫҭүұҳҵҷҹһҽҿӂӄӆӈӊӌӎӏӑӓӕӗәӛӝӟӡӣӥӧөӫӭӯӱӳӵӷӹӻӽӿԁԃԅԇԉԋԍԏԑԓԕԗԙԛԝԟԡԣԥԧԩԫԭԯՠ-ֈა-ჺჽ-ჿᏸ-ᏽᲀ-ᲈᴀ-ᶿḁḃḅḇḉḋḍḏḑḓḕḗḙḛḝḟḡḣḥḧḩḫḭḯḱḳḵḷḹḻḽḿṁṃṅṇṉṋṍṏṑṓṕṗṙṛṝṟṡṣṥṧṩṫṭṯṱṳṵṷṹṻṽṿẁẃẅẇẉẋẍẏẑẓẕ-ẝẟạảấầẩẫậắằẳẵặẹẻẽếềểễệỉịọỏốồổỗộớờởỡợụủứừửữựỳỵỷỹỻỽỿ-ἇἐ-ἕἠ-ἧἰ-ἷὀ-ὅὐ-ὗὠ-ὧὰ-ώᾀ-ᾇᾐ-ᾗᾠ-ᾧᾰ-ᾴᾶᾷιῂ-ῄῆῇῐ-ΐῖῗῠ-ῧῲ-ῴῶῷⁱⁿₐ-ₜℊℎℏℓℯℴℹℼℽⅆ-ⅉⅎⅰ-ⅿↄⓐ-ⓩⰰ-ⱞⱡⱥⱦⱨⱪⱬⱱⱳⱴⱶ-ⱽⲁⲃⲅⲇⲉⲋⲍⲏⲑⲓⲕⲗⲙⲛⲝⲟⲡⲣⲥⲧⲩⲫⲭⲯⲱⲳⲵⲷⲹⲻⲽⲿⳁⳃⳅⳇⳉⳋⳍⳏⳑⳓⳕⳗⳙⳛⳝⳟⳡⳣⳤⳬⳮⳳⴀ-ⴥⴧⴭꙁꙃꙅꙇꙉꙋꙍꙏꙑꙓꙕꙗꙙꙛꙝꙟꙡꙣꙥꙧꙩꙫꙭꚁꚃꚅꚇꚉꚋꚍꚏꚑꚓꚕꚗꚙꚛ-ꚝꜣꜥꜧꜩꜫꜭꜯ-ꜱꜳꜵꜷꜹꜻꜽꜿꝁꝃꝅꝇꝉꝋꝍꝏꝑꝓꝕꝗꝙꝛꝝꝟꝡꝣꝥꝧꝩꝫꝭꝯ-ꝸꝺꝼꝿꞁꞃꞅꞇꞌꞎꞑꞓ-ꞕꞗꞙꞛꞝꞟꞡꞣꞥꞧꞩꞯꞵꞷꞹꟸ-ꟺꬰ-ꭚꭜ-ꭥꭰ-ꮿﬀ-ﬆﬓ-ﬗａ-ｚ",astral:"�[�-��-�]|�[�-�]|�[�-�]|�[�-�]|�[�-��-��-��-��-���-��-��-��-��-��-��-��-��-��-��-��-��-��-��-��-��-��-��-��-��-��]|�[�-�]"},{name:"Noncharacter_Code_Point",bmp:"﷐-﷯￾￿",astral:"[����������������][��]"},{name:"Uppercase",bmp:"A-ZÀ-ÖØ-ÞĀĂĄĆĈĊČĎĐĒĔĖĘĚĜĞĠĢĤĦĨĪĬĮİĲĴĶĹĻĽĿŁŃŅŇŊŌŎŐŒŔŖŘŚŜŞŠŢŤŦŨŪŬŮŰŲŴŶŸŹŻŽƁƂƄƆƇƉ-ƋƎ-ƑƓƔƖ-ƘƜƝƟƠƢƤƦƧƩƬƮƯƱ-ƳƵƷƸƼǄǇǊǍǏǑǓǕǗǙǛǞǠǢǤǦǨǪǬǮǱǴǶ-ǸǺǼǾȀȂȄȆȈȊȌȎȐȒȔȖȘȚȜȞȠȢȤȦȨȪȬȮȰȲȺȻȽȾɁɃ-ɆɈɊɌɎͰͲͶͿΆΈ-ΊΌΎΏΑ-ΡΣ-ΫϏϒ-ϔϘϚϜϞϠϢϤϦϨϪϬϮϴϷϹϺϽ-ЯѠѢѤѦѨѪѬѮѰѲѴѶѸѺѼѾҀҊҌҎҐҒҔҖҘҚҜҞҠҢҤҦҨҪҬҮҰҲҴҶҸҺҼҾӀӁӃӅӇӉӋӍӐӒӔӖӘӚӜӞӠӢӤӦӨӪӬӮӰӲӴӶӸӺӼӾԀԂԄԆԈԊԌԎԐԒԔԖԘԚԜԞԠԢԤԦԨԪԬԮԱ-ՖႠ-ჅჇჍᎠ-ᏵᲐ-ᲺᲽ-ᲿḀḂḄḆḈḊḌḎḐḒḔḖḘḚḜḞḠḢḤḦḨḪḬḮḰḲḴḶḸḺḼḾṀṂṄṆṈṊṌṎṐṒṔṖṘṚṜṞṠṢṤṦṨṪṬṮṰṲṴṶṸṺṼṾẀẂẄẆẈẊẌẎẐẒẔẞẠẢẤẦẨẪẬẮẰẲẴẶẸẺẼẾỀỂỄỆỈỊỌỎỐỒỔỖỘỚỜỞỠỢỤỦỨỪỬỮỰỲỴỶỸỺỼỾἈ-ἏἘ-ἝἨ-ἯἸ-ἿὈ-ὍὙὛὝὟὨ-ὯᾸ-ΆῈ-ΉῘ-ΊῨ-ῬῸ-Ώℂℇℋ-ℍℐ-ℒℕℙ-ℝℤΩℨK-ℭℰ-ℳℾℿⅅⅠ-ⅯↃⒶ-ⓏⰀ-ⰮⱠⱢ-ⱤⱧⱩⱫⱭ-ⱰⱲⱵⱾ-ⲀⲂⲄⲆⲈⲊⲌⲎⲐⲒⲔⲖⲘⲚⲜⲞⲠⲢⲤⲦⲨⲪⲬⲮⲰⲲⲴⲶⲸⲺⲼⲾⳀⳂⳄⳆⳈⳊⳌⳎⳐⳒⳔⳖⳘⳚⳜⳞⳠⳢⳫⳭⳲꙀꙂꙄꙆꙈꙊꙌꙎꙐꙒꙔꙖꙘꙚꙜꙞꙠꙢꙤꙦꙨꙪꙬꚀꚂꚄꚆꚈꚊꚌꚎꚐꚒꚔꚖꚘꚚꜢꜤꜦꜨꜪꜬꜮꜲꜴꜶꜸꜺꜼꜾꝀꝂꝄꝆꝈꝊꝌꝎꝐꝒꝔꝖꝘꝚꝜꝞꝠꝢꝤꝦꝨꝪꝬꝮꝹꝻꝽꝾꞀꞂꞄꞆꞋꞍꞐꞒꞖꞘꞚꞜꞞꞠꞢꞤꞦꞨꞪ-ꞮꞰ-ꞴꞶꞸＡ-Ｚ",astral:"�[�-��-�]|�[�-�]|�[�-�]|�[�-�]|�[�-��-��-��������-��-��-����-��-��-����-��-���-��-��-��-��-��-��-��-��-��-��-��-��]|�[�-�]|�[�-��-��-�]"},{name:"White_Space",bmp:"\t-\r    - \u2028\u2029  　"}]},function(e,t,n){"use strict";var i=n(37);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(n(445)),r=function(e){if(!e.addUnicodeData)throw new ReferenceError("Unicode Base must be loaded before Unicode Scripts");e.addUnicodeData(o.default)};t.default=r,e.exports=t.default},function(e,t){e.exports=[{name:"Adlam",astral:"�[�-��-���]"},{name:"Ahom",astral:"�[�-��-��-�]"},{name:"Anatolian_Hieroglyphs",astral:"�[�-�]"},{name:"Arabic",bmp:"؀-؄؆-؋؍-ؚ؜؞ؠ-ؿف-يٖ-ٯٱ-ۜ۞-ۿݐ-ݿࢠ-ࢴࢶ-ࢽ࣓-ࣣ࣡-ࣿﭐ-﯁ﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-﷽ﹰ-ﹴﹶ-ﻼ",astral:"�[�-�]|�[�-��-������-��-��������-�������������-��-��-��-���-��-��-��-��-���]"},{name:"Armenian",bmp:"Ա-Ֆՙ-ֈ֊֍-֏ﬓ-ﬗ"},{name:"Avestan",astral:"�[�-��-�]"},{name:"Balinese",bmp:"ᬀ-ᭋ᭐-᭼"},{name:"Bamum",bmp:"ꚠ-꛷",astral:"�[�-�]"},{name:"Bassa_Vah",astral:"�[�-��-�]"},{name:"Batak",bmp:"ᯀ-᯳᯼-᯿"},{name:"Bengali",bmp:"ঀ-ঃঅ-ঌএঐও-নপ-রলশ-হ়-ৄেৈো-ৎৗড়ঢ়য়-ৣ০-৾"},{name:"Bhaiksuki",astral:"�[�-��-��-��-�]"},{name:"Bopomofo",bmp:"˪˫ㄅ-ㄯㆠ-ㆺ"},{name:"Brahmi",astral:"�[�-��-��]"},{name:"Braille",bmp:"⠀-⣿"},{name:"Buginese",bmp:"ᨀ-ᨛ᨞᨟"},{name:"Buhid",bmp:"ᝀ-ᝓ"},{name:"Canadian_Aboriginal",bmp:"᐀-ᙿᢰ-ᣵ"},{name:"Carian",astral:"�[�-�]"},{name:"Caucasian_Albanian",astral:"�[�-��]"},{name:"Chakma",astral:"�[�-��-�]"},{name:"Cham",bmp:"ꨀ-ꨶꩀ-ꩍ꩐-꩙꩜-꩟"},{name:"Cherokee",bmp:"Ꭰ-Ᏽᏸ-ᏽꭰ-ꮿ"},{name:"Common",bmp:"\0-@\\[-`\\{-©«-¹»-¿×÷ʹ-˟˥-˩ˬ-˿ʹ;΅·։؅،؛؟ـ۝࣢।॥฿࿕-࿘჻᛫-᛭᜵᜶᠂᠃᠅᳓᳡ᳩ-ᳬᳮ-ᳳᳵ-᳷ -​‎-⁤⁦-⁰⁴-⁾₀-₎₠-₿℀-℥℧-℩ℬ-ℱℳ-⅍⅏-⅟↉-↋←-␦⑀-⑊①-⟿⤀-⭳⭶-⮕⮘-⯈⯊-⯾⸀-⹎⿰-⿻　-〄〆〈-〠〰-〷〼-〿゛゜゠・ー㆐-㆟㇀-㇣㈠-㉟㉿-㋏㍘-㏿䷀-䷿꜀-꜡ꞈ-꞊꠰-꠹꤮ꧏ꭛﴾﴿︐-︙︰-﹒﹔-﹦﹨-﹫\ufeff！-＠［-｀｛-･ｰﾞﾟ￠-￦￨-￮￹-�",astral:"�[�-��-��-��-��-��-�]|�[�-�]|�[�-��-��-��-����-��-��-��-��-�]|�[�-��-�������-��-���-��-��-��-��-��-��-��-���-��-��-��-�]|�[�-�]|�[�-��-��-��-��-��-��-��-��-��-����-��-����-��-�]|�[�-��-��-��-��-�]|�[�-��-��-��-��-��-��-��-��-���-��-��-��-��-�]|�[��-�]"},{name:"Coptic",bmp:"Ϣ-ϯⲀ-ⳳ⳹-⳿"},{name:"Cuneiform",astral:"�[�-�]|�[�-��-��-�]"},{name:"Cypriot",astral:"�[�-���-�����]"},{name:"Cyrillic",bmp:"Ѐ-҄҇-ԯᲀ-ᲈᴫᵸⷠ-ⷿꙀ-ꚟ︮︯"},{name:"Deseret",astral:"�[�-�]"},{name:"Devanagari",bmp:"ऀ-ॐ॓-ॣ०-ॿ꣠-ꣿ"},{name:"Dogra",astral:"�[�-�]"},{name:"Duployan",astral:"�[�-��-��-��-��-�]"},{name:"Egyptian_Hieroglyphs",astral:"�[�-�]|�[�-�]"},{name:"Elbasan",astral:"�[�-�]"},{name:"Ethiopic",bmp:"ሀ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚ፝-፼ᎀ-᎙ⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮ"},{name:"Georgian",bmp:"Ⴀ-ჅჇჍა-ჺჼ-ჿᲐ-ᲺᲽ-Ჿⴀ-ⴥⴧⴭ"},{name:"Glagolitic",bmp:"Ⰰ-Ⱞⰰ-ⱞ",astral:"�[�-��-��-����-�]"},{name:"Gothic",astral:"�[�-�]"},{name:"Grantha",astral:"�[�-��-����-��-����-��-����-����-��-��-�]"},{name:"Greek",bmp:"Ͱ-ͳ͵-ͷͺ-ͽͿ΄ΆΈ-ΊΌΎ-ΡΣ-ϡϰ-Ͽᴦ-ᴪᵝ-ᵡᵦ-ᵪᶿἀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ῄῆ-ΐῖ-Ί῝-`ῲ-ῴῶ-῾Ωꭥ",astral:"�[�-��]|�[�-�]"},{name:"Gujarati",bmp:"ઁ-ઃઅ-ઍએ-ઑઓ-નપ-રલળવ-હ઼-ૅે-ૉો-્ૐૠ-ૣ૦-૱ૹ-૿"},{name:"Gunjala_Gondi",astral:"�[�-����-����-��-�]"},{name:"Gurmukhi",bmp:"ਁ-ਃਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹ਼ਾ-ੂੇੈੋ-੍ੑਖ਼-ੜਫ਼੦-੶"},{name:"Han",bmp:"⺀-⺙⺛-⻳⼀-⿕々〇〡-〩〸-〻㐀-䶵一-鿯豈-舘並-龎",astral:"[�-��-��-��-�][�-�]|�[�-��-�]|�[�-��-�]|�[�-��-�]|�[�-��-�]|�[�-�]|�[�-�]"},{name:"Hangul",bmp:"ᄀ-ᇿ〮〯ㄱ-ㆎ㈀-㈞㉠-㉾ꥠ-ꥼ가-힣ힰ-ퟆퟋ-ퟻﾠ-ﾾￂ-ￇￊ-ￏￒ-ￗￚ-ￜ"},{name:"Hanifi_Rohingya",astral:"�[�-��-�]"},{name:"Hanunoo",bmp:"ᜠ-᜴"},{name:"Hatran",astral:"�[�-����-�]"},{name:"Hebrew",bmp:"֑-ׇא-תׯ-״יִ-זּטּ-לּמּנּסּףּפּצּ-ﭏ"},{name:"Hiragana",bmp:"ぁ-ゖゝ-ゟ",astral:"�[�-�]|🈀"},{name:"Imperial_Aramaic",astral:"�[�-��-�]"},{name:"Inherited",bmp:"̀-ًͯ҅҆-ٰٕ॒॑᪰-᪾᳐-᳔᳒-᳢᳠-᳨᳭᳴᳸᳹᷀-᷹᷻-᷿‌‍⃐-〪⃰-゙゚〭︀-️︠-︭",astral:"�[��]|𑌻|�[�-��-��-��-�]|�[�-�]"},{name:"Inscriptional_Pahlavi",astral:"�[�-��-�]"},{name:"Inscriptional_Parthian",astral:"�[�-��-�]"},{name:"Javanese",bmp:"ꦀ-꧍꧐-꧙꧞꧟"},{name:"Kaithi",astral:"�[�-��]"},{name:"Kannada",bmp:"ಀ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹ಼-ೄೆ-ೈೊ-್ೕೖೞೠ-ೣ೦-೯ೱೲ"},{name:"Katakana",bmp:"ァ-ヺヽ-ヿㇰ-ㇿ㋐-㋾㌀-㍗ｦ-ｯｱ-ﾝ",astral:"𛀀"},{name:"Kayah_Li",bmp:"꤀-꤭꤯"},{name:"Kharoshthi",astral:"�[�-����-��-��-��-��-��-�]"},{name:"Khmer",bmp:"ក-៝០-៩៰-៹᧠-᧿"},{name:"Khojki",astral:"�[�-��-�]"},{name:"Khudawadi",astral:"�[�-��-�]"},{name:"Lao",bmp:"ກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ູົ-ຽເ-ໄໆ່-ໍ໐-໙ໜ-ໟ"},{name:"Latin",bmp:"A-Za-zªºÀ-ÖØ-öø-ʸˠ-ˤᴀ-ᴥᴬ-ᵜᵢ-ᵥᵫ-ᵷᵹ-ᶾḀ-ỿⁱⁿₐ-ₜKÅℲⅎⅠ-ↈⱠ-ⱿꜢ-ꞇꞋ-ꞹꟷ-ꟿꬰ-ꭚꭜ-ꭤﬀ-ﬆＡ-Ｚａ-ｚ"},{name:"Lepcha",bmp:"ᰀ-᰷᰻-᱉ᱍ-ᱏ"},{name:"Limbu",bmp:"ᤀ-ᤞᤠ-ᤫᤰ-᤻᥀᥄-᥏"},{name:"Linear_A",astral:"�[�-��-��-�]"},{name:"Linear_B",astral:"�[�-��-��-����-��-��-�]"},{name:"Lisu",bmp:"ꓐ-꓿"},{name:"Lycian",astral:"�[�-�]"},{name:"Lydian",astral:"�[�-��]"},{name:"Mahajani",astral:"�[�-�]"},{name:"Makasar",astral:"�[�-�]"},{name:"Malayalam",bmp:"ഀ-ഃഅ-ഌഎ-ഐഒ-ൄെ-ൈൊ-൏ൔ-ൣ൦-ൿ"},{name:"Mandaic",bmp:"ࡀ-࡛࡞"},{name:"Manichaean",astral:"�[�-��-�]"},{name:"Marchen",astral:"�[�-��-��-�]"},{name:"Masaram_Gondi",astral:"�[�-����-�����-��-�]"},{name:"Medefaidrin",astral:"�[�-�]"},{name:"Meetei_Mayek",bmp:"ꫠ-꫶ꯀ-꯭꯰-꯹"},{name:"Mende_Kikakui",astral:"�[�-��-�]"},{name:"Meroitic_Cursive",astral:"�[�-��-��-�]"},{name:"Meroitic_Hieroglyphs",astral:"�[�-�]"},{name:"Miao",astral:"�[�-��-��-�]"},{name:"Modi",astral:"�[�-��-�]"},{name:"Mongolian",bmp:"᠀᠁᠄᠆-᠎᠐-᠙ᠠ-ᡸᢀ-ᢪ",astral:"�[�-�]"},{name:"Mro",astral:"�[�-��-���]"},{name:"Multani",astral:"�[�-���-��-��-�]"},{name:"Myanmar",bmp:"က-႟ꧠ-ꧾꩠ-ꩿ"},{name:"Nabataean",astral:"�[�-��-�]"},{name:"New_Tai_Lue",bmp:"ᦀ-ᦫᦰ-ᧉ᧐-᧚᧞᧟"},{name:"Newa",astral:"�[�-����]"},{name:"Nko",bmp:"߀-ߺ߽-߿"},{name:"Nushu",astral:"𖿡|�[�-�]"},{name:"Ogham",bmp:" -᚜"},{name:"Ol_Chiki",bmp:"᱐-᱿"},{name:"Old_Hungarian",astral:"�[�-��-��-�]"},{name:"Old_Italic",astral:"�[�-��-�]"},{name:"Old_North_Arabian",astral:"�[�-�]"},{name:"Old_Permic",astral:"�[�-�]"},{name:"Old_Persian",astral:"�[�-��-�]"},{name:"Old_Sogdian",astral:"�[�-�]"},{name:"Old_South_Arabian",astral:"�[�-�]"},{name:"Old_Turkic",astral:"�[�-�]"},{name:"Oriya",bmp:"ଁ-ଃଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହ଼-ୄେୈୋ-୍ୖୗଡ଼ଢ଼ୟ-ୣ୦-୷"},{name:"Osage",astral:"�[�-��-�]"},{name:"Osmanya",astral:"�[�-��-�]"},{name:"Pahawh_Hmong",astral:"�[�-��-��-��-��-�]"},{name:"Palmyrene",astral:"�[�-�]"},{name:"Pau_Cin_Hau",astral:"�[�-�]"},{name:"Phags_Pa",bmp:"ꡀ-꡷"},{name:"Phoenician",astral:"�[�-��]"},{name:"Psalter_Pahlavi",astral:"�[�-��-��-�]"},{name:"Rejang",bmp:"ꤰ-꥓꥟"},{name:"Runic",bmp:"ᚠ-ᛪᛮ-ᛸ"},{name:"Samaritan",bmp:"ࠀ-࠭࠰-࠾"},{name:"Saurashtra",bmp:"ꢀ-ꣅ꣎-꣙"},{name:"Sharada",astral:"�[�-��-�]"},{name:"Shavian",astral:"�[�-�]"},{name:"Siddham",astral:"�[�-��-�]"},{name:"SignWriting",astral:"�[�-��-��-�]"},{name:"Sinhala",bmp:"ංඃඅ-ඖක-නඳ-රලව-ෆ්ා-ුූෘ-ෟ෦-෯ෲ-෴",astral:"�[�-�]"},{name:"Sogdian",astral:"�[�-�]"},{name:"Sora_Sompeng",astral:"�[�-��-�]"},{name:"Soyombo",astral:"�[�-��-�]"},{name:"Sundanese",bmp:"ᮀ-ᮿ᳀-᳇"},{name:"Syloti_Nagri",bmp:"ꠀ-꠫"},{name:"Syriac",bmp:"܀-܍܏-݊ݍ-ݏࡠ-ࡪ"},{name:"Tagalog",bmp:"ᜀ-ᜌᜎ-᜔"},{name:"Tagbanwa",bmp:"ᝠ-ᝬᝮ-ᝰᝲᝳ"},{name:"Tai_Le",bmp:"ᥐ-ᥭᥰ-ᥴ"},{name:"Tai_Tham",bmp:"ᨠ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪠-᪭"},{name:"Tai_Viet",bmp:"ꪀ-ꫂꫛ-꫟"},{name:"Takri",astral:"�[�-��-�]"},{name:"Tamil",bmp:"ஂஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹா-ூெ-ைொ-்ௐௗ௦-௺"},{name:"Tangut",astral:"𖿠|[�-�][�-�]|�[�-�]|�[�-�]"},{name:"Telugu",bmp:"ఀ-ఌఎ-ఐఒ-నప-హఽ-ౄె-ైొ-్ౕౖౘ-ౚౠ-ౣ౦-౯౸-౿"},{name:"Thaana",bmp:"ހ-ޱ"},{name:"Thai",bmp:"ก-ฺเ-๛"},{name:"Tibetan",bmp:"ༀ-ཇཉ-ཬཱ-ྗྙ-ྼ྾-࿌࿎-࿔࿙࿚"},{name:"Tifinagh",bmp:"ⴰ-ⵧⵯ⵰⵿"},{name:"Tirhuta",astral:"�[�-��-�]"},{name:"Ugaritic",astral:"�[�-��]"},{name:"Vai",bmp:"ꔀ-ꘫ"},{name:"Warang_Citi",astral:"�[�-��]"},{name:"Yi",bmp:"ꀀ-ꒌ꒐-꓆"},{name:"Zanabazar_Square",astral:"�[�-�]"}]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=function(){function e(){this.partialQueries=[],this.suggestions=[],this.analyticsLengthLimit=256}return e.prototype.buildCustomDataForPartialQueries=function(){return this.partialQuery=i.last(this.partialQueries),{partialQueries:this.cleanCustomData(this.partialQueries),suggestionRanking:this.suggestionRanking,suggestions:this.cleanCustomData(this.suggestions),partialQuery:this.partialQuery}},e.prototype.cleanCustomData=function(e,t){var n=this;void 0===t&&(t=this.analyticsLengthLimit);var i=this.filterOutConsecutiveValues(e),o=i.map(function(e){return n.removeSemicolons(e)}),r=this.reduceAnalyticsToLengthLimit(o,t),s=r.reverse();return s.join(";").length>=this.analyticsLengthLimit?this.cleanCustomData(s,t-10):s.join(";")},e.prototype.filterOutConsecutiveValues=function(e){return i.compact(i.filter(e,function(e,t,n){return 0===t||e!==n[t-1]}))},e.prototype.removeSemicolons=function(e){return e.replace(/;/g,"")},e.prototype.reduceAnalyticsToLengthLimit=function(e,t){var n=[];return i.reduceRight(e,function(e,i){var o=e+i.length;return o<=t&&n.push(i),o},0),n},e}();t.OmniboxAnalytics=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=n(9),r=n(11),s=n(0),a=n(30),u=function(){function e(){}return e.isAutoLayoutAdjustable=function(e){return"isCurrentlyDisplayed"in e},e.initializeAutoLayoutAdjustment=function(e,t){var n=this;if(this.autoLayoutAdjustmentComponent.has(e)||this.autoLayoutAdjustmentComponent.set(e,[]),this.autoLayoutAdjustmentComponent.get(e).push(t),!this.autoLayoutAdjustmentHandlers.has(e)){var o=function(){return i.$$(e).on(r.QueryEvents.deferredQuerySuccess,function(){var t=n.findColumn(e);n.everyStandardComponentsAreInvisible(e)&&n.columnsDoesNotContainVisibleCustomElement(t)?i.$$(e).addClass("coveo-no-visible-facet"):i.$$(e).removeClass("coveo-no-visible-facet")})};o(),this.autoLayoutAdjustmentHandlers.set(e,o)}},e.columnsDoesNotContainVisibleCustomElement=function(e){var t=this;if(!e)return!0;var n=i.$$(e).children(),o=["coveo-facet-header-filter-by-container","coveo-topSpace","coveo-bottomSpace"];return s.every(n,function(e){if(null!=s.find(o,function(t){return i.$$(e).hasClass(t)}))return!0;try{var n=a.get(e);if(n&&t.isAutoLayoutAdjustable(n))return!0}catch(e){}return!i.$$(e).isVisible()})},e.everyStandardComponentsAreInvisible=function(e){var t=this.autoLayoutAdjustmentComponent.get(e);return s.every(t,function(e){return!e.isCurrentlyDisplayed()})},e.findColumn=function(e){var t=i.$$(e).find(".coveo-facet-column");if(!t){new o.Logger("ResponsiveFacets").info("No element with class coveo-facet-column. Facet column auto layout adjustment cannot be enabled")}return t},e.autoLayoutAdjustmentComponent=new Map,e.autoLayoutAdjustmentHandlers=new Map,e}();t.FacetColumnAutoLayoutAdjustment=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(13),o=n(47),r=function(){function e(e){this.searchInterface=e}return e.prototype.handleFacetValueState=function(e){var t=o.ComponentsTypes.getAllFacetsFromSearchInterface(this.searchInterface),n=e.fv,i=new s(e,n,t),r=new a(e,n),u=Object.keys(n),l=u.filter(function(e){return n[e]&&n[e].length>0}).filter(function(e){return!i.tryTransform(e,n[e])});r.transform(l)},e}();t.FacetValueStateHandler=r;var s=function(){function e(e,t,n){this.queryState=e,this.facetValueState=t,this.allFacets=n}return e.prototype.tryTransform=function(e,t){var n=this,o=this.allFacets.filter(function(t){return t.options.field==e});return o.length>0&&(delete this.facetValueState[e],o.forEach(function(e){return n.queryState[i.QueryStateModel.getFacetId(e.options.id)]=t}),!0)},e}(),a=function(){function e(e,t){this.queryState=e,this.facetValueState=t}return e.prototype.transform=function(e){var t=this,n=e.map(function(e){return t.facetValueIntoQuery(e)});n.length>0&&(this.queryState[i.QueryStateModel.attributesEnum.hq]=n.join(" AND "))},e.prototype.facetValueIntoQuery=function(e){var t=this.facetValueState[e];return delete this.facetValueState[e],e+'=="'+t+'"'},e}()},function(e,t,n){"use strict";var i=this&&this.__assign||Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e};Object.defineProperty(t,"__esModule",{value:!0});var o=n(29),r=n(1),s=n(9),a=n(205),u=function(){function e(e,t){var n=this;this.root=e,this.queryStateModel=t,this.ID="ScrollRestorer",this.restorationTimeOutInMs=5e3,this.tryToScrollIntervalInMs=50,this.scrollInfoStorage=new a.StorageUtils(this.ID,"session"),window.addEventListener("beforeunload",function(){n.saveScrollInfo()}),r.$$(this.root).on(o.ResultListEvents.newResultsDisplayed,function(e,t){return n.handleNewResultsDisplayed(t)})}return e.prototype.saveScrollInfo=function(){var e={pageHeight:window.document.body.scrollHeight,lastPosition:window.pageYOffset},t=this.getKeyForCurrentQuery(),n=this.scrollInfoStorage.load();this.scrollInfoStorage.save(i({},n,(o={},o[t]=e,o)));var o},e.prototype.handleNewResultsDisplayed=function(e){if(e.isInfiniteScrollEnabled)return new s.Logger(this).warn("Scroll restoration is not supported on result lists with infinite scrolling enabled."),void this.resetScrollInfo();var t=this.getScrollInfoForCurrentQuery();if(this.resetScrollInfo(),t&&t.lastPosition){var n=Date.now()+this.restorationTimeOutInMs;this.tryToRestoreScrollPosition(t,n)}},e.prototype.resetScrollInfo=function(){this.scrollInfoStorage.remove(this.getKeyForCurrentQuery())},e.prototype.tryToRestoreScrollPosition=function(e,t){var n=this,i=window.document.documentElement,o=window.document.body,r=Math.max(o.scrollHeight,o.offsetHeight,i.clientHeight,i.scrollHeight,i.offsetHeight);clearTimeout(this.timeoutHandle),r>=e.pageHeight||Date.now()>=t?window.scrollTo(0,e.lastPosition):this.timeoutHandle=setTimeout(function(){return n.tryToRestoreScrollPosition(e,t)},this.tryToScrollIntervalInMs)},e.prototype.getScrollInfoForCurrentQuery=function(){return(this.scrollInfoStorage.load()||{})[this.getKeyForCurrentQuery()]},e.prototype.getKeyForCurrentQuery=function(){return JSON.stringify(this.queryStateModel.getAttributes())},e}();t.ScrollRestorer=u},function(e,t){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(7),o=n(1),r=n(0),s=n(2),a=n(122),u=function(){function e(){}return e.findDOMElementsToIgnore=function(e,t){var n=this,i=[];return r.each(t,function(t){var s=n.findDOMElementsMatchingComponentId(e,t);i=a.Utils.concatWithoutDuplicate(i,s),r.each(s,function(e){var t=o.$$(e).findAll("*");i=a.Utils.concatWithoutDuplicate(i,t)})}),i},e.findDOMElementsToInitialize=function(e,t){var n=this,u=[];return r.each(s.Initialization.getListOfRegisteredComponents(),function(l){var c=[];c=a.Utils.concatWithoutDuplicate(c,n.findDOMElementsMatchingComponentId(e,l));var p=s.Initialization.componentAliases[l];r.each(p,function(t){c=a.Utils.concatWithoutDuplicate(c,n.findDOMElementsMatchingComponentId(e,t))}),o.$$(e).hasClass(i.Component.computeCssClassNameForType(""+l))&&!r.contains(t,e)&&c.push(e),u.push({componentClassId:l,htmlElements:r.difference(c,t)})}),u},e.findDOMElementsMatchingComponentId=function(e,t){var n=i.Component.computeCssClassNameForType(""+t);return o.$$(e).findAll("."+n)},e}();t.InitializationHelper=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=function(){function e(e){void 0===e&&(e=[]),this.analyticsClients=e,this.isContextual=!1,this.endpoint=i.first(this.analyticsClients).endpoint}return e.prototype.isActivated=function(){return i.some(this.analyticsClients,function(e){return e.isActivated()})},e.prototype.getCurrentEventCause=function(){return i.find(i.map(this.analyticsClients,function(e){return e.getCurrentEventCause()}),function(e){return null!=e})},e.prototype.getCurrentEventMeta=function(){return i.find(i.map(this.analyticsClients,function(e){return e.getCurrentEventMeta()}),function(e){return null!=e})},e.prototype.logSearchEvent=function(e,t){i.each(this.analyticsClients,function(n){return n.logSearchEvent(e,t)})},e.prototype.logSearchAsYouType=function(e,t){i.each(this.analyticsClients,function(n){return n.logSearchEvent(e,t)})},e.prototype.logClickEvent=function(e,t,n,o){return Promise.all(i.map(this.analyticsClients,function(i){return i.logClickEvent(e,t,n,o)})).then(function(e){return i.first(e)})},e.prototype.logCustomEvent=function(e,t,n){return Promise.all(i.map(this.analyticsClients,function(i){return i.logCustomEvent(e,t,n)})).then(function(e){return i.first(e)})},e.prototype.getTopQueries=function(e){var t=this;return Promise.all(i.map(this.analyticsClients,function(t){return t.getTopQueries(e)})).then(function(n){return t.mergeTopQueries(n,e.pageSize)})},e.prototype.getCurrentVisitIdPromise=function(){return i.first(this.analyticsClients).getCurrentVisitIdPromise()},e.prototype.getCurrentVisitId=function(){return i.first(this.analyticsClients).getCurrentVisitId()},e.prototype.sendAllPendingEvents=function(){i.each(this.analyticsClients,function(e){return e.sendAllPendingEvents()})},e.prototype.warnAboutSearchEvent=function(){i.each(this.analyticsClients,function(e){return e.warnAboutSearchEvent()})},e.prototype.cancelAllPendingEvents=function(){i.each(this.analyticsClients,function(e){return e.cancelAllPendingEvents()})},e.prototype.getPendingSearchEvent=function(){return i.first(this.analyticsClients).getPendingSearchEvent()},e.prototype.setOriginContext=function(e){i.each(this.analyticsClients,function(t){return t.setOriginContext(e)})},e.prototype.mergeTopQueries=function(e,t){return void 0===t&&(t=5),i.chain(e).flatten().first(t).value()},e}();t.MultiAnalyticsClient=o},function(e,t,n){/*!
 * Pikaday
 *
 * Copyright © 2014 David Bushell | BSD & MIT license | https://github.com/dbushell/Pikaday
 */
!function(t,i){"use strict";var o;try{o=n(454)}catch(e){}e.exports=i(o)}(0,function(e){"use strict";var t="function"==typeof e,n=!!window.addEventListener,i=window.document,o=window.setTimeout,r=function(e,t,i,o){n?e.addEventListener(t,i,!!o):e.attachEvent("on"+t,i)},s=function(e,t,i,o){n?e.removeEventListener(t,i,!!o):e.detachEvent("on"+t,i)},a=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},u=function(e,t){return-1!==(" "+e.className+" ").indexOf(" "+t+" ")},l=function(e,t){u(e,t)||(e.className=""===e.className?t:e.className+" "+t)},c=function(e,t){e.className=a((" "+e.className+" ").replace(" "+t+" "," "))},p=function(e){return/Array/.test(Object.prototype.toString.call(e))},d=function(e){return/Date/.test(Object.prototype.toString.call(e))&&!isNaN(e.getTime())},h=function(e){var t=e.getDay();return 0===t||6===t},f=function(e){return e%4==0&&e%100!=0||e%400==0},m=function(e,t){return[31,f(e)?29:28,31,30,31,30,31,31,30,31,30,31][t]},y=function(e){d(e)&&e.setHours(0,0,0,0)},g=function(e,t){return e.getTime()===t.getTime()},v=function(e,t,n){var i,o;for(i in t)o=void 0!==e[i],o&&"object"==typeof t[i]&&null!==t[i]&&void 0===t[i].nodeName?d(t[i])?n&&(e[i]=new Date(t[i].getTime())):p(t[i])?n&&(e[i]=t[i].slice(0)):e[i]=v({},t[i],n):!n&&o||(e[i]=t[i]);return e},b=function(e,t,n){var o;i.createEvent?(o=i.createEvent("HTMLEvents"),o.initEvent(t,!0,!1),o=v(o,n),e.dispatchEvent(o)):i.createEventObject&&(o=i.createEventObject(),o=v(o,n),e.fireEvent("on"+t,o))},S=function(e){return e.month<0&&(e.year-=Math.ceil(Math.abs(e.month)/12),e.month+=12),e.month>11&&(e.year+=Math.floor(Math.abs(e.month)/12),e.month-=12),e},C={field:null,bound:void 0,position:"bottom left",reposition:!0,format:"YYYY-MM-DD",toString:null,parse:null,defaultDate:null,setDefaultDate:!1,firstDay:0,formatStrict:!1,minDate:null,maxDate:null,yearRange:10,showWeekNumber:!1,pickWholeWeek:!1,minYear:0,maxYear:9999,minMonth:void 0,maxMonth:void 0,startRange:null,endRange:null,isRTL:!1,yearSuffix:"",showMonthAfterYear:!1,showDaysInNextAndPreviousMonths:!1,enableSelectionDaysInNextAndPreviousMonths:!1,numberOfMonths:1,mainCalendar:"left",container:void 0,blurFieldOnSelect:!0,i18n:{previousMonth:"Previous Month",nextMonth:"Next Month",months:["January","February","March","April","May","June","July","August","September","October","November","December"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},theme:null,events:[],onSelect:null,onOpen:null,onClose:null,onDraw:null,keyboardInput:!0},w=function(e,t,n){for(t+=e.firstDay;t>=7;)t-=7;return n?e.i18n.weekdaysShort[t]:e.i18n.weekdays[t]},_=function(e){var t=[],n="false";if(e.isEmpty){if(!e.showDaysInNextAndPreviousMonths)return'<td class="is-empty"></td>';t.push("is-outside-current-month"),e.enableSelectionDaysInNextAndPreviousMonths||t.push("is-selection-disabled")}return e.isDisabled&&t.push("is-disabled"),e.isToday&&t.push("is-today"),e.isSelected&&(t.push("is-selected"),n="true"),e.hasEvent&&t.push("has-event"),e.isInRange&&t.push("is-inrange"),e.isStartRange&&t.push("is-startrange"),e.isEndRange&&t.push("is-endrange"),'<td data-day="'+e.day+'" class="'+t.join(" ")+'" aria-selected="'+n+'"><button class="pika-button pika-day" type="button" data-pika-year="'+e.year+'" data-pika-month="'+e.month+'" data-pika-day="'+e.day+'">'+e.day+"</button></td>"},O=function(e,t,n){var i=new Date(n,0,1);return'<td class="pika-week">'+Math.ceil(((new Date(n,t,e)-i)/864e5+i.getDay()+1)/7)+"</td>"},x=function(e,t,n,i){return'<tr class="pika-row'+(n?" pick-whole-week":"")+(i?" is-selected":"")+'">'+(t?e.reverse():e).join("")+"</tr>"},E=function(e){return"<tbody>"+e.join("")+"</tbody>"},A=function(e){var t,n=[];for(e.showWeekNumber&&n.push("<th></th>"),t=0;t<7;t++)n.push('<th scope="col"><abbr title="'+w(e,t)+'">'+w(e,t,!0)+"</abbr></th>");return"<thead><tr>"+(e.isRTL?n.reverse():n).join("")+"</tr></thead>"},T=function(e,t,n,i,o,r){var s,a,u,l,c,d=e._o,h=n===d.minYear,f=n===d.maxYear,m='<div id="'+r+'" class="pika-title" role="heading" aria-live="assertive">',y=!0,g=!0;for(u=[],s=0;s<12;s++)u.push('<option value="'+(n===o?s-t:12+s-t)+'"'+(s===i?' selected="selected"':"")+(h&&s<d.minMonth||f&&s>d.maxMonth?'disabled="disabled"':"")+">"+d.i18n.months[s]+"</option>");for(l='<div class="pika-label">'+d.i18n.months[i]+'<select class="pika-select pika-select-month" tabindex="-1">'+u.join("")+"</select></div>",p(d.yearRange)?(s=d.yearRange[0],a=d.yearRange[1]+1):(s=n-d.yearRange,a=1+n+d.yearRange),u=[];s<a&&s<=d.maxYear;s++)s>=d.minYear&&u.push('<option value="'+s+'"'+(s===n?' selected="selected"':"")+">"+s+"</option>");return c='<div class="pika-label">'+n+d.yearSuffix+'<select class="pika-select pika-select-year" tabindex="-1">'+u.join("")+"</select></div>",d.showMonthAfterYear?m+=c+l:m+=l+c,h&&(0===i||d.minMonth>=i)&&(y=!1),f&&(11===i||d.maxMonth<=i)&&(g=!1),0===t&&(m+='<button class="pika-prev'+(y?"":" is-disabled")+'" type="button">'+d.i18n.previousMonth+"</button>"),t===e._o.numberOfMonths-1&&(m+='<button class="pika-next'+(g?"":" is-disabled")+'" type="button">'+d.i18n.nextMonth+"</button>"),m+="</div>"},R=function(e,t,n){return'<table cellpadding="0" cellspacing="0" class="pika-table" role="grid" aria-labelledby="'+n+'">'+A(e)+E(t)+"</table>"},F=function(s){var a=this,l=a.config(s);a._onMouseDown=function(e){if(a._v){e=e||window.event;var t=e.target||e.srcElement;if(t)if(u(t,"is-disabled")||(!u(t,"pika-button")||u(t,"is-empty")||u(t.parentNode,"is-disabled")?u(t,"pika-prev")?a.prevMonth():u(t,"pika-next")&&a.nextMonth():(a.setDate(new Date(t.getAttribute("data-pika-year"),t.getAttribute("data-pika-month"),t.getAttribute("data-pika-day"))),l.bound&&o(function(){a.hide(),l.blurFieldOnSelect&&l.field&&l.field.blur()},100))),u(t,"pika-select"))a._c=!0;else{if(!e.preventDefault)return e.returnValue=!1,!1;e.preventDefault()}}},a._onChange=function(e){e=e||window.event;var t=e.target||e.srcElement;t&&(u(t,"pika-select-month")?a.gotoMonth(t.value):u(t,"pika-select-year")&&a.gotoYear(t.value))},a._onKeyChange=function(e){if(e=e||window.event,a.isVisible())switch(e.keyCode){case 13:case 27:l.field&&l.field.blur();break;case 37:e.preventDefault(),a.adjustDate("subtract",1);break;case 38:a.adjustDate("subtract",7);break;case 39:a.adjustDate("add",1);break;case 40:a.adjustDate("add",7)}},a._onInputChange=function(n){var i;n.firedBy!==a&&(l.parse?i=l.parse(l.field.value,l.format):t?(i=e(l.field.value,l.format,l.formatStrict),i=i&&i.isValid()?i.toDate():null):i=new Date(Date.parse(l.field.value)),d(i)&&a.setDate(i),a._v||a.show())},a._onInputFocus=function(){a.show()},a._onInputClick=function(){a.show()},a._onInputBlur=function(){var e=i.activeElement;do{if(u(e,"pika-single"))return}while(e=e.parentNode);a._c||(a._b=o(function(){a.hide()},50)),a._c=!1},a._onClick=function(e){e=e||window.event;var t=e.target||e.srcElement,i=t;if(t){!n&&u(t,"pika-select")&&(t.onchange||(t.setAttribute("onchange","return;"),r(t,"change",a._onChange)));do{if(u(i,"pika-single")||i===l.trigger)return}while(i=i.parentNode);a._v&&t!==l.trigger&&i!==l.trigger&&a.hide()}},a.el=i.createElement("div"),a.el.className="pika-single"+(l.isRTL?" is-rtl":"")+(l.theme?" "+l.theme:""),r(a.el,"mousedown",a._onMouseDown,!0),r(a.el,"touchend",a._onMouseDown,!0),r(a.el,"change",a._onChange),l.keyboardInput&&r(i,"keydown",a._onKeyChange),l.field&&(l.container?l.container.appendChild(a.el):l.bound?i.body.appendChild(a.el):l.field.parentNode.insertBefore(a.el,l.field.nextSibling),r(l.field,"change",a._onInputChange),l.defaultDate||(t&&l.field.value?l.defaultDate=e(l.field.value,l.format).toDate():l.defaultDate=new Date(Date.parse(l.field.value)),l.setDefaultDate=!0));var c=l.defaultDate;d(c)?l.setDefaultDate?a.setDate(c,!0):a.gotoDate(c):a.gotoDate(new Date),l.bound?(this.hide(),a.el.className+=" is-bound",r(l.trigger,"click",a._onInputClick),r(l.trigger,"focus",a._onInputFocus),r(l.trigger,"blur",a._onInputBlur)):this.show()};return F.prototype={config:function(e){this._o||(this._o=v({},C,!0));var t=v(this._o,e,!0);t.isRTL=!!t.isRTL,t.field=t.field&&t.field.nodeName?t.field:null,t.theme="string"==typeof t.theme&&t.theme?t.theme:null,t.bound=!!(void 0!==t.bound?t.field&&t.bound:t.field),t.trigger=t.trigger&&t.trigger.nodeName?t.trigger:t.field,t.disableWeekends=!!t.disableWeekends,t.disableDayFn="function"==typeof t.disableDayFn?t.disableDayFn:null;var n=parseInt(t.numberOfMonths,10)||1;if(t.numberOfMonths=n>4?4:n,d(t.minDate)||(t.minDate=!1),d(t.maxDate)||(t.maxDate=!1),t.minDate&&t.maxDate&&t.maxDate<t.minDate&&(t.maxDate=t.minDate=!1),t.minDate&&this.setMinDate(t.minDate),t.maxDate&&this.setMaxDate(t.maxDate),p(t.yearRange)){var i=(new Date).getFullYear()-10;t.yearRange[0]=parseInt(t.yearRange[0],10)||i,t.yearRange[1]=parseInt(t.yearRange[1],10)||i}else t.yearRange=Math.abs(parseInt(t.yearRange,10))||C.yearRange,t.yearRange>100&&(t.yearRange=100);return t},toString:function(n){return n=n||this._o.format,d(this._d)?this._o.toString?this._o.toString(this._d,n):t?e(this._d).format(n):this._d.toDateString():""},getMoment:function(){return t?e(this._d):null},setMoment:function(n,i){t&&e.isMoment(n)&&this.setDate(n.toDate(),i)},getDate:function(){return d(this._d)?new Date(this._d.getTime()):null},setDate:function(e,t){if(!e)return this._d=null,this._o.field&&(this._o.field.value="",b(this._o.field,"change",{firedBy:this})),this.draw();if("string"==typeof e&&(e=new Date(Date.parse(e))),d(e)){var n=this._o.minDate,i=this._o.maxDate;d(n)&&e<n?e=n:d(i)&&e>i&&(e=i),this._d=new Date(e.getTime()),y(this._d),this.gotoDate(this._d),this._o.field&&(this._o.field.value=this.toString(),b(this._o.field,"change",{firedBy:this})),t||"function"!=typeof this._o.onSelect||this._o.onSelect.call(this,this.getDate())}},gotoDate:function(e){var t=!0;if(d(e)){if(this.calendars){var n=new Date(this.calendars[0].year,this.calendars[0].month,1),i=new Date(this.calendars[this.calendars.length-1].year,this.calendars[this.calendars.length-1].month,1),o=e.getTime();i.setMonth(i.getMonth()+1),i.setDate(i.getDate()-1),t=o<n.getTime()||i.getTime()<o}t&&(this.calendars=[{month:e.getMonth(),year:e.getFullYear()}],"right"===this._o.mainCalendar&&(this.calendars[0].month+=1-this._o.numberOfMonths)),this.adjustCalendars()}},adjustDate:function(e,t){var n,i=this.getDate()||new Date,o=24*parseInt(t)*60*60*1e3;"add"===e?n=new Date(i.valueOf()+o):"subtract"===e&&(n=new Date(i.valueOf()-o)),this.setDate(n)},adjustCalendars:function(){this.calendars[0]=S(this.calendars[0]);for(var e=1;e<this._o.numberOfMonths;e++)this.calendars[e]=S({month:this.calendars[0].month+e,year:this.calendars[0].year});this.draw()},gotoToday:function(){this.gotoDate(new Date)},gotoMonth:function(e){isNaN(e)||(this.calendars[0].month=parseInt(e,10),this.adjustCalendars())},nextMonth:function(){this.calendars[0].month++,this.adjustCalendars()},prevMonth:function(){this.calendars[0].month--,this.adjustCalendars()},gotoYear:function(e){isNaN(e)||(this.calendars[0].year=parseInt(e,10),this.adjustCalendars())},setMinDate:function(e){e instanceof Date?(y(e),this._o.minDate=e,this._o.minYear=e.getFullYear(),this._o.minMonth=e.getMonth()):(this._o.minDate=C.minDate,this._o.minYear=C.minYear,this._o.minMonth=C.minMonth,this._o.startRange=C.startRange),this.draw()},setMaxDate:function(e){e instanceof Date?(y(e),this._o.maxDate=e,this._o.maxYear=e.getFullYear(),this._o.maxMonth=e.getMonth()):(this._o.maxDate=C.maxDate,this._o.maxYear=C.maxYear,this._o.maxMonth=C.maxMonth,this._o.endRange=C.endRange),this.draw()},setStartRange:function(e){this._o.startRange=e},setEndRange:function(e){this._o.endRange=e},draw:function(e){if(this._v||e){var t,n=this._o,i=n.minYear,r=n.maxYear,s=n.minMonth,a=n.maxMonth,u="";this._y<=i&&(this._y=i,!isNaN(s)&&this._m<s&&(this._m=s)),this._y>=r&&(this._y=r,!isNaN(a)&&this._m>a&&(this._m=a)),t="pika-title-"+Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,2);for(var l=0;l<n.numberOfMonths;l++)u+='<div class="pika-lendar">'+T(this,l,this.calendars[l].year,this.calendars[l].month,this.calendars[0].year,t)+this.render(this.calendars[l].year,this.calendars[l].month,t)+"</div>";this.el.innerHTML=u,n.bound&&"hidden"!==n.field.type&&o(function(){n.trigger.focus()},1),"function"==typeof this._o.onDraw&&this._o.onDraw(this),n.bound&&n.field.setAttribute("aria-label","Use the arrow keys to pick a date")}},adjustPosition:function(){var e,t,n,o,r,s,a,u,l,c;if(!this._o.container){if(this.el.style.position="absolute",e=this._o.trigger,t=e,n=this.el.offsetWidth,o=this.el.offsetHeight,r=window.innerWidth||i.documentElement.clientWidth,s=window.innerHeight||i.documentElement.clientHeight,a=window.pageYOffset||i.body.scrollTop||i.documentElement.scrollTop,"function"==typeof e.getBoundingClientRect)c=e.getBoundingClientRect(),u=c.left+window.pageXOffset,l=c.bottom+window.pageYOffset;else for(u=t.offsetLeft,l=t.offsetTop+t.offsetHeight;t=t.offsetParent;)u+=t.offsetLeft,l+=t.offsetTop;(this._o.reposition&&u+n>r||this._o.position.indexOf("right")>-1&&u-n+e.offsetWidth>0)&&(u=u-n+e.offsetWidth),(this._o.reposition&&l+o>s+a||this._o.position.indexOf("top")>-1&&l-o-e.offsetHeight>0)&&(l=l-o-e.offsetHeight),this.el.style.left=u+"px",this.el.style.top=l+"px"}},render:function(e,t,n){var i=this._o,o=new Date,r=m(e,t),s=new Date(e,t,1).getDay(),a=[],u=[];y(o),i.firstDay>0&&(s-=i.firstDay)<0&&(s+=7);for(var l=0===t?11:t-1,c=11===t?0:t+1,p=0===t?e-1:e,f=11===t?e+1:e,v=m(p,l),b=r+s,S=b;S>7;)S-=7;b+=7-S;for(var C=!1,w=0,E=0;w<b;w++){var A=new Date(e,t,w-s+1),T=!!d(this._d)&&g(A,this._d),F=g(A,o),M=-1!==i.events.indexOf(A.toDateString()),I=w<s||w>=r+s,P=w-s+1,D=t,$=e,N=i.startRange&&g(i.startRange,A),k=i.endRange&&g(i.endRange,A),V=i.startRange&&i.endRange&&i.startRange<A&&A<i.endRange,L=i.minDate&&A<i.minDate||i.maxDate&&A>i.maxDate||i.disableWeekends&&h(A)||i.disableDayFn&&i.disableDayFn(A);I&&(w<s?(P=v+P,D=l,$=p):(P-=r,D=c,$=f));var B={day:P,month:D,year:$,hasEvent:M,isSelected:T,isToday:F,isDisabled:L,isEmpty:I,isStartRange:N,isEndRange:k,isInRange:V,showDaysInNextAndPreviousMonths:i.showDaysInNextAndPreviousMonths,enableSelectionDaysInNextAndPreviousMonths:i.enableSelectionDaysInNextAndPreviousMonths};i.pickWholeWeek&&T&&(C=!0),u.push(_(B)),7==++E&&(i.showWeekNumber&&u.unshift(O(w-s,t,e)),a.push(x(u,i.isRTL,i.pickWholeWeek,C)),u=[],E=0,C=!1)}return R(i,a,n)},isVisible:function(){return this._v},show:function(){this.isVisible()||(this._v=!0,this.draw(),c(this.el,"is-hidden"),this._o.bound&&(r(i,"click",this._onClick),this.adjustPosition()),"function"==typeof this._o.onOpen&&this._o.onOpen.call(this))},hide:function(){var e=this._v;!1!==e&&(this._o.bound&&s(i,"click",this._onClick),this.el.style.position="static",this.el.style.left="auto",this.el.style.top="auto",l(this.el,"is-hidden"),this._v=!1,void 0!==e&&"function"==typeof this._o.onClose&&this._o.onClose.call(this))},destroy:function(){var e=this._o;this.hide(),s(this.el,"mousedown",this._onMouseDown,!0),s(this.el,"touchend",this._onMouseDown,!0),s(this.el,"change",this._onChange),e.keyboardInput&&s(i,"keydown",this._onKeyChange),e.field&&(s(e.field,"change",this._onInputChange),e.bound&&(s(e.trigger,"click",this._onInputClick),s(e.trigger,"focus",this._onInputFocus),s(e.trigger,"blur",this._onInputBlur))),this.el.parentNode&&this.el.parentNode.removeChild(this.el)}},F})},function(e,t,n){(function(e){!function(t,n){e.exports=n()}(0,function(){"use strict";function t(){return Ai.apply(null,arguments)}function n(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function i(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function o(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(e.hasOwnProperty(t))return!1;return!0}function r(e){return void 0===e}function s(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function a(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function u(e,t){var n,i=[];for(n=0;n<e.length;++n)i.push(t(e[n],n));return i}function l(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function c(e,t){for(var n in t)l(t,n)&&(e[n]=t[n]);return l(t,"toString")&&(e.toString=t.toString),l(t,"valueOf")&&(e.valueOf=t.valueOf),e}function p(e,t,n,i){return Ot(e,t,n,i,!0).utc()}function d(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function h(e){return null==e._pf&&(e._pf=d()),e._pf}function f(e){if(null==e._isValid){var t=h(e),n=Ti.call(t.parsedDateParts,function(e){return null!=e}),i=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n);if(e._strict&&(i=i&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return i;e._isValid=i}return e._isValid}function m(e){var t=p(NaN);return null!=e?c(h(t),e):h(t).userInvalidated=!0,t}function y(e,t){var n,i,o;if(r(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),r(t._i)||(e._i=t._i),r(t._f)||(e._f=t._f),r(t._l)||(e._l=t._l),r(t._strict)||(e._strict=t._strict),r(t._tzm)||(e._tzm=t._tzm),r(t._isUTC)||(e._isUTC=t._isUTC),r(t._offset)||(e._offset=t._offset),r(t._pf)||(e._pf=h(t)),r(t._locale)||(e._locale=t._locale),Ri.length>0)for(n=0;n<Ri.length;n++)i=Ri[n],o=t[i],r(o)||(e[i]=o);return e}function g(e){y(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===Fi&&(Fi=!0,t.updateOffset(this),Fi=!1)}function v(e){return e instanceof g||null!=e&&null!=e._isAMomentObject}function b(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function S(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=b(t)),n}function C(e,t,n){var i,o=Math.min(e.length,t.length),r=Math.abs(e.length-t.length),s=0;for(i=0;i<o;i++)(n&&e[i]!==t[i]||!n&&S(e[i])!==S(t[i]))&&s++;return s+r}function w(e){!1===t.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function _(e,n){var i=!0;return c(function(){if(null!=t.deprecationHandler&&t.deprecationHandler(null,e),i){for(var o,r=[],s=0;s<arguments.length;s++){if(o="","object"==typeof arguments[s]){o+="\n["+s+"] ";for(var a in arguments[0])o+=a+": "+arguments[0][a]+", ";o=o.slice(0,-2)}else o=arguments[s];r.push(o)}w(e+"\nArguments: "+Array.prototype.slice.call(r).join("")+"\n"+(new Error).stack),i=!1}return n.apply(this,arguments)},n)}function O(e,n){null!=t.deprecationHandler&&t.deprecationHandler(e,n),Mi[e]||(w(n),Mi[e]=!0)}function x(e){return e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function E(e){var t,n;for(n in e)t=e[n],x(t)?this[n]=t:this["_"+n]=t;this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function A(e,t){var n,o=c({},e);for(n in t)l(t,n)&&(i(e[n])&&i(t[n])?(o[n]={},c(o[n],e[n]),c(o[n],t[n])):null!=t[n]?o[n]=t[n]:delete o[n]);for(n in e)l(e,n)&&!l(t,n)&&i(e[n])&&(o[n]=c({},o[n]));return o}function T(e){null!=e&&this.set(e)}function R(e,t,n){var i=this._calendar[e]||this._calendar.sameElse;return x(i)?i.call(t,n):i}function F(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.replace(/MMMM|MM|DD|dddd/g,function(e){return e.slice(1)}),this._longDateFormat[e])}function M(){return this._invalidDate}function I(e){return this._ordinal.replace("%d",e)}function P(e,t,n,i){var o=this._relativeTime[n];return x(o)?o(e,t,n,i):o.replace(/%d/i,e)}function D(e,t){var n=this._relativeTime[e>0?"future":"past"];return x(n)?n(t):n.replace(/%s/i,t)}function $(e,t){var n=e.toLowerCase();ki[n]=ki[n+"s"]=ki[t]=e}function N(e){return"string"==typeof e?ki[e]||ki[e.toLowerCase()]:void 0}function k(e){var t,n,i={};for(n in e)l(e,n)&&(t=N(n))&&(i[t]=e[n]);return i}function V(e,t){Vi[e]=t}function L(e){var t=[];for(var n in e)t.push({unit:n,priority:Vi[n]});return t.sort(function(e,t){return e.priority-t.priority}),t}function B(e,t,n){var i=""+Math.abs(e),o=t-i.length;return(e>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,o)).toString().substr(1)+i}function U(e,t,n,i){var o=i;"string"==typeof i&&(o=function(){return this[i]()}),e&&(Qi[e]=o),t&&(Qi[t[0]]=function(){return B(o.apply(this,arguments),t[1],t[2])}),n&&(Qi[n]=function(){return this.localeData().ordinal(o.apply(this,arguments),e)})}function Q(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function j(e){var t,n,i=e.match(Li);for(t=0,n=i.length;t<n;t++)Qi[i[t]]?i[t]=Qi[i[t]]:i[t]=Q(i[t]);return function(t){var o,r="";for(o=0;o<n;o++)r+=x(i[o])?i[o].call(t,e):i[o];return r}}function H(e,t){return e.isValid()?(t=q(t,e.localeData()),Ui[t]=Ui[t]||j(t),Ui[t](e)):e.localeData().invalidDate()}function q(e,t){function n(e){return t.longDateFormat(e)||e}var i=5;for(Bi.lastIndex=0;i>=0&&Bi.test(e);)e=e.replace(Bi,n),Bi.lastIndex=0,i-=1;return e}function z(e,t,n){so[e]=x(t)?t:function(e,i){return e&&n?n:t}}function W(e,t){return l(so,e)?so[e](t._strict,t._locale):new RegExp(G(e))}function G(e){return Y(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,i,o){return t||n||i||o}))}function Y(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function K(e,t){var n,i=t;for("string"==typeof e&&(e=[e]),s(t)&&(i=function(e,n){n[t]=S(e)}),n=0;n<e.length;n++)ao[e[n]]=i}function J(e,t){K(e,function(e,n,i,o){i._w=i._w||{},t(e,i._w,i,o)})}function Z(e,t,n){null!=t&&l(ao,e)&&ao[e](t,n._a,n,e)}function X(e){return ee(e)?366:365}function ee(e){return e%4==0&&e%100!=0||e%400==0}function te(){return ee(this.year())}function ne(e,n){return function(i){return null!=i?(oe(this,e,i),t.updateOffset(this,n),this):ie(this,e)}}function ie(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function oe(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&ee(e.year())&&1===e.month()&&29===e.date()?e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),ue(n,e.month())):e._d["set"+(e._isUTC?"UTC":"")+t](n))}function re(e){return e=N(e),x(this[e])?this[e]():this}function se(e,t){if("object"==typeof e){e=k(e);for(var n=L(e),i=0;i<n.length;i++)this[n[i].unit](e[n[i].unit])}else if(e=N(e),x(this[e]))return this[e](t);return this}function ae(e,t){return(e%t+t)%t}function ue(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=ae(t,12);return e+=(t-n)/12,1===n?ee(e)?29:28:31-n%7%2}function le(e,t){return e?n(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||So).test(t)?"format":"standalone"][e.month()]:n(this._months)?this._months:this._months.standalone}function ce(e,t){return e?n(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[So.test(t)?"format":"standalone"][e.month()]:n(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function pe(e,t,n){var i,o,r,s=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],i=0;i<12;++i)r=p([2e3,i]),this._shortMonthsParse[i]=this.monthsShort(r,"").toLocaleLowerCase(),this._longMonthsParse[i]=this.months(r,"").toLocaleLowerCase();return n?"MMM"===t?(o=vo.call(this._shortMonthsParse,s),-1!==o?o:null):(o=vo.call(this._longMonthsParse,s),-1!==o?o:null):"MMM"===t?-1!==(o=vo.call(this._shortMonthsParse,s))?o:(o=vo.call(this._longMonthsParse,s),-1!==o?o:null):-1!==(o=vo.call(this._longMonthsParse,s))?o:(o=vo.call(this._shortMonthsParse,s),-1!==o?o:null)}function de(e,t,n){var i,o,r;if(this._monthsParseExact)return pe.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(o=p([2e3,i]),n&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(o,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(o,"").replace(".","")+"$","i")),n||this._monthsParse[i]||(r="^"+this.months(o,"")+"|^"+this.monthsShort(o,""),this._monthsParse[i]=new RegExp(r.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[i].test(e))return i;if(n&&"MMM"===t&&this._shortMonthsParse[i].test(e))return i;if(!n&&this._monthsParse[i].test(e))return i}}function he(e,t){var n;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=S(t);else if(t=e.localeData().monthsParse(t),!s(t))return e;return n=Math.min(e.date(),ue(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function fe(e){return null!=e?(he(this,e),t.updateOffset(this,!0),this):ie(this,"Month")}function me(){return ue(this.year(),this.month())}function ye(e){return this._monthsParseExact?(l(this,"_monthsRegex")||ve.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(l(this,"_monthsShortRegex")||(this._monthsShortRegex=_o),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function ge(e){return this._monthsParseExact?(l(this,"_monthsRegex")||ve.call(this),e?this._monthsStrictRegex:this._monthsRegex):(l(this,"_monthsRegex")||(this._monthsRegex=Oo),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function ve(){function e(e,t){return t.length-e.length}var t,n,i=[],o=[],r=[];for(t=0;t<12;t++)n=p([2e3,t]),i.push(this.monthsShort(n,"")),o.push(this.months(n,"")),r.push(this.months(n,"")),r.push(this.monthsShort(n,""));for(i.sort(e),o.sort(e),r.sort(e),t=0;t<12;t++)i[t]=Y(i[t]),o[t]=Y(o[t]);for(t=0;t<24;t++)r[t]=Y(r[t]);this._monthsRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+i.join("|")+")","i")}function be(e,t,n,i,o,r,s){var a=new Date(e,t,n,i,o,r,s);return e<100&&e>=0&&isFinite(a.getFullYear())&&a.setFullYear(e),a}function Se(e){var t=new Date(Date.UTC.apply(null,arguments));return e<100&&e>=0&&isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e),t}function Ce(e,t,n){var i=7+t-n;return-(7+Se(e,0,i).getUTCDay()-t)%7+i-1}function we(e,t,n,i,o){var r,s,a=(7+n-i)%7,u=Ce(e,i,o),l=1+7*(t-1)+a+u;return l<=0?(r=e-1,s=X(r)+l):l>X(e)?(r=e+1,s=l-X(e)):(r=e,s=l),{year:r,dayOfYear:s}}function _e(e,t,n){var i,o,r=Ce(e.year(),t,n),s=Math.floor((e.dayOfYear()-r-1)/7)+1;return s<1?(o=e.year()-1,i=s+Oe(o,t,n)):s>Oe(e.year(),t,n)?(i=s-Oe(e.year(),t,n),o=e.year()+1):(o=e.year(),i=s),{week:i,year:o}}function Oe(e,t,n){var i=Ce(e,t,n),o=Ce(e+1,t,n);return(X(e)-i+o)/7}function xe(e){return _e(e,this._week.dow,this._week.doy).week}function Ee(){return this._week.dow}function Ae(){return this._week.doy}function Te(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function Re(e){var t=_e(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}function Fe(e,t){return"string"!=typeof e?e:isNaN(e)?(e=t.weekdaysParse(e),"number"==typeof e?e:null):parseInt(e,10)}function Me(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Ie(e,t){return e?n(this._weekdays)?this._weekdays[e.day()]:this._weekdays[this._weekdays.isFormat.test(t)?"format":"standalone"][e.day()]:n(this._weekdays)?this._weekdays:this._weekdays.standalone}function Pe(e){return e?this._weekdaysShort[e.day()]:this._weekdaysShort}function De(e){return e?this._weekdaysMin[e.day()]:this._weekdaysMin}function $e(e,t,n){var i,o,r,s=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)r=p([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(r,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(r,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(r,"").toLocaleLowerCase();return n?"dddd"===t?(o=vo.call(this._weekdaysParse,s),-1!==o?o:null):"ddd"===t?(o=vo.call(this._shortWeekdaysParse,s),-1!==o?o:null):(o=vo.call(this._minWeekdaysParse,s),-1!==o?o:null):"dddd"===t?-1!==(o=vo.call(this._weekdaysParse,s))?o:-1!==(o=vo.call(this._shortWeekdaysParse,s))?o:(o=vo.call(this._minWeekdaysParse,s),-1!==o?o:null):"ddd"===t?-1!==(o=vo.call(this._shortWeekdaysParse,s))?o:-1!==(o=vo.call(this._weekdaysParse,s))?o:(o=vo.call(this._minWeekdaysParse,s),-1!==o?o:null):-1!==(o=vo.call(this._minWeekdaysParse,s))?o:-1!==(o=vo.call(this._weekdaysParse,s))?o:(o=vo.call(this._shortWeekdaysParse,s),-1!==o?o:null)}function Ne(e,t,n){var i,o,r;if(this._weekdaysParseExact)return $e.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(o=p([2e3,1]).day(i),n&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(o,"").replace(".",".?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(o,"").replace(".",".?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(o,"").replace(".",".?")+"$","i")),this._weekdaysParse[i]||(r="^"+this.weekdays(o,"")+"|^"+this.weekdaysShort(o,"")+"|^"+this.weekdaysMin(o,""),this._weekdaysParse[i]=new RegExp(r.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[i].test(e))return i;if(n&&"ddd"===t&&this._shortWeekdaysParse[i].test(e))return i;if(n&&"dd"===t&&this._minWeekdaysParse[i].test(e))return i;if(!n&&this._weekdaysParse[i].test(e))return i}}function ke(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=Fe(e,this.localeData()),this.add(e-t,"d")):t}function Ve(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")}function Le(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=Me(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function Be(e){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||je.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(l(this,"_weekdaysRegex")||(this._weekdaysRegex=Ro),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Ue(e){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||je.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(l(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Fo),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Qe(e){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||je.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(l(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Mo),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function je(){function e(e,t){return t.length-e.length}var t,n,i,o,r,s=[],a=[],u=[],l=[];for(t=0;t<7;t++)n=p([2e3,1]).day(t),i=this.weekdaysMin(n,""),o=this.weekdaysShort(n,""),r=this.weekdays(n,""),s.push(i),a.push(o),u.push(r),l.push(i),l.push(o),l.push(r);for(s.sort(e),a.sort(e),u.sort(e),l.sort(e),t=0;t<7;t++)a[t]=Y(a[t]),u[t]=Y(u[t]),l[t]=Y(l[t]);this._weekdaysRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+s.join("|")+")","i")}function He(){return this.hours()%12||12}function qe(){return this.hours()||24}function ze(e,t){U(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function We(e,t){return t._meridiemParse}function Ge(e){return"p"===(e+"").toLowerCase().charAt(0)}function Ye(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}function Ke(e){return e?e.toLowerCase().replace("_","-"):e}function Je(e){for(var t,n,i,o,r=0;r<e.length;){for(o=Ke(e[r]).split("-"),t=o.length,n=Ke(e[r+1]),n=n?n.split("-"):null;t>0;){if(i=Ze(o.slice(0,t).join("-")))return i;if(n&&n.length>=t&&C(o,n,!0)>=t-1)break;t--}r++}return null}function Ze(t){var n=null;if(!No[t]&&void 0!==e&&e&&e.exports)try{n=Io._abbr;!function(){var e=new Error('Cannot find module "./locale"');throw e.code="MODULE_NOT_FOUND",e}(),Xe(n)}catch(e){}return No[t]}function Xe(e,t){var n;return e&&(n=r(t)?nt(e):et(e,t))&&(Io=n),Io._abbr}function et(e,t){if(null!==t){var n=$o;if(t.abbr=e,null!=No[e])O("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=No[e]._config;else if(null!=t.parentLocale){if(null==No[t.parentLocale])return ko[t.parentLocale]||(ko[t.parentLocale]=[]),ko[t.parentLocale].push({name:e,config:t}),null;n=No[t.parentLocale]._config}return No[e]=new T(A(n,t)),ko[e]&&ko[e].forEach(function(e){et(e.name,e.config)}),Xe(e),No[e]}return delete No[e],null}function tt(e,t){if(null!=t){var n,i,o=$o;i=Ze(e),null!=i&&(o=i._config),t=A(o,t),n=new T(t),n.parentLocale=No[e],No[e]=n,Xe(e)}else null!=No[e]&&(null!=No[e].parentLocale?No[e]=No[e].parentLocale:null!=No[e]&&delete No[e]);return No[e]}function nt(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Io;if(!n(e)){if(t=Ze(e))return t;e=[e]}return Je(e)}function it(){return Ii(No)}function ot(e){var t,n=e._a;return n&&-2===h(e).overflow&&(t=n[lo]<0||n[lo]>11?lo:n[co]<1||n[co]>ue(n[uo],n[lo])?co:n[po]<0||n[po]>24||24===n[po]&&(0!==n[ho]||0!==n[fo]||0!==n[mo])?po:n[ho]<0||n[ho]>59?ho:n[fo]<0||n[fo]>59?fo:n[mo]<0||n[mo]>999?mo:-1,h(e)._overflowDayOfYear&&(t<uo||t>co)&&(t=co),h(e)._overflowWeeks&&-1===t&&(t=yo),h(e)._overflowWeekday&&-1===t&&(t=go),h(e).overflow=t),e}function rt(e,t,n){return null!=e?e:null!=t?t:n}function st(e){var n=new Date(t.now());return e._useUTC?[n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate()]:[n.getFullYear(),n.getMonth(),n.getDate()]}function at(e){var t,n,i,o,r,s=[];if(!e._d){for(i=st(e),e._w&&null==e._a[co]&&null==e._a[lo]&&ut(e),null!=e._dayOfYear&&(r=rt(e._a[uo],i[uo]),(e._dayOfYear>X(r)||0===e._dayOfYear)&&(h(e)._overflowDayOfYear=!0),n=Se(r,0,e._dayOfYear),e._a[lo]=n.getUTCMonth(),e._a[co]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=s[t]=i[t];for(;t<7;t++)e._a[t]=s[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[po]&&0===e._a[ho]&&0===e._a[fo]&&0===e._a[mo]&&(e._nextDay=!0,e._a[po]=0),e._d=(e._useUTC?Se:be).apply(null,s),o=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[po]=24),e._w&&void 0!==e._w.d&&e._w.d!==o&&(h(e).weekdayMismatch=!0)}}function ut(e){var t,n,i,o,r,s,a,u;if(t=e._w,null!=t.GG||null!=t.W||null!=t.E)r=1,s=4,n=rt(t.GG,e._a[uo],_e(xt(),1,4).year),i=rt(t.W,1),((o=rt(t.E,1))<1||o>7)&&(u=!0);else{r=e._locale._week.dow,s=e._locale._week.doy;var l=_e(xt(),r,s);n=rt(t.gg,e._a[uo],l.year),i=rt(t.w,l.week),null!=t.d?((o=t.d)<0||o>6)&&(u=!0):null!=t.e?(o=t.e+r,(t.e<0||t.e>6)&&(u=!0)):o=r}i<1||i>Oe(n,r,s)?h(e)._overflowWeeks=!0:null!=u?h(e)._overflowWeekday=!0:(a=we(n,i,o,r,s),e._a[uo]=a.year,e._dayOfYear=a.dayOfYear)}function lt(e){var t,n,i,o,r,s,a=e._i,u=Vo.exec(a)||Lo.exec(a);if(u){for(h(e).iso=!0,t=0,n=Uo.length;t<n;t++)if(Uo[t][1].exec(u[1])){o=Uo[t][0],i=!1!==Uo[t][2];break}if(null==o)return void(e._isValid=!1);if(u[3]){for(t=0,n=Qo.length;t<n;t++)if(Qo[t][1].exec(u[3])){r=(u[2]||" ")+Qo[t][0];break}if(null==r)return void(e._isValid=!1)}if(!i&&null!=r)return void(e._isValid=!1);if(u[4]){if(!Bo.exec(u[4]))return void(e._isValid=!1);s="Z"}e._f=o+(r||"")+(s||""),gt(e)}else e._isValid=!1}function ct(e,t,n,i,o,r){var s=[pt(e),wo.indexOf(t),parseInt(n,10),parseInt(i,10),parseInt(o,10)];return r&&s.push(parseInt(r,10)),s}function pt(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function dt(e){return e.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}function ht(e,t,n){if(e){if(Ao.indexOf(e)!==new Date(t[0],t[1],t[2]).getDay())return h(n).weekdayMismatch=!0,n._isValid=!1,!1}return!0}function ft(e,t,n){if(e)return qo[e];if(t)return 0;var i=parseInt(n,10),o=i%100;return(i-o)/100*60+o}function mt(e){var t=Ho.exec(dt(e._i));if(t){var n=ct(t[4],t[3],t[2],t[5],t[6],t[7]);if(!ht(t[1],n,e))return;e._a=n,e._tzm=ft(t[8],t[9],t[10]),e._d=Se.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),h(e).rfc2822=!0}else e._isValid=!1}function yt(e){var n=jo.exec(e._i);if(null!==n)return void(e._d=new Date(+n[1]));lt(e),!1===e._isValid&&(delete e._isValid,mt(e),!1===e._isValid&&(delete e._isValid,t.createFromInputFallback(e)))}function gt(e){if(e._f===t.ISO_8601)return void lt(e);if(e._f===t.RFC_2822)return void mt(e);e._a=[],h(e).empty=!0;var n,i,o,r,s,a=""+e._i,u=a.length,l=0;for(o=q(e._f,e._locale).match(Li)||[],n=0;n<o.length;n++)r=o[n],i=(a.match(W(r,e))||[])[0],i&&(s=a.substr(0,a.indexOf(i)),s.length>0&&h(e).unusedInput.push(s),a=a.slice(a.indexOf(i)+i.length),l+=i.length),Qi[r]?(i?h(e).empty=!1:h(e).unusedTokens.push(r),Z(r,i,e)):e._strict&&!i&&h(e).unusedTokens.push(r);h(e).charsLeftOver=u-l,a.length>0&&h(e).unusedInput.push(a),e._a[po]<=12&&!0===h(e).bigHour&&e._a[po]>0&&(h(e).bigHour=void 0),h(e).parsedDateParts=e._a.slice(0),h(e).meridiem=e._meridiem,e._a[po]=vt(e._locale,e._a[po],e._meridiem),at(e),ot(e)}function vt(e,t,n){var i;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?(i=e.isPM(n),i&&t<12&&(t+=12),i||12!==t||(t=0),t):t}function bt(e){var t,n,i,o,r;if(0===e._f.length)return h(e).invalidFormat=!0,void(e._d=new Date(NaN));for(o=0;o<e._f.length;o++)r=0,t=y({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[o],gt(t),f(t)&&(r+=h(t).charsLeftOver,r+=10*h(t).unusedTokens.length,h(t).score=r,(null==i||r<i)&&(i=r,n=t));c(e,n||t)}function St(e){if(!e._d){var t=k(e._i);e._a=u([t.year,t.month,t.day||t.date,t.hour,t.minute,t.second,t.millisecond],function(e){return e&&parseInt(e,10)}),at(e)}}function Ct(e){var t=new g(ot(wt(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function wt(e){var t=e._i,i=e._f;return e._locale=e._locale||nt(e._l),null===t||void 0===i&&""===t?m({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),v(t)?new g(ot(t)):(a(t)?e._d=t:n(i)?bt(e):i?gt(e):_t(e),f(e)||(e._d=null),e))}function _t(e){var o=e._i;r(o)?e._d=new Date(t.now()):a(o)?e._d=new Date(o.valueOf()):"string"==typeof o?yt(e):n(o)?(e._a=u(o.slice(0),function(e){return parseInt(e,10)}),at(e)):i(o)?St(e):s(o)?e._d=new Date(o):t.createFromInputFallback(e)}function Ot(e,t,r,s,a){var u={};return!0!==r&&!1!==r||(s=r,r=void 0),(i(e)&&o(e)||n(e)&&0===e.length)&&(e=void 0),u._isAMomentObject=!0,u._useUTC=u._isUTC=a,u._l=r,u._i=e,u._f=t,u._strict=s,Ct(u)}function xt(e,t,n,i){return Ot(e,t,n,i,!1)}function Et(e,t){var i,o;if(1===t.length&&n(t[0])&&(t=t[0]),!t.length)return xt();for(i=t[0],o=1;o<t.length;++o)t[o].isValid()&&!t[o][e](i)||(i=t[o]);return i}function At(){return Et("isBefore",[].slice.call(arguments,0))}function Tt(){return Et("isAfter",[].slice.call(arguments,0))}function Rt(e){for(var t in e)if(-1===vo.call(Yo,t)||null!=e[t]&&isNaN(e[t]))return!1;for(var n=!1,i=0;i<Yo.length;++i)if(e[Yo[i]]){if(n)return!1;parseFloat(e[Yo[i]])!==S(e[Yo[i]])&&(n=!0)}return!0}function Ft(){return this._isValid}function Mt(){return Kt(NaN)}function It(e){var t=k(e),n=t.year||0,i=t.quarter||0,o=t.month||0,r=t.week||0,s=t.day||0,a=t.hour||0,u=t.minute||0,l=t.second||0,c=t.millisecond||0;this._isValid=Rt(t),this._milliseconds=+c+1e3*l+6e4*u+1e3*a*60*60,this._days=+s+7*r,this._months=+o+3*i+12*n,this._data={},this._locale=nt(),this._bubble()}function Pt(e){return e instanceof It}function Dt(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function $t(e,t){U(e,0,0,function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+B(~~(e/60),2)+t+B(~~e%60,2)})}function Nt(e,t){var n=(t||"").match(e);if(null===n)return null;var i=n[n.length-1]||[],o=(i+"").match(Ko)||["-",0,0],r=60*o[1]+S(o[2]);return 0===r?0:"+"===o[0]?r:-r}function kt(e,n){var i,o;return n._isUTC?(i=n.clone(),o=(v(e)||a(e)?e.valueOf():xt(e).valueOf())-i.valueOf(),i._d.setTime(i._d.valueOf()+o),t.updateOffset(i,!1),i):xt(e).local()}function Vt(e){return 15*-Math.round(e._d.getTimezoneOffset()/15)}function Lt(e,n,i){var o,r=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=Nt(io,e)))return this}else Math.abs(e)<16&&!i&&(e*=60);return!this._isUTC&&n&&(o=Vt(this)),this._offset=e,this._isUTC=!0,null!=o&&this.add(o,"m"),r!==e&&(!n||this._changeInProgress?tn(this,Kt(e-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,t.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?r:Vt(this)}function Bt(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function Ut(e){return this.utcOffset(0,e)}function Qt(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Vt(this),"m")),this}function jt(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=Nt(no,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this}function Ht(e){return!!this.isValid()&&(e=e?xt(e).utcOffset():0,(this.utcOffset()-e)%60==0)}function qt(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function zt(){if(!r(this._isDSTShifted))return this._isDSTShifted;var e={};if(y(e,this),e=wt(e),e._a){var t=e._isUTC?p(e._a):xt(e._a);this._isDSTShifted=this.isValid()&&C(e._a,t.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}function Wt(){return!!this.isValid()&&!this._isUTC}function Gt(){return!!this.isValid()&&this._isUTC}function Yt(){return!!this.isValid()&&(this._isUTC&&0===this._offset)}function Kt(e,t){var n,i,o,r=e,a=null;return Pt(e)?r={ms:e._milliseconds,d:e._days,M:e._months}:s(e)?(r={},t?r[t]=e:r.milliseconds=e):(a=Jo.exec(e))?(n="-"===a[1]?-1:1,r={y:0,d:S(a[co])*n,h:S(a[po])*n,m:S(a[ho])*n,s:S(a[fo])*n,ms:S(Dt(1e3*a[mo]))*n}):(a=Zo.exec(e))?(n="-"===a[1]?-1:(a[1],1),r={y:Jt(a[2],n),M:Jt(a[3],n),w:Jt(a[4],n),d:Jt(a[5],n),h:Jt(a[6],n),m:Jt(a[7],n),s:Jt(a[8],n)}):null==r?r={}:"object"==typeof r&&("from"in r||"to"in r)&&(o=Xt(xt(r.from),xt(r.to)),r={},r.ms=o.milliseconds,r.M=o.months),i=new It(r),Pt(e)&&l(e,"_locale")&&(i._locale=e._locale),i}function Jt(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Zt(e,t){var n={milliseconds:0,months:0};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Xt(e,t){var n;return e.isValid()&&t.isValid()?(t=kt(t,e),e.isBefore(t)?n=Zt(e,t):(n=Zt(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function en(e,t){return function(n,i){var o,r;return null===i||isNaN(+i)||(O(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),r=n,n=i,i=r),n="string"==typeof n?+n:n,o=Kt(n,i),tn(this,o,e),this}}function tn(e,n,i,o){var r=n._milliseconds,s=Dt(n._days),a=Dt(n._months);e.isValid()&&(o=null==o||o,a&&he(e,ie(e,"Month")+a*i),s&&oe(e,"Date",ie(e,"Date")+s*i),r&&e._d.setTime(e._d.valueOf()+r*i),o&&t.updateOffset(e,s||a))}function nn(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function on(e,n){var i=e||xt(),o=kt(i,this).startOf("day"),r=t.calendarFormat(this,o)||"sameElse",s=n&&(x(n[r])?n[r].call(this,i):n[r]);return this.format(s||this.localeData().calendar(r,this,xt(i)))}function rn(){return new g(this)}function sn(e,t){var n=v(e)?e:xt(e);return!(!this.isValid()||!n.isValid())&&(t=N(r(t)?"millisecond":t),"millisecond"===t?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())}function an(e,t){var n=v(e)?e:xt(e);return!(!this.isValid()||!n.isValid())&&(t=N(r(t)?"millisecond":t),"millisecond"===t?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())}function un(e,t,n,i){return i=i||"()",("("===i[0]?this.isAfter(e,n):!this.isBefore(e,n))&&(")"===i[1]?this.isBefore(t,n):!this.isAfter(t,n))}function ln(e,t){var n,i=v(e)?e:xt(e);return!(!this.isValid()||!i.isValid())&&(t=N(t||"millisecond"),"millisecond"===t?this.valueOf()===i.valueOf():(n=i.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))}function cn(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function pn(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function dn(e,t,n){var i,o,r;if(!this.isValid())return NaN;if(i=kt(e,this),!i.isValid())return NaN;switch(o=6e4*(i.utcOffset()-this.utcOffset()),t=N(t)){case"year":r=hn(this,i)/12;break;case"month":r=hn(this,i);break;case"quarter":r=hn(this,i)/3;break;case"second":r=(this-i)/1e3;break;case"minute":r=(this-i)/6e4;break;case"hour":r=(this-i)/36e5;break;case"day":r=(this-i-o)/864e5;break;case"week":r=(this-i-o)/6048e5;break;default:r=this-i}return n?r:b(r)}function hn(e,t){var n,i,o=12*(t.year()-e.year())+(t.month()-e.month()),r=e.clone().add(o,"months");return t-r<0?(n=e.clone().add(o-1,"months"),i=(t-r)/(r-n)):(n=e.clone().add(o+1,"months"),i=(t-r)/(n-r)),-(o+i)||0}function fn(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function mn(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?H(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):x(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this._d.valueOf()).toISOString().replace("Z",H(n,"Z")):H(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function yn(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="";this.isLocal()||(e=0===this.utcOffset()?"moment.utc":"moment.parseZone",t="Z");var n="["+e+'("]',i=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",o=t+'[")]';return this.format(n+i+"-MM-DD[T]HH:mm:ss.SSS"+o)}function gn(e){e||(e=this.isUtc()?t.defaultFormatUtc:t.defaultFormat);var n=H(this,e);return this.localeData().postformat(n)}function vn(e,t){return this.isValid()&&(v(e)&&e.isValid()||xt(e).isValid())?Kt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function bn(e){return this.from(xt(),e)}function Sn(e,t){return this.isValid()&&(v(e)&&e.isValid()||xt(e).isValid())?Kt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Cn(e){return this.to(xt(),e)}function wn(e){var t;return void 0===e?this._locale._abbr:(t=nt(e),null!=t&&(this._locale=t),this)}function _n(){return this._locale}function On(e){switch(e=N(e)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":case"date":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===e&&this.weekday(0),"isoWeek"===e&&this.isoWeekday(1),"quarter"===e&&this.month(3*Math.floor(this.month()/3)),this}function xn(e){return void 0===(e=N(e))||"millisecond"===e?this:("date"===e&&(e="day"),this.startOf(e).add(1,"isoWeek"===e?"week":e).subtract(1,"ms"))}function En(){return this._d.valueOf()-6e4*(this._offset||0)}function An(){return Math.floor(this.valueOf()/1e3)}function Tn(){return new Date(this.valueOf())}function Rn(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function Fn(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function Mn(){return this.isValid()?this.toISOString():null}function In(){return f(this)}function Pn(){return c({},h(this))}function Dn(){return h(this).overflow}function $n(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function Nn(e,t){U(0,[e,e.length],0,t)}function kn(e){return Un.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function Vn(e){return Un.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function Ln(){return Oe(this.year(),1,4)}function Bn(){var e=this.localeData()._week;return Oe(this.year(),e.dow,e.doy)}function Un(e,t,n,i,o){var r;return null==e?_e(this,i,o).year:(r=Oe(e,i,o),t>r&&(t=r),Qn.call(this,e,t,n,i,o))}function Qn(e,t,n,i,o){var r=we(e,t,n,i,o),s=Se(r.year,0,r.dayOfYear);return this.year(s.getUTCFullYear()),this.month(s.getUTCMonth()),this.date(s.getUTCDate()),this}function jn(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}function Hn(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")}function qn(e,t){t[mo]=S(1e3*("0."+e))}function zn(){return this._isUTC?"UTC":""}function Wn(){return this._isUTC?"Coordinated Universal Time":""}function Gn(e){return xt(1e3*e)}function Yn(){return xt.apply(null,arguments).parseZone()}function Kn(e){return e}function Jn(e,t,n,i){var o=nt(),r=p().set(i,t);return o[n](r,e)}function Zn(e,t,n){if(s(e)&&(t=e,e=void 0),e=e||"",null!=t)return Jn(e,t,n,"month");var i,o=[];for(i=0;i<12;i++)o[i]=Jn(e,i,n,"month");return o}function Xn(e,t,n,i){"boolean"==typeof e?(s(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,s(t)&&(n=t,t=void 0),t=t||"");var o=nt(),r=e?o._week.dow:0;if(null!=n)return Jn(t,(n+r)%7,i,"day");var a,u=[];for(a=0;a<7;a++)u[a]=Jn(t,(a+r)%7,i,"day");return u}function ei(e,t){return Zn(e,t,"months")}function ti(e,t){return Zn(e,t,"monthsShort")}function ni(e,t,n){return Xn(e,t,n,"weekdays")}function ii(e,t,n){return Xn(e,t,n,"weekdaysShort")}function oi(e,t,n){return Xn(e,t,n,"weekdaysMin")}function ri(){var e=this._data;return this._milliseconds=lr(this._milliseconds),this._days=lr(this._days),this._months=lr(this._months),e.milliseconds=lr(e.milliseconds),e.seconds=lr(e.seconds),e.minutes=lr(e.minutes),e.hours=lr(e.hours),e.months=lr(e.months),e.years=lr(e.years),this}function si(e,t,n,i){var o=Kt(t,n);return e._milliseconds+=i*o._milliseconds,e._days+=i*o._days,e._months+=i*o._months,e._bubble()}function ai(e,t){return si(this,e,t,1)}function ui(e,t){return si(this,e,t,-1)}function li(e){return e<0?Math.floor(e):Math.ceil(e)}function ci(){var e,t,n,i,o,r=this._milliseconds,s=this._days,a=this._months,u=this._data;return r>=0&&s>=0&&a>=0||r<=0&&s<=0&&a<=0||(r+=864e5*li(di(a)+s),s=0,a=0),u.milliseconds=r%1e3,e=b(r/1e3),u.seconds=e%60,t=b(e/60),u.minutes=t%60,n=b(t/60),u.hours=n%24,s+=b(n/24),o=b(pi(s)),a+=o,s-=li(di(o)),i=b(a/12),a%=12,u.days=s,u.months=a,u.years=i,this}function pi(e){return 4800*e/146097}function di(e){return 146097*e/4800}function hi(e){if(!this.isValid())return NaN;var t,n,i=this._milliseconds;if("month"===(e=N(e))||"year"===e)return t=this._days+i/864e5,n=this._months+pi(t),"month"===e?n:n/12;switch(t=this._days+Math.round(di(this._months)),e){case"week":return t/7+i/6048e5;case"day":return t+i/864e5;case"hour":return 24*t+i/36e5;case"minute":return 1440*t+i/6e4;case"second":return 86400*t+i/1e3;case"millisecond":return Math.floor(864e5*t)+i;default:throw new Error("Unknown unit "+e)}}function fi(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*S(this._months/12):NaN}function mi(e){return function(){return this.as(e)}}function yi(){return Kt(this)}function gi(e){return e=N(e),this.isValid()?this[e+"s"]():NaN}function vi(e){return function(){return this.isValid()?this._data[e]:NaN}}function bi(){return b(this.days()/7)}function Si(e,t,n,i,o){return o.relativeTime(t||1,!!n,e,i)}function Ci(e,t,n){var i=Kt(e).abs(),o=xr(i.as("s")),r=xr(i.as("m")),s=xr(i.as("h")),a=xr(i.as("d")),u=xr(i.as("M")),l=xr(i.as("y")),c=o<=Er.ss&&["s",o]||o<Er.s&&["ss",o]||r<=1&&["m"]||r<Er.m&&["mm",r]||s<=1&&["h"]||s<Er.h&&["hh",s]||a<=1&&["d"]||a<Er.d&&["dd",a]||u<=1&&["M"]||u<Er.M&&["MM",u]||l<=1&&["y"]||["yy",l];return c[2]=t,c[3]=+e>0,c[4]=n,Si.apply(null,c)}function wi(e){return void 0===e?xr:"function"==typeof e&&(xr=e,!0)}function _i(e,t){return void 0!==Er[e]&&(void 0===t?Er[e]:(Er[e]=t,"s"===e&&(Er.ss=t-1),!0))}function Oi(e){if(!this.isValid())return this.localeData().invalidDate();var t=this.localeData(),n=Ci(this,!e,t);return e&&(n=t.pastFuture(+this,n)),t.postformat(n)}function xi(e){return(e>0)-(e<0)||+e}function Ei(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,i=Ar(this._milliseconds)/1e3,o=Ar(this._days),r=Ar(this._months);e=b(i/60),t=b(e/60),i%=60,e%=60,n=b(r/12),r%=12;var s=n,a=r,u=o,l=t,c=e,p=i?i.toFixed(3).replace(/\.?0+$/,""):"",d=this.asSeconds();if(!d)return"P0D";var h=d<0?"-":"",f=xi(this._months)!==xi(d)?"-":"",m=xi(this._days)!==xi(d)?"-":"",y=xi(this._milliseconds)!==xi(d)?"-":"";return h+"P"+(s?f+s+"Y":"")+(a?f+a+"M":"")+(u?m+u+"D":"")+(l||c||p?"T":"")+(l?y+l+"H":"")+(c?y+c+"M":"")+(p?y+p+"S":"")}var Ai,Ti;Ti=Array.prototype.some?Array.prototype.some:function(e){for(var t=Object(this),n=t.length>>>0,i=0;i<n;i++)if(i in t&&e.call(this,t[i],i,t))return!0;return!1};var Ri=t.momentProperties=[],Fi=!1,Mi={};t.suppressDeprecationWarnings=!1,t.deprecationHandler=null;var Ii;Ii=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)l(e,t)&&n.push(t);return n};var Pi={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},Di={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},$i=/\d{1,2}/,Ni={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},ki={},Vi={},Li=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Bi=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Ui={},Qi={},ji=/\d/,Hi=/\d\d/,qi=/\d{3}/,zi=/\d{4}/,Wi=/[+-]?\d{6}/,Gi=/\d\d?/,Yi=/\d\d\d\d?/,Ki=/\d\d\d\d\d\d?/,Ji=/\d{1,3}/,Zi=/\d{1,4}/,Xi=/[+-]?\d{1,6}/,eo=/\d+/,to=/[+-]?\d+/,no=/Z|[+-]\d\d:?\d\d/gi,io=/Z|[+-]\d\d(?::?\d\d)?/gi,oo=/[+-]?\d+(\.\d{1,3})?/,ro=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,so={},ao={},uo=0,lo=1,co=2,po=3,ho=4,fo=5,mo=6,yo=7,go=8;U("Y",0,0,function(){var e=this.year();return e<=9999?""+e:"+"+e}),U(0,["YY",2],0,function(){return this.year()%100}),U(0,["YYYY",4],0,"year"),U(0,["YYYYY",5],0,"year"),U(0,["YYYYYY",6,!0],0,"year"),$("year","y"),V("year",1),z("Y",to),z("YY",Gi,Hi),z("YYYY",Zi,zi),z("YYYYY",Xi,Wi),z("YYYYYY",Xi,Wi),K(["YYYYY","YYYYYY"],uo),K("YYYY",function(e,n){n[uo]=2===e.length?t.parseTwoDigitYear(e):S(e)}),K("YY",function(e,n){n[uo]=t.parseTwoDigitYear(e)}),K("Y",function(e,t){t[uo]=parseInt(e,10)}),t.parseTwoDigitYear=function(e){return S(e)+(S(e)>68?1900:2e3)};var vo,bo=ne("FullYear",!0);vo=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},U("M",["MM",2],"Mo",function(){return this.month()+1}),U("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),U("MMMM",0,0,function(e){return this.localeData().months(this,e)}),$("month","M"),V("month",8),z("M",Gi),z("MM",Gi,Hi),z("MMM",function(e,t){return t.monthsShortRegex(e)}),z("MMMM",function(e,t){return t.monthsRegex(e)}),K(["M","MM"],function(e,t){t[lo]=S(e)-1}),K(["MMM","MMMM"],function(e,t,n,i){var o=n._locale.monthsParse(e,i,n._strict);null!=o?t[lo]=o:h(n).invalidMonth=e});var So=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Co="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),wo="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),_o=ro,Oo=ro;U("w",["ww",2],"wo","week"),U("W",["WW",2],"Wo","isoWeek"),$("week","w"),$("isoWeek","W"),V("week",5),V("isoWeek",5),z("w",Gi),z("ww",Gi,Hi),z("W",Gi),z("WW",Gi,Hi),J(["w","ww","W","WW"],function(e,t,n,i){t[i.substr(0,1)]=S(e)});var xo={dow:0,doy:6};U("d",0,"do","day"),U("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),U("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),U("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),U("e",0,0,"weekday"),U("E",0,0,"isoWeekday"),$("day","d"),$("weekday","e"),$("isoWeekday","E"),V("day",11),V("weekday",11),V("isoWeekday",11),z("d",Gi),z("e",Gi),z("E",Gi),z("dd",function(e,t){return t.weekdaysMinRegex(e)}),z("ddd",function(e,t){return t.weekdaysShortRegex(e)}),z("dddd",function(e,t){return t.weekdaysRegex(e)}),J(["dd","ddd","dddd"],function(e,t,n,i){var o=n._locale.weekdaysParse(e,i,n._strict);null!=o?t.d=o:h(n).invalidWeekday=e}),J(["d","e","E"],function(e,t,n,i){t[i]=S(e)});var Eo="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ao="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),To="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ro=ro,Fo=ro,Mo=ro;U("H",["HH",2],0,"hour"),U("h",["hh",2],0,He),U("k",["kk",2],0,qe),U("hmm",0,0,function(){return""+He.apply(this)+B(this.minutes(),2)}),U("hmmss",0,0,function(){return""+He.apply(this)+B(this.minutes(),2)+B(this.seconds(),2)}),U("Hmm",0,0,function(){return""+this.hours()+B(this.minutes(),2)}),U("Hmmss",0,0,function(){return""+this.hours()+B(this.minutes(),2)+B(this.seconds(),2)}),ze("a",!0),ze("A",!1),$("hour","h"),V("hour",13),z("a",We),z("A",We),z("H",Gi),z("h",Gi),z("k",Gi),z("HH",Gi,Hi),z("hh",Gi,Hi),z("kk",Gi,Hi),z("hmm",Yi),z("hmmss",Ki),z("Hmm",Yi),z("Hmmss",Ki),K(["H","HH"],po),K(["k","kk"],function(e,t,n){var i=S(e);t[po]=24===i?0:i}),K(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),K(["h","hh"],function(e,t,n){t[po]=S(e),h(n).bigHour=!0}),K("hmm",function(e,t,n){var i=e.length-2;t[po]=S(e.substr(0,i)),t[ho]=S(e.substr(i)),h(n).bigHour=!0}),K("hmmss",function(e,t,n){var i=e.length-4,o=e.length-2;t[po]=S(e.substr(0,i)),t[ho]=S(e.substr(i,2)),t[fo]=S(e.substr(o)),h(n).bigHour=!0}),K("Hmm",function(e,t,n){var i=e.length-2;t[po]=S(e.substr(0,i)),t[ho]=S(e.substr(i))}),K("Hmmss",function(e,t,n){var i=e.length-4,o=e.length-2;t[po]=S(e.substr(0,i)),t[ho]=S(e.substr(i,2)),t[fo]=S(e.substr(o))});var Io,Po=/[ap]\.?m?\.?/i,Do=ne("Hours",!0),$o={calendar:Pi,longDateFormat:Di,invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:$i,relativeTime:Ni,months:Co,monthsShort:wo,week:xo,weekdays:Eo,weekdaysMin:To,weekdaysShort:Ao,meridiemParse:Po},No={},ko={},Vo=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Lo=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Bo=/Z|[+-]\d\d(?::?\d\d)?/,Uo=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],Qo=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],jo=/^\/?Date\((\-?\d+)/i,Ho=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,qo={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};t.createFromInputFallback=_("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),t.ISO_8601=function(){},t.RFC_2822=function(){};var zo=_("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=xt.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:m()}),Wo=_("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=xt.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:m()}),Go=function(){return Date.now?Date.now():+new Date},Yo=["year","quarter","month","week","day","hour","minute","second","millisecond"];$t("Z",":"),$t("ZZ",""),z("Z",io),z("ZZ",io),K(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=Nt(io,e)});var Ko=/([\+\-]|\d\d)/gi;t.updateOffset=function(){};var Jo=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,Zo=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;Kt.fn=It.prototype,Kt.invalid=Mt;var Xo=en(1,"add"),er=en(-1,"subtract");t.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",t.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var tr=_("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});U(0,["gg",2],0,function(){return this.weekYear()%100}),U(0,["GG",2],0,function(){return this.isoWeekYear()%100}),Nn("gggg","weekYear"),Nn("ggggg","weekYear"),Nn("GGGG","isoWeekYear"),Nn("GGGGG","isoWeekYear"),$("weekYear","gg"),$("isoWeekYear","GG"),V("weekYear",1),V("isoWeekYear",1),z("G",to),z("g",to),z("GG",Gi,Hi),z("gg",Gi,Hi),z("GGGG",Zi,zi),z("gggg",Zi,zi),z("GGGGG",Xi,Wi),z("ggggg",Xi,Wi),J(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,i){t[i.substr(0,2)]=S(e)}),J(["gg","GG"],function(e,n,i,o){n[o]=t.parseTwoDigitYear(e)}),U("Q",0,"Qo","quarter"),$("quarter","Q"),V("quarter",7),z("Q",ji),K("Q",function(e,t){t[lo]=3*(S(e)-1)}),U("D",["DD",2],"Do","date"),$("date","D"),V("date",9),z("D",Gi),z("DD",Gi,Hi),z("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),K(["D","DD"],co),K("Do",function(e,t){t[co]=S(e.match(Gi)[0])});var nr=ne("Date",!0);U("DDD",["DDDD",3],"DDDo","dayOfYear"),$("dayOfYear","DDD"),V("dayOfYear",4),z("DDD",Ji),z("DDDD",qi),K(["DDD","DDDD"],function(e,t,n){n._dayOfYear=S(e)}),U("m",["mm",2],0,"minute"),$("minute","m"),V("minute",14),z("m",Gi),z("mm",Gi,Hi),K(["m","mm"],ho);var ir=ne("Minutes",!1);U("s",["ss",2],0,"second"),$("second","s"),V("second",15),z("s",Gi),z("ss",Gi,Hi),K(["s","ss"],fo);var or=ne("Seconds",!1);U("S",0,0,function(){return~~(this.millisecond()/100)}),U(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),U(0,["SSS",3],0,"millisecond"),U(0,["SSSS",4],0,function(){return 10*this.millisecond()}),U(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),U(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),U(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),U(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),U(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),$("millisecond","ms"),V("millisecond",16),z("S",Ji,ji),z("SS",Ji,Hi),z("SSS",Ji,qi);var rr;for(rr="SSSS";rr.length<=9;rr+="S")z(rr,eo);for(rr="S";rr.length<=9;rr+="S")K(rr,qn);var sr=ne("Milliseconds",!1);U("z",0,0,"zoneAbbr"),U("zz",0,0,"zoneName");var ar=g.prototype;ar.add=Xo,ar.calendar=on,ar.clone=rn,ar.diff=dn,ar.endOf=xn,ar.format=gn,ar.from=vn,ar.fromNow=bn,ar.to=Sn,ar.toNow=Cn,ar.get=re,ar.invalidAt=Dn,ar.isAfter=sn,ar.isBefore=an,ar.isBetween=un,ar.isSame=ln,ar.isSameOrAfter=cn,ar.isSameOrBefore=pn,ar.isValid=In,ar.lang=tr,ar.locale=wn,ar.localeData=_n,ar.max=Wo,ar.min=zo,ar.parsingFlags=Pn,ar.set=se,ar.startOf=On,ar.subtract=er,ar.toArray=Rn,ar.toObject=Fn,ar.toDate=Tn,ar.toISOString=mn,ar.inspect=yn,ar.toJSON=Mn,ar.toString=fn,ar.unix=An,ar.valueOf=En,ar.creationData=$n,ar.year=bo,ar.isLeapYear=te,ar.weekYear=kn,ar.isoWeekYear=Vn,ar.quarter=ar.quarters=jn,ar.month=fe,ar.daysInMonth=me,ar.week=ar.weeks=Te,ar.isoWeek=ar.isoWeeks=Re,ar.weeksInYear=Bn,ar.isoWeeksInYear=Ln,ar.date=nr,ar.day=ar.days=ke,ar.weekday=Ve,ar.isoWeekday=Le,ar.dayOfYear=Hn,ar.hour=ar.hours=Do,ar.minute=ar.minutes=ir,ar.second=ar.seconds=or,ar.millisecond=ar.milliseconds=sr,ar.utcOffset=Lt,ar.utc=Ut,ar.local=Qt,ar.parseZone=jt,ar.hasAlignedHourOffset=Ht,ar.isDST=qt,ar.isLocal=Wt,ar.isUtcOffset=Gt,ar.isUtc=Yt,ar.isUTC=Yt,ar.zoneAbbr=zn,ar.zoneName=Wn,ar.dates=_("dates accessor is deprecated. Use date instead.",nr),ar.months=_("months accessor is deprecated. Use month instead",fe),ar.years=_("years accessor is deprecated. Use year instead",bo),ar.zone=_("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Bt),ar.isDSTShifted=_("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",zt);var ur=T.prototype;ur.calendar=R,ur.longDateFormat=F,ur.invalidDate=M,ur.ordinal=I,ur.preparse=Kn,ur.postformat=Kn,ur.relativeTime=P,ur.pastFuture=D,ur.set=E,ur.months=le,ur.monthsShort=ce,ur.monthsParse=de,ur.monthsRegex=ge,ur.monthsShortRegex=ye,ur.week=xe,ur.firstDayOfYear=Ae,ur.firstDayOfWeek=Ee,ur.weekdays=Ie,ur.weekdaysMin=De,ur.weekdaysShort=Pe,ur.weekdaysParse=Ne,ur.weekdaysRegex=Be,ur.weekdaysShortRegex=Ue,ur.weekdaysMinRegex=Qe,ur.isPM=Ge,ur.meridiem=Ye,Xe("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===S(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),t.lang=_("moment.lang is deprecated. Use moment.locale instead.",Xe),t.langData=_("moment.langData is deprecated. Use moment.localeData instead.",nt);var lr=Math.abs,cr=mi("ms"),pr=mi("s"),dr=mi("m"),hr=mi("h"),fr=mi("d"),mr=mi("w"),yr=mi("M"),gr=mi("y"),vr=vi("milliseconds"),br=vi("seconds"),Sr=vi("minutes"),Cr=vi("hours"),wr=vi("days"),_r=vi("months"),Or=vi("years"),xr=Math.round,Er={ss:44,s:45,m:45,h:22,d:26,M:11},Ar=Math.abs,Tr=It.prototype;return Tr.isValid=Ft,Tr.abs=ri,Tr.add=ai,Tr.subtract=ui,Tr.as=hi,Tr.asMilliseconds=cr,Tr.asSeconds=pr,Tr.asMinutes=dr,Tr.asHours=hr,Tr.asDays=fr,Tr.asWeeks=mr,Tr.asMonths=yr,Tr.asYears=gr,Tr.valueOf=fi,Tr._bubble=ci,Tr.clone=yi,Tr.get=gi,Tr.milliseconds=vr,Tr.seconds=br,Tr.minutes=Sr,Tr.hours=Cr,Tr.days=wr,Tr.weeks=bi,Tr.months=_r,Tr.years=Or,Tr.humanize=Oi,Tr.toISOString=Ei,Tr.toString=Ei,Tr.toJSON=Ei,Tr.locale=wn,Tr.localeData=_n,Tr.toIsoString=_("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Ei),Tr.lang=tr,U("X",0,0,"unix"),U("x",0,0,"valueOf"),z("x",to),z("X",oo),K("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e,10))}),K("x",function(e,t,n){n._d=new Date(S(e))}),t.version="2.20.1",function(e){Ai=e}(xt),t.fn=ar,t.min=At,t.max=Tt,t.now=Go,t.utc=p,t.unix=Gn,t.months=ei,t.isDate=a,t.locale=Xe,t.invalid=m,t.duration=Kt,t.isMoment=v,t.weekdays=ni,t.parseZone=Yn,t.localeData=nt,t.isDuration=Pt,t.monthsShort=ti,t.weekdaysMin=oi,t.defineLocale=et,t.updateLocale=tt,t.locales=it,t.weekdaysShort=ii,t.normalizeUnits=N,t.relativeTimeRounding=wi,t.relativeTimeThreshold=_i,t.calendarFormat=nn,t.prototype=ar,t.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"YYYY-[W]WW",MONTH:"YYYY-MM"},t})}).call(t,n(166)(e))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(116);t.TemplateHelpers=i.TemplateHelpers;var o=n(92);t.TemplateList=o.TemplateList;var r=n(67);t.TemplateCache=r.TemplateCache;var s=n(102);t.HtmlTemplate=s.HtmlTemplate;var a=n(57);t.UnderscoreTemplate=a.UnderscoreTemplate},function(e,t,n){"use strict";function i(){o.Initialization.registerComponentFields("ChatterLikedBy",r)}Object.defineProperty(t,"__esModule",{value:!0});var o=n(2),r=["sflikedby","sflikedbyid","clickableuri","sffeeditemid"];t.registerFields=i},function(e,t,n){"use strict";function i(){o.Initialization.registerComponentFields("ChatterPostAttachment",r)}Object.defineProperty(t,"__esModule",{value:!0});var o=n(2),r=["sfcontentversionid","sffeeditemid","sfcontentfilename","sftitle","sf_title"];t.registerFields=i},function(e,t,n){"use strict";function i(){o.Initialization.registerComponentFields("ChatterPostedBy",r)}Object.defineProperty(t,"__esModule",{value:!0});var o=n(2),r=["sfcreatedby","sfcreatedbyid","sffeeditemid","sfuserid","sfinsertedbyid","sfparentid","sfparentname"];t.registerFields=i},function(e,t,n){"use strict";function i(){o.Initialization.registerComponentFields("ChatterTopic",r)}Object.defineProperty(t,"__esModule",{value:!0});var o=n(2),r=["coveochatterfeedtopics"];t.registerFields=i},function(e,t,n){"use strict";function i(){o.Initialization.registerComponentFields("Icon",r)}Object.defineProperty(t,"__esModule",{value:!0});var o=n(2),r=["objecttype","filetype"];t.registerFields=i},function(e,t,n){"use strict";function i(){o.Initialization.registerComponentFields("PrintableUri",r)}Object.defineProperty(t,"__esModule",{value:!0});var o=n(2),r=["parents"];t.registerFields=i},function(e,t,n){"use strict";function i(){o.Initialization.registerComponentFields("Quickview",r)}Object.defineProperty(t,"__esModule",{value:!0});var o=n(2),r=["urihash","collection","source","author","date"];t.registerFields=i},function(e,t,n){"use strict";function i(){o.Initialization.registerComponentFields("ResultLink",t.fields)}Object.defineProperty(t,"__esModule",{value:!0});var o=n(2);t.fields=["outlookformacuri","outlookuri","connectortype","urihash","collection","source","author"],t.registerFields=i},function(e,t,n){"use strict";function i(){o.Initialization.registerComponentFields("FollowItem",r)}Object.defineProperty(t,"__esModule",{value:!0});var o=n(2),r=["urihash"];t.registerFields=i},function(e,t,n){"use strict";function i(){o.Initialization.registerComponentFields("Thumbnail",r)}Object.defineProperty(t,"__esModule",{value:!0});var o=n(2),r=["outlookformacuri","outlookuri","connectortype","urihash","collection","source"];t.registerFields=i},function(e,t,n){"use strict";function i(e){if(void 0==window.Coveo?window.Coveo=e:o.each(o.keys(e),function(t){window.Coveo[t]=e[t]}),void 0==window.__extends){var t=function(e,t){function n(){this.constructor=e}for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)};window.__extends=t}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(0);t.swapVar=i},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=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])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n(27),r=n(92),s=n(0),a=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.defaultTemplate='<td><a class="CoveoResultLink"></a></td>\n                             <td><span class="CoveoExcerpt"></span></td>\n                             <td><span class="CoveoFieldValue" data-field="@date" data-helper="date"></span></td>',t.defaultRoledTemplates={"table-header":'<th style="width: 40%">Link</th>\n                     <th>Excerpt</th>\n                     <th style="width: 20%"\n                         class="CoveoSort coveo-table-header-sort"\n                         data-sort-criteria="date ascending,date descending"\n                         data-display-unselected-icon="false">Date</th>',"table-footer":"<th>Link</th>\n                     <th>Excerpt</th>\n                     <th>Date</th>"},t}return i(t,e),t.prototype.instantiateRoleToString=function(e){var t=s.find(this.templates,function(t){return t.role===e});return t?t.instantiateToString(void 0,{}):this.defaultRoledTemplates[e]},t.prototype.instantiateRoleToElement=function(e){var t=this,n=s.find(this.templates,function(t){return t.role===e});if(n)return n.instantiateToElement(void 0,{});var i=new o.Template(function(){return t.defaultRoledTemplates[e]});return i.layout="table",i.instantiateToElement(void 0)},t.prototype.getFallbackTemplate=function(){var e=this;return new o.Template(function(){return e.defaultTemplate})},t.prototype.hasTemplateWithRole=function(e){return s.find(this.templates,function(t){return t.role===e})},t}(r.TemplateList);t.TableTemplate=a},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=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])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n(27),r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.instantiateToString=function(e){return'<div class="coveo-result-frame">\n        <div class="coveo-result-row">\n          <div class="coveo-result-cell" style="width:40px;text-align:center;vertical-align:middle;">\n            <span class="CoveoIcon" data-small="true" data-with-label="false">\n            </span>\n          </div>\n          <div class="coveo-result-cell" style="padding:0 0 3px 5px;vertical-align:middle">\n            <div class="coveo-result-row">\n              <div class="coveo-result-cell" style="font-size:10pt;">\n                <a class="CoveoResultLink" style="display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis">\n                </a>\n              </div>\n            </div>\n          </div>\n        </div>\n      </div>'},t.prototype.instantiateToElement=function(e){var t=this;return new Promise(function(n,i){var o=document.createElement("div");o.innerHTML=t.instantiateToString(e),n(o)})},t}(o.Template);t.DefaultRecommendationTemplate=r},function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))(function(o,r){function s(e){try{u(i.next(e))}catch(e){r(e)}}function a(e){try{u(i.throw(e))}catch(e){r(e)}}function u(e){e.done?o(e.value):new n(function(t){t(e.value)}).then(s,a)}u((i=i.apply(e,t||[])).next())})},o=this&&this.__generator||function(e,t){function n(e){return function(t){return i([e,t])}}function i(n){if(o)throw new TypeError("Generator is already executing.");for(;u;)try{if(o=1,r&&(s=r[2&n[0]?"return":n[0]?"throw":"next"])&&!(s=s.call(r,n[1])).done)return s;switch(r=0,s&&(n=[0,s.value]),n[0]){case 0:case 1:s=n;break;case 4:return u.label++,{value:n[1],done:!1};case 5:u.label++,r=n[1],n=[0];continue;case 7:n=u.ops.pop(),u.trys.pop();continue;default:if(s=u.trys,!(s=s.length>0&&s[s.length-1])&&(6===n[0]||2===n[0])){u=0;continue}if(3===n[0]&&(!s||n[1]>s[0]&&n[1]<s[3])){u.label=n[1];break}if(6===n[0]&&u.label<s[1]){u.label=s[1],s=n;break}if(s&&u.label<s[2]){u.label=s[2],u.ops.push(n);break}s[2]&&u.ops.pop(),u.trys.pop();continue}n=t.call(e,u)}catch(e){n=[6,e],r=0}finally{o=s=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}var o,r,s,a,u={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return a={next:n(0),throw:n(1),return:n(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a};Object.defineProperty(t,"__esModule",{value:!0});var r=n(20),s=n(89),a=n(0),u=n(1),l=n(9),c=function(){function e(e){this.args=e}return e.prototype.buildResults=function(e,t,n){return i(this,void 0,void 0,function(){var i,r,u=this;return o(this,function(o){return i=[],r=a.map(e.results,function(e,o){return u.buildResult(e,t,n).then(function(e){return null!=e&&i.push({elem:e,idx:o}),s.ResultList.resultCurrentlyBeingRendered=null,e})}),[2,Promise.all(r).then(function(){return a.pluck(a.sortBy(i,"idx"),"elem")})]})})},e.prototype.buildResult=function(e,t,n){return i(this,void 0,void 0,function(){var i;return o(this,function(o){switch(o.label){case 0:return r.Assert.exists(e),r.QueryUtils.setStateObjectOnQueryResult(this.args.queryStateModel.get(),e),r.QueryUtils.setSearchInterfaceObjectOnQueryResult(this.args.searchInterface,e),s.ResultList.resultCurrentlyBeingRendered=e,[4,this.createHtmlElement(e,t)];case 1:return i=o.sent(),null!=i&&r.Component.bindResultToElement(i,e),n.push(e),[4,this.autoCreateComponentsInsideResult(i,e).initResult];case 2:return o.sent(),this.verifyChildren(i),[2,i]}})})},e.prototype.autoCreateComponentsInsideResult=function(e,t){return r.Assert.exists(e),r.Initialization.automaticallyCreateComponentsInsideResult(e,t)},e.prototype.createHtmlElement=function(e,t){return this.args.resultTemplate.instantiateToElement(e,{wrapInDiv:!0,checkCondition:!0,currentLayout:t,responsiveComponents:this.args.searchInterface.responsiveComponents})},e.prototype.verifyChildren=function(e){u.$$(e).find(".CoveoResultLink")||new l.Logger(e).warn('Result does not contain a "CoveoResultLink" component, please verify the result template',this.args.resultTemplate)},e}();t.TemplateToHtml=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(31),o=n(0),r=n(1),s=function(){function e(e,t){void 0===t&&(t={focusableSelector:"[tabindex], button"}),this.container=e,this.options=t,this.hiddenElements=[],this.enable()}return Object.defineProperty(e.prototype,"focusableElements",{get:function(){return o.chain(r.Dom.nodeListToArray(this.container.querySelectorAll(this.options.focusableSelector))).filter(function(e){return r.$$(e).isVisible()}).sortBy(function(e){return e.tabIndex}).value()},enumerable:!0,configurable:!0}),e.prototype.disable=function(){document.removeEventListener("focusin",this.focusInEvent),document.removeEventListener("focusout",this.focusOutEvent),this.showHiddenElements(),this.enabled=!1},e.prototype.enable=function(){var e=this;document.addEventListener("focusin",this.focusInEvent=function(t){return e.onFocusIn(t)}),document.addEventListener("focusout",this.focusOutEvent=function(t){return e.onFocusOut(t)}),this.hideAllExcept(this.container),this.enabled=!0},e.prototype.showHiddenElements=function(){for(;this.hiddenElements.length;)this.hiddenElements.pop().removeAttribute("aria-hidden")},e.prototype.hideElement=function(e){e.getAttribute("aria-hidden")||(this.hiddenElements.push(e),e.setAttribute("aria-hidden",""+!0))},e.prototype.hideSiblings=function(e){var t=this,n=e.parentElement;n&&o.without(r.$$(n).children(),e).forEach(function(e){t.hideElement(e)})},e.prototype.hideAllExcept=function(e){this.hideSiblings(e);var t=e.parentElement;t&&t!==document.body&&this.hideAllExcept(t)},e.prototype.getFocusableSibling=function(e,t){void 0===t&&(t=!1);var n=this.focusableElements,i=n.indexOf(e);return-1===i?null:n[(i+(t?-1:1)+n.length)%n.length]},e.prototype.focusSibling=function(e,t){void 0===t&&(t=!1);var n=this.getFocusableSibling(e,t);n&&n.focus()},e.prototype.focusFirstElement=function(){var e=this.focusableElements;e.length&&e[0].focus()},e.prototype.elementIsBefore=function(e,t){return!!t&&e.compareDocumentPosition(t)===Node.DOCUMENT_POSITION_PRECEDING},e.prototype.onLosingFocus=function(e,t){var n=this;i.Defer.defer(function(){n.enabled&&(n.enabled=!1,e&&n.focusIsAllowed(e)?n.focusSibling(e,n.elementIsBefore(e,t)):n.focusFirstElement(),n.enabled=!0)})},e.prototype.focusIsAllowed=function(e){return this.container.contains(e)},e.prototype.elementIsInPage=function(e){return e&&e!==document.body.parentElement},e.prototype.onFocusIn=function(e){if(this.enabled){var t=e.relatedTarget;if(!this.elementIsInPage(t)){var n=e.target;this.elementIsInPage(n)&&(this.focusIsAllowed(n)||this.onLosingFocus(null,n))}}},e.prototype.onFocusOut=function(e){if(this.enabled){var t=e.relatedTarget;this.elementIsInPage(t)&&(t&&this.focusIsAllowed(t)||this.onLosingFocus(e.target,t))}},e}();t.FocusTrap=s},function(e,t,n){"use strict";function i(){var e,t=x.Component.getComponentRef("ResultList");if(t&&(e=t.resultCurrentlyBeingRendered),!e){var n=x.Component.getComponentRef("Quickview");n&&(e=n.resultCurrentlyBeingRendered)}return e}function o(){var e=i();if(e)return e.termsToHighlight}function r(){var e=i();if(e)return e.phrasesToHighlight}function s(e,t){return h.Utils.isNonEmptyArray(O.keys(e))||h.Utils.isNonEmptyArray(O.keys(t))}var a=this&&this.__assign||Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e};Object.defineProperty(t,"__esModule",{value:!0});var u=n(116),l=n(68),c=n(33),p=n(130),d=n(177),h=n(4),f=n(22),m=n(72),y=n(176),g=n(21),v=n(24),b=n(1),S=n(51),C=n(114),w=n(40),_=n(23),O=n(0),x=n(7),E=n(67),A=function(){function e(){}return e.exportAllHelpersGlobally=function(e){O.each(u.TemplateHelpers.getHelpers(),function(t,n){void 0==e[n]&&(e[n]=t)})},e}();t.CoreHelpers=A,u.TemplateHelpers.registerFieldHelper("javascriptEncode",function(e){return h.Utils.exists(e)?f.StringUtils.javascriptEncode(e):void 0});var T=function(e,t){var n=l.StringAndHoles.shortenString(e,t.length,"...");return h.Utils.exists(t.highlights)?l.HighlightUtils.highlightString(n.value,t.highlights,n.holes,t.cssClass||"highlight"):n.value};u.TemplateHelpers.registerTemplateHelper("shorten",function(e,t,n,i){return T(e,{length:t,highlights:n,cssClass:i})}),u.TemplateHelpers.registerTemplateHelper("shortenv2",function(e,t){return T(e,t)});var R=function(e,t){var n=l.StringAndHoles.shortenPath(e,t.length);return h.Utils.exists(t.highlights)?l.HighlightUtils.highlightString(n.value,t.highlights,n.holes,t.cssClass||"highlight"):n.value};u.TemplateHelpers.registerTemplateHelper("shortenPath",function(e,t,n,i){return R(e,{length:t,highlights:n,cssClass:i})}),u.TemplateHelpers.registerFieldHelper("shortenPathv2",function(e,t){return R(e,t)});var F=function(e,t){var n=l.StringAndHoles.shortenUri(e,t.length);return h.Utils.exists(t.highlights)?l.HighlightUtils.highlightString(n.value,t.highlights,n.holes,t.cssClass||"highlight"):n.value};u.TemplateHelpers.registerTemplateHelper("shortenUri",function(e,t,n,i){return F(e,{length:t,highlights:n,cssClass:i})}),u.TemplateHelpers.registerTemplateHelper("shortenUriv2",function(e,t){return F(e,t)});var M=function(e,t){return h.Utils.exists(e)?h.Utils.exists(t.highlights)?l.HighlightUtils.highlightString(e,t.highlights,null,t.cssClass||"highlight"):e:void 0};u.TemplateHelpers.registerTemplateHelper("highlight",function(e,t,n){return M(e,{highlights:t,cssClass:n})}),u.TemplateHelpers.registerTemplateHelper("highlightv2",function(e,t){return M(e,t)});var I=function(e,t){return h.Utils.exists(e)&&h.Utils.exists(t.termsToHighlight)&&h.Utils.exists(t.phrasesToHighlight)?s(t.termsToHighlight,t.phrasesToHighlight)?C.StreamHighlightUtils.highlightStreamText(e,t.termsToHighlight,t.phrasesToHighlight,t.opts):e:void 0};u.TemplateHelpers.registerTemplateHelper("highlightStreamText",function(e,t,n,i){return void 0===t&&(t=o()),void 0===n&&(n=r()),I(e,{termsToHighlight:t,phrasesToHighlight:n,opts:i})}),u.TemplateHelpers.registerTemplateHelper("highlightStreamTextv2",function(e,t){var n=a({termsToHighlight:o(),phrasesToHighlight:r()},t);return I(e,n)});var P=function(e,t){return h.Utils.exists(e)&&h.Utils.exists(t.termsToHighlight)&&h.Utils.exists(t.phrasesToHighlight)?s(t.termsToHighlight,t.phrasesToHighlight)?C.StreamHighlightUtils.highlightStreamHTML(e,t.termsToHighlight,t.phrasesToHighlight,t.opts):e:void 0};u.TemplateHelpers.registerTemplateHelper("highlightStreamHTML",function(e,t,n,i){return void 0===t&&(t=o()),void 0===n&&(n=r()),P(e,{termsToHighlight:t,phrasesToHighlight:n,opts:i})}),u.TemplateHelpers.registerTemplateHelper("highlightStreamHTMLv2",function(e,t){var n=a({termsToHighlight:o(),phrasesToHighlight:r()},t);return P(e,n)}),u.TemplateHelpers.registerFieldHelper("number",function(e,t){if(h.Utils.exists(e)){var n=Number(e),i=O.isString(t)?t:t&&t.format;return i?f.StringUtils.htmlEncode(_.format(n,i)):f.StringUtils.htmlEncode(n.toString())}}),u.TemplateHelpers.registerFieldHelper("date",function(e,t){return c.DateUtils.dateToString(c.DateUtils.convertFromJsonDateIfNeeded(e),t)}),u.TemplateHelpers.registerFieldHelper("time",function(e,t){return c.DateUtils.timeToString(c.DateUtils.convertFromJsonDateIfNeeded(e),t)}),u.TemplateHelpers.registerFieldHelper("dateTime",function(e,t){return c.DateUtils.dateTimeToString(c.DateUtils.convertFromJsonDateIfNeeded(e),t)}),u.TemplateHelpers.registerFieldHelper("emailDateTime",function(e,t){var n={};n.includeTimeIfThisWeek=!0;var i=O.extend(t,n);return e?c.DateUtils.dateTimeToString(c.DateUtils.convertFromJsonDateIfNeeded(e),i):void 0}),u.TemplateHelpers.registerFieldHelper("currency",function(e,t){return p.CurrencyUtils.currencyToString(e,t)}),u.TemplateHelpers.registerFieldHelper("timeSpan",function(e,t){return void 0===t&&(t={isMilliseconds:!1}),new m.TimeSpan(e,t.isMilliseconds).getHHMMSS()}),u.TemplateHelpers.registerFieldHelper("email",function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var i,o,r,s;if(O.isObject(t[0])?(i=t[0].companyDomain,o=t[0].me,r=t[0].lengthLimit,s=t[0].truncateName):(i=t[0],o=t[1],r=t[2],s=t[3]),void 0==r&&(r=2),void 0==s&&(s=!1),O.isString(e)){var a=y.EmailUtils.splitSemicolonSeparatedListOfEmailAddresses(e);return y.EmailUtils.emailAddressesToHyperlinks(a,i,o,r,s)}return O.isArray(e)?y.EmailUtils.emailAddressesToHyperlinks(e,i,o,r,s):void 0}),u.TemplateHelpers.registerTemplateHelper("excessEmailToggle",function(e){b.$$(e).removeClass("coveo-active"),b.$$(e).hasClass("coveo-emails-excess-collapsed")?O.each(b.$$(e).siblings(".coveo-emails-excess-expanded"),function(e){b.$$(e).addClass("coveo-active")}):b.$$(e).hasClass("coveo-hide-expanded")&&(b.$$(e.parentElement).addClass("coveo-inactive"),O.each(b.$$(e.parentElement).siblings(".coveo-emails-excess-collapsed"),function(e){b.$$(e).addClass("coveo-active")}))}),u.TemplateHelpers.registerFieldHelper("anchor",function(e,t){return d.AnchorUtils.buildAnchor(e,t)}),u.TemplateHelpers.registerFieldHelper("image",function(e,t,n){return void 0===n&&(n=i()),t&&t.srcTemplate?d.ImageUtils.buildImage(f.StringUtils.buildStringTemplateFromResult(t.srcTemplate,n),{alt:t.alt,height:t.height,width:t.width}):d.ImageUtils.buildImage(e,t)}),u.TemplateHelpers.registerTemplateHelper("thumbnail",function(e,t,n){if(void 0===e&&(e=i()),void 0===t&&(t="default"),g.QueryUtils.hasThumbnail(e))return d.ImageUtils.buildImageFromResult(e,S.SearchEndpoint.endpoints[t],n)}),u.TemplateHelpers.registerTemplateHelper("fromFileTypeToIcon",function(e,t){void 0===e&&(e=i()),void 0===t&&(t={});var n=x.Component.getComponentRef("Icon");if(n)return n.createIcon(e,t).outerHTML}),u.TemplateHelpers.registerTemplateHelper("attrEncode",function(e){return(""+e).replace(/&/g,"&amp;").replace(/'/g,"&apos;").replace(/'/g,"&quot;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}),u.TemplateHelpers.registerTemplateHelper("loadTemplates",function(e,t){void 0===t&&(t=!0);var n,o="",r=i(),s=!1,a=e;return O.each(e,function(e,t,i){"default"==e&&(n=t)}),void 0!=n&&(a=O.omit(e,n)),O.each(a,function(e,n,i){s&&t||(s=s||e,o+=u.TemplateHelpers.getHelper("loadTemplate")(n,e,r))}),s||void 0==n||(o+=u.TemplateHelpers.getHelper("loadTemplate")(n,!0,r)),o});var D=["B","KB","MB","GB","TB","PB","EB"];u.TemplateHelpers.registerFieldHelper("size",function(e,t){for(var n=parseInt(e,10),i=null!=t&&null!=t.precision?t.precision:2,o=null!=t&&null!=t.base?t.base:0;n>1024&&o+1<D.length;)n/=1024,o++;return(n=Math.floor(n*Math.pow(10,i))/Math.pow(10,i))+" "+D[o]}),u.TemplateHelpers.registerFieldHelper("translatedCaption",function(e){return w.FacetUtils.tryToGetTranslatedCaption("@filetype",e)}),u.TemplateHelpers.registerTemplateHelper("loadTemplate",function(e,t,n){return void 0===t&&(t=!0),h.Utils.isNullOrUndefined(n)&&(n=i()),t?E.TemplateCache.getTemplate(e).instantiateToString(n,{checkCondition:!1}):""}),u.TemplateHelpers.registerTemplateHelper("encodeCarriageReturn",function(e){return h.Utils.isNullOrUndefined(e)?void 0:f.StringUtils.encodeCarriageReturn(e)}),u.TemplateHelpers.registerTemplateHelper("isMobileDevice",function(){return v.DeviceUtils.isMobileDevice()?v.DeviceUtils.getDeviceName():null})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});!function(e){e.Legacy="legacy",e.Wildcards="wildcards",e.Regex="regex",e.EditDistance="editdistance",e.Phonetic="phonetic"}(t.AllowedValuesPatternType||(t.AllowedValuesPatternType={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(474),o=n(4),r=n(10),s=n(1),a=n(25),u=function(){function e(e,t,n,i){this.facet=e,this.facetValue=t,this.onSelect=n,this.onExclude=i}return e.prototype.build=function(){return this.renderer=new i.ValueElementRenderer(this.facet,this.facetValue).build(),this.bindEvent({displayNextTime:!0,pinFacet:this.facet.options.preservePosition}),this},e.prototype.bindEvent=function(e){o.Utils.isNullOrUndefined(e.omniboxObject)?this.isOmnibox=!1:this.isOmnibox=!0,this.handleEventForCheckboxChange(e),this.facetValue.excluded?this.handleEventForExcludedValueElement(e):this.handleEventForValueElement(e)},e.prototype.select=function(){this.facetValue.selected=!0,this.facetValue.excluded=!1,this.renderer.setCssClassOnListValueElement()},e.prototype.unselect=function(){this.facetValue.selected=!1,this.facetValue.excluded=!1,this.renderer.setCssClassOnListValueElement()},e.prototype.exclude=function(){this.facetValue.selected=!1,this.facetValue.excluded=!0,this.renderer.setCssClassOnListValueElement()},e.prototype.unexclude=function(){this.facetValue.selected=!1,this.facetValue.excluded=!1,this.renderer.setCssClassOnListValueElement()},e.prototype.toggleExcludeWithUA=function(){var e,t=this;e=this.facetValue.excluded?this.isOmnibox?r.analyticsActionCauseList.omniboxFacetUnexclude:r.analyticsActionCauseList.facetUnexclude:this.isOmnibox?r.analyticsActionCauseList.omniboxFacetExclude:r.analyticsActionCauseList.facetExclude,this.facet.toggleExcludeValue(this.facetValue),this.onExclude?this.facet.triggerNewQuery(function(){return t.onExclude(t,e)}):this.facet.triggerNewQuery(function(){return t.facet.usageAnalytics.logSearchEvent(e,t.getAnalyticsFacetMeta())})},e.prototype.handleSelectValue=function(e){var t=this;this.facet.keepDisplayedValuesNextTime=e.displayNextTime&&!this.facet.options.useAnd;var n;this.facetValue.excluded?(n=this.isOmnibox?r.analyticsActionCauseList.omniboxFacetUnexclude:r.analyticsActionCauseList.facetUnexclude,this.facet.unexcludeValue(this.facetValue)):(n=this.facetValue.selected?this.isOmnibox?r.analyticsActionCauseList.omniboxFacetDeselect:r.analyticsActionCauseList.facetDeselect:this.isOmnibox?r.analyticsActionCauseList.omniboxFacetSelect:r.analyticsActionCauseList.facetSelect,this.facet.toggleSelectValue(this.facetValue)),this.onSelect?this.facet.triggerNewQuery(function(){return t.onSelect(t,n)}):this.facet.triggerNewQuery(function(){return t.facet.usageAnalytics.logSearchEvent(n,t.getAnalyticsFacetMeta())})},e.prototype.handleExcludeClick=function(e){this.facet.keepDisplayedValuesNextTime=e.displayNextTime&&!this.facet.options.useAnd,this.toggleExcludeWithUA()},e.prototype.handleSelectEventForExcludedValueElement=function(e){var t=this,n=function(){return e.pinFacet&&t.facet.pinFacetPosition(),e.omniboxObject&&t.omniboxCloseEvent(e.omniboxObject),t.handleSelectValue(e),t.tryDismissSearchResults(),!1};s.$$(this.renderer.label).on("click",function(e){e.stopPropagation(),n()}),s.$$(this.renderer.stylishCheckbox).on("keydown",a.KeyboardUtils.keypressAction([a.KEYBOARD.SPACEBAR,a.KEYBOARD.ENTER],n))},e.prototype.handleExcludeEventForValueElement=function(e){var t=this,n=function(n){e.omniboxObject&&t.omniboxCloseEvent(e.omniboxObject),t.handleExcludeClick(e),t.tryDismissSearchResults(),n.stopPropagation(),n.preventDefault()};s.$$(this.renderer.excludeIcon).on("click",n),s.$$(this.renderer.excludeIcon).on("keydown",a.KeyboardUtils.keypressAction([a.KEYBOARD.SPACEBAR,a.KEYBOARD.ENTER],n))},e.prototype.handleSelectEventForValueElement=function(e){var t=this,n=function(n){e.pinFacet&&t.facet.pinFacetPosition(),t.tryDismissSearchResults(),s.$$(t.renderer.checkbox).trigger("change"),n.preventDefault()};s.$$(this.renderer.label).on("click",n),s.$$(this.renderer.stylishCheckbox).on("keydown",a.KeyboardUtils.keypressAction([a.KEYBOARD.SPACEBAR,a.KEYBOARD.ENTER],n))},e.prototype.handleEventForExcludedValueElement=function(e){this.handleSelectEventForExcludedValueElement(e),this.handleExcludeEventForValueElement(e)},e.prototype.handleEventForValueElement=function(e){this.handleSelectEventForValueElement(e),this.handleExcludeEventForValueElement(e)},e.prototype.handleEventForCheckboxChange=function(e){var t=this;s.$$(this.renderer.checkbox).on("change",function(){e.omniboxObject&&t.omniboxCloseEvent(e.omniboxObject),t.handleSelectValue(e)})},e.prototype.omniboxCloseEvent=function(e){e.closeOmnibox(),e.clear()},e.prototype.tryDismissSearchResults=function(){this.facet&&this.facet.facetSearch&&this.facet.facetSearch.dismissSearchResults&&this.facet.facetSearch.dismissSearchResults()},e.prototype.getAnalyticsFacetMeta=function(){return{facetId:this.facet.options.id,facetField:this.facet.options.field.toString(),facetValue:this.facetValue.value,facetTitle:this.facet.options.title}},e}();t.ValueElement=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=n(4),r=n(6),s=n(7),a=n(0),u=n(12),l=n(15),c=function(){function e(e,t){this.facet=e,this.facetValue=t}return e.prototype.withNo=function(e){return a.isArray(e)?a.each(e,function(e){e&&i.$$(e).detach()}):e&&i.$$(e).detach(),this},e.prototype.build=function(){return this.buildListItem(),this.initAndAppendLabel(),this.initAndAppendExcludeIcon(),this.setCssClassOnListValueElement(),this.addAccessibilityAttributesToTargetElement(),this},e.prototype.setCssClassOnListValueElement=function(){i.$$(this.listItem).toggleClass("coveo-selected",this.facetValue.selected),i.$$(this.listItem).toggleClass("coveo-excluded",this.facetValue.excluded)},Object.defineProperty(e.prototype,"accessibleElement",{get:function(){return this.stylishCheckbox},enumerable:!0,configurable:!0}),e.prototype.buildExcludeIcon=function(){var e=this.facetValue.excluded,t=i.$$("div",{ariaLabel:r.l("ExcludeValueWithResultCount",this.caption,r.l("ResultCount",this.count,parseInt(this.count,10))),className:"coveo-facet-value-exclude",tabindex:0,role:"button",ariaPressed:e.toString()}).el;return this.addFocusAndBlurEventListeners(t),t.innerHTML=e?u.SVGIcons.icons.plus:u.SVGIcons.icons.checkboxHookExclusionMore,l.SVGDom.addClassToSVGInContainer(t,e?"coveo-facet-value-unexclude-svg":"coveo-facet-value-exclude-svg"),l.SVGDom.addAttributesToSVGInContainer(t,{"aria-hidden":"true"}),t},e.prototype.buildValueComputedField=function(){var e=this.facetValue.getFormattedComputedField(this.facet.options.computedFieldFormat);if(o.Utils.isNonEmptyString(e)){var t=i.$$("span",{className:"coveo-facet-value-computed-field"}).el;return i.$$(t).text(e),t}},e.prototype.buildValueCheckbox=function(){var e=i.$$("input",{type:"checkbox",ariaHidden:!0,ariaLabel:this.ariaLabel}).el;return this.facetValue.selected?e.setAttribute("checked","checked"):e.removeAttribute("checked"),this.facetValue.excluded?e.setAttribute("disabled","disabled"):e.removeAttribute("disabled"),s.Component.pointElementsToDummyForm(e),e},e.prototype.buildValueStylishCheckbox=function(){var e=i.$$("div",{className:"coveo-facet-value-checkbox",tabindex:0}).el;return e.innerHTML=u.SVGIcons.icons.checkboxHookExclusionMore,l.SVGDom.addClassToSVGInContainer(e,"coveo-facet-value-checkbox-svg"),this.addFocusAndBlurEventListeners(e),e},e.prototype.buildValueIcon=function(){var e=this.getValueIcon();return o.Utils.exists(e)?i.$$("img",{className:"coveo-facet-value-icon coveo-icon",src:this.getValueIcon()}).el:this.buildValueIconFromSprite()},e.prototype.getValueIcon=function(){return o.Utils.exists(this.facet.options.valueIcon)?this.facet.options.valueIcon(this.facetValue):void 0},e.prototype.buildValueIconFromSprite=function(){return i.$$("div",{className:"coveo-facet-value-icon coveo-icon "+this.facet.options.field.substr(1)+" "+this.facetValue.value}).el},e.prototype.buildValueCaption=function(){var e=i.$$("span",{className:"coveo-facet-value-caption",title:this.caption,"data-original-value":this.facetValue.value}).el;return i.$$(e).text(this.caption),e},e.prototype.buildValueCount=function(){if(o.Utils.isNonEmptyString(this.count)){var e=i.$$("span",{className:"coveo-facet-value-count"}).el;return i.$$(e).text(this.count),e}},Object.defineProperty(e.prototype,"caption",{get:function(){return this.facet.getValueCaption(this.facetValue)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"count",{get:function(){return this.facetValue.getFormattedCount()},enumerable:!0,configurable:!0}),e.prototype.addFocusAndBlurEventListeners=function(e){var t=this;i.$$(e).on("focus",function(){return i.$$(t.listItem).addClass("coveo-focused")}),i.$$(e).on("blur",function(){return i.$$(t.listItem).removeClass("coveo-focused")})},e.prototype.buildListItem=function(){this.listItem=i.$$("li",{className:"coveo-facet-value coveo-facet-selectable",ariaLabel:this.ariaLabel}).el,i.$$(this.listItem).canHandleEvent("touchstart")||i.$$(this.listItem).addClass("coveo-with-hover"),this.listItem.setAttribute("data-value",this.facetValue.value)},e.prototype.initAndAppendLabel=function(){this.label=i.$$("label",{className:"coveo-facet-value-label",role:"group"}).el,this.tryToInitAndAppendComputedField(),this.initAndAppendFacetValueLabelWrapper(),this.listItem.appendChild(this.label)},e.prototype.initAndAppendExcludeIcon=function(){this.excludeIcon=this.buildExcludeIcon(),this.attachExcludeIconEventHandlers(),this.listItem.appendChild(this.excludeIcon)},e.prototype.attachExcludeIconEventHandlers=function(){var e=this;i.$$(this.excludeIcon).on("mouseover",function(){i.$$(e.listItem).addClass("coveo-facet-value-will-exclude")}),i.$$(this.excludeIcon).on("mouseout",function(){i.$$(e.listItem).removeClass("coveo-facet-value-will-exclude")})},e.prototype.tryToInitAndAppendComputedField=function(){o.Utils.exists(this.facetValue.computedField)&&(this.computedField=this.buildValueComputedField(),this.computedField&&(this.label.appendChild(this.computedField),i.$$(this.label).addClass("coveo-with-computed-field")))},e.prototype.initAndAppendFacetValueLabelWrapper=function(){this.facetValueLabelWrapper=i.$$("div",{className:"coveo-facet-value-label-wrapper"}).el,this.initAndAppendCheckbox(),this.initAndAppendStylishCheckbox(),this.initAndAppendValueCaption(),this.initAndAppendValueCount(),this.label.appendChild(this.facetValueLabelWrapper)},e.prototype.initAndAppendCheckbox=function(){this.checkbox=this.buildValueCheckbox(),this.facetValueLabelWrapper.appendChild(this.checkbox)},e.prototype.initAndAppendStylishCheckbox=function(){this.stylishCheckbox=this.buildValueStylishCheckbox(),this.facetValueLabelWrapper.appendChild(this.stylishCheckbox)},e.prototype.initAndAppendValueCount=function(){this.valueCount=this.buildValueCount(),this.valueCount&&this.facetValueLabelWrapper.appendChild(this.valueCount)},e.prototype.initAndAppendValueCaption=function(){this.valueCaption=this.buildValueCaption(),this.facetValueLabelWrapper.appendChild(this.valueCaption)},e.prototype.addAccessibilityAttributesToTargetElement=function(){var e=this.accessibleElement;e.setAttribute("aria-label",this.ariaLabel),e.setAttribute("role","button"),e.setAttribute("aria-pressed",this.ariaPressed)},Object.defineProperty(e.prototype,"ariaLabel",{get:function(){var e=r.l("ResultCount",this.count,parseInt(this.count,10));return""+r.l("IncludeValueWithResultCount",this.caption,e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ariaPressed",{get:function(){return this.facetValue.excluded?"mixed":this.facetValue.selected?"true":"false"},enumerable:!0,configurable:!0}),e}();t.ValueElementRenderer=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(22),o=n(0),r=function(){function e(e,t){this.facet=e,this.facetSort=t}return e.prototype.reorderValues=function(e){if(this.facetSort&&this.facetSort.activeSort){if(this.usingCustomSort)return this.reorderValuesWithCustomOrder(e);if(this.usingAlphabeticalSort)return this.reorderValuesWithCustomCaption(e)}return e},e.prototype.reorderValuesIfUsingCustomSort=function(e){return this.usingCustomSort?this.reorderValuesWithCustomOrder(e):e},e.prototype.reorderValuesIfUsingAlphabeticalSort=function(e){return this.usingAlphabeticalSort?this.reorderValuesWithCustomCaption(e):e},Object.defineProperty(e.prototype,"usingCustomSort",{get:function(){return"custom"==this.facetSort.activeSort.name&&void 0!=this.facet.options.customSort},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"usingAlphabeticalSort",{get:function(){return-1!=this.facetSort.activeSort.name.indexOf("alpha")},enumerable:!0,configurable:!0}),e.prototype.reorderValuesWithCustomOrder=function(e){var t=o.map(this.facet.options.customSort,function(e){return e.toLowerCase()}),n=o.map(e,function(e,n){var r=o.findIndex(t,function(t){return i.StringUtils.equalsCaseInsensitive(t,e.value)||null!=e.lookupValue&&i.StringUtils.equalsCaseInsensitive(t,e.lookupValue)});return-1==r&&(r=n+t.length),{facetValue:e,index:r}}),r=o.sortBy(n,"index");return r="ascending"==this.facetSort.customSortDirection?r:r.reverse(),o.pluck(r,"facetValue")},e.prototype.reorderValuesWithCustomCaption=function(e){var t=this,n=e.sort(function(e,n){return t.facet.getValueCaption(e).localeCompare(t.facet.getValueCaption(n),String.locale,{sensitivity:"base"})});return-1!=this.facetSort.activeSort.name.indexOf("descending")&&(n=n.reverse()),n},e}();t.FacetValuesOrder=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=n(12),r=n(15),s=n(7),a=n(6),u=n(133),l=n(544),c=n(0),p=n(545),d=n(25),h=function(){function e(e){this.facetSearch=e,this.searchBarIsAnimating=!1,this.triggeredScroll=!1,this.facetSearchId=c.uniqueId("coveo-facet-search-results"),this.facetValueNotFoundId=c.uniqueId("coveo-facet-value-not-found"),this.facetSearchUserInputHandler=new l.FacetSearchUserInputHandler(this.facetSearch),this.initSearchResults()}return e.prototype.build=function(e){var t=this;return this.search=document.createElement("div"),i.$$(this.search).addClass("coveo-facet-search"),this.magnifier=this.buildMagnifierIcon(),this.search.appendChild(this.magnifier),this.wait=this.buildWaitIcon(),this.search.appendChild(this.wait),this.hideFacetSearchWaitingAnimation(),this.clear=i.$$("div",{className:"coveo-facet-search-clear",title:a.l("Clear",a.l("Search"))},o.SVGIcons.icons.clear).el,r.SVGDom.addClassToSVGInContainer(this.clear,"coveo-facet-search-clear-svg"),this.clear.style.display="none",this.search.appendChild(this.clear),this.combobox=this.buildCombobox(),this.search.appendChild(this.combobox),this.input=this.buildInputElement(),s.Component.pointElementsToDummyForm(this.input),this.combobox.appendChild(this.input),i.$$(this.input).on("keyup",function(e){t.facetSearchUserInputHandler.handleKeyboardEvent(e)}),i.$$(this.clear).on("click",function(t){e&&e()}),i.$$(this.input).on("focus",function(e){t.handleFacetSearchFocus()}),i.$$(this.input).on("blur",function(e){return t.onInputBlur(e)}),this.detectSearchBarAnimation(),this.initSearchDropdownNavigator(),this.search},e.prototype.initSearchResults=function(){var e=this;this.searchResults=i.$$("ul",{id:this.facetSearchId,className:"coveo-facet-search-results",role:"listbox"}).el,i.$$(this.searchResults).on("scroll",function(){return e.handleScrollEvent()}),i.$$(this.searchResults).on("keyup",function(t){t.which===d.KEYBOARD.ESCAPE&&e.facetSearch.dismissSearchResults()}),i.$$(this.searchResults).on("focusout",function(t){return e.onSearchResultsFocusOut(t)}),i.$$(this.searchResults).hide()},e.prototype.onInputBlur=function(e){var t=e.relatedTarget,n=!!t,i=this.searchResults.contains(t);n&&!i&&this.facetSearch.dismissSearchResults()},e.prototype.onSearchResultsFocusOut=function(e){var t=e.relatedTarget,n=!!t,i=this.input.contains(t),o=this.searchResults.contains(t);!n||i||o||this.facetSearch.dismissSearchResults()},e.prototype.initSearchDropdownNavigator=function(){var e=this,t={input:this.input,searchResults:this.searchResults,setScrollTrigger:function(t){return e.triggeredScroll=t}};this.searchDropdownNavigator=p.SearchDropdownNavigatorFactory(this.facetSearch,t)},e.prototype.buildCombobox=function(){return i.$$("div",{className:"coveo-facet-search-middle",ariaHaspopup:"listbox",ariaExpanded:"true"}).el},e.prototype.showFacetSearchWaitingAnimation=function(){this.magnifier&&i.$$(this.magnifier).hide(),i.$$(this.wait).show()},e.prototype.getValueInInputForFacetSearch=function(){return this.input.value.trim()},e.prototype.hideFacetSearchWaitingAnimation=function(){i.$$(this.magnifier).show(),i.$$(this.wait).hide()},e.prototype.detectSearchBarAnimation=function(){var e=this;u.EventsUtils.addPrefixedEvent(this.search,"AnimationStart",function(t){"grow"==t.animationName&&(e.searchBarIsAnimating=!0)}),u.EventsUtils.addPrefixedEvent(this.search,"AnimationEnd",function(t){"grow"==t.animationName&&(e.searchBarIsAnimating=!1)})},e.prototype.positionSearchResults=function(){var e=this;if(null!=this.searchResults){i.$$(this.searchResults).insertAfter(this.search),i.$$(this.searchResults).show(),"none"==i.$$(this.searchResults).css("display")&&(this.searchResults.style.display="");("none"==i.$$(this.search).css("display")||this.searchBarIsAnimating)&&("none"==i.$$(this.searchResults).css("display")&&(this.searchResults.style.display=""),u.EventsUtils.addPrefixedEvent(this.search,"AnimationEnd",function(){u.EventsUtils.removePrefixedEvent(e.search,"AnimationEnd",e)}))}this.addAriaAttributes()},e.prototype.setAsCurrentResult=function(e){this.searchDropdownNavigator.setAsCurrentResult(e)},Object.defineProperty(e.prototype,"currentResult",{get:function(){return this.searchDropdownNavigator.currentResult},enumerable:!0,configurable:!0}),e.prototype.moveCurrentResultDown=function(){this.searchDropdownNavigator.focusNextElement()},e.prototype.moveCurrentResultUp=function(){this.searchDropdownNavigator.focusPreviousElement()},e.prototype.highlightCurrentQueryInSearchResults=function(e){this.facetSearch.getCaptions().forEach(function(t){t.innerHTML=i.$$(t).text().replace(e,'<span class="coveo-highlight">$1</span>')})},e.prototype.appendToSearchResults=function(e){this.searchResults.appendChild(e),this.setupFacetSearchResultsEvents(e)},e.prototype.emptyAndShowNoResults=function(){i.$$(this.searchResults).empty(),this.searchResults.appendChild(i.$$("li",{id:this.facetValueNotFoundId,className:"coveo-facet-value-not-found",role:"option",ariaSelected:"true",tabindex:0},a.l("NoValuesFound")).el),this.input.setAttribute("aria-activedescendant",this.facetValueNotFoundId)},e.prototype.updateAriaLiveWithResults=function(e,t,n){var i=""===e?a.l("ShowingResults",t,e,t):a.l("ShowingResultsWithQuery",t,e,t);n&&(i=i+" ("+a.l("MoreValuesAvailable")+")"),this.facetSearch.updateAriaLive(i)},e.prototype.focus=function(){this.input.focus(),this.handleFacetSearchFocus()},e.prototype.handleFacetSearchFocus=function(){null==this.facetSearch.currentlyDisplayedResults&&(this.facetSearch.displayNewValues(),this.addAriaAttributes())},e.prototype.setupFacetSearchResultsEvents=function(e){var t=this;i.$$(e).on("mousemove",function(){t.setAsCurrentResult(i.$$(e))});var n=!1,o=!1;i.$$(e).on("mousedown",function(){return o=!1}),i.$$(e).on("mousemove",function(){return o=!0}),i.$$(e).on("touchmove",function(){return n=!0}),i.$$(e).on("mouseup touchend",function(){n||o||setTimeout(function(){t.facetSearch.dismissSearchResults()},0),n=!1,o=!1})},e.prototype.hideSearchResultsElement=function(){this.removeAriaAttributes(),i.$$(this.searchResults).hide(),i.$$(this.searchResults).remove()},e.prototype.clearSearchInput=function(){this.input&&(this.input.value="")},e.prototype.buildMagnifierIcon=function(){var e=document.createElement("div");return e.innerHTML=o.SVGIcons.icons.search,i.$$(e).addClass("coveo-facet-search-magnifier"),r.SVGDom.addClassToSVGInContainer(e,"coveo-facet-search-magnifier-svg"),this.search.appendChild(e),e},e.prototype.buildWaitIcon=function(){var e=document.createElement("div");return e.innerHTML=o.SVGIcons.icons.loading,i.$$(e).addClass("coveo-facet-search-wait-animation"),r.SVGDom.addClassToSVGInContainer(e,"coveo-facet-search-wait-animation-svg"),e},e.prototype.buildInputElement=function(){return i.$$("input",{className:"coveo-facet-search-input",type:"text",autocapitalize:"off",autocorrect:"off",ariaLabel:a.l("SearchFacetResults",this.facetSearch.facetTitle),ariaHaspopup:"true",ariaAutocomplete:"list"}).el},e.prototype.handleScrollEvent=function(){this.triggeredScroll?this.triggeredScroll=!1:this.facetSearchUserInputHandler.handleFacetSearchResultsScroll()},e.prototype.addAriaAttributes=function(){this.input&&this.combobox&&(this.combobox.setAttribute("role","combobox"),this.combobox.setAttribute("aria-owns",this.facetSearchId),this.input.setAttribute("aria-controls",this.facetSearchId),this.input.setAttribute("aria-expanded","true"),this.facetSearch.setExpandedFacetSearchAccessibilityAttributes(this.searchResults))},e.prototype.removeAriaAttributes=function(){this.input&&this.combobox&&(this.combobox.removeAttribute("role"),this.combobox.removeAttribute("aria-owns"),this.input.removeAttribute("aria-controls"),this.input.removeAttribute("aria-activedescendant"),this.input.setAttribute("aria-expanded","false"),this.facetSearch.setCollapsedFacetSearchAccessibilityAttributes())},e}();t.FacetSearchElement=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=function(){function e(e){this.config=e}return e.prototype.setAsCurrentResult=function(e){this.currentResult&&this.currentResult.removeClass("coveo-facet-search-current-result"),this.currentResult=e,e.addClass("coveo-facet-search-current-result"),this.updateSelectedOption(e)},e.prototype.focusNextElement=function(){this.moveCurrentResultDown()},e.prototype.focusPreviousElement=function(){this.moveCurrentResultUp()},e.prototype.moveCurrentResultDown=function(){var e=this.currentResult.el.nextElementSibling;e||(e=i.first(this.searchResults.children)),this.setAsCurrentResult(o.$$(e)),this.highlightAndShowCurrentResultWithKeyboard()},e.prototype.moveCurrentResultUp=function(){var e=this.currentResult.el.previousElementSibling;e||(e=i.last(this.searchResults.children)),this.setAsCurrentResult(o.$$(e)),this.highlightAndShowCurrentResultWithKeyboard()},e.prototype.highlightAndShowCurrentResultWithKeyboard=function(){this.currentResult.addClass("coveo-facet-search-current-result"),this.config.setScrollTrigger(!0),this.searchResults.scrollTop=this.currentResult.el.offsetTop},Object.defineProperty(e.prototype,"searchResults",{get:function(){return this.config.searchResults},enumerable:!0,configurable:!0}),e.prototype.updateSelectedOption=function(e){this.config.input.setAttribute("aria-activedescendant",e.getAttribute("id"));var t=o.$$(this.searchResults).find('[aria-selected^="true"]');t&&t.setAttribute("aria-selected","false"),e.setAttribute("aria-selected","true")},e}();t.DefaultSearchDropdownNavigator=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(549),o=n(0),r=function(){function e(e,t,n,i){this.element=e,this.categoryFacetTemplates=t,this.categoryValue=n,this.categoryFacet=i,this.children=[]}return e.prototype.clearChildren=function(){this.element.removeClass("coveo-active-category-facet-parent"),this.children.forEach(function(e){e.clear()}),this.children=[]},e.prototype.renderChildren=function(e){var t=this;o.each(e,function(e){t.renderValue(e,!0).makeSelectable()})},e.prototype.renderAsParent=function(e){return this.renderValue(e,!1)},e.prototype.renderValue=function(e,t){var n=this.categoryValue.path.concat([e.value]),o={value:e.value,count:e.numberOfResults,path:n},r=new i.CategoryValue(this.categoryValue.listRoot,o,this.categoryFacetTemplates,this.categoryFacet);return r.render(t),this.children.push(r),r},e}();t.CategoryChildrenValueRenderer=r},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=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])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n(94);n(558);var r=n(0),s=n(16),a=n(13),u=n(6),l=n(17),c=n(1),p=n(25),d=n(41),h=n(15),f=n(12),m=n(4),y=n(10),g=n(480),v=function(e){function t(t,n){var i=e.call(this,t,n)||this;return i.sorts=t,i.facet=n,i.customSortDirectionChange=!1,i.onDocumentClick=function(){return i.close()},i.enabledSortsIgnoreRenderBecauseOfPairs=[],i.filterDuplicateForRendering(),i}return i(t,e),Object.defineProperty(t.prototype,"isExpanded",{get:function(){return this.settingsButton&&this.settingsButton.getAttribute("aria-expanded")===""+!0},set:function(e){this.settingsButton.setAttribute("aria-expanded",""+e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"firstFocusablePopupElement",{get:function(){return r.find(c.$$(this.settingsPopup).findAll("[tabindex]"),function(e){return e.tabIndex>=0})},enumerable:!0,configurable:!0}),t.prototype.build=function(){var e=this;this.buildSettingsButton(),this.buildSettingsPopup(),m.Utils.isNonEmptyArray(this.enabledSorts)&&(this.sortSection=this.buildSortSection(),this.enabledSortsAllowDirection()&&(this.directionSection=this.buildDirectionSection())),this.facet.options.enableSettingsFacetState&&(this.saveStateSection=this.buildSaveStateSection(),this.clearStateSection=this.buildClearStateSection()),this.facet.options.enableCollapse&&(this.hideSection=this.buildHideSection(),this.showSection=this.buildShowSection());var t=function(){e.appendIfNotUndefined(e.saveStateSection),e.appendIfNotUndefined(e.clearStateSection),e.appendIfNotUndefined(e.hideSection),e.appendIfNotUndefined(e.showSection)};return this.addOnDocumentClickHandler(),this.addOnNukeHandler(),m.Utils.isNonEmptyArray(this.enabledSorts)?(this.settingsPopup.appendChild(this.sortSection.element),r.each(this.directionSection,function(t){e.appendIfNotUndefined(t)}),t()):t(),this.settingsButton},t.prototype.loadSavedState=function(){if(this.facetStateLocalStorage){var e=this.facetStateLocalStorage.load(),t=this.facet.queryStateModel.get(this.includedStateAttribute),n=this.facet.queryStateModel.get(this.excludedStateAttribute),i=this.facet.queryStateModel.get(this.operatorStateAttribute);if(!m.Utils.isNullOrUndefined(e)&&m.Utils.isEmptyArray(t)&&m.Utils.isEmptyArray(n)&&!m.Utils.isNonEmptyString(i)){var o={};o[this.includedStateAttribute]=e.included,o[this.excludedStateAttribute]=e.excluded,o[this.operatorStateAttribute]=e.operator,this.facet.queryStateModel.setMultiple(o),this.loadedFromSettings=o}}else this.facet.logger.info("Facet state local storage not enabled : See Facet.options.enableSettingsFacetState")},t.prototype.saveState=function(){this.facetStateLocalStorage?this.facetStateLocalStorage.save({included:this.facet.queryStateModel.get(this.includedStateAttribute),excluded:this.facet.queryStateModel.get(this.excludedStateAttribute),operator:this.facet.queryStateModel.get(this.operatorStateAttribute)}):this.facet.logger.info("Facet state local storage not enabled : See Facet.options.enableSettingsFacetState")},t.prototype.close=function(){this.isExpanded&&(this.isExpanded=!1,c.$$(this.settingsPopup).detach())},t.prototype.open=function(){var e=this;c.$$(this.settingsPopup).insertAfter(this.settingsButton),new o.default(this.settingsButton,this.settingsPopup),this.isExpanded=!0,this.hideSection&&this.showSection&&(c.$$(this.hideSection).toggle(!c.$$(this.facet.element).hasClass("coveo-facet-collapsed")),c.$$(this.showSection).toggle(c.$$(this.facet.element).hasClass("coveo-facet-collapsed"))),this.facet.options.enableSettingsFacetState&&c.$$(this.clearStateSection).toggle(!m.Utils.isNullOrUndefined(this.facetStateLocalStorage.load())),r.each(this.enabledSorts,function(t,n){e.activeSort.name==t.name.toLowerCase()?e.selectItem(e.getSortItem(t.name)):e.unselectItem(e.getSortItem(t.name))});var t=this.firstFocusablePopupElement;t&&t.focus()},t.prototype.getSortItem=function(e){return r.find(this.sortSection.sortItems,function(t){return c.$$(t).getAttribute("data-sort-name").toLowerCase()==e.replace("ascending|descending","").toLowerCase()})},Object.defineProperty(t.prototype,"button",{get:function(){return this.settingsButton},enumerable:!0,configurable:!0}),t.prototype.buildSettingsButton=function(){var e=this;this.settingsButton=c.$$("div",{className:"coveo-facet-header-settings","aria-haspopup":"true"}).el,this.settingsButton.innerHTML=f.SVGIcons.icons.more,h.SVGDom.addClassToSVGInContainer(this.settingsButton,"coveo-facet-settings-more-svg"),this.hideElementOnMouseEnterLeave(this.settingsButton),this.isExpanded=!1,(new l.AccessibleButton).withElement(this.settingsButton).withLabel(u.l("Settings")).withClickAction(function(t){return e.handleSettingsButtonClick(t)}).withEnterKeyboardAction(function(t){return e.handleSettingsButtonClick(t)}).build()},t.prototype.hideElementOnMouseEnterLeave=function(e){var t=this,n=function(){return t.closeTimeout=window.setTimeout(function(){return t.close()},300)},i=function(){return clearTimeout(t.closeTimeout)};c.$$(e).on("mouseleave",n),c.$$(e).on("mouseenter",i),c.$$(e).on("keyup",p.KeyboardUtils.keypressAction(p.KEYBOARD.ESCAPE,function(){return t.handleKeyboardClose()}))},t.prototype.handleKeyboardClose=function(){this.close(),this.settingsButton.focus()},t.prototype.buildSettingsPopup=function(){var e=this;this.settingsPopup=c.$$("div",{className:"coveo-facet-settings-popup"}).el,this.hideElementOnMouseEnterLeave(this.settingsPopup),c.$$(this.settingsPopup).on("focusout",function(t){t.relatedTarget&&e.settingsPopup.contains(t.relatedTarget)||e.close()})},t.prototype.buildSortSection=function(){var e=this.buildSection("coveo-facet-settings-section-sort"),t=this.buildIcon("coveo-facet-settings-section-sort-svg",f.SVGIcons.icons.sort),n=this.buildItems(),i=document.createElement("div");c.$$(i).addClass("coveo-facet-settings-section-sort-title"),c.$$(i).text(u.l("SortBy")+" :"),n.appendChild(i);var o=this.buildSortSectionItems();return r.each(o,function(e){n.appendChild(e)}),e.appendChild(t),e.appendChild(n),{element:e,sortItems:o}},t.prototype.buildSortSectionItems=function(){var e=this,t=r.map(this.enabledSorts,function(t){if(!r.contains(e.enabledSortsIgnoreRenderBecauseOfPairs,t)){var n=e.buildItem(u.l(t.label),t.description);return c.$$(n).setAttribute("data-sort-name",t.name.toLowerCase().replace("ascending|descending","")),(new l.AccessibleButton).withElement(n).withSelectAction(function(n){return e.handleClickSortButton(n,t)}).withLabel(t.label).build(),n}});return t=r.compact(t)},t.prototype.closePopupAndUpdateSort=function(){this.close(),"custom"!=this.activeSort.name?this.facet.updateSort(this.activeSort.name):(this.facet.updateSort("nosort"),this.customSortDirectionChange&&(this.customSortDirectionChange=!1,this.facet.queryController.executeQuery()))},t.prototype.enabledSortsAllowDirection=function(){var e=this,t=r.filter(this.enabledSorts,function(e){return e.directionToggle});return r.filter(t,function(t){return void 0!=r.findWhere(e.enabledSorts,{name:t.relatedSort})}).length>0},t.prototype.buildDirectionSection=function(){var e=this,t=this.buildAscendingOrDescendingSection("Ascending"),n=this.buildIcon("coveo-facet-settings-section-direction-ascending-svg",f.SVGIcons.icons.ascending),i=this.buildIcon("coveo-facet-settings-section-direction-descending-svg",f.SVGIcons.icons.descending),o=this.buildItems(),r=this.buildAscendingOrDescending("Ascending");o.appendChild(r),t.appendChild(n),t.appendChild(o),(new l.AccessibleButton).withElement(r).withoutLabelOrTitle().withSelectAction(function(){return e.handleDirectionClick(r,"ascending")}).build(),this.unselectSection(t);var s=this.buildAscendingOrDescendingSection("Descending"),a=this.buildItems(),u=this.buildAscendingOrDescending("Descending");return a.appendChild(u),s.appendChild(i),s.appendChild(a),(new l.AccessibleButton).withElement(u).withoutLabelOrTitle().withSelectAction(function(){return e.handleDirectionClick(u,"descending")}).build(),this.unselectSection(s),this.activeSort.directionToggle?this.selectItem(this.getItems(t)[0]):(c.$$(t).addClass("coveo-facet-settings-disabled"),c.$$(s).addClass("coveo-facet-settings-disabled")),[t,s]},t.prototype.buildSaveStateSection=function(){var e=this,t=this.buildSection("coveo-facet-settings-section-save-state"),n=this.buildIcon("coveo-facet-settings-section-save-state-svg",f.SVGIcons.icons.dropdownMore),i=this.buildItems();this.facetStateLocalStorage=new d.LocalStorageUtils("facet-state-"+this.facet.options.id),this.includedStateAttribute=a.QueryStateModel.getFacetId(this.facet.options.id),this.excludedStateAttribute=a.QueryStateModel.getFacetId(this.facet.options.id,!1),this.operatorStateAttribute=a.QueryStateModel.getFacetOperator(this.facet.options.id);var o=document.createElement("div");return c.$$(o).addClass("coveo-facet-settings-item"),o.setAttribute("title",u.l("SaveFacetState")),c.$$(o).text(u.l("SaveFacetState")),i.appendChild(o),t.appendChild(n),t.appendChild(i),(new l.AccessibleButton).withElement(t).withSelectAction(function(){return e.handleSaveStateClick()}).withoutLabelOrTitle().build(),t},t.prototype.buildClearStateSection=function(){var e=this,t=this.buildSection("coveo-facet-settings-section-clear-state"),n=this.buildIcon("coveo-facet-settings-section-clear-state-svg",f.SVGIcons.icons.dropdownLess),i=this.buildItems(),o=this.buildItem(u.l("ClearFacetState"));return i.appendChild(o),t.appendChild(n),t.appendChild(i),(new l.AccessibleButton).withElement(t).withSelectAction(function(){return e.handleClearStateClick()}).withoutLabelOrTitle().build(),t},t.prototype.buildHideSection=function(){var e=this,t=this.buildSection("coveo-facet-settings-section-hide"),n=this.buildIcon("coveo-facet-settings-section-hide-svg",f.SVGIcons.icons.facetCollapse),i=this.buildItems(),o=this.buildItem(u.l("Collapse"));return i.appendChild(o),t.appendChild(n),t.appendChild(i),(new l.AccessibleButton).withElement(t).withSelectAction(function(){e.facet.facetHeader.collapseFacet(),e.close()}).withLabel(u.l("CollapseFacet",this.facet.options.title)).build(),t},t.prototype.buildShowSection=function(){var e=this,t=this.buildSection("coveo-facet-settings-section-show"),n=this.buildIcon("coveo-facet-settings-section-show-svg",f.SVGIcons.icons.facetExpand),i=this.buildItems(),o=this.buildItem(u.l("Expand"));return i.appendChild(o),t.appendChild(n),t.appendChild(i),(new l.AccessibleButton).withElement(t).withSelectAction(function(){e.facet.facetHeader.expandFacet(),e.close()}).withLabel(u.l("ExpandFacet",this.facet.options.title)).build(),t},t.prototype.buildIcon=function(e,t){if(e&&t){var n=c.$$("div",{className:"coveo-icon-container"},t);return h.SVGDom.addClassToSVGInContainer(n.el,e),n.el}return c.$$("div",{className:"coveo-icon"}).el},t.prototype.buildAscendingOrDescending=function(e){var t=this.buildItem(u.l(e));return t.setAttribute("aria-disabled","true"),t.setAttribute("data-direction",e.toLowerCase()),t},t.prototype.buildAscendingOrDescendingSection=function(e){return this.buildSection("coveo-facet-settings-section-direction-"+e.toLowerCase())},t.prototype.buildItem=function(e,t){return void 0===t&&(t=e),c.$$("div",{className:"coveo-facet-settings-item",title:t},r.escape(e)).el},t.prototype.buildItems=function(){var e=document.createElement("div");return c.$$(e).addClass("coveo-facet-settings-items"),e},t.prototype.buildSection=function(e){var t=document.createElement("div");return c.$$(t).addClass(["coveo-facet-settings-section",e]),t},t.prototype.handleSettingsButtonClick=function(e){e.stopPropagation(),m.Utils.isNullOrUndefined(this.settingsPopup.parentElement)?this.open():this.close()},t.prototype.handleClickSortButton=function(e,n){this.activeSort!=n&&this.activeSort.relatedSort!=n.name&&(this.activeSort=n,n.directionToggle&&r.contains(this.enabledSorts,t.availableSorts[this.activeSort.relatedSort])?this.activateDirectionSection():this.disableDirectionSection(),this.unselectSection(this.sortSection.element),this.selectItem(e.target),this.closePopupAndUpdateSort())},t.prototype.handleDirectionClick=function(e,n){var i=this;"false"===e.getAttribute("aria-disabled")&&-1===this.activeSort.name.indexOf(n)&&(this.activeSort=t.availableSorts[this.activeSort.relatedSort],r.each(this.directionSection,function(e){i.unselectSection(e)}),this.selectItem(e),"custom"==this.activeSort.name&&this.customSortDirection!=n&&(this.customSortDirection=n,this.customSortDirectionChange=!0),this.closePopupAndUpdateSort())},t.prototype.handleSaveStateClick=function(){this.saveState(),this.close()},t.prototype.handleClearStateClick=function(){var e=this;this.facetStateLocalStorage.remove(),this.facet.reset(),this.close(),this.facet.triggerNewQuery(function(){return e.facet.usageAnalytics.logSearchEvent(y.analyticsActionCauseList.facetClearAll,{facetId:e.facet.options.id,facetField:e.facet.options.field.toString(),facetTitle:e.facet.options.title})})},t.prototype.addOnNukeHandler=function(){var e=this;c.$$(this.facet.root).on(s.InitializationEvents.nuke,function(){return e.handleNuke()})},t.prototype.addOnDocumentClickHandler=function(){var e=this;document.addEventListener("click",function(){return e.onDocumentClick()})},t.prototype.getCurrentDirectionItem=function(e){var t=this;void 0===e&&(e=this.directionSection);var n;return r.each(e,function(e){n||(n=r.find(t.getItems(e),function(e){return-1!=t.activeSort.name.indexOf(e.getAttribute("data-direction"))}))}),n||(n=e[0]),n},t.prototype.activateDirectionSection=function(){var e=this;r.each(this.directionSection,function(t){c.$$(t).removeClass("coveo-facet-settings-disabled"),c.$$(t).find(".coveo-facet-settings-item").setAttribute("aria-disabled","false"),e.unselectSection(t)}),this.selectItem(this.getCurrentDirectionItem())},t.prototype.disableDirectionSection=function(){var e=this;r.each(this.directionSection,function(t){c.$$(t).addClass("coveo-facet-settings-disabled"),c.$$(t).find(".coveo-facet-settings-item").setAttribute("aria-disabled","true"),e.unselectSection(t)})},t.prototype.getItems=function(e){return c.$$(e).findAll(".coveo-facet-settings-item")},t.prototype.unselectSection=function(e){var t=this;r.each(this.getItems(e),function(e){return t.unselectItem(e)})},t.prototype.selectItem=function(e){e&&(c.$$(e).addClass("coveo-selected"),e.setAttribute("aria-pressed","true"))},t.prototype.unselectItem=function(e){e&&(c.$$(e).removeClass("coveo-selected"),e.setAttribute("aria-pressed","false"))},t.prototype.filterDuplicateForRendering=function(){var e=this;r.each(this.enabledSorts,function(t,n){if(null!=t.relatedSort)for(var i=n+1;i<e.enabledSorts.length;i++)if(e.enabledSorts[i].name==t.relatedSort){e.enabledSortsIgnoreRenderBecauseOfPairs.push(e.enabledSorts[i]);break}})},t.prototype.appendIfNotUndefined=function(e){m.Utils.isNullOrUndefined(e)||this.settingsPopup.appendChild(e)},t.prototype.handleNuke=function(){document.removeEventListener("click",this.onDocumentClick)},t}(g.FacetSort);t.FacetSettings=v},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(6),o=n(479),r=n(4),s=n(0),a=function(){function e(e,t){var n=this;this.facet=t,this.enabledSorts=[],this.customSortDirection="ascending",s.each(e,function(e){var t=o.FacetSettings.availableSorts[e.toLowerCase()];void 0!=t&&n.enabledSorts.push(t)}),this.removeEnabledSortsBasedOnFacetType(),r.Utils.isNonEmptyArray(this.enabledSorts)&&(void 0!=this.facet.options.sortCriteria&&(this.activeSort=s.find(this.enabledSorts,function(e){return e.name==n.facet.options.sortCriteria})),this.activeSort||(this.activeSort=this.enabledSorts[0]))}return e.prototype.removeEnabledSortsBasedOnFacetType=function(){if(Coveo.FacetRange&&this.facet instanceof Coveo.FacetRange){this.facet.options.slider&&(this.enabledSorts=[])}},e.availableSorts={score:{label:i.l("Score"),directionToggle:!1,description:i.l("ScoreDescription"),name:"score"},occurrences:{label:i.l("Occurrences"),directionToggle:!1,description:i.l("OccurrencesDescription"),name:"occurrences"},alphaascending:{label:i.l("Label"),directionToggle:!0,description:i.l("LabelDescription"),name:"alphaascending",relatedSort:"alphadescending"},alphadescending:{label:i.l("Label"),directionToggle:!0,description:i.l("LabelDescription"),name:"alphadescending",relatedSort:"alphaascending"},computedfieldascending:{label:i.l("Value"),directionToggle:!0,description:i.l("ValueDescription"),name:"computedfieldascending",relatedSort:"computedfielddescending"},computedfielddescending:{label:i.l("Value"),directionToggle:!0,description:i.l("ValueDescription"),name:"computedfielddescending",relatedSort:"computedfieldascending"},chisquare:{label:i.l("RelativeFrequency"),directionToggle:!1,description:i.l("RelativeFrequencyDescription"),name:"chisquare"},nosort:{label:i.l("Nosort"),directionToggle:!1,description:i.l("NosortDescription"),name:"nosort"},custom:{label:i.l("Custom"),directionToggle:!0,description:i.l("CustomDescription"),name:"custom",relatedSort:"custom"}},e}();t.FacetSort=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=n(6),r=n(10);n(538);var s=n(12),a=n(15),u=n(17),l=function(){function e(e){this.options=e,this.element=document.createElement("div"),i.$$(this.element).addClass("coveo-facet-header")}return e.prototype.build=function(){var e=i.$$("div",{className:"coveo-facet-header-title-section"});void 0!=this.options.icon&&(this.iconElement=this.buildIcon(),e.append(this.iconElement)),e.append(this.buildTitle()),this.waitElement=this.buildWaitAnimation(),e.append(this.waitElement),this.element.appendChild(e.el);var t=i.$$("div",{className:"coveo-facet-header-settings-section"});return this.eraserElement=this.buildEraser(),t.append(this.eraserElement),this.options.facet&&(this.operatorElement=this.buildOperatorToggle(),t.append(this.operatorElement),i.$$(this.operatorElement).toggle(this.options.facet.options.enableTogglingOperator)),this.options.settingsKlass?(this.sort=this.settings=new this.options.settingsKlass(this.options.availableSorts,this.options.facet),t.append(this.settings.build())):this.options.sortKlass&&(this.sort=new this.options.sortKlass(this.options.availableSorts,this.options.facet)),this.element.appendChild(t.el),this.element},e.prototype.switchToAnd=function(){this.options.facet&&(this.options.facet.options.useAnd=!0,this.rebuildOperatorToggle(),this.updateOperatorQueryStateModel())},e.prototype.switchToOr=function(){this.options.facet&&(this.options.facet.options.useAnd=!1,this.rebuildOperatorToggle(),this.updateOperatorQueryStateModel())},e.prototype.collapseFacet=function(){this.collapseElement&&this.expandElement&&(i.$$(this.collapseElement).hide(),i.$$(this.expandElement).show()),i.$$(this.options.facetElement).addClass("coveo-facet-collapsed")},e.prototype.expandFacet=function(){this.collapseElement&&this.expandElement&&(i.$$(this.expandElement).hide(),i.$$(this.collapseElement).show()),i.$$(this.options.facetElement).removeClass("coveo-facet-collapsed")},e.prototype.updateOperatorQueryStateModel=function(){if(this.options.facet&&this.options.facet.options.enableTogglingOperator){var e="";0==this.options.facet.getSelectedValues().length&&0==this.options.facet.getExcludedValues().length||(e=this.options.facet.options.useAnd?"and":"or"),this.options.facet.queryStateModel.set(this.options.facet.operatorAttributeId,e)}},e.prototype.rebuildOperatorToggle=function(){var e=this.buildOperatorToggle();this.operatorElement&&i.$$(this.operatorElement).replaceWith(e),this.operatorElement=e},e.prototype.buildIcon=function(){var e;return e=this.options.icon?"coveo-icon-custom "+this.options.icon:"coveo-icon "+this.options.field.substr(1),this.iconElement=document.createElement("div"),i.$$(this.iconElement).addClass(e),this.iconElement},e.prototype.buildWaitAnimation=function(){return this.waitElement=i.$$("div",{className:"coveo-facet-header-wait-animation"},s.SVGIcons.icons.loading).el,a.SVGDom.addClassToSVGInContainer(this.waitElement,"coveo-facet-header-wait-animation-svg"),this.waitElement.style.visibility="hidden",this.waitElement},e.prototype.buildOperatorToggle=function(){var e=this,t=o.l("SwitchTo",this.options.facet.options.useAnd?o.l("Or"):o.l("And")),n=i.$$("span",{className:"coveo-"+(this.options.facet.options.useAnd?"and":"or")},s.SVGIcons.icons.orAnd);a.SVGDom.addClassToSVGInContainer(n.el,"coveo-or-and-svg");var r=i.$$("div",{className:"coveo-facet-header-operator",title:t});return r.append(n.el),(new u.AccessibleButton).withElement(r).withLabel(t).withSelectAction(function(){return e.handleOperatorClick()}).build(),r.el},e.prototype.handleOperatorClick=function(){var e=this;if(this.options.facet.options.useAnd?this.options.facet.switchToOr():this.options.facet.switchToAnd(),0!=this.options.facet.getSelectedValues().length){var t=this.options.facet.options.useAnd?"AND":"OR",n=this.options.facet.options.useAnd?"OR":"AND";this.options.facet.triggerNewQuery(function(){return e.options.facet.usageAnalytics.logSearchEvent(r.analyticsActionCauseList.facetToggle,{facetId:e.options.facet.options.id,facetField:e.options.field.toString(),facetOperatorBefore:n,facetOperatorAfter:t,facetTitle:e.options.title})})}},e.prototype.buildTitle=function(){var e=i.$$("div",{className:"coveo-facet-header-title"});return e.text(this.options.title),e.setAttribute("role","heading"),e.setAttribute("aria-level","2"),e.setAttribute("aria-label",o.l("FacetTitle",this.options.title)+"."),e.el},e.prototype.buildEraser=function(){var e=this,t=i.$$("div",{className:"coveo-facet-header-eraser"},s.SVGIcons.icons.mainClear);return a.SVGDom.addClassToSVGInContainer(t.el,"coveo-facet-header-eraser-svg"),(new u.AccessibleButton).withElement(t.el).withLabel(o.l("Clear",this.options.title)).withClickAction(function(){return e.onEraserClick()}).withEnterKeyboardAction(function(){return e.onEraserClick()}).build(),t.el},e.prototype.onEraserClick=function(){var e=this.options.facet||this.options.facetSlider;e.reset(),e.usageAnalytics.logSearchEvent(r.analyticsActionCauseList.facetClearAll,{facetId:e.options.id,facetField:e.options.field.toString(),facetTitle:e.options.title}),e.queryController.executeQuery()},e}();t.FacetHeader=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n(542);var i=n(0),o=n(5),r=n(17),s=n(1),a=n(12),u=n(10),l=n(6),c=function(){function e(e,t){this.facet=e,this.facetValue=t}return e.prototype.build=function(){o.Assert.exists(this.facetValue);var e=this.buildElements(),t=e.container,n=e.caption,i=e.clear,r=e.listContainer;return t.append(n.el),t.append(i.el),r.append(t.el),r},e.prototype.getBreadcrumbTooltip=function(){var e=[this.facet.getValueCaption(this.facetValue),this.facetValue.getFormattedCount(),this.facetValue.getFormattedComputedField(this.facet.options.computedFieldFormat)];return i.compact(e).join(" ")},e.prototype.buildElements=function(){return{container:this.buildContainer(),clear:this.buildClear(),caption:this.buildCaption(),listContainer:this.buildListContainer()}},e.prototype.buildContainer=function(){var e=this,t=s.$$("div",{className:"coveo-facet-breadcrumb-value"});t.toggleClass("coveo-selected",this.facetValue.selected),t.toggleClass("coveo-excluded",this.facetValue.excluded);var n=this.facetValue.excluded?"Unexclude":"RemoveFilterOn",i=l.l(n,this.facet.getValueCaption(this.facetValue));return(new r.AccessibleButton).withElement(t).withLabel(i).withSelectAction(function(){return e.selectAction()}).build(),t},e.prototype.buildListContainer=function(){return s.$$("li",{className:"coveo-facet-breadcrumb-value-list-item"})},e.prototype.buildClear=function(){return s.$$("span",{className:"coveo-facet-breadcrumb-clear"},a.SVGIcons.icons.mainClear)},e.prototype.buildCaption=function(){var e=s.$$("span",{className:"coveo-facet-breadcrumb-caption"});return e.text(this.facet.getValueCaption(this.facetValue)),e},e.prototype.selectAction=function(){var e=this;this.facetValue.excluded?this.facet.unexcludeValue(this.facetValue.value):this.facet.deselectValue(this.facetValue.value),this.facet.triggerNewQuery(function(){return e.facet.usageAnalytics.logSearchEvent(u.analyticsActionCauseList.breadcrumbFacet,{facetId:e.facet.options.id,facetField:e.facet.options.field.toString(),facetValue:e.facetValue.value,facetTitle:e.facet.options.title})}),this.focusOnContainer()},e.prototype.focusOnContainer=function(){var e=i.first(this.facet.searchInterface.getComponents("Breadcrumb"));e&&e.element.focus()},e}();t.BreadcrumbValueElement=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(23),o=n(0),r=n(5),s=n(6),a=n(1),u=n(17),l=function(){function e(e,t,n){this.facet=e,this.facetValues=t,this.breadcrumbValueElementKlass=n,this.setExpandedAndCollapsed(),this.elem=a.$$("div",{className:"coveo-facet-breadcrumb"}).el;var i=a.$$("span");i.addClass("coveo-facet-breadcrumb-title"),i.text(this.facet.options.title+":"),this.elem.appendChild(i.el),this.valueContainer=a.$$("ul",{className:"coveo-facet-breadcrumb-values"}).el,this.elem.appendChild(this.valueContainer)}return e.prototype.build=function(){return this.buildExpanded(),0!=this.collapsed.length&&this.buildCollapsed(),this.elem},e.prototype.buildAsString=function(){return this.build(),this.elem?this.facet.options.title+": "+a.$$(this.elem).findAll(".coveo-facet-breadcrumb-value").map(function(e){return a.$$(e).text()}).join(", "):""},e.prototype.buildExpanded=function(){var e=this;this.expanded.forEach(function(t){var n=new e.breadcrumbValueElementKlass(e.facet,t).build();e.valueContainer.appendChild(n.el)})},e.prototype.buildCollapsed=function(){var e=this,t=o.filter(this.collapsed,function(e){return e.selected}).length,n=o.filter(this.collapsed,function(e){return e.excluded}).length;r.Assert.check(t+n==this.collapsed.length);var l=a.$$("div",{className:"coveo-facet-breadcrumb-value"},a.$$("span",{className:"coveo-facet-breadcrumb-multi-count"},s.l("NMore",i.format(t+n,"n0")))),c=a.$$("li",{className:"coveo-facet-breadcrumb-value-list-item"},l),p=this.collapsed.map(function(t){return new e.breadcrumbValueElementKlass(e.facet,t)}),d=p.map(function(e){return e.getBreadcrumbTooltip()}).join("\n");(new u.AccessibleButton).withElement(l).withTitle(d).withSelectAction(function(){l.remove(),p.forEach(function(t){e.valueContainer.appendChild(t.build().el)})}).build(),this.valueContainer.appendChild(c.el)},e.prototype.setExpandedAndCollapsed=function(){this.facetValues.length>this.facet.options.numberOfValuesInBreadcrumb?(this.collapsed=o.rest(this.facetValues,this.facet.options.numberOfValuesInBreadcrumb),this.expanded=o.first(this.facetValues,this.facet.options.numberOfValuesInBreadcrumb)):(this.collapsed=[],this.expanded=this.facetValues)},e}();t.BreadcrumbValueList=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(69),o=n(1),r=n(4),s=n(16),a=n(170),u=n(10),l=n(6),c=n(5),p=n(113),d=n(22),h=n(127),f=n(26),m=n(19),y=n(126),g=n(475);n(543);var v=n(0),b=n(476),S=function(){function e(e,t,n){var r=this;this.facet=e,this.facetSearchValuesListKlass=t,this.root=n,this.moreValuesToFetch=!0,this.lastSearchWasEmpty=!0,this.facetSearchElement=new b.FacetSearchElement(this),this.onResize=v.debounce(function(){r.facet instanceof i.Facet&&r.facet.searchInterface instanceof m.SearchInterface&&r.shouldPositionSearchResults()&&r.positionSearchResults()},250),this.onDocumentClick=function(e){r.handleClickElsewhere(e)},window.addEventListener("resize",this.onResize),document.addEventListener("click",function(e){return r.onDocumentClick(e)}),o.$$(e.root).on(s.InitializationEvents.nuke,function(){return r.handleNuke()})}return Object.defineProperty(e.prototype,"facetType",{get:function(){return i.Facet.ID},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"facetTitle",{get:function(){return this.facet.options.title||this.facet.options.field.toString()},enumerable:!0,configurable:!0}),e.prototype.build=function(){return this.buildBaseSearch()},e.prototype.positionSearchResults=function(){this.facetSearchElement.positionSearchResults()},e.prototype.fetchMoreValues=function(){this.triggerNewFacetSearch(this.buildParamsForFetchingMore())},e.prototype.dismissSearchResults=function(){this.cancelAnyPendingSearchOperation(),this.facet.unfadeInactiveValuesInMainList(),o.$$(this.searchResults).empty(),this.moreValuesToFetch=!0,o.$$(this.search).removeClass("coveo-facet-search-no-results"),o.$$(this.facet.element).removeClass("coveo-facet-searching"),this.facetSearchElement.hideSearchResultsElement(),this.input.value="",o.$$(this.clear).hide(),this.currentlyDisplayedResults=void 0},e.prototype.triggerNewFacetSearch=function(e){var t=this;this.cancelAnyPendingSearchOperation(),this.facetSearchElement.showFacetSearchWaitingAnimation(),this.facet.logger.info("Triggering new facet search"),this.facetSearchPromise=this.facet.facetQueryController.search(e),this.facetSearchPromise&&this.facetSearchPromise.then(function(n){t.facet.usageAnalytics.logCustomEvent(u.analyticsActionCauseList.facetSearch,{facetId:t.facet.options.id,facetField:t.facet.options.field.toString(),facetTitle:t.facet.options.title},t.facet.root),t.facet.logger.debug("Received field values",n),t.processNewFacetSearchResults(n,e),t.facetSearchElement.hideFacetSearchWaitingAnimation(),t.facetSearchPromise=void 0}).catch(function(e){return r.Utils.exists(e)&&(t.facet.logger.error("Error while retrieving facet values",e),t.facetSearchElement.hideFacetSearchWaitingAnimation()),t.facetSearchPromise=void 0,null})},e.prototype.focus=function(){this.facetSearchElement.focus()},Object.defineProperty(e.prototype,"searchResults",{get:function(){return this.facetSearchElement.searchResults},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"searchBarIsAnimating",{get:function(){return this.facetSearchElement.searchBarIsAnimating},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"search",{get:function(){return this.facetSearchElement.search},enumerable:!0,configurable:!0}),e.prototype.setExpandedFacetSearchAccessibilityAttributes=function(e){this.facet.setExpandedFacetSearchAccessibilityAttributes(e)},e.prototype.setCollapsedFacetSearchAccessibilityAttributes=function(){this.facet.setCollapsedFacetSearchAccessibilityAttributes()},e.prototype.keyboardEventDefaultHandler=function(){this.moreValuesToFetch=!0,this.highlightCurrentQueryWithinSearchResults(),this.inputIsEmpty()?this.lastSearchWasEmpty||(this.currentlyDisplayedResults=void 0,o.$$(this.searchResults).empty(),this.lastSearchWasEmpty=!0,this.displayNewValues(this.buildParamsForFetchingMore())):(this.lastSearchWasEmpty=!1,this.displayNewValues(this.buildParamsForNormalSearch()))},e.prototype.keyboardNavigationEnterPressed=function(e){e.shiftKey?this.triggerNewFacetSearch(this.buildParamsForNormalSearch()):"none"!=this.searchResults.style.display?(this.performActionOnCurrentSearchResult(),this.dismissSearchResults()):o.$$(this.search).is(".coveo-facet-search-no-results")&&this.selectAllValuesMatchingSearch()},e.prototype.keyboardNavigationDeletePressed=function(e){e.shiftKey&&(this.performExcludeActionOnCurrentSearchResult(),this.dismissSearchResults(),this.input.value="")},e.prototype.displayNewValues=function(e){var t=this;void 0===e&&(e=this.buildParamsForExcludingCurrentlyDisplayedValues()),this.cancelAnyPendingSearchOperation(),this.facetSearchTimeout=window.setTimeout(function(){t.triggerNewFacetSearch(e)},this.facet.options.facetSearchDelay)},e.prototype.getCaptions=function(){return o.$$(this.searchResults).findAll(".coveo-facet-value-caption")},e.prototype.getValueInInputForFacetSearch=function(){return this.facetSearchElement.getValueInInputForFacetSearch()},e.prototype.updateAriaLive=function(e){this.facet.searchInterface.ariaLive.updateText(e)},Object.defineProperty(e.prototype,"input",{get:function(){return this.facetSearchElement.input},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"clear",{get:function(){return this.facetSearchElement.clear},enumerable:!0,configurable:!0}),e.prototype.shouldPositionSearchResults=function(){return!y.ResponsiveComponentsUtils.isSmallFacetActivated(o.$$(this.root))&&o.$$(this.facet.element).hasClass("coveo-facet-searching")},e.prototype.buildBaseSearch=function(){var e=this;return this.facetSearchElement.build(function(){return e.handleFacetSearchClear()}),o.$$(this.facetSearchElement.input).on("keyup",function(){return e.showOrHideClearElement()}),this.search},e.prototype.handleNuke=function(){window.removeEventListener("resize",this.onResize),document.removeEventListener("click",this.onDocumentClick)},e.prototype.handleClickElsewhere=function(e){this.currentlyDisplayedResults&&this.search!=e.target&&this.searchResults!=e.target&&this.input!=e.target&&this.dismissSearchResults()},e.prototype.handleFacetSearchClear=function(){this.input.value="",o.$$(this.clear).hide(),this.dismissSearchResults()},e.prototype.showOrHideClearElement=function(){this.inputIsEmpty()?(o.$$(this.clear).hide(),o.$$(this.search).removeClass("coveo-facet-search-no-results")):o.$$(this.clear).show()},e.prototype.cancelAnyPendingSearchOperation=function(){r.Utils.exists(this.facetSearchTimeout)&&(clearTimeout(this.facetSearchTimeout),this.facetSearchTimeout=void 0),r.Utils.exists(this.facetSearchPromise)&&(Promise.reject(this.facetSearchPromise).catch(function(){}),this.facetSearchPromise=void 0),this.facetSearchElement.hideFacetSearchWaitingAnimation()},e.prototype.inputIsEmpty=function(){return""==this.input.value.trim()},e.prototype.processNewFacetSearchResults=function(e,t){c.Assert.exists(e),e=new g.FacetValuesOrder(this.facet,this.facet.facetSort).reorderValues(e),e.length>0?(o.$$(this.search).removeClass("coveo-facet-search-no-results"),this.facet.fadeInactiveValuesInMainList(this.facet.options.facetSearchDelay),this.rebuildSearchResults(e,t),t.fetchMore||this.showSearchResultsElement(),this.highlightCurrentQueryWithinSearchResults(),this.makeFirstSearchResultTheCurrentOne(),this.facetSearchElement.updateAriaLiveWithResults(this.input.value,this.currentlyDisplayedResults.length,this.moreValuesToFetch)):t.fetchMore?this.moreValuesToFetch=!1:(o.$$(this.search).addClass("coveo-facet-search-no-results"),this.showSearchResultsElement(),this.facetSearchElement.emptyAndShowNoResults())},e.prototype.rebuildSearchResults=function(e,t){var n=this;c.Assert.exists(e),t.fetchMore||o.$$(this.searchResults).empty(),r.Utils.isNonEmptyString(t.valueToSearch)&&this.appendSelectAllResultsButton();var i=v.map(e,function(e){return p.FacetValue.create(e)});v.each(new this.facetSearchValuesListKlass(this.facet,h.FacetValueElement).build(i),function(e){n.facetSearchElement.appendToSearchResults(e)}),this.currentlyDisplayedResults?this.currentlyDisplayedResults=this.currentlyDisplayedResults.concat(v.pluck(i,"value")):this.currentlyDisplayedResults=v.pluck(i,"value"),v.each(o.$$(this.searchResults).findAll(".coveo-facet-selectable"),function(e,t){o.$$(e).setAttribute("id","coveo-facet-search-"+n.facet.options.id+"-suggestion-"+t),o.$$(e).setAttribute("role","option"),o.$$(e).setAttribute("aria-selected","false"),o.$$(e).addClass("coveo-facet-search-selectable")})},e.prototype.appendSelectAllResultsButton=function(){var e=this,t=document.createElement("li");o.$$(t).addClass(["coveo-facet-selectable","coveo-facet-search-selectable","coveo-facet-search-select-all"]),o.$$(t).text(l.l("SelectAll")),o.$$(t).on("click",function(){return e.selectAllValuesMatchingSearch()}),this.facetSearchElement.appendToSearchResults(t)},e.prototype.buildParamsForNormalSearch=function(){var e=new a.FacetSearchParameters(this.facet);return e.setValueToSearch(this.getValueInInputForFacetSearch()),e.fetchMore=!1,e},e.prototype.buildParamsForFetchingMore=function(){var e=this.buildParamsForExcludingCurrentlyDisplayedValues();return e.fetchMore=!0,e},e.prototype.buildParamsForExcludingCurrentlyDisplayedValues=function(){var e=new a.FacetSearchParameters(this.facet);return e.excludeCurrentlyDisplayedValuesInSearch(this.searchResults),e.setValueToSearch(this.getValueInInputForFacetSearch()),e},e.prototype.showSearchResultsElement=function(){this.positionSearchResults()},e.prototype.highlightCurrentQueryWithinSearchResults=function(){var e=this.getValueInInputForFacetSearch(),t=new RegExp("("+d.StringUtils.wildcardsToRegex(e,this.facet.options.facetSearchIgnoreAccents)+")","ig");this.facetSearchElement.highlightCurrentQueryInSearchResults(t)},e.prototype.makeFirstSearchResultTheCurrentOne=function(){this.facetSearchElement.setAsCurrentResult(o.$$(this.getSelectables()[0]))},e.prototype.getSelectables=function(e){return void 0===e&&(e=this.searchResults),o.$$(e).findAll(".coveo-facet-selectable")},e.prototype.performActionOnCurrentSearchResult=function(){var e=o.$$(this.searchResults).find(".coveo-facet-search-current-result");if(c.Assert.check(void 0!=e),o.$$(e).hasClass("coveo-facet-value-will-exclude"))return void o.$$(e).find(".coveo-facet-value-exclude").click();var t=o.$$(e).find('input[type="checkbox"]');t?(t.checked=!0,o.$$(t).trigger("change")):e.click()},e.prototype.performExcludeActionOnCurrentSearchResult=function(){var e=o.$$(this.searchResults).find(".coveo-facet-search-current-result");c.Assert.check(null!=e);var t=o.$$(e).find(".coveo-facet-value-caption");this.facet.facetValuesList.get(o.$$(t).text()).toggleExcludeWithUA()},e.prototype.selectAllValuesMatchingSearch=function(){var e=this;this.facet.showWaitingAnimation();var t=new a.FacetSearchParameters(this.facet);t.nbResults=1e3,t.setValueToSearch(this.getValueInInputForFacetSearch()),this.facet.facetQueryController.search(t).then(function(t){e.dismissSearchResults(),f.ModalBox.close(!0);var n=v.map(t,function(t){var n=e.facet.values.get(t.value);return r.Utils.exists(n)||(n=p.FacetValue.create(t)),n.selected=!0,n.excluded=!1,n});e.facet.processFacetSearchAllResultsSelected(n)}),this.dismissSearchResults()},e}();t.FacetSearch=S},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=function(){function e(e,t){this.facet=e,this.facetValueElementKlass=t}return e.prototype.build=function(e){var t=this,n=i.map(e,function(e){return i.find(t.facet.values.getAll(),function(t){return t.value==e.value})||e});return i.map(n,function(e){var n=new t.facetValueElementKlass(t.facet,e,t.facet.keepDisplayedValuesNextTime).build();return n.renderer.excludeIcon.setAttribute("aria-hidden","true"),n.renderer.label.setAttribute("aria-hidden","true"),n.renderer.listItem})},e}();t.FacetSearchValuesList=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(127),o=n(1),r=n(113),s=n(4),a=n(40),u=n(0),l=function(){function e(e,t){this.facet=e,this.facetValueElementKlass=t,this.valueList={},this.currentlyDisplayed=[]}return e.prototype.build=function(){return this.valueContainer=document.createElement("ul"),o.$$(this.valueContainer).addClass("coveo-facet-values"),this.valueContainer},e.prototype.getAllCurrentlyDisplayed=function(){return this.currentlyDisplayed},e.prototype.getAll=function(){return u.toArray(this.valueList)},e.prototype.getAllFacetValue=function(){return u.map(this.getAll(),function(e){return e.facetValue})},e.prototype.get=function(e){var t;return e instanceof r.FacetValue?t=e.value:(e=s.Utils.anyTypeToString(e),t=e),this.ensureFacetValueIsInList(e),this.valueList[t.toLowerCase()]},e.prototype.select=function(e){var t=this.get(e);return t.select(),t},e.prototype.unselect=function(e){var t=this.get(e);return t.unselect(),t},e.prototype.exclude=function(e){var t=this.get(e);return t.exclude(),t},e.prototype.unExclude=function(e){var t=this.get(e);return t.unexclude(),t},e.prototype.toggleSelect=function(e){var t=this.get(e);return t.facetValue.selected?t.unselect():t.select(),t},e.prototype.toggleExclude=function(e){var t=this.get(e);return t.facetValue.excluded?t.unexclude():t.exclude(),t},e.prototype.rebuild=function(e){var t=this;o.$$(this.valueContainer).empty(),this.currentlyDisplayed=[];var n=this.getValuesToBuildWith(),i=e,r=document.createDocumentFragment();u.each(n,function(e,n,o){if(t.facetValueShouldBeRemoved(e))t.facet.values.remove(e.value),i+=1;else if(n<i){var s=new t.facetValueElementKlass(t.facet,e,!0);t.valueList[e.value.toLowerCase()]=s;var a=s.build().renderer.listItem;r.appendChild(a),t.currentlyDisplayed.push(s)}}),this.valueContainer.appendChild(r),a.FacetUtils.addNoStateCssClassToFacetValues(this.facet,this.valueContainer)},e.prototype.getValuesToBuildWith=function(){return this.facet.values.getAll()},e.prototype.facetValueShouldBeRemoved=function(e){return!(0!=e.occurrences||0!=e.delta&&void 0!=e.delta||e.selected||e.excluded||this.facet.keepDisplayedValuesNextTime)},e.prototype.ensureFacetValueIsInList=function(e){var t;e instanceof r.FacetValue?null==(t=this.facet.values.get(e.value))&&(this.facet.values.add(e),t=e):null==(t=this.facet.values.get(e))&&(t=r.FacetValue.createFromValue(e),this.facet.values.add(t));var n=t.value.toLowerCase(),o=this.valueList[n];void 0==o?(o=this.valueList[n]=new i.FacetValueElement(this.facet,t,!0),o.build()):o.facetValue=t},e}();t.FacetValuesList=l},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=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])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n(473),r=function(e){function t(t,n,i,o,r){var s=e.call(this,t,n,o,r)||this;return s.facet=t,s.facetValue=n,s.eventArg=i,s}return i(t,e),t.prototype.bindEvent=function(){e.prototype.bindEvent.call(this,{displayNextTime:!1,pinFacet:!1,omniboxObject:this.eventArg})},t}(o.ValueElement);t.OmniboxValueElement=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(4),s=n(40),a=function(){function e(e,t,n,i){this.facet=e,this.facetValues=t,this.omniboxObject=n,this.omniboxValueElementKlass=i}return e.prototype.build=function(){var e=this,t=[];return i.each(this.facetValues,function(n){t.push(e.buildOmniboxForOneRow(n,e.omniboxObject))}),this.buildFinalOmniboxElement(t)},e.prototype.buildOmniboxForOneRow=function(e,t){var n=this,i=function(e,t){return n.logAnalyticsEvent(e,t)},r=function(e,t){return n.logAnalyticsEvent(e,t)},s=new this.omniboxValueElementKlass(this.facet,e,t,i,r),a=s.build().renderer.listItem,u=t.completeQueryExpression.regex,l=t.completeQueryExpression.word;o.$$(a).find(".coveo-facet-value-caption").innerHTML=this.highlightOmniboxMatch(this.facet.getValueCaption(e),u,l);var c=o.$$("ul",{className:"coveo-omnibox-selectable coveo-facet-value coveo-omnibox-facet-value"}).el;return c.appendChild(a),o.$$(c).on("keyboardSelect",function(){var e=o.$$(a).find("input[type=checkbox]");o.$$(e).trigger("change")}),c["no-text-suggestion"]=!0,c},e.prototype.buildFinalOmniboxElement=function(e){var t=this.buildOmniboxHeader();if(!r.Utils.isEmptyArray(e)){var n=o.$$("div",{className:"coveo-omnibox-facet-value"}).el;return n.appendChild(t),i.each(e,function(e){n.appendChild(e)}),s.FacetUtils.addNoStateCssClassToFacetValues(this.facet,n),n}},e.prototype.buildOmniboxHeader=function(){var e=this.facet.options.title,t=o.$$("div",{className:"coveo-omnibox-facet-header"}).el;return o.$$(t).text(e),t},e.prototype.highlightOmniboxMatch=function(e,t,n){var i=e.search(t),o=i+n.length;return e.slice(0,i)+'<span class="coveo-highlight">'+e.slice(i,o)+"</span>"+e.slice(o)},e.prototype.logAnalyticsEvent=function(e,t){var n=i.pluck(this.facetValues,"value");e.facet.usageAnalytics.logSearchEvent(t,{query:this.omniboxObject.completeQueryExpression.word,facetId:e.facet.options.id,facetField:e.facet.options.field.toString(),facetTitle:e.facet.options.title,facetValue:e.facetValue.value,suggestions:n.join(";"),suggestionRanking:i.indexOf(n,e.facetValue.value)})},e}();t.OmniboxValuesList=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(50),o=n(490),r=n(214),s=n(0),a=function(){function e(e,t,n,i){this.ref=e,this.occurrence=t,this.id=n,this.grammar=i}return e.prototype.parse=function(e,t){var n=this.grammar.getExpression(this.ref);if(null==n)throw new Error("Expression not found:"+this.ref);return"?"==this.occurrence||null==this.occurrence?this.parseOnce(e,t,n):this.parseMany(e,t,n)},e.prototype.parseOnce=function(e,t,n){var a=n.parse(e,t),u=a.isSuccess();return u||"?"!=this.occurrence?new o.RefResult([a],this,e,u?null:a):t?0==e.length?new o.RefResult([],this,e,a):s.all(a.getBestExpect(),function(e){return e.expression==r.ExpressionEndOfInput})?new o.RefResult([new i.Result(null,r.ExpressionEndOfInput,e)],this,e,a):a:new o.RefResult([],this,e,null)},e.prototype.parseMany=function(e,t,n){var a,u,l=[],c=e;do{a=n.parse(c,!1),(u=a.isSuccess())&&(l.push(a),c=c.substr(a.getLength()))}while(u&&a.input!=c);var p=s.isNumber(this.occurrence)?this.occurrence:"+"==this.occurrence?1:0;if(l.length<p)l.push(a);else if(t)if(l.length>0){var d=s.last(l);a=n.parse(d.input,!0),a.isSuccess()?l[l.length-1]=a:(l.push(new i.Result(null,r.ExpressionEndOfInput,d.input.substr(d.getLength()))),a=n.parse(d.input.substr(d.getLength()),!0))}else if(0!=e.length){var h=new i.Result(null,r.ExpressionEndOfInput,e);return new o.RefResult([h],this,e,a)}return new o.RefResult(l,this,e,a)},e.prototype.toString=function(){return this.id},e}();t.ExpressionRef=a},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=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])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n(50),r=n(0),s=function(e){function t(t,n,i,o){var s=e.call(this,t,n,i)||this;return s.expression=n,s.input=i,r.last(t)!=o&&(s.failAttempt=o,null!=s.failAttempt&&(s.failAttempt.parent=s)),s}return i(t,e),t.prototype.getExpect=function(){var t=e.prototype.getExpect.call(this);return null!=this.failAttempt?t.concat(this.failAttempt.getExpect()):t},t.prototype.clean=function(t){if(null!=this.failAttempt&&(null!=t||!this.isSuccess())){t=t||r.last(this.getBestExpect()).path(this);var n=r.first(t);if(null!=n&&n==this.failAttempt){var i=r.last(this.subResults),s=r.map(null!=i&&i.isSuccess()?this.subResults:r.initial(this.subResults),function(e){return e.clean()});return s.push(n.clean(r.rest(t))),new o.Result(s,this.expression,this.input)}}return e.prototype.clean.call(this,t)},t}(o.Result);t.RefResult=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(492),o=function(){function e(e,t){this.parts=e,this.id=t}return e.prototype.parse=function(e,t){for(var n=[],o=0;o<this.parts.length;o++){var r=this.parts[o].parse(e,t);if(r.isSuccess())return new i.OptionResult(r,this,e,n);n.push(r)}return new i.OptionResult(null,this,e,n)},e.prototype.toString=function(){return this.id},e}();t.ExpressionOptions=o},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=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])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n(50),r=n(0),s=function(e){function t(t,n,i,o){var s=e.call(this,null!=t?[t]:null,n,i)||this;return s.result=t,s.expression=n,s.input=i,s.failAttempt=o,r.forEach(s.failAttempt,function(e){e.parent=s}),s}return i(t,e),t.prototype.getExpect=function(){var e=this,t=[];return null!=this.result&&(t=this.result.getExpect()),t=r.reduce(this.failAttempt,function(e,t){return e.concat(t.getExpect())},t),t.length>0&&r.all(t,function(t){return t.input==e.input})?[this]:t},t.prototype.clean=function(e){if(null!=e||!this.isSuccess()){e=r.rest(e||r.last(this.getBestExpect()).path(this));var t=r.first(e);return null==t?new o.Result(null,this.expression,this.input):new o.Result([t.clean(r.rest(e))],this.expression,this.input)}return new o.Result(r.map(this.result.subResults,function(e){return e.clean()}),this.expression,this.input)},t}(o.Result);t.OptionResult=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(50),o=n(50),r=function(){function e(e,t,n){this.value=e,this.id=t}return e.prototype.parse=function(e,t){var n=e.match(this.value);null!=n&&0!=n.index&&(n=null);var r=new i.Result(null!=n?n[0]:null,this,e);return r.isSuccess()&&t&&e.length>r.value.length?new o.EndOfInputResult(r):r},e.prototype.toString=function(){return this.id},e}();t.ExpressionRegExp=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t,n){this.func=e,this.id=t,this.grammar=n}return e.prototype.parse=function(e,t){return this.func(e,t,this)},e.prototype.toString=function(){return this.id},e}();t.ExpressionFunction=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(50),o=function(){function e(e,t){if(this.parts=e,this.id=t,0==e.length)throw new Error(JSON.stringify(t)+" should have at least 1 parts")}return e.prototype.parse=function(e,t){for(var n,o=[],r=e,s=0;s<this.parts.length;s++){if(n=this.parts[s].parse(r,t&&s==this.parts.length-1),o.push(n),!n.isSuccess())break;r=r.substr(n.getLength())}return new i.Result(o,this,e)},e.prototype.toString=function(){return this.id},e}();t.ExpressionList=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(216);t.NestedQuery={basicExpressions:["NestedQuery"],grammars:{NestedQuery:"[[NestedField][OptionalSpaces][Expressions]]",NestedField:"[[Field]]",FieldValue:["NestedQuery"]},include:[i.Field]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(128);t.Date={grammars:{Date:"[DateYear]/[DateMonth]/[DateDay]",DateYear:/([0-9]{4})/,DateMonth:/(1[0-2]|0?[1-9])/,DateDay:/([1-2][0-9]|3[0-1]|0?[1-9])/,DateRange:"[Date][Spaces?]..[Spaces?][Date]",DateRelative:["DateRelativeNegative","DateRelativeTerm"],DateRelativeTerm:/now|today|yesterday/,DateRelativeNegative:"[DateRelativeTerm][DateRelativeNegativeRef]",DateRelativeNegativeRef:/([\-\+][0-9]+(s|m|h|d|mo|y))/},include:[i.Basic]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(128);t.QueryExtension={basicExpressions:["QueryExtension"],grammars:{QueryExtension:"$[QueryExtensionName]([QueryExtensionArguments])",QueryExtensionName:/\w+/,QueryExtensionArguments:"[QueryExtensionArgumentList*][QueryExtensionArgument]",QueryExtensionArgumentList:"[QueryExtensionArgument][Spaces?],[Spaces?]",QueryExtensionArgument:"[QueryExtensionArgumentName]:[Spaces?][QueryExtensionArgumentValue]",QueryExtensionArgumentName:/\w+/,QueryExtensionArgumentValue:["SingleQuoted","Expressions"]},include:[i.Basic]}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SubExpression={basicExpressions:["SubExpression"],grammars:{SubExpression:"([Expressions])"}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(20),r=n(6),s=n(1),a=n(25),u=function(){function e(e,t,n){this.onchange=t,this.magicBox=n,this.hasFocus=!1,this.root=o.Component.resolveRoot(e),this.underlay=document.createElement("div"),this.underlay.className="magic-box-underlay",this.highlightContainer=document.createElement("span"),this.highlightContainer.className="magic-box-highlight-container",this.underlay.appendChild(this.highlightContainer),this.ghostTextContainer=document.createElement("span"),this.ghostTextContainer.className="magic-box-ghost-text",this.underlay.appendChild(this.ghostTextContainer),this.input=s.$$(e).find("input"),this.input?e.insertBefore(this.underlay,this.input):(this.input=document.createElement("input"),e.appendChild(this.underlay),e.appendChild(this.input)),this.setupHandler(),this.addAccessibilitiesProperties()}return Object.defineProperty(e.prototype,"expanded",{set:function(e){this.input.setAttribute("aria-expanded",e.toString())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"activeDescendant",{set:function(e){e?this.input.setAttribute("aria-activedescendant",e.id):this.input.removeAttribute("aria-activedescendant")},enumerable:!0,configurable:!0}),e.prototype.updateInput=function(){this.input.value!=this.result.input&&(this.input.value=this.result.input,this.hasFocus&&this.setCursor(this.getValue().length))},e.prototype.updateHighlight=function(){s.$$(this.highlightContainer).empty(),this.highlightContainer.appendChild(this.result.toHtmlElement())},e.prototype.updateWordCompletion=function(){s.$$(this.ghostTextContainer).empty(),this.ghostTextContainer.innerHTML="",null!=this.wordCompletion&&this.ghostTextContainer.appendChild(document.createTextNode(this.wordCompletion.substr(this.result.input.length)))},e.prototype.setResult=function(e,t){this.result=e,this.updateInput(),this.updateHighlight(),i.isUndefined(t)&&null!=this.wordCompletion&&0==this.wordCompletion.indexOf(this.result.input)?this.updateWordCompletion():this.setWordCompletion(t),this.updateScroll()},e.prototype.setWordCompletion=function(e){null!=e&&0!=e.toLowerCase().indexOf(this.result.input.toLowerCase())&&(e=null),this.wordCompletion=e,this.updateWordCompletion(),this.updateScroll()},e.prototype.setCursor=function(e){if(this.input.focus(),this.input.createTextRange){var t=this.input.createTextRange();t.move("character",e),t.select()}else null!=this.input.selectionStart&&(this.input.focus(),this.input.setSelectionRange(e,e))},e.prototype.getCursor=function(){return this.input.selectionStart},e.prototype.updateScroll=function(e){var t=this;void 0===e&&(e=!0);var n=function(){t.underlay.clientWidth<t.underlay.scrollWidth&&(t.underlay.style.visibility="hidden",t.underlay.scrollLeft=t.input.scrollLeft,t.underlay.scrollTop=t.input.scrollTop,t.underlay.style.visibility="visible"),t.updateScrollDefer=null,t.hasFocus&&t.updateScroll()};e?null==this.updateScrollDefer&&(this.updateScrollDefer=requestAnimationFrame(n)):n()},e.prototype.setupHandler=function(){var e=this;this.input.onblur=function(){e.hasFocus=!1,setTimeout(function(){e.hasFocus||e.onblur&&e.onblur()},300),e.updateScroll()},this.input.onfocus=function(){e.hasFocus||(e.hasFocus=!0,e.updateScroll(),e.onfocus&&e.onfocus())},this.input.onkeydown=function(t){e.keydown(t)},this.input.onkeyup=function(t){e.keyup(t)},this.input.oncut=function(){setTimeout(function(){e.onInputChange()})},this.input.onpaste=function(){setTimeout(function(){e.onInputChange()})}},e.prototype.addAccessibilitiesProperties=function(){this.input.setAttribute("autocomplete","off"),this.input.setAttribute("type","text"),this.input.setAttribute("role","combobox"),this.input.setAttribute("form","coveo-dummy-form"),this.input.setAttribute("aria-autocomplete","list"),this.input.setAttribute("title",r.l("InsertAQuery")+". "+r.l("PressEnterToSend"))},e.prototype.focus=function(){var e=this;setTimeout(function(){e.input.focus(),e.setCursor(e.getValue().length)})},e.prototype.blur=function(){this.hasFocus&&this.input.blur()},e.prototype.keydown=function(e){var t=this;switch(e.keyCode||e.which){case a.KEYBOARD.TAB:this.tabPress(),this.magicBox.clearSuggestion();break;default:e.stopPropagation(),null==this.onkeydown||this.onkeydown(e.keyCode||e.which)?requestAnimationFrame(function(){t.onInputChange()}):e.preventDefault()}},e.prototype.keyup=function(e){switch(e.keyCode||e.which){case a.KEYBOARD.LEFT_ARROW:case a.KEYBOARD.RIGHT_ARROW:this.handleLeftRightArrow(e);break;default:null==this.onkeydown||this.onkeyup(e.keyCode||e.which)?this.onInputChange():e.preventDefault()}},e.prototype.handleLeftRightArrow=function(e){s.$$(this.root).find("."+o.Component.computeCssClassNameForType("QuerySuggestPreview"))||this.onchangecursor(),null==this.onkeydown||this.onkeyup(e.keyCode||e.which)?this.onInputChange():e.preventDefault()},e.prototype.tabPress=function(){this.ontabpress&&this.ontabpress(),this.onblur&&this.onblur()},e.prototype.onInputChange=function(){this.result.input!=this.input.value&&this.onchange(this.input.value,!1)},e.prototype.getValue=function(){return this.input.value},e.prototype.getWordCompletion=function(){return this.wordCompletion},e}();t.InputManager=u},function(e,t,n){"use strict";function i(e){return new Promise(function(t,n){return e.forEach(function(e){return Promise.resolve(e).then(t,n)})})}var o=this&&this.__assign||Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},r=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))(function(o,r){function s(e){try{u(i.next(e))}catch(e){r(e)}}function a(e){try{u(i.throw(e))}catch(e){r(e)}}function u(e){e.done?o(e.value):new n(function(t){t(e.value)}).then(s,a)}u((i=i.apply(e,t||[])).next())})},s=this&&this.__generator||function(e,t){function n(e){return function(t){return i([e,t])}}function i(n){if(o)throw new TypeError("Generator is already executing.");for(;u;)try{if(o=1,r&&(s=r[2&n[0]?"return":n[0]?"throw":"next"])&&!(s=s.call(r,n[1])).done)return s;switch(r=0,s&&(n=[0,s.value]),n[0]){case 0:case 1:s=n;break;case 4:return u.label++,{value:n[1],done:!1};case 5:u.label++,r=n[1],n=[0];continue;case 7:n=u.ops.pop(),u.trys.pop();continue;default:if(s=u.trys,!(s=s.length>0&&s[s.length-1])&&(6===n[0]||2===n[0])){u=0;continue}if(3===n[0]&&(!s||n[1]>s[0]&&n[1]<s[3])){u.label=n[1];break}if(6===n[0]&&u.label<s[1]){u.label=s[1],s=n;break}if(s&&u.label<s[2]){u.label=s[2],u.ops.push(n);break}s[2]&&u.ops.pop(),u.trys.pop();continue}n=t.call(e,u)}catch(e){n=[6,e],r=0}finally{o=s=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}var o,r,s,a,u={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return a={next:n(0),throw:n(1),return:n(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a};Object.defineProperty(t,"__esModule",{value:!0});var a,u=n(0);!function(e){e[e.Finished=0]="Finished",e[e.TimedOut=1]="TimedOut",e[e.Overriden=2]="Overriden"}(a=t.ProcessingStatus||(t.ProcessingStatus={}));var l=function(){function e(e){void 0===e&&(e={}),this.options=o({timeout:500},e)}return e.prototype.processQueries=function(e){return r(this,void 0,void 0,function(){var t,n=this;return s(this,function(o){return this.overrideIfProcessing(),this.processedResults=new Array(e.length),t=e.map(function(e){return e instanceof Promise?e:Promise.resolve(e)}),[2,i([this.accumulateResultsChronologically(t).then(function(){return n.buildProcessResults(a.Finished)}),this.waitForOverride().then(function(){return n.buildProcessResults(a.Overriden)}),this.waitForTimeout().then(function(){return n.buildProcessResults(a.TimedOut)})])]})})},e.prototype.overrideIfProcessing=function(){return r(this,void 0,void 0,function(){return s(this,function(e){return this.override&&this.override(),[2]})})},Object.defineProperty(e.prototype,"orderedResults",{get:function(){return u.flatten(this.processedResults.filter(function(e){return!!e}),!0)},enumerable:!0,configurable:!0}),e.prototype.buildProcessResults=function(e){return{status:e,results:e!==a.Overriden?this.orderedResults:[]}},e.prototype.accumulateResultsChronologically=function(e){return r(this,void 0,void 0,function(){var t;return s(this,function(n){switch(n.label){case 0:return t=this.processedResults,[4,Promise.all(e.map(function(e,n){return e.then(function(e){return t[n]=e})}))];case 1:return n.sent(),[2]}})})},e.prototype.waitForOverride=function(){var e=this;return new Promise(function(t){e.override=function(){e.override=null,t()}})},e.prototype.waitForTimeout=function(){var e=this;return new Promise(function(t){return setTimeout(function(){return t()},e.options.timeout)})},e}();t.QueryProcessor=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=n(15),r=function(){function e(e){this.rootOptions=e,this.create()}return e.prototype.create=function(){var e=this.rootOptions.iconSVG&&this.rootOptions.iconClassName;this.button=i.$$("button",{className:("coveo-dynamic-facet-header-btn "+(this.rootOptions.className||"")).trim(),type:"button"},e?this.rootOptions.iconSVG:this.rootOptions.label),this.rootOptions.action&&this.button.on("click",this.rootOptions.action),e&&(this.button.setAttribute("aria-label",this.rootOptions.label),this.button.setAttribute("title",this.rootOptions.label),o.SVGDom.addClassToSVGInContainer(this.button.el,this.rootOptions.iconClassName)),this.rootOptions.ariaLabel&&this.button.setAttribute("aria-label",this.rootOptions.ariaLabel),void 0!==this.rootOptions.shouldDisplay&&this.toggle(this.rootOptions.shouldDisplay),this.element=this.button.el},e.prototype.toggle=function(e){this.button.toggle(e)},e}();t.DynamicFacetHeaderButton=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,o=n(0),r=n(5);!function(e){e.RELEVANCY="relevancy",e.DATE="date",e.QRE="qre"}(i=t.VALID_SORT||(t.VALID_SORT={}));var s;!function(e){e.ASCENDING="ascending",e.DESCENDING="descending"}(s=t.VALID_DIRECTION||(t.VALID_DIRECTION={}));var a=function(){function e(t,n){void 0===n&&(n=""),this.sort=t,this.direction=n,e.sortIsField(t)||r.Assert.check(this.isValidSort(t),t+" is not a valid sort criteria. Valid values are "+o.values(i)+" or a valid index sortable index field."),e.sortNeedsDirection(t)?r.Assert.check(this.isValidDirection(n),n+" is not a valid sort criteria direction. Valid values are "+o.values(s)):r.Assert.check(""==n)}return e.prototype.isValidDirection=function(e){return o.chain(s).values().contains(e).value()},e.prototype.isValidSort=function(e){return o.chain(i).values().contains(e).value()},e.sortIsField=function(e){return"@"==e.charAt(0)},e.sortNeedsDirection=function(t){return o.contains(e.sortsNeedingDirection,t)||e.sortIsField(t)},e.sortsNeedingDirection=[i.DATE],e}();t.SortCriterion=a;var u=function(){function e(e){var t=this;this.criteria=[],e.split(";").forEach(function(e){var n=e.match(/\S+/g);t.criteria.push(new a(n[0],n[1]))})}return Object.defineProperty(e.prototype,"direction",{get:function(){return o.first(this.criteria).direction},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"sort",{get:function(){return o.first(this.criteria).sort},enumerable:!0,configurable:!0}),e.parse=function(t){return new e(t)},e.prototype.putInQueryBuilder=function(e){r.Assert.exists(e),e.sortCriteria=this.toString().split(";").join(",")},e.prototype.toString=function(){return this.criteria.map(function(e){return e.direction?e.sort+" "+e.direction:""+e.sort}).join(";")},e.prototype.equals=function(e){return e.toString()==this.toString()},e}();t.SortCriteria=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(496),o=n(498),r=n(128),s=n(216),a=n(499);t.Complete={include:[i.NestedQuery,o.QueryExtension,a.SubExpression,s.Field,r.Basic]}},function(e,t,n){"use strict";function i(e,t,n,i){a.each(i.expressions,function(t){a.contains(e,t)||e.push(t)}),a.each(i.basicExpressions,function(e){a.contains(t,e)||t.push(e)}),a.each(i.grammars,function(e,t){if(t in n){if(!a.isArray(n[t])||!a.isArray(e))throw a.each(e,function(e){n[t].push(e)}),new Error("Can not merge "+t+"("+JSON.stringify(e)+" => "+JSON.stringify(n[t])+")");a.each(e,function(e){n[t].push(e)})}else n[t]=e})}function o(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=[],o=[],r={Start:["Expressions","Empty"],Expressions:"[OptionalSpaces][Expression][ExpressionsList*][OptionalSpaces]",ExpressionsList:"[Spaces][Expression]",Expression:n,BasicExpression:o,OptionalSpaces:/ */,Spaces:/ +/,Empty:/(?!.)/},s=0;s<e.length;s++)i(n,o,r,e[s]),a.each(e[s].include,function(t){a.contains(e,t)||e.push(t)});return n.push("BasicExpression"),{start:"Start",expressions:r}}function r(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=o.apply(this,e);return new s.Grammar(n.start,n.expressions)}Object.defineProperty(t,"__esModule",{value:!0});var s=n(174),a=n(0);t.Expressions=o,t.ExpressionsGrammar=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){}return e.buildingResultPreviewsQuery="buildingResultPreviewsQuery",e.updateResultPreviewsManagerOptions="updateResultPreviewsManagerOptions",e.populateSearchResultPreviews="populateSearchResultPreviews",e}();t.ResultPreviewsManagerEvents=i},function(e,t,n){"use strict";var i=this&&this.__assign||Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e};Object.defineProperty(t,"__esModule",{value:!0});var o=n(28),r=function(){function e(e){this.owner=e}return Object.defineProperty(e.prototype,"options",{get:function(){return this.owner.options},set:function(e){this.owner.options=e},enumerable:!0,configurable:!0}),e.prototype.postProcess=function(){this.options=i({},this.options,this.owner.componentOptionsModel.get(o.ComponentOptionsModel.attributesEnum.searchBox)),this.processQueryOnClearVersusEmptyQuery(),this.processQueryOnClearVersusSearchAsYouType()},e.prototype.processQueryOnClearVersusEmptyQuery=function(){this.options.triggerQueryOnClear&&!1===this.owner.searchInterface.options.allowQueriesWithoutKeywords&&(this.owner.logger.warn('Forcing option triggerQueryOnClear to false, as it is not supported when the search interface is configured to not allow queries without keywords (data-allow-queries-without-keywords="false")',this.owner),this.options.triggerQueryOnClear=!1)},e.prototype.processQueryOnClearVersusSearchAsYouType=function(){!0===this.owner.searchInterface.options.allowQueriesWithoutKeywords&&!1===this.options.triggerQueryOnClear&&!0===this.options.enableSearchAsYouType&&(this.owner.logger.warn("Forcing option triggerQueryOnClear to true, since search-as-you-type is enabled",this.owner),this.options.triggerQueryOnClear=!0)},e}();t.QueryboxOptionsProcessing=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(62),r=function(){function e(e){this.options=e}return e.queryIsBlocked=function(){return!!e.queryIsCurrentlyBlocked||(e.queryIsCurrentlyBlocked=!0,o.Defer.defer(function(){return e.allowDuplicateQuery()}),!1)},e.allowDuplicateQuery=function(){e.queryIsCurrentlyBlocked=!1},e.prototype.addParameters=function(t,n){e.queryIsBlocked()||(this.options.enableWildcards&&(t.enableWildcards=!0),this.options.enableQuestionMarks&&(t.enableQuestionMarks=!0),this.options.enableLowercaseOperators&&(t.enableLowercaseOperators=!0),i.isEmpty(n)||(t.enableQuerySyntax=this.options.enableQuerySyntax,t.expression.add(n),this.options.enablePartialMatch&&(t.enablePartialMatch=this.options.enablePartialMatch,this.options.partialMatchKeywords&&(t.partialMatchKeywords=this.options.partialMatchKeywords),this.options.partialMatchThreshold&&(t.partialMatchThreshold=this.options.partialMatchThreshold))))},e.queryIsCurrentlyBlocked=!1,e}();t.QueryboxQueryParameters=r},function(e,t,n){"use strict";var i=this&&this.__assign||Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e};Object.defineProperty(t,"__esModule",{value:!0});var o=n(4),r=function(){function e(e){this.request=e}return e.prototype.buildBaseRequestForQuery=function(e){return i({},this.request,{filterFacetCount:this.getFilterFacetCount(!!e.filterField)})},e.prototype.getFilterFacetCount=function(e){return o.Utils.isUndefined(this.request.filterFacetCount)?!e:this.request.filterFacetCount},e}();t.DynamicFacetRequestBuilder=r},function(e,t){},function(e,t,n){"use strict";function i(e){return!!o[e]}Object.defineProperty(t,"__esModule",{value:!0});var o;!function(e){e.score="score",e.alphanumeric="alphanumeric",e.occurrences="occurrences"}(o=t.FacetSortCriteria||(t.FacetSortCriteria={})),t.isFacetSortCriteria=i},function(e,t,n){"use strict";var i=this&&this.__assign||Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},o=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))(function(o,r){function s(e){try{u(i.next(e))}catch(e){r(e)}}function a(e){try{u(i.throw(e))}catch(e){r(e)}}function u(e){e.done?o(e.value):new n(function(t){t(e.value)}).then(s,a)}u((i=i.apply(e,t||[])).next())})},r=this&&this.__generator||function(e,t){function n(e){return function(t){return i([e,t])}}function i(n){if(o)throw new TypeError("Generator is already executing.");for(;u;)try{if(o=1,r&&(s=r[2&n[0]?"return":n[0]?"throw":"next"])&&!(s=s.call(r,n[1])).done)return s;switch(r=0,s&&(n=[0,s.value]),n[0]){case 0:case 1:s=n;break;case 4:return u.label++,{value:n[1],done:!1};case 5:u.label++,r=n[1],n=[0];continue;case 7:n=u.ops.pop(),u.trys.pop();continue;default:if(s=u.trys,!(s=s.length>0&&s[s.length-1])&&(6===n[0]||2===n[0])){u=0;continue}if(3===n[0]&&(!s||n[1]>s[0]&&n[1]<s[3])){u.label=n[1];break}if(6===n[0]&&u.label<s[1]){u.label=s[1],s=n;break}if(s&&u.label<s[2]){u.label=s[2],u.ops.push(n);break}s[2]&&u.ops.pop(),u.trys.pop();continue}n=t.call(e,u)}catch(e){n=[6,e],r=0}finally{o=s=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}var o,r,s,a,u={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return a={next:n(0),throw:n(1),return:n(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a};Object.defineProperty(t,"__esModule",{value:!0});var s=n(1),a=n(569),u=n(0),l=n(12),c=n(15),p=n(570);n(571);var d=n(4),h=n(6),f=function(){function e(e){this.options=e,this.defaultOptions={wrapperClassName:"",clearOnBlur:!1},this.throttlingDelay=600,this.isRequestCancelled=!1,this.throttledRequest=u.throttle(this.triggerRequest,this.throttlingDelay,{leading:!0,trailing:!0}),this.options=i({},this.defaultOptions,this.options),this.id=u.uniqueId("coveo-combobox-"),this.create()}return e.prototype.create=function(){this.element=s.$$("div",{className:"coveo-combobox-wrapper "+this.options.wrapperClassName}).el,this.createAndAppendInput(),this.createAndAppendWaitAnimation(),this.createAndAppendValues()},e.prototype.createAndAppendInput=function(){this.input=new a.ComboboxInput(this),this.element.appendChild(this.input.element)},e.prototype.createAndAppendWaitAnimation=function(){this.waitAnimationElement=s.$$("div",{className:"coveo-combobox-wait-animation"},l.SVGIcons.icons.loading).el,c.SVGDom.addClassToSVGInContainer(this.waitAnimationElement,"coveo-combobox-wait-animation-svg"),this.toggleWaitAnimation(!1),this.input.element.appendChild(this.waitAnimationElement)},e.prototype.toggleWaitAnimation=function(e){s.$$(this.waitAnimationElement).toggle(e)},e.prototype.createAndAppendValues=function(){this.values=new p.ComboboxValues(this),this.element.appendChild(this.values.element)},e.prototype.clearAll=function(){this.clearValues(),this.input.clearInput()},e.prototype.clearValues=function(){this.values.clearValues(),this.cancelRequest()},e.prototype.cancelRequest=function(){this.toggleWaitAnimation(!1),this.throttledRequest.cancel(),this.isRequestCancelled=!0},e.prototype.onInputChange=function(e){var t=this;if(d.Utils.isEmptyString(e))return this.clearValues();this.throttledRequest(function(){return t.options.requestValues(e)},function(){return t.values.resetScroll()})},e.prototype.onInputBlur=function(){if(!this.values.mouseIsOverValue&&!this.values.isRenderingNewValues)return this.options.clearOnBlur?this.clearAll():void this.clearValues()},e.prototype.updateAccessibilityAttributes=function(e){this.input.updateAccessibilityAttributes(e)},e.prototype.updateAriaLive=function(){if(!this.values.hasValues())return void this.options.ariaLive.updateText(h.l("NoValuesFound"));var e=h.l("ShowingResultsWithQuery",this.values.numberOfValues,this.input.value,this.values.numberOfValues);this.options.scrollable&&this.options.scrollable.areMoreValuesAvailable()&&(e=e+" ("+h.l("MoreValuesAvailable")+")"),this.options.ariaLive.updateText(e)},e.prototype.onScrollEndReached=function(){var e=this;this.values.saveFocusedValue(),this.options.scrollable&&this.throttledRequest(function(){return e.options.scrollable.requestMoreValues()},function(){return e.values.restoreFocusedValue()})},e.prototype.triggerRequest=function(e,t){return o(this,void 0,void 0,function(){var n;return r(this,function(i){switch(i.label){case 0:return this.isRequestCancelled=!1,this.toggleWaitAnimation(!0),[4,e()];case 1:return n=i.sent(),this.toggleWaitAnimation(!1),this.isRequestCancelled||(this.values.renderFromResponse(n),t&&t()),[2]}})})},e}();t.Combobox=f},function(e,t){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(65),o=n(1),r=function(){function e(e,t){void 0===t&&(t=function(){}),this.facetValue=e,this.checkbox=new i.Checkbox(t.bind(this),this.facetValue.displayValue,this.facetValue.selectAriaLabel,"("+this.facetValue.formattedCount+")");var n=o.$$(this.checkbox.getElement()).find(".coveo-checkbox-span-label"),r=o.$$(this.checkbox.getElement()).find(".coveo-checkbox-span-label-suffix");n&&r&&(n.setAttribute("title",this.facetValue.displayValue),n.setAttribute("aria-hidden","true"),r.setAttribute("aria-hidden","true")),this.facetValue.isSelected&&this.checkbox.select(!1),this.element=this.checkbox.getElement()}return e}();t.DynamicFacetValueCheckbox=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n(582);var i=n(1),o=n(0),r=n(71),s=n(6),a=n(222),u=n(4),l=n(179),c=function(){function e(e,t){this.facet=e,this.list=i.$$("ul",{className:"coveo-dynamic-facet-values","aria-labelledby":l.getDynamicFacetHeaderId(this.facet.options.id)}).el,this.valueCreator=new t(this.facet),this.resetValues()}return e.prototype.createFromResponse=function(e){var t=this;this.facetValues=e.values.map(function(e,n){return t.valueCreator.createFromResponse(e,n)})},e.prototype.reorderValues=function(e){this.facetValues=u.Utils.reorderValuesByKeys(this.facetValues,e,function(e){return e.value})},e.prototype.resetValues=function(){this.facetValues=this.valueCreator.getDefaultValues()},Object.defineProperty(e.prototype,"allFacetValues",{get:function(){return this.facetValues},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"allValues",{get:function(){return this.facetValues.map(function(e){return e.value})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"selectedValues",{get:function(){return this.facetValues.filter(function(e){return e.isSelected}).map(function(e){return e.value})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"selectedDisplayValues",{get:function(){return this.facetValues.filter(function(e){return e.isSelected}).map(function(e){return e.displayValue})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"activeValues",{get:function(){return this.facetValues.filter(function(e){return!e.isIdle})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"displayedValues",{get:function(){return this.facetValues.filter(function(e){return!e.isIdle||e.numberOfResults>0})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasSelectedValues",{get:function(){return!!o.findWhere(this.facetValues,{state:r.FacetValueState.selected})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasActiveValues",{get:function(){return!!this.activeValues.length},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasIdleValues",{get:function(){return!!o.findWhere(this.facetValues,{state:r.FacetValueState.idle})},enumerable:!0,configurable:!0}),e.prototype.clearAll=function(){this.facetValues.forEach(function(e){return e.deselect()})},Object.defineProperty(e.prototype,"hasValues",{get:function(){return!!this.allFacetValues.length},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasDisplayedValues",{get:function(){return!!this.displayedValues.length},enumerable:!0,configurable:!0}),e.prototype.hasSelectedValue=function(e){var t="string"==typeof e?e:e.value,n=o.find(this.facetValues,function(e){return e.equals(t)});return n&&n.isSelected},e.prototype.get=function(e){var t="string"==typeof e?e:e.value,n=o.find(this.facetValues,function(e){return e.equals(t)});if(n)return n;var i=this.valueCreator.createFromValue(t);return i?(this.facetValues.push(i),i):null},e.prototype.buildShowLess=function(){var e=this;return new a.DynamicFacetValueShowMoreLessButton({className:"coveo-dynamic-facet-show-less",ariaLabel:s.l("ShowLessFacetResults",this.facet.options.title),label:s.l("ShowLess"),action:function(){e.facet.enableFreezeFacetOrderFlag(),e.facet.showLessValues()}}).element},e.prototype.buildShowMore=function(){var e=this;return new a.DynamicFacetValueShowMoreLessButton({className:"coveo-dynamic-facet-show-more",ariaLabel:s.l("ShowMoreFacetResults",this.facet.options.title),label:s.l("ShowMore"),action:function(){e.facet.enableFreezeFacetOrderFlag(),e.facet.showMoreValues()}}).element},Object.defineProperty(e.prototype,"shouldEnableShowLess",{get:function(){return this.facetValues.length>this.facet.options.numberOfValues&&this.hasIdleValues},enumerable:!0,configurable:!0}),e.prototype.appendShowMoreLess=function(e){this.facet.options.enableMoreLess&&(this.shouldEnableShowLess&&e.appendChild(this.buildShowLess()),this.facet.moreValuesAvailable&&e.appendChild(this.buildShowMore()))},e.prototype.appendSelectedCollapsedValues=function(e){if(this.hasSelectedValues){var t=this.selectedDisplayValues.join(", ");e.appendChild(i.$$("li",{className:"coveo-dynamic-facet-collapsed-values",ariaLabel:s.l("CurrentSelections")+": "+t},o.escape(t)).el)}},e.prototype.render=function(){var e=document.createDocumentFragment();return i.$$(this.list).empty(),this.displayedValues.forEach(function(t){e.appendChild(t.renderedElement)}),this.appendShowMoreLess(e),this.appendSelectedCollapsedValues(e),this.list.appendChild(e),this.list},e}();t.DynamicFacetValues=c},function(e,t,n){"use strict";var i=this&&this.__assign||Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e};Object.defineProperty(t,"__esModule",{value:!0});var o=n(5),r=n(11),s=n(0),a=n(509),u=function(){function e(e){this.facet=e,this.freezeCurrentValues=!1,this.freezeFacetOrder=!1,this.preventAutoSelection=!1,this.requestBuilder=new a.DynamicFacetRequestBuilder({facetId:this.facet.options.id,field:this.facet.fieldName,type:this.facet.facetType,sortCriteria:this.facet.options.sortCriteria,injectionDepth:this.facet.options.injectionDepth,filterFacetCount:this.facet.options.filterFacetCount}),this.resetNumberOfValuesToRequest(),this.resetFlagsDuringQuery()}return e.prototype.resetFlagsDuringQuery=function(){var e=this;this.facet.bind.onRootElement(r.QueryEvents.duringQuery,function(){e.freezeCurrentValues=!1,e.freezeFacetOrder=!1,e.preventAutoSelection=!1})},e.prototype.increaseNumberOfValuesToRequest=function(e){this.numberOfValuesToRequest+=e},e.prototype.resetNumberOfValuesToRequest=function(){this.numberOfValuesToRequest=this.facet.options.numberOfValues},e.prototype.enablePreventAutoSelectionFlag=function(){this.preventAutoSelection=!0},e.prototype.enableFreezeCurrentValuesFlag=function(){this.areValuesIncorrectlyAffectedByDependsOn||(this.freezeCurrentValues=!0)},e.prototype.enableFreezeFacetOrderFlag=function(){this.freezeFacetOrder=!0},Object.defineProperty(e.prototype,"areValuesIncorrectlyAffectedByDependsOn",{get:function(){return!!this.facet.dependsOnManager.hasDependentFacets&&(!this.facet.dependsOnManager.dependentFacetsHaveSelectedValues&&this.currentValues.length<this.numberOfValuesToRequest)},enumerable:!0,configurable:!0}),e.prototype.putFacetIntoQueryBuilder=function(e){o.Assert.exists(e),e.facetRequests.push(this.buildFacetRequest(e.build())),this.freezeFacetOrder&&(e.facetOptions.freezeFacetOrder=!0)},e.prototype.buildFacetRequest=function(e){return i({},this.requestBuilder.buildBaseRequestForQuery(e),{currentValues:this.currentValues,numberOfValues:this.numberOfValues,freezeCurrentValues:this.freezeCurrentValues,preventAutoSelect:this.preventAutoSelection,isFieldExpanded:this.numberOfValuesToRequest>this.facet.options.numberOfValues})},e.prototype.getQueryResults=function(){var e=this.facet.queryController.getLastQuery();e.numberOfResults=0;var t=s.findIndex(e.facets,{facetId:this.facet.options.id});return-1!==t?e.facets[t]=this.buildFacetRequest(e):e.facets?e.facets.push(this.buildFacetRequest(e)):e.facets=[this.buildFacetRequest(e)],this.facet.queryController.getEndpoint().search(e)},Object.defineProperty(e.prototype,"currentValues",{get:function(){return this.facet.values.allFacetValues.map(function(e){return{value:e.value,state:e.state}})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"numberOfValues",{get:function(){return this.freezeCurrentValues?this.currentValues.length:Math.max(this.numberOfValuesToRequest,this.facet.values.activeValues.length)},enumerable:!0,configurable:!0}),e}();t.DynamicFacetQueryController=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=n(514),r=function(){function e(e,t){this.facetValue=e,this.facet=t}return e.prototype.render=function(){return this.dom=i.$$("li",{className:"coveo-dynamic-facet-value",dataValue:this.facetValue.value}),this.toggleSelectedClass(),this.renderCheckbox(),this.addFocusAndBlurEventListeners(),this.dom.el},e.prototype.toggleSelectedClass=function(){this.dom.toggleClass("coveo-selected",this.facetValue.isSelected)},e.prototype.renderCheckbox=function(){this.valueCheckbox=new o.DynamicFacetValueCheckbox(this.facetValue,this.selectAction.bind(this)),this.dom.append(this.valueCheckbox.element)},e.prototype.addFocusAndBlurEventListeners=function(){var e=this,t=i.$$(this.valueCheckbox.element).find("button");i.$$(t).on("focusin",function(){return e.onFocusIn()}),i.$$(t).on("focusout",function(){return e.onFocusOut()})},e.prototype.onFocusIn=function(){this.dom.addClass("coveo-focused")},e.prototype.onFocusOut=function(){this.dom.removeClass("coveo-focused")},e.prototype.selectAction=function(){var e=this;this.facet.toggleSelectValue(this.facetValue.value),this.toggleSelectedClass(),this.facet.enableFreezeCurrentValuesFlag(),this.facet.enableFreezeFacetOrderFlag(),this.facet.enablePreventAutoSelectionFlag(),this.facet.scrollToTop(),this.facet.triggerNewQuery(function(){return e.facetValue.logSelectActionToAnalytics()})},e}();t.DynamicFacetValueRenderer=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){}return e.cancelLastAction="cancelLastAction",e}();t.QuerySummaryEvents=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(93),o=n(1),r=n(0),s=function(){function e(e,t,n){this.structure=e,this.onSelect=t,this.onTabPress=n}return e.prototype.buildOmniboxElement=function(e,t){var n;if(0!=e.length){if(n=o.$$("div").el,this.structure.header){var i=this.buildElementHeader();n.appendChild(i)}var s=this.buildRowElements(e,t);r.each(s,function(e){n.appendChild(e)})}return n},e.prototype.buildElementHeader=function(){return o.$$("div",void 0,this.structure.header.template({headerTitle:this.structure.header.title})).el},e.prototype.buildRowElements=function(e,t){var n=this,s=[];return r.each(e,function(e){var r=o.$$("div",void 0,n.structure.row({rawValue:e.value,data:i.DomUtils.highlightElement(e.value,t.completeQueryExpression.word)})).el;o.$$(r).on("click",function(){n.onSelect.call(n,e.value,t)}),o.$$(r).on("keyboardSelect",function(){n.onSelect.call(n,e.value,t)}),o.$$(r).on("tabSelect",function(){n.onTabPress.call(n,e.value,t)}),s.push(r)}),s},e}();t.SuggestionForOmnibox=s},function(e,t){},function(e,t,n){"use strict";function i(e,t){return r(this,void 0,void 0,function(){var n,i,r,u,l;return s(this,function(s){switch(s.label){case 0:return n={className:"coveo-shadow-iframe",scrolling:"no",title:t.title},t.useIFrame?(i=a.$$("iframe",n).el,u=new Promise(function(e){return i.addEventListener("load",function(){return e()})}),e.appendChild(i),[4,u]):[3,2];case 1:return s.sent(),r=i.contentDocument.body,[3,3];case 2:i=a.$$("div",n).el,r=i,e.appendChild(i),s.label=3;case 3:return r.style.margin="0",l=a.$$("div",{style:"overflow: auto;"}).el,r.appendChild(l),o(i,l,t.onSizeChanged),"open"===t.mode&&Object.defineProperty(e,"shadowRoot",{get:function(){return l}}),[2,l]}})})}function o(e,t,n){var i=t.clientWidth,o=t.clientHeight;new MutationObserver(function(){i===t.clientWidth&&o===t.clientHeight||(i=t.clientWidth,o=t.clientHeight,e.style.width=t.clientWidth+"px",e.style.height=t.clientHeight+"px",n&&n())}).observe(t,{attributes:!0,characterData:!0,childList:!0,subtree:!0})}var r=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))(function(o,r){function s(e){try{u(i.next(e))}catch(e){r(e)}}function a(e){try{u(i.throw(e))}catch(e){r(e)}}function u(e){e.done?o(e.value):new n(function(t){t(e.value)}).then(s,a)}u((i=i.apply(e,t||[])).next())})},s=this&&this.__generator||function(e,t){function n(e){return function(t){return i([e,t])}}function i(n){if(o)throw new TypeError("Generator is already executing.");for(;u;)try{if(o=1,r&&(s=r[2&n[0]?"return":n[0]?"throw":"next"])&&!(s=s.call(r,n[1])).done)return s;switch(r=0,s&&(n=[0,s.value]),n[0]){case 0:case 1:s=n;break;case 4:return u.label++,{value:n[1],done:!1};case 5:u.label++,r=n[1],n=[0];continue;case 7:n=u.ops.pop(),u.trys.pop();continue;default:if(s=u.trys,!(s=s.length>0&&s[s.length-1])&&(6===n[0]||2===n[0])){u=0;continue}if(3===n[0]&&(!s||n[1]>s[0]&&n[1]<s[3])){u.label=n[1];break}if(6===n[0]&&u.label<s[1]){u.label=s[1],s=n;break}if(s&&u.label<s[2]){u.label=s[2],u.ops.push(n);break}s[2]&&u.ops.pop(),u.trys.pop();continue}n=t.call(e,u)}catch(e){n=[6,e],r=0}finally{o=s=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}var o,r,s,a,u={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return a={next:n(0),throw:n(1),return:n(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a};Object.defineProperty(t,"__esModule",{value:!0});var a=n(1);n(587),t.attachShadow=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getDefaultSnippetStyle=function(e){return'\n  body {\n    font-family: "Lato", "Helvetica Neue", Helvetica, Arial, sans-serif, sans-serif;\n  }\n\n  .'+e+" > :first-child {\n    margin-top: 0;\n  }\n\n  ."+e+" > :last-child {\n    margin-bottom: 0;\n  }\n"}},function(e,t,n){"use strict";function i(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}function o(e,t){switch(arguments.length){case 0:break;case 1:this.interpolator(e);break;default:this.interpolator(t).domain(e)}return this}function r(){function e(e){var i=e+"",r=t.get(i);if(!r){if(s!==pe)return s;t.set(i,r=n.push(e))}return o[(r-1)%o.length]}var t=Object(ae.c)(),n=[],o=[],s=pe;return e.domain=function(i){if(!arguments.length)return n.slice();n=[],t=Object(ae.c)();for(var o,r,s=-1,a=i.length;++s<a;)t.has(r=(o=i[s])+"")||t.set(r,n.push(o));return e},e.range=function(t){return arguments.length?(o=ce.call(t),e):o.slice()},e.unknown=function(t){return arguments.length?(s=t,e):s},e.copy=function(){return r(n,o).unknown(s)},i.apply(e,arguments),e}function s(){function e(){var e=a().length,i=l[1]<l[0],o=l[i-0],r=l[1-i];t=(r-o)/Math.max(1,e-p+2*d),c&&(t=Math.floor(t)),o+=(r-o-t*(e-p))*h,n=t*(1-p),c&&(o=Math.round(o),n=Math.round(n));var s=Object(se.s)(e).map(function(e){return o+t*e});return u(i?s.reverse():s)}var t,n,o=r().unknown(void 0),a=o.domain,u=o.range,l=[0,1],c=!1,p=0,d=0,h=.5;return delete o.unknown,o.domain=function(t){return arguments.length?(a(t),e()):a()},o.range=function(t){return arguments.length?(l=[+t[0],+t[1]],e()):l.slice()},o.rangeRound=function(t){return l=[+t[0],+t[1]],c=!0,e()},o.bandwidth=function(){return n},o.step=function(){return t},o.round=function(t){return arguments.length?(c=!!t,e()):c},o.padding=function(t){return arguments.length?(p=Math.min(1,d=+t),e()):p},o.paddingInner=function(t){return arguments.length?(p=Math.min(1,t),e()):p},o.paddingOuter=function(t){return arguments.length?(d=+t,e()):d},o.align=function(t){return arguments.length?(h=Math.max(0,Math.min(1,t)),e()):h},o.copy=function(){return s(a(),l).round(c).paddingInner(p).paddingOuter(d).align(h)},i.apply(e(),arguments)}function a(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return a(t())},e}function u(){return a(s.apply(null,arguments).paddingInner(1))}function l(e){return e}function c(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:he(isNaN(t)?NaN:.5)}function p(e){var t,n=e[0],i=e[e.length-1];return n>i&&(t=n,n=i,i=t),function(e){return Math.max(n,Math.min(i,e))}}function d(e,t,n){var i=e[0],o=e[1],r=t[0],s=t[1];return o<i?(i=c(o,i),r=n(s,r)):(i=c(i,o),r=n(r,s)),function(e){return r(i(e))}}function h(e,t,n){var i=Math.min(e.length,t.length)-1,o=new Array(i),r=new Array(i),s=-1;for(e[i]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++s<i;)o[s]=c(e[s],e[s+1]),r[s]=n(t[s],t[s+1]);return function(t){var n=Object(se.b)(e,t,1,i)-1;return r[n](o[n](t))}}function f(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function m(){function e(){return r=Math.min(u.length,c.length)>2?h:d,s=a=null,t}function t(e){return isNaN(e=+e)?o:(s||(s=r(u.map(n),c,f)))(n(m(e)))}var n,i,o,r,s,a,u=me,c=me,f=de.a,m=l;return t.invert=function(e){return m(i((a||(a=r(c,u.map(n),de.o)))(e)))},t.domain=function(t){return arguments.length?(u=le.call(t,fe),m===l||(m=p(u)),e()):u.slice()},t.range=function(t){return arguments.length?(c=ce.call(t),e()):c.slice()},t.rangeRound=function(t){return c=ce.call(t),f=de.u,e()},t.clamp=function(e){return arguments.length?(m=e?p(u):l,t):m!==l},t.interpolate=function(t){return arguments.length?(f=t,e()):f},t.unknown=function(e){return arguments.length?(o=e,t):o},function(t,o){return n=t,i=o,e()}}function y(e,t){return m()(e,t)}function g(e){var t=e.domain;return e.ticks=function(e){var n=t();return Object(se.B)(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){var i=t();return ge(i[0],i[i.length-1],null==e?10:e,n)},e.nice=function(n){null==n&&(n=10);var i,o=t(),r=0,s=o.length-1,a=o[r],u=o[s];return u<a&&(i=a,a=u,u=i,i=r,r=s,s=i),i=Object(se.z)(a,u,n),i>0?(a=Math.floor(a/i)*i,u=Math.ceil(u/i)*i,i=Object(se.z)(a,u,n)):i<0&&(a=Math.ceil(a*i)/i,u=Math.floor(u*i)/i,i=Object(se.z)(a,u,n)),i>0?(o[r]=Math.floor(a/i)*i,o[s]=Math.ceil(u/i)*i,t(o)):i<0&&(o[r]=Math.ceil(a*i)/i,o[s]=Math.floor(u*i)/i,t(o)),e},e}function v(){var e=y(l,l);return e.copy=function(){return f(e,v())},i.apply(e,arguments),g(e)}function b(e){function t(e){return isNaN(e=+e)?n:e}var n;return t.invert=t,t.domain=t.range=function(n){return arguments.length?(e=le.call(n,fe),t):e.slice()},t.unknown=function(e){return arguments.length?(n=e,t):n},t.copy=function(){return b(e).unknown(n)},e=arguments.length?le.call(e,fe):[0,1],g(t)}function S(e){return Math.log(e)}function C(e){return Math.exp(e)}function w(e){return-Math.log(-e)}function _(e){return-Math.exp(-e)}function O(e){return isFinite(e)?+("1e"+e):e<0?0:e}function x(e){return 10===e?O:e===Math.E?Math.exp:function(t){return Math.pow(e,t)}}function E(e){return e===Math.E?Math.log:10===e&&Math.log10||2===e&&Math.log2||(e=Math.log(e),function(t){return Math.log(t)/e})}function A(e){return function(t){return-e(-t)}}function T(e){function t(){return n=E(s),i=x(s),r()[0]<0?(n=A(n),i=A(i),e(w,_)):e(S,C),o}var n,i,o=e(S,C),r=o.domain,s=10;return o.base=function(e){return arguments.length?(s=+e,t()):s},o.domain=function(e){return arguments.length?(r(e),t()):r()},o.ticks=function(e){var t,o=r(),a=o[0],u=o[o.length-1];(t=u<a)&&(d=a,a=u,u=d);var l,c,p,d=n(a),h=n(u),f=null==e?10:+e,m=[];if(!(s%1)&&h-d<f){if(d=Math.round(d)-1,h=Math.round(h)+1,a>0){for(;d<h;++d)for(c=1,l=i(d);c<s;++c)if(!((p=l*c)<a)){if(p>u)break;m.push(p)}}else for(;d<h;++d)for(c=s-1,l=i(d);c>=1;--c)if(!((p=l*c)<a)){if(p>u)break;m.push(p)}}else m=Object(se.B)(d,h,Math.min(h-d,f)).map(i);return t?m.reverse():m},o.tickFormat=function(e,t){if(null==t&&(t=10===s?".0e":","),"function"!=typeof t&&(t=Object(ye.b)(t)),e===1/0)return t;null==e&&(e=10);var r=Math.max(1,s*e/o.ticks().length);return function(e){var o=e/i(Math.round(n(e)));return o*s<s-.5&&(o*=s),o<=r?t(e):""}},o.nice=function(){return r(ve(r(),{floor:function(e){return i(Math.floor(n(e)))},ceil:function(e){return i(Math.ceil(n(e)))}}))},o}function R(){var e=T(m()).domain([1,10]);return e.copy=function(){return f(e,R()).base(e.base())},i.apply(e,arguments),e}function F(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function M(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function I(e){var t=1,n=e(F(t),M(t));return n.constant=function(n){return arguments.length?e(F(t=+n),M(t)):t},g(n)}function P(){var e=I(m());return e.copy=function(){return f(e,P()).constant(e.constant())},i.apply(e,arguments)}function D(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function $(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function N(e){return e<0?-e*e:e*e}function k(e){function t(){return 1===i?e(l,l):.5===i?e($,N):e(D(i),D(1/i))}var n=e(l,l),i=1;return n.exponent=function(e){return arguments.length?(i=+e,t()):i},g(n)}function V(){var e=k(m());return e.copy=function(){return f(e,V()).exponent(e.exponent())},i.apply(e,arguments),e}function L(){return V.apply(null,arguments).exponent(.5)}function B(){function e(){var e=0,n=Math.max(1,r.length);for(s=new Array(n-1);++e<n;)s[e-1]=Object(se.r)(o,e/n);return t}function t(e){return isNaN(e=+e)?n:r[Object(se.b)(s,e)]}var n,o=[],r=[],s=[];return t.invertExtent=function(e){var t=r.indexOf(e);return t<0?[NaN,NaN]:[t>0?s[t-1]:o[0],t<s.length?s[t]:o[o.length-1]]},t.domain=function(t){if(!arguments.length)return o.slice();o=[];for(var n,i=0,r=t.length;i<r;++i)null==(n=t[i])||isNaN(n=+n)||o.push(n);return o.sort(se.a),e()},t.range=function(t){return arguments.length?(r=ce.call(t),e()):r.slice()},t.unknown=function(e){return arguments.length?(n=e,t):n},t.quantiles=function(){return s.slice()},t.copy=function(){return B().domain(o).range(r).unknown(n)},i.apply(t,arguments)}function U(){function e(e){return e<=e?u[Object(se.b)(a,e,0,s)]:n}function t(){var t=-1;for(a=new Array(s);++t<s;)a[t]=((t+1)*r-(t-s)*o)/(s+1);return e}var n,o=0,r=1,s=1,a=[.5],u=[0,1];return e.domain=function(e){return arguments.length?(o=+e[0],r=+e[1],t()):[o,r]},e.range=function(e){return arguments.length?(s=(u=ce.call(e)).length-1,t()):u.slice()},e.invertExtent=function(e){var t=u.indexOf(e);return t<0?[NaN,NaN]:t<1?[o,a[0]]:t>=s?[a[s-1],r]:[a[t-1],a[t]]},e.unknown=function(t){return arguments.length?(n=t,e):e},e.thresholds=function(){return a.slice()},e.copy=function(){return U().domain([o,r]).range(u).unknown(n)},i.apply(g(e),arguments)}function Q(){function e(e){return e<=e?o[Object(se.b)(n,e,0,r)]:t}var t,n=[.5],o=[0,1],r=1;return e.domain=function(t){return arguments.length?(n=ce.call(t),r=Math.min(n.length,o.length-1),e):n.slice()},e.range=function(t){return arguments.length?(o=ce.call(t),r=Math.min(n.length,o.length-1),e):o.slice()},e.invertExtent=function(e){var t=o.indexOf(e);return[n[t-1],n[t]]},e.unknown=function(n){return arguments.length?(t=n,e):t},e.copy=function(){return Q().domain(n).range(o).unknown(t)},i.apply(e,arguments)}function j(e){return new Date(e)}function H(e){return e instanceof Date?+e:+new Date(+e)}function q(e,t,n,i,o,r,s,a,u){function c(a){return(s(a)<a?g:r(a)<a?v:o(a)<a?b:i(a)<a?S:t(a)<a?n(a)<a?C:w:e(a)<a?_:O)(a)}function p(t,n,i,o){if(null==t&&(t=10),"number"==typeof t){var r=Math.abs(i-n)/t,s=Object(se.e)(function(e){return e[2]}).right(x,r);s===x.length?(o=Object(se.A)(n/Ae,i/Ae,t),t=e):s?(s=x[r/x[s-1][2]<x[s][2]/r?s-1:s],o=s[1],t=s[0]):(o=Math.max(Object(se.A)(n,i,t),1),t=a)}return null==o?t:t.every(o)}var d=y(l,l),h=d.invert,m=d.domain,g=u(".%L"),v=u(":%S"),b=u("%I:%M"),S=u("%I %p"),C=u("%a %d"),w=u("%b %d"),_=u("%B"),O=u("%Y"),x=[[s,1,Ce],[s,5,5*Ce],[s,15,15*Ce],[s,30,30*Ce],[r,1,we],[r,5,5*we],[r,15,15*we],[r,30,30*we],[o,1,_e],[o,3,3*_e],[o,6,6*_e],[o,12,12*_e],[i,1,Oe],[i,2,2*Oe],[n,1,xe],[t,1,Ee],[t,3,3*Ee],[e,1,Ae]];return d.invert=function(e){return new Date(h(e))},d.domain=function(e){return arguments.length?m(le.call(e,H)):m().map(j)},d.ticks=function(e,t){var n,i=m(),o=i[0],r=i[i.length-1],s=r<o;return s&&(n=o,o=r,r=n),n=p(e,o,r,t),n=n?n.range(o,r+1):[],s?n.reverse():n},d.tickFormat=function(e,t){return null==t?c:u(t)},d.nice=function(e,t){var n=m();return(e=p(e,n[0],n[n.length-1],t))?m(ve(n,e)):d},d.copy=function(){return f(d,q(e,t,n,i,o,r,s,a,u))},d}function z(){function e(e){return isNaN(e=+e)?r:u(0===i?.5:(e=(o(e)-t)*i,c?Math.max(0,Math.min(1,e)):e))}var t,n,i,o,r,s=0,a=1,u=l,c=!1;return e.domain=function(r){return arguments.length?(t=o(s=+r[0]),n=o(a=+r[1]),i=t===n?0:1/(n-t),e):[s,a]},e.clamp=function(t){return arguments.length?(c=!!t,e):c},e.interpolator=function(t){return arguments.length?(u=t,e):u},e.unknown=function(t){return arguments.length?(r=t,e):r},function(r){return o=r,t=r(s),n=r(a),i=t===n?0:1/(n-t),e}}function W(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function G(){var e=g(z()(l));return e.copy=function(){return W(e,G())},o.apply(e,arguments)}function Y(){var e=T(z()).domain([1,10]);return e.copy=function(){return W(e,Y()).base(e.base())},o.apply(e,arguments)}function K(){var e=I(z());return e.copy=function(){return W(e,K()).constant(e.constant())},o.apply(e,arguments)}function J(){var e=k(z());return e.copy=function(){return W(e,J()).exponent(e.exponent())},o.apply(e,arguments)}function Z(){return J.apply(null,arguments).exponent(.5)}function X(){function e(e){if(!isNaN(e=+e))return n((Object(se.b)(t,e)-1)/(t.length-1))}var t=[],n=l;return e.domain=function(n){if(!arguments.length)return t.slice();t=[];for(var i,o=0,r=n.length;o<r;++o)null==(i=n[o])||isNaN(i=+i)||t.push(i);return t.sort(se.a),e},e.interpolator=function(t){return arguments.length?(n=t,e):n},e.copy=function(){return X(n).domain(t)},o.apply(e,arguments)}function ee(){function e(e){return isNaN(e=+e)?a:(e=.5+((e=+s(e))-n)*(e<n?o:r),d(h?Math.max(0,Math.min(1,e)):e))}var t,n,i,o,r,s,a,u=0,c=.5,p=1,d=l,h=!1;return e.domain=function(a){return arguments.length?(t=s(u=+a[0]),n=s(c=+a[1]),i=s(p=+a[2]),o=t===n?0:.5/(n-t),r=n===i?0:.5/(i-n),e):[u,c,p]},e.clamp=function(t){return arguments.length?(h=!!t,e):h},e.interpolator=function(t){return arguments.length?(d=t,e):d},e.unknown=function(t){return arguments.length?(a=t,e):a},function(a){return s=a,t=a(u),n=a(c),i=a(p),o=t===n?0:.5/(n-t),r=n===i?0:.5/(i-n),e}}function te(){var e=g(ee()(l));return e.copy=function(){return W(e,te())},o.apply(e,arguments)}function ne(){var e=T(ee()).domain([.1,1,10]);return e.copy=function(){return W(e,ne()).base(e.base())},o.apply(e,arguments)}function ie(){var e=I(ee());return e.copy=function(){return W(e,ie()).constant(e.constant())},o.apply(e,arguments)}function oe(){var e=k(ee());return e.copy=function(){return W(e,oe()).exponent(e.exponent())},o.apply(e,arguments)}function re(){return oe.apply(null,arguments).exponent(.5)}Object.defineProperty(t,"__esModule",{value:!0});var se=n(32),ae=n(183),ue=Array.prototype,le=ue.map,ce=ue.slice,pe={name:"implicit"},de=n(64),he=function(e){return function(){return e}},fe=function(e){return+e},me=[0,1],ye=n(229),ge=function(e,t,n,i){var o,r=Object(se.A)(e,t,n);switch(i=Object(ye.f)(null==i?",f":i),i.type){case"s":var s=Math.max(Math.abs(e),Math.abs(t));return null!=i.precision||isNaN(o=Object(ye.h)(r,s))||(i.precision=o),Object(ye.e)(i,s);case"":case"e":case"g":case"p":case"r":null!=i.precision||isNaN(o=Object(ye.i)(r,Math.max(Math.abs(e),Math.abs(t))))||(i.precision=o-("e"===i.type));break;case"f":case"%":null!=i.precision||isNaN(o=Object(ye.g)(r))||(i.precision=o-2*("%"===i.type))}return Object(ye.b)(i)},ve=function(e,t){e=e.slice();var n,i=0,o=e.length-1,r=e[i],s=e[o];return s<r&&(n=i,i=o,o=n,n=r,r=s,s=n),e[i]=t.floor(r),e[o]=t.ceil(s),e},be=n(184),Se=n(230),Ce=1e3,we=60*Ce,_e=60*we,Oe=24*_e,xe=7*Oe,Ee=30*Oe,Ae=365*Oe,Te=function(){return i.apply(q(be.D,be.n,be.B,be.a,be.e,be.j,be.r,be.h,Se.c).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)},Re=function(){return i.apply(q(be._7,be.R,be._5,be.F,be.J,be.N,be.V,be.L,Se.g).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)};n.d(t,"scaleBand",function(){return s}),n.d(t,"scalePoint",function(){return u}),n.d(t,"scaleIdentity",function(){return b}),n.d(t,"scaleLinear",function(){return v}),n.d(t,"scaleLog",function(){return R}),n.d(t,"scaleSymlog",function(){return P}),n.d(t,"scaleOrdinal",function(){return r}),n.d(t,"scaleImplicit",function(){return pe}),n.d(t,"scalePow",function(){return V}),n.d(t,"scaleSqrt",function(){return L}),n.d(t,"scaleQuantile",function(){return B}),n.d(t,"scaleQuantize",function(){return U}),n.d(t,"scaleThreshold",function(){return Q}),n.d(t,"scaleTime",function(){return Te}),n.d(t,"scaleUtc",function(){return Re}),n.d(t,"scaleSequential",function(){return G}),n.d(t,"scaleSequentialLog",function(){return Y}),n.d(t,"scaleSequentialPow",function(){return J}),n.d(t,"scaleSequentialSqrt",function(){return Z}),n.d(t,"scaleSequentialSymlog",function(){return K}),n.d(t,"scaleSequentialQuantile",function(){return X}),n.d(t,"scaleDiverging",function(){return te}),n.d(t,"scaleDivergingLog",function(){return ne}),n.d(t,"scaleDivergingPow",function(){return oe}),n.d(t,"scaleDivergingSqrt",function(){return re}),n.d(t,"scaleDivergingSymlog",function(){return ie}),n.d(t,"tickFormat",function(){return ge})},function(e,t){},function(e,t,n){"use strict";function i(e){return!!o[e]}Object.defineProperty(t,"__esModule",{value:!0});var o;!function(e){e.currency="currency",e.number="number",e.date="date"}(o=t.DynamicFacetRangeValueFormat||(t.DynamicFacetRangeValueFormat={})),t.isFacetRangeValueFormat=i},function(e,t,n){(function(e){function i(e,n){var i={seen:[],stylize:r};return arguments.length>=3&&(i.depth=arguments[2]),arguments.length>=4&&(i.colors=arguments[3]),f(n)?i.showHidden=n:n&&t._extend(i,n),S(i.showHidden)&&(i.showHidden=!1),S(i.depth)&&(i.depth=2),S(i.colors)&&(i.colors=!1),S(i.customInspect)&&(i.customInspect=!0),i.colors&&(i.stylize=o),a(i,e,i.depth)}function o(e,t){var n=i.styles[t];return n?"["+i.colors[n][0]+"m"+e+"["+i.colors[n][1]+"m":e}function r(e,t){return e}function s(e){var t={};return e.forEach(function(e,n){t[e]=!0}),t}function a(e,n,i){if(e.customInspect&&n&&x(n.inspect)&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var o=n.inspect(i,e);return v(o)||(o=a(e,o,i)),o}var r=u(e,n);if(r)return r;var f=Object.keys(n),m=s(f);if(e.showHidden&&(f=Object.getOwnPropertyNames(n)),O(n)&&(f.indexOf("message")>=0||f.indexOf("description")>=0))return l(n);if(0===f.length){if(x(n)){var y=n.name?": "+n.name:"";return e.stylize("[Function"+y+"]","special")}if(C(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(_(n))return e.stylize(Date.prototype.toString.call(n),"date");if(O(n))return l(n)}var g="",b=!1,S=["{","}"];if(h(n)&&(b=!0,S=["[","]"]),x(n)){g=" [Function"+(n.name?": "+n.name:"")+"]"}if(C(n)&&(g=" "+RegExp.prototype.toString.call(n)),_(n)&&(g=" "+Date.prototype.toUTCString.call(n)),O(n)&&(g=" "+l(n)),0===f.length&&(!b||0==n.length))return S[0]+g+S[1];if(i<0)return C(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special");e.seen.push(n);var w;return w=b?c(e,n,i,m,f):f.map(function(t){return p(e,n,i,m,t,b)}),e.seen.pop(),d(w,g,S)}function u(e,t){if(S(t))return e.stylize("undefined","undefined");if(v(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}return g(t)?e.stylize(""+t,"number"):f(t)?e.stylize(""+t,"boolean"):m(t)?e.stylize("null","null"):void 0}function l(e){return"["+Error.prototype.toString.call(e)+"]"}function c(e,t,n,i,o){for(var r=[],s=0,a=t.length;s<a;++s)F(t,String(s))?r.push(p(e,t,n,i,String(s),!0)):r.push("");return o.forEach(function(o){o.match(/^\d+$/)||r.push(p(e,t,n,i,o,!0))}),r}function p(e,t,n,i,o,r){var s,u,l;if(l=Object.getOwnPropertyDescriptor(t,o)||{value:t[o]},l.get?u=l.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):l.set&&(u=e.stylize("[Setter]","special")),F(i,o)||(s="["+o+"]"),u||(e.seen.indexOf(l.value)<0?(u=m(n)?a(e,l.value,null):a(e,l.value,n-1),u.indexOf("\n")>-1&&(u=r?u.split("\n").map(function(e){return"  "+e}).join("\n").substr(2):"\n"+u.split("\n").map(function(e){return"   "+e}).join("\n"))):u=e.stylize("[Circular]","special")),S(s)){if(r&&o.match(/^\d+$/))return u;s=JSON.stringify(""+o),s.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.substr(1,s.length-2),s=e.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=e.stylize(s,"string"))}return s+": "+u}function d(e,t,n){var i=0;return e.reduce(function(e,t){return i++,t.indexOf("\n")>=0&&i++,e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n  ")+" "+n[1]:n[0]+t+" "+e.join(", ")+" "+n[1]}function h(e){return Array.isArray(e)}function f(e){return"boolean"==typeof e}function m(e){return null===e}function y(e){return null==e}function g(e){return"number"==typeof e}function v(e){return"string"==typeof e}function b(e){return"symbol"==typeof e}function S(e){return void 0===e}function C(e){return w(e)&&"[object RegExp]"===A(e)}function w(e){return"object"==typeof e&&null!==e}function _(e){return w(e)&&"[object Date]"===A(e)}function O(e){return w(e)&&("[object Error]"===A(e)||e instanceof Error)}function x(e){return"function"==typeof e}function E(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e}function A(e){return Object.prototype.toString.call(e)}function T(e){return e<10?"0"+e.toString(10):e.toString(10)}function R(){var e=new Date,t=[T(e.getHours()),T(e.getMinutes()),T(e.getSeconds())].join(":");return[e.getDate(),k[e.getMonth()],t].join(" ")}function F(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function M(e,t){if(!e){var n=new Error("Promise was rejected with a falsy value");n.reason=e,e=n}return t(e)}function I(t){function n(){for(var n=[],i=0;i<arguments.length;i++)n.push(arguments[i]);var o=n.pop();if("function"!=typeof o)throw new TypeError("The last argument must be of type Function");var r=this,s=function(){return o.apply(r,arguments)};t.apply(this,n).then(function(t){e.nextTick(s,null,t)},function(t){e.nextTick(M,t,s)})}if("function"!=typeof t)throw new TypeError('The "original" argument must be of type Function');return Object.setPrototypeOf(n,Object.getPrototypeOf(t)),Object.defineProperties(n,P(t)),n}var P=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),n={},i=0;i<t.length;i++)n[t[i]]=Object.getOwnPropertyDescriptor(e,t[i]);return n},D=/%[sdj%]/g;t.format=function(e){if(!v(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(i(arguments[n]));return t.join(" ")}for(var n=1,o=arguments,r=o.length,s=String(e).replace(D,function(e){if("%%"===e)return"%";if(n>=r)return e;switch(e){case"%s":return String(o[n++]);case"%d":return Number(o[n++]);case"%j":try{return JSON.stringify(o[n++])}catch(e){return"[Circular]"}default:return e}}),a=o[n];n<r;a=o[++n])m(a)||!w(a)?s+=" "+a:s+=" "+i(a);return s},t.deprecate=function(n,i){function o(){if(!r){if(e.throwDeprecation)throw new Error(i);e.traceDeprecation?console.trace(i):console.error(i),r=!0}return n.apply(this,arguments)}if(void 0!==e&&!0===e.noDeprecation)return n;if(void 0===e)return function(){return t.deprecate(n,i).apply(this,arguments)};var r=!1;return o};var $,N={};t.debuglog=function(n){if(S($)&&($=e.env.NODE_DEBUG||""),n=n.toUpperCase(),!N[n])if(new RegExp("\\b"+n+"\\b","i").test($)){var i=e.pid;N[n]=function(){var e=t.format.apply(t,arguments);console.error("%s %d: %s",n,i,e)}}else N[n]=function(){};return N[n]},t.inspect=i,i.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},i.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=h,t.isBoolean=f,t.isNull=m,t.isNullOrUndefined=y,t.isNumber=g,t.isString=v,t.isSymbol=b,t.isUndefined=S,t.isRegExp=C,t.isObject=w,t.isDate=_,t.isError=O,t.isFunction=x,t.isPrimitive=E,t.isBuffer=n(696);var k=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];t.log=function(){console.log("%s - %s",R(),t.format.apply(t,arguments))},t.inherits=n(697),t._extend=function(e,t){if(!t||!w(t))return e;for(var n=Object.keys(t),i=n.length;i--;)e[n[i]]=t[n[i]];return e};var V="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;t.promisify=function(e){function t(){for(var t,n,i=new Promise(function(e,i){t=e,n=i}),o=[],r=0;r<arguments.length;r++)o.push(arguments[r]);o.push(function(e,i){e?n(e):t(i)});try{e.apply(this,o)}catch(e){n(e)}return i}if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');if(V&&e[V]){var t=e[V];if("function"!=typeof t)throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,V,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),V&&Object.defineProperty(t,V,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,P(e))},t.promisify.custom=V,t.callbackify=I}).call(t,n(199))},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(60),o=n(19),r=n(89),s=n(1),a=n(7),u=n(9),l=function(){function e(e,t,n,i){this.coveoRoot=e,this.ID=t,this.searchInterface=a.Component.get(this.coveoRoot.el,o.SearchInterface,!1),this.currentMode="large"}return e.init=function(t,n,o){if(!s.$$(t).find("."+a.Component.computeCssClassName(r.ResultList))){return void new u.Logger("ResponsiveDefaultResultTemplate").trace("No ResultLayout component found : Cannot instantiate ResponsiveResultLayout")}i.ResponsiveComponentsManager.register(e,s.$$(t),r.ResultList.ID,n,o)},e.prototype.registerComponent=function(e){return e instanceof r.ResultList&&(this.resultList=e,!0)},e.prototype.handleResizeEvent=function(){var e=this,t=this.resultList.queryController.getLastResults();this.needSmallMode()?(s.$$(this.resultList.options.resultsContainer).addClass("coveo-card-layout-container"),s.$$(this.resultList.options.resultsContainer).removeClass("coveo-list-layout-container"),"small"!=this.currentMode&&(t&&this.resultList.buildResults(t).then(function(t){e.resultList.renderResults(t)}),this.currentMode="small")):(s.$$(this.resultList.options.resultsContainer).removeClass("coveo-card-layout-container"),s.$$(this.resultList.options.resultsContainer).addClass("coveo-list-layout-container"),"large"!=this.currentMode&&(t&&this.resultList.buildResults(t).then(function(t){e.resultList.renderResults(t)}),this.currentMode="large"))},e.prototype.needSmallMode=function(){return this.coveoRoot.width()<=this.searchInterface.responsiveComponents.getSmallScreenWidth()},e}();t.ResponsiveDefaultResultTemplate=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=function(){function e(e,t){this.searchInterface=t,this.resultContainerElement=i.$$(e)}return e.prototype.empty=function(){this.searchInterface.detachComponentsInside(this.resultContainerElement.el),i.$$(this.resultContainerElement).empty()},e.prototype.addClass=function(e){this.resultContainerElement.addClass(e)},e.prototype.isEmpty=function(){return this.resultContainerElement.isEmpty()},e.prototype.hideChildren=function(){this.resultContainerElement.children().forEach(function(e){return i.$$(e).hide()})},e.prototype.getResultElements=function(){return this.resultContainerElement.findAll(".CoveoResult")},Object.defineProperty(e.prototype,"el",{get:function(){return this.resultContainerElement.el},enumerable:!0,configurable:!0}),e.resultCurrentlyBeingRendered=null,e}();t.ResultContainer=o},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=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])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n(211),r=n(1),s=n(0),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.getEndFragment=function(e){var t=this;return new Promise(function(n){if(!s.isEmpty(e)){if(t.resultListOptions.enableInfiniteScroll){var i=r.$$(t.resultListOptions.resultsContainer).findAll(".coveo-card-layout-padding");s.each(i,function(e){return r.$$(e).remove()})}var o=document.createDocumentFragment();s.times(3,function(){return o.appendChild(r.$$("div",{className:"coveo-card-layout coveo-card-layout-padding"}).el)}),n(o)}n(null)})},t}(o.ResultListRenderer);t.ResultListCardRenderer=a},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=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])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),o=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))(function(o,r){function s(e){try{u(i.next(e))}catch(e){r(e)}}function a(e){try{u(i.throw(e))}catch(e){r(e)}}function u(e){e.done?o(e.value):new n(function(t){t(e.value)}).then(s,a)}u((i=i.apply(e,t||[])).next())})},r=this&&this.__generator||function(e,t){function n(e){return function(t){return i([e,t])}}function i(n){if(o)throw new TypeError("Generator is already executing.");for(;u;)try{if(o=1,r&&(s=r[2&n[0]?"return":n[0]?"throw":"next"])&&!(s=s.call(r,n[1])).done)return s;switch(r=0,s&&(n=[0,s.value]),n[0]){case 0:case 1:s=n;break;case 4:return u.label++,{value:n[1],done:!1};case 5:u.label++,r=n[1],n=[0];continue;case 7:n=u.ops.pop(),u.trys.pop();continue;default:if(s=u.trys,!(s=s.length>0&&s[s.length-1])&&(6===n[0]||2===n[0])){u=0;continue}if(3===n[0]&&(!s||n[1]>s[0]&&n[1]<s[3])){u.label=n[1];break}if(6===n[0]&&u.label<s[1]){u.label=s[1],s=n;break}if(s&&u.label<s[2]){u.label=s[2],u.ops.push(n);break}s[2]&&u.ops.pop(),u.trys.pop();continue}n=t.call(e,u)}catch(e){n=[6,e],r=0}finally{o=s=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}var o,r,s,a,u={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return a={next:n(0),throw:n(1),return:n(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a};Object.defineProperty(t,"__esModule",{value:!0});var s=n(211),a=n(467),u=n(1),l=n(0),c=function(e){function t(t,n){var i=e.call(this,t,n)||this;return i.resultListOptions=t,i.autoCreateComponentsFn=n,i.shouldDisplayHeader=!0,i.shouldDisplayFooter=!1,i.resultListOptions.resultTemplate instanceof a.TableTemplate&&(i.resultListOptions.resultTemplate.hasTemplateWithRole("table-footer")&&(i.shouldDisplayFooter=!0),0===i.resultListOptions.resultTemplate.templates.length||i.resultListOptions.resultTemplate.hasTemplateWithRole("table-header")||(i.shouldDisplayHeader=!1)),i}return i(t,e),t.prototype.getStartFragment=function(e,t){if(!t&&!l.isEmpty(e)&&this.shouldDisplayHeader)return this.renderRoledTemplate("table-header")},t.prototype.getEndFragment=function(e,t){if(!t&&!l.isEmpty(e)&&this.shouldDisplayFooter)return this.renderRoledTemplate("table-footer")},t.prototype.renderRoledTemplate=function(e){return o(this,void 0,void 0,function(){var t,n;return r(this,function(i){switch(i.label){case 0:return[4,this.resultListOptions.resultTemplate.instantiateRoleToElement(e)];case 1:return t=i.sent(),u.$$(t).addClass("coveo-result-list-"+e),this.autoCreateComponentsFn(t,void 0),n=document.createDocumentFragment(),n.appendChild(t),[2,n]}})})},t}(s.ResultListRenderer);t.ResultListTableRenderer=c},function(e,t){},function(e,t){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(90),o=n(20),r=n(12),s=n(470),a=function(){function e(e,t,n,i){this.componentName=e,this.element=t,this.closeButtonLabel=n,this.close=i,this.className="coveo-"+this.componentName+"-dropdown-modal-content"}return Object.defineProperty(e.prototype,"hidden",{set:function(e){this.element.toggleClass("coveo-hidden",e)},enumerable:!0,configurable:!0}),e.prototype.positionDropdown=function(){this.element.el.classList.add(this.className,i.ResponsiveDropdownContent.DEFAULT_CSS_CLASS_NAME),this.element.setAttribute("role","group"),this.element.setAttribute("aria-label",o.l("FiltersDropdown")),this.hidden=!1,this.ensureCloseButton(),this.ensureFocusTrap()},e.prototype.hideDropdown=function(){this.element.el.classList.remove(this.className,i.ResponsiveDropdownContent.DEFAULT_CSS_CLASS_NAME),this.element.setAttribute("role",null),this.element.setAttribute("aria-label",null),this.hidden=!0,this.removeCloseButton(),this.removeFocusTrap()},e.prototype.cleanUp=function(){this.hidden=!1},e.prototype.ensureCloseButton=function(){var e=this;this.closeButton||(this.closeButton=o.$$("button",{className:"coveo-facet-modal-close-button",ariaLabel:this.closeButtonLabel},r.SVGIcons.icons.mainClear),this.closeButton.on("click",function(){return e.close()}),this.element.prepend(this.closeButton.el))},Object.defineProperty(e.prototype,"focusableSelector",{get:function(){return["[data-field]:not(.coveo-facet-empty) [tabindex]","[data-field]:not(.coveo-hidden) button",".coveo-facet-modal-close-button"].join(" , ")},enumerable:!0,configurable:!0}),e.prototype.ensureFocusTrap=function(){this.focusTrap||(this.focusTrap=new s.FocusTrap(this.element.el,{focusableSelector:this.focusableSelector}))},e.prototype.removeCloseButton=function(){this.closeButton&&(this.closeButton.remove(),this.closeButton=null)},e.prototype.removeFocusTrap=function(){this.focusTrap&&(this.focusTrap.disable(),this.focusTrap=null)},e}();t.ResponsiveDropdownModalContent=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){}return e.popupOpened="popupOpened",e.popupClosed="popupClosed",e}();t.FacetsMobileModeEvents=i},function(e,t){},function(e,t,n){"use strict";function i(e){return!!e.isFieldValueCompatible}Object.defineProperty(t,"__esModule",{value:!0}),t.isFacetFieldValueCompatible=i},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(25),o=function(){function e(e){this.facetSearch=e}return e.prototype.handleKeyboardEvent=function(e){switch(e.which){case i.KEYBOARD.ENTER:this.facetSearch.keyboardNavigationEnterPressed(e);break;case i.KEYBOARD.DELETE:this.facetSearch.keyboardNavigationDeletePressed&&this.facetSearch.keyboardNavigationDeletePressed(e);break;case i.KEYBOARD.ESCAPE:this.facetSearch.dismissSearchResults();break;case i.KEYBOARD.DOWN_ARROW:this.facetSearch.facetSearchElement.moveCurrentResultDown();break;case i.KEYBOARD.UP_ARROW:this.facetSearch.facetSearchElement.moveCurrentResultUp();break;default:this.facetSearch.keyboardEventDefaultHandler()}},e.prototype.handleFacetSearchResultsScroll=function(){if(!this.facetSearch.facetSearchPromise&&""==this.facetSearch.facetSearchElement.getValueInInputForFacetSearch()&&this.facetSearch.moreValuesToFetch){var e=this.facetSearch.facetSearchElement.searchResults.clientHeight;this.facetSearch.facetSearchElement.searchResults.scrollHeight-(this.facetSearch.facetSearchElement.searchResults.scrollTop+e)<e/2&&this.facetSearch.fetchMoreValues()}},e}();t.FacetSearchUserInputHandler=o},function(e,t,n){"use strict";function i(e,t){switch(e.facetType){case u.Facet.ID:return new s.FacetSearchDropdownNavigator(o({},t,{facetSearch:e}));case a.CategoryFacet.ID:default:return new r.DefaultSearchDropdownNavigator(t)}}var o=this&&this.__assign||Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e};Object.defineProperty(t,"__esModule",{value:!0});var r=n(477),s=n(546),a=n(91),u=n(69);t.SearchDropdownNavigatorFactory=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(477),o=n(1),r=function(){function e(e){this.config=e,this.defaultDropdownNavigator=new i.DefaultSearchDropdownNavigator(e)}return e.prototype.setAsCurrentResult=function(e){this.defaultDropdownNavigator.setAsCurrentResult(e)},Object.defineProperty(e.prototype,"currentResult",{get:function(){return this.defaultDropdownNavigator.currentResult},enumerable:!0,configurable:!0}),e.prototype.focusNextElement=function(){if(this.toggleCanExcludeCurrentResult(),this.willExcludeCurrentResult)return void this.announceCurrentResultCanBeExcluded();this.defaultDropdownNavigator.moveCurrentResultDown()},e.prototype.focusPreviousElement=function(){if(this.willExcludeCurrentResult)return void this.toggleCanExcludeCurrentResult();this.moveResultUp(),this.toggleCanExcludeCurrentResult()},e.prototype.moveResultUp=function(){if(this.willExcludeCurrentResult)return void this.toggleCanExcludeCurrentResult();this.defaultDropdownNavigator.moveCurrentResultUp(),this.toggleCanExcludeCurrentResult()},Object.defineProperty(e.prototype,"isCurrentResultNotAFacetValue",{get:function(){return this.currentResult.hasClass("coveo-facet-search-select-all")||this.currentResult.hasClass("coveo-facet-value-not-found")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"willExcludeCurrentResult",{get:function(){return this.currentResult.hasClass("coveo-facet-value-will-exclude")},enumerable:!0,configurable:!0}),e.prototype.toggleCanExcludeCurrentResult=function(){this.isCurrentResultNotAFacetValue||this.currentResult.toggleClass("coveo-facet-value-will-exclude",!this.willExcludeCurrentResult)},e.prototype.announceCurrentResultCanBeExcluded=function(){if(!this.isCurrentResultNotAFacetValue){var e=o.$$(this.currentResult).find(".coveo-facet-value-exclude");this.config.facetSearch.updateAriaLive(e.getAttribute("aria-label"))}},e}();t.FacetSearchDropdownNavigator=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=n(12),r=n(15),s=n(0),a=n(6),u=n(23),l=function(){function e(){this.listRoot=i.$$("ul",{className:"coveo-category-facet-values"}),this.collapseArrow=i.$$("span",{className:"coveo-category-facet-collapse-children"},o.SVGIcons.icons.arrowDown),r.SVGDom.addClassToSVGInContainer(this.collapseArrow.el,"coveo-category-facet-collapse-children-svg")}return e.prototype.buildListRoot=function(){return this.listRoot.clone(!0)},e.prototype.buildListElement=function(e){var t=i.$$("div",{},this.createListElement(e));return i.$$(t.el.firstChild)},e.prototype.buildAllCategoriesButton=function(){var e=i.$$("span",{className:"coveo-category-facet-all-categories-caption"},a.l("AllCategories"));return i.$$("li",{className:"coveo-category-facet-value coveo-category-facet-all-categories"},this.buildCollapseArrow(),e)},e.prototype.buildEllipsis=function(){var e=i.$$("span",{className:"coveo-category-facet-ellipsis-caption"},"[ ... ]");return i.$$("li",{className:"coveo-category-facet-ellipsis"},e)},e.prototype.buildCollapseArrow=function(){return this.collapseArrow.clone(!0)},e.prototype.getFormattedCount=function(e){return u.format(e,"n0")},e.prototype.createListElement=function(e){return'<li class="coveo-category-facet-value">\n        <label class="coveo-category-facet-value-label">\n          <span title="'+s.escape(e.value)+'" class="coveo-category-facet-value-caption">'+s.escape(e.value)+'</span>\n          <span class="coveo-category-facet-value-count">'+this.getFormattedCount(e.count)+"</span>\n        </label>\n      </li>"},e}();t.CategoryFacetTemplates=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(478),o=function(){function e(e,t,n){this.element=e,this.path=[],this.categoryChildrenValueRenderer=new i.CategoryChildrenValueRenderer(e,t,this,n),this.listRoot=t.buildListRoot(),this.appendListRoot()}return e.prototype.renderChildren=function(e){this.appendListRoot(),this.categoryChildrenValueRenderer.renderChildren(e)},e.prototype.renderAsParent=function(e){return this.appendListRoot(),this.categoryChildrenValueRenderer.renderAsParent(e)},Object.defineProperty(e.prototype,"children",{get:function(){return this.categoryChildrenValueRenderer.children},enumerable:!0,configurable:!0}),e.prototype.clear=function(){this.listRoot.detach(),this.listRoot.empty(),this.categoryChildrenValueRenderer.clearChildren()},e.prototype.appendListRoot=function(){this.element.append(this.listRoot.el)},e}();t.CategoryValueRoot=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=n(478),r=n(10),s=n(17),a=n(6),u=function(){function e(e,t,n,i){this.listRoot=e,this.categoryValueDescriptor=t,this.categoryFacetTemplates=n,this.categoryFacet=i,this.isActive=!1,this.element=this.categoryFacetTemplates.buildListElement({value:this.captionedValueDescriptorValue,count:this.categoryValueDescriptor.count}),this.collapseArrow=this.categoryFacetTemplates.buildCollapseArrow(),this.categoryChildrenValueRenderer=new o.CategoryChildrenValueRenderer(this.element,n,this,this.categoryFacet),this.path=this.categoryValueDescriptor.path}return e.prototype.render=function(e){this.pastMaximumDepth()&&this.element.addClass("coveo-category-facet-last-value"),e?this.element.addClass("coveo-category-facet-child-value"):this.element.addClass("coveo-category-facet-parent-value"),this.listRoot.append(this.element.el)},e.prototype.getDescriptor=function(){return{value:this.categoryValueDescriptor.value,count:this.categoryValueDescriptor.count,path:this.path}},e.prototype.clear=function(){this.element.detach(),this.categoryChildrenValueRenderer.clearChildren()},e.prototype.renderChildren=function(e){this.isActive=!0,this.element.addClass("coveo-active-category-facet-parent"),this.categoryChildrenValueRenderer.renderChildren(e)},e.prototype.renderAsParent=function(e){return this.categoryChildrenValueRenderer.renderAsParent(e)},Object.defineProperty(e.prototype,"children",{get:function(){return this.categoryChildrenValueRenderer.children},enumerable:!0,configurable:!0}),e.prototype.makeSelectable=function(){var e=this,t=i.$$(this.element.find(".coveo-category-facet-value-label"));t.addClass("coveo-selectable");var n=this.categoryValueDescriptor.count,o=a.l("ResultCount",n.toString(),n),r=a.l("IncludeValueWithResultCount",this.captionedValueDescriptorValue,o);return(new s.AccessibleButton).withElement(t).withSelectAction(function(){return e.onSelect()}).withLabel(r).build(),this},e.prototype.showCollapseArrow=function(){if(!this.collapseArrow.el.parentElement){var e=this.element.find("label");i.$$(e).prepend(this.collapseArrow.el)}return this},Object.defineProperty(e.prototype,"captionedValueDescriptorValue",{get:function(){var e=this.categoryValueDescriptor.value;return this.categoryFacet.getCaption(e)},enumerable:!0,configurable:!0}),e.prototype.onSelect=function(){this.pastMaximumDepth()||(this.categoryFacet.logAnalyticsEvent(r.analyticsActionCauseList.categoryFacetSelect,this.path),this.categoryFacet.scrollToTop(),this.categoryFacet.changeActivePath(this.path),this.categoryFacet.executeQuery())},e.prototype.pastMaximumDepth=function(){return this.path.length-this.categoryFacet.options.basePath.length>=this.categoryFacet.options.maximumDepth},e}();t.CategoryValue=u},function(e,t,n){"use strict";var i=this&&this.__assign||Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},o=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))(function(o,r){function s(e){try{u(i.next(e))}catch(e){r(e)}}function a(e){try{u(i.throw(e))}catch(e){r(e)}}function u(e){e.done?o(e.value):new n(function(t){t(e.value)}).then(s,a)}u((i=i.apply(e,t||[])).next())})},r=this&&this.__generator||function(e,t){function n(e){return function(t){return i([e,t])}}function i(n){if(o)throw new TypeError("Generator is already executing.");for(;u;)try{if(o=1,r&&(s=r[2&n[0]?"return":n[0]?"throw":"next"])&&!(s=s.call(r,n[1])).done)return s;switch(r=0,s&&(n=[0,s.value]),n[0]){case 0:case 1:s=n;break;case 4:return u.label++,{value:n[1],done:!1};case 5:u.label++,r=n[1],n=[0];continue;case 7:n=u.ops.pop(),u.trys.pop();continue;default:if(s=u.trys,!(s=s.length>0&&s[s.length-1])&&(6===n[0]||2===n[0])){u=0;continue}if(3===n[0]&&(!s||n[1]>s[0]&&n[1]<s[3])){u.label=n[1];break}if(6===n[0]&&u.label<s[1]){u.label=s[1],s=n;break}if(s&&u.label<s[2]){u.label=s[2],u.ops.push(n);break}s[2]&&u.ops.pop(),u.trys.pop();continue}n=t.call(e,u)}catch(e){n=[6,e],r=0}finally{o=s=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}var o,r,s,a,u={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return a={next:n(0),throw:n(1),return:n(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a};Object.defineProperty(t,"__esModule",{value:!0});var s=n(472),a=n(4),u=function(){function e(e){this.categoryFacet=e}return e.prototype.putCategoryFacetInQueryBuilder=function(e,t,n){var i=e.categoryFacets.length;return this.addQueryFilter(e,t),this.addCategoryFacetRequest(e,t,n),i},e.prototype.searchFacetValues=function(e,t){return o(this,void 0,void 0,function(){var n,o,a,u;return r(this,function(r){switch(r.label){case 0:return n=i({},this.categoryFacet.queryController.getLastQuery()),o={allowedValues:[this.getAllowedValuesPattern(e)],allowedValuesPatternType:s.AllowedValuesPatternType.Wildcards,maximumNumberOfValues:t,field:this.categoryFacet.options.field,sortCriteria:"occurrences",injectionDepth:this.categoryFacet.options.injectionDepth},n.groupBy=[o],n.categoryFacets.splice(this.categoryFacet.positionInQuery,1),[4,this.categoryFacet.queryController.getEndpoint().search(n)];case 1:return a=r.sent(),u=function(e,t){return e.numberOfResults==t.numberOfResults?e.value.length-t.value.length:t.numberOfResults-e.numberOfResults},[2,a.groupByResults[0].values.sort(u)]}})})},e.prototype.addDebugGroupBy=function(e,t){e.groupByRequests.push({field:this.categoryFacet.options.field,allowedValues:[".*"+a.Utils.escapeRegexCharacter(t)+".*"],allowedValuesPatternType:s.AllowedValuesPatternType.Regex})},e.prototype.shouldAddFilterToQuery=function(e){return 0!=e.length&&!a.Utils.arrayEqual(e,this.categoryFacet.options.basePath)},e.prototype.addQueryFilter=function(e,t){this.shouldAddFilterToQuery(t)&&e.advancedExpression.addFieldExpression(this.categoryFacet.options.field,"==",[t.join(this.categoryFacet.options.delimitingCharacter)])},e.prototype.addCategoryFacetRequest=function(e,t,n){var i={field:this.categoryFacet.options.field,path:t,injectionDepth:this.categoryFacet.options.injectionDepth,maximumNumberOfValues:n,delimitingCharacter:this.categoryFacet.options.delimitingCharacter};e.categoryFacets.push(i)},e.prototype.getAllowedValuesPattern=function(e){var t=this.categoryFacet.options.basePath,n=this.categoryFacet.options.delimitingCharacter;return a.Utils.isNonEmptyArray(t)?""+t.join(n)+n+"*"+e+"*":"*"+e+"*"},e}();t.CategoryFacetQueryController=u},function(e,t){},function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))(function(o,r){function s(e){try{u(i.next(e))}catch(e){r(e)}}function a(e){try{u(i.throw(e))}catch(e){r(e)}}function u(e){e.done?o(e.value):new n(function(t){t(e.value)}).then(s,a)}u((i=i.apply(e,t||[])).next())})},o=this&&this.__generator||function(e,t){function n(e){return function(t){return i([e,t])}}function i(n){if(o)throw new TypeError("Generator is already executing.");for(;u;)try{if(o=1,r&&(s=r[2&n[0]?"return":n[0]?"throw":"next"])&&!(s=s.call(r,n[1])).done)return s;switch(r=0,s&&(n=[0,s.value]),n[0]){case 0:case 1:s=n;break;case 4:return u.label++,{value:n[1],done:!1};case 5:u.label++,r=n[1],n=[0];continue;case 7:n=u.ops.pop(),u.trys.pop();continue;default:if(s=u.trys,!(s=s.length>0&&s[s.length-1])&&(6===n[0]||2===n[0])){u=0;continue}if(3===n[0]&&(!s||n[1]>s[0]&&n[1]<s[3])){u.label=n[1];break}if(6===n[0]&&u.label<s[1]){u.label=s[1],s=n;break}if(s&&u.label<s[2]){u.label=s[2],u.ops.push(n);break}s[2]&&u.ops.pop(),u.trys.pop();continue}n=t.call(e,u)}catch(e){n=[6,e],r=0}finally{o=s=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}var o,r,s,a,u={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return a={next:n(0),throw:n(1),return:n(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a};Object.defineProperty(t,"__esModule",{value:!0});var r=n(91),s=n(476),a=n(0),u=n(1),l=n(15),c=n(12),p=n(6);n(553);var d=n(22),h=n(10),f=n(17),m=n(23),y=function(){function e(e,t){void 0===t&&(t=!0);var n=this;this.categoryFacet=e,this.displayButton=t,this.moreValuesToFetch=!0,this.facetSearchElement=new s.FacetSearchElement(this),this.displayNewValues=a.debounce(this.getDisplayNewValuesFunction(),this.categoryFacet.options.facetSearchDelay),this.categoryFacet.root.addEventListener("click",function(e){return n.handleClickElsewhere(e)}),this.numberOfValuesToFetch=this.categoryFacet.options.numberOfResultsInFacetSearch}return Object.defineProperty(e.prototype,"facetType",{get:function(){return r.CategoryFacet.ID},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"facetTitle",{get:function(){return this.categoryFacet.options.title||this.categoryFacet.options.field.toString()},enumerable:!0,configurable:!0}),e.prototype.setExpandedFacetSearchAccessibilityAttributes=function(e){this.container.setAttribute("aria-expanded","true")},e.prototype.setCollapsedFacetSearchAccessibilityAttributes=function(){this.container.setAttribute("aria-expanded","false")},e.prototype.build=function(){return this.container=u.$$("div",{className:"coveo-category-facet-search-container",role:"button"}),this.container.toggleClass("coveo-category-facet-search-without-button",!this.displayButton),this.displayButton&&this.buildButton(),this.container.append(this.facetSearchElement.build()),u.$$(this.facetSearchElement.search).toggleClass("without-animation",!this.displayButton),this.container},e.prototype.buildButton=function(){var e=this;(new f.AccessibleButton).withElement(this.container).withSelectAction(function(){u.$$(e.categoryFacet.element).addClass("coveo-category-facet-searching"),e.focus()}).withLabel(p.l("SearchFacetResults",this.facetTitle)).build(),this.buildfacetSearchPlaceholder()},e.prototype.focus=function(){this.facetSearchElement.focus()},e.prototype.clear=function(){this.dismissSearchResults(),this.container&&this.container.detach()},e.prototype.dismissSearchResults=function(){this.removeNoResultsCssClasses(),u.$$(this.categoryFacet.element).removeClass("coveo-category-facet-searching"),u.$$(this.facetSearchElement.searchResults).empty(),this.facetSearchElement.clearSearchInput(),this.facetSearchElement.hideSearchResultsElement(),this.currentlyDisplayedResults=null,this.numberOfValuesToFetch=this.categoryFacet.options.numberOfResultsInFacetSearch,this.moreValuesToFetch=!0},e.prototype.keyboardEventDefaultHandler=function(){this.moreValuesToFetch=!0,this.displayNewValues()},e.prototype.keyboardNavigationEnterPressed=function(){this.selectCurrentResult()},e.prototype.fetchMoreValues=function(){this.numberOfValuesToFetch+=this.categoryFacet.options.numberOfResultsInFacetSearch,this.displayNewValues()},e.prototype.getCaptions=function(){var e=u.$$(this.facetSearchElement.searchResults);return e.findAll(".coveo-category-facet-search-value-caption").concat(e.findAll(".coveo-category-facet-search-path-parents")).concat(e.findAll(".coveo-category-facet-search-path-last-value"))},e.prototype.updateAriaLive=function(e){this.categoryFacet.searchInterface.ariaLive.updateText(e)},e.prototype.selectCurrentResult=function(){if(this.facetSearchElement.currentResult){var e=this.facetSearchElement.currentResult.el.dataset.path,t=this.categoryFacet.options.delimitingCharacter,n=e.split(t);this.categoryFacet.changeActivePath(n),this.categoryFacet.logAnalyticsEvent(h.analyticsActionCauseList.categoryFacetSelect,n),this.categoryFacet.executeQuery(),this.categoryFacet.scrollToTop()}},e.prototype.handleClickElsewhere=function(e){var t=u.$$(e.target).closest(".coveo-category-facet-search-container"),n=this.container&&t===this.container.el;t&&n||this.dismissSearchResults()},e.prototype.buildfacetSearchPlaceholder=function(){var e=u.$$("div",{className:"coveo-category-facet-search-placeholder"}),t=u.$$("div",{className:"coveo-category-facet-search-icon"},c.SVGIcons.icons.checkboxHookExclusionMore);l.SVGDom.addClassToSVGInContainer(t.el,"coveo-category-facet-search-icon-svg");var n=u.$$("span",{className:"coveo-category-facet-search-label"},p.l("Search"));e.append(t.el),e.append(n.el),this.container.append(e.el)},e.prototype.getDisplayNewValuesFunction=function(){var e=this;return function(){return i(e,void 0,void 0,function(){var e;return o(this,function(t){switch(t.label){case 0:return this.facetSearchElement.showFacetSearchWaitingAnimation(),this.categoryFacet.logger.info("Triggering new Category Facet search"),[4,this.categoryFacet.categoryFacetQueryController.searchFacetValues(this.facetSearchElement.input.value,this.numberOfValuesToFetch)];case 1:return e=t.sent(),(this.logAnalyticsEvent(),e.length<this.numberOfValuesToFetch&&(this.moreValuesToFetch=!1),0==e.length)?(this.noFacetSearchResults(),[2]):(this.removeNoResultsCssClasses(),this.setFacetSearchResults(e),this.shouldPositionSearchResults&&this.facetSearchElement.positionSearchResults(),this.facetSearchElement.hideFacetSearchWaitingAnimation(),[2])}})})}},e.prototype.setFacetSearchResults=function(e){u.$$(this.facetSearchElement.searchResults).empty(),this.currentlyDisplayedResults=a.pluck(e,"value");for(var t=0;t<e.length;t++){var n=this.buildFacetSearchValue(e[t],t);0==t&&this.facetSearchElement.setAsCurrentResult(n),this.facetSearchElement.appendToSearchResults(n.el)}this.highlightCurrentQueryWithinSearchResults(),this.facetSearchElement.updateAriaLiveWithResults(this.facetSearchElement.input.value,this.currentlyDisplayedResults.length,this.moreValuesToFetch)},e.prototype.getFormattedCount=function(e){return m.format(e,"n0")},e.prototype.buildFacetSearchValue=function(e,t){var n=this,i=e.value.split(this.categoryFacet.options.delimitingCharacter),o=0!=i.slice(0,-1).length?i.slice(0,-1).join("/")+"/":"",r=u.$$("span",{className:"coveo-category-facet-search-value-caption"},a.last(i)),s=u.$$("span",{className:"coveo-category-facet-search-value-number"},this.getFormattedCount(e.numberOfResults)),l=u.$$("span",{className:"coveo-category-facet-search-path-parents"},o),c=u.$$("span",{className:"coveo-category-facet-search-path"},l),d=u.$$("div",{className:"coveo-category-facet-search-first-row"},r,s),m=u.$$("div",{className:"coveo-category-facet-search-second-row"},c),y=u.$$("li",{id:"coveo-category-facet-search-suggestion-"+t,role:"option",ariaSelected:"false",className:"coveo-category-facet-search-value",title:i},d,m);y.el.dataset.path=e.value;var g=p.l("ResultCount",this.getFormattedCount(e.numberOfResults),e.numberOfResults),v=p.l("IncludeValueWithResultCount",a.last(i),g);return(new f.AccessibleButton).withElement(y).withSelectAction(function(){n.categoryFacet.changeActivePath(i),n.categoryFacet.scrollToTop(),n.categoryFacet.logAnalyticsEvent(h.analyticsActionCauseList.categoryFacetSelect,i),n.categoryFacet.executeQuery()}).withLabel(v).build(),y},e.prototype.noFacetSearchResults=function(){this.facetSearchElement.hideFacetSearchWaitingAnimation(),this.facetSearchElement.emptyAndShowNoResults(),u.$$(this.facetSearchElement.search).addClass("coveo-facet-search-no-results"),u.$$(this.categoryFacet.element).addClass("coveo-no-results")},e.prototype.removeNoResultsCssClasses=function(){this.facetSearchElement.search&&u.$$(this.facetSearchElement.search).removeClass("coveo-facet-search-no-results"),u.$$(this.categoryFacet.element).removeClass("coveo-no-results")},e.prototype.highlightCurrentQueryWithinSearchResults=function(){var e=new RegExp("("+d.StringUtils.stringToRegex(this.facetSearchElement.input.value,!0)+")","ig");this.facetSearchElement.highlightCurrentQueryInSearchResults(e)},e.prototype.logAnalyticsEvent=function(){this.categoryFacet.usageAnalytics.logCustomEvent(h.analyticsActionCauseList.categoryFacetSearch,{categoryFacetId:this.categoryFacet.options.id,categoryFacetField:this.categoryFacet.options.field.toString(),categoryFacetTitle:this.categoryFacet.options.title},this.categoryFacet.root)},Object.defineProperty(e.prototype,"shouldPositionSearchResults",{get:function(){var e=this.facetSearchElement.searchResults;return e&&!e.parentElement},enumerable:!0,configurable:!0}),e}();t.CategoryFacetSearch=y},function(e,t){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=n(12),r=n(17),s=n(6),a=n(0),u=function(){function e(e,t,n){this.categoryFacet=e,this.onClickHandler=t,this.categoryValueDescriptor=n}return e.prototype.build=function(){var e=this,t=i.$$("span",{className:"coveo-facet-breadcrumb-clear"},o.SVGIcons.icons.mainClear),n=a.without.apply(void 0,[this.categoryValueDescriptor.path].concat(this.categoryFacet.options.basePath)),u=n.map(function(t){return e.categoryFacet.getCaption(t)}).join("/"),l=i.$$("span",{className:"coveo-category-facet-breadcrumb-title"},this.categoryFacet.options.title+":"),c=i.$$("span",{className:"coveo-category-facet-breadcrumb-values"},u,t);return(new r.AccessibleButton).withElement(c).withLabel(s.l("RemoveFilterOn",u)).withSelectAction(this.onClickHandler).build(),i.$$("span",{className:"coveo-category-facet-breadcrumb"},l,c).el},e}();t.CategoryFacetBreadcrumb=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(91),o=n(11),r=n(0),s=n(9),a=(function(){function e(){}}(),function(){function e(e){var t=this;this.categoryFacet=e,this.categoryFacet.bind.onRootElement(o.QueryEvents.buildingQuery,function(e){return t.handleBuildingQuery(e)}),this.categoryFacet.bind.onRootElement(o.QueryEvents.querySuccess,function(e){t.handleQuerySuccess(e)})}return e.prototype.handleBuildingQuery=function(e){var t=e.queryBuilder.groupByRequests.length;if(0==this.categoryFacet.activePath.length)this.positionInQuery={start:t,end:t+1},this.addGroupByForEmptyPath(e.queryBuilder);else{var n=this.categoryFacet.activePath;this.positionInQuery={start:t,end:t+n.length},this.addGroupByForEachPathElement(e.queryBuilder,n)}},e.prototype.handleQuerySuccess=function(t){var n=this;t.results.groupByResults.slice(this.positionInQuery.start,this.positionInQuery.end).forEach(function(t){return e.analyzeResults(t,n.categoryFacet.options.delimitingCharacter)})},e.prototype.addGroupByForEmptyPath=function(e){e.groupByRequests.push({field:this.categoryFacet.options.field,injectionDepth:this.categoryFacet.options.injectionDepth})},e.prototype.addGroupByForEachPathElement=function(e,t){var n=this;t.forEach(function(t){n.categoryFacet.categoryFacetQueryController.addDebugGroupBy(e,t)})},e.analyzeResults=function(e,t){var n=this,i=new Map,o=[],s=this.buildPathsFromGroupByValues(e.values,t);return s=r.sortBy(s,function(e){return e.length}),s.forEach(function(e){if(1==e.length)n.addFirstNodeToTree(i,e);else{for(var r=!0,s=e.slice(0,-1),a=i,u=0,l=s;u<l.length;u++){var c=l[u];if(!(a=a.get(c))){n.processOrphan(o,e,t),r=!1;break}}r&&n.addValidNodeToTree(a,e)}}),o},e.buildPathsFromGroupByValues=function(e,t){return r.chain(e).pluck("value").map(function(e){return e.split(t)}).sortBy(function(e){return e.length}).value()},e.addFirstNodeToTree=function(e,t){e.set(t[0],new Map)},e.addValidNodeToTree=function(e,t){e.set(t.slice(-1)[0],new Map)},e.processOrphan=function(e,t,n){var i=t.join(n);e.push(i),this.logger.error("Value "+i+" has no parent.")},e.logger=new s.Logger(i.CategoryFacet),e}());t.CategoryFacetDebug=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(91),o=n(1),r=n(6),s=n(12),a=n(15),u=n(17),l=function(){function e(e){this.options=e,this.element=document.createElement("div"),o.$$(this.element).addClass("coveo-facet-header")}return e.prototype.build=function(){var e=this.buildWaitAnimation(),t=o.$$("div",{className:"coveo-category-facet-title",role:"heading","aria-level":"2","aria-label":r.l("FacetTitle",this.options.title)+"."},this.options.title);this.element=o.$$("div",{className:"coveo-category-facet-header"},t).el,o.$$(this.element).append(e);var n=this.buildEraser();return o.$$(this.element).append(n),this.element},e.prototype.buildWaitAnimation=function(){var e=o.$$("div",{className:i.CategoryFacet.WAIT_ELEMENT_CLASS},s.SVGIcons.icons.loading).el;return a.SVGDom.addClassToSVGInContainer(e,"coveo-category-facet-header-wait-animation-svg"),e.style.visibility="hidden",e},e.prototype.buildEraser=function(){var e=this,t=o.$$("div",{className:"coveo-category-facet-header-eraser coveo-facet-header-eraser"},s.SVGIcons.icons.mainClear).el;a.SVGDom.addClassToSVGInContainer(t,"coveo-facet-header-eraser-svg");var n=function(){e.options.categoryFacet.reset(),e.options.categoryFacet.scrollToTop()};return(new u.AccessibleButton).withElement(t).withLabel(r.l("Clear",this.options.title)).withClickAction(n).withEnterKeyboardAction(n).build(),t},e}();t.CategoryFacetHeader=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=function(){function e(){this.seenValues=[]}return e.prototype.getValueForLastPartInPath=function(e){for(var t,n={value:"",numberOfResults:0},i=0,o=e;i<o.length;i++){var r=o[i],s=t?t.children:this.seenValues,a=this.findNodeWithValue(s,r);if(!a)return n;t=a}return t?t.result:n},e.prototype.storeNewValues=function(e){for(var t=this,n=this.seenValues,i=0,o=e.parentValues;i<o.length;i++){var r=o[i];if(!this.findNodeWithValue(n,r.value)){var s={result:r,children:[]};n.push(s)}n=this.findNodeWithValue(n,r.value).children}e.values.filter(function(e){return!t.findNodeWithValue(n,e.value)}).forEach(function(e){return n.push({result:e,children:[]})})},e.prototype.findNodeWithValue=function(e,t){return i.find(e,function(e){return e.result.value===t})},e}();t.CategoryFacetValuesTree=o},function(e,t){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(5),o=n(4),r=n(113),s=n(0),a=function(){function e(e){o.Utils.exists(e)?this.values=s.map(e.values,function(e){return r.FacetValue.createFromGroupByValue(e)}):this.values=[]}return e.prototype.add=function(e){i.Assert.exists(e),i.Assert.check(!this.contains(e.value)),this.values.push(e)},e.prototype.remove=function(e){i.Assert.isNonEmptyString(e),e=e,this.values=s.filter(this.values,function(t){return t.value!=e})},e.prototype.size=function(){return this.values.length},e.prototype.isEmpty=function(){return 0==this.values.length},e.prototype.at=function(e){return i.Assert.isLargerOrEqualsThan(0,e),i.Assert.isSmallerThan(this.values.length,e),this.values[e]},e.prototype.get=function(e){return s.find(this.values,function(t){return t.value.toLowerCase()==e.toLowerCase()})},e.prototype.contains=function(e){return o.Utils.exists(this.get(e))},e.prototype.getAll=function(){return this.values},e.prototype.getSelected=function(){return s.filter(this.values,function(e){return e.selected})},e.prototype.getExcluded=function(){return s.filter(this.values,function(e){return e.excluded})},e.prototype.hasSelectedOrExcludedValues=function(){return 0!=this.getSelected().length||0!=this.getExcluded().length},e.prototype.hasSelectedAndExcludedValues=function(){return 0!=this.getSelected().length&&0!=this.getExcluded().length},e.prototype.hasOnlyExcludedValues=function(){return 0==this.getSelected().length&&0!=this.getExcluded().length},e.prototype.hasOnlySelectedValues=function(){return 0!=this.getSelected().length&&0==this.getExcluded().length},e.prototype.reset=function(){s.each(this.values,function(e){return e.reset()})},e.prototype.importActiveValuesFromOtherList=function(e){var t=this;i.Assert.exists(e),s.each(e.getSelected(),function(e){var n=t.get(e.value);o.Utils.exists(n)?n.selected=!0:t.values.push(e.cloneWithZeroOccurrences())}),s.each(e.getExcluded(),function(e){var n=t.get(e.value);if(o.Utils.exists(n))n.excluded=!0;else if(0!=e.occurrences){var i=e.occurrences,r=e.cloneWithZeroOccurrences();r.occurrences=i,t.values.push(r)}else t.values.push(e.cloneWithZeroOccurrences())})},e.prototype.updateCountsFromNewValues=function(e){i.Assert.exists(e),this.values=s.map(this.values,function(t){var n=e.get(t.value);return o.Utils.exists(n)?(t.updateCountsFromNewValue(n),t):null==t.occurrences?t.cloneWithZeroOccurrences():t})},e.prototype.updateDeltaWithFilteredFacetValues=function(e,t){var n=this;i.Assert.exists(e),s.each(this.values,function(i){var r=e.get(i.value);i.waitingForDelta=!1,o.Utils.exists(r)?i.occurrences-r.occurrences>0?n.hasOnlyExcludedValues()?(i.delta=null,i.occurrences=r.occurrences):i.delta=i.occurrences-r.occurrences:i.delta=null:i.selected||i.excluded||(t&&0==e.values.length?(i.delta=null,i.occurrences=0):i.delta=i.occurrences)})},e.prototype.mergeWithUnfilteredFacetValues=function(e){var t=this;i.Assert.exists(e);var n=[];s.each(e.values,function(e){var i=t.get(e.value);o.Utils.exists(i)?i.occurrences==e.occurrences?n.push(i):n.push(e.cloneWithDelta(e.occurrences,e.occurrences-i.occurrences)):n.push(e.cloneWithDelta(e.occurrences,e.occurrences))});var r=0;s.each(this.values,function(t){var i=e.get(t.value);if(o.Utils.exists(i)){for(var s=0;s<n.length;s++)if(n[s].value==t.value){r=s+1;break}}else(t.selected||t.excluded)&&(n.splice(r,0,t),r++)}),this.values=n},e.prototype.sort=function(e){var t=e.facetValuesOrder,n=e.numberOfValues;this.values=t.reorderValuesIfUsingAlphabeticalSort(this.values),this.sortValuesDependingOnStatus(n),this.values=t.reorderValuesIfUsingCustomSort(this.values)},e.prototype.sortValuesDependingOnStatus=function(e){this.values=s.sortBy(this.values,function(e){return e.selected?1:e.excluded?3:2}),this.ensureExcludedValuesAreDisplayed(e)},e.prototype.ensureExcludedValuesAreDisplayed=function(e){if(null!=e&&e<this.values.length){var t=this.getExcluded().length,n=this.values.splice(this.values.length-t,t);(i=this.values).splice.apply(i,[e-t,0].concat(n))}var i},e}();t.FacetValues=a},function(e,t){},function(e,t,n){"use strict";function i(){o.exportGlobally({MagicBox:{EndOfInputResult:b.EndOfInputResult,ExpressionConstant:r.ExpressionConstant,ExpressionEndOfInput:s.ExpressionEndOfInput,ExpressionFunction:a.ExpressionFunction,ExpressionList:u.ExpressionList,ExpressionOptions:l.ExpressionOptions,ExpressionRef:c.ExpressionRef,ExpressionRegExp:p.ExpressionRegExp,Grammar:d.Grammar,Grammars:h.Grammars,InputManager:f.InputManager,Instance:m.MagicBoxInstance,OptionResult:g.OptionResult,RefResult:v.RefResult,Result:b.Result,SuggestionsManager:S.SuggestionsManager,Utils:y.MagicBoxUtils,create:m.createMagicBox,requestAnimationFrame:m.requestAnimationFrame}})}Object.defineProperty(t,"__esModule",{value:!0});var o=n(3),r=n(215),s=n(214),a=n(494),u=n(495),l=n(491),c=n(489),p=n(493),d=n(174),h=n(562),f=n(500),m=n(218),y=n(219),g=n(492),v=n(490),b=n(50),S=n(217);t.GrammarsImportedLocally=h.Grammars,t.doMagicBoxExport=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(128),o=n(504),r=n(497),s=n(505),a=n(216),u=n(496),l=n(498),c=n(499);t.Grammars={Basic:i.Basic,notInWord:i.notInWord,notWordStart:i.notWordStart,Complete:o.Complete,Date:r.Date,Expressions:s.Expressions,ExpressionsGrammar:s.ExpressionsGrammar,Field:a.Field,NestedQuery:u.NestedQuery,QueryExtension:l.QueryExtension,SubExpression:c.SubExpression}},function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))(function(o,r){function s(e){try{u(i.next(e))}catch(e){r(e)}}function a(e){try{u(i.throw(e))}catch(e){r(e)}}function u(e){e.done?o(e.value):new n(function(t){t(e.value)}).then(s,a)}u((i=i.apply(e,t||[])).next())})},o=this&&this.__generator||function(e,t){function n(e){return function(t){return i([e,t])}}function i(n){if(o)throw new TypeError("Generator is already executing.");for(;u;)try{if(o=1,r&&(s=r[2&n[0]?"return":n[0]?"throw":"next"])&&!(s=s.call(r,n[1])).done)return s;switch(r=0,s&&(n=[0,s.value]),n[0]){case 0:case 1:s=n;break;case 4:return u.label++,{value:n[1],done:!1};case 5:u.label++,r=n[1],n=[0];continue;case 7:n=u.ops.pop(),u.trys.pop();continue;default:if(s=u.trys,!(s=s.length>0&&s[s.length-1])&&(6===n[0]||2===n[0])){u=0;continue}if(3===n[0]&&(!s||n[1]>s[0]&&n[1]<s[3])){u.label=n[1];break}if(6===n[0]&&u.label<s[1]){u.label=s[1],s=n;break}if(s&&u.label<s[2]){u.label=s[2],u.ops.push(n);break}s[2]&&u.ops.pop(),u.trys.pop();continue}n=t.call(e,u)}catch(e){n=[6,e],r=0}finally{o=s=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}var o,r,s,a,u={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return a={next:n(0),throw:n(1),return:n(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a};Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),s=n(6),a=n(0),u=n(7),l=n(217),c=n(506),p=n(501),d=n(4),h=function(){function e(e,t){void 0===t&&(t={}),this.element=e,this.options=a.defaults(t,{previewHeaderText:s.l("QuerySuggestPreview"),previewHeaderFieldText:s.l("QuerySuggestPreviewWithField"),previewClass:"coveo-preview-selectable",selectedClass:"magic-box-selected"}),this.root=u.Component.resolveRoot(e),this.previewsProcessor=new p.QueryProcessor({timeout:this.options.timeout})}return Object.defineProperty(e.prototype,"previewsOwner",{get:function(){return this.lastDisplayedSuggestion},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasPreviews",{get:function(){return!!this.suggestionsPreviewContainer},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"focusedPreviewElement",{get:function(){if(!this.hasPreviews)return null;var e=this.suggestionsPreviewContainer.findClass(this.options.selectedClass)[0];return e&&e.classList.contains(this.options.previewClass)?e:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"previewElements",{get:function(){return this.hasPreviews?this.suggestionsPreviewContainer.findClass(this.options.previewClass):[]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"suggestionsListbox",{get:function(){return r.$$(r.$$(this.element).findClass("coveo-magicbox-suggestions")[0])},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"numberOfResultsPerRow",{get:function(){var e=this.suggestionsPreviewContainer.findClass(this.options.previewClass);if(0===e.length)return 0;var t=e[0].offsetTop,n=a.findIndex(e,function(e){return e.offsetTop!==t});return-1!==n?n:e.length},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"previewContainerId",{get:function(){return"coveo-previews-for-"+this.lastDisplayedSuggestion.dom.id},enumerable:!0,configurable:!0}),e.prototype.displaySearchResultPreviewsForSuggestion=function(e){return i(this,void 0,void 0,function(){var t,n,i,r,s,a,u;return o(this,function(o){switch(o.label){case 0:return t=this.getExternalOptions(),n=this.lastDelay=d.Utils.resolveAfter(d.Utils.isNullOrUndefined(t.displayAfterDuration)?200:t.displayAfterDuration),[4,n];case 1:return o.sent(),n!==this.lastDelay?[2]:(i=e&&this.lastQueriedSuggestion===e)?[2]:(r=this.lastDisplayedSuggestion===e)?(this.previewsProcessor.overrideIfProcessing(),this.lastQueriedSuggestion=null,[2]):(this.lastQueriedSuggestion=e,e?[4,this.getSearchResultPreviewsQuery(e)]:(this.displaySuggestionPreviews(null,[]),[2]));case 2:return s=o.sent(),(a=s.status,u=s.results,a===p.ProcessingStatus.Overriden)?[2]:(this.lastQueriedSuggestion=null,this.displaySuggestionPreviews(e,u),[2])}})})},e.prototype.getElementInDirection=function(e){var t=this.previewElements,n=t.indexOf(this.focusedPreviewElement);return-1===n?null:0===n&&e===l.Direction.Left?null:t[(n+this.getIncrementInDirection(e))%t.length]},e.prototype.getIncrementInDirection=function(e){switch(e){case l.Direction.Left:return-1;case l.Direction.Right:return 1;case l.Direction.Up:return-this.numberOfResultsPerRow;case l.Direction.Down:return this.numberOfResultsPerRow}},e.prototype.setHasPreviews=function(e){this.hasPreviews!==!!e&&(e?this.initPreviewForSuggestions():this.revertPreviewForSuggestions())},e.prototype.initPreviewForSuggestions=function(){this.suggestionsPreviewContainer=r.$$("div",{className:"coveo-suggestion-container"},this.suggestionsListbox.el,this.buildPreviewContainer()),this.element.appendChild(this.suggestionsPreviewContainer.el),this.suggestionsListbox.setAttribute("aria-controls",this.previewContainerId)},e.prototype.revertPreviewForSuggestions=function(){this.element.appendChild(this.suggestionsListbox.el),this.suggestionsPreviewContainer.remove(),this.suggestionsPreviewContainer=null},e.prototype.buildPreviewContainer=function(){return r.$$("div",{className:"coveo-preview-container",id:this.previewContainerId},this.resultPreviewsContainer=r.$$("div",{className:"coveo-preview-results",role:"listbox","aria-orientation":"horizontal"})).el},e.prototype.getExternalOptions=function(){var e={};return r.$$(this.root).trigger(c.ResultPreviewsManagerEvents.updateResultPreviewsManagerOptions,e),e},e.prototype.getSearchResultPreviewsQuery=function(e){var t={suggestion:e,previewsQueries:[]};return r.$$(this.root).trigger(c.ResultPreviewsManagerEvents.populateSearchResultPreviews,t),this.previewsProcessor.processQueries(t.previewsQueries)},e.prototype.appendSearchResultPreview=function(e,t){this.resultPreviewsContainer.append(e.element),e.element.id="coveo-result-preview-"+t;var n=r.$$(e.element);n.setAttribute("aria-selected","false"),n.setAttribute("role","option"),n.on("click",function(){return e.onSelect()}),n.on("keyboardSelect",function(){return e.onSelect()})},e.prototype.appendSearchResultPreviews=function(e){var t=this;this.resultPreviewsContainer.empty(),e.forEach(function(e,n){return t.appendSearchResultPreview(e,n)})},e.prototype.displaySuggestionPreviews=function(e,t){this.lastDisplayedSuggestion=e,this.setHasPreviews(t&&t.length>0),this.element.classList.toggle("magic-box-hasPreviews",this.hasPreviews),this.hasPreviews&&this.appendSearchResultPreviews(t)},e}();t.ResultPreviewsManager=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=n(6),r=n(17),s=function(){function e(e){this.element=i.$$("div",{className:"magic-box-clear"});var t=i.$$("div",{className:"magic-box-icon"});this.element.append(t.el),this.element.insertAfter(i.$$(e.element).find("input")),(new r.AccessibleButton).withElement(this.element).withLabel(o.l("Clear")).withSelectAction(function(){return e.clear()}).build(),this.toggleTabindexAndAriaHidden(!1)}return e.prototype.toggleTabindexAndAriaHidden=function(e){var t=e?"0":"-1";this.element.setAttribute("tabindex",t),this.element.setAttribute("aria-hidden",""+!e)},e}();t.MagicBoxClear=s},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(6),o=n(12),r=n(1),s=n(502),a=n(15),u=function(){function e(e){this.options=e,this.create()}return e.prototype.create=function(){var e=this,t=r.$$("div");this.button=new s.DynamicFacetHeaderButton({label:i.l("CollapseFacet",this.options.title),iconSVG:o.SVGIcons.icons.arrowUp,iconClassName:"coveo-dynamic-facet-collapse-toggle-svg",className:"coveo-dynamic-facet-header-collapse",shouldDisplay:!0,action:function(){return e.options.toggleCollapse()}}),t.append(this.button.element),this.element=t.el},e.prototype.toggleButton=function(e){var t=r.$$(this.button.element),n=e?i.l("ExpandFacet",this.options.title):i.l("CollapseFacet",this.options.title),s=e?o.SVGIcons.icons.arrowDown:o.SVGIcons.icons.arrowUp;t.setAttribute("aria-label",n),t.setAttribute("title",n),t.setAttribute("aria-expanded",(!e).toString()),t.toggleClass("coveo-dynamic-facet-header-expand",e),t.toggleClass("coveo-dynamic-facet-header-collapse",!e),t.setHtml(s),a.SVGDom.addClassToSVGInContainer(t.el,"coveo-dynamic-facet-collapse-toggle-svg")},e}();t.DynamicFacetHeaderCollapseToggle=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(55),o=n(1),r=n(25),s=n(4),a=function(){function e(e){this.combobox=e,this.inputOptions={usePlaceholder:!0,className:"coveo-combobox-input",triggerOnChangeAsYouType:!0,isRequired:!1,icon:"search"},this.create(),this.element=this.textInput.getElement(),this.inputElement=o.$$(this.element).find("input"),this.addEventListeners(),this.addAccessibilityAttributes()}return Object.defineProperty(e.prototype,"value",{get:function(){return this.inputElement.value},enumerable:!0,configurable:!0}),e.prototype.create=function(){var e=this;this.textInput=new i.TextInput(function(t){return e.combobox.onInputChange(t.getValue())},this.combobox.options.placeholderText,this.inputOptions)},e.prototype.addEventListeners=function(){var e=this;this.combobox.options.clearOnBlur||this.inputElement.addEventListener("focus",function(){return e.combobox.onInputChange(e.textInput.getValue())}),this.combobox.element.addEventListener("focusout",function(t){return e.handleFocusOut(t)}),this.combobox.element.addEventListener("keydown",function(t){return e.handleKeyboardDirection(t)}),this.combobox.element.addEventListener("keyup",function(t){return e.handleKeyboardEnterEscape(t)})},e.prototype.addAccessibilityAttributes=function(){var e=this.combobox.id+"-listbox";this.inputElement.setAttribute("role","combobox"),this.inputElement.setAttribute("aria-owns",e),this.inputElement.setAttribute("aria-haspopup","listbox"),this.inputElement.setAttribute("aria-autocomplete","list"),this.inputElement.setAttribute("id",this.combobox.id+"-input"),this.inputElement.setAttribute("aria-label",this.combobox.options.label),this.updateAccessibilityAttributes({activeDescendant:"",expanded:!1})},e.prototype.updateAccessibilityAttributes=function(e){this.inputElement.setAttribute("aria-expanded",e.expanded?"true":"false"),s.Utils.isEmptyString(e.activeDescendant)?this.inputElement.removeAttribute("aria-activedescendant"):this.inputElement.setAttribute("aria-activedescendant",e.activeDescendant)},e.prototype.clearInput=function(){this.textInput.reset()},e.prototype.handleFocusOut=function(e){var t=e.relatedTarget;if(!this.combobox.element.contains(t)){if(o.$$(this.combobox.element).find(".coveo-combobox-values:hover"))return void this.inputElement.focus();this.combobox.onInputBlur()}},e.prototype.handleKeyboardDirection=function(e){switch(e.which){case r.KEYBOARD.DOWN_ARROW:e.preventDefault(),this.combobox.values.focusNextValue();break;case r.KEYBOARD.UP_ARROW:e.preventDefault(),this.combobox.values.focusPreviousValue();break;case r.KEYBOARD.HOME:e.preventDefault(),this.combobox.values.focusFirstValue();break;case r.KEYBOARD.END:e.preventDefault(),this.combobox.values.focusLastValue()}},e.prototype.handleKeyboardEnterEscape=function(e){switch(e.which){case r.KEYBOARD.ENTER:this.combobox.values.selectActiveValue();break;case r.KEYBOARD.ESCAPE:s.Utils.isNonEmptyString(this.textInput.getValue())&&e.stopPropagation(),this.combobox.clearAll()}},e}();t.ComboboxInput=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=n(0),r=n(6),s=n(0),a=function(){function e(e){var t=this;this.combobox=e,this.mouseIsOverValue=!1,this.isRenderingNewValues=!1,this.values=[],this.element=i.$$("ul",{id:this.combobox.id+"-listbox",role:"listbox",className:"coveo-combobox-values",ariaLabelledby:this.combobox.id+"-input"}).el,i.$$(this.element).hide(),this.isScrollable=!!this.combobox.options.scrollable,this.isScrollable&&this.element.addEventListener("scroll",function(){return t.onScroll()})}return e.prototype.renderFromResponse=function(e){this.isRenderingNewValues=!0,this.clearValues(),this.values=this.combobox.options.createValuesFromResponse(e),this.render(),this.combobox.updateAriaLive(),this.isRenderingNewValues=!1},e.prototype.render=function(){if(i.$$(this.element).show(),!this.hasValues())return this.renderNoValuesFound();this.renderValues(),this.addEventListeners(),this.updateAccessibilityAttributes()},e.prototype.renderValues=function(){var e=this,t=document.createDocumentFragment();this.values.forEach(function(n,o){var r=i.$$("li",{id:e.combobox.id+"-value-"+o,className:"coveo-combobox-value",role:"option",tabindex:0},n.element).el;e.highlightCurrentQueryInSearchResults(n.element),n.element=r,t.appendChild(n.element)}),this.element.appendChild(t)},e.prototype.highlightCurrentQueryInSearchResults=function(e){if(this.combobox.options.highlightValueClassName){var t=new RegExp("("+this.combobox.element.querySelector("input").value+")","ig"),n=i.$$(e).hasClass(this.combobox.options.highlightValueClassName)?e:i.$$(e).find("."+this.combobox.options.highlightValueClassName);if(n){var o=s.escape(i.$$(n).text());n.innerHTML=o.replace(t,'<span class="coveo-highlight">$1</span>')}}},e.prototype.hasValues=function(){return!!this.numberOfValues},Object.defineProperty(e.prototype,"numberOfValues",{get:function(){return this.values.length},enumerable:!0,configurable:!0}),e.prototype.renderNoValuesFound=function(){var e=i.$$("li",{role:"option",className:"coveo-combobox-value-not-found"},r.l("NoValuesFound")).el;this.element.appendChild(e)},e.prototype.addEventListeners=function(){var e=this;this.values.forEach(function(t){i.$$(t.element).on("mouseenter",function(){return e.mouseIsOverValue=!0}),i.$$(t.element).on("mouseleave",function(){return e.mouseIsOverValue=!1}),i.$$(t.element).on("click",function(t){return e.onValueClick(t)}),i.$$(t.element).on("focus",function(){return e.setKeyboardActiveValue(t)})})},e.prototype.onValueClick=function(e){var t=e.target,n=i.$$(t).hasClass("coveo-combobox-value")?t:i.$$(t).parent("coveo-combobox-value");if(n){var r=n.getAttribute("id"),s=o.find(this.values,function(e){return e.element.getAttribute("id")===r});s&&this.combobox.options.onSelectValue(s),this.combobox.clearAll()}},e.prototype.updateAccessibilityAttributes=function(){var e=this.keyboardActiveValue?this.keyboardActiveValue.element.getAttribute("id"):"";this.combobox.updateAccessibilityAttributes({activeDescendant:e,expanded:this.hasValues()})},e.prototype.clearValues=function(){this.mouseIsOverValue=!1,this.resetKeyboardActiveValue(),i.$$(this.element).empty(),i.$$(this.element).hide(),this.values=[],this.updateAccessibilityAttributes()},e.prototype.setKeyboardActiveValue=function(e){this.resetKeyboardActiveValue(),this.keyboardActiveValue=e,this.activateFocusOnValue(this.keyboardActiveValue),this.updateAccessibilityAttributes()},e.prototype.resetKeyboardActiveValue=function(){this.keyboardActiveValue&&(this.deactivateFocusOnValue(this.keyboardActiveValue),this.keyboardActiveValue=null)},e.prototype.activateFocusOnValue=function(e){var t=e.element;i.$$(t).addClass("coveo-focused"),t.setAttribute("aria-selected","true")},e.prototype.deactivateFocusOnValue=function(e){var t=e.element;i.$$(t).removeClass("coveo-focused"),t.setAttribute("aria-selected","false")},e.prototype.selectActiveValue=function(){this.keyboardActiveValue&&(this.combobox.options.onSelectValue(this.keyboardActiveValue),this.combobox.clearAll())},e.prototype.onScroll=function(){this.element.scrollTop+this.element.clientHeight>=this.element.scrollHeight&&this.combobox.options.scrollable.areMoreValuesAvailable()&&this.combobox.onScrollEndReached()},e.prototype.resetScroll=function(){this.isScrollable&&(this.element.style.maxHeight=this.combobox.options.scrollable.maxDropdownHeight+"px",this.element.scrollTop=0)},e.prototype.focusFirstValue=function(){this.hasValues()&&this.firstValue.element.focus()},e.prototype.focusLastValue=function(){this.hasValues()&&this.lastValue.element.focus()},e.prototype.focusNextValue=function(){if(this.hasValues()){this.nextOrFirstValue.element.focus()}},e.prototype.focusPreviousValue=function(){if(this.hasValues()){this.previousOrLastValue.element.focus()}},Object.defineProperty(e.prototype,"nextOrFirstValue",{get:function(){if(!this.keyboardActiveValue)return this.firstValue;var e=(this.values.indexOf(this.keyboardActiveValue)+1)%this.numberOfValues;return this.values[e]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"firstValue",{get:function(){return this.values[0]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"previousOrLastValue",{get:function(){if(!this.keyboardActiveValue)return this.lastValue;var e=this.values.indexOf(this.keyboardActiveValue)-1;return e>=0?this.values[e]:this.values[this.numberOfValues-1]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"lastValue",{get:function(){var e=this.numberOfValues-1;return this.values[e]},enumerable:!0,configurable:!0}),e.prototype.saveFocusedValue=function(){if(!this.keyboardActiveValue)return void(this.focusedValueId=null);this.focusedValueId=this.keyboardActiveValue.element.id},e.prototype.restoreFocusedValue=function(){if(this.focusedValueId){i.$$(this.element).find("#"+this.focusedValueId).focus(),this.focusedValueId=null}},e}();t.ComboboxValues=a},function(e,t){},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=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])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n(213),r=n(4),s=function(e){function t(t){var n=e.call(this,t)||this;return n.facet=t,n}return i(t,e),t.prototype.createBasicGroupByRequest=function(t,n){void 0===n&&(n=!0);var i=e.prototype.createBasicGroupByRequest.call(this,null,n);return i.allowedValues=void 0,i=r.Utils.isNonEmptyArray(this.facet.options.ranges)?this.buildGroupByQueryForPredefinedRanges(i):this.buildGroupByQueryForAutomaticRanges(i)},t.prototype.createGroupByAllowedValues=function(){},t.prototype.buildGroupByQueryForAutomaticRanges=function(e){return e.generateAutomaticRanges=!0,e},t.prototype.buildGroupByQueryForPredefinedRanges=function(e){return e.rangeValues=this.facet.options.ranges,e.maximumNumberOfValues=this.facet.options.ranges.length,e},t}(o.FacetQueryController);t.FacetRangeQueryController=s},function(e,t){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(34),o=n(0),r=n(219),s=function(){function e(e){var t=this;this.omnibox=e,this.cache={},this.omnibox.bind.on(this.omnibox.element,i.OmniboxEvents.populateOmniboxSuggestions,function(e){e.suggestions.push(t.getSuggestion())})}return e.prototype.getSuggestion=function(){var e=this,t=this.getHash();if(null==t)return null;var n=this.hashToString(t);if(null!=this.cache[n])return this.hashValueToSuggestion(t,this.cache[n]);var i;return"FieldName"==t.type&&(i=this.fieldNames(t.current)),"FieldValue"==t.type&&(i=this.fieldValues(t.field,t.current)),"SimpleFieldName"==t.type&&(i=this.simpleFieldNames(t.current)),this.cache[n]=i,i.catch(function(){delete e.cache[n]}),this.hashValueToSuggestion(t,i)},e.prototype.getHash=function(){var e=o.last(this.omnibox.resultAtCursor("FieldName"));if(null!=e){e=e.findParent("Field")||e;var t=e.toString(),n=e.before(),i=e.after();return{type:"FieldName",current:t,before:n,after:i}}var r=o.last(this.omnibox.resultAtCursor("FieldValue"));if(r){var s=r.findParent("FieldQuery")||this.omnibox.options.enableSimpleFieldAddon&&r.findParent("FieldSimpleQuery");if(s){var a=s.find("FieldName").toString();this.omnibox.options.fieldAlias&&a in this.omnibox.options.fieldAlias&&(a=this.omnibox.options.fieldAlias[a]);var u=r.toString(),n=r.before(),i=r.after();return{type:"FieldValue",field:a,current:u,before:n,after:i}}}if(this.omnibox.options.enableSimpleFieldAddon){var l=o.last(this.omnibox.resultAtCursor("Word"));if(null!=l){var c=l.toString(),n=l.before(),i=l.after();return{type:"SimpleFieldName",current:c,before:n,after:i}}}},e.prototype.hashToString=function(e){return null==e?null:e.type+e.current+(e.field||"")},e.prototype.hashValueToSuggestion=function(t,n){return n.then(function(n){return o.map(n,function(i,o){return{text:t.before+(0==t.current.toLowerCase().indexOf(i.toLowerCase())?t.current+i.substr(t.current.length):i)+t.after,html:r.MagicBoxUtils.highlightText(i,t.current,!0),index:e.INDEX-o/n.length}})})},e.prototype.getFields=function(){var e=this;return null==this.fields&&(this.fields=new Promise(function(t,n){if(null!=e.omnibox.options.listOfFields)t(e.omnibox.options.listOfFields);else{e.omnibox.queryController.getEndpoint().listFields().then(function(e){var n=o.chain(e).filter(function(e){return e.includeInQuery&&e.groupByField}).map(function(e){return e.name.substr(1)}).value();t(n)}).catch(function(){n()})}})),this.fields},e.prototype.fieldNames=function(e){var t=e.length>0&&"@"==e[0],n=t?e.substr(1):e,i=n.toLowerCase();return this.getFields().then(function(t){var n=o.chain(t).map(function(e){var t=e.length>0&&"@"==e[0];return{index:e.toLowerCase().indexOf(i),field:t?e:"@"+e}}).filter(function(t){return-1!=t.index&&t.field.length>e.length}).sortBy("index").map(function(e){return e.field}).value();return n=o.first(n,5)})},e.prototype.fieldValues=function(e,t){return this.omnibox.queryController.getEndpoint().listFieldValues({pattern:".*"+t+".*",patternType:"RegularExpression",sortCriteria:"occurrences",field:"@"+e,maximumNumberOfValues:5}).then(function(e){return o.chain(e).map(function(e){return{index:e.value.toLowerCase().indexOf(t),value:e.value}}).filter(function(e){return e.value.length>t.length}).sortBy("index").map(function(e){return e.value.replace(/ /g," ")}).value()})},e.prototype.simpleFieldNames=function(e){var t=e,n=t.toLowerCase();return this.getFields().then(function(t){var i=o.chain(t).map(function(e){return{index:e.toLowerCase().indexOf(n),field:e+":"}}).filter(function(t){return-1!=t.index&&t.field.length>e.length}).sortBy("index").map(function(e){return e.field}).value();return i=o.first(i,5)})},e.INDEX=64,e}();t.FieldAddon=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(34),o=n(1),r=n(4),s=n(0),a=function(){function e(e){var t=this;this.omnibox=e,this.omnibox.bind.on(this.omnibox.element,i.OmniboxEvents.populateOmniboxSuggestions,function(e){s.each(t.getSuggestion(),function(t){e.suggestions.push(t)})})}return e.prototype.getSuggestion=function(){if(0==this.omnibox.magicBox.getText().length)return null;var e=this.buildPopulateOmniboxEventArgs();return o.$$(this.omnibox.root).trigger(i.OmniboxEvents.populateOmnibox,e),this.rowsToSuggestions(e.rows)},e.prototype.getCurrentQueryExpression=function(){var e=this.omnibox.getCursor(),t=this.omnibox.getText(),n=t.length,i=e,o=e;for(" "==t[i]&&i--;i>0&&" "!=t[i];)i--;for(;o<n&&" "!=t[o];)o++;return t.substring(i,o)},e.prototype.getRegexToSearch=function(e){return null==e&&(e=this.omnibox.getText()),new RegExp(r.Utils.escapeRegexCharacter(e),"i")},e.prototype.getQueryExpressionBreakDown=function(){var e=this,t=[],n=this.omnibox.getText().split(" ");return s.each(n,function(n){t.push({word:n,regex:e.getRegexToSearch(n)})}),t},e.prototype.replace=function(e,t){this.omnibox.setText(this.omnibox.getText().replace(e,t))},e.prototype.clearCurrentExpression=function(){this.replace(this.getCurrentQueryExpression(),"")},e.prototype.insertAt=function(e,t){var n=this.omnibox.getText(),i=[n.slice(0,e),t,n.slice(e)].join("");this.omnibox.setText(i)},e.prototype.replaceCurrentExpression=function(e){this.replace(this.getCurrentQueryExpression(),e)},e.prototype.buildPopulateOmniboxEventArgs=function(){var e=this,t=this.getCurrentQueryExpression();return{rows:[],completeQueryExpression:{word:this.omnibox.getText(),regex:this.getRegexToSearch()},currentQueryExpression:{word:t,regex:this.getRegexToSearch(t)},allQueryExpressions:this.getQueryExpressionBreakDown(),cursorPosition:this.omnibox.getCursor(),clear:function(){e.omnibox.clear()},clearCurrentExpression:function(){e.clearCurrentExpression()},replace:function(t,n){e.replace(t,n)},replaceCurrentExpression:function(t){e.replaceCurrentExpression(t)},insertAt:function(t,n){e.insertAt(t,n)},closeOmnibox:function(){e.omnibox.magicBox.blur()}}},e.prototype.rowsToSuggestions=function(e){return s.map(e,function(e){return r.Utils.isNullOrUndefined(e.element)?r.Utils.isNullOrUndefined(e.deferred)?null:new Promise(function(t){e.deferred.then(function(e){t(null!=e.element?[{dom:e.element,index:e.zIndex}]:null)})}):new Promise(function(t){t([{dom:e.element,index:e.zIndex}])})})},e}();t.OldOmniboxAddon=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(34),o=n(0),r=n(219),s=function(){function e(e){var t=this;this.omnibox=e,this.cache={},this.omnibox.bind.on(this.omnibox.element,i.OmniboxEvents.populateOmniboxSuggestions,function(e){e.suggestions.push(t.getSuggestion())})}return e.prototype.getSuggestion=function(){var e=this,t=this.getHash(this.omnibox.magicBox);if(null==t)return null;var n=this.hashToString(t);if(null!=this.cache[n])return this.hashValueToSuggestion(t,this.cache[n]);var i="QueryExtensionName"==t.type?this.names(t.current):this.attributeNames(t.name,t.current,t.used);return this.cache[n]=i,i.catch(function(){delete e.cache[n]}),this.hashValueToSuggestion(t,i)},e.prototype.getHash=function(e){var t=o.last(e.resultAtCursor("QueryExtension"));if(null!=t){var n=t.findAll("QueryExtensionArgument"),i=o.last(e.resultAtCursor("QueryExtensionName"));if(null!=i)return{type:"QueryExtensionName",current:i.toString(),before:i.before(),after:i.after()};if(null!=(i=o.last(e.resultAtCursor("QueryExtensionArgumentName")))){var r=o.chain(n).map(function(e){var t=e.find("QueryExtensionArgumentName");return t&&t.toString()}).compact().value(),s=t.find("QueryExtensionName").toString();return{type:"QueryExtensionArgumentName",current:i.toString(),before:i.before(),after:i.after(),name:s,used:r}}}return null},e.prototype.hashToString=function(e){return null==e?null:[e.type,e.current,e.name||"",e.used?e.used.join():""].join()},e.prototype.hashValueToSuggestion=function(t,n){return n.then(function(n){return o.map(n,function(i,o){return{html:r.MagicBoxUtils.highlightText(i,t.current,!0),text:t.before+i+t.after,index:e.INDEX-o/n.length}})})},e.prototype.getExtensions=function(){return null==this.extensions&&(this.extensions=this.omnibox.queryController.getEndpoint().extensions()),this.extensions},e.prototype.names=function(e){var t=e.toLowerCase();return this.getExtensions().then(function(e){var n=o.chain(e).map(function(e){return{index:e.name.toLowerCase().indexOf(t),extension:e.name}}).filter(function(e){return-1!=e.index&&e.extension.length>t.length}).sortBy("index").pluck("extension").value();return n=o.first(n,5)})},e.prototype.attributeNames=function(e,t,n){return this.getExtensions().then(function(i){var r=o.find(i,function(t){return t.name==e});return null==r?[]:o.filter(o.difference(r.argumentNames,n),function(e){return 0==e.indexOf(t)})})},e.prototype.hash=function(){},e.INDEX=62,e}();t.QueryExtensionAddon=s},function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))(function(o,r){function s(e){try{u(i.next(e))}catch(e){r(e)}}function a(e){try{u(i.throw(e))}catch(e){r(e)}}function u(e){e.done?o(e.value):new n(function(t){t(e.value)}).then(s,a)}u((i=i.apply(e,t||[])).next())})},o=this&&this.__generator||function(e,t){function n(e){return function(t){return i([e,t])}}function i(n){if(o)throw new TypeError("Generator is already executing.");for(;u;)try{if(o=1,r&&(s=r[2&n[0]?"return":n[0]?"throw":"next"])&&!(s=s.call(r,n[1])).done)return s;switch(r=0,s&&(n=[0,s.value]),n[0]){case 0:case 1:s=n;break;case 4:return u.label++,{value:n[1],done:!1};case 5:u.label++,r=n[1],n=[0];continue;case 7:n=u.ops.pop(),u.trys.pop();continue;default:if(s=u.trys,!(s=s.length>0&&s[s.length-1])&&(6===n[0]||2===n[0])){u=0;continue}if(3===n[0]&&(!s||n[1]>s[0]&&n[1]<s[3])){u.label=n[1];break}if(6===n[0]&&u.label<s[1]){u.label=s[1],s=n;break}if(s&&u.label<s[2]){u.label=s[2],u.ops.push(n);break}s[2]&&u.ops.pop(),u.trys.pop();continue}n=t.call(e,u)}catch(e){n=[6,e],r=0}finally{o=s=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}var o,r,s,a,u={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return a={next:n(0),throw:n(1),return:n(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a};Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),s=n(28),a=n(34),u=n(22),l=n(0),c=n(13),p=n(4),d=n(86),h=n(66),f=function(){function e(e){var t=this;this.omnibox=e,r.$$(this.omnibox.element).on(a.OmniboxEvents.populateOmniboxSuggestions,function(e,n){n.suggestions.push(t.getSuggestion())})}return e.suggestiontHtml=function(e){return e.highlighted.replace(/\[(.*?)\]|\{(.*?)\}|\((.*?)\)/g,function(e,t,n,i){var o="";n&&(o="coveo-omnibox-hightlight"),i&&(o="coveo-omnibox-hightlight2");var s;return s=o?r.$$("span",{className:o}):r.$$("span"),s.text(t||n||i),s.el.outerHTML})},e.isPartialMatch=function(e){var t=u.StringUtils.match(e.highlighted,/\[(.*?)\]|\{(.*?)\}|\((.*?)\)/g),n=l.find(t,function(e){return null!=e[1]});return null==n||l.every(l.last(t,l.indexOf(t,n)-t.length),function(e){return null!=e[1]})},e.prototype.getSuggestion=function(){var e=this.omnibox.magicBox.getText();return e.length>=this.omnibox.options.querySuggestCharacterThreshold?this.getQuerySuggest(e):Promise.resolve([])},e.prototype.getQuerySuggest=function(t){return i(this,void 0,void 0,function(){var n,i,s,u;return o(this,function(o){switch(o.label){case 0:n={q:t,locale:this.locale,searchHub:this.searchHub,pipeline:this.pipeline,enableWordCompletion:this.enableWordCompletion,context:this.context,count:this.count,tab:this.tab,referrer:document.referrer,actionsHistory:this.actionsHistory,timezone:this.timezone,visitorId:this.visitorId,isGuestUser:this.isGuestUser},r.$$(this.omnibox.getBindings().searchInterface.element).trigger(a.OmniboxEvents.buildingQuerySuggest,{payload:n}),o.label=1;case 1:return o.trys.push([1,3,,4]),[4,this.omnibox.queryController.getEndpoint().getQuerySuggest(n)];case 2:return i=o.sent(),[3,4];case 3:return s=o.sent(),[2,[]];case 4:return u=i.completions,r.$$(this.omnibox.getBindings().searchInterface.element).trigger(a.OmniboxEvents.querySuggestSuccess,{completions:u}),[2,l.map(u,function(t,n){return{html:e.suggestiontHtml(t),text:t.expression,index:e.INDEX-n/u.length,partial:e.isPartialMatch(t),executableConfidence:t.executableConfidence}})]}})})},Object.defineProperty(e.prototype,"tab",{get:function(){var e=this.omnibox.getBindings().queryStateModel.get(c.QUERY_STATE_ATTRIBUTES.T);if(p.Utils.isNonEmptyString(e))return e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"locale",{get:function(){return String.locale},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"searchHub",{get:function(){return this.omnibox.getBindings().componentOptionsModel.get(s.ComponentOptionsModel.attributesEnum.searchHub)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pipeline",{get:function(){return this.omnibox.getBindings().searchInterface.options.pipeline},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"enableWordCompletion",{get:function(){return this.omnibox.options.enableSearchAsYouType},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"context",{get:function(){return this.omnibox.getBindings().searchInterface.getQueryContext()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"count",{get:function(){return this.omnibox.options.numberOfSuggestions},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"actionsHistory",{get:function(){var e=d.buildHistoryStore(),t=e.getHistory();return null==t?[]:t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"timezone",{get:function(){return this.omnibox.getBindings().searchInterface.options.timezone},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"visitorId",{get:function(){return(new h.AnalyticsInformation).clientId},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isGuestUser",{get:function(){return this.omnibox.getBindings().queryController.getEndpoint().options.isGuestUser},enumerable:!0,configurable:!0}),e.INDEX=60,e}();t.QuerySuggestAddon=f;var m=function(){function e(){}return e.prototype.getSuggestion=function(){return Promise.resolve([])},e}();t.VoidQuerySuggestAddon=m},function(e,t){},function(e,t){},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=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])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n(212),r=n(136),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.init=function(e,n,i){o.ResponsiveFacetColumn.init(t,e,n,i,r.DynamicFacet.ID)},t}(o.ResponsiveFacetColumn);t.ResponsiveDynamicFacets=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n(510);var i=n(1),o=n(6),r=n(12),s=n(10),a=n(0),u=function(){function e(e){this.facet=e,this.create()}return e.prototype.create=function(){this.element=i.$$("ul",{className:"coveo-dynamic-facet-breadcrumb coveo-breadcrumb-item"}).el,this.createAndAppendTitle();var e=this.facet.values.activeValues,t=e.slice(0,this.facet.options.numberOfValuesInBreadcrumb),n=e.slice(this.facet.options.numberOfValuesInBreadcrumb);this.createAndAppendBreadcrumbValues(t),n.length&&this.createAndAppendCollapsedBreadcrumbs(n)},e.prototype.createAndAppendTitle=function(){var e=i.$$("h3",{className:"coveo-dynamic-facet-breadcrumb-title"},this.facet.options.title+":").el;this.element.appendChild(e)},e.prototype.createAndAppendBreadcrumbValues=function(e){var t=this;e.forEach(function(e){return t.createAndAppendBreadcrumbValue(e)})},e.prototype.createAndAppendBreadcrumbValue=function(e){var t=this,n=i.$$("li",{className:"coveo-dynamic-facet-breadcrumb-value-list-item"}).el,s=i.$$("button",{className:"coveo-dynamic-facet-breadcrumb-value",ariaLabel:o.l("RemoveFilterOn",e.displayValue)},a.escape(e.displayValue)).el,u=i.$$("span",{className:"coveo-dynamic-facet-breadcrumb-value-clear"},r.SVGIcons.icons.mainClear).el;s.appendChild(u),i.$$(s).on("click",function(){return t.valueSelectAction(e)}),n.appendChild(s),this.element.appendChild(n)},e.prototype.valueSelectAction=function(e){var t=this;this.facet.deselectValue(e.value),this.facet.enablePreventAutoSelectionFlag(),this.facet.triggerNewQuery(function(){return t.logActionToAnalytics()})},e.prototype.logActionToAnalytics=function(){this.facet.logAnalyticsEvent(s.analyticsActionCauseList.breadcrumbFacet,this.facet.basicAnalyticsFacetMeta)},e.prototype.createAndAppendCollapsedBreadcrumbs=function(e){var t=this,n=o.l("NMore",""+e.length),r=e.map(function(e){return e.value}).join("\n"),s=i.$$("button",{className:"coveo-dynamic-facet-breadcrumb-collapse",title:r},n).el;i.$$(s).on("click",function(){i.$$(s).remove(),t.createAndAppendBreadcrumbValues(e)}),this.element.appendChild(s)},e}();t.DynamicFacetBreadcrumbs=u},function(e,t){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(512),o=n(6),r=n(584),s=n(223),a=n(71),u=n(585);n(513);var l=n(40),c=function(){function e(e){var t=this;this.facet=e,this.facetSearchController=new r.FacetSearchController(this.facet),this.combobox=new i.Combobox({label:o.l("SearchFacetResults",this.facet.options.title),ariaLive:this.facet.searchInterface.ariaLive,requestValues:function(e){return t.facetSearchController.search(e)},createValuesFromResponse:function(e){return t.createValuesFromResponse(e)},onSelectValue:this.onSelectValue,placeholderText:o.l("Search"),wrapperClassName:"coveo-dynamic-facet-search",clearOnBlur:!0,scrollable:{requestMoreValues:function(){return t.facetSearchController.fetchMoreResults()},areMoreValuesAvailable:function(){return t.facetSearchController.moreValuesAvailable},maxDropdownHeight:250},highlightValueClassName:"coveo-checkbox-span-label"}),this.element=this.combobox.element}return e.prototype.getDisplayValue=function(e){return l.FacetUtils.getDisplayValueFromValueCaption(e,this.facet.options.field,this.facet.options.valueCaption)},e.prototype.createValuesFromResponse=function(e){var t=this;return e.values.map(function(e,n){var i=new s.DynamicFacetValue({value:e.rawValue,displayValue:t.getDisplayValue(e.displayValue),numberOfResults:e.count,state:a.FacetValueState.idle,position:n+1},t.facet,u.DynamicFacetSearchValueRenderer);return{value:i,element:i.renderedElement}})},e.prototype.onSelectValue=function(e){e.value.renderer.selectAction()},e}();t.DynamicFacetSearch=c},function(e,t,n){"use strict";var i=this&&this.__assign||Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},o=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))(function(o,r){function s(e){try{u(i.next(e))}catch(e){r(e)}}function a(e){try{u(i.throw(e))}catch(e){r(e)}}function u(e){e.done?o(e.value):new n(function(t){t(e.value)}).then(s,a)}u((i=i.apply(e,t||[])).next())})},r=this&&this.__generator||function(e,t){function n(e){return function(t){return i([e,t])}}function i(n){if(o)throw new TypeError("Generator is already executing.");for(;u;)try{if(o=1,r&&(s=r[2&n[0]?"return":n[0]?"throw":"next"])&&!(s=s.call(r,n[1])).done)return s;switch(r=0,s&&(n=[0,s.value]),n[0]){case 0:case 1:s=n;break;case 4:return u.label++,{value:n[1],done:!1};case 5:u.label++,r=n[1],n=[0];continue;case 7:n=u.ops.pop(),u.trys.pop();continue;default:if(s=u.trys,!(s=s.length>0&&s[s.length-1])&&(6===n[0]||2===n[0])){u=0;continue}if(3===n[0]&&(!s||n[1]>s[0]&&n[1]<s[3])){u.label=n[1];break}if(6===n[0]&&u.label<s[1]){u.label=s[1],s=n;break}if(s&&u.label<s[2]){u.label=s[2],u.ops.push(n);break}s[2]&&u.ops.pop(),u.trys.pop();continue}n=t.call(e,u)}catch(e){n=[6,e],r=0}finally{o=s=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}var o,r,s,a,u={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return a={next:n(0),throw:n(1),return:n(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a};Object.defineProperty(t,"__esModule",{value:!0});var s=n(115),a=n(21),u=n(33),l=function(){function e(e){this.facet=e,this.terms="",this.pageCount=1,this.numberOfValuesMultiplier=3,this.moreValuesAvailable=!0}return e.prototype.getMonthsValueCaptions=function(){for(var e={},t=1;t<=12;t++){e[("0"+t).substr(-2)]=u.DateUtils.monthToString(t-1)}return e},e.prototype.addTypesCaptionsIfNecessary=function(){var e=this.facet.options.field.toLowerCase(),t=a.QueryUtils.isStratusAgnosticField(e,"@filetype"),n=a.QueryUtils.isStratusAgnosticField(e,"@objecttype"),i=a.QueryUtils.isStratusAgnosticField(e,"@month");return t||n?s.FileTypes.getFileTypeCaptions():i?this.getMonthsValueCaptions():{}},Object.defineProperty(e.prototype,"captions",{get:function(){return i({},this.addTypesCaptionsIfNecessary(),this.facet.options.valueCaption)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"numberOfValues",{get:function(){return this.facet.options.numberOfValues*this.numberOfValuesMultiplier*this.pageCount},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"request",{get:function(){var e=this.facet.options.useLeadingWildcardInFacetSearch?"*":"";return{field:this.facet.fieldName,numberOfValues:this.numberOfValues,ignoreValues:this.facet.values.activeValues.map(function(e){return e.value}),captions:this.captions,searchContext:this.facet.queryController.getLastQuery(),query:""+e+this.terms+"*"}},enumerable:!0,configurable:!0}),e.prototype.triggerRequest=function(){return o(this,void 0,void 0,function(){var e;return r(this,function(t){switch(t.label){case 0:return[4,this.facet.queryController.getEndpoint().facetSearch(this.request)];case 1:return e=t.sent(),this.moreValuesAvailable=e.moreValuesAvailable,[2,e]}})})},e.prototype.search=function(e){return this.terms=e,this.pageCount=1,this.triggerRequest()},e.prototype.fetchMoreResults=function(){return this.pageCount++,this.triggerRequest()},e}();t.FacetSearchController=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=n(514),r=function(){function e(e,t){this.facetValue=e,this.facet=t}return e.prototype.render=function(){return this.dom=i.$$("div",{className:"coveo-dynamic-facet-value",dataValue:this.facetValue.value}),this.renderCheckbox(),this.dom.el},e.prototype.renderCheckbox=function(){this.valueCheckbox=new o.DynamicFacetValueCheckbox(this.facetValue),i.$$(this.valueCheckbox.element).find("button").setAttribute("tabindex","-1"),this.dom.append(this.valueCheckbox.element)},e.prototype.selectAction=function(){var e=this;this.facet.enableFreezeFacetOrderFlag(),this.facet.toggleSelectValue(this.facetValue.value),this.facetValue.select(),this.facet.scrollToTop(),this.facet.triggerNewQuery(function(){return e.facetValue.logSelectActionToAnalytics()})},e}();t.DynamicFacetSearchValueRenderer=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(40),o=n(223),r=n(71),s=n(517),a=function(){function e(e){this.facet=e}return e.prototype.getDisplayValue=function(e){return i.FacetUtils.getDisplayValueFromValueCaption(e,this.facet.options.field,this.facet.options.valueCaption)},e.prototype.getDefaultValues=function(){return[]},e.prototype.createFromResponse=function(e,t){return new o.DynamicFacetValue({value:e.value,displayValue:this.getDisplayValue(e.value),numberOfResults:e.numberOfResults,state:e.state,position:t+1},this.facet,s.DynamicFacetValueRenderer)},e.prototype.createFromValue=function(e){var t=this.facet.values.allFacetValues.length+1,n=r.FacetValueState.idle,i=this.getDisplayValue(e);return new o.DynamicFacetValue({value:e,displayValue:i,state:n,numberOfResults:0,position:t},this.facet,s.DynamicFacetValueRenderer)},e}();t.DynamicFacetValueCreator=a},function(e,t){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(589),o=n(590),r=n(591),s=n(592),a=n(593),u=n(594),l=n(595),c=n(596),p=n(597),d=n(598),h=function(){function e(e,t){this.endpoint=e,this.root=t}return e.prototype.create=function(e,t){switch(e){case"keywords_all":return this.createAllKeywordsInput();case"keywords_exact":return this.createExactKeywordsInput();case"keywords_any":return this.createAnyKeywordsInput();case"keywords_none":return this.createNoneKeywordsInput();case"date_any":return this.createAnytimeDateInput();case"date_last":return this.createInTheLastDateInput();case"date_between":return this.createBetweenDateInput();case"document_field":return this.createSimpleFieldInput(t.name,t.field);case"document_advanced_field":return this.createAdvancedFieldInput(t.name,t.field);case"document_size":return this.createSizeInput();default:return null}},e.prototype.createAllKeywordsInput=function(){return new i.AllKeywordsInput(this.root)},e.prototype.createExactKeywordsInput=function(){return new o.ExactKeywordsInput(this.root)},e.prototype.createAnyKeywordsInput=function(){return new r.AnyKeywordsInput(this.root)},e.prototype.createNoneKeywordsInput=function(){return new s.NoneKeywordsInput(this.root)},e.prototype.createAnytimeDateInput=function(){return new a.AnytimeDateInput(this.root)},e.prototype.createInTheLastDateInput=function(){return new u.InTheLastDateInput(this.root)},e.prototype.createBetweenDateInput=function(){return new l.BetweenDateInput(this.root)},e.prototype.createSimpleFieldInput=function(e,t){return new c.SimpleFieldInput(e,t,this.endpoint,this.root)},e.prototype.createAdvancedFieldInput=function(e,t){return new p.AdvancedFieldInput(e,t,this.root)},e.prototype.createSizeInput=function(){return new d.SizeInput(this.root)},e}();t.AdvancedSearchInputFactory=h},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=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])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n(182),r=n(6),s=function(e){function t(t){var n=e.call(this,r.l("AllTheseWords"),t)||this;return n.root=t,n}return i(t,e),t.prototype.getValue=function(){var t=e.prototype.getValue.call(this);return t?"<@-"+t+"-@>":""},t}(o.KeywordsInput);t.AllKeywordsInput=s},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=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])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n(182),r=n(6),s=function(e){function t(t){var n=e.call(this,r.l("ExactPhrase"),t)||this;return n.root=t,n}return i(t,e),t.prototype.getValue=function(){var t=e.prototype.getValue.call(this);return t?'"<@-'+t+'-@>"':""},t}(o.KeywordsInput);t.ExactKeywordsInput=s},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=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])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n(182),r=n(6),s=function(e){function t(t){var n=e.call(this,r.l("AnyOfTheseWords"),t)||this;return n.root=t,n}return i(t,e),t.prototype.getValue=function(){return e.prototype.getValue.call(this)?e.prototype.getValue.call(this).replace(/\s+/g," ").split(" ").map(function(e){return'"<@-'+e+'-@>"'}).join(" OR "):""},t}(o.KeywordsInput);t.AnyKeywordsInput=s},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=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])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n(182),r=n(6),s=function(e){function t(t){var n=e.call(this,r.l("NoneOfTheseWords"),t)||this;return n.root=t,n}return i(t,e),t.prototype.getValue=function(){var t=e.prototype.getValue.call(this);return t?t.replace(/\s+/g," ").split(" ").map(function(e){return'NOT "<@-'+e+'-@>"'}).join(" "):""},t}(o.KeywordsInput);t.NoneKeywordsInput=s},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=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])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n(227),r=n(6),s=n(1),a=n(85),u=function(e){function t(t){var n=e.call(this,r.l("Anytime"),t)||this;return n.root=t,n}return i(t,e),t.prototype.getValue=function(){return null},t.prototype.build=function(){var t=this;e.prototype.build.call(this);var n=this.getRadio();return n.checked=!0,s.$$(n).on("change",function(){t.root?s.$$(t.root).trigger(a.AdvancedSearchEvents.executeAdvancedSearch):s.$$(t.element).trigger(a.AdvancedSearchEvents.executeAdvancedSearch)}),this.element},t}(o.DateInput);t.AnytimeDateInput=u},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=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])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n(227),r=n(1),s=n(6),a=n(63),u=n(121),l=n(33),c=function(e){function t(t){var n=e.call(this,s.l("InTheLast"),t)||this;return n.root=t,n}return i(t,e),t.prototype.reset=function(){this.dropdown.reset(),this.spinner.reset()},t.prototype.build=function(){e.prototype.build.call(this);var t=r.$$("fieldset",{className:"coveo-advanced-search-date-input"});return t.el.disabled=!0,this.spinner=new u.NumericSpinner(this.onChange.bind(this),void 0,void 0,s.l("InTheLast")),t.append(this.spinner.getElement()),this.dropdown=new a.Dropdown(this.onChange.bind(this),["Days","Months"],void 0,s.l("InTheLast")),this.dropdown.setId("coveo-advanced-search-in-the-last-select"),t.append(this.dropdown.getElement()),this.element.appendChild(t.el),r.$$(this.getRadio()).on("change",this.onChange.bind(this)),this.element},t.prototype.getValue=function(){var e=new Date,t=this.spinner.getIntValue(),n=this.dropdown.getValue().toLowerCase(),i=new Date;return"months"==n?i.setMonth(e.getMonth()-t):i.setDate(e.getDate()-t),this.isSelected()&&t?"@date>="+l.DateUtils.dateForQuery(i):""},t}(o.DateInput);t.InTheLastDateInput=c},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=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])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n(227),r=n(87),s=n(6),a=n(1),u=n(33),l=n(72),c=function(e){function t(t){var n=e.call(this,s.l("Between"),t)||this;return n.root=t,n.firstDatePicker=new r.DatePicker(n.onChange.bind(n)),n.secondDatePicker=new r.DatePicker(n.onChange.bind(n)),n}return i(t,e),t.prototype.reset=function(){this.firstDatePicker.reset(),this.secondDatePicker.reset()},t.prototype.build=function(){e.prototype.build.call(this);var t=a.$$("fieldset",{className:"coveo-advanced-search-date-input"});return t.el.disabled=!0,t.append(this.firstDatePicker.getElement()),t.append(this.buildAnd()),t.append(this.secondDatePicker.getElement()),this.element.appendChild(t.el),this.element},t.prototype.getValue=function(){var e=this.firstDatePicker.getDateValue(),t=this.secondDatePicker.getDateValue(),n=this.firstDatePicker.getValue(),i=this.secondDatePicker.getValue(),o="";if(this.isSelected()){if(e&&t){if(l.TimeSpan.fromDates(u.DateUtils.convertFromJsonDateIfNeeded(e),u.DateUtils.convertFromJsonDateIfNeeded(i)).getMilliseconds()<0)throw s.l("QueryExceptionInvalidDate")}n&&(o+="(@date>="+n+")"),i&&(o+="(@date<="+i+")")}return o},t.prototype.buildAnd=function(){var e=a.$$("div",{className:"coveo-advanced-search-and"});return e.text(s.l("And").toLowerCase()),e.el},t}(o.DateInput);t.BetweenDateInput=c},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=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])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),r=n(40),s=n(1),a=n(48),u=n(63),l=n(228),c=function(e){function t(t,n,i,o){var r=e.call(this,t,o)||this;return r.inputName=t,r.fieldName=n,r.endpoint=i,r.root=o,r}return i(t,e),t.prototype.reset=function(){this.dropDown.reset()},t.prototype.build=function(){var t=this,n=s.$$(e.prototype.build.call(this));return this.buildFieldSelect().then(function(){n.append(t.dropDown.getElement())}),this.element=n.el,this.element},t.prototype.getValue=function(){var e=this.dropDown?this.dropDown.getValue():"",t=new a.QueryBuilder;return e?(t.advancedExpression.addFieldExpression(this.fieldName,"==",[e]),t.build().aq):""},t.prototype.buildFieldSelect=function(){var e=this;return this.endpoint.listFieldValues({field:this.fieldName,maximumNumberOfValues:50}).then(function(t){var n=[""];o.each(t,function(e){n.push(e.value)}),e.dropDown=new u.Dropdown(e.onChange.bind(e),n,function(t){return r.FacetUtils.tryToGetTranslatedCaption(e.fieldName,t)},e.inputName)})},t}(l.DocumentInput);t.SimpleFieldInput=c},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=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])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n(63),r=n(55),s=n(1),a=n(228),u=n(48),l=function(e){function t(t,n,i){var o=e.call(this,t,i)||this;return o.inputName=t,o.fieldName=n,o.root=i,o}return i(t,e),t.prototype.reset=function(){this.mode.reset(),this.input.reset()},t.prototype.build=function(){var t=s.$$(e.prototype.build.call(this));return this.mode=new o.Dropdown(this.onChange.bind(this),["Contains","DoesNotContain","Matches"],void 0,this.inputName),t.append(this.mode.getElement()),this.input=new r.TextInput(this.onChange.bind(this),this.inputName),t.append(this.input.getElement()),this.element=t.el,this.element},t.prototype.getValue=function(){var e=this.input.getValue(),t=new u.QueryBuilder;if(e)switch(this.mode.getValue()){case"Contains":return t.advancedExpression.addFieldExpression(this.fieldName,"=",[e]),t.build().aq;case"DoesNotContain":return t.advancedExpression.addFieldExpression(this.fieldName,"<>",[e]),t.build().aq;default:return t.advancedExpression.addFieldExpression(this.fieldName,"==",[e]),t.build().aq}return""},t}(a.DocumentInput);t.AdvancedFieldInput=l},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=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])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n(6),r=n(1),s=n(48),a=n(63),u=n(121),l=n(228),c=function(e){function t(t){var n=e.call(this,"Size",t)||this;return n.root=t,n}return i(t,e),t.prototype.reset=function(){this.modeSelect.reset(),this.sizeInput.reset()},t.prototype.build=function(){var n=r.$$(e.prototype.build.call(this)),i=r.$$("div",{className:"coveo-size-input-mode-section"});return this.modeSelect=new a.Dropdown(this.onChange.bind(this),t.modes,void 0,o.l("Size")),this.modeSelect.setId("coveo-size-input-mode"),i.append(this.modeSelect.getElement()),this.sizeInput=new u.NumericSpinner(this.onChange.bind(this),void 0,void 0,o.l("SizeValue")),i.append(this.sizeInput.getElement()),this.sizeSelect=new a.Dropdown(this.onChange.bind(this),t.sizes,void 0,o.l("UnitMeasurement")),this.sizeSelect.setId("coveo-size-input-select"),i.append(this.sizeSelect.getElement()),n.append(i.el),this.element=n.el,this.element},t.prototype.getValue=function(){var e=this.getSizeInBytes(),t=new s.QueryBuilder;if(e)switch(this.modeSelect.getValue()){case"AtLeast":return t.advancedExpression.addFieldExpression("@size",">=",[this.getSizeInBytes().toString()]),t.build().aq;default:return t.advancedExpression.addFieldExpression("@size","<=",[this.getSizeInBytes().toString()]),t.build().aq}return""},t.prototype.getSizeInBytes=function(){var e=this.sizeInput.getFloatValue();switch(this.sizeSelect.getValue()){case"KB":return 1024*e;case"MB":return e*Math.pow(1024,2);default:return e}},t.modes=["AtLeast","AtMost"],t.sizes=["KB","MB","Bytes"],t}(l.DocumentInput);t.SizeInput=c},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){}return e.openCardOverlay="openCardOverlay",e.closeCardOverlay="closeCardOverlay",e}();t.CardOverlayEvents=i},function(e,t){},function(e,t){},function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))(function(o,r){function s(e){try{u(i.next(e))}catch(e){r(e)}}function a(e){try{u(i.throw(e))}catch(e){r(e)}}function u(e){e.done?o(e.value):new n(function(t){t(e.value)}).then(s,a)}u((i=i.apply(e,t||[])).next())})},o=this&&this.__generator||function(e,t){function n(e){return function(t){return i([e,t])}}function i(n){if(o)throw new TypeError("Generator is already executing.");for(;u;)try{if(o=1,r&&(s=r[2&n[0]?"return":n[0]?"throw":"next"])&&!(s=s.call(r,n[1])).done)return s;switch(r=0,s&&(n=[0,s.value]),n[0]){case 0:case 1:s=n;break;case 4:return u.label++,{value:n[1],done:!1};case 5:u.label++,r=n[1],n=[0];continue;case 7:n=u.ops.pop(),u.trys.pop();continue;default:if(s=u.trys,!(s=s.length>0&&s[s.length-1])&&(6===n[0]||2===n[0])){u=0;continue}if(3===n[0]&&(!s||n[1]>s[0]&&n[1]<s[3])){u.label=n[1];break}if(6===n[0]&&u.label<s[1]){u.label=s[1],s=n;break}if(s&&u.label<s[2]){u.label=s[2],u.ops.push(n);break}s[2]&&u.ops.pop(),u.trys.pop();continue}n=t.call(e,u)}catch(e){n=[6,e],r=0}finally{o=s=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}var o,r,s,a,u={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return a={next:n(0),throw:n(1),return:n(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a};Object.defineProperty(t,"__esModule",{value:!0});var r=n(88),s=function(){function e(e){this.googleApiKey=e}return e.prototype.getPosition=function(){return i(this,void 0,void 0,function(){var e,t;return o(this,function(n){switch(n.label){case 0:return[4,(new r.EndpointCaller).call({errorsAsSuccess:!1,method:"POST",queryString:["key="+this.googleApiKey],requestData:{},responseType:"json",url:"https://www.googleapis.com/geolocation/v1/geolocate"})];case 1:return e=n.sent(),t=e.data.location,[2,{longitude:t.lng,latitude:t.lat}]}})})},e}();t.GoogleApiPositionProvider=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){}return e.prototype.getPosition=function(){return new Promise(function(e,t){navigator.geolocation.getCurrentPosition(function(t){e({latitude:t.coords.latitude,longitude:t.coords.longitude})},function(e){t(e)})})},e}();t.NavigatorPositionProvider=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){this.latitude=e,this.longitude=t}return e.prototype.getPosition=function(){return Promise.resolve({longitude:this.longitude,latitude:this.latitude})},e}();t.StaticPositionProvider=i},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){"use strict";var i=this&&this.__assign||Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e};Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),r=n(11),s=n(9),a=n(73),u=n(48),l=n(33),c=n(21),p=n(4),d=function(){function e(e){var t=this;this.facet=e,this.facet.bind.onRootElement(r.QueryEvents.querySuccess,function(e){return t.handleQuerySuccess(e)})}return e.prototype.prepareForNewQuery=function(){this.lastGroupByRequestIndex=void 0},e.prototype.putGroupByIntoQueryBuilder=function(e){this.facet.options.graph&&this.putGroupByForGraphIntoQueryBuilder(e),this.putGroupByForSliderIntoQueryBuilder(e)},e.prototype.createBasicGroupByRequest=function(){return{field:this.facet.options.field,completeFacetWithStandardValues:!0,allowedValues:void 0}},e.prototype.computeOurFilterExpression=function(e){void 0===e&&(e=[this.facet.startOfSlider,this.facet.endOfSlider]);var t=new a.ExpressionBuilder;return void 0!=e[0]&&void 0!=e[1]&&(this.facet.options.excludeOuterBounds?this.addFilterExpressionWithOuterBoundsExcluded(e[0],e[1],t):this.addFilterExpressionWithOuterBoundsIncluded(e[0],e[1],t)),t.build()},e.prototype.handleQuerySuccess=function(e){var t=this;if(!this.isAValidRangeResponse(e)){var n=new s.Logger(this);return n.error("Cannot instantiate FacetSlider for this field : "+this.facet.options.field+". It needs to be configured as a numerical field in the index"),n.error("Disabling the FacetSlider",this.facet),void this.facet.disable()}if(this.facet.options&&this.facet.options.graph&&void 0==this.rangeValuesForGraphToUse){this.rangeValuesForGraphToUse=[];var i=e.results.groupByResults[this.graphGroupByQueriesIndex],r=i?i.values:[];o.each(r,function(e){var n=e.value.split("..");t.rangeValuesForGraphToUse.push({start:t.facet.options.dateField?t.getISOFormat(n[0].replace("@"," ")):parseInt(n[0],10),end:t.facet.options.dateField?t.getISOFormat(n[1].replace("@"," ")):parseInt(n[1],10)})})}},e.prototype.isAValidRangeResponse=function(e){if(void 0!=this.lastGroupByRequestIndex&&e.results.groupByResults[this.lastGroupByRequestIndex]){var t=e.results.groupByResults[this.lastGroupByRequestIndex].values[0];if(t&&!c.QueryUtils.isRangeString(t.value))return!1}return!0},e.prototype.addFilterExpressionWithOuterBoundsIncluded=function(e,t,n){e==this.facet.options.start&&t==this.facet.options.end||(this.facet.options.dateField&&(e=this.getFilterDateFormat(e),t=this.getFilterDateFormat(t)),n.addFieldExpression(this.facet.options.field,"==",[e+".."+t]))},e.prototype.addFilterExpressionWithOuterBoundsExcluded=function(e,t,n){var i=this.facet.options.start,o=this.facet.options.end,r=e,s=t;this.facet.options.dateField?(r=this.getFilterDateFormat(e),s=this.getFilterDateFormat(t),i=this.getFilterDateFormat(i),o=this.getFilterDateFormat(o)):(r+="",s+="",i+="",o+=""),r!=i&&s==o?n.addFieldExpression(this.facet.options.field,">=",[r]):r==i&&s!=o?n.addFieldExpression(this.facet.options.field,"<=",[s]):this.addFilterExpressionWithOuterBoundsIncluded(e,t,n)},e.prototype.putGroupByForGraphIntoQueryBuilder=function(e){this.graphGroupByQueriesIndex=e.groupByRequests.length;var t=this.createBasicGroupByRequest();this.facet.isSimpleSliderConfig?(t.rangeValues=this.createRangeValuesForGraphUsingStartAndEnd(),t.generateAutomaticRanges=!1):t.generateAutomaticRanges=!0,this.addExpressionToExcludeInvalidDates(t);var n=this.computeOurFilterExpression(this.facet.getSliderBoundaryForQuery());this.processQueryOverride(n,t,e),t.sortCriteria="nosort",t.maximumNumberOfValues=this.facet.options.graph.steps,e.groupByRequests.push(t)},e.prototype.putGroupByForSliderIntoQueryBuilder=function(e){this.lastGroupByRequestIndex=e.groupByRequests.length;var t=this.putGroupByBasicSliderIntoQueryBuilder(e);this.putGroupByForFullRangeSliderIntoQueryBuilder(e,t)},e.prototype.processQueryOverride=function(e,t,n){var i;i=void 0!=e?n.computeCompleteExpressionPartsExcept(e):n.computeCompleteExpressionParts();var o=this.facet.options.queryOverride||"@uri";t.queryOverride=this.appendOrSetGroupByOverrideParam(t.queryOverride,i.basic),t.advancedQueryOverride=this.appendOrSetGroupByOverrideParam(t.advancedQueryOverride,i.advanced),t.constantQueryOverride=this.appendOrSetGroupByOverrideParam(t.constantQueryOverride,i.constant),t.advancedQueryOverride=this.appendOrSetGroupByOverrideParam(t.advancedQueryOverride,o)},e.prototype.createRangeValuesForGraphUsingStartAndEnd=function(){var e=this.getFormattedStartAndEnd(),t=e.start,n=e.end,i={start:t,end:n,endInclusive:!0,label:"Slider"};return void 0==this.facet.options.graph.steps&&(this.facet.options.graph.steps=10),this.facet.options.dateField&&isNaN(this.facet.options.start)&&(this.facet.options.start=new Date(this.facet.options.start).getTime()),this.facet.options.dateField&&isNaN(this.facet.options.end)&&(this.facet.options.end=new Date(this.facet.options.end).getTime()),void 0!=this.rangeValuesForGraphToUse?this.usePrebuiltRange(i):this.buildRange(i)},e.prototype.usePrebuiltRange=function(e){return o.map(this.rangeValuesForGraphToUse,function(t){return{start:t.start,end:t.end,endInclusive:e.endInclusive,label:e.label}})},e.prototype.buildRange=function(e){var t=this,n=this.facet.options.start,i=(this.facet.options.end-this.facet.options.start)/this.facet.options.graph.steps;return o.map(o.range(0,this.facet.options.graph.steps,1),function(o){var r=n+o*i,s=n+(o+1)*i;return t.facet.options.dateField&&(r=t.getISOFormat(r),s=t.getISOFormat(s)),{endInclusive:e.endInclusive,label:e.label,start:r,end:s}})},e.prototype.getFormattedStartAndEnd=function(){var e=this.facet.options.start,t=this.facet.options.end;return this.facet.options.dateField&&(e=this.getISOFormat(e),t=this.getISOFormat(t)),{start:e,end:t}},e.prototype.getISOFormat=function(e){if(e){isNaN(e)||(e=Number(e));var t=new Date(e);return l.DateUtils.isValid(t)||(t=new Date(this.getBrowserCompatibleFormat(e)),l.DateUtils.isValid(t))?t.toISOString():void this.facet.logger.error("Cannot parse this date format.",e,new Date(e))}},e.prototype.getFilterDateFormat=function(e){return e?this.getISOFormat(e).replace("T","@").replace(".000Z","").replace(/-/g,"/"):void 0},e.prototype.getBrowserCompatibleFormat=function(e){return e.replace("@","T").replace(/\//g,"-")},e.prototype.putGroupByForFullRangeSliderIntoQueryBuilder=function(e,t){this.lastGroupByRequestForFullRangeIndex=e.groupByRequests.length;var n=o.clone(t);delete n.queryOverride,delete n.advancedQueryOverride,this.facet.options.queryOverride&&(n.advancedQueryOverride=this.facet.options.queryOverride),this.addExpressionToExcludeInvalidDates(n),void 0===n.queryOverride&&void 0===n.advancedQueryOverride&&void 0===n.constantQueryOverride&&(n.advancedQueryOverride="@uri"),e.groupByRequests.push(n)},e.prototype.putGroupByBasicSliderIntoQueryBuilder=function(e){var t=1;this.facet.hasAGraph()&&(t=this.facet.options.graph.steps);var n;this.facet.isSimpleSliderConfig&&(n=[i({},this.getFormattedStartAndEnd(),{label:"slider",endInclusive:!1})]);var o=this.createBasicGroupByRequest();o.maximumNumberOfValues=t,o.sortCriteria="nosort",o.generateAutomaticRanges=!this.facet.isSimpleSliderConfig,o.rangeValues=n;var r=this.computeOurFilterExpression(this.facet.getSliderBoundaryForQuery());return this.processQueryOverride(r,o,e),this.addExpressionToExcludeInvalidDates(o),e.groupByRequests.push(o),o},e.prototype.addExpressionToExcludeInvalidDates=function(e){if(this.facet.options.dateField){var t=new u.QueryBuilder;t.expression.addFieldExpression(this.facet.options.field,">",[this.getFilterDateFormat(new Date(0))]),e.constantQueryOverride?e.constantQueryOverride+=" "+t.expression.build():e.constantQueryOverride=t.expression.build()}},e.prototype.appendOrSetGroupByOverrideParam=function(e,t){return p.Utils.isNullOrUndefined(t)?e:p.Utils.isNullOrUndefined(e)?t||"":e+" "+(t||"")},e}();t.FacetSliderQueryController=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(616),o=n(523),r=n(23),s=n(0),a=n(138),u=n(9),l=n(24),c=n(1),p=n(4);t.MAX_NUMBER_OF_STEPS=100;var d=function(){function e(e,t,n){var i=this;if(this.element=e,this.options=t,this.root=n,this.steps=[],this.options.dateField&&(this.options.start=new Date(this.options.start).getTime(),this.options.end=new Date(this.options.end).getTime()),void 0==this.options.rounded&&(this.options.rounded=0),(this.options.steps||this.options.getSteps)&&this.buildSteps(),this.options.graph&&(this.sliderGraph=new g(this)),this.sliderLine=new h(this),s.each(this.sliderLine.build(),function(e){i.element.appendChild(e)}),this.options.rangeSlider)this.sliderRange=new m(this),s.each(this.sliderRange.build(),function(e){i.element.appendChild(e)});else{this.sliderButton=new f(this,1);var o=this.sliderButton.build();c.$$(o).addClass("coveo-no-range-button"),this.element.appendChild(o),this.sliderLine.setActiveWidth(this.sliderButton)}this.sliderCaption=new y(this),this.element.appendChild(this.sliderCaption.build())}return e.prototype.onMoving=function(){this.options.rangeSlider?(this.sliderRange.setBoundary(),this.sliderLine.setActiveWidth(this.sliderRange.firstButton,this.sliderRange.secondButton)):(this.setButtonBoundary(),this.sliderLine.setActiveWidth(this.sliderButton)),this.options.graph&&this.sliderGraph.draw(),this.displayCaption()},e.prototype.initializeState=function(e){void 0===e&&(e=[this.options.start,this.options.end]),this.currentValues=e,this.options.rangeSlider?(this.sliderRange.initializeSliderRangeState(e),this.sliderLine.setActiveWidth(this.sliderRange.firstButton,this.sliderRange.secondButton)):(void 0==e?this.sliderButton.toEnd():this.sliderButton.setValue(e[1]),this.setButtonBoundary(),this.sliderLine.setActiveWidth(this.sliderButton)),this.displayCaption()},e.prototype.getPosition=function(){return this.options.rangeSlider?this.sliderRange.getPosition():[0,this.sliderButton.getPosition()]},e.prototype.getPercentPosition=function(){return this.options.rangeSlider?this.sliderRange.getPercentPosition():[0,this.sliderButton.getPercent()]},e.prototype.getValues=function(){return void 0!=this.currentValues?this.currentValues:this.options.rangeSlider?this.sliderRange.getValue():[this.options.start,this.sliderButton.getValue()]},e.prototype.getCaptionFromValue=function(e){return this.sliderCaption.getCaptionFromValues(e)},e.prototype.getCaption=function(){return this.sliderCaption.getCaption()},e.prototype.setValues=function(e){void 0!=e&&(e[0]=Math.max(e[0],this.options.start),e[1]=Math.min(e[1],this.options.end)),this.currentValues=e,this.options.rangeSlider?(this.sliderRange.setValue(e),this.sliderLine.setActiveWidth(this.sliderRange.firstButton,this.sliderRange.secondButton)):(this.sliderButton.setValue(e[1]),this.sliderLine.setActiveWidth(this.sliderButton)),this.displayCaption()},e.prototype.drawGraph=function(e){this.sliderGraph&&this.sliderGraph.draw(e)},e.prototype.setButtonBoundary=function(){this.sliderButton.leftBoundary=0,this.sliderButton.rightBoundary=this.element.clientWidth},e.prototype.displayCaption=function(){void 0!=this.options.valueCaption?this.sliderCaption.setFromString(this.options.valueCaption(this.getValues())):void 0!=this.options.percentCaption?this.sliderCaption.setFromString(this.options.percentCaption(this.getPercentPosition())):void 0!=this.options.displayAsPercent&&void 0!=this.options.displayAsPercent.separator&&this.options.displayAsPercent.enable?this.sliderCaption.setAsPercent():this.sliderCaption.setAsValue()},e.prototype.buildSteps=function(){if(this.options.getSteps)this.steps=this.options.getSteps(this.options.start,this.options.end);else{this.options.steps>t.MAX_NUMBER_OF_STEPS&&(new u.Logger(this).warn("Maximum number of steps for slider is "+t.MAX_NUMBER_OF_STEPS+" for performance reason"),this.options.steps=t.MAX_NUMBER_OF_STEPS);var e=(this.options.end-this.options.start)/Math.max(1,this.options.steps);if(e>0)for(var n=this.options.start,i=0;n<=this.options.end&&i<=t.MAX_NUMBER_OF_STEPS;)this.steps.push(n),n+=e,i++;else this.steps.push(this.options.start),this.steps.push(this.options.end)}},e}();t.Slider=d;var h=function(){function e(e){this.slider=e}return e.prototype.build=function(){return this.backGround=c.$$("div",{className:"coveo-slider-line coveo-background"}).el,this.activePart=c.$$("div",{className:"coveo-slider-line coveo-active"}).el,[this.backGround,this.activePart]},e.prototype.setActiveWidth=function(e,t){if(this.slider.options.rangeSlider){var n=100*(t.getPercent()-e.getPercent());this.activePart.style.width=n+"%",this.activePart.style.left=100*e.getPercent()+"%",this.activePart.style.right=100*t.getPercent()+"%"}else{var n=100*e.getPercent();this.activePart.style.width=n+"%"}},e}(),f=function(){function e(e,t){this.slider=e,this.which=t,this.eventMouseDown=l.DeviceUtils.isMobileDevice()?"touchstart":"mousedown",this.eventMouseMove=l.DeviceUtils.isMobileDevice()?"touchmove":"mousemove",this.eventMouseUp=l.DeviceUtils.isMobileDevice()?"touchend":"mouseup"}return e.prototype.build=function(){return this.element=c.$$("div",{className:"coveo-slider-button"}).el,this.bindEvents(),this.element.CoveoSliderButton=this,this.element},e.prototype.toBeginning=function(){this.element.style.left="0%"},e.prototype.toEnd=function(){this.element.style.left="100%"},e.prototype.setValue=function(e){var t=this.fromValueToPercent(e);this.element.style.left=Math.round(100*t)+"%"},e.prototype.getPosition=function(){var e=this.element.style.left;return-1!=e.indexOf("%")?parseFloat(e)/100*this.slider.element.clientWidth:parseFloat(e)},e.prototype.getPercent=function(e){return void 0===e&&(e=this.getPosition()),0==this.slider.element.clientWidth?0:+(e/this.slider.element.clientWidth).toFixed(2)},e.prototype.getValue=function(){return this.getPercent()*(this.slider.options.end-this.slider.options.start)+this.slider.options.start},e.prototype.fromValueToPercent=function(e){return 1-(this.slider.options.end-e)/(this.slider.options.end-this.slider.options.start)},e.prototype.fromPositionToValue=function(e){var t=this.getPercent(e);return this.slider.options.start+t*(this.slider.options.end-this.slider.options.start)},e.prototype.fromValueToPosition=function(e){var t=this.fromValueToPercent(e);return this.slider.element.clientWidth*t},e.prototype.bindEvents=function(){var e=this;c.$$(this.element).on(this.eventMouseDown,function(t){e.handleStartSlide(t)});var t=this.slider.options.document||document;t.addEventListener(this.eventMouseMove,function(t){"touchmove"==e.eventMouseMove&&e.isMouseDown&&t.preventDefault(),e.handleMoving(t)}),t.addEventListener(this.eventMouseUp,function(){e.handleEndSlide()})},e.prototype.getUserSelect=function(){return void 0!==document.body.style.msUserSelect?"msUserSelect":void 0!==document.body.style.webkitUserSelect?"webkitUserSelect":void 0!==document.body.style.MozUserSelect?"MozUserSelect":"userSelect"},e.prototype.handleStartSlide=function(e){var t=this.getMousePosition(e);this.isMouseDown=!0,this.startPositionX=t.x,this.lastElementLeft=parseInt(this.element.style.left,10)/100*this.slider.element.clientWidth,this.origUserSelect=document.body.style[this.getUserSelect()],this.origCursor=document.body.style.cursor,document.body.style[this.getUserSelect()]="none",document.body.style.cursor="pointer",c.$$(this.element).addClass("coveo-active"),c.$$(this.element).trigger(a.SliderEvents.startSlide,{button:this,slider:this.slider}),e.stopPropagation()},e.prototype.handleMoving=function(e){this.isMouseDown&&(this.slider.onMoving(),this.updatePosition(e),this.handleButtonNearEnd(),c.$$(this.element).trigger(a.SliderEvents.duringSlide,{button:this,slider:this.slider}))},e.prototype.handleEndSlide=function(){this.isMouseDown&&(document.body.style[this.getUserSelect()]=this.origUserSelect,document.body.style.cursor=this.origCursor,c.$$(this.element).removeClass("coveo-active"),c.$$(this.element).trigger(a.SliderEvents.endSlide,{button:this,slider:this.slider})),this.isMouseDown=!1},e.prototype.handleButtonNearEnd=function(){0==this.which&&(void 0==this.origZIndex&&(this.origZIndex=this.element.style.zIndex||"1"),this.currentPos>90?this.element.style.zIndex=this.origZIndex+1:this.element.style.zIndex=this.origZIndex)},e.prototype.getMousePosition=function(e){var t=0,n=0;return e.touches&&e.touches[0]?(t=e.touches[0].pageX,n=e.touches[0].pageY):e.pageX&&e.pageY?(t=e.pageX,n=e.pageY):e.clientX&&e.clientY&&(t=e.clientX+document.body.scrollLeft+document.documentElement.scrollLeft,n=e.clientY+document.body.scrollTop+document.documentElement.scrollTop),{x:t,y:n}},e.prototype.updatePosition=function(e){var t,n=this.getMousePosition(e),i=n.x-this.startPositionX;if(this.currentPos=this.lastElementLeft+i,this.slider.options.steps||this.slider.options.getSteps){var o=this.snapToStep(i);this.currentPos=o.position,t=o.value}this.currentPos=Math.max(this.leftBoundary,this.currentPos),this.currentPos=Math.min(this.rightBoundary,this.currentPos),this.currentPos=100*this.getPercent(this.currentPos),this.currentPos=Math.min(this.currentPos,100),this.currentPos=Math.max(this.currentPos,0),this.element.style.left=Math.round(this.currentPos)+"%",this.slider.options.steps||this.slider.options.getSteps?this.slider.currentValues[this.which]=t:this.slider.currentValues[this.which]=this.getValue()},e.prototype.snapToStep=function(e){var t=this,n=s.map(this.slider.steps,function(e,n){return Math.abs(t.currentPos-t.fromValueToPosition(t.slider.steps[n]))}),i=s.map(this.slider.steps,function(e,n){return Math.abs(t.rightBoundary-t.fromValueToPosition(t.slider.steps[n]))}),o=s.map(this.slider.steps,function(e,n){return Math.abs(t.leftBoundary-t.fromValueToPosition(t.slider.steps[n]))}),r=s.min(n),a=s.min(i),u=s.min(o),l=this.slider.steps[s.indexOf(n,r)],c=this.slider.steps[s.indexOf(i,a)],p=this.slider.steps[s.indexOf(o,u)];return l=Math.min(l,c),l=Math.max(l,p),{position:this.fromValueToPosition(l),value:l}},e}();t.SliderButton=f;var m=function(){function e(e){this.slider=e,this.firstButton=new f(e,0),this.secondButton=new f(e,1)}return e.prototype.build=function(){var e=this.firstButton.build(),t=this.secondButton.build();return c.$$(t).addClass("coveo-range-button"),[e,t]},e.prototype.initializeSliderRangeState=function(e){void 0==e?(this.firstButton.toBeginning(),this.secondButton.toEnd()):(this.firstButton.setValue(e[0]),this.secondButton.setValue(e[1])),this.setBoundary()},e.prototype.setValue=function(e){this.firstButton.setValue(e[0]),this.secondButton.setValue(e[1])},e.prototype.setBoundary=function(){this.firstButton.leftBoundary=0,this.firstButton.rightBoundary=this.secondButton.getPosition(),this.secondButton.leftBoundary=this.firstButton.getPosition(),this.secondButton.rightBoundary=this.slider.element.clientWidth},e.prototype.getPosition=function(){return[this.firstButton.getPosition(),this.secondButton.getPosition()]},e.prototype.getPercentPosition=function(){return[this.firstButton.getPercent(),this.secondButton.getPercent()]},e.prototype.getValue=function(){return[this.firstButton.getValue(),this.secondButton.getValue()]},e}(),y=function(){function e(e){this.slider=e,this.separator="-",this.unitSign="",this.slider.options.displayAsPercent&&this.slider.options.displayAsPercent.enable?this.separator=void 0!=this.slider.options.displayAsPercent.separator?this.slider.options.displayAsPercent.separator:this.separator:this.slider.options.displayAsValue&&this.slider.options.displayAsValue.enable&&(this.separator=void 0!=this.slider.options.displayAsValue.separator?this.slider.options.displayAsValue.separator:this.separator,this.unitSign=void 0!=this.slider.options.displayAsValue.unitSign?this.slider.options.displayAsValue.unitSign:this.unitSign)}return e.prototype.build=function(){return this.caption=c.$$("div",{className:"coveo-slider-caption"}).el,this.caption},e.prototype.getCaption=function(){return c.$$(this.caption).text()},e.prototype.getCaptionFromValues=function(e){return this.getValueCaption(e)},e.prototype.getCaptionFromValuesAsPercent=function(e){return this.getValueCaption(e)},e.prototype.setAsValue=function(){c.$$(this.caption).text(this.getValueCaption())},e.prototype.setAsPercent=function(){var e=this.slider.getPercentPosition();c.$$(this.caption).text([(100*e[0]).toFixed(this.slider.options.rounded),"%",this.separator,(100*e[1]).toFixed(this.slider.options.rounded),"%"].join(" "))},e.prototype.setFromString=function(e){c.$$(this.caption).text(e)},e.prototype.getValueCaption=function(e){void 0===e&&(e=this.slider.getValues());var t=e[0],n=e[1];if(this.slider.options.dateField){var i=new Date(t),o=new Date(n);i.setHours(0,0,0,0),o.setHours(0,0,0,0),t=r.format(i,this.slider.options.dateFormat||"MMM dd, yyyy"),n=r.format(o,this.slider.options.dateFormat||"MMM dd, yyyy"),this.unitSign=""}else t=t.toFixed(this.slider.options.rounded),n=n.toFixed(this.slider.options.rounded);return[t,this.unitSign,this.separator,n,this.unitSign].join(" ")},e}(),g=function(){function e(e){this.slider=e,this.svg=i.select(e.element).append("svg").append("g"),this.x=o.scaleBand(),this.y=o.scaleLinear(),this.slider.options.graph.margin=p.Utils.extendDeep({top:20,right:0,left:0,bottom:20},this.slider.options.graph.margin||{}),this.slider.options.graph.animationDuration=this.slider.options.graph.animationDuration||500,this.slider.options.graph.steps=this.slider.options.graph.steps||10,this.buildTooltip()}return e.prototype.draw=function(e){if(void 0===e&&(e=this.oldData),e){e!=this.oldData&&(e=this.modifyPossibleSinglePointDataIntoValidRange(e));var t=this.slider.element.offsetWidth,n=this.slider.element.offsetHeight,i=t-this.slider.options.graph.margin.left-this.slider.options.graph.margin.right,o=n-this.slider.options.graph.margin.top-this.slider.options.graph.margin.bottom;if(!isNaN(i)&&i>=0&&!isNaN(o)&&o>=0){this.applyTransformOnSvg(i,o),this.setXAndYRange(i,o),this.setXAndYDomain(e);var r=this.svg.selectAll(".coveo-bar").data(e),s=this.slider.getValues();this.renderGraphBars(r,i,o,s),this.setGraphBarsTransition(r,o,s)}this.oldData=e}},e.prototype.buildTooltip=function(){this.tooltip=c.$$("div",{className:"coveo-slider-tooltip"}).el,this.tooltipArrow=c.$$("div",{className:"coveo-slider-tooltip-arrow"}).el,this.tooltipCaption=c.$$("span",{className:"coveo-caption"}).el,this.tooltipCount=c.$$("span",{className:"coveo-count"}).el,c.$$(this.tooltip).append(this.tooltipArrow),c.$$(this.tooltip).append(this.tooltipCaption),c.$$(this.tooltip).append(this.tooltipCount),c.$$(this.tooltip).hide(),c.$$(this.slider.element).append(this.tooltip)},e.prototype.modifyPossibleSinglePointDataIntoValidRange=function(e){var t=this;return s.map(e,function(e){if(e.start==e.end){var n=(t.slider.options.end-t.slider.options.start)/t.slider.options.graph.steps;e.start=Math.round(e.start-n/2),e.end=Math.round(e.end+n/2)}return e})},e.prototype.setXAndYRange=function(e,t){this.x.range([0,e]),this.x.padding(.2),this.y.range([t-this.slider.options.graph.margin.top,0])},e.prototype.setXAndYDomain=function(e){this.padGraphWithEmptyData(e),this.x.domain(s.map(e,function(e){return e.start})),this.y.domain([0,i.max(e,function(e){return e.y})])},e.prototype.calculateOneStepOfGraph=function(e){return Math.abs(e[0].end-e[0].start)||1},e.prototype.padGraphWithEmptyData=function(e){var t=this.calculateOneStepOfGraph(e);this.padBeginningOfGraphWithEmptyData(e,t),this.padEndOfGraphWithEmptyData(e,t)},e.prototype.padBeginningOfGraphWithEmptyData=function(e,n){if(e[0].start>this.slider.options.start&&e[0].start>n)for(var i=e[0].start-this.slider.options.start,o=Math.min(t.MAX_NUMBER_OF_STEPS,Math.round(i/n)),r=e[0].start,s=o;s>0;s--)e.unshift({start:r-n,end:r,y:0}),r-=n},e.prototype.padEndOfGraphWithEmptyData=function(e,n){var i=e.length-1;if(e[i].end<this.slider.options.end)for(var o=this.slider.options.end-e[i].end,r=Math.min(t.MAX_NUMBER_OF_STEPS,Math.round(o/n)),s=e[i].end,a=0;a<r;a++)e.push({start:s,end:s+n,y:0}),s+=n},e.prototype.applyTransformOnSvg=function(e,t){var n=c.$$(this.slider.element).find("svg");n.setAttribute("width",e+"px"),n.setAttribute("height",t+"px"),this.svg.attr("transform","translate("+this.slider.options.graph.margin.left+","+this.slider.options.graph.margin.top+")")},e.prototype.renderGraphBars=function(e,t,n,i){e.enter().append("rect").attr("class",this.getFunctionForClass(i)).attr("width",this.x.bandwidth()).attr("height",this.getFunctionForHeight(n)).attr("x",this.getFunctionForX()).attr("y",this.getFunctionForY()).on("click",this.getFunctionForClick()).on("mouseover",this.getFunctionForMouseOver(n)).on("mouseout",this.getFunctionForMouseOut())},e.prototype.setGraphBarsTransition=function(e,t,n){e.transition().attr("x",this.getFunctionForX()).attr("width",this.x.bandwidth()).attr("class",this.getFunctionForClass(n)).transition().duration(this.slider.options.graph.animationDuration).attr("y",this.getFunctionForY()).attr("height",this.getFunctionForHeight(t))},e.prototype.getBarClass=function(e,t,n){return t.start>=e[0]&&t.end<=e[1]?"coveo-active":e[0]==this.slider.options.start&&0==n?"coveo-active":e[1]==this.slider.options.end&&n==this.slider.options.graph.steps-1?"coveo-active":""},e.prototype.setTooltip=function(e,t){c.$$(this.tooltipCaption).text(this.slider.getCaptionFromValue([e.start,e.end])),c.$$(this.tooltipCount).text(e.y.toString()),c.$$(this.tooltip).show();var n=this.x(e.start)-50,i=this.x.bandwidth()/2,o=50+i-5;this.tooltip.style.left=n+"px",this.tooltip.style.top=this.y(e.y)-t+"px",this.tooltipArrow.style.left=o+"px";var r=this.tooltip.getBoundingClientRect(),s=new c.Win(window).width();if(r.right>s-20){var a=s-r.right-20;this.tooltip.style.left=n+a+"px",this.tooltipArrow.style.left=o-a+"px"}},e.prototype.getFunctionForX=function(){var e=this;return function(t){return e.x(t.start)}},e.prototype.getFunctionForY=function(){var e=this;return function(t){return e.y(t.y)}},e.prototype.getFunctionForHeight=function(e){var t=this;return function(n){return e-t.y(n.y)}},e.prototype.getFunctionForClass=function(e){var t=this;return function(n,i){return"coveo-bar "+t.getBarClass(e,n,i)}},e.prototype.getFunctionForClick=function(){var e=this;return function(t,n){c.$$(e.slider.element).trigger(a.SliderEvents.graphValueSelected,{start:t.start,end:t.end,value:t.y})}},e.prototype.getFunctionForMouseOver=function(e){var t=this;return function(n){return t.setTooltip(n,e)}},e.prototype.getFunctionForMouseOut=function(){var e=this;return function(){return c.$$(e.tooltip).hide()}},e}()},function(e,t,n){"use strict";function i(e){return"translate("+(e+.5)+",0)"}function o(e){return"translate(0,"+(e+.5)+")"}function r(e){return function(t){return+e(t)}}function s(e){var t=Math.max(0,e.bandwidth()-1)/2;return e.round()&&(t=Math.round(t)),function(n){return+e(n)+t}}function a(){return!this.__axis}function u(e,t){function n(n){var i=null==l?t.ticks?t.ticks.apply(t,u):t.domain():l,o=null==c?t.tickFormat?t.tickFormat.apply(t,u):Wa:c,g=Math.max(p,0)+h,v=t.range(),b=+v[0]+.5,S=+v[v.length-1]+.5,C=(t.bandwidth?s:r)(t.copy()),w=n.selection?n.selection():n,_=w.selectAll(".domain").data([null]),O=w.selectAll(".tick").data(i,t).order(),x=O.exit(),E=O.enter().append("g").attr("class","tick"),A=O.select("line"),T=O.select("text");_=_.merge(_.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),O=O.merge(E),A=A.merge(E.append("line").attr("stroke","currentColor").attr(m+"2",f*p)),T=T.merge(E.append("text").attr("fill","currentColor").attr(m,f*g).attr("dy",e===Ga?"0em":e===Ka?"0.71em":"0.32em")),n!==w&&(_=_.transition(n),O=O.transition(n),A=A.transition(n),T=T.transition(n),x=x.transition(n).attr("opacity",Za).attr("transform",function(e){return isFinite(e=C(e))?y(e):this.getAttribute("transform")}),E.attr("opacity",Za).attr("transform",function(e){var t=this.parentNode.__axis;return y(t&&isFinite(t=t(e))?t:C(e))})),x.remove(),_.attr("d",e===Ja||e==Ya?d?"M"+f*d+","+b+"H0.5V"+S+"H"+f*d:"M0.5,"+b+"V"+S:d?"M"+b+","+f*d+"V0.5H"+S+"V"+f*d:"M"+b+",0.5H"+S),O.attr("opacity",1).attr("transform",function(e){return y(C(e))}),A.attr(m+"2",f*p),T.attr(m,f*g).text(o),w.filter(a).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",e===Ya?"start":e===Ja?"end":"middle"),w.each(function(){this.__axis=C})}var u=[],l=null,c=null,p=6,d=6,h=3,f=e===Ga||e===Ja?-1:1,m=e===Ja||e===Ya?"x":"y",y=e===Ga||e===Ka?i:o;return n.scale=function(e){return arguments.length?(t=e,n):t},n.ticks=function(){return u=za.call(arguments),n},n.tickArguments=function(e){return arguments.length?(u=null==e?[]:za.call(e),n):u.slice()},n.tickValues=function(e){return arguments.length?(l=null==e?null:za.call(e),n):l&&l.slice()},n.tickFormat=function(e){return arguments.length?(c=e,n):c},n.tickSize=function(e){return arguments.length?(p=d=+e,n):p},n.tickSizeInner=function(e){return arguments.length?(p=+e,n):p},n.tickSizeOuter=function(e){return arguments.length?(d=+e,n):d},n.tickPadding=function(e){return arguments.length?(h=+e,n):h},n}function l(e){return u(Ga,e)}function c(e){return u(Ya,e)}function p(e){return u(Ka,e)}function d(e){return u(Ja,e)}function h(){for(var e,t=0,n=arguments.length,i={};t<n;++t){if(!(e=arguments[t]+"")||e in i||/[\s.]/.test(e))throw new Error("illegal type: "+e);i[e]=[]}return new f(i)}function f(e){this._=e}function m(e,t){return e.trim().split(/^|\s+/).map(function(e){var n="",i=e.indexOf(".");if(i>=0&&(n=e.slice(i+1),e=e.slice(0,i)),e&&!t.hasOwnProperty(e))throw new Error("unknown type: "+e);return{type:e,name:n}})}function y(e,t){for(var n,i=0,o=e.length;i<o;++i)if((n=e[i]).name===t)return n.value}function g(e,t,n){for(var i=0,o=e.length;i<o;++i)if(e[i].name===t){e[i]=Xa,e=e.slice(0,i).concat(e.slice(i+1));break}return null!=n&&e.push({name:t,value:n}),e}function v(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===tu&&t.documentElement.namespaceURI===tu?t.createElement(e):t.createElementNS(n,e)}}function b(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function S(){}function C(){return[]}function w(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}function _(e,t,n,i,o,r){for(var s,a=0,u=t.length,l=r.length;a<l;++a)(s=t[a])?(s.__data__=r[a],i[a]=s):n[a]=new w(e,r[a]);for(;a<u;++a)(s=t[a])&&(o[a]=s)}function O(e,t,n,i,o,r,s){var a,u,l,c={},p=t.length,d=r.length,h=new Array(p);for(a=0;a<p;++a)(u=t[a])&&(h[a]=l=fu+s.call(u,u.__data__,a,t),l in c?o[a]=u:c[l]=u);for(a=0;a<d;++a)l=fu+s.call(e,r[a],a,r),(u=c[l])?(i[a]=u,u.__data__=r[a],c[l]=null):n[a]=new w(e,r[a]);for(a=0;a<p;++a)(u=t[a])&&c[h[a]]===u&&(o[a]=u)}function x(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function E(e){return function(){this.removeAttribute(e)}}function A(e){return function(){this.removeAttributeNS(e.space,e.local)}}function T(e,t){return function(){this.setAttribute(e,t)}}function R(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function F(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttribute(e):this.setAttribute(e,n)}}function M(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function I(e){return function(){this.style.removeProperty(e)}}function P(e,t,n){return function(){this.style.setProperty(e,t,n)}}function D(e,t,n){return function(){var i=t.apply(this,arguments);null==i?this.style.removeProperty(e):this.style.setProperty(e,i,n)}}function $(e,t){return e.style.getPropertyValue(t)||Tu(e).getComputedStyle(e,null).getPropertyValue(t)}function N(e){return function(){delete this[e]}}function k(e,t){return function(){this[e]=t}}function V(e,t){return function(){var n=t.apply(this,arguments);null==n?delete this[e]:this[e]=n}}function L(e){return e.trim().split(/^|\s+/)}function B(e){return e.classList||new U(e)}function U(e){this._node=e,this._names=L(e.getAttribute("class")||"")}function Q(e,t){for(var n=B(e),i=-1,o=t.length;++i<o;)n.add(t[i])}function j(e,t){for(var n=B(e),i=-1,o=t.length;++i<o;)n.remove(t[i])}function H(e){return function(){Q(this,e)}}function q(e){return function(){j(this,e)}}function z(e,t){return function(){(t.apply(this,arguments)?Q:j)(this,e)}}function W(){this.textContent=""}function G(e){return function(){this.textContent=e}}function Y(e){return function(){var t=e.apply(this,arguments);this.textContent=null==t?"":t}}function K(){this.innerHTML=""}function J(e){return function(){this.innerHTML=e}}function Z(e){return function(){var t=e.apply(this,arguments);this.innerHTML=null==t?"":t}}function X(){this.nextSibling&&this.parentNode.appendChild(this)}function ee(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function te(){return null}function ne(){var e=this.parentNode;e&&e.removeChild(this)}function ie(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function oe(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function re(e,t,n){return e=se(e,t,n),function(t){var n=t.relatedTarget;n&&(n===this||8&n.compareDocumentPosition(this))||e.call(this,t)}}function se(e,t,n){return function(i){var o=Qu;Qu=i;try{e.call(this,this.__data__,t,n)}finally{Qu=o}}}function ae(e){return e.trim().split(/^|\s+/).map(function(e){var t="",n=e.indexOf(".");return n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}})}function ue(e){return function(){var t=this.__on;if(t){for(var n,i=0,o=-1,r=t.length;i<r;++i)n=t[i],e.type&&n.type!==e.type||n.name!==e.name?t[++o]=n:this.removeEventListener(n.type,n.listener,n.capture);++o?t.length=o:delete this.__on}}}function le(e,t,n){var i=Uu.hasOwnProperty(e.type)?re:se;return function(o,r,s){var a,u=this.__on,l=i(t,r,s);if(u)for(var c=0,p=u.length;c<p;++c)if((a=u[c]).type===e.type&&a.name===e.name)return this.removeEventListener(a.type,a.listener,a.capture),this.addEventListener(a.type,a.listener=l,a.capture=n),void(a.value=t);this.addEventListener(e.type,l,n),a={type:e.type,name:e.name,value:t,listener:l,capture:n},u?u.push(a):this.__on=[a]}}function ce(e,t,n,i){var o=Qu;e.sourceEvent=Qu,Qu=e;try{return t.apply(n,i)}finally{Qu=o}}function pe(e,t,n){var i=Tu(e),o=i.CustomEvent;"function"==typeof o?o=new o(t,n):(o=i.document.createEvent("Event"),n?(o.initEvent(t,n.bubbles,n.cancelable),o.detail=n.detail):o.initEvent(t,!1,!1)),e.dispatchEvent(o)}function de(e,t){return function(){return pe(this,e,t)}}function he(e,t){return function(){return pe(this,e,t.apply(this,arguments))}}function fe(e,t){this._groups=e,this._parents=t}function me(){return new fe([[document.documentElement]],qu)}function ye(){return new ge}function ge(){this._="@"+(++Yu).toString(36)}function ve(){Qu.stopImmediatePropagation()}function be(e,t){var n=e.document.documentElement,i=Wu(e).on("dragstart.drag",null);t&&(i.on("click.drag",nl,!0),setTimeout(function(){i.on("click.drag",null)},0)),"onselectstart"in n?i.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}function Se(e,t,n,i,o,r,s,a,u,l){this.target=e,this.type=t,this.subject=n,this.identifier=i,this.active=o,this.x=r,this.y=s,this.dx=a,this.dy=u,this._=l}function Ce(){return!Qu.ctrlKey&&!Qu.button}function we(){return this.parentNode}function _e(e){return null==e?{x:Qu.x,y:Qu.y}:e}function Oe(){return navigator.maxTouchPoints||"ontouchstart"in this}function xe(){return fl||(gl(Ee),fl=yl.now()+ml)}function Ee(){fl=0}function Ae(){this._call=this._time=this._next=null}function Te(e,t,n){var i=new Ae;return i.restart(e,t,n),i}function Re(){xe(),++ll;for(var e,t=rl;t;)(e=fl-t._time)>=0&&t._call.call(null,e),t=t._next;--ll}function Fe(){fl=(hl=yl.now())+ml,ll=cl=0;try{Re()}finally{ll=0,Ie(),fl=0}}function Me(){var e=yl.now(),t=e-hl;t>dl&&(ml-=t,hl=e)}function Ie(){for(var e,t,n=rl,i=1/0;n;)n._call?(i>n._time&&(i=n._time),e=n,n=n._next):(t=n._next,n._next=null,n=e?e._next=t:rl=t);sl=e,Pe(i)}function Pe(e){if(!ll){cl&&(cl=clearTimeout(cl));e-fl>24?(e<1/0&&(cl=setTimeout(Fe,e-yl.now()-ml)),pl&&(pl=clearInterval(pl))):(pl||(hl=yl.now(),pl=setInterval(Me,dl)),ll=1,gl(Fe))}}function De(e,t){var n=Ne(e,t);if(n.state>wl)throw new Error("too late; already scheduled");return n}function $e(e,t){var n=Ne(e,t);if(n.state>xl)throw new Error("too late; already running");return n}function Ne(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function ke(e,t,n){function i(e){n.state=_l,n.timer.restart(o,n.delay,n.time),n.delay<=e&&o(e-n.delay)}function o(i){var l,c,p,d;if(n.state!==_l)return s();for(l in u)if(d=u[l],d.name===n.name){if(d.state===xl)return vl(o);d.state===El?(d.state=Tl,d.timer.stop(),d.on.call("interrupt",e,e.__data__,d.index,d.group),delete u[l]):+l<t&&(d.state=Tl,d.timer.stop(),d.on.call("cancel",e,e.__data__,d.index,d.group),delete u[l])}if(vl(function(){n.state===xl&&(n.state=El,n.timer.restart(r,n.delay,n.time),r(i))}),n.state=Ol,n.on.call("start",e,e.__data__,n.index,n.group),n.state===Ol){for(n.state=xl,a=new Array(p=n.tween.length),l=0,c=-1;l<p;++l)(d=n.tween[l].value.call(e,e.__data__,n.index,n.group))&&(a[++c]=d);a.length=c+1}}function r(t){for(var i=t<n.duration?n.ease.call(null,t/n.duration):(n.timer.restart(s),n.state=Al,1),o=-1,r=a.length;++o<r;)a[o].call(e,i);n.state===Al&&(n.on.call("end",e,e.__data__,n.index,n.group),s())}function s(){n.state=Tl,n.timer.stop(),delete u[t];for(var i in u)return;delete e.__transition}var a,u=e.__transition;u[t]=n,n.timer=Te(i,0,n.time)}function Ve(e,t){var n,i;return function(){var o=$e(this,e),r=o.tween;if(r!==n){i=n=r;for(var s=0,a=i.length;s<a;++s)if(i[s].name===t){i=i.slice(),i.splice(s,1);break}}o.tween=i}}function Le(e,t,n){var i,o;if("function"!=typeof n)throw new Error;return function(){var r=$e(this,e),s=r.tween;if(s!==i){o=(i=s).slice();for(var a={name:t,value:n},u=0,l=o.length;u<l;++u)if(o[u].name===t){o[u]=a;break}u===l&&o.push(a)}r.tween=o}}function Be(e,t,n){var i=e._id;return e.each(function(){var e=$e(this,i);(e.value||(e.value={}))[t]=n.apply(this,arguments)}),function(e){return Ne(e,i).value[t]}}function Ue(e){return function(){this.removeAttribute(e)}}function Qe(e){return function(){this.removeAttributeNS(e.space,e.local)}}function je(e,t,n){var i,o,r=n+"";return function(){var s=this.getAttribute(e);return s===r?null:s===i?o:o=t(i=s,n)}}function He(e,t,n){var i,o,r=n+"";return function(){var s=this.getAttributeNS(e.space,e.local);return s===r?null:s===i?o:o=t(i=s,n)}}function qe(e,t,n){var i,o,r;return function(){var s,a,u=n(this);return null==u?void this.removeAttribute(e):(s=this.getAttribute(e),a=u+"",s===a?null:s===i&&a===o?r:(o=a,r=t(i=s,u)))}}function ze(e,t,n){var i,o,r;return function(){var s,a,u=n(this);return null==u?void this.removeAttributeNS(e.space,e.local):(s=this.getAttributeNS(e.space,e.local),a=u+"",s===a?null:s===i&&a===o?r:(o=a,r=t(i=s,u)))}}function We(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function Ge(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function Ye(e,t){function n(){var n=t.apply(this,arguments);return n!==o&&(i=(o=n)&&Ge(e,n)),i}var i,o;return n._value=t,n}function Ke(e,t){function n(){var n=t.apply(this,arguments);return n!==o&&(i=(o=n)&&We(e,n)),i}var i,o;return n._value=t,n}function Je(e,t){return function(){De(this,e).delay=+t.apply(this,arguments)}}function Ze(e,t){return t=+t,function(){De(this,e).delay=t}}function Xe(e,t){return function(){$e(this,e).duration=+t.apply(this,arguments)}}function et(e,t){return t=+t,function(){$e(this,e).duration=t}}function tt(e,t){if("function"!=typeof t)throw new Error;return function(){$e(this,e).ease=t}}function nt(e){return(e+"").trim().split(/^|\s+/).every(function(e){var t=e.indexOf(".");return t>=0&&(e=e.slice(0,t)),!e||"start"===e})}function it(e,t,n){var i,o,r=nt(t)?De:$e;return function(){var s=r(this,e),a=s.on;a!==i&&(o=(i=a).copy()).on(t,n),s.on=o}}function ot(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function rt(e,t){var n,i,o;return function(){var r=$(this,e),s=(this.style.removeProperty(e),$(this,e));return r===s?null:r===n&&s===i?o:o=t(n=r,i=s)}}function st(e){return function(){this.style.removeProperty(e)}}function at(e,t,n){var i,o,r=n+"";return function(){var s=$(this,e);return s===r?null:s===i?o:o=t(i=s,n)}}function ut(e,t,n){var i,o,r;return function(){var s=$(this,e),a=n(this),u=a+"";return null==a&&(this.style.removeProperty(e),u=a=$(this,e)),s===u?null:s===i&&u===o?r:(o=u,r=t(i=s,a))}}function lt(e,t){var n,i,o,r,s="style."+t,a="end."+s;return function(){var u=$e(this,e),l=u.on,c=null==u.value[s]?r||(r=st(t)):void 0;l===n&&o===c||(i=(n=l).copy()).on(a,o=c),u.on=i}}function ct(e,t,n){return function(i){this.style.setProperty(e,t.call(this,i),n)}}function pt(e,t,n){function i(){var i=t.apply(this,arguments);return i!==r&&(o=(r=i)&&ct(e,i,n)),o}var o,r;return i._value=t,i}function dt(e){return function(){this.textContent=e}}function ht(e){return function(){var t=e(this);this.textContent=null==t?"":t}}function ft(e){return function(t){this.textContent=e.call(this,t)}}function mt(e){function t(){var t=e.apply(this,arguments);return t!==i&&(n=(i=t)&&ft(t)),n}var n,i;return t._value=e,t}function yt(e,t,n,i){this._groups=e,this._parents=t,this._name=n,this._id=i}function gt(e){return zu().transition(e)}function vt(){return++ec}function bt(e){return+e}function St(e){return e*e}function Ct(e){return e*(2-e)}function wt(e){return((e*=2)<=1?e*e:--e*(2-e)+1)/2}function _t(e){return e*e*e}function Ot(e){return--e*e*e+1}function xt(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}function Et(e){return 1==+e?1:1-Math.cos(e*sc)}function At(e){return Math.sin(e*sc)}function Tt(e){return(1-Math.cos(rc*e))/2}function Rt(e){return 1.0009775171065494*(Math.pow(2,-10*e)-.0009765625)}function Ft(e){return Rt(1-+e)}function Mt(e){return 1-Rt(e)}function It(e){return((e*=2)<=1?Rt(1-e):2-Rt(e-1))/2}function Pt(e){return 1-Math.sqrt(1-e*e)}function Dt(e){return Math.sqrt(1- --e*e)}function $t(e){return((e*=2)<=1?1-Math.sqrt(1-e*e):Math.sqrt(1-(e-=2)*e)+1)/2}function Nt(e){return 1-kt(1-e)}function kt(e){return(e=+e)<ac?yc*e*e:e<lc?yc*(e-=uc)*e+cc:e<dc?yc*(e-=pc)*e+hc:yc*(e-=fc)*e+mc}function Vt(e){return((e*=2)<=1?1-kt(1-e):kt(e-1)+1)/2}function Lt(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))return Oc.time=xe(),Oc;return n}function Bt(){Qu.stopImmediatePropagation()}function Ut(e){return[+e[0],+e[1]]}function Qt(e){return[Ut(e[0]),Ut(e[1])]}function jt(e){return function(t){return el(t,Qu.touches,e)}}function Ht(e){return{type:e}}function qt(){return!Qu.ctrlKey&&!Qu.button}function zt(){var e=this.ownerSVGElement||this;return e.hasAttribute("viewBox")?(e=e.viewBox.baseVal,[[e.x,e.y],[e.x+e.width,e.y+e.height]]):[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]}function Wt(){return navigator.maxTouchPoints||"ontouchstart"in this}function Gt(e){for(;!e.__brush;)if(!(e=e.parentNode))return;return e.__brush}function Yt(e){return e[0][0]===e[1][0]||e[0][1]===e[1][1]}function Kt(e){var t=e.__brush;return t?t.dim.output(t.selection):null}function Jt(){return Xt($c)}function Zt(){return Xt(Nc)}function Xt(e){function t(t){var i=t.property("__brush",u).selectAll(".overlay").data([Ht("overlay")]);i.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",Vc.overlay).merge(i).each(function(){var e=Gt(this).extent;Wu(this).attr("x",e[0][0]).attr("y",e[0][1]).attr("width",e[1][0]-e[0][0]).attr("height",e[1][1]-e[0][1])}),t.selectAll(".selection").data([Ht("selection")]).enter().append("rect").attr("class","selection").attr("cursor",Vc.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var o=t.selectAll(".handle").data(e.handles,function(e){return e.type});o.exit().remove(),o.enter().append("rect").attr("class",function(e){return"handle handle--"+e.type}).attr("cursor",function(e){return Vc[e.type]}),t.each(n).attr("fill","none").attr("pointer-events","all").on("mousedown.brush",r).filter(d).on("touchstart.brush",r).on("touchmove.brush",s).on("touchend.brush touchcancel.brush",a).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function n(){var e=Wu(this),t=Gt(this).selection;t?(e.selectAll(".selection").style("display",null).attr("x",t[0][0]).attr("y",t[0][1]).attr("width",t[1][0]-t[0][0]).attr("height",t[1][1]-t[0][1]),e.selectAll(".handle").style("display",null).attr("x",function(e){return"e"===e.type[e.type.length-1]?t[1][0]-m/2:t[0][0]-m/2}).attr("y",function(e){return"s"===e.type[0]?t[1][1]-m/2:t[0][1]-m/2}).attr("width",function(e){return"n"===e.type||"s"===e.type?t[1][0]-t[0][0]+m:m}).attr("height",function(e){return"e"===e.type||"w"===e.type?t[1][1]-t[0][1]+m:m})):e.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function i(e,t,n){var i=e.__brush.emitter;return!i||n&&i.clean?new o(e,t,n):i}function o(e,t,n){this.that=e,this.args=t,this.state=e.__brush,this.active=0,this.clean=n}function r(){function t(){var e=k(w);!N||S||C||(Math.abs(e[0]-L[0])>Math.abs(e[1]-L[1])?C=!0:S=!0),L=e,b=!0,Fc(),o()}function o(){var e;switch(D=L[0]-V[0],$=L[1]-V[1],O){case Ic:case Mc:x&&(D=Math.max(F-u,Math.min(I-m,D)),c=u+D,y=m+D),E&&($=Math.max(M-d,Math.min(P-g,$)),f=d+$,v=g+$);break;case Pc:x<0?(D=Math.max(F-u,Math.min(I-u,D)),c=u+D,y=m):x>0&&(D=Math.max(F-m,Math.min(I-m,D)),c=u,y=m+D),E<0?($=Math.max(M-d,Math.min(P-d,$)),f=d+$,v=g):E>0&&($=Math.max(M-g,Math.min(P-g,$)),f=d,v=g+$);break;case Dc:x&&(c=Math.max(F,Math.min(I,u-D*x)),y=Math.max(F,Math.min(I,m+D*x))),E&&(f=Math.max(M,Math.min(P,d-$*E)),v=Math.max(M,Math.min(P,g+$*E)))}y<c&&(x*=-1,e=u,u=m,m=e,e=c,c=y,y=e,_ in Lc&&Q.attr("cursor",Vc[_=Lc[_]])),v<f&&(E*=-1,e=d,d=g,g=e,e=f,f=v,v=e,_ in Bc&&Q.attr("cursor",Vc[_=Bc[_]])),A.selection&&(R=A.selection),S&&(c=R[0][0],y=R[1][0]),C&&(f=R[0][1],v=R[1][1]),R[0][0]===c&&R[0][1]===f&&R[1][0]===y&&R[1][1]===v||(A.selection=[[c,f],[y,v]],n.call(w),B.brush())}function r(){if(Bt(),Qu.touches){if(Qu.touches.length)return;l&&clearTimeout(l),l=setTimeout(function(){l=null},500)}else be(Qu.view,b),j.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);U.attr("pointer-events","all"),Q.attr("cursor",Vc.overlay),A.selection&&(R=A.selection),Yt(R)&&(A.selection=null,n.call(w)),B.end()}function s(){switch(Qu.keyCode){case 16:N=x&&E;break;case 18:O===Pc&&(x&&(m=y-D*x,u=c+D*x),E&&(g=v-$*E,d=f+$*E),O=Dc,o());break;case 32:O!==Pc&&O!==Dc||(x<0?m=y-D:x>0&&(u=c-D),E<0?g=v-$:E>0&&(d=f-$),O=Ic,Q.attr("cursor",Vc.selection),o());break;default:return}Fc()}function a(){switch(Qu.keyCode){case 16:N&&(S=C=N=!1,o());break;case 18:O===Dc&&(x<0?m=y:x>0&&(u=c),E<0?g=v:E>0&&(d=f),O=Pc,o());break;case 32:O===Ic&&(Qu.altKey?(x&&(m=y-D*x,u=c+D*x),E&&(g=v-$*E,d=f+$*E),O=Dc):(x<0?m=y:x>0&&(u=c),E<0?g=v:E>0&&(d=f),O=Pc),Q.attr("cursor",Vc[_]),o());break;default:return}Fc()}if((!l||Qu.touches)&&p.apply(this,arguments)){var u,c,d,f,m,y,g,v,b,S,C,w=this,_=Qu.target.__data__.type,O="selection"===(h&&Qu.metaKey?_="overlay":_)?Mc:h&&Qu.altKey?Dc:Pc,x=e===Nc?null:Uc[_],E=e===$c?null:Qc[_],A=Gt(w),T=A.extent,R=A.selection,F=T[0][0],M=T[0][1],I=T[1][0],P=T[1][1],D=0,$=0,N=x&&E&&h&&Qu.shiftKey,k=Qu.touches?jt(Qu.changedTouches[0].identifier):Zu,V=k(w),L=V,B=i(w,arguments,!0).beforestart();"overlay"===_?(R&&(b=!0),A.selection=R=[[u=e===Nc?F:V[0],d=e===$c?M:V[1]],[m=e===Nc?I:u,g=e===$c?P:d]]):(u=R[0][0],d=R[0][1],m=R[1][0],g=R[1][1]),c=u,f=d,y=m,v=g;var U=Wu(w).attr("pointer-events","none"),Q=U.selectAll(".overlay").attr("cursor",Vc[_]);if(Qu.touches)B.moved=t,B.ended=r;else{var j=Wu(Qu.view).on("mousemove.brush",t,!0).on("mouseup.brush",r,!0);h&&j.on("keydown.brush",s,!0).on("keyup.brush",a,!0),il(Qu.view)}Bt(),Fl(w),n.call(w),B.start()}}function s(){i(this,arguments).moved()}function a(){i(this,arguments).ended()}function u(){var t=this.__brush||{selection:null};return t.extent=Qt(c.apply(this,arguments)),t.dim=e,t}var l,c=zt,p=qt,d=Wt,h=!0,f=eu("start","brush","end"),m=6;return t.move=function(t,o){t.selection?t.on("start.brush",function(){i(this,arguments).beforestart().start()}).on("interrupt.brush end.brush",function(){i(this,arguments).end()}).tween("brush",function(){function t(e){s.selection=1===e&&null===l?null:c(e),n.call(r),a.brush()}var r=this,s=r.__brush,a=i(r,arguments),u=s.selection,l=e.input("function"==typeof o?o.apply(this,arguments):o,s.extent),c=Object(ul.a)(u,l);return null!==u&&null!==l?t:t(1)}):t.each(function(){var t=this,r=arguments,s=t.__brush,a=e.input("function"==typeof o?o.apply(t,r):o,s.extent),u=i(t,r).beforestart();Fl(t),s.selection=null===a?null:a,n.call(t),u.start().brush().end()})},t.clear=function(e){t.move(e,null)},o.prototype={beforestart:function(){return 1==++this.active&&(this.state.emitter=this,this.starting=!0),this},start:function(){return this.starting?(this.starting=!1,this.emit("start")):this.emit("brush"),this},brush:function(){return this.emit("brush"),this},end:function(){return 0==--this.active&&(delete this.state.emitter,this.emit("end")),this},emit:function(n){ce(new Rc(t,n,e.output(this.state.selection)),f.apply,f,[n,this.that,this.args])}},t.extent=function(e){return arguments.length?(c="function"==typeof e?e:Tc(Qt(e)),t):c},t.filter=function(e){return arguments.length?(p="function"==typeof e?e:Tc(!!e),t):p},t.touchable=function(e){return arguments.length?(d="function"==typeof e?e:Tc(!!e),t):d},t.handleSize=function(e){return arguments.length?(m=+e,t):m},t.keyModifiers=function(e){return arguments.length?(h=!!e,t):h},t.on=function(){var e=f.on.apply(f,arguments);return e===f?t:e},t}function en(e){return function(t,n){return e(t.source.value+t.target.value,n.source.value+n.target.value)}}function tn(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function nn(){return new tn}function on(e){return e.source}function rn(e){return e.target}function sn(e){return e.radius}function an(e){return e.startAngle}function un(e){return e.endAngle}function ln(e,t){for(var n=t[0],i=t[1],o=-1,r=0,s=e.length,a=s-1;r<s;a=r++){var u=e[r],l=u[0],c=u[1],p=e[a],d=p[0],h=p[1];if(cn(u,p,t))return 0;c>i!=h>i&&n<(d-l)*(i-c)/(h-c)+l&&(o=-o)}return o}function cn(e,t,n){var i;return pn(e,t,n)&&dn(e[i=+(e[0]===t[0])],n[i],t[i])}function pn(e,t,n){return(t[0]-e[0])*(n[1]-e[1])==(n[0]-e[0])*(t[1]-e[1])}function dn(e,t,n){return e<=t&&t<=n||n<=t&&t<=e}function hn(e,t,n){for(var i=e.width,o=e.height,r=1+(n<<1),s=0;s<o;++s)for(var a=0,u=0;a<i+n;++a)a<i&&(u+=e.data[a+s*i]),a>=n&&(a>=r&&(u-=e.data[a-r+s*i]),t.data[a-n+s*i]=u/Math.min(a+1,i-1+r-a,r))}function fn(e,t,n){for(var i=e.width,o=e.height,r=1+(n<<1),s=0;s<i;++s)for(var a=0,u=0;a<o+n;++a)a<o&&(u+=e.data[s+a*i]),a>=n&&(a>=r&&(u-=e.data[s+(a-r)*i]),t.data[s+(a-n)*i]=u/Math.min(a+1,o-1+r-a,r))}function mn(e){return e[0]}function yn(e){return e[1]}function gn(){return 1}function vn(e){return new Function("d","return {"+e.map(function(e,t){return JSON.stringify(e)+": d["+t+'] || ""'}).join(",")+"}")}function bn(e,t){var n=vn(e);return function(i,o){return t(n(i),o,e)}}function Sn(e){var t=Object.create(null),n=[];return e.forEach(function(e){for(var i in e)i in t||n.push(t[i]=i)}),n}function Cn(e,t){var n=e+"",i=n.length;return i<t?new Array(t-i+1).join(0)+n:n}function wn(e){return e<0?"-"+Cn(-e,6):e>9999?"+"+Cn(e,6):Cn(e,4)}function _n(e){var t=e.getUTCHours(),n=e.getUTCMinutes(),i=e.getUTCSeconds(),o=e.getUTCMilliseconds();return isNaN(e)?"Invalid Date":wn(e.getUTCFullYear(),4)+"-"+Cn(e.getUTCMonth()+1,2)+"-"+Cn(e.getUTCDate(),2)+(o?"T"+Cn(t,2)+":"+Cn(n,2)+":"+Cn(i,2)+"."+Cn(o,3)+"Z":i?"T"+Cn(t,2)+":"+Cn(n,2)+":"+Cn(i,2)+"Z":n||t?"T"+Cn(t,2)+":"+Cn(n,2)+"Z":"")}function On(e){for(var t in e){var n,i,o=e[t].trim();if(o)if("true"===o)o=!0;else if("false"===o)o=!1;else if("NaN"===o)o=NaN;else if(isNaN(n=+o)){if(!(i=o.match(/^([-+]\d{2})?\d{4}(-\d{2}(-\d{2})?)?(T\d{2}:\d{2}(:\d{2}(\.\d{3})?)?(Z|[-+]\d{2}:\d{2})?)?$/)))continue;kp&&i[4]&&!i[7]&&(o=o.replace(/-/g,"/").replace(/T/," ")),o=new Date(o)}else o=n;else o=null;e[t]=o}return e}function xn(e){if(!e.ok)throw new Error(e.status+" "+e.statusText);return e.blob()}function En(e){if(!e.ok)throw new Error(e.status+" "+e.statusText);return e.arrayBuffer()}function An(e){if(!e.ok)throw new Error(e.status+" "+e.statusText);return e.text()}function Tn(e){return function(t,n,i){return 2===arguments.length&&"function"==typeof n&&(i=n,n=void 0),Bp(t,n).then(function(t){return e(t,i)})}}function Rn(e,t,n,i){3===arguments.length&&"function"==typeof n&&(i=n,n=void 0);var o=Sp(e);return Bp(t,n).then(function(e){return o.parse(e,i)})}function Fn(e){if(!e.ok)throw new Error(e.status+" "+e.statusText);if(204!==e.status&&205!==e.status)return e.json()}function Mn(e){return function(t,n){return Bp(t,n).then(function(t){return(new DOMParser).parseFromString(t,e)})}}function In(e,t,n,i){if(isNaN(t)||isNaN(n))return e;var o,r,s,a,u,l,c,p,d,h=e._root,f={data:i},m=e._x0,y=e._y0,g=e._x1,v=e._y1;if(!h)return e._root=f,e;for(;h.length;)if((l=t>=(r=(m+g)/2))?m=r:g=r,(c=n>=(s=(y+v)/2))?y=s:v=s,o=h,!(h=h[p=c<<1|l]))return o[p]=f,e;if(a=+e._x.call(null,h.data),u=+e._y.call(null,h.data),t===a&&n===u)return f.next=h,o?o[p]=f:e._root=f,e;do{o=o?o[p]=new Array(4):e._root=new Array(4),(l=t>=(r=(m+g)/2))?m=r:g=r,(c=n>=(s=(y+v)/2))?y=s:v=s}while((p=c<<1|l)==(d=(u>=s)<<1|a>=r));return o[d]=h,o[p]=f,e}function Pn(e){var t,n,i,o,r=e.length,s=new Array(r),a=new Array(r),u=1/0,l=1/0,c=-1/0,p=-1/0;for(n=0;n<r;++n)isNaN(i=+this._x.call(null,t=e[n]))||isNaN(o=+this._y.call(null,t))||(s[n]=i,a[n]=o,i<u&&(u=i),i>c&&(c=i),o<l&&(l=o),o>p&&(p=o));if(u>c||l>p)return this;for(this.cover(u,l).cover(c,p),n=0;n<r;++n)In(this,s[n],a[n],e[n]);return this}function Dn(e){for(var t=0,n=e.length;t<n;++t)this.remove(e[t]);return this}function $n(e){return e[0]}function Nn(e){return e[1]}function kn(e,t,n){var i=new Vn(null==t?$n:t,null==n?Nn:n,NaN,NaN,NaN,NaN);return null==e?i:i.addAll(e)}function Vn(e,t,n,i,o,r){this._x=e,this._y=t,this._x0=n,this._y0=i,this._x1=o,this._y1=r,this._root=void 0}function Ln(e){for(var t={data:e.data},n=t;e=e.next;)n=n.next={data:e.data};return t}function Bn(e){return e.x+e.vx}function Un(e){return e.y+e.vy}function Qn(e){return e.index}function jn(e,t){var n=e.get(t);if(!n)throw new Error("missing: "+t);return n}function Hn(e){return e.x}function qn(e){return e.y}function zn(){this.reset()}function Wn(e,t,n){var i=e.s=t+n,o=i-t,r=i-o;e.t=t-r+(n-o)}function Gn(e){return e>1?0:e<-1?nh:Math.acos(e)}function Yn(e){return e>1?ih:e<-1?-ih:Math.asin(e)}function Kn(e){return(e=yh(e/2))*e}function Jn(){}function Zn(e,t){e&&Ch.hasOwnProperty(e.type)&&Ch[e.type](e,t)}function Xn(e,t,n){var i,o=-1,r=e.length-n;for(t.lineStart();++o<r;)i=e[o],t.point(i[0],i[1],i[2]);t.lineEnd()}function ei(e,t){var n=-1,i=e.length;for(t.polygonStart();++n<i;)Xn(e[n],t,1);t.polygonEnd()}function ti(){xh.point=ii}function ni(){oi(wd,_d)}function ii(e,t){xh.point=oi,wd=e,_d=t,e*=ah,t*=ah,Od=e,xd=ph(t=t/2+oh),Ed=yh(t)}function oi(e,t){e*=ah,t*=ah,t=t/2+oh;var n=e-Od,i=n>=0?1:-1,o=i*n,r=ph(t),s=yh(t),a=Ed*s,u=xd*r+a*ph(o),l=a*i*yh(o);_h.add(ch(l,u)),Od=e,xd=r,Ed=s}function ri(e){return[ch(e[1],e[0]),Yn(e[2])]}function si(e){var t=e[0],n=e[1],i=ph(n);return[i*ph(t),i*yh(t),yh(n)]}function ai(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function ui(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]}function li(e,t){e[0]+=t[0],e[1]+=t[1],e[2]+=t[2]}function ci(e,t){return[e[0]*t,e[1]*t,e[2]*t]}function pi(e){var t=vh(e[0]*e[0]+e[1]*e[1]+e[2]*e[2]);e[0]/=t,e[1]/=t,e[2]/=t}function di(e,t){$d.push(Nd=[Ad=e,Rd=e]),t<Td&&(Td=t),t>Fd&&(Fd=t)}function hi(e,t){var n=si([e*ah,t*ah]);if(Dd){var i=ui(Dd,n),o=[i[1],-i[0],0],r=ui(o,i);pi(r),r=ri(r);var s,a=e-Md,u=a>0?1:-1,l=r[0]*sh*u,c=uh(a)>180;c^(u*Md<l&&l<u*e)?(s=r[1]*sh)>Fd&&(Fd=s):(l=(l+360)%360-180,c^(u*Md<l&&l<u*e)?(s=-r[1]*sh)<Td&&(Td=s):(t<Td&&(Td=t),t>Fd&&(Fd=t))),c?e<Md?bi(Ad,e)>bi(Ad,Rd)&&(Rd=e):bi(e,Rd)>bi(Ad,Rd)&&(Ad=e):Rd>=Ad?(e<Ad&&(Ad=e),e>Rd&&(Rd=e)):e>Md?bi(Ad,e)>bi(Ad,Rd)&&(Rd=e):bi(e,Rd)>bi(Ad,Rd)&&(Ad=e)}else $d.push(Nd=[Ad=e,Rd=e]);t<Td&&(Td=t),t>Fd&&(Fd=t),Dd=n,Md=e}function fi(){Th.point=hi}function mi(){Nd[0]=Ad,Nd[1]=Rd,Th.point=di,Dd=null}function yi(e,t){if(Dd){var n=e-Md;Ah.add(uh(n)>180?n+(n>0?360:-360):n)}else Id=e,Pd=t;xh.point(e,t),hi(e,t)}function gi(){xh.lineStart()}function vi(){yi(Id,Pd),xh.lineEnd(),uh(Ah)>eh&&(Ad=-(Rd=180)),Nd[0]=Ad,Nd[1]=Rd,Dd=null}function bi(e,t){return(t-=e)<0?t+360:t}function Si(e,t){return e[0]-t[0]}function Ci(e,t){return e[0]<=e[1]?e[0]<=t&&t<=e[1]:t<e[0]||e[1]<t}function wi(e,t){e*=ah,t*=ah;var n=ph(t);_i(n*ph(e),n*yh(e),yh(t))}function _i(e,t,n){++kd,Ld+=(e-Ld)/kd,Bd+=(t-Bd)/kd,Ud+=(n-Ud)/kd}function Oi(){Fh.point=xi}function xi(e,t){e*=ah,t*=ah;var n=ph(t);Kd=n*ph(e),Jd=n*yh(e),Zd=yh(t),Fh.point=Ei,_i(Kd,Jd,Zd)}function Ei(e,t){e*=ah,t*=ah;var n=ph(t),i=n*ph(e),o=n*yh(e),r=yh(t),s=ch(vh((s=Jd*r-Zd*o)*s+(s=Zd*i-Kd*r)*s+(s=Kd*o-Jd*i)*s),Kd*i+Jd*o+Zd*r);Vd+=s,Qd+=s*(Kd+(Kd=i)),jd+=s*(Jd+(Jd=o)),Hd+=s*(Zd+(Zd=r)),_i(Kd,Jd,Zd)}function Ai(){Fh.point=wi}function Ti(){Fh.point=Fi}function Ri(){Mi(Gd,Yd),Fh.point=wi}function Fi(e,t){Gd=e,Yd=t,e*=ah,t*=ah,Fh.point=Mi;var n=ph(t);Kd=n*ph(e),Jd=n*yh(e),Zd=yh(t),_i(Kd,Jd,Zd)}function Mi(e,t){e*=ah,t*=ah;var n=ph(t),i=n*ph(e),o=n*yh(e),r=yh(t),s=Jd*r-Zd*o,a=Zd*i-Kd*r,u=Kd*o-Jd*i,l=vh(s*s+a*a+u*u),c=Yn(l),p=l&&-c/l;qd+=p*s,zd+=p*a,Wd+=p*u,Vd+=c,Qd+=c*(Kd+(Kd=i)),jd+=c*(Jd+(Jd=o)),Hd+=c*(Zd+(Zd=r)),_i(Kd,Jd,Zd)}function Ii(e,t){return[uh(e)>nh?e+Math.round(-e/rh)*rh:e,t]}function Pi(e,t,n){return(e%=rh)?t||n?Ph($i(e),Ni(t,n)):$i(e):t||n?Ni(t,n):Ii}function Di(e){return function(t,n){return t+=e,[t>nh?t-rh:t<-nh?t+rh:t,n]}}function $i(e){var t=Di(e);return t.invert=Di(-e),t}function Ni(e,t){function n(e,t){var n=ph(t),a=ph(e)*n,u=yh(e)*n,l=yh(t),c=l*i+a*o;return[ch(u*r-c*s,a*i-l*o),Yn(c*r+u*s)]}var i=ph(e),o=yh(e),r=ph(t),s=yh(t);return n.invert=function(e,t){var n=ph(t),a=ph(e)*n,u=yh(e)*n,l=yh(t),c=l*r-u*s;return[ch(u*r+l*s,a*i+c*o),Yn(c*i-a*o)]},n}function ki(e,t,n,i,o,r){if(n){var s=ph(t),a=yh(t),u=i*n;null==o?(o=t+i*rh,r=t-u/2):(o=Vi(s,o),r=Vi(s,r),(i>0?o<r:o>r)&&(o+=i*rh));for(var l,c=o;i>0?c>r:c<r;c-=u)l=ri([s,-a*ph(c),-a*yh(c)]),e.point(l[0],l[1])}}function Vi(e,t){t=si(t),t[0]-=e,pi(t);var n=Gn(-t[1]);return((-t[2]<0?-n:n)+rh-eh)%rh}function Li(e,t,n,i){this.x=e,this.z=t,this.o=n,this.e=i,this.v=!1,this.n=this.p=null}function Bi(e){if(t=e.length){for(var t,n,i=0,o=e[0];++i<t;)o.n=n=e[i],n.p=o,o=n;o.n=n=e[0],n.p=o}}function Ui(e){return uh(e[0])<=nh?e[0]:gh(e[0])*((uh(e[0])+nh)%rh-nh)}function Qi(e){return e.length>1}function ji(e,t){return((e=e.x)[0]<0?e[1]-ih-eh:ih-e[1])-((t=t.x)[0]<0?t[1]-ih-eh:ih-t[1])}function Hi(e){var t,n=NaN,i=NaN,o=NaN;return{lineStart:function(){e.lineStart(),t=1},point:function(r,s){var a=r>0?nh:-nh,u=uh(r-n);uh(u-nh)<eh?(e.point(n,i=(i+s)/2>0?ih:-ih),e.point(o,i),e.lineEnd(),e.lineStart(),e.point(a,i),e.point(r,i),t=0):o!==a&&u>=nh&&(uh(n-o)<eh&&(n-=o*eh),uh(r-a)<eh&&(r-=a*eh),i=qi(n,i,r,s),e.point(o,i),e.lineEnd(),e.lineStart(),e.point(a,i),t=0),e.point(n=r,i=s),o=a},lineEnd:function(){e.lineEnd(),n=i=NaN},clean:function(){return 2-t}}}function qi(e,t,n,i){var o,r,s=yh(e-n);return uh(s)>eh?lh((yh(t)*(r=ph(i))*yh(n)-yh(i)*(o=ph(t))*yh(e))/(o*r*s)):(t+i)/2}function zi(e,t,n,i){var o;if(null==e)o=n*ih,i.point(-nh,o),i.point(0,o),i.point(nh,o),i.point(nh,0),i.point(nh,-o),i.point(0,-o),i.point(-nh,-o),i.point(-nh,0),i.point(-nh,o);else if(uh(e[0]-t[0])>eh){var r=e[0]<t[0]?nh:-nh;o=n*r/2,i.point(-r,o),i.point(0,o),i.point(r,o)}else i.point(t[0],t[1])}function Wi(e,t,n,i){function o(o,r){return e<=o&&o<=n&&t<=r&&r<=i}function r(o,r,a,l){var c=0,p=0;if(null==o||(c=s(o,a))!==(p=s(r,a))||u(o,r)<0^a>0)do{l.point(0===c||3===c?e:n,c>1?i:t)}while((c=(c+a+4)%4)!==p);else l.point(r[0],r[1])}function s(i,o){return uh(i[0]-e)<eh?o>0?0:3:uh(i[0]-n)<eh?o>0?2:1:uh(i[1]-t)<eh?o>0?1:0:o>0?3:2}function a(e,t){return u(e.x,t.x)}function u(e,t){var n=s(e,1),i=s(t,1);return n!==i?n-i:0===n?t[1]-e[1]:1===n?e[0]-t[0]:2===n?e[1]-t[1]:t[0]-e[0]}return function(s){function u(e,t){o(e,t)&&E.point(e,t)}function l(){for(var t=0,n=0,o=y.length;n<o;++n)for(var r,s,a=y[n],u=1,l=a.length,c=a[0],p=c[0],d=c[1];u<l;++u)r=p,s=d,c=a[u],p=c[0],d=c[1],s<=i?d>i&&(p-r)*(i-s)>(d-s)*(e-r)&&++t:d<=i&&(p-r)*(i-s)<(d-s)*(e-r)&&--t;return t}function c(){E=A,m=[],y=[],x=!0}function p(){var e=l(),t=x&&e,n=(m=Object(qa.n)(m)).length;(t||n)&&(s.polygonStart(),t&&(s.lineStart(),r(null,null,1,s),s.lineEnd()),n&&Yh(m,a,e,r,s),s.polygonEnd()),E=s,m=y=g=null}function d(){T.point=f,y&&y.push(g=[]),O=!0,_=!1,C=w=NaN}function h(){m&&(f(v,b),S&&_&&A.rejoin(),m.push(A.result())),T.point=u,_&&E.lineEnd()}function f(r,s){var a=o(r,s);if(y&&g.push([r,s]),O)v=r,b=s,S=a,O=!1,a&&(E.lineStart(),E.point(r,s));else if(a&&_)E.point(r,s);else{var u=[C=Math.max(of,Math.min(nf,C)),w=Math.max(of,Math.min(nf,w))],l=[r=Math.max(of,Math.min(nf,r)),s=Math.max(of,Math.min(nf,s))];tf(u,l,e,t,n,i)?(_||(E.lineStart(),E.point(u[0],u[1])),E.point(l[0],l[1]),a||E.lineEnd(),x=!1):a&&(E.lineStart(),E.point(r,s),x=!1)}C=r,w=s,_=a}var m,y,g,v,b,S,C,w,_,O,x,E=s,A=Wh(),T={point:u,lineStart:d,lineEnd:h,polygonStart:c,polygonEnd:p};return T}}function Gi(){af.point=Ki,af.lineEnd=Yi}function Yi(){af.point=af.lineEnd=Jn}function Ki(e,t){e*=ah,t*=ah,Dh=e,$h=yh(t),Nh=ph(t),af.point=Ji}function Ji(e,t){e*=ah,t*=ah;var n=yh(t),i=ph(t),o=uh(e-Dh),r=ph(o),s=yh(o),a=i*s,u=Nh*n-$h*i*r,l=$h*n+Nh*i*r;sf.add(ch(vh(a*a+u*u),l)),Dh=e,$h=n,Nh=i}function Zi(e,t){return!(!e||!hf.hasOwnProperty(e.type))&&hf[e.type](e,t)}function Xi(e,t){return 0===pf(e,t)}function eo(e,t){for(var n,i,o,r=0,s=e.length;r<s;r++){if(0===(i=pf(e[r],t)))return!0;if(r>0&&(o=pf(e[r],e[r-1]))>0&&n<=o&&i<=o&&(n+i-o)*(1-Math.pow((n-i)/o,2))<th*o)return!0;n=i}return!1}function to(e,t){return!!Jh(e.map(no),io(t))}function no(e){return e=e.map(io),e.pop(),e}function io(e){return[e[0]*ah,e[1]*ah]}function oo(e,t,n){var i=Object(qa.s)(e,t-eh,n).concat(t);return function(e){return i.map(function(t){return[e,t]})}}function ro(e,t,n){var i=Object(qa.s)(e,t-eh,n).concat(t);return function(e){return i.map(function(t){return[t,e]})}}function so(){function e(){return{type:"MultiLineString",coordinates:t()}}function t(){return Object(qa.s)(dh(r/y)*y,o,y).map(d).concat(Object(qa.s)(dh(l/g)*g,u,g).map(h)).concat(Object(qa.s)(dh(i/f)*f,n,f).filter(function(e){return uh(e%y)>eh}).map(c)).concat(Object(qa.s)(dh(a/m)*m,s,m).filter(function(e){return uh(e%g)>eh}).map(p))}var n,i,o,r,s,a,u,l,c,p,d,h,f=10,m=f,y=90,g=360,v=2.5;return e.lines=function(){return t().map(function(e){return{type:"LineString",coordinates:e}})},e.outline=function(){return{type:"Polygon",coordinates:[d(r).concat(h(u).slice(1),d(o).reverse().slice(1),h(l).reverse().slice(1))]}},e.extent=function(t){return arguments.length?e.extentMajor(t).extentMinor(t):e.extentMinor()},e.extentMajor=function(t){return arguments.length?(r=+t[0][0],o=+t[1][0],l=+t[0][1],u=+t[1][1],r>o&&(t=r,r=o,o=t),l>u&&(t=l,l=u,u=t),e.precision(v)):[[r,l],[o,u]]},e.extentMinor=function(t){return arguments.length?(i=+t[0][0],n=+t[1][0],a=+t[0][1],s=+t[1][1],i>n&&(t=i,i=n,n=t),a>s&&(t=a,a=s,s=t),e.precision(v)):[[i,a],[n,s]]},e.step=function(t){return arguments.length?e.stepMajor(t).stepMinor(t):e.stepMinor()},e.stepMajor=function(t){return arguments.length?(y=+t[0],g=+t[1],e):[y,g]},e.stepMinor=function(t){return arguments.length?(f=+t[0],m=+t[1],e):[f,m]},e.precision=function(t){return arguments.length?(v=+t,c=oo(a,s,90),p=ro(i,n,v),d=oo(l,u,90),h=ro(r,o,v),e):v},e.extentMajor([[-180,-90+eh],[180,90-eh]]).extentMinor([[-180,-80-eh],[180,80+eh]])}function ao(){return so()()}function uo(){bf.point=lo}function lo(e,t){bf.point=co,kh=Lh=e,Vh=Bh=t}function co(e,t){vf.add(Bh*e-Lh*t),Lh=e,Bh=t}function po(){co(kh,Vh)}function ho(e,t){e<Cf&&(Cf=e),e>_f&&(_f=e),t<wf&&(wf=t),t>Of&&(Of=t)}function fo(e,t){Af+=e,Tf+=t,++Rf}function mo(){Nf.point=yo}function yo(e,t){Nf.point=go,fo(jh=e,Hh=t)}function go(e,t){var n=e-jh,i=t-Hh,o=vh(n*n+i*i);Ff+=o*(jh+e)/2,Mf+=o*(Hh+t)/2,If+=o,fo(jh=e,Hh=t)}function vo(){Nf.point=fo}function bo(){Nf.point=Co}function So(){wo(Uh,Qh)}function Co(e,t){Nf.point=wo,fo(Uh=jh=e,Qh=Hh=t)}function wo(e,t){var n=e-jh,i=t-Hh,o=vh(n*n+i*i);Ff+=o*(jh+e)/2,Mf+=o*(Hh+t)/2,If+=o,o=Hh*e-jh*t,Pf+=o*(jh+e),Df+=o*(Hh+t),$f+=3*o,fo(jh=e,Hh=t)}function _o(e){this._context=e}function Oo(e,t){Hf.point=xo,Lf=Uf=e,Bf=Qf=t}function xo(e,t){Uf-=e,Qf-=t,jf.add(vh(Uf*Uf+Qf*Qf)),Uf=e,Qf=t}function Eo(){this._string=[]}function Ao(e){return"m0,"+e+"a"+e+","+e+" 0 1,1 0,"+-2*e+"a"+e+","+e+" 0 1,1 0,"+2*e+"z"}function To(e){return function(t){var n=new Ro;for(var i in e)n[i]=e[i];return n.stream=t,n}}function Ro(){}function Fo(e,t,n){var i=e.clipExtent&&e.clipExtent();return e.scale(150).translate([0,0]),null!=i&&e.clipExtent(null),wh(n,e.stream(Ef)),t(Ef.result()),null!=i&&e.clipExtent(i),e}function Mo(e,t,n){return Fo(e,function(n){var i=t[1][0]-t[0][0],o=t[1][1]-t[0][1],r=Math.min(i/(n[1][0]-n[0][0]),o/(n[1][1]-n[0][1])),s=+t[0][0]+(i-r*(n[1][0]+n[0][0]))/2,a=+t[0][1]+(o-r*(n[1][1]+n[0][1]))/2;e.scale(150*r).translate([s,a])},n)}function Io(e,t,n){return Mo(e,[[0,0],t],n)}function Po(e,t,n){return Fo(e,function(n){var i=+t,o=i/(n[1][0]-n[0][0]),r=(i-o*(n[1][0]+n[0][0]))/2,s=-o*n[0][1];e.scale(150*o).translate([r,s])},n)}function Do(e,t,n){return Fo(e,function(n){var i=+t,o=i/(n[1][1]-n[0][1]),r=-o*n[0][0],s=(i-o*(n[1][1]+n[0][1]))/2;e.scale(150*o).translate([r,s])},n)}function $o(e){return To({point:function(t,n){t=e(t,n),this.stream.point(t[0],t[1])}})}function No(e,t){function n(i,o,r,s,a,u,l,c,p,d,h,f,m,y){var g=l-i,v=c-o,b=g*g+v*v;if(b>4*t&&m--){var S=s+d,C=a+h,w=u+f,_=vh(S*S+C*C+w*w),O=Yn(w/=_),x=uh(uh(w)-1)<eh||uh(r-p)<eh?(r+p)/2:ch(C,S),E=e(x,O),A=E[0],T=E[1],R=A-i,F=T-o,M=v*R-g*F;(M*M/b>t||uh((g*R+v*F)/b-.5)>.3||s*d+a*h+u*f<Yf)&&(n(i,o,r,s,a,u,A,T,x,S/=_,C/=_,w,m,y),y.point(A,T),n(A,T,x,S,C,w,l,c,p,d,h,f,m,y))}}return function(t){function i(n,i){n=e(n,i),t.point(n[0],n[1])}function o(){g=NaN,w.point=r,t.lineStart()}function r(i,o){var r=si([i,o]),s=e(i,o);n(g,v,y,b,S,C,g=s[0],v=s[1],y=i,b=r[0],S=r[1],C=r[2],Gf,t),t.point(g,v)}function s(){w.point=i,t.lineEnd()}function a(){o(),w.point=u,w.lineEnd=l}function u(e,t){r(c=e,t),p=g,d=v,h=b,f=S,m=C,w.point=r}function l(){n(g,v,y,b,S,C,p,d,c,h,f,m,Gf,t),w.lineEnd=s,s()}var c,p,d,h,f,m,y,g,v,b,S,C,w={point:i,lineStart:o,lineEnd:s,polygonStart:function(){t.polygonStart(),w.lineStart=a},polygonEnd:function(){t.polygonEnd(),w.lineStart=o}};return w}}function ko(e){return To({point:function(t,n){var i=e(t,n);return this.stream.point(i[0],i[1])}})}function Vo(e,t,n,i,o){function r(r,s){return r*=i,s*=o,[t+e*r,n-e*s]}return r.invert=function(r,s){return[(r-t)/e*i,(n-s)/e*o]},r}function Lo(e,t,n,i,o,r){function s(e,r){return e*=i,r*=o,[l*e-c*r+t,n-c*e-l*r]}var a=ph(r),u=yh(r),l=a*e,c=u*e,p=a/e,d=u/e,h=(u*n-a*t)/e,f=(u*t+a*n)/e;return s.invert=function(e,t){return[i*(p*e-d*t+h),o*(f-d*e-p*t)]},s}function Bo(e){return Uo(function(){return e})()}function Uo(e){function t(e){return d(e[0]*ah,e[1]*ah)}function n(e){return(e=d.invert(e[0],e[1]))&&[e[0]*sh,e[1]*sh]}function i(){var e=Lo(m,0,0,O,x,_).apply(null,r(v,b)),t=(_?Lo:Vo)(m,y-e[0],g-e[1],O,x,_);return s=Pi(S,C,w),p=Ph(r,t),d=Ph(s,p),c=Kf(p,F),o()}function o(){return h=f=null,t}var r,s,a,u,l,c,p,d,h,f,m=150,y=480,g=250,v=0,b=0,S=0,C=0,w=0,_=0,O=1,x=1,E=null,A=Xh,T=null,R=yf,F=.5;return t.stream=function(e){return h&&f===e?h:h=Jf(ko(s)(A(c(R(f=e)))))},t.preclip=function(e){return arguments.length?(A=e,E=void 0,o()):A},t.postclip=function(e){return arguments.length?(R=e,T=a=u=l=null,o()):R},t.clipAngle=function(e){return arguments.length?(A=+e?ef(E=e*ah):(E=null,Xh),o()):E*sh},t.clipExtent=function(e){return arguments.length?(R=null==e?(T=a=u=l=null,yf):Wi(T=+e[0][0],a=+e[0][1],u=+e[1][0],l=+e[1][1]),o()):null==T?null:[[T,a],[u,l]]},t.scale=function(e){return arguments.length?(m=+e,i()):m},t.translate=function(e){return arguments.length?(y=+e[0],g=+e[1],i()):[y,g]},t.center=function(e){return arguments.length?(v=e[0]%360*ah,b=e[1]%360*ah,i()):[v*sh,b*sh]},t.rotate=function(e){return arguments.length?(S=e[0]%360*ah,C=e[1]%360*ah,w=e.length>2?e[2]%360*ah:0,i()):[S*sh,C*sh,w*sh]},t.angle=function(e){return arguments.length?(_=e%360*ah,i()):_*sh},t.reflectX=function(e){return arguments.length?(O=e?-1:1,i()):O<0},t.reflectY=function(e){return arguments.length?(x=e?-1:1,i()):x<0},t.precision=function(e){return arguments.length?(c=Kf(p,F=e*e),o()):vh(F)},t.fitExtent=function(e,n){return Mo(t,e,n)},t.fitSize=function(e,n){return Io(t,e,n)},t.fitWidth=function(e,n){return Po(t,e,n)},t.fitHeight=function(e,n){return Do(t,e,n)},function(){return r=e.apply(this,arguments),t.invert=r.invert&&n,i()}}function Qo(e){var t=0,n=nh/3,i=Uo(e),o=i(t,n);return o.parallels=function(e){return arguments.length?i(t=e[0]*ah,n=e[1]*ah):[t*sh,n*sh]},o}function jo(e){function t(e,t){return[e*n,yh(t)/n]}var n=ph(e);return t.invert=function(e,t){return[e/n,Yn(t*n)]},t}function Ho(e,t){function n(e,t){var n=vh(r-2*o*yh(t))/o;return[n*yh(e*=o),s-n*ph(e)]}var i=yh(e),o=(i+yh(t))/2;if(uh(o)<eh)return jo(e);var r=1+i*(2*o-i),s=vh(r)/o;return n.invert=function(e,t){var n=s-t,i=ch(e,uh(n))*gh(n);return n*o<0&&(i-=nh*gh(e)*gh(n)),[i/o,Yn((r-(e*e+n*n)*o*o)/(2*o))]},n}function qo(e){var t=e.length;return{point:function(n,i){for(var o=-1;++o<t;)e[o].point(n,i)},sphere:function(){for(var n=-1;++n<t;)e[n].sphere()},lineStart:function(){for(var n=-1;++n<t;)e[n].lineStart()},lineEnd:function(){for(var n=-1;++n<t;)e[n].lineEnd()},polygonStart:function(){for(var n=-1;++n<t;)e[n].polygonStart()},polygonEnd:function(){for(var n=-1;++n<t;)e[n].polygonEnd()}}}function zo(e){return function(t,n){var i=ph(t),o=ph(n),r=e(i*o);return[r*o*yh(t),r*yh(n)]}}function Wo(e){return function(t,n){var i=vh(t*t+n*n),o=e(i),r=yh(o),s=ph(o);return[ch(t*r,i*s),Yn(i&&n*r/i)]}}function Go(e,t){return[e,fh(bh((ih+t)/2))]}function Yo(e){function t(){var t=nh*a(),s=r(qh(r.rotate()).invert([0,0]));return l(null==c?[[s[0]-t,s[1]-t],[s[0]+t,s[1]+t]]:e===Go?[[Math.max(s[0]-t,c),n],[Math.min(s[0]+t,i),o]]:[[c,Math.max(s[1]-t,n)],[i,Math.min(s[1]+t,o)]])}var n,i,o,r=Bo(e),s=r.center,a=r.scale,u=r.translate,l=r.clipExtent,c=null;return r.scale=function(e){return arguments.length?(a(e),t()):a()},r.translate=function(e){return arguments.length?(u(e),t()):u()},r.center=function(e){return arguments.length?(s(e),t()):s()},r.clipExtent=function(e){return arguments.length?(null==e?c=n=i=o=null:(c=+e[0][0],n=+e[0][1],i=+e[1][0],o=+e[1][1]),t()):null==c?null:[[c,n],[i,o]]},t()}function Ko(e){return bh((ih+e)/2)}function Jo(e,t){function n(e,t){r>0?t<-ih+eh&&(t=-ih+eh):t>ih-eh&&(t=ih-eh);var n=r/mh(Ko(t),o);return[n*yh(o*e),r-n*ph(o*e)]}var i=ph(e),o=e===t?yh(e):fh(i/ph(t))/fh(Ko(t)/Ko(e)),r=i*mh(Ko(e),o)/o;return o?(n.invert=function(e,t){var n=r-t,i=gh(o)*vh(e*e+n*n),s=ch(e,uh(n))*gh(n);return n*o<0&&(s-=nh*gh(e)*gh(n)),[s/o,2*lh(mh(r/i,1/o))-ih]},n):Go}function Zo(e,t){return[e,t]}function Xo(e,t){function n(e,t){var n=r-t,i=o*e;return[n*yh(i),r-n*ph(i)]}var i=ph(e),o=e===t?yh(e):(i-ph(t))/(t-e),r=i/o+e;return uh(o)<eh?Zo:(n.invert=function(e,t){var n=r-t,i=ch(e,uh(n))*gh(n);return n*o<0&&(i-=nh*gh(e)*gh(n)),[i/o,r-gh(o)*vh(e*e+n*n)]},n)}function er(e,t){var n=Yn(hm*yh(t)),i=n*n,o=i*i*i;return[e*ph(n)/(hm*(lm+3*cm*i+o*(7*pm+9*dm*i))),n*(lm+cm*i+o*(pm+dm*i))]}function tr(e,t){var n=ph(t),i=ph(e)*n;return[n*yh(e)/i,yh(t)/i]}function nr(e,t){var n=t*t,i=n*n;return[e*(.8707-.131979*n+i*(i*(.003971*n-.001529*i)-.013791)),t*(1.007226+n*(.015085+i*(.028874*n-.044475-.005916*i)))]}function ir(e,t){return[ph(t)*yh(e),yh(t)]}function or(e,t){var n=ph(t),i=1+ph(e)*n;return[n*yh(e)/i,yh(t)/i]}function rr(e,t){return[fh(bh((ih+t)/2)),-e]}function sr(e,t){return e.parent===t.parent?1:2}function ar(e){return e.reduce(ur,0)/e.length}function ur(e,t){return e+t.x}function lr(e){return 1+e.reduce(cr,0)}function cr(e,t){return Math.max(e,t.y)}function pr(e){for(var t;t=e.children;)e=t[0];return e}function dr(e){for(var t;t=e.children;)e=t[t.length-1];return e}function hr(e){var t=0,n=e.children,i=n&&n.length;if(i)for(;--i>=0;)t+=n[i].value;else t=1;e.value=t}function fr(e,t){if(e===t)return e;var n=e.ancestors(),i=t.ancestors(),o=null;for(e=n.pop(),t=i.pop();e===t;)o=e,e=n.pop(),t=i.pop();return o}function mr(e,t){var n,i,o,r,s,a=new Sr(e),u=+e.value&&(a.value=e.value),l=[a];for(null==t&&(t=gr);n=l.pop();)if(u&&(n.value=+n.data.value),(o=t(n.data))&&(s=o.length))for(n.children=new Array(s),r=s-1;r>=0;--r)l.push(i=n.children[r]=new Sr(o[r])),i.parent=n,i.depth=n.depth+1;return a.eachBefore(br)}function yr(){return mr(this).eachBefore(vr)}function gr(e){return e.children}function vr(e){e.data=e.data.data}function br(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function Sr(e){this.data=e,this.depth=this.height=0,this.parent=null}function Cr(e){for(var t,n,i=e.length;i;)n=Math.random()*i--|0,t=e[i],e[i]=e[n],e[n]=t;return e}function wr(e,t){var n,i;if(xr(t,e))return[t];for(n=0;n<e.length;++n)if(_r(t,e[n])&&xr(Tr(e[n],t),e))return[e[n],t];for(n=0;n<e.length-1;++n)for(i=n+1;i<e.length;++i)if(_r(Tr(e[n],e[i]),t)&&_r(Tr(e[n],t),e[i])&&_r(Tr(e[i],t),e[n])&&xr(Rr(e[n],e[i],t),e))return[e[n],e[i],t];throw new Error}function _r(e,t){var n=e.r-t.r,i=t.x-e.x,o=t.y-e.y;return n<0||n*n<i*i+o*o}function Or(e,t){var n=e.r-t.r+1e-6,i=t.x-e.x,o=t.y-e.y;return n>0&&n*n>i*i+o*o}function xr(e,t){for(var n=0;n<t.length;++n)if(!Or(e,t[n]))return!1;return!0}function Er(e){switch(e.length){case 1:return Ar(e[0]);case 2:return Tr(e[0],e[1]);case 3:return Rr(e[0],e[1],e[2])}}function Ar(e){return{x:e.x,y:e.y,r:e.r}}function Tr(e,t){var n=e.x,i=e.y,o=e.r,r=t.x,s=t.y,a=t.r,u=r-n,l=s-i,c=a-o,p=Math.sqrt(u*u+l*l);return{x:(n+r+u/p*c)/2,y:(i+s+l/p*c)/2,r:(p+o+a)/2}}function Rr(e,t,n){var i=e.x,o=e.y,r=e.r,s=t.x,a=t.y,u=t.r,l=n.x,c=n.y,p=n.r,d=i-s,h=i-l,f=o-a,m=o-c,y=u-r,g=p-r,v=i*i+o*o-r*r,b=v-s*s-a*a+u*u,S=v-l*l-c*c+p*p,C=h*f-d*m,w=(f*S-m*b)/(2*C)-i,_=(m*y-f*g)/C,O=(h*b-d*S)/(2*C)-o,x=(d*g-h*y)/C,E=_*_+x*x-1,A=2*(r+w*_+O*x),T=w*w+O*O-r*r,R=-(E?(A+Math.sqrt(A*A-4*E*T))/(2*E):T/A);return{x:i+w+_*R,y:o+O+x*R,r:R}}function Fr(e,t,n){var i,o,r,s,a=e.x-t.x,u=e.y-t.y,l=a*a+u*u;l?(o=t.r+n.r,o*=o,s=e.r+n.r,s*=s,o>s?(i=(l+s-o)/(2*l),r=Math.sqrt(Math.max(0,s/l-i*i)),n.x=e.x-i*a-r*u,n.y=e.y-i*u+r*a):(i=(l+o-s)/(2*l),r=Math.sqrt(Math.max(0,o/l-i*i)),n.x=t.x+i*a-r*u,n.y=t.y+i*u+r*a)):(n.x=t.x+n.r,n.y=t.y)}function Mr(e,t){var n=e.r+t.r-1e-6,i=t.x-e.x,o=t.y-e.y;return n>0&&n*n>i*i+o*o}function Ir(e){var t=e._,n=e.next._,i=t.r+n.r,o=(t.x*n.r+n.x*t.r)/i,r=(t.y*n.r+n.y*t.r)/i;return o*o+r*r}function Pr(e){this._=e,this.next=null,this.previous=null}function Dr(e){if(!(o=e.length))return 0;var t,n,i,o,r,s,a,u,l,c,p;if(t=e[0],t.x=0,t.y=0,!(o>1))return t.r;if(n=e[1],t.x=-n.r,n.x=t.r,n.y=0,!(o>2))return t.r+n.r;Fr(n,t,i=e[2]),t=new Pr(t),n=new Pr(n),i=new Pr(i),t.next=i.previous=n,n.next=t.previous=i,i.next=n.previous=t;e:for(a=3;a<o;++a){Fr(t._,n._,i=e[a]),i=new Pr(i),u=n.next,l=t.previous,c=n._.r,p=t._.r;do{if(c<=p){if(Mr(u._,i._)){n=u,t.next=n,n.previous=t,--a;continue e}c+=u._.r,u=u.next}else{if(Mr(l._,i._)){t=l,t.next=n,n.previous=t,--a;continue e}p+=l._.r,l=l.previous}}while(u!==l.next);for(i.previous=t,i.next=n,t.next=n.previous=n=i,r=Ir(t);(i=i.next)!==n;)(s=Ir(i))<r&&(t=i,r=s);n=t.next}for(t=[n._],i=n;(i=i.next)!==n;)t.push(i._);for(i=Dm(t),a=0;a<o;++a)t=e[a],t.x-=i.x,t.y-=i.y;return i.r}function $r(e){return null==e?null:Nr(e)}function Nr(e){if("function"!=typeof e)throw new Error;return e}function kr(){return 0}function Vr(e){return Math.sqrt(e.value)}function Lr(e){return function(t){t.children||(t.r=Math.max(0,+e(t)||0))}}function Br(e,t){return function(n){if(i=n.children){var i,o,r,s=i.length,a=e(n)*t||0;if(a)for(o=0;o<s;++o)i[o].r+=a;if(r=Dr(i),a)for(o=0;o<s;++o)i[o].r-=a;n.r=r+a}}}function Ur(e){return function(t){var n=t.parent;t.r*=e,n&&(t.x=n.x+e*t.x,t.y=n.y+e*t.y)}}function Qr(e){return e.id}function jr(e){return e.parentId}function Hr(e,t){return e.parent===t.parent?1:2}function qr(e){var t=e.children;return t?t[0]:e.t}function zr(e){var t=e.children;return t?t[t.length-1]:e.t}function Wr(e,t,n){var i=n/(t.i-e.i);t.c-=i,t.s+=n,e.c+=i,t.z+=n,t.m+=n}function Gr(e){for(var t,n=0,i=0,o=e.children,r=o.length;--r>=0;)t=o[r],t.z+=n,t.m+=n,n+=t.s+(i+=t.c)}function Yr(e,t,n){return e.a.parent===t.parent?e.a:n}function Kr(e,t){this._=e,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=t}function Jr(e){for(var t,n,i,o,r,s=new Kr(e,0),a=[s];t=a.pop();)if(i=t._.children)for(t.children=new Array(r=i.length),o=r-1;o>=0;--o)a.push(n=t.children[o]=new Kr(i[o],o)),n.parent=t;return(s.parent=new Kr(null,0)).children=[s],s}function Zr(e,t,n,i,o,r){for(var s,a,u,l,c,p,d,h,f,m,y,g=[],v=t.children,b=0,S=0,C=v.length,w=t.value;b<C;){u=o-n,l=r-i;do{c=v[S++].value}while(!c&&S<C);for(p=d=c,m=Math.max(l/u,u/l)/(w*e),y=c*c*m,f=Math.max(d/y,y/p);S<C;++S){if(c+=a=v[S].value,a<p&&(p=a),a>d&&(d=a),y=c*c*m,(h=Math.max(d/y,y/p))>f){c-=a;break}f=h}g.push(s={value:c,dice:u<l,children:v.slice(b,S)}),s.dice?Lm(s,n,i,o,w?i+=l*c/w:r):zm(s,n,i,w?n+=u*c/w:o,r),w-=c,b=S}return g}function Xr(e,t){return e[0]-t[0]||e[1]-t[1]}function es(e){for(var t=e.length,n=[0,1],i=2,o=2;o<t;++o){for(;i>1&&ty(e[n[i-2]],e[n[i-1]],e[o])<=0;)--i;n[i++]=o}return n.slice(0,i)}function ts(e){var t=e.length;return function(n){return e[Math.max(0,Math.min(t-1,Math.floor(n*t)))]}}function ns(e){return e>1?0:e<-1?Yg:Math.acos(e)}function is(e){return e>=1?Kg:e<=-1?-Kg:Math.asin(e)}function os(e){return e.innerRadius}function rs(e){return e.outerRadius}function ss(e){return e.startAngle}function as(e){return e.endAngle}function us(e){return e&&e.padAngle}function ls(e,t,n,i,o,r,s,a){var u=n-e,l=i-t,c=s-o,p=a-r,d=p*u-c*l;if(!(d*d<Gg))return d=(c*(t-r)-p*(e-o))/d,[e+d*u,t+d*l]}function cs(e,t,n,i,o,r,s){var a=e-n,u=t-i,l=(s?r:-r)/Wg(a*a+u*u),c=l*u,p=-l*a,d=e+c,h=t+p,f=n+c,m=i+p,y=(d+f)/2,g=(h+m)/2,v=f-d,b=m-h,S=v*v+b*b,C=o-r,w=d*m-f*h,_=(b<0?-1:1)*Wg(Hg(0,C*C*S-w*w)),O=(w*b-v*_)/S,x=(-w*v-b*_)/S,E=(w*b+v*_)/S,A=(-w*v+b*_)/S,T=O-y,R=x-g,F=E-y,M=A-g;return T*T+R*R>F*F+M*M&&(O=E,x=A),{cx:O,cy:x,x01:-c,y01:-p,x11:O*(o/C-1),y11:x*(o/C-1)}}function ps(e){this._context=e}function ds(e){return e[0]}function hs(e){return e[1]}function fs(e){this._curve=e}function ms(e){function t(t){return new fs(e(t))}return t._curve=e,t}function ys(e){var t=e.curve;return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e.curve=function(e){return arguments.length?t(ms(e)):t()._curve},e}function gs(e){return e.source}function vs(e){return e.target}function bs(e){function t(){var t,a=lv.call(arguments),u=n.apply(this,a),l=i.apply(this,a);if(s||(s=t=np()),e(s,+o.apply(this,(a[0]=u,a)),+r.apply(this,a),+o.apply(this,(a[0]=l,a)),+r.apply(this,a)),t)return s=null,t+""||null}var n=gs,i=vs,o=ds,r=hs,s=null;return t.source=function(e){return arguments.length?(n=e,t):n},t.target=function(e){return arguments.length?(i=e,t):i},t.x=function(e){return arguments.length?(o="function"==typeof e?e:Bg(+e),t):o},t.y=function(e){return arguments.length?(r="function"==typeof e?e:Bg(+e),t):r},t.context=function(e){return arguments.length?(s=null==e?null:e,t):s},t}function Ss(e,t,n,i,o){e.moveTo(t,n),e.bezierCurveTo(t=(t+i)/2,n,t,o,i,o)}function Cs(e,t,n,i,o){e.moveTo(t,n),e.bezierCurveTo(t,n=(n+o)/2,i,n,i,o)}function ws(e,t,n,i,o){var r=uv(t,n),s=uv(t,n=(n+o)/2),a=uv(i,n),u=uv(i,o);e.moveTo(r[0],r[1]),e.bezierCurveTo(s[0],s[1],a[0],a[1],u[0],u[1])}function _s(){return bs(Ss)}function Os(){return bs(Cs)}function xs(){var e=bs(ws);return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e}function Es(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function As(e){this._context=e}function Ts(e){this._context=e}function Rs(e){this._context=e}function Fs(e,t){this._basis=new As(e),this._beta=t}function Ms(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function Is(e,t){this._context=e,this._k=(1-t)/6}function Ps(e,t){this._context=e,this._k=(1-t)/6}function Ds(e,t){this._context=e,this._k=(1-t)/6}function $s(e,t,n){var i=e._x1,o=e._y1,r=e._x2,s=e._y2;if(e._l01_a>Gg){var a=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,u=3*e._l01_a*(e._l01_a+e._l12_a);i=(i*a-e._x0*e._l12_2a+e._x2*e._l01_2a)/u,o=(o*a-e._y0*e._l12_2a+e._y2*e._l01_2a)/u}if(e._l23_a>Gg){var l=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,c=3*e._l23_a*(e._l23_a+e._l12_a);r=(r*l+e._x1*e._l23_2a-t*e._l12_2a)/c,s=(s*l+e._y1*e._l23_2a-n*e._l12_2a)/c}e._context.bezierCurveTo(i,o,r,s,e._x2,e._y2)}function Ns(e,t){this._context=e,this._alpha=t}function ks(e,t){this._context=e,this._alpha=t}function Vs(e,t){this._context=e,this._alpha=t}function Ls(e){this._context=e}function Bs(e){return e<0?-1:1}function Us(e,t,n){var i=e._x1-e._x0,o=t-e._x1,r=(e._y1-e._y0)/(i||o<0&&-0),s=(n-e._y1)/(o||i<0&&-0),a=(r*o+s*i)/(i+o);return(Bs(r)+Bs(s))*Math.min(Math.abs(r),Math.abs(s),.5*Math.abs(a))||0}function Qs(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function js(e,t,n){var i=e._x0,o=e._y0,r=e._x1,s=e._y1,a=(r-i)/3;e._context.bezierCurveTo(i+a,o+a*t,r-a,s-a*n,r,s)}function Hs(e){this._context=e}function qs(e){this._context=new zs(e)}function zs(e){this._context=e}function Ws(e){return new Hs(e)}function Gs(e){return new qs(e)}function Ys(e){this._context=e}function Ks(e){var t,n,i=e.length-1,o=new Array(i),r=new Array(i),s=new Array(i);for(o[0]=0,r[0]=2,s[0]=e[0]+2*e[1],t=1;t<i-1;++t)o[t]=1,r[t]=4,s[t]=4*e[t]+2*e[t+1];for(o[i-1]=2,r[i-1]=7,s[i-1]=8*e[i-1]+e[i],t=1;t<i;++t)n=o[t]/r[t-1],r[t]-=n,s[t]-=n*s[t-1];for(o[i-1]=s[i-1]/r[i-1],t=i-2;t>=0;--t)o[t]=(s[t]-o[t+1])/r[t];for(r[i-1]=(e[i]+o[i-1])/2,t=0;t<i-1;++t)r[t]=2*e[t+1]-o[t+1];return[o,r]}function Js(e,t){this._context=e,this._t=t}function Zs(e){return new Js(e,0)}function Xs(e){return new Js(e,1)}function ea(e,t){return e[t]}function ta(e){for(var t,n=-1,i=0,o=e.length,r=-1/0;++n<o;)(t=+e[n][1])>r&&(r=t,i=n);return i}function na(e){for(var t,n=0,i=-1,o=e.length;++i<o;)(t=+e[i][1])&&(n+=t);return n}function ia(e){return e[0]}function oa(e){return e[1]}function ra(){this._=null}function sa(e){e.U=e.C=e.L=e.R=e.P=e.N=null}function aa(e,t){var n=t,i=t.R,o=n.U;o?o.L===n?o.L=i:o.R=i:e._=i,i.U=o,n.U=i,n.R=i.L,n.R&&(n.R.U=n),i.L=n}function ua(e,t){var n=t,i=t.L,o=n.U;o?o.L===n?o.L=i:o.R=i:e._=i,i.U=o,n.U=i,n.L=i.R,n.L&&(n.L.U=n),i.R=n}function la(e){for(;e.L;)e=e.L;return e}function ca(e,t,n,i){var o=[null,null],r=ab.push(o)-1;return o.left=e,o.right=t,n&&da(o,e,t,n),i&&da(o,t,e,i),rb[e.index].halfedges.push(r),rb[t.index].halfedges.push(r),o}function pa(e,t,n){var i=[t,n];return i.left=e,i}function da(e,t,n,i){e[0]||e[1]?e.left===n?e[1]=i:e[0]=i:(e[0]=i,e.left=t,e.right=n)}function ha(e,t,n,i,o){var r,s=e[0],a=e[1],u=s[0],l=s[1],c=a[0],p=a[1],d=0,h=1,f=c-u,m=p-l;if(r=t-u,f||!(r>0)){if(r/=f,f<0){if(r<d)return;r<h&&(h=r)}else if(f>0){if(r>h)return;r>d&&(d=r)}if(r=i-u,f||!(r<0)){if(r/=f,f<0){if(r>h)return;r>d&&(d=r)}else if(f>0){if(r<d)return;r<h&&(h=r)}if(r=n-l,m||!(r>0)){if(r/=m,m<0){if(r<d)return;r<h&&(h=r)}else if(m>0){if(r>h)return;r>d&&(d=r)}if(r=o-l,m||!(r<0)){if(r/=m,m<0){if(r>h)return;r>d&&(d=r)}else if(m>0){if(r<d)return;r<h&&(h=r)}return!(d>0||h<1)||(d>0&&(e[0]=[u+d*f,l+d*m]),h<1&&(e[1]=[u+h*f,l+h*m]),!0)}}}}}function fa(e,t,n,i,o){var r=e[1];if(r)return!0;var s,a,u=e[0],l=e.left,c=e.right,p=l[0],d=l[1],h=c[0],f=c[1],m=(p+h)/2,y=(d+f)/2;if(f===d){if(m<t||m>=i)return;if(p>h){if(u){if(u[1]>=o)return}else u=[m,n];r=[m,o]}else{if(u){if(u[1]<n)return}else u=[m,o];r=[m,n]}}else if(s=(p-h)/(f-d),a=y-s*m,s<-1||s>1)if(p>h){if(u){if(u[1]>=o)return}else u=[(n-a)/s,n];r=[(o-a)/s,o]}else{if(u){if(u[1]<n)return}else u=[(o-a)/s,o];r=[(n-a)/s,n]}else if(d<f){if(u){if(u[0]>=i)return}else u=[t,s*t+a];r=[i,s*i+a]}else{if(u){if(u[0]<t)return}else u=[i,s*i+a];r=[t,s*t+a]}return e[0]=u,e[1]=r,!0}function ma(e,t,n,i){for(var o,r=ab.length;r--;)fa(o=ab[r],e,t,n,i)&&ha(o,e,t,n,i)&&(Math.abs(o[0][0]-o[1][0])>pb||Math.abs(o[0][1]-o[1][1])>pb)||delete ab[r]}function ya(e){return rb[e.index]={site:e,halfedges:[]}}function ga(e,t){var n=e.site,i=t.left,o=t.right;return n===o&&(o=i,i=n),o?Math.atan2(o[1]-i[1],o[0]-i[0]):(n===i?(i=t[1],o=t[0]):(i=t[0],o=t[1]),Math.atan2(i[0]-o[0],o[1]-i[1]))}function va(e,t){return t[+(t.left!==e.site)]}function ba(e,t){return t[+(t.left===e.site)]}function Sa(){for(var e,t,n,i,o=0,r=rb.length;o<r;++o)if((e=rb[o])&&(i=(t=e.halfedges).length)){var s=new Array(i),a=new Array(i);for(n=0;n<i;++n)s[n]=n,a[n]=ga(e,ab[t[n]]);for(s.sort(function(e,t){return a[t]-a[e]}),n=0;n<i;++n)a[n]=t[s[n]];for(n=0;n<i;++n)t[n]=a[n]}}function Ca(e,t,n,i){var o,r,s,a,u,l,c,p,d,h,f,m,y=rb.length,g=!0;for(o=0;o<y;++o)if(r=rb[o]){for(s=r.site,u=r.halfedges,a=u.length;a--;)ab[u[a]]||u.splice(a,1);for(a=0,l=u.length;a<l;)h=ba(r,ab[u[a]]),f=h[0],m=h[1],c=va(r,ab[u[++a%l]]),p=c[0],d=c[1],(Math.abs(f-p)>pb||Math.abs(m-d)>pb)&&(u.splice(a,0,ab.push(pa(s,h,Math.abs(f-e)<pb&&i-m>pb?[e,Math.abs(p-e)<pb?d:i]:Math.abs(m-i)<pb&&n-f>pb?[Math.abs(d-i)<pb?p:n,i]:Math.abs(f-n)<pb&&m-t>pb?[n,Math.abs(p-n)<pb?d:t]:Math.abs(m-t)<pb&&f-e>pb?[Math.abs(d-t)<pb?p:e,t]:null))-1),++l);l&&(g=!1)}if(g){var v,b,S,C=1/0;for(o=0,g=null;o<y;++o)(r=rb[o])&&(s=r.site,v=s[0]-e,b=s[1]-t,(S=v*v+b*b)<C&&(C=S,g=r));if(g){var w=[e,t],_=[e,i],O=[n,i],x=[n,t];g.halfedges.push(ab.push(pa(s=g.site,w,_))-1,ab.push(pa(s,_,O))-1,ab.push(pa(s,O,x))-1,ab.push(pa(s,x,w))-1)}}for(o=0;o<y;++o)(r=rb[o])&&(r.halfedges.length||delete rb[o])}function wa(){sa(this),this.x=this.y=this.arc=this.site=this.cy=null}function _a(e){var t=e.P,n=e.N;if(t&&n){var i=t.site,o=e.site,r=n.site;if(i!==r){var s=o[0],a=o[1],u=i[0]-s,l=i[1]-a,c=r[0]-s,p=r[1]-a,d=2*(u*p-l*c);if(!(d>=-db)){var h=u*u+l*l,f=c*c+p*p,m=(p*h-l*f)/d,y=(u*f-c*h)/d,g=lb.pop()||new wa;g.arc=e,g.site=o,g.x=m+s,g.y=(g.cy=y+a)+Math.sqrt(m*m+y*y),e.circle=g;for(var v=null,b=sb._;b;)if(g.y<b.y||g.y===b.y&&g.x<=b.x){if(!b.L){v=b.P;break}b=b.L}else{if(!b.R){v=b;break}b=b.R}sb.insert(v,g),v||(ib=g)}}}}function Oa(e){var t=e.circle;t&&(t.P||(ib=t.N),sb.remove(t),lb.push(t),sa(t),e.circle=null)}function xa(){sa(this),this.edge=this.site=this.circle=null}function Ea(e){var t=cb.pop()||new xa;return t.site=e,t}function Aa(e){Oa(e),ob.remove(e),cb.push(e),sa(e)}function Ta(e){var t=e.circle,n=t.x,i=t.cy,o=[n,i],r=e.P,s=e.N,a=[e];Aa(e);for(var u=r;u.circle&&Math.abs(n-u.circle.x)<pb&&Math.abs(i-u.circle.cy)<pb;)r=u.P,a.unshift(u),Aa(u),u=r;a.unshift(u),Oa(u);for(var l=s;l.circle&&Math.abs(n-l.circle.x)<pb&&Math.abs(i-l.circle.cy)<pb;)s=l.N,a.push(l),Aa(l),l=s;a.push(l),Oa(l);var c,p=a.length;for(c=1;c<p;++c)l=a[c],u=a[c-1],da(l.edge,u.site,l.site,o);u=a[0],l=a[p-1],l.edge=ca(u.site,l.site,null,o),_a(u),_a(l)}function Ra(e){for(var t,n,i,o,r=e[0],s=e[1],a=ob._;a;)if((i=Fa(a,s)-r)>pb)a=a.L;else{if(!((o=r-Ma(a,s))>pb)){i>-pb?(t=a.P,n=a):o>-pb?(t=a,n=a.N):t=n=a;break}if(!a.R){t=a;break}a=a.R}ya(e);var u=Ea(e);if(ob.insert(t,u),t||n){if(t===n)return Oa(t),n=Ea(t.site),ob.insert(u,n),u.edge=n.edge=ca(t.site,u.site),_a(t),void _a(n);if(!n)return void(u.edge=ca(t.site,u.site));Oa(t),Oa(n);var l=t.site,c=l[0],p=l[1],d=e[0]-c,h=e[1]-p,f=n.site,m=f[0]-c,y=f[1]-p,g=2*(d*y-h*m),v=d*d+h*h,b=m*m+y*y,S=[(y*v-h*b)/g+c,(d*b-m*v)/g+p];da(n.edge,l,f,S),u.edge=ca(l,e,null,S),n.edge=ca(e,f,null,S),_a(t),_a(n)}}function Fa(e,t){var n=e.site,i=n[0],o=n[1],r=o-t;if(!r)return i;var s=e.P;if(!s)return-1/0;n=s.site;var a=n[0],u=n[1],l=u-t;if(!l)return a;var c=a-i,p=1/r-1/l,d=c/l;return p?(-d+Math.sqrt(d*d-2*p*(c*c/(-2*l)-u+l/2+o-r/2)))/p+i:(i+a)/2}function Ma(e,t){var n=e.N;if(n)return Fa(n,t);var i=e.site;return i[1]===t?i[0]:1/0}function Ia(e,t,n){return(e[0]-n[0])*(t[1]-e[1])-(e[0]-t[0])*(n[1]-e[1])}function Pa(e,t){return t[1]-e[1]||t[0]-e[0]}function Da(e,t){var n,i,o,r=e.sort(Pa).pop();for(ab=[],rb=new Array(e.length),ob=new ub,sb=new ub;;)if(o=ib,r&&(!o||r[1]<o.y||r[1]===o.y&&r[0]<o.x))r[0]===n&&r[1]===i||(Ra(r),n=r[0],i=r[1]),r=e.pop();else{if(!o)break;Ta(o.arc)}if(Sa(),t){var s=+t[0][0],a=+t[0][1],u=+t[1][0],l=+t[1][1];ma(s,a,u,l),Ca(s,a,u,l)}this.edges=ab,this.cells=rb,ob=sb=ab=rb=null}function $a(e,t,n){this.target=e,this.type=t,this.transform=n}function Na(e,t,n){this.k=e,this.x=t,this.y=n}function ka(e){for(;!e.__zoom;)if(!(e=e.parentNode))return mb;return e.__zoom}function Va(){Qu.stopImmediatePropagation()}function La(){return!Qu.ctrlKey&&!Qu.button}function Ba(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e,e.hasAttribute("viewBox")?(e=e.viewBox.baseVal,[[e.x,e.y],[e.x+e.width,e.y+e.height]]):[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]):[[0,0],[e.clientWidth,e.clientHeight]]}function Ua(){return this.__zoom||mb}function Qa(){return-Qu.deltaY*(1===Qu.deltaMode?.05:Qu.deltaMode?1:.002)}function ja(){return navigator.maxTouchPoints||"ontouchstart"in this}function Ha(e,t,n){var i=e.invertX(t[0][0])-n[0][0],o=e.invertX(t[1][0])-n[1][0],r=e.invertY(t[0][1])-n[0][1],s=e.invertY(t[1][1])-n[1][1];return e.translate(o>i?(i+o)/2:Math.min(0,i)||Math.max(0,o),s>r?(r+s)/2:Math.min(0,r)||Math.max(0,s))}Object.defineProperty(t,"__esModule",{value:!0});var qa=n(32),za=Array.prototype.slice,Wa=function(e){return e},Ga=1,Ya=2,Ka=3,Ja=4,Za=1e-6,Xa={value:function(){}};f.prototype=h.prototype={constructor:f,on:function(e,t){var n,i=this._,o=m(e+"",i),r=-1,s=o.length;{if(!(arguments.length<2)){if(null!=t&&"function"!=typeof t)throw new Error("invalid callback: "+t);for(;++r<s;)if(n=(e=o[r]).type)i[n]=g(i[n],e.name,t);else if(null==t)for(n in i)i[n]=g(i[n],e.name,null);return this}for(;++r<s;)if((n=(e=o[r]).type)&&(n=y(i[n],e.name)))return n}},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new f(e)},call:function(e,t){if((n=arguments.length-2)>0)for(var n,i,o=new Array(n),r=0;r<n;++r)o[r]=arguments[r+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(i=this._[e],r=0,n=i.length;r<n;++r)i[r].value.apply(t,o)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var i=this._[e],o=0,r=i.length;o<r;++o)i[o].value.apply(t,n)}};var eu=h,tu="http://www.w3.org/1999/xhtml",nu={svg:"http://www.w3.org/2000/svg",xhtml:tu,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},iu=function(e){var t=e+="",n=t.indexOf(":");return n>=0&&"xmlns"!==(t=e.slice(0,n))&&(e=e.slice(n+1)),nu.hasOwnProperty(t)?{space:nu[t],local:e}:e},ou=function(e){var t=iu(e);return(t.local?b:v)(t)},ru=function(e){return null==e?S:function(){return this.querySelector(e)}},su=function(e){"function"!=typeof e&&(e=ru(e));for(var t=this._groups,n=t.length,i=new Array(n),o=0;o<n;++o)for(var r,s,a=t[o],u=a.length,l=i[o]=new Array(u),c=0;c<u;++c)(r=a[c])&&(s=e.call(r,r.__data__,c,a))&&("__data__"in r&&(s.__data__=r.__data__),l[c]=s);return new fe(i,this._parents)},au=function(e){return null==e?C:function(){return this.querySelectorAll(e)}},uu=function(e){"function"!=typeof e&&(e=au(e));for(var t=this._groups,n=t.length,i=[],o=[],r=0;r<n;++r)for(var s,a=t[r],u=a.length,l=0;l<u;++l)(s=a[l])&&(i.push(e.call(s,s.__data__,l,a)),o.push(s));return new fe(i,o)},lu=function(e){return function(){return this.matches(e)}},cu=function(e){"function"!=typeof e&&(e=lu(e));for(var t=this._groups,n=t.length,i=new Array(n),o=0;o<n;++o)for(var r,s=t[o],a=s.length,u=i[o]=[],l=0;l<a;++l)(r=s[l])&&e.call(r,r.__data__,l,s)&&u.push(r);return new fe(i,this._parents)},pu=function(e){return new Array(e.length)},du=function(){return new fe(this._enter||this._groups.map(pu),this._parents)};w.prototype={constructor:w,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};var hu=function(e){return function(){return e}},fu="$",mu=function(e,t){if(!e)return h=new Array(this.size()),l=-1,this.each(function(e){h[++l]=e}),h;var n=t?O:_,i=this._parents,o=this._groups;"function"!=typeof e&&(e=hu(e));for(var r=o.length,s=new Array(r),a=new Array(r),u=new Array(r),l=0;l<r;++l){var c=i[l],p=o[l],d=p.length,h=e.call(c,c&&c.__data__,l,i),f=h.length,m=a[l]=new Array(f),y=s[l]=new Array(f);n(c,p,m,y,u[l]=new Array(d),h,t);for(var g,v,b=0,S=0;b<f;++b)if(g=m[b]){for(b>=S&&(S=b+1);!(v=y[S])&&++S<f;);g._next=v||null}}return s=new fe(s,i),s._enter=a,s._exit=u,s},yu=function(){return new fe(this._exit||this._groups.map(pu),this._parents)},gu=function(e,t,n){var i=this.enter(),o=this,r=this.exit();return i="function"==typeof e?e(i):i.append(e+""),null!=t&&(o=t(o)),null==n?r.remove():n(r),i&&o?i.merge(o).order():o},vu=function(e){for(var t=this._groups,n=e._groups,i=t.length,o=n.length,r=Math.min(i,o),s=new Array(i),a=0;a<r;++a)for(var u,l=t[a],c=n[a],p=l.length,d=s[a]=new Array(p),h=0;h<p;++h)(u=l[h]||c[h])&&(d[h]=u);for(;a<i;++a)s[a]=t[a];return new fe(s,this._parents)},bu=function(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var i,o=e[t],r=o.length-1,s=o[r];--r>=0;)(i=o[r])&&(s&&4^i.compareDocumentPosition(s)&&s.parentNode.insertBefore(i,s),s=i);return this},Su=function(e){function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}e||(e=x);for(var n=this._groups,i=n.length,o=new Array(i),r=0;r<i;++r){for(var s,a=n[r],u=a.length,l=o[r]=new Array(u),c=0;c<u;++c)(s=a[c])&&(l[c]=s);l.sort(t)}return new fe(o,this._parents).order()},Cu=function(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this},wu=function(){var e=new Array(this.size()),t=-1;return this.each(function(){e[++t]=this}),e},_u=function(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var i=e[t],o=0,r=i.length;o<r;++o){var s=i[o];if(s)return s}return null},Ou=function(){var e=0;return this.each(function(){++e}),e},xu=function(){return!this.node()},Eu=function(e){for(var t=this._groups,n=0,i=t.length;n<i;++n)for(var o,r=t[n],s=0,a=r.length;s<a;++s)(o=r[s])&&e.call(o,o.__data__,s,r);return this},Au=function(e,t){var n=iu(e);if(arguments.length<2){var i=this.node();return n.local?i.getAttributeNS(n.space,n.local):i.getAttribute(n)}return this.each((null==t?n.local?A:E:"function"==typeof t?n.local?M:F:n.local?R:T)(n,t))},Tu=function(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView},Ru=function(e,t,n){return arguments.length>1?this.each((null==t?I:"function"==typeof t?D:P)(e,t,null==n?"":n)):$(this.node(),e)},Fu=function(e,t){return arguments.length>1?this.each((null==t?N:"function"==typeof t?V:k)(e,t)):this.node()[e]};U.prototype={add:function(e){this._names.indexOf(e)<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};var Mu=function(e,t){var n=L(e+"");if(arguments.length<2){for(var i=B(this.node()),o=-1,r=n.length;++o<r;)if(!i.contains(n[o]))return!1;return!0}return this.each(("function"==typeof t?z:t?H:q)(n,t))},Iu=function(e){return arguments.length?this.each(null==e?W:("function"==typeof e?Y:G)(e)):this.node().textContent},Pu=function(e){return arguments.length?this.each(null==e?K:("function"==typeof e?Z:J)(e)):this.node().innerHTML},Du=function(){return this.each(X)},$u=function(){return this.each(ee)},Nu=function(e){var t="function"==typeof e?e:ou(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})},ku=function(e,t){var n="function"==typeof e?e:ou(e),i=null==t?te:"function"==typeof t?t:ru(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),i.apply(this,arguments)||null)})},Vu=function(){return this.each(ne)},Lu=function(e){return this.select(e?oe:ie)},Bu=function(e){return arguments.length?this.property("__data__",e):this.node().__data__},Uu={},Qu=null;if("undefined"!=typeof document){"onmouseenter"in document.documentElement||(Uu={mouseenter:"mouseover",mouseleave:"mouseout"})}var ju=function(e,t,n){var i,o,r=ae(e+""),s=r.length;{if(!(arguments.length<2)){for(a=t?le:ue,null==n&&(n=!1),i=0;i<s;++i)this.each(a(r[i],t,n));return this}var a=this.node().__on;if(a)for(var u,l=0,c=a.length;l<c;++l)for(i=0,u=a[l];i<s;++i)if((o=r[i]).type===u.type&&o.name===u.name)return u.value}},Hu=function(e,t){return this.each(("function"==typeof t?he:de)(e,t))},qu=[null];fe.prototype=me.prototype={constructor:fe,select:su,selectAll:uu,filter:cu,data:mu,enter:du,exit:yu,join:gu,merge:vu,order:bu,sort:Su,call:Cu,nodes:wu,node:_u,size:Ou,empty:xu,each:Eu,attr:Au,style:Ru,property:Fu,classed:Mu,text:Iu,html:Pu,raise:Du,lower:$u,append:Nu,insert:ku,remove:Vu,clone:Lu,datum:Bu,on:ju,dispatch:Hu};var zu=me,Wu=function(e){return"string"==typeof e?new fe([[document.querySelector(e)]],[document.documentElement]):new fe([[e]],qu)},Gu=function(e){return Wu(ou(e).call(document.documentElement))},Yu=0;ge.prototype=ye.prototype={constructor:ge,get:function(e){for(var t=this._;!(t in e);)if(!(e=e.parentNode))return;return e[t]},set:function(e,t){return e[this._]=t},remove:function(e){return this._ in e&&delete e[this._]},toString:function(){return this._}};var Ku=function(){for(var e,t=Qu;e=t.sourceEvent;)t=e;return t},Ju=function(e,t){var n=e.ownerSVGElement||e;if(n.createSVGPoint){var i=n.createSVGPoint();return i.x=t.clientX,i.y=t.clientY,i=i.matrixTransform(e.getScreenCTM().inverse()),[i.x,i.y]}var o=e.getBoundingClientRect();return[t.clientX-o.left-e.clientLeft,t.clientY-o.top-e.clientTop]},Zu=function(e){var t=Ku();return t.changedTouches&&(t=t.changedTouches[0]),Ju(e,t)},Xu=function(e){return"string"==typeof e?new fe([document.querySelectorAll(e)],[document.documentElement]):new fe([null==e?[]:e],qu)},el=function(e,t,n){arguments.length<3&&(n=t,t=Ku().changedTouches);for(var i,o=0,r=t?t.length:0;o<r;++o)if((i=t[o]).identifier===n)return Ju(e,i);return null},tl=function(e,t){null==t&&(t=Ku().touches);for(var n=0,i=t?t.length:0,o=new Array(i);n<i;++n)o[n]=Ju(e,t[n]);return o},nl=function(){Qu.preventDefault(),Qu.stopImmediatePropagation()},il=function(e){var t=e.document.documentElement,n=Wu(e).on("dragstart.drag",nl,!0);"onselectstart"in t?n.on("selectstart.drag",nl,!0):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")},ol=function(e){return function(){return e}};Se.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};var rl,sl,al=function(){function e(e){e.on("mousedown.drag",t).filter(m).on("touchstart.drag",o).on("touchmove.drag",r).on("touchend.drag touchcancel.drag",s).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function t(){if(!p&&d.apply(this,arguments)){var e=a("mouse",h.apply(this,arguments),Zu,this,arguments);e&&(Wu(Qu.view).on("mousemove.drag",n,!0).on("mouseup.drag",i,!0),il(Qu.view),ve(),c=!1,u=Qu.clientX,l=Qu.clientY,e("start"))}}function n(){if(nl(),!c){var e=Qu.clientX-u,t=Qu.clientY-l;c=e*e+t*t>b}y.mouse("drag")}function i(){Wu(Qu.view).on("mousemove.drag mouseup.drag",null),be(Qu.view,c),nl(),y.mouse("end")}function o(){if(d.apply(this,arguments)){var e,t,n=Qu.changedTouches,i=h.apply(this,arguments),o=n.length;for(e=0;e<o;++e)(t=a(n[e].identifier,i,el,this,arguments))&&(ve(),t("start"))}}function r(){var e,t,n=Qu.changedTouches,i=n.length;for(e=0;e<i;++e)(t=y[n[e].identifier])&&(nl(),t("drag"))}function s(){var e,t,n=Qu.changedTouches,i=n.length;for(p&&clearTimeout(p),p=setTimeout(function(){p=null},500),e=0;e<i;++e)(t=y[n[e].identifier])&&(ve(),t("end"))}function a(t,n,i,o,r){var s,a,u,l=i(n,t),c=g.copy();if(ce(new Se(e,"beforestart",s,t,v,l[0],l[1],0,0,c),function(){return null!=(Qu.subject=s=f.apply(o,r))&&(a=s.x-l[0]||0,u=s.y-l[1]||0,!0)}))return function p(d){var h,f=l;switch(d){case"start":y[t]=p,h=v++;break;case"end":delete y[t],--v;case"drag":l=i(n,t),h=v}ce(new Se(e,d,s,t,h,l[0]+a,l[1]+u,l[0]-f[0],l[1]-f[1],c),c.apply,c,[d,o,r])}}var u,l,c,p,d=Ce,h=we,f=_e,m=Oe,y={},g=eu("start","drag","end"),v=0,b=0;return e.filter=function(t){return arguments.length?(d="function"==typeof t?t:ol(!!t),e):d},e.container=function(t){return arguments.length?(h="function"==typeof t?t:ol(t),e):h},e.subject=function(t){return arguments.length?(f="function"==typeof t?t:ol(t),e):f},e.touchable=function(t){return arguments.length?(m="function"==typeof t?t:ol(!!t),e):m},e.on=function(){var t=g.on.apply(g,arguments);return t===g?e:t},e.clickDistance=function(t){return arguments.length?(b=(t=+t)*t,e):Math.sqrt(b)},e},ul=n(64),ll=0,cl=0,pl=0,dl=1e3,hl=0,fl=0,ml=0,yl="object"==typeof performance&&performance.now?performance:Date,gl="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};Ae.prototype=Te.prototype={constructor:Ae,restart:function(e,t,n){if("function"!=typeof e)throw new TypeError("callback is not a function");n=(null==n?xe():+n)+(null==t?0:+t),this._next||sl===this||(sl?sl._next=this:rl=this,sl=this),this._call=e,this._time=n,Pe()},stop:function(){this._call&&(this._call=null,this._time=1/0,Pe())}};var vl=function(e,t,n){var i=new Ae;return t=null==t?0:+t,i.restart(function(n){i.stop(),e(n+t)},t,n),i},bl=function(e,t,n){var i=new Ae,o=t;return null==t?(i.restart(e,t,n),i):(t=+t,n=null==n?xe():+n,i.restart(function r(s){s+=o,i.restart(r,o+=t,n),e(s)},t,n),i)},Sl=eu("start","end","cancel","interrupt"),Cl=[],wl=0,_l=1,Ol=2,xl=3,El=4,Al=5,Tl=6,Rl=function(e,t,n,i,o,r){var s=e.__transition;if(s){if(n in s)return}else e.__transition={};ke(e,n,{name:t,index:i,group:o,on:Sl,tween:Cl,time:r.time,delay:r.delay,duration:r.duration,ease:r.ease,timer:null,state:wl})},Fl=function(e,t){var n,i,o,r=e.__transition,s=!0;if(r){t=null==t?null:t+"";for(o in r)(n=r[o]).name===t?(i=n.state>Ol&&n.state<Al,n.state=Tl,n.timer.stop(),n.on.call(i?"interrupt":"cancel",e,e.__data__,n.index,n.group),delete r[o]):s=!1;s&&delete e.__transition}},Ml=function(e){return this.each(function(){Fl(this,e)})},Il=function(e,t){var n=this._id;if(e+="",arguments.length<2){for(var i,o=Ne(this.node(),n).tween,r=0,s=o.length;r<s;++r)if((i=o[r]).name===e)return i.value;return null}return this.each((null==t?Ve:Le)(n,e,t))},Pl=n(52),Dl=function(e,t){var n;return("number"==typeof t?ul.o:t instanceof Pl.a?ul.r:(n=Object(Pl.a)(t))?(t=n,ul.r):ul.v)(e,t)},$l=function(e,t){var n=iu(e),i="transform"===n?ul.x:Dl;return this.attrTween(e,"function"==typeof t?(n.local?ze:qe)(n,i,Be(this,"attr."+e,t)):null==t?(n.local?Qe:Ue)(n):(n.local?He:je)(n,i,t))},Nl=function(e,t){var n="attr."+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==t)return this.tween(n,null);if("function"!=typeof t)throw new Error;var i=iu(e);return this.tween(n,(i.local?Ye:Ke)(i,t))},kl=function(e){var t=this._id;return arguments.length?this.each(("function"==typeof e?Je:Ze)(t,e)):Ne(this.node(),t).delay},Vl=function(e){var t=this._id;return arguments.length?this.each(("function"==typeof e?Xe:et)(t,e)):Ne(this.node(),t).duration},Ll=function(e){var t=this._id;return arguments.length?this.each(tt(t,e)):Ne(this.node(),t).ease},Bl=function(e){"function"!=typeof e&&(e=lu(e));for(var t=this._groups,n=t.length,i=new Array(n),o=0;o<n;++o)for(var r,s=t[o],a=s.length,u=i[o]=[],l=0;l<a;++l)(r=s[l])&&e.call(r,r.__data__,l,s)&&u.push(r);return new yt(i,this._parents,this._name,this._id)},Ul=function(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,n=e._groups,i=t.length,o=n.length,r=Math.min(i,o),s=new Array(i),a=0;a<r;++a)for(var u,l=t[a],c=n[a],p=l.length,d=s[a]=new Array(p),h=0;h<p;++h)(u=l[h]||c[h])&&(d[h]=u);for(;a<i;++a)s[a]=t[a];return new yt(s,this._parents,this._name,this._id)},Ql=function(e,t){var n=this._id;return arguments.length<2?Ne(this.node(),n).on.on(e):this.each(it(n,e,t))},jl=function(){return this.on("end.remove",ot(this._id))},Hl=function(e){var t=this._name,n=this._id;"function"!=typeof e&&(e=ru(e));for(var i=this._groups,o=i.length,r=new Array(o),s=0;s<o;++s)for(var a,u,l=i[s],c=l.length,p=r[s]=new Array(c),d=0;d<c;++d)(a=l[d])&&(u=e.call(a,a.__data__,d,l))&&("__data__"in a&&(u.__data__=a.__data__),p[d]=u,Rl(p[d],t,n,d,p,Ne(a,n)));return new yt(r,this._parents,t,n)},ql=function(e){var t=this._name,n=this._id;"function"!=typeof e&&(e=au(e));for(var i=this._groups,o=i.length,r=[],s=[],a=0;a<o;++a)for(var u,l=i[a],c=l.length,p=0;p<c;++p)if(u=l[p]){for(var d,h=e.call(u,u.__data__,p,l),f=Ne(u,n),m=0,y=h.length;m<y;++m)(d=h[m])&&Rl(d,t,n,m,h,f);r.push(h),s.push(u)}return new yt(r,s,t,n)},zl=zu.prototype.constructor,Wl=function(){return new zl(this._groups,this._parents)},Gl=function(e,t,n){var i="transform"==(e+="")?ul.w:Dl;return null==t?this.styleTween(e,rt(e,i)).on("end.style."+e,st(e)):"function"==typeof t?this.styleTween(e,ut(e,i,Be(this,"style."+e,t))).each(lt(this._id,e)):this.styleTween(e,at(e,i,t),n).on("end.style."+e,null)},Yl=function(e,t,n){var i="style."+(e+="");if(arguments.length<2)return(i=this.tween(i))&&i._value;if(null==t)return this.tween(i,null);if("function"!=typeof t)throw new Error;return this.tween(i,pt(e,t,null==n?"":n))},Kl=function(e){return this.tween("text","function"==typeof e?ht(Be(this,"text",e)):dt(null==e?"":e+""))},Jl=function(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(null==e)return this.tween(t,null);if("function"!=typeof e)throw new Error;return this.tween(t,mt(e))},Zl=function(){for(var e=this._name,t=this._id,n=vt(),i=this._groups,o=i.length,r=0;r<o;++r)for(var s,a=i[r],u=a.length,l=0;l<u;++l)if(s=a[l]){var c=Ne(s,t);Rl(s,e,n,l,a,{time:c.time+c.delay+c.duration,delay:0,duration:c.duration,ease:c.ease})}return new yt(i,this._parents,e,n)},Xl=function(){var e,t,n=this,i=n._id,o=n.size();return new Promise(function(r,s){var a={value:s},u={value:function(){0==--o&&r()}};n.each(function(){var n=$e(this,i),o=n.on;o!==e&&(t=(e=o).copy(),t._.cancel.push(a),t._.interrupt.push(a),t._.end.push(u)),n.on=t})})},ec=0,tc=zu.prototype;yt.prototype=gt.prototype={constructor:yt,select:Hl,selectAll:ql,filter:Bl,merge:Ul,selection:Wl,transition:Zl,call:tc.call,nodes:tc.nodes,node:tc.node,size:tc.size,empty:tc.empty,each:tc.each,on:Ql,attr:$l,attrTween:Nl,style:Gl,styleTween:Yl,text:Kl,textTween:Jl,remove:jl,tween:Il,delay:kl,duration:Vl,ease:Ll,end:Xl};var nc=function e(t){function n(e){return Math.pow(e,t)}return t=+t,n.exponent=e,n}(3),ic=function e(t){function n(e){return 1-Math.pow(1-e,t)}return t=+t,n.exponent=e,n}(3),oc=function e(t){function n(e){return((e*=2)<=1?Math.pow(e,t):2-Math.pow(2-e,t))/2}return t=+t,n.exponent=e,n}(3),rc=Math.PI,sc=rc/2,ac=4/11,uc=6/11,lc=8/11,cc=.75,pc=9/11,dc=10/11,hc=.9375,fc=21/22,mc=63/64,yc=1/ac/ac,gc=function e(t){function n(e){return(e=+e)*e*(t*(e-1)+e)}return t=+t,n.overshoot=e,n}(1.70158),vc=function e(t){function n(e){return--e*e*((e+1)*t+e)+1}return t=+t,n.overshoot=e,n}(1.70158),bc=function e(t){function n(e){return((e*=2)<1?e*e*((t+1)*e-t):(e-=2)*e*((t+1)*e+t)+2)/2}return t=+t,n.overshoot=e,n}(1.70158),Sc=2*Math.PI,Cc=function e(t,n){function i(e){return t*Rt(- --e)*Math.sin((o-e)/n)}var o=Math.asin(1/(t=Math.max(1,t)))*(n/=Sc);return i.amplitude=function(t){return e(t,n*Sc)},i.period=function(n){return e(t,n)},i}(1,.3),wc=function e(t,n){function i(e){return 1-t*Rt(e=+e)*Math.sin((e+o)/n)}var o=Math.asin(1/(t=Math.max(1,t)))*(n/=Sc);return i.amplitude=function(t){return e(t,n*Sc)},i.period=function(n){return e(t,n)},i}(1,.3),_c=function e(t,n){function i(e){return((e=2*e-1)<0?t*Rt(-e)*Math.sin((o-e)/n):2-t*Rt(e)*Math.sin((o+e)/n))/2}var o=Math.asin(1/(t=Math.max(1,t)))*(n/=Sc);return i.amplitude=function(t){return e(t,n*Sc)},i.period=function(n){return e(t,n)},i}(1,.3),Oc={time:null,delay:0,duration:250,ease:xt},xc=function(e){var t,n;e instanceof yt?(t=e._id,e=e._name):(t=vt(),(n=Oc).time=xe(),e=null==e?null:e+"");for(var i=this._groups,o=i.length,r=0;r<o;++r)for(var s,a=i[r],u=a.length,l=0;l<u;++l)(s=a[l])&&Rl(s,e,t,l,a,n||Lt(s,t));return new yt(i,this._parents,e,t)};zu.prototype.interrupt=Ml,zu.prototype.transition=xc;var Ec=[null],Ac=function(e,t){var n,i,o=e.__transition;if(o){t=null==t?null:t+"";for(i in o)if((n=o[i]).state>_l&&n.name===t)return new yt([[e]],Ec,t,+i)}return null},Tc=function(e){return function(){return e}},Rc=function(e,t,n){this.target=e,this.type=t,this.selection=n},Fc=function(){Qu.preventDefault(),Qu.stopImmediatePropagation()},Mc={name:"drag"},Ic={name:"space"},Pc={name:"handle"},Dc={name:"center"},$c={name:"x",handles:["w","e"].map(Ht),input:function(e,t){return null==e?null:[[+e[0],t[0][1]],[+e[1],t[1][1]]]},output:function(e){return e&&[e[0][0],e[1][0]]}},Nc={name:"y",handles:["n","s"].map(Ht),input:function(e,t){return null==e?null:[[t[0][0],+e[0]],[t[1][0],+e[1]]]},output:function(e){return e&&[e[0][1],e[1][1]]}},kc={name:"xy",handles:["n","w","e","s","nw","ne","sw","se"].map(Ht),input:function(e){return null==e?null:Qt(e)},output:function(e){return e}},Vc={overlay:"crosshair",selection:"move",n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},Lc={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},Bc={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},Uc={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},Qc={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1},jc=function(){return Xt(kc)},Hc=Math.cos,qc=Math.sin,zc=Math.PI,Wc=zc/2,Gc=2*zc,Yc=Math.max,Kc=function(){function e(e){var r,s,a,u,l,c,p=e.length,d=[],h=Object(qa.s)(p),f=[],m=[],y=m.groups=new Array(p),g=new Array(p*p);for(r=0,l=-1;++l<p;){for(s=0,c=-1;++c<p;)s+=e[l][c];d.push(s),f.push(Object(qa.s)(p)),r+=s}for(n&&h.sort(function(e,t){return n(d[e],d[t])}),i&&f.forEach(function(t,n){t.sort(function(t,o){return i(e[n][t],e[n][o])})}),r=Yc(0,Gc-t*p)/r,u=r?t:Gc/p,s=0,l=-1;++l<p;){for(a=s,c=-1;++c<p;){var v=h[l],b=f[v][c],S=e[v][b],C=s,w=s+=S*r;g[b*p+v]={index:v,subindex:b,startAngle:C,endAngle:w,value:S}}y[v]={index:v,startAngle:a,endAngle:s,value:d[v]},s+=u}for(l=-1;++l<p;)for(c=l-1;++c<p;){var _=g[c*p+l],O=g[l*p+c];(_.value||O.value)&&m.push(_.value<O.value?{source:O,target:_}:{source:_,target:O})}return o?m.sort(o):m}var t=0,n=null,i=null,o=null;return e.padAngle=function(n){return arguments.length?(t=Yc(0,n),e):t},e.sortGroups=function(t){return arguments.length?(n=t,e):n},e.sortSubgroups=function(t){return arguments.length?(i=t,e):i},e.sortChords=function(t){return arguments.length?(null==t?o=null:(o=en(t))._=t,e):o&&o._},e},Jc=Array.prototype.slice,Zc=function(e){return function(){return e}},Xc=Math.PI,ep=2*Xc,tp=ep-1e-6;tn.prototype=nn.prototype={constructor:tn,moveTo:function(e,t){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(e,t){this._+="L"+(this._x1=+e)+","+(this._y1=+t)},quadraticCurveTo:function(e,t,n,i){this._+="Q"+ +e+","+ +t+","+(this._x1=+n)+","+(this._y1=+i)},bezierCurveTo:function(e,t,n,i,o,r){this._+="C"+ +e+","+ +t+","+ +n+","+ +i+","+(this._x1=+o)+","+(this._y1=+r)},arcTo:function(e,t,n,i,o){e=+e,t=+t,n=+n,i=+i,o=+o;var r=this._x1,s=this._y1,a=n-e,u=i-t,l=r-e,c=s-t,p=l*l+c*c;if(o<0)throw new Error("negative radius: "+o);if(null===this._x1)this._+="M"+(this._x1=e)+","+(this._y1=t);else if(p>1e-6)if(Math.abs(c*a-u*l)>1e-6&&o){var d=n-r,h=i-s,f=a*a+u*u,m=d*d+h*h,y=Math.sqrt(f),g=Math.sqrt(p),v=o*Math.tan((Xc-Math.acos((f+p-m)/(2*y*g)))/2),b=v/g,S=v/y;Math.abs(b-1)>1e-6&&(this._+="L"+(e+b*l)+","+(t+b*c)),this._+="A"+o+","+o+",0,0,"+ +(c*d>l*h)+","+(this._x1=e+S*a)+","+(this._y1=t+S*u)}else this._+="L"+(this._x1=e)+","+(this._y1=t);else;},arc:function(e,t,n,i,o,r){e=+e,t=+t,n=+n,r=!!r;var s=n*Math.cos(i),a=n*Math.sin(i),u=e+s,l=t+a,c=1^r,p=r?i-o:o-i;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+u+","+l:(Math.abs(this._x1-u)>1e-6||Math.abs(this._y1-l)>1e-6)&&(this._+="L"+u+","+l),n&&(p<0&&(p=p%ep+ep),p>tp?this._+="A"+n+","+n+",0,1,"+c+","+(e-s)+","+(t-a)+"A"+n+","+n+",0,1,"+c+","+(this._x1=u)+","+(this._y1=l):p>1e-6&&(this._+="A"+n+","+n+",0,"+ +(p>=Xc)+","+c+","+(this._x1=e+n*Math.cos(o))+","+(this._y1=t+n*Math.sin(o))))},rect:function(e,t,n,i){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +n+"v"+ +i+"h"+-n+"Z"},toString:function(){return this._}};var np=nn,ip=function(){function e(){var e,a=Jc.call(arguments),u=t.apply(this,a),l=n.apply(this,a),c=+i.apply(this,(a[0]=u,a)),p=o.apply(this,a)-Wc,d=r.apply(this,a)-Wc,h=c*Hc(p),f=c*qc(p),m=+i.apply(this,(a[0]=l,a)),y=o.apply(this,a)-Wc,g=r.apply(this,a)-Wc;if(s||(s=e=np()),s.moveTo(h,f),s.arc(0,0,c,p,d),p===y&&d===g||(s.quadraticCurveTo(0,0,m*Hc(y),m*qc(y)),s.arc(0,0,m,y,g)),s.quadraticCurveTo(0,0,h,f),s.closePath(),e)return s=null,e+""||null}var t=on,n=rn,i=sn,o=an,r=un,s=null;return e.radius=function(t){return arguments.length?(i="function"==typeof t?t:Zc(+t),e):i},e.startAngle=function(t){return arguments.length?(o="function"==typeof t?t:Zc(+t),e):o},e.endAngle=function(t){return arguments.length?(r="function"==typeof t?t:Zc(+t),e):r},e.source=function(n){return arguments.length?(t=n,e):t},e.target=function(t){return arguments.length?(n=t,e):n},e.context=function(t){return arguments.length?(s=null==t?null:t,e):s},e},op=n(183),rp=Array.prototype,sp=rp.slice,ap=function(e,t){return e-t},up=function(e){for(var t=0,n=e.length,i=e[n-1][1]*e[0][0]-e[n-1][0]*e[0][1];++t<n;)i+=e[t-1][1]*e[t][0]-e[t-1][0]*e[t][1];return i},lp=function(e){return function(){return e}},cp=function(e,t){for(var n,i=-1,o=t.length;++i<o;)if(n=ln(e,t[i]))return n;return 0},pp=function(){},dp=[[],[[[1,1.5],[.5,1]]],[[[1.5,1],[1,1.5]]],[[[1.5,1],[.5,1]]],[[[1,.5],[1.5,1]]],[[[1,1.5],[.5,1]],[[1,.5],[1.5,1]]],[[[1,.5],[1,1.5]]],[[[1,.5],[.5,1]]],[[[.5,1],[1,.5]]],[[[1,1.5],[1,.5]]],[[[.5,1],[1,.5]],[[1.5,1],[1,1.5]]],[[[1.5,1],[1,.5]]],[[[.5,1],[1.5,1]]],[[[1,1.5],[1.5,1]]],[[[.5,1],[1,1.5]]],[]],hp=function(){function e(e){var n=a(e);if(Array.isArray(n))n=n.slice().sort(ap);else{var i=Object(qa.i)(e),o=i[0],r=i[1];n=Object(qa.A)(o,r,n),n=Object(qa.s)(Math.floor(o/n)*n,Math.floor(r/n)*n,n)}return n.map(function(n){return t(e,n)})}function t(e,t){var i=[],o=[];return n(e,t,function(n){u(n,e,t),up(n)>0?i.push([n]):o.push(n)}),o.forEach(function(e){for(var t,n=0,o=i.length;n<o;++n)if(-1!==cp((t=i[n])[0],e))return void t.push(e)}),{type:"MultiPolygon",value:t,coordinates:i}}function n(e,t,n){function o(e){var t,o,r=[e[0][0]+a,e[0][1]+u],s=[e[1][0]+a,e[1][1]+u],l=i(r),c=i(s);(t=f[l])?(o=h[c])?(delete f[t.end],delete h[o.start],t===o?(t.ring.push(s),n(t.ring)):h[t.start]=f[o.end]={start:t.start,end:o.end,ring:t.ring.concat(o.ring)}):(delete f[t.end],t.ring.push(s),f[t.end=c]=t):(t=h[c])?(o=f[l])?(delete h[t.start],delete f[o.end],t===o?(t.ring.push(s),n(t.ring)):h[o.start]=f[t.end]={start:o.start,end:t.end,ring:o.ring.concat(t.ring)}):(delete h[t.start],t.ring.unshift(r),h[t.start=l]=t):h[l]=f[c]={start:l,end:c,ring:[r,s]}}var a,u,l,c,p,d,h=new Array,f=new Array;for(a=u=-1,c=e[0]>=t,dp[c<<1].forEach(o);++a<r-1;)l=c,c=e[a+1]>=t,dp[l|c<<1].forEach(o);for(dp[c<<0].forEach(o);++u<s-1;){for(a=-1,c=e[u*r+r]>=t,p=e[u*r]>=t,dp[c<<1|p<<2].forEach(o);++a<r-1;)l=c,c=e[u*r+r+a+1]>=t,d=p,p=e[u*r+a+1]>=t,dp[l|c<<1|p<<2|d<<3].forEach(o);dp[c|p<<3].forEach(o)}for(a=-1,p=e[u*r]>=t,dp[p<<2].forEach(o);++a<r-1;)d=p,p=e[u*r+a+1]>=t,dp[p<<2|d<<3].forEach(o);dp[p<<3].forEach(o)}function i(e){return 2*e[0]+e[1]*(r+1)*4}function o(e,t,n){e.forEach(function(e){var i,o=e[0],a=e[1],u=0|o,l=0|a,c=t[l*r+u];o>0&&o<r&&u===o&&(i=t[l*r+u-1],e[0]=o+(n-i)/(c-i)-.5),a>0&&a<s&&l===a&&(i=t[(l-1)*r+u],e[1]=a+(n-i)/(c-i)-.5)})}var r=1,s=1,a=qa.y,u=o;return e.contour=t,e.size=function(t){if(!arguments.length)return[r,s];var n=Math.ceil(t[0]),i=Math.ceil(t[1]);if(!(n>0&&i>0))throw new Error("invalid size");return r=n,s=i,e},e.thresholds=function(t){return arguments.length?(a="function"==typeof t?t:lp(Array.isArray(t)?sp.call(t):t),e):a},e.smooth=function(t){return arguments.length?(u=t?o:pp,e):u===o},e},fp=function(){function e(e){var n=new Float32Array(f*m),i=new Float32Array(f*m);e.forEach(function(e,t,i){var o=+s(e,t,i)+h>>d,r=+a(e,t,i)+h>>d,l=+u(e,t,i);o>=0&&o<f&&r>=0&&r<m&&(n[o+r*f]+=l)}),hn({width:f,height:m,data:n},{width:f,height:m,data:i},p>>d),fn({width:f,height:m,data:i},{width:f,height:m,data:n},p>>d),hn({width:f,height:m,data:n},{width:f,height:m,data:i},p>>d),fn({width:f,height:m,data:i},{width:f,height:m,data:n},p>>d),hn({width:f,height:m,data:n},{width:f,height:m,data:i},p>>d),fn({width:f,height:m,data:i},{width:f,height:m,data:n},p>>d);var o=y(n);if(!Array.isArray(o)){var r=Object(qa.k)(n);o=Object(qa.A)(0,r,o),o=Object(qa.s)(0,Math.floor(r/o)*o,o),o.shift()}return hp().thresholds(o).size([f,m])(n).map(t)}function t(e){return e.value*=Math.pow(2,-2*d),e.coordinates.forEach(n),e}function n(e){e.forEach(i)}function i(e){e.forEach(o)}function o(e){e[0]=e[0]*Math.pow(2,d)-h,e[1]=e[1]*Math.pow(2,d)-h}function r(){return h=3*p,f=l+2*h>>d,m=c+2*h>>d,e}var s=mn,a=yn,u=gn,l=960,c=500,p=20,d=2,h=3*p,f=l+2*h>>d,m=c+2*h>>d,y=lp(20);return e.x=function(t){return arguments.length?(s="function"==typeof t?t:lp(+t),e):s},e.y=function(t){return arguments.length?(a="function"==typeof t?t:lp(+t),e):a},e.weight=function(t){return arguments.length?(u="function"==typeof t?t:lp(+t),e):u},e.size=function(e){if(!arguments.length)return[l,c];var t=Math.ceil(e[0]),n=Math.ceil(e[1]);if(!(t>=0||t>=0))throw new Error("invalid size");return l=t,c=n,r()},e.cellSize=function(e){if(!arguments.length)return 1<<d;if(!((e=+e)>=1))throw new Error("invalid cell size");return d=Math.floor(Math.log(e)/Math.LN2),r()},e.thresholds=function(t){return arguments.length?(y="function"==typeof t?t:lp(Array.isArray(t)?sp.call(t):t),e):y},e.bandwidth=function(e){if(!arguments.length)return Math.sqrt(p*(p+1));if(!((e=+e)>=0))throw new Error("invalid bandwidth");return p=Math.round((Math.sqrt(4*e*e+1)-1)/2),r()},e},mp={},yp={},gp=34,vp=10,bp=13,Sp=function(e){function t(e,t){var i,o,r=n(e,function(e,n){if(i)return i(e,n-1);o=e,i=t?bn(e,t):vn(e)});return r.columns=o||[],r}function n(e,t){function n(){if(u)return yp;if(l)return l=!1,mp;var t,n,i=s;if(e.charCodeAt(i)===gp){for(;s++<r&&e.charCodeAt(s)!==gp||e.charCodeAt(++s)===gp;);return(t=s)>=r?u=!0:(n=e.charCodeAt(s++))===vp?l=!0:n===bp&&(l=!0,e.charCodeAt(s)===vp&&++s),e.slice(i+1,t-1).replace(/""/g,'"')}for(;s<r;){if((n=e.charCodeAt(t=s++))===vp)l=!0;else if(n===bp)l=!0,e.charCodeAt(s)===vp&&++s;else if(n!==c)continue;return e.slice(i,t)}return u=!0,e.slice(i,r)}var i,o=[],r=e.length,s=0,a=0,u=r<=0,l=!1;for(e.charCodeAt(r-1)===vp&&--r,e.charCodeAt(r-1)===bp&&--r;(i=n())!==yp;){for(var p=[];i!==mp&&i!==yp;)p.push(i),i=n();t&&null==(p=t(p,a++))||o.push(p)}return o}function i(t,n){return t.map(function(t){return n.map(function(e){return u(t[e])}).join(e)})}function o(t,n){return null==n&&(n=Sn(t)),[n.map(u).join(e)].concat(i(t,n)).join("\n")}function r(e,t){return null==t&&(t=Sn(e)),i(e,t).join("\n")}function s(e){return e.map(a).join("\n")}function a(t){return t.map(u).join(e)}function u(e){return null==e?"":e instanceof Date?_n(e):l.test(e+="")?'"'+e.replace(/"/g,'""')+'"':e}var l=new RegExp('["'+e+"\n\r]"),c=e.charCodeAt(0);return{parse:t,parseRows:n,format:o,formatBody:r,formatRows:s,formatRow:a,formatValue:u}},Cp=Sp(","),wp=Cp.parse,_p=Cp.parseRows,Op=Cp.format,xp=Cp.formatBody,Ep=Cp.formatRows,Ap=Cp.formatRow,Tp=Cp.formatValue,Rp=Sp("\t"),Fp=Rp.parse,Mp=Rp.parseRows,Ip=Rp.format,Pp=Rp.formatBody,Dp=Rp.formatRows,$p=Rp.formatRow,Np=Rp.formatValue,kp=new Date("2019-01-01T00:00").getHours()||new Date("2019-07-01T00:00").getHours(),Vp=function(e,t){return fetch(e,t).then(xn)},Lp=function(e,t){return fetch(e,t).then(En)},Bp=function(e,t){return fetch(e,t).then(An)},Up=Tn(wp),Qp=Tn(Fp),jp=function(e,t){return new Promise(function(n,i){var o=new Image;for(var r in t)o[r]=t[r];o.onerror=i,o.onload=function(){n(o)},o.src=e})},Hp=function(e,t){return fetch(e,t).then(Fn)},qp=Mn("application/xml"),zp=Mn("text/html"),Wp=Mn("image/svg+xml"),Gp=function(e,t){function n(){var n,o,r=i.length,s=0,a=0;for(n=0;n<r;++n)o=i[n],s+=o.x,a+=o.y;for(s=s/r-e,a=a/r-t,n=0;n<r;++n)o=i[n],o.x-=s,o.y-=a}var i;return null==e&&(e=0),null==t&&(t=0),n.initialize=function(e){i=e},n.x=function(t){return arguments.length?(e=+t,n):e},n.y=function(e){return arguments.length?(t=+e,n):t},n},Yp=function(e){return function(){return e}},Kp=function(){return 1e-6*(Math.random()-.5)},Jp=function(e){var t=+this._x.call(null,e),n=+this._y.call(null,e);return In(this.cover(t,n),t,n,e)},Zp=function(e,t){if(isNaN(e=+e)||isNaN(t=+t))return this;var n=this._x0,i=this._y0,o=this._x1,r=this._y1;if(isNaN(n))o=(n=Math.floor(e))+1,r=(i=Math.floor(t))+1;else{for(var s,a,u=o-n,l=this._root;n>e||e>=o||i>t||t>=r;)switch(a=(t<i)<<1|e<n,s=new Array(4),s[a]=l,l=s,u*=2,a){case 0:o=n+u,r=i+u;break;case 1:n=o-u,r=i+u;break;case 2:o=n+u,i=r-u;break;case 3:n=o-u,i=r-u}this._root&&this._root.length&&(this._root=l)}return this._x0=n,this._y0=i,this._x1=o,this._y1=r,this},Xp=function(){var e=[];return this.visit(function(t){if(!t.length)do{e.push(t.data)}while(t=t.next)}),e},ed=function(e){return arguments.length?this.cover(+e[0][0],+e[0][1]).cover(+e[1][0],+e[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]},td=function(e,t,n,i,o){this.node=e,this.x0=t,this.y0=n,this.x1=i,this.y1=o},nd=function(e,t,n){var i,o,r,s,a,u,l,c=this._x0,p=this._y0,d=this._x1,h=this._y1,f=[],m=this._root;for(m&&f.push(new td(m,c,p,d,h)),null==n?n=1/0:(c=e-n,p=t-n,d=e+n,h=t+n,n*=n);u=f.pop();)if(!(!(m=u.node)||(o=u.x0)>d||(r=u.y0)>h||(s=u.x1)<c||(a=u.y1)<p))if(m.length){var y=(o+s)/2,g=(r+a)/2;f.push(new td(m[3],y,g,s,a),new td(m[2],o,g,y,a),new td(m[1],y,r,s,g),new td(m[0],o,r,y,g)),(l=(t>=g)<<1|e>=y)&&(u=f[f.length-1],f[f.length-1]=f[f.length-1-l],f[f.length-1-l]=u)}else{var v=e-+this._x.call(null,m.data),b=t-+this._y.call(null,m.data),S=v*v+b*b;if(S<n){var C=Math.sqrt(n=S);c=e-C,p=t-C,d=e+C,h=t+C,i=m.data}}return i},id=function(e){if(isNaN(r=+this._x.call(null,e))||isNaN(s=+this._y.call(null,e)))return this;var t,n,i,o,r,s,a,u,l,c,p,d,h=this._root,f=this._x0,m=this._y0,y=this._x1,g=this._y1;if(!h)return this;if(h.length)for(;;){if((l=r>=(a=(f+y)/2))?f=a:y=a,(c=s>=(u=(m+g)/2))?m=u:g=u,t=h,!(h=h[p=c<<1|l]))return this;if(!h.length)break;(t[p+1&3]||t[p+2&3]||t[p+3&3])&&(n=t,d=p)}for(;h.data!==e;)if(i=h,!(h=h.next))return this;return(o=h.next)&&delete h.next,i?(o?i.next=o:delete i.next,this):t?(o?t[p]=o:delete t[p],(h=t[0]||t[1]||t[2]||t[3])&&h===(t[3]||t[2]||t[1]||t[0])&&!h.length&&(n?n[d]=h:this._root=h),this):(this._root=o,this)},od=function(){return this._root},rd=function(){var e=0;return this.visit(function(t){if(!t.length)do{++e}while(t=t.next)}),e},sd=function(e){var t,n,i,o,r,s,a=[],u=this._root;for(u&&a.push(new td(u,this._x0,this._y0,this._x1,this._y1));t=a.pop();)if(!e(u=t.node,i=t.x0,o=t.y0,r=t.x1,s=t.y1)&&u.length){var l=(i+r)/2,c=(o+s)/2;(n=u[3])&&a.push(new td(n,l,c,r,s)),(n=u[2])&&a.push(new td(n,i,c,l,s)),(n=u[1])&&a.push(new td(n,l,o,r,c)),(n=u[0])&&a.push(new td(n,i,o,l,c))}return this},ad=function(e){var t,n=[],i=[];for(this._root&&n.push(new td(this._root,this._x0,this._y0,this._x1,this._y1));t=n.pop();){var o=t.node;if(o.length){var r,s=t.x0,a=t.y0,u=t.x1,l=t.y1,c=(s+u)/2,p=(a+l)/2;(r=o[0])&&n.push(new td(r,s,a,c,p)),(r=o[1])&&n.push(new td(r,c,a,u,p)),(r=o[2])&&n.push(new td(r,s,p,c,l)),(r=o[3])&&n.push(new td(r,c,p,u,l))}i.push(t)}for(;t=i.pop();)e(t.node,t.x0,t.y0,t.x1,t.y1);return this},ud=function(e){return arguments.length?(this._x=e,this):this._x},ld=function(e){return arguments.length?(this._y=e,this):this._y},cd=kn.prototype=Vn.prototype;cd.copy=function(){var e,t,n=new Vn(this._x,this._y,this._x0,this._y0,this._x1,this._y1),i=this._root;if(!i)return n;if(!i.length)return n._root=Ln(i),n;for(e=[{source:i,target:n._root=new Array(4)}];i=e.pop();)for(var o=0;o<4;++o)(t=i.source[o])&&(t.length?e.push({source:t,target:i.target[o]=new Array(4)}):i.target[o]=Ln(t));return n},cd.add=Jp,cd.addAll=Pn,cd.cover=Zp,cd.data=Xp,cd.extent=ed,cd.find=nd,cd.remove=id,cd.removeAll=Dn,cd.root=od,cd.size=rd,cd.visit=sd,cd.visitAfter=ad,cd.x=ud,cd.y=ld;var pd=function(e){function t(){function e(e,t,n,i,o){var r=e.data,a=e.r,h=p+a;{if(!r)return t>l+h||i<l-h||n>c+h||o<c-h;if(r.index>u.index){var f=l-r.x-r.vx,m=c-r.y-r.vy,y=f*f+m*m;y<h*h&&(0===f&&(f=Kp(),y+=f*f),0===m&&(m=Kp(),y+=m*m),y=(h-(y=Math.sqrt(y)))/y*s,u.vx+=(f*=y)*(h=(a*=a)/(d+a)),u.vy+=(m*=y)*h,r.vx-=f*(h=1-h),r.vy-=m*h)}}}for(var t,i,u,l,c,p,d,h=o.length,f=0;f<a;++f)for(i=kn(o,Bn,Un).visitAfter(n),t=0;t<h;++t)u=o[t],p=r[u.index],d=p*p,l=u.x+u.vx,c=u.y+u.vy,i.visit(e)}function n(e){if(e.data)return e.r=r[e.data.index];for(var t=e.r=0;t<4;++t)e[t]&&e[t].r>e.r&&(e.r=e[t].r)}function i(){if(o){var t,n,i=o.length;for(r=new Array(i),t=0;t<i;++t)n=o[t],r[n.index]=+e(n,t,o)}}var o,r,s=1,a=1;return"function"!=typeof e&&(e=Yp(null==e?1:+e)),t.initialize=function(e){o=e,i()},t.iterations=function(e){return arguments.length?(a=+e,t):a},t.strength=function(e){return arguments.length?(s=+e,t):s},t.radius=function(n){return arguments.length?(e="function"==typeof n?n:Yp(+n),i(),t):e},t},dd=function(e){function t(e){return 1/Math.min(l[e.source.index],l[e.target.index])}function n(t){for(var n=0,i=e.length;n<f;++n)for(var o,r,u,l,p,d,h,m=0;m<i;++m)o=e[m],r=o.source,u=o.target,l=u.x+u.vx-r.x-r.vx||Kp(),p=u.y+u.vy-r.y-r.vy||Kp(),d=Math.sqrt(l*l+p*p),d=(d-a[m])/d*t*s[m],l*=d,p*=d,u.vx-=l*(h=c[m]),u.vy-=p*h,r.vx+=l*(h=1-h),r.vy+=p*h}function i(){if(u){var t,n,i=u.length,d=e.length,h=Object(op.c)(u,p);for(t=0,l=new Array(i);t<d;++t)n=e[t],n.index=t,"object"!=typeof n.source&&(n.source=jn(h,n.source)),"object"!=typeof n.target&&(n.target=jn(h,n.target)),l[n.source.index]=(l[n.source.index]||0)+1,l[n.target.index]=(l[n.target.index]||0)+1;for(t=0,c=new Array(d);t<d;++t)n=e[t],c[t]=l[n.source.index]/(l[n.source.index]+l[n.target.index]);s=new Array(d),o(),a=new Array(d),r()}}function o(){if(u)for(var t=0,n=e.length;t<n;++t)s[t]=+d(e[t],t,e)}function r(){if(u)for(var t=0,n=e.length;t<n;++t)a[t]=+h(e[t],t,e)}var s,a,u,l,c,p=Qn,d=t,h=Yp(30),f=1;return null==e&&(e=[]),n.initialize=function(e){u=e,i()},n.links=function(t){return arguments.length?(e=t,i(),n):e},n.id=function(e){return arguments.length?(p=e,n):p},n.iterations=function(e){return arguments.length?(f=+e,n):f},n.strength=function(e){return arguments.length?(d="function"==typeof e?e:Yp(+e),o(),n):d},n.distance=function(e){return arguments.length?(h="function"==typeof e?e:Yp(+e),r(),n):h},n},hd=10,fd=Math.PI*(3-Math.sqrt(5)),md=function(e){function t(){n(),h.call("tick",r),s<a&&(d.stop(),h.call("end",r))}function n(t){var n,i,o=e.length;void 0===t&&(t=1);for(var a=0;a<t;++a)for(s+=(l-s)*u,p.each(function(e){e(s)}),n=0;n<o;++n)i=e[n],null==i.fx?i.x+=i.vx*=c:(i.x=i.fx,i.vx=0),null==i.fy?i.y+=i.vy*=c:(i.y=i.fy,i.vy=0);return r}function i(){for(var t,n=0,i=e.length;n<i;++n){if(t=e[n],t.index=n,null!=t.fx&&(t.x=t.fx),null!=t.fy&&(t.y=t.fy),isNaN(t.x)||isNaN(t.y)){var o=hd*Math.sqrt(n),r=n*fd;t.x=o*Math.cos(r),t.y=o*Math.sin(r)}(isNaN(t.vx)||isNaN(t.vy))&&(t.vx=t.vy=0)}}function o(t){return t.initialize&&t.initialize(e),t}var r,s=1,a=.001,u=1-Math.pow(a,1/300),l=0,c=.6,p=Object(op.c)(),d=Te(t),h=eu("tick","end");return null==e&&(e=[]),i(),r={tick:n,restart:function(){return d.restart(t),r},stop:function(){return d.stop(),r},nodes:function(t){return arguments.length?(e=t,i(),p.each(o),r):e},alpha:function(e){return arguments.length?(s=+e,r):s},alphaMin:function(e){return arguments.length?(a=+e,r):a},alphaDecay:function(e){return arguments.length?(u=+e,r):+u},alphaTarget:function(e){return arguments.length?(l=+e,r):l},velocityDecay:function(e){return arguments.length?(c=1-e,r):1-c},force:function(e,t){return arguments.length>1?(null==t?p.remove(e):p.set(e,o(t)),r):p.get(e)},find:function(t,n,i){var o,r,s,a,u,l=0,c=e.length;for(null==i?i=1/0:i*=i,l=0;l<c;++l)a=e[l],o=t-a.x,r=n-a.y,(s=o*o+r*r)<i&&(u=a,i=s);return u},on:function(e,t){return arguments.length>1?(h.on(e,t),r):h.on(e)}}},yd=function(){function e(e){var t,a=o.length,u=kn(o,Hn,qn).visitAfter(n);for(s=e,t=0;t<a;++t)r=o[t],u.visit(i)}function t(){if(o){var e,t,n=o.length;for(a=new Array(n),e=0;e<n;++e)t=o[e],a[t.index]=+u(t,e,o)}}function n(e){var t,n,i,o,r,s=0,u=0;if(e.length){for(i=o=r=0;r<4;++r)(t=e[r])&&(n=Math.abs(t.value))&&(s+=t.value,u+=n,i+=n*t.x,o+=n*t.y);e.x=i/u,e.y=o/u}else{t=e,t.x=t.data.x,t.y=t.data.y;do{s+=a[t.data.index]}while(t=t.next)}e.value=s}function i(e,t,n,i){if(!e.value)return!0;var o=e.x-r.x,u=e.y-r.y,d=i-t,h=o*o+u*u;if(d*d/p<h)return h<c&&(0===o&&(o=Kp(),h+=o*o),0===u&&(u=Kp(),h+=u*u),h<l&&(h=Math.sqrt(l*h)),r.vx+=o*e.value*s/h,r.vy+=u*e.value*s/h),!0;if(!(e.length||h>=c)){(e.data!==r||e.next)&&(0===o&&(o=Kp(),h+=o*o),0===u&&(u=Kp(),h+=u*u),h<l&&(h=Math.sqrt(l*h)));do{e.data!==r&&(d=a[e.data.index]*s/h,r.vx+=o*d,r.vy+=u*d)}while(e=e.next)}}var o,r,s,a,u=Yp(-30),l=1,c=1/0,p=.81;return e.initialize=function(e){o=e,t()},e.strength=function(n){return arguments.length?(u="function"==typeof n?n:Yp(+n),t(),e):u},e.distanceMin=function(t){return arguments.length?(l=t*t,e):Math.sqrt(l)},e.distanceMax=function(t){return arguments.length?(c=t*t,e):Math.sqrt(c)},e.theta=function(t){return arguments.length?(p=t*t,e):Math.sqrt(p)},e},gd=function(e,t,n){function i(e){for(var i=0,o=r.length;i<o;++i){var u=r[i],l=u.x-t||1e-6,c=u.y-n||1e-6,p=Math.sqrt(l*l+c*c),d=(a[i]-p)*s[i]*e/p;u.vx+=l*d,u.vy+=c*d}}function o(){if(r){var t,n=r.length;for(s=new Array(n),a=new Array(n),t=0;t<n;++t)a[t]=+e(r[t],t,r),s[t]=isNaN(a[t])?0:+u(r[t],t,r)}}var r,s,a,u=Yp(.1);return"function"!=typeof e&&(e=Yp(+e)),null==t&&(t=0),null==n&&(n=0),i.initialize=function(e){r=e,o()},i.strength=function(e){return arguments.length?(u="function"==typeof e?e:Yp(+e),o(),i):u},i.radius=function(t){return arguments.length?(e="function"==typeof t?t:Yp(+t),o(),i):e},i.x=function(e){return arguments.length?(t=+e,i):t},i.y=function(e){return arguments.length?(n=+e,i):n},i},vd=function(e){function t(e){for(var t,n=0,s=i.length;n<s;++n)t=i[n],t.vx+=(r[n]-t.x)*o[n]*e}function n(){if(i){var t,n=i.length;for(o=new Array(n),r=new Array(n),t=0;t<n;++t)o[t]=isNaN(r[t]=+e(i[t],t,i))?0:+s(i[t],t,i)}}var i,o,r,s=Yp(.1);return"function"!=typeof e&&(e=Yp(null==e?0:+e)),t.initialize=function(e){i=e,n()},t.strength=function(e){return arguments.length?(s="function"==typeof e?e:Yp(+e),n(),t):s},t.x=function(i){return arguments.length?(e="function"==typeof i?i:Yp(+i),n(),t):e},t},bd=function(e){function t(e){for(var t,n=0,s=i.length;n<s;++n)t=i[n],t.vy+=(r[n]-t.y)*o[n]*e}function n(){if(i){var t,n=i.length;for(o=new Array(n),r=new Array(n),t=0;t<n;++t)o[t]=isNaN(r[t]=+e(i[t],t,i))?0:+s(i[t],t,i)}}var i,o,r,s=Yp(.1);return"function"!=typeof e&&(e=Yp(null==e?0:+e)),t.initialize=function(e){i=e,n()},t.strength=function(e){return arguments.length?(s="function"==typeof e?e:Yp(+e),n(),t):s},t.y=function(i){return arguments.length?(e="function"==typeof i?i:Yp(+i),n(),t):e},t},Sd=n(229),Cd=function(){return new zn};zn.prototype={constructor:zn,reset:function(){this.s=this.t=0},add:function(e){Wn(Xd,e,this.t),Wn(this,Xd.s,this.s),this.s?this.t+=Xd.t:this.s=Xd.t},valueOf:function(){return this.s}};var wd,_d,Od,xd,Ed,Ad,Td,Rd,Fd,Md,Id,Pd,Dd,$d,Nd,kd,Vd,Ld,Bd,Ud,Qd,jd,Hd,qd,zd,Wd,Gd,Yd,Kd,Jd,Zd,Xd=new zn,eh=1e-6,th=1e-12,nh=Math.PI,ih=nh/2,oh=nh/4,rh=2*nh,sh=180/nh,ah=nh/180,uh=Math.abs,lh=Math.atan,ch=Math.atan2,ph=Math.cos,dh=Math.ceil,hh=Math.exp,fh=(Math.floor,Math.log),mh=Math.pow,yh=Math.sin,gh=Math.sign||function(e){return e>0?1:e<0?-1:0},vh=Math.sqrt,bh=Math.tan,Sh={Feature:function(e,t){Zn(e.geometry,t)},FeatureCollection:function(e,t){for(var n=e.features,i=-1,o=n.length;++i<o;)Zn(n[i].geometry,t)}},Ch={Sphere:function(e,t){t.sphere()},Point:function(e,t){e=e.coordinates,t.point(e[0],e[1],e[2])},MultiPoint:function(e,t){for(var n=e.coordinates,i=-1,o=n.length;++i<o;)e=n[i],t.point(e[0],e[1],e[2])},LineString:function(e,t){Xn(e.coordinates,t,0)},MultiLineString:function(e,t){for(var n=e.coordinates,i=-1,o=n.length;++i<o;)Xn(n[i],t,0)},Polygon:function(e,t){ei(e.coordinates,t)},MultiPolygon:function(e,t){for(var n=e.coordinates,i=-1,o=n.length;++i<o;)ei(n[i],t)},GeometryCollection:function(e,t){for(var n=e.geometries,i=-1,o=n.length;++i<o;)Zn(n[i],t)}},wh=function(e,t){e&&Sh.hasOwnProperty(e.type)?Sh[e.type](e,t):Zn(e,t)},_h=Cd(),Oh=Cd(),xh={point:Jn,lineStart:Jn,lineEnd:Jn,polygonStart:function(){_h.reset(),xh.lineStart=ti,xh.lineEnd=ni},polygonEnd:function(){var e=+_h;Oh.add(e<0?rh+e:e),this.lineStart=this.lineEnd=this.point=Jn},sphere:function(){Oh.add(rh)}},Eh=function(e){return Oh.reset(),wh(e,xh),2*Oh},Ah=Cd(),Th={point:di,lineStart:fi,lineEnd:mi,polygonStart:function(){Th.point=yi,Th.lineStart=gi,Th.lineEnd=vi,Ah.reset(),xh.polygonStart()},polygonEnd:function(){xh.polygonEnd(),Th.point=di,Th.lineStart=fi,Th.lineEnd=mi,_h<0?(Ad=-(Rd=180),Td=-(Fd=90)):Ah>eh?Fd=90:Ah<-eh&&(Td=-90),Nd[0]=Ad,Nd[1]=Rd},sphere:function(){Ad=-(Rd=180),Td=-(Fd=90)}},Rh=function(e){var t,n,i,o,r,s,a;if(Fd=Rd=-(Ad=Td=1/0),$d=[],wh(e,Th),n=$d.length){for($d.sort(Si),t=1,i=$d[0],r=[i];t<n;++t)o=$d[t],Ci(i,o[0])||Ci(i,o[1])?(bi(i[0],o[1])>bi(i[0],i[1])&&(i[1]=o[1]),bi(o[0],i[1])>bi(i[0],i[1])&&(i[0]=o[0])):r.push(i=o);for(s=-1/0,n=r.length-1,t=0,i=r[n];t<=n;i=o,++t)o=r[t],(a=bi(i[1],o[0]))>s&&(s=a,Ad=o[0],Rd=i[1])}return $d=Nd=null,Ad===1/0||Td===1/0?[[NaN,NaN],[NaN,NaN]]:[[Ad,Td],[Rd,Fd]]},Fh={sphere:Jn,point:wi,lineStart:Oi,lineEnd:Ai,polygonStart:function(){Fh.lineStart=Ti,Fh.lineEnd=Ri},polygonEnd:function(){Fh.lineStart=Oi,Fh.lineEnd=Ai}},Mh=function(e){kd=Vd=Ld=Bd=Ud=Qd=jd=Hd=qd=zd=Wd=0,wh(e,Fh);var t=qd,n=zd,i=Wd,o=t*t+n*n+i*i;return o<th&&(t=Qd,n=jd,i=Hd,Vd<eh&&(t=Ld,n=Bd,i=Ud),(o=t*t+n*n+i*i)<th)?[NaN,NaN]:[ch(n,t)*sh,Yn(i/vh(o))*sh]},Ih=function(e){return function(){return e}},Ph=function(e,t){function n(n,i){return n=e(n,i),t(n[0],n[1])}return e.invert&&t.invert&&(n.invert=function(n,i){return(n=t.invert(n,i))&&e.invert(n[0],n[1])}),n};Ii.invert=Ii;var Dh,$h,Nh,kh,Vh,Lh,Bh,Uh,Qh,jh,Hh,qh=function(e){function t(t){return t=e(t[0]*ah,t[1]*ah),t[0]*=sh,t[1]*=sh,t}return e=Pi(e[0]*ah,e[1]*ah,e.length>2?e[2]*ah:0),t.invert=function(t){return t=e.invert(t[0]*ah,t[1]*ah),t[0]*=sh,t[1]*=sh,t},t},zh=function(){function e(e,t){n.push(e=i(e,t)),e[0]*=sh,e[1]*=sh}function t(){var e=o.apply(this,arguments),t=r.apply(this,arguments)*ah,u=s.apply(this,arguments)*ah;return n=[],i=Pi(-e[0]*ah,-e[1]*ah,0).invert,ki(a,t,u,1),e={type:"Polygon",coordinates:[n]},n=i=null,e}var n,i,o=Ih([0,0]),r=Ih(90),s=Ih(6),a={point:e};return t.center=function(e){return arguments.length?(o="function"==typeof e?e:Ih([+e[0],+e[1]]),t):o},t.radius=function(e){return arguments.length?(r="function"==typeof e?e:Ih(+e),t):r},t.precision=function(e){return arguments.length?(s="function"==typeof e?e:Ih(+e),t):s},t},Wh=function(){var e,t=[];return{point:function(t,n,i){e.push([t,n,i])},lineStart:function(){t.push(e=[])},lineEnd:Jn,rejoin:function(){t.length>1&&t.push(t.pop().concat(t.shift()))},result:function(){var n=t;return t=[],e=null,n}}},Gh=function(e,t){return uh(e[0]-t[0])<eh&&uh(e[1]-t[1])<eh},Yh=function(e,t,n,i,o){var r,s,a=[],u=[];if(e.forEach(function(e){if(!((t=e.length-1)<=0)){var t,n,i=e[0],s=e[t];if(Gh(i,s)){if(!i[2]&&!s[2]){for(o.lineStart(),r=0;r<t;++r)o.point((i=e[r])[0],i[1]);return void o.lineEnd()}s[0]+=2*eh}a.push(n=new Li(i,e,null,!0)),u.push(n.o=new Li(i,null,n,!1)),a.push(n=new Li(s,e,null,!1)),u.push(n.o=new Li(s,null,n,!0))}}),a.length){for(u.sort(t),Bi(a),Bi(u),r=0,s=u.length;r<s;++r)u[r].e=n=!n;for(var l,c,p=a[0];;){for(var d=p,h=!0;d.v;)if((d=d.n)===p)return;l=d.z,o.lineStart();do{if(d.v=d.o.v=!0,d.e){if(h)for(r=0,s=l.length;r<s;++r)o.point((c=l[r])[0],c[1]);else i(d.x,d.n.x,1,o);d=d.n}else{if(h)for(l=d.p.z,r=l.length-1;r>=0;--r)o.point((c=l[r])[0],c[1]);else i(d.x,d.p.x,-1,o);d=d.p}d=d.o,l=d.z,h=!h}while(!d.v);o.lineEnd()}}},Kh=Cd(),Jh=function(e,t){var n=Ui(t),i=t[1],o=yh(i),r=[yh(n),-ph(n),0],s=0,a=0;Kh.reset(),1===o?i=ih+eh:-1===o&&(i=-ih-eh);for(var u=0,l=e.length;u<l;++u)if(p=(c=e[u]).length)for(var c,p,d=c[p-1],h=Ui(d),f=d[1]/2+oh,m=yh(f),y=ph(f),g=0;g<p;++g,h=b,m=C,y=w,d=v){var v=c[g],b=Ui(v),S=v[1]/2+oh,C=yh(S),w=ph(S),_=b-h,O=_>=0?1:-1,x=O*_,E=x>nh,A=m*C;if(Kh.add(ch(A*O*yh(x),y*w+A*ph(x))),s+=E?_+O*rh:_,E^h>=n^b>=n){var T=ui(si(d),si(v));pi(T);var R=ui(r,T);pi(R);var F=(E^_>=0?-1:1)*Yn(R[2]);(i>F||i===F&&(T[0]||T[1]))&&(a+=E^_>=0?1:-1)}}return(s<-eh||s<eh&&Kh<-eh)^1&a},Zh=function(e,t,n,i){return function(o){function r(t,n){e(t,n)&&o.point(t,n)}function s(e,t){m.point(e,t)}function a(){b.point=s,m.lineStart()}function u(){b.point=r,m.lineEnd()}function l(e,t){f.push([e,t]),g.point(e,t)}function c(){g.lineStart(),f=[]}function p(){l(f[0][0],f[0][1]),g.lineEnd();var e,t,n,i,r=g.clean(),s=y.result(),a=s.length;if(f.pop(),d.push(f),f=null,a)if(1&r){if(n=s[0],(t=n.length-1)>0){for(v||(o.polygonStart(),v=!0),o.lineStart(),e=0;e<t;++e)o.point((i=n[e])[0],i[1]);o.lineEnd()}}else a>1&&2&r&&s.push(s.pop().concat(s.shift())),h.push(s.filter(Qi))}var d,h,f,m=t(o),y=Wh(),g=t(y),v=!1,b={point:r,lineStart:a,lineEnd:u,polygonStart:function(){b.point=l,b.lineStart=c,b.lineEnd=p,h=[],d=[]},polygonEnd:function(){b.point=r,b.lineStart=a,b.lineEnd=u,h=Object(qa.n)(h);var e=Jh(d,i);h.length?(v||(o.polygonStart(),v=!0),Yh(h,ji,e,n,o)):e&&(v||(o.polygonStart(),v=!0),o.lineStart(),n(null,null,1,o),o.lineEnd()),v&&(o.polygonEnd(),v=!1),h=d=null},sphere:function(){o.polygonStart(),o.lineStart(),n(null,null,1,o),o.lineEnd(),o.polygonEnd()}};return b}},Xh=Zh(function(){return!0},Hi,zi,[-nh,-ih]),ef=function(e){function t(t,n,i,o){ki(o,e,a,i,t,n)}function n(e,t){return ph(e)*ph(t)>s}function i(e){var t,i,s,a,c;return{lineStart:function(){a=s=!1,c=1},point:function(p,d){var h,f=[p,d],m=n(p,d),y=u?m?0:r(p,d):m?r(p+(p<0?nh:-nh),d):0;if(!t&&(a=s=m)&&e.lineStart(),m!==s&&(!(h=o(t,f))||Gh(t,h)||Gh(f,h))&&(f[2]=1),m!==s)c=0,m?(e.lineStart(),h=o(f,t),e.point(h[0],h[1])):(h=o(t,f),e.point(h[0],h[1],2),e.lineEnd()),t=h;else if(l&&t&&u^m){var g;y&i||!(g=o(f,t,!0))||(c=0,u?(e.lineStart(),e.point(g[0][0],g[0][1]),e.point(g[1][0],g[1][1]),e.lineEnd()):(e.point(g[1][0],g[1][1]),e.lineEnd(),e.lineStart(),e.point(g[0][0],g[0][1],3)))}!m||t&&Gh(t,f)||e.point(f[0],f[1]),t=f,s=m,i=y},lineEnd:function(){s&&e.lineEnd(),t=null},clean:function(){return c|(a&&s)<<1}}}function o(e,t,n){var i=si(e),o=si(t),r=[1,0,0],a=ui(i,o),u=ai(a,a),l=a[0],c=u-l*l;if(!c)return!n&&e;var p=s*u/c,d=-s*l/c,h=ui(r,a),f=ci(r,p);li(f,ci(a,d));var m=h,y=ai(f,m),g=ai(m,m),v=y*y-g*(ai(f,f)-1);if(!(v<0)){var b=vh(v),S=ci(m,(-y-b)/g);if(li(S,f),S=ri(S),!n)return S;var C,w=e[0],_=t[0],O=e[1],x=t[1];_<w&&(C=w,w=_,_=C);var E=_-w,A=uh(E-nh)<eh,T=A||E<eh;if(!A&&x<O&&(C=O,O=x,x=C),T?A?O+x>0^S[1]<(uh(S[0]-w)<eh?O:x):O<=S[1]&&S[1]<=x:E>nh^(w<=S[0]&&S[0]<=_)){var R=ci(m,(-y+b)/g);return li(R,f),[S,ri(R)]}}}function r(t,n){var i=u?e:nh-e,o=0;return t<-i?o|=1:t>i&&(o|=2),n<-i?o|=4:n>i&&(o|=8),o}var s=ph(e),a=6*ah,u=s>0,l=uh(s)>eh;return Zh(n,i,t,u?[0,-e]:[-nh,e-nh])},tf=function(e,t,n,i,o,r){var s,a=e[0],u=e[1],l=t[0],c=t[1],p=0,d=1,h=l-a,f=c-u;if(s=n-a,h||!(s>0)){if(s/=h,h<0){if(s<p)return;s<d&&(d=s)}else if(h>0){if(s>d)return;s>p&&(p=s)}if(s=o-a,h||!(s<0)){if(s/=h,h<0){if(s>d)return;s>p&&(p=s)}else if(h>0){if(s<p)return;s<d&&(d=s)}if(s=i-u,f||!(s>0)){if(s/=f,f<0){if(s<p)return;s<d&&(d=s)}else if(f>0){if(s>d)return;s>p&&(p=s)}if(s=r-u,f||!(s<0)){if(s/=f,f<0){if(s>d)return;s>p&&(p=s)}else if(f>0){if(s<p)return;s<d&&(d=s)}return p>0&&(e[0]=a+p*h,e[1]=u+p*f),d<1&&(t[0]=a+d*h,t[1]=u+d*f),!0}}}}},nf=1e9,of=-nf,rf=function(){var e,t,n,i=0,o=0,r=960,s=500;return n={stream:function(n){return e&&t===n?e:e=Wi(i,o,r,s)(t=n)},extent:function(a){return arguments.length?(i=+a[0][0],o=+a[0][1],r=+a[1][0],s=+a[1][1],e=t=null,n):[[i,o],[r,s]]}}},sf=Cd(),af={sphere:Jn,point:Jn,lineStart:Gi,lineEnd:Jn,polygonStart:Jn,polygonEnd:Jn},uf=function(e){return sf.reset(),wh(e,af),+sf},lf=[null,null],cf={type:"LineString",coordinates:lf},pf=function(e,t){return lf[0]=e,lf[1]=t,uf(cf)},df={Feature:function(e,t){return Zi(e.geometry,t)},FeatureCollection:function(e,t){for(var n=e.features,i=-1,o=n.length;++i<o;)if(Zi(n[i].geometry,t))return!0;return!1}},hf={Sphere:function(){return!0},Point:function(e,t){return Xi(e.coordinates,t)},MultiPoint:function(e,t){for(var n=e.coordinates,i=-1,o=n.length;++i<o;)if(Xi(n[i],t))return!0;return!1},LineString:function(e,t){return eo(e.coordinates,t)},MultiLineString:function(e,t){for(var n=e.coordinates,i=-1,o=n.length;++i<o;)if(eo(n[i],t))return!0;return!1},Polygon:function(e,t){return to(e.coordinates,t)},MultiPolygon:function(e,t){for(var n=e.coordinates,i=-1,o=n.length;++i<o;)if(to(n[i],t))return!0;return!1},GeometryCollection:function(e,t){for(var n=e.geometries,i=-1,o=n.length;++i<o;)if(Zi(n[i],t))return!0;return!1}},ff=function(e,t){return(e&&df.hasOwnProperty(e.type)?df[e.type]:Zi)(e,t)},mf=function(e,t){var n=e[0]*ah,i=e[1]*ah,o=t[0]*ah,r=t[1]*ah,s=ph(i),a=yh(i),u=ph(r),l=yh(r),c=s*ph(n),p=s*yh(n),d=u*ph(o),h=u*yh(o),f=2*Yn(vh(Kn(r-i)+s*u*Kn(o-n))),m=yh(f),y=f?function(e){var t=yh(e*=f)/m,n=yh(f-e)/m,i=n*c+t*d,o=n*p+t*h,r=n*a+t*l;return[ch(o,i)*sh,ch(r,vh(i*i+o*o))*sh]}:function(){return[n*sh,i*sh]};return y.distance=f,y},yf=function(e){return e},gf=Cd(),vf=Cd(),bf={point:Jn,lineStart:Jn,lineEnd:Jn,polygonStart:function(){bf.lineStart=uo,bf.lineEnd=po},polygonEnd:function(){bf.lineStart=bf.lineEnd=bf.point=Jn,gf.add(uh(vf)),vf.reset()},result:function(){var e=gf/2;return gf.reset(),e}},Sf=bf,Cf=1/0,wf=Cf,_f=-Cf,Of=_f,xf={point:ho,lineStart:Jn,lineEnd:Jn,polygonStart:Jn,polygonEnd:Jn,result:function(){var e=[[Cf,wf],[_f,Of]];return _f=Of=-(wf=Cf=1/0),e}},Ef=xf,Af=0,Tf=0,Rf=0,Ff=0,Mf=0,If=0,Pf=0,Df=0,$f=0,Nf={point:fo,lineStart:mo,lineEnd:vo,polygonStart:function(){Nf.lineStart=bo,Nf.lineEnd=So},polygonEnd:function(){Nf.point=fo,Nf.lineStart=mo,Nf.lineEnd=vo},result:function(){var e=$f?[Pf/$f,Df/$f]:If?[Ff/If,Mf/If]:Rf?[Af/Rf,Tf/Rf]:[NaN,NaN];return Af=Tf=Rf=Ff=Mf=If=Pf=Df=$f=0,e}},kf=Nf;_o.prototype={_radius:4.5,pointRadius:function(e){return this._radius=e,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._context.closePath(),this._point=NaN},point:function(e,t){switch(this._point){case 0:this._context.moveTo(e,t),this._point=1;break;case 1:this._context.lineTo(e,t);break;default:this._context.moveTo(e+this._radius,t),this._context.arc(e,t,this._radius,0,rh)}},result:Jn};var Vf,Lf,Bf,Uf,Qf,jf=Cd(),Hf={point:Jn,lineStart:function(){Hf.point=Oo},lineEnd:function(){Vf&&xo(Lf,Bf),Hf.point=Jn},polygonStart:function(){Vf=!0},polygonEnd:function(){Vf=null},result:function(){var e=+jf;return jf.reset(),e}},qf=Hf;Eo.prototype={_radius:4.5,_circle:Ao(4.5),pointRadius:function(e){return(e=+e)!==this._radius&&(this._radius=e,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._string.push("Z"),this._point=NaN},point:function(e,t){switch(this._point){case 0:this._string.push("M",e,",",t),this._point=1;break;case 1:this._string.push("L",e,",",t);break;default:null==this._circle&&(this._circle=Ao(this._radius)),this._string.push("M",e,",",t,this._circle)}},result:function(){if(this._string.length){var e=this._string.join("");return this._string=[],e}return null}};var zf=function(e,t){function n(e){return e&&("function"==typeof r&&o.pointRadius(+r.apply(this,arguments)),wh(e,i(o))),o.result()}var i,o,r=4.5;return n.area=function(e){return wh(e,i(Sf)),Sf.result()},n.measure=function(e){return wh(e,i(qf)),qf.result()},n.bounds=function(e){return wh(e,i(Ef)),Ef.result()},n.centroid=function(e){return wh(e,i(kf)),kf.result()},n.projection=function(t){return arguments.length?(i=null==t?(e=null,yf):(e=t).stream,n):e},n.context=function(e){return arguments.length?(o=null==e?(t=null,new Eo):new _o(t=e),"function"!=typeof r&&o.pointRadius(r),n):t},n.pointRadius=function(e){return arguments.length?(r="function"==typeof e?e:(o.pointRadius(+e),+e),n):r},n.projection(e).context(t)},Wf=function(e){return{stream:To(e)}};Ro.prototype={constructor:Ro,point:function(e,t){this.stream.point(e,t)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};var Gf=16,Yf=ph(30*ah),Kf=function(e,t){return+t?No(e,t):$o(e)},Jf=To({point:function(e,t){this.stream.point(e*ah,t*ah)}}),Zf=function(){return Qo(Ho).scale(155.424).center([0,33.6442])},Xf=function(){return Zf().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])},em=function(){function e(e){var t=e[0],n=e[1];return a=null,o.point(t,n),a||(r.point(t,n),a)||(s.point(t,n),a)}function t(){return n=i=null,e}var n,i,o,r,s,a,u=Xf(),l=Zf().rotate([154,0]).center([-2,58.5]).parallels([55,65]),c=Zf().rotate([157,0]).center([-3,19.9]).parallels([8,18]),p={point:function(e,t){a=[e,t]}};return e.invert=function(e){var t=u.scale(),n=u.translate(),i=(e[0]-n[0])/t,o=(e[1]-n[1])/t;return(o>=.12&&o<.234&&i>=-.425&&i<-.214?l:o>=.166&&o<.234&&i>=-.214&&i<-.115?c:u).invert(e)},e.stream=function(e){return n&&i===e?n:n=qo([u.stream(i=e),l.stream(e),c.stream(e)])},e.precision=function(e){return arguments.length?(u.precision(e),l.precision(e),c.precision(e),t()):u.precision()},e.scale=function(t){return arguments.length?(u.scale(t),l.scale(.35*t),c.scale(t),e.translate(u.translate())):u.scale()},e.translate=function(e){if(!arguments.length)return u.translate();var n=u.scale(),i=+e[0],a=+e[1];return o=u.translate(e).clipExtent([[i-.455*n,a-.238*n],[i+.455*n,a+.238*n]]).stream(p),r=l.translate([i-.307*n,a+.201*n]).clipExtent([[i-.425*n+eh,a+.12*n+eh],[i-.214*n-eh,a+.234*n-eh]]).stream(p),s=c.translate([i-.205*n,a+.212*n]).clipExtent([[i-.214*n+eh,a+.166*n+eh],[i-.115*n-eh,a+.234*n-eh]]).stream(p),t()},e.fitExtent=function(t,n){return Mo(e,t,n)},e.fitSize=function(t,n){return Io(e,t,n)},e.fitWidth=function(t,n){return Po(e,t,n)},e.fitHeight=function(t,n){return Do(e,t,n)},e.scale(1070)},tm=zo(function(e){return vh(2/(1+e))});tm.invert=Wo(function(e){return 2*Yn(e/2)});var nm=function(){return Bo(tm).scale(124.75).clipAngle(179.999)},im=zo(function(e){return(e=Gn(e))&&e/yh(e)});im.invert=Wo(function(e){return e});var om=function(){return Bo(im).scale(79.4188).clipAngle(179.999)};Go.invert=function(e,t){return[e,2*lh(hh(t))-ih]};var rm=function(){return Yo(Go).scale(961/rh)},sm=function(){return Qo(Jo).scale(109.5).parallels([30,30])};Zo.invert=Zo;var am=function(){return Bo(Zo).scale(152.63)},um=function(){return Qo(Xo).scale(131.154).center([0,13.9389])},lm=1.340264,cm=-.081106,pm=893e-6,dm=.003796,hm=vh(3)/2;er.invert=function(e,t){for(var n,i,o,r=t,s=r*r,a=s*s*s,u=0;u<12&&(i=r*(lm+cm*s+a*(pm+dm*s))-t,o=lm+3*cm*s+a*(7*pm+9*dm*s),r-=n=i/o,s=r*r,a=s*s*s,!(uh(n)<th));++u);return[hm*e*(lm+3*cm*s+a*(7*pm+9*dm*s))/ph(r),Yn(yh(r)/hm)]};var fm=function(){return Bo(er).scale(177.158)};tr.invert=Wo(lh);var mm=function(){return Bo(tr).scale(144.049).clipAngle(60)},ym=function(){function e(){return y=l*d,g=l*h,a=u=null,t}function t(e){var t=e[0]*y,o=e[1]*g;if(f){var r=o*n-t*i;t=t*n+o*i,o=r}return[t+c,o+p]}var n,i,o,r,s,a,u,l=1,c=0,p=0,d=1,h=1,f=0,m=null,y=1,g=1,v=To({point:function(e,n){var i=t([e,n]);this.stream.point(i[0],i[1])}}),b=yf;return t.invert=function(e){var t=e[0]-c,o=e[1]-p;if(f){var r=o*n+t*i;t=t*n-o*i,o=r}return[t/y,o/g]},t.stream=function(e){return a&&u===e?a:a=v(b(u=e))},t.postclip=function(t){return arguments.length?(b=t,m=o=r=s=null,e()):b},t.clipExtent=function(t){return arguments.length?(b=null==t?(m=o=r=s=null,yf):Wi(m=+t[0][0],o=+t[0][1],r=+t[1][0],s=+t[1][1]),e()):null==m?null:[[m,o],[r,s]]},t.scale=function(t){return arguments.length?(l=+t,e()):l},t.translate=function(t){return arguments.length?(c=+t[0],p=+t[1],e()):[c,p]},t.angle=function(t){return arguments.length?(f=t%360*ah,i=yh(f),n=ph(f),e()):f*sh},t.reflectX=function(t){return arguments.length?(d=t?-1:1,e()):d<0},t.reflectY=function(t){return arguments.length?(h=t?-1:1,e()):h<0},t.fitExtent=function(e,n){return Mo(t,e,n)},t.fitSize=function(e,n){return Io(t,e,n)},t.fitWidth=function(e,n){return Po(t,e,n)},t.fitHeight=function(e,n){return Do(t,e,n)},t};nr.invert=function(e,t){var n,i=t,o=25;do{var r=i*i,s=r*r;i-=n=(i*(1.007226+r*(.015085+s*(.028874*r-.044475-.005916*s)))-t)/(1.007226+r*(.045255+s*(.259866*r-.311325-.005916*11*s)))}while(uh(n)>eh&&--o>0);return[e/(.8707+(r=i*i)*(r*(r*r*r*(.003971-.001529*r)-.013791)-.131979)),i]};var gm=function(){return Bo(nr).scale(175.295)};ir.invert=Wo(Yn);var vm=function(){return Bo(ir).scale(249.5).clipAngle(90+eh)};or.invert=Wo(function(e){return 2*lh(e)});var bm=function(){return Bo(or).scale(250).clipAngle(142)};rr.invert=function(e,t){return[-t,2*lh(hh(e))-ih]};var Sm=function(){var e=Yo(rr),t=e.center,n=e.rotate;return e.center=function(e){return arguments.length?t([-e[1],e[0]]):(e=t(),[e[1],-e[0]])},e.rotate=function(e){return arguments.length?n([e[0],e[1],e.length>2?e[2]+90:90]):(e=n(),[e[0],e[1],e[2]-90])},n([0,0,90]).scale(159.155)},Cm=function(){function e(e){var r,s=0;e.eachAfter(function(e){var n=e.children;n?(e.x=ar(n),e.y=lr(n)):(e.x=r?s+=t(e,r):0,e.y=0,r=e)});var a=pr(e),u=dr(e),l=a.x-t(a,u)/2,c=u.x+t(u,a)/2;return e.eachAfter(o?function(t){t.x=(t.x-e.x)*n,t.y=(e.y-t.y)*i}:function(t){t.x=(t.x-l)/(c-l)*n,t.y=(1-(e.y?t.y/e.y:1))*i})}var t=sr,n=1,i=1,o=!1;return e.separation=function(n){return arguments.length?(t=n,e):t},e.size=function(t){return arguments.length?(o=!1,n=+t[0],i=+t[1],e):o?null:[n,i]},e.nodeSize=function(t){return arguments.length?(o=!0,n=+t[0],i=+t[1],e):o?[n,i]:null},e},wm=function(){return this.eachAfter(hr)},_m=function(e){var t,n,i,o,r=this,s=[r];do{for(t=s.reverse(),s=[];r=t.pop();)if(e(r),n=r.children)for(i=0,o=n.length;i<o;++i)s.push(n[i])}while(s.length);return this},Om=function(e){for(var t,n,i=this,o=[i];i=o.pop();)if(e(i),t=i.children)for(n=t.length-1;n>=0;--n)o.push(t[n]);return this},xm=function(e){for(var t,n,i,o=this,r=[o],s=[];o=r.pop();)if(s.push(o),t=o.children)for(n=0,i=t.length;n<i;++n)r.push(t[n]);for(;o=s.pop();)e(o);return this},Em=function(e){return this.eachAfter(function(t){for(var n=+e(t.data)||0,i=t.children,o=i&&i.length;--o>=0;)n+=i[o].value;t.value=n})},Am=function(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})},Tm=function(e){for(var t=this,n=fr(t,e),i=[t];t!==n;)t=t.parent,i.push(t);for(var o=i.length;e!==n;)i.splice(o,0,e),e=e.parent;return i},Rm=function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},Fm=function(){var e=[];return this.each(function(t){e.push(t)}),e},Mm=function(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e},Im=function(){var e=this,t=[];return e.each(function(n){n!==e&&t.push({source:n.parent,target:n})}),t};Sr.prototype=mr.prototype={constructor:Sr,count:wm,each:_m,eachAfter:xm,eachBefore:Om,sum:Em,sort:Am,path:Tm,ancestors:Rm,descendants:Fm,leaves:Mm,links:Im,copy:yr};var Pm=Array.prototype.slice,Dm=function(e){for(var t,n,i=0,o=(e=Cr(Pm.call(e))).length,r=[];i<o;)t=e[i],n&&Or(n,t)?++i:(n=Er(r=wr(r,t)),i=0);return n},$m=function(e){return Dr(e),e},Nm=function(e){return function(){return e}},km=function(){function e(e){return e.x=n/2,e.y=i/2,t?e.eachBefore(Lr(t)).eachAfter(Br(o,.5)).eachBefore(Ur(1)):e.eachBefore(Lr(Vr)).eachAfter(Br(kr,1)).eachAfter(Br(o,e.r/Math.min(n,i))).eachBefore(Ur(Math.min(n,i)/(2*e.r))),e}var t=null,n=1,i=1,o=kr;return e.radius=function(n){return arguments.length?(t=$r(n),e):t},e.size=function(t){return arguments.length?(n=+t[0],i=+t[1],e):[n,i]},e.padding=function(t){return arguments.length?(o="function"==typeof t?t:Nm(+t),e):o},e},Vm=function(e){e.x0=Math.round(e.x0),e.y0=Math.round(e.y0),e.x1=Math.round(e.x1),e.y1=Math.round(e.y1)},Lm=function(e,t,n,i,o){for(var r,s=e.children,a=-1,u=s.length,l=e.value&&(i-t)/e.value;++a<u;)r=s[a],r.y0=n,r.y1=o,r.x0=t,r.x1=t+=r.value*l},Bm=function(){function e(e){var s=e.height+1;return e.x0=e.y0=o,e.x1=n,e.y1=i/s,e.eachBefore(t(i,s)),r&&e.eachBefore(Vm),e}function t(e,t){return function(n){n.children&&Lm(n,n.x0,e*(n.depth+1)/t,n.x1,e*(n.depth+2)/t);var i=n.x0,r=n.y0,s=n.x1-o,a=n.y1-o;s<i&&(i=s=(i+s)/2),a<r&&(r=a=(r+a)/2),n.x0=i,n.y0=r,n.x1=s,n.y1=a}}var n=1,i=1,o=0,r=!1;return e.round=function(t){return arguments.length?(r=!!t,e):r},e.size=function(t){return arguments.length?(n=+t[0],i=+t[1],e):[n,i]},e.padding=function(t){return arguments.length?(o=+t,e):o},e},Um="$",Qm={depth:-1},jm={},Hm=function(){function e(e){var i,o,r,s,a,u,l,c=e.length,p=new Array(c),d={};for(o=0;o<c;++o)i=e[o],a=p[o]=new Sr(i),null!=(u=t(i,o,e))&&(u+="")&&(l=Um+(a.id=u),d[l]=l in d?jm:a);for(o=0;o<c;++o)if(a=p[o],null!=(u=n(e[o],o,e))&&(u+="")){if(!(s=d[Um+u]))throw new Error("missing: "+u);if(s===jm)throw new Error("ambiguous: "+u);s.children?s.children.push(a):s.children=[a],a.parent=s}else{if(r)throw new Error("multiple roots");r=a}if(!r)throw new Error("no root");if(r.parent=Qm,r.eachBefore(function(e){e.depth=e.parent.depth+1,--c}).eachBefore(br),r.parent=null,c>0)throw new Error("cycle");return r}var t=Qr,n=jr;return e.id=function(n){return arguments.length?(t=Nr(n),e):t},e.parentId=function(t){return arguments.length?(n=Nr(t),e):n},e};Kr.prototype=Object.create(Sr.prototype);var qm=function(){function e(e){var i=Jr(e);if(i.eachAfter(t),i.parent.m=-i.z,i.eachBefore(n),u)e.eachBefore(o);else{var l=e,c=e,p=e;e.eachBefore(function(e){e.x<l.x&&(l=e),e.x>c.x&&(c=e),e.depth>p.depth&&(p=e)});var d=l===c?1:r(l,c)/2,h=d-l.x,f=s/(c.x+d+h),m=a/(p.depth||1);e.eachBefore(function(e){e.x=(e.x+h)*f,e.y=e.depth*m})}return e}function t(e){var t=e.children,n=e.parent.children,o=e.i?n[e.i-1]:null;if(t){Gr(e);var s=(t[0].z+t[t.length-1].z)/2;o?(e.z=o.z+r(e._,o._),e.m=e.z-s):e.z=s}else o&&(e.z=o.z+r(e._,o._));e.parent.A=i(e,o,e.parent.A||n[0])}function n(e){e._.x=e.z+e.parent.m,e.m+=e.parent.m}function i(e,t,n){if(t){for(var i,o=e,s=e,a=t,u=o.parent.children[0],l=o.m,c=s.m,p=a.m,d=u.m;a=zr(a),o=qr(o),a&&o;)u=qr(u),s=zr(s),s.a=e,i=a.z+p-o.z-l+r(a._,o._),i>0&&(Wr(Yr(a,e,n),e,i),l+=i,c+=i),p+=a.m,l+=o.m,d+=u.m,c+=s.m;a&&!zr(s)&&(s.t=a,s.m+=p-c),o&&!qr(u)&&(u.t=o,u.m+=l-d,n=e)}return n}function o(e){e.x*=s,e.y=e.depth*a}var r=Hr,s=1,a=1,u=null;return e.separation=function(t){return arguments.length?(r=t,e):r},e.size=function(t){return arguments.length?(u=!1,s=+t[0],a=+t[1],e):u?null:[s,a]},e.nodeSize=function(t){return arguments.length?(u=!0,s=+t[0],a=+t[1],e):u?[s,a]:null},e},zm=function(e,t,n,i,o){for(var r,s=e.children,a=-1,u=s.length,l=e.value&&(o-n)/e.value;++a<u;)r=s[a],r.x0=t,r.x1=i,r.y0=n,r.y1=n+=r.value*l},Wm=(1+Math.sqrt(5))/2,Gm=function e(t){function n(e,n,i,o,r){Zr(t,e,n,i,o,r)}return n.ratio=function(t){return e((t=+t)>1?t:1)},n}(Wm),Ym=function(){function e(e){return e.x0=e.y0=0,e.x1=o,e.y1=r,e.eachBefore(t),s=[0],i&&e.eachBefore(Vm),e}function t(e){var t=s[e.depth],i=e.x0+t,o=e.y0+t,r=e.x1-t,d=e.y1-t;r<i&&(i=r=(i+r)/2),d<o&&(o=d=(o+d)/2),e.x0=i,e.y0=o,e.x1=r,e.y1=d,e.children&&(t=s[e.depth+1]=a(e)/2,i+=p(e)-t,o+=u(e)-t,r-=l(e)-t,d-=c(e)-t,r<i&&(i=r=(i+r)/2),d<o&&(o=d=(o+d)/2),n(e,i,o,r,d))}var n=Gm,i=!1,o=1,r=1,s=[0],a=kr,u=kr,l=kr,c=kr,p=kr;return e.round=function(t){return arguments.length?(i=!!t,e):i},e.size=function(t){return arguments.length?(o=+t[0],r=+t[1],e):[o,r]},e.tile=function(t){return arguments.length?(n=Nr(t),e):n},e.padding=function(t){return arguments.length?e.paddingInner(t).paddingOuter(t):e.paddingInner()},e.paddingInner=function(t){return arguments.length?(a="function"==typeof t?t:Nm(+t),e):a},e.paddingOuter=function(t){return arguments.length?e.paddingTop(t).paddingRight(t).paddingBottom(t).paddingLeft(t):e.paddingTop()},e.paddingTop=function(t){return arguments.length?(u="function"==typeof t?t:Nm(+t),e):u},e.paddingRight=function(t){return arguments.length?(l="function"==typeof t?t:Nm(+t),e):l},e.paddingBottom=function(t){return arguments.length?(c="function"==typeof t?t:Nm(+t),e):c},e.paddingLeft=function(t){return arguments.length?(p="function"==typeof t?t:Nm(+t),e):p},e},Km=function(e,t,n,i,o){function r(e,t,n,i,o,s,a){if(e>=t-1){var l=u[e];return l.x0=i,l.y0=o,l.x1=s,l.y1=a,void 0}for(var p=c[e],d=n/2+p,h=e+1,f=t-1;h<f;){var m=h+f>>>1;c[m]<d?h=m+1:f=m}d-c[h-1]<c[h]-d&&e+1<h&&--h;var y=c[h]-p,g=n-y;if(s-i>a-o){var v=(i*g+s*y)/n;r(e,h,y,i,o,v,a),r(h,t,g,v,o,s,a)}else{var b=(o*g+a*y)/n;r(e,h,y,i,o,s,b),r(h,t,g,i,b,s,a)}}var s,a,u=e.children,l=u.length,c=new Array(l+1);for(c[0]=a=s=0;s<l;++s)c[s+1]=a+=u[s].value;r(0,l,e.value,t,n,i,o)},Jm=function(e,t,n,i,o){(1&e.depth?zm:Lm)(e,t,n,i,o)},Zm=function e(t){function n(e,n,i,o,r){if((s=e._squarify)&&s.ratio===t)for(var s,a,u,l,c,p=-1,d=s.length,h=e.value;++p<d;){for(a=s[p],u=a.children,l=a.value=0,c=u.length;l<c;++l)a.value+=u[l].value;a.dice?Lm(a,n,i,o,i+=(r-i)*a.value/h):zm(a,n,i,n+=(o-n)*a.value/h,r),h-=a.value}else e._squarify=s=Zr(t,e,n,i,o,r),s.ratio=t}return n.ratio=function(t){return e((t=+t)>1?t:1)},n}(Wm),Xm=function(e){for(var t,n=-1,i=e.length,o=e[i-1],r=0;++n<i;)t=o,o=e[n],r+=t[1]*o[0]-t[0]*o[1];return r/2},ey=function(e){for(var t,n,i=-1,o=e.length,r=0,s=0,a=e[o-1],u=0;++i<o;)t=a,a=e[i],u+=n=t[0]*a[1]-a[0]*t[1],r+=(t[0]+a[0])*n,s+=(t[1]+a[1])*n;return u*=3,[r/u,s/u]},ty=function(e,t,n){return(t[0]-e[0])*(n[1]-e[1])-(t[1]-e[1])*(n[0]-e[0])},ny=function(e){if((n=e.length)<3)return null;var t,n,i=new Array(n),o=new Array(n);for(t=0;t<n;++t)i[t]=[+e[t][0],+e[t][1],t];for(i.sort(Xr),t=0;t<n;++t)o[t]=[i[t][0],-i[t][1]];var r=es(i),s=es(o),a=s[0]===r[0],u=s[s.length-1]===r[r.length-1],l=[];for(t=r.length-1;t>=0;--t)l.push(e[i[r[t]][2]]);for(t=+a;t<s.length-u;++t)l.push(e[i[s[t]][2]]);return l},iy=function(e,t){for(var n,i,o=e.length,r=e[o-1],s=t[0],a=t[1],u=r[0],l=r[1],c=!1,p=0;p<o;++p)r=e[p],n=r[0],i=r[1],i>a!=l>a&&s<(u-n)*(a-i)/(l-i)+n&&(c=!c),u=n,l=i;return c},oy=function(e){for(var t,n,i=-1,o=e.length,r=e[o-1],s=r[0],a=r[1],u=0;++i<o;)t=s,n=a,r=e[i],s=r[0],a=r[1],t-=s,n-=a,u+=Math.sqrt(t*t+n*n);return u},ry=function(){return Math.random()},sy=function e(t){function n(e,n){return e=null==e?0:+e,n=null==n?1:+n,1===arguments.length?(n=e,e=0):n-=e,function(){return t()*n+e}}return n.source=e,n}(ry),ay=function e(t){function n(e,n){var i,o;return e=null==e?0:+e,n=null==n?1:+n,function(){var r;if(null!=i)r=i,i=null;else do{i=2*t()-1,r=2*t()-1,o=i*i+r*r}while(!o||o>1);return e+n*r*Math.sqrt(-2*Math.log(o)/o)}}return n.source=e,n}(ry),uy=function e(t){function n(){var e=ay.source(t).apply(this,arguments);return function(){return Math.exp(e())}}return n.source=e,n}(ry),ly=function e(t){function n(e){return function(){for(var n=0,i=0;i<e;++i)n+=t();return n}}return n.source=e,n}(ry),cy=function e(t){function n(e){var n=ly.source(t)(e);return function(){return n()/e}}return n.source=e,n}(ry),py=function e(t){function n(e){return function(){return-Math.log(1-t())/e}}return n.source=e,n}(ry),dy=n(523),hy=function(e){for(var t=e.length/6|0,n=new Array(t),i=0;i<t;)n[i]="#"+e.slice(6*i,6*++i);return n},fy=hy("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),my=hy("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666"),yy=hy("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666"),gy=hy("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928"),vy=hy("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2"),by=hy("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc"),Sy=hy("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999"),Cy=hy("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3"),wy=hy("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f"),_y=hy("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab"),Oy=function(e){return Object(ul.s)(e[e.length-1])},xy=new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(hy),Ey=Oy(xy),Ay=new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(hy),Ty=Oy(Ay),Ry=new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(hy),Fy=Oy(Ry),My=new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(hy),Iy=Oy(My),Py=new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(hy),Dy=Oy(Py),$y=new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(hy),Ny=Oy($y),ky=new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(hy),Vy=Oy(ky),Ly=new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(hy),By=Oy(Ly),Uy=new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(hy),Qy=Oy(Uy),jy=new Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(hy),Hy=Oy(jy),qy=new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(hy),zy=Oy(qy),Wy=new Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(hy),Gy=Oy(Wy),Yy=new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(hy),Ky=Oy(Yy),Jy=new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(hy),Zy=Oy(Jy),Xy=new Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(hy),eg=Oy(Xy),tg=new Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(hy),ng=Oy(tg),ig=new Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(hy),og=Oy(ig),rg=new Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(hy),sg=Oy(rg),ag=new Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(hy),ug=Oy(ag),lg=new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(hy),cg=Oy(lg),pg=new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(hy),dg=Oy(pg),hg=new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(hy),fg=Oy(hg),mg=new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(hy),yg=Oy(mg),gg=new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(hy),vg=Oy(gg),bg=new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(hy),Sg=Oy(bg),Cg=new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(hy),wg=Oy(Cg),_g=new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(hy),Og=Oy(_g),xg=function(e){return e=Math.max(0,Math.min(1,e)),"rgb("+Math.max(0,Math.min(255,Math.round(-4.54-e*(35.34-e*(2381.73-e*(6402.7-e*(7024.72-2710.57*e)))))))+", "+Math.max(0,Math.min(255,Math.round(32.49+e*(170.73+e*(52.82-e*(131.46-e*(176.58-67.37*e)))))))+", "+Math.max(0,Math.min(255,Math.round(81.24+e*(442.36-e*(2482.43-e*(6167.24-e*(6614.94-2475.67*e)))))))+")"},Eg=Object(ul.f)(Object(Pl.b)(300,.5,0),Object(Pl.b)(-240,.5,1)),Ag=Object(ul.f)(Object(Pl.b)(-100,.75,.35),Object(Pl.b)(80,1.5,.8)),Tg=Object(ul.f)(Object(Pl.b)(260,.75,.35),Object(Pl.b)(80,1.5,.8)),Rg=Object(Pl.b)(),Fg=function(e){(e<0||e>1)&&(e-=Math.floor(e));var t=Math.abs(e-.5);return Rg.h=360*e-100,Rg.s=1.5-1.5*t,Rg.l=.8-.9*t,Rg+""},Mg=Object(Pl.h)(),Ig=Math.PI/3,Pg=2*Math.PI/3,Dg=function(e){var t;return e=(.5-e)*Math.PI,Mg.r=255*(t=Math.sin(e))*t,Mg.g=255*(t=Math.sin(e+Ig))*t,Mg.b=255*(t=Math.sin(e+Pg))*t,Mg+""},$g=function(e){return e=Math.max(0,Math.min(1,e)),"rgb("+Math.max(0,Math.min(255,Math.round(34.61+e*(1172.33-e*(10793.56-e*(33300.12-e*(38394.49-14825.05*e)))))))+", "+Math.max(0,Math.min(255,Math.round(23.31+e*(557.33+e*(1225.33-e*(3574.96-e*(1073.77+707.56*e)))))))+", "+Math.max(0,Math.min(255,Math.round(27.2+e*(3211.1-e*(15327.97-e*(27814-e*(22569.18-6838.66*e)))))))+")"},Ng=ts(hy("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725")),kg=ts(hy("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),Vg=ts(hy("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),Lg=ts(hy("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921")),Bg=function(e){return function(){return e}},Ug=Math.abs,Qg=Math.atan2,jg=Math.cos,Hg=Math.max,qg=Math.min,zg=Math.sin,Wg=Math.sqrt,Gg=1e-12,Yg=Math.PI,Kg=Yg/2,Jg=2*Yg,Zg=function(){function e(){var e,l,c=+t.apply(this,arguments),p=+n.apply(this,arguments),d=r.apply(this,arguments)-Kg,h=s.apply(this,arguments)-Kg,f=Ug(h-d),m=h>d;if(u||(u=e=np()),p<c&&(l=p,p=c,c=l),p>Gg)if(f>Jg-Gg)u.moveTo(p*jg(d),p*zg(d)),u.arc(0,0,p,d,h,!m),c>Gg&&(u.moveTo(c*jg(h),c*zg(h)),u.arc(0,0,c,h,d,m));else{var y,g,v=d,b=h,S=d,C=h,w=f,_=f,O=a.apply(this,arguments)/2,x=O>Gg&&(o?+o.apply(this,arguments):Wg(c*c+p*p)),E=qg(Ug(p-c)/2,+i.apply(this,arguments)),A=E,T=E;if(x>Gg){var R=is(x/c*zg(O)),F=is(x/p*zg(O));(w-=2*R)>Gg?(R*=m?1:-1,S+=R,C-=R):(w=0,S=C=(d+h)/2),(_-=2*F)>Gg?(F*=m?1:-1,v+=F,b-=F):(_=0,v=b=(d+h)/2)}var M=p*jg(v),I=p*zg(v),P=c*jg(C),D=c*zg(C);if(E>Gg){var $,N=p*jg(b),k=p*zg(b),V=c*jg(S),L=c*zg(S);if(f<Yg&&($=ls(M,I,V,L,N,k,P,D))){var B=M-$[0],U=I-$[1],Q=N-$[0],j=k-$[1],H=1/zg(ns((B*Q+U*j)/(Wg(B*B+U*U)*Wg(Q*Q+j*j)))/2),q=Wg($[0]*$[0]+$[1]*$[1]);A=qg(E,(c-q)/(H-1)),T=qg(E,(p-q)/(H+1))}}_>Gg?T>Gg?(y=cs(V,L,M,I,p,T,m),g=cs(N,k,P,D,p,T,m),u.moveTo(y.cx+y.x01,y.cy+y.y01),T<E?u.arc(y.cx,y.cy,T,Qg(y.y01,y.x01),Qg(g.y01,g.x01),!m):(u.arc(y.cx,y.cy,T,Qg(y.y01,y.x01),Qg(y.y11,y.x11),!m),u.arc(0,0,p,Qg(y.cy+y.y11,y.cx+y.x11),Qg(g.cy+g.y11,g.cx+g.x11),!m),u.arc(g.cx,g.cy,T,Qg(g.y11,g.x11),Qg(g.y01,g.x01),!m))):(u.moveTo(M,I),u.arc(0,0,p,v,b,!m)):u.moveTo(M,I),c>Gg&&w>Gg?A>Gg?(y=cs(P,D,N,k,c,-A,m),g=cs(M,I,V,L,c,-A,m),u.lineTo(y.cx+y.x01,y.cy+y.y01),A<E?u.arc(y.cx,y.cy,A,Qg(y.y01,y.x01),Qg(g.y01,g.x01),!m):(u.arc(y.cx,y.cy,A,Qg(y.y01,y.x01),Qg(y.y11,y.x11),!m),u.arc(0,0,c,Qg(y.cy+y.y11,y.cx+y.x11),Qg(g.cy+g.y11,g.cx+g.x11),m),u.arc(g.cx,g.cy,A,Qg(g.y11,g.x11),Qg(g.y01,g.x01),!m))):u.arc(0,0,c,C,S,m):u.lineTo(P,D)}else u.moveTo(0,0);if(u.closePath(),e)return u=null,e+""||null}var t=os,n=rs,i=Bg(0),o=null,r=ss,s=as,a=us,u=null;return e.centroid=function(){var e=(+t.apply(this,arguments)+ +n.apply(this,arguments))/2,i=(+r.apply(this,arguments)+ +s.apply(this,arguments))/2-Yg/2;return[jg(i)*e,zg(i)*e]},e.innerRadius=function(n){return arguments.length?(t="function"==typeof n?n:Bg(+n),e):t},e.outerRadius=function(t){return arguments.length?(n="function"==typeof t?t:Bg(+t),e):n},e.cornerRadius=function(t){return arguments.length?(i="function"==typeof t?t:Bg(+t),e):i},e.padRadius=function(t){return arguments.length?(o=null==t?null:"function"==typeof t?t:Bg(+t),e):o},e.startAngle=function(t){return arguments.length?(r="function"==typeof t?t:Bg(+t),e):r},e.endAngle=function(t){return arguments.length?(s="function"==typeof t?t:Bg(+t),e):s},e.padAngle=function(t){return arguments.length?(a="function"==typeof t?t:Bg(+t),e):a},e.context=function(t){return arguments.length?(u=null==t?null:t,e):u},e};ps.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}};var Xg=function(e){return new ps(e)},ev=function(){function e(e){var a,u,l,c=e.length,p=!1;for(null==o&&(s=r(l=np())),a=0;a<=c;++a)!(a<c&&i(u=e[a],a,e))===p&&((p=!p)?s.lineStart():s.lineEnd()),p&&s.point(+t(u,a,e),+n(u,a,e));if(l)return s=null,l+""||null}var t=ds,n=hs,i=Bg(!0),o=null,r=Xg,s=null;return e.x=function(n){return arguments.length?(t="function"==typeof n?n:Bg(+n),e):t},e.y=function(t){return arguments.length?(n="function"==typeof t?t:Bg(+t),e):n},e.defined=function(t){return arguments.length?(i="function"==typeof t?t:Bg(!!t),e):i},e.curve=function(t){return arguments.length?(r=t,null!=o&&(s=r(o)),e):r},e.context=function(t){return arguments.length?(null==t?o=s=null:s=r(o=t),e):o},e},tv=function(){function e(e){var t,c,p,d,h,f=e.length,m=!1,y=new Array(f),g=new Array(f);for(null==a&&(l=u(h=np())),t=0;t<=f;++t){if(!(t<f&&s(d=e[t],t,e))===m)if(m=!m)c=t,l.areaStart(),l.lineStart();else{for(l.lineEnd(),l.lineStart(),p=t-1;p>=c;--p)l.point(y[p],g[p]);l.lineEnd(),l.areaEnd()}m&&(y[t]=+n(d,t,e),g[t]=+o(d,t,e),l.point(i?+i(d,t,e):y[t],r?+r(d,t,e):g[t]))}if(h)return l=null,h+""||null}function t(){return ev().defined(s).curve(u).context(a)}var n=ds,i=null,o=Bg(0),r=hs,s=Bg(!0),a=null,u=Xg,l=null;return e.x=function(t){return arguments.length?(n="function"==typeof t?t:Bg(+t),i=null,e):n},e.x0=function(t){return arguments.length?(n="function"==typeof t?t:Bg(+t),e):n},e.x1=function(t){return arguments.length?(i=null==t?null:"function"==typeof t?t:Bg(+t),e):i},e.y=function(t){return arguments.length?(o="function"==typeof t?t:Bg(+t),r=null,e):o},e.y0=function(t){return arguments.length?(o="function"==typeof t?t:Bg(+t),e):o},e.y1=function(t){return arguments.length?(r=null==t?null:"function"==typeof t?t:Bg(+t),e):r},e.lineX0=e.lineY0=function(){return t().x(n).y(o)},e.lineY1=function(){return t().x(n).y(r)},e.lineX1=function(){return t().x(i).y(o)},e.defined=function(t){return arguments.length?(s="function"==typeof t?t:Bg(!!t),e):s},e.curve=function(t){return arguments.length?(u=t,null!=a&&(l=u(a)),e):u},e.context=function(t){return arguments.length?(null==t?a=l=null:l=u(a=t),e):a},e},nv=function(e,t){return t<e?-1:t>e?1:t>=e?0:NaN},iv=function(e){return e},ov=function(){function e(e){var a,u,l,c,p,d=e.length,h=0,f=new Array(d),m=new Array(d),y=+o.apply(this,arguments),g=Math.min(Jg,Math.max(-Jg,r.apply(this,arguments)-y)),v=Math.min(Math.abs(g)/d,s.apply(this,arguments)),b=v*(g<0?-1:1);for(a=0;a<d;++a)(p=m[f[a]=a]=+t(e[a],a,e))>0&&(h+=p);for(null!=n?f.sort(function(e,t){return n(m[e],m[t])}):null!=i&&f.sort(function(t,n){return i(e[t],e[n])}),a=0,l=h?(g-d*b)/h:0;a<d;++a,y=c)u=f[a],p=m[u],c=y+(p>0?p*l:0)+b,m[u]={data:e[u],index:a,value:p,startAngle:y,endAngle:c,padAngle:v};return m}var t=iv,n=nv,i=null,o=Bg(0),r=Bg(Jg),s=Bg(0);return e.value=function(n){return arguments.length?(t="function"==typeof n?n:Bg(+n),e):t},e.sortValues=function(t){return arguments.length?(n=t,i=null,e):n},e.sort=function(t){return arguments.length?(i=t,n=null,e):i},e.startAngle=function(t){return arguments.length?(o="function"==typeof t?t:Bg(+t),e):o},e.endAngle=function(t){return arguments.length?(r="function"==typeof t?t:Bg(+t),e):r},e.padAngle=function(t){return arguments.length?(s="function"==typeof t?t:Bg(+t),e):s},e},rv=ms(Xg);fs.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(e,t){this._curve.point(t*Math.sin(e),t*-Math.cos(e))}};var sv=function(){return ys(ev().curve(rv))},av=function(){var e=tv().curve(rv),t=e.curve,n=e.lineX0,i=e.lineX1,o=e.lineY0,r=e.lineY1;return e.angle=e.x,delete e.x,e.startAngle=e.x0,delete e.x0,e.endAngle=e.x1,delete e.x1,e.radius=e.y,delete e.y,e.innerRadius=e.y0,delete e.y0,e.outerRadius=e.y1,delete e.y1,e.lineStartAngle=function(){return ys(n())},delete e.lineX0,e.lineEndAngle=function(){return ys(i())},delete e.lineX1,e.lineInnerRadius=function(){return ys(o())},delete e.lineY0,e.lineOuterRadius=function(){return ys(r())},delete e.lineY1,e.curve=function(e){return arguments.length?t(ms(e)):t()._curve},e},uv=function(e,t){return[(t=+t)*Math.cos(e-=Math.PI/2),t*Math.sin(e)]},lv=Array.prototype.slice,cv={draw:function(e,t){var n=Math.sqrt(t/Yg);e.moveTo(n,0),e.arc(0,0,n,0,Jg)}},pv={draw:function(e,t){var n=Math.sqrt(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},dv=Math.sqrt(1/3),hv=2*dv,fv={draw:function(e,t){var n=Math.sqrt(t/hv),i=n*dv;e.moveTo(0,-n),e.lineTo(i,0),e.lineTo(0,n),e.lineTo(-i,0),e.closePath()}},mv=Math.sin(Yg/10)/Math.sin(7*Yg/10),yv=Math.sin(Jg/10)*mv,gv=-Math.cos(Jg/10)*mv,vv={draw:function(e,t){var n=Math.sqrt(.8908130915292852*t),i=yv*n,o=gv*n;e.moveTo(0,-n),e.lineTo(i,o);for(var r=1;r<5;++r){var s=Jg*r/5,a=Math.cos(s),u=Math.sin(s);e.lineTo(u*n,-a*n),e.lineTo(a*i-u*o,u*i+a*o)}e.closePath()}},bv={draw:function(e,t){var n=Math.sqrt(t),i=-n/2;e.rect(i,i,n,n)}},Sv=Math.sqrt(3),Cv={draw:function(e,t){var n=-Math.sqrt(t/(3*Sv));e.moveTo(0,2*n),e.lineTo(-Sv*n,-n),e.lineTo(Sv*n,-n),e.closePath()}},wv=Math.sqrt(3)/2,_v=1/Math.sqrt(12),Ov=3*(_v/2+1),xv={draw:function(e,t){var n=Math.sqrt(t/Ov),i=n/2,o=n*_v,r=i,s=n*_v+n,a=-r,u=s;e.moveTo(i,o),e.lineTo(r,s),e.lineTo(a,u),e.lineTo(-.5*i-wv*o,wv*i+-.5*o),e.lineTo(-.5*r-wv*s,wv*r+-.5*s),e.lineTo(-.5*a-wv*u,wv*a+-.5*u),e.lineTo(-.5*i+wv*o,-.5*o-wv*i),e.lineTo(-.5*r+wv*s,-.5*s-wv*r),e.lineTo(-.5*a+wv*u,-.5*u-wv*a),e.closePath()}},Ev=[cv,pv,fv,bv,vv,Cv,xv],Av=function(){function e(){var e;if(i||(i=e=np()),t.apply(this,arguments).draw(i,+n.apply(this,arguments)),e)return i=null,e+""||null}var t=Bg(cv),n=Bg(64),i=null;return e.type=function(n){return arguments.length?(t="function"==typeof n?n:Bg(n),e):t},e.size=function(t){return arguments.length?(n="function"==typeof t?t:Bg(+t),e):n},e.context=function(t){return arguments.length?(i=null==t?null:t,e):i},e},Tv=function(){};As.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Es(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Es(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};var Rv=function(e){return new As(e)};Ts.prototype={areaStart:Tv,areaEnd:Tv,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:Es(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};var Fv=function(e){return new Ts(e)};Rs.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,i=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,i):this._context.moveTo(n,i);break;case 3:this._point=4;default:Es(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};var Mv=function(e){return new Rs(e)};Fs.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var i,o=e[0],r=t[0],s=e[n]-o,a=t[n]-r,u=-1;++u<=n;)i=u/n,this._basis.point(this._beta*e[u]+(1-this._beta)*(o+i*s),this._beta*t[u]+(1-this._beta)*(r+i*a));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};var Iv=function e(t){function n(e){return 1===t?new As(e):new Fs(e,t)}return n.beta=function(t){return e(+t)},n}(.85);Is.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Ms(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:Ms(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Pv=function e(t){function n(e){return new Is(e,t)}return n.tension=function(t){return e(+t)},n}(0);Ps.prototype={areaStart:Tv,areaEnd:Tv,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:Ms(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Dv=function e(t){function n(e){return new Ps(e,t)}return n.tension=function(t){return e(+t)},n}(0);Ds.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Ms(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var $v=function e(t){function n(e){return new Ds(e,t)}return n.tension=function(t){return e(+t)},n}(0);Ns.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,i=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+i*i,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:$s(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Nv=function e(t){function n(e){return t?new Ns(e,t):new Is(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);ks.prototype={areaStart:Tv,areaEnd:Tv,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,i=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+i*i,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:$s(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var kv=function e(t){function n(e){return t?new ks(e,t):new Ps(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);Vs.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,i=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+i*i,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:$s(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var Vv=function e(t){function n(e){return t?new Vs(e,t):new Ds(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);Ls.prototype={areaStart:Tv,areaEnd:Tv,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};var Lv=function(e){return new Ls(e)};Hs.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:js(this,this._t0,Qs(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,e!==this._x1||t!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,js(this,Qs(this,n=Us(this,e,t)),n);break;default:js(this,this._t0,n=Us(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}},(qs.prototype=Object.create(Hs.prototype)).point=function(e,t){Hs.prototype.point.call(this,t,e)},zs.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,i,o,r){this._context.bezierCurveTo(t,e,i,n,r,o)}},Ys.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),2===n)this._context.lineTo(e[1],t[1]);else for(var i=Ks(e),o=Ks(t),r=0,s=1;s<n;++r,++s)this._context.bezierCurveTo(i[0][r],o[0][r],i[1][r],o[1][r],e[s],t[s]);(this._line||0!==this._line&&1===n)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};var Bv=function(e){return new Ys(e)};Js.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}}this._x=e,this._y=t}};var Uv=function(e){return new Js(e,.5)},Qv=function(e,t){if((o=e.length)>1)for(var n,i,o,r=1,s=e[t[0]],a=s.length;r<o;++r)for(i=s,s=e[t[r]],n=0;n<a;++n)s[n][1]+=s[n][0]=isNaN(i[n][1])?i[n][0]:i[n][1]},jv=function(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n},Hv=function(){function e(e){var r,s,a=t.apply(this,arguments),u=e.length,l=a.length,c=new Array(l);for(r=0;r<l;++r){for(var p,d=a[r],h=c[r]=new Array(u),f=0;f<u;++f)h[f]=p=[0,+o(e[f],d,f,e)],p.data=e[f];h.key=d}for(r=0,s=n(c);r<l;++r)c[s[r]].index=r;return i(c,s),c}var t=Bg([]),n=jv,i=Qv,o=ea;return e.keys=function(n){return arguments.length?(t="function"==typeof n?n:Bg(lv.call(n)),e):t},e.value=function(t){return arguments.length?(o="function"==typeof t?t:Bg(+t),e):o},e.order=function(t){return arguments.length?(n=null==t?jv:"function"==typeof t?t:Bg(lv.call(t)),e):n},e.offset=function(t){return arguments.length?(i=null==t?Qv:t,e):i},e},qv=function(e,t){if((i=e.length)>0){for(var n,i,o,r=0,s=e[0].length;r<s;++r){for(o=n=0;n<i;++n)o+=e[n][r][1]||0;if(o)for(n=0;n<i;++n)e[n][r][1]/=o}Qv(e,t)}},zv=function(e,t){if((a=e.length)>0)for(var n,i,o,r,s,a,u=0,l=e[t[0]].length;u<l;++u)for(r=s=0,n=0;n<a;++n)(o=(i=e[t[n]][u])[1]-i[0])>0?(i[0]=r,i[1]=r+=o):o<0?(i[1]=s,i[0]=s+=o):(i[0]=0,i[1]=o)},Wv=function(e,t){if((n=e.length)>0){for(var n,i=0,o=e[t[0]],r=o.length;i<r;++i){for(var s=0,a=0;s<n;++s)a+=e[s][i][1]||0;o[i][1]+=o[i][0]=-a/2}Qv(e,t)}},Gv=function(e,t){if((o=e.length)>0&&(i=(n=e[t[0]]).length)>0){for(var n,i,o,r=0,s=1;s<i;++s){for(var a=0,u=0,l=0;a<o;++a){for(var c=e[t[a]],p=c[s][1]||0,d=c[s-1][1]||0,h=(p-d)/2,f=0;f<a;++f){var m=e[t[f]];h+=(m[s][1]||0)-(m[s-1][1]||0)}u+=p,l+=h*p}n[s-1][1]+=n[s-1][0]=r,u&&(r-=l/u)}n[s-1][1]+=n[s-1][0]=r,Qv(e,t)}},Yv=function(e){var t=e.map(ta);return jv(e).sort(function(e,n){return t[e]-t[n]})},Kv=function(e){var t=e.map(na);return jv(e).sort(function(e,n){return t[e]-t[n]})},Jv=function(e){return Kv(e).reverse()},Zv=function(e){var t,n,i=e.length,o=e.map(na),r=Yv(e),s=0,a=0,u=[],l=[];for(t=0;t<i;++t)n=r[t],s<a?(s+=o[n],u.push(n)):(a+=o[n],l.push(n));return l.reverse().concat(u)},Xv=function(e){return jv(e).reverse()},eb=n(184),tb=n(230),nb=function(e){return function(){return e}};ra.prototype={constructor:ra,insert:function(e,t){var n,i,o;if(e){if(t.P=e,t.N=e.N,e.N&&(e.N.P=t),e.N=t,e.R){for(e=e.R;e.L;)e=e.L;e.L=t}else e.R=t;n=e}else this._?(e=la(this._),t.P=null,t.N=e,e.P=e.L=t,n=e):(t.P=t.N=null,this._=t,n=null);for(t.L=t.R=null,t.U=n,t.C=!0,e=t;n&&n.C;)i=n.U,n===i.L?(o=i.R,o&&o.C?(n.C=o.C=!1,i.C=!0,e=i):(e===n.R&&(aa(this,n),e=n,n=e.U),n.C=!1,i.C=!0,ua(this,i))):(o=i.L,o&&o.C?(n.C=o.C=!1,i.C=!0,e=i):(e===n.L&&(ua(this,n),e=n,n=e.U),n.C=!1,i.C=!0,aa(this,i))),n=e.U;this._.C=!1},remove:function(e){e.N&&(e.N.P=e.P),e.P&&(e.P.N=e.N),e.N=e.P=null;var t,n,i,o=e.U,r=e.L,s=e.R;if(n=r?s?la(s):r:s,o?o.L===e?o.L=n:o.R=n:this._=n,r&&s?(i=n.C,n.C=e.C,n.L=r,r.U=n,n!==s?(o=n.U,n.U=e.U,e=n.R,o.L=e,n.R=s,s.U=n):(n.U=o,o=n,e=n.R)):(i=e.C,e=n),e&&(e.U=o),!i){if(e&&e.C)return void(e.C=!1);do{if(e===this._)break;if(e===o.L){if(t=o.R,t.C&&(t.C=!1,o.C=!0,aa(this,o),t=o.R),t.L&&t.L.C||t.R&&t.R.C){t.R&&t.R.C||(t.L.C=!1,t.C=!0,ua(this,t),t=o.R),t.C=o.C,o.C=t.R.C=!1,aa(this,o),e=this._;break}}else if(t=o.L,t.C&&(t.C=!1,o.C=!0,ua(this,o),t=o.L),t.L&&t.L.C||t.R&&t.R.C){t.L&&t.L.C||(t.R.C=!1,t.C=!0,aa(this,t),t=o.L),t.C=o.C,o.C=t.L.C=!1,ua(this,o),e=this._;break}t.C=!0,e=o,o=o.U}while(!e.C);e&&(e.C=!1)}}};var ib,ob,rb,sb,ab,ub=ra,lb=[],cb=[],pb=1e-6,db=1e-12;Da.prototype={constructor:Da,polygons:function(){var e=this.edges;return this.cells.map(function(t){var n=t.halfedges.map(function(n){return va(t,e[n])});return n.data=t.site.data,n})},triangles:function(){var e=[],t=this.edges;return this.cells.forEach(function(n,i){if(r=(o=n.halfedges).length)for(var o,r,s,a=n.site,u=-1,l=t[o[r-1]],c=l.left===a?l.right:l.left;++u<r;)s=c,l=t[o[u]],c=l.left===a?l.right:l.left,s&&c&&i<s.index&&i<c.index&&Ia(a,s,c)<0&&e.push([a.data,s.data,c.data])}),e},links:function(){return this.edges.filter(function(e){return e.right}).map(function(e){return{source:e.left.data,target:e.right.data}})},find:function(e,t,n){for(var i,o,r=this,s=r._found||0,a=r.cells.length;!(o=r.cells[s]);)if(++s>=a)return null;var u=e-o.site[0],l=t-o.site[1],c=u*u+l*l;do{o=r.cells[i=s],s=null,o.halfedges.forEach(function(n){var i=r.edges[n],a=i.left;if(a!==o.site&&a||(a=i.right)){var u=e-a[0],l=t-a[1],p=u*u+l*l;p<c&&(c=p,s=a.index)}})}while(null!==s);return r._found=i,null==n||c<=n*n?o.site:null}};var hb=function(){function e(e){return new Da(e.map(function(i,o){var r=[Math.round(t(i,o,e)/pb)*pb,Math.round(n(i,o,e)/pb)*pb];return r.index=o,r.data=i,r}),i)}var t=ia,n=oa,i=null;return e.polygons=function(t){return e(t).polygons()},e.links=function(t){return e(t).links()},e.triangles=function(t){return e(t).triangles()},e.x=function(n){return arguments.length?(t="function"==typeof n?n:nb(+n),e):t},e.y=function(t){return arguments.length?(n="function"==typeof t?t:nb(+t),e):n},e.extent=function(t){return arguments.length?(i=null==t?null:[[+t[0][0],+t[0][1]],[+t[1][0],+t[1][1]]],e):i&&[[i[0][0],i[0][1]],[i[1][0],i[1][1]]]},e.size=function(t){return arguments.length?(i=null==t?null:[[0,0],[+t[0],+t[1]]],e):i&&[i[1][0]-i[0][0],i[1][1]-i[0][1]]},e},fb=function(e){return function(){return e}};Na.prototype={constructor:Na,scale:function(e){return 1===e?this:new Na(this.k*e,this.x,this.y)},translate:function(e,t){return 0===e&0===t?this:new Na(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var mb=new Na(1,0,0);ka.prototype=Na.prototype;var yb=function(){Qu.preventDefault(),Qu.stopImmediatePropagation()},gb=function(){function e(e){e.property("__zoom",Ua).on("wheel.zoom",a).on("mousedown.zoom",u).on("dblclick.zoom",l).filter(b).on("touchstart.zoom",c).on("touchmove.zoom",p).on("touchend.zoom touchcancel.zoom",d).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function t(e,t){return t=Math.max(S[0],Math.min(S[1],t)),t===e.k?e:new Na(t,e.x,e.y)}function n(e,t,n){var i=t[0]-n[0]*e.k,o=t[1]-n[1]*e.k;return i===e.x&&o===e.y?e:new Na(e.k,i,o)}function i(e){return[(+e[0][0]+ +e[1][0])/2,(+e[0][1]+ +e[1][1])/2]}function o(e,t,n){e.on("start.zoom",function(){r(this,arguments).start()}).on("interrupt.zoom end.zoom",function(){r(this,arguments).end()}).tween("zoom",function(){var e=this,o=arguments,s=r(e,o),a=y.apply(e,o),u=null==n?i(a):"function"==typeof n?n.apply(e,o):n,l=Math.max(a[1][0]-a[0][0],a[1][1]-a[0][1]),c=e.__zoom,p="function"==typeof t?t.apply(e,o):t,d=_(c.invert(u).concat(l/c.k),p.invert(u).concat(l/p.k));return function(e){if(1===e)e=p;else{var t=d(e),n=l/t[2];e=new Na(n,u[0]-t[0]*n,u[1]-t[1]*n)}s.zoom(null,e)}})}function r(e,t,n){return!n&&e.__zooming||new s(e,t)}function s(e,t){this.that=e,this.args=t,this.active=0,this.extent=y.apply(e,t),this.taps=0}function a(){function e(){i.wheel=null,i.end()}if(m.apply(this,arguments)){var i=r(this,arguments),o=this.__zoom,s=Math.max(S[0],Math.min(S[1],o.k*Math.pow(2,v.apply(this,arguments)))),a=Zu(this);if(i.wheel)i.mouse[0][0]===a[0]&&i.mouse[0][1]===a[1]||(i.mouse[1]=o.invert(i.mouse[0]=a)),clearTimeout(i.wheel);else{if(o.k===s)return;i.mouse=[a,o.invert(a)],Fl(this),i.start()}yb(),i.wheel=setTimeout(e,E),i.zoom("mouse",g(n(t(o,s),i.mouse[0],i.mouse[1]),i.extent,C))}}function u(){function e(){if(yb(),!i.moved){var e=Qu.clientX-a,t=Qu.clientY-u;i.moved=e*e+t*t>A}i.zoom("mouse",g(n(i.that.__zoom,i.mouse[0]=Zu(i.that),i.mouse[1]),i.extent,C))}function t(){o.on("mousemove.zoom mouseup.zoom",null),be(Qu.view,i.moved),yb(),i.end()}if(!f&&m.apply(this,arguments)){var i=r(this,arguments,!0),o=Wu(Qu.view).on("mousemove.zoom",e,!0).on("mouseup.zoom",t,!0),s=Zu(this),a=Qu.clientX,u=Qu.clientY;il(Qu.view),Va(),i.mouse=[s,this.__zoom.invert(s)],Fl(this),i.start()}}function l(){if(m.apply(this,arguments)){var i=this.__zoom,r=Zu(this),s=i.invert(r),a=i.k*(Qu.shiftKey?.5:2),u=g(n(t(i,a),r,s),y.apply(this,arguments),C);yb(),w>0?Wu(this).transition().duration(w).call(o,u,r):Wu(this).call(e.transform,u)}}function c(){if(m.apply(this,arguments)){var e,t,n,i,o=Qu.touches,s=o.length,a=r(this,arguments,Qu.changedTouches.length===s);for(Va(),t=0;t<s;++t)n=o[t],i=el(this,o,n.identifier),i=[i,this.__zoom.invert(i),n.identifier],a.touch0?a.touch1||a.touch0[2]===i[2]||(a.touch1=i,a.taps=0):(a.touch0=i,e=!0,a.taps=1+!!h);h&&(h=clearTimeout(h)),e&&(a.taps<2&&(h=setTimeout(function(){h=null},x)),Fl(this),a.start())}}function p(){if(this.__zooming){var e,i,o,s,a=r(this,arguments),u=Qu.changedTouches,l=u.length;for(yb(),h&&(h=clearTimeout(h)),a.taps=0,e=0;e<l;++e)i=u[e],o=el(this,u,i.identifier),a.touch0&&a.touch0[2]===i.identifier?a.touch0[0]=o:a.touch1&&a.touch1[2]===i.identifier&&(a.touch1[0]=o);if(i=a.that.__zoom,a.touch1){var c=a.touch0[0],p=a.touch0[1],d=a.touch1[0],f=a.touch1[1],m=(m=d[0]-c[0])*m+(m=d[1]-c[1])*m,y=(y=f[0]-p[0])*y+(y=f[1]-p[1])*y;i=t(i,Math.sqrt(m/y)),o=[(c[0]+d[0])/2,(c[1]+d[1])/2],s=[(p[0]+f[0])/2,(p[1]+f[1])/2]}else{if(!a.touch0)return;o=a.touch0[0],s=a.touch0[1]}a.zoom("touch",g(n(i,o,s),a.extent,C))}}function d(){if(this.__zooming){var e,t,n=r(this,arguments),i=Qu.changedTouches,o=i.length;for(Va(),f&&clearTimeout(f),f=setTimeout(function(){f=null},x),e=0;e<o;++e)t=i[e],n.touch0&&n.touch0[2]===t.identifier?delete n.touch0:n.touch1&&n.touch1[2]===t.identifier&&delete n.touch1;if(n.touch1&&!n.touch0&&(n.touch0=n.touch1,delete n.touch1),n.touch0)n.touch0[1]=this.__zoom.invert(n.touch0[0]);else if(n.end(),2===n.taps){var s=Wu(this).on("dblclick.zoom");s&&s.apply(this,arguments)}}}var h,f,m=La,y=Ba,g=Ha,v=Qa,b=ja,S=[0,1/0],C=[[-1/0,-1/0],[1/0,1/0]],w=250,_=ul.y,O=eu("start","zoom","end"),x=500,E=150,A=0;return e.transform=function(e,t,n){var i=e.selection?e.selection():e;i.property("__zoom",Ua),e!==i?o(e,t,n):i.interrupt().each(function(){r(this,arguments).start().zoom(null,"function"==typeof t?t.apply(this,arguments):t).end()})},e.scaleBy=function(t,n,i){e.scaleTo(t,function(){return this.__zoom.k*("function"==typeof n?n.apply(this,arguments):n)},i)},e.scaleTo=function(o,r,s){e.transform(o,function(){var e=y.apply(this,arguments),o=this.__zoom,a=null==s?i(e):"function"==typeof s?s.apply(this,arguments):s,u=o.invert(a),l="function"==typeof r?r.apply(this,arguments):r;return g(n(t(o,l),a,u),e,C)},s)},e.translateBy=function(t,n,i){e.transform(t,function(){return g(this.__zoom.translate("function"==typeof n?n.apply(this,arguments):n,"function"==typeof i?i.apply(this,arguments):i),y.apply(this,arguments),C)})},e.translateTo=function(t,n,o,r){e.transform(t,function(){var e=y.apply(this,arguments),t=this.__zoom,s=null==r?i(e):"function"==typeof r?r.apply(this,arguments):r;return g(mb.translate(s[0],s[1]).scale(t.k).translate("function"==typeof n?-n.apply(this,arguments):-n,"function"==typeof o?-o.apply(this,arguments):-o),e,C)},r)},s.prototype={start:function(){return 1==++this.active&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(e,t){return this.mouse&&"mouse"!==e&&(this.mouse[1]=t.invert(this.mouse[0])),this.touch0&&"touch"!==e&&(this.touch0[1]=t.invert(this.touch0[0])),this.touch1&&"touch"!==e&&(this.touch1[1]=t.invert(this.touch1[0])),this.that.__zoom=t,this.emit("zoom"),this},end:function(){return 0==--this.active&&(delete this.that.__zooming,this.emit("end")),this},emit:function(t){ce(new $a(e,t,this.that.__zoom),O.apply,O,[t,this.that,this.args])}},e.wheelDelta=function(t){return arguments.length?(v="function"==typeof t?t:fb(+t),e):v},e.filter=function(t){return arguments.length?(m="function"==typeof t?t:fb(!!t),e):m},e.touchable=function(t){return arguments.length?(b="function"==typeof t?t:fb(!!t),e):b},e.extent=function(t){return arguments.length?(y="function"==typeof t?t:fb([[+t[0][0],+t[0][1]],[+t[1][0],+t[1][1]]]),e):y},e.scaleExtent=function(t){return arguments.length?(S[0]=+t[0],S[1]=+t[1],e):[S[0],S[1]]},e.translateExtent=function(t){return arguments.length?(C[0][0]=+t[0][0],C[1][0]=+t[1][0],C[0][1]=+t[0][1],C[1][1]=+t[1][1],e):[[C[0][0],C[0][1]],[C[1][0],C[1][1]]]},e.constrain=function(t){return arguments.length?(g=t,e):g},e.duration=function(t){return arguments.length?(w=+t,e):w},e.interpolate=function(t){return arguments.length?(_=t,e):_},e.on=function(){var t=O.on.apply(O,arguments);return t===O?e:t},e.clickDistance=function(t){return arguments.length?(A=(t=+t)*t,e):Math.sqrt(A)},e};n.d(t,"version",function(){return"5.16.0"}),n.d(t,"bisect",function(){return qa.b}),n.d(t,"bisectRight",function(){return qa.d}),n.d(t,"bisectLeft",function(){return qa.c}),n.d(t,"ascending",function(){return qa.a}),n.d(t,"bisector",function(){return qa.e}),n.d(t,"cross",function(){return qa.f}),n.d(t,"descending",function(){return qa.g}),n.d(t,"deviation",function(){return qa.h}),n.d(t,"extent",function(){return qa.i}),n.d(t,"histogram",function(){return qa.j}),n.d(t,"thresholdFreedmanDiaconis",function(){return qa.w}),n.d(t,"thresholdScott",function(){return qa.x}),n.d(t,"thresholdSturges",function(){return qa.y}),n.d(t,"max",function(){return qa.k}),n.d(t,"mean",function(){return qa.l}),n.d(t,"median",function(){return qa.m}),n.d(t,"merge",function(){return qa.n}),n.d(t,"min",function(){return qa.o}),n.d(t,"pairs",function(){return qa.p}),n.d(t,"permute",function(){return qa.q}),n.d(t,"quantile",function(){return qa.r}),n.d(t,"range",function(){return qa.s}),n.d(t,"scan",function(){return qa.t}),n.d(t,"shuffle",function(){return qa.u}),n.d(t,"sum",function(){return qa.v}),n.d(t,"ticks",function(){return qa.B}),n.d(t,"tickIncrement",function(){return qa.z}),n.d(t,"tickStep",function(){return qa.A}),n.d(t,"transpose",function(){return qa.C}),n.d(t,"variance",function(){return qa.D}),n.d(t,"zip",function(){return qa.E}),n.d(t,"axisTop",function(){return l}),n.d(t,"axisRight",function(){return c}),n.d(t,"axisBottom",function(){return p}),n.d(t,"axisLeft",function(){return d}),n.d(t,"brush",function(){return jc}),n.d(t,"brushX",function(){return Jt}),n.d(t,"brushY",function(){return Zt}),n.d(t,"brushSelection",function(){return Kt}),n.d(t,"chord",function(){return Kc}),n.d(t,"ribbon",function(){return ip}),n.d(t,"nest",function(){return op.d}),n.d(t,"set",function(){return op.e}),n.d(t,"map",function(){return op.c}),n.d(t,"keys",function(){return op.b}),n.d(t,"values",function(){return op.f}),n.d(t,"entries",function(){return op.a}),n.d(t,"color",function(){return Pl.a}),n.d(t,"rgb",function(){return Pl.h}),n.d(t,"hsl",function(){return Pl.e}),n.d(t,"lab",function(){return Pl.f}),n.d(t,"hcl",function(){return Pl.d}),n.d(t,"lch",function(){return Pl.g}),n.d(t,"gray",function(){return Pl.c}),n.d(t,"cubehelix",function(){return Pl.b}),n.d(t,"contours",function(){return hp}),n.d(t,"contourDensity",function(){return fp}),n.d(t,"dispatch",function(){return eu}),n.d(t,"drag",function(){return al}),n.d(t,"dragDisable",function(){return il}),n.d(t,"dragEnable",function(){return be}),n.d(t,"dsvFormat",function(){return Sp}),n.d(t,"csvParse",function(){return wp}),n.d(t,"csvParseRows",function(){return _p}),n.d(t,"csvFormat",function(){return Op}),n.d(t,"csvFormatBody",function(){return xp}),n.d(t,"csvFormatRows",function(){return Ep}),n.d(t,"csvFormatRow",function(){return Ap}),n.d(t,"csvFormatValue",function(){return Tp}),n.d(t,"tsvParse",function(){return Fp}),n.d(t,"tsvParseRows",function(){return Mp}),n.d(t,"tsvFormat",function(){return Ip}),n.d(t,"tsvFormatBody",function(){return Pp}),n.d(t,"tsvFormatRows",function(){return Dp}),n.d(t,"tsvFormatRow",function(){return $p}),n.d(t,"tsvFormatValue",function(){return Np}),n.d(t,"autoType",function(){return On}),n.d(t,"easeLinear",function(){return bt}),n.d(t,"easeQuad",function(){return wt}),n.d(t,"easeQuadIn",function(){return St}),n.d(t,"easeQuadOut",function(){return Ct}),n.d(t,"easeQuadInOut",function(){return wt}),n.d(t,"easeCubic",function(){return xt}),n.d(t,"easeCubicIn",function(){return _t}),n.d(t,"easeCubicOut",function(){return Ot}),n.d(t,"easeCubicInOut",function(){return xt}),n.d(t,"easePoly",function(){return oc}),n.d(t,"easePolyIn",function(){return nc}),n.d(t,"easePolyOut",function(){return ic}),n.d(t,"easePolyInOut",function(){return oc}),n.d(t,"easeSin",function(){return Tt}),n.d(t,"easeSinIn",function(){return Et}),n.d(t,"easeSinOut",function(){return At}),n.d(t,"easeSinInOut",function(){return Tt}),n.d(t,"easeExp",function(){return It}),n.d(t,"easeExpIn",function(){return Ft}),n.d(t,"easeExpOut",function(){return Mt}),n.d(t,"easeExpInOut",function(){return It}),n.d(t,"easeCircle",function(){return $t}),n.d(t,"easeCircleIn",function(){return Pt}),n.d(t,"easeCircleOut",function(){return Dt}),n.d(t,"easeCircleInOut",function(){return $t}),n.d(t,"easeBounce",function(){return kt}),n.d(t,"easeBounceIn",function(){return Nt}),n.d(t,"easeBounceOut",function(){return kt}),n.d(t,"easeBounceInOut",function(){return Vt}),n.d(t,"easeBack",function(){return bc}),n.d(t,"easeBackIn",function(){return gc}),n.d(t,"easeBackOut",function(){return vc}),n.d(t,"easeBackInOut",function(){return bc}),n.d(t,"easeElastic",function(){return wc}),n.d(t,"easeElasticIn",function(){return Cc}),n.d(t,"easeElasticOut",function(){return wc}),n.d(t,"easeElasticInOut",function(){return _c}),n.d(t,"blob",function(){return Vp}),n.d(t,"buffer",function(){return Lp}),n.d(t,"dsv",function(){return Rn}),n.d(t,"csv",function(){return Up}),n.d(t,"tsv",function(){return Qp}),n.d(t,"image",function(){return jp}),n.d(t,"json",function(){return Hp}),n.d(t,"text",function(){return Bp}),n.d(t,"xml",function(){return qp}),n.d(t,"html",function(){return zp}),n.d(t,"svg",function(){return Wp}),n.d(t,"forceCenter",function(){return Gp}),n.d(t,"forceCollide",function(){return pd}),n.d(t,"forceLink",function(){return dd}),n.d(t,"forceManyBody",function(){return yd}),n.d(t,"forceRadial",function(){return gd}),n.d(t,"forceSimulation",function(){return md}),n.d(t,"forceX",function(){return vd}),n.d(t,"forceY",function(){return bd}),n.d(t,"formatDefaultLocale",function(){return Sd.c}),n.d(t,"format",function(){return Sd.b}),n.d(t,"formatPrefix",function(){return Sd.e}),n.d(t,"formatLocale",function(){return Sd.d}),n.d(t,"formatSpecifier",function(){return Sd.f}),n.d(t,"FormatSpecifier",function(){return Sd.a}),n.d(t,"precisionFixed",function(){return Sd.g}),n.d(t,"precisionPrefix",function(){return Sd.h}),n.d(t,"precisionRound",function(){return Sd.i}),n.d(t,"geoArea",function(){return Eh}),n.d(t,"geoBounds",function(){return Rh}),n.d(t,"geoCentroid",function(){return Mh}),n.d(t,"geoCircle",function(){return zh}),n.d(t,"geoClipAntimeridian",function(){return Xh}),n.d(t,"geoClipCircle",function(){return ef}),n.d(t,"geoClipExtent",function(){return rf}),n.d(t,"geoClipRectangle",function(){return Wi}),n.d(t,"geoContains",function(){return ff}),n.d(t,"geoDistance",function(){return pf}),n.d(t,"geoGraticule",function(){return so}),n.d(t,"geoGraticule10",function(){return ao}),n.d(t,"geoInterpolate",function(){return mf}),n.d(t,"geoLength",function(){return uf}),n.d(t,"geoPath",function(){return zf}),n.d(t,"geoAlbers",function(){return Xf}),n.d(t,"geoAlbersUsa",function(){return em}),n.d(t,"geoAzimuthalEqualArea",function(){return nm}),n.d(t,"geoAzimuthalEqualAreaRaw",function(){return tm}),n.d(t,"geoAzimuthalEquidistant",function(){return om}),n.d(t,"geoAzimuthalEquidistantRaw",function(){return im}),n.d(t,"geoConicConformal",function(){return sm}),n.d(t,"geoConicConformalRaw",function(){return Jo}),n.d(t,"geoConicEqualArea",function(){return Zf}),n.d(t,"geoConicEqualAreaRaw",function(){return Ho}),n.d(t,"geoConicEquidistant",function(){return um}),n.d(t,"geoConicEquidistantRaw",function(){return Xo}),n.d(t,"geoEqualEarth",function(){return fm}),n.d(t,"geoEqualEarthRaw",function(){return er}),n.d(t,"geoEquirectangular",function(){return am}),n.d(t,"geoEquirectangularRaw",function(){return Zo}),n.d(t,"geoGnomonic",function(){return mm}),n.d(t,"geoGnomonicRaw",function(){return tr}),n.d(t,"geoIdentity",function(){return ym}),n.d(t,"geoProjection",function(){return Bo}),n.d(t,"geoProjectionMutator",function(){return Uo}),n.d(t,"geoMercator",function(){return rm}),n.d(t,"geoMercatorRaw",function(){return Go}),n.d(t,"geoNaturalEarth1",function(){return gm}),n.d(t,"geoNaturalEarth1Raw",function(){return nr}),n.d(t,"geoOrthographic",function(){return vm}),n.d(t,"geoOrthographicRaw",function(){return ir}),n.d(t,"geoStereographic",function(){return bm}),n.d(t,"geoStereographicRaw",function(){return or}),n.d(t,"geoTransverseMercator",function(){return Sm}),n.d(t,"geoTransverseMercatorRaw",function(){return rr}),n.d(t,"geoRotation",function(){return qh}),n.d(t,"geoStream",function(){return wh}),n.d(t,"geoTransform",function(){return Wf}),n.d(t,"cluster",function(){return Cm}),n.d(t,"hierarchy",function(){return mr}),n.d(t,"pack",function(){return km}),n.d(t,"packSiblings",function(){return $m}),n.d(t,"packEnclose",function(){return Dm}),n.d(t,"partition",function(){return Bm}),n.d(t,"stratify",function(){return Hm}),n.d(t,"tree",function(){return qm});n.d(t,"treemap",function(){return Ym}),n.d(t,"treemapBinary",function(){return Km}),n.d(t,"treemapDice",function(){return Lm}),n.d(t,"treemapSlice",function(){return zm}),n.d(t,"treemapSliceDice",function(){return Jm}),n.d(t,"treemapSquarify",function(){return Gm}),n.d(t,"treemapResquarify",function(){return Zm}),n.d(t,"interpolate",function(){return ul.a}),n.d(t,"interpolateArray",function(){return ul.b}),n.d(t,"interpolateBasis",function(){return ul.c}),n.d(t,"interpolateBasisClosed",function(){return ul.d}),n.d(t,"interpolateDate",function(){return ul.g}),n.d(t,"interpolateDiscrete",function(){return ul.h}),n.d(t,"interpolateHue",function(){return ul.m}),n.d(t,"interpolateNumber",function(){return ul.o}),n.d(t,"interpolateNumberArray",function(){return ul.p}),n.d(t,"interpolateObject",function(){return ul.q}),n.d(t,"interpolateRound",function(){return ul.u}),n.d(t,"interpolateString",function(){return ul.v}),n.d(t,"interpolateTransformCss",function(){return ul.w}),n.d(t,"interpolateTransformSvg",function(){return ul.x}),n.d(t,"interpolateZoom",function(){return ul.y}),n.d(t,"interpolateRgb",function(){return ul.r}),n.d(t,"interpolateRgbBasis",function(){return ul.s}),n.d(t,"interpolateRgbBasisClosed",function(){return ul.t}),n.d(t,"interpolateHsl",function(){return ul.k}),n.d(t,"interpolateHslLong",function(){return ul.l}),n.d(t,"interpolateLab",function(){return ul.n}),n.d(t,"interpolateHcl",function(){return ul.i}),n.d(t,"interpolateHclLong",function(){return ul.j}),n.d(t,"interpolateCubehelix",function(){return ul.e}),n.d(t,"interpolateCubehelixLong",function(){return ul.f}),n.d(t,"piecewise",function(){return ul.z}),n.d(t,"quantize",function(){return ul.A}),n.d(t,"path",function(){return np}),n.d(t,"polygonArea",function(){return Xm}),n.d(t,"polygonCentroid",function(){return ey}),n.d(t,"polygonHull",function(){return ny}),n.d(t,"polygonContains",function(){return iy}),n.d(t,"polygonLength",function(){return oy}),n.d(t,"quadtree",function(){return kn}),n.d(t,"randomUniform",function(){return sy}),n.d(t,"randomNormal",function(){return ay}),n.d(t,"randomLogNormal",function(){return uy}),n.d(t,"randomBates",function(){return cy}),n.d(t,"randomIrwinHall",function(){return ly}),n.d(t,"randomExponential",function(){return py}),n.d(t,"scaleBand",function(){return dy.scaleBand}),n.d(t,"scalePoint",function(){return dy.scalePoint}),n.d(t,"scaleIdentity",function(){return dy.scaleIdentity}),n.d(t,"scaleLinear",function(){return dy.scaleLinear}),n.d(t,"scaleLog",function(){return dy.scaleLog}),n.d(t,"scaleSymlog",function(){return dy.scaleSymlog}),n.d(t,"scaleOrdinal",function(){return dy.scaleOrdinal}),n.d(t,"scaleImplicit",function(){return dy.scaleImplicit}),n.d(t,"scalePow",function(){return dy.scalePow}),n.d(t,"scaleSqrt",function(){return dy.scaleSqrt}),n.d(t,"scaleQuantile",function(){return dy.scaleQuantile}),n.d(t,"scaleQuantize",function(){return dy.scaleQuantize}),n.d(t,"scaleThreshold",function(){return dy.scaleThreshold}),n.d(t,"scaleTime",function(){return dy.scaleTime}),n.d(t,"scaleUtc",function(){return dy.scaleUtc}),n.d(t,"scaleSequential",function(){return dy.scaleSequential}),n.d(t,"scaleSequentialLog",function(){return dy.scaleSequentialLog}),n.d(t,"scaleSequentialPow",function(){return dy.scaleSequentialPow}),n.d(t,"scaleSequentialSqrt",function(){return dy.scaleSequentialSqrt}),n.d(t,"scaleSequentialSymlog",function(){return dy.scaleSequentialSymlog}),n.d(t,"scaleSequentialQuantile",function(){return dy.scaleSequentialQuantile}),n.d(t,"scaleDiverging",function(){return dy.scaleDiverging}),n.d(t,"scaleDivergingLog",function(){return dy.scaleDivergingLog}),n.d(t,"scaleDivergingPow",function(){return dy.scaleDivergingPow}),n.d(t,"scaleDivergingSqrt",function(){return dy.scaleDivergingSqrt}),n.d(t,"scaleDivergingSymlog",function(){return dy.scaleDivergingSymlog}),n.d(t,"tickFormat",function(){return dy.tickFormat}),n.d(t,"schemeCategory10",function(){return fy}),n.d(t,"schemeAccent",function(){return my}),n.d(t,"schemeDark2",function(){return yy}),n.d(t,"schemePaired",function(){return gy}),n.d(t,"schemePastel1",function(){return vy}),n.d(t,"schemePastel2",function(){return by}),n.d(t,"schemeSet1",function(){return Sy}),n.d(t,"schemeSet2",function(){return Cy}),n.d(t,"schemeSet3",function(){return wy}),n.d(t,"schemeTableau10",function(){return _y}),n.d(t,"interpolateBrBG",function(){return Ey}),n.d(t,"schemeBrBG",function(){return xy}),n.d(t,"interpolatePRGn",function(){return Ty}),n.d(t,"schemePRGn",function(){return Ay}),n.d(t,"interpolatePiYG",function(){return Fy}),n.d(t,"schemePiYG",function(){return Ry}),n.d(t,"interpolatePuOr",function(){return Iy}),n.d(t,"schemePuOr",function(){return My}),n.d(t,"interpolateRdBu",function(){return Dy}),n.d(t,"schemeRdBu",function(){return Py}),n.d(t,"interpolateRdGy",function(){return Ny}),n.d(t,"schemeRdGy",function(){return $y}),n.d(t,"interpolateRdYlBu",function(){return Vy}),n.d(t,"schemeRdYlBu",function(){return ky}),n.d(t,"interpolateRdYlGn",function(){return By}),n.d(t,"schemeRdYlGn",function(){return Ly}),n.d(t,"interpolateSpectral",function(){return Qy}),n.d(t,"schemeSpectral",function(){return Uy}),n.d(t,"interpolateBuGn",function(){return Hy}),n.d(t,"schemeBuGn",function(){return jy}),n.d(t,"interpolateBuPu",function(){return zy}),n.d(t,"schemeBuPu",function(){return qy}),n.d(t,"interpolateGnBu",function(){return Gy}),n.d(t,"schemeGnBu",function(){return Wy}),n.d(t,"interpolateOrRd",function(){return Ky}),n.d(t,"schemeOrRd",function(){return Yy}),n.d(t,"interpolatePuBuGn",function(){return Zy}),n.d(t,"schemePuBuGn",function(){return Jy}),n.d(t,"interpolatePuBu",function(){return eg}),n.d(t,"schemePuBu",function(){return Xy}),n.d(t,"interpolatePuRd",function(){return ng}),n.d(t,"schemePuRd",function(){return tg}),n.d(t,"interpolateRdPu",function(){return og}),n.d(t,"schemeRdPu",function(){return ig}),n.d(t,"interpolateYlGnBu",function(){return sg}),n.d(t,"schemeYlGnBu",function(){return rg}),n.d(t,"interpolateYlGn",function(){return ug}),n.d(t,"schemeYlGn",function(){return ag}),n.d(t,"interpolateYlOrBr",function(){return cg}),n.d(t,"schemeYlOrBr",function(){return lg}),n.d(t,"interpolateYlOrRd",function(){return dg}),n.d(t,"schemeYlOrRd",function(){return pg}),n.d(t,"interpolateBlues",function(){return fg}),n.d(t,"schemeBlues",function(){return hg}),n.d(t,"interpolateGreens",function(){return yg}),n.d(t,"schemeGreens",function(){return mg}),n.d(t,"interpolateGreys",function(){return vg}),n.d(t,"schemeGreys",function(){return gg}),n.d(t,"interpolatePurples",function(){return Sg}),n.d(t,"schemePurples",function(){return bg}),n.d(t,"interpolateReds",function(){return wg}),n.d(t,"schemeReds",function(){return Cg}),n.d(t,"interpolateOranges",function(){return Og}),n.d(t,"schemeOranges",function(){return _g}),n.d(t,"interpolateCividis",function(){return xg}),n.d(t,"interpolateCubehelixDefault",function(){return Eg}),n.d(t,"interpolateRainbow",function(){return Fg}),n.d(t,"interpolateWarm",function(){return Ag}),n.d(t,"interpolateCool",function(){return Tg}),n.d(t,"interpolateSinebow",function(){return Dg}),n.d(t,"interpolateTurbo",function(){return $g}),n.d(t,"interpolateViridis",function(){return Ng}),n.d(t,"interpolateMagma",function(){return kg}),n.d(t,"interpolateInferno",function(){return Vg}),n.d(t,"interpolatePlasma",function(){return Lg}),n.d(t,"create",function(){return Gu}),n.d(t,"creator",function(){return ou}),n.d(t,"local",function(){return ye}),n.d(t,"matcher",function(){return lu}),n.d(t,"mouse",function(){return Zu}),n.d(t,"namespace",function(){return iu}),n.d(t,"namespaces",function(){return nu}),n.d(t,"clientPoint",function(){return Ju}),n.d(t,"select",function(){return Wu}),n.d(t,"selectAll",function(){return Xu}),n.d(t,"selection",function(){return zu}),n.d(t,"selector",function(){return ru}),n.d(t,"selectorAll",function(){return au}),n.d(t,"style",function(){return $}),n.d(t,"touch",function(){return el}),n.d(t,"touches",function(){return tl}),n.d(t,"window",function(){return Tu}),n.d(t,"event",function(){return Qu}),n.d(t,"customEvent",function(){return ce}),n.d(t,"arc",function(){return Zg}),n.d(t,"area",function(){return tv}),n.d(t,"line",function(){return ev}),n.d(t,"pie",function(){return ov}),n.d(t,"areaRadial",function(){return av}),n.d(t,"radialArea",function(){return av}),n.d(t,"lineRadial",function(){return sv}),n.d(t,"radialLine",function(){return sv}),n.d(t,"pointRadial",function(){return uv}),n.d(t,"linkHorizontal",function(){return _s}),n.d(t,"linkVertical",function(){return Os}),n.d(t,"linkRadial",function(){return xs}),n.d(t,"symbol",function(){return Av}),n.d(t,"symbols",function(){return Ev}),n.d(t,"symbolCircle",function(){return cv}),n.d(t,"symbolCross",function(){return pv}),n.d(t,"symbolDiamond",function(){return fv}),n.d(t,"symbolSquare",function(){return bv}),n.d(t,"symbolStar",function(){return vv}),n.d(t,"symbolTriangle",function(){return Cv}),n.d(t,"symbolWye",function(){return xv}),n.d(t,"curveBasisClosed",function(){return Fv}),n.d(t,"curveBasisOpen",function(){return Mv}),n.d(t,"curveBasis",function(){return Rv}),n.d(t,"curveBundle",function(){return Iv}),n.d(t,"curveCardinalClosed",function(){return Dv}),n.d(t,"curveCardinalOpen",function(){return $v}),n.d(t,"curveCardinal",function(){return Pv}),n.d(t,"curveCatmullRomClosed",function(){return kv}),n.d(t,"curveCatmullRomOpen",function(){return Vv}),n.d(t,"curveCatmullRom",function(){return Nv}),n.d(t,"curveLinearClosed",function(){return Lv});n.d(t,"curveLinear",function(){return Xg}),n.d(t,"curveMonotoneX",function(){return Ws}),n.d(t,"curveMonotoneY",function(){return Gs}),n.d(t,"curveNatural",function(){return Bv}),n.d(t,"curveStep",function(){return Uv}),n.d(t,"curveStepAfter",function(){return Xs}),n.d(t,"curveStepBefore",function(){return Zs}),n.d(t,"stack",function(){return Hv}),n.d(t,"stackOffsetExpand",function(){return qv}),n.d(t,"stackOffsetDiverging",function(){return zv}),n.d(t,"stackOffsetNone",function(){return Qv}),n.d(t,"stackOffsetSilhouette",function(){return Wv}),n.d(t,"stackOffsetWiggle",function(){return Gv}),n.d(t,"stackOrderAppearance",function(){return Yv}),n.d(t,"stackOrderAscending",function(){return Kv}),n.d(t,"stackOrderDescending",function(){return Jv}),n.d(t,"stackOrderInsideOut",function(){return Zv}),n.d(t,"stackOrderNone",function(){return jv}),n.d(t,"stackOrderReverse",function(){return Xv}),n.d(t,"timeInterval",function(){return eb.g}),n.d(t,"timeMillisecond",function(){return eb.h}),n.d(t,"timeMilliseconds",function(){return eb.i}),n.d(t,"utcMillisecond",function(){return eb.L}),n.d(t,"utcMilliseconds",function(){return eb.M}),n.d(t,"timeSecond",function(){return eb.r}),n.d(t,"timeSeconds",function(){return eb.s}),n.d(t,"utcSecond",function(){return eb.V}),n.d(t,"utcSeconds",function(){return eb.W}),n.d(t,"timeMinute",function(){return eb.j}),n.d(t,"timeMinutes",function(){return eb.k}),n.d(t,"timeHour",function(){return eb.e}),n.d(t,"timeHours",function(){return eb.f}),n.d(t,"timeDay",function(){return eb.a}),n.d(t,"timeDays",function(){return eb.b}),n.d(t,"timeWeek",function(){return eb.B}),n.d(t,"timeWeeks",function(){return eb.C}),n.d(t,"timeSunday",function(){return eb.t}),n.d(t,"timeSundays",function(){return eb.u}),n.d(t,"timeMonday",function(){return eb.l}),n.d(t,"timeMondays",function(){return eb.m}),n.d(t,"timeTuesday",function(){return eb.x}),n.d(t,"timeTuesdays",function(){return eb.y}),n.d(t,"timeWednesday",function(){return eb.z}),n.d(t,"timeWednesdays",function(){return eb.A}),n.d(t,"timeThursday",function(){return eb.v}),n.d(t,"timeThursdays",function(){return eb.w}),n.d(t,"timeFriday",function(){return eb.c}),n.d(t,"timeFridays",function(){return eb.d}),n.d(t,"timeSaturday",function(){return eb.p}),n.d(t,"timeSaturdays",function(){return eb.q}),n.d(t,"timeMonth",function(){return eb.n}),n.d(t,"timeMonths",function(){return eb.o}),n.d(t,"timeYear",function(){return eb.D}),n.d(t,"timeYears",function(){return eb.E}),n.d(t,"utcMinute",function(){return eb.N}),n.d(t,"utcMinutes",function(){return eb.O}),n.d(t,"utcHour",function(){return eb.J}),n.d(t,"utcHours",function(){return eb.K}),n.d(t,"utcDay",function(){return eb.F}),n.d(t,"utcDays",function(){return eb.G}),n.d(t,"utcWeek",function(){return eb._5}),n.d(t,"utcWeeks",function(){return eb._6}),n.d(t,"utcSunday",function(){return eb.X}),n.d(t,"utcSundays",function(){return eb.Y}),n.d(t,"utcMonday",function(){return eb.P}),n.d(t,"utcMondays",function(){return eb.Q}),n.d(t,"utcTuesday",function(){return eb._1}),n.d(t,"utcTuesdays",function(){return eb._2}),n.d(t,"utcWednesday",function(){return eb._3}),n.d(t,"utcWednesdays",function(){return eb._4}),n.d(t,"utcThursday",function(){return eb.Z}),n.d(t,"utcThursdays",function(){return eb._0}),n.d(t,"utcFriday",function(){return eb.H}),n.d(t,"utcFridays",function(){return eb.I}),n.d(t,"utcSaturday",function(){return eb.T}),n.d(t,"utcSaturdays",function(){return eb.U}),n.d(t,"utcMonth",function(){return eb.R}),n.d(t,"utcMonths",function(){return eb.S}),n.d(t,"utcYear",function(){return eb._7}),n.d(t,"utcYears",function(){return eb._8}),n.d(t,"timeFormatDefaultLocale",function(){return tb.d}),n.d(t,"timeFormat",function(){return tb.c}),n.d(t,"timeParse",function(){return tb.f}),n.d(t,"utcFormat",function(){return tb.g}),n.d(t,"utcParse",function(){return tb.h}),n.d(t,"timeFormatLocale",function(){return tb.e}),n.d(t,"isoFormat",function(){return tb.a}),n.d(t,"isoParse",function(){return tb.b}),n.d(t,"now",function(){return xe}),n.d(t,"timer",function(){return Te}),n.d(t,"timerFlush",function(){return Re}),n.d(t,"timeout",function(){return vl}),n.d(t,"interval",function(){return bl}),n.d(t,"transition",function(){return gt}),n.d(t,"active",function(){return Ac}),n.d(t,"interrupt",function(){return Fl}),n.d(t,"voronoi",function(){return hb}),n.d(t,"zoom",function(){return gb}),n.d(t,"zoomTransform",function(){return ka}),n.d(t,"zoomIdentity",function(){return mb})},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=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])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n(212),r=n(195),s=n(0),a=function(e){function t(t,n,i,o){var r=e.call(this,t,n,i,o)||this;return r.coveoRoot=t,r.ID=n,r.facetSliders=[],r.registerOnOpenHandler(),r}return i(t,e),t.init=function(e,n,i){o.ResponsiveFacetColumn.init(t,e,n,i,r.FacetSlider.ID)},t.prototype.registerComponent=function(t){return e.prototype.registerComponent.call(this,t),t instanceof r.FacetSlider&&(this.facetSliders.push(t),!0)},t.prototype.registerOnOpenHandler=function(){this.dropdown.registerOnOpenHandler(this.drawFacetSliderGraphs,this)},t.prototype.drawFacetSliderGraphs=function(){s.each(this.facetSliders,function(e){return e.drawDelayedGraphData()})},t}(o.ResponsiveFacetColumn);t.ResponsiveFacetSlider=a},function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))(function(o,r){function s(e){try{u(i.next(e))}catch(e){r(e)}}function a(e){try{u(i.throw(e))}catch(e){r(e)}}function u(e){e.done?o(e.value):new n(function(t){t(e.value)}).then(s,a)}u((i=i.apply(e,t||[])).next())})},o=this&&this.__generator||function(e,t){function n(e){return function(t){return i([e,t])}}function i(n){if(o)throw new TypeError("Generator is already executing.");for(;u;)try{if(o=1,r&&(s=r[2&n[0]?"return":n[0]?"throw":"next"])&&!(s=s.call(r,n[1])).done)return s;switch(r=0,s&&(n=[0,s.value]),n[0]){case 0:case 1:s=n;break;case 4:return u.label++,{value:n[1],done:!1};case 5:u.label++,r=n[1],n=[0];continue;case 7:n=u.ops.pop(),u.trys.pop();continue;default:if(s=u.trys,!(s=s.length>0&&s[s.length-1])&&(6===n[0]||2===n[0])){u=0;continue}if(3===n[0]&&(!s||n[1]>s[0]&&n[1]<s[3])){u.label=n[1];break}if(6===n[0]&&u.label<s[1]){u.label=s[1],s=n;break}if(s&&u.label<s[2]){u.label=s[2],u.ops.push(n);break}s[2]&&u.ops.pop(),u.trys.pop();continue}n=t.call(e,u)}catch(e){n=[6,e],r=0}finally{o=s=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}var o,r,s,a,u={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return a={next:n(0),throw:n(1),return:n(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a};Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){this.queryController=e,this.options=t}return e.prototype.getSuggestions=function(e){return i(this,void 0,void 0,function(){var t;return o(this,function(n){switch(n.label){case 0:return[4,this.getFieldValuesToQuery(e)];case 1:return t=n.sent(),[2,this.getAllSuggestionsRows(t.responses,t.reference)]}})})},e.prototype.getAllSuggestionsRows=function(e,t){var n=this;return e.reduce(function(e,i){var o=i.values.map(function(e){return{numberOfResults:e.numberOfResults,keyword:i.keyword,value:e.value,score:n.computeScoreForSuggestionRow(e,t),field:n.options.field}});return e.concat(o)},[])},e.prototype.getFieldValuesToQuery=function(e){return i(this,void 0,void 0,function(){var t,n,i,r,s,a,u,l=this;return o(this,function(o){switch(o.label){case 0:return t=this.buildReferenceFieldValueRequest(),n=this.getQueryToExecuteParts(),this.options.expression&&n.push(this.options.expression),i=e.map(function(e){var t=n.concat([e.text]).join(" ");return l.buildListFieldValueRequest(t)}),r=i.concat([t]),[4,this.queryController.getEndpoint().listFieldValuesBatch({batch:r})];case 1:return s=o.sent(),a=this.computeReferenceFromBatch(s.pop()),u=s.map(function(t,n){return{keyword:e[n],values:t}}),[2,{responses:u,reference:a}]}})})},e.prototype.computeScoreForSuggestionRow=function(e,t){var n=t.fieldsTotal[e.value]||t.smallestTotal;return{distanceFromTotalForField:(n-e.numberOfResults)/n*100}},e.prototype.computeReferenceFromBatch=function(e){var t={};return e.forEach(function(e){return t[e.value]=e.numberOfResults}),{fieldsTotal:t,smallestTotal:e[e.length-1].numberOfResults}},e.prototype.buildListFieldValueRequest=function(e){return{field:this.options.field,ignoreAccents:!0,maximumNumberOfValues:3,queryOverride:e}},e.prototype.buildReferenceFieldValueRequest=function(){return{field:this.options.field}},e.prototype.getQueryToExecuteParts=function(){var e=this.queryController.getLastQuery();return[e&&e.aq?this.removeFieldExpressionFromExpression(this.options.field.toString(),e.aq):"",e.cq].filter(function(e){return!!e})},e.prototype.removeFieldExpressionFromExpression=function(e,t){return t.replace(new RegExp(e+"==([^)]*)","gi"),"").replace(new RegExp(e+"==[^ ]*","gi"),"")},e}();t.FacetValueSuggestionsProvider=r},function(e,t){},function(e,t){},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=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])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n(486),r=n(0),s=function(e){function t(t,n){var i=e.call(this,t,n)||this;return i.facet=t,i.facetValueElementKlass=n,i}return i(t,e),t.prototype.sortFacetValues=function(e){var t=this;if(void 0===e&&(e=this.hierarchyFacetValues),!this.facet.shouldReshuffleFacetValuesClientSide){var n=r.map(e,function(e,t){return{hierarchy:e,idx:t}});if(0!=this.facet.options.levelStart&&this.facet.options.sortCriteria&&-1!=this.facet.options.sortCriteria.toLowerCase().indexOf("alpha")){var i=-1!=this.facet.options.sortCriteria.toLowerCase().indexOf("descending");n=n.sort(function(e,n){var o=null!=r.find(t.facet.topLevelHierarchy,function(t){return t.facetValue.value.toLowerCase()==e.hierarchy.value.toLowerCase()}),s=null!=r.find(t.facet.topLevelHierarchy,function(t){return t.facetValue.value.toLowerCase()==e.hierarchy.value.toLowerCase()});if(o&&s){var a=t.facet.getValueCaption(e.hierarchy),u=t.facet.getValueCaption(n.hierarchy),l=a.localeCompare(u);return i?-1*l:l}return e.idx-n.idx})}return n=n.sort(function(e,n){if(e.hierarchy.selected===n.hierarchy.selected){var i=t.facet.getValueFromHierarchy(e.hierarchy),o=t.facet.getValueFromHierarchy(n.hierarchy);return i.hasChildSelected===o.hasChildSelected?e.idx-n.idx:i.hasChildSelected?-1:1}return e.hierarchy.selected?-1:1}),r.pluck(n,"hierarchy")}return e},t.prototype.getValuesToBuildWith=function(){return this.facet.shouldReshuffleFacetValuesClientSide?this.hierarchyFacetValues:this.sortFacetValues()},t}(o.FacetValuesList);t.HierarchicalFacetValuesList=s},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=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])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n(213),r=n(40),s=n(0),a=function(e){function t(t){var n=e.call(this,t)||this;return n.facet=t,n}return i(t,e),t.prototype.search=function(e,t){var n=this;void 0===t&&(t=e.nbResults);var i=r.FacetUtils.getRegexToUseForFacetSearch(this.facet.facetSearch.getValueInInputForFacetSearch(),this.facet.options.facetSearchIgnoreAccents);return new Promise(function(t){var o=s.chain(n.facet.getAllValueHierarchy()).toArray().filter(function(t){return null!=n.facet.getValueCaption(t.facetValue).match(i)&&!s.contains(s.map(e.alwaysExclude,function(e){return e.toLowerCase()}),t.facetValue.value.toLowerCase())}).first(n.facet.options.numberOfValuesInFacetSearch).value();t(s.map(o,function(e){return e.facetValue}))})},t.prototype.getAllowedValuesFromSelected=function(){return[]},t}(o.FacetQueryController);t.HierarchicalFacetQueryController=a},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=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])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n(485),r=n(624),s=function(e){function t(t){var n=e.call(this,t,r.HierarchicalFacetSearchValueElement)||this;return n.facet=t,n}return i(t,e),t}(o.FacetSearchValuesList);t.HierarchicalFacetSearchValuesList=s},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=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])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n(127),r=function(e){function t(t,n,i){var o=e.call(this,t,n,i)||this;return o.facet=t,o.facetValue=n,o.keepDisplayedValueNextTime=i,o}return i(t,e),t.prototype._handleSelectValue=function(t){this.facet.open(this.facetValue),e.prototype.handleSelectValue.call(this,t)},t.prototype._handleExcludeClick=function(t){this.facet.open(this.facetValue),e.prototype.handleExcludeClick.call(this,t)},t}(o.FacetValueElement);t.HierarchicalFacetSearchValueElement=r},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=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])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n(484),r=n(170),s=n(113),a=n(4),u=n(26),l=n(0),c=function(e){function t(t,n,i){var o=e.call(this,t,n,i)||this;return o.facet=t,o.facetSearchValuesListKlass=n,o}return i(t,e),t.prototype.buildParamsForExcludingCurrentlyDisplayedValues=function(){var t=e.prototype.buildParamsForExcludingCurrentlyDisplayedValues.call(this);return t.alwaysExclude=this.facet.getDisplayedValues(),this.facet.facetSearch.currentlyDisplayedResults&&(t.alwaysExclude=t.alwaysExclude.concat(this.facet.facetSearch.currentlyDisplayedResults)),t},t.prototype.selectAllValuesMatchingSearch=function(){var e=this;this.facet.showWaitingAnimation();var t=new r.FacetSearchParameters(this.facet);t.nbResults=this.facet.numberOfValues,t.alwaysInclude=this.facet.getDisplayedValues(),t.setValueToSearch(this.getValueInInputForFacetSearch()),this.facet.facetQueryController.search(t).then(function(t){e.dismissSearchResults(),u.ModalBox.close(!0);var n=e.getFacetValues(t);e.facet.processFacetSearchAllResultsSelected(n)}),this.dismissSearchResults()},t.prototype.getFacetValues=function(e){var t=this,n=[];return l.each(e,function(e){var i=t.facet.getValueFromHierarchy(e.value);n.push(t.createFacetValuesFromHierarchy(i))}),l.flatten(n)},t.prototype.createFacetValuesFromHierarchy=function(e){var t=this,n=[],i=e.facetValue.value,o=this.facet.values.get(i);a.Utils.exists(o)||(o=s.FacetValue.create(i)),o.selected=!0,o.excluded=!1,n.push(o);var r=e.childs;return l.each(r,function(e){var i=t.facet.getValueFromHierarchy(e.facetValue.value);n.push(t.createFacetValuesFromHierarchy(i))}),n},t}(o.FacetSearch);t.HierarchicalFacetSearch=c},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=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])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n(483),r=n(627),s=n(1),a=n(0),u=function(e){function t(t,n,i){var o=e.call(this,t,n,r.HierarchicalBreadcrumbValueElement)||this;return o.facet=t,o.facetValues=n,o.valueHierarchy=i,o}return i(t,e),t.prototype.buildAsString=function(){if(this.build(),this.elem){return this.facet.options.title+": "+a.map(s.$$(this.elem).findAll(".coveo-facet-breadcrumb-value"),function(e){return a.each(s.$$(e).findAll(".coveo-hierarchical-breadcrumb-separator"),function(e){s.$$(e).text("▸")}),s.$$(e).text()}).join(", ")}return""},t}(o.BreadcrumbValueList);t.HierarchicalBreadcrumbValuesList=u},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=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])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n(482),r=n(0),s=function(e){function t(t,n){var i=e.call(this,t,n)||this;return i.facet=t,i.facetValue=n,i}return i(t,e),t.prototype.build=function(){var t=e.prototype.build.call(this);t.addClass("coveo-hierarchical-facet-value");var n=t.find(".coveo-facet-breadcrumb-caption"),i=this.facetValue.value.split(this.facet.options.delimitingCharacter);return i=r.map(i,function(e){return r.escape(e)}),n.innerHTML=i.join("<span class='coveo-hierarchical-breadcrumb-separator'></span>"),t},t}(o.BreadcrumbValueElement);t.HierarchicalBreadcrumbValueElement=s},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=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])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n(488),r=n(629),s=function(e){function t(t,n,i){var o=e.call(this,t,n,i,r.OmniboxHierarchicalValueElement)||this;return o.facet=t,o.facetValues=n,o.omniboxObject=i,o}return i(t,e),t}(o.OmniboxValuesList);t.OmniboxHierarchicalValuesList=s},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=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])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n(487),r=function(e){function t(t,n,i){var o=e.call(this,t,n,i)||this;return o.facet=t,o.facetValue=n,o.eventArg=i,o}return i(t,e),t.prototype._handleSelectValue=function(t){this.facet.open(this.facetValue),e.prototype.handleSelectValue.call(this,t)},t.prototype._handleExcludeClick=function(t){this.facet.open(this.facetValue),e.prototype.handleExcludeClick.call(this,t)},t}(o.OmniboxValueElement);t.OmniboxHierarchicalValueElement=r},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=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])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n(127),r=function(e){function t(t,n,i){var o=e.call(this,t,n,i)||this;return o.facet=t,o.facetValue=n,o.keepDisplayedValueNextTime=i,o}return i(t,e),t}(o.FacetValueElement);t.HierarchicalFacetValueElement=r},function(e,t){},function(e,t){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=n(0),r=function(){function e(e,t){void 0===e&&(e=0),this.previewActive=!1,this.element=t,this.value=e}return e.prototype.getValue=function(){return this.value},e.prototype.getHTML=function(){return this.element},e.prototype.setValue=function(e){this.value=e},e.prototype.setHTML=function(e){this.element=e},e.prototype.addPreview=function(e,t){this.previewActive=!0;var n=i.$$("div",{className:"matrix-results-preview-container"});n.el.style.minWidth=e,n.el.style.maxWidth=t,n.on("click",function(e){e.stopPropagation()}),this.element.appendChild(n.el);var r=i.$$(this.element).findAll(".matrix-results-preview-container");o.each(r,function(e){i.$$(e).hide()})},e.prototype.removePreview=function(){this.previewActive=!1;var e=i.$$(this.element).find(".matrix-results-preview-container");e&&i.$$(e).detach()},e.prototype.updatePreview=function(e){if(this.previewActive){var t=i.$$(this.element).find(".matrix-results-preview-container");t.innerHTML+=e,i.$$(t).show()}},e}();t.Cell=r},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=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])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n(27),r=n(1),s=n(23),a=function(e){function t(t,n){var i=e.call(this)||this;return i.computedField=t,i.format=n,i}return i(t,e),t.prototype.instantiateToString=function(e,t){return"<div class='coveo-result-frame'><div class='coveo-result-row'><div class='coveo-result-cell' style='width: 40px; padding-right:5px;vertical-align: middle'><a class='CoveoIcon' data-small='true'></a></div><div class='coveo-result-cell' style='font-size:13px;vertical-align: middle'><a class='CoveoResultLink'></a></div><div class='coveo-result-cell' style='width:80px; text-align:right; font-size:13px; padding-right: 5px;vertical-align: middle'>"+s.format(parseInt(e.raw[this.computedField.slice(1)]),this.format)+"</div></div></div>"},t.prototype.instantiateToElement=function(e,t){var n=this;return new Promise(function(t,i){return r.$$("div",void 0,n.instantiateToString(e)).el})},t}(o.Template);t.DefaultMatrixResultPreviewTemplate=a},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=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])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n(27),r=function(e){function t(){return e.call(this)||this}return i(t,e),t.prototype.instantiateToString=function(e){return'<div class="coveo-quick-view-full-height"><div class="CoveoQuickviewDocument"></div></div>'},t}(o.Template);t.DefaultQuickviewTemplate=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(20),r=n(1),s=function(){function e(){this.el=this.buildIFrame().el}return Object.defineProperty(e.prototype,"iframeHTMLElement",{get:function(){return this.iframeElement},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"document",{get:function(){return this.iframeElement.contentWindow.document},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"body",{get:function(){return this.document.body},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"window",{get:function(){return this.iframeElement.contentWindow},enumerable:!0,configurable:!0}),e.prototype.isNewQuickviewDocument=function(){var e=r.$$(this.document.head).find("meta[name='generator']");return e&&"pdf2htmlEX"==e.getAttribute("content")},e.prototype.render=function(e,t){var n=this;return this.quickviewIsClosedByEndUser()?Promise.reject(null):new Promise(function(i,o){n.iframeElement.onload=function(){i(n.iframeElement)},n.addClientSideTweaksToIFrameStyling(e),n.writeToIFrame(e),n.iframeElement.title=t})},e.prototype.renderError=function(e){var t=this;return this.quickviewIsClosedByEndUser()?Promise.reject(null):new Promise(function(n,i){var s="";switch(e.status){case 400:s=o.l("NoQuickview");break;default:s=o.l("OoopsError")}var a=document.implementation.createHTMLDocument();a.body.style.fontFamily="Arimo, 'Helvetica Neue', Helvetica, Arial, sans-serif",r.$$(a.body).text(s),t.writeToIFrame(a),n(t.iframeElement)})},e.prototype.quickviewIsClosedByEndUser=function(){return null==this.iframeElement.contentDocument},e.prototype.buildIFrame=function(){var e=r.$$("iframe",{sandbox:"allow-popups allow-same-origin allow-top-navigation",src:"about:blank"});this.iframeElement=e.el;var t=r.$$("div",{className:"coveo-iframeWrapper"});return t.append(e.el),t},e.prototype.writeToIFrame=function(e){this.allowDocumentLinkToEscapeSandbox(e),this.document.open(),this.document.write(e.getElementsByTagName("html")[0].outerHTML),this.document.close()},e.prototype.allowDocumentLinkToEscapeSandbox=function(e){i.each(r.$$(e.body).findAll("a"),function(e){e.setAttribute("target","_top")})},e.prototype.addClientSideTweaksToIFrameStyling=function(e){var t=r.$$("style",{type:"text/css"}).el,n="\n      html pre {\n        white-space: pre-wrap;\n        word-wrap: break-word;\n      }\n      body, html {\n        font-family: Arimo, 'Helvetica Neue', Helvetica, Arial, sans-serif; -webkit-text-size-adjust: none;\n      }\n      "+(o.DeviceUtils.isIos()?"\n      body, html {\n        height: 1px !important;\n        min-height: 100%;\n        width: 1px !important;\n        min-width: 100%;\n        overflow: scroll;\n        margin: auto\n      }\n      ":"")+"\n      ";o.DeviceUtils.isIos()&&(r.$$(this.iframeElement).setAttribute("scrolling","no"),this.iframeElement.parentElement.style.margin="0 0 5px 5px"),t.appendChild(document.createTextNode(n)),e.head.appendChild(t)},e}();t.QuickviewDocumentIframe=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=function(){function e(){this.el=this.buildHeader().el}return e.prototype.addWord=function(e){this.el.appendChild(e.el)},e.prototype.buildHeader=function(){return i.$$("div",{className:"coveo-quickview-header"})},e}();t.QuickviewDocumentHeader=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=n(0),r=n(646),s=n(231),a=function(){function e(e,t){this.iframe=e,this.result=t,this.words={},this.scanDocument()}return e.prototype.scanDocument=function(){var e=this;o.each(i.$$(this.iframe.body).findAll('[id^="'+s.HIGHLIGHT_PREFIX+'"]'),function(t,n){var i=new r.QuickviewDocumentWord(e.result);if(i.doCompleteInitialScanForKeywordInDocument(t),i.text){var o=e.words[i.indexIdentifier];o?(o.addElement(t),o.occurrence==i.occurrence&&(o.text+=i.text)):e.words[i.indexIdentifier]=i}})},e}();t.QuickviewDocumentWords=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(20),r=n(9),s=n(1),a=n(231),u=n(647),l=function(){function e(e){this.result=e,this.count=0,this.elements=[],this.currentNavigationPosition=-1,this.logger=new r.Logger(this)}return e.prototype.addElement=function(e){this.count++,this.elements.push(e)},e.prototype.navigateForward=function(){return this.currentNavigationPosition++,this.currentNavigationPosition>=this.elements.length&&(this.currentNavigationPosition=0),this.highlightNavigation(),this.putElementIntoView(),this.elements[this.currentNavigationPosition]},e.prototype.navigateBackward=function(){return this.currentNavigationPosition--,this.currentNavigationPosition<0&&(this.currentNavigationPosition=this.elements.length-1),this.highlightNavigation(),this.putElementIntoView(),this.elements[this.currentNavigationPosition]},e.prototype.navigateTo=function(e){return this.currentNavigationPosition=e,(this.currentNavigationPosition<0||this.currentNavigationPosition>=this.elements.length)&&(this.currentNavigationPosition=0,this.logger.warn("Invalid position in quickview navigation: "+e)),this.highlightNavigation(),this.elements[this.currentNavigationPosition]},e.prototype.doCompleteInitialScanForKeywordInDocument=function(e){var t=this.parseKeywordIdentifier(e);t&&(this.indexIdentifier=t.keywordIdentifier,this.occurrence=t.keywordOccurrencesInDocument,this.indexTermPart=t.keywordTermPart,this.text=this.getText(e),this.color=new u.QuickviewDocumentWordColor(e.style.backgroundColor),this.addElement(e))},e.prototype.isTaggedWord=function(e){return"coveotaggedword"==e.nodeName.toLowerCase()},e.prototype.highlightNavigation=function(){var e=this,t=this.elements[this.currentNavigationPosition],n=i.without(this.elements,t);t.style.color=this.color.htmlColor,t.style.backgroundColor=this.color.invert(),n.forEach(function(t){t.style.color="",t.style.backgroundColor=e.color.htmlColor})},e.prototype.putElementIntoView=function(){this.elements[this.currentNavigationPosition].scrollIntoView()},e.prototype.getText=function(e){var t=this.getHighlightedInnerText(e);return this.resolveOriginalTerm(t)},e.prototype.resolveOriginalTerm=function(e){var t=this;return this.result&&this.result.termsToHighlight?i.find(i.keys(this.result.termsToHighlight),function(n){var r=o.StringUtils.equalsCaseInsensitive(n,e),s=void 0!=i.find(t.result.termsToHighlight[n],function(t){return o.StringUtils.equalsCaseInsensitive(t,e)});return r||s})||e:e},e.prototype.getHighlightedInnerText=function(e){if(!this.isTaggedWord(e))return s.$$(e).text()||"";var t=s.$$(e).children();return t.length>=1?s.$$(i.first(t)).text()||"":""},e.prototype.parseKeywordIdentifier=function(e){var t=e.id.substr(a.HIGHLIGHT_PREFIX.length+1).match(/^([0-9]+)\.([0-9]+)\.([0-9]+)$/);return!t||t.length<=3?null:{keywordIdentifier:t[1],keywordOccurrencesInDocument:parseInt(t[2],10),keywordTermPart:parseInt(t[3],10)}},e}();t.QuickviewDocumentWord=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(140),o=function(){function e(e){this.htmlColor=e;var t=e.match(/\d+/g);t&&(this.r=parseInt(t[0],10),this.g=parseInt(t[1],10),this.b=parseInt(t[2],10))}return e.prototype.invert=function(){return"rgb("+(255-this.r)+", "+(255-this.g)+", "+(255-this.b)+")"},e.prototype.saturate=function(){var e=i.ColorUtils.rgbToHsv(this.r,this.g,this.b);e[1]*=2,e[1]>1&&(e[1]=1);var t=i.ColorUtils.hsvToRgb(e[0],e[1],e[2]);return"rgb("+t[0]+", "+t[1]+", "+t[2]+")"},e}();t.QuickviewDocumentWordColor=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=function(){function e(e,t,n){this.word=e,this.previewBar=t,this.iframe=n,this.el=this.render()}return e.prototype.render=function(){var e=i.$$("span",{className:"coveo-term-for-quickview"});return e.append(this.buildName().el),e.append(this.renderArrow("up").el),e.append(this.renderArrow("down").el),e.el.style.backgroundColor=this.word.color.htmlColor,e.el.style.borderColor=this.word.color.saturate(),e.el},e.prototype.buildName=function(){var e=this,t=i.$$("span",{className:"coveo-term-for-quickview-name"},this.word.text+" ("+this.word.count+")");return t.on("click",function(){return e.navigate(!1)}),t},e.prototype.navigate=function(e){var t;if(e?(t=this.word.navigateBackward(),this.previewBar.navigateBackward(this.word)):(t=this.word.navigateForward(),this.previewBar.navigateForward(this.word)),this.iframe.isNewQuickviewDocument()){var n=i.$$(t).closest(".pc");i.$$(n).addClass("opened")}t.scrollIntoView()},e.prototype.renderArrow=function(e){var t=this,n=i.$$("span",{className:"coveo-term-for-quickview-"+e+"-arrow"}),o=i.$$("span",{className:"coveo-term-for-quickview-"+e+"-arrow-icon"});return n.append(o.el),n.on("click",function(){return t.navigate("up"==e)}),n},e}();t.QuickviewDocumentWordButton=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=n(0),r=n(9),s=function(){function e(e,t){this.iframe=e,this.words=t,this.wordIndicators=new Map,this.logger=new r.Logger(this),this.renderPreviewBar()}return e.prototype.navigateForward=function(e){var t=this.wordIndicators.get(e);return t?(t.position++,t.position>=t.indicators.length&&(t.position=0),this.highlightNavigation(e),t.indicators[t.position]):(this.logger.warn("Invalid navigation for given word.",e),null)},e.prototype.navigateBackward=function(e){var t=this.wordIndicators.get(e);return t?(t.position--,t.position<0&&(t.position=t.indicators.length-1),this.highlightNavigation(e),t.indicators[t.position]):(this.logger.warn("Invalid navigation for the given word.",e),null)},e.prototype.navigateTo=function(e,t){var n=this.wordIndicators.get(t);return n?(n.position=e,(n.position<0||n.position>=n.indicators.length)&&(this.logger.warn("Invalid navigation for the given position: "+e),n.position=0),this.highlightNavigation(t),n.indicators[n.position]):(this.logger.warn("Invalid navigation for the given word",t),null)},e.prototype.highlightNavigation=function(e){var t=this,n=this.wordIndicators.get(e),i=n.indicators[n.position],r=o.without(n.indicators,i);i.style.backgroundColor=e.color.invert(),i.style.border="1px solid "+e.color.invert(),r.forEach(function(n){return t.defaultStyleColor(n,e)})},e.prototype.renderPreviewBar=function(){var e=this,t=i.$$("div");t.el.style.width="15px",t.el.style.position="fixed",t.el.style.top="0",t.el.style.right="0px",t.el.style.height="100%",this.iframe.body.appendChild(t.el),o.each(this.words.words,function(n){o.each(n.elements,function(i){var o=e.renderWordPositionIndicator(i,n).el;e.wordIndicators.has(n)?e.wordIndicators.get(n).indicators.push(o):e.wordIndicators.set(n,{indicators:[o],position:-1}),t.append(o)}),e.handleOverlappingIndicators(n)})},e.prototype.renderWordPositionIndicator=function(e,t){var n=new i.Doc(this.iframe.document).height(),o=e.getBoundingClientRect().top,r=i.$$("div");return r.el.style.position="absolute",r.el.style.top=o/n*100+"%",r.el.style.width="100%",r.el.style.height="1px",this.defaultStyleColor(r.el,t),r},e.prototype.defaultStyleColor=function(e,t){e.style.border="1px solid "+t.color.saturate(),e.style.backgroundColor=t.color.htmlColor},e.prototype.handleOverlappingIndicators=function(e){for(var t=this.wordIndicators.get(e).indicators,n=0;n<t.length;n++)!function(e){var n=o.chain(t).without(t[e]).find(function(n){return n.style.top==t[e].style.top}).value();n&&(i.$$(t[e]).remove(),t[e]=n)}(n)},e}();t.QuickviewDocumentPreviewBar=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(60),o=n(126),r=n(19),s=n(4),a=n(1),u=n(9),l=n(196),c=n(651),p=n(131),d=n(118),h=n(6),f=n(7),m=n(30),y=n(11),g=n(0);n(652);var v=n(62),b=function(){function e(e,t,n,i){this.coveoRoot=e,this.ID=t,this.responsiveDropdown=i,this.recommendationRoot=this.getRecommendationRoot(),this.dropdownHeaderLabel=n.dropdownHeaderLabel,this.breakpoint=this.defineResponsiveBreakpoint(n),this.searchInterface=f.Component.get(this.coveoRoot.el,r.SearchInterface,!1),this.dropdown=this.buildDropdown(i),this.registerOnOpenHandler(),this.registerQueryEvents(),this.handleResizeEvent()}return e.init=function(t,n,o){var r=new u.Logger("ResponsiveRecommendation"),s=this.findParentRootOfRecommendationComponent(t);return s?a.$$(s).find(".coveo-results-column")?void i.ResponsiveComponentsManager.register(e,a.$$(s),l.Recommendation.ID,n,g.extend({},o,{initializationEventRoot:a.$$(t)})):void r.info("Cannot find element with class coveo-results-column. Disabling responsive mode for this component."):void r.info("Recommendation component has no parent interface. Disabling responsive mode for this component.")},e.findParentRootOfRecommendationComponent=function(e){var t=a.$$(e).parents(f.Component.computeCssClassName(r.SearchInterface));return t[0]?a.$$(t[0]):null},e.prototype.handleResizeEvent=function(){this.needSmallMode()&&!o.ResponsiveComponentsUtils.isSmallRecommendationActivated(this.coveoRoot)?this.changeToSmallMode():!this.needSmallMode()&&o.ResponsiveComponentsUtils.isSmallRecommendationActivated(this.coveoRoot)&&this.changeToLargeMode(),this.dropdown.isOpened&&this.dropdown.dropdownContent.positionDropdown()},e.prototype.needDropdownWrapper=function(){return this.needSmallMode()},e.prototype.needSmallMode=function(){var e=this.coveoRoot.width()<=this.breakpoint;if(!this.searchInterface)return e;switch(this.searchInterface.responsiveComponents.getResponsiveMode()){case"small":return!0;case"auto":return e;default:return!1}},e.prototype.changeToSmallMode=function(){var e=this;this.dropdown.close();var t=this.coveoRoot.find("."+i.ResponsiveComponentsManager.DROPDOWN_HEADER_WRAPPER_CSS_CLASS);t?(a.$$(t).append(this.dropdown.dropdownHeader.element.el),this.disableFacetPreservePosition(),o.ResponsiveComponentsUtils.activateSmallRecommendation(this.coveoRoot),o.ResponsiveComponentsUtils.activateSmallRecommendation(this.recommendationRoot)):v.Defer.defer(function(){return e.handleResizeEvent()})},e.prototype.changeToLargeMode=function(){this.enableFacetPreservePosition(),this.dropdown.cleanUp(),o.ResponsiveComponentsUtils.deactivateSmallRecommendation(this.coveoRoot),o.ResponsiveComponentsUtils.deactivateSmallRecommendation(this.recommendationRoot)},e.prototype.buildDropdown=function(e){var t=this.buildDropdownContent(),n=this.buildDropdownHeader(),i=e||new d.ResponsiveDropdown(t,n,this.coveoRoot);return i.disablePopupBackground(),i},e.prototype.buildDropdownHeader=function(){var e=a.$$("a"),t=a.$$("p");return t.text(h.l(this.dropdownHeaderLabel)),e.el.appendChild(t.el),new p.ResponsiveDropdownHeader("recommendation",e)},e.prototype.buildDropdownContent=function(){var e,t=this.coveoRoot.find(".coveo-recommendation-column");return e=t?a.$$(t):a.$$(this.coveoRoot.find("."+f.Component.computeCssClassName(l.Recommendation))),new c.RecommendationDropdownContent("recommendation",e,this.coveoRoot)},e.prototype.defineResponsiveBreakpoint=function(t){return s.Utils.isNullOrUndefined(t.responsiveBreakpoint)?e.RESPONSIVE_BREAKPOINT:t.responsiveBreakpoint},e.prototype.getFacetSliders=function(){var e=[];return this.coveoRoot.findAll(f.Component.computeSelectorForType("FacetSlider")).forEach(function(t){var n=f.Component.get(t);n&&e.push(n)}),e},e.prototype.getFacets=function(){var e=[];return this.coveoRoot.findAll(f.Component.computeSelectorForType("Facet")).forEach(function(t){var n=f.Component.get(t);n&&e.push(n)}),e},e.prototype.enableFacetPreservePosition=function(){this.getFacets().forEach(function(e){return e.options.preservePosition=!0})},e.prototype.disableFacetPreservePosition=function(){this.getFacets().forEach(function(e){return e.options.preservePosition=!1})},e.prototype.drawFacetSliderGraphs=function(){this.getFacetSliders().forEach(function(e){return e.drawDelayedGraphData()})},e.prototype.registerOnOpenHandler=function(){this.dropdown.registerOnOpenHandler(this.drawFacetSliderGraphs,this)},e.prototype.getRecommendationRoot=function(){return a.$$(this.coveoRoot.find("."+f.Component.computeCssClassName(l.Recommendation)))},e.prototype.registerQueryEvents=function(){var e=this,t=m.get(this.recommendationRoot.el,r.SearchInterface);t&&t.options.hideIfNoResults&&(this.coveoRoot.on(y.QueryEvents.querySuccess,function(t,n){return e.handleRecommnendationQuerySucess(n)}),this.coveoRoot.on(y.QueryEvents.noResults,function(t,n){return e.handleRecommendationNoResults()})),this.coveoRoot.on(y.QueryEvents.queryError,function(){return e.handleRecommendationQueryError()})},e.prototype.handleRecommnendationQuerySucess=function(e){0===e.results.totalCount?(this.dropdown.close(),this.dropdown.dropdownHeader.hide()):this.dropdown.dropdownHeader.show()},e.prototype.handleRecommendationNoResults=function(){this.dropdown.close(),this.dropdown.dropdownHeader.hide()},e.prototype.handleRecommendationQueryError=function(){this.dropdown.close(),this.dropdown.dropdownHeader.hide()},e.DROPDOWN_CONTAINER_CSS_CLASS_NAME="coveo-recommendation-dropdown-container",e.RESPONSIVE_BREAKPOINT=1e3,e}();t.ResponsiveRecommendation=b},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(90),o=n(1),r=function(){function e(e,t,n){this.element=t,this.coveoRoot=n,this.cssClassName="coveo-"+e+"-dropdown-content",this.element.addClass(this.cssClassName),this.element.addClass(i.ResponsiveDropdownContent.DEFAULT_CSS_CLASS_NAME)}return e.prototype.positionDropdown=function(){this.element.el.style.display="";var t=this.coveoRoot.find(".coveo-results-column");o.$$(t).prepend(this.element.el),this.element.addClass(i.ResponsiveDropdownContent.DEFAULT_CSS_CLASS_NAME),this.element.addClass(this.cssClassName),window.getComputedStyle(this.element.el).maxHeight,this.element.addClass(e.OPENED_DROPDOWN_CSS_CLASS_NAME)},e.prototype.hideDropdown=function(){this.element.addClass(i.ResponsiveDropdownContent.DEFAULT_CSS_CLASS_NAME),this.element.addClass(this.cssClassName),this.element.removeClass(e.OPENED_DROPDOWN_CSS_CLASS_NAME)},e.prototype.cleanUp=function(){this.element.removeClass(this.cssClassName),this.element.removeClass(i.ResponsiveDropdownContent.DEFAULT_CSS_CLASS_NAME)},e.OPENED_DROPDOWN_CSS_CLASS_NAME="coveo-open-dropdown-content",e}();t.RecommendationDropdownContent=r},function(e,t){},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=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])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n(7),r=n(8),s=n(4),a=n(11),u=n(2),l=n(1),c=n(0),p=function(e){function t(n,i,o){var u=e.call(this,n,t.ID,o)||this;if(u.element=n,u.options=i,u.options=r.ComponentOptions.initComponentOptions(n,t,i),"script"===u.element.tagName.toLowerCase()){try{u.content=s.Utils.decodeHTMLEntities(l.$$(u.element).text())}catch(e){return u}c.isUndefined(u.content)||""==u.content||u.bind.onRootElement(a.QueryEvents.buildingQuery,u.handleBuildingQuery)}return u}return i(t,e),t.prototype.handleBuildingQuery=function(e){e.queryBuilder.advancedExpression.add(this.content)},t.ID="RecommendationQuery",t.options={},t}(o.Component);t.RecommendationQuery=p,u.Initialization.registerAutoCreateComponent(p)},function(e,t){},function(e,t){},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=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])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n(27),r=function(e){function t(){return e.call(this)||this}return i(t,e),t.prototype.instantiateToString=function(e){return'<div><span class="CoveoIcon"></span> <a class="CoveoResultLink"></a> <span class="CoveoQuickview"></span></div>'},t}(o.Template);t.DefaultResultAttachmentTemplate=r},function(e,t){},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=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])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n(27),r=function(e){function t(){return e.call(this)||this}return i(t,e),t.prototype.instantiateToString=function(e){return'<div class="coveo-child-result"><span class="CoveoIcon" data-small="true"></span> <a class="CoveoResultLink"></a> <span class="CoveoQuickview"></span></div>'},t.prototype.getType=function(){return"DefaultFoldingTemplate"},t}(o.Template);t.DefaultFoldingTemplate=r},function(e,t){},function(e,t){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),o=n(9),r=n(1),s=n(7),a=n(197),u=n(19),l=n(60),c=function(){function e(e,t,n,i){var o=this;this.coveoRoot=e,this.ID=t,this.searchInterface=s.Component.get(this.coveoRoot.el,u.SearchInterface,!1),e.on("state:change:t",function(){o.handleResizeEvent()})}return e.init=function(t,n,i){if(!r.$$(t).find("."+s.Component.computeCssClassName(a.ResultLayoutSelector))){return void new o.Logger("ResponsiveResultLayout").trace("No ResultLayout component found : Cannot instantiate ResponsiveResultLayout")}l.ResponsiveComponentsManager.register(e,r.$$(t),a.ResultLayoutSelector.ID,n,i)},e.prototype.registerComponent=function(e){return e instanceof a.ResultLayoutSelector&&(this.resultLayout=e,!0)},e.prototype.handleResizeEvent=function(){this.needSmallMode()?this.enableAndDisableLayouts(this.resultLayout.options.mobileLayouts):this.needMediumMode()?this.enableAndDisableLayouts(this.resultLayout.options.tabletLayouts):this.enableAndDisableLayouts(this.resultLayout.options.desktopLayouts)},e.prototype.enableAndDisableLayouts=function(e){var t=i.difference(a.ResultLayoutSelector.validLayouts,e),n=i.intersection(a.ResultLayoutSelector.validLayouts,e);this.resultLayout.disableLayouts(t),this.resultLayout.enableLayouts(n)},e.prototype.needSmallMode=function(){switch(this.searchInterface.responsiveComponents.getResponsiveMode()){case"small":return!0;case"auto":return this.coveoRoot.width()<=this.searchInterface.responsiveComponents.getSmallScreenWidth();default:return!1}},e.prototype.needMediumMode=function(){switch(this.searchInterface.responsiveComponents.getResponsiveMode()){case"medium":return!0;case"auto":return this.coveoRoot.width()<=this.searchInterface.responsiveComponents.getMediumScreenWidth();default:return!1}},e}();t.ResponsiveResultLayout=c},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=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])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(t,"__esModule",{value:!0});var o=n(7),r=n(8),s=n(84),a=n(11),u=n(226),l=n(194),c=n(6),p=n(1),d=n(0),h=n(12),f=n(15),m=function(e){function t(n,i,o){var r=e.call(this,n,t.ID,o)||this;return r.element=n,r.options=i,r.bindings=o,r.bind.onRootElement(s.SearchAlertsEvents.searchAlertsCreated,function(e){return r.handleSubscriptionCreated(e)}),r.bind.oneRootElement(s.SearchAlertsEvents.searchAlertsFail,function(e){return r.handleSearchAlertsFail(e)}),r.bind.oneRootElement(s.SearchAlertsEvents.searchAlertsDeleted,function(){return r.close()}),r.bind.oneRootElement(a.QueryEvents.newQuery,function(){return r.close()}),r}return i(t,e),t.prototype.getCssClass=function(){return"coveo-subscriptions-messages"},t.prototype.getFollowQueryMessage=function(e,t){var n=this;void 0===t&&(t=!1);var i={text:[]};p.$$(this.root).trigger(s.SearchAlertsEvents.searchAlertsPopulateMessage,i);var o,r=(t?"<ul>":"")+function(){return d.map(i.text,function(e){return e=n.formatMessageArgumentsText(e),(t?"<li>":"(")+e+(t?"</li>":")")}).join(" ")}()+(t?"</ul>":"");return e&&0!=i.text.length&&(o=d.escape(e)+" "+r),e&&0==i.text.length&&(o=""+d.escape(e)),e||0==i.text.length||(o=""+r),e||0!=i.text.length||(o=t?c.l("EmptyQuery"):d.unescape(c.l("EmptyQuery"))),o},t.prototype.showMessage=function(e,t,n){var i=this;this.message=p.$$("div",{className:"coveo-subscriptions-messages"}),this.message.el.innerHTML="\n      <div class='coveo-subscriptions-messages-message'>\n        <div class='coveo-subscriptions-messages-content'><span>"+t+"</span></div>\n        <div class='coveo-subscriptions-messages-info-close'>"+h.SVGIcons.icons.checkboxHookExclusionMore+"</div>\n      </div>",this.message.toggleClass("coveo-subscriptions-messages-error",n);var o=this.message.find(".coveo-subscriptions-messages-info-close");f.SVGDom.addClassToSVGInContainer(o,"coveo-subscript-messages-info-close-svg"),p.$$(o).on("click",function(){return i.close()}),l.PopupUtils.positionPopup(this.message.el,e.el,this.root,{horizontal:l.PopupHorizontalAlignment.INNERLEFT,vertical:l.PopupVerticalAlignment.BOTTOM,verticalOffset:12,horizontalClip:!0},this.root),this.startCloseDelay(),this.message.on("mouseleave",function(){i.startCloseDelay()}),this.message.on("mouseenter",function(){i.stopCloseDelay()})},t.prototype.formatMessageArgumentsText=function(e){return e=d.isString(e)?d.escape(e):e.lineThrough?'<span style="text-decoration:line-through">'+d.escape(e.value)+"</span>":d.escape(e.value)},t.prototype.handleSubscriptionCreated=function(e){if(this.close(),null!=e.dom)if(e.subscription.type==u.SUBSCRIPTION_TYPE.followQuery){var t=e.subscription.typeConfig;this.showMessage(p.$$(e.dom),c.l("SubscriptionsMessageFollowQuery",this.getFollowQueryMessage(t.query.q,!0)),!1)}else this.showMessage(p.$$(e.dom),c.l("SubscriptionsMessageFollow"),!1)},t.prototype.handleSearchAlertsFail=function(e){this.close(),null!=e.dom&&this.showMessage(p.$$(e.dom),c.l("SearchAlerts_Fail"),!0)},t.prototype.startCloseDelay=function(){var e=this;clearTimeout(this.closeTimeout),this.closeTimeout=window.setTimeout(function(){e.close()},this.options.closeDelay)},t.prototype.stopCloseDelay=function(){clearTimeout(this.closeTimeout)},t.prototype.close=function(){null!=this.message&&(clearTimeout(this.closeTimeout),this.message.remove(),this.message=null)},t.ID="SubscriptionsMessages",t.options={closeDelay:r.ComponentOptions.buildNumberOption({defaultValue:2e3,min:0})},t}(o.Component);t.SearchAlertsMessage=m},function(e,t){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=function(){function e(){}return e.resize=function(e,t){var n=this,i=this.getSearchbox(e),o=this.getElementsToResize(e),r=this.getInput(e),s="height: "+t+"px; line-height: "+t+"px;",a="height: "+t+"px",u="height: "+(t-2)+"px;";this.applyStyle(i,s),this.applyStyle(r,u),o.forEach(function(e){n.applyStyle(e,a)})},e.applyStyle=function(e,t){e.style.cssText+=t},e.getSearchbox=function(e){return i.$$(e).find(".CoveoOmnibox")||i.$$(e).find(".CoveoQuerybox")},e.getElementsToResize=function(e){return[i.$$(e).find(".CoveoSearchButton"),i.$$(i.$$(e).find(".magic-box-input")).find("input"),i.$$(e).find(".magic-box-icon"),i.$$(e).find(".magic-box-clear"),i.$$(e).find(".magic-box-underlay")]},e.getInput=function(e){return i.$$(e).find(".magic-box-input")},e}();t.SearchBoxResize=o},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n(675);var i=n(0),o=n(16),r=n(9),s=n(6),a=n(1),u=n(133),l=n(15),c=n(12),p=n(4),d=n(7),h=n(19),f=n(198),m=n(53),y=n(60),g=n(126),v=n(17),b=n(94),S=n(25),C=function(){function e(e,t){this.coveoRoot=e,this.ID=t,this.ignoreNextDocumentClick=!1,this.dropdownHeaderLabel=this.getDropdownHeaderLabel(),this.searchInterface=d.Component.get(this.coveoRoot.el,h.SearchInterface,!1),this.dropdownContent=this.buildDropdownContent(),this.dropdownHeader=this.buildDropdownHeader(),this.bindDropdownContentEvents(),this.bindDropdownHeaderEvents(),this.tabSection=a.$$(this.coveoRoot.find(".coveo-tab-section")),this.manageTabSwapping(),this.bindNukeEvents(),this.initialTabOrder=this.tabsInTabSection.slice()}return e.init=function(t,n,i){if(this.logger=new r.Logger("ResponsiveTabs"),!a.$$(t).find(".coveo-tab-section"))return void this.logger.info("No element with class coveo-tab-section. Responsive tabs cannot be enabled.");y.ResponsiveComponentsManager.register(e,a.$$(t),f.Tab.ID,n,i)},e.prototype.handleResizeEvent=function(){this.needSmallMode()&&!g.ResponsiveComponentsUtils.isSmallTabsActivated(this.coveoRoot)?this.changeToSmallMode():!this.needSmallMode()&&g.ResponsiveComponentsUtils.isSmallTabsActivated(this.coveoRoot)&&this.changeToLargeMode(),this.shouldAddTabsToDropdown()?this.addTabsToDropdown():this.shouldRemoveTabsFromDropdown()&&this.removeTabsFromDropdown(),this.isDropdownOpen()&&this.positionPopup()},e.prototype.needSmallMode=function(){if(!this.searchInterface)return this.shouldAutoModeResolveToSmall();switch(this.searchInterface.responsiveComponents.getResponsiveMode()){case"small":case"medium":return!0;case"auto":default:return this.shouldAutoModeResolveToSmall()}},e.prototype.shouldAutoModeResolveToSmall=function(){var e=this.searchInterface?this.searchInterface.responsiveComponents.getMediumScreenWidth():(new m.ResponsiveComponents).getMediumScreenWidth();return this.coveoRoot.width()<=e||(g.ResponsiveComponentsUtils.isSmallTabsActivated(this.coveoRoot)?this.isLargeFormatOverflowing():this.isOverflowing(this.tabSection.el))},e.prototype.changeToSmallMode=function(){g.ResponsiveComponentsUtils.activateSmallTabs(this.coveoRoot)},e.prototype.changeToLargeMode=function(){this.emptyDropdown(),this.cleanUpDropdown(),g.ResponsiveComponentsUtils.deactivateSmallTabs(this.coveoRoot)},e.prototype.shouldAddTabsToDropdown=function(){return(this.isOverflowing(this.tabSection.el)||0===this.tabSection.el.clientWidth)&&g.ResponsiveComponentsUtils.isSmallTabsActivated(this.coveoRoot)},e.prototype.addTabsToDropdown=function(){var t;if(!this.tabSection.find("."+e.TAB_IN_DROPDOWN_HEADER_CSS_CLASS)){var n=this.tabSection.find(".coveo-facet-dropdown-header");n?this.dropdownHeader.insertBefore(n):this.tabSection.el.appendChild(this.dropdownHeader.el)}for(var i=this.initialTabOrder.length-1;i>=0&&(t=this.initialTabOrder[i],this.tabIsSelected(t)&&i>0&&(t=this.initialTabOrder[--i]),this.addToDropdownIfNeeded(t),this.isOverflowing(this.tabSection.el));i--);},e.prototype.shouldRemoveTabsFromDropdown=function(){return!this.isOverflowing(this.tabSection.el)&&0!==this.tabSection.el.clientWidth&&g.ResponsiveComponentsUtils.isSmallTabsActivated(this.coveoRoot)&&!this.isDropdownEmpty()},e.prototype.removeTabsFromDropdown=function(){for(var e,t=this,n=this.tabsInTabDropdown;!this.isOverflowing(this.tabSection.el)&&!this.isDropdownEmpty();)e=n.shift(),this.removeFromDropdownIfNeeded(e),this.fromDropdownToTabSection(a.$$(e));if(this.isOverflowing(this.tabSection.el)){var o=i.filter(this.tabsInTabSection,function(e){return!t.tabIsSelected(e)});this.addToDropdownIfNeeded(o.pop())}this.isDropdownEmpty()&&this.cleanUpDropdown()},e.prototype.emptyDropdown=function(){var e=this;if(!this.isDropdownEmpty()){for(var t=this.tabsInTabDropdown;!this.isDropdownEmpty();){var n=t.shift();this.removeFromDropdownIfNeeded(n)}this.initialTabOrder.forEach(function(t){return e.tabSection.append(t)})}},e.prototype.isLargeFormatOverflowing=function(){var t=a.$$(this.tabSection.el.cloneNode(!0)),n=t.find("."+e.TAB_IN_DROPDOWN_HEADER_CSS_CLASS);n&&t.el.removeChild(n),t.el.style.position="absolute",t.el.style.visibility="hidden",this.isDropdownEmpty()||i.each(this.dropdownContent.findAll(".CoveoTab"),function(e){t.el.appendChild(e.cloneNode(!0))}),t.insertBefore(this.tabSection.el),g.ResponsiveComponentsUtils.deactivateSmallTabs(this.coveoRoot);var o=this.isOverflowing(this.tabSection.el)||this.isOverflowing(t.el);return g.ResponsiveComponentsUtils.activateSmallTabs(this.coveoRoot),t.detach(),o},e.prototype.isOverflowing=function(e){return e.clientWidth<e.scrollWidth},e.prototype.buildDropdownHeader=function(){var t=a.$$("a",{className:"coveo-dropdown-header "+e.TAB_IN_DROPDOWN_HEADER_CSS_CLASS}),n=a.$$("p");n.text(this.dropdownHeaderLabel);var i=a.$$("span",{className:"coveo-more-tabs"},c.SVGIcons.icons.arrowDown);return l.SVGDom.addClassToSVGInContainer(i.el,"coveo-more-tabs-svg"),n.el.appendChild(i.el),t.el.appendChild(n.el),t},e.prototype.bindDropdownHeaderEvents=function(){var e=this,t=function(t){e.isDropdownOpen()?e.closeDropdown():e.openDropdown(),"click"===t.type&&(e.ignoreNextDocumentClick=!0)};(new v.AccessibleButton).withElement(this.dropdownHeader).withSelectAction(t).withLabel(this.getDropdownHeaderLabel()).build()},e.prototype.buildDropdownContent=function(){var e=a.$$("div",{className:"coveo-tab-list-container "+h.SearchInterface.SMALL_INTERFACE_CLASS_NAME}),t=a.$$("ol",{className:"coveo-tab-list"});return e.el.appendChild(t.el),e},e.prototype.bindDropdownContentEvents=function(){var e=this;this.dropdownClickListener=function(){e.isDropdownOpen()&&(e.ignoreNextDocumentClick=!0)},this.documentClickListener=function(t){e.ignoreNextDocumentClick||e.closeDropdown(),e.ignoreNextDocumentClick=!1},a.$$(this.dropdownHeader).on("click",this.dropdownClickListener),a.$$(this.dropdownContent).on("click",this.dropdownClickListener)},e.prototype.isDropdownOpen=function(){return this.dropdownHeader.hasClass(e.ACTIVE_DROPDOWN_CSS_CLASS)},e.prototype.closeDropdown=function(){a.$$(document.documentElement).off("click",this.documentClickListener),this.dropdownContent.detach(),this.dropdownHeader.removeClass(e.ACTIVE_DROPDOWN_CSS_CLASS)},e.prototype.openDropdown=function(){a.$$(document.documentElement).on("click",this.documentClickListener),this.positionPopup(),this.dropdownHeader.addClass(e.ACTIVE_DROPDOWN_CSS_CLASS)},e.prototype.addToDropdownIfNeeded=function(t){if(this.canAddTabToDropdown(t)){a.$$(t).addClass(e.TAB_IN_DROPDOWN_CSS_CLASS);var n=a.$$(this.dropdownContent.find("ol")),i=a.$$("li",null,t);n.prepend(i.el)}},e.prototype.removeFromDropdownIfNeeded=function(t){this.canRemoveTabFromDropdown(t)&&(a.$$(t).removeClass(e.TAB_IN_DROPDOWN_CSS_CLASS),a.$$(t.parentElement).detach())},e.prototype.canAddTabToDropdown=function(e){return e&&!this.tabIsInDropdown(e)&&this.dropdownHeader},e.prototype.canRemoveTabFromDropdown=function(e){return e&&this.tabIsInDropdown(e)&&this.dropdownContent},e.prototype.cleanUpDropdown=function(){this.dropdownHeader.removeClass(e.ACTIVE_DROPDOWN_CSS_CLASS),this.dropdownHeader.detach(),this.dropdownContent.detach()},e.prototype.isDropdownEmpty=function(){if(this.dropdownContent){return 0==this.dropdownContent.findAll(".CoveoTab").length}return!1},e.prototype.manageTabSwapping=function(){var t=this;i.each(this.coveoRoot.findAll("."+d.Component.computeCssClassNameForType(this.ID)),function(n){var i=a.$$(n),o=function(n){var r=t.tabsInTabSection.pop();"opacity"==n.propertyName&&("0"==i.el.style.opacity?(a.$$(r).addClass(e.TAB_IN_DROPDOWN_CSS_CLASS),i.replaceWith(r),i.removeClass(e.TAB_IN_DROPDOWN_CSS_CLASS),t.fromDropdownToTabSection(i),window.getComputedStyle(i.el).opacity,window.getComputedStyle(r).opacity,i.el.style.opacity=r.style.opacity="1"):"1"==i.el.style.opacity&&(t.closeDropdown(),u.EventsUtils.removePrefixedEvent(i.el,"TransitionEnd",o),t.handleResizeEvent()))},r=function(){if(t.tabIsInDropdown(i)){var e=t.tabsInTabSection.pop();e&&(u.EventsUtils.addPrefixedEvent(i.el,"TransitionEnd",o),i.el.style.opacity=e.style.opacity="0")}};i.on("click",function(){return r()}),i.on("keyup",S.KeyboardUtils.keypressAction(S.KEYBOARD.ENTER,r)),i.on("blur",function(e){e.relatedTarget&&!t.tabIsInDropdown(e.relatedTarget)&&t.closeDropdown()})})},e.prototype.bindNukeEvents=function(){var e=this;a.$$(this.coveoRoot).on(o.InitializationEvents.nuke,function(){a.$$(document.documentElement).off("click",e.documentClickListener)})},e.prototype.positionPopup=function(){this.dropdownContent.insertAfter(this.dropdownHeader.el),new b.default(this.dropdownHeader.el,this.dropdownContent.el,{modifiers:{preventOverflow:{boundariesElement:this.coveoRoot.el}}})},e.prototype.fromDropdownToTabSection=function(e){var t=i.last(this.tabsInTabSection);if(!t)return void this.tabSection.prepend(e.el);this.initialTabOrder.indexOf(e.el)>this.initialTabOrder.indexOf(t)?e.insertAfter(t):e.insertBefore(t)},e.prototype.getDropdownHeaderLabel=function(){var t;return i.each(a.$$(this.coveoRoot.find(".coveo-tab-section")).findAll("."+d.Component.computeCssClassName(f.Tab)),function(e){var n=d.Component.get(e,f.Tab);!t&&n&&n.options.dropdownHeaderLabel&&(t=n.options.dropdownHeaderLabel)}),t||(t=s.l(e.DROPDOWN_HEADER_LABEL_DEFAULT_VALUE)),t},e.prototype.tabIsSelected=function(e){return a.$$(e).hasClass("coveo-selected")},e.prototype.tabIsInDropdown=function(t){return a.$$(t).hasClass(e.TAB_IN_DROPDOWN_CSS_CLASS)},Object.defineProperty(e.prototype,"tabsInTabSection",{get:function(){var e=this,t=[];return i.each(this.tabSection.children(),function(n){if(p.Utils.isHtmlElement(n)){var i=a.$$(n),o=i.hasClass(d.Component.computeCssClassNameForType(e.ID));!e.tabIsInDropdown(i)&&o&&t.push(i.el)}}),t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tabsInTabDropdown",{get:function(){return this.dropdownContent?this.dropdownContent.findAll("."+e.TAB_IN_DROPDOWN_CSS_CLASS):[]},enumerable:!0,configurable:!0}),e.DROPDOWN_HEADER_LABEL_DEFAULT_VALUE="More",e.TAB_IN_DROPDOWN_CSS_CLASS="coveo-tab-dropdown",e.TAB_IN_DROPDOWN_HEADER_CSS_CLASS=e.TAB_IN_DROPDOWN_CSS_CLASS+"-header",e.ACTIVE_DROPDOWN_CSS_CLASS="coveo-dropdown-header-active",e}();t.ResponsiveTabs=C},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n(524);var i=n(0),o=function(){function e(e,t){this.simpleFilter=e,this.options=t,this.groupByRequestValues=[]}return e.prototype.getValuesFromGroupBy=function(){return this.groupByRequestValues},e.prototype.groupBy=function(e){var t=this;this.groupByRequestValues=[];var n=e.results.groupByResults;n.length>0&&void 0!=this.position&&i.each(n[this.position].values,function(e){t.groupByRequestValues.indexOf(e.lookupValue)<0&&t.groupByRequestValues.push(e.lookupValue)})},e.prototype.handleDoneBuildingQuery=function(e){var t=e.queryBuilder;this.putGroupByIntoQueryBuilder(t)},e.prototype.putGroupByIntoQueryBuilder=function(e){var t=this.createBasicGroupByRequest();e.groupByRequests.push(t),this.position=e.groupByRequests.length-1},e.prototype.createBasicGroupByRequest=function(){return{field:this.options.field,maximumNumberOfValues:this.options.maximumNumberOfValues,injectionDepth:1e3,sortCriteria:this.simpleFilter.options.sortCriteria}},e}();t.SimpleFilterValues=o},function(e,t){},function(e,t,n){"use strict";var i=this&&this.__assign||Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e};Object.defineProperty(t,"__esModule",{value:!0});var o=n(5),r=n(11),s=n(71),a=n(0),u=n(509),l=function(){function e(e){this.facet=e,this.freezeFacetOrder=!1,this.preventAutoSelection=!1,this.requestBuilder=new u.DynamicFacetRequestBuilder({facetId:this.facet.options.id,field:this.facet.fieldName,type:this.facet.facetType,sortCriteria:this.facet.options.sortCriteria,injectionDepth:this.facet.options.injectionDepth,delimitingCharacter:this.facet.options.delimitingCharacter,filterFacetCount:this.facet.options.filterFacetCount,basePath:this.facet.options.basePath,filterByBasePath:!1}),this.resetNumberOfValuesToRequest(),this.resetFlagsDuringQuery()}return e.prototype.resetFlagsDuringQuery=function(){var e=this;this.facet.bind.onRootElement(r.QueryEvents.duringQuery,function(){e.freezeFacetOrder=!1,e.preventAutoSelection=!1})},e.prototype.increaseNumberOfValuesToRequest=function(e){this.numberOfValuesToRequest+=e},e.prototype.resetNumberOfValuesToRequest=function(){this.numberOfValuesToRequest=this.facet.options.numberOfValues},e.prototype.enableFreezeFacetOrderFlag=function(){this.freezeFacetOrder=!0},e.prototype.enablePreventAutoSelectionFlag=function(){this.preventAutoSelection=!0},e.prototype.putFacetIntoQueryBuilder=function(e){o.Assert.exists(e),e.facetRequests.push(this.buildFacetRequest(e.build())),this.freezeFacetOrder&&(e.facetOptions.freezeFacetOrder=this.freezeFacetOrder)},e.prototype.buildFacetRequest=function(e){return i({},this.requestBuilder.buildBaseRequestForQuery(e),{currentValues:this.currentValues,preventAutoSelect:this.preventAutoSelection,numberOfValues:this.facet.values.hasSelectedValue?1:this.numberOfValuesToRequest,isFieldExpanded:this.numberOfValuesToRequest>this.facet.options.numberOfValues})},e.prototype.getQueryResults=function(){var e=this.facet.queryController.getLastQuery();e.numberOfResults=0;var t=a.findIndex(e.facets,{facetId:this.facet.options.id});return-1!==t?e.facets[t]=this.buildFacetRequest(e):e.facets?e.facets.push(this.buildFacetRequest(e)):e.facets=[this.buildFacetRequest(e)],this.facet.queryController.getEndpoint().search(e)},Object.defineProperty(e.prototype,"currentValues",{get:function(){var e=this;return this.facet.values.hasSelectedValue?this.facet.values.allFacetValues.map(function(t){return e.buildRequestValue(t)}):[]},enumerable:!0,configurable:!0}),e.prototype.buildRequestValue=function(e){return{value:e.value,state:e.state,children:this.childrenForFacetValue(e),retrieveChildren:this.shouldRetrieveChildren(e),retrieveCount:e.retrieveCount}},e.prototype.childrenForFacetValue=function(e){var t=this;return this.shouldRetrieveChildren(e)?[]:e.children.map(function(e){return t.buildRequestValue(e)})},e.prototype.shouldRetrieveChildren=function(e){return e.state===s.FacetValueState.selected},e}();t.DynamicHierarchicalFacetQueryController=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n(510);var i=n(1),o=n(12),r=n(6),s=n(10),a=function(){function e(e){this.facet=e,this.create()}return e.prototype.create=function(){var e=this;this.element=i.$$("div",{className:"coveo-dynamic-facet-breadcrumb coveo-breadcrumb-item"}).el;var t=this.facet.values.selectedPath,n=t.map(function(t){return e.facet.getCaption(t)}).join(" / ");this.createAndAppendTitle(),this.createAndAppendCaption(n)},e.prototype.createAndAppendTitle=function(){var e=i.$$("h3",{className:"coveo-dynamic-facet-breadcrumb-title"},this.facet.options.title+":").el;this.element.appendChild(e)},e.prototype.createAndAppendCaption=function(e){var t=this,n=i.$$("button",{className:"coveo-dynamic-facet-breadcrumb-value",ariaLabel:r.l("RemoveFilterOn",e)},e).el,s=i.$$("span",{className:"coveo-dynamic-facet-breadcrumb-value-clear"},o.SVGIcons.icons.mainClear).el;n.appendChild(s),i.$$(n).on("click",function(){return t.valueSelectAction()}),this.element.appendChild(n)},e.prototype.valueSelectAction=function(){var e=this;this.facet.reset(),this.facet.triggerNewQuery(function(){return e.facet.logAnalyticsEvent(s.analyticsActionCauseList.breadcrumbFacet)})},e}();t.DynamicHierarchicalFacetBreadcrumb=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n(683);var i=n(684),o=n(40),r=n(1),s=n(0),a=n(71),u=n(4),l=n(6),c=n(222),p=n(12),d=n(42),h=n(179),f=function(){function e(e){this.facet=e,this.facetValues=[],this._selectedPath=[],this.list=r.$$("ul",{className:"coveo-dynamic-hierarchical-facet-values","aria-labelledby":h.getDynamicFacetHeaderId(this.facet.options.id)}).el}return e.prototype.formatDisplayValue=function(e){var t=o.FacetUtils.tryToGetTranslatedCaption(this.facet.options.field,e);return this.facet.options.valueCaption[e]||t},e.prototype.createFromResponse=function(e){var t=this;this.clearPath(),this.facetValues=e.values.map(function(e){return t.createFacetValueFromResponse(e)})},e.prototype.reorderValues=function(e){var t=e.map(function(e){return d.HashUtils.encodeArray(e)});if(this.hasSelectedValue){var n=this.findValueWithPath(this.selectedPath);n.children=u.Utils.reorderValuesByKeys(n.children,t,function(e){return d.HashUtils.encodeArray(e.path)})}else this.facetValues=u.Utils.reorderValuesByKeys(this.facetValues,t,function(e){return d.HashUtils.encodeArray(e.path)})},e.prototype.createFacetValueFromResponse=function(e,t){var n=this;void 0===t&&(t=[]);var r=t.concat([e.value]),s=o.FacetUtils.getDisplayValueFromValueCaption(e.value,this.facet.options.field,this.facet.options.valueCaption),u=e.children?e.children.map(function(e){return n.createFacetValueFromResponse(e,r)}):[];return e.state===a.FacetValueState.selected&&(this._selectedPath=r),new i.DynamicHierarchicalFacetValue({value:e.value,numberOfResults:e.numberOfResults,state:e.state,moreValuesAvailable:e.moreValuesAvailable,path:r,isLeafValue:e.isLeafValue,displayValue:s,children:u},this.facet)},Object.defineProperty(e.prototype,"allFacetValues",{get:function(){return this.facetValues},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasSelectedValue",{get:function(){return!!this._selectedPath.length},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"selectedPath",{get:function(){return this._selectedPath.slice()},enumerable:!0,configurable:!0}),e.prototype.resetValues=function(){this.facetValues=[],this.clearPath()},e.prototype.clearPath=function(){this._selectedPath=[]},e.prototype.findValueWithPath=function(e){var t,n=this.facetValues,i=e.slice();do{var o=function(){var e=i.shift();if(!(t=s.find(n,function(t){return t.value===e})))return{value:null};n=t.children}();if("object"==typeof o)return o.value}while(i.length);return t},e.prototype.createFacetValueWithPath=function(e,t){void 0===t&&(t=[]);var n=e[e.length-1];return new i.DynamicHierarchicalFacetValue({value:n,path:e,displayValue:this.formatDisplayValue(n),numberOfResults:0,state:a.FacetValueState.idle,isLeafValue:!t.length,moreValuesAvailable:!1,children:t},this.facet)},e.prototype.getOrCreateFacetValueWithPath=function(e){var t=this.findValueWithPath(e);if(t)return t;var n=this.createFacetValueWithPath(e);return(1===e.length?this.facetValues:this.getOrCreateFacetValueWithPath(e.slice(0,-1)).children).push(n),n},e.prototype.filterHierarchyAtPathLevel=function(e,t,n){var i=this;void 0===n&&(n=1);var o=e.filter(function(e){var i=t.slice(0,n);return u.Utils.arrayEqual(i,e.path)});return o.forEach(function(e){e.state=a.FacetValueState.idle,e.children=i.filterHierarchyAtPathLevel(e.children,t,n+1)}),o},e.prototype.filterHierarchyWithPath=function(e){this.facetValues=this.filterHierarchyAtPathLevel(this.facetValues,e)},e.prototype.selectPath=function(e){this.filterHierarchyWithPath(e),this.getOrCreateFacetValueWithPath(e).select(),this._selectedPath=e.slice()},e.prototype.prependAllCategories=function(){var e=this,t=r.$$("button",{className:"coveo-dynamic-hierarchical-facet-all",title:this.facet.options.clearLabel},this.facet.options.clearLabel);t.toggleClass("coveo-show-when-collapsed",1===this.facet.values.selectedPath.length);var n=r.$$("div",{className:"coveo-dynamic-hierarchical-facet-value-arrow-left"},p.SVGIcons.icons.arrowDown);t.prepend(n.el);var i=r.$$("li",{},t);i.on("click",function(){return e.facet.header.options.clear()}),r.$$(this.list).prepend(i.el)},e.prototype.buildShowLess=function(){var e=this;return new c.DynamicFacetValueShowMoreLessButton({className:"coveo-dynamic-hierarchical-facet-show-less",ariaLabel:l.l("ShowLessFacetResults",this.facet.options.title),label:l.l("ShowLess"),action:function(){e.facet.enableFreezeFacetOrderFlag(),e.facet.showLessValues()}}).element},e.prototype.buildShowMore=function(){var e=this;return new c.DynamicFacetValueShowMoreLessButton({className:"coveo-dynamic-hierarchical-facet-show-more",ariaLabel:l.l("ShowMoreFacetResults",this.facet.options.title),label:l.l("ShowMore"),action:function(){e.facet.enableFreezeFacetOrderFlag(),e.facet.showMoreValues()}}).element},Object.defineProperty(e.prototype,"shouldEnableShowLess",{get:function(){return this.facetValues.length>this.facet.options.numberOfValues},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"shouldEnableShowMore",{get:function(){return this.facet.moreValuesAvailable&&!this.hasSelectedValue},enumerable:!0,configurable:!0}),e.prototype.appendShowMoreLess=function(e){this.facet.options.enableMoreLess&&(this.shouldEnableShowLess&&e.appendChild(this.buildShowLess()),this.shouldEnableShowMore&&e.appendChild(this.buildShowMore()))},e.prototype.render=function(){var e=document.createDocumentFragment();return r.$$(this.list).empty(),this.facetValues.forEach(function(t){t.render(e)}),r.$$(this.list).toggleClass("coveo-with-space",!!this._selectedPath.length),this._selectedPath.length&&this.prependAllCategories(),this.appendShowMoreLess(e),this.list.appendChild(e),this.list},e}();t.DynamicHierarchicalFacetValues=f},function(e,t){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(23),o=n(71),r=n(685),s=n(6),a=n(222),u=n(10),l=function(){function e(e,t){this.facetValue=e,this.facet=t,this.element=null,this.renderer=new r.DynamicHierarchicalFacetValueRenderer(this,this.facet),this.retrieveCount=Math.max(this.facet.options.numberOfValues,this.facetValue.children.length)}return Object.defineProperty(e.prototype,"value",{get:function(){return this.facetValue.value},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return this.facetValue.path},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"state",{get:function(){return this.facetValue.state},set:function(e){this.facetValue.state=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"moreValuesAvailable",{get:function(){return this.facetValue.moreValuesAvailable},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"numberOfResults",{get:function(){return this.facetValue.numberOfResults},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"displayValue",{get:function(){return this.facetValue.displayValue},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"children",{get:function(){return this.facetValue.children},set:function(e){this.facetValue.children=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isLeafValue",{get:function(){return this.facetValue.isLeafValue},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isIdle",{get:function(){return this.state===o.FacetValueState.idle},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isSelected",{get:function(){return this.state===o.FacetValueState.selected},enumerable:!0,configurable:!0}),e.prototype.select=function(){this.state=o.FacetValueState.selected},Object.defineProperty(e.prototype,"selectAriaLabel",{get:function(){var e=s.l("ResultCount",this.formattedCount,this.numberOfResults);return this.displayValue+" "+e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"formattedCount",{get:function(){return i.format(this.numberOfResults,"n0")},enumerable:!0,configurable:!0}),e.prototype.buildShowLess=function(){var e=this;return new a.DynamicFacetValueShowMoreLessButton({className:"coveo-dynamic-hierarchical-facet-show-less coveo-with-space",ariaLabel:s.l("ShowLessHierarchicalResults",this.displayValue),label:s.l("ShowLess"),action:function(){e.facet.enableFreezeFacetOrderFlag(),e.retrieveCount=e.facet.options.numberOfValues,e.facet.triggerNewIsolatedQuery()}}).element},e.prototype.buildShowMore=function(){var e=this;return new a.DynamicFacetValueShowMoreLessButton({className:"coveo-dynamic-hierarchical-facet-show-more coveo-with-space",ariaLabel:s.l("ShowMoreHierarchicalResults",this.displayValue),label:s.l("ShowMore"),action:function(){e.facet.enableFreezeFacetOrderFlag(),e.retrieveCount+=e.facet.options.numberOfValues,e.facet.triggerNewIsolatedQuery()}}).element},Object.defineProperty(e.prototype,"shouldEnableShowLess",{get:function(){return this.children.length>this.facet.options.numberOfValues},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"shouldEnableShowMore",{get:function(){return this.moreValuesAvailable},enumerable:!0,configurable:!0}),e.prototype.appendShowMoreLess=function(e){this.facet.options.enableMoreLess&&(this.shouldEnableShowLess&&e.appendChild(this.buildShowLess()),this.shouldEnableShowMore&&e.appendChild(this.buildShowMore()))},e.prototype.render=function(e){return this.element=this.renderer.render(),e.appendChild(this.element),this.children.forEach(function(t){return t.render(e)}),this.appendShowMoreLess(e),this.element},e.prototype.logSelectActionToAnalytics=function(){this.facet.logAnalyticsEvent(u.analyticsActionCauseList.dynamicFacetSelect)},e}();t.DynamicHierarchicalFacetValue=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=n(12),r=n(4),s=function(){function e(e,t){this.facetValue=e,this.facet=t}return e.prototype.render=function(){var e=this;return this.button=i.$$("button",{className:"coveo-dynamic-hierarchical-facet-value",ariaLabel:this.facetValue.selectAriaLabel}),this.button.on("click",function(){return e.selectAction()}),this.renderLabel(),this.renderCount(),this.toggleButtonStates(),i.$$("li",{dataValue:this.facetValue.value},this.button).el},e.prototype.renderLabel=function(){var e=i.$$("span",{className:"coveo-dynamic-hierarchical-facet-value-label",title:this.facetValue.displayValue});e.text(this.facetValue.displayValue),this.button.append(e.el)},e.prototype.renderCount=function(){var e=i.$$("span",{className:"coveo-dynamic-hierarchical-facet-value-count"},"("+this.facetValue.formattedCount+")");this.button.append(e.el)},e.prototype.toggleButtonStates=function(){this.button.toggleClass("coveo-selected",this.facetValue.isSelected),this.button.toggleClass("coveo-with-space",this.shouldHaveMargin),this.button.toggleClass("coveo-show-when-collapsed",this.shouldShowWhenCollapsed),this.facetValue.isSelected&&this.button.setAttribute("disabled","true"),this.shouldHaveBackArrow&&this.prependBackArrow(),this.shouldHaveForwardArrow&&this.appendForwardArrow()},e.prototype.prependBackArrow=function(){var e=i.$$("div",{className:"coveo-dynamic-hierarchical-facet-value-arrow-left"},o.SVGIcons.icons.arrowDown);this.button.prepend(e.el)},e.prototype.appendForwardArrow=function(){var e=i.$$("div",{className:"coveo-dynamic-hierarchical-facet-value-arrow-right"},o.SVGIcons.icons.arrowDown);this.button.append(e.el)},Object.defineProperty(e.prototype,"shouldHaveMargin",{get:function(){return!this.facetValue.isSelected&&this.facetValue.path.length>1&&!this.facetValue.children.length},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"shouldHaveBackArrow",{get:function(){return this.facet.values.hasSelectedValue&&!this.facetValue.isSelected&&!!this.facetValue.children.length},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"shouldHaveForwardArrow",{get:function(){return!this.facetValue.isLeafValue&&!this.facetValue.isSelected&&!this.facetValue.children.length},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"shouldShowWhenCollapsed",{get:function(){var e=r.Utils.arrayEqual(this.facetValue.path,this.facet.values.selectedPath.slice(0,-1));return this.facetValue.isSelected||e},enumerable:!0,configurable:!0}),e.prototype.selectAction=function(){var e=this;this.facet.selectPath(this.facetValue.path),this.facet.enableFreezeFacetOrderFlag(),this.facet.enablePreventAutoSelectionFlag(),this.facet.scrollToTop(),this.facet.triggerNewQuery(function(){return e.facetValue.logSelectActionToAnalytics()})},e}();t.DynamicHierarchicalFacetValueRenderer=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(687),o=n(512),r=n(6),s=n(689);n(513),n(691);var a=function(){function e(e){this.facet=e,this.hierarchicalFacetSearchController=new i.HierarchicalFacetSearchController(e),this.element=this.build()}return e.prototype.build=function(){var e=this;return this.combobox=new o.Combobox({label:r.l("SearchFacetResults",this.facet.options.title),ariaLive:this.facet.searchInterface.ariaLive,requestValues:function(t){return e.hierarchicalFacetSearchController.search(t)},createValuesFromResponse:function(t){return e.createValuesFromResponse(t)},onSelectValue:this.onSelectValue,placeholderText:r.l("Search"),wrapperClassName:"coveo-dynamic-facet-search",clearOnBlur:!0,scrollable:{requestMoreValues:function(){return e.hierarchicalFacetSearchController.fetchMoreResults()},areMoreValuesAvailable:function(){return e.hierarchicalFacetSearchController.moreValuesAvailable},maxDropdownHeight:250},highlightValueClassName:"coveo-dynamic-hierarchical-facet-search-value-label"}),this.combobox.element},e.prototype.getDisplayValue=function(e){return this.facet.options.valueCaption[e]||e},e.prototype.createValuesFromResponse=function(e){var t=this;return e.values.map(function(e){var n=new s.DynamicHierarchicalFacetSearchValue({fullPath:e.path.concat([e.rawValue]),displayValue:t.getDisplayValue(e.displayValue),numberOfResults:e.count},t.facet);return{value:n,element:n.renderedElement}})},e.prototype.onSelectValue=function(e){e.value.renderer.selectAction()},e}();t.DynamicHierarchicalFacetSearch=a},function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))(function(o,r){function s(e){try{u(i.next(e))}catch(e){r(e)}}function a(e){try{u(i.throw(e))}catch(e){r(e)}}function u(e){e.done?o(e.value):new n(function(t){t(e.value)}).then(s,a)}u((i=i.apply(e,t||[])).next())})},o=this&&this.__generator||function(e,t){function n(e){return function(t){return i([e,t])}}function i(n){if(o)throw new TypeError("Generator is already executing.");for(;u;)try{if(o=1,r&&(s=r[2&n[0]?"return":n[0]?"throw":"next"])&&!(s=s.call(r,n[1])).done)return s;switch(r=0,s&&(n=[0,s.value]),n[0]){case 0:case 1:s=n;break;case 4:return u.label++,{value:n[1],done:!1};case 5:u.label++,r=n[1],n=[0];continue;case 7:n=u.ops.pop(),u.trys.pop();continue;default:if(s=u.trys,!(s=s.length>0&&s[s.length-1])&&(6===n[0]||2===n[0])){u=0;continue}if(3===n[0]&&(!s||n[1]>s[0]&&n[1]<s[3])){u.label=n[1];break}if(6===n[0]&&u.label<s[1]){u.label=s[1],s=n;break}if(s&&u.label<s[2]){u.label=s[2],u.ops.push(n);break}s[2]&&u.ops.pop(),u.trys.pop();continue}n=t.call(e,u)}catch(e){n=[6,e],r=0}finally{o=s=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}var o,r,s,a,u={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return a={next:n(0),throw:n(1),return:n(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a};Object.defineProperty(t,"__esModule",{value:!0});var r=n(688),s=n(0),a=function(){function e(e){this.facet=e,this.terms="",this.pageCount=1,this.numberOfValuesMultiplier=2,this.moreValuesAvailable=!0}return Object.defineProperty(e.prototype,"ignoredPaths",{get:function(){return[s.flatten(this.facet.values.selectedPath,!0)]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"numberOfValues",{get:function(){return this.facet.options.numberOfValues*this.numberOfValuesMultiplier*this.pageCount},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"request",{get:function(){return{field:this.facet.fieldName,type:r.FacetSearchType.hierarchical,numberOfValues:this.numberOfValues,ignorePaths:this.ignoredPaths,basePath:this.facet.options.basePath,captions:this.facet.options.valueCaption,searchContext:this.facet.queryController.getLastQuery(),delimitingCharacter:this.facet.options.delimitingCharacter,query:this.terms.length?"*"+this.terms+"*":"*"}},enumerable:!0,configurable:!0}),e.prototype.triggerRequest=function(){return i(this,void 0,void 0,function(){var e;return o(this,function(t){switch(t.label){case 0:return[4,this.facet.queryController.getEndpoint().facetSearch(this.request)];case 1:return e=t.sent(),this.moreValuesAvailable=e.moreValuesAvailable,[2,e]}})})},e.prototype.search=function(e){return this.terms=e,this.pageCount=1,this.triggerRequest()},e.prototype.fetchMoreResults=function(){return this.pageCount++,this.triggerRequest()},e}();t.HierarchicalFacetSearchController=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});!function(e){e.specific="specific",e.hierarchical="hierarchical"}(t.FacetSearchType||(t.FacetSearchType={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(690),o=n(10),r=function(){function e(e,t){this.facetValue=e,this.facet=t,this.renderer=new i.DynamicHierarchicalFacetSearchValueRenderer(this,t)}return Object.defineProperty(e.prototype,"fullPath",{get:function(){return this.facetValue.fullPath},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"displayValue",{get:function(){return this.facetValue.displayValue},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"numberOfResults",{get:function(){return this.facetValue.numberOfResults},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"renderedElement",{get:function(){return this.element?this.element:this.render()},enumerable:!0,configurable:!0}),e.prototype.logSelectActionToAnalytics=function(){this.facet.logAnalyticsEvent(o.analyticsActionCauseList.dynamicFacetSelect)},e.prototype.render=function(){return this.element=this.renderer.render(),this.element},e}();t.DynamicHierarchicalFacetSearchValue=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=n(6),r="coveo-dynamic-hierarchical-facet-search-value",s=r+"-header",a=r+"-label",u=r+"-results-count",l=r+"-path";t.DynamicHierarchicalFacetSearchValueRendererClassNames={VALUE_CLASSNAME:r,HEADER_CLASSNAME:s,LABEL_CLASSNAME:a,COUNT_CLASSNAME:u,PATH_CLASSNAME:l,PATH_ELLIPSIS_CLASSNAME:"coveo-dynamic-hierarchical-facet-search-value-path-ellipsis",PATH_PREFIX_CLASSNAME:"coveo-dynamic-hierarchical-facet-search-value-path-prefix",PATH_PART_CLASSNAME:"coveo-dynamic-hierarchical-facet-search-value-path-part",PATH_SEPARATOR_CLASSNAME:"coveo-dynamic-hierarchical-facet-search-value-path-separator"};var c=function(){function e(e,t){this.facetValue=e,this.facet=t}return Object.defineProperty(e.prototype,"pathToRender",{get:function(){var e=this.facetValue.fullPath.slice(0,-1);return e.length?e.length>3?{start:e.slice(0,1),end:e.slice(-2)}:{start:e}:{start:[o.l("AllCategories")]}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"label",{get:function(){var e=this.pathToRender,t=e.start,n=e.end,i=o.l("ResultCount",this.facetValue.numberOfResults,this.facetValue.numberOfResults);return o.l("HierarchicalFacetValueIndentedUnder",this.facetValue.displayValue+" "+i,t.concat(n||[]).join(", "))},enumerable:!0,configurable:!0}),e.prototype.render=function(){return i.$$("div",{className:r,ariaLabel:this.label},this.renderHeader(),this.renderPath()).el},e.prototype.selectAction=function(){var e=this;this.facet.selectPath(this.facetValue.fullPath),this.facet.enableFreezeFacetOrderFlag(),this.facet.enablePreventAutoSelectionFlag(),this.facet.scrollToTop(),this.facet.triggerNewQuery(function(){return e.facetValue.logSelectActionToAnalytics()})},e.prototype.renderHeader=function(){return i.$$("header",{className:s,ariaHidden:!0},this.renderLabel(),this.renderResultsCount())},e.prototype.renderLabel=function(){return i.$$("span",{className:a},this.facetValue.displayValue)},e.prototype.renderResultsCount=function(){var e=i.$$("span",{className:u});return e.text("("+this.facetValue.numberOfResults+")"),e},e.prototype.renderPath=function(){var e=this,t=i.$$("ul",{className:l,ariaHidden:!0},this.renderPathPrefix()),n=this.pathToRender,o=n.start,r=n.end;return o.forEach(function(n,i){i>0&&t.append(e.renderPathSeparator().el),t.append(e.renderPathPart(n).el)}),r&&(t.append(this.renderPathSeparator().el),t.append(this.renderEllipsis().el),r.forEach(function(n){t.append(e.renderPathSeparator().el),t.append(e.renderPathPart(n).el)})),t},e.prototype.renderPathPrefix=function(){var e=i.$$("li",{className:"coveo-dynamic-hierarchical-facet-search-value-path-prefix"});return e.text(o.l("HierarchicalFacetValuePathPrefix")+" "),e},e.prototype.renderEllipsis=function(){return i.$$("li",{className:"coveo-dynamic-hierarchical-facet-search-value-path-ellipsis"},"...")},e.prototype.renderPathPart=function(e){var t=i.$$("li",{className:"coveo-dynamic-hierarchical-facet-search-value-path-part"});return t.text(e),t},e.prototype.renderPathSeparator=function(){return i.$$("span",{className:"coveo-dynamic-hierarchical-facet-search-value-path-separator",role:"separator"},"/")},e}();t.DynamicHierarchicalFacetSearchValueRenderer=c},function(e,t){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(223),o=n(71),r=n(693),s=n(517),a=function(){function e(e){this.facet=e,this.parser=new r.DynamicFacetRangeValueParser(this.facet)}return e.prototype.getDefaultValues=function(){var e=this;return this.facet.options.ranges.map(function(t,n){return e.createFromRange(t,n)}).filter(function(e){return!!e})},e.prototype.createFromRange=function(e,t){var n=this.parser.validate(e);if(!n)return this.facet.logger.error("Unvalid range for "+this.facet.options.valueFormat+" format",e),null;var r=n.label?n.label:this.parser.formatDisplayValue(n);return new i.DynamicFacetValue({displayValue:r,value:this.parser.formatValue(n),start:n.start,end:n.end,endInclusive:!!n.endInclusive,numberOfResults:0,state:o.FacetValueState.idle,position:t+1},this.facet,s.DynamicFacetValueRenderer)},e.prototype.createFromResponse=function(e,t){var n=this.parser.formatValue(e),o=this.facet.values.get(n).displayValue;return new i.DynamicFacetValue({state:e.state,numberOfResults:e.numberOfResults,start:e.start,end:e.end,endInclusive:e.endInclusive,value:n,displayValue:o,position:t+1},this.facet,s.DynamicFacetValueRenderer)},e.prototype.createFromValue=function(e){var t=this.parser.parse(e);return t?this.createFromRange(t,this.facet.values.allFacetValues.length):(this.facet.logger.error("Facet range value invalid",e),null)},e}();t.DynamicFacetRangeValueCreator=a},function(e,t,n){"use strict";var i=this&&this.__assign||Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e};Object.defineProperty(t,"__esModule",{value:!0});var o=n(23),r=n(694),s=n(695),a=n(526),u=n(33),l=n(525),c=n(9),p=n(20),d=function(){function e(e){this.facet=e}return Object.defineProperty(e.prototype,"valueFormat",{get:function(){return this.facet.options.valueFormat},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"valueSeparator",{get:function(){return this.facet.options.valueSeparator},enumerable:!0,configurable:!0}),e.prototype.parseDateFromRangeType=function(e){var t=u.DateUtils.convertToStandardDate(e);return u.DateUtils.isValid(t)?t:(new c.Logger(this).warn("Date value is not valid",e),null)},e.prototype.formatDisplayValueFromLimit=function(e){switch(this.valueFormat){case l.DynamicFacetRangeValueFormat.number:var t=s.NumberUtils.countDecimals(""+e);return o.format(e,"n"+t);case l.DynamicFacetRangeValueFormat.currency:return p.CurrencyUtils.currencyToString(parseFloat(""+e),{symbol:this.facet.options.currencySymbol,decimals:s.NumberUtils.countDecimals(""+e)?2:0});case l.DynamicFacetRangeValueFormat.date:return u.DateUtils.dateToString(this.parseDateFromRangeType(e),{alwaysIncludeTime:!1,includeTimeIfThisWeek:!1,includeTimeIfToday:!1,omitYearIfCurrentOne:!1,useTodayYesterdayAndTomorrow:!1,useWeekdayIfThisWeek:!1});default:return""+e}},e.prototype.formatDisplayValue=function(e){var t=this.formatDisplayValueFromLimit(e.start),n=this.formatDisplayValueFromLimit(e.end);return t+" "+this.valueSeparator+" "+n},e.prototype.validateRangeLimit=function(e){switch(this.valueFormat){case l.DynamicFacetRangeValueFormat.number:case l.DynamicFacetRangeValueFormat.currency:return this.validateNumberValue(e);case l.DynamicFacetRangeValueFormat.date:return this.validateDateValue(e);default:return""+e}},e.prototype.validateNumberValue=function(e){var t=parseFloat(""+e);return isNaN(t)?null:t},e.prototype.validateDateValue=function(e){var t=u.DateUtils.dateTimeForQuery(this.parseDateFromRangeType(e));return"Invalid date"===t?null:t},e.prototype.validate=function(e){var t=this.validateRangeLimit(e.start),n=this.validateRangeLimit(e.end);return a.isNull(t)||a.isNull(n)?null:i({},e,{start:t,end:n})},e.prototype.formatValue=function(e){var t=e.endInclusive?r.RangeEndScope.Inclusive:r.RangeEndScope.Exclusive;return e.start+".."+e.end+t},e.prototype.parse=function(e){var t=new RegExp("^(.+)\\.\\.(.+)("+r.RangeEndScope.Inclusive+"|"+r.RangeEndScope.Exclusive+")$"),n=t.exec(e);if(!n)return null;var i=this.validateRangeLimit(n[1]),o=this.validateRangeLimit(n[2]);return a.isNull(i)||a.isNull(o)?null:{start:i,end:o,endInclusive:n[3]===r.RangeEndScope.Inclusive}},e}();t.DynamicFacetRangeValueParser=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});!function(e){e.Inclusive="inc",e.Exclusive="exc"}(t.RangeEndScope||(t.RangeEndScope={}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(526),o=function(){function e(){}return e.countDecimals=function(e){var t=/^\d+\.?([\d]*)$/.exec(""+e);return i.isNull(t)?0:t[1].length},e}();t.NumberUtils=o},function(e,t){e.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},function(e,t,n){"use strict";var i=this&&this.__extends||function(){var e=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])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),o=this&&this.__assign||Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e};Object.defineProperty(t,"__esModule",{value:!0});var r=n(516),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.prototype.buildFacetRequest=function(e){return o({},this.requestBuilder.buildBaseRequestForQuery(e),{currentValues:this.currentValues,numberOfValues:this.numberOfValues,freezeCurrentValues:!1,sortCriteria:this.facet.options.sortOrder,generateAutomaticRanges:!this.manualRangesAreDefined})},Object.defineProperty(t.prototype,"numberOfValues",{get:function(){return this.manualRangesAreDefined?this.facet.options.ranges.length:this.facet.options.numberOfValues},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"manualRangesAreDefined",{get:function(){return!!this.facet.options.ranges.length},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"currentValues",{get:function(){return this.manualRangesAreDefined||this.facet.hasActiveValues?this.facet.values.allFacetValues.map(function(e){return{start:e.start,end:e.end,endInclusive:e.endInclusive,state:e.state}}):[]},enumerable:!0,configurable:!0}),t}(r.DynamicFacetQueryController);t.DynamicFacetRangeQueryController=s},function(e,t,n){"use strict";function i(e){return!!o[e]}Object.defineProperty(t,"__esModule",{value:!0});var o;!function(e){e.ascending="ascending",e.descending="descending"}(o=t.FacetRangeSortOrder||(t.FacetRangeSortOrder={})),t.isFacetRangeSortOrder=i},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){"use strict";var i=this&&this.__assign||Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e};Object.defineProperty(t,"__esModule",{value:!0});var o,r=n(1),s=n(6),a=n(12),u=n(0),l="coveo-user-feedback-banner",c=l+"-label",p=l+"-button-active",d="coveo-user-feedback-banner-thanks-icon";!function(e){e[e.Unknown=0]="Unknown",e[e.Yes=1]="Yes",e[e.No=2]="No"}(o||(o={})),t.UserFeedbackBannerClassNames={ROOT_CLASSNAME:l,CONTAINER_CLASSNAME:"coveo-user-feedback-banner-container",LABEL_CLASSNAME:c,BUTTONS_CONTAINER_CLASSNAME:"coveo-user-feedback-banner-buttons",YES_BUTTON_CLASSNAME:"coveo-user-feedback-banner-yes-button",NO_BUTTON_CLASSNAME:"coveo-user-feedback-banner-no-button",BUTTON_ACTIVE_CLASSNAME:p,THANK_YOU_BANNER_CLASSNAME:"coveo-user-feedback-banner-thanks",THANK_YOU_BANNER_ACTIVE_CLASSNAME:"coveo-user-feedback-banner-thanks-active",ICON_CLASSNAME:d,EXPLAIN_WHY_CLASSNAME:"coveo-user-feedback-banner-explain-why",EXPLAIN_WHY_ACTIVE_CLASSNAME:"coveo-user-feedback-banner-explain-why-active"};var h=function(){function e(e,t){this.sendUsefulnessAnalytics=e,this.onExplainWhyPressed=t,this.isUseful=o.Unknown,this.labelId=u.uniqueId(c)}return e.prototype.build=function(){return r.$$("div",{className:l,ariaLive:"polite"},this.buildContainer(),this.buildThankYouBanner()).el},e.prototype.reset=function(){this.isUseful=o.Unknown,r.$$(this.yesButton).removeClass(p),r.$$(this.yesButton).setAttribute("aria-pressed","false"),r.$$(this.noButton).removeClass(p),r.$$(this.noButton).setAttribute("aria-pressed","false"),r.$$(this.thankYouBanner).removeClass("coveo-user-feedback-banner-thanks-active"),r.$$(this.explainWhy).removeClass("coveo-user-feedback-banner-explain-why-active")},e.prototype.buildContainer=function(){return r.$$("div",{className:"coveo-user-feedback-banner-container",ariaLabelledby:this.labelId},this.buildLabel(),this.buildButtons()).el},e.prototype.buildLabel=function(){return r.$$("span",{className:c,id:this.labelId},s.l("UsefulnessFeedbackRequest")).el},e.prototype.buildThankYouBanner=function(){var e=this;this.thankYouBanner=r.$$("div",{className:"coveo-user-feedback-banner-thanks"}).el;var t=r.$$("span",{},s.l("UsefulnessFeedbackThankYou")).el;return this.thankYouBanner.appendChild(t),this.explainWhy=this.buildButton({text:s.l("UsefulnessFeedbackExplainWhy"),className:"coveo-user-feedback-banner-explain-why",action:function(){return e.requestExplaination()}}),this.thankYouBanner.appendChild(this.explainWhy),this.thankYouBanner},e.prototype.buildButtons=function(){var e=this,t=r.$$("div",{className:"coveo-user-feedback-banner-buttons"}).el;return this.yesButton=this.buildButton({text:s.l("Yes"),className:"coveo-user-feedback-banner-yes-button",action:function(){return e.showThankYouBanner(!0)},icon:{className:d,content:a.SVGIcons.icons.checkYes},attributes:{ariaPressed:!1,ariaDescribedby:this.labelId}}),this.yesButton.setAttribute("aria-pressed","false"),t.appendChild(this.yesButton),this.noButton=this.buildButton({text:s.l("No"),className:"coveo-user-feedback-banner-no-button",action:function(){return e.showThankYouBanner(!1)},icon:{className:d,content:a.SVGIcons.icons.clearSmall},attributes:{ariaPressed:!1,ariaDescribedby:this.labelId}}),t.appendChild(this.noButton),t},e.prototype.buildButton=function(e){var t=r.$$("button",i({},e.attributes||{},{className:e.className})).el;if(e.icon){var n=r.$$("span",{className:e.icon.className},e.icon.content).el;t.appendChild(n);var o=r.$$("span",{},e.text).el;t.appendChild(o)}else t.innerText=e.text;return t.addEventListener("click",function(){return e.action()}),t},e.prototype.showThankYouBanner=function(e){this.isUseful!==o.Unknown&&e===(this.isUseful===o.Yes)||(this.isUseful=e?o.Yes:o.No,r.$$(this.yesButton).toggleClass(p,e),r.$$(this.yesButton).setAttribute("aria-pressed",""+e),r.$$(this.noButton).toggleClass(p,!e),r.$$(this.noButton).setAttribute("aria-pressed",""+!e),r.$$(this.thankYouBanner).addClass("coveo-user-feedback-banner-thanks-active"),r.$$(this.explainWhy).toggleClass("coveo-user-feedback-banner-explain-why-active",!e),this.sendUsefulnessAnalytics(e))},e.prototype.requestExplaination=function(){this.onExplainWhyPressed()},e}();t.UserFeedbackBanner=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=n(12),r=n(6),s="coveo-height-limiter-button";t.HeightLimiterClassNames={CONTAINER_ACTIVE_CLASSNAME:"coveo-height-limiter-container-active",CONTAINER_EXPANDED_CLASSNAME:"coveo-height-limiter-container-expanded",BUTTON_CLASSNAME:s,BUTTON_LABEL_CLASSNAME:"coveo-height-limiter-button-label",BUTTON_ICON_CLASSNAME:"coveo-height-limiter-button-icon",BUTTON_ACTIVE_CLASSNAME:"coveo-height-limiter-button-active"};var a=function(){function e(e,t,n,i){this.containerElement=e,this.contentElement=t,this.heightLimit=n,this.onToggle=i,this.isExpanded=!1,this.buildButton(),this.updateActiveAppearance()}return Object.defineProperty(e.prototype,"toggleButton",{get:function(){return this.button},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"height",{set:function(e){this.containerElement.style.height=e+"px"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"contentHeight",{get:function(){return this.contentElement.clientHeight},enumerable:!0,configurable:!0}),e.prototype.onContentHeightChanged=function(){this.updateActiveAppearance()},e.prototype.buildButton=function(){var e=this;return this.button=i.$$("button",{className:s,ariaLabel:r.l("ShowMore"),ariaPressed:"false",ariaHidden:"true"},this.buttonLabel=i.$$("span",{className:"coveo-height-limiter-button-label"}).el,this.buttonIcon=i.$$("span",{className:"coveo-height-limiter-button-icon"}).el).el,this.button.addEventListener("click",function(){return e.toggle()}),this.updateButton(),this.button},e.prototype.updateActiveAppearance=function(){var e=this.contentHeight>this.heightLimit;i.$$(this.containerElement).toggleClass("coveo-height-limiter-container-active",e),i.$$(this.button).toggleClass("coveo-height-limiter-button-active",e),e?this.updateExpandedAppearance():(this.isExpanded=!1,this.updateExpandedAppearance(),this.containerElement.style.height="")},e.prototype.updateButton=function(){this.buttonLabel.innerText=this.isExpanded?r.l("ShowLess"):r.l("ShowMore"),this.button.setAttribute("aria-pressed",""+this.isExpanded),this.buttonIcon.innerHTML=this.isExpanded?o.SVGIcons.icons.arrowUp:o.SVGIcons.icons.arrowDown},e.prototype.updateExpandedAppearance=function(){this.updateButton(),i.$$(this.containerElement).toggleClass("coveo-height-limiter-container-expanded",this.isExpanded),this.height=this.isExpanded?this.contentHeight:this.heightLimit},e.prototype.toggle=function(){this.isExpanded=!this.isExpanded,this.updateExpandedAppearance(),this.onToggle&&this.onToggle(this.isExpanded)},e}();t.HeightLimiter=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(220),o=n(6),r=n(1),s=n(95);n(707);var a="coveo-user-explanation-modal",u=a+"-content",l=a+"-explanation-section",c=a+"-explanations",p=c+"-label",d=a+"-details",h=d+"-textarea",f=d+"-label",m=a+"-buttons-section",y=a+"-send-button",g=a+"-cancel-button",v=d;t.ExplanationModalClassNames={ROOT_CLASSNAME:a,CONTENT_CLASSNAME:u,EXPLANATION_SECTION_CLASSNAME:l,REASONS_CLASSNAME:c,REASONS_LABEL_CLASSNAME:p,DETAILS_SECTION_CLASSNAME:d,DETAILS_TEXTAREA_CLASSNAME:h,DETAILS_LABEL_CLASSNAME:f,BUTTONS_SECTION_CLASSNAME:m,SEND_BUTTON_CLASSNAME:y,CANCEL_BUTTON_CLASSNAME:g};var b=function(){function e(e){this.options=e,this.shouldCallCloseEvent=!1,this.modal=new i.AccessibleModal(a,this.options.ownerElement,this.options.modalBoxModule)}return Object.defineProperty(e.prototype,"details",{get:function(){return this.selectedReason&&this.selectedReason.hasDetails?this.detailsTextArea.value:null},enumerable:!0,configurable:!0}),e.prototype.open=function(e){var t=this;this.modal.open({origin:e,title:o.l("UsefulnessFeedbackExplainWhyImperative"),content:this.buildContent(),validation:function(){return t.shouldCallCloseEvent&&(t.options.onClosed(),t.shouldCallCloseEvent=!1),!0}}),this.shouldCallCloseEvent=!0},e.prototype.buildContent=function(){return r.$$("div",{className:u},this.buildExplanationSection(),this.buildButtonsSection()).el},e.prototype.buildExplanationSection=function(){var e=this.buildDetailsSection();return r.$$("div",{className:l},this.buildReasons(),e).el},e.prototype.buildButtonsSection=function(){return r.$$("div",{className:m},this.buildSendButton(),this.buildCancelButton())},e.prototype.buildReasons=function(){var e=this,t=r.$$("fieldset",{className:c},this.buildReasonsLabel()).el;return this.reasons=this.options.reasons.map(function(t){return e.buildReasonRadioButton(t)}),this.reasons[0].select(),this.reasons.forEach(function(e){return t.appendChild(e.getElement())}),t},e.prototype.buildReasonsLabel=function(){return r.$$("legend",{className:p},o.l("UsefulnessFeedbackReason")).el},e.prototype.buildDetailsSection=function(){return this.detailsSection=r.$$("div",{className:"coveo-hidden "+d},r.$$("label",{className:f,for:v},o.l("Details")).el,this.detailsTextArea=r.$$("textarea",{className:h,id:v,disabled:!0}).el)},e.prototype.buildSendButton=function(){var e=this,t=r.$$("button",{className:y},o.l("Send"));return t.on("click",function(){e.selectedReason.onSelect(),e.shouldCallCloseEvent=!1,e.modal.close()}),t.el},e.prototype.buildCancelButton=function(){var e=this,t=r.$$("button",{className:g},o.l("Cancel"));return t.on("click",function(){return e.modal.close()}),t.el},e.prototype.buildReasonRadioButton=function(e){var t=this;return new s.RadioButton(function(n){n.isSelected()&&(t.detailsSection.toggleClass("coveo-hidden",!e.hasDetails),t.detailsTextArea.disabled=!e.hasDetails,t.selectedReason=e)},e.label,"reason","coveo-reason-"+e.id)},e}();t.ExplanationModal=b},function(e,t){},function(e,t){},function(e,t,n){"use strict";var i=this&&this.__assign||Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e};Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),r=n(17),s=n(12),a=n(521),u=n(1),l=n(6),c=n(10),p=n(70),d=n(4),h="coveo-smart-snippet-suggestions-question",f=h+"-title",m=f+"-label",y=f+"-checkbox",g=h+"-snippet",v=g+"-container",b=g+"-hidden",S=g+"-content",C=S+"-raw",w=h+"-source";t.SmartSnippetCollapsibleSuggestionClassNames={QUESTION_CLASSNAME:h,QUESTION_TITLE_CLASSNAME:f,QUESTION_TITLE_LABEL_CLASSNAME:m,QUESTION_TITLE_CHECKBOX_CLASSNAME:y,QUESTION_SNIPPET_CLASSNAME:g,QUESTION_SNIPPET_CONTAINER_CLASSNAME:v,QUESTION_SNIPPET_HIDDEN_CLASSNAME:b,SHADOW_CLASSNAME:S,RAW_CONTENT_CLASSNAME:C,SOURCE_CLASSNAME:w,SOURCE_TITLE_CLASSNAME:"coveo-smart-snippet-suggestions-question-source-title",SOURCE_URL_CLASSNAME:"coveo-smart-snippet-suggestions-question-source-url"};var _=function(){function e(e,t,n,i,r,s){this.questionAnswer=e,this.bindings=t,this.innerCSS=n,this.searchUid=i,this.source=r,this.useIFrame=s,this.labelId=o.uniqueId(m),this.snippetId=o.uniqueId(g),this.checkboxId=o.uniqueId(y),this.expanded=!1}return Object.defineProperty(e.prototype,"loading",{get:function(){return this.contentLoaded},enumerable:!0,configurable:!0}),e.prototype.build=function(){var e=this.buildCollapsibleContainer(this.questionAnswer.answerSnippet,this.questionAnswer.question,this.buildStyle(this.innerCSS)),t=this.buildTitle(this.questionAnswer.question);return this.updateExpanded(),u.$$("li",{className:h,ariaLabelledby:this.labelId},t,e).el},e.prototype.buildStyle=function(e){var t=document.createElement("style");return t.innerHTML=e,t},e.prototype.buildTitle=function(e){var t=this,n=this.buildCheckbox(e),i=u.$$("span",{className:m,id:this.labelId});i.text(e);var o=u.$$("span",{className:f},i,n);return o.on("click",function(){return t.toggle()}),o},e.prototype.buildCheckbox=function(e){var t=this;return this.checkbox=u.$$("div",{role:"button",tabindex:0,ariaControls:this.snippetId,className:y,id:this.checkboxId}),(new r.AccessibleButton).withElement(this.checkbox).withLabel(l.l("ExpandQuestionAnswer",e)).withEnterKeyboardAction(function(){return t.toggle()}).build(),this.checkbox},e.prototype.buildCollapsibleContainer=function(e,t,n){var i=this,o=u.$$("div",{className:S});return this.snippetAndSourceContainer=u.$$("div",{className:v},o),this.collapsibleContainer=u.$$("div",{className:g,id:this.snippetId},this.snippetAndSourceContainer),this.contentLoaded=a.attachShadow(o.el,{mode:"open",title:l.l("AnswerSpecificSnippet",t),useIFrame:this.useIFrame}).then(function(t){t.appendChild(i.buildAnswerSnippetContent(e,n).el)}),this.source&&(this.snippetAndSourceContainer.append(this.buildSourceUrl()),this.snippetAndSourceContainer.append(this.buildSourceTitle())),this.collapsibleContainer},e.prototype.buildAnswerSnippetContent=function(e,t){var n=u.$$("div",{className:C},e),i=u.$$("div",{},n);return i.append(t),i},e.prototype.buildSourceTitle=function(){return this.buildLink(this.source.title,"coveo-smart-snippet-suggestions-question-source-title")},e.prototype.buildSourceUrl=function(){return this.buildLink(this.source.clickUri,"coveo-smart-snippet-suggestions-question-source-url")},e.prototype.buildLink=function(e,t){var n=this,o=u.$$("a",{className:"CoveoResultLink "+t}).el;return o.innerText=e,new p.ResultLink(o,{logAnalytics:function(e){return n.sendOpenSourceAnalytics(o,e)}},i({},this.bindings,{resultElement:this.collapsibleContainer.el}),this.source),o},e.prototype.toggle=function(){this.expanded=!this.expanded,this.updateExpanded(),this.expanded?this.sendExpandAnalytics():this.sendCollapseAnalytics()},e.prototype.updateExpanded=function(){this.checkbox.setAttribute("aria-expanded",this.expanded.toString()),this.checkbox.setHtml(this.expanded?s.SVGIcons.icons.arrowUp:s.SVGIcons.icons.arrowDown),this.collapsibleContainer.setAttribute("tabindex",""+(this.expanded?0:-1)),this.collapsibleContainer.setAttribute("aria-hidden",(!this.expanded).toString()),this.collapsibleContainer.toggleClass(b,!this.expanded),this.collapsibleContainer.el.style.height=this.expanded?this.snippetAndSourceContainer.el.clientHeight+"px":"0px"},e.prototype.sendExpandAnalytics=function(){return this.bindings.usageAnalytics.logCustomEvent(c.analyticsActionCauseList.expandSmartSnippetSuggestion,{searchQueryUid:this.searchUid,documentId:this.questionAnswer.documentId},this.checkbox.el)},e.prototype.sendCollapseAnalytics=function(){return this.bindings.usageAnalytics.logCustomEvent(c.analyticsActionCauseList.collapseSmartSnippetSuggestion,{searchQueryUid:this.searchUid,documentId:this.questionAnswer.documentId},this.checkbox.el)},e.prototype.sendOpenSourceAnalytics=function(e,t){return this.bindings.usageAnalytics.logClickEvent(c.analyticsActionCauseList.openSmartSnippetSuggestionSource,{searchQueryUid:this.searchUid,documentTitle:this.source.title,author:d.Utils.getFieldValue(this.source,"author"),documentURL:t,documentId:this.questionAnswer.documentId},this.source,e)},e}();t.SmartSnippetCollapsibleSuggestion=_},function(e,t){e.exports=function(){var e=[];return e.toString=function(){for(var e=[],t=0;t<this.length;t++){var n=this[t];n[2]?e.push("@media "+n[2]+"{"+n[1]+"}"):e.push(n[1])}return e.join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var i={},o=0;o<this.length;o++){var r=this[o][0];"number"==typeof r&&(i[r]=!0)}for(o=0;o<t.length;o++){var s=t[o];"number"==typeof s[0]&&i[s[0]]||(n&&!s[2]?s[2]=n:n&&(s[2]="("+s[2]+") and ("+n+")"),e.push(s))}},e}},function(e,t,n){function i(e,t){for(var n=0;n<e.length;n++){var i=e[n],o=f[i.id];if(o){o.refs++;for(var r=0;r<o.parts.length;r++)o.parts[r](i.parts[r]);for(;r<i.parts.length;r++)o.parts.push(c(i.parts[r],t))}else{for(var s=[],r=0;r<i.parts.length;r++)s.push(c(i.parts[r],t));f[i.id]={id:i.id,refs:1,parts:s}}}}function o(e,t){for(var n=[],i={},o=0;o<e.length;o++){var r=e[o],s=t.base?r[0]+t.base:r[0],a=r[1],u=r[2],l=r[3],c={css:a,media:u,sourceMap:l};i[s]?i[s].parts.push(c):n.push(i[s]={id:s,parts:[c]})}return n}function r(e,t){var n=y(e.insertInto);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var i=b[b.length-1];if("top"===e.insertAt)i?i.nextSibling?n.insertBefore(t,i.nextSibling):n.appendChild(t):n.insertBefore(t,n.firstChild),b.push(t);else if("bottom"===e.insertAt)n.appendChild(t);else{if("object"!=typeof e.insertAt||!e.insertAt.before)throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");var o=y(e.insertInto+" "+e.insertAt.before);n.insertBefore(t,o)}}function s(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e);var t=b.indexOf(e);t>=0&&b.splice(t,1)}function a(e){var t=document.createElement("style");return e.attrs.type="text/css",l(t,e.attrs),r(e,t),t}function u(e){var t=document.createElement("link");return e.attrs.type="text/css",e.attrs.rel="stylesheet",l(t,e.attrs),r(e,t),t}function l(e,t){Object.keys(t).forEach(function(n){e.setAttribute(n,t[n])})}function c(e,t){var n,i,o,r;if(t.transform&&e.css){if(!(r=t.transform(e.css)))return function(){};e.css=r}if(t.singleton){var l=v++;n=g||(g=a(t)),i=p.bind(null,n,l,!1),o=p.bind(null,n,l,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=u(t),i=h.bind(null,n,t),o=function(){s(n),n.href&&URL.revokeObjectURL(n.href)}):(n=a(t),i=d.bind(null,n),o=function(){s(n)});return i(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;i(e=t)}else o()}}function p(e,t,n,i){var o=n?"":i.css;if(e.styleSheet)e.styleSheet.cssText=C(t,o);else{var r=document.createTextNode(o),s=e.childNodes;s[t]&&e.removeChild(s[t]),s.length?e.insertBefore(r,s[t]):e.appendChild(r)}}function d(e,t){var n=t.css,i=t.media;if(i&&e.setAttribute("media",i),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}function h(e,t,n){var i=n.css,o=n.sourceMap,r=void 0===t.convertToAbsoluteUrls&&o;(t.convertToAbsoluteUrls||r)&&(i=S(i)),o&&(i+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */");var s=new Blob([i],{type:"text/css"}),a=e.href;e.href=URL.createObjectURL(s),a&&URL.revokeObjectURL(a)}var f={},m=function(e){var t;return function(){return void 0===t&&(t=e.apply(this,arguments)),t}}(function(){return window&&document&&document.all&&!window.atob}),y=function(e){var t={};return function(n){if(void 0===t[n]){var i=e.call(this,n);if(i instanceof window.HTMLIFrameElement)try{i=i.contentDocument.head}catch(e){i=null}t[n]=i}return t[n]}}(function(e){return document.querySelector(e)}),g=null,v=0,b=[],S=n(303);e.exports=function(e,t){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");t=t||{},t.attrs="object"==typeof t.attrs?t.attrs:{},t.singleton||"boolean"==typeof t.singleton||(t.singleton=m()),t.insertInto||(t.insertInto="head"),t.insertAt||(t.insertAt="bottom");var n=o(e,t);return i(n,t),function(e){for(var r=[],s=0;s<n.length;s++){var a=n[s],u=f[a.id];u.refs--,r.push(u)}if(e){i(o(e,t),t)}for(var s=0;s<r.length;s++){var u=r[s];if(0===u.refs){for(var l=0;l<u.parts.length;l++)u.parts[l]();delete f[u.id]}}}};var C=function(){var e=[];return function(t,n){return e[t]=n,e.filter(Boolean).join("\n")}}()},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){e.exports=n(808)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}(n(20));var i=n(471);t.CoreHelpers=i.CoreHelpers;var o=n(19);t.SearchInterface=o.SearchInterface,t.StandaloneSearchInterface=o.StandaloneSearchInterface;var r=n(209);t.$=r.jQueryInstance;var s=n(207);t._=s.underscoreInstance;var a=n(208);t.AnalyticsUtils=a.AnalyticsUtils;var u=n(42);t.HashUtils=u.HashUtils;var l=n(24);t.DeviceUtils=l.DeviceUtils;var c=n(140);t.ColorUtils=c.ColorUtils;var p=n(124);t.Cookie=p.Cookie;var d=n(130);t.CurrencyUtils=d.CurrencyUtils;var h=n(33);t.DateUtils=h.DateUtils;var f=n(10);t.analyticsActionCauseList=f.analyticsActionCauseList;var m=n(2);m.Initialization.componentsFactory=m.EagerInitialization.componentsFactory;var y=n(233);t.AdvancedSearch=y.AdvancedSearch,y.AdvancedSearch.doExport();var g=n(234);t.Aggregate=g.Aggregate,g.Aggregate.doExport(),n(125).Analytics.doExport();var v=n(235);t.AnalyticsSuggestions=v.AnalyticsSuggestions,v.AnalyticsSuggestions.doExport();var b=n(7);t.ComponentEvents=b.ComponentEvents,b.ComponentEvents.doExport();var S=n(236);t.AuthenticationProvider=S.AuthenticationProvider,S.AuthenticationProvider.doExport();var C=n(237);t.Backdrop=C.Backdrop,C.Backdrop.doExport();var w=n(238);t.Badge=w.Badge,w.Badge.doExport();var _=n(239);t.Breadcrumb=_.Breadcrumb,_.Breadcrumb.doExport();var O=n(240);t.CardActionBar=O.CardActionBar,O.CardActionBar.doExport();var x=n(241);t.CardOverlay=x.CardOverlay,x.CardOverlay.doExport();var E=n(242);t.ChatterLikedBy=E.ChatterLikedBy,E.ChatterLikedBy.doExport(),n(456).registerFields();var A=n(243);t.ChatterPostAttachment=A.ChatterPostAttachment,A.ChatterPostAttachment.doExport(),n(457).registerFields();var T=n(244);t.ChatterPostedBy=T.ChatterPostedBy,T.ChatterPostedBy.doExport(),n(458).registerFields();var R=n(245);t.ChatterTopic=R.ChatterTopic,R.ChatterTopic.doExport(),n(459).registerFields();var F=n(246);t.DidYouMean=F.DidYouMean,F.DidYouMean.doExport();var M=n(247);t.DistanceResources=M.DistanceResources,M.DistanceResources.doExport();var I=n(248);t.ErrorReport=I.ErrorReport,I.ErrorReport.doExport();var P=n(249);t.Excerpt=P.Excerpt,P.Excerpt.doExport();var D=n(250);t.ExportToExcel=D.ExportToExcel,D.ExportToExcel.doExport();var $=n(69);t.Facet=$.Facet,$.Facet.doExport();var N=n(186);t.FacetRange=N.FacetRange,N.FacetRange.doExport();var k=n(195);t.FacetSlider=k.FacetSlider,k.FacetSlider.doExport();var V=n(251);t.FieldSuggestions=V.FieldSuggestions,V.FieldSuggestions.doExport();var L=n(252);t.FacetValueSuggestions=L.FacetValueSuggestions,L.FacetValueSuggestions.doExport();var B=n(253);t.FieldTable=B.FieldTable,B.FieldTable.doExport();var U=n(119);t.FieldValue=U.FieldValue,U.FieldValue.doExport();var Q=n(187);t.Folding=Q.Folding,Q.Folding.doExport();var j=n(254);t.FoldingForThread=j.FoldingForThread,j.FoldingForThread.doExport();var H=n(276);t.FollowItem=H.FollowItem,H.FollowItem.doExport(),n(464).registerFields();var q=n(255);t.HiddenQuery=q.HiddenQuery,q.HiddenQuery.doExport();var z=n(256);t.HierarchicalFacet=z.HierarchicalFacet,z.HierarchicalFacet.doExport();var W=n(188);t.Icon=W.Icon,W.Icon.doExport(),n(460).registerFields();var G=n(257);t.Logo=G.Logo,G.Logo.doExport();var Y=n(258);t.Matrix=Y.Matrix,Y.Matrix.doExport();var K=n(189);t.Omnibox=K.Omnibox,K.Omnibox.doExport();var J=n(259);t.OmniboxResultList=J.OmniboxResultList,J.OmniboxResultList.doExport();var Z=n(260);t.Pager=Z.Pager,Z.Pager.doExport();var X=n(261);t.PipelineContext=X.PipelineContext,X.PipelineContext.doExport();var ee=n(262);t.PreferencesPanel=ee.PreferencesPanel,ee.PreferencesPanel.doExport();var te=n(263);t.PrintableUri=te.PrintableUri,te.PrintableUri.doExport(),n(461).registerFields();var ne=n(134);t.Querybox=ne.Querybox,ne.Querybox.doExport();var ie=n(264);t.QueryDuration=ie.QueryDuration,ie.QueryDuration.doExport();var oe=n(265);t.QuerySummary=oe.QuerySummary,oe.QuerySummary.doExport();var re=n(266);t.Quickview=re.Quickview,re.Quickview.doExport(),n(462).registerFields();var se=n(196);t.Recommendation=se.Recommendation,se.Recommendation.doExport();var ae=n(268);t.ResultAttachments=ae.ResultAttachments,ae.ResultAttachments.doExport();var ue=n(267);t.ResultActionsMenu=ue.ResultActionsMenu,ue.ResultActionsMenu.doExport();var le=n(269);t.ResultFolding=le.ResultFolding,le.ResultFolding.doExport();var ce=n(197);t.ResultLayoutSelector=ce.ResultLayoutSelector,ce.ResultLayoutSelector.doExport();var pe=n(70);t.ResultLink=pe.ResultLink,pe.ResultLink.doExport(),n(463).registerFields();var de=n(89);t.ResultList=de.ResultList,de.ResultList.doExport();var he=n(270);t.ResultRating=he.ResultRating,he.ResultRating.doExport();var fe=n(272);t.ResultsFiltersPreferences=fe.ResultsFiltersPreferences,fe.ResultsFiltersPreferences.doExport();var me=n(273);t.ResultsPerPage=me.ResultsPerPage,me.ResultsPerPage.doExport();var ye=n(274);t.ResultsPreferences=ye.ResultsPreferences,ye.ResultsPreferences.doExport();var ge=n(275);t.ResultTagging=ge.ResultTagging,ge.ResultTagging.doExport();var ve=n(277);t.SearchAlerts=ve.SearchAlerts,ve.SearchAlerts.doExport();var be=n(278);t.Searchbox=be.Searchbox,be.Searchbox.doExport();var Se=n(191);t.SearchButton=Se.SearchButton,Se.SearchButton.doExport();var Ce=n(279);t.Settings=Ce.Settings,Ce.Settings.doExport();var we=n(280);t.ShareQuery=we.ShareQuery,we.ShareQuery.doExport();var _e=n(192);t.Sort=_e.Sort,_e.Sort.doExport();var Oe=n(271);t.StarRating=Oe.StarRating,Oe.StarRating.doExport();var xe=n(198);t.Tab=xe.Tab,xe.Tab.doExport();var Ee=n(281);t.TemplateLoader=Ee.TemplateLoader,Ee.TemplateLoader.doExport();var Ae=n(282);t.Text=Ae.Text,Ae.Text.doExport();var Te=n(283);t.Thumbnail=Te.Thumbnail,Te.Thumbnail.doExport(),n(465).registerFields();var Re=n(284);t.Triggers=Re.Triggers,Re.Triggers.doExport();var Fe=n(185);t.YouTubeThumbnail=Fe.YouTubeThumbnail,Fe.YouTubeThumbnail.doExport(),n(210).registerFields();var Me=n(27);t.Template=Me.Template;var Ie=n(65);t.Checkbox=Ie.Checkbox,Ie.Checkbox.doExport();var Pe=n(87);t.DatePicker=Pe.DatePicker,Pe.DatePicker.doExport();var De=n(63);t.Dropdown=De.Dropdown,De.Dropdown.doExport();var $e=n(135);t.FormGroup=$e.FormGroup,$e.FormGroup.doExport();var Ne=n(190);t.MultiSelect=Ne.MultiSelect,Ne.MultiSelect.doExport();var ke=n(121);t.NumericSpinner=ke.NumericSpinner,ke.NumericSpinner.doExport();var Ve=n(95);t.RadioButton=Ve.RadioButton,Ve.RadioButton.doExport();var Le=n(55);t.TextInput=Le.TextInput,Le.TextInput.doExport();var Be=n(285);t.SimpleFilter=Be.SimpleFilter,Be.SimpleFilter.doExport();var Ue=n(286);t.TimespanFacet=Ue.TimespanFacet,Ue.TimespanFacet.doExport();var Qe=n(136);t.DynamicFacet=Qe.DynamicFacet,Qe.DynamicFacet.doExport();var je=n(289);t.DynamicFacetRange=je.DynamicFacetRange,je.DynamicFacetRange.doExport();var He=n(290);t.DynamicFacetManager=He.DynamicFacetManager,He.DynamicFacetManager.doExport();var qe=n(287);t.PromotedResultsBadge=qe.PromotedResultsBadge,qe.PromotedResultsBadge.doExport();var ze=n(91);t.CategoryFacet=ze.CategoryFacet,ze.CategoryFacet.doExport();var We=n(288);t.DynamicHierarchicalFacet=We.DynamicHierarchicalFacet,We.DynamicHierarchicalFacet.doExport();var Ge=n(291);t.MissingTerms=Ge.MissingTerms,Ge.MissingTerms.doExport();var Ye=n(292);t.QuerySuggestPreview=Ye.QuerySuggestPreview,Ye.QuerySuggestPreview.doExport(),n(466).swapVar(this);var Ke=n(193);t.ImageFieldValue=Ke.ImageFieldValue,Ke.ImageFieldValue.doExport();var Je=n(293);t.CommerceQuery=Je.CommerceQuery,Je.CommerceQuery.doExport();var Ze=n(294);t.SortDropdown=Ze.SortDropdown,Ze.SortDropdown.doExport();var Xe=n(295);t.SmartSnippet=Xe.SmartSnippet,Xe.SmartSnippet.doExport();var et=n(296);t.SmartSnippetSuggestions=et.SmartSnippetSuggestions,et.SmartSnippetSuggestions.doExport();var tt=n(173);t.FacetsMobileMode=tt.FacetsMobileMode,tt.FacetsMobileMode.doExport();var nt=n(125);t.Analytics=nt.Analytics}])});
//# sourceMappingURL=CoveoJsSearch.min.js.map