1(function(){var n;function aa(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}}function p(a){var b="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];return b?b.call(a):{next:aa(a)}}function q(a){if(!(a instanceof Array)){a=p(a);for(var b,c=[];!(b=a.next()).done;)c.push(b.value);a=c}return a}var ba="function"==typeof Object.create?Object.create:function(a){function b(){}b.prototype=a;return new b},fa; 2if("function"==typeof Object.setPrototypeOf)fa=Object.setPrototypeOf;else{var ha;a:{var ia={vb:!0},ja={};try{ja.__proto__=ia;ha=ja.vb;break a}catch(a){}ha=!1}fa=ha?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}var ka=fa; 3function u(a,b){a.prototype=ba(b.prototype);a.prototype.constructor=a;if(ka)ka(a,b);else for(var c in b)if("prototype"!=c)if(Object.defineProperties){var d=Object.getOwnPropertyDescriptor(b,c);d&&Object.defineProperty(a,c,d)}else a[c]=b[c];a.Jd=b.prototype}var v="undefined"!=typeof window&&window===this?this:"undefined"!=typeof global&&null!=global?global:this,la="function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){a!=Array.prototype&&a!=Object.prototype&&(a[b]=c.value)}; 4function w(a,b){if(b){var c=v;a=a.split(".");for(var d=0;d<a.length-1;d++){var e=a[d];e in c||(c[e]={});c=c[e]}a=a[a.length-1];d=c[a];b=b(d);b!=d&&null!=b&&la(c,a,{configurable:!0,writable:!0,value:b})}}function ma(){ma=function(){};v.Symbol||(v.Symbol=na)}function oa(a,b){this.a=a;la(this,"description",{configurable:!0,writable:!0,value:b})}oa.prototype.toString=function(){return this.a}; 5var na=function(){function a(c){if(this instanceof a)throw new TypeError("Symbol is not a constructor");return new oa("jscomp_symbol_"+(c||"")+"_"+b++,c)}var b=0;return a}();function pa(){ma();var a=v.Symbol.iterator;a||(a=v.Symbol.iterator=v.Symbol("Symbol.iterator"));"function"!=typeof Array.prototype[a]&&la(Array.prototype,a,{configurable:!0,writable:!0,value:function(){return qa(aa(this))}});pa=function(){}}function qa(a){pa();a={next:a};a[v.Symbol.iterator]=function(){return this};return a} 6function x(a,b){return Object.prototype.hasOwnProperty.call(a,b)} 7w("WeakMap",function(a){function b(f){this.a=(l+=Math.random()+1).toString();if(f){f=p(f);for(var k;!(k=f.next()).done;)k=k.value,this.set(k[0],k[1])}}function c(){}function d(f){if(!x(f,g)){var k=new c;la(f,g,{value:k})}}function e(f){var k=Object[f];k&&(Object[f]=function(h){if(h instanceof c)return h;d(h);return k(h)})}if(function(){if(!a||!Object.seal)return!1;try{var f=Object.seal({}),k=Object.seal({}),h=new a([[f,2],[k,3]]);if(2!=h.get(f)||3!=h.get(k))return!1;h.delete(f);h.set(k,4);return!h.has(f)&& 84==h.get(k)}catch(m){return!1}}())return a;var g="$jscomp_hidden_"+Math.random();e("freeze");e("preventExtensions");e("seal");var l=0;b.prototype.set=function(f,k){d(f);if(!x(f,g))throw Error("WeakMap key fail: "+f);f[g][this.a]=k;return this};b.prototype.get=function(f){return x(f,g)?f[g][this.a]:void 0};b.prototype.has=function(f){return x(f,g)&&x(f[g],this.a)};b.prototype.delete=function(f){return x(f,g)&&x(f[g],this.a)?delete f[g][this.a]:!1};return b}); 9w("Map",function(a){function b(){var f={};return f.H=f.next=f.head=f}function c(f,k){var h=f.a;return qa(function(){if(h){for(;h.head!=f.a;)h=h.H;for(;h.next!=h.head;)return h=h.next,{done:!1,value:k(h)};h=null}return{done:!0,value:void 0}})}function d(f,k){var h=k&&typeof k;"object"==h||"function"==h?g.has(k)?h=g.get(k):(h=""+ ++l,g.set(k,h)):h="p_"+k;var m=f.b[h];if(m&&x(f.b,h))for(f=0;f<m.length;f++){var t=m[f];if(k!==k&&t.key!==t.key||k===t.key)return{id:h,list:m,index:f,B:t}}return{id:h,list:m, 10index:-1,B:void 0}}function e(f){this.b={};this.a=b();this.size=0;if(f){f=p(f);for(var k;!(k=f.next()).done;)k=k.value,this.set(k[0],k[1])}}if(function(){if(!a||"function"!=typeof a||!a.prototype.entries||"function"!=typeof Object.seal)return!1;try{var f=Object.seal({x:4}),k=new a(p([[f,"s"]]));if("s"!=k.get(f)||1!=k.size||k.get({x:4})||k.set({x:4},"t")!=k||2!=k.size)return!1;var h=k.entries(),m=h.next();if(m.done||m.value[0]!=f||"s"!=m.value[1])return!1;m=h.next();return m.done||4!=m.value[0].x|| 11"t"!=m.value[1]||!h.next().done?!1:!0}catch(t){return!1}}())return a;pa();var g=new WeakMap;e.prototype.set=function(f,k){f=0===f?0:f;var h=d(this,f);h.list||(h.list=this.b[h.id]=[]);h.B?h.B.value=k:(h.B={next:this.a,H:this.a.H,head:this.a,key:f,value:k},h.list.push(h.B),this.a.H.next=h.B,this.a.H=h.B,this.size++);return this};e.prototype.delete=function(f){f=d(this,f);return f.B&&f.list?(f.list.splice(f.index,1),f.list.length||delete this.b[f.id],f.B.H.next=f.B.next,f.B.next.H=f.B.H,f.B.head=null, 12this.size--,!0):!1};e.prototype.clear=function(){this.b={};this.a=this.a.H=b();this.size=0};e.prototype.has=function(f){return!!d(this,f).B};e.prototype.get=function(f){return(f=d(this,f).B)&&f.value};e.prototype.entries=function(){return c(this,function(f){return[f.key,f.value]})};e.prototype.keys=function(){return c(this,function(f){return f.key})};e.prototype.values=function(){return c(this,function(f){return f.value})};e.prototype.forEach=function(f,k){for(var h=this.entries(),m;!(m=h.next()).done;)m= 13m.value,f.call(k,m[1],m[0],this)};e.prototype[Symbol.iterator]=e.prototype.entries;var l=0;return e});w("Object.is",function(a){return a?a:function(b,c){return b===c?0!==b||1/b===1/c:b!==b&&c!==c}});w("Array.prototype.includes",function(a){return a?a:function(b,c){var d=this;d instanceof String&&(d=String(d));var e=d.length;c=c||0;for(0>c&&(c=Math.max(c+e,0));c<e;c++){var g=d[c];if(g===b||Object.is(g,b))return!0}return!1}}); 14w("String.prototype.includes",function(a){return a?a:function(b,c){if(null==this)throw new TypeError("The 'this' value for String.prototype.includes must not be null or undefined");if(b instanceof RegExp)throw new TypeError("First argument to String.prototype.includes must not be a regular expression");return-1!==this.indexOf(b,c||0)}}); 15w("Array.prototype.find",function(a){return a?a:function(b,c){a:{var d=this;d instanceof String&&(d=String(d));for(var e=d.length,g=0;g<e;g++){var l=d[g];if(b.call(c,l,g,d)){b=l;break a}}b=void 0}return b}});var ra="function"==typeof Object.assign?Object.assign:function(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(d)for(var e in d)x(d,e)&&(a[e]=d[e])}return a};w("Object.assign",function(a){return a||ra}); 16w("Array.prototype.fill",function(a){return a?a:function(b,c,d){var e=this.length||0;0>c&&(c=Math.max(0,e+c));if(null==d||d>e)d=e;d=Number(d);0>d&&(d=Math.max(0,e+d));for(c=Number(c||0);c<d;c++)this[c]=b;return this}}); 17w("Array.from",function(a){return a?a:function(b,c,d){c=null!=c?c:function(f){return f};var e=[],g="undefined"!=typeof Symbol&&Symbol.iterator&&b[Symbol.iterator];if("function"==typeof g){b=g.call(b);for(var l=0;!(g=b.next()).done;
17)e.push(c.call(d,g.value,l++))}else for(g=b.length,l=0;l<g;l++)e.push(c.call(d,b[l],l));return e}});w("Number.isFinite",function(a){return a?a:function(b){return"number"!==typeof b?!1:!isNaN(b)&&Infinity!==b&&-Infinity!==b}}); 18w("Number.isInteger",function(a){return a?a:function(b){return Number.isFinite(b)?b===Math.floor(b):!1}});var sa=this;function y(a,b){a=a.split(".");var c=sa;a[0]in c||"undefined"==typeof c.execScript||c.execScript("var "+a[0]);for(var d;a.length&&(d=a.shift());)a.length||void 0===b?c[d]&&c[d]!==Object.prototype[d]?c=c[d]:c=c[d]={}:c[d]=b};function ta(a,b){this.x=void 0===a?0:a;this.y=void 0===b?0:b};function ua(a,b,c,d){this.f=a;this.c=b;this.a=c;this.b=d}ua.prototype.contains=function(a){return this&&a?a instanceof ua?a.b>=this.b&&a.c<=this.c&&a.f>=this.f&&a.a<=this.a:a.x>=this.b&&a.x<=this.c&&a.y>=this.f&&a.y<=this.a:!1};ua.prototype.expand=function(a,b,c,d){"number"!==typeof a?(this.f-=a.f,this.c+=a.c,this.a+=a.a,this.b-=a.b):(this.f-=a,this.c+=Number(b),this.a+=Number(c),this.b-=Number(d));return this};function va(a){var b=new wa(a),c=b.b.bind(b);c.cancel=function(){b.cancel();return c}.bind(this);return c}function wa(a){var b=z.f.ob;this.f=a;this.c=b;this.a=null}wa.prototype.b=function(){clearTimeout(this.a);this.a=setTimeout(this.f,this.c)};wa.prototype.cancel=function(){clearTimeout(this.a)};function xa(a,b,c,d,e){return b+c*e(a/d)}y("ease$$module$node_modules$$google$glue$lib$fx$easing",xa);function ya(a){return 0==a||1==a?a:1-Math.cos(Math.PI/2*a)}y("easeInSine$$module$node_modules$$google$glue$lib$fx$easing",ya);function za(a){return 0==a||1==a?a:Math.sin(Math.PI/2*a)}y("easeOutSine$$module$node_modules$$google$glue$lib$fx$easing",za);function Aa(a){return 0==a||1==a?a:-.5*(Math.cos(Math.PI*a)-1)}y("easeInOutSine$$module$node_modules$$google$glue$lib$fx$easing",Aa); 19function Ba(a){return 0==a||1==a?a:a*a}y("easeInQuad$$module$node_modules$$google$glue$lib$fx$easing",Ba);function Ca(a){return 0==a||1==a?a:a*(2-a)}y("easeOutQuad$$module$node_modules$$google$glue$lib$fx$easing",Ca);function Da(a){return 0==a||1==a?a:.5>a?2*a*a:-1+(4-2*a)*a}y("easeInOutQuad$$module$node_modules$$google$glue$lib$fx$easing",Da);function Ea(a){return 0==a||1==a?a:a*a*a}y("easeInCubic$$module$node_modules$$google$glue$lib$fx$easing",Ea);function Fa(a){return 0==a||1==a?a:--a*a*a+1} 20y("easeOutCubic$$module$node_modules$$google$glue$lib$fx$easing",Fa);function Ga(a){return 0==a||1==a?a:.5>a?4*a*a*a:(a-1)*(2*a-2)*(2*a-2)+1}y("easeInOutCubic$$module$node_modules$$google$glue$lib$fx$easing",Ga);function Ha(a){return 0==a||1==a?a:a*a*a*a}y("easeInQuart$$module$node_modules$$google$glue$lib$fx$easing",Ha);function Ia(a){return 0==a||1==a?a:1- --a*a*a*a}y("easeOutQuart$$module$node_modules$$google$glue$lib$fx$easing",Ia); 21function Ja(a){return 0==a||1==a?a:.5>a?8*a*a*a*a:1-8*--a*a*a*a}y("easeInOutQuart$$module$node_modules$$google$glue$lib$fx$easing",Ja);function Ka(a){return 0==a||1==a?a:a*a*a*a*a}y("easeInQuint$$module$node_modules$$google$glue$lib$fx$easing",Ka);function La(a){return 0==a||1==a?a:1+--a*a*a*a*a}y("easeOutQuint$$module$node_modules$$google$glue$lib$fx$easing",La);function Ma(a){return 0==a||1==a?a:.5>a?16*a*a*a*a*a:1+16*--a*a*a*a*a} 22y("easeInOutQuint$$module$node_modules$$google$glue$lib$fx$easing",Ma);function Na(a){return 0==a||1==a?a:Math.pow(2,10*(a-1))}y("easeInExpo$$module$node_modules$$google$glue$lib$fx$easing",Na);function Oa(a){return 0==a||1==a?a:1-Math.pow(2,-10*a)}y("easeOutExpo$$module$node_modules$$google$glue$lib$fx$easing",Oa);function Pa(a){return 0==a||1==a?a:.5>a?.5*Math.pow(2,10*(2*a-1)):.5*(2-Math.pow(2,-10*(2*a-1)))}y("easeInOutExpo$$module$node_modules$$google$glue$lib$fx$easing",Pa); 23function Qa(a){return 0==a||1==a?a:1-Math.sqrt(1-a*a)}y("easeInCirc$$module$node_modules$$google$glue$lib$fx$easing",Qa);function Ra(a){return 0==a||1==a?a:Math.sqrt(1-(a-1)*(a-1))}y("easeOutCirc$$module$node_modules$$google$glue$lib$fx$easing",Ra);function Sa(a){return 0==a||1==a?a:.5>a?-.5*(Math.sqrt(1-a*a*4)-1):.5*(Math.sqrt(1-4*(a-1)*(a-1))+1)}y("easeInOutCirc$$module$node_modules$$google$glue$lib$fx$easing",Sa);function Ta(a){return 0==a||1==a?a:a*a*(2.70158*a-1.70158)} 24y("easeInBack$$module$node_modules$$google$glue$lib$fx$easing",Ta);function Ua(a){return 0==a||1==a?a:(a-1)*(a-1)*(2.70158*(a-1)+1.70158)+1}y("easeOutBack$$module$node_modules$$google$glue$lib$fx$easing",Ua);function Va(a){return 0==a||1==a?a:.5>a?2*a*a*(7.189819*a-2.5949095):.5*((2*a-2)*(2*a-2)*(3.5949095*(2*a-2)+2.5949095)+2)}y("easeInOutBack$$module$node_modules$$google$glue$lib$fx$easing",Va);function Wa(a){return 0==a||1==a?a:-1*Math.pow(2,10*(a-1))*Math.sin(2*(a-1.075)*Math.PI/.3)} 25y("easeInElastic$$module$node_modules$$google$glue$lib$fx$easing",Wa);function Xa(a){return 0==a||1==a?a:Math.pow(2,-10*a)*Math.sin(2*(a-.075)*Math.PI/.3)+1}y("easeOutElastic$$module$node_modules$$google$glue$lib$fx$easing",Xa);function Ya(a){return 0==a||1==a?a:.5>a?-.5*Math.pow(2,10*(2*a-1))*Math.sin(2*(2*a-1.1125)*Math.PI/.45):.5*Math.pow(2,-10*(2*a-1))*Math.sin(2*(2*a-1.1125)*Math.PI/.45)+1}y("easeInOutElastic$$module$node_modules$$google$glue$lib$fx$easing",Ya); 26function Za(a){return 0==a||1==a?a:1-$a(1-a)}y("easeInBounce$$module$node_modules$$google$glue$lib$fx$easing",Za);function $a(a){return 0==a||1==a?a:a<1/2.75?7.5625*a*a:a<2/2.75?7.5625*(a-1.5/2.75)*(a-1.5/2.75)+.75:a<2.5/2.75?7.5625*(a-2.25/2.75)*(a-2.25/2.75)+.9375:7.5625*(a-2.625/2.75)*(a-2.625/2.75)+.984375}y("easeOutBounce$$module$node_modules$$google$glue$lib$fx$easing",$a);function ab(a){return 0==a||1==a?a:.5>a?.5*Za(2*a):.5*$a(2*a-1)+.5} 27y("easeInOutBounce$$module$node_modules$$google$glue$lib$fx$easing",ab);function bb(a){return a}y("linear$$module$node_modules$$google$glue$lib$fx$easing",bb); 28y("easingFuncMap$$module$node_modules$$google$glue$lib$fx$easing",new Map([["ease",xa],["easeInSine",ya],["easeOutSine",za],["easeInOutSine",Aa],["easeInQuad",Ba],["easeOutQuad",Ca],["easeInOutQuad",Da],["easeInCubic",Ea],["easeOutCubic",Fa],["easeInOutCubic",Ga],["easeInQuart",Ha],["easeOutQuart",Ia],["easeInOutQuart",Ja],["easeInQuint",Ka],["easeOutQuint",La],["easeInOutQuint",Ma],["easeInExpo",Na],["easeOutExpo",Oa],["easeInOutExpo",Pa],["easeInCirc",Qa],["easeOutCirc",Ra],["easeInOutCirc",Sa], 29["easeInBack",Ta],["easeOutBack",Ua],["easeInOutBack",Va],["easeInElastic",Wa],["easeOutElastic",Xa],["easeInOutElastic",Ya],["easeInBounce",Za],["easeOutBounce",$a],["easeInOutBounce",ab],["linear",bb]]));function cb(){this.a={}}cb.prototype.dispatchEvent=function(a,b){a=db(this,a);for(var c=0,d;d=a[c];c++)d(b)};cb.prototype.s=function(a,b){db(this,a).push(b)};cb.prototype.o=function(a,b){a=db(this,a);for(var c=a.length-1;0<=c;c--)a[c]==b&&a.splice(c,1)};function db(a,b){a.a[b]||(a.a[b]=[]);return a.a[b]};var eb='input textarea select button iframe [role="button"] a [tabindex]'.split(" ");function fb(a){return 0<eb.filter(function(b){return a.matches(b)}).length} 30function gb(a){var b=[].slice.apply(a.querySelectorAll("input")),c=[].slice.apply(a.querySelectorAll("a")),d=[].slice.apply(a.querySelectorAll("textarea")),e=[].slice.apply(a.querySelectorAll("select")),g=[].slice.apply(a.querySelectorAll("button")),l=[].slice.apply(a.querySelectorAll("iframe")),f=[].slice.apply(a.querySelectorAll('[role="button"]:not(input):not(a):not
30(textarea):not(select):not(button):not(iframe)'));a=[].slice.apply(a.querySelectorAll('[tabindex="0"]:not([role="button"]):not(input):not(a):not(textarea):not(select):not(button):not(iframe)')); 31return b.concat(c).concat(d).concat(e).concat(g).concat(l).concat(f).concat(a)};var hb={ib:"Enter",pb:" ",qb:"Tab",jb:"Escape",Ia:"ArrowLeft",tb:"ArrowUp",Na:"ArrowRight",hb:"ArrowDown"},ib={ib:13,pb:32,qb:9,jb:27,Ia:37,tb:38,Na:39,hb:40};(function(){var a=new Map;Object.keys(ib).forEach(function(b){a.set(ib[b],hb[b])});return a})();var jb=this;y("Monitor$$module$node_modules$$google$glue$lib$viewport$monitor.Event",function(a,b,c){this.target=c;this.type=b});function kb(a){a=void 0===a?[]:a;this.f=[];this.c=[];this.g=[];this.a=lb();this.h="";Array.isArray(a)||(a=[a]);a.forEach(this.Pa.bind(this));this.b=this.Xb.bind(this);window.addEventListener("DOMContentReady",this.b);window.addEventListener("resize",this.b);window.addEventListener("orientationchange",this.b)}n=kb.prototype;n.s=function(a){"function"==typeof a?this.c.push(a):this.Pa(a)}; 32n.o=function(a){if("function"==typeof a){a=0;for(var b;b=this.c[a];a++)if(b==b){this.c.splice(a,1);break}}else if(a.ba){b=0;for(var c;c=this.g[b];b++)c.Ea==a&&this.o(c.oa)}else if(a.media)for(b=0;c=this.f[b];b++)c.Ea==a&&c.Ya.removeListener(c.oa)}; 33n.destroy=function(){this.a="";for(var a=0,b;b=this.f[a];a++)b.Ya.removeListener(b.oa);this.f=[];this.g=[];this.c=[];window.removeEventListener("DOMContentReady",this.b);window.removeEventListener("resize",this.b);window.removeEventListener("orientationchange",this.b)};n.Pa=function(a){if(a.ba)mb(this,a);else if(a.media){var b=nb(a.transform,a.Gd),c=b.bind(this),d=window.matchMedia(a.media);d.addListener(c);this.f.push({Ea:a,Ya:d,oa:c});d.matches&&b(d)}}; 34function mb(a,b){function c(d){var e=b.ba;-1==e.indexOf(a.h)&&-1!=e.indexOf(a.a)?b.enter(d):b.leave&&-1!=e.indexOf(a.h)&&-1==e.indexOf(a.a)&&b.leave(d)}a.g.push({Ea:b,oa:c});c(a.a);a.s(c)}function nb(a,b){return function(c){c.matches?a(c):b&&b(c)}}n.Xb=function(){var a=lb();if(this.a!=a){this.h=this.a;this.a=a;a=0;for(var b;b=this.c[a];a++)b(this.a)}};function lb(){return window.getComputedStyle(document.body,":after").getPropertyValue("content").replace(/["']/g,"")};function ob(a,b,c){this.A=a;this.f=b;this.c=c;this.l=Object.assign({},a);this.u=c.ease||bb;this.j=c.onUpdate||function(){};this.v=c.onUpdateParams||null;this.i=c.onComplete||function(){};this.b={};this.h=this.g=this.a=0;pb(this)}function pb(a){for(var b in a.c)-1==qb.indexOf(b)&&(a.b[b]=a.c[b]-a.l[b]);a.a=Date.now();a.g=a.a+1E3*a.f;a.h=window.requestAnimationFrame(a.m.bind(a))} 35function rb(a,b){b=Math.max(0,Math.min(1,b));b=b*(a.g-a.a)/1E3;for(var c in a.b)a.b.hasOwnProperty(c)&&(a.A[c]=a.l[c]+a.b[c]*(0,a.u)(b/a.f));a.j&&a.j.apply(null,a.v)}function sb(a){window.cancelAnimationFrame(a.h);a.c=null;a.j=null;a.i=null}ob.prototype.m=function(){rb(this,(Date.now()-this.a)/this.f/1E3);Date.now()<this.g?this.h=window.requestAnimationFrame(this.m.bind(this)):(rb(this,1),this.i&&this.i(),sb(this))};var qb=["ease","onUpdate","onUpdateParams","onComplete"];function A(a){a=void 0===a?{}:a;this.b=void 0!=a.totalPages?a.totalPages:A.a.totalPages;this.h=void 0!=a.totalItems?a.totalItems:A.a.totalItems;this.a=void 0!=a.currentPage?a.currentPage:A.a.currentPage;this.cyclical=void 0!=a.cyclical?a.cyclical:A.a.cyclical;this.itemsPerPage=void 0!=a.itemsPerPage?a.itemsPerPage:A.a.itemsPerPage;0==this.b&&(this.b=Math.ceil(this.h/this.itemsPerPage));0<this.b&&0==this.h&&(this.h=this.b);this.maxLength=void 0!=a.maxLength?a.maxLength:A.a.maxLength;this.timer=void 0!= 36a.timer?a.timer:A.a.timer;this.activeEl=void 0!=a.activeEl?a.activeEl:A.a.activeEl;this.f={};this.c=null;this.i=!1;this.g=this.j=null;tb(this)}A.prototype.H=function(){ub(this,"gluepaginationprevious")};A.prototype.next=function(){ub(this,"gluepaginationnext")};function vb(a,b){a.g||(a.g=b)}function wb(a){return!a.cyclical&&1==a.a}function xb(a){return!a.cyclical&&(a.a==a.b||a.a+a.itemsPerPage>a.b)}function yb(a,b){a.c=b} 37A.prototype.s=function(a,b){if(!this.c)throw Error("[Pagination Model] - An event adapter has not yet been defined. - Please use PaginationModel.setEventAdapter");this.c.s(a,b)};A.prototype.o=function(a,b){this.c&&this.c.o(a,b)};
37function tb(a){a.timer&&!a.i&&(a.i=!0,a.j=setInterval(function(){return a.next()},a.timer))}function zb(a){return 1<a.a?a.a-1:a.cyclical?a.b:a.a-1}function Ab(a){return a.a<a.b?a.a+1:a.cyclical?1:a.a+1}function ub(a,b){a.c&&a.c.O(b)} 38v.Object.defineProperties(A.prototype,{currentPage:{configurable:!0,enumerable:!0,get:function(){return this.a},set:function(a){this.a=1>a?1:a>this.totalPages?this.totalPages:a;ub(this,"gluepaginationcurrentpage")}},totalItems:{configurable:!0,enumerable:!0,get:function(){return this.h},set:function(a){this.h=a;this.totalPages=Math.ceil(this.h/this.itemsPerPage)}},totalPages:{configurable:!0,enumerable:!0,get:function(){return this.b},set:function(a){this.b=a;ub(this,"gluepaginationtotalpages")}}}); 39v.Object.defineProperties(A,{a:{configurable:!0,enumerable:!0,get:function(){return{currentPage:1,totalItems:0,itemsPerPage:1,totalPages:0,maxLength:0,timer:0,cyclical:!1,Kd:[],activeEl:""}}}});A.prototype.next=A.prototype.next;A.prototype.previous=A.prototype.H;function D(a){this.a=a=void 0===a?{}:a}v.Object.defineProperties(D,{a:{configurable:!0,enumerable:!0,get:function(){return{}}},c:{configurable:!0,enumerable:!0,get:function(){return{}}},f:{configurable:!0,enumerable:!0,get:function(){return{}}}});function Bb(a,b,c,d){this.b=a;this.a=void 0!=b?b:0;this.g=void 0!=c?Math.min(Math.max(c,0),this.b.c.length-1):null;this.f=0!=d;this.c=!1}Bb.prototype.next=function(){if(this.c)return{value:void 0,done:!0};var a=this.a;this.a+=this.f?1:-1;a==this.g&&(this.c=!0);0>this.a?this.b.f?this.a=this.b.c.length-1:this.c=!0:this.a>=this.b.c.length&&(this.b.f?this.a=0:this.c=!0);return{value:a,done:!1}};function E(a,b,c,d){this.a=a;this.f=0!=d;this.b=0;if(void 0!=b.x)a=b.index,this.b=b.x;else{a=b;var e=this.a;b=e.f?Math.floor(e.a/F(e))*F(e):0;for(var g=0;g<a;g++)b+=G(e,g);this.b=b}this.g=new Bb(this.a,a,c,d);this.c=new Bb(this.a,a,c,d);this.c.next()}E.prototype.next=function(){var a=this.g.next().value,b=this.c.next().value;if(void 0!=a){var c=G(this.a,a);b=void 0!=b?G(this.a,b):void 0;var d=this.b;this.b+=this.f?c:-b;return{value:{index:a,width:c,dc:b,x:d},done:!1}}return{value:void 0,done:!0}};function H(a,b,c){this.b=a;this.a=!1;I(this.b)?(this.f=void 0!=b?b:this.b.a,this.g=void 0!=c?c:this.f,this.c=this.g>=this.f,(b=Cb(this))?this.h=new E(a,b,null,this.c):this.a=!0):this.a=!0}H.prototype.next=function(){if(this.a)return{value:void 0,done:!0};var a=this.h.next().value;a?this.c?a.x+a.width>=this.g+this.b.b&&(this.a=!0):a.x<=this.g&&(this.a=!0):this.a=!0;return{value:a,done:!1}}; 40function Cb(a){var b=a.f+(a.c?0:a.b.b-1);var c=0<=b?function(e){return e&&e.x+e.width-1<b}:function(e){return e&&e.x>b};a=new E(a.b,{index:0,x:0},null,0<=b);do var d=a.next().value;while(c(d));return d};function Db(a){this.a=a;a=this.c=0;if(this.a.f&&I(this.a))for(;a>this.a.a;)a-=F(this.a);this.f=new E(this.a,{index:0,x:a},null);this.b=!1;I(this.a)||(this.b=!0)}Db.prototype.next=function(){var a=this.f.next().value;if(!a||this.b)return{value:void 0,done:!0};var b=this.a.a+this.a.b+this.a.m;if(this.c>=this.a.c.length&&a.x>=b)return{value:void 0,done:!0};b=Eb(this.a,a.index,a.x);this.c++;return{value:{index:a.index,Ac:b},done:!1}};function Fb(a,b,c){this.f=a;this.v=void 0==b||1==b;this.j=0!=c;this.h=this.a=0;this.c=[];this.l=[];this.u=!1;this.m=this.b=0;this.g=[]}function Gb(a,b){a.c=Array.prototype.slice.apply(b);a.h=F(a);a.u=!a.c.every(function(c){return 0>=c});Hb(a)}function F(a){for(var b=0,c=0,d=a.c.length;c<d;c++)b+=G(a,c);return b}function I(a){return 0<a.b&&a.u}function G(a,b){b%=a.c.length;return-1==a.l.indexOf(b)?a.c[b]:0}function Ib(a){var b=Math.max.apply(null,a.c);return(2+Math.ceil((a.b+2*a.m)/b))*b} 41function Jb(a,b){null==b&&(b=0);isFinite(b)&&(a.a=b,a.f||a.v||(a.a=Math.min(Math.max(a.a,J(a)),K(a))),Hb(a),a.i=L(a))}function J(a){return a.j?G(a,0)/2-a.b/2:0}function K(a){var b=G(a,a.c.length-1),c=a.h-b;a.j&&(c+=b/2-a.b/2);return c} 42function Kb(a,b){var c=void 0!=b?b:a.a,d=function(){return(new H(this,c)).next().value}.bind(a);b=function(g){for(var l=new H(this,g),f;f=l.next().value;)if(2==Eb(this,f.index,f.x,g,!1))return f;return null}.bind(a);d=d();var e;2==Eb(a,d.index,d.x,c,!1)?e=c:e=d.x+d.width;e-=a.b;return(a=b(e))?a.x:0}
43function Lb(a,b,c,d){b=Math.min(Math.max(b,0),a.c.length-1);if(a.f){var e=L(a);if(!e)return null;c=new E(a,e,b,c)}else c=new E(a,0,b);e=0;for(var g;g=c.next().value;)e=g.x;if(a.j||d)e+=G(a,b)/2-a.b/2;return e} 44function L(a,b,c){if(!I(a))return null;c=void 0!=c?c:a.a;var d=new H(a,0,c);if(!a.f&&(c<J(a)||c>K(a))){d=new E(a,c<J(a)?0:a.c.length-1);var e=d.next().value;e.offset=0;return e}for(;e=d.next().value;){var g=c;if(a.j||b){var l=e.x;var f=e.x+e.width-1;g+=a.b/2;var k=g>=l&&g<f;l=g-l-(f-l+1)/2}else f=e.x+e.width/2,0<=c?k=g<=f:(l=e.x-e.dc/2,k=g>=l&&g<f),l=g-e.x;if(k)return e.offset=l,e}}function Mb(a){Jb(a,a.a%a.h)} 45function Eb(a,b,c,d,e){d=void 0!=d?d:a.a;b=G(a,b);if(0==b)return 0;b=c+b-1;var g=0!=e?a.m:0;e=d-g;a=d+a.b+g;return c>=e&&b<a?2:c>=e&&c<a||b>=e&&b<a||c<=e&&b>=a?1:0}function Nb(a){if(a.l.length){var b=L(a,!0);b&&(a.l=[],a.h=F(a),b=Lb(a,b.index,null,!0)+b.offset,Jb(a,b))}} 46function Ob(a,b){if(b!=a.a){var c=L(a);if(c){for(var d=a.a,e=[],g=new H(a,d,b),l;l=g.next().value;){var f=Eb(a,l.index,l.x,b);0==Eb(a,l.index,l.x,d)&&0==f&&e.push(l.index)}e.length&&(a.l=e,a.h=F(a),b=Lb(a,c.index)+c.offset,Jb(a,b))}}}function Hb(a){a.g.length=0;for(var b=new Db(a),c;c=b.next().value;)a.g.push(c.Ac)};var Pb={Nc:"glue-carousel__list",Pc:"glue-is-measuring",kb:"glue-carousel__item",Ma:"glue-is-ready",md:"glue-is-swiping",ub:"glue-carousel__wrap",rb:"glue-touch"},Qb={ob:250};function Rb(a,b,c){this.b=a;this.a=b;this.j=this.a.U();this.i=void 0===c?!1:c;this.c=0;this.h=[];this.g=[];this.f=null} 47Rb.prototype.w=function(a){var b=this;a=void 0===a?function(){}:a;this.N(function(){b.a.addClass("glue-is-measuring");b.b.b=b.a.Ua();for(var c=[],d=b.a.ma(),e=b.c=0,g;g=d[e];e++){var l=b.a.Vb(g),f=l.width;l=l.height;b.a.X(g,"width",f+"px");c.push(f);b.c=Math.max(b.c,l)}b.a.removeClass("glue-is-measuring");b.c=Math.round(b.c);for(e=0;g=d[e];e++)b.a.X(g,"minHeight",b.c+"px");Gb(b.b,c);b.a.ua("width",Ib(b.b)+"px");a()})}; 48function Sb(a){var b=Array.prototype.slice.apply(a.b.g);a.a.ha(b,function(){var c=a.a.ma(),d=a.b.g,e=a.b.i;if(e){var g=a.b;e=e.index;if(I(g)){for(var l=null,f=0,k=g.g.length;f<k;f++)if(0!=g.g[f]){l=f;break}for(;e<l;)e+=g.c.length;g=g.g[e];g=0!=g&&void 0!=g?e-l:null}else g=null;a.f=null!=g?c[g]:null;e=g=0;for(l=d.length;g<l;g++)if(f=d[g]){k=c[e++];if(!k)break;a.a.X(k,"width",G(a.b,g)+"px");a.a.X(k,"minHeight",a.c+"px");(f=a.i&&2==f||!a.i&&k==a.f)?(a.a.Da(k,"aria-hidden"),a.a.Fa(k,"tabindex",-1)):(a.a.Fa(k, 49"aria-hidden",!0),a.a.Da(k,"tabindex"));k=k.querySelectorAll(eb.join(","));for(var h=0,m;m=k[h];h++)f?a.a.Da(m,"tabindex"):a.a.Fa(m,"tabindex",-1)}}a:{c=a.b;d=-c.a;if(c.f&&I(c))for(;0<d;)d-=c.h;g=0;for(e=c.g.length;g<e;g++){if(c.g[g]){c=d;break a}d+=G(c,g)}c=0}c=Math.round(c);c*=a.j?-1:1;a.a.ua("transform","translate3d("+c+"px, 0, 0)");a.g=[];c=a.a.ma();for(d=0;g=c[d];d++)-1==a.h.indexOf(g)&&a.g.push(g);a.h=Array.prototype.slice.apply(c)})} 50Rb.prototype.N=function(a){var b=this;a=void 0===a?function(){}:a;this.a.ua("width","auto");this.a.ua("transform","none");this.a.N(function(){for(var c=b.a.ma(),d=0,e=c.length;d<e;d++){var g=c[d];g&&(b.a.X(g,"width",""),b.a.X(g,"minHeight",""))}a()})};function Tb(a,b,c){this.a=a;this.g=b;this.c=c;this.f=0;this.b=null}function Ub(a,b,c){Nb(a.a);var d=L(a.a);if(d){d=b>d.index;var e=Lb(a.a,b,d);isFinite(e)&&null!=e&&(c?a.c.jump?(Ob(a.a,e),b=Lb(a.a,b,d),null!=b&&Vb(a,b,null,function(){Nb(this.a);Wb(this,e)}.bind(a))):Vb(a,e):(Wb(a,e),Mb(a.a),a.f=a.a.a))}}function Wb(a,b){Jb(a.a,b);Sb(a.g)} 51function Vb(a,b,c,d){a.b&&sb(a.b);if(b!=a.a.a){a.f=b;var e={x:a.a.a};b={x:b,ease:a.c.easing,onUpdateParams:[e],onUpdate:function(g){Wb(this,g.x);c&&c()}.bind(a),onComplete:function(){d&&d();Mb(this.a);this.f=this.a.a}.bind(a)};a.b=new ob(e,a.c.transitionDuration,b)}} 52function Xb(a,b,c,d){d=void 0!=d?d:a.f;var e=0;b&&a.c.group?(b=a.a,e=b.b,e+=void 0!=d?d:b.a,d=new H(b,e),(e=d.next().value)&&b.i&&e.x==b.i.x&&(e=d.next().value),e=e?e.x:b.h-G(b,b.c.length-1)):b?(b=a.a,(d=L(b,!1,d))?(e=new E(b,d,null,!0),e.next(),d=(e=e.next().value||d)?e.x:d.x,b.j&&(d+=e.width/2-b.b/2),e=d):e=null):!b&&a.c.group?e=Kb(a.a,d):b||(b=a.a,(d=L(b,!1,d))?(e=new E(b,d,null,!1),e.next(),d=(e=e.next().value||d)?e.x:d.x,b.j&&(d+=e.width/2-b.b/2),e=d):e=null);null!=e&&Vb(a,e,c)} 53v.Object.defineProperties(Tb.prototype,{h:{configurable:!0,enumerable:!0,get:function(){return this.f}}});
53function Yb(a,b,c,d,e){this.b=a;this.a=c;this.c=b;this.C=d;this.M=e;this.L=this.a.U();this.g=!1;this.f=this.h=this.F=this.j=this.l=0;this.v=this.Xa.bind(this);this.u=this.Wa.bind(this);this.i=this.Aa.bind(this);this.m=this.Wb.bind(this);this.A=this.Yb.bind(this);this.G=!1}n=Yb.prototype;n.w=function(){this.a.oc(this.v);this.a.nc(this.u);this.a.mc(this.i);this.a.lc(this.i);this.a.jc(this.m);this.a.pc(this.A)}; 54n.destroy=function(){this.a.Fb(this.v);this.a.Eb(this.u);this.a.Db(this.i);this.a.Cb(this.i);this.a.Ab(this.m);this.a.Gb(this.A)};n.Xa=function(a){var b=this.c;b.b&&sb(b.b);Nb(this.b);this.l=+new Date;this.j=this.b.a;this.F=a.x;this.g=!0;this.a.addClass("glue-is-swiping")}; 55n.Wa=function(a){if(this.g){this.h=(a.x-this.F)*(this.L?-1:1);a=this.j-this.h;var b=this.a.D?this.a.D():void 0,c=b?b.totalPages:0,d=b?b.currentPage:0,e=this.c.h>a?"LEFT":"RIGHT";this.G=!(b&&b.cyclical||c!==d||"RIGHT"!==e);b=this.b;b.f?b=!1:(c=K(b),b=a<J(b)||a>c);b&&(b=this.M.edgeFriction,a>K(this.b)+1?(a-=K(this.b),a=K(this.b)+a/b):a<J(this.b)-1&&(a=J(this.b)-a,a=J(this.b)-a/b));this.G||(Wb(this.c,a),this.C())}}; 56n.Aa=function(){this.g=!1;this.a.removeClass("glue-is-swiping");var a=this.b.i;if(a){var b=Math.abs(this.h);500>+new Date-this.l&&50<b?(a=this.C.bind(this),b=this.c.c.group?null:this.j,0<=this.h?Xb(this.c,!1,a,b):Xb(this.c,!0,a,b)):Ub(this.c,a.index,!0);this.h=0}};n.Wb=function(){this.g&&this.Aa()};n.Yb=function(a){var b=this;a.deltaX&&a.preventDefault();0===this.f&&this.Xa({x:-this.f});this.f+=a.deltaX;this.Wa({x:-this.f});this.I&&clearTimeout(this.I);this.I=setTimeout(function(){b.f=0;b.Aa()},200)};function z(a,b){b=void 0===b?{}:b;D.call(this,a);var c=this;this.c=Object.assign(z.b,b);this.l=va(function(){c.a.Ua()!=c.h.b&&(Zb(c),1==c.c.group&&(c.b.itemsPerPage=$b()))});this.v=this.gb.bind(this);this.C=this.sc.bind(this);this.A=this.rc.bind(this);this.u=function(){return ac(c,"previous")};this.m=function(){return ac(c,"next")};this.i=!1}u(z,D);n=z.prototype; 57n.w=function(){var a=this;this.b=this.a.D();this.b.totalPages=this.a.xa();this.b.totalItems=this.b.totalPages;1==this.c.group&&(this.b.itemsPerPage=$b());bc(this);vb(this.b,function(){var b=a.g.f;b&&a.a.Kb(b)});this.h=new Fb(this.b.cyclical,this.c.elasticEdge,this.c.center);this.h.m=this.c.expand;this.g=new Rb(this.h,this.a,this.c.group);this.g.N();this.f=new Tb(this.h,this.g,this.c);this.j=new Yb(this.h,this.f,this.a,this.Ga.bind(this),this.c);"ontouchstart"in window&&this.a.addClass(z.a.rb)}; 58n.start=function(){var a=this;this.i||(this.i=!0,this.j.w(),this.g.w(function(){a.a.addClass(z.a.Ma);Ub(a.f,a.b.currentPage-1)}),this.a.kc(this.l),this.b.s("gluepaginationcurrentpage",this.v),this.b.s("gluepaginationnext",this.m),this.b.s("gluepaginationprevious",this.u))}; 59n.destroy=function(){if(this.i){this.i=!1;if(this.f){var a=this.f;a.b&&sb(a.b)}this.g&&this.g.N();this.j&&this.j.destroy();this.a.removeClass(z.a.Ma);this.a.Bb(this.l);this.b.o("gluepaginationcurrentpage",this.v);this.b.o("gluepaginationprevious",this.C);this.b.o("gluepaginationnext",this.A);this.b.o("gluepaginationnext",this.m);this.b.o("gluepaginationprevious",this.u);this.l.cancel();this.b.g=null}};function Zb(a){a.i&&(a.g.w(function(){Ub(a.f,a.b.currentPage-1)}),bc(a))} 60function bc(a){var b=a.a.za(),c=a.a.ya();if(b)for(var d=0;d<b.length;d++){var e=a.a.da(b[d],"id");null===e&&(e=c+"-"+(d+1),a.a.V(b[d],"id",e));a.b.f[d+1]||(a.b.f[d+1]=e)}}n.sc=function(){var a=this.Ga.bind(this);Xb(this.f,!1,a,void 0)};n.rc=function(){var a=this.Ga.bind(this);Xb(this.f,!0,a,void 0)};n.gb=function(){if(!this.j.g){var a=this.h.i;a&&this.b.currentPage!=a.index+1&&Ub(this.f,this.b.currentPage-1,!0);bc(this)}}; 61function $b(){return Math.floor(document.querySelector("."+z.a.ub).offsetWidth/document.querySelector("."+z.a.kb).offsetWidth)}function ac(a,b){switch(b){case "next":a.b.currentPage=1==a.c.group?a.b.currentPage+a.b.itemsPerPage:Ab(a.b);break;case "previous":a.b.currentPage=1==a.c.group?a.b.currentPage-a.b.itemsPerPage:zb(a.b);break;default:throw Error("Only next page event and previous page event are allowed.");}}n.Ga=function(){var a=this.h.i;a&&(this.b.currentPage=a.index+1)}; 62v.Object.defineProperties(z,{a:{configurable:!0,enumerable:!0,get:function(){return Pb}},f:{configurable:!0,enumerable:!0,get:function(){return Qb}},b:{configurable:!0,enumerable:!0,get:function(){return{elasticEdge:!0,edgeFriction:4,easing:Ia,transitionDuration:.75,expand:0,jump:!1,center:!0,group:!1}}}});function M(a){D.call(this,a)}u(M,D);M.prototype.w=function(){this.g=this.a.Va();this.f=this.a.Sa();this.a.ac()||(this.b=this.c.bind(this),this.a.ic(this.b))};M.prototype.destroy=function(){this.a.Ra(this.b)};M.prototype.c=function(){this.a.Va()==this.g&&this.a.Sa()==this.f||this.a.ec();this.a.Ra(this.b)};v.Object.defineProperties(M,{c:{configurable:!0,enumerable:!0,get:function(){return{Oc:"gluecarouselimageloaded",sb:".glue-carousel-image, [data-glue-carousel-image]"}}}});function cc(){this.c=[]}cc.prototype.ha=function(){};cc.prototype.N=function(){};function dc(a,b){function c(d,e,g){return!!g[e]==!!a.c[e]}if(b.length==a.c.length&&b.every(c))return!0;a.c=b.slice();return!1};function ec(a){this.c=[];
62this.b=a;this.h=[];this.g=[];this.f=[];this.a=0}u(ec,cc); 63ec.prototype.ha=function(a){if(!dc(this,a)){var b=this.a;if(b){var c=this.g;a=Array.prototype.slice.apply(a);var d=function(k,h){return 0<k||k?h%b:!1},e=c.map(d);d=a.map(d);e=fc(e,d);d=0;for(var g=c.length;d<g;d++){var l=e.pa+e.length,f=c[d];d<e.pa||d>=l||!e?f.parentNode&&f.parentNode.removeChild(f):d>=e.pa&&d<l&&(a[e.Ba+d-e.pa]=f)}c=a[e.Ba]||this.b.firstChild;d=0;for(g=a.length;d<g;d++)0<a[d]&&(f=gc(this,d),a[d]=f,d<e.Ba?this.b.insertBefore(f,c):this.b.appendChild(f));this.g=a}}}; 64ec.prototype.N=function(){var a=Array(this.a).fill(2);this.ha(a);a=this.b.children;this.h=[];this.g=[];this.f=[];for(var b=0,c;c=a[b];b++)this.h.push(c),this.g.push(c),this.f.push(c);this.a=a.length};function gc(a,b){for(var c,d=b%a.a;d<a.a;){if((c=a.f[d])&&!c.parentNode)return c;d+=a.a}c=a.h[b%a.a].cloneNode(!0);return a.f[b]=c} 65function fc(a,b){for(var c=a.length;1<=c;c--)for(var d=0;d<=a.length-c;d++)if(!1!==a[d]&&!1!==a[d+c-1]){var e=a.slice(d,d+c);a:{var g=0;for(var l=b.length;g<l;g++){for(var f=0,k=e.length;f<k&&b[g+f]===e[f];f++);if(f==k)break a}g=-1}if(-1!=g)return{pa:d,Ba:g,length:c,slice:e}}return!1};function N(a,b,c){for(var d=[],e=2;e<arguments.length;++e)d[e-2]=arguments[e];this.a=a;this.aa.apply(this,q(d));this.c=void 0===b?this.b():b;this.c.w()}n=N.prototype;n.aa=function(){};n.destroy=function(){this.c.destroy()};n.s=function(a,b){this.a.addEventListener(a,b)};n.o=function(a,b){this.a.removeEventListener(a,b)}; 66n.O=function(a,b,c){c=void 0===c?!1:c;if("function"===typeof CustomEvent)var d=new CustomEvent(a,{detail:b,bubbles:c});else d=document.createEvent("CustomEvent"),d.initCustomEvent(a,c,!1,b);this.a.dispatchEvent(d)};function O(a){a=void 0===a?"__default":a;var b=hc[a];b||(b=ic(),hc[a]=b);return b}function ic(){var a=new A,b=new cb;yb(a,{O:function(c){return b.dispatchEvent(c)},s:function(c,d){return b.s(c,d)},o:function(c,d){return b.o(c,d)}});return a}var hc={};function jc(a,b,c){for(var d=[],e=2;e<arguments.length;++e)d[e-2]=arguments[e];N.apply(this,[a,b].concat(q(d)));var g=this;kc(this);(d=this.a.dataset.glueCarouselBreakpoints)?this.f=new kb({ba:d.split(","),enter:function(){return g.c.start()},leave:function(){return g.c.destroy()}}):this.c.start()}u(jc,N);jc.prototype.aa=function(a){this.g=a}; 67jc.prototype.b=function(){var a=this,b=O(this.a.dataset.gluePagination),c=this.a.querySelector(".glue-carousel__list");if(!c)throw Error("Element with class glue-carousel__list does not exist.");var d=new ec(c),e=document.documentElement,g=c.children,l=new Hammer.Manager(c);l.add(new Hammer.Pan({direction:Hammer.DIRECTION_HORIZONTAL}));return new z({xa:function(){return c.children.length},D:function(){return b},ha:function(f,k){d.ha(f);k()},N:function(f){d.N();f()},U:function(){return"rtl"==e.dir}, 68addClass:function(f){return a.a.classList.add(f)},removeClass:function(f){return a.a.classList.remove(f)},ua:function(f,k){return c.style[f]=k},Kb:function(f){return f.focus()},Ua:function(){return c.parentNode.getBoundingClientRect().width},ma:function(){return[].concat(q(c.children))},Vb:function(f){return f.getBoundingClientRect()},X:function(f,k,h){return f.style[k]=h},Fa:function(f,k,h){return f.setAttribute(k,h)},Da:function(f,k){return f.removeAttribute(k)},kc:function(f){return window.addEventListener("resize", 69f)},Bb:function(f){return window.removeEventListener("resize",f)},oc:function(f){l.on("panstart",function(k){f({x:k.deltaX,y:k.deltaY})})},Fb:function(f){return l.off("panstart",f)},nc:function(f){l.on("panmove",function(k){f({x:k.deltaX,y:k.deltaY})})},Eb:function(f){return l.off("panmove",f)},mc:function(f){return l.on("panend",f)},Db:function(f){return l.off("panend",f)},lc:function(f){return l.on("pancancel",f)},Cb:function(f){return l.off("pancancel",f)},jc:function(f){return c.addEventListener("mouseleave", 70f)},Ab:function(f){return c.removeEventListener("mouseleave",f)},pc:function(f){return c.addEventListener("wheel",f)},Gb:function(f){return c.removeEventListener("wheel",f)},da:function(f,k){return f.getAttribute(k)},V:function(f,k,h){return f.setAttribute(k,h)},za:function(){return g},ya:function(){return"glue-carousel"}},this.g)};jc.prototype.destroy=function(){N.prototype.destroy.call(this);this.f&&this.f.destroy()}; 71function kc(a){for(var b=a.a.querySelectorAll(M.c.sb),c=0,d=b.length;c<d;c++)lc(a,b[c])}function lc(a,b){(new M({Va:function(){return b.width},Sa:function(){return b.height},ac:function(){return b.complete},ic:function(c){return b.addEventListener("load",c)},Ra:function(c){return b.removeEventListener("load",c)},ec:function(){Zb(a.c)}})).w()};var mc={Ic:"glue-expansion-panels",fd:"glue-expansion-panel",Fc:"glue-expansion-panel-content",zd:"glue-expansion-panel-toggle",Ad:"glue-expansion-panels-toggle-all",Lc:"glue-is-expanded",Kc:"glue-is-collapsed",Mc:"glue-is-mixed"},nc={Gc:"expanded",Ec:"collapsed",Xc:"mixed"};function P(a){a=void 0===a?{isAnimated:P.a.isAnimated,panelsCount:P.a.panelsCount}:a;this.g="boolean"==typeof a.isAnimated?a.isAnimated:P.a.isAnimated;this.b=this.a="number"==typeof a.panelsCount?a.panelsCount:P.a.panelsCount;this.c="collapsed";this.f=new cb}P.prototype.ia=function(){0===this.a?this.c="":this.c=this.a==this.b?"collapsed":0==this.b?"expanded":"mixed";this.dispatchEvent("glueExpansionPanelsStatusChanged")};P.prototype.s=function(a,b){this.f.s(a,b)}; 72P.prototype.o=function(a,b){this.f.o(a,b)};
72P.prototype.dispatchEvent=function(a,b){this.f.dispatchEvent(a,b)}; 73v.Object.defineProperties(P.prototype,{isAnimated:{configurable:!0,enumerable:!0,get:function(){return this.g},set:function(a){this.g=a}},panelsCount:{configurable:!0,enumerable:!0,get:function(){return this.a},set:function(a){this.a=a}},panelsCollapsed:{configurable:!0,enumerable:!0,get:function(){return this.b},set:function(a){this.b=a}},panelsStatus:{configurable:!0,enumerable:!0,get:function(){return this.c},set:function(a){this.c=a}}}); 74v.Object.defineProperties(P,{a:{configurable:!0,enumerable:!0,get:function(){return{isAnimated:!0,panelsCount:1}}}});P.prototype.dispatchEvent=P.prototype.dispatchEvent;P.prototype.unlisten=P.prototype.o;P.prototype.listen=P.prototype.s;P.prototype.updatePanelsStatus=P.prototype.ia;function oc(a,b){a=void 0===a?"__default":a;b=void 0===b?{}:b;var c=pc[a];c||(c=new P(b),pc[a]=c);return c}var pc={};function qc(a,b){b=void 0===b?{}:b;D.call(this,a);var c=this;this.c=a;this.g=b;this.f=function(){c.c.zc(c.b.panelsStatus)}}u(qc,D);qc.prototype.w=function(){this.b=oc(this.c.na(),{isAnimated:this.g.isAnimated,panelsCount:this.c.Rb()});this.b.s("glueExpansionPanelsStatusChanged",this.f);this.b.ia()};qc.prototype.destroy=function(){this.b.panelsCount=0;this.b.ia();this.b.o("glueExpansionPanelsStatusChanged",this.f);delete pc[this.c.na()]}; 75v.Object.defineProperties(qc,{a:{configurable:!0,enumerable:!0,get:function(){return mc}}});function Q(a){D.call(this,a);var b=this;this.b=a;this.g=[];this.f=!0;this.u=function(c){c===b.i&&(b.f?b.expand():rc(b))};this.m=function(){return b.expand()};this.j=function(){return rc(b)};this.v=function(){return b.b.yc()};this.h=0}u(Q,D); 76Q.prototype.w=function(){this.c=this.b.ea();this.l=this.b.Lb();this.i=this.b.da("id");if(!this.i)throw Error("[Glue Expansion Panels Content] - An ID must be set on the content element.");this.g=this.b.Tb();"expanded"==this.b.wb()?(this.f=!1,sc(this,!1),this.b.W(""),tc(this,!1)):(this.f=!0,sc(this,!0),this.b.W("0px"));this.c.s("glueExpansionPanelsToggleContent",this.u);this.c.s("glueExpansionPanelsExpandAllContent",this.m);this.c.s("glueExpansionPanelsCollapseAllContent",this.j);this.c.isAnimated&& 77this.l.addEventListener("transitionend",this.v)};Q.prototype.destroy=function(){this.b.removeClass("glue-is-collapsed");this.b.removeClass("glue-is-expanded");this.b.W("");this.b.qc();this.b.bb(!1,this.g);this.g=[];this.c.o("glueExpansionPanelsToggleContent",this.u);this.c.o("glueExpansionPanelsExpandAllContent",this.m);this.c.o("glueExpansionPanelsCollapseAllContent",this.j);this.c.isAnimated&&this.l.removeEventListener("transitionend",this.v)}; 78Q.prototype.expand=function(){!1!==this.f&&(sc(this,!1),uc(this,!1),tc(this,!1))};function rc(a){!0!==a.f&&(sc(a,!0),uc(a,!0),tc(a,!0))}function sc(a,b){a.b.uc(b);a.b.bb(b,a.g);var c=b?"glue-is-expanded":"glue-is-collapsed";a.b.addClass(b?"glue-is-collapsed":"glue-is-expanded");a.b.removeClass(c)}function uc(a,b){a.h=a.b.Ta();a.c.isAnimated?(a.b.W(a.h+"px"),b&&(a.h=a.b.Ta(),window.setTimeout(a.b.W,1,"0px"))):a.b.W(b?"0px":"")} 79function tc(a,b){b?a.c.panelsCollapsed++:a.c.panelsCollapsed--;a.c.ia();a.f=b}v.Object.defineProperties(Q,{a:{configurable:!0,enumerable:!0,get:function(){return mc}}});function vc(){N.apply(this,arguments)}u(vc,N); 80vc.prototype.b=function(){var a=this.a,b=a.closest(".glue-expansion-panel"),c=oc(a.closest(".glue-expansion-panels").dataset.glueExpansionPanelsKey);return new Q({ea:function(){return c},Lb:function(){return a},da:function(d){return a.getAttribute(d)},wb:function(){return a.dataset.glueExpansionPanelInitial},addClass:function(d){return b.classList.add(d)},removeClass:function(d){return b.classList.remove(d)},uc:function(d){d?(b.setAttribute("aria-expanded","false"),a.setAttribute("aria-hidden","true")): 81(b.setAttribute("aria-expanded","true"),a.removeAttribute("aria-hidden"))},qc:function(){b.removeAttribute("aria-expanded");a.removeAttribute("aria-hidden")},Ta:function(){return a.scrollHeight},W:function(d){a.style.height=d},yc:function(){"0px"!=a.style.height&&(a.style.height="")},Tb:function(){return gb(a).map(function(d){return d.getAttribute("tabindex")})},bb:function(d,e){var g=gb(a);d?g.forEach(function(l){l.setAttribute("tabindex",-1)}):g.forEach(function(l,f){null===e[f]?l.removeAttribute("tabindex"): 82l.setAttribute("tabindex",e[f])})}})};vc.prototype.destroy=function(){N.prototype.destroy.call(this)};function wc(a){D.call(this,a);var b=this;
82this.b=a;this.f=function(c){c.preventDefault();xc(b)};this.g=function(c){var d=c.key;if("Enter"==d||13==d)c.preventDefault(),xc(b)}}u(wc,D);wc.prototype.w=function(){this.h=this.b.ea();this.c=this.b.Mb();if(!this.c)throw Error("[Glue Expansion Panels Toggle] - Toggle is not linked to a content element.");if(!this.b.Ib(this.c))throw Error("[Glue Expansion Panels Toggle] - Cannot find content element to link toggle to.");this.b.va(this.c);this.b.K(this.f);this.b.fa(this.g)}; 83wc.prototype.destroy=function(){this.b.Ca();this.b.J(this.f);this.b.ca(this.g)};function xc(a){a.h.dispatchEvent("glueExpansionPanelsToggleContent",a.c)};function yc(){N.apply(this,arguments)}u(yc,N); 84yc.prototype.b=function(){var a=this,b=this.a,c=oc(b.closest(".glue-expansion-panels").dataset.glueExpansionPanelsKey);return new wc({ea:function(){return c},Mb:function(){return b.hasAttribute("href")?b.getAttribute("href").replace(/^#/,""):b.dataset.glueExpansionPanelToggleFor},Ib:function(d){return document.querySelector("#"+d)},K:function(d){return a.s("click",d)},J:function(d){return a.o("click",d)},fa:function(d){return a.s("keydown",d)},ca:function(d){return a.o("keydown",d)},addClass:function(d){return b.classList.add(d)}, 85removeClass:function(d){return b.classList.remove(d)},va:function(d){b.setAttribute("aria-controls",d);b.setAttribute("role","button");b.setAttribute("tabindex","0")},Ca:function(){b.removeAttribute("aria-controls");b.removeAttribute("role");b.removeAttribute("tabindex")},Hd:function(d){b.setAttribute("aria-expanded",d)}})};function zc(a){D.call(this,a);var b=this;this.g=a;this.c=function(c){c.preventDefault();Ac(b)};this.f=function(c){var d=c.key;if("Enter"==d||13==d)c.preventDefault(),Ac(b)}}u(zc,D);zc.prototype.w=function(){this.b=this.g.ea();this.a.va();this.a.K(this.c);this.a.fa(this.f)};zc.prototype.destroy=function(){this.a.Ca();this.a.J(this.c);this.a.ca(this.f)}; 86function Ac(a){"expanded"==a.b.panelsStatus?a.b.dispatchEvent("glueExpansionPanelsCollapseAllContent"):a.b.dispatchEvent("glueExpansionPanelsExpandAllContent");a.b.ia()}v.Object.defineProperties(zc,{a:{configurable:!0,enumerable:!0,get:function(){return mc}},c:{configurable:!0,enumerable:!0,get:function(){return nc}}});function Bc(){N.apply(this,arguments)}u(Bc,N);Bc.prototype.b=function(){var a=this,b=oc(this.a.closest(".glue-expansion-panels").dataset.glueExpansionPanelsKey);return new zc({ea:function(){return b},K:function(c){return a.s("click",c)},J:function(c){return a.o("click",c)},fa:function(c){return a.s("keydown",c)},ca:function(c){return a.o("keydown",c)},va:function(){a.a.setAttribute("role","button");a.a.setAttribute("tabindex","0")},Ca:function(){a.a.removeAttribute("role");a.a.removeAttribute("tabindex")}})};function Cc(a,b,c){for(var d=[],e=2;e<arguments.length;++e)d[e-2]=arguments[e];N.apply(this,[a,b].concat(q(d)));var g=this;this.h=[];this.f=[];this.g=[];[].concat(q(this.a.querySelectorAll(".glue-expansion-panels-toggle-all"))).forEach(function(l){g.h.push(new Bc(l))});[].concat(q(this.a.querySelectorAll(".glue-expansion-panel-content"))).forEach(function(l){g.f.push(new vc(l))});[].concat(q(this.a.querySelectorAll(".glue-expansion-panel-toggle"))).forEach(function(l){g.g.push(new yc(l))})}u(Cc,N); 87Cc.prototype.b=function(){var a=this.a;return new qc({na:function(){return a.dataset.glueExpansionPanelsKey},Rb:function(){return a.getElementsByClassName("glue-expansion-panel").length},zc:function(b){a.classList.remove("glue-is-collapsed","glue-is-mixed","glue-is-expanded");b&&a.classList.add("glue-is-"+b)}},this.i)};Cc.prototype.aa=function(a){this.i=a}; 88Cc.prototype.destroy=function(){N.prototype.destroy.call(this);for(var a;0<this.h.length;)a=this.h.pop(),a.destroy();for(;0<this.f.length;)a=this.f.pop(),a.destroy();for(;0<this.g.length;)a=this.g.pop(),a.destroy()};var Dc={ad:"glue-header-options",Uc:"No element with 'glue-header' class was found.\n Header component needs a root element.",Rc:"No element with 'glue-header__bar' class was found.\n This is required by Header component.",lb:"No element with 'glue-header__drawer' class was found.\n This is required by Header component.",Vc:"No element with 'glue-header__drawer
88-toggle-btn' class was found.\n This is required by Header component.",Tc:"No element with 'glue-header__link-bar' class was found.\n This is required by Header component.", 89ld:"up",kd:"down",Jc:"Incorrect data type"},Ec={drawer:!0,hideOnScroll:!0,steppedNav:!1},Fc={},Gc=(Fc["aria-expanded"]=!1,Fc);y("DefaultAttr$$module$node_modules$$google$glue$lib$ui$header$constants",Gc);function R(a,b){for(var c=1;c<arguments.length;++c);this.a=a}R.prototype.destroy=function(){};R.prototype.O=function(a,b,c){c=void 0===c?!1:c;if("function"===typeof CustomEvent)var d=new CustomEvent(a,{detail:b,bubbles:c});else d=document.createEvent("CustomEvent"),d.initCustomEvent(a,c,!1,b);this.a.dispatchEvent(d)};var Hc={lb:"No element with 'glue-header__drawer' class was found.\n Drawer component needs a root element.",OPEN:"glueHeaderDrawerOpen",Cc:"glueHeaderDrawerClose",Bd:"toggleBtn"},Ic={},Jc=(Ic.role="dialog",Ic["aria-label"]="Navigation drawer",Ic.tabindex=0,Ic);y("DefaultAttr$$module$node_modules$$google$glue$lib$ui$header$drawer$constants",Jc);function S(a,b){R.call(this,a);this.j=b;this.c=!0;this.b=!1;this.f=[];Kc(this)}u(S,R); 90function Kc(a){if(!a.a.classList.contains("glue-header__drawer"))throw Error(Hc.MISSING_DRAWER_ELEMENT);a.i=function(){a.b&&(a.a.classList.remove("glue-is-animating"),a.c?a.c=!1:(a.a.classList.remove("glue-is-visible"),a.c=!0),a.b=!1)};a.g=function(){return document.body.classList.add("glue-mod-no-scroll")};a.h=function(){return document.body.classList.remove("glue-mod-no-scroll")};Lc(a);a.a.addEventListener("transitionend",a.i);document.body.addEventListener("glueHeaderDrawerOpen",a.g);document.body.addEventListener("glueHeaderDrawerClose", 91a.h)}S.prototype.destroy=function(){this.a.removeEventListener("transitionend",this.i);document.body.removeEventListener("glueHeaderDrawerOpen",this.g);document.body.removeEventListener("glueHeaderDrawerClose",this.h)};S.prototype.open=function(){this.c&&!this.b&&(this.b=!0,this.O("glueHeaderDrawerOpen",{},!0),this.a.classList.add("glue-is-visible"),this.a.classList.add("glue-is-animating"),this.a.focus(),this.a.removeAttribute("aria-hidden"),Mc(this))}; 92S.prototype.close=function(){this.c||this.b||(this.b=!0,this.O("glueHeaderDrawerClose",{},!0),this.a.classList.add("glue-is-animating"),this.j.focus(),this.sa(),Nc(this))};function Oc(a){return a.a.classList.contains("glue-is-visible")}function Lc(a){Object.keys(Jc).forEach(function(b){a.a.setAttribute(b,""+Jc[b])})}S.prototype.sa=function(){this.a.setAttribute("aria-hidden",!0)}; 93function Mc(a){for(var b=a.a;b&&b.parentNode;)[].concat(q(b.parentNode.children)).forEach(function(c){c!==b&&"true"!==c.getAttribute("aria-hidden")&&(a.f.push(c),c.setAttribute("aria-hidden","true"))}),b=b.parentNode}function Nc(a){a.f.forEach(function(b){b.removeAttribute("aria-hidden")});a.f=[]};y("PlacementOptions$$module$node_modules$$google$glue$lib$ui$popover$constants",{Ia:"left",Na:"right",Dd:"top",Bc:"bottom"});var Pc={Ed:"trigger",hd:"placement",Hc:"takeFocus",jd:"root",Sc:"Missing or invalid ID. Popover requires a unique ID",Wc:"Popover trigger element is missing",Qc:"Popover dialog element is missing"};y("customEvent$$module$node_modules$$google$glue$lib$ui$popover$constants",{Zc:"gluepopovershow",Dc:"gluepopoverclose"}); 94var Qc={},Rc={},Sc={},Tc={ROOT:{},TRIGGER:(Qc.role="button",Qc.tabindex=0,Qc["aria-controls"]="dialog",Qc),CLOSE:(Rc.role="button",Rc.tabindex=0,Rc),DIALOG:(Sc.role="dialog",Sc.tabindex=-1,Sc["aria-hidden"]=!0,Sc)};y("defaultAttr$$module$node_modules$$google$glue$lib$ui$popover$constants",Tc);var Uc={},Vc=(Uc.trigger="click",Uc.placement="bottom",Uc.takeFocus="true",Uc);function T(a,b,c,d){b=void 0===b?{}:b;R.call(this,a,b,c,d);this.g=!0;Wc(this,b,c,d)}u(T,R); 95function Wc(a,b,c,d){a.h=Object.assign({},Vc,b,Xc(a));c?a.c=c:a.c=a.a.querySelector(".glue-popover__trigger");if(!a.c)throw Error(Pc.MISSING_TRIGGER);if(d)a.b=d;else if(a.b=a.a.querySelector(".glue-popover__dialog"),!a.b)throw Error(Pc.MISSING_DIALOG);a.f=a.b.querySelector(".glue-popover__close-btn");b=Yc(a.h.trigger);Zc(a);a.j=function(e){e.preventDefault();a.g&&($c(a)?U(a.c,e)&&"hover"!=a.h.trigger?a.close():!U(a.f,e)||e.keyCode&&13!==e.keyCode&&32!==e.keyCode||a.close():a.open())};a.i=function(e){e.stopPropagation();
96a.g&&(27===e.keyCode?a.close():U(a.f,e)?a.close():!$c(a)&&U(a.c,e)&&13===e.keyCode&&a.open(),9===e.keyCode&&U(a.b,e)&&a.f&&a.f.classList.add("glue-is-shown"))};a.c.addEventListener(b,a.j);a.c.addEventListener("keydown",a.i);"click"==b?(a.u=function(e){var g=a.a.contains(e.target);U(a.b,e)||U(a.c,e)||g||"click"!==e.type||a.close()},document.addEventListener("click",a.u)):"mouseover"==b&&(a.l=function(e){var g=a.c.getBoundingClientRect();g=new ua(g.top,g.right,g.bottom,g.left);var l=a.b.getBoundingClientRect(); 97l=new ua(l.top,l.right,l.bottom,l.left);g.expand(-2,-2,-2,-2);l.expand(-2,-2,-2,-2);e=new ta(e.clientX,e.clientY);l=!l.contains(e);!g.contains(e)&&l&&a.close()},a.m=function(){return a.close()},a.c.addEventListener("mouseleave",a.l),a.b.addEventListener("mouseleave",a.l),window.addEventListener("blur",a.m));a.b.addEventListener("keydown",a.i);a.b.addEventListener("click",a.j)} 98T.prototype.destroy=function(){var a=Yc(this.h.trigger);this.close();this.c.removeEventListener(a,this.j);document.removeEventListener("click",this.u);this.b.removeEventListener("keydown",this.i);this.c.removeEventListener("keydown",this.i);this.b.removeEventListener("click",this.j);this.c.removeEventListener("mouseleave",this.l);this.b.removeEventListener("mouseleave",this.l);window.removeEventListener("blur",this.m);this.a.remove()};function U(a,b){return a?a.contains(b.target):!1} 99function Xc(a){var b={},c=a.a.getAttribute("data-glue-popover-trigger"),d=a.a.getAttribute("data-glue-popover-placement");a=a.a.getAttribute("data-glue-popover-takeFocus");c&&(b.trigger=c);d&&(b.placement=d);a&&(b.takeFocus=d);return b}function Yc(a){return"hover"===a?"mouseover":a}function ad(a,b){Object.keys(b).forEach(function(c){a.setAttribute(c,b[c])})}function Zc(a){ad(a.b,Tc.DIALOG);ad(a.a,Tc.ROOT);a.c&&ad(a.c,Tc.TRIGGER);a.f&&ad(a.f,Tc.CLOSE)} 100function bd(a,b){"true"==a.h.takeFocus&&("gluepopovershow"===b?a.b.focus():a.c&&a.c.focus())}T.prototype.open=function(){if(this.g){var a={};ad(this.b,(a["aria-hidden"]=!1,a));this.a.classList.add("glue-is-shown");this.b.classList.add("glue-popover__dialog--"+this.h.placement);bd(this,"gluepopovershow");this.O("gluepopovershow",{},!1)}}; 101T.prototype.close=function(){if($c(this)){var a={};ad(this.b,(a["aria-hidden"]=!0,a));this.a.classList.remove("glue-is-shown");this.f&&this.f.classList.remove("glue-is-shown");bd(this,"gluepopoverclose");this.O("gluepopoverclose",{},!1)}};function $c(a){return a.a.classList.contains("glue-is-shown")};var cd={trigger:"hover",takeFocus:"false"};function dd(a){R.call(this,a);this.c=document.querySelector(".glue-header__site-switcher-menu");this.f=this.a.querySelector(".glue-header__site-switcher-trigger");if(!this.c)throw Error("Header Site Switcher could not find a menu element.");if(!this.f)throw Error("Header Site Switcher could not find the header lockup element.");this.b=new T(this.a,cd,this.f,this.c);ed(this)}u(dd,R);function ed(a){var b=a.f.getBoundingClientRect();b.width&&(a.c.style.width=b.width+"px")}dd.prototype.close=function(){this.b.close()}; 102dd.prototype.destroy=function(){this.b.destroy()};var fd={trigger:"hover",takeFocus:"false",placement:"bottom"},gd={trigger:"hover",takeFocus:"false",placement:"right"},hd={Cd:"At least one Deep Nav menu has more than 10 elements.",Yc:"At least one Deep Nav menu has fewer than 2 elements."};function id(a){R.call(this,a);jd(this)}u(id,R); 103function jd(a){a.b=[];a.a.querySelectorAll(".glue-header__deep-nav").forEach(function(b){var c=Array.from(b.children).filter(function(g){return g.classList.contains("glue-header__deep-nav-dialog")});c=p(c);for(var d=c.next();!d.done;d=c.next()){d=d.value;if(10<d.childElementCount)throw Error(hd.TOO_MANY);if(2>d.childElementCount)throw Error(hd.NOT_ENOUGH);}c=b.querySelector(".glue-header__deep-nav-trigger");d=b.querySelector(".glue-header__deep-nav-dialog");var e=b.parentElement.classList.contains("glue-header__deep-nav-dialog")? 104gd:fd;"A"===c.nodeName&&c.removeAttribute("href");b.classList.contains("glue-header--is-active")&&d.classList.add("glue-header__deep-nav--with-active-link");b.parentElement.classList.contains("glue-header__deep-nav-dialog")&&b.parentElement.classList.add("glue-header__deep-nav--with-subnav");a.b.push(new T(b,e,c,d))})}id.prototype.destroy=function(){this.b.forEach(function(a){return a.destroy()});this.b.length=0};id.prototype.close=function(){this.b.forEach(function(a){return a.close()})}; 105function kd(a){a.b.forEach(function(b){b.close();b.g=!1})}function ld(a){a.b.forEach(function(b){b.g=!0})};function md(a){R.call(this,a);this.j=1;nd(this);od(this);a=this.a.parentElement.querySelector(".glue-header__link-bar");if(!a)throw Error("Stepped Nav can't find the Link Bar Header element.");(a=a.firstElementChild.cloneNode(!0))&&pd(this,a);this.m=new qd(this.b);this.l=new qd(this.c);this.g.currentPage=this.j}u(md,R);
106function nd(a){a.b=a.a.querySelector(".glue-header__stepped-nav-menus");if(!a.b)throw Error("The container element for Stepped Nav Pages is missing");a.b.classList.add("glue-pagination__pages");a.b.setAttribute("data-glue-pagination","stepped-nav");a.g=O("stepped-nav");a.u=function(){var b=rd(a);if(b){var c=sd(a),d=td(b);b.classList.remove("glue-header__stepped-nav-parent-position");c.classList.remove("glue-header__stepped-nav-parent-position");(b=rd(a,d))&&b.classList.add("glue-header__stepped-nav-parent-position"); 107(d=sd(a,d))&&d.classList.add("glue-header__stepped-nav-parent-position")}};a.g.s("gluepaginationcurrentpage",a.u)} 108function od(a){a.c=a.a.querySelector(".glue-header__stepped-nav-controls-container");a.f=a.a.querySelector(".glue-header__stepped-nav-controls");a.v=a.a.querySelector(".glue-header__stepped-nav-controls-title");if(!a.c||!a.f||!a.v)throw Error("Some of the Stepped Nav controls elements are missing.");a.f.remove();a.h=a.f.querySelector(".glue-header__stepped-nav-subnav-icon");a.h&&a.h.remove();a.i=function(b){a.c.contains(b.target)&&(b=rd(a),sd(a),a.g.currentPage=td(b))};a.c.addEventListener("click", 109a.i);a.c.setAttribute("data-glue-pagination","stepped-nav");a.f.classList.add("glue-pagination__page");a.f.setAttribute("data-glue-pagination","stepped-nav")} 110function pd(a,b,c){b.classList.add("glue-pagination__page");b.setAttribute("data-glue-pagination","stepped-nav");a.b.appendChild(b);a.v.innerText=c;c=a.f.cloneNode(!0);b.classList.contains("glue-header__stepped-nav-parent-position")&&c.classList.add("glue-header__stepped-nav-parent-position");a.c.appendChild(c);new ud(b);c=a.b.children.length;for(var d=p(b.children),e=d.next();!e.done;e=d.next()){e=e.value;var g=a,l=e,f=vd(l,"UL"),k=vd(l,"A");!f&&l.classList.contains("glue-header--is-active")&&(g.j= 111c);f&&k&&(f.remove(),f.setAttribute("data-glue-stepped-nav-parent-index",c),l=pd(g,f,k.innerText.trim()),k.setAttribute("data-glue-pagination-page",l),(f=vd(k,"svg"))&&f.remove(),g.h&&(g.h.setAttribute("data-glue-pagination-page",l),k.appendChild(g.h.cloneNode(!0))));e.classList.contains("glue-header--is-active")&&b.classList.add("glue-header__stepped-nav-parent-position")}return c}function td(a){return a.dataset.glueSteppedNavParentIndex?Number(a.dataset.glueSteppedNavParentIndex):0} 112function rd(a,b){b=void 0===b?a.g.currentPage:b;return a.b.children.item(b-1)}function sd(a,b){b=void 0===b?a.g.currentPage:b;return a.c.children.item(b-1)}function vd(a,b){return Array.from(a.children).find(function(c){return c.nodeName==b})}md.prototype.destroy=function(){this.m&&this.m.destroy();this.l&&this.l.destroy();this.f.removeEventListener("click",this.i);this.g.o("gluepaginationcurrentpage",this.u)};function wd(a,b){R.call(this,a,b);this.G=this.i=!1;this.F=0;this.l=!0;this.v=!1;this.M=!0;xd(this,b)}u(wd,R); 113function xd(a,b){var c=void 0;if(!a.a.classList.contains("glue-header"))throw Error(Dc.MISSING_ROOT_ELEMENT);a.c=Object.assign(Object.create(Ec),b,yd(a));a.h=zd(a);a.m=zd(a,!0);a.f=Ad(a);if(a.c.drawer){b=a.a.querySelector(".glue-header__drawer");c=a.h.querySelector(".glue-header__link-bar");if(null===b)throw Error(Dc.MISSING_DRAWER_ELEMENT);if(null===c)throw Error(Dc.MISSING_LINK_BAR_ELEMENT);(new Hammer.Manager(c.parentElement)).on("swipeleft swiperight",function(){});c=new Hammer.Manager(a.h);c.add(new Hammer.Swipe({direction:Hammer.DIRECTION_HORIZONTAL})); 114a.u=a.a.querySelector(".glue-header__drawer-toggle-btn");if(null===a.u)throw Error(Dc.MISSING_TOGGLE_BTN_ELEMENT);a.b=new S(b,a.u)}else a.a.classList.add("glue-header-no-drawer");V(a);Bd(a);a.I=function(d){a.c.drawer&&(Oc(a.b)?(a.u.setAttribute("aria-expanded",!1),a.b.a.contains(d.target)?d.target.classList.contains("glue-button")&&a.b.close():a.b.close()):d.target===a.u&&(a.u.setAttribute("aria-expanded",!0),a.b.open()))};a.L=function(d){d=27===d.keyCode||13===d.keyCode;a.c.drawer&&Oc(a.b)&&d&&a.b.close()}; 115a.Y=function(){return Cd(a)};a.T=function(){a.a.classList.add("glue-is-showing-drawer");a.a.setAttribute("aria-expanded",!0);if(a.g){var d=a.g.b;d.close();d.g=!1}a.j&&kd(a.j)};a.S=function(){a.a.classList.remove("glue-is-showing-drawer");a.a.setAttribute("aria-expanded",!1);if(a.g){var d=a.g;d.b.g=!0;ed(d)}a.j&&ld(a.j)};a.A=function(){a.v&&(a.i=!1,a.v=!1,a.f.classList.remove("glue-is-animating"))};a.ka=function(){a.c.drawer&&Oc(a.b)&&a.b.close()};a.a.addEventListener("click",a.I);a.a.addEventListener("keydown", 116a.L);Bd(a);a.c.drawer&&a.a.addEventListener("glueHeaderDrawerOpen",a.T);a.c.drawer&&a.a.addEventListener("glueHeaderDrawerClose",a.S);window.addEventListener("scroll",a.Y);a.h.addEventListener("transitionend",a.A);a.m.addEventListener("transitionend",a.A);c&&c.on("swipe",a.ka);Dd(a);a.C.s(function(d){"sm"===d&&V(a)});if(c=a.a.querySelector(".glue-header__site-switcher"))a.g=new dd(c);a.j=new id(a.h);if(a.c.steppedNav&&(c=a.a.querySelector(".glue-header__stepped-nav"))){a.a.classList.add("glue-header-stepped-nav-enabled"); 117try{a.Z=new md(c)}catch(d){throw a.a.classList.remove("glue-header-stepped-nav-enabled"),d;}}} 118wd.prototype.destroy=function(){var a=this;this.a.removeEventListener("click",this.I);this.a.removeEventListener("keydown",this.L);this.h.removeEventListener("transitionend",this.A);this.m.removeEventListener("transitionend",this.A);window.removeEventListener("scroll",this.Y);window.cancelAnimationFrame(this.ja);this.C.o(function(b){"sm"===b&&V(a)});this.C.destroy();this.c.drawer&&(this.a.removeEventListener("glueHeaderDrawerOpen",this.T),this.a.removeEventListener("glueHeaderDrawerClose",this.S), 119this.b.destroy());this.g&&this.g.destroy();this.j&&this.j.destroy();this.Z&&this.Z.destroy()};function yd(a){var b={};if(a=a.a.getAttribute("glue-header-options")){var c=Ed(a);b=Object.keys(Ec).filter(function(e){return typeof c[e]!==typeof Ec[e]});if(b.length){var d=[];b.forEach(function(e){var g="Incorrect data type: "+e+". "+("Found: "+typeof Ec[e])+" "+("Required: "+typeof c[e]);c[e]&&d.push(g)});d.forEach(function(e){throw Error(e);})}b=c}return b} 120function Ed(a){var b=JSON.parse(a);Object.keys(b).forEach(function(c){b.hasOwnProperty(c)&&("true"===b[c]?b[c]=!0:"false"===b[c]&&(b[c]=!1))});return b}function Cd(a){a.G||(a.ja=window.requestAnimationFrame(function(){Fd(a);a.G=!1}),a.G=!0)} 121function Fd(a){var b=a.f.classList.contains("glue-header-is-wholly-scrolled"),c=a.F>=window.scrollY?"up":"down",d=50>=document.body.clientHeight-window.scrollY-window.innerHeight;a.l||"down"!==c||b||a.i?a.l||"up"!==c||!b||a.i||d?a.l&&!a.i&&b&&Gd(a):0!==a.F-window.scrollY&&Gd(a):window.scrollY>a.f.clientHeight&&Hd(a);a.l=0>=window.scrollY;a.F=window.scrollY;Id(a);a.M=!1;a.l&&V(a);a.i&&500>=window.pageYOffset&&window.requestAnimationFrame(function(){Cd(a)})} 122function Jd(a){"block"===window.getComputedStyle(a.m).display?(a.h.style.top="0",a.h.style.position="fixed"):a.h.style.position="static"}function V(a,b){b=void 0===b?"static":b;if(a.c.hideOnScroll){var c=a.f;"block"===window.getComputedStyle(a.m).display&&Jd(a);"static"===b?c.style.top="-"+c.clientHeight+"px":setTimeout(function(){c.style.top=(0).toString()},300);c.style.position=b}} 123function zd(a,b){var c=(void 0===b?0:b)?"glue-header__bar--mobile":"glue-header__bar--desktop";a=[].concat(q(a.a.querySelectorAll(".glue-header__bar"))).filter(function(d){return d.classList.contains(c)});if(!a)throw Error(Dc.MISSING_HEADER_BAR_ELEMENT);return a[0]}
123function Bd(a){Object.keys(Gc).forEach(function(b){a.a.setAttribute(b,""+Gc[b])})} 124function Dd(a){a.C=new kb({ba:["md","sm"],enter:function(){a.f=Ad(a);V(a);a.b&&a.b.sa()},leave:function(){a.c.drawer&&Oc(a.b)&&a.b.close();a.b&&a.b.a.removeAttribute("aria-hidden");a.f=Ad(a);V(a);a.g&&ed(a.g)}})}function Hd(a){a.c.hideOnScroll&&(a.i=!0,a.v=!0,a.f.classList.add("glue-header-is-wholly-scrolled","glue-is-animating"),V(a,"fixed"),a.g&&a.g.close(),a.j&&a.j.close())} 125function Gd(a){a.c.hideOnScroll&&(a.i=!0,a.v=!0,a.f.classList.add("glue-is-animating"),a.f.classList.remove("glue-header-is-wholly-scrolled"),a.g&&(a=a.g,a.b.g=!0,ed(a)))}function Id(a){a.l?a.f.classList.remove("glue-header--rewind-box-shadow"):a.l||a.i||a.M||window.scrollY>a.f.clientHeight&&a.f.classList.add("glue-header--rewind-box-shadow")}function Ad(a){return"block"===window.getComputedStyle(a.m).display?a.m:a.h};function W(a,b){var c=this;this.a=a;this.g=document.activeElement;this.c=b;this.f=!1;this.b=[];this.j=function(d){d.stopPropagation();c.close()};this.l=function(d){d.stopPropagation();"Escape"!==d.key&&27!==d.keyCode||c.close()};this.h=function(d){c.f||(c.a.contains(d.target)?c.g=d.target:(Kd(c,c.a),c.g===document.activeElement&&Ld(c,c.a),c.g=document.activeElement))};this.m=function(){c.a.classList.remove("glue-modal-closing");c.c&&c.c.focus();c.a.removeEventListener("transitionend",c.m)};Md(this)} 126function Md(a){var b=a.a.querySelector(".glue-modal__close-btn");if(!b)throw Error("The close button is missing from the modal.");a.i=b;if(void 0==a.c)throw Error("The focusAfterClosed argument is missing from the constructor call.");}function Kd(a,b){for(var c=0;c<b.children.length;c++){var d=b.children[c];if(Nd(a,d)||Kd(a,d))return!0}return!1}function Ld(a,b){for(var c=b.children.length-1;0<=c;c--){var d=b.children[c];if(Nd(a,d)||Ld(a,d))return!0}return!1} 127function Nd(a,b){if(!fb(b))return!1;a.f=!0;try{b.focus()}catch(c){throw Error(c);}a.f=!1;return b===document.activeElement}W.prototype.open=function(){this.a.classList.add("glue-modal-open");var a=new CustomEvent("GlueModal:opened");this.a.dispatchEvent(a);this.i.addEventListener("click",this.j);document.body.classList.add("glue-mod-no-scroll");document.addEventListener("keydown",this.l);document.addEventListener("focus",this.h,!0);Kd(this,this.a);Od(this)}; 128W.prototype.close=function(){this.a.classList.remove("glue-modal-open");this.a.classList.add("glue-modal-closing");var a=new CustomEvent("GlueModal:closed");this.a.dispatchEvent(a);document.body.classList.remove("glue-mod-no-scroll");document.removeEventListener("focus",this.h,!0);this.i.removeEventListener("click",this.j);document.removeEventListener("keydown",this.l);this.a.addEventListener("transitionend",this.m);Pd(this)}; 129function Od(a){for(var b=a.a;b&&b.parentNode;)[].concat(q(b.parentNode.children)).forEach(function(c){c!==b&&"true"!==c.getAttribute("aria-hidden")&&(a.b.push(c),c.setAttribute("aria-hidden","true"))}),b=b.parentNode}function Pd(a){a.b.forEach(function(b){b.removeAttribute("aria-hidden")});a.b=[]}W.prototype.close=W.prototype.close;W.prototype.open=W.prototype.open;var Qd={fb:"active",bd:"glue-pagination__page-list",cd:"glue-pagination__page-list-button",dd:"glue-pagination__page-list-button-container",Ha:"glue-is-focused-within"},Rd={ed:"_PAGE_"};function Sd(a,b,c,d){function e(g){1===g?b.next():b.H();d(b.currentPage)}switch(a.key||a.which||a.keyCode){case "ArrowRight":case 39:e(c?-1:1);break;case "ArrowLeft":case 37:e(c?1:-1)}}function Td(a,b,c,d){var e=a.key||a.which||a.keyCode;if("Enter"==e||13==e)a.preventDefault(),b.currentPage=c,setTimeout(function(){return d(b.currentPage)},1)};function X(a){D.call(this,a);var b=this;this.f=function(c){c!=b.b.currentPage?b.b.currentPage=c:(c=b.b,c.i=!1,clearInterval(c.j),c=b.b,c.g&&c.g());b.a.ab()};this.g=function(c){return Ud(b,c)};this.h=function(){return Vd(b)};this.i=function(){var c=b.b;c.i=!1;clearInterval(c.j);b.a.cb(!0)};this.c=function(){b.a.cb(!1);tb(b.b)}}u(X,D);X.prototype.w=function(){this.b=this.a.D();this.a.K(this.f);this.a.fa(this.g);this.a.gc(this.i);this.a.fc(this.c);this.b.s("gluepaginationcurrentpage",this.h);Vd(this)}; 130X.prototype.destroy=function(){this.a.J(this.f);this.a.ca(this.g);this.a.yb(this.i);this.a.xb(this.c);this.b.o("gluepaginationcurrentpage",this.h)};function Vd(a){a.a.wc(a.b.currentPage);a.a.vc(a.b.currentPage);a.a.tc(a.b.currentPage);setTimeout(function(){return a.a.ab()},1)}function Ud(a,b){Sd(b,a.b,a.a.U(),function(c){return a.a.focus(c)})}v.Object.defineProperties(X,{a:{configurable:!0,enumerable:!0,get:function(){return Qd}},c:{configurable:!0,enumerable:!0,get:function(){return Rd}}});function ud(a,b,c){for(var d=[],e=2;e<arguments.length;++e)d[e-2]=arguments[e];N.apply(this,[a,b].concat(q(d)))}u(ud,N);ud.prototype.aa=function(a){this.f=a=void 0===a?{}:a}; 131ud.prototype.b=function(){function a(){}var b=this,c=O(this.a.dataset.gluePagination),d=this.a.querySelectorAll(".glue-pagination__page-list-button-container"),e=this.a.querySelectorAll("[data-glue-pagination-page]"),g=[],l=[];return new X({D:function(){return c},vc:function(f){for(var k=0,h;h=e[k];k++)h.setAttribute("aria-selected",k==f-1)},ab:function(){for(var f=0,k;k=e[f];f++)c.f[f+1]&&k.setAttribute("aria-controls",c.f[f+1])},tc:function(f){for(var k=0,h;h=d[k];k++){var m=X.a.fb;k==f-1?h.classList.add(m): 132h.classList.remove(m)}},wc:function(f){for(var k=0,h;h=e[k];k++)h.setAttribute("tabindex",k===f-1?"0":"-1")},Fd:function(f){return e[f-1].getAttribute("aria-label")},Id:function(f,k){e[f-1].setAttribute("aria-label",k)},K:function(f){a=function(k){(k=parseInt(k.target.dataset.gluePaginationPage,10))&&f(k)};b.s("click",a)},J:function(){return b.o("click",a)},fa:function(f){b.a.addEventListener("keydown",f)},ca:function(f){return b.o("keydown",f)},gc:function(f){for(var k={P:0},h=void 0;h=e[k.P];k= 133{P:k.P},k.P++){var m=function(t){return function(){return f(t.P+1)}}(k);l[k.P]=m;h.addEventListener("focus",m)}},yb:function(){for(var f=0,k;k=e[f];f++)k.removeEventListener("focus",l[f])},fc:function(f){for(var k={R:0},h=void 0;h=e[k.R];k={R:k.R},k.R++){var m=function(t){return function(){return f(t.R+1)}}(k);g[k.R]=m;h.addEventListener("blur",m)}},xb:function(){for(var f=0,k;k=e[f];f++)k.removeEventListener("blur",g[f])},cb:function(f){f?b.a.classList.add(X.a.Ha):b.a.classList.remove(X.a.Ha)},focus:function(f){b.a.querySelector('[data-glue-pagination-page="'+ 134f+'"]').focus()},U:function(){return!!b.a.closest("[dir=rtl]")}},this.f)};function Wd(a){D.call(this,a);var b=this;this.c=function(){return Xd(b)};this.g=function(){return Yd(b,"previous")};this.f=function(){return Yd(b,"next")};this.j=function(){return tb(b.b)};this.l=function(){var c=b.b;c.i=!1;clearInterval(c.j)};this.i=this.h=-1}u(Wd,D); 135Wd.prototype.w=function(){var a=this;this.b=this.a.D();this.b.totalItems=this.a.xa();vb(this.b,function(){var b=a.b;a.a.Jb((b.currentPage-1)*b.itemsPerPage)});this.a.Zb();this.b.s("gluepaginationcurrentpage",this.c);this.b.s("gluepaginationtotalpages",this.c);this.b.s("gluepaginationnext",this.f);this.b.s("gluepaginationprevious",this.g);Xd(this);this.a.eb(!0)}; 136Wd.prototype.destroy=function(){for(var a=this.b,b=0;b<a.totalItems;b++)this.a.ra(b,"glue-pagination__page--previously-shown"),this.a.ra(b,"glue-is-shown");this.a.Hb();this.b.o("gluepaginationcurrentpage",this.c);this.b.o("gluepaginationtotalpages",this.c);this.b.o("gluepaginationnext",this.f);this.b.o("gluepaginationprevious",this.g);this.b.g=null;this.a.eb(!1)}; 137function Xd(a){for(var b=a.b,c=(b.currentPage-1)*b.itemsPerPage,d=c+b.itemsPerPage-1,e=0;e<b.totalItems;e++){var g=e>=c&&e<=d,l=e>=a.h&&e<=a.i;a.a.Qa(e,"focus",a.l);a.a.Qa(e,"blur",a.j);g?(a.a.Oa(e,"glue-is-shown"),a.a.xc(e),a.a.bc(e),a.a.Za(e,"focus",a.l),a.a.Za(e,"blur",a.j)):(a.a.ra(e,"glue-is-shown"),a.a.sa(e),a.a.cc(e),l?a.a.Oa(e,"glue-pagination__page--previously-shown"):a.a.ra(e,"glue-pagination__page--previously-shown"))}a.h=c;a.i=d;b=a.a.za();c=a.a.ya();if(b)for(d=0;d<b.length;d++)e=a.a.da(b[d], 138"id"),null===e&&(e=c+"-"+(d+1),a.a.V(b[d],"id",e)),a.b.f[d+1]||(a.b.f[d+1]=e)}function Yd(a,b){switch(b){case "next":a.b.currentPage=Ab(a.b);break;case "previous":a.b.currentPage=zb(a.b);break;default:throw Error("Only next page event and previous page event are allowed.");}};function qd(){N.apply(this,arguments)}u(qd,N); 139qd.prototype.b=function(){var a=this,b=O(this.a.dataset.gluePagination),c=Array.prototype.slice.call(this.a.children);return new Wd({xa:function(){return a.a.children.length},D:function(){return b},Oa:function(d,e){return c[d].classList.add(e)},ra:function(d,e){return c[d].classList.remove(e)},Jb:function(d){return c[d].focus()},sa:function(d){return c[d].setAttribute("aria-hidden",!0)},xc:function(d){return c[d].removeAttribute("aria-hidden")}
139,Zb:function(){c.forEach(function(d){d.setAttribute("role","tabpanel")})}, 140Hb:function(){c.forEach(function(d){d.removeAttribute("role")})},bc:function(d){return c[d].setAttribute("tabindex",-1)},cc:function(d){return c[d].removeAttribute("tabindex")},Za:function(d,e,g){return c[d].addEventListener(e,g)},Qa:function(d,e,g){return c[d].removeEventListener(e,g)},eb:function(d){return a.a.classList.toggle("glue-is-ready",d)},da:function(d,e){return d.getAttribute(e)},V:function(d,e,g){return d.setAttribute(e,g)},za:function(){return c},ya:function(){return"glue-pagination"}})};function Zd(a){D.call(this,a);var b=this;this.f=function(){b.b.H()};this.c=function(){b.a.ga(wb(b.b))}}u(Zd,D);Zd.prototype.w=function(){this.b=this.a.D();this.a.K(this.f);this.b.s("gluepaginationcurrentpage",this.c);this.b.s("gluepaginationtotalpages",this.c);this.a.ga(wb(this.b))};Zd.prototype.destroy=function(){this.a.J(this.f);this.b.o("gluepaginationcurrentpage",this.c);this.b.o("gluepaginationtotalpages",this.c)};function $d(){N.apply(this,arguments)}u($d,N);$d.prototype.b=function(){var a=this,b=O(this.a.dataset.gluePagination);return new Zd({D:function(){return b},ga:function(c){return a.a.disabled=c},Ob:function(c){return a.a.dataset[c]},K:function(c){return a.s("click",c)},J:function(c){return a.o("click",c)}})};function ae(a){D.call(this,a);var b=this;this.f=function(){b.b.next()};this.c=function(){b.a.ga(xb(b.b))}}u(ae,D);ae.prototype.w=function(){this.b=this.a.D();this.a.K(this.f);this.b.s("gluepaginationcurrentpage",this.c);this.b.s("gluepaginationtotalpages",this.c);this.a.ga(xb(this.b))};ae.prototype.destroy=function(){this.a.J(this.f);this.b.o("gluepaginationcurrentpage",this.c);this.b.o("gluepaginationtotalpages",this.c)};function be(){N.apply(this,arguments)}u(be,N);be.prototype.b=function(){var a=this,b=O(this.a.dataset.gluePagination);return new ae({D:function(){return b},ga:function(c){return a.a.disabled=c},Ob:function(c){return a.a.dataset[c]},K:function(c){return a.s("click",c)},J:function(c){return a.o("click",c)}})};function ce(a){D.call(this,a);var b=this;this.g=function(){return de(b)};this.c=function(c,d){b.a.D().currentPage=d};this.f=function(c){return ee(b,c)}}u(ce,D);ce.prototype.w=function(){this.b=this.a.D();this.a.K(this.c);this.a.hc(this.f);fe(this);de(this);this.b.s("gluepaginationcurrentpage",this.g)}; 141function fe(a){a.a.V("role","tablist");"vertical"===a.a.Pb()&&a.a.V("aria-orientation","vertical");for(var b=1;b<=a.b.totalPages;b++){var c=a.a.Nb(b);a.a.ta(b,"role","tab");a.a.ta(b,"aria-controls",c)}}function de(a){for(var b=a.b.currentPage,c=1;c<=a.b.totalPages;c++){var d=c===b?"0":"-1";a.a.ta(c,"aria-selected",(c===b).toString());a.a.ta(c,"tabindex",d)}}function ee(a,b){Sd(b,a.b,a.a.U(),function(d){return a.a.focus(d)});var c=a.a.Qb(b);Td(b,a.b,c,function(d){return a.a.focus(d)})} 142ce.prototype.destroy=function(){this.a.J(this.c);this.a.zb(this.f);this.b.o("gluepaginationcurrentpage",this.g);this.a.removeAttr("role");this.a.removeAttr("aria-orientation");for(var a=1;a<=this.b.totalPages;a++)this.a.qa(a,"role"),this.a.qa(a,"tabindex"),this.a.qa(a,"aria-selected"),this.a.qa(a,"aria-controls")};function ge(){N.apply(this,arguments)}u(ge,N); 143ge.prototype.b=function(){var a=this,b=O(this.a.dataset.gluePagination),c,d=new ce({D:function(){return b},V:function(e,g){return a.a.setAttribute(e,g)},removeAttr:function(e){return a.a.removeAttribute(e)},ta:function(e,g,l){he(a,e).setAttribute(g,l)},qa:function(e,g){he(a,e).removeAttribute(g)},Nb:function(e){e=he(a,e).getAttribute("href");if("#"!==e.charAt(0))throw Error("The href value for Glue Tabs "+(' "'+e+'" is not a valid jumplink.'));return e.substring(1)},K:function(e){c=function(g){if("tab"== 144g.target.getAttribute("role")){g.preventDefault();var l=parseInt(g.target.dataset.gluePaginationPage,10);Number.isInteger(l)?e(g,l):ie(g.target)}};a.s("click",c)},J:function(){return a.o("click",c)},hc:function(e){return a.s("keydown",e)},zb:function(e){return a.o("keydown",e)},Qb:function(e){var g=parseInt(e.target.dataset.gluePaginationPage,10);Number.isInteger(g)||ie(e.target);return g},focus:function(e){a.a.querySelector('[data-glue-pagination-page="'+e+'"]').focus()},Pb:function(){return a.a.dataset.glueTabsOrientation}, 145U:function(){return!!a.a.closest("[dir=rtl]")}});b.s("gluepaginationtotalpages",function(){fe(d);de(d)});return d};function ie(a){a=a.getAttribute("href");throw Error('Value of gluePaginationPage attribute on "'+a+'" Glue Tab is invali
145d. Please define an integer value for the page number.');} 146function he(a,b){a=a.a.querySelector('[data-glue-pagination-page="'+b+'"]');if(!a)throw Error("A Glue Tab has not been specified for page "+(b+". Please make sure you specify the gluePaginationPage ")+"attribute for each tab");return a};var je={nd:"glue-tabpanels",pd:"glue-tabpanels__page-list",rd:"glue-tabpanels__panel-list",sd:"glue-tabpanels__panel-title",qd:"glue-tabpanels__panel-content",od:"glue-tabpanels__scope",gd:"glue-expansion-panel__button-header",wd:"glue-tabset",yd:"glue-tabset__tablist",xd:"glue-tabset__tab",td:"glue-tabset__button",vd:"glue-tabset__panel-container",ud:"glue-tabset__page"};function Y(a,b){b=void 0===b?{}:b;D.call(this,a);this.b=a;this.c=b}u(Y,D); 147Y.prototype.w=function(){var a=this;this.G=Array.isArray(this.c.panelsBreakpoints)?this.c.panelsBreakpoints:Y.b.panelsBreakpoints;this.C="boolean"==typeof this.c.isPanelsAnimated?this.c.isPanelsAnimated:Y.b.isPanelsAnimated;this.F="boolean"==typeof this.c.isResponsive?this.c.isResponsive:Y.b.isResponsive;this.A="number"==typeof this.c.panelsCount?this.c.panelsCount:Y.b.panelsCount;this.I={isAnimated:this.C,panelsCount:this.A};this.m=this.b.na();this.v=this.b.Ub();this.i=this.b.Sb();this.b.la(!0); 148this.h=new ge(this.v);this.f=new qd(this.i);this.j=O(this.m);this.l=this.j.currentPage;this.F&&(this.u=new kb({ba:this.G,enter:function(){a.h&&(a.l=a.j.currentPage,a.h.destroy(),a.h=void 0);a.f&&(a.f.destroy(),a.f=void 0);a.b.la(!1);a.b.wa(!0,a.l);a.g=new Cc(a.i,void 0,a.I)},leave:function(){a.g&&(a.g.destroy(),a.g=void 0);a.b.wa(!1,0);a.b.la(!0);a.h=new ge(a.v);a.f=new qd(a.i);a.j=O(a.m)}}))}; 149Y.prototype.destroy=function(){this.g&&(this.g.destroy(),this.g=void 0,this.b.wa(!1,0));this.f&&(this.f.destroy(),this.f=void 0,this.h.destroy(),this.h=void 0,this.b.la(!1));this.u&&this.u.destroy()};v.Object.defineProperties(Y,{a:{configurable:!0,enumerable:!0,get:function(){return je}},b:{configurable:!0,enumerable:!0,get:function(){return{panelsBreakpoints:["sm"],isPanelsAnimated:!0,isResponsive:!0,panelsCount:2}}}});function ke(a,b,c){for(var d=[],e=2;e<arguments.length;++e)d[e-2]=arguments[e];N.apply(this,[a,b].concat(q(d)))}u(ke,N); 150ke.prototype.b=function(){var a=this,b=this.a.querySelector(".glue-tabpanels__page-list"),c=this.a.querySelector(".glue-tabpanels__panel-list"),d=this.a.getAttribute("data-glue-tabpanels")?this.a.getAttribute("data-glue-tabpanels"):"tabpanel";return new Y({Ub:function(){return b},Sb:function(){return c},na:function(){return d},wa:function(e,g){c.classList.toggle("glue-expansion-panels",e);e?c.setAttribute("data-glue-expansion-panels-key",d):c.removeAttribute("data-glue-expansion-panels-key");var l= 1511;c.classList.add("glue-tabpanels__scope");[].concat(q(c.querySelectorAll(".glue-tabpanels__scope > div"))).forEach(function(f){f.classList.add("glue-tabpanels__scope");var k=f.querySelector(".glue-tabpanels__scope > .glue-tabpanels__panel-title"),h=k.querySelector(".glue-tabpanels__scope > .glue-tabpanels__panel-title > :first-child"),m=f.querySelector(".glue-tabpanels__scope > .glue-tabpanels__panel-content");f.classList.toggle("glue-expansion-panel",e);k.classList.toggle("glue-expansion-panel-toggle", 152e);h.classList.toggle("glue-expansion-panel__button-header",e);m.classList.toggle("glue-expansion-panel-content",e);e?(k.setAttribute("data-glue-expansion-panel-toggle-for",m.id),l==g&&m.setAttribute("data-glue-expansion-panel-initial","expanded"),l++):(k.removeAttribute("data-glue-expansion-panel-toggle-for"),m.removeAttribute("data-glue-expansion-panel-initial"));f.classList.remove("glue-tabpanels__scope")});c.classList.remove("glue-tabpanels__scope")},la:function(e){a.a.classList.toggle("glue-tabset", 153e);e?(b.setAttribute("data-glue-pagination",d),c.setAttribute("data-glue-pagination",d)):(b.removeAttribute("data-glue-pagination"),c.removeAttribute("data-glue-pagination"));b.classList.toggle("glue-tabset__tablist",e);var g=1;b.classList.add("glue-tabpanels__scope");[].concat(q(b.querySelectorAll(".glue-tabpanels__scope > li"))).forEach(function(l){l.classList.toggle("glue-tabset__tab",e)});[].concat(q(b.querySelectorAll(".glue-tabpanels__scope > li >
153 a"))).forEach(function(l){l.classList.toggle("glue-tabset__button", 154e);e?l.setAttribute("data-glue-pagination-page",g):l.removeAttribute("data-glue-pagination-page");g++});b.classList.remove("glue-tabpanels__scope");c.classList.toggle("glue-tabset__panel-container",e);c.classList.toggle("glue-pagination__pages",e);c.classList.add("glue-tabpanels__scope");[].concat(q(c.querySelectorAll(".glue-tabpanels__scope > div"))).forEach(function(l){l.classList.toggle("glue-pagination__page",e);l.classList.toggle("glue-tabset__page",e)});c.classList.remove("glue-tabpanels__scope")}}, 155this.f)};ke.prototype.aa=function(a){this.f=a};function le(){this.b=document.querySelector(".js-submenu");this.c=document.querySelector(".header__list-submenu-list");this.a=document.querySelector(".js-header-animation");this.f=document.querySelector(".js-icon-down");this.g=document.querySelector(".js-icon-up");this.w()} 156le.prototype.w=function(){var a=this,b=document.querySelector(".header__toggler"),c=document.querySelector(".header__list"),d=document.querySelectorAll(".header__list a");b.addEventListener("click",function(){b.classList.toggle("header__toggler-open");c.classList.toggle("header__open");c.classList.contains("header__open")?a.a.classList.add("overflow-hidden"):a.a.classList.remove("overflow-hidden")});d.forEach(function(e){e.addEventListener("click",function(){c.classList.contains("header__open")&& 157b.click()})});this.b.addEventListener("click",function(e){e.stopPropagation();a.c.classList.toggle("submenu-open");a.b.classList.toggle("active-button");a.c.classList.contains("submenu-open")?(a.b.classList.add("active-button"),a.f.classList.add("icon-hide"),a.g.classList.remove("icon-hide")):me(a)});document.addEventListener("click",function(){a.c.classList.remove("submenu-open");me(a)});ne(this);me(this)}; 158function me(a){var b=!1;document.querySelectorAll(".header__list-submenu-list .header__list-link").forEach(function(c){c.classList.contains("header__list-link-is-active")?(a.b.classList.add("active-button"),a.f.classList.add("icon-hide"),a.g.classList.remove("icon-hide"),b=!0):b||(a.b.classList.remove("active-button"),a.f.classList.remove("icon-hide"),a.g.classList.add("icon-hide"))})} 159function ne(a){var b=0;window.addEventListener("scroll",function(){var c=window.pageYOffset;a.a.classList.contains("overflow-hidden")||(0==c?a.a.classList.remove("scroll-up"):(a.c.classList.contains("submenu-open")?(a.c.classList.remove("submenu-open"),me(a)):c>screen.height&&(c>b&&!a.a.classList.contains("scroll-down")?(a.a.classList.remove("scroll-up"),a.a.classList.add("scroll-down")):c<b&&a.a.classList.contains("scroll-down")&&(a.a.classList.remove("scroll-down"),a.a.classList.add("scroll-up"))), 160b=c))})};function oe(){var a=document.querySelectorAll(".query__accordion");a.forEach(function(b){b.querySelector(".query__accordion-head").addEventListener("click",function(){pe(a,b)},!1)});window.addEventListener("orientationchange",function(){a.forEach(function(b){b.selected&&(b.querySelector(".query__accordion-container").style.height="100%")})})} 161function pe(a,b){var c=b.selected;a.forEach(function(d){d.selected=!1});b.selected=!c;a.forEach(function(d){var e=d.querySelector(".query__accordion-container"),g=d.querySelector(".query__accordion-head");d.selected?(e.style.height=d.querySelector(".query__accordion-body").offsetHeight+"px",d.setAttribute("aria-expanded",!0),g.classList.add("query__accordion-italic")):(e.style.height=0,g.classList.remove("query__accordion-italic"),d.setAttribute("aria-expanded",!1))})};function qe(a){a.a&&document.querySelectorAll(".toxic-popup__text").forEach(function(b){a.a.addEventListener("click touchstart",function(){b.classList.toggle("show")});a.a.addEventListener("mouseenter",function(){b.classList.add("show")});a.a.addEventListener("mouseleave",function(){b.classList.remove("show")});document.addEventListener("keydown",function(c){9==c.keyCode&&(c.preventDefault(),b.classList.remove("show"))})})};function re(a){[].concat(q(a.a)).forEach(function(b){var c=document.querySelector("."+b.dataset.modalId),d=new W(c,b);b.addEventListener("click",function(){d.open()});c.addEventListener("click",function(e){e.target.classList.contains("card-overlay")&&d.close()})})};var se=["#ccb3c2","#652a44","#e5437d"],te=["#108cfe","#ffbf1c","#e83c35"],ue=["#4d9966","#ffbf1c","#e83c35"],ve={toxic:"TOXICITY",obscene:"OBSCENE",insulting:"INSULT",threatening:"THREAT"};jb=this;function we(a){var b;return function(c){for(var d=[],e=0;e<arguments.length;++e)d[e]=arguments[e];clearTimeout(b);b=setTimeout(function(){return a.apply(jb,d)},500)}};function xe(a){var b=this;this.f=a;this.c=this.u=this.C=this.L=this.a=null;this.m=this.f.querySelector("[data-toxicity-api-score]");this.v=this.f.querySelector("[data-toxicity-api-input]");this.b=this.f.querySelector(".disagree-link");this.i=this.f.querySelector(".feedback-container");this.I=this.i.querySelector(".feedback-container__yes");this.F=this.i.querySelector(".feedback-container__no");this.G=this.i.querySelector(".feedback-container__toxic");this.S=this.i.querySelector(".feedback-container__thanks"); 162this.nb=this.G.querySelector(".toxic-modal");this.ja=document.querySelector(".toxic-dialogue__overlay");this.Z=document.querySelector(".toxic-dialogue");this.mb=document.querySelector(".toxic-dialogue__close");this.g=document.querySelector(".modal-editor");this.ka=document.querySelectorAll(".negative-result");this.Ja=document.querySelectorAll(".positive-result");this.l=document.querySelectorAll(".demo-positive-error");this.j=document.querySelectorAll(".demo-negative-error");this.A=document.querySelectorAll(".slider-result-negative"); 163this.M=document.querySelectorAll(".slider-result-positive");this.Ka=document.querySelectorAll(".slider-range-line");this.La=document.querySelectorAll(".slide-container");this.h=null;this.T=[];var c=setInterval(function(){window.grecaptcha&&(b.Y=window.grecaptcha,clearInterval(c))},30);this.w()} 164xe.prototype.w=function(){var a=this,b=document.querySelectorAll(".demo-tabs"),c=document.querySelector(".close-btn"),d=this.ka[0],e=this.Ja[0],g=this.l[0],l=this.j[0];this.h=window.localStorage.getItem("JigsawToxicitySessionId");
164null===this.h&&(this.h=Math.round(Date.now()*Math.random()).toString(),window.localStorage.setItem("JigsawToxicitySessionId",this.h));this.v.addEventListener("input",we(function(f){return ye(a,f,!1)}));this.b.addEventListener("click",function(){a.m.style.display="none";a.b.style.display= 165"none";a.i.style.display="block";a.G.style.display="block";a.S.style.display="none";a.I.style.display="block";a.F.style.display="block"});this.I.addEventListener("click",function(){return ze(a,!0)});this.F.addEventListener("click",function(){return ze(a,!1)});this.nb.addEventListener("click",function(){a.ja.style.display="block";a.Z.style.display="block"});this.mb.addEventListener("click",function(){a.ja.style.display="none";a.Z.style.display="none"});b.forEach(function(f){f.addEventListener("click", 166function(){a.g.classList.add("open");a.g.querySelector(".glue-tabset__panel-container").classList.add("open-tabs");a.g.querySelector(".tab-footer").classList.add("open-tabs")})});c.addEventListener("click",function(){a.A[0].textContent="70%";a.g.classList.remove("open");a.g.querySelector(".tab-footer").classList.remove("open-tabs");a.g.querySelector(".glue-tabset__panel-container").classList.remove("open-tabs");a.j[0].querySelectorAll(".negative-content")[0].textContent="";a.l[0].querySelectorAll(".positive-content")[0].textContent= 167"";a.j[0].classList.remove("show-error");a.l[0].classList.remove("show-error");a.w()});window.addEventListener("resize",function(){797>window.innerWidth&&0<e.offsetWidth&&0<d.offsetWidth?(g.style.maxWidth=d.offsetWidth+"px",l.style.maxWidth=e.offsetWidth+"px"):(g.style.maxWidth="none",l.style.maxWidth="none")});document.addEventListener("click",function(f){a.La.forEach(function(k){k.contains(f.target)||f.relatedTarget&&k.contains(f.relatedTarget.offsetParent)||k.classList.add("range-hide")})});Ae(this); 168Be(this);Ce(this);De()}; 169function ye(a,b,c){"input"===b.type||"change"===b.type?(a.a=a.v.parentNode.nextElementSibling,a.L=a.v.parentNode,a.C=b.target.parentNode.nextElementSibling.querySelector(".demo-select.model-switch .selected-option").dataset.value,a.u=b.target.parentNode.nextElementSibling.querySelector(".demo-select.model-switch .selected-option").textContent,a.c=a.v.value):"click"===b.type&&(a.a=Ee(a,b.target,"perspective-intro__demo__editor"),a.L=a.a.previousElementSibling,c?(a.C=b.target.dataset.value,a.u=b.target.textContent): 170(a.C=a.a.querySelector(".demo-select.model-switch .selected-option").dataset.value,a.u=a.a.querySelector(".demo-select.model-switch .selected-option").textContent),a.c=a.a.previousElementSibling.querySelector(".perspective-intro__demo-textbox").value);a.c?(a.m.textContent="",Fe(a)):Ge(a,0,!1)}function He(a){a.m.style.display="block";a.b.style.display="none";a.i.style.display="none";a.G.style.display="none";a.S.style.display="none";a.I.style.display="none";a.F.style.display="none"} 171function Fe(a){He(a);var b=document.querySelector(".perspective-intro__demo-container").querySelector(".shapes");b.classList.add("ripple");a.Y.execute("6LfGNb0UAAAAAATjUqxL3E0jEMN0XIaUPWHUTh82",{action:"check"}).then(function(c){a.c&&fetch("/plugin/check",{method:"POST",cache:"no-cache",headers:{"Content-Type":"application/json"},referrerPolicy:"no-referrer",body:JSON.stringify({action:"check",comment:a.c,modelName:ve[a.C],sessionId:a.h,recaptchaToken:c})}).then(function(d){if(d.ok)return d.json(); 172throw Error("We don't yet support that language, but we're working on it!");}).then(function(d){b.classList.remove("ripple");document.querySelectorAll(".perspective-intro__result").forEach(function(e){e.style.display=""!==a.c?"flex":"none"});Ge(a,d.attributeScores.TOXICITY?d.attributeScores.TOXICITY.summaryScore.value:d.attributeScores.OBSCENE?d.attributeScores.OBSCENE.summaryScore.value:d.attributeScores.INSULT?d.attributeScores.INSULT.summaryScore.value:d.attributeScores.THREAT.summaryScore.value, 173!1)}).catch(function(){b.classList.remove("ripple");Ge(a,"We don't yet support that language, but we're working on it!",!0)})})} 174function ze(a,b){var c=document.querySelectorAll(".demo-select.model-switch .selected-option"),d=a.v.value,e=a.h;a.G.style.display="none";a.S.style.display="block";a.I.style.display="none";a.F.style.display="none";a.Y.execute("6LfGNb0UAAAAAATjUqxL3E0jEMN0XIaUPWHUTh82",{action:"suggestScore"}
174).then(function(g){fetch("/suggest_score",{method:"POST",cache:"no-cache",headers:{"Content-Type":"application/json"},referrerPolicy:"no-referrer",body:JSON.stringify({action:"suggestScore",comment:d,commentMarkedAsToxic:b, 175modelName:ve[c[1].textContent],recaptchaToken:g,sessionId:e})}).then(function(l){return l.json()}).then(function(l){console.error(l)}).catch(function(l){console.error(l)})})} 176function Ge(a,b,c){var d=document.querySelectorAll(".feedback-container__thanks"),e=a.L.querySelector(".perspective-intro__result"),g=a.L.querySelector("[data-toxicity-api-score]"),l=parseInt(a.a.querySelector(".slider-result-negative").textContent.replace("%",""),0),f=parseInt(a.a.querySelector(".slider-result-positive").textContent.replace("%",""),0),k=a.a.querySelector(".positive-result-input .selected-option"),h=a.a.querySelector(".negative-result-input .selected-option"),m=a.a.querySelector(".neutral-result-input .selected-option"), 177t=a.a.querySelector(".js-positive-feedback"),B=a.a.querySelector(".js-neutral-feedback");if(c)a.m.textContent="We don't yet support that language, but we're working on it!",a.m.style.color="#ff0000",a.b.style.display="none",e.classList.add("demo-hide"),e.classList.remove("ripple");else{a.T.forEach(function(C){return clearTimeout(C)});a.T=[];a.m.style.color="#6e7378";var r=parseFloat(100*b).toFixed(2);setTimeout(function(){30>r?(e.classList.remove("upto-seventy","above-seventy"),e.classList.add("upto-thirty")): 17830<r&&70>r?(e.classList.remove("above-seventy","upto-thirty"),e.classList.add("upto-seventy")):(e.classList.remove("upto-thirty","upto-seventy"),e.classList.add("above-seventy"))},700);a.T.push(setTimeout(function(){if("0.00"===r||0===b)g.textContent="",a.b.style.display="none";else if(a.b.style.display="block",""===a.a.previousElementSibling.querySelector(".perspective-intro__demo-textbox").value){g.textContent="";a.b.style.display="none";return}if(r>l&&""!==a.c){var C=a.a.querySelector(".negative-result-input .option-active"); 179if(h.textContent)h.textContent.includes("x%")?g.textContent=C.textContent.replace("x%",r+"%").replace(C.querySelector("span").textContent,""+a.u):g.textContent=h.textContent;else{var ca=a.a.querySelector(".negative-result-input\n .js-textbox.custom-input-text");g.textContent=ca.value.replace("x%",r+"%");ca.addEventListener("input",function(){g.textContent=ca.value.replace("x%",r+"%")})}}if(!t.classList.contains("hide-content")&&""!==a.c&&r<f&&0<r)if(C=a.a.querySelector(".positive-result-input .option-active"), 180k.textContent)k.textContent.includes("x%")?g.textContent=C.textContent.replace("x%",r+"%").replace(C.querySelector("span").textContent,""+a.u):g.textContent=k.textContent;else{var da=a.a.querySelector(".positive-result-input\n .js-textbox.custom-input-text");g.textContent=da.value.replace("x%",r+"%");da.addEventListener("input",function(){g.textContent=da.value.replace("x%",r+"%")})}if(!B.classList.contains("hide-content")&&""!==a.c&&r>f&&r<l)if(m.textContent)g.textContent=m.textContent.replace("x%", 181r+"%");else{var ea=a.a.querySelector(".neutral-result-input\n .js-textbox.custom-input-text");g.textContent=ea.value.replace("x%",r+"%");ea.addEventListener("input",function(){g.textContent=ea.value.replace("x%",r+"%")})}!B.classList.contains("hide-content")&&r>f&&r<l&&""!==a.c?(g.parentNode.style.display="flex",a.b.style.display="block"):!t.classList.contains("hide-content")&&r<f&&0<r&&""!==a.c?(g.parentNode.style.display="flex",a.b.style.display="block"):r>l&&""!==a.c?(g.parentNode.style.display= 182"flex",a.b.style.display="block"):(g.parentNode.style.display="none",a.b.style.display="none");a.f.classList.toggle("is-toxic",.7<=b);a.f.classList.toggle("is-neutral",.3<b&&.7>b)},500))}d.forEach(function(C){""===a.c&&(C.style.display="none",a.b.style.display="none")})} 183function Ce(a){var b=document.querySelectorAll(".popover-slide-text");a.La.forEach(function(h){h.classList.add("range-hide")});var c=a.j[1],d=a.l[1],e=a.j[0],g=a.l[0],l=document.querySelectorAll(".js-positive-feedback")[1],f=document.querySelectorAll(".js-positive-feedback")[0],k=document.querySelectorAll(".perspective-intro__demo__editor");
183a.Ka.forEach(function(h){h.addEventListener("input",function(m){c.classList.remove("show-error");d.classList.remove("show-error");e.classList.remove("show-error"); 184g.classList.remove("show-error");Ie(a,m.target.offsetParent,m.target.value);var t=parseInt(a.A[1].textContent.replace("%",""),0),B=parseInt(a.M[1].textContent.replace("%",""),0),r=parseInt(a.A[0].textContent.replace("%",""),0),C=parseInt(a.M[0].textContent.replace("%",""),0),ca=a.ka[0],da=a.Ja[0];797>window.innerWidth&&0<da.offsetWidth&&0<ca.offsetWidth?(g.style.maxWidth=ca.offsetWidth+"px",e.style.maxWidth=da.offsetWidth+"px"):(g.style.maxWidth="none",e.style.maxWidth="none");k.forEach(function(ea){!l.classList.contains("hide-content")&& 185ea.classList.contains("js-demo-desktop")?t<m.target.value?(c.querySelector(".negative-content").textContent=t,c.classList.add("show-error")):m.target.value<B?(d.querySelector(".positive-content").textContent=B,d.classList.add("show-error")):(c.classList.remove("show-error"),d.classList.remove("show-error")):!f.classList.contains("hide-content")&&ea.classList.contains(".modal-editor")&&(r<m.target.value?(e.querySelectorAll(".negative-content")[0].textContent=r,e.classList.add("show-error")):m.target.value< 186C?(g.querySelectorAll(".positive-content")[0].textContent=C,g.classList.add("show-error")):(e.classList.remove("show-error"),g.classList.remove("show-error")))})})});b.forEach(function(h){h.addEventListener("click",function(m){var t=m.target.offsetParent.querySelector(".slide-container"),B=h.textContent.split("%")[0];m.stopPropagation();Je(a,t,B);document.querySelectorAll(".select-item-list").forEach(function(r){r.classList.add("select-hide")})})})} 187function Ie(a,b,c){var d=b.previousElementSibling,e=b.querySelector(".slider-range-line");b=b.querySelector("#bubble-value").querySelector("span");var g=document.querySelectorAll(".view-code-tab__code-container");e.value=c;b.textContent=e.value;c=parseInt(e.max,0)-parseInt(e.min,0);b.style.left=e.clientWidth/c*(e.value-parseInt(e.min,0))-b.clientWidth/2-15*(e.value/c-.5)+"px";d.textContent=e.value+"%";g.forEach(function(l){Z(a,l,"negative-result")?(l=l.querySelector(".toxic-threashold"),l.textContent= 188l.textContent.replace(l.textContent.split(""")[3],""+e.value/100)):(l=l.querySelector(".neutral-threashold"),l.textContent=l.textContent.replace(l.textContent.split(""")[3],""+e.value/100))});e.style.background="linear-gradient(to right, #dcddde 0%, #dcddde "+e.value+"%,\n #ccb3c2 "+e.value+"%, #ccb3c2 100%)"} 189function Je(a,b,c){document.querySelectorAll(".slide-container").forEach(function(d){d.classList.add("range-hide")});"container slide-container range-hide"===b.classList.value?b.classList.remove("range-hide"):b.classList.add("range-hide");Ie(a,b,c)} 190function De(){var a=document.querySelector(".glue-modal-try-out"),b=document.querySelector(".js-demo-desktop");a&&a.querySelector(".js-code-copy").addEventListener("click",function(){Ke(a)});b&&b.querySelector(".js-code-copy").addEventListener("click",function(){Ke(b)})} 191function Ke(a){var b=a.querySelector(".view-code-tab__code-container"),c=document.createRange(),d=a.querySelector(".snackbar");c.selectNodeContents(b);window.getSelection().removeAllRanges();window.getSelection().addRange(c);document.execCommand("copy");d.classList.add("show-snackbar");setTimeout(function(){d.classList.remove("show-snackbar")},3E3)} 192function Le(a){document.querySelectorAll(".js-feedback-content").forEach(function(b){var c=b.querySelector(".remove-feedback"),d=b.querySelector(".add-feedback"),e=b.querySelector(".add-neutral"),g=document.querySelectorAll(".js-positive-feedback"),l=document.querySelectorAll(".js-neutral-feedback");d.classList.remove("hide-content");c.classList.add("hide-content");e.classList.add("hide-content");g.forEach(function(f){f.classList.add("hide-content")});l.forEach(function(f){f.classList.add("hide-content")}); 193d.addEventListener("click",function(){d.classList.add("hide-content");c.classList.remove("hide-content");e.classList.remove("hide-content");g.forEach(function(f){f.classList.remove("hide-content")});l.forEach(function(f){f.classList.add("hide-content")});Fe(a)});c.addEventListener("click",function(){d.classList.remove("hide-content");c.classList.add("hide-content");e.classList.add("hide-content");g.forEach(function(f){f.classList.add("hide-content")});l.forEach(function(f){f.classList.add("hide-content")});
194a.j.forEach(function(f){f.classList.remove("show-error")});a.l.forEach(function(f){f.classList.remove("show-error")});Fe(a)});e.addEventListener("click",function(){d.classList.add("hide-content");c.classList.remove("hide-content");e.classList.add("hide-content");g.forEach(function(f){f.classList.remove("hide-content")});l.forEach(function(f){f.classList.remove("hide-content")});Me(a);a.Ka.forEach(function(f){f.addEventListener("input",function(k){Ie(a,k.target.offsetParent,k.target.value);Me(a)})}); 195Fe(a)})})} 196function Me(a){var b=parseInt(a.A[1].textContent.replace("%",""),0),c=parseInt(a.M[1].textContent.replace("%",""),0),d=parseInt(a.A[0].textContent.replace("%",""),0);a=parseInt(a.M[0].textContent.replace("%",""),0);document.querySelectorAll(".js-neutral-feedback")[1].querySelector(".positive-threshold").textContent=c;document.querySelectorAll(".js-neutral-feedback")[1].querySelector(".negative-threshold").textContent=b;document.querySelectorAll(".js-neutral-feedback")[0].querySelectorAll(".positive-threshold")[0].textContent=a; 197document.querySelectorAll(".js-neutral-feedback")[0].querySelectorAll(".negative-threshold")[0].textContent=d} 198function Be(a){var b=document.querySelectorAll(".js-demo-button"),c=document.querySelectorAll(".perspective-intro__demo__textbox"),d=document.querySelector(".perspective-intro__demo__editor.js-demo-desktop"),e=document.querySelector(".advanced-button");b.forEach(function(f){f.addEventListener("click",function(){document.querySelector(".perspective-intro__demo-textbox").value="";document.querySelectorAll(".perspective-intro__result").forEach(function(k){k.style.display="none"});a.b.style.display="none"; 199b.forEach(function(k){k.classList.remove("active");Le(a)});f.classList.contains("js-custom-demo")?d.classList.add("demo-show"):d.classList.remove("demo-show");f.classList.add("active");c.forEach(function(k){k.placeholder=f.dataset.placeholder})})});Le(a);if(e){var g=document.querySelector(".glue-modal-try-out").querySelector(".perspective-intro__demo__textbox"),l=document.querySelector(".js-try-out");e.addEventListener("click",function(){a.g.classList.toggle("editor");g.placeholder=a.g.classList.contains("editor")? 200e.dataset.placeholder:l.dataset.placeholder})}} 201function Ae(a){document.querySelectorAll(".demo-select").forEach(function(b){var c=b.querySelector(".selected-option");b.querySelectorAll(".select-item").forEach(function(d,e){0===e&&d.classList.add("option-active");d.classList.contains("option-active")&&(c.textContent="",c.insertAdjacentHTML("afterbegin",d.textContent),c.dataset.value=d.dataset.value);d.addEventListener("click",function(g){if(c.textContent!==d.textContent){var l=document.querySelectorAll(".view-code-tab__code-container");b.querySelectorAll(".option-active").forEach(function(h){h.classList.remove("option-active")}); 202d.classList.add("option-active");Z(a,d.parentNode,"js-message-container")&&l.forEach(function(h){var m=h.querySelector(".model-comments"),t=m.textContent.split(""");Z(a,h,"positive-toxic-message")?"Add Custom Message"===h.textContent?a.f.nextElementSibling.querySelector(".positive-result-input\n .js-textbox.custom-input-text").addEventListener("input",function(B){t[3]=B.target.value;m.textContent=t.join(""")}):m.textContent=m.textContent.replace(t[3],h.textContent): 203Z(a,h,"neutral-toxic-message")?"Add Custom Message"===h.textContent?a.f.nextElementSibling.querySelector(".js-neutral-feedback\n .js-textbox.custom-input-text").addEventListener("input",function(B){t[5]=B.target.value;m.textContent=t.join(""")}):m.textContent=m.textContent.replace(t[5],h.textContent):Z(a,h,"negative-toxic-message")&&("Add Custom Message"===h.textContent?a.f.nextElementSibling.querySelector(".negative-result-input\n .js-textbox.custom-input-text").addEventListener("input", 204function(B){t[7]=B.target.value;m.textContent=t.join(""")}):m.textContent=m.textContent.replace(t[7],h.textContent));ye(a,g,!1)});Z(a,d.parentNode,"model-switch")&&(ye(a,g,!0),l.forEach(function(h){h=h.querySelector(".model-name");h.textContent=h.textContent.replace(h.textContent.split(""")[3],ve[d.dataset.value])}));switch(!0){case Z(a,d.parentNode,"icon-theme"):var f=document.querySelectorAll(".perspective-intro__result .shapes"),k=document.querySelectorAll(".perspective-intro__result .emoji"); 205switch(!0){case d.dataset.value.includes("Emoji"):f.forEach(function(h){h.classList.add("demo-hide")});
205k.forEach(function(h){h.classList.remove("demo-hide");h.classList.add("demo-show")});l.forEach(function(h){h=h.querySelector(".icon-style");h.textContent=h.textContent.replace(h.textContent.split(""")[3],"emoji")});break;case d.dataset.value.includes("Shapes"):k.forEach(function(h){h.classList.add("demo-hide")});f.forEach(function(h){h.classList.remove("demo-hide");h.classList.add("demo-show")}); 206l.forEach(function(h){h=h.querySelector(".icon-style");h.textContent=h.textContent.replace(h.textContent.split(""")[3],"circle_square_diamond")});break;default:k.forEach(function(h){h.classList.remove("demo-show");h.classList.add("demo-hide")}),f.forEach(function(h){h.classList.remove("demo-show");h.classList.add("demo-hide")}),l.forEach(function(h){h=h.querySelector(".icon-style");h.textContent=h.textContent.replace(h.textContent.split(""")[3],"none")})}break;case Z(a,d.parentNode,"color-theme"):f= 207document.querySelectorAll(".perspective-intro__result");k=d.dataset.value.replace(" ","-").toLowerCase();switch(!0){case "perspective-api"===k:f.forEach(function(h){h.classList.remove("primary-colors");h.classList.remove("traffic-colors");h.classList.add("perspective-api")});l.forEach(function(h){h=h.querySelector(".gradient-colors");var m=h.textContent.split(""");h.textContent=h.textContent.replace(m[3],se[0]);h.textContent=h.textContent.replace(m[5],se[1]);h.textContent=h.textContent.replace(m[7], 208se[2])});break;case "primary-colors"===k:f.forEach(function(h){h.classList.add("primary-colors");h.classList.remove("traffic-colors");h.classList.remove("perspective-api")});l.forEach(function(h){h=h.querySelector(".gradient-colors");var m=h.textContent.split(""");h.textContent=h.textContent.replace(m[3],te[0]);h.textContent=h.textContent.replace(m[5],te[1]);h.textContent=h.textContent.replace(m[7],te[2])});break;default:f.forEach(function(h){h.classList.remove("primary-colors");h.classList.add("traffic-colors"); 209h.classList.remove("perspective-api")}),l.forEach(function(h){h=h.querySelector(".gradient-colors");var m=h.textContent.split(""");h.textContent=h.textContent.replace(m[3],ue[0]);h.textContent=h.textContent.replace(m[5],ue[1]);h.textContent=h.textContent.replace(m[7],ue[2])})}break;case Z(a,d.parentNode,"web-font"):document.querySelectorAll(".perspective-intro__result").forEach(function(h){h.style.fontFamily=d.dataset.value}),c.style.fontFamily=d.dataset.value,l.forEach(function(h){h=h.querySelector(".font-family"); 210h.textContent=h.textContent.replace(h.textContent.split(""")[3],d.dataset.value+", sans-serif")})}c.textContent="";c.insertAdjacentHTML("afterbegin",d.textContent);c.dataset.value=d.dataset.value;l=b.parentElement;l.classList.contains("js-message-container")&&(f=l.querySelector(".js-message-input-container"),"Custom Message"===d.dataset.value?(l.classList.add("demo-custom-text-container"),f.classList.remove("demo-feedback-container-hide"),f.getElementsByTagName("input")[0].focus(),c.textContent= 211""):(l.classList.remove("demo-custom-text-container"),f.classList.add("demo-feedback-container-hide")))}})});c.addEventListener("click",function(d){d.stopPropagation();d=document.querySelectorAll(".slide-container");document.querySelectorAll(".select-item-list").forEach(function(e){e.classList.add("select-hide")});d.forEach(function(e){e.classList.add("range-hide")});c.nextElementSibling.classList.toggle("select-hide")});document.addEventListener("click",function(){c.nextElementSibling.classList.add("select-hide")})})} 212function Z(a,b,c){return"HTML"===b.tagName?!1:b.classList.contains(c)?!0:b.parentNode&&Z(a,b.parentNode,c)}function Ee(a,b,c){return b.classList.contains(c)?b:b.parentNode&&Ee(a,b.parentNode,c)};function Ne(){this.w()} 213Ne.prototype.w=function(){var a=document.querySelector(".footer__language"),b=a.querySelector(".footer__language-selected");a.querySelectorAll(".js-lang-item").forEach(function(c){c.classList.contains("footer__language-active")&&(b.textContent=c.textContent);c.addEventListener("click",function(){b.textContent!==c.textContent&&window.location.replace(c.dataset.value)})});b.addEventListener("click",function(c){c.stopPropagation();b.nextElementSibling.classList.toggle("footer__language-hide");b.classList.toggle("select-arrow-active")}); 214document.addEventListener("click",function(){var c=b.nextElementSibling;c.classList.contains("footer__language-hide")||(b.classList.toggle("select-arrow-active"),c.classList.add("footer__language-hide"))})};O("demo-cyclical").cyclical=!0;function Oe(a,b){var c=void 0===c?{}:c;
214[].concat(q(document.querySelectorAll(a))).forEach(function(d){return b(d,c)})}Oe(".glue-pagination-page-list",function(a,b){b=void 0===b?{}:b;return new ud(a,void 0,b)});Oe("[data-glue-pagination-previous]",function(a){return new $d(a)});Oe("[data-glue-pagination-next]",function(a){return new be(a)});Oe(".glue-carousel",function(a,b){b=void 0===b?{}:b;return new jc(a,void 0,b)}); 215Oe(".data-tabpanels-responsive",function(a,b){b=void 0===b?{}:b;return new ke(a,void 0,b)});Oe(".glue-header",function(a){return new wd(a)});new le;new function(){oe()};new function(){(this.a=document.querySelectorAll(".data-modal-trigger"))&&re(this)};new function(){this.a=document.getElementById("perspective-popup");qe(this)};new Ne;var Pe=document.querySelectorAll("[data-toxicity-api]");0<Pe.length&&Pe.forEach(function(a){new xe(a)});}).call(window)
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.