(function(_ds){var window=this;'use strict';var QR=function(a){var b=arguments.length;if(1==b&&Array.isArray(arguments[0]))return QR.apply(null,arguments[0]);for(var c={},d=0;d
')},rS=function(a){a=a||{};var b='")},sS=function(a){var b=a.query,c=a.wc,d='")},tS=function(a){var b=a.link,c=a.title,d=a.public,e=a.action,g=a.Fj,k=a.bb,l=a.cc;a=a.hg;b=(d?"":'')+''+_ds.tq(c)+""+(a?''+_ds.tq(a)+"":"")+(g?''+_ds.tq(g)+"":"")+(_ds.wq(k)&&!l?''+ _ds.tq(k)+"":"");d||(b+='Confidential');return(0,_ds.V)(b+(""+(d?"":"")))},uS=function(a){var b=a.bb,c=a.cc,d=a.query,e=a.Kj;a=a.wc;b='
There are no suggestions for your query
'+((e?'":"")+"
");return(0,_ds.V)(b)},vS=function(a){var b=a.Un,c=a.mo,d=a.Ao,e=a.bb,g=a.cc,k=a.query,l=a.Fo,m=a.Kj;a=a.wc;var p='
';if(0
Suggested searches'+((g?''+ _ds.tq(e)+"":"")+'
');for(var q=d.length,r=0;r'+tS({link:_ds.L(w,2),title:w.Ba(),public:_ds.uf(w,14),action:"Query Suggestion Click"})+"
"}p+="
"}p+= 0':"";if(0
Pages'+((g?''+_ds.tq(e)+"":"")+'
');q=b.length;for(r=0;r'+tS({link:_ds.L(w,2),title:w.Ba(),public:_ds.uf(w,14),bb:_ds.L(w,4),cc:g,action:"Page Suggestion Click"})+"";p+=""}p+=0':"";if(0
Reference'+ ((g?''+_ds.tq(e)+"":"")+'
');q=l.length;for(r=0;r'+tS({link:_ds.L(w,2),title:w.Ba(),public:_ds.uf(w,14),action:"Reference Suggestion Click", Fj:_ds.L(w,3),bb:_ds.L(w,4),cc:g,hg:_ds.I(w,10)[0]})+"";p+=""}p+=0':"";if(0
Products
'; b=c.length;for(d=0;d'+tS({link:_ds.L(l,2),title:l.Ba(),public:_ds.uf(l,14),action:"Product Suggestion Click"})+"";p+=""}p+=""+(m?'":"")+"";return(0,_ds.V)(p)},wS=function(){var a=_ds.R.call(this)||this;a.N=!1;a.H= {};a.G="";a.C=null;a.j=new _ds.Qj;a.h=null;a.L=!1;return a},CS=function(a){a.h&&(a.j.listen(a.h,"suggest-service-search",function(b){a:{var c=a.D.querySelector(".highlight");if(c&&(c=c.querySelector(".devsite-result-item-link"))){c.click();break a}xS(a,b.detail.originalEvent,!!a.C)}}),a.j.listen(a.h,"suggest-service-suggestions-received",function(b){return void yS(a,b)}),a.j.listen(a.h,"suggest-service-focus",function(){zS(a,"cloud-track-search-focus",null);a.L=!0;AS(a,!0)}),a.j.listen(a.h,"suggest-service-blur", function(){AS(a,!1)}),a.j.listen(a.h,"suggest-service-input",function(){!a.H["Text Entered Into Search Bar"]&&a.h.query.trim()&&(a.dispatchEvent(new CustomEvent("devsite-analytics-observation",{detail:{category:"Site-Wide Custom Events",label:"Search",action:"Text Entered Into Search Bar"},bubbles:!0})),a.H["Text Entered Into Search Bar"]=!0);a.L&&(zS(a,"cloud-track-search-input",null),a.L=!1)}),a.j.listen(a.h,"suggest-service-navigate",function(b){return void BS(a,b)}),a.j.listen(document.body,"devsite-page-changed", function(){return a.H={}}),a.h.Pj("SLASH",191));a.m&&a.j.listen(a.m,"submit",function(b){xS(a,b)});a.D&&a.j.listen(a.D,"click",function(b){var c=b.target;"A"==c.tagName.toUpperCase()&&AS(a,!1);var d=_ds.Bh(c,"devsite-result-item-link");d&&(d={bp:d.getAttribute("href")},zS(a,"cloud-track-search-submit",d));c.classList.contains("devsite-search-project-scope")&&xS(a,b,!0)});a.Y&&a.j.listen(a.Y,"click",function(){return void AS(a,!0)});a.O&&a.j.listen(a.O,"click",function(){return void AS(a,!1)})},xS= function(a,b,c){c=void 0===c?!1:c;var d,e,g;_ds.E(function(k){if(1==k.h){b.preventDefault();b.stopPropagation();if(!a.hasAttribute("enable-search"))return k.J(0);a.H["Full Site Search"]||(a.dispatchEvent(new CustomEvent("devsite-analytics-observation",{detail:{category:"Site-Wide Custom Events",label:"Search",action:"Full Site Search"},bubbles:!0})),a.H["Full Site Search"]=!0);d=c&&a.C?_ds.Gi(a.C):_ds.Gi(a.m.getAttribute("action"));e=new _ds.Zh(d.href);_ds.li(e,"q",a.h.query);d.search=e.h.toString(); return _ds.u(k,DevsiteApp.fetchPage(d.href),3)}AS(a,!1);g="no match";a.K&&(g={contains:{bp:a.K}});zS(a,"cloud-track-search-submit",g);_ds.v(k)})},BS=function(a,b){var c=b.detail;b=a.o.querySelector(".highlight");var d,e=Array.from(a.o.querySelectorAll(".devsite-result-item")),g=[],k=-1;if(b){var l=_ds.zh(b,function(p){return p.classList.contains("devsite-suggest-section")});g=Array.from(l.querySelectorAll(".devsite-result-item"));l=_ds.eh(b.parentNode.parentNode);var m=_ds.fh(b.parentNode.parentNode); k=e.indexOf(b)}switch(c.keyCode){case 37:if(!l&&!m)return;b&&(c=b.getAttribute("index"),m?(d=m.querySelector('[index="'+c+'"]'))||(d=_ds.Bb(Array.from(m.querySelectorAll("[index]")))):l&&((d=l.querySelector('[index="'+c+'"]'))||(d=_ds.Bb(Array.from(l.querySelectorAll("[index]"))))));break;case 39:if(!l&&!m)return;b&&(c=b.getAttribute("index"),l?(d=l.querySelector('[index="'+c+'"]'))||(d=_ds.Bb(Array.from(l.querySelectorAll("[index]")))):m&&((d=m.querySelector('[index="'+c+'"]'))||(d=_ds.Bb(Array.from(m.querySelectorAll("[index]")))))); break;case 38:b?(d=e[k-1])||(d=_ds.Bb(g)):d=_ds.Bb(e);break;case 40:b?(d=e[k+1])||(d=g[0]):d=e[0]}b&&(b.classList.remove("highlight"),b.removeAttribute("aria-selected"));d&&(a.F.setAttribute("aria-activedescendant",d.id),d.setAttribute("aria-selected","true"),d.classList.add("highlight"),d.scrollIntoViewIfNeeded&&d.scrollIntoViewIfNeeded()||d.scrollIntoView())},zS=function(a,b,c){a.dispatchEvent(new CustomEvent(b,{detail:{type:"search",name:b,position:"nav",metadata:{eventDetail:c}},bubbles:!0}))}, AS=function(a,b){if(a.N!==b){_ds.ur(a.h,b);if(a.N=b)a.setAttribute("search-active","");else{var c=a.D.querySelector(".highlight");c&&c.classList.remove("highlight");a.removeAttribute("search-active");a.setAttribute("aria-expanded","false");_ds.Xg(a.o)}a.hasAttribute("capture")||a.dispatchEvent(new CustomEvent("devsite-search-toggle",{detail:{active:b},bubbles:!0}))}},yS=function(a,b){a.K=null;b=b.detail;var c=b.suggestions,d=b.query;if(a.h.query.toLowerCase().startsWith(d.toLowerCase()))if(c){var e= c.tb();0$1");d=_ds.Ft(d);_ds.Bd(c,d)}},cS={8:"backspace",9:"tab",13:"enter",16:"shift",17:"ctrl",18:"alt",19:"pause",20:"caps-lock",27:"esc",32:"space",33:"pg-up",34:"pg-down",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"insert",46:"delete",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",59:"semicolon",61:"equals",65:"a",66:"b",67:"c",68:"d",69:"e",70:"f",71:"g",72:"h",73:"i",74:"j", 75:"k",76:"l",77:"m",78:"n",79:"o",80:"p",81:"q",82:"r",83:"s",84:"t",85:"u",86:"v",87:"w",88:"x",89:"y",90:"z",93:"context",96:"num-0",97:"num-1",98:"num-2",99:"num-3",100:"num-4",101:"num-5",102:"num-6",103:"num-7",104:"num-8",105:"num-9",106:"num-multiply",107:"num-plus",109:"num-minus",110:"num-period",111:"num-division",112:"f1",113:"f2",114:"f3",115:"f4",116:"f5",117:"f6",118:"f7",119:"f8",120:"f9",121:"f10",122:"f11",123:"f12",186:"semicolon",187:"equals",189:"dash",188:",",190:".",191:"/", 192:"`",219:"open-square-bracket",220:"\\",221:"close-square-bracket",222:"single-quote",224:"win"};_ds.f=WR.prototype;_ds.f.keyCode=function(a){this.m=a;return this};_ds.f.key=function(a){this.o=a;return this};_ds.f.shiftKey=function(a){this.H=a;return this};_ds.f.altKey=function(a){this.h=a;return this};_ds.f.ctrlKey=function(a){this.j=a;return this};_ds.f.metaKey=function(a){this.C=a;return this};_ds.f.target=function(a){this.K=a;return this};_ds.F(ZR,_ds.Rf); var mS=[27,112,113,114,115,116,117,118,119,120,121,122,123,19],nS="color date datetime datetime-local email month number password search tel text time url week".split(" "),bS;_ds.F(oS,_ds.dj);_ds.f=oS.prototype;_ds.f.nF=function(){return this.G};_ds.f.Lfa=function(a){this.K=a};_ds.f.oF=function(){return this.K};_ds.f.Ifa=function(a){this.F=a};_ds.f.kF=function(){return this.F};_ds.f.$ja=function(a){this.N=a};_ds.f.GJ=function(){return this.N};_ds.f.Kfa=function(a){this.O=a};_ds.f.Gj=_ds.ba(2); _ds.f.Xna=function(a){aS(this.j,fS(0,arguments))};_ds.f.DX=function(a){return lS(this,this.j,fS(0,arguments))};_ds.f.mia=function(a){this.L=QR(a)};_ds.f.bI=function(){return _ds.Ub(this.L)}; _ds.f.ma=function(){oS.ua.ma.call(this);this.j={};_ds.pg(this.h,"keydown",this.ni,!1,this);_ds.pg(this.h,"synthetic-keydown",this.xi,!1,this);_ds.Lw&&(_ds.pg(this.h,"keypress",this.Ai,!1,this),_ds.pg(this.h,"synthetic-keypress",this.Bi,!1,this));_ds.pg(this.h,"keyup",this.oi,!1,this);_ds.pg(this.h,"synthetic-keyup",this.zi,!1,this);this.h=null};_ds.f.mO=function(a){return"shortcut_"+a};_ds.f.oi=function(a){a=YR(a);_ds.bk&&gS(this,a);_ds.Lw&&!this.o&&hS(a)&&kS(this,a,!0)}; _ds.f.zi=function(a){a=a.j();_ds.bk&&gS(this,a);_ds.Lw&&!this.o&&hS(a)&&kS(this,a,!0)};_ds.f.Ai=function(a){a=YR(a);32{}\[\]\/:,]+/,FS=0;_ds.t(wS,_ds.R);wS.prototype.disconnectedCallback=function(){_ds.Wj(this.j);this.h&&(this.h.dispose(),this.h=null)};wS.prototype.attributeChangedCallback=function(a,b,c){switch(a){case "project-scope":this.G=c||"";this.h&&(this.h.N=this.G);break;case "url-scoped":this.C=c;break;case "disabled":this.F&&(this.F.disabled=null!==c)}}; wS.prototype.connectedCallback=function(){if(this.m=this.querySelector("form")){this.F=this.m.querySelector(".devsite-search-query");this.Y=this.m.querySelector(".devsite-search-button[search-open]");this.O=this.querySelector(".devsite-search-button[search-close]");var a="devsite-search-popout-container-id-"+ ++FS;this.F.setAttribute("aria-controls",a);this.D=_ds.ir(qS,{id:a});this.o=this.D.querySelector(".devsite-suggest-results-container");this.m.appendChild(this.D);this.hasAttribute("project-scope")&& (this.G=this.getAttribute("project-scope"));this.hasAttribute("url-scoped")&&(this.C=this.getAttribute("url-scoped"));this.m&&this.F&&(this.h=new _ds.vr(this.m,this.F),this.h.m=!0,this.h.Bf=this.hasAttribute("enable-query-completion"),this.h.ke=!0,this.h.Af=!0,this.h.Cf=!0,this.h.N=this.G,this.h.m=this.hasAttribute("enable-suggestions"));CS(this)}};_ds.fa.Object.defineProperties(wS,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["project-scope","url-scoped","disabled"]}}}); wS.prototype.connectedCallback=wS.prototype.connectedCallback;wS.prototype.attributeChangedCallback=wS.prototype.attributeChangedCallback;wS.prototype.disconnectedCallback=wS.prototype.disconnectedCallback;try{window.customElements.define("devsite-search",wS)}catch(a){console.warn("devsite.app.customElement.DevsiteSearch",a)};})(_ds_www);