"use strict";(()=>{var WUe=Object.create;var Zv=Object.defineProperty;var y7=Object.getOwnPropertyDescriptor;var KUe=Object.getOwnPropertyNames;var JUe=Object.getPrototypeOf,XUe=Object.prototype.hasOwnProperty;var v7=e=>{throw TypeError(e)};var ZUe=(e,t,n)=>t in e?Zv(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var To=(e,t)=>()=>(e&&(t=e(e=0)),t);var x7=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Rn=(e,t)=>{for(var n in t)Zv(e,n,{get:t[n],enumerable:!0})},eOe=(e,t,n,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of KUe(t))!XUe.call(e,r)&&r!==n&&Zv(e,r,{get:()=>t[r],enumerable:!(o=y7(t,r))||o.enumerable});return e};var y2=(e,t,n)=>(n=e!=null?WUe(JUe(e)):{},eOe(t||!e||!e.__esModule?Zv(n,"default",{value:e,enumerable:!0}):n,e));var z=(e,t,n,o)=>{for(var r=o>1?void 0:o?y7(t,n):t,s=e.length-1,i;s>=0;s--)(i=e[s])&&(r=(o?i(t,n,r):i(r))||r);return o&&r&&Zv(t,n,r),r};var on=(e,t,n)=>ZUe(e,typeof t!="symbol"?t+"":t,n),v2=(e,t,n)=>t.has(e)||v7("Cannot "+n);var Oe=(e,t,n)=>(v2(e,t,"read from private field"),n?n.call(e):t.get(e)),Wn=(e,t,n)=>t.has(e)?v7("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),mn=(e,t,n,o)=>(v2(e,t,"write to private field"),o?o.call(e,n):t.set(e,n),n),Vp=(e,t,n)=>(v2(e,t,"access private method"),n);var Abe,_r,km,NU=To(()=>{Abe=new WeakMap,_r=e=>(...t)=>{let n=e(...t);return Abe.set(n,!0),n},km=e=>typeof e=="function"&&Abe.has(e)});var FU,Ok,Im,Nh=To(()=>{FU=typeof window<"u"&&window.customElements!=null&&window.customElements.polyfillWrapFlushCallback!==void 0,Ok=(e,t,n=null,o=null)=>{for(;t!==n;){let r=t.nextSibling;e.insertBefore(t,o),t=r}},Im=(e,t,n=null)=>{for(;t!==n;){let o=t.nextSibling;e.removeChild(t),t=o}}});var Os,qk,UU=To(()=>{Os={},qk={}});var ul,OU,kbe,Fh,Gx,Ibe,qU,qs,Hk,Uh=To(()=>{ul=`{{lit-${String(Math.random()).slice(2)}}}`,OU=``,kbe=new RegExp(`${ul}|${OU}`),Fh="$lit$",Gx=class{constructor(t,n){this.parts=[],this.element=n;let o=[],r=[],s=document.createTreeWalker(n.content,133,null,!1),i=0,a=-1,l=0,{strings:c,values:{length:u}}=t;for(;l0;){let _=c[l],h=Hk.exec(_)[2],T=h.toLowerCase()+Fh,x=p.getAttribute(T);p.removeAttribute(T);let w=x.split(kbe);this.parts.push({type:"attribute",index:a,name:h,strings:w}),l+=w.length-1}}p.tagName==="TEMPLATE"&&(r.push(p),s.currentNode=p.content)}else if(p.nodeType===3){let m=p.data;if(m.indexOf(ul)>=0){let g=p.parentNode,f=m.split(kbe),_=f.length-1;for(let h=0;h<_;h++){let T,x=f[h];if(x==="")T=qs();else{let w=Hk.exec(x);w!==null&&Ibe(w[2],Fh)&&(x=x.slice(0,w.index)+w[1]+w[2].slice(0,-Fh.length)+w[3]),T=document.createTextNode(x)}g.insertBefore(T,p),this.parts.push({type:"node",index:++a})}f[_]===""?(g.insertBefore(qs(),p),o.push(p)):p.data=f[_],l+=_}}else if(p.nodeType===8)if(p.data===ul){let m=p.parentNode;(p.previousSibling===null||a===i)&&(a++,m.insertBefore(qs(),p)),i=a,this.parts.push({type:"node",index:a}),p.nextSibling===null?p.data="":(o.push(p),a--),l++}else{let m=-1;for(;(m=p.data.indexOf(ul,m+1))!==-1;)this.parts.push({type:"node",index:-1}),l++}}for(let p of o)p.parentNode.removeChild(p)}},Ibe=(e,t)=>{let n=e.length-t.length;return n>=0&&e.slice(n)===t},qU=e=>e.index!==-1,qs=()=>document.createComment(""),Hk=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/});var Oh,HU=To(()=>{Nh();Uh();Oh=class{constructor(t,n,o){this.__parts=[],this.template=t,this.processor=n,this.options=o}update(t){let n=0;for(let o of this.__parts)o!==void 0&&o.setValue(t[n]),n++;for(let o of this.__parts)o!==void 0&&o.commit()}_clone(){let t=FU?this.template.element.content.cloneNode(!0):document.importNode(this.template.element.content,!0),n=[],o=this.template.parts,r=document.createTreeWalker(t,133,null,!1),s=0,i=0,a,l=r.nextNode();for(;s{Nh();Uh();Pbe=window.trustedTypes&&trustedTypes.createPolicy("lit-html",{createHTML:e=>e}),bOe=` ${ul} `,dl=class{constructor(t,n,o,r){this.strings=t,this.values=n,this.type=o,this.processor=r}getHTML(){let t=this.strings.length-1,n="",o=!1;for(let r=0;r-1||o)&&s.indexOf("-->",i+1)===-1;let a=Hk.exec(s);a===null?n+=s+(o?bOe:OU):n+=s.substr(0,a.index)+a[1]+a[2]+Fh+a[3]+ul}return n+=this.strings[t],n}getTemplateElement(){let t=document.createElement("template"),n=this.getHTML();return Pbe!==void 0&&(n=Pbe.createHTML(n)),t.innerHTML=n,t}}});var Xu,zk,qh,ia,Zr,Pm,Vx,Ju,Lbe,Lm,_Oe,Hh=To(()=>{NU();Nh();UU();HU();Bk();Uh();Xu=e=>e===null||!(typeof e=="object"||typeof e=="function"),zk=e=>Array.isArray(e)||!!(e&&e[Symbol.iterator]),qh=class{constructor(t,n,o){this.dirty=!0,this.element=t,this.name=n,this.strings=o,this.parts=[];for(let r=0;r{try{let e={get capture(){return Lbe=!0,!1}};window.addEventListener("test",e,e),window.removeEventListener("test",e,e)}catch{}})();Lm=class{constructor(t,n,o){this.value=void 0,this.__pendingValue=void 0,this.element=t,this.eventName=n,this.eventContext=o,this.__boundHandleEvent=r=>this.handleEvent(r)}setValue(t){this.__pendingValue=t}commit(){for(;km(this.__pendingValue);){let s=this.__pendingValue;this.__pendingValue=Os,s(this)}if(this.__pendingValue===Os)return;let t=this.__pendingValue,n=this.value,o=t==null||n!=null&&(t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive),r=t!=null&&(n==null||o);o&&this.element.removeEventListener(this.eventName,this.__boundHandleEvent,this.__options),r&&(this.__options=_Oe(t),this.element.addEventListener(this.eventName,this.__boundHandleEvent,this.__options)),this.value=t,this.__pendingValue=Os}handleEvent(t){typeof this.value=="function"?this.value.call(this.eventContext||this.element,t):this.value.handleEvent(t)}},_Oe=e=>e&&(Lbe?{capture:e.capture,passive:e.passive,once:e.once}:e.capture)});var Gk,Vk,BU=To(()=>{Hh();Gk=class{handleAttributeExpressions(t,n,o,r){let s=n[0];return s==="."?new Vx(t,n.slice(1),o).parts:s==="@"?[new Lm(t,n.slice(1),r.eventContext)]:s==="?"?[new Pm(t,n.slice(1),o)]:new qh(t,n,o).parts}handleTextExpression(t){return new Zr(t)}},Vk=new Gk});function GU(e){let t=zU.get(e.type);t===void 0&&(t={stringsArray:new WeakMap,keyString:new Map},zU.set(e.type,t));let n=t.stringsArray.get(e.strings);if(n!==void 0)return n;let o=e.strings.join(ul);return n=t.keyString.get(o),n===void 0&&(n=new Gx(e,e.getTemplateElement()),t.keyString.set(o,n)),t.stringsArray.set(e.strings,n),n}var zU,VU=To(()=>{Uh();zU=new Map});var QU,y,YU=To(()=>{Nh();Hh();VU();QU=new WeakMap,y=(e,t,n)=>{let o=QU.get(t);o===void 0&&(Im(t,t.firstChild),QU.set(t,o=new Zr(Object.assign({templateFactory:GU},n))),o.appendInto(t)),o.setValue(e),o.commit()}});var d,ot=To(()=>{BU();Bk();BU();NU();Nh();UU();Hh();YU();VU();HU();Bk();Uh();typeof window<"u"&&(window.litHtmlVersions||(window.litHtmlVersions=[])).push("1.4.1");d=(e,...t)=>new dl(e,t,"html",Vk)});var jU,Rbe,Zu,Mbe=To(()=>{ot();jU=class{constructor(t){this.classes=new Set,this.changed=!1,this.element=t;let n=(t.getAttribute("class")||"").split(/\s+/);for(let o of n)this.classes.add(o)}add(t){this.classes.add(t),this.changed=!0}remove(t){this.classes.delete(t),this.changed=!0}commit(){if(this.changed){let t="";this.classes.forEach(n=>t+=n+" "),this.element.setAttribute("class",t)}}},Rbe=new WeakMap,Zu=_r(e=>t=>{if(!(t instanceof ia)||t instanceof Ju||t.committer.name!=="class"||t.committer.parts.length>1)throw new Error("The `classMap` directive must be used in the `class` attribute and must be the only part in the attribute.");let{committer:n}=t,{element:o}=n,r=Rbe.get(t);r===void 0&&(o.setAttribute("class",n.strings.join(" ")),Rbe.set(t,r=new Set));let s=o.classList||new jU(o);r.forEach(i=>{i in e||(s.remove(i),r.delete(i))});for(let i in e){let a=e[i];a!=r.has(i)&&(a?(s.add(i),r.add(i)):(s.remove(i),r.delete(i)))}typeof s.commit=="function"&&s.commit()})});var WU,Ge,Bh=To(()=>{ot();WU=new WeakMap,Ge=_r(e=>t=>{let n=WU.get(t);if(e===void 0&&t instanceof ia){if(n!==void 0||!WU.has(t)){let o=t.committer.name;t.committer.element.removeAttribute(o)}}else e!==n&&t.setValue(e);WU.set(t,e)})});var KU,Dbe,$be=To(()=>{ot();KU=_r(e=>t=>{let n;if(t instanceof Lm||t instanceof Zr)throw new Error("The `live` directive is not allowed on text or event bindings");if(t instanceof Pm)Dbe(t.strings),n=t.element.hasAttribute(t.name),t.value=n;else{let{element:o,name:r,strings:s}=t.committer;if(Dbe(s),t instanceof Ju){if(n=o[r],n===e)return}else t instanceof ia&&(n=o.getAttribute(r));if(n===String(e))return}t.setValue(e)}),Dbe=e=>{if(e.length!==2||e[0]!==""||e[1]!=="")throw new Error("`live` bindings can only contain a single expression")}});var Nbe,Rm,JU,XU,Fbe,Ube,Obe,Hs,qbe=To(()=>{ot();Nbe=(e,t)=>{let n=e.startNode.parentNode,o=t===void 0?e.endNode:t.startNode,r=n.insertBefore(qs(),o);n.insertBefore(qs(),o);let s=new Zr(e.options);return s.insertAfterNode(r),s},Rm=(e,t)=>(e.setValue(t),e.commit(),e),JU=(e,t,n)=>{let o=e.startNode.parentNode,r=n?n.startNode:e.endNode,s=t.endNode.nextSibling;s!==r&&Ok(o,t.startNode,s,r)},XU=e=>{Im(e.startNode.parentNode,e.startNode,e.endNode.nextSibling)},Fbe=(e,t,n)=>{let o=new Map;for(let r=t;r<=n;r++)o.set(e[r],r);return o},Ube=new WeakMap,Obe=new WeakMap,Hs=_r((e,t,n)=>{let o;return n===void 0?n=t:t!==void 0&&(o=t),r=>{if(!(r instanceof Zr))throw new Error("repeat can only be used in text bindings");let s=Ube.get(r)||[],i=Obe.get(r)||[],a=[],l=[],c=[],u=0;for(let T of e)c[u]=o?o(T,u):u,l[u]=n(T,u),u++;let p,m,g=0,f=s.length-1,_=0,h=l.length-1;for(;g<=f&&_<=h;)if(s[g]===null)g++;else if(s[f]===null)f--;else if(i[g]===c[_])a[_]=Rm(s[g],l[_]),g++,_++;else if(i[f]===c[h])a[h]=Rm(s[f],l[h]),f--,h--;else if(i[g]===c[h])a[h]=Rm(s[g],l[h]),JU(r,s[g],a[h+1]),g++,h--;else if(i[f]===c[_])a[_]=Rm(s[f],l[_]),JU(r,s[f],s[g]),f--,_++;else if(p===void 0&&(p=Fbe(c,_,h),m=Fbe(i,g,f)),!p.has(i[g]))XU(s[g]),g++;else if(!p.has(i[f]))XU(s[f]),f--;else{let T=m.get(c[_]),x=T!==void 0?s[T]:null;if(x===null){let w=Nbe(r,s[g]);Rm(w,l[_]),a[_]=w}else a[_]=Rm(x,l[_]),JU(r,x,s[g]),s[T]=null;_++}for(;_<=h;){let T=Nbe(r,a[h+1]);Rm(T,l[_]),a[_++]=T}for(;g<=f;){let T=s[g++];T!==null&&XU(T)}Ube.set(r,a),Obe.set(r,c)}})});var Hbe,q,Mm=To(()=>{Hh();ot();Hbe=new WeakMap,q=_r(e=>t=>{if(!(t instanceof Zr))throw new Error("unsafeHTML can only be used in text bindings");let n=Hbe.get(t);if(n!==void 0&&Xu(e)&&e===n.value&&t.value===n.fragment)return;let o=document.createElement("template");o.innerHTML=e;let r=document.importNode(o.content,!0);t.setValue(r),Hbe.set(t,{value:e,fragment:r})})});var Bbe,zbe,zn,Gbe=To(()=>{Hh();ot();Bbe=new WeakMap,zbe=2147483647,zn=_r((...e)=>t=>{let n=Bbe.get(t);n===void 0&&(n={lastRenderedIndex:zbe,values:[]},Bbe.set(t,n));let o=n.values,r=o.length;n.values=e;for(let s=0;sn.lastRenderedIndex);s++){let i=e[s];if(Xu(i)||typeof i.then!="function"){t.setValue(i),n.lastRenderedIndex=s;break}s{let l=n.values.indexOf(i);l>-1&&l{"use strict";ot();Mbe();Bh();$be();qbe();Mm();Gbe()});var gEe={};Rn(gEe,{parseInteractiveType:()=>RS,parseScaffoldingType:()=>M6,registerInteractiveType:()=>gM,renderInteractiveComponent:()=>fM});function gM(e){mM[e.name]=e}function RS(e){if(!e)return null;let t=e.replace(/^azurecli/,"bash").replace(/^azurepowershell/,"powershell"),n;if(t=t.replace(/^(bash|http|powershell|lab-on-demand|msgraph)(?:-|$)/,(s,i)=>(n=i,"")),n===void 0)return null;let o=mM[n]?mM[n].activateButtonConfig:{name:"unknown",attributes:[],iconClass:""},r={name:n,flags:{isExternal:n==="lab-on-demand",requiresStructuredData:n==="http"},activateButtonConfig:o};return t=t.replace(/(\w+)$/g,(s,i)=>(r.flags[i]=!0,"")),r}function M6(e){return Array.from(e.childNodes).map(t=>t.nodeName==="CODE"?t.getAttribute("data-interactive-mode"):null).pop()}function fM(e,t){let n=R6[e.name];return n||(n=R6[e.name]=mM[e.name].create()),t.firstElementChild!==n.element&&y(n.element,t),{element:n.element,setCode:(o,r)=>n.setCode(o,r),execute:()=>n.execute(),dispose:()=>{delete R6[e.name],n.dispose()}}}var mM,R6,uy=To(()=>{"use strict";M();mM={};R6={}});var d5=x7((c5,u5)=>{(function(e,t){typeof c5=="object"&&typeof u5<"u"?u5.exports=t():typeof define=="function"&&define.amd?define(t):e.Bottleneck=t()})(c5,function(){"use strict";var e=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function t(Ue){return Ue&&Ue.default||Ue}var n=function(Ue,G,C={}){var X,$,H;for(X in G)H=G[X],C[X]=($=Ue[X])!=null?$:H;return C},o=function(Ue,G,C={}){var X,$;for(X in Ue)$=Ue[X],G[X]!==void 0&&(C[X]=$);return C},r={load:n,overwrite:o},s;s=class{constructor(G,C){this.incr=G,this.decr=C,this._first=null,this._last=null,this.length=0}push(G){var C;this.length++,typeof this.incr=="function"&&this.incr(),C={value:G,prev:this._last,next:null},this._last!=null?(this._last.next=C,this._last=C):this._first=this._last=C}shift(){var G;if(this._first!=null)return this.length--,typeof this.decr=="function"&&this.decr(),G=this._first.value,(this._first=this._first.next)!=null?this._first.prev=null:this._last=null,G}first(){if(this._first!=null)return this._first.value}getArray(){var G,C,X;for(G=this._first,X=[];G!=null;)X.push((C=G,G=G.next,C.value));return X}forEachShift(G){var C;for(C=this.shift();C!=null;)G(C),C=this.shift()}debug(){var G,C,X,$,H;for(G=this._first,H=[];G!=null;)H.push((C=G,G=G.next,{value:C.value,prev:(X=C.prev)!=null?X.value:void 0,next:($=C.next)!=null?$.value:void 0}));return H}};var i=s,a;a=class{constructor(G){if(this.instance=G,this._events={},this.instance.on!=null||this.instance.once!=null||this.instance.removeAllListeners!=null)throw new Error("An Emitter already exists for this object");this.instance.on=(C,X)=>this._addListener(C,"many",X),this.instance.once=(C,X)=>this._addListener(C,"once",X),this.instance.removeAllListeners=(C=null)=>C!=null?delete this._events[C]:this._events={}}_addListener(G,C,X){var $;return($=this._events)[G]==null&&($[G]=[]),this._events[G].push({cb:X,status:C}),this.instance}listenerCount(G){return this._events[G]!=null?this._events[G].length:0}async trigger(G,...C){var X,$;try{return G!=="debug"&&this.trigger("debug",`Event triggered: ${G}`,C),this._events[G]==null?void 0:(this._events[G]=this._events[G].filter(function(H){return H.status!=="none"}),$=this._events[G].map(async H=>{var te,xe;if(H.status!=="none"){H.status==="once"&&(H.status="none");try{return xe=typeof H.cb=="function"?H.cb(...C):void 0,typeof xe?.then=="function"?await xe:xe}catch(gt){return te=gt,this.trigger("error",te),null}}}),(await Promise.all($)).find(function(H){return H!=null}))}catch(H){return X=H,this.trigger("error",X),null}}};var l=a,c,u,p;c=i,u=l,p=class{constructor(G){var C;this.Events=new u(this),this._length=0,this._lists=function(){var X,$,H;for(H=[],C=X=1,$=G;1<=$?X<=$:X>=$;C=1<=$?++X:--X)H.push(new c(()=>this.incr(),()=>this.decr()));return H}.call(this)}incr(){if(this._length++===0)return this.Events.trigger("leftzero")}decr(){if(--this._length===0)return this.Events.trigger("zero")}push(G){return this._lists[G.options.priority].push(G)}queued(G){return G!=null?this._lists[G].length:this._length}shiftAll(G){return this._lists.forEach(function(C){return C.forEachShift(G)})}getFirst(G=this._lists){var C,X,$;for(C=0,X=G.length;C0)return $;return[]}shiftLastFrom(G){return this.getFirst(this._lists.slice(G).reverse()).shift()}};var m=p,g;g=class extends Error{};var f=g,_,h,T,x,w;x=10,h=5,w=r,_=f,T=class{constructor(G,C,X,$,H,te,xe,gt){this.task=G,this.args=C,this.rejectOnDrop=H,this.Events=te,this._states=xe,this.Promise=gt,this.options=w.load(X,$),this.options.priority=this._sanitizePriority(this.options.priority),this.options.id===$.id&&(this.options.id=`${this.options.id}-${this._randomIndex()}`),this.promise=new this.Promise((lt,Jt)=>{this._resolve=lt,this._reject=Jt}),this.retryCount=0}_sanitizePriority(G){var C;return C=~~G!==G?h:G,C<0?0:C>x-1?x-1:C}_randomIndex(){return Math.random().toString(36).slice(2)}doDrop({error:G,message:C="This job has been dropped by Bottleneck"}={}){return this._states.remove(this.options.id)?(this.rejectOnDrop&&this._reject(G??new _(C)),this.Events.trigger("dropped",{args:this.args,options:this.options,task:this.task,promise:this.promise}),!0):!1}_assertStatus(G){var C;if(C=this._states.jobStatus(this.options.id),!(C===G||G==="DONE"&&C===null))throw new _(`Invalid job status ${C}, expected ${G}. Please open an issue at https://github.com/SGrondin/bottleneck/issues`)}doReceive(){return this._states.start(this.options.id),this.Events.trigger("received",{args:this.args,options:this.options})}doQueue(G,C){return this._assertStatus("RECEIVED"),this._states.next(this.options.id),this.Events.trigger("queued",{args:this.args,options:this.options,reachedHWM:G,blocked:C})}doRun(){return this.retryCount===0?(this._assertStatus("QUEUED"),this._states.next(this.options.id)):this._assertStatus("EXECUTING"),this.Events.trigger("scheduled",{args:this.args,options:this.options})}async doExecute(G,C,X,$){var H,te,xe;this.retryCount===0?(this._assertStatus("RUNNING"),this._states.next(this.options.id)):this._assertStatus("EXECUTING"),te={args:this.args,options:this.options,retryCount:this.retryCount},this.Events.trigger("executing",te);try{if(xe=await(G!=null?G.schedule(this.options,this.task,...this.args):this.task(...this.args)),C())return this.doDone(te),await $(this.options,te),this._assertStatus("DONE"),this._resolve(xe)}catch(gt){return H=gt,this._onFailure(H,te,C,X,$)}}doExpire(G,C,X){var $,H;return this._states.jobStatus(this.options.id==="RUNNING")&&this._states.next(this.options.id),this._assertStatus("EXECUTING"),H={args:this.args,options:this.options,retryCount:this.retryCount},$=new _(`This job timed out after ${this.options.expiration} ms.`),this._onFailure($,H,G,C,X)}async _onFailure(G,C,X,$,H){var te,xe;if(X())return te=await this.Events.trigger("failed",G,C),te!=null?(xe=~~te,this.Events.trigger("retry",`Retrying ${this.options.id} after ${xe} ms`,C),this.retryCount++,$(xe)):(this.doDone(C),await H(this.options,C),this._assertStatus("DONE"),this._reject(G))}doDone(G){return this._assertStatus("EXECUTING"),this._states.next(this.options.id),this.Events.trigger("done",G)}};var I=T,E,Q,O;O=r,E=f,Q=class{constructor(G,C,X){this.instance=G,this.storeOptions=C,this.clientId=this.instance._randomIndex(),O.load(X,X,this),this._nextRequest=this._lastReservoirRefresh=this._lastReservoirIncrease=Date.now(),this._running=0,this._done=0,this._unblockTime=0,this.ready=this.Promise.resolve(),this.clients={},this._startHeartbeat()}_startHeartbeat(){var G;return this.heartbeat==null&&(this.storeOptions.reservoirRefreshInterval!=null&&this.storeOptions.reservoirRefreshAmount!=null||this.storeOptions.reservoirIncreaseInterval!=null&&this.storeOptions.reservoirIncreaseAmount!=null)?typeof(G=this.heartbeat=setInterval(()=>{var C,X,$,H,te;if(H=Date.now(),this.storeOptions.reservoirRefreshInterval!=null&&H>=this._lastReservoirRefresh+this.storeOptions.reservoirRefreshInterval&&(this._lastReservoirRefresh=H,this.storeOptions.reservoir=this.storeOptions.reservoirRefreshAmount,this.instance._drainAll(this.computeCapacity())),this.storeOptions.reservoirIncreaseInterval!=null&&H>=this._lastReservoirIncrease+this.storeOptions.reservoirIncreaseInterval&&({reservoirIncreaseAmount:C,reservoirIncreaseMaximum:$,reservoir:te}=this.storeOptions,this._lastReservoirIncrease=H,X=$!=null?Math.min(C,$-te):C,X>0))return this.storeOptions.reservoir+=X,this.instance._drainAll(this.computeCapacity())},this.heartbeatInterval)).unref=="function"?G.unref():void 0:clearInterval(this.heartbeat)}async __publish__(G){return await this.yieldLoop(),this.instance.Events.trigger("message",G.toString())}async __disconnect__(G){return await this.yieldLoop(),clearInterval(this.heartbeat),this.Promise.resolve()}yieldLoop(G=0){return new this.Promise(function(C,X){return setTimeout(C,G)})}computePenalty(){var G;return(G=this.storeOptions.penalty)!=null?G:15*this.storeOptions.minTime||5e3}async __updateSettings__(G){return await this.yieldLoop(),O.overwrite(G,G,this.storeOptions),this._startHeartbeat(),this.instance._drainAll(this.computeCapacity()),!0}async __running__(){return await this.yieldLoop(),this._running}async __queued__(){return await this.yieldLoop(),this.instance.queued()}async __done__(){return await this.yieldLoop(),this._done}async __groupCheck__(G){return await this.yieldLoop(),this._nextRequest+this.timeout=G}check(G,C){return this.conditionsCheck(G)&&this._nextRequest-C<=0}async __check__(G){var C;return await this.yieldLoop(),C=Date.now(),this.check(G,C)}async __register__(G,C,X){var $,H;return await this.yieldLoop(),$=Date.now(),this.conditionsCheck(C)?(this._running+=C,this.storeOptions.reservoir!=null&&(this.storeOptions.reservoir-=C),H=Math.max(this._nextRequest-$,0),this._nextRequest=$+H+this.storeOptions.minTime,{success:!0,wait:H,reservoir:this.storeOptions.reservoir}):{success:!1}}strategyIsBlock(){return this.storeOptions.strategy===3}async __submit__(G,C){var X,$,H;if(await this.yieldLoop(),this.storeOptions.maxConcurrent!=null&&C>this.storeOptions.maxConcurrent)throw new E(`Impossible to add a job having a weight of ${C} to a limiter having a maxConcurrent setting of ${this.storeOptions.maxConcurrent}`);return $=Date.now(),H=this.storeOptions.highWater!=null&&G===this.storeOptions.highWater&&!this.check(C,$),X=this.strategyIsBlock()&&(H||this.isBlocked($)),X&&(this._unblockTime=$+this.computePenalty(),this._nextRequest=this._unblockTime+this.storeOptions.minTime,this.instance._dropAllQueued()),{reachedHWM:H,blocked:X,strategy:this.storeOptions.strategy}}async __free__(G,C){return await this.yieldLoop(),this._running-=C,this._done+=C,this.instance._drainAll(this.computeCapacity()),{running:this._running}}};var ye=Q,Ae,de;Ae=f,de=class{constructor(G){this.status=G,this._jobs={},this.counts=this.status.map(function(){return 0})}next(G){var C,X;if(C=this._jobs[G],X=C+1,C!=null&&X(G[this.status[X]]=C,G),{})}};var xt=de,qt,Qt;qt=i,Qt=class{constructor(G,C){this.schedule=this.schedule.bind(this),this.name=G,this.Promise=C,this._running=0,this._queue=new qt}isEmpty(){return this._queue.length===0}async _tryToRun(){var G,C,X,$,H,te,xe;if(this._running<1&&this._queue.length>0)return this._running++,{task:xe,args:G,resolve:H,reject:$}=this._queue.shift(),C=await async function(){try{return te=await xe(...G),function(){return H(te)}}catch(gt){return X=gt,function(){return $(X)}}}(),this._running--,this._tryToRun(),C()}schedule(G,...C){var X,$,H;return H=$=null,X=new this.Promise(function(te,xe){return H=te,$=xe}),this._queue.push({task:G,args:C,resolve:H,reject:$}),this._tryToRun(),X}};var Ln=Qt,Yt="2.19.5",Ft={version:Yt},vn=Object.freeze({version:Yt,default:Ft}),it=()=>console.log("You must import the full version of Bottleneck in order to use this feature."),Ne=()=>console.log("You must import the full version of Bottleneck in order to use this feature."),U=()=>console.log("You must import the full version of Bottleneck in order to use this feature."),ce,B,ae,ve,P,Z;Z=r,ce=l,ve=it,ae=Ne,P=U,B=function(){class Ue{constructor(C={}){this.deleteKey=this.deleteKey.bind(this),this.limiterOptions=C,Z.load(this.limiterOptions,this.defaults,this),this.Events=new ce(this),this.instances={},this.Bottleneck=xo,this._startAutoCleanup(),this.sharedConnection=this.connection!=null,this.connection==null&&(this.limiterOptions.datastore==="redis"?this.connection=new ve(Object.assign({},this.limiterOptions,{Events:this.Events})):this.limiterOptions.datastore==="ioredis"&&(this.connection=new ae(Object.assign({},this.limiterOptions,{Events:this.Events}))))}key(C=""){var X;return(X=this.instances[C])!=null?X:(()=>{var $;return $=this.instances[C]=new this.Bottleneck(Object.assign(this.limiterOptions,{id:`${this.id}-${C}`,timeout:this.timeout,connection:this.connection})),this.Events.trigger("created",$,C),$})()}async deleteKey(C=""){var X,$;return $=this.instances[C],this.connection&&(X=await this.connection.__runCommand__(["del",...P.allKeys(`${this.id}-${C}`)])),$!=null&&(delete this.instances[C],await $.disconnect()),$!=null||X>0}limiters(){var C,X,$,H;X=this.instances,$=[];for(C in X)H=X[C],$.push({key:C,limiter:H});return $}keys(){return Object.keys(this.instances)}async clusterKeys(){var C,X,$,H,te,xe,gt,lt,Jt;if(this.connection==null)return this.Promise.resolve(this.keys());for(xe=[],C=null,Jt=`b_${this.id}-`.length,X=9;C!==0;)for([lt,$]=await this.connection.__runCommand__(["scan",C??0,"match",`b_${this.id}-*_settings`,"count",1e4]),C=~~lt,H=0,gt=$.length;H{var X,$,H,te,xe,gt;xe=Date.now(),H=this.instances,te=[];for($ in H){gt=H[$];try{await gt._store.__groupCheck__(xe)?te.push(this.deleteKey($)):te.push(void 0)}catch(lt){X=lt,te.push(gt.Events.trigger("error",X))}}return te},this.timeout/2)).unref=="function"?C.unref():void 0}updateSettings(C={}){if(Z.overwrite(C,this.defaults,this),Z.overwrite(C,C,this.limiterOptions),C.timeout!=null)return this._startAutoCleanup()}disconnect(C=!0){var X;if(!this.sharedConnection)return(X=this.connection)!=null?X.disconnect(C):void 0}}return Ue.prototype.defaults={timeout:1e3*60*5,connection:null,Promise,id:"group-key"},Ue}.call(e);var F=B,ne,ie,Ie;Ie=r,ie=l,ne=function(){class Ue{constructor(C={}){this.options=C,Ie.load(this.options,this.defaults,this),this.Events=new ie(this),this._arr=[],this._resetPromise(),this._lastFlush=Date.now()}_resetPromise(){return this._promise=new this.Promise((C,X)=>this._resolve=C)}_flush(){return clearTimeout(this._timeout),this._lastFlush=Date.now(),this._resolve(),this.Events.trigger("batch",this._arr),this._arr=[],this._resetPromise()}add(C){var X;return this._arr.push(C),X=this._promise,this._arr.length===this.maxSize?this._flush():this.maxTime!=null&&this._arr.length===1&&(this._timeout=setTimeout(()=>this._flush(),this.maxTime)),X}}return Ue.prototype.defaults={maxTime:null,maxSize:null,Promise},Ue}.call(e);var Le=ne,ht=()=>console.log("You must import the full version of Bottleneck in order to use this feature."),Lt=t(vn),zt,Y,ue,be,we,ke,je,Ke,Pt,tt,Rt,nr=[].splice;ke=10,Y=5,Rt=r,je=m,be=I,we=ye,Ke=ht,ue=l,Pt=xt,tt=Ln,zt=function(){class Ue{constructor(C={},...X){var $,H;this._addToQueue=this._addToQueue.bind(this),this._validateOptions(C,X),Rt.load(C,this.instanceDefaults,this),this._queues=new je(ke),this._scheduled={},this._states=new Pt(["RECEIVED","QUEUED","RUNNING","EXECUTING"].concat(this.trackDoneStatus?["DONE"]:[])),this._limiter=null,this.Events=new ue(this),this._submitLock=new tt("submit",this.Promise),this._registerLock=new tt("register",this.Promise),H=Rt.load(C,this.storeDefaults,{}),this._store=function(){if(this.datastore==="redis"||this.datastore==="ioredis"||this.connection!=null)return $=Rt.load(C,this.redisStoreDefaults,{}),new Ke(this,H,$);if(this.datastore==="local")return $=Rt.load(C,this.localStoreDefaults,{}),new we(this,H,$);throw new Ue.prototype.BottleneckError(`Invalid datastore type: ${this.datastore}`)}.call(this),this._queues.on("leftzero",()=>{var te;return(te=this._store.heartbeat)!=null&&typeof te.ref=="function"?te.ref():void 0}),this._queues.on("zero",()=>{var te;return(te=this._store.heartbeat)!=null&&typeof te.unref=="function"?te.unref():void 0})}_validateOptions(C,X){if(!(C!=null&&typeof C=="object"&&X.length===0))throw new Ue.prototype.BottleneckError("Bottleneck v2 takes a single object argument. Refer to https://github.com/SGrondin/bottleneck#upgrading-to-v2 if you're upgrading from Bottleneck v1.")}ready(){return this._store.ready}clients(){return this._store.clients}channel(){return`b_${this.id}`}channel_client(){return`b_${this.id}_${this._store.clientId}`}publish(C){return this._store.__publish__(C)}disconnect(C=!0){return this._store.__disconnect__(C)}chain(C){return this._limiter=C,this}queued(C){return this._queues.queued(C)}clusterQueued(){return this._store.__queued__()}empty(){return this.queued()===0&&this._submitLock.isEmpty()}running(){return this._store.__running__()}done(){return this._store.__done__()}jobStatus(C){return this._states.jobStatus(C)}jobs(C){return this._states.statusJobs(C)}counts(){return this._states.statusCounts()}_randomIndex(){return Math.random().toString(36).slice(2)}check(C=1){return this._store.__check__(C)}_clearGlobalState(C){return this._scheduled[C]!=null?(clearTimeout(this._scheduled[C].expiration),delete this._scheduled[C],!0):!1}async _free(C,X,$,H){var te,xe;try{if({running:xe}=await this._store.__free__(C,$.weight),this.Events.trigger("debug",`Freed ${$.id}`,H),xe===0&&this.empty())return this.Events.trigger("idle")}catch(gt){return te=gt,this.Events.trigger("error",te)}}_run(C,X,$){var H,te,xe;return X.doRun(),H=this._clearGlobalState.bind(this,C),xe=this._run.bind(this,C,X),te=this._free.bind(this,C,X),this._scheduled[C]={timeout:setTimeout(()=>X.doExecute(this._limiter,H,xe,te),$),expiration:X.options.expiration!=null?setTimeout(function(){return X.doExpire(H,xe,te)},$+X.options.expiration):void 0,job:X}}_drainOne(C){return this._registerLock.schedule(()=>{var X,$,H,te,xe;return this.queued()===0?this.Promise.resolve(null):(xe=this._queues.getFirst(),{options:te,args:X}=H=xe.first(),C!=null&&te.weight>C?this.Promise.resolve(null):(this.Events.trigger("debug",`Draining ${te.id}`,{args:X,options:te}),$=this._randomIndex(),this._store.__register__($,te.weight,te.expiration).then(({success:gt,wait:lt,reservoir:Jt})=>{var zp;return this.Events.trigger("debug",`Drained ${te.id}`,{success:gt,args:X,options:te}),gt?(xe.shift(),zp=this.empty(),zp&&this.Events.trigger("empty"),Jt===0&&this.Events.trigger("depleted",zp),this._run($,H,lt),this.Promise.resolve(te.weight)):this.Promise.resolve(null)})))})}_drainAll(C,X=0){return this._drainOne(C).then($=>{var H;return $!=null?(H=C!=null?C-$:C,this._drainAll(H,X+$)):this.Promise.resolve(X)}).catch($=>this.Events.trigger("error",$))}_dropAllQueued(C){return this._queues.shiftAll(function(X){return X.doDrop({message:C})})}stop(C={}){var X,$;return C=Rt.load(C,this.stopDefaults),$=H=>{var te;return te=()=>{var xe;return xe=this._states.counts,xe[0]+xe[1]+xe[2]+xe[3]===H},new this.Promise((xe,gt)=>te()?xe():this.on("done",()=>{if(te())return this.removeAllListeners("done"),xe()}))},X=C.dropWaitingJobs?(this._run=function(H,te){return te.doDrop({message:C.dropErrorMessage})},this._drainOne=()=>this.Promise.resolve(null),this._registerLock.schedule(()=>this._submitLock.schedule(()=>{var H,te,xe;te=this._scheduled;for(H in te)xe=te[H],this.jobStatus(xe.job.options.id)==="RUNNING"&&(clearTimeout(xe.timeout),clearTimeout(xe.expiration),xe.job.doDrop({message:C.dropErrorMessage}));return this._dropAllQueued(C.dropErrorMessage),$(0)}))):this.schedule({priority:ke-1,weight:0},()=>$(1)),this._receive=function(H){return H._reject(new Ue.prototype.BottleneckError(C.enqueueErrorMessage))},this.stop=()=>this.Promise.reject(new Ue.prototype.BottleneckError("stop() has already been called")),X}async _addToQueue(C){var X,$,H,te,xe,gt,lt;({args:X,options:te}=C);try{({reachedHWM:xe,blocked:$,strategy:lt}=await this._store.__submit__(this.queued(),te.weight))}catch(Jt){return H=Jt,this.Events.trigger("debug",`Could not queue ${te.id}`,{args:X,options:te,error:H}),C.doDrop({error:H}),!1}return $?(C.doDrop(),!0):xe&&(gt=lt===Ue.prototype.strategy.LEAK?this._queues.shiftLastFrom(te.priority):lt===Ue.prototype.strategy.OVERFLOW_PRIORITY?this._queues.shiftLastFrom(te.priority+1):lt===Ue.prototype.strategy.OVERFLOW?C:void 0,gt?.doDrop(),gt==null||lt===Ue.prototype.strategy.OVERFLOW)?(gt==null&&C.doDrop(),xe):(C.doQueue(xe,$),this._queues.push(C),await this._drainAll(),xe)}_receive(C){return this._states.jobStatus(C.options.id)!=null?(C._reject(new Ue.prototype.BottleneckError(`A job with the same id already exists (id=${C.options.id})`)),!1):(C.doReceive(),this._submitLock.schedule(this._addToQueue,C))}submit(...C){var X,$,H,te,xe,gt,lt;return typeof C[0]=="function"?(xe=C,[$,...C]=xe,[X]=nr.call(C,-1),te=Rt.load({},this.jobDefaults)):(gt=C,[te,$,...C]=gt,[X]=nr.call(C,-1),te=Rt.load(te,this.jobDefaults)),lt=(...Jt)=>new this.Promise(function(zp,Gp){return $(...Jt,function(...PE){return(PE[0]!=null?Gp:zp)(PE)})}),H=new be(lt,C,te,this.jobDefaults,this.rejectOnDrop,this.Events,this._states,this.Promise),H.promise.then(function(Jt){return typeof X=="function"?X(...Jt):void 0}).catch(function(Jt){return Array.isArray(Jt)?typeof X=="function"?X(...Jt):void 0:typeof X=="function"?X(Jt):void 0}),this._receive(H)}schedule(...C){var X,$,H;return typeof C[0]=="function"?([H,...C]=C,$={}):[$,H,...C]=C,X=new be(H,C,$,this.jobDefaults,this.rejectOnDrop,this.Events,this._states,this.Promise),this._receive(X),X.promise}wrap(C){var X,$;return X=this.schedule.bind(this),$=function(...H){return X(C.bind(this),...H)},$.withOptions=function(H,...te){return X(H,C,...te)},$}async updateSettings(C={}){return await this._store.__updateSettings__(Rt.overwrite(C,this.storeDefaults)),Rt.overwrite(C,this.instanceDefaults,this),this}currentReservoir(){return this._store.__currentReservoir__()}incrementReservoir(C=0){return this._store.__incrementReservoir__(C)}}return Ue.default=Ue,Ue.Events=ue,Ue.version=Ue.prototype.version=Lt.version,Ue.strategy=Ue.prototype.strategy={LEAK:1,OVERFLOW:2,OVERFLOW_PRIORITY:4,BLOCK:3},Ue.BottleneckError=Ue.prototype.BottleneckError=f,Ue.Group=Ue.prototype.Group=F,Ue.RedisConnection=Ue.prototype.RedisConnection=it,Ue.IORedisConnection=Ue.prototype.IORedisConnection=Ne,Ue.Batcher=Ue.prototype.Batcher=Le,Ue.prototype.jobDefaults={priority:Y,weight:1,expiration:null,id:""},Ue.prototype.storeDefaults={maxConcurrent:null,minTime:0,highWater:null,strategy:Ue.prototype.strategy.LEAK,penalty:null,reservoir:null,reservoirRefreshInterval:null,reservoirRefreshAmount:null,reservoirIncreaseInterval:null,reservoirIncreaseAmount:null,reservoirIncreaseMaximum:null},Ue.prototype.localStoreDefaults={Promise,timeout:null,heartbeatInterval:250},Ue.prototype.redisStoreDefaults={Promise,timeout:null,heartbeatInterval:5e3,clientTimeout:1e4,Redis:null,clientOptions:{},clusterNodes:null,clearDatastore:!1,connection:null},Ue.prototype.instanceDefaults={datastore:"local",connection:null,id:"",rejectOnDrop:!0,trackDoneStatus:!1,Promise},Ue.prototype.stopDefaults={enqueueErrorMessage:"This limiter has been stopped and cannot accept new jobs.",dropWaitingJobs:!0,dropErrorMessage:"This limiter has been stopped."},Ue}.call(e);var xo=zt,ta=xo;return ta})});var Tke=x7(h1=>{"use strict";Object.defineProperty(h1,"__esModule",{value:!0});h1.format=IVe;h1.parse=PVe;var EVe=/^[\u0009\u0020-\u007e\u0080-\u00ff]*$/,bke=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+$/,AVe=/[\\"]/g,kVe=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/,_ke=(()=>{let e=function(){};return e.prototype=Object.create(null),e})();function IVe(e){let{type:t,parameters:n}=e;if(!t||!kVe.test(t))throw new TypeError(`Invalid type: ${t}`);let o=t;if(n)for(let r of Object.keys(n)){if(!bke.test(r))throw new TypeError(`Invalid parameter name: ${r}`);o+=`; ${r}=${DVe(n[r])}`}return o}function PVe(e,t){let n=e.length,o=b5(e,0,n),r=o;o=h5(e,o,n);let s=_5(e,r,o),i=e.slice(r,s).toLowerCase(),a=t?.parameters===!1?new _ke:MVe(e,o,n);return{type:i,parameters:a}}var yke=32,vke=9,xke=59,LVe=61,hke=34,RVe=92;function MVe(e,t,n){let o=new _ke;e:for(;tt;){let o=e.charCodeAt(n-1);if(o!==yke&&o!==vke)break;n--}return n}function DVe(e){if(bke.test(e))return e;if(EVe.test(e))return`"${e.replace(AVe,"\\$&")}"`;throw new TypeError(`Invalid parameter value: ${e}`)}});function T7(){window.addEventListener("click",({target:e})=>{let t=e instanceof Element&&e.closest("[data-dismiss]");if(!t)return;let n=t.closest("[data-dismissable]");n&&tOe(n)})}function tOe(e){let t=e.getAttribute("data-dismiss-animation");if(t)switch(e.addEventListener("animationend",()=>{e.remove()}),t){case"slide-up":e.classList.add("animation-slide-up");break;case"fade":e.classList.add("animation-fade");break}else e.remove();window.dispatchEvent(new CustomEvent("dismiss-content-update"))}function Xf(e=document.body){e.addEventListener("toggle",t=>{let n=t.target instanceof Element&&t.target.closest("details.popover")||t.target instanceof Element&&t.target.shadowRoot?.activeElement?.closest("details.popover");if(!n)return;let o=n.querySelector(".popover-content");if(!o)return;if(!n.open){o.style.visibility="hidden";return}requestAnimationFrame(()=>{S7(n),o.offsetHeight});let r=()=>{n.open&&S7(n)},s=c=>{c.key==="Escape"&&l()},i=c=>{c.target instanceof Element&&(n?.contains(c.target)||l(),c.type==="click"&&c.target.closest("[data-popover-close]")&&l())},a=()=>{document.activeElement?.nodeName?.toLowerCase()==="iframe"&&l()},l=()=>{e.removeEventListener("focus",i,!0),e.removeEventListener("click",i),e.removeEventListener("touchstart",i),e.removeEventListener("keydown",s),window.removeEventListener("blur",a),window.removeEventListener("resize",r),n?.open&&(n.removeAttribute("open"),o.style.visibility="hidden")};e.addEventListener("focus",i,!0),e.addEventListener("click",i),e.addEventListener("touchstart",i),e.addEventListener("keydown",s),window.addEventListener("blur",a),window.addEventListener("resize",r)},!0)}var w7=24,x2=8;function nOe(e){return window.getComputedStyle(e).direction==="rtl"}function oOe(e,t,n){let o=n.getBoundingClientRect(),r=window.innerHeight-o.bottom,s=o.top,i=e.classList.contains("popover-top"),a=e.classList.contains("popover-bottom"),l=t.offsetHeight,c=a||!i&&(l+x2>s||r>=l||r>=s),u=e.classList.contains("popover-caret");u&&e.classList.remove("popover-caret-bottom");let p=0;c?p=n.offsetTop+n.offsetHeight+x2:(p=n.offsetTop-t.offsetHeight-x2,u&&e.classList.add("popover-caret-bottom")),t.style.top=`${p}px`}function rOe(e,t,n,o){let r=t.offsetWidth,s=n.offsetWidth,i=window.innerWidth,l=t.offsetParent.getBoundingClientRect(),c=n.offsetLeft,u=c+s,p,m=e.classList.contains("popover-left"),g=e.classList.contains("popover-right");if(m)p=o?u-r:c;else if(g)p=o?c:u-r;else{p=c+s/2-r/2;let f=l.left+p,_=f+r;fi-w7&&(p=u-r)}return o?(t.style.setProperty("left",`${p}px`),t.style.setProperty("right","auto")):t.style.setProperty("inset-inline-start",`${p}px`),p}function sOe(e,t,n,o){let r=e.offsetWidth,s=t.offsetWidth,a=t.offsetLeft+s/2,l;o?l=100-(a-n+4)/r*100:l=(a-n-4)/r*100;let c=Math.min(Math.max(l,10),90);e.style.setProperty("--caret-left",`${c}%`)}function S7(e){let t=e.querySelector(".popover-content"),n=e.querySelector("summary");if(!t||!n)return;t.style.top="",t.style.left="",t.style.right="",t.style.setProperty("inset-inline-start","");let o=nOe(e);oOe(e,t,n);let r=rOe(e,t,n,o);e.classList.contains("popover-caret")&&sOe(t,n,r,o),t.style.visibility="visible"}var T2=!1;function C7(){aOe();let e=Array.from(document.querySelectorAll("[data-snap-scroll]"));for(let t of e)iOe(t)}function iOe(e){let t=e.querySelector("[data-snap-scroll-slides]");if(!t)throw new Error('Your snap scroll element must contain a scrollable element with "data-snap-scroll-slides" attribute.');let n=Array.from(t.querySelectorAll("[data-snap-scroll-slide]")),o={root:t,rootMargin:"0px",threshold:.8},r=new IntersectionObserver(s=>{if(!T2&&s[0].isIntersecting===!0){let i=s[0].target.getAttribute("data-snap-scroll-slide");if(!i)throw new Error("The [data-snap-scroll-slide] clicked does not correspond to a [data-snap-scroll-nav-item]");let a=e.querySelector(`[data-snap-scroll-nav-item="${i}"]`);if(!a)throw new Error("Anchor missing from snap scroll container");E7(e,a)}},o);n.forEach(s=>r.observe(s))}function aOe(){window.addEventListener("click",e=>{let t=e.target instanceof Element&&e.target.closest("[data-snap-scroll-nav-item]");if(!t)return;let n=t.closest("[data-snap-scroll]");if(!n)return;let o=t.dataset.snapScrollNavItem;if(!o)throw new Error('You need to add a value to the parent of your snap scroll: [data-snap-scroll="id-goes-here")');T2=!0,e.preventDefault();let r=n.querySelector(`[data-snap-scroll-slide="${o}"]`);E7(n,t),r.scrollIntoView({behavior:"auto",block:"nearest",inline:"start"}),setTimeout(()=>T2=!1,500)})}function E7(e,t){let n=Array.from(e.querySelectorAll("[data-snap-scroll-nav-item]"));for(let o of n)o.classList.remove("is-current");t.classList.add("is-current")}var lOe=0;function ex(){return`bx-${lOe++}`}function A7(e){return e.replace(/-./g,t=>t[1].toUpperCase())}var hit=new Promise(e=>{document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>e()):e()});var k7={contentHasChanged:"Content has changed, please reload the page to get the latest changes.",inputGroupRequired:"At least one selection for {inputGroup} is required.",inputMaxLength:"{inputLabel} cannot be longer than {maxLength} characters.",inputMinLength:"{inputLabel} must be at least {minLength} characters.",inputRequired:"{inputLabel} is required.",notAuthenticated:"You are not authenticated. Please refresh the page and try again. If this issue persists, please log out and log back in.",notAuthorized:"You are not authorized to make this response. If you believe this to be in error, please refresh the page and try again.",pleaseFixTheFollowingIssues:"Please fix the following issues to continue:",thereAreNoEditsToSubmit:"There are no edits to submit.",tooManyRequests:"You have sent too many requests. Please wait a few minutes and try again.",weEncounteredAnUnexpectedError:"We encountered an unexpected error. Please try again later. If this issue continues, please contact site support."},RE=class extends HTMLElement{constructor(){super();on(this,"submitting",!1);on(this,"initialData",new FormData);on(this,"toDispose",[]);on(this,"isDirty",!1);on(this,"commitTimeout",0);on(this,"locStrings",k7);on(this,"validators",[this.validateMinLength.bind(this),this.validateRequired.bind(this),this.validateMaxLength.bind(this)]);on(this,"commit",n=>{!L7(n.target,this.form)||!n.target?.form||n.target?.form!==this.parentElement||(clearTimeout(this.commitTimeout),n.type==="change"&&cOe(n.target),this.setDirty())});this.locStrings=this.locStrings}get canSave(){return this.isDirty||this.isNew}get form(){return this.closest("form")}get hideUnloadMessage(){return this.hasAttribute("nounload")}get isNew(){return this.hasAttribute("new")}get noSubmit(){return this.hasAttribute("nosubmit")}connectedCallback(){let n=this.parentElement;if(!(n instanceof HTMLFormElement))return;this.locStrings=this.getLocaleStrings(),n.setAttribute("novalidate","");let o=document.createElement("div");o.setAttribute("data-form-error-container",""),n.hasAttribute("data-hide-validation-banner")&&(o.hidden=!0),this.insertAdjacentElement("afterend",o),this.initialData=new FormData(n),this.ownerDocument.readyState==="loading"&&this.ownerDocument.addEventListener("readystatechange",()=>this.initialData=new FormData(n)),this.subscribe(n,"input",this),this.subscribe(n,"change",this),this.subscribe(n,"submit",this),this.subscribe(window,"beforeunload",this)}disconnectedCallback(){for(let n of this.toDispose)n()}getLocaleStrings(){let n=Array.from(this.attributes).filter(o=>o.name.startsWith("loc-")).reduce((o,r)=>(o[A7(r.name.substring(4))]=r.value,o),{});return Object.assign({},k7,n)}subscribe(n,o,r){n.addEventListener(o,r),this.toDispose.push(()=>n.removeEventListener(o,r))}setDirty(){let n=new URLSearchParams(this.initialData).toString(),o=new URLSearchParams(new FormData(this.parentElement)).toString();this.isDirty=o!==n}handleEvent(n){switch(n.type){case"submit":this.handleSubmitEvent(n);break;case"beforeunload":this.handleUnloadEvent(n);break;case"input":this.clearValidationErrors(n.target),this.scheduleCommit(n);break;case"change":this.clearValidationErrors(n.target),this.commit(n);break;default:throw new Error(`Unexpected event ${n.type}.`)}}navigate(n){return dOe(n,this.getAttribute("navigation"))}scheduleCommit(n){clearTimeout(this.commitTimeout),setTimeout(this.commit,300,n)}async handleUnloadEvent(n){this.setDirty(),!(!this.isDirty||this.hideUnloadMessage)&&(n.preventDefault(),n.returnValue="You have unsaved work.")}async handleSubmitEvent(n){if(n.preventDefault(),this.submitting)return;let o=n.currentTarget;if(!this.canSave){this.showNoChangesMessage(o);let s=new CustomEvent("form-validating",{detail:{form:o},bubbles:!0});this.dispatchEvent(s);return}let r=!1;try{if(this.submitting=!0,I7(n,o,this.submitting),!(await this.validateForm(o)).valid||this.noSubmit)return;let i=mOe(n)??o.action,a=new URL(i).searchParams,l=new FormData(o),c=new Headers;c.set("content-type","applicationhttps://www.microsoft.com/json");for(let{name:h,value:T}of this.attributes)h.startsWith("header-")&&c.set(h.substring(7),T);let p={method:a.get("_method")||o.method||"GET",body:JSON.stringify(Object.fromEntries(l)),headers:c},m=new CustomEvent("beforesubmit",{detail:{url:i,init:p,form:o,callback:async()=>{}},bubbles:!0,cancelable:!0}),g=!this.dispatchEvent(m);if(m.detail.callback)try{await m.detail.callback()}catch{return}if(g)return;let f,_;try{if(f=new Request(m.detail.url,m.detail.init),_=await fetch(f),_.ok)this.removeAttribute("new"),this.initialData=l,this.setDirty(),this.dispatchEvent(new CustomEvent("aftersubmit",{detail:{request:f,response:_},bubbles:!0})),r=this.navigate(_.headers.get("location")??this.getAttribute("navigation-href"));else{let h=this.locStrings.weEncounteredAnUnexpectedError;switch(_.status){case 401:h=this.locStrings.notAuthenticated;break;case 403:h=this.locStrings.notAuthorized;break;case 412:h=this.locStrings.contentHasChanged;break;case 429:h=this.locStrings.tooManyRequests;break}this.submissionError(o,h,f,_)}}catch{this.submissionError(o,this.locStrings.weEncounteredAnUnexpectedError,f,_);return}}finally{this.submitting=r,I7(n,o,this.submitting)}}createErrorAlert(n){let o=n.querySelector("[data-form-error-container]")||n,r=ex(),s=document.createElement("div");s.className="help help-danger background-color-danger-light border border-color-danger border-radius padding-xs margin-bottom-sm",s.setAttribute("data-form-error-alert",""),s.setAttribute("role","alert"),s.setAttribute("aria-labelledby",r),s.setAttribute("tabindex","-1"),s.hidden=!0;let i=document.createElement("p");i.id=r,i.className="font-size-md font-weight-semibold margin-bottom-xs display-inline-flex",i.innerText=this.locStrings.pleaseFixTheFollowingIssues;let a=document.createElement("ul");return a.setAttribute("aria-label","Validation errors"),a.classList.add("margin-left-sm-tablet"),s.append(i,a),o.appendChild(s),{errorAlert:s,errorList:a}}getErrorAlert(n){let o=n.querySelector("[data-form-error-alert]");return o?{errorAlert:o,errorList:o.lastElementChild}:this.createErrorAlert(n)}submissionError(n,o,r,s){let{errorAlert:i,errorList:a}=this.getErrorAlert(n),l=document.createElement("li");l.innerText=o,this.dispatchEvent(new CustomEvent("submission-error",{detail:{form:n,request:r,response:s},bubbles:!0})),a.appendChild(l),i.hidden=!1,i.focus()}validateRequired(n,o){return n.validity.valueMissing?this.locStrings.inputRequired.replace("{inputLabel}",customElements.get(n.localName)||n.type==="radio"?`A selection for "${o}"`:o):null}validateMinLength(n,o){return(n instanceof HTMLTextAreaElement||n instanceof HTMLInputElement)&&(n.validity.tooShort||n.minLength>0&&n.value.length0&&n.value.length>n.maxLength)?this.locStrings.inputMaxLength.replace("{inputLabel}",o).replace("{maxLength}",n.maxLength.toString()):null}async validateForm(n,o=!0,r=n){let s=[],{errorAlert:i,errorList:a}=this.getErrorAlert(n);(o||n.hasAttribute("data-hide-validation-banner"))&&(i.hidden=!0,a.innerHTML="");let l=pOe(n);for(let c of[...n.elements,...l]){if(!r.contains(c)||!w2(c,n))continue;if(c.type==="radio"){let m=n.querySelectorAll(`input[name="${c.name}"]`);if(m.length>1&&m[0]!==c)continue}if(c.hasAttribute("aria-hidden")===!0||c.getAttribute("role")==="combobox"||c.closest("docs-markdown-editor"))continue;if(c.hasAttribute("data-skip-validation")){let m=new CustomEvent("form-validating",{detail:{errors:s,form:n},bubbles:!0});this.dispatchEvent(m);continue}let u=!!l.find(m=>m===c);this.runBasicValidation(c,o,s,a,u);let p=new CustomEvent("form-validating",{detail:{errors:s,form:n},bubbles:!0});this.dispatchEvent(p)}return s.length===0?{valid:!0}:(o&&(i.hidden=!1,i.focus()),{valid:!1,errors:s})}clearValidationErrors(n){if(!w2(n,this.form))return;if(P7(n),Qp(n,""),Ou(n).classList.remove("errored"),n.form){let{errorAlert:r,errorList:s}=this.getErrorAlert(n.form);s.querySelectorAll(`a[href="http://approjects.co.za/?big=#${n.id}"]`).forEach(i=>i.parentElement?.remove()),s.querySelector("#no-edits-error")?.remove(),s.firstElementChild||(r.hidden=!0)}let o=new CustomEvent("clear-validation-errors",{detail:{target:n},bubbles:!0});this.dispatchEvent(o)}showNoChangesMessage(n){let{errorAlert:o,errorList:r}=this.getErrorAlert(n);if(r.childElementCount>0){for(;r.firstChild;)r.lastChild?.remove();r.querySelector("#no-edits-error")?.remove()}let s=document.createElement("li");s.id="no-edits-error",s.innerText=this.locStrings.thereAreNoEditsToSubmit,r.appendChild(s),o.hidden=!1,o.focus()}runBasicValidation(n,o=!0,r,s,i){if(!w2(n,this.form))return;let a=R7(n),l=Ou(n);for(let c of this.validators){let u=c(n,a);if(!u){i||P7(n);continue}if(r.push({input:n,message:u}),o){if(!n.id)continue;Qp(n,u),l.classList.add("errored");let p=document.createElement("li");p.classList.add("margin-bottom-xs");let m=document.createElement("a");m.href=`#${n.id}`,m.textContent=u,m.classList.add("help","help-danger"),m.addEventListener("click",g=>{if(i){let f=g.target.getAttribute("href");f&&document.querySelector(f).focus()}}),p.appendChild(m),s.appendChild(p),i||(n.type==="checkbox"?n.closest("label.checkbox")?.classList.add("is-invalid"):n.type==="radio"?n.closest("label.radio")?.classList.add("is-invalid"):n.classList.add(`${n.localName}-danger`))}break}}};window.customElements.get("form-behavior")||(window.FormBehaviorElement=RE,window.customElements.define("form-behavior",RE));function L7(e,t){let n=e;return n?n instanceof HTMLElement&&"form"in n&&n.form===t&&"validity"in n&&n.validity instanceof ValidityState&&"value"in n&&typeof n.value=="string"&&"type"in n&&typeof n.type=="string"&&!["button","submit"].includes(n.type):!1}function cOe(e){(e instanceof HTMLTextAreaElement||e instanceof HTMLInputElement&&(e.type==="text"||e.type==="email"))&&(e.value=e.value.trim())}function I7(e,t,n){let o=e.submitter;Array.from(t.elements).forEach(r=>{r instanceof HTMLButtonElement&&r.type==="submit"&&(o&&o===r?r.classList.toggle("is-loading",n):r.disabled=n)})}function R7(e){let t=null;if(e.type==="radio"){let o=Ou(e).querySelector(".field-label");o?t=o.textContent:t=e.getAttribute("aria-label")}else e.labels?.length?t=e.labels[0].textContent:t=e.getAttribute("aria-label");if(!t)throw new Error(`${e.nodeName} name="${e.name}" id="${e.id}" has no associated label.`);return t.trim()}function Ou(e){let t=e.closest(".field");if(!t)throw new Error(`${e.nodeName} name="${e.name}" id="${e.id}" is not within a .field`);return t}function tx(e){let t=e.closest(".field-body");if(!t)throw new Error(`${e.nodeName} name="${e.name}" id="${e.id}" is not within a .field-body`);return t}function uOe(e){let t=document.createElement("p");return t.id=ex(),e.setAttribute("aria-describedby",`${t.id} ${e.getAttribute("aria-describedby")||""}`),t.classList.add("field-error"),t.setAttribute("data-field-error",""),tx(e).after(t),t}function Qp(e,t){let o=Ou(e).querySelector("[data-field-error]")||uOe(e);o.textContent=t}function w2(e,t){return L7(e,t)&&e.type!=="hidden"}function dOe(e,t){switch(t){case null:return!1;case"follow":return e?(location.href=e,!0):!1;case"hash-reload":if(e){let n=e.includes("?")?"":window.location.search;if(e!==n+window.location.hash){let o=history.state||{};window.history.pushState(o,document.title,window.location.pathname+n+e)}return location.reload(),!0}return!1;case"replace":return e?(location.replace(e),!0):!1;case"reload":return location.reload(),!0;default:throw new Error("Unexpected navigation attribute value.")}}function pOe(e){let t=Object.fromEntries(new FormData(e)),n=[];return Object.keys(t).filter(r=>!e.elements.namedItem(r)).forEach(r=>{let s=e.querySelector(`[name="${r}"]`);s&&n.push(s)}),n}function P7(e){e.type==="checkbox"?e.closest("label.checkbox")?.classList.remove("is-invalid"):e.classList.remove(`${e.localName}-danger`)}function mOe(e){let t=e.submitter;return t instanceof HTMLButtonElement&&t.formAction!==window.location.href?t.formAction:null}var M7=globalThis.HTMLElement||null,Yp="assign"in(globalThis.HTMLSlotElement?.prototype||{})?(e,...t)=>{e.assign(...t)}:(e,...t)=>{let n=e.getRootNode().host;for(let o of n.querySelectorAll(`[slot="${e.name}"]`))o.removeAttribute("slot");for(let o of t)o.setAttribute("slot",e.name)},ox,rx,sx,DE=class extends Event{constructor(n,{tabIndex:o,tab:r,panel:s,...i}){super(n,i);Wn(this,ox,null);Wn(this,rx,null);Wn(this,sx,null);mn(this,sx,r||null),mn(this,ox,o||null),mn(this,rx,s||null)}get tabIndex(){return Oe(this,ox)}get panel(){return Oe(this,rx)}get tab(){return Oe(this,sx)}};ox=new WeakMap,rx=new WeakMap,sx=new WeakMap;var jp,Wp,ut,Zf,D7,nx,$7,N7,F7,ME,S2,qu,Kp,Jp,U7,O7,C2,q7,H7,eh=class extends M7{constructor(){super(...arguments);Wn(this,ut);Wn(this,jp,null);Wn(this,Wp,null);Wn(this,Kp,!1);Wn(this,Jp)}static define(n="tab-container",o=customElements){return o.define(n,this),this}get onChange(){return this.onTabContainerChange}set onChange(n){this.onTabContainerChange=n}get onTabContainerChange(){return Oe(this,jp)}set onTabContainerChange(n){Oe(this,jp)&&this.removeEventListener("tab-container-change",Oe(this,jp)),mn(this,jp,typeof n=="object"||typeof n=="function"?n:null),typeof n=="function"&&this.addEventListener("tab-container-change",n)}get onTabContainerChanged(){return Oe(this,Wp)}set onTabContainerChanged(n){Oe(this,Wp)&&this.removeEventListener("tab-container-changed",Oe(this,Wp)),mn(this,Wp,typeof n=="object"||typeof n=="function"?n:null),typeof n=="function"&&this.addEventListener("tab-container-changed",n)}get onChanged(){return this.onTabContainerChanged}set onChanged(n){this.onTabContainerChanged=n}get activeTab(){return Oe(this,ut,qu)[this.selectedTabIndex]}get activePanel(){return Oe(this,ut,S2).assignedNodes()[0]}get vertical(){return Oe(this,ut,Zf)?.getAttribute("aria-orientation")==="vertical"}set vertical(n){let o=Oe(this,ut,Zf);o&&n?o.setAttribute("aria-orientation","vertical"):o.setAttribute("aria-orientation","horizontal")}connectedCallback(){Oe(this,Jp)||mn(this,Jp,this.attachInternals?this.attachInternals():null);let n=this.shadowRoot||this.attachShadow({mode:"open",slotAssignment:"manual"}),o=document.createElement("slot");o.style.display="flex",o.setAttribute("part","tablist-wrapper"),o.setAttribute("name","tablist-wrapper");let r=document.createElement("div");r.setAttribute("part","tablist-tab-wrapper"),r.setAttribute("name","tablist-tab-wrapper");let s=document.createElement("slot");s.setAttribute("part","tablist"),s.setAttribute("name","tablist"),r.append(s);let i=document.createElement("slot");i.setAttribute("part","panel"),i.setAttribute("name","panel");let a=document.createElement("slot");a.setAttribute("part","before-tabs"),a.setAttribute("name","before-tabs");let l=document.createElement("slot");l.setAttribute("part","after-tabs"),l.setAttribute("name","after-tabs"),o.append(a,r,l);let c=document.createElement("slot");c.setAttribute("part","after-panels"),c.setAttribute("name","after-panels"),n.replaceChildren(o,i,c),Oe(this,Jp)&&"role"in Oe(this,Jp)?Oe(this,Jp).role="presentation":this.setAttribute("role","presentation"),this.addEventListener("keydown",this),this.addEventListener("click",this),this.selectTab(-1),this.addEventListener("tab-container-change",Vp(this,ut,q7)),this.addEventListener("click",Vp(this,ut,H7)),mn(this,Kp,!0)}attributeChangedCallback(n){!this.isConnected||!this.shadowRoot||n==="vertical"&&(this.vertical=this.hasAttribute("vertical"))}handleEvent(n){if(n.type==="click")return Vp(this,ut,O7).call(this,n);if(n.type==="keydown")return Vp(this,ut,U7).call(this,n)}get selectedTabIndex(){return Oe(this,ut,qu).findIndex(n=>n.matches("[aria-selected=true]"))}set selectedTabIndex(n){this.selectTab(n)}get defaultTabIndex(){return Number(this.getAttribute("default-tab")||-1)}set defaultTabIndex(n){this.setAttribute("default-tab",String(n))}selectTab(n){if(!Oe(this,Kp)){let a=Oe(this,ut,ME),l=Oe(this,ut,D7),c=this.querySelector("[role=tablist]"),u=this.querySelector("[slot=tablist-wrapper]");u&&u.closest(this.tagName)===this?Yp(l,u):c&&c.closest(this.tagName)===this?Yp(a,c):(Oe(this,ut,nx).role="tablist",Yp(a,...[...this.children].filter(_=>_.matches("[role=tab]"))));let p=Oe(this,ut,Zf);if(Vp(this,ut,C2).call(this,"aria-description",p),Vp(this,ut,C2).call(this,"aria-label",p),this.vertical&&Oe(this,ut,Zf).setAttribute("aria-orientation","vertical"),!(this.querySelector("[slot=tablist-wrapper]")?.closest(this.tagName)===this)){let _=[],h=[],T=[],x=_;for(let w of this.children){if(w.getAttribute("role")==="tab"||w.getAttribute("role")==="tablist"){x=h;continue}if(w.getAttribute("role")==="tabpanel"){x=T;continue}w.getAttribute("slot")==="before-tabs"?_.push(w):w.getAttribute("slot")==="after-tabs"?h.push(w):x.push(w)}Yp(Oe(this,ut,$7),..._),Yp(Oe(this,ut,N7),...h),Yp(Oe(this,ut,F7),...T)}let g=this.defaultTabIndex,f=g>=0?g:this.selectedTabIndex;n=n>=0?n:Math.max(0,f)}let o=Oe(this,ut,qu),r=Array.from(this.querySelectorAll('[role="tabpanel"]')).filter(a=>a.closest(this.tagName)===this);if(n>o.length-1)throw new RangeError(`Index "${n}" out of bounds`);let s=o[n],i=r[n];if(!(Oe(this,Kp)&&!this.dispatchEvent(new DE("tab-container-change",{tabIndex:n,bubbles:!0,cancelable:!0,tab:s,panel:i})))){for(let a of o)a.setAttribute("aria-selected","false"),a.setAttribute("tabindex","-1");for(let a of r)!a.hasAttribute("tabindex")&&!a.hasAttribute("data-tab-container-no-tabstop")&&a.setAttribute("tabindex","0");s.setAttribute("aria-selected","true"),s.setAttribute("tabindex","0"),Yp(Oe(this,ut,S2),i),i.hidden=!1,Oe(this,Kp)&&(s.focus(),this.dispatchEvent(new DE("tab-container-changed",{tabIndex:n,bubbles:!0,tab:s,panel:i})))}}};jp=new WeakMap,Wp=new WeakMap,ut=new WeakSet,Zf=function(){let n=this.querySelector("[slot=tablist-wrapper]");if(n?.closest(this.tagName)===this)return n.querySelector("[role=tablist]");let o=Oe(this,ut,ME);return Oe(this,ut,nx).hasAttribute("role")?Oe(this,ut,nx):o.assignedNodes()[0]},D7=function(){return this.shadowRoot.querySelector('slot[part="tablist-wrapper"]')},nx=function(){return this.shadowRoot.querySelector('div[part="tablist-tab-wrapper"]')},$7=function(){return this.shadowRoot.querySelector('slot[part="before-tabs"]')},N7=function(){return this.shadowRoot.querySelector('slot[part="after-tabs"]')},F7=function(){return this.shadowRoot.querySelector('slot[part="after-panels"]')},ME=function(){return this.shadowRoot.querySelector('slot[part="tablist"]')},S2=function(){return this.shadowRoot.querySelector('slot[part="panel"]')},qu=function(){return Oe(this,ut,nx).matches("[role=tablist]")?Oe(this,ut,ME).assignedNodes():Array.from(Oe(this,ut,Zf)?.querySelectorAll('[role="tab"]')||[]).filter(n=>n instanceof M7&&n.closest(this.tagName)===this)},Kp=new WeakMap,Jp=new WeakMap,U7=function(n){let o=n.target?.closest?.('[role="tab"]');if(!o)return;let r=Oe(this,ut,qu);if(!r.includes(o))return;let s=this.selectedTabIndex,i=o.closest('[role="tablist"]')?.getAttribute("aria-orientation")==="vertical",a=n.code==="ArrowLeft"||i&&n.code==="ArrowUp";if(n.code==="ArrowRight"||i&&n.code==="ArrowDown"){let c=s+1;c>=r.length&&(c=0),this.selectTab(c)}else if(a){let c=s-1;c<0&&(c=r.length-1),this.selectTab(c)}else n.code==="Home"?(this.selectTab(0),n.preventDefault()):n.code==="End"&&(this.selectTab(r.length-1),n.preventDefault())},O7=function(n){let o=n.target?.closest?.("[role=tab]");if(!o)return;let s=Oe(this,ut,qu).indexOf(o);s>=0&&this.selectTab(s)},C2=function(n,o){this.hasAttribute(n)&&(o.setAttribute(n,this.getAttribute(n)),this.removeAttribute(n))},q7=function(n){let{tab:o}=n;o&&o.scrollIntoView({behavior:"auto",block:"nearest",inline:"center"})},H7=function(n){let o=n.target instanceof Element&&n.target.closest("[data-tab-container-nav]");if(!o)return;let r=(o.dataset.tabContainerNav==="next"||o.dataset.tabContainerNav==="previous")&&o.dataset.tabContainerNav;if(!r)throw new Error('Supported values of [data-tab-container-nav] are "previous" and "next"');let s=this.selectedTabIndex;if(r==="next"){let i=s+1;i>=Oe(this,ut,qu).length&&(i=0),this.selectTab(i)}else{let i=s-1;i<0&&(i=Oe(this,ut,qu).length-1),this.selectTab(i)}},on(eh,"observedAttributes",["vertical"]);var B7=typeof globalThis<"u"?globalThis:window;try{B7.TabContainerElement=eh.define()}catch(e){if(!(B7.DOMException&&e instanceof DOMException&&e.name==="NotSupportedError")&&!(e instanceof ReferenceError))throw e}var th=document.documentElement,gOe=()=>{let e=document.querySelector(".layout-body-header"),t=e?.clientHeight||0,n=t?`${t}px`:"0px",o=e?.getBoundingClientRect().y||0,s=`${Math.max(0,o+t)}px`,i=document.querySelector(".layout-body-footer"),a=i?.clientHeight||0,l=a?`${a}px`:"0px",c=i?.getBoundingClientRect().y||0,p=`${c{window.dispatchEvent(new CustomEvent("atlas-layout-change-event"))};function G7(){window.addEventListener("atlas-layout-change-event",()=>{fOe(gOe)}),window.addEventListener("resize",el,{passive:!0}),th.style.setProperty("--window-inner-height",`${window.innerHeight}px`),window.addEventListener("DOMContentLoaded",el),window.addEventListener("scroll",el,{passive:!0})}var E2="atlas-layout-exclusions";function hOe(e){return e==="__proto__"||e==="prototype"||e==="constructor"?"default":e}function A2(e={}){let{root:t=document.documentElement,storage:n=window.localStorage,storageKey:o="default",excludesKey:r,excludes:s,deferCallbacksUntil:i=Promise.resolve(),useViewTransitionOnRestore:a=!1}=e,l="layout-",c="atlas-layout-preferences",u="data-layout-restored";function p(F){return hOe(F)}function m(){let F=typeof o=="function"?o():o;return p(F)}function g(){if(r===void 0)return null;let F=typeof r=="function"?r():r;return p(F)}function f(){if(s===void 0)return;let F=g();if(F===null)return;let ne=n.getItem(E2),ie={};if(ne)try{let Le=JSON.parse(ne);Le&&typeof Le=="object"&&(ie=Le)}catch{}let Ie={};for(let Le of s)Ie[Le]=!0;ie[F]=Ie;try{n.setItem(E2,JSON.stringify(ie))}catch(Le){console.error("createLayoutState: failed to write atlas-layout-exclusions; in-memory exclusions still apply",Le)}}function _(){let F=g();if(F===null)return new Set;let ne=n.getItem(E2);if(!ne)return new Set;let ie;try{ie=JSON.parse(ne)}catch{return new Set}let Ie=ie&&Object.prototype.hasOwnProperty.call(ie,F)?ie[F]:null;return!Ie||typeof Ie!="object"?new Set:new Set(Object.keys(Ie))}f();let h=new Set,T=null,x=!1,w=[],I=0,E=[],Q=!1;function O(F){x?F():w.push(F)}function ye(){t.setAttribute(u,"true")}function Ae(){x=!0;let F=w.splice(0);try{for(let ne of F)try{ne()}catch(ie){console.error("createLayoutState: a subscriber callback threw during initial flush",ie)}}finally{ye()}}function de(F,ne,ie={}){if(!F){ne();return}ie.sync?xt(ne):qt(ne)}function xt(F){let ne=document;if(typeof ne.startViewTransition!="function"){F();return}if(I>0){F();return}Qt(ne,F)}function qt(F){let ne=document;if(typeof ne.startViewTransition!="function"||I>0){F();return}E.push(F),!Q&&(Q=!0,queueMicrotask(()=>{Q=!1;let ie=E.splice(0);if(ie.length!==0){if(I>0){Ln(ie);return}Qt(ne,()=>{Ln(ie)})}}))}function Qt(F,ne){let ie;try{ie=F.startViewTransition(ne)}catch(ht){console.error("createLayoutState: startViewTransition threw",ht),ne();return}I++;let Ie=()=>{I=Math.max(0,I-1)},Le=ie?.finished;Le&&typeof Le.then=="function"?Le.then(Ie,Ie):Ie()}function Ln(F){for(let ne of F)try{ne()}catch(ie){console.error("createLayoutState: view-transition callback threw",ie)}}function Yt(){let F=n.getItem(c);if(!F)return{};try{return JSON.parse(F)}catch{return{}}}function Ft(F){n.setItem(c,JSON.stringify(F))}function vn(){return Yt()[m()]??{}}function it(F){return t.classList.contains(F)}function Ne(F,ne){return F.when==="always"?!0:F.when==="added"?ne===!0:ne===!1}function U(F,ne){if(_().has(F))return;let ie=m();for(let Ie of h)if(Ie.className===F&&Ne(Ie,ne)){let{callback:Le,useViewTransition:ht}=Ie;O(()=>{de(ht,()=>{Le({className:F,isApplied:ne,storageKey:ie})})})}}function ce(F,ne,ie,Ie={}){let Le={className:F,when:ne,callback:ie,useViewTransition:!!Ie.useViewTransition};h.add(Le);let ht=it(F);if(Ne(Le,ht)&&!_().has(F)){let Lt=m(),{useViewTransition:zt}=Le;O(()=>{de(zt,()=>{ie({className:F,isApplied:ht,storageKey:Lt})})})}return()=>{h.delete(Le)}}function B(){let F=vn(),ne=_();for(let ie of Object.keys(F))ne.has(ie)||t.classList.toggle(ie,F[ie])}function ae(F){return F.startsWith(l)}function ve(F,ne){let ie=F.filter(ae),Ie=ne.filter(ae),Le=ie.filter(Lt=>!Ie.includes(Lt)),ht=Ie.filter(Lt=>!ie.includes(Lt));return{added:Le,removed:ht}}function P(F,ne){if(F.length+ne.length===0)return;let ie=_(),Ie=m(),Le=Yt(),ht=Le[Ie]??{},Lt=!1;for(let zt of F)ie.has(zt)||(ht[zt]=!0,Lt=!0);for(let zt of ne)ie.has(zt)||(ht[zt]=!1,Lt=!0);Lt&&(Le[Ie]=ht,Ft(Le))}function Z(){T?.disconnect(),T=null}try{de(a,B,{sync:!0}),T=new MutationObserver(F=>{for(let ne of F){let ie=(ne.oldValue??"").split(/\s+/),Ie=Array.from(ne.target.classList),{added:Le,removed:ht}=ve(Ie,ie);P(Le,ht);for(let Lt of Le)U(Lt,!0);for(let Lt of ht)U(Lt,!1)}}),T.observe(t,{attributes:!0,attributeFilter:["class"],attributeOldValue:!0}),i.then(Ae,F=>{console.error("createLayoutState: deferCallbacksUntil rejected; flushing pending callbacks anyway",F),Ae()})}catch(F){throw console.error("createLayoutState: setup failed; marking layout as restored anyway",F),ye(),F}return{subscribe:ce,getViewState:vn,getState:Yt,stop:Z}}var V7="You have signed in with an account associated to an organization ({email}). By becoming a member, you understand and acknowledge that your Microsoft Learn membership means our network of sites and applications will record and track your achievements and activities and we may share your results and activities with your organization. Additionally, your username, display name, profile picture, affiliation, achievements and activities will be publicly visible. You can hide your achievements and activities under settings.

After you create your profile, we recommend you link a personal account so that you can access your learning progress regardless of your employment status. You can link additional accounts in the Account Management section of the profile settings.";var k2="Accept",Q7="Accept and continue";var Y7="Browse all learning content",j7="completed this {learning path or module} on",W7="earned this achievement on",K7="module",J7="learning path",I2="Oops... something went wrong.",X7="Oops... this achievement is not available for viewing.",Z7="Please try again.",eQ="The person who shared this link now has a private profile, so this link is no longer valid.",tQ="We can't link to this achievement record at this time.",nQ="View {learning path or module}",oQ="You can too!";var Yr="Add",rQ="Add section",sQ="Add URL",$E="Added";var ix="Additional information";var NE="Add content";var iQ="Error getting GitHub content repo and path";var aQ="Your GitHub Token has expired. You need to refresh your GitHub Token permissions by clicking the button below.";var lQ='Want a simpler rich-text editing experience? Learn about Microsoft Learn Editor!';var cQ="Suggest edits in {name}",uQ='Thank you for your interest in contributing to Microsoft Learn. Click Edit to open this article in {name}. For more information, see contribute.';var dQ="Re-Authorize GitHub Token with Latest Permissions";var pQ="Start Over";var P2="System error";var L2="Analytics";var FE="an {AppliedSkills}",UE="{AppliedSkills} completed";var mQ="a day ago";var gQ="Advanced";var tl="All",OE="All APIs";var fQ="All units complete",qE="All Packages";var hQ="a minute ago",bQ="a month ago";var _Q="an hour ago",Xp="Anonymous";var HE="API";var BE="{platformName} API Reference";var ax="Cancel Assessment",yQ="Are you sure you want to cancel the assessment?",vQ="Cancelling the assessment will count as an attempt but will not be scored. You will be able to take this assessment again in 72 hours.",xQ="{appliedSkillTitle} - {AppliedSkills} Assessment",TQ="Please refresh to continue. Your lab will resume where you left off.",wQ="{AppliedSkills} Assessment",zE="Submit Assessment",SQ="Are you sure you want to submit the assessment?",CQ="Once you submit, this assessment will be scored and you cannot go back.",EQ="This assessment is very popular and we are at capacity, but we are working hard to accommodate more learners. Please come back after 10 minutes and try again.",lx="Microsoft Credential",AQ="Time is up.",kQ="You have reached the time limit.",IQ="Your assessment will now be scored.",PQ="See my results",LQ="We are experiencing an issue and actively investigating on this. Please try a different assessment for now.",RQ="Something went wrong. Please re-activate after 10 minutes.",MQ="Your account has been flagged for unusual activity. As a result, access to Microsoft {AppliedSkills} has been suspended. Please use the back button to return to the credentials detail page.";var DQ="Browse Credentials",$Q="Are you sure you'd like to start the assessment?";var NQ="We noticed that you haven't completed your training";var FQ="Previous attempts";var UQ="Start the assessment?",OQ="Start the training";var qQ="View my credential";var HQ="Already know the content?",BQ="Learn more about how you can receive a shareable credential to showcase your skill";var zQ="Save your collection to come back to it later. It may expire if the assessment is updated.",cx="Go to details page",GE="You can see previous attempts on the credential details page";var GQ="Refresh the page",VQ="You'll be eligible to retake the assessment in:",QQ="Save your collection",YQ="Performance by task",jQ="Still scoring",WQ="Customized collection to improve your performance",KQ="{AppliedSkills} material - {date}",JQ=`Your results are still processing. If you don't see a result in {duration} seconds, please refresh.`,XQ="Based on your results, we've put together materials in the areas you have room to improve. Learning material includes:",ZQ="{AppliedSkills} credential earned",eY="Sorry, something went wrong, please try again later",tY="Your {AppliedSkills} results for {credentialName}",R2="Your assessment results",VE="Your assessment results for",nY="Learn how this assessment is scored",oY='This assessment is currently undergoing maintenance. Explore other Microsoft Credentials in the meantime.',rY=`Your account or connection was flagged for unusual activity. Because of this, we've suspended your access to Microsoft {AppliedSkills}. Learn more.`,sY="Your appeal is being reviewed";var M2="Architecture";var na="Are you sure?",iY="Deleting your data cannot be undone.",aY="Are you sure you want to leave?";var lY="Article";var cY="a second ago";var uY="Ask the community";var QE="Assessments";var dY="a week ago";var pY="Your appeal has been received. Appeals are reviewed on a first-come, first-served basis, and may take several days to process. If your appeal is approved, you will regain access to this resource.",mY=`What happened?

We use several methods to prevent misuse of Learn's resources in order to keep it free for everyone. Your account, activity, or connection indicated an elevated risk to our system. Please see our troubleshooting guidance for more information.

The sandbox may only be used to complete training on Learn. Any other use is prohibited by our Terms of Use and may result in the permanent loss of your access to the sandbox.`,gY="Your account could not be verified and we've suspended your access to Learn sandbox.",fY="Account verification failed",hY="-- Select Value --",Hu="Back";var bY="Beginner";var _Y="Remove bookmark for {title}",yY="Add bookmark for {title}";var vY=`Something went wrong with the "{branchFallbackFrom}" branch. We've redirected you to the "{branch}" branch instead.`,xY="Branch selector",TY="Breadcrumb";var wY="All breadcrumbs";var YE="Browse",SY="Browse exams";var oa="Browse Certifications",wc="Browse Credentials";var D2="Browse courses";var CY="Browse the full catalog";var EY="Caution";var Fe="Cancel";var Sc="Certification";var AY="Validate your skills with the latest technology updates and extend your certification by a year, for free.";var kY="Add your personal account",IY="Add your personal account to this profile",PY="Your Learn profile is using a work or school account. Certifications belong to you, so they are associated with a personal Microsoft account. You will need to add a personal Microsoft account to this Learn profile in order to connect a certification profile. Your certification data will continue to be associated with your personal account.",LY="No, not now";var RY="Connect your certification profile",MY="Yes, connect this certification profile",DY='This certification profile will be permanently associated with your Learn profile. If you have multiple certification profiles, please merge them first by contacting certification support.',$Y="Connecting will allow you to manage your certifications, exams, and appointments directly from your Learn profile.";var NY="We encountered an error with your request. Please try again later. If this issue continues, please contact certification support.";var FY="You have connected your certification profile to your Learn profile. Happy learning!",UY="No certification profile found. Is your certification profile under another personal account?",OY="No certification profile was found for your linked personal Microsoft account {msaEmail}. If you have a certification profile under a different account, you will need to follow the instructions to align the accounts between your certification profile and Learn profile before you can connect.",qY="This certification profile is already connected",HY="The MCID associated with your personal account is already connected with a different Learn profile. If you believe this is incorrect and need help, please contact certification support.",BY="Sorry, you can't connect while merging.",zY="This Learn profile is currently being merged. You can check the progress of the merge process in your account management settings. Please sign out and sign in again to connect your certification profile.",GY="Read instructions to align accounts";var VY="We found a certification profile for your personal account";var QY="Learn more about renewing",YY='If you need accessibility accommodation, please see our Accommodations Information.',jE="Already have this certification?",jY="This certification is not yet eligible for renewal.",WY="Certification required",KY="Collection name",JY="Complete the renewal assessment to extend your certification by a year, for free.",$2="Connect certification profile",ux="Contact certification support",XY="Didn't pass? Revisit the preparation materials and try again before your certification expires. After your second attempt, you'll need to wait 24 hours between retakes.";var ZY="Eligible to retake assessment in:",ej="Expiration date may take a few minutes to update";var tj="Expires in {days} days";var Zp="Fail",nj="Free",oj="Hide previous attempts",rj="Items in this collection",sj="Sorry, this renewal is not accessible at this time",ij='By clicking this button you agree to the terms in the Non-Disclosure Agreement ("NDA").',aj="Online",nh="Oops, something went wrong.",em="Pass";var lj="Assessment material - {date}",oh="Renew your Microsoft Certification for free";var cj="Save your collection",N2="See if you are eligible",F2="Show previous attempts";var uj="Sign in to save this collection",dj="Renewal material - {date}",pj="Take an online assessment to validate your skills are current.",U2="Take the renewal assessment",WE="Unfortunately, your opportunity to renew this certification has expired",KE="Valid until {date}",mj="We encountered an error getting your certification data. Please try again later. If this still continues, please contact certification support.",gj="You'll need to earn this certification before you're eligible to renew it.",fj="You'll need to earn this certification again before you're eligible to renew it.",JE="You are eligible to renew your certification until {date}",hj="Extend your certification by one year by passing the assessment.",bj="This is a temporary preview page that will expire on {temporaryPreviewExpiresAt}. Once it expires, you will need to regenerate it from the Item Workshop before previewing it again.",_j="Assessments Platform API",yj="Check Your Answer",vj="Renewal assessment for {certificationName}",xj="Congratulations, you passed!",Ds="Microsoft Certification",Tj="You\u2019ve renewed your {certificationName} and have extended it by one year.",wj="See your results",Sj="Question {current} of {total}",Cj="{current} of {total}",Ej="Select only one answer.",Aj="Time expired.",kj="You have reached the time limit. Your assessment will now be scored.",Ij="See My Results",Pj="Select all answers that apply.",Lj="Next",Rj="Compiling your assessment...",Mj="We encountered an unexpected error. Please try again later. If this issue continues, please contact certification support.",Dj="Ok, got it",$j="Please retry to submit your renewal assessment. If this issue continues, you may contact certification support.",Nj="Contact Certification Support",Fj="Your assessment was already scored",Uj="It looks like you have already submitted this assessment. You can view your assessment results from the certification renewal details page. If you believe this is incorrect and need help, please contact certification support.",XE="Go to renewal details",Oj="Time left",tm="This answer is incorrect.",nm="This answer is correct.",qj="Show all questions",Hj="Assessment date:",Bj="Your certification is renewed for one year. Please note that it can take a few minutes for your certification expiration date to update.",zj="Sorry, this customized learning material is out of date with the current assessment. Please visit the assessment details page to get the latest preparation material.";var ZE="Customized learning material to improve your skills";var eA='Because you scored lower in "{section}":',tA="Your renewal assessment results for {certificationName}";var Gj="Your renewal assessment results for";var Vj="Learn more about renewing this certification",Qj="{percent}% needed to pass",nA="Performance by assessment section",Yj="Ready to retake the assessment?";var jj="You are eligible to retake the assessment. You can retake it as many times as needed before {date}. After your second attempt you'll need to wait 24 hours between retakes.",O2="See your certifications",Wj="You can search previous assessment attempts in your profile or visit the certification overview",Kj="Your overall results:",Jj="Renew this certification";var Xj="MeasureUp practice test",Zj="Certification overview";var nl="Certifications";var jr="Challenge",eW="Challenge active from {start} until {end}",tW="Active from {start} until {end}",nW="Add your email",q2="Agree to the official rules",oA="Challenge begins in:",dx="Begin now",oW="Build more skills on Microsoft Learn";var rW="Challenge Collection",sW="Predetermined learning content",iW="Come back on {start}",aW='Complete registration now! The challenge starts on {start}.',lW="Continue learning",cW="Congratulations, you've completed the challenge!",uW="You'll have {days} days to complete the challenge",om="Create a new challenge",dW="Follow these steps to create and share your own challenge",pW="Select your collection",mW="Select one of your own collections",gW='The collection being used to create a challenge must contain at least one module or one learning path. The collection details will only display the modules and learning paths that will remain in the created challenge. Go to your profile to view your full list of collections with their content.',fW="Date and time",hW="Participant details",bW="Confirm and create",rA="Collection details",sA="Challenge title",px="Challenge description",iA="Primary subject matter",_W="Enter Challenge title",yW="Enter Challenge description",vW="Find a product",xW="Collection selection";var H2="Create challenge",TW="Your form is missing some required input. Please go back to each tab and confirm you have filled out all required fields.",wW="You do not have any challenges yet",SW="This information is not shared publicly on this challenge or with any group outside of Microsoft.",B2="End date cannot be before start date. Please reselect an end date.",CW="End time cannot be before start time. Please reselect an end time.",EW="Start time cannot be before the current time. Please reselect a start time.",aA="Challenge details",z2="Challenge ended on:",AW="Challenge ends {end}",kW="Challenge ends in:",IW='I have read and agree to the official rules.',PW="Agree to the terms to enroll in the {title}",LW="Well, that's embarrassing; we were unable to enroll you.",RW="Awesome! You're enrolled for the {title}.",MW="

Get started learning, or go check out the leaderboard to see how you are doing.

",DW="

All set, you're ready to start learning and building skills.

",$W="

We'll email you on {start} to remind you that the challenge has begun. In the meantime, go explore what Learn has to offer!

",NW="

We noticed that you don't have an email saved in your profile. If you'd like us to email you when the challenge begins, please go to your profile and add an email to receive a notification.

",FW='Want to receive a regular digest of relevant technical content, events and training? Sign up to receive the Microsoft.Source newsletter.';var UW="This challenge ended on {end}",OW="Explore Microsoft Learn",qW="Final leaderboard",rh="Find something else to learn";var HW="Rejoin challenge",BW="See your completed collection",zW="See your progress",G2="Select a team from the list",V2="Join the challenge";var GW='Not getting notifications?Update your email preferences in your profile',lA="Modules completed",VW="Modules you've completed",QW="We looked everywhere. But don't worry, you can review a history of your challenge activity in your user profile.",YW="Oops, we couldn't find that challenge =]",jW="{count} participants",WW="% of team with completed collection",Q2="Register now",KW="Great! Next, select a team.",JW="Great! Next, select a team and agree to the official rules.",sh="{score}%",XW="See the challenge",Y2="See the challenge collection",ZW="See the leaderboard",eK="Select one",tK="Individual competition",j2="Start learning",W2="{teamName}, Rank {teamRank}, {totalXP} XP",nK="Teams competition",oK="Teams",rK="Select a team",sK="{count} teams",iK="Team's XP average",aK="This challenge is no longer available",lK="Time to complete challenge:",cK="The leaderboard",uK="Total XPs gained",K2="Try again later",dK="Try again to enroll",pK="Make sure to complete the challenge collection before time runs out!";var mK="Updated within a few hours",gK="Scores updated within a few hours",fK="View your challenge history",hK="View all teammates",bK="Where you stand",_K="Participant-chosen content",yK=`You're on {team}`,vK='You are registered! Come back on {start}';var rm="Challenges",xK="Active";var J2="Add to Challenges",cA="Added to Challenges",TK="Back to challenges home page",wK="Manage {title} in challenges",SK="Add {title} to a challenge",CK="Challenges I've joined",X2="You have not joined any challenges.",EK="You have not joined any {filter} challenges.",AK="Challenges I've created",kK="You have not created any challenges.",IK="You have not created any {filter} challenges.",PK="Challenge content",LK="Add modules",RK="Add section",MK="Delete section",DK="The section title cannot be the same as another title in the challenge collection.",$K="You are about to remove {name} and its content.
Do you want to proceed?",NK="Edit items in this challenge",FK="Items in this challenge",mx="No items in this section.",UK="Total content:",OK="Challenge Details",ih="Allow early registration",qK="Early registration allows people to register for this challenge before it starts. Once enabled, you will not be able to disable or edit certain details of your challenge.",HK="After enabling early registration you can no longer edit most details of your challenge, including the collection modules and the start date. Once early registration is enabled it cannot be reversed.",ah="Start date",lh="Start time",ch="End date",uh="End time";var Z2="I understand",BK="Sorry, this challenge is private.",zK="This challenge is not visible to other users.",GK="You can review your challenges in your user profile.",VK="View your challenges",QK="Go to leaderboard",YK="Completions",gx="Copy Challenge",jK="You are about to copy this challenge. The new challenge will have the same details and content. Once created, you will be able to edit it via its details page.",WK="Delete challenge",KK="Start date must be in the future.",JK="End date must be after the start date or the current date.",XK="Please select a valid primary subject matter.",ZK="Please enter a valid target name.",eJ="Please enter a valid ID associated with the selected audience of this challenge.",tJ="Please enter a valid purpose for this challenge.",nJ="You are not allowed to perform this action.",oJ="By taking or creating a Microsoft Learn challenge, you\u2019ll advance your technical skills, get yourself and your organization project-ready, and learn how to implement complex technical solutions.",rJ='How it works',sJ="Register and complete all content within the timeframe",iJ="All challenges require participants to have an active Microsoft Learn profile. Be sure to complete the challenge within the allotted timeframe.",aJ="Celebrate and showcase your new skills",lJ="Share your achievements with your professional network by adding new Microsoft skills to your LinkedIn profile.",cJ="Find your next challenge and level up with a Microsoft Credential",uJ="Take more challenges to gain even more in-demand skills and prepare to earn a Microsoft Credential that showcases your proficiency.",Bu="Leaderboard",dJ="Leaderboard will be displayed when people can start registering for the challenge.",uA="This challenge has no participants yet.",pJ="{count} active",mJ="{count} past",gJ="{count} upcoming",fJ="Oops... something went wrong.",hJ="Participants",bJ="Participants Details",dA="How many challenge participants do you anticipate?",_J="Less than 100",yJ="101 - 1,000",vJ="1,001 - 5,000",xJ="5,001 - 10,000",TJ="10,001+",wJ="What is the name of the event?",pA="What is the name of your company / organization?",SJ="What is the name of your school / university / institution?",mA="Top Parent ID (TPID)",CJ="The top parent identifier (TPID) is the internal Microsoft code for identifying customers, resellers or other organizations at the subsidiary or corporate headquarters organizational level.",EJ="Enter the TPID for the target account of this challenge",gA="Microsoft Partner Network ID (MPN-ID)",AJ="Enter the MPN-ID",fx="Who is the audience for this challenge?",kJ="A community",IJ="Attendees of an event",PJ="A campaign",LJ="My co-workers / employees",RJ="My students",MJ="My peers",DJ="Myself",$J="Target account",NJ="Partner",FJ="None of the above",UJ="Select an option",hx="What do you hope participants will gain by completing this challenge?",OJ="Past",qJ='Added to {collectionName}',HJ='Added to Challenges',BJ="Please sign in to add this to your challenge.",zJ='Removed from {collectionName}',GJ='Removed from Challenges';var VJ="Summary",QJ="Upcoming",YJ="Violation detected",jJ=`The title or description of this challenge, or a section title or description of this challenge's collection has been deleted due to a violation of our Terms of Use. These were manually reported or identified through automated detection before action was taken. Please refer to our Terms of Use for more information.`,eF=`If this challenge's title or description has been deleted, please go to its detail page to update.`,fA=`If a section title or description of this challenge's collection has been deleted, please go to the collection to update.`,WJ="If this challenge's title or description has been deleted, you can update it above.";var KJ="You will continue to see this alert until an update has been made.",JJ='This challenge was either removed or is currently unavailable. Please try again later or visit your challenges.';var XJ="Ask Learn",ZJ="Describe what you'd like to do",eX="The chat has been reset",tX="Back to chat",hA=`I've stopped generating the response. Want to try something else? Try our prompt guide by selecting the "View prompts" button.`,nX="Chat",dh="Chat history",oX="Confirm",tF="Confirm delete",rX='You requested to delete "{name}". This is an irreversible action. Are you sure you want to delete this?',sX="No chats to display",nF="Rename",iX="Rename conversation",aX="AI-generated content may be incorrect",lX="Accurate/relevant content",cX="Complete/clear content",uX="Fast response",dX="Inaccurate/irrelevant content",pX="Incomplete/unclear content",mX="Offensive/inappropriate content",gX="Slow response",oF="Something else",fX="Thanks for your feedback.",rF=`Sorry, I can't chat about this. Please enter another topic or try the prompt guide by selecting the "View prompts" button below.`,sF="Not now",iF="Meet our AI assistant, Ask Learn",bx="Ask Learn is an AI assistant that can answer questions, clarify concepts, and define terms using trusted Microsoft documentation.",aF="Check for accuracy",lF="Ask Learn is in preview. Please check responses as AI-generated content may be inaccurate. Use the feedback buttons to help us improve the experience.",cF='Please read the Ask Learn transparency notes to learn more about use cases and limitations.',uF="Try Ask Learn",hX="Acknowledgement",bA="To provide more relevant and personalized responses, Ask Learn stores your chat transcripts.",bX="Let Ask Learn use your past chats to personalize responses.",_X="Please check the box to acknowledge the guidelines before continuing.",yX="To use Ask Learn, you are required to acknowledge previous chat utilization. You can read more in the Ask Learn transparency notes.",vX="Review acknowledgements",ph="Please sign in to use Ask Learn.",xX='Sorry, I hit the maximum number of responses I can give in a conversation. Please select "New chat" to start a new conversation.',_A="More options",TX="Maximum {max} characters",mh="New chat",wX="New message from Ask Learn",gh="Preview",SX="Preview what will be shared",CX="Prompt guide",dF="Give as much detail as you can, but do not include any private or sensitive information";var EX="Regenerate";var AX="Send",kX="Stop generating",IX="Tell us more",yA="I'm currently experiencing high demand. Please try again in a few minutes.",PX="This message is helpful",LX="This message is not helpful",_x=`Sorry, I can't help with that. Try the prompt guide by selecting the "View prompts" button below.`,fr="Sorry, something went wrong. Please try again or share your feedback.",RX="Some of the characters in your message aren't supported. Can you please try again using different characters?",MX="Please type a message to continue",vA="Message must be at least 10 characters",pF="Character limit exceeded",mF="View prompts",xA="Working on it...",DX="{count} of {total} responses",$X="Check your answers",NX="Only the assessment owner can view Notes and update checklist items";var FX="Citation";var UX="Clear";var OX="Clear form";var le="Close";var qX="Close search",HX='Unable to start the Cloud Shell. Take a look at the troubleshooting guide.';var BX="Code Sample",gF="Code Samples",zX="This module includes an interactive experience through GitHub Codespaces. To activate Codespaces, you'll need a GitHub account, and you'll be able to leverage the free credits provided by GitHub.",GX="Activate Codespaces",VX="Sign in to activate Codespaces";var QX="Collapse table",or="Collection",YX="Official Collection";var jX="A copy of this collection has been saved to your profile",WX="The days to complete a milestone must be a number.",TA="Description (optional)";var KX="Edit section",JX="Max length is 550 characters.",XX="The section title cannot be the same as another title in the collection.",wA="New section",ZX="Save section",SA="Section {number}";var eZ="Max length is 100 characters.",tZ="The section title or description did not pass Microsoft's validation service.",nZ="We were unable to save your section. Please try again.",oZ="Add URL",rZ="Page name",sZ="Enter your title.",iZ="The title must be between 2 and 100 characters.",aZ="We could not save your URL. Please try again.",lZ="URLs cannot be added to this collection.",cZ="Your URL must start with http:// or https://. AKA links are permitted.",uZ="The URL format is not valid.";var dZ="Add to collection",fF="Added to collection",hF="Add to Collections",CA="Add to a collection",pZ='Add "{pageName}" to:',EA="Collection not found",mZ="Oops! It seems like this collection doesn't exist or can't be found for one of the following reasons:",gZ="The owner may have changed the URL of the Collection, which can lead to it not being found if users are accessing it with the old URL.",fZ="The owner of the Collection might have deleted it entirely, rendering it inaccessible.";var hZ=`If the Collection or its content violated Microsoft Learn's Terms of Use.`,bZ="Here are some helpful links instead:",_Z="Microsoft Learn Homepage: Build skills that open doors in your career",yZ="Search | Microsoft Learn",vZ="Microsoft Learn resources | Microsoft Learn",xZ="Create a Microsoft Learn Collection",TZ='Collections Updated',bF='Microsoft employees are eligible to label a collection with "Created by Microsoft".',AA="More Information",sm="Convert to an Official Collection",kA="An Official Collection represents Microsoft, so please ensure that your collection is complete, free of typographical errors, and that content is in the correct sequence. If not, please edit your collection as necessary. Once a collection is made official, it cannot be reverted.";var wZ="Collection unavailable",SZ="Are you ready to convert this collection to an Official Collection?";var IA='A collection already exists with the title "{title}". Collection titles should be unique.',zu="Title is required and up to 100 characters long.",yx="Description is optional and up to 550 characters long.",PA="Invalid content. Please remove any phone numbers, email addresses, or URLs.";var CZ="If set to private, this collection can only be viewed by you. A collection that is not private can be viewed by anyone.",LA="Set as private",EZ="{userDisplayName}'s Collection {index}",_F="Created by {name}",AZ="Created by a Microsoft Learn user";var kZ="Delete collection",IZ="Display my name";var RA="Edit my collection",yF="add description",vx="Edit description",xx="Edit title",PZ="Edit Learning Outcomes",LZ="Description of this collection",RZ="At least one outcome is required.",MZ="Title of this collection",DZ="We were unable to save your title. Please try again.",$Z="We were unable to save your description. Please try again.",NZ="We were unable to save your learning outcomes. Please try again.",MA="Favorites",FZ="If this link was shared with you, request a new link.",DA="Any edits will not affect the original collection";var UZ='No items in this collection. Add items from the Learn training browse page.',OZ="{numberOf} Learning Paths",qZ="{numberOf} Learning Path",HZ="The Collection is complete and proofread",BZ="This will take up to 14 days but could be completed sooner. After it is localized, any future edits you make will automatically be submitted to the localization pipeline.",zZ="Your title, description, sections and section descriptions will be translated into each of the languages Microsoft Learn supports",$A="Localize",GZ="Please ensure the following:",VZ="This Collection has not been localized in your language yet.",QZ="The source language is English",NA="This collection has been submitted to be localized",YZ="Thank you for submitting your official collection for localization.",Tx="{numberOf} Modules",wx="{numberOf} Module";var jZ="Move item down",WZ="Move item up";var KZ="Move section down",JZ="Move section up",XZ="Official collection by Microsoft",ZZ="on behalf of",eee='Removed from {collectionName}',tee='Removed from Collections';var nee="Adding to a collection is disabled for content requiring authorization.",oee='Added to {collectionName}',ree='Added to Collections',see="Save all items in this collection as a new";var vF="Please sign in to add this to your collection.",FA="Sorry, this collection is private.",iee="The creator of this collection has marked it as private and it is not currently visible to other users.",aee="This collection does not exist or was removed.",lee='You can also return to collections.',cee="You can review your collections in your user profile.",uee="View your collections",dee="Manage {title} in collections",pee="Add {title} to a collection",mee="You can find this collection in your Learn profile";var gee="Violation detected",fee='The title or description of this collection, or a section title or description of this collection has been deleted due to a violation of our Terms of Use. These were manually reported or identified through automated detection before action was taken. Please refer to our Terms of Use for more information.',hee="You will continue to see this alert until an update has been made.",bee="Reported Collection",_ee='A concern has been reported on this collection and it is currently under Microsoft review. Please refer to our Terms of Use for more information.';var yee="Complete module";var Kn="Completed",fh="{completedCount} of {totalCount} modules completed",UA="{completedCount} of {totalCount} units completed",xF="Completed on";var vee="Achievement",xee="Additional training resources",Tee="Browse additional training",wee="Congratulations, but what should you do next?",TF="Second, earn a credential",See="Test your knowledge and receive a shareable credential!",Cee="You have earned an achievement!",Eee="You have earned {count} achievements!",Aee="Keep up the great work!",kee="Next module in this learning path",Iee="Don\u2019t lose your momentum, keep learning",Pee="Below you will find recommended content to help you along your path!",Lee="First, let\u2019s share your achievement",Ree="You put in the time to learn something new, let your network share in your victory!",Mee="In order to save your achievement and progress, please sign in or create a profile.",Dee="Sign in/Create profile";var $ee="Congratulations!",Nee="Congratulations";var Fee="Contact customer support",Uee="Contact email";var Oee="Content language selector. Currently set to {language}.";var qee='Note: The author created this article with assistance from AI. Learn more',Hee='Note: This article contains content created with AI. Learn more',Bee="Community-authored content. This article is written and maintained by experts in our Microsoft Learn community.",zee='Note: This episode contains content created with AI. Learn more',Gee='Note: The author created this episode with assistance from AI. Learn more';var Vee='Note: This module contains content created with AI. Learn more',Qee='Note: The author created this module with assistance from AI. Learn more',Yee='Note: This page contains content created with AI. Learn more',jee='Note: This page was partially created with the help of AI. Learn more',rr="Continue",Wee="Continue course";var Kee="Continue learning path";var OA="Copied",Gu="Copy";var Jee="Correct answer",ra="Course";var Xee="Continue self-directed learning",Zee="Get started with self-directed learning",ete="Instructor-led training (ILT) is a highly effective method in technical education because of its unique approach. With ILT, you have direct access to experienced instructors who can provide real-time explanations, personalized feedback, and adaptable learning experiences. Interactive activities help improve understanding, while peer interaction fosters collaborative learning and networking.";var tte="Why instructor led training?";var nte="Afternoon",ote="Night",rte="Location by city",ste="Early morning",ite="Morning";var ate="Courses are offered in {timezone}",lte="Microsoft Learn does not have permission to use your location. Please enable your location and try again.",cte="By {partnerName}",ute="Starting on",dte="Virtual or In-person";var pte="Select Duration",mte="Select Hours",gte="Select Language",fte="Showing {number} results",wF="Courses are scheduled over {duration} unless otherwise noted. Session times are based on course location. For information regarding your enrollment, please go to the partner you've registered with.",hte='From to ';var bte='Find specific partners and more course options. View the directory.',_te="Having trouble? Find answers on training support.",yte="Please revise the search criteria to show more results.",vte="We couldn't load the course schedules. Please try again later.";var xte="Units of Distance",Tte="Use my location",wte="Afghanistan",Ste="Aland Islands",Cte="Albania",Ete="Algeria",Ate="American Samoa",kte="Andorra",Ite="Angola",Pte="Anguilla",Lte="Antarctica",Rte="Antigua and Barbuda",Mte="Argentina",Dte="Armenia",$te="Aruba",qA="Australia",HA="Austria",Nte="Azerbaijan",Fte="Bahamas, The",Ute="Bahrain",Ote="Bangladesh",qte="Barbados",Hte="Belarus",Sx="Belgium",Bte="Belize",zte="Benin",Gte="Bermuda",Vte="Bhutan",Qte="Bolivia",Yte="Bonaire Saint Eustatius and Saba",jte="Bosnia and Herzegovina",Wte="Botswana",Kte="Bouvet Island",BA="Brazil",Jte="British Indian Ocean Territory",Xte="Brunei",Zte="Bulgaria",ene="Burkina Faso",tne="Burundi",nne="Cambodia",one="Cameroon",Cx="Canada",rne="Cape Verde",sne="Cayman Islands",ine="Central African Republic",ane="Chad",lne="Chile",cne="China",une="Christmas Island",dne="Cocos (Keeling) Islands",pne="Colombia",mne="Comoros",gne="Congo",fne="Congo (DRC)",hne="Cook Islands",bne="Costa Rica",_ne="C\xF4te d'Ivoire",yne="Croatia",vne="Cura\xE7ao",xne="Cyprus",Tne="Czech Republic",wne="Denmark",Sne="Djibouti",Cne="Dominica",Ene="Dominican Republic",Ane="Ecuador",kne="Egypt",Ine="El Salvador",Pne="Equatorial Guinea",Lne="Eritrea",Rne="Estonia",Mne="Ethiopia",Dne="Falkland Islands",$ne="Faroe Islands",Nne="Fiji",Fne="Finland",Une="France",One="French Guiana",qne="French Polynesia",Hne="Gabon",Bne="Gambia",zne="Georgia",Gne="Germany",Vne="Ghana",Qne="Gibraltar",Yne="Greece",jne="Greenland",Wne="Grenada",Kne="Guadeloupe",Jne="Guam",Xne="Guatemala",Zne="Guernsey",eoe="Guinea",toe="Guinea-Bissau",noe="Guyana",ooe="Haiti",roe="Heard Island / McDonald Islands",soe="Honduras",ioe="Hong Kong SAR",aoe="Hungary",loe="Iceland",zA="India",coe="Indonesia",uoe="Iraq",GA="Ireland",doe="Isle of Man",poe="Israel",moe="Italy",goe="Jamaica",foe="Japan",hoe="Jersey",boe="Jordan",_oe="Kazakhstan",yoe="Kenya",voe="Kiribati",xoe="Kuwait",Toe="Kyrgyzstan",woe="Laos",Soe="Latvia",Coe="Lebanon",Eoe="Lesotho",Aoe="Liberia",koe="Libya",Ioe="Liechtenstein",Poe="Lithuania",Loe="Luxembourg",Roe="Macao SAR",Moe="Macedonia FYRO",Doe="Madagascar",$oe="Malawi",Ex="Malaysia",Noe="Maldives",Foe="Mali",Uoe="Malta",Ooe="Marshall Islands",qoe="Martinique",Hoe="Mauritania",Boe="Mauritius",zoe="Mayotte",VA="Mexico",Goe="Micronesia",Voe="Moldova",Qoe="Monaco",Yoe="Mongolia",joe="Montenegro",Woe="Montserrat",Koe="Morocco",Joe="Mozambique",Xoe="Myanmar",Zoe="Namibia",ere="Nauru",tre="Nepal",nre="Netherlands",ore="New Caledonia",QA="New Zealand",rre="Nicaragua",sre="Niger",ire="Nigeria",are="Niue",lre="Norfolk Island",cre="Northern Mariana Islands",ure="Norway",dre="Oman",pre="Pakistan",mre="Palau",gre="Palestine, State of",fre="Panama",hre="Papua New Guinea",bre="Paraguay",_re="Peru",yre="Philippines",vre="Pitcairn",xre="Poland",YA="Portugal",Tre="Puerto Rico",wre="Qatar",Sre="R\xE9union",Cre="Romania",Ere="Russia",Are="Rwanda",kre="Saint Barthelemy",Ire="Saint Kitts and Nevis",Pre="Saint Lucia",Lre="Saint Martin",Rre="Samoa",Mre="San Marino",Dre="Sao Tome and Principe",$re="Saint Vincent and the Grenadines",Nre="Saudi Arabia",Fre="Senegal",Ure="Serbia",Ore="Seychelles",qre="Sierra Leone",jA="Singapore",Hre="Sint Maarten",Bre="Slovakia",zre="Slovenia",Gre="Solomon Islands",Vre="Somalia",WA="South Africa",Qre="South Georgia and the South Sandwich Islands",Yre="South Sudan",jre="Korean",Wre="Spain",Kre="Sri Lanka",Jre="St. Helena",Xre="St. Pierre and Miquelon",Zre="Suriname",ese="Svalbard and Jan Mayen",tse="Swaziland",nse="Sweden",hh="Schweiz / Suisse",ose="Taiwan",rse="Tajikistan",sse="Tanzania",ise="Thailand",ase="Timor-Leste",lse="Togo",cse="Tokelau",use="Tonga",dse="Trinidad and Tobago",pse="Tunisia",mse="Turkey",gse="Turkmenistan",fse="Turks and Caicos Islands",hse="Tuvalu",bse="Uganda",_se="Ukraine",yse="United Arab Emirates",KA="United Kingdom",JA="United States",vse="Uruguay",xse="US Minor Outlying Islands",Tse="Uzbekistan",wse="Vanuatu",Sse="Vatican City State",Cse="Venezuela",Ese="Vietnam",Ase="British Virgin Islands",kse="US Virgin Islands",Ise="Wallis and Futuna Islands",Pse="Yemen",Lse="Zambia",Rse="Zimbabwe",Mse="French Southern Territories",bh="Country/Region";var Ax="Create";var SF="Created by";var Dse="By becoming a member, you understand and acknowledge that your Microsoft Learn membership means our network of sites and applications will record and track your achievements and activities.

Additionally, your username, display name, profile picture, affiliation, achievements and activities will be publicly visible. You can hide your achievements and activities under settings.";var Oo="Credentials";var $se="Custom date";var Nse="Dark";var XA="Day",_h="Days",Fse="{duration} days ago",ZA="{days} days",Use="1 day",e0="Decline";var Wr="Delete";var kx="Description";var Ose="This archived content is no longer being maintained. Links and information may be outdated or unsafe, and have not been actively reviewed by Microsoft.",qse="This article has been translated for your market from English. How satisfied are you with the quality of language used?",Hse="This article was machine or AI translated. This archived content is no longer being maintained. Links and information may be outdated or unsafe, and have not been actively reviewed by Microsoft.",Bse="This content has been retired and may not be updated in the future. The product, service, or technology mentioned in this content is no longer supported.",zse="This article was machine or AI translated. This content has been retired and may not be updated in the future. The product, service, or technology mentioned in this content is no longer supported.",yi="Dismiss alert",Gse="Contains learning options not available on mobile",Vse="Parts of this topic may be\u202Fmachine or AI\u202Ftranslated.",Qse="Parts of this topic may be\u202Fmachine or AI\u202Ftranslated.";var Yse="Microsoft Confidential",jse="This page was permanently redirected to {url}",Wse=`We're no longer updating this content regularly. Check the Microsoft Product Lifecycle for information about how this product, service, technology, or API is supported.`,Kse=`This article was machine or AI translated. We're no longer updating this content regularly. Check the Microsoft Product Lifecycle for information about how this product, service, technology, or API is supported.`,Jse="Recommended Version",CF="Return to main site";var Xse="This content is not available in your language. Here is the English version.",Ix="Dismiss";var Zse="This learning path will soon be available in the following language: {language}.",eie="This learning path is not available in the following language: {language}.",tie="Great job! It looks like you're ready for: {exam}!",nie="Great job! It looks like you're ready for this exam!";var oie="This module will soon be available in the following language: {language}.",rie="This module is not available in the following language: {language}.";var sie="Search results are from previous versions' documentation and not regularly updated.";var iie="Days to complete";var Vu="Documentation",aie="Document Details",lie="Do not edit this section. It is required for learn.microsoft.com \u279F GitHub issue linking.";var cie="Download";var sa="Edit";var uie="Edited on";var ol="Email",Px="Contact email for notifications",die="Email is required.";var pie="Ends {endDate}";var rl="Error";var mie="Events";var gie="Event Type",hr="Exam",fie="Take a free practice assessment",hie="Test your skills with practice questions to help you prepare for the exam.",bie="Learn more about practice assessments",t0="Previous practice attempts",_ie="To be better prepared for the exam, aim to achieve a score of {passingPercent}% or higher in multiple attempts.",yie="Answer Summary",vie="Back to Report",xie="Below is a summary of your answers.",Tie="Congratulations, you passed all the sections! If you have passed multiple attempts, consider scheduling an exam.",wie="Sorry, this customized learning material is out of date with the current practice assessment. Please visit the exam details page to get the latest preparation material.",Sie="Correct Answer",Cie="Your practice assessment results",Eie="It took you {duration} minutes to complete this assessment.";var Aie="Practice Assessment Results: {date}",kie="Overall Results",Iie="To be better prepared for the exam, aim to achieve a score of {percent}% or higher in multiple attempts.",Pie="Score: {percent}%";var Lie="To further strengthen your skills in the following areas, refer to the Customized Learning Material section below.",Rie="Question {x} of {y}",Mie="Ready to take the exam?",Die="You can see previous assessment attempts on the exam details page.",$ie="Practice material - {date}",Nie="Show My Answers",Fie="Take another practice assessment.",Uie="Your Answer";var Oie="Examination";var qie="Expand table";var Hie="Expired {date}",Bie="Explore other popular paths";var im="Facebook";var zie="FAQ";var Gie="Fair";var Vie='Feedback will be sent to Microsoft: By pressing the submit button, your feedback will be used to improve Microsoft products and services. Privacy policy.',Qie='By pressing submit, your feedback will be used to improve Microsoft products and services. Privacy Statement',Yie=`Microsoft will process the feedback you submit pursuant to your organization's instructions in order to improve your and your organization's experience with this product. If you have any questions about the use of feedback data, please contact your tenant administrator. Processing of feedback data is governed by the Microsoft Products and Services Data Protection Addendum between your organization and Microsoft, and the feedback you submit is considered Personal Data under that addendum. Privacy Statement`,jie="Microsoft will process the feedback you submit pursuant to your organization's instructions in order to improve your and your organization's experience with this product.";var Wie="[Enter feedback here]";var Kie="Report feedback";var Jie="Attach a screenshot (optional)",Xie="Choose Files...",Zie=".jpeg, .jpg, .png or .gif";var eae="Problems with Cloud Shell";var tae="Problems with .NET Editor";var nae="Problems with installing dependencies";var oae="Tutorial content quality";var rae="Describe your feedback. If applicable, include steps to replicate your issue",sae="Enter your feedback title",iae="Incorrect Information/Spelling/Content Mistake",aae="Feature request",lae="Product or functionality",cae="General feedback",uae="Learning content quality",dae="I have questions about the learning content",pae="I am not being granted credit/XP for completion",mae="Other",gae="Problems with registration/signing-in",fae="Problems with the Sandbox",hae="Issues with translation quality",bae="Select an issue that applies to you",_ae="Select the type of feedback";var yae="Content is easy to understand",vae="Content is hard to understand",xae="Couldn't find what I need",Tae="I accomplished my task or solved my problem",wae="I learned something new",Sae="Information was easy to find",Cae="Out of date/obsolete";var Eae="Procedure or code doesn't work",EF="Translation quality";var Aae="Reading mode enabled",kae="Reading mode disabled";var Iae="At least one item should be selected.",am="Content has changed, please reload the page to get the latest changes.";var AF="Email is invalid";var Pae="Select at least one reason for your feedback.",Lae="Was this page helpful? Select Yes or No.";var lm="{inputLabel} cannot be longer than {maxLength} characters.",cm="{inputLabel} must be at least {minLength} characters.",um="{inputLabel} is required.";var dm="You are not authenticated. Please refresh the page and try again. If this issue persists, please log out and log back in.",pm="You are not authorized to make this response. If you believe this to be in error, please refresh the page and try again.";var sl="Please fix the following issues to continue:",n0="Please make a selection.";var mm="There are no edits to submit.",gm="You have sent too many requests. Please wait a few minutes and try again.",yh="We encountered an unexpected error. Please try again later. If this issue continues, please contact site support.";var Rae="For students or instructors";var Mae="Get help at Microsoft Q&A",Dae="Get product support",$ae="Get started";var fm="Global",kF="Global navigation";var IF="Go back",Nae="Go back to finish";var Fae="Good";var PF="Go to exam details";var Uae="Great";var Oae="Help us customize your path";var qae="Hide details";var Hae="High contrast",Bae="Home";var zae="Horizontally scrollable code",LF="Horizontally scrollable data",o0="Hour",il="Hours",Gae="{duration} hours ago",Vae="How are we doing?";var Qae="How satisfied are you with the quality of the language used?";var Yae="hr";var jae="{hrs} hrs",Wae="{numberOfHours} hr {numberOfMinutes} min";var Kae="Important";var Jae="Incorrect answer";var Xae="In person",vh="In progress";var Zae="Intermediate";var RF="In this article";var Lx="Invalid email address. Please try again.";var ele='This exercise requires a feature which is not present in this network. The exercise cannot be completed exactly as written but can possibly be performed by changing some of the steps. Please check this document for details on the types of changes you will need to make to go through this exercise. Alternatively, you can read through the instructions to understand the steps.';var hm='"{itemTitle}" will be permanently deleted.';var tle="Kilometers";var MF="Known issue";var DF="Language";var Rx="Last updated on {time}";var r0="Learning Path",al="Learning Path";var nle="This learning path helps prepare you for {exam}.",Kr="Learn more";var Mx="Episode";var ole="{count} Episodes";var rle="Events";var sle="Last episode {date}";var ile="Published {date}",s0="Series",i0="Show",vi="Shows";var bm="Video Player";var ale="Level {number}";var lle="Lifecycle",cle="Light";var _m="LinkedIn";var Xt="Loading...";var a0="Arabic",ule="Arabic (Saudi Arabia)",l0="Bulgarian",dle="Bulgarian (Bulgaria)";var c0="Bosnian (Latin)",ple="Bosnian (Cyrillic)",u0="Catalan",d0="Czech",p0="Danish",m0="German";var g0="Greek",mle="Greek (Greece)",f0="English",gle="English (Malaysia)";var h0="Spanish",fle="Spanish (Mexico)",b0="Estonian",_0="Basque",y0="Finnish",v0="Filipino",x0="French";var T0="Irish",w0="Galician",S0="Hebrew",C0="Hindi",E0="Croatian",A0="Hungarian",hle="Hungarian (Hungary)",k0="Indonesian",ble="Indonesian (Indonesia)",I0="Icelandic",P0="Italian";var L0="Japanese",_le="Georgian",R0="Kazakh",M0="Korean",D0="Luxembourgish",$0="Lithuanian",N0="Latvian",F0="Malay",U0="Maltese",O0="Norwegian",q0="Dutch",H0="Polish",B0="Portuguese",yle="Portuguese (Brazil)",vle="Portuguese (Portugal)",z0="Romanian",G0="Russian",V0="Slovak",Q0="Slovenian";var Y0="Serbian (Cyrillic)",j0="Serbian (Latin)",W0="Swedish",K0="Thai",J0="Turkish",X0="Ukranian",xle="Ukranian",Tle="Urdu",Z0="Vietnamese",wle="Vietnamese (Vietnam)";var ek="Chinese (Simplified)",tk="Chinese (Traditional, Hong Kong SAR)",nk="Chinese (Traditional)";var Sle="Manage cookies",$F="Manage email preferences";var ok="Microsoft Learn Editor",Cle="We are working hard to migrate your course history and achievements to Learn. At this time, however, only activity completed in Learn will appear here.",Ele=`To view your full transcript and/or the badges you've earned in the Microsoft Educator Center and Learn, please go to your MEC profile.`;var Ale="Microsoft Employee Privacy Notice",kle="You have signed in with an account associated to an organization ({email}). By becoming a member, you understand and acknowledge that your Microsoft Learn membership means our network of sites and applications will record, and track your achievements and activities and we may share your results and activities with your organization. Additionally, your username, display name, profile picture, affiliation, achievements and activities will be publicly visible. You can hide your achievements and activities under settings.

After you create your profile, we recommend you link a personal account so that you can access your learning progress regardless of your employment status. You can link additional accounts in the Account Management section of the profile settings.";var Ile="Microsoft Learn will send email to you at the email you provide below.";var xh="Microsoft Privacy Notice",Ple="You need to agree with the Microsoft Privacy Notice to keep your profile and relating data.";var Lle="Miles";var Th="{numberOfMinutes} min";var Qu="{numberOfMinutes} mins",NF="Minute",ym="Minutes";var Rle="{duration} minutes ago";var wo="Module",Mle="Module assessment",Dle="The questions and answer choices in this module assessment were generated using AI and reviewed by a human author.",$le="AI-generated content";var Nle="Provide feedback",Fle="Give as many details as you can, but don't include any private or sensitive information",Ule="Privacy Statement",Ole="Provide feedback about AI-generated content",qle="Your feedback will be used to improve Microsoft products and services.",Hle="Content errors",Ble="Design and usability errors",zle="Other errors",Gle="Scoring errors",Vle="Is this content helpful to you?";var Qle="Assess your understanding of this module. Sign in and answer all questions correctly to earn a pass designation on your profile.";var Yle="Collapse learning object {objectiveId}",jle="Try again",Wle="Module assessment hash: {hash}";var Kle="no AI generated questions found for this module assessment in locale {locale}, branch {branch}.",FF="Great job! You passed the module assessment.",UF='Achieve a score of {passingCriteria} or higher to pass. Click "Retake" to try again, or "Next" to finish the module. You can retake the module assessment at any time.',Jle='Achieve a score of {passingCriteria} to pass. Click "Retake" to try again, or "Next" to finish the module. You can retake the module assessment at any time.';var rk="Module assessment passed",Xle="All module assessments passed",Zle="Question ID: {questionId}",ece="This assessment evaluates your understanding of the module. Unlike before, you won't get feedback on individual answers\u2014just whether they're right or wrong. This is meant to measure what you've learned. Take time to review the module materials before starting.",tce="";var sk="Retake",nce="Your progress has been saved.",oce="to save progress.",rce="Score";var sce="Sign-in successful",ice="Review mode",ace="Learning objective",lce="Rationale",cce="Take the module assessment",uce="Marked to be hidden",OF="Hidden to users",qF="Visible to users",dce="Marked to be visible",wh="Regenerate AI Content",ik="Login GitHub to Regen Or Hide Questions",HF="Moderation functions are not available for you. Please make sure:you have the push permission to the repository {repoName}, and you have authorized Microsoft Docs during GitHub single sign-on.",pce="Please login GitHub and authorize to enable your moderation functions in review mode.",mce="\u2018Update question visibility\u2019 button:\u201CYou can use this function to hide poor questions from users. First, select the questions, then update their visibility. Note that each learning objective requires at least 3 good questions.",gce="\u2018Regenerate AI Content\u2019 button:\u201CYou can use this function to regenerate all content for this module assessment, including learning objectives and questions. If any learning objective has fewer than 3 good questions, you need to run this function. Note that after regeneration, feedback will persist if you have filled out and submitted the form, but marking a question to hide will not persist.",BF="Continue on GitHub",fce="To update question visibility, we will need to make changes to the file in GitHub on your behalf. Please click 'Continue on GitHub' to process the change and check the build status on GitHub.",hce="No enough remaining questions for learning objective {index}. Click 'OK' to go back to re-select.",bce="To trigger the regeneration process, we will need to make changes to the file in GitHub on your behalf. Please click 'Continue on GitHub' to proceed the change and check the build status on GitHub.",Sh="Update question visibility",_ce="Login failed on GitHub. Please retry.",yce="Github File Not Found. Please retry.",vce="Can't fetch the file from GitHub. Please retry.",xce="You don't have writer permission on this repo:{repoName}.";var zF="{count} module",GF="{count} modules",Tce="Module incomplete",wce="This module helps prepare you for {exam}.",Sce="{platformName} Module Reference",Ch="Modules",Cce="Modules in this learning path",Ece="You have been redirected to the newest product version available for this page.";var Ace="{duration} months ago";var Dx="More";var Jr="Next",kce="Next learning path:";var Ice="Next module:";var Pce="Next unit",$s="No",Lce="New collection";var Rce="No current courses available for this certification";var Mce='No items in this section. Move items here from other sections or add items from the Learn training browse page.';var Dce="Learning paths or modules are not yet available for this",$ce="none";var xi="No results",Ns="No results found";var Nce="No suggestions";var Fce="No, thanks",Uce="Note";var Oce="Very satisfied",qce="Satisfied",Hce="Neither satisfied nor dissatisfied",Bce="Dissatisfied",zce="Very Dissatisfied";var lo="OK",Gce="OK, got it.";var Vce="Please edit your interests";var Qce="We don't currently have anything that fits your selections.",Yce="1 Module",jce="1 Unit";var Wce="Open search";var Kce="{productName} feedback",Jce="{productName} is an open source project. Select a link to provide feedback:";var Xce='I will receive information via email related to my use of Microsoft Learn. To learn more about how Microsoft handles your personal data please visit the Microsoft Privacy Statement.',Zce="I would like to receive information via email related to my use of Microsoft Learn. To learn more about how Microsoft handles your personal data please visit the Microsoft Privacy Statement.",eue='I would like to receive information via email related to my use of Microsoft Learn. To learn more about how Microsoft handles your personal data please visit the Microsoft Privacy Statement.',tue="I would like to receive information via email related to my use of Microsoft Learn. To learn more about how Microsoft handles your personal data please visit the Microsoft Privacy Statement.",nue='I would like to receive information via email related to my use of Microsoft Learn. To learn more about how Microsoft handles your personal data please visit the Microsoft Privacy Statement.',oue='Participation requires transferring your personal data to other countries in which Microsoft operates, including the United States. By submitting this form, you agree to the transfer of your data outside of China. Privacy Statement.',VF="I agree to receiving marketing information and use of my personal information for marketing purposes (required):",rue='
  • Consent to Receive Marketing: The information collected may be used for Microsoft to send you information, tips, and offers about Microsoft Learn and other Microsoft products and services.
  • Items of Personal Information to be Collected: First Name, Last Name, Email Address, Phone Number, Company name and size, Job Title, Country/Region of residence, and any other fields visible on this form.
  • Purpose of Collection and Use: To contact you for marketing purposes
  • Retention/Use Period of Personal Information: As long as needed to provide the service(s) you are requesting
You have the right to refuse the collection and use of personal information for marketing purposes, and receiving marketing information as set forth above. However, if you refuse, you may not be able to receive the benefits described under Purpose of Collection & Use. Privacy Statement.';var Eh="Select a country/region";var sue="Open Cloud Shell",iue="Optional";var ak="{label} (optional)";var aue="or";var lk="Other";var lue="Overall, how satisfied or dissatisfied are you with Microsoft Learn?";var cue="Overview",uue="Overview for: {title}";var ck="Package",QF="{platformName} Package Reference";var uk="Page {pageNumber} of {numberOfPages}";var due="pagination";var $x="Past {numberOfDays} days";var Ah="Plan";var pue="Please fill out this field.",Nx="Please provide an email address.",mue="Please provide feedback on how we can improve this content. If applicable, provide the first part of the sentence or string at issue.";var gue="Print";var fue="Print is disabled for content requiring authorization.",dk="Privacy policy",hue="Poor",bue="We're sorry. The lab environment needed to complete the exercises in this unit is temporarily unavailable.",pk="Launch lab",_ue="Loading lab...";var YF="This unit includes a lab to complete.",jF="Use the free resources provided in the lab to complete the exercises in this unit. You will not be charged for the lab environment; however, you may need to bring your own subscription depending on the lab.",yue="Lab will launch in a new window.",vue="Yes, start a new lab",xue="A lab for a different unit is already active",Tue="You currently have a lab open for another unit ({lab-name}). Would you like to discard your pre-existing lab and start a new lab for this unit?",wue="Retry launching lab",Sue="Sign in to launch the lab",Cue="Start lab",Eue="This lab is busy with too many active users. Please wait a few minutes and try again.";var WF="Option {number}: Prerequisite certification";var mk="Preview";var Mr="Previous";var Aue="{productName} users:";var kue="Profile";var Iue="Provide product feedback";var gk="Q&A";var Pue="asked";var Lue="answers",Rue="comments";var Mue="votes";var KF="Report a concern",JF="Report reason";var Due=` to opt into email updates on your reported concern`,$ue="Allow Microsoft to contact me about this report",Nue="Full Name",Fue="Email",Uue='We will contact you through your personal account {email}',Oue='Microsoft is committed to helping our users and to protecting your privacy. You may read the Microsoft Privacy Statement if you would like more information on how we protect personal data.';var que="1 out of {numberOfQuestions} questions is incorrect. Please correct question {lastIncorrectQuestionNumber}.",Hue="{numberOfIncorrectQuestions} out of {numberOfQuestions} questions are incorrect. Please correct questions {incorrectQuestionNumbers} and {lastIncorrectQuestionNumber}.",Bue="Question",XF="Question author";var zue="Question already answered.";var Gue="Required question.",Vue="Optional question.";var Que="Radius";var ZF="Read in English",Yue="Read in {language}";var br="Reference";var jue="References";var Yu="Refresh";var Wue="Register";var Kue="Related certification";var Jue="This module is part of these learning paths";var kh="remaining";var Cc="Remove",eU="Remove {itemName}";var fk="Renew";var hk="Report a concern",Xue="Select reason",Zue="Adult and sexual",ede="Child sexual exploitation and abuse imagery",tde="Coordination of harm";var nde="Bullying and harassment",ode="Graphic violence and gore",rde="Hate speech and discrimination",sde="Non-consensual intimate imagery & intimate extortion";var ide="Other Terms of Use or Code of Conduct violation";var ade="Profanity and vulgarity",lde="Sexual solicitation";var cde="Suicide and self-injury",ude="Terrorism and violent extremism",dde="Trafficking",pde="Violent threats, incitement, and glorification of violence";var Ih="Required fields are marked with an asterisk";var mde="Resources";var tU="Restart";var ju="Resume",bk="Retake";var gde="Return to module";var Fx="We're encountering an issue with the security verification process required to activate the resource. Please retry after 10 minutes.",_k=`We have reviewed your appeal and determined that your account has violated our Terms of Use. Your interactive resource access will not be reinstated. However, you can continue to access Microsoft Learn's training content. Many module exercises can be completed using your personal subscription, but charges may apply, and you may need to modify the instructions to work with your subscription.`;var fde='For more information, please check the troubleshooting guidance page.',nt="Save";var Ph="Save successful.",hde="Score:",bde="Skill";var nU="Add to plan",oU="Added to Plans",_de="Manage {title} in Plans",yde="Add {title} to a plan";var rU="Copy plan";var vde="Milestone {number}",xde='Added to {collectionName}',Tde='Added to Plans';var wde='Removed from {collectionName}',Sde='Removed from Plans';var Cde='Plans updated',Ede='How it works',Ade="Start a plan",kde="Get started with your new structured learning journey.",Ide="Go through milestones",Pde="Choose to go through milestones in the recommended time or at your own pace.",Lde="Achieve learning outcomes",Rde="Gain the skills you need to advance your career or accomplish project-based goals.",Mde="Choose a different name for your plan",Dde="Copy Link",$de="Congrats on completing the {title} plan!",Nde="You put in the time to learn something new, let your network share in your victory!";var yk="Manage";var vk="Leave",Fde="Leave plan",Ude="Are you sure you want to leave this plan?",Ode="You'll lose all records of your progress, and won't appear in the creator's report.",qde="Yes, leave",Hde="Enter a title",Bde="Oops, we couldn't find that plan =]",zde="We looked everywhere. But don't worry, you can review a history of your plan activity in your user profile.",Gde="View your plan history",Vde="1 milestone in this plan",Qde="{numberOfMilestones} milestones in this plan",Yde="Sorry, this plan is private.",jde="The creator of this plan has marked it as private and it is not currently visible to other users.",Wde="You can review your Plans in your user profile.",Kde="View your Plans",Jde='You can also return to Plans.',Xde="Plan unavailable",Zde="This plan does not exist or was removed.",epe="If this link was shared with you, request a new link.",tpe="Completed";var npe="A plan allows learners to progress through a set of milestones to achieve learning outcomes. You can invite learners to your plan and track their progress.",ope="Started";var rpe="Official plan";var spe="Plan not found. Please refresh the page.",ipe="One or more milestones is empty or is missing the recommended days to complete. Please fix these issues before publishing the plan.",ape="Plan details";var lpe="Delete plan",cpe="To delete your plan, ensure no users are joined to it. All users must drop the plan first.",upe="Are you sure that you want to delete the following plan?",dpe="Yes, delete plan";var Lh="Invite learners",sU="Copy invite link",ppe="Link copied to clipboard",mpe="Delete learning group",gpe="You are about to delete the following learning group: {learningGroupName}. Do you want to proceed?",fpe="Group deleted",hpe="Groups",Ux="Group name",bpe="Individuals";var _pe="A learning group is a name that allows you to identify a group of learners in your progress report; learners will not see this name.

Creating a learning group generates a unique link to your plan for the specific group of learners.";var iU="New learning group",ype="Please enter a name for this learning group",vpe="Your invitation to start {planTitle} plan on Microsoft Learn",xpe="Start your plan and begin your learning journey today.",Tpe="You have been invited to start the {planTitle} plan on Microsoft Learn.",wpe="A plan is a set of curated and organized content on Microsoft Learn with milestones designed to help you to achieve learning outcomes.",Spe="By completing this plan, you\u2019ll achieve the following learning outcomes:",Cpe="Start your plan today!",Rh="View progress",Epe="Download this file to view a list of learners and their progress.",Ox="Download CSV",Ape="The file contains the following information:",kpe="Learner group",Ipe="Learn username",Ppe="Start date",Lpe="End date",Rpe="Items completed",Mpe="Items total",xk="Learning outcomes",Dpe="Edit learning outcomes",$pe="A learning outcome is specific knowledge, skills, or expertise that the learner will get from completing this plan.",Npe="Tip: Begin each learning outcome with a verb. Each outcome should finish the sentence \u201CUpon completion of this plan, learners will be able to...\u201D";var Fpe="Outcome 1",Upe="Outcome 2 (optional)",Ope="Outcome 3 (optional)",qpe="Outcome {number}",Hpe="Convert to an official plan",Bpe="Convert a plan to an official plan",zpe="An official plan should be used when you want your plan to represent Microsoft and if you would like to include links that are external to Microsoft Learn. Always ensure that your plan is complete, free of typographical errors, and that content is in the correct sequence. Once an official plan is published, it cannot be altered.",Gpe="To preserve any external links from an underlying Official Collection or plan, please convert to an official plan.",Vpe="An official plan represents Microsoft, so please ensure that your published plan is complete, free of typographical errors, and that content is in the correct sequence.";var Tk="This plan has been submitted to be localized",Qpe="The plan is complete and proofread",Ype="Thank you for submitting your official plan for localization.",jpe="Mark as completed",wk="Milestone",Wpe="Add milestone",Kpe="Edit milestone";var Jpe="New milestone",Xpe="Days to milestone:",Zpe="1 milestone",eme="{numberOfMilestones} milestones",tme="Milestones in this plan";var nme="Milestone completed";var ome="Move to";var rme="Please confirm all milestones have a title and days to complete. You may need to expand each milestone.",sme="Unsaved changes",ime="You have unsaved changes that may be lost if you exit now. To preserve your work, please click 'Cancel', then go back and save your changes.",ame="Close without saving";var lme="Your changes will not be applied until you click the Save button.";var cme="Mark as complete?",ume="Do you want to mark it complete? Once you mark it as complete, you won't be able to review it again.",dme="Welcome!",pme="To start this plan, you have to share your plan progress data with the creator of the plan. The data that will be shared is: the dates that you start and complete the plan and how many items of the total you have completed at any point in time. Your data will be associated with your public Learn username.",mme="Do you agree to share your progress?",gme="Yes, I agree to share my progress",fme="If you would like to receive useful emails to guide and encourage you through your Plans journey, please go to your Profile Settings page and provide a contact email for notifications.",hme="Save all items in this plan as a new",bme="Please sign in to add this to your plan.";var _me="You don't have any plans yet.",aU="A learner group with this name exists already. Please enter a different name",yme="Violation detected",vme='Some text in this plan (title, description of the plan, milestone titles or description of milestones, or the learning outcomes) violates our Terms of Use and have been deleted. If you have not yet published the plan, you can provide updated text in compliance with our Terms of Use before publishing this plan.',xme="You will continue to see this alert until you made an update to your unpublished plan. If your plan is already published, you cannot make any updates.",Tme="Reported plan",wme='A concern has been reported on this plan and it is currently under Microsoft review. Please refer to our Terms of Use for more information.';var Sk='Success! Your plan has been saved to your profile.';var lU="Redeem your code now.",Sme="We could not copy your code at this time. Please try again.",Cme="We could not copy your URL at this time. Please try again.",Eme="It looks like you have already redeemed this code.
Go to your achievements page to view your achievements.",Ame="You have hit your limit of 300 codes requested per day. Please try again after 12:00AM UTC.";var kme="This code has hit its maximum.
If you feel you are getting this message in error, please contact your instructor.",Ime="We cannot find this code in our system. Please contact your instructor.",Pme="Your code is ready to share!";var Lme="Code successfully copied!";var Rme="Copy code";var Mme="Copy this code to give to your students to redeem on Microsoft Learn";var Dme="You must copy or write down this code. Once you close this modal you will not be able to look up this code.",Ck="Copy URL",$me="Copy this URL to send your students straight to code redemption",Nme="Enter your code to add your achievement(s) to your profile",Fme="Expiration date must be in the future",Ume="We could not create your code at this time. Please try again.",cU="We could not redeem your code at this time. Please try again.";var Ome="Add your achievement(s) to your profile",qme="Invalid achievement category",uU="Please enter a value between 1 and 100,000.",Hme="OR";var Bme="Redeem",Ek="Redeem your code";var zme="e.g. A2CD34",Gme="It might take a couple of minutes for the badges to appear.",Vme="Codes are for our instructor-led training courses. Missing your code? Please contact your instructor.",Qme="Request achievement code",Yme="Request code",jme="e.g. 50",Wme="Enter the number of students that will be redeeming this code",Kme="You are signed in as",Jme="We\u2019ve added your achievement(s) to your profile!",dU="More information on code",Xme="Please enter a value larger than 0",Zme="Please enter a valid code.",ege="View profile",pU="Have an achievement code?";var tge="Save your customized collection";var Ak="Schedule exam",nge="Schedule with Certiport",oge="Schedule with Pearson Vue",mU="Microsoft provides this lab experience and related content for educational purposes. All presented information is owned by Microsoft and intended solely for learning about the covered products and services in this Microsoft Learn module.";var Dr="Search";var gU="Search previous versions";var qx="Seconds",rge="{duration} seconds ago",sge="{seconds} seconds",fU="Section";var ige="See all activity";var kk="See less";var vm="See more",age="Select",lge="Select a country or region";var Ik="Select Package";var Pk="Select Version";var xm="Settings",Lk="Share",hU="I earned my {achievementTitle} {achievementType}! I\u2019m so proud to be celebrating this achievement and hope this inspires you to start your own @MicrosoftLearn journey!";var Hx="[Shared Article] {articleTitle}",cge="I completed {achievementTitle}! I'm so proud to be celebrating this achievement and hope this inspires you to start your own @MicrosoftLearn journey!";var Tm="Share to your feed:";var bU="Share via";var uge="Share your achievement:",dge="Sharing",pge="Sharing is disabled for content requiring authorization.";var Rk="Show less",wm="Show more",mge="Show {number} more",gge="Signed In",Fs="Sign in";var fge="Signing in...";var Mh="Sign in to start",Dh="Sign out";var hge="Site";var bge="Accurate/relevant content",_ge="Complete/clear content",yge="Fast response",vge="Inaccurate/irrelevant content",xge="Incomplete/unclear content",Tge="Offensive/inappropriate content",wge="Slow response",_U="Something else";var Sge="Skills earned upon completion",yU="Skip";var Cge="Some items for you since your last visit",Xr="Hmm, something went wrong",Ht="Something went wrong. Please try again.";var Sm="GitHub";var bn="Start",Ege="Starts {startDate}";var vU="Start course";var xU="Start learning path";var Age="Step {step-index} of {step-count}",kge="Manage {title} in study guides",Ige="Add {title} in study guides";var co="Submit";var Pge="Submit another feedback",TU="Submit answers";var Lge="Successfully Submitted!",Rge="Thank you for submitting your feedback. We will review it shortly. Please note that feedback reporting is a one way communication and we are not responding back at this time.",Mge="Please note that although we cannot respond to feedback, our team will use your comments to improve the experience.";var Dge="Suggestions",$ge="Suggestions will filter as you type";var Nge="Support";var Fge="Table {index}";var Uge="Tags";var Mk="Take Assessment",Oge="Characters left";var qge="The file {fileName} is invalid. File type must be a valid gif, jpg, jpeg, or png image.",Hge="The file {fileName} is too large. File size cannot exceed five megabytes.";var Bge="Cloud Shell";var zge="{account} already has a profile",Gge="You have reached your account limit",Vge="No more than five school or work accounts can be linked to one profile. Please remove one account and try again.",Qge="{account} linked",Yge='To access your Learn profile, you must be able to sign in using at least one of the login accounts listed below. You may add up to five work or school login accounts
. Adding a work or school account allows you to share your learning progress data with your organization and take advantage of any organizational exam discounts. We strongly recommend adding a personal Microsoft login account
to your profile. This ensures that you maintain access to your learning history and credentials regardless of your employment or academic status. Only one personal login account is allowed.';var jge="You already have a linked account in the same organization",Wge="Remove this account?",Kge="Removing this account will delete its data from your Learn profile and stop the associated organization from receiving your Learn data. Note that your Learn profile will not be deleted.",Jge="{account} removed",Xge="Add login account",Zge="Please add another account and try again.";var efe=`You can only link accounts that don't have a registered profile. Please select a different account or see our troubleshooting guidance for more details.`;var tfe="Other Learn login accounts",nfe="You are adding a school or work account ({account}) to your profile. You understand and acknowledge that we may share your results and activities with your organization. You may choose to unlink this account at any time and your organization will stop receiving your learning progress data.",ofe="You have linked this account already",rfe="{account} is a personal account. Please select a school or work account.",sfe="Login account management";var ife="MCID",afe="You need at least one account linked to your profile.",lfe="No accounts added",cfe="Only one account per organization is supported.",ufe="You can only have one personal account linked",dfe="Profile is currently being merged",pfe="You can refresh the page to check the merge status.";var mfe="Select account",wU="Please select a different account",gfe="Shared information (like name or picture) will keep the info from Profile 1.",ffe="There is already a certification profile connected to this profile",hfe="In order to continue, please contact customer support to remove the current certification profile to proceed.",bfe="Your data will be merged into Profile 1.",_fe="Editable information like your display name and interests can still be changed later.",SU="Notify me when merging is complete",yfe="Merging profiles can take several minutes. We'll let you know when the process is complete. When you opt-in to this update, we may also send you personalized recommendations, helpful tips, or Q&A notifications.",vfe="You'll get notifications at {email}.",xfe="Your email is not currently set to receive notifications and will not be enrolled after the merge.",Tfe='Learn more about merging profiles.',wfe="This profile has been locked",Sfe="This profile is currently locked and is being merged with another profile. Please sign-in to a different profile.",CU="Retry merge",EU="Terminate merge",Cfe="Here's what will happen",Efe="Merge complete",Afe="Profile 1",kfe="Profile 2",Ife="You can refresh the page to check the merge status.",Pfe="Profile merge record not found",Lfe='Unable to find your profile merge. Please refresh the page. If the problem is still there, please contact customer support.',Rfe="A previous merge attempt is preventing this action",Mfe="One of the profiles you are trying to merge is currently being merged with another profile. Please log into both profiles to check the status.",Dfe="You're combining two Microsoft Learn profiles.",$fe="Would you like to combine your learning data into one profile?",Nfe="Merging your data is permanent and cannot be undone, but all your learning progress including achievements, skills, and certifications will be combined in one place.",Ffe="Your profiles have been successfully merged.",Ufe="We ran into a problem merging your source profile (username: {sourceUser}) to your destination profile (username: {destinationUser}).",Ofe="Some of your data might have been merged in the process, so it is expected if you find some data disappearing from your source profile and appearing on your destination profile.",qfe="You can choose one of the following actions:",Hfe="{terminateMergeText}: It will stop and quit the merge process. You will be able to use both profiles as usual and can trigger a new merge at any time. The data that already merged will remain on your destination profile.",Bfe="{retryMergeText}: It will re-run the merging process for you once more. Your source profile will be locked during the merging process.",zfe="Merging in progress. It may take several minutes to complete.",Gfe="Your merge has been terminated.",Vfe="Clicking 'Accept and continue' will begin the merging process. You can still use the profile you are currently signed-in with, but your other profile will be locked.",Qfe="We'll send you an update at {email} when your profiles have been successfully merged.",Yfe="You'll still be able to sign in with all accounts on both profiles.";var jfe="Active until {endDate}",Wfe="Ended on {endDate}",Kfe="Begins on {startDate}";var Jfe="Please agree to the Privacy Statement.";var Xfe="You're signed in as",Zfe="Sign in with a different account";var ehe="Welcome to Q&A!",the="Get personalized updates on topics you care about",nhe="Build your reputation while helping others",ohe="Connect instantly with people who share your interests";var rhe="Without completing registration, you will not be able to post or ask a question on Q&A.";var she="Tell us",AU="Tell us more.",ihe="Tell us what you think.",ahe="Tell us what you think! Your feedback is essential to us.";var lhe="Terrible";var che="Thank you for your feedback.",uhe="Thank you for your valuable feedback!";var kU="This article is helpful",IU="This article is not helpful",dhe="This certification is renewable";var phe="This section will be permanently deleted.";var mhe="Microsoft Build 2026";var ghe="AI Skills Fest";var fhe="June 2-3, 2026",hhe="Go deep on real code and real systems in San Francisco and online",bhe="Learn more",_he="June 8-12, 2026",yhe="Build your AI skills with chances to earn prizes and certification vouchers",vhe="Get your free pass",xhe="Tip";var ll="Title";var The="Your Azure account {email} has multiple tenants. Please choose one to use for this experience:",whe="You are already signed into Learn by below account. Would you like to continue current experience with this account?",She="Confirm your account",Che="Continue with Account",Ehe="Choose one of your Azure tenants",Ahe="Free Azure Trial",khe="Uh-oh! No Azure Subscription available on this account",Ihe="Your account {email} does not have an associated Azure Subscription. You are welcome to try a free trial of Azure or sign in to a different account!",Phe="If your account doesn't have a registered Learn profile, this process will complete that for you.";var Lhe="Sign in with your account.",Dk="Use a different account";var Jn="Training",Rhe="Training in this course";var Mhe="Duration";var Wu="Oops... something went wrong. Please reload the page to try again.";var Cm="Try again";var Dhe="Tutorial";var $he="Last 7 days",Nhe="Last 24 hours",Fhe="Last 30 days",Uhe="Last 365 days";var Ohe='Need help? See our troubleshooting guide or provide specific feedback by reporting an issue.';var qhe="Unit {index} of {total}",Hhe="Unit",Bhe="Units",zhe="{count} unit",Ghe="{count} units";var Vhe='Microsoft Learn will send email to you at {email}. You can opt out by unsubscribing from Microsoft Learn. This is where you\u2019ll receive notifications from Microsoft Learn, including exam reminders, Q&A replies, and challenge updates. If you choose to unsubscribe, you will no longer receive any communications from Learn.',Qhe="Unsubscribe now";var Yhe="URL",$h="URL copied!";var jhe='By checking the box, you are confirming that you have read and agree to the {product} Candidate Agreement and the Credentials Program Agreement.';var Whe="{text} is required.";var PU="Verify your account";var LU="Video";var $k="View";var RU="View certification details";var Bx="View details";var Khe="View results";var Jhe="View {userDisplayName}'s profile",Xhe="Virtual",Zhe="We recommend using Visual Studio 2019.",ebe="Download now";var tbe="Launch VM mode",nbe="Loading virtual machine...",MU="This unit requires a VM to complete.",DU="VM Mode provides a free, web-based virtual machine environment to complete the steps in this unit.",obe="Yes, activate a new VM",rbe="A VM for a different unit is already active",sbe="You've already opened a VM in module {lab-name}. If you activate this VM, you'll lose your work in the other module.",ibe="Retry launching VM mode",abe="Sign in to launch VM mode";var lbe="Warning";var cbe="Was this page helpful?";var ube="Web page";var Nk="Week";var Fk="Weeks";var dbe="{duration} weeks ago",Uk="Welcome back, {user}",pbe='Welcome to Microsoft Learn!';var mbe="We think you might like these",$U="What is the reason for your feedback?";var gbe='with AI on Microsoft Learn ';var Em="x.com",zx="{totalXP} XP";var fbe="Years";var Us="Yes",cl="Yes, delete";var hbe="Yes, remove",bbe="You";var _be="You don't have any collections yet.";var ybe="Your Account";var vbe="Your work was not completed correctly.",xbe="Too many attempts.",Tbe="You will not be notified of future Microsoft Learn related news if you unsubscribe.";var wbe="Get started with Azure",Sbe="Choose the Azure account that's right for you. Pay as you go or try Azure free for up to 30 days.",Cbe="Sign up.";var Am=window;var se=Am,Ku=Am.navigator,A=Am.document,Ebe=Am.localStorage,Bn=Am.history,oe=Am.location,b=se.msDocs,Te=new Promise(e=>{A.readyState==="loading"?A.addEventListener("DOMContentLoaded",()=>e()):e()});M();function Zt(){window.dispatchEvent(new CustomEvent("content-update"))}function Gt(e,t,n="",o="button-info",r="banner",s){let i=s||A.getElementById("disclaimer-holder");if(!i||A.getElementById("server-disclaimer-holder"))return null;let l=t&&t.url?d` ${t.text} `:"",c=t&&t.clickHandler?d` `:"",u=t?d`
${l||c}
`:"";return y(d` `,i),Zt(),i}var Qx="__event_type_id__",vOe=0,Ve=class{constructor(){this.callbacks={}}publish(t){let n=t.constructor[Qx];if(n===void 0||this.callbacks[n]===void 0)return;let o=this.callbacks[n].slice(0);for(let r of o)r(t)}subscribe(t,n){t.hasOwnProperty(Qx)||(t[Qx]=vOe++);let o=t[Qx];this.callbacks[o]===void 0&&(this.callbacks[o]=[]);let r=this.callbacks[o];return r.indexOf(n)===-1&&r.push(n),()=>this.unsubscribe(t,n)}unsubscribe(t,n){let o=t[Qx];if(o===void 0||this.callbacks[o]===void 0)return;let r=this.callbacks[o],s=r.indexOf(n);s!==-1&&r.splice(s,1)}dispose(){this.callbacks={}}},ct=new Ve;function ed(e,t,n){let o=()=>{},r=s=>{n(s),o()};return o=e.subscribe(t,r),o}var zh=class{constructor(t){this.url=t}},Cn=class{constructor(t,n,o){this.title=t;this.url=n;this.referrerUrl=o}};var pl;function ZU(){pl={};let e=A.head.querySelectorAll("meta[name],meta[property]");for(let t=0;t{let o=n.name||n.getAttribute("property");return t[o]=n.content,t},{})}function k(e){return pl===void 0&&ZU(),pl[e]===void 0?void 0:pl[e][0]}function es(e){return pl===void 0&&ZU(),pl[e]?pl[e].slice():[]}var Be=class{static get contentDir(){return b.data.contentDir}static get contentLocale(){return b.data.contentLocale}static get userDir(){return b.data.userDir}static get userLocale(){return b.data.userLocale}static get hasLocSideBySideTranslation(){return k("enable_loc_sxs")==="true"||k("bilingual_type")==="hover over"}static get translationType(){return k("ms.translationtype")?.toUpperCase()}static get machineTranslated(){return this.translationType?/^(?:MT|MTE|MTE75|MTE95)$/i.test(this.translationType):!1}},En=class{static get brand(){return b.data.brand}static get kind(){return k("page_kind")}static get type(){return k("page_type")}static get template(){return b.data.pageTemplate}};function me(e){let t,n=/\+/g,o=/([^&=]+)=?([^&]*)/g,r=i=>decodeURIComponent(i.replace(n," "));e===void 0&&(e=oe.search),e=e.substring(1);let s={};for(;t=o.exec(e);)s[r(t[1])]=r(t[2]);return s}function V(e,t=!1){let n=[];for(let o in e)e.hasOwnProperty(o)&&e[o]!==""&&e[o]!==null&&e[o]!==void 0&&(t&&Array.isArray(e[o])?e[o].forEach(r=>{n.push(encodeURIComponent(o)+"="+encodeURIComponent(r))}):n.push(encodeURIComponent(o)+"="+encodeURIComponent(e[o].toString())));return n.join("&")}function en(e,t,n){let o=me(),r=!1;for(let c in e)e.hasOwnProperty(c)&&o[c]!==String(e[c])&&(o[c]=e[c],r=!0);let s=oe.hash;if(typeof n=="string"&&(n=n.trim(),n.substr(0,1)!=="#"&&n!==""&&(n=`#${n}`),s!==n&&(s=n,r=!0)),!r)return;let i=V(o);i.length>0&&(i="?"+i);let a=`${oe.protocol}//${oe.host}${oe.pathname}${i}${s}`,l=Bn.state||{};t==="pushState"?Bn.pushState(l,A.title,a):t==="replaceState"?Bn.replaceState(l,A.title,a):oe.href=a}function eO(e){let t=A.createElement("a");/^https:\/\/|^http:\/\//.test(e)?t.href=e:/^\/\//.test(e)?t.href=oe.protocol+e:t.href=oe.origin+e;let n=t.pathname[0]==="/"?t.pathname:"/"+t.pathname,o=t.host.replace(/:443$|:80$/,""),r=t.hostname.replace(/:443$|:80$/,"");return{hash:t.hash,host:o,hostname:r,href:t.href,origin:`${t.protocol}//${o}`,pathname:n,protocol:t.protocol,search:t.search}}function td(e,t=2e3,n=";"){let o=encodeURIComponent(n).length,r=[],s,i;for(let a of e){let l=encodeURIComponent(a).length;if(l>t)throw new Error(`The encoded length of "${a}" (${l}) is greater than the max partition length (${t}).`);(!s||i+l>t)&&(s=[],r.push(s),i=0),s.push(a),i+=l+o}return r}function sr(e=new URL(oe.href)){let t=new URLSearchParams(e.search),n={};return t.forEach((o,r)=>n[r]=o),n}var ir=(()=>{let e;return t=>{if(!t&&e!==void 0)return e;let n=me().dataSource;return e=k("is_archived")==="true"||b.data.pageTemplate==="SearchPage"&&n==="previousVersions",e}})();function TOe(){return k("is_retired")==="true"}function wOe(){let e=location.pathname.split("/").filter(t=>t!=="");return e.length>=2&&e[1]==="previous-versions"}function SOe(){if(!ir())return;let e=Be.machineTranslated,t=e?zse:Bse,n=wOe(),o=e?n?Kse:Hse:n?Wse:Ose,r=k("current_version_url"),s=TOe()?t:o;if(k("vs_archive")==="true"){let a=Zhe,l=ebe;Gt(a,{url:`https://visualstudio.microsoft.com/downloads/?utm_medium=microsoft&utm_source=${location.host}&utm_campaign=button+cta&utm_content=download+vs2019`,text:l})}if(r)Gt(s,{url:r,text:Jse});else if(b.data.pageTemplate==="SearchPage"){let a=CF;Gt(sie,{url:location.origin,text:a})}else{let a=CF;Gt(s,{url:location.origin,text:a})}}function Vbe(){ir()&&SOe()}function COe(e){switch(e){case"learn.microsoft.com":return{supportLevel:"production",accessLevel:"online",reviewFeatures:!1,systemContent:!0,azurePortalHostname:"portal.azure.com",legacyHosting:!0,siteName:"learn"};case"review.learn.microsoft.com":return{supportLevel:"production",accessLevel:"online",reviewFeatures:!0,systemContent:!0,azurePortalHostname:"portal.azure.com",legacyHosting:!0,siteName:"learn"};case"dev.learn.microsoft.com":return{supportLevel:"development",accessLevel:"online",reviewFeatures:!0,systemContent:!0,azurePortalHostname:"portal.azure.com",legacyHosting:!0,siteName:"learn"};case"docs.azure.cn":return{supportLevel:"production",accessLevel:"online",reviewFeatures:!1,systemContent:!1,azurePortalHostname:"portal.azure.com",legacyHosting:!0,siteName:"mooncake"};case"review.docs.azure.cn":return{supportLevel:"production",accessLevel:"online",reviewFeatures:!0,systemContent:!1,azurePortalHostname:"portal.azure.com",legacyHosting:!0,siteName:"mooncake"};case"dev.docs.azure.cn":return{supportLevel:"development",accessLevel:"online",reviewFeatures:!0,systemContent:!1,azurePortalHostname:"portal.azure.com",legacyHosting:!1,siteName:"mooncake"};case"developer.microsoft.com":return{supportLevel:"production",accessLevel:"online",reviewFeatures:!1,systemContent:!1,azurePortalHostname:"portal.azure.com",legacyHosting:!1,siteName:"developer"};case"review.developer.microsoft.com":return{supportLevel:"production",accessLevel:"online",reviewFeatures:!0,systemContent:!1,azurePortalHostname:"portal.azure.com",legacyHosting:!1,siteName:"developer"};case"dev.developer.microsoft.com":return{supportLevel:"development",accessLevel:"online",reviewFeatures:!0,systemContent:!1,azurePortalHostname:"portal.azure.com",legacyHosting:!1,siteName:"developer"};case"localhost":return{supportLevel:"development",accessLevel:"local",reviewFeatures:!0,systemContent:!1,azurePortalHostname:"portal.azure.com",legacyHosting:!0,siteName:"learn"};case"learn-microsoft-com.local":case"local.learn.microsoft-int.com":case"developer-microsoft-com.local":case"docs-azure-cn.local":return{supportLevel:"development",accessLevel:"local",reviewFeatures:!0,systemContent:!0,azurePortalHostname:"portal.azure.com",legacyHosting:!1,siteName:"learn"};case"prdev.learn.microsoft.com":case"ppe.preview.learn.microsoft-int.com":case"prod.preview.learn.microsoft-int.com":case"mc.preview.learn.microsoft-int.com":return{supportLevel:"development",accessLevel:"online",reviewFeatures:!0,systemContent:!0,azurePortalHostname:"portal.azure.com",legacyHosting:!1,siteName:"learn"};default:return{supportLevel:"production",accessLevel:"online",reviewFeatures:!1,systemContent:!0,azurePortalHostname:"portal.azure.com",legacyHosting:!0,siteName:"learn"}}}var L=b?.environment?b.environment:COe(location.hostname);var J={setItem(e,t){try{se.localStorage.setItem(e,t)}catch{}},getItem(e){try{return se.localStorage.getItem(e)}catch{return null}},removeItem(e){try{se.localStorage.removeItem(e)}catch{}},clear(){try{se.localStorage.clear()}catch{}}},Ec={setItem(e,t){try{se.sessionStorage.setItem(e,t)}catch{}},getItem(e){try{return se.sessionStorage.getItem(e)}catch{return null}},removeItem(e){try{se.sessionStorage.removeItem(e)}catch{}}};var tO="docs.preview",nO=(new URLSearchParams(oe.search).get("preview")||"").split(",").map(e=>e.trim().toLowerCase()).reduce((e,t)=>(t!==""&&(e[t]=1),e),{}),Yx,EOe=()=>{let e;return J.getItem(tO)?e=JSON.parse(J.getItem(tO)):e={},e},AOe=(e,t)=>{Yx=EOe();let n=nO[e]===1,o=!isNaN(Yx[e]),r=n||o,s=nO[`x-${e}`];return n?console.log(`Preview ${e} via query string`):o&&console.log(`Preview ${e} via local storage`),t&&(r||s)&&(r&&(Yx[e]=Date.now()),s&&delete Yx[e],J.setItem(tO,JSON.stringify(Yx))),r},Ze=(e,t={require:!1,persist:!1})=>{let{require:n,persist:o}=t;return L.reviewFeatures&&Object.keys(nO).length===0&&!n?!0:(e=e.toLowerCase(),AOe(e,o))};function Gh(e=oe.search,t=L.reviewFeatures){let n="preview-date",o=new URLSearchParams(e),r=new Date(o.get(n)).getTime();return t&&!isNaN(r)&&r!==0?r:Date.now()}var kOe=["https://github.com/dotnet/docs/blob/live/docs/standard/design-guidelines/","https://github.com/dotnet/docs/blob/main/docs/standard/design-guidelines/","https://github.com/MicrosoftDocs/azure-compliance-pr/","https://github.com/MicrosoftDocs/OfficeDocs-SkypeForBusiness-pr/","https://github.com/MicrosoftDocs/OfficeDocs-Teams-PhoneRef-pr/"];function Qbe(){let e=k("original_content_git_url");return kOe.some(n=>e?.startsWith(n))}function Ybe(){let e=k("page_type"),t=k("page_kind"),n=k("is_admin")==="true",o=k("is_editor")==="true";return e==="learn"||e==="profile"||n||o||t==="learn"&&(e==="browse"||e==="home")}var S=IOe();function IOe(){return{aiSummary:b.data.pageTemplate==="Conceptual"&&b.data.userLocale?.startsWith("en"),arkoseEncrypt:L.reviewFeatures,apiBrowser:!0,applicationInsights:Ybe(),appliedSkills:Date.now()>=new Date("2023-10-25T09:00:00.000-07:00").getTime()||Ze("applied-skills",{require:!0})||Ze("applied-skills-share",{require:!0}),appliedSkillsManager:!0,appliedSkillsShare:Date.now()>=new Date("2023-10-25T09:00:00.000-07:00").getTime()||Ze("applied-skills-share",{require:!0}),assessmentBranches:L.supportLevel==="production"&&L.reviewFeatures,assessmentMergerLearnAssessment:Ze("assessment-merger-learn-assessment",{require:!0}),assessmentMergerPracticeAssessment:Ze("assessment-merger-practice-assessment",{require:!0}),assessmentMergerRenewalAssessment:Ze("assessment-merger-renewal-assessment",{require:!0}),assessments:L.siteName==="learn",assessmentsEmail:Ze("assessments-email",{require:!0}),azureNotebooks:!0,banner:!0,blogComments:!0,chatTutor:L.siteName==="learn",chromeless:!!b.data.context.chromeless,certificationAndCourseUpdates:Date.now()>=new Date("2023-10-25T09:00:00.000-07:00").getTime()||Ze("certification-and-course-updates",{require:!0}),certificationUpdates:Date.now()>=new Date("2023-10-06T17:00:00.000Z").getTime()||Ze("certification-updates",{require:!0}),codeSamples:!0,connectedExperiences:["Conceptual","FAQ","Question"].includes(b.data.pageTemplate),contentBrowse:!0,cookieConsent:!0,courseScheduling:!0,disabledAppliedSkills:!0,disableSiteSearchSuggestions:!0,enableDeepSearch:(L.supportLevel==="development"||L.supportLevel==="production"&&L.reviewFeatures===!1)&&b.data.userLocale==="en-us"&&k("page_type")==="search"&&ir()===!1,enableNewSiteSearch:k("page_type")==="search"&&ir()===!1,enableModernSearchAnswer:(L.supportLevel==="development"||L.supportLevel==="production"&&L.reviewFeatures===!1)&&b.data.userLocale==="en-us"&&k("page_type")==="search"&&ir()===!1,enableSiteSearchExperiment:L.siteName==="learn"&&L.supportLevel==="production",feedbackReport:b.data.showFeedbackReport,formAdvisor:b.data.userLocale?.startsWith("en"),formAdvisorCredential:Ze("form-advisor-credential",{require:!0}),gamification:!0,gitContributors:!0,graphOriginUpdate:Ze("graph-origin-update",{require:!0}),hubUpdate:b.data.pageTemplate==="Hub"&&Ze("hub-update",{require:!0}),inlineEdit:Ze("inline-edit",{require:!0}),inlineFeedback:!0,interactivity:!0,labsOnDemand:!0,learnAssessments:!0,skipAssessmentDualWrite:Ze("assessment-v0",{require:!0}),learnEventRebrand:Ze("learn-rebrand",{require:!0}),learningPathIlt:!0,learningPathIltSearch:Ze("learning-path-ilt-search",{require:!0}),marketing:!0,mecMigration:!0,moduleUnitFeedbackReport:!0,oneCustomerVoiceFeedback:!0,oneDS:L.accessLevel!=="local",openSourceFeedback:["Conceptual","Reference","Architecture","FAQ"].includes(b.data.pageTemplate)&&b.data.feedbackSystem==="OpenSource"&&!!b.data.openSourceFeedbackIssueUrl,pageRecommendations:L.siteName==="learn"&&b.data.hasRecommendations&&(k("page_type")==="conceptual"||["FAQ","Architecture","Sample"].includes(b.data.pageTemplate))&&!["reference","managed-reference","ui-reference","language-reference","error-reference","reference-internal","hub-page","landing-page","archived"].some(e=>e===k("ms.topic")?.toLowerCase())&&k("ROBOTS")!=="NOINDEX,NOFOLLOW"&&!Qbe(),pdfDownload:L.siteName==="learn",permissionedContent:L.reviewFeatures&&Ze("permissioned-content"),personalChallenge:Date.now()>=new Date("2024-05-28T19:00:00.000Z").getTime()||Ze("personal-challenge",{require:!0}),practiceAssessmentsAllowParam:L.reviewFeatures&&(k("page_kind")==="practiceAssessment"||k("page_kind")==="practiceAssessmentReport"),previewCredentialsL1:Date.now()>=new Date("2023-09-18T18:00:00.000-07:00").getTime()||Ze("credentials-L1",{require:!0}),previewOneStreamPlayerNextVersion:Ze("one-stream-player-next-version",{require:!0}),previewRailEventCard:Ze("rail-event-card",{require:!0}),previewQnaAiAdmin:Ze("qna-ai-admin",{require:!0}),previewQnaAiDemo:Ze("qna-ai-demo",{require:!0}),qna:!0,qnaCaptchaBypass:Ze("qna-captcha-bypass",{require:!0}),qnaStackResults:Ze("qna-stack-results",{require:!0}),quickWins:Ze("quick-wins",{require:!0}),referenceRightRailH3:k("in_right_rail")==="h2h3",referenceRightRailSticky:["Reference"].includes(b.data.pageTemplate),reportWebVitalsAlways:Ze("report-web-vitals",{require:!0}),rightRailSticky:["Conceptual","FAQ","HowTo","Reference","Architecture"].includes(b.data.pageTemplate),rss:!0,shareLink:!0,siteSearchProducts:Ze("site-search-products",{require:!0}),skipToCompletedModal:Ze("completed-modal",{require:!0}),stayCurrentAllowParam:L.reviewFeatures&&(k("page_kind")==="certification"||k("page_kind")==="certificationrenewal"||k("page_kind")==="certificationRenewalAssessment"||k("page_kind")==="certificationRenewalAssessmentReport"),surveyPopover:L.siteName==="learn"||L.accessLevel==="local",systemDrivenAchievement:!0,temporaryClientSideEventBanners:L.siteName==="learn"||L.siteName==="developer",thirdPartyDataSharingConsentFlag:!0,tocSearch:b.data.brand!=="mooncake",translationFeedback:b.data.userLocale!=="en-us"&&k("ocv-translation-feedback")==="true"&&Be.machineTranslated,trainingSkills:b.data.userLocale?.startsWith("en"),tenantManager:Ze("tenant-manager",{require:!0}),userFeedback:Ze("user-feedback",{require:!0}),planGenV2:Ze("plan-gen-v2",{require:!0}),userAnalyticsMocks:Ze("user-analytics-mocks",{require:!0}),userServices:!0,usingStandardFeedback:b.data.standardFeedback||b.data.pageTemplate==="ModuleUnit"||b.data.pageTemplate==="Module",unifiedSearchResults:Ze("unified-search-results",{require:!0})&&k("page_type")==="search"&&ir()===!1,supportsSharing:k("page_type")!=="learn"&&!(b.data.contentLocale==="en-us"&&b.data.brand==="mooncake")}}var POe=/([a-z]\.)([a-z])/gi,LOe=/([a-z])([A-Z]+[a-z])/g,ROe=/(\w\/)(\S?)/gi,MOe="",oO=`$1${MOe}$2`,DOe=/\u200B/g;function jx(e,t=3){return!e||!e.length||t===0||(t&2&&(e=e.replace(POe,oO)),t&1&&(e=e.replace(LOe,oO)),t&4&&(e=e.replace(ROe,oO))),e}function jbe(e){return e.replace(DOe,"")}var $Oe={"&":"&","<":"<",">":">",'"':""","'":"'"},Wbe=/[&<>"']/g,NOe=RegExp(Wbe.source);function Mt(e){return e&&NOe.test(e)?e.replace(Wbe,t=>$Oe[t]):e}function Vh(e){let t=e.cloneNode(!0);t.hidden=!0,document.body.appendChild(t);function n(o){o!==null&&(n(o.nextElementSibling),window.getComputedStyle(o,null).getPropertyValue("display")==="none"?o.parentElement.removeChild(o):n(o.firstElementChild))}return n(t.firstElementChild),document.body.removeChild(t),t.textContent}function aa(e,t={year:"numeric",month:"short",day:"numeric"},n=b.data.userLocale){return new Date(e).toLocaleDateString(n,t).replace(/\u200E/g,"")}function Kbe(e,t={hour:"numeric",minute:"numeric"},n=b.data.userLocale){return new Date(e).toLocaleTimeString(n,t).replace(/\u200E/g,"")}function rO(e){return decodeURIComponent(atob(FOe(e).replace(/_/g,"/").replace(/-/g,"+")).split("").map(t=>`%${("00"+t.charCodeAt(0).toString(16)).slice(-2)}`).join(""))}function FOe(e){switch(e.length%4){case 0:return e;case 2:return e+"==";case 3:return e+"=";default:throw new Error("Illegal base64url string!")}}var sO="id_token",jk="docsAuthToken",Jbe="account_linking_token",Wx=class{constructor({detail:t}){this.message="invalid token",this.detail=t}},la=class{constructor({detail:t}){this.message="invalid claim",this.detail=t}},Yk=class{constructor({detail:t}){this.message="malformed claim",this.detail=t}};function Wk(e){J.setItem(sO,e)}function nd(){return J.getItem(sO)}function Kk(){J.removeItem(sO)}function Jk(e){J.setItem(jk,e)}function ar(){return J.getItem(jk)}function Xk(){J.removeItem(jk)}function ml(){return J.getItem(Jbe)}function uo(){J.removeItem(Jbe)}function od(e,t={nbfClockSkewInMilliseconds:2500}){try{if(!(e&&e.length&&e.indexOf(".")>-1))throw new Wx({detail:"Invalid JWT - no separators found."});let o=e.split("."),r=JSON.parse(rO(o[1]));if(!r)throw new Wx({detail:"Invalid JWT - payload is missing."});if(r.hasOwnProperty("nbf")){let s=r.nbf;if(isNaN(s))throw new Yk({detail:"Invalid NBF claim - claim is malformed."});let i=new Date(0);i.setUTCSeconds(r.nbf);let a=new Date(Date.now()+t.nbfClockSkewInMilliseconds);if(i>a)throw new la({detail:"Invalid NBF claim - token not yet valid."})}if(r.hasOwnProperty("exp")){let s=r.exp;if(isNaN(s))throw new Yk({detail:"Invalid EXP claim - claim is malformed."});let i=new Date(0);i.setUTCSeconds(r.exp);let a=new Date(Date.now());if(i<=a)throw new la({detail:"Invalid EXP claim - token has expired."})}return r}finally{}}var Zk=e=>{if(!(e&&e.length&&e.indexOf(".")>-1))throw new Wx({detail:"Invalid JWT - no separators found."});let n=e.split(".");return JSON.parse(rO(n[1]))};var eI=`data:image/svg+xml;base64,${btoa('')}`,tI=`data:image/svg+xml;base64,${btoa('')}`;var UOe=(e,t)=>{e||(e=Xp);let n=t.replace(/\D/g,""),o=parseInt(n.slice(0,2))*.01,r=parseInt(n.slice(2,4))*.01,s=o*320,i=r*100,a=Math.floor(o*31+10),l=`hsl(${s}, ${i}%, ${a}%)`,c=(e.match(/\b(\w)/g)||["A"]).join("").substring(0,2).toUpperCase();return{backgroundColor:l,initials:c}},yr=(e,t)=>{let{backgroundColor:n,initials:o}=UOe(e,t);return`data:image/svg+xml,${` %3Csvg xmlns='http://www.w3.org/2000/svg' height='64' class='font-weight-bold' style='font: 600 ${64/2.125}px "SegoeUI", Arial' width='64'%3E%3Ccircle fill='${n}' cx='32' cy='32' r='32' /%3E%3Ctext x='50%25' y='55%25' dominant-baseline='middle' text-anchor='middle' fill='%23FFF' %3E${o}%3C/text%3E%3C/svg%3E`}`},xn=class{},qo="72f988bf-86f1-41af-91ab-2d7cd011db47",nI="9188040d-6c67-4c5b-b112-36a304b66dad",Xbe="1a092f68-5741-455a-8057-2acdb897a850",Zbe="604c1504-c6a3-4080-81aa-b33091104187",e_e="ada63eea-fd1c-4d79-b40a-41d1380df7a5",iO={[qo]:"microsoft",[nI]:"standard"},aO=new Date("2019-11-21T00:00:00.000Z"),An=(e,t)=>Jx(e,t).toString(),Qh=class extends Ve{constructor(){super();this.idTokenEmail="";this.legalName=null;this.setAnonymous()}setAnonymous(){this.isAuthenticated!==!1&&(this.userId="00000000-0000-0000-0000-000000000000",this.upn="anonymous@anonymous.com",this.email="anonymous@anonymous.com",this.idTokenEmail="anonymous@anonymous.com",this.userName="Anonymous",this.displayName="Anonymous",this.locale="en-us",this.country=null,this.contactPointTopicSetting=null,this.authenticationMode="AAD",this.authenticationModes=[],this.isAuthenticated=!1,this.avatarUrl=yr(this.displayName,this.userId),this.avatarThumbnailUrl=yr(this.displayName,this.userId),this.profileUrl="#",this.createdOn=null,this.userType="standard",this.acceptedPrivacyNotice=aO,this.isAvatarTakenDown=!1,this.followerCount=0,this.followingCount=0,this.answersAccepted=0,this.affiliations=[],this.reputationPoints=1,this.qnaUserId=0,this.interests=null,this.isPrivate=!1,this.tenantId=null,this.credentialId=null,this.source=null,this.sharingId=null,this.companionPreferences=void 0,this.legalName=null,this.publish(new xn))}mapIdTokenToProfile(n){this.email=n.email||n.preferred_username,this.upn=n.preferred_username,this.userName=n.name,this.displayName=n.name,this.authenticationMode=iO[n.tid]==="standard"?"MSA":"AAD",this.userType=iO[n.tid]||"aad",this.isAuthenticated=!0,this.country="",this.credentialId=this.authenticationMode==="AAD"?n.oid:n.puid,this.authenticationModes=[{id:this.credentialId,type:this.authenticationMode,tenantId:n.tid,upn:this.upn}],this.publish(new xn)}readUserProfile(n){this.userId=n.userId,this.email=n.email||"",this.userName=n.userName,this.displayName=n.displayName||n.userName||n.email,this.locale=n.locale,this.country=n.country,this.contactPointTopicSetting=n.contactPointTopicSetting,this.isAuthenticated=!0,this.avatarUrl=n.avatarUrl||yr(this.displayName,this.userId),this.avatarThumbnailUrl=n.avatarThumbnailUrl||n.avatarUrl||yr(this.displayName,this.userId),this.profileUrl=An(n.userName),this.authenticationModes=n.authenticationModes,this.userType=OOe(n.authenticationModes),this.acceptedPrivacyNotice=new Date(n.acceptedPrivacyNotice),this.isAvatarTakenDown=n.isAvatarTakenDown,this.followingCount=n.followingCount,this.followerCount=n.followerCount,this.answersAccepted=n.answersAccepted,this.affiliations=n.affiliations,this.reputationPoints=n.reputationPoints,this.createdOn=new Date(n.createdOn),this.qnaUserId=n.qnaUserId,this.interests=n.interests,this.isPrivate=n.isPrivate,this.source=n.source,this.certificationSettings=n.certificationSettings,this.transcriptSettings=n.transcriptSettings,this.qnaEmailPreferences=n.qnaEmailPreferences,this.companionPreferences=n.companionPreferences,this.isQnaModerator=n.isQnaModerator,this.sharingId=n.sharingId,this.isChallengeAdmin=n.isChallengeAdmin,this.legalName=n.legalName||null,this.publish(new xn)}readUserFromToken(n){this.isAuthenticated=!0,this.instructor=n.instructor,this.isChallengeAdmin=n.is_challenge_admin,this.isMecUser=n.is_mec_user,this.userId=n.sub,this.upn=n.cred_upn,this.tenantId=n.tid,this.credentialId=n.cred_id,this.userName=n.preferred_username,this.displayName=n.name||n.preferred_username||n.email,this.avatarUrl=n.picture||yr(this.displayName,this.userId),this.avatarThumbnailUrl=n.thumbnail||n.picture||yr(this.displayName,this.userId),this.authenticationMode=n.cred_type,this.locale=n.locale,this.acceptedPrivacyNotice=new Date(n.accepted_privacy_notice),this.userType=iO[n.tid]||"aad",this.profileUrl=An(n.preferred_username),this.email=n.email||"",this.idTokenEmail=n.id_token_email||"",this.sharingId=n.sharing_id||"",this.publish(new xn)}whenAuthenticated(){return v.isAuthenticated?Promise.resolve():new Promise(n=>this.subscribe(xn,()=>{this.isAuthenticated&&n()}))}},v=new Qh,Kx=()=>v.email&&v.email.length>0&&v.email!=="anonymous@anonymous.com";function oI(e,t){e&&Array.from(e.querySelectorAll("[data-profile-property]")).forEach(n=>{let o=n.getAttribute("data-profile-property"),r=t,s=t.profileUrl;n instanceof HTMLImageElement&&o==="avatarUrl"?(n.onerror=()=>n.src=yr(t.displayName,t.userId),n.src=r[o]):n instanceof HTMLImageElement&&o==="avatarThumbnailUrl"?(n.onerror=()=>n.src=t.avatarUrl||yr(t.displayName,t.userId),n.src=r[o]):n instanceof HTMLAnchorElement&&o==="profileUrl"?(n.href=An("me","activity"),s==="#"&&(n.href=new URL("./register",gl()).toString())):n instanceof HTMLAnchorElement&&o==="bookmarksUrl"?(n.href=s+(L.reviewFeatures?"§ion=collections&detail=bookmarks":"collections/bookmarks"),s==="#"&&n.parentElement.remove()):n instanceof HTMLAnchorElement&&o==="collectionsUrl"?(n.href=s+(L.reviewFeatures?"§ion=collections":"collections"),s==="#"&&n.parentElement.remove()):n instanceof HTMLAnchorElement&&o==="settingsUrl"?n.href=An("me","settings"):n instanceof HTMLInputElement?n.type!=="file"&&(n.value=r[o]):o==="createdOn"?n.textContent=aa(r[o]):n.textContent=r[o]})}async function Yh(e){let t={displayName:"",userName:"",email:v.email,locale:v.locale,country:v.country,contactPointTopicSetting:v.contactPointTopicSetting,source:null,isPrivate:v.isPrivate,interests:v.interests,certificationSettings:v.certificationSettings,transcriptSettings:v.transcriptSettings,qnaEmailPreferences:v.qnaEmailPreferences,isQnaModerator:v.isQnaModerator};if(!e)return t;for(let n of Array.from(e.querySelectorAll("[data-profile-property]"))){let o=n.getAttribute("data-profile-property");n instanceof HTMLInputElement?t[o]=n.value:t[o]=n.textContent}return t}function Jx(e,t){let n=gl(),o=new URLSearchParams(oe.search);k("page_type")==="profile"&&(n.hash=oe.hash),L.reviewFeatures&&(o.has("branch")&&n.searchParams.set("branch",o.get("branch")),o.has("themebranch")&&n.searchParams.set("themebranch",o.get("themebranch")),o.has("preview")&&n.searchParams.set("preview",o.get("preview")));let r=`./${e}/`;t&&(r+=`${t}/`);let s=new URL(r,n);return s.hash=n.hash,s.search=n.search,n=s,n}function gl(e=b.data.userLocale){let t=new URL(`${e&&e.length?`/${e}`:""}/`,oe.origin);return new URL("./users/",t)}function OOe(e){let t="standard";return e&&e.length&&(e.find(n=>n.tenantId===qo)!==void 0?t="microsoft":e.find(n=>n.type==="AAD")!==void 0&&(t="aad")),t}function rI(){let e=ml();if(!e)return null;try{let t=od(e),n=new Qh;return n.mapIdTokenToProfile(t),n}catch{return null}}function ee(e){return e.status===401&&v.setAnonymous(),e}var qOe={"https://review.learn.microsoft.com":{cloudShell:"https://ux.console.azure.com",ocvFeedback:"https://petrol-int.office.microsoft.com/v1/feedback",lists:"https://review.learn.microsoft.com/api/lists",achievements:"https://review.learn.microsoft.com/api/achievements",apiBrowser:"https://review.learn.microsoft.com/api/apibrowser"},"https://dev.learn.microsoft.com":{cloudShell:"https://ux-rc.console.azure.com",ocvFeedback:"https://petrol-int.office.microsoft.com/v1/feedback"},"https://developer.microsoft.com":{siteSearch:"https://learn.microsoft.com/api/search"},"https://review.developer.microsoft.com":{siteSearch:"https://learn.microsoft.com/api/search"},"https://dev.developer.microsoft.com":{siteSearch:"https://learn.microsoft.com/api/search"},"https://localhost:3000":{cloudShell:"https://ux.console.azure.com"},"http://localhost:3000":{cloudShell:"https://ux.console.azure.com"},"https://ppe.preview.learn.microsoft-int.com":{pdf:"https://review.learn.microsoft.com/pdf"}},HOe={"https://review.learn.microsoft.com":{stayCurrent:"https://review.learn.microsoft.com/api/certification",skillAssessment:"https://review.learn.microsoft.com/api/skillassessment"}};function BOe(e,t){let n=e,o=t.systemContent?e:n,r=t.supportLevel==="production"?"https://api.ilt.learningcredentials.microsoft.com":"https://api.dev.ilt.learningcredentials.microsoft.com",s=qOe[e]||{},i=HOe[e]||{};return{admin:`${n}/api/admin`,selfAssessmentsAdmin:zOe(),apiBrowser:`${n}/api/apibrowser`,assessments:`${o}/api/assessments`,assessmentsAuthoring:`${o}/api/assessments/authoring`,learnAssessment:`${o}/api/assessment`,assessmentsBranch:"https://review.learn.microsoft.com/api/assessments/branches",attachment:`${n}/api/attachments`,azureManagement:"https://management.azure.com",auth:{docs:`${n}/api/profiles/auth`,identityPlatform:"https://login.microsoftonline.com/common/oauth2/v2.0/authorize",signOut:`${n}/api/profiles/signout`,partner:`${n}/api/profiles/partnerAuth/authorize`},blogs:`${n}/api/archives/blogs/comments`,browse:{certification:`${n}/api/contentbrowser/search/certifications`,credential:`${n}/api/contentbrowser/search/credentials`,course:`${n}/api/contentbrowser/search/certifications/courses`,events:`${n}/api/contentbrowser/search/events`,learn:`${n}/api/contentbrowser/search`,learnHome:`${n}/api/contentbrowser/home/learn`,learnHomePersonalized:`${n}/api/contentbrowser/home/personalized/learn`,sample:`${n}/api/contentbrowser/search/samples`,lifecycle:`${n}/api/contentbrowser/search/lifecycles`,architecture:`${n}/api/contentbrowser/search/architectures`,windowsSafeguards:`${n}/api/contentbrowser/search/windowsSafeguards`,shows:`${n}/api/contentbrowser/search/shows`},buildAuthAdmin:`${n}/api/build`,prDevBuildAuthAdmin:"https://docs-buildauth-locdev-wus.azurewebsites.net",certification:{appointments:`${n}/api/certification/appointments`,certification:`${n}/api/certification`,certifications:`${n}/api/certification/certifications`,dashboardSummary:`${n}/api/certification/dashboardsummary`,exams:`${n}/api/certification/exams`,linkedAccount:`${n}/api/certification/linkedAccount`,linkedMcId:`${n}/api/certification/linkedMcId`,printableCertification:`${n}/api/certification/printableCertification`,pvuetransfer:`${n}/api/certification/pvuetransfer`,renewalAssessments:`${n}/api/certification/scoredsnapshots`},cloudShell:"https://ux.console.azure.com",contentNav:e,contentOrigin:o,contentAuthorizationService:{setCasTokenCookie:`${n}/api/cas/user/token`,deleteCasTokenCookie:`${n}/api/cas/user/signout`},agentService:{stream:`${n}/api/agentservice/completion/stream`,conversations:`${n}/api/companion/conversations`},copilot:{chatAssistant:`${n}/api/copilot/chat/assistant?responseFormat=Markdown&preview=citations`,summarize:`${n}/api/copilot/content/summarize`,chatPlanGeneration:`${n}/api/copilot/chat/plangeneration`},encryptCaptchaPayload:`${n}/api/resources/captcha/encrypt`,forumSearch:{azureKbQuestionSuggestions:`${n}/api/questions/azurekb/searchMSDNThreads/v1.0`},achievements:`${n}/api/achievements`,github:"https://api.github.com",githubOAuth:"https://github.com/login/oauth/authorize",labOnDemand:`${n}/api/resources/labondemand`,learn:{achievementsByUids:`${n}/api/hierarchy/achievements`,batchItemSummaries:`${n}/api/hierarchy/items`,certification:`${n}/api/hierarchy/certification`,challenge:`${n}/api/challenges`,episode:`${n}/api/video/public/v1/entries`,exams:`${n}/api/hierarchy/exams`,iltCourses:{scheduling:`${r}/ilt-scheduling/offerings`,location:`${r}/ilt-scheduling/offerings/location`,languages:`${r}/ilt-scheduling/languages`,duration:`${r}/ilt-scheduling/duration`},learningPath:`${n}/api/hierarchy/paths`,module:`${n}/api/hierarchy/modules`,unit:`${n}/api/hierarchy/units`,progress:{batchUnit:`${n}/api/progress/units`,learningPathPass:`${n}/api/progress/learningPathPass`,moduleAssessment:`${n}/api/progress/moduleAssessment`,unit:`${n}/api/progress/units`,user:`${n}/api/progress`},show:{episodes:`${n}/api/hierarchy/shows`,videos:`${n}/api/video/public/v1/entries/batch`},skillAssessment:`${n}/api/skillassessment`,stayCurrent:`${n}/api/certification`,...i},lists:`${n}/api/lists`,metadata:{platformId:`${n}/api/mms/document/platformId`,metadata:`${n}/api/mms/document/`,schema:`${n}/api/mms/contentTypes/`},monikers:`${o}/_api/familyTrees`,nextSteps:`${n}/api/nextsteps`,ocvFeedback:"https://petrol.office.microsoft.com/v1/feedback",pdf:`${e}/pdf`,privacy:{cookieConsentDeleteService:`${e}/api/privacy/cookieDelete`,delete:`${o}/api/privacy/delete`,partialDelete:`${o}/api/privacy/partialdelete`,export:`${o}/api/privacy/export`},profile:{acknowledgeMergeStatus:`${n}/api/profiles/merge/acknowledge`,acknowledgePrivacyNotice:`${n}/api/profiles/me/acknowledgePrivacyNotice`,avatar:`${n}/api/profiles/me/avatar`,avert:`${n}/api/profiles/avert`,certification:`${n}/api/profiles/certification/certifications`,credential:{private:`${n}/api/credentials/credential`,public:`${n}/api/credentials/{credentialId}`,list:`${n}/api/credentials/me`},challenge:`${n}/api/profiles/challenge`,groups:{users:`${n}/api/profiles/groups/{groupId}/users`,manage:`${n}/api/profiles/groups/{groupId}/users/{userId}`},deleteMecUserData:`${n}/api/profiles/mec/delete`,follow:`${n}/api/profiles/follow/{type}/{id}`,unfollow:`${n}/api/profiles/unfollow/{type}/{id}`,follows:`${n}/api/profiles/follows`,followsIds:`${n}/api/profiles/follows/ids`,userFollows:`${n}/api/profiles/userfollows/{userId}`,link:`${n}/api/profiles/link`,me:`${n}/api/profiles/me`,merge:`${n}/api/profiles/merge`,mergeDetails:`${n}/api/profiles/merge/details`,user:`${n}/api/profiles/{username}`,userRetryMerge:`${n}/api/profiles/merge/userretry`,userCancelMerge:`${n}/api/profiles/merge/usercancel`,migrateMecUserData:`${n}/api/profiles/mec/migrate`,profiles:`${n}/api/profiles`,qnaFollowing:`${n}/api/qna/following`,reporting:`${n}/api/profiles/reporting`,validateMerge:`${n}/api/profiles/merge/validate`,transcript:{private:`${n}/api/profiles/transcript/me`,public:`${n}/api/profiles/transcript/share`,settings:{publicLink:`${n}/api/profiles/transcript/share`,transcript:`${n}/api/profiles/transcript/me/settings`}},activeTakedowns:`${n}/api/profiles/takedown/active`,reportStatus:`${n}/api/profiles/report/status/{userId}`,reportConcern:`${n}/api/profiles/report/concern`,contributorEngagement:`${n}/api/profiles/contributor/engagement`},qna:{communication:{getToken:`${n}/api/questions/user/communication_token`,createJoinThread:`${n}/api/questions/admin/private_conversation/{questionId}`,render:`${n}/api/questions/markdown-to-html`,chatMessage:`${t_e()}/chat/threads/{communicationChatThreadId}/messages/{messageId}?api-version=2023-11-07`,chatThread:`${t_e()}/chat/threads/{communicationChatThreadId}/messages?api-version=2023-11-07`},analyticsSummary:`${n}/api/questions/dashboard/metrics`,analyticsQuestions:`${n}/api/questions/answered`,questionAnswerCommentVote:`${n}/api/questions/answers/comments/{commentId}/vote`,questionCommentVote:`${n}/api/questions/comments/{commentId}/vote`,questionDetails:`${n}/api/questions/{questionId}/details`,questionAiAnswer:{generate:`${n}/api/questions/{questionId}/aiAnswer`,reject:`${n}/api/questions/aiAnswers/{answerId}/delete`},questionAgentAnswer:`${n}/api/questions/agentanswer`,questionAutoTagging:{generate:`${n}/api/questions/autotagging`},threadHistory:`${n}/api/questions/admin/questions/{questionId}/history`,questionVote:`${n}/api/questions/{questionId}/vote`,rateAnswerHelpful:`${n}/api/questions/answers/{answerId}/helpful/yes?_method=PUT`,rateAnswerUnhelpful:`${n}/api/questions/answers/{answerId}/helpful/no?_method=PUT`,rateAnswerReset:`${n}/api/questions/answers/{answerId}/helpful/notSet?_method=PUT`,suspended:`${n}/api/questions/users/suspended`,tags:`${n}/api/questions/tags/autocomplete`,tagsNextLevelV2:`${n}/api/questions/tags/nextlevelv2`,admin:{suspend:`${n}/api/questions/admin/users/{userId}/suspend`,unsuspend:`${n}/api/questions/admin/users/{userId}/unsuspend`,suspended:`${n}/api/questions/admin/users/{userId}/suspended`,blockedcontent:`${n}/api/questions/admin/blockedcontent`,updateBlockedContent:`${n}/api/questions/admin/blockedcontent/{contentId}`,deleteAllUserContent:`${n}/api/questions/admin/users/{userId}/deleteAllUserContent`}},qnaSettings:`${n}/en-us/answers/users/{qnaId}/{username}/preferences.html`,recommendations:`${n}/api/recommendations`,sandbox:`${n}/api/resources/sandbox`,sandboxManager:`${n}/api/resources/admin`,siteFeedback:`${n}/api/feedback/report`,siteSearch:`${e}/api/search`,searchAnswer:{user:`${n}/api/aisearch/answers/user/html`,guest:`${n}/api/aisearch/answers/guest/html`},deepSearch:`${n}/api/aisearch/deepsearch/stream`,taxonomy:`${n}/api/taxonomies`,tenantManager:`${n}/api/resources/tenant`,uhf:{consentBanner:`${n}/api/GetConsentBanner`},video:`${n}/api/admin`,...s}}function zOe(){return"https://docs-rcs-pubdev.azurewebsites.net"}function t_e(){return L.supportLevel==="production"?"https://docsquestions-acs-public.unitedstates.communication.azure.com":"https://docsquestions-acs-pubdev.unitedstates.communication.azure.com"}var D=BOe(location.origin,L);var GOe=30*1e3,R=async(e,t,n=GOe,o)=>{t=t||{};let r=new AbortController,s=()=>r.abort();o?.addEventListener("abort",s),t.signal=r.signal;try{let i=setTimeout(()=>r.abort(),n),a=await fetch(e,t);return clearTimeout(i),a}finally{o?.removeEventListener("abort",s)}};function N(e,t,n=!0,o=!0){t=t||{},t.mode="cors",t.credentials!=="omit"&&(t.credentials="same-origin");let r=new Request(e,t);return n&&ar()&&r.headers.set("Authorization",`Bearer ${ar()}`),(r.method==="PUT"||r.method==="POST")&&o&&r.headers.set("Content-Type","applicationhttps://www.microsoft.com/json"),r}var Xx=class{};function sI(e){let t={method:"GET"},n=N(D.auth.docs,t,!1);return n.headers.set("Authorization",`Bearer ${e}`),R(n).then(o=>{if(o.ok)return o.text();throw o.status===404||o.status===204?new Xx:o.status===401?new la({detail:"token not accepted"}):new Error(`get docs auth token failed (${o.status} ${o.statusText})`)})}function ca(e,t=!0){try{if(e.ok&&e.headers.has("Authorization")){let n=e.headers.get("Authorization");if(n){let o=od(n);Jk(n),t&&v.readUserFromToken(o)}}return e}catch{return e}}function St(e=["api-branch","branch"],t=""){if(L.accessLevel==="local")return"main";if(L.reviewFeatures===!0){let n=me(oe.search);return e.reduce((o,r)=>o||n[r],"")||t}return null}var pe=class extends Error{constructor(t,n){super(`Unexpected response status ${t?.status??""}: ${t?.statusText??""} from "${t?.url??""} with error type of ${n}".`),this.status=t?.status,this.statusText=t?.statusText,this.url=t?.url,this.type=n,this.response=t,L.reviewFeatures&&console.error(this)}};async function Dm(e){let t;try{t=e.response.json?(await e.response.json()).errorCode:null}catch{t=null}return t}function ts(e){if(!Array.isArray(e))throw new pe({statusText:"Value must be an array"},"InvalidTypeError");return e}function cO(e){if(typeof e!="boolean")throw new pe({statusText:"Value must be a boolean"},"InvalidTypeError");return e}function Zx(e){let t=new Date(e);if(isNaN(t.getTime()))throw new pe({statusText:`Invalid date format: ${e}`},"InvalidTypeError");return t}function po(e){if(typeof e!="number")throw new pe({statusText:"Value must be a number"},"InvalidTypeError");return e}function Xn(e,t){if(typeof e!="string")throw new pe({statusText:"Value must be a string"},"InvalidTypeError");if(t&&!t.includes(e))throw new pe({statusText:`Value must be one of: ${t.join(", ")}`},"InvalidTypeError");return e}function Dt(e,t){let n=t.filter(o=>e[o]===null||e[o]===void 0);if(n.length>0)throw new pe({statusText:`Missing required fields in object: ${n.join(", ")}`},"MissingRequiredApiAttribute");return e}function lO(e,t){throw new pe({statusText:`Type Conversion Error: converting type ${typeof e} to ${t} failed for value ${e.toString()}`},"TypeConversionError")}function vr(e){let t;try{t=e.toString()}catch{lO(e,"string")}return t}function Bs(e){let t;try{t=parseInt(e)}catch{lO(e,"number")}return isNaN(t)&&lO(e,"number"),t}function zs(e,t,n=!0,o="applicationhttps://www.microsoft.com/json",r="",s=!0){t=t||{},t.mode="cors",t.credentials="same-origin";let i=new Request(e,t);return n&&i.headers.set("Authorization",`Bearer ${r||ar()}`),(i.method==="PUT"||i.method==="POST")&&s&&o!=="multipart/form-data"&&i.headers.set("Content-Type",o),i}async function ns(e){let t=`${D.profile.profiles}/${e}`,o=await R(zs(t,{method:"GET"},!1));return ee(o),o.ok?await o.json():(o.status===204,null)}async function rd(e){try{let t=await fetch(zs(D.profile.me,{method:"GET"},!0,"applicationhttps://www.microsoft.com/json",e));return t.ok&&t.status!==204?await t.json():null}catch{return null}}async function sd(e,t){let n=`${D.profile.profiles}/${e}`,r={credentials:"include",method:"PUT",body:JSON.stringify(t)},s=await R(zs(n,r));if(ee(s),s.ok){ca(s,!1);let i=await s.json();return v.readUserProfile(i),{hasError:!1,profile:i}}else if(s.status===400){let i=await s.json();return{hasError:!0,message:i.message,errors:i.errorCode.split(",")}}return{hasError:!0,message:s.statusText,errors:["somethingWentWrong"]}}async function n_e(){let e=D.privacy.delete,n=await R(zs(e,{credentials:"include",method:"POST"},!0,"","",!1));return ee(n),n.ok}async function o_e(e){let t=D.privacy.partialDelete,o={method:"POST",body:JSON.stringify(e)},r=await R(zs(t,o));return ee(r),r.ok}async function r_e(){let e=D.profile.acknowledgePrivacyNotice,n=await R(zs(e,{method:"POST"}));if(ee(n),ca(n,!1),!n.ok)throw new Error(`Unexpected response status ${n.status} for ${e}`)}async function s_e(e){let t=D.profile.link,n={method:"POST",body:`"${e}"`},o=await R(zs(t,n));if(ee(o),o.ok)return ca(o,!1),{hasError:!1,profile:await o.json()};if(o.status===405){let r=await o.json(),s=["accountLimitReached"];return r.errorCode==="ProfileMergeRunning"&&s.unshift("profileMergeRunning"),{hasError:!0,message:o.statusText,errors:s}}else{if(o.status===409)return{hasError:!0,message:o.statusText,errors:["accountAlreadyRegistered"]};throw new Error(`Unexpected response status ${o.status} for ${t}`)}}async function i_e(e,t){let n=`${D.profile.link}/${e}/${t}`,r=await R(zs(n,{method:"DELETE"}));if(ee(r),r.ok)return ca(r,!1),{hasError:!1,profile:await r.json()};if(r.status===405){let s=await r.json(),i=["needAtLeastOneAccountLinked"];return s.errorCode==="ProfileMergeRunning"&&i.unshift("profileMergeRunning"),{hasError:!0,message:r.statusText,errors:i}}else throw new Error(`Unexpected response status ${r.status} for ${n}`)}async function uO(e){let t=D.profile.merge,n={method:"POST",body:JSON.stringify({sourceIdToken:e})},o=await R(zs(t,n));if(ee(o),o.ok)return ca(o,!1),{hasError:!1,profile:await o.json()};if(o.status===400){let r=await o.json();if(r.errorCode==="ProfileMergeRunning")return{hasError:!0,message:o.statusText,errors:["profileMergeRunning"]};if(r.errorCode==="ProfileMergeComplete")return{hasError:!0,message:o.statusText,errors:["profileMergeAlreadyComplete"]};if(r.errorCode==="BlockedBySource"||r.errorCode==="BlockedByDestination")return{hasError:!0,message:o.statusText,errors:["previousMergeAttemptPreventsAction"]};throw new Error(`Unexpected response status ${o.status} for ${t}`)}else{if(o.status===405)return{hasError:!0,message:o.statusText,errors:["accountLimitReached"]};if(o.status===409)return(await o.json()).errorCode==="InvalidCertificationsState"?{hasError:!0,message:o.statusText,errors:["alreadyHasCertProfileConnected"]}:{hasError:!0,message:o.statusText,errors:["profileMergeRunning"]};throw new Error(`Unexpected response status ${o.status} for ${t}`)}}async function dO(){let e=D.profile.merge,n=await R(zs(e,{method:"GET"}));if(ee(n),n.ok){let{status:o}=await n.json();return o}return null}async function a_e(){let e=D.profile.mergeDetails,n=await R(zs(e,{method:"GET"}));return ee(n),n.ok?await n.json():null}async function l_e(){let e=D.profile.acknowledgeMergeStatus,n=await R(zs(e,{method:"POST"}));if(ee(n),ca(n,!1),!n.ok)throw new Error(`Unexpected response status ${n.status} for ${e}`)}async function c_e(e){let t=D.profile.validateMerge,n={method:"POST",body:JSON.stringify({sourceIdToken:e})},o=await R(zs(t,n));if(ee(o),o.ok)return null;if(o.status===409)return"alreadyHasCertProfileConnected";if(o.status===400){let r=await o.json();if(r.errorCode==="ProfileMergeRunning")return"profileMergeRunning";if(r.errorCode==="ProfileMergeComplete")return"profileMergeAlreadyComplete";if(r.errorCode==="BlockedBySource"||r.errorCode==="BlockedByDestination")return"previousMergeAttemptPreventsAction"}return"unexpectedError"}var VOe=["vscode://docsmsft.learn-tutor","vscode-insiders://docsmsft.learn-tutor"];function u_e(e){return e?VOe.some(t=>e.toLowerCase().startsWith(t)):!1}var QOe="https://sanitize-url.invalid/";function iI(e){if(!e)return"";let t=String(e).trim();if(!t)return"";let n;try{n=new URL(t,QOe)}catch{return""}return n.protocol==="http:"||n.protocol==="https:"?t:""}function ua(e="",t=`${oe.origin}${oe.pathname}`){let n=e?new URL(e,oe.href):new URL(t);if(n.href.toLowerCase().indexOf("javascript:")!==-1)return new URL(oe.origin);if(n.protocol==="https:"&&(n.hostname===oe.hostname||n.hostname.endsWith(".microsoft.com")||n.hostname==="microsoft.com")||u_e(n.href))return n;let o=`${oe.origin}${oe.pathname}`;return t===o?new URL(`${n.pathname}${n.search}${n.hash}`,`${oe.origin}`):ua(t)}var kn={};Rn(kn,{addApplicationTelemetry:()=>fT,addAuthorizationCode:()=>pH,addBrokerParameters:()=>Pc,addCcsOid:()=>kc,addCcsUpn:()=>ld,addClaims:()=>zm,addCliData:()=>fH,addClientAssertion:()=>_T,addClientAssertionType:()=>yT,addClientCapabilitiesToClaims:()=>f_e,addClientId:()=>Hm,addClientInfo:()=>Vm,addClientSecret:()=>bT,addCodeChallengeParams:()=>Xqe,addCodeVerifier:()=>gH,addCorrelationId:()=>Gm,addDeviceCode:()=>Zqe,addDomainHint:()=>cH,addEARParameters:()=>rHe,addExtraParameters:()=>Ic,addGrantType:()=>vT,addIdTokenHint:()=>lH,addInstanceAware:()=>xT,addLibraryInfo:()=>gT,addLoginHint:()=>rb,addLogoutHint:()=>hH,addNativeBroker:()=>Jqe,addNonce:()=>dH,addOboAssertion:()=>eHe,addPassword:()=>oHe,addPopToken:()=>TT,addPostLogoutRedirectUri:()=>aH,addPrompt:()=>uH,addRedirectUri:()=>Bm,addRefreshToken:()=>mH,addRequestTokenUse:()=>tHe,addResource:()=>ET,addResponseMode:()=>iH,addResponseType:()=>Kqe,addScopes:()=>qm,addServerTelemetry:()=>ST,addSid:()=>PI,addSshJwk:()=>wT,addState:()=>hT,addThrottling:()=>CT,addUsername:()=>nHe,instrumentBrokerParams:()=>Om});var De={};Rn(De,{AADAuthority:()=>da,AAD_INSTANCE_DISCOVERY_ENDPT:()=>hO,AAD_TENANT_DOMAIN_SUFFIX:()=>bO,ADFS:()=>gO,APP_METADATA:()=>Xh,AUTHORITY_METADATA_CACHE_KEY:()=>Zh,AUTHORITY_METADATA_REFRESH_TIME_SECONDS:()=>MO,AUTHORIZATION_PENDING:()=>KOe,AZURE_REGION_AUTO_DISCOVER_FLAG:()=>xO,AuthenticationScheme:()=>Mn,AuthorityMetadataSource:()=>Gs,CACHE_ACCOUNT_TYPE_ADFS:()=>LO,CACHE_ACCOUNT_TYPE_GENERIC:()=>mI,CACHE_ACCOUNT_TYPE_MSAV1:()=>hqe,CACHE_ACCOUNT_TYPE_MSSTS:()=>PO,CACHE_KEY_SEPARATOR:()=>Nm,CIAM_AUTH_URL:()=>aI,CLIENT_INFO:()=>RO,CLIENT_INFO_SEPARATOR:()=>Jh,CLIENT_MISMATCH_ERROR:()=>zO,CODE_GRANT_TYPE:()=>jOe,CONSUMER_UTID:()=>YOe,CacheOutcome:()=>pa,CacheType:()=>bqe,ClaimsRequestKeys:()=>Kh,CodeChallengeMethodValues:()=>gqe,CredentialType:()=>So,DEFAULT_AUTHORITY:()=>d_e,DEFAULT_AUTHORITY_HOST:()=>mO,DEFAULT_COMMON_TENANT:()=>eT,DEFAULT_MAX_THROTTLE_TIME_SECONDS:()=>qO,DEFAULT_THROTTLE_TIME_SECONDS:()=>OO,DEFAULT_TOKEN_RENEWAL_OFFSET_SEC:()=>VO,DSTS:()=>fO,EMAIL_SCOPE:()=>g_e,EncodingTypes:()=>vqe,FORWARD_SLASH:()=>jh,GrantType:()=>oT,HTTP_BAD_REQUEST:()=>dI,HTTP_CLIENT_ERROR:()=>nqe,HTTP_CLIENT_ERROR_RANGE_END:()=>EO,HTTP_CLIENT_ERROR_RANGE_START:()=>CO,HTTP_GATEWAY_TIMEOUT:()=>uqe,HTTP_GONE:()=>iqe,HTTP_MULTI_SIDED_ERROR:()=>dqe,HTTP_NOT_FOUND:()=>rqe,HTTP_REDIRECT:()=>tqe,HTTP_REQUEST_TIMEOUT:()=>sqe,HTTP_SERVER_ERROR:()=>lqe,HTTP_SERVER_ERROR_RANGE_END:()=>kO,HTTP_SERVER_ERROR_RANGE_START:()=>AO,HTTP_SERVICE_UNAVAILABLE:()=>cqe,HTTP_SUCCESS:()=>uI,HTTP_SUCCESS_RANGE_END:()=>eqe,HTTP_SUCCESS_RANGE_START:()=>ZOe,HTTP_TOO_MANY_REQUESTS:()=>aqe,HTTP_UNAUTHORIZED:()=>oqe,HeaderNames:()=>Zn,HttpMethod:()=>pqe,IMDS_ENDPOINT:()=>cI,IMDS_TIMEOUT:()=>vO,IMDS_VERSION:()=>yO,INVALID_GRANT_ERROR:()=>BO,INVALID_INSTANCE:()=>SO,JsonWebTokenTypes:()=>GO,KNOWN_PUBLIC_CLOUDS:()=>wO,NOT_APPLICABLE:()=>JOe,NOT_AVAILABLE:()=>$m,OAuthResponseType:()=>fqe,OFFLINE_ACCESS_SCOPE:()=>lI,OIDC_DEFAULT_SCOPES:()=>Wh,OIDC_SCOPES:()=>pI,ONE_DAY_IN_MS:()=>yqe,OPENID_SCOPE:()=>p_e,PROFILE_SCOPE:()=>m_e,PasswordGrantConstants:()=>hI,PersistentCacheKeys:()=>mqe,PromptValue:()=>nT,REGIONAL_AUTH_PUBLIC_CLOUD_SUFFIX:()=>TO,RESOURCE_DELIM:()=>tT,RegionDiscoveryOutcomes:()=>iT,RegionDiscoverySources:()=>ad,ResponseMode:()=>IO,S256_CODE_CHALLENGE_METHOD:()=>WOe,SERVER_TELEM_CACHE_KEY:()=>rT,SERVER_TELEM_CATEGORY_SEPARATOR:()=>fI,SERVER_TELEM_MAX_CACHED_ERRORS:()=>$O,SERVER_TELEM_MAX_CUR_HEADER_BYTES:()=>_qe,SERVER_TELEM_MAX_LAST_HEADER_BYTES:()=>DO,SERVER_TELEM_OVERFLOW_FALSE:()=>FO,SERVER_TELEM_OVERFLOW_TRUE:()=>NO,SERVER_TELEM_SCHEMA_VERSION:()=>gI,SERVER_TELEM_UNKNOWN_ERROR:()=>UO,SERVER_TELEM_VALUE_SEPARATOR:()=>id,SHR_NONCE_VALIDITY:()=>XOe,SKU:()=>pO,THE_FAMILY_ID:()=>Fm,THROTTLING_PREFIX:()=>sT,URL_FORM_CONTENT_TYPE:()=>_O,X_MS_LIB_CAPABILITY_VALUE:()=>HO});var pO="msal.js.common",d_e="https://login.microsoftonline.com/common/",mO="login.microsoftonline.com",eT="common",gO="adfs",fO="dstsv2",hO=`${d_e}discovery/instance?api-version=1.1&authorization_endpoint=`,aI=".ciamlogin.com",bO=".onmicrosoft.com",tT="|",YOe="9188040d-6c67-4c5b-b112-36a304b66dad",p_e="openid",m_e="profile",lI="offline_access",g_e="email",jOe="authorization_code",WOe="S256",_O="application/x-www-form-urlencoded;charset=utf-8",KOe="authorization_pending",JOe="N/A",$m="Not Available",jh="/",cI="http://169.254.169.254/metadata/instance/compute/location",yO="2020-06-01",vO=2e3,xO="TryAutoDetect",TO="login.microsoft.com",wO=["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"],XOe=240,SO="invalid_instance",uI=200,ZOe=200,eqe=299,tqe=302,nqe=400,CO=400,dI=400,oqe=401,rqe=404,sqe=408,iqe=410,aqe=429,EO=499,lqe=500,AO=500,cqe=503,uqe=504,kO=599,dqe=600,pqe={GET:"GET",POST:"POST"},Wh=[p_e,m_e,lI],pI=[...Wh,g_e],Zn={CONTENT_TYPE:"Content-Type",CONTENT_LENGTH:"Content-Length",RETRY_AFTER:"Retry-After",CCS_HEADER:"X-AnchorMailbox",WWWAuthenticate:"WWW-Authenticate",AuthenticationInfo:"Authentication-Info",X_MS_REQUEST_ID:"x-ms-request-id",X_MS_HTTP_VERSION:"x-ms-httpver"},mqe={ACTIVE_ACCOUNT_FILTERS:"active-account-filters"},da={COMMON:"common",ORGANIZATIONS:"organizations",CONSUMERS:"consumers"},Kh={ACCESS_TOKEN:"access_token",XMS_CC:"xms_cc"},nT={LOGIN:"login",SELECT_ACCOUNT:"select_account",CONSENT:"consent",NONE:"none",CREATE:"create",NO_SESSION:"no_session"},gqe={PLAIN:"plain",S256:"S256"},fqe={CODE:"code",IDTOKEN_TOKEN:"id_token token",IDTOKEN_TOKEN_REFRESHTOKEN:"id_token token refresh_token"},IO={QUERY:"query",FRAGMENT:"fragment",FORM_POST:"form_post"},oT={IMPLICIT_GRANT:"implicit",AUTHORIZATION_CODE_GRANT:"authorization_code",CLIENT_CREDENTIALS_GRANT:"client_credentials",RESOURCE_OWNER_PASSWORD_GRANT:"password",REFRESH_TOKEN_GRANT:"refresh_token",DEVICE_CODE_GRANT:"device_code",JWT_BEARER:"urn:ietf:params:oauth:grant-type:jwt-bearer"},PO="MSSTS",LO="ADFS",hqe="MSA",mI="Generic",Nm="-",Jh=".",So={ID_TOKEN:"IdToken",ACCESS_TOKEN:"AccessToken",ACCESS_TOKEN_WITH_AUTH_SCHEME:"AccessToken_With_AuthScheme",REFRESH_TOKEN:"RefreshToken"},bqe={ADFS:1001,MSA:1002,MSSTS:1003,GENERIC:1004,ACCESS_TOKEN:2001,REFRESH_TOKEN:2002,ID_TOKEN:2003,APP_METADATA:3001,UNDEFINED:9999},Xh="appmetadata",RO="client_info",Fm="1",Zh="authority-metadata",MO=3600*24,Gs={CONFIG:"config",CACHE:"cache",NETWORK:"network",HARDCODED_VALUES:"hardcoded_values"},gI=5,_qe=80,DO=330,$O=50,rT="server-telemetry",fI="|",id=",",NO="1",FO="0",UO="unknown_error",Mn={BEARER:"Bearer",POP:"pop",SSH:"ssh-cert"},OO=60,qO=3600,sT="throttling",HO="retry-after, h429",BO="invalid_grant",zO="client_mismatch",hI={username:"username",password:"password"},ad={FAILED_AUTO_DETECTION:"1",INTERNAL_CACHE:"2",ENVIRONMENT_VARIABLE:"3",IMDS:"4"},iT={CONFIGURED_MATCHES_DETECTED:"1",CONFIGURED_NO_AUTO_DETECTION:"2",CONFIGURED_NOT_DETECTED:"3",AUTO_DETECTION_REQUESTED_SUCCESSFUL:"4",AUTO_DETECTION_REQUESTED_FAILED:"5"},pa={NOT_APPLICABLE:"0",FORCE_REFRESH_OR_CLAIMS:"1",NO_CACHED_ACCESS_TOKEN:"2",CACHED_ACCESS_TOKEN_EXPIRED:"3",PROACTIVELY_REFRESHED:"4"},GO={Jwt:"JWT",Jwk:"JWK",Pop:"pop"},yqe=864e5,VO=300,vqe={BASE64:"base64",HEX:"hex",UTF8:"utf-8"};var Ac={};Rn(Ac,{ACCESS_TOKEN:()=>wqe,BROKER_CLIENT_ID:()=>aT,BROKER_REDIRECT_URI:()=>xI,CCS_HEADER:()=>Lqe,CLAIMS:()=>WO,CLIENT_ASSERTION:()=>yq,CLIENT_ASSERTION_TYPE:()=>vq,CLIENT_ID:()=>fl,CLIENT_INFO:()=>kqe,CLIENT_REQUEST_ID:()=>sq,CLIENT_SECRET:()=>_q,CLI_DATA:()=>Lq,CODE:()=>tq,CODE_CHALLENGE:()=>nq,CODE_CHALLENGE_METHOD:()=>oq,CODE_VERIFIER:()=>rq,DEVICE_CODE:()=>bq,DOMAIN_HINT:()=>Aq,EAR_JWE_CRYPTO:()=>Iq,EAR_JWK:()=>kq,ERROR:()=>xqe,ERROR_DESCRIPTION:()=>Tqe,EXPIRES_IN:()=>Cqe,FOCI:()=>Pqe,GRANT_TYPE:()=>jO,ID_TOKEN:()=>Sqe,ID_TOKEN_HINT:()=>hq,INSTANCE_AWARE:()=>eb,LOGIN_HINT:()=>Eq,LOGOUT_HINT:()=>Sq,NATIVE_BROKER:()=>wq,NONCE:()=>ZO,OBO_ASSERTION:()=>xq,ON_BEHALF_OF:()=>Iqe,POST_LOGOUT_URI:()=>fq,PROMPT:()=>eq,REDIRECT_URI:()=>bI,REFRESH_TOKEN:()=>JO,REFRESH_TOKEN_EXPIRES_IN:()=>Eqe,REQUESTED_TOKEN_USE:()=>Tq,REQ_CNF:()=>yI,RESOURCE:()=>Pq,RESPONSE_MODE:()=>YO,RESPONSE_TYPE:()=>QO,RETURN_SPA_CODE:()=>vI,SCOPE:()=>KO,SESSION_STATE:()=>Aqe,SID:()=>Cq,STATE:()=>XO,TOKEN_TYPE:()=>_I,X_APP_NAME:()=>mq,X_APP_VER:()=>gq,X_CLIENT_CPU:()=>cq,X_CLIENT_CURR_TELEM:()=>uq,X_CLIENT_EXTRA_SKU:()=>Rqe,X_CLIENT_LAST_TELEM:()=>dq,X_CLIENT_OS:()=>lq,X_CLIENT_SKU:()=>iq,X_CLIENT_VER:()=>aq,X_MS_LIB_CAPABILITY:()=>pq});var fl="client_id",bI="redirect_uri",QO="response_type",YO="response_mode",jO="grant_type",WO="claims",KO="scope",xqe="error",Tqe="error_description",wqe="access_token",Sqe="id_token",JO="refresh_token",Cqe="expires_in",Eqe="refresh_token_expires_in",XO="state",ZO="nonce",eq="prompt",Aqe="session_state",kqe="client_info",tq="code",nq="code_challenge",oq="code_challenge_method",rq="code_verifier",sq="client-request-id",iq="x-client-SKU",aq="x-client-VER",lq="x-client-OS",cq="x-client-CPU",uq="x-client-current-telemetry",dq="x-client-last-telemetry",pq="x-ms-lib-capability",mq="x-app-name",gq="x-app-ver",fq="post_logout_redirect_uri",hq="id_token_hint",bq="device_code",_q="client_secret",yq="client_assertion",vq="client_assertion_type",_I="token_type",yI="req_cnf",xq="assertion",Tq="requested_token_use",Iqe="on_behalf_of",Pqe="foci",Lqe="X-AnchorMailbox",vI="return_spa_code",wq="nativebroker",Sq="logout_hint",Cq="sid",Eq="login_hint",Aq="domain_hint",Rqe="x-client-xtra-sku",aT="brk_client_id",xI="brk_redirect_uri",eb="instance_aware",kq="ear_jwk",Iq="ear_jwe_crypto",Pq="resource",Lq="clidata";function TI(e){return`See https://aka.ms/msal.js.errors#${e} for details`}var at=class e extends Error{constructor(t,n,o){let r=n||(t?TI(t):""),s=r?`${t}: ${r}`:t;super(s),Object.setPrototypeOf(this,e.prototype),this.errorCode=t||"",this.errorMessage=r||"",this.subError=o||"",this.name="AuthError"}setCorrelationId(t){this.correlationId=t}};function tb(e,t){return new at(e,t||TI(e))}var lT=class e extends at{constructor(t){super(t),this.name="ClientConfigurationError",Object.setPrototypeOf(this,e.prototype)}};function $t(e){return new lT(e)}var Gn=class{static isEmptyObj(t){if(t)try{let n=JSON.parse(t);return Object.keys(n).length===0}catch{}return!0}static startsWith(t,n){return t.indexOf(n)===0}static endsWith(t,n){return t.length>=n.length&&t.lastIndexOf(n)===t.length-n.length}static queryStringToObject(t){let n={},o=t.split("&"),r=s=>decodeURIComponent(s.replace(/\+/g," "));return o.forEach(s=>{if(s.trim()){let[i,a]=s.split(/=(.+)/g,2);i&&a&&(n[r(i)]=r(a))}}),n}static trimArrayEntries(t){return t.map(n=>n.trim())}static removeEmptyStringsFromArray(t){return t.filter(n=>!!n)}static jsonParseHelper(t){try{return JSON.parse(t)}catch{return null}}};var cT=class e extends at{constructor(t,n){super(t,n),this.name="ClientAuthError",Object.setPrototypeOf(this,e.prototype)}};function re(e,t){return new cT(e,t)}var os={};Rn(os,{authorityMismatch:()=>qqe,authorityUriInsecure:()=>Mq,cannotAllowPlatformBroker:()=>Oqe,cannotSetOIDCOptions:()=>Uqe,claimsRequestParsingError:()=>Mqe,emptyInputScopesError:()=>$q,invalidAuthenticationHeader:()=>Fqe,invalidAuthorityMetadata:()=>Oq,invalidClaims:()=>wI,invalidCloudDiscoveryMetadata:()=>SI,invalidCodeChallengeMethod:()=>Dqe,invalidRequestMethodForEAR:()=>Hqe,logoutRequestEmpty:()=>Fq,missingNonceAuthenticationHeader:()=>Nqe,missingSshJwk:()=>uT,missingSshKid:()=>$qe,pkceParamsMissing:()=>Uq,redirectUriEmpty:()=>Rq,tokenRequestEmpty:()=>Nq,untrustedAuthority:()=>qq,urlEmptyError:()=>Dq,urlParseError:()=>nb});var Rq="redirect_uri_empty",Mqe="claims_request_parsing_error",Mq="authority_uri_insecure",nb="url_parse_error",Dq="empty_url_error",$q="empty_input_scopes_error",wI="invalid_claims",Nq="token_request_empty",Fq="logout_request_empty",Dqe="invalid_code_challenge_method",Uq="pkce_params_missing",SI="invalid_cloud_discovery_metadata",Oq="invalid_authority_metadata",qq="untrusted_authority",uT="missing_ssh_jwk",$qe="missing_ssh_kid",Nqe="missing_nonce_authentication_header",Fqe="invalid_authentication_header",Uqe="cannot_set_OIDCOptions",Oqe="cannot_allow_platform_broker",qqe="authority_mismatch",Hqe="invalid_request_method_for_EAR";var Co={};Rn(Co,{authTimeNotFound:()=>dT,authorizationCodeMissingFromServerResponse:()=>tH,bindingKeyNotRemoved:()=>Vqe,cannotAppendScopeSet:()=>Xq,cannotRemoveEmptyScope:()=>Jq,clientInfoDecodingError:()=>CI,clientInfoEmptyError:()=>Hq,emptyInputScopeSet:()=>kI,endSessionEndpointNotSupported:()=>nH,endpointResolutionError:()=>ma,hashNotDeserialized:()=>Vq,invalidCacheEnvironment:()=>mT,invalidCacheRecord:()=>Zq,invalidState:()=>Um,keyIdMissing:()=>oH,maxAgeTranspired:()=>jq,methodNotImplemented:()=>yt,misplacedResourceParam:()=>sH,multipleMatchingAppMetadata:()=>Wq,multipleMatchingTokens:()=>Bqe,nestedAppAuthBridgeDisabled:()=>jqe,networkError:()=>zq,noAccountFound:()=>zqe,noAccountInSilentRequest:()=>pT,noCryptoObject:()=>II,noNetworkConnectivity:()=>Qqe,nonceMismatch:()=>Yq,nullOrEmptyToken:()=>Bq,openIdConfigError:()=>Gq,platformBrokerError:()=>Wqe,requestCannotBeMade:()=>Kq,resourceParameterRequired:()=>rH,stateMismatch:()=>Qq,stateNotFound:()=>AI,tokenClaimsCnfRequiredForSignedJwt:()=>eH,tokenParsingError:()=>EI,tokenRefreshRequired:()=>ob,unexpectedCredentialType:()=>Gqe,userCanceled:()=>Yqe});var CI="client_info_decoding_error",Hq="client_info_empty_error",EI="token_parsing_error",Bq="null_or_empty_token",ma="endpoints_resolution_error",zq="network_error",Gq="openid_config_error",Vq="hash_not_deserialized",Um="invalid_state",Qq="state_mismatch",AI="state_not_found",Yq="nonce_mismatch",dT="auth_time_not_found",jq="max_age_transpired",Bqe="multiple_matching_tokens",Wq="multiple_matching_appMetadata",Kq="request_cannot_be_made",Jq="cannot_remove_empty_scope",Xq="cannot_append_scopeset",kI="empty_input_scopeset",pT="no_account_in_silent_request",Zq="invalid_cache_record",mT="invalid_cache_environment",zqe="no_account_found",II="no_crypto_object",Gqe="unexpected_credential_type",ob="token_refresh_required",eH="token_claims_cnf_required_for_signedjwt",tH="authorization_code_missing_from_server_response",Vqe="binding_key_not_removed",nH="end_session_endpoint_not_supported",oH="key_id_missing",Qqe="no_network_connectivity",Yqe="user_canceled",yt="method_not_implemented",jqe="nested_app_auth_bridge_disabled",Wqe="platform_broker_error",rH="resource_parameter_required",sH="misplaced_resource_parameter";var Eo=class e{constructor(t){let n=t?Gn.trimArrayEntries([...t]):[],o=n?Gn.removeEmptyStringsFromArray(n):[];if(!o||!o.length)throw $t($q);this.scopes=new Set,o.forEach(r=>this.scopes.add(r))}static fromString(t){let o=(t||"").split(" ");return new e(o)}static createSearchScopes(t){let n=t&&t.length>0?t:[...Wh],o=new e(n);return o.containsOnlyOIDCScopes()?o.removeScope(lI):o.removeOIDCScopes(),o}containsScope(t){let n=this.printScopesLowerCase().split(" "),o=new e(n);return t?o.scopes.has(t.toLowerCase()):!1}containsScopeSet(t){return!t||t.scopes.size<=0?!1:this.scopes.size>=t.scopes.size&&t.asArray().every(n=>this.containsScope(n))}containsOnlyOIDCScopes(){let t=0;return pI.forEach(n=>{this.containsScope(n)&&(t+=1)}),this.scopes.size===t}appendScope(t){t&&this.scopes.add(t.trim())}appendScopes(t){try{t.forEach(n=>this.appendScope(n))}catch{throw re(Xq)}}removeScope(t){if(!t)throw re(Jq);this.scopes.delete(t.trim())}removeOIDCScopes(){pI.forEach(t=>{this.scopes.delete(t)})}unionScopeSets(t){if(!t)throw re(kI);let n=new Set;return t.scopes.forEach(o=>n.add(o.toLowerCase())),this.scopes.forEach(o=>n.add(o.toLowerCase())),n}intersectingScopeSets(t){if(!t)throw re(kI);t.containsOnlyOIDCScopes()||t.removeOIDCScopes();let n=this.unionScopeSets(t),o=t.getScopeCount(),r=this.getScopeCount();return n.sizet.push(n)),t}printScopes(){return this.scopes?this.asArray().join(" "):""}printScopesLowerCase(){return this.printScopes().toLowerCase()}};function Om(e,t,n){if(!t)return;let o=e.get(fl);o&&e.has(aT)&&n?.addFields({embeddedClientId:o,embeddedRedirectUri:e.get(bI)},t)}function Kqe(e,t){e.set(QO,t)}function iH(e,t){e.set(YO,t||IO.QUERY)}function Jqe(e){e.set(wq,"1")}function qm(e,t,n=!0,o=Wh){n&&!o.includes("openid")&&!t.includes("openid")&&o.push("openid");let r=n?[...t||[],...o]:t||[],s=new Eo(r);e.set(KO,s.printScopes())}function Hm(e,t){e.set(fl,t)}function Bm(e,t){e.set(bI,t)}function aH(e,t){e.set(fq,t)}function lH(e,t){e.set(hq,t)}function cH(e,t){e.set(Aq,t)}function rb(e,t){e.set(Eq,t)}function ld(e,t){e.set(Zn.CCS_HEADER,`UPN:${t}`)}function kc(e,t){e.set(Zn.CCS_HEADER,`Oid:${t.uid}@${t.utid}`)}function PI(e,t){e.set(Cq,t)}function zm(e,t,n){let o=f_e(t,n);try{JSON.parse(o)}catch{throw $t(wI)}e.set(WO,o)}function Gm(e,t){e.set(sq,t)}function gT(e,t){e.set(iq,t.sku),e.set(aq,t.version),t.os&&e.set(lq,t.os),t.cpu&&e.set(cq,t.cpu)}function fT(e,t){t?.appName&&e.set(mq,t.appName),t?.appVersion&&e.set(gq,t.appVersion)}function uH(e,t){e.set(eq,t)}function hT(e,t){t&&e.set(XO,t)}function dH(e,t){e.set(ZO,t)}function Xqe(e,t,n){if(t&&n)e.set(nq,t),e.set(oq,n);else throw $t(Uq)}function pH(e,t){e.set(tq,t)}function Zqe(e,t){e.set(bq,t)}function mH(e,t){e.set(JO,t)}function gH(e,t){e.set(rq,t)}function bT(e,t){e.set(_q,t)}function _T(e,t){t&&e.set(yq,t)}function yT(e,t){t&&e.set(vq,t)}function eHe(e,t){e.set(xq,t)}function tHe(e,t){e.set(Tq,t)}function vT(e,t){e.set(jO,t)}function Vm(e){e.set(RO,"1")}function fH(e){e.set(Lq,"1")}function xT(e){e.has(eb)||e.set(eb,"true")}function Ic(e,t){Object.entries(t).forEach(([n,o])=>{!e.has(n)&&o&&e.set(n,o)})}function f_e(e,t){let n;if(!e)n={};else try{n=JSON.parse(e)}catch{throw $t(wI)}return t&&t.length>0&&(n.hasOwnProperty(Kh.ACCESS_TOKEN)||(n[Kh.ACCESS_TOKEN]={}),n[Kh.ACCESS_TOKEN][Kh.XMS_CC]={values:t}),JSON.stringify(n)}function nHe(e,t){e.set(hI.username,t)}function oHe(e,t){e.set(hI.password,t)}function TT(e,t){t&&(e.set(_I,Mn.POP),e.set(yI,t))}function wT(e,t){t&&(e.set(_I,Mn.SSH),e.set(yI,t))}function ST(e,t){e.set(uq,t.generateCurrentRequestHeaderValue()),e.set(dq,t.generateLastRequestHeaderValue())}function CT(e){e.set(pq,HO)}function hH(e,t){e.set(Sq,t)}function Pc(e,t,n){e.has(aT)||e.set(aT,t),e.has(xI)||e.set(xI,n)}function rHe(e,t){e.set(kq,encodeURIComponent(t)),e.set(Iq,"eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIn0")}function ET(e,t){t&&e.set(Pq,t)}var Ti={};Rn(Ti,{getDeserializedResponse:()=>sHe,mapToQueryString:()=>hl,normalizeUrlForComparison:()=>iHe,stripLeadingHashOrQuery:()=>b_e});function h_e(e){if(!e)return e;let t=e.toLowerCase();return Gn.endsWith(t,"?")?t=t.slice(0,-1):Gn.endsWith(t,"?/")&&(t=t.slice(0,-2)),Gn.endsWith(t,"/")||(t+="/"),t}function b_e(e){return e.startsWith("#/")?e.substring(2):e.startsWith("#")||e.startsWith("?")?e.substring(1):e}function sHe(e){if(!e||e.indexOf("=")<0)return null;try{let t=b_e(e),n=Object.fromEntries(new URLSearchParams(t));if(n.code||n.ear_jwe||n.error||n.error_description||n.state)return n}catch{throw re(Vq)}return null}function hl(e){let t=new Array;return e.forEach((n,o)=>{t.push(`${o}=${encodeURIComponent(n)}`)}),t.join("&")}function iHe(e){if(!e)return e;let t=e.split("#")[0];try{let n=new URL(t),o=n.origin+n.pathname+n.search;return h_e(o)}catch{return h_e(t)}}var cd={createNewGuid:()=>{throw re(yt)},base64Decode:()=>{throw re(yt)},base64Encode:()=>{throw re(yt)},base64UrlEncode:()=>{throw re(yt)},encodeKid:()=>{throw re(yt)},async getPublicKeyThumbprint(){throw re(yt)},async removeTokenBindingKey(){throw re(yt)},async clearKeystore(){throw re(yt)},async signJwt(){throw re(yt)},async hashString(){throw re(yt)}};var Ut;(function(e){e[e.Error=0]="Error",e[e.Warning=1]="Warning",e[e.Info=2]="Info",e[e.Verbose=3]="Verbose",e[e.Trace=4]="Trace"})(Ut||(Ut={}));var aHe=50,lHe=500,Qm=new Map;function cHe(e,t){Qm.delete(e),Qm.set(e,t)}function uHe(e,t){let n=Date.now(),o=Qm.get(e);if(o)cHe(e,o);else if(o={logs:[],firstEventTime:n},Qm.set(e,o),Qm.size>aHe){let r=Qm.keys().next().value;r&&Qm.delete(r)}o.logs.push({...t,milliseconds:n-o.firstEventTime}),o.logs.length>lHe&&o.logs.shift()}function dHe(e){if(e.length!==6)return!1;for(let t=0;t="a"&&n<="z"||n>="A"&&n<="Z"||n>="0"&&n<="9"))return!1}return!0}var Ao=class e{constructor(t,n,o){this.level=Ut.Info;let r=()=>{},s=t||e.createDefaultLoggerOptions();this.localCallback=s.loggerCallback||r,this.piiLoggingEnabled=s.piiLoggingEnabled||!1,this.level=typeof s.logLevel=="number"?s.logLevel:Ut.Info,this.packageName=n||"",this.packageVersion=o||""}static createDefaultLoggerOptions(){return{loggerCallback:()=>{},piiLoggingEnabled:!1,logLevel:Ut.Info}}clone(t,n){return new e({loggerCallback:this.localCallback,piiLoggingEnabled:this.piiLoggingEnabled,logLevel:this.level},t,n)}logMessage(t,n){let o=n.correlationId;if(dHe(t)){let l={hash:t,level:n.logLevel,containsPii:n.containsPii||!1,milliseconds:0};uHe(o,l)}if(n.logLevel>this.level||!this.piiLoggingEnabled&&n.containsPii)return;let a=`${`[${new Date().toUTCString()}] : [${o}]`} : ${this.packageName}@${this.packageVersion} : ${Ut[n.logLevel]} - ${t}`;this.executeCallback(n.logLevel,a,n.containsPii||!1)}executeCallback(t,n,o){this.localCallback&&this.localCallback(t,n,o)}error(t,n){this.logMessage(t,{logLevel:Ut.Error,containsPii:!1,correlationId:n})}errorPii(t,n){this.logMessage(t,{logLevel:Ut.Error,containsPii:!0,correlationId:n})}warning(t,n){this.logMessage(t,{logLevel:Ut.Warning,containsPii:!1,correlationId:n})}warningPii(t,n){this.logMessage(t,{logLevel:Ut.Warning,containsPii:!0,correlationId:n})}info(t,n){this.logMessage(t,{logLevel:Ut.Info,containsPii:!1,correlationId:n})}infoPii(t,n){this.logMessage(t,{logLevel:Ut.Info,containsPii:!0,correlationId:n})}verbose(t,n){this.logMessage(t,{logLevel:Ut.Verbose,containsPii:!1,correlationId:n})}verbosePii(t,n){this.logMessage(t,{logLevel:Ut.Verbose,containsPii:!0,correlationId:n})}trace(t,n){this.logMessage(t,{logLevel:Ut.Trace,containsPii:!1,correlationId:n})}tracePii(t,n){this.logMessage(t,{logLevel:Ut.Trace,containsPii:!0,correlationId:n})}isPiiLoggingEnabled(){return this.piiLoggingEnabled||!1}};var ud="@azure/msal-common",bl="16.4.1";var dd={None:"none",AzurePublic:"https://login.microsoftonline.com",AzurePpe:"https://login.windows-ppe.net",AzureChina:"https://login.chinacloudapi.cn",AzureGermany:"https://login.microsoftonline.de",AzureUsGovernment:"https://login.microsoftonline.us"};function bH(e,t){return!!e&&!!t&&e===t.split(".")[1]}function _l(e,t,n,o){if(o){let{oid:r,sub:s,tid:i,name:a,tfp:l,acr:c,preferred_username:u,upn:p,login_hint:m}=o,g=i||l||c||"";return{tenantId:g,localAccountId:r||s||"",name:a,username:u||p||"",loginHint:m,isHomeTenant:bH(g,e)}}else return{tenantId:n,localAccountId:t,username:"",isHomeTenant:bH(n,e)}}function Ym(e,t,n,o){let r=e;if(t){let{isHomeTenant:s,...i}=t;r={...e,...i}}if(n){let{isHomeTenant:s,...i}=_l(e.homeAccountId,e.localAccountId,e.tenantId,n);return r={...r,...i,idTokenClaims:n,idToken:o},r}return r}var Tr={};Rn(Tr,{checkMaxAge:()=>AT,extractTokenClaims:()=>Lc,getJWSPayload:()=>__e,isKmsi:()=>_H});function Lc(e,t){let n=__e(e);try{let o=t(n);return JSON.parse(o)}catch{throw re(EI)}}function _H(e){if(!e.signin_state)return!1;let t=["kmsi","dvc_dmjd"];return e.signin_state.some(n=>t.includes(n.trim().toLowerCase()))}function __e(e){if(!e)throw re(Bq);let n=/^([^\.\s]*)\.([^\.\s]+)\.([^\.\s]*)$/.exec(e);if(!n||n.length<4)throw re(EI);return n[2]}function AT(e,t){if(t===0||Date.now()-3e5>e+t)throw re(jq)}var Ct=class e{get urlString(){return this._urlString}constructor(t){if(this._urlString=t,!this._urlString)throw $t(Dq);t.includes("#")||(this._urlString=e.canonicalizeUri(t))}static canonicalizeUri(t){if(t){let n=t.toLowerCase();return Gn.endsWith(n,"?")?n=n.slice(0,-1):Gn.endsWith(n,"?/")&&(n=n.slice(0,-2)),Gn.endsWith(n,"/")||(n+="/"),n}return t}validateAsUri(){let t;try{t=this.getUrlComponents()}catch{throw $t(nb)}if(!t.HostNameAndPort||!t.PathSegments)throw $t(nb);if(!t.Protocol||t.Protocol.toLowerCase()!=="https:")throw $t(Mq)}static appendQueryString(t,n){return n?t.indexOf("?")<0?`${t}?${n}`:`${t}&${n}`:t}static removeHashFromUrl(t){return e.canonicalizeUri(t.split("#")[0])}replaceTenantPath(t){let n=this.getUrlComponents(),o=n.PathSegments;return t&&o.length!==0&&(o[0]===da.COMMON||o[0]===da.ORGANIZATIONS)&&(o[0]=t),e.constructAuthorityUriFromObject(n)}getUrlComponents(){let t=RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?"),n=this.urlString.match(t);if(!n)throw $t(nb);let o={Protocol:n[1],HostNameAndPort:n[4],AbsolutePath:n[5],QueryString:n[7]},r=o.AbsolutePath.split("/");return r=r.filter(s=>s&&s.length>0),o.PathSegments=r,o.QueryString&&o.QueryString.endsWith("/")&&(o.QueryString=o.QueryString.substring(0,o.QueryString.length-1)),o}static getDomainFromUrl(t){let n=RegExp("^([^:/?#]+://)?([^/?#]*)"),o=t.match(n);if(!o)throw $t(nb);return o[2]}static getAbsoluteUrl(t,n){if(t[0]===jh){let r=new e(n).getUrlComponents();return r.Protocol+"//"+r.HostNameAndPort+t}return t}static constructAuthorityUriFromObject(t){return new e(t.Protocol+"//"+t.HostNameAndPort+"/"+t.PathSegments.join("/"))}};var pHe=[{host:"login.microsoftonline.com"},{host:"login.chinacloudapi.cn",issuerHost:"login.partner.microsoftonline.cn"},{host:"login.microsoftonline.us"},{host:"login.sovcloud-identity.fr"},{host:"login.sovcloud-identity.de"},{host:"login.sovcloud-identity.sg"}];function mHe(e,t){return{token_endpoint:`https://${e}/{tenantid}/oauth2/v2.0/token`,jwks_uri:`https://${e}/{tenantid}/discovery/v2.0/keys`,issuer:`https://${t}/{tenantid}/v2.0`,authorization_endpoint:`https://${e}/{tenantid}/oauth2/v2.0/authorize`,end_session_endpoint:`https://${e}/{tenantid}/oauth2/v2.0/logout`}}var gHe=pHe.reduce((e,{host:t,issuerHost:n})=>(e[t]=mHe(t,n||t),e),{}),v_e={endpointMetadata:gHe,instanceDiscoveryMetadata:{metadata:[{preferred_network:"login.microsoftonline.com",preferred_cache:"login.windows.net",aliases:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"]},{preferred_network:"login.partner.microsoftonline.cn",preferred_cache:"login.partner.microsoftonline.cn",aliases:["login.partner.microsoftonline.cn","login.chinacloudapi.cn"]},{preferred_network:"login.microsoftonline.de",preferred_cache:"login.microsoftonline.de",aliases:["login.microsoftonline.de"]},{preferred_network:"login.microsoftonline.us",preferred_cache:"login.microsoftonline.us",aliases:["login.microsoftonline.us","login.usgovcloudapi.net"]},{preferred_network:"login-us.microsoftonline.com",preferred_cache:"login-us.microsoftonline.com",aliases:["login-us.microsoftonline.com"]},{preferred_network:"login.sovcloud-identity.fr",preferred_cache:"login.sovcloud-identity.fr",aliases:["login.sovcloud-identity.fr"]},{preferred_network:"login.sovcloud-identity.de",preferred_cache:"login.sovcloud-identity.de",aliases:["login.sovcloud-identity.de"]},{preferred_network:"login.sovcloud-identity.sg",preferred_cache:"login.sovcloud-identity.sg",aliases:["login.sovcloud-identity.sg"]}]}},yH=v_e.endpointMetadata,vH=v_e.instanceDiscoveryMetadata,xH=new Set;vH.metadata.forEach(e=>{e.aliases.forEach(t=>{xH.add(t)})});function x_e(e,t,n){let o,r=e.canonicalAuthority;if(r){let s=new Ct(r).getUrlComponents().HostNameAndPort;o=y_e(t,n,s,e.cloudDiscoveryMetadata?.metadata)||y_e(t,n,s,vH.metadata)||e.knownAuthorities}return o||[]}function y_e(e,t,n,o,r){if(e.trace("1bmquz",t),n&&o){let s=kT(o,n);if(s)return e.trace("1fotbt",t),s.aliases;e.trace("14avvj",t)}return null}function T_e(e){return kT(vH.metadata,e)}function kT(e,t){for(let n=0;nwH,cacheQuotaExceeded:()=>TH});var TH="cache_quota_exceeded",wH="cache_error_unknown";var pd=class e extends Error{constructor(t,n){let o=n||TI(t);super(o),Object.setPrototypeOf(this,e.prototype),this.name="CacheError",this.errorCode=t,this.errorMessage=o}};function sb(e){return e instanceof Error?e.name==="QuotaExceededError"||e.name==="NS_ERROR_DOM_QUOTA_REACHED"||e.message.includes("exceeded the quota")?new pd(TH):new pd(e.name,e.message):new pd(wH)}var wi={};Rn(wi,{createAccountEntity:()=>SH,createAccountEntityFromAccountInfo:()=>bHe,generateAccountId:()=>fHe,generateHomeAccountId:()=>CH,getAccountInfo:()=>ab,isAccountEntity:()=>_He,isSingleTenant:()=>hHe});function ib(e,t){if(!e)throw re(Hq);try{let n=t(e);return JSON.parse(n)}catch{throw re(CI)}}function yl(e){if(!e)throw re(CI);let t=e.split(Jh,2);return{uid:t[0],utid:t.length<2?"":t[1]}}var $r={Default:0,Adfs:1,Dsts:2,Ciam:3};function jm(e){return e&&(e.tid||e.tfp||e.acr)||null}var Tn={AAD:"AAD",OIDC:"OIDC",EAR:"EAR"};function fHe(e){return[e.homeAccountId,e.environment].join(Nm).toLowerCase()}function ab(e){let t=e.tenantProfiles||[];return t.length===0&&e.realm&&e.localAccountId&&t.push(_l(e.homeAccountId,e.localAccountId,e.realm)),{homeAccountId:e.homeAccountId,environment:e.environment,tenantId:e.realm,username:e.username,localAccountId:e.localAccountId,loginHint:e.loginHint,name:e.name,nativeAccountId:e.nativeAccountId,authorityType:e.authorityType,tenantProfiles:new Map(t.map(n=>[n.tenantId,n])),dataBoundary:e.dataBoundary}}function hHe(e){return!e.tenantProfiles}function SH(e,t,n){let o;t.authorityType===$r.Adfs?o=LO:t.protocolMode===Tn.OIDC?o=mI:o=PO;let r,s;e.clientInfo&&n&&(r=ib(e.clientInfo,n),r.xms_tdbr&&(s=r.xms_tdbr==="EU"?"EU":"None"));let i=e.environment||t&&t.getPreferredCache();if(!i)throw re(mT);let a=e.idTokenClaims?.preferred_username||e.idTokenClaims?.upn,l=e.idTokenClaims?.emails?e.idTokenClaims.emails[0]:null,c=a||l||"",u=e.idTokenClaims?.login_hint,p=r?.utid||jm(e.idTokenClaims)||"",m=r?.uid||e.idTokenClaims?.oid||e.idTokenClaims?.sub||"",g;return e.tenantProfiles?g=e.tenantProfiles:g=[_l(e.homeAccountId,m,p,e.idTokenClaims)],{homeAccountId:e.homeAccountId,environment:i,realm:p,localAccountId:m,username:c,authorityType:o,loginHint:u,clientInfo:e.clientInfo,name:e.idTokenClaims?.name||"",lastModificationTime:void 0,lastModificationApp:void 0,cloudGraphHostName:e.cloudGraphHostName,msGraphHost:e.msGraphHost,nativeAccountId:e.nativeAccountId,tenantProfiles:g,dataBoundary:s}}function bHe(e,t,n){let o=Array.from(e.tenantProfiles?.values()||[]);return o.length===0&&e.tenantId&&e.localAccountId&&o.push(_l(e.homeAccountId,e.localAccountId,e.tenantId,e.idTokenClaims)),{authorityType:e.authorityType||mI,homeAccountId:e.homeAccountId,localAccountId:e.localAccountId,nativeAccountId:e.nativeAccountId,realm:e.tenantId,environment:e.environment,username:e.username,loginHint:e.loginHint,name:e.name,cloudGraphHostName:t,msGraphHost:n,tenantProfiles:o,dataBoundary:e.dataBoundary}}function CH(e,t,n,o,r,s){if(!(t===$r.Adfs||t===$r.Dsts)){if(e)try{let i=ib(e,o.base64Decode);if(i.uid&&i.utid)return`${i.uid}.${i.utid}`}catch{}n.warning("1ub6wv",r)}return s?.sub||""}function _He(e){return e?e.hasOwnProperty("homeAccountId")&&e.hasOwnProperty("environment")&&e.hasOwnProperty("realm")&&e.hasOwnProperty("localAccountId")&&e.hasOwnProperty("username")&&e.hasOwnProperty("authorityType"):!1}var Wm=class{constructor(t,n,o,r,s){this.clientId=t,this.cryptoImpl=n,this.commonLogger=o.clone(ud,bl),this.staticAuthorityOptions=s,this.performanceClient=r}getAllAccounts(t={},n){return this.buildTenantProfiles(this.getAccountsFilteredBy(t,n),n,t)}getAccountInfoFilteredBy(t,n){if(Object.keys(t).length===0||Object.values(t).every(r=>r==null||r===""))return this.commonLogger.warning("1skb02",n),null;let o=this.getAllAccounts(t,n);return o.length>1?o.sort(s=>s.idTokenClaims?-1:1)[0]:o.length===1?o[0]:null}getBaseAccountInfo(t,n){let o=this.getAccountsFilteredBy(t,n);return o.length>0?ab(o[0]):null}buildTenantProfiles(t,n,o){return t.flatMap(r=>this.getTenantProfilesFromAccountEntity(r,n,o?.tenantId,o))}getTenantedAccountInfoByFilter(t,n,o,r,s){let i=null,a;if(s&&!this.tenantProfileMatchesFilter(o,s))return null;let l=this.getIdToken(t,r,n,o.tenantId);return l&&(a=Lc(l.secret,this.cryptoImpl.base64Decode),!this.idTokenClaimsMatchTenantProfileFilter(a,s))?null:(i=Ym(t,o,a,l?.secret),i)}getTenantProfilesFromAccountEntity(t,n,o,r){let s=ab(t),i=s.tenantProfiles||new Map,a=this.getTokenKeys();if(o){let c=i.get(o);if(c)i=new Map([[o,c]]);else return[]}let l=[];return i.forEach(c=>{let u=this.getTenantedAccountInfoByFilter(s,a,c,n,r);u&&l.push(u)}),l}tenantProfileMatchesFilter(t,n){return!(n.localAccountId&&!this.matchLocalAccountIdFromTenantProfile(t,n.localAccountId)||n.name&&t.name!==n.name||n.isHomeTenant!==void 0&&t.isHomeTenant!==n.isHomeTenant)}idTokenClaimsMatchTenantProfileFilter(t,n){return!(n&&(n.localAccountId&&!this.matchLocalAccountIdFromTokenClaims(t,n.localAccountId)||n.loginHint&&!this.matchLoginHintFromTokenClaims(t,n.loginHint)||n.username&&!this.matchUsername(t.preferred_username,n.username)||n.name&&!this.matchName(t,n.name)||n.sid&&!this.matchSid(t,n.sid)))}async saveCacheRecord(t,n,o,r,s){if(!t)throw re(Zq);try{t.account&&await this.setAccount(t.account,n,o,r),t.idToken&&s?.idToken!==!1&&await this.setIdTokenCredential(t.idToken,n,o),t.accessToken&&s?.accessToken!==!1&&await this.saveAccessToken(t.accessToken,n,o),t.refreshToken&&s?.refreshToken!==!1&&await this.setRefreshTokenCredential(t.refreshToken,n,o),t.appMetadata&&this.setAppMetadata(t.appMetadata,n)}catch(i){throw this.commonLogger?.error("0j476p",n),i instanceof at?i:sb(i)}}async saveAccessToken(t,n,o){let r={clientId:t.clientId,credentialType:t.credentialType,environment:t.environment,homeAccountId:t.homeAccountId,realm:t.realm,tokenType:t.tokenType},s=this.getTokenKeys(),i=Eo.fromString(t.target);s.accessToken.forEach(a=>{if(!this.accessTokenKeyMatchesFilter(a,r,!1))return;let l=this.getAccessTokenCredential(a,n);l&&this.credentialMatchesFilter(l,r,n)&&Eo.fromString(l.target).intersectingScopeSets(i)&&this.removeAccessToken(a,n)}),await this.setAccessTokenCredential(t,n,o)}getAccountsFilteredBy(t,n){let o=this.getAccountKeys(),r=[];return o.forEach(s=>{let i=this.getAccount(s,n);if(!i||t.homeAccountId&&!this.matchHomeAccountId(i,t.homeAccountId)||t.username&&!this.matchUsername(i.username,t.username)||t.environment&&!this.matchEnvironment(i,t.environment,n)||t.realm&&!this.matchRealm(i,t.realm)||t.nativeAccountId&&!this.matchNativeAccountId(i,t.nativeAccountId)||t.authorityType&&!this.matchAuthorityType(i,t.authorityType))return;let a={localAccountId:t?.localAccountId,name:t?.name},l=i.tenantProfiles?.filter(c=>this.tenantProfileMatchesFilter(c,a));l&&l.length===0||r.push(i)}),r}credentialMatchesFilter(t,n,o){return!(n.clientId&&!this.matchClientId(t,n.clientId)||n.userAssertionHash&&!this.matchUserAssertionHash(t,n.userAssertionHash)||typeof n.homeAccountId=="string"&&!this.matchHomeAccountId(t,n.homeAccountId)||n.environment&&!this.matchEnvironment(t,n.environment,o)||n.realm&&!this.matchRealm(t,n.realm)||n.credentialType&&!this.matchCredentialType(t,n.credentialType)||n.familyId&&!this.matchFamilyId(t,n.familyId)||n.target&&!this.matchTarget(t,n.target)||t.credentialType===So.ACCESS_TOKEN_WITH_AUTH_SCHEME&&(n.tokenType&&!this.matchTokenType(t,n.tokenType)||n.tokenType===Mn.SSH&&n.keyId&&!this.matchKeyId(t,n.keyId)))}getAppMetadataFilteredBy(t,n){let o=this.getKeys(),r={};return o.forEach(s=>{if(!this.isAppMetadata(s))return;let i=this.getAppMetadata(s,n);i&&(t.environment&&!this.matchEnvironment(i,t.environment,n)||t.clientId&&!this.matchClientId(i,t.clientId)||(r[s]=i))}),r}getAuthorityMetadataByAlias(t,n){let o=this.getAuthorityMetadataKeys(),r=null;return o.forEach(s=>{if(!this.isAuthorityMetadata(s)||s.indexOf(this.clientId)===-1)return;let i=this.getAuthorityMetadata(s,n);i&&i.aliases.indexOf(t)!==-1&&(r=i)}),r}removeAllAccounts(t){this.getAllAccounts({},t).forEach(o=>{this.removeAccount(o,t)})}removeAccount(t,n){this.removeAccountContext(t,n);let o=this.getAccountKeys(),r=s=>s.includes(t.homeAccountId)&&s.includes(t.environment);o.filter(r).forEach(s=>{this.removeItem(s,n),this.performanceClient.incrementFields({accountsRemoved:1},n)})}removeAccountContext(t,n){let o=this.getTokenKeys(),r=s=>s.includes(t.homeAccountId)&&s.includes(t.environment);o.idToken.filter(r).forEach(s=>{this.removeIdToken(s,n)}),o.accessToken.filter(r).forEach(s=>{this.removeAccessToken(s,n)}),o.refreshToken.filter(r).forEach(s=>{this.removeRefreshToken(s,n)})}removeAccessToken(t,n){let o=this.getAccessTokenCredential(t,n);if(o&&(this.removeItem(t,n),this.performanceClient.incrementFields({accessTokensRemoved:1},n),o.credentialType.toLowerCase()===So.ACCESS_TOKEN_WITH_AUTH_SCHEME.toLowerCase()&&o.tokenType===Mn.POP)){let s=o.keyId;s&&this.cryptoImpl.removeTokenBindingKey(s,n).catch(()=>{this.commonLogger.error("0cx291",n),this.performanceClient?.incrementFields({removeTokenBindingKeyFailure:1},n)})}}removeAppMetadata(t){return this.getKeys().forEach(o=>{this.isAppMetadata(o)&&this.removeItem(o,t)}),!0}getIdToken(t,n,o,r){this.commonLogger.trace("1drz22",n);let s={homeAccountId:t.homeAccountId,environment:t.environment,credentialType:So.ID_TOKEN,clientId:this.clientId,realm:r},i=this.getIdTokensByFilter(s,n,o),a=i.size;if(a<1)return this.commonLogger.info("1atvtd",n),null;if(a>1){let l=i;if(!r){let c=new Map;i.forEach((p,m)=>{p.realm===t.tenantId&&c.set(m,p)});let u=c.size;if(u<1)return this.commonLogger.info("0ooalx",n),i.values().next().value;if(u===1)return this.commonLogger.info("1eq2vc",n),c.values().next().value;l=c}return this.commonLogger.info("1ws328",n),l.forEach((c,u)=>{this.removeIdToken(u,n)}),this.performanceClient.addFields({multiMatchedID:i.size},n),null}return this.commonLogger.info("1sm769",n),i.values().next().value}getIdTokensByFilter(t,n,o){let r=o&&o.idToken||this.getTokenKeys().idToken,s=new Map;return r.forEach(i=>{if(!this.idTokenKeyMatchesFilter(i,{clientId:this.clientId,...t}))return;let a=this.getIdTokenCredential(i,n);a&&this.credentialMatchesFilter(a,t,n)&&s.set(i,a)}),s}idTokenKeyMatchesFilter(t,n){let o=t.toLowerCase();return!(n.clientId&&o.indexOf(n.clientId.toLowerCase())===-1||n.homeAccountId&&o.indexOf(n.homeAccountId.toLowerCase())===-1)}removeIdToken(t,n){this.removeItem(t,n)}removeRefreshToken(t,n){this.removeItem(t,n)}getAccessToken(t,n,o,r){let s=n.correlationId;this.commonLogger.trace("1t7hz1",s);let i=Eo.createSearchScopes(n.scopes),a=n.authenticationScheme||Mn.BEARER,l=a&&a.toLowerCase()!==Mn.BEARER.toLowerCase()?So.ACCESS_TOKEN_WITH_AUTH_SCHEME:So.ACCESS_TOKEN,c={homeAccountId:t.homeAccountId,environment:t.environment,credentialType:l,clientId:this.clientId,realm:r||t.tenantId,target:i,tokenType:a,keyId:n.sshKid},u=o&&o.accessToken||this.getTokenKeys().accessToken,p=[];u.forEach(g=>{if(this.accessTokenKeyMatchesFilter(g,c,!0)){let f=this.getAccessTokenCredential(g,s);f&&this.credentialMatchesFilter(f,c,s)&&p.push(f)}});let m=p.length;return m<1?(this.commonLogger.info("1nckna",s),null):m>1?(this.commonLogger.info("1wkfwp",s),p.forEach(g=>{this.removeAccessToken(this.generateCredentialKey(g),s)}),this.performanceClient.addFields({multiMatchedAT:p.length},s),null):(this.commonLogger.info("06yt98",s),p[0])}accessTokenKeyMatchesFilter(t,n,o){let r=t.toLowerCase();if(n.clientId&&r.indexOf(n.clientId.toLowerCase())===-1||n.homeAccountId&&r.indexOf(n.homeAccountId.toLowerCase())===-1||n.realm&&r.indexOf(n.realm.toLowerCase())===-1)return!1;if(n.target){let s=n.target.asArray();for(let i=0;i{if(!this.accessTokenKeyMatchesFilter(s,t,!0))return;let i=this.getAccessTokenCredential(s,n);i&&this.credentialMatchesFilter(i,t,n)&&r.push(i)}),r}getRefreshToken(t,n,o,r){this.commonLogger.trace("0x53vi",o);let s=n?Fm:void 0,i={homeAccountId:t.homeAccountId,environment:t.environment,credentialType:So.REFRESH_TOKEN,clientId:this.clientId,familyId:s},a=r&&r.refreshToken||this.getTokenKeys().refreshToken,l=[];a.forEach(u=>{if(this.refreshTokenKeyMatchesFilter(u,i)){let p=this.getRefreshTokenCredential(u,o);p&&this.credentialMatchesFilter(p,i,o)&&l.push(p)}});let c=l.length;return c<1?(this.commonLogger.info("0dlw11",o),null):(c>1&&this.performanceClient.addFields({multiMatchedRT:c},o),this.commonLogger.info("0wcnep",o),l[0])}refreshTokenKeyMatchesFilter(t,n){let o=t.toLowerCase();return!(n.familyId&&o.indexOf(n.familyId.toLowerCase())===-1||!n.familyId&&n.clientId&&o.indexOf(n.clientId.toLowerCase())===-1||n.homeAccountId&&o.indexOf(n.homeAccountId.toLowerCase())===-1)}readAppMetadataFromCache(t,n){let o={environment:t,clientId:this.clientId},r=this.getAppMetadataFilteredBy(o,n),s=Object.keys(r).map(a=>r[a]),i=s.length;if(i<1)return null;if(i>1)throw re(Wq);return s[0]}isAppMetadataFOCI(t,n){let o=this.readAppMetadataFromCache(t,n);return!!(o&&o.familyId===Fm)}matchHomeAccountId(t,n){return typeof t.homeAccountId=="string"&&n===t.homeAccountId}matchLocalAccountIdFromTokenClaims(t,n){let o=t.oid||t.sub;return n===o}matchLocalAccountIdFromTenantProfile(t,n){return t.localAccountId===n}matchName(t,n){return n.toLowerCase()===t.name?.toLowerCase()}matchUsername(t,n){return!!(t&&typeof t=="string"&&n?.toLowerCase()===t.toLowerCase())}matchUserAssertionHash(t,n){return!!(t.userAssertionHash&&n===t.userAssertionHash)}matchEnvironment(t,n,o){if(this.staticAuthorityOptions){let s=x_e(this.staticAuthorityOptions,this.commonLogger,o);if(s.includes(n)&&s.includes(t.environment))return!0}let r=this.getAuthorityMetadataByAlias(n,o);return!!(r&&r.aliases.indexOf(t.environment)>-1)}matchCredentialType(t,n){return t.credentialType&&n.toLowerCase()===t.credentialType.toLowerCase()}matchClientId(t,n){return!!(t.clientId&&n===t.clientId)}matchFamilyId(t,n){return!!(t.familyId&&n===t.familyId)}matchRealm(t,n){return t.realm?.toLowerCase()===n.toLowerCase()}matchNativeAccountId(t,n){return!!(t.nativeAccountId&&n===t.nativeAccountId)}matchLoginHintFromTokenClaims(t,n){return t.login_hint===n||t.preferred_username===n||t.upn===n}matchSid(t,n){return t.sid===n}matchAuthorityType(t,n){return!!(t.authorityType&&n.toLowerCase()===t.authorityType.toLowerCase())}matchTarget(t,n){return t.credentialType!==So.ACCESS_TOKEN&&t.credentialType!==So.ACCESS_TOKEN_WITH_AUTH_SCHEME||!t.target?!1:Eo.fromString(t.target).containsScopeSet(n)}matchTokenType(t,n){return!!(t.tokenType&&t.tokenType===n)}matchKeyId(t,n){return!!(t.keyId&&t.keyId===n)}isAppMetadata(t){return t.indexOf(Xh)!==-1}isAuthorityMetadata(t){return t.indexOf(Zh)!==-1}generateAuthorityMetadataCacheKey(t){return`${Zh}-${this.clientId}-${t}`}static toObject(t,n){for(let o in n)t[o]=n[o];return t}},PT=class extends Wm{async setAccount(){throw re(yt)}getAccount(){throw re(yt)}async setIdTokenCredential(){throw re(yt)}getIdTokenCredential(){throw re(yt)}async setAccessTokenCredential(){throw re(yt)}getAccessTokenCredential(){throw re(yt)}async setRefreshTokenCredential(){throw re(yt)}getRefreshTokenCredential(){throw re(yt)}setAppMetadata(){throw re(yt)}getAppMetadata(){throw re(yt)}setServerTelemetry(){throw re(yt)}getServerTelemetry(){throw re(yt)}setAuthorityMetadata(){throw re(yt)}getAuthorityMetadata(){throw re(yt)}getAuthorityMetadataKeys(){throw re(yt)}setThrottlingCache(){throw re(yt)}getThrottlingCache(){throw re(yt)}removeItem(){throw re(yt)}getKeys(){throw re(yt)}getAccountKeys(){throw re(yt)}getTokenKeys(){throw re(yt)}generateCredentialKey(){throw re(yt)}generateAccountKey(){throw re(yt)}};var w_e={NotStarted:0,InProgress:1,Completed:2};var Rc=class{generateId(){return"callback-id"}startMeasurement(t,n){return{end:()=>null,discard:()=>{},add:()=>{},increment:()=>{},event:{eventId:this.generateId(),status:w_e.InProgress,authority:"",libraryName:"",libraryVersion:"",clientId:"",name:t,startTimeMs:Date.now(),correlationId:n||""}}}endMeasurement(){return null}discardMeasurements(){}removePerformanceCallback(){return!0}addPerformanceCallback(){return""}emitEvents(){}addFields(){}incrementFields(){}cacheEventByCorrelationId(){}};var LI={tokenRenewalOffsetSeconds:VO,preventCorsPreflight:!1},yHe={loggerCallback:()=>{},piiLoggingEnabled:!1,logLevel:Ut.Info,correlationId:""},vHe={async sendGetRequestAsync(){throw re(yt)},async sendPostRequestAsync(){throw re(yt)}},xHe={sku:pO,version:bl,cpu:"",os:""},THe={clientSecret:"",clientAssertion:void 0},wHe={azureCloudInstance:dd.None,tenant:`${eT}`},SHe={application:{appName:"",appVersion:""}};function lb({authOptions:e,systemOptions:t,loggerOptions:n,storageInterface:o,networkInterface:r,cryptoInterface:s,clientCredentials:i,libraryInfo:a,telemetry:l,serverTelemetryManager:c,persistencePlugin:u,serializableCache:p}){let m={...yHe,...n};return{authOptions:CHe(e),systemOptions:{...LI,...t},loggerOptions:m,storageInterface:o||new PT(e.clientId,cd,new Ao(m),new Rc),networkInterface:r||vHe,cryptoInterface:s||cd,clientCredentials:i||THe,libraryInfo:{...xHe,...a},telemetry:{...SHe,...l},serverTelemetryManager:c||null,persistencePlugin:u||null,serializableCache:p||null}}function CHe(e){return{clientCapabilities:[],azureCloudOptions:wHe,instanceAware:!1,isMcp:!1,...e}}function RI(e){return e.authOptions.authority.options.protocolMode===Tn.OIDC}var MI=class{constructor(t,n){this.cache=t,this.hasChanged=n}get cacheHasChanged(){return this.hasChanged}get tokenCache(){return this.cache}};var ko={};Rn(ko,{createAccessTokenEntity:()=>kH,createIdTokenEntity:()=>AH,createRefreshTokenEntity:()=>IH,generateAppMetadataKey:()=>DHe,generateAuthorityMetadataExpiresAt:()=>$I,isAccessTokenEntity:()=>IHe,isAppMetadataEntity:()=>$He,isAuthorityMetadataEntity:()=>NHe,isAuthorityMetadataExpired:()=>NI,isCredentialEntity:()=>DI,isIdTokenEntity:()=>PHe,isRefreshTokenEntity:()=>LHe,isServerTelemetryEntity:()=>RHe,isThrottlingEntity:()=>MHe,updateAuthorityEndpointMetadata:()=>ub,updateCloudDiscoveryMetadata:()=>RT});var rs={};Rn(rs,{delay:()=>kHe,isCacheExpired:()=>AHe,isTokenExpired:()=>cb,nowSeconds:()=>Vs,toDateFromSeconds:()=>LT,toSecondsFromDate:()=>EHe,wasClockTurnedBack:()=>EH});function Vs(){return Math.round(new Date().getTime()/1e3)}function EHe(e){return e.getTime()/1e3}function LT(e){return e?new Date(Number(e)*1e3):new Date}function cb(e,t){let n=Number(e)||0;return Vs()+t>n}function AHe(e,t){let n=Number(e)+t*24*60*60*1e3;return Date.now()>n}function EH(e){return Number(e)>Vs()}function kHe(e,t){return new Promise(n=>setTimeout(()=>n(t),e))}function AH(e,t,n,o,r){return{credentialType:So.ID_TOKEN,homeAccountId:e,environment:t,clientId:o,secret:n,realm:r,lastUpdatedAt:Date.now().toString()}}function kH(e,t,n,o,r,s,i,a,l,c,u,p,m){let g={homeAccountId:e,credentialType:So.ACCESS_TOKEN,secret:n,cachedAt:Vs().toString(),expiresOn:i.toString(),extendedExpiresOn:a.toString(),environment:t,clientId:o,realm:r,target:s,tokenType:u||Mn.BEARER,lastUpdatedAt:Date.now().toString()};if(p&&(g.userAssertionHash=p),c&&(g.refreshOn=c.toString()),g.tokenType?.toLowerCase()!==Mn.BEARER.toLowerCase())switch(g.credentialType=So.ACCESS_TOKEN_WITH_AUTH_SCHEME,g.tokenType){case Mn.POP:let f=Lc(n,l);if(!f?.cnf?.kid)throw re(eH);g.keyId=f.cnf.kid;break;case Mn.SSH:g.keyId=m}return g}function IH(e,t,n,o,r,s,i){let a={credentialType:So.REFRESH_TOKEN,homeAccountId:e,environment:t,clientId:o,secret:n,lastUpdatedAt:Date.now().toString()};return s&&(a.userAssertionHash=s),r&&(a.familyId=r),i&&(a.expiresOn=i.toString()),a}function DI(e){return e.hasOwnProperty("homeAccountId")&&e.hasOwnProperty("environment")&&e.hasOwnProperty("credentialType")&&e.hasOwnProperty("clientId")&&e.hasOwnProperty("secret")}function IHe(e){return e?DI(e)&&e.hasOwnProperty("realm")&&e.hasOwnProperty("target")&&(e.credentialType===So.ACCESS_TOKEN||e.credentialType===So.ACCESS_TOKEN_WITH_AUTH_SCHEME):!1}function PHe(e){return e?DI(e)&&e.hasOwnProperty("realm")&&e.credentialType===So.ID_TOKEN:!1}function LHe(e){return e?DI(e)&&e.credentialType===So.REFRESH_TOKEN:!1}function RHe(e,t){let n=e.indexOf(rT)===0,o=!0;return t&&(o=t.hasOwnProperty("failedRequests")&&t.hasOwnProperty("errors")&&t.hasOwnProperty("cacheHits")),n&&o}function MHe(e,t){let n=!1;e&&(n=e.indexOf(sT)===0);let o=!0;return t&&(o=t.hasOwnProperty("throttleTime")),n&&o}function DHe({environment:e,clientId:t}){return[Xh,e,t].join(Nm).toLowerCase()}function $He(e,t){return t?e.indexOf(Xh)===0&&t.hasOwnProperty("clientId")&&t.hasOwnProperty("environment"):!1}function NHe(e,t){return t?e.indexOf(Zh)===0&&t.hasOwnProperty("aliases")&&t.hasOwnProperty("preferred_cache")&&t.hasOwnProperty("preferred_network")&&t.hasOwnProperty("canonical_authority")&&t.hasOwnProperty("authorization_endpoint")&&t.hasOwnProperty("token_endpoint")&&t.hasOwnProperty("issuer")&&t.hasOwnProperty("aliasesFromNetwork")&&t.hasOwnProperty("endpointsFromNetwork")&&t.hasOwnProperty("expiresAt")&&t.hasOwnProperty("jwks_uri"):!1}function $I(){return Vs()+MO}function ub(e,t,n){e.authorization_endpoint=t.authorization_endpoint,e.token_endpoint=t.token_endpoint,e.end_session_endpoint=t.end_session_endpoint,e.issuer=t.issuer,e.endpointsFromNetwork=n,e.jwks_uri=t.jwks_uri}function RT(e,t,n){e.aliases=t.aliases,e.preferred_cache=t.preferred_cache,e.preferred_network=t.preferred_network,e.aliasesFromNetwork=n}function NI(e){return e.expiresAt<=Vs()}var Io={};Rn(Io,{AuthClientCreateTokenRequestBody:()=>UH,AuthClientExecuteTokenRequest:()=>FH,AuthorityGetCloudDiscoveryMetadataFromNetwork:()=>HH,AuthorityGetEndpointMetadataFromNetwork:()=>zH,AuthorityResolveEndpointsAsync:()=>qH,AuthorityUpdateCloudDiscoveryMetadata:()=>BH,AuthorityUpdateEndpointMetadata:()=>GH,AuthorityUpdateMetadataWithRegionalInformation:()=>FI,AuthorizationCodeClientExecutePostToTokenEndpoint:()=>RH,CacheManagerGetRefreshToken:()=>YH,GetAuthCodeUrl:()=>FHe,HandleCodeResponseFromServer:()=>UHe,HandleServerTokenResponse:()=>DT,NetworkClientSendPostRequestAsync:()=>PH,PopTokenGenerateCnf:()=>Km,RefreshTokenClientAcquireToken:()=>DH,RefreshTokenClientAcquireTokenWithCachedRefreshToken:()=>MT,RefreshTokenClientCreateTokenRequestBody:()=>$H,RefreshTokenClientExecutePostToTokenEndpoint:()=>LH,RefreshTokenClientExecuteTokenRequest:()=>MH,RegionDiscoveryDetectRegion:()=>VH,RegionDiscoveryGetCurrentVersion:()=>QH,RegionDiscoveryGetRegionFromIMDS:()=>UI,SetUserData:()=>OHe,SilentFlowClientGenerateResultFromCacheRecord:()=>NH,UpdateTokenEndpointAuthority:()=>OH});var PH="networkClientSendPostRequestAsync",LH="refreshTokenClientExecutePostToTokenEndpoint",RH="authorizationCodeClientExecutePostToTokenEndpoint",MH="refreshTokenClientExecuteTokenRequest",DH="refreshTokenClientAcquireToken",MT="refreshTokenClientAcquireTokenWithCachedRefreshToken",$H="refreshTokenClientCreateTokenRequestBody",NH="silentFlowClientGenerateResultFromCacheRecord",FHe="getAuthCodeUrl",UHe="handleCodeResponseFromServer",FH="authClientExecuteTokenRequest",UH="authClientCreateTokenRequestBody",OH="updateTokenEndpointAuthority",Km="popTokenGenerateCnf",DT="handleServerTokenResponse",qH="authorityResolveEndpointsAsync",HH="authorityGetCloudDiscoveryMetadataFromNetwork",BH="authorityUpdateCloudDiscoveryMetadata",zH="authorityGetEndpointMetadataFromNetwork",GH="authorityUpdateEndpointMetadata",FI="authorityUpdateMetadataWithRegionalInformation",VH="regionDiscoveryDetectRegion",UI="regionDiscoveryGetRegionFromIMDS",QH="regionDiscoveryGetCurrentVersion",YH="cacheManagerGetRefreshToken",OHe="setUserData";var mo=(e,t,n,o,r)=>(...s)=>{n.trace("1plfzx",r);let i=o.startMeasurement(t,r);r&&o.incrementFields({[`ext.${t}CallCount`]:1},r);try{let a=e(...s);return i.end({success:!0}),n.trace("1g8n6a",r),a}catch(a){n.trace("0cfd8i",r);try{n.trace(JSON.stringify(a),r)}catch{n.trace("00dty7",r)}throw i.end({success:!1},a),a}},W=(e,t,n,o,r)=>(...s)=>{n.trace("1plfzx",r);let i=o.startMeasurement(t,r);return r&&o.incrementFields({[`ext.${t}CallCount`]:1},r),e(...s).then(a=>(n.trace("1g8n6a",r),i.end({success:!0}),a)).catch(a=>{n.trace("0cfd8i",r);try{n.trace(JSON.stringify(a),r)}catch{n.trace("00dty7",r)}throw i.end({success:!1},a),a})};var qHe={SW:"sw"},ss=class{constructor(t,n){this.cryptoUtils=t,this.performanceClient=n}async generateCnf(t,n){let o=await W(this.generateKid.bind(this),Km,n,this.performanceClient,t.correlationId)(t),r=this.cryptoUtils.base64UrlEncode(JSON.stringify(o));return{kid:o.kid,reqCnfString:r}}async generateKid(t){return{kid:await this.cryptoUtils.getPublicKeyThumbprint(t),xms_ksl:qHe.SW}}async signPopToken(t,n,o){return this.signPayload(t,n,o)}async signPayload(t,n,o,r){let{resourceRequestMethod:s,resourceRequestUri:i,shrClaims:a,shrNonce:l,shrOptions:c}=o,p=(i?new Ct(i):void 0)?.getUrlComponents();return this.cryptoUtils.signJwt({at:t,ts:Vs(),m:s?.toUpperCase(),u:p?.HostNameAndPort,nonce:l||this.cryptoUtils.createNewGuid(),p:p?.AbsolutePath,q:p?.QueryString?[[],p.QueryString]:void 0,client_claims:a||void 0,...r},n,c,o.correlationId)}};var vl={};Rn(vl,{badToken:()=>$T,consentRequired:()=>JH,interactionRequired:()=>KH,interruptedUser:()=>ZH,loginRequired:()=>XH,nativeAccountUnavailable:()=>HHe,noTokensFound:()=>OI,refreshTokenExpired:()=>jH,uxNotAllowed:()=>WH});var OI="no_tokens_found",HHe="native_account_unavailable",jH="refresh_token_expired",WH="ux_not_allowed",KH="interaction_required",JH="consent_required",XH="login_required",$T="bad_token",ZH="interrupted_user";var S_e=[KH,JH,XH,$T,WH,ZH],BHe=["message_only","additional_action","basic_action","user_password_expired","consent_required","bad_token","ux_not_allowed","interrupted_user"],Dn=class e extends at{constructor(t,n,o,r,s,i,a,l){super(t,n,o),Object.setPrototypeOf(this,e.prototype),this.timestamp=r||"",this.traceId=s||"",this.correlationId=i||"",this.claims=a||"",this.name="InteractionRequiredAuthError",this.errorNo=l}};function qI(e,t,n){let o=!!e&&S_e.indexOf(e)>-1,r=!!n&&BHe.indexOf(n)>-1,s=!!t&&S_e.some(i=>t.indexOf(i)>-1);return o||s||r}function Jm(e,t){return new Dn(e,t)}var is=class e extends at{constructor(t,n,o,r,s){super(t,n,o),this.name="ServerError",this.errorNo=r,this.status=s,Object.setPrototypeOf(this,e.prototype)}};var ga={};Rn(ga,{generateLibraryState:()=>C_e,parseRequestState:()=>eB,setRequestState:()=>zHe});function zHe(e,t,n){let o=C_e(e,n);return t?`${o}${tT}${t}`:o}function C_e(e,t){if(!e)throw re(II);let n={id:e.createNewGuid()};t&&(n.meta=t);let o=JSON.stringify(n);return e.base64Encode(o)}function eB(e,t){if(!e)throw re(II);if(!t)throw re(Um);try{let n=t.split(tT),o=n[0],r=n.length>1?n.slice(1).join(tT):"",s=e(o),i=JSON.parse(s);return{userRequestState:r||"",libraryState:i}}catch{throw re(Um)}}var fa=class e{constructor(t,n,o,r,s,i,a){this.clientId=t,this.cacheStorage=n,this.cryptoObj=o,this.logger=r,this.performanceClient=s,this.serializableCache=i,this.persistencePlugin=a}validateTokenResponse(t,n,o){if(t.error||t.error_description||t.suberror){let r=`Error(s): ${t.error_codes||$m} - Timestamp: ${t.timestamp||$m} - Description: ${t.error_description||$m} - Correlation ID: ${t.correlation_id||$m} - Trace ID: ${t.trace_id||$m}`,s=t.error_codes?.length?t.error_codes[0]:void 0,i=new is(t.error,r,t.suberror,s,t.status);if(o&&t.status&&t.status>=AO&&t.status<=kO){this.logger.warning("16ks7j",n);return}else if(o&&t.status&&t.status>=CO&&t.status<=EO){this.logger.warning("0g61x3",n);return}throw qI(t.error,t.error_description,t.suberror)?new Dn(t.error,t.error_description,t.suberror,t.timestamp||"",t.trace_id||"",t.correlation_id||"",t.claims||"",s):i}}async handleServerTokenResponse(t,n,o,r,s,i,a,l,c,u){let p;if(t.id_token){if(p=Lc(t.id_token||"",this.cryptoObj.base64Decode),i&&i.nonce&&p.nonce!==i.nonce)throw re(Yq);if(r.maxAge||r.maxAge===0){let _=p.auth_time;if(!_)throw re(dT);AT(_,r.maxAge)}}this.homeAccountIdentifier=CH(t.client_info||"",n.authorityType,this.logger,this.cryptoObj,r.correlationId,p);let m;i&&i.state&&(m=eB(this.cryptoObj.base64Decode,i.state)),t.key_id=t.key_id||r.sshKid||void 0;let g=this.generateCacheRecord(t,n,o,r,p,a,i),f;try{if(this.persistencePlugin&&this.serializableCache&&(this.logger.verbose("0jbz5k",r.correlationId),f=new MI(this.serializableCache,!0),await this.persistencePlugin.beforeCacheAccess(f)),l&&!c&&g.account&&this.cacheStorage.getAllAccounts({homeAccountId:g.account.homeAccountId,environment:g.account.environment},r.correlationId).length<1)return this.logger.warning("1gmt66",r.correlationId),this.performanceClient?.addFields({acntLoggedOut:!0},r.correlationId),await e.generateAuthenticationResult(this.cryptoObj,n,g,!1,r,this.performanceClient,p,m,void 0,u);await this.cacheStorage.saveCacheRecord(g,r.correlationId,_H(p||{}),s,r.storeInCache)}finally{this.persistencePlugin&&this.serializableCache&&f&&(this.logger.verbose("1bh17u",r.correlationId),await this.persistencePlugin.afterCacheAccess(f))}return e.generateAuthenticationResult(this.cryptoObj,n,g,!1,r,this.performanceClient,p,m,t,u)}generateCacheRecord(t,n,o,r,s,i,a){let l=n.getPreferredCache();if(!l)throw re(mT);let c=jm(s),u,p;t.id_token&&s&&(u=AH(this.homeAccountIdentifier,l,t.id_token,this.clientId,c||""),p=HI(this.cacheStorage,n,this.homeAccountIdentifier,this.cryptoObj.base64Decode,r.correlationId,s,t.client_info,l,c,a,void 0,this.logger,this.performanceClient));let m=null;if(t.access_token){let _=t.scope?Eo.fromString(t.scope):new Eo(r.scopes||[]),h=(typeof t.expires_in=="string"?parseInt(t.expires_in,10):t.expires_in)||0,T=(typeof t.ext_expires_in=="string"?parseInt(t.ext_expires_in,10):t.ext_expires_in)||0,x=(typeof t.refresh_in=="string"?parseInt(t.refresh_in,10):t.refresh_in)||void 0,w=o+h,I=w+T,E=x&&x>0?o+x:void 0;m=kH(this.homeAccountIdentifier,l,t.access_token,this.clientId,c||n.tenant||"",_.printScopes(),w,I,this.cryptoObj.base64Decode,E,t.token_type,i,t.key_id);let Q=r.resource||null;Q&&(m.resource=Q)}let g=null;if(t.refresh_token){let _;if(t.refresh_token_expires_in){let h=typeof t.refresh_token_expires_in=="string"?parseInt(t.refresh_token_expires_in,10):t.refresh_token_expires_in;_=o+h,this.performanceClient?.addFields({ntwkRtExpiresOnSeconds:_},r.correlationId)}g=IH(this.homeAccountIdentifier,l,t.refresh_token,this.clientId,t.foci,i,_)}let f=null;return t.foci&&(f={clientId:this.clientId,environment:l,familyId:t.foci}),{account:p,idToken:u,accessToken:m,refreshToken:g,appMetadata:f}}static async generateAuthenticationResult(t,n,o,r,s,i,a,l,c,u){let p="",m=[],g=null,f,_,h="";if(o.accessToken){if(o.accessToken.tokenType===Mn.POP&&!s.popKid){let I=new ss(t,i),{secret:E,keyId:Q}=o.accessToken;if(!Q)throw re(oH);p=await I.signPopToken(E,Q,s)}else p=o.accessToken.secret;m=Eo.fromString(o.accessToken.target).asArray(),g=LT(o.accessToken.expiresOn),f=LT(o.accessToken.extendedExpiresOn),o.accessToken.refreshOn&&(_=LT(o.accessToken.refreshOn))}o.appMetadata&&(h=o.appMetadata.familyId===Fm?Fm:"");let T=a?.oid||a?.sub||"",x=a?.tid||"";c?.spa_accountid&&o.account&&(o.account.nativeAccountId=c?.spa_accountid);let w=o.account?Ym(ab(o.account),void 0,a,o.idToken?.secret):null;return{authority:n.canonicalAuthority,uniqueId:T,tenantId:x,scopes:m,account:w,idToken:o?.idToken?.secret||"",idTokenClaims:a||{},accessToken:p,fromCache:r,expiresOn:g,extExpiresOn:f,refreshOn:_,correlationId:s.correlationId,requestId:u||"",familyId:h,tokenType:o.accessToken?.tokenType||"",state:l?l.userRequestState:"",cloudGraphHostName:o.account?.cloudGraphHostName||"",msGraphHost:o.account?.msGraphHost||"",code:c?.spa_code,fromPlatformBroker:!1}}};function HI(e,t,n,o,r,s,i,a,l,c,u,p,m){p?.verbose("09jz0t",r);let g=a||t.getPreferredCache(),f=e.getAccountsFilteredBy({homeAccountId:n,environment:g},r);m?.addFields({cacheMatchedAccounts:f.length},r),f.length>1&&p?.warning("0x7ad1",r);let h=(f.length===1?f[0]:null)||SH({homeAccountId:n,idTokenClaims:s,clientInfo:i,environment:a,cloudGraphHostName:c?.cloud_graph_host_name,msGraphHost:c?.msgraph_host,nativeAccountId:u},t,o),T=h.tenantProfiles||[],x=l||h.realm;if(x&&!T.find(w=>w.tenantId===x)){let w=_l(n,h.localAccountId,x,s);T.push(w)}return h.tenantProfiles=T,h}var wr={HOME_ACCOUNT_ID:"home_account_id",UPN:"UPN"};async function BI(e,t,n){return typeof e=="string"?e:e({clientId:t,tokenEndpoint:n})}function Mc(e,t,n){return{clientId:e,authority:t.authority,scopes:t.scopes,homeAccountIdentifier:n,claims:t.claims,authenticationScheme:t.authenticationScheme,resourceRequestMethod:t.resourceRequestMethod,resourceRequestUri:t.resourceRequestUri,shrClaims:t.shrClaims,sshKid:t.sshKid,embeddedClientId:t.embeddedClientId||t.extraParameters?.clientId}}var Dc=class e{static generateThrottlingStorageKey(t){return`${sT}.${JSON.stringify(t)}`}static preProcess(t,n,o){let r=e.generateThrottlingStorageKey(n),s=t.getThrottlingCache(r,o);if(s){if(s.throttleTime=500&&t.status<600}static checkResponseForRetryAfter(t){return t.headers?t.headers.hasOwnProperty(Zn.RETRY_AFTER)&&(t.status<200||t.status>=300):!1}static calculateThrottleTime(t){let n=t<=0?0:t,o=Date.now()/1e3;return Math.floor(Math.min(o+(n||OO),o+qO)*1e3)}static removeThrottle(t,n,o,r){let s=Mc(n,o,r),i=this.generateThrottlingStorageKey(s);t.removeItem(i,o.correlationId)}};var db=class e extends at{constructor(t,n,o){super(t.errorCode,t.errorMessage,t.subError),Object.setPrototypeOf(this,e.prototype),this.name="NetworkError",this.error=t,this.httpStatus=n,this.responseHeaders=o}};function Xm(e,t,n,o){return e.errorMessage=`${e.errorMessage}, additionalErrorInfo: error.name:${o?.name}, error.message:${o?.message}`,new db(e,t,n)}function zI(e,t,n){let o={};if(o[Zn.CONTENT_TYPE]=_O,!t&&n)switch(n.type){case wr.HOME_ACCOUNT_ID:try{let r=yl(n.credential);o[Zn.CCS_HEADER]=`Oid:${r.uid}@${r.utid}`}catch{e.verbose("1qhtee","")}break;case wr.UPN:o[Zn.CCS_HEADER]=`UPN: ${n.credential}`;break}return o}function GI(e,t,n,o){let r=new Map;return e.embeddedClientId&&Pc(r,t,n),e.extraQueryParameters&&Ic(r,e.extraQueryParameters),Gm(r,e.correlationId),Om(r,e.correlationId,o),hl(r)}async function VI(e,t,n,o,r,s,i,a,l,c){let u=await GHe(o,e,{body:t,headers:n},r,s,i,a,l);return c&&u.status<500&&u.status!==429&&c.clearTelemetryCache(),u}async function GHe(e,t,n,o,r,s,i,a){Dc.preProcess(r,e,o);let l;try{l=await W(s.sendPostRequestAsync.bind(s),PH,i,a,o)(t,n);let c=l.headers||{};a?.addFields({refreshTokenSize:l.body.refresh_token?.length||0,httpVerToken:c[Zn.X_MS_HTTP_VERSION]||"",requestId:c[Zn.X_MS_REQUEST_ID]||""},o)}catch(c){if(c instanceof db){let u=c.responseHeaders;throw u&&a?.addFields({httpVerToken:u[Zn.X_MS_HTTP_VERSION]||"",requestId:u[Zn.X_MS_REQUEST_ID]||"",contentTypeHeader:u[Zn.CONTENT_TYPE]||void 0,contentLengthHeader:u[Zn.CONTENT_LENGTH]||void 0,httpStatus:c.httpStatus},o),c.error}throw c instanceof at?c:re(zq)}return Dc.postProcess(r,e,l,o),l}var YI={};Rn(YI,{createDiscoveredInstance:()=>nB});function E_e(e){return e.hasOwnProperty("authorization_endpoint")&&e.hasOwnProperty("token_endpoint")&&e.hasOwnProperty("issuer")&&e.hasOwnProperty("jwks_uri")}function A_e(e){return e.hasOwnProperty("tenant_discovery_endpoint")&&e.hasOwnProperty("metadata")}function k_e(e){return e.hasOwnProperty("error")&&e.hasOwnProperty("error_description")}var NT=class e{constructor(t,n,o,r){this.networkInterface=t,this.logger=n,this.performanceClient=o,this.correlationId=r}async detectRegion(t,n){let o=t;if(o)n.region_source=ad.ENVIRONMENT_VARIABLE;else{let r=e.IMDS_OPTIONS;try{let s=await W(this.getRegionFromIMDS.bind(this),UI,this.logger,this.performanceClient,this.correlationId)(yO,r);if(s.status===uI&&(o=s.body,n.region_source=ad.IMDS),s.status===dI){let i=await W(this.getCurrentVersion.bind(this),QH,this.logger,this.performanceClient,this.correlationId)(r);if(!i)return n.region_source=ad.FAILED_AUTO_DETECTION,null;let a=await W(this.getRegionFromIMDS.bind(this),UI,this.logger,this.performanceClient,this.correlationId)(i,r);a.status===uI&&(o=a.body,n.region_source=ad.IMDS)}}catch{return n.region_source=ad.FAILED_AUTO_DETECTION,null}}return o||(n.region_source=ad.FAILED_AUTO_DETECTION),o||null}async getRegionFromIMDS(t,n){return this.networkInterface.sendGetRequestAsync(`${cI}?api-version=${t}&format=text`,n,vO)}async getCurrentVersion(t){try{let n=await this.networkInterface.sendGetRequestAsync(`${cI}?format=json`,t);return n.status===dI&&n.body&&n.body["newest-versions"]&&n.body["newest-versions"].length>0?n.body["newest-versions"][0]:null}catch{return null}}};NT.IMDS_OPTIONS={headers:{Metadata:"true"}};var $c=class e{constructor(t,n,o,r,s,i,a,l){this.canonicalAuthority=t,this._canonicalAuthority.validateAsUri(),this.networkInterface=n,this.cacheManager=o,this.authorityOptions=r,this.regionDiscoveryMetadata={region_used:void 0,region_source:void 0,region_outcome:void 0},this.logger=s,this.performanceClient=a,this.correlationId=i,this.managedIdentity=l||!1,this.regionDiscovery=new NT(n,this.logger,this.performanceClient,this.correlationId)}getAuthorityType(t){if(t.HostNameAndPort.endsWith(aI))return $r.Ciam;let n=t.PathSegments;if(n.length)switch(n[0].toLowerCase()){case gO:return $r.Adfs;case fO:return $r.Dsts}return $r.Default}get authorityType(){return this.getAuthorityType(this.canonicalAuthorityUrlComponents)}get protocolMode(){return this.authorityOptions.protocolMode}get options(){return this.authorityOptions}get canonicalAuthority(){return this._canonicalAuthority.urlString}set canonicalAuthority(t){this._canonicalAuthority=new Ct(t),this._canonicalAuthority.validateAsUri(),this._canonicalAuthorityUrlComponents=null}get canonicalAuthorityUrlComponents(){return this._canonicalAuthorityUrlComponents||(this._canonicalAuthorityUrlComponents=this._canonicalAuthority.getUrlComponents()),this._canonicalAuthorityUrlComponents}get hostnameAndPort(){return this.canonicalAuthorityUrlComponents.HostNameAndPort.toLowerCase()}get tenant(){return this.canonicalAuthorityUrlComponents.PathSegments[0]}get authorizationEndpoint(){if(this.discoveryComplete())return this.replacePath(this.metadata.authorization_endpoint);throw re(ma)}get tokenEndpoint(){if(this.discoveryComplete())return this.replacePath(this.metadata.token_endpoint);throw re(ma)}get deviceCodeEndpoint(){if(this.discoveryComplete())return this.replacePath(this.metadata.token_endpoint.replace("/token","/devicecode"));throw re(ma)}get endSessionEndpoint(){if(this.discoveryComplete()){if(!this.metadata.end_session_endpoint)throw re(nH);return this.replacePath(this.metadata.end_session_endpoint)}else throw re(ma)}get selfSignedJwtAudience(){if(this.discoveryComplete())return this.replacePath(this.metadata.issuer);throw re(ma)}get jwksUri(){if(this.discoveryComplete())return this.replacePath(this.metadata.jwks_uri);throw re(ma)}canReplaceTenant(t){return t.PathSegments.length===1&&!e.reservedTenantDomains.has(t.PathSegments[0])&&this.getAuthorityType(t)===$r.Default&&this.protocolMode!==Tn.OIDC}replaceTenant(t){return t.replace(/{tenant}|{tenantid}/g,this.tenant)}replacePath(t){let n=t,r=new Ct(this.metadata.canonical_authority).getUrlComponents(),s=r.PathSegments;return this.canonicalAuthorityUrlComponents.PathSegments.forEach((a,l)=>{let c=s[l];if(l===0&&this.canReplaceTenant(r)){let u=new Ct(this.metadata.authorization_endpoint).getUrlComponents().PathSegments[0];c!==u&&(this.logger.verbose("1q3g2x",this.correlationId),c=u)}a!==c&&(n=n.replace(`/${c}/`,`/${a}/`))}),this.replaceTenant(n)}get defaultOpenIdConfigurationEndpoint(){let t=this.hostnameAndPort;return this.canonicalAuthority.endsWith("v2.0/")||this.authorityType===$r.Adfs||this.protocolMode===Tn.OIDC&&!this.isAliasOfKnownMicrosoftAuthority(t)?`${this.canonicalAuthority}.well-known/openid-configuration`:`${this.canonicalAuthority}v2.0/.well-known/openid-configuration`}discoveryComplete(){return!!this.metadata}async resolveEndpointsAsync(){let t=this.getCurrentMetadataEntity(),n=await W(this.updateCloudDiscoveryMetadata.bind(this),BH,this.logger,this.performanceClient,this.correlationId)(t);this.canonicalAuthority=this.canonicalAuthority.replace(this.hostnameAndPort,t.preferred_network);let o=await W(this.updateEndpointMetadata.bind(this),GH,this.logger,this.performanceClient,this.correlationId)(t);this.updateCachedMetadata(t,n,{source:o}),this.performanceClient?.addFields({cloudDiscoverySource:n,authorityEndpointSource:o},this.correlationId)}getCurrentMetadataEntity(){let t=this.cacheManager.getAuthorityMetadataByAlias(this.hostnameAndPort,this.correlationId);return t||(t={aliases:[],preferred_cache:this.hostnameAndPort,preferred_network:this.hostnameAndPort,canonical_authority:this.canonicalAuthority,authorization_endpoint:"",token_endpoint:"",end_session_endpoint:"",issuer:"",aliasesFromNetwork:!1,endpointsFromNetwork:!1,expiresAt:$I(),jwks_uri:""}),t}updateCachedMetadata(t,n,o){n!==Gs.CACHE&&o?.source!==Gs.CACHE&&(t.expiresAt=$I(),t.canonical_authority=this.canonicalAuthority);let r=this.cacheManager.generateAuthorityMetadataCacheKey(t.preferred_cache,this.correlationId);this.cacheManager.setAuthorityMetadata(r,t,this.correlationId),this.metadata=t}async updateEndpointMetadata(t){let n=this.updateEndpointMetadataFromLocalSources(t);if(n){if(n.source===Gs.HARDCODED_VALUES&&this.authorityOptions.azureRegionConfiguration?.azureRegion&&n.metadata){let r=await W(this.updateMetadataWithRegionalInformation.bind(this),FI,this.logger,this.performanceClient,this.correlationId)(n.metadata);ub(t,r,!1),t.canonical_authority=this.canonicalAuthority}return n.source}let o=await W(this.getEndpointMetadataFromNetwork.bind(this),zH,this.logger,this.performanceClient,this.correlationId)();if(o)return this.authorityOptions.azureRegionConfiguration?.azureRegion&&(o=await W(this.updateMetadataWithRegionalInformation.bind(this),FI,this.logger,this.performanceClient,this.correlationId)(o)),ub(t,o,!0),Gs.NETWORK;throw re(Gq,this.defaultOpenIdConfigurationEndpoint)}updateEndpointMetadataFromLocalSources(t){this.logger.verbose("1fi0kc",this.correlationId);let n=this.getEndpointMetadataFromConfig();if(n)return this.logger.verbose("06t0uj",this.correlationId),ub(t,n,!1),{source:Gs.CONFIG};this.logger.verbose("151k0p",this.correlationId);let o=this.getEndpointMetadataFromHardcodedValues();if(o)return ub(t,o,!1),{source:Gs.HARDCODED_VALUES,metadata:o};this.logger.verbose("1imop5",this.correlationId);let r=NI(t);return this.isAuthoritySameType(t)&&t.endpointsFromNetwork&&!r?(this.logger.verbose("16uq31",""),{source:Gs.CACHE}):(r&&this.logger.verbose("0uoibc",""),null)}isAuthoritySameType(t){return new Ct(t.canonical_authority).getUrlComponents().PathSegments.length===this.canonicalAuthorityUrlComponents.PathSegments.length}getEndpointMetadataFromConfig(){if(this.authorityOptions.authorityMetadata)try{return JSON.parse(this.authorityOptions.authorityMetadata)}catch{throw $t(Oq)}return null}async getEndpointMetadataFromNetwork(){let t={},n=this.defaultOpenIdConfigurationEndpoint;this.logger.verbose("1y65x6",this.correlationId);try{let o=await this.networkInterface.sendGetRequestAsync(n,t);return E_e(o.body)?o.body:(this.logger.verbose("1koyv8",this.correlationId),null)}catch{return this.logger.verbose("0a9wik",this.correlationId),null}}getEndpointMetadataFromHardcodedValues(){return this.hostnameAndPort in yH?yH[this.hostnameAndPort]:null}async updateMetadataWithRegionalInformation(t){let n=this.authorityOptions.azureRegionConfiguration?.azureRegion;if(n){if(n!==xO)return this.regionDiscoveryMetadata.region_outcome=iT.CONFIGURED_NO_AUTO_DETECTION,this.regionDiscoveryMetadata.region_used=n,e.replaceWithRegionalInformation(t,n);let o=await W(this.regionDiscovery.detectRegion.bind(this.regionDiscovery),VH,this.logger,this.performanceClient,this.correlationId)(this.authorityOptions.azureRegionConfiguration?.environmentRegion,this.regionDiscoveryMetadata);if(o)return this.regionDiscoveryMetadata.region_outcome=iT.AUTO_DETECTION_REQUESTED_SUCCESSFUL,this.regionDiscoveryMetadata.region_used=o,e.replaceWithRegionalInformation(t,o);this.regionDiscoveryMetadata.region_outcome=iT.AUTO_DETECTION_REQUESTED_FAILED}return t}async updateCloudDiscoveryMetadata(t){let n=this.updateCloudDiscoveryMetadataFromLocalSources(t);if(n)return n;let o=await W(this.getCloudDiscoveryMetadataFromNetwork.bind(this),HH,this.logger,this.performanceClient,this.correlationId)();if(o)return RT(t,o,!0),Gs.NETWORK;throw $t(qq)}updateCloudDiscoveryMetadataFromLocalSources(t){this.logger.verbose("0jhlgt",this.correlationId),this.logger.verbosePii("1fy7uz",this.correlationId),this.logger.verbosePii("08zabj",this.correlationId),this.logger.verbosePii("1o1kv3",this.correlationId);let n=this.getCloudDiscoveryMetadataFromConfig();if(n)return this.logger.verbose("1nakio",this.correlationId),RT(t,n,!1),Gs.CONFIG;this.logger.verbose("1x74aj",this.correlationId);let o=T_e(this.hostnameAndPort);if(o)return this.logger.verbose("0by47c",this.correlationId),RT(t,o,!1),Gs.HARDCODED_VALUES;this.logger.verbose("0r2fzy",this.correlationId);let r=NI(t);return this.isAuthoritySameType(t)&&t.aliasesFromNetwork&&!r?(this.logger.verbose("1uffgh",""),Gs.CACHE):(r&&this.logger.verbose("0uoibc",""),null)}getCloudDiscoveryMetadataFromConfig(){if(this.authorityType===$r.Ciam)return this.logger.verbose("04y84h",this.correlationId),e.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort);if(this.authorityOptions.cloudDiscoveryMetadata){this.logger.verbose("0gszr3",this.correlationId);try{this.logger.verbose("1iifkx",this.correlationId);let t=JSON.parse(this.authorityOptions.cloudDiscoveryMetadata),n=kT(t.metadata,this.hostnameAndPort);if(this.logger.verbose("0q67e3",""),n)return this.logger.verbose("0hzfao",this.correlationId),n;this.logger.verbose("1ajz3u",this.correlationId)}catch{throw this.logger.verbose("1wq5tu",this.correlationId),$t(SI)}}return this.isInKnownAuthorities()?(this.logger.verbose("0mt9al",this.correlationId),e.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort)):null}async getCloudDiscoveryMetadataFromNetwork(){let t=`${hO}${this.canonicalAuthority}oauth2/v2.0/authorize`,n={},o=null;try{let r=await this.networkInterface.sendGetRequestAsync(t,n),s,i;if(A_e(r.body))s=r.body,i=s.metadata,this.logger.verbosePii("1vglyt",this.correlationId);else if(k_e(r.body)){if(this.logger.warning("062uto",this.correlationId),s=r.body,s.error===SO)return this.logger.error("1x90tm",this.correlationId),null;this.logger.warning("0wchdm",this.correlationId),this.logger.warning("1s5mpv",this.correlationId),this.logger.warning("1yhqpw",this.correlationId),i=[]}else return this.logger.error("0768g0",this.correlationId),null;this.logger.verbose("1lrobr",this.correlationId),o=kT(i,this.hostnameAndPort)}catch(r){return r instanceof at?this.logger.error("0vwhc7",this.correlationId):this.logger.error("0s2z41",this.correlationId),null}return o||(this.logger.warning("0jp28q",this.correlationId),this.logger.verbose("130sd8",this.correlationId),o=e.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort)),o}isInKnownAuthorities(){return this.authorityOptions.knownAuthorities.filter(n=>n&&Ct.getDomainFromUrl(n).toLowerCase()===this.hostnameAndPort).length>0}static generateAuthority(t,n){let o;if(n&&n.azureCloudInstance!==dd.None){let r=n.tenant?n.tenant:eT;o=`${n.azureCloudInstance}/${r}/`}return o||t}static createCloudDiscoveryMetadataFromHost(t){return{preferred_network:t,preferred_cache:t,aliases:[t]}}getPreferredCache(){if(this.managedIdentity)return mO;if(this.discoveryComplete())return this.metadata.preferred_cache;throw re(ma)}isAlias(t){return this.metadata.aliases.indexOf(t)>-1}isAliasOfKnownMicrosoftAuthority(t){return xH.has(t)}static isPublicCloudAuthority(t){return wO.indexOf(t)>=0}static buildRegionalAuthorityString(t,n,o){let r=new Ct(t);r.validateAsUri();let s=r.getUrlComponents(),i=`${n}.${s.HostNameAndPort}`;this.isPublicCloudAuthority(s.HostNameAndPort)&&(i=`${n}.${TO}`);let a=Ct.constructAuthorityUriFromObject({...r.getUrlComponents(),HostNameAndPort:i}).urlString;return o?`${a}?${o}`:a}static replaceWithRegionalInformation(t,n){let o={...t};return o.authorization_endpoint=e.buildRegionalAuthorityString(o.authorization_endpoint,n),o.token_endpoint=e.buildRegionalAuthorityString(o.token_endpoint,n),o.end_session_endpoint&&(o.end_session_endpoint=e.buildRegionalAuthorityString(o.end_session_endpoint,n)),o}static transformCIAMAuthority(t){let n=t,r=new Ct(t).getUrlComponents();if(r.PathSegments.length===0&&r.HostNameAndPort.endsWith(aI)){let s=r.HostNameAndPort.split(".")[0];n=`${n}${s}${bO}`}return n}};$c.reservedTenantDomains=new Set(["{tenant}","{tenantid}",da.COMMON,da.CONSUMERS,da.ORGANIZATIONS]);function I_e(e){let o=new Ct(e).getUrlComponents().PathSegments.slice(-1)[0]?.toLowerCase();switch(o){case da.COMMON:case da.ORGANIZATIONS:case da.CONSUMERS:return;default:return o}}function QI(e){return e.endsWith(jh)?e:`${e}${jh}`}function tB(e){let t=e.cloudDiscoveryMetadata,n;if(t)try{n=JSON.parse(t)}catch{throw $t(SI)}return{canonicalAuthority:e.authority?QI(e.authority):void 0,knownAuthorities:e.knownAuthorities,cloudDiscoveryMetadata:n}}async function nB(e,t,n,o,r,s,i){let a=$c.transformCIAMAuthority(QI(e)),l=new $c(a,t,n,o,r,s,i);try{return await W(l.resolveEndpointsAsync.bind(l),qH,r,i,s)(),l}catch{throw re(ma)}}var Zm=class{constructor(t,n){this.includeRedirectUri=!0,this.config=lb(t),this.logger=new Ao(this.config.loggerOptions,ud,bl),this.cryptoUtils=this.config.cryptoInterface,this.cacheManager=this.config.storageInterface,this.networkClient=this.config.networkInterface,this.serverTelemetryManager=this.config.serverTelemetryManager,this.authority=this.config.authOptions.authority,this.performanceClient=n,this.oidcDefaultScopes=this.config.authOptions.authority.options.OIDCOptions?.defaultScopes}async acquireToken(t,n,o){if(!t.code)throw re(Kq);o&&o.cloud_instance_host_name&&await W(this.updateTokenEndpointAuthority.bind(this),OH,this.logger,this.performanceClient,t.correlationId)(o.cloud_instance_host_name,t.correlationId);let r=Vs(),s=await W(this.executeTokenRequest.bind(this),FH,this.logger,this.performanceClient,t.correlationId)(this.authority,t,this.serverTelemetryManager),i=s.headers?.[Zn.X_MS_REQUEST_ID],a=new fa(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,this.performanceClient,this.config.serializableCache,this.config.persistencePlugin);return a.validateTokenResponse(s.body,t.correlationId),W(a.handleServerTokenResponse.bind(a),DT,this.logger,this.performanceClient,t.correlationId)(s.body,this.authority,r,t,n,o,void 0,void 0,void 0,i)}getLogoutUri(t){if(!t)throw $t(Fq);let n=this.createLogoutUrlQueryString(t);return Ct.appendQueryString(this.authority.endSessionEndpoint,n)}async executeTokenRequest(t,n,o){let r=GI(n,this.config.authOptions.clientId,this.config.authOptions.redirectUri,this.performanceClient),s=Ct.appendQueryString(t.tokenEndpoint,r),i=await W(this.createTokenRequestBody.bind(this),UH,this.logger,this.performanceClient,n.correlationId)(n),a;if(n.clientInfo)try{let u=ib(n.clientInfo,this.cryptoUtils.base64Decode);a={credential:`${u.uid}${Jh}${u.utid}`,type:wr.HOME_ACCOUNT_ID}}catch{this.logger.verbose("0wznt3",n.correlationId)}let l=zI(this.logger,this.config.systemOptions.preventCorsPreflight,a||n.ccsCredential),c=Mc(this.config.authOptions.clientId,n);return W(VI,RH,this.logger,this.performanceClient,n.correlationId)(s,i,l,c,n.correlationId,this.cacheManager,this.networkClient,this.logger,this.performanceClient,o)}async createTokenRequestBody(t){let n=new Map;if(Hm(n,t.embeddedClientId||t.extraParameters?.[fl]||this.config.authOptions.clientId),this.includeRedirectUri)Bm(n,t.redirectUri);else if(!t.redirectUri)throw $t(Rq);if(qm(n,t.scopes,!0,this.oidcDefaultScopes),ET(n,t.resource),pH(n,t.code),gT(n,this.config.libraryInfo),fT(n,this.config.telemetry.application),CT(n),this.serverTelemetryManager&&!RI(this.config)&&ST(n,this.serverTelemetryManager),t.codeVerifier&&gH(n,t.codeVerifier),this.config.clientCredentials.clientSecret&&bT(n,this.config.clientCredentials.clientSecret),this.config.clientCredentials.clientAssertion){let r=this.config.clientCredentials.clientAssertion;_T(n,await BI(r.assertion,this.config.authOptions.clientId,t.resourceRequestUri)),yT(n,r.assertionType)}if(vT(n,oT.AUTHORIZATION_CODE_GRANT),Vm(n),t.authenticationScheme===Mn.POP){let r=new ss(this.cryptoUtils,this.performanceClient),s;t.popKid?s=this.cryptoUtils.encodeKid(t.popKid):s=(await W(r.generateCnf.bind(r),Km,this.logger,this.performanceClient,t.correlationId)(t,this.logger)).reqCnfString,TT(n,s)}else if(t.authenticationScheme===Mn.SSH)if(t.sshJwk)wT(n,t.sshJwk);else throw $t(uT);(!Gn.isEmptyObj(t.claims)||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0)&&zm(n,t.claims,this.config.authOptions.clientCapabilities);let o;if(t.clientInfo)try{let r=ib(t.clientInfo,this.cryptoUtils.base64Decode);o={credential:`${r.uid}${Jh}${r.utid}`,type:wr.HOME_ACCOUNT_ID}}catch{this.logger.verbose("0wznt3",t.correlationId)}else o=t.ccsCredential;if(this.config.systemOptions.preventCorsPreflight&&o)switch(o.type){case wr.HOME_ACCOUNT_ID:try{let r=yl(o.credential);kc(n,r)}catch{this.logger.verbose("1qhtee",t.correlationId)}break;case wr.UPN:ld(n,o.credential);break}return t.embeddedClientId&&Pc(n,this.config.authOptions.clientId,this.config.authOptions.redirectUri),t.extraParameters&&Ic(n,t.extraParameters),t.enableSpaAuthorizationCode&&(!t.extraParameters||!t.extraParameters[vI])&&Ic(n,{[vI]:"1"}),Om(n,t.correlationId,this.performanceClient),hl(n)}createLogoutUrlQueryString(t){let n=new Map;return t.postLogoutRedirectUri&&aH(n,t.postLogoutRedirectUri),t.correlationId&&Gm(n,t.correlationId),t.idTokenHint&&lH(n,t.idTokenHint),t.state&&hT(n,t.state),t.logoutHint&&hH(n,t.logoutHint),t.extraQueryParameters&&Ic(n,t.extraQueryParameters),this.config.authOptions.instanceAware&&xT(n),hl(n)}async updateTokenEndpointAuthority(t,n){let o=`https://${t}/${this.authority.tenant}/`,r=await nB(o,this.networkClient,this.cacheManager,this.authority.options,this.logger,n,this.performanceClient);this.authority=r}};var VHe=300,FT=class{constructor(t,n){this.config=lb(t),this.logger=new Ao(this.config.loggerOptions,ud,bl),this.cryptoUtils=this.config.cryptoInterface,this.cacheManager=this.config.storageInterface,this.networkClient=this.config.networkInterface,this.serverTelemetryManager=this.config.serverTelemetryManager,this.authority=this.config.authOptions.authority,this.performanceClient=n}async acquireToken(t,n){let o=Vs(),r=await W(this.executeTokenRequest.bind(this),MH,this.logger,this.performanceClient,t.correlationId)(t,this.authority),s=r.headers?.[Zn.X_MS_REQUEST_ID],i=new fa(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,this.performanceClient,this.config.serializableCache,this.config.persistencePlugin);return i.validateTokenResponse(r.body,t.correlationId),W(i.handleServerTokenResponse.bind(i),DT,this.logger,this.performanceClient,t.correlationId)(r.body,this.authority,o,t,n,void 0,void 0,!0,t.forceCache,s)}async acquireTokenByRefreshToken(t,n){if(!t)throw $t(Nq);if(!t.account)throw re(pT);if(this.cacheManager.isAppMetadataFOCI(t.account.environment,t.correlationId))try{return await W(this.acquireTokenWithCachedRefreshToken.bind(this),MT,this.logger,this.performanceClient,t.correlationId)(t,!0,n)}catch(r){let s=r instanceof Dn&&r.errorCode===OI,i=r instanceof is&&r.errorCode===BO&&r.subError===zO;if(s||i)return W(this.acquireTokenWithCachedRefreshToken.bind(this),MT,this.logger,this.performanceClient,t.correlationId)(t,!1,n);throw r}return W(this.acquireTokenWithCachedRefreshToken.bind(this),MT,this.logger,this.performanceClient,t.correlationId)(t,!1,n)}async acquireTokenWithCachedRefreshToken(t,n,o){let r=mo(this.cacheManager.getRefreshToken.bind(this.cacheManager),YH,this.logger,this.performanceClient,t.correlationId)(t.account,n,t.correlationId,void 0);if(!r)throw Jm(OI);if(r.expiresOn){let i=t.refreshTokenExpirationOffsetSeconds||VHe;if(this.performanceClient?.addFields({cacheRtExpiresOnSeconds:Number(r.expiresOn),rtOffsetSeconds:i},t.correlationId),cb(r.expiresOn,i))throw Jm(jH)}let s={...t,refreshToken:r.secret,authenticationScheme:t.authenticationScheme||Mn.BEARER,ccsCredential:{credential:t.account.homeAccountId,type:wr.HOME_ACCOUNT_ID}};try{return await W(this.acquireToken.bind(this),DH,this.logger,this.performanceClient,t.correlationId)(s,o)}catch(i){if(i instanceof Dn&&i.subError===$T){this.logger.verbose("1pg3ap",t.correlationId);let a=this.cacheManager.generateCredentialKey(r);this.cacheManager.removeRefreshToken(a,t.correlationId)}throw i}}async executeTokenRequest(t,n){let o=GI(t,this.config.authOptions.clientId,this.config.authOptions.redirectUri,this.performanceClient),r=Ct.appendQueryString(n.tokenEndpoint,o),s=await W(this.createTokenRequestBody.bind(this),$H,this.logger,this.performanceClient,t.correlationId)(t),i=zI(this.logger,this.config.systemOptions.preventCorsPreflight,t.ccsCredential),a=Mc(this.config.authOptions.clientId,t);return W(VI,LH,this.logger,this.performanceClient,t.correlationId)(r,s,i,a,t.correlationId,this.cacheManager,this.networkClient,this.logger,this.performanceClient,this.serverTelemetryManager)}async createTokenRequestBody(t){let n=new Map;if(Hm(n,t.embeddedClientId||t.extraParameters?.[fl]||this.config.authOptions.clientId),t.redirectUri&&Bm(n,t.redirectUri),qm(n,t.scopes,!0,this.config.authOptions.authority.options.OIDCOptions?.defaultScopes),vT(n,oT.REFRESH_TOKEN_GRANT),Vm(n),gT(n,this.config.libraryInfo),fT(n,this.config.telemetry.application),CT(n),this.serverTelemetryManager&&!RI(this.config)&&ST(n,this.serverTelemetryManager),mH(n,t.refreshToken),this.config.clientCredentials.clientSecret&&bT(n,this.config.clientCredentials.clientSecret),this.config.clientCredentials.clientAssertion){let o=this.config.clientCredentials.clientAssertion;_T(n,await BI(o.assertion,this.config.authOptions.clientId,t.resourceRequestUri)),yT(n,o.assertionType)}if(t.authenticationScheme===Mn.POP){let o=new ss(this.cryptoUtils,this.performanceClient),r;t.popKid?r=this.cryptoUtils.encodeKid(t.popKid):r=(await W(o.generateCnf.bind(o),Km,this.logger,this.performanceClient,t.correlationId)(t,this.logger)).reqCnfString,TT(n,r)}else if(t.authenticationScheme===Mn.SSH)if(t.sshJwk)wT(n,t.sshJwk);else throw $t(uT);if((!Gn.isEmptyObj(t.claims)||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0)&&zm(n,t.claims,this.config.authOptions.clientCapabilities),this.config.systemOptions.preventCorsPreflight&&t.ccsCredential)switch(t.ccsCredential.type){case wr.HOME_ACCOUNT_ID:try{let o=yl(t.ccsCredential.credential);kc(n,o)}catch{this.logger.verbose("1qhtee",t.correlationId)}break;case wr.UPN:ld(n,t.ccsCredential.credential);break}return t.embeddedClientId&&Pc(n,this.config.authOptions.clientId,this.config.authOptions.redirectUri),t.extraParameters&&Ic(n,{...t.extraParameters}),Om(n,t.correlationId,this.performanceClient),hl(n)}};var UT=class{constructor(t,n){this.config=lb(t),this.logger=new Ao(this.config.loggerOptions,ud,bl),this.cryptoUtils=this.config.cryptoInterface,this.cacheManager=this.config.storageInterface,this.networkClient=this.config.networkInterface,this.serverTelemetryManager=this.config.serverTelemetryManager,this.authority=this.config.authOptions.authority,this.performanceClient=n}async acquireCachedToken(t){let n=pa.NOT_APPLICABLE;if(t.forceRefresh||!Gn.isEmptyObj(t.claims))throw this.setCacheOutcome(pa.FORCE_REFRESH_OR_CLAIMS,t.correlationId),re(ob);if(!t.account)throw re(pT);let o=t.account.tenantId||I_e(t.authority),r=this.cacheManager.getTokenKeys(),s=this.cacheManager.getAccessToken(t.account,t,r,o);if(s){if(EH(s.cachedAt)||cb(s.expiresOn,this.config.systemOptions.tokenRenewalOffsetSeconds))throw this.setCacheOutcome(pa.CACHED_ACCESS_TOKEN_EXPIRED,t.correlationId),re(ob);if(t.resource){if(s.resource!==t.resource)throw this.setCacheOutcome(pa.NO_CACHED_ACCESS_TOKEN,t.correlationId),re(ob)}else s.refreshOn&&cb(s.refreshOn,0)&&(n=pa.PROACTIVELY_REFRESHED)}else throw this.setCacheOutcome(pa.NO_CACHED_ACCESS_TOKEN,t.correlationId),re(ob);let i=t.authority||this.authority.getPreferredCache(),a={account:this.cacheManager.getAccount(this.cacheManager.generateAccountKey(t.account),t.correlationId),accessToken:s,idToken:this.cacheManager.getIdToken(t.account,t.correlationId,r,o),refreshToken:null,appMetadata:this.cacheManager.readAppMetadataFromCache(i,t.correlationId)};return this.setCacheOutcome(n,t.correlationId),this.config.serverTelemetryManager&&this.config.serverTelemetryManager.incrementCacheHits(),[await W(this.generateResultFromCacheRecord.bind(this),NH,this.logger,this.performanceClient,t.correlationId)(a,t),n]}setCacheOutcome(t,n){this.serverTelemetryManager?.setCacheOutcome(t),this.performanceClient?.addFields({cacheOutcome:t},n),t!==pa.NOT_APPLICABLE&&this.logger.info("09ingz",n)}async generateResultFromCacheRecord(t,n){let o;if(t.idToken&&(o=Lc(t.idToken.secret,this.config.cryptoInterface.base64Decode)),n.maxAge||n.maxAge===0){let r=o?.auth_time;if(!r)throw re(dT);AT(r,n.maxAge)}return fa.generateAuthenticationResult(this.cryptoUtils,this.authority,t,!0,n,this.performanceClient,o)}};var oB={sendGetRequestAsync:()=>Promise.reject(re(yt)),sendPostRequestAsync:()=>Promise.reject(re(yt))};var xl={};Rn(xl,{getAuthorizationCodePayload:()=>jHe,getAuthorizeUrl:()=>YHe,getStandardAuthorizeRequestParameters:()=>QHe,validateAuthorizationResponse:()=>P_e});function QHe(e,t,n,o){let r=t.correlationId,s=new Map;Hm(s,t.embeddedClientId||t.extraQueryParameters?.[fl]||e.clientId);let i=[...t.scopes||[],...t.extraScopesToConsent||[]];if(qm(s,i,!0,e.authority.options.OIDCOptions?.defaultScopes),ET(s,t.resource),Bm(s,t.redirectUri),Gm(s,r),iH(s,t.responseMode),Vm(s),fH(s),t.prompt&&(uH(s,t.prompt),o?.addFields({prompt:t.prompt},r)),t.domainHint&&(cH(s,t.domainHint),o?.addFields({domainHintFromRequest:!0},r)),t.prompt!==nT.SELECT_ACCOUNT)if(t.sid&&t.prompt===nT.NONE)n.verbose("1tvqyx",t.correlationId),PI(s,t.sid),o?.addFields({sidFromRequest:!0},r);else if(t.account){let a=KHe(t.account),l=JHe(t.account);if(l&&t.domainHint&&(n.warning("0wkg3v",t.correlationId),l=null),l){n.verbose("1eyfsw",t.correlationId),rb(s,l),o?.addFields({loginHintFromClaim:!0},r);try{let c=yl(t.account.homeAccountId);kc(s,c)}catch{n.verbose("12ugck",t.correlationId)}}else if(a&&t.prompt===nT.NONE){n.verbose("1rmd8s",t.correlationId),PI(s,a),o?.addFields({sidFromClaim:!0},r);try{let c=yl(t.account.homeAccountId);kc(s,c)}catch{n.verbose("12ugck",t.correlationId)}}else if(t.loginHint)n.verbose("0y3007",t.correlationId),rb(s,t.loginHint),ld(s,t.loginHint),o?.addFields({loginHintFromRequest:!0},r);else if(t.account.username){n.verbose("02f507",t.correlationId),rb(s,t.account.username),o?.addFields({loginHintFromUpn:!0},r);try{let c=yl(t.account.homeAccountId);kc(s,c)}catch{n.verbose("12ugck",t.correlationId)}}}else t.loginHint&&(n.verbose("0g01ey",t.correlationId),rb(s,t.loginHint),ld(s,t.loginHint),o?.addFields({loginHintFromRequest:!0},r));else n.verbose("169k9v",t.correlationId);return t.nonce&&dH(s,t.nonce),t.state&&hT(s,t.state),(t.claims||e.clientCapabilities&&e.clientCapabilities.length>0)&&zm(s,t.claims,e.clientCapabilities),t.embeddedClientId&&Pc(s,e.clientId,e.redirectUri),e.instanceAware&&(!t.extraQueryParameters||!Object.keys(t.extraQueryParameters).includes(eb))&&xT(s),s}function YHe(e,t){let n=hl(t);return Ct.appendQueryString(e.authorizationEndpoint,n)}function jHe(e,t){if(P_e(e,t),!e.code)throw re(tH);return e}function P_e(e,t){if(!e.state||!t)throw e.state?re(AI,"Cached State"):re(AI,"Server State");let n,o;try{n=decodeURIComponent(e.state)}catch{throw re(Um,e.state)}try{o=decodeURIComponent(t)}catch{throw re(Um,e.state)}if(n!==o)throw re(Qq);if(e.error||e.error_description||e.suberror){let r=WHe(e);throw qI(e.error,e.error_description,e.suberror)?new Dn(e.error||"",e.error_description,e.suberror,e.timestamp||"",e.trace_id||"",e.correlation_id||"",e.claims||"",r):new is(e.error||"",e.error_description,e.suberror,r)}}function WHe(e){let t="code=",n=e.error_uri?.lastIndexOf(t);return n&&n>=0?e.error_uri?.substring(n+t.length):void 0}function KHe(e){return e.idTokenClaims?.sid||null}function JHe(e){return e.loginHint||e.idTokenClaims?.login_hint||null}function OT(e,t){if(e){if(t.resource&&(L_e(t.extraParameters)||L_e(t.extraQueryParameters)))throw re(sH);if(!t.resource)throw re(rH)}}function L_e(e){return e?Object.prototype.hasOwnProperty.call(e,"resource"):!1}var md={};Rn(md,{postRequestFailed:()=>ZHe,unexpectedError:()=>XHe});var XHe="unexpected_error",ZHe="post_request_failed";var R_e=",",M_e="|";function eBe(e){let{skus:t,libraryName:n,libraryVersion:o,extensionName:r,extensionVersion:s}=e,i=new Map([[0,[n,o]],[2,[r,s]]]),a=[];if(t?.length){if(a=t.split(R_e),a.length<4)return t}else a=Array.from({length:4},()=>M_e);return i.forEach((l,c)=>{l.length===2&&l[0]?.length&&l[1]?.length&&tBe({skuArr:a,index:c,skuName:l[0],skuVersion:l[1]})}),a.join(R_e)}function tBe(e){let{skuArr:t,index:n,skuName:o,skuVersion:r}=e;n>=t.length||(t[n]=[o,r].join(M_e))}var eg=class e{constructor(t,n){this.cacheOutcome=pa.NOT_APPLICABLE,this.cacheManager=n,this.apiId=t.apiId,this.correlationId=t.correlationId,this.wrapperSKU=t.wrapperSKU||"",this.wrapperVer=t.wrapperVer||"",this.telemetryCacheKey=rT+Nm+t.clientId}generateCurrentRequestHeaderValue(){let t=`${this.apiId}${id}${this.cacheOutcome}`,n=[this.wrapperSKU,this.wrapperVer],o=this.getNativeBrokerErrorCode();o?.length&&n.push(`broker_error=${o}`);let r=n.join(id),s=this.getRegionDiscoveryFields(),i=[t,s].join(id);return[gI,i,r].join(fI)}generateLastRequestHeaderValue(){let t=this.getLastRequests(),n=e.maxErrorsToSend(t),o=t.failedRequests.slice(0,2*n).join(id),r=t.errors.slice(0,n).join(id),s=t.errors.length,i=n=$O&&(n.failedRequests.shift(),n.failedRequests.shift(),n.errors.shift()),n.failedRequests.push(this.apiId,this.correlationId),t instanceof Error&&t&&t.toString()?t instanceof at?t.subError?n.errors.push(t.subError):t.errorCode?n.errors.push(t.errorCode):n.errors.push(t.toString()):n.errors.push(t.toString()):n.errors.push(UO),this.cacheManager.setServerTelemetry(this.telemetryCacheKey,n,this.correlationId)}incrementCacheHits(){let t=this.getLastRequests();return t.cacheHits+=1,this.cacheManager.setServerTelemetry(this.telemetryCacheKey,t,this.correlationId),t.cacheHits}getLastRequests(){let t={failedRequests:[],errors:[],cacheHits:0};return this.cacheManager.getServerTelemetry(this.telemetryCacheKey,this.correlationId)||t}clearTelemetryCache(){let t=this.getLastRequests(),n=e.maxErrorsToSend(t),o=t.errors.length;if(n===o)this.cacheManager.removeItem(this.telemetryCacheKey,this.correlationId);else{let r={failedRequests:t.failedRequests.slice(n*2),errors:t.errors.slice(n),cacheHits:0};this.cacheManager.setServerTelemetry(this.telemetryCacheKey,r,this.correlationId)}}static maxErrorsToSend(t){let n,o=0,r=0,s=t.errors.length;for(n=0;ntypeof e=="number"&&e in fye?fye[e]:"unknown",Je;(function(e){e.Redirect="redirect",e.Popup="popup",e.Silent="silent",e.None="none"})(Je||(Je={}));var mB={scopes:De.OIDC_DEFAULT_SCOPES},gB="jwk";var KI="msal.db",bye=1,_ye=`${KI}.keys`,lr={Default:0,AccessToken:1,AccessTokenAndRefreshToken:2,RefreshToken:3,RefreshTokenAndNetwork:4,Skip:5},yye=[lr.Default,lr.Skip,lr.RefreshTokenAndNetwork];function BT(e){return encodeURIComponent(hd(e).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_"))}function Si(e){return vye(e).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function hd(e){return vye(new TextEncoder().encode(e))}function vye(e){let t=Array.from(e,n=>String.fromCodePoint(n)).join("");return btoa(t)}var fB="pkce_not_created",hB="ear_jwk_empty",xye="ear_jwe_empty",bB="crypto_nonexistent",_b="empty_navigate_uri",Tye="hash_empty_error",yb="no_state_in_hash",wye="hash_does_not_contain_known_properties",JI="unable_to_parse_state",Sye="state_interaction_type_mismatch",Cye="interaction_in_progress",Eye="interaction_in_progress_cancelled",Aye="popup_window_error",kye="empty_window_error",zT="user_cancelled",Iye="redirect_bridge_empty_response",Pye="redirect_in_iframe",Lye="block_iframe_reload",Rye="block_nested_popups";var vb="silent_logout_unsupported",Mye="no_account_error";var Dye="no_token_request_cache_error",$ye="unable_to_parse_token_request_cache_error";var XI="non_browser_environment",xb="database_not_open",GT="no_network_connectivity",Nye="post_request_failed",Fye="get_request_failed",_B="failed_to_parse_response";var ZI="crypto_key_not_found",Uye="auth_code_required",Oye="auth_code_or_nativeAccountId_required",qye="spa_code_and_nativeAccountId_present",eP="database_unavailable",Hye="unable_to_acquire_token_from_native_platform",Bye="native_handshake_timeout",zye="native_extension_not_installed",tP="native_connection_not_established",Tb="uninitialized_public_client_application",Gye="native_prompt_not_supported",Vye="invalid_base64_string",Qye="invalid_pop_token_request",Yye="failed_to_build_headers",jye="failed_to_parse_headers",nP="failed_to_decrypt_ear_response",og="timed_out",Wye="empty_response";function Bo(e){return new TextDecoder().decode(Tl(e))}function Tl(e){let t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw _e(Vye)}let n=atob(t);return Uint8Array.from(n,o=>o.codePointAt(0)||0)}var nBe="RSASSA-PKCS1-v1_5",wb="AES-GCM",Xye="HKDF",vB="SHA-256",oBe=2048,rBe=new Uint8Array([1,0,1]),Kye="0123456789abcdef",Jye=new Uint32Array(1),xB="raw",Zye="encrypt",TB="decrypt",sBe="deriveKey",iBe="crypto_subtle_undefined",wB={name:nBe,hash:vB,modulusLength:oBe,publicExponent:rBe};function eve(e){if(!window)throw _e(XI);if(!window.crypto)throw _e(bB);if(!e&&!window.crypto.subtle)throw _e(bB,iBe)}async function SB(e){let n=new TextEncoder().encode(e);return window.crypto.subtle.digest(vB,n)}function tve(e){return window.crypto.getRandomValues(e)}function yB(){return window.crypto.getRandomValues(Jye),Jye[0]}function Qs(){let e=Date.now(),t=yB()*1024+(yB()&1023),n=new Uint8Array(16),o=Math.trunc(t/2**30),r=t&2**30-1,s=yB();n[0]=e/2**40,n[1]=e/2**32,n[2]=e/2**24,n[3]=e/2**16,n[4]=e/2**8,n[5]=e,n[6]=112|o>>>8,n[7]=o,n[8]=128|r>>>24,n[9]=r>>>16,n[10]=r>>>8,n[11]=r,n[12]=s>>>24,n[13]=s>>>16,n[14]=s>>>8,n[15]=s;let i="";for(let a=0;a>>4),i+=Kye.charAt(n[a]&15),(a===3||a===5||a===7||a===9)&&(i+="-");return i}async function nve(e,t){return window.crypto.subtle.generateKey(wB,e,t)}async function oP(e){return window.crypto.subtle.exportKey(gB,e)}async function ove(e,t,n){return window.crypto.subtle.importKey(gB,e,wB,t,n)}async function rve(e,t){return window.crypto.subtle.sign(wB,e,t)}async function Sb(){let e=await CB(),n={alg:"dir",kty:"oct",k:Si(new Uint8Array(e))};return hd(JSON.stringify(n))}async function aBe(e){let t=Bo(e),o=JSON.parse(t).k,r=Tl(o);return window.crypto.subtle.importKey(xB,r,wb,!1,[TB])}async function sve(e,t){let n=t.split(".");if(n.length!==5)throw _e(nP,"jwe_length");let o=await aBe(e).catch(()=>{throw _e(nP,"import_key")});try{let r=new TextEncoder().encode(n[0]),s=Tl(n[2]),i=Tl(n[3]),a=Tl(n[4]),l=a.byteLength*8,c=new Uint8Array(i.length+a.length);c.set(i),c.set(a,i.length);let u=await window.crypto.subtle.decrypt({name:wb,iv:s,tagLength:l,additionalData:r},o,c);return new TextDecoder().decode(u)}catch{throw _e(nP,"decrypt")}}async function CB(){let e=await window.crypto.subtle.generateKey({name:wb,length:256},!0,[Zye,TB]);return window.crypto.subtle.exportKey(xB,e)}async function EB(e){return window.crypto.subtle.importKey(xB,e,Xye,!1,[sBe])}async function ive(e,t,n){return window.crypto.subtle.deriveKey({name:Xye,salt:t,hash:vB,info:new TextEncoder().encode(n)},e,{name:wb,length:256},!1,[Zye,TB])}async function ave(e,t,n){let o=new TextEncoder().encode(t),r=window.crypto.getRandomValues(new Uint8Array(16)),s=await ive(e,r,n),i=await window.crypto.subtle.encrypt({name:wb,iv:new Uint8Array(12)},s,o);return{data:Si(new Uint8Array(i)),nonce:Si(r)}}async function AB(e,t,n,o){let r=Tl(o),s=await ive(e,Tl(t),n),i=await window.crypto.subtle.decrypt({name:wb,iv:new Uint8Array(12)},s,r);return new TextDecoder().decode(i)}async function lve(e){let t=await SB(e),n=new Uint8Array(t);return Si(n)}var kB=class e extends at{constructor(t,n){super(t,n),this.name="BrowserConfigurationAuthError",Object.setPrototypeOf(this,e.prototype)}};function Cb(e){return new kB(e,hb(e))}var rP="storage_not_supported";var cve="in_mem_redirect_unavailable";function lBe(){let e=window.location.hash,t=window.location.search,n=!1,o=!1,r="",s;if(e&&e.length>1){let u=e.charAt(0)==="#"?e.substring(1):e,p=new URLSearchParams(u);p.has("state")&&(n=!0,r=u,s=p)}if(t&&t.length>1){let u=t.charAt(0)==="?"?t.substring(1):t,p=new URLSearchParams(u);p.has("state")&&(o=!0,r=u,s=p)}if(n&&o){let u=t.charAt(0)==="?"?t.substring(1):t,p=e.charAt(0)==="#"?e.substring(1):e;r=`${u}${p}`,s=new URLSearchParams(r)}if(!r||!s)throw _e(Wye);let i=s.get("state");if(!i)throw _e(yb);let{libraryState:a}=ga.parseRequestState(Bo,i),{id:l,meta:c}=a;if(!l||!c)throw _e(JI,"missing_library_state");return{params:s,payload:r,urlHash:e,urlQuery:t,hasResponseInHash:n,hasResponseInQuery:o,libraryState:{id:l,meta:c}}}function sP(e){e.location.hash="",typeof e.history.replaceState=="function"&&e.history.replaceState(null,"",`${e.location.origin}${e.location.pathname}${e.location.search}`)}function uve(e){let t=e.split("#");t.shift(),window.location.hash=t.length>0?t.join("#"):""}function VT(){return window.parent!==window}function cBe(){if(VT())return!1;try{let{libraryState:e}=lBe(),{meta:t}=e;return t.interactionType===Je.Popup}catch{return!1}}var bd=null;function dve(e,t){bd&&(e.verbose("18y01k",t),clearTimeout(bd.timeoutId),bd.channel.close(),bd.reject(_e(Eye)),bd=null)}async function _d(e,t,n,o,r,s){return new Promise((i,a)=>{t.verbose("1rf6em",o.correlationId);let l=o.correlationId;r.addFields({redirectBridgeTimeoutMs:e,lateResponseExperimentEnabled:s?.iframeTimeoutTelemetry||!1},l);let{libraryState:c}=ga.parseRequestState(n.base64Decode,o.state||""),u=new BroadcastChannel(c.id),p,m=!1,g,f,_=window.setTimeout(()=>{bd=null,s?.iframeTimeoutTelemetry?(f=r.startMeasurement(gye,l),m=!0,g=window.setTimeout(()=>{f?.end({success:!1}),clearTimeout(g),u.close()},6e4)):u.close(),a(_e(og,"redirect_bridge_timeout"))},e);bd={timeoutId:_,channel:u,reject:a},u.onmessage=h=>{p=h.data.payload;let T=h?.data&&typeof h.data.v=="number"?h.data.v:void 0;if(m){f?.end({success:!!p}),clearTimeout(g),u.close();return}r.addFields({redirectBridgeMessageVersion:T},l),bd=null,clearTimeout(_),u.close(),p?i(p):a(_e(Iye))}})}function Ci(){return typeof window<"u"&&window.location?window.location.href.split("?")[0].split("#")[0]:""}function pve(){let t=new Ct(window.location.href).getUrlComponents();return`${t.Protocol}//${t.HostNameAndPort}/`}function uBe(){if(Ti.getDeserializedResponse(window.location.hash)&&VT())throw _e(Lye)}function dBe(e){if(VT()&&!e)throw _e(Pye)}function pBe(){if(cBe())throw _e(Rye)}function IB(){if(typeof window>"u")throw _e(XI)}function PB(e){if(!e)throw _e(Tb)}function iP(e){IB(),uBe(),pBe(),PB(e)}function LB(e,t){if(iP(e),dBe(t.system.allowRedirectInIframe),t.cache.cacheLocation===Ho.MemoryStorage)throw Cb(cve)}function aP(e){let t=document.createElement("link");t.rel="preconnect",t.href=new URL(e).origin,t.crossOrigin="anonymous",document.head.appendChild(t),window.setTimeout(()=>{try{document.head.removeChild(t)}catch{}},1e4)}function QT(){return Qs()}var qft=kn.addClientCapabilitiesToClaims;var lP=class{constructor(){this.dbName=KI,this.version=bye,this.tableName=_ye,this.dbOpen=!1}async open(){return new Promise((t,n)=>{let o=window.indexedDB.open(this.dbName,this.version);o.addEventListener("upgradeneeded",r=>{r.target.result.createObjectStore(this.tableName)}),o.addEventListener("success",r=>{let s=r;this.db=s.target.result,this.dbOpen=!0,t()}),o.addEventListener("error",()=>n(_e(eP)))})}closeConnection(){let t=this.db;t&&this.dbOpen&&(t.close(),this.dbOpen=!1)}async validateDbIsOpen(){if(!this.dbOpen)return this.open()}async getItem(t){return await this.validateDbIsOpen(),new Promise((n,o)=>{if(!this.db)return o(_e(xb));let i=this.db.transaction([this.tableName],"readonly").objectStore(this.tableName).get(t);i.addEventListener("success",a=>{let l=a;this.closeConnection(),n(l.target.result)}),i.addEventListener("error",a=>{this.closeConnection(),o(a)})})}async setItem(t,n){return await this.validateDbIsOpen(),new Promise((o,r)=>{if(!this.db)return r(_e(xb));let a=this.db.transaction([this.tableName],"readwrite").objectStore(this.tableName).put(n,t);a.addEventListener("success",()=>{this.closeConnection(),o()}),a.addEventListener("error",l=>{this.closeConnection(),r(l)})})}async removeItem(t){return await this.validateDbIsOpen(),new Promise((n,o)=>{if(!this.db)return o(_e(xb));let i=this.db.transaction([this.tableName],"readwrite").objectStore(this.tableName).delete(t);i.addEventListener("success",()=>{this.closeConnection(),n()}),i.addEventListener("error",a=>{this.closeConnection(),o(a)})})}async getKeys(){return await this.validateDbIsOpen(),new Promise((t,n)=>{if(!this.db)return n(_e(xb));let s=this.db.transaction([this.tableName],"readonly").objectStore(this.tableName).getAllKeys();s.addEventListener("success",i=>{let a=i;this.closeConnection(),t(a.target.result)}),s.addEventListener("error",i=>{this.closeConnection(),n(i)})})}async containsKey(t){return await this.validateDbIsOpen(),new Promise((n,o)=>{if(!this.db)return o(_e(xb));let i=this.db.transaction([this.tableName],"readonly").objectStore(this.tableName).count(t);i.addEventListener("success",a=>{let l=a;this.closeConnection(),n(l.target.result===1)}),i.addEventListener("error",a=>{this.closeConnection(),o(a)})})}async deleteDatabase(){return this.db&&this.dbOpen&&this.closeConnection(),new Promise((t,n)=>{let o=window.indexedDB.deleteDatabase(KI),r=setTimeout(()=>n(!1),200);o.addEventListener("success",()=>(clearTimeout(r),t(!0))),o.addEventListener("blocked",()=>(clearTimeout(r),t(!0))),o.addEventListener("error",()=>(clearTimeout(r),n(!1)))})}};var Fc=class{constructor(){this.cache=new Map}async initialize(){}getItem(t){return this.cache.get(t)||null}getUserData(t){return this.getItem(t)}setItem(t,n){this.cache.set(t,n)}async setUserData(t,n){this.setItem(t,n)}removeItem(t){this.cache.delete(t)}getKeys(){let t=[];return this.cache.forEach((n,o)=>{t.push(o)}),t}containsKey(t){return this.cache.has(t)}clear(){this.cache.clear()}decryptData(){return Promise.resolve(null)}};var cP=class{constructor(t){this.inMemoryCache=new Fc,this.indexedDBCache=new lP,this.logger=t}handleDatabaseAccessError(t,n){if(t instanceof ng&&t.errorCode===eP)this.logger.error("1wx7zz",n);else throw t}async getItem(t,n){let o=this.inMemoryCache.getItem(t);if(!o)try{return this.logger.verbose("0naxpl",n),await this.indexedDBCache.getItem(t)}catch(r){this.handleDatabaseAccessError(r,n)}return o}async setItem(t,n,o){this.inMemoryCache.setItem(t,n);try{await this.indexedDBCache.setItem(t,n)}catch(r){this.handleDatabaseAccessError(r,o)}}async removeItem(t,n){this.inMemoryCache.removeItem(t);try{await this.indexedDBCache.removeItem(t)}catch(o){this.handleDatabaseAccessError(o,n)}}async getKeys(t){let n=this.inMemoryCache.getKeys();if(n.length===0)try{return this.logger.verbose("1iqrbq",t),await this.indexedDBCache.getKeys()}catch(o){this.handleDatabaseAccessError(o,t)}return n}async containsKey(t,n){let o=this.inMemoryCache.containsKey(t);if(!o)try{return this.logger.verbose("03zl2j",n),await this.indexedDBCache.containsKey(t)}catch(r){this.handleDatabaseAccessError(r,n)}return o}clearInMemory(t){this.logger.verbose("03r21p",t),this.inMemoryCache.clear(),this.logger.verbose("0uksk1",t)}async clearPersistent(t){try{this.logger.verbose("0rdqut",t);let n=await this.indexedDBCache.deleteDatabase();return n&&this.logger.verbose("149ouc",t),n}catch(n){return this.handleDatabaseAccessError(n,t),!1}}};var wl=class e{constructor(t,n,o){this.logger=t,eve(o??!1),this.cache=new cP(this.logger),this.performanceClient=n}createNewGuid(){return Qs()}base64Encode(t){return hd(t)}base64Decode(t){return Bo(t)}base64UrlEncode(t){return BT(t)}encodeKid(t){return this.base64UrlEncode(JSON.stringify({kid:t}))}async getPublicKeyThumbprint(t){let n=this.performanceClient?.startMeasurement(O_e,t.correlationId),o=await nve(e.EXTRACTABLE,e.POP_KEY_USAGES),r=await oP(o.publicKey),s={e:r.e,kty:r.kty,n:r.n},i=mve(s),a=await this.hashString(i),l=await oP(o.privateKey),c=await ove(l,!1,["sign"]);return await this.cache.setItem(a,{privateKey:c,publicKey:o.publicKey,requestMethod:t.resourceRequestMethod,requestUri:t.resourceRequestUri},t.correlationId),n&&n.end({success:!0}),a}async removeTokenBindingKey(t,n){if(await this.cache.removeItem(t,n),await this.cache.containsKey(t,n))throw re(Co.bindingKeyNotRemoved)}async clearKeystore(t){this.cache.clearInMemory(t);try{return await this.cache.clearPersistent(t),!0}catch(n){return n instanceof Error?this.logger.error("1owpn8",t):this.logger.error("0yrmwo",t),!1}}async signJwt(t,n,o,r){let s=this.performanceClient?.startMeasurement(q_e,r),i=await this.cache.getItem(n,r||"");if(!i)throw _e(ZI);let a=await oP(i.publicKey),l=mve(a),c=BT(JSON.stringify({kid:n})),u=qT.getShrHeaderString({...o?.header,alg:a.alg,kid:c}),p=BT(u);t.cnf={jwk:JSON.parse(l)};let m=BT(JSON.stringify(t)),g=`${p}.${m}`,_=new TextEncoder().encode(g),h=await rve(i.privateKey,_),T=Si(new Uint8Array(h)),x=`${g}.${T}`;return s&&s.end({success:!0}),x}async hashString(t){return lve(t)}};wl.POP_KEY_USAGES=["sign","verify"];wl.EXTRACTABLE=!0;function mve(e){return JSON.stringify(e,Object.keys(e).sort())}var gve="acquireTokenSilent",fve="acquireTokenByCode",hve="acquireTokenPopup",bve="acquireTokenPreRedirect",uP="acquireTokenRedirect",_ve="ssoSilent",yve="initializeClientApplication",vve="localStorageUpdated";var go="msal",dP="browser",RB="|";var wve=`${go}.${dP}.log.level`,Sve=`${go}.${dP}.log.pii`,lht=`${go}.${dP}.performance.enabled`,Cve=`${go}.${dP}.platform.auth.dom`,MB=`${go}.version`,xve="account.keys",Tve="token.keys";function Uc(e=2){return e<1?`${go}.${xve}`:`${go}.${e}.${xve}`}function Oc(e,t=2){return t<1?`${go}.${Tve}.${e}`:`${go}.${t}.${Tve}.${e}`}var mBe=24*60*60*1e3,pP={Lax:"Lax",None:"None"},Eb=class{initialize(){return Promise.resolve()}getItem(t){let n=`${encodeURIComponent(t)}`,o=document.cookie.split(";");for(let r=0;r{let r=decodeURIComponent(o).trim().split("=");n.push(r[0])}),n}containsKey(t){return this.getKeys().includes(t)}decryptData(){return Promise.resolve(null)}};function gBe(e){let t=new Date;return new Date(t.getTime()+e*mBe).toUTCString()}function Sl(e,t){let n=e.getItem(Uc(t));return n?JSON.parse(n):[]}function Ys(e,t,n){let o=t.getItem(Oc(e,n));if(o){let r=JSON.parse(o);if(r&&r.hasOwnProperty("idToken")&&r.hasOwnProperty("accessToken")&&r.hasOwnProperty("refreshToken"))return r}return{idToken:[],accessToken:[],refreshToken:[]}}function Ab(e){return e.hasOwnProperty("id")&&e.hasOwnProperty("nonce")&&e.hasOwnProperty("data")}var Eve="msal.cache.encryption",fBe="msal.broadcast.cache",mP=class{constructor(t,n,o){if(!window.localStorage)throw Cb(rP);this.memoryStorage=new Fc,this.initialized=!1,this.clientId=t,this.logger=n,this.performanceClient=o,this.broadcast=new BroadcastChannel(fBe)}async initialize(t){let n=new Eb,o=n.getItem(Eve),r={key:"",id:""};if(o)try{r=JSON.parse(o)}catch{}if(r.key&&r.id){let s=mo(Tl,uye,this.logger,this.performanceClient,t)(r.key);this.encryptionCookie={id:r.id,key:await W(EB,uB,this.logger,this.performanceClient,t)(s)}}else{let s=Qs(),i=await W(CB,cye,this.logger,this.performanceClient,t)(),a=mo(Si,dye,this.logger,this.performanceClient,t)(new Uint8Array(i));this.encryptionCookie={id:s,key:await W(EB,uB,this.logger,this.performanceClient,t)(i)};let l={id:s,key:a};n.setItem(Eve,JSON.stringify(l),0,!0,pP.None)}await W(this.importExistingCache.bind(this),rye,this.logger,this.performanceClient,t)(t),this.broadcast.addEventListener("message",s=>{this.updateCache(s,t)}),this.initialized=!0}getItem(t){return window.localStorage.getItem(t)}getUserData(t){if(!this.initialized)throw _e(Tb);return this.memoryStorage.getItem(t)}async decryptData(t,n,o){if(!this.initialized||!this.encryptionCookie)throw _e(Tb);if(n.id!==this.encryptionCookie.id)return this.performanceClient.incrementFields({encryptedCacheExpiredCount:1},o),null;let r=await W(AB,dB,this.logger,this.performanceClient,o)(this.encryptionCookie.key,n.nonce,this.getContext(t),n.data);if(!r)return null;try{return{...JSON.parse(r),lastUpdatedAt:n.lastUpdatedAt}}catch{return this.performanceClient.incrementFields({encryptedCacheCorruptionCount:1},o),null}}setItem(t,n){window.localStorage.setItem(t,n)}async setUserData(t,n,o,r,s){if(!this.initialized||!this.encryptionCookie)throw _e(Tb);if(s)this.setItem(t,n);else{let{data:i,nonce:a}=await W(ave,pye,this.logger,this.performanceClient,o)(this.encryptionCookie.key,n,this.getContext(t)),l={id:this.encryptionCookie.id,nonce:a,data:i,lastUpdatedAt:r};this.setItem(t,JSON.stringify(l))}this.memoryStorage.setItem(t,n),this.broadcast.postMessage({key:t,value:n,context:this.getContext(t)})}removeItem(t){this.memoryStorage.containsKey(t)&&(this.memoryStorage.removeItem(t),this.broadcast.postMessage({key:t,value:null,context:this.getContext(t)})),window.localStorage.removeItem(t)}getKeys(){return Object.keys(window.localStorage)}containsKey(t){return window.localStorage.hasOwnProperty(t)}clear(){this.memoryStorage.clear(),Sl(this).forEach(o=>this.removeItem(o));let n=Ys(this.clientId,this);n.idToken.forEach(o=>this.removeItem(o)),n.accessToken.forEach(o=>this.removeItem(o)),n.refreshToken.forEach(o=>this.removeItem(o)),this.getKeys().forEach(o=>{(o.startsWith(go)||o.indexOf(this.clientId)!==-1)&&this.removeItem(o)})}async importExistingCache(t){if(!this.encryptionCookie)return;let n=Sl(this);n=await this.importArray(n,t),n.length?this.setItem(Uc(),JSON.stringify(n)):this.removeItem(Uc());let o=Ys(this.clientId,this);o.idToken=await this.importArray(o.idToken,t),o.accessToken=await this.importArray(o.accessToken,t),o.refreshToken=await this.importArray(o.refreshToken,t),o.idToken.length||o.accessToken.length||o.refreshToken.length?this.setItem(Oc(this.clientId),JSON.stringify(o)):this.removeItem(Oc(this.clientId))}async getItemFromEncryptedCache(t,n){if(!this.encryptionCookie)return null;let o=this.getItem(t);if(!o)return null;let r;try{r=JSON.parse(o)}catch{return null}return Ab(r)?r.id!==this.encryptionCookie.id?(this.performanceClient.incrementFields({encryptedCacheExpiredCount:1},n),null):(this.performanceClient.incrementFields({encryptedCacheCount:1},n),W(AB,dB,this.logger,this.performanceClient,n)(this.encryptionCookie.key,r.nonce,this.getContext(t),r.data)):(this.performanceClient.incrementFields({unencryptedCacheCount:1},n),o)}async importArray(t,n){let o=[],r=[];return t.forEach(s=>{let i=this.getItemFromEncryptedCache(s,n).then(a=>{a?(this.memoryStorage.setItem(s,a),o.push(s)):this.removeItem(s)});r.push(i)}),await Promise.all(r),o}getContext(t){let n="";return t.includes(this.clientId)&&(n=this.clientId),n}updateCache(t,n){this.logger.trace("17cxcm",n);let o=this.performanceClient.startMeasurement(vve);o.add({isBackground:!0});let{key:r,value:s,context:i}=t.data;if(!r){this.logger.error("0e10qr",n),o.end({success:!1,errorCode:"noKey"});return}if(i&&i!==this.clientId){this.logger.trace("04rtdy",n),o.end({success:!1,errorCode:"contextMismatch"});return}s?(this.memoryStorage.setItem(r,s),this.logger.verbose("1vzsgt",n)):(this.memoryStorage.removeItem(r),this.logger.verbose("04ypih",n)),o.end({success:!0})}};var gP=class{constructor(){if(!window.sessionStorage)throw Cb(rP)}async initialize(){}getItem(t){return window.sessionStorage.getItem(t)}getUserData(t){return this.getItem(t)}setItem(t,n){window.sessionStorage.setItem(t,n)}async setUserData(t,n){this.setItem(t,n)}removeItem(t){window.sessionStorage.removeItem(t)}getKeys(){return Object.keys(window.sessionStorage)}containsKey(t){return window.sessionStorage.hasOwnProperty(t)}decryptData(){return Promise.resolve(null)}};var rt={INITIALIZE_START:"msal:initializeStart",INITIALIZE_END:"msal:initializeEnd",ACTIVE_ACCOUNT_CHANGED:"msal:activeAccountChanged",LOGIN_SUCCESS:"msal:loginSuccess",ACQUIRE_TOKEN_START:"msal:acquireTokenStart",BROKERED_REQUEST_START:"msal:brokeredRequestStart",ACQUIRE_TOKEN_SUCCESS:"msal:acquireTokenSuccess",BROKERED_REQUEST_SUCCESS:"msal:brokeredRequestSuccess",ACQUIRE_TOKEN_FAILURE:"msal:acquireTokenFailure",BROKERED_REQUEST_FAILURE:"msal:brokeredRequestFailure",ACQUIRE_TOKEN_NETWORK_START:"msal:acquireTokenFromNetworkStart",HANDLE_REDIRECT_START:"msal:handleRedirectStart",HANDLE_REDIRECT_END:"msal:handleRedirectEnd",POPUP_OPENED:"msal:popupOpened",LOGOUT_START:"msal:logoutStart",LOGOUT_SUCCESS:"msal:logoutSuccess",LOGOUT_FAILURE:"msal:logoutFailure",LOGOUT_END:"msal:logoutEnd",RESTORE_FROM_BFCACHE:"msal:restoreFromBFCache",BROKER_CONNECTION_ESTABLISHED:"msal:brokerConnectionEstablished"};var Ave="@azure/msal-browser",js="5.6.3";function qc(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}var kb=class extends Wm{constructor(t,n,o,r,s,i,a){super(t,o,r,s,a),this.cacheConfig=n,this.logger=r,this.internalStorage=new Fc,this.browserStorage=kve(t,n.cacheLocation,r,s),this.temporaryCacheStorage=kve(t,Ho.SessionStorage,r,s),this.cookieStorage=new Eb,this.eventHandler=i}async initialize(t){this.performanceClient.addFields({cacheLocation:this.cacheConfig.cacheLocation,cacheRetentionDays:this.cacheConfig.cacheRetentionDays},t),await this.browserStorage.initialize(t),await this.migrateExistingCache(t),this.trackVersionChanges(t)}async migrateExistingCache(t){let n=Sl(this.browserStorage),o=Ys(this.clientId,this.browserStorage);this.performanceClient.addFields({preMigrateAcntCount:n.length,preMigrateATCount:o.accessToken.length,preMigrateITCount:o.idToken.length,preMigrateRTCount:o.refreshToken.length},t);for(let s=0;s<2;s++){let i=s;await this.removeStaleAccounts(s,i,t)}for(let s=0;s<2;s++){let i=s;await this.migrateIdTokens(s,i,t)}let r=this.getKMSIValues();for(let s=0;s<2;s++)await this.migrateAccessTokens(s,r,t),await this.migrateRefreshTokens(s,r,t);n=Sl(this.browserStorage),o=Ys(this.clientId,this.browserStorage),this.performanceClient.addFields({postMigrateAcntCount:n.length,postMigrateATCount:o.accessToken.length,postMigrateITCount:o.idToken.length,postMigrateRTCount:o.refreshToken.length},t)}async updateOldEntry(t,n){let o=this.browserStorage.getItem(t),r=this.validateAndParseJson(o||"");if(!r)return this.browserStorage.removeItem(t),null;if(!r.lastUpdatedAt)r.lastUpdatedAt=Date.now().toString(),this.setItem(t,JSON.stringify(r),n);else if(rs.isCacheExpired(r.lastUpdatedAt,this.cacheConfig.cacheRetentionDays))return this.browserStorage.removeItem(t),this.performanceClient.incrementFields({expiredCacheRemovedCount:1},n),null;let s=Ab(r)?await this.browserStorage.decryptData(t,r,n):r;return!s||!ko.isCredentialEntity(s)?(this.performanceClient.incrementFields({invalidCacheCount:1},n),null):(ko.isAccessTokenEntity(s)||ko.isRefreshTokenEntity(s))&&s.expiresOn&&rs.isTokenExpired(s.expiresOn,De.DEFAULT_TOKEN_RENEWAL_OFFSET_SEC)?(this.browserStorage.removeItem(t),this.performanceClient.incrementFields({expiredCacheRemovedCount:1},n),null):s}async removeStaleAccounts(t,n,o){let r=Sl(this.browserStorage,t);if(r.length!==0){for(let s of[...r]){this.performanceClient.incrementFields({oldAcntCount:1},o);let i=this.browserStorage.getItem(s),a=this.validateAndParseJson(i||"");if(!a){qc(r,s);continue}if(a.lastUpdatedAt)rs.isCacheExpired(a.lastUpdatedAt,this.cacheConfig.cacheRetentionDays)&&(await this.removeAccountOldSchema(s,a,n,o),qc(r,s));else{a.lastUpdatedAt=Date.now().toString(),this.setItem(s,JSON.stringify(a),o);continue}}this.setAccountKeys(r,o,t)}}async removeAccountOldSchema(t,n,o,r){let i=(Ab(n)?await this.browserStorage.decryptData(t,n,r):n)?.homeAccountId;if(i){let a=this.getTokenKeys(o);[...a.idToken].filter(l=>l.includes(i)).forEach(l=>{this.browserStorage.removeItem(l),qc(a.idToken,l)}),[...a.accessToken].filter(l=>l.includes(i)).forEach(l=>{this.browserStorage.removeItem(l),qc(a.accessToken,l)}),[...a.refreshToken].filter(l=>l.includes(i)).forEach(l=>{this.browserStorage.removeItem(l),qc(a.refreshToken,l)}),this.setTokenKeys(a,r,o)}this.performanceClient.incrementFields({expiredAcntRemovedCount:1},r),this.browserStorage.removeItem(t)}getKMSIValues(){let t={},n=this.getTokenKeys().idToken;for(let o of n){let r=this.browserStorage.getUserData(o);if(r){let s=JSON.parse(r),i=Tr.extractTokenClaims(s.secret,Bo);i&&(t[s.homeAccountId]=Tr.isKmsi(i))}}return t}async migrateIdTokens(t,n,o){let r=Ys(this.clientId,this.browserStorage,t);if(r.idToken.length===0)return;let s=Ys(this.clientId,this.browserStorage,2),i=Sl(this.browserStorage),a=Sl(this.browserStorage,n);for(let l of[...r.idToken]){this.performanceClient.incrementFields({oldITCount:1},o);let c=await this.updateOldEntry(l,o);if(!c){qc(r.idToken,l);continue}let u=i.find(x=>x.includes(c.homeAccountId)),p=a.find(x=>x.includes(c.homeAccountId)),m=null;if(u)m=this.getAccount(u,o);else if(p){let x=this.browserStorage.getItem(p),w=this.validateAndParseJson(x||"");m=w&&Ab(w)?await this.browserStorage.decryptData(p,w,o):w}if(!m){this.performanceClient.incrementFields({skipITMigrateCount:1},o);continue}let g=Tr.extractTokenClaims(c.secret,Bo),f=this.generateCredentialKey(c),_=this.getIdTokenCredential(f,o),h=Object.keys(g).includes("signin_state"),T=_&&Object.keys(Tr.extractTokenClaims(_.secret,Bo)||{}).includes("signin_state");if(!_||c.lastUpdatedAt>_.lastUpdatedAt&&(h||!T)){let x=m.tenantProfiles||[],w=jm(g)||m.realm;if(w&&!x.find(Q=>Q.tenantId===w)){let Q=_l(m.homeAccountId,m.localAccountId,w,g);x.push(Q)}m.tenantProfiles=x;let I=this.generateAccountKey(wi.getAccountInfo(m)),E=Tr.isKmsi(g);await this.setUserData(I,JSON.stringify(m),o,m.lastUpdatedAt,E),i.includes(I)||i.push(I),await this.setUserData(f,JSON.stringify(c),o,c.lastUpdatedAt,E),this.performanceClient.incrementFields({migratedITCount:1},o),s.idToken.push(f)}}this.setTokenKeys(r,o,t),this.setTokenKeys(s,o),this.setAccountKeys(i,o)}async migrateAccessTokens(t,n,o){let r=Ys(this.clientId,this.browserStorage,t);if(r.accessToken.length===0)return;let s=Ys(this.clientId,this.browserStorage,2);for(let i of[...r.accessToken]){this.performanceClient.incrementFields({oldATCount:1},o);let a=await this.updateOldEntry(i,o);if(!a){qc(r.accessToken,i);continue}if(!(a.homeAccountId in n)){this.performanceClient.incrementFields({skipATMigrateCount:1},o);continue}let l=this.generateCredentialKey(a),c=n[a.homeAccountId];if(!s.accessToken.includes(l))await this.setUserData(l,JSON.stringify(a),o,a.lastUpdatedAt,c),this.performanceClient.incrementFields({migratedATCount:1},o),s.accessToken.push(l);else{let u=this.getAccessTokenCredential(l,o);(!u||a.lastUpdatedAt>u.lastUpdatedAt)&&(await this.setUserData(l,JSON.stringify(a),o,a.lastUpdatedAt,c),this.performanceClient.incrementFields({migratedATCount:1},o))}}this.setTokenKeys(r,o,t),this.setTokenKeys(s,o)}async migrateRefreshTokens(t,n,o){let r=Ys(this.clientId,this.browserStorage,t);if(r.refreshToken.length===0)return;let s=Ys(this.clientId,this.browserStorage,2);for(let i of[...r.refreshToken]){this.performanceClient.incrementFields({oldRTCount:1},o);let a=await this.updateOldEntry(i,o);if(!a){qc(r.refreshToken,i);continue}if(!(a.homeAccountId in n)){this.performanceClient.incrementFields({skipRTMigrateCount:1},o);continue}let l=this.generateCredentialKey(a),c=n[a.homeAccountId];if(!s.refreshToken.includes(l))await this.setUserData(l,JSON.stringify(a),o,a.lastUpdatedAt,c),this.performanceClient.incrementFields({migratedRTCount:1},o),s.refreshToken.push(l);else{let u=this.getRefreshTokenCredential(l,o);(!u||a.lastUpdatedAt>u.lastUpdatedAt)&&(await this.setUserData(l,JSON.stringify(a),o,a.lastUpdatedAt,c),this.performanceClient.incrementFields({migratedRTCount:1},o))}}this.setTokenKeys(r,o,t),this.setTokenKeys(s,o)}trackVersionChanges(t){let n=this.browserStorage.getItem(MB);n&&(this.logger.info("1wuc87",t),this.performanceClient.addFields({previousLibraryVersion:n},t)),n!==js&&this.setItem(MB,js,t)}validateAndParseJson(t){if(!t)return null;try{let n=JSON.parse(t);return n&&typeof n=="object"?n:null}catch{return null}}setItem(t,n,o){let r=new Array(3).fill(0),s=[],i=20;for(let a=0;a<=i;a++)try{if(this.browserStorage.setItem(t,n),a>0)for(let l=0;l<=2;l++){let c=r.slice(0,l).reduce((p,m)=>p+m,0);if(c>=a)break;let u=a>c+r[l]?c+r[l]:a;a>c&&r[l]>0&&this.removeAccessTokenKeys(s.slice(c,u),o,l)}break}catch(l){let c=sb(l);if(c.errorCode===IT.cacheQuotaExceeded&&a0)for(let u=0;u<=2;u++){let p=i.slice(0,u).reduce((g,f)=>g+f,0);if(p>=c)break;let m=c>p+i[u]?p+i[u]:c;c>p&&i[u]>0&&this.removeAccessTokenKeys(a.slice(p,m),o,u)}break}catch(u){let p=sb(u);if(p.errorCode===IT.cacheQuotaExceeded&&c-1?(o.splice(r,1),this.setAccountKeys(o,n)):this.logger.trace("1dytu2",n)}removeAccount(t,n){let o=this.getActiveAccount(n);o?.homeAccountId===t.homeAccountId&&o?.environment===t.environment&&this.setActiveAccount(null,n),super.removeAccount(t,n),this.removeAccountKeyFromMap(this.generateAccountKey(t),n),this.browserStorage.getKeys().forEach(r=>{r.includes(t.homeAccountId)&&r.includes(t.environment)&&this.browserStorage.removeItem(r)})}removeIdToken(t,n){super.removeIdToken(t,n);let o=this.getTokenKeys(),r=o.idToken.indexOf(t);r>-1&&(this.logger.info("05udv9",n),o.idToken.splice(r,1),this.setTokenKeys(o,n))}removeAccessToken(t,n,o=!0){super.removeAccessToken(t,n),o&&this.removeAccessTokenKeys([t],n)}removeAccessTokenKeys(t,n,o=2){this.logger.trace("17o18n",n);let r=this.getTokenKeys(o),s=0;if(t.forEach(i=>{let a=r.accessToken.indexOf(i);a>-1&&(r.accessToken.splice(a,1),s++)}),s>0){this.logger.info("15i5d5",n),this.setTokenKeys(r,n,o);return}}removeRefreshToken(t,n){super.removeRefreshToken(t,n);let o=this.getTokenKeys(),r=o.refreshToken.indexOf(t);r>-1&&(this.logger.info("1f4fq3",n),o.refreshToken.splice(r,1),this.setTokenKeys(o,n))}getTokenKeys(t=2){return Ys(this.clientId,this.browserStorage,t)}setTokenKeys(t,n,o=2){if(t.idToken.length===0&&t.accessToken.length===0&&t.refreshToken.length===0){this.removeItem(Oc(this.clientId,o));return}else this.setItem(Oc(this.clientId,o),JSON.stringify(t),n)}getIdTokenCredential(t,n){let o=this.browserStorage.getUserData(t);if(!o)return this.logger.trace("1jukz6",n),this.removeIdToken(t,n),null;let r=this.validateAndParseJson(o);return!r||!ko.isIdTokenEntity(r)?(this.logger.trace("1jukz6",n),null):(this.logger.trace("01ju66",n),r)}async setIdTokenCredential(t,n,o){this.logger.trace("13hjll",n);let r=this.generateCredentialKey(t),s=Date.now().toString();t.lastUpdatedAt=s,await this.setUserData(r,JSON.stringify(t),n,s,o);let i=this.getTokenKeys();i.idToken.indexOf(r)===-1&&(this.logger.info("07jy92",n),i.idToken.push(r),this.setTokenKeys(i,n))}getAccessTokenCredential(t,n){let o=this.browserStorage.getUserData(t);if(!o)return this.logger.trace("0bqvx8",n),this.removeAccessTokenKeys([t],n),null;let r=this.validateAndParseJson(o);return!r||!ko.isAccessTokenEntity(r)?(this.logger.trace("0bqvx8",n),null):(this.logger.trace("1o81rl",n),r)}async setAccessTokenCredential(t,n,o){this.logger.trace("1pondb",n);let r=this.generateCredentialKey(t),s=Date.now().toString();t.lastUpdatedAt=s,await this.setUserData(r,JSON.stringify(t),n,s,o);let i=this.getTokenKeys(),a=i.accessToken.indexOf(r);a!==-1&&i.accessToken.splice(a,1),this.logger.trace("1onhey",n),i.accessToken.push(r),this.setTokenKeys(i,n)}getRefreshTokenCredential(t,n){let o=this.browserStorage.getUserData(t);if(!o)return this.logger.trace("0jlizt",n),this.removeRefreshToken(t,n),null;let r=this.validateAndParseJson(o);return!r||!ko.isRefreshTokenEntity(r)?(this.logger.trace("0jlizt",n),null):(this.logger.trace("0nokxi",n),r)}async setRefreshTokenCredential(t,n,o){this.logger.trace("0tcg8d",n);let r=this.generateCredentialKey(t),s=Date.now().toString();t.lastUpdatedAt=s,await this.setUserData(r,JSON.stringify(t),n,s,o);let i=this.getTokenKeys();i.refreshToken.indexOf(r)===-1&&(this.logger.info("0eckjs",n),i.refreshToken.push(r),this.setTokenKeys(i,n))}getAppMetadata(t,n){let o=this.browserStorage.getItem(t);if(!o)return this.logger.trace("1q101h",n),null;let r=this.validateAndParseJson(o);return!r||!ko.isAppMetadataEntity(t,r)?(this.logger.trace("1q101h",n),null):(this.logger.trace("19pvg2",n),r)}setAppMetadata(t,n){this.logger.trace("0cyma6",n);let o=ko.generateAppMetadataKey(t);this.setItem(o,JSON.stringify(t),n)}getServerTelemetry(t,n){let o=this.browserStorage.getItem(t);if(!o)return this.logger.trace("0jk19c",n),null;let r=this.validateAndParseJson(o);return!r||!ko.isServerTelemetryEntity(t,r)?(this.logger.trace("0jk19c",n),null):(this.logger.trace("12jguk",n),r)}setServerTelemetry(t,n,o){this.logger.trace("1poh61",o),this.setItem(t,JSON.stringify(n),o)}getAuthorityMetadata(t,n){let o=this.internalStorage.getItem(t);if(!o)return this.logger.trace("1r39oe",n),null;let r=this.validateAndParseJson(o);return r&&ko.isAuthorityMetadataEntity(t,r)?(this.logger.trace("1ohvk3",n),r):null}getAuthorityMetadataKeys(){return this.internalStorage.getKeys().filter(n=>this.isAuthorityMetadata(n))}setWrapperMetadata(t,n){this.internalStorage.setItem(HT.WRAPPER_SKU,t),this.internalStorage.setItem(HT.WRAPPER_VER,n)}getWrapperMetadata(){let t=this.internalStorage.getItem(HT.WRAPPER_SKU)||"",n=this.internalStorage.getItem(HT.WRAPPER_VER)||"";return[t,n]}setAuthorityMetadata(t,n,o){this.logger.trace("07w8n2",o),this.internalStorage.setItem(t,JSON.stringify(n))}getActiveAccount(t){let n=this.generateCacheKey(De.PersistentCacheKeys.ACTIVE_ACCOUNT_FILTERS),o=this.browserStorage.getItem(n);if(!o)return this.logger.trace("08gw0e",t),null;let r=this.validateAndParseJson(o);return r?(this.logger.trace("1t3ch7",t),this.getAccountInfoFilteredBy({homeAccountId:r.homeAccountId,localAccountId:r.localAccountId,tenantId:r.tenantId},t)):(this.logger.trace("0me1up",t),null)}setActiveAccount(t,n){let o=this.generateCacheKey(De.PersistentCacheKeys.ACTIVE_ACCOUNT_FILTERS);if(t){this.logger.verbose("0rsj80",n);let r={homeAccountId:t.homeAccountId,localAccountId:t.localAccountId,tenantId:t.tenantId};this.setItem(o,JSON.stringify(r),n)}else this.logger.verbose("1bp5z5",n),this.browserStorage.removeItem(o);this.eventHandler.emitEvent(rt.ACTIVE_ACCOUNT_CHANGED,n)}getThrottlingCache(t,n){let o=this.browserStorage.getItem(t);if(!o)return this.logger.trace("1h4wa6",n),null;let r=this.validateAndParseJson(o);return!r||!ko.isThrottlingEntity(t,r)?(this.logger.trace("1h4wa6",n),null):(this.logger.trace("0of6n8",n),r)}setThrottlingCache(t,n,o){this.logger.trace("0wfgh6",o),this.setItem(t,JSON.stringify(n),o)}getTemporaryCache(t,n,o){let r=o?this.generateCacheKey(t):t,s=this.temporaryCacheStorage.getItem(r);if(!s){if(this.cacheConfig.cacheLocation===Ho.LocalStorage){let i=this.browserStorage.getItem(r);if(i)return this.logger.trace("1yt61y",n),i}return this.logger.trace("1qhy81",n),null}return s}setTemporaryCache(t,n,o){let r=o?this.generateCacheKey(t):t;this.temporaryCacheStorage.setItem(r,n)}removeItem(t){this.browserStorage.removeItem(t)}removeTemporaryItem(t){this.temporaryCacheStorage.removeItem(t)}getKeys(){return this.browserStorage.getKeys()}clear(t){this.removeAllAccounts(t),this.removeAppMetadata(t),this.temporaryCacheStorage.getKeys().forEach(n=>{(n.indexOf(go)!==-1||n.indexOf(this.clientId)!==-1)&&this.removeTemporaryItem(n)}),this.browserStorage.getKeys().forEach(n=>{(n.indexOf(go)!==-1||n.indexOf(this.clientId)!==-1)&&this.browserStorage.removeItem(n)}),this.internalStorage.clear()}generateCacheKey(t){return Gn.startsWith(t,go)?t:`${go}.${this.clientId}.${t}`}generateCredentialKey(t){let n=t.credentialType===De.CredentialType.REFRESH_TOKEN&&t.familyId||t.clientId,o=t.tokenType&&t.tokenType.toLowerCase()!==De.AuthenticationScheme.BEARER.toLowerCase()?t.tokenType.toLowerCase():"";return[`${go}.${2}`,t.homeAccountId,t.environment,t.credentialType,n,t.realm||"",t.target||"",o].join(RB).toLowerCase()}generateAccountKey(t){let n=t.homeAccountId.split(".")[1];return[`${go}.${2}`,t.homeAccountId,t.environment,n||t.tenantId||""].join(RB).toLowerCase()}resetRequestCache(t){this.logger.trace("0h0ynu",t),this.removeTemporaryItem(this.generateCacheKey($n.REQUEST_PARAMS)),this.removeTemporaryItem(this.generateCacheKey($n.VERIFIER)),this.removeTemporaryItem(this.generateCacheKey($n.ORIGIN_URI)),this.removeTemporaryItem(this.generateCacheKey($n.URL_HASH)),this.removeTemporaryItem(this.generateCacheKey($n.NATIVE_REQUEST)),this.setInteractionInProgress(!1,void 0)}cacheAuthorizeRequest(t,n,o){this.logger.trace("1tzef5",n);let r=hd(JSON.stringify(t));if(this.setTemporaryCache($n.REQUEST_PARAMS,r,!0),o){let s=hd(o);this.setTemporaryCache($n.VERIFIER,s,!0)}}getCachedRequest(t){this.logger.trace("0uen20",t);let n=this.getTemporaryCache($n.REQUEST_PARAMS,t,!0);if(!n)throw _e(Dye);let o=this.getTemporaryCache($n.VERIFIER,t,!0),r,s="";try{r=JSON.parse(Bo(n)),o&&(s=Bo(o))}catch{throw this.logger.errorPii("0ewsey",t),this.logger.error("0tvdic",t),_e($ye)}return[r,s]}getCachedNativeRequest(){this.logger.trace("1yxcdm","");let t=this.getTemporaryCache($n.NATIVE_REQUEST,"",!0);if(!t)return this.logger.trace("0mnxd4",""),null;let n=this.validateAndParseJson(t);return n||(this.logger.error("0rrkip",""),null)}isInteractionInProgress(t){let n=this.getInteractionInProgress()?.clientId;return t?n===this.clientId:!!n}getInteractionInProgress(){let t=`${go}.${$n.INTERACTION_STATUS_KEY}`,n=this.getTemporaryCache(t,"",!1);try{return n?JSON.parse(n):null}catch{return this.logger.error("0jjyys",""),this.removeTemporaryItem(t),this.resetRequestCache(""),sP(window),null}}setInteractionInProgress(t,n=ya.SIGNIN,o=!1,r=""){let s=`${go}.${$n.INTERACTION_STATUS_KEY}`;if(t){if(this.getInteractionInProgress())if(o)this.logger.warning("1pmscr",r),dve(this.logger,r),this.removeTemporaryItem(s);else throw _e(Cye);this.setTemporaryCache(s,JSON.stringify({clientId:this.clientId,type:n}),!1)}else!t&&this.getInteractionInProgress()?.clientId===this.clientId&&this.removeTemporaryItem(s)}async hydrateCache(t,n){let o=ko.createIdTokenEntity(t.account.homeAccountId,t.account.environment,t.idToken,this.clientId,t.tenantId),r=ko.createAccessTokenEntity(t.account.homeAccountId,t.account.environment,t.accessToken,this.clientId,t.tenantId,t.scopes.join(" "),t.expiresOn?rs.toSecondsFromDate(t.expiresOn):0,t.extExpiresOn?rs.toSecondsFromDate(t.extExpiresOn):0,Bo,void 0,t.tokenType,void 0,n.sshKid);n.resource&&(r.resource=n.resource);let s={idToken:o,accessToken:r};return this.saveCacheRecord(s,t.correlationId,Tr.isKmsi(Tr.extractTokenClaims(t.idToken,Bo)),Et.hydrateCache)}async saveCacheRecord(t,n,o,r,s){try{await super.saveCacheRecord(t,n,o,r,s)}catch(i){if(i instanceof pd&&this.performanceClient&&n)try{let a=this.getTokenKeys();this.performanceClient.addFields({cacheRtCount:a.refreshToken.length,cacheIdCount:a.idToken.length,cacheAtCount:a.accessToken.length},n)}catch{}throw i}}};function kve(e,t,n,o){try{switch(t){case Ho.LocalStorage:return new mP(e,n,o);case Ho.SessionStorage:return new gP;case Ho.MemoryStorage:default:break}}catch(r){n.error(r,"")}return new Fc}var Ive=(e,t,n,o)=>{let r={cacheLocation:Ho.MemoryStorage,cacheRetentionDays:5};return new kb(e,r,cd,t,n,o)};function Pve(e,t,n,o,r){return e.verbose("1yd030",o),n?t.getAllAccounts(r,o):[]}function Lve(e,t,n,o){t.trace("0u7b90",o);let r=n.getAccountInfoFilteredBy(e,o);return r?(t.verbose("0btgll",o),r):(t.verbose("0ltaj5",o),null)}function Rve(e,t,n){t.setActiveAccount(e,n)}function Mve(e,t){return e.getActiveAccount(t)}var hBe="msal.broadcast.event",fP=class{constructor(t){this.eventCallbacks=new Map,this.logger=t||new Ao({}),typeof BroadcastChannel<"u"&&(this.broadcastChannel=new BroadcastChannel(hBe)),this.invokeCrossTabCallbacks=this.invokeCrossTabCallbacks.bind(this)}addEventCallback(t,n,o){if(typeof window<"u"){let r=o||QT();return this.eventCallbacks.has(r)?(this.logger.error("1578i0",""),null):(this.eventCallbacks.set(r,[t,n||[]]),this.logger.verbose("1cnec4",""),r)}return null}removeEventCallback(t){this.eventCallbacks.delete(t),this.logger.verbose("12zotd","")}emitEvent(t,n,o,r,s){let i={eventType:t,interactionType:o||null,payload:r||null,error:s||null,correlationId:n,timestamp:Date.now()};switch(t){case rt.LOGIN_SUCCESS:case rt.LOGOUT_SUCCESS:case rt.ACTIVE_ACCOUNT_CHANGED:this.broadcastChannel?.postMessage(i)}this.invokeCallbacks(i)}invokeCallbacks(t){this.eventCallbacks.forEach(([n,o],r)=>{(o.length===0||o.includes(t.eventType))&&(this.logger.verbose("15jpwk",""),n.apply(null,[t]))})}invokeCrossTabCallbacks(t){let n=t.data;this.invokeCallbacks(n)}subscribeCrossTab(){this.broadcastChannel?.addEventListener("message",this.invokeCrossTabCallbacks)}unsubscribeCrossTab(){this.broadcastChannel?.removeEventListener("message",this.invokeCrossTabCallbacks)}};var Ib=class{constructor(t,n,o,r,s,i,a,l,c){this.config=t,this.browserStorage=n,this.browserCrypto=o,this.networkClient=this.config.system.networkClient,this.eventHandler=s,this.navigationClient=i,this.platformAuthProvider=c,this.correlationId=l,this.logger=r.clone(Po.MSAL_SKU,js),this.performanceClient=a}};function rg(e,t,n,o){n.verbose("0bd1la",o);let r=e||t||"";return Ct.getAbsoluteUrl(r,Ci())}function eo(e,t,n,o,r,s){r.verbose("1p12tq",n);let i={clientId:t,correlationId:n,apiId:e,forceRefresh:!1,wrapperSKU:o.getWrapperMetadata()[0],wrapperVer:o.getWrapperMetadata()[1]};return new eg(i,o)}async function as(e,t,n,o,r,s,i,a,l){let c=a&&a.hasOwnProperty("instance_aware")?a.instance_aware:void 0,u={protocolMode:e.system.protocolMode,OIDCOptions:e.auth.OIDCOptions,knownAuthorities:e.auth.knownAuthorities,cloudDiscoveryMetadata:e.auth.cloudDiscoveryMetadata,authorityMetadata:e.auth.authorityMetadata},p=s||e.auth.authority,m=c?.length?c==="true":e.auth.instanceAware,g=l&&m?e.auth.authority.replace(Ct.getDomainFromUrl(p),l.environment):p,f=$c.generateAuthority(g,i||e.auth.azureCloudOptions),_=await W(YI.createDiscoveredInstance,Z_e,r,n,t)(f,e.system.networkClient,o,u,r,t,n);if(l&&!_.isAlias(l.environment))throw $t(os.authorityMismatch);return _}async function Pb(e,t,n,o,r){if(r)try{e.removeAccount(r,o),n.verbose("0s4z6h",o)}catch{n.error("0mgg1d",o)}else try{n.verbose("0zj631",o),e.clear(o),await t.clearKeystore(o)}catch{n.error("12ih0c",o)}}async function YT(e,t,n,o,r){let s=e.authority||t.auth.authority,i=[...e&&e.scopes||[]],a={...e,correlationId:e.correlationId,authority:s,scopes:i};if(!a.authenticationScheme)a.authenticationScheme=De.AuthenticationScheme.BEARER,o.verbose("1l4fwv",r);else{if(a.authenticationScheme===De.AuthenticationScheme.SSH){if(!e.sshJwk)throw $t(os.missingSshJwk);if(!e.sshKid)throw $t(os.missingSshKid)}o.verbose("1ecmns",r)}return a}async function Dve(e,t,n,o,r){let s=await W(YT,pb,r,o,e.correlationId)(e,n,o,r,e.correlationId);return{...e,...s,account:t,forceRefresh:e.forceRefresh||!1}}function hP(e,t){let n,o=e.httpMethod;if(t===Tn.EAR){if(o&&o!==De.HttpMethod.POST)throw $t(os.invalidRequestMethodForEAR);n=De.HttpMethod.POST}else n=o||De.HttpMethod.GET;return n}var ls=class extends Ib{initializeLogoutRequest(t){this.logger.verbose("0546u4",this.correlationId);let n={correlationId:this.correlationId,...t};if(t)if(t.logoutHint)this.logger.verbose("12k4l4",this.correlationId);else if(t.account){let o=this.getLogoutHintFromIdTokenClaims(t.account);o&&(this.logger.verbose("0st5di",this.correlationId),n.logoutHint=o)}else this.logger.verbose("0pdtc3",this.correlationId);else this.logger.verbose("07ndze",this.correlationId);return!t||t.postLogoutRedirectUri!==null?t&&t.postLogoutRedirectUri?(this.logger.verbose("1vamm6",n.correlationId),n.postLogoutRedirectUri=Ct.getAbsoluteUrl(t.postLogoutRedirectUri,Ci())):this.config.auth.postLogoutRedirectUri===null?this.logger.verbose("15m5g7",n.correlationId):this.config.auth.postLogoutRedirectUri?(this.logger.verbose("1f4xlz",n.correlationId),n.postLogoutRedirectUri=Ct.getAbsoluteUrl(this.config.auth.postLogoutRedirectUri,Ci())):(this.logger.verbose("17s5rf",n.correlationId),n.postLogoutRedirectUri=Ct.getAbsoluteUrl(Ci(),Ci())):this.logger.verbose("0ljv63",n.correlationId),n}getLogoutHintFromIdTokenClaims(t){let n=t.idTokenClaims;if(n){if(n.login_hint)return n.login_hint;this.logger.verbose("0mvp54",this.correlationId)}else this.logger.verbose("1e7bdp",this.correlationId);return null}async createAuthCodeClient(t){let n=await W(this.getClientConfiguration.bind(this),gd,this.logger,this.performanceClient,this.correlationId)(t);return new Zm(n,this.performanceClient)}async getClientConfiguration(t){let{serverTelemetryManager:n,requestAuthority:o,requestAzureCloudOptions:r,requestExtraQueryParameters:s,account:i}=t,a=t.authority||await W(as,ha,this.logger,this.performanceClient,this.correlationId)(this.config,this.correlationId,this.performanceClient,this.browserStorage,this.logger,o,r,s,i),l=this.config.system.loggerOptions;return{authOptions:{clientId:this.config.auth.clientId,authority:a,clientCapabilities:this.config.auth.clientCapabilities,redirectUri:this.config.auth.redirectUri,isMcp:this.config.auth.isMcp},systemOptions:{tokenRenewalOffsetSeconds:this.config.system.tokenRenewalOffsetSeconds,preventCorsPreflight:!0},loggerOptions:{loggerCallback:l.loggerCallback,piiLoggingEnabled:l.piiLoggingEnabled,logLevel:l.logLevel,correlationId:this.correlationId},cryptoInterface:this.browserCrypto,networkInterface:this.networkClient,storageInterface:this.browserStorage,serverTelemetryManager:n,libraryInfo:{sku:Po.MSAL_SKU,version:js,cpu:"",os:""},telemetry:this.config.telemetry}}};async function yd(e,t,n,o,r,s,i,a){let l=rg(e.redirectUri,n.auth.redirectUri,s,a);new URL(l).origin!==new URL(window.location.href).origin&&(s.warning("08qbvw",a),i.addFields({isRedirectUriCrossOrigin:!0},a));let c={interactionType:t},u=ga.setRequestState(o,e&&e.state||"",c),m={...await W(YT,pb,s,i,a)({...e,correlationId:a},n,i,s,a),redirectUri:l,state:u,nonce:e.nonce||Qs(),responseMode:n.auth.OIDCOptions.responseMode},g={...m,httpMethod:hP(m,n.system.protocolMode)};if(e.loginHint||e.sid)return g;let f=e.account||r.getActiveAccount(a);return f&&(s.verbose("1eqlb3",a),s.verbosePii("0tf99t",a),g.account=f),g}function $ve(e,t){if(!t)return null;try{return ga.parseRequestState(e.base64Decode,t).libraryState.meta}catch{throw re(Co.invalidState)}}function sg(e,t,n,o){let r=Ti.getDeserializedResponse(e);if(!r)throw Ti.stripLeadingHashOrQuery(e)?(n.error("13pl0s",o),n.errorPii("1097vx",o),_e(wye)):(n.error("18h0l1",o),_e(Tye));return r}function Nve(e,t,n){if(!e.state)throw _e(yb);let o=$ve(t,e.state);if(!o)throw _e(JI);if(o.interactionType!==n)throw _e(Sye)}var Lb=class{constructor(t,n,o,r,s){this.authModule=t,this.browserStorage=n,this.authCodeRequest=o,this.logger=r,this.performanceClient=s}async handleCodeResponse(t,n,o){let r;try{r=xl.getAuthorizationCodePayload(t,n.state)}catch(s){throw s instanceof is&&s.subError===zT?_e(zT):s}return W(this.handleCodeResponseFromServer.bind(this),Io.HandleCodeResponseFromServer,this.logger,this.performanceClient,n.correlationId)(r,n,o)}async handleCodeResponseFromServer(t,n,o,r=!0){if(this.logger.trace("0mf2hb",n.correlationId),this.authCodeRequest.code=t.code,r&&(t.nonce=n.nonce||void 0),t.state=n.state,t.client_info)this.authCodeRequest.clientInfo=t.client_info;else{let i=this.createCcsCredentials(n);i&&(this.authCodeRequest.ccsCredential=i)}return await W(this.authModule.acquireToken.bind(this.authModule),X_e,this.logger,this.performanceClient,n.correlationId)(this.authCodeRequest,o,t)}createCcsCredentials(t){return t.account?{credential:t.account.homeAccountId,type:wr.HOME_ACCOUNT_ID}:t.loginHint?{credential:t.loginHint,type:wr.UPN}:null}};var Fve="ContentError",Uve="PageException",Ove="user_switch";var qve="USER_INTERACTION_REQUIRED",Hve="USER_CANCEL",Bve="NO_NETWORK",zve="PERSISTENT_ERROR",Gve="DISABLED",Vve="ACCOUNT_UNAVAILABLE",Qve="UX_NOT_ALLOWED";var bBe=-2147186943,Ei=class e extends at{constructor(t,n,o){super(t,n||hb(t)),Object.setPrototypeOf(this,e.prototype),this.name="NativeAuthError",this.ext=o}};function vd(e){if(e.ext&&e.ext.status&&(e.ext.status===zve||e.ext.status===Gve)||e.ext&&e.ext.error&&e.ext.error===bBe)return!0;switch(e.errorCode){case Fve:case Uve:return!0;default:return!1}}function ig(e,t,n){if(n&&n.status)switch(n.status){case Vve:return Jm(vl.nativeAccountUnavailable,hb(e));case qve:return new Dn(e,t);case Hve:return _e(zT);case Bve:return _e(GT);case Qve:return Jm(vl.uxNotAllowed)}return new Ei(e,t,n)}var Rb=class extends ls{async acquireToken(t){let n=eo(Et.acquireTokenSilent_silentFlow,this.config.auth.clientId,this.correlationId,this.browserStorage,this.logger),o=await W(this.getClientConfiguration.bind(this),gd,this.logger,this.performanceClient,this.correlationId)({serverTelemetryManager:n,requestAuthority:t.authority,requestAzureCloudOptions:t.azureCloudOptions,account:t.account}),r=new UT(o,this.performanceClient);this.logger.verbose("0wa871",this.correlationId);try{let i=(await W(r.acquireCachedToken.bind(r),W_e,this.logger,this.performanceClient,t.correlationId)(t))[0];return this.performanceClient.addFields({fromCache:!0},t.correlationId),i}catch(s){throw s instanceof ng&&s.errorCode===ZI&&this.logger.verbose("06wena",this.correlationId),s}}logout(t){this.logger.verbose("1rkurh",this.correlationId);let n=this.initializeLogoutRequest(t);return Pb(this.browserStorage,this.browserCrypto,this.logger,this.correlationId,n.account)}};var xd=class extends Ib{constructor(t,n,o,r,s,i,a,l,c,u,p,m){super(t,n,o,r,s,i,l,m,c),this.apiId=a,this.accountId=u,this.platformAuthProvider=c,this.nativeStorageManager=p,this.silentCacheClient=new Rb(t,this.nativeStorageManager,o,r,s,i,l,m,c);let g=this.platformAuthProvider.getExtensionName();this.skus=eg.makeExtraSkuString({libraryName:Po.MSAL_SKU,libraryVersion:js,extensionName:g,extensionVersion:this.platformAuthProvider.getExtensionVersion()})}addRequestSKUs(t){t.extraParameters={...t.extraParameters,[Ac.X_CLIENT_EXTRA_SKU]:this.skus}}async acquireToken(t,n){this.logger.trace("03qeos",this.correlationId);let o=this.performanceClient.startMeasurement(jI,t.correlationId),r=rs.nowSeconds(),s=eo(this.apiId,this.config.auth.clientId,this.correlationId,this.browserStorage,this.logger);try{let i=await this.initializeNativeRequest(t);try{let l=await this.acquireTokensFromCache(this.accountId,i);return o.end({success:!0,isNativeBroker:!1,fromCache:!0}),l}catch(l){if(n===lr.AccessToken)throw this.logger.info("0eitbc",this.correlationId),l;this.logger.info("0957j1",this.correlationId)}let a=await this.platformAuthProvider.sendMessage(i);return await this.handleNativeResponse(a,i,r).then(l=>(o.end({success:!0,isNativeBroker:!0,requestId:l.requestId}),s.clearNativeBrokerErrorCode(),l)).catch(l=>{throw o.end({success:!1,errorCode:l.errorCode,subErrorCode:l.subError,isNativeBroker:!0}),l})}catch(i){throw i instanceof Ei&&s.setNativeBrokerErrorCode(i.errorCode),i}}createSilentCacheRequest(t,n){return{authority:t.authority,correlationId:this.correlationId,scopes:Eo.fromString(t.scope).asArray(),account:n,forceRefresh:!1}}async acquireTokensFromCache(t,n){if(!t)throw this.logger.warning("1ndf3e",this.correlationId),re(Co.noAccountFound);let o=this.browserStorage.getBaseAccountInfo({nativeAccountId:t},n.correlationId);if(!o)throw re(Co.noAccountFound);try{let r=this.createSilentCacheRequest(n,o),s=await this.silentCacheClient.acquireToken(r),i={...o,idTokenClaims:s?.idTokenClaims,idToken:s?.idToken};return{...s,account:i}}catch(r){throw r}}async acquireTokenRedirect(t,n,o){this.logger.trace("0luikq",this.correlationId);let r=await this.initializeNativeRequest(t),s=o?.navigateToLoginRequestUrl??!0;try{await this.platformAuthProvider.sendMessage(r)}catch(l){if(l instanceof Ei&&(eo(this.apiId,this.config.auth.clientId,this.correlationId,this.browserStorage,this.logger).setNativeBrokerErrorCode(l.errorCode),vd(l)))throw l}this.browserStorage.setTemporaryCache($n.NATIVE_REQUEST,JSON.stringify(r),!0);let i={apiId:Et.acquireTokenRedirect,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},a=s?window.location.href:rg(t.redirectUri,this.config.auth.redirectUri,this.logger,this.correlationId);n.end({success:!0}),await this.navigationClient.navigateExternal(a,i)}async handleRedirectPromise(t,n){if(this.logger.trace("1c5lhw",this.correlationId),!this.browserStorage.isInteractionInProgress(!0))return this.logger.info("0le6uv",this.correlationId),null;let o=this.browserStorage.getCachedNativeRequest();if(!o)return this.logger.verbose("0a6zjb",this.correlationId),t&&n&&t?.addFields({errorCode:"no_cached_request"},n),null;let{prompt:r,...s}=o;r&&this.logger.verbose("0ac34v",this.correlationId),this.browserStorage.removeItem(this.browserStorage.generateCacheKey($n.NATIVE_REQUEST));let i=rs.nowSeconds();try{this.logger.verbose("003x5a",this.correlationId);let a=await this.platformAuthProvider.sendMessage(s),l=await this.handleNativeResponse(a,s,i);return eo(this.apiId,this.config.auth.clientId,this.correlationId,this.browserStorage,this.logger).clearNativeBrokerErrorCode(),l}catch(a){throw a}}logout(){return this.logger.trace("0u2sjm",this.correlationId),Promise.reject("Logout not implemented yet")}async handleNativeResponse(t,n,o){this.logger.trace("1bojln",this.correlationId);let r=Tr.extractTokenClaims(t.id_token,Bo),s=this.createHomeAccountIdentifier(t,r),i=this.browserStorage.getAccountInfoFilteredBy({nativeAccountId:n.accountId},this.correlationId)?.homeAccountId;if(n.extraParameters?.child_client_id&&t.account.id!==n.accountId)this.logger.info("1ub1in",this.correlationId);else if(s!==i&&t.account.id!==n.accountId)throw ig(Ove);let a=await as(this.config,this.correlationId,this.performanceClient,this.browserStorage,this.logger,n.authority),l=HI(this.browserStorage,a,s,Bo,this.correlationId,r,t.client_info,a.getPreferredCache(),r.tid,void 0,t.account.id,this.logger,this.performanceClient);t.expires_in=Number(t.expires_in);let c=await this.generateAuthenticationResult(t,n,r,l,a.canonicalAuthority,o);return await this.cacheAccount(l,Tr.isKmsi(r)),await this.cacheNativeTokens(t,n,s,r,t.access_token,c.tenantId,o),c}createHomeAccountIdentifier(t,n){return wi.generateHomeAccountId(t.client_info||"",$r.Default,this.logger,this.browserCrypto,this.correlationId,n)}generateScopes(t,n){return n?Eo.fromString(n):Eo.fromString(t)}async generatePopAccessToken(t,n){if(n.tokenType===De.AuthenticationScheme.POP&&n.signPopToken){if(t.shr)return this.logger.trace("0coqhu",this.correlationId),t.shr;let o=new ss(this.browserCrypto,this.performanceClient),r={resourceRequestMethod:n.resourceRequestMethod,resourceRequestUri:n.resourceRequestUri,shrClaims:n.shrClaims,shrNonce:n.shrNonce,correlationId:this.correlationId};if(!n.keyId)throw re(Co.keyIdMissing);return o.signPopToken(t.access_token,n.keyId,r)}else return t.access_token}async generateAuthenticationResult(t,n,o,r,s,i){let a=this.addTelemetryFromNativeResponse(t.properties.MATS),l=this.generateScopes(n.scope,t.scope),c=t.account.properties||{},u=c.UID||o.oid||o.sub||"",p=c.TenantId||o.tid||"",m=Ym(wi.getAccountInfo(r),void 0,o,t.id_token);m.nativeAccountId!==t.account.id&&(m.nativeAccountId=t.account.id);let g=await this.generatePopAccessToken(t,n),f=n.tokenType===De.AuthenticationScheme.POP?De.AuthenticationScheme.POP:De.AuthenticationScheme.BEARER;return{authority:s,uniqueId:u,tenantId:p,scopes:l.asArray(),account:m,idToken:t.id_token,idTokenClaims:o,accessToken:g,fromCache:a?this.isResponseFromCache(a):!1,expiresOn:rs.toDateFromSeconds(i+t.expires_in),tokenType:f,correlationId:this.correlationId,state:t.state,fromPlatformBroker:!0,...n.resource&&{resource:n.resource}}}async cacheAccount(t,n){await this.browserStorage.setAccount(t,this.correlationId,n,this.apiId),this.browserStorage.removeAccountContext(wi.getAccountInfo(t),this.correlationId)}cacheNativeTokens(t,n,o,r,s,i,a){let l=ko.createIdTokenEntity(o,n.authority,t.id_token||"",n.clientId,r.tid||""),c=n.tokenType===De.AuthenticationScheme.POP?De.SHR_NONCE_VALIDITY:(typeof t.expires_in=="string"?parseInt(t.expires_in,10):t.expires_in)||0,u=a+c,p=this.generateScopes(t.scope,n.scope),m=ko.createAccessTokenEntity(o,n.authority,s,n.clientId,r.tid||i,p.printScopes(),u,0,Bo,void 0,n.tokenType,void 0,n.keyId),g={idToken:l,accessToken:m};return this.nativeStorageManager.saveCacheRecord(g,this.correlationId,Tr.isKmsi(r),this.apiId,n.storeInCache)}getExpiresInValue(t,n){return t===De.AuthenticationScheme.POP?De.SHR_NONCE_VALIDITY:(typeof n=="string"?parseInt(n,10):n)||0}addTelemetryFromNativeResponse(t){let n=this.getMATSFromResponse(t);return n?(this.performanceClient.addFields({extensionId:this.platformAuthProvider.getExtensionId(),extensionVersion:this.platformAuthProvider.getExtensionVersion(),matsBrokerVersion:n.broker_version,matsAccountJoinOnStart:n.account_join_on_start,matsAccountJoinOnEnd:n.account_join_on_end,matsDeviceJoin:n.device_join,matsPromptBehavior:n.prompt_behavior,matsApiErrorCode:n.api_error_code,matsUiVisible:n.ui_visible,matsSilentCode:n.silent_code,matsSilentBiSubCode:n.silent_bi_sub_code,matsSilentMessage:n.silent_message,matsSilentStatus:n.silent_status,matsHttpStatus:n.http_status,matsHttpEventCount:n.http_event_count},this.correlationId),n):null}getMATSFromResponse(t){if(t)try{return JSON.parse(t)}catch{this.logger.error("0b3l57",this.correlationId)}return null}isResponseFromCache(t){return typeof t.is_cached>"u"?(this.logger.verbose("1okqev",this.correlationId),!1):!!t.is_cached}async initializeNativeRequest(t){this.logger.trace("04j6wj",this.correlationId);let n=await this.getCanonicalAuthority(t),{scopes:o,...r}=t,s=new Eo(o||[]);s.appendScopes(De.OIDC_DEFAULT_SCOPES);let i={...r,accountId:this.accountId,clientId:this.config.auth.clientId,authority:n.urlString,scope:s.printScopes(),redirectUri:rg(t.redirectUri,this.config.auth.redirectUri,this.logger,this.correlationId),prompt:this.getPrompt(t.prompt),correlationId:this.correlationId,tokenType:t.authenticationScheme,windowTitleSubstring:document.title,extraParameters:{...t.extraParameters},extendedExpiryToken:!1,keyId:t.popKid};if(i.signPopToken&&t.popKid)throw _e(Qye);if(this.handleExtraBrokerParams(i),i.extraParameters=i.extraParameters||{},i.extraParameters.telemetry=Nr.MATS_TELEMETRY,t.authenticationScheme===De.AuthenticationScheme.POP){let a={resourceRequestUri:t.resourceRequestUri,resourceRequestMethod:t.resourceRequestMethod,shrClaims:t.shrClaims,shrNonce:t.shrNonce,correlationId:this.correlationId},l=new ss(this.browserCrypto,this.performanceClient),c;if(i.keyId)c=this.browserCrypto.base64UrlEncode(JSON.stringify({kid:i.keyId})),i.signPopToken=!1;else{let u=await W(l.generateCnf.bind(l),Io.PopTokenGenerateCnf,this.logger,this.performanceClient,this.correlationId)(a,this.logger);c=u.reqCnfString,i.keyId=u.kid,i.signPopToken=!0}i.reqCnf=c}return this.addRequestSKUs(i),i}async getCanonicalAuthority(t){let n=t.authority||this.config.auth.authority,{azureCloudOptions:o,account:r}=t;r&&await as(this.config,this.correlationId,this.performanceClient,this.browserStorage,this.logger,n,o,void 0,r);let s=new Ct(n);return s.validateAsUri(),s}getPrompt(t){switch(this.apiId){case Et.ssoSilent:case Et.acquireTokenSilent_silentFlow:return this.logger.trace("1hiwaz",this.correlationId),De.PromptValue.NONE}if(!t){this.logger.trace("1qlu04",this.correlationId);return}switch(t){case De.PromptValue.NONE:case De.PromptValue.CONSENT:case De.PromptValue.LOGIN:return this.logger.trace("1ynje4",this.correlationId),t;default:throw this.logger.trace("0nkr6q",this.correlationId),_e(Gye)}}handleExtraBrokerParams(t){let n=t.extraParameters&&t.extraParameters.hasOwnProperty(Ac.BROKER_CLIENT_ID)&&t.extraParameters.hasOwnProperty(Ac.BROKER_REDIRECT_URI)&&t.extraParameters.hasOwnProperty(Ac.CLIENT_ID);if(!t.embeddedClientId&&!n)return;let o="",r=t.redirectUri;t.embeddedClientId?(t.redirectUri=this.config.auth.redirectUri,o=t.embeddedClientId):t.extraParameters&&(t.redirectUri=t.extraParameters[Ac.BROKER_REDIRECT_URI],o=t.extraParameters[Ac.CLIENT_ID]),t.extraParameters={child_client_id:o,child_redirect_uri:r},this.performanceClient?.addFields({embeddedClientId:o,embeddedRedirectUri:r},t.correlationId)}};var _Be=new Map([["e","AAD"],["m","MSA"]]);function yBe(e){if(!e)return null;try{let o=(/%(?:[0-9A-Fa-f]{2})/.test(e)?decodeURIComponent(e):e).split("|");return o.length<5?null:{accountType:_Be.get(o[0]?.trim()||"")||"",error:o[1]?.trim()||"",subError:o[2]?.trim()||"",cloudInstance:o[3]?.trim()||"",callerDataBoundary:o[4]?.trim()||""}}catch{return null}}function Yve(e,t,n){let o=yBe(e.clientdata);o?.accountType&&n.addFields({accountType:o.accountType},t),o?.error&&n.addFields({serverErrorNo:o.error},t),o?.subError&&n.addFields({serverSubErrorNo:o.subError},t)}async function $B(e,t,n,o,r){let s=xl.getStandardAuthorizeRequestParameters({...e.auth,authority:t},n,o,r);if(kn.addLibraryInfo(s,{sku:Po.MSAL_SKU,version:js,os:"",cpu:""}),e.system.protocolMode!==Tn.OIDC&&kn.addApplicationTelemetry(s,e.telemetry.application),n.platformBroker&&(kn.addNativeBroker(s),n.authenticationScheme===De.AuthenticationScheme.POP)){let i=new wl(o,r),a=new ss(i,r),l;n.popKid?l=i.encodeKid(n.popKid):l=(await W(a.generateCnf.bind(a),Io.PopTokenGenerateCnf,o,r,n.correlationId)(n,o)).reqCnfString,kn.addPopToken(s,l)}return kn.instrumentBrokerParams(s,n.correlationId,r),s}async function Mb(e,t,n,o,r){if(!n.codeChallenge)throw $t(os.pkceParamsMissing);let s=await W($B,K_e,o,r,n.correlationId)(e,t,n,o,r);return kn.addResponseType(s,De.OAuthResponseType.CODE),kn.addCodeChallengeParams(s,n.codeChallenge,De.S256_CODE_CHALLENGE_METHOD),kn.addExtraParameters(s,{...n.extraQueryParameters,...n.extraParameters}),xl.getAuthorizeUrl(t,s)}async function Db(e,t,n,o,r,s){if(!o.earJwk)throw _e(hB);let i=await $B(t,n,o,r,s);kn.addResponseType(i,De.OAuthResponseType.IDTOKEN_TOKEN_REFRESHTOKEN),kn.addEARParameters(i,o.earJwk),kn.addCodeChallengeParams(i,o.codeChallenge,De.S256_CODE_CHALLENGE_METHOD),kn.addExtraParameters(i,{...o.extraParameters});let a=new Map;kn.addExtraParameters(a,o.extraQueryParameters||{}),kn.addCorrelationId(a,o.correlationId);let l=xl.getAuthorizeUrl(n,a);return jve(e,l,i)}async function $b(e,t,n,o,r,s){let i=await $B(t,n,o,r,s);kn.addResponseType(i,De.OAuthResponseType.CODE),kn.addCodeChallengeParams(i,o.codeChallenge,o.codeChallengeMethod||De.S256_CODE_CHALLENGE_METHOD),kn.addExtraParameters(i,{...o.extraParameters});let a=new Map;kn.addExtraParameters(a,o.extraQueryParameters||{}),kn.addCorrelationId(a,o.correlationId);let l=xl.getAuthorizeUrl(n,a);return jve(e,l,i)}function jve(e,t,n){let o=e.createElement("form");return o.method="post",o.action=t,n.forEach((r,s)=>{let i=e.createElement("input");i.hidden=!0,i.name=s,i.value=r,o.appendChild(i)}),e.body.appendChild(o),o}async function Wve(e,t,n,o,r,s,i,a,l,c){if(a.verbose("11qcow",e.correlationId),!c)throw _e(tP);let u=new wl(a,l),p=new xd(o,r,u,a,i,o.system.navigationClient,n,l,c,t,s,e.correlationId),{userRequestState:m}=ga.parseRequestState(u.base64Decode,e.state);return W(p.acquireToken.bind(p),jI,a,l,e.correlationId)({...e,state:m,prompt:void 0})}async function Hc(e,t,n,o,r,s,i,a,l,c,u,p){if(Dc.removeThrottle(i,r.auth.clientId,e),Yve(t,e.correlationId,u),t.accountId)return W(Wve,lB,c,u,e.correlationId)(e,t.accountId,o,r,i,a,l,c,u,p);let m={...e,code:t.code||"",codeVerifier:n},g=new Lb(s,i,m,c,u);return await W(g.handleCodeResponse.bind(g),J_e,c,u,e.correlationId)(t,e,o)}async function Nb(e,t,n,o,r,s,i,a,l,c,u){if(Dc.removeThrottle(s,o.auth.clientId,e),Yve(t,e.correlationId,c),xl.validateAuthorizationResponse(t,e.state),!t.ear_jwe)throw _e(xye);if(!e.earJwk)throw _e(hB);let p=JSON.parse(await W(sve,mye,l,c,e.correlationId)(e.earJwk,t.ear_jwe));if(p.accountId)return W(Wve,lB,l,c,e.correlationId)(e,p.accountId,n,o,s,i,a,l,c,u);let m=new fa(o.auth.clientId,s,new wl(l,c),l,c,null,null);m.validateTokenResponse(p,e.correlationId);let g={code:"",state:e.state,nonce:e.nonce,client_info:p.client_info,cloud_graph_host_name:p.cloud_graph_host_name,cloud_instance_host_name:p.cloud_instance_host_name,cloud_instance_name:p.cloud_instance_name,msgraph_host:p.msgraph_host};return await W(m.handleServerTokenResponse.bind(m),Io.HandleServerTokenResponse,l,c,e.correlationId)(p,r,rs.nowSeconds(),e,n,g,void 0,void 0,void 0,void 0)}var vBe=32;async function va(e,t,n){let o=mo(xBe,sye,t,e,n)(e,t,n),r=await W(TBe,iye,t,e,n)(o,e,t,n);return{verifier:o,challenge:r}}function xBe(e,t,n){try{let o=new Uint8Array(vBe);return mo(tve,lye,t,e,n)(o),Si(o)}catch{throw _e(fB)}}async function TBe(e,t,n,o){try{let r=await W(SB,aye,n,t,o)(e);return Si(new Uint8Array(r))}catch{throw _e(fB)}}var bP=class e{navigateInternal(t,n){return e.defaultNavigateWindow(t,n)}navigateExternal(t,n){return e.defaultNavigateWindow(t,n)}static defaultNavigateWindow(t,n){return n.noHistory?window.location.replace(t):window.location.assign(t),new Promise((o,r)=>{setTimeout(()=>{r(_e(og,"failed_to_redirect"))},n.timeout)})}};var _P=class{async sendGetRequestAsync(t,n){let o,r={},s=0,i=Kve(n);try{o=await fetch(t,{method:pB.GET,headers:i})}catch(a){throw Xm(_e(window.navigator.onLine?Fye:GT),void 0,void 0,a)}r=Jve(o.headers);try{return s=o.status,{headers:r,body:await o.json(),status:s}}catch(a){throw Xm(_e(_B),s,r,a)}}async sendPostRequestAsync(t,n){let o=n&&n.body||"",r=Kve(n),s,i=0,a={};try{s=await fetch(t,{method:pB.POST,headers:r,body:o})}catch(l){throw Xm(_e(window.navigator.onLine?Nye:GT),void 0,void 0,l)}a=Jve(s.headers);try{return i=s.status,{headers:a,body:await s.json(),status:i}}catch(l){throw Xm(_e(_B),i,a,l)}}};function Kve(e){try{let t=new Headers;if(!(e&&e.headers))return t;let n=e.headers;return Object.entries(n).forEach(([o,r])=>{t.append(o,r)}),t}catch(t){throw Xm(_e(Yye),void 0,void 0,t)}}function Jve(e){try{let t={};return e.forEach((n,o)=>{t[o]=n}),t}catch{throw _e(jye)}}var wBe=6e4,SBe=1e4,CBe=3e4,NB=2e3;function Xve({auth:e,cache:t,system:n,experimental:o,telemetry:r},s){let i={clientId:"",authority:`${De.DEFAULT_AUTHORITY}`,knownAuthorities:[],cloudDiscoveryMetadata:"",authorityMetadata:"",redirectUri:typeof window<"u"&&window.location?window.location.href.split("?")[0].split("#")[0]:"",postLogoutRedirectUri:"",clientCapabilities:[],OIDCOptions:{responseMode:De.ResponseMode.FRAGMENT,defaultScopes:[De.OPENID_SCOPE,De.PROFILE_SCOPE,De.OFFLINE_ACCESS_SCOPE]},azureCloudOptions:{azureCloudInstance:dd.None,tenant:""},instanceAware:!1,isMcp:!1},a={cacheLocation:Ho.SessionStorage,cacheRetentionDays:5},l={loggerCallback:()=>{},logLevel:Ut.Info,piiLoggingEnabled:!1},u={...{...LI,loggerOptions:l,networkClient:s?new _P:oB,navigationClient:new bP,popupBridgeTimeout:n?.popupBridgeTimeout||wBe,iframeBridgeTimeout:n?.iframeBridgeTimeout||SBe,redirectNavigationTimeout:CBe,allowRedirectInIframe:!1,navigatePopups:!0,allowPlatformBroker:!1,nativeBrokerHandshakeTimeout:n?.nativeBrokerHandshakeTimeout||NB,protocolMode:Tn.AAD},...n,loggerOptions:n?.loggerOptions||l},p={application:{appName:"",appVersion:""},client:new Rc},m={iframeTimeoutTelemetry:!1};if(n?.protocolMode!==Tn.OIDC&&e?.OIDCOptions&&new Ao(u.loggerOptions).warning(JSON.stringify($t(os.cannotSetOIDCOptions)),""),n?.protocolMode&&n.protocolMode===Tn.OIDC&&u?.allowPlatformBroker)throw $t(os.cannotAllowPlatformBroker);return{auth:{...i,...e,OIDCOptions:{...i.OIDCOptions,...e?.OIDCOptions}},cache:{...a,...t},system:u,experimental:{...m,...o},telemetry:{...p,...r}}}var yP=class e{constructor(t,n,o,r){this.logger=t,this.handshakeTimeoutMs=n,this.extensionId=r,this.resolvers=new Map,this.handshakeResolvers=new Map,this.messageChannel=new MessageChannel,this.windowListener=this.onWindowMessage.bind(this),this.performanceClient=o,this.handshakeEvent=o.startMeasurement(oye),this.platformAuthType=Nr.PLATFORM_EXTENSION_PROVIDER}async sendMessage(t){this.logger.trace("0on4p2",t.correlationId);let n={method:bb.GetToken,request:t},o={channel:Nr.CHANNEL_ID,extensionId:this.extensionId,responseId:Qs(),body:n};this.logger.trace("1qadfi",t.correlationId),this.logger.tracePii("1xm533",t.correlationId),this.messageChannel.port1.postMessage(o);let r=await new Promise((i,a)=>{this.resolvers.set(o.responseId,{resolve:i,reject:a})});return this.validatePlatformBrokerResponse(r)}static async createProvider(t,n,o,r){t.trace("15zfnw",r);try{let s=new e(t,n,o,Nr.PREFERRED_EXTENSION_ID);return await s.sendHandshakeRequest(r),s}catch{let i=new e(t,n,o);return await i.sendHandshakeRequest(r),i}}async sendHandshakeRequest(t){this.logger.trace("1dpg9o",t),window.addEventListener("message",this.windowListener,!1);let n={channel:Nr.CHANNEL_ID,extensionId:this.extensionId,responseId:Qs(),body:{method:bb.HandshakeRequest}};return this.handshakeEvent.add({extensionId:this.extensionId,extensionHandshakeTimeoutMs:this.handshakeTimeoutMs}),this.messageChannel.port1.onmessage=o=>{this.onChannelMessage(o)},window.postMessage(n,window.origin,[this.messageChannel.port2]),new Promise((o,r)=>{this.handshakeResolvers.set(n.responseId,{resolve:o,reject:r}),this.timeoutId=window.setTimeout(()=>{window.removeEventListener("message",this.windowListener,!1),this.messageChannel.port1.close(),this.messageChannel.port2.close(),this.handshakeEvent.end({extensionHandshakeTimedOut:!0,success:!1}),r(_e(Bye)),this.handshakeResolvers.delete(n.responseId)},this.handshakeTimeoutMs)})}onWindowMessage(t){let n=QT();if(this.logger.trace("0jpn5u",n),t.source!==window)return;let o=t.data;if(!(!o.channel||o.channel!==Nr.CHANNEL_ID)&&!(o.extensionId&&o.extensionId!==this.extensionId)&&o.body.method===bb.HandshakeRequest){let r=this.handshakeResolvers.get(o.responseId);if(!r){this.logger.trace("07buhm",n);return}this.logger.verbose(o.extensionId?"0xrkug":"No extension installed",n),clearTimeout(this.timeoutId),this.messageChannel.port1.close(),this.messageChannel.port2.close(),window.removeEventListener("message",this.windowListener,!1),this.handshakeEvent.end({success:!1,extensionInstalled:!1}),r.reject(_e(zye))}}onChannelMessage(t){let n=QT();this.logger.trace("1py8yf",n);let o=t.data,r=this.resolvers.get(o.responseId),s=this.handshakeResolvers.get(o.responseId);try{let i=o.body.method;if(i===bb.Response){if(!r)return;let a=o.body.response;if(this.logger.trace("19hpgm",n),this.logger.tracePii("179a24",n),a.status!=="Success")r.reject(ig(a.code,a.description,a.ext));else if(a.result)a.result.code&&a.result.description?r.reject(ig(a.result.code,a.result.description,a.result.ext)):r.resolve(a.result);else throw tb(md.unexpectedError,"Event does not contain result.");this.resolvers.delete(o.responseId)}else if(i===bb.HandshakeResponse){if(!s){this.logger.trace("082qnt",n);return}clearTimeout(this.timeoutId),window.removeEventListener("message",this.windowListener,!1),this.extensionId=o.extensionId,this.extensionVersion=o.body.version,this.logger.verbose("0yf5ib",n),this.handshakeEvent.end({extensionInstalled:!0,success:!0}),s.resolve(),this.handshakeResolvers.delete(o.responseId)}}catch(i){this.logger.error("0xf978",n),this.logger.errorPii("04i99o",n),this.logger.errorPii("0xdvsy",n),r?r.reject(i):s&&s.reject(i)}}validatePlatformBrokerResponse(t){if(t.hasOwnProperty("access_token")&&t.hasOwnProperty("id_token")&&t.hasOwnProperty("client_info")&&t.hasOwnProperty("account")&&t.hasOwnProperty("scope")&&t.hasOwnProperty("expires_in"))return t;throw tb(md.unexpectedError,"Response missing expected properties.")}getExtensionId(){return this.extensionId}getExtensionVersion(){return this.extensionVersion}getExtensionName(){return this.getExtensionId()===Nr.PREFERRED_EXTENSION_ID?"chrome":this.getExtensionId()?.length?"unknown":void 0}};var vP=class e{constructor(t,n,o){this.logger=t,this.performanceClient=n,this.correlationId=o,this.platformAuthType=Nr.PLATFORM_DOM_PROVIDER}static async createProvider(t,n,o){if(t.trace("12mj4a",o),window.navigator?.platformAuthentication&&(await window.navigator.platformAuthentication.getSupportedContracts(Nr.MICROSOFT_ENTRA_BROKERID))?.includes(Nr.PLATFORM_DOM_APIS))return t.trace("1h5q1r",o),new e(t,n,o)}getExtensionId(){return Nr.MICROSOFT_ENTRA_BROKERID}getExtensionVersion(){return""}getExtensionName(){return Nr.DOM_API_NAME}async sendMessage(t){this.logger.trace("02bcil",t.correlationId);try{let n=this.initializePlatformDOMRequest(t),o=await window.navigator.platformAuthentication.executeGetToken(n);return this.validatePlatformBrokerResponse(o,t.correlationId)}catch(n){throw this.logger.error("11im7g",t.correlationId),n}}initializePlatformDOMRequest(t){this.logger.trace("15d6yv",t.correlationId);let{accountId:n,clientId:o,authority:r,scope:s,redirectUri:i,correlationId:a,state:l,storeInCache:c,embeddedClientId:u,extraParameters:p,...m}=t,g=this.getDOMExtraParams(m,a);return{accountId:n,brokerId:this.getExtensionId(),authority:r,clientId:o,correlationId:a||this.correlationId,extraParameters:{...p,...g},isSecurityTokenService:!1,redirectUri:i,scope:s,state:l,storeInCache:c,embeddedClientId:u}}validatePlatformBrokerResponse(t,n){if(t.hasOwnProperty("isSuccess")){if(t.hasOwnProperty("accessToken")&&t.hasOwnProperty("idToken")&&t.hasOwnProperty("clientInfo")&&t.hasOwnProperty("account")&&t.hasOwnProperty("scopes")&&t.hasOwnProperty("expiresIn"))return this.logger.trace("0h4vei",n),this.convertToPlatformBrokerResponse(t,n);if(t.hasOwnProperty("error")){let o=t;if(o.isSuccess===!1&&o.error&&o.error.code)throw this.logger.trace("0g92vm",n),ig(o.error.code,o.error.description,{error:parseInt(o.error.errorCode),protocol_error:o.error.protocolError,status:o.error.status,properties:o.error.properties})}}throw tb(md.unexpectedError,"Response missing expected properties.")}convertToPlatformBrokerResponse(t,n){return this.logger.trace("14913t",n),{access_token:t.accessToken,id_token:t.idToken,client_info:t.clientInfo,account:t.account,expires_in:t.expiresIn,scope:t.scopes,state:t.state||"",properties:t.properties||{},extendedLifetimeToken:t.extendedLifetimeToken??!1,shr:t.proofOfPossessionPayload}}getDOMExtraParams(t,n){try{let o={};for(let[r,s]of Object.entries(t))s&&(typeof s=="object"?o[r]=JSON.stringify(s):o[r]=String(s));return o}catch{return this.logger.error("0eu9o3",n),this.logger.errorPii("17rpl5",n),{}}}};async function Zve(e,t,n,o){e.trace("134j0v",n);let r=EBe();e.trace("04c81g",n);let s;try{r&&(s=await vP.createProvider(e,t,n)),s||(e.trace("0l3na8",n),s=await yP.createProvider(e,o||NB,t,n))}catch(i){e.trace("0icbd7",i)}return s}function EBe(){let e;try{return e=window[Ho.SessionStorage],e?.getItem(Cve)==="true"}catch{return!1}}function Bc(e,t,n,o,r){if(t.trace("0uko3r",n),!e.system.allowPlatformBroker)return t.trace("04hozs",n),!1;if(!o)return t.trace("0kvv1r",n),!1;if(r)switch(r){case De.AuthenticationScheme.BEARER:case De.AuthenticationScheme.POP:return t.trace("18tev1",n),!0;default:return t.trace("1dd2nh",n),!1}return!0}var xP=class extends ls{constructor(t,n,o,r,s,i,a,l,c,u){super(t,n,o,r,s,i,a,c,u),this.nativeStorage=l,this.eventHandler=s}acquireToken(t,n){let o;try{if(o={popupName:this.generatePopupName(t.scopes||De.OIDC_DEFAULT_SCOPES,t.authority||this.config.auth.authority),popupWindowAttributes:t.popupWindowAttributes||{},popupWindowParent:t.popupWindowParent??window},this.performanceClient.addFields({isAsyncPopup:!this.config.system.navigatePopups},this.correlationId),this.config.system.navigatePopups){let s={...t,httpMethod:hP(t,this.config.system.protocolMode)};return this.logger.verbose("1f9ok3",this.correlationId),o.popup=this.openSizedPopup("about:blank",o),this.acquireTokenPopupAsync(s,o,n)}else return this.logger.verbose("162h4u",this.correlationId),this.acquireTokenPopupAsync(t,o,n)}catch(r){return Promise.reject(r)}}logout(t){try{this.logger.verbose("068rup",this.correlationId);let n=this.initializeLogoutRequest(t),o={popupName:this.generateLogoutPopupName(n),popupWindowAttributes:t?.popupWindowAttributes||{},popupWindowParent:t?.popupWindowParent??window},r=t&&t.authority,s=t&&t.mainWindowRedirectUri;return this.config.system.navigatePopups?(this.logger.verbose("1a28da",this.correlationId),o.popup=this.openSizedPopup("about:blank",o),this.logoutPopupAsync(n,o,r,s)):(this.logger.verbose("1phd8u",this.correlationId),this.logoutPopupAsync(n,o,r,s))}catch(n){return Promise.reject(n)}}async acquireTokenPopupAsync(t,n,o){this.logger.verbose("1g77pg",this.correlationId);let r=await W(yd,fd,this.logger,this.performanceClient,this.correlationId)(t,Je.Popup,this.config,this.browserCrypto,this.browserStorage,this.logger,this.performanceClient,this.correlationId);n.popup&&aP(r.authority);let s=Bc(this.config,this.logger,this.correlationId,this.platformAuthProvider,t.authenticationScheme);return r.platformBroker=s,this.config.system.protocolMode===Tn.EAR?this.executeEarFlow(r,n,o):this.executeCodeFlow(r,n,o)}async executeCodeFlow(t,n,o){let r=t.correlationId,s=eo(Et.acquireTokenPopup,this.config.auth.clientId,this.correlationId,this.browserStorage,this.logger),i=o||await W(va,_a,this.logger,this.performanceClient,r)(this.performanceClient,this.logger,r),a={...t,codeChallenge:i.challenge};try{let l=await W(this.createAuthCodeClient.bind(this),ba,this.logger,this.performanceClient,r)({serverTelemetryManager:s,requestAuthority:a.authority,requestAzureCloudOptions:a.azureCloudOptions,requestExtraQueryParameters:a.extraQueryParameters,account:a.account});if(a.httpMethod===De.HttpMethod.POST)return await this.executeCodeFlowWithPost(a,n,l,i.verifier);{let c=await W(Mb,Io.GetAuthCodeUrl,this.logger,this.performanceClient,r)(this.config,l.authority,a,this.logger,this.performanceClient),u=this.initiateAuthRequest(c,n);this.eventHandler.emitEvent(rt.POPUP_OPENED,r,Je.Popup,{popupWindow:u},null);let p=await _d(this.config.system.popupBridgeTimeout,this.logger,this.browserCrypto,t,this.performanceClient),m=mo(sg,tg,this.logger,this.performanceClient,this.correlationId)(p,this.config.auth.OIDCOptions.responseMode,this.logger,this.correlationId);return await W(Hc,Nc,this.logger,this.performanceClient,r)(t,m,i.verifier,Et.acquireTokenPopup,this.config,l,this.browserStorage,this.nativeStorage,this.eventHandler,this.logger,this.performanceClient,this.platformAuthProvider)}}catch(l){throw n.popup?.close(),l instanceof at&&(l.setCorrelationId(this.correlationId),s.cacheFailedRequest(l)),l}}async executeEarFlow(t,n,o){let{correlationId:r,authority:s,azureCloudOptions:i,extraQueryParameters:a,account:l}=t,c=await W(as,ha,this.logger,this.performanceClient,r)(this.config,this.correlationId,this.performanceClient,this.browserStorage,this.logger,s,i,a,l),u=await W(Sb,fb,this.logger,this.performanceClient,r)(),p=o||await W(va,_a,this.logger,this.performanceClient,r)(this.performanceClient,this.logger,r),m={...t,earJwk:u,codeChallenge:p.challenge},g=n.popup||this.openPopup("about:blank",n);(await Db(g.document,this.config,c,m,this.logger,this.performanceClient)).submit();let _=await W(_d,mb,this.logger,this.performanceClient,r)(this.config.system.popupBridgeTimeout,this.logger,this.browserCrypto,m,this.performanceClient),h=mo(sg,tg,this.logger,this.performanceClient,this.correlationId)(_,this.config.auth.OIDCOptions.responseMode,this.logger,this.correlationId);if(!h.ear_jwe&&h.code){let T=await W(this.createAuthCodeClient.bind(this),ba,this.logger,this.performanceClient,r)({serverTelemetryManager:eo(Et.acquireTokenPopup,this.config.auth.clientId,r,this.browserStorage,this.logger),requestAuthority:t.authority,requestAzureCloudOptions:t.azureCloudOptions,requestExtraQueryParameters:t.extraQueryParameters,account:t.account,authority:c});return W(Hc,Nc,this.logger,this.performanceClient,r)(m,h,p.verifier,Et.acquireTokenPopup,this.config,T,this.browserStorage,this.nativeStorage,this.eventHandler,this.logger,this.performanceClient,this.platformAuthProvider)}else return W(Nb,gb,this.logger,this.performanceClient,r)(m,h,Et.acquireTokenPopup,this.config,c,this.browserStorage,this.nativeStorage,this.eventHandler,this.logger,this.performanceClient,this.platformAuthProvider)}async executeCodeFlowWithPost(t,n,o,r){let s=t.correlationId,i=await W(as,ha,this.logger,this.performanceClient,s)(this.config,this.correlationId,this.performanceClient,this.browserStorage,this.logger),a=n.popup||this.openPopup("about:blank",n);(await $b(a.document,this.config,i,t,this.logger,this.performanceClient)).submit();let c=await W(_d,mb,this.logger,this.performanceClient,s)(this.config.system.popupBridgeTimeout,this.logger,this.browserCrypto,t,this.performanceClient),u=mo(sg,tg,this.logger,this.performanceClient,this.correlationId)(c,this.config.auth.OIDCOptions.responseMode,this.logger,this.correlationId);return W(Hc,Nc,this.logger,this.performanceClient,s)(t,u,r,Et.acquireTokenPopup,this.config,o,this.browserStorage,this.nativeStorage,this.eventHandler,this.logger,this.performanceClient,this.platformAuthProvider)}async logoutPopupAsync(t,n,o,r){this.logger.verbose("0b7yrk",this.correlationId),this.eventHandler.emitEvent(rt.LOGOUT_START,this.correlationId,Je.Popup,t);let s=eo(Et.logoutPopup,this.config.auth.clientId,this.correlationId,this.browserStorage,this.logger);try{await Pb(this.browserStorage,this.browserCrypto,this.logger,this.correlationId,t.account);let i=await W(this.createAuthCodeClient.bind(this),ba,this.logger,this.performanceClient,this.correlationId)({serverTelemetryManager:s,requestAuthority:o,account:t.account||void 0});try{i.authority.endSessionEndpoint}catch{if(t.account?.homeAccountId&&t.postLogoutRedirectUri&&i.authority.protocolMode===Tn.OIDC){if(this.eventHandler.emitEvent(rt.LOGOUT_SUCCESS,t.correlationId,Je.Popup,t),r){let c={apiId:Et.logoutPopup,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},u=Ct.getAbsoluteUrl(r,Ci());await this.navigationClient.navigateInternal(u,c)}n.popup?.close();return}}let a=i.getLogoutUri(t);this.eventHandler.emitEvent(rt.LOGOUT_SUCCESS,t.correlationId,Je.Popup,t);let l=this.openPopup(a,n);if(this.eventHandler.emitEvent(rt.POPUP_OPENED,t.correlationId,Je.Popup,{popupWindow:l},null),await _d(this.config.system.popupBridgeTimeout,this.logger,this.browserCrypto,t,this.performanceClient).catch(()=>{}),r){let c={apiId:Et.logoutPopup,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},u=Ct.getAbsoluteUrl(r,Ci());this.logger.verbose("0qcur2",this.correlationId),this.logger.verbosePii("0oj7lk",this.correlationId),await this.navigationClient.navigateInternal(u,c)}else this.logger.verbose("03zgcf",this.correlationId)}catch(i){throw n.popup?.close(),i instanceof at&&(i.setCorrelationId(this.correlationId),s.cacheFailedRequest(i)),this.eventHandler.emitEvent(rt.LOGOUT_FAILURE,this.correlationId,Je.Popup,null,i),this.eventHandler.emitEvent(rt.LOGOUT_END,this.correlationId,Je.Popup),i}this.eventHandler.emitEvent(rt.LOGOUT_END,this.correlationId,Je.Popup)}initiateAuthRequest(t,n){if(t)return this.logger.infoPii("1kcr9k",this.correlationId),this.openPopup(t,n);throw this.logger.error("1l7hyp",this.correlationId),_e(_b)}openPopup(t,n){try{let o;if(n.popup?(o=n.popup,this.logger.verbosePii("0cgeo7",this.correlationId),o.location.assign(t)):typeof n.popup>"u"&&(this.logger.verbosePii("0c2awd",this.correlationId),o=this.openSizedPopup(t,n)),!o)throw _e(kye);return o.focus&&o.focus(),this.currentWindow=o,o}catch{throw this.logger.error("0dxfb9",this.correlationId),_e(Aye)}}openSizedPopup(t,{popupName:n,popupWindowAttributes:o,popupWindowParent:r}){let s=r.screenLeft?r.screenLeft:r.screenX,i=r.screenTop?r.screenTop:r.screenY,a=r.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,l=r.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,c=o.popupSize?.width,u=o.popupSize?.height,p=o.popupPosition?.top,m=o.popupPosition?.left;return(!c||c<0||c>a)&&(this.logger.verbose("08vfmo",this.correlationId),c=Po.POPUP_WIDTH),(!u||u<0||u>l)&&(this.logger.verbose("09cxa0",this.correlationId),u=Po.POPUP_HEIGHT),(!p||p<0||p>l)&&(this.logger.verbose("1qh4wo",this.correlationId),p=Math.max(0,l/2-Po.POPUP_HEIGHT/2+i)),(!m||m<0||m>a)&&(this.logger.verbose("1sz3en",this.correlationId),m=Math.max(0,a/2-Po.POPUP_WIDTH/2+s)),r.open(t,n,`width=${c}, height=${u}, top=${p}, left=${m}, scrollbars=yes`)}generatePopupName(t,n){return`${Po.POPUP_NAME_PREFIX}.${this.config.auth.clientId}.${t.join("-")}.${n}.${this.correlationId}`}generateLogoutPopupName(t){let n=t.account&&t.account.homeAccountId;return`${Po.POPUP_NAME_PREFIX}.${this.config.auth.clientId}.${n}.${this.correlationId}`}};function ABe(){if(typeof window>"u"||typeof window.performance>"u"||typeof window.performance.getEntriesByType!="function")return;let e=window.performance.getEntriesByType("navigation");return(e.length?e[0]:void 0)?.type}var TP=class extends ls{constructor(t,n,o,r,s,i,a,l,c,u){super(t,n,o,r,s,i,a,c,u),this.nativeStorage=l}async acquireToken(t){let n=await W(yd,fd,this.logger,this.performanceClient,this.correlationId)(t,Je.Redirect,this.config,this.browserCrypto,this.browserStorage,this.logger,this.performanceClient,this.correlationId);n.platformBroker=Bc(this.config,this.logger,this.correlationId,this.platformAuthProvider,t.authenticationScheme);let o=s=>{s.persisted&&(this.logger.verbose("0udvtt",this.correlationId),this.browserStorage.resetRequestCache(this.correlationId),this.eventHandler.emitEvent(rt.RESTORE_FROM_BFCACHE,this.correlationId,Je.Redirect))},r=this.getRedirectStartPage(t.redirectStartPage);this.logger.verbosePii("0zao0a",this.correlationId),this.browserStorage.setTemporaryCache($n.ORIGIN_URI,r,!0),window.addEventListener("pageshow",o);try{this.config.system.protocolMode===Tn.EAR?await this.executeEarFlow(n):await this.executeCodeFlow(n)}catch(s){throw s instanceof at&&s.setCorrelationId(this.correlationId),window.removeEventListener("pageshow",o),s}}async executeCodeFlow(t){let n=t.correlationId,o=eo(Et.acquireTokenRedirect,this.config.auth.clientId,this.correlationId,this.browserStorage,this.logger),r=await W(va,_a,this.logger,this.performanceClient,n)(this.performanceClient,this.logger,n),s={...t,codeChallenge:r.challenge};this.browserStorage.cacheAuthorizeRequest(s,this.correlationId,r.verifier);try{if(s.httpMethod===De.HttpMethod.POST)return await this.executeCodeFlowWithPost(s);{let i=await W(this.createAuthCodeClient.bind(this),ba,this.logger,this.performanceClient,this.correlationId)({serverTelemetryManager:o,requestAuthority:s.authority,requestAzureCloudOptions:s.azureCloudOptions,requestExtraQueryParameters:s.extraQueryParameters,account:s.account}),a=await W(Mb,Io.GetAuthCodeUrl,this.logger,this.performanceClient,t.correlationId)(this.config,i.authority,s,this.logger,this.performanceClient);return await this.initiateAuthRequest(a)}}catch(i){throw i instanceof at&&(i.setCorrelationId(this.correlationId),o.cacheFailedRequest(i)),i}}async executeEarFlow(t){let{correlationId:n,authority:o,azureCloudOptions:r,extraQueryParameters:s,account:i}=t,a=await W(as,ha,this.logger,this.performanceClient,n)(this.config,this.correlationId,this.performanceClient,this.browserStorage,this.logger,o,r,s,i),l=await W(Sb,fb,this.logger,this.performanceClient,n)(),c=await W(va,_a,this.logger,this.performanceClient,n)(this.performanceClient,this.logger,n),u={...t,earJwk:l,codeChallenge:c.challenge};return this.browserStorage.cacheAuthorizeRequest(u,this.correlationId,c.verifier),(await Db(document,this.config,a,u,this.logger,this.performanceClient)).submit(),new Promise((m,g)=>{setTimeout(()=>{g(_e(og,"failed_to_redirect"))},this.config.system.redirectNavigationTimeout)})}async executeCodeFlowWithPost(t){let n=t.correlationId,o=await W(as,ha,this.logger,this.performanceClient,n)(this.config,this.correlationId,this.performanceClient,this.browserStorage,this.logger);return this.browserStorage.cacheAuthorizeRequest(t,this.correlationId),(await $b(document,this.config,o,t,this.logger,this.performanceClient)).submit(),new Promise((s,i)=>{setTimeout(()=>{i(_e(og,"failed_to_redirect"))},this.config.system.redirectNavigationTimeout)})}async handleRedirectPromise(t,n,o,r){let s=eo(Et.handleRedirectPromise,this.config.auth.clientId,this.correlationId,this.browserStorage,this.logger),i=r?.navigateToLoginRequestUrl??!0;try{let[a,l]=this.getRedirectResponse(r?.hash||"");if(!a)return this.logger.info("1qmv0q",this.correlationId),this.browserStorage.resetRequestCache(this.correlationId),ABe()!=="back_forward"?o.event.errorCode="no_server_response":this.logger.verbose("1eqegq",this.correlationId),null;let c=this.browserStorage.getTemporaryCache($n.ORIGIN_URI,this.correlationId,!0)||"",u=Ti.normalizeUrlForComparison(c),p=Ti.normalizeUrlForComparison(window.location.href);if(u===p&&i)return this.logger.verbose("11yred",this.correlationId),c.indexOf("#")>-1&&uve(c),await this.handleResponse(a,t,n,s);if(i){if(!VT()||this.config.system.allowRedirectInIframe){this.browserStorage.setTemporaryCache($n.URL_HASH,l,!0);let m={apiId:Et.handleRedirectPromise,timeout:this.config.system.redirectNavigationTimeout,noHistory:!0},g=!0;if(!c||c==="null"){let f=pve();this.browserStorage.setTemporaryCache($n.ORIGIN_URI,f,!0),this.logger.warning("1dutq1",this.correlationId),g=await this.navigationClient.navigateInternal(f,m)}else this.logger.verbose("08jpy1",this.correlationId),g=await this.navigationClient.navigateInternal(c,m);if(!g)return await this.handleResponse(a,t,n,s)}}else return this.logger.verbose("0v4sdv",this.correlationId),await this.handleResponse(a,t,n,s);return null}catch(a){throw a instanceof at&&(a.setCorrelationId(this.correlationId),s.cacheFailedRequest(a)),a}}getRedirectResponse(t){this.logger.verbose("1c5i8m",this.correlationId);let n=t;n||(this.config.auth.OIDCOptions.responseMode===De.ResponseMode.QUERY?n=window.location.search:n=window.location.hash);let o=Ti.getDeserializedResponse(n);if(o){try{Nve(o,this.browserCrypto,Je.Redirect)}catch(s){return s instanceof at&&this.logger.error("0bkq6p",this.correlationId),[null,""]}return sP(window),this.logger.verbose("00uvho",this.correlationId),[o,n]}let r=this.browserStorage.getTemporaryCache($n.URL_HASH,this.correlationId,!0);return this.browserStorage.removeItem(this.browserStorage.generateCacheKey($n.URL_HASH)),r&&(o=Ti.getDeserializedResponse(r),o)?(this.logger.verbose("001671",this.correlationId),[o,r]):[null,""]}async handleResponse(t,n,o,r){if(!t.state)throw _e(yb);let{authority:i,azureCloudOptions:a,extraQueryParameters:l,account:c}=n;if(t.ear_jwe){let p=await W(as,ha,this.logger,this.performanceClient,n.correlationId)(this.config,this.correlationId,this.performanceClient,this.browserStorage,this.logger,i,a,l,c);return W(Nb,gb,this.logger,this.performanceClient,n.correlationId)(n,t,Et.acquireTokenRedirect,this.config,p,this.browserStorage,this.nativeStorage,this.eventHandler,this.logger,this.performanceClient,this.platformAuthProvider)}let u=await W(this.createAuthCodeClient.bind(this),ba,this.logger,this.performanceClient,this.correlationId)({serverTelemetryManager:r,requestAuthority:n.authority});return W(Hc,Nc,this.logger,this.performanceClient,n.correlationId)(n,t,o,Et.acquireTokenRedirect,this.config,u,this.browserStorage,this.nativeStorage,this.eventHandler,this.logger,this.performanceClient,this.platformAuthProvider)}async initiateAuthRequest(t){if(this.logger.verbose("0yaw2e",this.correlationId),t){this.logger.infoPii("1luf83",this.correlationId);let n={apiId:Et.acquireTokenRedirect,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},o=this.config.auth.onRedirectNavigate;if(typeof o=="function")if(this.logger.verbose("1nehvl",this.correlationId),o(t)!==!1){this.logger.verbose("1a0jxh",this.correlationId),await this.navigationClient.navigateExternal(t,n);return}else{this.logger.verbose("09k5h5",this.correlationId);return}else{this.logger.verbose("0klwf7",this.correlationId),await this.navigationClient.navigateExternal(t,n);return}}else throw this.logger.info("0rlh4e",this.correlationId),_e(_b)}async logout(t){this.logger.verbose("1rkurh",this.correlationId);let n=this.initializeLogoutRequest(t),o=eo(Et.logout,this.config.auth.clientId,this.correlationId,this.browserStorage,this.logger);try{this.eventHandler.emitEvent(rt.LOGOUT_START,this.correlationId,Je.Redirect,t),await Pb(this.browserStorage,this.browserCrypto,this.logger,this.correlationId,n.account);let r={apiId:Et.logout,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},s=await W(this.createAuthCodeClient.bind(this),ba,this.logger,this.performanceClient,this.correlationId)({serverTelemetryManager:o,requestAuthority:t&&t.authority,requestExtraQueryParameters:t?.extraQueryParameters,account:t&&t.account||void 0});if(s.authority.protocolMode===Tn.OIDC)try{s.authority.endSessionEndpoint}catch{if(n.account?.homeAccountId){this.eventHandler.emitEvent(rt.LOGOUT_SUCCESS,this.correlationId,Je.Redirect,n);return}}let i=s.getLogoutUri(n);n.account?.homeAccountId&&this.eventHandler.emitEvent(rt.LOGOUT_SUCCESS,this.correlationId,Je.Redirect,n);let a=this.config.auth.onRedirectNavigate;if(typeof a=="function")if(a(i)!==!1){this.logger.verbose("06v57e",this.correlationId),this.browserStorage.getInteractionInProgress()||this.browserStorage.setInteractionInProgress(!0,ya.SIGNOUT),await this.navigationClient.navigateExternal(i,r);return}else this.browserStorage.setInteractionInProgress(!1),this.logger.verbose("0xqes1",this.correlationId);else{this.browserStorage.getInteractionInProgress()||this.browserStorage.setInteractionInProgress(!0,ya.SIGNOUT),await this.navigationClient.navigateExternal(i,r);return}}catch(r){throw r instanceof at&&(r.setCorrelationId(this.correlationId),o.cacheFailedRequest(r)),this.eventHandler.emitEvent(rt.LOGOUT_FAILURE,this.correlationId,Je.Redirect,null,r),this.eventHandler.emitEvent(rt.LOGOUT_END,this.correlationId,Je.Redirect),r}this.eventHandler.emitEvent(rt.LOGOUT_END,this.correlationId,Je.Redirect)}getRedirectStartPage(t){let n=t||window.location.href;return Ct.getAbsoluteUrl(n,Ci())}};async function exe(e,t,n,o){if(!e)throw n.info("1l7hyp",o),_e(_b);return mo(kBe,j_e,n,t,o)(e)}async function txe(e,t,n,o,r){let s=FB();if(!s.contentDocument)throw"No document associated with iframe!";return(await $b(s.contentDocument,e,t,n,o,r)).submit(),s}async function nxe(e,t,n,o,r){let s=FB();if(!s.contentDocument)throw"No document associated with iframe!";return(await Db(s.contentDocument,e,t,n,o,r)).submit(),s}function kBe(e){let t=FB();return t.src=e,t}function FB(){let e=document.createElement("iframe");return e.className="msalSilentIframe",e.style.visibility="hidden",e.style.position="absolute",e.style.width=e.style.height="0",e.style.border="0",e.setAttribute("sandbox","allow-scripts allow-same-origin allow-forms"),e.setAttribute("allow","local-network-access *"),document.body.appendChild(e),e}function UB(e){document.body===e.parentNode&&document.body.removeChild(e)}var wP=class extends ls{constructor(t,n,o,r,s,i,a,l,c,u,p){super(t,n,o,r,s,i,l,u,p),this.apiId=a,this.nativeStorage=c}async acquireToken(t){!t.loginHint&&!t.sid&&(!t.account||!t.account.username)&&this.logger.warning("1kl318",this.correlationId);let n={...t};n.prompt?n.prompt!==De.PromptValue.NONE&&n.prompt!==De.PromptValue.NO_SESSION&&(this.logger.warning("0bmctg",this.correlationId),n.prompt=De.PromptValue.NONE):n.prompt=De.PromptValue.NONE;let o=await W(yd,fd,this.logger,this.performanceClient,this.correlationId)(n,Je.Silent,this.config,this.browserCrypto,this.browserStorage,this.logger,this.performanceClient,this.correlationId);return o.platformBroker=Bc(this.config,this.logger,this.correlationId,this.platformAuthProvider,o.authenticationScheme),aP(o.authority),this.config.system.protocolMode===Tn.EAR?this.executeEarFlow(o):this.executeCodeFlow(o)}async executeCodeFlow(t){let n,o=eo(this.apiId,this.config.auth.clientId,this.correlationId,this.browserStorage,this.logger);try{return n=await W(this.createAuthCodeClient.bind(this),ba,this.logger,this.performanceClient,t.correlationId)({serverTelemetryManager:o,requestAuthority:t.authority,requestAzureCloudOptions:t.azureCloudOptions,requestExtraQueryParameters:t.extraQueryParameters,account:t.account}),await W(this.silentTokenHelper.bind(this),aB,this.logger,this.performanceClient,t.correlationId)(n,t)}catch(r){if(r instanceof at&&(r.setCorrelationId(this.correlationId),o.cacheFailedRequest(r)),!n||!(r instanceof at)||r.errorCode!==Po.INVALID_GRANT_ERROR)throw r;return this.performanceClient.addFields({retryError:r.errorCode},this.correlationId),await W(this.silentTokenHelper.bind(this),aB,this.logger,this.performanceClient,this.correlationId)(n,t)}}async executeEarFlow(t){let{correlationId:n,authority:o,azureCloudOptions:r,extraQueryParameters:s,account:i}=t,a=await W(as,ha,this.logger,this.performanceClient,n)(this.config,this.correlationId,this.performanceClient,this.browserStorage,this.logger,o,r,s,i),l=await W(Sb,fb,this.logger,this.performanceClient,n)(),c=await W(va,_a,this.logger,this.performanceClient,n)(this.performanceClient,this.logger,n),u={...t,earJwk:l,codeChallenge:c.challenge},p=await W(nxe,WI,this.logger,this.performanceClient,n)(this.config,a,u,this.logger,this.performanceClient),m=this.config.auth.OIDCOptions.responseMode,g;try{g=await W(_d,mb,this.logger,this.performanceClient,n)(this.config.system.iframeBridgeTimeout,this.logger,this.browserCrypto,t,this.performanceClient,this.config.experimental)}finally{mo(UB,cB,this.logger,this.performanceClient,n)(p)}let f=mo(sg,tg,this.logger,this.performanceClient,n)(g,m,this.logger,this.correlationId);if(!f.ear_jwe&&f.code){let _=await W(this.createAuthCodeClient.bind(this),ba,this.logger,this.performanceClient,n)({serverTelemetryManager:eo(this.apiId,this.config.auth.clientId,n,this.browserStorage,this.logger),requestAuthority:t.authority,requestAzureCloudOptions:t.azureCloudOptions,requestExtraQueryParameters:t.extraQueryParameters,account:t.account,authority:a});return W(Hc,Nc,this.logger,this.performanceClient,n)(u,f,c.verifier,this.apiId,this.config,_,this.browserStorage,this.nativeStorage,this.eventHandler,this.logger,this.performanceClient,this.platformAuthProvider)}else return W(Nb,gb,this.logger,this.performanceClient,n)(u,f,this.apiId,this.config,a,this.browserStorage,this.nativeStorage,this.eventHandler,this.logger,this.performanceClient,this.platformAuthProvider)}logout(){return Promise.reject(_e(vb))}async silentTokenHelper(t,n){let o=n.correlationId,r=await W(va,_a,this.logger,this.performanceClient,o)(this.performanceClient,this.logger,o),s={...n,codeChallenge:r.challenge},i;if(n.httpMethod===De.HttpMethod.POST)i=await W(txe,WI,this.logger,this.performanceClient,o)(this.config,t.authority,s,this.logger,this.performanceClient);else{let u=await W(Mb,Io.GetAuthCodeUrl,this.logger,this.performanceClient,o)(this.config,t.authority,s,this.logger,this.performanceClient);i=await W(exe,WI,this.logger,this.performanceClient,o)(u,this.performanceClient,this.logger,o)}let a=this.config.auth.OIDCOptions.responseMode,l;try{l=await W(_d,mb,this.logger,this.performanceClient,o)(this.config.system.iframeBridgeTimeout,this.logger,this.browserCrypto,n,this.performanceClient,this.config.experimental)}finally{mo(UB,cB,this.logger,this.performanceClient,o)(i)}let c=mo(sg,tg,this.logger,this.performanceClient,o)(l,a,this.logger,this.correlationId);return W(Hc,Nc,this.logger,this.performanceClient,o)(n,c,r.verifier,this.apiId,this.config,t,this.browserStorage,this.nativeStorage,this.eventHandler,this.logger,this.performanceClient,this.platformAuthProvider)}};var SP=class extends ls{async acquireToken(t){let n=await W(YT,pb,this.logger,this.performanceClient,t.correlationId)(t,this.config,this.performanceClient,this.logger,this.correlationId),o={...t,...n};t.redirectUri&&(o.redirectUri=rg(t.redirectUri,this.config.auth.redirectUri,this.logger,this.correlationId));let r=eo(Et.acquireTokenSilent_silentFlow,this.config.auth.clientId,this.correlationId,this.browserStorage,this.logger),s=await this.createRefreshTokenClient({serverTelemetryManager:r,authorityUrl:o.authority,azureCloudOptions:o.azureCloudOptions,account:o.account});return W(s.acquireTokenByRefreshToken.bind(s),V_e,this.logger,this.performanceClient,t.correlationId)(o,Et.acquireTokenSilent_silentFlow).catch(i=>{throw i.setCorrelationId(this.correlationId),r.cacheFailedRequest(i),i})}logout(){return Promise.reject(_e(vb))}async createRefreshTokenClient(t){let n=await W(this.getClientConfiguration.bind(this),gd,this.logger,this.performanceClient,this.correlationId)({serverTelemetryManager:t.serverTelemetryManager,requestAuthority:t.authorityUrl,requestAzureCloudOptions:t.azureCloudOptions,requestExtraQueryParameters:t.extraQueryParameters,account:t.account});return new FT(n,this.performanceClient)}};var CP=class extends Zm{constructor(t,n){super(t,n),this.includeRedirectUri=!1}};var EP=class extends ls{constructor(t,n,o,r,s,i,a,l,c,u){super(t,n,o,r,s,i,l,c,u),this.apiId=a}async acquireToken(t){if(!t.code)throw _e(Uye);let n=await W(yd,fd,this.logger,this.performanceClient,this.correlationId)(t,Je.Silent,this.config,this.browserCrypto,this.browserStorage,this.logger,this.performanceClient,this.correlationId),o=eo(this.apiId,this.config.auth.clientId,this.correlationId,this.browserStorage,this.logger);try{let r={...n,code:t.code},s=await W(this.getClientConfiguration.bind(this),gd,this.logger,this.performanceClient,this.correlationId)({serverTelemetryManager:o,requestAuthority:n.authority,requestAzureCloudOptions:n.azureCloudOptions,requestExtraQueryParameters:n.extraQueryParameters,account:n.account}),i=new CP(s,this.performanceClient);this.logger.verbose("1uic5e",this.correlationId);let a=new Lb(i,this.browserStorage,r,this.logger,this.performanceClient);return await W(a.handleCodeResponseFromServer.bind(a),Io.HandleCodeResponseFromServer,this.logger,this.performanceClient,this.correlationId)({code:t.code,msgraph_host:t.msGraphHost,cloud_graph_host_name:t.cloudGraphHostName,cloud_instance_host_name:t.cloudInstanceHostName},n,this.apiId,!1)}catch(r){throw r instanceof at&&(r.setCorrelationId(this.correlationId),o.cacheFailedRequest(r)),r}}logout(){return Promise.reject(_e(vb))}};function oxe(e,t,n,o){let r=window.msal?.clientIds||[],s=r.length,i=r.filter(a=>a===e).length;i>1&&n.warning("1e88vg",o),t.add({msalInstanceCount:s,sameClientIdInstanceCount:i})}function AP(e,t,n,o){try{iP(e),OT(n.auth.isMcp,o)}catch(r){throw t.end({success:!1},r,o.account),r}}var kP=class e{constructor(t){this.operatingContext=t,this.isBrowserEnvironment=this.operatingContext.isBrowserEnvironment(),this.config=t.getConfig(),this.initialized=!1,this.logger=this.operatingContext.getLogger(),this.networkClient=this.config.system.networkClient,this.navigationClient=this.config.system.navigationClient,this.redirectResponse=new Map,this.hybridAuthCodeResponses=new Map,this.performanceClient=this.config.telemetry.client,this.browserCrypto=this.isBrowserEnvironment?new wl(this.logger,this.performanceClient):cd,this.eventHandler=new fP(this.logger),this.browserStorage=this.isBrowserEnvironment?new kb(this.config.auth.clientId,this.config.cache,this.browserCrypto,this.logger,this.performanceClient,this.eventHandler,tB(this.config.auth)):Ive(this.config.auth.clientId,this.logger,this.performanceClient,this.eventHandler);let n={cacheLocation:Ho.MemoryStorage,cacheRetentionDays:5};this.nativeInternalStorage=new kb(this.config.auth.clientId,n,this.browserCrypto,this.logger,this.performanceClient,this.eventHandler),this.activeSilentTokenRequests=new Map,this.trackStateChange=this.trackStateChange.bind(this),this.trackStateChangeWithMeasurement=this.trackStateChangeWithMeasurement.bind(this)}static async createController(t,n){let o=new e(t);return await o.initialize(n),o}trackStateChange(t,n){t&&(n.type==="visibilitychange"?(this.logger.info("16v6hv",t),this.performanceClient.incrementFields({visibilityChangeCount:1},t)):n.type==="online"?(this.logger.info("0zirfd",t),this.performanceClient.incrementFields({onlineStatusChangeCount:1},t)):n.type==="offline"&&(this.logger.info("1xk9ef",t),this.performanceClient.incrementFields({onlineStatusChangeCount:1},t)))}async initialize(t){let n=this.getRequestCorrelationId(t);if(this.logger.trace("1f7joy",n),this.initialized){this.logger.info("061m5x",n);return}if(!this.isBrowserEnvironment){this.logger.info("19fvpi",n),this.initialized=!0,this.eventHandler.emitEvent(rt.INITIALIZE_END,n);return}let o=this.config.system.allowPlatformBroker,r=this.performanceClient.startMeasurement(yve,n);if(this.eventHandler.emitEvent(rt.INITIALIZE_START,n),this.logMultipleInstances(r,n),r.add({isMcp:this.config.auth.isMcp}),await W(this.browserStorage.initialize.bind(this.browserStorage),Y_e,this.logger,this.performanceClient,n)(n),o)try{this.platformAuthProvider=await Zve(this.logger,this.performanceClient,n,this.config.system.nativeBrokerHandshakeTimeout)}catch(s){this.logger.verbose(s,n)}this.config.cache.cacheLocation===Ho.LocalStorage&&this.eventHandler.subscribeCrossTab(),!this.config.system.navigatePopups&&await this.preGeneratePkceCodes(n),this.initialized=!0,this.eventHandler.emitEvent(rt.INITIALIZE_END,n),r.end({allowPlatformBroker:o,success:!0})}async handleRedirectPromise(t){if(this.logger.verbose("02l8bm",""),PB(this.initialized),this.isBrowserEnvironment){let n=t?.hash||"",o=this.redirectResponse.get(n);return typeof o>"u"?(o=this.handleRedirectPromiseInternal(t),this.redirectResponse.set(n,o),this.logger.verbose("1wn9kp","")):this.logger.verbose("0w0gm3",""),o}return this.logger.verbose("12xi63",""),null}async handleRedirectPromiseInternal(t){if(!this.browserStorage.isInteractionInProgress(!0))return this.logger.info("0le6uv",""),null;if(this.browserStorage.getInteractionInProgress()?.type===ya.SIGNOUT)return this.logger.verbose("1ywcv2",""),this.browserStorage.setInteractionInProgress(!1),Promise.resolve(null);let o=this.getAllAccounts(),r=this.browserStorage.getCachedNativeRequest(),s=r&&this.platformAuthProvider&&!t?.hash,i,a;try{if(s&&this.platformAuthProvider){let l=r?.correlationId||"";this.eventHandler.emitEvent(rt.HANDLE_REDIRECT_START,l,Je.Redirect),i=this.performanceClient.startMeasurement(uP,l),this.logger.trace("12v7is",l);let c=new xd(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,Et.handleRedirectPromise,this.performanceClient,this.platformAuthProvider,r.accountId,this.nativeInternalStorage,r.correlationId);a=W(c.handleRedirectPromise.bind(c),nye,this.logger,this.performanceClient,i.event.correlationId)(this.performanceClient,i.event.correlationId)}else{let[l,c]=this.browserStorage.getCachedRequest(""),u=l.correlationId;this.eventHandler.emitEvent(rt.HANDLE_REDIRECT_START,u,Je.Redirect),i=this.performanceClient.startMeasurement(uP,u),this.logger.trace("0znzs5",u);let p=this.createRedirectClient(u);a=W(p.handleRedirectPromise.bind(p),tye,this.logger,this.performanceClient,i.event.correlationId)(l,c,i,t)}}catch(l){throw this.browserStorage.resetRequestCache(""),l}return a.then(l=>(l?(this.browserStorage.resetRequestCache(l.correlationId),this.eventHandler.emitEvent(rt.ACQUIRE_TOKEN_SUCCESS,l.correlationId,Je.Redirect,l),this.logger.verbose("0ui8f5",l.correlationId),o.length{this.browserStorage.resetRequestCache(i.event.correlationId);let c=l;throw this.eventHandler.emitEvent(rt.ACQUIRE_TOKEN_FAILURE,i.event.correlationId,Je.Redirect,null,c),this.eventHandler.emitEvent(rt.HANDLE_REDIRECT_END,i.event.correlationId,Je.Redirect),i.end({success:!1},c),l})}async acquireTokenRedirect(t){let n=this.getRequestCorrelationId(t);this.logger.verbose("0os66p",n);let o=this.performanceClient.startMeasurement(bve,n);o.add({scenarioId:t.scenarioId});let r=this.config.auth.onRedirectNavigate;this.config.auth.onRedirectNavigate=s=>{let i=typeof r=="function"?r(s):void 0;return o.add({navigateCallbackResult:i!==!1}),o.event=o.end({success:!0},void 0,t.account)||o.event,i};try{LB(this.initialized,this.config),OT(this.config.auth.isMcp,t),this.browserStorage.setInteractionInProgress(!0,ya.SIGNIN),this.eventHandler.emitEvent(rt.ACQUIRE_TOKEN_START,n,Je.Redirect,t);let s;return this.platformAuthProvider&&this.canUsePlatformBroker(t)?s=new xd(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,Et.acquireTokenRedirect,this.performanceClient,this.platformAuthProvider,this.getNativeAccountId(t),this.nativeInternalStorage,n).acquireTokenRedirect(t,o).catch(a=>{if(a instanceof Ei&&vd(a))return this.platformAuthProvider=void 0,this.createRedirectClient(n).acquireToken(t);if(a instanceof Dn)return this.logger.verbose("1ipyz4",n),this.createRedirectClient(n).acquireToken(t);throw a}):s=this.createRedirectClient(n).acquireToken(t),await s}catch(s){throw this.browserStorage.resetRequestCache(n),o.event.status===2?this.performanceClient.startMeasurement(uP,n).end({success:!1},s,t.account):o.end({success:!1},s,t.account),this.eventHandler.emitEvent(rt.ACQUIRE_TOKEN_FAILURE,n,Je.Redirect,null,s),s}}acquireTokenPopup(t){let n=this.getRequestCorrelationId(t),o=this.performanceClient.startMeasurement(hve,n);o.add({scenarioId:t.scenarioId});try{this.logger.verbose("0ch87b",n),AP(this.initialized,o,this.config,t),this.browserStorage.setInteractionInProgress(!0,ya.SIGNIN,t.overrideInteractionInProgress,n)}catch(a){return Promise.reject(a)}let r=this.getAllAccounts();this.eventHandler.emitEvent(rt.ACQUIRE_TOKEN_START,n,Je.Popup,t);let s,i=this.getPreGeneratedPkceCodes(n);return this.canUsePlatformBroker(t)?s=this.acquireTokenNative({...t,correlationId:n},Et.acquireTokenPopup).then(a=>(o.end({success:!0,isNativeBroker:!0},void 0,a.account),a)).catch(a=>{if(a instanceof Ei&&vd(a))return this.platformAuthProvider=void 0,this.createPopupClient(n).acquireToken(t,i);if(a instanceof Dn)return this.logger.verbose("0yy5fw",n),this.createPopupClient(n).acquireToken(t,i);throw a}):s=this.createPopupClient(n).acquireToken(t,i),s.then(a=>{let l=r.length(this.eventHandler.emitEvent(rt.ACQUIRE_TOKEN_FAILURE,n,Je.Popup,null,a),o.end({success:!1},a,t.account),Promise.reject(a))).finally(async()=>{this.browserStorage.setInteractionInProgress(!1),this.config.system.navigatePopups||await this.preGeneratePkceCodes(n)})}trackStateChangeWithMeasurement(t){let n=this.ssoSilentMeasurement||this.acquireTokenByCodeAsyncMeasurement;n&&(t.type==="visibilitychange"?(this.logger.info("0yzimq",n.event.correlationId),n.increment({visibilityChangeCount:1})):t.type==="online"?(this.logger.info("1caf53",n.event.correlationId),n.increment({onlineStatusChangeCount:1})):t.type==="offline"&&(this.logger.info("0fdyk7",n.event.correlationId),n.increment({onlineStatusChangeCount:1})))}addStateChangeListeners(t){document.addEventListener("visibilitychange",t),window.addEventListener("online",t),window.addEventListener("offline",t)}removeStateChangeListeners(t){document.removeEventListener("visibilitychange",t),window.removeEventListener("online",t),window.removeEventListener("offline",t)}async ssoSilent(t){let n=this.getRequestCorrelationId(t),o={...t,prompt:t.prompt,correlationId:n};this.ssoSilentMeasurement=this.performanceClient.startMeasurement(_ve,n),this.ssoSilentMeasurement?.add({scenarioId:t.scenarioId}),AP(this.initialized,this.ssoSilentMeasurement,this.config,o),this.ssoSilentMeasurement?.increment({visibilityChangeCount:0,onlineStatusChangeCount:0}),this.addStateChangeListeners(this.trackStateChangeWithMeasurement);let r=this.getAllAccounts();this.logger.verbose("0w1b45",n),this.eventHandler.emitEvent(rt.ACQUIRE_TOKEN_START,n,Je.Silent,o);let s;return this.canUsePlatformBroker(o)?s=this.acquireTokenNative(o,Et.ssoSilent).catch(i=>{if(i instanceof Ei&&vd(i))return this.platformAuthProvider=void 0,this.createSilentIframeClient(o.correlationId).acquireToken(o);throw i}):s=this.createSilentIframeClient(o.correlationId).acquireToken(o),s.then(i=>{let a=r.length{throw this.eventHandler.emitEvent(rt.ACQUIRE_TOKEN_FAILURE,n,Je.Silent,null,i),this.ssoSilentMeasurement?.end({success:!1},i,t.account),i}).finally(()=>{this.removeStateChangeListeners(this.trackStateChangeWithMeasurement)})}async acquireTokenByCode(t){let n=this.getRequestCorrelationId(t);this.logger.trace("0ch6ga",n);let o=this.performanceClient.startMeasurement(fve,n);AP(this.initialized,o,this.config,t),this.eventHandler.emitEvent(rt.ACQUIRE_TOKEN_START,n,Je.Silent,t),o.add({scenarioId:t.scenarioId});try{if(t.code&&t.nativeAccountId)throw _e(qye);if(t.code){let r=t.code,s=this.hybridAuthCodeResponses.get(r);return s?(this.logger.verbose("0qgp28",n),o.discard()):(this.logger.verbose("06eh73",n),s=this.acquireTokenByCodeAsync({...t,correlationId:n}).then(i=>(this.eventHandler.emitEvent(rt.ACQUIRE_TOKEN_SUCCESS,n,Je.Silent,i),this.hybridAuthCodeResponses.delete(r),o.end({success:!0,isNativeBroker:i.fromPlatformBroker,accessTokenSize:i.accessToken.length,idTokenSize:i.idToken.length},void 0,i.account),i)).catch(i=>{throw this.hybridAuthCodeResponses.delete(r),this.eventHandler.emitEvent(rt.ACQUIRE_TOKEN_FAILURE,n,Je.Silent,null,i),o.end({success:!1},i),i}),this.hybridAuthCodeResponses.set(r,s)),await s}else if(t.nativeAccountId)if(this.canUsePlatformBroker(t,t.nativeAccountId)){let r=await this.acquireTokenNative({...t,correlationId:n},Et.acquireTokenByCode,t.nativeAccountId).catch(s=>{throw s instanceof Ei&&vd(s)&&(this.platformAuthProvider=void 0),s});return o.end({success:!0},void 0,r.account),r}else throw _e(Hye);else throw _e(Oye)}catch(r){throw this.eventHandler.emitEvent(rt.ACQUIRE_TOKEN_FAILURE,n,Je.Silent,null,r),o.end({success:!1},r),r}}async acquireTokenByCodeAsync(t){let n=this.getRequestCorrelationId(t);return this.logger.trace("10d9hy",n),this.acquireTokenByCodeAsyncMeasurement=this.performanceClient.startMeasurement(eye,n),this.acquireTokenByCodeAsyncMeasurement?.increment({visibilityChangeCount:0,onlineStatusChangeCount:0}),this.addStateChangeListeners(this.trackStateChangeWithMeasurement),await this.createSilentAuthCodeClient(n).acquireToken(t).then(s=>(this.acquireTokenByCodeAsyncMeasurement?.end({success:!0,fromCache:s.fromCache,isNativeBroker:s.fromPlatformBroker}),s)).catch(s=>{throw this.acquireTokenByCodeAsyncMeasurement?.end({success:!1},s),s}).finally(()=>{this.removeStateChangeListeners(this.trackStateChangeWithMeasurement)})}async acquireTokenFromCache(t,n){switch(n){case lr.Default:case lr.AccessToken:case lr.AccessTokenAndRefreshToken:let o=this.createSilentCacheClient(t.correlationId);return W(o.acquireToken.bind(o),H_e,this.logger,this.performanceClient,t.correlationId)(t);default:throw re(Co.tokenRefreshRequired)}}async acquireTokenByRefreshToken(t,n){switch(n){case lr.Default:case lr.AccessTokenAndRefreshToken:case lr.RefreshToken:case lr.RefreshTokenAndNetwork:let o=this.createSilentRefreshClient(t.correlationId);return W(o.acquireToken.bind(o),G_e,this.logger,this.performanceClient,t.correlationId)(t);default:throw re(Co.tokenRefreshRequired)}}async acquireTokenBySilentIframe(t){let n=this.createSilentIframeClient(t.correlationId);return W(n.acquireToken.bind(n),B_e,this.logger,this.performanceClient,t.correlationId)(t)}async logoutRedirect(t){let n=this.getRequestCorrelationId(t);return LB(this.initialized,this.config),this.browserStorage.setInteractionInProgress(!0,ya.SIGNOUT),this.createRedirectClient(n).logout(t)}logoutPopup(t){try{let n=this.getRequestCorrelationId(t);return iP(this.initialized),this.browserStorage.setInteractionInProgress(!0,ya.SIGNOUT),this.createPopupClient(n).logout(t).finally(()=>{this.browserStorage.setInteractionInProgress(!1)})}catch(n){return Promise.reject(n)}}async clearCache(t){if(!this.isBrowserEnvironment)return;let n=this.getRequestCorrelationId(t);return this.createSilentCacheClient(n).logout(t)}getAllAccounts(t){return Pve(this.logger,this.browserStorage,this.isBrowserEnvironment,this.getRequestCorrelationId(),t)}getAccount(t){return Lve(t,this.logger,this.browserStorage,this.getRequestCorrelationId())}setActiveAccount(t){Rve(t,this.browserStorage,this.getRequestCorrelationId())}getActiveAccount(){return Mve(this.browserStorage,this.getRequestCorrelationId())}async hydrateCache(t,n){this.logger.verbose("16jycr",t.correlationId);let o=wi.createAccountEntityFromAccountInfo(t.account,t.cloudGraphHostName,t.msGraphHost);return await this.browserStorage.setAccount(o,t.correlationId,Tr.isKmsi(t.idTokenClaims),Et.hydrateCache),t.fromPlatformBroker?(this.logger.verbose("1fxyu8",t.correlationId),this.nativeInternalStorage.hydrateCache(t,n)):this.browserStorage.hydrateCache(t,n)}async acquireTokenNative(t,n,o,r){let s=this.getRequestCorrelationId(t);if(this.logger.trace("0b9y3p",s),!this.platformAuthProvider)throw _e(tP);return new xd(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,n,this.performanceClient,this.platformAuthProvider,o||this.getNativeAccountId(t),this.nativeInternalStorage,s).acquireToken(t,r)}canUsePlatformBroker(t,n){let o=this.getRequestCorrelationId(t);if(this.logger.trace("1n9lbl",o),!this.platformAuthProvider)return this.logger.trace("0vnu11",o),!1;if(!Bc(this.config,this.logger,o,this.platformAuthProvider,t.authenticationScheme))return this.logger.trace("1m4bzf",o),!1;if(t.prompt)switch(t.prompt){case De.PromptValue.NONE:case De.PromptValue.CONSENT:case De.PromptValue.LOGIN:this.logger.trace("0vdv8e",o);break;default:return this.logger.trace("0pdzw6",o),!1}return!n&&!this.getNativeAccountId(t)?(this.logger.trace("16lbtk",o),!1):!0}getNativeAccountId(t){let n=t.account||this.getAccount({loginHint:t.loginHint,sid:t.sid})||this.getActiveAccount();return n&&n.nativeAccountId||""}createPopupClient(t){return new xP(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeInternalStorage,t,this.platformAuthProvider)}createRedirectClient(t){return new TP(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeInternalStorage,t,this.platformAuthProvider)}createSilentIframeClient(t){return new wP(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,Et.ssoSilent,this.performanceClient,this.nativeInternalStorage,t,this.platformAuthProvider)}createSilentCacheClient(t){return new Rb(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,t,this.platformAuthProvider)}createSilentRefreshClient(t){return new SP(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,t,this.platformAuthProvider)}createSilentAuthCodeClient(t){return new EP(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,Et.acquireTokenByCode,this.performanceClient,t,this.platformAuthProvider)}addEventCallback(t,n){return this.eventHandler.addEventCallback(t,n)}removeEventCallback(t){this.eventHandler.removeEventCallback(t)}addPerformanceCallback(t){return IB(),this.performanceClient.addPerformanceCallback(t)}removePerformanceCallback(t){return this.performanceClient.removePerformanceCallback(t)}getLogger(){return this.logger}setLogger(t){this.logger=t}initializeWrapperLibrary(t,n){this.browserStorage.setWrapperMetadata(t,n)}setNavigationClient(t){this.navigationClient=t}getConfiguration(){return this.config}getPerformanceClient(){return this.performanceClient}isBrowserEnv(){return this.isBrowserEnvironment}getRequestCorrelationId(t){return t?.correlationId?t.correlationId:this.isBrowserEnvironment?Qs():""}async loginRedirect(t){let n=this.getRequestCorrelationId(t);return this.logger.verbose("0lz9hf",n),this.acquireTokenRedirect({correlationId:n,...t||mB})}loginPopup(t){let n=this.getRequestCorrelationId(t);return this.logger.verbose("0qw7v5",n),this.acquireTokenPopup({correlationId:n,...t||mB})}async acquireTokenSilent(t){let n=this.getRequestCorrelationId(t),o=this.performanceClient.startMeasurement(gve,n);o.add({cacheLookupPolicy:t.cacheLookupPolicy,scenarioId:t.scenarioId}),AP(this.initialized,o,this.config,t),this.logger.verbose("0x1c4s",n);let r=t.account||this.getActiveAccount();if(!r)throw _e(Mye);return this.acquireTokenSilentDeduped(t,r,n).then(s=>(o.end({success:!0,fromCache:s.fromCache,isNativeBroker:s.fromPlatformBroker,accessTokenSize:s.accessToken.length,idTokenSize:s.idToken.length},void 0,s.account),{...s,state:t.state,correlationId:n})).catch(s=>{throw s instanceof at&&s.setCorrelationId(n),o.end({success:!1},s,r),s})}async acquireTokenSilentDeduped(t,n,o){let r=Mc(this.config.auth.clientId,{...t,authority:t.authority||this.config.auth.authority,correlationId:o},n.homeAccountId),s=JSON.stringify(r),i=this.activeSilentTokenRequests.get(s);if(typeof i>"u"){this.logger.verbose("0fcjbk",o),this.performanceClient.addFields({deduped:!1},o);let a=W(this.acquireTokenSilentAsync.bind(this),U_e,this.logger,this.performanceClient,o)({...t,correlationId:o},n);return this.activeSilentTokenRequests.set(s,a),a.finally(()=>{this.activeSilentTokenRequests.delete(s)})}else return this.logger.verbose("1yq7nb",o),this.performanceClient.addFields({deduped:!0},o),i}async acquireTokenSilentAsync(t,n){let o=a=>this.trackStateChange(t.correlationId,a);this.eventHandler.emitEvent(rt.ACQUIRE_TOKEN_START,t.correlationId,Je.Silent,t),t.correlationId&&this.performanceClient.incrementFields({visibilityChangeCount:0,onlineStatusChangeCount:0},t.correlationId),this.addStateChangeListeners(o);let r=await W(Dve,Q_e,this.logger,this.performanceClient,t.correlationId)(t,n,this.config,this.performanceClient,this.logger),s=t.cacheLookupPolicy||lr.Default;return this.acquireTokenSilentNoIframe(r,s).catch(async a=>{if(IBe(a,s)){let c=`${a.errorCode}${a.subError?`|${a.subError}`:""}`;if(this.performanceClient.addFields({silentRefreshReason:c},t.correlationId),this.activeIframeRequest)if(s!==lr.Skip){let[u,p]=this.activeIframeRequest;this.logger.verbose("1w8fso",r.correlationId);let m=this.performanceClient.startMeasurement(z_e,r.correlationId);m.add({awaitIframeCorrelationId:p});let g=await u;if(m.end({success:g}),g)return this.logger.verbose("0ywzzi",r.correlationId),this.acquireTokenSilentNoIframe(r,s);throw this.logger.info("17y14q",r.correlationId),a}else return this.logger.warning("1bd4p8",r.correlationId),W(this.acquireTokenBySilentIframe.bind(this),iB,this.logger,this.performanceClient,r.correlationId)(r);else{let u;return this.activeIframeRequest=[new Promise(p=>{u=p}),r.correlationId],this.logger.verbose("0rh08z",r.correlationId),W(this.acquireTokenBySilentIframe.bind(this),iB,this.logger,this.performanceClient,r.correlationId)(r).then(p=>(u(!0),p)).catch(p=>{throw u(!1),p}).finally(()=>{this.activeIframeRequest=void 0})}}else throw a}).then(a=>(this.eventHandler.emitEvent(rt.ACQUIRE_TOKEN_SUCCESS,t.correlationId,Je.Silent,a),t.correlationId&&this.performanceClient.addFields({fromCache:a.fromCache,isNativeBroker:a.fromPlatformBroker},t.correlationId),a)).catch(a=>{throw this.eventHandler.emitEvent(rt.ACQUIRE_TOKEN_FAILURE,t.correlationId,Je.Silent,null,a),a}).finally(()=>{this.removeStateChangeListeners(o)})}async acquireTokenSilentNoIframe(t,n){return Bc(this.config,this.logger,t.correlationId,this.platformAuthProvider,t.authenticationScheme)&&t.account.nativeAccountId?(this.logger.verbose("0sczo4",t.correlationId),this.acquireTokenNative(t,Et.acquireTokenSilent_silentFlow,t.account.nativeAccountId,n).catch(async o=>{throw o instanceof Ei&&vd(o)?(this.logger.verbose("07rkmb",t.correlationId),this.platformAuthProvider=void 0,re(Co.tokenRefreshRequired)):o})):(this.logger.verbose("0ox81t",t.correlationId),n===lr.AccessToken&&this.logger.verbose("0fvwxe",t.correlationId),W(this.acquireTokenFromCache.bind(this),N_e,this.logger,this.performanceClient,t.correlationId)(t,n).catch(o=>{if(n===lr.AccessToken)throw o;return this.eventHandler.emitEvent(rt.ACQUIRE_TOKEN_NETWORK_START,t.correlationId,Je.Silent,t),W(this.acquireTokenByRefreshToken.bind(this),F_e,this.logger,this.performanceClient,t.correlationId)(t,n)}))}async preGeneratePkceCodes(t){return this.logger.verbose("1x6uj6",t),this.pkceCode=await W(va,_a,this.logger,this.performanceClient,t)(this.performanceClient,this.logger,t),Promise.resolve()}getPreGeneratedPkceCodes(t){let n=this.pkceCode?{...this.pkceCode}:void 0;return this.pkceCode=void 0,n?this.logger.verbose("12js1o",t):this.logger.verbose("1oe9ci",t),this.performanceClient.addFields({usePreGeneratedPkce:!!n},t),n}logMultipleInstances(t,n){let o=this.config.auth.clientId;if(!window)return;window.msal=window.msal||{},window.msal.clientIds=window.msal.clientIds||[],window.msal.clientIds.length>0&&this.logger.verbose("1qtz3l",n),window.msal.clientIds.push(o),oxe(o,t,this.logger,n)}};function IBe(e,t){let n=!(e instanceof Dn&&e.subError!==vl.badToken),o=e.errorCode===Po.INVALID_GRANT_ERROR||e.errorCode===Co.tokenRefreshRequired,r=n&&o||e.errorCode===vl.noTokensFound||e.errorCode===vl.refreshTokenExpired,s=yye.includes(t);return r&&s}var IP=class e{static loggerCallback(t,n){switch(t){case Ut.Error:console.error(n);return;case Ut.Info:console.info(n);return;case Ut.Verbose:console.debug(n);return;case Ut.Warning:console.warn(n);return;default:console.log(n);return}}constructor(t){this.browserEnvironment=typeof window<"u",this.config=Xve(t,this.browserEnvironment);let n;try{n=window[Ho.SessionStorage]}catch{}let o=n?.getItem(wve),r=n?.getItem(Sve)?.toLowerCase(),s=r==="true"?!0:r==="false"?!1:void 0,i={...this.config.system.loggerOptions},a=o&&Object.keys(Ut).includes(o)?Ut[o]:void 0;a&&(i.loggerCallback=e.loggerCallback,i.logLevel=a),s!==void 0&&(i.piiLoggingEnabled=s),this.logger=new Ao(i,Ave,js),this.available=!1}getConfig(){return this.config}getLogger(){return this.logger}isAvailable(){return this.available}isBrowserEnvironment(){return this.browserEnvironment}};var Fb=class e extends IP{getModuleName(){return e.MODULE_NAME}getId(){return e.ID}async initialize(t){return this.available=typeof window<"u",this.available}};Fb.MODULE_NAME="";Fb.ID="StandardOperatingContext";var jT=class{constructor(t,n){this.controller=n||new kP(new Fb(t))}async initialize(t){return this.controller.initialize(t)}async acquireTokenPopup(t){return this.controller.acquireTokenPopup(t)}acquireTokenRedirect(t){return this.controller.acquireTokenRedirect(t)}acquireTokenSilent(t){return this.controller.acquireTokenSilent(t)}acquireTokenByCode(t){return this.controller.acquireTokenByCode(t)}addEventCallback(t,n){return this.controller.addEventCallback(t,n)}removeEventCallback(t){return this.controller.removeEventCallback(t)}addPerformanceCallback(t){return this.controller.addPerformanceCallback(t)}removePerformanceCallback(t){return this.controller.removePerformanceCallback(t)}getAccount(t){return this.controller.getAccount(t)}getAllAccounts(t){return this.controller.getAllAccounts(t)}handleRedirectPromise(t){return this.controller.handleRedirectPromise(t)}loginPopup(t){return this.controller.loginPopup(t)}loginRedirect(t){return this.controller.loginRedirect(t)}logoutRedirect(t){return this.controller.logoutRedirect(t)}logoutPopup(t){return this.controller.logoutPopup(t)}ssoSilent(t){return this.controller.ssoSilent(t)}getLogger(){return this.controller.getLogger()}setLogger(t){this.controller.setLogger(t)}setActiveAccount(t){this.controller.setActiveAccount(t)}getActiveAccount(){return this.controller.getActiveAccount()}initializeWrapperLibrary(t,n){return this.controller.initializeWrapperLibrary(t,n)}setNavigationClient(t){this.controller.setNavigationClient(t)}getConfiguration(){return this.controller.getConfiguration()}async hydrateCache(t,n){return this.controller.hydrateCache(t,n)}clearCache(t){return this.controller.clearCache(t)}};var gxt=De.AuthenticationScheme,fxt=De.ResponseMode,hxt=De.PromptValue,bxt=De.JsonWebTokenTypes,_xt=De.OIDC_DEFAULT_SCOPES;async function rxe(e){let t={method:"POST",body:JSON.stringify(e)},n=await R(N(D.privacy.cookieConsentDeleteService,t));if(!n.ok)throw new Error(`Cookie Deletion Error ${n.status}: ${n.statusText}`)}var sxe;(function(e){sxe=e()})(function(){let e=function(){let n=0,o={};for(;n"u")return;if(arguments.length>1){if(i=e({path:"/"},o.defaults,i),typeof i.expires=="number"){let m=new Date;m.setMilliseconds(m.getMilliseconds()+i.expires*864e5),i.expires=m}i.expires=i.expires?i.expires.toUTCString():"";try{a=JSON.stringify(s),/^[\{\[]/.test(a)&&(s=a)}catch{}n.write?s=n.write(s,r):s=encodeURIComponent(String(s)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),r=encodeURIComponent(String(r)),r=r.replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent),r=r.replace(/[\(\)]/g,escape);let p="";for(let m in i)i[m]&&(p+="; "+m,i[m]!==!0&&(p+="="+i[m]));return document.cookie=r+"="+s+p}r||(a={});let l=document.cookie?document.cookie.split("; "):[],c=/(%[0-9A-Z]{2})+/g,u=0;for(;u{let r=performance.now(),s=setInterval(()=>{let i=Ws.get(e);i?(clearInterval(s),o(i)):performance.now()-r>=t&&(clearInterval(s),o(null))},200)})}var axe=!!window.matchMedia,PBe=window.matchMedia("screen and (min-width: 768px), screen and (min-height: 1024px)"),xa=window.matchMedia("screen and (min-width: 1088px)"),Ub=window.matchMedia("screen and (min-width: 768px)"),LBe=window.matchMedia("screen and (max-width: 768px)"),lxe=window.matchMedia("print"),cxe=window.matchMedia("(prefers-color-scheme: dark)"),uxe=window.matchMedia("(prefers-contrast: more)");var qb="light",WT={light:{documentClass:"theme-light",name:"light",text:cle,icon:"docon-sun"},dark:{documentClass:"theme-dark",name:"dark",text:Nse,icon:"docon-clear-night"},"high-contrast":{documentClass:"theme-high-contrast",name:"high-contrast",text:Hae,icon:"docon-clear-night"}},RBe=Object.keys(WT),OB=RBe.map(e=>WT[e].documentClass),Ob=class{constructor(t,n){this.currentTheme=t;this.previousTheme=n}};function MBe(e,t,n){e.publish(new Ob(t,n)),window.dispatchEvent(new CustomEvent("theme-changed",{detail:{currentTheme:t,previousTheme:n}}))}function DBe(e){let t=document.documentElement.classList;for(let n of OB)t.remove(n);t.add(WT[e].documentClass)}function $Be(e){return qb=e}function dxe(e){let t=Array.from(document.querySelectorAll(".theme-control[data-theme-to]"));for(let n of t)n.dataset.themeTo===e?(n.classList.add("is-selected"),n.setAttribute("aria-pressed","true")):(n.classList.remove("is-selected"),n.setAttribute("aria-pressed","false"))}function NBe(e){J.setItem("theme",e)}function FBe(e=!1,t=!1){let n=J.getItem("theme");return n&&/^light|dark|high-contrast$/.test(n)?n:t?"high-contrast":e?"dark":"light"}function pxe(e){qB(ct,e)}function qB(e,t){let n=qb;$Be(t),DBe(t),n!==t&&MBe(e,t,n)}async function mxe(e){let t=Td();qB(e,t),UBe(e),await Te,dxe(t),window.setTheme=pxe}function Td(e=cxe.matches){let t=me();if(t.theme==="light"||t.theme==="dark"||t.theme==="high-contrast")return t.theme;let n=t.checkPrefersContrast==="true"&&uxe.matches;return FBe(e,n)}function UBe(e){window.addEventListener("click",({target:t})=>{let n=t instanceof Element&&t.closest(".theme-control[data-theme-to]");if(!n)return;let o=n.dataset.themeTo;dxe(o),NBe(o),qB(e,o)})}var KT,fxe=new Promise(e=>KT=e),ag,lg=new Promise(e=>ag=e),hxe,bxe=()=>hxe,gxe=e=>{for(let t of Object.values(e))if(!t)return!1;return!0};async function _xe(){if(!S.cookieConsent)return;if(S.chromeless){ag(!0),KT();return}let e=()=>Ws.get("MSCC")!==void 0,t=se.WcpConsent;if(t===void 0||typeof t.init!="function"){ag(!1);return}await Te;let n=document.getElementById("cookie-consent-holder"),o=Array.from(document.querySelectorAll(".manage-cookies-holder"));if(!n||!o.length){console.log("No container for cookie banner");return}t.init(b.data.userLocale,n,function(r,s){if(r!==void 0){ag(!1);return}if(hxe=s,!s.isConsentRequired){ag(!0),KT();return}let i=document.createElement("button");if(i.setAttribute("data-bi-name","manageCookies"),i.textContent=Sle,o.forEach(a=>{a.appendChild(i.cloneNode(!0)).addEventListener("click",()=>{s.manageConsent()}),a.hidden=!1}),n.hidden=!1,Zt(),gxe(s.getConsent())){ag(!0),KT();return}ag(!1)},async function(r){if(gxe(r)){KT(),el();return}if(await rxe({domain:document.location.hostname,analytics:!r.Analytics,advertising:!r.Advertising,social:!r.SocialMedia}),e()){r.Analytics||(document.cookie="mbox=;expires=Thu, 01 Jan 1970 00:00:00 GMT;path=/;domain=.microsoft.com"),se.location.href=se.location.pathname+se.location.search+se.location.hash;return}el()},qb)}function yxe(e=location.hostname){return{"developer.microsoft.com":"DevCenter","dev.learn.microsoft.com ":"DocsDev","dev.docs.azure.cn":"DocsDev","review.learn.microsoft.com":"DocsReview","review.docs.azure.cn":"DocsReview","learn.microsoft.com":"Docs","docs.azure.cn":"DocsCN"}[e]||"OneDSTest"}function vxe(e=location.hostname){return{"developer.microsoft.com":"d1574ad452ea4a37a5dda6f9f1fb5ef2-b55b2da9-95eb-4cf9-a633-191aa7b0ee25-6798","docs.azure.cn":"54ae4d70fff842118ff98bccfdc28deb-7f4f32ec-ae5a-4562-881c-5c0188170faf-7594","learn.microsoft.com":"c6c27850c9c24cbfae921778d2465031-4c28c161-db47-426b-9d28-733d45d05dd9-7278","review.learn.microsoft.com":"d94fc739fadb4805bce966a4f24e2e21-a6b89116-ce98-4ffb-b1cf-d46e361ea690-7616","review.docs.azure.cn":"d94fc739fadb4805bce966a4f24e2e21-a6b89116-ce98-4ffb-b1cf-d46e361ea690-7616"}[e]??"8617064329544862a1d4dbcc1cdda9d3-079a9ef7-af43-443d-a28b-f60ba4efc9ff-7531"}var xxe="3PAdsOptOut";var HB=!1;function Txe(){let e=A.createElement("div");e.style.cssText="position:absolute;top:0;left:-2300px;background-color:#878787",e.textContent="hc",A.body.appendChild(e);let t=se.getComputedStyle(e).backgroundColor.toLowerCase();A.body.removeChild(e),t!=="#878787"&&t!=="rgb(135, 135, 135)"&&(A.documentElement.className+=" os-high-contrast-enabled theme-high-contrast",HB=!0)}var OBe={audience:"aud",author:"author",manager:"manager","ms.assetid":"asst","ms.author":"pgauth","ms.contentsource":"pgpubl","ms.custom":"custom","ms.date":"date",depot_name:"depotname","ms.devlang":"pgdevlng",gitcommit:"gitcommit",original_content_git_url:"giturl",updated_at:"publishtime","ms.lasthandoff":"lasthandoff","ms.locfileid":"locfileid","ms.prod":"product","ms.reviewer":"reviewer","ms.service":"pgsrvcs","ms.suite":"suite","ms.technology":"technology","ms.tgt_pltfrm":"pgtrgtplf","ms.topic":"pgtop","ms.workload":"workload","ms.search.region":"searchregion","ms.prod_service":"prod_service","ms.component":"component",experimental:"experimental",experiment_id:"experiment_id","ms.assigned_experiments":"assigned_experiments","ms.translationtype":"translationtype",document_version_independent_id:"document_version_independent_id",platform_id:"platform_id","ms.collection":"collection","ms.subservice":"subservice"};function PP(e){let t=document.querySelectorAll("meta");for(let n=0;nv.isAuthenticated&&(v.authenticationMode==="MSA"||v.tenantId===qo),pageViewPageTags:LP,pageActionPageTags:LP,contentUpdatePageTags:LP,pageActionContentTags:LP,userConsentDetailsCallback:Cxe},advancedConfig:{propertyConfiguration:{gpcDataSharingOptIn:S.thirdPartyDataSharingConsentFlag?HBe():null}},shareAuthStatus:!0,isLoggedIn:!1};PP(n.coreData.pageTags),n.coreData.pageTags.pageTemplate=b.data.pageTemplate,e.init(n),BBe(e)}function LP(){return v.isAuthenticated?{"ext-app-user-id":`c:${v.userId}`}:{}}var wd=new Promise(e=>wxe=e);function HBe(){let e=GBe(),t=zBe(),n=!!navigator.globalPrivacyControl,o=Ws.get(xxe)==="1";return!(e||t||n||o)}function BBe(e){var n,o;(n=e.sku.config).extensionConfig??(n.extensionConfig={});let t=e.sku.config.extensionConfig;t.SystemPropertiesCollector??(t.SystemPropertiesCollector={}),(o=t.SystemPropertiesCollector).callback??(o.callback={}),t.SystemPropertiesCollector.callback.userConsentDetails=Cxe}function Cxe(){return bxe()?.getConsent()||null}function zBe(){let e=window.self!==window.top,t=!!window.frameElement;return e&&!t}function GBe(e=window.location.hostname){return!e.endsWith(".microsoft.com")}var Re={CLICKLEFT:"CL",CLICKRIGHT:"CR",CLICKMIDDLE:"CM",SCROLL:"S",ZOOM:"Z",RESIZE:"R",KEYBOARDENTER:"KE",KEYBOARDSPACE:"KS",GAMEPADA:"CGA",GAMEPADMENU:"CGM",OTHER:"O",AUTO:"A"},Ce={UNDEFINED:0,NAVIGATIONBACK:1,NAVIGATION:2,NAVIGATIONFORWARD:3,APPLY:4,REMOVE:5,SORT:6,EXPAND:7,REDUCE:8,CONTEXTMENU:9,TAB:10,COPY:11,EXPERIMENTATION:12,PRINT:13,SHOW:14,HIDE:15,MAXIMIZE:16,MINIMIZE:17,BACKBUTTON:18,STARTPROCESS:20,PROCESSCHECKPOINT:21,COMPLETEPROCESS:22,SCENARIOCANCEL:23,DOWNLOADCOMMIT:40,DOWNLOAD:41,SEARCHAUTOCOMPLETE:60,SEARCH:61,SEARCHINITIATE:62,TEXTBOXINPUT:63,PURCHASE:80,ADDTOCART:81,VIEWCART:82,ADDWISHLIST:83,FINDSTORE:84,CHECKOUT:85,REMOVEFROMCART:86,PURCHASECOMPLETE:87,VIEWCHECKOUTPAGE:88,VIEWCARTPAGE:89,VIEWPDP:90,UPDATEITEMQUANTITY:91,INTENTTOBUY:92,PUSHTOINSTALL:93,SIGNIN:100,SIGNOUT:101,SOCIALSHARE:120,SOCIALLIKE:121,SOCIALREPLY:122,CALL:123,EMAIL:124,COMMUNITY:125,SOCIALFOLLOW:126,VOTE:140,SURVEYINITIATE:141,SURVEYCOMPLETE:142,REPORTAPPLICATION:143,REPORTREVIEW:144,SURVEYCHECKPOINT:145,CONTACT:160,REGISTRATIONINITIATE:161,REGISTRATIONCOMPLETE:162,CANCELSUBSCRIPTION:163,RENEWSUBSCRIPTION:164,CHANGESUBSCRIPTION:165,REGISTRATIONCHECKPOINT:166,CHATINITIATE:180,CHATEND:181,TRIALSIGNUP:200,TRIALINITIATE:201,SIGNUP:210,FREESIGNUP:211,PARTNERREFERRAL:220,LEARNLOWFUNNEL:230,LEARNHIGHFUNNEL:231,SHOPPINGINTENT:232,VIDEOSTART:240,VIDEOPAUSE:241,VIDEOCONTINUE:242,VIDEOCHECKPOINT:243,VIDEOJUMP:244,VIDEOCOMPLETE:245,VIDEOBUFFERING:246,VIDEOERROR:247,VIDEOMUTE:248,VIDEOUNMUTE:249,VIDEOFULLSCREEN:250,VIDEOUNFULLSCREEN:251,VIDEOREPLAY:252,VIDEOPLAYERLOAD:253,VIDEOPLAYERCLICK:254,VIDEOVOLUMECONTROL:255,VIDEOAUDIOTRACKCONTROL:256,VIDEOCLOSEDCAPTIONCONTROL:257,VIDEOCLOSEDCAPTIONSTYLE:258,VIDEORESOLUTIONCONTROL:259,VIRTUALEVENTJOIN:260,VIRTUALEVENTEND:261,IMPRESSION:280,CLICK:281,RICHMEDIACOMPLETE:282,ADBUFFERING:283,ADERROR:284,ADSTART:285,ADCOMPLETE:286,ADSKIP:287,ADTIMEOUT:288,OTHER:300},Lo={id:"data-bi-id",name:"data-bi-name",type:"data-bi-type",scenario:"data-bi-scn",scenarioStep:"data-bi-scnstp",scenarioStepNumber:"data-bi-subnm",satisfaction:"data-bi-sat"},JT={id:"id",name:"name",type:"type",scenario:"scn",scenarioStep:"scnstp",scenarioStepNumber:"subnm"},Cl=e=>{let t=e.closest(`[${Lo.name}]`);return t?t.getAttribute(Lo.name):""},Exe=()=>{wd.then(e=>{e.sku.getAuthExtension().signOut()})},Axe=(e,t)=>{wd.then(n=>{let o=n.sku.getAuthExtension();if(!t){o.setAuthType(0);return}o.setAuthType(e==="MSA"?1:e==="AAD"?2:0)})},kxe=e=>{wd.then(t=>t.extendCoreData(e))},Ro=(e,t)=>{wd.then(n=>n.ct.capturePageAction(e,t))},Ee=e=>{wd.then(t=>t.ct.captureContentPageAction(e))},Ixe=e=>{wd.then(t=>t.ct.captureContentUpdate(e))},BB=e=>{wd.then(t=>t.ct.capturePageView(e||{}))};var RP,MP="undefined",FP="constructor",El="prototype",UP="function",OP="_dynInstFuncs",VB="_isDynProxy",Hb="_dynClass",VBe="_dynCls$",QB="_dynInstChk",XT=QB,Dxe="_dfOpts",Pxe="_unknown_",WB="__proto__",DP="_dyn"+WB,Lxe="__dynProto$Gbl",zB="_dynInstProto",$P="useBaseInst",YB="setInstFuncs",BP=Object,ZT=BP.getPrototypeOf,Rxe=BP.getOwnPropertyNames;function QBe(){var e;return typeof globalThis!==MP&&(e=globalThis),!e&&typeof self!==MP&&(e=self),!e&&typeof window!==MP&&(e=window),!e&&typeof global!==MP&&(e=global),e||{}}var Mxe=QBe(),jB=Mxe[Lxe]||(Mxe[Lxe]={o:(RP={},RP[YB]=!0,RP[$P]=!0,RP),n:1e3});function zc(e,t){return e&&BP[El].hasOwnProperty.call(e,t)}function NP(e){return e&&(e===BP[El]||e===Array[El])}function KB(e){return NP(e)||e===Function[El]}function cg(e){var t;if(e){if(ZT)return ZT(e);var n=e[WB]||e[El]||(e[FP]?e[FP][El]:null);t=e[DP]||n,zc(e,DP)||(delete e[zB],t=e[DP]=e[zB]||e[DP],e[zB]=n)}return t}function qP(e,t){var n=[];if(Rxe)n=Rxe(e);else for(var o in e)typeof o=="string"&&zc(e,o)&&n.push(o);if(n&&n.length>0)for(var r=0;r=0;n--)if(e[n]===t)return!0;return!1}function jBe(e,t,n,o){function r(l,c,u){var p=c[u];if(p[VB]&&o){var m=l[OP]||{};m[XT]!==!1&&(p=(m[c[Hb]]||{})[u]||p)}return function(){return p.apply(l,arguments)}}var s=Bb();qP(n,function(l){s[l]=r(t,n,l)});for(var i=cg(e),a=[];i&&!KB(i)&&!XB(a,i);)qP(i,function(l){!s[l]&&JB(i,l,!ZT)&&(s[l]=r(t,i,l))}),a.push(i),i=cg(i);return s}function WBe(e,t,n,o){var r=null;if(e&&zc(n,Hb)){var s=e[OP]||Bb();if(r=(s[n[Hb]]||Bb())[t],r||HP("Missing ["+t+"] "+UP),!r[QB]&&s[XT]!==!1){for(var i=!zc(e,t),a=cg(e),l=[];i&&a&&!KB(a)&&!XB(l,a);){var c=a[t];if(c){i=c===o;break}l.push(a),a=cg(a)}try{i&&(e[t]=r),r[QB]=1}catch{s[XT]=!1}}}return r}function KBe(e,t,n){var o=t[e];return o===n&&(o=cg(t)[e]),typeof o!==UP&&HP("["+e+"] is not a "+UP),o}function JBe(e,t,n,o,r){function s(l,c){var u=function(){var p=WBe(this,c,l,u)||KBe(c,l,u);return p.apply(this,arguments)};return u[VB]=1,u}if(!NP(e)){var i=n[OP]=n[OP]||Bb();if(!NP(i)){var a=i[t]=i[t]||Bb();i[XT]!==!1&&(i[XT]=!!r),NP(a)||qP(n,function(l){JB(n,l,!1)&&n[l]!==o[l]&&(a[l]=n[l],delete n[l],(!zc(e,l)||e[l]&&!e[l][VB])&&(e[l]=s(e,l)))})}}}function XBe(e,t){if(ZT){for(var n=[],o=cg(t);o&&!KB(o)&&!XB(n,o);){if(o===e)return!0;n.push(o),o=cg(o)}return!1}return!0}function GB(e,t){return zc(e,El)?e.name||t||Pxe:((e||{})[FP]||{}).name||t||Pxe}function dt(e,t,n,o){zc(e,El)||HP("theClass is an invalid class definition.");var r=e[El];XBe(r,t)||HP("["+GB(e)+"] not in hierarchy of ["+GB(t)+"]");var s=null;zc(r,Hb)?s=r[Hb]:(s=VBe+GB(e,"_")+"$"+jB.n,jB.n++,r[Hb]=s);var i=dt[Dxe],a=!!i[$P];a&&o&&o[$P]!==void 0&&(a=!!o[$P]);var l=YBe(t),c=jBe(r,t,l,a);n(t,c);var u=!!ZT&&!!i[YB];u&&o&&(u=!!o[YB]),JBe(r,s,t,l,u!==!1)}dt[Dxe]=jB.o;var Ai="function",cs="object",us="undefined",Nn="prototype",ew="hasOwnProperty";var Ks=Object,zb=Ks[Nn],Gb=Ks.assign,zP=Ks.create,Vb=Ks.defineProperty,Al=zb[ew];var $xe=null;function ki(e){e===void 0&&(e=!0);var t=e===!1?null:$xe;return t||(typeof globalThis!==us&&(t=globalThis),!t&&typeof self!==us&&(t=self),!t&&typeof window!==us&&(t=window),!t&&typeof global!==us&&(t=global),$xe=t),t}function Qb(e){throw new TypeError(e)}function Yb(e){var t=zP;if(t)return t(e);if(e==null)return{};var n=typeof e;n!==cs&&n!==Ai&&Qb("Object prototype may only be an Object:"+e);function o(){}return o[Nn]=e,new o}var fTt=(ki()||{}).Symbol,hTt=(ki()||{}).Reflect;var e3e=function(e){for(var t,n=1,o=arguments.length;n=o&&!(n=e===t)){for(var s=r-1,i=o-1;i>=0;i--){if(e[s]!=t[i])return!1;s--}n=!0}return n}function Do(e,t){return e&&t?e[Ed](t)!==-1:!1}var At=a3e||m3e;function m3e(e){return!!(e&&Yxe[Mo](e)==="[object Array]")}function vg(e){return!!(e&&Yxe[Mo](e)==="[object Error]")}function We(e){return typeof e=="string"}function cw(e){return typeof e=="number"}function Wxe(e){return typeof e=="boolean"}function Bxe(e){var t=!1;if(e&&typeof e=="object"){var n=tL?tL(e):u3(e);n?(n[eL]&&Al[Mo](n,eL)&&(n=n[eL]),t=typeof n===Ai&&jxe[Mo](n)===l3e):t=!0}return t}function ei(e){if(e)return i3e?e[Gxe]():g3e(e)}function g3e(e){if(e&&e.getUTCFullYear){var t=function(n){var o=String(n);return o[st]===1&&(o="0"+o),o};return e.getUTCFullYear()+"-"+t(e.getUTCMonth()+1)+"-"+t(e.getUTCDate())+"T"+t(e.getUTCHours())+":"+t(e.getUTCMinutes())+":"+t(e.getUTCSeconds())+"."+String((e.getUTCMilliseconds()/1e3).toFixed(3)).slice(2,5)+"Z"}}function $e(e,t,n){var o=e[st];try{for(var r=0;r=0?r:o-Math.abs(r),0);s=3)o=arguments[2];else{for(;s0&&Wxe(a)&&(c=a,a=i[u]||{},u++),Cr(a)||(a={});u=g&&(l[w](x[Sd]),o[I]=!0)}else r>=g&&l[w](x[Sd]);c(g,x)}},l[lw]=function(g){oTe("warn",g),m("warning",g)},l[ZP]=function(g){oTe("error",g),m("error",g)},l.resetInternalMessageCount=function(){n=0,o={}},l[n3]=c;function c(g,f){if(!p()){var _=!0,h=L3e+f[Wb];if(o[h]?_=!1:o[h]=!0,_&&(g<=s&&(l.queue[Tt](f),n++,m(g===1?"error":"warn",f)),n===i)){var T="Internal events throttle limit per PageView reached for this app.",x=new Yc(23,T,!1);l.queue[Tt](x),g===1?l[ZP](T):l[lw](T)}}}function u(g){r=ti(g.loggingLevelConsole,0),s=ti(g.loggingLevelTelemetry,1),i=ti(g.maxMessageLimit,25),a=ti(g.enableDebug,ti(g[t3],!1))}function p(){return n>=i}function m(g,f){var _=I3(t||{});_&&_[Ii]&&_[Ii](g,f)}})}return e.__ieDyn=1,e}();function P3(e){return e||new wg}function Se(e,t,n,o,r,s){s===void 0&&(s=!1),P3(e).throwInternal(t,n,o,r,s)}function Mi(e,t){P3(e)[lw](t)}function L3(e,t,n){P3(e)[n3](t,n)}var c_="ctx",M3="ParentContextKey",uw="ChildrenContextKey",R3e=null,dw=function(){function e(t,n,o){var r=this,s=!1;if(r.start=Qo(),r[Sr]=t,r[Ca]=o,r[rw]=function(){return!1},Xe(n)){var i;s=Li(r,"payload",function(){return!i&&Xe(n)&&(i=n(),n=null),i})}r[bg]=function(a){return a?a===e[M3]||a===e[uw]?r[a]:(r[c_]||{})[a]:null},r[Aa]=function(a,l){if(a)if(a===e[M3])r[a]||(r[rw]=function(){return!0}),r[a]=l;else if(a===e[uw])r[a]=l;else{var c=r[c_]=r[c_]||{};c[a]=l}},r[JP]=function(){var a=0,l=r[bg](e[uw]);if(At(l))for(var c=0;c>>=0),pw=123456789+e&Sg,mw=987654321-e&Sg,sTe=!0}function D3e(){try{var e=Qo()&2147483647;M3e((Math.random()*rTe^e)+e)}catch{}}function Cg(e){var t=0,n=C3()||E3();return n&&n.getRandomValues&&(t=n.getRandomValues(new Uint32Array(1))[0]&Sg),t===0&&a_()&&(sTe||D3e(),t=N3()&Sg),t===0&&(t=Math.floor(rTe*Math.random()|0)),e||(t>>>=0),t}function N3(e){mw=36969*(mw&65535)+(mw>>16)&Sg,pw=18e3*(pw&65535)+(pw>>16)&Sg;var t=(mw<<16)+(pw&65535)>>>0&Sg|0;return e||(t>>>=0),t}function jc(e){e===void 0&&(e=22);for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n=Cg()>>>0,o=0,r=bt;r[st]>>=6,o===5&&(n=(Cg()<<2&4294967295|n&3)>>>0,o=0);return r}var iTe=Vb,aTe="2.8.13",$3e="."+jc(6),N3e=0;function F3e(e,t,n){if(iTe)try{return iTe(e,t,{value:n,enumerable:!1,configurable:!0}),!0}catch{}return!1}function lTe(e){return e[jP]===1||e[jP]===9||!+e[jP]}function U3e(e,t){var n=t[e.id];if(!n){n={};try{lTe(t)&&(F3e(t,e.id,n)||(t[e.id]=n))}catch{}}return n}function cr(e,t){return t===void 0&&(t=!1),yg(e+N3e+++(t?"."+aTe:bt)+$3e)}function dL(e){var t={id:cr("_aiData-"+(e||bt)+"."+aTe),accept:function(n){return lTe(n)},get:function(n,o,r,s){var i=n[t.id];return i?i[yg(o)]:(s&&(i=U3e(t,n),i[yg(o)]=r),r)},kill:function(n,o){if(n&&n[o])try{delete n[o]}catch{}}};return t}var cTe="toGMTString",uTe="toUTCString",H3="cookie",F3="expires",O3="enabled",dTe="isCookieUseDisabled",pTe="disableCookiesUsage",Md="_ckMgr",pL=null,U3=null,mTe=null,gw=oo(),gTe={},gL={};function O3e(e,t){var n=Eg[Md]||gL[Md];return n||(n=Eg[Md]=Eg(e,t),gL[Md]=n),n}function mL(e){return e?e.isEnabled():!0}function q3e(e){var t=e[YP]=e[YP]||{};if(Bt(t,"domain",e.cookieDomain,d3,he),Bt(t,"path",e.cookiePath||"/",null,he),he(t[O3])){var n=void 0;In(e[dTe])||(n=!e[dTe]),In(e[pTe])||(n=!e[pTe]),t[O3]=n}return t}function _Te(e,t){return t&&e&&At(e.ignoreCookies)?e.ignoreCookies[Ed](t)!==-1:!1}function H3e(e,t){return t&&e&&At(e.blockedCookies)&&e.blockedCookies[Ed](t)!==-1?!0:_Te(e,t)}function Ag(e,t){var n;if(e)n=e.getCookieMgr();else if(t){var o=t[YP];o[Md]?n=o[Md]:n=Eg(t)}return n||(n=O3e(t,(e||{})[Go])),n}function Eg(e,t){var n,o=q3e(e||gL),r=o.path||"/",s=o.domain,i=o[O3]!==!1,a=(n={isEnabled:function(){var l=i&&q3(t),c=gL[Md];return l&&c&&a!==c&&(l=mL(c)),l}},n[ow]=function(l){i=l!==!1},n.set=function(l,c,u,p,m){var g=!1;if(mL(a)&&!H3e(o,l)){var f={},_=no(c||bt),h=_[Ed](";");if(h!==-1&&(_=no(c[Jb](0,h)),f=yTe(c[Jb](h+1))),Bt(f,"domain",p||s,o_,In),!he(u)){var T=a_();if(In(f[F3])){var x=Qo(),w=x+u*1e3;if(w>0){var I=new Date;I.setTime(w),Bt(f,F3,fTe(I,T?cTe:uTe)||fTe(I,T?cTe:uTe)||bt,o_)}}T||Bt(f,"max-age",bt+u,null,In)}var E=ms();E&&E.protocol==="https:"&&(Bt(f,"secure",null,null,In),U3===null&&(U3=!B3((Ur()||{})[Xb])),U3&&Bt(f,"SameSite","None",null,In)),Bt(f,"path",m||r,null,In);var Q=o.setCookie||bTe;Q(l,hTe(_,f)),g=!0}return g},n.get=function(l){var c=bt;return mL(a)&&!_Te(o,l)&&(c=(o.getCookie||B3e)(l)),c},n.del=function(l,c){var u=!1;return mL(a)&&(u=a.purge(l,c)),u},n.purge=function(l,c){var u,p=!1;if(q3(t)){var m=(u={},u.path=c||"/",u[F3]="Thu, 01 Jan 1970 00:00:01 GMT",u);a_()||(m["max-age"]="0");var g=o.delCookie||bTe;g(l,hTe(bt,m)),p=!0}return p},n);return a[Md]=a,a}function q3(e){if(pL===null){pL=!1;try{var t=gw||{};pL=t[H3]!==void 0}catch(n){Se(e,2,68,"Cannot access document.cookie - "+vt(n),{exception:ze(n)})}}return pL}function yTe(e){var t={};if(e&&e[st]){var n=no(e)[Ad](";");$e(n,function(o){if(o=no(o||bt),o){var r=o[Ed]("=");r===-1?t[o]=null:t[no(o[Jb](0,r))]=no(o[Jb](r+1))}})}return t}function fTe(e,t){return Xe(e[t])?e[t]():null}function hTe(e,t){var n=e||bt;return kt(t,function(o,r){n+="; "+o+(he(r)?bt:"="+r)}),n}function B3e(e){var t=bt;if(gw){var n=gw[H3]||bt;mTe!==n&&(gTe=yTe(n),mTe=n),t=no(gTe[e]||bt)}return t}function bTe(e,t){gw&&(gw[H3]=e+"="+t)}function B3(e){return We(e)?!!(Do(e,"CPU iPhone OS 12")||Do(e,"iPad; CPU OS 12")||Do(e,"Macintosh; Intel Mac OS X 10_14")&&Do(e,"Version/")&&Do(e,"Safari")||Do(e,"Macintosh; Intel Mac OS X 10_14")&&p3(e,"AppleWebKit/605.1.15 (KHTML, like Gecko)")||Do(e,"Chrome/5")||Do(e,"Chrome/6")||Do(e,"UnrealEngine")&&!Do(e,"Chrome")||Do(e,"UCBrowser/12")||Do(e,"UCBrowser/11")):!1}var ETe="on",vTe="attachEvent",xTe="addEventListener",TTe="detachEvent",wTe="removeEventListener",z3="events",G3="visibilitychange",_L="pagehide";var ATe="unload",kTe="beforeunload",ITe=cr("aiEvtPageHide"),$wt=cr("aiEvtPageShow"),z3e=/\.[\.]+/g,G3e=/[\.]+$/,V3e=1,fL=dL("events"),Q3e=/^([^.]*)(?:\.(.+)|)/;function STe(e){return e&&e[Ea]?e[Ea](/^[\s\.]+|(?=[\s\.])[\.\s]+$/g,bt):e}function V3(e,t){var n;if(t){var o=bt;At(t)?(o=bt,$e(t,function(s){s=STe(s),s&&(s[0]!=="."&&(s="."+s),o+=s)})):o=STe(t),o&&(o[0]!=="."&&(o="."+o),e=(e||bt)+o)}var r=Q3e.exec(e||bt)||[];return n={},n[Pl]=r[1],n.ns=(r[2]||bt).replace(z3e,".").replace(G3e,bt)[Ad](".").sort().join("."),n}function PTe(e,t,n){n===void 0&&(n=!0);var o=fL.get(e,z3,{},n),r=o[t];return r||(r=o[t]=[]),r}function LTe(e,t,n,o){e&&t&&t[Pl]&&(e[wTe]?e[wTe](t[Pl],n,o):e[TTe]&&e[TTe](ETe+t[Pl],n))}function Y3e(e,t,n,o){var r=!1;return e&&t&&t[Pl]&&n&&(e[xTe]?(e[xTe](t[Pl],n,o),r=!0):e[vTe]&&(e[vTe](ETe+t[Pl],n),r=!0)),r}function CTe(e,t,n,o){for(var r=t[st];r--;){var s=t[r];s&&(!n.ns||n.ns===s.evtName.ns)&&(!o||o(s))&&(LTe(e,s.evtName,s[KP],s.capture),t[Sa](r,1))}}function j3e(e,t,n){if(t[Pl])CTe(e,PTe(e,t[Pl]),t,n);else{var o=fL.get(e,z3,{});kt(o,function(r,s){CTe(e,s,t,n)}),ps(o)[st]===0&&fL.kill(e,z3)}}function oi(e,t){var n;return t?(At(t)?n=[e].concat(t):n=[e,t],n=V3("xx",n).ns[Ad](".")):n=e,n}function Di(e,t,n,o,r){var s;r===void 0&&(r=!1);var i=!1;if(e)try{var a=V3(t,o);if(i=Y3e(e,a,n,r),i&&fL.accept(e)){var l=(s={guid:V3e++,evtName:a},s[KP]=n,s.capture=r,s);PTe(e,a.type)[Tt](l)}}catch{}return i}function Dd(e,t,n,o,r){if(r===void 0&&(r=!1),e)try{var s=V3(t,o),i=!1;j3e(e,s,function(a){return s.ns&&!n||a[KP]===n?(i=!0,!0):!1}),i||LTe(e,s,n,r)}catch{}}function RTe(e,t,n){var o=!1,r=ni();r&&(o=Di(r,e,t,n),o=Di(r.body,e,t,n)||o);var s=oo();return s&&(o=Di(s,e,t,n)||o),o}function MTe(e,t,n){var o=ni();o&&(Dd(o,e,t,n),Dd(o.body,e,t,n));var r=oo();r&&Dd(r,e,t,n)}function hL(e,t,n,o){var r=!1;return t&&e&&e[st]>0&&$e(e,function(s){s&&(!n||Vo(n,s)===-1)&&(r=RTe(s,t,o)||r)}),r}function DTe(e,t,n,o){var r=!1;return t&&e&&At(e)&&(r=hL(e,t,n,o),!r&&n&&n[st]>0&&(r=hL(e,t,null,o))),r}function bL(e,t,n){e&&At(e)&&$e(e,function(o){o&&MTe(o,t,n)})}function Q3(e,t,n){return DTe([kTe,ATe,_L],e,t,n)}function Y3(e,t){bL([kTe,ATe,_L],e,t)}function fw(e,t,n){function o(i){var a=oo();e&&a&&a.visibilityState==="hidden"&&e(i)}var r=oi(ITe,n),s=hL([_L],e,t,r);return(!t||Vo(t,G3)===-1)&&(s=hL([G3],o,t,r)||s),!s&&t&&(s=fw(e,null,n)),s}function j3(e,t){var n=oi(ITe,t);bL([_L],e,n),bL([G3],null,n)}function gs(){for(var e=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],t=bt,n,o=0;o<4;o++)n=Cg(),t+=e[n&15]+e[n>>4&15]+e[n>>8&15]+e[n>>12&15]+e[n>>16&15]+e[n>>20&15]+e[n>>24&15]+e[n>>28&15];var r=e[8+(Cg()&3)|0];return t[kd](0,8)+t[kd](9,4)+"4"+t[kd](13,3)+r+t[kd](16,3)+t[kd](19,12)}var W3="00",J3e="ff",NTe="00000000000000000000000000000000",FTe="0000000000000000";function hw(e,t,n){return e&&e[st]===t&&e!==n?!!e.match(/^[\da-f]*$/):!1}function $Te(e,t,n){return hw(e,t)?e:n}function X3e(e){(isNaN(e)||e<0||e>255)&&(e=1);for(var t=e.toString(16);t[st]<2;)t="0"+t;return t}function bw(e,t,n,o){var r;return r={},r[o3]=hw(o,2,J3e)?o:W3,r[sw]=kg(e)?e:gs(),r.spanId=Ig(t)?t:gs()[kd](0,16),r.traceFlags=n>=0&&n<=255?n:1,r}function kg(e){return hw(e,32,NTe)}function Ig(e){return hw(e,16,FTe)}function _w(e){if(e){var t=X3e(e[iw]);hw(t,2)||(t="01");var n=e[o3]||W3;return n!=="00"&&n!=="ff"&&(n=W3),"".concat(n,"-").concat($Te(e.traceId,32,NTe),"-").concat($Te(e.spanId,16,FTe),"-").concat(t)}return""}var Z3e=dL("plugin");function Wc(e){return Z3e.get(e,"state",{},!0)}function yL(e,t){for(var n=[],o=null,r=e[Zs](),s;r;){var i=r[gg]();if(i){o&&Xe(o[Cd])&&Xe(i[ds])&&o[Cd](i);var a=!1;Xe(i[Js])?a=i[Js]():(s=Wc(i),a=s[Js]),a||n[Tt](i),o=i,r=r[Zs]()}}$e(n,function(l){var c=e[Fn]();l[Ta](e.getCfg(),c,t,e[Zs]()),s=Wc(l),!l[Fn]&&!s[Fn]&&(s[Fn]=c),s[Js]=!0,delete s[Xs]})}function vL(e){return e.sort(function(t,n){var o=0;if(n){var r=Xe(n[ds]);Xe(t[ds])?o=r?t[Pi]-n[Pi]:1:r&&(o=-1)}else o=t?1:-1;return o})}function UTe(e){var t={};return{getName:function(){return t[Sr]},setName:function(n){e&&e.setName(n),t[Sr]=n},getTraceId:function(){return t[sw]},setTraceId:function(n){e&&e.setTraceId(n),kg(n)&&(t[sw]=n)},getSpanId:function(){return t[XP]},setSpanId:function(n){e&&e.setSpanId(n),Ig(n)&&(t[XP]=n)},getTraceFlags:function(){return t[iw]},setTraceFlags:function(n){e&&e.setTraceFlags(n),t[iw]=n}}}var e4e="TelemetryPluginChain",OTe="_hasRun",qTe="_getTelCtx",HTe=0;function t4e(e,t,n){for(;e;){if(e[gg]()===n)return e;e=e[Zs]()}return Rl([n],t[kl]||{},t)}function K3(e,t,n,o){var r=null,s=[];o!==null&&(r=o?t4e(e,n,o):e);var i={_next:l,ctx:{core:function(){return n},diagLog:function(){return Ia(n,t)},getCfg:function(){return t},getExtCfg:c,getConfig:u,hasNext:function(){return!!r},getNext:function(){return r},setNext:function(m){r=m},iterate:p,onComplete:a}};function a(m,g){for(var f=[],_=2;_0&&($e(g,function(f){try{f.func[Mo](f.self,f.args)}catch(_){Se(n[Go],2,73,"Unexpected Exception during onComplete - "+ze(_))}}),s=[])}return m}function c(m,g,f){g===void 0&&(g={}),f===void 0&&(f=0);var _;if(t){var h=t[Zb];h&&m&&(_=h[m])}if(!_)_=g;else if(Cr(g)&&f!==0){var T=s_(!0,g,_);t&&f===2&&kt(g,function(x){if(he(T[x])){var w=t[x];he(w)||(T[x]=w)}}),_=T}return _}function u(m,g,f){f===void 0&&(f=!1);var _,h=c(m,null);return h&&!he(h[g])?_=h[g]:t&&!he(t[g])&&(_=t[g]),he(_)?f:_}function p(m){for(var g;g=i._next();){var f=g[gg]();f&&m(f)}}return i}function ur(e,t,n,o){var r=K3(e,t,n,o),s=r.ctx;function i(l){var c=r._next();return c&&c[ds](l,s),!c}function a(l,c){return l===void 0&&(l=null),At(l)&&(l=Rl(l,t,n,c)),ur(l||s[Zs](),t,n,c)}return s[_n]=i,s[Gc]=a,s}function u_(e,t,n){var o=t[kl]||{},r=K3(e,o,t,n),s=r.ctx;function i(l){var c=r._next();return c&&c.unload(s,l),!c}function a(l,c){return l===void 0&&(l=null),At(l)&&(l=Rl(l,o,t,c)),u_(l||s[Zs](),t,c)}return s[_n]=i,s[Gc]=a,s}function yw(e,t,n){var o=t[kl]||{},r=K3(e,o,t,n),s=r.ctx;function i(l){return s.iterate(function(c){Xe(c[fg])&&c[fg](s,l)})}function a(l,c){return l===void 0&&(l=null),At(l)&&(l=Rl(l,o,t,c)),yw(l||s[Zs](),t,c)}return s[_n]=i,s[Gc]=a,s}function Rl(e,t,n,o){var r=null,s=!o;if(At(e)&&e[st]>0){var i=null;$e(e,function(a){if(!s&&o===a&&(s=!0),s&&a&&Xe(a[ds])){var l=n4e(a,t,n);r||(r=l),i&&i._setNext(l),i=l}})}return o&&!r?Rl([o],t,n):r}function n4e(e,t,n){var o=null,r=Xe(e[ds]),s=Xe(e[Cd]),i;e?i=e[wa]+"-"+e[Pi]+"-"+HTe++:i="Unknown-0-"+HTe++;var a={getPlugin:function(){return e},getNext:function(){return o},processTelemetry:u,unload:p,update:m,_id:i,_setNext:function(g){o=g}};function l(){var g;return e&&Xe(e[qTe])&&(g=e[qTe]()),g||(g=ur(a,t,n)),g}function c(g,f,_,h,T){var x=!1,w=e?e[wa]:e4e,I=g[OTe];return I||(I=g[OTe]={}),g.setNext(o),e&&Rd(g[Fn](),function(){return w+":"+_},function(){I[i]=!0;try{var E=o?o._id:bt;E&&(I[E]=!1),x=f(g)}catch(O){var Q=o?I[o._id]:!0;Q&&(x=!0),(!o||!Q)&&Se(g[Ii](),1,73,"Plugin ["+w+"] failed during "+_+" - "+ze(O)+", run flags: "+ze(I))}},h,T),x}function u(g,f){f=f||l();function _(h){if(!e||!r)return!1;var T=Wc(e);return T[Xs]||T[aw]?!1:(s&&e[Cd](o),e[ds](g,h),!0)}c(f,_,"processTelemetry",function(){return{item:g}},!g.sync)||f[_n](g)}function p(g,f){function _(){var h=!1;if(e){var T=Wc(e),x=e[Fn]||T[Fn];e&&(!x||x===g.core())&&!T[Xs]&&(T[Fn]=null,T[Xs]=!0,T[Js]=!1,e[Xs]&&e[Xs](g,f)===!0&&(h=!0))}return h}c(g,_,"unload",function(){},f[Ca])||g[_n](f)}function m(g,f){function _(){var h=!1;if(e){var T=Wc(e),x=e[Fn]||T[Fn];e&&(!x||x===g.core())&&!T[Xs]&&e[fg]&&e[fg](g,f)===!0&&(h=!0)}return h}c(g,_,"update",function(){},!1)||g[_n](f)}return Ll(a)}var vw=500,o4e="Channel has invalid priority - ";function BTe(e,t,n){t&&At(t)&&t[st]>0&&(t=t.sort(function(o,r){return o[Pi]-r[Pi]}),$e(t,function(o){o[Pi]0&&$e(c,function(_){if(_&&_.queue[st]>0){var h=_.chain,T=u[Gc](h);T[mg](f),p(T)}else g--}),f()}function r(c,u){var p=u||{reason:0};return o(e,c,function(m){m[_n](p)},function(){c[_n](p)}),!0}function s(c,u){var p=u||{reason:0,isAsync:!1};return o(e,c,function(m){m[_n](p)},function(){c[_n](p),a=!1}),!0}function i(c){var u=null;return e&&e[st]>0&&$e(e,function(p){if(p&&p.queue[st]>0&&($e(p.queue,function(m){if(m[wa]===c)return u=m,-1}),u))return-1}),u}var a=!1,l={identifier:"ChannelControllerPlugin",priority:vw,initialize:function(c,u,p,m){a=!0,$e(e,function(g){g&&g.queue[st]>0&&yL(ur(g.chain,c,u),p)})},isInitialized:function(){return a},processTelemetry:function(c,u){o(e,u||n(),function(p){p[_n](c)},function(){u[_n](c)})},update:r,pause:function(){o(e,n(),function(c){c.iterate(function(u){u.pause&&u.pause()})},null)},resume:function(){o(e,n(),function(c){c.iterate(function(u){u.resume&&u.resume()})},null)},teardown:s,getChannel:i,flush:function(c,u,p,m){var g=1,f=!1,_=null;m=m||5e3;function h(){g--,f&&g===0&&(_&&(clearTimeout(_),_=null),u&&u(f),u=null)}return o(e,n(),function(T){T.iterate(function(x){if(x[jb]){g++;var w=!1;x[jb](c,function(){w=!0,h()},p)||w||(c&&_==null?_=setTimeout(function(){_=null,h()},m):h())}})},function(){f=!0,h()}),!0},_setQueue:function(c){e=c}};return l}function GTe(e,t,n){var o=[];if(e&&$e(e,function(s){return BTe(o,s,n)}),t){var r=[];$e(t,function(s){s[Pi]>vw&&r[Tt](s)}),BTe(o,r,n)}return o}function xL(){var e=[];function t(o){o&&e[Tt](o)}function n(o,r){$e(e,function(s){try{s(o,r)}catch(i){Se(o[Ii](),2,73,"Unexpected error calling unload handler - "+ze(i))}}),e=[]}return{add:t,run:n}}var $d="getPlugin",Pa=function(){function e(){var t=this,n,o,r,s,i;c(),dt(e,t,function(u){u[Ta]=function(p,m,g,f){l(p,m,f),n=!0},u[Xs]=function(p,m){var g,f=u[Fn];if(!f||p&&f!==p[Fn]())return;var _,h=!1,T=p||u_(null,f,r&&r[$d]?r[$d]():r),x=m||(g={reason:0},g[Ca]=!1,g);function w(){if(!h){h=!0,s.run(T,m);var I=i;i=[],$e(I,function(E){E.rm()}),_===!0&&T[_n](x),c()}}return!u[Kb]||u[Kb](T,x,w)!==!0?w():_=!0,_},u[fg]=function(p,m){var g=u[Fn];if(!g||p&&g!==p[Fn]())return;var f,_=!1,h=p||yw(null,g,r&&r[$d]?r[$d]():r),T=m||{reason:0};function x(){_||(_=!0,l(h.getCfg(),h.core(),h[Zs]()))}return!u._doUpdate||u._doUpdate(h,T,x)!==!0?x():f=!0,f},u._addHook=function(p){p&&(At(p)?i=i.concat(p):i[Tt](p))},r_(u,"_addUnloadCb",function(){return s},"add")}),t[Ii]=function(u){return a(u)[Ii]()},t[Js]=function(){return n},t.setInitialized=function(u){n=u},t[Cd]=function(u){r=u},t[_n]=function(u,p){p?p[_n](u):r&&Xe(r[ds])&&r[ds](u,null)},t._getTelCtx=a;function a(u){u===void 0&&(u=null);var p=u;if(!p){var m=o||ur(null,{},t[Fn]);r&&r[$d]?p=m[Gc](null,r[$d]):p=m[Gc](null,r)}return p}function l(u,p,m){u&&Bt(u,Zb,[],null,he),!m&&p&&(m=p[QP]()[Zs]());var g=r;r&&r[$d]&&(g=r[$d]()),t[Fn]=p,o=ur(m,u,p,g)}function c(){n=!1,t[Fn]=null,o=null,r=null,i=[],s=xL()}}return e.__ieDyn=1,e}();var VTe=function(e){zo(t,e);function t(){var n=e.call(this)||this;n.identifier="TelemetryInitializerPlugin",n.priority=199;var o,r;s(),dt(t,n,function(i,a){i.addTelemetryInitializer=function(l){var c={id:o++,fn:l};r[Tt](c);var u={remove:function(){$e(r,function(p,m){if(p.id===c.id)return r[Sa](m,1),-1})}};return u},i[ds]=function(l,c){for(var u=!1,p=r[st],m=0;m0){var B=o;o=[],$e(B,function(ae){de()[_n](ae)})}},O.pollInternalLogs=function(B){return h=B||null,Q=!1,E&&(clearInterval(E),E=null),ye(!0)};function ye(B){if(!E&&!Q){var ae=B||O[Go]&&O[Go].queue[st]>0;if(ae){var ve=ti(t.diagnosticLogInterval);(!ve||!(ve>0))&&(ve=1e4),E=setInterval(function(){clearInterval(E),E=0,Yt()},ve)}}return E}O[e3]=function(){Q=!0,E&&(clearInterval(E),E=0,Yt())},Vc(O,function(){return _},["addTelemetryInitializer"]),O.unload=function(B,ae,ve){var P;B===void 0&&(B=!0),n||Un(r4e),f&&Un(YTe);var Z=(P={reason:50},P[Ca]=B,P.flushComplete=!1,P),F=u_(Qt(),O);F[mg](function(){Ae(),ae&&ae(Z)},O);function ne(ie){Z.flushComplete=ie,f=!0,x.run(F,Z),O[e3](),F[_n](Z)}Yt(),Ft(B,ne,6,ve)||ne(!1)},O[gg]=qt,O.addPlugin=function(B,ae,ve,P){if(!B){P&&P(!1),ce(WTe);return}var Z=qt(B[wa]);if(Z&&!ae){P&&P(!1),ce("Plugin ["+B[wa]+"] is already loaded!");return}var F={reason:16};function ne(Le){c[Tt](B),F.added=[B],xt(F),P&&P(!0)}if(Z){var ie=[Z.plugin],Ie={reason:2,isAsync:!!ve};Ln(ie,Ie,function(Le){Le?(F.removed=ie,F.reason|=32,ne(!0)):P&&P(!1)})}else ne(!1)},O.evtNamespace=function(){return T},O[jb]=Ft,O.getTraceCtx=function(B){return I||(I=UTe()),I},O.setTraceCtx=function(B){I=B||null},r_(O,"addUnloadCb",function(){return x},"add");function Ae(){n=!1,t=s_(!0,{},s4e),O[kl]=t,O[Go]=new wg(t),O[nw]=[],_=new VTe,o=[],r=null,s=null,i=null,a=null,l=null,u=null,c=[],p=null,m=null,g=null,f=!1,h=null,T=cr("AIBaseCore",!0),x=xL(),I=null}function de(){var B=ur(Qt(),t,O);return B[mg](ye),B}function xt(B){var ae=a4e(O[Go],vw,c);u=ae[Fn],l=null;var ve=ae.all;if(g=Ll(GTe(m,ve,O)),p){var P=Vo(ve,p);P!==-1&&ve[Sa](P,1),P=Vo(u,p),P!==-1&&u[Sa](P,1),p._setQueue(g)}else p=zTe(g,O);ve[Tt](p),u[Tt](p),O[nw]=vL(ve),p[Ta](t,O,ve);var Z=de();yL(Z,ve),O[nw]=Ll(vL(u||[])).slice(),B&&U(B)}function qt(B){var ae,ve=null,P=null;return $e(O[nw],function(Z){if(Z[wa]===B&&Z!==p&&Z!==_)return P=Z,-1}),!P&&p&&(P=p.getChannel(B)),P&&(ve=(ae={plugin:P},ae[ow]=function(Z){Wc(P)[aw]=!Z},ae.isEnabled=function(){var Z=Wc(P);return!Z[Xs]&&!Z[aw]},ae.remove=function(Z,F){var ne;Z===void 0&&(Z=!0);var ie=[P],Ie=(ne={reason:1},ne[Ca]=Z,ne);Ln(ie,Ie,function(Le){Le&&xt({reason:32,removed:ie}),F&&F(Le)})},ae)),ve}function Qt(){if(!l){var B=(u||[]).slice();Vo(B,_)===-1&&B[Tt](_),l=Rl(vL(B),t,O)}return l}function Ln(B,ae,ve){if(B&&B[st]>0){var P=Rl(B,t,O),Z=u_(P,O);Z[mg](function(){var F=!1,ne=[];$e(c,function(Ie,Le){jTe(Ie,B)?F=!0:ne[Tt](Ie)}),c=ne;var ie=[];m&&($e(m,function(Ie,Le){var ht=[];$e(Ie,function(Lt){jTe(Lt,B)?F=!0:ht[Tt](Lt)}),ie[Tt](ht)}),m=ie),ve&&ve(F),ye()}),Z[_n](ae)}else ve(!1)}function Yt(){if(O[Go]&&O[Go].queue){var B=O[Go].queue.slice(0);O[Go].queue[st]=0,$e(B,function(ae){var ve,P=(ve={},ve[Sr]=h||"InternalMessageId: "+ae[Wb],ve.iKey=ti(t[VP]),ve.time=ei(new Date),ve.baseType=Yc.dataType,ve.baseData={message:ae[Sd]},ve);O.track(P)})}}function Ft(B,ae,ve,P){return p?p[jb](B,ae,ve||6,P):(ae&&ae(!1),!0)}function vn(){var B=ti(t.disableDbgExt);B===!0&&w&&(r[pg](w),w=null),r&&!w&&B!==!0&&(w=tTe(t),r[dg](w))}function it(){var B=ti(t.enablePerfMgr);!B&&i&&(i=null),B&&Vn(t,s3,i4e)}function Ne(){var B=Vn(t,Zb,{});B.NotificationManager=r}function U(B){var ae=yw(Qt(),O);ae[mg](ye),(!O._updateHook||O._updateHook(ae,B)!==!0)&&ae[_n](B)}function ce(B){var ae=O[Go];ae?(Se(ae,2,73,B),ye()):Un(B)}})}return e.__ieDyn=1,e}();function TL(e,t,n,o){$e(e,function(r){if(r&&r[t])if(n)setTimeout(function(){return o(r)},0);else try{o(r)}catch{}})}var JTe=function(){function e(t){this.listeners=[];var n=!!(t||{}).perfEvtsSendAll;dt(e,this,function(o){o[dg]=function(r){o.listeners[Tt](r)},o[pg]=function(r){for(var s=Vo(o[hg],r);s>-1;)o.listeners[Sa](s,1),s=Vo(o[hg],r)},o[e_]=function(r){TL(o[hg],e_,!0,function(s){s[e_](r)})},o[Id]=function(r,s){TL(o[hg],Id,!0,function(i){i[Id](r,s)})},o[t_]=function(r,s){TL(o[hg],t_,s,function(i){i[t_](r,s)})},o[Pd]=function(r){r&&(n||!r[rw]())&&TL(o[hg],Pd,!1,function(s){r[Ca]?setTimeout(function(){return s[Pd](r)},0):s[Pd](r)})}})}return e.__ieDyn=1,e}();var J3=function(e){zo(t,e);function t(){var n=e.call(this)||this;return dt(t,n,function(o,r){o[Ta]=function(a,l,c,u){r[Ta](a,l,c||new wg(a),u||new JTe(a))},o.track=function(a){Rd(o[_g](),function(){return"AppInsightsCore:track"},function(){a===null&&(i(a),Un("Invalid telemetry item")),s(a),r.track(a)},function(){return{item:a}},!a.sync)};function s(a){he(a[Sr])&&(i(a),Un("telemetry name required"))}function i(a){var l=o[tw]();l&&l[Id]([a],2)}}),n}return t.__ieDyn=1,t}(KTe);var XTe="_aiHooks",ZTe=["req","rsp","hkErr","fnErr"];function Z3(e,t){if(e)for(var n=0;n=0&&r<=2&&Z3(e,function(s,i){var a=s.cbks,l=a[ZTe[r]];if(l){t.ctx=function(){var p=o[i]=o[i]||{};return p};try{l[Il](t.inst,n)}catch(p){var c=t.err;try{var u=a[ZTe[2]];u&&(t.err=p,u[Il](t.inst,n))}catch{}finally{t.err=c}}}})}function c4e(e){return function(){var t,n=this,o=arguments,r=e.h,s=(t={},t[Sr]=e.n,t.inst=n,t.ctx=null,t.set=c,t),i=[],a=l([s],o);s.evt=On("event");function l(p,m){return Z3(m,function(g){p[Tt](g)}),p}function c(p,m){o=l([],o),o[p]=m,a=l([s],o)}X3(r,s,a,i,0);var u=e.f;if(u)try{s.rslt=u[Il](n,o)}catch(p){throw s.err=p,X3(r,s,a,i,3),p}return X3(r,s,a,i,1),s.rslt}}function e4(e,t,n,o){var r=null;return e&&(nL(e,t)?r=e:n&&(r=e4(u3(e),t,o,!1))),r}function t4(e,t,n){return e?xw(e[Nn],t,n,!1):null}function ewe(e,t,n,o){var r=n&&n[XTe];if(!r){r={i:0,n:t,f:n,h:[]};var s=c4e(r);s[XTe]=r,e[t]=s}var i={id:r.i,cbks:o,rm:function(){var a=this.id;Z3(r.h,function(l,c){if(l.id===a)return r.h[Sa](c,1),1})}};return r.i++,r.h[Tt](i),i}function xw(e,t,n,o,r){if(o===void 0&&(o=!0),e&&t&&n){var s=e4(e,t,o,r);if(s){var i=s[t];if(typeof i===Ai)return ewe(s,t,i,n)}}return null}function d_(e,t,n,o,r){if(e&&t&&n){var s=e4(e,t,o,r)||e;if(s)return ewe(s,t,s[t],n)}return null}var La="Microsoft_ApplicationInsights_BypassAjaxInstrumentation",p_="sampleRate",m_="ProcessLegacy",Tw="http.method",Nd="https://dc.services.visualstudio.com",Kc="/v2/track",ro="not_specified",wL="iKey";function Pg(e){var t=null;if(Xe(Event))t=new Event(e);else{var n=oo();n&&n.createEvent&&(t=n.createEvent("Event"),t.initEvent(e,!0,!0))}return t}var Jc="split",pt="length",Ml="toLowerCase",ww="ingestionendpoint",Ra="toString",SL="removeItem",fo="name",Xc="message",twe="count";var Sw="stringify",Cw="pathname",n4="correlationHeaderExcludePatterns",g_="indexOf";var Lg="exceptions",$i="parsedStack",Er="properties",Ar="measurements",Rg="sizeInBytes",Dl="typeName",Mg="severityLevel",CL="problemGroup",EL="isManual",o4="CreateFromInterface",Dg="assembly",Ew="hasFullStack",Aw="level",$g="method",f_="fileName",h_="line",Ng="duration",r4="receivedResponse",Fg="substring",nwe="sanitizeKeyAndAddUniqueness",owe="sanitizeException",rwe="sanitizeProperties",swe="sanitizeMeasurements";var kw="";function Ni(e,t){return t===void 0&&(t=!1),e==null?t:e.toString()[Ml]()==="true"}function ri(e){(isNaN(e)||e<0)&&(e=0),e=Math.round(e);var t=kw+e%1e3,n=kw+Math.floor(e/1e3)%60,o=kw+Math.floor(e/(1e3*60))%60,r=kw+Math.floor(e/(1e3*60*60))%24,s=Math.floor(e/(1e3*60*60*24));return t=t[pt]===1?"00"+t:t[pt]===2?"0"+t:t,n=n[pt]<2?"0"+n:n,o=o[pt]<2?"0"+o:o,r=r[pt]<2?"0"+r:r,(s>0?s+".":kw)+r+":"+o+":"+n+"."+t}function s4(e,t,n,o,r){return!r&&We(e)&&(e==="Script error."||e==="Script error")}var rn=h3({requestContextHeader:[0,"Request-Context"],requestContextTargetKey:[1,"appId"],requestContextAppIdFormat:[2,"appId=cid-v1:"],requestIdHeader:[3,"Request-Id"],traceParentHeader:[4,"traceparent"],traceStateHeader:[5,"tracestate"],sdkContextHeader:[6,"Sdk-Context"],sdkContextHeaderAppIdRequest:[7,"appId"],requestContextHeaderLowerCase:[8,"request-context"]});var b_=rL({LocalStorage:0,SessionStorage:1}),x4e=rL({AI:0,AI_AND_W3C:1,W3C:2});var Fd=void 0,Ud=void 0;function i4(){return Iw()?AL(b_.LocalStorage):null}function AL(e){try{if(he(ki()))return null;var t=new Date()[Ra](),n=On(e===b_.LocalStorage?"localStorage":"sessionStorage");n.setItem(t,t);var o=n.getItem(t)!==t;if(n[SL](t),!o)return n}catch{}return null}function a4(){return Od()?AL(b_.SessionStorage):null}function l4(){Fd=!1,Ud=!1}function c4(){Fd=Iw(!0),Ud=Od(!0)}function Iw(e){return(e||Fd===void 0)&&(Fd=!!AL(b_.LocalStorage)),Fd}function u4(e,t){var n=i4();if(n!==null)try{return n.getItem(t)}catch(o){Fd=!1,Se(e,2,1,"Browser failed read of local storage. "+vt(o),{exception:ze(o)})}return null}function d4(e,t,n){var o=i4();if(o!==null)try{return o.setItem(t,n),!0}catch(r){Fd=!1,Se(e,2,3,"Browser failed write to local storage. "+vt(r),{exception:ze(r)})}return!1}function p4(e,t){var n=i4();if(n!==null)try{return n[SL](t),!0}catch(o){Fd=!1,Se(e,2,5,"Browser failed removal of local storage item. "+vt(o),{exception:ze(o)})}return!1}function Od(e){return(e||Ud===void 0)&&(Ud=!!AL(b_.SessionStorage)),Ud}function __(e,t){var n=a4();if(n!==null)try{return n.getItem(t)}catch(o){Ud=!1,Se(e,2,2,"Browser failed read of session storage. "+vt(o),{exception:ze(o)})}return null}function Pw(e,t,n){var o=a4();if(o!==null)try{return o.setItem(t,n),!0}catch(r){Ud=!1,Se(e,2,4,"Browser failed write to session storage. "+vt(r),{exception:ze(r)})}return!1}function m4(e,t){var n=a4();if(n!==null)try{return n[SL](t),!0}catch(o){Ud=!1,Se(e,2,6,"Browser failed removal of session storage item. "+vt(o),{exception:ze(o)})}return!1}var fs;function kL(e,t,n){var o=t[pt],r=g4(e,t);if(r[pt]!==o){for(var s=0,i=r;n[i]!==void 0;)s++,i=r[Fg](0,147)+f4(s);r=i}return r}function g4(e,t){var n;return t&&(t=no(t[Ra]()),t[pt]>150&&(n=t[Fg](0,150),Se(e,2,57,"name is too long. It has been truncated to 150 characters.",{name:t},!0))),n||t}function jt(e,t,n){n===void 0&&(n=1024);var o;return t&&(n=n||1024,t=no(t),t.toString()[pt]>n&&(o=t[Ra]()[Fg](0,n),Se(e,2,61,"string value is too long. It has been truncated to "+n+" characters.",{value:t},!0))),o||t}function $l(e,t){return LL(e,t,2048,66)}function y_(e,t){var n;return t&&t[pt]>32768&&(n=t[Fg](0,32768),Se(e,2,56,"message is too long, it has been truncated to 32768 characters.",{message:t},!0)),n||t}function IL(e,t){var n;if(t){var o=""+t;o[pt]>32768&&(n=o[Fg](0,32768),Se(e,2,52,"exception is too long, it has been truncated to 32768 characters.",{exception:t},!0))}return n||t}function kr(e,t){if(t){var n={};kt(t,function(o,r){if(Cr(r)&&ka())try{r=$o()[Sw](r)}catch(s){Se(e,2,49,"custom property is not valid",{exception:s},!0)}r=jt(e,r,8192),o=kL(e,o,n),n[o]=r}),t=n}return t}function Ir(e,t){if(t){var n={};kt(t,function(o,r){o=kL(e,o,n),n[o]=r}),t=n}return t}function PL(e,t){return t&&LL(e,t,128,69)[Ra]()}function LL(e,t,n,o){var r;return t&&(t=no(t),t[pt]>n&&(r=t[Fg](0,n),Se(e,2,o,"input is too long, it has been truncated to "+n+" characters.",{data:t},!0))),r||t}function f4(e){var t="00"+e;return t.substr(t[pt]-3)}var iwe=(fs={MAX_NAME_LENGTH:150,MAX_ID_LENGTH:128,MAX_PROPERTY_LENGTH:8192,MAX_STRING_LENGTH:1024,MAX_URL_LENGTH:2048,MAX_MESSAGE_LENGTH:32768,MAX_EXCEPTION_LENGTH:32768},fs[nwe]=kL,fs.sanitizeKey=g4,fs.sanitizeString=jt,fs.sanitizeUrl=$l,fs.sanitizeMessage=y_,fs[owe]=IL,fs[rwe]=kr,fs[swe]=Ir,fs.sanitizeId=PL,fs.sanitizeInput=LL,fs.padNumber=f4,fs.trim=no,fs);var awe=oo()||{},lwe=0,T4e=[null,null,null,null,null];function Lw(e){var t=lwe,n=T4e,o=n[t];return awe.createElement?n[t]||(o=n[t]=awe.createElement("a")):o={host:h4(e,!0)},o.href=e,t++,t>=n[pt]&&(t=0),lwe=t,o}function RL(e){var t,n=Lw(e);return n&&(t=n.href),t}function ML(e,t){return e?e.toUpperCase()+" "+t:t}function h4(e,t){var n=DL(e,t)||"";if(n){var o=n.match(/(www\d{0,5}\.)?([^\/:]{1,256})(:\d{1,20})?/i);if(o!=null&&o[pt]>3&&We(o[2])&&o[2][pt]>0)return o[2]+(o[3]||"")}return n}function DL(e,t){var n=null;if(e){var o=e.match(/(\w{1,150}):\/\/([^\/:]{1,256})(:\d{1,20})?/i);if(o!=null&&o[pt]>2&&We(o[2])&&o[2][pt]>0&&(n=o[2]||"",t&&o[pt]>2)){var r=(o[1]||"")[Ml](),s=o[3]||"";(r==="http"&&s===":80"||r==="https"&&s===":443")&&(s=""),n+=s}}return n}var S4e=[Nd+Kc,"https://breeze.aimon.applicationinsights.io"+Kc,"https://dc-int.services.visualstudio.com"+Kc];function Ug(e){return Vo(S4e,e[Ml]())!==-1}var Zc={correlationIdPrefix:"cid-v1:",canIncludeCorrelationHeader:function(e,t,n){if(!t||e&&e.disableCorrelationHeaders)return!1;if(e&&e[n4]){for(var o=0;o0},getCorrelationContext:function(e){if(e){var t=Zc.getCorrelationContextValue(e,rn[1]);if(t&&t!==Zc.correlationIdPrefix)return t}},getCorrelationContextValue:function(e,t){if(e)for(var n=e[Jc](","),o=0;o0){var a=Lw(t);if(r=a.host,!s)if(a[Cw]!=null){var l=a.pathname[pt]===0?"/":a[Cw];l.charAt(0)!=="/"&&(l="/"+l),i=a[Cw],s=jt(e,n?n+" "+l:l)}else s=jt(e,t)}else r=o,s=o;return{target:r,name:s,data:i}}function v_(){var e=Ri();if(e&&e.now&&e.timing){var t=e.now()+e.timing.navigationStart;if(t>0)return t}return Qo()}function No(e,t){var n=null;return e!==0&&t!==0&&!he(e)&&!he(t)&&(n=t-e),n}function Og(e,t){var n=e||{};return{getName:function(){return n[fo]},setName:function(o){t&&t.setName(o),n[fo]=o},getTraceId:function(){return n.traceID},setTraceId:function(o){t&&t.setTraceId(o),kg(o)&&(n.traceID=o)},getSpanId:function(){return n.parentID},setSpanId:function(o){t&&t.setSpanId(o),Ig(o)&&(n.parentID=o)},getTraceFlags:function(){return n.traceFlags},setTraceFlags:function(o){t&&t.setTraceFlags(o),n.traceFlags=o}}}var C4e=";",E4e="=";function b4(e){if(!e)return{};var t=e[Jc](C4e),n=m3(t,function(r,s){var i=s[Jc](E4e);if(i[pt]===2){var a=i[0][Ml](),l=i[1];r[a]=l}return r},{});if(ps(n)[pt]>0){if(n.endpointsuffix){var o=n.location?n.location+".":"";n[ww]=n[ww]||"https://"+o+"dc."+n.endpointsuffix}n[ww]=n[ww]||Nd}return n}var $L=function(){function e(t,n,o){var r=this,s=this;s.ver=1,s.sampleRate=100,s.tags={},s[fo]=jt(t,o)||ro,s.data=n,s.time=ei(new Date),s.aiDataContract={time:1,iKey:1,name:1,sampleRate:function(){return r.sampleRate===100?4:1},tags:1,data:1}}return e}();var si=function(){function e(t,n,o,r){this.aiDataContract={ver:1,name:1,properties:0,measurements:0};var s=this;s.ver=2,s[fo]=jt(t,n)||ro,s[Er]=kr(t,o),s[Ar]=Ir(t,r)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.Event",e.dataType="EventData",e}();var A4e="",x_="error",hs="stack",y4="stackDetails",uwe="errorSrc",v4="message",mwe="description";function x4(e,t){var n=e;return n&&!We(n)&&(JSON&&JSON[Sw]?(n=JSON[Sw](e),t&&(!n||n==="{}")&&(Xe(e[Ra])?n=e[Ra]():n=""+e)):n=""+e+" - (Missing JSON.stringify)"),n||""}function gwe(e,t){var n=e;return e&&(n&&!We(n)&&(n=e[v4]||e[mwe]||n),n&&!We(n)&&(n=x4(n,!0)),e.filename&&(n=n+" @"+(e.filename||"")+":"+(e.lineno||"?")+":"+(e.colno||"?"))),t&&t!=="String"&&t!=="Object"&&t!=="Error"&&(n||"")[g_](t)===-1&&(n=t+": "+n),n||""}function k4e(e){try{if(Cr(e))return"hasFullStack"in e&&"typeName"in e}catch{}return!1}function I4e(e){try{if(Cr(e))return"ver"in e&&"exceptions"in e&&"properties"in e}catch{}return!1}function dwe(e){return e&&e.src&&We(e.src)&&e.obj&&At(e.obj)}function qg(e){var t=e||"";We(t)||(We(t[hs])?t=t[hs]:t=""+t);var n=t[Jc](` `);return{src:t,obj:n}}function P4e(e){for(var t=[],n=e[Jc](` `),o=0;o0){t=[];var o=0,r=0;$e(n,function(f){var _=f[Ra]();if(T4.regex.test(_)){var h=new T4(_,o++);r+=h[Rg],t.push(h)}});var s=32*1024;if(r>s)for(var i=0,a=t[pt]-1,l=0,c=i,u=a;is){var g=u-c+1;t.splice(c,g);break}c=i,u=a,i++,a--}}return t}function NL(e){var t="";if(e&&(t=e.typeName||e[fo]||"",!t))try{var n=/function (.{1,200})\(/,o=n.exec(e.constructor[Ra]());t=o&&o[pt]>1?o[1]:""}catch{}return t}function _4(e){if(e)try{if(!We(e)){var t=NL(e),n=x4(e,!1);return(!n||n==="{}")&&(e[x_]&&(e=e[x_],t=NL(e)),n=x4(e,!0)),n[g_](t)!==0&&t!=="String"?t+":"+n:n}}catch{}return""+(e||"")}var dr=function(){function e(t,n,o,r,s,i){this.aiDataContract={ver:1,exceptions:1,severityLevel:0,properties:0,measurements:0};var a=this;a.ver=2,I4e(n)?(a[Lg]=n[Lg]||[],a[Er]=n[Er],a[Ar]=n[Ar],n[Mg]&&(a[Mg]=n[Mg]),n.id&&(a.id=n.id),n[CL]&&(a[CL]=n[CL]),he(n[EL])||(a[EL]=n[EL])):(o||(o={}),a[Lg]=[new pwe(t,n,o)],a[Er]=kr(t,o),a[Ar]=Ir(t,r),s&&(a[Mg]=s),i&&(a.id=i))}return e.CreateAutoException=function(t,n,o,r,s,i,a,l){var c,u=NL(s||i||t);return c={},c[Xc]=gwe(t,u),c.url=n,c.lineNumber=o,c.columnNumber=r,c.error=_4(s||i||t),c.evt=_4(i||t),c[Dl]=u,c.stackDetails=fwe(a||s||i),c.errorSrc=l,c},e.CreateFromInterface=function(t,n,o,r){var s=n[Lg]&&xg(n[Lg],function(a){return pwe[o4](t,a)}),i=new e(t,to(to({},n),{exceptions:s}),o,r);return i},e.prototype.toInterface=function(){var t,n=this,o=n.exceptions,r=n.properties,s=n.measurements,i=n.severityLevel,a=n.problemGroup,l=n.id,c=n.isManual,u=o instanceof Array&&xg(o,function(p){return p.toInterface()})||void 0;return t={ver:"4.0"},t[Lg]=u,t.severityLevel=i,t.properties=r,t.measurements=s,t.problemGroup=a,t.id=l,t.isManual=c,t},e.CreateSimpleException=function(t,n,o,r,s,i){var a;return{exceptions:[(a={},a[Ew]=!0,a.message=t,a.stack=s,a.typeName=n,a)]}},e.envelopeType="Microsoft.ApplicationInsights.{0}.Exception",e.dataType="ExceptionData",e.formatError=_4,e}();var pwe=function(){function e(t,n,o){this.aiDataContract={id:0,outerId:0,typeName:1,message:1,hasFullStack:0,stack:0,parsedStack:2};var r=this;if(k4e(n))r[Dl]=n[Dl],r[Xc]=n[Xc],r[hs]=n[hs],r[$i]=n[$i]||[],r[Ew]=n[Ew];else{var s=n,i=s&&s.evt;vg(s)||(s=s[x_]||i||s),r[Dl]=jt(t,NL(s))||ro,r[Xc]=y_(t,gwe(n||s,r[Dl]))||ro;var a=n[y4]||fwe(n);r[$i]=R4e(a),At(r[$i])&&xg(r[$i],function(l){return l[Dg]=jt(t,l[Dg])}),r[hs]=IL(t,L4e(a)),r.hasFullStack=At(r.parsedStack)&&r.parsedStack[pt]>0,o&&(o[Dl]=o[Dl]||r[Dl])}}return e.prototype.toInterface=function(){var t,n=this,o=n[$i]instanceof Array&&xg(n[$i],function(s){return s.toInterface()}),r=(t={id:n.id,outerId:n.outerId,typeName:n[Dl],message:n[Xc],hasFullStack:n[Ew],stack:n[hs]},t[$i]=o||void 0,t);return r},e.CreateFromInterface=function(t,n){var o=n[$i]instanceof Array&&xg(n[$i],function(s){return T4[o4](s)})||n[$i],r=new e(t,to(to({},n),{parsedStack:o}));return r},e}();var T4=function(){function e(t,n){this.aiDataContract={level:1,method:1,assembly:0,fileName:0,line:0};var o=this;if(o[Rg]=0,typeof t=="string"){var r=t;o[Aw]=n,o[$g]=A4e,o[Dg]=no(r),o[f_]="",o[h_]=0;var s=r.match(e.regex);s&&s[pt]>=5&&(o[$g]=no(s[2])||o[$g],o[f_]=no(s[4]),o[h_]=parseInt(s[5])||0)}else o[Aw]=t[Aw],o[$g]=t[$g],o[Dg]=t[Dg],o[f_]=t[f_],o[h_]=t[h_],o[Rg]=0;o.sizeInBytes+=o.method[pt],o.sizeInBytes+=o.fileName[pt],o.sizeInBytes+=o.assembly[pt],o[Rg]+=e.baseSize,o.sizeInBytes+=o.level.toString()[pt],o.sizeInBytes+=o.line.toString()[pt]}return e.CreateFromInterface=function(t){return new e(t,null)},e.prototype.toInterface=function(){var t=this;return{level:t[Aw],method:t[$g],assembly:t[Dg],fileName:t[f_],line:t[h_]}},e.regex=/^([\s]+at)?[\s]{0,50}([^\@\()]+?)[\s]{0,50}(\@|\()([^\(\n]+):([0-9]+):([0-9]+)(\)?)$/,e.baseSize=58,e}();var hwe=function(){function e(){this.aiDataContract={name:1,kind:0,value:1,count:0,min:0,max:0,stdDev:0},this.kind=0}return e}();var ii=function(){function e(t,n,o,r,s,i,a,l,c){this.aiDataContract={ver:1,metrics:1,properties:0};var u=this;u.ver=2;var p=new hwe;p[twe]=r>0?r:void 0,p.max=isNaN(i)||i===null?void 0:i,p.min=isNaN(s)||s===null?void 0:s,p[fo]=jt(t,n)||ro,p.value=o,p.stdDev=isNaN(a)||a===null?void 0:a,u.metrics=[p],u[Er]=kr(t,l),u[Ar]=Ir(t,c)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.Metric",e.dataType="MetricData",e}();var Or=function(){function e(t,n,o,r,s,i,a){this.aiDataContract={ver:1,name:0,url:0,duration:0,properties:0,measurements:0,id:0};var l=this;l.ver=2,l.id=PL(t,a),l.url=$l(t,o),l[fo]=jt(t,n)||ro,isNaN(r)||(l[Ng]=ri(r)),l[Er]=kr(t,s),l[Ar]=Ir(t,i)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.Pageview",e.dataType="PageviewData",e}();var ai=function(){function e(t,n,o,r,s,i,a,l,c,u,p,m){c===void 0&&(c="Ajax"),this.aiDataContract={id:1,ver:1,name:0,resultCode:0,duration:0,success:0,data:0,target:0,type:0,properties:0,measurements:0,kind:0,value:0,count:0,min:0,max:0,stdDev:0,dependencyKind:0,dependencySource:0,commandName:0,dependencyTypeName:0};var g=this;g.ver=2,g.id=n,g[Ng]=ri(s),g.success=i,g.resultCode=a+"",g.type=jt(t,c);var f=cwe(t,o,l,r);g.data=$l(t,r)||f.data,g.target=jt(t,f.target),u&&(g.target="".concat(g.target," | ").concat(u)),g[fo]=jt(t,f[fo]),g[Er]=kr(t,p),g[Ar]=Ir(t,m)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.RemoteDependency",e.dataType="RemoteDependencyData",e}();var Ma=function(){function e(t,n,o,r,s){this.aiDataContract={ver:1,message:1,severityLevel:0,properties:0};var i=this;i.ver=2,n=n||ro,i[Xc]=y_(t,n),i[Er]=kr(t,r),i[Ar]=Ir(t,s),o&&(i[Mg]=o)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.Message",e.dataType="MessageData",e}();var Da=function(){function e(t,n,o,r,s,i,a){this.aiDataContract={ver:1,name:0,url:0,duration:0,perfTotal:0,networkConnect:0,sentRequest:0,receivedResponse:0,domProcessing:0,properties:0,measurements:0};var l=this;l.ver=2,l.url=$l(t,o),l[fo]=jt(t,n)||ro,l[Er]=kr(t,s),l[Ar]=Ir(t,i),a&&(l.domProcessing=a.domProcessing,l[Ng]=a[Ng],l.networkConnect=a.networkConnect,l.perfTotal=a.perfTotal,l[r4]=a[r4],l.sentRequest=a.sentRequest)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.PageviewPerformance",e.dataType="PageviewPerformanceData",e}();var Nl=function(){function e(t,n){this.aiDataContract={baseType:1,baseData:1},this.baseType=t,this.baseData=n}return e}();function Hd(e){var t="ai."+e+".";return function(n){return t+n}}var Rw=Hd("application"),Fo=Hd("device"),FL=Hd("location"),T_=Hd("operation"),w4=Hd("session"),qd=Hd("user"),Hg=Hd("cloud"),Mw=Hd("internal"),w_=function(e){zo(t,e);function t(){return e.call(this)||this}return t}(f3({applicationVersion:Rw("ver"),applicationBuild:Rw("build"),applicationTypeId:Rw("typeId"),applicationId:Rw("applicationId"),applicationLayer:Rw("layer"),deviceId:Fo("id"),deviceIp:Fo("ip"),deviceLanguage:Fo("language"),deviceLocale:Fo("locale"),deviceModel:Fo("model"),deviceFriendlyName:Fo("friendlyName"),deviceNetwork:Fo("network"),deviceNetworkName:Fo("networkName"),deviceOEMName:Fo("oemName"),deviceOS:Fo("os"),deviceOSVersion:Fo("osVersion"),deviceRoleInstance:Fo("roleInstance"),deviceRoleName:Fo("roleName"),deviceScreenResolution:Fo("screenResolution"),deviceType:Fo("type"),deviceMachineName:Fo("machineName"),deviceVMName:Fo("vmName"),deviceBrowser:Fo("browser"),deviceBrowserVersion:Fo("browserVersion"),locationIp:FL("ip"),locationCountry:FL("country"),locationProvince:FL("province"),locationCity:FL("city"),operationId:T_("id"),operationName:T_("name"),operationParentId:T_("parentId"),operationRootId:T_("rootId"),operationSyntheticSource:T_("syntheticSource"),operationCorrelationVector:T_("correlationVector"),sessionId:w4("id"),sessionIsFirst:w4("isFirst"),sessionIsNew:w4("isNew"),userAccountAcquisitionDate:qd("accountAcquisitionDate"),userAccountId:qd("accountId"),userAgent:qd("userAgent"),userId:qd("id"),userStoreRegion:qd("storeRegion"),userAuthUserId:qd("authUserId"),userAnonymousUserAcquisitionDate:qd("anonUserAcquisitionDate"),userAuthenticatedUserAcquisitionDate:qd("authUserAcquisitionDate"),cloudName:Hg("name"),cloudRole:Hg("role"),cloudRoleVer:Hg("roleVer"),cloudRoleInstance:Hg("roleInstance"),cloudEnvironment:Hg("environment"),cloudLocation:Hg("location"),cloudDeploymentUnit:Hg("deploymentUnit"),internalNodeName:Mw("nodeName"),internalSdkVersion:Mw("sdkVersion"),internalAgentVersion:Mw("agentVersion"),internalSnippet:Mw("snippet"),internalSdkSrc:Mw("sdkSrc")}));function Fi(e,t,n,o,r,s){var i;n=jt(o,n)||ro,(he(e)||he(t)||he(n))&&Un("Input doesn't contain all required fields");var a="";e[wL]&&(a=e[wL],delete e[wL]);var l=(i={},i[fo]=n,i.time=ei(new Date),i.iKey=a,i.ext=s||{},i.tags=[],i.data={},i.baseType=t,i.baseData=e,i);return he(r)||kt(r,function(c,u){l.data[c]=u}),l}var bwe=function(){function e(){}return e.create=Fi,e}();var pr={UserExt:"user",DeviceExt:"device",TraceExt:"trace",WebExt:"web",AppExt:"app",OSExt:"os",SessionExt:"ses",SDKExt:"sdk"},sn=new w_;var Bd="AppInsightsPropertiesPlugin",Dw="AppInsightsChannelPlugin",S4="ApplicationInsightsAnalytics";var $w="toString",UL="disableExceptionTracking",Nw="autoTrackPageVisitTime",OL="overridePageViewDuration",qL="enableUnhandledPromiseRejectionTracking",Fw="samplingPercentage",Uw="isStorageUseDisabled",Ow="isBrowserLinkTrackingEnabled",HL="enableAutoRouteTracking",BL="namePrefix",zL="disableFlushOnBeforeUnload";var Yo="core",eu="dataType",zd="envelopeType",bs="diagLog",Gd="track",S_="trackPageView",qw="trackPreviousPageVisit",tu="sendPageViewInternal",Hw="sendPageViewPerformanceInternal",C_="populatePageViewPerformanceEvent",Vd="href",C4="sendExceptionInternal",GL="exception",E_="error",VL="_onerror",QL="errorSrc",YL="lineNumber",jL="columnNumber",E4="message",WL="CreateAutoException",Bw="addTelemetryInitializer",Fl="duration",Qd="length",KL="isPerformanceTimingSupported",JL="getPerformanceTiming",A_="navigationStart",zw="shouldCollectDuration",XL="isPerformanceTimingDataReady",_we="getEntriesByType",k_="responseStart",ywe="requestStart",Gw="loadEventEnd",ZL="responseEnd",Vw="connectEnd",A4="pageVisitStartTime";var eR=null;function F4e(){if(eR==null)try{eR=!!(self&&self instanceof WorkerGlobalScope)}catch{eR=!1}return eR}var vwe=function(){function e(t,n,o,r){dt(e,this,function(s){var i=null,a=[],l=!1,c;o&&(c=o.logger);function u(g){o&&o.flush(g)}function p(){i||(i=setTimeout(function(){i=null;var g=a.slice(0),f=!1;a=[],$e(g,function(_){_()?f=!0:a.push(_)}),a[Qd]>0&&p(),f&&u(!0)},100))}function m(g){a.push(g),p()}s[S_]=function(g,f){var _=g.name;if(he(_)||typeof _!="string"){var h=oo();_=g.name=h&&h.title||""}var T=g.uri;if(he(T)||typeof T!="string"){var x=ms();T=g.uri=x&&x[Vd]||""}if(!r[KL]()){t[tu](g,f),u(!0),F4e()||Se(c,2,25,"trackPageView: navigation timing API used for calculation of page duration is not supported in this browser. This page view will be collected without duration and timing info.");return}var w=!1,I,E=r[JL]()[A_];E>0&&(I=No(E,+new Date),r[zw](I)||(I=void 0));var Q;!he(f)&&!he(f[Fl])&&(Q=f[Fl]),(n||!isNaN(Q))&&(isNaN(Q)&&(f||(f={}),f[Fl]=I),t[tu](g,f),u(!0),w=!0);var O=6e4;f||(f={}),m(function(){var ye=!1;try{if(r[XL]()){ye=!0;var Ae={name:_,uri:T};r[C_](Ae),!Ae.isValid&&!w?(f[Fl]=I,t[tu](g,f)):(w||(f[Fl]=Ae.durationMs,t[tu](g,f)),l||(t[Hw](Ae,f),l=!0))}else E>0&&No(E,+new Date)>O&&(ye=!0,w||(f[Fl]=O,t[tu](g,f)))}catch(de){Se(c,1,38,"trackPageView failed on page load calculation: "+vt(de),{exception:ze(de)})}return ye})},s.teardown=function(g,f){if(i){clearTimeout(i),i=null;var _=a.slice(0),h=!1;a=[],$e(_,function(T){T()&&(h=!0)})}}})}return e.__ieDyn=1,e}();var U4e=36e5,xwe=["googlebot","adsbot-google","apis-google","mediapartners-google"];function wwe(){var e=Ri();return e&&!!e.timing}function O4e(){var e=Ri();return e&&e.getEntriesByType&&e.getEntriesByType("navigation")[Qd]>0}function q4e(){var e=Ri(),t=e?e.timing:0;return t&&t.domainLookupStart>0&&t[A_]>0&&t[k_]>0&&t[ywe]>0&&t[Gw]>0&&t[ZL]>0&&t[Vw]>0&&t.domLoading>0}function Twe(){return wwe()?Ri().timing:null}function H4e(){return O4e()?Ri()[_we]("navigation")[0]:null}function B4e(){for(var e=[],t=0;t=U4e)return!1;return!0}var Swe=function(){function e(t){var n=this,o=Ia(t);dt(e,this,function(r){r[C_]=function(s){s.isValid=!1;var i=H4e(),a=Twe(),l=0,c=0,u=0,p=0,m=0;(i||a)&&(i?(l=i[Fl],c=i.startTime===0?i[Vw]:No(i.startTime,i[Vw]),u=No(i.requestStart,i[k_]),p=No(i[k_],i[ZL]),m=No(i.responseEnd,i[Gw])):(l=No(a[A_],a[Gw]),c=No(a[A_],a[Vw]),u=No(a.requestStart,a[k_]),p=No(a[k_],a[ZL]),m=No(a.responseEnd,a[Gw])),l===0?Se(o,2,10,"error calculating page view performance.",{total:l,network:c,request:u,response:p,dom:m}):n[zw](l,c,u,p,m)?l=100)&&(e[Fw]=100),e[Uw]=Ni(e[Uw]),e[Ow]=Ni(e[Ow]),e[HL]=Ni(e[HL]),e[BL]=e[BL]||"",e.enableDebug=Ni(e.enableDebug),e[zL]=Ni(e[zL]),e.disableFlushOnUnload=Ni(e.disableFlushOnUnload,e[zL]),e}function Q4e(e){In(e[Uw])||(e[Uw]?l4():c4())}var tR=function(e){zo(t,e);function t(){var n=e.call(this)||this;n.identifier=S4,n.priority=180,n.autoRoutePVDelay=500;var o,r,s,i,a,l,c,u,p,m,g,f,_,h,T=0,x,w,I;return dt(t,n,function(E,Q){var O=Q._addHook;Ne(),E.getCookieMgr=function(){return Ag(E[Yo])},E.processTelemetry=function(U,ce){E.processNext(U,ce)},E.trackEvent=function(U,ce){try{var B=Fi(U,si[eu],si[zd],E[bs](),ce);E[Yo][Gd](B)}catch(ae){it(2,39,"trackTrace failed, trace will not be collected: "+vt(ae),{exception:ze(ae)})}},E.startTrackEvent=function(U){try{o.start(U)}catch(ce){it(1,29,"startTrackEvent failed, event will not be collected: "+vt(ce),{exception:ze(ce)})}},E.stopTrackEvent=function(U,ce,B){try{o.stop(U,void 0,ce,B)}catch(ae){it(1,30,"stopTrackEvent failed, event will not be collected: "+vt(ae),{exception:ze(ae)})}},E.trackTrace=function(U,ce){try{var B=Fi(U,Ma[eu],Ma[zd],E[bs](),ce);E[Yo][Gd](B)}catch(ae){it(2,39,"trackTrace failed, trace will not be collected: "+vt(ae),{exception:ze(ae)})}},E.trackMetric=function(U,ce){try{var B=Fi(U,ii[eu],ii[zd],E[bs](),ce);E[Yo][Gd](B)}catch(ae){it(1,36,"trackMetric failed, metric will not be collected: "+vt(ae),{exception:ze(ae)})}},E[S_]=function(U,ce){try{var B=U||{};s[S_](B,to(to(to({},B.properties),B.measurements),ce)),E.config[Nw]&&a[qw](B.name,B.uri)}catch(ae){it(1,37,"trackPageView failed, page view will not be collected: "+vt(ae),{exception:ze(ae)})}},E[tu]=function(U,ce,B){var ae=oo();ae&&(U.refUri=U.refUri===void 0?ae.referrer:U.refUri);var ve=Fi(U,Or[eu],Or[zd],E[bs](),ce,B);E[Yo][Gd](ve),T=0},E[Hw]=function(U,ce,B){var ae=Fi(U,Da[eu],Da[zd],E[bs](),ce,B);E[Yo][Gd](ae)},E.trackPageViewPerformance=function(U,ce){var B=U||{};try{i[C_](B),E[Hw](B,ce)}catch(ae){it(1,37,"trackPageViewPerformance failed, page view will not be collected: "+vt(ae),{exception:ze(ae)})}},E.startTrackPage=function(U){try{if(typeof U!="string"){var ce=oo();U=ce&&ce.title||""}r.start(U)}catch(B){it(1,31,"startTrackPage failed, page view may not be collected: "+vt(B),{exception:ze(B)})}},E.stopTrackPage=function(U,ce,B,ae){try{if(typeof U!="string"){var ve=oo();U=ve&&ve.title||""}if(typeof ce!="string"){var P=ms();ce=P&&P[Vd]||""}r.stop(U,ce,B,ae),E.config[Nw]&&a[qw](U,ce)}catch(Z){it(1,32,"stopTrackPage failed, page view will not be collected: "+vt(Z),{exception:ze(Z)})}},E[C4]=function(U,ce,B){var ae=U&&(U[GL]||U[E_])||vg(U)&&U||{name:U&&typeof U,message:U||ro};U=U||{};var ve=new dr(E[bs](),ae,U.properties||ce,U.measurements,U.severityLevel,U.id).toInterface(),P=Fi(ve,dr[eu],dr[zd],E[bs](),ce,B);E[Yo][Gd](P)},E.trackException=function(U,ce){U&&!U[GL]&&U[E_]&&(U[GL]=U[E_]);try{E[C4](U,ce)}catch(B){it(1,35,"trackException failed, exception will not be collected: "+vt(B),{exception:ze(B)})}},E[VL]=function(U){var ce=U&&U[E_],B=U&&U.evt;try{if(!B){var ae=ni();ae&&(B=ae[G4e])}var ve=U&&U.url||(oo()||{}).URL,P=U[QL]||"window.onerror@"+ve+":"+(U[YL]||0)+":"+(U[jL]||0),Z={errorSrc:P,url:ve,lineNumber:U[YL]||0,columnNumber:U[jL]||0,message:U[E4]};s4(U.message,U.url,U.lineNumber,U.columnNumber,U[E_])?qt(dr[WL]("Script error: The browser's same-origin policy prevents us from getting the details of this exception. Consider using the 'crossorigin' attribute.",ve,U[YL]||0,U[jL]||0,ce,B,null,P),Z):(U[QL]||(U[QL]=P),E.trackException({exception:U,severityLevel:3},Z))}catch(ne){var F=ce?ce.name+", "+ce[E4]:"null";it(1,11,"_onError threw exception while logging error, error will not be collected: "+vt(ne),{exception:ze(ne),errorString:F})}},E[Bw]=function(U){if(E[Yo])return E[Yo][Bw](U);l||(l=[]),l.push(U)},E.initialize=function(U,ce,B,ae){if(!E.isInitialized()){he(ce)&&Un("Error initializing"),Q.initialize(U,ce,B,ae);try{I=oi(cr(E.identifier),ce.evtNamespace&&ce.evtNamespace()),l&&($e(l,function(P){ce[Bw](P)}),l=null);var ve=ye(U);Q4e(ve),i=new Swe(E[Yo]),s=new vwe(n,ve[OL],E[Yo],i),a=new Cwe(E[bs](),function(P,Z,F){return de(P,Z,F)}),Ae(ve,U),o=new k4(E[bs](),"trackEvent"),o.action=function(P,Z,F,ne,ie){ne||(ne={}),ie||(ie={}),ne.duration=F[$w](),E.trackEvent({name:P,properties:ne,measurements:ie})},r=new k4(E[bs](),"trackPageView"),r.action=function(P,Z,F,ne,ie){he(ne)&&(ne={}),ne.duration=F[$w]();var Ie={name:P,uri:Z,properties:ne,measurements:ie};E[tu](Ie,ne)},Qc()&&(Qt(ve),Ln(ve))}catch(P){throw E.setInitialized(!1),P}}},E._doTeardown=function(U,ce){s&&s.teardown(U,ce),Dd(window,null,null,I),Ne()};function ye(U){var ce=ur(null,U,E[Yo]),B=E.identifier,ae=kwe(U),ve=E.config=ce.getExtCfg(B);return ae!==void 0&&kt(ae,function(P,Z){ve[P]=ce.getConfig(B,P,Z),ve[P]===void 0&&(ve=Z)}),ve}function Ae(U,ce){c=U[Ow]||ce[Ow],xt()}function de(U,ce,B){var ae={PageName:U,PageUrl:ce};E.trackMetric({name:"PageVisitTime",average:B,max:B,min:B,sampleCount:1},ae)}function xt(){if(!u&&c){var U=["/browserLinkSignalR/","/__browserLink/"],ce=function(B){if(c&&B.baseType===ai[eu]){var ae=B.baseData;if(ae){for(var ve=0;ve=0)return!1}}return!0};E[Bw](ce),u=!0}}function qt(U,ce){var B=Fi(U,dr[eu],dr[zd],E[bs](),ce);E[Yo][Gd](B)}function Qt(U){var ce=ni(),B=ms(!0);g=U[UL],!g&&!f&&!U.autoExceptionInstrumented&&(O(d_(ce,"onerror",{ns:I,rsp:function(ae,ve,P,Z,F,ne){!g&&ae.rslt!==!0&&E[VL](dr[WL](ve,P,Z,F,ne,ae.evt))}},!1)),f=!0),vn(U,ce,B)}function Ln(U){var ce=ni(),B=ms(!0);if(p=U[HL]===!0,ce&&p&&iL()){var ae=w3();Xe(ae.pushState)&&Xe(ae.replaceState)&&typeof Event!==us&&Ft(U,ce,ae,B)}}function Yt(){var U=null;if(E[Yo]&&E[Yo].getTraceCtx&&(U=E[Yo].getTraceCtx(!1)),!U){var ce=E[Yo].getPlugin(Bd);if(ce){var B=ce.plugin.context;B&&(U=Og(B.telemetryTrace))}}return U}function Ft(U,ce,B,ae){var ve=U[BL]||"";function P(){p&&Qw(ce,Pg(ve+"locationchange"))}function Z(){if(w?(x=w,w=ae&&ae[Vd]||""):w=ae&&ae[Vd]||"",p){var F=Yt();if(F){F.setTraceId(gs());var ne="_unknown_";ae&&ae.pathname&&(ne=ae.pathname+(ae.hash||"")),F.setName(jt(E[bs](),ne))}setTimeout(function(ie){E[S_]({refUri:ie,properties:{duration:0}})}.bind(this,x),E.autoRoutePVDelay)}}m||(O(d_(B,"pushState",{ns:I,rsp:function(){p&&(Qw(ce,Pg(ve+"pushState")),Qw(ce,Pg(ve+"locationchange")))}},!0)),O(d_(B,"replaceState",{ns:I,rsp:function(){p&&(Qw(ce,Pg(ve+"replaceState")),Qw(ce,Pg(ve+"locationchange")))}},!0)),Di(ce,ve+"popstate",P,I),Di(ce,ve+"locationchange",Z,I),m=!0)}function vn(U,ce,B){_=U[qL]===!0,_&&!h&&(O(d_(ce,"onunhandledrejection",{ns:I,rsp:function(ae,ve){_&&ae.rslt!==!0&&E[VL](dr[WL](V4e(ve),B?B[Vd]:"",0,0,ve,ae.evt))}},!1)),h=!0,U.autoUnhandledPromiseInstrumented=h)}function it(U,ce,B,ae,ve){E[bs]().throwInternal(U,ce,B,ae,ve)}function Ne(){o=null,r=null,s=null,i=null,a=null,l=null,c=!1,u=!1,p=!1,m=!1,g=!1,f=!1,_=!1,h=!1,T=0;var U=ms(!0);x=U&&U[Vd]||"",w=null,I=null}Li(E,"_pageViewManager",function(){return s}),Li(E,"_pageViewPerformanceManager",function(){return i}),Li(E,"_pageVisitTimeManager",function(){return a}),Li(E,"_evtNamespace",function(){return"."+I})}),n}return t.Version="2.8.13",t.getDefaultConfig=kwe,t}(Pa);var Yd="duration";var ho="tags",nR="deviceType",_s="data",Ul="name",Bg="traceID",wt="length",jd="stringify",Wd="measurements",Ui="dataType",Kd="envelopeType",nu="toString",Yw="onLine",jw="isOnline",zg="enqueue",Jd="count",ou="push",Ww="emitLineDelimitedJson",Xd="clear",Gg="batchPayloads",Zd="markAsSent",Vg="clearSent",Kw="bufferOverride",I_="BUFFER_KEY",ep="SENT_BUFFER_KEY",P_="MAX_BUFFER_SIZE",ru="namePrefix",oR="maxBatchSizeInBytes",Qg="triggerSend",Pr="diagLog",I4="onunloadDisableBeacon",rR="isBeaconApiDisabled",L_="_sender",yn="_senderConfig",P4="enableSessionStorageBuffer",tp="_buffer",L4="samplingPercentage",Jw="instrumentationKey",np="endpointUrl",R4="customHeaders",R_="disableXhr",M4="onunloadDisableFetch",sR="disableTelemetry",iR="baseType",M_="sampleRate",D4="convertUndefined",Iwe="_xhrReadyStateChange",Oi="_onError",aR="_onPartialSuccess",Xw="_onSuccess",Zw="itemsAccepted",Pwe="itemsReceived",D_="isRetryDisabled",lR="setRequestHeader",$4="maxBatchInterval",N4="eventsSendRequest",F4="disableInstrumentationKeyValidation",cR="getSamplingScore",Lwe="getHashCodeScore";var U4="baseType",Pn="baseData",jo="properties",Rwe="true";function bo(e,t,n){return Bt(e,t,n,o_)}function Y4e(e,t,n){var o=n[ho]=n[ho]||{},r=t.ext=t.ext||{},s=t[ho]=t[ho]||[],i=r.user;i&&(bo(o,sn.userAuthUserId,i.authId),bo(o,sn.userId,i.id||i.localId));var a=r.app;a&&bo(o,sn.sessionId,a.sesId);var l=r.device;l&&(bo(o,sn.deviceId,l.id||l.localId),bo(o,sn[nR],l.deviceClass),bo(o,sn.deviceIp,l.ip),bo(o,sn.deviceModel,l.model),bo(o,sn[nR],l[nR]));var c=t.ext.web;if(c){bo(o,sn.deviceLanguage,c.browserLang),bo(o,sn.deviceBrowserVersion,c.browserVer),bo(o,sn.deviceBrowser,c.browser);var u=n[_s]=n[_s]||{},p=u[Pn]=u[Pn]||{},m=p[jo]=p[jo]||{};bo(m,"domain",c.domain),bo(m,"isManual",c.isManual?Rwe:null),bo(m,"screenRes",c.screenRes),bo(m,"userConsent",c.userConsent?Rwe:null)}var g=r.os;g&&bo(o,sn.deviceOS,g[Ul]);var f=r.trace;f&&(bo(o,sn.operationParentId,f.parentID),bo(o,sn.operationName,jt(e,f[Ul])),bo(o,sn.operationId,f[Bg]));for(var _={},h=s[wt]-1;h>=0;h--){var T=s[h];kt(T,function(w,I){_[w]=I}),s.splice(h,1)}kt(s,function(w,I){_[w]=I});var x=to(to({},o),_);x[sn.internalSdkVersion]||(x[sn.internalSdkVersion]="javascript:".concat(j4e.Version)),n[ho]=oL(x)}function op(e,t,n){he(e)||kt(e,function(o,r){cw(r)?n[o]=r:We(r)?t[o]=r:ka()&&(t[o]=$o()[jd](r))})}function Yg(e,t){he(e)||kt(e,function(n,o){e[n]=o||t})}function jg(e,t,n,o){var r=new $L(e,o,t);bo(r,"sampleRate",n[p_]),(n[Pn]||{}).startTime&&(r.time=ei(n[Pn].startTime)),r.iKey=n.iKey;var s=n.iKey.replace(/-/g,"");return r[Ul]=r[Ul].replace("{0}",s),Y4e(e,n,r),n[ho]=n[ho]||[],oL(r)}function Wg(e,t){he(t[Pn])&&Se(e,1,46,"telemetryItem.baseData cannot be null.")}var j4e={Version:"2.8.13"};function Mwe(e,t,n){Wg(e,t);var o=t[Pn][Wd]||{},r=t[Pn][jo]||{};op(t[_s],r,o),he(n)||Yg(r,n);var s=t[Pn];if(he(s))return Mi(e,"Invalid input for dependency data"),null;var i=s[jo]&&s[jo][Tw]?s[jo][Tw]:"GET",a=new ai(e,s.id,s.target,s[Ul],s[Yd],s.success,s.responseCode,i,s.type,s.correlationContext,r,o),l=new Nl(ai[Ui],a);return jg(e,ai[Kd],t,l)}function O4(e,t,n){Wg(e,t);var o={},r={};t[U4]!==si[Ui]&&(o.baseTypeSource=t[U4]),t[U4]===si[Ui]?(o=t[Pn][jo]||{},r=t[Pn][Wd]||{}):t[Pn]&&op(t[Pn],o,r),op(t[_s],o,r),he(n)||Yg(o,n);var s=t[Pn][Ul],i=new si(e,s,o,r),a=new Nl(si[Ui],i);return jg(e,si[Kd],t,a)}function Dwe(e,t,n){Wg(e,t);var o=t[Pn][Wd]||{},r=t[Pn][jo]||{};op(t[_s],r,o),he(n)||Yg(r,n);var s=t[Pn],i=dr.CreateFromInterface(e,s,r,o),a=new Nl(dr[Ui],i);return jg(e,dr[Kd],t,a)}function $we(e,t,n){Wg(e,t);var o=t[Pn],r=o[jo]||{},s=o[Wd]||{};op(t[_s],r,s),he(n)||Yg(r,n);var i=new ii(e,o[Ul],o.average,o.sampleCount,o.min,o.max,o.stdDev,r,s),a=new Nl(ii[Ui],i);return jg(e,ii[Kd],t,a)}function Nwe(e,t,n){Wg(e,t);var o,r=t[Pn];!he(r)&&!he(r[jo])&&!he(r[jo][Yd])?(o=r[jo][Yd],delete r[jo][Yd]):!he(t[_s])&&!he(t[_s][Yd])&&(o=t[_s][Yd],delete t[_s][Yd]);var s=t[Pn],i;((t.ext||{}).trace||{})[Bg]&&(i=t.ext.trace[Bg]);var a=s.id||i,l=s[Ul],c=s.uri,u=s[jo]||{},p=s[Wd]||{};if(he(s.refUri)||(u.refUri=s.refUri),he(s.pageType)||(u.pageType=s.pageType),he(s.isLoggedIn)||(u.isLoggedIn=s.isLoggedIn[nu]()),!he(s[jo])){var m=s[jo];kt(m,function(_,h){u[_]=h})}op(t[_s],u,p),he(n)||Yg(u,n);var g=new Or(e,l,c,o,u,p,a),f=new Nl(Or[Ui],g);return jg(e,Or[Kd],t,f)}function Fwe(e,t,n){Wg(e,t);var o=t[Pn],r=o[Ul],s=o.uri||o.url,i=o[jo]||{},a=o[Wd]||{};op(t[_s],i,a),he(n)||Yg(i,n);var l=new Da(e,r,s,void 0,i,a,o),c=new Nl(Da[Ui],l);return jg(e,Da[Kd],t,c)}function Uwe(e,t,n){Wg(e,t);var o=t[Pn].message,r=t[Pn].severityLevel,s=t[Pn][jo]||{},i=t[Pn][Wd]||{};op(t[_s],s,i),he(n)||Yg(s,n);var a=new Ma(e,o,r,s,i),l=new Nl(Ma[Ui],a);return jg(e,Ma[Kd],t,l)}function Owe(e,t){Dd(e,null,null,t)}function qwe(e){var t,n=oo(),o=Ur(),r=!1,s=!0,i=oi(cr("OfflineListener"),e);try{if(l(ni())&&(r=!0),n){var a=n.body||n;a.ononline&&l(a)&&(r=!0)}r&&o&&!he(o[Yw])&&(s=o[Yw])}catch{r=!1}function l(g){var f=!1;return g&&(f=Di(g,"online",c,i),f&&Di(g,"offline",u,i)),f}function c(){s=!0}function u(){s=!1}function p(){var g=!0;return r?g=s:o&&!he(o[Yw])&&(g=o[Yw]),g}function m(){var g=ni();if(g&&r){if(Owe(g,i),n){var f=n.body||n;In(f.ononline)||Owe(f,i)}r=!1}}return t={},t[jw]=p,t.isListening=function(){return r},t.unload=m,t}var Hwe=function(){function e(t,n){var o=[],r=!1;this._get=function(){return o},this._set=function(s){return o=s,o},dt(e,this,function(s){s[zg]=function(i){if(s[Jd]()>=n.eventsLimitInMem()){r||(Se(t,2,105,"Maximum in-memory buffer size reached: "+s[Jd](),!0),r=!0);return}o[ou](i)},s[Jd]=function(){return o[wt]},s.size=function(){for(var i=o[wt],a=0;a0){var a=n[Ww]()?i.join(` `):"["+i.join(",")+"]";return a}return null}})}return e.__ieDyn=1,e}(),Bwe=function(e){zo(t,e);function t(n,o){var r=e.call(this,n,o)||this;return dt(t,r,function(s,i){s[Zd]=function(a){i[Xd]()},s[Vg]=function(a){}}),r}return t.__ieDyn=1,t}(Hwe);var zwe=function(e){zo(t,e);function t(n,o){var r=e.call(this,n,o)||this,s=!1,i=o[Kw]()||{getItem:__,setItem:Pw},a=i.getItem,l=i.setItem;return dt(t,r,function(c,u){var p=_(t[I_]),m=_(t[ep]),g=c._set(p.concat(m));g[wt]>t[P_]&&(g[wt]=t[P_]),h(t[ep],[]),h(t[I_],g),c[zg]=function(T){if(c[Jd]()>=t[P_]){s||(Se(n,2,67,"Maximum buffer size reached: "+c[Jd](),!0),s=!0);return}u[zg](T),h(t[I_],c._get())},c[Xd]=function(){u[Xd](),h(t[I_],c._get()),h(t[ep],[]),s=!1},c[Zd]=function(T){h(t[I_],c._set(f(T,c._get())));var x=_(t[ep]);x instanceof Array&&T instanceof Array&&(x=x.concat(T),x[wt]>t[P_]&&(Se(n,1,67,"Sent buffer reached its maximum size: "+x[wt],!0),x[wt]=t[P_]),h(t[ep],x))},c[Vg]=function(T){var x=_(t[ep]);x=f(T,x),h(t[ep],x)};function f(T,x){var w=[];return $e(x,function(I){!Xe(I)&&Vo(T,I)===-1&&w[ou](I)}),w}function _(T){var x=T;try{x=o[ru]&&o[ru]()?o[ru]()+"_"+x:x;var w=a(n,x);if(w){var I=$o().parse(w);if(We(I)&&(I=$o().parse(I)),I&&At(I))return I}}catch(E){Se(n,1,42," storage key: "+x+", "+vt(E),{exception:ze(E)})}return[]}function h(T,x){var w=T;try{w=o[ru]&&o[ru]()?o[ru]()+"_"+w:w;var I=JSON[jd](x);l(n,w,I)}catch(E){l(n,w,JSON[jd]([])),Se(n,2,41," storage key: "+w+", "+vt(E)+". Buffer cleared",{exception:ze(E)})}}}),r}return t.BUFFER_KEY="AI_buffer",t.SENT_BUFFER_KEY="AI_sentBuffer",t.MAX_BUFFER_SIZE=2e3,t}(Hwe);var Gwe=function(){function e(t){dt(e,this,function(n){n.serialize=function(i){var a=o(i,"root");try{return $o()[jd](a)}catch(l){Se(t,1,48,l&&Xe(l[nu])?l[nu]():"Error serializing object",null,!0)}};function o(i,a){var l="__aiCircularRefCheck",c={};if(!i)return Se(t,1,48,"cannot serialize object because it is null or undefined",{name:a},!0),c;if(i[l])return Se(t,2,50,"Circular reference detected while serializing object",{name:a},!0),c;if(!i.aiDataContract){if(a==="measurements")c=s(i,"number",a);else if(a==="properties")c=s(i,"string",a);else if(a==="tags")c=s(i,"string",a);else if(At(i))c=r(i,a);else{Se(t,2,49,"Attempting to serialize an object which does not implement ISerializable",{name:a},!0);try{$o()[jd](i),c=i}catch(u){Se(t,1,48,u&&Xe(u[nu])?u[nu]():"Error serializing object",null,!0)}}return c}return i[l]=!0,kt(i.aiDataContract,function(u,p){var m=Xe(p)?p()&1:p&1,g=Xe(p)?p()&4:p&4,f=p&2,_=i[u]!==void 0,h=Cr(i[u])&&i[u]!==null;if(m&&!_&&!f)Se(t,1,24,"Missing required field specification. The field is required but not present on source",{field:u,name:a});else if(!g){var T=void 0;h?f?T=r(i[u],u):T=o(i[u],u):T=i[u],T!==void 0&&(c[u]=T)}}),delete i[l],c}function r(i,a){var l;if(i)if(!At(i))Se(t,1,54,`This field was specified as an array in the contract but the item is not an array.\r `,{name:a},!0);else{l=[];for(var c=0;c100||t<0)&&(o.throwInternal(2,58,"Sampling rate is out of range (0..100). Sampling will be disabled, you may be sending too much data which may affect your AI service level.",{samplingRate:t},!0),t=100),this[M_]=t,this.samplingScoreGenerator=new Qwe}return e.prototype.isSampledIn=function(t){var n=this[M_],o=!1;return n==null||n>=100||t.baseType===ii[Ui]?!0:(o=this.samplingScoreGenerator[cR](t)h._senderConfig[oR]()&&h[Qg](!0,null,10),Yt())},h.flush=function(P,Z,F){if(P===void 0&&(P=!0),!i){Ft();try{h[Qg](P,null,F||1)}catch(ne){Se(h[Pr](),1,22,"flush failed, telemetry will not be collected: "+vt(ne),{exception:ze(ne)})}}},h.onunloadFlush=function(){if(!i)if((h._senderConfig[I4]()===!1||h[yn][rR]()===!1)&&Ld())try{h[Qg](!0,E,2)}catch(P){Se(h[Pr](),1,20,"failed to flush with beacon sender on page unload, telemetry will not be collected: "+vt(P),{exception:ze(P)})}else h.flush()},h.addHeader=function(P,Z){u[P]=Z},h.initialize=function(P,Z,F,ne){h.isInitialized()&&Se(h[Pr](),1,28,"Sender is already initialized"),T.initialize(P,Z,F,ne);var ie=h._getTelCtx(),Ie=h.identifier;l=new Gwe(Z.logger),o=0,r=null,s=0,h[L_]=null,c=0;var Le=h[Pr]();_=oi(cr("Sender"),Z.evtNamespace&&Z.evtNamespace()),f=qwe(_);var ht=jwe();kt(ht,function(ue,be){h[yn][ue]=function(){var we=ie.getConfig(Ie,ue,be());return!we&&ue==="endpointUrl"&&(we=be()),we}});var Lt=h[yn][P4]()&&!!(h._senderConfig[Kw]()||Od());h[tp]=Lt?new zwe(Le,h[yn]):new Bwe(Le,h[yn]),h._sample=new Ywe(h[yn][L4](),Le),ae(P)||Se(Le,1,100,"Invalid Instrumentation key "+P[Jw]),!Ug(h._senderConfig.endpointUrl())&&h._senderConfig.customHeaders()&&h._senderConfig.customHeaders()[wt]>0&&$e(h[yn][R4](),function(ue){n.addHeader(ue.header,ue.value)});var zt=h[yn],Y=null;!zt[R_]()&&lL()?Y=Ne:!zt[R_]()&&Tg()&&(Y=ye),!Y&&aL()&&(Y=de),m=Y||ye,!zt[rR]()&&Ld()&&(Y=O),h[L_]=Y||ye,!zt[M4]()&&aL(!0)?g=Ae:Ld()?g=O:!zt[R_]()&&lL()?g=Ne:!zt[R_]()&&Tg()?g=ye:g=m},h.processTelemetry=function(P,Z){Z=h._getTelCtx(Z);var F=Z[Pr]();try{if(h[yn][sR]())return;if(!P){Se(F,1,7,"Cannot send empty telemetry");return}if(P.baseData&&!P[iR]){Se(F,1,70,"Cannot send telemetry without baseData and baseType");return}if(P[iR]||(P[iR]="EventData"),!h[L_]){Se(F,1,28,"Sender was not initialized");return}if(x(P))P[p_]=h._sample[M_];else{Se(F,2,33,"Telemetry item was sampled out and not sent",{SampleRate:h._sample[M_]});return}var ne=h[yn][D4]()||void 0,ie=P.iKey||h[yn][Jw](),Ie=t.constructEnvelope(P,ie,F,ne);if(!Ie){Se(F,1,47,"Unable to create an AppInsights envelope");return}var Le=!1;if(P[ho]&&P[ho][m_]&&($e(P[ho][m_],function(Y){try{Y&&Y(Ie)===!1&&(Le=!0,Mi(F,"Telemetry processor check returns false"))}catch(ue){Se(F,1,64,"One of telemetry initializers failed, telemetry item will not be sent: "+vt(ue),{exception:ze(ue)},!0)}}),delete P[ho][m_]),Le)return;var ht=l.serialize(Ie),Lt=h[tp],zt=Lt.size();zt+ht[wt]>h[yn][oR]()&&(!f||f[jw]())&&h[Qg](!0,null,10),Lt[zg](ht),Yt()}catch(Y){Se(F,2,12,"Failed adding telemetry to the sender's buffer, some telemetry will be lost: "+vt(Y),{exception:ze(Y)})}h.processNext(P,Z)},h[Iwe]=function(P,Z,F){P.readyState===4&&w(P.status,Z,P.responseURL,F,it(P),uR(P)||P.response)},h[Qg]=function(P,Z,F){if(P===void 0&&(P=!0),!i)try{var ne=h[tp];if(h[yn][sR]())ne[Xd]();else{if(ne[Jd]()>0){var ie=ne.getItems();B(F||0,P),Z?Z.call(n,ie,P):h[L_](ie,P)}s=+new Date}Ft()}catch(Le){var Ie=l_();(!Ie||Ie>9)&&Se(h[Pr](),1,40,"Telemetry transmission failed, some telemetry will be lost: "+vt(Le),{exception:ze(Le)})}},h._doTeardown=function(P,Z){h.onunloadFlush(),f.unload(),ve()},h[Oi]=function(P,Z,F){Se(h[Pr](),2,26,"Failed to send telemetry.",{message:Z}),h._buffer[Vg](P)},h[aR]=function(P,Z){for(var F=[],ne=[],ie=Z.errors.reverse(),Ie=0,Le=ie;Ie0&&h[Xw](P,Z[Zw]),F[wt]>0&&h[Oi](F,it(null,["partial success",Z[Zw],"of",Z.itemsReceived].join(" "))),ne[wt]>0&&(Qt(ne),Se(h[Pr](),2,40,"Partial success. Delivered: "+P[wt]+", Failed: "+F[wt]+". Will retry to send "+ne[wt]+" our of "+Z[Pwe]+" items"))},h[Xw]=function(P,Z){h._buffer[Vg](P)},h._xdrOnLoad=function(P,Z){var F=uR(P);if(P&&(F+""=="200"||F===""))o=0,h[Xw](Z,0);else{var ne=qt(F);ne&&ne.itemsReceived&&ne.itemsReceived>ne[Zw]&&!h[yn][D_]()?h[aR](Z,ne):h[Oi](Z,U(P))}};function x(P){return h._sample.isSampledIn(P)}function w(P,Z,F,ne,ie,Ie){var Le=null;if(h._appId||(Le=qt(Ie),Le&&Le.appId&&(h._appId=Le.appId)),(P<200||P>=300)&&P!==0){if((P===301||P===307||P===308)&&!I(F)){h[Oi](Z,ie);return}!h[yn][D_]()&&vn(P)?(Qt(Z),Se(h[Pr](),2,40,". Response code "+P+". Will retry to send "+Z[wt]+" items.")):h[Oi](Z,ie)}else if(f&&!f[jw]()){if(!h[yn][D_]()){var ht=10;Qt(Z,ht),Se(h[Pr](),2,40,". Offline - Response Code: ".concat(P,". Offline status: ").concat(!f.isOnline(),". Will retry to send ").concat(Z.length," items."))}}else I(F),P===206?(Le||(Le=qt(Ie)),Le&&!h[yn][D_]()?h[aR](Z,Le):h[Oi](Z,ie)):(o=0,h[Xw](Z,ne))}function I(P){return c>=10?!1:!he(P)&&P!==""&&P!==h[yn][np]()?(h[yn][np]=function(){return P},++c,!0):!1}function E(P,Z){g?g(P,!1):O(P,Z)}function Q(P){var Z=Ur(),F=h[tp],ne=h[yn][np](),ie=h._buffer[Gg](P),Ie=new Blob([ie],{type:"text/plain;charset=UTF-8"}),Le=Z.sendBeacon(ne,Ie);return Le&&(F[Zd](P),h._onSuccess(P,P[wt])),Le}function O(P,Z){if(At(P)&&P[wt]>0&&!Q(P)){for(var F=[],ne=0;ne0&&(m&&m(F,!0),Se(h[Pr](),2,40,". Failed to send telemetry with Beacon API, retried with normal sender."))}}function ye(P,Z){var F=new XMLHttpRequest,ne=h[yn][np]();try{F[La]=!0}catch{}F.open("POST",ne,Z),F[lR]("Content-type","applicationhttps://www.microsoft.com/json"),Ug(ne)&&F[lR](rn[6],rn[7]),$e(ps(u),function(Ie){F[lR](Ie,u[Ie])}),F.onreadystatechange=function(){return h._xhrReadyStateChange(F,P,P[wt])},F.onerror=function(Ie){return h[Oi](P,it(F),Ie)};var ie=h._buffer[Gg](P);F.send(ie),h._buffer[Zd](P)}function Ae(P,Z){if(At(P)){for(var F=P[wt],ne=0;ne=Z[Zw]&&Z.itemsReceived-Z.itemsAccepted===Z.errors[wt])return Z}}catch(F){Se(h[Pr](),1,43,"Cannot parse the response. "+vt(F),{response:P})}return null}function Qt(P,Z){if(Z===void 0&&(Z=1),!(!P||P[wt]===0)){var F=h[tp];F[Vg](P),o++;for(var ne=0,ie=P;ne=200&&+c[li]<400,g.responseCode=+c[li],g[rp]={HttpMethod:c[ql]},g),_=f[rp];if(c[sp]&&(_[sp]=!0),c[lu]&&(f[iu]=new Date,f[iu].setTime(c[lu])),X4e(c,f),p&&ps(c.requestHeaders)[$a]>0&&(_[xs]=c[xs]),m){var h=m();if(h){var T=h[iSe];if(T&&(f.correlationContext=T),h[O_]&&ps(h.headerMap)[$a]>0&&(_.responseHeaders=h[O_]),c[aS])if(c[li]>=400){var x=h.type;(x===""||x==="text")&&(_.responseText=h.responseText?h[au]+" - "+h[l]:h[au]),x==="json"&&(_.responseText=h.response?h[au]+" - "+JSON.stringify(h[fR]):h[au])}else c[li]===0&&(_.responseText=h[au]||"")}}return f},c[cS]=function(){var u,p=null,m=c[bR];if(m&&(m[F_]||m[U_])){p={};var g=p[pr.TraceExt]=(u={},u[Na]=m[F_],u.parentID=m[U_],u);he(m[vs])||(g[vs]=m[vs])}return p}})}return e.__ieDyn=1,e}();var lSe="ai.ajxmn.",mS="diagLog",ci="ajaxData",Zg="fetch",dS="Failed to monitor XMLHttpRequest",hSe=", monitoring data for this ajax call ",H_=hSe+"may be incorrect.",cSe=hSe+"won't be sent.",uSe="Failed to get Request-Context correlation header as it may be not included in the response or not accessible.",dSe="Failed to add custom defined request context as configured call back may missing a null check.",pSe="Failed to calculate the duration of the ",mSe=0;function e6e(){var e=ki();return!e||he(e.Request)||he(e.Request[Nn])||he(e[Zg])?null:e[Zg]}var _R=null;function t6e(){if(_R==null)try{_R=!!(self&&self instanceof WorkerGlobalScope)}catch{_R=!1}return _R}function n6e(e){var t=!1;if(Tg()){var n=XMLHttpRequest[Nn];t=!he(n)&&!he(n.open)&&!he(n.send)&&!he(n.abort)}var o=l_();if(o&&o<9&&(t=!1),t)try{var r=new XMLHttpRequest;r[ci]={};var s=XMLHttpRequest[Nn].open;XMLHttpRequest[Nn].open=s}catch(i){t=!1,gS(e,15,"Failed to enable XMLHttpRequest monitoring, extension is not supported",{exception:ze(i)})}return t}function vR(e){var t="";try{e&&e[ci]&&e[ci][ys]&&(t+="(url: '"+e[ci][ys]+"')")}catch{}return t}function gS(e,t,n,o,r){Se(e[mS](),1,t,n,o,r)}function B_(e,t,n,o,r){Se(e[mS](),2,t,n,o,r)}function pS(e,t,n){return function(o){gS(e,t,n,{ajaxDiagnosticsMessage:vR(o[$_]),exception:ze(o.err)})}}function z_(e,t){return e&&t?e.indexOf(t):-1}function gSe(e,t,n){var o={id:t,fn:n};return e.push(o),{remove:function(){$e(e,function(r,s){if(r.id===o.id)return e.splice(s,1),-1})}}}function bSe(e,t,n,o){var r=!0;return $e(t,function(s,i){try{s.fn.call(null,n)===!1&&(r=!1)}catch(a){Se(e&&e.logger,1,64,"Dependency "+o+" [#"+i+"] failed: "+vt(a),{exception:ze(a)},!0)}}),r}function o6e(e,t,n,o,r,s){var i=e[$a];if(i>0){var a={core:t,xhr:o,input:r,init:s,traceId:n[Na],spanId:n[Ol],traceFlags:n[vs],context:n[N_]||{},aborted:!!n[sp]};bSe(t,e,a,"listener"),n[Na]=a[F_],n[Ol]=a[U_],n[vs]=a[vs],n[N_]=a[N_]}}var yR="*.blob.core.",_Se=n_([yR+"windows.net",yR+"chinacloudapi.cn",yR+"cloudapi.de",yR+"usgovcloudapi.net"]),r6e=[/https:\/\/[^\/]*(\.pipe\.aria|aria\.pipe|events\.data|collector\.azure)\.[^\/]+\/(OneCollector\/1|Collector\/3)\.0/i];function Y4(){var e={maxAjaxCallsPerView:500,disableAjaxTracking:!1,disableFetchTracking:!1,excludeRequestFromAutoTrackingPatterns:void 0,disableCorrelationHeaders:!1,distributedTracingMode:1,correlationHeaderExcludedDomains:_Se,correlationHeaderDomains:void 0,correlationHeaderExcludePatterns:void 0,appId:void 0,enableCorsCorrelation:!1,enableRequestHeaderTracking:!1,enableResponseHeaderTracking:!1,enableAjaxErrorStatusText:!1,enableAjaxPerfTracking:!1,maxAjaxPerfLookupAttempts:3,ajaxPerfLookupDelay:25,ignoreHeaders:["Authorization","X-API-Key","WWW-Authenticate"],addRequestContext:void 0,addIntEndpoints:!0};return e}function fSe(){var e=Y4();return kt(e,function(t){e[t]=void 0}),e}var j4=function(e){zo(t,e);function t(){var n=e.call(this)||this;n.identifier=t.identifier,n.priority=120;var o,r,s,i,a,l,c,u,p,m,g,f,_,h,T,x,w,I,E,Q,O,ye,Ae;return dt(t,n,function(de,xt){var qt=xt._addHook;Qt(),de.initialize=function(Y,ue,be,we){de.isInitialized()||(xt.initialize(Y,ue,be,we),Q=oi(cr("ajax"),ue&&ue.evtNamespace&&ue.evtNamespace()),Ln(Y),Ne(),vn(),Yt())},de._doTeardown=function(){Qt()},de.trackDependencyData=function(Y,ue){zt(Ae,de[Fa],null,Y,ue)},de[dR]=function(Y,ue,be,we){var ke=de._currentWindowHost||s;if(o6e(ye,de[Fa],Y,we,ue,be),ue){if(Zc[B4](i,Y[eS](),ke)){be||(be={});var je=new Headers(be[ip]||(ue instanceof Request?ue[ip]||{}:{}));if(m){var Ke="|"+Y[Na]+"."+Y[Ol];je.set(rn[3],Ke),a&&(Y[xs][rn[3]]=Ke)}var Pt=i[tS]||u&&u[tS]();if(Pt&&(je.set(rn[0],rn[2]+Pt),a&&(Y[xs][rn[0]]=rn[2]+Pt)),p){var tt=Y[vs];he(tt)&&(tt=1);var Rt=_w(bw(Y[Na],Y[Ol],tt));je.set(rn[4],Rt),a&&(Y[xs][rn[4]]=Rt)}be[ip]=je}return be}else if(we){if(Zc[B4](i,Y[eS](),ke)){if(m){var Ke="|"+Y[Na]+"."+Y[Ol];we[pR](rn[3],Ke),a&&(Y[xs][rn[3]]=Ke)}var Pt=i[tS]||u&&u[tS]();if(Pt&&(we[pR](rn[0],rn[2]+Pt),a&&(Y[xs][rn[0]]=rn[2]+Pt)),p){var tt=Y[vs];he(tt)&&(tt=1);var Rt=_w(bw(Y[Na],Y[Ol],tt));we[pR](rn[4],Rt),a&&(Y[xs][rn[4]]=Rt)}}return we}},de[z4]=function(Y,ue,be){if(_===-1||c<_){(i[mR]===2||i[mR]===1)&&typeof Y.id=="string"&&Y.id[Y.id[$a]-1]!=="."&&(Y.id+="."),he(Y[iu])&&(Y[iu]=new Date);var we=Fi(Y,ai.dataType,ai.envelopeType,de[mS](),ue,be);de[Fa].track(we)}else c===_&&gS(de,55,"Maximum ajax per page view limit reached, ajax monitoring is paused until the next trackPageView(). In order to increase the limit set the maxAjaxCallsPerView configuration parameter.",!0);++c},de.addDependencyListener=function(Y){return gSe(ye,O++,Y)},de.addDependencyInitializer=function(Y){return gSe(Ae,O++,Y)};function Qt(){var Y=ms();o=!1,r=!1,s=Y&&Y.host&&Y.host[Kg](),i=t.getEmptyConfig(),a=!1,l=!1,c=0,u=null,p=!1,m=!1,g=null,f=!1,_=0,h=!1,T={},x=!1,w=!1,I=null,E=null,Q=null,O=0,ye=[],Ae=[]}function Ln(Y){var ue=ur(null,Y,de[Fa]);i=fSe();var be=Y4();kt(be,function(je,Ke){i[je]=ue.getConfig(t.identifier,je,Ke)});var we=i[mR];if(a=i[Wwe],l=i[Kwe],f=i[Jwe],_=i[Xwe],h=i[Zwe],I=[].concat(i[eSe]||[],i.addIntEndpoints!==!1?r6e:[]),E=i[tSe],m=we===0||we===1,p=we===1||we===2,f){var ke=Y.instrumentationKey||"unkwn";ke[$a]>5?g=lSe+ke.substring(ke[$a]-5)+".":g=lSe+ke+"."}x=!!i[nSe],w=!!i[oSe]}function Yt(){var Y=de[Fa].getPlugin(Bd);Y&&(u=Y.plugin[N_])}function Ft(Y){var ue=!0;return(Y||i.ignoreHeaders)&&$e(i.ignoreHeaders,function(be){if(be[Kg]()===Y[Kg]())return ue=!1,-1}),ue}function vn(){var Y=e6e();if(Y){var ue=ki(),be=Y.polyfill;!w&&!o?(qt(xw(ue,Zg,{ns:Q,req:function(we,ke,je){var Ke;if(!w&&o&&!U(null,ke,je)&&!(be&&r)){var Pt=we.ctx();Ke=Ie(ke,je);var tt=de[dR](Ke,ke,je);tt!==je&&we.set(1,tt),Pt.data=Ke}},rsp:function(we,ke){if(!w){var je=we.ctx().data;je&&(we.rslt=we.rslt.then(function(Ke){return ht(we,(Ke||{})[li],ke,Ke,je,function(){var Pt={statusText:(Ke||{})[au],headerMap:null,correlationContext:Lt(Ke)};if(h&&Ke){var tt={};Ke.headers.forEach(function(Rt,nr){Ft(nr)&&(tt[nr]=Rt)}),Pt[O_]=tt}return Pt}),Ke}).catch(function(Ke){throw ht(we,0,ke,null,je,null,{error:Ke.message||ze(Ke)}),Ke}))}},hkErr:pS(de,15,"Failed to monitor Window.fetch"+H_)},!0,t6e())),o=!0):be&&qt(xw(ue,Zg,{ns:Q,req:function(we,ke,je){U(null,ke,je)}})),be&&(ue[Zg].polyfill=be)}}function it(Y,ue,be){qt(t4(Y,ue,be))}function Ne(){n6e(de)&&!x&&!r&&(it(XMLHttpRequest,"open",{ns:Q,req:function(Y,ue,be,we){if(!x){var ke=Y[$_],je=ke[ci];!U(ke,be)&&ce(ke,!0)&&((!je||!je.xhrMonitoringState[nS])&&ae(ke,ue,be,we),ve(ke))}},hkErr:pS(de,15,dS+".open"+H_)}),it(XMLHttpRequest,"send",{ns:Q,req:function(Y,ue){if(!x){var be=Y[$_],we=be[ci];ce(be)&&!we.xhrMonitoringState[oS]&&(ne("xhr",we),we[lu]=v_(),de[dR](we,void 0,void 0,be),we.xhrMonitoringState[oS]=!0)}},hkErr:pS(de,17,dS+H_)}),it(XMLHttpRequest,"abort",{ns:Q,req:function(Y){if(!x){var ue=Y[$_],be=ue[ci];ce(ue)&&!be.xhrMonitoringState[rS]&&(be[sp]=1,be.xhrMonitoringState[rS]=!0)}},hkErr:pS(de,13,dS+".abort"+H_)}),it(XMLHttpRequest,"setRequestHeader",{ns:Q,req:function(Y,ue,be){if(!x&&a){var we=Y[$_];ce(we)&&Ft(ue)&&(we[ci][xs][ue]=be)}},hkErr:pS(de,71,dS+".setRequestHeader"+H_)}),r=!0)}function U(Y,ue,be){var we=!1,ke=((We(ue)?ue:(ue||{}).url||"")||"")[Kg]();if($e(I,function(Pt){var tt=Pt;We(Pt)&&(tt=new RegExp(Pt)),we||(we=tt.test(ke))}),we)return we;var je=z_(ke,"?"),Ke=z_(ke,"#");return(je===-1||Ke!==-1&&Ke=0;Ue--){var G=ta[Ue];if(G){if(G.entryType==="resource")G.initiatorType===Y&&(z_(G[ap],tt)!==-1||z_(tt,G[ap])!==-1)&&(xo=G);else if(G.entryType==="mark"&&G[ap]===ke[ap]){ue[uS]=xo;break}if(G[iu]=Ke||ue.async===!1?(ke&&Xe(je.clearMarks)&&je.clearMarks(ke[ap]),ue.perfAttempts=Rt,be()):setTimeout(nr,Pt)}catch(C){we(C)}})()}function Ie(Y,ue){var be,we=B(),ke=we&&we[sS]()||gs(),je=gs().substr(0,16),Ke=new Q4(ke,je,de[mS](),(be=de.core)===null||be===void 0?void 0:be.getTraceCtx());Ke[vs]=we&&we[iS](),Ke[lu]=v_(),Ke[aS]=l,Y instanceof Request?Ke[ys]=Y?Y.url:"":Ke[ys]=Y;var Pt="GET";ue&&ue[ql]?Pt=ue[ql]:Y&&Y instanceof Request&&(Pt=Y[ql]),Ke[ql]=Pt;var tt={};if(a){var Rt=new Headers((ue?ue[ip]:0)||(Y instanceof Request?Y[ip]||{}:{}));Rt.forEach(function(nr,xo){Ft(xo)&&(tt[xo]=nr)})}return Ke[xs]=tt,ne(Zg,Ke),Ke}function Le(Y){var ue="";try{he(Y)||(typeof Y=="string"?ue+="(url: '".concat(Y,"')"):ue+="(url: '".concat(Y.url,"')"))}catch(be){gS(de,15,"Failed to grab failed fetch diagnostics message",{exception:ze(be)})}return ue}function ht(Y,ue,be,we,ke,je,Ke){if(!ke)return;function Pt(tt,Rt,nr){var xo=nr||{};xo.fetchDiagnosticsMessage=Le(be),Rt&&(xo.exception=ze(Rt)),B_(de,tt,pSe+"fetch call"+cSe,xo)}ke[Jg]=v_(),ke[li]=ue,ie(Zg,ke,function(){var tt=ke[lS]("Fetch",a,je),Rt;try{E&&(Rt=E({status:ue,request:be,response:we}))}catch{B_(de,104,dSe)}if(tt){Rt!==void 0&&(tt[rp]=to(to({},tt.properties),Rt));var nr=ke[cS]();zt(Ae,de[Fa],ke,tt,null,nr)}else Pt(14,null,{requestSentTime:ke[lu],responseFinishedTime:ke[Jg]})},function(tt){Pt(18,tt,null)})}function Lt(Y){if(Y&&Y[ip])try{var ue=Y[ip].get(rn[0]);return Zc[V4](ue)}catch(be){B_(de,18,uSe,{fetchDiagnosticsMessage:Le(Y),exception:ze(be)})}}function zt(Y,ue,be,we,ke,je){var Ke=!0,Pt=Y[$a];if(Pt>0){var tt={item:we,properties:ke,sysProperties:je,context:be?be[N_]:null,aborted:be?!!be[sp]:!1};Ke=bSe(ue,Y,tt,"initializer")}Ke&&de[z4](we,ke,je)}}),n}return t.prototype.processTelemetry=function(n,o){this.processNext(n,o)},t.prototype.addDependencyInitializer=function(n){return null},t.identifier="AjaxDependencyPlugin",t.getDefaultConfig=Y4,t.getEmptyConfig=fSe,t}(Pa);var ySe=function(){function e(){}return e}();var vSe=function(){function e(){this.id="browser",this.deviceClass="Browser"}return e}();var G_="sessionManager",ef="update",V_="isUserCookieSet",Q_="isNewUser",xR="getTraceCtx",fS="telemetryTrace",TR="applySessionContext",wR="applyApplicationContext",SR="applyDeviceContext",CR="applyOperationContext",ER="applyUserContext",AR="applyOperatingSystemContxt",kR="applyLocationContext",IR="applyInternalContext",Ua="accountId",Y_="sdkExtension",j_="getSessionId",Hl="namePrefix",W_="sessionCookiePostfix",K_="userCookiePostfix",cp="idLength",up="getNewId",tf="length",dp="automaticSession",pp="authenticatedId",J_="sessionExpirationMs",hS="sessionRenewalMs",Oa="config",X_="acquisitionDate",bS="renewalDate",_S="cookieDomain",Z_="join",ey="cookieSeparator",PR="authUserCookieName";var s6e="2.8.13",xSe=function(){function e(t){this.sdkVersion=(t[Y_]&&t[Y_]()?t[Y_]()+"_":"")+"javascript:"+s6e}return e}();var TSe=function(){function e(){}return e}();var i6e="ai_session",W4=function(){function e(){}return e}();var wSe=function(){function e(t,n){var o=this,r,s,i=Ia(n),a=Ag(n);dt(e,o,function(l){t||(t={}),Xe(t[J_])||(t[J_]=function(){return e.acquisitionSpan}),Xe(t[hS])||(t[hS]=function(){return e.renewalSpan}),l[Oa]=t;var c=l.config[W_]&&l[Oa][W_]()?l.config[W_]():l.config[Hl]&&l[Oa][Hl]()?l[Oa][Hl]():"";r=function(){return i6e+c},l[dp]=new W4,l[ef]=function(){var _=Qo(),h=!1,T=l[dp];T.id||(h=!u(T,_));var x=l.config[J_]();if(!h&&x>0){var w=l.config[hS](),I=_-T[X_],E=_-T[bS];h=I<0||E<0,h=h||I>x,h=h||E>w}h?m(_):(!s||_-s>e.cookieUpdateInterval)&&g(T,_)},l.backup=function(){var _=l[dp];f(_.id,_[X_],_[bS])};function u(_,h){var T=!1,x=a.get(r());if(x&&Xe(x.split))T=p(_,x);else{var w=u4(i,r());w&&(T=p(_,w))}return T||!!_.id}function p(_,h){var T=!1,x=", session will be reset",w=h.split("|");if(w[tf]>=2)try{var I=+w[1]||0,E=+w[2]||0;isNaN(I)||I<=0?Se(i,2,27,"AI session acquisition date is 0"+x):isNaN(E)||E<=0?Se(i,2,27,"AI session renewal date is 0"+x):w[0]&&(_.id=w[0],_[X_]=I,_[bS]=E,T=!0)}catch(Q){Se(i,1,9,"Error parsing ai_session value ["+(h||"")+"]"+x+" - "+vt(Q),{exception:ze(Q)})}return T}function m(_){var h=l[Oa]||{},T=(h[up]?h[up]():null)||jc;l.automaticSession.id=T(h[cp]?h[cp]():22),l[dp][X_]=_,g(l[dp],_),Iw()||Se(i,2,0,"Browser does not support local storage. Session durations will be inaccurate.")}function g(_,h){var T=_[X_];_[bS]=h;var x=l[Oa],w=x[hS](),I=T+x[J_]()-h,E=[_.id,T,h],Q=0;I0?Q:null,O),s=h}function f(_,h,T){d4(i,r(),[_,h,T][Z_]("|"))}})}return e.acquisitionSpan=864e5,e.renewalSpan=18e5,e.cookieUpdateInterval=6e4,e}();var SSe=function(){function e(t,n,o,r){var s=this;s.traceID=t||gs(),s.parentID=n;var i=ms();!o&&i&&i.pathname&&(o=i.pathname),s.name=jt(r,o)}return e}();function CSe(e){return!(typeof e!="string"||!e||e.match(/,|;|=| |\|/))}var ESe=function(){function e(t,n){this.isNewUser=!1,this.isUserCookieSet=!1;var o=Ia(n),r=Ag(n),s;dt(e,this,function(i){i[Oa]=t;var a=i.config[K_]&&i[Oa][K_]()?i[Oa][K_]():"";s=function(){return e.userCookieName+a};var l=r.get(s());if(l){i[Q_]=!1;var c=l.split(e[ey]);c[tf]>0&&(i.id=c[0],i[V_]=!!i.id)}function u(){var T=t||{},x=(T[up]?T[up]():null)||jc,w=x(T[cp]?t[cp]():22);return w}function p(T){var x=ei(new Date);i.accountAcquisitionDate=x,i[Q_]=!0;var w=[T,x];return w}function m(T){var x=31536e3;i[V_]=r.set(s(),T,x)}if(!i.id){i.id=u();var g=p(i.id);m(g[Z_](e[ey]));var f=t[Hl]&&t[Hl]()?t[Hl]()+"ai_session":"ai_session";p4(o,f)}i[Ua]=t[Ua]?t[Ua]():void 0;var _=r.get(e[PR]);if(_){_=decodeURI(_);var h=_.split(e[ey]);h[0]&&(i[pp]=h[0]),h[tf]>1&&h[1]&&(i[Ua]=h[1])}i.setAuthenticatedUserContext=function(T,x,w){w===void 0&&(w=!1);var I=!CSe(T)||x&&!CSe(x);if(I){Se(o,2,60,"Setting auth user context failed. User auth/account id should be of type string, and not contain commas, semi-colons, equal signs, spaces, or vertical-bars.",!0);return}i[pp]=T;var E=i[pp];x&&(i[Ua]=x,E=[i[pp],i.accountId][Z_](e[ey])),w&&r.set(e[PR],encodeURI(E))},i.clearAuthenticatedUserContext=function(){i[pp]=null,i[Ua]=null,r.del(e[PR])},i[ef]=function(T){if(i.id!==T||!i[V_]){var x=T||u(),w=p(x);m(w[Z_](e[ey]))}}})}return e.cookieSeparator="|",e.userCookieName="ai_user",e.authUserCookieName="ai_authUser",e}();var LR="ext",RR="tags";function ty(e,t){e&&e[t]&&ps(e[t])[tf]===0&&delete e[t]}var ASe=function(){function e(t,n,o){var r=this,s=t.logger;this.appId=function(){return null},this[j_]=function(){return null},dt(e,this,function(i){if(i.application=new ySe,i.internal=new xSe(n),Qc()){i[G_]=new wSe(n,t),i.device=new vSe,i.location=new TSe,i.user=new ESe(n,t);var a=void 0,l=void 0,c;o&&(a=o.getTraceId(),l=o.getSpanId(),c=o.getName()),i[fS]=new SSe(a,l,c,s),i.session=new W4}i[j_]=function(){var u=i.session,p=null;if(u&&We(u.id))p=u.id;else{var m=(i[G_]||{})[dp];p=m&&We(m.id)?m.id:null}return p},i[TR]=function(u,p){Bt(Vn(u.ext,pr.AppExt),"sesId",i[j_](),We)},i[AR]=function(u,p){Bt(u.ext,pr.OSExt,i.os)},i[wR]=function(u,p){var m=i.application;if(m){var g=Vn(u,RR);Bt(g,sn.applicationVersion,m.ver,We),Bt(g,sn.applicationBuild,m.build,We)}},i[SR]=function(u,p){var m=i.device;if(m){var g=Vn(Vn(u,LR),pr.DeviceExt);Bt(g,"localId",m.id,We),Bt(g,"ip",m.ip,We),Bt(g,"model",m.model,We),Bt(g,"deviceClass",m.deviceClass,We)}},i[IR]=function(u,p){var m=i.internal;if(m){var g=Vn(u,RR);Bt(g,sn.internalAgentVersion,m.agentVersion,We),Bt(g,sn.internalSdkVersion,m.sdkVersion,We),(u.baseType===Yc.dataType||u.baseType===Or.dataType)&&(Bt(g,sn.internalSnippet,m.snippetVer,We),Bt(g,sn.internalSdkSrc,m.sdkSrc,We))}},i[kR]=function(u,p){var m=r.location;m&&Bt(Vn(u,RR,[]),sn.locationIp,m.ip,We)},i[CR]=function(u,p){var m=i[fS];if(m){var g=Vn(Vn(u,LR),pr.TraceExt,{traceID:void 0,parentID:void 0});Bt(g,"traceID",m.traceID,We,he),Bt(g,"name",m.name,We,he),Bt(g,"parentID",m.parentID,We,he)}},i.applyWebContext=function(u,p){var m=r.web;m&&Bt(Vn(u,LR),pr.WebExt,m)},i[ER]=function(u,p){var m=i.user;if(m){var g=Vn(u,RR,[]);Bt(g,sn.userAccountId,m[Ua],We);var f=Vn(Vn(u,LR),pr.UserExt);Bt(f,"id",m.id,We),Bt(f,"authId",m[pp],We)}},i.cleanUp=function(u,p){var m=u.ext;m&&(ty(m,pr.DeviceExt),ty(m,pr.UserExt),ty(m,pr.WebExt),ty(m,pr.OSExt),ty(m,pr.AppExt),ty(m,pr.TraceExt))}})}return e.__ieDyn=1,e}();var a6e=function(e){zo(t,e);function t(){var n=e.call(this)||this;n.priority=110,n.identifier=Bd;var o,r,s;return dt(t,n,function(i,a){l(),i.initialize=function(p,m,g,f){a.initialize(p,m,g,f),c(p)},i.processTelemetry=function(p,m){if(!he(p)){m=i._getTelCtx(m),p.name===Or.envelopeType&&m.diagLog().resetInternalMessageCount();var g=i.context||{};g.session&&typeof i.context.session.id!="string"&&g[G_]&&g[G_][ef]();var f=g.user;if(f&&!f[V_]&&f[ef](g.user.id),u(p,m),f&&f[Q_]){f[Q_]=!1;var _=new Yc(72,(Ur()||{}).userAgent||"");L3(m.diagLog(),1,_)}i.processNext(p,m)}},i._doTeardown=function(p,m){var g=(p||{}).core();if(g&&g[xR]){var f=g[xR](!1);f===r&&g.setTraceCtx(s)}l()};function l(){o=null,r=null,s=null}function c(p){var m=i.identifier,g=i.core,f=ur(null,p,g),_=t.getDefaultConfig();o=o||{},kt(_,function(h,T){o[h]=function(){return f.getConfig(m,h,T())}}),s=g[xR](!1),i.context=new ASe(g,o,s),r=Og(i.context[fS],s),g.setTraceCtx(r),i.context.appId=function(){var h=g.getPlugin(Dw);return h?h.plugin._appId:null},i._extConfig=o}function u(p,m){Vn(p,"tags",[]),Vn(p,"ext",{});var g=i.context;g[TR](p,m),g[wR](p,m),g[SR](p,m),g[CR](p,m),g[ER](p,m),g[AR](p,m),g.applyWebContext(p,m),g[kR](p,m),g[IR](p,m),g.cleanUp(p,m)}}),n}return t.getDefaultConfig=function(){var n,o,r=null,s=(n={instrumentationKey:function(){return o}},n[Ua]=function(){return r},n.sessionRenewalMs=function(){return 30*60*1e3},n.samplingPercentage=function(){return 100},n.sessionExpirationMs=function(){return 24*60*60*1e3},n[_S]=function(){return r},n[Y_]=function(){return r},n.isBrowserLinkTrackingEnabled=function(){return!1},n.appId=function(){return r},n[j_]=function(){return r},n[Hl]=function(){return o},n[W_]=function(){return o},n[K_]=function(){return o},n[cp]=function(){return 22},n[up]=function(){return r},n);return s},t}(Pa),K4=a6e;var kSe="AuthenticatedUserContext",ny="track";var MR="snippet",ISe="getCookieMgr",PSe="startTrackPage",LSe="stopTrackPage",DR="flush",RSe="startTrackEvent",MSe="stopTrackEvent",J4="addTelemetryInitializer",kIt=J4+"s",X4="pollInternalLogs",$R="getPlugin",NR="evtNamespace",DSe=ny+"Event",$Se=ny+"Trace",NSe=ny+"Metric",FSe=ny+"PageView",USe=ny+"Exception",OSe=ny+"DependencyData",qSe="set"+kSe,HSe="clear"+kSe;var BSe="updateSnippetDefinitions",zSe="loadAppInsights",Z4="endpointUrl";var yS="diagnosticLogInterval";var GSe="disableFlushOnBeforeUnload",VSe="disableFlushOnUnload";var cu="config",qi="context",vS="push",FR="version",mp="queue",UR="connectionString",e6="instrumentationKey",xS="appInsights",t6="disableIkeyDeprecationMessage",n6="getTransmissionControls",oy="onunloadFlush",o6="addHousekeepingBeforeUnload",TS="indexOf";var r6,QSe=[MR,"dependencies","properties","_snippetVersion","appInsightsNew","getSKUDefaults"];var s6=function(){function e(t){var n=this,o,r,s,i,a,l,c;dt(e,this,function(u){T(),i=""+(t.sv||t[FR]||""),t[mp]=t[mp]||[],t[FR]=t[FR]||2;var p=t[cu]||{};if(p[UR]){var m=b4(p[UR]),g=m.ingestionendpoint;p[Z4]=g?g+Kc:p[Z4],p[e6]=m.instrumentationkey||p[e6]}u[xS]=new tR,r=new K4,o=new j4,s=new q4,c=new J3,u.core=c;var f=he(p[t6])?!0:p[t6];!p[UR]&&!f&&Se(c.logger,1,106,"Instrumentation key support will end soon, see aka.ms/IkeyMigrate"),u[MR]=t,u[cu]=p,_(),u[DR]=function(x){x===void 0&&(x=!0),Rd(c,function(){return"AISKU.flush"},function(){$e(c[n6](),function(w){$e(w,function(I){I[DR](x)})})},null,x)},u[oy]=function(x){x===void 0&&(x=!0),$e(c[n6](),function(w){$e(w,function(I){I[oy]?I[oy]():I[DR](x)})})},u[zSe]=function(x,w,I){x===void 0&&(x=!1);function E(Q){if(Q){var O="";he(i)||(O+=i),x&&(O+=".lg"),u[qi]&&u[qi].internal&&(u[qi].internal.snippetVer=O||"-"),kt(u,function(ye,Ae){We(ye)&&!Xe(Ae)&&ye&&ye[0]!=="_"&&Vo(QSe,ye)===-1&&(Q[ye]=Ae)})}}return x&&u[cu].extensions&&u[cu].extensions.length>0&&Un("Extensions not allowed in legacy mode"),Rd(u.core,function(){return"AISKU.loadAppInsights"},function(){var Q=[];Q[vS](s),Q[vS](r),Q[vS](o),Q[vS](u[xS]),c.initialize(u[cu],Q,w,I),u[qi]=r[qi],r6&&u[qi]&&(u[qi].internal.sdkSrc=r6),E(u[MR]),u.emptyQueue(),u[X4](),u[o6](n)}),u},u[BSe]=function(x){g3(x,u,function(w){return w&&Vo(QSe,w)===-1})},u.emptyQueue=function(){try{if(At(u.snippet[mp])){for(var x=u.snippet[mp].length,w=0;w0?u[cu][yS]:1e4}function h(){return o}function T(){a=cr("AISKU"),l=null,o=null,r=null,s=null,i=null}})}return e.prototype.addDependencyInitializer=function(t){return null},e}();(function(){var e=null,t=!1,n=[":/https://www.microsoft.com/js.monitor.azure.com/","://az416426.vo.msecnd.net/"];try{var o=(document||{}).currentScript;o&&(e=o.src)}catch{}if(e)try{var r=e.toLowerCase();if(r){for(var s="",i=0;i{},trackException:()=>{},trackTrace:()=>{}};function YSe(){if(!S.applicationInsights)return;let e={"docs.microsoft.com":"9367385a-f935-4fd9-91da-c734500b5d55","learn.microsoft.com":"9367385a-f935-4fd9-91da-c734500b5d55","docs.azure.cn":"9367385a-f935-4fd9-91da-c734500b5d55","developer.microsoft.com":"9367385a-f935-4fd9-91da-c734500b5d55","review.docs.microsoft.com":"9367385a-f935-4fd9-91da-c734500b5d55","review.learn.microsoft.com":"9367385a-f935-4fd9-91da-c734500b5d55","ppe.docs.microsoft.com":"89ee6297-0550-4fd8-8d37-c2aa8d2ec81c","dev.learn.microsoft.com":"89ee6297-0550-4fd8-8d37-c2aa8d2ec81c"}[oe.hostname];if(!e)return;let t=new s6({config:{instrumentationKey:e,disableFetchTracking:!1}});t.loadAppInsights();let n=()=>{v.isAuthenticated?t.setAuthenticatedUserContext(v.userId):t.clearAuthenticatedUserContext()};v.subscribe(xn,n),n(),t.trackPageView(),ct.subscribe(Cn,()=>{t.trackPageView({properties:{syntheticPageView:!0}})}),Wo=t}function i6(e,t){return async function(...n){let o=t;for(;;)try{return await e.apply(null,n)}catch(r){if(o<=0)throw r;o--}}}async function jSe(){let e={method:"POST"},t=N(D.contentAuthorizationService.deleteCasTokenCookie,e,!0,!1);await i6(async()=>{(await R(t)).ok},10)()}M();ot();var l6e=0;function _t(){return`ax-${l6e++}`}function Hi(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".split("").map(e=>{if(e==="-"||e==="4")return e;let t=Math.random()*16|0;return(e==="x"?t:t&3|8).toString(16)}).join("")}function qn(e){return e?e.toLowerCase().replace(/_/g,"-").replace(/\W/g,"-"):""}var KSe=d`
`;function a6(e=!0){let t=e?"color-text-subtle":"white-static-text";return e?d` `:d``}function WSe(e){return d` `}var c6e="casSignIn",OR=class e{constructor(t,n=!1){this.url=ua(t),n&&this.url.searchParams.set(c6e,"true"),this.source=this.url.searchParams.get("source"),this.source||(this.source=k("page_type")==="learn"||k("page_kind")==="learn"?"learn":"docs",k("uhfHeaderId")!=="answers"&&this.url.searchParams.set("source",this.source))}static getProfileContext(t){try{let n=t||location.href,o=new e(n),r=ua(n);return r.searchParams.delete("source"),{redirectUrl:r.href,source:o.source,microsoftUser:void 0}}catch{return{redirectUrl:void 0,source:void 0,microsoftUser:void 0}}}toString(){return this.url.href}};function JSe(e,t=!1){let n=null;try{n=new OR(e,t).toString()}catch{n=location.href}return n}var kPt=new URL("./register",gl()).toString(),qR=L.accessLevel==="local"?`https://${location.hostname}/_themes/docs.theme/master/en-us/_themes/global/identity-redirect.html`:`${location.origin}/_themes/docs.theme/master/en-us/_themes/global/identity-redirect.html`,IPt=ZSe(),PPt=location.origin,u6e=L.supportLevel==="production"?"18fbca16-2224-45f6-85b0-f7bf2b39b3f3":"f602d4fb-244f-48be-a746-435fac3917df",d6e="https://login.microsoftonline.com",p6e="common",qr,XSe=async()=>{let e={auth:{clientId:u6e,authority:`${d6e}/${p6e}`,redirectUri:qR},cache:{cacheLocation:"localStorage"},system:{loggerOptions:{loggerCallback:(t,n,o)=>{if(!o)switch(t){case Ut.Info:L.reviewFeatures&&console.info(n);return;case Ut.Verbose:L.reviewFeatures&&console.debug(n);return;case Ut.Warning:L.reviewFeatures?console.warn(n):Wo.trackTrace({message:n,severityLevel:Ut.Warning,iKey:"learn.msal"});return;case Ut.Error:L.reviewFeatures?console.error(n):Wo.trackTrace({message:n,severityLevel:Ut.Error,iKey:"learn.msal"});return}}}}};qr=new jT(e),await qr.initialize()};function ZSe(){return L.accessLevel==="local"?`https://${location.hostname}/_themes/docs.theme/master/en-us/_themes/global/identity-profile.html`:`${location.origin}/_themes/docs.theme/master/en-us/_themes/global/identity-profile.html`}function m6e(e,t=null,n=!1){let o=JSe(e,n),r=ZSe(),s=encodeURIComponent(o),i=Hi();return{scopes:["openid","profile","email"],prompt:t,redirectStartPage:r,nonce:i,redirectUri:qR,state:s}}function eCe(e,t=null,n=!1){return qr.setActiveAccount(null),qr.loginRedirect(m6e(e,t,n))}var g6e={scopes:["openid","profile","email"]};function tCe(){try{let e=f6e();return e?qr.acquireTokenSilent(Object.assign({},g6e,{prompt:"none",account:e})).then(t=>(Wk(t.idToken),!0)).catch(()=>(Kk(),!1)):Promise.resolve(!1)}catch{return Promise.resolve(!1)}}function f6e(e=nd()){if(!e)return null;let n=Zk(e).preferred_username;return n?qr.getAccount({username:n}):null}function wn(e=location.href,t="select_account",n=!1){eCe(e,t,n)}var h6e=location.origin;async function Ts(e=location.href,t=!1,n=!1){if(b6e(),t&&await R(D.auth.signOut),Exe(),ar()&&await jSe(),Xk(),Kk(),!n){let o=ua(e,h6e);location.href=`${o.origin}${o.pathname}${o.search}`}}function b6e(){localStorage.removeItem("gitHubToken")}async function l6(e,t,n,o){return Ee({behavior:Ce.SIGNIN,actionType:Re.OTHER,content:{autoIngest:!0,type:"learn-sso-attempt",loadTime:performance.now(),timeStamp:new Date().toISOString(),referrer:A.referrer,hasLoginHint:!!t,status:e,uuid:crypto.randomUUID(),errorCode:n,errorMessage:o}})}function nCe({sso:e,loginHint:t}={}){return async function(n=()=>!1){if(e)try{await Te,l6("started",t),en({context:"sso",source:e},"replaceState");let o={scopes:["openid","profile","email"]};t&&(o.loginHint=t);let r=await qr.ssoSilent(o);if(r)return Xk(),Wk(r.idToken),l6("completed",t),!0}catch(o){return o instanceof at&&await l6("error",t,o.errorCode,o.errorMessage),o instanceof Dn&&(Ts("",!1,!0),wn(window.location.href,"select_account")),n()}return n()}}function oCe(e=me().sso,t=me().login_hint){return(e||t)&&en({sso:null,login_hint:null},"replaceState"),{sso:e,loginHint:t}}function rCe(e=new URL(window.location.href)){let t=e.searchParams.get("redirectUrl");if(!t)return{};try{let n=new URL(t,"https://fakeurl.com"),o=n.searchParams.get("sso")??void 0,r=n.searchParams.get("login_hint")??void 0;return{sso:o,loginHint:r}}catch{return{}}}var HR=class{},BR=class{constructor(t,n,o=new Ve){this.stack=t,this.final=n,this.bus=o}async run(){let t=0,n=!0,o=this.final,r=[],s=this.bus.subscribe(HR,()=>n=!1),i=a=>(this.bus.publish(new HR),o=a||o,!1);try{for(;n&&this.stack[t];){let a=await this.stack[t](i);if(a||r[t]!==!1){r[t]=a,t+=a?-1:1;continue}n=!1}t>=0&&o(),s()}catch(a){throw s(),this.final(),a}}};var iCe=D.profile.me,aCe=oCe(),sCe=rCe(),fLt=sCe.sso?sCe:aCe,_6e=`${iCe}?isCPMCalled=true`,c6=new URL("./register",gl()).toString();async function uu(){let t=location.pathname.split("/").indexOf("edit")!==-1?_6e:iCe;try{let o=await fetch(N(t,{credentials:"include"}));if(o.ok&&o.status!==204){let r=await o.json();v.readUserProfile(r)}else v.setAnonymous()}catch{v.setAnonymous()}}async function lCe(e=()=>{v.setAnonymous()}){if(!S.userServices)return v.setAnonymous(),Promise.resolve();await new BR([y6e,v6e,nCe(aCe),tCe],e).run()}async function y6e(e=()=>!1){try{let t=ar();if(t){let n=od(t);return v.readUserFromToken(n),!0}return!1}catch(t){return t instanceof la?!1:e()}}async function v6e(e=()=>!1){try{let t=nd();if(t){od(t);let n=await sI(t);return Jk(n),!0}return!1}catch(t){return t instanceof la?!1:t instanceof Xx?location.pathname.endsWith("/external-sign-in.html")?!1:e(x6e):e()}}function x6e(){if(k("page_kind")!=="register"&&(v.setAnonymous(),!location.href.includes("/answers"))){let n=V({redirectUrl:location.href});location.href=ua(`${c6}?${n}`).href;return}let e=nd();if(!e)return;let t=od(e);v.mapIdTokenToProfile(t)}function cCe(e=location.href){let t=encodeURIComponent(e);location.href=`/_themes/docs.theme/master/en-us/_themes/global/permissioned-auth.html?changeDirectory=true&redirectUrl=${t}`}var gp=["a","area","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","summary","textarea:not([disabled])","[contenteditable]",'[tabindex]:not([tabindex="-1"])'];function zR(e){return e.matches(gp.join(","))}function GR(e,t=!0){return n=>{if(n.target instanceof Element&&!e.contains(n.target)){n.preventDefault();let o,r=Array.from(e.querySelectorAll(gp.join(",")));n.target.compareDocumentPosition(e)&(t?Node.DOCUMENT_POSITION_PRECEDING:Node.DOCUMENT_POSITION_FOLLOWING)&&r.reverse();let s=r.length;for(;s--;){let i=r[s],a=getComputedStyle(i);if(!i.hidden&&a.display!=="none"&&a.visibility!=="hidden"&&(i.offsetWidth>0||i.offsetHeight>0)){o=i;break}}o=o||e,o.focus()}}}function u6(e){let t=e.createElement("span");return t.setAttribute("tabindex","0"),t.classList.add("modal-tab-sentinel"),t}M();var VR=[];function du(e){VR.push(e)}function Ye(e,t,n,o){e.addEventListener(t,n,o);let r=()=>e.removeEventListener(t,n,o);return du(r),r}function uCe(e=document.documentElement,t=document.documentElement||document.body,n=(document.documentElement||document.body).scrollTop){return t.style.left="0",t.style.right="0",t.style.top=`-${n}px`,t.style.position="fixed",(o=!0)=>{t.style.left="",t.style.right="",t.style.top="",t.style.position="",o&&(e.scrollTop=n)}}var wS=e=>{let t=e.querySelector("[data-autofocus]");if(t&&zR(t)){t.focus();return}e.focus()},ge=class e{constructor(t,n="visibility-hidden-visual-diff"){this.restoreScrollbar=()=>{};this.clickHandler=t=>{let n=t.target,o=n.closest(".modal-pop-content"),r=n.closest(".modal-close");r?(t.preventDefault(),this.hide(r.getAttribute("data-modal-result"))):o&&(t.preventDefault(),this.popContent())};this.escHandler=t=>{if(t.key==="Escape"){if(A.activeElement&&A.activeElement.closest(".popover[open]"))return;t.preventDefault(),this.hide()}};this.setAriaLabelledBy=t=>{let n=t.querySelector("h1")||t.querySelector("h2")||t.querySelector("h3")||t.querySelector("h4")||t.querySelector("p")||t.querySelector("figcaption");n&&(n.id||(n.id="modal-heading"),t.setAttribute("aria-labelledby",n.id))};this.container=A.createElement("div"),this.container.setAttribute("tabindex","-1"),this.container.setAttribute("role","dialog"),this.container.setAttribute("aria-modal","true"),this.container.classList.add("modal","has-default-focus"),n&&this.container.classList.add(n),this.container.setAttribute("data-test-id","modal-container"),y(d` ${t} `,this.container),window.addEventListener("close-modals",()=>{this.hide()}),this.wrapper=A.createElement("div"),this.wrapper.setAttribute("data-bi-name","modal"),this.wrapper.insertAdjacentElement("afterbegin",this.container),this.contentStack=[t]}static get openCount(){return window.openModalCount||0}static set openCount(t){window.openModalCount=t}show(){return this.container.classList.contains("is-active")?this.openPromise:(e.openCount++,A.body.insertAdjacentElement("afterbegin",u6(A)),A.body.insertAdjacentElement("afterbegin",this.wrapper),this.wrapper.addEventListener("click",this.clickHandler),this.wrapper.addEventListener("keydown",this.escHandler),this.restoreScrollbar=uCe(A.documentElement,A.scrollingElement||A.documentElement,(A.scrollingElement||A.documentElement||A.body).scrollTop),this.container.classList.add("is-active"),A.body.insertAdjacentElement("afterbegin",u6(A)),this.setAriaLabelledBy(this.container),window.dispatchEvent(new CustomEvent("modal-show",{detail:{container:this.container}})),this.lastFocus=A.activeElement,this.focusHandler=GR(this.wrapper),Ye(window,"focus",this.focusHandler,!0),wS(this.container),this.openPromise=new Promise(t=>this.resolveOpen=t),this.openPromise)}hide(t=null){this.container.classList.contains("is-active")&&(e.openCount--,this.restoreScrollbar(),this.container.classList.remove("is-active"),this.wrapper.parentElement.removeChild(this.wrapper),Array.from(A.body.querySelectorAll(".modal-tab-sentinel")).forEach(n=>{A.body.removeChild(n)}),window.removeEventListener("focus",this.focusHandler),this.wrapper.removeEventListener("click",this.clickHandler),this.wrapper.removeEventListener("keydown",this.escHandler),this.lastFocus&&this.lastFocus instanceof HTMLElement&&this.lastFocus.focus(),this.lastFocus.closest("details")&&this.lastFocus.closest("details").querySelector("summary").focus(),this.resolveOpen(t),this.resolveOpen=void 0,this.openPromise=void 0)}updateContent(t,n=!0,o=!1){let r=this.container.querySelector(".modal-slide-container"),s=r.querySelector(".modal-slide:first-of-type");if(r===null||s===null)throw new Error(`The ${r===null?"modal-slide-container":"modal-slide"} class is missing!`);r.appendChild(t);let i={forward:Be.userDir==="ltr"?"slide-right":"slide-left",backward:Be.userDir==="ltr"?"slide-left":"slide-right"},a=o?i.forward:i.backward;n?(setTimeout(()=>{s.classList.add(a),t.classList.add(a)},50),setTimeout(()=>{t.classList.remove(a),l(this)},250)):l(this);function l(c){r.removeChild(s),wS(c.container),c.setAriaLabelledBy(c.container)}}pushContent(t){this.contentStack.push(t),y(d` ${this.contentElement} `,this.container),this.setAriaLabelledBy(this.container),wS(this.contentElement)}popContent(){if(this.contentStack&&this.contentStack.length<=1)throw new Error("Error getting modal content");this.contentStack.pop(),y(d` ${this.contentElement} `,this.container),wS(this.contentElement)}get contentElement(){return this.contentStack[this.contentStack.length-1]}};M();var ry={setItem(e,t,n){try{let o=n.getTime();if(Date.now()>=o)return;let r={value:t,expiry:o};J.setItem(e,JSON.stringify(r))}catch{}},getItem(e){try{let t=J.getItem(e);if(!t)return null;let n=JSON.parse(t);return typeof n.expiry!="number"||isNaN(n.expiry)||Date.now()>=n.expiry?(J.removeItem(e),null):n.value}catch{return null}},removeItem(e){J.removeItem(e)},clear(){J.clear()}};M();var QR=location.pathname.split("/").map(e=>e.toLowerCase()),T6e=QR.length>2?QR[2]:"",Ot=T6e==="test";function dCe(){let e=k("original_content_git_url")||k("original_ref_skeleton_git_url")||"",t=e;if(t!==""&&t.substring(0,8)==="https://")try{let n=new URL(e);t=`${n.pathname}${n.search}`}catch{t=t.substring(8)}return t}async function YR(){await Te;let e=document.getElementById("module-unit-feedback-link");if(!e)return;let t=document.getElementById("troubleshooting-guide"),n=jR();t.href=n,e.href=`${n}#report-feedback`}function jR(){let e=w6e(),t;return Ot?t=`/${b.data.userLocale}/test/training/support/troubleshooting${e}`:t=`/${b.data.userLocale}/training/support/troubleshooting${e}`,t}function w6e(){let e={uid:k("uid")||"",documentId:k("document_id")||"",versionIndependentDocumentId:k("document_version_independent_id")||"",platformId:k("platform_id")||"",contentPath:dCe(),url:location.href,author:k("ms.author")||""},t=Object.keys(e).reduce((n,o)=>{let r=e[o];return r===void 0||r.trim().length===0||n.push(`${o}=${encodeURIComponent(r)}`),n},[]);return t.length===0?"":`?${t.join("&")}`}function nf(e,t=wn){let n=new URL(e||location.href);n.searchParams.set("account-linking","1"),t(n.href,"login")}var pCe=6,ws={Cancel:{text:Fe,clickHandler:uo,modifiers:"button-primary",biName:"add-account-error-cancel"},ContactCustomerSupport:{text:Fee,clickHandler:()=>{location.href=jR()},modifiers:"button-primary button-filled",biName:"add-account-error-contact-support"},Ok:{text:lo,clickHandler:uo,modifiers:"button-primary button-filled",biName:"add-account-error-ok"},SelectAccount:{text:mfe,clickHandler:()=>nf(),modifiers:"button-primary button-filled",biName:"add-account-error-select-account"}};function S6e(e){return{accountAlreadyRegistered:{title:zge.replace("{account}",e),description:efe,buttons:[ws.Cancel,ws.SelectAccount]},alreadyHasCertProfileConnected:{title:ffe,description:hfe,buttons:[ws.ContactCustomerSupport]},alreadyLinked:{title:ofe,description:wU,buttons:[ws.Cancel,ws.SelectAccount]},moreThanOneAccountPerTenant:{title:jge,description:`${cfe} ${wU}.`,buttons:[ws.Ok]},moreThanOneMSAAccount:{title:ufe,description:rfe.replace("{account}",e),buttons:[ws.Ok]},needAtLeastOneAccountLinked:{title:afe,description:Zge,buttons:[ws.Ok]},numberOfAccounts:{title:Gge,description:Vge,buttons:[ws.Ok]},profileMergeRunning:{title:dfe,description:pfe,buttons:[ws.Ok]},profileMergeAlreadyComplete:{title:Efe,description:Ife,buttons:[ws.Ok]},profileMergeRecordNotFound:{title:Pfe,description:Lfe,buttons:[ws.Ok]},previousMergeAttemptPreventsAction:{title:Rfe,description:Mfe,buttons:[ws.Ok]},unexpectedError:{title:Ht,buttons:[ws.Ok]}}}function WR(e,t){let n=S6e(e)[t];return d` ${n.title?d`

${n.title}

`:null} ${n.description?d`

${q(n.description)}

`:null} ${n.buttons?d`
${n.buttons.map(o=>d``)}
`:null} `}function KR(e,t,n,o=[]){if(n.credentialId===e)return"alreadyLinked";if(n.authenticationModes.length>=pCe||o.length+n.authenticationModes.length>=pCe)return"numberOfAccounts";if((t==="MSA"||o.find(s=>s.type==="MSA")!==void 0)&&n.authenticationModes.find(s=>s.type==="MSA")!==void 0)return"moreThanOneMSAAccount";let r=Array.from(o.concat(n.authenticationModes).filter(s=>s.type==="AAD"),s=>s.tenantId);return new Set(r).size!==r.length?"moreThanOneAccountPerTenant":null}var C6e={Complete:{color:"success",icon:"docon-status-success-outline",text:Ffe},Failed:{color:"danger",icon:"docon-status-failure-outline",text:Ufe},Running:{color:"warning",icon:"docon-status-info-outline",text:zfe},Terminated:{color:"success",icon:"docon-status-success-outline",text:Gfe}};function p6(){let e=new Date(Date.now()+6e5);ry.setItem("check-merge-status","true",e)}function E6e(){return ry.getItem("check-merge-status")!==null}function A6e(){ry.removeItem("check-merge-status")}async function of(e=!1){if(!(!e&&!E6e()))try{let t=await dO();if(t===null||(d6(t),t!=="Running"))return;let n=setInterval(async()=>{t=await dO(),t!==null&&(d6(t),t!=="Running"&&(clearInterval(n),A6e()))},3e4)}catch{}}async function k6e(){try{await l_e()}catch{}}function I6e(e){return d`
`}async function d6(e){if(e==="Acknowledged")return;if(e==="Locked"){P6e();return}e==="Complete"&&En.type==="profile"&&await uu();let t=C6e[e];if(!t)return;let n=Hfe,o=Bfe;if(e==="Failed"){let l=await a_e();if(!l)return;let c=l.sourceUserName,u=l.destinationUserName;t.text=t.text.replace("{sourceUser}",Mt(c)),t.text=t.text.replace("{destinationUser}",Mt(u)),n=n.replace("{terminateMergeText}",EU),o=o.replace("{retryMergeText}",CU)}let r=d`

${Ofe}


${qfe}

  • ${q(n)}
  • ${q(o)}
`,s=document.querySelector("#add-account");if(!s)return;e==="Running"||e==="Failed"?(s.disabled=!0,s.classList.add("is-disabled")):(s.disabled=!1,s.classList.remove("is-disabled"));let i=document.querySelector(".accounts"),a=i.querySelector(".merging-status");i!==null&&(a===null&&(a=document.createElement("div"),a.classList.add("merging-status"),i.appendChild(a)),y(d`

${t.text}

${e==="Failed"?d`${r} ${I6e(a)}`:""}
${e==="Complete"?d``:null}
`,a))}function P6e(){let e=document.createElement("div"),t=new ge(e);y(d` `,e),t.show(),document.querySelector(".modal").addEventListener("click",o=>{o.preventDefault(),o.stopPropagation(),Ts(location.origin,!0)})}async function L6e(e){gCe(e,"Terminate")}async function R6e(e){gCe(e,"Retry")}async function mCe(e,t){e.classList.remove("is-loading");let n=document.createElement("div"),o=new ge(n);pu(o,t),await o.show(),e.disabled=!1}async function gCe(e,t){let n,o;t==="Terminate"?(n=e.querySelector("#terminate-failed-merge"),o=D.profile.userCancelMerge):(n=e.querySelector("#retry-failed-merge"),o=D.profile.userRetryMerge);try{n.classList.add("is-loading"),n.disabled=!0;let r=await M6e(o);if(r.hasError){let s=r.errors[0]||"unexpectedError";await mCe(n,s)}else t==="Terminate"?d6("Terminated"):location.reload()}catch{await mCe(n,"unexpectedError")}}async function M6e(e){let n=await R(N(e,{method:"POST"}));if(ee(n),n.ok)return ca(n,!1),{hasError:!1};if(n.status===400){let o=await n.json();if(o.errorCode==="ProfileMergeRunning")return{hasError:!0,message:n.statusText,errors:["profileMergeRunning"]};if(o.errorCode==="ProfileMergeComplete")return{hasError:!0,message:n.statusText,errors:["profileMergeAlreadyComplete"]};throw new Error(`Unexpected response status ${n.status} for ${e}`)}else{if(n.status===404)return{hasError:!0,message:n.statusText,errors:["profileMergeRecordNotFound"]};throw new Error(`Unexpected response status ${n.status} for ${e}`)}}function pu(e,t="unexpectedError",n=""){y(d` `,e.contentElement),e.show()}M();var JR,XR;async function fCe(e){m6(e)&&await D6e()}function m6(e){let t=k("page_type")==="profile",n=k("page_kind");if(!e.isAuthenticated||t&&n!=="register")return!1;let o=!1;return e.acceptedPrivacyNotice.getTime()&&(o=e.userType==="standard"||new Date(e.acceptedPrivacyNotice)>=aO),!o}async function D6e(){if(!JR){let e=A.createElement("div");e.classList.add("modal-content"),y(d` `,e),JR=new ge(e),XR=e.querySelector("#consentModal"),hCe()}await Te,JR.show()}function hCe(){let e=v.userType==="microsoft"?Ale:xh,t=()=>r_e(),n=d` `;y(n,XR)}function $6e(){let e=d` `;y(e,XR),N6e(XR)}async function N6e(e){let t=e.querySelector("#error-message"),n=e.querySelector("#consent-delete-acct");t.setAttribute("hidden","hidden"),n.onclick=async()=>{n.classList.add("is-loading");try{await n_e()?(JR.hide(),await Ts(location.origin,!0)):t.removeAttribute("hidden")}catch(o){throw t.removeAttribute("hidden"),new Error(`error: ${o.message}`)}finally{n.classList.remove("is-loading")}}}function F6e(e,t,n,o){return o&&o.length!==0||e==="microsoft"?kle.replace("{email}",o||n):t==="AAD"||e==="aad"?V7.replace("{email}",n):Dse}async function bCe(e,t,n){let o=()=>n.setAttribute("data-authenticated",e.isAuthenticated.toString());o(),e.subscribe(xn,o),await t,n.setAttribute("data-auth-status-determined","true")}var et={left:37,up:38,right:39,down:40,home:36,end:35,escape:27,enter:13,space:32,eight:56,numPadAsterisk:106,a:65,b:90};var qa="docs-sign-in",g6="docs-sign-out",_Ce="docs-change-directory";function yCe(e){O6e(e),e.addEventListener("click",U6e)}function U6e(e){if(!(e.target instanceof Element))return;let t=e.target.closest(`.${qa}, .${g6}, .${_Ce}`);if(!t)return;let n=t.classList.contains(qa);e.preventDefault();let r=t instanceof HTMLAnchorElement&&t.matches('a[href]:not([href="http://approjects.co.za/?big="]):not([href="http://approjects.co.za/?big=#"])')?t.href:location.href;if(t.classList.contains(_Ce))cCe(r);else if(n){let s=b.data.isPermissioned;wn(r,"select_account",s)}else Ts(r,!0)}function O6e(e){let t=n=>{if(!(n.target instanceof Element))return;let o=n.target.closest(`.${qa}, .${g6}`);if(!o)return;let r=o.classList.contains(qa);n.target.setAttribute("data-m",JSON.stringify({cN:r?qa:g6,bhvr:r?100:101}))};e.addEventListener("touchstart",t,!0),e.addEventListener("pointerdown",t,!0),e.addEventListener("keyup",n=>{n.which===et.enter&&t(n)},!0)}var f6,fe=new Promise(e=>f6=e);async function vCe(e){if(!S.userServices){f6(),Te.then(()=>{let t=A.getElementById("docs-sign-in-container-item");t&&(t.hidden=!0)});return}await XSe(),await qr.handleRedirectPromise(),bCe(v,fe,A.documentElement),yCe(A.documentElement),S.permissionedContent&&Te.then(t=>{A.documentElement.querySelectorAll("[data-permissioned-content]").forEach(n=>n.hidden=!1)}),v.subscribe(xn,async()=>{await Promise.all([e.siteHeaderRendered,Te]),oI(A.documentElement,v)}),lCe().then(f6),fe.then(async()=>{if(v.userType!=="standard"&&fCe(v),!v.isAuthenticated)return;if(!m6(v)){await Te,of();return}let t=new URL("./register",gl(b.data.userLocale));if(location.pathname===t.pathname)return;let n=V({redirectUrl:location.href});location.href=`${t.toString()}?${n}`})}M();function q6e(e,t){let n={};return e.querySelectorAll("li > a").forEach(r=>{if(r.textContent){let s=t?r.textContent="default":r.textContent.trim().slice(1,-1).split("|");if(s.length===2){let i=s[0].trim(),a=s[1].trim(),l=r.href;i&&a&&l&&(n[i]||(n[i]={}),n[i][a]=l)}}}),n}function xCe(e){let t=document.createElement("a");return t.href=e,t.host===""&&(t.href=t.href),t.protocol+"//"+t.host+t.pathname}function H6e(e){let t=window.location.href.toLowerCase(),n=xCe(t);for(let o in e)for(let r in e[o]){let s=e[o][r].toLowerCase();if(xCe(s).localeCompare(n,void 0,{sensitivity:"base"})===0)return[o,r]}return null}function B6e(e,t,n){function o(u){return[u,u]}function r(u){window.location.href=u}let s=q6e(e,t),i=H6e(s),a=document.createElement("div");a.classList.add("azureselector"),a.classList.add("display-none-print");let l=e.getAttribute("title1"),c=TCe(a,l);if(h6(c,s,o,!1,n),i&&(c.value=i[0]),t)c.addEventListener("change",()=>{c.value&&r(s[c.value].default)});else{let u=e.getAttribute("title2"),p=TCe(a,u);c.addEventListener("change",()=>{h6(p,c.value?s[c.value]:{},o,!1,n)}),p.addEventListener("change",()=>{c.value&&p.value&&r(s[c.value][p.value])}),h6(p,c.value?s[c.value]:{},o,!1,n),i&&(p.value=i[1])}e.insertAdjacentElement("afterend",a)}function wCe(){let e=hY,t=document.querySelector(".op_single_selector"),n=document.querySelectorAll(".op_multi_selector");t&&z6e(t),n.forEach(o=>{B6e(o,!1,e)})}function z6e(e){let t=e.parentNode,n=e.getAttribute("title1"),o=Array.from(document.querySelectorAll(".op_single_selector > ul > li")),r=Array.from(document.querySelectorAll(".op_single_selector > ul > li > a")),s=[];r.map(c=>{let u={title:c.textContent,href:c.href};s.push(u)});let i=o[0].firstElementChild.getAttribute("href")?G6e(s):o.shift().textContent,a=document.createElement("nav");a.classList.add("margin-top-xxs","display-none-print"),a.setAttribute("aria-label",n||"Dropdown menu"),t.replaceChild(a,e);let l=V6e(i,s,n);y(l,a)}function G6e(e){let t=decodeURI(location.pathname).toLowerCase();for(let n of e)if(new URL(n.href,location.href).pathname.toLowerCase()===t)return n.title;return e[0].title}function V6e(e,t,n){let o=d``,r=[];n&&(o=d`${n}`);let s="padding-xxs";for(let i of t)r.push(d`
  • ${i.title}
  • `);return d` ${o} `}function TCe(e,t){let n=document.createElement("div");n.classList.add("display-inline-block-tablet","margin-block-xxs","margin-right-xs-tablet");let o=_t(),r=d`
    ${t?d` `:""}
    `;return y(r,n),e.appendChild(n),n.querySelector("select")}function h6(e,t,n,o,r){let s=[];o||s.push(d``);for(let i in t){let a=n(i,t[i]);a&&a.length===2&&s.push(d``)}y(s,e)}var Hr={value:null};async function b6(e,t,n){let o={scopes:[e],forceRefresh:!0,authority:`https://login.microsoftonline.com/${t}`};return await SCe(o,n)}async function SCe(e,t){try{return await qr.acquireTokenSilent(e)}catch(n){if(Wo.trackTrace({message:`Acquire Token Silent Failure - ${v?.userName} - ${e.scopes.toString()} - ${e.authority} - ${n?.message}`}),Wo.trackException(n),n instanceof Dn&&t.noInteraction===!1)try{return await qr.acquireTokenPopup(e)}catch(o){return Wo.trackTrace({message:`Acquire Token Popup Failure - ${v?.userName} - ${e.scopes.toString()} - ${e.authority} - ${o?.message}`}),Wo.trackException(o),null}return null}}async function Q6e(e){if(!(e.username.includes("@")&&e.username.includes(".")))throw new Error(`Account username is not an email address: ${e.username}`);let t=e.username.split("@"),n=t[1]?t[1].split(".")[0]:"",r=`https://login.windows.net/${`${t[0]}${n}.onmicrosoft.com`}/.well-known/openid-configuration`,i=await(await R(r,{method:"GET"})).json();if("error"in i&&i.error==="invalid_tenant")throw new Error(`${i.error}: ${i.error_description}`);if("issuer"in i)return i.issuer.split("/")[3];throw new Error("Issuer not found in OpenID configuration")}function Y6e(e){return![Zbe,e_e,Xbe].includes(e)}var SS={async tryLoadTokens(e={noInteraction:!0}){if(await fe,!v.isAuthenticated)return Wo.trackTrace({message:`Try Load Token User Not Authenticated - ${v?.userName}`}),null;try{let t=nd(),o=Zk(t).preferred_username,r=qr.getAccount({username:o});qr.setActiveAccount(r);let s=k("interactive")?.toLowerCase(),i=s&&(s==="powershell"||s==="bash"),a=k("rest_product")?.toLowerCase()??"",l=r?.tenantId===nI||r?.homeAccountId.split(".")[1]===nI,c=[],u="",p=null;try{u=l?await Q6e(r):"organizations"}catch{return c}let m={scopes:["https://management.azure.com/user_impersonation"],forceRefresh:!0,authority:`https://login.microsoftonline.com/${u}`,redirectUri:qR},g=await SCe(m,e),f="https://management.azure.com/tenants?api-version=2020-01-01",_={method:"GET",headers:{Authorization:`Bearer ${g.accessToken}`}};if(p=await(await R(f,_)).json(),!p||!p.value)return c;p.value=p.value.filter(T=>Y6e(T.tenantId));for(let T of p.value){if(!T.tenantId)continue;let x={access_token:"",access_token_type:"",expires_at:"",msgraph_access_token:"",msgraph_access_token_type:"",msgraph_expires_at:"",key_vault_access_token:"",key_vault_access_token_type:"",key_vault_expires_at:"",display_name:T.displayName,default_domain:T.defaultDomain,tenant_id:T.tenantId},w={arm:"https://management.core.windows.net/user_impersonation","business-assist-api":"https://business-assist.microsoft.com/.default","dev-center":"https://devcenter.azure.com/.default",learn:"https://learn.microsoft.com/.default",fabric:"https://api.fabric.microsoft.com/.default","partner-center-rest":"https://api.partnercenter.microsoft.com/.default","power bi":"https://analysis.windows.net/powerbi/api/.default","health-dataplane":"https://deid.azure.com/.default"},I=await b6(w[a]??w.arm,T.tenantId,e);if(x.access_token=I?.accessToken,x.access_token_type=I?.tokenType,x.expires_at=I?.expiresOn?.valueOf().toString()??"",i){let E=await b6("https://vault.azure.net/user_impersonation",T.tenantId,e);x.key_vault_access_token=E?.accessToken,x.key_vault_access_token_type=E?.tokenType,x.key_vault_expires_at=E?.expiresOn.valueOf().toString();let Q=await b6("https://graph.microsoft.com/.default",T.tenantId,e);x.msgraph_access_token=Q?.accessToken,x.msgraph_access_token_type=Q?.tokenType,x.msgraph_expires_at=Q?.expiresOn.valueOf.toString()}c.push(x)}return c}catch(t){return Wo.trackTrace({message:`Try Load Token Failure - ${v?.userName} - ${t?.message}`}),Wo.trackException(t),null}}};var j6e=5*60*1e3,CCe=0;function ACe(){document.addEventListener("visibilitychange",ECe,{passive:!0}),ECe()}function ECe(){document.visibilityState==="visible"?CCe=setInterval(W6e,j6e):clearInterval(CCe)}function W6e(){Hr.value&&SS.tryLoadTokens().then(e=>{let t=e.find(n=>n.default_domain===Hr.value.default_domain);t&&(Hr.value=t)})}function kCe(){return S.banner?(document.querySelectorAll("[data-banner-dismiss]").forEach(t=>{let n=t.closest(".banner");n&&(n.hidden=J6e(t.getAttribute("data-banner-dismiss")))}),document.addEventListener("click",K6e)):void 0}function K6e(e){let t=e.target instanceof HTMLElement&&e.target.closest("button[data-banner-dismiss]");if(!t)return;let n=t.getAttribute("data-banner-dismiss"),o=JSON.parse(J.getItem("dismissed-banners"));return o?(o.push(n),J.setItem("dismissed-banners",JSON.stringify(o))):J.setItem("dismissed-banners",JSON.stringify([n]))}function J6e(e){let t=JSON.parse(J.getItem("dismissed-banners"));return t?t.some(n=>n===e):!1}function ICe(e){return R(`${D.monikers}/bymoniker/${encodeURIComponent(e)}`).then(t=>t.ok?t.json().then(n=>(eze(e,n),n)):Promise.reject(null)).then(t=>X6e(t)).catch(()=>_6(e))}function _6(e){return{displayName:e,products:[{displayName:e,packages:[{displayName:e,isDefault:!0,moniker:e,versionDisplayName:e,isDeprecated:!1,isPrerelease:!1}]}]}}function X6e(e){return{displayName:e.familyName,products:e.products.map(({productName:t,packages:n})=>({displayName:t,packages:n.sort((o,r)=>r.order-o.order).filter(o=>Z6e(o)).map(o=>({displayName:o.monikerDisplayName,isDefault:o.isDefault,moniker:o.monikerName,versionDisplayName:o.versionDisplayName,isDeprecated:o.isDeprecated,isPrerelease:o.isPrerelease}))}))}}function Z6e(e){return b.data.brand==="mooncake"?e.monikerName!=="azure-cli-2017-03-09-profile":!0}function eze(e,t){if(!t.products.find(n=>!!n.packages.find(o=>o.monikerName===e)))throw new Error(`The family "${t.familyName}" does not contain the moniker "${e}".`)}var sy="moniker-changed",PCe="same-moniker-selected",LCe=()=>{let e=me().view;return e===void 0?"":e.toLowerCase()},CS=LCe();function ui(){return CS}function ZR(e){if(e===CS){se.dispatchEvent(new CustomEvent(PCe,{detail:{moniker:CS}}));return}CS=e,se.dispatchEvent(new CustomEvent(sy,{detail:{moniker:CS}}))}se.addEventListener("popstate",()=>ZR(LCe()));var mu={"ar-sa":"\u0627\u0644\u0639\u0631\u0628\u064A\u0629","eu-es":"Euskara","bs-latn-ba":"Bosanski","bg-bg":"\u0411\u044A\u043B\u0433\u0430\u0440\u0441\u043A\u0438","ca-es":"Catal\xE0","zh-cn":"\u4E2D\u6587 (\u7B80\u4F53)","zh-hk":"\u4E2D\u6587 (\u7E41\u9AD4 \u9999\u6E2F\u7279\u5225\u884C\u653F\u5340)","zh-tw":"\u4E2D\u6587 (\u7E41\u9AD4)","hr-hr":"Hrvatski","cs-cz":"\u010Ce\u0161tina","da-dk":"Dansk","nl-be":"Nederlands (Belgi\xEB)","nl-nl":"Nederlands","en-au":"English (Australia)","en-ca":"English (Canada)","en-in":"English (India)","en-ie":"English (Ireland)","en-my":"English (Malaysia)","en-nz":"English (New Zealand)","en-sg":"English (Singapore)","en-za":"English (South Africa)","en-gb":"English (United Kingdom)","en-us":"English (United States)","et-ee":"Eesti","fil-ph":"Filipino","fi-fi":"Suomi","fr-be":"Fran\xE7ais (Belgique)","fr-ca":"Fran\xE7ais (Canada)","fr-fr":"Fran\xE7ais","fr-ch":"Fran\xE7ais (Suisse)","gl-es":"Galego","ka-ge":"Georgian","de-at":"Deutsch (\xD6sterreich)","de-de":"Deutsch","de-ch":"Deutsch (Schweiz)","el-gr":"\u0395\u03BB\u03BB\u03B7\u03BD\u03B9\u03BA\u03AC","he-il":"\u05E2\u05D1\u05E8\u05D9\u05EA\u200F","hi-in":"\u0939\u093F\u0902\u0926\u0940","hu-hu":"Magyar","is-is":"\xCDslenska","id-id":"Bahasa Indonesia","ga-ie":"Irish (Ireland)","it-it":"Italiano","it-ch":"Italiano (Svizzera)","ja-jp":"\u65E5\u672C\u8A9E","kk-kz":"\u049A\u0430\u0437\u0430\u049B","ko-kr":"\uD55C\uAD6D\uC5B4","lv-lv":"Latvie\u0161u","lt-lt":"Lietuvi\u0173","lb-lu":"Luxembourgish (Luxembourg)","ms-my":"Bahasa Malaysia","mt-mt":"Maltese (Malta)","nb-no":"Norsk","pl-pl":"Polski","pt-br":"Portugu\xEAs (Brasil)","pt-pt":"Portugu\xEAs (Portugal)","ro-ro":"Rom\xE2n\u0103","ru-ru":"\u0420\u0443\u0441\u0441\u043A\u0438\u0439","sr-cyrl-rs":"\u0421\u0440\u043F\u0441\u043A\u0438 (\u0421\u0440\u0431\u0438\u0458\u0430 \u0438 \u0426\u0440\u043D\u0430 \u0413\u043E\u0440\u0430)","sr-latn-rs":"Srbija - Srpski","sk-sk":"Sloven\u010Dina","sl-si":"Slovenski","es-mx":"Espa\xF1ol (M\xE9xico)","es-es":"Espa\xF1ol (Espa\xF1a)","sv-se":"Svenska","th-th":"\u0E44\u0E17\u0E22","tr-tr":"T\xFCrk\xE7e","uk-ua":"\u0423\u043A\u0440\u0430\u0457\u043D\u0441\u044C\u043A\u0430","vi-vn":"Ti\xEA\u0301ng Vi\xEA\u0323t"};var fp=/^\/([a-z]{2,3}-(?:[a-z]{4}-)?[a-z]{2})(\/|$)/i;var tze=["ContentPage","Conceptual","Module","ModuleUnit","LearningPath"];function y6(e){return!!mu[e]}function ES(e){let t=fp.exec(e);return t===null?"en-us":t[1].toLowerCase()}function qe(e,t,n=!0){return!e||!y6(t)||e.indexOf("http://")===0||e.indexOf("https://")===0||e.indexOf("//")===0?e:fp.test(e)?n?iy(e,t):e:"/"+t+e}function mr(e){return e.replace(fp,"/")}function iy(e,t){return e.replace(fp,`/${t}$2`)}async function RCe(){let e=b.data.userLocale,t=b.data.contentLocale,n=Be.machineTranslated;b.data.userLocaleName=mu[e],await Te,t!==e&&/^en/.test(t)&&!/^en/.test(e)&&!n&&tze.indexOf(b.data.pageTemplate)!==-1&&Gt(rze(b.data.pageTemplate,e)),v6(e)}function v6(e){Array.from(document.querySelectorAll(".locale-selector-link")).forEach(t=>nze(t,e))}function nze(e,t){let n=e.querySelector(".local-selector-link-text"),o=mu[t];n?n.textContent=o:e.textContent=o,e.addEventListener("mousedown",()=>e.href=`/${t}/locale?target=${encodeURIComponent(location.href)}`),e.addEventListener("keydown",()=>e.href=`/${t}/locale?target=${encodeURIComponent(location.href)}`),e.href=`/${t}/locale?target=${encodeURIComponent(location.href)}`;let r=Oee.replace("{language}",o);e.setAttribute("aria-label",r)}function oze(e){return es("localization_scopes").indexOf(e)!==-1}function rze(e,t){let n=oze(t),o=mu[t];return e==="LearningPath"?n?Zse.replace("{language}",o):eie.replace("{language}",o):e==="Module"||e==="ModuleUnit"?n?oie.replace("{language}",o):rie.replace("{language}",o):Xse}var sze=/^([.\/]*\/)?([^\?#]*)?(\?[^#]*)?(#.*)?$/,AS=/(^|\/)index$/i,ize=L.accessLevel==="local"&&b.environment===void 0,x6={};function aze(e,t){let{origin:n,pathname:o}=eO(e),r={"/":`/${t}/`},s=o.split("/"),i="";for(;s.length>2;){s.pop();let a=s.join("/")+"/";r[i]=a,r["./"+i]=a,i+="../"}return{origin:n,relMap:r}}var ay=class{constructor(t,n,o,r,s){this.external=t;this.origin=n;this.pathname=o;this.search=r;this.hash=s}get href(){return this.origin+this.pathname+this.search+this.hash}originAndPathnameEquals({origin:t,pathname:n}){return this.pathname.length===n.length&&this.origin.length===this.origin.length&&this.pathname.localeCompare(n,void 0,{sensitivity:"base"})===0&&this.origin.localeCompare(t,void 0,{sensitivity:"base"})===0}originAndPathnameStartsWith({origin:t,pathname:n}){return this.pathname.length>=n.length&&(n[n.length-1]==="/"||this.pathname[n.length]===void 0||this.pathname[n.length]==="/")&&this.origin.length===t.length&&this.pathname.substr(0,n.length).localeCompare(n,void 0,{sensitivity:"base"})===0&&this.origin.localeCompare(t,void 0,{sensitivity:"base"})===0}};function MCe(e,t,n=b.data.userLocale,o=oe.origin){let[r,s,,,i,a]=e;if(r==="/"&&s==="/"||i===":"||a===":"){let{origin:x,pathname:w,search:I,hash:E}=eO(e);if(x!==o)return new ay(!0,x,w,I,E);let Q=fp.exec(w);return(!Q||!y6(Q[1]))&&(w="/"+n+w),w=decodeURIComponent(w.replace(AS,"$1")),new ay(!1,x,w,I,E)}x6[t]===void 0&&(x6[t]=aze(t,n));let{origin:l,relMap:c}=x6[t],u=sze.exec(e),[,p="",m="",g="",f=""]=u,_=c[p];ize&&(m=m.replace(/\.html$/i,""));let h=m.replace(AS,"$1");h.indexOf("%")!==-1&&(h=decodeURIComponent(h));let T=_+h;return new ay(!1,l,T,g,f)}function eM({origin:e,pathname:t,search:n,hash:o}=oe){return t=T6(t),t=decodeURIComponent(t).toLowerCase().replace(AS,"$1"),new ay(!1,e,t,n,o)}function T6(e){return e.replace(/\/+/g,"/")}var lze=eM(),nM=k("moniker_definition_rel"),tM,w6=new Map,cze=!!nM&&nM.endsWith(".json");function uze(){if(!nM)return null;let e=MCe(nM,lze.href);return dze(e.href)}function dze(e){let t={family:null,monikerSet:new Set};if(!e)return Promise.resolve(t);let n;return w6.has(e)?n=w6.get(e):(n=R(e,{credentials:"include"}).then(o=>o.json()).then(o=>pze(o)).catch(()=>t),w6.set(e,n)),n}function pze(e){let t=null,n=new Set,o=ui(),r=e.products.reduce((s,i)=>{let a=i.familyName;return s[a]=s[a]||[],s[a].push(i),s},{});return Object.keys(r).forEach(s=>{let i="",a=!1,l=r[s];l.forEach(u=>{u.monikers.forEach(p=>{p.isDefault&&(i=p.monikerName),p.monikerName===o&&(a=!0,t=mze(s,l))})});let c=a?o:i;c&&n.add(c)}),{family:t,monikerSet:n}}async function DCe(){if(tM===void 0){let e=ui();if(cze){let t=await uze();tM=Promise.resolve(t?.family??_6(e))}else tM=ICe(e)}return tM}function mze(e,t){return{displayName:e,products:t.map(n=>({displayName:n.productName,packages:n.monikers.sort((o,r)=>r.order-o.order).map(o=>({moniker:o.monikerName,displayName:o.monikerDisplayName??o.monikerName,versionDisplayName:o.versionDisplayName??o.monikerName,isDefault:o.isDefault??!1,isDeprecated:o.isDeprecated??!1,isPrerelease:o.isPrerelease??!1}))}))}}var S6;function oM(){return S6===void 0&&(S6=DCe()),S6}function rM(e,t){for(let n of e.products)for(let o of n.packages)if(o.moniker===t)return o;return null}var ly=null;async function $Ce(e=b.data.pageTemplate){NCe();let t=me(),n=t.viewFallbackFrom,o=t.branchFallbackFrom,r=t.branch;if(n&&e!=="NotFound"){gze(n);return}o&&r&&fze(o,r)}async function gze(e){let t=await oM(),n=rM(t,e);n&&(ly=Gt(Ece.replace("{moniker}",Mt(n.displayName))))}function fze(e,t){ly=Gt(vY.replace("{branchFallbackFrom}",Mt(e)).replace("{branch}",Mt(t)))}function NCe(){if(ly){let e=ly.firstElementChild;if(!e)return;ly.removeChild(e),ly=null,Zt()}}M();var sM=[];var kS="banner-instructions",IS="banner-instructions-locale",hze=1e3*60*60;function FCe(e=S.temporaryClientSideEventBanners){if(e){try{E6()}catch{J.removeItem(kS),J.removeItem(IS)}C6()}}async function C6(e=R,t=new Date){let n=UCe();if(n&&n.date.getTime()+hze>Date.now())return;let o=L.reviewFeatures&&location.pathname.startsWith("/en-us/test/")?"test/":"",r=new URL(`/${b.data.userLocale}/${o}banners/index.json`,location.origin);if(L.reviewFeatures){let a=new URLSearchParams(location.search).get("api-branch")??"main";r.searchParams.set("branch",a)}let s=await e(r.href),{banners:i=[]}=s.ok?await s.json():{};J.setItem(kS,JSON.stringify({date:t,banners:i})),J.setItem(IS,b.data.userLocale)}function E6(){let e=UCe();if(!e)return;let t=b.data.userLocale,n=e.banners.filter(o=>o.location==="sectional"&&o.scope.accessLevels.includes("online")&&o.content.text&&(!o.scope.locales||o.scope.locales.includes(t))).map(({uid:o,scope:r,content:s,displayType:i})=>{let[a,l]=s.text.split("|");l||(l=a,a=""),a=a.trim(),l=l.trim();let c=r.paths.map(g=>{let f=!g.endsWith("*");return{path:g.substring(1).replace(/\*/g,""),fullPathMatch:f}}),u="",p="";return s.link&&(u=s.link.title,p=s.link.href.startsWith("/")?`/${t}${mr(s.link.href)}`:s.link.href),{id:o,startTime:r.startDate,endTime:r.endDate,bannerPaths:c,eventTitle:a,eventDescription:l,linkHref:p,linkText:u,imageUrl:s.imageUrl,displayType:i,displayedEventStartDate:r.displayedEventStartDate,displayedEventEndDate:r.displayedEventEndDate}});sM.push(...n)}function UCe(e=b.data.userLocale){let t=J.getItem(kS),n=J.getItem(IS);if(n&&n!==e||!t)return J.removeItem(kS),J.removeItem(IS),null;try{let r=JSON.parse(t);if(r.date=new Date(r.date),isNaN(r.date.getTime()))return null;for(let s of r.banners){if(s.scope.startDate=new Date(s.scope.startDate),s.scope.endDate=new Date(s.scope.endDate),isNaN(s.scope.startDate.getTime())||isNaN(s.scope.endDate.getTime()))return null;s.scope.displayedEventStartDate&&s.scope.displayedEventEndDate&&(s.scope.displayedEventStartDate=new Date(s.scope.displayedEventStartDate),s.scope.displayedEventEndDate=new Date(s.scope.displayedEventEndDate))}return r}catch{J.removeItem(kS),J.removeItem(IS)}return null}M();var rf=Intl.DateTimeFormat().resolvedOptions().timeZone;function tn(e){let t=Math.floor(e/60),n=e%60;return t===0?Th.replace("{numberOfMinutes}",n.toString()):n===0?`${t} ${Yae}`:Wae.replace("{numberOfHours}",t.toString()).replace("{numberOfMinutes}",n.toString())}var iM=new Intl.DateTimeFormat(b.data.userLocale,{hour:"numeric",minute:"numeric"}),c1t=new Intl.DateTimeFormat(b.data.userLocale,{month:"long",day:"numeric"}),u1t=new Intl.DateTimeFormat(b.data.userLocale,{month:"short",day:"numeric"}),d1t=new Intl.DateTimeFormat(b.data.userLocale,{month:"short",year:"2-digit"}),OCe=new Intl.DateTimeFormat(b.data.userLocale,{month:"long",year:"numeric"}),p1t=new Intl.DateTimeFormat(b.data.userLocale,{day:"numeric"}),m1t=new Intl.DateTimeFormat(b.data.userLocale,{month:"short"}),g1t=new Intl.DateTimeFormat(b.data.userLocale,{weekday:"short"}),f1t=new Intl.DateTimeFormat(b.data.userLocale,{year:"numeric"}),gn=new Intl.DateTimeFormat(b.data.userLocale,{month:"long",day:"numeric",year:"numeric"}),h1t=new Intl.DateTimeFormat(b.data.userLocale,{weekday:"long",month:"long",day:"numeric",year:"numeric"});function qCe(e=rf){return new Intl.DateTimeFormat(b.data.userLocale,{month:"long",day:"numeric",year:"numeric",timeZone:e})}function gu(e=rf){return new Intl.DateTimeFormat(b.data.userLocale,{month:"short",day:"numeric",year:"numeric",timeZone:e})}function HCe(e=rf){return new Intl.DateTimeFormat(b.data.userLocale,{month:"2-digit",day:"2-digit",year:"numeric",timeZone:e})}function BCe(e=rf){return new Intl.DateTimeFormat(b.data.userLocale,{month:"short",day:"numeric",year:"numeric",hour:"numeric",minute:"numeric",timeZone:e})}function A6(e=rf){return new Intl.DateTimeFormat(b.data.userLocale,{month:"short",day:"numeric",hour:"numeric",timeZone:e})}function zCe(e){return Math.floor(e/1e3/60)}function aM(e){let t="",n=0,o="",r=Math.floor(e/168),s=Math.floor(e%168/24),i=e-r*168-s*24;if(r>0&&n++,s>0&&n++,i>0&&n++,n>0&&n--,r>0){let l=r===1?Nk:Fk;a(),t+=r.toString()+" "+l+o,o=""}if(s>0){let l=s===1?XA:_h;a(),t+=s.toString()+" "+l+o,o=""}if(i>0){let l=i===1?o0:il;t+=i.toString()+" "+l}return t;function a(){n>0&&(o=", ",n--)}}function Ss(e){if(!e)return"";let t=e.getMonth()+1,n=e.getDate();return`${e.getFullYear()}-${t>9?t:`0${t}`}-${n>9?n:`0${n}`}`}function cy(e){let t="h",n="m",o="s",r=0,s=e.indexOf(t)!==-1,i=e.indexOf(n)!==-1,a=e.indexOf(o)!==-1;return r+=s?Number(e.substring(0,e.indexOf(t)))*3600:0,r+=i?s?Number(e.substring(e.indexOf(t)+1,e.indexOf(n)))*60:Number(e.substring(0,e.indexOf(n)))*60:0,r+=a?Number(i?e.substring(e.indexOf(n)+1,e.indexOf(o)):s?e.substring(e.indexOf(t)+1,e.indexOf(o)):e.substring(0,e.indexOf(o))):0,r}function bze(e,t=new Date){return(e.getTime()-t.getTime())/1e3}function GCe(e,t=new Date){return Math.max(0,bze(e,t))}M();function VCe(e,t,n,o){let r=o?d`${o}`:"",s=S.rightRailSticky?"":d``;return d` ${s}
    ${e}
    ${t}
    ${r}
    `}function QCe(e,t){return d`

    ${t}

    `}function YCe(e,t,n,o,r,s){let i=o?d`

    ${o}

    `:"",a=n?d`

    ${e}

    `:d`

    ${e}

    `;return d` ${i} ${a} `}function jCe(e,t=!0){return d`

    ${e}

    `}function WCe(e){return d` `}function KCe(){if(!S.connectedExperiences)return;let e=document.getElementById("ms--additional-resources-heading");e&&(e.hidden=!1);let t=document.getElementById("ms--additional-resources-mobile-heading"),n=document.querySelector("#ms--additional-resources-mobile > hr");t&&n&&(n.hidden=!1,t.hidden=!1)}function _ze(e){let t=A6().format(e.displayedEventStartDate),n=A6().format(e.displayedEventEndDate),o=QCe("docon-special-event",mie),r=e.eventTitle?YCe(e.eventTitle,!1,e.linkHref):"",s=e.eventTitle?"margin-top-xs":"",i=d` ${e.displayType==="event-image-card"&&e.imageUrl?WCe(e.imageUrl):""} ${r}

    ${t} - ${n}

    ${jCe(e.eventDescription,!1)} ${e.linkText} `;return VCe(o,i,!1)}async function JCe(){!S.connectedExperiences&&!S.temporaryClientSideEventBanners||(await C6(),E6())}function XCe(e){let t=Array.from(document.querySelectorAll("#right-rail-events, #right-rail-events-mobile"));KCe();for(let n of t)y(_ze(e[0]),n),n.hidden=!1,Zt()}var yze=["Ask","ApiBrowserPage","Architecture","AssessmentsBrowse","AssessmentsLanding","AssessmentsHome","AssessmentsSession","CareerPath","Challenge","CollectionsHome","Conceptual","ContentBrowserPage","ContentPage","Course","Directory","FAQ","HowTo","Hub","Landing","LearnHome","LearningPath","Marketing","Module","Moderation","ProductList","Reference","Question","QuestionEdit","QuestionList","Sample","SearchPage","Show","SkillingPlans","Tag","TagList","TopicLanding","Welcome"],vze=["/aspnet/core/blazor/globalization-localization","/dotnet/framework/ui-automation/accessibility-best-practices","/learn/modules/intro-accessibility-disability/","/learn/modules/write-inclusive-windows-apps/","/learn/paths/accessibility-fundamentals/","/training/modules/intro-accessibility-disability/","/training/modules/write-inclusive-windows-apps/","/training/paths/accessibility-fundamentals/","/microsoft-edge/accessibility/","/microsoft-edge/devtools-guide-chromium/accessibility/reference","/windows/uwp/design/accessibility/basic-accessibility-information","/xamarin/android/app-fundamentals/accessibility","/xamarin/ios/app-fundamentals/accessibility","/xamarin/xamarin-forms/app-fundamentals/accessibility/"];function lM(e=location.pathname,t=En.template){return e=mr(e),vze.includes(e)?!1:yze.includes(t)||!t&&e.startsWith("/answers/")}function cM(){let e=document.getElementById("cookie-consent-holder");return!e||document.getElementById("banner-holder")?null:(e.insertAdjacentHTML("afterend",''),e.nextElementSibling)}function ZCe(e,t,n,o){let r=Gh(),s=r>t.getTime()&&r<=n.getTime(),i=localStorage.getItem(e)==="hide",a=mr(location.pathname).toLowerCase();a=a.startsWith("/")?a.substring(1):a;let l=o.some(c=>c.fullPathMatch?a===c.path:a.startsWith(c.path));return s&&!i&&l}M();function eEe({uid:e,startDate:t,endDate:n,cssClass:o,title:r,subtitle:s,description:i,cta:a,theme:l,buttonCss:c=""},u=Date.now(),p=location.pathname){if(p=mr(p),!S.marketing||u=n.getTime()||!lM()||J.getItem(e)==="hide")return!1;let m=cM();if(!m)return!1;m.classList.add(`theme-${l}`);let g=d`

    ${r}

    ${s?d`

    ${s}

    `:""}
    ${a.title}
    `;return y(g,m),!0}function xze(e=Gh()){return eEe({uid:"2026-03--build",title:mhe,description:hhe,subtitle:fhe,cta:{href:"https://aka.ms/MSBuild_FY26_BN_MSLearn_Hero",title:bhe},cssClass:"build-banner",theme:"light",startDate:new Date("2026-03-13T15:00:00.000Z"),endDate:new Date("2026-06-01T00:00:00.000Z")},e)}function Tze(e=Gh()){return eEe({uid:"2026-06--ai-skills-fest",title:ghe,description:yhe,subtitle:_he,cta:{href:"https://aka.ms/AISkillsFest_LearnPromoBanner",title:vhe},cssClass:"ai-skills-fest-banner",theme:"light",startDate:new Date("2026-06-03T07:00:00.000Z"),endDate:new Date("2026-06-13T06:59:59.000Z")},e)}function tEe(){let e=Gh();return xze(e)||Tze(e)}async function nEe(){if(!lM())return;S.connectedExperiences&&S.temporaryClientSideEventBanners?await JCe():FCe();let e=sM.filter(n=>{let{id:o,startTime:r,endTime:s,bannerPaths:i}=n;return ZCe(o,r,s,i)}),t=!1;if(!(tEe()&&(t=!0,!S.connectedExperiences))&&!(e.length<1)){if(S.connectedExperiences&&e[0].displayType)XCe(e);else if(!t)for(let n of e){let o=cM();if(!o)return;let{id:r,eventTitle:s,eventDescription:i,linkHref:a,linkText:l}=n,c=wze(`${r}-banner`,`${r}-event`,s,i,a,l);y(c,o);let u=o.querySelector("[data-dismiss]");u.onclick=()=>J.setItem(r,"hide")}}}function wze(e,t,n,o,r,s){let i=r&&s?d` ${s} `:"";return d` `}Mm();async function Sze(e,t="fiveStar"){e.rating&&(t==="binary"?e.rating=(e.rating-1)/4:e.rating/=5)}async function oEe(e,t="fiveStar"){if(e.rating===null||e.rating===void 0||isNaN(e.rating))throw new Error("No rating was selected by the user");Sze(e,t);let n={method:"POST",headers:{"Content-Type":"applicationhttps://www.microsoft.com/json"},body:JSON.stringify(e)},o=N(`${D.ocvFeedback}`,n),r=await R(o),s;if(r.ok)return s=await r.json(),s;throw new Error(`ocv api responded with ${r.status} ${r.statusText}`)}M();ot();var Cze=[lhe,hue,Gie,Fae,Uae];function rEe(e,t,n,o,r,s,i=Cze,a=!1,l="star-rating-control"){let c=document.createElement("fieldset");c.classList.add("star-rating-control"),c.setAttribute("data-bi-name",l);let u=`font-size-${t}`,p=`font-size-${n}`,m=_t(),g=[],f=o==="display-inline-flex"?"":o;for(let w=0;w<5;w++){let I=_t();g.push(d` `)}let _=r?d`
    ${Vae}
    `:"",h=d` ${_}
    ${g}
    `,T=o==="display-inline-flex"?d`
    ${h}
    `:h;y(T,c);let x=c.querySelector(".rating-output");if(e!==0){let w=c.querySelector(`input[value="${e}"]`);w.checked=!0,x.textContent=w.nextElementSibling.textContent}return c.onmouseover=w=>{let I=w.target.closest("label");I&&(x.textContent=I.textContent)},c.onmouseleave=()=>{x.textContent=""},c.onchange=w=>{let I=w.target,E=parseInt(I.value),Q=c.querySelectorAll(".star-collection input");for(let O=0;O=O?Q[O].classList.add("is-selected"):Q[O].classList.remove("is-selected");s(E),I.nextElementSibling&&(x.textContent=I.nextElementSibling.textContent)},c}var Eze=2539,Aze=50033,sEe=L.reviewFeatures?Aze:Eze;var iEe="a6b7c4ac-4c15-426f-b054-42341177dffc";var aEe=[zce,Bce,Hce,qce,Oce];function lEe(){Gt(qse,{text:she,clickHandler:Rze},void 0,void 0,"mt-csat-banner")}var uM,k6,PS;function kze(){return d` `}function Ize(){let e=rEe(0,"m","m","",!1,t=>uM=t,aEe,!0);return d` `}function Pze(){Ee({actionType:Re.OTHER,behavior:Ce.OTHER,content:{type:"translation-csat-feedback",score:uM,verbatim:k6}})}function Lze(e){if(e.preventDefault(),PS){Pze(),oEe({manifestType:"Psat",appId:sEe,submitTime:new Date().toISOString(),source:"Client",type:"Survey",telemetry:{featureArea:"Docs"},clientFeedbackId:Hi(),survey:{surveyId:iEe},rating:uM,comment:k6||"",web:{sourcePageURI:location.origin+location.pathname}});let t=document.createElement("div");t.classList.add("modal-slide"),y(kze(),t),PS.pushContent(t)}}function Rze(){let e=document.createElement("div");y(Ize(),e),PS=null,uM=null,PS=new ge(e),PS.show()}var Mze=Be.machineTranslated;function uEe(e){let t=e.toLowerCase(),n=b.data.isEditDisplayable;if(S.translationFeedback){lEe();return}ir()||t.startsWith("en-")||!Mze||(n?Gt(Vse):Gt(Qse))}function dEe(){let e=Array.from(document.querySelectorAll("[data-read-in-link]"));for(let t of e){let n=t.querySelector("[data-read-in-link-text]");if(I6()){let r=new URL(document.referrer),s=ES(r.pathname),i=Yue.replace("{language}",mu[s]);n.innerText=i,t.title=i,t.hidden=!1}else b.data.userLocale.includes("en-")||(n.innerText=ZF,t.title=ZF,t.hidden=!1);cEe(t),window.addEventListener("popstate",()=>cEe(t))}}function I6(e=location.href,t=document.referrer){if(!t)return!1;let n=new URL(e),o=new URL(t),r=ES(n.pathname),s=ES(o.pathname),i=iy(o.pathname,"en-us");return!(n.origin!==o.origin||n.pathname!==i||r===s)}function cEe(e){let t=new URL(location.href);if(I6()){let n=new URL(document.referrer),o=ES(n.pathname);t.pathname=iy(t.pathname,o)}else t.pathname=iy(t.pathname,"en-us");e.href=t.href,Dze(e)}function Dze(e,t=I6()){let n=t?"on":"off";e.setAttribute("data-bi",JSON.stringify({cN:"language-toggle",value:n}))}M();function $ze(e){let t=me().branch||Ws.get("CONTENT_BRANCH")||"",n=e.sort().map(o=>``).join("");return`
    `}function P6(){if(!L.reviewFeatures)return;let e=document.getElementById("article-header-page-actions");if(e===null)return;let t=document.querySelector('meta[name="branches"]')?.content.split(",")??[];if(t.length===0)return;let n=document.createElement("div");n.classList.add("control"),n.id="branch-selector-container",n.innerHTML=$ze(t);let o=n.querySelector("select"),r=me().view||"",s=r?`view=${encodeURIComponent(r)}&`:"";o&&(o.onchange=()=>{let a=o.value;Ws.set("CONTENT_BRANCH",a),window.location.search=`?${s}branch=${encodeURIComponent(a)}`}),e.insertAdjacentElement("afterbegin",n),n.classList.remove("control"),n.classList.add("display-flex","align-items-center")}M();var L6=class{constructor(t,n=[]){this.breadcrumbsWrapper=t,this.basePath=b.data.userLocale,this.baseTitle="Learn",Ot&&(this.baseTitle="Test",this.basePath+="/test"),this.breadcrumbsList=[{title:this.baseTitle,url:`/${this.basePath}/`},...n]}add(...t){t.forEach(n=>this.breadcrumbsList.push(n))}render(){Fze(this.breadcrumbsList);let t=this.breadcrumbsWrapper;if(!t)return;y(d` `,t);let n=document.getElementById("article-header-breadcrumbs-overflow"),o=document.querySelectorAll(".has-interactive section.primary-holder"),r=document.getElementById("branch-selector"),s;r&&(s=Nze(o,r)),n&&y(d` ${s} `,n)}breadcrumbsTemplate(){return this.breadcrumbsList.map(t=>{let n;return t.url?(t.url=t.url.replace(/\/index$/i,"/"),n=d`${t.title}`):n=d`${t.title}`,d`
  • ${n}
  • `})}};function Nze(e,t){let n;if(e.length&&t){n=document.getElementById("branch-selector-container"),n&&n.classList.add("padding-xxs");let o=document.getElementById("article-header-breadcrumbs-overflow-popover");o&&o.setAttribute("style","display: inline-block !important")}return n}async function hp(e){if(b.data.context.chromeless)return;await Te;let t=e||document.getElementById("article-header-breadcrumbs");return t?new L6(t):void 0}function Fze(e){let t={"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:[]},n=e.filter((o,r)=>o.url||r+1===e.length).map((o,r)=>{let s={name:o.title,position:r+1,"@type":"ListItem"};return o.url&&(s.item=o.url),s});if(t.itemListElement=n,t.itemListElement.length){let o=document.createElement("script");o.setAttribute("type","application/ld+json"),o.textContent=JSON.stringify(t),document.head.appendChild(o)}}function pEe(){let e=Array.from(document.querySelectorAll(".has-interactive section.primary-holder"));if(!e.length)return;let t=e[0],n=document.getElementById("article-header-breadcrumbs-overflow-popover");if(n){let r=document.getElementById("article-header-breadcrumbs-overflow");if(!r)return;n.addEventListener("toggle",()=>{r.getBoundingClientRect().width{s.getBoundingClientRect().width{A.body.removeChild(n)},()=>{A.body.removeChild(n),o=!1}),o}function pM(e,t){return navigator.clipboard?navigator.clipboard.writeText(e).then(()=>!0,()=>!1):Promise.resolve(di(e,t))}var dM=!1;function mEe(){function e(t){let n=se.getSelection();if(!n)return;let o=n.toString(),r=jbe(o);if(LS&&o!==r&&!dM){dM=!0,di(r,t.target);return}Ro(t.target,{actionType:Re.OTHER,behavior:Ce.COPY,content:{event:"copy",name:Cl(t.target),value:o,unprintable:dM}}),dM=!1}A.addEventListener("copy",e,{passive:!0})}uy();var dy={any:!1};function Uze(){let e=es("monikers");dy.any=e.length>0;for(let t of e)dy[t]=!0}Uze();function D6(e){return e!==""&&dy[e]!==void 0}M();function fu(e){e&&e.addEventListener("click",t=>{let n=t.target instanceof HTMLElement&&t.target.closest("button[data-show-more]");if(n||(n=t.target instanceof HTMLElement&&t.target.shadowRoot&&t.target.shadowRoot.activeElement&&t.target.shadowRoot.activeElement.closest("button[data-show-more]")),n||(n=t.target instanceof HTMLElement&&t.target.shadowRoot&&t.target.shadowRoot.activeElement&&t.target.shadowRoot.activeElement.shadowRoot&&t.target.shadowRoot.activeElement.shadowRoot.activeElement.closest("button[data-show-more]")),!n)return;let o=n.getAttribute("aria-controls"),r=document.getElementById(o);if(r||(r=t.target instanceof HTMLElement&&t.target.shadowRoot&&t.target.shadowRoot.activeElement&&t.target.shadowRoot.activeElement.closest(`[id='${o}']`)),r||(r=t.target instanceof HTMLElement&&t.target.shadowRoot&&t.target.shadowRoot.activeElement&&t.target.shadowRoot.activeElement.shadowRoot.activeElement.closest(`[id='${o}']`)),!r)return;let s=n.getAttribute("aria-expanded")==="true";n.setAttribute("aria-expanded",(!s).toString());let i=Array.from(r.querySelectorAll(".expandable")),a=Array.from(document.querySelectorAll(`#${CSS.escape(o)} .expandable .expandable`));i=i.filter(u=>!a.includes(u));for(let u of i)u.classList.toggle("is-expanded");if(n.hasAttribute("data-show-once")){n.remove();let u=r.querySelector("[data-autofocus]");if(u){u.focus();return}let p=r.querySelector(gp.join(","));p&&p.focus();return}let l=n.querySelector(".show-more-text");if(!l)return;let c={show:n.getAttribute("data-title")||wm,hide:n.getAttribute("data-expanded-title")||Rk};if(l.innerText=s?c.show:c.hide,!s){let u=r.querySelector(".is-expanded");if(!u)return;let p=u.querySelector(gp.join(","));p?n.compareDocumentPosition(p)&Node.DOCUMENT_POSITION_FOLLOWING||p.focus():u.focus()}})}function py(e,t="show-more-btn",n,o,r,s,i,a,l){let c=n||"button button-primary",u=r||wm;return d` `}function fEe(e){return e?.closest(".expandable")?.closest("[id]")}function hEe(e){let t=e?.id;if(!t)return;let n=document.querySelector(`[aria-controls="${t}"]`);!n||n.getAttribute("aria-expanded")==="true"||n.click()}M();var _Ee=6,yEe=4,vEe=11,xEe=9,Oze=9,bEe=!1;function MS(){let e=A.getElementById("center-doc-outline"),t=A.getElementById("side-doc-outline");if(e===null||t===null){e?.remove(),t?.remove();return}let n="#ms--in-this-article, #ms--feedback, #ms--additional-resources-mobile-heading",o=S.referenceRightRailH3?`#main h2:not(${n}), #main h3`:`#main h2:not(${n})`,r=Array.from(A.querySelectorAll(o)),s=[];if(r.forEach(i=>{let a=i.tagName.toLowerCase(),l=i.offsetParent!==null,c=Vh(i).trim();l&&c.length>0&&(i.id||(i.id=c.toLowerCase().replace(/\s+/g,"-")),a==="h2"?s.push({text:c,id:i.id,children:[]}):a==="h3"&&s[s.length-1].children?.push({text:c,id:i.id}))}),s.length<2){e.hidden=!0,t.hidden=!0;return}e.hidden=!1,qze(s,e),Hze(s,t)}function qze(e,t){let n=b.data.pageTemplate==="Reference",o="content-well-in-this-article-list",r=n?TEe(e,o,"content-well"):wEe(e,o,"content-well");y(d`

    ${RF}

    ${r} `,t)}function Hze(e,t,n=b.data.pageTemplate){let o=e.length>Oze,r=n==="Reference",s="right-rail-in-this-article-list",i=r?TEe(e,s,"right-rail"):wEe(e,s,"right-rail");y(d`

    ${RF}

    ${i} `,t),o&&!bEe&&(fu(t),bEe=!0)}function TEe(e,t,n){let o=n==="content-well"?"border-left padding-left-xxs":"",r=n==="content-well"?"":"border-left-md border-color-transparent padding-left-xxs",s=n==="content-well"?"":"color-text-subtle",i=n==="content-well"?_Ee:vEe,a=n==="content-well"?yEe:xEe,l=e.length>=i,c=d`
      ${e.map(({text:p,id:m,children:g},f)=>{let _=g?.length?d`
      1. ${p}
      2. ${g?.map(({text:x,id:w})=>d`
      3. ${x}
      4. `)}
      `:"",T=l&&f>=a?"expandable":"";return _?d`
    1. ${p} ${_}
    2. `:d`
    3. ${p}
    4. `})}
    `;return l?d` ${c} ${SEe(e,t,a,n)} `:c}function wEe(e,t,n){let o=n==="content-well"?"border-left padding-left-xxs":"padding-right-xxs",r=n==="content-well"?"":"border-left-md border-color-transparent padding-left-xxs",s=n==="content-well"?"":"color-text-subtle",i=n==="content-well"?_Ee:vEe,a=n==="content-well"?yEe:xEe,l=e.length>=i,c=d`
      ${e.map(({text:p,id:m},g)=>{let _=l&&g>=a?"expandable":"";return d`
    1. ${p}
    2. `})}
    `;return l?d` ${c} ${SEe(e,t,a,n)} `:c}function SEe(e,t,n,o){let r=e.length-n,s=mge.replace("{number}",r.toString());return py(t,"show-more-btn",`link-button font-weight-semibold font-size-sm margin-top-xxs ${o==="content-well"?"margin-left-xs":"margin-left-xxs"}`,void 0,s,!0)}var Bl,zl;function $6(){let e=document.getElementById("assertive-live-region"),t=document.getElementById("polite-live-region");e?Bl=e:(Bl=document.createElement("div"),Bl.setAttribute("role","alert"),Bl.setAttribute("aria-live","assertive"),Bl.setAttribute("aria-relevant","additions"),Bl.setAttribute("aria-atomic","true"),Bl.classList.add("visually-hidden"),Bl.setAttribute("id","assertive-live-region"),document.body.appendChild(Bl)),t?zl=t:(zl=document.createElement("div"),zl.setAttribute("role","status"),zl.setAttribute("aria-live","polite"),zl.setAttribute("aria-relevant","additions"),zl.setAttribute("aria-atomic","true"),zl.classList.add("visually-hidden"),zl.setAttribute("id","polite-live-region"),document.body.appendChild(zl))}function Bze(e){let t=e.querySelector('.contextual-live-region[aria-live="assertive"]'),n=e.querySelector('.contextual-live-region[aria-live="polite"]');return t||(t=document.createElement("div"),t.setAttribute("role","alert"),t.setAttribute("aria-live","assertive"),t.setAttribute("aria-relevant","additions"),t.setAttribute("aria-atomic","true"),t.classList.add("contextual-live-region","visually-hidden"),e.appendChild(t)),n||(n=document.createElement("div"),n.setAttribute("role","status"),n.setAttribute("aria-live","polite"),n.setAttribute("aria-relevant","additions"),n.setAttribute("aria-atomic","true"),n.classList.add("contextual-live-region","visually-hidden"),e.appendChild(n)),{contextualAssertiveRegion:t,contextualPoliteRegion:n}}function zze(e){$6();let t;try{t=document.querySelector(".modal.is-active, :modal")}catch{t=document.querySelector(".modal.is-active")}if(!t)return e==="assertive"?Bl:zl;let{contextualAssertiveRegion:n,contextualPoliteRegion:o}=Bze(t);return e==="assertive"?n:o}function un(e,t="polite",n=5e3){let o=zze(t);o.innerHTML="";let r=document.createElement("div");r.setAttribute("role","none"),r.textContent=e,o.appendChild(r),setTimeout(()=>{r?.remove()},n)}var N6=class{constructor(t){this.expanded=t}};var Gze;function CEe(e,t){Gze=t;let n=document.documentElement.classList,o=document.querySelector(".action-panel");if(n.contains("ap-layout")||e==="none")return o;let r=document.querySelector("[data-main-column]"),s=Qze();n.add("ap-layout"),e==="animate"&&n.add("ap-layout-animates"),setTimeout(()=>n.add("ap-layout-in"),20);let i=()=>{o.removeEventListener("transitionend",i),n.remove("ap-layout-animates"),n.add("ap-layout-finished"),Vze(o),Zt(),s(r),o?.setAttribute("aria-expanded","true"),o?.focus(),ct.publish(new N6(!0))};return o.addEventListener("transitionend",i),o}function Vze(e){let t=(()=>{let o=document.querySelector(".ap-layout-finished .content-header");return window.getComputedStyle(o).getPropertyValue("height")})(),n=document.querySelector(".ap-layout-finished [data-main-column]");e.style.top=t,n.style.top=t,n.classList.add("padding-top-none")}function Qze(){let e=document.querySelector("main");if(!e||!e.children)return()=>{};let t=e.children;for(let n=t.length-1;n>=0;n--){let o=t.item(n);if(o.hasAttribute("hidden"))continue;let{top:r}=o.getBoundingClientRect();if(r<=5||n===0){let s=o.clientWidth;return i=>{o.scrollIntoView(!0),i.scrollTop-=r*s/o.clientWidth}}}return()=>{}}uy();M();var Yze=0,AEe="code-try-",jze=(()=>{let e=location.hash.split(AEe)[1];if(e===void 0)return-1;let t=parseInt(e,10);return t>=-1?t:-1})(),Wze=()=>Yze++,Kze=e=>e===jze,EEe=!1;function Jze(){EEe||(EEe=!0,A.addEventListener("click",e=>{let n=e.target.closest("[data-code-header-copy-button]");n&&(e.preventDefault(),Xze(n))}))}function Xze(e){if(!LS||!e||!s5e(e))return;let t=e.closest("[data-code-block-header]"),n=Zze(t);if(!n)return;let o=n.getAttribute("data-language")||"",r=n.firstElementChild||n;r5e(r,o)&&Ro(e,{actionType:Re.OTHER,behavior:Ce.COPY,content:{event:"copy",name:Cl(t)}}),e.focus()}function Zze(e){let t=e?.nextElementSibling;return t?t.hasAttribute("data-language")?t:t.querySelector("pre[data-language]"):null}function e5e(e,t){return t==="rtl"?Mt(e).replace(/(^|\s|\>)(C#|F#|C\+\+)(\s*|[.!?;:]*)(\<|[\n\r]|$)/gi,"$1$2‎$3$4"):e}function kEe(e,t){Jze();let n=A.createElement("div"),o=Wze(),r=`${AEe}${o}`;n.classList.add("code-block-header","margin-top-sm"),n.setAttribute("data-code-block-header",""),n.setAttribute("id",r),n.setAttribute(Lo.name,"code-header"),e.monikers&&n.setAttribute("data-moniker",e.monikers);let s=e.interactiveType&&!(e.interactiveType.flags.requiresStructuredData&&b.data.pageTemplate==="Conceptual"),i=LS?t5e():"",a=s&&e.interactiveType?n5e(e.interactiveType):"",l=d` ${q(e5e(e.displayName,t))}
    ${i} ${a}
    `;y(l,n),e.element&&e.element.setAttribute("data-language",e.language);let c=e.interactiveType,u=e.scaffoldingType;if(s){let p=n.querySelector("button[data-code-header-action-button]");if(p){let m=c?.activateButtonConfig;for(let f of m?.attributes||[])p.setAttribute(f.name,f.value);let g=(f,_=!1)=>{_!==!0&&history.replaceState(null,"",`#${r}`),p.classList.add("is-loading"),p.disabled=!0;let h=e.element.textContent?.trim()||"",T;if(c){if(b.data.pageTemplate==="ModuleUnit"){let x=A.getElementById("interactive-container");T=fM(c,x)}else{let x=CEe("animate",p);T=fM(c,x)}T.setCode(h,u).then(()=>T.execute()).catch(()=>{}).then(()=>{p.classList.remove("is-loading"),p.disabled=!1})}};p.addEventListener("click",g),Kze(o)&&g(null,!0)}}e.element.classList.remove("loading"),e.element.insertAdjacentElement("beforebegin",n),e.header=n}function t5e(){return d` `}function n5e(e){let t=e.activateButtonConfig;return d` `}var my=e=>e.split(/\n\n/).map(t=>t.split(/[\\`][\s]*$/gm).map(n=>n.trim()).join(" ")).join(` `),o5e={powershell:e=>my(e.replace(/\bPS [a-z]:\\>\s?/gi,"")),azurecli:my,azurepowershell:my,"azurepowershell-interactive":my,"cloudshell-powershell":my,ps:my};function r5e(e,t){let o=(o5e[t]||(r=>r))(e.textContent?.trim()||"");return di(o,e)}function s5e(e){if(e.getAttribute("debounce")==="true")return!1;let t=e.querySelector("[data-copy-button-success-indicator]");return t?.classList.remove("is-transparent"),e.setAttribute("debounce","true"),un(OA,"assertive",1e3),setTimeout(()=>{t?.classList.add("is-transparent"),e.removeAttribute("debounce")},1e3),!0}var Wt=class extends Error{constructor(t){let{status:n,statusText:o,url:r}=t,s=F6(t.headers);super(`Unexpected response status ${n}: ${o} from "${r}". Headers: ${JSON.stringify(s,null,2)}`),this.name=this.constructor.name,typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,this.constructor),this.status=n,this.statusText=o,this.url=r,this.headers=s}};function F6(e){let t;try{t=Object.fromEntries(e)}catch{t={error:"Unable to serialize headers"}}if("set-cookie"in t){let n=t["set-cookie"];t["set-cookie"]=`[Redacted. Length=${n.length}]`}return t}async function hM(e,t=b.data.userLocale){let n=`${D.taxonomy}?${V({name:e,locale:t})}`,o=await R(n);if(o.ok)return(await o.json())[e].map(s=>({value:s.slug,displayName:s.styleGuideLabel||s.label,level:s.level?+s.level:s.level,parent:s?.parentSlug}));throw new Wt(o)}var U6=class{constructor(){this.cache={}}async get(t){return await this.getInternal(t)}async getFamily(t){return await this.getInternal(t,1)}taxonomyTermsToTaxonomyMap(t,n){return t.reduce((o,r)=>((!n||r.level===n)&&(o[r.value]=r.displayName),o),{})}async getInternal(t,n){let o=[];try{t in this.cache||(this.cache[t]=hM(t)),o=await this.cache[t]}catch{delete this.cache[t]}return this.taxonomyTermsToTaxonomyMap(o,n)}},bM=new U6;var IEe="proglang",gy={getDisplayNames:()=>bM.get("devlang"),visibilityMap:{"aspx-csharp":"csharp","aspx-vb":"vb"},syntaxMap:{aspx:"csharp",azdeveloper:"azurecli",azurepowershell:"powershell",cppcx:"cpp",cppwinrt:"cpp",hcl:"json",nodejs:"js",nosql:"sql"},unset:"",default:i5e(),get preferred(){return(J.getItem(IEe)||gy.unset).substr(5)},set preferred(e){J.setItem(IEe,"lang-"+e)}};function i5e(){return b&&b.data&&b.data.defaultDevLang?b.data.defaultDevLang:""}var _M,a5e=0,PEe={};function LEe(e){_M===void 0&&l5e();let t={id:a5e++,instructions:e};return _M.postMessage(t),new Promise(n=>PEe[t.id]=n)}function l5e(){let e=location.origin+"/static/third-party/highlight.js/9.15.25/highlight.pack.js",t=new Blob([`(${c5e.toString()})('${e}') //# sourceURL=syntax-highlighter.js`],{type:"application/javascript"}),n=URL.createObjectURL(t);_M=new Worker(n),_M.onmessage=o=>{let r=o.data;PEe[r.id](r.results)}}function c5e(e){function t(l,c){let u=[];if(c===null)return u;let p=/\n/g,m=1;for(;p.exec(l);)m++;let g=/(\d+)(?:\s*-\s*(\d+))?/g,f;for(;f=g.exec(c);){let _=+f[1]-1;if(isNaN(_)||_>=m)continue;let h=f[2]===void 0?_:+f[2]-1;isNaN(h)||h<_||(h=Math.min(h,m-1),u.push({start:_,end:h}))}return u}let n=/.*<\/rgn>/gi,o=/RGNPLACEHOLDER/g,r="RGNPLACEHOLDER";function s(l,c){return l.replace(n,u=>(c.push(u),r))}function i(l,c){return l.replace(o,()=>c.shift())}function a(l){let{id:c,instructions:u}=l.data,p=[];for(let{language:g,code:f,highlightLines:_}of u){let h={code:f,html:"",success:!1};try{let T=[],x=s(f,T),w=[],I=t(f,_);if(I.length){let O=x.split(` `),ye=0;I.forEach(Ae=>{Ae.start>ye&&w.push({highlight:!1,lines:O.slice(ye,Ae.start).join(` `)}),w.push({highlight:!0,lines:O.slice(Ae.start,Ae.end+1).join(` `)}),ye=Ae.end+1}),ye<=O.length&&w.push({highlight:!1,lines:O.slice(ye).join(` `)})}else w.push({highlight:!1,lines:x});let E=null,Q="";do{let O=w.shift(),{value:ye,top:Ae}=hljs.highlight(g,O.lines,!0,E);E=Ae,Q+=O.highlight?`${ye}`:`${ye}`,w.length&&(Q+=` `)}while(w.length);h.html=i(Q,T),h.success=!0}catch{}p.push(h)}let m={id:c,results:p};self.postMessage(m,void 0)}self.importScripts(e),self.addEventListener("message",l=>{a(l)})}function u5e(e,t){for(let n=0;n code, span[class*="lang-"]'),s=[],i;if(r.length>0){let a=await t.getDisplayNames();for(let l=0;l({language:r.syntaxLanguage,code:r.code,highlightLines:r.highlightLines}));return n.forEach(r=>{kEe(r,t)}),LEe(o).then(r=>{for(let s=0;s{o.element.hidden=!r,o.header&&(o.header.hidden=!r)};for(let o of e){let r=!1;for(let s of o.members){let i=s.visibilityLanguage===t||s.element.classList.toString().indexOf(`lang-${t}`)!==-1;n(s,i),r=r||i}r||n(o.default,!0)}Zt()}function p5e(e,t,n=location.search){let o=g5e(e,n),r=t.preferred;return r!==t.unset&&e.indexOf(r)!==-1&&(o.length===0||o.indexOf(r)!==-1)?r:t.default!==t.unset&&e.indexOf(t.default)!==-1&&(o.length===0||o.indexOf(t.default)!==-1)?t.default:o.length!==0?o[0]:e[0]}var m5e=["Architecture","Conceptual","FAQ","HowTo","Marketing","ModuleUnit","Question","QuestionEdit","Reference","Sample","Welcome"];function O6(){A.querySelectorAll(".cdlHolder .cdlLastVisible").forEach(function(n){n.classList.remove("cdlLastVisible")});let e=ui(),t=A.querySelectorAll(".cdlHolder");D6(e)&&t.forEach(function(n){let o=n.querySelectorAll(`.cdl[data-moniker~='${e}']:not([hidden]),.cdl:not([data-moniker]):not([hidden])`);o.length>0&&o[o.length-1].classList.add("cdlLastVisible")})}async function DS(e){if(m5e.indexOf(b.data.pageTemplate)===-1)return;let t=Array.from(A.querySelectorAll(".lang-title")),n=Array.from(A.querySelectorAll(".language-selector button")),o=[];if(n.length>0){let c=await gy.getDisplayNames();n.forEach(u=>{if(b.data.userDir==="rtl"?u.classList.add("justify-content-flex-end"):u.classList.add("justify-content-flex-start"),u.dataset.biName){let p=u.dataset.biName.substr(5);u.textContent=c[p],o.push(p)}})}let r=n!==null&&o.length>0,s=await d5e(e??A.body,gy,o);if(r){let c=p5e(o,gy),u=A.querySelector('[data-bi-name="lang-'+c+'"]');t.forEach(p=>{p.textContent=u.textContent}),MEe(s,c),O6(),n.forEach(p=>{p===u&&p.setAttribute("aria-pressed","true"),Ye(p,"click",()=>{if(n.forEach(m=>{m.setAttribute("aria-pressed","false")}),p.setAttribute("aria-pressed","true"),t.forEach(m=>{m.textContent=p.textContent}),p.dataset.biName){let m=p.dataset.biName.substr(5);gy.preferred=m,MEe(s,m)}O6(),MS(),REe(s,b.data.contentDir)})})}let i=s.flatMap(c=>c.members),a=0;function l(){cancelAnimationFrame(a),a=requestAnimationFrame(()=>DEe(i))}return window.addEventListener("resize",l,{passive:!0}),DEe(i),REe(s,b.data.contentDir)}function DEe(e){e.forEach(t=>{let{type:n,element:o}=t;if(n!=="precode")return;o.scrollWidth>o.clientWidth?(o.setAttribute("role","group"),o.setAttribute("aria-label",zae),o.tabIndex=0):(o.removeAttribute("role"),o.removeAttribute("aria-label"),o.removeAttribute("tabindex"))})}function g5e(e,t=location.search){return new URLSearchParams(t).get("devlangs")?.split(",").filter(n=>e.includes(n))??[]}var Gl=L.reviewFeatures===!0&&(L.accessLevel==="local"||L.supportLevel==="development"&&L.accessLevel==="online"||Ot),yM=typeof __karma__<"u";var f5e=1e3*60*5,h5e=new URL(window.location.href).pathname.replace(new RegExp(`^/${b.data.userLocale}`),""),NEe="rollout-status",$S;async function Bi(e){$S===void 0&&($S=q6());let t=await $S;if(t&&"failed"in t&&($S=q6()),!t||"failed"in t)return $Ee("feature-rollout-failure",{featureName:e}),!1;let n=t.activeFeatures.find(r=>"name"in r?r.name===e:!1);if(!n)return!1;let o=await b5e(n);return $Ee("feature-rollout-activated",{featureName:e,isActive:o}),o}async function b5e(e,t=b.data.userLocale,n=h5e,o=b.data.pageTemplate,r=fe.then(()=>v.isAuthenticated)){if(!e.conditions)return!0;let s=e.conditions.find(g=>g.limitTo==="locale");if(!(s?s.locales.includes(t):!0))return!1;let a=e.conditions.find(g=>g.limitTo==="pathname");if(!(a?!!a.startsWith.find(g=>n.startsWith(g)):!0))return!1;let c=e.conditions.find(g=>g.limitTo==="pageTemplate");return(c?!!c.pageTemplates.find(g=>g===o):!0)?e.conditions.find(g=>g.limitTo==="authenticated")?await r:!0:!1}async function FEe(){$S=q6()}async function q6(e=me()["refresh-rollout"]==="true"){let t=_5e(e);if(t)return t;let o=`/en-us/feature-rollout.json${L.reviewFeatures?"?branch=main":""}`;Gl&&(o=`/en-us/test/feature-rollout.json?branch=${St()}`);try{let r=await R(o,{method:"GET"});if(!r.ok)return{failed:!0};let s=await r.json();return s.expiresAt=new Date(Date.now()+f5e).getTime(),J.setItem(NEe,JSON.stringify(s)),s}catch{return{failed:!0}}}function _5e(e=!1){if(e)return null;let t=J.getItem(NEe);if(!t)return null;let n;try{n=JSON.parse(t)}catch{return null}if(!n||"failed"in n||!n.expiresAt)return null;let o=n.expiresAt||0;return Date.now()>=o||!("activeFeatures"in n)||"failed"in n?null:n}function $Ee(e,t){Ee({content:{type:e,content:JSON.stringify(t)}})}M();function H6(e){return new Promise((t,n)=>{let o=A.createElement("img");o.classList.add("visually-hidden"),o.setAttribute("aria-hidden","true"),o.src=e,o.onload=()=>{o.remove(),t(null)},o.onerror=()=>{o.remove(),n()},A.body.appendChild(o)})}function NS(e){let t=A.createElement("link");t.rel="preload",t.as="image",t.href=e,A.head.appendChild(t)}function UEe(e,t,n,o=500){let r=0,s=(...i)=>{t(r),r=e.apply(null,[n.bind(null,...i),o])};return s.cancel=()=>t(r),s}var fy={timeout:UEe.bind(null,setTimeout,clearTimeout),animationFrame:UEe.bind(null,se.requestAnimationFrame,se.cancelAnimationFrame)};function OEe(){y5e()}var B6=!1;function z6(e,t,n=()=>{}){window.addEventListener("click",o=>{o.target instanceof HTMLElement&&o.target.closest(e)&&n(()=>t.show())})}function G6(e,t=()=>{},n=!1){window.addEventListener("click",o=>{let r=o.target instanceof HTMLElement&&o.target.closest(e);!r||!document.querySelector(".layout-body-flyout")||t(()=>{hu(r,n)})})}async function qEe(e,t,n,o=()=>{}){window.addEventListener("click",s=>{let i=s.target instanceof HTMLElement&&s.target.closest(e);i&&(s.preventDefault(),o(()=>{xa.matches?n(i,!0):t()}))}),await Te;let r=document.querySelector(e);r&&(r.hidden=!1)}function hu(e,t=!1){let n=document.querySelector(".layout-body-flyout");if(!n)return;B6=!B6;let o=document.documentElement.classList.contains("layout-flyout-active")?"remove":"add";if(o==="remove"?window.dispatchEvent(new CustomEvent("flyout-hide")):window.dispatchEvent(new CustomEvent("flyout-show")),!t||o==="add"){document.documentElement.classList[o]("layout-flyout-active"),e.classList[o]("is-selected");let r=o==="add"?"true":"false";e.setAttribute("aria-expanded",r),Zt()}if(t||o==="add"){e.dataset.flyoutReturnFocus="true";let r=n.querySelector('button[data-flyout-button="close"]');r&&r.focus()}}function y5e(){window.addEventListener("click",e=>{let t=e.target instanceof HTMLElement&&e.target.closest('[data-flyout-button="close"]');if(!t||t.closest(".modal")||!document.querySelector(".layout-body-flyout"))return;let s=document.querySelector('[data-flyout-return-focus="true"]')||document.querySelector('[data-flyout-button="toggle"]');s&&(s.focus(),s.removeAttribute("data-flyout-return-focus"),s.hasAttribute("aria-expanded")&&s.setAttribute("aria-expanded","false"),s.classList.remove("is-selected")),B6=!1,document.documentElement.classList.remove("layout-flyout-active"),window.dispatchEvent(new CustomEvent("flyout-hide")),Zt()})}function HEe(e,t){if(localStorage.getItem("playwrightActive"))return;let n=document.querySelector(t);if(!n)return;let o=xa.matches,r=()=>!!document.querySelector('[data-chat-container-name="ask-learn-modal"]'),s=()=>document.documentElement.classList.contains("layout-flyout-active"),i=()=>{document.documentElement.classList.remove("layout-flyout-active"),n.classList.remove("is-selected")},a=()=>{let l=xa.matches;!o&&l&&r()?(e.hide(),hu(n,!0)):o&&!l&&s()&&(e.show(),i()),o=l};window.addEventListener("resize",()=>{window.requestAnimationFrame(a)}),a()}var V6="[data-ask-learn-modal-entry]",FS="[data-ask-learn-flyout-entry]",vM="[data-ask-learn-modal-entry-feedback]",xM="[data-ask-learn-flyout-entry-show-only]",BEe="[data-skip-to-ask-learn]",zEe=[V6,FS];function VEe(){GEe(),ct.subscribe(Cn,GEe)}async function GEe(){await Te,Array.from(document.querySelectorAll(zEe.join(","))).forEach(n=>n.hidden=!1),Array.from(document.querySelectorAll("[data-chat-tutor-modal-entry]")).forEach(n=>n.hidden=!0)}M();M();function QEe(e){let{text:t,biName:n,biTn:o,alignment:r,action:s}=e;return d` `}function v5e(e,t){let n=[];for(let r=0;r`)}let o=Age.replace("{step-index}",e.toString()).replace("{step-count}",t.toString());return d`

    ${o}

    `}function x5e(e){return d` `}function Q6(e,t,n){let o=x5e(e.imageSrc);return d` `}function TM(e,t,n){e0&&YEe(e-1,t,n)}var T5e='[data-focus-on-button-click="true"]';function YEe(e,t,n){let o=document.createElement("div"),r=Q6(t[e],e,t.length);y(r,o),n.pushContent(o);let s=o.querySelector(T5e);s&&s.focus()}function SM(e){e.hide()}function Y6(e,t){e.hide(),localStorage.setItem(t,"2")}function CM(e,t,n,o,r,s,i,a,l,c,u){return{fetch:e,maxMessages:t,getContextIdType:n,getContextId:o,validate:r,errorMapping:s,starterPrompts:i,suggestionPills:a,companionActive:l,onFeedback:c,onTimeTelemetry:u}}var hy="/en-us/media/ask-learn/meet-ask-learn-base.png",OS="/en-us/media/ask-learn/check-for-accuracy-base.png",EM="ask-learn-history",sf="ask-learn-history-last-interaction-time",af="ask-learn-open-status";function w5e(e){return/[\u{10000}-\u{10FFFF}]/u.test(e)}function S5e(e){return w5e(e)?"non_unicode_characters":null}var US={"validation-failure":vA,"session-not-found":fr,"interaction-not-found":fr,open_ai_content_filter:rF,copilot_content_filter:rF,knowledge_index_no_results:_x,copilot_invalid_urls:_x,open_ai_empty_message:_x,failed_to_parse_open_ai_message:_x,non_unicode_characters:RX,open_ai_too_many_requests:yA},C5e=[{icon:"text-align-left",header:"Clarify",description:"Tell me more about [concept]",prompt:"Tell me more about: "},{icon:"edit-outline",header:"Define",description:"Tell me the meaning of [term/concept]",prompt:"Tell me the meaning of: "},{icon:"chat-bubbles-question",header:"Guide",description:"Tell me how to [concept]",prompt:"Tell me how to: "}],E5e=[{name:"summarize",description:"Summarize this page",prompt:"Summarize this page"},{name:"troubleshoot",description:"Help me troubleshoot",prompt:"/troubleshoot"}],WEe={like:{[lX]:"01-ai-positive-accurate-relevant",[cX]:"02-ai-positive-complete-clear",[uX]:"03-ai-positive-fast",[oF]:"00-ai-positive-other"},dislike:{[dX]:"01-ai-negative-inaccurate-irrelevant",[pX]:"02-ai-negative-incomplete-unclear",[gX]:"03-ai-negative-slow",[mX]:"04-ai-negative-offensive-inappropriate",[oF]:"00-ai-negative-other"}},A5e=120*1e3;async function k5e(e){let t={body:JSON.stringify({message:e.message,payload:{message:e.message,pageTemplate:e.pageTemplate,idType:e.idType,id:e.id},...e.sessionId?{sessionId:e.sessionId}:{}}),headers:{Accept:"applicationhttps://www.microsoft.com/json","Content-Type":"applicationhttps://www.microsoft.com/json"},method:"POST"};try{let n=await R(N(D.copilot.chatAssistant,t,!0),{},A5e);if(n.status===401)return ee(n),{message:ph,isError:!0};if(!n.ok)try{let r=await n.json();return{message:r.errorCode&&r.errorCode in US?US[r.errorCode]:fr,interactionId:r.additionalData?.interactionId,isError:!0}}catch{return{message:fr,isError:!0}}let o=await n.json();return"errorCode"in o?{message:o.errorCode&&o.errorCode in US?US[o.errorCode]:fr,interactionId:o?.additionalData?.interactionId,isError:!0}:{sessionId:o.sessionId,interactionId:o.interactionId,message:o.message,responseCount:o.assistantMessageCount,citations:o.citations}}catch{return{message:fr,isError:!0}}}var I5e=10;function jEe(){if(new URLSearchParams(window.location.search).has("excludeContext"))return{uid:void 0,contextIdType:void 0};if(b.data.pageTemplate==="ModuleUnit"){let o=k("uid");if(o)return{uid:Ot?o.replace("learn-test","learn"):o,contextIdType:"unitUid"}}let n=k("platform_id");return n?{uid:n,contextIdType:"platformId"}:{uid:void 0,contextIdType:void 0}}async function P5e(){return CM(k5e,I5e,()=>jEe().contextIdType||"",()=>jEe().uid||"",S5e,US,C5e,E5e)}var KEe=P5e();var lf="ask-learn-assistant",pi="learn-companion-fre";function by(e=lf){let t=J.getItem(e);return t?Number(t):0}function L5e(e,t){let n=[{title:iF,imageSrc:hy,descriptions:[bx],buttonLeft:{text:sF,biName:"01-not-now",biTn:lf,alignment:"left",action:()=>{SM(e),t?.()}},buttonRight:{text:Jr,biName:"01-next",biTn:lf,alignment:"right",action:()=>TM(0,n,e)}},{title:aF,imageSrc:OS,descriptions:[lF,cF],buttonLeft:{text:Mr,biName:"02-previous",biTn:lf,alignment:"left",action:()=>wM(1,n,e)},buttonRight:{text:uF,biName:"try-cta",biTn:lf,alignment:"right",action:()=>{Y6(e,lf),t?.()}}}];return n}function R5e(e,t){let n=[{title:iF,imageSrc:hy,descriptions:[bx],buttonLeft:{text:sF,biName:"01-not-now",biTn:pi,alignment:"left",action:()=>{SM(e),t?.()}},buttonRight:{text:Jr,biName:"01-next",biTn:pi,alignment:"right",action:()=>TM(0,n,e)}},{title:aF,imageSrc:OS,descriptions:[lF,cF],buttonLeft:{text:Mr,biName:"02-previous",biTn:pi,alignment:"left",action:()=>wM(1,n,e)},buttonRight:{text:Jr,biName:"02-next",biTn:pi,alignment:"right",action:()=>TM(1,n,e)}},{title:hX,imageSrc:hy,descriptions:[bA],acknowledgementCheckbox:{label:bX},buttonLeft:{text:Mr,biName:"03-previous",biTn:pi,alignment:"left",action:()=>wM(2,n,e)},buttonRight:{text:uF,biName:"03-try-ask-learn",biTn:pi,alignment:"right",action:()=>{document.querySelector(".fre-acknowledgement-checkbox")?.checked?(Y6(e,pi),t?.()):(un(_X,"assertive"),SM(e),t?.())}}}];return n}function JEe(e,t,n,o=!1,r=!1){let s=by(e);if(s>=2||!r&&document.documentElement.classList.contains("layout-flyout-active")){n?.();return}else o||(s++,J.setItem(e,s.toString()));let i=document.createElement("div");document.body.appendChild(i);let a=new ge(i,""),l=t(a,n),c=Q6(l[0],0,l.length);y(c,i),a.show()}function XEe(e){JEe(lf,L5e,e)}function AM(e,t=!1){JEe(pi,R5e,e,!0,t)}var IM="learn-companion-history",cf="learn-companion-history-last-interaction-time",bu="learn-companion-open-status",kM="learn-companion-fre-synced",M5e=30*1e3,D5e=10,bp=class extends Error{constructor(n,o){super(o);this.status=n}};async function PM(e,t,n,o){try{let r=await R(N(e,t,!0),{},n,o);if(r.status===401)throw ee(r),new bp(401,ph);if(r.status===429)throw new bp(429,yA);if(!r.ok)throw new bp(r.status,fr);return r}catch(r){throw r instanceof bp?r:new bp(0,fr)}}function ZEe(e){let t="",n="";for(let r of e.split(` `))r.startsWith("event:")?t=r.slice(6).trim():r.startsWith("data:")&&(n=r.slice(5).trim());if(!t)return null;let o=n;try{let r=JSON.parse(n);o=r.d==="_"?"":r.d??""}catch{}return{event:t,data:o}}async function $5e(e,t){try{let n=await PM(D.agentService.stream,{method:"POST",body:JSON.stringify(e)},M5e,t);if(!n.body)return{message:fr,isError:!0};let o=n.body.getReader(),r=new TextDecoder,s="",i="",a=e.conversationId??null;for(;;){let{done:l,value:c}=await o.read();if(l)break;s+=r.decode(c,{stream:!0});let u=s.split(` `);s=u.pop()||"";for(let p of u){if(!p.trim())continue;let m=ZEe(p);if(m)switch(m.event){case"StreamStart":m.data&&m.data!=="_"&&(a=m.data);break;case"AgentResponse":i+=m.data;break;case"StreamEnd":return{sessionId:a??void 0,message:i};case"Error":return{message:m.data||fr,isError:!0}}}}if(s.trim()){let l=ZEe(s);if(l?.event==="Error")return{message:l.data||fr,isError:!0}}return{sessionId:a??void 0,message:i}}catch(n){return{message:n instanceof bp?n.message:fr,isError:!0}}}async function K6(e){let t=new URL(D.agentService.conversations);t.searchParams.set("take",String(D5e)),e&&t.searchParams.set("continuationToken",e);let o=await(await PM(t.toString())).json();return{conversations:Array.isArray(o.conversations)?o.conversations:[],continuationToken:o.continuationToken??null,haAlpha XR:o.haAlpha XR===!0,totalConversations:typeof o.totalConversations=="number"?o.totalConversations:0}}async function eAe(e){let t=`${D.agentService.conversations}/${encodeURIComponent(e)}`;await PM(t,{method:"DELETE"})}async function tAe(e,t){let n=`${D.agentService.conversations}/${encodeURIComponent(e)}`;await PM(n,{method:"PATCH",headers:{"Content-Type":"applicationhttps://www.microsoft.com/json"},body:JSON.stringify({summary:t})})}function N5e(){return document.head.querySelector('link[rel="canonical"]')?.href??window.location.href}var j6="Summarize this page",F5e=[{icon:"text-align-left",header:"Clarify",description:"Tell me more about [concept]",prompt:"Tell me more about: "},{icon:"edit-outline",header:"Define",description:"Tell me the meaning of [term/concept]",prompt:"Tell me the meaning of: "},{icon:"chat-bubbles-question",header:"Guide",description:"Tell me how to [concept]",prompt:"Tell me how to: "}];async function U5e(){return CM(e=>{let t=e.message.trim().toLowerCase()===j6.toLowerCase()?`${e.message.trim()}: ${N5e()}`:e.message;return $5e({query:t,conversationId:e.sessionId})},1/0,()=>"",()=>"",void 0,void 0,F5e,[{name:"summarize",description:j6,prompt:j6}],!0,O5e,q5e)}function O5e({sessionId:e,feedbackData:t,consentProvided:n,authType:o}){Ee({behavior:Ce.SURVEYCOMPLETE,actionType:Re.OTHER,content:{autoIngest:!0,type:"learn-companion-feedback",timestamp:new Date().toISOString(),sessionId:e,feedbackData:t,authType:o,isUserConsent:n}})}function q5e({triggeredTime:e,returnedTime:t,sessionId:n,interactionId:o}){Ee({behavior:Ce.OTHER,actionType:Re.OTHER,content:{autoIngest:!0,type:"learn-companion-request",an:"learn-companion-chat",name:"learn-companion-chat-request",triggeredTimestamp:e,returnedTimestamp:t,sessionId:n,interactionId:o}})}var nAe=U5e();function LM(){return by(pi)>=2||v.companionPreferences?.chatHistoryEnabled===!0}var H5e=3e4,W6;function B5e(){let e=v.companionPreferences,t={responseDetail:e?.responseDetail??50,teachingApproach:e?.teachingApproach??50,technicalDepth:e?.technicalDepth??50,chatHistoryEnabled:!0};return{userName:v.userName,displayName:v.displayName,email:v.email,locale:v.locale,country:v.country,contactPointTopicSetting:v.contactPointTopicSetting,isPrivate:v.isPrivate,source:v.source,interests:v.interests,qnaEmailPreferences:v.qnaEmailPreferences,isQnaModerator:v.isQnaModerator,companionPreferences:t}}async function RM(){if(!(!v.isAuthenticated||!v.userName))try{if(v.companionPreferences===void 0){let n=ar();if(!n)return;let o=await rd(n);if(!o)return;v.readUserProfile(o)}let e=v.companionPreferences?.chatHistoryEnabled;if(e===!0){J.setItem(kM,"1");return}if(e===!1&&J.getItem(kM)){J.removeItem(pi),J.removeItem(kM);return}(await sd(v.userName,B5e())).hasError?W6??(W6=setInterval(RM,H5e)):(J.setItem(kM,"1"),clearInterval(W6),W6=void 0)}catch{}}M();M();function zi(){return d`
    ${XJ}
    `}M();function qS(e,t){requestAnimationFrame(()=>{e.getActiveContainer()?.querySelector(`[data-conversation-id="${CSS.escape(t)}"] [data-chat-history-row-overflow]`)?.focus()})}function z5e(e){requestAnimationFrame(()=>{let t=e.getActiveContainer();(t?.querySelector("[data-conversation-id] [data-chat-history-row-overflow]")??t?.querySelector("[data-chat-history-empty], [data-chat-history-error]"))?.focus()})}function oAe(e){requestAnimationFrame(()=>{let t=e.getActiveContainer()?.querySelector("[data-chat-history-rename-input]");t?.focus(),t?.select()})}function rAe(e){requestAnimationFrame(()=>{e.getActiveContainer()?.querySelector("[data-chat-history-confirm-delete-yes]")?.focus()})}function sAe(e,t){if(e.pendingDeleteId){let n=e.conversations.find(o=>o.conversationId===e.pendingDeleteId);return G5e(e,t,n)}return d`

    ${dh}

    ${e.isLoading?d`
    ${Xt}
    `:e.error&&!e.pendingRenameId?d`
    `:e.conversations.length===0?d`
    ${sX}
    `:d`
      ${Hs(e.conversations,n=>n.conversationId,n=>V5e(n,e,t))}
    `}
    `}function G5e(e,t,n){return d`

    ${tF}

    ${na}

    ${rX.replace("{name}",()=>n?.summary??"")}

    ${e.error?d``:""}
    `}function V5e(e,t,n){let o=t.pendingRenameId===e.conversationId;return d`
  • ${o?Q5e(e,t,n):d`
    `}
  • `}function Q5e(e,t,n){let o=async()=>{let r=t.pendingRenameDraft.trim();if(!r||r===e.summary){t.cancelRename(),qS(n,e.conversationId);return}await t.rename(e.conversationId,r)?qS(n,e.conversationId):oAe(n)};return d`
    {r.preventDefault(),o()}} @keydown=${r=>{r.key==="Escape"&&(r.preventDefault(),t.cancelRename(),qS(n,e.conversationId))}} > {t.updateRenameDraft(r.currentTarget.value)}} aria-label="${iX}" aria-invalid=${t.error?"true":"false"} aria-describedby=${t.error?`chat-history-rename-error-${e.conversationId}`:""} /> ${t.error?d``:""}
    `}M();M();function Y5e(e,t,n){let o=iI(n);if(!o)return"";let r=Mt(String(t??"")),s=Mt(o);return`
    ${e}
    ${e}. ${r}
    `}function iAe(e){return e?Object.entries(e).map(([t,n])=>{let o=parseInt(t),{title:r,url:s}=n;return Y5e(o,r,s)}):[]}function J6(e,t){if(!e||!t.length)return;let n=o=>{if(!o.open)return;let r=o.querySelector(".popover-content"),s=o.querySelector(".tag-summary");if(!r||!s)return;o.classList.add("popover-left"),r.offsetHeight;let i=e.getBoundingClientRect(),a=s.getBoundingClientRect(),l=r.getBoundingClientRect();a.left+a.width/2-l.width/2>=i.left&&(o.classList.remove("popover-left"),r.offsetHeight)};t.forEach(o=>{o.querySelectorAll("details.popover.tag-popover").forEach(s=>{s.addEventListener("toggle",i=>{let a=i.target;a.open&&n(a)})})})}M();function j5e(e,t,n,o,r,s){let i=`${e}-${t}-msg${r}`,a=`${e}-${t}-msg${r}-choice${s}`;return d` `}function W5e(e,t,n){return Object.entries(WEe[n]).map(([s,i],a)=>j5e(t,n,s,i,e.index,a))}function K5e(e){return t=>{if(!t)return;let n=t.currentTarget;if(!n)return;let o=n.getAttribute("aria-expanded")==="true";n.setAttribute("aria-expanded",(!o).toString());let r=n.getAttribute("aria-controls");if(!r)return;e.previewPayload(t);let s=`${r}-disclaimer`,i=document.getElementById(s);if(!i)return;let a=zn(aAe(!o),d``);y(a,i),n.textContent=o?vm:kk}}async function aAe(e){return await fe,v&&v.authenticationMode==="AAD"?q(e?Yie:jie):q(Qie)}function J5e(e,t,n,o,r=aAe(!1)){let s=py(o,"disclaimer-see-more","link-button font-weight-semibold font-size-sm margin-top-xxs",K5e(e),vm,!0,!1,`ask-learn-show-more-${e.index}-${n}`),i=`${t}-feedback-payload-${e.index}-${n}`;return d`
    ${zn(r,d``)}
    ${X5e(e,i)}
    ${s}
    `}function X5e(e,t){return d` `}function Z5e(e,t,n){let o=`${t}-feedback-textarea-${e.index}-${n}`,r=`${t}-see-more-${e.index}-${n}`;return d`
    e.handleSubmit(e,s)}>
    ${IX}
    ${W5e(e,t,n)}

    ${J5e(e,t,n,r)}

    `}function lAe(e,t){let n;return e.state==="none"?"":(e.state==="submitted"||e.state==="cancelled"?n=d` ${zi()}
    ${fX}
    `:(e.state==="like"||e.state==="dislike")&&(n=Z5e(e,t,e.state)),d`
    ${n}
    `)}var XM={};Rn(XM,{default:()=>JM});var iz={};Rn(iz,{arrayReplaceAt:()=>sz,assign:()=>vy,escapeHtml:()=>yu,escapeRE:()=>N8e,fromCodePoint:()=>zS,has:()=>C8e,isMdAsciiPunct:()=>pf,isPunctChar:()=>df,isSpace:()=>Nt,isString:()=>GM,isValidEntityCode:()=>VM,isWhiteSpace:()=>uf,lib:()=>F8e,normalizeReference:()=>mf,unescapeAll:()=>_u,unescapeMd:()=>P8e});var FM={};Rn(FM,{decode:()=>HS,encode:()=>$M,format:()=>_y,parse:()=>BS});var cAe={};function e8e(e){let t=cAe[e];if(t)return t;t=cAe[e]=[];for(let n=0;n<128;n++){let o=String.fromCharCode(n);t.push(o)}for(let n=0;n=55296&&u<=57343?r+="\uFFFD\uFFFD\uFFFD":r+=String.fromCharCode(u),s+=6;continue}}if((a&248)===240&&s+91114111?r+="\uFFFD\uFFFD\uFFFD\uFFFD":(p-=65536,r+=String.fromCharCode(55296+(p>>10),56320+(p&1023))),s+=9;continue}}r+="\uFFFD"}return r})}MM.defaultChars=";/?:@&=+$,#";MM.componentChars="";var HS=MM;var uAe={};function t8e(e){let t=uAe[e];if(t)return t;t=uAe[e]=[];for(let n=0;n<128;n++){let o=String.fromCharCode(n);/^[0-9a-z]$/i.test(o)?t.push(o):t.push("%"+("0"+n.toString(16).toUpperCase()).slice(-2))}for(let n=0;n"u"&&(n=!0);let o=t8e(t),r="";for(let s=0,i=e.length;s=55296&&a<=57343){if(a>=55296&&a<=56319&&s+1=56320&&l<=57343){r+=encodeURIComponent(e[s]+e[s+1]),s++;continue}}r+="%EF%BF%BD";continue}r+=encodeURIComponent(e[s])}return r}DM.defaultChars=";/?:@&=+$,-_.!~*'()#";DM.componentChars="-_.!~*'()";var $M=DM;function _y(e){let t="";return t+=e.protocol||"",t+=e.slashes?"//":"",t+=e.auth?e.auth+"@":"",e.hostname&&e.hostname.indexOf(":")!==-1?t+="["+e.hostname+"]":t+=e.hostname||"",t+=e.port?":"+e.port:"",t+=e.pathname||"",t+=e.search||"",t+=e.hash||"",t}function NM(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}var n8e=/^([a-z0-9.+-]+:)/i,o8e=/:[0-9]*$/,r8e=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,s8e=["<",">",'"',"`"," ","\r",` `," "],i8e=["{","}","|","\\","^","`"].concat(s8e),a8e=["'"].concat(i8e),dAe=["%","/","?",";","#"].concat(a8e),pAe=["/","?","#"],l8e=255,mAe=/^[+a-z0-9A-Z_-]{0,63}$/,c8e=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,gAe={javascript:!0,"javascript:":!0},fAe={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function u8e(e,t){if(e&&e instanceof NM)return e;let n=new NM;return n.parse(e,t),n}NM.prototype.parse=function(e,t){let n,o,r,s=e;if(s=s.trim(),!t&&e.split("#").length===1){let c=r8e.exec(s);if(c)return this.pathname=c[1],c[2]&&(this.search=c[2]),this}let i=n8e.exec(s);if(i&&(i=i[0],n=i.toLowerCase(),this.protocol=i,s=s.substr(i.length)),(t||i||s.match(/^\/\/[^@\/]+@[^@\/]+/))&&(r=s.substr(0,2)==="//",r&&!(i&&gAe[i])&&(s=s.substr(2),this.slashes=!0)),!gAe[i]&&(r||i&&!fAe[i])){let c=-1;for(let f=0;f127?x+="x":x+=T[w];if(!x.match(mAe)){let w=f.slice(0,_),I=f.slice(_+1),E=T.match(c8e);E&&(w.push(E[1]),I.unshift(E[2])),I.length&&(s=I.join(".")+s),this.hostname=w.join(".");break}}}}this.hostname.length>l8e&&(this.hostname=""),g&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}let a=s.indexOf("#");a!==-1&&(this.hash=s.substr(a),s=s.slice(0,a));let l=s.indexOf("?");return l!==-1&&(this.search=s.substr(l),s=s.slice(0,l)),s&&(this.pathname=s),fAe[n]&&this.hostname&&!this.pathname&&(this.pathname=""),this};NM.prototype.parseHost=function(e){let t=o8e.exec(e);t&&(t=t[0],t!==":"&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};var BS=u8e;var X6={};Rn(X6,{Any:()=>UM,Cc:()=>OM,Cf:()=>hAe,P:()=>yy,S:()=>qM,Z:()=>HM});var UM=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;var OM=/[\0-\x1F\x7F-\x9F]/;var hAe=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/;var yy=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/;var qM=/[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/;var HM=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/;var bAe=new Uint16Array('\u1D41<\xD5\u0131\u028A\u049D\u057B\u05D0\u0675\u06DE\u07A2\u07D6\u080F\u0A4A\u0A91\u0DA1\u0E6D\u0F09\u0F26\u10CA\u1228\u12E1\u1415\u149D\u14C3\u14DF\u1525\0\0\0\0\0\0\u156B\u16CD\u198D\u1C12\u1DDD\u1F7E\u2060\u21B0\u228D\u23C0\u23FB\u2442\u2824\u2912\u2D08\u2E48\u2FCE\u3016\u32BA\u3639\u37AC\u38FE\u3A28\u3A71\u3AE0\u3B2E\u0800EMabcfglmnoprstu\\bfms\x7F\x84\x8B\x90\x95\x98\xA6\xB3\xB9\xC8\xCFlig\u803B\xC6\u40C6P\u803B&\u4026cute\u803B\xC1\u40C1reve;\u4102\u0100iyx}rc\u803B\xC2\u40C2;\u4410r;\uC000\u{1D504}rave\u803B\xC0\u40C0pha;\u4391acr;\u4100d;\u6A53\u0100gp\x9D\xA1on;\u4104f;\uC000\u{1D538}plyFunction;\u6061ing\u803B\xC5\u40C5\u0100cs\xBE\xC3r;\uC000\u{1D49C}ign;\u6254ilde\u803B\xC3\u40C3ml\u803B\xC4\u40C4\u0400aceforsu\xE5\xFB\xFE\u0117\u011C\u0122\u0127\u012A\u0100cr\xEA\xF2kslash;\u6216\u0176\xF6\xF8;\u6AE7ed;\u6306y;\u4411\u0180crt\u0105\u010B\u0114ause;\u6235noullis;\u612Ca;\u4392r;\uC000\u{1D505}pf;\uC000\u{1D539}eve;\u42D8c\xF2\u0113mpeq;\u624E\u0700HOacdefhilorsu\u014D\u0151\u0156\u0180\u019E\u01A2\u01B5\u01B7\u01BA\u01DC\u0215\u0273\u0278\u027Ecy;\u4427PY\u803B\xA9\u40A9\u0180cpy\u015D\u0162\u017Aute;\u4106\u0100;i\u0167\u0168\u62D2talDifferentialD;\u6145leys;\u612D\u0200aeio\u0189\u018E\u0194\u0198ron;\u410Cdil\u803B\xC7\u40C7rc;\u4108nint;\u6230ot;\u410A\u0100dn\u01A7\u01ADilla;\u40B8terDot;\u40B7\xF2\u017Fi;\u43A7rcle\u0200DMPT\u01C7\u01CB\u01D1\u01D6ot;\u6299inus;\u6296lus;\u6295imes;\u6297o\u0100cs\u01E2\u01F8kwiseContourIntegral;\u6232eCurly\u0100DQ\u0203\u020FoubleQuote;\u601Duote;\u6019\u0200lnpu\u021E\u0228\u0247\u0255on\u0100;e\u0225\u0226\u6237;\u6A74\u0180git\u022F\u0236\u023Aruent;\u6261nt;\u622FourIntegral;\u622E\u0100fr\u024C\u024E;\u6102oduct;\u6210nterClockwiseContourIntegral;\u6233oss;\u6A2Fcr;\uC000\u{1D49E}p\u0100;C\u0284\u0285\u62D3ap;\u624D\u0580DJSZacefios\u02A0\u02AC\u02B0\u02B4\u02B8\u02CB\u02D7\u02E1\u02E6\u0333\u048D\u0100;o\u0179\u02A5trahd;\u6911cy;\u4402cy;\u4405cy;\u440F\u0180grs\u02BF\u02C4\u02C7ger;\u6021r;\u61A1hv;\u6AE4\u0100ay\u02D0\u02D5ron;\u410E;\u4414l\u0100;t\u02DD\u02DE\u6207a;\u4394r;\uC000\u{1D507}\u0100af\u02EB\u0327\u0100cm\u02F0\u0322ritical\u0200ADGT\u0300\u0306\u0316\u031Ccute;\u40B4o\u0174\u030B\u030D;\u42D9bleAcute;\u42DDrave;\u4060ilde;\u42DCond;\u62C4ferentialD;\u6146\u0470\u033D\0\0\0\u0342\u0354\0\u0405f;\uC000\u{1D53B}\u0180;DE\u0348\u0349\u034D\u40A8ot;\u60DCqual;\u6250ble\u0300CDLRUV\u0363\u0372\u0382\u03CF\u03E2\u03F8ontourIntegra\xEC\u0239o\u0274\u0379\0\0\u037B\xBB\u0349nArrow;\u61D3\u0100eo\u0387\u03A4ft\u0180ART\u0390\u0396\u03A1rrow;\u61D0ightArrow;\u61D4e\xE5\u02CAng\u0100LR\u03AB\u03C4eft\u0100AR\u03B3\u03B9rrow;\u67F8ightArrow;\u67FAightArrow;\u67F9ight\u0100AT\u03D8\u03DErrow;\u61D2ee;\u62A8p\u0241\u03E9\0\0\u03EFrrow;\u61D1ownArrow;\u61D5erticalBar;\u6225n\u0300ABLRTa\u0412\u042A\u0430\u045E\u047F\u037Crrow\u0180;BU\u041D\u041E\u0422\u6193ar;\u6913pArrow;\u61F5reve;\u4311eft\u02D2\u043A\0\u0446\0\u0450ightVector;\u6950eeVector;\u695Eector\u0100;B\u0459\u045A\u61BDar;\u6956ight\u01D4\u0467\0\u0471eeVector;\u695Fector\u0100;B\u047A\u047B\u61C1ar;\u6957ee\u0100;A\u0486\u0487\u62A4rrow;\u61A7\u0100ct\u0492\u0497r;\uC000\u{1D49F}rok;\u4110\u0800NTacdfglmopqstux\u04BD\u04C0\u04C4\u04CB\u04DE\u04E2\u04E7\u04EE\u04F5\u0521\u052F\u0536\u0552\u055D\u0560\u0565G;\u414AH\u803B\xD0\u40D0cute\u803B\xC9\u40C9\u0180aiy\u04D2\u04D7\u04DCron;\u411Arc\u803B\xCA\u40CA;\u442Dot;\u4116r;\uC000\u{1D508}rave\u803B\xC8\u40C8ement;\u6208\u0100ap\u04FA\u04FEcr;\u4112ty\u0253\u0506\0\0\u0512mallSquare;\u65FBerySmallSquare;\u65AB\u0100gp\u0526\u052Aon;\u4118f;\uC000\u{1D53C}silon;\u4395u\u0100ai\u053C\u0549l\u0100;T\u0542\u0543\u6A75ilde;\u6242librium;\u61CC\u0100ci\u0557\u055Ar;\u6130m;\u6A73a;\u4397ml\u803B\xCB\u40CB\u0100ip\u056A\u056Fsts;\u6203onentialE;\u6147\u0280cfios\u0585\u0588\u058D\u05B2\u05CCy;\u4424r;\uC000\u{1D509}lled\u0253\u0597\0\0\u05A3mallSquare;\u65FCerySmallSquare;\u65AA\u0370\u05BA\0\u05BF\0\0\u05C4f;\uC000\u{1D53D}All;\u6200riertrf;\u6131c\xF2\u05CB\u0600JTabcdfgorst\u05E8\u05EC\u05EF\u05FA\u0600\u0612\u0616\u061B\u061D\u0623\u066C\u0672cy;\u4403\u803B>\u403Emma\u0100;d\u05F7\u05F8\u4393;\u43DCreve;\u411E\u0180eiy\u0607\u060C\u0610dil;\u4122rc;\u411C;\u4413ot;\u4120r;\uC000\u{1D50A};\u62D9pf;\uC000\u{1D53E}eater\u0300EFGLST\u0635\u0644\u064E\u0656\u065B\u0666qual\u0100;L\u063E\u063F\u6265ess;\u62DBullEqual;\u6267reater;\u6AA2ess;\u6277lantEqual;\u6A7Eilde;\u6273cr;\uC000\u{1D4A2};\u626B\u0400Aacfiosu\u0685\u068B\u0696\u069B\u069E\u06AA\u06BE\u06CARDcy;\u442A\u0100ct\u0690\u0694ek;\u42C7;\u405Eirc;\u4124r;\u610ClbertSpace;\u610B\u01F0\u06AF\0\u06B2f;\u610DizontalLine;\u6500\u0100ct\u06C3\u06C5\xF2\u06A9rok;\u4126mp\u0144\u06D0\u06D8ownHum\xF0\u012Fqual;\u624F\u0700EJOacdfgmnostu\u06FA\u06FE\u0703\u0707\u070E\u071A\u071E\u0721\u0728\u0744\u0778\u078B\u078F\u0795cy;\u4415lig;\u4132cy;\u4401cute\u803B\xCD\u40CD\u0100iy\u0713\u0718rc\u803B\xCE\u40CE;\u4418ot;\u4130r;\u6111rave\u803B\xCC\u40CC\u0180;ap\u0720\u072F\u073F\u0100cg\u0734\u0737r;\u412AinaryI;\u6148lie\xF3\u03DD\u01F4\u0749\0\u0762\u0100;e\u074D\u074E\u622C\u0100gr\u0753\u0758ral;\u622Bsection;\u62C2isible\u0100CT\u076C\u0772omma;\u6063imes;\u6062\u0180gpt\u077F\u0783\u0788on;\u412Ef;\uC000\u{1D540}a;\u4399cr;\u6110ilde;\u4128\u01EB\u079A\0\u079Ecy;\u4406l\u803B\xCF\u40CF\u0280cfosu\u07AC\u07B7\u07BC\u07C2\u07D0\u0100iy\u07B1\u07B5rc;\u4134;\u4419r;\uC000\u{1D50D}pf;\uC000\u{1D541}\u01E3\u07C7\0\u07CCr;\uC000\u{1D4A5}rcy;\u4408kcy;\u4404\u0380HJacfos\u07E4\u07E8\u07EC\u07F1\u07FD\u0802\u0808cy;\u4425cy;\u440Cppa;\u439A\u0100ey\u07F6\u07FBdil;\u4136;\u441Ar;\uC000\u{1D50E}pf;\uC000\u{1D542}cr;\uC000\u{1D4A6}\u0580JTaceflmost\u0825\u0829\u082C\u0850\u0863\u09B3\u09B8\u09C7\u09CD\u0A37\u0A47cy;\u4409\u803B<\u403C\u0280cmnpr\u0837\u083C\u0841\u0844\u084Dute;\u4139bda;\u439Bg;\u67EAlacetrf;\u6112r;\u619E\u0180aey\u0857\u085C\u0861ron;\u413Ddil;\u413B;\u441B\u0100fs\u0868\u0970t\u0500ACDFRTUVar\u087E\u08A9\u08B1\u08E0\u08E6\u08FC\u092F\u095B\u0390\u096A\u0100nr\u0883\u088FgleBracket;\u67E8row\u0180;BR\u0899\u089A\u089E\u6190ar;\u61E4ightArrow;\u61C6eiling;\u6308o\u01F5\u08B7\0\u08C3bleBracket;\u67E6n\u01D4\u08C8\0\u08D2eeVector;\u6961ector\u0100;B\u08DB\u08DC\u61C3ar;\u6959loor;\u630Aight\u0100AV\u08EF\u08F5rrow;\u6194ector;\u694E\u0100er\u0901\u0917e\u0180;AV\u0909\u090A\u0910\u62A3rrow;\u61A4ector;\u695Aiangle\u0180;BE\u0924\u0925\u0929\u62B2ar;\u69CFqual;\u62B4p\u0180DTV\u0937\u0942\u094CownVector;\u6951eeVector;\u6960ector\u0100;B\u0956\u0957\u61BFar;\u6958ector\u0100;B\u0965\u0966\u61BCar;\u6952ight\xE1\u039Cs\u0300EFGLST\u097E\u098B\u0995\u099D\u09A2\u09ADqualGreater;\u62DAullEqual;\u6266reater;\u6276ess;\u6AA1lantEqual;\u6A7Dilde;\u6272r;\uC000\u{1D50F}\u0100;e\u09BD\u09BE\u62D8ftarrow;\u61DAidot;\u413F\u0180npw\u09D4\u0A16\u0A1Bg\u0200LRlr\u09DE\u09F7\u0A02\u0A10eft\u0100AR\u09E6\u09ECrrow;\u67F5ightArrow;\u67F7ightArrow;\u67F6eft\u0100ar\u03B3\u0A0Aight\xE1\u03BFight\xE1\u03CAf;\uC000\u{1D543}er\u0100LR\u0A22\u0A2CeftArrow;\u6199ightArrow;\u6198\u0180cht\u0A3E\u0A40\u0A42\xF2\u084C;\u61B0rok;\u4141;\u626A\u0400acefiosu\u0A5A\u0A5D\u0A60\u0A77\u0A7C\u0A85\u0A8B\u0A8Ep;\u6905y;\u441C\u0100dl\u0A65\u0A6FiumSpace;\u605Flintrf;\u6133r;\uC000\u{1D510}nusPlus;\u6213pf;\uC000\u{1D544}c\xF2\u0A76;\u439C\u0480Jacefostu\u0AA3\u0AA7\u0AAD\u0AC0\u0B14\u0B19\u0D91\u0D97\u0D9Ecy;\u440Acute;\u4143\u0180aey\u0AB4\u0AB9\u0ABEron;\u4147dil;\u4145;\u441D\u0180gsw\u0AC7\u0AF0\u0B0Eative\u0180MTV\u0AD3\u0ADF\u0AE8ediumSpace;\u600Bhi\u0100cn\u0AE6\u0AD8\xEB\u0AD9eryThi\xEE\u0AD9ted\u0100GL\u0AF8\u0B06reaterGreate\xF2\u0673essLes\xF3\u0A48Line;\u400Ar;\uC000\u{1D511}\u0200Bnpt\u0B22\u0B28\u0B37\u0B3Areak;\u6060BreakingSpace;\u40A0f;\u6115\u0680;CDEGHLNPRSTV\u0B55\u0B56\u0B6A\u0B7C\u0BA1\u0BEB\u0C04\u0C5E\u0C84\u0CA6\u0CD8\u0D61\u0D85\u6AEC\u0100ou\u0B5B\u0B64ngruent;\u6262pCap;\u626DoubleVerticalBar;\u6226\u0180lqx\u0B83\u0B8A\u0B9Bement;\u6209ual\u0100;T\u0B92\u0B93\u6260ilde;\uC000\u2242\u0338ists;\u6204reater\u0380;EFGLST\u0BB6\u0BB7\u0BBD\u0BC9\u0BD3\u0BD8\u0BE5\u626Fqual;\u6271ullEqual;\uC000\u2267\u0338reater;\uC000\u226B\u0338ess;\u6279lantEqual;\uC000\u2A7E\u0338ilde;\u6275ump\u0144\u0BF2\u0BFDownHump;\uC000\u224E\u0338qual;\uC000\u224F\u0338e\u0100fs\u0C0A\u0C27tTriangle\u0180;BE\u0C1A\u0C1B\u0C21\u62EAar;\uC000\u29CF\u0338qual;\u62ECs\u0300;EGLST\u0C35\u0C36\u0C3C\u0C44\u0C4B\u0C58\u626Equal;\u6270reater;\u6278ess;\uC000\u226A\u0338lantEqual;\uC000\u2A7D\u0338ilde;\u6274ested\u0100GL\u0C68\u0C79reaterGreater;\uC000\u2AA2\u0338essLess;\uC000\u2AA1\u0338recedes\u0180;ES\u0C92\u0C93\u0C9B\u6280qual;\uC000\u2AAF\u0338lantEqual;\u62E0\u0100ei\u0CAB\u0CB9verseElement;\u620CghtTriangle\u0180;BE\u0CCB\u0CCC\u0CD2\u62EBar;\uC000\u29D0\u0338qual;\u62ED\u0100qu\u0CDD\u0D0CuareSu\u0100bp\u0CE8\u0CF9set\u0100;E\u0CF0\u0CF3\uC000\u228F\u0338qual;\u62E2erset\u0100;E\u0D03\u0D06\uC000\u2290\u0338qual;\u62E3\u0180bcp\u0D13\u0D24\u0D4Eset\u0100;E\u0D1B\u0D1E\uC000\u2282\u20D2qual;\u6288ceeds\u0200;EST\u0D32\u0D33\u0D3B\u0D46\u6281qual;\uC000\u2AB0\u0338lantEqual;\u62E1ilde;\uC000\u227F\u0338erset\u0100;E\u0D58\u0D5B\uC000\u2283\u20D2qual;\u6289ilde\u0200;EFT\u0D6E\u0D6F\u0D75\u0D7F\u6241qual;\u6244ullEqual;\u6247ilde;\u6249erticalBar;\u6224cr;\uC000\u{1D4A9}ilde\u803B\xD1\u40D1;\u439D\u0700Eacdfgmoprstuv\u0DBD\u0DC2\u0DC9\u0DD5\u0DDB\u0DE0\u0DE7\u0DFC\u0E02\u0E20\u0E22\u0E32\u0E3F\u0E44lig;\u4152cute\u803B\xD3\u40D3\u0100iy\u0DCE\u0DD3rc\u803B\xD4\u40D4;\u441Eblac;\u4150r;\uC000\u{1D512}rave\u803B\xD2\u40D2\u0180aei\u0DEE\u0DF2\u0DF6cr;\u414Cga;\u43A9cron;\u439Fpf;\uC000\u{1D546}enCurly\u0100DQ\u0E0E\u0E1AoubleQuote;\u601Cuote;\u6018;\u6A54\u0100cl\u0E27\u0E2Cr;\uC000\u{1D4AA}ash\u803B\xD8\u40D8i\u016C\u0E37\u0E3Cde\u803B\xD5\u40D5es;\u6A37ml\u803B\xD6\u40D6er\u0100BP\u0E4B\u0E60\u0100ar\u0E50\u0E53r;\u603Eac\u0100ek\u0E5A\u0E5C;\u63DEet;\u63B4arenthesis;\u63DC\u0480acfhilors\u0E7F\u0E87\u0E8A\u0E8F\u0E92\u0E94\u0E9D\u0EB0\u0EFCrtialD;\u6202y;\u441Fr;\uC000\u{1D513}i;\u43A6;\u43A0usMinus;\u40B1\u0100ip\u0EA2\u0EADncareplan\xE5\u069Df;\u6119\u0200;eio\u0EB9\u0EBA\u0EE0\u0EE4\u6ABBcedes\u0200;EST\u0EC8\u0EC9\u0ECF\u0EDA\u627Aqual;\u6AAFlantEqual;\u627Cilde;\u627Eme;\u6033\u0100dp\u0EE9\u0EEEuct;\u620Fortion\u0100;a\u0225\u0EF9l;\u621D\u0100ci\u0F01\u0F06r;\uC000\u{1D4AB};\u43A8\u0200Ufos\u0F11\u0F16\u0F1B\u0F1FOT\u803B"\u4022r;\uC000\u{1D514}pf;\u611Acr;\uC000\u{1D4AC}\u0600BEacefhiorsu\u0F3E\u0F43\u0F47\u0F60\u0F73\u0FA7\u0FAA\u0FAD\u1096\u10A9\u10B4\u10BEarr;\u6910G\u803B\xAE\u40AE\u0180cnr\u0F4E\u0F53\u0F56ute;\u4154g;\u67EBr\u0100;t\u0F5C\u0F5D\u61A0l;\u6916\u0180aey\u0F67\u0F6C\u0F71ron;\u4158dil;\u4156;\u4420\u0100;v\u0F78\u0F79\u611Cerse\u0100EU\u0F82\u0F99\u0100lq\u0F87\u0F8Eement;\u620Builibrium;\u61CBpEquilibrium;\u696Fr\xBB\u0F79o;\u43A1ght\u0400ACDFTUVa\u0FC1\u0FEB\u0FF3\u1022\u1028\u105B\u1087\u03D8\u0100nr\u0FC6\u0FD2gleBracket;\u67E9row\u0180;BL\u0FDC\u0FDD\u0FE1\u6192ar;\u61E5eftArrow;\u61C4eiling;\u6309o\u01F5\u0FF9\0\u1005bleBracket;\u67E7n\u01D4\u100A\0\u1014eeVector;\u695Dector\u0100;B\u101D\u101E\u61C2ar;\u6955loor;\u630B\u0100er\u102D\u1043e\u0180;AV\u1035\u1036\u103C\u62A2rrow;\u61A6ector;\u695Biangle\u0180;BE\u1050\u1051\u1055\u62B3ar;\u69D0qual;\u62B5p\u0180DTV\u1063\u106E\u1078ownVector;\u694FeeVector;\u695Cector\u0100;B\u1082\u1083\u61BEar;\u6954ector\u0100;B\u1091\u1092\u61C0ar;\u6953\u0100pu\u109B\u109Ef;\u611DndImplies;\u6970ightarrow;\u61DB\u0100ch\u10B9\u10BCr;\u611B;\u61B1leDelayed;\u69F4\u0680HOacfhimoqstu\u10E4\u10F1\u10F7\u10FD\u1119\u111E\u1151\u1156\u1161\u1167\u11B5\u11BB\u11BF\u0100Cc\u10E9\u10EEHcy;\u4429y;\u4428FTcy;\u442Ccute;\u415A\u0280;aeiy\u1108\u1109\u110E\u1113\u1117\u6ABCron;\u4160dil;\u415Erc;\u415C;\u4421r;\uC000\u{1D516}ort\u0200DLRU\u112A\u1134\u113E\u1149ownArrow\xBB\u041EeftArrow\xBB\u089AightArrow\xBB\u0FDDpArrow;\u6191gma;\u43A3allCircle;\u6218pf;\uC000\u{1D54A}\u0272\u116D\0\0\u1170t;\u621Aare\u0200;ISU\u117B\u117C\u1189\u11AF\u65A1ntersection;\u6293u\u0100bp\u118F\u119Eset\u0100;E\u1197\u1198\u628Fqual;\u6291erset\u0100;E\u11A8\u11A9\u6290qual;\u6292nion;\u6294cr;\uC000\u{1D4AE}ar;\u62C6\u0200bcmp\u11C8\u11DB\u1209\u120B\u0100;s\u11CD\u11CE\u62D0et\u0100;E\u11CD\u11D5qual;\u6286\u0100ch\u11E0\u1205eeds\u0200;EST\u11ED\u11EE\u11F4\u11FF\u627Bqual;\u6AB0lantEqual;\u627Dilde;\u627FTh\xE1\u0F8C;\u6211\u0180;es\u1212\u1213\u1223\u62D1rset\u0100;E\u121C\u121D\u6283qual;\u6287et\xBB\u1213\u0580HRSacfhiors\u123E\u1244\u1249\u1255\u125E\u1271\u1276\u129F\u12C2\u12C8\u12D1ORN\u803B\xDE\u40DEADE;\u6122\u0100Hc\u124E\u1252cy;\u440By;\u4426\u0100bu\u125A\u125C;\u4009;\u43A4\u0180aey\u1265\u126A\u126Fron;\u4164dil;\u4162;\u4422r;\uC000\u{1D517}\u0100ei\u127B\u1289\u01F2\u1280\0\u1287efore;\u6234a;\u4398\u0100cn\u128E\u1298kSpace;\uC000\u205F\u200ASpace;\u6009lde\u0200;EFT\u12AB\u12AC\u12B2\u12BC\u623Cqual;\u6243ullEqual;\u6245ilde;\u6248pf;\uC000\u{1D54B}ipleDot;\u60DB\u0100ct\u12D6\u12DBr;\uC000\u{1D4AF}rok;\u4166\u0AE1\u12F7\u130E\u131A\u1326\0\u132C\u1331\0\0\0\0\0\u1338\u133D\u1377\u1385\0\u13FF\u1404\u140A\u1410\u0100cr\u12FB\u1301ute\u803B\xDA\u40DAr\u0100;o\u1307\u1308\u619Fcir;\u6949r\u01E3\u1313\0\u1316y;\u440Eve;\u416C\u0100iy\u131E\u1323rc\u803B\xDB\u40DB;\u4423blac;\u4170r;\uC000\u{1D518}rave\u803B\xD9\u40D9acr;\u416A\u0100di\u1341\u1369er\u0100BP\u1348\u135D\u0100ar\u134D\u1350r;\u405Fac\u0100ek\u1357\u1359;\u63DFet;\u63B5arenthesis;\u63DDon\u0100;P\u1370\u1371\u62C3lus;\u628E\u0100gp\u137B\u137Fon;\u4172f;\uC000\u{1D54C}\u0400ADETadps\u1395\u13AE\u13B8\u13C4\u03E8\u13D2\u13D7\u13F3rrow\u0180;BD\u1150\u13A0\u13A4ar;\u6912ownArrow;\u61C5ownArrow;\u6195quilibrium;\u696Eee\u0100;A\u13CB\u13CC\u62A5rrow;\u61A5own\xE1\u03F3er\u0100LR\u13DE\u13E8eftArrow;\u6196ightArrow;\u6197i\u0100;l\u13F9\u13FA\u43D2on;\u43A5ing;\u416Ecr;\uC000\u{1D4B0}ilde;\u4168ml\u803B\xDC\u40DC\u0480Dbcdefosv\u1427\u142C\u1430\u1433\u143E\u1485\u148A\u1490\u1496ash;\u62ABar;\u6AEBy;\u4412ash\u0100;l\u143B\u143C\u62A9;\u6AE6\u0100er\u1443\u1445;\u62C1\u0180bty\u144C\u1450\u147Aar;\u6016\u0100;i\u144F\u1455cal\u0200BLST\u1461\u1465\u146A\u1474ar;\u6223ine;\u407Ceparator;\u6758ilde;\u6240ThinSpace;\u600Ar;\uC000\u{1D519}pf;\uC000\u{1D54D}cr;\uC000\u{1D4B1}dash;\u62AA\u0280cefos\u14A7\u14AC\u14B1\u14B6\u14BCirc;\u4174dge;\u62C0r;\uC000\u{1D51A}pf;\uC000\u{1D54E}cr;\uC000\u{1D4B2}\u0200fios\u14CB\u14D0\u14D2\u14D8r;\uC000\u{1D51B};\u439Epf;\uC000\u{1D54F}cr;\uC000\u{1D4B3}\u0480AIUacfosu\u14F1\u14F5\u14F9\u14FD\u1504\u150F\u1514\u151A\u1520cy;\u442Fcy;\u4407cy;\u442Ecute\u803B\xDD\u40DD\u0100iy\u1509\u150Drc;\u4176;\u442Br;\uC000\u{1D51C}pf;\uC000\u{1D550}cr;\uC000\u{1D4B4}ml;\u4178\u0400Hacdefos\u1535\u1539\u153F\u154B\u154F\u155D\u1560\u1564cy;\u4416cute;\u4179\u0100ay\u1544\u1549ron;\u417D;\u4417ot;\u417B\u01F2\u1554\0\u155BoWidt\xE8\u0AD9a;\u4396r;\u6128pf;\u6124cr;\uC000\u{1D4B5}\u0BE1\u1583\u158A\u1590\0\u15B0\u15B6\u15BF\0\0\0\0\u15C6\u15DB\u15EB\u165F\u166D\0\u1695\u169B\u16B2\u16B9\0\u16BEcute\u803B\xE1\u40E1reve;\u4103\u0300;Ediuy\u159C\u159D\u15A1\u15A3\u15A8\u15AD\u623E;\uC000\u223E\u0333;\u623Frc\u803B\xE2\u40E2te\u80BB\xB4\u0306;\u4430lig\u803B\xE6\u40E6\u0100;r\xB2\u15BA;\uC000\u{1D51E}rave\u803B\xE0\u40E0\u0100ep\u15CA\u15D6\u0100fp\u15CF\u15D4sym;\u6135\xE8\u15D3ha;\u43B1\u0100ap\u15DFc\u0100cl\u15E4\u15E7r;\u4101g;\u6A3F\u0264\u15F0\0\0\u160A\u0280;adsv\u15FA\u15FB\u15FF\u1601\u1607\u6227nd;\u6A55;\u6A5Clope;\u6A58;\u6A5A\u0380;elmrsz\u1618\u1619\u161B\u161E\u163F\u164F\u1659\u6220;\u69A4e\xBB\u1619sd\u0100;a\u1625\u1626\u6221\u0461\u1630\u1632\u1634\u1636\u1638\u163A\u163C\u163E;\u69A8;\u69A9;\u69AA;\u69AB;\u69AC;\u69AD;\u69AE;\u69AFt\u0100;v\u1645\u1646\u621Fb\u0100;d\u164C\u164D\u62BE;\u699D\u0100pt\u1654\u1657h;\u6222\xBB\xB9arr;\u637C\u0100gp\u1663\u1667on;\u4105f;\uC000\u{1D552}\u0380;Eaeiop\u12C1\u167B\u167D\u1682\u1684\u1687\u168A;\u6A70cir;\u6A6F;\u624Ad;\u624Bs;\u4027rox\u0100;e\u12C1\u1692\xF1\u1683ing\u803B\xE5\u40E5\u0180cty\u16A1\u16A6\u16A8r;\uC000\u{1D4B6};\u402Amp\u0100;e\u12C1\u16AF\xF1\u0288ilde\u803B\xE3\u40E3ml\u803B\xE4\u40E4\u0100ci\u16C2\u16C8onin\xF4\u0272nt;\u6A11\u0800Nabcdefiklnoprsu\u16ED\u16F1\u1730\u173C\u1743\u1748\u1778\u177D\u17E0\u17E6\u1839\u1850\u170D\u193D\u1948\u1970ot;\u6AED\u0100cr\u16F6\u171Ek\u0200ceps\u1700\u1705\u170D\u1713ong;\u624Cpsilon;\u43F6rime;\u6035im\u0100;e\u171A\u171B\u623Dq;\u62CD\u0176\u1722\u1726ee;\u62BDed\u0100;g\u172C\u172D\u6305e\xBB\u172Drk\u0100;t\u135C\u1737brk;\u63B6\u0100oy\u1701\u1741;\u4431quo;\u601E\u0280cmprt\u1753\u175B\u1761\u1764\u1768aus\u0100;e\u010A\u0109ptyv;\u69B0s\xE9\u170Cno\xF5\u0113\u0180ahw\u176F\u1771\u1773;\u43B2;\u6136een;\u626Cr;\uC000\u{1D51F}g\u0380costuvw\u178D\u179D\u17B3\u17C1\u17D5\u17DB\u17DE\u0180aiu\u1794\u1796\u179A\xF0\u0760rc;\u65EFp\xBB\u1371\u0180dpt\u17A4\u17A8\u17ADot;\u6A00lus;\u6A01imes;\u6A02\u0271\u17B9\0\0\u17BEcup;\u6A06ar;\u6605riangle\u0100du\u17CD\u17D2own;\u65BDp;\u65B3plus;\u6A04e\xE5\u1444\xE5\u14ADarow;\u690D\u0180ako\u17ED\u1826\u1835\u0100cn\u17F2\u1823k\u0180lst\u17FA\u05AB\u1802ozenge;\u69EBriangle\u0200;dlr\u1812\u1813\u1818\u181D\u65B4own;\u65BEeft;\u65C2ight;\u65B8k;\u6423\u01B1\u182B\0\u1833\u01B2\u182F\0\u1831;\u6592;\u65914;\u6593ck;\u6588\u0100eo\u183E\u184D\u0100;q\u1843\u1846\uC000=\u20E5uiv;\uC000\u2261\u20E5t;\u6310\u0200ptwx\u1859\u185E\u1867\u186Cf;\uC000\u{1D553}\u0100;t\u13CB\u1863om\xBB\u13CCtie;\u62C8\u0600DHUVbdhmptuv\u1885\u1896\u18AA\u18BB\u18D7\u18DB\u18EC\u18FF\u1905\u190A\u1910\u1921\u0200LRlr\u188E\u1890\u1892\u1894;\u6557;\u6554;\u6556;\u6553\u0280;DUdu\u18A1\u18A2\u18A4\u18A6\u18A8\u6550;\u6566;\u6569;\u6564;\u6567\u0200LRlr\u18B3\u18B5\u18B7\u18B9;\u655D;\u655A;\u655C;\u6559\u0380;HLRhlr\u18CA\u18CB\u18CD\u18CF\u18D1\u18D3\u18D5\u6551;\u656C;\u6563;\u6560;\u656B;\u6562;\u655Fox;\u69C9\u0200LRlr\u18E4\u18E6\u18E8\u18EA;\u6555;\u6552;\u6510;\u650C\u0280;DUdu\u06BD\u18F7\u18F9\u18FB\u18FD;\u6565;\u6568;\u652C;\u6534inus;\u629Flus;\u629Eimes;\u62A0\u0200LRlr\u1919\u191B\u191D\u191F;\u655B;\u6558;\u6518;\u6514\u0380;HLRhlr\u1930\u1931\u1933\u1935\u1937\u1939\u193B\u6502;\u656A;\u6561;\u655E;\u653C;\u6524;\u651C\u0100ev\u0123\u1942bar\u803B\xA6\u40A6\u0200ceio\u1951\u1956\u195A\u1960r;\uC000\u{1D4B7}mi;\u604Fm\u0100;e\u171A\u171Cl\u0180;bh\u1968\u1969\u196B\u405C;\u69C5sub;\u67C8\u016C\u1974\u197El\u0100;e\u1979\u197A\u6022t\xBB\u197Ap\u0180;Ee\u012F\u1985\u1987;\u6AAE\u0100;q\u06DC\u06DB\u0CE1\u19A7\0\u19E8\u1A11\u1A15\u1A32\0\u1A37\u1A50\0\0\u1AB4\0\0\u1AC1\0\0\u1B21\u1B2E\u1B4D\u1B52\0\u1BFD\0\u1C0C\u0180cpr\u19AD\u19B2\u19DDute;\u4107\u0300;abcds\u19BF\u19C0\u19C4\u19CA\u19D5\u19D9\u6229nd;\u6A44rcup;\u6A49\u0100au\u19CF\u19D2p;\u6A4Bp;\u6A47ot;\u6A40;\uC000\u2229\uFE00\u0100eo\u19E2\u19E5t;\u6041\xEE\u0693\u0200aeiu\u19F0\u19FB\u1A01\u1A05\u01F0\u19F5\0\u19F8s;\u6A4Don;\u410Ddil\u803B\xE7\u40E7rc;\u4109ps\u0100;s\u1A0C\u1A0D\u6A4Cm;\u6A50ot;\u410B\u0180dmn\u1A1B\u1A20\u1A26il\u80BB\xB8\u01ADptyv;\u69B2t\u8100\xA2;e\u1A2D\u1A2E\u40A2r\xE4\u01B2r;\uC000\u{1D520}\u0180cei\u1A3D\u1A40\u1A4Dy;\u4447ck\u0100;m\u1A47\u1A48\u6713ark\xBB\u1A48;\u43C7r\u0380;Ecefms\u1A5F\u1A60\u1A62\u1A6B\u1AA4\u1AAA\u1AAE\u65CB;\u69C3\u0180;el\u1A69\u1A6A\u1A6D\u42C6q;\u6257e\u0261\u1A74\0\0\u1A88rrow\u0100lr\u1A7C\u1A81eft;\u61BAight;\u61BB\u0280RSacd\u1A92\u1A94\u1A96\u1A9A\u1A9F\xBB\u0F47;\u64C8st;\u629Birc;\u629Aash;\u629Dnint;\u6A10id;\u6AEFcir;\u69C2ubs\u0100;u\u1ABB\u1ABC\u6663it\xBB\u1ABC\u02EC\u1AC7\u1AD4\u1AFA\0\u1B0Aon\u0100;e\u1ACD\u1ACE\u403A\u0100;q\xC7\xC6\u026D\u1AD9\0\0\u1AE2a\u0100;t\u1ADE\u1ADF\u402C;\u4040\u0180;fl\u1AE8\u1AE9\u1AEB\u6201\xEE\u1160e\u0100mx\u1AF1\u1AF6ent\xBB\u1AE9e\xF3\u024D\u01E7\u1AFE\0\u1B07\u0100;d\u12BB\u1B02ot;\u6A6Dn\xF4\u0246\u0180fry\u1B10\u1B14\u1B17;\uC000\u{1D554}o\xE4\u0254\u8100\xA9;s\u0155\u1B1Dr;\u6117\u0100ao\u1B25\u1B29rr;\u61B5ss;\u6717\u0100cu\u1B32\u1B37r;\uC000\u{1D4B8}\u0100bp\u1B3C\u1B44\u0100;e\u1B41\u1B42\u6ACF;\u6AD1\u0100;e\u1B49\u1B4A\u6AD0;\u6AD2dot;\u62EF\u0380delprvw\u1B60\u1B6C\u1B77\u1B82\u1BAC\u1BD4\u1BF9arr\u0100lr\u1B68\u1B6A;\u6938;\u6935\u0270\u1B72\0\0\u1B75r;\u62DEc;\u62DFarr\u0100;p\u1B7F\u1B80\u61B6;\u693D\u0300;bcdos\u1B8F\u1B90\u1B96\u1BA1\u1BA5\u1BA8\u622Arcap;\u6A48\u0100au\u1B9B\u1B9Ep;\u6A46p;\u6A4Aot;\u628Dr;\u6A45;\uC000\u222A\uFE00\u0200alrv\u1BB5\u1BBF\u1BDE\u1BE3rr\u0100;m\u1BBC\u1BBD\u61B7;\u693Cy\u0180evw\u1BC7\u1BD4\u1BD8q\u0270\u1BCE\0\0\u1BD2re\xE3\u1B73u\xE3\u1B75ee;\u62CEedge;\u62CFen\u803B\xA4\u40A4earrow\u0100lr\u1BEE\u1BF3eft\xBB\u1B80ight\xBB\u1BBDe\xE4\u1BDD\u0100ci\u1C01\u1C07onin\xF4\u01F7nt;\u6231lcty;\u632D\u0980AHabcdefhijlorstuwz\u1C38\u1C3B\u1C3F\u1C5D\u1C69\u1C75\u1C8A\u1C9E\u1CAC\u1CB7\u1CFB\u1CFF\u1D0D\u1D7B\u1D91\u1DAB\u1DBB\u1DC6\u1DCDr\xF2\u0381ar;\u6965\u0200glrs\u1C48\u1C4D\u1C52\u1C54ger;\u6020eth;\u6138\xF2\u1133h\u0100;v\u1C5A\u1C5B\u6010\xBB\u090A\u016B\u1C61\u1C67arow;\u690Fa\xE3\u0315\u0100ay\u1C6E\u1C73ron;\u410F;\u4434\u0180;ao\u0332\u1C7C\u1C84\u0100gr\u02BF\u1C81r;\u61CAtseq;\u6A77\u0180glm\u1C91\u1C94\u1C98\u803B\xB0\u40B0ta;\u43B4ptyv;\u69B1\u0100ir\u1CA3\u1CA8sht;\u697F;\uC000\u{1D521}ar\u0100lr\u1CB3\u1CB5\xBB\u08DC\xBB\u101E\u0280aegsv\u1CC2\u0378\u1CD6\u1CDC\u1CE0m\u0180;os\u0326\u1CCA\u1CD4nd\u0100;s\u0326\u1CD1uit;\u6666amma;\u43DDin;\u62F2\u0180;io\u1CE7\u1CE8\u1CF8\u40F7de\u8100\xF7;o\u1CE7\u1CF0ntimes;\u62C7n\xF8\u1CF7cy;\u4452c\u026F\u1D06\0\0\u1D0Arn;\u631Eop;\u630D\u0280lptuw\u1D18\u1D1D\u1D22\u1D49\u1D55lar;\u4024f;\uC000\u{1D555}\u0280;emps\u030B\u1D2D\u1D37\u1D3D\u1D42q\u0100;d\u0352\u1D33ot;\u6251inus;\u6238lus;\u6214quare;\u62A1blebarwedg\xE5\xFAn\u0180adh\u112E\u1D5D\u1D67ownarrow\xF3\u1C83arpoon\u0100lr\u1D72\u1D76ef\xF4\u1CB4igh\xF4\u1CB6\u0162\u1D7F\u1D85karo\xF7\u0F42\u026F\u1D8A\0\0\u1D8Ern;\u631Fop;\u630C\u0180cot\u1D98\u1DA3\u1DA6\u0100ry\u1D9D\u1DA1;\uC000\u{1D4B9};\u4455l;\u69F6rok;\u4111\u0100dr\u1DB0\u1DB4ot;\u62F1i\u0100;f\u1DBA\u1816\u65BF\u0100ah\u1DC0\u1DC3r\xF2\u0429a\xF2\u0FA6angle;\u69A6\u0100ci\u1DD2\u1DD5y;\u445Fgrarr;\u67FF\u0900Dacdefglmnopqrstux\u1E01\u1E09\u1E19\u1E38\u0578\u1E3C\u1E49\u1E61\u1E7E\u1EA5\u1EAF\u1EBD\u1EE1\u1F2A\u1F37\u1F44\u1F4E\u1F5A\u0100Do\u1E06\u1D34o\xF4\u1C89\u0100cs\u1E0E\u1E14ute\u803B\xE9\u40E9ter;\u6A6E\u0200aioy\u1E22\u1E27\u1E31\u1E36ron;\u411Br\u0100;c\u1E2D\u1E2E\u6256\u803B\xEA\u40EAlon;\u6255;\u444Dot;\u4117\u0100Dr\u1E41\u1E45ot;\u6252;\uC000\u{1D522}\u0180;rs\u1E50\u1E51\u1E57\u6A9Aave\u803B\xE8\u40E8\u0100;d\u1E5C\u1E5D\u6A96ot;\u6A98\u0200;ils\u1E6A\u1E6B\u1E72\u1E74\u6A99nters;\u63E7;\u6113\u0100;d\u1E79\u1E7A\u6A95ot;\u6A97\u0180aps\u1E85\u1E89\u1E97cr;\u4113ty\u0180;sv\u1E92\u1E93\u1E95\u6205et\xBB\u1E93p\u01001;\u1E9D\u1EA4\u0133\u1EA1\u1EA3;\u6004;\u6005\u6003\u0100gs\u1EAA\u1EAC;\u414Bp;\u6002\u0100gp\u1EB4\u1EB8on;\u4119f;\uC000\u{1D556}\u0180als\u1EC4\u1ECE\u1ED2r\u0100;s\u1ECA\u1ECB\u62D5l;\u69E3us;\u6A71i\u0180;lv\u1EDA\u1EDB\u1EDF\u43B5on\xBB\u1EDB;\u43F5\u0200csuv\u1EEA\u1EF3\u1F0B\u1F23\u0100io\u1EEF\u1E31rc\xBB\u1E2E\u0269\u1EF9\0\0\u1EFB\xED\u0548ant\u0100gl\u1F02\u1F06tr\xBB\u1E5Dess\xBB\u1E7A\u0180aei\u1F12\u1F16\u1F1Als;\u403Dst;\u625Fv\u0100;D\u0235\u1F20D;\u6A78parsl;\u69E5\u0100Da\u1F2F\u1F33ot;\u6253rr;\u6971\u0180cdi\u1F3E\u1F41\u1EF8r;\u612Fo\xF4\u0352\u0100ah\u1F49\u1F4B;\u43B7\u803B\xF0\u40F0\u0100mr\u1F53\u1F57l\u803B\xEB\u40EBo;\u60AC\u0180cip\u1F61\u1F64\u1F67l;\u4021s\xF4\u056E\u0100eo\u1F6C\u1F74ctatio\xEE\u0559nential\xE5\u0579\u09E1\u1F92\0\u1F9E\0\u1FA1\u1FA7\0\0\u1FC6\u1FCC\0\u1FD3\0\u1FE6\u1FEA\u2000\0\u2008\u205Allingdotse\xF1\u1E44y;\u4444male;\u6640\u0180ilr\u1FAD\u1FB3\u1FC1lig;\u8000\uFB03\u0269\u1FB9\0\0\u1FBDg;\u8000\uFB00ig;\u8000\uFB04;\uC000\u{1D523}lig;\u8000\uFB01lig;\uC000fj\u0180alt\u1FD9\u1FDC\u1FE1t;\u666Dig;\u8000\uFB02ns;\u65B1of;\u4192\u01F0\u1FEE\0\u1FF3f;\uC000\u{1D557}\u0100ak\u05BF\u1FF7\u0100;v\u1FFC\u1FFD\u62D4;\u6AD9artint;\u6A0D\u0100ao\u200C\u2055\u0100cs\u2011\u2052\u03B1\u201A\u2030\u2038\u2045\u2048\0\u2050\u03B2\u2022\u2025\u2027\u202A\u202C\0\u202E\u803B\xBD\u40BD;\u6153\u803B\xBC\u40BC;\u6155;\u6159;\u615B\u01B3\u2034\0\u2036;\u6154;\u6156\u02B4\u203E\u2041\0\0\u2043\u803B\xBE\u40BE;\u6157;\u615C5;\u6158\u01B6\u204C\0\u204E;\u615A;\u615D8;\u615El;\u6044wn;\u6322cr;\uC000\u{1D4BB}\u0880Eabcdefgijlnorstv\u2082\u2089\u209F\u20A5\u20B0\u20B4\u20F0\u20F5\u20FA\u20FF\u2103\u2112\u2138\u0317\u213E\u2152\u219E\u0100;l\u064D\u2087;\u6A8C\u0180cmp\u2090\u2095\u209Dute;\u41F5ma\u0100;d\u209C\u1CDA\u43B3;\u6A86reve;\u411F\u0100iy\u20AA\u20AErc;\u411D;\u4433ot;\u4121\u0200;lqs\u063E\u0642\u20BD\u20C9\u0180;qs\u063E\u064C\u20C4lan\xF4\u0665\u0200;cdl\u0665\u20D2\u20D5\u20E5c;\u6AA9ot\u0100;o\u20DC\u20DD\u6A80\u0100;l\u20E2\u20E3\u6A82;\u6A84\u0100;e\u20EA\u20ED\uC000\u22DB\uFE00s;\u6A94r;\uC000\u{1D524}\u0100;g\u0673\u061Bmel;\u6137cy;\u4453\u0200;Eaj\u065A\u210C\u210E\u2110;\u6A92;\u6AA5;\u6AA4\u0200Eaes\u211B\u211D\u2129\u2134;\u6269p\u0100;p\u2123\u2124\u6A8Arox\xBB\u2124\u0100;q\u212E\u212F\u6A88\u0100;q\u212E\u211Bim;\u62E7pf;\uC000\u{1D558}\u0100ci\u2143\u2146r;\u610Am\u0180;el\u066B\u214E\u2150;\u6A8E;\u6A90\u8300>;cdlqr\u05EE\u2160\u216A\u216E\u2173\u2179\u0100ci\u2165\u2167;\u6AA7r;\u6A7Aot;\u62D7Par;\u6995uest;\u6A7C\u0280adels\u2184\u216A\u2190\u0656\u219B\u01F0\u2189\0\u218Epro\xF8\u209Er;\u6978q\u0100lq\u063F\u2196les\xF3\u2088i\xED\u066B\u0100en\u21A3\u21ADrtneqq;\uC000\u2269\uFE00\xC5\u21AA\u0500Aabcefkosy\u21C4\u21C7\u21F1\u21F5\u21FA\u2218\u221D\u222F\u2268\u227Dr\xF2\u03A0\u0200ilmr\u21D0\u21D4\u21D7\u21DBrs\xF0\u1484f\xBB\u2024il\xF4\u06A9\u0100dr\u21E0\u21E4cy;\u444A\u0180;cw\u08F4\u21EB\u21EFir;\u6948;\u61ADar;\u610Firc;\u4125\u0180alr\u2201\u220E\u2213rts\u0100;u\u2209\u220A\u6665it\xBB\u220Alip;\u6026con;\u62B9r;\uC000\u{1D525}s\u0100ew\u2223\u2229arow;\u6925arow;\u6926\u0280amopr\u223A\u223E\u2243\u225E\u2263rr;\u61FFtht;\u623Bk\u0100lr\u2249\u2253eftarrow;\u61A9ightarrow;\u61AAf;\uC000\u{1D559}bar;\u6015\u0180clt\u226F\u2274\u2278r;\uC000\u{1D4BD}as\xE8\u21F4rok;\u4127\u0100bp\u2282\u2287ull;\u6043hen\xBB\u1C5B\u0AE1\u22A3\0\u22AA\0\u22B8\u22C5\u22CE\0\u22D5\u22F3\0\0\u22F8\u2322\u2367\u2362\u237F\0\u2386\u23AA\u23B4cute\u803B\xED\u40ED\u0180;iy\u0771\u22B0\u22B5rc\u803B\xEE\u40EE;\u4438\u0100cx\u22BC\u22BFy;\u4435cl\u803B\xA1\u40A1\u0100fr\u039F\u22C9;\uC000\u{1D526}rave\u803B\xEC\u40EC\u0200;ino\u073E\u22DD\u22E9\u22EE\u0100in\u22E2\u22E6nt;\u6A0Ct;\u622Dfin;\u69DCta;\u6129lig;\u4133\u0180aop\u22FE\u231A\u231D\u0180cgt\u2305\u2308\u2317r;\u412B\u0180elp\u071F\u230F\u2313in\xE5\u078Ear\xF4\u0720h;\u4131f;\u62B7ed;\u41B5\u0280;cfot\u04F4\u232C\u2331\u233D\u2341are;\u6105in\u0100;t\u2338\u2339\u621Eie;\u69DDdo\xF4\u2319\u0280;celp\u0757\u234C\u2350\u235B\u2361al;\u62BA\u0100gr\u2355\u2359er\xF3\u1563\xE3\u234Darhk;\u6A17rod;\u6A3C\u0200cgpt\u236F\u2372\u2376\u237By;\u4451on;\u412Ff;\uC000\u{1D55A}a;\u43B9uest\u803B\xBF\u40BF\u0100ci\u238A\u238Fr;\uC000\u{1D4BE}n\u0280;Edsv\u04F4\u239B\u239D\u23A1\u04F3;\u62F9ot;\u62F5\u0100;v\u23A6\u23A7\u62F4;\u62F3\u0100;i\u0777\u23AElde;\u4129\u01EB\u23B8\0\u23BCcy;\u4456l\u803B\xEF\u40EF\u0300cfmosu\u23CC\u23D7\u23DC\u23E1\u23E7\u23F5\u0100iy\u23D1\u23D5rc;\u4135;\u4439r;\uC000\u{1D527}ath;\u4237pf;\uC000\u{1D55B}\u01E3\u23EC\0\u23F1r;\uC000\u{1D4BF}rcy;\u4458kcy;\u4454\u0400acfghjos\u240B\u2416\u2422\u2427\u242D\u2431\u2435\u243Bppa\u0100;v\u2413\u2414\u43BA;\u43F0\u0100ey\u241B\u2420dil;\u4137;\u443Ar;\uC000\u{1D528}reen;\u4138cy;\u4445cy;\u445Cpf;\uC000\u{1D55C}cr;\uC000\u{1D4C0}\u0B80ABEHabcdefghjlmnoprstuv\u2470\u2481\u2486\u248D\u2491\u250E\u253D\u255A\u2580\u264E\u265E\u2665\u2679\u267D\u269A\u26B2\u26D8\u275D\u2768\u278B\u27C0\u2801\u2812\u0180art\u2477\u247A\u247Cr\xF2\u09C6\xF2\u0395ail;\u691Barr;\u690E\u0100;g\u0994\u248B;\u6A8Bar;\u6962\u0963\u24A5\0\u24AA\0\u24B1\0\0\0\0\0\u24B5\u24BA\0\u24C6\u24C8\u24CD\0\u24F9ute;\u413Amptyv;\u69B4ra\xEE\u084Cbda;\u43BBg\u0180;dl\u088E\u24C1\u24C3;\u6991\xE5\u088E;\u6A85uo\u803B\xAB\u40ABr\u0400;bfhlpst\u0899\u24DE\u24E6\u24E9\u24EB\u24EE\u24F1\u24F5\u0100;f\u089D\u24E3s;\u691Fs;\u691D\xEB\u2252p;\u61ABl;\u6939im;\u6973l;\u61A2\u0180;ae\u24FF\u2500\u2504\u6AABil;\u6919\u0100;s\u2509\u250A\u6AAD;\uC000\u2AAD\uFE00\u0180abr\u2515\u2519\u251Drr;\u690Crk;\u6772\u0100ak\u2522\u252Cc\u0100ek\u2528\u252A;\u407B;\u405B\u0100es\u2531\u2533;\u698Bl\u0100du\u2539\u253B;\u698F;\u698D\u0200aeuy\u2546\u254B\u2556\u2558ron;\u413E\u0100di\u2550\u2554il;\u413C\xEC\u08B0\xE2\u2529;\u443B\u0200cqrs\u2563\u2566\u256D\u257Da;\u6936uo\u0100;r\u0E19\u1746\u0100du\u2572\u2577har;\u6967shar;\u694Bh;\u61B2\u0280;fgqs\u258B\u258C\u0989\u25F3\u25FF\u6264t\u0280ahlrt\u2598\u25A4\u25B7\u25C2\u25E8rrow\u0100;t\u0899\u25A1a\xE9\u24F6arpoon\u0100du\u25AF\u25B4own\xBB\u045Ap\xBB\u0966eftarrows;\u61C7ight\u0180ahs\u25CD\u25D6\u25DErrow\u0100;s\u08F4\u08A7arpoon\xF3\u0F98quigarro\xF7\u21F0hreetimes;\u62CB\u0180;qs\u258B\u0993\u25FAlan\xF4\u09AC\u0280;cdgs\u09AC\u260A\u260D\u261D\u2628c;\u6AA8ot\u0100;o\u2614\u2615\u6A7F\u0100;r\u261A\u261B\u6A81;\u6A83\u0100;e\u2622\u2625\uC000\u22DA\uFE00s;\u6A93\u0280adegs\u2633\u2639\u263D\u2649\u264Bppro\xF8\u24C6ot;\u62D6q\u0100gq\u2643\u2645\xF4\u0989gt\xF2\u248C\xF4\u099Bi\xED\u09B2\u0180ilr\u2655\u08E1\u265Asht;\u697C;\uC000\u{1D529}\u0100;E\u099C\u2663;\u6A91\u0161\u2669\u2676r\u0100du\u25B2\u266E\u0100;l\u0965\u2673;\u696Alk;\u6584cy;\u4459\u0280;acht\u0A48\u2688\u268B\u2691\u2696r\xF2\u25C1orne\xF2\u1D08ard;\u696Bri;\u65FA\u0100io\u269F\u26A4dot;\u4140ust\u0100;a\u26AC\u26AD\u63B0che\xBB\u26AD\u0200Eaes\u26BB\u26BD\u26C9\u26D4;\u6268p\u0100;p\u26C3\u26C4\u6A89rox\xBB\u26C4\u0100;q\u26CE\u26CF\u6A87\u0100;q\u26CE\u26BBim;\u62E6\u0400abnoptwz\u26E9\u26F4\u26F7\u271A\u272F\u2741\u2747\u2750\u0100nr\u26EE\u26F1g;\u67ECr;\u61FDr\xEB\u08C1g\u0180lmr\u26FF\u270D\u2714eft\u0100ar\u09E6\u2707ight\xE1\u09F2apsto;\u67FCight\xE1\u09FDparrow\u0100lr\u2725\u2729ef\xF4\u24EDight;\u61AC\u0180afl\u2736\u2739\u273Dr;\u6985;\uC000\u{1D55D}us;\u6A2Dimes;\u6A34\u0161\u274B\u274Fst;\u6217\xE1\u134E\u0180;ef\u2757\u2758\u1800\u65CAnge\xBB\u2758ar\u0100;l\u2764\u2765\u4028t;\u6993\u0280achmt\u2773\u2776\u277C\u2785\u2787r\xF2\u08A8orne\xF2\u1D8Car\u0100;d\u0F98\u2783;\u696D;\u600Eri;\u62BF\u0300achiqt\u2798\u279D\u0A40\u27A2\u27AE\u27BBquo;\u6039r;\uC000\u{1D4C1}m\u0180;eg\u09B2\u27AA\u27AC;\u6A8D;\u6A8F\u0100bu\u252A\u27B3o\u0100;r\u0E1F\u27B9;\u601Arok;\u4142\u8400<;cdhilqr\u082B\u27D2\u2639\u27DC\u27E0\u27E5\u27EA\u27F0\u0100ci\u27D7\u27D9;\u6AA6r;\u6A79re\xE5\u25F2mes;\u62C9arr;\u6976uest;\u6A7B\u0100Pi\u27F5\u27F9ar;\u6996\u0180;ef\u2800\u092D\u181B\u65C3r\u0100du\u2807\u280Dshar;\u694Ahar;\u6966\u0100en\u2817\u2821rtneqq;\uC000\u2268\uFE00\xC5\u281E\u0700Dacdefhilnopsu\u2840\u2845\u2882\u288E\u2893\u28A0\u28A5\u28A8\u28DA\u28E2\u28E4\u0A83\u28F3\u2902Dot;\u623A\u0200clpr\u284E\u2852\u2863\u287Dr\u803B\xAF\u40AF\u0100et\u2857\u2859;\u6642\u0100;e\u285E\u285F\u6720se\xBB\u285F\u0100;s\u103B\u2868to\u0200;dlu\u103B\u2873\u2877\u287Bow\xEE\u048Cef\xF4\u090F\xF0\u13D1ker;\u65AE\u0100oy\u2887\u288Cmma;\u6A29;\u443Cash;\u6014asuredangle\xBB\u1626r;\uC000\u{1D52A}o;\u6127\u0180cdn\u28AF\u28B4\u28C9ro\u803B\xB5\u40B5\u0200;acd\u1464\u28BD\u28C0\u28C4s\xF4\u16A7ir;\u6AF0ot\u80BB\xB7\u01B5us\u0180;bd\u28D2\u1903\u28D3\u6212\u0100;u\u1D3C\u28D8;\u6A2A\u0163\u28DE\u28E1p;\u6ADB\xF2\u2212\xF0\u0A81\u0100dp\u28E9\u28EEels;\u62A7f;\uC000\u{1D55E}\u0100ct\u28F8\u28FDr;\uC000\u{1D4C2}pos\xBB\u159D\u0180;lm\u2909\u290A\u290D\u43BCtimap;\u62B8\u0C00GLRVabcdefghijlmoprstuvw\u2942\u2953\u297E\u2989\u2998\u29DA\u29E9\u2A15\u2A1A\u2A58\u2A5D\u2A83\u2A95\u2AA4\u2AA8\u2B04\u2B07\u2B44\u2B7F\u2BAE\u2C34\u2C67\u2C7C\u2CE9\u0100gt\u2947\u294B;\uC000\u22D9\u0338\u0100;v\u2950\u0BCF\uC000\u226B\u20D2\u0180elt\u295A\u2972\u2976ft\u0100ar\u2961\u2967rrow;\u61CDightarrow;\u61CE;\uC000\u22D8\u0338\u0100;v\u297B\u0C47\uC000\u226A\u20D2ightarrow;\u61CF\u0100Dd\u298E\u2993ash;\u62AFash;\u62AE\u0280bcnpt\u29A3\u29A7\u29AC\u29B1\u29CCla\xBB\u02DEute;\u4144g;\uC000\u2220\u20D2\u0280;Eiop\u0D84\u29BC\u29C0\u29C5\u29C8;\uC000\u2A70\u0338d;\uC000\u224B\u0338s;\u4149ro\xF8\u0D84ur\u0100;a\u29D3\u29D4\u666El\u0100;s\u29D3\u0B38\u01F3\u29DF\0\u29E3p\u80BB\xA0\u0B37mp\u0100;e\u0BF9\u0C00\u0280aeouy\u29F4\u29FE\u2A03\u2A10\u2A13\u01F0\u29F9\0\u29FB;\u6A43on;\u4148dil;\u4146ng\u0100;d\u0D7E\u2A0Aot;\uC000\u2A6D\u0338p;\u6A42;\u443Dash;\u6013\u0380;Aadqsx\u0B92\u2A29\u2A2D\u2A3B\u2A41\u2A45\u2A50rr;\u61D7r\u0100hr\u2A33\u2A36k;\u6924\u0100;o\u13F2\u13F0ot;\uC000\u2250\u0338ui\xF6\u0B63\u0100ei\u2A4A\u2A4Ear;\u6928\xED\u0B98ist\u0100;s\u0BA0\u0B9Fr;\uC000\u{1D52B}\u0200Eest\u0BC5\u2A66\u2A79\u2A7C\u0180;qs\u0BBC\u2A6D\u0BE1\u0180;qs\u0BBC\u0BC5\u2A74lan\xF4\u0BE2i\xED\u0BEA\u0100;r\u0BB6\u2A81\xBB\u0BB7\u0180Aap\u2A8A\u2A8D\u2A91r\xF2\u2971rr;\u61AEar;\u6AF2\u0180;sv\u0F8D\u2A9C\u0F8C\u0100;d\u2AA1\u2AA2\u62FC;\u62FAcy;\u445A\u0380AEadest\u2AB7\u2ABA\u2ABE\u2AC2\u2AC5\u2AF6\u2AF9r\xF2\u2966;\uC000\u2266\u0338rr;\u619Ar;\u6025\u0200;fqs\u0C3B\u2ACE\u2AE3\u2AEFt\u0100ar\u2AD4\u2AD9rro\xF7\u2AC1ightarro\xF7\u2A90\u0180;qs\u0C3B\u2ABA\u2AEAlan\xF4\u0C55\u0100;s\u0C55\u2AF4\xBB\u0C36i\xED\u0C5D\u0100;r\u0C35\u2AFEi\u0100;e\u0C1A\u0C25i\xE4\u0D90\u0100pt\u2B0C\u2B11f;\uC000\u{1D55F}\u8180\xAC;in\u2B19\u2B1A\u2B36\u40ACn\u0200;Edv\u0B89\u2B24\u2B28\u2B2E;\uC000\u22F9\u0338ot;\uC000\u22F5\u0338\u01E1\u0B89\u2B33\u2B35;\u62F7;\u62F6i\u0100;v\u0CB8\u2B3C\u01E1\u0CB8\u2B41\u2B43;\u62FE;\u62FD\u0180aor\u2B4B\u2B63\u2B69r\u0200;ast\u0B7B\u2B55\u2B5A\u2B5Flle\xEC\u0B7Bl;\uC000\u2AFD\u20E5;\uC000\u2202\u0338lint;\u6A14\u0180;ce\u0C92\u2B70\u2B73u\xE5\u0CA5\u0100;c\u0C98\u2B78\u0100;e\u0C92\u2B7D\xF1\u0C98\u0200Aait\u2B88\u2B8B\u2B9D\u2BA7r\xF2\u2988rr\u0180;cw\u2B94\u2B95\u2B99\u619B;\uC000\u2933\u0338;\uC000\u219D\u0338ghtarrow\xBB\u2B95ri\u0100;e\u0CCB\u0CD6\u0380chimpqu\u2BBD\u2BCD\u2BD9\u2B04\u0B78\u2BE4\u2BEF\u0200;cer\u0D32\u2BC6\u0D37\u2BC9u\xE5\u0D45;\uC000\u{1D4C3}ort\u026D\u2B05\0\0\u2BD6ar\xE1\u2B56m\u0100;e\u0D6E\u2BDF\u0100;q\u0D74\u0D73su\u0100bp\u2BEB\u2BED\xE5\u0CF8\xE5\u0D0B\u0180bcp\u2BF6\u2C11\u2C19\u0200;Ees\u2BFF\u2C00\u0D22\u2C04\u6284;\uC000\u2AC5\u0338et\u0100;e\u0D1B\u2C0Bq\u0100;q\u0D23\u2C00c\u0100;e\u0D32\u2C17\xF1\u0D38\u0200;Ees\u2C22\u2C23\u0D5F\u2C27\u6285;\uC000\u2AC6\u0338et\u0100;e\u0D58\u2C2Eq\u0100;q\u0D60\u2C23\u0200gilr\u2C3D\u2C3F\u2C45\u2C47\xEC\u0BD7lde\u803B\xF1\u40F1\xE7\u0C43iangle\u0100lr\u2C52\u2C5Ceft\u0100;e\u0C1A\u2C5A\xF1\u0C26ight\u0100;e\u0CCB\u2C65\xF1\u0CD7\u0100;m\u2C6C\u2C6D\u43BD\u0180;es\u2C74\u2C75\u2C79\u4023ro;\u6116p;\u6007\u0480DHadgilrs\u2C8F\u2C94\u2C99\u2C9E\u2CA3\u2CB0\u2CB6\u2CD3\u2CE3ash;\u62ADarr;\u6904p;\uC000\u224D\u20D2ash;\u62AC\u0100et\u2CA8\u2CAC;\uC000\u2265\u20D2;\uC000>\u20D2nfin;\u69DE\u0180Aet\u2CBD\u2CC1\u2CC5rr;\u6902;\uC000\u2264\u20D2\u0100;r\u2CCA\u2CCD\uC000<\u20D2ie;\uC000\u22B4\u20D2\u0100At\u2CD8\u2CDCrr;\u6903rie;\uC000\u22B5\u20D2im;\uC000\u223C\u20D2\u0180Aan\u2CF0\u2CF4\u2D02rr;\u61D6r\u0100hr\u2CFA\u2CFDk;\u6923\u0100;o\u13E7\u13E5ear;\u6927\u1253\u1A95\0\0\0\0\0\0\0\0\0\0\0\0\0\u2D2D\0\u2D38\u2D48\u2D60\u2D65\u2D72\u2D84\u1B07\0\0\u2D8D\u2DAB\0\u2DC8\u2DCE\0\u2DDC\u2E19\u2E2B\u2E3E\u2E43\u0100cs\u2D31\u1A97ute\u803B\xF3\u40F3\u0100iy\u2D3C\u2D45r\u0100;c\u1A9E\u2D42\u803B\xF4\u40F4;\u443E\u0280abios\u1AA0\u2D52\u2D57\u01C8\u2D5Alac;\u4151v;\u6A38old;\u69BClig;\u4153\u0100cr\u2D69\u2D6Dir;\u69BF;\uC000\u{1D52C}\u036F\u2D79\0\0\u2D7C\0\u2D82n;\u42DBave\u803B\xF2\u40F2;\u69C1\u0100bm\u2D88\u0DF4ar;\u69B5\u0200acit\u2D95\u2D98\u2DA5\u2DA8r\xF2\u1A80\u0100ir\u2D9D\u2DA0r;\u69BEoss;\u69BBn\xE5\u0E52;\u69C0\u0180aei\u2DB1\u2DB5\u2DB9cr;\u414Dga;\u43C9\u0180cdn\u2DC0\u2DC5\u01CDron;\u43BF;\u69B6pf;\uC000\u{1D560}\u0180ael\u2DD4\u2DD7\u01D2r;\u69B7rp;\u69B9\u0380;adiosv\u2DEA\u2DEB\u2DEE\u2E08\u2E0D\u2E10\u2E16\u6228r\xF2\u1A86\u0200;efm\u2DF7\u2DF8\u2E02\u2E05\u6A5Dr\u0100;o\u2DFE\u2DFF\u6134f\xBB\u2DFF\u803B\xAA\u40AA\u803B\xBA\u40BAgof;\u62B6r;\u6A56lope;\u6A57;\u6A5B\u0180clo\u2E1F\u2E21\u2E27\xF2\u2E01ash\u803B\xF8\u40F8l;\u6298i\u016C\u2E2F\u2E34de\u803B\xF5\u40F5es\u0100;a\u01DB\u2E3As;\u6A36ml\u803B\xF6\u40F6bar;\u633D\u0AE1\u2E5E\0\u2E7D\0\u2E80\u2E9D\0\u2EA2\u2EB9\0\0\u2ECB\u0E9C\0\u2F13\0\0\u2F2B\u2FBC\0\u2FC8r\u0200;ast\u0403\u2E67\u2E72\u0E85\u8100\xB6;l\u2E6D\u2E6E\u40B6le\xEC\u0403\u0269\u2E78\0\0\u2E7Bm;\u6AF3;\u6AFDy;\u443Fr\u0280cimpt\u2E8B\u2E8F\u2E93\u1865\u2E97nt;\u4025od;\u402Eil;\u6030enk;\u6031r;\uC000\u{1D52D}\u0180imo\u2EA8\u2EB0\u2EB4\u0100;v\u2EAD\u2EAE\u43C6;\u43D5ma\xF4\u0A76ne;\u660E\u0180;tv\u2EBF\u2EC0\u2EC8\u43C0chfork\xBB\u1FFD;\u43D6\u0100au\u2ECF\u2EDFn\u0100ck\u2ED5\u2EDDk\u0100;h\u21F4\u2EDB;\u610E\xF6\u21F4s\u0480;abcdemst\u2EF3\u2EF4\u1908\u2EF9\u2EFD\u2F04\u2F06\u2F0A\u2F0E\u402Bcir;\u6A23ir;\u6A22\u0100ou\u1D40\u2F02;\u6A25;\u6A72n\u80BB\xB1\u0E9Dim;\u6A26wo;\u6A27\u0180ipu\u2F19\u2F20\u2F25ntint;\u6A15f;\uC000\u{1D561}nd\u803B\xA3\u40A3\u0500;Eaceinosu\u0EC8\u2F3F\u2F41\u2F44\u2F47\u2F81\u2F89\u2F92\u2F7E\u2FB6;\u6AB3p;\u6AB7u\xE5\u0ED9\u0100;c\u0ECE\u2F4C\u0300;acens\u0EC8\u2F59\u2F5F\u2F66\u2F68\u2F7Eppro\xF8\u2F43urlye\xF1\u0ED9\xF1\u0ECE\u0180aes\u2F6F\u2F76\u2F7Approx;\u6AB9qq;\u6AB5im;\u62E8i\xED\u0EDFme\u0100;s\u2F88\u0EAE\u6032\u0180Eas\u2F78\u2F90\u2F7A\xF0\u2F75\u0180dfp\u0EEC\u2F99\u2FAF\u0180als\u2FA0\u2FA5\u2FAAlar;\u632Eine;\u6312urf;\u6313\u0100;t\u0EFB\u2FB4\xEF\u0EFBrel;\u62B0\u0100ci\u2FC0\u2FC5r;\uC000\u{1D4C5};\u43C8ncsp;\u6008\u0300fiopsu\u2FDA\u22E2\u2FDF\u2FE5\u2FEB\u2FF1r;\uC000\u{1D52E}pf;\uC000\u{1D562}rime;\u6057cr;\uC000\u{1D4C6}\u0180aeo\u2FF8\u3009\u3013t\u0100ei\u2FFE\u3005rnion\xF3\u06B0nt;\u6A16st\u0100;e\u3010\u3011\u403F\xF1\u1F19\xF4\u0F14\u0A80ABHabcdefhilmnoprstux\u3040\u3051\u3055\u3059\u30E0\u310E\u312B\u3147\u3162\u3172\u318E\u3206\u3215\u3224\u3229\u3258\u326E\u3272\u3290\u32B0\u32B7\u0180art\u3047\u304A\u304Cr\xF2\u10B3\xF2\u03DDail;\u691Car\xF2\u1C65ar;\u6964\u0380cdenqrt\u3068\u3075\u3078\u307F\u308F\u3094\u30CC\u0100eu\u306D\u3071;\uC000\u223D\u0331te;\u4155i\xE3\u116Emptyv;\u69B3g\u0200;del\u0FD1\u3089\u308B\u308D;\u6992;\u69A5\xE5\u0FD1uo\u803B\xBB\u40BBr\u0580;abcfhlpstw\u0FDC\u30AC\u30AF\u30B7\u30B9\u30BC\u30BE\u30C0\u30C3\u30C7\u30CAp;\u6975\u0100;f\u0FE0\u30B4s;\u6920;\u6933s;\u691E\xEB\u225D\xF0\u272El;\u6945im;\u6974l;\u61A3;\u619D\u0100ai\u30D1\u30D5il;\u691Ao\u0100;n\u30DB\u30DC\u6236al\xF3\u0F1E\u0180abr\u30E7\u30EA\u30EEr\xF2\u17E5rk;\u6773\u0100ak\u30F3\u30FDc\u0100ek\u30F9\u30FB;\u407D;\u405D\u0100es\u3102\u3104;\u698Cl\u0100du\u310A\u310C;\u698E;\u6990\u0200aeuy\u3117\u311C\u3127\u3129ron;\u4159\u0100di\u3121\u3125il;\u4157\xEC\u0FF2\xE2\u30FA;\u4440\u0200clqs\u3134\u3137\u313D\u3144a;\u6937dhar;\u6969uo\u0100;r\u020E\u020Dh;\u61B3\u0180acg\u314E\u315F\u0F44l\u0200;ips\u0F78\u3158\u315B\u109Cn\xE5\u10BBar\xF4\u0FA9t;\u65AD\u0180ilr\u3169\u1023\u316Esht;\u697D;\uC000\u{1D52F}\u0100ao\u3177\u3186r\u0100du\u317D\u317F\xBB\u047B\u0100;l\u1091\u3184;\u696C\u0100;v\u318B\u318C\u43C1;\u43F1\u0180gns\u3195\u31F9\u31FCht\u0300ahlrst\u31A4\u31B0\u31C2\u31D8\u31E4\u31EErrow\u0100;t\u0FDC\u31ADa\xE9\u30C8arpoon\u0100du\u31BB\u31BFow\xEE\u317Ep\xBB\u1092eft\u0100ah\u31CA\u31D0rrow\xF3\u0FEAarpoon\xF3\u0551ightarrows;\u61C9quigarro\xF7\u30CBhreetimes;\u62CCg;\u42DAingdotse\xF1\u1F32\u0180ahm\u320D\u3210\u3213r\xF2\u0FEAa\xF2\u0551;\u600Foust\u0100;a\u321E\u321F\u63B1che\xBB\u321Fmid;\u6AEE\u0200abpt\u3232\u323D\u3240\u3252\u0100nr\u3237\u323Ag;\u67EDr;\u61FEr\xEB\u1003\u0180afl\u3247\u324A\u324Er;\u6986;\uC000\u{1D563}us;\u6A2Eimes;\u6A35\u0100ap\u325D\u3267r\u0100;g\u3263\u3264\u4029t;\u6994olint;\u6A12ar\xF2\u31E3\u0200achq\u327B\u3280\u10BC\u3285quo;\u603Ar;\uC000\u{1D4C7}\u0100bu\u30FB\u328Ao\u0100;r\u0214\u0213\u0180hir\u3297\u329B\u32A0re\xE5\u31F8mes;\u62CAi\u0200;efl\u32AA\u1059\u1821\u32AB\u65B9tri;\u69CEluhar;\u6968;\u611E\u0D61\u32D5\u32DB\u32DF\u332C\u3338\u3371\0\u337A\u33A4\0\0\u33EC\u33F0\0\u3428\u3448\u345A\u34AD\u34B1\u34CA\u34F1\0\u3616\0\0\u3633cute;\u415Bqu\xEF\u27BA\u0500;Eaceinpsy\u11ED\u32F3\u32F5\u32FF\u3302\u330B\u330F\u331F\u3326\u3329;\u6AB4\u01F0\u32FA\0\u32FC;\u6AB8on;\u4161u\xE5\u11FE\u0100;d\u11F3\u3307il;\u415Frc;\u415D\u0180Eas\u3316\u3318\u331B;\u6AB6p;\u6ABAim;\u62E9olint;\u6A13i\xED\u1204;\u4441ot\u0180;be\u3334\u1D47\u3335\u62C5;\u6A66\u0380Aacmstx\u3346\u334A\u3357\u335B\u335E\u3363\u336Drr;\u61D8r\u0100hr\u3350\u3352\xEB\u2228\u0100;o\u0A36\u0A34t\u803B\xA7\u40A7i;\u403Bwar;\u6929m\u0100in\u3369\xF0nu\xF3\xF1t;\u6736r\u0100;o\u3376\u2055\uC000\u{1D530}\u0200acoy\u3382\u3386\u3391\u33A0rp;\u666F\u0100hy\u338B\u338Fcy;\u4449;\u4448rt\u026D\u3399\0\0\u339Ci\xE4\u1464ara\xEC\u2E6F\u803B\xAD\u40AD\u0100gm\u33A8\u33B4ma\u0180;fv\u33B1\u33B2\u33B2\u43C3;\u43C2\u0400;deglnpr\u12AB\u33C5\u33C9\u33CE\u33D6\u33DE\u33E1\u33E6ot;\u6A6A\u0100;q\u12B1\u12B0\u0100;E\u33D3\u33D4\u6A9E;\u6AA0\u0100;E\u33DB\u33DC\u6A9D;\u6A9Fe;\u6246lus;\u6A24arr;\u6972ar\xF2\u113D\u0200aeit\u33F8\u3408\u340F\u3417\u0100ls\u33FD\u3404lsetm\xE9\u336Ahp;\u6A33parsl;\u69E4\u0100dl\u1463\u3414e;\u6323\u0100;e\u341C\u341D\u6AAA\u0100;s\u3422\u3423\u6AAC;\uC000\u2AAC\uFE00\u0180flp\u342E\u3433\u3442tcy;\u444C\u0100;b\u3438\u3439\u402F\u0100;a\u343E\u343F\u69C4r;\u633Ff;\uC000\u{1D564}a\u0100dr\u344D\u0402es\u0100;u\u3454\u3455\u6660it\xBB\u3455\u0180csu\u3460\u3479\u349F\u0100au\u3465\u346Fp\u0100;s\u1188\u346B;\uC000\u2293\uFE00p\u0100;s\u11B4\u3475;\uC000\u2294\uFE00u\u0100bp\u347F\u348F\u0180;es\u1197\u119C\u3486et\u0100;e\u1197\u348D\xF1\u119D\u0180;es\u11A8\u11AD\u3496et\u0100;e\u11A8\u349D\xF1\u11AE\u0180;af\u117B\u34A6\u05B0r\u0165\u34AB\u05B1\xBB\u117Car\xF2\u1148\u0200cemt\u34B9\u34BE\u34C2\u34C5r;\uC000\u{1D4C8}tm\xEE\xF1i\xEC\u3415ar\xE6\u11BE\u0100ar\u34CE\u34D5r\u0100;f\u34D4\u17BF\u6606\u0100an\u34DA\u34EDight\u0100ep\u34E3\u34EApsilo\xEE\u1EE0h\xE9\u2EAFs\xBB\u2852\u0280bcmnp\u34FB\u355E\u1209\u358B\u358E\u0480;Edemnprs\u350E\u350F\u3511\u3515\u351E\u3523\u352C\u3531\u3536\u6282;\u6AC5ot;\u6ABD\u0100;d\u11DA\u351Aot;\u6AC3ult;\u6AC1\u0100Ee\u3528\u352A;\u6ACB;\u628Alus;\u6ABFarr;\u6979\u0180eiu\u353D\u3552\u3555t\u0180;en\u350E\u3545\u354Bq\u0100;q\u11DA\u350Feq\u0100;q\u352B\u3528m;\u6AC7\u0100bp\u355A\u355C;\u6AD5;\u6AD3c\u0300;acens\u11ED\u356C\u3572\u3579\u357B\u3326ppro\xF8\u32FAurlye\xF1\u11FE\xF1\u11F3\u0180aes\u3582\u3588\u331Bppro\xF8\u331Aq\xF1\u3317g;\u666A\u0680123;Edehlmnps\u35A9\u35AC\u35AF\u121C\u35B2\u35B4\u35C0\u35C9\u35D5\u35DA\u35DF\u35E8\u35ED\u803B\xB9\u40B9\u803B\xB2\u40B2\u803B\xB3\u40B3;\u6AC6\u0100os\u35B9\u35BCt;\u6ABEub;\u6AD8\u0100;d\u1222\u35C5ot;\u6AC4s\u0100ou\u35CF\u35D2l;\u67C9b;\u6AD7arr;\u697Bult;\u6AC2\u0100Ee\u35E4\u35E6;\u6ACC;\u628Blus;\u6AC0\u0180eiu\u35F4\u3609\u360Ct\u0180;en\u121C\u35FC\u3602q\u0100;q\u1222\u35B2eq\u0100;q\u35E7\u35E4m;\u6AC8\u0100bp\u3611\u3613;\u6AD4;\u6AD6\u0180Aan\u361C\u3620\u362Drr;\u61D9r\u0100hr\u3626\u3628\xEB\u222E\u0100;o\u0A2B\u0A29war;\u692Alig\u803B\xDF\u40DF\u0BE1\u3651\u365D\u3660\u12CE\u3673\u3679\0\u367E\u36C2\0\0\0\0\0\u36DB\u3703\0\u3709\u376C\0\0\0\u3787\u0272\u3656\0\0\u365Bget;\u6316;\u43C4r\xEB\u0E5F\u0180aey\u3666\u366B\u3670ron;\u4165dil;\u4163;\u4442lrec;\u6315r;\uC000\u{1D531}\u0200eiko\u3686\u369D\u36B5\u36BC\u01F2\u368B\0\u3691e\u01004f\u1284\u1281a\u0180;sv\u3698\u3699\u369B\u43B8ym;\u43D1\u0100cn\u36A2\u36B2k\u0100as\u36A8\u36AEppro\xF8\u12C1im\xBB\u12ACs\xF0\u129E\u0100as\u36BA\u36AE\xF0\u12C1rn\u803B\xFE\u40FE\u01EC\u031F\u36C6\u22E7es\u8180\xD7;bd\u36CF\u36D0\u36D8\u40D7\u0100;a\u190F\u36D5r;\u6A31;\u6A30\u0180eps\u36E1\u36E3\u3700\xE1\u2A4D\u0200;bcf\u0486\u36EC\u36F0\u36F4ot;\u6336ir;\u6AF1\u0100;o\u36F9\u36FC\uC000\u{1D565}rk;\u6ADA\xE1\u3362rime;\u6034\u0180aip\u370F\u3712\u3764d\xE5\u1248\u0380adempst\u3721\u374D\u3740\u3751\u3757\u375C\u375Fngle\u0280;dlqr\u3730\u3731\u3736\u3740\u3742\u65B5own\xBB\u1DBBeft\u0100;e\u2800\u373E\xF1\u092E;\u625Cight\u0100;e\u32AA\u374B\xF1\u105Aot;\u65ECinus;\u6A3Alus;\u6A39b;\u69CDime;\u6A3Bezium;\u63E2\u0180cht\u3772\u377D\u3781\u0100ry\u3777\u377B;\uC000\u{1D4C9};\u4446cy;\u445Brok;\u4167\u0100io\u378B\u378Ex\xF4\u1777head\u0100lr\u3797\u37A0eftarro\xF7\u084Fightarrow\xBB\u0F5D\u0900AHabcdfghlmoprstuw\u37D0\u37D3\u37D7\u37E4\u37F0\u37FC\u380E\u381C\u3823\u3834\u3851\u385D\u386B\u38A9\u38CC\u38D2\u38EA\u38F6r\xF2\u03EDar;\u6963\u0100cr\u37DC\u37E2ute\u803B\xFA\u40FA\xF2\u1150r\u01E3\u37EA\0\u37EDy;\u445Eve;\u416D\u0100iy\u37F5\u37FArc\u803B\xFB\u40FB;\u4443\u0180abh\u3803\u3806\u380Br\xF2\u13ADlac;\u4171a\xF2\u13C3\u0100ir\u3813\u3818sht;\u697E;\uC000\u{1D532}rave\u803B\xF9\u40F9\u0161\u3827\u3831r\u0100lr\u382C\u382E\xBB\u0957\xBB\u1083lk;\u6580\u0100ct\u3839\u384D\u026F\u383F\0\0\u384Arn\u0100;e\u3845\u3846\u631Cr\xBB\u3846op;\u630Fri;\u65F8\u0100al\u3856\u385Acr;\u416B\u80BB\xA8\u0349\u0100gp\u3862\u3866on;\u4173f;\uC000\u{1D566}\u0300adhlsu\u114B\u3878\u387D\u1372\u3891\u38A0own\xE1\u13B3arpoon\u0100lr\u3888\u388Cef\xF4\u382Digh\xF4\u382Fi\u0180;hl\u3899\u389A\u389C\u43C5\xBB\u13FAon\xBB\u389Aparrows;\u61C8\u0180cit\u38B0\u38C4\u38C8\u026F\u38B6\0\0\u38C1rn\u0100;e\u38BC\u38BD\u631Dr\xBB\u38BDop;\u630Eng;\u416Fri;\u65F9cr;\uC000\u{1D4CA}\u0180dir\u38D9\u38DD\u38E2ot;\u62F0lde;\u4169i\u0100;f\u3730\u38E8\xBB\u1813\u0100am\u38EF\u38F2r\xF2\u38A8l\u803B\xFC\u40FCangle;\u69A7\u0780ABDacdeflnoprsz\u391C\u391F\u3929\u392D\u39B5\u39B8\u39BD\u39DF\u39E4\u39E8\u39F3\u39F9\u39FD\u3A01\u3A20r\xF2\u03F7ar\u0100;v\u3926\u3927\u6AE8;\u6AE9as\xE8\u03E1\u0100nr\u3932\u3937grt;\u699C\u0380eknprst\u34E3\u3946\u394B\u3952\u395D\u3964\u3996app\xE1\u2415othin\xE7\u1E96\u0180hir\u34EB\u2EC8\u3959op\xF4\u2FB5\u0100;h\u13B7\u3962\xEF\u318D\u0100iu\u3969\u396Dgm\xE1\u33B3\u0100bp\u3972\u3984setneq\u0100;q\u397D\u3980\uC000\u228A\uFE00;\uC000\u2ACB\uFE00setneq\u0100;q\u398F\u3992\uC000\u228B\uFE00;\uC000\u2ACC\uFE00\u0100hr\u399B\u399Fet\xE1\u369Ciangle\u0100lr\u39AA\u39AFeft\xBB\u0925ight\xBB\u1051y;\u4432ash\xBB\u1036\u0180elr\u39C4\u39D2\u39D7\u0180;be\u2DEA\u39CB\u39CFar;\u62BBq;\u625Alip;\u62EE\u0100bt\u39DC\u1468a\xF2\u1469r;\uC000\u{1D533}tr\xE9\u39AEsu\u0100bp\u39EF\u39F1\xBB\u0D1C\xBB\u0D59pf;\uC000\u{1D567}ro\xF0\u0EFBtr\xE9\u39B4\u0100cu\u3A06\u3A0Br;\uC000\u{1D4CB}\u0100bp\u3A10\u3A18n\u0100Ee\u3980\u3A16\xBB\u397En\u0100Ee\u3992\u3A1E\xBB\u3990igzag;\u699A\u0380cefoprs\u3A36\u3A3B\u3A56\u3A5B\u3A54\u3A61\u3A6Airc;\u4175\u0100di\u3A40\u3A51\u0100bg\u3A45\u3A49ar;\u6A5Fe\u0100;q\u15FA\u3A4F;\u6259erp;\u6118r;\uC000\u{1D534}pf;\uC000\u{1D568}\u0100;e\u1479\u3A66at\xE8\u1479cr;\uC000\u{1D4CC}\u0AE3\u178E\u3A87\0\u3A8B\0\u3A90\u3A9B\0\0\u3A9D\u3AA8\u3AAB\u3AAF\0\0\u3AC3\u3ACE\0\u3AD8\u17DC\u17DFtr\xE9\u17D1r;\uC000\u{1D535}\u0100Aa\u3A94\u3A97r\xF2\u03C3r\xF2\u09F6;\u43BE\u0100Aa\u3AA1\u3AA4r\xF2\u03B8r\xF2\u09EBa\xF0\u2713is;\u62FB\u0180dpt\u17A4\u3AB5\u3ABE\u0100fl\u3ABA\u17A9;\uC000\u{1D569}im\xE5\u17B2\u0100Aa\u3AC7\u3ACAr\xF2\u03CEr\xF2\u0A01\u0100cq\u3AD2\u17B8r;\uC000\u{1D4CD}\u0100pt\u17D6\u3ADCr\xE9\u17D4\u0400acefiosu\u3AF0\u3AFD\u3B08\u3B0C\u3B11\u3B15\u3B1B\u3B21c\u0100uy\u3AF6\u3AFBte\u803B\xFD\u40FD;\u444F\u0100iy\u3B02\u3B06rc;\u4177;\u444Bn\u803B\xA5\u40A5r;\uC000\u{1D536}cy;\u4457pf;\uC000\u{1D56A}cr;\uC000\u{1D4CE}\u0100cm\u3B26\u3B29y;\u444El\u803B\xFF\u40FF\u0500acdefhiosw\u3B42\u3B48\u3B54\u3B58\u3B64\u3B69\u3B6D\u3B74\u3B7A\u3B80cute;\u417A\u0100ay\u3B4D\u3B52ron;\u417E;\u4437ot;\u417C\u0100et\u3B5D\u3B61tr\xE6\u155Fa;\u43B6r;\uC000\u{1D537}cy;\u4436grarr;\u61DDpf;\uC000\u{1D56B}cr;\uC000\u{1D4CF}\u0100jn\u3B85\u3B87;\u600Dj;\u600C'.split("").map(e=>e.charCodeAt(0)));var _Ae=new Uint16Array("\u0200aglq \x1B\u026D\0\0p;\u4026os;\u4027t;\u403Et;\u403Cuot;\u4022".split("").map(e=>e.charCodeAt(0)));var Z6,d8e=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),ez=(Z6=String.fromCodePoint)!==null&&Z6!==void 0?Z6:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),t+=String.fromCharCode(e),t};function tz(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=d8e.get(e))!==null&&t!==void 0?t:e}var Jo;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(Jo||(Jo={}));var p8e=32,_p;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(_p||(_p={}));function nz(e){return e>=Jo.ZERO&&e<=Jo.NINE}function m8e(e){return e>=Jo.UPPER_A&&e<=Jo.UPPER_F||e>=Jo.LOWER_A&&e<=Jo.LOWER_F}function g8e(e){return e>=Jo.UPPER_A&&e<=Jo.UPPER_Z||e>=Jo.LOWER_A&&e<=Jo.LOWER_Z||nz(e)}function f8e(e){return e===Jo.EQUALS||g8e(e)}var Ko;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(Ko||(Ko={}));var Vl;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(Vl||(Vl={}));var BM=class{constructor(t,n,o){this.decodeTree=t,this.emitCodePoint=n,this.errors=o,this.state=Ko.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Vl.Strict}startEntity(t){this.decodeMode=t,this.state=Ko.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case Ko.EntityStart:return t.charCodeAt(n)===Jo.NUM?(this.state=Ko.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=Ko.NamedEntity,this.stateNamedEntity(t,n));case Ko.NumericStart:return this.stateNumericStart(t,n);case Ko.NumericDecimal:return this.stateNumericDecimal(t,n);case Ko.NumericHex:return this.stateNumericHex(t,n);case Ko.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|p8e)===Jo.LOWER_X?(this.state=Ko.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=Ko.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,o,r){if(n!==o){let s=o-n;this.result=this.result*Math.pow(r,s)+parseInt(t.substr(n,s),r),this.consumed+=s}}stateNumericHex(t,n){let o=n;for(;n>14;for(;n>14,s!==0){if(i===Jo.SEMI)return this.emitNamedEntityData(this.treeIndex,s,this.consumed+this.excess);this.decodeMode!==Vl.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;let{result:n,decodeTree:o}=this,r=(o[n]&_p.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,r,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,n,o){let{decodeTree:r}=this;return this.emitCodePoint(n===1?r[t]&~_p.VALUE_LENGTH:r[t+1],o),n===3&&this.emitCodePoint(r[t+2],o),o}end(){var t;switch(this.state){case Ko.NamedEntity:return this.result!==0&&(this.decodeMode!==Vl.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Ko.NumericDecimal:return this.emitNumericEntity(0,2);case Ko.NumericHex:return this.emitNumericEntity(0,3);case Ko.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Ko.EntityStart:return 0}}};function yAe(e){let t="",n=new BM(e,o=>t+=ez(o));return function(r,s){let i=0,a=0;for(;(a=r.indexOf("&",a))>=0;){t+=r.slice(i,a),n.startEntity(s);let c=n.write(r,a+1);if(c<0){i=a+n.end();break}i=a+c,a=c===0?i+1:i}let l=t+r.slice(i);return t="",l}}function h8e(e,t,n,o){let r=(t&_p.BRANCH_LENGTH)>>7,s=t&_p.JUMP_TABLE;if(r===0)return s!==0&&o===s?n:-1;if(s){let l=o-s;return l<0||l>=r?-1:e[n+l]-1}let i=n,a=i+r-1;for(;i<=a;){let l=i+a>>>1,c=e[l];if(co)a=l-1;else return e[l+r]}return-1}var b8e=yAe(bAe),yFt=yAe(_Ae);function yp(e,t=Vl.Legacy){return b8e(e,t)}function zM(e){for(let t=1;te.codePointAt(t):(e,t)=>(e.charCodeAt(t)&64512)===55296?(e.charCodeAt(t)-55296)*1024+e.charCodeAt(t+1)-56320+65536:e.charCodeAt(t);function oz(e,t){return function(o){let r,s=0,i="";for(;r=e.exec(o);)s!==r.index&&(i+=o.substring(s,r.index)),i+=t.get(r[0].charCodeAt(0)),s=r.index+1;return i+o.substring(s)}}var vAe=oz(/[&<>'"]/g,y8e),xAe=oz(/["&\u00A0]/g,new Map([[34,"""],[38,"&"],[160," "]])),TAe=oz(/[&<>\u00A0]/g,new Map([[38,"&"],[60,"<"],[62,">"],[160," "]]));var wAe;(function(e){e[e.XML=0]="XML",e[e.HTML=1]="HTML"})(wAe||(wAe={}));var SAe;(function(e){e[e.UTF8=0]="UTF8",e[e.ASCII=1]="ASCII",e[e.Extensive=2]="Extensive",e[e.Attribute=3]="Attribute",e[e.Text=4]="Text"})(SAe||(SAe={}));function w8e(e){return Object.prototype.toString.call(e)}function GM(e){return w8e(e)==="[object String]"}var S8e=Object.prototype.hasOwnProperty;function C8e(e,t){return S8e.call(e,t)}function vy(e){return Array.prototype.slice.call(arguments,1).forEach(function(n){if(n){if(typeof n!="object")throw new TypeError(n+"must be object");Object.keys(n).forEach(function(o){e[o]=n[o]})}}),e}function sz(e,t,n){return[].concat(e.slice(0,t),n,e.slice(t+1))}function VM(e){return!(e>=55296&&e<=57343||e>=64976&&e<=65007||(e&65535)===65535||(e&65535)===65534||e>=0&&e<=8||e===11||e>=14&&e<=31||e>=127&&e<=159||e>1114111)}function zS(e){if(e>65535){e-=65536;let t=55296+(e>>10),n=56320+(e&1023);return String.fromCharCode(t,n)}return String.fromCharCode(e)}var AAe=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,E8e=/&([a-z#][a-z0-9]{1,31});/gi,A8e=new RegExp(AAe.source+"|"+E8e.source,"gi"),k8e=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function I8e(e,t){if(t.charCodeAt(0)===35&&k8e.test(t)){let o=t[1].toLowerCase()==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10);return VM(o)?zS(o):e}let n=yp(e);return n!==e?n:e}function P8e(e){return e.indexOf("\\")<0?e:e.replace(AAe,"$1")}function _u(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(A8e,function(t,n,o){return n||I8e(t,o)})}var L8e=/[&<>"]/,R8e=/[&<>"]/g,M8e={"&":"&","<":"<",">":">",'"':"""};function D8e(e){return M8e[e]}function yu(e){return L8e.test(e)?e.replace(R8e,D8e):e}var $8e=/[.?*+^$[\]\\(){}|-]/g;function N8e(e){return e.replace($8e,"\\$&")}function Nt(e){switch(e){case 9:case 32:return!0}return!1}function uf(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}function df(e){return yy.test(e)||qM.test(e)}function pf(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function mf(e){return e=e.trim().replace(/\s+/g," "),"\u1E9E".toLowerCase()==="\u1E7E"&&(e=e.replace(/ẞ/g,"\xDF")),e.toLowerCase().toUpperCase()}var F8e={mdurl:FM,ucmicro:X6};var uz={};Rn(uz,{parseLinkDestination:()=>lz,parseLinkLabel:()=>az,parseLinkTitle:()=>cz});function az(e,t,n){let o,r,s,i,a=e.posMax,l=e.pos;for(e.pos=t+1,o=1;e.pos32))return s;if(o===41){if(i===0)break;i--}r++}return t===r||i!==0||(s.str=_u(e.slice(t,r)),s.pos=r,s.ok=!0),s}function cz(e,t,n,o){let r,s=t,i={ok:!1,can_continue:!1,pos:0,str:"",marker:0};if(o)i.str=o.str,i.marker=o.marker;else{if(s>=n)return i;let a=e.charCodeAt(s);if(a!==34&&a!==39&&a!==40)return i;t++,s++,a===40&&(a=41),i.marker=a}for(;s"+yu(s.content)+""};Ql.code_block=function(e,t,n,o,r){let s=e[t];return""+yu(e[t].content)+` `};Ql.fence=function(e,t,n,o,r){let s=e[t],i=s.info?_u(s.info).trim():"",a="",l="";if(i){let u=i.split(/(\s+)/g);a=u[0],l=u.slice(2).join("")}let c;if(n.highlight?c=n.highlight(s.content,a,l)||yu(s.content):c=yu(s.content),c.indexOf("${c} `}return`
    ${c}
    `};Ql.image=function(e,t,n,o,r){let s=e[t];return s.attrs[s.attrIndex("alt")][1]=r.renderInlineAsText(s.children,n,o),r.renderToken(e,t,n)};Ql.hardbreak=function(e,t,n){return n.xhtmlOut?`
    `:`
    `};Ql.softbreak=function(e,t,n){return n.breaks?n.xhtmlOut?`
    `:`
    `:` `};Ql.text=function(e,t){return yu(e[t].content)};Ql.html_block=function(e,t){return e[t].content};Ql.html_inline=function(e,t){return e[t].content};function xy(){this.rules=vy({},Ql)}xy.prototype.renderAttrs=function(t){let n,o,r;if(!t.attrs)return"";for(r="",n=0,o=t.attrs.length;n `:">",s};xy.prototype.renderInline=function(e,t,n){let o="",r=this.rules;for(let s=0,i=e.length;s=0&&(o=this.attrs[n][1]),o};Ty.prototype.attrJoin=function(t,n){let o=this.attrIndex(t);o<0?this.attrPush([t,n]):this.attrs[o][1]=this.attrs[o][1]+" "+n};var vu=Ty;function IAe(e,t,n){this.src=e,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=t}IAe.prototype.Token=vu;var PAe=IAe;var U8e=/\r\n?|\n/g,O8e=/\0/g;function dz(e){let t;t=e.src.replace(U8e,` `),t=t.replace(O8e,"\uFFFD"),e.src=t}function pz(e){let t;e.inlineMode?(t=new e.Token("inline","",0),t.content=e.src,t.map=[0,1],t.children=[],e.tokens.push(t)):e.md.block.parse(e.src,e.md,e.env,e.tokens)}function mz(e){let t=e.tokens;for(let n=0,o=t.length;n\s]/i.test(e)}function H8e(e){return/^<\/a\s*>/i.test(e)}function gz(e){let t=e.tokens;if(e.md.options.linkify)for(let n=0,o=t.length;n=0;i--){let a=r[i];if(a.type==="link_close"){for(i--;r[i].level!==a.level&&r[i].type!=="link_open";)i--;continue}if(a.type==="html_inline"&&(q8e(a.content)&&s>0&&s--,H8e(a.content)&&s++),!(s>0)&&a.type==="text"&&e.md.linkify.test(a.content)){let l=a.content,c=e.md.linkify.match(l),u=[],p=a.level,m=0;c.length>0&&c[0].index===0&&i>0&&r[i-1].type==="text_special"&&(c=c.slice(1));for(let g=0;gm){let E=new e.Token("text","",0);E.content=l.slice(m,T),E.level=p,u.push(E)}let x=new e.Token("link_open","a",1);x.attrs=[["href",_]],x.level=p++,x.markup="linkify",x.info="auto",u.push(x);let w=new e.Token("text","",0);w.content=h,w.level=p,u.push(w);let I=new e.Token("link_close","a",-1);I.level=--p,I.markup="linkify",I.info="auto",u.push(I),m=c[g].lastIndex}if(m=0;n--){let o=e[n];o.type==="text"&&!t&&(o.content=o.content.replace(z8e,V8e)),o.type==="link_open"&&o.info==="auto"&&t--,o.type==="link_close"&&o.info==="auto"&&t++}}function Y8e(e){let t=0;for(let n=e.length-1;n>=0;n--){let o=e[n];o.type==="text"&&!t&&LAe.test(o.content)&&(o.content=o.content.replace(/\+-/g,"\xB1").replace(/\.{2,}/g,"\u2026").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/mg,"$1\u2014").replace(/(^|\s)--(?=\s|$)/mg,"$1\u2013").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg,"$1\u2013")),o.type==="link_open"&&o.info==="auto"&&t--,o.type==="link_close"&&o.info==="auto"&&t++}}function fz(e){let t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)e.tokens[t].type==="inline"&&(B8e.test(e.tokens[t].content)&&Q8e(e.tokens[t].children),LAe.test(e.tokens[t].content)&&Y8e(e.tokens[t].children))}var j8e=/['"]/,RAe=/['"]/g,MAe="\u2019";function QM(e,t,n){return e.slice(0,t)+n+e.slice(t+1)}function W8e(e,t){let n,o=[];for(let r=0;r=0&&!(o[n].level<=i);n--);if(o.length=n+1,s.type!=="text")continue;let a=s.content,l=0,c=a.length;e:for(;l=0)f=a.charCodeAt(u.index-1);else for(n=r-1;n>=0&&!(e[n].type==="softbreak"||e[n].type==="hardbreak");n--)if(e[n].content){f=e[n].content.charCodeAt(e[n].content.length-1);break}let _=32;if(l=48&&f<=57&&(m=p=!1),p&&m&&(p=h,m=T),!p&&!m){g&&(s.content=QM(s.content,u.index,MAe));continue}if(m)for(n=o.length-1;n>=0;n--){let I=o[n];if(o[n].level=0;t--)e.tokens[t].type!=="inline"||!j8e.test(e.tokens[t].content)||W8e(e.tokens[t].children,e)}function bz(e){let t,n,o=e.tokens,r=o.length;for(let s=0;s0&&this.level++,this.tokens.push(o),o};Yl.prototype.isEmpty=function(t){return this.bMarks[t]+this.tShift[t]>=this.eMarks[t]};Yl.prototype.skipEmptyLines=function(t){for(let n=this.lineMax;tn;)if(!Nt(this.src.charCodeAt(--t)))return t+1;return t};Yl.prototype.skipChars=function(t,n){for(let o=this.src.length;to;)if(n!==this.src.charCodeAt(--t))return t+1;return t};Yl.prototype.getLines=function(t,n,o,r){if(t>=n)return"";let s=new Array(n-t);for(let i=0,a=t;ao?s[i]=new Array(l-o+1).join(" ")+this.src.slice(u,p):s[i]=this.src.slice(u,p)}return s.join("")};Yl.prototype.Token=vu;var $Ae=Yl;var K8e=65536;function vz(e,t){let n=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];return e.src.slice(n,o)}function NAe(e){let t=[],n=e.length,o=0,r=e.charCodeAt(o),s=!1,i=0,a="";for(;on)return!1;let r=t+1;if(e.sCount[r]=4)return!1;let s=e.bMarks[r]+e.tShift[r];if(s>=e.eMarks[r])return!1;let i=e.src.charCodeAt(s++);if(i!==124&&i!==45&&i!==58||s>=e.eMarks[r])return!1;let a=e.src.charCodeAt(s++);if(a!==124&&a!==45&&a!==58&&!Nt(a)||i===45&&Nt(a))return!1;for(;s=4)return!1;c=NAe(l),c.length&&c[0]===""&&c.shift(),c.length&&c[c.length-1]===""&&c.pop();let p=c.length;if(p===0||p!==u.length)return!1;if(o)return!0;let m=e.parentType;e.parentType="table";let g=e.md.block.ruler.getRules("blockquote"),f=e.push("table_open","table",1),_=[t,0];f.map=_;let h=e.push("thead_open","thead",1);h.map=[t,t+1];let T=e.push("tr_open","tr",1);T.map=[t,t+1];for(let I=0;I=4||(c=NAe(l),c.length&&c[0]===""&&c.shift(),c.length&&c[c.length-1]===""&&c.pop(),w+=p-c.length,w>K8e))break;if(r===t+2){let Q=e.push("tbody_open","tbody",1);Q.map=x=[t+2,0]}let E=e.push("tr_open","tr",1);E.map=[r,r+1];for(let Q=0;Q=4){o++,r=o;continue}break}e.line=r;let s=e.push("code_block","code",0);return s.content=e.getLines(t,r,4+e.blkIndent,!1)+` `,s.map=[t,e.line],!0}function wz(e,t,n,o){let r=e.bMarks[t]+e.tShift[t],s=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||r+3>s)return!1;let i=e.src.charCodeAt(r);if(i!==126&&i!==96)return!1;let a=r;r=e.skipChars(r,i);let l=r-a;if(l<3)return!1;let c=e.src.slice(a,r),u=e.src.slice(r,s);if(i===96&&u.indexOf(String.fromCharCode(i))>=0)return!1;if(o)return!0;let p=t,m=!1;for(;p++,!(p>=n||(r=a=e.bMarks[p]+e.tShift[p],s=e.eMarks[p],r=4)&&(r=e.skipChars(r,i),!(r-a=4||e.src.charCodeAt(r)!==62)return!1;if(o)return!0;let a=[],l=[],c=[],u=[],p=e.md.block.ruler.getRules("blockquote"),m=e.parentType;e.parentType="blockquote";let g=!1,f;for(f=t;f=s)break;if(e.src.charCodeAt(r++)===62&&!w){let E=e.sCount[f]+1,Q,O;e.src.charCodeAt(r)===32?(r++,E++,O=!1,Q=!0):e.src.charCodeAt(r)===9?(Q=!0,(e.bsCount[f]+E)%4===3?(r++,E++,O=!1):O=!0):Q=!1;let ye=E;for(a.push(e.bMarks[f]),e.bMarks[f]=r;r=s,l.push(e.bsCount[f]),e.bsCount[f]=e.sCount[f]+1+(Q?1:0),c.push(e.sCount[f]),e.sCount[f]=ye-E,u.push(e.tShift[f]),e.tShift[f]=r-e.bMarks[f];continue}if(g)break;let I=!1;for(let E=0,Q=p.length;E";let T=[t,0];h.map=T,e.md.block.tokenize(e,t,f);let x=e.push("blockquote_close","blockquote",-1);x.markup=">",e.lineMax=i,e.parentType=m,T[1]=e.line;for(let w=0;w=4)return!1;let s=e.bMarks[t]+e.tShift[t],i=e.src.charCodeAt(s++);if(i!==42&&i!==45&&i!==95)return!1;let a=1;for(;s=o)return-1;let s=e.src.charCodeAt(r++);if(s<48||s>57)return-1;for(;;){if(r>=o)return-1;if(s=e.src.charCodeAt(r++),s>=48&&s<=57){if(r-n>=10)return-1;continue}if(s===41||s===46)break;return-1}return r=4||e.listIndent>=0&&e.sCount[l]-e.listIndent>=4&&e.sCount[l]=e.blkIndent&&(u=!0);let p,m,g;if((g=UAe(e,l))>=0){if(p=!0,i=e.bMarks[l]+e.tShift[l],m=Number(e.src.slice(i,g-1)),u&&m!==1)return!1}else if((g=FAe(e,l))>=0)p=!1;else return!1;if(u&&e.skipSpaces(g)>=e.eMarks[l])return!1;if(o)return!0;let f=e.src.charCodeAt(g-1),_=e.tokens.length;p?(a=e.push("ordered_list_open","ol",1),m!==1&&(a.attrs=[["start",m]])):a=e.push("bullet_list_open","ul",1);let h=[l,0];a.map=h,a.markup=String.fromCharCode(f);let T=!1,x=e.md.block.ruler.getRules("list"),w=e.parentType;for(e.parentType="list";l=r?O=1:O=E-I,O>4&&(O=1);let ye=I+O;a=e.push("list_item_open","li",1),a.markup=String.fromCharCode(f);let Ae=[l,0];a.map=Ae,p&&(a.info=e.src.slice(i,g-1));let de=e.tight,xt=e.tShift[l],qt=e.sCount[l],Qt=e.listIndent;if(e.listIndent=e.blkIndent,e.blkIndent=ye,e.tight=!0,e.tShift[l]=Q-e.bMarks[l],e.sCount[l]=E,Q>=r&&e.isEmpty(l+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,l,n,!0),(!e.tight||T)&&(c=!1),T=e.line-l>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=Qt,e.tShift[l]=xt,e.sCount[l]=qt,e.tight=de,a=e.push("list_item_close","li",-1),a.markup=String.fromCharCode(f),l=e.line,Ae[1]=l,l>=n||e.sCount[l]=4)break;let Ln=!1;for(let Yt=0,Ft=x.length;Yt=4||e.src.charCodeAt(r)!==91)return!1;function a(x){let w=e.lineMax;if(x>=w||e.isEmpty(x))return null;let I=!1;if(e.sCount[x]-e.blkIndent>3&&(I=!0),e.sCount[x]<0&&(I=!0),!I){let O=e.md.block.ruler.getRules("reference"),ye=e.parentType;e.parentType="reference";let Ae=!1;for(let de=0,xt=O.length;de"u"&&(e.env.references={}),typeof e.env.references[T]>"u"&&(e.env.references[T]={title:h,href:p}),e.line=i),!0):!1}var OAe=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"];var X8e="[a-zA-Z_:][a-zA-Z0-9:._-]*",Z8e="[^\"'=<>`\\x00-\\x20]+",e9e="'[^']*'",t9e='"[^"]*"',n9e="(?:"+Z8e+"|"+e9e+"|"+t9e+")",o9e="(?:\\s+"+X8e+"(?:\\s*=\\s*"+n9e+")?)",qAe="<[A-Za-z][A-Za-z0-9\\-]*"+o9e+"*\\s*\\/?>",HAe="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",r9e="",s9e="<[?][\\s\\S]*?[?]>",i9e="]*>",a9e="",BAe=new RegExp("^(?:"+qAe+"|"+HAe+"|"+r9e+"|"+s9e+"|"+i9e+"|"+a9e+")"),zAe=new RegExp("^(?:"+qAe+"|"+HAe+")");var wy=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^/,!0],[/^<\?/,/\?>/,!0],[/^/,!0],[/^/,!0],[new RegExp("^|$))","i"),/^$/,!0],[new RegExp(zAe.source+"\\s*$"),/^$/,!1]];function kz(e,t,n,o){let r=e.bMarks[t]+e.tShift[t],s=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(r)!==60)return!1;let i=e.src.slice(r,s),a=0;for(;a=4)return!1;let i=e.src.charCodeAt(r);if(i!==35||r>=s)return!1;let a=1;for(i=e.src.charCodeAt(++r);i===35&&r6||rr&&Nt(e.src.charCodeAt(l-1))&&(s=l),e.line=t+1;let c=e.push("heading_open","h"+String(a),1);c.markup="########".slice(0,a),c.map=[t,e.line];let u=e.push("inline","",0);u.content=e.src.slice(r,s).trim(),u.map=[t,e.line],u.children=[];let p=e.push("heading_close","h"+String(a),-1);return p.markup="########".slice(0,a),!0}function Pz(e,t,n){let o=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;let r=e.parentType;e.parentType="paragraph";let s=0,i,a=t+1;for(;a3)continue;if(e.sCount[a]>=e.blkIndent){let g=e.bMarks[a]+e.tShift[a],f=e.eMarks[a];if(g=f))){s=i===61?1:2;break}}if(e.sCount[a]<0)continue;let m=!1;for(let g=0,f=o.length;g3||e.sCount[s]<0)continue;let c=!1;for(let u=0,p=o.length;u=n||e.sCount[i]=s){e.line=n;break}let l=e.line,c=!1;for(let u=0;u=e.line)throw new Error("block rule didn't increment state.line");break}if(!c)throw new Error("none of the block rules matched");e.tight=!a,e.isEmpty(e.line-1)&&(a=!0),i=e.line,i0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],r={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(o),this.tokens_meta.push(r),o};GS.prototype.scanDelims=function(e,t){let n=this.posMax,o=this.src.charCodeAt(e),r=e>0?this.src.charCodeAt(e-1):32,s=e;for(;s0)return!1;let n=e.pos,o=e.posMax;if(n+3>o||e.src.charCodeAt(n)!==58||e.src.charCodeAt(n+1)!==47||e.src.charCodeAt(n+2)!==47)return!1;let r=e.pending.match(c9e);if(!r)return!1;let s=r[1],i=e.md.linkify.matchAtStart(e.src.slice(n-s.length));if(!i)return!1;let a=i.url;if(a.length<=s.length)return!1;a=a.replace(/\*+$/,"");let l=e.md.normalizeLink(a);if(!e.md.validateLink(l))return!1;if(!t){e.pending=e.pending.slice(0,-s.length);let c=e.push("link_open","a",1);c.attrs=[["href",l]],c.markup="linkify",c.info="auto";let u=e.push("text","",0);u.content=e.md.normalizeLinkText(a);let p=e.push("link_close","a",-1);p.markup="linkify",p.info="auto"}return e.pos+=a.length-s.length,!0}function Dz(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==10)return!1;let o=e.pending.length-1,r=e.posMax;if(!t)if(o>=0&&e.pending.charCodeAt(o)===32)if(o>=1&&e.pending.charCodeAt(o-1)===32){let s=o-1;for(;s>=1&&e.pending.charCodeAt(s-1)===32;)s--;e.pending=e.pending.slice(0,s),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(n++;n?@[]^_`{|}~-".split("").forEach(function(e){$z[e.charCodeAt(0)]=1});function Nz(e,t){let n=e.pos,o=e.posMax;if(e.src.charCodeAt(n)!==92||(n++,n>=o))return!1;let r=e.src.charCodeAt(n);if(r===10){for(t||e.push("hardbreak","br",0),n++;n=55296&&r<=56319&&n+1=56320&&a<=57343&&(s+=e.src[n+1],n++)}let i="\\"+s;if(!t){let a=e.push("text_special","",0);r<256&&$z[r]!==0?a.content=s:a.content=i,a.markup=i,a.info="escape"}return e.pos=n+1,!0}function Fz(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==96)return!1;let r=n;n++;let s=e.posMax;for(;n=0;o--){let r=t[o];if(r.marker!==95&&r.marker!==42||r.end===-1)continue;let s=t[r.end],i=o>0&&t[o-1].end===r.end+1&&t[o-1].marker===r.marker&&t[o-1].token===r.token-1&&t[r.end+1].token===s.token+1,a=String.fromCharCode(r.marker),l=e.tokens[r.token];l.type=i?"strong_open":"em_open",l.tag=i?"strong":"em",l.nesting=1,l.markup=i?a+a:a,l.content="";let c=e.tokens[s.token];c.type=i?"strong_close":"em_close",c.tag=i?"strong":"em",c.nesting=-1,c.markup=i?a+a:a,c.content="",i&&(e.tokens[t[o-1].token].content="",e.tokens[t[r.end+1].token].content="",o--)}}function m9e(e){let t=e.tokens_meta,n=e.tokens_meta.length;YAe(e,e.delimiters);for(let o=0;o=p)return!1;if(l=f,r=e.md.helpers.parseLinkDestination(e.src,f,e.posMax),r.ok){for(i=e.md.normalizeLink(r.str),e.md.validateLink(i)?f=r.pos:i="",l=f;f=p||e.src.charCodeAt(f)!==41)&&(c=!0),f++}if(c){if(typeof e.env.references>"u")return!1;if(f=0?o=e.src.slice(l,f++):f=g+1):f=g+1,o||(o=e.src.slice(m,g)),s=e.env.references[mf(o)],!s)return e.pos=u,!1;i=s.href,a=s.title}if(!t){e.pos=m,e.posMax=g;let _=e.push("link_open","a",1),h=[["href",i]];_.attrs=h,a&&h.push(["title",a]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push("link_close","a",-1)}return e.pos=f,e.posMax=p,!0}function Hz(e,t){let n,o,r,s,i,a,l,c,u="",p=e.pos,m=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91)return!1;let g=e.pos+2,f=e.md.helpers.parseLinkLabel(e,e.pos+1,!1);if(f<0)return!1;if(s=f+1,s=m)return!1;for(c=s,a=e.md.helpers.parseLinkDestination(e.src,s,e.posMax),a.ok&&(u=e.md.normalizeLink(a.str),e.md.validateLink(u)?s=a.pos:u=""),c=s;s=m||e.src.charCodeAt(s)!==41)return e.pos=p,!1;s++}else{if(typeof e.env.references>"u")return!1;if(s=0?r=e.src.slice(c,s++):s=f+1):s=f+1,r||(r=e.src.slice(g,f)),i=e.env.references[mf(r)],!i)return e.pos=p,!1;u=i.href,l=i.title}if(!t){o=e.src.slice(g,f);let _=[];e.md.inline.parse(o,e.md,e.env,_);let h=e.push("image","img",0),T=[["src",u],["alt",""]];h.attrs=T,h.children=_,h.content=o,l&&T.push(["title",l])}return e.pos=s,e.posMax=m,!0}var g9e=/^([a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,f9e=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;function Bz(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==60)return!1;let o=e.pos,r=e.posMax;for(;;){if(++n>=r)return!1;let i=e.src.charCodeAt(n);if(i===60)return!1;if(i===62)break}let s=e.src.slice(o+1,n);if(f9e.test(s)){let i=e.md.normalizeLink(s);if(!e.md.validateLink(i))return!1;if(!t){let a=e.push("link_open","a",1);a.attrs=[["href",i]],a.markup="autolink",a.info="auto";let l=e.push("text","",0);l.content=e.md.normalizeLinkText(s);let c=e.push("link_close","a",-1);c.markup="autolink",c.info="auto"}return e.pos+=s.length+2,!0}if(g9e.test(s)){let i=e.md.normalizeLink("mailto:"+s);if(!e.md.validateLink(i))return!1;if(!t){let a=e.push("link_open","a",1);a.attrs=[["href",i]],a.markup="autolink",a.info="auto";let l=e.push("text","",0);l.content=e.md.normalizeLinkText(s);let c=e.push("link_close","a",-1);c.markup="autolink",c.info="auto"}return e.pos+=s.length+2,!0}return!1}function h9e(e){return/^\s]/i.test(e)}function b9e(e){return/^<\/a\s*>/i.test(e)}function _9e(e){let t=e|32;return t>=97&&t<=122}function zz(e,t){if(!e.md.options.html)return!1;let n=e.posMax,o=e.pos;if(e.src.charCodeAt(o)!==60||o+2>=n)return!1;let r=e.src.charCodeAt(o+1);if(r!==33&&r!==63&&r!==47&&!_9e(r))return!1;let s=e.src.slice(o).match(BAe);if(!s)return!1;if(!t){let i=e.push("html_inline","",0);i.content=s[0],h9e(i.content)&&e.linkLevel++,b9e(i.content)&&e.linkLevel--}return e.pos+=s[0].length,!0}var y9e=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,v9e=/^&([a-z][a-z0-9]{1,31});/i;function Gz(e,t){let n=e.pos,o=e.posMax;if(e.src.charCodeAt(n)!==38||n+1>=o)return!1;if(e.src.charCodeAt(n+1)===35){let s=e.src.slice(n).match(y9e);if(s){if(!t){let i=s[1][0].toLowerCase()==="x"?parseInt(s[1].slice(1),16):parseInt(s[1],10),a=e.push("text_special","",0);a.content=VM(i)?zS(i):zS(65533),a.markup=s[0],a.info="entity"}return e.pos+=s[0].length,!0}}else{let s=e.src.slice(n).match(v9e);if(s){let i=yp(s[0]);if(i!==s[0]){if(!t){let a=e.push("text_special","",0);a.content=i,a.markup=s[0],a.info="entity"}return e.pos+=s[0].length,!0}}}return!1}function jAe(e){let t={},n=e.length;if(!n)return;let o=0,r=-2,s=[];for(let i=0;il;c-=s[c]+1){let p=e[c];if(p.marker===a.marker&&p.open&&p.end<0){let m=!1;if((p.close||a.open)&&(p.length+a.length)%3===0&&(p.length%3!==0||a.length%3!==0)&&(m=!0),!m){let g=c>0&&!e[c-1].open?s[c-1]+1:0;s[i]=i-c+g,s[c]=g,a.open=!1,p.end=i,p.close=!1,u=-1,r=-2;break}}}u!==-1&&(t[a.marker][(a.open?3:0)+(a.length||0)%3]=u)}}function Vz(e){let t=e.tokens_meta,n=e.tokens_meta.length;jAe(e.delimiters);for(let o=0;o0&&o++,r[t].type==="text"&&t+1=e.pos)throw new Error("inline rule didn't increment state.pos");break}}else e.pos=e.posMax;i||e.pos++,s[t]=e.pos};VS.prototype.tokenize=function(e){let t=this.ruler.getRules(""),n=t.length,o=e.posMax,r=e.md.options.maxNesting;for(;e.pos=e.pos)throw new Error("inline rule didn't increment state.pos");break}}if(i){if(e.pos>=o)break;continue}e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()};VS.prototype.parse=function(e,t,n,o){let r=new this.State(e,t,n,o);this.tokenize(r);let s=this.ruler2.getRules(""),i=s.length;for(let a=0;a|$))",t.tpl_email_fuzzy="(^|"+n+'|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|\uFF5C]|"+t.src_ZPCc+"))((?![$+<=>^`|\uFF5C])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|\uFF5C]|"+t.src_ZPCc+"))((?![$+<=>^`|\uFF5C])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}function Wz(e){return Array.prototype.slice.call(arguments,1).forEach(function(n){n&&Object.keys(n).forEach(function(o){e[o]=n[o]})}),e}function KM(e){return Object.prototype.toString.call(e)}function x9e(e){return KM(e)==="[object String]"}function T9e(e){return KM(e)==="[object Object]"}function w9e(e){return KM(e)==="[object RegExp]"}function JAe(e){return KM(e)==="[object Function]"}function S9e(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var ZAe={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function C9e(e){return Object.keys(e||{}).reduce(function(t,n){return t||ZAe.hasOwnProperty(n)},!1)}var E9e={"http:":{validate:function(e,t,n){let o=e.slice(t);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(o)?o.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,n){let o=e.slice(t);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(o)?t>=3&&e[t-3]===":"||t>=3&&e[t-3]==="/"?0:o.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){let o=e.slice(t);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(o)?o.match(n.re.mailto)[0].length:0}}},A9e="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",k9e="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|\u0440\u0444".split("|");function I9e(e){return function(t,n){let o=t.slice(n);return e.test(o)?o.match(e)[0].length:0}}function XAe(){return function(e,t){t.normalize(e)}}function WM(e){let t=e.re=KAe(e.__opts__),n=e.__tlds__.slice();e.onCompile(),e.__tlds_replaced__||n.push(A9e),n.push(t.src_xn),t.src_tlds=n.join("|");function o(a){return a.replace("%TLDS%",t.src_tlds)}t.email_fuzzy=RegExp(o(t.tpl_email_fuzzy),"i"),t.email_fuzzy_global=RegExp(o(t.tpl_email_fuzzy),"ig"),t.link_fuzzy=RegExp(o(t.tpl_link_fuzzy),"i"),t.link_fuzzy_global=RegExp(o(t.tpl_link_fuzzy),"ig"),t.link_no_ip_fuzzy=RegExp(o(t.tpl_link_no_ip_fuzzy),"i"),t.link_no_ip_fuzzy_global=RegExp(o(t.tpl_link_no_ip_fuzzy),"ig"),t.host_fuzzy_test=RegExp(o(t.tpl_host_fuzzy_test),"i");let r=[];e.__compiled__={};function s(a,l){throw new Error('(LinkifyIt) Invalid schema "'+a+'": '+l)}Object.keys(e.__schemas__).forEach(function(a){let l=e.__schemas__[a];if(l===null)return;let c={validate:null,link:null};if(e.__compiled__[a]=c,T9e(l)){w9e(l.validate)?c.validate=I9e(l.validate):JAe(l.validate)?c.validate=l.validate:s(a,l),JAe(l.normalize)?c.normalize=l.normalize:l.normalize?s(a,l):c.normalize=XAe();return}if(x9e(l)){r.push(a);return}s(a,l)}),r.forEach(function(a){e.__compiled__[e.__schemas__[a]]&&(e.__compiled__[a].validate=e.__compiled__[e.__schemas__[a]].validate,e.__compiled__[a].normalize=e.__compiled__[e.__schemas__[a]].normalize)}),e.__compiled__[""]={validate:null,normalize:XAe()};let i=Object.keys(e.__compiled__).filter(function(a){return a.length>0&&e.__compiled__[a]}).map(S9e).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><\uFF5C]|"+t.src_ZPCc+"))("+i+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><\uFF5C]|"+t.src_ZPCc+"))("+i+")","ig"),e.re.schema_at_start=RegExp("^"+e.re.schema_search.source,"i"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i")}function e0e(e,t,n,o){let r=e.slice(n,o);this.schema=t.toLowerCase(),this.index=n,this.lastIndex=o,this.raw=r,this.text=r,this.url=r}function mi(e,t){if(!(this instanceof mi))return new mi(e,t);t||C9e(e)&&(t=e,e={}),this.__opts__=Wz({},ZAe,t),this.__schemas__=Wz({},E9e,e),this.__compiled__={},this.__tlds__=k9e,this.__tlds_replaced__=!1,this.re={},WM(this)}mi.prototype.add=function(t,n){return this.__schemas__[t]=n,WM(this),this};mi.prototype.set=function(t){return this.__opts__=Wz(this.__opts__,t),this};mi.prototype.test=function(t){if(!t.length)return!1;let n,o;if(this.re.schema_test.test(t)){for(o=this.re.schema_search,o.lastIndex=0;(n=o.exec(t))!==null;)if(this.testSchemaAt(t,n[2],o.lastIndex))return!0}return!!(this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&t.search(this.re.host_fuzzy_test)>=0&&t.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy)!==null||this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&t.indexOf("@")>=0&&t.match(this.re.email_fuzzy)!==null)};mi.prototype.pretest=function(t){return this.re.pretest.test(t)};mi.prototype.testSchemaAt=function(t,n,o){return this.__compiled__[n.toLowerCase()]?this.__compiled__[n.toLowerCase()].validate(t,o,this):0};mi.prototype.match=function(t){let n=[],o=[],r=[],s=[],i,a,l;function c(m,g){return m?g?m.index!==g.index?m.index=g.lastIndex?m:g:m:g}if(!t.length)return null;if(this.re.schema_test.test(t))for(l=this.re.schema_search,l.lastIndex=0;(i=l.exec(t))!==null;)a=this.testSchemaAt(t,i[2],l.lastIndex),a&&o.push({schema:i[2],index:i.index+i[1].length,lastIndex:i.index+i[0].length+a});if(this.__opts__.fuzzyLink&&this.__compiled__["http:"])for(l=this.__opts__.fuzzyIP?this.re.link_fuzzy_global:this.re.link_no_ip_fuzzy_global,l.lastIndex=0;(i=l.exec(t))!==null;)r.push({schema:"",index:i.index+i[1].length,lastIndex:i.index+i[0].length});if(this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"])for(l=this.re.email_fuzzy_global,l.lastIndex=0;(i=l.exec(t))!==null;)s.push({schema:"mailto:",index:i.index+i[1].length,lastIndex:i.index+i[0].length});let u=[0,0,0],p=0;for(;;){let m=[o[u[0]],s[u[1]],r[u[2]]],g=c(c(m[0],m[1]),m[2]);if(!g)break;if(g===m[0]?u[0]++:g===m[1]?u[1]++:u[2]++,g.index= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Kz=35,jl=Math.floor,Jz=String.fromCharCode;function vp(e){throw new RangeError(M9e[e])}function D9e(e,t){let n=[],o=e.length;for(;o--;)n[o]=t(e[o]);return n}function r0e(e,t){let n=e.split("@"),o="";n.length>1&&(o=n[0]+"@",e=n[1]),e=e.replace(R9e,".");let r=e.split("."),s=D9e(r,t).join(".");return o+s}function s0e(e){let t=[],n=0,o=e.length;for(;n=55296&&r<=56319&&nString.fromCodePoint(...e),N9e=function(e){return e>=48&&e<58?26+(e-48):e>=65&&e<91?e-65:e>=97&&e<123?e-97:36},n0e=function(e,t){return e+22+75*(e<26)-((t!=0)<<5)},i0e=function(e,t,n){let o=0;for(e=n?jl(e/700):e>>1,e+=jl(e/t);e>Kz*26>>1;o+=36)e=jl(e/Kz);return jl(o+(Kz+1)*e/(e+38))},a0e=function(e){let t=[],n=e.length,o=0,r=128,s=72,i=e.lastIndexOf(o0e);i<0&&(i=0);for(let a=0;a=128&&vp("not-basic"),t.push(e.charCodeAt(a));for(let a=i>0?i+1:0;a=n&&vp("invalid-input");let m=N9e(e.charCodeAt(a++));m>=36&&vp("invalid-input"),m>jl((2147483647-o)/u)&&vp("overflow"),o+=m*u;let g=p<=s?1:p>=s+26?26:p-s;if(mjl(2147483647/f)&&vp("overflow"),u*=f}let c=t.length+1;s=i0e(o-l,c,l==0),jl(o/c)>2147483647-r&&vp("overflow"),r+=jl(o/c),o%=c,t.splice(o++,0,r)}return String.fromCodePoint(...t)},l0e=function(e){let t=[];e=s0e(e);let n=e.length,o=128,r=0,s=72;for(let l of e)l<128&&t.push(Jz(l));let i=t.length,a=i;for(i&&t.push(o0e);a=o&&ujl((2147483647-r)/c)&&vp("overflow"),r+=(l-o)*c,o=l;for(let u of e)if(u2147483647&&vp("overflow"),u===o){let p=r;for(let m=36;;m+=36){let g=m<=s?1:m>=s+26?26:m-s;if(p=0))try{t.hostname=Xz.toASCII(t.hostname)}catch{}return $M(_y(t))}function V9e(e){let t=BS(e,!0);if(t.hostname&&(!t.protocol||p0e.indexOf(t.protocol)>=0))try{t.hostname=Xz.toUnicode(t.hostname)}catch{}return HS(_y(t),HS.defaultChars+"%")}function Gi(e,t){if(!(this instanceof Gi))return new Gi(e,t);t||GM(e)||(t=e||{},e="default"),this.inline=new WAe,this.block=new GAe,this.core=new DAe,this.renderer=new kAe,this.linkify=new t0e,this.validateLink=z9e,this.normalizeLink=G9e,this.normalizeLinkText=V9e,this.utils=iz,this.helpers=vy({},uz),this.options={},this.configure(e),t&&this.set(t)}Gi.prototype.set=function(e){return vy(this.options,e),this};Gi.prototype.configure=function(e){let t=this;if(GM(e)){let n=e;if(e=q9e[n],!e)throw new Error('Wrong `markdown-it` preset "'+n+'", check name')}if(!e)throw new Error("Wrong `markdown-it` preset, can't be empty");return e.options&&t.set(e.options),e.components&&Object.keys(e.components).forEach(function(n){e.components[n].rules&&t[n].ruler.enableOnly(e.components[n].rules),e.components[n].rules2&&t[n].ruler2.enableOnly(e.components[n].rules2)}),this};Gi.prototype.enable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(r){n=n.concat(this[r].ruler.enable(e,!0))},this),n=n.concat(this.inline.ruler2.enable(e,!0));let o=e.filter(function(r){return n.indexOf(r)<0});if(o.length&&!t)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+o);return this};Gi.prototype.disable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(r){n=n.concat(this[r].ruler.disable(e,!0))},this),n=n.concat(this.inline.ruler2.disable(e,!0));let o=e.filter(function(r){return n.indexOf(r)<0});if(o.length&&!t)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+o);return this};Gi.prototype.use=function(e){let t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this};Gi.prototype.parse=function(e,t){if(typeof e!="string")throw new Error("Input data should be a String");let n=new this.core.State(e,this,t);return this.core.process(n),n.tokens};Gi.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)};Gi.prototype.parseInline=function(e,t){let n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens};Gi.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)};var JM=Gi;var Ba=Sy();Ba.set=()=>{throw new Error("Do not apply any non-default plugins or formatting to the globally available markdown instance. Instead use createMarkdownItInstance to create a new instance.")};function Sy(e="default",t){return"default"in XM?JM(e,t):new XM(e,t)}var Q9e=e=>{let t=/(]*?)>\^(\d+)\^(<\/a>)/g;return e.replace(t,(n,o,r,s)=>`${o} aria-label="link, ${r}">${r}${s}`)},m0e=e=>{let t=Sy("default",{html:!1,linkify:!0,typographer:!0}),n=t.render;return t.render=function(o){let r=String(n.call(t,o));if(!e||e.length===0)return Q9e(r);let s=r.replace(/

    /g,'

    ').replace(/<\/p>/g,"
    "),i=/]*?>(\^(\d+)\^)<\/a>/g;return s=s.replace(i,(a,l,c)=>{let u=parseInt(String(c));return u>0&&u<=e.length?e[u-1]:a}),s},t.renderer.rules.fence=function(o,r,s,i,a){let l=o[r],c=l.info?l.info.trim().split(/\s+/g)[0]:"",u=/^[A-Za-z0-9_-]+$/.test(c)?c:"",p=u?`class="lang-${u}"`:"",m=t.utils.escapeHtml(l.content||"");return`
    ${m}
    `},t};function g0e(e,t,n){let o="color-success";t&&t>=n?o="color-danger":t&&t>=.5*n&&(o="color-warning");let r=e.skeletonHidden?"is-hidden":"",s=t?"":"is-hidden",i=t?"":"skeleton",a=d``;return d`
    ${t?DX.replace("{count}",t.toString()).replace("{total}",n.toString()):a}
    `}function Y9e(){return d`
    ${zi()}
    ${aX}
    `}function j9e(e){return d`
    ${e}
    `}function h0e(e,t,n){return d`
    ${t?Y9e():zi()}
    ${e}
    `}function W9e(e,t){let n=e.contentIsHTML?"content first-p-top-margin-reset":"";return h0e(t,!0,n)}function K9e(e){let t=d`

    ${xX}

    `;return h0e(t,!1)}function f0e(e){return d`
    `}function J9e(e){return d`
    `}function X9e(e){if(!e.citations||Object.keys(e.citations).length===0)return"";let t=Object.entries(e.citations).map(([n,o])=>({key:n,citation:o,safeUrl:iI(o.url)})).filter(n=>n.safeUrl!=="");return t.length===0?"":d`
    ${jue}
      ${t.map(({citation:n,safeUrl:o})=>d`
    1. ${n.title}
    2. `)}
    `}function Z9e(e){return e.loaded?d` ${X9e(e)}
    ${f0e(e)} ${g0e(e,e.responseCount,e.maxMessages)}
    `:e.errored?d`
    ${f0e(e)}
    `:e.cancelled?d`
    ${g0e(e,e.responseCount,e.maxMessages)}
    `:""}function eGe(e,t){if(e.allowLoadingView&&e.loading)return tGe(e,t);let o=iAe(e.citations),r=m0e(o),s=e.cancelled?d`${hA} ${e.content}`:e.type==="ai"&&e.contentIsHTML?q(r.render(e.content??"")):e.content,i=e.type==="ai"?Z9e(e):"",a=e.cancelled?J9e(e):"",l=e.feedbackViewModel?lAe(e.feedbackViewModel,t):"",c=e.responseCount&&e.responseCount>=e.maxMessages?K9e(e):"",u=d`
    ${s} ${i}
    `;return d`
    ${e.type==="user"?j9e(u):W9e(e,u)}
    ${a} ${l} ${c} `}function tGe(e,t){return d`
    ${zi()}

    ${xA}

    `}function b0e(e,t){return eGe(e,t)}M();M();function nGe(e){return d` `}function _0e(e){return!e.suggestionPills||e.suggestionPills.length===0||!e.canSubmit?"":d` ${e.suggestionPills.filter(t=>!t.clicked).map(t=>nGe(t))} `}function v0e(e,t){return!e.starterPrompts||e.starterPrompts.length===0?"":d`
    ${e.starterPrompts.map(({icon:n,header:o,description:r,prompt:s})=>{let i=o.charAt(0).toLowerCase()+o.slice(1);return d`

    ${r}

    `})}
    `}function y0e(){return b.data.pageTemplate!=="ModuleUnit"}function x0e(e,t){if(!e.starterPrompts||e.starterPrompts.length===0)return"";let o=!y0e()||!e.suggestionPills||e.suggestionPills.length===0||e.suggestionPills.every(r=>r.clicked)?mF:"";return d`
    ${y0e()?_0e(e):""}
    ${o}

    ${CX}

    ${e.starterPrompts.map(({icon:r,header:s,prompt:i})=>{let a=s.toLowerCase();return d` `})}
    `}M();function T0e(e,t){return d` `}function oGe(e){let o=parseInt(window.getComputedStyle(e).lineHeight,10);e.rows=1;let r=Math.floor(e.scrollHeight/o);r>6?(r=6,e.style.overflowY="auto"):e.style.overflowY="hidden",e.rows=r}function rGe(e,t){return d`
    ${e.starterPrompts?v0e(e,t):""} ${Hs(e.messages,n=>n.index,n=>b0e(n,t))}
    `}function Zz(e,t){return d`${rGe(e,t)} ${iGe(e,t)}`}function w0e(){return d` `}function S0e(e,t,n=!1){return d`

    ${zi()}

    ${gh}
    ${w0e()}
    ${Zz(e,t)}
    `}function sGe(e){return e?d` ${e} `:d``}function iGe(e,t){return d`
    ${e.starterPrompts?x0e(e,t):""}
    ${T0e(e,t)}
    ${sGe(e.currentValidationMessage)}
    `}function C0e(e,t=!1){return d`

    ${zi()}

    ${gh}
    ${w0e()}

    ${bx}

    ${ph}

    `}function E0e(){return d` `}function aGe(e,t,n){let o=()=>{document.querySelector('[data-flyout-button="close"]')?.click(),AM(()=>{e.notifyPropertyChanged();let r=document.querySelector("[data-ask-learn-flyout-entry]");r&&hu(r,!0)},!0)};return d`

    ${zi()}

    ${gh}
    ${E0e()}

    ${bA}

    ${yX}

    `}function lGe(e,t){switch(e.currentView){case"history":return sAe(e.historyViewModel,e);default:return Zz(e,t)}}function cGe(e,t,n){switch(e.currentView){case"history":return"";default:return d`
    ${xm}
    `}}function uGe(e,t){switch(e.currentView){case"history":let n=e.historyViewModel;return d`
    `;default:return""}}function A0e(e,t,n=!1){if(e.companionActive&&!LM())return aGe(e,t,n);let o=e.navigator,r=(()=>{let s=Jx("me","settings"),i=s.searchParams.get("preview");return s.searchParams.set("preview",i?`${i},learn-companion`:"learn-companion"),s.toString()})();return d`

    ${zi()}

    ${gh}
    ${cGe(e,o,r)} ${E0e()}
    ${uGe(e,o)}
    ${lGe(e,t)}
    `}var xu=class{constructor(t={}){this.detail=t}},Wl=class{constructor(t={}){this.detail=t}},Cy=class{constructor(t={}){this.detail=t}},Ey=class{constructor(t={}){this.detail=t}},Kl=class{constructor(t={}){this.detail=t}},Tu=class{constructor(t={}){this.detail=t}},Ay=class{constructor(t={}){this.detail=t}},ky=class{constructor(t={}){this.detail=t}};var k0e={chat:nX,history:dh},ZM=class{constructor(t){this.args=t;this.currentView="chat";this.previousView="chat";this.focusedElement=null;this.escController=null}goto(t,n){t!==this.currentView&&(this.focusedElement=n!==void 0?n:document.activeElement instanceof HTMLElement?document.activeElement:null,this.previousView=this.currentView,this.currentView=t,this.args.onChange(),t==="chat"?this.detachEscHandler():this.attachEscHandler(),requestAnimationFrame(()=>{un(k0e[t]),this.args.getContainer()?.querySelector(gp.join(","))?.focus()}))}back(){if(this.currentView==="chat")return;let t=this.previousView;this.previousView=this.currentView,this.currentView=t,this.args.onChange(),this.detachEscHandler(),requestAnimationFrame(()=>{un(k0e[t]),this.focusedElement?.focus(),document.activeElement!==this.focusedElement&&this.args.getContainer()?.querySelector(gp.join(","))?.focus()})}reset(){this.currentView="chat",this.previousView="chat",this.focusedElement=null,this.detachEscHandler()}attachEscHandler(){if(!this.escController){let t=this.args.getContainer();if(!t)return;this.escController=new AbortController,t.addEventListener("keydown",n=>{n.key==="Escape"&&(n.preventDefault(),this.back())},{signal:this.escController.signal})}}detachEscHandler(){this.escController?.abort(),this.escController=null}};var I0e=Ht,P0e=Xr,e1=class extends Ve{constructor(){super(...arguments);this.conversations=[];this.isLoading=!1;this.isDeleting=!1;this.isRenaming=!1;this.error=null;this.continuationToken=null;this.haAlpha XR=!1;this.totalConversations=0;this.pendingRenameId=null;this.pendingRenameDraft="";this.pendingDeleteId=null}notifyPropertyChanged(){this.publish(new xu({}))}startRename(n){let o=this.conversations.find(r=>r.conversationId===n);this.pendingRenameId=n,this.pendingRenameDraft=o?.summary??"",this.pendingDeleteId=null,this.error=null,this.notifyPropertyChanged()}cancelRename(){this.pendingRenameId=null,this.pendingRenameDraft="",this.error=null,this.notifyPropertyChanged()}updateRenameDraft(n){this.pendingRenameDraft=n}startConfirmDelete(n){this.pendingDeleteId=n,this.pendingRenameId=null,this.error=null,this.notifyPropertyChanged()}cancelConfirmDelete(){this.pendingDeleteId=null,this.error=null,this.notifyPropertyChanged()}async fetch(){if(!this.isLoading){this.isLoading=!0,this.error=null,this.notifyPropertyChanged();try{let n=await K6();this.conversations=n.conversations,this.continuationToken=n.continuationToken,this.haAlpha XR=n.haAlpha XR,this.totalConversations=n.totalConversations}catch{this.error=I0e}finally{this.isLoading=!1,this.notifyPropertyChanged()}}}async fetchMore(){if(!(this.isLoading||!this.haAlpha XR||!this.continuationToken)){this.isLoading=!0,this.error=null,this.notifyPropertyChanged();try{let n=await K6(this.continuationToken);this.conversations=[...this.conversations,...n.conversations],this.continuationToken=n.continuationToken,this.haAlpha XR=n.haAlpha XR,this.totalConversations=n.totalConversations}catch{this.error=I0e}finally{this.isLoading=!1,this.notifyPropertyChanged()}}}async deleteOne(n){if(this.isDeleting)return!1;this.isDeleting=!0,this.notifyPropertyChanged();try{return await eAe(n),this.conversations=this.conversations.filter(o=>o.conversationId!==n),this.pendingDeleteId===n&&(this.pendingDeleteId=null),this.error=null,!0}catch{return this.error=P0e,!1}finally{this.isDeleting=!1,this.notifyPropertyChanged()}}async rename(n,o){if(this.isRenaming)return!1;let r=this.conversations.findIndex(i=>i.conversationId===n);if(r===-1)return!1;this.isRenaming=!0;let s=this.conversations[r];this.conversations=[...this.conversations.slice(0,r),{...s,summary:o},...this.conversations.slice(r+1)],this.notifyPropertyChanged();try{return await tAe(n,o),this.pendingRenameId===n&&(this.pendingRenameId=null,this.pendingRenameDraft=""),this.error=null,!0}catch{return this.conversations=[...this.conversations.slice(0,r),s,...this.conversations.slice(r+1)],this.error=P0e,!1}finally{this.isRenaming=!1,this.notifyPropertyChanged()}}};var t1=class extends Ve{constructor(n){super();this.state="none";this.index=n}getSelectedOption(n){return n?.querySelector('input[type="radio"]:checked')}getVerbatimText(n){return n?.querySelector("textarea")?.value}previewPayload(n,o=!1){if(!n)return;let r=n.target.closest("form"),s=this.getSelectedOption(r),i=this.getVerbatimText(r);s&&(this.userRadioSelection=s.value,this.verbatim=i),this.publish(new Tu({refresh:o,msgIndex:this.index}))}handleSubmit(n,o){o.preventDefault();let r=o.target.closest("form"),s=this.getSelectedOption(r),i=this.getVerbatimText(r);s&&(this.userRadioSelection=s.value,this.verbatim=i,this.state="submitted",n.notifyPropertyChanged(),this.publish(new Kl({consentProvided:!0})))}clearRadioSelection(){Array.from(document.querySelectorAll("[data-chat-container-name]")).forEach(o=>{o.querySelectorAll('input[type="radio"]').forEach(s=>{s.checked=!1})})}cancelFeedback(){this.state="cancelled",this.userRadioSelection=void 0,this.verbatim=void 0,this.notifyPropertyChanged()}undoFeedback(){this.state="none",this.userRadioSelection=void 0,this.verbatim=void 0,this.notifyPropertyChanged()}notifyPropertyChanged(){this.publish(new Wl({scroll:!1}))}};var dGe={contentIsHTML:!1,type:"user"},Cs,n1=class extends Ve{constructor(n,o={},r,s,i,a){super();Wn(this,Cs,"loading");this.firstRender=!0;this.errorMapping={};this.skeletonHidden=!1;let{contentIsHTML:l,type:c}={...dGe,...o};if(this.type=c||"user",this.contentIsHTML=l||!1,this.index=r,this.maxMessages=s,this.errorMapping=i||{},this.sessionId=a,n instanceof Promise)this.fetchInternal=n;else{let u=n;this.content=u.content,this.citations=u.citations,this.type=u.type,this.interactionId=u.interactionId,this.rating=u.rating,mn(this,Cs,u.state||"loaded"),this.responseCount=u.responseCount,this.responseCount||(this.skeletonHidden=!0),this.fetchInternal=Promise.resolve({})}this.type==="ai"&&(un(xA,"assertive"),this.feedbackViewModel=new t1(r),this.feedbackViewModel.subscribe(Wl,()=>this.notifyPropertyChanged()),this.feedbackViewModel.subscribe(Kl,u=>this.publish(new Kl(u.detail))),this.feedbackViewModel.subscribe(Tu,u=>this.publish(new Tu({refresh:u.detail.refresh,msgIndex:u.detail.msgIndex,likeOrDislike:this.rating})))),this.load().then(()=>{this.type==="ai"&&un(wX),this.notifyPropertyChanged()})}get loading(){return Oe(this,Cs)==="loading"}get cancelled(){return Oe(this,Cs)==="cancelled"}get loaded(){return Oe(this,Cs)==="loaded"}get errored(){return Oe(this,Cs)==="errored"}get allowLoadingView(){return Oe(this,Cs)==="loading"&&this.type==="ai"}updateResponseCount(n){this.responseCount=n,this.responseCount>=this.maxMessages&&this.chatSetBusy()}async load(){this.loading&&(await Promise.race([this.loadInternal(),this.awaitCancellation()]),this.publish(new ky),this.notifyPropertyChanged())}async awaitCancellation(){return new Promise(n=>{this.cancel=n}).then(n=>{this.contentIsHTML=!1,mn(this,Cs,"cancelled"),un(hA,"assertive"),this.focusElementOnCancel(n)})}focusElementOnCancel(n){let o=n.target instanceof HTMLElement&&n.target.closest("[data-chat-container-name]");if(!o)return;let r=o.dataset.containerName;if(!r)return;let s=document.querySelector(`[data-focus-on-cancel="${r}"]`);s&&s.focus()}async loadInternal(){if(this.loaded||this.errored)return;let n=await this.fetchInternal;if(n.responseCount===0&&(this.skeletonHidden=!0),!this.loading){n.responseCount&&this.updateResponseCount(n.responseCount),this.notifyPropertyChanged();return}n.message&&(this.content=n.message),n.citations&&(this.citations=n.citations),n.sessionId&&(this.sessionId=n.sessionId),n.interactionId&&(this.interactionId=n.interactionId),n.responseCount&&this.updateResponseCount(n.responseCount),n.isError?mn(this,Cs,"errored"):this.loading&&mn(this,Cs,"loaded")}resetChat(){this.publish(new Ey)}chatSetBusy(){this.publish(new Cy)}updateFeedback(n){this.rating===n?(this.rating=void 0,this.feedbackViewModel&&this.feedbackViewModel.undoFeedback()):(this.rating=n,this.feedbackViewModel&&(this.feedbackViewModel.state=n,this.feedbackViewModel.clearRadioSelection())),this.publish(new Kl),this.notifyPropertyChanged()}regenerateMessage(){this.cancelled&&(mn(this,Cs,"loading"),this.contentIsHTML=!0,this.load(),this.notifyPropertyChanged())}notifyPropertyChanged(){let n=this.contentIsHTML&&this.firstRender&&this.loaded&&this.type==="ai";n&&(this.firstRender=!1),this.publish(new Wl({updateCodeBlocks:n,scroll:!1,interactionId:this.interactionId}))}saveMessage(){return{content:this.content,citations:this.citations,type:this.type,interactionId:this.interactionId,responseCount:this.responseCount,state:this.type==="ai"?Oe(this,Cs):void 0,rating:this.rating}}};Cs=new WeakMap;var o1=class extends Ve{constructor(t,n,o){super(),this.name=t,this.description=n,this.prompt=o,this.clicked=!1}clickSuggestionPill(){this.clicked=!0,this.publish(new Ay({prompt:this.prompt}))}resetSuggestionPill(){this.clicked=!1}};var r1={empty:MX,short:vA,exceeded:pF},pGe=8*60*60*1e3,mGe="learn_companion_channel",QS,YS,jS,Vi,WS,KS,Iy,Py,ff,s1=class extends Ve{constructor(n){super();this.textarea=null;this.navigator=null;Wn(this,QS,"");Wn(this,YS,"");this.MIN_CHAR_LENGTH=10;this.MAX_CHAR_LENGTH=500;this.errorMapping={};this.starterPrompts=[];this.suggestionPills=[];this.scrollHandle="chat-messages-container";this.indexCount=0;this.canSubmit=!0;this.responseCount=0;this.broadcastChannel=new BroadcastChannel("chat_channel");Wn(this,jS);Wn(this,Vi,[]);Wn(this,WS);Wn(this,KS);Wn(this,Iy);Wn(this,Py);Wn(this,ff,null);this.initialized=new Promise(n=>{this.initialize=n});this._busy=!1;mn(this,jS,n.fetch),mn(this,WS,n.getContextIdType),mn(this,KS,n.getContextId),this.maxMessages=n.maxMessages,this.validate=n.validate||(()=>null),this.errorMapping=n.errorMapping||{},this.starterPrompts=n.starterPrompts,mn(this,Iy,n.onFeedback),mn(this,Py,n.onTimeTelemetry),this.initSuggestionPills(n),this.setUpTestKeyboardListener(),n.companionActive?(this.companionActive=!0,this.broadcastChannel.close(),this.broadcastChannel=new BroadcastChannel(mGe),this.navigator=new ZM({onChange:async()=>{this.navigator?.currentView==="history"&&await this.historyViewModel.fetch(),this.notifyPropertyChanged()},getContainer:()=>this.getActiveContainer()})):this.companionActive=!1,this.initUserInteractionListener(),this.handleInitialChatHistory(),this.initBroadcastChannel(),this.initialize()}get sessionId(){return Oe(this,QS)}set sessionId(n){mn(this,QS,n||"")}get currentMessageLength(){return this.currentMessage.length}get currentMessage(){return Oe(this,YS)||""}set currentMessage(n){mn(this,YS,n)}get historyViewModel(){return Oe(this,ff)||(mn(this,ff,new e1),Oe(this,ff).subscribe(xu,n=>this.notifyPropertyChanged(n.detail))),Oe(this,ff)}get messages(){return Oe(this,Vi)}get busy(){return this._busy}get currentView(){return this.navigator?.currentView??"chat"}async submit(n){n.preventDefault(),this.validateMinLength(),!(!this.canSubmit||!this.currentMessage)&&(this.resetTextAreaHeight(this.getActiveTextArea(this.getActiveContainerName())),this.userMessage(),await this.fetch(),this.notifyPropertyChanged())}async submitWithPrompt(n){this.currentMessage=n,this.submit(new Event("submit"))}async testPrompt(){this.currentMessage="How do I write a test in C#?",this.userMessage(),await this.fetch(),this.notifyPropertyChanged()}async applyStarterPrompt(n,o){this.currentMessage=n;let r=this.getActiveTextArea(o);this.notifyPropertyChanged(),r&&(r.focus(),r.dispatchEvent(new Event("input")))}initSuggestionPills(n){this.suggestionPills=n.suggestionPills?.map(o=>new o1(o.name,o.description,o.prompt))||[],this.suggestionPills.forEach(o=>{o.subscribe(Ay,r=>{r.detail.prompt&&this.submitWithPrompt(r.detail.prompt)})})}resetSuggestionPills(){this.suggestionPills?.forEach(n=>n.resetSuggestionPill())}notifyPropertyChanged(n){this.publish(new xu({...n}))}populateForTest(n){mn(this,Vi,n),this.notifyPropertyChanged()}getActiveTextArea(n){if(n){let s=document.querySelector(`[data-chat-textarea-container-name="${n}"]`);if(s)return s}let o=this.getActiveContainer(n);if(!o)return null;let r=o.querySelector("[data-chat-textarea-container-name]");return r||null}getActiveContainer(n){if(n){let s=document.querySelector(`[data-chat-container-name="${n}"]`);if(s)return s}let o=Array.from(document.querySelectorAll("[data-chat-container-name]"));if(o.length===0)return null;let r=o.find(s=>getComputedStyle(s).display!=="none");return r||null}getActiveContainerName(){let n=this.getActiveContainer();return n&&n.getAttribute("data-chat-container-name")||""}validateMinLength(){this.currentMessage.length===0?(this.canSubmit=!1,this.currentValidationMessage=r1.empty):this.currentMessage.lengththis.MAX_CHAR_LENGTH&&(this.canSubmit=!1,this.currentValidationMessage=r1.exceeded,un(pF)),this.notifyPropertyChanged()}handleKeyDown(n){n.key==="Enter"&&!n.shiftKey&&(n.preventDefault(),this.submit(n),Ee({behavior:Ce.OTHER,actionType:Re.KEYBOARDENTER,content:{autoIngest:!0,type:"ask-learn-assistant-submit-prompt",an:"ask-learn-assistant",name:"submit-enter"}}))}reset(n=!1){mn(this,Vi,[]),this.sessionId="",this.deleteChatHistory(),this.indexCount=0,this.responseCount=0,this.setReady(),this.canSubmit=!0,this.resetSuggestionPills(),this.navigator?.reset(),this.notifyPropertyChanged(),un(eX),n||this.broadcastChannel.postMessage({type:"reset"})}clearActiveChat(n=!1){mn(this,Vi,[]),this.sessionId="",this.deleteChatHistory(),this.notifyPropertyChanged(),n||this.broadcastChannel.postMessage({type:"clear-active-chat"})}scrollToActiveMessage(n,o="smooth"){let r=this.getActiveContainer(n);if(!r)return;let s=`[data-scroll-into-view="${this.scrollHandle}"]`,i=r.querySelector(s);if(!i){if(this.currentView!=="chat")return;throw new Error("No active scroll handle found for chat.")}i.scrollIntoView({block:"nearest",inline:"start",behavior:o})}createMessagesHistoryArray(n=!1){let o=[];for(let r=0;r0&&(this.messages[this.messages.length-1].skeletonHidden=!0,this.publish(new Wl({})))}finally{(this.responseCountthis.handleMessageChange(c.detail)),l.subscribe(Cy,()=>this.setBusy()),l.subscribe(Ey,()=>{this.reset()}),l.subscribe(Kl,c=>{this.sendTelemetryToOneDS(c.detail),this.saveChat()}),l.subscribe(Tu,c=>{c.detail.refresh&&c.detail.likeOrDislike&&c.detail.msgIndex?this.updatePreviewPayload("refresh",c.detail.msgIndex,c.detail.likeOrDislike):c.detail.likeOrDislike&&c.detail.msgIndex&&this.updatePreviewPayload("toggle",c.detail.msgIndex,c.detail.likeOrDislike)}),l.subscribe(ky,()=>{this.saveChat()}),Oe(this,Vi).push(l)}userMessage(){this.pushMessage(Promise.resolve({message:this.currentMessage}),{},this.createChildVmIndex(),this.maxMessages,{})}systemMessage(n){this.pushMessage(n,{contentIsHTML:!0,type:"ai"},this.createChildVmIndex(),this.maxMessages,this.errorMapping)}errorMessage(n){let o;n in this.errorMapping?o=this.errorMapping[n]:o=fr;let r={content:o,state:"errored",type:"ai"};this.pushMessage(r,{},this.createChildVmIndex(),this.maxMessages,this.errorMapping)}handleMessageChange(n){this.notifyPropertyChanged(n)}createChildVmIndex(){return this.indexCount++}setUpTestKeyboardListener(){Gl&&window.addEventListener("keydown",n=>{n.ctrlKey&&n.shiftKey&&n.altKey&&n.key==="T"&&this.testPrompt()})}resetTextAreaHeight(n){n&&(n.rows=1,n.style.overflowY="hidden")}serializeChat(){return JSON.stringify({sessionId:this.sessionId,messages:this.messages.filter((n,o,r)=>{if(!n.loaded)return!1;if(n.type==="user"){let s=r[o+1];if(!s||!s.loaded)return!1}return!0}).map(n=>n.saveMessage())})}saveChat(n=!1){let o=this.serializeChat(),r={type:"history",payload:o,shouldScroll:n};this.broadcastChannel.postMessage(r),this.companionActive?(J.setItem(IM,o),J.setItem(cf,Date.now().toString())):(J.setItem(EM,o),J.setItem(sf,Date.now().toString()))}deleteChatHistory(){this.companionActive?(J.removeItem(IM),J.removeItem(cf)):(J.removeItem(EM),J.removeItem(sf))}getChatHistory(){let n=J.getItem(this.companionActive?IM:EM);return n?JSON.parse(n):null}restoreChatHistory(n,o=!1){n&&(this.sessionId=n.sessionId,mn(this,Vi,[]),n.messages.forEach(r=>{this.pushMessage(r,{contentIsHTML:!0,type:r.type},this.createChildVmIndex(),this.maxMessages,this.errorMapping,this.sessionId),this.responseCount=r.responseCount||0,this.responseCount>=this.maxMessages&&this.setBusy()}),this.notifyPropertyChanged({scroll:o}))}clearChatsUponInactive(){let n=J.getItem(this.companionActive?cf:sf);if(!n)return;let o=parseInt(n);Date.now()-o>pGe&&(this.deleteChatHistory(),this.reset(),J.removeItem(this.companionActive?bu:af))}handleInitialChatHistory(){if(!yM&&(this.clearChatsUponInactive(),this.restoreChatHistory(this.getChatHistory()),J.getItem(this.companionActive?bu:af)==="true")){if(this.companionActive&&!LM()){J.removeItem(bu);return}this.handleFlyoutOpenStateChange(!0)}}initBroadcastChannel(){yM||(this.broadcastChannel.onmessage=n=>{if(n.data)switch(n.data.type){case"history":try{let o=JSON.parse(n.data.payload||"{}");this.restoreChatHistory(o,n.data.shouldScroll)}catch{}break;case"reset":this.reset(!0);break;case"clear-active-chat":this.clearActiveChat(!0);break;case"open-state":this.handleFlyoutOpenStateChange(n.data.isOpen);break}})}initUserInteractionListener(){yM||(window.addEventListener("focusin",()=>{J.setItem(this.companionActive?cf:sf,Date.now().toString())}),this.companionActive&&document.addEventListener("visibilitychange",()=>{document.visibilityState==="visible"&&!this.busy&&this.restoreChatHistory(this.getChatHistory())}),window.addEventListener("flyout-show",()=>{J.setItem(this.companionActive?bu:af,"true"),this.broadcastChannel.postMessage({type:"open-state",isOpen:!0})}),window.addEventListener("flyout-hide",()=>{J.setItem(this.companionActive?bu:af,"false"),this.broadcastChannel.postMessage({type:"open-state",isOpen:!1})}))}handleFlyoutOpenStateChange(n){let o=document.querySelector("[data-ask-learn-flyout-entry]");if(!o)return;let r=document.documentElement.classList.contains("layout-flyout-active");if(n!==r)if(n)hu(o);else{let s=document.querySelector('button[data-flyout-button="close"]');s&&s.click()}}initialize(){}};QS=new WeakMap,YS=new WeakMap,jS=new WeakMap,Vi=new WeakMap,WS=new WeakMap,KS=new WeakMap,Iy=new WeakMap,Py=new WeakMap,ff=new WeakMap;var Xo,i1,gGe=async e=>{await(i1??Promise.resolve()),AM(()=>{i1=RM(),Xo?.notifyPropertyChanged(),e()})},fGe=(()=>{let e=new URLSearchParams(window.location.search),t=e.has("asklearn");if(t){e.delete("asklearn");let n=e.toString(),o=`${window.location.pathname}${n?"?"+n:""}${window.location.hash}`;window.history.replaceState(window.history.state,window.document.title,o)}return t})();function hGe(e){return e.map(t=>NS(t))}function bGe(e,t,n,o){return!!(e||t||n||o)}function _Ge(e){return e?nAe:KEe}function yGe(e){return e?{lastInteractionTimeKey:cf,openStatusKey:bu}:{lastInteractionTimeKey:sf,openStatusKey:af}}function vGe(e,t){window.addEventListener("flyout-show",()=>{J.setItem(e,Date.now().toString()),J.setItem(t,"true")}),window.addEventListener("flyout-hide",()=>{J.setItem(e,Date.now().toString()),J.setItem(t,"false")})}async function L0e(){if(!S.chatTutor||b.data.isPermissioned&&b.data.permissionedType!=="public")return;let e=Ze("chat-tutor",{require:!0}),[t,n,o]=await Promise.all([Bi("ask-learn"),Bi("ask-learn-on-articles"),Bi("ask-learn-on-reference"),fe,Te]);if(!bGe(e,t,n,o)){document.documentElement.classList.remove("layout-flyout-active");return}let s=Ze("learn-companion",{require:!0}),{lastInteractionTimeKey:i,openStatusKey:a}=yGe(s);hM("devlang");let l=v.isAuthenticated,c=s?by(pi):by();c<2&&hGe([hy,OS]);let{chatContainer:u,chatModal:p}=xGe();if(!u||!p)return;let m=[],g=document.getElementById("ask-learn-flyout");g&&m.push({element:g,name:"ask-learn-flyout",sticky:!0});let f=s?gGe:XEe;z6(V6,p,f),z6(vM,p,f),G6(FS,f),G6(xM,f,!0),qEe(BEe,()=>p.show(),hu,f),HEe(p,FS),VEe();let _=[{element:u,name:"ask-learn-modal"},...m];if(l){let h=await _Ge(s);s&&c>=2&&(i1=RM(),J.getItem(bu)==="true"&&await i1),TGe(h,_)}else{for(let h of _)y(C0e(h.name,!!h.sticky),h.element);vGe(i,a)}fGe&&J.getItem(a)!=="true"&&f(()=>{if(xa.matches){let T=document.querySelector(FS);T&&hu(T,!0)}else p.show()})}function xGe(){let e=document.createElement("div");e.classList.add("modal-content","is-docked-right","background-color-body-medium"),e.style.cssText="--sidebar-modal-width: 500px";let t=new ge(e);return{chatContainer:e,chatModal:t}}async function TGe(e,t){if(!t||t.length===0)throw new Error("Invalid container provided to Chat View Model.");Xo=new s1(e);let n=e.companionActive?A0e:S0e;Xo.subscribe(xu,async o=>{for(let r of t){y(n(Xo,r.name,!!r.sticky),r.element);let s=Array.from(r.element.querySelectorAll(`[data-interaction-id="${o.detail.interactionId}"]`));if(o.detail.updateCodeBlocks)for(let i of s)DS(i);J6(r.element,s),o.detail.scroll&&Xo.scrollToActiveMessage(r.name)}}),await Xo.initialized,window.addEventListener("resize",fy.timeout(()=>{for(let o of t){let r=Array.from(o.element.querySelectorAll("[data-interaction-id]"));J6(o.element,r)}},250));for(let o of t)y(n(Xo,o.name,!!o.sticky),o.element);window.addEventListener("modal-show",()=>{Xo.scrollToActiveMessage("ask-learn-modal","instant")}),window.addEventListener("flyout-show",()=>{Xo.scrollToActiveMessage("ask-learn-flyout","instant")})}var a1=A2({storageKey:b.data.layoutStateStorageKey,excludesKey:b.data.layoutStateExcludesKey,excludes:b.data.layoutStateExcludes,useViewTransitionOnRestore:!1,storage:localStorage});ct.subscribe(zh,()=>{document.documentElement.removeAttribute("data-layout-restored"),a1.stop()});ct.subscribe(Cn,()=>{a1=A2({storageKey:b.data.layoutStateStorageKey,excludesKey:b.data.layoutStateExcludesKey,excludes:b.data.layoutStateExcludes,useViewTransitionOnRestore:!1,storage:localStorage})});function R0e(){G7(),ct.subscribe(Cn,el),window.addEventListener("content-update",el);let e=["[data-dismissable]"];window.addEventListener("click",wGe(e))}function wGe(e){return t=>{t.target instanceof Element&&t.target.closest(e.join(","))&&el()}}var e5,SGe="article-header-page-actions",CGe="article-header-page-actions-overflow",M0e="[data-page-action-item]";function t5(e=Array.from(document.querySelectorAll(M0e))){let t=document.getElementById(SGe);if(!t)return;e5&&e5.disconnect(),D0e(e);let n=new MutationObserver(()=>{D0e(Array.from(t.querySelectorAll(M0e)))});n.observe(t,{childList:!0,attributes:!0,attributeFilter:["hidden"],subtree:!0}),e5=n,t.classList.remove("opacity-none")}function EGe(e){switch(e){case"overflow-all":case"overflow-mobile":return e;default:throw new Error(`Incorrect value added for [data-page-action-item]: ${e}`)}}function D0e(e){let t=document.getElementById(CGe);if(!t)return;let n=t.getAttribute("data-reset-required");if(n)switch(n){case"display-none":t.classList.remove("display-none");case"display-none-tablet":t.classList.remove("display-none-tablet");default:break}let o=!1,r=!1,s=t.querySelector('[data-list-type="plan"]');s&&(s.hidden=!1);for(let i of e)if(i.dataset.pageActionItem){let a=i.dataset.pageActionItem;if(!a)continue;let l=i.dataset?.checkHidden==="true",c=i.hidden,u=EGe(a);if(u==="overflow-all"&&(!l||!c)){o=!0;break}if(u==="overflow-mobile"&&(!l||!c)){r=!0;continue}}t&&(!o&&r&&(t.classList.add("display-none-tablet"),t.setAttribute("data-reset-required","display-none-tablet")),!o&&!r&&(t.classList.add("display-none"),t.setAttribute("data-reset-required","display-none")))}a1.subscribe("layout-focus-mode","always",e=>{let t=document.getElementById("ms--focus-mode-button");if(!t)return;let n=e.isApplied;t.classList.toggle("is-selected",n),t.setAttribute("aria-pressed",n.toString()),t.setAttribute("data-bi-name",n?"focus-mode-exit":"focus-mode-entry"),document.body.setAttribute("data-bi-name",n?"body-focus-mode":"body"),un(n?Aae:kae,"assertive"),Zt()});function n5(e){let t=[AGe,kGe],n=()=>t.forEach(o=>o({container:e}));n(),Ye(window,"content-update",()=>n())}function $0e(e){let t="data-author-content";return e.hasAttribute(t)||e.setAttribute(t,e.textContent),e.getAttribute(t)}function AGe(e){Array.from(e.container.querySelectorAll("rgn")).forEach(n=>{let o=$0e(n);o&&(n.textContent=o)})}function kGe(e){Array.from(e.container.querySelectorAll("pre > code")).forEach(n=>{let o=$0e(n);if(!o||n.firstElementChild)return;let r=/([^<]*)<\/rgn>/gi;n.textContent=o.replace(r,"$1")})}function IGe(){let t={iPhone:"ios",iPad:"ios",iPod:"ios",Macintosh:"macos",MacIntel:"macos",MacPPC:"macos",Mac68K:"macos",Win32:"windows",Win64:"windows",Windows:"windows",WinCE:"windows"}[navigator.platform];return t!==void 0?t:/Android/.test(navigator.userAgent)?"android":/Linux/.test(navigator.platform)?"linux":null}function JS(e){return/^(?:android|ios|linux|macos|windows)$/.test(e)}var PGe=LGe();function LGe(){let e=!1,t=navigator.userAgent||navigator.vendor,n=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i,o=/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i;return(n.test(t)||o.test(t.substr(0,4)))&&(e=!0),e}var XS=IGe(),N0e="preferred-platform";function RGe(){let e=J.getItem(N0e);return e!==null&&JS(e)?e:null}var l1=RGe();function c1(e){J.setItem(N0e,e)}var o5=["button-primary","is-selected"],U0e=["previous-versions","archive"],MGe=({location:e,allowedPaths:t})=>{let n=eM(e).pathname.split("/"),o=t.includes(n[2])?4:3;return n.slice(0,o).join("/")},r5=MGe({location:oe,allowedPaths:U0e});function s5(){let e=i5();if(!e.length)return Promise.resolve();let t={get(n){return J.getItem(`zone-pivot${r5}/${n}`)},set(n,o){J.setItem(`zone-pivot${r5}/${n}`,o)}};return Promise.all([OGe(),Te]).then(([n])=>{let o=document.querySelector("[data-main-column] .top-alert")??document.querySelector("[data-main-column] .page-metadata-container")??document.querySelector("[data-main-column] .page-metadata"),r=document.querySelector('[data-id="ai-summary"]'),s=[o,r].filter(a=>a!==null);if(s.length===0)return;let i=s.reduce((a,l)=>a.compareDocumentPosition(l)&Node.DOCUMENT_POSITION_FOLLOWING?l:a);NGe(i,e,n,t)})}function i5(){return(k("zone_pivot_groups")||"").split(",").map(e=>e.trim()).filter(e=>e.length)}function DGe(e){document.querySelectorAll(`[data-pivot]${e.map(n=>`:not([data-pivot~='${n}'])`).join("")}`).forEach(n=>{Array.from(n.querySelectorAll("[id]")).forEach(r=>O0e(r))})}var $Ge=e=>{e.forEach(t=>{document.querySelectorAll(`[data-pivot~='${t}'] [data-id]`).forEach(s=>{s.id=s.getAttribute("data-id"),s.removeAttribute("data-id")});let o=Array.from(document.querySelectorAll(`[data-pivot~='${t}'] [id]`)).map(s=>s.id);document.querySelectorAll(`[data-pivot]:not([data-pivot~='${t}']) [id]`).forEach(s=>{o.includes(s.id)&&O0e(s)})})};function O0e(e){e.setAttribute("data-id",e.id),e.removeAttribute("id")}function NGe(e,t,n,o){let r=me().pivots,s=r?r.split(",").map(f=>f.trim().toLowerCase()):[],i=UGe(n,t,s,o,l1||XS),a=document.createElement("style");document.head.appendChild(a),F0e(a,i);let l=t.map(f=>n.find(_=>_.id===f)).filter(f=>f!==void 0);if(l.length===0)return;let c=FGe(e,l,i),u=Array.from(c.querySelectorAll('input[type="radio"]')).map(f=>({input:f,button:f.closest(".button")})),p=()=>{F0e(a,u.filter(f=>f.input.checked).map(f=>f.input.value)),u.forEach(({input:f,button:_})=>{f.checked?(_.classList.add(...o5),_.querySelector(".icon").classList.remove("is-hidden")):(_.classList.remove(...o5),_.querySelector(".icon").classList.add("is-hidden"))})},m=()=>u.forEach(({input:f,button:_})=>{let h=f.matches(":focus-visible")?"add":"remove";_.classList[h]("is-focused")}),g=f=>{let{name:_,value:h}=f.target;o.set(_,h),JS(h)&&c1(h)};Ye(c,"change",p),Ye(c,"blur",m,!0),Ye(c,"focus",m,!0),Ye(c,"change",g),du(()=>a.remove())}function F0e(e,t){e.textContent=` [data-pivot]${t.map(n=>`:not([data-pivot~='${n}'])`).join("")} { display: none !important; }`,DGe(t),$Ge(t),MS(),Zt(),en({pivots:t.join()},"replaceState")}function FGe(e,t,n){let{userDir:o,userLocale:r}=b.data;return e.insertAdjacentHTML("afterend",`
    ${t.map(s=>`
    ${s.prompt}
    ${s.pivots.map(i=>` `).join(` `)}
    `).join(` `)}
    `),e.nextElementSibling}function UGe(e,t,n,o,r){let s=[];for(let i of t){let a=e.find(f=>f.id===i);if(!a)continue;let l=o.get(i),c=a.pivots,u,p,m,g;for(let f of c)g||(g=f.id),!u&&n.indexOf(f.id)!==-1&&(u=f.id),!p&&f.id===l&&(p=f.id),!m&&f.id===r&&(m=f.id);s.push(u||p||m||g)}return s}function OGe(){let e=qGe();return R(e,{credentials:"include"}).then(t=>t.json()).then(t=>t.groups)}function qGe(){let{branch:e}=me(),t=k("zone_pivot_group_filename")||"zone-pivot-groups.json",n=e?"?"+V({branch:e}):"",o=["nb-no"],r=r5,s=r.split("/")[1],i=o.includes(s);i&&(r=r.replace(s,"en-us"));let a=`${r}/${t}${n}`,l=k("zone_pivot_groups_path");l&&(l=T6(l));let c=l&&l.length>1,u=l&&l.startsWith("/"),p=U0e.filter(f=>oe.pathname.includes(`/${f}/`)),m=p.length>0?`/${p[0]}`:"",g=`/${i?"en-us":s}${m??""}${u?"":"/"}${l}`;return c?g:a}var HGe=["azure.microsoft.com/pricing/purchase-options/azure-account","azure.microsoft.com/free"];function ZS(e){try{let t=new URL(e),n=t.hostname+mr(t.pathname);return HGe.some(o=>n.includes(o))}catch{return!1}}function u1(e,t){try{let n=new URL(e),o=n.searchParams.get("cid");if(o===null||o==="")return n.searchParams.set("cid",t?`msft_learn_${t}`:"msft_learn"),n.toString();if(o.includes("msft_learn")&&t&&!o.endsWith(`_${t}`))return n.searchParams.set("cid",`${o}_${t}`),n.toString()}catch{}return e}function q0e(e,t=k("platform_id")){let n=Array.from(e.querySelectorAll("a[href]")).filter(o=>{let r=o.getAttribute("href");return r&&ZS(r)});for(let o of n){let r=o.getAttribute("href");!r||!ZS(r)||o.setAttribute("href",u1(r,t))}}function H0e(e,t){let n=Array.from(e.querySelectorAll('iframe[src^="https://learn-video.azurefd.net/"], iframe[src^="https://channel9.msdn.com/"], iframe[src*="/video-embed.html?"], iframe[src*="/video-embed-one-stream.html?"]')),o;try{o=mr(new URL(t.href)?.pathname)}catch{return[]}for(let r of n){let s;try{s=new URL(r.src)}catch{continue}s.searchParams.set("locale",b.data.userLocale),s.searchParams.set("embedUrl",o),r.src=s.toString(),r.title||(r.title=bm)}return n??[]}function B0e(){if(i5().length)return;let t=Array.from(document.querySelectorAll("h1, h2, h3, h4, h5, h6")),n=[],o=[];t.map(r=>n.includes(r.id)?o.push(r):n.push(r.id)),o.forEach(r=>{r.removeAttribute("id")})}M();var z0e="h1,h2,h3,h4,h5,h6",p1=e=>{e.forEach(t=>{let n=t.firstElementChild;t.clientWidth{let n=!1;return(...o)=>{n||(n=!0,se.requestAnimationFrame(()=>{e.apply(t,o),n=!1}))}},d1={definitions:["margin-bottom-sm"],nameValue:["table-stacked-mobile"],dataMatrix:["table-complex","margin-top-sm"],attributeList:["table-complex","width-auto"]};function BGe(e){let t=e.classList;if(t.contains("definitions")){e.classList.add(...d1.definitions);let n=Array.from(e.querySelectorAll("th"));for(let o=0;o{let o;e.parentElement.classList.contains("table-wrapper")?o=e.parentElement.previousElementSibling:o=e.previousElementSibling;let r=0;for(;o&&r<5;){if(o.matches(z0e))return Vh(o).trim();if(o.matches(".heading-wrapper")){let s=o.querySelector(z0e);if(s)return Vh(s).trim()}o=o.previousElementSibling,r++}return Fge.replace("{index}",(t+1).toString())})()}function V0e(e){Array.from(e.querySelectorAll(".content table")).forEach(n=>{let o=Array.from(n.querySelectorAll("thead tr > th")),r=n.querySelector("tbody");if(!r)return;let s=Array.from(r.children);if(GGe(o,s)){for(let i of s){let l=i.firstElementChild;l.firstElementChild.nodeName==="SPAN"?(l.firstElementChild.textContent=l.firstElementChild.textContent,l.lastElementChild.firstElementChild.textContent=l.lastElementChild.firstElementChild.textContent):l.innerHTML=l.firstElementChild.innerHTML;let c=A.createElement("th");c.setAttribute("scope","row"),c.innerHTML=l.innerHTML,l.parentElement.replaceChild(c,l)}o.forEach(i=>{if(i.textContent==="")return;i.setAttribute("scope","col");let a=Array.from(n.querySelectorAll("thead tr > th"));if(!a.length||a[0].innerHTML!=="")return;Array.from(n.querySelectorAll("tbody tr > td:first-child > strong")).forEach(c=>{let u=c.parentElement.parentElement.innerHTML.replace("",'').replace("","");c.parentElement.parentElement.innerHTML=u}),a.forEach(c=>{c.innerHTML!==""&&c.setAttribute("scope","col")})})}})}function GGe(e,t){if(!(e.length&&e[0].firstElementChild===null&&e[0].textContent===""))return!1;for(let o of t){let s=o.firstElementChild,i=s.firstElementChild,a=s.lastElementChild;if(s.nodeName!=="TD"||!i||!(s.querySelector(".sxs-lookup")?VGe(i):i===a&&s.textContent.trim()===i.textContent.trim()&&i.nodeName==="STRONG"))return!1}return!0}function VGe(e){if(e.nodeName==="SPAN"){let t=e.firstElementChild;return e.hasAttribute("data-ttu-id")&&t&&t.nodeName==="STRONG"&&e.textContent.trim()===t.textContent.trim()&&!t.firstElementChild}return!1}function QGe(e){let t=A.createElement("div");if(t.classList.add("buttons","buttons-right","margin-bottom-none","margin-top-sm"),e.previousElementSibling&&e.previousElementSibling.classList.contains("heading-wrapper")){let c=e.previousElementSibling.querySelector("[data-moniker]");if(c){let u=c.getAttribute("data-moniker");u&&t.setAttribute("data-moniker",u)}}let n=d` `,o=d` `,r=c=>d` `,s,i,a;function l(){if(!s||!i){s=A.createElement("div"),a=e.cloneNode(!0);let c=r(a);y(c,s),i=new ge(s),a&&Ye(se,"resize",G0e(()=>p1([a])),{passive:!0})}i.show(),p1([a])}return y(n,t),t}function a5(e=!1,t){let n=Array.from((t??A).querySelectorAll(".content table"));if(!n.length)return;let o=n.map((s,i)=>{if(i<50&&!s.matches("[aria-label], [aria-labelledby]")&&!s.querySelector("caption")){let l=zGe(s,i);s.setAttribute("aria-label",l)}s.classList.add("table"),(b.data.pageTemplate==="Conceptual"||b.data.pageTemplate==="Reference")&&s.classList.add("table-sm","margin-top-none"),s.classList.length!==1&&BGe(s);let a;if(s.classList.contains("nameValue"))return null;if(s.parentElement.classList.contains("table-wrapper"))a=s.parentElement;else if(a=A.createElement("div"),a.classList.add("table-wrapper","inner-focus"),a.tabIndex=0,a.setAttribute("role","group"),a.setAttribute("aria-label",LF),s.parentElement.insertBefore(a,s),a.appendChild(s),!e){let l=QGe(a);a.parentElement&&a.parentElement.insertBefore(l,a)}return a}).filter(s=>s!==null),r=G0e(()=>p1(o));Ye(se,"resize",r,{passive:!0}),Ye(se,"content-update",r,{passive:!0}),p1(o)}function YGe(e){return Array.from(e.querySelectorAll('iframe[src^="https://www.microsoft.com"][src*="/videoplayer/"]'))}function jGe(e,t,n){let o=t.split("/").pop(),r=new URL(`http://approjects.co.za/?big=${e}/videoplayer/embed/${o}`);return n&&r.searchParams.set("postJsllMsg","true"),e!=="en-us"&&r.searchParams.set("autoCaptions",e),r.href}function WGe(e,t=window){t.addEventListener("message",n=>{if(n.origin!=="https://www.microsoft.com"||typeof n.data!="string")return;let o;try{o=JSON.parse(n.data)}catch{}!o||typeof o.eventName!="string"||o.eventName.toLowerCase()!=="postjsllmessage"||e(o.data)})}function Q0e(){let t=YGe(document.body);for(let n of t){let o=jGe(b.data.userLocale,n.src,!0);n.src!==o&&(n.src=o),n.title=n.title||bm}t.length&&WGe(Ee)}function l5(){KGe(),JGe(),XGe(document.body),B0e(),V0e(document.body),Q0e(),H0e(document.body,oe),q0e(document.body)}function KGe(){let e={TIP:{class:"is-success",docon:"lightbulb",title:xhe},NOTE:{class:"is-info",docon:"status-error-outline",title:Uce},IMPORTANT:{class:"is-primary",docon:"status-info-outline",title:Kae},WARNING:{class:"is-warning",docon:"status-warning-outline",title:lbe},CAUTION:{class:"is-danger",docon:"status-failure-outline",title:EY}};Array.from(document.querySelectorAll(".TIP, .NOTE, .IMPORTANT, .WARNING, .CAUTION")).forEach(n=>{let o=/TIP|NOTE|IMPORTANT|WARNING|CAUTION/.exec(n.className)[0];n.className=`alert ${e[o].class}`;let r=n.firstElementChild;!r||!(r instanceof HTMLParagraphElement)||(r.classList.add("alert-title"),r.textContent=e[o].title,r.insertAdjacentHTML("afterbegin",` `))})}function JGe(){Array.from(document.querySelectorAll(".content div.button a, .content div.step-by-step a, .content div.nextstepaction a")).forEach(e=>{e.classList.add("button","button-primary","button-filled","has-text-wrap");let t=e.closest("div.button, .step-by-step");t&&(t.className="")})}function XGe(e){Array.from(e.querySelectorAll(".break-text > .xref")).forEach(n=>{if(n.firstElementChild!==null)return;let r=n.parentElement.classList.contains("dots-only")?2:3,s=jx(n.textContent.replace(//g,">"),r);n.innerHTML=s})}function j0e(){document.querySelectorAll("button[data-copy-markdown]").forEach(e=>{e.addEventListener("click",()=>ZGe(e))})}async function ZGe(e){if(e.dataset.copyState!=="idle")return;eC(e,"loading");let t=new URL(oe.href);t.searchParams.set("accept","text/markdown");try{let n=await fetch(t.toString());if(!n.ok)throw new Error(`Failed to fetch markdown: ${n.status}`);let o=await n.text();await pM(o,e)?(eC(e,"success"),un(OA,"assertive",1e3),setTimeout(()=>eC(e,"idle"),1e3)):eC(e,"idle")}catch{eC(e,"idle")}}function eC(e,t){e.dataset.copyState=t,e.querySelectorAll("[data-show-when]").forEach(n=>{n.hidden=n.dataset.showWhen!==t})}function W0e(){let e=L.reviewFeatures===!0&&(L.accessLevel==="local"||L.supportLevel==="development"&&L.accessLevel==="online"||Ot),t=document.querySelector("html");e&&t&&t.classList.add("show-deprecation-warning")}function K0e(){window.addEventListener("click",({target:e})=>{let t=e instanceof Element&&e.closest("[data-dismiss]");if(!t)return;let n=t.closest("[data-dismissable]");n&&(n.classList.contains("notification")||n.classList.contains("banner")||m1(n))},{passive:!0})}async function m1(e){e.getAttribute("data-dismissable")==="disappearing"&&(e.classList.add("disappearing"),await new Promise(t=>setTimeout(t,500))),e.classList.remove("disappearing"),e.remove(),Zt()}function J0e(e){e.addEventListener("click",t=>{if(!(t.target instanceof Element))return;let n=null;if(n=t.target.closest(".dropdown-trigger"),n||(n=t.target.shadowRoot?.activeElement?.closest(".dropdown-trigger")),!n)return;t.preventDefault();let o=n.parentElement,r=n.getAttribute("aria-expanded")!=="true";n.setAttribute("aria-expanded",r.toString());let s;if(r&&o){o.classList.contains("has-centered-menu")||eVe(o);let i=u=>{u.target instanceof Element&&(!o.contains(u.target)||u.type==="click"&&u.target.closest(".dropdown-menu-close"))&&(s(),u.target.classList.contains("dropdown-menu-close")&&n&&n.focus())},a=u=>{if(u instanceof KeyboardEvent&&u.keyCode===et.escape){u.stopImmediatePropagation();let m=Array.from(A.querySelectorAll('.dropdown-trigger[aria-expanded="true"]')).pop();m&&(m.setAttribute("aria-expanded","false"),m.focus())}},l=async()=>{A.activeElement?.nodeName?.toLowerCase()==="iframe"&&s()};s=()=>{e.removeEventListener("focus",i),e.removeEventListener("click",i),e.removeEventListener("touchstart",i),e.removeEventListener("keydown",a),se.removeEventListener("blur",l),n&&n.setAttribute("aria-expanded","false")},e.addEventListener("focus",i,!0),e.addEventListener("click",i),e.addEventListener("touchstart",i),e.addEventListener("keydown",a),e.addEventListener("collapse-dropdown",u=>{u.stopPropagation(),s()}),se.addEventListener("blur",l)}})}function eVe(e){let t=f=>se.getComputedStyle(f).overflowX,n=e.parentElement;for(;n&&n.nodeName!=="BODY"&&t(n)!=="hidden";)n=n.parentElement;if(n===null)return;let o=e.querySelector(".dropdown-trigger"),r=e.querySelector(".dropdown-menu"),s=e.closest(".dropdown-menu")!==null,i=r.classList.contains("is-vertically-scrollable");r.style.left="",r.style.right="",r.style.maxHeight="";let{left:a,right:l}=n.getBoundingClientRect(),{left:c,right:u,top:p,bottom:m}=o.getBoundingClientRect(),g=r.getBoundingClientRect().width;s?(r.style.top="-1px",b.data.userDir==="ltr"?u+g<=l?(r.style.right="0",r.style.transform="translateX(100%)"):(r.style.left="0",r.style.transform="translateX(-100%)"):u-g>=a?(r.style.left="0",r.style.transform="translateX(-100%)"):(r.style.right="0",r.style.transform="translateX(100%)"),i&&(r.style.maxHeight=`${se.innerHeight-p-8}px`)):(b.data.userDir==="ltr"?c+g<=l?r.style.left="0":r.style.right="0":u-g>=a?r.style.right="0":r.style.left="0",i&&(r.style.maxHeight=`${se.innerHeight-m-8}px`))}ot();var Z0e=y2(d5(),1);var wu=class extends Error{constructor(n,o,r){super(n,{cause:r.cause});on(this,"name");on(this,"status");on(this,"request");on(this,"response");this.name="HttpError",this.status=Number.parseInt(o),Number.isNaN(this.status)&&(this.status=0);"response"in r&&(this.response=r.response);let s=Object.assign({},r.request);r.request.headers.authorization&&(s.headers=Object.assign({},r.request.headers,{authorization:r.request.headers.authorization.replace(/(?=400&&!e.doNotRetry.includes(n.status)){let r=o.request.retries!=null?o.request.retries:e.retries,s=Math.pow((o.request.retryCount||0)+1,2);throw t.retry.retryRequest(n,r,s)}throw n}async function nVe(e,t,n,o){let r=new Z0e.default;return r.on("failed",function(s,i){let a=~~s.request.request.retries,l=~~s.request.request.retryAfter;if(o.request.retryCount=i.retryCount+1,a>i.retryCount)return l*e.retryAfterBaseValue}),r.schedule(oVe.bind(null,e,t,n),o)}async function oVe(e,t,n,o){let r=await n(n,o);if(r.data&&r.data.errors&&r.data.errors.length>0&&/Something went wrong while executing your query/.test(r.data.errors[0].message)){let s=new wu(r.data.errors[0].message,500,{request:o,response:r});return X0e(e,t,s,o)}return r}function p5(e,t){let n=Object.assign({enabled:!0,retryAfterBaseValue:1e3,doNotRetry:[400,401,403,404,410,422,451],retries:3},t.retry);return n.enabled&&(e.hook.error("request",X0e.bind(null,n,e)),e.hook.wrap("request",nVe.bind(null,n,e))),{retry:{retryRequest:(o,r,s)=>(o.request.request=Object.assign({},o.request.request,{retries:r,retryAfter:s}),o)}}}p5.VERSION=tVe;var tke=y2(d5(),1),rVe="0.0.0-development",m5=()=>Promise.resolve();function sVe(e,t,n){return e.retryLimiter.schedule(iVe,e,t,n)}async function iVe(e,t,n){let{pathname:o}=new URL(n.url,"http://github.test"),r=aVe(n.method,o),s=!r&&n.method!=="GET"&&n.method!=="HEAD",i=n.method==="GET"&&o.startsWith("/search/"),a=o.startsWith("/graphql"),c=~~t.retryCount>0?{priority:0,weight:0}:{};e.clustering&&(c.expiration=1e3*60),(s||a)&&await e.write.key(e.id).schedule(c,m5),s&&e.triggersNotification(o)&&await e.notifications.key(e.id).schedule(c,m5),i&&await e.search.key(e.id).schedule(c,m5);let u=(r?e.auth:e.global).key(e.id).schedule(c,t,n);if(a){let p=await u;if(p.data.errors!=null&&p.data.errors.some(m=>m.type==="RATE_LIMITED"))throw Object.assign(new Error("GraphQL Rate Limit Exceeded"),{response:p,data:p.data})}return u}function aVe(e,t){return e==="PATCH"&&/^\/applications\/[^/]+\/token\/scoped$/.test(t)||e==="POST"&&(/^\/applications\/[^/]+\/token$/.test(t)||/^\/app\/installations\/[^/]+\/access_tokens$/.test(t)||t==="/login/oauth/access_token")}var lVe=["/orgs/{org}/invitations","/orgs/{org}/invitations/{invitation_id}","/orgs/{org}/teams/{team_slug}/discussions","/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments","/repos/{owner}/{repo}/collaborators/{username}","/repos/{owner}/{repo}/commits/{commit_sha}/comments","/repos/{owner}/{repo}/issues","/repos/{owner}/{repo}/issues/{issue_number}/comments","/repos/{owner}/{repo}/issues/{issue_number}/sub_issue","/repos/{owner}/{repo}/issues/{issue_number}/sub_issues/priority","/repos/{owner}/{repo}/pulls","/repos/{owner}/{repo}/pulls/{pull_number}/comments","/repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies","/repos/{owner}/{repo}/pulls/{pull_number}/merge","/repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers","/repos/{owner}/{repo}/pulls/{pull_number}/reviews","/repos/{owner}/{repo}/releases","/teams/{team_id}/discussions","/teams/{team_id}/discussions/{discussion_number}/comments"];function cVe(e){let n=`^(?:${e.map(o=>o.split("/").map(r=>r.startsWith("{")?"(?:.+?)":r).join("/")).map(o=>`(?:${o})`).join("|")})[^/]*$`;return new RegExp(n,"i")}var eke=cVe(lVe),nke=eke.test.bind(eke),hf={},uVe=function(e,t){hf.global=new e.Group({id:"octokit-global",maxConcurrent:10,...t}),hf.auth=new e.Group({id:"octokit-auth",maxConcurrent:1,...t}),hf.search=new e.Group({id:"octokit-search",maxConcurrent:1,minTime:2e3,...t}),hf.write=new e.Group({id:"octokit-write",maxConcurrent:1,minTime:1e3,...t}),hf.notifications=new e.Group({id:"octokit-notifications",maxConcurrent:1,minTime:3e3,...t})};function g1(e,t){let{enabled:n=!0,Bottleneck:o=tke.default,id:r="no-id",timeout:s=1e3*60*2,connection:i}=t.throttle||{};if(!n)return{};let a={timeout:s};typeof i<"u"&&(a.connection=i),hf.global==null&&uVe(o,a);let l=Object.assign({clustering:i!=null,triggersNotification:nke,fallbackSecondaryRateRetryAfter:60,retryAfterBaseValue:1e3,retryLimiter:new o,id:r,...hf},t.throttle);if(typeof l.onSecondaryRateLimit!="function"||typeof l.onRateLimit!="function")throw new Error(`octokit/plugin-throttling error: You must pass the onSecondaryRateLimit and onRateLimit error handlers. See https://octokit.github.io/rest.js/#throttling const octokit = new Octokit({ throttle: { onSecondaryRateLimit: (retryAfter, options) => {/* ... */}, onRateLimit: (retryAfter, options) => {/* ... */} } }) `);let c={},u=new o.Events(c);return c.on("secondary-limit",l.onSecondaryRateLimit),c.on("rate-limit",l.onRateLimit),c.on("error",p=>e.log.warn("Error in throttling-plugin limit handler",p)),l.retryLimiter.on("failed",async function(p,m){let[g,f,_]=m.args,{pathname:h}=new URL(_.url,"http://github.test");if(!(h.startsWith("/graphql")&&p.status!==401||p.status===403||p.status===429))return;let x=~~f.retryCount;f.retryCount=x,_.request.retryCount=x;let{wantRetry:w,retryAfter:I=0}=await async function(){if(/\bsecondary rate\b/i.test(p.message)){let E=Number(p.response.headers["retry-after"])||g.fallbackSecondaryRateRetryAfter;return{wantRetry:await u.trigger("secondary-limit",E,_,e,x),retryAfter:E}}if(p.response.headers!=null&&p.response.headers["x-ratelimit-remaining"]==="0"||(p.response.data?.errors??[]).some(E=>E.type==="RATE_LIMITED")){let E=new Date(~~p.response.headers["x-ratelimit-reset"]*1e3).getTime(),Q=Math.max(Math.ceil((E-Date.now())/1e3)+1,0);return{wantRetry:await u.trigger("rate-limit",Q,_,e,x),retryAfter:Q}}return{}}();if(w)return f.retryCount++,I*g.retryAfterBaseValue}),e.hook.wrap("request",sVe.bind(null,l)),{}}g1.VERSION=rVe;g1.triggersNotification=nke;function xp(){return typeof navigator=="object"&&"userAgent"in navigator?navigator.userAgent:typeof process=="object"&&process.version!==void 0?`Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`:""}function f1(e,t,n,o){if(typeof n!="function")throw new Error("method for before hook must be a function");return o||(o={}),Array.isArray(t)?t.reverse().reduce((r,s)=>f1.bind(null,e,s,r,o),n)():Promise.resolve().then(()=>e.registry[t]?e.registry[t].reduce((r,s)=>s.hook.bind(null,r,o),n)():n(o))}function oke(e,t,n,o){let r=o;e.registry[n]||(e.registry[n]=[]),t==="before"&&(o=(s,i)=>Promise.resolve().then(r.bind(null,i)).then(s.bind(null,i))),t==="after"&&(o=(s,i)=>{let a;return Promise.resolve().then(s.bind(null,i)).then(l=>(a=l,r(a,i))).then(()=>a)}),t==="error"&&(o=(s,i)=>Promise.resolve().then(s.bind(null,i)).catch(a=>r(a,i))),e.registry[n].push({hook:o,orig:r})}function rke(e,t,n){if(!e.registry[t])return;let o=e.registry[t].map(r=>r.orig).indexOf(n);o!==-1&&e.registry[t].splice(o,1)}var ske=Function.bind,ike=ske.bind(ske);function ake(e,t,n){let o=ike(rke,null).apply(null,n?[t,n]:[t]);e.api={remove:o},e.remove=o,["before","error","after","wrap"].forEach(r=>{let s=n?[t,r,n]:[t,r];e[r]=e.api[r]=ike(oke,null).apply(null,s)})}function dVe(){let e=Symbol("Singular"),t={registry:{}},n=f1.bind(null,t,e);return ake(n,t,e),n}function pVe(){let e={registry:{}},t=f1.bind(null,e);return ake(t,e),t}var lke={Singular:dVe,Collection:pVe};var mVe="0.0.0-development",gVe=`octokit-endpoint.js/${mVe} ${xp()}`,fVe={method:"GET",baseUrl:"https://api.github.com",headers:{accept:"application/vnd.github.v3+json","user-agent":gVe},mediaType:{format:""}};function hVe(e){return e?Object.keys(e).reduce((t,n)=>(t[n.toLowerCase()]=e[n],t),{}):{}}function bVe(e){if(typeof e!="object"||e===null||Object.prototype.toString.call(e)!=="[object Object]")return!1;let t=Object.getPrototypeOf(e);if(t===null)return!0;let n=Object.prototype.hasOwnProperty.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&Function.prototype.call(n)===Function.prototype.call(e)}function dke(e,t){let n=Object.assign({},e);return Object.keys(t).forEach(o=>{bVe(t[o])?o in e?n[o]=dke(e[o],t[o]):Object.assign(n,{[o]:t[o]}):Object.assign(n,{[o]:t[o]})}),n}function cke(e){for(let t in e)e[t]===void 0&&delete e[t];return e}function f5(e,t,n){if(typeof t=="string"){let[r,s]=t.split(" ");n=Object.assign(s?{method:r,url:s}:{url:r},n)}else n=Object.assign({},t);n.headers=hVe(n.headers),cke(n),cke(n.headers);let o=dke(e||{},n);return n.url==="/graphql"&&(e&&e.mediaType.previews?.length&&(o.mediaType.previews=e.mediaType.previews.filter(r=>!o.mediaType.previews.includes(r)).concat(o.mediaType.previews)),o.mediaType.previews=(o.mediaType.previews||[]).map(r=>r.replace(/-preview/,""))),o}function _Ve(e,t){let n=/\?/.test(e)?"&":"?",o=Object.keys(t);return o.length===0?e:e+n+o.map(r=>r==="q"?"q="+t.q.split("+").map(encodeURIComponent).join("+"):`${r}=${encodeURIComponent(t[r])}`).join("&")}var yVe=/\{[^{}}]+\}/g;function vVe(e){return e.replace(/(?:^\W+)|(?:(?n.concat(o),[]):[]}function uke(e,t){let n={__proto__:null};for(let o of Object.keys(e))t.indexOf(o)===-1&&(n[o]=e[o]);return n}function pke(e){return e.split(/(%[0-9A-Fa-f]{2})/g).map(function(t){return/%[0-9A-Fa-f]/.test(t)||(t=encodeURI(t).replace(/%5B/g,"[").replace(/%5D/g,"]")),t}).join("")}function Ry(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}function tC(e,t,n){return t=e==="+"||e==="#"?pke(t):Ry(t),n?Ry(n)+"="+t:t}function Ly(e){return e!=null}function g5(e){return e===";"||e==="&"||e==="?"}function TVe(e,t,n,o){var r=e[n],s=[];if(Ly(r)&&r!=="")if(typeof r=="string"||typeof r=="number"||typeof r=="bigint"||typeof r=="boolean")r=r.toString(),o&&o!=="*"&&(r=r.substring(0,parseInt(o,10))),s.push(tC(t,r,g5(t)?n:""));else if(o==="*")Array.isArray(r)?r.filter(Ly).forEach(function(i){s.push(tC(t,i,g5(t)?n:""))}):Object.keys(r).forEach(function(i){Ly(r[i])&&s.push(tC(t,r[i],i))});else{let i=[];Array.isArray(r)?r.filter(Ly).forEach(function(a){i.push(tC(t,a))}):Object.keys(r).forEach(function(a){Ly(r[a])&&(i.push(Ry(a)),i.push(tC(t,r[a].toString())))}),g5(t)?s.push(Ry(n)+"="+i.join(",")):i.length!==0&&s.push(i.join(","))}else t===";"?Ly(r)&&s.push(Ry(n)):r===""&&(t==="&"||t==="?")?s.push(Ry(n)+"="):r===""&&s.push("");return s}function wVe(e){return{expand:SVe.bind(null,e)}}function SVe(e,t){var n=["+","#",".","/",";","?","&"];return e=e.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g,function(o,r,s){if(r){let a="",l=[];if(n.indexOf(r.charAt(0))!==-1&&(a=r.charAt(0),r=r.substr(1)),r.split(/,/g).forEach(function(c){var u=/([^:\*]*)(?::(\d+)|(\*))?/.exec(c);l.push(TVe(t,a,u[1],u[2]||u[3]))}),a&&a!=="+"){var i=",";return a==="?"?i="&":a!=="#"&&(i=a),(l.length!==0?a:"")+l.join(i)}else return l.join(",")}else return pke(s)}),e==="/"?e:e.replace(/\/$/,"")}function mke(e){let t=e.method.toUpperCase(),n=(e.url||"/").replace(/:([a-z]\w+)/g,"{$1}"),o=Object.assign({},e.headers),r,s=uke(e,["method","baseUrl","url","headers","request","mediaType"]),i=xVe(n);n=wVe(n).expand(s),/^http/.test(n)||(n=e.baseUrl+n);let a=Object.keys(e).filter(u=>i.includes(u)).concat("baseUrl"),l=uke(s,a);if(!/application\/octet-stream/i.test(o.accept)&&(e.mediaType.format&&(o.accept=o.accept.split(/,/).map(u=>u.replace(/application\/vnd(\.\w+)(\.v3)?(\.\w+)?(\+json)?$/,`application/vnd$1$2.${e.mediaType.format}`)).join(",")),n.endsWith("/graphql")&&e.mediaType.previews?.length)){let u=o.accept.match(/(?{let m=e.mediaType.format?`.${e.mediaType.format}`:"+json";return`application/vnd.github.${p}-preview${m}`}).join(",")}return["GET","HEAD"].includes(t)?n=_Ve(n,l):"data"in l?r=l.data:Object.keys(l).length&&(r=l),!o["content-type"]&&typeof r<"u"&&(o["content-type"]="applicationhttps://www.microsoft.com/json; charset=utf-8"),["PATCH","PUT"].includes(t)&&typeof r>"u"&&(r=""),Object.assign({method:t,url:n,headers:o},typeof r<"u"?{body:r}:null,e.request?{request:e.request}:null)}function CVe(e,t,n){return mke(f5(e,t,n))}function gke(e,t){let n=f5(e,t),o=CVe.bind(null,n);return Object.assign(o,{DEFAULTS:n,defaults:gke.bind(null,n),merge:f5.bind(null,n),parse:mke})}var fke=gke(null,fVe);var Lke=y2(Tke(),1);var $Ve=/^-?\d+$/,Cke=/^-?\d+n+$/,y5=JSON.stringify,wke=JSON.parse,NVe=/^-?\d+n$/,FVe=/([\[:])?"(-?\d+)n"($|([\\n]|\s)*(\s|[\\n])*[,\}\]])/g,UVe=/([\[:])?("-?\d+n+)n("$|"([\\n]|\s)*(\s|[\\n])*[,\}\]])/g,Eke=(e,t,n)=>"rawJSON"in JSON?y5(e,(i,a)=>typeof a=="bigint"?JSON.rawJSON(a.toString()):typeof t=="function"?t(i,a):(Array.isArray(t)&&t.includes(i),a),n):e?y5(e,(i,a)=>typeof a=="string"&&Cke.test(a)||typeof a=="bigint"?a.toString()+"n":typeof t=="function"?t(i,a):(Array.isArray(t)&&t.includes(i),a),n).replace(FVe,"$1$2$3").replace(UVe,"$1$2$3"):y5(e,t,n),b1=new Map,OVe=()=>{let e=JSON.parse.toString();if(b1.has(e))return b1.get(e);try{let t=JSON.parse("1",(n,o,r)=>!!r?.source&&r.source==="1");return b1.set(e,t),t}catch{return b1.set(e,!1),!1}},qVe=(e,t,n,o)=>typeof t=="string"&&NVe.test(t)?BigInt(t.slice(0,-1)):typeof t=="string"&&Cke.test(t)?t.slice(0,-1):typeof o!="function"?t:o(e,t,n),HVe=(e,t)=>JSON.parse(e,(n,o,r)=>{let s=typeof o=="number"&&(o>Number.MAX_SAFE_INTEGER||o{if(!e)return wke(e,t);if(OVe())return HVe(e,t);let n=e.replace(BVe,(o,r,s,i)=>{let a=o[0]==='"';if(a&&zVe.test(o))return o.substring(0,o.length-1)+'n"';let c=s||i,u=r&&(r.lengthqVe(o,r,s,t))};var GVe="10.0.9",VVe={headers:{"user-agent":`octokit-request.js/${GVe} ${xp()}`}};function QVe(e){if(typeof e!="object"||e===null||Object.prototype.toString.call(e)!=="[object Object]")return!1;let t=Object.getPrototypeOf(e);if(t===null)return!0;let n=Object.prototype.hasOwnProperty.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&Function.prototype.call(n)===Function.prototype.call(e)}var Ike=()=>"";async function Pke(e){let t=e.request?.fetch||globalThis.fetch;if(!t)throw new Error("fetch is not set. Please pass a fetch implementation as new Octokit({ request: { fetch }}). Learn more at https://github.com/octokit/octokit.js/#fetch-missing");let n=e.request?.log||console,o=e.request?.parseSuccessResponseBody!==!1,r=QVe(e.body)||Array.isArray(e.body)?Eke(e.body):e.body,s=Object.fromEntries(Object.entries(e.headers).map(([p,m])=>[p,String(m)])),i;try{i=await t(e.url,{method:e.method,body:r,redirect:e.request?.redirect,headers:s,signal:e.request?.signal,...e.body&&{duplex:"half"}})}catch(p){let m="Unknown Error";if(p instanceof Error){if(p.name==="AbortError")throw p.status=500,p;m=p.message,p.name==="TypeError"&&"cause"in p&&(p.cause instanceof Error?m=p.cause.message:typeof p.cause=="string"&&(m=p.cause))}let g=new wu(m,500,{request:e});throw g.cause=p,g}let a=i.status,l=i.url,c={};for(let[p,m]of i.headers)c[p]=m;let u={url:l,status:a,headers:c,data:""};if("deprecation"in c){let p=c.link&&c.link.match(/<([^<>]+)>; rel="deprecation"/),m=p&&p.pop();n.warn(`[@octokit/request] "${e.method} ${e.url}" is deprecated. It is scheduled to be removed on ${c.sunset}${m?`. See ${m}`:""}`)}if(a===204||a===205)return u;if(e.method==="HEAD"){if(a<400)return u;throw new wu(i.statusText,a,{response:u,request:e})}if(a===304)throw u.data=await v5(i),new wu("Not modified",a,{response:u,request:e});if(a>=400)throw u.data=await v5(i),new wu(jVe(u.data),a,{response:u,request:e});return u.data=o?await v5(i):i.body,u}async function v5(e){let t=e.headers.get("content-type");if(!t)return e.text().catch(Ike);let n=(0,Lke.parse)(t);if(YVe(n)){let o="";try{return o=await e.text(),kke(o)}catch{return o}}else return n.type.startsWith("text/")||n.parameters.charset?.toLowerCase()==="utf-8"?e.text().catch(Ike):e.arrayBuffer().catch(()=>new ArrayBuffer(0))}function YVe(e){return e.type==="applicationhttps://www.microsoft.com/json"||e.type==="application/scim+json"}function jVe(e){if(typeof e=="string")return e;if(e instanceof ArrayBuffer)return"Unknown error";if("message"in e){let t="documentation_url"in e?` - ${e.documentation_url}`:"";return Array.isArray(e.errors)?`${e.message}: ${e.errors.map(n=>JSON.stringify(n)).join(", ")}${t}`:`${e.message}${t}`}return`Unknown error: ${JSON.stringify(e)}`}function x5(e,t){let n=e.defaults(t);return Object.assign(function(r,s){let i=n.merge(r,s);if(!i.request||!i.request.hook)return Pke(n.parse(i));let a=(l,c)=>Pke(n.parse(n.merge(l,c)));return Object.assign(a,{endpoint:n,defaults:x5.bind(null,n)}),i.request.hook(a,i)},{endpoint:n,defaults:x5.bind(null,n)})}var nC=x5(fke,VVe);var WVe="0.0.0-development";function KVe(e){return`Request failed due to following response errors: `+e.errors.map(t=>` - ${t.message}`).join(` `)}var JVe=class extends Error{constructor(t,n,o){super(KVe(o));on(this,"name","GraphqlResponseError");on(this,"errors");on(this,"data");this.request=t,this.headers=n,this.response=o,this.errors=o.errors,this.data=o.data,Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}},XVe=["method","baseUrl","url","headers","request","query","mediaType","operationName"],ZVe=["query","method","url"],Rke=/\/api\/v3\/?$/;function e7e(e,t,n){if(n){if(typeof t=="string"&&"query"in n)return Promise.reject(new Error('[@octokit/graphql] "query" cannot be used as variable name'));for(let i in n)if(ZVe.includes(i))return Promise.reject(new Error(`[@octokit/graphql] "${i}" cannot be used as variable name`))}let o=typeof t=="string"?Object.assign({query:t},n):t,r=Object.keys(o).reduce((i,a)=>XVe.includes(a)?(i[a]=o[a],i):(i.variables||(i.variables={}),i.variables[a]=o[a],i),{}),s=o.baseUrl||e.endpoint.DEFAULTS.baseUrl;return Rke.test(s)&&(r.url=s.replace(Rke,"/api/graphql")),e(r).then(i=>{if(i.data.errors){let a={};for(let l of Object.keys(i.headers))a[l]=i.headers[l];throw new JVe(r,a,i.data)}return i.data.data})}function T5(e,t){let n=e.defaults(t);return Object.assign((r,s)=>e7e(n,r,s),{defaults:T5.bind(null,n),endpoint:n.endpoint})}var i4t=T5(nC,{headers:{"user-agent":`octokit-graphql.js/${WVe} ${xp()}`},method:"POST",url:"/graphql"});function Mke(e){return T5(e,{method:"POST",url:"/graphql"})}var w5="(?:[a-zA-Z0-9_-]+)",Dke="\\.",$ke=new RegExp(`^${w5}${Dke}${w5}${Dke}${w5}$`),t7e=$ke.test.bind($ke);async function n7e(e){let t=t7e(e),n=e.startsWith("v1.")||e.startsWith("ghs_"),o=e.startsWith("ghu_");return{type:"token",token:e,tokenType:t?"app":n?"installation":o?"user-to-server":"oauth"}}function o7e(e){return e.split(/\./).length===3?`bearer ${e}`:`token ${e}`}async function r7e(e,t,n,o){let r=t.endpoint.merge(n,o);return r.headers.authorization=o7e(e),t(r)}var Nke=function(t){if(!t)throw new Error("[@octokit/auth-token] No token passed to createTokenAuth");if(typeof t!="string")throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string");return t=t.replace(/^(token|bearer) +/i,""),Object.assign(n7e.bind(null,t),{hook:r7e.bind(null,t)})};var S5="7.0.6";var Fke=()=>{},s7e=console.warn.bind(console),i7e=console.error.bind(console);function a7e(e={}){return typeof e.debug!="function"&&(e.debug=Fke),typeof e.info!="function"&&(e.info=Fke),typeof e.warn!="function"&&(e.warn=s7e),typeof e.error!="function"&&(e.error=i7e),e}var Uke=`octokit-core.js/${S5} ${xp()}`,My=class{constructor(t={}){on(this,"request");on(this,"graphql");on(this,"log");on(this,"hook");on(this,"auth");let n=new lke.Collection,o={baseUrl:nC.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},t.request,{hook:n.bind(null,"request")}),mediaType:{previews:[],format:""}};if(o.headers["user-agent"]=t.userAgent?`${t.userAgent} ${Uke}`:Uke,t.baseUrl&&(o.baseUrl=t.baseUrl),t.previews&&(o.mediaType.previews=t.previews),t.timeZone&&(o.headers["time-zone"]=t.timeZone),this.request=nC.defaults(o),this.graphql=Mke(this.request).defaults(o),this.log=a7e(t.log),this.hook=n,t.authStrategy){let{authStrategy:s,...i}=t,a=s(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:i},t.auth));n.wrap("request",a.hook),this.auth=a}else if(!t.auth)this.auth=async()=>({type:"unauthenticated"});else{let s=Nke(t.auth);n.wrap("request",s.hook),this.auth=s}let r=this.constructor;for(let s=0;s!n.includes(s)))),r}};on(My,"VERSION",S5),on(My,"plugins",[]);var Oke="6.0.0";function C5(e){e.hook.wrap("request",(t,n)=>{e.log.debug("request",n);let o=Date.now(),r=e.request.endpoint.parse(n),s=r.url.replace(n.baseUrl,"");return t(n).then(i=>{let a=i.headers["x-github-request-id"];return e.log.info(`${r.method} ${s} - ${i.status} with id ${a} in ${Date.now()-o}ms`),i}).catch(i=>{let a=i.response?.headers["x-github-request-id"]||"UNKNOWN";throw e.log.error(`${r.method} ${s} - ${i.status} with id ${a} in ${Date.now()-o}ms`),i})})}C5.VERSION=Oke;var l7e="0.0.0-development";function c7e(e){if(!e.data)return{...e,data:[]};if(!(("total_count"in e.data||"total_commits"in e.data)&&!("url"in e.data)))return e;let n=e.data.incomplete_results,o=e.data.repository_selection,r=e.data.total_count,s=e.data.total_commits;delete e.data.incomplete_results,delete e.data.repository_selection,delete e.data.total_count,delete e.data.total_commits;let i=Object.keys(e.data)[0],a=e.data[i];return e.data=a,typeof n<"u"&&(e.data.incomplete_results=n),typeof o<"u"&&(e.data.repository_selection=o),e.data.total_count=r,e.data.total_commits=s,e}function E5(e,t,n){let o=typeof t=="function"?t.endpoint(n):e.request.endpoint(t,n),r=typeof t=="function"?t:e.request,s=o.method,i=o.headers,a=o.url;return{[Symbol.asyncIterator]:()=>({async next(){if(!a)return{done:!0};try{let l=await r({method:s,url:a,headers:i}),c=c7e(l);if(a=((c.headers.link||"").match(/<([^<>]+)>;\s*rel="next"/)||[])[1],!a&&"total_commits"in c.data){let u=new URL(c.url),p=u.searchParams,m=parseInt(p.get("page")||"1",10),g=parseInt(p.get("per_page")||"250",10);m*g{if(r.done)return t;let s=!1;function i(){s=!0}return t=t.concat(o?o(r.value,i):r.value.data),s?t:Hke(e,t,n,o)})}var C4t=Object.assign(qke,{iterator:E5});function A5(e){return{paginate:Object.assign(qke.bind(null,e),{iterator:E5.bind(null,e)})}}A5.VERSION=l7e;var k5="16.1.1";var u7e={actions:{addCustomLabelsToSelfHostedRunnerForOrg:["POST /orgs/{org}/actions/runners/{runner_id}/labels"],addCustomLabelsToSelfHostedRunnerForRepo:["POST /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],addRepoAccessToSelfHostedRunnerGroupInOrg:["PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],approveWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/approve"],cancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel"],createEnvironmentVariable:["POST /repos/{owner}/{repo}/environments/{environment_name}/variables"],createHostedRunnerForOrg:["POST /orgs/{org}/actions/hosted-runners"],createOrUpdateEnvironmentSecret:["PUT /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/actions/secrets/{secret_name}"],createOrgVariable:["POST /orgs/{org}/actions/variables"],createRegistrationTokenForOrg:["POST /orgs/{org}/actions/runners/registration-token"],createRegistrationTokenForRepo:["POST /repos/{owner}/{repo}/actions/runners/registration-token"],createRemoveTokenForOrg:["POST /orgs/{org}/actions/runners/remove-token"],createRemoveTokenForRepo:["POST /repos/{owner}/{repo}/actions/runners/remove-token"],createRepoVariable:["POST /repos/{owner}/{repo}/actions/variables"],createWorkflowDispatch:["POST /repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches"],deleteActionsCacheById:["DELETE /repos/{owner}/{repo}/actions/caches/{cache_id}"],deleteActionsCacheByKey:["DELETE /repos/{owner}/{repo}/actions/caches{?key,ref}"],deleteArtifact:["DELETE /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],deleteEnvironmentSecret:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"],deleteEnvironmentVariable:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}"],deleteHostedRunnerForOrg:["DELETE /orgs/{org}/actions/hosted-runners/{hosted_runner_id}"],deleteOrgSecret:["DELETE /orgs/{org}/actions/secrets/{secret_name}"],deleteOrgVariable:["DELETE /orgs/{org}/actions/variables/{name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/actions/secrets/{secret_name}"],deleteRepoVariable:["DELETE /repos/{owner}/{repo}/actions/variables/{name}"],deleteSelfHostedRunnerFromOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}"],deleteSelfHostedRunnerFromRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}"],deleteWorkflowRun:["DELETE /repos/{owner}/{repo}/actions/runs/{run_id}"],deleteWorkflowRunLogs:["DELETE /repos/{owner}/{repo}/actions/runs/{run_id}/logs"],disableSelectedRepositoryGithubActionsOrganization:["DELETE /orgs/{org}/actions/permissions/repositories/{repository_id}"],disableWorkflow:["PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/disable"],downloadArtifact:["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}/{archive_format}"],downloadJobLogsForWorkflowRun:["GET /repos/{owner}/{repo}/actions/jobs/{job_id}/logs"],downloadWorkflowRunAttemptLogs:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/logs"],downloadWorkflowRunLogs:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/logs"],enableSelectedRepositoryGithubActionsOrganization:["PUT /orgs/{org}/actions/permissions/repositories/{repository_id}"],enableWorkflow:["PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/enable"],forceCancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/force-cancel"],generateRunnerJitconfigForOrg:["POST /orgs/{org}/actions/runners/generate-jitconfig"],generateRunnerJitconfigForRepo:["POST /repos/{owner}/{repo}/actions/runners/generate-jitconfig"],getActionsCacheList:["GET /repos/{owner}/{repo}/actions/caches"],getActionsCacheUsage:["GET /repos/{owner}/{repo}/actions/cache/usage"],getActionsCacheUsageByRepoForOrg:["GET /orgs/{org}/actions/cache/usage-by-repository"],getActionsCacheUsageForOrg:["GET /orgs/{org}/actions/cache/usage"],getAllowedActionsOrganization:["GET /orgs/{org}/actions/permissions/selected-actions"],getAllowedActionsRepository:["GET /repos/{owner}/{repo}/actions/permissions/selected-actions"],getArtifact:["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],getCustomOidcSubClaimForRepo:["GET /repos/{owner}/{repo}/actions/oidc/customization/sub"],getEnvironmentPublicKey:["GET /repos/{owner}/{repo}/environments/{environment_name}/secrets/public-key"],getEnvironmentSecret:["GET /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"],getEnvironmentVariable:["GET /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}"],getGithubActionsDefaultWorkflowPermissionsOrganization:["GET /orgs/{org}/actions/permissions/workflow"],getGithubActionsDefaultWorkflowPermissionsRepository:["GET /repos/{owner}/{repo}/actions/permissions/workflow"],getGithubActionsPermissionsOrganization:["GET /orgs/{org}/actions/permissions"],getGithubActionsPermissionsRepository:["GET /repos/{owner}/{repo}/actions/permissions"],getHostedRunnerForOrg:["GET /orgs/{org}/actions/hosted-runners/{hosted_runner_id}"],getHostedRunnersGithubOwnedImagesForOrg:["GET /orgs/{org}/actions/hosted-runnershttps://www.microsoft.com/images/github-owned"],getHostedRunnersLimitsForOrg:["GET /orgs/{org}/actions/hosted-runners/limits"],getHostedRunnersMachineSpecsForOrg:["GET /orgs/{org}/actions/hosted-runners/machine-sizes"],getHostedRunnersPartnerImagesForOrg:["GET /orgs/{org}/actions/hosted-runnershttps://www.microsoft.com/images/partner"],getHostedRunnersPlatformsForOrg:["GET /orgs/{org}/actions/hosted-runners/platforms"],getJobForWorkflowRun:["GET /repos/{owner}/{repo}/actions/jobs/{job_id}"],getOrgPublicKey:["GET /orgs/{org}/actions/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/actions/secrets/{secret_name}"],getOrgVariable:["GET /orgs/{org}/actions/variables/{name}"],getPendingDeploymentsForRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments"],getRepoPermissions:["GET /repos/{owner}/{repo}/actions/permissions",{},{renamed:["actions","getGithubActionsPermissionsRepository"]}],getRepoPublicKey:["GET /repos/{owner}/{repo}/actions/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/actions/secrets/{secret_name}"],getRepoVariable:["GET /repos/{owner}/{repo}/actions/variables/{name}"],getReviewsForRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/approvals"],getSelfHostedRunnerForOrg:["GET /orgs/{org}/actions/runners/{runner_id}"],getSelfHostedRunnerForRepo:["GET /repos/{owner}/{repo}/actions/runners/{runner_id}"],getWorkflow:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}"],getWorkflowAccessToRepository:["GET /repos/{owner}/{repo}/actions/permissions/access"],getWorkflowRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}"],getWorkflowRunAttempt:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}"],getWorkflowRunUsage:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/timing"],getWorkflowUsage:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/timing"],listArtifactsForRepo:["GET /repos/{owner}/{repo}/actions/artifacts"],listEnvironmentSecrets:["GET /repos/{owner}/{repo}/environments/{environment_name}/secrets"],listEnvironmentVariables:["GET /repos/{owner}/{repo}/environments/{environment_name}/variables"],listGithubHostedRunnersInGroupForOrg:["GET /orgs/{org}/actions/runner-groups/{runner_group_id}/hosted-runners"],listHostedRunnersForOrg:["GET /orgs/{org}/actions/hosted-runners"],listJobsForWorkflowRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs"],listJobsForWorkflowRunAttempt:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs"],listLabelsForSelfHostedRunnerForOrg:["GET /orgs/{org}/actions/runners/{runner_id}/labels"],listLabelsForSelfHostedRunnerForRepo:["GET /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],listOrgSecrets:["GET /orgs/{org}/actions/secrets"],listOrgVariables:["GET /orgs/{org}/actions/variables"],listRepoOrganizationSecrets:["GET /repos/{owner}/{repo}/actions/organization-secrets"],listRepoOrganizationVariables:["GET /repos/{owner}/{repo}/actions/organization-variables"],listRepoSecrets:["GET /repos/{owner}/{repo}/actions/secrets"],listRepoVariables:["GET /repos/{owner}/{repo}/actions/variables"],listRepoWorkflows:["GET /repos/{owner}/{repo}/actions/workflows"],listRunnerApplicationsForOrg:["GET /orgs/{org}/actions/runners/downloads"],listRunnerApplicationsForRepo:["GET /repos/{owner}/{repo}/actions/runners/downloads"],listSelectedReposForOrgSecret:["GET /orgs/{org}/actions/secrets/{secret_name}/repositories"],listSelectedReposForOrgVariable:["GET /orgs/{org}/actions/variables/{name}/repositories"],listSelectedRepositoriesEnabledGithubActionsOrganization:["GET /orgs/{org}/actions/permissions/repositories"],listSelfHostedRunnersForOrg:["GET /orgs/{org}/actions/runners"],listSelfHostedRunnersForRepo:["GET /repos/{owner}/{repo}/actions/runners"],listWorkflowRunArtifacts:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts"],listWorkflowRuns:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs"],listWorkflowRunsForRepo:["GET /repos/{owner}/{repo}/actions/runs"],reRunJobForWorkflowRun:["POST /repos/{owner}/{repo}/actions/jobs/{job_id}/rerun"],reRunWorkflow:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun"],reRunWorkflowFailedJobs:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun-failed-jobs"],removeAllCustomLabelsFromSelfHostedRunnerForOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}/labels"],removeAllCustomLabelsFromSelfHostedRunnerForRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],removeCustomLabelFromSelfHostedRunnerForOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}/labels/{name}"],removeCustomLabelFromSelfHostedRunnerForRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels/{name}"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],removeSelectedRepoFromOrgVariable:["DELETE /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],reviewCustomGatesForRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/deployment_protection_rule"],reviewPendingDeploymentsForRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments"],setAllowedActionsOrganization:["PUT /orgs/{org}/actions/permissions/selected-actions"],setAllowedActionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions/selected-actions"],setCustomLabelsForSelfHostedRunnerForOrg:["PUT /orgs/{org}/actions/runners/{runner_id}/labels"],setCustomLabelsForSelfHostedRunnerForRepo:["PUT /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],setCustomOidcSubClaimForRepo:["PUT /repos/{owner}/{repo}/actions/oidc/customization/sub"],setGithubActionsDefaultWorkflowPermissionsOrganization:["PUT /orgs/{org}/actions/permissions/workflow"],setGithubActionsDefaultWorkflowPermissionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions/workflow"],setGithubActionsPermissionsOrganization:["PUT /orgs/{org}/actions/permissions"],setGithubActionsPermissionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories"],setSelectedReposForOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories"],setSelectedRepositoriesEnabledGithubActionsOrganization:["PUT /orgs/{org}/actions/permissions/repositories"],setWorkflowAccessToRepository:["PUT /repos/{owner}/{repo}/actions/permissions/access"],updateEnvironmentVariable:["PATCH /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}"],updateHostedRunnerForOrg:["PATCH /orgs/{org}/actions/hosted-runners/{hosted_runner_id}"],updateOrgVariable:["PATCH /orgs/{org}/actions/variables/{name}"],updateRepoVariable:["PATCH /repos/{owner}/{repo}/actions/variables/{name}"]},activity:{checkRepoIsStarredByAuthenticatedUser:["GET /user/starred/{owner}/{repo}"],deleteRepoSubscription:["DELETE /repos/{owner}/{repo}/subscription"],deleteThreadSubscription:["DELETE /notifications/threads/{thread_id}/subscription"],getFeeds:["GET /feeds"],getRepoSubscription:["GET /repos/{owner}/{repo}/subscription"],getThread:["GET /notifications/threads/{thread_id}"],getThreadSubscriptionForAuthenticatedUser:["GET /notifications/threads/{thread_id}/subscription"],listEventsForAuthenticatedUser:["GET /users/{username}/events"],listNotificationsForAuthenticatedUser:["GET /notifications"],listOrgEventsForAuthenticatedUser:["GET /users/{username}/events/orgs/{org}"],listPublicEvents:["GET /events"],listPublicEventsForRepoNetwork:["GET /networks/{owner}/{repo}/events"],listPublicEventsForUser:["GET /users/{username}/events/public"],listPublicOrgEvents:["GET /orgs/{org}/events"],listReceivedEventsForUser:["GET /users/{username}/received_events"],listReceivedPublicEventsForUser:["GET /users/{username}/received_events/public"],listRepoEvents:["GET /repos/{owner}/{repo}/events"],listRepoNotificationsForAuthenticatedUser:["GET /repos/{owner}/{repo}/notifications"],listReposStarredByAuthenticatedUser:["GET /user/starred"],listReposStarredByUser:["GET /users/{username}/starred"],listReposWatchedByUser:["GET /users/{username}/subscriptions"],listStargazersForRepo:["GET /repos/{owner}/{repo}/stargazers"],listWatchedReposForAuthenticatedUser:["GET /user/subscriptions"],listWatchersForRepo:["GET /repos/{owner}/{repo}/subscribers"],markNotificationsAsRead:["PUT /notifications"],markRepoNotificationsAsRead:["PUT /repos/{owner}/{repo}/notifications"],markThreadAsDone:["DELETE /notifications/threads/{thread_id}"],markThreadAsRead:["PATCH /notifications/threads/{thread_id}"],setRepoSubscription:["PUT /repos/{owner}/{repo}/subscription"],setThreadSubscription:["PUT /notifications/threads/{thread_id}/subscription"],starRepoForAuthenticatedUser:["PUT /user/starred/{owner}/{repo}"],unstarRepoForAuthenticatedUser:["DELETE /user/starred/{owner}/{repo}"]},apps:{addRepoToInstallation:["PUT /user/installations/{installation_id}/repositories/{repository_id}",{},{renamed:["apps","addRepoToInstallationForAuthenticatedUser"]}],addRepoToInstallationForAuthenticatedUser:["PUT /user/installations/{installation_id}/repositories/{repository_id}"],checkToken:["POST /applications/{client_id}/token"],createFromManifest:["POST /app-manifests/{code}/conversions"],createInstallationAccessToken:["POST /app/installations/{installation_id}/access_tokens"],deleteAuthorization:["DELETE /applications/{client_id}/grant"],deleteInstallation:["DELETE /app/installations/{installation_id}"],deleteToken:["DELETE /applications/{client_id}/token"],getAuthenticated:["GET /app"],getBySlug:["GET /apps/{app_slug}"],getInstallation:["GET /app/installations/{installation_id}"],getOrgInstallation:["GET /orgs/{org}/installation"],getRepoInstallation:["GET /repos/{owner}/{repo}/installation"],getSubscriptionPlanForAccount:["GET /marketplace_listing/accounts/{account_id}"],getSubscriptionPlanForAccountStubbed:["GET /marketplace_listing/stubbed/accounts/{account_id}"],getUserInstallation:["GET /users/{username}/installation"],getWebhookConfigForApp:["GET /app/hook/config"],getWebhookDelivery:["GET /app/hook/deliveries/{delivery_id}"],listAccountsForPlan:["GET /marketplace_listing/plans/{plan_id}/accounts"],listAccountsForPlanStubbed:["GET /marketplace_listing/stubbed/plans/{plan_id}/accounts"],listInstallationReposForAuthenticatedUser:["GET /user/installations/{installation_id}/repositories"],listInstallationRequestsForAuthenticatedApp:["GET /app/installation-requests"],listInstallations:["GET /app/installations"],listInstallationsForAuthenticatedUser:["GET /user/installations"],listPlans:["GET /marketplace_listing/plans"],listPlansStubbed:["GET /marketplace_listing/stubbed/plans"],listReposAccessibleToInstallation:["GET /installation/repositories"],listSubscriptionsForAuthenticatedUser:["GET /user/marketplace_purchases"],listSubscriptionsForAuthenticatedUserStubbed:["GET /user/marketplace_purchases/stubbed"],listWebhookDeliveries:["GET /app/hook/deliveries"],redeliverWebhookDelivery:["POST /app/hook/deliveries/{delivery_id}/attempts"],removeRepoFromInstallation:["DELETE /user/installations/{installation_id}/repositories/{repository_id}",{},{renamed:["apps","removeRepoFromInstallationForAuthenticatedUser"]}],removeRepoFromInstallationForAuthenticatedUser:["DELETE /user/installations/{installation_id}/repositories/{repository_id}"],resetToken:["PATCH /applications/{client_id}/token"],revokeInstallationAccessToken:["DELETE /installation/token"],scopeToken:["POST /applications/{client_id}/token/scoped"],suspendInstallation:["PUT /app/installations/{installation_id}/suspended"],unsuspendInstallation:["DELETE /app/installations/{installation_id}/suspended"],updateWebhookConfigForApp:["PATCH /app/hook/config"]},billing:{getGithubActionsBillingOrg:["GET /orgs/{org}/settings/billing/actions"],getGithubActionsBillingUser:["GET /users/{username}/settings/billing/actions"],getGithubBillingUsageReportOrg:["GET /organizations/{org}/settings/billing/usage"],getGithubBillingUsageReportUser:["GET /users/{username}/settings/billing/usage"],getGithubPackagesBillingOrg:["GET /orgs/{org}/settings/billing/packages"],getGithubPackagesBillingUser:["GET /users/{username}/settings/billing/packages"],getSharedStorageBillingOrg:["GET /orgs/{org}/settings/billing/shared-storage"],getSharedStorageBillingUser:["GET /users/{username}/settings/billing/shared-storage"]},campaigns:{createCampaign:["POST /orgs/{org}/campaigns"],deleteCampaign:["DELETE /orgs/{org}/campaigns/{campaign_number}"],getCampaignSummary:["GET /orgs/{org}/campaigns/{campaign_number}"],listOrgCampaigns:["GET /orgs/{org}/campaigns"],updateCampaign:["PATCH /orgs/{org}/campaigns/{campaign_number}"]},checks:{create:["POST /repos/{owner}/{repo}/check-runs"],createSuite:["POST /repos/{owner}/{repo}/check-suites"],get:["GET /repos/{owner}/{repo}/check-runs/{check_run_id}"],getSuite:["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}"],listAnnotations:["GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations"],listForRef:["GET /repos/{owner}/{repo}/commits/{ref}/check-runs"],listForSuite:["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs"],listSuitesForRef:["GET /repos/{owner}/{repo}/commits/{ref}/check-suites"],rerequestRun:["POST /repos/{owner}/{repo}/check-runs/{check_run_id}/rerequest"],rerequestSuite:["POST /repos/{owner}/{repo}/check-suites/{check_suite_id}/rerequest"],setSuitesPreferences:["PATCH /repos/{owner}/{repo}/check-suites/preferences"],update:["PATCH /repos/{owner}/{repo}/check-runs/{check_run_id}"]},codeScanning:{commitAutofix:["POST /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/autofix/commits"],createAutofix:["POST /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/autofix"],createVariantAnalysis:["POST /repos/{owner}/{repo}/code-scanning/codeql/variant-analyses"],deleteAnalysis:["DELETE /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}{?confirm_delete}"],deleteCodeqlDatabase:["DELETE /repos/{owner}/{repo}/code-scanning/codeql/databases/{language}"],getAlert:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}",{},{renamedParameters:{alert_id:"alert_number"}}],getAnalysis:["GET /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}"],getAutofix:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/autofix"],getCodeqlDatabase:["GET /repos/{owner}/{repo}/code-scanning/codeql/databases/{language}"],getDefaultSetup:["GET /repos/{owner}/{repo}/code-scanning/default-setup"],getSarif:["GET /repos/{owner}/{repo}/code-scanning/sarifs/{sarif_id}"],getVariantAnalysis:["GET /repos/{owner}/{repo}/code-scanning/codeql/variant-analyses/{codeql_variant_analysis_id}"],getVariantAnalysisRepoTask:["GET /repos/{owner}/{repo}/code-scanning/codeql/variant-analyses/{codeql_variant_analysis_id}/repos/{repo_owner}/{repo_name}"],listAlertInstances:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances"],listAlertsForOrg:["GET /orgs/{org}/code-scanning/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/code-scanning/alerts"],listAlertsInstances:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances",{},{renamed:["codeScanning","listAlertInstances"]}],listCodeqlDatabases:["GET /repos/{owner}/{repo}/code-scanning/codeql/databases"],listRecentAnalyses:["GET /repos/{owner}/{repo}/code-scanning/analyses"],updateAlert:["PATCH /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}"],updateDefaultSetup:["PATCH /repos/{owner}/{repo}/code-scanning/default-setup"],uploadSarif:["POST /repos/{owner}/{repo}/code-scanning/sarifs"]},codeSecurity:{attachConfiguration:["POST /orgs/{org}/code-security/configurations/{configuration_id}/attach"],attachEnterpriseConfiguration:["POST /enterprises/{enterprise}/code-security/configurations/{configuration_id}/attach"],createConfiguration:["POST /orgs/{org}/code-security/configurations"],createConfigurationForEnterprise:["POST /enterprises/{enterprise}/code-security/configurations"],deleteConfiguration:["DELETE /orgs/{org}/code-security/configurations/{configuration_id}"],deleteConfigurationForEnterprise:["DELETE /enterprises/{enterprise}/code-security/configurations/{configuration_id}"],detachConfiguration:["DELETE /orgs/{org}/code-security/configurations/detach"],getConfiguration:["GET /orgs/{org}/code-security/configurations/{configuration_id}"],getConfigurationForRepository:["GET /repos/{owner}/{repo}/code-security-configuration"],getConfigurationsForEnterprise:["GET /enterprises/{enterprise}/code-security/configurations"],getConfigurationsForOrg:["GET /orgs/{org}/code-security/configurations"],getDefaultConfigurations:["GET /orgs/{org}/code-security/configurations/defaults"],getDefaultConfigurationsForEnterprise:["GET /enterprises/{enterprise}/code-security/configurations/defaults"],getRepositoriesForConfiguration:["GET /orgs/{org}/code-security/configurations/{configuration_id}/repositories"],getRepositoriesForEnterpriseConfiguration:["GET /enterprises/{enterprise}/code-security/configurations/{configuration_id}/repositories"],getSingleConfigurationForEnterprise:["GET /enterprises/{enterprise}/code-security/configurations/{configuration_id}"],setConfigurationAsDefault:["PUT /orgs/{org}/code-security/configurations/{configuration_id}/defaults"],setConfigurationAsDefaultForEnterprise:["PUT /enterprises/{enterprise}/code-security/configurations/{configuration_id}/defaults"],updateConfiguration:["PATCH /orgs/{org}/code-security/configurations/{configuration_id}"],updateEnterpriseConfiguration:["PATCH /enterprises/{enterprise}/code-security/configurations/{configuration_id}"]},codesOfConduct:{getAllCodesOfConduct:["GET /codes_of_conduct"],getConductCode:["GET /codes_of_conduct/{key}"]},codespaces:{addRepositoryForSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}"],checkPermissionsForDevcontainer:["GET /repos/{owner}/{repo}/codespaces/permissions_check"],codespaceMachinesForAuthenticatedUser:["GET /user/codespaces/{codespace_name}/machines"],createForAuthenticatedUser:["POST /user/codespaces"],createOrUpdateOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],createOrUpdateSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}"],createWithPrForAuthenticatedUser:["POST /repos/{owner}/{repo}/pulls/{pull_number}/codespaces"],createWithRepoForAuthenticatedUser:["POST /repos/{owner}/{repo}/codespaces"],deleteForAuthenticatedUser:["DELETE /user/codespaces/{codespace_name}"],deleteFromOrganization:["DELETE /orgs/{org}/members/{username}/codespaces/{codespace_name}"],deleteOrgSecret:["DELETE /orgs/{org}/codespaces/secrets/{secret_name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],deleteSecretForAuthenticatedUser:["DELETE /user/codespaces/secrets/{secret_name}"],exportForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/exports"],getCodespacesForUserInOrg:["GET /orgs/{org}/members/{username}/codespaces"],getExportDetailsForAuthenticatedUser:["GET /user/codespaces/{codespace_name}/exports/{export_id}"],getForAuthenticatedUser:["GET /user/codespaces/{codespace_name}"],getOrgPublicKey:["GET /orgs/{org}/codespaces/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/codespaces/secrets/{secret_name}"],getPublicKeyForAuthenticatedUser:["GET /user/codespaces/secrets/public-key"],getRepoPublicKey:["GET /repos/{owner}/{repo}/codespaces/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],getSecretForAuthenticatedUser:["GET /user/codespaces/secrets/{secret_name}"],listDevcontainersInRepositoryForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/devcontainers"],listForAuthenticatedUser:["GET /user/codespaces"],listInOrganization:["GET /orgs/{org}/codespaces",{},{renamedParameters:{org_id:"org"}}],listInRepositoryForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces"],listOrgSecrets:["GET /orgs/{org}/codespaces/secrets"],listRepoSecrets:["GET /repos/{owner}/{repo}/codespaces/secrets"],listRepositoriesForSecretForAuthenticatedUser:["GET /user/codespaces/secrets/{secret_name}/repositories"],listSecretsForAuthenticatedUser:["GET /user/codespaces/secrets"],listSelectedReposForOrgSecret:["GET /orgs/{org}/codespaces/secrets/{secret_name}/repositories"],preFlightWithRepoForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/new"],publishForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/publish"],removeRepositoryForSecretForAuthenticatedUser:["DELETE /user/codespaces/secrets/{secret_name}/repositories/{repository_id}"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}"],repoMachinesForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/machines"],setRepositoriesForSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}/repositories"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}/repositories"],startForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/start"],stopForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/stop"],stopInOrganization:["POST /orgs/{org}/members/{username}/codespaces/{codespace_name}/stop"],updateForAuthenticatedUser:["PATCH /user/codespaces/{codespace_name}"]},copilot:{addCopilotSeatsForTeams:["POST /orgs/{org}/copilot/billing/selected_teams"],addCopilotSeatsForUsers:["POST /orgs/{org}/copilot/billing/selected_users"],cancelCopilotSeatAssignmentForTeams:["DELETE /orgs/{org}/copilot/billing/selected_teams"],cancelCopilotSeatAssignmentForUsers:["DELETE /orgs/{org}/copilot/billing/selected_users"],copilotMetricsForOrganization:["GET /orgs/{org}/copilot/metrics"],copilotMetricsForTeam:["GET /orgs/{org}/team/{team_slug}/copilot/metrics"],getCopilotOrganizationDetails:["GET /orgs/{org}/copilot/billing"],getCopilotSeatDetailsForUser:["GET /orgs/{org}/members/{username}/copilot"],listCopilotSeats:["GET /orgs/{org}/copilot/billing/seats"]},credentials:{revoke:["POST /credentials/revoke"]},dependabot:{addSelectedRepoToOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],deleteOrgSecret:["DELETE /orgs/{org}/dependabot/secrets/{secret_name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],getAlert:["GET /repos/{owner}/{repo}/dependabot/alerts/{alert_number}"],getOrgPublicKey:["GET /orgs/{org}/dependabot/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/dependabot/secrets/{secret_name}"],getRepoPublicKey:["GET /repos/{owner}/{repo}/dependabot/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],listAlertsForEnterprise:["GET /enterprises/{enterprise}/dependabot/alerts"],listAlertsForOrg:["GET /orgs/{org}/dependabot/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/dependabot/alerts"],listOrgSecrets:["GET /orgs/{org}/dependabot/secrets"],listRepoSecrets:["GET /repos/{owner}/{repo}/dependabot/secrets"],listSelectedReposForOrgSecret:["GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}"],repositoryAccessForOrg:["GET /organizations/{org}/dependabot/repository-access"],setRepositoryAccessDefaultLevel:["PUT /organizations/{org}/dependabot/repository-access/default-level"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories"],updateAlert:["PATCH /repos/{owner}/{repo}/dependabot/alerts/{alert_number}"],updateRepositoryAccessForOrg:["PATCH /organizations/{org}/dependabot/repository-access"]},dependencyGraph:{createRepositorySnapshot:["POST /repos/{owner}/{repo}/dependency-graph/snapshots"],diffRange:["GET /repos/{owner}/{repo}/dependency-graph/compare/{basehead}"],exportSbom:["GET /repos/{owner}/{repo}/dependency-graph/sbom"]},emojis:{get:["GET /emojis"]},gists:{checkIsStarred:["GET /gists/{gist_id}/star"],create:["POST /gists"],createComment:["POST /gists/{gist_id}/comments"],delete:["DELETE /gists/{gist_id}"],deleteComment:["DELETE /gists/{gist_id}/comments/{comment_id}"],fork:["POST /gists/{gist_id}/forks"],get:["GET /gists/{gist_id}"],getComment:["GET /gists/{gist_id}/comments/{comment_id}"],getRevision:["GET /gists/{gist_id}/{sha}"],list:["GET /gists"],listComments:["GET /gists/{gist_id}/comments"],listCommits:["GET /gists/{gist_id}/commits"],listForUser:["GET /users/{username}/gists"],listForks:["GET /gists/{gist_id}/forks"],listPublic:["GET /gists/public"],listStarred:["GET /gists/starred"],star:["PUT /gists/{gist_id}/star"],unstar:["DELETE /gists/{gist_id}/star"],update:["PATCH /gists/{gist_id}"],updateComment:["PATCH /gists/{gist_id}/comments/{comment_id}"]},git:{createBlob:["POST /repos/{owner}/{repo}/git/blobs"],createCommit:["POST /repos/{owner}/{repo}/git/commits"],createRef:["POST /repos/{owner}/{repo}/git/refs"],createTag:["POST /repos/{owner}/{repo}/git/tags"],createTree:["POST /repos/{owner}/{repo}/git/trees"],deleteRef:["DELETE /repos/{owner}/{repo}/git/refs/{ref}"],getBlob:["GET /repos/{owner}/{repo}/git/blobs/{file_sha}"],getCommit:["GET /repos/{owner}/{repo}/git/commits/{commit_sha}"],getRef:["GET /repos/{owner}/{repo}/git/ref/{ref}"],getTag:["GET /repos/{owner}/{repo}/git/tags/{tag_sha}"],getTree:["GET /repos/{owner}/{repo}/git/trees/{tree_sha}"],listMatchingRefs:["GET /repos/{owner}/{repo}/git/matching-refs/{ref}"],updateRef:["PATCH /repos/{owner}/{repo}/git/refs/{ref}"]},gitignore:{getAllTemplates:["GET /gitignore/templates"],getTemplate:["GET /gitignore/templates/{name}"]},hostedCompute:{createNetworkConfigurationForOrg:["POST /orgs/{org}/settings/network-configurations"],deleteNetworkConfigurationFromOrg:["DELETE /orgs/{org}/settings/network-configurations/{network_configuration_id}"],getNetworkConfigurationForOrg:["GET /orgs/{org}/settings/network-configurations/{network_configuration_id}"],getNetworkSettingsForOrg:["GET /orgs/{org}/settings/network-settings/{network_settings_id}"],listNetworkConfigurationsForOrg:["GET /orgs/{org}/settings/network-configurations"],updateNetworkConfigurationForOrg:["PATCH /orgs/{org}/settings/network-configurations/{network_configuration_id}"]},interactions:{getRestrictionsForAuthenticatedUser:["GET /user/interaction-limits"],getRestrictionsForOrg:["GET /orgs/{org}/interaction-limits"],getRestrictionsForRepo:["GET /repos/{owner}/{repo}/interaction-limits"],getRestrictionsForYourPublicRepos:["GET /user/interaction-limits",{},{renamed:["interactions","getRestrictionsForAuthenticatedUser"]}],removeRestrictionsForAuthenticatedUser:["DELETE /user/interaction-limits"],removeRestrictionsForOrg:["DELETE /orgs/{org}/interaction-limits"],removeRestrictionsForRepo:["DELETE /repos/{owner}/{repo}/interaction-limits"],removeRestrictionsForYourPublicRepos:["DELETE /user/interaction-limits",{},{renamed:["interactions","removeRestrictionsForAuthenticatedUser"]}],setRestrictionsForAuthenticatedUser:["PUT /user/interaction-limits"],setRestrictionsForOrg:["PUT /orgs/{org}/interaction-limits"],setRestrictionsForRepo:["PUT /repos/{owner}/{repo}/interaction-limits"],setRestrictionsForYourPublicRepos:["PUT /user/interaction-limits",{},{renamed:["interactions","setRestrictionsForAuthenticatedUser"]}]},issues:{addAssignees:["POST /repos/{owner}/{repo}/issues/{issue_number}/assignees"],addBlockedByDependency:["POST /repos/{owner}/{repo}/issues/{issue_number}/dependencies/blocked_by"],addLabels:["POST /repos/{owner}/{repo}/issues/{issue_number}/labels"],addSubIssue:["POST /repos/{owner}/{repo}/issues/{issue_number}/sub_issues"],checkUserCanBeAssigned:["GET /repos/{owner}/{repo}/assignees/{assignee}"],checkUserCanBeAssignedToIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/assignees/{assignee}"],create:["POST /repos/{owner}/{repo}/issues"],createComment:["POST /repos/{owner}/{repo}/issues/{issue_number}/comments"],createLabel:["POST /repos/{owner}/{repo}/labels"],createMilestone:["POST /repos/{owner}/{repo}/milestones"],deleteComment:["DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}"],deleteLabel:["DELETE /repos/{owner}/{repo}/labels/{name}"],deleteMilestone:["DELETE /repos/{owner}/{repo}/milestones/{milestone_number}"],get:["GET /repos/{owner}/{repo}/issues/{issue_number}"],getComment:["GET /repos/{owner}/{repo}/issues/comments/{comment_id}"],getEvent:["GET /repos/{owner}/{repo}/issues/events/{event_id}"],getLabel:["GET /repos/{owner}/{repo}/labels/{name}"],getMilestone:["GET /repos/{owner}/{repo}/milestones/{milestone_number}"],getParent:["GET /repos/{owner}/{repo}/issues/{issue_number}/parent"],list:["GET /issues"],listAssignees:["GET /repos/{owner}/{repo}/assignees"],listComments:["GET /repos/{owner}/{repo}/issues/{issue_number}/comments"],listCommentsForRepo:["GET /repos/{owner}/{repo}/issues/comments"],listDependenciesBlockedBy:["GET /repos/{owner}/{repo}/issues/{issue_number}/dependencies/blocked_by"],listDependenciesBlocking:["GET /repos/{owner}/{repo}/issues/{issue_number}/dependencies/blocking"],listEvents:["GET /repos/{owner}/{repo}/issues/{issue_number}/events"],listEventsForRepo:["GET /repos/{owner}/{repo}/issues/events"],listEventsForTimeline:["GET /repos/{owner}/{repo}/issues/{issue_number}/timeline"],listForAuthenticatedUser:["GET /user/issues"],listForOrg:["GET /orgs/{org}/issues"],listForRepo:["GET /repos/{owner}/{repo}/issues"],listLabelsForMilestone:["GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels"],listLabelsForRepo:["GET /repos/{owner}/{repo}/labels"],listLabelsOnIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/labels"],listMilestones:["GET /repos/{owner}/{repo}/milestones"],listSubIssues:["GET /repos/{owner}/{repo}/issues/{issue_number}/sub_issues"],lock:["PUT /repos/{owner}/{repo}/issues/{issue_number}/lock"],removeAllLabels:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels"],removeAssignees:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/assignees"],removeDependencyBlockedBy:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/dependencies/blocked_by/{issue_id}"],removeLabel:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels/{name}"],removeSubIssue:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/sub_issue"],reprioritizeSubIssue:["PATCH /repos/{owner}/{repo}/issues/{issue_number}/sub_issues/priority"],setLabels:["PUT /repos/{owner}/{repo}/issues/{issue_number}/labels"],unlock:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/lock"],update:["PATCH /repos/{owner}/{repo}/issues/{issue_number}"],updateComment:["PATCH /repos/{owner}/{repo}/issues/comments/{comment_id}"],updateLabel:["PATCH /repos/{owner}/{repo}/labels/{name}"],updateMilestone:["PATCH /repos/{owner}/{repo}/milestones/{milestone_number}"]},licenses:{get:["GET /licenses/{license}"],getAllCommonlyUsed:["GET /licenses"],getForRepo:["GET /repos/{owner}/{repo}/license"]},markdown:{render:["POST /markdown"],renderRaw:["POST /markdown/raw",{headers:{"content-type":"text/plain; charset=utf-8"}}]},meta:{get:["GET /meta"],getAllVersions:["GET /versions"],getOctocat:["GET /octocat"],getZen:["GET /zen"],root:["GET /"]},migrations:{deleteArchiveForAuthenticatedUser:["DELETE /user/migrations/{migration_id}/archive"],deleteArchiveForOrg:["DELETE /orgs/{org}/migrations/{migration_id}/archive"],downloadArchiveForOrg:["GET /orgs/{org}/migrations/{migration_id}/archive"],getArchiveForAuthenticatedUser:["GET /user/migrations/{migration_id}/archive"],getStatusForAuthenticatedUser:["GET /user/migrations/{migration_id}"],getStatusForOrg:["GET /orgs/{org}/migrations/{migration_id}"],listForAuthenticatedUser:["GET /user/migrations"],listForOrg:["GET /orgs/{org}/migrations"],listReposForAuthenticatedUser:["GET /user/migrations/{migration_id}/repositories"],listReposForOrg:["GET /orgs/{org}/migrations/{migration_id}/repositories"],listReposForUser:["GET /user/migrations/{migration_id}/repositories",{},{renamed:["migrations","listReposForAuthenticatedUser"]}],startForAuthenticatedUser:["POST /user/migrations"],startForOrg:["POST /orgs/{org}/migrations"],unlockRepoForAuthenticatedUser:["DELETE /user/migrations/{migration_id}/repos/{repo_name}/lock"],unlockRepoForOrg:["DELETE /orgs/{org}/migrations/{migration_id}/repos/{repo_name}/lock"]},oidc:{getOidcCustomSubTemplateForOrg:["GET /orgs/{org}/actions/oidc/customization/sub"],updateOidcCustomSubTemplateForOrg:["PUT /orgs/{org}/actions/oidc/customization/sub"]},orgs:{addSecurityManagerTeam:["PUT /orgs/{org}/security-managers/teams/{team_slug}",{},{deprecated:"octokit.rest.orgs.addSecurityManagerTeam() is deprecated, see https://docs.github.com/rest/orgs/security-managers#add-a-security-manager-team"}],assignTeamToOrgRole:["PUT /orgs/{org}/organization-roles/teams/{team_slug}/{role_id}"],assignUserToOrgRole:["PUT /orgs/{org}/organization-roles/users/{username}/{role_id}"],blockUser:["PUT /orgs/{org}/blocks/{username}"],cancelInvitation:["DELETE /orgs/{org}/invitations/{invitation_id}"],checkBlockedUser:["GET /orgs/{org}/blocks/{username}"],checkMembershipForUser:["GET /orgs/{org}/members/{username}"],checkPublicMembershipForUser:["GET /orgs/{org}/public_members/{username}"],convertMemberToOutsideCollaborator:["PUT /orgs/{org}/outside_collaborators/{username}"],createArtifactStorageRecord:["POST /orgs/{org}/artifacts/metadata/storage-record"],createInvitation:["POST /orgs/{org}/invitations"],createIssueType:["POST /orgs/{org}/issue-types"],createOrUpdateCustomProperties:["PATCH /orgs/{org}/properties/schema"],createOrUpdateCustomPropertiesValuesForRepos:["PATCH /orgs/{org}/properties/values"],createOrUpdateCustomProperty:["PUT /orgs/{org}/properties/schema/{custom_property_name}"],createWebhook:["POST /orgs/{org}/hooks"],delete:["DELETE /orgs/{org}"],deleteAttestationsBulk:["POST /orgs/{org}/attestations/delete-request"],deleteAttestationsById:["DELETE /orgs/{org}/attestations/{attestation_id}"],deleteAttestationsBySubjectDigest:["DELETE /orgs/{org}/attestations/digest/{subject_digest}"],deleteIssueType:["DELETE /orgs/{org}/issue-types/{issue_type_id}"],deleteWebhook:["DELETE /orgs/{org}/hooks/{hook_id}"],get:["GET /orgs/{org}"],getAllCustomProperties:["GET /orgs/{org}/properties/schema"],getCustomProperty:["GET /orgs/{org}/properties/schema/{custom_property_name}"],getMembershipForAuthenticatedUser:["GET /user/memberships/orgs/{org}"],getMembershipForUser:["GET /orgs/{org}/memberships/{username}"],getOrgRole:["GET /orgs/{org}/organization-roles/{role_id}"],getOrgRulesetHistory:["GET /orgs/{org}/rulesets/{ruleset_id}/history"],getOrgRulesetVersion:["GET /orgs/{org}/rulesets/{ruleset_id}/history/{version_id}"],getWebhook:["GET /orgs/{org}/hooks/{hook_id}"],getWebhookConfigForOrg:["GET /orgs/{org}/hooks/{hook_id}/config"],getWebhookDelivery:["GET /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}"],list:["GET /organizations"],listAppInstallations:["GET /orgs/{org}/installations"],listArtifactStorageRecords:["GET /orgs/{org}/artifacts/{subject_digest}/metadata/storage-records"],listAttestations:["GET /orgs/{org}/attestations/{subject_digest}"],listAttestationsBulk:["POST /orgs/{org}/attestations/bulk-list{?per_page,before,after}"],listBlockedUsers:["GET /orgs/{org}/blocks"],listCustomPropertiesValuesForRepos:["GET /orgs/{org}/properties/values"],listFailedInvitations:["GET /orgs/{org}/failed_invitations"],listForAuthenticatedUser:["GET /user/orgs"],listForUser:["GET /users/{username}/orgs"],listInvitationTeams:["GET /orgs/{org}/invitations/{invitation_id}/teams"],listIssueTypes:["GET /orgs/{org}/issue-types"],listMembers:["GET /orgs/{org}/members"],listMembershipsForAuthenticatedUser:["GET /user/memberships/orgs"],listOrgRoleTeams:["GET /orgs/{org}/organization-roles/{role_id}/teams"],listOrgRoleUsers:["GET /orgs/{org}/organization-roles/{role_id}/users"],listOrgRoles:["GET /orgs/{org}/organization-roles"],listOrganizationFineGrainedPermissions:["GET /orgs/{org}/organization-fine-grained-permissions"],listOutsideCollaborators:["GET /orgs/{org}/outside_collaborators"],listPatGrantRepositories:["GET /orgs/{org}/personal-access-tokens/{pat_id}/repositories"],listPatGrantRequestRepositories:["GET /orgs/{org}/personal-access-token-requests/{pat_request_id}/repositories"],listPatGrantRequests:["GET /orgs/{org}/personal-access-token-requests"],listPatGrants:["GET /orgs/{org}/personal-access-tokens"],listPendingInvitations:["GET /orgs/{org}/invitations"],listPublicMembers:["GET /orgs/{org}/public_members"],listSecurityManagerTeams:["GET /orgs/{org}/security-managers",{},{deprecated:"octokit.rest.orgs.listSecurityManagerTeams() is deprecated, see https://docs.github.com/rest/orgs/security-managers#list-security-manager-teams"}],listWebhookDeliveries:["GET /orgs/{org}/hooks/{hook_id}/deliveries"],listWebhooks:["GET /orgs/{org}/hooks"],pingWebhook:["POST /orgs/{org}/hooks/{hook_id}/pings"],redeliverWebhookDelivery:["POST /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}/attempts"],removeCustomProperty:["DELETE /orgs/{org}/properties/schema/{custom_property_name}"],removeMember:["DELETE /orgs/{org}/members/{username}"],removeMembershipForUser:["DELETE /orgs/{org}/memberships/{username}"],removeOutsideCollaborator:["DELETE /orgs/{org}/outside_collaborators/{username}"],removePublicMembershipForAuthenticatedUser:["DELETE /orgs/{org}/public_members/{username}"],removeSecurityManagerTeam:["DELETE /orgs/{org}/security-managers/teams/{team_slug}",{},{deprecated:"octokit.rest.orgs.removeSecurityManagerTeam() is deprecated, see https://docs.github.com/rest/orgs/security-managers#remove-a-security-manager-team"}],reviewPatGrantRequest:["POST /orgs/{org}/personal-access-token-requests/{pat_request_id}"],reviewPatGrantRequestsInBulk:["POST /orgs/{org}/personal-access-token-requests"],revokeAllOrgRolesTeam:["DELETE /orgs/{org}/organization-roles/teams/{team_slug}"],revokeAllOrgRolesUser:["DELETE /orgs/{org}/organization-roles/users/{username}"],revokeOrgRoleTeam:["DELETE /orgs/{org}/organization-roles/teams/{team_slug}/{role_id}"],revokeOrgRoleUser:["DELETE /orgs/{org}/organization-roles/users/{username}/{role_id}"],setMembershipForUser:["PUT /orgs/{org}/memberships/{username}"],setPublicMembershipForAuthenticatedUser:["PUT /orgs/{org}/public_members/{username}"],unblockUser:["DELETE /orgs/{org}/blocks/{username}"],update:["PATCH /orgs/{org}"],updateIssueType:["PUT /orgs/{org}/issue-types/{issue_type_id}"],updateMembershipForAuthenticatedUser:["PATCH /user/memberships/orgs/{org}"],updatePatAccess:["POST /orgs/{org}/personal-access-tokens/{pat_id}"],updatePatAccesses:["POST /orgs/{org}/personal-access-tokens"],updateWebhook:["PATCH /orgs/{org}/hooks/{hook_id}"],updateWebhookConfigForOrg:["PATCH /orgs/{org}/hooks/{hook_id}/config"]},packages:{deletePackageForAuthenticatedUser:["DELETE /user/packages/{package_type}/{package_name}"],deletePackageForOrg:["DELETE /orgs/{org}/packages/{package_type}/{package_name}"],deletePackageForUser:["DELETE /users/{username}/packages/{package_type}/{package_name}"],deletePackageVersionForAuthenticatedUser:["DELETE /user/packages/{package_type}/{package_name}/versions/{package_version_id}"],deletePackageVersionForOrg:["DELETE /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}"],deletePackageVersionForUser:["DELETE /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}"],getAllPackageVersionsForAPackageOwnedByAnOrg:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions",{},{renamed:["packages","getAllPackageVersionsForPackageOwnedByOrg"]}],getAllPackageVersionsForAPackageOwnedByTheAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions",{},{renamed:["packages","getAllPackageVersionsForPackageOwnedByAuthenticatedUser"]}],getAllPackageVersionsForPackageOwnedByAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions"],getAllPackageVersionsForPackageOwnedByOrg:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions"],getAllPackageVersionsForPackageOwnedByUser:["GET /users/{username}/packages/{package_type}/{package_name}/versions"],getPackageForAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}"],getPackageForOrganization:["GET /orgs/{org}/packages/{package_type}/{package_name}"],getPackageForUser:["GET /users/{username}/packages/{package_type}/{package_name}"],getPackageVersionForAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions/{package_version_id}"],getPackageVersionForOrganization:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}"],getPackageVersionForUser:["GET /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}"],listDockerMigrationConflictingPackagesForAuthenticatedUser:["GET /user/docker/conflicts"],listDockerMigrationConflictingPackagesForOrganization:["GET /orgs/{org}/docker/conflicts"],listDockerMigrationConflictingPackagesForUser:["GET /users/{username}/docker/conflicts"],listPackagesForAuthenticatedUser:["GET /user/packages"],listPackagesForOrganization:["GET /orgs/{org}/packages"],listPackagesForUser:["GET /users/{username}/packages"],restorePackageForAuthenticatedUser:["POST /user/packages/{package_type}/{package_name}/restore{?token}"],restorePackageForOrg:["POST /orgs/{org}/packages/{package_type}/{package_name}/restore{?token}"],restorePackageForUser:["POST /users/{username}/packages/{package_type}/{package_name}/restore{?token}"],restorePackageVersionForAuthenticatedUser:["POST /user/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"],restorePackageVersionForOrg:["POST /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"],restorePackageVersionForUser:["POST /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"]},privateRegistries:{createOrgPrivateRegistry:["POST /orgs/{org}/private-registries"],deleteOrgPrivateRegistry:["DELETE /orgs/{org}/private-registries/{secret_name}"],getOrgPrivateRegistry:["GET /orgs/{org}/private-registries/{secret_name}"],getOrgPublicKey:["GET /orgs/{org}/private-registries/public-key"],listOrgPrivateRegistries:["GET /orgs/{org}/private-registries"],updateOrgPrivateRegistry:["PATCH /orgs/{org}/private-registries/{secret_name}"]},projects:{addItemForOrg:["POST /orgs/{org}/projectsV2/{project_number}/items"],addItemForUser:["POST /users/{user_id}/projectsV2/{project_number}/items"],deleteItemForOrg:["DELETE /orgs/{org}/projectsV2/{project_number}/items/{item_id}"],deleteItemForUser:["DELETE /users/{user_id}/projectsV2/{project_number}/items/{item_id}"],getFieldForOrg:["GET /orgs/{org}/projectsV2/{project_number}/fields/{field_id}"],getFieldForUser:["GET /users/{user_id}/projectsV2/{project_number}/fields/{field_id}"],getForOrg:["GET /orgs/{org}/projectsV2/{project_number}"],getForUser:["GET /users/{user_id}/projectsV2/{project_number}"],getOrgItem:["GET /orgs/{org}/projectsV2/{project_number}/items/{item_id}"],getUserItem:["GET /users/{user_id}/projectsV2/{project_number}/items/{item_id}"],listFieldsForOrg:["GET /orgs/{org}/projectsV2/{project_number}/fields"],listFieldsForUser:["GET /users/{user_id}/projectsV2/{project_number}/fields"],listForOrg:["GET /orgs/{org}/projectsV2"],listForUser:["GET /users/{username}/projectsV2"],listItemsForOrg:["GET /orgs/{org}/projectsV2/{project_number}/items"],listItemsForUser:["GET /users/{user_id}/projectsV2/{project_number}/items"],updateItemForOrg:["PATCH /orgs/{org}/projectsV2/{project_number}/items/{item_id}"],updateItemForUser:["PATCH /users/{user_id}/projectsV2/{project_number}/items/{item_id}"]},pulls:{checkIfMerged:["GET /repos/{owner}/{repo}/pulls/{pull_number}/merge"],create:["POST /repos/{owner}/{repo}/pulls"],createReplyForReviewComment:["POST /repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies"],createReview:["POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],createReviewComment:["POST /repos/{owner}/{repo}/pulls/{pull_number}/comments"],deletePendingReview:["DELETE /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],deleteReviewComment:["DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}"],dismissReview:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/dismissals"],get:["GET /repos/{owner}/{repo}/pulls/{pull_number}"],getReview:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],getReviewComment:["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}"],list:["GET /repos/{owner}/{repo}/pulls"],listCommentsForReview:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments"],listCommits:["GET /repos/{owner}/{repo}/pulls/{pull_number}/commits"],listFiles:["GET /repos/{owner}/{repo}/pulls/{pull_number}/files"],listRequestedReviewers:["GET /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],listReviewComments:["GET /repos/{owner}/{repo}/pulls/{pull_number}/comments"],listReviewCommentsForRepo:["GET /repos/{owner}/{repo}/pulls/comments"],listReviews:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],merge:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/merge"],removeRequestedReviewers:["DELETE /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],requestReviewers:["POST /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],submitReview:["POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events"],update:["PATCH /repos/{owner}/{repo}/pulls/{pull_number}"],updateBranch:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/update-branch"],updateReview:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],updateReviewComment:["PATCH /repos/{owner}/{repo}/pulls/comments/{comment_id}"]},rateLimit:{get:["GET /rate_limit"]},reactions:{createForCommitComment:["POST /repos/{owner}/{repo}/comments/{comment_id}/reactions"],createForIssue:["POST /repos/{owner}/{repo}/issues/{issue_number}/reactions"],createForIssueComment:["POST /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions"],createForPullRequestReviewComment:["POST /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions"],createForRelease:["POST /repos/{owner}/{repo}/releases/{release_id}/reactions"],createForTeamDiscussionCommentInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions"],createForTeamDiscussionInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions"],deleteForCommitComment:["DELETE /repos/{owner}/{repo}/comments/{comment_id}/reactions/{reaction_id}"],deleteForIssue:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/reactions/{reaction_id}"],deleteForIssueComment:["DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/{reaction_id}"],deleteForPullRequestComment:["DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/{reaction_id}"],deleteForRelease:["DELETE /repos/{owner}/{repo}/releases/{release_id}/reactions/{reaction_id}"],deleteForTeamDiscussion:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/{reaction_id}"],deleteForTeamDiscussionComment:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/{reaction_id}"],listForCommitComment:["GET /repos/{owner}/{repo}/comments/{comment_id}/reactions"],listForIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/reactions"],listForIssueComment:["GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions"],listForPullRequestReviewComment:["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions"],listForRelease:["GET /repos/{owner}/{repo}/releases/{release_id}/reactions"],listForTeamDiscussionCommentInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions"],listForTeamDiscussionInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions"]},repos:{acceptInvitation:["PATCH /user/repository_invitations/{invitation_id}",{},{renamed:["repos","acceptInvitationForAuthenticatedUser"]}],acceptInvitationForAuthenticatedUser:["PATCH /user/repository_invitations/{invitation_id}"],addAppAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],addCollaborator:["PUT /repos/{owner}/{repo}/collaborators/{username}"],addStatusCheckContexts:["POST /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],addTeamAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],addUserAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],cancelPagesDeployment:["POST /repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}/cancel"],checkAutomatedSecurityFixes:["GET /repos/{owner}/{repo}/automated-security-fixes"],checkCollaborator:["GET /repos/{owner}/{repo}/collaborators/{username}"],checkPrivateVulnerabilityReporting:["GET /repos/{owner}/{repo}/private-vulnerability-reporting"],checkVulnerabilityAlerts:["GET /repos/{owner}/{repo}/vulnerability-alerts"],codeownersErrors:["GET /repos/{owner}/{repo}/codeowners/errors"],compareCommits:["GET /repos/{owner}/{repo}/compare/{base}...{head}"],compareCommitsWithBasehead:["GET /repos/{owner}/{repo}/compare/{basehead}"],createAttestation:["POST /repos/{owner}/{repo}/attestations"],createAutolink:["POST /repos/{owner}/{repo}/autolinks"],createCommitComment:["POST /repos/{owner}/{repo}/commits/{commit_sha}/comments"],createCommitSignatureProtection:["POST /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],createCommitStatus:["POST /repos/{owner}/{repo}/statuses/{sha}"],createDeployKey:["POST /repos/{owner}/{repo}/keys"],createDeployment:["POST /repos/{owner}/{repo}/deployments"],createDeploymentBranchPolicy:["POST /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies"],createDeploymentProtectionRule:["POST /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules"],createDeploymentStatus:["POST /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"],createDispatchEvent:["POST /repos/{owner}/{repo}/dispatches"],createForAuthenticatedUser:["POST /user/repos"],createFork:["POST /repos/{owner}/{repo}/forks"],createInOrg:["POST /orgs/{org}/repos"],createOrUpdateCustomPropertiesValues:["PATCH /repos/{owner}/{repo}/properties/values"],createOrUpdateEnvironment:["PUT /repos/{owner}/{repo}/environments/{environment_name}"],createOrUpdateFileContents:["PUT /repos/{owner}/{repo}/contents/{path}"],createOrgRuleset:["POST /orgs/{org}/rulesets"],createPagesDeployment:["POST /repos/{owner}/{repo}/pages/deployments"],createPagesSite:["POST /repos/{owner}/{repo}/pages"],createRelease:["POST /repos/{owner}/{repo}/releases"],createRepoRuleset:["POST /repos/{owner}/{repo}/rulesets"],createUsingTemplate:["POST /repos/{template_owner}/{template_repo}/generate"],createWebhook:["POST /repos/{owner}/{repo}/hooks"],declineInvitation:["DELETE /user/repository_invitations/{invitation_id}",{},{renamed:["repos","declineInvitationForAuthenticatedUser"]}],declineInvitationForAuthenticatedUser:["DELETE /user/repository_invitations/{invitation_id}"],delete:["DELETE /repos/{owner}/{repo}"],deleteAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"],deleteAdminBranchProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],deleteAnEnvironment:["DELETE /repos/{owner}/{repo}/environments/{environment_name}"],deleteAutolink:["DELETE /repos/{owner}/{repo}/autolinks/{autolink_id}"],deleteBranchProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection"],deleteCommitComment:["DELETE /repos/{owner}/{repo}/comments/{comment_id}"],deleteCommitSignatureProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],deleteDeployKey:["DELETE /repos/{owner}/{repo}/keys/{key_id}"],deleteDeployment:["DELETE /repos/{owner}/{repo}/deployments/{deployment_id}"],deleteDeploymentBranchPolicy:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],deleteFile:["DELETE /repos/{owner}/{repo}/contents/{path}"],deleteInvitation:["DELETE /repos/{owner}/{repo}/invitations/{invitation_id}"],deleteOrgRuleset:["DELETE /orgs/{org}/rulesets/{ruleset_id}"],deletePagesSite:["DELETE /repos/{owner}/{repo}/pages"],deletePullRequestReviewProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],deleteRelease:["DELETE /repos/{owner}/{repo}/releases/{release_id}"],deleteReleaseAsset:["DELETE /repos/{owner}/{repo}/releases/assets/{asset_id}"],deleteRepoRuleset:["DELETE /repos/{owner}/{repo}/rulesets/{ruleset_id}"],deleteWebhook:["DELETE /repos/{owner}/{repo}/hooks/{hook_id}"],disableAutomatedSecurityFixes:["DELETE /repos/{owner}/{repo}/automated-security-fixes"],disableDeploymentProtectionRule:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}"],disablePrivateVulnerabilityReporting:["DELETE /repos/{owner}/{repo}/private-vulnerability-reporting"],disableVulnerabilityAlerts:["DELETE /repos/{owner}/{repo}/vulnerability-alerts"],downloadArchive:["GET /repos/{owner}/{repo}/zipball/{ref}",{},{renamed:["repos","downloadZipballArchive"]}],downloadTarballArchive:["GET /repos/{owner}/{repo}/tarball/{ref}"],downloadZipballArchive:["GET /repos/{owner}/{repo}/zipball/{ref}"],enableAutomatedSecurityFixes:["PUT /repos/{owner}/{repo}/automated-security-fixes"],enablePrivateVulnerabilityReporting:["PUT /repos/{owner}/{repo}/private-vulnerability-reporting"],enableVulnerabilityAlerts:["PUT /repos/{owner}/{repo}/vulnerability-alerts"],generateReleaseNotes:["POST /repos/{owner}/{repo}/releases/generate-notes"],get:["GET /repos/{owner}/{repo}"],getAccessRestrictions:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"],getAdminBranchProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],getAllDeploymentProtectionRules:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules"],getAllEnvironments:["GET /repos/{owner}/{repo}/environments"],getAllStatusCheckContexts:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts"],getAllTopics:["GET /repos/{owner}/{repo}/topics"],getAppsWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps"],getAutolink:["GET /repos/{owner}/{repo}/autolinks/{autolink_id}"],getBranch:["GET /repos/{owner}/{repo}/branches/{branch}"],getBranchProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection"],getBranchRules:["GET /repos/{owner}/{repo}/rules/branches/{branch}"],getClones:["GET /repos/{owner}/{repo}/traffic/clones"],getCodeFrequencyStats:["GET /repos/{owner}/{repo}/stats/code_frequency"],getCollaboratorPermissionLevel:["GET /repos/{owner}/{repo}/collaborators/{username}/permission"],getCombinedStatusForRef:["GET /repos/{owner}/{repo}/commits/{ref}/status"],getCommit:["GET /repos/{owner}/{repo}/commits/{ref}"],getCommitActivityStats:["GET /repos/{owner}/{repo}/stats/commit_activity"],getCommitComment:["GET /repos/{owner}/{repo}/comments/{comment_id}"],getCommitSignatureProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],getCommunityProfileMetrics:["GET /repos/{owner}/{repo}/community/profile"],getContent:["GET /repos/{owner}/{repo}/contents/{path}"],getContributorsStats:["GET /repos/{owner}/{repo}/stats/contributors"],getCustomDeploymentProtectionRule:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}"],getCustomPropertiesValues:["GET /repos/{owner}/{repo}/properties/values"],getDeployKey:["GET /repos/{owner}/{repo}/keys/{key_id}"],getDeployment:["GET /repos/{owner}/{repo}/deployments/{deployment_id}"],getDeploymentBranchPolicy:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],getDeploymentStatus:["GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses/{status_id}"],getEnvironment:["GET /repos/{owner}/{repo}/environments/{environment_name}"],getLatestPagesBuild:["GET /repos/{owner}/{repo}/pages/builds/latest"],getLatestRelease:["GET /repos/{owner}/{repo}/releases/latest"],getOrgRuleSuite:["GET /orgs/{org}/rulesets/rule-suites/{rule_suite_id}"],getOrgRuleSuites:["GET /orgs/{org}/rulesets/rule-suites"],getOrgRuleset:["GET /orgs/{org}/rulesets/{ruleset_id}"],getOrgRulesets:["GET /orgs/{org}/rulesets"],getPages:["GET /repos/{owner}/{repo}/pages"],getPagesBuild:["GET /repos/{owner}/{repo}/pages/builds/{build_id}"],getPagesDeployment:["GET /repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}"],getPagesHealthCheck:["GET /repos/{owner}/{repo}/pages/health"],getParticipationStats:["GET /repos/{owner}/{repo}/stats/participation"],getPullRequestReviewProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],getPunchCardStats:["GET /repos/{owner}/{repo}/stats/punch_card"],getReadme:["GET /repos/{owner}/{repo}/readme"],getReadmeInDirectory:["GET /repos/{owner}/{repo}/readme/{dir}"],getRelease:["GET /repos/{owner}/{repo}/releases/{release_id}"],getReleaseAsset:["GET /repos/{owner}/{repo}/releases/assets/{asset_id}"],getReleaseByTag:["GET /repos/{owner}/{repo}/releases/tags/{tag}"],getRepoRuleSuite:["GET /repos/{owner}/{repo}/rulesets/rule-suites/{rule_suite_id}"],getRepoRuleSuites:["GET /repos/{owner}/{repo}/rulesets/rule-suites"],getRepoRuleset:["GET /repos/{owner}/{repo}/rulesets/{ruleset_id}"],getRepoRulesetHistory:["GET /repos/{owner}/{repo}/rulesets/{ruleset_id}/history"],getRepoRulesetVersion:["GET /repos/{owner}/{repo}/rulesets/{ruleset_id}/history/{version_id}"],getRepoRulesets:["GET /repos/{owner}/{repo}/rulesets"],getStatusChecksProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],getTeamsWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams"],getTopPaths:["GET /repos/{owner}/{repo}/traffic/popular/paths"],getTopReferrers:["GET /repos/{owner}/{repo}/traffic/popular/referrers"],getUsersWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users"],getViews:["GET /repos/{owner}/{repo}/traffic/views"],getWebhook:["GET /repos/{owner}/{repo}/hooks/{hook_id}"],getWebhookConfigForRepo:["GET /repos/{owner}/{repo}/hooks/{hook_id}/config"],getWebhookDelivery:["GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}"],listActivities:["GET /repos/{owner}/{repo}/activity"],listAttestations:["GET /repos/{owner}/{repo}/attestations/{subject_digest}"],listAutolinks:["GET /repos/{owner}/{repo}/autolinks"],listBranches:["GET /repos/{owner}/{repo}/branches"],listBranchesForHeadCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head"],listCollaborators:["GET /repos/{owner}/{repo}/collaborators"],listCommentsForCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/comments"],listCommitCommentsForRepo:["GET /repos/{owner}/{repo}/comments"],listCommitStatusesForRef:["GET /repos/{owner}/{repo}/commits/{ref}/statuses"],listCommits:["GET /repos/{owner}/{repo}/commits"],listContributors:["GET /repos/{owner}/{repo}/contributors"],listCustomDeploymentRuleIntegrations:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/apps"],listDeployKeys:["GET /repos/{owner}/{repo}/keys"],listDeploymentBranchPolicies:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies"],listDeploymentStatuses:["GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"],listDeployments:["GET /repos/{owner}/{repo}/deployments"],listForAuthenticatedUser:["GET /user/repos"],listForOrg:["GET /orgs/{org}/repos"],listForUser:["GET /users/{username}/repos"],listForks:["GET /repos/{owner}/{repo}/forks"],listInvitations:["GET /repos/{owner}/{repo}/invitations"],listInvitationsForAuthenticatedUser:["GET /user/repository_invitations"],listLanguages:["GET /repos/{owner}/{repo}/languages"],listPagesBuilds:["GET /repos/{owner}/{repo}/pages/builds"],listPublic:["GET /repositories"],listPullRequestsAssociatedWithCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls"],listReleaseAssets:["GET /repos/{owner}/{repo}/releases/{release_id}/assets"],listReleases:["GET /repos/{owner}/{repo}/releases"],listTags:["GET /repos/{owner}/{repo}/tags"],listTeams:["GET /repos/{owner}/{repo}/teams"],listWebhookDeliveries:["GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries"],listWebhooks:["GET /repos/{owner}/{repo}/hooks"],merge:["POST /repos/{owner}/{repo}/merges"],mergeUpstream:["POST /repos/{owner}/{repo}/merge-upstream"],pingWebhook:["POST /repos/{owner}/{repo}/hooks/{hook_id}/pings"],redeliverWebhookDelivery:["POST /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}/attempts"],removeAppAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],removeCollaborator:["DELETE /repos/{owner}/{repo}/collaborators/{username}"],removeStatusCheckContexts:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],removeStatusCheckProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],removeTeamAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],removeUserAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],renameBranch:["POST /repos/{owner}/{repo}/branches/{branch}/rename"],replaceAllTopics:["PUT /repos/{owner}/{repo}/topics"],requestPagesBuild:["POST /repos/{owner}/{repo}/pages/builds"],setAdminBranchProtection:["POST /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],setAppAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],setStatusCheckContexts:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],setTeamAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],setUserAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],testPushWebhook:["POST /repos/{owner}/{repo}/hooks/{hook_id}/tests"],transfer:["POST /repos/{owner}/{repo}/transfer"],update:["PATCH /repos/{owner}/{repo}"],updateBranchProtection:["PUT /repos/{owner}/{repo}/branches/{branch}/protection"],updateCommitComment:["PATCH /repos/{owner}/{repo}/comments/{comment_id}"],updateDeploymentBranchPolicy:["PUT /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],updateInformationAboutPagesSite:["PUT /repos/{owner}/{repo}/pages"],updateInvitation:["PATCH /repos/{owner}/{repo}/invitations/{invitation_id}"],updateOrgRuleset:["PUT /orgs/{org}/rulesets/{ruleset_id}"],updatePullRequestReviewProtection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],updateRelease:["PATCH /repos/{owner}/{repo}/releases/{release_id}"],updateReleaseAsset:["PATCH /repos/{owner}/{repo}/releases/assets/{asset_id}"],updateRepoRuleset:["PUT /repos/{owner}/{repo}/rulesets/{ruleset_id}"],updateStatusCheckPotection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks",{},{renamed:["repos","updateStatusCheckProtection"]}],updateStatusCheckProtection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],updateWebhook:["PATCH /repos/{owner}/{repo}/hooks/{hook_id}"],updateWebhookConfigForRepo:["PATCH /repos/{owner}/{repo}/hooks/{hook_id}/config"],uploadReleaseAsset:["POST /repos/{owner}/{repo}/releases/{release_id}/assets{?name,label}",{baseUrl:"https://uploads.github.com"}]},search:{code:["GET /search/code"],commits:["GET /search/commits"],issuesAndPullRequests:["GET /search/issues",{},{deprecated:"octokit.rest.search.issuesAndPullRequests() is deprecated, see https://docs.github.com/rest/search/search#search-issues-and-pull-requests"}],labels:["GET /search/labels"],repos:["GET /search/repositories"],topics:["GET /search/topics"],users:["GET /search/users"]},secretScanning:{createPushProtectionBypass:["POST /repos/{owner}/{repo}/secret-scanning/push-protection-bypasses"],getAlert:["GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"],getScanHistory:["GET /repos/{owner}/{repo}/secret-scanning/scan-history"],listAlertsForEnterprise:["GET /enterprises/{enterprise}/secret-scanning/alerts"],listAlertsForOrg:["GET /orgs/{org}/secret-scanning/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/secret-scanning/alerts"],listLocationsForAlert:["GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations"],listOrgPatternConfigs:["GET /orgs/{org}/secret-scanning/pattern-configurations"],updateAlert:["PATCH /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"],updateOrgPatternConfigs:["PATCH /orgs/{org}/secret-scanning/pattern-configurations"]},securityAdvisories:{createFork:["POST /repos/{owner}/{repo}/security-advisories/{ghsa_id}/forks"],createPrivateVulnerabilityReport:["POST /repos/{owner}/{repo}/security-advisories/reports"],createRepositoryAdvisory:["POST /repos/{owner}/{repo}/security-advisories"],createRepositoryAdvisoryCveRequest:["POST /repos/{owner}/{repo}/security-advisories/{ghsa_id}/cve"],getGlobalAdvisory:["GET /advisories/{ghsa_id}"],getRepositoryAdvisory:["GET /repos/{owner}/{repo}/security-advisories/{ghsa_id}"],listGlobalAdvisories:["GET /advisories"],listOrgRepositoryAdvisories:["GET /orgs/{org}/security-advisories"],listRepositoryAdvisories:["GET /repos/{owner}/{repo}/security-advisories"],updateRepositoryAdvisory:["PATCH /repos/{owner}/{repo}/security-advisories/{ghsa_id}"]},teams:{addOrUpdateMembershipForUserInOrg:["PUT /orgs/{org}/teams/{team_slug}/memberships/{username}"],addOrUpdateRepoPermissionsInOrg:["PUT /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],checkPermissionsForRepoInOrg:["GET /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],create:["POST /orgs/{org}/teams"],createDiscussionCommentInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"],createDiscussionInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions"],deleteDiscussionCommentInOrg:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],deleteDiscussionInOrg:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],deleteInOrg:["DELETE /orgs/{org}/teams/{team_slug}"],getByName:["GET /orgs/{org}/teams/{team_slug}"],getDiscussionCommentInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],getDiscussionInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],getMembershipForUserInOrg:["GET /orgs/{org}/teams/{team_slug}/memberships/{username}"],list:["GET /orgs/{org}/teams"],listChildInOrg:["GET /orgs/{org}/teams/{team_slug}/teams"],listDiscussionCommentsInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"],listDiscussionsInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions"],listForAuthenticatedUser:["GET /user/teams"],listMembersInOrg:["GET /orgs/{org}/teams/{team_slug}/members"],listPendingInvitationsInOrg:["GET /orgs/{org}/teams/{team_slug}/invitations"],listReposInOrg:["GET /orgs/{org}/teams/{team_slug}/repos"],removeMembershipForUserInOrg:["DELETE /orgs/{org}/teams/{team_slug}/memberships/{username}"],removeRepoInOrg:["DELETE /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],updateDiscussionCommentInOrg:["PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],updateDiscussionInOrg:["PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],updateInOrg:["PATCH /orgs/{org}/teams/{team_slug}"]},users:{addEmailForAuthenticated:["POST /user/emails",{},{renamed:["users","addEmailForAuthenticatedUser"]}],addEmailForAuthenticatedUser:["POST /user/emails"],addSocialAccountForAuthenticatedUser:["POST /user/social_accounts"],block:["PUT /user/blocks/{username}"],checkBlocked:["GET /user/blocks/{username}"],checkFollowingForUser:["GET /users/{username}/following/{target_user}"],checkPersonIsFollowedByAuthenticated:["GET /user/following/{username}"],createGpgKeyForAuthenticated:["POST /user/gpg_keys",{},{renamed:["users","createGpgKeyForAuthenticatedUser"]}],createGpgKeyForAuthenticatedUser:["POST /user/gpg_keys"],createPublicSshKeyForAuthenticated:["POST /user/keys",{},{renamed:["users","createPublicSshKeyForAuthenticatedUser"]}],createPublicSshKeyForAuthenticatedUser:["POST /user/keys"],createSshSigningKeyForAuthenticatedUser:["POST /user/ssh_signing_keys"],deleteAttestationsBulk:["POST /users/{username}/attestations/delete-request"],deleteAttestationsById:["DELETE /users/{username}/attestations/{attestation_id}"],deleteAttestationsBySubjectDigest:["DELETE /users/{username}/attestations/digest/{subject_digest}"],deleteEmailForAuthenticated:["DELETE /user/emails",{},{renamed:["users","deleteEmailForAuthenticatedUser"]}],deleteEmailForAuthenticatedUser:["DELETE /user/emails"],deleteGpgKeyForAuthenticated:["DELETE /user/gpg_keys/{gpg_key_id}",{},{renamed:["users","deleteGpgKeyForAuthenticatedUser"]}],deleteGpgKeyForAuthenticatedUser:["DELETE /user/gpg_keys/{gpg_key_id}"],deletePublicSshKeyForAuthenticated:["DELETE /user/keys/{key_id}",{},{renamed:["users","deletePublicSshKeyForAuthenticatedUser"]}],deletePublicSshKeyForAuthenticatedUser:["DELETE /user/keys/{key_id}"],deleteSocialAccountForAuthenticatedUser:["DELETE /user/social_accounts"],deleteSshSigningKeyForAuthenticatedUser:["DELETE /user/ssh_signing_keys/{ssh_signing_key_id}"],follow:["PUT /user/following/{username}"],getAuthenticated:["GET /user"],getById:["GET /user/{account_id}"],getByUsername:["GET /users/{username}"],getContextForUser:["GET /users/{username}/hovercard"],getGpgKeyForAuthenticated:["GET /user/gpg_keys/{gpg_key_id}",{},{renamed:["users","getGpgKeyForAuthenticatedUser"]}],getGpgKeyForAuthenticatedUser:["GET /user/gpg_keys/{gpg_key_id}"],getPublicSshKeyForAuthenticated:["GET /user/keys/{key_id}",{},{renamed:["users","getPublicSshKeyForAuthenticatedUser"]}],getPublicSshKeyForAuthenticatedUser:["GET /user/keys/{key_id}"],getSshSigningKeyForAuthenticatedUser:["GET /user/ssh_signing_keys/{ssh_signing_key_id}"],list:["GET /users"],listAttestations:["GET /users/{username}/attestations/{subject_digest}"],listAttestationsBulk:["POST /users/{username}/attestations/bulk-list{?per_page,before,after}"],listBlockedByAuthenticated:["GET /user/blocks",{},{renamed:["users","listBlockedByAuthenticatedUser"]}],listBlockedByAuthenticatedUser:["GET /user/blocks"],listEmailsForAuthenticated:["GET /user/emails",{},{renamed:["users","listEmailsForAuthenticatedUser"]}],listEmailsForAuthenticatedUser:["GET /user/emails"],listFollowedByAuthenticated:["GET /user/following",{},{renamed:["users","listFollowedByAuthenticatedUser"]}],listFollowedByAuthenticatedUser:["GET /user/following"],listFollowersForAuthenticatedUser:["GET /user/followers"],listFollowersForUser:["GET /users/{username}/followers"],listFollowingForUser:["GET /users/{username}/following"],listGpgKeysForAuthenticated:["GET /user/gpg_keys",{},{renamed:["users","listGpgKeysForAuthenticatedUser"]}],listGpgKeysForAuthenticatedUser:["GET /user/gpg_keys"],listGpgKeysForUser:["GET /users/{username}/gpg_keys"],listPublicEmailsForAuthenticated:["GET /user/public_emails",{},{renamed:["users","listPublicEmailsForAuthenticatedUser"]}],listPublicEmailsForAuthenticatedUser:["GET /user/public_emails"],listPublicKeysForUser:["GET /users/{username}/keys"],listPublicSshKeysForAuthenticated:["GET /user/keys",{},{renamed:["users","listPublicSshKeysForAuthenticatedUser"]}],listPublicSshKeysForAuthenticatedUser:["GET /user/keys"],listSocialAccountsForAuthenticatedUser:["GET /user/social_accounts"],listSocialAccountsForUser:["GET /users/{username}/social_accounts"],listSshSigningKeysForAuthenticatedUser:["GET /user/ssh_signing_keys"],listSshSigningKeysForUser:["GET /users/{username}/ssh_signing_keys"],setPrimaryEmailVisibilityForAuthenticated:["PATCH /user/email/visibility",{},{renamed:["users","setPrimaryEmailVisibilityForAuthenticatedUser"]}],setPrimaryEmailVisibilityForAuthenticatedUser:["PATCH /user/email/visibility"],unblock:["DELETE /user/blocks/{username}"],unfollow:["DELETE /user/following/{username}"],updateAuthenticated:["PATCH /user"]}},Bke=u7e;var bf=new Map;for(let[e,t]of Object.entries(Bke))for(let[n,o]of Object.entries(t)){let[r,s,i]=o,[a,l]=r.split(/ /),c=Object.assign({method:a,url:l},s);bf.has(e)||bf.set(e,new Map),bf.get(e).set(n,{scope:e,methodName:n,endpointDefaults:c,decorations:i})}var d7e={has({scope:e},t){return bf.get(e).has(t)},getOwnPropertyDescriptor(e,t){return{value:this.get(e,t),configurable:!0,writable:!0,enumerable:!0}},defineProperty(e,t,n){return Object.defineProperty(e.cache,t,n),!0},deleteProperty(e,t){return delete e.cache[t],!0},ownKeys({scope:e}){return[...bf.get(e).keys()]},set(e,t,n){return e.cache[t]=n},get({octokit:e,scope:t,cache:n},o){if(n[o])return n[o];let r=bf.get(t).get(o);if(!r)return;let{endpointDefaults:s,decorations:i}=r;return i?n[o]=p7e(e,t,o,s,i):n[o]=e.request.defaults(s),n[o]}};function I5(e){let t={};for(let n of bf.keys())t[n]=new Proxy({octokit:e,scope:n,cache:{}},d7e);return t}function p7e(e,t,n,o,r){let s=e.request.defaults(o);function i(...a){let l=s.endpoint.merge(...a);if(r.mapToData)return l=Object.assign({},l,{data:l[r.mapToData],[r.mapToData]:void 0}),s(l);if(r.renamed){let[c,u]=r.renamed;e.log.warn(`octokit.${t}.${n}() has been renamed to octokit.${c}.${u}()`)}if(r.deprecated&&e.log.warn(r.deprecated),r.renamedParameters){let c=s.endpoint.merge(...a);for(let[u,p]of Object.entries(r.renamedParameters))u in c&&(e.log.warn(`"${u}" parameter is deprecated for "octokit.${t}.${n}()". Use "${p}" instead`),p in c||(c[p]=c[u]),delete c[u]);return s(c)}return s(...a)}return Object.assign(i,s)}function m7e(e){return{rest:I5(e)}}m7e.VERSION=k5;function P5(e){let t=I5(e);return{...t,rest:t}}P5.VERSION=k5;var zke="22.0.0";var Gke=My.plugin(C5,P5,A5).defaults({userAgent:`octokit-rest.js/${zke}`});function Vke(e){return e==null||e.trim()===""}var Su=function(){if(typeof globalThis<"u")return globalThis;if(typeof global<"u")return global;if(typeof self<"u")return self;if(typeof window<"u")return window;try{return new Function("return this")()}catch{return{}}}();Su.trustedTypes===void 0&&(Su.trustedTypes={createPolicy:(e,t)=>t});var Qke={configurable:!1,enumerable:!1,writable:!1};Su.FAST===void 0&&Reflect.defineProperty(Su,"FAST",Object.assign({value:Object.create(null)},Qke));var _f=Su.FAST;if(_f.getById===void 0){let e=Object.create(null);Reflect.defineProperty(_f,"getById",Object.assign({value(t,n){let o=e[t];return o===void 0&&(o=n?e[t]=n():null),o}},Qke))}var _1=Object.freeze([]);function y1(){let e=new WeakMap;return function(t){let n=e.get(t);if(n===void 0){let o=Reflect.getPrototypeOf(t);for(;n===void 0&&o!==null;)n=e.get(o),o=Reflect.getPrototypeOf(o);n=n===void 0?[]:n.slice(0),e.set(t,n)}return n}}var L5=Su.FAST.getById(1,()=>{let e=[],t=[];function n(){if(t.length)throw t.shift()}function o(i){try{i.call()}catch(a){t.push(a),setTimeout(n,0)}}function r(){let a=0;for(;a1024){for(let l=0,c=e.length-a;le}),R5=Yke,oC=`fast-${Math.random().toString(36).substring(2,8)}`,M5=`${oC}{`,v1=`}${oC}`,It=Object.freeze({supportsAdoptedStyleSheets:Array.isArray(document.adoptedStyleSheets)&&"replace"in CSSStyleSheet.prototype,setHTMLPolicy(e){if(R5!==Yke)throw new Error("The HTML policy can only be set once.");R5=e},createHTML(e){return R5.createHTML(e)},isMarker(e){return e&&e.nodeType===8&&e.data.startsWith(oC)},extractDirectiveIndexFromMarker(e){return parseInt(e.data.replace(`${oC}:`,""))},createInterpolationPlaceholder(e){return`${M5}${e}${v1}`},createCustomAttributePlaceholder(e,t){return`${e}="${this.createInterpolationPlaceholder(t)}"`},createBlockPlaceholder(e){return``},queueUpdate:L5.enqueue,processUpdates:L5.process,nextUpdate(){return new Promise(L5.enqueue)},setAttribute(e,t,n){n==null?e.removeAttribute(t):e.setAttribute(t,n)},setBooleanAttribute(e,t,n){n?e.setAttribute(t,""):e.removeAttribute(t)},removeChildNodes(e){for(let t=e.firstChild;t!==null;t=e.firstChild)e.removeChild(t)},createTemplateWalker(e){return document.createTreeWalker(e,133,null,!1)}});var Tp=class{constructor(t,n){this.sub1=void 0,this.sub2=void 0,this.spillover=void 0,this.source=t,this.sub1=n}has(t){return this.spillover===void 0?this.sub1===t||this.sub2===t:this.spillover.indexOf(t)!==-1}subscribe(t){let n=this.spillover;if(n===void 0){if(this.has(t))return;if(this.sub1===void 0){this.sub1=t;return}if(this.sub2===void 0){this.sub2=t;return}this.spillover=[this.sub1,this.sub2,t],this.sub1=void 0,this.sub2=void 0}else n.indexOf(t)===-1&&n.push(t)}unsubscribe(t){let n=this.spillover;if(n===void 0)this.sub1===t?this.sub1=void 0:this.sub2===t&&(this.sub2=void 0);else{let o=n.indexOf(t);o!==-1&&n.splice(o,1)}}notify(t){let n=this.spillover,o=this.source;if(n===void 0){let r=this.sub1,s=this.sub2;r!==void 0&&r.handleChange(o,t),s!==void 0&&s.handleChange(o,t)}else for(let r=0,s=n.length;r{let e=/(:|&&|\|\||if)/,t=new WeakMap,n=It.queueUpdate,o,r=c=>{throw new Error("Must call enableArrayObservation before observing arrays.")};function s(c){let u=c.$fastController||t.get(c);return u===void 0&&(Array.isArray(c)?u=r(c):t.set(c,u=new Dy(c))),u}let i=y1();class a{constructor(u){this.name=u,this.field=`_${u}`,this.callback=`${u}Changed`}getValue(u){return o!==void 0&&o.watch(u,this.name),u[this.field]}setValue(u,p){let m=this.field,g=u[m];if(g!==p){u[m]=p;let f=u[this.callback];typeof f=="function"&&f.call(u,g,p),s(u).notify(this.name)}}}class l extends Tp{constructor(u,p,m=!1){super(u,p),this.binding=u,this.isVolatileBinding=m,this.needsRefresh=!0,this.needsQueue=!0,this.first=this,this.last=null,this.propertySource=void 0,this.propertyName=void 0,this.notifier=void 0,this.next=void 0}observe(u,p){this.needsRefresh&&this.last!==null&&this.disconnect();let m=o;o=this.needsRefresh?this:void 0,this.needsRefresh=this.isVolatileBinding;let g=this.binding(u,p);return o=m,g}disconnect(){if(this.last!==null){let u=this.first;for(;u!==void 0;)u.notifier.unsubscribe(this,u.propertyName),u=u.next;this.last=null,this.needsRefresh=this.needsQueue=!0}}watch(u,p){let m=this.last,g=s(u),f=m===null?this.first:{};if(f.propertySource=u,f.propertyName=p,f.notifier=g,g.subscribe(this,p),m!==null){if(!this.needsRefresh){let _;o=void 0,_=m.propertySource[m.propertyName],o=this,u===_&&(this.needsRefresh=!0)}m.next=f}this.last=f}handleChange(){this.needsQueue&&(this.needsQueue=!1,n(this))}call(){this.last!==null&&(this.needsQueue=!0,this.notify(this))}records(){let u=this.first;return{next:()=>{let p=u;return p===void 0?{value:void 0,done:!0}:(u=u.next,{value:p,done:!1})},[Symbol.iterator]:function(){return this}}}}return Object.freeze({setArrayObserverFactory(c){r=c},getNotifier:s,track(c,u){o!==void 0&&o.watch(c,u)},trackVolatile(){o!==void 0&&(o.needsRefresh=!0)},notify(c,u){s(c).notify(u)},defineProperty(c,u){typeof u=="string"&&(u=new a(u)),i(c).push(u),Reflect.defineProperty(c,u.name,{enumerable:!0,get:function(){return u.getValue(this)},set:function(p){u.setValue(this,p)}})},getAccessors:i,binding(c,u,p=this.isVolatileBinding(c)){return new l(c,u,p)},isVolatileBinding(c){return e.test(c.toString())}})});function j(e,t){an.defineProperty(e,t)}var jke=_f.getById(3,()=>{let e=null;return{get(){return e},set(t){e=t}}}),wp=class{constructor(){this.index=0,this.length=0,this.parent=null,this.parentContext=null}get event(){return jke.get()}get isEven(){return this.index%2===0}get isOdd(){return this.index%2!==0}get isFirst(){return this.index===0}get isInMiddle(){return!this.isFirst&&!this.isLast}get isLast(){return this.index===this.length-1}static setEvent(t){jke.set(t)}};an.defineProperty(wp.prototype,"index");an.defineProperty(wp.prototype,"length");var dn=Object.seal(new wp);var Jl=class{constructor(){this.targetIndex=0}},$y=class extends Jl{constructor(){super(...arguments),this.createPlaceholder=It.createInterpolationPlaceholder}},x1=class extends Jl{constructor(t,n,o){super(),this.name=t,this.behavior=n,this.options=o}createPlaceholder(t){return It.createCustomAttributePlaceholder(this.name,t)}createBehavior(t){return new this.behavior(t,this.options)}};function g7e(e,t){this.source=e,this.context=t,this.bindingObserver===null&&(this.bindingObserver=an.binding(this.binding,this,this.isBindingVolatile)),this.updateTarget(this.bindingObserver.observe(e,t))}function f7e(e,t){this.source=e,this.context=t,this.target.addEventListener(this.targetName,this)}function h7e(){this.bindingObserver.disconnect(),this.source=null,this.context=null}function b7e(){this.bindingObserver.disconnect(),this.source=null,this.context=null;let e=this.target.$fastView;e!==void 0&&e.isComposed&&(e.unbind(),e.needsBindOnly=!0)}function _7e(){this.target.removeEventListener(this.targetName,this),this.source=null,this.context=null}function y7e(e){It.setAttribute(this.target,this.targetName,e)}function v7e(e){It.setBooleanAttribute(this.target,this.targetName,e)}function x7e(e){if(e==null&&(e=""),e.create){this.target.textContent="";let t=this.target.$fastView;t===void 0?t=e.create():this.target.$fastTemplate!==e&&(t.isComposed&&(t.remove(),t.unbind()),t=e.create()),t.isComposed?t.needsBindOnly&&(t.needsBindOnly=!1,t.bind(this.source,this.context)):(t.isComposed=!0,t.bind(this.source,this.context),t.insertBefore(this.target),this.target.$fastView=t,this.target.$fastTemplate=e)}else{let t=this.target.$fastView;t!==void 0&&t.isComposed&&(t.isComposed=!1,t.remove(),t.needsBindOnly?t.needsBindOnly=!1:t.unbind()),this.target.textContent=e}}function T7e(e){this.target[this.targetName]=e}function w7e(e){let t=this.classVersions||Object.create(null),n=this.target,o=this.version||0;if(e!=null&&e.length){let r=e.split(/\s+/);for(let s=0,i=r.length;sIt.createHTML(n(o,r))}break;case"?":this.cleanedTargetName=t.substr(1),this.updateTarget=v7e;break;case"@":this.cleanedTargetName=t.substr(1),this.bind=f7e,this.unbind=_7e;break;default:this.cleanedTargetName=t,t==="class"&&(this.updateTarget=w7e);break}}targetAtContent(){this.updateTarget=x7e,this.unbind=b7e}createBehavior(t){return new D5(t,this.binding,this.isBindingVolatile,this.bind,this.unbind,this.updateTarget,this.cleanedTargetName)}},D5=class{constructor(t,n,o,r,s,i,a){this.source=null,this.context=null,this.bindingObserver=null,this.target=t,this.binding=n,this.isBindingVolatile=o,this.bind=r,this.unbind=s,this.updateTarget=i,this.targetName=a}handleChange(){this.updateTarget(this.bindingObserver.observe(this.source,this.context))}handleEvent(t){wp.setEvent(t);let n=this.binding(this.source,this.context);wp.setEvent(null),n!==!0&&t.preventDefault()}};var $5=null,N5=class e{addFactory(t){t.targetIndex=this.targetIndex,this.behaviorFactories.push(t)}captureContentBinding(t){t.targetAtContent(),this.addFactory(t)}reset(){this.behaviorFactories=[],this.targetIndex=-1}release(){$5=this}static borrow(t){let n=$5||new e;return n.directives=t,n.reset(),$5=null,n}};function S7e(e){if(e.length===1)return e[0];let t,n=e.length,o=e.map(i=>typeof i=="string"?()=>i:(t=i.targetName||t,i.binding)),r=(i,a)=>{let l="";for(let c=0;ca),c.targetName=i.name):c=S7e(l),c!==null&&(t.removeAttributeNode(i),r--,s--,e.addFactory(c))}}function E7e(e,t,n){let o=Kke(e,t.textContent);if(o!==null){let r=t;for(let s=0,i=o.length;s0}let n=this.fragment.cloneNode(!0),o=this.viewBehaviorFactories,r=new Array(this.behaviorCount),s=It.createTemplateWalker(n),i=0,a=this.targetOffset,l=s.nextNode();for(let c=o.length;i=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/;function K(e,...t){let n=[],o="";for(let r=0,s=e.length-1;rl}if(typeof a=="function"&&(a=new yf(a)),a instanceof $y){let l=A7e.exec(i);l!==null&&(a.targetName=l[2])}a instanceof Jl?(o+=a.createPlaceholder(n.length),n.push(a)):o+=a}return o+=e[e.length-1],new T1(o,n)}var Es=class{constructor(){this.targets=new WeakSet}addStylesTo(t){this.targets.add(t)}removeStylesFrom(t){this.targets.delete(t)}isAttachedTo(t){return this.targets.has(t)}withBehaviors(...t){return this.behaviors=this.behaviors===null?t:this.behaviors.concat(t),this}};Es.create=(()=>{if(It.supportsAdoptedStyleSheets){let e=new Map;return t=>new U5(t,e)}return e=>new O5(e)})();function q5(e){return e.map(t=>t instanceof Es?q5(t.styles):[t]).reduce((t,n)=>t.concat(n),[])}function Xke(e){return e.map(t=>t instanceof Es?t.behaviors:null).reduce((t,n)=>n===null?t:(t===null&&(t=[]),t.concat(n)),null)}var Zke=(e,t)=>{e.adoptedStyleSheets=[...e.adoptedStyleSheets,...t]},eIe=(e,t)=>{e.adoptedStyleSheets=e.adoptedStyleSheets.filter(n=>t.indexOf(n)===-1)};if(It.supportsAdoptedStyleSheets)try{document.adoptedStyleSheets.push(),document.adoptedStyleSheets.splice(),Zke=(e,t)=>{e.adoptedStyleSheets.push(...t)},eIe=(e,t)=>{for(let n of t){let o=e.adoptedStyleSheets.indexOf(n);o!==-1&&e.adoptedStyleSheets.splice(o,1)}}}catch{}var U5=class extends Es{constructor(t,n){super(),this.styles=t,this.styleSheetCache=n,this._styleSheets=void 0,this.behaviors=Xke(t)}get styleSheets(){if(this._styleSheets===void 0){let t=this.styles,n=this.styleSheetCache;this._styleSheets=q5(t).map(o=>{if(o instanceof CSSStyleSheet)return o;let r=n.get(o);return r===void 0&&(r=new CSSStyleSheet,r.replaceSync(o),n.set(o,r)),r})}return this._styleSheets}addStylesTo(t){Zke(t,this.styleSheets),super.addStylesTo(t)}removeStylesFrom(t){eIe(t,this.styleSheets),super.removeStylesFrom(t)}},k7e=0;function I7e(){return`fast-style-class-${++k7e}`}var O5=class extends Es{constructor(t){super(),this.styles=t,this.behaviors=null,this.behaviors=Xke(t),this.styleSheets=q5(t),this.styleClass=I7e()}addStylesTo(t){let n=this.styleSheets,o=this.styleClass;t=this.normalizeTarget(t);for(let r=0;r{o.add(t);let r=t[this.fieldName];switch(n){case"reflect":let s=this.converter;It.setAttribute(t,this.attribute,s!==void 0?s.toView(r):r);break;case"boolean":It.setBooleanAttribute(t,this.attribute,r);break}o.delete(t)})}static collect(t,...n){let o=[];n.push(tIe.locate(t));for(let r=0,s=n.length;r1&&(n.property=s),tIe.locate(r.constructor).push(n)}if(arguments.length>1){n={},o(e,t);return}return n=e===void 0?{}:e,o}var nIe={mode:"open"},oIe={},H5=_f.getById(4,()=>{let e=new Map;return Object.freeze({register(t){return e.has(t.type)?!1:(e.set(t.type,t),!0)},getByType(t){return e.get(t)}})}),vf=class{constructor(t,n=t.definition){typeof n=="string"&&(n={name:n}),this.type=t,this.name=n.name,this.template=n.template;let o=w1.collect(t,n.attributes),r=new Array(o.length),s={},i={};for(let a=0,l=o.length;a0){let s=this.boundObservables=Object.create(null);for(let i=0,a=r.length;i0||n>0;){if(t===0){r.push(G5),n--;continue}if(n===0){r.push(V5),t--;continue}let s=e[t-1][n-1],i=e[t-1][n],a=e[t][n-1],l;i=0){e.splice(a,1),a--,i-=l.addedCount-l.removed.length,r.addedCount+=l.addedCount-c;let u=r.removed.length+l.removed.length-c;if(!r.addedCount&&!u)s=!0;else{let p=l.removed;if(r.indexl.index+l.addedCount){let m=r.removed.slice(l.index+l.addedCount-r.index);aIe.apply(p,m)}r.removed=p,l.indexo?n=o-e.addedCount:n<0&&(n=o+e.removed.length+n-e.addedCount),n<0&&(n=0),e.index=n,e}var j5=class extends Tp{constructor(t){super(t),this.oldCollection=void 0,this.splices=void 0,this.needsQueue=!0,this.call=this.flush,Reflect.defineProperty(t,"$fastController",{value:this,enumerable:!1})}subscribe(t){this.flush(),super.subscribe(t)}addSplice(t){this.splices===void 0?this.splices=[t]:this.splices.push(t),this.needsQueue&&(this.needsQueue=!1,It.queueUpdate(this))}reset(t){this.oldCollection=t,this.needsQueue&&(this.needsQueue=!1,It.queueUpdate(this))}flush(){let t=this.splices,n=this.oldCollection;if(t===void 0&&n===void 0)return;this.needsQueue=!0,this.splices=void 0,this.oldCollection=void 0;let o=n===void 0?uIe(this.source,t):Q5(this.source,0,this.source.length,n,0,n.length);this.notify(o)}};function pIe(){if(dIe)return;dIe=!0,an.setArrayObserverFactory(l=>new j5(l));let e=Array.prototype;if(e.$fastPatch)return;Reflect.defineProperty(e,"$fastPatch",{value:1,enumerable:!1});let t=e.pop,n=e.push,o=e.reverse,r=e.shift,s=e.sort,i=e.splice,a=e.unshift;e.pop=function(){let l=this.length>0,c=t.apply(this,arguments),u=this.$fastController;return u!==void 0&&l&&u.addSplice(Qi(this.length,[c],0)),c},e.push=function(){let l=n.apply(this,arguments),c=this.$fastController;return c!==void 0&&c.addSplice(Y5(Qi(this.length-arguments.length,[],arguments.length),this)),l},e.reverse=function(){let l,c=this.$fastController;c!==void 0&&(c.flush(),l=this.slice());let u=o.apply(this,arguments);return c!==void 0&&c.reset(l),u},e.shift=function(){let l=this.length>0,c=r.apply(this,arguments),u=this.$fastController;return u!==void 0&&l&&u.addSplice(Qi(0,[c],0)),c},e.sort=function(){let l,c=this.$fastController;c!==void 0&&(c.flush(),l=this.slice());let u=s.apply(this,arguments);return c!==void 0&&c.reset(l),u},e.splice=function(){let l=i.apply(this,arguments),c=this.$fastController;return c!==void 0&&c.addSplice(Y5(Qi(+arguments[0],l,arguments.length>2?arguments.length-2:0),this)),l},e.unshift=function(){let l=a.apply(this,arguments),c=this.$fastController;return c!==void 0&&c.addSplice(Y5(Qi(0,[],arguments.length),this)),l}}var W5=class{constructor(t,n){this.target=t,this.propertyName=n}bind(t){t[this.propertyName]=this.target}unbind(){}};function Sp(e){return new x1("fast-ref",W5,e)}var K5=e=>typeof e=="function";var q7e=()=>null;function mIe(e){return e===void 0?q7e:K5(e)?e:()=>e}function Pe(e,t,n){let o=K5(e)?e:()=>e,r=mIe(t),s=mIe(n);return(i,a)=>o(i,a)?r(i,a):s(i,a)}var gIe=Object.freeze({positioning:!1,recycle:!0});function H7e(e,t,n,o){e.bind(t[n],o)}function B7e(e,t,n,o){let r=Object.create(o);r.index=n,r.length=t.length,e.bind(t[n],r)}var J5=class{constructor(t,n,o,r,s,i){this.location=t,this.itemsBinding=n,this.templateBinding=r,this.options=i,this.source=null,this.views=[],this.items=null,this.itemsObserver=null,this.originalContext=void 0,this.childContext=void 0,this.bindView=H7e,this.itemsBindingObserver=an.binding(n,this,o),this.templateBindingObserver=an.binding(r,this,s),i.positioning&&(this.bindView=B7e)}bind(t,n){this.source=t,this.originalContext=n,this.childContext=Object.create(n),this.childContext.parent=t,this.childContext.parentContext=this.originalContext,this.items=this.itemsBindingObserver.observe(t,this.originalContext),this.template=this.templateBindingObserver.observe(t,this.originalContext),this.observeItems(!0),this.refreshAllViews()}unbind(){this.source=null,this.items=null,this.itemsObserver!==null&&this.itemsObserver.unsubscribe(this),this.unbindAllViews(),this.itemsBindingObserver.disconnect(),this.templateBindingObserver.disconnect()}handleChange(t,n){t===this.itemsBinding?(this.items=this.itemsBindingObserver.observe(this.source,this.originalContext),this.observeItems(),this.refreshAllViews()):t===this.templateBinding?(this.template=this.templateBindingObserver.observe(this.source,this.originalContext),this.refreshAllViews(!0)):this.updateViews(n)}observeItems(t=!1){if(!this.items){this.items=_1;return}let n=this.itemsObserver,o=this.itemsObserver=an.getNotifier(this.items),r=n!==o;r&&n!==null&&n.unsubscribe(this),(r||t)&&o.subscribe(this)}updateViews(t){let n=this.childContext,o=this.views,r=this.bindView,s=this.items,i=this.template,a=this.options.recycle,l=[],c=0,u=0;for(let p=0,m=t.length;p0?(_<=w&&x.length>0?(Q=x[_],_++):(Q=l[c],c++),u--):Q=i.create(),o.splice(h,0,Q),r(Q,s,h,n),Q.insertBefore(E)}x[_]&&l.push(...x.slice(_))}for(let p=c,m=l.length;pt;return new X5(e,o,Object.assign(Object.assign({},gIe),n))}var z7e=z5` .modal-background { bottom: 0; left: 0; position: fixed; right: 0; top: 0; z-index: 1040; } .modal-background + div:not(.modal-content) { width: auto; height: auto; } .modal-card { top: 30%; max-width: 650px; z-index: 10001; margin: 0 auto; } .buttons-center { justify-content: center; } `;function fIe(e,t,n,o){let r=["default-focus","button","font-weight-semibold","modal-close"],s=typeof t=="function"?t(e):t;s.classes&&r.push("button-filled");let i=new Set([...s.classes??[],...r]);if(s.url)return K` ${s.label} `;let a=s.object?`${s.action} - ${s.object}`:`${s.action}`;return K` `}function G7e({message:e,title:t,confirmButton:n,cancelButton:o,align:r}){let s=i=>({action:Fe,label:Fe,...typeof o=="function"?o(i):o});return K` ${Pe(i=>i.visible,K``)} `}var E1=class extends iIe{constructor(){super(...arguments);this.visible=!1}connectedCallback(){super.connectedCallback()}confirm(){this.visible=!1,this.$emit("confirm"),this.showVerticalScrollbar()}cancel(){this.visible=!1,this.$emit("cancel"),this.showVerticalScrollbar()}close(){this.visible=!1,this.$emit("close"),this.showVerticalScrollbar()}setFocus(){It.queueUpdate(()=>{let n=document.getElementsByClassName("default-focus")[0];n&&n.focus();let o=".modal-close, .modal-card .button",r=document.querySelector(".modal-card");if(!r)return;let s=r.querySelectorAll(o),i=s[0],a=s[s.length-1];document.addEventListener("keydown",l=>{(l.key==="Tab"||l.keyCode===9)&&(l.shiftKey?(document.activeElement===i||s.length===1)&&(a.focus(),l.preventDefault()):(document.activeElement===a||s.length===1)&&(i.focus(),l.preventDefault()))})})}hideVerticalScrollbar(){document.getElementsByTagName("html")[0].style.overflowY="hidden"}showVerticalScrollbar(){document.getElementsByTagName("html")[0].removeAttribute("style")}};z([j],E1.prototype,"visible",2);var A1=class extends E1{showModal(t,n,o){this.visible=!0,this.hideVerticalScrollbar(),this.confirmCallback=t,this.cancelCallback=n,this.closeCallback=o,this.setFocus()}confirm(){super.confirm(),this.confirmCallback&&this.confirmCallback()}cancel(){super.cancel(),this.cancelCallback&&this.cancelCallback()}close(){super.close(),this.closeCallback&&this.closeCallback()}};function hIe(e,t,n){return A1.define(class extends A1{},{name:e,template:G7e(n),styles:z7e,shadowOptions:null,attributes:t??[]})}var Z5=0;function k1(e,t){if(typeof e!="string"){let r=e;e="";for(let s in r)e+=r[s]+"
    "}let n=document.getElementById("error-modal");n&&document.body.removeChild(n),hIe(`error-modal-${Z5}`,[],{message:K`

    ${e}

    `,title:"",confirmButton:t,align:"center"});let o=document.createElement(`error-modal-${Z5}`);o.id="error-modal",document.body.appendChild(o),o.showModal(),Z5++}function I1(...e){let t=a=>[...a].join("/"),n=(a,...l)=>{let c=new URLSearchParams;for(let u of l)a.searchParams.has(u)&&c.set(u,a.searchParams.get(u)??"");return c},o=new URL(location.href),r=n(o,"branch","themebranch","branchFallbackFrom","pr"),s=r.toString()!==""?"?"+r.toString():"",i=`/${b.data.userLocale}/editor/`+t(e)+s;return new URL(i,o)}function bIe(e){e||(e=I1());let t="";return L.supportLevel==="development"&&L.accessLevel==="online"&&location.hostname.startsWith("pr")?t="630f400e5ecc44019564":L.supportLevel==="development"&&L.accessLevel==="online"?t="3e1dd7a2769cc245c17d":t="7f9273caa02d97194b28",`${D.githubOAuth}?client_id=${t}&scope=repo%20read:org%20workflow&redirect_uri=${encodeURIComponent(e.href)}`}var P1=Gke.plugin(p5,g1),L1={onRateLimit:(e,t)=>{if(t.request.retryCount<=3)return!0;throw new Error("Rate limit exceeded. Retries failed. Please try again later.")},onAbuseLimit:(e,t)=>{throw new Error(`Abuse detected for request ${t.method} ${t.url}`)},onSecondaryRateLimit:(e,t)=>{if(t.request.retryCount<=3)return!0;throw new Error("Secondary Rate limit exceeded. Retries failed. Please try again later.")}},R1={doNotRetry:[429,409,404]};function Fy(){let e=localStorage.getItem("gitHubToken");return e?JSON.parse(e):null}async function yIe(e,t,n){let o=new P1({auth:n.access_token,retry:R1,throttle:L1});try{let{data:r}=await o.repos.get({owner:e,repo:t});return r}catch(r){return $1({message:r.toString(),function:"fetchRepo",owner:e,repo:t}),null}}function vIe(){localStorage.removeItem("gitHubToken")}var V7e=()=>{localStorage.removeItem("gitHubToken"),location.href=bIe()};async function M1(e){let t=new P1({auth:e,retry:R1,throttle:L1});try{return(await t.users.getAuthenticated({headers:{"If-None-Match":""}})).data.login}catch(n){throw k1({message:aQ},{label:dQ,action:"",object:"",classes:["button-primary renew-github-token"]}),document.addEventListener("confirm",r=>V7e()),$1({message:n.toString(),function:"getAuthenticatedUser"}),n}}function _Ie(e){return decodeURIComponent(atob(e).split("").map(function(t){return"%"+("00"+t.charCodeAt(0).toString(16)).slice(-2)}).join(""))}function Q7e(e){return btoa(encodeURIComponent(e).replace(/%([0-9A-F]{2})/g,function(n,o){return String.fromCharCode(parseInt(`0x${o}`))})).replace(/(.{60})/g,`$1 `).trimEnd()+` `}async function xIe(e,t,n,o){let r=Fy();if(!r)return{content:null,html_url:null,sha:null};let s=new P1({auth:r.access_token,retry:R1,throttle:L1});if(!n.includes(".")||n.endsWith("/"))return{content:null,html_url:null,sha:null};let i={owner:e,repo:t,path:n,ref:o};Vke(o)&&delete i.ref;try{let l=(await s.repos.getContent({owner:e,repo:t,path:n,ref:o??void 0,headers:{"If-None-Match":""}})).data;if(l&&l.content)return{content:_Ie(l.content),html_url:l.html_url,sha:l.sha};if(l&&l.sha){let c=await s.git.getBlob({owner:e,repo:t,file_sha:l.sha,headers:{"If-None-Match":""}});if(c?.data&&c?.data.content)return{content:_Ie(c.data.content),html_url:l.html_url,sha:l.sha}}}catch(a){$1({message:a.toString(),function:"fetchContent",owner:e,repo:t,path:n,baseRef:o??void 0})}return{content:null,html_url:null,sha:null}}async function TIe(e,t,n,o,r,s,i){let a=Fy();if(!a)return{error:P2};let l=new P1({auth:a.access_token,retry:R1,throttle:L1});if(!n.includes(".")||n.endsWith("/"))return{error:P2};try{return await l.repos.createOrUpdateFileContents({owner:e,repo:t,path:n,message:o,content:Q7e(r),branch:s,sha:i}),{error:""}}catch(c){return $1({message:c.toString(),function:"createOrUpdateFileContents",owner:e,repo:t,path:n}),{error:c.toString()}}}async function wIe(e){let t={method:"GET"},n=D.buildAuthAdmin;L.supportLevel==="development"&&L.accessLevel==="online"&&location.hostname.startsWith("ppe.preview")&&(n=D.prDevBuildAuthAdmin);let o=await R(N(`${n}/signin-github?code=${e}&signinMode=OAuthApp`,t,!1));if(ee(o),o.ok){let r=await o.json();return r&&r.access_token?r:null}return null}async function SIe(){let e={method:"GET"},t=await R(N(`${D.buildAuthAdmin}/opensource/link/github`,e,!0));return ee(t),t.ok?await t.json():null}var D1=`pageInfo { endCursor hasNextPage hasPreviousPage startCursor }`,e8=`items: nodes { ... on PullRequest { id number title base: baseRef { name prefix repository { name nameWithOwner owner { login } } } changedFiles closed closedAt createdAt files(first: 100) { items: nodes { path } ${D1} totalCount } head: headRef { name prefix repository { name nameWithOwner owner { login } } } isDraft merged mergedAt repository { name nameWithOwner owner { login } } state updatedAt url } }`,t8=`rateLimit { cost limit nodeCount remaining resetAt used }`,c5t=`query Drafts ($draftsQuery:String!, $inReviewQuery:String!, $closedQuery:String!, $first:Int, $after:String) { drafts: search(query: $draftsQuery, type: ISSUE, first: $first, after: $after) { totalCount: issueCount ${e8} ${D1} } inReview: search(query: $inReviewQuery, type: ISSUE) { totalCount: issueCount } closed: search(query: $closedQuery, type: ISSUE) { totalCount: issueCount } ${t8} }`,u5t=`query InReview ($draftsQuery:String!, $inReviewQuery:String!, $closedQuery:String!, $first:Int, $after:String) { drafts: search(query: $draftsQuery, type: ISSUE) { totalCount: issueCount } inReview: search(query: $inReviewQuery, type: ISSUE, first: $first, after: $after) { totalCount: issueCount, ${e8} ${D1} } closed: search(query: $closedQuery, type: ISSUE) { totalCount: issueCount } ${t8} }`,d5t=`query Closed ($draftsQuery:String!, $inReviewQuery:String!, $closedQuery:String!, $first:Int, $after:String) { drafts: search(query: $draftsQuery, type: ISSUE) { totalCount: issueCount } inReview: search(query: $inReviewQuery, type: ISSUE) { totalCount: issueCount } closed: search(query: $closedQuery, type: ISSUE, first: $first, after: $after) { totalCount: issueCount ${e8} ${D1} } ${t8} }`;function $1(e){Ee({actionType:Re.OTHER,behavior:Ce.OTHER,content:{section:"admin-editor",type:"error",event:"Exception",...e}})}ot();Mm();var Y7e=/https:\/\/github.com\/(.*?)\/(.*?)\/(.*?)\/(.*?)\/(.*\.[a-zA-Z]+)([?])?/;function CIe(e,t=Y7e){let n="",o="",r="",s="";try{let i=t.exec(e);i&&i.length>1&&(n=i[1]??""),i&&i.length>2&&(o=i[2]??""),i&&i.length>3&&(s=i[4]??""),i&&i.length>4&&(r=i[5]??"")}catch(i){k1(iQ),Ee({actionType:Re.OTHER,behavior:Ce.OTHER,content:{section:"admin-editor",type:"error",event:"Exception",message:i}})}return{owner:n,repo:o,path:r,branch:s}}async function n8(e){let t=await R(e,{credentials:"include",redirect:"follow"});if(!t.ok)throw new Error(`Unexpected response status ${t.status} for ${e}`);let n=await t.text(),r=new DOMParser().parseFromString(n,"text/html");return{url:new URL(t.url||e,location.origin),document:r}}function N1(e){return Array.from(e?.querySelectorAll("meta")??[]).reduce((t,n)=>{let o=(n.name||n?.getAttribute("property"))??"";return t[o]=n.content,t},{})}var o8={template:"",forkUrl:"",branch:"",path:"",repo:"",owner:"",originalContent:""};function EIe(e){let t="",n="",o="",r="",s="",a=N1(e)?.original_content_git_url??"";({branch:r,path:s,repo:o,owner:n}=CIe(a)),o8={template:"",forkUrl:"",branch:r,path:s,repo:o,owner:n,originalContent:a};let l=e.querySelector("a[data-contenteditbtn]");if(l){let c=l?.getAttribute("data-original_content_git_url_template")??"";if(c){let u=l?.getAttribute("data-pr_repo")??"",p=l?.getAttribute("data-pr_branch")??"";u&&p&&(t=c.replace("{repo}",u).replace("{branch}",p),[n,o]=(l?.getAttribute("data-pr_repo")??"")?.split("github.com/")?.pop()?.split("/")??["",""]);let m=c?.split("{branch}/")?.pop()??"";(l?.getAttribute("data-pr_branch")??"")&&(r=l?.getAttribute("data-pr_branch")??""),o8={template:c,forkUrl:t,branch:r,path:m,repo:o,owner:n,originalContent:a}}}return o8}function AIe(e,t,n,o){return d` `}function kIe(e,t){let n=cQ,o=uQ,r="",s=t.getAttribute("href")||"";switch(t.removeAttribute("href"),e){case 0:n=n.replace("{name}",Sm),o=o.replace("{name}",Sm).replace("{href}","https://learn.microsoft.com/en-us/contribute/");break;case 1:n=n.replace("{name}",Sm),o=o.replace("{name}",Sm).replace("{href}","https://learn.microsoft.com/en-us/help/get-started/?tabs=learn");break;case 2:n=n.replace("{name}",Sm),o=o.replace("{name}",Sm).replace("{href}","https://learn.microsoft.com/en-us/help/get-started/?tabs=learn"),r=lQ;break;case 3:n=n.replace("{name}",ok),o=o.replace("{name}",ok).replace("{href}","https://learn.microsoft.com/en-us/help/get-started/?tabs=learn"),s=j7e().toString();break}return{title:n,description:o,link:s,moreInfo:r}}function j7e(){let e=N1(document),t=e.platform_id||"",n=e.monikers??"",{owner:o,repo:r,branch:s,path:i}=EIe(document);return I1(`${o}/${r}/${encodeURIComponent(i)}/${encodeURIComponent(s)}${t?`/${t}/${n??""}`:""}`)}ot();var Cp={CreateSnapshotError:"CreateSnapshotError",ScoreSnapshotError:"ScoreSnapshotError",RenewalAssessmentNotFound:"renewalAssessmentNotFound"};var Cu=class e extends Error{constructor(t,n,{errorCode:o,message:r},...s){super(...s),Object.setPrototypeOf(this,e.prototype),this.type=t,this.name=this.constructor.name,this.status=n,this.errorCode=o,this.message=r,this.detail={assessmentId:null,certificationUid:null,snapshotId:null}}};function Ep(e){let t=xf(),n=Tf(),o=r8(),r=s8(),s=W7e();return{locale:e,SkipVerification:t,SnapshotVersion:n,ShowAllQuestions:o,AccommodationRequested:r,TemporaryPreview:s}}function xf(){let e="false";if(["AppliedSkills","AppliedSkillsAssessment","AppliedSkillsAssessmentReport"].find(t=>t===b.data.pageTemplate))return me()["skip-verification"];if(S.stayCurrentAllowParam||S.practiceAssessmentsAllowParam){let t=me()["skip-verification"];t===void 0||t.length&&t.toLowerCase()==="false"?e="false":e="true"}return e}function Tf(){let e="live";if(S.stayCurrentAllowParam||S.practiceAssessmentsAllowParam){let t=me()["snapshot-version"];t!==void 0&&t.toLowerCase()==="live"?e="live":e="preview"}return e}function r8(){let e="false";if(S.stayCurrentAllowParam||S.practiceAssessmentsAllowParam){let t=me()["show-all-questions"];t!==void 0&&t.toLowerCase()==="true"?e="true":e="false"}return e}function s8(){let{accommodationRequested:e}=me();if(S.stayCurrentAllowParam){let t=me()["accommodation-requested"];t!==void 0&&t.toLowerCase()==="true"?e="true":e="false"}return e}function IIe(){let e=!1;if(S.stayCurrentAllowParam||S.practiceAssessmentsAllowParam){let t=me()["omit-scoring"];t!==void 0&&t.toLowerCase()==="true"?e=!0:e=!1}return e}function W7e(){let e=!1;if(S.stayCurrentAllowParam||S.practiceAssessmentsAllowParam){let t=me()["temporary-preview"];t!==void 0&&t.toLowerCase()==="true"?e=!0:e=!1}return e}function PIe(e){return e.reduce((t,n,o,r)=>t.concat(`examId=${n}${o===r.length-1?"":"&"}`),"")}function ln(e,t){return Math.round(Math.max(0,Math.min(1,e/t))*100)}async function wf(e,t){let n={errorCode:"",message:""};throw(t.headers.get("Content-Type")||"").split(";")[0]==="applicationhttps://www.microsoft.com/json"&&(n=await t.json()),new Cu(e,t.status,n)}var i8={Passed:"Passed",Failed:"Failed"};var a8=class{constructor(t){let n={};t.userChoices&&t.userChoices.length>0&&t.userChoices.forEach(o=>{if(o.questionnaireId!==void 0&&o.questionId!==void 0){let r=`${o.questionnaireId}-${o.questionId}`;n[r]||(n[r]={assessmentId:t.assessmentId,choiceIds:[],questionnaireId:vr(o.questionnaireId),questionId:vr(o.questionId)}),n[r].choiceIds.push(o.choiceId)}}),this.userChoices=Object.values(n)}},l8=class{constructor(t,n,o){let s=Dt(t,["id","isCorrect","questionnaireId","text","textHTML"]);this.id=s.id,this.createdAtUTC="0001-01-01T00:00:00",this.isCorrect=s.isCorrect,this.locale=o,this.questionId=n,this.questionnaireId=s.questionnaireId,this.text=s.text,this.textHtml=s.textHTML}},rC=class{constructor(t,n,o){this.choices=ts(t.map(r=>new l8(r,n,o)))}},F1=class{constructor(t,n){let r=Dt(t,["activityLog","id","choices","choiceCount","questionnaireId","text","type"]),s=["createdAtUTC"],i=Dt(r.activityLog,s);this.id=r.id,this.createdAtUTC=i.createdAtUTC,this.choices=new rC(r.choices,r.id,n).choices,this.choiceCount=r.choiceCount,this.locale=n,this.questionnaireId=r.questionnaireId,this.text=r.text,this.type=r.type,r.rationale&&(this.rationale=r.rationale),r.rationaleHTML&&(this.rationaleHtml=r.rationaleHTML),r.textHTML&&(this.textHtml=r.textHTML)}},c8=class{constructor(t,n){this.questions=t.map(o=>new F1(o,n))}},u8=class{constructor(t){let o=Dt(t,["activityLog","id","questions","questionsToPass","questionsToTake","title","totalQuestionCount"]),r=["createdAtUTC"],s=Dt(o.activityLog,r);this.id=o.id,this.createdAtUTC=s.createdAtUTC,this.questions=new c8(o.questions,o.locale).questions,this.questionCount=o.totalQuestionCount,this.questionsToPass=o.questionsToPass,this.questionsToTake=o.questionsToTake,this.title=o.title,o.name&&(this.name=o.name)}},d8=class{constructor(t){this.questionnaires=t.map(n=>new u8(n))}},Uy=class{constructor(t){let o=Dt(t,["assessmentVersion","docsId","id","linkedContent","locale","startTime","userChoices"]),r=["linkedContentId","linkedContentTitle"],s=Dt(o.linkedContent,r);this.examId=s.linkedContentId,this.locale=o.locale,this.questionnaires=new d8(o.questionnaires).questionnaires,this.sessionUid=o.id.toString(),this.title=s.linkedContentTitle,this.userChoices=new a8(o).userChoices,this.userId=o.docsId,this.userSessionDate=new Date(o.userResponseUpdatedAt??o.startTime),this.userSessionStart=new Date(o.startTime),this.version=o.assessmentVersion.toString(),o.assessmentName&&(this.name=o.assessmentName)}},p8=class{constructor(t){let o=Dt(t,["endTime","id","questionTotal","questionsAnsweredCorrectly","questionsToPass"]);this.answersCorrect=o.questionsAnsweredCorrectly,this.correctPercent=ln(o.questionsAnsweredCorrectly,o.questionTotal),this.questionsToPass=o.questionsToPass,this.questionsTotal=o.questionTotal,this.passed=o.questionsAnsweredCorrectly>=o.questionsToPass,this.passingPercent=ln(o.questionsToPass,o.questionTotal),this.scoredAt=o.endTime,this.snapshotId=o.id.toString()}},U1=class{constructor(t){let o=Dt(t,["previousAttempts"]);this.certificationExpiration=o.certificationExpiration,this.certificationPartOfStayCurrent=o.certificationPartOfStayCurrent,this.dateEarned=o.dateEarned,this.eligibleForRecertification=o.eligibleForRecertification,this.mcIdLinked=o.mcIdLinked,this.previousAttempts=o.previousAttempts.length?o.previousAttempts.map(r=>new p8(r)):[],this.snapshotEligibleDate=o.snapshotEligibleDate,this.studyGuide=o.studyGuide,this.timer=o.timer}},m8=class{constructor(t){let n=Dt(t.actionItem,["id","type"]),o=void 0,r=t.questionnaireUid,s="Module",i=vr(n.id);this.data=o,this.questionnaireUid=r,this.type=s,this.uid=i}},g8=class{constructor(t){let n=t.actionItems.map(o=>new m8({questionnaireUid:t.questionnaireUid,actionItem:o}));this.studyGuideItems=n}},f8=class{constructor(t){let n=Dt(t,["id","text","textHTML"]),o=vr(po(n.id)),r=Xn(n.text),s=Xn(n.textHTML);this.id=o,this.text=r,this.textHtml=s}},h8=class{constructor(t){let n=ts(t).map(o=>new f8(o));this.choices=n}},b8=class{constructor(t){let n=Dt(t.question,["choices","id","text","type"]),o=vr(po(n.id)),r=new h8(n.choices).choices,s=Xn(n.textHTML),i=`${t.questionnaireId}.${t.questionSetId}.${o}`,a=n.manualId,l=Xn(n.type),c=n.rationale,u=Xn(n.text),p=o;this.choices=r,this.description=s,this.fullyQualifiedId=i,this.manualId=a,this.questionType=l,this.rationale=c,this.title=u,this.uid=p}},_8=class{constructor(t){let n=ts(t.questions).map(o=>new b8({questionnaireId:t.questionnaireId,questionSetId:t.questionSetId,question:o}));this.questions=n}},y8=class{constructor(t){let n=Dt(t.questionSet,["id","questions","text","textHTML"]),o=vr(po(n.id)),r=Xn(n.textHTML),s=new _8({questionnaireId:t.questionnaireId,questionSetId:o,questions:n.questions}).questions,i=Xn(n.text),a=o;this.description=r,this.questions=s,this.title=i,this.uid=a}},v8=class{constructor(t){let n=ts(t.questionSets).map(o=>new y8({questionnaireId:t.questionnaireId,questionSet:o}));this.questionSets=n}},x8=class{constructor(t){let n=Dt(t,["id","questionSets","questionsToPass","title"]),o=vr(po(n.id)),r=new v8({questionnaireId:o,questionSets:t.questionSets}).questionSets,s=po(n.questionsToPass),i=Xn(n.title);this.questionSets=r,this.questionsToPass=s,this.title=i,this.uid=o}},T8=class{constructor(t){let n=ts(t).map(o=>new x8(o));this.questionnaires=n}},w8=class{constructor(t){let n=Dt(t.questionnaireSession,["score"]),o=Dt(n.score,["actionItems","questionsAnsweredCorrectly","questionsToPass","questionsToTake","questionnaireId"]),r=po(o.questionsAnsweredCorrectly),s=po(o.questionsToPass),i=po(o.questionsToTake),a=vr(po(n.questionnaireId)),l=ln(r,i),c=o.resultStatus===i8.Passed,u=ln(s,i),p=s,m=i,g=new g8({questionnaireUid:a,actionItems:o.actionItems}).studyGuideItems,f=Xn(o.title);this.questionnaireUid=a,this.answersCorrect=r,this.correctPercent=l,this.passed=c,this.passingPercent=u,this.questionsToPass=p,this.questionsTotal=m,this.studyGuide=g,this.title=f}},S8=class{constructor(t){let n=t.questionnaireSessions.map(o=>new w8({questionnaireSession:o}));this.questionnaireSessions=n}},O1=class{constructor(t){let n=Dt(t,["assessmentId","docsId","expirationTime","id","linkedContent","questionnaires","questionsToPass","startTime"]),o=Dt(n.linkedContent,["linkedContentTitle","linkedContentIconURL","linkedContentId"]),r=Xn(o.linkedContentIconURL),s=o.linkedContentName,i=Xn(o.linkedContentId),a=Xn(n.startTime),l=Xn(n.docsId),c=vr(po(n.id)),u=Xn(n.locale),p=n.manualId,m=new T8(ts(n.questionnaires)).questionnaires,g=po(n.questionsToPass),f=n.assessmentId,_=GCe(Zx(n.expirationTime)),h=void 0,T=po(n.timer),x=Xn(o.linkedContentTitle);this.certificationIcon=r,this.certificationName=s,this.certificationUid=i,this.createdAt=a,this.docsId=l,this.id=c,this.learnAssessmentSession=t,this.locale=u,this.manualId=p,this.questionnaires=m,this.questionsToPass=g,this.renewalAssessmentUid=f,this.secondsRemaining=_,this.snapshotScore=h,this.timer=T,this.title=x}},Oy=class{constructor(t){let n=Dt(t,["assessmentId","endTime","id","linkedContent","questionsAnsweredCorrectly","questionsToPass","questionTotal","result"]),o=Dt(n.linkedContent,["linkedContentCertificationExpirationDate","linkedContentCertificationPartOfStayCurrent","linkedContentEligibleForRecertification","linkedContentIconURL","linkedContentId","linkedContentName","linkedContentSnapshotRetakeEligibleDate"]),r=Dt(n.result,["questionnaireSessions"]),s=Zx(o.linkedContentCertificationExpirationDate),i=Xn(o.linkedContentIconURL),a=Xn(o.linkedContentName),l=cO(o.linkedContentCertificationPartOfStayCurrent),c=Xn(o.linkedContentId),u=ln(po(n.questionsAnsweredCorrectly),po(n.questionTotal)),p=po(n.questionsAnsweredCorrectly),m=cO(o.linkedContentEligibleForRecertification),g=po(n.questionsToPass),f=po(n.questionTotal),_=new S8({questionnaireSessions:ts(r.questionnaireSessions)}).questionnaireSessions,h=p>=g,T=ln(g,f),x=n.assessmentId,w=Zx(n.endTime),I=vr(po(n.id)),E=Zx(o.linkedContentSnapshotRetakeEligibleDate),Q=void 0,O=n.linkedContent?.linkedContentStudyGuide;this.answersCorrect=p,this.certificationExpiration=s,this.certificationIcon=i,this.certificationName=a,this.certificationPartOfStayCurrent=l,this.certificationUid=c,this.correctPercent=u,this.eligibleForRecertification=m,this.passed=h,this.passingPercent=T,this.questionnaireScores=_,this.questionsToPass=g,this.questionsTotal=f,this.renewalAssessmentUid=x,this.scoredAt=w,this.snapshotId=I,this.snapshotRetakeEligibleDate=E,this.snapshotURL=Q,this.studyGuide=O}},C8=class{constructor(t){let n=ts(t).map(o=>new Oy(o));this.snapshots=n}},E8=class{constructor(t){let o=Dt(t,["assessmentVersion","docsId","endTime","id","linkedContent","locale","startTime"]),r=Dt(o.linkedContent,["linkedContentId"]);this.examId=r.linkedContentId,this.locale=o.locale.toString(),this.sessionUid=o.id.toString(),this.userId=o.docsId,this.userSessionDate=o.endTime,this.userSessionStart=o.startTime,this.version=o.assessmentVersion.toString()}},A8=class{constructor(t){let o=Dt(t,["questionTotal","questionsAnsweredCorrectly","questionsToPass"]);this.assessmentQuestionsToPass=o.questionsToPass,this.assessmentQuestionsToTake=o.questionTotal,this.assessmentStatus=o.questionsAnsweredCorrectly>=o.questionsToPass?"Pass":"Fail",this.questionsAnsweredCorrectly=o.questionsAnsweredCorrectly,this.session=new E8(o)}},q1=class{constructor(t){this.careerPaths=t.careerPaths,this.certificationRenewal=t.certificationRenewal,this.course=t.course,this.courseStudyGuide=t.courseStudyGuide,this.practiceAssessmentAttempts=t.practiceAssessmentAttempts?.length?t.practiceAssessmentAttempts.map(n=>new A8(n)):[],this.prerequisites=t.prerequisites,this.verifiableCredentialUid=t.verifiableCredentialUid}},sC=class{constructor(t){let n=new C8(t.pastRenewals).snapshots,o=t.isCertificationLinked,r=t.totalCount,s=t.totalPages;this.pastRenewals=n,this.isCertificationLinked=o,this.totalCount=r,this.totalPages=s}},H1=class{constructor(t){let n=t.certifications,o=t.isCertificationLinked,r=t.examAppointments,s=t.pastExams,i="pastRenewals"in t?new sC(t.pastRenewals):void 0;this.certifications=n,this.isCertificationLinked=o,this.examAppointments=r,this.pastExams=s,this.pastRenewals=i}},k8=class{constructor(t,n){let r=Dt(t,["correctChoice","question","userChoice"]),s=new F1(r.question,n);this.correctChoice=new rC(r.correctChoice,s.id,n).choices,this.question=s,this.userChoice=new rC(r.userChoice,s.id,n).choices}},B1=class{constructor(t,n){this.items=ts(t.map(o=>new k8(o,n)))}},I8=class{constructor(t){let n=Dt(t.session,["id","assessmentId","docsId","locale","startTime","assessmentVersion","questionnaires"]),o=Dt(t.questionnaireSession,["questionnaireId","questionnaireVersion","responses","score"]),r=Dt(o.score,["questionsAnsweredCorrectly","questionsToPass","questionsToTake","resultStatus"]),s=ts(n.questionnaires).find(i=>i.id===o.questionnaireId);this.assessmentId=n.assessmentId,this.correctAnswerCount=n.questionsAnsweredCorrectly,this.locale=n.locale,this.questionnaireStatus=r.resultStatus===i8.Passed?"Pass":"Fail",this.questionsToPass=r.questionsToPass,this.questionsToTake=r.questionsToTake,this.sessionUid=vr(n.id),this.userId=n.docsId,this.userSessionDate=n.startTime,this.version=vr(n.assessmentVersion),s&&(this.questionnaireTitle=s.title,this.questionnaireUid=vr(s.id))}},P8=class{constructor(t){let n=Dt(t,["result"]),o=Dt(n.result,["questionnaireSessions"]);this.scoredQuestionnaires=o.questionnaireSessions.map(r=>new I8({session:n,questionnaireSession:r}))}},L8=class{constructor(t){let n=Dt(t,["durationInMinutes","id","title"]);this.durationInMinutes=n.durationInMinutes,this.title=n.title,this.uid=n.id}},R8=class{constructor(t){let n=Dt(t,["studyGuides","questionnaireTitle","questionnaireId"]);this.studyGuides=ts(n.studyGuides).map(o=>new L8(o)),this.title=Xn(n.questionnaireTitle),this.uid=vr(n.questionnaireId)}},M8=class{constructor(t){this.studyGuidesByFailedQuestionnaires=t.map(n=>new R8(n))}},iC=class{constructor(t){let n=Dt(t,["assessmentId","result","correctPercent","passingPercent","id","linkedContent","locale","questionTotal","questionsAnsweredCorrectly","questionsToPass","startTime","timer"]),o=Dt(n.linkedContent,["linkedContentId","linkedContentTitle"]),r=Dt(n.result,["studyGuidesByFailedQuestionnaires"]);this.assessmentId=n.assessmentId,this.assessmentStatus=n.correctPercent>=n.passingPercent?"Pass":"Fail",this.correctAnswerCount=n.questionsAnsweredCorrectly,this.examId=o.linkedContentId,this.locale=n.locale,this.questionsToPass=n.questionsToPass,this.questionsToTake=n.questionTotal,this.sessionUid=vr(n.id),this.scoredQuestionnaires=new P8(n).scoredQuestionnaires,this.studyGuidesByFailedQuestionnaires=new M8(r.studyGuidesByFailedQuestionnaires).studyGuidesByFailedQuestionnaires,this.title=o.linkedContentTitle,this.userSessionDate=n.startTime,this.userSessionDurationMin=n.timer,r.studyGuide&&(this.studyGuide=r.studyGuide)}},z1=class{constructor(t){let n=ts(t).map(o=>new iC(o));this.sessions=n}};var qy=class extends Error{constructor(t){let{status:n,statusText:o,url:r}=t;super(`Unexpected response status ${n}: ${o} from "${r}".`)}},aC=class extends qy{},lC=class extends qy{},J7e=St(),X7e=b.data.userLocale;async function G1(e,t){let n={username:e,branch:J7e,locale:X7e},o=`${D.achievements}/legacy/${t}?${V(n)}`,s=N(o,{method:"GET"}),i=await R(s);if(ee(i),i.status===404||i.status===400)throw new aC(i);if(i.status===403)throw new lC(i);if(i.ok)return i.json();throw new Error(`Unexpected response status ${i.status}`)}function zr(e){return JSON.parse(JSON.stringify(e))}var LIe=new Map,RIe=e=>{let t=me().scenario;if(e&&t?.match(/^\{.*\}$/)&&(t=JSON.parse(t)[e]??t),t?.startsWith("alternating-")){let n=t.slice(12),o=n.startsWith("lead-"),r=n.slice(o?5:n.startsWith("follow-")?7:0),s=e??"__default__",i=LIe.get(s)??0;return LIe.set(s,i+1),i%2===(o?0:1)?r:void 0}return t};async function MIe(){return new Promise(e=>setTimeout(e,1e3*60*60*24))}function DIe(e){return{status:e.status,statusText:e.statusText,url:e.url??"https://learn.microsoft.com",json:e.json??(async()=>{})}}var Z7e=e=>RIe(e),eQe=e=>DIe(e);var $Ie={async getCertificationWithExamDetail(){let e={careerPaths:[{backgroundImage:"/test/training/media/career-paths/heros/CareerPath_SecurityOperations--1000x400_light.png",summary:"Microsoft Learn helps you discover the tools and skills you need to become a security operations analyst.",title:"Training for security operations analysts",uid:"career-path.ai-engineer-test",url:"/test/training/career-path/ai-engineer"}],certificationRenewal:{mcIdLinked:!0,expirationDate:"2023-12-31T00:00:00.000Z",eligibleForRenewal:!0,eligibleToRenewByDate:"2023-12-31T00:00:00.000Z",url:"/test/training/certifications/azure-solutions-architect/renew"},course:{title:"Designing Microsoft Azure Infrastructure Solutions",uid:"course.az-305t00-test",url:"/test/training/certifications/courses/az-305t00"},courseStudyGuide:{userId:"d6c2b3cf-a362-4743-914d-abcee4e52d46",name:"studyguide",description:"ILT Study Guide for course 'course.az-305t00-test",type:"studyguide",lastModified:"0001-01-01T00:00:00+00:00",totalItems:1,items:[{id:"learn-test.az-104-manage-virtual-networks",type:"path",data:{docId:"null",docVIId:"null",platformId:"null",pageKind:"path",pageType:"learn",showId:"null",eventUid:"null",rawUrl:"null",title:"AZ-104: Configure and manage virtual networks for Azure administrators",uid:"learn-test.az-104-manage-virtual-networks",url:"/test/training/paths/az-104-manage-virtual-networks/",iconUrl:"/training/achievements/az-104-manage-virtual-networks.svg",progress:1,durationInMinutes:31,start:"null",end:"null",moduleCount:1,challengeId:"null",submitterUsername:"null",lastEpisode:"null",uploadDate:"null",startDate:"null",endDate:"null",products:["azure","azure-application-gateway","azure-bastion","azure-dns","azure-expressroute","azure-firewall","azure-load-balancer","azure-virtual-machines","azure-virtual-network","azure-vpn-gateway","azure-virtual-desktop"],levels:["beginner"],roles:["administrator"],childUids:["learn-test.wwl.configure-azure-dns"],modules:[{units:[{durationInMinutes:1,iconUrl:"null",points:100,ROBOTS:"noindex",title:"Introduction",type:"unit",uid:"learn-test.wwl.configure-azure-dns.1-introduction",url:"/test/training/azure/configure-azure-dns/1-introduction/"},{durationInMinutes:2,iconUrl:"null",points:100,ROBOTS:"noindex",title:"Identify domains and custom domains",type:"unit",uid:"learn-test.wwl.configure-azure-dns.2-identify-domains-custom-domains",url:"/test/training/azure/configure-azure-dns/2-identify-domains-custom-domains/"},{durationInMinutes:2,iconUrl:"null",points:100,ROBOTS:"noindex",title:"Verify custom domain names",type:"unit",uid:"learn-test.wwl.configure-azure-dns.3-verify-custom-domain-names",url:"/test/training/azure/configure-azure-dns/3-verify-custom-domain-names/"},{durationInMinutes:2,iconUrl:"null",points:100,ROBOTS:"noindex",title:"Create Azure DNS zones",type:"unit",uid:"learn-test.wwl.configure-azure-dns.4-create-zones",url:"/test/training/azure/configure-azure-dns/4-create-zones/"},{durationInMinutes:3,iconUrl:"null",points:100,ROBOTS:"noindex",title:"Delegate DNS domains",type:"unit",uid:"learn-test.wwl.configure-azure-dns.5-delegate-dns-domains",url:"/test/training/azure/configure-azure-dns/5-delegate-dns-domains/"},{durationInMinutes:2,iconUrl:"null",points:100,ROBOTS:"noindex",title:"Add DNS record sets",type:"unit",uid:"learn-test.wwl.configure-azure-dns.6-add-dns-record-sets",url:"/test/training/azure/configure-azure-dns/6-add-dns-record-sets/"},{durationInMinutes:2,iconUrl:"null",points:100,ROBOTS:"noindex",title:"Plan for Azure Private DNS zones",type:"unit",uid:"learn-test.wwl.configure-azure-dns.7-plan-for-private-dns-zones",url:"/test/training/azure/configure-azure-dns/7-plan-for-private-dns-zones/"},{durationInMinutes:3,iconUrl:"null",points:100,ROBOTS:"noindex",title:"Review Azure Private DNS zone scenarios",type:"unit",uid:"learn-test.wwl.configure-azure-dns.8-determine-private-zone-scenarios",url:"/test/training/azure/configure-azure-dns/8-determine-private-zone-scenarios/"},{durationInMinutes:10,iconUrl:"null",points:100,ROBOTS:"noindex",title:"Interactive lab simulation",type:"unit",uid:"learn-test.wwl.configure-azure-dns.8a-interactive-simulation-domain-names",url:"/test/training/azure/configure-azure-dns/8a-interactive-simulation-domain-names/"},{durationInMinutes:3,iconUrl:"null",points:200,ROBOTS:"noindex",title:"Knowledge check",type:"unit",uid:"learn-test.wwl.configure-azure-dns.9-knowledge-check",url:"/test/training/azure/configure-azure-dns/9-knowledge-check/"},{durationInMinutes:1,iconUrl:"null",points:100,ROBOTS:"noindex",title:"Summary and resources",type:"unit",uid:"learn-test.wwl.configure-azure-dns.10-summary-resources",url:"/test/training/azure/configure-azure-dns/10-summary-resources/"}],summary:"Learn how to configure Azure DNS including custom domain names and record sets.",abstract:`

    In this module, you learn how to:

    • Identify features and usage cases for domains, custom domains, and private zones.
    • Verify custom domain names by using DNS records.
    • Implement DNS zones, DNS delegation, and DNS record sets.
    `,levels:["beginner"],roles:["administrator"],products:["azure-dns"],subjects:["networking"],uid:"learn-test.wwl.configure-azure-dns",title:"Configure Azure DNS",url:"/test/training/azure/configure-azure-dns/",iconUrl:"/training/achievements/azure-dns-configure.svg",durationInMinutes:31,points:200,ratingEnabled:!0,type:"Module",parents:[{durationInMinutes:31,points:200,title:"AZ-104: Configure and manage virtual networks for Azure administrators",type:"path",uid:"learn-test.az-104-manage-virtual-networks",url:"/test/training/paths/az-104-manage-virtual-networks/"}],achievement:{uid:"learn-test.wwl.configure-azure-dns.badge",title:"Configure Azure DNS",summary:"null",iconUrl:"/training/achievements/azure-dns-configure.svg",type:"badge",sourceType:"progress",sourceUId:"learn-test.wwl.configure-azure-dns",sourceUrl:"/test/training/azure/configure-azure-dns/",sourceTitle:"Configure Azure DNS"}}],completedChildUids:["learn-test.wwl.configure-azure-dns"],summary:"AZ-104: Configure and manage virtual networks for Azure administrators",display_products:["Azure","Azure Application Gateway","Azure Bastion","Azure DNS","Azure ExpressRoute","Azure Firewall","Azure Load Balancer","Azure Virtual Machines","Azure Virtual Network","Azure VPN Gateway","Azure Virtual Desktop"],display_levels:["Beginner"],display_roles:["Administrator"],remainingTime:0},listId:"learn-test.az-104-manage-virtual-networks",lastModified:"0001-01-01T00:00:00+00:00"}],itemCount:1,sections:[],sectionCount:0,isPrivate:!1,isOfficial:!1,shouldLocalize:!1,isLocalized:!1,isFallbackLocale:!1,showUserDisplayName:!1,studyGuideId:"applied-skill.configure-virtual-networking-test",moduleCount:1,completedModuleCount:1,remainingDuration:0,totalDuration:31},practiceAssessmentAttempts:[{session:{sessionUid:"052e3010-29d1-461b-93cb-1f06834c6d41",examId:"84",locale:"en-us",version:"2",userId:"438d33c4-3386-4c7e-a576-37449a493a3a",userSessionStart:"0001-01-01T00:00:00",userSessionDate:"2023-10-04T18:14:19.12"},assessmentStatus:"Pass",questionsAnsweredCorrectly:90,assessmentQuestionsToTake:100,assessmentQuestionsToPass:90},{session:{sessionUid:"052e3010-29d1-461b-93cb-1f06834c6d41",examId:"84",locale:"en-us",version:"2",userId:"438d33c4-3386-4c7e-a576-37449a493a3a",userSessionStart:"0001-01-01T00:00:00",userSessionDate:"2023-10-04T18:14:19.12"},assessmentStatus:"Fail",questionsAnsweredCorrectly:85,assessmentQuestionsToTake:100,assessmentQuestionsToPass:90},{session:{sessionUid:"052e3010-29d1-461b-93cb-1f06834c6d41",examId:"84",locale:"en-us",version:"2",userId:"438d33c4-3386-4c7e-a576-37449a493a3a",userSessionStart:"0001-01-01T00:00:00",userSessionDate:"2023-10-04T18:14:19.12"},assessmentStatus:"Fail",questionsAnsweredCorrectly:5,assessmentQuestionsToTake:100,assessmentQuestionsToPass:90},{session:{sessionUid:"052e3010-29d1-461b-93cb-1f06834c6d41",examId:"84",locale:"en-us",version:"2",userId:"438d33c4-3386-4c7e-a576-37449a493a3a",userSessionStart:"0001-01-01T00:00:00",userSessionDate:"2023-10-04T18:14:19.12"},assessmentStatus:"Pass",questionsAnsweredCorrectly:95,assessmentQuestionsToTake:90,assessmentQuestionsToPass:100}],prerequisites:[{title:"Microsoft Certified: Azure Administrator Associate",uid:"certification.azure-administrator-test",url:"/test/training/certifications/azure-administrator/index.yml"}],verifiableCredentialUid:"82B506AC196A1655"},t={},n;switch(Z7e("getCertificationWithExamDetail")){case"all":n=e;break;case"base":n=t;break;case"careerPaths":n=t,n.careerPaths=e.careerPaths;break;case"certificationRenewal":n=t,n.certificationRenewal=e.certificationRenewal;break;case"course":n=t,n.course=e.course,n.courseStudyGuide=e.courseStudyGuide;break;case"loading":await MIe(),n=t;break;case"mcidIsLinked":n=t,n.certificationRenewal=e.certificationRenewal,n.certificationRenewal.mcIdLinked=!0;break;case"mcidIsNotLinked":n=t,n.certificationRenewal=e.certificationRenewal,n.certificationRenewal.mcIdLinked=!1;break;case"practiceAssessmentAttempts":n=t,n.practiceAssessmentAttempts=e.practiceAssessmentAttempts;break;case"prerequisites":n=t,n.prerequisites=e.prerequisites;break;case"unexpected":throw new qy(eQe({status:500,statusText:"Internal Server Error"}));case"verifiableCredentialUid":n=t,n.verifiableCredentialUid=e.verifiableCredentialUid;break;default:n=t;break}return n}};function V1(e){let t=e&&e.skipVerification,n=e&&t?e.accomodationRequested??!1:!1,o=e&&t&&e.showAllQuestions;return{accomodationRequested:n,activityLog:{createdAtUTC:"2022-01-01T00:00:00Z",createdBy:"user1",updatedAtUTC:"2022-01-01T00:00:00Z",updatedBy:"user1",publishedAtUTC:"2022-01-01T00:00:00Z",publishedBy:"user1",publishedVersion:1},assessmentId:"1",assessmentType:"Renewal",assessmentVersion:1,branch:"Main",correctPercent:100,docsId:"docs1",endTime:"2022-01-01T00:00:00Z",expirationTime:"2022-01-01T00:00:00Z",id:1765,locale:"en-US",linkedContent:{id:1,assessmentType:"Renewal",activityLog:{createdAtUTC:"2022-01-01T00:00:00Z",createdBy:"user1",publishedAtUTC:"2022-01-01T00:00:00Z",publishedBy:"user1",publishedVersion:1,updatedAtUTC:"2022-01-01T00:00:00Z",updatedBy:"user1"},linkedContentCertificationExpirationDate:"2022-01-01T00:00:00Z",linkedContentCertificationPartOfStayCurrent:!0,linkedContentEligibleForRecertification:!0,linkedContentIconURL:"https://review.learn.microsoft.com/en-us/media/learn/certification/badges/microsoft-certified-associate-badge.svg?branch=main",linkedContentId:"exam.ai-102",linkedContentName:"Content1",linkedContentSnapshotRetakeEligibleDate:"2022-01-01T00:00:00Z",linkedContentStudyGuide:{type:"studyguide",items:[{listId:"module",id:"learn.host-a-web-application-with-azure-web-apps",type:"module",data:{docId:"null",docVIId:"null",platformId:"null",pageKind:"module",pageType:"learn",eventUid:"null",rawUrl:"null",title:"Host a web application with Azure App Service",uid:"learn.host-a-web-application-with-azure-web-apps",url:"/training/modules/host-a-web-app-with-azure-app-service/",iconUrl:"/training/achievements/host-a-web-app-with-azure-app-service.svg",durationInMinutes:31,moduleCount:0,products:["azure","azure-app-service","azure-portal"],levels:["beginner"],roles:["developer","solution-architect","student"],childUids:["learn.host-a-web-application-with-azure-web-apps.1-introduction","learn.host-a-web-application-with-azure-web-apps.2-create-a-web-app-in-the-azure-portal","learn.host-a-web-application-with-azure-web-apps.3-exercise-create-a-web-app-in-the-azure-portal","learn.host-a-web-application-with-azure-web-apps.4-exercise-implement-a-web-application","learn.host-a-web-application-with-azure-web-apps.5-deploying-code-to-app-service","learn.host-a-web-application-with-azure-web-apps.6-exercise-deploy-your-code-to-app-service","learn.host-a-web-application-with-azure-web-apps.7-summary","learn.host-a-web-application-with-azure-web-apps.8"],completedChildUids:[],display_products:["Azure","Azure App Service","Azure Portal"],display_levels:["Beginner"],display_roles:["Developer","Solution Architect","Student"],remainingTime:31},lastModified:"0001-01-01T00:00:00+00:00"}],moduleCount:7,completedModuleCount:0,remainingDuration:324,totalDuration:324,totalItems:1},linkedContentTitle:"Content1",linkedContentType:"Exam",linkedContentURL:"http://review.learn.microsoft.com",sequence:1},manualId:"manual1",assessmentName:`${t?"Preview ":""} Session1`,passingPercent:50,questionnaires:[{activityLog:{createdAtUTC:"2024-01-01T00:00:00Z",updatedAtUTC:"2024-02-01T00:00:00Z",publishedVersion:1},assessmentType:"Self",description:"Questionnaire A Description",groupId:"dc2c0287-a37d-49a0-bd42-9283acac7f61",id:91,locale:"en-us",name:"Optional Questionnaire A Name",questionsToPass:2,questionsToTake:4,questions:[{activityLog:{createdAtUTC:"2024-01-01T00:00:00Z",publishedVersion:1,updatedAtUTC:"2024-02-01T00:00:00Z"},assessmentType:"Practice",choiceCount:3,choices:[{questionId:4916,id:20604,isCorrect:!0,questionnaireId:130,text:"`facetable`",textHTML:"facetable"},{questionId:4916,id:20605,isCorrect:!0,questionnaireId:130,text:"`filterable`",textHTML:"filterable"},{questionId:4916,id:20606,isCorrect:!1,questionnaireId:130,text:"`key`",textHTML:"key"}],id:4916,isRequired:!0,questionnaireId:130,manualId:"manual1",sequence:1,rationale:"`facetable` is typically used in a presentation of search results that includes a hit count by category.\n\n`Filterable` is referenced in `$filter` queries, and `key` is a unique identifier for documents within the index.\n\n[Index overview - Azure Cognitive Search | Microsoft Learn](https://learn.microsoft.com/azure/search/search-what-is-an-index)\n\n[Create an Azure Cognitive Search solution - Training | Microsoft Learn](https://learn.microsoft.com/training/modules/create-azure-cognitive-search-solution/)\n\n",rationaleHTML:`

    facetable is typically used in a presentation of search results that includes a hit count by category.

    Filterable is referenced in $filter queries, and key is a unique identifier for documents within the index.

    Index overview - Azure Cognitive Search | Microsoft Learn

    Create an Azure Cognitive Search solution - Training | Microsoft Learn

    `,text:`You are building a solution that uses Azure AI Search. You need to define the field attributes for a field where the search results will include a hit count by category. Which attribute should you assign to the field? `,textHTML:`

    You are building a solution that uses Azure AI Search.

    You need to define the field attributes for a field where the search results will include a hit count by category.

    Which attribute should you assign to the field?

    `,type:"MultiSelect"},{activityLog:{createdAtUTC:"2024-01-01T00:00:00Z",publishedVersion:1,updatedAtUTC:"2024-02-01T00:00:00Z"},assessmentType:"Self",choiceCount:3,choices:[{questionId:4916,id:20610,isCorrect:!0,questionnaireId:12,text:"files (correct)",textHTML:"files (correct)"},{questionId:4916,id:20611,isCorrect:!1,questionnaireId:12,text:"objects",textHTML:"objects"},{questionId:4916,id:20612,isCorrect:!1,questionnaireId:12,text:"tables",textHTML:"tables"}],id:4917,isRequired:!0,questionnaireId:130,rationale:"First question rationale",sequence:1,text:"Second question",type:"SingleSelect"},...o?[{activityLog:{createdAtUTC:"2024-01-01T00:00:00Z",publishedVersion:1,updatedAtUTC:"2024-02-01T00:00:00Z"},assessmentType:"Practice",choiceCount:3,choices:[{questionId:4916,activityLog:{createdAtUTC:"2024-01-01T00:00:00Z",publishedVersion:1,updatedAtUTC:"2024-02-01T00:00:00Z"},assessmentType:"Practice",id:20604,isCorrect:!0,questionnaireId:130,text:"`facetable`",textHTML:"facetable"},{questionId:4916,activityLog:{createdAtUTC:"2024-01-01T00:00:00Z",publishedVersion:1,updatedAtUTC:"2024-02-01T00:00:00Z"},assessmentType:"Practice",id:20605,isCorrect:!0,questionnaireId:130,text:"`filterable`",textHTML:"filterable"},{questionId:4916,activityLog:{createdAtUTC:"2024-01-01T00:00:00Z",publishedVersion:1,updatedAtUTC:"2024-02-01T00:00:00Z"},assessmentType:"Practice",id:20606,isCorrect:!1,questionnaireId:130,text:"`key`",textHTML:"key"}],id:4916,isRequired:!0,questionnaireId:130,manualId:"manual1",sequence:1,rationale:"`facetable` is typically used in a presentation of search results that includes a hit count by category.\n\n`Filterable` is referenced in `$filter` queries, and `key` is a unique identifier for documents within the index.\n\n[Index overview - Azure Cognitive Search | Microsoft Learn](https://learn.microsoft.com/azure/search/search-what-is-an-index)\n\n[Create an Azure Cognitive Search solution - Training | Microsoft Learn](https://learn.microsoft.com/training/modules/create-azure-cognitive-search-solution/)\n\n",rationaleHTML:`

    facetable is typically used in a presentation of search results that includes a hit count by category.

    Filterable is referenced in $filter queries, and key is a unique identifier for documents within the index.

    Index overview - Azure Cognitive Search | Microsoft Learn

    Create an Azure Cognitive Search solution - Training | Microsoft Learn

    `,text:`You are building a solution that uses Azure AI Search. You need to define the field attributes for a field where the search results will include a hit count by category. Which attribute should you assign to the field? `,textHTML:`

    You are building a solution that uses Azure AI Search.

    You need to define the field attributes for a field where the search results will include a hit count by category.

    Which attribute should you assign to the field?

    `,type:"MultiSelect"},{activityLog:{createdAtUTC:"2024-01-01T00:00:00Z",publishedVersion:1,updatedAtUTC:"2024-02-01T00:00:00Z"},assessmentType:"Self",choiceCount:3,choices:[{questionId:4916,activityLog:{createdAtUTC:"2024-01-01T00:00:00Z",publishedVersion:1,updatedAtUTC:"2024-02-01T00:00:00Z"},assessmentType:"Self",id:20610,isCorrect:!0,questionnaireId:12,text:"files (correct)",textHTML:"files (correct)"},{questionId:4916,id:20611,isCorrect:!1,questionnaireId:12,text:"objects",textHTML:"objects"},{questionId:4916,id:20612,isCorrect:!1,questionnaireId:12,text:"tables",textHTML:"tables"}],id:4917,isRequired:!0,questionnaireId:130,rationale:"Fourth question rationale",sequence:1,text:"Fourth question",type:"SingleSelect"}]:[]],questionSets:[{activityLog:{createdAtUTC:"2022-01-01T00:00:00Z",publishedVersion:1,updatedAtUTC:"2022-01-01T00:00:00Z"},assessmentType:"Renewal",id:1,questionCount:2,questionnaireId:130,questions:[{activityLog:{createdAtUTC:"2024-01-01T00:00:00Z",publishedVersion:1,updatedAtUTC:"2024-02-01T00:00:00Z"},assessmentType:"Practice",choiceCount:3,choices:[{questionId:4916,id:20604,isCorrect:!0,questionnaireId:130,text:"`facetable`",textHTML:"facetable"},{questionId:4916,id:20605,isCorrect:!0,questionnaireId:130,text:"`filterable`",textHTML:"filterable"},{questionId:4916,id:20606,isCorrect:!1,questionnaireId:130,text:"`key`",textHTML:"key"}],id:4916,isRequired:!0,questionnaireId:130,sequence:1,rationale:"`facetable` is typically used in a presentation of search results that includes a hit count by category.\n\n`Filterable` is referenced in `$filter` queries, and `key` is a unique identifier for documents within the index.\n\n[Index overview - Azure Cognitive Search | Microsoft Learn](https://learn.microsoft.com/azure/search/search-what-is-an-index)\n\n[Create an Azure Cognitive Search solution - Training | Microsoft Learn](https://learn.microsoft.com/training/modules/create-azure-cognitive-search-solution/)\n\n",rationaleHTML:`

    facetable is typically used in a presentation of search results that includes a hit count by category.

    Filterable is referenced in $filter queries, and key is a unique identifier for documents within the index.

    Index overview - Azure Cognitive Search | Microsoft Learn

    Create an Azure Cognitive Search solution - Training | Microsoft Learn

    `,text:`You are building a solution that uses Azure AI Search. You need to define the field attributes for a field where the search results will include a hit count by category. Which attribute should you assign to the field? `,textHTML:`

    You are building a solution that uses Azure AI Search.

    You need to define the field attributes for a field where the search results will include a hit count by category.

    Which attribute should you assign to the field?

    `,type:"MultiSelect"},{activityLog:{createdAtUTC:"2024-01-01T00:00:00Z",publishedVersion:1,updatedAtUTC:"2024-02-01T00:00:00Z"},assessmentType:"Self",choiceCount:3,choices:[{questionId:4916,id:20610,isCorrect:!0,questionnaireId:12,text:"files (correct)",textHTML:"files (correct)"},{questionId:4916,id:20611,isCorrect:!1,questionnaireId:12,text:"objects",textHTML:"objects"},{questionId:4916,id:20612,isCorrect:!1,questionnaireId:12,text:"tables",textHTML:"tables"}],id:4917,isRequired:!0,questionnaireId:130,rationale:"First question rationale",sequence:1,text:"Second question",textHTML:"Second question",type:"SingleSelect"}],rationale:"Question Set 1 Rationale",rationaleHTML:"Question Set 1 Rationale HTML",sequence:1,text:"Question Set 1 Text",textHTML:"Question Set 1 Text HTML"}],title:"Questionnaire A",totalQuestionCount:2,totalQuestionSetCount:0}],questionsAnswered:2,questionsAnsweredCorrectly:1,questionsToPass:1,questionsToTake:2,questionTotal:2,result:{sessionId:1765,questionnaireSessions:[{questionnaireId:130,questionnaireVersion:100,responses:[{isCorrect:!0,activityLog:{createdAtUTC:"2022-01-01T00:00:00Z",updatedAtUTC:"2022-01-01T00:00:00Z",updatedBy:"bill.gates"},questionnaireId:130,questionId:4916,choiceId:20604},{isCorrect:!0,activityLog:{createdAtUTC:"2022-01-01T03:00:00Z",createdBy:"bill.gates",updatedAtUTC:"2022-01-01T03:00:00Z",updatedBy:"bill.gates"},questionnaireId:130,questionId:4917,choiceId:20610},{isCorrect:!1,activityLog:{createdAtUTC:"2022-01-01T03:00:00Z",createdBy:"bill.gates",updatedAtUTC:"2022-01-01T03:00:00Z",updatedBy:"bill.gates"},questionnaireId:130,questionId:4917,choiceId:20611}],score:{questionnaireId:130,resultStatus:"Passed",questionsToTake:2,questionsToPass:1,questionsAnsweredCorrectly:1,actionItems:[{iconUrl:"string",description:"string",title:"string",type:"StudyMaterialModule",links:[{existed:"string",choiceOptions:[],scoreOptions:[],title:"string",url:"string",context:"string",priority:1,reportingCategory:"string",reportingSubCategory:"string",id:1234,assessmentType:"Practice"}],id:1234,assessmentType:"Practice"}],title:"string"}}],studyGuide:{type:"studyguide",totalItems:1,items:[{id:"studyguide.id",listId:"list.id",type:"module",data:{docId:"docId-string",docVIId:"docVIId-string",platformId:"platformId-string",pageKind:"module",pageType:"learn",title:"Study Guide Item Title",uid:"learn-test.control-azure-services-with-cli.1-introduction",iconUrl:"/learn/achievements/align-requirements-in-azure.svg",progress:.2,durationInMinutes:60,moduleCount:2,rawUrl:"https://review.learn.microsoft.com/en-us/test/learn/azure/align-requirements-in-azure/",url:"/learn/azure/align-requirements-in-azure/"},lastModified:"2024-01-15T00:00:00Z"}],moduleCount:6,completedModuleCount:4,remainingDuration:35,totalDuration:240},studyGuidesByFailedQuestionnaires:[{questionnaireId:130,questionnaireTitle:"string",studyGuides:[{id:"string",title:"string",durationInMinutes:120}]}]},startTime:"2022-01-01T00:00:00Z",status:"NotStarted",timer:60,userResponseUpdatedAt:"2022-01-01T00:00:00Z",userChoices:[{isCorrect:!0,activityLog:{createdAtUTC:"2022-01-01T00:00:00Z",createdBy:"bill.gates",updatedAtUTC:"2022-01-01T00:00:00Z",updatedBy:"bill.gates"},questionnaireId:130,questionId:4916,choiceId:20604},{isCorrect:!0,activityLog:{createdAtUTC:"2022-01-01T03:00:00Z",createdBy:"bill.gates",updatedAtUTC:"2022-01-01T03:00:00Z",updatedBy:"bill.gates"},questionnaireId:130,questionId:4917,choiceId:20610},{isCorrect:!1,activityLog:{createdAtUTC:"2022-01-01T03:00:00Z",createdBy:"bill.gates",updatedAtUTC:"2022-01-01T03:00:00Z",updatedBy:"bill.gates"},questionnaireId:130,questionId:4917,choiceId:20611}],wasAssessmentVersionUpdated:!1,certificationPartOfStayCurrent:!1,eligibleForRecertification:!1}}function tQe(){return[{question:{id:123456,text:"string",textHTML:"string",rationale:"string",rationaleHTML:"string",type:"SingleSelect",choiceCount:1,choices:[{questionId:123456,questionnaireId:345678,text:"string",textHTML:"string",isCorrect:!0,id:12345}],activityLog:{createdAtUTC:"2024-01-01T00:00:00Z",publishedVersion:1,updatedAtUTC:"2022-01-02T00:00:00Z",updatedBy:"gsettles"},assessmentType:"Practice",questionnaireId:345678,isRequired:!0,sequence:2},userChoice:[{questionId:123456,questionnaireId:345678,text:"string",textHTML:"string",isCorrect:!0,id:12345}],correctChoice:[{questionId:123456,questionnaireId:345678,text:"string",textHTML:"string",isCorrect:!0,id:12345}]}]}var gi={createSession:async e=>V1(e),getSessionAnswerSummary:async()=>tQe(),getSessionResult:async()=>V1(),getPreviousAttemptsByParentId:async()=>[V1()],getRenewalEligibility:async()=>{},submitSession:async()=>V1()};var nQe=St(),oQe=b.data.userLocale,Hy={async getExamAppointments(e=0,t=10){let n=`${D.certification.appointments}/?${V({page:e+1,pageSize:t,locale:b.data.userLocale})}`,r=N(n,{method:"GET"}),s=await R(r);if(ee(s),s.ok)return await s.json();throw new Error(`${s.status}: ${s.statusText}`)},async getCertifications(e=0,t=10){let n=`${D.certification.certifications}/? ${V({page:e+1,pageSize:t,isExtended:!0,locale:b.data.userLocale})}`,r=N(n,{method:"GET"}),s=await R(r);if(ee(s),s.ok)return await s.json();throw new Error(`${s.status}: ${s.statusText}`)},async getCertificationDetail(e){if(e!==null){let t=`${D.certification.certifications}/?${V({id:e,locale:b.data.userLocale})}`,o=N(t,{method:"GET"}),r=await R(o);if(ee(r),r.ok)return await r.json();throw new Error(`${r.status}: ${r.statusText}`)}throw new Error("Null certification id")},async getCertificationWithExamDetail(e){if(e==null)throw new pe({statusText:"missing id parameter"},"MissingRequiredParameterError");let t=me();if(L.reviewFeatures&&t.scenario)return $Ie.getCertificationWithExamDetail();let n=!!t["skip-verification"],o=`${D.certification.certification}/${e}/detail?${V({branch:nQe,locale:oQe,learnAssessmentMerger:!!S.assessmentMergerRenewalAssessment,skipVerification:n})}`,s=N(o,{method:"GET"}),i=await R(s);if(i.ok){let a=await i.json();return S.assessmentMergerRenewalAssessment?(S.assessmentMergerLearnAssessment||(a.practiceAssessmentAttempts=await gi.getPreviousAttemptsByParentId()),new q1(a)):a}throw new pe(i,"UnexpectedError")},async getDashboardSummary(){let e=`${D.certification.dashboardSummary}/?${V({locale:b.data.userLocale,learnAssessmentMerger:!!S.assessmentMergerRenewalAssessment})}`,n=N(e,{method:"GET"}),o=await R(n);if(ee(o),o.ok){let r=await o.json();return S.assessmentMergerRenewalAssessment?(S.assessmentMergerLearnAssessment||"pastRenewals"in r&&(r.pastRenewals.pastRenewals=await gi.getPreviousAttemptsByParentId()),new H1(r)):r}throw new Error(`${o.status}: ${o.statusText}`)},async getExams(e=0,t=10){let n=`${D.certification.exams}/?${V({page:e+1,pageSize:t,locale:b.data.userLocale})}`,r=N(n,{method:"GET"}),s=await R(r);if(ee(s),s.ok)return await s.json();throw new Error(`${s.status}: ${s.statusText}`)},async getLinkedMSA(){let e=D.certification.linkedMcId,n=N(e,{method:"GET"});try{let o=await R(n);if(ee(o),o.status===200)return{linkedMSA:await o.json(),status:o.status};if(o.status===400){let r;try{r=await o.json()}catch{r={errorCode:"",message:""}}return{errorCode:r.errorCode,linkedMSA:{mcId:r.message},status:o.status}}else if(o.status===401||o.status===404||o.status===409||o.status===500){let r;try{r=await o.json()}catch{r={errorCode:"",message:""}}return{errorCode:r.errorCode,status:o.status}}else throw new Error(`Unexpected response status ${o.status}`)}catch{return{errorCode:"",status:null}}},async getPrintableCertification(e){let t=`${D.certification.printableCertification}/?${V({id:e,locale:b.data.userLocale})}`,o=N(t,{method:"GET"}),r=await R(o);if(ee(r),r.ok)return await r.json();throw new Error(`${r.status}: ${r.statusText}`)},async getScoredSnapshots(e=0,t=10){let n=`${D.certification.renewalAssessments}/?${V({page:e+1,pageSize:t,isExtended:!0,locale:b.data.userLocale,learnAssessmentMerger:!!S.assessmentMergerRenewalAssessment})}`,r=N(n,{method:"GET"}),s=await R(r);if(ee(s),s.ok){let i=await s.json();return S.assessmentMergerRenewalAssessment?(S.assessmentMergerLearnAssessment||(i.pastRenewals=await gi.getPreviousAttemptsByParentId()),new sC(i)):i}throw new Error(`${s.status}: ${s.statusText}`)},async postCertificationLink(){let e=D.certification.linkedAccount,n=N(e,{method:"POST"}),o=await R(n);if(ee(o),o.ok)return ca(o,!1),{status:o.status};if(o.status===404||o.status===400||o.status===409||o.status===500)return{status:o.status};throw new Error(`Unexpected response status ${o.status}`)}};var Eu={getStatus(e){let t=`${D.achievements}/xp/${e}`;return R(N(t,{mode:"cors"},!0)).then(ee).then(o=>{if(o.ok)return o.json();throw new Wt(o)})},getAchievements(e,t){let n={locale:t},o=`${D.achievements}/user/${e}?${V(n,!1)}`;return R(N(o,{mode:"cors"},!0)).then(ee).then(s=>{if(s.ok)return s.json();throw new Wt(s)})},redeemCode(e){let t={mode:"cors",method:"post",credentials:"include"},n=`${D.achievements}/redeem/${e}`,o={branch:L.supportLevel==="production"?"main":void 0},r=`${n}?${V(o,!1)}`,s=N(r,t,!0);return fetch(s,t).then(ee).then(i=>i.json())},requestCode(e,t,n){let o={achievementCategory:e,courseId:t,useCount:n};e===6&&S.learningPathIlt&&(o.courseId=void 0,o.learningPathId=t);let s=`${D.achievements}/code`,i={branch:L.supportLevel==="production"?"main":void 0},a=`${s}?${V(i,!1)}`,l={mode:"cors",body:JSON.stringify(o),method:"put",credentials:"include"};return R(N(a,l,!0)).then(ee).then(c=>c.json())}};ot();function Xl(e,t,n,o,r=!1){return new Promise((s,i)=>{o&&setTimeout(()=>{i(`${e} load timeout`)},o);let a=document.createElement("script");a.src=e,r&&a.setAttribute("data-callback","setupEnforcement"),a.async=!0,a.defer=!0,a.onload=s,t&&(a.integrity=t,a.crossOrigin="anonymous"),a.onerror=()=>{i(`Failed to load ${e}`)},(document.body||document.head).appendChild(a)}).then(()=>{if(n!==void 0){if(window[n]===void 0)throw new Error(`${e} loaded successfully but ${n} is undefined.`);return window[n]}})}var FIe="2.3.11.2",I9t=`/static/third-party/azure-media-player/${FIe}/azuremediaplayer.min.js`,P9t=`/static/third-party/azure-media-player/${FIe}/azuremediaplayer.min.css`;var By,D8;function lQe(){let e=location.href,t="#time=";if(e.includes(t)){let n=e.substring(e.indexOf(t)+t.length);return cy(n)}return cy("0s")}function cQe(){if(!location.hash.startsWith("#time="))return;let e=By.paused(),t=lQe();t>0&&t{By!==void 0&&cQe()});function cC(e){let t=new URL(e,location.origin),n=decodeURIComponent(t.pathname).toLowerCase().replace(AS,"$1").replace(fp,"/"),o=t.searchParams.get("view");if(o&&(t.search="",t.searchParams.set("view",o),n+=t.search),n.indexOf("/learn/challenges")!==-1||n.indexOf("/training/challenges")!==-1){let r=t.searchParams.get("id");r&&(t.search="",t.searchParams.set("id",r),n+=t.search)}return n}function UIe(e){e.type!=="docs"&&e.type!=="qa"&&e.type!=="url"&&(e.type="docs"),e.type!=="url"&&e.data.url&&(e.data.url=cC(e.data.url))}function Lr(e){e.items?.forEach(UIe),e.sections?.forEach(t=>t.items?.forEach(UIe))}var Qe={baseUrl:D.lists,async getAllLists(e=!1){let t=N(`${this.baseUrl}${e?`?${V({ignoreEmptyLists:!0})}`:""}`,{}),n=await R(t);if(ee(n),n.ok){let o=await n.json();return o.forEach(Lr),o}throw n.status===401?new pe(n,"UnauthorizedError"):new pe(n,"UnexpectedError")},async getAllListsByUrl(e){let t=[];e.forEach(s=>{t.push(cC(s))});let n=JSON.stringify(t),o=N(`${this.baseUrl}/by-url`,{method:"POST",body:n}),r=await R(o);if(ee(r),r.ok)return{hasError:!1,data:await r.json()};throw new pe(r,"UnexpectedError")},async getList(e){let t={locale:b.data.userLocale,useNewFlow:!0},n=`${this.baseUrl}/${e}?${V(t)}`,o=N(n,{},!0),r=await R(o);if(ee(r),r.ok){let s=await r.json();return Lr(s),{hasError:!1,data:s}}throw r.status===401?new pe(r,"UnauthorizedError"):r.status===404?new pe(r,"NotFoundError"):r.status===403?new pe(r,"ForbiddenError"):new pe(r,"UnexpectedError")},async getStudyGuideList(e,t,n=me().apiBranchParam){let o={locale:b.data.userLocale,branch:L.supportLevel==="production"&&L.reviewFeatures?n:null},r={credentials:L.supportLevel==="production"&&L.reviewFeatures?"include":void 0},s=`${this.baseUrl}/studyguide/${e}/${t}?${V(o)}`,i=N(s,r,!0),a=await R(i);if(ee(a),a.ok){let l=await a.json();return Lr(l),l}throw a.status===404?new pe(a,"NotFoundError"):new pe(a,"UnexpectedError")},async createList(e){let t=JSON.stringify(e),n=N(this.baseUrl,{method:"POST",body:t},!0),o=await R(n);if(ee(o),o.ok)return{hasError:!1,data:await o.json()};if(o.status===400)return{hasError:!0,error:await o.json()};throw o.status===401?new pe(o,"UnauthorizedError"):new pe(o,"UnexpectedError")},async deleteList(e){let t=N(this.baseUrl+"/"+e,{method:"DELETE"},!0),n=await R(t);if(ee(n),n.ok)return{hasError:!1,data:void 0};throw new pe(n,"UnexpectedError")},async copyList(e,t,n){let o=JSON.stringify({name:t,description:n}),r=N(`${this.baseUrl}/copy/${e}`,{method:"POST",body:o},!0),s=await R(r);if(ee(s),s.ok){let i=await s.json();return Lr(i),{hasError:!1,data:i}}if(s.status===400)return{hasError:!0,error:await s.json()};throw new pe(s,"UnexpectedError")},async submitForLocalize(e){let n=N(`${this.baseUrl}/${e}/localize`,{method:"PATCH",body:"true"},!0),o=await R(n);if(ee(o),o.ok){let r=await o.json();return Lr(r),{hasError:!1,data:r}}if(o.status===400)return{hasError:!0,error:await o.json()};throw new pe(o,"UnexpectedError")},async convertList(e){let n=N(`${this.baseUrl}/${e}/official`,{method:"PATCH",body:"true"},!0),o=await R(n);if(ee(o),o.ok){let r=await o.json();return Lr(r),{hasError:!1,data:r}}if(o.status===400)return{hasError:!0,error:await o.json()};throw new pe(o,"UnexpectedError")},async toggleListPrivacy(e,t){let n=t.toString(),o=N(`${this.baseUrl}/${e}/private`,{method:"PATCH",body:n},!0),r=await R(o);if(ee(r),r.ok){let s=await r.json();return Lr(s),{hasError:!1,data:s}}if(r.status===400)return{hasError:!0,error:await r.json()};throw new pe(r,"UnexpectedError")},async toggleShowUserDisplayName(e,t){let n=t.toString(),o=N(`${this.baseUrl}/${e}/showuserdisplayname`,{method:"PATCH",body:n},!0),r=await R(o);if(ee(r),r.ok){let s=await r.json();return Lr(s),{hasError:!1,data:s}}if(r.status===400)return{hasError:!0,error:await r.json()};throw new pe(r,"UnexpectedError")},async updateListMetadata(e,t){let n=JSON.stringify({name:t.name,description:t.description}),o={useNewFlow:!0},r=N(`${this.baseUrl}/${e}?${V(o)}`,{method:"PATCH",body:n},!0),s=await R(r);if(ee(s),s.ok){let i=await s.json();return Lr(i),{hasError:!1,data:i}}if(s.status===400)return{hasError:!0,error:await s.json()};throw new pe(s,"UnexpectedError")},async sortList(e,t){let n={locale:b.data.userLocale},o=`${this.baseUrl}/${e}?${V(n)}`,r=JSON.stringify(t),s=N(o,{method:"PUT",body:r},!0),i=await R(s);if(ee(i),i.ok){let a=await i.json();return Lr(a),{hasError:!1,data:a}}if(i.status===400)return{hasError:!0,error:await i.json()};throw new pe(i,"UnexpectedError")},async addItem(e,t){let n=JSON.stringify(t),o=N(this.baseUrl+"/"+e,{method:"POST",body:n},!0),r=await R(o);if(ee(r),r.ok)return{hasError:!1,data:await r.json()};if(r.status===400||r.status===403)return{hasError:!0,error:await r.json()};throw new pe(r,"UnexpectedError")},async deleteItem(e,t){let n=N(this.baseUrl+"/"+e+"/"+t,{method:"DELETE"},!0),o=await R(n);if(ee(o),!(o.ok||o.status===204))throw new pe(o,"UnexpectedError")},async updateItem(e,t,n){let o=JSON.stringify(n),r=N(`${this.baseUrl}/${e}/${t}`,{method:"PUT",body:o},!0),s=await R(r);if(ee(s),s.ok)return{hasError:!1,data:await s.json()};if(s.status===400||s.status===403)return{hasError:!0,error:await s.json()};throw new pe(s,"UnexpectedError")},async getListsItems(e){let t={uid:e.join(","),locale:b.data.userLocale},n=N(`${this.baseUrl}/items/?${V(t)}`,{}),o=await R(n);if(ee(o),o.ok)return(await o.json()).items;throw new pe(o,"UnexpectedError")},async createSection(e,t,n,o){let r=JSON.stringify({name:t,description:n,daysToComplete:o}),s=N(`${this.baseUrl}/${e}/section`,{method:"POST",body:r},!0),i=await R(s);if(ee(i),i.ok)return{hasError:!1,data:await i.json()};if(i.status===400)return{hasError:!0,error:await i.json()};throw new pe(i,"UnexpectedError")},async updateSection(e,t,n,o,r){let s=JSON.stringify({name:n,description:o,daysToComplete:r}),i=N(`${this.baseUrl}/${e}/section/${t}`,{method:"PATCH",body:s},!0),a=await R(i);if(ee(a),a.ok)return{hasError:!1,data:await a.json()};if(a.status===400)return{hasError:!0,error:await a.json()};throw new pe(a,"UnexpectedError")},async deleteSection(e,t){let n=N(`${this.baseUrl}/${e}/section/${t}`,{method:"DELETE"},!0),o=await R(n);if(ee(o),o.ok)return{hasError:!1,data:await o.json()};if(o.status===400)return{hasError:!0,error:await o.json()};throw new pe(o,"UnexpectedError")},async getActiveTakedowns(e){if(e===null)return!1;let t=N(`${this.baseUrl}/takedown/active/${e}`,{method:"GET"},!1),n=await R(t);return n.ok?(await n.json()).hasContentTakedowns:!1},async getReportStatus(e){if(e===null)return"None";let t=N(`${this.baseUrl}/report/status/${e}`,{method:"GET"},!1),n=await R(t);return n.ok?await n.json():"Unknown"}};async function Q1(e=se.document,t=!1){let n;if(typeof e=="string")if(!t&&new URL(qe(e,b.data.userLocale),se.location.origin).href===se.location.href)e=se.document,n=new URL(se.location.href);else{let c=await n8(e);n=c.url,e=c.document}else n=new URL(e.URL);let o=Qk(e),r=()=>o.page_type==="show"&&o.type?o.type:o.page_kind||"",s=new RegExp(`^/${b.data.userLocale}/answers[$/]`,"i"),i;n.pathname.match(s)?i="qa":i="docs";let a=n.toString(),l=null;return(n.pathname.indexOf("/learn/challenges")!==-1||n.pathname.indexOf("/training/challenges")!==-1)&&(l=sr().id),{type:i,data:{url:cC(a),rawUrl:a,title:o["og:title"]||e.title,docId:o.document_id||"",docVIId:o.document_version_independent_id||"",platformId:o.platform_id||"",pageType:o.page_type||"",pageKind:r(),uid:o.uid||"",challengeId:l,eventUid:o.eventUid||"",durationInMillisecond:D8||null,showId:o.showId||""}}}function OIe(e,t){return{type:"url",data:{url:e,rawUrl:"",title:t,docId:"",docVIId:"",platformId:"",pageType:"",pageKind:"",uid:"",challengeId:"",eventUid:"",durationInMillisecond:null,showId:""}}}var Gr={async getSkillingPlan(e){let t={locale:b.data.userLocale},n=`${D.lists}/skillingPlan/${e}?${V(t)}`,r=N(n,{method:"GET"}),s=await R(r);if(ee(s),s.ok){let i=await s.json();return await Ap(i),i}throw new Error(`${s.status}: ${s.statusText}`)},async completeSkillingPlan(e){let t=`${D.lists}/completeSkillingPlan`,o={method:"POST",body:JSON.stringify(e)},r=await R(N(t,o));if(ee(r),r.ok){let s=await r.json();return await Ap(s),{hasError:!1,data:s}}if(r.status===400)return{hasError:!0,error:await r.json()};throw new Error(`${r.status}: ${r.statusText}`)},async createSkillingPlan(e){let t=`${D.lists}/skillingPlan`,o={method:"POST",body:JSON.stringify(e)},r=await R(N(t,o));if(ee(r),r.ok){let s=await r.json();return await Ap(s),{hasError:!1,data:s}}if(r.status===400)return{hasError:!0,error:await r.json()};throw new Error(`${r.status}: ${r.statusText}`)},async updateSkillingPlan(e,t){let n=`${D.lists}/skillingPlan/${e}`,r={method:"PUT",body:JSON.stringify(t)},s=await R(N(n,r));if(ee(s),s.ok){let i=await s.json();return await Ap(i),{hasError:!1,data:i}}if(s.status===400)return{hasError:!0,error:await s.json()};throw new Error(`${s.status}: ${s.statusText}`)},async modifySkillingPlan(e,t){let n=`${D.lists}/skillingPlan/${e}`,r={method:"PATCH",body:JSON.stringify(t)},s=await R(N(n,r));if(ee(s),s.ok){let i=await s.json();return await Ap(i),{hasError:!1,data:i}}if(s.status===400)return{hasError:!0,error:await s.json()};throw new Error(`${s.status}: ${s.statusText}`)},async modifyPlanList(e,t){let n=`${D.lists}/skillingPlan/${e}/list`,r={method:"PATCH",body:JSON.stringify(t)},s=await R(N(n,r));if(ee(s),s.ok){let i=await s.json();return await Ap(i),{hasError:!1,data:i}}if(s.status===400)return{hasError:!0,error:await s.json()};throw new Error(`${s.status}: ${s.statusText}`)},async deleteSkillingPlan(e){let t=`${D.lists}/skillingPlan/${e}`,o=await R(N(t,{method:"DELETE"}));if(ee(o),!o.ok)throw new Error(`${o.status}: ${o.statusText}`)},async getJoinedSkillingPlans(e=0,t=12,n){let o=`${D.lists}/skillingPlan/joined/${n}?${V({page:e+1,pageSize:t})}`,r=N(o,{},!0),s=await R(r);if(ee(s),s.ok)return await s.json();throw new Error(`${s.status}:${s.statusText}`)},async getCreatedSkillingPlans(e=0,t=12){let n=t===-1?"":"?"+V({page:e+1,pageSize:t}),o=`${D.lists}/skillingPlan/created${n}`,r=N(o,{},!0),s=await R(r);if(ee(s),s.ok)return await s.json();throw new Error(`${s.status}:${s.statusText}`)},async joinSkillingPlan(e){let n=me(location.search).learnerGroupId,o=`${D.lists}/skillingPlan/${e}/join?${V({registrationType:1,learnerGroupId:n||""})}`,r=N(o,{method:"POST"},!0,!1),s=await R(r);if(ee(s),s.ok){let i=await s.json();return Ap(i),{hasError:!1,data:i}}throw new Error(`${s.status}:${s.statusText}`)},async leaveSkillingPlan(e){let t=`${D.lists}/skillingPlan/${e}/leave`,n=N(t,{method:"POST"},!0,!1),o=await R(n);if(ee(o),o.ok){let r=await o.json();return Ap(r),{hasError:!1,data:r}}throw new Error(`${o.status}:${o.statusText}`)},async trackClick(e,t){let n=`${D.lists}/skillingPlan/${e}/trackClick/${t}`,o=N(n,{method:"POST"},!0,!1),r=await R(o);if(ee(r),r.ok)return{};throw new Error(`${r.status}:${r.statusText}`)},async getPlanStatistics(e){let t=`${D.lists}/skillingPlan/${e}/statistics`,n=N(t,{},!0),o=await R(n);if(ee(o),o.ok)return await o.json();throw new Error(`${o.status}:${o.statusText}`)},async createLearnerGroup(e,t,n=""){let o=`${D.lists}/skillingPlan/${e}/learnerGroup`,s={method:"POST",body:JSON.stringify({name:t,description:n})},i=await R(N(o,s));if(ee(i),i.ok)return{hasError:!1,data:await i.json()};if(i.status===400)return{hasError:!0,error:await i.json()};throw new Error(`${i.status}:${i.statusText}`)},async updateLearnerGroup(e,t,n,o=""){let r=`${D.lists}/skillingPlan/${e}/learnerGroup/${t}`,i={method:"PATCH",body:JSON.stringify({name:n,description:o})},a=await R(N(r,i));return ee(a),a.ok?{hasError:!1,data:await a.json()}:{hasError:!0,error:await a.json()}},async deleteLearnerGroup(e,t){let n=`${D.lists}/skillingPlan/${e}/learnerGroup/${t}`,r=await R(N(n,{method:"DELETE"}));return ee(r),r.ok?{hasError:!1}:{hasError:!0,error:await r.json()}}};async function Ap(e){e.lastModified&&(e.publishedOn=e.lastModified),Lr(e.contentList)}function uQe(e){return e.type==="bookmarks"&&(e.name=MA),e}var uC=null;async function $8(e=()=>!0,t=!1){if(!uC)try{uC=(await Qe.getAllLists(t)).map(uQe)}catch{uC=null}return uC?.filter(e)??null}async function qIe(){return v.isAuthenticated===!1?[]:(await Gr.getCreatedSkillingPlans(0,-1)).skillingPlans}function HIe(e=!1){return $8(t=>t.type==="collection",e)}function BIe(e){return uC=null,Qe.createList(e)}async function N8(){let e=ar()||"",t=await rd(e),n=["MicrosoftEmployee","MicrosoftAgencyTemporary","MicrosoftVendor","MicrosoftIntern"];return t?t.affiliations.some(o=>n.includes(o)):!1}function F8(e,t){e=decodeURIComponent(e);let n=di(e,t.target),o=d``,r=d``;if(n){let s=document.createElement("div");y(r,s),new ge(s).show()}}async function zIe(e){if(!L.reviewFeatures)return;let t=Array.from(e.querySelectorAll("[data-contenteditbtn] a, a[data-contenteditbtn]"));for(let n of t){Ze("edit-in-editor",{require:!0})||(n.hidden=!1);let o=n.dataset.original_content_git_url,r=n.dataset.original_content_git_url_template,s=n.dataset.pr_repo,i=n.dataset.pr_branch;r&&r.length&&s&&s.length&&i&&i.length?n.setAttribute("href",r.replace("{repo}",s).replace("{branch}",i)):o&&o.length&&n.setAttribute("href",o)}pQe(t)}async function dQe(e){let t=document.createElement("div");t.classList.add("modal-content");let n=new ge(t);return y(e,t),n.show()}async function pQe(e){if(!Ze("edit-in-editor",{require:!0}))return;console.log("edit-in-editor flag running.");let t=await mQe();for(let n of e){let{title:o,description:r,link:s,moreInfo:i}=kIe(t,n);n.addEventListener("click",function(a){a.preventDefault(),dQe(AIe(o,r,s,i))}),n.hidden=!1}}async function mQe(){if(!v.isAuthenticated||!await N8())return 0;if(!gQe())return 1;let e=Fy();return await fQe(e)?3:2}function gQe(){let e=Qk(document);return e?.original_content_git_url?e?.original_content_git_url?.endsWith(".md"):!1}async function fQe(e){if(!e)return!1;let t=e?await M1(e.access_token):null,n=await SIe();return t&&n&&n.login&&n.login.toLowerCase()===t.toLowerCase()}async function GIe(e){let t={method:"POST",body:e,credentials:"same-origin"},n=new Request(D.siteFeedback,t),o=await R(n);if(!o.ok)throw new Error(`Error fetching ${n.url}`);return o}var hQe=["jpeg","jpg","png","gif"],bQe=1024*1024*5;function VIe(e){let t=[];return Array.from(e).forEach(n=>{(n.type.split("/")[0]!=="image"||hQe.indexOf(n.type.split("/")[1])===-1)&&t.push(qge.replace("{fileName}",n.name)),n.size>=bQe&&t.push(Hge.replace("{fileName}",n.name))}),t}M();M();var Sn={"functionality-other":lae,"learn-content-other":uae,"feature-request":aae,"category-general":cae,"tutorial-content-quality":oae,"learn-credit-problem":pae,"sandbox-problem":fae,"registration-problem":gae,"problem-with-cloudshell":eae,"problem-with-install":nae,"problem-with-dotnet-editor":tae,"content-mistake":iae,"content-question":dae,"translation-quality":hae,"category-other":mae},_Qe=[{icon:"docon-developer-tools",value:"Microsoft Learn/Customer Feedback/Engineering",id:"feedback-report-category-product",subCategories:[{value:"Microsoft Learn/Customer Feedback/Engineering/Gamification",text:Sn["learn-credit-problem"]},{value:"Microsoft Learn/Customer Feedback/Engineering/Interactivity",text:Sn["sandbox-problem"]},{value:"Microsoft Learn/Customer Feedback/Engineering/Profile",text:Sn["registration-problem"]},{value:"Microsoft Learn/Customer Feedback/Engineering",text:Sn["category-other"]}],text:Sn["functionality-other"]},{icon:"docon-text-document",value:"Microsoft Learn/Customer Feedback/Content",id:"feedback-report-category-content",subCategories:[{value:"Microsoft Learn/Customer Feedback/Content/{{REPO-AREA}}",text:Sn["content-mistake"]},{value:"Microsoft Learn/Customer Feedback/Content/{{REPO-AREA}}",text:Sn["content-question"]},{value:"Microsoft Learn/Customer Feedback/Localization/{{REPO-AREA}}",text:Sn["translation-quality"]},{value:"Microsoft Learn/Customer Feedback/Content",text:Sn["category-other"]}],text:Sn["learn-content-other"]},{icon:"docon-web-components",value:"Microsoft Learn/Customer Feedback/Engineering/Experience",text:Sn["feature-request"]},{icon:"docon-feedback",value:"Microsoft Learn/Customer Feedback",text:Sn["category-general"]}],yQe={type:"reportIssue",source:"Report an issue",orgId:"0842495d64db4f69a49eaab7007ce057",categories:_Qe},vQe=[{icon:"docon-developer-tools",value:"Tutorial Feedback/Customer Feedback/Engineering",id:"feedback-report-category-product",subCategories:[{value:"Tutorial Feedback/Customer Feedback/Engineering/Interactivity",text:Sn["problem-with-cloudshell"]},{value:"Tutorial Feedback/Customer Feedback/Engineering/Interactivity",text:Sn["problem-with-install"]},{value:"Tutorial Feedback/Customer Feedback/Engineering/Interactivity",text:Sn["problem-with-dotnet-editor"]},{value:"Tutorial Feedback/Customer Feedback/Engineering/Profile",text:Sn["registration-problem"]},{value:"Tutorial Feedback/Customer Feedback/Engineering",text:Sn["category-other"]}],text:Sn["functionality-other"]},{icon:"docon-text-document",value:"Tutorial Feedback/Customer Feedback/Content",id:"feedback-report-category-content",subCategories:[{value:"Tutorial Feedback/Customer Feedback/Content/{{REPO-AREA}}",text:Sn["content-mistake"]},{value:"Tutorial Feedback/Customer Feedback/Content/{{REPO-AREA}}",text:Sn["content-question"]},{value:"Tutorial Feedback/Customer Feedback/Localization/{{REPO-AREA}}",text:Sn["translation-quality"]},{value:"Tutorial Feedback/Customer Feedback/Content",text:Sn["category-other"]}],text:Sn["tutorial-content-quality"]},{icon:"docon-web-components",value:"Tutorial Feedback/Customer Feedback/Engineering/Experience",text:Sn["feature-request"]},{icon:"docon-feedback",value:"Tutorial Feedback/Customer Feedback",text:Sn["category-general"]}],xQe={type:"tutorialFeedback",source:"Report an issue",orgId:"0842495d64db4f69a49eaab7007ce057",categories:vQe};function QIe(e,t){let n=TQe(t),o=wQe(n);y(o,e)}function TQe(e){return e==="reportIssue"?yQe:xQe}function wQe(e){return d`

    ${Kie}

    ${_ae}
    ${e.categories.map(t=>d``)}
    ${e.categories.filter(t=>t.subCategories!==void 0).map(t=>d` `)}
    `}var U8=!1;ct.subscribe(Cn,()=>{H8("reportIssue")});var YIe=e=>{e.disabled=!1,e.classList.remove("is-loading")},q8=e=>e.querySelector("input:checked"),SQe=(e,t)=>{let n=!1,o=e!=null&&"subCategory"in e.dataset&&e.dataset.subCategory||null;for(let r in t){let s=o!==r,i=t[r].closest("div.field");t[r].disabled=s,i.hidden=s;let a=Array.from(i.querySelectorAll(".radio"));s?a.forEach(l=>{l.querySelector("input").removeAttribute("required")}):(n=!0,a.forEach(l=>{l.querySelector("input").setAttribute("required","")}))}return n},jIe=e=>e.dispatchEvent(new CustomEvent("opened",{bubbles:!1})),CQe=(e,t,n)=>{SQe(e,t)||jIe(n)},EQe=e=>{Array.from(e.querySelectorAll("[id^='feedback-report-category-'] .radio")).forEach(n=>{n.querySelector("input").setAttribute("required","")}),jIe(e)},AQe=e=>{e.hidden=!1},kQe=e=>{let t=e.target;if(!t.files||t.files.length===0)return;let n=document.querySelector("#attachment-validation"),o=VIe(t.files),r=t.parentElement.querySelector("#feedback-report-attachment-file-name");if(o.length){let i=o.map(a=>d`

    ${a}

    `);y(d`${i}`,n),n.hidden=!1,y(d``,r);return}let s=Array.from(t.files).map(i=>i.name).join(", ");y(d`${s}`,r),y(d``,n),n.hidden=!0},IQe=e=>{e.disabled=!0,e.classList.add("is-loading")},O8=e=>e.hidden=!0,PQe=()=>{let e=document.getElementById("feedback-report-category"),t=q8(e),n=t.value,o=t.parentElement.textContent.trim();return{value:n,text:o}},LQe=e=>{let t=document.getElementById("feedback-report-category"),n=q8(t);if(n===null||!n.dataset.subCategory)return{valueSub:null,textSub:null};let r=Array.from(e[n.dataset.subCategory].querySelectorAll(".radio input")).filter(a=>a.checked)[0],s=r.value,i=r.parentElement.textContent.trim();return{valueSub:s,textSub:i}},RQe=e=>new FormData(e),WIe=e=>e.hidden=!1,MQe=(e,t,n,o)=>{e.classList.remove("is-hidden"),o.classList.add("is-hidden"),t.classList.add("is-hidden"),n.classList.add("is-hidden")},KIe=(e,t)=>{let n=e.querySelector("#feedback-report-attachment-file-name");document.getElementById("feedback-report-category-product").setAttribute("value",""),document.getElementById("feedback-report-category-content").setAttribute("value",""),e.category.value="",e.summary.value="",e.description.value="",e.attachment.value="",e.reset(),Array.from(e.querySelectorAll(".radio")).forEach(r=>{let s=r.querySelector("input");s.setAttribute("required",""),s.checked=!1});for(let r in t){let s=t[r].closest("div.field"),i=e.querySelector("#feedback-form-info");s.hidden=!0,i.hidden=!0}y(d``,n)},DQe=async(e,t,{successMessage:n})=>{let{value:o,text:r}=PQe(),{valueSub:s,textSub:i}=LQe(t);e.feedbackCategory&&(e.feedbackCategory.value=r),e.category.value=s||o,e.issueType&&(e.issueType.value=i),L.reviewFeatures&&(e.summary.value=`[TEST] ${e.summary.value}`),GIe(RQe(e)),WIe(n),KIe(e,t)},$Qe=(e,t,n,o,{successMessage:r})=>{e.classList.add("is-hidden"),O8(r),o.classList.remove("is-hidden"),t.classList.remove("is-hidden"),t.disabled=!0,n.classList.remove("is-hidden")};async function H8(e,t,n=!1){let o=document.querySelector(".feedback-report");if((!S.feedbackReport||!o)&&!n)return;QIe(o,e);let r=document.querySelector("#feedback-report-form");if(r===null||U8)return;U8=!0,du(()=>{U8=!1});let s=r.querySelector("#feedback-report-error-message"),i=r.querySelector("#feedback-report-category"),a={"feedback-report-category-product":r.querySelector("#feedback-report-category-product"),"feedback-report-category-content":r.querySelector("#feedback-report-category-content")},l=r.querySelector("#feedback-report-attachment"),c=r.querySelector("fieldset:nth-of-type(2)"),u=r.querySelector("button[type=submit]"),p=r.querySelector("#feedback-report-success-message"),m=r.querySelector("#feedback-report-feedbackTitle"),g=r.querySelector("#feedback-report-description"),f=r.querySelector("#submit-another-feedback-button"),_=r.querySelector("#clear-form-button"),h=r.querySelector("#feedback-type-selection");r.contentLocale.value=b.data.contentLocale,r.userLocale.value=b.data.userLocale,r.jsllImpressionGuid.value="";let T=Ws.get("ai_session");r.aiSessionId.value=T!==void 0?T.split("|")[0]:"";let{uid:x,documentId:w,versionIndependentDocumentId:I,platformId:E,contentPath:Q,url:O,author:ye}=me(t);r.uid.value=x,r.documentId.value=w,r.versionIndependentDocumentId.value=I,r.platformId.value=E,r.contentPath.value=Q,r.url.value=O,r.author.value=ye;let Ae=()=>{if(!r.checkValidity()){u.disabled=!0;return}YIe(u)};Ye(i,"change",()=>{let xt=q8(i);xt?xt.dispatchEvent(new CustomEvent("selected")):xt=null}),Ye(m,"input",()=>{Ae()}),Ye(g,"input",()=>{Ae()});let de=Array.from(i.querySelectorAll("input"));Array.from(de).forEach(xt=>Ye(xt,"selected",()=>CQe(xt,a,r))),Object.keys(a).forEach(xt=>Ye(a[xt],"change",()=>{EQe(r)})),Ye(r,"opened",()=>AQe(c)),Ye(l,"change",kQe),Ye(r,"submit",async xt=>{if(xt.preventDefault(),!u.disabled){IQe(u),O8(s),O8(p);try{await DQe(r,a,{successMessage:p}),MQe(f,u,_,h)}catch{WIe(s)}YIe(u)}}),Ye(_,"click",()=>{KIe(r,a)}),Ye(f,"click",()=>{$Qe(f,u,_,h,{successMessage:p})})}M();M();var NQe={"01-content-errors":Hle,"02-design-and-usability-errors":Ble,"03-scoring-errors":Gle,"04-other-errors":zle},FQe={"01-yes-content-easy":yae,"02-yes-problem-solved":Tae,"03-yes-information-easy":Sae,"04-yes-learned-smth-new":wae,...b.data.userLocale!=="en-us"?{"05-yes-localization":EF}:{},"00-yes-other":lk},UQe={"01-no-content-hard":vae,"02-no-example-problem":Eae,"03-no-discovery-issue":xae,"04-no-outdated-content":Cae,...b.data.userLocale!=="en-us"?{"05-no-localization":EF}:{},"00-no-other":lk},XIe={"ask-the-community":uY,"get-product-support":Dae,"get-help-at-qna":Mae};function ZIe(){let e=S.usingStandardFeedback||S.openSourceFeedback;return d` `}function ePe(){return d` `}function JIe(){return!!(b.data.feedbackHelpLinkType&&b.data.feedbackHelpLinkType in XIe&&b.data.feedbackHelpLinkUrl)}function z8(){return d`

    ${uhe}

    ${Mge}

    `}function OQe(e,t,n,o,r){return d` `}function qQe(){return d``}function B8(e,t){let n=[];for(let o in e)n.push(d` `);return n}function tPe(){window.addEventListener("form-validating",e=>{e.detail.errors?.length>=0&&(oPe(e.detail.form,e.detail.errors),rPe(e.detail.form,e.detail.errors))}),window.addEventListener("clear-validation-errors",e=>{let t=e.detail.target;zy(t)})}function nPe(e){Ye(e,"form-validating",t=>{let n=t.detail;n.errors?.length>=0&&(oPe(n.form,n.errors),rPe(n.form,n.errors))}),Ye(e,"clear-validation-errors",t=>{let o=t.detail.target;zy(o)})}function oPe(e,t){let n=e.querySelector(".checkbox-group.required:not([hidden])");if(!n)return;let o=n.querySelectorAll('input[type="checkbox"]');if(!o)return;if(n.querySelectorAll('input[type="checkbox"]:checked').length<1){n.classList.add("errored"),o.forEach(l=>l.closest(".checkbox")?.classList.add("is-invalid"));let s=Iae,i=n.querySelector('input[type="checkbox"]');Qp(i,s),sPe(t,i,s);let a=`${sl} ${Pae}`;un(a,"assertive")}}function rPe(e,t){let n=e.querySelector(".choice-selection.required");if(!n)return;let o=n.querySelectorAll(".thumb-rating-button");if(!o)return;if(!n.querySelector(".thumb-rating-button.button-selected")){n.classList.add("errored"),o.forEach(a=>{a.classList.add("button-danger"),a.querySelector(".icon")?.classList.add("color-danger")});let s=n0;Qp(o[0],s),sPe(t,o[0],s);let i=`${sl} ${Lae}`;un(i,"assertive")}}function sPe(e,t,n){e.find(o=>o.message===n)||e.push({input:t,message:n})}function zy(e){let t,n,o=e.closest("form");o&&(e instanceof HTMLInputElement?t=e.closest(".suggestions-list.errored"):e instanceof HTMLButtonElement&&(t=o.querySelector(".suggestions-list.errored"),n=o.querySelector(".choice-selection.errored")),!(!t&&!n)&&(t&&(t.classList.remove("errored"),t.querySelectorAll('input[type="checkbox"]').forEach(a=>a.closest(".checkbox").classList.remove("is-invalid")),o.querySelector("[data-feedback-suggestions] .field-error")?.remove(),o.querySelector("[module-assessment-ai-feedback-suggestions] .field-error")?.remove()),n&&(n.classList.remove("errored"),n.querySelectorAll(".thumb-rating-button").forEach(a=>{a.classList.remove("button-danger"),a.querySelector(".icon")?.classList.remove("color-danger")}),o.querySelector("[data-feedback-rating] .field-error")?.remove(),o.querySelector("[module-assessment-ai-feedback-rating] .field-error")?.remove())))}function HQe(e){return e.querySelector("[data-feedback-suggestions]")}function iPe(e){let t=HQe(e)?.querySelectorAll(".suggestions-list:not([hidden]) .checkbox > input:checked")??[];return Array.from(t)}var Y1=!1;function j1(){let e=location.pathname;return b.data.pageTemplate==="ModuleUnit"?e.substring(0,e.lastIndexOf("/")+1):e}async function Gy(e){let t=document.getElementById("user-feedback"),n=document.getElementById("site-user-feedback-footer");if(e==="ModuleUnit"&&(Y1=!1),!t&&!n)return;if(b.data.isArchived){let r=document.querySelector("[data-hide-on-archived]");r&&(r.hidden=!0);return}zQe(),aPe(),BQe(),tPe(),KQe();let o=GQe();YQe(o,e==="Module"||e==="ModuleUnit"?"training-feedback":"standard-feedback"),await QQe(o)}function aPe(e=localStorage){let t=e.getItem(`binary-rating-${j1()}`);t!=="rating-yes"&&t!=="rating-no"||(dC(t),pC(t))}function dC(e,t=Array.from(document.querySelectorAll("[data-binary-rating-response]"))){if(!Y1)for(let n of t){let o=n.dataset.binaryRatingResponse===e;n.classList[o?"add":"remove"]("button-selected"),n.classList.contains("link-button")||n.classList[o?"add":"remove"]("is-selected"),n.setAttribute("aria-pressed",o?"true":"false")}}function BQe(){let e=t=>{if(!(t.target instanceof HTMLElement&&t.target.closest("[data-user-feedback-button]")))return;let o=localStorage.getItem(`binary-rating-${j1()}`);!o||o!=="rating-no"&&o!=="rating-yes"||(dC(o),pC(o))};window.addEventListener("click",e)}function zQe(){let e=t=>{let n=t.target instanceof HTMLElement&&t.target.closest("[data-binary-rating-response]");if(!n)return;let o=n.dataset.binaryRatingResponse;o!=="rating-no"&&o!=="rating-yes"||(n.classList.contains("button-selected")||zy(n),dC(o),pC(o),Y1||localStorage.setItem(`binary-rating-${j1()}`,o))};window.addEventListener("click",e)}function GQe(){let e=document.createElement("div"),t=ZIe();return y(t,e),aPe(),new ge(e)}async function VQe(){let[e,t,n,o]=await Promise.all([Bi("ask-learn-on-articles"),Bi("ask-learn-on-reference"),Bi("ask-learn"),fe.then(()=>v.isAuthenticated)]);return Ze("ask-learn-popover",{require:!0})?{enabled:!0,userAuthenticated:o}:Ze("disable-ask-learn-popover",{require:!0})?{enabled:!1,userAuthenticated:o}:{enabled:e||t||n,userAuthenticated:o}}async function QQe(e){let t=Array.from(document.querySelectorAll("[data-binary-rating-response]")),n=document.getElementById("user-feedback-button");n&&n.addEventListener("click",()=>e.show());let r=Array.from(t.filter(l=>l.dataset.binaryRatingResponse==="rating-yes")).length>0,{enabled:s,userAuthenticated:i}=await VQe(),a=b.data.userLocale.substring(0,2).toLocaleLowerCase()==="en";if(s&&i&&a&&r){t.forEach(c=>c.addEventListener("click",()=>{c.dataset.binaryRatingResponse==="rating-yes"&&e.show();let u=localStorage.getItem(`binary-rating-${j1()}`);u&&(dC(u),pC(u))})),window.addEventListener("click",async c=>{let p=c.target.closest("[data-bi-name]");if(!p)return;let m=p.dataset.biName;WQe(c),m==="feedback-suggest"?(e.show(),dC("rating-no"),pC("rating-no")):m==="ask-learn-assistant-entry-troubleshoot"&&Xo&&(await Xo.initialized,Xo.responseCount&&Xo.responseCount>=Xo.maxMessages&&Xo.reset(),Xo.submitWithPrompt("/troubleshoot"),Xo.getActiveTextArea()?.focus())});let l=Array.from(document.querySelectorAll(vM+","+xM));s&&(JQe(),l.forEach(c=>{c.hidden=!1}))}else t.forEach(c=>{c.dataset.binaryRatingResponse==="rating-no"&&c.removeAttribute("hidden")}),Array.from(document.querySelectorAll("#mobile-help-popover,#help-popover")).forEach(c=>c.hidden=!0),t.forEach(c=>c.addEventListener("click",()=>e.show()))}function YQe(e,t="standard-feedback"){window.addEventListener("submit",n=>{let o=n.target instanceof HTMLElement&&n.target.closest("[data-feedback-verbatim-form]");if(!o||(n.preventDefault(),o.querySelector(".errored")))return;jQe(n,o,t),Y1=!0;let r=document.createElement("div");r.classList.add("modal-slide"),y(z8(),r),e.updateContent(r,!1,!1)})}function jQe(e,t,n){if(!e)return;let o=iPe(t),r=t.querySelector("#user-feedback-textarea"),s=r?r.value:"",i=t.querySelector(".thumb-rating-button.button-selected"),a=i&&i.dataset.binaryRatingResponse==="rating-yes"?1:0,l=o.map(c=>c.value);e.target&&Ro(e.target,{behavior:Ce.SURVEYCOMPLETE,actionType:Re.OTHER,content:{autoIngest:!0,type:n,sat:a,vtbm:s,reasons:l}})}function WQe(e){let t=e.target;(t.closest('[data-test-id="feedback-popover"]')||t.closest('[data-test-id="footer-feedback-popover"]'))&&Ro(t,{actionType:Re.CLICKLEFT,behavior:Ce.VOTE,content:{autoIngest:!0,event:"feedback-thumbs-down-details-clicked",cN:"details-rating-no",type:"popover-interaction"},contentTags:{feedbackType:"negative",feedbackMethod:"details-popover",aN:"feedback-unhelpful-popover"}})}function pC(e){let t=document.querySelector("[data-feedback-suggestions]");if(!t)return;t.hidden=!1;let n=document.querySelector("[data-feedback-options-yes]"),o=document.querySelector("[data-feedback-options-no]");!n||!o||(n.hidden=e!=="rating-yes",o.hidden=e!=="rating-no")}function KQe(){let e=document.getElementById("ms--user-feedback-configurable-help-link");if(e){e.classList.remove("display-none");return}}function JQe(){if(!document.body.classList.contains("layout-flyout-active")){let e=document.querySelector('#help-popover [data-help-option="ask-learn"]');e&&e.classList.contains("is-selected")&&e.classList.remove("is-selected")}}M();var G8="v9",XQe=.03,W1=Ze("survey-popover",{require:!0}),ZQe=new Set(["Architecture","CareerPath","Certification","CertificationRenewal","Conceptual","Course","FAQ","HowTo","KnownIssue","LearningPath","Lifecycle","Module","ModuleUnit","Question","QuestionList","Reference","Sample","Tag","TagList"]),eYe=new Set(["en-us","de-at","de-ch","de-de","fr-be","fr-ca","fr-ch","fr-fr","es-es","es-mx"]),lPe=0,cPe=!1;function tYe(e=S.surveyPopover,t=b.data.pageTemplate,n=b.data.userLocale){return e&&ZQe.has(t)&&eYe.has(n)}function K1(e,t=0){try{let n=J.getItem(e);if(n===null)return t;let o=Number(n);return isNaN(o)?t:o}catch{return t}}function nYe(e=L.accessLevel!=="local"){let t=new URL("https://microsoft.qualtrics.com/jfe/form/SV_6hUVpRBU3hQVnZY");e&&t.searchParams.set("original_url",oe.href),t.searchParams.set("locale",b.data.userLocale),t.searchParams.set("pageTemplate",b.data.pageTemplate);let n=K1("hats_survey-pages-visited",0);t.searchParams.set("pagesVisited",n.toString());let o=K1("hats_survey-qualified-pages-visited",0);t.searchParams.set("qualifiedSurveyPagesVisited",o.toString());let r=uPe().slice(0,30);return t.searchParams.set("pageTemplatesVisited",r?r.join(","):""),t.href}function V8(){oYe(G8);let e=J.getItem("hats_survey-interacted");if(e){let u=Date.now(),p;try{if(p=new Date(e),isNaN(p.getTime())){J1(),J.setItem("hats_survey-version",G8);return}}catch{return}let m=1e3*60*60*24*30*6;if(u-p.getTime()

    ${ahe}

    ${lue}

    `;return y(t,e),e.addEventListener("click",n=>{n.target instanceof HTMLElement&&n.target.closest("[data-dismiss]")&&J.setItem("hats_survey-interacted",new Date().toISOString())}),e}function pPe(){let e=document.querySelectorAll(".ccpa-privacy-link");S.thirdPartyDataSharingConsentFlag&&e.forEach(t=>{t.removeAttribute("hidden")})}var As={repo:b.data.feedbackGitHubRepo,documentId:k("document_id")||btoa(location.pathname),versionIndependentDocumentId:k("document_version_independent_id")||btoa(location.pathname),platformId:k("platform_id")||btoa(location.pathname),documentSourceUrl:k("github_feedback_content_git_url")||k("original_content_git_url")||k("original_ref_skeleton_git_url")||"",service:k("ms.service"),subservice:k("ms.subservice"),product:k("ms.prod"),technology:k("ms.technology"),author:k("author"),msAuthor:k("ms.author"),contentTitle:k("og:title")||document.title};function mPe(e){let t=`${e} --- #### ${aie} \u26A0 *${lie}* `,n=location.href,{documentId:o,versionIndependentDocumentId:r,platformId:s,documentSourceUrl:i,contentTitle:a}=As,l=i.replace(/^https:\/\/github.com\/[^/]+\/[^/]+\/blob\/[^/]+\//i,"").replace(/\[|\]/g,"\\$&");a=a.replace(/\[|\]/g,"\\$&"),t+=`* ID: ${o} * Version Independent ID: ${r} * Platform ID: ${s} * Content: [${a}](${n}) * Content Source: [${l}](${i})`;let{service:c,subservice:u,product:p,technology:m}=As;c!==void 0&&(t+=` * Service: **${c.toLowerCase()}**`),u!==void 0&&(t+=` * Sub-service: **${u.toLowerCase()}**`),p!==void 0&&(t+=` * Product: **${p.toLowerCase()}**`),m!==void 0&&(t+=` * Technology: **${m.toLowerCase()}**`);let{author:g,msAuthor:f}=As;return g!==void 0&&(/github\.com/.test(i)?t+=` * GitHub Login: @${g}`:t+=` * Git Login: **${g}**`),f!==void 0&&(t+=` * Microsoft Alias: **${f}**`),t=t.replace(//g,">"),t}function gPe(e,t,n,o,r,s,i,a,l,c,u,p,m,g,f="",_){let h=e.querySelector("[data-github-link]"),T=e.querySelector("[data-open-source-image-light]"),x=e.querySelector("[data-open-source-image-dark]"),w=e.querySelector("[data-open-source-image-container]"),I=e.querySelector("[data-open-source-product-title]"),E=e.querySelector("[data-open-source-product-description]");if(!h||!t||!n||!r||!c||!g)return;let Q=u==="production"&&p?`\u{1F6A8} Looks like you arrived from the internal review site \u{1F6A8} Do not enter Microsoft confidential information here`:"",O=aYe(o,r,s,i,a,l),ye=/github\.com/.test(c)?`@${g}`:g,Ae=new URL(t),de=new URLSearchParams;de.set("pageUrl",m.href),de.set("pageQueryParams",m.search),de.set("contentSourceUrl",c),de.set("documentVersionIndependentId",n),de.set("platformId",r),de.set("feedback",`${Q} ${Wie} `),de.set("author",ye),de.set("metadata",O),f&&de.set("title",f),_&&de.set("labels",_),Ae.search+=`&${de.toString()}`,h.href=Ae.toString(),lYe(I,E),T&&x&&w&&cYe(T,x,w),e.hidden=!1}function aYe(e,t,n,o,r,s){let i=`* ID: ${e} * PlatformId: ${t} ${o!==void 0?` * Service: **${o.toLowerCase()}**`:""}${r!==void 0?` * Sub-service: **${r.toLowerCase()}**`:""}${n!==void 0?` * Product: **${n.toLowerCase()}**`:""}${s!==void 0?` * Technology: **${s.toLowerCase()}**`:""}`;return i=i.replace(//g,">"),i}function lYe(e,t){if(!e)return;let n=e.textContent;e.textContent=Kce.replace("{productName}",n),t&&(t.textContent=Jce.replace("{productName}",n))}async function cYe(e,t,n){let[o,r]=await Promise.all([H6(e.src).then(()=>!0).catch(()=>!1),H6(t.src).then(()=>!0).catch(()=>!1)]);o&&r&&(n.hidden=!1)}function fPe(){let e=document.body.querySelector(".feedback-section");if(e){if(b.data.pageTemplate==="ModuleUnit"){S.moduleUnitFeedbackReport||uYe(e);return}if(S.openSourceFeedback&&b.data.openSourceFeedbackIssueUrl){let t=document.body.querySelector("[data-open-source-feedback-section]");t&&gPe(t,b.data.openSourceFeedbackIssueUrl,As.versionIndependentDocumentId,As.documentId,As.platformId,As.product,As.service,As.subservice,As.technology,As.documentSourceUrl,L.supportLevel,L.reviewFeatures,oe,As.author,b.data.openSourceFeedbackIssueTitle,b.data.openSourceFeedbackIssueLabels)}addEventListener("keydown",({keyCode:t,altKey:n,ctrlKey:o})=>{t===71&&n&&o&&di(mPe(""),document.body)&&alert("\u2705 GitHub issue footer copied.")})}}function uYe(e){if(e){e.hidden=!0;for(let t of document.querySelectorAll("[data-feedback-section-link]"))t.hidden=!0}}M();var dYe=k("uhfHeaderId"),pYe=dYe,Kt=mYe({brand:b.data.brand,pathnameSegments:QR,page_kind:k("page_kind"),page_type:k("page_type"),headerId:pYe,isAdmin:k("is_admin"),isEditor:k("is_editor")??"false"});function mYe(e){let{brand:t,pathnameSegments:n,page_kind:o,page_type:r,headerId:s,isAdmin:i,isEditor:a}=e;if(i==="true")return"Admin";if(a==="true")return"Editor";if(s==="MSDocsHeader-Archive")return"Archive";if(o==="docs"&&r==="home"||r==="welcome")return"Docs_Home";if(r==="profile")return"Profile";if(r==="locale")return"Locale";if(r==="search")return"Search";if(o==="assessments")return"Assessments";switch(n[2]){case"docs":return"Documentation";case"training":return"Training";case"certifications":return S.previewCredentialsL1?"Credentials":"Certifications";case"credentials":return"Credentials";case"answers":return"Q&A";case"samples":return"Code Samples";case"assessments":return"Assessments";case"shows":return"Shows";case"events":return"Events";case"legal":return"Legal"}if(n[2]==="training"&&L.siteName==="learn")return"Training";if(t==="mooncake")return"Mooncake";if(!s&&L.siteName==="learn")return"Learn";switch(s){case"answers":case"answersv2":case"answersv2MOD":case"answersv2ADMIN":return"Q&A";case"mooncake":return"Mooncake";case"MSDocsHeader-Credentials":return"Credentials";case"MSDocsHeader-Certifications":return S.previewCredentialsL1?"Credentials":"Certifications";case"MSDocsHeader-Events":return"Events";case"MSDocsHeader-Learn":return"Learn";case"MSDocsHeader-RegionalDirectors":return"Regional Directors";case"MSDocsHeader-Shows":return"Shows";case"DEV_Homeheader":case"MSDocsHeader-Advocates":case"devcenter-store-header":case"mixed-reality-header":case"win-dev-center-header":case"win-hardware-header":case"win-iot-devcenter-header":case"reactor":return"Developer";case"MSDocsHeader-DocsL1":return"Documentation";case"MSDocsHeader-Assessments":return"Assessments";default:return"Third-Party"}}var{userLocale:Qn}=b.data,hPe={type:"static-header",brandLink:{displayName:"Learn",href:`/${Qn}/`,biName:"learn"},navLinks:[{title:Vu,href:`/${Qn}/docs/`,biName:"documentation"},{title:Jn,href:`/${Qn}/training/`,biName:"training"},{title:S.previewCredentialsL1?Oo:nl,href:S.previewCredentialsL1?`/${Qn}/credentials/`:`/${Qn}/certifications/`,biName:S.previewCredentialsL1?"credentials":"certifications"},{title:"Q&A",href:`/${Qn}/answers/`,biName:"qna"},{title:gF,href:`/${Qn}/samples/browse/`,biName:"code-samples"},{title:QE,href:`/${Qn}/assessments/`,biName:"assessments"},{title:vi,href:`/${Qn}/shows/`,biName:"shows"}]},bPe={type:"static-header",brandLink:{displayName:"Developer",href:`/${Qn}/`,biName:"developer"},navLinks:[{title:"Learn",href:`https://learn.microsoft.com/${Qn}/`,biName:"learn"},{title:Vu,href:`https://learn.microsoft.com/${Qn}/docs/`,biName:"documentation"},{title:Jn,href:`https://learn.microsoft.com/${Qn}/training/`,biName:"training"},{title:"Q&A",href:`https://learn.microsoft.com/${Qn}/answers/`,biName:"qna"},{title:gF,href:`https://learn.microsoft.com/${Qn}/samples/browse/`,biName:"code-samples"},{title:vi,href:`https://learn.microsoft.com/${Qn}/shows/`,biName:"shows"}]},_Pe={type:"static-header",brandLink:{displayName:"Learn",href:`/${Qn}/`,biName:"learn"},navLinks:[{title:Jn,href:`https://learn.microsoft.com/${Qn}/training/`,biName:"training"},{title:S.previewCredentialsL1?Oo:nl,href:S.previewCredentialsL1?`https://learn.microsoft.com/${Qn}/credentials/`:`https://learn.microsoft.com/${Qn}/certifications/`,biName:S.previewCredentialsL1?"credentials":"certifications"},{title:Nge,href:`https://support.azure.cn/${Qn}/support/contact/`,biName:"support"},{title:vi,href:`https://learn.microsoft.com/${Qn}/shows/`,biName:"shows"}]};async function vPe(e=b.data.userLocale){let t=fYe();if(t==="developer-header"||t==="mooncake-header")return yPe(t);let n=L.reviewFeatures&&location.pathname.startsWith("/en-us/test/")?"test/":"",o={branch:St(["contentnav-branch"],"main")},r=new URL(`/${e}/${n}content-nav/site-header/${t}.json?${V(o)}`,location.origin);try{let s=await R(r.href,{credentials:"include"});if(!s?.ok)throw new Error(`Site navigation JSON not found for ${t} in ${e}.`);return await s.json()}catch{return console.error(`Site navigation fetching error. Loading static version of ${t}.`),yPe(t)}}function fYe(){return L.siteName==="mooncake"?"mooncake-header":Kt==="Developer"?"developer-header":"site-header"}function yPe(e){switch(e){case"mooncake-header":return _Pe;case"developer-header":return bPe;default:return hPe}}var Vy,xPe,Qy=new Promise(e=>xPe=e);async function TPe(){Vy=await vPe(),xPe()}function wPe(){let e=document.getElementById("ms--search-expander-wrapper");if(!e||!e.classList.contains("overflow-x-hidden"))return;let t=e.querySelector("overflow-menu"),n=e.querySelector("search-expander");if(!t||!n)return;let o=n.querySelector("button[data-search-expander-trigger-open]"),r=n.querySelector("button[data-search-expander-trigger-close]");!o||!r||(o.addEventListener("click",()=>{e.classList.toggle("overflow-x-hidden")}),r.addEventListener("click",()=>{e.classList.toggle("overflow-x-hidden")}),n.addEventListener("keydown",s=>{s.key==="Escape"&&!e.classList.contains("overflow-x-hidden")&&e.classList.toggle("overflow-x-hidden")}),window.addEventListener("click",s=>{s.target instanceof Element&&s.type==="click"&&!n.contains(s.target)&&!e.classList.contains("overflow-x-hidden")&&(s.target.hasAttribute("data-search-expander-autocomplete-suggestion")||e.classList.toggle("overflow-x-hidden"))}))}var X1=class{constructor(){this._contentStack=[];this._titleStack=[]}get stackLength(){return this._contentStack?this._contentStack.length:void 0}get bodyTemplate(){return this.stackLength?this._contentStack[this._contentStack.length-1]:null}push(t){if(!t)throw new Error("Cannot push empty content");this._contentStack.push(t)}pop(){!this._contentStack||this.stackLength<=1||(this._contentStack.pop(),this._titleStack&&this._titleStack?.length>0&&this._titleStack.pop())}pushTitle(t){t&&this._titleStack.push(t)}getTitle(){return!this._titleStack||this._titleStack?.length===0?null:this._titleStack[this._titleStack.length-1]}dispose(){this._contentStack=null}};M();ot();var Sf=class{constructor(t){this.container=document.createElement("div"),this.container.setAttribute("role","alert"),this.container.setAttribute("aria-live","assertive"),this.container.setAttribute("data-dismissable","disappearing"),this.container.classList.add("toast"),this.container.appendChild(t),this.wrapper=document.createElement("div"),this.wrapper.insertAdjacentElement("afterbegin",this.container),this.contentElement=t}show(){let t=document.querySelector(".toast");t&&m1(t),document.body.insertAdjacentElement("afterbegin",this.container),this.container.classList.add("appearing"),setTimeout(()=>{Zt()},10),setTimeout(()=>{m1(this.container)},3500)}};ot();M();function SPe(e){for(let t=0;tn.setCustomValidity(/^\s+$/.test(n.value)?pue:"")),n instanceof HTMLButtonElement&&n.type==="submit"&&(n.onclick=()=>e.classList.add("show-validation-status"))}}M();async function Yn(e,t=!1,n){let o=A.createElement("form");if(o.action="javascript:",e instanceof dl){if(y(e,o),t){let c=o.querySelectorAll("input.loc-checkbox"),u=0,p=o.querySelector("#loc-submit-button");c&&c.forEach(m=>m.addEventListener("change",()=>{m.checked?u++:u--,u===2?p.disabled=!1:p.disabled=!0}))}}else o.appendChild(e);bYe(o);let r=A.createElement("div");r.classList.add("modal-content"),r.appendChild(o);let s=new ge(r),i=!1,a={hasError:!1,data:null};return o.addEventListener("submit",async c=>{c.preventDefault(),a=n?await n(o):{hasError:!1,data:null},a.hasError===!1&&(i=!0,s.hide())}),SPe(o),await s.show(),{submitted:i,form:o,data:a.hasError?null:a.data}}function bYe(e){if(e.querySelector("form"))throw new Error("The content argument should not contain a form")}function kp(e,t,n=lo,o=!1,r=HZ,s,i){return d` `}M();ot();ot();ot();M();M();var gr={0:"Spam",1:"OffTopicIrrelevantPosts",2:"SensitiveInformation",3:"ChildEndangermentExploitation",4:"Terrorism",5:"HateSpeech",6:"CoordinationOfHarm",7:"NonConsensualAdultImages",8:"GraphicViolenceHumanGore",9:"AdultNudity",10:"SuicideSelfHarm",11:"ThreatsCyberbullyingHarassment",12:"Defamation",13:"ProfanityVulgarity",14:"Other",15:"SexualSolicitation",16:"Trafficking",17:"ThreatsOrPraiseOfViolence"};var CPe=[{reason:ade,value:gr[13]},{reason:ede,value:gr[3]},{reason:ude,value:gr[4]},{reason:rde,value:gr[4]},{reason:tde,value:gr[6]},{reason:sde,value:gr[7]},{reason:ode,value:gr[8]},{reason:Zue,value:gr[9]},{reason:cde,value:gr[10]},{reason:nde,value:gr[11]},{reason:lde,value:gr[15]},{reason:dde,value:gr[16]},{reason:pde,value:gr[17]},{reason:ide,value:gr[14]}];function EPe(e){if(!e)return;let t=document.getElementById("tagHeading");if(!t)return;let n=t.getAttribute("data-tag-id"),o=t.innerText;e.primary.href.includes("/ask/")&&(e.primary.href=`${e.primary.href}?id=${n}&styleGuideLabel=${o}`)}function APe(e){if(!e||Kt!=="Q&A")return;let t=b.data.userLocale;e&&e.primary.href.includes("/ask/")&&!e.primary.href.includes(t)&&(e.primary.href=`/${t}${e.primary.href}`),e&&e.secondary?.href.includes("/moderation/")&&!e.secondary?.href.includes(t)&&(e.secondary.href=`/${t}${e.secondary.href}`)}var Z1=S.userServices&&L.siteName!=="mooncake"&&Kt!=="Developer"&&Kt!=="Regional Directors",Yy=Kt==="Third-Party"||Kt==="Admin"||Kt==="Developer"||Kt==="Assessments"||Kt==="Certifications"||Kt==="Credentials"||Kt==="Learn"||Kt==="Shows"||Kt==="Mooncake"||Kt==="Q&A"||Kt==="Training"||Kt==="Legal";function kPe(e){let t=CYe();if(!(!t||t==="exclude"))for(let n of e){let o=n?.id===t;if(o){n.current=o;break}}}var TYe={id:"exclude",pattern:`/${b.data.userLocale}/answers/`,exact:!0,next:{id:"questions",pattern:"/answers/questions",exclude:"/ask/",next:{id:"tags",pattern:"/answers/tags",next:{id:"faq-help",pattern:"/answers/support"}}}},wYe={id:"exclude",pattern:`/${b.data.userLocale}/training/`,exact:!0,next:{id:"career-paths",pattern:"/training/career-paths",next:{id:"browse-training",pattern:"/training/browse",next:{id:"educator-center",pattern:"/training/educator-center",next:{id:"student-hub",pattern:"/training/student-hub",next:{id:"faq-help",pattern:"/training/support",next:{id:"products",pattern:"/training"}}}}}}},SYe={id:"exclude",pattern:`/${b.data.userLocale}/credentials/`,exact:!0,next:{id:"browse",pattern:"/credentials/browse",next:{id:"cert-renewals",pattern:"/credentials/certifications/renew-your-microsoft-certification",next:{id:"faq-help",pattern:"/credentials/support/help"}}}};function CYe(e=k,t=Kt){let n;switch(t){case"Learn":case"Training":n=wYe;break;case"Q&A":n=TYe;break;case"Certifications":case"Credentials":n=SYe;break;default:return e("activeMenuId")}return EYe(n)}function EYe(e,t=oe.pathname){if(!e)return;let n,o=e;do{let r=!0;o.exclude&&t.includes(o.exclude)&&(r=!1),(o.exact&&t!==o.pattern||t.indexOf(o.pattern)===-1)&&(r=!1),r&&(n=o.id),o=o.next}while(o&&!n);return n}var AYe="DEV_Homeheader";function IPe(){let e=k("uhfHeaderId"),t=e&&e!==AYe?e:"";return(L.reviewFeatures?me()["header-id"]:"")||b.data.context.uhfHeaderId||t}async function PPe(e,t=b.data.userLocale){let n={branch:St(["contentnav-branch"],"main")},r=`${D.contentNav}/${t}/content-nav/${e}.json?${V(n)}`,s;try{s=await R(r,{credentials:"include"})}catch{return console.error("Content navigation fetching error."),null}if(!s.ok){let a=new Error(`Content navigation JSON not found for ${e} in ${t}.`);return a.headerId=e,console.error(a),null}let i=await s.json();return i.items.push({kind:"menu",title:Dx,biName:"more",items:[]}),i}function LPe(e,t=k("platform_id")){if(!e)return;let n=e.primary,o=e.secondary;n&&ZS(n.href)&&(n.href=u1(n.href,t)),o&&ZS(o.href)&&(o.href=u1(o.href,t))}var ks,eD,jy=new Promise(e=>eD=e);async function RPe(){if(!Yy){ks=null,eD();return}let e=IPe();if(!e){ks=null,eD();return}ks=await PPe(e),ks&&(APe(ks.callToAction),EPe(ks.callToAction),LPe(ks.callToAction),kPe(ks.items)),eD()}M();var He=class{},Ip=class{};M();function kYe(e,t,n,o){let r;return n&&(r=[],r.push("font-weight-semibold","font-size-md")),e.kind==="link"?tD(e,`secondary-nav-link-${o+1}`,!1,r,n):IYe(e,t,r,o)}function tD({href:e,title:t,biName:n},o,r=!1,s=[],i=!1,a=!1){let l=r?"has-text-primary":"",c=i?"":"has-external-link-indicator",u;a?u=n?`secondary-nav-link-category-${n}-mobile`:"secondary-nav-link-category-mobile":u=n?`secondary-nav-link-${n}-mobile`:"secondary-nav-link-mobile",r&&(u=n?`${o}-${n}-mobile`:`${o}-mobile`);let p=qe(e,b.data.userLocale);return d`
  • ${t}
  • `}function IYe(e,t,n=[],o){let r=b.data.userDir==="ltr"?"docon-chevron-right-light":"docon-chevron-left-light",s=e.id?`ms--secondary-nav-btn-${e.id}`:`ms--secondary-nav-btn-${o+1}`,i=e.biName?`secondary-nav-btn-${e.biName}-mobile`:"secondary-nav-btn-mobile",a=e.biName?`secondary-nav-menu-${e.biName}-mobile`:"secondary-nav-menu-mobile";return d`
  • `}function MPe(e,t){return d` `}function DPe(e,t,n,o,r,s,i,a,l,c,u){let p=b.data.userDir==="ltr"?"docon-arrow-left":"docon-arrow-right",m=n?"secondary-nav":"primary-nav";return d` ${DYe(i,n)&&o>=2&&u?d`
    `:null} ${i?d`
    `:null} `}function $Pe(e,t){if(!e)throw new Error("Site header data is unavailable.");return PYe(e,t)}function PYe(e,t){if(e.type==="static-header")return LYe(e);if(!t)throw new Error("Menu handler is not available");return RYe(e,t)}function LYe(e){let t=e.navLinks.map(n=>{let o=qe(n.href,b.data.userLocale);return d`
  • ${n.title}
  • `});return d` `}function RYe(e,t){let n=b.data.userDir==="ltr"?"docon-chevron-right-light":"docon-chevron-left-light",o=e.navCategories.map(r=>{let s=`site-header-btn-${r.biName}-mobile`,i=`ms--${s}`;return d`
  • `});return d` `}function NPe(e,t,n,o,r,s){let i=b.data.userDir==="ltr"?"docon-arrow-left":"docon-arrow-right",a=b.data.userLocale,l=d`
    `,c=d`
    `,u="";if(e.panelLink){let g=e.panelLink,f=qe(g.href,a);u=d` ${g.title} `}let p="";if(s){let g=s.map(f=>{let _=qe(f.href,a);return d` `});p=d`
    ${g}
    `}let m=[];return e.panelContent[0].componentType==="header-panel-card"?e.panelContent.map(g=>{let f=qe(g.href,a),_=d`
  • `;m.push(_)}):e.panelContent[0].componentType==="header-panel-link"&&e.panelContent.map(g=>{let f=qe(g.href,a),_=d`
  • ${g.title}
  • `;m.push(_)}),d` ${l}
    ${c} ${u}
    ${p}
    `}function FPe(){let e="#",t=v.isAuthenticated?"button-clear inner-focus":"auth-status-determined not-authenticated button-filled button-primary";t=`docs-sign-${v.isAuthenticated?"out":"in"} `+t;let n=d`

    ${q(pbe)}

    `,o=d` ${v.isAuthenticated?MYe():n}
    ${v.isAuthenticated?d` ${xm} `:""} ${v.isAuthenticated?Dh:Fs}
    `;return d`
    ${Z1?o:n}
    `}function MYe(){return d` `}function DYe(e,t){return t||Kt!=="Docs_Home"&&e}async function OPe(e,t){if(await Qy,!t)throw new Error("Site header data is unavailable.");let n=A.createElement("div");n.classList.add("modal-content","is-docked-left","display-flex","flex-direction-column"),n.setAttribute("data-test-id","global-navigation-mobile");let o=new X1;n.paint=()=>{y(d` ${MPe(e,t.brandLink.displayName)} ${FPe()} `,n)};function r(ye){n.paint();let Ae=n.querySelector("#modal-body");if(ye){let de=Ae.querySelector(`#${ye}`);if(de){de.focus();return}}$Ye(Ae)}function s(ye){let Ae=ye.target instanceof HTMLElement&&ye.target.closest("button");if(!Ae||!Ae.classList.contains("pop-content"))return;let de=Ae.getAttribute("data-back-id");o.pop(),r(de)}let i=e.subscribe(He,n.paint);n.dispose=()=>{o.dispose(),i(),n.removeEventListener("click",s)};let a=UPe(e.items),l,c,u,p,m,g,f,_,h,T,x;function w(ye,Ae,de){a=ye.items,l=ye.title,g=Ae,f=de,c=null,u=null,p=null,m=o.getTitle(),E(!0),r()}function I(ye,Ae,de,xt,qt,Qt){h=ye,T=Ae,x=Qt,g=de,f=xt,_=qt,E(!1,!0),r()}function E(ye=!1,Ae=!1){let de;!ye&&!Ae&&t?de=$Pe(t,I):Ae?de=NPe(h,T,g,_,Hu,x):de=DPe(a,w,ye,o.stackLength,g,f,l,c,u,p,m),o.push(de),o.pushTitle(l)}function Q(){E(),n.paint()}function O(){if(!(o.stackLength<=1)){for(;o.stackLength>1;)o.stackLength===2&&(e.secondaryNav=!1),o.pop();r()}}if(Q(),n.addEventListener("click",s),Yy){await jy;let ye=ks;ye&&(c=ye.category,u=ye.callToAction,p=ye.preview,l=ye.category?ye.category.title:null,a=UPe(ye.items),E(!0),r(),e.secondaryNav=!0,n.querySelector("#modal-header button.button").onclick=O)}return n}function $Ye(e){let t=e.querySelector("[data-autofocus]");if(t&&zR(t)){t.focus();return}e.focus()}function UPe(e){return e.slice(0,e.length-1)}var Wy=class extends Ve{constructor(){super();this._items=[{title:Dx,kind:"menu",items:[],biName:"more"}];this._mobile=!1;this._desktop=!1;this._mobileNavExpanded=!1;this._secondaryNav=!1}get items(){return this._items}set items(n){this._items=n&&n.length?n:[{title:Dx,kind:"menu",items:[],id:"more",biName:"more"}],this.more.items=zr(this._items.slice(0,this._items.length-1)),this.resetItemVisibility(),this.notifyPropertyChanged()}get mobile(){return this._mobile}set mobile(n){this._mobile=n,this._mobileNavExpanded=!1,this.notifyPropertyChanged()}get desktop(){return this._desktop}set desktop(n){this._desktop=n,this.notifyPropertyChanged()}get mobileNavExpanded(){return this._mobileNavExpanded}set mobileNavExpanded(n){this._mobileNavExpanded=n,this.notifyPropertyChanged()}get secondaryNav(){return this._secondaryNav}set secondaryNav(n){this._secondaryNav=n,this.notifyPropertyChanged()}get more(){let n=this._items.length;return n?this._items[n-1]:null}resetItemVisibility(){this.items.length!==0&&(this.items.forEach(n=>n.hidden=!1),this.more.hidden=!0,this.more.items.forEach(n=>n.hidden=!0))}notifyPropertyChanged(){this.publish(new He)}};function qPe(){let e=document.querySelector("#ms--site-header-hamburger > button");if(!e)return;let t=new Wy;e.addEventListener("click",()=>NYe(t))}async function NYe(e){await Qy;let t=await OPe(e,Vy),n=new ge(t),o=window.outerWidth;function r(){t.dispose(),window.removeEventListener("resize",s),e.mobileNavExpanded=!1}function s(){n.hide(),r()}window.addEventListener("resize",()=>{window.outerWidth!==o&&s()},{passive:!0}),e.mobileNavExpanded=!0,await n.show()}M();var Y8;function HPe(){return Y8===void 0&&(Y8=(async()=>Ze("user-analytics",{require:!0})?!0:Bi("user-analytics-dashboard"))()),Y8}M();var mC="autocomplete-change-event",j8="autocomplete-displayed-event";function Zl(e){e.input.placeholder=e.input.placeholder||"",e.input.type=e.input.type||"text",e.input.required=e.input.required||!1,e.input.disabled=e.input.disabled||!1;let{getSuggestions:t,getTitle:n=Ne=>typeof Ne?.toString=="function"?Ne.toString():Ne,itemTemplate:o=n,noResultsTemplate:r=null,initialValue:s=null,input:{biName:i},exclude:a=Ne=>!1,showLoader:l=!0}=e,c=document.createElement("div");c.classList.add("autocomplete"),e.input.isFullWidth&&c.classList.add("display-block"),c.setAttribute("data-bi-name","autocomplete");let u=_t(),p=`${u}-listbox`,m=Ne=>Ne===-1?"":`${u}-option-${Ne}`,g=[],f=-1,_=s?n(s):"",h="",T=s,x=0,w=!1,I=!1,E="";e.input.size&&(E=e.input.size==="small"?"input-sm":"input-lg");let Q=()=>{let Ne=c.querySelector(`#${p}`),U=Ne.children.item(f===-1?0:f);U?U.offsetTop+U.offsetHeight>Ne.offsetHeight?Ne.scrollTop=U.offsetTop-Ne.offsetHeight+U.offsetHeight+4:U.offsetTop{y(it(),c);let Ne=c.querySelector("input");Ne&&(Ne.value=_||h),Q()},ye=()=>{g=[],f=-1,O()},Ae=(Ne,U)=>{let ce=h;if(T=Ne,_=Ne?n(Ne):"",h=_,ye(),U&&Ne){let B=new CustomEvent(mC,{detail:{suggestion:Ne,term:ce},bubbles:!0});c.dispatchEvent(B)}};Object.defineProperty(c,"value",{get(){return T},set(Ne){Ae(Ne,!1)}});let de=async()=>{if(h===""){w=!1,T=null,ye();return}g=await t(h),g=g.filter(U=>!a(U));let Ne=new CustomEvent(j8,{detail:g,bubbles:!0});c.dispatchEvent(Ne),g.length||un(Nce,"assertive",2e3),f=-1,w=!1,O()},xt=Ne=>{let ce=Ne?.url;ce&&ce.href&&window.open(ce.href,"_blank")},qt=Ne=>{let U=Ne.target instanceof Element&&Ne.target.closest('[role="option"]');if(!U)return;Ne.preventDefault();let ce=U.parentElement,B=0;for(;B{clearTimeout(x),x=setTimeout(de,250);let U=Ne.target;h=U.value,_="",!w&&U.value!==""&&!I&&(w=!0,O())},Ln=()=>{I=!0},Yt=()=>{I=!1},Ft=()=>ye(),vn=Ne=>{let{keyCode:U,shiftKey:ce,altKey:B,ctrlKey:ae}=Ne;if(!(ce||B||ae)){if(U===et.down){Ne.preventDefault(),f0?(f--,_=n(g[f])):(f=-1,_=h),O();return}if(U===et.escape){Ne.preventDefault(),Ae(T,!1);return}if(U===et.enter){if(f>=0){let ve=g[f];Ae(ve,!0)}return}}};function it(){let Ne=e.input.docon?d` `:"";return d`
    ${Ne} ${l?d` `:""}
      U.preventDefault()} @click=${qt} @keyup=${U=>(U.key==="Enter"||U.key==="Spacebar")&&qt} ?hidden=${!h.length||w||!r&&!g.length||_===h} > ${g.map((U,ce)=>d`
    • ${o(U)}
    • `)} ${!g.length&&r?d`
    • ${r}
    • `:""}
    `}return O(),c.addEventListener("compositionstart",Ln),c.addEventListener("compositionend",Yt),c}var BPe=["All","Ai","Documentation","Training","Credential","QnA","Reference","Show"];async function zPe(e,t=b.data.userLocale){let n={query:e,suggestions:[]};if(!e)return Promise.resolve(n);let o=`${D.siteSearch}/autocomplete?${V({locale:t,query:e})}`,r={mode:"cors",credentials:L.supportLevel==="production"&&L.reviewFeatures?"include":"same-origin"},s=await R(o,r);if(s.ok)return s.json();if(s.status===403)return{query:e,suggestions:[]};throw new Wt(s)}function gC(e){let t=new URLSearchParams(e),n=t.get("category")||"All",o=BPe.find(r=>r.localeCompare(n,void 0,{sensitivity:"base"})===0)||"All";return{dataSource:t.get("dataSource"),category:o,skip:parseInt(t.get("skip")||"0"),term:t.get("search"),scope:t.get("scope"),preview:t.get("preview")}}M();function GPe(){let e=b.data.context.searchScope||k("scope");if(b.data.pageTemplate==="SearchPage"&&(e=gC(location.search).scope),k("hideScope")==="true"||!e)return"";let o=e.split(",").map(r=>r.trim()).filter(r=>r.length);return o.length?o[o.length-1]:""}function W8(e=oe.pathname,t={}){let n=decodeURI(mr(e)).toLowerCase().split("/").slice(1),[o="",r=""]=n;return{parts:n,firstPart:o,secondPart:r,pageKind:En.kind,pageType:En.type,msTopic:k("ms.topic"),...t}}function K8(e,t=W8()){if(e==="site"){if(t.firstPart==="docs")return"Documentation";if(t.firstPart==="training"||t.pageKind==="learn")return"Training";if(t.firstPart==="answers")return"QnA";if(t.firstPart==="credentials")return"Credential";if(t.firstPart==="shows")return"Show"}return e==="toc"&&t.pageType==="conceptual"?"Documentation":t.firstPart==="powershell"&&t.secondPart==="module"||t.parts.includes("api")||t.msTopic==="generated-reference"?"Reference":"All"}var Ky=typeof Blob=="function"&&typeof PerformanceObserver=="function"&&typeof Intl=="object"&&typeof MutationObserver=="function"&&typeof URLSearchParams=="function"&&typeof WebSocket=="function"&&typeof IntersectionObserver=="function"&&typeof queueMicrotask=="function"&&typeof TextEncoder=="function"&&typeof TextDecoder=="function"&&typeof customElements=="object"&&typeof HTMLDetailsElement=="function"&&typeof AbortController=="function"&&typeof AbortSignal=="function"&&"entries"in FormData.prototype&&"toggleAttribute"in Element.prototype&&"replaceChildren"in Element.prototype&&"fromEntries"in Object&&"flatMap"in Array.prototype&&"trimEnd"in String.prototype&&"allSettled"in Promise&&"matchAll"in String.prototype&&"replaceAll"in String.prototype&&!0;var FYe=1e4,UYe=4e3,VPe=Symbol("scenario timeout"),Uo=class{constructor(t,n=32e3,o=window.fetch){this.scenario=t;this.timeLimitMs=n;this.fetch=o;this._timeoutHandle=0;this._pingTimeoutHandle=0;this._start=0}succeed(){this.complete(!0,void 0)}updateProgress(t){this._start!==0&&(this._diagnostics.scenarioProgress={progress:t,duration:performance.now()-this._start})}fail(t){this.complete(!1,t)}cancel(){this.unsubscribe(),this._start=0,this._diagnostics=null}start(){this.cancel(),this._diagnostics={type:"scenario-health",version:"1",scenario:this.scenario,durationInMilliseconds:0,succeeded:!0,reason:void 0,startConnection:Ku.connection?.effectiveType??"unknown",endConnection:"unknown",wasHidden:A.visibilityState==="hidden",wentOffline:!Ku.onLine,supportedBrowser:Ky,resources:[],pings:{},startDateTime:new Date().toISOString(),pingStartDateTime:null,endDateTime:null,scenarioProgress:null},this._start=performance.now(),addEventListener("visibilitychange",this),addEventListener("offline",this),this._timeoutHandle=setTimeout(()=>this.complete(!1,VPe),this.timeLimitMs),this._pingTimeoutHandle=setTimeout(()=>this.collectPingDiagnostics(),FYe)}handleEvent(){var t,n;(t=this._diagnostics).wasHidden||(t.wasHidden=A.visibilityState==="hidden"),(n=this._diagnostics).wentOffline||(n.wentOffline=!Ku.onLine)}complete(t,n){this.unsubscribe();let o=this._start;if(o===0)return;this._start=0;let r=this._diagnostics;r.scenarioProgress=t?{progress:"Succeeded",duration:performance.now()-o}:r.scenarioProgress,r.endDateTime=new Date().toISOString(),r.succeeded=t,r.durationInMilliseconds=performance.now()-o,r.reason=t?void 0:OYe(n),r.endConnection=Ku.connection?.effectiveType??"unknown",r.resources=Array.from(performance.getEntriesByType("resource")).filter(s=>s.startTime>=o).map(s=>s.toJSON()).filter(s=>s.initiatorType==="fetch"&&s.name.startsWith(location.origin)).map(s=>(s.connectEnd=Math.floor(s.connectEnd),s.connectStart=Math.floor(s.connectStart),s.domainLookupEnd=Math.floor(s.domainLookupEnd),s.domainLookupStart=Math.floor(s.domainLookupStart),s.duration=Math.floor(s.duration),s.fetchStart=Math.floor(s.fetchStart),s.redirectEnd=Math.floor(s.redirectEnd),s.redirectStart=Math.floor(s.redirectStart),s.requestStart=Math.floor(s.requestStart),s.responseEnd=Math.floor(s.responseEnd),s.responseStart=Math.floor(s.responseStart),s.secureConnectionStart=Math.floor(s.secureConnectionStart),s.startTime=Math.floor(s.startTime),s.workerStart=Math.floor(s.workerStart),s)),Ee({actionType:Re.OTHER,behavior:Ce.OTHER,content:r})}unsubscribe(){removeEventListener("visibilitychange",this),removeEventListener("offline",this),clearTimeout(this._timeoutHandle),clearTimeout(this._pingTimeoutHandle)}collectPingDiagnostics(){this._diagnostics.pingStartDateTime=new Date().toISOString();let t=new AbortController,n=t.signal;setTimeout(()=>t.abort(),UYe);let o=async(r,s)=>{let i=performance.now();try{await this.fetch.call(window,s,{cache:"no-store",mode:"no-cors",signal:n}),this._diagnostics.pings[r]={response:!0,duration:Math.floor(performance.now()-i)}}catch{this._diagnostics.pings[r]={response:!1,duration:Math.floor(performance.now()-i)}}};return Promise.all([o("docs",`${location.origin}/robots.txt`)])}};function OYe(e){return e===VPe?{type:"scenario-timeout"}:e instanceof Response||e instanceof Wt?{type:"dependency",url:e.url,status:e.status,statusText:e.statusText,headers:e.headers instanceof Headers?F6(e.headers):e.headers}:e instanceof Error?{type:"exception",name:e.name,message:e.message,stack:e.stack}:{type:"unknown",value:String(e)}}async function fC(e){if(S.disableSiteSearchSuggestions)return[];let t=new Uo("Commerce.Docs.Discoverability_SiteSearch_Autocomplete");t.start();try{if(e=e.replace(/^[\s`~!@^,]+/,"").replace(/[\s`~!@^,]+$/,""),e.length<2)return t.cancel(),[];let n=await zPe(e,b.data.userLocale);return t.succeed(),n.suggestions}catch(n){return t.fail(n),[]}}function QPe({suggestion:e,term:t}){Ee({behavior:Ce.SEARCHAUTOCOMPLETE,actionType:Re.OTHER,content:{srchq:t,srchtype:"auto suggest",resultselected:e.title,resulttype:e.type||"",resulturl:e.url||""}})}function YPe(e){let t=[{srchtype:"auto suggest"}];e.forEach((n,o)=>{t.push({cN:n.title,sN:o,type:n.type||"",url:n.url||""})}),Ee({content:t})}var qYe="https://www.azure.cn/searchresults/";function J8(){let e;return b.data.brand==="mooncake"?e=qYe:!L.systemContent&&L.accessLevel!=="local"?e=`https://learn.microsoft.com/${b.data.userLocale}/search/`:e=`/${b.data.userLocale}/${Ot?"test/docs/search/search":"search/"}`,e}function X8(){let e=GPe(),t=HYe(),n=BYe();return{scope:e,category:t,dataSource:ir()?"previousVersions":"",preview:n}}function HYe(){let e=gC(oe.search)?.category;if(e?.toLowerCase()!=="all")return e;let t=K8("site",W8());return t&&t!=="All"?t:""}function BYe(){return gC(oe.search).preview||""}function Z8(e){let t={suggestion:{title:e.detail.suggestion},term:e.detail.term};QPe(t)}function e9(e){let t=e.detail.map(n=>({title:n}));YPe(t)}function t9(e,t,n,o){if(!e)return;let r=A.getElementById(n),s=r.placeholder,i=r.value,a=e.parentElement;if(!a)return;let l=o?`${o}-search`:void 0,c={input:{id:`${t}-autocomplete-input`,placeholder:s,size:"large",label:Dr,isFullWidth:!0,name:"terms",biName:l},initialValue:i,getSuggestions:fC,itemTemplate:T=>d` ${T} `,showLoader:!S.disableSiteSearchSuggestions},u=Zl(c),{scope:p,category:m,dataSource:g,preview:f}=X8(),_=o?`${o}-search-form`:void 0,h=o?`${o}-search-submit`:void 0;y(d` `,a)}M();var jPe="display-block font-size-sm padding-inline-xxs";function WPe(e=!1){let{category:t,dataSource:n,preview:o}=X8(),r=Kt==="Search"?"":t,s=J8(),i=b.data.brand==="mooncake"?"q":"terms",a={input:{id:e?"site-header-search-autocomplete-input-mobile":"site-header-search-autocomplete-input",type:"search",placeholder:ir()?gU:Dr,label:Dr,isFullWidth:!0,name:i,biName:e?"site-header-search-autocomplete-input-mobile":"site-header-search-autocomplete-input"},getSuggestions:fC,itemTemplate:p=>d` ${p} `,showLoader:!S.disableSiteSearchSuggestions};e||(a.input.size="small");let l=Zl(a),c=e?"ms--site-header-search-form-mobile":"ms--site-header-search-form",u=e?"site-header-search-form-mobile":"site-header-search-form";return d` `}function KPe(e){return e?d` ${XPe()}
    ${ZPe(e.brandLink)}
    ${QYe(e)} ${eLe()}
    ${tLe()} `:""}function JPe(e){return e?d`
    ${ZPe(e.brandLink,!0)} ${XPe(!0)} ${eLe(!0)} ${tLe(!0)} `:""}function XPe(e=!1){let t="site-header-microsoft-logo",n="site-header-microsoft-logo",o="";e&&(t="site-header-microsoft-logo-mobile",n="site-header-microsoft-logo-mobile",o="site-header-logo-centered");let r=d` `;return d` `}function ZPe(e,t=!1){if(!e)return"";let n=qe(e.href,b.data.userLocale),o=t?`site-header-brand-${e.biName}-mobile`:`site-header-brand-${e.biName}`;return d` `}function eLe(e=!1){let t=WPe(e),n="flex-grow-1 margin-left-xxs";e&&(n="display-flex flex-grow-1 justify-content-flex-end");let o=e?"site-header-search-open-mobile":"site-header-search-open",r=e?"site-header-search-close-mobile":"site-header-search-close",s=e?"site-header-search-mobile":"site-header-search",i=e?"ms--site-header-search-mobile":"ms--site-header-search";return d` `}function tLe(e=!1){if(!Z1)return"";let o=d` `,r=e?"site-header-user-mobile":"site-header-user",s=e?"site-header-user-mobile":"site-header-user",i=e?"site-header-sign-out-mobile":"site-header-sign-out",a=e?"site-header-user-sign-out-mobile":"site-header-user-sign-out",l=e?"ms--user-display-name-mobile":"ms--user-display-name",u=d`

    `;return d`${o} ${u}`}function zYe(e,t){if(!e)return"";let n="";if(t){let r=t.map(s=>{let i=qe(s.href,b.data.userLocale);return d` `});n=d` `}let o=e.map((r,s)=>{let i=`ms--panel-${s+1}`;return d`
  • `});return d`
      ${o}
    `}function GYe(e,t){if(!e)return"";let n=b.data.userLocale,o="";if(e.panelLink){let i=e.panelLink,a=qe(i.href,n);o=d` ${i.title} `}let r=[],s="site-header-panel-links";return e.panelContent[0].componentType==="header-panel-card"?e.panelContent.map(i=>{s="site-header-panel-cards";let a=qe(i.href,n),l=d`
  • `;r.push(l)}):e.panelContent[0].componentType==="header-panel-link"&&e.panelContent.map(i=>{let a=qe(i.href,n),l=d`
  • ${i.title}
  • `;r.push(l)}),d`
      ${r}
    ${o}
    ${t} `}function VYe(e){if(!e)return"";let t=e.map((n,o)=>{let r=qe(n.href,b.data.userLocale);return d`
  • ${n.title}
  • `});return d`
      ${t}
    `}function QYe(e){let t=e.type==="static-header"?VYe(e.navLinks):zYe(e.navCategories,e.featuredContent),n=b.data.userDir==="ltr"?"left":"right",o=b.data.userDir==="ltr"?"right":"left";return d` `}ot();Bh();M();M();function n9(e,t){let{leftTemplate:n,rightTemplate:o}=e;return d` ${n()} ${o(t)} `}function rLe(e){let t=document.createElement("div");t.classList.add("site-header","width-full");let n=new Wy;return t.paint=()=>iLe(t,n,e),Object.defineProperty(t,"items",{enumerable:!0,get:()=>n.items,set:o=>n.items=o}),n.desktop=xa.matches,n.mobile=!Ub.matches,xa.addListener(()=>{n.desktop=xa.matches}),Ub.addListener(()=>{n.mobile=!Ub.matches}),window.addEventListener("resize",()=>{Ub.matches&&YYe(t,n,e)},{passive:!0}),t.paint(),Te.then(()=>{let o=new MutationObserver(r=>{for(let s of r)for(let i=0;it.paint()),window.addEventListener("content-update",()=>t.paint()),t}var sLe=0;function iLe(e,t,n){if(sLe=Date.now(),t.resetItemVisibility(),y(n9(n,t),e),t.mobile)return;let o=e.querySelector(".nav-bar-spacer"),{more:r,items:s}=t,i=s.length-1;for(;i>0&&o.getBoundingClientRect().width===0;)i--,r.hidden=!1,s[i].hidden=!0,r.items[i].hidden=!1,y(n9(n,t),e)}var nLe=0,oLe=50;function YYe(e,t,n){clearTimeout(nLe),Date.now()-sLe>oLe?e.paint():nLe=setTimeout(iLe,oLe,e,t,n)}async function lLe(){if(await jy,!ks)return null;let e=rLe(jYe(ks));return e.items=ks.items,e}function jYe(e){let{category:t,callToAction:n,preview:o}=e,r="";return n&&(r=WYe(n)),{leftTemplate:()=>KYe(t,o),rightTemplate:a=>d` ${XYe(a,hge)} ${r} ${JYe()} `}}function WYe(e){if(!e)return"";let{primary:t,secondary:n}=e,o="";return n&&(o=aLe(n,!0)),d`
    ${o} ${aLe(t)}
    `}function aLe(e,t=!1){if(!e)return"";let{href:n,title:o}=e,r;return e.biName?r=t?`secondary-nav-cta-secondary-${e.biName}`:`secondary-nav-cta-primary-${e.biName}`:r=t?"secondary-nav-cta-secondary":"secondary-nav-cta-primary",d` ${o} `}function KYe(e,t){let{href:n,title:o,biName:r}=e,s=qe(n,b.data.userLocale),i=uLe(s),a=r?`secondary-nav-link-category-${r}`:"secondary-nav-link-category";return d` `}function JYe(){return Kt!=="Learn"&&Kt!=="Training"?"":d` `}function XYe(e,t){let{items:n}=e;return d` `}function cLe(e,t){return e.kind==="link"?ZYe(e,t):eje(e,t)}function ZYe(e,t){let n=e.current?"is-active":"",o=qe(e.href,b.data.userLocale),r=uLe(o,!!n),s=e.biName?`secondary-nav-link-${e.biName}`:"secondary-nav-link";return t?d`
  • ${e.title}
  • `:d`
  • ${e.title}
  • `}function eje(e,t){let n=ex(),o=t?b.data.userDir==="ltr"?"chevron-right-light":"chevron-left-light":"chevron-down-light",r=t?"":"expanded-indicator",s=e.current?"is-active":"",i=e.current?"true":void 0,a=e.biName?`secondary-nav-btn-${e.biName}`:"secondary-nav-btn",l=e.biName?`secondary-nav-menu-${e.biName}`:"secondary-nav-menu";return d` `}function tje(e,t=new URL(window.location.href)){return e.origin===t.origin&&e.pathname.toLowerCase().replace(/\//gi,"")===t.pathname.toLowerCase().replace(/\//gi,"")}function uLe(e,t){let n=new URL(e,window.location.origin);if(tje(n)&&t)return"page";if(t)return"true"}var Xy,nD=new Promise(e=>Xy=e);async function dLe(){TPe(),RPe(),nje()}async function nje(){await Qy;let e=KPe(Vy),t=JPe(Vy);await Te;let n=A.querySelector("#ms--site-header");if(!n){Xy();return}let o=n.querySelector("#ms--primary-nav");if(!o){Xy();return}let r=n.querySelector("#ms--mobile-nav");if(!r){Xy();return}y(e,o),y(t,r),wPe(),qPe();let s=n.querySelector("#ms--secondary-nav");if(!s){Xy();return}if(Yy){await jy;let i=await lLe();s.classList.contains("site-header")&&i?(s.classList.remove("site-header"),y(i,s)):s.remove()}else s.remove();Xy()}M();var oje=["Conceptual","Episode","Module","Reference"],pLe={Conceptual:{"ai-generated":Hee,"ai-assisted":qee,"human-only":Bee},Episode:{"ai-generated":zee,"ai-assisted":Gee},Module:{"ai-generated":Vee,"ai-assisted":Qee},Reference:{"ai-generated":Yee,"ai-assisted":jee}};function mLe(){let e=es("ai-usage"),t=b.data.pageTemplate;!oje.includes(t)||e.length===0||rje(t,e)}function rje(e,t){let n=document.getElementById("ms--inline-notifications"),o=sje(e,t);if(!n||!o)return;let r=aje(o);y(r,n)}function sje(e,t){let n=new Set(t),o=[];for(let r of n)if(pLe[e].hasOwnProperty(r)){let s=pLe[e][r];s&&o.push(s)}return o}function ije(e){return d`
    ${q(e)}
    `}function aje(e){return d` ${Hs(e,t=>ije(t))} `}Object.defineProperty(HTMLElement.prototype,"inlineStyle",{set(e){this.style.cssText=e}});Object.defineProperty(HTMLInputElement.prototype,"customValidity",{set(e){this.setCustomValidity(e)}});function fLe(){let e=document.querySelector('script[src*=".index-"][src$=".js"]');return e?e.src:"unknown-script-src"}function hLe(){window.addEventListener("unhandledrejection",e=>{let t=gLe(e.type,fLe(),e.lineno,e.colno,{name:e?.type,message:e?.reason?.message||"Error message unavailable for unhandle rejection in promise",stack:e?.reason?.stack||"No stack available for unhandled rejection in promise",...e?.reason?.message?{}:{troubleshooting:JSON.stringify(e)}});Ee({behavior:Ce.OTHER,content:t})}),window.onerror=(e,t,n,o,r)=>{let s=gLe(e,t,n,o,r);Ee({behavior:Ce.OTHER,content:s})}}function gLe(e,t,n,o,r){let i=new Date().toString();return{type:"learn-client-error",event:e,source:t||fLe(),lineno:n||0,colno:o||0,message:r?.message||"Error message unavailable",stack:r?.stack||"Stack trace unavailable",name:r?.name||"Error name unavailable",timestamp:i,timeOrigin:window.performance.timeOrigin||void 0,userAgent:window.navigator.userAgent,connectionCategory:window.navigator.connection?.effectiveType||"Unknown",url:window.location.href,supportedBrowser:Ky,pageTemplate:b.data.pageTemplate}}var Pp,bC,kLe,rD,i9,ev=function(){return window.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]},_C=function(e){if(document.readyState==="loading")return"loading";var t=ev();if(t){if(e(t||100)-1)return n||r;if(n=n?r+">"+n:r,o.id)break;e=o.parentNode}}catch{}return n},ILe=-1,PLe=function(){return ILe},Cf=function(e){addEventListener("pageshow",function(t){t.persisted&&(ILe=t.timeStamp,e(t))},!0)},aD=function(){var e=ev();return e&&e.activationStart||0},Yi=function(e,t){var n=ev(),o="navigate";return PLe()>=0?o="back-forward-cache":n&&(o=document.prerendering||aD()>0?"prerender":document.wasDiscarded?"restore":n.type.replace(/_/g,"-")),{name:e,value:t===void 0?-1:t,rating:"good",delta:0,entries:[],id:"v3-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:o}},tv=function(e,t,n){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){var o=new PerformanceObserver(function(r){Promise.resolve().then(function(){t(r.getEntries())})});return o.observe(Object.assign({type:e,buffered:!0},n||{})),o}}catch{}},ji=function(e,t,n,o){var r,s;return function(i){t.value>=0&&(i||o)&&((s=t.value-(r||0))||r===void 0)&&(r=t.value,t.delta=s,t.rating=function(a,l){return a>l[1]?"poor":a>l[0]?"needs-improvement":"good"}(t.value,n),e(t))}},a9=function(e){requestAnimationFrame(function(){return requestAnimationFrame(function(){return e()})})},lD=function(e){var t=function(n){n.type!=="pagehide"&&document.visibilityState!=="hidden"||e(n)};addEventListener("visibilitychange",t,!0),addEventListener("pagehide",t,!0)},l9=function(e){var t=!1;return function(n){t||(e(n),t=!0)}},Zy=-1,bLe=function(){return document.visibilityState!=="hidden"||document.prerendering?1/0:0},sD=function(e){document.visibilityState==="hidden"&&Zy>-1&&(Zy=e.type==="visibilitychange"?e.timeStamp:0,cje())},_Le=function(){addEventListener("visibilitychange",sD,!0),addEventListener("prerenderingchange",sD,!0)},cje=function(){removeEventListener("visibilitychange",sD,!0),removeEventListener("prerenderingchange",sD,!0)},c9=function(){return Zy<0&&(Zy=bLe(),_Le(),Cf(function(){setTimeout(function(){Zy=bLe(),_Le()},0)})),{get firstHiddenTime(){return Zy}}},yC=function(e){document.prerendering?addEventListener("prerenderingchange",function(){return e()},!0):e()},yLe=[1800,3e3],LLe=function(e,t){t=t||{},yC(function(){var n,o=c9(),r=Yi("FCP"),s=tv("paint",function(i){i.forEach(function(a){a.name==="first-contentful-paint"&&(s.disconnect(),a.startTimes.value&&(s.value=i,s.entries=a,r())},c=tv("layout-shift",l);c&&(r=ji(n,s,vLe,o.reportAllChanges),lD(function(){l(c.takeRecords()),r(!0)}),Cf(function(){i=0,s=Yi("CLS",0),r=ji(n,s,vLe,o.reportAllChanges),a9(function(){return r()})}),setTimeout(r,0))}))})(function(n){(function(o){if(o.entries.length){var r=o.entries.reduce(function(a,l){return a&&a.value>l.value?a:l});if(r&&r.sources&&r.sources.length){var s=(i=r.sources).find(function(a){return a.node&&a.node.nodeType===1})||i[0];if(s)return void(o.attribution={largestShiftTarget:iD(s.node),largestShiftTime:r.startTime,largestShiftValue:r.value,largestShiftSource:s,largestShiftEntry:r,loadState:_C(r.startTime)})}}var i;o.attribution={}})(n),e(n)},t)},MLe=function(e,t){LLe(function(n){(function(o){if(o.entries.length){var r=ev(),s=o.entries[o.entries.length-1];if(r){var i=r.activationStart||0,a=Math.max(0,r.responseStart-i);return void(o.attribution={timeToFirstByte:a,firstByteToFCP:o.value-a,loadState:_C(o.entries[0].startTime),navigationEntry:r,fcpEntry:s})}}o.attribution={timeToFirstByte:0,firstByteToFCP:o.value,loadState:_C(PLe())}})(n),e(n)},t)},hC={passive:!0,capture:!0},uje=new Date,xLe=function(e,t){Pp||(Pp=t,bC=e,kLe=new Date,$Le(removeEventListener),DLe())},DLe=function(){if(bC>=0&&bC1e12?new Date:performance.now())-e.timeStamp;e.type=="pointerdown"?function(n,o){var r=function(){xLe(n,o),i()},s=function(){i()},i=function(){removeEventListener("pointerup",r,hC),removeEventListener("pointercancel",s,hC)};addEventListener("pointerup",r,hC),addEventListener("pointercancel",s,hC)}(t,e):xLe(t,e)}},$Le=function(e){["mousedown","keydown","touchstart","pointerdown"].forEach(function(t){return e(t,dje,hC)})},TLe=[100,300],pje=function(e,t){t=t||{},yC(function(){var n,o=c9(),r=Yi("FID"),s=function(l){l.startTimet.latency){if(n)n.entries.push(e),n.latency=Math.max(n.latency,e.duration);else{var o={id:e.interactionId,latency:e.duration,entries:[e]};r9[o.id]=o,ec.push(o)}ec.sort(function(r,s){return s.latency-r.latency}),ec.splice(10).forEach(function(r){delete r9[r.id]})}},fje=function(e,t){t=t||{},yC(function(){gje();var n,o=Yi("INP"),r=function(i){i.forEach(function(c){c.interactionId&&CLe(c),c.entryType==="first-input"&&!ec.some(function(u){return u.entries.some(function(p){return c.duration===p.duration&&c.startTime===p.startTime})})&&CLe(c)});var a,l=(a=Math.min(ec.length-1,Math.floor(SLe()/50)),ec[a]);l&&l.latency!==o.value&&(o.value=l.latency,o.entries=l.entries,n())},s=tv("event",r,{durationThreshold:t.durationThreshold||40});n=ji(e,o,wLe,t.reportAllChanges),s&&(s.observe({type:"first-input",buffered:!0}),lD(function(){r(s.takeRecords()),o.value<0&&SLe()>0&&(o.value=0,o.entries=[]),n(!0)}),Cf(function(){ec=[],OLe=ULe(),o=Yi("INP"),n=ji(e,o,wLe,t.reportAllChanges)}))})},qLe=function(e,t){fje(function(n){(function(o){if(o.entries.length){var r=o.entries.sort(function(s,i){return i.duration-s.duration||i.processingEnd-i.processingStart-(s.processingEnd-s.processingStart)})[0];o.attribution={eventTarget:iD(r.target),eventType:r.name,eventTime:r.startTime,eventEntry:r,loadState:_C(r.startTime)}}else o.attribution={}})(n),e(n)},t)},ELe=[2500,4e3],s9={},HLe=function(e,t){(function(n,o){o=o||{},yC(function(){var r,s=c9(),i=Yi("LCP"),a=function(u){var p=u[u.length-1];p&&p.startTimeperformance.now())return;n.value=Math.max(s-aD(),0),n.entries=[r],o(!0),Cf(function(){n=Yi("TTFB",0),(o=ji(e,n,ALe,t.reportAllChanges))(!0)})}})},BLe=function(e,t){bje(function(n){(function(o){if(o.entries.length){var r=o.entries[0],s=r.activationStart||0,i=Math.max(r.domainLookupStart-s,0),a=Math.max(r.connectStart-s,0),l=Math.max(r.requestStart-s,0);o.attribution={waitingTime:i,dnsTime:a-i,connectionTime:l-a,requestTime:o.value-l,navigationEntry:r}}else o.attribution={waitingTime:0,dnsTime:0,connectionTime:0,requestTime:0}})(n),e(n)},t)};var vC=k("learn-experiments")==="true"&&L.siteName!=="developer"&&L.siteName!=="mooncake",d9=vC?5*1e3:0,_je="assignmentserviceapi.wus2.dogfood.portalrp.azure-test.net",yje="assignmentserviceapi.production.portalrp.azure.com",vje=L.supportLevel==="development"?`https://${_je}/api/mslearn/variants?api-version=1.0`:`https://${yje}/api/mslearn/variants?api-version=1.0`;function xje(){return vje}var GLe=ixe("MC1",d9),VLe={},uD,cD,zLe,u9=!1,QLe=KLe(),YLe=JLe(),jLe,p9=new Promise(e=>{jLe=e});async function nv(e){return!vC||!await lg?!1:(await p9,e in VLe)}async function WLe(){if(!vC||!await lg)return;let t=await GLe,n=t?tRe(t):null;if(!n){Ee({content:{type:"experiment-no-assignment",name:"experiment-platform-no-mc1-cookie",autoIngest:!0,timestamp:new Date().toISOString()}});return}await fe;let o={mc1:n,audience:{environment:"prod",isAuthenticated:!1,locale:v.locale,referer:document.referrer}};v.isAuthenticated&&(o.userId=v.userId,o.audience.isAuthenticated=!0);let r=JSON.stringify(o),s=N(xje(),{method:"POST",body:r},!1,!0),i=await R(s,{},d9);if(!i.ok)throw Ee({content:{type:"experiment-platform-assignment",name:"assignment-error",autoIngest:!0,timestamp:new Date().toISOString(),content:{requestBody:r,error:`Experiment API failed with status ${i.status}`}}}),new Error(`Experiment API failed: ${i.status}`);let a=await i.json(),l=Object.keys(a.variants),c=new Date().toISOString();return Ee({content:{type:"experiment-platform-assignment",name:"assignment-success",autoIngest:!0,timestamp:new Date().toISOString(),content:{requestBody:r,data:a,dataVersion:a.dataVersion}}}),{assignments:l,rawResponse:a,assignmentTimestamp:c}}function KLe(){return WLe().then(e=>(uD!==void 0&&(clearTimeout(uD),uD=void 0),e!==void 0&&(se.learnExperiments={loaded:!0,assignments:e.assignments,loadTime:performance.now()}),e))}function JLe(){return new Promise(e=>{uD=setTimeout(()=>{e(void 0)},d9)})}async function dD(){await XLe();let e=lg;if(vC){if(!await e){Ee({content:{type:"experiment-no-assignment",name:"experiment-platform-no-consent",autoIngest:!0,timestamp:new Date().toISOString()}});return}se.learnExperiments={...se.learnExperiments||{assignments:[]},loaded:!1};try{let t=await Promise.race([QLe,YLe]);t===void 0&&Ee({content:{type:"experiment-platform-timeout"}}),t!=null&&typeof t=="object"&&"assignments"in t&&"rawResponse"in t&&"assignmentTimestamp"in t&&(VLe=t.assignments.reduce((n,o)=>(n[o]=!0,n),{}),cD=t.rawResponse,zLe=t.assignmentTimestamp),jLe?.(),cD&&await eRe("client-side",cD.assignmentContext,cD.dataVersion,zLe)}catch(t){Ee({content:{type:"experiment-platform-error",content:{error:JSON.stringify(t)}}});return}}}async function XLe(){if(u9)return;let e=document.getElementById("learn-experiments-context");if(!e||e.tagName!=="SCRIPT")return;let t=e.textContent?.trim();if(!t)return;let n;try{n=JSON.parse(t),u9=!0}catch(o){Ee({content:{type:"experiment-platform-error",content:{error:`learn-experiments-script-parse:${o.message}`}}});return}try{await eRe("server-side",n.assignmentContext,n.dataVersion,n.assignmentTimestamp)}catch(o){throw u9=!1,o}}ct.subscribe(Cn,async()=>await ZLe());ct.subscribe(xn,async()=>await ZLe());async function ZLe(){!vC||!await lg||(QLe=KLe(),YLe=JLe(),dD())}async function eRe(e,t,n,o){if(!t)return;let r=await GLe,s={actionType:"A",behavior:12,pageTags:{exp_context:t,exp_platform:"learn-experiments",exp_data_version:n?.toString()??"",exp_assignment_ts:o??"",exp_mc1:tRe(r??"")??"",exp_uri:se.location.href,exp_document_id:k("document_id")??"",exp_page_type:b?.data?.pageTemplate??"",exp_locale:k("locale")??document.documentElement.lang??"",exp_docs_ui_ver:Tje()}};Ixe(s),Ee({content:{type:"experiment-platform-telemetry",name:e+"-experiment",autoIngest:!0,timestamp:new Date().toISOString(),content:s}})}Gl&&(se.__learnExperimentsTestHooks={emitServerExperimentContext:XLe,loadExperimentAssignments:WLe,instrumentExperiments:dD});function tRe(e){let t=e.match(/GUID=([^&;]+)/);return t?t[1]:null}function Tje(){return document.querySelector('script[src*="index-"]')?.src??""}var wje=S.reportWebVitalsAlways?1:.1,pD=new Set;function Ef(e){pD.add(e)}function nRe(){if(pD.size>0){let e=Array.from(pD);Cje(e),pD.clear()}}function Sje(e){let t={};for(let n of e){let{name:o,value:r}=n;t[o]=r}return t}function Cje(e){let t=Sje(e);Ee({content:{type:"web-vitals",version:"1",metrics:t}})}function oRe(){let e=S.reportWebVitalsAlways||Math.random()<=wje;!Ky||!e||(RLe(Ef),MLe(Ef),qLe(Ef),HLe(Ef),BLe(Ef),NLe(Ef),Eje(Ef),document.addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&nRe()}),document.addEventListener("pagehide",nRe))}async function Eje(e){if(window.learnExperiments===void 0||(await p9,window.learnExperiments.loadTime===void 0))return;let t=window.learnExperiments.loadTime,n=t<2500?"good":t>4e3?"bad":"needs-improvement";e({value:t,id:crypto.randomUUID(),name:"learnExperimentsLoaded",rating:n,delta:0,entries:[],navigationType:"navigate"})}function rRe(){Aje(),kje(),Ije(),Pje(),Lje(),Rje(),Mje(),Dje(),Nje(),Fje(),oRe()}async function Aje(){let e=()=>Axe(v.authenticationMode,v.isAuthenticated);v.subscribe(xn,e),e(),await v.whenAuthenticated(),Ee({content:{event:"user-is-signed-in"}})}function kje(){function e(t){!t.isTrusted||!(t.target instanceof HTMLSelectElement)||!t.target.hasAttribute(Lo.name)||Ro(t.target,{actionType:Re.OTHER,behavior:Ce.OTHER,content:{event:"select-value-changed",name:Cl(t.target),value:t.target.value}})}A.addEventListener("change",e,{passive:!0})}function Ije(){let e="";function t(r){!r.isTrusted||e===r.type||(e=r.type,Ee({actionType:Re.OTHER,behavior:Ce.OTHER,content:{event:"page-focus-changed",value:r.type}}))}let n=0;function o(r){clearTimeout(n),n=setTimeout(()=>t(r),50)}se.addEventListener("focus",o,{passive:!0}),se.addEventListener("blur",o,{passive:!0})}function Pje(){function e(){Ee({actionType:Re.OTHER,behavior:Ce.OTHER,content:{event:"page-visibility-changed",value:A.hidden?"hidden":"visible"}})}function t(){A.addEventListener("visibilitychange",e,{passive:!0})}A.readyState==="interactive"||A.readyState==="complete"?t():A.addEventListener("DOMContentLoaded",t)}function Lje(){axe&&lxe.addListener(e=>{e.matches&&Ee({actionType:Re.OTHER,behavior:Ce.PRINT,content:{event:"print"}})})}function Rje(){function e(n){if(!n.isTrusted||!(n.target instanceof HTMLElement))return;let{width:o,height:r}=n.target.getBoundingClientRect(),{scrollLeft:s,scrollTop:i,scrollWidth:a,scrollHeight:l}=n.target;Ro(n.target,{actionType:Re.OTHER,behavior:Ce.OTHER,content:{event:"secondary-content-scroll",name:Cl(n.target),viewPortWidth:Math.floor(o),viewPortHeight:Math.floor(r),contentWidth:Math.floor(a),contentHeight:Math.floor(l),horizontalOffset:Math.floor(s),verticalOffset:Math.floor(i)}})}function t(n){if(n.target===A)return;let o=n.target;clearTimeout(o.reportScrollTimeout),o.reportScrollTimeout=setTimeout(()=>e(n),100)}se.addEventListener("scroll",t,{passive:!0,capture:!0})}function Mje(){let e=!1;function t(){Ee({actionType:Re.OTHER,behavior:Ce.OTHER,content:{event:"unload",anchor:e}})}function n(r){r.target instanceof HTMLAnchorElement&&(e=!0,setTimeout(()=>e=!1))}function o(r){r.target instanceof HTMLAnchorElement&&(e=!0,setTimeout(()=>e=!1))}se.addEventListener("keydown",o,{capture:!0,passive:!0}),se.addEventListener("click",n,{capture:!0,passive:!0}),se.addEventListener("beforeunload",t,{passive:!0})}function Dje(){function e(t){let n=t.target;if(n.id!=="ms--site-header-search-form"&&n.id!=="ms--site-header-search-form-mobile"&&n.id!=="welcome-page-search-form"&&n.id!=="directory-page-search-form"&&n.id!=="facet-search-form")return;$je(n.id);let r=Array.from(n.querySelectorAll('input[name="terms"], input[name="facet-search-input"]'))[0].value,s=A.activeElement&&A.activeElement instanceof HTMLButtonElement&&A.activeElement.type==="submit"&&!!n.querySelector(`#${A.activeElement.id}`);Ro(n,{actionType:Re.OTHER,behavior:Ce.SEARCH,content:{event:"uhf-search",value:r,submitButton:s}})}se.addEventListener("submit",e,{passive:!0,capture:!0})}function $je(e){let n={"ms--site-header-search-form":"nav-search-enter","ms--site-header-search-form-mobile":"nav-search-enter","welcome-page-search-form":"hero-search-enter"}[e];n&&Ee({behavior:Ce.SEARCH,actionType:Re.OTHER,content:{autoIngest:!0,type:"site-search-submit",name:n}})}function Nje(){function e(t){t.isTrusted&&t.keyCode===70&&t.ctrlKey&&!t.shiftKey&&!t.altKey&&!t.metaKey&&Ee({actionType:Re.OTHER,behavior:Ce.OTHER,content:{event:"ctrl-f"}})}se.addEventListener("keydown",e,{passive:!0})}function Fje(){function e(t){let n={referrerUri:t.referrerUrl.href,requestUri:t.url.href,title:t.title,pageName:k("document_id")||"missing document_id",pageType:k("page_type"),pageTags:{}};PP(n.pageTags),kxe(n),BB()}ct.subscribe(Cn,e)}M();var sRe="azure-auth-complete";function Uje(){let e=me(location.search);return e[sRe]==="true"?(e[sRe]=null,en(e,"replaceState"),!0):!1}Uje()&&SS.tryLoadTokens().then(e=>{e&&Gje()});var Oje=d`

    ${Mt(fge)}

    ${KSe}`;async function iRe(e){let t=d`
    ${Oje}
    `;y(t,e);let n=e.firstElementChild.firstElementChild,o=s=>new Promise(i=>{let a=l=>{e.innerHTML="",Hr.value=l,i(l)};s===null?(Hr.value=null,mD(n)):s.length===0?Hje(n):qje(n,a,s)});Wo.trackEvent({name:"oauth-login-try-load-tokens"});let r=await SS.tryLoadTokens({noInteraction:!1});return o(r)}var m9={light:"light",dark:"dark","high-contrast":"high-contrast"};function aRe(e){let t=document.getElementById("mult-account");t&&(t.src=`/en-us/media/illustrations/multiple-accounts-${m9[e]}.svg?branch=live`);let n=document.getElementById("log-in-media");n&&(n.src=`/en-us/media/illustrations/lock-and-key-${m9[e]}.svg?branch=live`);let o=document.getElementById("profile-icon"),r=v.authenticationMode==="AAD"?"org":"personal";o&&(o.src=`/en-us/media/profile/${r}-account${m9[e]==="light"?"":"-dark-highcontrast"}.svg?branch=live`)}function mD(e){zje(),ct.subscribe(Ob,i=>aRe(i.currentTheme));let n=`/en-us/media/illustrations/lock-and-key-${Td()}.svg?branch=live`,r=d` `;y(r,e);let s=document.getElementById("try-it-sign-in");s&&s.addEventListener("click",()=>{let i=me();i.tryIt="true",en(i,"replaceState"),Ts(null,!1,!0)})}function qje(e,t,n){ct.subscribe(Ob,c=>aRe(c.currentTheme));let o=Td(),r=`/en-us/media/illustrations/multiple-accounts-${o}.svg?branch=live`,i=`/en-us/media/profile/${v.authenticationMode==="AAD"?"org":"personal"}-account${o==="light"?"":"-dark-highcontrast"}.svg?branch=live`,l=d`
    ${She}

    ${whe}


    ${v.upn}

    ${gge}


    `;y(l,e)}function Hje(e){let t="/en-us/media/illustrations/azure-subscription-alert.svg?branch=live",n=k("platform_id"),o=n?`msft_learn_${encodeURIComponent(n)}`:"msft_learn",r=d`
    ${khe}

    ${Ihe.replace("{email}",v.upn)}

    `;y(r,e)}function Bje(e,t,n){if(n.length===1)t(n[0]);else{let o=()=>{},s=d`
    ${Ehe}

    ${The.replace("{email}",v.upn)}

      `;y(s,e);let i=e.firstElementChild.firstElementChild.querySelector("#token-list-container").querySelector("ul.azure-auth-tokens");for(let l of n){let c=`
      `;i.insertAdjacentHTML("beforeend",`
    • ${c}
    • `)}i.lastElementChild.querySelector("hr").hidden=!0;let a=i.querySelectorAll('input[name="tenant-name"]');a[0].checked=!0,o=()=>{e.firstElementChild.firstElementChild.querySelector(".buttons").firstElementChild.querySelector("button#continue-with-tenant").classList.add("is-loading");for(let c=0;c{!this.consoleFrame||!this.consoleFrame.contentWindow||r!==gD||t!=="portalConsole"||n!=="getToken"||(this.messageReceived||(Wo.trackEvent({name:"cloud-shell-message-received"}),this.messageReceived=!0),clearTimeout(this.messageHandlerTimeout),this.replyToken(o))};this.instrumentMessageHandler=()=>{!this.consoleFrame||!this.consoleFrame.contentWindow||(Wo.trackEvent({name:"cloud-shell-not-responsive"}),this.showTroubleshootingMessage())};this.showTroubleshootingMessage=()=>{this.element.innerHTML=`

      ${HX}

      `};se.addEventListener("message",this.messageHandler),this.element=A.createElement("div"),this.element.classList.add("cloud-shell"),this.element.setAttribute(Lo.name,"azure-cli"),this.messageHandlerTimeout=0,this.interactiveType=t?"powershell":"bash",iRe(this.element).then(()=>(this.element.classList.add(`has-text-${this.interactiveType}-invert`,`has-background-${this.interactiveType}`),Promise.resolve())).then(()=>this.whenPageVisible()).then(()=>{let n=Qje(b.data.userLocale);this.element.innerHTML=`

      Azure Cloud Shell

      `;let o=this.element.querySelector('button[data-bi-name="restart"]');o.onclick=()=>this.restart(),this.consoleFrame=this.element.querySelector("iframe"),this.messageHandlerTimeout=setTimeout(this.instrumentMessageHandler,Vje)})}setCode(){return Promise.resolve()}execute(){return Promise.resolve()}restart(){this.consoleFrame.hidden||this.consoleFrame.contentWindow.postMessage({signature:"portalConsole",type:"restart"},gD)}dispose(){se.removeEventListener("message",this.messageHandler)}replyToken(t){let n;switch(t){case"":n=Hr.value.access_token;break;case"microsoft.graph":n=Hr.value.msgraph_access_token,Ee({content:{event:"cloud-shell-audience",value:"microsoft.graph"}});break;case"keyvault":n=Hr.value.key_vault_access_token,Ee({content:{event:"cloud-shell-audience",value:"keyvault"}});break;default:throw new Error(`Unsupported token audience: "${t}".`)}this.consoleFrame.contentWindow.postMessage({signature:"portalConsole",type:"postToken",audience:t,message:`Bearer ${n}`},gD)}whenPageVisible(){return A.visibilityState==="visible"?Promise.resolve():new Promise(t=>A.addEventListener("visibilitychange",()=>{A.visibilityState==="visible"&&t()}))}},lRe={name:sue,iconClass:"docon docon-terminal",attributes:[{name:"aria-haspopup",value:"true"}]};gM({name:"bash",activateButtonConfig:lRe,create:()=>new fD(!1)});gM({name:"powershell",activateButtonConfig:lRe,create:()=>new fD(!0)});function Qje(e){switch(e){case"zh-cn":return"zh-hans";case"zh-hk":return"zh-hans";case"zh-tw":return"zh-hant"}return["en","cs","de","es","fr","hu","it","ja","ko","nl","pl","pt-br","pt-pt","ru","sv","tr","zh-hans","zh-hant"].find(o=>e.indexOf(o)===0)||"en"}async function Yje(){let e={};b.data.mathjax?.macros&&(e=b.data.mathjax.macros),se.MathJax={showMathMenu:!1,showMathMenuMSIE:!1,tex:{inlineMath:[["$","$"],["\\(","\\)"]],processEscapes:!0,macros:e}}}async function jje(){let e="/static/third-party/MathJax/3.2.2/tex-mml-chtml.js";return A.querySelector(`script[src="http://approjects.co.za/?big=${e}"]`)?.remove(),Xl(e,"sha384-Wuix6BuhrWbjDBs24bXrjf4ZQ5aFeFWBuKkFekO2t8xFU0iNaLQfp2K6/1Nxveei")}async function g9(){(k("show_latex")==="true"||b.data.pageTemplate==="ModuleUnit")&&Te.then(Yje).then(jje)}M();var Een=new Ve,cRe,uRe=!1,dRe,pRe,mRe,bD=0,hD=0,xC=0,f9=.125,h9=!1,Wje=d` 1% `;async function gRe(){if(!S.gamification||S.chromeless)return;await nD;let e=document.querySelector("#level-status-container"),t=document.querySelector("#level-status");!e||!t||(y(Wje,t),Te.then(()=>{v.whenAuthenticated().then(()=>{let n;b.data.pageTemplate==="Module"?n=new Uo("Commerce.Docs.LearnProgress_ModuleCompletion_AccessProgressModule"):b.data.pageTemplate==="LearningPath"?n=new Uo("Commerce.Docs.LearnProgress_ModuleCompletion_AccessProgressLearningPath"):b.data.pageTemplate==="ModuleUnit"&&(n=new Uo("Commerce.Docs.LearnProgress_ModuleCompletion_AccessProgressUnit")),n?.start(),dRe=document.querySelector("#level-status-text"),pRe=document.querySelector("#level-status-progress"),mRe=document.querySelector("#level-status-points");let o=t.querySelector("a");o!==null&&o.setAttribute("href",An(v.userName)),n?.updateProgress("Fetching game status"),Eu.getStatus(v.userId).then(r=>{n?.updateProgress("Fetched game status"),b9(r),uRe=!0,e.classList.remove("is-hidden"),n?.succeed()}).catch(r=>{n?.fail(r)})})}))}function Kje(e,t,n,o){e.currentLevel>cRe&&(h9=!0),cRe=e.currentLevel,Jje(t,e.currentLevel),Xje(n,e,uRe),eWe(o,e.currentLevelHigh-e.currentLevelLow,e.currentLevelPointsEarned)}function Jje(e,t){e&&(e.textContent=`${ale.replace("{number}",t.toString())}`)}function Xje(e,t,n){if(e){if(hD=tWe(t.currentLevelHigh,t.currentLevelLow,t.currentLevelPointsEarned),e.textContent=`${hD}%`,!n){se.cancelAnimationFrame(bD),e.value=xC=hD;return}Zje(e)}}function Zje(e){bD||(bD=fRe(e))}function fRe(e){return h9||e.value=100&&(h9=!1),xC=xC+f9,e.value=Math.floor(xC+f9)%100,se.requestAnimationFrame(()=>{bD=fRe(e)})):0}function eWe(e,t,n){if(!e)return;let o=d` ${n} /${zx.replace("{totalXP}",t.toString())}`;y(o,e)}function tWe(e,t,n){let o=e-t,r=n/o;return Math.floor(r*100)}function b9(e){S.chromeless||Kje(e,dRe,pRe,mRe)}ot();async function hRe(){if(!b.data.isPermissioned)return;let e=nWe();e&&Gt(e)}function nWe(){return b.data.permissionedType==="secret"||b.data.permissionedType==="private"?Yse:null}function oWe(e,t){return d` `}async function wC(e,t){let n=document.createElement("div");n.classList.add("modal-content");let o=new ge(n);return y(oWe(e,t),n),o.show()}function bRe(e,t,n){b.data.isPermissioned&&e.addEventListener("click",function(o){o.preventDefault(),wC(t,n)})}function _Re(){let e=document.querySelector("[unauthorized-private-section]");e&&(e.hidden=!1,e.parentElement?.removeChild(e),Array.from(document.querySelectorAll("h1")).pop()?.insertAdjacentElement("afterend",e))}var _D="image-browser-close-event";function yRe(e,t){let o={horizontal:0,vertical:0};t.addEventListener("keypress",r=>{r.which===et.enter&&(r.preventDefault(),e.toggleExpand())}),t.addEventListener("keydown",r=>{let s=r.which||r.keyCode;switch(s){case et.left:r.preventDefault(),o.horizontal=1;break;case et.right:r.preventDefault(),o.horizontal=-1;break;case et.up:r.preventDefault(),o.vertical=1;break;case et.down:r.preventDefault(),o.vertical=-1;break}[et.left,et.right,et.up,et.down].indexOf(s)>-1&&e.panViewport(5*o.horizontal,5*o.vertical)}),t.addEventListener("keyup",r=>{switch(r.which||r.keyCode){case et.left:r.preventDefault(),o.horizontal=0;break;case et.right:r.preventDefault(),o.horizontal=0;break;case et.up:r.preventDefault(),o.vertical=0;break;case et.down:r.preventDefault(),o.vertical=0;break}})}var za={dragging:!1,prevX:0,prevY:0},yD=null;function vRe(e,t){yD=yD||(n=>{if(e.state.expanded)if(n.buttons%2){n.preventDefault(),za.dragging=!0;let o=n.movementX||!isNaN(za.prevX)?n.screenX-za.prevX:0,r=n.movementY||!isNaN(za.prevY)?n.screenY-za.prevY:0;e.panViewport(o,r)}else za.dragging&&setTimeout(()=>{za.dragging=!1},0);else za.dragging=!1;za.prevX=n.screenX,za.prevY=n.screenY}),A.removeEventListener("mousemove",yD),A.addEventListener("mousemove",yD),t.addEventListener("dragstart",n=>{n.preventDefault()}),t.addEventListener("click",n=>{za.dragging||(n.preventDefault(),e.toggleExpand(n.offsetX,n.offsetY))})}var xRe=`
      `;function TRe(e,t){let n={touches:[]};t.addEventListener("touchstart",o=>{e.state.expanded&&(o.preventDefault(),Array.from(o.changedTouches).forEach(({identifier:r,screenX:s,screenY:i})=>{n.touches.push(Object.assign({},{identifier:r,screenX:s,screenY:i}))}))}),t.addEventListener("touchmove",o=>{if(e.state.expanded){o.preventDefault();let r=n.touches.map(l=>l.identifier),s=Array.from(o.changedTouches).filter(l=>l.identifier===n.touches[0].identifier);if(!s[0])return;let i=s[0].screenX-n.touches[0].screenX,a=s[0].screenY-n.touches[0].screenY;Array.from(o.changedTouches).forEach(l=>{let c=r.indexOf(l.identifier);c>=0&&(n.touches[c]=Object.assign({},{identifier:l.identifier,screenX:l.screenX,screenY:l.screenY}))}),e.panViewport(i,a)}}),t.addEventListener("touchend",o=>{let r=n.touches.map(s=>s.identifier);Array.from(o.changedTouches).forEach(({identifier:s})=>{n.touches.splice(r.indexOf(s),1)})})}function wRe(e,t,n){let o=Math.max(e,t);return Math.min(n,o)}var vD=class{constructor(){this.imageElement=null;this.imageContainer=null;this.state={expanded:!1}}open(t,{url:n,alt:o}){return new Promise(s=>{t.innerHTML=xRe,this.imageContainer=t.querySelector("div"),this.imageElement=t.querySelector("#image-browser-image"),!(!this.imageContainer||!this.imageElement)&&(this.imageContainer.dir="ltr",this.imageElement.style.opacity="0",this.imageElement.style.transformOrigin="0 0",this.imageElement.addEventListener("error",()=>{}),this.imageElement.addEventListener("load",()=>{!this.imageContainer||!this.imageElement||(this.imageElement.classList.add("image-browser-expandable"),this.imageElement.style.width="",this.imageElement.style.height="",this.imageContainer.classList.add("image-browser-transition"),this.imageContainer.addEventListener("transitionend",()=>{this.imageContainer?.classList.remove("image-browser-transition")}),this.imageElement.style.opacity="1",this.imageElement.parentElement&&(yRe(this,this.imageElement.parentElement),vRe(this,this.imageElement.parentElement),TRe(this,this.imageElement.parentElement)),se.addEventListener("resize",()=>{this.state.expanded&&this.panViewport(0,0)},{passive:!0}),s(null))}),this.imageElement.src=n,this.imageElement.alt=o)})}close(){se.dispatchEvent(new CustomEvent(_D,{detail:{image:this.imageElement?.src}}))}toggleExpand(t=0,n=0){if(!(!this.imageContainer||!this.imageElement))if(this.state.expanded)this.imageElement.style.transform="",this.imageElement.classList.remove("image-browser-pannable"),this.imageElement.classList.add("image-browser-expandable"),this.imageContainer.style.width="",this.imageContainer.style.height="",this.state.expanded=!1;else{this.imageContainer.style.width=`${this.imageElement.clientWidth}px`,this.imageContainer.style.height=`${this.imageElement.clientHeight}px`;let o=t/this.imageElement.clientWidth,r=n/this.imageElement.clientHeight,{naturalWidth:s,naturalHeight:i}=this.imageElement,a=Math.round(o*s),l=Math.round(r*i);this.state.expanded=!0,this.imageElement.classList.add("image-browser-pannable"),this.imageElement.classList.remove("image-browser-expandable");let c=a-this.imageContainer.clientWidth/2,u=l-this.imageContainer.clientHeight/2,p=wRe(0,c,s-this.imageContainer.clientWidth),m=wRe(0,u,i-this.imageContainer.clientHeight);this.state.translationX=-1*p,this.state.translationY=-1*m,this.imageElement.style.transform=`translate(${this.state.translationX}px, ${this.state.translationY}px)`}}panViewport(t,n){if(!(!this.imageContainer||!this.imageElement)&&this.state.expanded){let o=this.state.translationX??0,r=this.state.translationY??0;this.state.translationX=Math.min(0,Math.max(this.imageElement.naturalWidth*-1+this.imageContainer.clientWidth,o+t)),this.state.translationY=Math.min(0,Math.max(this.imageElement.naturalHeight*-1+this.imageContainer.clientHeight,r+n)),this.imageElement.style.transform=`translate(${this.state.translationX}px, ${this.state.translationY}px)`}}};function SRe(){se.addEventListener(_D,e=>{let t=e.detail;Ee({behavior:Ce.REDUCE,actionType:Re.CLICKLEFT,content:{type:"lightbox-close",image:t.image}})})}function _9(e){SRe();let t="lightbox-enabled",n=Array.from(e.querySelectorAll('a[href$="#lightbox"]')),o=new vD;n.forEach(r=>{r.classList.add(t),r.setAttribute("data-bi-name","lightbox"),r.setAttribute("aria-haspopup","dialog"),Ye(r,"click",s=>{s.preventDefault();let i=document.createElement("div");i.classList.add("modal-content"),o.open(i,{url:r.href,alt:r.querySelector("img")?.alt??""}),new ge(i).show().then(()=>o.close()),i.insertAdjacentHTML("afterend",``)})})}M();var rWe=()=>`/${b.data.userLocale}${L.reviewFeatures?"/test/challenges":"/challenges"}`;function nn(e,t,n,o){let r=new URL(location.href),s=new URLSearchParams(r.search),i=r;if(i.pathname=`${rWe()}/${e}${t?`/${t}`:""}`,n){let a=new URLSearchParams(n);for(let[l,c]of a)i.searchParams.set(l,c)}return o&&(i.hash=o),s.has("preview")&&i.searchParams.set("preview",s.get("preview")??""),i.href}function ARe(e){switch(e){case"active":return xK;case"upcoming":return QJ;case"past":return OJ;default:return""}}function sWe(e,t){return t.replace("{count}",e.toString())}function y9(e,t,n,o){let r={active:{id:`${e}-active`,title:pJ,itemCount:t},upcoming:{id:`${e}-upcoming`,title:gJ,itemCount:n},past:{id:`${e}-past`,title:mJ,itemCount:o}};return Object.values(r).map(s=>[s.id,sWe(s.itemCount,s.title)])}function kRe(e,t){return t===0?0:e>t?1:e/t}var xD={start:{label:bn,dataBiName:"start-challenge"},resume:{label:ju,dataBiName:"resume-challenge"},view:{label:$k,dataBiName:"view-challenge"}};function IRe(e,t){let n=t==="past",o=e.completedOn!==void 0,r=e.startedOn!==void 0&&e.itemsCompleted!==0;return n||o?xD.view:r?o?xD.view:xD.resume:xD.start}function CRe(e){return e<10?"0"+e.toString():e}function ov(e){let t=new Date(e),n=CRe(t.getHours()),o=CRe(t.getMinutes());return`${n}:${o}`}function TD(e){return new Date(e).toLocaleDateString()}function PRe(){document.querySelector("tab-container")?.shadowRoot?.querySelector('slot[part="tablist-wrapper"]')?.removeAttribute("style")}function ERe(e,t){let n=e.querySelector(".required-indicator");n||(n=document.createElement("span"),n.classList.add("required-indicator")),t?e.appendChild(n):n.remove()}function SC(e,t){e&&(t?(e.setAttribute("required",`${t}`),e.setAttribute("minlength","1"),e.setAttribute("maxlength","100"),e.classList.remove("display-none")):(e.removeAttribute("required"),e.removeAttribute("minlength"),e.removeAttribute("maxlength"),e.classList.add("display-none")),e.setAttribute("aria-required",`${t}`),e.setAttribute("data-skip-validation",`${!t}`))}function LRe(){let e=document.getElementById("challenge-end-date"),t=document.getElementById("challenge-start-date"),n=document.getElementById("challenge-end-time"),o=document.getElementById("challenge-start-time"),r=document.getElementById("copy-challenge-form");return r&&(e=r.querySelector("#challenge-end-date"),t=r.querySelector("#challenge-start-date"),n=r.querySelector("#challenge-end-time"),o=r.querySelector("#challenge-start-time")),t&&e&&o&&n?{startDate:t,startTime:o,endDate:e,endTime:n}:null}function wD(e=!0){let{startDate:t,endDate:n}=LRe()||{};if(!(t&&n))return;let o=new Date(t.value);n.min=o.toISOString().split("T")[0],t.value&&n.value&&n.valued` `)}var RRe=b.data.userLocale,aWe=St(),Hn={async getChallenges(e,t,n=0,o=6){let r=`${D.lists}/challenge/${e}/${t}?${V({page:n+1,pageSize:o,locale:RRe})}`,i=N(r,{method:"GET"}),a=await R(i);return ee(a),a.ok?await a.json():null},async getChallenge(e){let t=`${D.lists}/challenge/${e}`,o=N(t,{method:"GET"}),r=await R(o);return ee(r),r.ok?await r.json():null},async getChallengeStatistics(e){let t=`${D.lists}/challenge/${e}/statistics`,o=N(t,{method:"GET"}),r=await R(o);return ee(r),r.ok?await r.json():null},async getChallengeLeaderboard(e,t=0,n=5){let o=`${D.lists}/challenge/${e}/leaderboard?${V({page:t+1,pageSize:n})}`,s=N(o,{method:"GET"}),i=await R(s);return ee(i),i.ok?await i.json():null},getChallengeCsv(e){return`${D.lists}/challenge/${e}/csv`},async createNewChallenge(e){let t=`${D.lists}/challenge`,o={method:"POST",body:JSON.stringify(e)},r=await R(N(t,o));if(ee(r),r.ok){let s=await r.json();return Lr(s.contentList),{hasError:!1,data:s}}return r.status===400?{hasError:!0,error:await r.json()}:null},async updateChallenge(e,t){let n=`${D.lists}/challenge/${e}`,r={method:"PATCH",body:JSON.stringify(t)},s=await R(N(n,r));if(ee(s),s.ok){let i=await s.json();return Lr(i.contentList),{hasError:!1,data:i}}return s.status===400?{hasError:!0,error:await s.json()}:null},async updateChallengeList(e,t){let n=`${D.lists}/challenge/${e}/list`,r={method:"PATCH",body:JSON.stringify(t)},s=await R(N(n,r));if(ee(s),s.ok){let i=await s.json();return Lr(i.contentList),{hasError:!1,data:i}}return s.status===400?{hasError:!0,error:await s.json()}:null},async deleteChallenge(e){let t=`${D.lists}/challenge/${e}`,n=await R(N(t,{method:"DELETE"}));if(ee(n),!n.ok)throw new Error(`${n.status}: ${n.statusText}`)},async joinOrLeaveChallenge(e,t){let n=`${D.lists}/challenge/${e}/${t}`,o=N(n,{method:"POST"},!0,!1),r=await R(o);return ee(r),r.ok?{}:null},async getFacetProducts(){let e={branch:aWe,locale:RRe,facet:"products"},t=`${D.browse.learn}?${V(e,!0)}`,o=await R(N(t,{method:"GET"}));if(o.ok){let r=await o.json();return!r||!r.facets||!r.facets.products?[]:r.facets.products}if(o.status===400){let r=await o.json();throw new Error(`${r.errorCode}: ${r.message}`)}return null}};M();M();function iv(e,t,n){let o=a=>e?.hasWrapper?d`
      ${a}
      `:a,r=o(d`
      ${Xt}
      `),s=a=>a?o(MRe(n,t)):"",i=()=>"";return zn((e?.checkIsPassed??(async()=>!0))().then(s).catch(i),r)}function MRe(e,t){let n="badge badge-sm badge-success",o=e==="learningpaths"?"badge-filled":"",r=e==="learningpaths"?d`${Xle}`:rk,s=d`
      ${r}
      `,i=d``;return t?d`${s}${i}`:s}function DRe(){let e=MRe("learningpaths",!1),t=document.getElementById("module-list-heading");if(!t){let o=document.querySelector(".modular-content-container:not(.has-body-background .modular-content-container) .section");if(!o)return;let r=o.querySelector(".title");r?.classList.add("margin-bottom-xxs");let s=document.createElement("div");s.innerHTML=r?.outerHTML||"",r?.remove(),o.prepend(s),s.id="module-list-heading",s.classList.add("justify-content-space-between","display-flex","flex-wrap-wrap","margin-right-sm","margin-bottom-xs"),t=o.querySelector("#module-list-heading")}let n=document.createElement("div");return n.id="pass-tag-container",n.classList.add("display-flex","padding-left-sm"),t?.appendChild(n),y(e,n)}M();M();var Vr=_r(e=>t=>{t.setValue(e)});function v9({origin:e,protocol:t,hostname:n,port:o}){return e||(t&&n?`${t}//${n}${o&&o!=="443"&&o!=="80"?":"+o:""}`:location.origin)}M();var enn=6*60*60*1e3,lWe,tnn=new Promise(e=>lWe=e);function $Re(e,t=b.data.pageTemplate){(t==="Module"||t==="ModuleUnit")&&Array.from(e.querySelectorAll('a[href*="azure-portal=true"]')).forEach(n=>{let o=me(n.search);delete o["azure-portal"],n.search=V(o),n.target="az-portal",n.classList.add("has-external-link-indicator")})}function NRe(e,{compareOrigin:t}={compareOrigin:!0}){let n=e.target instanceof HTMLElement&&e.target.closest("a"),o=!!n&&v9(n)===oe.origin;return!n||e.altKey||e.ctrlKey||e.metaKey||e.shiftKey||n.target&&n.target!==window.name&&n.target!=="_self"||n.href.lastIndexOf("javascript:")===0||n.hasAttribute("download")?{anchor:n,shouldHandle:!1,differentOrigin:!o}:t&&!o||o&&n.classList.contains(qa)||o&&/^#lightbox/.test(n.hash)||o&&n.closest("#docs-admin-editor .ProseMirror")||n.classList.contains("following-user-profile")?{anchor:n,shouldHandle:!1,differentOrigin:!o}:{anchor:n,shouldHandle:!0,differentOrigin:!o}}function FRe(){let e=document.createElement("progress");return e.classList.add("position-fixed","top-0","left-0","right-0","margin-bottom-none","progress-bar"),e.setAttribute("max","100"),e.style.zIndex="10",document.body.insertAdjacentElement("afterbegin",e),e}var T9=class{constructor(){this.referrerStack=[];this.finished=Promise.resolve();this.handleClick=t=>{let{shouldHandle:n,anchor:o}=NRe(t);if(!n||!o.href)return;let r=new URL(o.href);this.delegate.canHandle(r)&&(t.preventDefault(),this.preserveBranch(this.currentUrl,r),this.navigateInternal(r,!0))};this.handlePopstate=()=>{let t=new URL(oe.href);this.routeChanged(t,this.currentUrl)?(this.referrerStack.pop(),this.navigateInternal(t,!1)):this.currentUrl=t};this.routeChanged=(t,n)=>{let o=t.pathname===n.pathname;for(let r of this.delegate.params)o=o&&t.searchParams.get(r)===n.searchParams.get(r);return!o}}enable(t,n=new URL(oe.href)){this.delegate=t,this.currentUrl=n,se.addEventListener("click",this.handleClick,!0),se.addEventListener("popstate",this.handlePopstate)}disable(){this.delegate=null,se.removeEventListener("click",this.handleClick,!0),se.removeEventListener("popstate",this.handlePopstate)}get enabled(){return!!this.delegate}async finishNavigating(){await this.finished}goto(t,n){if(!this.delegate)throw new Error("Router is not enabled.");if(t.origin!==oe.origin)throw new Error("Cross-origin navigation is not permitted");if(!this.delegate.canHandle(t))throw new Error(`Router delegate cannot handle "${t.href}".`);return this.preserveBranch(this.currentUrl,t),this.navigateInternal(t,n==="pushState")}preserveBranch(t,n){(L.supportLevel==="production"&&L.reviewFeatures||L.supportLevel==="development"&&L.accessLevel==="online")&&x9(["branch","themebranch","api-branch"],t,n),x9(["preview"],t,n),x9(["variant"],t,n)}navigateInternal(t,n){let o=async()=>{VR.splice(0,VR.length).forEach(a=>a()),ct.publish(new zh(t));let s=FRe(),i=await this.delegate.handle(t);A.title=i.title,n?(Bn.pushState(void 0,i.title,i.url.href),this.referrerStack.push(i.url)):Bn.replaceState(void 0,i.title,i.url.href),se.scrollTo(0,0),Af(t.hash),ct.publish(new Cn(i.title,i.url,this.currentUrl)),s.remove(),this.currentUrl=t},r=this.finished.then(o);return this.finished=r.catch(()=>{}),r}},Qr=new T9;function x9(e,t,n){for(let o of e){let r=t.searchParams.get(o);r&&n.searchParams.set(o,r)}}function Af(e){if(e.length<2)return;let t=A.body.querySelector(e);t&&t.scrollIntoView({block:"start",inline:"nearest",behavior:"smooth"})}function EC(e,t){let n=e.querySelector(`[data-label="${t}"]`);n!==null&&(n.hidden=!0)}function so(e){Array.from(e.querySelectorAll("[data-label]")).forEach(t=>{t.hidden=!0})}function ft(e,t){let n=e.querySelector(`[data-label="${t}"]`);n!==null&&(n.hidden=!1)}var uWe=["activity","training","plans","challenges","credentials","qna","achievements","collections","transcript"];function URe(){return uWe.slice()}function w9(e){let n=sr(e).redeem,o=URe(),[,,r="",s="",i,a="",l="",c=e.hash]=decodeURIComponent(e.pathname).toLowerCase().split("/"),u;if(r!=="users")return{username:"",section:"activity",detail:"",id:"",hash:""};if(i==="bookmarks")u="collections",a="favorites";else{let p=["settings","analytics"];u=[...o,...p].find(g=>g===i)||"activity",a&&!(u==="collections"||u==="training"||u==="plans"||u==="achievements"||u==="transcript"||u==="certifications"||u==="credentials"||u==="challenges"||u==="settings"&&a==="interests")&&(a="")}return n?{username:s,section:u,detail:a,id:l,hash:c,code:n}:{username:s,section:u,detail:a,id:l,hash:c}}function fn(e,t,n,o=se.location,r=b.data.userLocale,s){if(e=e.toLowerCase(),n&&!(t==="collections"||t==="training"||t==="achievements"||t==="transcript"||t==="certifications"||t==="credentials"||t==="challenges"||t==="settings"&&n==="interests"))throw new Error(`Detail url component is not supported in ${t} section.`);let i=new URL(o.origin+o.pathname+o.search).searchParams;i.delete("id");let a=i.toString();a=a.length?"?"+a:"";let l;return t&&t!=="activity"?l=new URL(`/${r}/users/${e}/${t}${n?`/${n}`:""}${s?`/${s}`:""}${a}`,o.origin):l=new URL(`/${r}/users/${e}/${a}`,o.origin),l}function Wi(e){if(!e)throw new Error("The Collection ID does not exist and no linking URL will be created.");let t=new URL(oe.origin+oe.pathname+oe.search).searchParams,n=`/${b.data.userLocale}/${L.reviewFeatures?"test/":""}collections/${e}`;return new URL(n+"?"+t.toString(),oe.origin)}function S9(e){if(!e)throw new Error("The Plan ID does not exist and no linking URL will be created.");let t=new URL(oe.origin+oe.pathname+oe.search).searchParams,n=`/${b.data.userLocale}/${L.reviewFeatures?"test/":""}plans/${e}`;return new URL(n+"?"+t.toString(),oe.origin)}function SD(){return d`

      ${Wu}

      `}function mt(e){return e==null||e instanceof Array&&e.length===0||e===""||typeof e=="number"&&isNaN(e)}function AC(e,t){return d`

      ${t?.htmlMessage?q(e.replace(t.htmlMessage.replaceTarget,t.htmlMessage.replaceWith)):e}

      `}function qRe(e){return AC(e?mx:Mce,e?void 0:{htmlMessage:{replaceTarget:"{link}",replaceWith:`${Gl?"/test":""}/training/browse/`}})}M();async function CD(e,t){let n=e.elements.namedItem("collection-title").value,o=e.elements.namedItem("collection-description").value,r=e.elements.namedItem("collection-privacy-checkbox").checked;e.querySelector("button[type=submit]").classList.add("is-loading"),so(e);try{let s=await BIe({type:"collection",name:n,description:o,items:t,isPrivate:r});return HRe(s,e)}catch(s){let i=s;return HRe({hasError:!0,error:{errorCode:await Dm(i)||"UnexpectedError",message:i.message||""}},e)}}function HRe(e,t){if(e.hasError===!0){let n=t.querySelector("button[type=submit]");n&&n.classList.remove("is-loading");let{errorCode:o}=e.error;return o==="UnexpectedError"?ft(t,"somethingWentWrong"):dWe(o,t),{hasError:!0}}return{hasError:!1,data:e.data}}function dWe(e,t){let n=t.elements.namedItem("collection-title"),o=t.elements.namedItem("collection-description");switch(e){case"InvalidBody":case"MissingType":return;case"InvalidTitle":n.setCustomValidity(zu),n.reportValidity();return;case"InvalidDescription":o.setCustomValidity(yx),o.reportValidity();return;case"DuplicateTitle":let r=IA.replace("{title}",n.value);n.setCustomValidity(r),n.reportValidity();return;default:return}}function kC(e,t,n,o,r,s=ll,i=!0,a=!1,l="",c=""){return d`

      ${e}

      ${mee}

      ${Kr}
      `}var ED=[],kf={};function BRe(e,t,n,o="collection",r=()=>{}){return kf={},d` `}async function pWe(e,t,n){let o=document.createElement("div");o.classList.add("modal-content");let r=EZ.replace("{userDisplayName}",v.displayName).replace("{index}",(n+1).toString()),i=d` `;return y(i,o),o.querySelector("button[type=submit]").onclick=async()=>{await mWe(e,t)},o}async function C9(e,t,n){let o=[],r="",s=[];if(n==="plan"){try{s=await qIe()}catch{s=[]}o=s?.map(m=>m.contentList)??[],r=_me}else if(n==="challenge")o=(await Hn.getChallenges("created","all",0,100))?.challenges.filter(f=>!f.earlyRegistrationEnabled&&new Date(f.starts)>new Date)?.map(f=>f.contentList)||[],r=wW;else{let m=await $8(g=>g.type==="collection"||g.type==="bookmarks");m===null?r=Wu:(o=m??[],r=_be)}let i=o.length===0,a=e.querySelector("#collections"),l=e.querySelector("#save-collection");if(l&&l.hasAttribute("data-autofocus")&&l.removeAttribute("data-autofocus"),i){let m=d`

      ${r}

      `;return l&&(l.setAttribute("data-autofocus","data-autofocus"),(n==="plan"||n==="challenge")&&l.setAttribute("disabled","disabled")),y(m,a),[]}let c;try{let m=await Qe.getAllListsByUrl([t]);m.hasError===!1&&(c=m.data)}catch{c=void 0}let u=c&&c.length>0?c[0]?.lists.filter(m=>n==="plan"?!mt(m.skillingPlanId)&&o.find(g=>g.skillingPlanId===m.skillingPlanId):n==="challenge"?!mt(m.learnChallengeId)&&o.find(g=>g.learnChallengeId===m.learnChallengeId):mt(m.skillingPlanId)&&mt(m.learnChallengeId)):[];ED=u;let p=d` ${o.map(m=>{let g=m.skillingPlanId??"";return d`
      `})}`;if(y(p,a),o.length===1&&o[0].id==="bookmarks"&&ED.length===0){let m=await Q1(t);await Qe.addItem("bookmarks",m)}return ED}async function mWe(e,t,n="collection"){event.preventDefault();let o=event.target;o.classList.add("is-loading");let r=Q1(t),s=document.getElementById("save-to-collection");await CD(s).then(async i=>{i.hasError?o.classList.remove("is-loading"):(i=i,kf[i.data.id]=r,zRe(e),ED=await C9(document.querySelector(".modal-card"),t,n))})}async function gWe(e,t,n){let o=event.target;if(o.checked){let r=Q1(e);n[o.id]=r}else{let r=t.find(s=>s.listId===o.id);r?n[o.id]=r.id:n[o.id]&&delete n[o.id]}}function fWe(e){let t=Object.keys(e);return Promise.all(t.map(async n=>typeof e[n]!="string"?Qe.addItem(n,await e[n]):Qe.deleteItem(n,e[n])))}async function hWe(e,t,n){e.pushContent(await pWe(e,t,n))}function zRe(e){e.popContent()}M();M();var bWe=new Intl.NumberFormat(b.data.userLocale);function Zo(e){return bWe.format(e)}var GRe=new Intl.NumberFormat(b.data.userLocale,{notation:"compact",compactDisplay:"short"}),_o=new Intl.NumberFormat(b.data.userLocale,{maximumFractionDigits:0}),E9=new Intl.NumberFormat(b.data.userLocale,{style:"percent",maximumFractionDigits:0});var av="Applied Skills";function yo(e){return e.replace("{AppliedSkills}",av)}function A9(e){let t=document.createElement("div");return y(e,t),t.firstElementChild}function AD(){let e=document.getElementById("module-assessment-result-container"),t=document.getElementById("module-assessment-result-retake-container"),n=document.getElementById("module-assessment-result-img-container");return!e||!t||!n?{resultContainer:null,resultRetakeContainer:null,resultImgContainer:null,allContainersExists:!1}:{resultContainer:e,resultRetakeContainer:t,resultImgContainer:n,allContainersExists:!0}}function kD(e,t){let n=_We(e);y(n,t)}function ID(e){let{isUserAuthenticated:t,score:n,passCriteria:o,passed:r}=e,s=r?rk:jle,i=r?FF:(o===100?Jle:UF).replace("{passingCriteria}",E9.format(o/100));return d`

      ${s}

      ${i} ${t?"":d` ${oce}`}
      ${rce}: ${E9.format(n/100)}
      `}function _We(e){return d`
      ${e?FF:UF}
      `}var VRe={module:wo,"learning path":r0,certification:Sc,examination:Oie},PD={"applied skills":av,certification:Sc,examination:hr,course:ra};var k9=!1,QRe={bookmarks:{pressed:"single-bookmark-solid",unpressed:"single-bookmark"},collection:{pressed:"circle-addition-solid",unpressed:"circle-addition"},challenge:{pressed:"circle-addition-solid",unpressed:"circle-addition"},plan:{pressed:"circle-addition-solid",unpressed:"circle-addition"},studyguide:{pressed:"book-open",unpressed:"book-solid"}},yWe={bookmarks:{pressed:_Y,unpressed:yY},collection:{pressed:dee,unpressed:pee},challenge:{pressed:wK,unpressed:SK},plan:{pressed:_de,unpressed:yde},studyguide:{pressed:kge,unpressed:Ige}};function LD(e,t){return`docon-${t?QRe[e].pressed:QRe[e].unpressed}`}function vWe(e,t,n){return yWe[e][t?"pressed":"unpressed"].replace(/\{title\}/g,n)}function xWe(e,t,n){let o=e?.querySelector("summary"),r=o?.querySelector(".add-to-collection-status");o?.querySelector(".docon")?.classList.remove(LD(n,!t)),o?.querySelector(".docon")?.classList.add(LD(n,t)),r&&(r.textContent=t?$E:Yr)}function TWe(e,t,n,o){e.setAttribute("data-pressed",o.toString()),e.setAttribute("title",vWe(t,o,n));let r=e.querySelector(".docon");if(!r)throw new Error("Expected list button to contain a docon");if(r.classList.remove(LD(t,!o)),r.classList.add(LD(t,o)),e.closest(".popover")!==null){if(t==="collection"){let s=e.querySelector(".popover .collection-status");s&&(s.textContent=o?fF:hF)}else if(t==="plan"){let s=e.querySelector(".plan-status");s&&(s.textContent=o?oU:nU)}else if(t==="challenge"){let s=e.querySelector(".challenge-status");s&&(s.textContent=o?cA:J2)}}else{let s=e.querySelector(".collection-status:not(.popover *)");if(s){s.textContent=o?$E:Yr;return}let i=e.querySelector(".popover .add-to-collection-status");i&&(i.textContent=o?$E:Yr)}}async function jn(e){if(!e)return;if(!S.userServices){Array.from(e.querySelectorAll("button[data-list-type]")).forEach(s=>s.hidden=!0);return}let n=mr(oe.pathname).indexOf("/training")!==-1||oe.href.indexOf("interests")!==-1;Array.from(e.querySelectorAll("button[data-list-type]:not(.popover *)")).forEach(r=>{wWe(r,n)}),PC(e),e.querySelectorAll("button[data-list-type]").forEach(r=>{r.addEventListener("click",EWe)})}function wWe(e,t){let n=I9(e);if(n===null)return;let o=e.closest("#article-header"),r=t&&(n.resourceType==="learning path"||n.resourceType==="module"),s=A.createElement("details");s.classList.add("popover","popover-right","add-item-popover"),t&&e.parentElement&&e.parentElement.id==="module-actions"&&s.classList.remove("popover-right");let i=r?d` `:"",a=d`
      ${i}
      `;y(a,s),e.replaceWith(s)}var Rp=[];async function PC(e,t=v.isAuthenticated){let n=Array.from(e.querySelectorAll("button[data-list-type]")).map(a=>I9(a)).filter(a=>a!==null);if(n.length===0)return;let o=n.map(a=>a.url).filter((a,l,c)=>a&&c.indexOf(a)===l);if(t&&!Rp?.length)try{let a=await Qe.getAllListsByUrl(o);a.hasError===!1&&(Rp=a.data)}catch{Rp=void 0}let r=SWe(Rp),s=a=>{a==="collection"?Rp=Array.from(r.collectionAssociations):a==="plan"?Rp=Array.from(r.planAssociations):a==="challenge"&&(Rp=Array.from(r.challengeAssociations))};for(let{button:a,type:l,url:c,title:u}of n){s(l);let p=CWe(c,Rp);TWe(a,l,u,p)}Array.from(e.querySelectorAll(".add-item-popover")).forEach(a=>{let l=a.querySelector(".popover-content .collection-status"),c=a.querySelector(".popover-content .plan-status"),u=a.querySelector(".popover-content .challenge-status"),p=l?.textContent===fF||c?.textContent===oU||u?.textContent===cA;xWe(a,p,"collection")})}function SWe(e){return(e??[]).reduce((t,n)=>(n.lists.forEach(o=>{!mt(o.skillingPlanId)&&mt(o.learnChallengeId)?t.planAssociations.add(n):!mt(o.learnChallengeId)&&mt(o.skillingPlanId)?t.challengeAssociations.add(n):mt(o.skillingPlanId)&&mt(o.learnChallengeId)&&t.collectionAssociations.add(n)}),t),{planAssociations:new Set,collectionAssociations:new Set,challengeAssociations:new Set})}function CWe(e,t){return t.findIndex(n=>n.url===e&&n.lists.length>0)!==-1}async function EWe(e,t=v.isAuthenticated){let n=I9(e.target);if(n!==null){if(e.preventDefault(),b.data.isPermissioned){wC(CA,nee);return}if(!t){let o=n.type==="plan"?bme:n.type==="challenge"?BJ:vF;AWe(o);return}kWe(n)}}function I9(e){let t=e instanceof Element&&e.closest("button");if(!t)return null;let n=t.getAttribute("data-list-type");if(n!=="collection"&&n!=="challenge"&&n!=="plan")return null;let o=t.getAttribute("data-list-item-url")||oe.href,r=t.getAttribute("data-list-item-title")||A.title,s=cC(o),i=t.getAttribute("data-pressed")==="true",a=t.getAttribute("data-list-source")||"module",l=t.getAttribute("data-resource-type")||"";return{button:t,type:n,url:s,title:r,pressed:i,source:a,resourceType:l}}async function AWe(e=vF){let n=kp(e,null,Fs);(await Yn(n)).submitted&&wn()}async function kWe({button:e,url:t,title:n,type:o}){e.classList.contains("is-loading")||(e.classList.add("is-loading"),IWe(t,n,o).catch().finally(()=>{e.classList.remove("is-loading")}))}function IC(e="added",t=[],n="collection"){let o=A.querySelectorAll("#collections input:checked"),r=f=>e==="removed"&&t.length===1?t[0]:Mt(o.item(0).getAttribute(f)),s;n==="plan"?o.length===1&&e==="added"?s=S9(r("data-plan-id")).href:e==="removed"&&t.length!==0?s=S9(t[0]).href:s=fn(v.userName,"plans").href:n==="challenge"?o.length===1?s=nn(r("data-challenge-id"),"details"):e==="removed"&&t.length!==0?s=nn(t[0],"details"):s=nn("home"):o.length===1?s=Wi(r("id")).href:s=fn(v.userName,"collections",e==="removed"&&t.length!==0?t.length===1?t[0]:"":o.length===1?Mt(o.item(0).getAttribute("id")??""):"").href;let i=oee,a=ree,l=eee,c=tee;n==="plan"?(i=xde,a=Tde,l=wde,c=Sde):n==="challenge"&&(i=qJ,a=HJ,l=zJ,c=GJ);let u={"is-hidden":!1},p;if(e==="added")p=(o.length!==1?a:i.replace("{collectionName}",Mt(o.item(0).getAttribute("name")))).replace("{url}",s);else if(e==="removed"){let f=(A?.querySelector(`#collections input[${n==="plan"?"data-plan-":n==="challenge"?"data-challenge-":""}id="${t[0]}"]`)).getAttribute("name");p=(t.length>1?c:l.replace("{collectionName}",Mt(f))).replace("{url}",s)}else p=n==="plan"?Cde.replace("{url}",s):n==="challenge"?cA.replace("{url}",s):TZ.replace("{url}",s);let m=d`
      ${q(p)}
      `,g=A.createElement("div");y(m,g),new Sf(g).show(),PC(A.body)}async function IWe(e,t,n){let o=A.querySelector(".modal");if(k9||o&&!o.querySelector(".page-actions-menu"))return!1;k9=!0;let r=A.createElement("div");r.classList.add("modal-content");let s=new ge(r),i=[];return y(BRe(s,t,e,n,()=>{PWe(i.map(a=>n==="plan"?a.skillingPlanId:n==="challenge"?a.learnChallengeId:a.listId),n)}),r),i=await C9(r,e,n),k9=!1,s.show()}function PWe(e,t){PC(A.body);let n=Array.from(A.querySelectorAll("#collections input:checked")).map(s=>t==="plan"?s.attributes.getNamedItem("data-plan-id")?.value:t==="challenge"?s.attributes.getNamedItem("data-challenge-id")?.value:s.id),o=n.filter(s=>!e.includes(s)),r=e.filter(s=>!n.includes(s));o.length>0&&r.length===0?IC("added",void 0,t):o.length===0&&r.length>0?IC("removed",r,t):o.length>0&&r.length>0&&IC("updated",void 0,t),jn(A.body)}var LWe=A.createElement("style");A.head.appendChild(LWe);var If={dotnet:{displayName:".NET",validSearchTerm:/^[A-Za-z_][A-Za-z0-9.<>,_]{2,255}$/,namespaceItemType:"Namespace",namespacesPath:"namespaces",monikerPickerLabel:HE,allApisLabel:OE,resultsHeadingTemplate:BE,selectLabel:Pk},java:{displayName:"Java",validSearchTerm:/^[A-Za-z][A-Za-z0-9.<>,]{2,255}$/,namespaceItemType:"Package",namespacesPath:"namespaces",monikerPickerLabel:HE,allApisLabel:OE,resultsHeadingTemplate:BE,selectLabel:Pk},javascript:{displayName:"JavaScript",validSearchTerm:/^[A-Za-z@][A-Za-z0-9.<>,!\/\-]{2,255}$/,namespaceItemType:"Package",namespacesPath:"packages",monikerPickerLabel:ck,allApisLabel:qE,resultsHeadingTemplate:QF,selectLabel:Ik},powershell:{displayName:"PowerShell",validSearchTerm:/^[A-Za-z][A-Za-z0-9.-]{2,255}$/,namespaceItemType:"Module",namespacesPath:"modules",monikerPickerLabel:ck,allApisLabel:qE,resultsHeadingTemplate:Sce,selectLabel:Ik},python:{displayName:"Python",validSearchTerm:/^[A-Za-z][A-Za-z0-9.<>,_-]{2,255}$/,namespaceItemType:"Package",namespacesPath:"packages",monikerPickerLabel:ck,allApisLabel:qE,resultsHeadingTemplate:QF,selectLabel:Ik},rest:{displayName:"REST",validSearchTerm:/^[A-Za-z ]{3,255}$/,namespaceItemType:"",namespacesPath:"services",monikerPickerLabel:HE,allApisLabel:OE,resultsHeadingTemplate:BE,selectLabel:Pk}};var Is=k("platform")||k("apiPlatform")||null;var Yrn=If[Is];M();M();var tc=b.data.pageTemplate,Mp=k("page_type"),$We=k("page_kind"),jRe=k("pagetype"),NWe=k("interactive_type"),FWe=dy.any||tc==="Conceptual"&&jRe==="Reference"&&Is!==null||tc==="Conceptual"&&Mp==="powershell"&&Is!==null||tc==="Conceptual"&&jRe==="Conceptual"&&Is==="powershell"||tc==="Conceptual"&&Mp==="conceptual"&&Is==="powershell"||(tc==="Conceptual"&&Mp==="conceptual"||tc==="Reference"&&Mp==="python")&&Is==="python"||(tc==="Conceptual"&&Mp==="conceptual"||tc==="Reference"&&Mp==="cli")&&NWe==="azurecli"||tc==="Reference"&&Mp==="powershell"&&Is!==null||tc==="Reference"&&Mp==="azure-cli"&&$We==="group";M();var tin=If[Is];var RD="api-search-term-changed",LC="";function KRe(e){e=e.trim(),e!==LC&&(LC=e,(b.data.pageTemplate==="ApiBrowserPage"||b.data.pageTemplate==="AdminModeration")&&en({term:LC},"pushState"),window.dispatchEvent(new CustomEvent(RD,{detail:{term:LC}})))}function WRe(){let e=me().term;return e===void 0?"":e.trim()}(b.data.pageTemplate==="ApiBrowserPage"||b.data.pageTemplate==="AdminModeration")&&(LC=WRe(),window.addEventListener("popstate",()=>KRe(WRe())));var XRe="renewalassessment-session-disclaimer",ZRe="https://review.learn.microsoft.com/en-us/rest/api/learn/?view=rest-learn-2023-11-01-preview&branch=main";var BWe=D.assessments,fan=`${BWe}/sessions`;M();var nc=class extends Ve{constructor(n){super();this.args=n;this._unexpectedError=0;this._items=[];this._pageIndex=0;this._pageCount=1;this._busy=!1}get pageSize(){return this.args.pageSize??10}get supportsRemove(){return!!this.args.remove}get supportsSharing(){return!!this.args.shareTemplate}get supportsPaging(){return!!this.args.paging}get title(){return this.args.title}get items(){return this._items}get pageIndex(){return this._pageIndex}get pageCount(){return this._pageCount}get busy(){return this._busy}get unexpectedError(){return this._unexpectedError}get shareTemplate(){return this.args.shareTemplate}beforeActivate(){return this.setPage(0)}async remove(n){if(!this.supportsRemove)throw new Error("Remove is not supported.");if(!this.busy){this.setBusy();try{let o=this.args.itemTitle?this.args.itemTitle(n):n.toString(),{submitted:r}=await Yn(lv(o));r&&(await this.args.remove(n),this._items=this._items.filter(s=>s!==n))}finally{this.setReady()}}}async setPage(n){if(n>0&&!this.supportsPaging)throw new Error("Paging is not supported.");if(this.busy)throw new Error("Busy");this.setBusy();try{let o=await this.args.load(n,this.pageSize),r=this.getPageCount(o.totalCount);n>=r&&(n=0,o=await this.args.load(n,this.pageSize),r=this.getPageCount(o.totalCount)),this._items=o.items,this._pageIndex=n,this._pageCount=r}finally{window.scrollTo(0,0),Af(window.location.hash),this.setReady()}}setBusy(){this._busy=!0,this.notifyPropertyChanged()}setReady(){this._busy=!1,this.notifyPropertyChanged()}notifyPropertyChanged(){this.publish(new He)}setItems(n){this._items=n,this.notifyPropertyChanged()}getPageCount(n){return Math.max(Math.ceil(n/this.pageSize),1)}};function lv(e,t=hm,n=cl,o=phe){return kp(na,e?t.replace("{itemTitle}",e):o,n)}function MD(e=co,t){return kp(GZ,"",e,!0,t)}function DD(e=YZ){return d` `}function nMe(e=kA,t=sm){return kp(SZ,e,t)}function oMe(e=DA,t=RA){return kp(jX,e,t)}var ND=(s=>(s.facebook="facebook",s.twitter="twitter",s.linkedin="linkedin",s.email="email",s.weibo="weibo",s))(ND||{}),KWe={facebook:"https://www.facebook.com/sharer/sharer.php?u={url}",twitter:"https://twitter.com/intent/tweet?original_referer={url}&tw_p=tweetbutton&url={url}",linkedin:"https://www.linkedin.com/feed/?shareActive=true&text={body}",email:"mailto:?subject={subject}&body={body}",weibo:"http://service.weibo.com/share/share.php?title={title}&url={url}"};function Pf(e,t,n){let o=encodeURIComponent(t),r=new URL(e);r.hostname="learn.microsoft.com";let s=r.href+=(e.indexOf("?")!==-1?"&":"?")+"WT.mc_id=",i=v.sharingId?`&sharingId=${v.sharingId}`:"",a=!!n?.achievementCopyTitle?.overrideTitle;return Object.values(ND).reduce((c,u)=>{if(b.data.isPermissioned)return c[u]="#",c;let p=encodeURIComponent(s+u+i),m=n?.achievementCopyTitle?.overrideTitle??t,g=encodeURIComponent(cge.replace("{achievementTitle}",n?.achievementCopyTitle?.isUnquoted?`${m}`:`"${m}"`)),f={achievementCopy:g,url:p,title:o,body:a?`${encodeURIComponent(` \r `)}${g}${encodeURIComponent(` \r `)}${p}`:`${encodeURIComponent(` \r `)}${p}`,subject:encodeURIComponent(Hx).replace(encodeURIComponent("{articleTitle}"),o)},_=Object.entries(f).reduce((h,[T,x])=>h.replace(new RegExp(`{${T}}`,"g"),x),KWe[u]);return c[u]=_,c},{})}function FD(e,t,n){Object.values(ND).forEach(o=>{let r=Pf(t,n);e.querySelectorAll(`.share-${o}`).forEach(s=>{r[o]==="#"&&bRe(s,dge,pge),s.href=r[o]})})}function iMe(){document.querySelectorAll("div.sharing").forEach(e=>e.remove())}M();function MC(e,t,n,o=!0,r=()=>!0){return d` ${o?d`

      ${e.title}

      `:""}
      ${n.columns===0?XWe(e,t,r):ZWe(n,e,t,r)}
      ${e.supportsPaging&&e.pageCount>1?rc(e,`justify-content-flex-start margin-top-sm ${n.layoutStyle==="bigSpace"?"margin-bottom-lg":"margin-bottom-sm"}`):""} `}function uMe(e,t,{icon:n="delete",label:o=Cc}){return d` `}function rc(e,t="is-centered margin-top-sm margin-bottom-xs"){if(!e.pageCount)return null;let n=Array.from({length:e.pageCount},(m,g)=>g),o=e.pageIndex,r=!1,s=1,i={first:0,last:n.length-1};n.length>=7&&(r=!0,o<3?(s=3,i.first=0,i.last=3):o>n.length-4?(s=3,i.first=n.length-4,i.last=i.first+s):(s=1,i={first:Math.max(e.pageIndex-s,0),last:Math.min(e.pageIndex+s,n.length-2)}));let a=d` `,l=d` `,c=d` `,u=d` `,p=[];for(let m=i.first;m<=i.last;m++)p.push(d`
    • `);return d` `}function XWe(e,t,n=()=>!0){return d`
        ${e.items.filter(n).map(o=>d`
      1. ${t(o)}
      2. `)}
      `}function ZWe(e,t,n,o=()=>!0){if(e.cards)return d`
        ${t.items.filter(o).map(r=>d`
      1. ${n(r)}
      2. `)}
      `;if(e.groupListItems){let r=l=>{let u=new Date(Date.now()-6048e5).getTime(),p=new Date(Date.now()-864e5*30).getTime(),m=l.datetime;return m.getTime()>=u?$x.replace("{numberOfDays}",Zo(7)):m.getTime()>=p?$x.replace("{numberOfDays}",Zo(30)):OCe.format(m)},s=t.items.filter(o).reduce((l,c)=>{let u=r(c);return l[u]=l[u]||[],l[u].push(c),l},{}),i=Object.keys(s).sort((l,c)=>s[l][0].datetime>s[c][0].datetime?-1:s[l][0].datetimel===$x.replace("{numberOfDays}",Zo(7))?"past-7days-group":l===$x.replace("{numberOfDays}",Zo(30))?"past-30days-group":"per-month-group";return d` ${i.map(l=>d`

      ${l}

        ${s[l].map((c,u)=>d`
      1. ${n(c)}
        ${t.supportsSharing?t.shareTemplate(c):""}
        ${t.supportsRemove?uMe(t,c,e.remove||{}):""}
      2. `)}
      `)} `}return d`
        ${t.items.filter(o).map((r,s)=>d`
      1. ${n(r)}
        ${t.supportsSharing?t.shareTemplate(r):""}
        ${t.supportsRemove?uMe(t,r,e.remove||{}):""}
      2. `)}
      `}function M9(e,t,n,o=()=>!0){return!e.cards&&e.columns===1&&t{let i=oKe(s),a=rKe(s),l=i.map(c=>c.id);i.forEach(c=>{typeof r=="string"?l.indexOf(r)!==-1&&UD(r,c,a):l.indexOf(r[s.id])!==-1?UD(r[s.id],c,a):l.indexOf(r.tab)!==-1?UD(r.tab,c,a):UD(i[0].id,c,a),c.onclick=()=>{eKe(c.id,s),n(c.id,s.id||"tab")},c.onkeydown=u=>{let p=u.which;if(!u.altKey&&(p===et.left||p===et.right||p===et.home||p===et.end)){u.preventDefault();let m=p===et.left||p===et.home,g;if(u.ctrlKey||p===et.home||p===et.end){let f=m?1:-1;for(g=m?0:i.length-1;i[g].parentElement.getAttribute("hidden");)g+=f}else{let f=m?-1:1;g=i.findIndex(_=>_.id===c.id);do g+=f,g===-1?g=i.length-1:g===i.length&&(g=0);while(i[g].parentElement.getAttribute("hidden"))}i[g].focus();return}}})})}function eKe(e,t){let n=t.querySelector(`#${e}`);if(n===null)return;let o=Array.from(t.querySelectorAll(":scope > .tabs .tab-control")),r=Array.from(t.querySelectorAll(":scope > [data-tab-content]"));o.forEach(s=>{s!==n&&(s.parentElement.classList.remove("is-active"),s.setAttribute("aria-selected","false"),s.setAttribute("tabindex","-1"))}),n.parentElement.classList.add("is-active"),n.setAttribute("aria-selected","true"),n.setAttribute("tabindex","0"),pMe(n.getAttribute("aria-controls"),r)}function tKe(e,t){t||(t="tab");let n=`{"${t}": "${e}"}`;en(JSON.parse(n),"replaceState")}function dMe(){let e=me();for(let t in e)t.slice(0,3)!=="tab"&&delete e[t];return e}function UD(e,t,n){e===t.id?(t.setAttribute("aria-selected","true"),t.setAttribute("tabindex","0"),t.parentElement.classList.add("is-active"),pMe(t.getAttribute("aria-controls"),n)):(t.setAttribute("aria-selected","false"),t.setAttribute("tabindex","-1"),t.parentElement.classList.remove("is-active"))}function pMe(e,t){t.forEach(n=>{n.dataset.tabContent===e?(n.hidden=!1,n.setAttribute("aria-hidden","false")):(n.hidden=!0,n.setAttribute("aria-hidden","true"))})}function nKe(e){return Array.from(e.querySelectorAll(".tabs-container"))}function oKe(e){return Array.from(e.querySelectorAll(":scope > .tabs .tab-control"))}function rKe(e){return Array.from(e.querySelectorAll(":scope > [data-tab-content]"))}M();var sc=class sc{static async render(t,n){return await sc.ensureFrappeChartsIsLoaded(),sc.frappeLibrary?new sc.frappeLibrary.Chart(t,n):null}static async ensureFrappeChartsIsLoaded(){let t=`${sc.thirdPartyUrl}/frappe-charts/1.5.2/frappe-charts.min.iife.js`;return sc.frappeLibrary||(sc.frappeLibrary=await Xl(t,"sha384-J742xhkMgA0pI8dwp+aANFethNYix5bapYzKZsz8z2Df+xqxLYImpGZddI2+ztIZ","frappe")),sc.frappeLibrary}};sc.thirdPartyUrl="/static/third-party";var OD=sc;M();ot();M();ot();M();var gKe=e=>e.isAnswered?"docon-check has-text-success":e.isRequired?"docon-asterisk-solid has-text-danger":"docon-location-circle",fKe=e=>e.isAnswered?zue:e.isRequired?Gue:Vue,hKe=(e,t)=>d` ${fKe(e)} ${q(t.render(e.title||e.id))}`,qD=class{constructor(){this.md=Ba}hasChildren(t){return!!t.children}children(t){return t.children}htmlTitle(t,n=this.md){if(t.isCategory)return t.title;let o=document.createElement("span");return y(hKe(t,n),o),o.innerHTML}textTitle(t){return t.title||t.id}href(t){return t.href.toString()}isNewSection(t){return!1}isExpanded(t){return!!t.children}isSelected(t){return t.isSelected}setHtmlAttributes(t,n){}};ot();ot();var apn=new qD;var agn=d`
      ${NX}
      `;M();ot();Bh();ot();M();M();M();Bh();M();function $9({changeHandler:e,expandedRows:t,id:n,maxCharacterCount:o,name:r,placeholder:s,readonly:i=!1,rows:a=1,value:l="",allowDoubleLength:c=!1}){return d`
      `}function gMe(e){let t=e.target,n=Number(t.getAttribute("data-max-character-count"));if(!t.parentElement)return;let o=t.parentElement.querySelector("span"),r=n-t.value.length;o.textContent=`${r}`,r<=1?o.setAttribute("aria-live","assertive"):o.setAttribute("aria-live","polite")}function N9(e){let t=e.target,n=Number(t.getAttribute("data-expanded-rows")),o=Number(t.getAttribute("data-max-character-count"));if(t.rows=n,t.style.height="auto",!t.parentElement)return;let r=t.parentElement.querySelector("span"),s=o-t.value.length;r.textContent=`${s}`,t.removeEventListener("focus",N9),t.addEventListener("blur",fMe),t.addEventListener("input",gMe)}function fMe(e){let t=e.target,n=Number(t.getAttribute("data-collapsed-rows"));if(t.rows=n,t.style.height="inherit",!t.parentElement)return;let o=t.parentElement.querySelector("span");o.textContent="",t.removeEventListener("blur",fMe),t.removeEventListener("input",gMe),t.addEventListener("focus",N9)}M();M();M();function LKe(e){let t=Array.from(e.querySelectorAll('iframe[src^="https://channel9.msdn.com/"]'));t.length&&t.forEach(n=>{let o=n.src.split("/"),r=o[o.length-2],s=`${LU}: ${r}`;n.title=n.title||s})}function RKe(e){let t=Array.from(e.querySelectorAll('iframe[src^="https://www.youtube"]'));t.length&&t.forEach(n=>{let o=n.src.split("/").pop(),r=`${LU}: ${o}`;n.title=n.title||r})}function MKe(e){let t=[],n=[];window.addEventListener("beforeprint",()=>{Array.from(e.querySelectorAll(".embeddedvideo iframe")).forEach(r=>{if(r.offsetParent!==null){let s=r.src,i=document.createElement("a");i.href=s,i.target="_blank",i.text=s,r.parentElement&&(r.parentElement.appendChild(i),r.hidden=!0,t.push(r),n.push(i))}})}),window.addEventListener("afterprint",()=>{t.forEach(o=>o.hidden=!1),n.forEach(o=>o.remove()),t=[],n=[]})}function F9(e){RKe(e),LKe(e),MKe(e)}M();M();async function HD(e,t,n){let o=await hp(t);if(!(!o||!e)){switch(e){case"details":case"leaderboard":o.add({title:rm,url:`/${o.basePath}/challenges`});break;case"content":n&&o.add({title:rm,url:`/${o.basePath}/challenges`},{title:Bu,url:`/${o.basePath}/challenges/${n}/leaderboard`});break;default:throw new Error("Unsupported page.")}o.render()}}ot();Bh();var U9="5d6ea118-ff48-4612-a205-7c65e11e49ca",Lf="379d1859-15d0-4803-81ed-eb51a2e4945d";var io=class{constructor({errorCode:t}){this.errorCode=t}};M();ot();YU();function BD(e){let n=/(?:status|code)[^\d]*(\d{3})/i.exec(e);return n?parseInt(n[1],10):null}var Au=class extends Ve{constructor(n=null,o=null,r=!0,s=!1,i="Unknown"){super();this.id=n;this.collectionOwner=o;this.isPublicView=r;this.hasActiveTakedowns=s;this.reportStatus=i;this.isUserAuthenticated=v.isAuthenticated;this.isUserChallengeAdmin=v.isChallengeAdmin;this.responseErrorCode=0;this._busy=!1;this._editingId=null;this._editingSectionId=null;this._isEditingSummaryTitle=!1;this._isEditingSummaryDescription=!1;this._isOfficialOrOverride=!1;this._showUserDisplayName=!1}get breadcrumbTitle(){return this.collection?this.collection.name:""}get editingId(){return this._editingId}set editingId(n){this._editingId=n,this.notifyPropertyChanged()}get editingSectionId(){return this._editingSectionId}set editingSectionId(n){let o=this._editingSectionId;this._editingSectionId=n,this.notifyPropertyChanged(),n?document.getElementById("add-edit-section-form")?.focus():document.getElementById(o===Lf?"section":`edit-section-${o}`)?.focus()}get isEditingSummaryTitle(){return this._isEditingSummaryTitle}set isEditingSummaryTitle(n){this._isEditingSummaryTitle=n,this.notifyPropertyChanged()}get isEditingSummaryDescription(){return this._isEditingSummaryDescription}set isEditingSummaryDescription(n){this._isEditingSummaryDescription=n,this.notifyPropertyChanged()}get isEditing(){return this.editingId!==null||this.editingSectionId!==null||this.isEditingSummaryTitle||this.isEditingSummaryDescription}get isOfficialOrOverride(){return this._isOfficialOrOverride}set isOfficialOrOverride(n){this._isOfficialOrOverride=n,this.notifyPropertyChanged()}get isChallengeCollection(){return!mt(this.collection?.challengeId)||!mt(this.collection?.learnChallengeId)}get busy(){return this._busy}get showUserDisplayName(){return this._showUserDisplayName}async beforeActivate(n=null){try{if(!this.id)this.collection=n;else{let s=await Qe.getList(this.id);s.hasError===!1&&(this.collection=s.data)}let o=new URLSearchParams(location.search),r=o.has("force-official-collection")?o.get("force-official-collection")==="true":!1;if(this._isOfficialOrOverride=this.collection?.isOfficial||r,this.isUserAuthenticated&&this.isUserChallengeAdmin===void 0&&(this.isUserChallengeAdmin=(await ns("me"))?.isChallengeAdmin??!1),this.collectionOwner===null){let s=await ns(`id:${this.collection.userId}`);this.setPublicCollectionOwner(s)}v.userId===this.collectionOwner?.userId?(this.setIsPublicView(!1),this.setHasActiveTakedowns(await Qe.getActiveTakedowns(this.id))):this.setReportStatus(await Qe.getReportStatus(this.id)),this.notifyPropertyChanged()}catch(o){if(o instanceof Error){let r=BD(o.message);r&&(this.responseErrorCode=r)}}}async updateCollection(n,o,r){if(this.busy)throw new Error("Busy");this.setBusy();try{let s=await Qe.updateListMetadata(r??this.id,{name:n,description:o});if(s.hasError===!1){let{data:i}=s;this.collection=i}else throw new io({errorCode:s.error.errorCode})}finally{this.setHasActiveTakedowns(!1),this.setReady()}}async toggleShowUserDisplayName(){if(this.busy)throw new Error("Busy");this.setBusy();try{let n=await Qe.toggleShowUserDisplayName(this.collection.id,!this.collection.showUserDisplayName);if(n.hasError===!1){let{data:o}=n;this.collection=o}else throw new io({errorCode:n.error.errorCode})}finally{this.setReady()}}async setPublicCollectionOwner(n){this.collectionOwner=n}async setIsPublicView(n){this.isPublicView=n}async setHasActiveTakedowns(n){this.hasActiveTakedowns=n}async setReportStatus(n){this.reportStatus=n}async deleteCollection(){if(this.busy)throw new Error("Busy");this.setBusy();try{let{submitted:n}=await Yn(lv(this.collection.name,hm,cl));if(n){let o=await Qe.deleteList(this.id);if(o.hasError===!1)location.href=`${An(v.userName,"collections")}`;else throw new io({errorCode:o.error.errorCode})}}finally{this.setReady()}}async localizeCollection(){if(this.busy)throw new Error("Busy");this.setBusy();try{let{submitted:n}=await Yn(MD(),!0);if(n){let o=Yn(DD());await Qe.submitForLocalize(this.id),await o;let r=document.getElementById("submit-loc"),s=document.createElement("p");s.classList.add("margin-top-sm"),s.setAttribute("id","loc-submitted-text");let i=d`${NA}`;y(i,s),document.getElementById("icon-list").parentElement.appendChild(s),r.hidden=!0}}finally{this.setReady()}}async copyCollection(){if(this.busy)throw new Error("Busy");this.setBusy();try{let n=await Qe.copyList(this.collection.id,this.collection.name,this.collection.description);if(n.hasError===!1){let{data:o}=n,{submitted:r}=await Yn(oMe(DA,RA));r&&(location.href=Wi(o.id).toString())}else throw new io({errorCode:n.error.errorCode})}finally{this.setReady()}}async convertCollection(){if(this.busy)throw new Error("Busy");this.setBusy();try{let{submitted:n}=await Yn(nMe(kA,sm));n&&(await Qe.convertList(this.collection.id),location.reload())}finally{this.setReady()}}async updatePrivacy(){if(this.busy)throw new Error("Busy");if(!this.collection||!this.collection.id)throw new Error("Invalid Collection");this.setBusy();try{let n=await Qe.toggleListPrivacy(this.collection.id,!this.collection.isPrivate);if(n.hasError===!1){let{data:o}=n;this.collection=o}else throw new io({errorCode:n.error.errorCode})}finally{this.setReady()}}async commitUrlItem(n,o,r=-1,s){if(this.busy)throw new Error("Busy");this.setBusy();try{let i=OIe(o,n),a=await(s?Qe.updateItem(this.id,s,i):Qe.addItem(this.id,i));if(a.hasError===!1){let{data:l}=a;if(this.collection.sectionCount){let c=r!==-1?r:this.collection.sectionCount-1;if(s){let u=this.collection.sections[c].items.findIndex(p=>p.id===s);this.collection.sections[c].items[u]=l}else this.collection.sections[c].items.push(l),this.collection.sections[c].itemCount=this.collection.sections[c].items.length;return}if(s){let c=this.collection.items.findIndex(u=>u.id===s);this.collection.items[c]=l}else this.collection.items.push(l),this.collection.itemCount=this.collection.items.length}else throw new io({errorCode:a.error.errorCode})}finally{this.setReady()}}async moveItem(n,o,r=-1,s){if(this.busy)throw new Error("Busy");this.setBusy();try{if(o===0)return;let i=r!==-1?{sectionId:this.collection.sections[r].id,items:this.collection.sections[r].items.map(u=>u.id)}:{sectionId:null,items:this.collection.items.map(u=>u.id)},a=r!==-1&&this.collection.sections[r+o]?{sectionId:this.collection.sections[r+o].id,items:this.collection.sections[r+o].items.map(u=>u.id)}:null,l=qKe(n,o,i,a),c=await Qe.sortList(s??this.id,l);if(c.hasError===!1)this.syncProgress(c.data,this.collection),this.collection=c.data;else throw new Error(c.error.message)}finally{this.setReady()}}async moveSection(n,o,r){if(this.busy)throw new Error("Busy");this.setBusy();try{if(o===0)return;if(o===-1){if(n===0)return;let a=this.collection.sections[n],l=this.collection.sections[n-1];this.collection.sections[n]=l,this.collection.sections[n-1]=a}if(o===1&&this.collection.sections!==void 0){if(n===this.collection.sections.length-1)return;let a=this.collection.sections[n],l=this.collection.sections[n+1];this.collection.sections[n]=l,this.collection.sections[n+1]=a}let s=this.collection.sections.map(a=>({sectionId:a.id,items:a.items.map(l=>l.id)})),i=await Qe.sortList(r??this.id,s);if(i.hasError===!1)this.syncProgress(i.data,this.collection),this.collection=i.data;else throw new Error(i.error.message)}finally{this.setReady()}}async moveItemToSection(n,o,r,s){if(this.busy)throw new Error("Busy");this.setBusy();try{if(o===r)return;let i=this.collection.sections.map(c=>({sectionId:c.id,items:[...(c.items??[]).map(u=>u.id)]})),[a]=i[o].items.splice(n,1);i[r].items.unshift(a);let l=await Qe.sortList(s??this.id,i);if(l.hasError===!1)this.syncProgress(l.data,this.collection),this.collection=l.data;else throw new Error(l.error.message)}finally{this.setReady()}}async deleteItem(n,o=-1,r){if(!this.busy){this.setBusy();try{let{submitted:s}=await Yn(lv(n.data.title,hm,cl));if(s){if(await Qe.deleteItem(r??this.id,n.id),this.collection.sectionCount&&Array.isArray(this.collection.sections)&&o!==-1){let l=this.collection.sections[o];l.items=(l.items??[]).filter(c=>c.id!==n.id),l.itemCount=l.items.length;return}this.collection.itemCount&&Array.isArray(this.collection.items)&&(this.collection.items=this.collection.items.filter(l=>l.id!==n.id),this.collection.itemCount=this.collection.items.length)}}finally{this.setReady()}}}async commitSection(n,o,r,s){if(this.busy)throw new Error("Busy");this.setBusy();try{let i=await(this.editingSectionId===Lf?Qe.createSection(s??this.id,[...n?.trim()].length!==0?n:this.getDefaultSectionName(),o,r):Qe.updateSection(s??this.id,this.editingSectionId,n,o,r));if(i.hasError===!1){let{data:a}=i;this.syncProgress(a,this.collection),this.collection=a}else throw new io({errorCode:i.error.errorCode})}finally{this.editingSectionId!==Lf&&this.setHasActiveTakedowns(!1),this.setReady()}}async deleteSection(n,o){if(this.busy)throw new Error("Busy");this.setBusy();try{let r=await Qe.deleteSection(o??this.id,n);if(r.hasError===!1){this.syncProgress(r.data,this.collection);let{data:s}=r;this.collection=s}}finally{this.setReady()}}getAmountStrings(){let n="",o="";if(this.collection.totalItems===0)return{pathCountFormat:n,moduleCountFormat:o};let{path:r,module:s}=this.getCollectionItemsAmount();return r!==0&&(n=(r===1?qZ:OZ).replace("{numberOf}",r.toString())),s!==0&&(o=(s===1?wx:Tx).replace("{numberOf}",s.toString())),{pathCountFormat:n,moduleCountFormat:o}}getCollectionItemsAmount(){return this.collection.items.concat(...this.collection.sections?this.collection.sections.map(o=>o.items??[]):[]).reduce((o,r)=>((r.data.pageKind==="path"||r.data.pageKind==="module")&&o[r.data.pageKind]++,o),{path:0,module:0})}canCopyAsChallenge(){return(!!this.isUserChallengeAdmin||v.tenantId===qo)&&(Object.values(this.getCollectionItemsAmount()).some(n=>n>0)||Object.values(this.getCollectionSectionItemsAmount()).some(n=>n>0))}setBusy(){this._busy=!0,this.notifyPropertyChanged()}setReady(){this._busy=!1,this.notifyPropertyChanged()}notifyPropertyChanged(){this.publish(new He)}getDefaultSectionName(n=SA){let[o,r]=[this.collection.sectionCount,this.collection.sections];if(!o||!Array.isArray(r))return n.replace("{number}",Zo(1));let s=o+1;for(;r.some(i=>i.name===n.replace("{number}",Zo(s)));)s++;return n.replace("{number}",Zo(s))}syncProgress(n,o){let r=Object.fromEntries([...o?.items??[],...(o?.sections??[]).flatMap(s=>s.items??[])].filter(s=>s?.id).map(s=>[s.id,s]));for(let s of[...n?.items??[],...(n?.sections??[]).flatMap(i=>i.items??[])])s?.id&&s.data&&r[s.id]?.data&&(s.data.progress=r[s.id].data.progress)}getCollectionSectionItemsAmount(){return(this.collection.sections??[]).reduce((n,o)=>{let r=(o.items??[]).reduce((s,i)=>((i.data.pageKind==="path"||i.data.pageKind==="module")&&s[i.data.pageKind]++,s),{path:0,module:0});return n.path+=r.path,n.module+=r.module,n},{path:0,module:0})}};function qKe(e,t,n,o){if(!n)throw new Error("Initial section is undefined.");let r={sectionId:n.sectionId,items:zr(n.items)},s=e+t;if(s>=0&&s
      `}function _Me(){let e=document.createElement("div"),t=HKe();return y(t,e),new ge(e)}function HKe(){return d` `}function O9(e){let t=document.createElement("div");y(e,t),cv=new ge(t)}function $C(e,t,n="",o=lo,r=Fe,s=!1,i=!1,a=""){return d` `}var Rr=class extends Au{constructor(n){super();this.id=n;this.returnedForbidden=!1;this._planBusy=!1;this._skillingPlan=null;this._nextPlanItem=null;this._isNextPlanItemHighlighted=!1;this._isEditingSummaryLearningOutcomes=!1;this._stats=null;this._csv=null;this._editResultCode=-1;this._id=n}get busy(){return this._planBusy}get planId(){return this._id}set planId(n){this._id=n}get plan(){return this._skillingPlan}set plan(n){this._skillingPlan=n,n&&(this.collection=n.contentList,this.isOfficialOrOverride=this.collection?.isOfficial??!1),this.notifyPropertyChanged()}get nextPlanItem(){return this._nextPlanItem}set nextPlanItem(n){this._nextPlanItem=n}get isNextPlanItemHighlighted(){return this._isNextPlanItemHighlighted}set isNextPlanItemHighlighted(n){this._isNextPlanItemHighlighted=n}get isEditing(){return super.isEditing||this.isEditingSummaryLearningOutcomes}get editResultCode(){return this._editResultCode}set editResultCode(n){this._editResultCode=n}get isEditingSummaryLearningOutcomes(){return this._isEditingSummaryLearningOutcomes}set isEditingSummaryLearningOutcomes(n){this._isEditingSummaryLearningOutcomes=n,this.notifyPropertyChanged()}async setIsPublicView(n){this.isPublicView=n}get stats(){return this._stats}set stats(n){this._stats=n}get csv(){return this._csv}set csv(n){this._csv=n}hasStarted(){return!mt(this.plan?.startedOn)}isCompleted(){return!mt(this.plan?.completedOn)||(this.plan?.itemsCompleted??0)===this.collection.totalItems}async moveItem(n,o,r){await super.moveItem(n,o,r,this.collection.id)}async moveItemToSection(n,o,r){await super.moveItemToSection(n,o,r,this.collection.id)}async deleteItem(n,o=-1){await super.deleteItem(n,o,this.collection.id)}async updateCollection(n,o){await super.updateCollection(n,o,this.collection.id)}async localizePlan(){if(this.busy)throw new Error("Busy");this.setBusy();try{let{submitted:n}=await Yn(MD(void 0,Qpe),!0);if(n){let o=Yn(DD(Ype));await Qe.submitForLocalize(this.collection?.id),await o;let r=document.getElementById("submit-loc"),s=document.createElement("p");s.classList.add("margin-top-sm"),s.setAttribute("id","loc-submitted-text");let i=d`${Tk}`;y(i,s),document.getElementById("icon-list")?.parentElement?.appendChild(s),r&&(r.hidden=!0)}}finally{this.setReady()}}resumePlan(){let{item:n,elementToHighlight:o}=this.getFirstIncompleteItem(this.collection.sections??[]);location.hash=o,this.nextPlanItem=n,this.isNextPlanItemHighlighted=!0,setTimeout(()=>Af(location.hash)),this.notifyPropertyChanged()}setBusy(){this._planBusy=!0,this.notifyPropertyChanged()}setReady(){this._planBusy=!1,this.notifyPropertyChanged()}notifyPropertyChanged(){this.publish(new He)}async beforeActivate(){try{if(location.hash="",this.plan=await Gr.getSkillingPlan(this.planId),this.collectionOwner===null){let o=await ns(`id:${this.plan?.userId}`);this.setPublicCollectionOwner(o)}v.userId===this.collectionOwner?.userId?(this.setIsPublicView(!1),this.setHasActiveTakedowns(await Qe.getActiveTakedowns(this.collection?.id)),await this.getPlanStatistics(),this.csv=`${D.lists}/skillingPlan/${this.planId}/csv`):this.setReportStatus(await Qe.getReportStatus(this.collection?.id)),me(location.search).ref==="profile"&&this.hasStarted()?this.resumePlan():this.nextPlanItem=this.getFirstIncompleteItem(this.collection.sections??[]).item,this.notifyPropertyChanged()}catch{}}async joinPlan(n){if(this.busy)throw new Error("Busy");try{await Yn(bMe(),!1,async o=>{let r=o.querySelector("#save-plan-btn");r?.classList.add("is-loading"),this.setBusy();try{let s=await Gr.joinSkillingPlan(this.planId);return s.hasError===!1&&(this.plan=s.data),n?.onSuccess?.(),{hasError:!1,data:null}}catch{return ft(o,"somethingWentWrong"),{hasError:!0}}finally{r?.classList.remove("is-loading")}})}finally{this.setReady()}}async moveSection(n,o){await super.moveSection(n,o,this.collection.id)}async commitSection(n,o,r){await super.commitSection(n,o,r,this.collection.id)}async deleteSection(n,o){await super.deleteSection(n,o??this.collection.id)}async updatePlan(n){if(this.busy)throw new Error("Busy");this.setBusy();let o=null;try{o=await Gr.updateSkillingPlan(this.planId,n),o.hasError===!1&&(this.syncProgress(o.data.contentList,this.plan.contentList),this.plan=o.data,this.hasActiveTakedowns=!1,this.editResultCode=200)}catch{this.editResultCode=500}finally{this.setReady()}return o}async toggleShowUserDisplayName(){if(this.busy)throw new Error("Busy");this.setBusy();try{let n=await Qe.toggleShowUserDisplayName(this.collection.id,!this.collection.showUserDisplayName);if(n.hasError===!1){let{data:o}=n;this.collection=o}else throw new io({errorCode:n.error.errorCode})}finally{this.setReady()}}async deletePlan(){if(this.busy)throw new Error("Busy");this.setBusy();try{await Gr.deleteSkillingPlan(this.planId)}finally{this.setReady()}}async dropPlan(){if(this.busy)throw new Error("Busy");this.setBusy();try{let n=await Gr.leaveSkillingPlan(this.planId);n.hasError===!1&&(this.plan=n.data)}finally{this.setReady()}}async trackClick(n,o){if(this.busy)throw new Error("Busy");if(o&&window.open(o,"_blank"),!!(!["module","path"].includes(n.data.pageKind)&&n.data.progress!==1&&this.hasStarted())){this.setBusy();try{await Gr.trackClick(this.planId,n.id),this.updateTrackedItemProgress(this.collection,n,this.plan)}finally{this.setReady()}}}async getPlanStatistics(){if(this.busy)throw new Error("Busy");this.setBusy();try{let n=await Gr.getPlanStatistics(this.planId);n!==null&&(this.stats=n)}finally{this.setReady()}}async addToLearnersGroups(n,o){if(this.busy)throw new Error("Busy");this.setBusy(),this.plan!==null&&(this.plan?.learnerGroups===void 0||this.plan?.learnerGroups===null)&&(this.plan.learnerGroups=[]),this.plan?.learnerGroups?.push(n),this.setReady(),o(this)}async updateLearnerGroup(n){let{id:o,name:r}=n;if(this.plan===null)throw new Error("Plan not found");if(this.busy)throw new Error("Busy");this.setBusy();let s=await Gr.updateLearnerGroup(this.plan?.id,o,r);if(s.hasError===!1&&this.plan?.learnerGroups){let i=this.plan.learnerGroups.findIndex(l=>l.id===o),{data:a}=s;i!==-1&&(this.plan.learnerGroups[i]=a)}return this.setReady(),s}async deleteLearnerGroup(n){if(this.busy)throw new Error("Busy");this.setBusy();let o=await Gr.deleteLearnerGroup(this.plan?.id,n);return o.hasError===!1&&this.plan?.learnerGroups&&(this.plan.learnerGroups=this.plan?.learnerGroups?.filter(r=>r.id!==n)),this.setReady(),o}getDefaultSectionName(){return super.getDefaultSectionName(vde)}updateTrackedItemProgress(n,o,r){let s=[...n.items??[],...(n.sections??[]).flatMap(i=>i.items??[])].find(i=>i?.id===o.id&&i.data);s&&(s.data.progress=1,r.itemsCompleted=(r.itemsCompleted??0)+1)}getFirstIncompleteItem(n){n=n.filter(a=>a.items?.length);let o=n[0],r=n[0]?.items?.[0]??null,s=0,i=0;for(let a of n){let l=a.items?.findIndex(c=>(c?.data.progress??0)<1)??-1;if(l!==-1&&a.items?.[l]){o=a,r=a.items[l],i=l,s=n.indexOf(a);break}}return{section:o,item:r,elementToHighlight:qn(r?.data.uid??"")||`${r?.type+"-"||""}item-${s}${i}`}}};var yMe={architecture:M2,conceptual:lY,tutorial:Dhe,certification:Sc,appliedSkills:av,challenge:jr,sample:BX,course:ra,examination:hr,faq:zie,path:al,knownissue:MF,lifecycle:lle,module:wo,apiconnector:br,"azure-cli":br,cli:br,dotnet:br,java:br,javascript:br,odata:br,powerconnector:br,powershell:br,python:br,rest:br,typescript:br,show:i0,series:s0,episode:Mx};function uv(e,t,n){return e==="appliedSkills"||e==="certification"||e==="challenge"||e==="course"||e==="examination"||e==="path"||e==="knownissue"||e==="lifecycle"||e==="module"||e==="series"?yMe[e]:t==="architecture"||t==="conceptual"||t==="tutorial"||t==="sample"||t==="faq"||t==="azure-cli"||t==="cli"||t==="dotnet"||t==="java"||t==="javascript"||t==="odata"||t==="powerconnector"||t==="python"||t==="rest"||t==="typescript"||t==="episode"||t==="show"?yMe[t]:n&&n.startsWith("/answers/questions")?Bue:""}M();function vMe(e){let t;if(!e)return t=void 0,t;let n=/plans\/([^\/]+)/,o=e.match(n);return o===null||o&&!o[1]?t=void 0:o&&o[1]&&(t=o[1]),t}var BKe=()=>`/${b.data.userLocale}${L.reviewFeatures?"/test/plans":"/plans"}`;function Rf(e,t,n){let o=new URL(location.href),r=new URLSearchParams(o.search),s=o;if(s.pathname=`${BKe()}/${e}`,t){let i=new URLSearchParams(t);for(let[a,l]of i)s.searchParams.set(a,l)}return n&&(s.hash=n),r.has("preview")&&s.searchParams.set("preview",r.get("preview")??""),s.href}function xMe(e){let t=e.items;if(!t)return 0;let n=t?.filter(r=>(r?.data.progress??0)===1);return n?.length?n.length/t?.length:0}function TMe(e){if(location.hash){let t=e.querySelector(location.hash);t!==null&&scrollTo(window.scrollY+t.getBoundingClientRect().top,500)}}function wMe(e,t){let n="primary";return e.data.progress===1?n="accent":t&&(n="info"),`${n} border-radius`}function GD(e,t){let n={completionStatusTag:"",completionStatusTagStyle:"",progressBarLabelStyle:"",progressBarStyle:""};return e===1?(n.completionStatusTag=t==="milestone"?nme:Kn,n.completionStatusTagStyle=t==="milestone"?"color-primary":"color-success"):n.progressBarLabelStyle=t==="milestone"?"font-weight-bold":"",n}function SMe(e){let t=new URL(e).hostname;switch(t=t.replace("www.","").toLocaleLowerCase(),t){case"github.com":return"Github";case"support.microsoft.com":return"Microsoft Support";case"techcommunity.microsoft.com":return"Microsoft Tech Community";case"youtube.com":return"YouTube";default:return ube}}function CMe(e){return v.tenantId===qo&&e!=="bookmarks"}function q9(e,t=""){let{id:n,contentList:{name:o},learningOutcomes:r}=e,s=o??"",i=Rf(n,t?`learnerGroupId=${t}`:""),a=encodeURIComponent(vpe).replace(encodeURIComponent("{planTitle}"),s),l=[xpe,String(Tpe).replace("{planTitle}",s),wpe];return r.length!==0&&l.push(String(Spe)+` `+r.map(c=>`- ${c}`).join(` `)),l.push(String(Cpe)+` `+i),{emailSubject:a,emailBody:encodeURIComponent(l.join(` `)),encodedPlanUrl:encodeURIComponent(i)}}function EMe(e,t){return t.some(n=>n.name.toLowerCase()===e.toLowerCase())}function NC(e,t){e.hidden=!e.hidden,t.hidden=!t.hidden}function H9(e,t,n=!1){return`

      ${e}

      ${n?``:""}
      `}function B9(e,t){let n=decodeURIComponent(e);if(di(n,t.target)){let r=document.querySelector("#notification-wrapper"),s=H9(ppe,"success",!0);r.innerHTML=s}}function VD(e){return d`
      ${e.children}
      `}M();var z9={email:/\b[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}\b/i,phone:/\b(?:(?:\+?1|\b001)[\s.-]?)?(?:\(?[0-9]{3}\)?[\s.-]?)?(?:\(?[0-9]{3}\)?[\s.-]?)?[0-9]{4}\b/i,externalLink:/((http|ftp|https):\/\/)?([\w_-]+(?:(?:\.[\w_-]+)+))([\w.,@?^=%&:\/~+#-]*[\w@?^=%&\/~+#-])/i};function QD(e){return z9.email.test(e)}function YD(e){return z9.phone.test(e)}function jD(e){return z9.externalLink.test(e)}function FC(e,t,n,o){switch(e){case"InvalidTitle":t.setCustomValidity(iZ),t.reportValidity();break;case"TitleMissing":t.setCustomValidity(sZ),t.reportValidity();break;case"UrlFormatIncorrect":n.setCustomValidity(cZ),n.reportValidity();break;case"Malformed":n.setCustomValidity(uZ),n.reportValidity();break;case"Unofficial":if(o)o.textContent=lZ,o.hidden=!1;else throw new Error("genericErrorContainerElement was not provided");break;default:if(o)o.textContent=aZ,o.hidden=!1;else throw new Error("genericErrorContainerElement was not provided");break}}function zKe(e,t){let r=[...e.value.trim()].length;return r===0?(FC("TitleMissing",e,t),!1):r<2||r>100?(FC("InvalidTitle",e,t),!1):t.value.startsWith("http://")||t.value.startsWith("https://")?!0:(FC("UrlFormatIncorrect",e,t),!1)}function JD(e,t=-1,n){let o=async i=>{i.preventDefault();let a=i.target,l=a.elements.namedItem("add-edit-url-title"),c=a.elements.namedItem("add-edit-url");if(zKe(l,c))try{let u=l.value.trim(),p=c.value.trim();await e.commitUrlItem(u,p,t,n?.id),e.editingId=null}catch(u){let p=a.querySelector("#generic-error-container");u instanceof io?FC(u.errorCode,l,c,p):FC("UnexpectedError",l,c,p)}},r=()=>{e.editingId=null},s=i=>{i.key==="Escape"&&r(),i.target instanceof HTMLInputElement&&OC(i)};return d`
      i.target.setCustomValidity("")} />
      i.target.setCustomValidity("")} />
      `}function UC(e,t,n,o,r){switch(e){case"InvalidTitle":t.setCustomValidity(eZ),t.reportValidity();break;case"DuplicateTitle":t.setCustomValidity(XX),t.reportValidity();break;case"InvalidDescription":n.setCustomValidity(JX),n.reportValidity();break;case"InvalidDaysToComplete":o?.setCustomValidity(WX),o?.reportValidity();break;case"Invalid":if(r)r.textContent=tZ,r.hidden=!1;else throw new Error("genericErrorContainerElement was not provided");break;default:if(r)r.textContent=nZ,r.hidden=!1;else throw new Error("genericErrorContainerElement was not provided");break}}function GKe(e,t,n){let s=[...e.value.trim()].length,i=[...t.value.trim()].length;if(s>100)return UC("InvalidTitle",e,t,n),!1;if(i>550)return UC("InvalidDescription",e,t,n),!1;if(n){let a=n.value.trim();if(a!==""){let l=Number(a);if(isNaN(l)||!Number.isInteger(l)||l<1)return UC("InvalidDaysToComplete",e,t,n),!1}}return!0}function G9(e,t){let n=async i=>{i.preventDefault();let a=i.target,l=a.elements.namedItem("add-edit-section-title"),c=a.elements.namedItem("add-edit-section-description"),u=a.elements.namedItem("add-edit-section-days-to-complete");if(GKe(l,c,u))try{let p=l.value.trim(),m=c.value.trim(),g=(()=>{let f=u?.value.trim();if(f)return parseInt(f)})();await e.commitSection(p,m,g),e.editingSectionId=null}catch(p){let m=a.querySelector("#generic-error-container");p instanceof io?UC(p.errorCode,l,c,u,m):UC("UnexpectedError",l,c,u,m)}},o=()=>{e.editingSectionId=null},r=i=>{i.key==="Escape"&&o()},s=i=>{OC(i),i.target.setCustomValidity("")};return d`
      ${(()=>{let i=e instanceof Rr?"plan":"collection",a=t?"editSection":"newSection";return{collection:{newSection:wA,editSection:KX},plan:{newSection:Jpe,editSection:Kpe}}[i][a]})()}
      ${e instanceof Rr?d`
      `:""}
      `}function OC(e){let n=e.target.closest("form").querySelector("#generic-error-container");n.hidden||(n.textContent="",n.hidden=!0)}function WD(e,t,n){switch(e){case"InvalidTitle":t.setCustomValidity(zu),t.reportValidity();break;case"DuplicateTitle":let o=IA.replace("{title}",t.value.trim());t.setCustomValidity(o),t.reportValidity();break;case"InvalidContent":t.setCustomValidity(PA),t.reportValidity();break;default:if(n)n.textContent=DZ,n.hidden=!1;else throw new Error("genericErrorContainerElement was not provided");break}}function VKe(e){if(QD(e.value)||jD(e.value)||YD(e.value))return WD("InvalidContent",e),!1;let o=[...e.value.trim()].length;return o<1||o>100?(WD("InvalidTitle",e),!1):!0}function V9(e,t="",n=""){if(!e)return d``;let o=async i=>{i.preventDefault();let a=i.target,l=a.elements.namedItem("edit-summary-title");if(VKe(l))try{let c=l.value.trim(),u=e.collection.description?.trim()||"";await e.updateCollection(c,u),e.isEditingSummaryTitle=!1}catch(c){let u=a.querySelector("#generic-error-container");c instanceof io?WD(c.errorCode,l,u):WD("UnexpectedError",l,u)}},r=()=>{e.isEditingSummaryTitle=!1},s=i=>{i.key==="Escape"&&r(),i.target instanceof HTMLInputElement&&(OC(i),i.target.setCustomValidity(""),i.target.reportValidity())};return d`
      `}function KD(e,t,n){switch(e){case"InvalidContent":t.setCustomValidity(PA),t.reportValidity();break;case"InvalidDescription":t.setCustomValidity(yx),t.reportValidity();break;default:if(n)n.textContent=$Z,n.hidden=!1;else throw new Error("genericErrorContainerElement was not provided");break}}function QKe(e){return QD(e.value)||jD(e.value)||YD(e.value)?(KD("InvalidContent",e),!1):[...e.value.trim()].length>550?(KD("InvalidDescription",e),!1):!0}function Q9(e,t="",n=""){if(!e)return d``;let o=async i=>{i.preventDefault();let a=i.target,l=a.elements.namedItem("edit-summary-description");if(QKe(l))try{let c=e.collection.name?.trim()||"",u=l.value.trim()||"";await e.updateCollection(c,u),e.isEditingSummaryDescription=!1}catch(c){let u=a.querySelector("#generic-error-container");c instanceof io?KD(c.errorCode,l,u):KD("UnexpectedError",l,u)}},r=()=>{e.isEditingSummaryDescription=!1},s=i=>{i.key==="Escape"&&r(),i.target instanceof HTMLTextAreaElement&&(OC(i),i.target.setCustomValidity(""),i.target.reportValidity())};return d`
      `}function AMe(e,t){if(t)switch(e){case"InvalidContent":t.setCustomValidity(PA),t.reportValidity();break;case"InvalidDescription":t.setCustomValidity(yx),t.reportValidity();break;case"Invalid":t.setCustomValidity(RZ),t.reportValidity();break;default:break}}function YKe(e){e&&(e.textContent=NZ,e.hidden=!1)}function jKe(e,t){let n=!1,o=!0;return t&&(t.textContent="",t.hidden=!0),e.forEach(r=>{r.setCustomValidity("");let s=r.value.trim();s.length>0&&(n=!0,(QD(s)||jD(s)||YD(s))&&(AMe("InvalidContent",r),o=!1))}),!n&&e.length>0&&(AMe("Invalid",e[0]),o=!1),o}function Y9(e,t=""){if(!e||!e.isEditingSummaryLearningOutcomes||e.isPublicView)return"";let n=()=>{e.isEditingSummaryLearningOutcomes=!1},o=async a=>{a.preventDefault();let l=a.target,c=Array.from(l.querySelectorAll('textarea[id^="edit-summary-learning-outcomes"]')),u=l.querySelector("#generic-error-container");if(jKe(c,u))try{let p=e.collection.name?.trim()||"",m=e.collection.description?.trim()||"",g=c.map(_=>_.value.trim()).filter(_=>_.length>0),f={metadata:{name:p,description:m,learningOutcomes:g,listId:e.collection.id??"",isOfficial:e.collection.isOfficial??!1}};await e.updatePlan(f),n()}catch{YKe(u)}},r=a=>{a.key==="Escape"&&n(),a.target instanceof HTMLTextAreaElement&&(OC(a),a.target.setCustomValidity(""),a.target.reportValidity())},s=e.plan.learningOutcomes,i=[...s,"","",""].slice(0,Math.max(3,s.length));return d`
      ${Dpe}
      ${i.map((a,l)=>d`
      `)}
      `}M();var qC;function kMe(){if(!qC){let e=`

      ${vbe}

      `,t=`

      ${xbe}

      `,n=document.createElement("div");y(d` `,n),qC=new ge(n)}qC.contentElement.classList.remove("shake-in"),qC.show(),qC.contentElement.classList.add("shake-in")}var dv=class{};var Ga=St(),HC=b.data.contentLocale||b.data.userLocale,IMe={title:"Exam MB-210: Microsoft Dynamics 365 Sales Functional Consultant",uid:"exam.mb-210",url:"/credentials/certifications/exams/mb-210/"};function j9(e,t,n){let o={locale:e,branch:Ga},r=`${D.learn.module}/${t}?${V(o)}`;return R(N(r,{method:"GET"})).then(i=>{if(i.ok)return i.json();throw new Wt(i)}).catch(i=>(n?.fail(i),Promise.reject()))}function W9(e,t,n){let o={unitId:t,locale:e,branch:Ga},r=`${D.learn.module}?${V(o)}`,s={method:"GET"};return n?.updateProgress("Fetching module by unit"),R(N(r,s)).then(i=>{if(i.ok)return n?.updateProgress("Fetched module by unit"),i.json();throw new Wt(i)}).catch(i=>(n?.fail(i),Promise.reject()))}function K9(e,t){let n={locale:e,branch:Ga},o=`${D.learn.unit}/${t}?${V(n)}`;return R(N(o,{method:"GET"})).then(s=>{if(s.ok)return s.json();throw new Wt(s)}).catch(s=>Promise.reject())}function PMe(e,t){let n={locale:e,branch:Ga},o=`${D.learn.learningPath}/${t}?${V(n)}`;return R(N(o,{method:"GET"})).then(s=>s.json())}function LMe(e,t){let n=td(t),o={method:"GET"};return n.map(r=>{let s={locale:e,branch:Ga,uids:r.join(";")},i=`${D.learn.batchItemSummaries}?${V(s)}`;return R(N(i,o)).then(a=>a.ok?a.json():Promise.reject())})}async function XD(e){let t={locale:Be.userLocale},n=`${D.learn.progress.moduleAssessment}/${e}?${V(t)}`,r=N(n,{method:"GET"}),s=await R(r);if(ee(s),s.ok)return s.json();throw s.status===400?new pe(s,"BadRequestError"):s.status===404?new pe(s,"NotFoundError"):new pe(s,"UnexpectedError")}function RMe(e=!1){let t={modulesOnly:e},n=`${D.learn.progress.user}?${V(t)}`;return R(N(n,{method:"GET"})).then(r=>ee(r)).then(r=>r.status===204?[]:r.ok?r.json():[])}async function fi(e,t){let n=td(e),o=[],r={method:"GET"},s=n.map(async i=>{let a={branch:Ga,uids:i.join(";"),locale:HC},l=`${D.learn.progress.user}?${V(a)}`,c=N(l,r),u=await R(c);if(u.ok&&u.status!==204){let p=await u.json();o.push(...p)}if(!u.ok)throw new Wt(u)});try{t?.updateProgress("Getting user progress by uids"),await Promise.all(s),t?.updateProgress("Got user progress by uids")}catch(i){t?.fail(i)}return o}function Mf(e,t=HC,n,o){let r={branch:Ga,locale:t},s=`${D.learn.progress.unit}/${e}/?${V(r)}`,a={method:"PUT",body:JSON.stringify(n)};return o?.updateProgress("Putting progress"),R(N(s,a)).then(XKe).then(ee).then(async l=>{if(l.ok)return o?.updateProgress("Completed putting progress"),await l.json();throw new Wt(l)}).catch(l=>(o?.fail(l),Promise.reject()))}function MMe(e,t){let n={branch:Ga,locale:HC},o=`${D.learn.progress.batchUnit}?${V(n)}`,s={method:"PUT",body:JSON.stringify(e)};return t?.updateProgress("Putting batch Progress"),R(N(o,s)).then(i=>ee(i)).then(i=>{if(i.ok)return t?.updateProgress("Completed putting batch progress"),i.json();throw new Wt(i)}).catch(i=>(t?.fail(i),Promise.reject()))}function ZD(e){return(v.isAuthenticated?WKe(e):PMe(b.data.userLocale,e)).then(t=>(S.appliedSkills||delete t.appliedskills,t))}function e$(e){let t={branch:Ga},n=`${D.learn.progress.learningPathPass}/${e}?${V(t)}`;return R(N(n,{method:"GET"})).then(r=>{if(r.ok)return r.json();throw new Wt(r)}).catch(r=>Promise.reject(r))}function WKe(e){return Promise.all([PMe(b.data.userLocale,e),fi([e])]).then(([t,n])=>KKe(t,n))}function KKe(e,t){if(!t||!t.length)return e;let n=t.find(o=>o.uid===e.uid);n===void 0?(e.status="notStarted",e.remainingTime=e.durationInMinutes):e={...e,...n};for(let o=0;os.uid===e.modules[o].uid);r===void 0?(e.modules[o].status="notStarted",e.modules[o].remainingTime=e.modules[o].durationInMinutes):e.modules[o]={...e.modules[o],...r};for(let s=0;sa.uid===e.modules[o].units[s].uid);i===void 0?(e.modules[o].units[s].status="notStarted",e.modules[o].units[s].remainingTime=e.modules[o].units[s].durationInMinutes):e.modules[o].units[s]={...e.modules[o].units[s],...i}}}return e}var JKe={courses:[{title:"Mock Course Title",summary:"Summary",url:"https://review.learn.microsoft.com/en-us/training/courses/az-204t00/"}],title:"Mock Renewal Assessment Title",subtitle:"Mock Subtitle",exams:[IMe],uid:"certification.azure-developer",url:"/credentials/certifications/azure-developer/"};function Ki(e){if(S.assessmentMergerRenewalAssessment&&!S.assessmentMergerLearnAssessment)return Promise.resolve(JKe);let t={branch:Ga,locale:HC},n=`${D.learn.certification}/${e}?${V(t)}`;return R(N(n,{method:"GET"})).then(r=>r.status!==204?r.json():Promise.resolve(null))}function pv(e){if(S.assessmentMergerPracticeAssessment&&!S.assessmentMergerLearnAssessment)return Promise.resolve(IMe);let t={branch:Ga,locale:HC},n=`${D.learn.exams}/${e}?${V(t)}`;return R(N(n,{method:"GET"})).then(r=>r.ok?r.json():Promise.reject(r.json()))}function Dp(e){return[].concat.apply([],e)}function XKe(e){if(e.status===429)throw ct.publish(new dv),e.status;return e}M();var J9={all:tl,ai:"AI search",documentation:Vu,training:Jn,credential:Oo,qna:gk,reference:br,show:vi};var DMe={...PD};var BC={all:tl,last24hours:Nhe,last7days:$he,last30days:Fhe,last365days:Uhe,custom:$se};var $Me={advanced:gQ,beginner:bY,intermediate:Zae};var t$={ar:a0,"ar-sa":ule,bg:l0,"bg-bg":dle,"bs-cyrl":ple,"bs-latn":c0,ca:u0,cs:d0,da:p0,de:m0,el:g0,"el-gr":mle,en:f0,"en-my":gle,es:h0,"es-mx":fle,et:b0,eu:_0,fi:y0,fil:v0,fr:x0,ga:T0,gl:w0,he:S0,hi:C0,hr:E0,hu:A0,"hu-hu":hle,id:k0,"id-id":ble,is:I0,it:P0,ja:L0,kk:R0,ko:M0,lb:D0,lt:$0,lv:N0,ms:F0,mt:U0,nb:O0,nl:q0,pl:H0,pt:B0,"pt-br":yle,"pt-pt":vle,ro:z0,ru:G0,sk:V0,sl:Q0,"sr-cyrl":Y0,"sr-latn":j0,sv:W0,th:K0,tr:J0,uk:X0,"uk-ua":xle,ur:Tle,vi:Z0,"vi-vn":wle,"zh-cn":ek,"zh-hk":tk,"zh-tw":nk};var NMe={event:rle,series:s0,show:vi};var Ps={category:J9,credential_types:DMe,date:BC,levels:$Me,locales:t$,resource_type:{...VRe,...PD},show_type:NMe,years:fbe,author:XF,tags:Uge};function FMe(e){let t=()=>e.getAttribute("aria-expanded")==="true",n,o=s=>{n&&n(),e.setAttribute("aria-expanded",s.toString());let i=e.getAttribute("aria-controls");if(!i)throw new Error("Aria-controls is required for expander to work.");let a=i.split(" ").map(p=>A.getElementById(p)).filter(p=>!!p);for(let p of a)p.style.maxHeight=s?"0px":"100vh",p.style.opacity=s?"0":"1",p.style.transition="max-height 300ms ease-in-out, opacity 300ms ease-in-out",p.style.overflow="hidden",p.hidden=!1;let l=requestAnimationFrame(()=>{for(let p of a)p.style.maxHeight=s?"100vh":"0px",p.style.opacity=s?"1":"0"}),c=setTimeout(u,300);function u(){cancelAnimationFrame(l);for(let p of a)p.hidden=!s,p.style.transition="",p.style.maxHeight="",p.style.opacity="",p.style.overflow="";clearTimeout(c),n=void 0,Zt()}n=u,e.dispatchEvent(new CustomEvent(s?"expand":"collapse",{bubbles:!0}))};e.onclick=s=>{s.preventDefault(),o(!t())};let r=(s=!t())=>{t()!==s&&o(s)};return e.onkeydown=s=>{switch(s.which){case et.left:s.preventDefault(),r(!1);break;case et.right:s.preventDefault(),r(!0);break}},r}M();var n$=class{constructor(t){this.achievementCategory=t}createRequestModal(){let t=document.createElement("div");this.modalHTMLDefault=d`
      `;let n=d``;y(n,t);let o=new ge(t);this.modalRequestCode=o}openModal(){this.createRequestModal(),this.modalRequestCode.show();let t=document.getElementById("code-request-button");t.addEventListener("click",()=>{t.classList.add("is-loading");let n=k("uid");this.codeCountInputContainer=document.getElementById("code-count-input"),this.clearErrorStatus();let o=+this.codeCountInputContainer.value.replace(/,/g,"");this.modalContentDefaultContainer=document.getElementById("code-request-modal-body"),isNaN(o)||o>1e5?this.updateErrorStatus(o):Eu.requestCode(this.achievementCategory,n,o).then(s=>{this.codeCountInputContainer.classList.remove("input-danger");let i=s.redemptionCode;if(i===void 0)this.updateErrorStatus(o,s);else{let a=new URL(fn("me","achievements"));a.searchParams.set("redeem",i),this.modalHTMLSuccess=d``,this.updateSuccessState()}}).catch(s=>{this.updateErrorStatus(o,s)})})}clearErrorStatus(){document.getElementById("error-text-field")&&document.getElementById("error-text-field").remove(),this.codeCountInputContainer.classList.remove("input-danger")}removeLoadingStateButton(){document.getElementById("code-request-button").classList.remove("is-loading")}updateErrorStatus(t,n){this.removeLoadingStateButton();let o=document.createElement("div");o.id="error-text-field";let r=Ume;if(n)switch(n.message){case"expiresAt must be in the future":r=Fme;break;case"Invalid achievement category":r=qme;break;case"useCount must be more than zero":r=Xme;break;case"No payload provided":r=uU;break;case"Instructor has hit daily code creation limit":r=Ame;break}(isNaN(t)||t>1e5)&&(r=uU);let s=d`

      ${r}

      `;y(s,o),document.getElementById("error-text-field")&&document.getElementById("error-text-field").remove(),this.codeCountInputContainer.after(o),this.codeCountInputContainer.classList.add("input-danger")}updateSuccessState(){this.removeLoadingStateButton(),y(this.modalHTMLSuccess,this.modalContentDefaultContainer),document.getElementById("copy-code").addEventListener("click",()=>{this.copyStatus(!1)}),document.getElementById("copy-link").addEventListener("click",()=>{this.copyStatus(!0)})}copyStatus(t){let n="/en-us/media/illustrations/success-code-redeem-or-copy.svg?branch=live",o=t?document.getElementById("link-to-redeem"):document.getElementById("code-to-redeem"),r=t?document.getElementById("code-to-redeem"):document.getElementById("link-to-redeem");r.classList.remove("input-success"),r.classList.remove("input-danger");let s=document.getElementById("error-copy-text");s&&s.parentElement.removeChild(s);let i;if(di(o.getAttribute("value"),o)){let l=document.querySelector("img#code-request-illustration");l.setAttribute("src",n),l.classList.remove("is-128x128"),l.classList.add("is-112x112");let c=document.createElement("div");c.id="error-copy-text",t?i=d`

      ${$h}

      `:i=d`

      ${Lme}

      `,c.classList.add("help-success"),y(i,c),o.parentElement.parentElement.after(c),o.classList.remove("input-danger"),o.classList.add("input-success")}else{let l=document.createElement("div");l.id="error-copy-text",i=d`

      ${t?Cme:Sme}

      `,l.classList.add("help-danger"),y(i,l),o.parentElement.after(l),o.classList.remove("input-success"),o.classList.add("input-danger")}}};M();M();var eJe=parseInt(k("hoursToComplete"),10),UMe=aM(eJe).toLocaleLowerCase(),o$=class{constructor(t,n,o){this.view=t;this.element=n;this.childViews=o}init(t){this.element.setAttribute("aria-live","polite"),this.element.setAttribute("aria-atomic","false"),this.element.tabIndex=-1,this.update(t)}update(t){let n=this.element,o=this.view(t,this.childViews),r=this.getFocus();n.setAttribute("aria-busy",t.busy.toString()),y(o,n),this.setFocus(r),t.busy}getFocus(){return this.element.contains(A.activeElement)}setFocus(t){t&&this.element.focus()}},tJe=({items:e,count:t,criteria:n,filterApplied:o})=>d`

      ${aJe(t)}

      ${wF.replace("{duration}",UMe)}

        ${e.map((r,s)=>d`
      1. ${iJe(r)}
      2. `)}
      `,nJe=e=>e?d``:d`

      ${Ns}

      ${yte}
      `,OMe=({busy:e,pageSize:t,error:n,items:o,count:r,criteria:s,collapseResults:i})=>{if(e){let a=Array.apply(null,{length:t}).map(oJe);return d`

      ${wF.replace("{duration}",UMe)}

        ${a}

      ${Xt}

      `}return n?d`

      ${vte}

      `:o.length?tJe({items:o,count:r,criteria:s}):nJe(i)};function oJe(){return d`
    • `}var rJe=e=>{let t=new Date(e.startTime),n=new Date(e.endTime),o={weekday:"long",year:"numeric",month:"long",day:"numeric"},r={hour:"numeric",minute:"2-digit"},s=Object.assign({},o,r),i=hte.replace("{startTime}",t.toISOString()).replace("{endTime}",n.toISOString()).replace("{startTimeDisplay}",t.toLocaleString(b.data.userLocale,s)).replace("{endTimeDisplay}",n.toLocaleString(b.data.userLocale,s));return d`

      ${q(i)}

      `},sJe=({target:e})=>{let t=e.closest("button"),n=t.getAttribute("aria-controls"),o=t.getAttribute("aria-expanded")==="true",r=A.getElementById(n);r&&(t.setAttribute("aria-expanded",o?"false":"true"),r.hidden=o)};function iJe(e){let t=new Date(e.schedule.startDate),n=`${e.schedule.values[0].date.slice(-6).replace(":","")} (${e.schedule.timezone})`,o=_t();return d`
      ${e.location} ${e.price}
      `}function aJe(e){return fte.replace("{number}",e.toString())}async function X9(e){let t=D.learn.iltCourses.scheduling,n=Object.entries(e).reduce((i,[a,l])=>(l&&(i[a]=l),i),{}),o=V(n),r=N(`${t}?${o}`,void 0,!1);r.headers.set("x-api-version","v1");let s=await R(r).then(ee);if(s.ok){let i=await s.json();return i.hasOwnProperty("count")?i:{count:e.skip?1/0:i.length,results:i}}if(s.status===404)return{count:0,results:[]};throw{error:s.json()}}var r$,Va;async function qMe(e){if(Va!==void 0&&await Va,r$!==void 0)return(await r$).filter(r=>e.searchTerm?r.displayName.toLocaleLowerCase().indexOf(e.searchTerm.toLocaleLowerCase())>-1:!0).sort((r,s)=>r.displayName.localeCompare(s.displayName));let t=D.learn.iltCourses.location,n={eventId:e.courseId.replace(/^course\./,"").replace(/-test$/,""),locale:e.locale},o=N(`${t}?${V(n)}`,void 0,!1);o.headers.set("x-api-version","v1"),Va=R(o);try{let r=await Va;if(r.ok)return Va=void 0,r$=r.json(),(await r$).filter(s=>e.searchTerm?s.displayName.toLocaleLowerCase().indexOf(e.searchTerm.toLocaleLowerCase())>-1:!0).sort((s,i)=>s.displayName.localeCompare(i.displayName));if(r.status===404)return[];throw Va=void 0,{error:r.json()}}catch{return Va=void 0,[]}}async function HMe(e){if(!e)throw new Error("courseId is required");let t=D.learn.iltCourses.languages,n={eventId:e.replace(/^course\./,"").replace(/-test$/,"")},o=N(`${t}?${V(n)}`,void 0,!1);o.headers.set("x-api-version","v1"),Va=R(o);let r=await Va;if(r.ok)return await r.json();if(r.status===404)return{courseLanguageLocales:[]};throw{error:r.json()}}async function BMe(e){if(!e)throw new Error("courseId is required");let t=D.learn.iltCourses.duration;e=Ot?e.replace(/^course\./,"").replace(/-test$/,""):e.replace(/^course\./,"");let n={eventId:e.replace(/^course\./,"").replace(/-test$/,"")},o=N(`${t}?${V(n)}`,void 0,!1);o.headers.set("x-api-version","v1"),Va=R(o);let r=await Va;if(r.ok)return await r.json();throw r.status===404?new pe(r,"NotFoundError"):new pe(r,"UnexpectedError")}function zMe(e,t){Ee({actionType:Re.OTHER,behavior:Ce.SEARCH,content:{event:"course-filter-criteria",criteria:e,count:t}})}function GMe(){Ee({actionType:Re.OTHER,behavior:Ce.SEARCH,content:{event:"location-autocomplete-cleared"}})}function VMe(e){Ee({actionType:Re.OTHER,behavior:Ce.SEARCH,content:{event:"location-autocomplete-selected",location:e}})}var Z9=5,s$=class extends Ve{constructor(){super();this.load=async n=>{try{this.busy=!0,this._criteria=n,this.page=1;let{results:o,count:r}=await X9(this._criteria);this.items=o,this._count=r,this.filterApplied&&zMe(this._criteria,r),this._state.error=!1}catch{this._state.error=!0}finally{this._state.collapseResults=!1,this.busy=!1}};this._count=0,this.page=1,this.pageSize=Z9,this._state={busy:!1,error:!1,collapseResults:!0}}get collapseResults(){return this._state.collapseResults}get count(){return this._count}get error(){return this._state.error}get criteria(){return Object.assign({},this._criteria)}get busy(){return this._state.busy}set busy(n){this._state.busy!==n&&(this._state.busy=n,this.notifyPropertyChanged())}get filterApplied(){return this._criteria&&(!!this._criteria.location||!!this._criteria.modality||!!this._criteria.dayStart||!!this._criteria.courseLanguageLocale)}get items(){return this._items||[]}set items(n){this._items=n}async goToPage(n){try{this.busy=!0,this.page=n,this._criteria.skip=(n-1)*this.pageSize;let{results:o,count:r}=await X9(this._criteria);this.items=o,this._count=r,this._state.error=!1}catch{this._state.error=!0}finally{this.busy=!1}}clearResults(){this.busy=!0,this.items=[],this._count=0,this._state.collapseResults=!0,this.busy=!1}notifyPropertyChanged(){this.publish(new He)}};M();M();var Me={ar:a0,bg:l0,"bs-latn":c0,ca:u0,cs:d0,da:p0,de:m0,el:g0,en:f0,es:h0,et:b0,eu:_0,fi:y0,fil:v0,fr:x0,ga:T0,gl:w0,he:S0,hi:C0,hr:E0,hu:A0,id:k0,is:I0,it:P0,ja:L0,ka:_le,kk:R0,ko:M0,lb:D0,lt:$0,lv:N0,ms:F0,mt:U0,nb:O0,nl:q0,pl:H0,pt:B0,ro:z0,ru:G0,sk:V0,sl:Q0,"sr-cyrl":Y0,"sr-latn":j0,sv:W0,th:K0,tr:J0,uk:X0,vi:Z0,"zh-cn":ek,"zh-hk":tk,"zh-tw":nk},i$=new Map([["ar-sa",Me.ar],["bg-bg",Me.bg],["bs-latn-ba",Me["bs-latn"]],["ca-es",Me.ca],["cs-cz",Me.cs],["da-dk",Me.da],["de-at",`${Me.de} (${HA})`],["de-ch",`${Me.de} (${hh})`],["de-de",Me.de],["el-gr",Me.el],["en-au",`${Me.en} (${qA})`],["en-ca",`${Me.en} (${Cx})`],["en-gb",`${Me.en} (${KA})`],["en-ie",`${Me.en} (${GA})`],["en-in",`${Me.en} (${zA})`],["en-my",`${Me.en} (${Ex})`],["en-nz",`${Me.en} (${QA})`],["en-sg",`${Me.en} (${jA})`],["en-us",`${Me.en} (${JA})`],["en-za",`${Me.en} (${WA})`],["es-es",`${Me.es}`],["es-mx",`${Me.es} (${VA})`],["et-ee",Me.et],["eu-es",Me.eu],["fi-fi",Me.fi],["fil-ph",Me.fil],["fr-be",`${Me.fr} (${Sx})`],["fr-ca",`${Me.fr} (${Cx})`],["fr-ch",`${Me.fr} (${hh})`],["fr-fr",`${Me.fr}`],["ga-ie",Me.ga],["gl-es",Me.gl],["he-il",Me.he],["hi-in",Me.hi],["hr-hr",Me.hr],["hu-hu",Me.hu],["id-id",Me.id],["is-is",Me.is],["it-ch",`${Me.it} (${hh})`],["it-it",`${Me.it}`],["ja-jp",Me.ja],["ka-ge",Me.ka],["kk-kz",Me.kk],["ko-kr",Me.ko],["lb-lu",Me.lb],["lt-lt",Me.lt],["lv-lv",Me.lv],["ms-my",`${Me.ms} (${Ex})`],["mt-mt",Me.mt],["nb-no",Me.nb],["nl-be",`${Me.nl} (${Sx})`],["nl-nl",`${Me.nl}`],["pl-pl",Me.pl],["pt-br",`${Me.pt} (${BA})`],["pt-pt",`${Me.pt} (${YA})`],["ro-ro",Me.ro],["ru-ru",Me.ru],["sk-sk",Me.sk],["sl-si",Me.sl],["sr-cyrl-rs",Me["sr-cyrl"]],["sr-latn-rs",Me["sr-latn"]],["sv-se",Me.sv],["th-th",Me.th],["tr-tr",Me.tr],["uk-ua",Me.uk],["vi-vn",Me.vi],["zh-cn",Me["zh-cn"]],["zh-tw",Me["zh-tw"]],["zh-hk",Me["zh-hk"]]]),lJe=e=>i$.get(e);lJe.keys=()=>i$.keys();var hi=(c=>(c.autocompleteLocation="autocompleteLocation",c.event="event",c.date="date",c.distance="distance",c.geolocation="geolocation",c.hours="hours",c.language="language",c.radius="radius",c.duration="duration",c))(hi||{});var QMe=[5,10,25,50];var YMe=(()=>{let e=["de","en","es","fr","it"],t=n=>`${n} (${tl})`;return new Map([...i$,...Object.entries(Me).filter(([n])=>e.includes(n)).map(([n,o])=>[n,t(o)])])})();M();function jMe(){if(v.isAuthenticated)return v.userId;let e=`${En.kind}-visitor-id`,t=J.getItem(e);return t||(t=Hi(),J.setItem(e,t),t)}function cJe(){return En.template==="Course"?k("uid")??"":k("iltSchedulingId")??""}var Qa=cJe();var ku=class{constructor(t){this.message=t}},Ya=class{constructor(t){this.message=t}},Ji=class{constructor(t,n){this.eventBus=t;this._isDisabled=!1;this._isHidden=!1;this._isSelected=!1;n.isSelected||(n.isSelected=!1),this._option=n}get option(){return this._option}get isDisabled(){return this._isDisabled}get isHidden(){return this._isHidden}get isSelected(){return this._isSelected}updateOption(t,n,o=!0){this._isSelected=t,n.isSelected=t,this._option=n,o&&this.eventBus.publish(new ku({eventType:"optionUpdated",filterType:this._filterType,payload:this}))}};function WMe(e){let t=Zl({input:{id:"course-scheduling-location",placeholder:"",docon:"enhance-pop",doconOrientation:"right",doconClasses:"has-text-color",isFullWidth:!0,disabled:e.isDisabled},getSuggestions:e.loadAutocompleteSuggestions,getTitle:n=>n.displayName,initialValue:e.option.payload});return t.addEventListener(mC,e.handleAutocompleteSelection),t.addEventListener("input",e.handleAutocompleteClear),t.addEventListener("focusout",e.handleAutocompleteBlur),d`
      ${t}
      `}var a$=class extends Ji{constructor(n,o={payload:{location:null}}){super(n,o);this._filterType="autocompleteLocation";this.handleAutocompleteBlur=({target:n})=>{this.option.payload||this.option.payload?.location||(n.value="")};this.handleAutocompleteClear=({target:n})=>{n.value.length||GMe(),this.updateLocation(!1,void 0)};this.handleAutocompleteSelection=n=>{n.detail.suggestion.location||(this.updateLocation(!1,void 0),n.target.querySelector("input[type=text]").value=""),this.updateLocation(!0,n.detail.suggestion),VMe(this.option.payload.location)};this.eventBus.subscribe(Ya,r=>{if(r.message.type===0){let s=r.message.payload;this._isDisabled=s,s&&this.updateLocation(!1,void 0,!1)}})}async loadAutocompleteSuggestions(n){if(!Qa)return[];let o=await qMe({locale:b.data.userLocale,courseId:Qa,searchTerm:n});return o.length?o:[{location:"",displayName:Ns}]}updateLocation(n,o,r=!0){this.option.payload=o,super.updateOption(n,this.option,r)}};M();function KMe(e){return d`
      `}var l$=class extends Ji{constructor(n,o={type:"date",payload:new Date}){super(n,o);this._filterType="date";this.handleDateChange=n=>{let o=n.target;if(!o.value){this.updateDate(!1,new Date);return}let r=o.valueAsDate;if(o.value.length&&!r){let s=Date.parse(o.value);isNaN(s)||(r=new Date(s))}if(r){let s=r.getUTCDate(),i=r.getUTCMonth(),a=r.getUTCFullYear(),l=this.option.payload;l.setDate(s),l.setMonth(i),l.setFullYear(a),this.updateDate(!0,l)}}}updateDate(n,o,r=!0){this.option.payload=o,this.updateOption(n,this.option,r)}};M();function JMe(e){return e.option.payload.error>-1?d`
      ${lte}
      `:d``}function XMe(e){return d`
      `}var c$=class extends Ji{constructor(n,o={payload:{error:-1,position:null}}){super(n,o);this._filterType="geolocation";this.handleGeolocationChange=n=>{if(n.target.checked){this.getGeolocation();return}this.updateGeolocation(!1)};this.eventBus.subscribe(Ya,r=>{r.message.type===1&&(this._isDisabled=r.message.payload,this.updateGeolocation(this._isSelected,this.option.payload,!1))})}getGeolocation(){if(!Ku.geolocation){this.option.payload={position:this.option.payload.position,error:0},this.updateGeolocation(!1);return}let n=new Promise((o,r)=>Ku.geolocation.getCurrentPosition(o,r,{enableHighAccuracy:!0}));this.updateGeolocation(!0),n.then(o=>{this.option.payload.position=o,this.option.payload.error=-1,this.updateGeolocation(!0)}).catch(({code:o})=>{this.option.payload.error=o,this.option.payload.position=null,this.updateGeolocation(!1)})}updateGeolocation(n,o=this.option.payload,r=!0){this.option.payload=o,this.updateOption(n,this.option,r)}};M();function ic(e,t){let n="course-"+t.filterType,o=n+"-button",r=n+"-label",s=n+"-list",i=n+"-placeholder",a=t.placeholder??e.options.find(l=>l.payload.key===e.option.payload.key).payload.text;return d`
      `}var Xi=class extends Ji{constructor(n,o,r={payload:{value:null}}){super(n,o.find(s=>s.isSelected)??r);this.handleKeyDown=(n,o,r)=>{let s=n.keyCode;if(s===et.enter)o(n,r);else if(s===et.down||s===et.up){let i=Array.from(document.querySelectorAll(`#course-${r}-list li`)),a=document.activeElement;for(let l of i)if(l===a){if(s===et.down&&i.indexOf(l)+1=0){i[i.indexOf(l)-1].focus();break}}}};this.handleSelect=(n,o)=>{let r=n.target;n.target.parentElement.matches("li")&&(r=n.target.parentElement);let s=r.dataset.key;this.options.forEach(a=>{a?.isSelected&&(a.isSelected=!1)});let i=this.options.find(a=>a.payload.key===s);i.isSelected=!0,this.updateOption(!0,i),document.querySelector(`#course-${o}-placeholder`).textContent=this.option.payload.text,document.querySelector(`#course-${o}-button`).ariaExpanded="false"};this._options=o.map(s=>({isSelected:!1,...s}))}get options(){return this._options}set options(n){this._options=n}updateOptions(n){this._options=n,this.eventBus.publish(new ku({eventType:"optionsUpdated",filterType:this._filterType,payload:this}))}setupGeolocationDisabledSubscriber(){this.eventBus.subscribe(Ya,n=>{n.message.type===1&&(this._isDisabled=n.message.payload)})}};function ZMe(e){return ic(e,{label:xte,filterType:"distance"})}var u$=class extends Xi{constructor(n,o=(()=>{let r=b.data.userLocale==="en-us"?2:1;return[{isSelected:r===2,payload:{key:2 .toString(),text:Lle,value:2}},{isSelected:r===1,payload:{key:1 .toString(),text:tle,value:1}}]})()){super(n,o);this._filterType="distance";this.setupGeolocationDisabledSubscriber()}};M();function e1e(e,t){let n="course-"+t.filterType,o=n+"-button",r=n+"-label",s=n+"-list",i=n+"-placeholder",a=e.options.find(c=>c.payload.key===e.option.payload.key),l=t.placeholder??(a?a.payload.text:"");return d`
      `}var d$=class extends Ji{constructor(n,o,r={payload:{value:null}}){super(n,o.find(s=>s.isSelected)??r);this.handleKeyDown=(n,o,r)=>{let s=n.code;if(s==="Enter")n.preventDefault();else if(s==="Space")o(n,r);else if(s==="ArrowDown"||s==="ArrowUp"){let i=Array.from(document.querySelectorAll(`#course-${r}-list input[type="checkbox"]`)),a=document.activeElement;for(let l of i)if(l===a){if(s==="ArrowDown"&&i.indexOf(l)+1=0){i[i.indexOf(l)-1].focus();break}}}};this.handleMultiSelect=(n,o,r)=>{let s=n.target;if(!s)return;if(s&&s.parentElement&&s.parentElement.matches("label")){let u=s.closest("li");s=u||s}let a=s.querySelector("input"),l=s.dataset.key;a&&(a.checked=!a.checked,this.handleMultiSelectPlaceholder(o,r));let c=this.options.find(u=>u.payload.key===l);c&&this.updateOption(a.checked,c),n.stopPropagation()};this._options=o.map(s=>({isSelected:!1,...s}))}get options(){return this._options}set options(n){this._options=n}updateOptions(n){this._options=n,this.eventBus.publish(new ku({eventType:"optionsUpdated",filterType:this._filterType,payload:this}))}handleMultiSelectPlaceholder(n,o){let r=document.querySelector(`#course-${n}-list`),s=document.querySelector(`#course-${n}-placeholder`);if(r&&s){let a=[...r.querySelectorAll("input:checked ~ .checkbox-text")].map(l=>l.textContent).join(", ");s.textContent=a||o}}};var mv={durationInDays:[]};function t1e(e){return e1e(e,{label:Mhe,filterType:"duration",placeholder:pte})}var p$=class extends d${constructor(n,o=nG(mv.durationInDays)){super(n,o);this._filterType="duration";this.beforeActivate()}async beforeActivate(){if(!Qa){this._isHidden=!0;return}let n=mv.durationInDays.length?Promise.resolve(mv):BMe(Qa);return Promise.all([n]).then(([o])=>o&&o.durationInDays.length?(mv=o,this.updateOptions(nG(o.durationInDays)),Promise.resolve("Durations found")):Promise.reject("No durations found")).catch(o=>{mv={durationInDays:[]},this._isHidden=!0,this.updateOptions(nG(mv.durationInDays))})}};function nG(e){let t=n=>({payload:{key:`duration-${n}`,text:n===1?Use:ZA.replace("{days}",`${n}`),value:n}});return e.length?e.map(n=>t(n)):[t(0)]}function o1e(e){return ic(e,{label:gie,filterType:"event",placeholder:dte})}var m$=class extends Xi{constructor(n,o=[{payload:{key:"ilt",text:Xae,value:"ilt"}},{payload:{key:"vilt",text:Xhe,value:"vilt"}},{payload:{key:"hybrid",text:tl,value:"hybrid"}}]){super(n,o);this._filterType="event"}};ot();function r1e(e){return ic(e,{label:il,optionAdditionalClasses:"justify-content-space-between",optionTemplate:t=>{let[n,o]=t.payload.value.map(r=>Kbe(new Date(new Date().setHours(r,0,0))));return b.data.userDir==="ltr"?d`${t.payload.text} ${n} - ${o}`:d` ${n} - ${o} ${t.payload.text}`},filterType:"hours",placeholder:mte})}var g$=class extends Xi{constructor(n,o=[{payload:{key:"earlyMorning",text:ste,value:[0,6]}},{payload:{key:"morning",text:ite,value:[6,12]}},{payload:{key:"afternoon",text:nte,value:[12,18]}},{payload:{key:"night",text:ote,value:[18,24]}}]){super(n,o);this._filterType="hours"}};var Df={courseLanguageLocales:[]};function s1e(e){return ic(e,{label:DF,filterType:"language",placeholder:gte})}var f$=class extends Xi{constructor(n,o=oG(Df.courseLanguageLocales)){super(n,o);this._filterType="language";this.beforeActivate()}async beforeActivate(){if(!Qa){this._isHidden=!0;return}let n=Df.courseLanguageLocales.length?Promise.resolve(Df):HMe(Qa);return Promise.all([n]).then(([o])=>o?(Df=o,this.updateOptions(oG(Df.courseLanguageLocales)),Promise.resolve("Languages found")):Promise.reject("No languages found")).catch(o=>{Df.courseLanguageLocales=[],this._isHidden=!0,this.updateOptions(oG(Df.courseLanguageLocales))})}};function oG(e){let t=n=>({payload:{key:n,text:YMe.get(n),value:n}});return e.length?e.map(n=>t(n)):[t(void 0)]}function i1e(e){return ic(e,{label:Que,filterType:"radius",placeholder:age})}var h$=class extends Xi{constructor(n,o=QMe.map(r=>({payload:{key:r.toString(),text:r.toString(),value:r}}))){super(n,o);this._filterType="radius";this.setupGeolocationDisabledSubscriber()}};function a1e(e){return d` ${JMe(e.geolocationFilter)}
      ${o1e(e.eventTypeFilter)}
      ${WMe(e.autocompleteLocationFilter)}${XMe(e.geolocationFilter)}
      ${i1e(e.radiusFilter)}
      ${ZMe(e.distanceFilter)}
      ${KMe(e.dateFilter)}
      ${r1e(e.hourRangeFilter)}
      ${e.languageFilter.isHidden?d``:d`
      ${s1e(e.languageFilter)}
      `} ${e.durationFilter.isHidden?d``:d`
      ${t1e(e.durationFilter)}
      `}
      `}var zC=class{constructor(t,n=new Ve){this._paint=t;this._eventBus=n;this._isEventTypeVirtal=!1;this._isGeolocationChecked=!1;this.autocompleteLocationFilter=new a$(n),this.dateFilter=new l$(n),this.distanceFilter=new u$(n),this.eventTypeFilter=new m$(n),this.geolocationFilter=new c$(n),this.hourRangeFilter=new g$(n),this.languageFilter=new f$(n),this.radiusFilter=new h$(n),this.durationFilter=new p$(n),this.setupSubscribers()}isGeolocationDisabled(){return this._isEventTypeVirtal}isAutolocationDisabled(){return this._isEventTypeVirtal||this._isGeolocationChecked}handleOptionUpdated(t){switch(t.filterType){case"event":this.handleEventTypeUpdated(t.payload.option);break;case"geolocation":this.handleGeolocationUpdated(t.payload.option);break}}handleOptionsUpdate(t){t.filterType&&this.handleOptionsUpdated()}handleEventTypeUpdated(t){this.setIsEventTypeVirtual(t.payload.key),this._paint()}handleGeolocationUpdated(t){this.setIsGeolocationSelected(t.isSelected),this._paint()}handleOptionsUpdated(){this._paint()}notifyLocationFiltersDisabledToggled(){this._eventBus.publish(new Ya({payload:this.isAutolocationDisabled(),type:0})),this._eventBus.publish(new Ya({payload:this.isGeolocationDisabled(),type:1}))}setIsEventTypeVirtual(t){this._isEventTypeVirtal=t==="vilt",this.notifyLocationFiltersDisabledToggled()}setIsGeolocationSelected(t){this._isGeolocationChecked=t,this.notifyLocationFiltersDisabledToggled()}setupSubscribers(){this._eventBus.subscribe(ku,({message:t})=>{switch(t.eventType){case"optionUpdated":this.handleOptionUpdated(t);break;case"optionsUpdated":this.handleOptionsUpdate(t);break}})}};var b$=class{constructor(t,n,o){this.view=t;this.element=n;this.nestedViews=o}init(t){this.update(t)}update(t){let n=this.element,o=this.view(t,this.nestedViews);y(o,n)}};function l1e(e,t){return d`
      ${a1e(e.searchFilters)}
      ${uJe(e)} ${dJe()}
      ${t[0]}
      ${t[1]}

      ${q(bte.replace("{href}","https://microsoft.com/learning/partners.aspx"))}

      ${_te}

      `}function uJe(e){return d`
      `}function dJe(){return d`
      `}var GC=class{},VC=class{},rG=class{constructor(t){this.eventId=this.formatEventId(Qa);this.locale=b.data.userLocale;this.top=Z9;this.visitorId=jMe();this.skip=0;let n=t.autocompleteLocationFilter.option.payload?.location,o=t.dateFilter.option.payload,r=t.distanceFilter.option.payload.value,s=t.geolocationFilter.option.payload?.position?.coords,i=t.hourRangeFilter.option.payload.value,a=t.eventTypeFilter.option.payload.value,l=t.languageFilter.option.payload.value,c=t.radiusFilter.option.payload.value,u=t.durationFilter?.options.filter(ye=>ye.isSelected),p=a==="vilt",m=t.geolocationFilter.isSelected,g=!p&&(!!s||!!n),f=!!n&&!p,_=g,h=!!a,T=!!s&&m&&!p,x=!!i,w=!!l,I=g,E=!!u,Q=this.getFormattedDate(o,i),O=u&&this.getFormattedDurations(u);f&&(this.location=n),_&&(this.searchRadiusUnit=r),h&&(this.modality=a),T&&(this.userLocationLatitude=s.latitude,this.userLocationLongitude=s.longitude),x&&(this.dayStart=Q),w&&(this.courseLanguageLocale=l),I&&(this.searchRadius=c),this.doSpatialSearch=!0,this.startDate=Q,E&&(this.lengthInDays=O)}getFormattedDate(t,n){return this.setHours(t,n),this.formatDate(t)}formatDate(t){return t.toISOString().split(".")[0]}formatEventId(t=""){return t.replace(/^course\./,"").replace(/-test$/,"").toUpperCase()}setHours(t,n){t.setHours(n?n[0]:0,0,0,0)}getFormattedDurations(t){return t.map(o=>o.payload.value).join(",")}},_$=class extends Ve{constructor(){super();this.handleClearForm=()=>{document.querySelector("#course-filter").reset(),this.clearMenu(),this.publish(new VC),this._searchFilters=new zC(()=>this.notifyPropertyChanged()),this.notifyPropertyChanged()};this.handleSubmit=n=>{n.preventDefault(),this._searchCriteria=new rG(this._searchFilters),this.publish(new GC)};this._searchFilters=new zC(()=>this.notifyPropertyChanged())}get searchCriteria(){return this._searchCriteria}get searchFilters(){return this._searchFilters}clearMenu(){Object.keys(hi).forEach(n=>{let o=document.querySelector(`#course-${n}-placeholder`);o&&(o.textContent=o.dataset.placeholder)})}notifyPropertyChanged(){this.publish(new He)}};ot();var y$=class{constructor(){this.modalInstructorTraining={};this.modalHTMLDefault={}}createRequestModal(){let t=document.createElement("div");this.modalHTMLDefault=d`
      ${ete}
      `;let n=d``;y(n,t);let o=new ge(t);this.modalInstructorTraining=o}openModal(){this.createRequestModal(),this.modalInstructorTraining.show()}};async function v$(e){let t=e.querySelector("#browseAllSessionsContainer"),n=e.querySelector("#skillsGainedContainer");if(!t)return;t.setAttribute("lang",b.data.userLocale),t.setAttribute("dir",b.data.userDir),t.hidden=!1,n&&n.firstElementChild&&n.firstElementChild.classList.remove("padding-top-none");let o=new _$,r=new s$,s=t.querySelector("#browseAllSessionsContent");if(!s)return;let i=document.createElement("div"),a=document.createElement("div");a.hidden=!0;let l=new b$(l1e,s,[i,a]),c=new o$(OMe,i,[a]);l.init(o),c.init(r),o.subscribe(VC,()=>{r.clearResults()}),o.subscribe(GC,()=>{r.load(o.searchCriteria)}),o.subscribe(He,()=>{l.update(o)}),r.subscribe(He,()=>{c.update(r);let{count:u,error:p,page:m,pageSize:g}=r,f=!isNaN(u)&&u?u:0,_=Math.ceil(f/g),h={pageIndex:m-1,pageCount:_,busy:r.busy,setPage:T=>r.goToPage(T+1)};y(rc(h),a),a.hidden=p||!u||u{new y$().openModal()})}async function ac(e,t,n){let o=await hp(n);if(!o)return;let r=t&&t.hasOwnProperty("parents");if(Ot){let a=l=>"/"+l.split("/").slice(2).join("/");t&&(t=zr(t),t.url=a(t.url)),r&&(t.parents[0].url=a(t.parents[0].url))}let s;r&&t.parents.length===1&&(s={title:t.parents[0].title,url:`/${o.basePath}${t.parents[0].url}`});let i=k("page_kind");switch(i){case"product":o.add({title:Jn});break;case"path":o.add({title:Jn,url:`/${o.basePath}/training/`},{title:YE,url:`/${o.basePath}/training/browse/`});break;case"module":o.add({title:Jn,url:`/${o.basePath}/training/`},{title:YE,url:`/${o.basePath}/training/browse/`}),s&&o.add(s);break;case"unit":o.add({title:Jn,url:`/${o.basePath}/training/`},{title:YE,url:`/${o.basePath}/training/browse/`}),s&&o.add(s),o.add({title:t.title,url:`/${o.basePath}${t.url}`});break;case"examination":o.add({title:Jn,url:`/${o.basePath}/training/`},{title:oa,url:`/${o.basePath}/certifications/browse/`});break;case"course":o.add({title:Jn,url:`/${o.basePath}/training/`},{title:D2,url:`/${o.basePath}/training/browse/?resource_type=course`});break;case"certification":case"role":o.add({title:Jn,url:`/${o.basePath}/training/`},{title:D2,url:`/${o.basePath}/training/browse/`});break;case"certificationrenewal":o.add({title:Jn,url:`/${o.basePath}/training/`},{title:oa,url:`/${o.basePath}/certifications/browse/`},{title:t.title,url:`/${o.basePath}${t.url}`});break;case"certificationRenewalAssessment":case"certificationRenewalAssessmentReport":o.add({title:Jn,url:`/${o.basePath}/training/`},{title:oa,url:`/${o.basePath}/certifications/browse/`},{title:t.title,url:`/${o.basePath}${t.url}/`},{title:fk,url:`/${o.basePath}${t.url}/renew/`});break;case"tv":o.add({title:Jn,url:`/${o.basePath}/training/`},{title:e});break;default:throw new Error(`Unsupported page_kind "${i}".`)}o.render()}M();function x$(e,t=!0){if(e=!!e&&e.filter(r=>!!r),!e||e.length===0)return;let n=A.createElement("div");n.classList.add("related-exams","content","margin-bottom-xs"),y(d`${q(mJe(e,t))}`,n),A.querySelector(".learn-summary").insertAdjacentElement("afterend",n)}function mJe(e,t){let n=e.map(r=>`${r.title}`).join(", ");return`

      ${(t?nle:wce).replace("{exam}",n)}

      `}function T$(e,t){let n=e.querySelector("#request-code-achievement-container");if(v.isAuthenticated&&v.instructor&&S.systemDrivenAchievement){if(n){n.hidden=!1,n.parentElement&&(n.parentElement.hidden=!1);let o=new n$(t);n.addEventListener("click",()=>{o.openModal()})}}else n&&n.parentElement&&(n.hidden=!0,n.parentElement.hidden=!0)}function w$(e){for(let t of e)for(let n of t.units)if(n.interactive!==null&&n.interactive!==void 0&&n.interactive!=="lab-on-demand"){Gt(Gse,null,"is-hidden-tablet");return}}var sG;function S$(e){return sG===void 0&&(sG=ZD(e)),sG}async function c1e(e,t){if(!e||!t)return Promise.reject();let n={method:"POST",credentials:"include",headers:{"Content-Type":"applicationhttps://www.microsoft.com/json"},body:JSON.stringify({sourceId:e,sourceType:t})},o=N(`${D.nextSteps}/enrollment`,n);return R(o).then(ee).then(r=>r.ok?Promise.resolve():Promise.reject())}var gJe=[{id:"a9f0b84d-ffb0-4482-b020-9f49ca54d377",title:"Migrate an ASP.NET web application to Azure with Visual Studio",link:"/learn/paths/migrate-aspnet-web-application/",icon:"/learn/achievements/migrate-aspnet-web-application.svg",type:"Collection",productOrFamily:"azure",progress:5,xpPoints:4500,subTitle:"Externalize the configuration of an ASP.NET app by using an Azure key vault",subLink:"/learn/modules/aspnet-configurationbuilder/",source:"enrollment"},{id:"06bcfbd3-c31a-4e2c-9e4f-fdab0652bfd2",title:"CSC test challenge H2 FY2020 \u2013 Azure Fundamentals",link:"/users/cloudskillschallenge/collections/zkgzh0x77njp?branch=main",icon:"/learn/achievements/ai-edge-engineer.svg",type:"Challenge",productOrFamily:"",progress:0,xpPoints:14700,subTitle:"Introduction to Azure fundamentals",subLink:"/learn/modules/intro-to-azure-fundamentals/",source:"enrollment"},{id:"1222b15b-58ac-49c4-af36-0a0759a45bf3",title:"Create an enterprise-scale architecture in Azure",link:"/learn/paths/enterprise-scale-architecture/",icon:"/learn/achievements/generic-trophy.svg",type:"learningpath",productOrFamily:"azure",progress:26,xpPoints:3400,subTitle:"Introduction to enterprise-scale landing zones in the Microsoft Cloud Adoption Framework for Azure",subLink:"/learn/modules/enterprise-scale-introduction/",source:"enrollment"},{id:"321b4677-61ac-32b4-fa63-00a976ab542f",title:"Create an enterprise-scale architecture in Azure",link:"/learn/paths/enterprise-scale-architecture/",icon:"/learn/achievements/generic-trophy.svg",type:"module",productOrFamily:"azure",progress:53,xpPoints:1020,subTitle:null,subLink:null,source:"enrollment"}];async function C$(e){if(!v.isAuthenticated)return null;if(!e)return Promise.reject();if(L.accessLevel==="local")return Promise.resolve(gJe);let t={method:"GET",headers:{"Content-Type":"applicationhttps://www.microsoft.com/json"}},n=N(`${D.nextSteps}/homepage?${V({locale:e})}`,t);return R(n).then(ee).then(o=>o.ok?o.json():Promise.reject())}async function u1e(e,t){if(!e||!t)return Promise.reject();let n={method:"POST",credentials:"include",headers:{"Content-Type":"applicationhttps://www.microsoft.com/json"},body:JSON.stringify({id:e,source:t.toLowerCase()})},o=N(`${D.nextSteps}/dismiss`,n);return R(o).then(ee).then(r=>r.ok?Promise.resolve():Promise.reject())}async function d1e(e,t){if(!e||!t)return Promise.reject();let n={method:"GET",headers:{"Content-Type":"applicationhttps://www.microsoft.com/json"}},o=N(`${D.nextSteps}/recommendation/${t}?${V({locale:e,branch:St()})}`,n);return R(o).then(ee).then(r=>r.ok?r.json():Promise.reject()).then(r=>(S.appliedSkills||delete r.credentials,r))}var QC="learn-lp-context";function $f(e,t="learningpath"){let n=me();return n["ns-enrollment-type"]||(n["ns-enrollment-type"]=t),n["ns-enrollment-id"]||(n["ns-enrollment-id"]=e),n}async function gv(){let e=me(),t=e["ns-enrollment-type"],n=e["ns-enrollment-id"];return t&&n?(t==="learningpath"&&J.setItem(QC,n),await c1e(n,t),e["ns-enrollment-type"]=null,e["ns-enrollment-id"]=null,en(e,"replaceState"),!0):!1}var E$;function Nf(e){if(E$===void 0){let t=k("uid");v.isAuthenticated?E$=fJe(t,e):E$=W9(b.data.userLocale,t,e)}return E$}function p1e(e){return L.accessLevel!=="local"||e.units.map(t=>{t.url=t.url.replace(/\/$/,"")}),e}function iG(e,t){if(!t||!t.length)return e;let n=t.find(o=>o.uid===e.uid);n===void 0?(e.status="notStarted",e.remainingTime=e.durationInMinutes):e={...e,...n};for(let o=0;os.uid===e.units[o].uid);r===void 0?(e.units[o].status="notStarted",e.units[o].remainingTime=e.units[o].durationInMinutes):e.units[o]={...e.units[o],...r}}return e}function fJe(e,t){return Promise.all([W9(b.data.userLocale,e,t),fi([e],t)]).then(([n,o])=>iG(n,o))}var fv=class{constructor(t,n){this.userAnswer=t;this.userModuleAssessment=n}},$p=class{constructor(t){this.userAnswerResult=t}},Iu=class{constructor(t){this.userModuleAssessment=t}},A$=class{constructor(t){this.moduleAssessmentModel=t}};var hv=class{constructor(t,n){this.instance=t;this.answers=n}},Ff=class{constructor(t){this.updated=t.updated,this.passed=t.passed,this.details=t.details,this.answers=t.answers,this.achievements=t.achievements,this.moduleAssessment=t.moduleAssessment}};var aG="ModuleProgress",lG="ModuleAssessmentProgress",cG=class{getProgress(){return RMe()}getProgressByUid(t){return fi([t])}completeViewUnit(t,n){return Mf(t,b.data.contentLocale,null,n)}validateQuiz(t,n,o){return Mf(t,b.data.contentLocale,n,o)}validateTask(t,n){return Mf(t,b.data.contentLocale,n)}validateModuleAssessmentAnswer(t,n){return Mf(t,b.data.contentLocale,n)}},uG=class{constructor(t){this.localStorage=t;this.key=aG;this.moduelAssessmentKey=lG;this.moduleUidLoaded=Nf().then(n=>n)}localGetProgress(){return this.moduleUidLoaded.then(t=>{let n=this.getFromStorage();return n&&n.moduleUid===t.uid?hJe(n):[]})}localValidateQuiz(t,n){return Mf(t,b.data.contentLocale,n).then(o=>{let r=this.getFromStorage();return this.moduleUidLoaded.then(s=>{let i=s.uid,a={unitUid:t,type:"unit",detail:n,isModuleAssessmentAI:!1},l={unitUid:s.uid,type:"module"},c={moduleUid:i,progress:[a]},u=!1;o.passed&&(!r||r.moduleUid!==i||r.progress.length===0?(r=c,u=!0):(r.progress.map(_=>_.unitUid).indexOf(t)===-1&&(r.progress.push(a),u=!0),r.progress[r.progress.length-1].unitUid!==s.uid&&r.progress.length===s.units.length&&r.progress.push(l),r.progress.findIndex(_=>_.unitUid===t)>=0&&r.progress.forEach(_=>{_.unitUid.includes("knowledge-check")&&(_.isModuleAssessmentAI&&(_.detail=[],n.forEach(T=>{let x={id:T.id,answers:T.answers};_.detail.push(x)}),_.isModuleAssessmentAI=!1),_.detail?.forEach(T=>{let x=n.find(w=>w.id===T.id);x&&(T.answers=x.answers)}))})),this.localStorage.setItem(this.key,JSON.stringify(r)));let p=o.details,m=yJe(n,p,o.passed,u,o.moduleAssessment),g={moduleUid:s.uid,unitUid:t,passed:o.passed,knowledgeCheckData:m,isModuleAssessmentAI:!1};return Ec.setItem(this.moduelAssessmentKey,JSON.stringify(g)),m})})}localCompleteViewUnit(t){let n=this.getFromStorage();return this.moduleUidLoaded.then(o=>{let r=o.uid,s={unitUid:t,type:"unit"},i={unitUid:o.uid,type:"module"},a={moduleUid:r,progress:[s]},l=!1;return!n||n.moduleUid!==r||n.progress.length===0?(n=a,l=!0):(n.progress.map(c=>c.unitUid).indexOf(t)===-1&&(n.progress.push(s),l=!0),n.progress[n.progress.length-1].unitUid!==o.uid&&n.progress.length===o.units.length&&n.progress.push(i)),this.localStorage.setItem(this.key,JSON.stringify(n)),_Je(t,l)})}localValidateModuleAssessmentAnswer(t,n,o){return Mf(t,b.data.contentLocale,n).then(r=>{let s=this.getFromStorage();return this.moduleUidLoaded.then(i=>{let a={moduleUid:i.uid,unitUid:t,passed:r.passed,userModuleAssessment:o,userAnswer:n,userAnswerResult:r.details,isModuleAssessmentAI:!0},l=i.uid,c={unitUid:t,type:"unit",detail:n,isModuleAssessmentAI:!0},u={unitUid:i.uid,type:"module"},p={moduleUid:l,progress:[c]},m=!1;if(!s||s.moduleUid!==l||s.progress.length===0)s=p,m=!0;else{s.progress.map(_=>_.unitUid).indexOf(t)===-1&&(s.progress.push(c),m=!0),s.progress[s.progress.length-1].unitUid!==i.uid&&s.progress.length===i.units.length&&s.progress.push(u);let f=s.progress.findIndex(_=>_.unitUid===t);f>=0&&(s.progress[f].detail=n,s.progress[f].isModuleAssessmentAI=!0)}this.localStorage.setItem(this.key,JSON.stringify(s)),Ec.setItem(this.moduelAssessmentKey,JSON.stringify(a));let g=r.details;return{updated:m,passed:r.passed,achievements:r.achievements,details:g}})})}localGetModuleAssessmentProgress(){{let t=Ec.getItem(this.moduelAssessmentKey);if(t===null)return null;let n=null;return n=JSON.parse(t),n}}getFromStorage(){{let t=this.localStorage.getItem(this.key);if(t===null)return null;let n=null;try{n=JSON.parse(t)}catch{}return n}}},Pu=class{constructor(t,n,o,r,s,i,a,l,c,u,p,m,g){this.passed=t;this.updated=n;this.details=o;this.unit=r;this.module=s;this.paths=i;this.achievements=a;this.standardProgress=l;this.moduleComplete=c;this.unitComplete=u;this.unitsComplete=p;this.firstIncompleteUnit=m;this.totalPoints=g;this.standardProgress=l,this.updated=n}},bv=class{constructor(t,n){this.user=t;this.bus=n;this.remote=new cG,this.local=new uG(J)}async getProgress(){return await fe,this.user.isAuthenticated&&this.remote?this.remote.getProgress():this.local.localGetProgress()}async getProgressByUid(t){return await fe,this.user.isAuthenticated&&this.remote?this.remote.getProgressByUid(t):this.local.localGetProgress()}getLocalModuleAssessmentProgress(){return this.local.localGetModuleAssessmentProgress()}getCurrentUnitProgress(t){let n=bJe(t,!1);return this.processUnitProgress(t,n)}async completeViewUnit(t,n){await fe;let o=this.user.isAuthenticated&&this.remote?await this.remote.completeViewUnit(t,n):await this.local.localCompleteViewUnit(t);return n?.updateProgress("Processing unit progress"),await this.processUnitProgress(t,o,n),n?.updateProgress("Processed unit progress"),o}async validateQuiz(t,n,o){await fe;let r=this.user.isAuthenticated&&this.remote?await this.remote.validateQuiz(t,n,o):await this.local.localValidateQuiz(t,n);return this.bus.publish(new Ff(r)),o?.updateProgress("Processing unit progress"),await this.processUnitProgress(t,r,o),o?.updateProgress("Processed unit progress"),r}async validateTask(t,n){await fe;let o=await this.remote.validateTask(t,n);return A.getElementById("task-validation-message").classList.remove("is-hidden"),await this.processUnitProgress(t,o),o}async validateModuleAssessmentAnswer(t,n,o){let r={};await fe,r=this.user.isAuthenticated&&this.remote?await this.remote.validateModuleAssessmentAnswer(t,n):await this.local.localValidateModuleAssessmentAnswer(t,n,o);let s=r.details;return this.bus.publish(new $p(s)),await this.processUnitProgress(t,r),r}async processUnitProgress(t,n,o){let r=await Nf(o),s=r.parents.length?r.parents.map(E=>E.uid):[r.uid],i=v.isAuthenticated?await fi(s,o):await this.local.localGetProgress(),a=r.units.find(E=>E.uid===t),l=i.find(E=>E.type==="unit"&&E.uid===t)||_v([a])[0],c=i.find(E=>E.type==="module"&&E.uid===r.uid),u=v.isAuthenticated?_v(r.units):i,p=v.isAuthenticated?l&&l.status==="completed":u.filter(E=>E.uid===a.uid).length===1,m=u.filter(E=>E.type==="unit"&&E.status==="completed").length||0,g=TJe(r,u),f=m===r.units.length,_=v.isAuthenticated&&c?c.status==="completed":f,h=r.parents.map(E=>({item:E,progress:v.isAuthenticated?i.find(Q=>Q.type==="learningPath"&&Q.uid===E.uid):null})),T=n.updated,x=n.achievements||[],w=wJe(x),I=new Pu(n.passed,T,n.details||[],{item:a,progress:l},{item:r,progress:c},h,x,i,_,p,m,g,w);return this.bus.publish(I),I}};function Lu(e,t,n,o,r=!1){if(!e)return;let s=e.hasAttribute("id")&&e.getAttribute("id")==="learning-path-actions",i=o?`data-bi-name="${o}"`:"",a=s?"start-path":"start-unit";r||YC();let l=r?"is-outlined":"",c=k("page_type")==="learn"&&k("page_kind")==="module"||s,p=`${n}`;if(c)e.insertAdjacentHTML("afterbegin",p);else{let g=`

      ${p}

      `;e.insertAdjacentHTML("afterend",g)}let m=A.getElementById("start-unit-mobile");if(m){m.href=t;let g=m.children[0];g&&(g.textContent=n)}}function YC(e=!1,t=!1){let n=A.getElementById("start-unit");if(n&&n.parentElement.remove(),t){let o=A.getElementById("start-path");o&&o.remove()}if(e){let o=A.getElementById("start-unit-mobile");o&&o.parentElement.remove()}}function _v(e){return e.map(t=>({uid:t.uid,status:t.status,type:t.type,remainingTime:t.remainingTime}))}function hJe(e){return e.progress.map(t=>({uid:t.unitUid,status:"completed",type:t.type,remainingTime:0}))}function bJe(e,t){return{updated:t,passed:!1,achievements:[{uid:e,type:"unit",points:[]}],details:[]}}function _Je(e,t){return{updated:t,passed:!0,achievements:[{uid:e,type:"unit",points:[]}]}}function yJe(e,t,n,o,r){return{updated:o,passed:n,achievements:[],details:e,answers:t,moduleAssessment:r}}function yv(e,t,n=null){if(!S.gamification){e.forEach(s=>s.hidden=!0);return}let o=xJe(t),r=0;for(let s in o)s!==n&&(r+=o[s].points);e.forEach(s=>{let i=s.dataset.progressUid,a=s.querySelector(".xp-tag-xp");i in o&&(o[i].points&&(i===n?a.textContent=zx.replace("{totalXP}",r.toString()):a.textContent=zx.replace("{totalXP}",o[i].points.toString()),s.classList.remove("is-hidden")),o[i].status==="completed"&&s.classList.add("is-complete"))})}function vJe(e){let t={};return e.reduce((n,o)=>(o.status==="completed"&&(n[o.uid]=!0),n),t)}function xJe(e){let t={};return e.reduce((n,o)=>(n[o.uid]={points:o.points,status:o.status},n),t)}function vv(e){if(!S.gamification)return[];let t=Array.from(A.querySelectorAll("[data-progress-uid]")),n=vJe(e);return t.forEach(o=>{let r=o.dataset.progressUid;n[r]&&o.classList.add("is-complete")}),t}async function Ru(e){if(!S.gamification)return;await fe;let t=JSON.parse(J.getItem(aG));if(k("page_type")!=="learn"||!v.isAuthenticated||!t||!t.progress)return;let n=t.progress.reduce((o,r)=>(o[r.unitUid]=r.detail||{},o),{});await MMe(n,e),J.removeItem(aG)}async function lc(){await fe;let e=Ec.getItem(lG);k("page_type")!=="learn"||!v.isAuthenticated||!e||Ec.removeItem(lG)}function TJe(e,t){if(v.isAuthenticated)return e.units.filter(r=>r.status!=="completed")[0];let n,o=t.reduce((r,s)=>(r[s.uid]=!0,r),{});for(let r of e.units)if(!(r.uid in o)){n=r;break}return n}function wJe(e){return e.length?e.map(t=>t.points.map(n=>n.value).reduce((n,o)=>n+o,0)).reduce((t,n)=>t+n,0):0}M();ot();M();Mm();M();var m1e=d`

      ${Aue.replace("{productName}","Microsoft Educator Center")}

      ${Cle}

      ${q(Ele)}

      `;M();function SJe(e){return e?d`${Ome}`:d`${Nme}
      ${Vme}
      `}function g1e(e){Xf(document.body);let t=e?d``:d``,n=document.createElement("div"),o=d``,r=d``;return y(r,n),new ge(n)}function f1e(e,t=""){let n=document.getElementById("code-redemption-button");if(!n)return;let o=document.getElementById("redemption-code-input");o.addEventListener("input",()=>{o.value?n.disabled=!1:n.disabled=!0}),n.addEventListener("click",()=>{n.classList.add("is-loading"),o.style.removeProperty("border");let r=document.getElementById("errorText");r&&r.parentElement?.removeChild(r);let s=document.getElementById("redeem-waiting-text");s&&(s.hidden=!1),Eu.redeemCode(o.value).then(async a=>{let l=document.getElementById("error-text");l&&l.parentElement?.removeChild(l);let c=document.createElement("div");c.id="error-text";let u;if(a.errorCode){switch(a.errorCode){case"NotFound":u=d`

      ${Ime}

      `;break;case"AlreadyRedeemed":u=d`

      ${q(Eme)}

      `;break;case"ExceedsLimit":u=d`

      ${q(kme)}

      `;break;default:u=d`

      ${cU}

      `;break}o.classList.add("input-danger"),y(u,c),o.after(c),n.classList.remove("is-loading")}if(a.redemptionCode){o.classList.remove("input-danger"),n.classList.remove("is-loading");let p=document.createElement("div"),m=d``;y(m,p);let g=document.getElementById("redemption-modal-card");g&&g.replaceWith(p),e?.reload()}}).catch(()=>{let a=document.getElementById("error-text");a&&a.parentElement?.removeChild(a);let l=document.createElement("div");l.id="error-text";let c=o.value?cU:Zme,u=d`

      ${c}

      `;y(u,l),o.classList.add("input-danger"),o.after(l),n.classList.remove("is-loading")})})}async function y1e(e){let t=!1,n=document.querySelector("button.collection");n&&n.hidden&&(n.hidden=!1);let o=k("uid"),r=b.data.userLocale;o&&J.setItem(QC,o),await Ru(),await lc(),S.learningPathIlt&&(T$(e,6),S.learningPathIltSearch?v$(e):document.getElementById("browseAllSessionsContainer")?.remove());let[s]=await Promise.all([S$(o),Te]);EJe(e),ac(s.title);let i=Array.from(e.querySelectorAll(".xp-tag"));PJe(s.modules),yv(i,[s,...s.modules],s.uid);let a=Array.from(e.querySelectorAll(".module-summary")),l=IJe(e);l.forEach(h=>h(!1)),x$(s.exams),S.learningPathIlt&&RJe({container:e,learningPath:s}),v.isAuthenticated&&(t=await gv());for(let h of s.modules){let T=e.querySelector(`${k$(h)} .module-units`);kJe(T,o,h.units,t)}if(LJe(s.modules).then(()=>{jn(e)}),!v.isAuthenticated){e.querySelector("#time-remaining").textContent=dG(s.remainingTime,s.durationInMinutes);for(let h of s.modules){let T=e.querySelector(k$(h));h1e(T,0,h.units.length,h.remainingTime,h.durationInMinutes,h.title)}Lu(e.querySelector("#learning-path-actions"),`/${r}${s.modules[0].units[0].url}`,bn,"start"),Lu(a[0],`/${r}${s.modules[0].units[0].url}`,bn,"start"),l[0](!0),_1e(e)}w$(s.modules),await v.whenAuthenticated(),e.querySelector("#modules-remaining").textContent=I$("learningPath",b1e(s.modules),s.modules.length),e.querySelector("#time-remaining").textContent=dG(s.remainingTime,s.durationInMinutes);let c=s.modules.reduce((h,T)=>h.concat(_v(T.units)),[]),u=s.modules.filter(h=>h.status==="completed").length,p=$f(o),m=t?"":`?${V(p)}`,g=AJe(s.modules),f=e.querySelector("#learning-path-actions"),_=s?.modules.filter(h=>h.status==="inProgress");for(let h of s.modules){let T=e.querySelector(k$(h)),x=b1e(h.units);h1e(T,x,h.units.length,h.remainingTime,h.durationInMinutes,h.title);let w=T.querySelector("a > h3")?.parentNode;w&&(w.href+=`${m}`)}try{(await e$(s.uid)).passedOn&&DRe()}catch{}if(u===s.modules.length)YC(!0,!0),l.forEach(h=>h(!1));else{let h=u>0||_.length>0;if(f){let T=h?"continue":"start",x=h?rr:bn;Lu(f,`/${r}${g[0].url}${m}`,x,T,!1)}g.forEach(T=>{Lu(a[T.moduleIndex],`/${r}${T.url}${m}`,T.title,T.type,T.isOutlined),l[T.moduleIndex](!0)})}vv(c),_1e(e)}async function EJe(e){let t=e.querySelector("#at-a-glance-skill"),n=k("uid");if(!(!t||!n)){if(!S.trainingSkills){t.remove();return}try{let r=(await Qe.getListsItems([n]))[0];if(r.display_skills&&r.display_skills.length>0){let s=t.querySelector(".list-container");if(!s)throw new Error("List container not found in the template");let i=s.querySelector(".skill-text");if(!i)throw new Error("Skill text not found in the template");s.classList.remove("skeleton"),i.textContent=r.display_skills[0]}else t.remove()}catch{t.remove()}}}function AJe(e){let t=0,n="",o=0,r="",s=0;for(let i of e){if(n===""&&(!i.status||i.status==="notStarted")&&(n=i.units[0].url,o=t),r===""&&i.status==="inProgress"){for(let a of i.units)if(a.status!=="completed"){r=a.url,s=t;break}}t++}return n!==""&&o ${n.map(({uid:a,title:l,url:c,durationInMinutes:u})=>d`
    • `)} `;y(i,e)}function dG(e,t){return e===0||e===void 0?tn(t):`${tn(e)} ${kh}`}function I$(e,t,n){let o=e==="module"?Bhe:Ch,r=e==="module"?UA:fh;return!v.isAuthenticated||t===n?n===1?e==="module"?jce:Yce:`${n} ${o}`:r.replace("{completedCount}",String(t)).replace("{totalCount}",String(n))}function h1e(e,t,n,o,r,s){let i=e.querySelector(".module-units-remaining"),a=e.querySelector(".module-type"),l=e.querySelector(".module-overview"),c=e.querySelector(".module-time-remaining"),u=e.querySelector("button.unit-expander");i.textContent=I$("module",t,n),a.textContent=wo,c.textContent=dG(o,r),l.textContent=cue;let p=uue.replace("{title}",s);u.setAttribute("aria-label",p)}function b1e(e){return e.filter(t=>t.status==="completed").length}function IJe(e){return Array.from(e.querySelectorAll("button.unit-expander")).map(n=>FMe(n))}function PJe(e){let t=0;e.forEach(n=>{t=0,n.units.forEach(o=>{t+=o.points}),n.points=t})}function k$(e){return`[id="${e.uid}"]`}async function LJe(e){e.forEach(t=>{document.querySelectorAll(`${k$(t)} button[data-list-type]`).forEach(o=>{o.setAttribute("data-list-item-url",t.url)})})}function _1e(e){Array.from(e.querySelectorAll('button[data-list-type="collection"]')).forEach(t=>{let n=t.querySelector(".collection-status, .add-to-collection-status, .is-visually-hidden");n?n.classList.contains("is-visually-hidden")&&(n.classList.add("add-to-collection-status"),n.classList.remove("is-visually-hidden")):(n=document.createElement("span"),n.classList.add("add-to-collection-status"),t.appendChild(n)),n.textContent=nt})}function RJe(e){let t=e.container.querySelector("#learning-path-further-engagement")??(()=>{let s=document.createElement("div");return document.querySelector("#learning-path-actions")?.insertAdjacentElement("afterend",s),s})();if(!t)return;let n=e.learningPath.appliedskills?.find(s=>!s.retirementDate),o=v.isAuthenticated;(n||o)&&(y(d`
      ${MJe(n)} ${o?DJe():""}
      `,t),t.hidden=!1)}function MJe(e){return e?d` `:""}function DJe(){return d`

      ${Ek}

      ${pU}

      `}function v1e(e,t){return!e||!t?0:e.filter(n=>t.find(o=>o.uid===n&&o.status==="completed")).length}M();function x1e(e,t){return t=t??40,e.length<=t?e:`${e.slice(0,t)}...`}function T1e(e){let n=x1e(e.text,34);return d`
      ${e.iconClasses?d``:""} ${n}
      ${e.popoverTemplate}
      `}M();var jC=class{constructor(t){this.target=t}},S1e="skill";function $Je(e={}){let t=e.children??"";return d`
      ${t}
      `}function w1e(e){let t=document.getElementById("skill-badge-list-container");if(!t)return;let n=document.getElementById("skill-badge-list");if(!n)return;let o=[];if(e.target.querySelectorAll("[data-badge]")?.forEach(i=>{if(i.getAttribute("data-badge-type")!==S1e)return;let a=i.closest("[data-list-card]")?.id;if(!a)return;let l=i.getAttribute("data-badge-text");if(!l)return;let c=d`
    • ${P$({href:`#${a}`,text:l})}
    • `;o.push(c)}),!o.length){t.remove();return}let r=d`
        ${o}
      `,s=A9(r);n.replaceWith(s)}function xv(e){let t={classes:["badge-clear","badge-sm","background-color-secondary-light","font-weight-normal"],iconClasses:["docon","docon-ribbon2","gradient-text-vivid"],popoverTemplate:d`

      ${bde}

      ${e}

      `,text:e,type:S1e};return T1e(t)}function P$(e){return d` ${e.text} `}function pG(e={}){if(!S.trainingSkills)return"";let t=3,n=e.badges??new Array(t).fill({href:"#",text:Xt,additionalClasses:"is-loading"});if(!n?.length)return"";let o=e.wrapper??(r=>d`${r.children}`);return $Je({children:o({children:d`

      ${Sge}

        ${n.map(r=>d`
      • ${P$({href:r.href,text:r.text,additionalClasses:r.additionalClasses})}
      • `)}
      `})})}function cc(e={}){if(ct.subscribe(jC,w1e),!S.trainingSkills){ct.unsubscribe(jC,w1e);return}let t=document.getElementById("skill-badge-list-container");t&&t.replaceWith(A9(pG({wrapper:e.wrapper})))}function L$(e){e&&ct.publish(new jC(e))}async function R$(){return await fi(es("learn_item"))}async function M$(e){let{container:t,learnInfo:n,userProgress:o,pageTemplate:r}=e;switch(r){case"LearnHome":return NJe({container:t,info:n,userProgress:o});case"Course":case"Certification":case"Examination":return C1e(t,n,o,"listCard");case"AppliedSkills":case"CertificationWithExam":return C1e(t,n,o,"listCardWithChildren");default:throw new Error(`Learn cards not supported for "${r}" page template`)}}function Uf(e){let t=e.dataset.learnUid;switch(e.tagName){case"A":let n=document.createElement("article");n.classList.add("card","is-horizontal","border-color-accent","border-left-lg","has-loading-skeleton"),n.dataset.learnUid=t;let o=e.parentElement.parentElement;return o&&(o.classList.remove("border"),o.classList.add("grid","is-horizontal")),e.insertAdjacentElement("beforebegin",n),e.remove(),n;case"ARTICLE":return e;case"LI":let r=document.createElement("article");return Array.from(e.children).forEach(s=>s.remove()),r.classList.add("card","border-color-accent","border-left-lg","has-loading-skeleton"),r.dataset.learnUid=t,e.insertAdjacentElement("afterbegin",r),r;default:throw new Error("unsupported card element type")}}function NJe(e){let{container:t,info:n,userProgress:o}=e;n.forEach(r=>{let s=t.querySelector(`[data-learn-uid="${r.uid}"]`);if(!s)return;s=Uf(s),s.classList.remove("has-loading-skeleton"),s.removeAttribute("aria-label");let i=HJe({itemSummary:r,userProgress:o});y(i,s)})}async function C1e(e,t,n,o){let r=!1,s=await n;t.forEach(async i=>{let a=e.querySelector(`[data-learn-uid="${i.uid}"]`);if(!a)return;let l=mG(i.uid,s);a=Uf(a),a.id||(a.id=`list-card-${_t()}`),a.setAttribute("data-list-card",""),a.classList.remove("has-loading-skeleton"),o==="listCardWithChildren"&&a.classList.add("card-horizontal"),a.removeAttribute("aria-label"),a.dataset.learnStatus=l&&l.status||"";let c=FJe(r,l);c&&(r=!0);let u=await BJe(i,n,"",!0,c,o);y(u,a),a.setAttribute("aria-labelledby",`${i.uid}_title ${i.uid}_metadata ${i.uid}_tags`),UJe(a,i,n)}),n.then(i=>{i.forEach(a=>{let l=e.querySelector(`[data-learn-uid="${a.uid}"]`);l&&(l.dataset.learnStatus=l.dataset.learnStatus||a.status)})})}function FJe(e,t){return e||!["Certification","Examination","Course","AppliedSkill","AppliedSkills"].includes(b.data.pageTemplate)?!1:!v.isAuthenticated||!t||t.status!=="completed"}function UJe(e,t,n){let o=e.querySelector(".progress-label");o&&y(d` ${zn(n.then(r=>{let s=mG(t.uid,r);return o.classList.add(s.status==="inProgress"?"is-in-progress":"is-complete"),o.classList.remove("is-hidden"),d` ${s.status==="inProgress"?d`${vh}`:d`${Kn}`} `}).catch(()=>""))}`,o)}function mG(e,t){return t.find(n=>n?n.uid===e:void 0)}function OJe(e){let t=p=>d`
    • ${p}
    • `,{display_levels:n,display_roles:o,display_products:r}=e,s=r.length?r[0]:void 0,i=o.length?o[0]:void 0,a=n.length?n[0]:void 0,l=a?t(a):"",c=i?t(i):"",u=s?t(s):"";return d` ${l} ${c} ${u} `}var vo=e=>{let{title:t,url:n,titleId:o,resourceType:r,label:s=dZ,labelClass:i="is-visually-hidden",buttonExtraClasses:a="button-primary"}=e;return d` `};function qJe(e){return e.hasStartButton?zn(e.userProgress.then(t=>{let n={start:{notStarted:bn,completed:bn,inProgress:rr},startCourse:{notStarted:vU,completed:vU,inProgress:Wee},startLearningPath:{notStarted:xU,completed:xU,inProgress:Kee}},o=mG(e.itemSummary.uid,t);return d`

      ${n[e.buttonType][o?.status??"notStarted"]}

      `}).catch(()=>"")):""}var E1e=(e,t)=>{if(!t||t.status==="notStarted")return"";if(t.status==="inProgress"){let n=`${Math.floor((e.durationInMinutes-t.remainingTime)/e.durationInMinutes*100)}%`;return d`${n}`}return d` ${Kn} `};function HJe(e){let{itemSummary:t,userProgress:n}=e,{uid:o,iconUrl:r,title:s,type:i}=t,{url:a}=t;a=qe(a,Be.userLocale);let l=i==="learningPath"?"learning path":i,c=`pathormodule-${qn(o)}-title`,u=d` ${zn(n.then(p=>{let m=p.find(g=>g.uid===t.uid);return d` `}).catch(()=>""))}`;return d`

      ${t.type==="learningPath"?al:wo}

      ${s}
      `}async function BJe(e,t,n="",o=!0,r=!1,s="listCard"){let i="study-guide-list-"+_t(),a=7,l=e.type==="learningPath"?"learning path":e.type,c=(m,g)=>S.trainingSkills&&g&&g.length&&["learningPath","path"].includes(m)?d`
      ${xv(g[0])}
      `:"",u={completedChildrenCount:zn(t.then(m=>d`
    • ${I$(e.type,v1e(e.childUIds,m),e.childCount)}
    • `).catch(()=>"")),durationInMinutes:e.durationInMinutes?d`
    • ${tn(e.durationInMinutes)}
    • `:"",moduleCount:e.childCount&&e.childCount>0?d`
    • ${(e.childCount===1?zF:GF).replace("{count}",e.childCount.toString())}
    • `:"",modulesInPathHeader:d`

      ${e.type==="course"?Rhe:Cce}

      `,modules:e.modules?.length?d`
        ${e.modules?.map((m,g)=>d`
      • ${m.title} ${c(m.type,m.skills)}
      • `)}
      ${e.modules?.length>a?py(i,void 0,void 0,void 0,vm,!0,!1,"study-guide-list-show-more-button"):""} `:"",progress:zn(t.then(m=>{let g=m.find(f=>f.uid===e.uid);return d` `}).catch(()=>"")),saveButton:m=>d` `,remainingTime:typeof e.remainingTime=="number"&&e.remainingTime>0?q(`
    • ${tn(e.remainingTime)} ${kh}
    • `):"",startButton:m=>qJe({itemSummary:e,hasStartButton:r,userProgress:t,buttonType:m.buttonType}),superTitle:d`

      ${e.type==="course"?ra:e.type==="learningPath"?al:wo}

      `,taxonomyTags:o?zJe(e):"",title:d`${e.title}`};return{listCard:d`
      ${u.superTitle} ${u.title}
      ${u.taxonomyTags} ${c(e.type,e.display_skills)}
      ${u.startButton({buttonType:"start"})}
      `,listCardWithChildren:d`
      ${u.superTitle} ${u.title} ${c(e.type,e.display_skills)} ${u.startButton({buttonType:e.type==="course"?"startCourse":"startLearningPath"})} ${u.modulesInPathHeader} ${u.modules}
      `}[s]}function zJe(e){let t=e.display_levels?.[0],n=e.levels[0]in Ps.levels&&Ps.levels[e.levels[0]],o=t||n,r=o?d`
    • ${o}
    • `:"",s=e.display_roles?.[0],i=s?d`
    • ${s}
    • `:"",a=e.display_products?.[0],l=a?d`
    • ${a}
    • `:"";return d``}M();ot();function gG(e,t=!1){let{pageKind:n,moduleCount:o,durationInMinutes:r}=e;if(n!=="module"&&n!=="path")return"";let s=o?d`
    • ${o} ${o===1?wo.toLowerCase():Ch.toLowerCase()}
    • `:"",i=r?t?d`
    • ${tn(r)}
    • `:d`
    • ${tn(r)}
    • `:"";return d` ${s} ${i} `}function fG(e){let{pageKind:t,start:n,end:o,moduleCount:r}=e;if(t!=="challenge"||(!n||!o)&&r===void 0)return"";let s=n&&o?d`
    • ${tW.replace("{start}",gn.format(new Date(n))).replace("{end}",gn.format(new Date(o)))}
    • `:"",i=r?d`
    • ${r} ${r===1?wo.toLowerCase():Ch.toLowerCase()}
    • `:"";return d`${s}${i}`}function hG(e){let{url:t,submitterUsername:n,answerCount:o,commentCount:r,votes:s}=e;if(!t||!t.startsWith("/answers/questions")||!n&&o===void 0&&r===void 0&&s===void 0)return"";let i=n?d`
    • ${n} ${Pue}
    • `:"",a=s!==void 0?d`
    • ${s} ${Mue}
    • `:"",l=o!==void 0?d`
    • ${o} ${Lue}
    • `:"",c=r!==void 0?d`
    • ${r} ${Rue}
    • `:"";return d`${i}${a}${l}${c}`}function bG(e){let{pageKind:t,hoursToComplete:n}=e;return t!=="course"?"":n?d`
    • ${GJe(n)}
    • `:""}function _G(e){let{pageKind:t,start:n,end:o}=e;if(t!=="lifecycle"||!n&&!o)return"";let r=n?d`
    • ${Ege.replace("{startDate}",new Date(n).toLocaleDateString())}
    • `:"",s=o?d`
    • ${pie.replace("{endDate}",new Date(o).toLocaleDateString())}
    • `:"";return d`${r}${s}`}function yG(e){let{pageKind:t,lastEpisode:n,episodeCount:o,pageType:r}=e;if(r!=="show"&&t!=="series"||!n&&!o)return"";let s=n?d`
    • ${sle.replace("{date}",new Date(n).toLocaleDateString())}
    • `:"",i=o?d`
    • ${ole.replace("{count}",o.toString())}
    • `:"";return d`${s}${i}`}function vG(e){let{showName:t,uploadDate:n,pageType:o,durationInMillisecond:r}=e;if(o!=="episode"||!t&&!n&&!r)return"";let s=r?zCe(r):null,i=t?d`
    • ${t}
    • `:"",a=n?d`
    • ${ile.replace("{date}",new Date(n).toLocaleDateString())}
    • `:"",l=s?d`
    • ${tn(s)}
    • `:"";return d`${i}${a}${l}`}function GJe(e){let t=Math.floor(e/168),n=Math.floor(e%168/24),o=e-t*168-n*24,r=t>0?`${t.toString()} ${t===1?Nk:Fk}`:null,s=n>0?`${n.toString()} ${n===1?XA:_h}`:null,i=o>0?`${o.toString()} ${o===1?o0:il}`:null;return[r,s,i].filter(a=>a!==null).join(", ")}ot();function D$(){let e=Ss(new Date(Date.now()));return d`

      ${Ih}

      `}M();M();var VJe=(e,t)=>e?(t.indexOf("?")!==-1?"&":"?")+`sharingId=${e}`:"",A1e=(e,t,n)=>encodeURIComponent((n?n+` `+e.toString():e.href)+VJe(t,e.href));function xG(e,t,n,o=!0,r=!1){let s=A1e(t,n);return d` `}function WC(e,t,n,o,r,s){return d`
      ${e?d``:d`
      ${xG(n||"",t,o)}
      `}
      `}function $$(e,t=!0,n=!1){let{displayName:o,userName:r,avatarUrl:s,avatarThumbnailUrl:i,userId:a}=e,l=fn(r,"activity"),c=n?d` ${q(gbe)} `:"";return t?d`
      ${SF} ${o} ${c}
      `:d`${AZ}`}function k1e(e,t,n){let o=e??t??n;if(!o)return d``;let r=((e??t)?.collectionOwner??n?.challengeCreator).displayName;return d`
      ${N$(r,o.collection.showUserDisplayName)}
      `}function N$(e,t){return t?d` ${String(_F).replace("{name}",e)} `:d` ${XZ} ${a6(!1)} `}function I1e(e,t,n){let o=e??t??n;return o?!(e??t)?.isPublicView&&!e?.isChallengeCollection?d`
      await o.toggleShowUserDisplayName()} .checked=${o.collection.showUserDisplayName} />
      `:d``:d``}function KC(e,t="",n=""){return d` ${`${Zo(Math.floor(e*100))}%`} ${Kn} `}function P1e(e,t){let{challengeId:n,learnChallengeId:o,name:r,isPrivate:s}=t.collection;return d` ${t?.isChallengeCollection?d` ${XW} `:""} ${WC(s,e,r,v.sharingId)}`}function L1e(e){return!e||!e?.collection?d``:d`
      e.updatePrivacy()} />
      ${CZ}
      `}function R1e(e,t,n,o){if(!t&&!n&&!o)return d``;let r=mt(n)?mt(o)?d``:d` `:d` `,s=d`

      ${mt(n)?see:hme}

      `;return mt(t)?r:s}function QJe(){return d``}function F$(e){return e.sectionsCount&&e.sectionsCount>1?d`
      e.isBusy?t.preventDefault():void 0} @keydown=${t=>e.isBusy&&(t.key==="Enter"||t.key===" ")?t.preventDefault():void 0} >

      ${ome}

      `:d``}function M1e(e,t,n,o=0,r=-1,s="h3",i=!1){let{userLocale:a}=b.data,{pageKind:l,pageType:c,rating:u,title:p,url:m,uid:g}=t.data;m=m,p=p;let f=e instanceof Rr,_=f?wMe(t,e.nextPlanItem?.id===t.id&&e.isNextPlanItemHighlighted):void 0,h=u?d``:"",T=S.trainingSkills&&t.data.pageKind==="path"&&t.data.display_skills?.length?d`
      ${xv(t.data.display_skills[0])}
      `:"",x=qt=>{let Qt=$f(qt.id,"Collection");return l==="challenge"&&t.data.challengeId&&(Qt.id=t.data.challengeId),`${V(Qt)}`},w=uv(l,c,m),I=t.type==="url"?`${SMe(m)}`:w,E=l==="challenge"&&t.data.challengeId?m.split("?")[0]:m,Q=t.data.url&&t.data.url.includes("/answers/"),O=t.type==="url"?m:`/${Q?t.data.rawUrl.split("/")[3]:a}${E}?${x(e.collection)}`,ye=async()=>{e.editingId=t.id},Ae=i?d` ${p} `:d` ${ZJe(s,p)} `;f&&(Ae=e.hasStarted()?d` ${p}`:d` `);let de=t.type==="url"?d`
      ${Ae}
      `:d` ${Ae} `,xt=qt=>YJe(e,n,t,r,qt);return e.editingId===t.id?JD(e,r,t):i?d`
    • ${I}

      ${de} ${t.data.iconUrl?d``:""}
      ${h} ${T}
      ${xt(!0)}
    • `:d`
    • ${I}

      ${de}
      ${h} ${T}
      ${xt(!1)}
    • `}function YJe(e,t,n,o=-1,r=!1){let{challengeId:s,userId:i}=e.collection;return d`${e.isPublicView||e.isOfficialOrOverride&&i!==v.userId||s?WJe(e.isUserAuthenticated,n,r,e):jJe(e,t,n,o,r)}`}function jJe(e,t,n,o=-1,r=!1){n.data.uid=n.data.uid;let s=o>=0?!(o===0&&t===0):t!==0,i=o>-1?!(o>=e.collection.sections?.length-1&&t>=e.collection.sections[o]?.items.length-1):t ${l} `:d``}function WJe(e,t,n=!1,o){let r=n?d``:void 0,s=D1e(o,t,e);return r||s?d` `:""}function KJe(e,t){if(!e||!t)return d``;let n=t.data.progress??0,o=!(t?.data?.pageKind==="path"||t?.data?.pageKind==="module"),{completionStatusTag:r,completionStatusTagStyle:s}=GD(n,"item");if(n===0){if(o){let i=JJe(e,t);return d` `}return d``}return n===1?d` ${r} `:n>0&&n<1?d` ${vh} `:d``}function D1e(e,t,n){if(!n)return d``;let o=(()=>{let r=t.data.progress,s=e instanceof Rr,i=s&&e?.hasStarted?.(),a=!s&&typeof r=="number";if(i)return KJe(e,t);if(a)return KC(r)})();return o?d` `:""}function JJe(e,t){let n=document.createElement("div"),o=XJe(e,t);return y(o,n),new ge(n)}function XJe(e,t){return d` `}function ZJe(e="h3",t){let n={h3:d`

      ${t}

      `,h4:d`

      ${t}

      `,h6:d`
      ${t}
      `};return n[e]||n.h3}var O$={plans:[{title:Ade,description:kde,imageUrlLight:"/en-us/media/learn/plans/start_plan.png",imageUrlDark:"/en-us/media/learn/plans/start_plan_dark.png"},{title:Ide,description:Pde,imageUrlLight:"/en-us/media/learn/plans/milestones.png",imageUrlDark:"/en-us/media/learn/plans/milestones_dark.png"},{title:Lde,description:Rde,imageUrlLight:"/en-us/media/learn/plans/achieve_learning.png",imageUrlDark:"/en-us/media/learn/plans/achieve_learning_dark.png"}],challenges:[{title:sJ,description:iJ,imageUrlLight:"/en-us/media/learn/plans/start_plan.png",imageUrlDark:"/en-us/media/learn/plans/start_plan_dark.png"},{title:aJ,description:lJ,imageUrlLight:"/en-us/media/learn/plans/milestones.png",imageUrlDark:"/en-us/media/learn/plans/milestones_dark.png"},{title:cJ,description:uJ,imageUrlLight:"/en-us/media/learn/plans/achieve_learning.png",imageUrlDark:"/en-us/media/learn/plans/achieve_learning_dark.png"}]};function TG(e,t="collection"){let n=(t==="plan"?Jde:lee).replace("{url}",e),o=wZ,r=aee,s=FZ;return t==="plan"&&(o=Xde,r=Zde,s=epe),d`

      ${o}

      ${r} ${s}

      ${q(n)}
      `}function $1e(){return d`

      ${EA}

      ${mZ}


      1. ${gZ}
      2. ${fZ}
      3. ${q(hZ)}

      ${bZ}

      `}function Tv(e,t,n,o,r=!0){return d`

      ${t}

      ${n}


      ${o}
      `}function wG(e,t){let n=(()=>{let r=e.collection.sections;if(Array.isArray(r)&&r.length>0)return d`
      ${r.map((i,a,l)=>d`
      ${eXe(e,i,a,l,t)} ${U$(e,i.items,void 0,a)}
      `)}
      `;let s=e.collection.items;return Array.isArray(s)&&s.length>0?U$(e,s,void 0,-1):AC(UZ,{htmlMessage:{replaceTarget:"{link}",replaceWith:`${Gl?"/test":""}/training/browse/`}})})(),o=d`${rXe(e)} ${oXe(e)} ${sXe(e)}`;return d`${n}${o}`}function eXe(e,t,n,o,r){return d`

      ${r} ${n+1}

      ${e.isPublicView?"":d` `}
      ${e.isPublicView?"":d`
      ${n>0?d` `:""} ${o.length>1&&n `:""} ${!(e instanceof Rr)||o.length>1?d` `:""}
      `}
      ${e instanceof Rr?d`Progress:${nXe(t)}`:""}
      ${(()=>{let s=e.editingSectionId===t.id,i=!mt(t.name),a=!mt(t.description),l=!mt(t.daysToComplete),c=i||a||l;return d`
      ${s?G9(e,t):c?d` ${i?d`

      ${t.name}

      `:""} ${a?d`

      ${t.description}

      `:""} ${l?tXe(t.daysToComplete):""} `:""}
      `})()}
      `}function U$(e,t,n=0,o=-1,r="h4",s=!1){return!t||t.length===0?qRe(e.isPublicView):d`
        ${t.map((i,a)=>M1e(e,i,a,n,o,r,s))}
      `}function tXe(e){return mt(e)?"":d`

      ${Xpe} ${e}

      `}function nXe(e){let t=xMe(e),{completionStatusTag:n,completionStatusTagStyle:o,progressBarLabelStyle:r,progressBarStyle:s}=GD(t,"milestone");return t===1?d` ${n} `:d`
      ${Zo(Math.floor(t*100))}%
      `}function oXe(e){return e.editingSectionId===Lf?G9(e):""}function rXe(e){return d`${e.editingId===U9?d`
      ${JD(e)}
      `:""}`}function sXe(e,t="margin-top-xl"){if(e.isPublicView)return"";let n={handleEvent(r){r.preventDefault(),e.editingId=U9}},o={handleEvent(r){r.preventDefault(),e.editingSectionId=Lf}};return d` ${d`
      ${e.isOfficialOrOverride&&!(e instanceof Rr)?d``:""} ${(e.collection?.items?.length??0)>0||(e.collection?.sections?.length??0)>0?d``:""}
      `} `}M();function JC(...e){let[t,n,o=!0]=e,r=d` ${q(jJ)}
      • ${q(t)}
      • ${q(n)}
      `;return Tv("ms--challenges-violation-banner",YJ,r,KJ,o)}M();var N1e=new Array(100).fill(0).map((e,t)=>({id:`team${t+1}`,name:`Team ${t+1}`,imageUrl:"",hasMembers:!!(t%3)})),F1e=({teamAssignmentMethod:e=29,teamList:t=N1e,type:n="teams"}={teamAssignmentMethod:29,teamList:N1e,type:"teams"})=>n==="teams"?{type:n,teamAssignmentMethod:e,teamList:t}:{type:"solo"},U1e=({title:e="Walmart, Azure Fundamentals Team",description:t="Learn all about Azure cloud services while you compete with your team. Every module you complete earns your team entries for a chance to win prizes and sweepstakes that include (......). Complete additional learning to get more sweepstakes entries, which will be awarded as you go.",start:n="2021-06-09T07:00:00Z",end:o="2021-09-30T07:00:00Z",type:r="xp",eventRulesUrl:s="sample/link",isEnrolled:i=!1,enrollment:a=F1e({type:"teams",teamAssignmentMethod:2}),challengeCollectionId:l=[""],hasTeamIndividualRank:c=!0,maxTeamMembers:u=12,allowPreRegistration:p=!0}={title:"Walmart, Azure Fundamentals Team",description:"Learn all about Azure cloud services while you compete with your team. Every module you complete earns your team entries for a chance to win prizes and sweepstakes that include (......). Complete additional learning to get more sweepstakes entries, which will be awarded as you go.",start:"2021-06-09T07:00:00Z",end:"2021-09-30T07:00:00Z",type:"xp",eventRulesUrl:"sample/link",isEnrolled:!1,enrollment:F1e({type:"teams",teamAssignmentMethod:2}),challengeCollectionId:[""],hasTeamIndividualRank:!0,maxTeamMembers:12,allowPreRegistration:!0})=>r==="xp"?{title:e,description:t,start:n,end:o,type:r,eventRulesUrl:s,isEnrolled:i,enrollment:a,hasTeamIndividualRank:c,maxTeamMembers:u,allowPreRegistration:p}:{title:e,description:t,start:n,end:o,type:r,eventRulesUrl:s,isEnrolled:i,enrollment:a,challengeCollectionId:l,hasTeamIndividualRank:c,maxTeamMembers:u,allowPreRegistration:p},iXe=e=>{let t={count:534,challenge:U1e(),totalScoreUnits:100,myScore:{teamId:"team20",rank:12,userDisplayName:"user11",score:7},myTeamScore:{rank:20,score:700,teamId:"team20",userDisplayName:"Tigers1"},lastBatchUpdate:"",nextLink:"https://nextlink",results:new Array(e.$top||10).fill(0).map((u,p)=>{let m=p+1+(e.$skip||0);return{rank:p+1+(e.$skip||0),score:900-m*10,teamId:`team${m}`,userDisplayName:`Tigers${m}`}})},{count:n,challenge:o,totalScoreUnits:r,myScore:s,myTeamScore:i,lastBatchUpdate:a,nextLink:l,results:c}=t;return{count:n,challenge:o,totalScoreUnits:r,myScore:s,myTeamScore:i,lastBatchUpdate:a,nextLink:l,results:c}},aXe=({results:e=[{rank:1,score:1,userDisplayName:"user1"},{rank:2,score:2,userDisplayName:"user2"},{rank:3,score:3,userDisplayName:"user3"},{rank:4,score:4,userDisplayName:"user4"},{rank:5,score:5,userDisplayName:"user5"},{rank:6,score:6,userDisplayName:"user6"},{rank:7,score:7,userDisplayName:"user7"},{rank:8,score:8,userDisplayName:"user8"},{rank:9,score:9,userDisplayName:"user9"},{rank:10,score:10,userDisplayName:"user10"}],totalMembers:t=12,myScore:n={teamId:"team8",rank:12,userDisplayName:"user11",score:7}}={results:[{rank:1,score:1,userDisplayName:"user1"},{rank:2,score:2,userDisplayName:"user2"},{rank:3,score:3,userDisplayName:"user3"},{rank:4,score:4,userDisplayName:"user4"},{rank:5,score:5,userDisplayName:"user5"},{rank:6,score:6,userDisplayName:"user6"},{rank:7,score:7,userDisplayName:"user7"},{rank:8,score:8,userDisplayName:"user8"},{rank:9,score:9,userDisplayName:"user9"},{rank:10,score:10,userDisplayName:"user10"}],totalMembers:12,myScore:{teamId:"team8",rank:12,userDisplayName:"user11",score:7}})=>({results:e,totalMembers:t,myScore:n}),lXe=({results:e=[{rank:1,score:1,userDisplayName:"user1"},{rank:2,score:2,userDisplayName:"user2"},{rank:3,score:3,userDisplayName:"user3"},{rank:4,score:4,userDisplayName:"user4"},{rank:5,score:5,userDisplayName:"user5"},{rank:6,score:6,userDisplayName:"user6"},{rank:7,score:7,userDisplayName:"user7"},{rank:8,score:8,userDisplayName:"user8"},{rank:9,score:9,userDisplayName:"user9"},{rank:10,score:10,userDisplayName:"user10"},{rank:11,score:11,userDisplayName:"user11"}],totalMembers:t=11,myScore:n={teamId:"team8",rank:12,userDisplayName:"user11",score:7}}={results:[{rank:1,score:1,userDisplayName:"user1"},{rank:2,score:2,userDisplayName:"user2"},{rank:3,score:3,userDisplayName:"user3"},{rank:4,score:4,userDisplayName:"user4"},{rank:5,score:5,userDisplayName:"user5"},{rank:6,score:6,userDisplayName:"user6"},{rank:7,score:7,userDisplayName:"user7"},{rank:8,score:8,userDisplayName:"user8"},{rank:9,score:9,userDisplayName:"user9"},{rank:10,score:10,userDisplayName:"user10"},{rank:11,score:11,userDisplayName:"user11"},{rank:12,score:12,userDisplayName:"user12"}],totalMembers:12,myScore:{teamId:"team8",rank:12,userDisplayName:"user11",score:7}})=>({results:e,totalMembers:t,myScore:n}),O1e=e=>Promise.resolve(iXe(e)),q1e=(e=U1e())=>Promise.resolve(e),H1e=(e=aXe())=>Promise.resolve(e),B1e=(e=lXe())=>Promise.resolve(e);var H$,q$;async function B$(e){if(L.reviewFeatures&&e==="mockChallenge")return q1e();let t=await Hn.getChallenge(e);if(t!==null)return q$=t,H$=cXe(t),H$;throw new Error(`new challenge api failed to return a challenge for id: ${e}`)}async function z1e(e,t,n=!1,o=10){if(L.reviewFeatures&&e==="mockChallenge")return n?B1e():H1e();let r={method:"GET",credentials:"include",headers:{"Content-Type":"applicationhttps://www.microsoft.com/json"}},s={locale:b.data.userLocale},i=N(`${D.learn.challenge}/${e}/teams/${t}/members?${V(s)}${n?"":`&$top=${o}`}`,r),a=await R(i);if(ee(a),a.ok)return await a.json();throw new Error(`challenge api responded with ${a.status} ${a.statusText}`)}async function G1e(e){if(await Hn.joinOrLeaveChallenge(e,"join")!==null)return await B$(e),{returnCode:0,newChallengeId:e};throw new Error(`new challenge api failed to join challenge for id: ${e}`)}async function V1e(e){if(await Hn.joinOrLeaveChallenge(e,"leave")===null)throw new Error(`new challenge api failed to leave challenge for id: ${e}`)}async function Q1e(e,t,n){let o={$top:n};if(t>0&&(o.$skip=t*n),L.reviewFeatures&&e==="mockChallenge")return O1e(o);if(H$){let c=await Hn.getChallengeLeaderboard(e,t,n);if(c!==null)return uXe(c);throw new Error(`new challenge leaderboard api failed for challenge id: ${e}`)}let r={method:"GET",credentials:"include",headers:{"Content-Type":"applicationhttps://www.microsoft.com/json"}},s={locale:b.data.userLocale},i=N(`${D.learn.challenge}/${e}/leaderboard?${V(o)}&${V(s)}`,r),a=await R(i),l;if(a.ok)return l=await a.json(),Y1e(l.challenge),l;throw new Error(`challenge api responded with ${a.status} ${a.statusText}`)}function Y1e(e){let t=e.type;if(t===1||t===2)return e.type="collection",e.visibility="public",SG(e,t);if(t===3||t===4)return e.type="xp",e.visibility="public",SG(e,t);if(t===5)return e.type="collection",e.visibility="private",SG(e,t);throw new Error(`Unsupported collection type: ${t}`)}function SG(e,t){let n;return t===1||t===3?(n={type:"teams",teamAssignmentMethod:e.teamAssignmentMethod,teamList:e.teamList},delete e.teamAssignmentMethod,delete e.teamList):n={type:"solo"},e.enrollment=n,e}function cXe(e){let t={userId:e.userId,title:e.contentList.name??"",description:e.contentList.description??"",allowPreRegistration:!!e.earlyRegistrationEnabled,start:e.starts.toString(),end:e.ends.toString(),challengeCollectionId:[e.listId],type:2,eventRulesUrl:"",emailRequired:!1,dotSourceNewsletterReg:!1,isEnrolled:e.startedOn!==void 0,showUserDisplayName:!!e.contentList.showUserDisplayName,ownerType:e.ownerType??"microsoft"};return Y1e(t)}function uXe(e){let t=-1,n="";e.leaderboardItems.forEach((s,i)=>{s.userId===v.userId&&(t=i+1,n=s.userName)});let o=q$.contentList.moduleCount??q$.contentList.totalItems;return{challenge:H$,count:e.totalParticipants,myScore:{rank:t===-1?null:t,score:Math.min(o,q$.itemsCompleted??0),userDisplayName:n},myTeamScore:null,totalScoreUnits:o,results:e.leaderboardItems.map((s,i)=>({rank:i+1,score:Math.min(o,s.itemsCompleted),userDisplayName:s.userName})),lastBatchUpdate:"",nextLink:""}}M();var z$={"ar-sa":!0,"he-il":!0};function CG(e,t,n={aborted:!1}){let o=A.timeline?A.timeline.currentTime:performance.now();function r(i){n.aborted||(t(i),s(i))}function s(i){let a=i-o,l=Math.round(a/e)*e,u=o+l+e-performance.now();setTimeout(()=>requestAnimationFrame(r),u)}s(o)}var G$=class extends nc{constructor(n){super({title:cK,load:(o,r)=>this.load(n,o,r),paging:!0});this.challengeId=n}get challenge(){return this._challenge}get myScore(){return this._myScore}get myTeamScore(){return this._myTeamScore}get participantCount(){return this._participantCount}get scoreTotal(){return this._scoreTotal}getTeam(n){return!this._teamMappings||!n?null:this._teamMappings[n]}getIndividualLeaderBoard(n){return!this._individualLeaderboardMappings||!n?null:this._individualLeaderboardMappings[n]}setIndividualLeaderBoard(n,o){this._individualLeaderboardMappings&&n&&(this._individualLeaderboardMappings[n]=o)}loadProgress(n){return n?this.getUserProgress():super.beforeActivate()}async getUserProgress(){if(this.busy)throw new Error("Busy");this.setBusy();try{await this.load(this.challengeId,this.pageIndex,this.pageSize)}finally{this.setReady()}}async load(n,o,r){let s=await Q1e(n,o,r);return this._myScore=s.myScore,this._myTeamScore=s.myTeamScore,this._scoreTotal=s.totalScoreUnits,this._challenge=s.challenge,this._participantCount=s.count,this._teamMappings={},this._individualLeaderboardMappings={},this._challenge.enrollment.type==="teams"&&this._challenge.enrollment.teamList.forEach(i=>{this._teamMappings[i.id]=i,this._individualLeaderboardMappings[i.id]=null}),{items:s.results,totalCount:s.count}}};var dXe=/([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})/i,EG=class extends Ve{constructor(n,o=1e3){super();this._challengeState="Inactive";this._pageState="Inactive Landing";this._userState="UnAuth";this._challengeStart=1/0;this._challengeEnd=1/0;this._abortSignal={aborted:!1};this._isPersonalChallenge=!1;this._hasActiveTakedowns=!1;this._challengeId=n,this._leaderboard=new G$(this._challengeId),this._leaderboard.subscribe(He,()=>this.notifyPropertyChanged(!1)),this._updateInterval=o,this._clearTimer=()=>{this._abortSignal.aborted=!0,this._abortSignal={aborted:!1}}}get challenge(){return this._challenge}get timeLeft(){return this._timeLeft}set timeLeft(n){this._timeLeft=n}setChallenge(n){this._challenge=n,this._isPersonalChallenge=this._challenge.visibility==="private",this._userState=AG(this._challenge),this.updateChallengeState(),this.handleTimeChange(),this.notifyPropertyChanged()}get challengeId(){return this._challengeId}get challengeStart(){return this._challengeStart}get challengeEnd(){return this._challengeEnd}get challengeState(){return this._challengeState}handleTimeChange(){return this._isPersonalChallenge&&!this._challengeStart?(this.timeLeft=0,this.timeLeft):(this.timeLeft=new Date(this._challengeState==="Inactive"?this._challengeStart:this._challengeEnd).getTime()-Date.now(),this.notifyPropertyChanged(!1),this.timeLeft)}get isPersonalChallenge(){return this._isPersonalChallenge}get leaderboard(){return this._leaderboard}get pageState(){return this._pageState}get userState(){return this._userState}set userState(n){this._userState=n,this.notifyPropertyChanged()}get isTeamsSelfSelect(){return this.challenge.enrollment.type==="solo"?!1:this.challenge.enrollment.teamAssignmentMethod===2}get shouldShowAgreement(){return!!this.challenge.eventRulesUrl}get isLegacyChallenge(){return dXe.test(this._challengeId)}get hasActiveTakedowns(){return this._hasActiveTakedowns}set hasActiveTakedowns(n){this._hasActiveTakedowns=n}listenForChallengeStateChange(){this.challengeState!=="Expired"&&(this.isPersonalChallenge?this.listenForPersonalChallengeStateChange():this.listenForPublicChallengeStateChange())}listenForPersonalChallengeStateChange(){this.challenge.isEnrolled&&CG(this._updateInterval,()=>{if(this.challengeState==="Expired"){this._clearTimer();return}this._challengeEnd{if(this.challengeState==="Expired"){this._clearTimer();return}let n=Date.now();this._challengeStart<=n&&n<=this._challengeEnd&&this.challengeState==="Inactive"?(this._challengeState="Active",this.notifyPropertyChanged()):this._challengeEnd${j2} `;return d`

      ${UW.replace("{end}",gn.format(e.challengeEnd))}

      ${t}
      `}function X1e(e,{title:t,description:n}){if(!t)return;let o=e.querySelector("#hero-body-name");n&&(o.parentElement.querySelector("#hero-body-description").textContent=n),o.textContent=t,o.parentElement.classList.remove("has-loading-skeleton")}function Z1e(e,t,n){let o=e?.querySelector("#created-by");if(o&&t&&n.challenge){let r="",s=!1;n.isLegacyChallenge?y(N$(r,s),o):(r=t.displayName,s=n.challenge.showUserDisplayName??!1,y(d`${n.challenge.ownerType==="learnUser"?$$(t,s):N$(r,s)}`,o)),o.hidden=!1,o.classList.add("margin-block-sm","font-size-sm")}}function Y$(e){if(!e.challenge)return d`

      ${Xt}

      `;let{type:t,enrollment:n}=e.challenge;return d`

      ${aA}

        ${Q$(V$.collection,t==="collection")} ${Q$(V$.xp,t==="xp")}

        ${Q$(V$.solo,n.type==="solo")} ${Q$(V$.teams,n.type==="teams")}
      `}function Q$(e,t){return d`
    • ${e}
    • `}function Of(e){if(!e.challenge)return d`

      ${Xt}

      `;let t="";e.challengeState==="Active"&&(e.isPersonalChallenge&&e.userState==="Enrolled"?t=AW.replace("{end}",K1e.format(e.challengeEnd)):e.isPersonalChallenge||(t=eW.replace("{start}",gn.format(e.challengeStart)).replace("{end}",gn.format(e.challengeEnd))));let{joinElement:n,title:o}=fXe(e),r=d``,s=b.data.userLocale,i=GW.replace("{profile}",`${An("me","settings")}#manage-email-preferences-form`);if(e.challengeState==="Expired")r=d`

      ${K1e.format(e.challengeEnd)}

      `;else if(!e.isPersonalChallenge||e.isPersonalChallenge&&e.userState==="Enrolled"){let a=new Intl.NumberFormat([s,s.split("-")[0]],{minimumIntegerDigits:2});r=pXe(e,a)}else j1e(e.challenge)&&e.userState!=="Enrolled"&&(r=d`

      ${S.personalChallenge?aK:uW.replace("{days}",_o.format(e.challenge.durationInDays))}

      `);return d`
      ${e.isPersonalChallenge?d`
      `:""}

      ${o}

      ${r}
      ${n}
      ${t?d`

      ${t}

      `:""}

      ${q(i)}

      `}function kG(e,t){let n=e.querySelector("#leave-challenge");if(n){let o=t.isPersonalChallenge,r=n.querySelector("button");t.challengeState!=="Expired"&&t.userState==="Enrolled"?(r.onclick=()=>mXe(n,t),n.hidden=!1):t.challengeState==="Expired"&&o&&!XC(t)&&!S.personalChallenge?(r.onclick=gXe(n,t),r.textContent=HW,n.hidden=!1):n.hidden=!0}}function pXe({timeLeft:e,challenge:t},n){(!t||Date.now()===0)&&(e=0);let o=Math.floor(e/1e3%60),r=Math.floor(e/1e3/60%60),s=Math.floor(e/(1e3*60*60)%24),i=Math.floor(e/(1e3*60*60*24));return d`
      ${n.format(i)}

      ${_h}

      ${n.format(s)}

      ${il}

      ${n.format(r)}

      ${ym}

      ${n.format(o)}

      ${qx}

      `}function mXe(e,{challengeId:t}){let n=document.createElement("div");n.classList.add("has-text-danger"),e.appendChild(n),_Xe(o);async function o(r){r.preventDefault();let s=r.target;try{n.textContent="",s.disabled=!0,await V1e(t),oe.reload()}catch{n.textContent=Xr}finally{s.disabled=!1}}}function gXe(e,t){let n=document.createElement("div");return n.classList.add("has-text-danger"),e.appendChild(n),async function(o){o.preventDefault();let r=o.target;try{n.textContent="",r.disabled=!0,await W$(t)}catch{n.textContent=Xr}finally{r.disabled=!1}}}function j$(e){if(!e.challenge||!e.leaderboard.challenge)return d`

      `;let{body:t,footer:n,continueLearningMessageTemplate:o}=hXe(e);return d`

      ${XC(e)?cW:bK}

      ${t} ${o} ${n}
      `}function fXe(e){let t=`${oe.pathname}${oe.search}&checkRegistration=true&${tDe(e.challengeId)}`,n=a=>d` `,o=a=>d``,r="",s,{allowPreRegistration:i}=e.challenge;return e.isPersonalChallenge?(e.challengeState==="Active"?e.userState==="Enrolled"?s=lK:e.userState==="UnEnrolled"&&!S.personalChallenge?r=o(dx):e.userState==="UnAuth"&&!S.personalChallenge&&(r=n(dx)):e.challengeState==="Expired"&&(s=z2,r=d` `),e.userState==="UnEnrolled"&&!S.personalChallenge?r=o(dx):e.userState==="UnAuth"&&!S.personalChallenge&&(r=n(dx))):e.challengeState==="Inactive"?i?e.userState==="Enrolled"?(s=oA,r=d`

      ${q(vK.replace("{start}",gn.format(e.challengeStart)))}

      `):(s=oA,r=d`

      ${q(aW.replace("{start}",gn.format(e.challengeStart)))}

      ${e.userState==="UnAuth"?n(Q2):o(Q2)} `):(s=oA,r=d`

      ${q(iW.replace("{start}",gn.format(e.challengeStart)))}

      `):e.challengeState==="Active"?(s=kW,e.userState==="UnEnrolled"?r=o(V2):e.userState==="UnAuth"&&(r=n(V2))):(s=z2,e.challenge.type==="collection"&&(r=d` `)),{joinElement:r,title:s}}function XC(e){return(e.leaderboard.myScore??{score:0}).score===e.leaderboard.scoreTotal}function hXe(e){let{myScore:t,scoreTotal:n}=e.leaderboard,o=e.challenge.type,r,s,i="",a=t??{score:0};o==="collection"&&(s=`${_o.format(a.score)} / ${_o.format(n)}`,r=VW,e.challengeState==="Active"&&(XC(e)||(i=pK)));let l="";e.challengeState==="Active"&&(l=d`

      ${gK}

      `);let c=d` `,u=!e.isPersonalChallenge&&o!=="collection",p=d`

      ${r} ${s}

      ${o==="collection"?d`
      ${c}
      `:""} ${l}
      `,m=d`${i?d`

      ${i}

      `:""}`,g=o==="collection"&&e.challengeState==="Expired"?d``:d` ${o==="collection"&&XC(e)?BW:lW} `;return o==="collection"&&XC(e)&&(g=d`
      ${g}

      ${oW}

      `),{body:p,footer:g,continueLearningMessageTemplate:m}}async function IG(e){let{emailRequired:t}=e.challenge;if(await uu(),t&&!Kx()){let n=V({redirectUrl:oe.href});oe.href=`${c6}?${n}`;return}W$(e)}async function W$(e){let{enrollment:t,eventRulesUrl:n}=e.challenge,o=document.createElement("div"),r=new ge(o);return!n&&(t.type==="solo"||t.type==="teams"&&t.teamAssignmentMethod===1)?await eDe(e,null,document.getElementById("challenge-container")):(y(yXe(e,o,r),o),await r.show())}function bXe(e,t){let n=document.createElement("div"),o=e.isPersonalChallenge?"#challenge-container":"#leaderboard",r=m=>{let g=m.target instanceof HTMLElement&&m.target.closest("a");!g||g.hash!==o||(m.preventDefault(),n.querySelector(".modal-close").dispatchEvent(new CustomEvent("click",{bubbles:!0})),setTimeout(()=>Af(o)),n.removeEventListener("click",r))};n.addEventListener("click",r);let{title:s,dotSourceNewsletterReg:i}=e.challenge,a=`https://azure.microsoft.com/resources/join-the-azure-developer-community/?WT.mc_id=cloudskillschallenge_${e.challengeId}`,l=RW.replace("{title}",s),c=t?d`

      ${q(yK.replace("{team}",t))}

      `:null,u=d`
      ${q(xXe(e))}
      `,p=d`
      ${TXe(e,o)}
      ${i?d`
      ${q(FW.replace("{dotSourceSignupLink}",a))}
      `:""}
      `;return y(K$(l,u,c,p),n),n}async function eDe(e,t,n){let o=n.querySelectorAll(".join-challenge");o.forEach(i=>{i.classList.add("is-loading")});let r=async i=>{t?t.pushContent(i):(t=new ge(i),await t.show())},s=async(i=1)=>{let a=LW,l=d`
      ${i<=0?d` `:d` `}
      `;try{let c=await G1e(e.challengeId);await uu();let u=bXe(e,c.teamName),p=e.leaderboard.loadProgress(e.isPersonalChallenge);e.userState="Enrolled",Bn.replaceState({userState:"Enrolled"},document.title,oe.pathname+oe.search),await r(u),await p,e.isPersonalChallenge&&e.setChallenge(e.leaderboard.challenge)}catch{let c=document.createElement("div");y(K$(a,l),c);let u=c.querySelector("#retry-enroll");u&&(u.onclick=async()=>{u.classList.add("is-loading"),await s(i-1),u.classList.remove("is-loading")}),await r(c)}finally{o.forEach(c=>{c.classList.remove("is-loading")})}};await s()}function _Xe(e){let t=document.createElement("div"),n=new ge(t),o=d`
      `,r=K$(aY,d``,d``,o);y(r,t),n.show()}function yXe(e,t,n){let{eventRulesUrl:o,enrollment:r}=e.challenge,s={"padding-bottom-sm":e.shouldShowAgreement,"margin-bottom-xs":e.shouldShowAgreement,"flex-grow-1":e.shouldShowAgreement,"flex-shrink-1":e.shouldShowAgreement},i=e.isTeamsSelfSelect?"teamSelect":e.shouldShowAgreement?"checkbox":"button",a,l;if(e.shouldShowAgreement){let u=IW.replace("{eventRulesUrl}",o);a=d`
      `}if(r.type==="teams"&&r.teamAssignmentMethod===2){let u=r.teamList,p=m=>{let g=m.target,f=g.value?"":G2;g.setCustomValidity(f)};l=d`
      `}let c=d`
      ${l} ${a}
      `;return K$(vXe(e),c,null,null)}function vXe(e){let t=PW.replace("{title}",e.challenge.title);return e.shouldShowAgreement&&!e.isTeamsSelfSelect?t:!e.shouldShowAgreement&&e.isTeamsSelfSelect?KW:JW}function xXe(e){return e.challengeState==="Inactive"?Kx()?String($W).replace("{start}",gn.format(e.challengeStart)):String(NW):e.isPersonalChallenge?DW:MW}function TXe(e,t){return e.challengeState==="Inactive"?Kx()?d` ${OW} `:d` ${nW} `:d`${j2} ${e.isPersonalChallenge?zW:ZW}`}function ZC(e){if(e.challenge.type==="collection"){let t=e.challenge.challengeCollectionId[0];return Wi(t).href}else return L.reviewFeatures?`${D.contentOrigin}/${Be.userLocale}/test/learn/home`:`${D.contentOrigin}/${Be.userLocale}/training/?${tDe(e.challengeId)}`}function tDe(e){return`WT.mc_id=cloudskillschallenge_${e}`}function K$(e,t,n,o){return d` `}M();M();function J$(e,t,n){return d`
        ${[{label:hJ,value:e},{label:lA,value:t},{label:YK,value:n}].map(r=>d`
      • ${r.value}

        ${r.label}

      • `)}
      `}function X$(e,t){let n=kRe(e,t);return n===1?d` ${Kn} `:d`
      ${Zo(Math.floor(n*100))}%
      `}var Z$=class extends nc{constructor(n){super({title:Bu,load:async(o,r)=>{try{let s=await Hn.getChallengeLeaderboard(n,o,r);return this._totalCount=s?.totalParticipants??0,{items:s?.leaderboardItems??[],totalCount:s?.totalParticipants??0}}catch{return this._unexpectedError=1,{items:[],totalCount:0}}},paging:!0,pageSize:5});this.challengeId=n;this._totalCount=0}get unexpectedError(){return this._unexpectedError}get totalCount(){return this._totalCount}};function wXe(e,t,n){let o=String(fh).replace("{completedCount}",e.itemsCompleted.toString()).replace("{totalCount}",t.toString());return d`
      Avatar for ${e.userName}

      ${e.userName} ${n?d` ${bbe} `:d``}

      ${X$(e.itemsCompleted,t)}

      ${o}

      `}function eE(e){return d`

      ${e}

      `}function oDe(e,t,n,o){if(e.unexpectedError)return eE(Ht);if(o)return eE(dJ);if(e.items.length===0)return eE(uA);let r=i=>i===n,s=rc(e);return d`
        ${(e.items??[]).map(i=>d`
      • ${wXe(i,t,r(i.userId))}
      • `)}
      ${s} `}M();function SXe(e,t,n,o,r,s){let i=d` ${_o.format(t.rank)}`,a,l;switch(e.challenge.type){case"collection":l=`${_o.format(t.score)}/${_o.format(e.scoreTotal)}`,a=i;break;case"xp":l=_o.format(t.score),a=i;break}let u=n&&n.teamId===o&&n.rank===t.rank,p="display-flex justify-content-space-between";u&&(p+=" font-weight-semibold has-background-challenge has-text-challenge-invert");let m=W2.replace("{teamRank}",_o.format(t.rank)).replace("{teamName}",t.userDisplayName).replace("{totalXP}",l);return d`
    • 0&&!u?"border-top":""} ${u&&s?"margin-top-xs":""}" aria-current="${Ge(u?"true":void 0)}" > ${m}"
    • `}function CXe(e,t,n){let o=document.createElement("div");y(d` `,o);let r=new ge(o);PG(e,t,!0),r.show()}function EXe(e){let t=e.target;t.closest(".details-summary")&&Array.from(document.querySelectorAll("#leaderboard-list .details[open]")).forEach(o=>{o!==t.closest(".details")&&o.removeAttribute("open")})}function PG(e,t,n,o){if(!n&&o&&EXe(o),e.getIndividualLeaderBoard(t)&&!n)return;let s=(i,a)=>{let l=i[i.length-1];return a.rank>l.rank?(i.push(a),!0):!1};z1e(e.challengeId,t,n).then(i=>{e.setIndividualLeaderBoard(t,i);let a;n?a=document.querySelector("#individual-leaderboard"):a=document.querySelector(`#detail-${t}-container`);let l=i.myScore,c;l&&l.teamId===t&&(c=s(i.results,l));let u=i.totalMembers,p=ui.results.length&&!n?d``:d``,g=d`
        ${i.results.map((f,_)=>_ ${m}
      `;y(g,a)})}function AXe(e,t,n,o,r,s){if(!e)return d``;let i=t.challenge.enrollment.type,a=d` ${_o.format(e.rank)}`,l=e.score===t.scoreTotal?"/en-us/media/learn/challenge/how_it_works_challenge_icon_1.png?branch=main":"",c="",u;switch(i){case"solo":if(u=e.userDisplayName,n==="collection"&&o){let T=l?d`
      `:"";c=d`
      ${T}
      `}break;case"teams":u=t.getTeam(e.teamId)?.name;break}let p,m;switch(n){case"collection":i==="solo"?(m=`${_o.format(e.score)}/${_o.format(t.scoreTotal)}`,p=""):(m=sh.replace("{score}",_o.format(e.score)),p=a);break;case"xp":m=_o.format(e.score),p=a;break}let g=()=>d`${c}
      ${p} ${u} ${u}
      `,f=t.getTeam(e.teamId)?.hasMembers,_=t.challenge.hasTeamIndividualRank,h=W2.replace("{teamRank}",_o.format(e.rank)).replace("{teamName}",u).replace("{totalXP}",m);if(i!=="teams"||!_||!f){let T,x;return _?(T="padding-block-sm padding-right-lg",x=`padding-inline-sm ${r?"has-background-challenge has-text-challenge-invert":""}`,s>0&&!r&&(x+=" border-top")):(T="padding-block-xs padding-block-sm-tablet",x=`padding-inline-xs padding-inline-sm-tablet ${r?"has-background-challenge has-text-challenge-invert":""}`,s>0&&!r&&(T+=" border-top")),d`
      ${h}"
      `}return d`
      PG(t,e.teamId,!1,T)} @keyup=${T=>(T.key==="Enter"||T.key==="Spacebar")&&PG(t,e.teamId,!1,T)} >
      `}function kXe(){let e=Array.from(document.querySelectorAll("#leaderboard-list .details[open]"));if(e.length===0)return;Array.from(document.querySelectorAll(".pagination-link")).forEach(n=>{n.addEventListener("click",function(){e.forEach(o=>{o.removeAttribute("open")})})})}function eN(e){return e.leaderboard.items.length===0?d`

      ${Bu}

      ${eE(uA)}
      `:(kXe(),d`
      ${IXe(e.leaderboard,e.challengeState,AXe)}
      `)}function rDe(e,t,n=!1){let o,r=e.challenge.type,s=e.challenge.enrollment.type;switch(r){case"collection":s==="solo"||n?o=lA:o=WW;break;case"xp":s==="solo"||n?o=uK:o=iK;break}let i=s==="solo"||n?jW:sK;return i=i.replace("{count}",_o.format(t)),d`

      ${i} ${o}

      `}function IXe(e,t,n){let o=rc(e),r=a=>a.score===e.scoreTotal,s=e.items.some(r),i=t==="Active"?d`

      ${mK}

      `:"";return d`

      ${t==="Expired"?qW:e.title}

      ${i} ${rDe(e,e.participantCount)} ${PXe(e.items,e,e.challenge.type,n,s,e.challenge.enrollment.type,e.myTeamScore,e.myScore)} ${o}
      `}function PXe(e,t,n,o,r=!1,s,i,a){let l=e[0],c=e[e.length-1],u=(_,h)=>{let T="",x;switch(s){case"teams":(i&&_&&i.rank&&i.rankc.rank)&&(T="margin-block-sm"),x=i;break;case"solo":(a&&_&&a.rank&&a.rankc.rank)&&(T="margin-block-sm"),x=a;break}return T!==""?d`
      ${o(x,t,n,r,!0,h)}
      `:null},p=_=>{let h=!1;switch(s){case"solo":a&&a.rank===_.rank&&(h=!0);break;case"teams":i&&i.teamId===_.teamId&&(h=!0);break}return h},m=u(!0,0),g=u(!1,0),f=s==="teams"?i?.rank:a?.rank??1;return d`
        ${m?d`
      1. ${m}
      2. `:d``} ${e.map((_,h)=>d`
      3. ${o(_,t,n,r,p(_),h)}
      4. `)} ${g?d`
      5. ${g}
      6. `:d``}
      `}async function sDe(e,t,n){let o=W1e(e),r=l=>{let c=A.createElement("div"),u=()=>y(d`${LXe(o)} ${RXe(o,l)}`,c);return o.subscribe(He,u),v.subscribe(xn,()=>{o.userState=AG(o.challenge)}),u(),c};Bn.state?.userState==="Enrolled"&&(Bn.replaceState(void 0,A.title,oe.pathname+oe.search),oe.reload());let i=r(n);t.appendChild(i);let a=()=>{t.remove(),tN(A.querySelector(".hero"))};try{let l=await B$(e);if(!l){a();return}let c=Array.from(n.querySelectorAll("[challenge-category]"));for(let h of c)h.getAttribute("challenge-category")!==l.visibility&&h.remove();let u=A.querySelector(".hero");if(X1e(u,l),o.setChallenge(l),u.setAttribute("style",`--hero-background-image-light: url("/en-us/media/profile/cscheroimage.png?branch=main"); --hero-background-image-dark: url("/en-us/media/profile/cscheroimage.png?branch=main"); --border-gradient-end-color: #271e6d;`),u.classList.remove("has-loading-skeleton"),l.userId){let h=await ns(`id:${l.userId}`);Z1e(u,h,o)}let p=u?.querySelector(".supertitle");p&&(p.textContent=jr),u?.getElementsByClassName("collection button")[0]?.remove(),u?.getElementsByClassName("add-item-popover")[0]?.remove(),l.userId===v.userId&&(o.hasActiveTakedowns=await Qe.getActiveTakedowns(l.challengeCollectionId[0])),o.challengeState!=="Inactive"&&await o.leaderboard.loadProgress(o.isPersonalChallenge),(o.pageState==="Inactive Landing"||o.pageState==="UnEnrolled Leaderboard"||o.pageState==="Enrolled Personal"||o.pageState==="UnEnrolled Personal")&&n.classList.remove("has-loading-skeleton");let m=A.getElementById("faqs");m.hidden=!1;let g=`#${l.type}-${l.enrollment.type}-faqs`;o.isPersonalChallenge&&(g="#personal-challenge-faqs");let f=m.querySelector(g);f!==null&&(kG(m,o),o.subscribe(He,()=>{kG(m,o)}),f.hidden=!1);let _=new URLSearchParams(oe.search);(_.get("checkRegistration")==="true"||_.get("enrollUser")==="true")&&await fe,_.get("enrollUser")==="true"&&(o.userState==="UnEnrolled"&&await W$(o),_.delete("enrollUser"),Bn.replaceState(void 0,A.title,oe.pathname+`?${_.toString()}`)),_.get("checkRegistration")==="true"&&(_.delete("checkRegistration"),_.set("enrollUser","true"),Bn.replaceState(void 0,A.title,oe.pathname+`?${_.toString()}`),o.userState==="UnEnrolled"&&await IG(o))}catch{a()}}function tN(e){y(MXe(),e),e.classList.add("gradient-border-right","gradient-border-body"),e.setAttribute("style",`--hero-background-image-light: url('/en-us/media/learn/challenge/challenge_not_found.svg?branch=main'); --hero-background-image-dark: url('/en-us/media/learn/challenge/challenge_not_found.svg?branch=main')`),e.classList.remove("has-loading-skeleton","hero-xs","has-background-challenge","gradient-border-challenge")}function LXe(e){return d`${e.hasActiveTakedowns?d`
      ${JC(eF.replace("{detailPageLink}",nn(e.challengeId,"details")),fA.replace("{collectionPageLink}",Wi(e.challenge.challengeCollectionId[0]).href),!1)}
      `:""}`}function RXe(e,t){switch(e.pageState){case"Inactive Landing":return d` ${wv(Y$(e),Of(e),e)} ${t}`;case"UnEnrolled Leaderboard":return d` ${wv(Y$(e),Of(e))} ${t} ${eN(e)} `;case"Enrolled Leaderboard":case"Enrolled Expired Leaderboard":return d` ${wv(j$(e),Of(e))} ${eN(e)} `;case"UnEnrolled Personal":return d` ${wv(Y$(e),Of(e),e)} ${t}`;case"Enrolled Personal":return t.classList.add("padding-top-sm"),d`${wv(j$(e),Of(e))} ${t}`;case"Enrolled Expired Personal":return d`${wv(j$(e),Of(e))}`;case"UnEnrolled Expired Leaderboard":return d`${J1e(e)} ${eN(e)}`}}function wv(e,t,n){let o="",r="";return n&&n.isPersonalChallenge&&n.challengeState==="Inactive"&&(o="margin-top-lg-tablet",r="margin-top-lg-tablet padding-top-lg-tablet"),d`
      ${e}
      ${t}
      `}function MXe(){return d`

      ${YW}

      ${QW}

      `}ot();M();M();var iDe=e=>[{id:"plan-title",name:"plan-title",title:ll,inputType:"text",dataBiName:"plan-title",value:e.title,placeholder:Hde,required:!0},{id:"plan-description",name:"plan-description",title:TA,inputType:"textarea",dataBiName:"plan-description",cssClasses:"padding-bottom-xs",value:e.description,required:!1},{id:"learning-outcomes",title:xk,subtitle:$pe,tip:Npe,cssClasses:"padding-top-xs border-top"},{id:"plan-outcome-1",name:"plan-learning-outcome-1",title:Fpe,inputType:"textarea",dataBiName:"plan-outcome-1",value:e.learningOutcomes?.[0]??"",required:!1},{id:"plan-outcome-2",name:"plan-learning-outcome-2",title:Upe,inputType:"textarea",dataBiName:"plan-outcome-2",value:e.learningOutcomes?.[1]??"",required:!1},{id:"plan-outcome-3",name:"plan-learning-outcome-3",title:Ope,inputType:"textarea",dataBiName:"plan-outcome-3",value:e.learningOutcomes?.[2]??"",required:!1},{id:"plan-official",name:"official-plan",title:Hpe,inputType:"checkbox",dataBiName:"plan-official-checkbox",tip:Gpe,value:e.isOfficial,isDirty:!1}];function aDe(e){let t=e.elements.namedItem("plan-title"),n=t.value;if(!n)return t.setCustomValidity(zu),t.reportValidity(),ft(e,"planNewTitle"),null;let o=e.elements.namedItem("plan-description").value,r=[e.elements.namedItem("plan-learning-outcome-1").value,e.elements.namedItem("plan-learning-outcome-2").value,e.elements.namedItem("plan-learning-outcome-3").value].map(i=>i.trim()).filter(i=>i.length>0),s=e.elements.namedItem("official-plan")?.checked??!1;return{title:n,description:o,learningOutcomes:r,isOfficial:s}}var lDe;async function cDe(e,t){e.preventDefault();let n=document.getElementById("ms--create-plan"),o=e.target;so(n);let r=aDe(n);if(r===null)return;let{title:s,description:i,learningOutcomes:a,isOfficial:l}=r,u=n.elements.namedItem("official-plan")?.dataset.changed==="true",p={listId:n.dataset.listId??"",name:s,description:i,learningOutcomes:a??[],isOfficial:l};o.disabled=!0,o.classList.add("is-loading");try{let m=await Gr.createSkillingPlan(p);if(m.hasError===!0)ft(n,"somethingWentWrong");else{let g,f=Rf(m?.data?.id);if(l&&u&&(g=_Me()),g){t.hide(),g?.show();let _=g?.contentElement.querySelector(".modal-close");[g?.contentElement.querySelector("button#close-official-plan-modal"),_].forEach(T=>{if(!T)throw new Error("Something went wrong with the close buttons in the Official plan informative modal.");T.onclick=()=>{g?.hide(),location.href=f}})}else location.href=f}}catch(m){throw ft(n,"somethingWentWrong"),new Error(`error: ${m.message}`)}finally{o.disabled=!1,o.classList.remove("is-loading")}}async function uDe(e,t){if(!t)return;let n=e.contentElement.querySelector("button#ms--plan-modal-primary-btn");if(!n)throw new Error("Primary button not found");n.onclick=async()=>{n.disabled=!0,n.classList.add("is-loading"),so(e.contentElement);try{await t.deletePlan(),e.hide(),location.href=fn("me","plans").toString()}catch(o){throw ft(e.contentElement,"somethingWentWrong"),new Error(`error: ${o.message}`)}finally{n.disabled=!1,n.classList.remove("is-loading")}}}async function dDe(e,t,n){let o=e.contentElement.querySelector("button#ms--plan-modal-primary-btn");if(!o)throw new Error("Primary button not found");o.onclick=async r=>{r.preventDefault(),o.disabled=!0,o.classList.add("is-loading"),so(e.contentElement);try{await t.dropPlan(),e.hide(),n()}catch(s){throw ft(e.contentElement,"somethingWentWrong"),new Error(`error: ${s.message}`)}finally{o.disabled=!1,o.classList.remove("is-loading")}}}async function pDe(e){let t=e.elements.namedItem("plan-learner-group-name"),n=t.value,o=t.dataset.planId;t.classList.remove("input-danger"),e.querySelector("button[type=submit]")?.classList.add("is-loading");try{let r=await Gr.createLearnerGroup(o,n);return DXe(r,e)}catch(r){throw new Error(`error: ${r.message}`)}}function DXe(e,t){if(e.hasError===!0){e.error.errorCode==="AlreadyExists"?ft(t,"learnerGroupAlreadyExists"):ft(t,"somethingWentWrong");let n=t.elements.namedItem("plan-learner-group-name");n.focus(),n.classList.add("input-danger");let o=t.querySelector("button[type=submit]");return o&&o.classList.remove("is-loading"),{hasError:!0}}return{hasError:!1,data:e.data}}async function mDe(e){let t=e.closest(".learner-group-details");if(!t)throw new Error("Could not find the learner group details");let n=t.nextElementSibling,o=n.querySelector(".cancel"),r=n?.querySelector("input");NC(t,n),n.focus(),o&&(o.onclick=s=>{s.preventDefault(),NC(t,n),r&&(r.value=r?.dataset.originalName)})}async function gDe(e,t){let n=t.parentElement?.previousElementSibling,o=t.parentElement,r=o?.querySelector("input"),s=r?.dataset.groupId,i=o.querySelector("#learner-group-submit");if(i?.classList.add("is-loading"),r?.value===r?.dataset.originalName){i?.classList.remove("is-loading"),NC(n,o),r.value=r?.dataset.originalName;return}if(EMe(r?.value,e.plan?.learnerGroups??[])){ft(t,"learnerGroupAlreadyExists"),r?.focus(),r?.classList.add("input-danger"),i?.classList.remove("is-loading");return}so(t);let a=await e.updateLearnerGroup({id:s,name:r?.value});if(a.hasError===!1){let{data:l}=a,c=n.querySelector(".group-name");c&&(c.textContent=l.name,r.dataset.originalName=l.name),NC(n,o),r.classList.remove("input-danger"),i?.classList.remove("is-loading")}else ft(t,"somethingWentWrong"),r.focus(),r.classList.add("input-danger"),i?.classList.remove("is-loading")}async function fDe(e,t,n,o){lDe=e.contentElement.querySelector("#notification-wrapper");let r=$C(mpe,d`${q(gpe.replace("{learningGroupName}",t.plan?.learnerGroups?.find(i=>i.id===n)?.name||Ux))}`,void 0,Wr,Fe,!0);if(e.hide(),(await Yn(r,!1,i=>$Xe(i,t,n,o))).submitted){e.show();let i=H9(fpe,"success",!0);lDe.innerHTML=i}}async function $Xe(e,t,n,o){let r=e.querySelector("button[type=submit]");r?.classList.add("is-loading");let s={hasError:!1,data:null};try{await t.deleteLearnerGroup(n),s={hasError:!1,data:null}}catch{ft(e,"somethingWentWrong"),s={hasError:!0}}finally{o.closest(".card")?.remove(),r?.classList.remove("is-loading")}return s}M();function hDe(e){if(!e.querySelector(".docon-status-warning-outline-rounded")){let n=document.createElement("span");n.classList.add("docon","docon-status-warning-outline-rounded","margin-right-xxs"),n.ariaHidden="true",n.setAttribute("data-warning-icon-container",""),e.prepend(n)}}function bDe(e){e.querySelectorAll("a").forEach(t=>t.classList.add("text-decoration-underline","has-line-height-reset"))}function LG(e){return e.querySelector("[data-form-error-alert]")??null}function RG(e){return e.querySelector("ul")??null}function NXe(e,t,n,o,r,s,i){if(t.find(m=>m.message===o))return;let a=FXe(e),c=n.hasAttribute("data-tag-input")?n.parentElement?.querySelector("input.autocomplete-input")?.id:n.id;Ou(n).classList.add("errored");let p=document.createElement("a");p.href=`${i?"":"#"}${s||c}`,p.textContent=o,p.classList.add("help","help-danger","text-decoration-underline","has-line-height-reset"),a.append(p),r?.classList.add("border","border-color-danger"),t.push({input:n,message:o})}function FXe(e){let t=LG(e),n=RG(t),o=document.createElement("li");return o.classList.add("margin-bottom-xs"),t&&n&&(n.appendChild(o),t.hidden=!1,t.focus(),t.scrollIntoView()),o}function UXe(e,t){let o=Ou(e).querySelector("[data-field-error-custom]")||OXe(e);o.textContent=t}function OXe(e){let t=document.createElement("p");return t.id=_t(),e.setAttribute("aria-describedby",`${t.id} ${e.getAttribute("aria-describedby")||""}`),t.classList.add("help","help-danger"),t.setAttribute("data-field-error-custom",""),tx(e).after(t),t}function _De(e){if(e instanceof HTMLInputElement){let t=Ou(e),n=e.hasAttribute("data-tag-input"),o=t.querySelector("docs-markdown-editor"),r=e.getAttribute("type")==="email";if(n){let s=t.querySelector("[data-tag-input-holder]");s&&s.classList.remove("border","border-color-danger")}if(o){let s=t.querySelector('[data-id="docs-markdown-editor"]');s&&s.classList.remove("border","border-color-danger")}r&&t.querySelector("[type=email]")?.classList?.remove("border","border-color-danger"),UXe(o??e,""),t.classList.remove("errored")}}function yDe(e,t){let n=e.querySelector("input[type=email]");n&&n.validity.typeMismatch&&(Qp(n,AF),NXe(e,t,n,AF,n))}var vDe;async function TDe(e,t=null,n=D.profile.reportConcern,o,r,s="description",i){let a=document.createElement("div");vDe=new ge(a);let l=d``;if(vDe.show(),e.isAuthenticated&&t===null){let u=d``;y(d` `,a);let p=ar()??"";t=await rd(p)}l=d` ${GXe(qXe,i,JF,r,void 0,s)} ${VXe(t)}

      ${q(Oue)}

      ${o||""} `,y(d` `,a);let c=a.querySelector("#report-content-form");zXe(),JXe(c),t!==null&&KXe(c,t)}function qXe(e,t,n="abuseCategory",o=!1){let r=t||CPe;return d`
      `}function xDe(e){return d` `}function HXe(e,t,n,o,r){return d` `}function BXe(e,t){return d`
      `}function zXe(){window.addEventListener("form-validating",e=>{let t=LG(e.detail.form),n=RG(t);e.detail.errors?.length>=0&&yDe(e.detail.form,e.detail.errors),t&&!t.querySelector("[data-warning-icon-container]")&&hDe(t),n&&bDe(n)}),window.addEventListener("clear-validation-errors",e=>{let t=e.detail.target;_De(t)})}function GXe(e,t,n=JF,o,r,s,i,a=!1){return d`
      ${e(r,t,o,a)}
      `}function VXe(e){if(e===null)return d`

      ${q(Due)}

      `;let[t,n]=wDe(e);return d`
      `}function QXe(e){return e.authenticationModes?e.authenticationModes.map(t=>t.type).includes("MSA"):!1}function YXe(e){let t=e.authenticationModes.find(n=>n.type==="MSA");return t?t.upn:null}function jXe(e){let t=e.authenticationModes.find(n=>n.type==="AAD");return t?t.upn:null}function WXe(e,t,n){return t??(mt(e.email)?n:e.email)??""}function wDe(e){let t=QXe(e),n=t?YXe(e):null,o=t?null:jXe(e),r=WXe(e,n,o);return[t,r]}function KXe(e,t){let[n,o]=wDe(t);if(n){let i=e.querySelector("#report-msa-email-account");i.innerText=o}let r=e.querySelector("#opt-into-email-checkbox"),s=e.querySelector("#submitter-info");r.addEventListener("change",()=>{r.checked?s.hidden=!1:s.hidden=!0})}function JXe(e){if(!e)return;let t=e.querySelector("#select-reason"),n=e.querySelector("#other-reason-textarea-container"),o=n.querySelector("textarea");if(!t||!n||!o)return;let r=t.value===gr[14]||t.value===14 .toString();r&&(n.hidden=!1,o.required=!0),t.addEventListener("change",()=>{r=t.value===gr[14]||t.value===14 .toString(),r?(n.hidden=!1,o.required=!0,o.disabled=!1):(n.hidden=!0,o.required=!1,o.disabled=!0)})}M();ot();M();var nN;function SDe(e){nN=e}function CDe(e,t){let n=e.isOfficial?Us:$s,o=s=>{let i=s.target;n=i.checked?Us:$s;let a=document.querySelector("#toggle-text-plan-official");y(n,a),i.getAttribute("data-changed")==="false"&&i.setAttribute("data-changed","true")},r=iDe(e).map(s=>{let{id:i,name:a,title:l,subtitle:c,tip:u,inputType:p,dataBiName:m,cssClasses:g,required:f}=s;if(i==="plan-official"&&!t)return d``;let _=i==="plan-title"&&e.isNew===!0,h=p?p==="textarea"?d``:p==="checkbox"?d`
      ${n}
      `:d`{let x=T.target;i==="plan-title"&&(ZXe(x,zu),x.classList.remove("input-danger"))}} /> ${_?d`

      ${Mde}

      `:""} ${i==="plan-title"?d` `:""}`:"";return d`
      ${i==="plan-official"?XXe():""}
      ${c?d`

      ${c}

      `:""}
      ${h}
      ${u?d`

      ${u}

      `:""}
      `});return d`

      ${npe}

      ${r}
      `}function XXe(){return d`
      ${q(zpe)}
      `}function ZXe(e,t){e.setCustomValidity(""),e.validity.valid||(t&&e.setCustomValidity(t),e.reportValidity())}function EDe(e){return e?d`
      • ${e.stats?.participantsStarted}

        ${ope}

      • ${e.stats?.participantsJoined}

        ${vh}

      • ${e.stats?.participantsCompleted}

        ${tpe}

      ${Epe}

      ${Ape}

      • ${kpe}
      • ${Ipe}
      • ${Ppe}
      • ${Lpe}
      • ${Rpe}
      • ${Mpe}
      `:d``}function ADe(e,t){if(!t?.plan)return d``;let{emailSubject:n,emailBody:o,encodedPlanUrl:r}=q9(t.plan);async function s(){nN.hide();let i=tZe(iU,ype,t?.plan.id,Ax,!0),a=await Yn(i,!1,pDe);return t&&a.submitted?t.addToLearnersGroups(a.data,l=>e(l)):nN.show(),d``}return d`
      ${bpe}
      ${hpe}
      ${q(_pe)}
      ${t.plan?.learnerGroups?.map(i=>eZe(t,i))}
      `}function eZe(e,t){let{emailSubject:n,emailBody:o,encodedPlanUrl:r}=q9(e.plan,t.id);return d`
      ${Ux}: ${t.name}
      `}function tZe(e,t,n,o=lo,r=!1){return n?d` `:d``}M();function Np(e,t){return d` `}function Sv(e,t,n){return d`
      ${t}
      `}function oN(e,t,n){return d` `}var qf;function tE(e,t,n){if(!t&&!n?.plan)return;let o=d``,r=document.createElement("div");qf=new ge(r),SDe(qf);let s={title:t?.name??"",description:t?.description??"",isOfficial:t?.isOfficial??!1},i,a;switch(e){case"new":let l=t?.id;n?.plan&&(s.title=n?.plan?.contentList.name??"",s.description=n?.plan?.contentList.description??"",s.isOfficial=n?.plan?.contentList.isOfficial??!1,s.learningOutcomes=n?.plan?.learningOutcomes??[],l=n?.plan?.listId,s.isNew=!0),o=Np("plan",{title:ape,body:Sv("create-plan",CDe(s,CMe(n?.collection?.id)),l),footer:oN("plan",qf)}),y(o,r),i=r.querySelector("button[type=submit]"),i&&(i.innerText=Ax,i.setAttribute("aria-label",Ax),i.setAttribute("data-bi-name","create-plan-btn"),i.onclick=async c=>{await cDe(c,qf)}),a=r.querySelector("button#cancel-plan-btn"),a&&a.setAttribute("data-bi-name","cancel-create-plan-btn");break;case"invite":o=Np("plan",{title:Lh,body:ADe(c=>tE("invite",void 0,c),n),footer:d``}),y(o,r);break;case"progress":o=Np("plan",{title:Rh,body:EDe(n),footer:d``}),y(o,r);break;default:break}if(o)qf.show();else throw new Error(`Invalid side panel content type: ${e}`)}function MG(e,t,n){if(!e&&!t&&!n)return d``;Xf(A.body);let o=!mt(t),r=!mt(n),s={vm:e,vmPlans:t,vmChallenge:n},i=nE(s),{lastModified:a,totalDuration:l=0,shouldLocalize:c}=i,u=!!e?.isOfficialOrOverride||!!t?.collection.isOfficial||!!e?.isChallengeCollection,p=A.getElementById("loc-submitted-text"),m={pathCountFormat:"",moduleCountFormat:""};if(e){let{pathCountFormat:h,moduleCountFormat:T}=e.getAmountStrings();m.pathCountFormat=h,m.moduleCountFormat=T}let{pathCountFormat:g,moduleCountFormat:f}=m,_=e?.isChallengeCollection?d` ${l?d`
    • ${tn(l)}
    • `:""} ${g?d`
    • ${g}
    • `:""} ${f?d`
    • ${f}
    • `:""} `:!t?.isPublicView&&a!==void 0?d`
    • ${uie} ${new Intl.DateTimeFormat(b.data.userLocale).format(new Date(a))}
    • `:"";return d`
      ${u||r?d`${k1e(e,t,n)}`:""}
      ${u||r?I1e(e,t,n):""} ${MDe(s)?L1e(e):""}
      ${p||r?"":d`

      ${c?o?Tk:NA:""}

      `}
      `}function nE(e){return(e.vm??e.vmPlans??e.vmChallenge)?.collection}function rN(e){let{vm:t,vmPlans:n}=e;return t?.collectionOwner?.userId===v.userId||n?.plan?.userId===v.userId}function DG(e){return e.vmPlans?.hasStarted()===!0}function RDe(e){return e.vmPlans?.isCompleted()===!0}function nZe(e){let{vm:t,vmPlans:n}=e,o=!mt(t),r=!mt(n),s=n?.isPublicView||t?.isPublicView,i=nE(e),a=i?.isOfficial,l=i?.shouldLocalize;return(o||r)&&!(s||l||!a)&&rN(e)}function kDe(e){return!!e.vmPlans&&rN(e)}function oZe(e){return!!e.vmPlans&&rN(e)}function rZe(e){return!!e.vmPlans&&DG(e)&&!RDe(e)}function IDe(e){return!!e.vmPlans&&DG(e)&&!RDe(e)}function PDe(e){return!!e.vmPlans&&!DG(e)&&v.isAuthenticated}function LDe(e){return!!e.vmPlans&&!v.isAuthenticated}function sZe(e){let{vm:t,vmPlans:n}=e,o=nE(e);return!t?.isChallengeCollection&&!rN(e)&&!o?.isOfficial&&(!!t&&t?.reportStatus!=="Unknown"||!!n&&n?.reportStatus!=="Unknown")}function MDe(e){if(!e.vm&&!e.vmPlans)return!1;let{vm:t,vmChallenge:n}=e,o=!mt(t),r=!mt(n),i=nE(e)?.id;return o&&!(t?.isPublicView||t?.isOfficialOrOverride&&t?.collectionOwner?.userId!==v.userId||t?.isChallengeCollection||i==="bookmarks")||r&&!!n?.isChallengeOwner()&&!!n?.isChallengeUpcoming()}function iZe(e){let{vm:t,vmPlans:n,vmChallenge:o}=e,s=nE(e)?.id,i=Wi(s),a=ja("resume-plan-button",ju,ju,()=>n?.resumePlan(),"resume-plan-btn",ju,"button-sm button-primary button-filled");function l(){function x(){let w=A.getElementById("start-or-resume");w&&y(a,w)}if(!v.isAuthenticated){wn(location.href);return}n?.joinPlan({onSuccess:()=>{x()}})}let c=ja("start-plan-button",bn,bn,()=>l(),"start-plan-btn",bn,"button-sm button-primary button-filled inner-focus"),u=ja("sign-in-plan-button",Mh,Mh,()=>l(),"sign-in-plan-btn",Mh,"button-sm button-primary button-filled",!n?.isPublicView),p=o?ja("delete-challenge-button",WK,d` `,()=>o?.deleteChallenge(),"delete-challenge-btn",Wr,"button-sm button-clear"):ja("delete-collection-button",kZ,d` `,()=>t?.deleteCollection(),"delete-collection-btn",Wr,"button-sm button-clear");async function m(x){x&&(O9($C(Fde,d`${Ude}`,Ode,qde,$s)),cv.show(),await dDe(cv,x,()=>{let w=A.getElementById("start-or-resume");w&&y(c,w)}))}let g=()=>ja("drop-plan-button",vk,d``,()=>m(n),"drop-plan-btn",vk,"button-sm button-clear"),f=d`
      ${ja("submit-loc-button",$A,d` `,()=>t?.localizeCollection()??n?.localizePlan(),"localize-list-btn",$A,"button-sm button-clear margin-right-none")}
      ${zZ}
      `,_=!S.shareLink||s==="bookmarks"?d``:t?d`${P1e(i,t)}`:n?d`${WC(!1,new URL(Rf(n?.plan?.id),location.origin),n?.collection?.name,v.sharingId,!1,"share-plan-btn")}`:o?d`${WC(!1,new URL(nn(o?.challengeDetails?.id),location.origin),o?.challengeDetails?.contentList.name,v.sharingId)}`:d``,h=t?.isChallengeCollection||!v.isAuthenticated||s==="bookmarks"?d``:R1e((x,w,I)=>tE(x,w,I),t,n,o);return d` ${IDe(e)||PDe(e)||LDe(e)?d`
      ${IDe(e)?a:""} ${PDe(e)?c:""} ${LDe(e)?u:""}
      `:""} ${_} ${h} ${sZe(e)?aZe(t,n):""} ${kDe(e)?d`${dZe(n)}`:""} ${nZe(e)?f:""} ${oZe(e)?d`${pZe()}`:""} ${MDe(e)?p:""} ${kDe(e)?d` ${lZe(n)}`:""} ${rZe(e)?g():""} `}function $G(e,t,n){return!e&&!t&&!n?d``:d`
      ${iZe({vm:e,vmPlans:t,vmChallenge:n})}
      `}function ja(e,t,n,o,r,s,i,a=!1){return d` `}function aZe(e,t){let n=d`${t?d``:""}`,o=e?.reportStatus==="Active"||t?.reportStatus==="Active",r=ja("report-a-concern-btn",hk,d` `,()=>TDe(v,null,`${D.lists}/report/concern`,n),e?"collection-report-a-concern-btn":"plan-report-a-concern-btn",hk,"button-sm button-clear margin-right-none",o),s=d`
      ${e?d`

      ${bee}

      ${q(_ee)}

      `:d`

      ${Tme}

      ${q(wme)}

      `}
      `;return d`
      ${r} ${o?s:""}
      `}function lZe(e){return e?ja("delete-plan-button",Wr,d` `,async()=>{O9($C(lpe,upe,d`${e.plan?.contentList.name??""}`,dpe,void 0,void 0,e.plan?.hasParticipants,cpe)),cv.show(),await uDe(cv,e)},"delete-plan-btn",Wr,"button-sm button-clear"):d``}function cZe(e){return ja("plan-progress-button",Rh,d``,()=>tE("progress",void 0,e),"view-plan-progress-btn",Rh,"button button-clear button-block color-text justify-content-flex-start inner-focus")}function uZe(e){return ja("invite-learners-button",Lh,d``,()=>tE("invite",void 0,e),"plan-invite-learners-btn",Lh,"button button-clear button-block color-text justify-content-flex-start inner-focus")}function dZe(e){return e?d`
      • ${cZe(e)}
      • ${uZe(e)}
      `:d``}function pZe(){return d`
        ${[{href:"/training/browse",label:Jn},{href:"/credentials/browse",label:Oo},{href:"/docs",label:Vu},{href:"/shows/browse",label:vi}].map(t=>d`
      • ${t.label}
      • `)}
      `}function NG(e,t){if(!e&&!t)return d``;let n=(e??t)?.collection;if(!n)return d``;let o=e??t,{challengeId:r,learnChallengeId:s,description:i,totalItems:a,name:l,remainingDuration:c,totalDuration:u,isFallbackLocale:p,shouldLocalize:m,sectionCount:g}=n,f=!mt(t),_=t?"plan":o?.isChallengeCollection?"challenge":"collection",h={challenge:"--hero-background-image-light: url('/en-us/media/profile/CSCCollectionHeroImage.png?branch=main');--hero-background-image-dark: url('/en-us/media/profile/CSCCollectionHeroImage.png?branch=main'); --border-gradient-end-color: #271e6d",collection:"--hero-background-image-light: url('/en-us/media/profile/OfficialCollectionsHeroImage.png?branch=main');--hero-background-image-dark: url('/en-us/media/profile/OfficialCollectionsHeroImage.png?branch=main'); --border-gradient-end-color: #053986",plan:"--hero-background-image-light: url(/media/learn/plans/skilling_plan_hero.png?branch=main);--hero-background-image-dark: url(/media/learn/plans/skilling_plan_hero.png?branch=main);--border-gradient-end-color: #152c75"},T={challenge:"has-background-challenge",collection:"has-background-collection",plan:"has-background-plan"},x={challenge:rW,collection:YX,plan:rpe},w=!o?.isPublicView&&!o?.isChallengeCollection?d` `:"";return d` ${e?.isPublicView&&p&&m?Gt(VZ):""}

      ${x[_]}

      ${l} ${o?.collectionOwner?.userId===v.userId?d` `:""}

      ${f?$De(g):""} ${o?.isEditingSummaryTitle?V9(o,o?.isOfficialOrOverride||o?.isChallengeCollection?"has-text-collection-invert":""):""} ${i?d`

      ${i} ${w}

      `:!o?.isEditingSummaryDescription&&!o?.isPublicView&&o?.isChallengeCollection===!1?d`
      ${yF} ${w}
      `:""} ${o?.isEditingSummaryDescription?Q9(o,o?.isOfficialOrOverride||o?.isChallengeCollection?"has-text-collection-invert":""):""} ${MG(e,t)} ${e?.isUserAuthenticated&&a&&u&&c&&o?.isChallengeCollection?d`
      ${KC((u-c)/u,r||s,"width-150")}
      `:""}
      ${DDe(t)} ${Y9(t)}
      ${$G(e,t,void 0)}`}function oE(e,t,n){if(!e&&!t&&!n)return d``;let o=(e??t??n)?.collection;if(!o)return d``;let r=!mt(e),s=!mt(t),i=!mt(n);if(i&&n?.isPublicView)return d``;let{description:a,items:l,name:c,remainingDuration:u,totalDuration:p,type:m,challengeId:g,sectionCount:f}=o,_=e??n??t,h=m!=="bookmarks"&&!_?.isPublicView?d``:"",T=s?"plan":i?"challenge":"collection",x={collection:{light:"url(/media/profile/RegularCollectionsHeroImage.png?branch=main)",dark:"url(/media/profile/RegularCollectionsHeroImageDark.png?branch=main)"},plan:{light:"url(/media/learn/plans/skilling_plan_hero.png?branch=main)",dark:"url(/media/learn/plans/skilling_plan_hero.png?branch=main)"},challenge:{light:"url(/media/learn/challenge/challenges_hero.png?branch=main)",dark:"url(/media/learn/challenge/challenges_hero.png?branch=main)"}};return d`

      ${s?Ah:i?jr:or}

      ${m==="bookmarks"?MA:c} ${r||i||s?d` `:""}

      ${_?.isEditingSummaryTitle?V9(_):""} ${s?$De(f):""} ${a?d`

      ${a} ${h}

      `:!_?.isEditingSummaryDescription&&m!=="bookmarks"?d`
      ${yF} ${h}
      `:""} ${_?.isEditingSummaryDescription?Q9(_):""} ${MG(e,t,n)} ${e?mZe(e):""} ${e?.isUserAuthenticated&&l?.length&&p&&u&&g?d`
      ${KC((p-u)/p)}
      `:""}
      ${DDe(t)} ${Y9(t)}
      ${$G(e,t,n)} `}function DDe(e){return!e||!e.plan?d``:d`

      ${xk}

        ${(e.plan.learningOutcomes??[])?.map(t=>t?d`
      • ${t}
      • `:"")}
      `}function mZe(e){return e?!e.isOfficialOrOverride&&v.tenantId===qo&&e.collectionOwner?.userId===v.userId&&e.collection.id!=="bookmarks"?d`

      ${gZe()}

      `:"":d``}function gZe(){return d`
      ${bF}
      `}function $De(e){if(mt(e))return d``;let t="";switch(e){case 0:return d``;case 1:t=String(Zpe);break;default:t=String(eme).replace("{numberOfMilestones}",(e??"").toString());break}return d`

      ${t}

      `}ot();M();var uc;function UDe(e){uc=e}var sN;function fZe(e){let t=document.createElement("div");y(e,t),sN=new ge(t)}function iN(e,t=!1){let n=e?.sectionsSnapshot?.length??0,o=e?.sectionsSnapshot?.map(l=>({id:l.id,description:l.description||"",name:l.name,items:l.items??[]})),r=l=>{let c=l.items?.length===0,u=o.reduce((p,m)=>(m.id!==l.id&&(p=p&&m.items?.length===0),p),!0);return(c&&!u||!(!c&&u))&&o.length!==1},s=o.map((l,c)=>{let u=c===0&&t;return d`

      ${l.name}

      ${e.isChallengeContentEditable()?d`
      `:d``}
      ${l.description?d`

      ${l.description}

      `:d``}
      `}),i=d``,a=d` ${LK} `;return d` ${e.isChallengeContentCommited()?"":d`

      ${q(lme)}

      `}
      ${s} ${FDe(e.itemsSnapshot,-1,e,n)} ${e.isChallengeContentEditable()?d`
      ${i}${a}
      `:d``}
      `}function ODe(e){if(!e.sections)return d``;let t=e.sections?.map((n,o)=>{let r=o===0;return d`

      ${n.name}

      ${n.description?d`

      ${n.description}

      `:d``}
      `});return d`

      ${e.description}

      ${t} ${NDe(e.items??[],-1)}
      `}function NDe(e,t){let n=e.filter(o=>o.data?.pageKind==="module"||o.data?.pageKind==="path").map((o,r)=>d`
    • `);return d`
        ${n}
      `}function FDe(e,t,n,o){let r=n.sectionsSnapshot.reduce((i,a)=>(a.items?.length===0&&(i+=1),i),0),s=e.map((i,a)=>{if(i.data.pageKind!=="module"&&i.data.pageKind!=="path")return d``;let l=a===0&&e.length===1&&(t===-1||o-r===1);return d`
    • ${n.isChallengeContentEditable()?d`
      `:d``}

      ${uv(i.data.pageKind,i.data.pageType,i.data.url)}

      ${i.data.title}
      ${n.isChallengeContentEditable()?d`
      ${F$({itemIndex:a,itemId:i.data.uid,sectionsCount:o,sourceSectionIndex:t,targetSectionTitle:c=>n.sectionsSnapshot[c]?.name??"",isBusy:n.busy,moveFn:async c=>{n?.moveItemToSection(c.itemIndex,c.sourceSectionIndex,c.targetSectionIndex),Fp(n)}})}
      `:d``}
    • `});return d`
        ${s}
      `}function Fp(e,t="refresh"){let n=new Map,o=document.getElementById("sections-list");if(o){switch(t){case"add":case"delete":e.sectionsSnapshot.forEach(({id:r},s)=>{let i=o?.querySelector(`[data-section-id="${r}"] > .expandable`)?.classList.contains("is-expanded")??s===e.sectionsSnapshot.length-1;n.set(r,i)});break;default:o.querySelectorAll("[data-section-id]").forEach(r=>{let s=r.getAttribute("data-section-id")??"";n.set(s,r.querySelector(".expandable")?.classList.contains("is-expanded")??!1)});break}y(iN(e),o),o.querySelectorAll(".section-item-form").forEach(r=>{let s=r.querySelector("[data-section-id]")?.getAttribute("data-section-id")??"";n.get(s)===!0?(r.querySelector("[data-show-more]")?.setAttribute("aria-expanded","true"),r.querySelector(".expandable")?.classList.add("is-expanded")):(r.querySelector("[data-show-more]")?.setAttribute("aria-expanded","false"),r.querySelector(".expandable")?.classList.remove("is-expanded")),r.querySelectorAll(".popover").forEach(a=>{a&&a.hasAttribute("open")&&a.removeAttribute("open")})})}}function qDe(e,t,n=d``,o=lo,r=Fe,s=!1){let i=d` `,a=document.createElement("div");return y(i,a),new ge(a)}function hZe(e){return d` `}function bZe(e,t){e.preventDefault();let n=e.target,o=n.elements.namedItem("challenge-collection-section-name"),r=o.value;o.classList.remove("input-danger"),so(n);let i=n.elements.namedItem("challenge-collection-section-description").value;if(new Set(t.sectionsSnapshot.map(l=>l.name)).has(r)){o.classList.add("input-danger"),ft(n,"sectionAlreadyExists");return}t.addSection(r,i,t.sectionsSnapshot.length===0?t.itemsSnapshot:[]),t.itemsSnapshot=[],sN.hide(),uc.show(),Fp(t,"add")}function _Ze(e){fZe(hZe(e)),uc.hide(),sN.show()}async function yZe(e,t){let n=e.sectionsSnapshot[t]?.name;return new Promise(o=>{let r=qDe(MK,d`${n?q($K.replace("{name}",n)):q(SA.replace("{number}",`${t+1}`))}`,void 0,hbe,$s);uc.hide(),r.show();let s=r.contentElement.querySelector("button#challenge-confirm-button"),i=r.contentElement.querySelector("button#close-challenge-confirmation-modal");s.setAttribute("data-bi-name","delete-section-confirm"),s.onclick=()=>{e.deleteChallengeSection(t),r.hide(),uc.show(),o()},i.setAttribute("data-bi-name","delete-section-cancel"),i.onclick=()=>{r.hide(),uc.show(),o()}})}function FG(e){if(e.isChallengeContentCommited())return;let t=qDe(sme,d`${ime}`,void 0,Fe,ame);uc.hide(),t.show();let n=t.contentElement.querySelector("button#challenge-confirm-button"),o=t.contentElement.querySelector("button#close-challenge-confirmation-modal");n.setAttribute("data-bi-name","continue-editing-challenge-content"),n.addEventListener("click",()=>{t.hide(),uc.show()}),o.setAttribute("data-bi-name","discard-unsaved-challenge-content"),o.addEventListener("click",()=>{e.resetSections(),e.resetItems(),t.hide()})}async function HDe(e,t){let n=e.target,o=document.getElementById("ms--edit-challenge-collection");n.disabled=!0,n.classList.add("is-loading"),so(o);let r=t.sectionsSnapshot.map(s=>s.id.startsWith("new-section-")?{...s,id:""}:s);try{await t.updateChallengeList(r,t.itemsSnapshot),uc.hide()}catch(s){throw ft(o,"somethingWentWrong"),new Error(`error: ${s.message}`)}finally{n.disabled=!1,n.classList.remove("is-loading")}}M();M();function vZe(e,t){let n=FA,o=iee,r=cee,s=uee,i=fn("me","collections"),a=rh,l=`/${b.data.userLocale}/`;return e==="plan"&&(n=Yde,o=jde,r=Wde,s=Kde,i=fn("me","plans")),e==="challenge"&&(n=BK,o=zK,r=GK,s=VK,i=fn("me","challenges"),t&&(a=QK,l=nn(t,"leaderboard"))),d`

      ${n}

      ${o}

      ${r}

      `}function aN(e="collection",t){return d`
      ${vZe(e,t)}
      `}function UG(e,t=!0){switch(e){case 0:case 200:case 201:case 204:return null;case 403:return t?aN():d`

      ${FA}

      `;case 404:return t?$1e():d`

      ${EA}

      `;case 500:case 502:case 503:case 504:return t?SD():d`

      ${Wu}

      `;default:return d`

      ${Ht}

      `}}var lN;async function Cv(e,t,n){if(!t?.collection&&!n)return;let o=d``,r=document.createElement("div");lN=new ge(r),UDe(lN);let s,i;switch(e){case"collection":let a=or,l=d``,c=d``;try{let p=await Qe.getList(n);if(p.hasError===!1){let m=p.data;a=`${m?.name||""} ${or}`,l=Sv("view-collection",ODe(m),n)}}catch(p){if(p instanceof Error){let m=BD(p.message)||500;m&&(l=UG(m,!1)||d``)}}o=Np("collection",{title:a,body:l,footer:c}),y(o,r);break;case"view":o=Np("challenge",{title:FK,body:Sv("view-challenge-collection",iN(t,!0),t?.collection.id),footer:d``}),y(o,r);break;case"edit":o=Np("challenge",{title:NK,body:Sv("edit-challenge-collection",iN(t,!0),t?.collection.id),footer:oN("challenge",lN,()=>{FG(t)})}),y(o,r),s=r.querySelector("button[type=submit]"),i=r.querySelector("button#cancel-challenge-btn"),s&&(s.setAttribute("data-bi-name","save-challenge-content-btn"),s.onclick=async p=>{p.preventDefault(),await HDe(p,t)}),i&&i.setAttribute("data-bi-name","cancel-edit-challenge-content-btn");let u=r.querySelector("button#ms--challenge-side-panel-close-btn");u&&(u.setAttribute("data-bi-name","close-challenge-content-btn"),u.addEventListener("click",()=>{FG(t)}));break;default:break}if(o)lN.show();else throw new Error(`Invalid side panel content type: ${e}`)}M();M();var OG,xZe=()=>v.tenantId===qo,er={community:{value:kJ},campaign:{value:PJ},event:{value:IJ,targetNameLabel:wJ},work:{value:LJ,targetNameLabel:pA},peers:{value:MJ},students:{value:RJ,targetNameLabel:SJ},myself:{value:DJ},partner:{value:NJ,targetNameLabel:pA,isHidden:!0,additionalField:{id:"mpn-id",inputType:"text",label:gA,placeholder:AJ,required:!0}},targetAccount:{value:$J,targetNameLabel:pA,isHidden:!0,additionalField:{id:"tp-id",inputType:"text",label:mA,placeholder:EJ,subTitle:CJ,required:!0}},other:{value:FJ}},qG={upTo100:_J,over100UpTo1000:yJ,over1000UpTo5000:vJ,over5000UpTo10000:xJ,over10000:TJ},TZe=(e,t,n)=>{let o=new Date(e?.starts??""),r=new Date(e?.ends??"");return[{dateId:"challenge-start-date",timeId:"challenge-start-time",dateLabel:ah,timeLabel:lh,dateName:"start-date",timeName:"start-time",dateValue:Ss(o),timeValue:ov(o.toISOString()),minDateValue:Ss(o),disabled:t,dateChangeHandler:()=>wD(!t),timeChangeHandler:s=>{s.target.setCustomValidity("")}},{dateId:"challenge-end-date",timeId:"challenge-end-time",dateLabel:ch,timeLabel:uh,dateName:"end-date",timeName:"end-time",dateValue:Ss(r),timeValue:ov(r.toISOString()),minDateValue:t?Ss(r):Ss(o),disabled:n,dateChangeHandler:s=>{s.target.setCustomValidity("")},timeChangeHandler:s=>{s.target.setCustomValidity("")}}]};function wZe(e,t=!1,n=!1){return d` ${TZe(e,t,n).map(o=>d`
      `)} `}function SZe(e,t="",n="",o=""){let r=er[t]?.targetNameLabel??"",s=er[t]?.additionalField;Object.entries(er).forEach(([l,c])=>{(l==="targetAccount"||l==="partner")&&(c.isHidden=!xZe())});let i=l=>{[r,s]=CC(l.target,er,[r,s])},a=(l,c)=>l?`${c.toString()}`:void 0;return d`

      ${s?.subTitle??""}

      `}function CZe(e,t,n){return d`
      `}function EZe(){return d` `}function BDe(){if(OG)return;let e=document.createElement("div"),t=EZe();y(t,e),OG=new ge(e)}var cN={input:{id:"challenge-primary-subject",name:"challenge-primary-subject",docon:"search",isFullWidth:!0,placeholder:vW,required:!0},getSuggestions:async()=>[],getTitle:e=>e.displayName||e.value,noResultsTemplate:d`${xi}`,itemTemplate:e=>d`${e.displayName||e.value}`};function HG(e,t,n=!1){if(!e||e.length===0)return d``;let o=e.flatMap(i=>[i,...(i.children||[]).map(a=>({...a,displayName:`${i.displayName||""} - ${a.displayName}`}))]),r=t?o.find(i=>i.displayName===t||i.value===t):void 0;cN.input.disabled=n,cN.initialValue=r,cN.getSuggestions=async i=>{let a=i?.toLowerCase().trim();return o.filter(l=>l.value.toLowerCase().includes(a)||l.displayName?.toLowerCase().includes(a))};let s=Zl(cN);return d`
      ${s}
      `}function BG(e,t=!1,n=!1){return d`

      ${bJ}

      ${SZe(!t,e?.targetAudience,e?.targetName,e?.additionalTargetId)}
      ${dA}
      ${Object.entries(qG).map(([o,r],s)=>{let i=s===0;return d` `})}
      `}function zDe(e,t,n){let o=e.isEditingChallengeDetails,r=e.busy&&e.isEditingChallengeDetails,s=e.challengeDetails??void 0,i=e.isChallengeActive(),a=e.isChallengePast(),l=o===!1||a,c=l||i||!!s?.earlyRegistrationEnabled||!!s?.hasParticipants,u=d`
      ${wZe(s,c,l)} ${HG(e.facets,s?.primarySubjectMatter??"",o===!1)} ${BG(s??{},o,!0)} ${o?CZe(r,"challenge",n??(()=>{})):d``} `;return d`
      ${u} ${sv()}
      `}M();ot();function GDe(e){let t=o=>{let r=document.getElementById("confirmation-panel-body");y(o,r)};async function n(o){let r=document.forms.namedItem("ms--create-challenge-form"),s=r.getElementsByTagName("form-behavior")[0],i=d`

      ${TW}

      `,a=r.querySelector('input[name="challenge-primary-subject"]');a?.removeAttribute("role");let l=await s?.validateForm(r);if(a?.setAttribute("role","combobox"),!l.valid){let x=r.querySelector("[data-form-error-container]");x.onclick=w=>{let I=w.target;if(I.tagName==="A"){let E=I.getAttribute("href");if(E){let Q=E.split("#")[1],O=document.getElementById(Q);if(O){let ye=O.closest('[role="tabpanel"]');if(ye){let Ae=ye.getAttribute("aria-labelledby");Ae&&document.getElementById(Ae)?.click()}}}}},t(i);return}let c=new FormData(r),u=Object.fromEntries(c),p=u.startDate?new Date(`${u.startDate.toString()}T${u.startTime.toString()||"00:00"}`):new Date,m=u.endDate?new Date(`${u.endDate.toString()}T${u.endTime.toString()||"00:00"}`):new Date,g={startDate:new Intl.DateTimeFormat(b.data.userLocale,{day:"2-digit",month:"2-digit",year:"numeric"}).format(p),endDate:new Intl.DateTimeFormat(b.data.userLocale,{day:"2-digit",month:"2-digit",year:"numeric"}).format(m),startTime:iM.format(p),endTime:iM.format(m)},f={listId:u.listId,userId:e.userProfile.userId,name:u.name,description:u.description,starts:p,ends:m,timeZone:"UTC",primarySubjectMatter:u["challenge-primary-subject"],targetAudience:u["target-audience"],eventRelation:u["event-relation"],purpose:u.purpose,expectedParticipantRange:u.expectedParticipantRange},_=er[f.targetAudience]?.additionalField!==void 0;er[f.targetAudience]?.targetNameLabel!==void 0&&(f.targetName=u["target-name"]),_&&(f.additionalTargetId=u["additional-target-id"]);let T=e.collections.find(x=>x.id===f.listId);f&&T&&(e.newChallengeForm=f,o.disabled=!1,i=AZe(f,T,g),r.onsubmit=async()=>{so(r),o.classList.add("is-loading");try{let x=await e.createChallenge();o.classList.remove("is-loading"),x&&x.hasError===!1&&(window.location.href=nn(x.data.id,"details")),x&&x.hasError&&ft(r,rv[x.error.errorCode]||"somethingWentWrong")}catch{o.classList.remove("is-loading"),ft(r,"somethingWentWrong")}}),t(i)}return document.addEventListener("tab-container-changed",o=>{let r=document.getElementById("next-panel"),s=document.getElementById("submit-challenge");return o.tab?.id==="confirmation"?(r.hidden=!0,s.hidden=!1,n(s)):(r.hidden=!1,s.hidden=!0,s.disabled=!0,null)}),d`
      `}function AZe(e,t,n){return d`

      ${or}: ${t.name}

      ${sA}: ${e.name}

      ${px}:

      ${e.description}

      ${ah}: ${n.startDate}

      ${lh}: ${n.startTime}

      ${ch}: ${n.endDate}

      ${uh}: ${n.endTime}

      ${iA}: ${e.primarySubjectMatter}

      ${fx}: ${er[e.targetAudience].value}

      ${e.targetName?d`

      ${er[e.targetAudience].targetNameLabel}: ${e.targetName}

      `:""} ${e.additionalTargetId?d`

      ${e.targetAudience==="targetAccount"?mA:gA}: ${e.additionalTargetId}

      `:""}

      ${hx}: ${e.purpose}

      ${dA}: ${qG[e.expectedParticipantRange]}

      `}M();function VDe(e){return d`

      ${Ih}

      ${HG(e.facets)} `}ot();function QDe(){return d`

      ${SW}

      ${BG(void 0,!0,!0)} `}ot();Mm();var kZe=0;function YDe(e){let{id:t,name:n,description:o,lastModified:r}=e,s=kZe++===0;return d`

      ${o}

      `}function IZe(){return d`

      ${aue}
      `}async function jDe(e){if(!e.collections)return d``;let t=[...e.collections],n=new URLSearchParams(location.search),o=n.get("ref"),r=n.get("listId"),s=Jx("me","collections").toString(),i=null;if((o==="collection"||o==="challenge")&&r){let a=t.findIndex(l=>l.id===r);if(a!==-1)i=t[a],t=t.filter(l=>l.id!==r);else try{let l=await Qe.getList(r);l.hasError===!1&&(i=l.data,e.collections.push(i))}catch{i=null}}return d`
      ${i?d` ${or} ${YDe(i)} ${IZe()} `:d``}

      ${mW}

      ${q(gW.replace("{profileUrl}",s))}

      ${t.map(a=>YDe(a))}
      `}async function WDe(e){return document.addEventListener("tab-container-changed",t=>{let n=document.getElementById("previous-panel");return t.tab?.id!=="select-collection"?(n.hidden=!1,null):(n.hidden=!0,null)}),d`

      ${om}

      ${dW}

      ${e.hasUnexpectedErrorOccurred()?SD():d`
      ${await jDe(e)}
      ${sv()}
      `}
      `}M();var rE=class extends Au{constructor(n,o){super();this.user=n;this.challengeId=o;this.facets=[];this.isPublicView=!1;this._challengeDetails=null;this._challengeSummary=null;this._challengeCreator=null;this._csv=null;this._isEditingDetails=!1;this._isEditingChallengeTitle=!1;this._isEditingChallengeDescription=!1;this._challengeBusy=!1;this._itemsSnapshot=[];this._sectionsSnapshot=[];this._newSectionPosition=0;this._userProfile=n,this.leaderboard=new Z$(o),this.leaderboard.subscribe(He,r=>this.publish(r))}get userProfile(){return this._userProfile}get challengeDetails(){return this._challengeDetails}set challengeDetails(n){this._challengeDetails=n,n&&(n.contentList.sections?.forEach(o=>o.items=o.items?.filter(r=>r.data.pageKind==="path"||r.data.pageKind==="module")),n.contentList.items=n.contentList.items?.filter(o=>o.data.pageKind==="path"||o.data.pageKind==="module"),this.collection=n.contentList)}get challengeSummary(){return this._challengeSummary}set challengeSummary(n){this._challengeSummary=n}get challengeCreator(){return this._challengeCreator}set challengeCreator(n){this._challengeCreator=n}get isEditingChallengeDetails(){return this._isEditingDetails}set isEditingChallengeDetails(n){this._isEditingDetails=n,this.notifyPropertyChanged()}get isEditingSummaryTitle(){return this._isEditingChallengeTitle}set isEditingSummaryTitle(n){this._isEditingChallengeTitle=n,this.notifyPropertyChanged()}get isEditingSummaryDescription(){return this._isEditingChallengeDescription}set isEditingSummaryDescription(n){this._isEditingChallengeDescription=n,this.notifyPropertyChanged()}get isEditing(){return this.isEditingSummaryTitle||this.isEditingSummaryDescription}get itemsSnapshot(){return this._itemsSnapshot}set itemsSnapshot(n){this._itemsSnapshot=n}get sectionsSnapshot(){return this._sectionsSnapshot}set sectionsSnapshot(n){this._sectionsSnapshot=n}get csv(){return this._csv}set csv(n){this._csv=n}isChallengeAdmin(){return this._userProfile.isChallengeAdmin??!1}isChallengeOwner(){return this._challengeDetails!==null?v.userId===this._challengeDetails.userId:!1}isChallengeActive(){return this._challengeDetails!==null?new Date(this._challengeDetails.starts)<=new Date(Date.now())&&new Date(this._challengeDetails.ends)>new Date(Date.now()):!1}isChallengePast(){return this._challengeDetails!==null?new Date(this._challengeDetails.ends)<=new Date(Date.now()):!1}isChallengeUpcoming(){return this._challengeDetails!==null?new Date(this._challengeDetails.starts)>new Date(Date.now())&&this._challengeDetails.earlyRegistrationEnabled===!1:!1}isChallengeContentEditable(){return this.isChallengeAdmin()&&(this.isChallengeUpcoming()||this.isChallengeActive())}async beforeActivate(){if(this.busy)throw new Error("Busy");this.setBusy();try{if(this.challengeDetails=await Hn.getChallenge(this.challengeId),this.challengeDetails!==null&&this.challengeDetails!==void 0){if(this.isChallengeOwner())this.challengeCreator=this.userProfile,this.setHasActiveTakedowns(await Qe.getActiveTakedowns(this.collection?.id));else try{this.challengeCreator=await ns(`id:${this.challengeDetails.userId}`)}catch{this.challengeCreator=null}!this.isChallengeOwner()&&!this.isChallengeAdmin()?this.isPublicView=!0:(this.resetSections(),this.resetItems(),this.facets=await Hn.getFacetProducts(),this.csv=Hn.getChallengeCsv(this.challengeId),this.challengeSummary=await Hn.getChallengeStatistics(this.challengeId),await this.leaderboard.beforeActivate())}}catch{this.challengeDetails=null}this.setReady()}addSection(n,o,r){let s={id:`new-section-${this._newSectionPosition}`,name:n,description:o,items:r??[]};this._newSectionPosition++,this.sectionsSnapshot.push(s)}deleteChallengeSection(n){this.sectionsSnapshot.splice(n,1)}deleteItemInSection(n,o){if(this.collection?.sections===void 0)throw new Error("No sections found in the collection");let r=zr(this.sectionsSnapshot?.[o]);r.items?.splice(n,1),r.itemCount=r.items?.length??0,this.sectionsSnapshot[o]=r}deleteChallengeItem(n){if(this.collection?.items===void 0)throw new Error("No items found in the collection");this.itemsSnapshot.splice(n,1)}moveItemInSection(n,o,r){if(this.collection?.sections===void 0)throw new Error("No sections found in the collection");let s=zr(this.sectionsSnapshot[r]);if(o===-1){let i=s.items?.splice(n,1)[0];s.items?.splice(n-1,0,i)}if(o===1){let i=s.items?.splice(n,1)[0];s.items?.splice(n+1,0,i)}this.sectionsSnapshot[r]=s}async moveItemToSection(n,o,r){if(this.sectionsSnapshot?.[o]&&this.sectionsSnapshot?.[r]){let s=this.sectionsSnapshot[o].items?.[n],i=zr(this.sectionsSnapshot);i[o]?.items?.splice(n,1),i[o].itemCount=i[o]?.items?.length??0,i[r]?.items?.push(s),i[r].itemCount=i[r]?.items?.length??0,this.sectionsSnapshot=[...i]}}moveChallengeSection(n,o){if(this.collection?.sections!==void 0){if(o===-1){let r=this.sectionsSnapshot.splice(n,1)[0];this.sectionsSnapshot.splice(n-1,0,r)}if(o===1){let r=this.sectionsSnapshot.splice(n,1)[0];this.sectionsSnapshot.splice(n+1,0,r)}}}moveChallengeItem(n,o){if(!(this.collection?.items===void 0||n<0||n>=this.itemsSnapshot.length)){if(o===-1&&n>0){let r=this.itemsSnapshot.splice(n,1)[0];this.itemsSnapshot.splice(n-1,0,r)}if(o===1&&n{c.addEventListener("click",()=>{this.setReady()})}),a.addEventListener("submit",async c=>{if(c.preventDefault(),!Lp())return;let u=a.querySelector('button[type="submit"]');u.disabled=!0,u.classList.add("is-loading");let p=a.querySelector('input[name="startDate"]')?.value,m=a.querySelector('input[name="startTime"]')?.value,g=a.querySelector('input[name="endDate"]')?.value,f=a.querySelector('input[name="endTime"]')?.value;o.starts=new Date(`${p}T${m}`),o.ends=new Date(`${g}T${f}`),so(a);try{let _=await Hn.createNewChallenge(o);_&&_.hasError===!1&&(location.href=nn(_.data.id,"details")),_===null?ft(a,"somethingWentWrong"):_.hasError&&ft(a,rv[_.error.errorCode]||"somethingWentWrong")}catch{ft(a,"somethingWentWrong")}finally{u.disabled=!1,u.classList.remove("is-loading"),this.setReady()}})}async toggleShowUserDisplayName(){if(this.busy)throw new Error("Busy");this.setBusy();try{let n=await Qe.toggleShowUserDisplayName(this.collection.id,!this.collection.showUserDisplayName);if(n.hasError===!1){let{data:o}=n;this.collection&&o&&(this.collection=o)}else throw new io({errorCode:n.error.errorCode})}finally{this.setReady()}}async deleteChallenge(){if(this.busy)throw new Error("Busy");this.setBusy();try{let{submitted:n}=await Yn(lv(this.collection.name,hm,cl));n&&(await Hn.deleteChallenge(this.challengeId),location.href=`${nn("home")}`)}finally{this.setReady()}}get busy(){return this._challengeBusy}setBusy(){this._challengeBusy=!0,this.notifyPropertyChanged()}setReady(){this._challengeBusy=!1,this.notifyPropertyChanged()}notifyPropertyChanged(){this.publish(new He)}};async function PZe(e,t){if(!e.challengeDetails)return null;let n=()=>{if(!t.targetAudience)return{targetNameValue:"",additionalTargetIdValue:""};let c=er[t.targetAudience];return c.targetNameLabel?{targetNameValue:t.targetName??"",additionalTargetIdValue:c.additionalField?t.additionalTargetId??"":""}:{targetNameValue:"",additionalTargetIdValue:""}},{targetNameValue:o,additionalTargetIdValue:r}=n(),s=!!e.challengeDetails.earlyRegistrationEnabled||e.isChallengeActive()||e.isChallengePast(),i={earlyRegistrationEnabled:s?e.challengeDetails.earlyRegistrationEnabled:t.earlyRegistrationEnabled??!1,starts:s?e.challengeDetails.starts:t.starts||e.challengeDetails.starts,ends:e.isChallengePast()?e.challengeDetails.ends:t.ends||e.challengeDetails.ends,timeZone:e.challengeDetails.timeZone||"UTC",primarySubjectMatter:t.primarySubjectMatter||e.challengeDetails.primarySubjectMatter},a={targetAudience:t.targetAudience||e.challengeDetails.targetAudience||"other",targetName:o,additionalTargetId:r,eventRelation:e.challengeDetails.eventRelation||"other",purpose:t.purpose||e.challengeDetails.purpose,expectedParticipantRange:t.expectedParticipantRange||e.challengeDetails.expectedParticipantRange||"upTo100"},l={listId:e.challengeDetails.listId,userId:e.challengeDetails.userId,name:t.name??(e.challengeDetails.contentList.name||""),description:t.description??(e.challengeDetails.contentList.description||""),...i,...a};return await e.updateChallengeDetails(l)}function uN(e,t,n,o,r="border-bottom"){return d`

      ${t}

      ${n}
      ${o}
      `}function LZe(e){let t=async i=>{if(i.preventDefault(),!Lp(e.isChallengeContentEditable()))return;let a=i.target,l=a.querySelector('input[name="early-registration"]')?.checked??!1,c=a.querySelector('input[name="start-date"]')?.value,u=a.querySelector('input[name="start-time"]')?.value,p=a.querySelector('input[name="end-date"]')?.value,m=a.querySelector('input[name="end-time"]')?.value,g=a.querySelector('input[name="challenge-primary-subject"]')?.value,f=a.querySelector('select[name="target-audience"]')?.value,_=a.querySelector('input[name="target-name"]')?.value??"",h=a.querySelector('input[name="additional-target-id"]')?.value??"",T=a.querySelector('textarea[name="purpose"]')?.value,x=Array.from(a.querySelectorAll('input[name="expectedParticipantRange"]')).find(I=>I.checked)?.value;so(a);let w=await PZe(e,{earlyRegistrationEnabled:l,starts:new Date(`${c}T${u}`),ends:new Date(`${p}T${m}`),primarySubjectMatter:g,targetAudience:f,targetName:_,additionalTargetId:h,purpose:T,expectedParticipantRange:x});w===null?ft(a,"challengeSomethingWentWrong"):w.hasError?ft(a,rv[w.error.errorCode]||"challengeSomethingWentWrong"):(ft(a,"challengeSaveSuccessful"),e.isEditingChallengeDetails=!1)},n=i=>{if(i){let a=i.elements,{challengeDetails:l}=e;if(l){let c=new Date(l.starts),u=new Date(l.ends),p=l.targetAudience,m=er[p]?.targetNameLabel??"",g=er[p]?.additionalField,f=a.namedItem("target-audience");f.value=p??"other",a.namedItem("early-registration").checked=!!l.earlyRegistrationEnabled,a.namedItem("start-date").value=Ss(c),a.namedItem("start-time").value=ov(c.toISOString()),a.namedItem("end-date").value=Ss(u),a.namedItem("end-time").value=ov(u.toISOString()),a.namedItem("challenge-primary-subject").value=l.primarySubjectMatter??"",m&&(a.namedItem("target-name").value=l.targetName??""),g&&(a.namedItem("additional-target-id").value=l.additionalTargetId??""),CC(f,er,[m,g]),a.namedItem("purpose").value=l.purpose??"";let _=Array.from(i.querySelectorAll('input[name="expectedParticipantRange"]')).find(h=>h.value===l.expectedParticipantRange);_&&(_.checked=!0)}so(i)}},o=document.getElementById("challenge-details-form");if(o){let i=e.challengeDetails?.targetAudience,a=o.elements.namedItem("target-audience");a.value=i??"other";let l=er[i]?.targetNameLabel??"",c=er[i]?.additionalField;CC(a,er,[l,c])}let r=e.isEditingChallengeDetails?d``:d``,s=zDe(e,t,()=>{e.isEditingChallengeDetails=!1,n(o)});return uN("challenge-details",OK,r,s)}function RZe(e,t){let n=((e.collection.moduleCount??0)===1?wx:Tx).replace("{numberOf}",(e.collection.moduleCount??0).toString()),o=d` `;return uN("challenge-content",PK,d``,o)}function MZe(e,t){return d`${LZe(e)}${RZe(e,t)}`}function DZe(e){if(!e.challengeSummary||!e.collection)return d``;let{participantsJoined:t,totalItemsCompleted:n,participantsCompleted:o,participantsStarted:r}=e.challengeSummary;return uN("challenge-summary",VJ,d``,J$(t+o+r,n,o),"border-none")}function $Ze(e){let t=e.leaderboard.items.length===0||e.leaderboard.unexpectedError||!e.csv?d``:d` ${cie} `,n=e.isChallengeActive()||!!e.challengeDetails?.earlyRegistrationEnabled;return uN("leaderboard",Bu,t,oDe(e.leaderboard,e?.collection?.totalItems??0,v.userId,!n))}function NZe(e){return d`${DZe(e)}${$Ze(e)}`}function FZe(){let e=String(JJ).replace("{url}",nn("home"));return d`

      ${fJ}

      ${q(e)}

      `}function zG(e,t,n,o){return e.challengeDetails?e.isPublicView?aN("challenge",e.challengeId):d`
      ${e.hasActiveTakedowns?n?.(WJ,fA.replace("{collectionPageLink}",Wi(e.collection.id).href)):""} ${TK}
      ${MZe(e,t)}
      ${NZe(e)}
      `:FZe()}M();function Hf(e,t){return d`
      ${t}
      `}function GG(e,t){return d`
      `}M();M();M();var dc=class extends nc{constructor(n,o){super({title:ARe(o),load:async(r,s)=>{try{let i=await Hn.getChallenges(n,o,r,s);return this._totalCount=i?.count??0,{items:i?.challenges??[],totalCount:i?.count??0}}catch{return this._unexpectedError=1,{items:[],totalCount:0}}},paging:!0,pageSize:6});this._totalCount=0}get unexpectedError(){return this._unexpectedError}get totalCount(){return this._totalCount}};function KDe(e,t,n="joined"){let o=gn.format(new Date(e.starts)),r=gn.format(new Date(e.ends)),s=t==="past"?Wfe.replace("{endDate}",r):t==="upcoming"?Kfe.replace("{startDate}",o):jfe.replace("{endDate}",r);return d`

      ${jr}

      ${e.isLegacyChallenge?d`

      ${e.contentList.name}

      `:d`

      ${e.contentList.name}

      `}

      ${e.contentList.description}

      ${s}

      `}function JDe(e,t){let{participantsJoined:n,totalItemsCompleted:o,participantsCompleted:r,participantsStarted:s}=e.participantStatistics;return d`${KDe(e,t,"created")} `}function XDe(e,t){let n=IRe(e,t),{id:o,itemsCompleted:r,contentList:{totalItems:s}}=e;return d`${KDe(e,t)} ${t!=="upcoming"&&!e.isLegacyChallenge?d` `:d``} `}var dN=class extends Ve{constructor(){super();this.activeChallenges=new dc("created","active");this.upcomingChallenges=new dc("created","upcoming");this.pastChallenges=new dc("created","past");this.activeChallenges.subscribe(He,n=>this.publish(n)),this.upcomingChallenges.subscribe(He,n=>this.publish(n)),this.pastChallenges.subscribe(He,n=>this.publish(n))}get hasCreatedChallenges(){return this.activeChallenges.items.length>0||this.upcomingChallenges.items.length>0||this.pastChallenges.items.length>0}async beforeActivate(){await Promise.all([this.activeChallenges.beforeActivate(),this.upcomingChallenges.beforeActivate(),this.pastChallenges.beforeActivate()])}};function pN(e,t,n){let o={columns:3,cards:!0},r=d``;return n?r=d`

      ${String(IK).replace("{filter}",t)}

      `:r=MC(e,s=>JDe(s,t),o,!1),d`

      ${e.title}

      ${r} `}M();var mN=class extends Ve{constructor(){super();this.activeChallenges=new dc("joined","active");this.upcomingChallenges=new dc("joined","upcoming");this.pastChallenges=new dc("joined","past");this.activeChallenges.subscribe(He,n=>this.publish(n)),this.upcomingChallenges.subscribe(He,n=>this.publish(n)),this.pastChallenges.subscribe(He,n=>this.publish(n))}get hasJoinedChallenges(){return this.activeChallenges.items.length>0||this.upcomingChallenges.items.length>0||this.pastChallenges.items.length>0}async beforeActivate(){await Promise.all([this.activeChallenges.beforeActivate(),this.upcomingChallenges.beforeActivate(),this.pastChallenges.beforeActivate()])}};function gN(e,t,n){let o={columns:3,cards:!0},r=d``;return n?r=d`

      ${String(EK).replace("{filter}",t)}

      `:r=MC(e,s=>XDe(s,t),o,!1),d`

      ${e.title}

      ${r} `}var sE=class extends Ve{constructor(n){super();this.user=n;this.createdChallenges=new dN;this.joinedChallenges=new mN;this._userProfile=n,this.createdChallenges.subscribe(He,o=>this.publish(o)),this.joinedChallenges.subscribe(He,o=>this.publish(o))}get userProfile(){return this._userProfile}isChallengeAdmin(){return this._userProfile.isChallengeAdmin??!1}async beforeActivate(){let n=[this.joinedChallenges.beforeActivate()];(this.isChallengeAdmin()||v?.tenantId===qo)&&n.push(this.createdChallenges.beforeActivate()),await Promise.all(n)}};function ZDe(e){return d`
      ${e}
      `}function UZe(){return d` ${om} `}function e$e(e){return d`
      ${e==="joined"?d`
      ${X2}
      `:d``} ${e==="joined"?X2:kK} ${e==="created"?UZe():d``}
      `}function OZe(e){let t=e.activeChallenges.items.length===0,n=e.upcomingChallenges.items.length===0,o=e.pastChallenges.items.length===0,r=d``;if(t&&n&&o)r=e$e("created");else{let s=y9("created",e.activeChallenges.totalCount,e.upcomingChallenges.totalCount,e.pastChallenges.totalCount);r=d`
      ${ZDe(s.map(([i,a])=>GG(i,a)))} ${Hf("created-active",pN(e.activeChallenges,"active",t))} ${Hf("created-upcoming",pN(e.upcomingChallenges,"upcoming",n))} ${Hf("created-past",pN(e.pastChallenges,"past",o))}
      `}return d`

      ${AK}

      ${r}
      `}function qZe(e){let t=e.activeChallenges.items.length===0,n=e.upcomingChallenges.items.length===0,o=e.pastChallenges.items.length===0,r=d``;if(t&&n&&o)r=e$e("joined");else{let s=y9("joined",e.activeChallenges.totalCount,e.upcomingChallenges.totalCount,e.pastChallenges.totalCount);r=d`
      ${ZDe(s.map(([i,a])=>GG(i,a)))} ${Hf("joined-active",gN(e.activeChallenges,"active",t))} ${Hf("joined-upcoming",gN(e.upcomingChallenges,"upcoming",n))} ${Hf("joined-past",gN(e.pastChallenges,"past",o))}
      `}return d`

      ${CK}

      ${r}
      `}function VG(e){return d` ${e.isChallengeAdmin()||v.tenantId===qo?OZe(e.createdChallenges):""} ${qZe(e.joinedChallenges)} `}var iE=class extends Ve{constructor(){super();this.facets=[];this._collections=[];this._newChallengeForm={};this._unexpectedError=0;this._userProfile=v}get userProfile(){return this._userProfile}get collections(){return this._collections}get newChallengeForm(){return this._newChallengeForm}set newChallengeForm(n){this._newChallengeForm=n}async beforeActivate(){let n=await HIe(!0);if(n===null){this._unexpectedError=1;return}else this._collections=n;if(this._collections)try{let o=await Hn.getFacetProducts();o&&(this.facets=o)}catch{}}async createChallenge(){return await Hn.createNewChallenge(this.newChallengeForm)}hasUnexpectedErrorOccurred(){return this._unexpectedError===1}};var fN=e=>!!e.isChallengeAdmin||v.tenantId===qo,t$e="uhf-container padding-inline-xs padding-inline-xxxl-desktop padding-block-lg",HZe=e=>d`${e===null?d``:fN(e)?d` ${om} `:d``}`;function BZe(e,t,n){let[o,r]=e;return d`

      ${t}

      ${n}

      `}function n$e(e,t){t.getElementsByClassName("collection button")[0]?.remove(),t.getElementsByClassName("add-item-popover")[0]?.remove(),t.hidden=!1,t.querySelector(".supertitle")?.remove(),t.setAttribute("style",`--hero-background-image-light: url('/en-us/media/learn/challenge/challenges_hero.png?branch=live'); --hero-background-image-dark: url('/en-us/media/learn/challenge/challenges_hero.png?branch=live');`),t.classList.add("background-color-body-accent","gradient-border-body-accent"),t.classList.replace("hero-xs","hero-xxs");let o=t.querySelector("#hero-body-name");if(o.textContent=rm,o.classList.replace("margin-bottom-sm","margin-bottom-xxs"),o.parentElement?.classList.remove("has-loading-skeleton"),o.parentElement?.classList.add("padding-left-xxxl-desktop"),document.querySelector(".hero-content").classList.remove("has-text-docs-invert"),e!==null&&fN(e)){let s=t.querySelector("#hero-body-description");s.textContent=oJ}t.classList.remove("has-loading-skeleton","has-background-challenge","gradient-border-challenge")}function o$e(){let e=document.getElementById("how-it-works");e.hidden=!1,e.classList.remove("has-loading-skeleton");let t=e.querySelector(".container");t.classList.remove("is-max-desktop");let n=t.querySelector(".title");y(d`${q(rJ)}`,n);let o=e.querySelector(".columns"),r=O$.challenges.map(i=>BZe([i.imageUrlLight,i.imageUrlDark],i.title,i.description)),s=d`
        ${r.map(i=>d`
      • ${i}
      • `)}
      `;y(s,o),o.classList.remove("columns")}async function r$e(e){let t=document.querySelector(".hero-content"),n=document.createElement("div");if(t.children[0]?.appendChild(n),n.classList.add("padding-top-xs"),y(HZe(e),n),e===null)return;let o=new sE(e);await o.beforeActivate();let r=document.getElementById("challenge-container"),s=document.createElement("div");s.id="challenges-home",s.classList.add(...t$e.split(" ")),r?.appendChild(s);let i=()=>{let a=VG(o);y(a,s),DC(s)};o.subscribe(He,i),i()}async function s$e(e){if(e===null||!fN(e)){location.href=`/${b.data.userLocale}/404`;return}let t=document.getElementById("challenge-container"),n=document.querySelector(".hero"),o=document.getElementById("how-it-works");n.remove(),o.remove();let r=new iE;await r.beforeActivate(),(async()=>{let i=await WDe(r);y(i,t),PRe()})(),fu(document.body)}async function i$e(e,t){if(t===null||!fN(t)){location.href=`/${b.data.userLocale}/404`;return}let n=document.getElementById("challenge-container");if(!e||t===null){n.remove(),tN(document.querySelector(".hero"));return}let o=new rE(t,e);await o.beforeActivate();let r=document.createElement("div");r.id="challenge-detail",n?.appendChild(r);let s=()=>{let i=d`${oE(void 0,void 0,o)}${zG(o,Cv,JC,t$e)}`;y(i,r)};o.subscribe(He,s),s(),BDe(),fu(document.body)}async function a$e(e,t){let n=t,o=document.getElementById("how-it-works");if(o.remove(),o.hidden=!1,!e){tN(t);return}n=document.getElementById("challenge-container"),await sDe(e,n,o)}async function zZe(e,t){let n=document.getElementById("article-header-breadcrumbs")||void 0,o=e.substring(1).split("/").filter(i=>i),r=o[1]==="test"?o[3]:o[2],s=o[1]==="test"?o[4]:o[3];if(await fe,!r||r==="home"){let i=v.isAuthenticated?await ns("me"):null;n$e(i,t),r$e(i),o$e()}else if(r==="new"){let i=v.isAuthenticated?await ns("me"):null;s$e(i)}else if(s==="details"){t.remove(),HD("details",n);let i=v.isAuthenticated?await ns("me"):null;i$e(r,i)}else!s||s==="leaderboard"?(t.hidden=!1,HD("leaderboard",n),a$e(r,t)):oe.href=`/${b.data.userLocale}/404`}var l$e=async()=>{let e=document.querySelector(".hero");e.hidden=!0,await zZe(oe.pathname,e)};async function c$e(){await l$e()}M();M();var t$n=Tv("ms--lists-violation-banner",gee,d`${q(fee)}`,hee);M();function aE(e){e={...{backgroundColor:"primary"},...e};let n=d` ${e.hasIcon?d``:""} `;return d`
      ${"title"in e?d`

      ${n} ${e.title}

      `:""} ${"message"in e?d`

      ${"title"in e?"":n} ${q(e.message)}

      `:""}
      ${e.isDismissable?d``:""}
      `}M();M();function u$e(e){return e.plan?d` ${e.isOfficialOrOverride||e.isChallengeCollection?NG(void 0,e):oE(void 0,e)} ${v.isAuthenticated?YZe(e):GZe()} `:JZe()}function GZe(){return d`

      ${q(Ede)}

        ${O$.plans.map(e=>d`
      • ${e.title}

        ${e.description}

      • `)}
      `}function VZe(e){if(mt(e))return d``;let t="";switch(e){case 0:t=String(tme);break;case 1:t=String(Vde);break;default:t=String(Qde).replace("{numberOfMilestones}",(e??"").toString());break}return d`

      ${t}

      `}function QZe(e){if(!e.plan||!e.isCompleted())return d``;let t=e.collection?.name??"",n=new URL(Rf(e.plan.id),location.origin),o=String($de).replace("{title}",t);return d`

      ${Nee}

      ${o}

      ${Nde}

      ${xG(t,n,v.sharingId,!1,!0)}
      `}function YZe(e){return!e.plan||!e.collection?d``:d`
      ${QZe(e)} ${jZe(e)} ${pG({wrapper:VD})}
      ${VZe(e.collection.sectionCount??0)}
      ${wG(e,wk)}
      `}function jZe(e){let t=[];return e.hasActiveTakedowns&&v.userId===e.collection?.userId&&t.push(WZe()),e.editResultCode!==-1&&t.push(KZe(e)),t}function WZe(){return d`
      ${Tv("ms--plans-violation-banner",yme,d`${q(vme)}`,xme)}
      `}function KZe(e){return e.editResultCode===200?aE({id:"plan-editing-notification",backgroundColor:"success",additionalClasses:"margin-top-sm margin-inline-xs",message:Sk,hasIcon:!0,isDismissable:!0,icon:"docon-status-success-outline"}):e.editResultCode>=400?aE({id:"plan-editing-notification",backgroundColor:"info",additionalClasses:"margin-top-sm margin-inline-xs",message:Ht,hasIcon:!0,isDismissable:!0}):""}function JZe(){let e=fn("me","plans").toString();return TG(e,"plan")}function d$e(e){y(XZe(),e),e.classList.add("hero","gradient-border-right","gradient-border-body"),e.setAttribute("style",`--hero-background-image-light: url('/en-us/media/learn/challenge/challenge_not_found.svg?branch=main'); --hero-background-image-dark: url('/en-us/media/learn/challenge/challenge_not_found.svg?branch=main')`),e.classList.remove("has-loading-skeleton","hero-xs","has-background-challenge","gradient-border-challenge")}function XZe(){return d`

      ${Bde}

      ${zde}

      `}async function p$e(){await ZZe()}async function ZZe(){let e=document.querySelector("[data-main-column]");if(!e)return;let t=vMe(location.pathname);if(!t){d$e(e);return}if(document.referrer.includes("/plans/ai/form")){let r=document.createElement("div"),s=aE({id:"plan-editing-notification",backgroundColor:"success",message:Sk,hasIcon:!0,isDismissable:!0,icon:"docon-status-success-outline"});y(s,r),e.parentNode?.insertBefore(r,e)}await fe;let n=new Rr(t);await n.beforeActivate();let o=async()=>{y(u$e(n),e),fu(document.body),cc({wrapper:VD}),TMe(e),L$(document.getElementById("plan-detail-body"))};n.subscribe(He,o),v.subscribe(xn,o),o()}var QG="sign-in-after-learn-complete";function eet(e){let t=me(oe.search);return t[e]="true",`${oe.protocol}//${oe.hostname}${oe.pathname}?${V(t)}${oe.hash}`}async function tet(e){await fe,v.isAuthenticated||Array.from(document.querySelectorAll(`.${qa}`)).forEach(n=>{n.setAttribute("href",eet(e))})}function m$e(){let e=me(oe.search);return e[QG]==="true"?(e[QG]=null,en(e,"replaceState"),!0):!1}function g$e(e){e.moduleCompletedThisPageView&&tet(QG)}M();function f$e(e){let t="";return L.supportLevel==="development"&&L.accessLevel==="online"&&location.hostname.startsWith("ppe.preview")?t="630f400e5ecc44019564":L.supportLevel==="development"&&L.accessLevel==="online"?t="3e1dd7a2769cc245c17d":t="7f9273caa02d97194b28",`${D.githubOAuth}?client_id=${t}&scope=repo%20read:org%20workflow&redirect_uri=${encodeURIComponent(e.href)}`}function h$e(){let e=document.createElement("div"),t=new ge(e);return y(d` `,t.contentElement),t}function jG(e,t,n,o){let r=document.createElement("div"),s=new ge(r),i=()=>{s.hide()};return y(d` `,s.contentElement),s}function lE(e){let t=document.createElement("div"),n=new ge(t);return y(d` `,n.contentElement),n}function b$e(){let e=k("pr_repo");if(e){let{pathname:t}=new URL(e);return t.split("/").slice(1)}return[]}function Ev(){return sr()?.branch}async function net(e){let t=k("pr_branch"),n=k("source_path"),o=b$e();if(!o||!t||!n)return yce;let r=o[0],s=o[1],i=await xIe(r,s,n,t),a=i.content,l=i.sha;if(!a||!l)return vce;let{content:c,message:u}=e(a),{error:p}=await TIe(r,s,n,u,c,t,l);return p}function _$e(e,t){let n="",o=e.split(` `);return oet(o,"hidden_question_numbers"),v$e(o,"module_assessment_regen_label",t),n=wh,{content:o.join(` `),message:n}}function y$e(e,t){let n="",o=e.split(` `);return v$e(o,"hidden_question_numbers",JSON.stringify(t)),n=Sh,{content:o.join(` `),message:n}}function v$e(e,t,n){let o=YG(e,"metadata");if(o===-1)throw new Error("metadata not found in YAML content.");let s=`${e[o+1].match(/^\s*/)?.[0]||""}${t}: ${n}`,i=YG(e,t);if(i!==-1)e[i]=s;else{let a=o+1;e.splice(a,0,s)}return e}function oet(e,t){let n=YG(e,t);return n!==-1&&e.splice(n,1),e}function YG(e,t){let n=new RegExp(`^\\s*${t}\\s*:\\s*.*\\s*$`);return e.findIndex(o=>n.test(o))}function ret(){vIe()}async function x$e(e){return e?L.supportLevel==="development"&&L.accessLevel==="local"||await M1(e.access_token)?!0:(ret(),!1):!1}async function T$e(e,t,n){if(!e)return!1;let r=(await yIe(t,n,e))?.permissions;return r&&typeof r.push=="boolean"?r.push:!1}async function w$e(){let e=set();e&&await aet(e)}function set(){let e=location.search;return new URLSearchParams(e).get("code")}function iet(){let e=new URLSearchParams(location.search);e.delete("code"),history.pushState({},document.title,`${location.pathname}?${e.toString()}`)}async function aet(e){if(e){iet();let t=await wIe(e);if(t&&t.access_token)return localStorage.setItem("gitHubToken",JSON.stringify(t)),t;lE(_ce).show()}return null}function S$e(e){e.subscribe(Pu,async t=>{!t.passed||!t.updated||!t.unit.item||Ee({actionType:Re.OTHER,behavior:Ce.OTHER,content:{type:"learn-unit-completed",unit:{uid:t.unit.item.uid,completed:!0},module:{uid:t.module.item.uid,completed:!!t.module.progress&&t.module.progress.status==="completed"},paths:t.paths.map(n=>({uid:n.item.uid,completed:!!n.progress&&n.progress.status==="completed"})),achievements:t.achievements.map(n=>({uid:n.uid,type:n.type}))}})})}function C$e(e){let{isChromeless:t}=e;t&&Te.then(()=>document.getElementById("next-section").classList.remove("is-hidden-mobile","is-hidden-portrait"))}var pc=St(),mc=b.data.userLocale,Up={async cancelAppliedSkillAssessment(e){let t={branch:pc,locale:mc},n=`${D.learn.skillAssessment}/credential/appliedskill/session/${e}?${V(t)}`,r=N(n,{method:"DELETE"}),s=await R(r);if(ee(s),!s.ok)throw s.status===401?new pe(s,"UnauthorizedError"):new pe(s,"UnexpectedError")},async createAppliedSkillAssessment(e,t,n,o){if(o)throw new pe({statusText:"Captcha is required"},"BadRequestError");let r={branch:pc,locale:mc,...L.reviewFeatures?{skipverification:n,displayCaptcha:o}:{}},s=`${D.learn.skillAssessment}/credential/appliedskill/applied-skill.${e}${Ot?"-test":""}/session/launch?${V(r)}`,i={method:"POST",body:JSON.stringify({captchaToken:t})},a=N(s,i),l=await R(a);if(ee(l),l.ok)return await l.json();throw l.status===400?new pe(l,"BadRequestError"):l.status===401?new pe(l,"UnauthorizedError"):new pe(l,"UnexpectedError")},reportLabStatus(e){Ee({behavior:Ce.OTHER,actionType:Re.OTHER,content:{event:"applied-skills-assessment",labInstanceId:e.id,message:e.message}})},async createDisabledAppliedSkillsListItem(e){if(!e)throw new pe({statusText:"missing id parameter"},"MissingRequiredParameterError");let t={branch:pc,locale:mc},n=`${D.learn.skillAssessment}/credential/appliedskill/author/disabledAppliedSkills/${e}?${V(t)}`,r=N(n,{method:"POST"}),s=await R(r);if(ee(s),!s.ok)throw s.status===400?new pe(s,"BadRequestError"):s.status===403?new pe(s,"ForbiddenError"):new pe(s,"UnexpectedError")},async deleteDisabledAppliedSkillsListItem(e){if(!e)throw new pe({statusText:"missing id parameter"},"MissingRequiredParameterError");let t={branch:pc,locale:mc},n=`${D.learn.skillAssessment}/credential/appliedskill/author/disabledAppliedSkills/${e}?${V(t)}`,r=N(n,{method:"DELETE"}),s=await R(r);if(ee(s),!s.ok)throw s.status===403?new pe(s,"ForbiddenError"):s.status===404?new pe(s,"NotFoundError"):new pe(s,"UnexpectedError")},async getDisabledAppliedSkillsList(){let e={branch:pc,locale:mc},t=`${D.learn.skillAssessment}/credential/appliedskill/author/disabledAppliedSkills?${V(e)}`,o=N(t,{method:"GET"}),r=await R(o);if(ee(r),r.ok)return await r.json();throw r.status===403?new pe(r,"ForbiddenError"):new pe(r,"UnexpectedError")},async getAppliedSkill(e,t){if(e==null)throw new pe({statusText:"missing id parameter"},"MissingRequiredParameterError");let n={branch:pc,locale:mc},o=`${D.learn.skillAssessment}/credential/appliedskill/${e}/detail?${V(n)}`,s=N(o,{method:"GET"}),i=await R(s);if(ee(i),i.ok){let a=await i.json();return t==="true"&&L.reviewFeatures&&(a.retakeEligibleAt=Date.now().toString(),a.isCurrentlyEligible=!0),!S.disabledAppliedSkills&&"isDisabled"in a&&delete a.isDisabled,a}throw new pe(i,"UnexpectedError")},async getAppliedSkillAssessment(e,t){if(!e)throw new pe({},"NotFoundError");let n={branch:pc,locale:mc,captchaToken:t,...L.reviewFeatures?{displayCaptcha:t!==null}:{}},o=`${D.learn.skillAssessment}/credential/appliedskill/session/${e}?${V(n)}`,s=N(o,{method:"GET"}),i=await R(s);if(ee(i),i.ok)return await i.json();throw i.status===401?new pe(i,"UnauthorizedError"):i.status===404?new pe(i,"NotFoundError"):new pe(i,"UnexpectedError")},async getAppliedSkillAssessmentReport(e,t){if(!e)throw new pe({},"NotFoundError");let n={branch:pc,locale:mc},o=`${D.learn.skillAssessment}/credential/appliedskill/session/${e}/scorereport?${V(n)}`,s=N(o,{method:"GET"}),i;try{i=await R(s,void 0,65*1e3),ee(i)}catch(a){throw a.name==="AbortError"?new pe({},"TimeoutError"):new pe({},"UnexpectedError")}if(i.ok){let a=await i.json();return t==="true"&&L.reviewFeatures&&(a.appliedSkill.retakeEligibleAt=Date.now().toString(),a.appliedSkill.isCurrentlyEligible=!0),!S.disabledAppliedSkills&&"isDisabled"in a.appliedSkill&&delete a.appliedSkill.isDisabled,a}throw i.status===401?new pe(i,"UnauthorizedError"):i.status===404?new pe(i,"NotFoundError"):new pe(i,"UnexpectedError")},async scoreAppliedSkillAssessment(e){let t={branch:pc,locale:mc},n=`${D.learn.skillAssessment}/credential/appliedskill/session/${e}/score?${V(t)}`,r=N(n,{method:"PUT"}),s=await R(r);if(ee(s),!s.ok)throw s.status===401?new pe(s,"UnauthorizedError"):new pe(s,"UnexpectedError")},async getAppliedSkillLastFailedAttempts(e=0,t=10){let n={branch:pc,locale:mc,page:e+1,pageSize:t},o=`${D.learn.skillAssessment}/credential/appliedskill/attempts/lastfailed?${V(n)}`,s=N(o,{method:"GET"}),i=await R(s);if(ee(i),i.ok)return i.status===204?{appliedSkillsLastFailedAttempts:null,totalCount:0}:await i.json();if(i.status===404)return{appliedSkillsLastFailedAttempts:null,totalCount:0};throw new pe(i,"UnexpectedError")}};var WG={filterCriteria:{roles:[],levels:[],products:[]},facets:["roles","levels","products"],hideCompleted:!0,orderBy:{default:"popularity desc,last_modified desc,title",terms:null}};function cE(e){return e==="home"?9:10}function Op(e,t){let n={branch:uet(t),locale:e.locale,terms:e.terms,facet:[],$filter:cet(e.filter),$orderBy:e.order,$skip:e.skip,$top:e.top,excludeUids:e.excludeUids},o=`${det(t)}?${V(n,!0)}`;return R(N(o,{method:"GET"})).then(s=>{if(s.ok)return s.json();throw{error:s.json()}})}function cet(e){let t=[];for(let n in e){let r=(e[n]||[]).map(s=>n!=="resource_type"&&n!=="type"?`(${n}/any(t: t eq '${s}'))`:`(${n} eq '${s.replace("_"," ")}')`).join(" or ");r.length&&t.push(`(${r})`)}return t.join(" and ")}function uet(e){if(L.accessLevel==="local"||L.supportLevel==="development"&&L.accessLevel==="online")return"main";if((e==="home"||e==="topiclanding")&&L.supportLevel==="production"&&L.reviewFeatures)return"live";let t=me(location.search);return t["api-branch"]||t.branch||""}function det(e){return(e==="home"||e==="topiclanding")&&v.isAuthenticated?D.browse.learnHomePersonalized:D.browse.learnHome}M();M();function Wa(e){let t=[],n=e.display_products?.[0];n&&t.push(n);let o=e.display_roles?.[0];o&&t.push(o);let r=e.levels?.[0],s=e.display_levels?.[0];if(s)t.push(s);else if(r&&r in Ps.levels){let c=Ps.levels[r];t.push(c)}let i=e.display_event_groups?.[0];i&&t.push(i);let a=e.display_azure_categories?.[0];a&&t.push(a);let l=e.display_languages?.[0];return l&&t.push(l),t}function hN(e,t){return e?tn(e):t?aM(t):""}M();var l2n=24*60*60*1e3;function gc(e){let t=[];for(let n in e){let o=Object.keys(e[n]);if(o.length>0){let r=n.charAt(0),s=n!=="resource_type"&&n!=="type"?`${n}/any(${r}: `+o.map(i=>`${r} eq '${i}'`).join(" or ")+")":o.map(i=>`${n} eq '${i.replace("_"," ")}'`).join(" or ");t.push(`(${s})`)}}return t.join(" and ")}function uE(e){let n=`learn-${e.uid?qn(e.uid):_t()}-title`;return d`

      ${Ps.resource_type[e.resource_type]}

      ${e.title}
      `}function P$e(e){return(t,n)=>(t[n[e]]=n,t)}function pet(e){let{progress:t}=e,n=e.duration_in_minutes??e.hours_to_complete;if(!t||t.status==="notStarted"||typeof n!="number")return"";if(t.status==="inProgress"&&n){let r=`${Math.floor((n-t.remainingTime)/n*100)}%`;return d``}return d` `}M();function zf(e){let t=e.browseType;switch(t){case"home":case"topiclanding":return get({items:e.items});default:throw new Error(`Cannot create list item html for unsupported browse type: ${t}.`)}}function met(e,t){let n=t.duration_in_minutes??t.hours_to_complete;if(!e||e.status==="notStarted"||typeof n!="number")return"";if(e.status==="inProgress"&&n){let r=`${Math.floor((n-e.remainingTime)/n*100)}%`;return d`${r}`}return d` ${Kn} `}function get(e){let t=e.items;return d`${t.map(n=>{n.url=qe(n.url,Be.userLocale);let r=`trendinglist-${n.uid?qn(n.uid):_t()}-title`,s=n.progress_status?d``:"",i=Wa(n);return d`
    • ${Ps.resource_type[n.resource_type]||n.resource_type}

      ${n.title}
    • `})}`}M();function Av(e,t){return(e==="lit"?d:K)`

      ${t?.title??uge}

      `}function L$e(e){if(!S.shareLink)return null;let t=!1,n=_t(),o=document.createElement("div");o.setAttribute("data-bi-name","share-links");let r="display-inline-desktop",s="padding-xxs padding-none-tablet";async function i(m,g){if(m=decodeURIComponent(m),await pM(m,g.target)&&!t){let _=document.querySelector(`#${n}`);if(!_)return;let h=_.querySelector(".copyMessage");if(!h)return;h.textContent=$h,t=!0,setTimeout(()=>{h.textContent="",t=!1},5e3)}}function a(m,g){return d`
      ${g?d` `:d``}

      ${vee}

      ${m}

      `}function l(m,g,f,_=!1){let h="button button-clear inner-focus button-block font-size-sm font-weight-normal padding-xxs";return d` `}let c=[{title:_m,iconClass:"docon-linked-in-logo",detailClass:"popover linked-in-share",dataBiName:"linkedin",hrefExtractor:m=>u(m).linkedIn.href},{title:ol,iconClass:"docon-mail-message",detailClass:"popover-center share-email",dataBiName:"email",hrefExtractor:m=>u(m).email.href},{title:Em,iconClass:"docon-xlogo-share color-text font-size-md",detailClass:"popover-center share-twitter",dataBiName:"twitter",hrefExtractor:m=>u(m).twitter.href},{title:im,iconClass:"docon-facebook-share color-text",detailClass:"popover-right share-facebook",dataBiName:"facebook",hrefExtractor:m=>u(m).facebook.href},{title:Ck,iconClass:"docon-copy-link",detailClass:"popover-right",dataBiName:"copy_url",hrefExtractor:m=>u(m).copy.href,isCopy:!0}];function u(m){let g=m.awardType.toLowerCase(),f=hU.replace("{achievementTitle}",`"${m.title}"`).replace("{achievementType}",g),_=encodeURIComponent(Hx).replace(encodeURIComponent("{articleTitle}"),m.title),h=`${encodeURIComponent(f)}${encodeURIComponent(` `)}`,T=encodeURIComponent(`https://${oe.host}/api/achievements/share/${b.data.userLocale}/${v.userName}/${m.id}?sharingId=${v.sharingId}`),x=g==="badge"?"MSLearnBadge":g==="trophy"?"MSLearnTrophy":"";return{linkedIn:{href:`https://www.linkedin.com/feed/?shareUrl=${T}&shareActive=true&text=${h}`},email:{href:`mailto:?subject=${_}&body=${h}${T}`},twitter:{href:`https://twitter.com/share?url=${T}&text=${h}&hashtags=${x}`},facebook:{href:`https://www.facebook.com/sharer/sharer.php?u=${T}"e=${h}&hashtag=${x}`},copy:{href:T}}}let p=d`

      ${c.map(m=>d`
      `)}
      `;return y(p,o),o}function fet(e){let t=e.target;!e.isTrusted||!t.hasAttribute(Lo.name)||Ro(t,{actionType:Re.OTHER,behavior:t.open?Ce.EXPAND:Ce.REDUCE,content:{name:Cl(t)}})}M();ot();var het={appliedskill:"Applied Skill",cert:Sc,course:ra,episode:Mx,exam:hr,learningPath:r0,module:wo,show:i0,unit:Hhe},R$e=new Map;async function bN(e){if(!e.container)return;let t=S.trainingSkills,n=e.container.querySelectorAll("[data-learn-uid]"),o=[...n].map(s=>s.dataset.learnUid);if(!(o&&o.length))return;let r;try{r=await Qe.getListsItems(o)}catch{r=null}n.forEach((s,i)=>{if(!r)return;let a=r[i];a&&R$e.set(s,a)}),e.shouldInitSkillsOverview&&yet(t,R$e),n.forEach((s,i)=>{if(!r||!r.length||!r[i]||!r[i].type){s.remove();return}let a=r[i],l=s.querySelector(".card-supertitle"),c=s.querySelector(".card-title");l&&c&&(l.textContent=het[a.type],c.textContent=a.title,c.href=a.url);let u=s.querySelector(".card-template-icon");u&&(a.iconUrl?u.src=a.iconUrl:u.hidden=!0);let p=s.querySelector(".time-remaining"),m=a.remainingTime??a.durationInMinutes,g=m?`${tn(m)}`:"";if(p&&m){let I=d` ${g} `;y(I,p)}let f=s.querySelector(".metadata-list");if(f){let I=a.display_products,E=a.display_roles,Q=a.display_levels,O=d` ${I?d`
    • ${I[0]}
    • `:""} ${E?d`
    • ${E[0]}
    • `:""} ${Q?d`
    • ${Q[0]}
    • `:""} `;y(O,f)}let _=s.querySelector(".metadata-skills");if(_&&t){_.classList.add("margin-top-xxs");let I=a.display_skills&&a.display_skills?.length>0&&a.type==="learningPath"?xv(a.display_skills[0]):null,E=d` ${I?d`
    • ${I}
    • `:""} `;y(E,_)}let h=s.querySelector(".progress-bar"),T=s.querySelector(".progress-container"),x=s.querySelector(".progress-label");if(!v.isAuthenticated&&T)T.hidden=!0;else if(v.isAuthenticated&&a.progress&&h&&T&&x){let I=Math.round(a.progress*100);I===100?y(d`${Kn} `,T):(h.classList.add("progress-bar-success"),h.value=I,x.textContent=`${I}%`,x.classList.add("color-success","font-weight-semibold"))}let w=s.querySelector(".collection-buttons");w&&y(vo({title:a.title,url:a.url,titleId:`lists-item-${a.id.toString()}-title`,resourceType:a.type==="learningPath"?"learning path":a.type,label:Yr,labelClass:"add-to-collection-status",buttonExtraClasses:"button-selected"}),w),s.classList.remove("has-loading-skeleton"),s.removeAttribute("aria-label")})}function bet(e,t){if(!t.display_skill||!t.url)return;let n=e.closest('[role="tabpanel"]');if(!n)return;let o=n.querySelector(`#ms--career-path-training-skills-${n.id}`),r=n.querySelector(`#ms--career-path-covered-training-skills-${n.id}`);if(!o||!r)return;let s=document.createElement("li");s.classList.add("display-inline"),y(P$({href:t.url,text:t.display_skill,additionalClasses:"margin-top"}),s),o.appendChild(s)}function _et(e,t){bet(e,t),document.querySelectorAll('[id^="ms--career-path-covered-training-skills-"]').forEach(o=>{let r=o.querySelector('[id^="ms--career-path-training-skills-"]');!r||!r.children.length||(o.hidden=!1)})}async function yet(e,t){e&&t.size>0&&t.forEach((n,o)=>{n.display_skills&&n.display_skills.length>0&&n.type==="learningPath"&&_et(o,{id:n.id,display_skill:n.display_skills[0],url:n.url})})}M();ot();M();function M$e(e){let t=(e.exams||[]).filter(a=>!!a.display_name).map((a,l)=>l===0?d` ${a.display_name}`:d`, ${a.display_name}`),n=t.length>0?d``:"",o=Ps.resource_type[e.resource_type],r=e.resource_type==="examination"?`${hr} ${e.exam_display_name}: ${e.title}`:e.title,i=`certifications-${e.uid?qn(e.uid):_t()}-title`;return d`

      ${o}

      ${r}
      ${n}
      `}M();function D$e(e){let t=(e.exams||[]).filter(i=>!!i.display_name).map(i=>d`${i.display_name}`),n=t.length>0?d``:"",o=`${ra} ${e.course_number}: ${e.title}`,s=`course-${e.uid?qn(e.uid):_t()}-title`;return d`

      ${ra}

      ${o}
      ${n}
      `}M();var vet=gu();function $$e(){return function(e){let t=e.image_url||e.image_url_small?e.url+(e.image_url??e.image_url_small)+"?branch=main":"/en-us/media/learn/tv/shows/show_image_default.svg?branch=main";return xet(e,t)}}function xet(e,t){let n=e.latest_episode_upload_at?d`

      ${vet.format(new Date(e.latest_episode_upload_at))}

      `:"";return d` `}async function N$e(){let e=Array.from(document.querySelectorAll('#curated-section,[data-section="curated-section"]'));if(!S.contentBrowse||!e.length){e.forEach(o=>{o.hidden=!0});return}let t=Tet(e),n=await KG(b.data.userLocale,t);e.forEach(o=>{Ret(o,n.get(o.dataset.cardType)||[],o.dataset?.cardType)})}async function F$e(e){if(v.isAuthenticated)return;let t=document.getElementById("featured-section");if(!t)return;if(!S.contentBrowse){t.hidden=!0;return}e=e.map(o=>o.map(r=>(r.iconUrl=qe(r.iconUrl,"en-us"),r.url=qe(r.url,Be.userLocale),r)));let n=v.isAuthenticated&&S.gamification?R$():Promise.resolve([]);M$({container:t,learnInfo:Dp(e),userProgress:n,pageTemplate:b.data.pageTemplate}),jn(t)}function Tet(e,t=new Map){return e.forEach(n=>{let o=n.dataset.cardType||"",r=Array.from(n.querySelectorAll("[data-learn-uid]")).map(i=>i.dataset.learnUid);t.has(o)||t.set(o,[]),t.get(o).push(...r)}),t}async function KG(e,t){let n=new Map;for(let o of t.entries()){let[r,s]=o,i;switch(r){case"":case"undefined":case void 0:case"modules":case"learningPaths":case"module":case"modulesAndLearningPaths":i=await wet(e,s),i=Dp(i);let a=i.map(c=>c.uid),l;try{l=(await Promise.resolve(S.gamification&&v.isAuthenticated?fi(a):Promise.resolve([]))).reduce(P$e("uid"),{})}catch{l={}}for(let c of i)c.icon_url&&(c.icon_url=`${qe(c.icon_url,"en-us")}?branch=main`),c.url&&(c.url=qe(c.url,Be.userLocale)),c.uid in l&&(c.progress=l[c.uid]);n.set(r,i);break;case"certifications":i=await Cet(e,s),i=Dp(i).filter(c=>c.resource_type==="certification");for(let c of i)c.icon_url&&(c.icon_url=`${qe(c.icon_url,"en-us")}?branch=main`),c.url&&(c.url=qe(c.url,Be.userLocale));n.set(r,i);break;case"courses":i=await Eet(e,s),i=Dp(i);for(let c of i)c.url&&(c.url=qe(c.url,Be.userLocale));n.set(r,i);break;case"shows":i=await Aet(e,s),i=Dp(i);for(let c of i)c.url&&(c.url=qe(c.url,Be.userLocale));n.set(r,i);break;default:throw new Error(`Learn cards not supported for "${r}" in curatedSection`)}}return n}async function wet(e,t){return await Promise.all(ket(e,t))}async function Cet(e,t){return await Promise.all(Iet(e,t))}async function Eet(e,t){return await Promise.all(Pet(e,t))}async function Aet(e,t){return await Promise.all(Let(e,t))}function ket(e,t){let n=td(t,1e3),o={method:"GET"},r=St();return n.map(s=>{let i={locale:e,branch:r,$filter:s.map(l=>`uid eq '${l}'`).join(" or ")},a=`${D.browse.learn}?${V(i)}`;return R(N(a,o)).then(l=>l.ok?l.json():Promise.reject()).then(l=>l?.results)})}function Iet(e,t){let n=td(t,1e3),o={method:"GET"},r=St();return n.map(s=>{let i={locale:e,branch:r,$filter:s.map(l=>`uid eq '${l}'`).join(" or ")},a=`${D.browse.certification}?${V(i)}`;return R(N(a,o)).then(l=>l.ok?l.json():Promise.reject()).then(l=>l?.results)})}function Pet(e,t){let n=td(t,1e3),o={method:"GET"},r=St();return n.map(s=>{let i={locale:e,branch:r,$filter:s.map(l=>`uid eq '${l}'`).join(" or ")},a=`${D.browse.course}?${V(i)}`;return R(N(a,o)).then(l=>l.ok?l.json():Promise.reject()).then(l=>l?.results)})}function Let(e,t){let n=td(t,1e3),o={method:"GET"},r=St();return n.map(s=>{let i={locale:e,branch:r,$filter:s.map(l=>`uid eq '${l}'`).join(" or ")},a=`${D.browse.shows}?${V(i)}`;return R(N(a,o)).then(l=>l.ok?l.json():Promise.reject()).then(l=>l?.results)})}function Ret(e,t,n){switch(n){case"":case"undefined":case void 0:case"modules":case"learningPaths":case"modulesAndLearningPaths":Met(e,t);break;case"certifications":Det(e,t);break;case"courses":$et(e,t);break;case"shows":Net(e,t);break;default:throw new Error(`Learn cards not supported for "${n}" in curatedSection`)}}function Met(e,t){t.forEach(n=>{let o=e.querySelector(`[data-learn-uid="${n.uid}"]`);if(!o)return;o=Uf(o),o.classList.remove("has-loading-skeleton"),o.removeAttribute("aria-label");let r=uE(n);y(r,o.parentElement)})}function Det(e,t){t.forEach(n=>{let o=e.querySelector(`[data-learn-uid="${n.uid}"]`);if(!o)return;o=Uf(o),o.classList.remove("has-loading-skeleton"),o.removeAttribute("aria-label");let r=M$e(n);y(r,o.parentElement)})}function $et(e,t){t.forEach(n=>{let o=e.querySelector(`[data-learn-uid="${n.uid}"]`);if(!o)return;o=Uf(o),o.classList.remove("has-loading-skeleton"),o.removeAttribute("aria-label");let r=D$e(n);y(r,o.parentElement)})}function Net(e,t){t.forEach(n=>{let o=e.querySelector(`[data-learn-uid="${n.uid}"]`);if(!o)return;o=Uf(o),o.classList.remove("has-loading-skeleton"),o.removeAttribute("aria-label");let r=$$e()(n);y(r,o.parentElement)})}async function U$e(){await Promise.all([Te,fe]).then(async()=>{let n=document.getElementById("journey-section");await bN({container:n})}),b.data.topicTrendingFilters=JSON.parse(document.getElementById("trending-filters")?.textContent||"{}"),await Promise.all([Fet("topiclanding"),N$e()]);let t=document.getElementById("main");await jn(t)}async function Fet(e){let t=document.getElementById("trending-section");if(!t)return;if(!S.contentBrowse){t.hidden=!0;return}let n=await Op(JG(cE(e)),e);if(n.popularity){n.popularity=n.popularity.map(r=>(r.icon_url=qe(r.icon_url,"en-us"),r));let o=cE(e)-1;if(n.popularity.length===0)t.hidden=!0;else if(n.popularity.length>=o){n.popularity.splice(o,n.popularity.length-o);let r=document.getElementById("browse-trending-link"),s=XG();r.setAttribute("href",s),r.hidden=!1}await Oet(n.popularity,e,document.getElementById("trending-grid"))}}function JG(e=null,t=Uet(),n=es("learn_item")){return{locale:b.data.userLocale,filter:t,terms:"",top:e,hideCompleted:!0,excludeUids:n}}function Uet(){let e=b.data.topicTrendingFilters;return{roles:e.roles?.length>0?e.roles:[],levels:e.levels?.length>0?e.levels:[],products:e.products?.length>0?e.products:[],subjects:e.subjects?.length>0?e.subjects:[],resource_type:e.types?.length>0?e.types:[]}}async function Oet(e,t,n){n&&y(d`${zf({items:e,browseType:t})}`,n)}function XG(e=b.data.topicTrendingFilters){let t={products:e.products?.length>0?e.products.join(","):void 0,subjects:e.subjects?.length>0?e.subjects.join(","):void 0,levels:e.levels?.length>0?e.levels.join(","):void 0,roles:e.roles?.length>0?e.roles.join(","):void 0,resource_type:e.types?.length>0?e.types.join(","):void 0,"api-branch":L.supportLevel==="production"&&L.reviewFeatures?"main":void 0};return`${Ot?`${location.origin}/${b.data.userLocale}/test/learn/browse/`:`${location.origin}/${b.data.userLocale}/training/browse/`}?${V(t,!0)}`}uy();function O$e(){let e=S.interactivity?RS(k("interactive")):null,t=e?e.name:null,n=k("unit_completion_type"),o=!!S.chromeless,r=k("azure_sandbox")==="true"||k("sandbox")==="true",s=n==="arm-task"&&!o&&r,i=b.data.userLocale,a=m$e(),l=k("uid");return{completionType:n,hasSandbox:r,hasTaskValidation:s,interactiveType:e,interactiveName:t,isChromeless:o,userLocale:i,unitId:l,moduleCompletedBeforeSignIn:a}}function q$e(e,t){let{unitIndex:n,currentUnit:o,currentUnitUrl:r,nextUnit:s,nextUnitUrl:i,previousUnit:a,previousUnitUrl:l}=qet(t,e.unitId),c=e,u=n===t.units.length-1,p=n===t.units.length-2||n===t.units.length-1,m=e.unitId.includes("knowledge-check"),g=e.completionType==="quiz";if(c.module=t,c.currentUnit=o,c.currentUnitUrl=r,c.nextUnit=s,c.nextUnitUrl=i,c.previousUnit=a,c.previousUnitUrl=l,c.unitIndex=n,c.isFinalUnit=u,c.isModuleAssessment=p&&g&&m||k("module_assessment")==="true",e.isChromeless){let f=e.interactiveName==="lab-on-demand",_=s?.interactive==="lab-on-demand",h=f&&_;if(e.isChromeless&&h){let T={FromOrigin:"https://labclient.labondemand.com",context:"context/chromeless"},x=i.split("?")[0],w=[i.split("?")[1],V(T)].join("&");c.nextUnitUrl=`${x}?${w}`}}return c}function qet(e,t){let n=e.units.findIndex(c=>c.uid===t),o=e.units[n],r=`/${b.data.userLocale+o.url}`,s=e.units[n+1],i=s?`/${b.data.userLocale+s.url}`:"",a=e.units[n-1],l=a?`/${b.data.userLocale+a.url}`:"";return{unitIndex:n,currentUnit:o,currentUnitUrl:r,nextUnit:s,nextUnitUrl:i,previousUnit:a,previousUnitUrl:l}}function _N(e,t){let n=e,{moduleComplete:o,updated:r,firstIncompleteUnit:s,unitsComplete:i,unitComplete:a,module:{item:l},passed:c,totalPoints:u}=t,p=e.isFinalUnit&&i1&&(n.parentPathConnections="multi"),n.singlePathInfo=m===1?t.paths[0]:null,n.singlePathComplete=n.singlePathInfo&&n.singlePathInfo.progress&&v.isAuthenticated?n.singlePathInfo.progress.status==="completed":!1,n.multipleParentPathsInfo=m>1?t.paths:null,n.firstQuizCompletion=e.completionType==="quiz"&&a&&r&&c,n.repeatQuizCompletion=e.completionType==="quiz"&&a&&!r&&c,n.totalPoints=u,n}M();M();function H$e(e){return e.elementType==="none"}function B$e(e){let t=document.createElement("div");if(H$e(e))return t;let n=document.createElement("hr");if(n.classList.add("hr"),t.appendChild(n),e.elementType==="a"){let o=ZG(e);t.appendChild(o)}return t}function ZG(e){let{sectionTitle:t,doconClass:n,text:o,biName:r,nextHref:s,previousHref:i,target:a}=e,l=document.createElement("div"),c=i?d` ${Mr} `:"",u=d` ${t?d`

      ${t}

      `:""} `;return y(u,l),l}async function yN(e,t=!1){await Te;let{unitIndex:n,module:o}=e,{length:r}=o.units;return zet(o,n),Het(o.units,n,r,o.url,t),Array.from(document.querySelectorAll(".module-navigation-item"))}function Het(e,t,n,o,r=!1){let s=document.getElementById("unit-nav-dropdown"),i=document.getElementById("completion-nav"),a=document.getElementById("unit-place");if(r)s?.classList.add("is-hidden"),i?.classList.remove("is-hidden");else{if(i?.classList.add("is-hidden"),a){let c=qhe.replace("{index}",(t+1).toString()).replace("{total}",n.toString());a.innerText=c}s?.classList.remove("is-hidden");let l=t!==n-1;S.gamification||Bet(l,e,t,o)}}function Bet(e,t,n,o){let r=document.getElementById("unit-inner-section");if(!r)return;let s=`/${b.data.userLocale}/${e?t[n+1].url:o}`,i=n>0?`/${b.data.userLocale}/${t[n-1].url}`:"",a=ZG({elementType:"a",nextHref:s,previousHref:i,text:e?rr:gde,biName:"continue"});a&&r.insertAdjacentElement("beforeend",a)}function zet(e,t){let n=d` `,o=document.getElementById("module-menu");o&&y(n,o);let r=document.querySelector(`.has-centered-menu li:nth-of-type(${t+1})`);r&&(r.classList.add("is-current"),r.querySelector("a")?.setAttribute("aria-current","page"))}var z$e=async e=>{try{let t=await Get(e);Vet(t.document.documentElement,document.documentElement),Qet(t.document.head,document.head),Yet(t.document,document);let n=new URL(t.url);return n.hash=e.hash?e.hash:"",{url:n,title:t.document.title}}catch(t){throw location.href=e.href,t}};async function Get(e){let t={method:"GET",credentials:"include",redirect:"follow",headers:{Accept:"text/html"}},n=await fetch(e.href,t);if(!n.ok)throw new Error(`Error loading ${e.toString()}. ${n.status}: ${n.statusText}`);let o=await n.text(),r=new DOMParser;return{url:n.url||e.href,document:r.parseFromString(o,"text/html")}}function Vet(e,t){let n=t.classList.contains("layout-flyout-active")?"layout-flyout-active":"";e.classList.remove(...OB),t.className=`${e.className} ${WT[qb].documentClass} js-focus-visible ${n}`}function Qet(e,t){let n="meta";Array.from(t.querySelectorAll(n)).forEach(o=>o.remove()),Array.from(e.querySelectorAll(n)).forEach(o=>{o.remove(),t.appendChild(o)})}function Yet(e,t){let n=e.querySelector(".layout-body-main"),o=t.querySelector(".layout-body-main");o.insertAdjacentElement("afterend",n),o.remove();let r="interactive-container",s=e.getElementById(r),i=t.getElementById(r);if(s&&i&&(i.className=s.className),n&&o){let a="[data-ask-learn-flyout-entry]",l=o.querySelector(a),c=n.querySelector(a);if(l&&c&&(c.className=l.className,l.hasAttribute("aria-expanded"))){let u=l.getAttribute("aria-expanded")||"false";u&&c.setAttribute("aria-expanded",u||"false")}}}function vN(e){let{module:t,isChromeless:n,userLocale:o}=e;n||Qr.enable({canHandle:r=>!!t.units.find(i=>i.url===r.pathname||`/${o}${i.url}`===r.pathname),handle:z$e,params:[]})}ot();var jet="https://forms.microsoft.com/Pages/ResponsePage.aspx?id=v4j5cvGGr0GRqy180BHbR6J-g7J9fWNMjHFuADoFBNxUN0Y0UFUyTkZIV0NEM0hGVVJFS05CSTNRNS4u",Wet="https://forms.office.com/Pages/ResponsePage.aspx?id=v4j5cvGGr0GRqy180BHbR6J-g7J9fWNMjHFuADoFBNxURFZMWk0zNTFaMjRSQkdZNjRIUVNQRjZOQi4u";function V$e(e){let{moduleUid:t,questionId:n,moduleBranch:o,moduleHash:r,promptVersion:s,pullRequestUrl:i}=e,a=L.supportLevel==="production"?Wet:jet,l=new URL(a);return l.searchParams.set("r03484bd4a868483387e3fb38381c56c9",t),l.searchParams.set("r9291d4ea2c1a417c8aa9a2a206e5b20a",n),l.searchParams.set("re4315c20e5884e979fa48ae6f7c68bc0",o),l.searchParams.set("r0ca9864ba433422a820faa44a7a9054c",r),l.searchParams.set("r412a92c08c914b94a794e78b9e1f5c09",s),l.searchParams.set("r9853ba6bae094a6d856a975747805e53",i),l.toString()}function Q$e(e,t){return d`

      ${Kle.replace("{locale}",t).replace("{branch}",e)}

      `}async function Y$e(e,t,n){let o={branch:t||"live",locale:n};return e.response&&(await e.response.text()).split(",").forEach(s=>{if(s.includes(":")&&s.split(":").length>1){let i=s.split(":"),a=i[0].trim();a==="branch"&&(o.branch=i[1].trim()),a==="locale"&&(o.locale=i[1].trim().split(" ")[0])}}),o}function xN(e){let t=document.getElementById("question-container"),n=document.getElementById("quiz-title"),o=document.getElementById("module-unit-content");t&&(t.hidden=e,t.ariaHidden=e?"true":"false"),n&&(n.hidden=e,n.ariaHidden=e?"true":"false"),o&&(o.hidden=e,o.ariaHidden=e?"true":"false")}function j$e(){S.gamification&&Ye(window,"keydown",async({keyCode:e,altKey:t,ctrlKey:n})=>{L.reviewFeatures&&e===69&&t&&n&&(J.removeItem("ModuleProgress"),await Promise.all([o_e(["Gamification","Progress"])]),alert("\u2705 Progress and Gamification deleted. Page will be reloaded..."),location.reload())})}function W$e(e,t,n=!0){if(!v.isAuthenticated)return G$e(e,t,n);let o=e.modules.filter(r=>r.status&&r.status!=="completed"&&r.uid!==t.uid)[0];return o?n?qe(o.url,b.data.userLocale):o.url:G$e(e,t,n)}function G$e(e,t,n=!0){let{modules:o}=e,r=o.findIndex(s=>s.uid===t.uid);return r+1===o.length?n?qe(e.url,b.data.userLocale):e.url:n?qe(o[r+1].url,b.data.userLocale):o[r+1].url}function K$e(e){if(!e||e.length===0)return;if(e.length===1)return e[0];let t=J.getItem(QC);if(t){let n=e.find(o=>o.uid===t);if(n)return n}return e[0]}async function J$e(e,t,n){let o=new Ve,r=S.gamification?new bv(v,o):null;if(await a()){let U=function($,H){let te=$.map(xe=>xe.uid);return H&&te.push(...H.map(xe=>xe.uid)),te},ve=function($,H){let te=$?[...$]:[];return te.push(H),te},F=function(){return ta()!==null},ie=function($=!1){return{section:`is-text-centered margin-right-lg-desktop padding-sm margin-left-lg-desktop ${$?"":"border-bottom padding-bottom-xxs"}`,header:"font-size-h5 font-weight-semibold",trophy:"display-flex justify-content-center",cards:"text-align-left margin-right-lg-tablet margin-left-lg-tablet margin-sm margin-left-sm margin-right-sm is-unstyled margin-top-xs"}},Ie=function($){let H=[];for(let te=0;te<$;te++)H.push(d` `);return H},Le=function(){let $=d`
      ${Aee}
      `;return d`
      ${$}
      ${$}
      `},ht=function($){return $.length>1?d`
        ${$.map(H=>d`
      • ${Lt(H.iconUrl,H.title,H.type)}
      • `)}
      `:d`
      ${Lt($[0].iconUrl,$[0].title,$[0].type)}
      `},Lt=function($,H,te){return d`
      ${H}
      ${te==="learningPath"?zt():Y()}
      `},zt=function(){return iv({checkIsPassed:async()=>e$(it?it.uid:"").then($=>$.passedOn!==void 0).catch(()=>!1),hasWrapper:!0},!1,"learningpaths")},Y=function(){return iv({checkIsPassed:async()=>XD(e.uid).then($=>$.moduleAssessmentPassed).catch(()=>!1),hasWrapper:!0})},ue=function($,H){let te=H>1?Eee.replace("{count}",H.toString()):Cee,xe=$?d`
      ${wee}
      `:d`
      ${Mee}
      `;return d`
      ${te}
      ${S.chromeless?"":xe}
      `},be=function($,H=!1){return d` ${v.isAuthenticated&&($&&$.length>0||H)?d`
      ${Lee}
      ${Ree}
      ${L$e($)}
      `:d``}`},ke=function($){return d` ${Mk} `},je=function($=!1,H=[],te=[],xe="",gt="home"){let lt=H&&H.length>0,Jt=te&&te.length>0;return lt||Jt||$?d`
      ${Iee}
      ${Pee}
      ${lt||$?Ke(H,$):d``} ${Jt||$?Pt(te,xe,gt,$):d``}
      `:d``},Ke=function($,H=!1){return d`
      ${kee}
      ${H?Ie(1):d``} ${H?d``:$.length>1?d`
        ${$.map(te=>d`
      • ${uE(te)}
      • `)}
      `:d`
      ${uE($[0])}
      `}
      `},Pt=function($,H,te,xe=!1){return d`
      ${xee}
      ${xe?Ie(1):""} ${xe?"":$.length>1?d`
        ${zf({items:$,browseType:te})}
      `:d`
      ${zf({items:$,browseType:te})}
      `} ${xe?"":d` `}
      `},tt=function(){return{roles:e.roles?.length>0?e.roles:[],levels:e.levels?.length>0?e.levels:[],products:e.products?.length>0?e.products:[],subjects:e.subjects?.length>0?e.subjects:[],resource_type:[]}},Rt=function($){return{...$,types:[]}},xo=function(){if(it&&v.isAuthenticated){let $=it.modules.filter(H=>H.status&&H.status!=="completed"&&H.uid!==e.uid);return $.length>0?$[0]:null}return ta()},ta=function(){if(it){let{modules:$}=it,H=$.findIndex(te=>te.uid===e.uid);if(H+1<$.length)return $[H+1]}return null},Ue=function($,H){if(it){let te=xo();if(te){for(let gt of H)if($.get(gt)?.includes(te.uid))return;let xe=$.get("modules");xe?xe.push(te.uid):$.set("modules",[te.uid])}}},C=function($,H){return $?$.filter(te=>te.type===H).map(te=>te.uid):[]},X=function($,H){let te=new Map;for(let xe of $){let gt=C(H,xe);te.set(xe,gt)}return te};var c=U,u=ve,p=F,m=ie,g=Ie,f=Le,_=ht,h=Lt,T=zt,x=Y,w=ue,I=be,E=ke,Q=je,O=Ke,ye=Pt,Ae=tt,de=Rt,xt=xo,qt=ta,Qt=Ue,Ln=C,Yt=X;n.succeed();let Ft=ae(t),vn;fe.then(async()=>{v.isAuthenticated&&(vn=d1e(Be.userLocale,e.uid))});let it=await Ft;ne(),vN(t),YR(),ac(t.currentUnit.title,t.module),du(()=>o.dispose()),P(o);async function Ne($){let H=document.querySelector("#unit-inner-section");H.classList.add("padding-none");let te=null;v.isAuthenticated&&(te=await vn);let{module:xe,singlePathInfo:gt,parentPathConnections:lt,multipleParentPathsInfo:Jt,singlePathComplete:zp}=$,Gp=zp?[gt.item]:lt==="multi"?Jt.filter(LE=>!!LE.progress&&LE.progress.status==="completed").map(LE=>LE.item):[],PE=Gp?Gp.length+1:1,zUe=ve(Gp,xe);B(zUe,PE,H,te?.credentials),i();let f7=await G(te?.nextItems),h7="home",GUe=U(Gp,f7),VUe=await nr(h7,GUe),QUe=Rt(tt()),YUe=XG(QUe),b7=document.querySelector("#next-steps-container"),_7=document.querySelector("#sharing-container");b7&&y(d` ${je(!1,f7,VUe,YUe,h7)} `,b7);let jUe=await ce(Gp,xe);_7&&y(d`${be(jUe)}`,_7),H&&jn(H)}async function ce($,H){if(v.isAuthenticated){let te=[H];for(let lt of $)it&<.uid===it.uid?te.push(it):te.push(await ZD(lt.uid));let xe=te.map(async lt=>lt&<.achievement?G1(v.userName,lt.achievement.uid):null);return(await Promise.all(xe.map(lt=>lt.catch(()=>null)))).filter(lt=>lt!==null)}return Promise.resolve([])}async function B($,H,te,xe){let gt=zn(Ket(xe).then(lt=>we(lt)),d``);y(d` ${Le()} ${ht($)} ${ue(v.isAuthenticated,H)}
      ${be([],!0)}
      ${gt}
      ${je(!0)}
      `,te)}async function ae($){if($.module.parents&&$.module.parents.length>0){let H=K$e($.module.parents);return H?await S$(H.uid):null}return null}async function P($){S.gamification&&($.subscribe(Pu,Z),r.getCurrentUnitProgress(t.unitId))}async function Z($){let H=_N(t,$);Gy(b.data.pageTemplate),Ne(H)}async function ne(){let $=await vn;it&&F()?t.nextUnitUrl=W$e(it,e,!1):v.isAuthenticated?t.nextUnitUrl=$&&$.nextItems?.length>0?$.nextItems[0].link:"":t.nextUnitUrl="",await yN(t,!0)}async function we($){return $&&$.length>0?d`
      ${TF}
      ${See}
      ${ke($)}
      `:d``}async function nr($,H){let te=tt(),xe=2,lt=await Op(JG(10,te,H),$);return lt.popularity&&(lt.popularity=lt.popularity.filter(Jt=>Jt.progress_status!=="completed"),lt.popularity=lt.popularity.map(Jt=>(Jt.icon_url=qe(Jt.icon_url,"en-us"),Jt)),lt.popularity.length>=xe&<.popularity.splice(xe,lt.popularity.length-xe)),lt.popularity}async function G($){let H=["modules","module"],te=X(H,$);Ue(te,H);let xe=await KG(b.data.userLocale,te),gt=[];for(let lt of H){let Jt=xe.get(lt);Jt&&(gt=gt.concat(Jt))}return gt}return!0}return i(),!1;function s(){let Ft=document.querySelector("#unit-inner-section");Ft&&(Ft.dataset.testId="completion-page",Ft.classList.add("is-invisible"))}function i(){let Ft=document.querySelector("#unit-inner-section");Ft&&(Ft.classList.add("is-invisible"),Ft.classList.remove("is-invisible"))}async function a(){return(location.hash?location.hash.includes("#completion"):!1)&&t.isFinalUnit?(s(),await l()):!1}async function l(){try{await Ru();let vn=(await r.getProgressByUid(e.uid)).find(it=>it.uid===e.uid);return vn&&vn.status==="completed"}catch{return!1}}}async function Ket(e){if(!e)return[];let t;try{t=(await Promise.all(e.map(async o=>{let r=await Up.getAppliedSkill(o.uid);return{...o,...r}}))).filter(o=>typeof o.retirementDate!="string")}catch{t=[]}return t}var fc=class{constructor(t){this.config=t}};function Jet(){S.gamification&&fe.then(()=>{v.isAuthenticated&&S.gamification&&Eu.getStatus(v.userId).then(b9)})}function X$e(e){S.gamification&&e.subscribe(fc,t=>{t.config.moduleComplete||Jet()})}M();var eV;async function Xet(){if(eV===void 0){let e;if(L.reviewFeatures&&Ot){let{branch:t}=me(),n=t?V({branch:t}):"";e=`${location.origin}/${b.data.contentLocale}/test/training/support-messages.json?${n}`}else e=`${location.origin}/${b.data.contentLocale}/training-support-messages.json?branch=main`;eV=R(e,{credentials:"include",mode:"cors"}).then(t=>t.json()).then(t=>t.messages).catch(()=>[])}return eV}async function Zet(e){let t=await Xet(),{module:n}=e,o=t.find(s=>s.trainingUids.includes(n.uid));if(o)return o;let r=ett(e);if(r.length>0){let s=t.find(i=>r.some(a=>i.trainingUids.includes(a)));if(s)return s}return null}function ett(e){return e.parentPathConnections==="one"&&e.singlePathInfo?[e.singlePathInfo.item.uid]:e.parentPathConnections==="multi"&&e.multipleParentPathsInfo?e.multipleParentPathsInfo.map(t=>t.item.uid):[]}function ttt(e){let t=e.map(n=>d`
    • ${q(n.summary)}
    • `);return d`
        ${t}
      `}async function Z$e(e){let t=document.getElementById("ms--unit-support-message");if(!t)return;let n=await Zet(e);if(!n){tV();return}let o=n.detailedItems?.length?ttt(n.detailedItems):"",r=d`

      ${q(n.paragraph.summary)}

      `,s=d`
      ${r} ${o}
      `;y(s,t),t.classList.remove("display-none")}function tV(){let e=document.getElementById("ms--unit-support-message");e&&(e.innerHTML=Ohe,YR(),e.classList.remove("display-none"))}function eNe(e,t){if(!S.gamification){e.hidden=!0;return}t.subscribe(fc,async n=>{let o=ntt(n.config);if(!o)return;let r=await ott(o,n.config),s=B$e(r);e.innerHTML="",e.appendChild(s),e.classList.contains("is-hidden")&&e.classList.remove("is-hidden"),e.hidden&&(e.hidden=!1),e.classList.contains("is-hidden-portrait")&&e.classList.remove("is-hidden-portrait"),b.data.contentLocale==="en-us"?await Z$e(n.config):tV()})}function ntt(e){let{moduleComplete:t,isFinalUnit:n,hasIncompleteQuiz:o,hasIncompleteTask:r}=e;return t?"modal-complete":o?"modal-quiz":r?"modal-task":!t&&!n&&!r&&!o?"continue":!t&&n?"back-to-finish":null}async function ott(e,t){let n="";switch(e==="modal-complete"&&(n=t.module&&t.module.units.length?t.module.units[t.module.units.length-1].url:""),S.skipToCompletedModal&&(e="modal-complete"),e){case"continue":case"modal-quiz":return{elementType:"a",biName:"continue",doconClass:"docon-chevron-right-light",nextHref:t.nextUnitUrl,previousHref:t.previousUnitUrl,sectionTitle:`${Pce}: ${t.nextUnit.title}`,text:Jr,target:t.interactiveType&&t.interactiveType.name==="lab-on-demand"&&t.nextUnit.interactive!=="lab-on-demand"?"_top":""};case"back-to-finish":return{elementType:"a",biName:"continue",doconClass:"docon-chevron-right-light",nextHref:t.firstIncompleteUnit?qe(t.firstIncompleteUnit.url,b.data.userLocale):`/${b.data.userLocale}/training/browse`,previousHref:t.previousUnitUrl,sectionTitle:`${Tce}:`,text:Nae};case"modal-complete":return{elementType:"a",biName:"unlock-achievement",nextHref:`${n}#completion`,previousHref:t.previousUnitUrl,sectionTitle:`${fQ}:`,text:yee};case"modal-task":return{elementType:"none"};default:throw new Error(`Unexpected page navigation type: ${e}`)}}var tNe="ai_generated_module_assessment";var nNe=St(),oNe=b.data.userLocale;async function rNe(e){let t={branch:nNe,locale:oNe},n=`${D.learn.skillAssessment}/moduleassessments/${e}/questions?${V(t)}`,r=await R(N(n,{method:"GET"},!0));if(ee(r),r.ok)return await r.json();if(r.status===404)throw new pe(r,"NotFoundError");return{}}async function sNe(e){let t={branch:nNe,locale:oNe},n=`${D.learn.skillAssessment}/moduleassessments/${e}?${V(t)}`,r=await R(N(n,{method:"GET"},!0));return ee(r),r.ok?await r.json():{}}M();var TN=class{constructor(t,n,o){this.aiFeedbackButton=t;this.aiContentRate=null;this.userModuleAssessment=o,this.feedbackSessionId=Hi(),this.feedbackIndexId=0,this.modalContainer=document.createElement("div"),y(ePe(),this.modalContainer),this.feedbackForm=this.modalContainer.querySelector("#module-assessment-ai-feedback-form"),this.rateYesButton=this.modalContainer.querySelector("#module-assessment-ai-feedback-button-rating-yes"),this.rateNoButton=this.modalContainer.querySelector("#module-assessment-ai-feedback-button-rating-no"),this.feedbackMoreSuggestions=this.modalContainer.querySelector("#module-assessment-ai-feedback-textarea"),this.feedbackNoSuggestions=Array.from(this.modalContainer.querySelectorAll('input[name="module-assessment-ai-feedback-suggestion-no"]')),this.suggestionsContainer=this.modalContainer.querySelector("[module-assessment-ai-feedback-suggestions]"),this.aiFeedbackMessage=this.modalContainer.querySelector("#module-assessment-ai-feedback-notification-message"),this.aiFeedbackContentContainer=this.modalContainer.querySelector("#module-assessments-ai-feedback-content-container");let r=new ge(this.modalContainer);n.subscribe(Iu,s=>this.resetFeedbackSession(s)),nPe(this.feedbackForm),Ye(this.aiFeedbackButton,"click",async()=>{await r.show(),this.clearFeedbackForm()}),Ye(this.rateYesButton,"click",s=>{this.updateAIContentRate(s)}),Ye(this.rateNoButton,"click",s=>{this.updateAIContentRate(s)}),Ye(this.feedbackForm,"submit",s=>{if(s.preventDefault(),this.feedbackForm.querySelector(".errored")||this.aiContentRate===null||this.aiContentRate===!1&&!this.feedbackNoSuggestions.find(u=>u.checked))return;let i=document.getElementById("module-assessment-answer-result-notification-container"),a=document.getElementById("module-assessment-result-retake-container"),l="1";i&&a&&(l=i.hidden?"1":a.hidden?"2":"3"),this.feedbackIndexId++,Ro(s.target,{behavior:Ce.SURVEYCOMPLETE,actionType:Re.OTHER,content:{autoIngest:!0,type:"module-assessment-feedback",index:this.feedbackIndexId,sessionId:this.feedbackSessionId,feedbackData:[{caseId:l,sat:this.aiContentRate?1:0,vtbm:this.feedbackMoreSuggestions.value,reasons:this.aiContentRate?[]:this.feedbackNoSuggestions.filter(u=>u.checked).map(u=>u.value),assessmentHash:this.userModuleAssessment&&this.userModuleAssessment.hash?this.userModuleAssessment.hash:null,questionIds:this.userModuleAssessment&&this.userModuleAssessment.questions?this.userModuleAssessment.questions.map(u=>u.id):[]}],"ext-app-user-id":v.userId}}),this.modalContainer.querySelector("#module-assessment-ai-feedback-modal").classList.add("width-450-tablet"),this.aiFeedbackContentContainer.hidden=!0,this.aiFeedbackMessage.hidden=!1})}resetFeedbackSession(t){this.userModuleAssessment=t.userModuleAssessment,this.feedbackSessionId=Hi(),this.feedbackIndexId=0}updateAIContentRate(t){t.preventDefault();let o=t.currentTarget.id==="module-assessment-ai-feedback-button-rating-yes",r=o?this.rateYesButton:this.rateNoButton,s=o?this.rateNoButton:this.rateYesButton;this.suggestionsContainer.hidden=o,r.classList.contains("button-selected")||(this.aiContentRate=o,r.classList.add("button-selected","is-selected"),r.setAttribute("aria-pressed","true"),zy(r)),s.classList.remove("button-selected","is-selected"),s.setAttribute("aria-pressed","false")}clearFeedbackForm(){this.feedbackMoreSuggestions.value="",this.feedbackNoSuggestions.forEach(n=>n.checked=!1),this.rateYesButton.classList.remove("button-selected","is-selected"),this.rateYesButton.setAttribute("aria-pressed","false"),this.rateNoButton.classList.remove("button-selected","is-selected"),this.rateNoButton.setAttribute("aria-pressed","false"),this.aiContentRate=null,this.suggestionsContainer.hidden=!0,this.aiFeedbackContentContainer.hidden=!1,this.aiFeedbackMessage.hidden=!0,this.modalContainer.querySelector("#module-assessment-ai-feedback-modal").classList.remove("width-450-tablet")}};ot();var wN=class{constructor(t,n,o,r=fv){this.isSubmitting=!1;this.form=t,this.userModuleAssessment=o,this.submitButton=t.querySelector("button[type=submit]"),this.formInputs=this.getFormInputs();let s=a=>{this.showQuersitonAnswerNotification(!1);let l=this.formInputs.find(c=>c.input===a.target);l&&this.formInputs.filter(c=>c.questionId===l.questionId).forEach(({label:c,input:u})=>{let p=u.checked?"add":"remove";c.classList[p]("is-selected")})},i=()=>this.formInputs.forEach(({input:a,label:l})=>{let c=a.matches(":focus")?"add":"remove";l.classList[c]("is-focused")});Ye(t,"blur",i,!0),Ye(t,"focus",i,!0),Ye(t,"change",s),Ye(t,"submit",a=>{if(a.preventDefault(),this.isSubmitting)return;let l=this.getQuestionAnswers();try{this.validayeAllQueseionsAnswered(l)&&(this.isSubmitting=!0,this.submitButton&&this.submitButton.classList.add("is-loading"),n.publish(new r(l,this.userModuleAssessment)))}catch(c){throw c}}),n.subscribe($p,a=>this.handleAnswerResultChange(a)),n.subscribe(Iu,a=>this.handleModuleAssessmentChange(a))}getQuestionAnswers(){let t=this.userModuleAssessment.questions.filter(o=>o.type!=="Matrix").reduce((o,r)=>{let s=this.formInputs.filter(i=>i.questionId===r.id.toString()&&i.input.checked).map(i=>parseInt(i.input.value));if(s.length>0){let a={questionId:parseInt(r.id),type:"SingleChoice",choiceIds:s};return[...o,a]}else return o},[]),n=this.userModuleAssessment.questions.filter(o=>o.type==="Matrix").reduce((o,r)=>{let s=r,i=s.questions.reduce((a,l)=>{let c=this.formInputs.filter(u=>u.parentQuestionId===r.id.toString()&&u.questionId===l.id.toString()&&u.isSubQuestion&&u.input.checked).map(u=>parseInt(u.input.value));if(c.length>0){let u={questionId:parseInt(l.id),type:"SingleChoice",choiceIds:c};return[...a,u]}else return a},[]);if(i.length>0){let a={questionId:parseInt(s.id),type:"Matrix",answers:i};return[...o,a]}else return o},[]);return{id:this.userModuleAssessment.id,hash:this.userModuleAssessment.hash,locale:this.userModuleAssessment.locale,moduleId:this.userModuleAssessment.moduleId,branch:this.userModuleAssessment.branch,answers:[...t,...n]}}async handleAnswerResultChange(t){let n=t.userAnswerResult.results;this.formInputs.forEach(({input:o})=>{o.disabled=!0}),n.forEach(o=>{if(o.type==="Matrix"){let r=o;r.results.forEach(s=>{let i=this.formInputs.find(a=>a.isSubQuestion&&a.questionId===s.questionId.toString()&&a.parentQuestionId===r.questionId.toString()&&a.input.checked);i&&this.updateAnswerResultIndicator(i,s.isCorrect)})}else{let r=o,s=this.formInputs.find(i=>!i.isSubQuestion&&i.questionId===r.questionId.toString()&&i.input.checked);s&&this.updateAnswerResultIndicator(s,r.isCorrect)}}),this.isSubmitting=!1,this.submitButton&&(this.submitButton.classList.remove("is-loading"),this.submitButton.hidden=!0,this.submitButton.ariaHidden="true"),await this.updateAnswerResultNotifiaction(t.userAnswerResult),this.hideAnswerResultNotifiaction(!1),this.reportModuleAssessmentValidation(t.userAnswerResult)}renderUserModuleAssessmentAnswer(t){let n=t.answers.filter(r=>r.type!=="Matrix"),o=t.answers.filter(r=>r.type==="Matrix");n.forEach(r=>{r.choiceIds.forEach(s=>{let i=this.formInputs.find(a=>!a.isSubQuestion&&a.questionId===r.questionId.toString()&&a.input.value===s.toString())?.input;i&&(i.checked=!0)})}),o.forEach(r=>{r.answers.forEach(s=>{s.choiceIds.forEach(i=>{let a=this.formInputs.find(l=>l.isSubQuestion&&l.questionId===s.questionId.toString()&&l.parentQuestionId===r.questionId.toString()&&l.input.value===i.toString())?.input;a&&(a.checked=!0)})})})}handleModuleAssessmentChange(t){this.userModuleAssessment=t.userModuleAssessment,this.formInputs=this.getFormInputs(),this.submitButton.hidden=!1,this.submitButton.ariaHidden="false",this.hideAnswerResultNotifiaction(!0),this.showQuersitonAnswerNotification(!1)}updateAnswerResultIndicator(t,n){t.label.classList.add(n?"is-correct":"is-incorrect");let o=t.label.querySelector(".answer-result-indicator");o.classList.add(n?"color-success":"color-danger"),o.querySelector(".icon").classList.add("docon",n?"docon-check":"docon-navigate-close");let s=o.querySelector(".answer-result-text");s.innerText=n?"Correct":"Incorrect",o.ariaHidden="false",o.hidden=!1}async updateAnswerResultNotifiaction(t){let{resultContainer:n,resultRetakeContainer:o,resultImgContainer:r,allContainersExists:s}=AD();if(!s)return;kD(t.passed,r);let i=ln(t.questionsAnsweredCorrectly,t.questionsToTake);await fe;let a={isUserAuthenticated:v.isAuthenticated,score:i,passCriteria:t.passCriteria,passed:t.passed},l=ID(a);y(l,n),o.hidden=t.passed,o.ariaHidden=t.passed?"true":"false"}hideAnswerResultNotifiaction(t){let n=document.getElementById("module-assessment-choice-answer-notification-container");n&&(n.hidden=!t,n.ariaHidden=t?"false":"true");let o=document.getElementById("module-assessment-answer-result-notification-container");o&&(o.hidden=t,o.ariaHidden=t?"true":"false"),!t&&o&&o.scrollIntoView({block:"center"})}getFormInputs(){return Array.from(this.form.querySelectorAll("label")).map(t=>{let n=this.form.querySelector(`#${t.getAttribute("for")}`),o=n.getAttribute("name"),r=tx(n),s=r?.getAttribute("is-sub-question")==="true";return{label:t,input:n,questionId:o,isSubQuestion:s,parentQuestionId:s?r?.getAttribute("parent-question-id"):null}})}validayeAllQueseionsAnswered(t){let n=this.userModuleAssessment.questions.filter(p=>p.type!=="Matrix").length,r=this.userModuleAssessment.questions.filter(p=>p.type==="Matrix").reduce((p,m)=>p+m.questions.length,0),s=n+r,i=t.answers.filter(p=>p.type!=="Matrix"),a=t.answers.filter(p=>p.type==="Matrix"),l=i.length,c=a.reduce((p,m)=>p+m.answers.length,0);return l+c{if(r.type==="Matrix"){let s=r;s.results.some(a=>!a.isCorrect);let i=!s.results.some(a=>!a.isCorrect);return{id:`${n}-${s.questionId}`,isCorrect:i}}else return{id:`${n}-${r.questionId}`,isCorrect:r.isCorrect}});Ee({behavior:Ce.OTHER,actionType:Re.OTHER,content:{type:"quiz-validated",uid:k("uid"),passed:t.passed,questions:o}})}};M();var SN=class{constructor(t,n,o=hv){this.form=t,this.submitButton=t.querySelector("button[type=submit]");let r=A.getElementById("unanswered-question-error");this._scenario=new Uo("Commerce.Docs.LearnProgress_ModuleCompletion_ReceiveCreditQuiz");let s=Array.from(t.querySelectorAll("label")).map(l=>({label:l,input:t.querySelector(`#${l.getAttribute("for")}`),question:l.closest(".quiz-question")})),i=l=>{let c=s.find(u=>u.input===l.target);c&&(r!==null&&r.classList.add("is-hidden"),s.filter(u=>u.question===c.question).forEach(({label:u,input:p})=>{u.classList.remove("is-incorrect","is-correct");let m=p.checked?"add":"remove";u.classList[m]("is-selected")}))},a=()=>s.forEach(({input:l,label:c})=>{let u=l.matches(":focus")?"add":"remove";c.classList[u]("is-focused")});Ye(t,"blur",a,!0),Ye(t,"focus",a,!0),Ye(t,"change",i),Ye(t,"submit",l=>{if(l.preventDefault(),!this.isSubmitting){if(!this.allQuestionsAnswered()){r!==null&&r.classList.remove("is-hidden");return}this.isSubmitting=!0,this._scenario.start(),this.submitButton.classList.add("is-loading");try{n.publish(new o(this,this.serializeSelectedAnswers()))}catch(c){if(this._scenario.fail(c),c instanceof Wt&&c.status!==429)throw c.status}}}),n.subscribe(Ff,l=>{this.handleValidationEvent(l)}),n.subscribe(fc,l=>{this.handleUnitStateChangeEvent(l)})}renderKnowledgeCheck(t){let n=new Ff(t);this.submitButton.classList.remove("is-loading"),iNe(n),this.isSubmitting=!1;let o=n.answers?n.answers:[];this.renderAnswerResult(o,t.details),this.submitButton.classList.add("is-hidden"),Array.from(this.form.elements).forEach(r=>{r.setAttribute("disabled","disabled")})}get scenario(){return this._scenario}async handleUnitStateChangeEvent(t){let{config:n}=t,{firstQuizCompletion:o,repeatQuizCompletion:r}=n;!o&&!r||(this.submitButton.classList.add("is-hidden"),Array.from(this.form.elements).forEach(s=>{s.setAttribute("disabled","disabled")}))}handleTooManyAttempts(){this.submitButton.classList.remove("is-loading"),this.isSubmitting=!1}handleValidationEvent(t){this.submitButton.classList.remove("is-loading"),iNe(t),this.isSubmitting=!1;let n=Array.from(A.querySelectorAll(".quiz-choice")),o=t.answers?t.answers:t.details;if(t.moduleAssessment){this.renderAnswerResult(o),this.reportQuizValidation(t);return}if(o){n.forEach(s=>{s.removeAttribute("aria-label")});for(let s of o)for(let i of s.choices){let a=A.querySelector(`label[for=quiz-choice-${o.indexOf(s)}-${i.id}]`);if(a){let l=a.innerText,c=i.isCorrect,u=i.explanation;a.setAttribute("aria-label",c?`${Jee}: ${l}`:`${Jae}: ${l}`),a.classList.add(c?"is-correct":"is-incorrect");let p=a.nextElementSibling;u&&(p.innerHTML=u)}}}if(this.reportQuizValidation(t),t.passed)return;let r=A.querySelectorAll(".quiz-choice.is-incorrect");if(r.length!==0){let s,i=[],a=A.querySelectorAll(".quiz-question"),l=A.getElementById("screen-reader-text");for(let u=0;u(n[o.name]=n[o.name]||o.checked,n),{});return Object.keys(t).reduce((n,o)=>n&&t[o],!0)}serializeSelectedAnswers(){let t=Array.from(this.form.elements).filter(n=>n.tagName.toLowerCase()==="input").reduce((n,o)=>{let r=o.name,s=o.value;return n[r]=n[r]||[],o.checked&&n[r].push(s),n},{});return Object.keys(t).map(n=>({id:n,answers:t[n]}))}reportQuizValidation(t){let o=(t.answers?t.answers:t.details)?.map(r=>({id:r.id,isCorrect:r.isCorrect}));Ee({behavior:Ce.OTHER,actionType:Re.OTHER,content:{type:"quiz-validated",uid:k("uid"),passed:t.passed,questions:o}})}renderAnswerResult(t,n=[]){let o=Array.from(this.form.querySelectorAll("label")).map(s=>{let i=s.getAttribute("for"),a=i?i.split("-"):[],l=parseInt(a[2]),c=parseInt(a[3]);return{label:s,input:this.form.querySelector(`#${i}`),questionId:l,choiceId:c}});n.length>0&&n.forEach(s=>{let i=s.answers?s.answers[0]:null,a=o.find(l=>l.questionId.toString()===s.id.toString()&&l.choiceId.toString()===i);a&&a.input&&(a.input.checked=!0)}),o.filter(s=>s.input.checked).forEach(({label:s,input:i,questionId:a,choiceId:l})=>{i.disabled=!0;let c=t.find(u=>u.id===a)?.choices.find(u=>u.id===l);if(c){let u=c.isCorrect;s.classList.add(u?"is-correct":"is-incorrect"),s.classList.remove("position-relative");let p=s.querySelector(".answer-result-indicator");p.classList.add(u?"color-success":"color-danger");let m=["margin-left-auto","display-inline-flex","justify-content-center","align-items-baseline","gap-xxs"];p.classList.add(...m),p.classList.remove("position-absolute","right-0"),p.querySelector(".icon").classList.add("docon",u?"docon-check":"docon-navigate-close");let f=p.querySelector(".answer-result-text");f.innerText=u?"Correct":"Incorrect",p.ariaHidden="false",p.hidden=!1;let _=s.nextElementSibling;_&&(_.ariaHidden="false",_.hidden=!0)}})}};async function iNe(e){if(!e.moduleAssessment)return;let t=A.getElementById("module-unit-notification-container");t&&(await stt(t,e),t.hidden=!1)}function rtt(e){let t=e[0];return t.questionsAnsweredCorrectly>=t.questionsToPass}async function stt(e,t){let n=d`
      `;y(n,e);let o=A.getElementById("module-unit-module-assessment-retake-button");o&&Ye(o,"click",async f=>{f.preventDefault(),window.location.reload()});let{resultContainer:r,resultRetakeContainer:s,resultImgContainer:i,allContainersExists:a}=AD();if(!a)return;let l=t.moduleAssessment?t.moduleAssessment.moduleAssessmentPreviousAttempts:[],c=rtt(l);kD(c,i);let u=l.length>0?ln(l[0].questionsAnsweredCorrectly,l[0].questionsToTake):0;await fe;let p={isUserAuthenticated:v.isAuthenticated,score:u,passCriteria:l[0].passCriteria,passed:c},m=ID(p);y(m,r),s.hidden=c,s.ariaHidden=c?"true":"false"}M();function aNe(){h$e().show()}function lNe(e,t){let n;e!==0?n=lE(hce.replace("{index}",e.toString())):n=jG(Sh,fce,o=>y$e(o,t),CN()),n.show()}function cNe(){jG(wh,bce,t=>_$e(t,`regen-${Date.now()}`),CN()).show()}function CN(){let t=Ev().match(/(\d+)$/),n=k("original_content_git_url");return t&&n?`${n.split("/blob")[0]}/pull/${t[1]}`:""}var Ka=null;async function uNe(e,t,n){pNe(n);let{completionType:o,unitId:r}=n;if(o!=="quiz"){lc();return}let s=!1,i=!1;if(kv()){let u=Fy();s=await x$e(u);let p=fNe();p&&(i=await T$e(u,p.owner,p.repo))}if(!EN(n)){let u=e.getLocalModuleAssessmentProgress();await fe,u&&(!v.isAuthenticated||u.moduleUid!==n.module.uid||u.unitUid!==n.currentUnit.uid||!u.isModuleAssessmentAI)&&(u=null);let p=await Ctt(n,t,u,s,i),m=document.getElementById("module-assessment-questions-form"),g=new wN(m,t,p),f=document.getElementById("module-unit-module-assessment-ai-feedback-button");f&&new TN(f,t,p),u!==null&&mtt(u,g),t.subscribe(fv,async({userAnswer:_,userModuleAssessment:h})=>{await fe;try{await e.validateModuleAssessmentAnswer(r,_,h)}catch(T){throw T}});return}Stt(n),(!S.gamification||!e)&&Array.from(document.querySelectorAll("form.quiz-form")).forEach(p=>p.hidden=!0);let a=[];Array.from(document.querySelectorAll("form.quiz-form")).forEach(u=>a.push(new SN(u,t)));let c=e.getLocalModuleAssessmentProgress();await fe,c&&n.isModuleAssessment&&v.isAuthenticated&&c.moduleUid===n.module.uid&&c.unitUid===n.currentUnit.uid&&!c.isModuleAssessmentAI?gtt(c,a[0]):lc(),t.subscribe(hv,async({instance:u,answers:p})=>{await fe;try{u.scenario.updateProgress("Validating quiz"),await e.validateQuiz(r,p,u.scenario),u.scenario.updateProgress("Validated quiz"),u.scenario.succeed()}catch(m){if(u.scenario.fail(m),m instanceof Wt&&m.status===429)u.handleTooManyAttempts();else throw m}})}function dNe(e){let{currentUnit:t,completionType:n}=e;if(n==="quiz"){let o=document.querySelector(".quiz.modal .xp-tag");o&&(o.dataset.progressUid=t.uid)}}function pNe(e){let t=!EN(e),n=document.getElementById("question-container"),o=e.completionType&&e.completionType==="quiz";if(xN(o&&t),n){let r=Array.from(n.querySelectorAll(".required-indicator"));r&&r.length>0&&r.forEach(s=>{s.hidden=!0,s.ariaHidden="true"})}}async function itt(e,t,n,o,r){let s=fNe(),i=s?`${s.owner}/${s.repo}`:"";if(EN(e))return;let a=document.getElementById("module-unit-module-assessment-message-container");if(!a)return;let l=document.getElementById("module-unit-total-time");if(l){let _=`${e.currentUnit.durationInMinutes} ${e.currentUnit.durationInMinutes===1?NF:ym}`;l.textContent=_}let c=location.hostname!=="learn.microsoft.com",u=d`
      ${ece} ${c?d`
      ${kv()?n?d`
      `:d`
      `:""}
      `:""}

      ${$le} ${Dle}

      `;if(y(u,a),a.ariaHidden="false",a.hidden=!1,c){let _=document.getElementById("preview-mode-toggle-button");_.checked=r,Ye(_,"change",async T=>{let x=T.target;await mNe(x.checked,e,t,n,o)})}let p=document.getElementById("module-unit-module-assessment-retake-button");p&&Ye(p,"click",async h=>{h.preventDefault();let T=await oV(e,null);nV(!1),t.publish(new Iu(T))});let m=document.getElementById("update-question-visibility-button");m&&Ye(m,"click",async()=>{let{index:h,hideQuestionNumbers:T}=ctt();lNe(h,T)});let g=document.getElementById("regenerate-ai-content-button");g&&Ye(g,"click",async()=>{cNe()});let f=document.getElementById("github-login");f&&Ye(f,"click",async()=>{att(n)})}async function oV(e,t){let n=t!==null?t.userModuleAssessment:await rNe(e.module.uid).catch(async s=>{if(s.type==="NotFoundError"){let i=document.getElementById("module-assessment-questions-form"),a=document.getElementById("module-assessment-submit-container");if(i&&a){let l=await Y$e(s,Ev(),b.data.userLocale);y(Q$e(l.branch,l.locale),i),a.hidden=!0,a.ariaHidden="true",i.ariaHidden="false",i.hidden=!1}}}),o=n?n.questions:[],r=d`${o.map((s,i)=>ftt(s,i+1))}`;return gNe("module-assessment-questions-container",r),n}function att(e){e||aNe()}async function ltt(e,t,n){Ka=await sNe(e.module.uid);let o=Ka!==null?Ka.objectives:[],r=d`
      ${Wle.replace("{hash}",Ka.hash)}
      ${o.map((s,i)=>htt(s,i,t,n,e.module.uid))} `;return gNe("module-assessment-objectives-container",r),Ka}async function mNe(e,t,n,o,r){let s=document.getElementById("regenerate-ai-content-button"),i=document.getElementById("update-question-visibility-button"),a=document.getElementById("github-login");if(e){let l=await ltt(t,o,r);nV(!0),en({previewMode:"true"},"replaceState"),n.publish(new A$(l))}else{let l=await oV(t,null);nV(!1),en({previewMode:"false"},"replaceState"),n.publish(new Iu(l))}kv()&&r&&s&&(s.disabled=!e),i&&(e&&kv()&&r?bNe():i.disabled=!0),kv()&&a&&(a.disabled=!e)}function gNe(e,t){let n=document.getElementById(e),o=document.getElementById("module-assessment-questions-form");n&&o&&(y("",n),y(t,n),o.ariaHidden="false",o.hidden=!1)}function ctt(){let e=0,t=[];return Ka?(Ka.objectives.forEach((n,o)=>{let r=document.getElementById(`module-assessment-objective-current-hidden-questions-${n.id}`);r&&(n.questions.length-r.value.split(",").lengths)))}),{hideQuestionNumbers:t,index:e}):(e=-1,{hideQuestionNumbers:t,index:e})}function kv(){let e=Ev();return e&&e.startsWith("pr-en-us")&&e.split("-").length===4}function fNe(){let e=k("pr_repo");if(!e)return null;try{let{pathname:t}=new URL(e),n=t.split("/").slice(1),o=n[0],r=n[1];return{owner:o,repo:r}}catch{return null}}function utt(e){let t=document.getElementById("module-assessment-submit-container");!t||EN(e)||y(d` `,t)}function nV(e){let t=document.getElementById("module-assessment-objectives-container"),n=document.getElementById("module-assessment-questions-container"),o=document.getElementById("module-assessment-submit-container");n&&t&&o&&(t.hidden=!e,t.ariaHidden=e?"false":"true",n.hidden=e,n.ariaHidden=e?"true":"false",o.hidden=e,o.ariaHidden=e?"true":"false"),document.getElementById("unanswered-module-assessment-question-error")?.classList?.add("is-hidden")}function dtt(e){let t=document.getElementById("module-unit-title"),n=document.getElementById("module-unit-title-container");if(!t||!n||!n.classList.contains("has-loading-skeleton"))return;let o=e.currentUnit.title;t.textContent=o,n.classList.remove("has-loading-skeleton")}function ptt(e){let t=document.getElementById("module-unit-quiz-submit-container");if(!t)return;let n=e.isModuleAssessment?TU:$X,o=e.isModuleAssessment?"module-unit-module-assessment-submit":"check-answers";y(d` `,t),t.classList.remove("has-loading-skeleton")}function EN(e){let t=k(tNe)==="true";return!e.isModuleAssessment||!t}function mtt(e,t){hNe(),t.renderUserModuleAssessmentAnswer(e.userAnswer);let n=new $p(e.userAnswerResult);t.handleAnswerResultChange(n),lc()}function gtt(e,t){hNe(),t.renderKnowledgeCheck(e.knowledgeCheckData),lc()}function hNe(){let e=document.getElementById("article-header"),t=document.createElement("div");t.id="module-assessment-signed-in-indicator-container",e.insertAdjacentElement("afterend",t);let n=d``;y(n,t)}function ftt(e,t){let n=e.type==="Matrix";return d`
      ${n?_tt(t,e):_Ne(e,t)}
      `}function htt(e,t,n,o,r){let s=e.questions.filter(a=>a.hidden).map(a=>a.questionNumber).join(","),i=()=>{let a=document.getElementById(`module-assessment-objective-content-${e.id}`),l=document.getElementById(`module-assessment-objective-expand-button-${e.id}`),c=document.getElementById(`module-assessment-objective-expand-icon-${e.id}`);if(a&&l){let u=a.hidden;a.hidden=!u,l.setAttribute("aria-expanded",u?"true":"false"),a.setAttribute("aria-hidden",u?"false":"true"),c.classList.toggle("docon-chevron-down-light",u),c.classList.toggle("docon-chevron-right-light",!u)}};return d`
      ${ace} ${t+1}: ${e.text}
      ${e.questions.map((a,l)=>btt(e.id,a,l,n,o,r))}
      `}function bNe(){if(!Ka)return;let e=document.getElementById("update-question-visibility-button");e.disabled=!0,Ka.objectives.forEach(t=>{let n=document.getElementById(`module-assessment-objective-current-hidden-questions-${t.id}`),o=new Set(n.value.split(",").filter(i=>i)),r=document.getElementById(`module-assessment-objective-original-hidden-questions-${t.id}`),s=new Set(r.value.split(",").filter(i=>i));(o.size!==s.size||Array.from(o).sort().join(",")!==Array.from(s).sort().join(","))&&(e.disabled=!1)})}function btt(e,t,n,o,r,s){let i=async g=>{let f=document.getElementById(`objective-question-marked-to-be-hidden-div-${t.id}`),_=document.getElementById(`objective-question-showing-div-${t.id}`),h=document.getElementById(`module-assessment-objective-question-container-${t.id}`),T=document.getElementById(`module-assessment-objective-current-hidden-questions-${e}`),x=new Set(T.value.split(",").filter(O=>O)),w=document.getElementById(`module-assessment-objective-original-hidden-questions-${e}`),I=new Set(w.value.split(",").filter(O=>O)),E=document.getElementById(`objective-question-marked-to-be-hidden-span-${t.id}`),Q=document.getElementById(`objective-question-showing-span-${t.id}`);g?(x.delete(t.questionNumber),f.classList.add("is-hidden"),_.classList.remove("is-hidden"),h.classList.remove("background-color-body-medium"),I.has(t.questionNumber)?Q.innerText=dce:Q.innerText=qF):(x.add(t.questionNumber),_.classList.add("is-hidden"),f.classList.remove("is-hidden"),h.classList.add("background-color-body-medium"),I.has(t.questionNumber)?E.innerText=OF:E.innerText=uce),T.value=Array.from(x).sort().join(","),bNe()},a=async()=>{i(!0)},l=async()=>{i(!1)},u=d`
      `,p=d`
      `,m=t.type==="Matrix";return d`
      ${u}${p}
      ${m?ytt(n,t):yNe(t,n)}
      `}function _tt(e,t){return d`${xNe(e,t.id,t.textHtml,!1)}${t.questions.map((n,o)=>_Ne(n,e,!0,o+1,t.id))}`}function ytt(e,t){return d`${vNe(e,t,!1)}${t.questions.map((n,o)=>yNe(n,e,!0,o,t.id))}`}function _Ne(e,t,n=!1,o=0,r=""){return d`${xNe(t,e.id,e.textHtml,n,o)}${xtt(e,n,r)}`}function yNe(e,t,n=!1,o=0,r=0){return d`${vNe(t,e,n,o)}${vtt(e,n,r)}`}function vNe(e,t,n,o=0){return d`
      ${n?`${e+1}.${o+1}.`:`${e+1}.`} [${Zle.replace("{questionId}",`${t.id}`)}] ${q(t.textHtml)}
      `}function xNe(e,t,n,o,r=0){return d`
      ${o?`${e}.${r}.`:`${e}.`} ${q(n)}
      `}function vtt(e,t,n=0){let o=d``;return d`
      ${wNe(e.choices).map(s=>wtt(s,e.id))} ${o}
      `}function xtt(e,t,n=""){return d`
      ${wNe(e.choices).map(r=>Ttt(r,e.id))}
      `}function Ttt(e,t){return d``}function wtt(e,t){let n=d`
      Correct
      `,o=d``,r=d``;return d`

      ${TNe(e)}

      `}function TNe(e){return e.rationaleHtml&&e.rationaleHtml!==""?q(e.rationaleHtml):e.rationale&&e.rationale!==""?e.rationale:tce}function wNe(e){let t=[...e];for(let n=t.length-1;n>0;n--){let o=Math.floor(Math.random()*(n+1));[t[n],t[o]]=[t[o],t[n]]}return t}function Stt(e){dtt(e),ptt(e)}async function Ctt(e,t,n,o,r){pNe(e);let i=sr().previewMode==="true";return itt(e,t,o,r,i),utt(e),i&&location.hostname!=="learn.microsoft.com"?(await mNe(!0,e,t,o,r),{}):await oV(e,n)}function SNe(e){return e&&e.replace(/(?)(?)\n(?!\s*<)/g,"
      ")}M();function CNe(e){if(!e.isFinalUnit||!e.module.products.includes("azure"))return;let t=document.getElementById("next-section");if(!t)return;let n=k("platform_id"),r=`https://azure.microsoft.com/pricing/purchase-options/azure-account?cid=${n?`msft_learn_${encodeURIComponent(n)}`:"msft_learn"}`,s=document.createElement("div");s.classList.add("text","margin-top-none","margin-bottom-none");let i=d`

      ${wbe}

      ${Sbe} ${Cbe}

      `;y(i,s),t.insertAdjacentElement("beforebegin",s)}var AN=ktt();function ENe(){let e=k("azure_sandbox")==="true"||k("sandbox")==="true"||k("lab-id");b.data.pageTemplate!=="ModuleUnit"||!e||(Att(),Ett())}async function Ett(){let e=new URL("https://fpt.microsoft.com/tags");e.searchParams.set("session_id",AN);let t=document.createElement("iframe");t.src=e.href,t.style.cssText="width: 100px; height: 100px; position: absolute; top: -5000px;",t.title="empty",t.tabIndex=-1,t.setAttribute("aria-hidden","true"),t.setAttribute("aria-disabled","true"),await Te,document.body.appendChild(t)}function Att(){let t=`https://vlscppe.microsoft.com/fp/tags.js?org_id=${L.supportLevel==="production"?"y6jn8c31":"w0rnzpxd"}&session_id=${AN}`;Xl(t,null)}function ktt(){let e=Ec.getItem("x-sid");return e||(e=Hi(),Ec.setItem("x-sid",e),e)}async function kN(){let e={method:"GET"},t=N(D.labOnDemand,e),n=await R(t);if(ee(n),n.ok){let o=await n.json();return rV(o)}return Promise.reject()}async function Iv(e,t){let n={method:"POST",headers:{"X-SID":AN},body:JSON.stringify({captchaToken:t})},o=N(`${D.labOnDemand}/${e}`,n),r=await R(o);if(ee(r),r.ok||r.status===400){let s=await r.json();return r.ok?(rV(s),{hasError:!1,lab:s}):{hasError:!0,error:s}}return Promise.reject()}async function IN(e){let t={method:"DELETE"},n=N(`${D.labOnDemand}/${e}`,t),o=await R(n);if(ee(o),o.ok){let r=await o.json();return rV(r)}return Promise.reject()}function rV(e){return e.Status===1?Promise.resolve(e):Promise.reject(e)}var PN={"ar-sa":"ar","bg-bg":"bg","bn-in":"bn-in","bs-latn-ba":"bs-latn-ba","ca-es":"ca","cs-cz":"cs","da-dk":"da","de-de":"de","el-gr":"el","en-gb":"en-gb","en-us":"en","es-mx":"es-mx","es-es":"es","et-ee":"et","eu-es":"eu","fi-fi":"fi","fil-ph":"fil","fr-ca":"fr-ca","fr-fr":"fr","ga-ie":"ga-ie","gl-es":"gl","he-il":"he","hi-in":"hi","hr-hr":"hr","hu-hu":"hu","id-id":"id","ig-ng":"ig-ng","is-is":"is","it-it":"it","ja-jp":"ja","kk-kz":"kk","ko-kr":"ko","lb-lu":"lb-lu","ms-my":"ms","mt-mt":"mt-mt","nl-nl":"nl","nb-no":"no","pl-pl":"pl","pt-br":"pt-br","pt-pt":"pt","ro-ro":"ro","ru-ru":"ru","sk-sk":"sk","sl-si":"sl","sr-cyrl-rs":"sr-cyrl","sr-latn-rs":"sr","sv-se":"sv","th-th":"th","zh-cn":"zh","zh-tw":"zh-TW","zh-hk":"zh-HK"};function ANe(){return L.supportLevel==="production"?"958652F9-1B3E-C23A-E908-CDFFFE508ECB":"4459FB26-0753-0E59-AA51-E12E04E8D946"}async function kNe(e){let t={timestamp:String(Date.now()),use_case:e,"HEADER_user-agent":navigator.userAgent,"HEADER_accept-language":PN[b.data.userLocale]??"default",HEADER_origin:location.origin,HEADER_referer:document.referrer},n={method:"POST",body:JSON.stringify(t)},o=N(D.encryptCaptchaPayload,n),r=await R(o);if(r.ok)return{blob:(await r.json()).encodedData};throw r.status===400?new Error("Enhance detection payload invalid"):new Error("Failed to generate Arkose enhance detection data")}var INe=["version","getConfig","reset","run","setConfig"];var Itt=S.chromeless||Ebe.getItem("playwrightActive"),dE;function PNe(){return dE}var LNe=!1;function RNe(){return LNe}function Ptt(){LNe=!0}async function Ltt(){return Itt?!1:(await fe,v.isAuthenticated)}function qp(e){return dE!==void 0||(dE=Ltt().then(t=>t?Xl("https://client-api.arkoselabs.com/v2/api.js",null,void 0,void 0,!0).then(()=>Rtt(e)).then(Dtt).catch(n=>{throw Ptt(),new Error("Failed to load Arkose library")}):Promise.resolve())),dE}function Rtt(e){return new Promise(t=>{se.setupEnforcement=function(n){Mtt(n,e).then(t)}})}async function Mtt(e,t){let n=PN[b.data.userLocale]||"default";return e.setConfig({language:n,publicKey:ANe(),data:await(async()=>{let o;try{S.arkoseEncrypt&&(o=await kNe(t))}catch{}return o})()}),$tt(e),e}function Dtt(e){let t=INe.filter(n=>e[n]===void 0);if(t.length>0)throw new Error(`Missing arkose dependencies: ${t.join(", ")}`)}function $tt(e){se.arkoseEnforcement=e}function iV(){return se.arkoseEnforcement}M();function Gf(e){return encodeURIComponent(e==="high-contrast"?` `:e==="dark"?` `:` `)}var pE=class{};function LN(e,t){return K` `}M();var MN="captcha-container",UNe,ONe,MNe=0,Ntt=3,qNe=GNe(),RN=class{},aV=new Ve,DNe=e=>{zNe(e.token),UNe()},Ftt={title:rl,imgsrc:e=>`data:image/svg+xml,${Gf(e)}`,message:Xr,description:Fx,buttonText:Yu,event:RN,type:"static"},Utt={title:PU,iframeContainerId:MN,type:"iframe"},$Ne={mode:"inline",selector:"#"+MN,onCompleted:DNe,onSuppress(e){e.suppressed&&(DNe(e),NNe("suppressed",v.userId,k("lab-id")))},async onError(e){NNe("failed",v.userId,k("lab-id"));let t=await Vtt(),n=iV();if(t&&MNe{$Ne.onCompleted?.(n),e.onCaptchaCompleted?.()}}:{}}),t.run(),await qNe,t.reset()}catch{e.renderError?.()}return Htt(),ONe}var Ott=d`

      ${PU}

      `;function HNe(e){y(Ott,e)}async function BNe(){let e=null,t=await lV({renderCaptcha:()=>{e=FNe(Utt),e.show()},renderError:()=>{e=FNe(Ftt),e.show()}});if(typeof t!="string"||!t||t.trim()==="")throw new Error("Captcha failed");return e&&e.hide(),t}function cV(e){let t=d`

      ${Fx}

      `;return y(t,e)}function zNe(e){ONe=e}function qtt(){zNe("")}function GNe(){return new Promise(e=>{UNe=e})}function Htt(){qNe=GNe()}function Btt(){return A.querySelector("#"+MN)}function ztt(){let e=Btt();e&&e.replaceChildren()}function Gtt(e,t){e.setConfig({...e.getConfig(),...t})}function NNe(e,t,n){let o=n||null;Ee({behavior:Ce.OTHER,actionType:Re.OTHER,content:{event:"arkose-result",labInstanceId:o,userInstanceId:t,message:e}})}async function Vtt(){try{return(await(await fetch("https://status.arkoselabs.com/api/v2/status.json")).json()).status.indicator==="none"}catch{return!1}}function FNe(e){let t=A.createElement("div");t.classList.add("modal-content","margin-none","width-full"),t.tabIndex=-1;let n=LN(aV,e).create();return ed(aV,RN,()=>{location.reload()}),n.bind(aV,dn),n.appendTo(t),new ge(t)}M();function VNe(e){y(d`

      ${q(_k)}

      ${jNe()} `,e)}function QNe(e){y(d`

      ${pY}

      ${jNe()} `,e)}function YNe(e){y(d`

      ${fY}

      ${gY}

      `,e)}function jNe(){return q(`

      ${fde}

      `)}var Pv=new Promise(()=>{});async function WNe(e,t,n){switch(e){case"AppealDenied":return VNe(t),Pv;case"AppealPending":return QNe(t),Pv;case"Blocked":return Ytt(n,t);case"SandboxCaptchaFailed":return jtt(t);case"OperationFailed":case"Rejected":return YNe(t),Pv}}async function Ytt(e,t){let n=await lV({renderCaptcha:()=>HNe(t),renderError:()=>cV(t)});typeof n!="string"||!n||n.trim()===""||await Iv(e,n)}function jtt(e){return cV(e),Pv}var Wtt="/training/module-availability",Ktt="/en-us/training/module-availability",Jtt="/en-us/learn-sandbox/module-availability",uV;function Xtt(){return L.supportLevel==="production"&&L.reviewFeatures?Ktt:L.supportLevel==="development"&&L.accessLevel==="online"?Jtt:Wtt}function Ztt(){return uV===void 0&&(uV=ent()),uV}function ent(){let e=`${Xtt()}/index.json?branch=main`;return R(e).then(t=>{if(t.ok)return t.json();if(t.status===404)return{disableAllSandboxes:!1,disableAllLabs:!1};throw new Error(`Unexpected module availability response: ${t.status}`)})}async function tnt(e,t){let n=await Ztt(),o=t==="sandbox"?n.disableAllSandboxes:n.disableAllLabs,r=t==="sandbox"?n.disabledSandboxes:n.disabledLabs;return o||r&&r.indexOf(e)>-1}async function KNe(e){return tnt(e,"lab")}var Mu="data-ux-state",Du={disabled:"disabled",finished:"finished",launchPrompt:"launch-prompt",modalPrompt:"modal-prompt",signInPrompt:"sign-in",spinner:"spinner",releasePrompt:"release-prompt",retryPrompt:"retry-prompt",riskError:"risk-error"},dV="launch-lab";async function mE(e,t,n,o,r=!0){if(DN())return null;o.setAttribute("data-bi-name","lab-prompt"),Vf(o,n),qp("Product Interactivity"),r=r&&!nnt();let s=await Nf();await KNe(s.uid)&&await rnt(o),await fe,v.isAuthenticated||(await snt(o,n),Vf(o,n));let a=await kN();if(a.Error&&(await JNe(o,n,a.Error),mE(e,t,n,o,!1),DN()))return null;r&&(await int(o,n),Vf(o,n));let l=a.RunningLabs.find(p=>p.LabProfileId===t),c,u=Xr;if(l)c=l.Url;else{let p=await Iv(t);if(p.hasError===!0){do o.setAttribute(Mu,Du.riskError),await WNe(p.error.errorCode,o,t),p=await Iv(t);while(p.hasError&&p.error?.errorCode==="Blocked");if(mE(e,t,n,o,!1),DN())return null}!a.SavedLabs.find(g=>g.LabProfileId===t)&&(a.RunningLabs.length||a.SavedLabs.length)?(await ant(o,n,a),Vf(o,n),p=await Iv(t)):Vf(o,n),p.hasError===!1&&!p.lab.Error?c=p.lab.Url:p.hasError===!1&&p.lab.Result===60&&(u=Eue)}return!c&&(await JNe(o,n,u),mE(e,t,n,o,!1),DN())?null:(n?lnt(o,t,c):(Vf(o,n),o.setAttribute(Mu,Du.finished)),c)}function DN(){return RNe()}function nnt(){let e=me(location.search);return e[dV]==="true"?(e[dV]=null,en(e,"replaceState"),!0):!1}function ont(){let e=me(location.search);return e[dV]="true",`${location.protocol}//${location.hostname}${location.pathname}?${V(e)}${location.hash}`}function Vf(e,t){e.setAttribute(Mu,Du.spinner);let o=d`

      ${t?_ue:nbe}

      `;y(o,e)}function rnt(e){e.setAttribute(Mu,Du.disabled);let t=d`

      ${bue}

      `;return y(t,e),Pv}function snt(e,t){e.setAttribute(Mu,Du.signInPrompt);let n=t?YF:MU,o=t?jF:DU,r=t?Sue:abe,s=d`

      ${n}

      ${q(o)}

      ${mU}

      ${r}

      `;return y(s,e),v.whenAuthenticated()}function int(e,t){e.setAttribute(Mu,Du.launchPrompt);let n=t?YF:MU,o=t?jF:DU,r=t?pk:tbe,s=d`

      ${n}

      ${q(o)}

      ${mU}

      `;return y(s,e),new Promise(i=>e.querySelector("button").onclick=()=>i())}function ant(e,t,n){e.setAttribute(Mu,Du.releasePrompt);let o=[...n.RunningLabs,...n.SavedLabs],r=t?xue:rbe,s=t?Tue:sbe;s=s.replace("{lab-name}",o[0].LabProfileName);let a=d`

      ${r}

      ${s}

      `;return y(a,e),new Promise((l,c)=>{e.querySelector("button").onclick=()=>{Vf(e,t),Promise.all(o.map(u=>IN(u.LabInstanceId))).then(()=>l(),c)}})}function JNe(e,t,n){e.setAttribute(Mu,Du.retryPrompt);let o=t?wue:ibe,r=d`

      ${n?Mt(n):Xr}

      `;return y(r,e),new Promise(s=>e.querySelector("button").onclick=()=>s())}function lnt(e,t,n){e.setAttribute(Mu,Du.modalPrompt);let o=d`

      ${yue}

      `;y(o,e);let r=`lab${t}`,s="width=800,height=600,status=0,resizable=1,toolbar=0,menubar=0,scrollbars=0";e.querySelector("button").onclick=()=>window.open(n,r,s)}M();async function XNe(e){let{isChromeless:t}=e,n=k("lab-id"),o=J.getItem("labOnDemandId");if(n&&J.setItem("labOnDemandId",n),!t&&n){let r=e2e();if(!S.labsOnDemand){r&&cnt(r);return}let s=k("lab-modal")==="true",i=await mE(e,+n,s,r);!s&&typeof i=="string"&&(location.href=i)}fe.then(async()=>{v.isAuthenticated&&!n&&o&&kN().then(r=>{let s=r.RunningLabs.find(i=>i.LabProfileId===parseInt(o,10));s&&IN(s.LabInstanceId)}).catch(()=>{}).finally(()=>{J.removeItem("labOnDemandId")})})}async function ZNe(){fe.then(async()=>{let e=k("codespaces-url");if(e!==void 0){let t=e2e();t&&unt(t,e)}})}function cnt(e){let t=`${location.origin}/${b.data.userLocale}/training/support/use-your-own-subscription`,n=ele.replace("{subscriptionLink}",t);y(d`

      ${q(n)}

      `,e)}function unt(e,t){y(d`

      ${zX}

      ${v.isAuthenticated?d` ${GX}`:d` `}

      `,e)}function e2e(e=!1){let{userDir:t,userLocale:n}=b.data,o=document.querySelector(".page-metadata"),r=`
      `;return o.insertAdjacentHTML("afterend",r),o.nextElementSibling}async function t2e(e){let{interactiveType:t,isChromeless:n}=e,o=document.getElementById("interactive-container");if(!t||t.flags.isExternal||n||!o)return;let{renderInteractiveComponent:r}=await Promise.resolve().then(()=>(uy(),gEe));r(t,o)}async function n2e(){await w$e();let e=O$e(),t=new Uo("Commerce.Docs.LearnProgress_ModuleCompletion_AccessUnit");t.start(),t?.updateProgress("Fetching module");let n=null;try{let f=Nf(t);[n]=await Promise.all([f,Te])}catch(f){t?.fail(f),xN(!1);return}t?.updateProgress("Fetched module");let o=q$e(e,p1e(n));if(await J$e(n,o,t))return;let r;e.completionType==="view"&&fe.then(async()=>{v.isAuthenticated&&(r=new Uo("Commerce.Docs.LearnProgress_ModuleCompletion_ReceiveCreditUnit"),r.start())});let s=A.querySelector(".content"),i=!1;ct.subscribe(dv,kMe);let a=new Ve;du(()=>a.dispose());let l=S.gamification?new bv(v,a):null;S$e(a),C$e(e),XNe(e),ZNe(),t2e(e),$Re(s),j$e(),Gy(b.data.pageTemplate),m(a,e),t.succeed(),g();let c=Array.from(A.querySelectorAll(".xp-tag"));dNe(o),yv(c,[o.currentUnit]),vN(o),ac(o.currentUnit.title,o.module),yN(o),uNe(l,a,o),eNe(A.getElementById("next-section"),a),X$e(a),gv(),CNe(o);async function u(f){await Te;let _=_N(o,f);(!i||f.updated||_.repeatQuizCompletion)&&((!i||f.updated)&&(i=!0),a.publish(new fc(_))),vv(f.standardProgress),g$e(_),_.moduleComplete&&dnt()}async function p(f){let{completionType:_,unitId:h}=f;if(r?.updateProgress("Syncing user progress"),await Ru(r),r?.updateProgress("Synced user progress"),_==="view")try{r?.updateProgress("Completing view unit");let T=await l.completeViewUnit(h,r);return r?.updateProgress("Completed view unit"),r?.succeed(),T}catch(T){if(r?.fail(T),T instanceof Wt&&T.status!==429)throw T}return await l.getCurrentUnitProgress(h)}function m(f,_){S.gamification&&(f.subscribe(Pu,u),p(_))}function g(){if(S.gamification)return;let f=A.getElementById("task-button-group");f&&(f.hidden=!0),A.documentElement.classList.remove("has-interactive","has-wide-layout");let _=A.querySelector(".primary-holder");_&&_.classList.remove("is-half-tablet","is-half","is-half-mobile","is-full-portrait","is-one-third-desktop")}window.dispatchEvent(new CustomEvent("atlas-layout-change-event"))}async function dnt(){if(await nv("hero-section-video-container")){let t=k("uid"),n="";if(t==="learn.wwl.describe-report-integration-use-finance-operations-apps.summary-resources"?n="https://learn-video.azurefd.net/vod/player?id=b7179148-9d19-41b1-ad18-fb7f0d1dad97&embedUrl=%2ftraining%2fmodules%2fdescribe-report-integration-use-finance-operations-apps%2f8-summary-resources":t==="learn.wwl.get-introduced-finance-operations-apps.summary"&&(n="https://learn-video.azurefd.net/vod/player?id=235e7a95-82c6-4693-859f-2ab7597ab168&embedUrl=%2ftraining%2fmodules%2fget-introduced-finance-operations-apps%2f5-summary"),n!==""){let o=A.getElementById("unit-inner-section"),r=A.createElement("div");r.className="embeddedvideo",r.innerHTML=``,o?.insertBefore(r,o?.children[3])}}}ot();async function r2e(){await Te;let e=k("achievementUid"),t=document.querySelector(".achievement-card");if(t)if(e!==void 0)await ynt(e,t);else return s2e(t)}var pnt=(e,t)=>{let n=`https://docs.microsoft.com/${b.data.userLocale}/users/${t}/achievements`,o=e.sourceUrl?`/${e.locale}${e.sourceUrl}`:`/${e.locale}/training/browse/`,r=e.sourceItemType?e.sourceItemType.toLowerCase()==="learning path"?J7:K7:"",s='background-image: url("/en-us/media/learn/achievements/achievement-background.svg?branch=main"); background-position: center; background-repeat: no-repeat; background-size: cover;',i=new Date(e.awardedDateUTC),a=new Intl.DateTimeFormat(b.data.userLocale).format(i),l=j7.replace("{learning path or module}",r),c=nQ.replace("{learning path or module}",r),u=Jhe.replace("{userDisplayName}",t);return d`

      ${r}

      ${e.title}

      ${e.profileDisplayName}

      ${r?l:W7}

      ${oQ}

      `},mnt=()=>d`

      ${I2}

      ${tQ}

      `,gnt=()=>d`

      ${X7}

      ${eQ}

      `,fnt=()=>d`

      ${I2}

      ${Z7}

      `;function hnt(){return new URLSearchParams(location.search)}function bnt(e,t,n){y(pnt(e,t),n)}function o2e(e){y(mnt(),e)}function _nt(e){y(gnt(),e)}function s2e(e){y(fnt(),e)}async function ynt(e,t){let n,o=hnt().get("username");if(!o)return o2e(t);try{n=await G1(o,e)}catch(r){return r instanceof aC?o2e(t):r instanceof lC?_nt(t):s2e(t)}bnt(n,o,t)}async function tr(e,t){let n=await hp(t);if(!n||!e)return;let o=e.hasOwnProperty("parents");if(Ot){let s=i=>"/"+i.split("/").slice(2).join("/");e&&(e=zr(e),e.url=s(e.url)),o&&e&&e.parents&&(e.parents[0].url=s(e.parents[0].url))}let r=k("page_kind");switch(r){case"appliedSkills":n.add({title:Oo,url:`/${n.basePath}/credentials`},{title:wc,url:`/${n.basePath}/credentials/browse/`});break;case"appliedSkillsAssessment":n.add({title:Oo,url:`/${n.basePath}/credentials`},{title:wc,url:`/${n.basePath}/credentials/browse/`},{title:e?.title??"",url:`/${n.basePath}${e.url}`});break;case"appliedSkillsAssessmentReport":n.add({title:Oo,url:`/${n.basePath}/credentials`},{title:wc,url:`/${n.basePath}/credentials/browse/`},{title:e?.title??"",url:`/${n.basePath}${e.url}`});break;case"role":case"certification":n.add({title:S.previewCredentialsL1?Oo:nl,url:S.previewCredentialsL1?`/${n.basePath}/credentials`:`/${n.basePath}/certifications`},{title:S.previewCredentialsL1?wc:oa,url:S.previewCredentialsL1?`/${n.basePath}/credentials/browse/`:`/${n.basePath}/certifications/browse/`});break;case"certificationrenewal":n.add({title:S.previewCredentialsL1?Oo:nl,url:S.previewCredentialsL1?`/${n.basePath}/credentials`:`/${n.basePath}/certifications`},{title:S.previewCredentialsL1?wc:oa,url:S.previewCredentialsL1?`/${n.basePath}/credentials/browse/`:`/${n.basePath}/certifications/browse/`},{title:e?.title??"",url:`/${n.basePath}${e.url}`});break;case"certificationRenewalAssessment":case"certificationRenewalAssessmentReport":n.add({title:S.previewCredentialsL1?Oo:nl,url:S.previewCredentialsL1?`/${n.basePath}/credentials`:`/${n.basePath}/certifications`},{title:S.previewCredentialsL1?wc:oa,url:S.previewCredentialsL1?`/${n.basePath}/credentials/browse/`:`/${n.basePath}/certifications/browse/`},{title:e?.title??"",url:`/${n.basePath}${e?.url}/`},{title:fk,url:`/${n.basePath}${e?.url}/renew/`});break;case"examination":n.add({title:S.previewCredentialsL1?Oo:nl,url:S.previewCredentialsL1?`/${n.basePath}/credentials`:`/${n.basePath}/certifications`},{title:S.previewCredentialsL1?wc:oa,url:S.previewCredentialsL1?`/${n.basePath}/credentials/browse/`:`/${n.basePath}/certifications/browse/`});break;case"practiceAssessmentReport":n.add({title:S.previewCredentialsL1?Oo:nl,url:S.previewCredentialsL1?`/${n.basePath}/credentials`:`/${n.basePath}/certifications`},{title:S.previewCredentialsL1?wc:oa,url:S.previewCredentialsL1?`/${n.basePath}/credentials/browse/`:`/${n.basePath}/certifications/browse/`},{title:e?.title??"",url:`/${n.basePath}${e.url}/`});break;default:throw new Error(`Unsupported page_kind "${r}".`)}n.render()}var hc=class{constructor(t,n=1){this.dateFormat=n;this.totalTimeLeft=0;this.isExpired=!1;this.endDate=t;let o=setInterval(()=>{this.setTotalTimeLeft(),this.isExpired=this.totalTimeLeft<=0,this.isExpired&&clearInterval(o)},1e3)}setTotalTimeLeft(){this.totalTimeLeft=this.endDate.getTime()-new Date().getTime()}get seconds(){return Math.floor(this.totalTimeLeft/1e3%60)}get mins(){return Math.floor(this.totalTimeLeft/1e3/60%60)}get hrs(){return this.dateFormat===0?Math.floor(this.totalTimeLeft/(1e3*60*60)):Math.floor(this.totalTimeLeft/(1e3*60*60)%24)}get days(){return Math.floor(this.totalTimeLeft/(1e3*60*60*24))}get displayFormat(){let t="";return this.days>0&&(t+="d"),this.hrs>0&&(t+="h"),this.mins>0&&(t+="m"),this.seconds>0&&(t+="s"),this.getDateFormat(t)}addLeadingZero(t){return t<10?`0${t}`:t}getDateFormat(t){let n="dhms";if(this.dateFormat===1)return t.length>=2?t.substr(0,2):t.length===1&&"dh".indexOf(t)>-1?n.substr("dh".indexOf(t),2):"ms";if(this.dateFormat===0)return"hms";throw new Error("Invalid date format used in DateCountdown")}};z([j],hc.prototype,"endDate",2),z([j],hc.prototype,"totalTimeLeft",2),z([j],hc.prototype,"isExpired",2);var vnt=K` ${e=>e.displayFormat.indexOf("d")>-1?`${ZA.replace("{days}",e.days.toString())}`:null} ${e=>e.displayFormat.indexOf("h")>-1?`${jae.replace("{hrs}",e.hrs.toString())}`:null} ${e=>e.displayFormat.indexOf("m")>-1?`${Qu.replace("{numberOfMinutes}",e.mins.toString())}`:null} ${e=>e.displayFormat.indexOf("s")>-1?`${sge.replace("{seconds}",e.seconds.toString())}`:null} `,xnt=K` ${pn(e=>[{value:e.hrs,label:il},{value:e.mins,label:ym},{value:e.seconds,label:qx}],K` ${(e,t)=>t.parent.addLeadingZero(e.value)} ${e=>e.label} ${Pe((e,t)=>!t.isLast,K` : `)} `,{positioning:!0})} `,mV=K` ${Pe(e=>e.totalTimeLeft>0,K` ${Pe(e=>e.dateFormat===1,vnt)} ${Pe(e=>e.dateFormat===0,xnt)} `)} `,i2e=(e,t,n)=>{if(!e||!t)return;let o=new hc(t),r=an.getNotifier(o);n&&r.subscribe({handleChange(i,a){n(i,a)}},"isExpired");let s=mV.create();s.bind(o,dn),s.appendTo(e)};function $N(e,t){let n={},o;for(o in t)if(t.hasOwnProperty(o)&&typeof t[o]=="object"){let r;n[o]={};for(r in t[o])if(t[o].hasOwnProperty(r)&&typeof t[o][r]=="string"){let s=t[o][r];n[o][r]={ids:e.querySelector(`#${s}`)??null,classes:e.querySelectorAll(`.${s}`)??null}[o]}}return n}M();var gV="cert-hide-completed",fV=6;function Tnt(e){return S.gamification&&v.isAuthenticated?J.getItem(e)===null?(J.setItem(e,"false"),!1):J.getItem(e)==="true":!1}function wnt(){let e=[{trigger:"path-section-hide-completed",elementsContainer:"tabpanel-learning-paths"},{trigger:"study-guide-section-hide-completed",elementsContainer:"study-guide"}],t=null;return e.forEach(n=>{document.getElementById(n.trigger)!==null&&document.getElementById(n.elementsContainer)!==null&&(t=n)}),t}function l2e(e){let t=wnt();if(t!==null){if(!S.gamification){let n=document.getElementById(t.trigger);n&&(n.hidden=!0);return}Snt(e,t.trigger,t.elementsContainer),Mnt(document.getElementById(t.elementsContainer))}}function Snt(e,t,n){let o=Array.from(e.querySelectorAll(`#${n} [data-learn-uid]`)),r=e.querySelector(`#${t}`);if(o.length{if(!(a.target instanceof HTMLElement&&a.target.closest(`#${t}`))||!v.isAuthenticated||!S.gamification)return;let c=Rnt();a2e(c,o,i)}),r.parentElement.classList.remove("is-hidden")}function Cnt(e){for(let t of e)if(t.dataset.learnStatus!=="completed")return!1;return!0}function Ent(e,t,n){let o=n.querySelector("[data-show-more]"),r=e.filter(s=>s.dataset.learnStatus!=="completed").length;t&&rAnt(s))}else Lnt(t),t.forEach(o=>o.parentElement.hidden=!1);Ent(t,e,n)}function Ant(e){return e.dataset.learnStatus==="completed"?e.parentElement.hidden=!0:e.parentElement.hidden=!1}function knt(e){return e.filter(t=>t.dataset.learnStatus==="completed"&&!t.parentElement.classList.contains("expandable")).length}function Int(e){return e.filter(t=>t.dataset.learnStatus!=="completed"&&t.parentElement.classList.contains("expandable"))}function Pnt(e,t){e.forEach((n,o)=>{o{t.parentElement.dataset.expandableRemoved==="true"&&t.parentElement.classList.add("expandable")})}function Rnt(){let e=J.getItem(gV)!=="true";return J.setItem(gV,e.toString()),e}function Mnt(e){if(!Dnt(e))return;e.querySelector('[aria-controls="learning-paths-list"]').click()}function Dnt(e){let t=Array.from(e.querySelectorAll("[data-learn-uid]")),n=fV-1;if(t.length{let r=o==="docs"?n.pageKind:o;return{uid:n.uid,title:n.title,url:n.url,type:r==="course"?"course":r==="path"?"learningPath":"module",childCount:n.childUids?.length??n.moduleCount,childUIds:n.childUids??[],summary:n.summary,modules:n.modules,iconUrl:n.iconUrl,durationInMinutes:n.durationInMinutes,levels:n.levels??[],display_levels:n.display_levels??[],display_products:n.display_products??[],display_roles:n.display_roles??[],display_skills:n.display_skills??[]}})}function Nnt(e){let t=[];for(let{data:n}of e)if(n.remainingTime!==n.durationInMinutes&&t.push({uid:n.uid,status:n.progress===1?"completed":"inProgress",remainingTime:n.remainingTime}),n.completedChildUids&&n.completedChildUids.length!==0)for(let o of n.completedChildUids)t.push({uid:o,status:"completed",remainingTime:0});return t}function Fnt(e,t,n){y(d`${n.map(({data:s},i)=>d`
    • `)}`,t);let r=A.querySelector(`[aria-controls="${e}"]`);if(n.length>5){r===null&&t.insertAdjacentElement("afterend",Unt(e));return}r!==null&&r.remove()}function Unt(e){let t=A.createElement("button");return t.classList.add("button","button-primary","margin-top-xxs"),t.setAttribute("aria-controls",e),t.setAttribute("data-show-more",""),y(d`${wm} `,t),t}function Ont(){let e=["learning-paths-list","study-guide-list"],t=null;return e.forEach(n=>{A.getElementById(n)!==null&&(t=n)}),t}async function $u(e){let t=Ont();if(t===null)return;let n=A.getElementById(t);if(n===null)return;await fe;let o=await(async()=>{try{let r=await e.getStudyGuide();if(r===null||r.items.length===0)throw new Error("No items in study guide");return Fnt(t,n,r.items),{learnInfo:$nt(r.items),userProgress:Promise.resolve(Nnt(r.items))}}catch{}try{let r=await NN();if(r.length===0)throw new Error("No items in study guide");return{learnInfo:Dp(r),userProgress:v.isAuthenticated&&S.gamification?R$():Promise.resolve([])}}catch{}return null})();if(!o||!Array.isArray(o?.learnInfo)||o?.learnInfo?.length===0){Hnt(n,t);return}M$({container:e.mainElement,learnInfo:o.learnInfo,userProgress:o.userProgress,pageTemplate:e.pageTemplateOverride??b.data.pageTemplate}).then(()=>{e.addNextStepsEnrollment&&Bnt(n,k("uid")),qnt(),jn(e.mainElement),L$(n)}),l2e(e.mainElement)}function qnt(){A.querySelectorAll("#study-guide-list a").forEach(t=>{t.setAttribute("data-bi-name","study-guide")})}function Hnt(e,t){A.querySelector(`button[aria-controls="${t}"]`)?.remove(),y(d`
    • ${Dce}

    • `,e)}function Bnt(e,t,n=b.data.pageTemplate){let r={AppliedSkills:"learningpath",Certification:"certification",Examination:"exam"}[n];if(!v.isAuthenticated)return;Array.from(e.querySelectorAll(".start-learn-path, .card-content-title")).forEach(i=>{i.href=`${i.href}?${V($f(t,r))}`})}async function c2e(e){try{return await Ki(e).then(t=>t.courses)}catch{return[]}}function znt(e){y(d`
    • ${Rce}

    • `,e)}function u2e(e,t){if(e!==null){if(!t||t.length===0){znt(e);return}y(d` ${t.map(n=>d`
    • ${n.title}

      ${q(n.summary)}
    • `)} `,e)}}var Gnt={"applied-skill":{0:{0:["api-branch","display-captcha","skip-verification","themebranch"],1:[]},1:{0:["api-branch","display-captcha","skip-verification","snapshotId","themebranch"],1:["snapshotId"]},2:{0:["api-branch","display-captcha","skip-verification","snapshotId","themebranch"],1:["snapshotId"]}},practice:{0:{0:["api-branch","practice-assessment-type","themebranch"],1:["practice-assessment-type"]},1:{0:["assessmentId","assessment-type","practice-assessment-type","preview","snapshot-version","api-branch","themebranch"],1:["assessmentId","assessment-type","practice-assessment-type"]},2:{0:["assessmentId","practice-assessment-type","preview","snapshotId","snapshot-version","api-branch","themebranch"],1:["assessmentId","practice-assessment-type","snapshotId"]}},renewal:{0:{0:["assessmentId","snapshot-version","skip-verification","api-branch","themebranch"],1:[]},1:{0:["accommodationRequested","assessmentId","certification-id","preview","skip-verification","snapshot-version","api-branch","themebranch"],1:["assessmentId"]},2:{0:["assessmentid","snapshotId","skip-verification","snapshot-version","preview","api-branch","themebranch"],1:["snapshotId"]}}};function Vt(e){let t={"applied-skill":"credentials/applied-skills",practice:`credentials/certifications${me()["practice-assessment-type"]==="certification"?"":"/exams"}`,renewal:"credentials/certifications"},n={"applied-skill":"applied-skill",practice:`${me()["practice-assessment-type"]==="certification"?"certification":"exam"}`,renewal:"certification"},o={"applied-skill":[],practice:[1,2],renewal:[0,1,2]},r={"applied-skill":"",practice:"practice",renewal:"renew"},s={0:"",1:"assessment",2:"results"},i={accommodationRequested:s8(),"api-branch":me()["api-branch"],assessmentid:e.query?.assessmentid,assessmentId:e.query?.assessmentId,"assessment-type":e.assessmentType,"certification-id":e.credentialId,"display-captcha":e.query?.["display-captcha"]??me()["display-captcha"],"practice-assessment-type":me()["practice-assessment-type"],preview:me().preview,"skip-verification":e.query?.["skip-verification"]??xf(),snapshotId:e.query?.snapshotId,"snapshot-version":Tf(),themebranch:me().themebranch},a=Gnt[e.assessmentType][e.pageType][L.reviewFeatures?0:1],l={origin:oe.origin+"/",locale:Be.userLocale+"/",test:Ot?"test/training/":"",credentialType:t[e.assessmentType].replace(Ot&&["practice","renewal"].includes(e.assessmentType)?"credentials/":"","")+"/",credentialId:e.credentialId.replace(new RegExp("^"+n[e.assessmentType]+"."),"").replace(Ot?/\-test$/:"","")+"/",credentialPathname:e.credentialPathname?e.credentialPathname.replace(/^\/|\/$/g,"")+"/":null,subPath:o[e.assessmentType].includes(e.pageType)?r[e.assessmentType]+"/":"",pageType:s[e.pageType],query:a.length?"?"+V(a.reduce((u,p)=>(u[p]=i[p],u),{})):""};return`${l.origin}${l.locale}${l.credentialPathname??l.test+l.credentialType+l.credentialId}${l.subPath}${l.pageType}${l.query}`}M();function Qf(e){let t=e.map((n,o,r)=>{let s={correctPercent:ln(n.session.totalCorrectCount,n.session.totalQuestionCount),isThreeColumns:"reportUrl"in n||"assessmentId"in n,passed:n.session.status==="Pass",reportUrl:"reportUrl"in n?n.reportUrl:"assessmentId"in n?Vt({assessmentType:n.credential.assessmentType,pageType:2,credentialId:n.credential.id,credentialPathname:n.credential.pathname,query:{assessmentid:n.assessmentId,assessmentId:n.assessmentId,"display-captcha":me()["display-captcha"],snapshotId:n.session.id,"skip-verification":me()["skip-verification"]}}):""},i=s.passed?"color-success":"color-danger",a=s.passed?em:Zp,l=s.passed?"docon-check-mark":"docon-navigate-close",c={listClasses:`position-relative padding-block-sm ${n.initialExpandedCount?o+1<=n.initialExpandedCount?"":"expandable":""} ${o!==r.length-1?"border-bottom":""}`,meter:d`
      `,meterLabel:d` ${hde} ${sh.replace("{score}",s.correctPercent.toString())} `,reportLink:s.reportUrl?d`${Khe}`:"",scoreDate:d`${gn.format(new Date(n.session.date))}`,statusBadge:n.showPassOnly&&!s.passed?"":d`${a}`};return d`
    • ${c.scoreDate} ${c.statusBadge}
      ${c.meterLabel} ${c.meter}
      ${c.reportLink?d`
      ${c.reportLink}
      `:""}
    • `});return d`
        ${t}
      `}function p2e(e){return d`

      ${e.title}

      ${Qf(e.attempts)}
      `}var hV=class{constructor(t,n,o,r,s){this.location=t;this.dataBinding=n;this.templateBinding=r;this.source=null;this.view=null;this.data=null;this.originalContext=void 0;this.childContext=void 0;this.dataBindingObserver=an.binding(n,this,o),this.templateBindingObserver=an.binding(r,this,s)}bind(t,n){this.source=t,this.originalContext=n,this.childContext=Object.create(n),this.childContext.parent=t,this.childContext.parentContext=this.originalContext,this.data=this.dataBindingObserver.observe(t,this.originalContext),this.template=this.templateBindingObserver.observe(t,this.originalContext),this.refreshView()}unbind(){this.source=null,this.data=null,this.view!==null&&this.view.unbind(),this.dataBindingObserver.disconnect(),this.templateBindingObserver.disconnect()}handleChange(t){t===this.dataBinding?(this.data=this.dataBindingObserver.observe(this.source,this.originalContext),this.refreshView()):t===this.templateBinding&&(this.template=this.templateBindingObserver.observe(this.source,this.originalContext),this.refreshView())}refreshView(){this.view!==null&&this.view.dispose(),this.view=this.template.create(),this.view.bind(this.data,this.childContext),this.view.insertBefore(this.location)}},bV=class extends Jl{constructor(n,o){super();this.dataBinding=n;this.templateBinding=o;this.createPlaceholder=It.createBlockPlaceholder;this.isBindingVolatile=an.isVolatileBinding(n),this.isTemplateBindingVolatile=an.isVolatileBinding(o)}createBehavior(n){return new hV(n,this.dataBinding,this.isBindingVolatile,this.templateBinding,this.isTemplateBindingVolatile)}};function cn(e,t){let n=typeof t=="function"?t:()=>t;return new bV(e,n)}M();function Lv(e){let t=function(){let s=k("sourceContentUid");return s?s.split(".")[1]:e.pathname.split("/")[Ot?6:4]}(),n=e.searchParams.get("display-captcha"),o=e.searchParams.get("snapshotId"),r=e.searchParams.get("skip-verification");return{credentialId:t,displayCaptcha:n,skipverification:r,snapshotId:o}}function Yf(e){let t=Vnt(e);return{profileUrl:`/users/me/credentials/${{"applied-skills":"applied-skills",certification:"certification"}[e.contentType]}/${t}`,shareableUrl:`${oe.origin}/api/credentials/share/${encodeURIComponent(v.userName)}/${t}`}}function Vnt(e){return e.credentialId.replace(new Map([["applied-skills",/^applied\-skill\./],["certification",/^certification\./]]).get(e.contentType),"").replace(Ot?/\-test$/g:"","")}function FN(){let e=k("sourceContentUid");if(e)return e;if(Ot){let[,,,,,n]=oe.pathname.split("/");return`certification.${n}`}let[,,,,t]=oe.pathname.split("/");return`certification.${t}`}function Rv(e,t,n){let r=A.title.split("|").pop();return`${t.replace(n,e)} | ${r}`}var UN=K`

      ${e=>e.title}

      ${e=>e.msg}

      ${e=>e.primaryButton.text} ${Pe(e=>"secondaryButton"in e,K` ${e=>e.secondaryButton.text}`)}
      `;function Mv(e){e.browsePageClassNodes&&e.browsePageClassNodes.length&&Ot&&e.browsePageClassNodes.forEach(t=>{if(t instanceof HTMLAnchorElement){t.href=`${e.testContentPath}${m2e(t.href)}`;return}let n=t.querySelector("a");n!==null&&(n.href=`${e.testContentPath}?${m2e(n.href)}`)})}function m2e(e){let t=e.split("?")[1];return t?`?${t}`:""}function ON(e){return f2e({buttonText:e,template:_V(),hasPrimaryButton:!0,isDisabled:!0})}function _V(){return K`

      ${VQ}

      ${cn(e=>e,mV)}

      `}function f2e(e){let t=e.isDisabled?"disabled":"",n=e.hasPrimaryButton?"button-primary":"";return K`
      ${cn(o=>o,e.template)}
      `}function qN(e){let t=jhe.replace("{candidateAgreementUrl}",e.candidateAgreementUrl).replace("{product}",e.product).replace("{credentialsProgramAgreementUrl}",e.credentialsProgramAgreementUrl),n="start-button-container",o="start-assessment-cta",r=l=>l&&e.enableToggle?d`${e.buttonText}`:d``,s=l=>{let c=A.querySelector(`#${n}`);if(c===null)return;let u=l.target.checked,p=A.querySelector(`#${o}`);c.removeChild(p),y(r(u),c)},i=()=>d`
      `;return d``}function h2e(e){if(!A.referrer)return!1;if(new URL(A.referrer).pathname==="/_themes/docs.theme/master/en-us/_themes/global/identity-profile.html")return!0;let n=/\/?$/,o=new URL(A.referrer)?.pathname.replace(n,""),r=oe.pathname.replace(n,"");return e.allowedReferrers(e.basePathname(r)).includes(o)}function Qnt(e){let n=!(e.riskData?.appealStatus&&e.riskData?.appealStatus==="denied"),o=e.riskData?.appealStatus==="approved"?!1:!!(e.riskData?.appealStatus||e.isDisabled),r=oY;return{alertText:{approved:yo(rY),new:sY,denied:_k,defaultMSg:r}[e.riskData?.userStatus==="NotAllowed"?e.riskData.appealStatus??"defaultMSg":"defaultMSg"],hasPrimaryButton:n,isDisabled:o}}function gE(e){let{alertText:t,hasPrimaryButton:n}=Qnt({isDisabled:e.isDisabled,riskData:{appealStatus:e.riskData?.appealStatus,userStatus:e.riskData?.userStatus}});return f2e({buttonText:e.buttonText,template:K`
      ${It.createHTML(yo(t))}
      `,hasPrimaryButton:n,isDisabled:!0})}async function HN(e){let t=0,n=()=>e.length===t;return new Promise(o=>{e.forEach(({request:r,sections:s})=>{let i;r.then(a=>i=a).catch(()=>i=null).finally(()=>{s.forEach(a=>a(i)),t++,n()&&o()})})})}M();async function y2e(e){if(await Te,tr({title:DQ,url:"/credentials/browse"}),k("retirementDate"))return;await fe;let n=Wnt();Knt();let o=Lv(new URL(location.href)),r=$N(e,{ids:{attempts:"applied-skill-attempts",attemptsHeroCta:"applied-skill-attempts-hero-cta",attemptsList:"applied-skill-attempts-list",attemptsShowMoreButtonContainer:"applied-skill-attempts-show-more-button-container",defaultHeroCta:"applied-skill-default-hero-cta",labDuration:"applied-skill-lab-duration",labDurationLength:"applied-skill-lab-duration-length",retakeEligibleAtHeroCta:"applied-skill-retake-eligible-at-hero-cta",sharingLinks:"applied-skill-sharing-links",studyGuide:"applied-skill-study-guide",takeAssessmentCta:"applied-skill-take-assessment-cta",takeAssessmentRetakeEligibleAt:"applied-skill-take-assessment-retake-eligible-at",takeTheAssessment:"applied-skill-take-the-assessment",verifiableCredential:"applied-skill-verifiable-credential",verifiableCredentialUid:"applied-skill-verifiable-credential-url",userConsentCheckContainer:"applied-skill-user-consent-check-container"},classes:{assessmentPageLink:"applied-skill-assessment-page-link",browsePageLink:"applied-skills-browse-page-link"}});qp("Applied Skills"),HN([{request:Up.getAppliedSkill(k("uid"),o.skipverification),sections:[s=>{if(s===null||!s.attempts.length||!r.ids.attempts||!r.ids.attemptsList||!r.ids.attemptsShowMoreButtonContainer)return;let i=k("uid");if(!i)return;let a=3,l=Qf(s.attempts.map(c=>({assessmentId:"",credential:{assessmentType:"applied-skill",id:i,pathname:s.url||""},session:{date:c.score.scoredAt,id:c.labInstanceId,passingPercent:ln(c.score.taskCount.passing,c.score.taskCount.total),status:c.score.passed?"Pass":"Fail",totalCorrectCount:c.score.taskCount.correct,totalQuestionCount:c.score.taskCount.total},initialExpandedCount:a})));s.attempts.length>a&&r.ids.attemptsShowMoreButtonContainer&&r.ids.attemptsShowMoreButtonContainer&&(r.ids.attemptsShowMoreButtonContainer.hidden=!1),y(l,r.ids.attemptsList),r.ids.attempts.hidden=!1},s=>{s===null||!s.labDurationInMinutes||!r.ids.labDuration||!r.ids.labDurationLength||(r.ids.labDuration.hidden=!1,r.ids.labDurationLength.textContent=tn(s.labDurationInMinutes))},s=>{if(!(s===null||!s.riskData?.userStatus||!r.ids.takeAssessmentRetakeEligibleAt||!r.ids.takeAssessmentCta||(s.riskData?.userStatus??"Allowed")!=="NotAllowed")&&(s?.riskData?.userStatus??"Allowed")==="NotAllowed"){r.ids.takeAssessmentRetakeEligibleAt.hidden=!1;let i=gE({buttonText:bn,isDisabled:s.isDisabled,riskData:{appealStatus:s.riskData.appealStatus,userStatus:s.riskData.userStatus}}).create();i.bind({},dn),i.appendTo(r.ids.takeAssessmentRetakeEligibleAt),r.ids.takeAssessmentCta.hidden=!0}},s=>{if(!(s===null||!s.retakeEligibleAt||!r.ids.retakeEligibleAtHeroCta||!r.ids.takeAssessmentRetakeEligibleAt||!r.ids.takeAssessmentCta||s?.riskData?.userStatus==="NotAllowed")){if(S.disabledAppliedSkills&&s?.isDisabled){let i=gE({buttonText:bn,isDisabled:s.isDisabled}).create();i.bind({},dn),i.appendTo(r.ids.takeAssessmentRetakeEligibleAt)}else[{element:r.ids.retakeEligibleAtHeroCta,template:_V()},{element:r.ids.takeAssessmentRetakeEligibleAt,template:ON(bn)}].forEach(a=>{if(s.isCurrentlyEligible)return;let l=a.template.create();s.retakeEligibleAt&&(l.bind(new hc(new Date(s.retakeEligibleAt),0),dn),l.appendTo(a.element))});r.ids.takeAssessmentCta.hidden=s?.isDisabled||v.isAuthenticated&&!s.isCurrentlyEligible}},s=>{if(s===null||!s.studyGuide){r.ids.studyGuide&&(r.ids.studyGuide.hidden=!0);return}$u({getStudyGuide:()=>Promise.resolve(s.studyGuide),mainElement:e,addNextStepsEnrollment:!0})},s=>{if(s===null||!s.verifiableCredentialUid||!r.ids.sharingLinks||!r.ids.verifiableCredential)return;let i={verifiableCredentialUrl:Yf({credentialId:s.verifiableCredentialUid,contentType:"applied-skills"})};S.appliedSkillsShare?Av("fast",{title:Tm,extraClasses:{paragraph:"display-inline-block margin-right-xxs font-size-sm has-text-centered-mobile ",link:"margin-right-xxs font-size-md"},sharingLinks:Pf(i.verifiableCredentialUrl.shareableUrl,k("og:title")??yo(UE),{achievementCopyTitle:{overrideTitle:k("og:title")??yo(FE),isUnquoted:!k("og:title")}})}).create().appendTo(r.ids.sharingLinks):r.ids.sharingLinks.hidden=!0,r.ids.verifiableCredentialUid.href=i.verifiableCredentialUrl.profileUrl,r.ids.verifiableCredential.hidden=!1},s=>{s===null||!r.classes.assessmentPageLink||!r.classes.browsePageLink||!k("uid")||(r.classes.assessmentPageLink?.forEach(a=>{a instanceof HTMLAnchorElement&&(a.href=v2e({url:s.url,skipverification:o.skipverification}),a.classList.remove("is-loading","is-disabled"))}),Mv({browsePageClassNodes:r.classes.browsePageLink,testContentPath:"/test/training/credentials/browse/"}))},s=>{if(s===null||r.ids.defaultHeroCta===null||r.ids.retakeEligibleAtHeroCta===null||r.ids.takeAssessmentRetakeEligibleAt===null||r.ids.attemptsHeroCta===null||typeof s.retakeEligibleAt!="string")return;let i={hasAttempts:!!s.attempts.length,hasCooldown:v.isAuthenticated&&!s.isCurrentlyEligible,hasVerifiableCredential:!!s.verifiableCredentialUid},a=i.hasCooldown,l=!a&&i.hasVerifiableCredential,c=!a&&!l&&i.hasAttempts,u=!c&&!a&&!l;r.ids.defaultHeroCta!==null&&(r.ids.defaultHeroCta.hidden=!u,r.ids.takeTheAssessment!==null&&b2e(r.ids.defaultHeroCta,r.ids.takeTheAssessment.id)),r.ids.retakeEligibleAtHeroCta!==null&&(r.ids.retakeEligibleAtHeroCta.hidden=!a),r.ids.takeAssessmentCta!==null&&(r.ids.takeAssessmentRetakeEligibleAt.hidden=S.disabledAppliedSkills?!a&&!s?.isDisabled&&(s?.riskData?.userStatus??"Allowed")!=="NotAllowed":!a),r.ids.attemptsHeroCta!==null&&(r.ids.attemptsHeroCta.hidden=!c,r.ids.takeTheAssessment!==null&&b2e(r.ids.attemptsHeroCta,r.ids.takeTheAssessment.id));let p=Date.parse(s.retakeEligibleAt)-Date.now();setTimeout(()=>{r.ids.retakeEligibleAtHeroCta!==null&&(r.ids.retakeEligibleAtHeroCta.hidden=!0),r.ids.takeAssessmentRetakeEligibleAt!==null&&(r.ids.takeAssessmentRetakeEligibleAt.hidden=S.disabledAppliedSkills?!s?.isDisabled&&(s?.riskData?.userStatus??"Allowed")!=="NotAllowed":!0),i.hasAttempts?r.ids.attemptsHeroCta!==null&&(r.ids.attemptsHeroCta.hidden=!1):r.ids.defaultHeroCta!==null&&(r.ids.defaultHeroCta.hidden=!1),r.ids.takeAssessmentCta!==null&&(r.ids.takeAssessmentCta.hidden=S.disabledAppliedSkills?(s?.isDisabled??!1)||(s?.riskData?.userStatus??"Allowed")==="NotAllowed":!1);let m=!s?.isDisabled&&(s?.riskData?.userStatus??"Allowed")!=="NotAllowed";m&&_2e({enableToggle:m,toggleButton:r.ids.takeAssessmentCta,userConsentCheckContainer:r.ids.userConsentCheckContainer,displayCaptcha:o.displayCaptcha,skipverification:o.skipverification,url:s.url,isReminderModalEnabledPromise:n,studyGuide:s.studyGuide,trainingUrl:s.studyGuide?.items?.[0]?.data?.url})},Math.max(0,p))},s=>{if(s===null||!r.ids.takeAssessmentCta||!r.ids.userConsentCheckContainer||(s?.riskData?.userStatus??"Allowed")==="NotAllowed")return;let i=!s?.isDisabled&&((s?.isCurrentlyEligible||!v.isAuthenticated)??!0);i&&_2e({enableToggle:i,toggleButton:r.ids.takeAssessmentCta,userConsentCheckContainer:r.ids.userConsentCheckContainer,displayCaptcha:o.displayCaptcha,skipverification:o.skipverification,url:s.url,isReminderModalEnabledPromise:n,studyGuide:s.studyGuide,trainingUrl:s.studyGuide?.items?.[0]?.data?.url}),r.ids.takeAssessmentCta.classList.remove("is-loading")}]}])}function b2e(e,t){let n=e.querySelector("a");n&&(n.href=`#${t}`)}function v2e(e){return Vt({assessmentType:"applied-skill",credentialId:k("uid"),credentialPathname:e.url??"",pageType:1,query:{"display-captcha":e.displayCaptcha,"skip-verification":e.skipverification,snapshotId:void 0}})}function _2e(e){if(e.userConsentCheckContainer===null||!e.toggleButton)return;let t=v2e({url:e.url,displayCaptcha:e.displayCaptcha,skipverification:e.skipverification}),n=new ge(jnt({assessmentUrl:t,trainingUrl:e.trainingUrl})),o=qN({candidateAgreementUrl:"https://learn.microsoft.com/credentials/support/appliedskills-candidate-agreement",credentialsProgramAgreementUrl:"https://learn.microsoft.com/credentials/support/credential-program-agreement",product:"Applied Skills",enableToggle:e.enableToggle,toggleHref:t,buttonClasses:"button button-filled button-primary width-full width-unset-tablet",buttonText:bn,customToggleEvent:async r=>{await e.isReminderModalEnabledPromise&&!!e.studyGuide&&e.studyGuide.completedModuleCount!==e.studyGuide.moduleCount&&(r.preventDefault(),await n.show())}});e.toggleButton.remove(),y(o,e.userConsentCheckContainer),e.userConsentCheckContainer.hidden=!1}function jnt({assessmentUrl:e,trainingUrl:t}){let n=document.createElement("div"),o=`/media/learn/credential/book-pencil-${Td()==="light"?"light":"dark"}.png?branch=main`;return y(d` `,n),n}function Wnt(){return nv("applied-skills-complete-training")}function Knt(){cc({wrapper:e=>d`
      ${e.children}
      `})}var T2e={InvalidRequest:LQ,LabError:RQ,SubscriptionUnavailable:EQ,NotAllowed:yo(MQ),InvalidCaptchaToken:Fx,default:Wu};var fE=class{},Dv=class{},hE=class{},bE=class{},w2e={title:zE,type:"static",imgsrc:e=>`data:image/svg+xml,${Gf(e)}`,message:SQ,description:CQ,buttonText:co,event:fE},yV={title:rl,type:"static",imgsrc:e=>`data:image/svg+xml,${Gf(e)}`,message:Xr,description:TQ,buttonText:Yu,event:Dv},S2e={title:ax,type:"static",imgsrc:e=>`data:image/svg+xml,${Gf(e)}`,message:yQ,description:vQ,buttonText:ax,event:hE},C2e={title:AQ,type:"static",imgsrc:e=>`data:image/svg+xml,${Gf(e)}`,message:kQ,description:IQ,buttonText:PQ,event:bE};var E2e="labStatusReporter",Jnt="fullScreenMessageTitle",Xnt="fullScreenProgressText",Znt="fullScreenProgressWrapper",F5n=`#${Jnt}`,U5n=`#${Znt} > #${Xnt}`,A2e="labclient.labondemand.com";var vV=(l=>(l.loadingYourLabContent="loading your lab content",l.labEnvironmentBeingBuilt="your lab environment is being built",l.thisCanTakeSeveralMinutes="this can take several minutes",l.virtualMachinesStarting="your virtual machines are starting",l.resuming="resuming",l.preparing="preparing",l.labSetup="lab setup",l.checkingBrowserCapabilities="checking browser capabilities",l))(vV||{}),xV=(n=>(n.labCouldNotBeLaunched="sorry, your lab could not be launched",n.launchError="launch error",n))(xV||{});function bc(e,t,n,o){switch(n&&e.updateProgress(n),t){case"labInitialized":e.start();break;case"successfullyLoaded":e.succeed();break;case"iframeFailure":case"serverBadRequest":e.fail(o);break;case"unauthorized":case"labNotFound":case"labPreviouslyScored":case"userNavigatedAway":e.cancel();break;case"reportLabProgress":case"labErrorFound":break}}var Zi=class extends Ve{constructor(n,o){super();this.appliedSkillAssessment=null;this.viewState=0;this.modal=null;this.hasLabConnected=!1;this.captchaToken="";this.mostRecentLabStatusMessage=null;this.appliedSkillScenarioTimeout=6e5;this.reportTelemetry=n=>{if(n.id){this._services.reportLabStatus({id:n.id,message:n.message??null});return}n.message&&(this.mostRecentLabStatusMessage=n.message)};this.urlContext=o,this._services=n,this.launchLabScenario=new Uo("Commerce.Docs.LearnProgress_AppliedSkill_LaunchLab",this.appliedSkillScenarioTimeout),this.onMessageHandler=r=>{if(r&&r.origin.startsWith("https://")&&r.origin.endsWith(A2e)&&r.data)try{let s=JSON.parse(r.data);s.event_id===E2e&&(this.updateLabConnected(s),this.reportScenarioHealth(s),this.reportUpdatedTelemetry(s))}catch{}},this.onBeforeUnloadHandler=r=>{r.preventDefault(),r.returnValue=""},this.onUnloadHandler=()=>{this._services.cancelAppliedSkillAssessment(this.urlContext.snapshotId)},this.userNavigatedAway=()=>{bc(this.launchLabScenario,"userNavigatedAway")}}async initialize(){window.addEventListener("message",this.onMessageHandler,!1),window.addEventListener("visibilitychange",this.userNavigatedAway,!1),await this.initAppliedSkillSession(this.urlContext)}async submit(){try{window.removeEventListener("beforeunload",this.onBeforeUnloadHandler),window.removeEventListener("unload",this.onUnloadHandler),this._services.scoreAppliedSkillAssessment(this.urlContext.snapshotId)}finally{setTimeout(()=>{oe.href=_E(2,this.urlContext,this.appliedSkillAssessment.appliedSkill.url)})}}async cancel(){try{window.removeEventListener("beforeunload",this.onBeforeUnloadHandler),window.removeEventListener("unload",this.onUnloadHandler),this._services.cancelAppliedSkillAssessment(this.urlContext.snapshotId),setTimeout(()=>{oe.href=_E(0,this.urlContext,this.appliedSkillAssessment.appliedSkill.url)})}catch{window.addEventListener("beforeunload",this.onBeforeUnloadHandler),window.addEventListener("unload",this.onUnloadHandler),this.publish(new pE)}}async expireTime(){try{let n=await this._services.getAppliedSkillAssessment(this.appliedSkillAssessment.labSession.labSessionId,this.captchaToken),o=Date.parse(this.appliedSkillAssessment.labSession.expiresAt),r=Date.parse(n.labSession.expiresAt);if(r<=o){window.removeEventListener("beforeunload",this.onBeforeUnloadHandler),window.removeEventListener("unload",this.onUnloadHandler);let s=ed(this,bE,this.submit.bind(this));this.iframe.classList.add("display-none"),document.documentElement.focus(),this.showModal(C2e).then(()=>{s(),this.submit()})}else{this.appliedSkillAssessment.labSession.expiresAt=n.labSession.expiresAt;let s=r-Date.now();setTimeout(this.expireTime.bind(this),s)}}catch{window.removeEventListener("beforeunload",this.onBeforeUnloadHandler),window.removeEventListener("unload",this.onUnloadHandler);let n=ed(this,Dv,()=>{oe.reload()});this.showModal(yV).then(o=>{n()})}}showModal(n){let o=document.createElement("div");o.classList.add("modal-content","margin-none","width-full"),o.tabIndex=-1;let r=LN(this,n).create();return r.bind(this,dn),r.appendTo(o),this.modal=new ge(o),this.modal.show()}async getCaptchaToken(){return qp("Applied Skills"),await BNe().catch(n=>{throw this.viewState=3,n})}reportScenarioHealth(n){if(n.errors.length>0&&bc(this.launchLabScenario,"labErrorFound",n.errors.join(", ")),n.currentConnectionState===1)bc(this.launchLabScenario,"successfullyLoaded");else if(n.messageProgressTitle){let o=this.getScenarioHealthEventFromMessageTitle(n.messageProgressTitle);o&&(o==="iframeFailure"?bc(this.launchLabScenario,o,void 0,n.messageProgressTitle):bc(this.launchLabScenario,o,n.messageProgressTitle))}}updateLabConnected(n){n.currentConnectionState===1&&(this.hasLabConnected=!0)}reportUpdatedTelemetry(n){n.currentConnectionState!==n.lastConnectionState&&this.reportTelemetry({id:this.appliedSkillAssessment?.labSession?.labSessionId,message:n})}getScenarioHealthEventFromMessageTitle(n){let o=new Map([[xV,"iframeFailure"],[vV,"reportLabProgress"]]);for(let[r,s]of o)if(Object.values(r).some(i=>n.includes(i)))return s;return null}async initAppliedSkillSession(n){try{bc(this.launchLabScenario,"labInitialized");let o=!!n.snapshotId;if(this.appliedSkillAssessment=o?await this._services.getAppliedSkillAssessment(n.snapshotId,this.captchaToken):await this._services.createAppliedSkillAssessment(n.credentialId,this.captchaToken,n.skipverification,L.reviewFeatures&&this.urlContext.displayCaptcha==="true").catch(async s=>{let i=s,a=await Dm(i);if(i.type==="BadRequestError"){if(a==="MissingCaptchaToken")return this.captchaToken=await this.getCaptchaToken(),this._services.createAppliedSkillAssessment(n.credentialId,this.captchaToken,n.skipverification);throw i.response.errorCode=a||void 0,i}throw s}),this.reportTelemetry({id:this.appliedSkillAssessment.labSession.labSessionId}),this.appliedSkillAssessment.labSession.scored==="Scored"||this.appliedSkillAssessment.labSession.scored==="ScoringInitiated"){bc(this.launchLabScenario,"labPreviouslyScored"),Promise.resolve().then(()=>{oe.href=_E(2,n,this.appliedSkillAssessment.appliedSkill.url)});return}this.urlContext.snapshotId=this.appliedSkillAssessment.labSession.labSessionId;let r=new URL(oe.href);r.searchParams.set("snapshotId",this.appliedSkillAssessment.labSession.labSessionId),Bn.replaceState(null,"",r),tr({title:this.appliedSkillAssessment.appliedSkill.title??lx,url:this.appliedSkillAssessment.appliedSkill.url||""},document.getElementById("article-header-breadcrumbs")||void 0),this.subscribe(fE,this.submit.bind(this)),this.subscribe(hE,this.cancel.bind(this)),document.title=Rv(this.appliedSkillAssessment.appliedSkill.title??lx,yo(xQ),"{appliedSkillTitle}"),this.checkEstimatedReadyAt(o)}catch(o){let r=o,s=await Dm(r)??r.response?.errorCode;if(r.type==="NotFoundError"){bc(this.launchLabScenario,"labNotFound");let i=new URL(oe.href);i.searchParams.delete("snapshotId"),Bn.replaceState(null,"",i),this.viewState=3;return}if(r.type==="UnauthorizedError"||s==="QuotaExceeded"||S.disabledAppliedSkills&&s==="AppliedSkillDisabled")bc(this.launchLabScenario,"unauthorized"),oe.href=_E(0,this.urlContext);else{bc(this.launchLabScenario,"serverBadRequest",void 0,o);let i=ed(this,Dv,()=>{oe.reload()}),a=Object.assign({},yV,{message:Xr,description:T2e[s??"default"]});this.showModal(a).then(l=>{i()})}}}setTesting(){let o=Date.parse(this.appliedSkillAssessment.labSession.expiresAt)-Date.now();setTimeout(this.expireTime.bind(this),o),window.addEventListener("beforeunload",this.onBeforeUnloadHandler),window.addEventListener("unload",this.onUnloadHandler),this.viewState=2}checkEstimatedReadyAt(n=!1){let r=(Date.parse(this.appliedSkillAssessment.labSession.estimatedReadyAt)||-1/0)-Date.now();n||r<=0||this.hasLabConnected?this.setTesting():(this.viewState=1,setTimeout(this.checkEstimatedReadyAt.bind(this),1e3))}};z([j],Zi.prototype,"appliedSkillAssessment",2),z([j],Zi.prototype,"urlContext",2),z([j],Zi.prototype,"viewState",2),z([j],Zi.prototype,"modal",2),z([j],Zi.prototype,"hasLabConnected",2),z([j],Zi.prototype,"captchaToken",2),z([j],Zi.prototype,"mostRecentLabStatusMessage",2),z([j],Zi.prototype,"subscription",2);function k2e(){return K`${Pe(e=>e.viewState===3,K`${cn(e=>({title:Ns,msg:GE,primaryButton:{text:cx,url:_E(0,e.urlContext)}}),UN)}`)} ${Pe(e=>e.viewState!==3,K`
      ${Pe(e=>e.viewState===0,tot)} ${Pe(e=>e.viewState!==0,eot)}
      `)}`}function eot(){return K` `}function tot(){return K`

      ${pn(()=>new Array(3),K``)}
      ${pn(e=>new Array(3),K`
      ${pn(e=>new Array(5),K`

      `)}
      `)}
      `}function _E(e,t,n){return Vt({credentialId:t.credentialId,credentialPathname:n??void 0,assessmentType:"applied-skill",pageType:e,query:{"display-captcha":t.displayCaptcha,snapshotId:e===2?t.snapshotId:void 0,"skip-verification":t.skipverification}})}async function I2e(e){let t=e.querySelector("#ms--applied-skills-assessment-container");if(!t)return;if(await fe,L.accessLevel!=="local"&&!v.isAuthenticated){wn();return}let n=Lv(new URL(location.href));if(!h2e({basePathname:s=>s.replace(/\/assessment$/,""),allowedReferrers:s=>[s,s+"/results"]})){location.href=Vt({credentialId:n.credentialId,credentialPathname:void 0,assessmentType:"applied-skill",pageType:0,query:{snapshotId:void 0,"skip-verification":n.skipverification}});return}let o=k2e().create(),r=new Zi(Up,n);o.bind(r,dn),o.appendTo(t),r.initialize()}var TV=class{constructor(t){this.assessmentId=t.urlContext.snapshotId,this.correctPercent=ln(t.report.session.score.taskCount.correct,t.report.session.score.taskCount.total),this.credentialCompletedOn=null,this.credentialExpiresOn=new Date(t.report.appliedSkill.retakeEligibleAt),this.credentialIcon=null,this.credentialId=t.urlContext.credentialId,this.credentialName=t.report.appliedSkill.title,this.credentialUrl=t.report.appliedSkill.url,this.isCurrentlyEligible=t.report.appliedSkill.isCurrentlyEligible,this.isDisabled=t.report.appliedSkill.isDisabled,this.passed=t.report.session.score.passed,this.passingPercent=ln(t.report.session.score.taskCount.passing,t.report.session.score.taskCount.total),this.profileUrl=Yf({credentialId:t.urlContext.credentialId,contentType:"applied-skills"}).profileUrl,this.retakeEligibleOn=new Date(t.report.appliedSkill.retakeEligibleAt),this.shareableUrl=Yf({credentialId:t.urlContext.credentialId,contentType:"applied-skills"}).shareableUrl,this.scoredOn=new Date(t.report.session.score.scoredAt),this.scores=t.report.session.tasks.map(n=>({correctPercent:ln(t.report.session.score.taskCount.correct,t.report.session.score.taskCount.total),passed:n.passed,passingPercent:ln(t.report.session.score.taskCount.passing,t.report.session.score.taskCount.total),title:n.title})),this.studyGuide=t.report.studyGuide,this.titleDate=`${xF} ${aa(new Date(t.report.session.score.scoredAt))}`,this.riskData=t.report.appliedSkill.riskData}};async function M2e(e){let t=await Up.getAppliedSkillAssessmentReport(e.snapshotId,e.skipverification),n=new TV({report:t,urlContext:e});return n.passed||qp("Applied Skills"),n}var D2e={loadingContext:{loadingType:!A.referrer||new URL(A.referrer).pathname.match(/.*(assessment|results)$/gi)?.length?0:1,navigation:{assessmentPageUrl:(e,t,n,o)=>Vt({credentialId:e,assessmentType:"applied-skill",pageType:1,credentialPathname:n,query:{"display-captcha":o,snapshotId:void 0,"skip-verification":void 0}}),profileOverviewPageUrl:An("me","certifications")}},loadedContext:{reportSummary:{passed:{titleDate:e=>e,imgSrc:e=>e||"/en-us/media/learn/credential/badges/applied-skill.svg?branch=main",shareMsg:Tm,supertitle:yo(ZQ),title:e=>e||R2},failed:{supertitle:VE,title:e=>e||R2}},reportScores:{scoresTitle:YQ,scoreType:0,scoreGuidanceUrl:"https://learn.microsoft.com/credentials/support/assessment-scoring-reports#understand-an-assessment-lab-score-report"},reportStudyGuide:{guideType:0,studyGuideCollectionFormTitle:yo(KQ),studyGuideItemsTitle:WQ}},errorContext:{reportError:e=>({NotFoundError:{title:Ns,msg:GE,primaryButton:{text:cx,url:Vt({credentialId:e.credentialId,assessmentType:"applied-skill",pageType:0,credentialPathname:void 0,query:{"display-captcha":e?.displayCaptcha,"skip-verification":e?.skipverification}})}},UnexpectedError:{title:rl,msg:eY,primaryButton:{text:cx,url:Vt({credentialId:e.credentialId,assessmentType:"applied-skill",pageType:0,credentialPathname:void 0,query:{"display-captcha":e?.displayCaptcha,"skip-verification":e?.skipverification}})}}})}};var BN=K` ${Pe(e=>e.viewConfig.loadingContext.loadingType===1,null)} ${Pe(e=>e.viewConfig.loadingContext.loadingType===0,K`

      ${jQ}

      ${It.createHTML(JQ.replace("{duration}","60"))}

      `)} `;var yE=class{constructor(t){if(this.errorType=t.error.type,this.errorType==="UnauthorizedError"&&L.accessLevel!=="local"&&!v.isAuthenticated&&wn(),this.errorType==="NotFoundError"&&t.urlContext.snapshotId){let n=new URL(location.href);n.searchParams.delete("snapshotId"),Bn.replaceState(null,"",n)}}};z([j],yE.prototype,"errorType",2);var wV=e=>K`${cn(t=>t.viewConfig.errorContext.reportError(t.urlContext)[e??t.reportError.errorType],UN)}`,$2e=K` ${Pe(e=>e.reportError.errorType==="NotFoundError",wV())} ${Pe(e=>e.reportError.errorType==="UnauthorizedError",wV("UnexpectedError"))} ${Pe(e=>e.reportError.errorType==="UnexpectedError",wV())} ${Pe(e=>e.reportError.errorType==="TimeoutError",BN)} `;var _c=class{constructor({high:t=0,low:n=0,max:o=1,min:r=0,optimum:s=0,value:i=0,classModifiers:a=""}){this.high=t,this.low=n,this.max=o,this.min=r,this.optimum=s,this.value=i,this.classModifiers=a}};z([Br],_c.prototype,"high",2),z([Br],_c.prototype,"low",2),z([Br],_c.prototype,"max",2),z([Br],_c.prototype,"min",2),z([Br],_c.prototype,"optimum",2),z([Br],_c.prototype,"value",2),z([j],_c.prototype,"classModifiers",2);var yc=class{constructor(t){this.correctPercent=t.correctPercent,this.overallMeter=this.createMeter(t.correctPercent,t.passingPercent),this.passed=t.passed,this.passingPercent=t.passingPercent,this.scoredAt=t.scoredOn,this.scores=this.createMeters(t.scores)}createMeter(t,n,o){return new _c({high:100,low:n,max:100,optimum:n,value:t,classModifiers:o})}createMeters(t){return t.map(n=>({...n,meter:this.createMeter(n.correctPercent,n.passingPercent,"is-small")}))}};z([j],yc.prototype,"correctPercent",2),z([j],yc.prototype,"overallMeter",2),z([j],yc.prototype,"passed",2),z([j],yc.prototype,"passingPercent",2),z([j],yc.prototype,"scoredAt",2),z([j],yc.prototype,"scores",2);var N2e=K`
      `,F2e=K`

      ${e=>e.reportScores.passed?em:Zp}

      ${Hj} ${e=>gn.format(e.reportScores.scoredAt)}

      ${Kj}${e=>sh.replace("{score}",e.reportScores.correctPercent.toString())}${e=>e.passed?em:Zp}

      ${e=>Qj.replace("{percent}",e.reportScores.passingPercent.toString())}

      ${cn(e=>e.reportScores.overallMeter,N2e)}

      ${e=>e.viewConfig.loadedContext.reportScores.scoresTitle}

      ${pn(e=>e.reportScores.scores,K`
      ${Pe((e,t)=>t.parent.viewConfig.loadedContext.reportScores.scoreType===0,K` e.passed?"background-color-success":"background-color-danger"}" aria-hidden="true" > `)}

      ${e=>e.title}

      ${Pe((e,t)=>t.parent.viewConfig.loadedContext.reportScores.scoreType===1,K` ${cn(e=>e.meter,N2e)}`)}
      `,{positioning:!0})}
      ${Pe(e=>e.viewConfig.loadedContext.reportScores.scoreGuidanceUrl,K` `)}
      `;M();function U2e(e,t=!1){let o=e.collection?.items??[];return d`

      ${rj}

      ${(()=>{let r=t?o:o.slice(0,5);return U$(e,r,t?void 0:5,-1,"h4",!0)})()} ${o.length>5?d` `:""}
      `}function oot(e,t){let n=t.querySelector("#renewal-preparation-metadata-progress");if(n&&e.preparationData.collection){let{completedModuleCount:o,moduleCount:r}=e.preparationData.collection,s=fh.replace("{completedCount}",o.toString()).replace("{totalCount}",r.toString(10));y(d`${s}`,n),n.classList.remove("skeleton")}}function rot(e,t){let n=t.querySelector("#renewal-preparation-items-section");n&&(y(U2e(e.preparationData),n),jn(n),n.classList.remove("has-loading-skeleton"))}async function vE(e,t,n=lj){let o=document.createElement("div");o.classList.add("modal-content");let r=new ge(o),s=new Intl.DateTimeFormat(e).format(new Date).replace(/\//g,"-"),i=d` `;y(i,r.contentElement),r.contentElement.querySelector("button[type=submit]").onclick=async a=>{if(!v.isAuthenticated)return;a.preventDefault(),a.target.classList.add("is-loading");let c=document.getElementById("save-to-collection");(await CD(c,t)).hasError||(r.hide(),IC("added"))},r.show()}async function O2e(e,t){if(e.renewalData&&e.renewalData.studyGuide)await e.preparationData.beforeActivate(e.renewalData.studyGuide);else{let o=t.querySelector("#renewal-preparation-section");o&&o.remove()}let n=t.querySelector("#save-this-collection-button");n&&(v.isAuthenticated?n.classList.remove("docs-sign-in","auth-status-determined"):n.textContent=uj,n.addEventListener("click",async()=>{v.isAuthenticated&&e.preparationData&&vE(e.locale,e.preparationData.collection.items)})),oot(e,t),rot(e,t)}var $v=class{constructor(t){this.credentialId=t.credentialId,this.assessmentId=t.assessmentId,this.credentialUrl=t.credentialUrl,this.studyGuide=t.studyGuide,this.hasStudyGuideSummaries=this.studyGuide?.items.length>0}};z([j],$v.prototype,"hasStudyGuideSummaries",2),z([j],$v.prototype,"studyGuide",2);var sot=K`
      ${zj}
      ${Pe(e=>"detailsPageUrl"in e.viewConfig.loadingContext.navigation,K` ${XE} `)} `,iot=K`
      ${e=>e.type.toLowerCase()==="path"?al:wo} ${e=>e.data.title} ${e=>tn(e.data.durationInMinutes)}
      `,aot=K`

      ${e=>eA.replace("{section}",e.data.title)}

      `,lot=K`

      ${XQ}

      ${zQ}

      ${pn(e=>e.reportStudyGuide.studyGuide.items,K` ${Pe((e,t)=>t.parent.viewConfig.loadedContext.reportStudyGuide.guideType===0,iot)} ${Pe((e,t)=>t.parent.viewConfig.loadedContext.reportStudyGuide.guideType===1,aot)} `)} `,q2e=K`

      ${e=>e.viewConfig.loadedContext.reportStudyGuide.studyGuideItemsTitle}

      ${Pe(e=>!e.reportStudyGuide.hasStudyGuideSummaries,sot)} ${Pe(e=>e.reportStudyGuide.hasStudyGuideSummaries,lot)}
      `;var ao=class{constructor(t){this.assessmentId=t.assessmentId,this.credentialExpiresOn=t.credentialExpiresOn,this.credentialIcon=t.credentialIcon,this.credentialId=t.credentialId,this.credentialName=t.credentialName,this.credentialUrl=t.credentialUrl,this.dateCountdown=new hc(t.retakeEligibleOn,0),this.eligibleToRenewByDate=t.eligibleToRenewByDate,this.isCurrentlyEligible=t.isCurrentlyEligible,this.isDisabled=t.isDisabled,this.passed=t.passed,this.profileUrl=t.profileUrl,this.retakeEligibleOn=t.retakeEligibleOn,this.scoredOn=t.scoredOn,this.shareableUrl=t.shareableUrl,this.titleDate=t.titleDate,this.riskData=t.riskData}};z([j],ao.prototype,"assessmentId",2),z([j],ao.prototype,"credentialExpiresOn",2),z([j],ao.prototype,"credentialIcon",2),z([j],ao.prototype,"credentialId",2),z([j],ao.prototype,"credentialName",2),z([j],ao.prototype,"credentialUrl",2),z([j],ao.prototype,"dateCountdown",2),z([j],ao.prototype,"eligibleToRenewByDate",2),z([j],ao.prototype,"isCurrentlyEligible",2),z([j],ao.prototype,"isDisabled",2),z([j],ao.prototype,"passed",2),z([j],ao.prototype,"profileUrl",2),z([j],ao.prototype,"retakeEligibleOn",2),z([j],ao.prototype,"scoredOn",2),z([j],ao.prototype,"shareableUrl",2),z([j],ao.prototype,"titleDate",2),z([j],ao.prototype,"riskData",2);var cot=K`
      ${Pe(e=>"supertitle"in e.viewConfig.loadedContext.reportSummary.passed&&!!e.reportSummary?.credentialName,K`

      ${e=>e.viewConfig.loadedContext.reportSummary.passed.supertitle}

      `)}

      ${e=>e.viewConfig.loadedContext.reportSummary.passed.title(e.reportSummary?.credentialName||"")}

      ${Pe(e=>!!e.reportSummary?.scoredOn,K`

      ${e=>e.reportSummary?.titleDate}

      `)} ${Pe(e=>"dateMsg"in e.viewConfig.loadedContext.reportSummary.passed,K`

      ${e=>e.viewConfig.loadedContext.reportSummary.passed.dateMsg}

      `)} ${Pe(e=>"profilePageBtnTxt"in e.viewConfig.loadedContext.reportSummary.passed,K` ${e=>e.viewConfig.loadedContext.reportSummary.passed.profilePageBtnTxt} `)} ${Pe(e=>"shareMsg"in e.viewConfig.loadedContext.reportSummary.passed,K`
      ${Pe(e=>"profileUrl"in e.reportSummary,K` ${qQ} `)} ${Pe(e=>S.appliedSkillsShare,K`
      ${e=>Av("fast",{extraClasses:{paragraph:"display-inline-block margin-right-xxs font-size-sm has-text-centered-mobile ",link:"margin-right-xxs font-size-md"},sharingLinks:Pf(e.reportSummary?.shareableUrl||"",e.reportSummary?.credentialName??yo(UE),{achievementCopyTitle:{overrideTitle:e.reportSummary?.credentialName??yo(FE),isUnquoted:!e.reportSummary?.credentialName}})})} `)}
      `)}
      `,uot=K` ${Pe(e=>!!e.reportSummary?.credentialName,K`

      ${e=>e.viewConfig.loadedContext.reportSummary.failed.supertitle}

      `)}

      ${e=>e.viewConfig.loadedContext.reportSummary.failed.title(e.reportSummary?.credentialName||"")}

      ${Pe(e=>"detailsPageUrl"in e.viewConfig.loadingContext.navigation,K`

      ${e=>e.viewConfig.loadedContext.reportSummary.failed.detailsPageBtnTxt}

      `)} ${e=>S.disabledAppliedSkills&&((e.reportSummary?.isDisabled??!1)||e.reportSummary?.riskData?.userStatus==="NotAllowed")?gE({buttonText:bk,isDisabled:!0,riskData:{appealStatus:e.reportSummary?.riskData?.appealStatus,userStatus:e.reportSummary?.riskData?.userStatus}}):e.reportSummary?.isCurrentlyEligible?K` ${Pe(t=>"eligibleTitle"in t.viewConfig.loadedContext.reportSummary.failed,K`

      ${t=>t.viewConfig.loadedContext.reportSummary.failed.eligibleTitle}

      `)} ${Pe(t=>"eligibleMsg"in t.viewConfig.loadedContext.reportSummary.failed&&!!t.reportSummary?.eligibleToRenewByDate,K`

      ${t=>t.viewConfig.loadedContext.reportSummary.failed.eligibleMsg(t.reportSummary?.eligibleToRenewByDate||new Date(0))}

      `)} ${bk} `:K`${cn(t=>t.reportSummary.dateCountdown,ON(bk))}`}`,H2e=K`
      ${Pe(e=>e.reportSummary?.passed,cot)} ${Pe(e=>!e.reportSummary?.passed,uot)}
      `;var Ls=class{constructor(t){this.viewState=2;(async()=>{let n=t.urlContext??Lv(new URL(location.href));this.urlContext=n;let o;this.viewConfig=t.viewConfig;let r;try{o=await t.getAssessmentReport(n),this.reportSummary=new ao(o),this.reportScores=new yc(o),this.reportStudyGuide=new $v(o),this.passed=o.passed,r=1}catch(s){let a=await Dm(s);if(a==="TimeoutError"||a==="ScoringTimeout"){location.reload();return}this.reportError=new yE({error:s,urlContext:n}),r=0}finally{this.viewState=r,t.afterActivated(o?{credentialName:o.credentialName,credentialUrl:o.credentialUrl}:null)}})()}};z([j],Ls.prototype,"passed",2),z([j],Ls.prototype,"reportError",2),z([j],Ls.prototype,"reportScores",2),z([j],Ls.prototype,"reportStudyGuide",2),z([j],Ls.prototype,"reportSummary",2),z([j],Ls.prototype,"urlContext",2),z([j],Ls.prototype,"viewConfig",2),z([j],Ls.prototype,"viewState",2);var zN=K` ${Pe(e=>e.viewState===2,BN)} ${Pe(e=>e.viewState===1,K`
      ${cn(e=>e,H2e)} ${cn(e=>e,F2e)} ${Pe(e=>!e.passed,K`${cn(e=>e,q2e)}`)}
      `)} ${Pe(e=>e.viewState===0,$2e)} `;async function B2e(e){if(await fe,L.accessLevel!=="local"&&!v.isAuthenticated){wn();return}let t=async r=>{r&&(A.title=Rv(r.credentialName??lx,yo(tY),"{credentialName}"),tr({title:r.credentialName,url:r.credentialUrl}))},n=zN.create();n.bind(new Ls({viewConfig:D2e,getAssessmentReport:M2e,afterActivated:t}),dn),await Te;let o=e.querySelector("#ms--applied-skills-assessment-container");o&&n.appendTo(o)}async function z2e(){await Promise.all([Te,fe]);let e=document.getElementById("pivots-section");await bN({container:e,shouldInitSkillsOverview:!0}),e&&jn(e),dot();let t=document.getElementById("level-pivots-heading");if(t){let n=t.innerText.split(" ");n.length>0&&(n[0]=`${n[0]}`,t.innerHTML=n.join(" "))}}function dot(){document.querySelectorAll('[data-section="journey-section-details"]').forEach((t,n)=>{t.addEventListener("click",()=>{let o=t.querySelector(".title"),r=o?o.textContent:null,s=t.open?Ce.REDUCE:Ce.EXPAND;Ee({behavior:s,actionType:Re.OTHER,content:{event:`collection-option-${n+1}`,collectionName:r,careerPathUid:k("uid")}})})})}var SV=class{constructor(t){this.selections=t.choiceIds.map(n=>({questionId:Bs(t.questionId),questionnaireId:Bs(t.questionnaireId),choiceId:n,questionSetId:0}))}},CV=class{constructor(t){this.userSelections=t.map(n=>new SV(n).selections).flat()}},xE=class{constructor(t){this.assessmentId=t.assessmentId,this.locale=t.locale,t.queryStringParams&&(this.accommodationRequested=t.queryStringParams.AccommodationRequested==="true",this.skipVerification=t.queryStringParams.SkipVerification==="true",this.showAllQuestions=t.queryStringParams.ShowAllQuestions==="true",this.sessionVersion=t.queryStringParams.SnapshotVersion==="live"?"latest":void 0)}},GN=class{constructor(t){this.sessionId=Bs(t.sessionId),this.userSelections=new CV(t.userSelections).userSelections}},VN=class{constructor(t){this.parentId=t.parentId}},QN=class{constructor(t){this.sessionId=Bs(t.sessionId)}},YN=class{constructor(t){this.sessionId=Bs(t)}};var Ja={async createSession(e){if(!S.assessmentMergerLearnAssessment)return gi.createSession(e);let t=V({accommodationRequested:e.accommodationRequested,assessmentId:e.assessmentId,locale:e.locale,sessionVersion:e.sessionVersion,showAllQuestions:e.showAllQuestions,skipVerification:e.skipVerification}),n=`${D.learnAssessment}/rendering/assessments/${e.assessmentId}?${t}`,r=N(n,{method:"POST"}),s=await R(r);if(ee(s),s.ok)return await s.json();throw s.status===400?new pe(s,"BadRequestError"):s.status===401?new pe(s,"UnauthorizedError"):s.status===404?new pe(s,"NotFoundError"):new pe(s,"UnexpectedError")},async getSessionAnswerSummary(e){if(!S.assessmentMergerLearnAssessment)return gi.getSessionAnswerSummary();let t=`${D.learnAssessment}/rendering/assessments/sessions/${e.sessionId}/result/answers`,o=N(t,{method:"GET"}),r=await R(o);if(ee(r),r.ok)return await r.json();throw r.status===400?new pe(r,"BadRequestError"):r.status===401?new pe(r,"UnauthorizedError"):r.status===404?new pe(r,"NotFoundError"):new pe(r,"UnexpectedError")},async getPreviousAttemptsByParentId(e){if(!S.assessmentMergerLearnAssessment)return gi.getPreviousAttemptsByParentId();let t=`${D.learnAssessment}/rendering/assessments/linkedcontent/${e.parentId}/sessions/attempts`,o=N(t,{method:"GET"}),r=await R(o);if(ee(r),r.ok)return await r.json();throw new pe(r,"UnexpectedError")},async getRenewalEligibility(){if(!S.assessmentMergerLearnAssessment)return gi.getRenewalEligibility()},async getSessionResult(e){if(!S.assessmentMergerLearnAssessment)return gi.getSessionResult();let t=`${D.learnAssessment}/rendering/assessments/sessions/${e.sessionId}/result`,o=N(t,{method:"GET"}),r=await R(o);if(ee(r),r.ok)return await r.json();throw r.status===400?new pe(r,"BadRequestError"):r.status===401?new pe(r,"UnauthorizedError"):r.status===404?new pe(r,"NotFoundError"):new pe(r,"UnexpectedError")},async submitSession(e){if(!S.assessmentMergerLearnAssessment)return gi.submitSession();let t=`${D.learnAssessment}/rendering/assessments/sessions/${e.sessionId}`,n={method:"PUT",body:JSON.stringify(e.userSelections)},o=N(t,n),r=await R(o);if(ee(r),r.ok)return await r.json();throw r.status===400?new pe(r,"BadRequestError"):r.status===401?new pe(r,"UnauthorizedError"):r.status===404?new pe(r,"NotFoundError"):new pe(r,"UnexpectedError")}};var pVn=L.supportLevel==="production"&&L.reviewFeatures?"include":void 0;async function G2e(e,t){if(!e)throw new Error("create practice session api parameter 'assessmentId' expected");if(!t)throw new Error("create practice session api parameter 'locale' expected");if(!S.assessmentMergerPracticeAssessment){let n=`${D.learn.skillAssessment}/practice/assessments/${e}/sessions?${V(Ep(t))}`,r=await R(N(n,{method:"POST"},!0));if(ee(r),r.ok)return await r.json();await wf(Cp.CreateSnapshotError,r)}return new Uy(await Ja.createSession(new xE({assessmentId:e,locale:t})))}async function V2e(e,t){if(!e)throw new Error("create practice session preview api parameter 'assessmentId' expected");if(!t)throw new Error("create practice session preview api parameter 'locale' expected");let n=Ep(t);if(!S.assessmentMergerPracticeAssessment){let o=`${D.learn.skillAssessment}/practice/assessments/${e}/sessions/preview?${V(n)}`,s=await R(N(o,{method:"POST",credentials:"include",cache:"no-cache"},!0));if(ee(s),s.ok)return await s.json();throw new Error(`create practice session preview api responded with ${s.status} ${s.statusText}`)}return new Uy(await Ja.createSession(new xE({assessmentId:e,locale:t,queryStringParams:n})))}async function Q2e(e,t,n,o){if(!S.assessmentMergerPracticeAssessment){if(!e)throw new Error("score practice session api parameter 'assessmentId' expected");if(!t)throw new Error("score practice session api parameter 'sessionId' expected");if(!n)throw new Error("score practice session api parameter 'locale' expected");if(!o)throw new Error("score practice session api parameter 'session' expected");let r=`${D.learn.skillAssessment}/practice/assessments/${e}/sessions/${t}/score?${V({locale:n})}`,s={method:"POST",body:JSON.stringify(o)},i=await R(N(r,s,!0));if(ee(i),i.ok)return await i.json();throw new Error(`score practice session api responded with ${i.status} ${i.statusText}`)}return new Uy(await Ja.submitSession(new GN({sessionId:t,userSelections:o.userChoices})))}var jN=async(e,t,n)=>{if(!e)throw new Error("get practice session result api parameter 'assessmentId' expected");if(!t)throw new Error("get practice session result api parameter 'sessionId' expected");if(!n)throw new Error("get practice session result api parameter 'locale' expected");if(!S.assessmentMergerPracticeAssessment){let r=`${D.learn.skillAssessment}/practice/assessments/${e}/sessions/${t}/result?${V({locale:n})}`,i=N(r,{method:"GET",credentials:"include",headers:{"Content-Type":"applicationhttps://www.microsoft.com/json"}},!0),a=await R(i);if(ee(a),a.ok)return await a.json();throw new Error(`get practice scored snapshot api responded with ${a.status} ${a.statusText}`)}return new iC(await Ja.getSessionResult(new YN(t)))},Y2e=async(e,t)=>{if(!S.assessmentMergerPracticeAssessment){let n=`${D.learn.skillAssessment}/practice/assessments/sessions?${PIe(e)}&locale=${t}`,r=N(n,{method:"GET",credentials:"include",headers:{"Content-Type":"applicationhttps://www.microsoft.com/json"}},!0),s=await R(r);if(ee(s),s.ok)return await s.json();throw new Error(`get scored practice sessions api responded with ${s.status} ${s.statusText}`)}return new z1(await Ja.getPreviousAttemptsByParentId(new VN({parentId:e.join()}))).sessions},j2e=async(e,t,n)=>{if(!S.assessmentMergerPracticeAssessment){if(L.accessLevel==="local")return Promise.resolve([{question:{type:"SingleSelect",text:"This is the first question.",rationale:"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."},userChoice:[{id:1,locale:"en-us",text:"Answer 1",isCorrect:!1}],correctChoice:[{id:2,locale:"en-us",text:"Answer 2",isCorrect:!0}]},{question:{type:"MultiSelect",text:"This is the second question.",rationale:"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."},userChoice:[{id:1,locale:"en-us",text:"Answer 1",isCorrect:!1},{id:2,locale:"en-us",text:"Answer 2",isCorrect:!1},{id:3,locale:"en-us",text:"Answer 3",isCorrect:!0}],correctChoice:[{id:3,locale:"en-us",text:"Answer 3",isCorrect:!0},{id:4,locale:"en-us",text:"Answer 4",isCorrect:!0},{id:5,locale:"en-us",text:"Answer 5",isCorrect:!0}]},{question:{type:"SingleSelect",text:"This is the third question.",rationale:"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."},userChoice:[{id:1,locale:"en-us",text:"Answer 1",isCorrect:!1}],correctChoice:[{id:2,locale:"en-us",text:"Answer 2",isCorrect:!0}]}]);let o=`${D.learn.skillAssessment}/practice/assessments/${e}/sessions/${t}/result/answers?${V({locale:n})}`,s=N(o,{method:"GET",credentials:"include",headers:{"Content-Type":"applicationhttps://www.microsoft.com/json"}},!0),i=await R(s);if(ee(i),i.ok)return await i.json();throw new Error(`get practice answer summary api responded with ${i.status} ${i.statusText}`)}return new B1(await Ja.getSessionAnswerSummary(new QN({sessionId:t})),n).items};M();function WN(e){pot(e),mot(e),got(e),fot(e),hot(e),yot(e)}function W2e(e){Array.from(e.querySelectorAll(".retirement-date-none")).forEach(n=>{n.textContent=$ce})}function pot(e){Array.from(e.querySelectorAll(".locale")).forEach(n=>{let o=n.textContent.trim();n.textContent=t$[o]})}function mot(e){Array.from(e.querySelectorAll('[data-learn-type="certification"]')).forEach(n=>{let o=n.querySelector(".providers"),r=n.querySelector("time");if(r!==null&&new Date(r.getAttribute("datetime"))<=new Date){o!==null&&(o.hidden=!0);return}let s=Array.from(n.querySelectorAll(".schedule-exam"));if(s.length===1){let i=s[0].querySelector(".schedule-exam-title"),a=s[0].querySelector(".schedule-exam-text");i.hidden=!0,a.textContent=Ak;return}s.forEach(i=>{let a=i.querySelector(".schedule-exam-title"),l=i.querySelector(".schedule-exam-text"),c=i.getAttribute("data-provider-type");c==="certiport"?(a.textContent=Rae,l.textContent=nge):c==="pearson-vue"&&(a.textContent="",l.textContent=oge)})})}function got(e){Array.from(e.querySelectorAll(".exam-card-title")).forEach(n=>{n.textContent=hr+" "+n.textContent})}function fot(e){Array.from(e.querySelectorAll(".exam-practice-test")).forEach(n=>{n.getAttribute("href")===""?n.parentElement.hidden=!0:n.textContent=Xj})}function hot(e){Array.from(e.querySelectorAll('div[data-learn-type="certification"] article')).forEach(t=>{let n=t.querySelector("a.exam-card-title"),o=t.querySelector(".card-footer"),r=o?.querySelector(".card-footer-item .buttons button");o&&n&&r&&(r.setAttribute("data-list-item-title",n.textContent),r.setAttribute("data-list-item-url",n.href),o.classList.remove("is-hidden"))})}function bot(e){let t=[];return e.querySelectorAll("[data-practice-assessment-uid]").forEach(n=>{let o=n.getAttribute("data-learn-uid");t.push(o)}),t}function _ot(e){e.querySelectorAll("[data-practice-assessment-link]").forEach(n=>{let o=n.dataset.practiceAssessmentLinkAssessmentUid,s=n.dataset.practiceAssessmentLinkExamUid.replace(/^exam\./,"").replace(/-test$/,"").toLowerCase();n.href=`${S.previewCredentialsL1?"/credentials":""}/certifications/exams/${s}/practice/assessment?assessment-type=practice&assessmentId=${o}`})}async function yot(e){if(_ot(e),await fe,!v.isAuthenticated)return;let t=bot(e);if(!t.length)return;let n=e.querySelector(".practice-test-container"),o=n.cloneNode(!0);try{let r=b.data.userLocale;(await Y2e(t,r)).forEach(async i=>{if(e.querySelector(`[data-learn-uid='${i.examId}']`)===null||n===null)return;let l=await pv(i.examId),c=Vt({assessmentType:"practice",pageType:1,credentialId:i.examId,credentialPathname:l.url,query:{assessmentId:i.assessmentId}});y(d`${fie}

      ${hie} ${bie}.

      `,n),v.isAuthenticated&&i?.scoredQuestionnaires&&vot(n,i,l)})}catch{let r=n.parentElement;n.remove(),r.appendChild(o)}}function vot(e,t,n){if(t.scoredQuestionnaires.length===0)return;let o=document.createElement("div");o.classList.add("border-top","padding-top-xs");let r=t.scoredQuestionnaires[0],s=ln(r.questionsToPass,r.questionsToTake),i=t.scoredQuestionnaires.map(a=>({assessmentId:t.assessmentId,credential:{assessmentType:"practice",id:n.uid,pathname:n.url},session:{date:a.userSessionDate,id:a.sessionUid,passingPercent:s,status:a.questionnaireStatus,totalCorrectCount:a.correctAnswerCount,totalQuestionCount:a.questionsToTake}}));y(d`
      ${Qf(i)}
      `,o),e.insertAdjacentElement("afterend",o)}var KN={AF:wte,AX:Ste,AL:Cte,DZ:Ete,AS:Ate,AD:kte,AO:Ite,AI:Pte,AQ:Lte,AG:Rte,AR:Mte,AM:Dte,AW:$te,AU:qA,AT:HA,AZ:Nte,BS:Fte,BH:Ute,BD:Ote,BB:qte,BY:Hte,BE:Sx,BZ:Bte,BJ:zte,BM:Gte,BT:Vte,BO:Qte,BQ:Yte,BA:jte,BW:Wte,BV:Kte,BR:BA,IO:Jte,BN:Xte,BG:Zte,BF:ene,BI:tne,KH:nne,CM:one,CA:Cx,CV:rne,KY:sne,CF:ine,TD:ane,CL:lne,CN:cne,CX:une,CC:dne,CO:pne,KM:mne,CG:gne,CD:fne,CK:hne,CR:bne,CI:_ne,HR:yne,CW:vne,CY:xne,CZ:Tne,DK:wne,DJ:Sne,DM:Cne,DO:Ene,EC:Ane,EG:kne,SV:Ine,GQ:Pne,ER:Lne,EE:Rne,ET:Mne,FK:Dne,FO:$ne,FJ:Nne,FI:Fne,FR:Une,GF:One,PF:qne,GA:Hne,GM:Bne,GE:zne,DE:Gne,GH:Vne,GI:Qne,GR:Yne,GL:jne,GD:Wne,GP:Kne,GU:Jne,GT:Xne,GG:Zne,GN:eoe,GW:toe,GY:noe,HT:ooe,HM:roe,HN:soe,HK:ioe,HU:aoe,IS:loe,IN:zA,ID:coe,IQ:uoe,IE:GA,IM:doe,IL:poe,IT:moe,JM:goe,JP:foe,JE:hoe,JO:boe,KZ:_oe,KE:yoe,KI:voe,KW:xoe,KG:Toe,LA:woe,LV:Soe,LB:Coe,LS:Eoe,LR:Aoe,LY:koe,LI:Ioe,LT:Poe,LU:Loe,MO:Roe,MK:Moe,MG:Doe,MW:$oe,MY:Ex,MV:Noe,ML:Foe,MT:Uoe,MH:Ooe,MQ:qoe,MR:Hoe,MU:Boe,YT:zoe,MX:VA,FM:Goe,MD:Voe,MC:Qoe,MN:Yoe,ME:joe,MS:Woe,MA:Koe,MZ:Joe,MM:Xoe,NA:Zoe,NR:ere,NP:tre,NL:nre,NC:ore,NZ:QA,NI:rre,NE:sre,NG:ire,NU:are,NF:lre,MP:cre,NO:ure,OM:dre,PK:pre,PW:mre,PS:gre,PA:fre,PG:hre,PY:bre,PE:_re,PH:yre,PN:vre,PL:xre,PT:YA,PR:Tre,QA:wre,RE:Sre,RO:Cre,RU:Ere,RW:Are,BL:kre,KN:Ire,LC:Pre,MF:Lre,WS:Rre,SM:Mre,ST:Dre,VC:$re,SA:Nre,SN:Fre,RS:Ure,SC:Ore,SL:qre,SG:jA,SX:Hre,SK:Bre,SI:zre,SB:Gre,SO:Vre,ZA:WA,GS:Qre,SS:Yre,KR:jre,ES:Wre,LK:Kre,SH:Jre,PM:Xre,SR:Zre,SJ:ese,SZ:tse,SE:nse,CH:hh,TW:ose,TJ:rse,TZ:sse,TH:ise,TL:ase,TG:lse,TK:cse,TO:use,TT:dse,TN:pse,TR:mse,TM:gse,TC:fse,TV:hse,UG:bse,UA:_se,AE:yse,GB:KA,US:JA,UY:vse,UM:xse,UZ:Tse,VU:wse,VA:Sse,VE:Cse,VN:Ese,VG:Ase,VI:kse,WF:Ise,YE:Pse,ZM:Lse,ZW:Rse,TF:Mse};M();async function JN(e,t){Array.from(e.querySelectorAll('div[data-learn-type="certification"]')).forEach(o=>{let r=o.getAttribute("data-learn-uid"),s=xot(r,t);EV(o,t,s)})}function xot(e,t){let n=e.replace("exam.","").toLowerCase();return t.exams.map(r=>r.examType.toLowerCase()).indexOf(n)!==-1?n:n.split("-")[0]}async function EV(e,t,n){let o=e.querySelector("time");if(o!==null&&new Date(o.getAttribute("datetime"))<=new Date){let c=e.querySelector(".exam-countries");c.parentElement.parentElement.hidden=!0;return}let r=t.exams.filter(c=>n.toLowerCase()===c.examType.toLowerCase())[0],i=(r.price?r.availability:r.availability.filter(c=>c.amount)).map(c=>{let u=c.amount?c.amount:r.price.amount,p=c.amount?t.countries.find(m=>m.countryCode===c.countryCode):t.countries.find(m=>m.countryCode===r.price.countryCode);return{countryCode:c.countryCode,amount:u,currencySymbol:p.currencySymbol,currencyCode:p.currencyCode,message:p.message}}),a=e.querySelector(".exam-countries");i.sort((c,u)=>{let p=KN[c.countryCode];return p?p.localeCompare(KN[u.countryCode],void 0,{sensitivity:"base"}):-1});let l=d`${i.map(c=>{let u=b.data.userLocale.indexOf(c.countryCode.toLowerCase())!==-1;return b.data.userLocale==="pt-br"&&(u=c.countryCode.toLowerCase()==="br"),u&&K2e(e,c),d``})}`;y(l,a),a.onchange=()=>{let c=i.filter(u=>u.countryCode===a.value)[0];K2e(e,c)}}function K2e(e,t){let n=e.querySelector(".exam-amount"),o=`${t.currencySymbol}${t.amount.toString()} ${t.currencyCode}*`;y(o,n)}var AV;function TE(){let e=St();if(AV===void 0){let n=`${L.accessLevel==="local"?"https://dev.learn.microsoft.com":""}/en-us/credentials/exam-pricing.json${L.supportLevel==="production"&&!L.reviewFeatures?"":`?branch=${e}`}`;AV=R(n,{credentials:"include",mode:"cors"}).then(o=>o.json()).then(o=>({exams:o.exams,countries:o.countries}))}return AV}M();function wE(e){let t=Array.from(e.querySelectorAll(".prerequisite-option-desc")),n=t.length;t.forEach((o,r)=>{let s=n===1?"":r+1,i=n===1?WF.replace("Option {number}:",""):WF.replace("{number}",s.toString()),a=d`${q(i)}`;y(a,o)})}ot();var XN=class{constructor(t){let n=t.accommodationRequested==="true",o=t.assessmentId,r=t.showAllQuestions==="true",s=t.skipVerification==="true",i=t.snapshotVersion==="live"?"latest":"preview";this.accommodationRequested=n,this.assessmentId=o,this.locale=t.locale,this.showAllQuestions=r,this.skipVerification=s,this.sessionVersion=i}},ZN=class{constructor(t){let n=Bs(t.snapshotId);this.sessionId=n}},kV=class{constructor(t,n){let o=t.split(".");this.questionnaireId=Bs(o[0]),this.questionSetId=Bs(o[1]),this.questionId=Bs(o[2]),this.choiceId=Bs(n)}},IV=class{constructor(t){this.choices=t.value.map(n=>new kV(t.fullyQualifiedQuestionId,n))}},PV=class{constructor(t){this.selections=t.snapshotAttempt.responses.map(n=>new IV(n).choices).flat()}},e2=class{constructor(t){let n=Bs(t.assessmentId),o=new PV({snapshotAttempt:t.snapshotAttempt}).selections;this.sessionId=n,this.userSelections=o}};var Nv=class{constructor({detail:t}){this.message="invalid claim",this.detail=t}},SE=class{constructor({detail:t}){this.message="error fetching certification data",this.detail=t}};async function J2e(e,t="en-us"){if(!e)throw new Error("certification renewal api parameter 'assessmentId' expected");if(!t)throw new Error("certification renewal api parameter 'locale' expected");let n={method:"GET",credentials:"include",headers:{"Content-Type":"applicationhttps://www.microsoft.com/json"}},o=Ep(t),r=N(`${D.learn.stayCurrent}/${e}/renewal?${V(o)}`,n),s=await R(r);if(s.status===404){let i=await s.json();if(i&&i.errorCode===Cp.RenewalAssessmentNotFound)throw new Nv({detail:i.message})}if(s.status===400||s.status===500){let i=await s.json();if(i)throw new SE({detail:i.message})}if(s.ok){let i=await s.json();return S.assessmentMergerRenewalAssessment?(S.assessmentMergerLearnAssessment||(i.previousAttempts=await gi.getPreviousAttemptsByParentId()),new U1(i)):i}throw new Error(`certification renewal api responded with ${s.status} ${s.statusText}`)}var X2e=async(e,t="en-us")=>{if(!e)throw new Error("create snapshot api parameter 'renewalEvaluationId' expected");if(!t)throw new Error("create snapshot api parameter 'locale' expected");let n=Ep(t);if(!S.assessmentMergerRenewalAssessment){let o={method:"POST",headers:{"Content-Type":"applicationhttps://www.microsoft.com/json"},credentials:"include",body:JSON.stringify({renewalEvaluationId:e})},r=N(`${D.learn.stayCurrent}/renewalAssessments/${e}/snapshot?${V(n)}`,o),s=await R(r);if(ee(s),s.ok)return await s.json();await wf(Cp.CreateSnapshotError,s)}try{return new O1(await Ja.createSession(new XN({accommodationRequested:n.AccommodationRequested,assessmentId:e,locale:n.locale??t,showAllQuestions:n.ShowAllQuestions,skipVerification:n.SkipVerification,snapshotVersion:n.SnapshotVersion})))}catch(o){throw o instanceof pe&&wf(Cp.CreateSnapshotError,o.response),o}},Z2e=async(e,t)=>{if(!S.assessmentMergerRenewalAssessment){let n={method:"POST",headers:{"Content-Type":"applicationhttps://www.microsoft.com/json"},credentials:"include",body:JSON.stringify(e)},o=Ep(),r=N(`${D.learn.stayCurrent}/snapshot/score?${V(o)}`,n),s=await R(r);if(ee(s),s.ok)return tFe(await s.json());await wf(Cp.ScoreSnapshotError,s)}if(!t)throw new Error("learnAssessmentSession is required when features.assessmentMergerRenewalAssessment is true");try{return new Oy(await Ja.submitSession(new e2({assessmentId:e.snapshotId,learnAssessmentSession:t,snapshotAttempt:e})))}catch(n){throw n instanceof pe&&wf(Cp.ScoreSnapshotError,n.response),n}},eFe=async(e,t="en-us")=>{if(!e)throw new Error("snapshot results api parameter 'snapshotId' expected");if(!S.assessmentMergerRenewalAssessment){let n={method:"GET",credentials:"include",headers:{"Content-Type":"applicationhttps://www.microsoft.com/json"}},o=Ep(t),r=N(`${D.learn.stayCurrent}/snapshot/${e}/result?${V(o)}`,n),s=await R(r);if(ee(s),s.ok)return tFe(await s.json());throw new pe(s,"NotFoundError")}return new Oy(await Ja.getSessionResult(new ZN({snapshotId:e})))};function tFe(e){return e.scoredAt=new Date(e.scoredAt),e.certificationExpiration=new Date(e.certificationExpiration),e.snapshotRetakeEligibleDate=new Date(e.snapshotRetakeEligibleDate),e}M();M();async function LV(e,t){return(async o=>{e?e.pushContent(o):(e=new ge(o),await e.show())})(t()),await e.show()}function RV(e,t,n){return d` `}function nFe(){LV(null,()=>{let t=document.createElement("div"),n=d`

      ${sj}

      `,o=rl,r=d` `;return y(RV(o,n,r),t),t})}function oFe(){LV(null,()=>{let t=document.createElement("div"),n=d`

      ${mj}

      ${ux}

      `,o=nh,r=d` `;return y(RV(o,n,r),t),t})}M();Mm();M();function rFe({certificationLink:e,modal:t}){let{errorCode:n,linkedMSA:o,status:r}=e,s=o?.mcId,i=o?.msaEmail||v.authenticationModes.find(h=>h.type==="MSA")?.upn,a,l,c,u,p,m,g=!1,f=`/${b.data.userLocale}/credentials/certifications/aligning-accounts-between-certification-profile-and-learn-profile`;r===200?(a=RY,l=DY,c=MY,u=LY,g=!0,p=async()=>{t.hide(),await Fv(e,!0,null)},m=()=>t.hide()):n==="wwlProfileAlreadyLinked"?(a=qY,l=HY,c=ux,g=!0,p=()=>window.open("https://aka.ms/certhelp","_self")):n==="docsProfileMsaNotFound"?(a=IY,l=PY,c=kY,p=()=>{t.hide(),nf()}):n==="wwlProfileNotFound"?(a=UY,l=OY.replace("{msaEmail}",i),c=GY,p=()=>window.open(f,"_self")):n==="docsProfileMergeInProgress"?(a=BY,l=zY,c=Dh,p=()=>Ts()):(a=nh,l=NY,c=le,u=ux,p=()=>t.hide(),m=()=>window.open("https://aka.ms/certhelp","_self"));let _=d`
      ${r===200?d`

      ${VY}:

      `:""}

      ${i}

      ${s?d`

      ${ife}: ${s}

      `:""}
      `;return d` `}async function Fv(e,t,n){let o=document.createElement("div");o.classList.add("modal-content");let r=new ge(o),s=e||await Hy.getLinkedMSA();if((En.kind==="certification"||En.kind==="certificationrenewal")&&En.type==="learn"&&await uu(),t===!0){let i=document.querySelectorAll(".button.button-primary.button-filled")[0];i&&i.classList.add("is-loading");let{status:a}=await Hy.postCertificationLink();if(i&&i.classList.remove("is-loading"),a===204)return(En.kind==="certification"||En.kind==="certificationrenewal")&&En.type==="learn"&&(wot(FY),setTimeout(function(){location.reload()},1e3)),En.kind==="detail"&&En.type==="profile"&&location.reload(),En.kind==="register"&&n&&n(),null;y(rFe({certificationLink:s,modal:r,previousModal:!0}),o)}else y(rFe({certificationLink:s,modal:r,previousModal:t}),o);return n?n():Tot(),r.show()}var MV=null;function Tot(){MV&&(y(d``,MV),MV=null)}function wot(e){let t=d` `,n=document.createElement("div");y(t,n),new Sf(n).show()}async function t2(e,t){let n=k("sourceContentUid"),o=t.searchParams.get("assessment-type"),r=await async function(){let l,c=o==="practice";if(n)try{l=(await Qe.getListsItems([n]))[0]?.[c?"practiceAssessmentUid":"assessmentId"]}catch{}return l??t.searchParams.get("assessment-id")??t.searchParams.get("assessmentId")??null}(),s=function(){return n?n.split(".")[1]:!L.reviewFeatures||!Ot?location.href.replace(`${location.origin}/${e}/credentials/certifications/`,"").split("/")[0]:t.searchParams.get("certification-id")}(),i=t.searchParams.get("practice-assessment-type"),a=xf();return{assessmentId:r,certificationId:s,assessmentType:o,practiceAssessmentType:i,skipVerification:a,isPreview:a==="true",omitScoring:IIe(),snapshotVersion:Tf(),showAllQuestions:r8()}}function Uv(e,t){return t||`certifications/${e?.replace(/^certification./,"")}`}function sFe(e){y(d`${RU}`,e),e.classList.remove("skeleton")}function iFe(e,t){if(!e.renewalData||!e.renewalData.studyGuide)return;let n=t.querySelector(".collection-time");n.textContent=tn(e.renewalData.studyGuide.totalDuration)}function Cot(e,t){return d`
      `}function CE(e,t,n=!1,o=!1,r=d`
      • ${pj}
      • ${hj}
      • ${XY}
      `){let s=n?d`

      ${ZY}

      `:"",i=o?d`

      `:"";return d`
      ${s} ${i}

      ${e}

      ${r}
      ${t}
      `}function Eot(e){let t=d`

      ${jE}

      `;return CE(oh,t)}function Aot(){let e=d`

      ${jE}

      `;return CE(oh,e)}function DV(e,t=!1){let n=e.timerData,o=Qu.replace("{numberOfMinutes}",n?n.toString():e.snapshotDuration.toString()),r=`/credentials/certifications/request-accommodations-for-certification-renewal?${L.reviewFeatures?"":"branch=main&"}certificationUrl=`;r+=encodeURIComponent(location.href);let s=d`

      ${q(YY.replace("#url",r))}

      `,i=qN({candidateAgreementUrl:"https://learn.microsoft.com/credentials/certifications/microsoft-certification-renewal-agreement",credentialsProgramAgreementUrl:"https://learn.microsoft.com/credentials/support/credential-program-agreement",product:"Certification Renewal",enableToggle:!t,toggleHref:e.assessmentPageUrl,buttonClasses:"button font-size-sm button-primary button-filled padding-inline-xs",buttonText:U2});return d`
      ${i}

      ${q(ij)}

      ${n?s:""}
      `}function kot(e){let t=DV(e);return CE(oh,t)}function Iot(e){let t=DV(e,!0);return CE(oh,t,!0,!0)}function Pot(e){let t=DV(e,!0);return CE(oh,t)}async function Lot(e,t){let n,o=!1,r=!1,s=t?.querySelector("#renewal-card-container");if(s){switch(e.renewalState){case 1:n=Aot();break;case 2:n=kot(e),r=e.renewalData.previousAttempts.length>0;break;case 3:n=Iot(e),r=e.renewalData.previousAttempts.length>0,o=!0;break;case 5:case 4:case 6:n=Pot(e);break;default:n=Eot(e);break}if(y(n,s),r){let i=document.querySelector("#renewal-previous-attempts-drawer"),a=Cot(e,e.renewalData.previousAttempts);y(a,i)}if(o){let i=s.querySelector("#renewal-card-countdown-timer");i2e(i,new Date(e.renewalData.snapshotEligibleDate),()=>UV(e,t))}}}function aFe(e,t,n="",o=!1,r=()=>{}){return d`
      ${e}
      `}function Rot(e){return aFe(dhe,N2,"docs-sign-in auth-status-determined",!e.renewalData)}function Mot(){return aFe(jE,$2,"",!1,()=>Fv())}function Dot(e,t="has-background-warning-light"){let n=e.renewalData.certificationExpiration;if(!n)return null;let o=24*60*60*1e3,r=new Date(n),s=new Date().getTime()-r.getTime(),i=Math.round(Math.abs(s/o)),a=gn.format(new Date(n)),l=q(KE.replace("{date}",`${a}`)),c=q(tj.replace("{days}",`${i.toString()}`)),u=Oot(e)?d`
      ${ej}
      `:"";return d`
      ${l}
      ${c}
      ${u} `}function $ot(){return d`
      ${jY}
      `}function lFe(e){return d`
      ${e}
      `}function Not(e){if(!e)return null;let t=gn.format(new Date(e)),n=Hie.replace("{date}",`${t}`);return lFe(n)}function Fot(){return lFe(WY)}async function Uot(e,t){let n=t?.querySelector("#renewal-badge-info-container");if(!n)return;let o;switch(e.renewalState){case 1:o=Mot();break;case 2:case 3:o=Dot(e);break;case 5:o=Not(e.renewalData.certificationExpiration);break;case 4:o=Fot();break;case 6:o=$ot();break;default:o=Rot(e);break}y(o,n),n.classList.remove("has-loading-skeleton")}function Oot(e){if(e.renewalState!==2&&e.renewalState!==3||e.renewalData.previousAttempts.length===0)return!1;let t=3e5;return e.renewalData.previousAttempts.filter(o=>o.passed&&new Date().getTime()-new Date(o.scoredAt).getTime()'+JE.replace("{date}",`${gn.format(new Date(i))}`)+"
      "+JY+"",Gt(s,t,o,r,"certification-renewal-banner",document.getElementById("certification-expires"));break;case 5:s=''+WE+"
      "+fj+"
      ",Gt(s,n,o,r,"certification-renewal-banner",document.getElementById("certification-expires"));break;case 4:s=""+gj+"",Gt(s,n,o,r,"certification-renewal-banner",document.getElementById("certification-expires"));break;default:break}}function FV(e,t){qot(e),Lot(e,t),Uot(e,t)}async function UV(e,t){try{await e.initialize()}catch(n){if(n instanceof Nv||n instanceof SE){let o=t.querySelector("#renewal-preparation-items-section");o&&o.classList.contains("has-loading-skeleton")&&Hot(t),FV(e,t),n instanceof Nv?nFe():oFe()}else throw n}}function Hot(e){let t=e.querySelector("#renewal-preparation-section");t&&t.remove()}M();async function cFe(e){let t=[];await Te,tr();let n=k("version")&&k("version")==="2"?"certV2":"certV1";if(jot(),n==="certV1"){let o=k("uid");t.push($u({addNextStepsEnrollment:!0,getStudyGuide:()=>Qe.getStudyGuideList("certification",o),mainElement:e}));let r=await c2e(o);u2e(document.getElementById("courses-list"),r);let s=await TE();t.push(JN(e,s)),WN(e),W2e(e);let i=e.querySelector("#requiredPrerequisites");i&&wE(i);let a=e.querySelector("#optionalPrerequisites");return a&&wE(a),zot(e),Got(e),Promise.allSettled(t)}return S.certificationUpdates||(location.href="http://approjects.co.za/?big=credentials/browse"),t.push(Bot(e)),Promise.allSettled(t)}async function Bot(e){let t=[],n=new URL(location.href);n.searchParams.set("practice-assessment-type","certification"),history.replaceState(null,"",n);let o={ids:{atAGlance:"certification-at-a-glance",expires:"certification-expires",hero:"certification-hero",jumpTo:"certification-jump-to",overview:"certification-overview",practiceAssessmentAttempts:"certification-practice-assessment-attempts",practiceAssessmentAttemptsList:"certification-practice-assessment-attempts-list",practiceForTheExam:"certification-practice-for-the-exam",prepareForTheExam:"certification-prepare-for-the-exam",prerequisiteItem:"certification-prerequisite-item",renewYourCertification:"certification-renew-your-certification",resources:"certification-resources",sharingLinks:"certification-sharing-links",startYourCareer:"certification-start-your-career",takeTheExam:"certification-take-the-exam",verifiableCredential:"certification-verifiable-credential",verifiableCredentialUrl:"certification-verifiable-credential-url"},classes:{browsePageLink:"certification-browse-page-link",careerPathBackgroundImage:"certification-career-path-background-image",careerPathSection:"certification-career-path-section",careerPathSummary:"certification-career-path-summary",careerPathTitle:"certification-career-path-title",careerPathUrl:"certification-career-path-url",certificationRenewalUrl:"certification-renewal-url",examAmount:"exam-amount",examCountries:"exam-countries",prerequisiteUrls:"certification-prerequisite-urls",providers:"providers",scheduleExam:"schedule-exam",scheduleExamText:"schedule-exam-text",scheduleExamTitle:"schedule-exam-title"}},r=$N(e,o);return t.push(HN([{request:Hy.getCertificationWithExamDetail(k("uid")),sections:[s=>{if(s===null&&r.ids.startYourCareer){r.ids.startYourCareer.hidden=!0;return}if(s===null||!s.careerPaths?.length||!r.ids.startYourCareer||!r.classes.careerPathSection?.length||!r.classes.careerPathBackgroundImage?.length||!r.classes.careerPathTitle?.length||!r.classes.careerPathSummary?.length)return;let i=s.careerPaths.reduce((a,l)=>(a[l.uid]=l,a),{});r.classes.careerPathSection.forEach(a=>{let l=a.getAttribute("data-career-path-uid");if(!l)return;let c=i[l];if(!c)return;let u=a.querySelector(`.${o.classes.careerPathBackgroundImage}`);if(!u)return;let p=`/media/learn/career-path/hero/career-path-hero-${Td()==="light"?"light":"dark"}.png?branch=main`;c.backgroundImage?u.setAttribute("src",c.backgroundImage):u.setAttribute("src",p);let m=a.querySelector(`.${o.classes.careerPathUrl}`);if(!m)return;m.setAttribute("href",c.url),m.classList.remove("border-none");let g=a.querySelector(`.${o.classes.careerPathTitle}`);if(!g)return;g.textContent=c.title;let f=a.querySelector(`.${o.classes.careerPathSummary}`);if(!f)return;f.textContent=c.summary;let _=a.querySelectorAll(".skeleton");_?.length&&(_.forEach(h=>{h.classList.remove("skeleton")}),a.classList.remove("has-loading-skeleton"))})},s=>{if(s===null&&r.ids.expires){r.ids.expires.hidden=!0;return}if(!(s===null||!s.certificationRenewal||!r.ids.expires)&&v.isAuthenticated){let i=s.certificationRenewal.eligibleToRenewByDate;if(s.certificationRenewal.eligibleForRenewal===!1&&!i||s.certificationRenewal.eligibleForRenewal===!1&&typeof i=="string"&&new Date(i).getTime()>new Date().getTime())return;Yot({eligibleToRenewByDate:i,expirationDate:s.certificationRenewal.expirationDate??null,url:s.certificationRenewal.url});return}},s=>{if(!s?.course)return;let i=s.course;if(!s?.courseStudyGuide?.items)return;let a=s.courseStudyGuide.items;$u({getStudyGuide:()=>Promise.resolve({type:"studyguide",items:[{data:{title:i.title,url:i.url,iconUrl:"/media/learn/credential/badges/course.svg",modules:a.map(l=>({title:l.data.title,iconUrl:l.data.iconUrl,type:l.type,url:l.data.url,durationInMinutes:l.data.durationInMinutes,units:new Array(l.data?.childUids?.length??0),skills:l.data.display_skills})),uid:i.uid,remainingTime:null},type:"course"}]}),mainElement:e,addNextStepsEnrollment:!0,pageTemplateOverride:"CertificationWithExam"})},s=>{if(s===null||!s.practiceAssessmentAttempts?.length||!r.ids.practiceAssessmentAttempts||!r.ids.practiceAssessmentAttemptsList)return;let i=k("uid");if(!i)return;let a=k("practiceAssessmentUid");if(!a)return;let l=Qf(s.practiceAssessmentAttempts.map(c=>({assessmentId:a,credential:{assessmentType:"practice",id:i,pathname:location.pathname.split("/").slice(2).join("/")},session:{date:c.session.userSessionDate,id:c.session.sessionUid,passingPercent:ln(c.assessmentQuestionsToPass,c.assessmentQuestionsToTake),status:c.assessmentStatus,totalCorrectCount:c.questionsAnsweredCorrectly,totalQuestionCount:c.assessmentQuestionsToTake}})));y(l,r.ids.practiceAssessmentAttemptsList),r.ids.practiceAssessmentAttempts.hidden=!1},s=>{if(s===null&&r.ids.prerequisiteItem){r.ids.prerequisiteItem.hidden=!0;return}if(s===null||!s.prerequisites||!r.classes.prerequisiteUrls?.length)return;let i=s.prerequisites.reduce((a,l)=>(a[l.uid]=l,a),{});r.classes.prerequisiteUrls.forEach(a=>{let l=a.getAttribute("data-uid");if(!l)return;let c=i[l];c&&a.setAttribute("href",c.url)})},s=>{if(s===null&&r.ids.verifiableCredential){r.ids.verifiableCredential.hidden=!0;return}if(s===null||!s.verifiableCredentialUid||!r.ids.verifiableCredential||!r.ids.verifiableCredentialUrl||!r.ids.sharingLinks)return;let i=k("og:title");if(!i)return;let a={verifiableCredentialUrl:Yf({credentialId:s.verifiableCredentialUid,contentType:"certification"})};Av("fast",{title:Tm,extraClasses:{paragraph:"display-inline-block margin-right-xxs font-size-sm has-text-centered-mobile ",link:"margin-right-xxs font-size-md"},sharingLinks:Pf(a.verifiableCredentialUrl.shareableUrl,i)}).create().appendTo(r.ids.sharingLinks),r.ids.verifiableCredentialUrl.setAttribute("href",a.verifiableCredentialUrl.profileUrl),r.ids.verifiableCredential.hidden=!1},s=>{Mv({browsePageClassNodes:r.classes.browsePageLink,testContentPath:"/test/training/credentials/browse/"})}]}])),t.push((async()=>{let s=document.querySelector("[data-exam-pricing-type]");if(s)return TE().then(i=>{let a=s?.getAttribute("data-exam-pricing-type")?.toLowerCase()||"",l=s?.querySelector(".exam-countries");EV(e,i,a),s?.querySelectorAll(".has-loading-skeleton, .skeleton").forEach(c=>c.classList.remove("has-loading-skeleton","skeleton")),s?.classList.remove("has-loading-skeleton"),l&&(l.disabled=!1)}).catch(()=>{})})()),Promise.allSettled(t)}async function zot(e){let t=e.querySelector("#learn-more-about-renewing-cert-link");t&&(t.textContent=QY)}function Got(e){Array.from(e.querySelectorAll(".course-card, #course-card")).forEach(t=>{let n=t.querySelector(".course-card-footer, #course-card-footer"),o=n?.querySelector(".buttons button"),r=o?.querySelector("span.add-to-collection-status");if(n&&o&&r){r.textContent=nt;let s=o.getAttribute("data-list-item-url");s=s.startsWith("../")?"/certifications"+s.substring(2):s,o.setAttribute("data-list-item-url",s),n.classList.remove("is-hidden")}})}function Vot(e){return(typeof e.expirationDate=="string"?new Date(e.expirationDate).getTime()`${o}`,n={url:e.url??location.pathname.replace(/\/$/,"")+"/renew",text:"Renew this certification",id:"renew-certification-button"};switch(e.bannerType){case"expired":return{message:t(`${WE}`)};case"renewalEligible":let o=e.eligibleToRenewByDate;return{message:t(`${JE.replace("{date}",`${gn.format(new Date(o))}`)}
      ${AY}`),link:n};default:return{message:"",link:void 0}}}function Yot(e){let t=Vot({eligibleToRenewByDate:e.eligibleToRenewByDate,expirationDate:e.expirationDate}),n=Qot({bannerType:t,eligibleToRenewByDate:e.eligibleToRenewByDate,url:e.url});Gt(n.message,n.link,$V(),NV(),Jj,document.getElementById("certification-expires")??void 0)}function jot(){cc({wrapper:e=>d`
      ${e.children}
      `})}async function uFe(e,t){let n=t.querySelector("#view-certification-details-link");sFe(n),e.subscribe(He,()=>FV(e,t)),await UV(e,t),O2e(e,t),iFe(e,t)}var n2=class extends Ve{constructor(n,o,r,s,i,a="en-us",l){super();this.certificationId=n;this.assessmentId=o;this.snapshotDuration=r;this.skipVerification=s;this.snapshotVersion=i;this.locale=a;this._renewalState=0;this._preparationData=new Au,this.certificationUrl=l,this.assessmentPageUrl=Vt({assessmentType:"renewal",pageType:1,credentialId:n,credentialPathname:l,query:{assessmentId:o}})}get isAccommodationRequested(){let{accommodationRequested:n}=me();return n}get getPreviewFlag(){let{preview:n}=me();return n}get renewalState(){return this._renewalState}get renewalData(){return this._renewalData}get isSnapshotEligible(){let n=!1;return this._renewalData?.eligibleForRecertification&&(n=!0),n}get timerData(){return this._renewalData?.timer}get preparationData(){return this._preparationData}get isSnapshotEligibleNow(){return new Date(this._renewalData.snapshotEligibleDate).getTime()<=Date.now()}get isEligibleToRenewNow(){return this._renewalData.eligibleToRenewByDate?new Date(this._renewalData.eligibleToRenewByDate).getTime()>Date.now():!1}get certIsExpired(){return new Date(this._renewalData.certificationExpiration).getTime() ${q(r)} ${mFe(t,s)}`}function OV(e,t,n,o){let r=t!==void 0?e.querySelector(`#${t}`):null,s=e.querySelector("#create-country-list"),i=e.querySelector(".opt-in"),a=e.querySelector("#update-email"),l=n!==void 0?r.elements.namedItem(n):null,c=()=>{let u=!(a&&a.value);if(n==="update-profile-button")if(i){let p=i.checked;p?p&&u?(ft(r,"emptyEmailForOptIn"),a.setAttribute("required",""),l.setAttribute("disabled","disabled")):p&&!u&&(EC(r,"emptyEmailForOptIn"),l.removeAttribute("disabled")):l.setAttribute("disabled","disabled")}else i===null&&u?(ft(r,"emptyEmailForOptIn"),l.setAttribute("disabled","disabled")):i===null&&!u&&(EC(r,"emptyEmailForOptIn"),l.removeAttribute("disabled"));else o==="notice"?r&&l&&(EC(r,"emptyEmailForOptIn"),a.removeAttribute("required"),l.removeAttribute("disabled")):i&&(i.checked&&u?r&&l&&(ft(r,"emptyEmailForOptIn"),a.setAttribute("required",""),l.setAttribute("disabled","disabled")):r&&l&&(EC(r,"emptyEmailForOptIn"),a.removeAttribute("required"),l.removeAttribute("disabled")))};s&&s.addEventListener("change",c),a&&a.addEventListener("input",c),i&&i.addEventListener("change",c)}var Ov,Jot;function gFe(e,t){let n,o;switch(t){case"double-opt-in":case"opt-in":case"opt-out":n=!0,o="OptInExplicit";break;case"notice":n=!1,o="OptInExplicit";break;default:n=!1,o=null;break}return n===!0&&e===!1?null:o}function o2(e,t,n,o){return Xot().then(r=>Zot(r,t,e,n,o))}function Xot(){if(Ov===void 0){let t=`${location.origin}/${b.data.contentLocale}/${L.reviewFeatures?"test/":""}email-opt-in-preferences.json?branch=main`;Ov=R(t,{credentials:"include",mode:"cors"}).then(n=>n.json()).then(n=>n.preferences),Jot=Ov.then(n=>n[0].countries.reduce((o,r)=>(o[r.countryCode]=r,o),{}))}return Ov}function Zot(e,t,n,o,r){let s=n!==void 0?n.querySelector("#create-country-list"):null,i=document.createElement("div");i.classList.add("select","is-full-width-mobile");let a=document.createElement("select");a.classList.add("is-full-width-mobile"),a.setAttribute("name","country-list"),a.setAttribute("id","country-list"),a.setAttribute("autocomplete","country"),a.setAttribute("aria-required","true");let l=e[0].countries;if(l.sort((c,u)=>c.country.localeCompare(u.country,void 0,{sensitivity:"base"})),l.length>=1&&t===void 0){let c=document.createElement("option");c.value=`${Eh}`,c.selected=!0,c.disabled=!0,c.hidden=!0,c.text=`${Eh}`,a.appendChild(c)}return l.forEach(c=>{let u=document.createElement("option");u.value=c.countryCode,u.text=c.country,u.setAttribute("data-preference",c.email),u.selected=t===c.countryCode,a.appendChild(u)}),a.onchange=()=>{qV(a.value,l,n,o,r)},a.setAttribute("aria-label",`${lge}`),i.appendChild(a),s!==null&&s.appendChild(i),i}function qV(e,t,n,o,r){let s=t.reduce((i,a)=>a.countryCode===e?a:i).email;pFe(n,s,e,o,r)}M();var ert=!1;var Sjn={allEmail:!0,autoFollowAsked:!0,autoFollowAnswered:!0,autoFollowCommented:!0,autoFollowTagged:!1,emailEventSettings:{questionUpdated:"off",questionPosted:"off",unansweredQuestions:"off",newModeration:"instant",newFollower:"off",newMention:"instant",answerUpdated:"off",answerPosted:"instant",answerAccepted:"instant",commentPosted:"instant",newPrivateMessage:"instant"}};async function HV(e){trt(e)}function trt(e){let t=document.getElementById("manage-qa-email-preferences-form");if(!t)return;let n=Array.from(document.querySelectorAll('li > a[href="http://approjects.co.za/?big=#manage-qa-email-preferences-form"]'));t.classList.remove("is-hidden"),n.forEach(o=>{o.parentElement&&o.parentElement.classList.remove("is-hidden")}),ert=e}var Xa=!1,Nu,hn,BV=!1;function jf(e){if(oI(Nu,e),!e?.country||!e?.email){BV=!1;let o=lrt();return y(o,hn),fFe(e),Nu}let t=crt(e);return y(t,hn),hn.querySelector("#country-list")||fFe(e),ort(e),Nu}function nrt(e){let t=Vhe.replace("{email}",e.email),n=hn.querySelector("#unsubscribe-from-microsoft-docs");n.innerHTML=`${t}`;let o=document.createElement("div"),r=new ge(o);hn.querySelector("#unsubscribe-from-learn-email").addEventListener("click",()=>{event.preventDefault();let i=urt();y(i,o),rrt(o,e,r.hide.bind(r)),r.show()})}function ort(e){let t=hn.querySelector("#update-email"),n=hn.querySelector("#save-updated-email"),o=hn.querySelector("#cancel-updated-email");n.disabled=t.value.length===0?!0:r2(t,e),o.disabled=r2(t,e);let r=()=>{n.disabled=t.value.length===0?!0:r2(t,e),o.disabled=r2(t,e)};nrt(e),BV||(t.addEventListener("input",r),n.addEventListener("click",async()=>{event.preventDefault(),Xa=!0;let s=hn.elements.namedItem("country-list"),i=s?.options[s.selectedIndex]?.value;e.country!==i&&(e.country=i);try{(await irt(n,e)).hasError?ft(hn,"optInSomethingWentWrong"):(jf(v),ft(hn,"optInSaveSuccessful"))}catch{ft(hn,"optInSomethingWentWrong")}finally{Xa=!1,n.classList.remove("is-loading")}}),o.addEventListener("click",()=>{event.preventDefault(),jf(e)}),BV=!0)}function r2(e,t){return e.value===t.email}function rrt(e,t,n){let o=e.querySelector("#email-unsubscribe"),r=e.querySelector("#unsubscribe-submit-button");e.querySelector("#unsubscribe-cancel-button").addEventListener("click",()=>{n()}),Xa=!1,o.onsubmit=async i=>{if(!Xa){Xa=!0,i.preventDefault(),r.classList.add("is-loading");try{let a=await srt(t);a.hasError?(Xa=!1,ft(e,"unsubscribeModalSomethingWentWrong")):(HV(!1),jf(a.profile),n())}catch{Xa=!1,ft(e,"unsubscribeModalSomethingWentWrong")}finally{r.classList.remove("is-loading")}}}}async function srt(e){let t=await Yh(Nu);return t.email=null,t.displayName=e.displayName,t.country=void 0,await zV(t,e)}async function irt(e,t){e.classList.add("is-loading");let n=hn.querySelector("#update-email"),o=await Yh(Nu);return o.displayName=t.displayName,o.userName=t.userName,o.email=n.value,o.locale=t.locale,o.country=t.country,o.contactPointTopicSetting=t.contactPointTopicSetting,await zV(o,t)}function fFe(e){o2(Nu,e.country,"manage-email-preferences-form","update-profile-button");let t=hn.elements.namedItem("update-profile-button"),n=hn.querySelector("#cancel-updated-email");return n.addEventListener("click",()=>{hn.reset(),so(hn);let o=hn.elements.namedItem("opt-out");o&&(o.checked=!1),jf(e),n.disabled=!0}),hn.addEventListener("change",()=>{n.disabled=!1}),Xa=!1,hn.onsubmit=async o=>{if(!Xa){o.preventDefault(),Xa=!0,t.classList.add("is-loading");try{let r=await art(e);r.hasError?ft(hn,"optInSomethingWentWrong"):(HV(!0),jf(r.profile),ft(hn,"optInSaveSuccessful"))}catch{ft(hn,"optInSomethingWentWrong")}finally{Xa=!1,t.classList.remove("is-loading")}}},Nu}async function art(e){let t=hn.querySelector(".user-email"),n=hn.elements.namedItem("country-list"),o=hn.querySelector(".opt-in"),r=o&&o.checked,s=await Yh(Nu),i=()=>{delete s.email,delete s.locale,delete s.country,delete s.contactPointTopicSetting},l=n.options[n.selectedIndex].getAttribute("data-preference");return s.contactPointTopicSetting=gFe(r,l),s.displayName=e.displayName,s.userName=e.userName,s.country=n.value,s.locale=b.data.userLocale,s.email=t.value,(n.selectedIndex===0||t.value.length===0)&&i(),await zV(s,e)}async function zV(e,t){so(Nu);try{let n=await sd(t.userName,e);return n.hasError===!0?(n.errors.forEach(o=>{ft(hn,o)}),n):(n.profile.qnaUserId=t.qnaUserId,v.readUserProfile(n.profile),n)}catch(n){throw new Error(`error: ${n.message}`)}}function lrt(){return d`

      ${$F}

      ${Ile}

      ${hFe()}
      ${bFe()}
      `}function crt(e){return d`

      ${$F}

      ${hFe()}
      ${bFe()}
      `}function hFe(){return d`

      `}function bFe(){return d``}function urt(){return d` `}M();var qjn=new URL(D.auth.partner).pathname;M();function _Fe(){return d`
      ${ehe}
      • ${the}
      • ${nhe}
      • ${ohe}
      `}var prt={qna:{contextualCard:_Fe(),cancelRegistrationMessage:String(rhe),isEnabled:k("page_kind")!=="register"}},EWn=me();var yFe=["levels","products","roles"];var mrt="docs.userInterests";function qv(){let e=EE();return e&&grt(e)}function grt(e){if(e){for(let t of yFe)if(!e[t])return!1;return!0}return!1}function EE(){return GV()||v.interests}function GV(){let e=null,t=ry.getItem(mrt);try{t&&(e=JSON.parse(t))}catch{e=null}return e}M();var frt=/^\S+@\S+\.\S+$/;function vFe(e){return frt.test(e.trim())}function AE(e,t,n){n.removeAttribute("hidden"),t!==null&&(t.classList.add("button-danger","button-filled"),t.setAttribute("aria-invalid","true"),t.focus()),y(d`${q(e)}`,n)}function s2(e,t){e!==null&&(e.setAttribute("aria-invalid","false"),e.classList.remove("button-danger","button-filled")),y(d``,t)}function xFe(e){let t=e.querySelector('select[name="country-list"]');t.value=`${Eh}`,e.onchange=async n=>{if(n.target instanceof HTMLSelectElement){let o=await Ov;qV(t.value,o[0].countries,e),QV(e)}}}async function TFe(){let e=await o2();return d`${q(e.outerHTML)}`}function wFe(e,t,n){return e.length===0?!1:t.length!==0&&n.length!==0}function VV(e){let t=document.getElementById("user-email");if(!t)return v.email;let n=t.value.trim(),o=e.querySelector(".validation-message");return n.length===0?(AE(die,t,o),""):vFe(n)?(s2(t,o),n):(o.removeAttribute("hidden"),AE(Lx,t,o),"")}function QV(e){let t=e.querySelector('select[name="country-list"]');if(!t)return v.country;let n=e.querySelector(".validation-message");return t&&t.value.indexOf(Eh)>-1?(AE(Whe.replace("{text}",bh),t,n),""):(s2(t,n),t.value)}function YV(e){let t=e.querySelector(".opt-in"),n=e.querySelector("#create-opt-in-checkbox"),o=e.querySelector(".validation-message");return t?t.checked?(s2(n,o),"OptInExplicit"):(AE(Jfe,n,o),""):"OptInExplicit"}async function CFe(){let e=document.createElement("div"),t=new ge(e);t.show();let n=await jV();if(n===null){pu(t),uo();return}let o=KR(n.credentialId,n.authenticationMode,v,n.authenticationModes);if(o!==null){pu(t,o,n.authenticationModes[0].upn),uo();return}let r=await c_e(ml());if(r!==null){pu(t,r),uo();return}y(yrt(n,t),e)}async function jV(){let e=ml(),t;if(e===null)return null;try{let n=await sI(e);t=new Qh;let o=await rd(n);o&&t.readUserProfile(o)}catch{if(t=rI(),t===null)return null}return t}function hrt(e,t){let n=e.contentElement.querySelector(".modal-card");y(d` `,n)}async function brt(e){let t=e.contentElement.querySelector("#merge-email-notify");if(t===null||t!==null&&t.checked===!1){await EFe(e);return}await _rt(e)}async function _rt(e){let t=e.contentElement.querySelector(".modal-card");y(d` `,t),xFe(t)}async function EFe(e){let t=e.contentElement,n=t.querySelector("#accept-merge-notice")||t.querySelector("#skip-notify-merge"),o=t.querySelector("#decline-merge-notice")||t.querySelector("#submit-notify-merge");try{n.classList.add("is-loading"),n.disabled=!0,o.classList.add("is-disabled"),o.disabled=!0;let r=await uO(ml());if(r.hasError){let s=r.errors[0]||"unexpectedError";pu(e,s);return}n.classList.remove("is-loading"),n.disabled=!1,o.classList.remove("is-disabled"),o.disabled=!1,e.hide(),p6(),of()}catch{pu(e)}uo()}function yrt(e,t){let n=b.data.userDir==="ltr"?"docon-arrow-left":"docon-arrow-right";return d``}function SFe(e){let t=e.authenticationModes;return t.length===0&&t.push({dateAdded:e.createdOn,id:e.userId,tenantId:"",type:e.userType==="aad"?"AAD":"MSA",upn:e.upn}),d`
      ${t.map(n=>d`

      ${e.displayName}

      ${n.upn}

      `)}`}var ea;async function AFe(e){let{section:t}=w9(new URL(location.href));t==="settings"&&e&&(y(xrt(),e),WV(v.credentialId,e),v.subscribe(xn,()=>{WV(v.credentialId,e)}),of(!0));let n;try{n=rI()}catch(o){if(o instanceof la)n=null;else throw o}if(await fe,Trt(n)){let o=KR(n.credentialId,n.authenticationMode,v,n.authenticationModes);if(o)kE(n.upn,o);else{try{n=await jV()}catch{}if(n.userType==="standard"||n.createdOn!==null){vrt(n);return}wrt(n)}}}async function vrt(e){let t=document.getElementById("add-account"),n;t&&(n=t.querySelector(".icon"),t.classList.add("is-loading")),n&&(n.hidden=!0);try{let o=await kFe();KV(o,e.upn,e.credentialId)}catch{kE(e.upn)}t&&t.classList.remove("is-loading"),n&&(n.hidden=!1)}function xrt(){let e=t=>{t.preventDefault(),nf()};return d`

      ${sfe}

      ${q(Yge)}

      ${Xfe}

      ${IFe(v.authenticationMode)}

      ${tfe}

        `}function WV(e,t,n=!0){let o=t?.querySelector(".zero-accounts"),r=t?.querySelector(".linked-accounts"),s=d``;if(v.authenticationModes.length===1&&n){o.hidden=!1,y(s,r);return}let i=a=>{a.preventDefault();let l=a.target;if(!l)return;let c=l.dataset.accountUpn,u=l.dataset.accountType,p=l.dataset.accountId;Srt(c,e,u,p)};n&&(o.hidden=!0),y(d`${v.authenticationModes.map(a=>a.upn!==null&&(!n||a.id!==e)?d`
        `:"")} ${n?s:""} `,r)}function Trt(e){return e!==null&&(!v.authenticationModes.length||v.authenticationModes.every(t=>t.upn!==e.upn||t.type!==e.authenticationMode))}async function kFe(){return await s_e(ml())}function wrt(e){ea||JV();let t=ea.contentElement.querySelector(".modal-card"),n=`${nfe.replace("{account}",e.upn)}`;y(d` `,t),ea.show()}function Srt(e,t,n,o){ea||JV();let r=async i=>{i.preventDefault();let a=i.target;if(a){a.classList.add("is-loading");try{let l=await i_e(n,o);ea.hide(),KV(l,e,t)}catch{kE(t)}a.classList.remove("is-loading")}},s=ea.contentElement.querySelector(".modal-card");y(d` `,s),ea.show()}function KV(e,t,n){if(e.hasError){let r=e.errors[0]||"unexpectedError";if(r==="accountAlreadyRegistered"){CFe();return}uo(),kE(n,r);return}let{section:o}=w9(new URL(location.href));if(e.profile){v.readUserProfile(e.profile),(o==="certifications"||En.kind==="certificationrenewal")&&Fv();let r=document.getElementById("account-linking");r&&(WV(v.credentialId,r),Crt(t,n),uo())}}function Crt(e,t){if(!t)return;let n=document.getElementById("accounts-changed-alert");n.hidden=!1;let o=ml()!==null&&v.credentialId!==t,r="primary",s="error",i=Jge;o&&(r="success",s="success",i=Qge),y(d` `,n),Ert()}function Ert(){setTimeout(function(){let e=document.getElementById("linking-alert");if(e){e.classList.add("disappearing");let t=document.getElementById("add-account");setTimeout(function(){t.classList.add("is-sliding-up"),y(d``,e.parentElement)},500)}},5e3)}function kE(e,t="unexpectedError"){ea||JV();let n=ea.contentElement.querySelector(".modal-card");y(d` `,n),ea.show()}function JV(){let e=document.createElement("div");e.classList.add("modal-content"),y(d` `,e),ea=new ge(e)}function IFe(e){return d`
        `}async function PFe(e){await Te;let t=k("certificationUid")??b.data.certificationRenewalData?.certificationUid??"",n;try{n=await Ki(t)}catch{n={courses:[],exams:[],subtitle:"",title:"",uid:b.data.certificationRenewalData.certificationUid,url:""}}tr({title:b.data.certificationRenewalBreadcrumbData.certificationTitle,url:Uv(t,n.url)}),await Art(e);let o=b.data.certificationRenewalData?b.data.certificationRenewalData.assessmentId:"";if(S.stayCurrentAllowParam){let c=me().assessmentId;c!==void 0&&(o=c)}let r=xf(),s=Tf(),i,{accommodationRequested:a}=me();b.data.certificationRenewalData?a==="true"?i=b.data.certificationRenewalData.durationInMinutes*2:i=b.data.certificationRenewalData.durationInMinutes:i=0;let l=new n2(t,o,i??0,r,s,Be.userLocale,n.url);AFe(),uFe(l,e)}async function Art(e){let t=await bM.get("role");Array.from(e.querySelectorAll(".certification-renewal-role")).forEach(o=>{let r=o.textContent;o.textContent=t[r]})}function LFe(e,t){function n(o){function r(s){s.length&&s.forEach(i=>{if(i.type==="link_open"&&i.attrs?.find(a=>a[0]==="href")){let a=i.attrIndex("target");a<0?i.attrPush(["target","_blank"]):i.attrs[a][1]="_blank"}i.children&&r(i.children)})}r(o.tokens)}e.core.ruler.push(t,n,{alt:[]})}var Hp=class{constructor(t,n){this.question=t;this.questionNumber=n}},Hv=class{},Fu=class{constructor(t){this.questionResponses=t}},Bv=class{};var RFe=K` ${Pe(e=>e.scenarioDescription,K`
        `)}
        ${pn(e=>e.choices[0].choices,K``)} ${pn(e=>e.choices[0].choices,K` `)} ${pn(e=>e.choices,K` ${pn(e=>e.choices,K` `)} `,{positioning:!0})}
        `,zv=class{constructor(t){this.isSelected=!1;this.text=t.text,this.id=t.id}};z([j],zv.prototype,"id",2),z([j],zv.prototype,"text",2),z([j],zv.prototype,"isSelected",2);var Wf=class{constructor(t){this.text=t.title,this.id=t.fullyQualifiedId,this.description=t.description,this.choices=t.choices.map(n=>new zv(n)),this.manualId=t.manualId}validate(){return this.choices.reduce((t,n)=>t||n.isSelected,!1)}};z([j],Wf.prototype,"id",2),z([j],Wf.prototype,"text",2),z([j],Wf.prototype,"description",2),z([j],Wf.prototype,"choices",2);var vc=class{constructor(t){this.scenarioTitle=t.title,this.scenarioDescription=t.description,this.uid=t.uid,this.questionType="Matrix",this.id=t.uid,this.choices=t.questions.map(n=>new Wf(n)),this.fullyQualifiedId=t.questions[0].fullyQualifiedId}validate(){return this.choices.reduce((t,n)=>t&&n.validate(),!0)}async checkUserAnswer(){}serialize(){return this.choices.map(t=>({fullyQualifiedQuestionId:t.id,value:t.choices.filter(n=>n.isSelected).map(n=>n.id)}))}};z([j],vc.prototype,"uid",2),z([j],vc.prototype,"questionType",2),z([j],vc.prototype,"scenarioTitle",2),z([j],vc.prototype,"scenarioDescription",2),z([j],vc.prototype,"choices",2),z([j],vc.prototype,"id",2);function i2(e){try{let t=document.createElement("template");return t.innerHTML=e,t.content.querySelectorAll("a").forEach(n=>n.target="_blank"),t.innerHTML}catch{return e}}var MFe=K`
        ${Pj}
        ${pn(e=>e.choices,K`
        ${(e,t)=>K` ${Pe(n=>t.parent.displayAnswer,K` ${n=>n.isSelected&&n.isCorrect===!1?K`${tm}`:""} ${n=>n.isCorrect===!0?K`${nm}`:""} `)} `}
        `)}
        e.rationale||""}>
        `,Gv=class{constructor(t){this.isSelected=!1;this.text=t}};z([j],Gv.prototype,"id",2),z([j],Gv.prototype,"text",2),z([j],Gv.prototype,"isSelected",2),z([j],Gv.prototype,"isCorrect",2);var Rs=class{constructor(t,n){this.choices=[];this.displayAnswer=!1;this.question=n,this.choices=this.question.choices.map(o=>({id:o.id,text:o.text,isSelected:!1,isCorrect:o.isCorrect})),this.questionTitle=this.question.title,this.questionDescription=this.question.description,this.scenarioTitle=t.title,this.scenarioDescription=t.description,this.uid=this.question.uid,this.questionType=this.question.questionType,this.id=this.question.fullyQualifiedId,this.fullyQualifiedId=this.question.fullyQualifiedId,this.manualId=this.question.manualId,this.rationale=i2(this.question.rationale)}validate(){return this.choices.reduce((t,n)=>t||n.isSelected,!1)}async checkUserAnswer(){this.displayAnswer=!0}serialize(){return[{fullyQualifiedQuestionId:this.question.fullyQualifiedId,value:this.choices.filter(t=>t.isSelected).map(t=>t.id)}]}};z([j],Rs.prototype,"uid",2),z([j],Rs.prototype,"questionTitle",2),z([j],Rs.prototype,"questionDescription",2),z([j],Rs.prototype,"questionType",2),z([j],Rs.prototype,"scenarioTitle",2),z([j],Rs.prototype,"scenarioDescription",2),z([j],Rs.prototype,"choices",2),z([j],Rs.prototype,"id",2),z([j],Rs.prototype,"rationale",2),z([j],Rs.prototype,"displayAnswer",2);var DFe=K`
        ${Ej}
        ${pn(e=>e.choices,K`
        ${(e,t)=>K` ${Pe(n=>t.parent.displayAnswer,K` ${n=>n.isSelected&&n.isCorrect===!1?K`${tm}`:""} ${n=>n.isCorrect===!0?K`${nm}`:""} `)} `}
        `)}
        e.rationale||""}>
        `,Vv=class{constructor(t){this.isSelected=!1;this.text=t}};z([j],Vv.prototype,"id",2),z([j],Vv.prototype,"text",2),z([j],Vv.prototype,"isSelected",2),z([j],Vv.prototype,"isCorrect",2);var Ms=class{constructor(t,n){this.choices=[];this.displayAnswer=!1;this.question=n,this.choices=this.question.choices.map(o=>({id:o.id,text:o.text,isSelected:!1,isCorrect:o.isCorrect})),this.questionTitle=this.question.title,this.questionDescription=this.question.description,this.scenarioTitle=t.title,this.scenarioDescription=t.description,this.uid=this.question.uid,this.questionType=this.question.questionType,this.id=this.question.fullyQualifiedId,this.fullyQualifiedId=this.question.fullyQualifiedId,this.manualId=this.question.manualId,this.rationale=i2(this.question.rationale)}validate(){return this.choices.reduce((t,n)=>t||n.isSelected,!1)}async checkUserAnswer(){this.displayAnswer=!0}serialize(){return[{fullyQualifiedQuestionId:this.question.fullyQualifiedId,value:this.choices.filter(t=>t.isSelected).map(t=>t.id)}]}};z([j],Ms.prototype,"uid",2),z([j],Ms.prototype,"questionTitle",2),z([j],Ms.prototype,"questionDescription",2),z([j],Ms.prototype,"questionType",2),z([j],Ms.prototype,"scenarioTitle",2),z([j],Ms.prototype,"scenarioDescription",2),z([j],Ms.prototype,"choices",2),z([j],Ms.prototype,"id",2),z([j],Ms.prototype,"rationale",2),z([j],Ms.prototype,"displayAnswer",2);function $Fe(e){return e.map(t=>t.questionSets.map(n=>krt(n)).reduce((n,o)=>n.concat(o),[]).map(n=>({question:n,questionnaire:t}))).reduce((t,n)=>t.concat(n))}function krt(e){let t={SingleSelect:(n,o)=>new Ms(n,o),MultiSelect:(n,o)=>new Rs(n,o),Matrix:n=>new vc(n)};return Irt(e)?[t.Matrix(e)]:e.questions.map(n=>{let o=n.questionType,r=o.charAt(0).toUpperCase()+o.slice(1);return t[r](e,n)})}function Irt(e){if(e.questions.length<=1)return!1;let t=e.questions[0].questionType;if(!e.questions.reduce((l,c)=>l&&c.questionType===t,!0)||t==="MultiSelect")return!1;let o=e.questions.map(l=>l.choices),r=new Set;if(o.map(l=>l.length).forEach(l=>r.add(l)),!(r.size===1))return!1;let i=o[0].length;return o.map(l=>l.map(c=>c.id)).reduce((l,c)=>l.concat(c)).reduce((l,c)=>(l.add(c),l),new Set).size===i}var XV=class{constructor(t){this.position=0;this.collection=t}get currentId(){return Promise.resolve(this.position.toString())}get hasPrevious(){let t=this.position-1;return Promise.resolve(t>=0)}get hasNext(){let t=this.position+1;return Promise.resolve(t{this.nextQuestion()}),this.bus.publish(new Hp(this.currentScenario,this.currentScenarioNumber)),this._state="Testing"}async scoreSnapshot(t){let n={snapshotId:this.snapshot.id,responses:t};try{return this._scoredSnapshot=await this.processSnapshot(this.assessmentId,this.snapshot.certificationUid,n,this.snapshot.learnAssessmentSession),this.scoredSnapshot.passed}finally{}}async nextQuestion(){if(this.state!=="Testing")throw new Error('Cannot set questions outside of "Testing" state.');try{return this.currentScenario.validate()?(this.questionResponses.push(...this.currentScenario.serialize()),await this.questionnaireIterator.hasNext?(this.currentScenario=(await this.questionnaireIterator.next()).question,this.currentScenarioNumber=parseInt(await this._questionnaireIterator.currentId,10)+1,this.bus.publish(new Hp(this.currentScenario,this.currentScenarioNumber))):(this.omitScoring||this.snapshotVersion==="preview")&&this.isPreview?(this._questionnaireIterator=this._questionnaire.iterator,this.currentScenario=(await this.questionnaireIterator.current()).question,this.currentScenarioNumber=1,this.bus.publish(new Hp(this.currentScenario,this.currentScenarioNumber))):(this._state="Scoring",this.bus.publish(new Fu(this.questionResponses))),!0):!1}catch(t){return console.error(t),!1}}};var ZV=class{constructor(t,n){this.id=t.sessionUid,this.title=t.title,this.locale=t.locale,this.questionnaires=this.practiceQuestionnairesToSnapshotQuestionnaires(t.questionnaires),this.createdAt=t.userSessionDate.toString(),this.questionsToPass=null,this.secondsRemaining=null,this.timer=null,this.renewalAssessmentUid=n,this.manualId=t?.name,this.certificationUid=t.examId,this.temporaryPreviewExpiresAt=t.temporaryPreviewExpiresAt}practiceQuestionnairesToSnapshotQuestionnaires(t){return t.map(n=>({questionsToPass:n.questionsToPass,uid:n.id.toString(),title:n.title,questionSets:this.practiceQuestionsToSnapshotQuestionSets(n.questions),manualId:n?.name}))}practiceQuestionsToSnapshotQuestionSets(t){return t.map(n=>({uid:n.id.toString(),title:"",description:n.textHtml?.length?n.textHtml:Ba.render(n.text),questions:this.practiceQuestionToSnapshotQuestions(n)}))}practiceQuestionToSnapshotQuestions(t){return[{uid:t.id.toString(),fullyQualifiedId:`${t.questionnaireId}.1.${t.id}`,questionType:t.type,title:"",description:t.textHtml?.length?t.textHtml:Ba.render(t.text),choices:this.practiceQuestionChoicesToSnapshotQuestionChoices(t.choices),manualId:t?.name,rationale:t.rationaleHtml?.length?t.rationaleHtml:Sy().use(LFe,"openLinksInNewWindows").render(t?.rationale)}]}practiceQuestionChoicesToSnapshotQuestionChoices(t){return t.map(n=>({id:n.id.toString(),text:n.textHtml?.length?n.textHtml:Ba.renderInline(n.text),isCorrect:n.isCorrect}))}},e7=class{constructor(t,n){this.answersCorrect=t.correctAnswerCount,this.questionsToPass=t.questionsToPass,this.questionsTotal=t.questionsToTake,this.passed=t.assessmentStatus==="Pass",this.certificationUid=n,this.snapshotId=t.sessionUid}},l2=class extends Qv{constructor(...t){super(...t)}async initSnapshot(){let t=this.assessmentId,n=b.data.userLocale,o=await(this.isPreview?V2e(t,n):G2e(t,n));this._practiceSession=o,o.examId=this.isPracticeCertification?FN():o.examId,this._contentSource=await(this.isPracticeCertification?Ki:pv)(this._practiceSession.examId),this._practiceSession.userSessionStart=new Date,this._snapshot=new ZV(o,this.assessmentId),super.initSnapshot()}async processSnapshot(t,n,o){return new Promise(async(r,s)=>{try{this._practiceSession.userChoices=this.convertSnapshotAttemptToUserChoices(o),await Q2e(t,this._practiceSession.sessionUid,this.locale,this._practiceSession);let i=await jN(t,this._practiceSession.sessionUid,this.locale);r(new e7(i,n))}catch(i){s(i)}})}convertSnapshotAttemptToUserChoices(t){return t.responses.map(n=>{let o=n.fullyQualifiedQuestionId.split(".");return{assessmentId:this.assessmentId,questionnaireId:o[0],questionId:o[2],choiceIds:n.value.map(r=>parseInt(r))}})}};var Kf=class{constructor(t,n,o,r,s,i,a,l){this.assessmentId=t,this.certificationUid=n,this.skipVerification=r,this.snapshotVersion=s,this.error=a,this.retry=l||(()=>{}),this.reportPageUrl=Vt({assessmentType:i,pageType:2,credentialId:this.error.detail.certificationUid,credentialPathname:o,query:{assessmentid:this.error.detail.assessmentId,snapshotId:this.error.detail.snapshotId}}),this.recertDetailsUrl=Vt({assessmentType:i,pageType:0,credentialId:this.certificationUid,credentialPathname:o,query:{assessmentId:this.assessmentId}})}retryHandler(){this.retry()}};z([j],Kf.prototype,"error",2),z([j],Kf.prototype,"reportPageUrl",2),z([j],Kf.prototype,"recertDetailsUrl",2);var NFe=K`
         

        ${e=>e.error&&e.error.status===400&&e.error.errorCode==="snapshotInvalid"?String(Fj):String(nh)}

        ${Pe(e=>e.error&&e.error.status!==400,K`

        ${$j}

        `)} ${Pe(e=>e.error&&e.error.status===400&&e.error.errorCode==="snapshotInvalid",K`

        ${Uj}

        `)} ${Pe(e=>!e.error||e.error.status===400&&e.error.errorCode!=="snapshotInvalid",K`

        ${Mj}

        `)}
        `;var FFe=K`

        ${Xt}

        ....
        `;var t7=class{constructor(){this.fileIsDirty=!1}static get admin(){return this._instance||(this._instance=new this)}},UFe=t7.admin;UFe.fileIsDirty=!1;function Prt(e,...t){let n=new URLSearchParams;for(let o of t){let r=e.searchParams.get(o);r!==null&&n.set(o,r)}return n}function Yv(e,...t){let n=(a,l)=>l.length===0?a:[a,...l].join("/");if(t.length===0){let a=e.split("/");e=a.shift()??"",t=a}let o=new URL(oe.href),r=Prt(o,"branch","themebranch","branchFallbackFrom","pr"),s=r.toString()!==""?"?"+r.toString():"",i=`/${b.data.userLocale}/admin/`+n(e,t)+s;return new URL(i,o)}M();var Lrt=K`

        ${Oj}

        00 : 00 : 00
        `,Rrt=d` `,OFe=document.createElement("div"),qFe=new ge(OFe),Mrt=()=>{y(Rrt,OFe)},Drt=()=>qFe.hide(),$rt=()=>{document.querySelector(".modal-background").classList.remove("modal-close")},Nrt=e=>{let{timeRemaining:t}=me(),n=parseInt(t);return isNaN(n)?e:n},Frt=500,c2=class{constructor(){this.countdownTimerReference=null}clearTimeout(){this.countdownTimerReference&&clearTimeout(this.countdownTimerReference)}};z([j],c2.prototype,"countdownTimerReference",2);var n7=(e,t,n,o)=>{let r=e,s=Math.floor(r/1e3%60),i=Math.floor(r/1e3/60%60),a=Math.floor(r/(1e3*60*60)%24),l=document.querySelector("#timer-container");if(l!==null){let c=l.querySelector(".hours"),u=l.querySelector(".minutes"),p=l.querySelector(".seconds");c.textContent=a.toString().padStart(2,"0"),u.textContent=i.toString().padStart(2,"0"),p.textContent=s.toString().padStart(2,"0")}if(r<=0){let c=document.getElementById("next-button");return c.disabled!==null&&(c.disabled=!0),Mrt(),qFe.show(),document.getElementById("see-results-button").addEventListener("click",()=>{t.publish(new Bv),Drt()}),$rt()}else return o.countdownTimerReference=setTimeout(n7,Frt,Math.max(n-Date.now(),0),t,n,o)},xc=class{constructor(t,n,o=ct,r=!1,s=!1,i="false",a="preview"){this.bus=o;this.omitScoring=r;this.isPreview=s;this.showAllQuestions=i;this.snapshotVersion=a;this.countdownTimerReference=new c2;this.options={showcheckAnswer:!1};this.reRouteSession=()=>{let t=new URL(location.href),n=this.showAllQuestions==="true"?"false":"true";t.searchParams.set("show-all-questions",n),t.searchParams.set("omit-scoring",n),this.countdownTimerReference.clearTimeout(),Qr.goto(t,"replaceState")};this.title=t,this.service=n,this.numberOfScenarios=this.service.questionnaire.count,this.timer=this.service.snapshot.timer,this.bus.subscribe(Hp,c=>{this.updateScenario(c.question,c.questionNumber)}),this.renewalAssessmentUid=this.service.snapshot.renewalAssessmentUid,this.manualId=this.service.snapshot.manualId,this.linkMetadata=this.service.linkMetadata,this.options={showcheckAnswer:this.service.type==="practice"};let l=()=>({canHandle:c=>location.origin===c.origin&&location.pathname===c.pathname&&c.search!=="",handle:async c=>Promise.resolve({url:c,title:this.title}),params:[]});Qr.enable(l())}async initialize(){if(this.updateScenario(this.service.currentScenario,this.service.currentScenarioNumber),this?.service?.snapshot?.temporaryPreviewExpiresAt){let t="has-background-warning-light display-flex justify-content-center",n="button",o=XRe,r={id:"renewal-assessment-platform-api-link",url:ZRe,text:_j},s=new Date(Date.parse(this.service.snapshot.temporaryPreviewExpiresAt));Gt(bj?.replace("{temporaryPreviewExpiresAt}",s.toString()),r,t,n,o)}if(this.timer!==null&&this.timer!==void 0){let t=this.timer*1e3*60;if(L.supportLevel==="production"){let n=Date.now()+t;n7(t,this.bus,n,this.countdownTimerReference)}else{let n=Nrt(t),o=Date.now()+n;n7(n,this.bus,o,this.countdownTimerReference)}}}updateScenario(t,n){let[o,r,s]=t.fullyQualifiedId.split(".");this.questionnaireId=o,this.questionSetId=r,this.questionId=s,this.currentScenario=t,this.currentScenarioNumber=n,this.form&&this.form.focus()}next(){this.bus.publish(new Hv)}checkUserAnswer(){if(this.form.checkValidity()){this.currentScenario.checkUserAnswer();return}this.form.reportValidity()}};z([j],xc.prototype,"numberOfScenarios",2),z([j],xc.prototype,"currentScenarioNumber",2),z([j],xc.prototype,"currentScenario",2),z([j],xc.prototype,"title",2),z([j],xc.prototype,"timer",2),z([j],xc.prototype,"countdownTimerReference",2);var HFe=K` ${Pe(()=>L.reviewFeatures,K`
        e.reRouteSession()} />
        `)}
        ${Pe(e=>e.isPreview,K` ${e=>e.manualId||e.renewalAssessmentUid} `)}

        ${e=>e.title}

        ${e=>e.timer!==null&&e.timer!==void 0?Lrt:""}
        ${Pe(e=>e.isPreview,K` (${e=>e.currentScenario.manualId||e.currentScenario.uid}) `)}
        ${cn(e=>e.currentScenario,e=>Urt(e.currentScenario))}
        ${Pe(e=>e.options.showcheckAnswer,K` `)}
        `;function Urt(e){let t={SingleSelect:DFe,MultiSelect:MFe,Matrix:RFe},n=e.questionType.charAt(0).toUpperCase()+e.questionType.slice(1);return t[n]}function Ort(e){return e.currentScenarioNumber===e.numberOfScenarios?e.isPreview&&(e.omitScoring||e.snapshotVersion==="preview")?pQ:co:Lj}document.onkeydown=e=>{if(e.altKey&&e.key==="v"){let t=document.getElementById("timer-container");if(t)switch(t.getAttribute("aria-live")){case"polite":t.setAttribute("aria-live","assertive");break;case"assertive":t.setAttribute("aria-live","off");break;case"off":t.setAttribute("aria-live","assertive");break}}};var BFe=K`
         

        ${Rj}

        `;var jv=class{constructor(t,n){this.scoredSnapshot=t,this.resultsUrl=n}};z([j],jv.prototype,"scoredSnapshot",2),z([j],jv.prototype,"resultsUrl",2);var zFe=K` `;var IE=class extends Ve{constructor(n,o,r,s,i,a=ct,l=!1,c=!1){super();this.service=n;this.assessmentId=o;this.skipVerification=r;this.showAllQuestions=s;this.snapshotVersion=i;this.bus=a;this.omitScoring=l;this.isPreview=c;this.viewState="Loading";this.publish(new Ip)}async initializeAssessment(){let n=await t2(b.data.userLocale,new URL(location.href));try{await this.service.initSnapshot()}catch(o){o7(o,this.service,n.certificationId)}A.title=this.service.type==="renewal"?this.createTitle(this.service.snapshot.certificationName,A.title):A.title,this.setTesting(),this.bus.subscribe(Fu,async o=>{this.setScoring();try{await this.service.scoreSnapshot(o.questionResponses)&&this.service.type==="renewal"?this.setSuccess(this.service.scoredSnapshot,Vt({assessmentType:"renewal",pageType:2,credentialId:this.service.snapshot.certificationUid,credentialPathname:this.service.contentSource.url,query:{assessmentid:this.assessmentId,snapshotId:this.service.scoredSnapshot.snapshotId}})):this.setFailed()}catch(r){if(r instanceof Cu){this.setError(this.assessmentId,this.service.snapshot.certificationUid,this.service.contentSource?.url,this.skipVerification,this.snapshotVersion,this.service.type,r,()=>this.bus.publish(new Fu(o.questionResponses)));return}this.setError(this.assessmentId,this.service.snapshot.certificationUid,this.service.contentSource?.url,this.skipVerification,this.snapshotVersion,this.service.type)}})}setTesting(){this.model=new xc(this.service.snapshot.title,this.service,this.bus,this.omitScoring,this.isPreview,this.showAllQuestions,this.snapshotVersion),this.model.initialize(),this.viewState="Testing",this.publish(new He),this.assessmentStart=Date.now()}setScoring(){this.assessmentTime=(Date.now()-this.assessmentStart)/6e4,this.model=null,this.viewState="Scoring",this.publish(new He)}async setSuccess(n,o){this.model=new jv(n,o);try{await Promise.all([NS("/en-us/media/learn/certification/renew/fireworks.png?branch=main"),NS("/en-us/media/learn/certification/badges/microsoft-certified-associate-badge.svg?branch=main")])}finally{this.viewState="Success",this.publish(new He)}}setError(n,o,r,s,i,a,l,c){this.model=new Kf(n,o,r,s,i,a,l,c),this.viewState="Error",this.publish(new He)}setFailed(){this.viewState="Failed",this.publish(new He)}createTitle(n=Ds,o=A.title){let r=o.split("|").pop();return`${vj.replace("{certificationName}",n||Ds)} | ${r}`}};z([j],IE.prototype,"viewState",2);var GFe=K` ${Pe(e=>e.viewState==="Loading",FFe)} ${Pe(e=>e.viewState==="Testing",K` ${cn(e=>e.model,e=>HFe)}`)} ${Pe(e=>e.viewState==="Scoring",BFe)} ${Pe(e=>e.viewState==="Success",K` ${cn(e=>e.model,e=>zFe)}`)} ${Pe(e=>e.viewState==="Error",K` ${cn(e=>e.model,e=>NFe)}`)} `;function o7(e,t,n){if(e instanceof Cu){if(e.status===401){wn(location.href);return}t.snapshot?location.href=Vt({assessmentType:"renewal",pageType:0,credentialId:t.snapshot&&t.snapshot.certificationUid||n,credentialPathname:t.contentSource.url,query:{assessmentId:t.snapshot&&t.snapshot.renewalAssessmentUid||""}}):location.href=ua(A.referrer).href;return}else throw e}function r7(e,t,n){Ee({behavior:Ce.OTHER,actionType:Re.OTHER,content:{type:"assessment-complete-time",userId:v.userId,assessmentId:e,passed:t,durationInMin:n}})}function VFe(e){Ee({behavior:Ce.OTHER,actionType:Re.OTHER,content:{type:"assessment-abort",userId:v.userId,assessmentId:e}})}var u2=class extends Qv{constructor(...t){super(...t)}async initSnapshot(){this._snapshot=await X2e(this.assessmentId,b.data.userLocale),this._learnAssessmentSession=this._snapshot.learnAssessmentSession,this._contentSource=await Ki(this.snapshot.certificationUid),this.bus.subscribe(Bv,()=>{this.submitQuestionsWhenTimeEnds()}),super.initSnapshot()}async submitQuestionsWhenTimeEnds(){if(this.state!=="Testing")throw new Error('Cannot set questions outside of "Testing" state.');try{let n=this.currentScenario.serialize().filter(o=>o.value.length<0);return this.questionResponses.push(...n),this._state="Scoring",this.bus.publish(new Fu(this.questionResponses))}catch(t){return console.error(t),!1}}async checkAnswer(){}async processSnapshot(t,n,o,r){return new Promise(async(s,i)=>{try{let a=await Z2e(o,r);s(a)}catch(a){a instanceof Cu&&(a.detail={assessmentId:t,certificationUid:n,snapshotId:o.snapshotId},i(a))}})}};var QFe=async e=>{if(e=document.querySelector("[data-main-column]"),!e)return;let t=await t2(b.data.userLocale,new URL(location.href));if(!t.assessmentId){location.href=`${location.origin}/${b.data.userLocale}/credentials/`;return}if(await Promise.all([Te,fe]),L.accessLevel!=="local"&&!v.isAuthenticated){wn(location.href);return}let n=new Ve,o;t.assessmentType!=="practice"?o=new u2(t.assessmentId,b.data.userLocale,n,t.omitScoring,t.isPreview,"renewal",{assessmentAdmin:"renewalassessments",questionnaireAdmin:"learnassessments-questionnaires/Renewal/questionnaires",hasQuestionSets:!0},!1,t.snapshotVersion):o=new l2(t.assessmentId,b.data.userLocale,n,t.omitScoring,t.isPreview,"practice",{assessmentAdmin:"practiceassessments",questionnaireAdmin:"learnassessments-questionnaires/Practice/questionnaires",hasQuestionSets:!1},t.practiceAssessmentType==="certification",t.snapshotVersion);let r=new IE(o,t.assessmentId,t.skipVerification,t.showAllQuestions,t.snapshotVersion,n,t.omitScoring,t.isPreview),s=l=>{l.returnValue=""},i=()=>{VFe(o.snapshot.renewalAssessmentUid),se.removeEventListener("unload",i)};r.subscribe(Ip,()=>{tr({title:o.snapshot.certificationName||Ds,url:Uv(o.snapshot.certificationUid,o.contentSource.url)})}),r.subscribe(He,()=>{switch(r.viewState){case"Testing":case"Scoring":case"Success":case"Error":se.removeEventListener("beforeunload",s),se.removeEventListener("unload",i);break;default:break}r.viewState==="Success"?r7(r.assessmentId,o.scoredSnapshot.passed,r.assessmentTime):r.viewState==="Failed"&&(r7(r.assessmentId,o.scoredSnapshot.passed,r.assessmentTime),location.href=Vt({assessmentType:o.type,pageType:2,credentialId:o.snapshot.certificationUid,credentialPathname:o.contentSource.url,query:{assessmentId:r.assessmentId,assessmentid:r.assessmentId,"practice-assessment-type":t.practiceAssessmentType??"exam",snapshotId:o.scoredSnapshot.snapshotId}}))});let a=GFe.create();a.bind(r,dn),e.innerHTML="",e.setAttribute("aria-live","polite"),e.setAttribute("aria-busy","false"),a.appendTo(e);try{r.initializeAssessment()}catch(l){o7(l,o,t.certificationId)}};var s7=class{constructor(t){this.assessmentId=t.scoredSnapshot.renewalAssessmentUid,this.correctPercent=t.scoredSnapshot.correctPercent,this.credentialExpiresOn=t.scoredSnapshot.certificationExpiration,this.eligibleToRenewByDate=t.scoredSnapshot.eligibleToRenewByDate?new Date(t.scoredSnapshot.eligibleToRenewByDate):void 0,this.credentialIcon=t.scoredSnapshot.certificationIcon,this.credentialId=t.scoredSnapshot.certificationUid,this.credentialName=t.scoredSnapshot.certificationName,this.credentialUrl=t.certificationUrl,this.isCurrentlyEligible=this.determineEligibility(t.scoredSnapshot),this.passed=t.scoredSnapshot.passed,this.passingPercent=t.scoredSnapshot.passingPercent,this.retakeEligibleOn=t.scoredSnapshot.snapshotRetakeEligibleDate,this.scoredOn=t.scoredSnapshot.scoredAt,this.scores=t.scoredSnapshot.questionnaireScores,this.studyGuide=t.scoredSnapshot.studyGuide,this.titleDate=KE.replace("{date}",aa(t.scoredSnapshot.certificationExpiration))}determineEligibility({snapshotRetakeEligibleDate:t,eligibleToRenewByDate:n,eligibleForRecertification:o}){return o&&new Date().getTime()>=t.getTime()&&!!n&&new Date().getTime()Vt({credentialId:e,assessmentType:"renewal",pageType:1,credentialPathname:n,query:{assessmentId:t}}),detailsPageUrl:(e,t,n)=>Vt({credentialId:e,assessmentType:"renewal",pageType:0,credentialPathname:n,query:{assessmentId:t}}),profileDetailPageUrl:An("me","certifications"),profileOverviewPageUrl:An(v.userName),browsePageUrl:`/${b.data.userLocale}/certifications`}},loadedContext:{reportSummary:{passed:{title:e=>tA.replace("{certificationName}",e||Ds),imgSrc:e=>e||"/en-us/media/learn/certification/badges/microsoft-certified-associate-badge.svg?branch=main",titleDate:e=>e,dateMsg:`${$ee} ${Bj}`,profilePageBtnTxt:O2,supertitle:VE},failed:{detailsPageBtnTxt:Vj,eligibleTitle:Yj,eligibleMsg:e=>jj.replace("{date}",gn.format(e)),supertitle:Gj,title:e=>e||Ds}},reportScores:{scoresTitle:nA,scoreType:1},reportStudyGuide:{guideType:1,studyGuideCollectionFormTitle:dj,studyGuideItemsTitle:ZE}},errorContext:{reportError:e=>({NotFoundError:{title:Ns,msg:Wj,primaryButton:{text:Zj,url:`/${b.data.userLocale}/credentials`},secondaryButton:{text:O2,url:An(v.userName)}}})}};var WFe=async e=>{if(await fe,L.accessLevel!=="local"&&!v.isAuthenticated){wn();return}let t=async o=>{o&&(document.title=Rv(o.credentialName??Ds,tA,"{certificationName}"),tr({title:o.credentialName||Ds,url:o.credentialUrl}))},n=zN.create();n.bind(new Ls({viewConfig:jFe,getAssessmentReport:YFe,afterActivated:t}),dn),await Te,n.appendTo(e)};M();M();ot();M();M();M();M();M();M();M();M();M();M();M();M();M();M();M();M();M();M();M();M();M();async function iUe(e){await Te.then(()=>{let r=A.querySelectorAll("#at-a-glance .browse-page-link");Mv({browsePageClassNodes:r,testContentPath:"/test/training/certifications/courses/browse/"})}),T$(e,2),ac(`${k("og:title")}`),cst();let t=await Qe.getStudyGuideList("course",k("uid")),n=t.items?.some(r=>r.data&&r.data.progress!=null&&r.data.progress>0)?Xee:Zee,o=A.querySelector('[data-bi-name="get-started-self-directed-learning"]');o&&(o.textContent=n),$u({addNextStepsEnrollment:!1,mainElement:e,getStudyGuide:()=>Promise.resolve(t)}),k("iltScheduling")==="true"&&v$(e)}function cst(){cc({wrapper:e=>d`
        ${e.children}
        `})}M();var aUe;var ust="4.9.4",Bco=`/static/third-party/onestream-player/shaka/${ust}/shaka-player.ui.min.js`;var dst="6.2.0",zco=`/static/third-party/onestream-player/mux-js/${dst}/mux.min.js`;var pst="0.4.0",Gco=`/static/third-party/onestream-player/onestream/0.4.0/one_stream_player-v${pst}.min.js`;function mst(){let e=new URL(location.href),t="#time=";if(e.hash?.includes(t)){let n=e.hash.substring(e.hash.indexOf(t)+t.length);return cy(n)}return cy("0s")}function gst(e){if(!location.hash.startsWith("#time=")||!aUe)return;let t=e.paused,n=mst();n>0&&n{let e=document.querySelector("video[data-shaka-player]");e!==void 0&&gst(e)});var muo=gu();ot();M();function lUe(e){Array.from(e.querySelectorAll(".related-certification-desc")).forEach(n=>{let o=d`${Kue}`;y(o,n)})}async function cUe(e){await Te,tr(),hst();let t=k("uid");if(!t)throw new Error("Content uid not found.");$u({addNextStepsEnrollment:!0,getStudyGuide:()=>Qe.getStudyGuideList("exam",t),mainElement:e}),WN(e);let n=await TE();JN(e,n),lUe(e),wE(e)}function hst(){cc({wrapper:e=>d`
        ${e.children}
        `})}M();var i7;function Wv(){return i7===void 0&&(i7=(async()=>Ze("form-advisor",{require:!0})?!0:S.formAdvisor&&await Bi("form-advisor"))()),i7}M();M();function d2(e){let t=[];for(let n=0;n{s||(o.hidden=!1)}))}}function yst(){return d` `}var a7;function Kv(){let e=fn("me","settings","interests");return e.search+=e.search?"&ref=learn":"?ref=learn",e.href}async function pUe(e){if(qv())await Tst();else{let t;t=document.getElementById("ms--cta-customize-path"),t||(t=document.querySelector('button[data-bi-name="learn-homepage-cta-customize"]')),t&&Wv().then(n=>{n||(t.classList.remove("is-hidden"),t.onclick=()=>{window.location.href=Kv()})}),xst()}vst(e)}function l7(e){let n=WG.filterCriteria;return v.isAuthenticated||(n=GV()||WG.filterCriteria),{locale:b.data.userLocale,filter:n,top:v.isAuthenticated?null:cE(e),terms:"",hideCompleted:!0,excludeUids:v.isAuthenticated?null:es("learn_item")}}async function vst(e=null){if(!S.contentBrowse)return;a7||(a7=d2({cardsCount:9}));let n="trending-grid",o="trending-section-header",r=document.getElementById(n);y(a7,r),r.setAttribute("aria-label",Xt);let s=document.getElementById(o);s.classList.add("has-loading-skeleton");let i="home";e===null&&(e=await Op(l7(i),i)),e.popularity&&(e.popularity=e.popularity.map(u=>(u.icon_url=qe(u.icon_url,"en-us"),u.url=qe(u.url,Be.userLocale),u))),e.newest&&(e.newest=e.newest.map(u=>(u.icon_url=qe(u.icon_url,"en-us"),u.url=qe(u.url,Be.userLocale),u))),v.isAuthenticated&&await dUe(e.newest,i,document.getElementById("featured-grid"));let a="zero-results-interests",l="browse-trending-link",c="#trending-title";if(r.removeAttribute("aria-label"),!e.popularity||!e.popularity.length){document.getElementById("edit-learning-preferences").classList.add("is-hidden"),document.getElementById(l).classList.add("is-hidden"),y("",r);let u=document.getElementById(a),p=u.querySelector("button");u.classList.contains("is-hidden")?(u.parentElement.querySelector(c).classList.remove("margin-bottom-none"),u.classList.remove("is-hidden")):p&&(p.onclick=null),y(wst(),u),u.querySelector("button").onclick=()=>window.location.href=Kv()}else{let u=document.getElementById(a),p=u.querySelector("button");p&&(p.onclick=null),y("",u),u.classList.add("is-hidden"),u.parentElement.querySelector(c).classList.add("margin-bottom-none"),mUe(),document.getElementById(l).classList.remove("is-hidden"),await dUe(e.popularity,i,document.getElementById(n));let m=EE();Sst(m),jn(document.querySelector("#main"))}s.classList.remove("has-loading-skeleton")}function xst(){let e;e=document.getElementById("ms--cta-browse-all-paths"),e||(e=document.querySelector('[data-bi-name="learn-homepage-cta-browse"]')),e&&e.classList.remove("is-hidden")}async function Tst(e){e==="onboard"&&(window.location.href=Kv());let t;t=document.getElementById("ms--cta-customize-path"),t||(t=document.querySelector('button[data-bi-name="learn-homepage-cta-customize"]')),t&&(t.onclick=null,t.remove());let n;n=document.getElementById("ms--cta-browse-all-paths"),n||(n=document.querySelector('[data-bi-name="learn-homepage-cta-browse"]')),n&&n.classList.remove("is-hidden"),mUe()}function mUe(){if(!qv())return;let e=document.getElementById("edit-learning-preferences");e.classList.contains("is-hidden")&&(e.classList.remove("is-hidden"),e.onclick=()=>{window.location.href=Kv()})}function wst(){return d` ${Qce} `}async function dUe(e,t,n){n&&y(d`${zf({items:e,browseType:t})}`,n)}function Sst(e){if(!e)return;let t=document.getElementById("browse-trending-link"),n=document.getElementById("trending-title");!t||!n||(n.innerText=mbe,t.href=`browse/?${V({roles:e.roles,levels:e.levels,products:e.products})}`,t.querySelector("#browse-trending-link-text").innerText=Bie)}M();var gUe=null;function fUe(e){gUe=e.innerHTML}function hUe(e){if(!v.isAuthenticated)return;e.classList.remove("is-medium"),e.innerHTML=gUe;let t=document.getElementById("next-steps-section");t.parentElement.removeChild(t)}function c7(e){let t=document.getElementById(e);t!==null&&t.classList.add("is-hidden")}function _Ue(e){fUe(e);let t=e.querySelector("#hero-title");t.textContent=Uk.replace("{user}",v.displayName)}function yUe(){let e=document.createElement("div");e.setAttribute("id","next-steps-section"),Cst(e);let t=document.getElementById("featured-section"),n=document.getElementById("resources-section"),o=document.getElementById("trending-section"),r=document.createElement("h2");r.textContent=mde,r.classList.add("title","is-2","has-text-centered"),n.childNodes[1].insertBefore(r,n.childNodes[1].firstChild),n.childNodes[1].classList.add("padding-bottom-lg"),n.parentNode.removeChild(n),t.parentNode.appendChild(n);let s=document.getElementById("personalized-plan-section"),i=s||o;o.parentNode.insertBefore(e,i)}function u7(e){let t=document.getElementById("next-steps-section"),n=Est(e);vUe(n,t),uUe(t)}function Cst(e){vUe(d2({cardsCount:3}),e)}function Est(e){return e.map(t=>Ast(t))}function Ast(e){e.link=qe(e.link,Be.userLocale),e.subLink&&(e.subLink=qe(e.subLink,Be.userLocale));let t=l=>{if(!l.progress)return"";if(l.progress<100){let c=`${l.progress}%`;return d`${c}`}return d` ${Kn} `},n=l=>{if(l.progress===100&&bUe(l))return kst(l);let c=l.subLink?.indexOf("/learn/modules/")>-1||l.subLink?.indexOf("/training/modules/")>-1;return l.subTitle?d`

        ${c?Ice:kce} ${l.subLink?d`${l.subTitle}`:l.subTitle}

        `:""},o=e.subLink?e.subLink:e.link,r=async l=>{let c=l.target;c.classList.add("is-loading");try{await u1e(e.id,e.source);let u=await C$(Be.userLocale);u7(u)}finally{c.classList.remove("is-loading")}},s;switch(e.source){case"editorial":s="learn-homepage-contextual-editorial";break;case"enrollment":s="learn-homepage-contextual-nextmodule";break;case"inProgress":s="learn-homepage-contextual-inprogress";break;default:s="";break}let i=l=>{let c="";switch(l){case"learningpath":c=al;break;case"Collection":c=or;break;case"Challenge":c=jr;break;case"module":c=wo;break;case"certification":c=Sc;break;case"exam":c=hr;break;default:break}return c},a=l=>bUe(l)&&l.progress===100?$ae:l.progress?ju:bn;return d`
      • `}function kst(e){return d`

        ${e.type==="certification"?d`${q(tie.replace("{exam}",`${e.subTitle}`))}`:nie}

        `}function vUe(e,t){let n=EE(),o=qe("/training/browse/",Be.userLocale);n&&(o=qe(`/training/browse/?${V({roles:n.roles,levels:n.levels,products:n.products})}`,Be.userLocale));let r=gl(),s=d`

        ${Cge}

          ${e}
        `;y(s,t)}function bUe(e){return e.type==="certification"||e.type==="exam"}M();async function TUe(e){await fe;let t=A.querySelector(".hero");v.isAuthenticated&&(xUe(),_Ue(t),yUe());let n=A.getElementById("personalized-plan-section");n&&Wv().then(o=>{o&&(n.hidden=!1)});try{let o="home",[,r,s,i]=await Promise.all([v.isAuthenticated?uu():Promise.resolve(),v.isAuthenticated?C$(Be.userLocale):Promise.resolve([]),S.contentBrowse?Op(l7(o),o):Promise.resolve({}),v.isAuthenticated||!A.getElementById("featured-section")?Promise.resolve([]):NN()]);v.isAuthenticated&&Ist({cards:r,container:e}),await pUe(s),xUe(),F$e(i)}catch{hUe(t),c7("trending-section"),c7("featured-section")}}function xUe(){let e=A.getElementById("trending-section");if(!S.contentBrowse){e.hidden=!0;return}if(!v.isAuthenticated)return;let t=A.getElementById("hero-title");y(d` ${Uk.replace("{user}",`${v.displayName}`)}`,t),A.getElementById("featured-section").setAttribute("data-bi-name","learn-homepage-new"),e.setAttribute("data-bi-name","learn-homepage-personalized-trending")}function Ist(e){u7(e.cards),Pst(e.container)}function Pst(e){let t=e.querySelector("#learn-more-sections");if(t===null)return;let n=e.querySelector("#resources-section");n!==null&&(t.hidden=!0,n.hidden=!1)}ot();M();async function wUe(e){let t=new Uo("Commerce.Docs.LearnProgress_ModuleCompletion_AccessModule");t.start();let n=new Uo("Commerce.Docs.LearnProgress_ModuleCompletion_ContinueModule"),o=k("uid"),r=b.data.userLocale;return fe.then(async()=>{v.isAuthenticated&&n.start()}),t?.updateProgress("Syncing user progress"),await Ru(t),await lc(),t?.updateProgress("Fetching module with progress"),Promise.all([Lst(o,[t,n]),Te]).then(([s])=>{t?.updateProgress("Fetched module with progress");let i=Array.from(e.querySelectorAll(".xp-tag")),a=s.remainingTime!==null&&s.remainingTime!==void 0&&s.remainingTime!==0,l=a?s.remainingTime:s.durationInMinutes,c=e.querySelector(".module-duration-minutes"),u=e.querySelector("#unit-list"),p=e.querySelector("#parent-learning-paths");Ust(s),ac(s.title,s),yv(i,[s,...s.units],s.uid),Mst(c,l,a),Dst(u,s.units),t.succeed(),Rst(p,s.parents),x$(s.exams,!1),v.isAuthenticated||Lu(e.querySelector("#module-actions"),`/${r}${s.units[0].url}`,bn,"start"),v.whenAuthenticated().then(async()=>{if(gv(),s.status==="notStarted"||s.status===void 0)Lu(e.querySelector("#module-actions"),`/${r}${s.units[0].url}`,bn,"start");else{let m=_v(s.units);vv(m);let g=0;if(s.status==="inProgress"){let f=!1;for(let _ of s.units)_.status!=="completed"?f||(Lu(e.querySelector("#module-actions"),`/${r}${_.url}`,rr,"continue"),f=!0):g++}else YC(!0);g>0&&g!==m.length&&$st(e.querySelector(".module-unit-count"),g,m.length)}n.succeed()}),w$([s])})}function Lst(e,t){if(!v.isAuthenticated){let n=t[0];return j9(b.data.userLocale,e,n)}return Nst(e,t)}function Rst(e,t){let n=t.sort((r,s)=>r.title.localeCompare(s.title,b.data.userLocale)),o=r=>`

        ${Jue}

        `;t.length>0?e.innerHTML=o(n):e.innerHTML=""}function Mst(e,t,n=!1){let o=n?` ${kh}`:"";e.innerHTML=`${tn(t)}${o}`}function Dst(e,t){t.forEach(n=>{let o=e.querySelector(`li[data-unit-uid="${n.uid}"] .unit-duration`);o&&(o.textContent=tn(n.durationInMinutes))})}function $st(e,t,n){e.innerHTML=UA.replace("{completedCount}",t.toString()).replace("{totalCount}",n.toString())}function Nst(e,t){let[n,o]=t;return Promise.all([j9(b.data.userLocale,e,n),fi([e],o)]).then(([r,s])=>iG(r,s))}function Fst(e,t,n,o){let r=t&&t.uid.includes("knowledge-check")||e&&e.uid.includes("knowledge-check");return!n||!o?r:n.module_assessment||o.module_assessment||r}async function Ust(e){await Te;let t=!1,n=e.units[e.units.length-2],o=e.units[e.units.length-1],r=null,s=null;try{[r,s]=await Promise.all([K9(b.data.userLocale,n.uid),K9(b.data.userLocale,o.uid)])}catch{}if(t=Fst(o,n,s,r),!t)return;let i=fe.then(()=>v.isAuthenticated?XD(k("uid")).catch():null);Ost(i),qst(e,i)}function Ost(e){let t=document.getElementById("module-pass-tag-container");t&&(y(d`${function(){let o="",r=()=>o;return zn(fe.then(()=>v.isAuthenticated?iv({checkIsPassed:async()=>e.then(s=>s.moduleAssessmentPassed)}):o).catch(r),o)}()}`,t),t.hidden=!1)}function qst(e,t){let n=document.getElementById("module-attempts-container-v2");if(!n)return;let o=d`

        ${Mle}

        ${Qle}

        ${cce} ${function(){let s="",i=()=>s;return zn(fe.then(()=>v.isAuthenticated?function(){let l=c=>c.moduleAssessmentPreviousAttempts.length?p2e({additionalClasses:"margin-top-sm",attempts:c.moduleAssessmentPreviousAttempts.map(u=>{let p=u.passCriteria;return{session:{date:u.sessionEndDate,passingPercent:p,status:u.questionsAnsweredCorrectly>=u.questionsToPass?"Pass":"Fail",totalCorrectCount:u.questionsAnsweredCorrectly,totalQuestionCount:u.questionsToTake},showPassOnly:!0,showCorrectPercentOnly:!0}}),title:FQ}):s;return zn(t.then(l).catch(i),s)}():s).catch(i),s)}()} `;y(o,n),n.classList.remove("has-loading-skeleton"),n.ariaHidden="false",n.hidden=!1}M();var Jv=class{constructor(t,n){this.assessmentExamUrl=n.url,this.assessmentPageUrl=Vt({credentialId:n.uid,assessmentType:"practice",credentialPathname:n.url,pageType:1,query:{assessmentId:t.assessmentId}})}};z([j],Jv.prototype,"assessmentExamUrl",2),z([j],Jv.prototype,"assessmentPageUrl",2);var SUe=K` `;var Xv=class{constructor(){this.error=!1}setData(t){this.items=t,this.error=!1}setError(){this.error=!0}};z([j],Xv.prototype,"items",2),z([j],Xv.prototype,"error",2);var CUe=K`
        `;var Za=class{constructor(t){this.id=t.id,this.value=t.value,this.min=t.min,this.max=t.max,this.low=t.low,this.high=t.high,this.optimum=t.optimum,this.label=t.label}};z([Br],Za.prototype,"id",2),z([Br],Za.prototype,"value",2),z([Br],Za.prototype,"min",2),z([Br],Za.prototype,"max",2),z([Br],Za.prototype,"low",2),z([Br],Za.prototype,"high",2),z([Br],Za.prototype,"optimum",2),z([j],Za.prototype,"label",2);var EUe=K`
        `,Tc=class{constructor(t){this.correctPercent=ln(t.correctAnswerCount,t.questionsToTake),this.passingPercent=ln(t.questionsToPass,t.questionsToTake),this.createMeters(t),this.sessionUid=t.sessionUid,this.assessmentId=t.assessmentId}async showAnswerSummary(){let t=document.createElement("div");t.classList.add("modal-content","margin-none","width-full"),t.style.maxWidth="100%",t.tabIndex=-1,t.ariaRoleDescription="dialog",t.setAttribute("aria-modal","true"),t.setAttribute("aria-describedby","answerSummary"),this.answerSummary=new Xv;let n=CUe.create();if(n.bind(this.answerSummary,dn),n.appendTo(t),new ge(t).show(),!this.answerSummary.items)try{let r=Ba,s=await j2e(this.assessmentId,this.sessionUid,b.data.userLocale);s.forEach(i=>{let a=r.render(i.question.text),l=r.render(i.question.rationale);i.question.textHtml=i.question.textHtml||a,i.question.text=a,i.question.rationaleHtml=i.question.rationaleHtml||l,i.question.rationale=l,i.correctChoice.forEach(c=>{let u=r.renderInline(c.text);c.textHtml=c.textHtml||u,c.text=u}),i.userChoice.forEach(c=>{let u=r.renderInline(c.text);c.textHtml=c.textHtml||u,c.text=u})}),this.answerSummary.setData(s)}catch{this.answerSummary.setError()}}createMeter({id:t,correctPercent:n,passingPercent:o,label:r}){return new Za({id:t,value:n,max:100,min:0,low:o,high:100,optimum:o,label:r})}createMeters(t){this.overallMeter=this.createMeter({id:_t(),correctPercent:this.correctPercent,passingPercent:this.passingPercent,label:`${Pie}`.replace("{percent}",this.correctPercent.toString())}),this.questionnaireScores=[],this.questionnaireScores=t.scoredQuestionnaires.map(n=>this.createMeter({id:_t(),correctPercent:ln(n.correctAnswerCount,n.questionsToTake),passingPercent:ln(n.questionsToPass,n.questionsToTake),label:n.questionnaireTitle}))}};z([j],Tc.prototype,"scoredAt",2),z([j],Tc.prototype,"questionnaireScores",2),z([j],Tc.prototype,"overallMeter",2),z([j],Tc.prototype,"correctPercent",2),z([j],Tc.prototype,"passingPercent",2),z([j],Tc.prototype,"answerSummary",2);var AUe=K`

        ${kie}

        ${e=>`${Iie}`.replace("{percent}",e.passingPercent.toString())}

        ${cn(e=>e.overallMeter,EUe)}

        ${nA}

        ${Lie}

        ${pn(e=>e.questionnaireScores,EUe)}
        `;var p2=class{constructor(t){this.title=t.title,this.durationInMinutes=t.durationInMinutes}};z([j],p2.prototype,"title",2),z([j],p2.prototype,"durationInMinutes",2);var m2=class{constructor(t){this.title=t.title,this.studyGuides=t.studyGuides}};z([j],m2.prototype,"title",2),z([j],m2.prototype,"studyGuides",2);var Uu=class{constructor(t,n){this.studyGuide=t.studyGuide,this.hasStudyGuideItems=t.studyGuide?.items.length>0,this.questionnaires=t.studyGuidesByFailedQuestionnaires,this.examUrl=n.url,this.viewState=this.getViewState(t.scoredQuestionnaires,this.hasStudyGuideItems)}getViewState(t,n){return t.every(r=>r.questionnaireStatus==="Pass")?"Passed":"Failed"}};z([j],Uu.prototype,"examUrl",2),z([j],Uu.prototype,"hasStudyGuideItems",2),z([j],Uu.prototype,"questionnaires",2),z([j],Uu.prototype,"studyGuide",2),z([j],Uu.prototype,"viewState",2);var Hst=K`
      • `,Bst=K`

        ${e=>eA.replace("{section}",e.title)}

          ${pn(e=>e.studyGuides,Hst)}
        `,zst=K`
        ${wie}
        ${PF} `,Gst=K` ${pn(e=>e.questionnaires,Bst)} `,Vst=K`
        ${Tie}
        ${PF} `,kUe=K`

        ${ZE}

        ${Pe(e=>e.viewState==="Expired",zst)} ${Pe(e=>e.viewState==="Failed",Gst)} ${Pe(e=>e.viewState==="Passed",Vst)}
        `;var Jf=class{constructor(t){this.assessmentTitle=t.title,this.assessmentDate=t.userSessionDate,this.assessmentDuration=Math.max(1,t.userSessionDurationMin)}};z([j],Jf.prototype,"assessmentTitle",2),z([j],Jf.prototype,"assessmentDate",2),z([j],Jf.prototype,"assessmentDuration",2);var IUe=K`

        ${e=>`${Aie}`.replace("{date}",qCe().format(new Date(e.assessmentDate)))}

        ${e=>e.assessmentTitle}

        ${e=>`${Eie}`.replace("{duration}",e.assessmentDuration.toString())}

        `;var Bp=class{constructor(t,n){this.reportSummary=new Jf(t),this.reportScores=new Tc(t),this.reportCallToAction=new Jv(t,n),this.reportStudyGuide=new Uu(t,n)}};z([j],Bp.prototype,"reportSummary",2),z([j],Bp.prototype,"reportScores",2),z([j],Bp.prototype,"reportCallToAction",2),z([j],Bp.prototype,"reportStudyGuide",2);var PUe=K` ${cn(e=>e.reportSummary,IUe)} ${cn(e=>e.reportScores,AUe)} ${cn(e=>e.reportCallToAction,SUe)} ${cn(e=>e.reportStudyGuide,kUe)} `;var LUe=K`

        ${Ns}

        ${Die}

        `;var Qst=async()=>{let e=new URL(location.href),t=n=>e.searchParams.get(n);return{snapshotId:t("snapshotId"),assessmentId:await async function(){let n,o=k("sourceContentUid");if(o)try{n=(await Qe.getListsItems([o]))[0]?.[e.searchParams.get("assessment-type")==="practice"?"practiceAssessmentUid":"assessmentId"]}catch{}return n??t("assessmentId")??null}(),practiceAssessmentType:t("practice-assessment-type")}},RUe=async e=>{if(await fe,L.accessLevel!=="local"&&!v.isAuthenticated){wn();return}let t=await Qst(),n;try{let o=await jN(t.assessmentId,t.snapshotId,b.data.userLocale),r=t.practiceAssessmentType==="certification";r&&(o.examId=FN());let s=await(r?Ki:pv)(o.examId);n=PUe.create(),n.bind(new Bp(o,s),dn),await Te,A.title=Yst(),tr({title:s.title,url:s.url})}catch{n=LUe.create()}n.appendTo(e)};function Yst(e=A.title){let t=e.split("|").pop();return`${Cie} | ${t}`}M();M();ot();M();ot();M();M();var rfo={like:{[bge]:"01-ai-positive-accurate-relevant",[_ge]:"02-ai-positive-complete-clear",[yge]:"03-ai-positive-fast",[_U]:"00-ai-positive-other"},dislike:{[vge]:"01-ai-negative-inaccurate-irrelevant",[xge]:"02-ai-negative-incomplete-unclear",[wge]:"03-ai-negative-slow",[Tge]:"04-ai-negative-offensive-inappropriate",[_U]:"00-ai-negative-other"}};var Wst=25,Kst=1/29*1e3,qfo=10*1e3,Jst=9,Hfo=Wst/Jst/(1/(Kst/1e3));ot();M();function Xst(e){async function t(n){let[o]=await Promise.all([MUe(n,e,!1),fe]);o.count===0&&([o]=await Promise.all([MUe(n,e,!0),fe]),o.count!==0&&(o.isFuzzySearch=!0));for(let r of o.results)r.url&&(r.url=qe(r.url,Be.userLocale));return o}return t}function MUe(e,t,n){let o={...Zst(e,t),fuzzySearch:n},r=k("uid");if(!r)throw{error:"Event UID not found"};let s=t.url(r,o);return R(N(s,{method:"GET"})).then(a=>{if(a.ok)return a.json();throw{error:a.json()}})}function Zst(e,t){return{branch:St()??"",locale:b.data.userLocale,terms:e.terms,facet:t.facet,$filter:gc(e.selectedFacets),$orderBy:t.orderBy,$skip:e.skip?e.skip.toString():"",$top:e.top?e.top.toString():""}}var eit={orderBy:k("type")==="series"?"upload_date asc":"upload_date desc",searchResultsShouldUseOrderBy:!0,facet:["products","levels","roles","languages"],url:(e,t)=>`${D.browse.shows}/${e}/episodes?${V(t,!0)}`},Zho=Xst(eit);var sbo=[{factor:1e3,singular:cY,plural:rge},{factor:1e3*60,singular:hQ,plural:Rle},{factor:1e3*60*60,singular:_Q,plural:Gae},{factor:1e3*60*60*24,singular:mQ,plural:Fse},{factor:1e3*60*60*24*7,singular:dY,plural:dbe},{factor:1e3*60*60*24*27,singular:bQ,plural:Ace}];async function DUe(){let e=document.getElementById("welcome-search-form-replacement");t9(e,"welcome-page-search-form","facet-search-input","home"),tit()}function tit(){let e={"@context":"https://schema.org","@type":"WebSite",url:`${location.origin}/${b.data.userLocale}/`,potentialAction:{"@type":"SearchAction",target:{"@type":"EntryPoint",urlTemplate:`${location.origin}/${b.data.userLocale}/search/?terms={search_term_string}&source=sitelinks_searchbox`},"query-input":"required name=search_term_string"}},t=document.createElement("script");t.setAttribute("type","application/ld+json"),t.textContent=JSON.stringify(e),document.head.appendChild(t)}function d7(){let e=b.data.pageTemplate;switch(e){case"AchievementDetail":r2e();break;case"CareerPath":z2e();break;case"Challenge":c$e();break;case"SkillingPlans":p$e();break;case"ModuleUnit":n2e();break;case"TopicLanding":U$e();break;case"Welcome":DUe();break}let t=A.getElementById("main");if(t)switch(e){case"AppliedSkills":y2e(t);break;case"AppliedSkillsAssessment":I2e(t);break;case"AppliedSkillsAssessmentReport":B2e(t);break;case"Module":wUe(t);break;case"LearningPath":y1e(t);break;case"Certification":cFe(t);break;case"Examination":cUe(t);break;case"Course":iUe(t);break;case"LearnHome":TUe(t);break;case"CertificationRenewal":PFe(t);break;case"CertificationRenewalAssessment":case"PracticeAssessment":QFe(t);break;case"CertificationRenewalAssessmentReport":WFe(t);break;case"PracticeAssessmentReport":RUe(t);break}}async function $Ue(){nit(),se.addEventListener("click",e=>{e.target instanceof Element&&e.target.closest("[data-print-page]")&&(b.data.isPermissioned?wC(gue,fue):se.print())})}function nit(){let e=[],t=[],n;se.addEventListener("beforeprint",()=>{if(n=A.querySelectorAll("div.content"),!(!n||n.length===0))for(let o of n){let r=Array.from(o.querySelectorAll("details:not([open])"));for(let i of r)i.open=!0,e.push(i);let s=Array.from(o.querySelectorAll(':not(a) > img[src$=".gif"]'));for(let i of s){let a=A.createElement("a");a.href=i.src,i.replaceWith(a),a.append(i),t.push(i)}}}),se.addEventListener("afterprint",()=>{!n||n.length===0||(e.forEach(o=>o.open=!1),e=[],t.forEach(o=>{o.parentElement&&o.parentElement.replaceWith(o)}),t=[])})}function NUe(){oit("msdn-samples")&&Gt(jse.replace("{url}","https://docs.microsoft.com/samples"),{url:"'https://docs.microsoft.com/teamblog/msdn-code-gallery-retired",text:Kr})}function oit(e){let t=me().redirectedfrom;return t===void 0?!1:t.toLowerCase()===e}var p7=class{constructor(t,n,o){this.li=t;this.a=n;this.section=o}get tabIds(){return this.a.getAttribute("data-tab").split(" ")}get condition(){return this.a.getAttribute("data-condition")}get visible(){return!this.li.hasAttribute("hidden")}set visible(t){t?(this.li.removeAttribute("hidden"),this.li.removeAttribute("aria-hidden")):(this.li.setAttribute("hidden","hidden"),this.li.setAttribute("aria-hidden","true"))}get selected(){return!this.section.hasAttribute("hidden")}set selected(t){t?(this.a.setAttribute("aria-selected","true"),this.a.tabIndex=0,this.section.removeAttribute("hidden"),this.section.removeAttribute("aria-hidden")):(this.a.setAttribute("aria-selected","false"),this.a.tabIndex=-1,this.section.setAttribute("hidden","hidden"),this.section.setAttribute("aria-hidden","true"))}focus(){this.a.focus()}};function FUe(e,t){let n=!1,o,r;for(let s of e.tabs)s.visible=s.condition===null||t.selectedTabs.indexOf(s.condition)!==-1,s.visible&&(r||(r=s),!o&&s.tabIds[0]===(l1||XS)&&(o=s)),s.selected=s.visible&&m7(t.selectedTabs,s.tabIds),n=n||s.selected;if(!n){for(let{tabIds:i}of e.tabs)for(let a of i){let l=t.selectedTabs.indexOf(a);l!==-1&&t.selectedTabs.splice(l,1)}let s=o||r;s.selected=!0,t.selectedTabs.push(s.tabIds[0])}}function rit(e){let t={independent:e.hasAttribute("data-tab-group-independent"),tabs:[]},n=e.firstElementChild.firstElementChild;for(;n;){let o=n.firstElementChild;o.setAttribute(Lo.name,"tab");let r=o.getAttribute("data-tab").replace(/\+/g," ");o.setAttribute("data-tab",r);let s=o.getAttribute("aria-controls"),i=e.querySelector(`[id="${s}"],[data-id="${s}"]`),a=new p7(n,o,i);t.tabs.push(a),n=n.nextElementSibling}return e.setAttribute(Lo.name,"tab-group"),e.tabGroup=t,t}function g7(e){let t=lit(),n=e.querySelectorAll(".tabGroup"),o={groups:[],selectedTabs:[]};for(let l=0;lsit(l,o),s=l=>iit(l);e.addEventListener("click",r),e.addEventListener("keydown",s);let i=()=>{e.removeEventListener("click",r),e.removeEventListener("keydown",s)},a=ct.subscribe(Cn,()=>{i(),a(),g7(A.body)});return o.groups.length===0||(ait(t,e),OUe(o),Zt()),o}function UUe(e){if(!(e.target instanceof HTMLElement))return null;let t=e.target.closest("a[data-tab]");if(t===null)return null;let n=t.getAttribute("data-tab").split(" "),o=t.parentElement.parentElement.parentElement.tabGroup;return o===void 0?null:{tabIds:n,group:o,anchor:t}}function sit(e,t){let n=UUe(e);if(n===null)return;e.preventDefault(),n.anchor.href="http://approjects.co.za/?big=javascript:",setTimeout(()=>n.anchor.href="http://approjects.co.za/?big=#"+n.anchor.getAttribute("aria-controls"));let{tabIds:o,group:r}=n,s=n.anchor.getBoundingClientRect().top;if(r.independent)for(let a of r.tabs)a.selected=m7(a.tabIds,o);else{if(m7(t.selectedTabs,o))return;let a=r.tabs.filter(l=>l.selected)[0].tabIds[0];t.selectedTabs.splice(t.selectedTabs.indexOf(a),1,o[0]);for(let l of t.groups)FUe(l,t);OUe(t)}Zt(),JS(o[0])&&c1(o[0]);let i=n.anchor.getBoundingClientRect().top;i!==s&&e instanceof MouseEvent&&se.scrollTo(0,se.pageYOffset+i-s)}function iit(e){let t=UUe(e);if(t===null)return;let{tabIds:n,group:o}=t,r=e.which;if(!e.altKey&&(r===et.left||r===et.right||r===et.home||r===et.end)){e.preventDefault();let s=r===et.left||r===et.home,i;if(e.ctrlKey||r===et.home||r===et.end){let a=s?1:-1;for(i=s?0:o.tabs.length-1;!o.tabs[i].visible;)i+=a}else{let a=s?-1:1;for(i=s?o.tabs.length-1:0;o.tabs[i].tabIds[0]!==n[0]||!o.tabs[i].visible;)i+=a;do i+=a,i===-1?i=o.tabs.length-1:i===o.tabs.length&&(i=0);while(!o.tabs[i].visible)}o.tabs[i].focus();return}}function ait(e,t){for(let n of e){let o=t.querySelector(`.tabGroup > ul > li > a[data-tab="${n}"]:not([hidden])`);if(o===null)return;o.dispatchEvent(new CustomEvent("click",{bubbles:!0}))}}function lit(){let t=me().tabs;return t===void 0||t===""?[]:t.split(",")}function OUe(e){let t=me();t.tabs=e.selectedTabs.join();let n=`${oe.protocol}//${oe.host}${oe.pathname}?${V(t)}${oe.hash}`;oe.href!==n&&Bn.replaceState({},A.title,n)}function m7(e,t){for(let n of e)for(let o of t)if(n===o)return!0;return!1}var g2=class extends HTMLElement{constructor(){super();this.overflowClassToggle=["breadcrumbs-initial-slash"];this.collapseSelector="[data-bread-crumbs-collapse-target]"}attributeChangedCallback(n,o){n!==o&&this.updateContent()}disconnectedCallback(){this.resizeObserver?.disconnect()}connectedCallback(){uit(this),Te.then(()=>{this.updateContent();let n=0;this.resizeObserver=new ResizeObserver(o=>{cancelAnimationFrame(n),n=requestAnimationFrame(()=>{!Array.isArray(o)||!o.length||this.updateContent()})}),this.resizeObserver.observe(this)})}get collapsableElements(){return Array.from(this.querySelectorAll(this.collapseSelector))}get elementShownOnCollapse(){if(!this.showOnCollapse){if(!this.id)throw new Error("An invalid selector was used to try and select an overflow element. Did you include an id on your element?");let n=`[data-for="${this.id}"]`,o=document.querySelector(n);if(!o)throw new Error(`Could not find element with selector "${n}". Make sure the overflow element exists.`);this.showOnCollapse=o}return this.showOnCollapse}get overflowClassElement(){return this.querySelector(".breadcrumbs")}updateContent(){if(!this.isConnected)return;for(let r of this.collapsableElements)r.hidden=!1;this.elementShownOnCollapse&&(qUe(this.elementShownOnCollapse,"remove",this.overflowClassToggle),this.elementShownOnCollapse.hidden=!1),HUe(this.collapsableElements[this.collapsableElements.length-1],!0);let o=dit(this,this.collapsableElements,this.elementShownOnCollapse)?"add":"remove";qUe(this.overflowClassElement,o,this.overflowClassToggle)}};window.customElements.get("bread-crumbs")||(window.BreadCrumbsElement=g2,window.customElements.define("bread-crumbs",g2));function cit(e){return e.scrollWidth>e.clientWidth}function uit(e){e.style.display="block",e.style.whiteSpace="nowrap",e.style.overflow="hidden"}function dit(e,t=[],n){let o=!1;for(let[r,s]of t.entries()){if(r===t.length-1&&t.length!==1){HUe(s,!1);break}if(!cit(e))break;o=!0,s.hidden=!0}return n&&(n.hidden=!o),o}function HUe(e,t=!1){if(!e)return;let n=e.querySelector("a,span");if(n){if(t){e.style.cssText="",n&&(n.style.cssText="");return}e.style.display="inline-flex",e.style.minWidth="0",e.style.maxWidth="100%",n.style.minWidth="1ch",n.style.maxWidth="fit-content",n.style.overflow="hidden",n.style.textOverflow="ellipsis",n.style.whiteSpace="nowrap"}}function qUe(e,t,n){e?.classList[t](...n)}var BUe={date:gu,datetime:BCe,twoDigitNumeric:HCe},f2=class extends HTMLElement{static get observedAttributes(){return["datetime","timezone"]}get timeZone(){return this.getAttribute("timezone")||rf}get timeFormat(){return BUe[this.getAttribute("format")]||BUe.date}constructor(){super()}connectedCallback(){Te.then(()=>{this.updateContent(this.getAttribute("datetime"))})}attributeChangedCallback(t,n){t!==n&&this.updateContent(n)}updateContent(t){!this.isConnected||!t||(this.textContent=this.timeFormat(this.timeZone).format(new Date(t)),this.classList.remove("is-visually-hidden","is-invisible"))}};window.customElements.get("local-time")||(window.LocalTimeElement=f2,window.customElements.define("local-time",f2));var h2=class extends HTMLElement{constructor(){super();this.backOffset=0;this.frontOffset=0;this.nextHiddenIndex=null;this.style.display="block",this.style.overflow="hidden",this.style.width="100%",this.container=this.querySelector("[data-overflow-menu-container]"),this.nextButton=this.querySelector("button[data-overflow-menu-next-button]"),this.prevButton=this.querySelector("button[data-overflow-menu-prev-button]"),this.menuItems=Array.from(this.querySelectorAll("[data-overflow-menu-item]")).reverse()}connectedCallback(){if(this.container=this.querySelector("[data-overflow-menu-container]"),this.nextButton=this.querySelector("button[data-overflow-menu-next-button]"),this.prevButton=this.querySelector("button[data-overflow-menu-prev-button]"),this.menuItems=Array.from(this.querySelectorAll("[data-overflow-menu-item]")).reverse(),!this.container||!this.nextButton||!this.prevButton||this.menuItems.length<1)throw new Error(` requires all of the following: 1) A container with [data-overflow-menu-container] attribute, 2) A button with [data-overflow-menu-next] attribute, 3) A button with [data-overflow-menu-prev]. 4) Menu items with [data-overflow-menu-item] attribute. Did you include the correct attributes? We found: next: ${this.nextButton?"found":"not found"}, prev: ${this.prevButton?"found":"not found"}, container: ${this.container?"found":"not found"}, menuItemsCount: ${this.menuItems.length}`);if(this.menuItems.length>10)throw new Error(" should not be used for more than 10 items. Consider using a different pattern.");this.container.style.visibility="hidden",this.container.style.overflow="hidden";for(let r of this.menuItems)r.style.whiteSpace="nowrap";if(new ResizeObserver(()=>{requestAnimationFrame(()=>{this.backOffset=0,this.redraw()})}).observe(this),this.prevButton.onclick=()=>{this.backOffset--,this.redraw(),this.backOffset===0&&this.menuItems[this.menuItems.length-1].focus()},this.nextButton.onclick=()=>{this.backOffset=Math.max(this.backOffset+1,0),this.nextHiddenIndex=this.frontOffset-1,this.redraw(),this.frontOffset===0?this.menuItems[this.frontOffset].focus():this.nextButton.focus()},!(this.container.scrollWidth>this.container.clientWidth)){this.container.style.visibility="visible";return}this.redraw()}redraw(){this.container.style.visibility="hidden",this.menuItems.forEach(n=>{n.hidden=!1}),this.frontOffset=0;for(let n=this.backOffset;n>0;n--)this.menuItems[this.menuItems.length-n].hidden=!0;for(let n of this.menuItems){if(this.nextButton.hidden=this.frontOffset===0,this.prevButton.hidden=this.backOffset===0,!(this.container.scrollWidth>this.container.clientWidth)){let r=this.menuItems.findIndex(s=>s===n);this.nextHiddenIndex&&r!==0&&r{n.target instanceof Element&&n.type==="click"&&n.target.closest("button[aria-controls]")===this.controlButton&&this.togglePanel()};this.keyHandler=n=>{!this.panel||!this.controlButton||!this.panel.hidden&&n.key==="Escape"&&(this.togglePanel(),this.controlButton.focus())};this.togglePanel=()=>{!this.controlButton||!this.panel||(this.controlButton.setAttribute("aria-expanded",this.controlButton.getAttribute("aria-expanded")==="true"?"false":"true"),this.panel.hidden=!this.panel.hidden)};this.windowFocusClickHandler=n=>{!(n.target instanceof Element)||!this.controlButton||(n.type==="focus"||n.type==="click")&&!this.contains(n.target)&&this.controlButton.getAttribute("aria-expanded")==="true"&&this.togglePanel()}}connectedCallback(){if(this.controlButton=this.querySelector("button[aria-controls]"),!this.controlButton)throw new Error("A button with aria-controls attribute wasn't found. Did you include the correct attributes?");let n=this.controlButton.getAttribute("aria-controls");if(!n)throw new Error("panelId wasn't found. Verify control button's 'aria-controls' attribute.");if(n.indexOf(" ")>=0)throw new Error("controlButton controls several elements. While the [aria-controls] attribute may reference multiple elements, this behavior is not supported by the panel-controller. Verify control button's 'aria-controls' attribute refers to the only one panel within .");if(this.panel=this.querySelector(`#${n}`),!this.panel)throw new Error("panel wasn't found. Did you include the id on the panel container?");this.addEventListener("click",this.handleEvent),this.addEventListener("focus",this.handleEvent,!0),this.addEventListener("touchstart",this.handleEvent),this.addEventListener("keydown",this.keyHandler),se.addEventListener("focus",this.windowFocusClickHandler,!0),se.addEventListener("click",this.windowFocusClickHandler)}disconnectedCallback(){this.removeEventListener("click",this.handleEvent),this.removeEventListener("focus",this.handleEvent,!0),this.removeEventListener("touchstart",this.handleEvent),this.removeEventListener("keydown",this.keyHandler),se.removeEventListener("focus",this.windowFocusClickHandler,!0),se.removeEventListener("click",this.windowFocusClickHandler)}};se.customElements.get("panel-controller")||(se.PanelControllerElement=b2,se.customElements.define("panel-controller",b2));var _2=class extends HTMLElement{constructor(){super();this.buttonOpen=null;this.buttonClose=null;this.searchExpanderSiblingElements=void 0;this.expandableArea=null;this.searchInput=null;this.focusHandler=()=>{};this.keyHandler=n=>{n.key==="Escape"&&this.expandableArea&&this.buttonOpen&&this.buttonOpen.hidden===!0&&this.closeExpander(n)};this.openExpander=()=>{!this.expandableArea||!this.buttonOpen||!this.searchInput||(this.searchExpanderSiblingElements&&this.toggleSiblingsVisibility(),this.buttonOpen.toggleAttribute("hidden"),this.expandableArea.hidden=!1,Ye(se,"focus",this.focusHandler,!0),this.searchInput.focus())};this.closeExpander=n=>{!this.expandableArea||!this.buttonOpen||!this.buttonClose||(this.searchExpanderSiblingElements&&this.toggleSiblingsVisibility(),this.expandableArea.hidden=!0,this.buttonOpen.toggleAttribute("hidden"),se.removeEventListener("focus",this.focusHandler),n.target instanceof Element&&this.contains(n.target)&&this.buttonOpen.focus())};this.windowClickHandler=n=>{n.target instanceof Element&&n.type==="click"&&!this.contains(n.target)&&this.buttonOpen?.hidden&&(n.target.hasAttribute("data-search-expander-autocomplete-suggestion")||this.closeExpander(n))}}toggleSiblingsVisibility(){if(this.searchExpanderSiblingElements)for(let n of this.searchExpanderSiblingElements)n instanceof HTMLElement&&n!==this&&n.toggleAttribute("hidden")}connectedCallback(){if(this.buttonOpen=this.querySelector(":scope > button[data-search-expander-trigger-open]"),this.buttonClose=this.querySelector("button[data-search-expander-trigger-close]"),!this.buttonOpen||!this.buttonClose)throw new Error("Either open or close button wasn't found. Did you include the correct attributes?");let n=this.buttonOpen.getAttribute("aria-controls");if(!n||this.buttonClose.getAttribute("aria-controls")!==n)throw new Error("expandedAreaId wasn't found or doesn't match the close button's aria-controls attribute.");if(this.expandableArea=this.querySelector(`:scope > div#${n}`),!this.expandableArea)throw new Error("expandedArea wasn't found. Did you include the id on the expandable area?");if(this.focusHandler=GR(this.expandableArea),this.searchInput=this.expandableArea.querySelector('input[type="search"]'),!this.searchInput)throw new Error("Search input wasn't found.");this.searchExpanderSiblingElements=this.parentNode?.children,this.buttonOpen.addEventListener("click",this.openExpander),this.buttonClose.addEventListener("click",this.closeExpander),this.expandableArea.addEventListener("keydown",this.keyHandler),se.addEventListener("click",this.windowClickHandler)}disconnectedCallback(){!this.buttonOpen||!this.buttonClose||!this.expandableArea||(this.buttonOpen.removeEventListener("click",this.openExpander),this.buttonClose.removeEventListener("click",this.closeExpander),this.expandableArea.removeEventListener("keydown",this.keyHandler),se.removeEventListener("focus",this.focusHandler),se.removeEventListener("click",this.windowClickHandler))}};se.customElements.get("search-expander")||(se.SearchExpanderElement=_2,se.customElements.define("search-expander",_2));b.data.rtl=z$;b.data.cookieConsent=fxe;b.data.isArchived=ir();dLe();FEe();hLe();W0e();ENe();mxe(ct);RCe();R0e();K0e();rRe();Sxe();mEe();_xe();dD();vCe({siteHeaderRendered:nD});s5();ACe();YSe();$Ue();L0e();OEe();Te.then(async()=>{b.data.isPrivateUnauthorized&&_Re(),pPe(),T7(),mLe(),$6();let e=A.getElementById("main");Txe(),zIe(A.documentElement),pEe(),DS(),DC(e),$Ce(),NUe(),Vbe(),g7(A.body),uEe(b.data.contentLocale),F9(e),J0e(A.body),jn(A.body),Xf(A.body),S.supportsSharing?FD(A.body,location.origin+location.pathname+location.search,A.title):iMe(),b.data.pageTemplate!=="ModuleUnit"&&Gy(b.data.pageTemplate),d7(),fPe(),H8("reportIssue"),P6(),wCe(),l5(),_9(e),a5(),kCe(),dEe(),C7(),fu(e),n5(A.body),g9(),gRe(),nEe(),V8(),hRe(),t5(),j0e()});ct.subscribe(Cn,()=>{let e=A.getElementById("main");v6(b.data.userLocale),P6(),s5(),d7();let t=A.documentElement.classList.contains("layout")?A.querySelector(".layout-body-main"):A.querySelector("main");DS(t),l5(),a5(),n5(A.body),PC(A.body),jn(A.body),_9(e),g9(),V8(),t5()});})(); /*! * JavaScript Cookie v2.1.3 * https://github.comhttps://www.microsoft.com/js-cookiehttps://www.microsoft.com/js-cookie * * Copyright 2006, 2015 Klaus Hartl & Fagner Brack * Released under the MIT license */ /*! Bundled license information: lit-html/lib/directive.js: (** * @license * Copyright (c) 2017 The Polymer Project Authors. All rights reserved. * This code may only be used under the BSD style license found at * http://polymer.github.io/LICENSE.txt * The complete set of authors may be found at * http://polymer.github.io/AUTHORS.txt * The complete set of contributors may be found at * http://polymer.github.io/CONTRIBUTORS.txt * Code distributed by Google as part of the polymer project is also * subject to an additional IP rights grant found at * http://polymer.github.io/PATENTS.txt *) lit-html/lib/dom.js: (** * @license * Copyright (c) 2017 The Polymer Project Authors. All rights reserved. * This code may only be used under the BSD style license found at * http://polymer.github.io/LICENSE.txt * The complete set of authors may be found at * http://polymer.github.io/AUTHORS.txt * The complete set of contributors may be found at * http://polymer.github.io/CONTRIBUTORS.txt * Code distributed by Google as part of the polymer project is also * subject to an additional IP rights grant found at * http://polymer.github.io/PATENTS.txt *) lit-html/lib/part.js: (** * @license * Copyright (c) 2018 The Polymer Project Authors. All rights reserved. * This code may only be used under the BSD style license found at * http://polymer.github.io/LICENSE.txt * The complete set of authors may be found at * http://polymer.github.io/AUTHORS.txt * The complete set of contributors may be found at * http://polymer.github.io/CONTRIBUTORS.txt * Code distributed by Google as part of the polymer project is also * subject to an additional IP rights grant found at * http://polymer.github.io/PATENTS.txt *) lit-html/lib/template.js: (** * @license * Copyright (c) 2017 The Polymer Project Authors. All rights reserved. * This code may only be used under the BSD style license found at * http://polymer.github.io/LICENSE.txt * The complete set of authors may be found at * http://polymer.github.io/AUTHORS.txt * The complete set of contributors may be found at * http://polymer.github.io/CONTRIBUTORS.txt * Code distributed by Google as part of the polymer project is also * subject to an additional IP rights grant found at * http://polymer.github.io/PATENTS.txt *) lit-html/lib/template-instance.js: (** * @license * Copyright (c) 2017 The Polymer Project Authors. All rights reserved. * This code may only be used under the BSD style license found at * http://polymer.github.io/LICENSE.txt * The complete set of authors may be found at * http://polymer.github.io/AUTHORS.txt * The complete set of contributors may be found at * http://polymer.github.io/CONTRIBUTORS.txt * Code distributed by Google as part of the polymer project is also * subject to an additional IP rights grant found at * http://polymer.github.io/PATENTS.txt *) lit-html/lib/template-result.js: (** * @license * Copyright (c) 2017 The Polymer Project Authors. All rights reserved. * This code may only be used under the BSD style license found at * http://polymer.github.io/LICENSE.txt * The complete set of authors may be found at * http://polymer.github.io/AUTHORS.txt * The complete set of contributors may be found at * http://polymer.github.io/CONTRIBUTORS.txt * Code distributed by Google as part of the polymer project is also * subject to an additional IP rights grant found at * http://polymer.github.io/PATENTS.txt *) lit-html/lib/parts.js: (** * @license * Copyright (c) 2017 The Polymer Project Authors. All rights reserved. * This code may only be used under the BSD style license found at * http://polymer.github.io/LICENSE.txt * The complete set of authors may be found at * http://polymer.github.io/AUTHORS.txt * The complete set of contributors may be found at * http://polymer.github.io/CONTRIBUTORS.txt * Code distributed by Google as part of the polymer project is also * subject to an additional IP rights grant found at * http://polymer.github.io/PATENTS.txt *) lit-html/lib/default-template-processor.js: (** * @license * Copyright (c) 2017 The Polymer Project Authors. All rights reserved. * This code may only be used under the BSD style license found at * http://polymer.github.io/LICENSE.txt * The complete set of authors may be found at * http://polymer.github.io/AUTHORS.txt * The complete set of contributors may be found at * http://polymer.github.io/CONTRIBUTORS.txt * Code distributed by Google as part of the polymer project is also * subject to an additional IP rights grant found at * http://polymer.github.io/PATENTS.txt *) lit-html/lib/template-factory.js: (** * @license * Copyright (c) 2017 The Polymer Project Authors. All rights reserved. * This code may only be used under the BSD style license found at * http://polymer.github.io/LICENSE.txt * The complete set of authors may be found at * http://polymer.github.io/AUTHORS.txt * The complete set of contributors may be found at * http://polymer.github.io/CONTRIBUTORS.txt * Code distributed by Google as part of the polymer project is also * subject to an additional IP rights grant found at * http://polymer.github.io/PATENTS.txt *) lit-html/lib/render.js: (** * @license * Copyright (c) 2017 The Polymer Project Authors. All rights reserved. * This code may only be used under the BSD style license found at * http://polymer.github.io/LICENSE.txt * The complete set of authors may be found at * http://polymer.github.io/AUTHORS.txt * The complete set of contributors may be found at * http://polymer.github.io/CONTRIBUTORS.txt * Code distributed by Google as part of the polymer project is also * subject to an additional IP rights grant found at * http://polymer.github.io/PATENTS.txt *) lit-html/lit-html.js: (** * @license * Copyright (c) 2017 The Polymer Project Authors. All rights reserved. * This code may only be used under the BSD style license found at * http://polymer.github.io/LICENSE.txt * The complete set of authors may be found at * http://polymer.github.io/AUTHORS.txt * The complete set of contributors may be found at * http://polymer.github.io/CONTRIBUTORS.txt * Code distributed by Google as part of the polymer project is also * subject to an additional IP rights grant found at * http://polymer.github.io/PATENTS.txt *) lit-html/directives/class-map.js: (** * @license * Copyright (c) 2018 The Polymer Project Authors. All rights reserved. * This code may only be used under the BSD style license found at * http://polymer.github.io/LICENSE.txt * The complete set of authors may be found at * http://polymer.github.io/AUTHORS.txt * The complete set of contributors may be found at * http://polymer.github.io/CONTRIBUTORS.txt * Code distributed by Google as part of the polymer project is also * subject to an additional IP rights grant found at * http://polymer.github.io/PATENTS.txt *) lit-html/directives/if-defined.js: (** * @license * Copyright (c) 2018 The Polymer Project Authors. All rights reserved. * This code may only be used under the BSD style license found at * http://polymer.github.io/LICENSE.txt * The complete set of authors may be found at * http://polymer.github.io/AUTHORS.txt * The complete set of contributors may be found at * http://polymer.github.io/CONTRIBUTORS.txt * Code distributed by Google as part of the polymer project is also * subject to an additional IP rights grant found at * http://polymer.github.io/PATENTS.txt *) lit-html/directives/live.js: (** * @license * Copyright (c) 2020 The Polymer Project Authors. All rights reserved. * This code may only be used under the BSD style license found at * http://polymer.github.io/LICENSE.txt * The complete set of authors may be found at * http://polymer.github.io/AUTHORS.txt * The complete set of contributors may be found at * http://polymer.github.io/CONTRIBUTORS.txt * Code distributed by Google as part of the polymer project is also * subject to an additional IP rights grant found at * http://polymer.github.io/PATENTS.txt *) lit-html/directives/repeat.js: (** * @license * Copyright (c) 2017 The Polymer Project Authors. All rights reserved. * This code may only be used under the BSD style license found at * http://polymer.github.io/LICENSE.txt * The complete set of authors may be found at * http://polymer.github.io/AUTHORS.txt * The complete set of contributors may be found at * http://polymer.github.io/CONTRIBUTORS.txt * Code distributed by Google as part of the polymer project is also * subject to an additional IP rights grant found at * http://polymer.github.io/PATENTS.txt *) lit-html/directives/unsafe-html.js: (** * @license * Copyright (c) 2017 The Polymer Project Authors. All rights reserved. * This code may only be used under the BSD style license found at * http://polymer.github.io/LICENSE.txt * The complete set of authors may be found at * http://polymer.github.io/AUTHORS.txt * The complete set of contributors may be found at * http://polymer.github.io/CONTRIBUTORS.txt * Code distributed by Google as part of the polymer project is also * subject to an additional IP rights grant found at * http://polymer.github.io/PATENTS.txt *) lit-html/directives/until.js: (** * @license * Copyright (c) 2017 The Polymer Project Authors. All rights reserved. * This code may only be used under the BSD style license found at * http://polymer.github.io/LICENSE.txt * The complete set of authors may be found at * http://polymer.github.io/AUTHORS.txt * The complete set of contributors may be found at * http://polymer.github.io/CONTRIBUTORS.txt * Code distributed by Google as part of the polymer project is also * subject to an additional IP rights grant found at * http://polymer.github.io/PATENTS.txt *) content-type/dist/index.js: (*! * content-type * Copyright(c) 2015 Douglas Christopher Wilson * MIT Licensed *) @azure/msal-common/dist-browser/utils/Constants.mjs: (*! @azure/msal-common v16.4.1 2026-04-01 *) @azure/msal-common/dist-browser/constants/AADServerParamKeys.mjs: (*! @azure/msal-common v16.4.1 2026-04-01 *) @azure/msal-common/dist-browser/error/AuthError.mjs: (*! @azure/msal-common v16.4.1 2026-04-01 *) @azure/msal-common/dist-browser/error/ClientConfigurationError.mjs: (*! @azure/msal-common v16.4.1 2026-04-01 *) @azure/msal-common/dist-browser/utils/StringUtils.mjs: (*! @azure/msal-common v16.4.1 2026-04-01 *) @azure/msal-common/dist-browser/error/ClientAuthError.mjs: (*! @azure/msal-common v16.4.1 2026-04-01 *) @azure/msal-common/dist-browser/error/ClientConfigurationErrorCodes.mjs: (*! @azure/msal-common v16.4.1 2026-04-01 *) @azure/msal-common/dist-browser/error/ClientAuthErrorCodes.mjs: (*! @azure/msal-common v16.4.1 2026-04-01 *) @azure/msal-common/dist-browser/request/ScopeSet.mjs: (*! @azure/msal-common v16.4.1 2026-04-01 *) @azure/msal-common/dist-browser/request/RequestParameterBuilder.mjs: (*! @azure/msal-common v16.4.1 2026-04-01 *) @azure/msal-common/dist-browser/utils/UrlUtils.mjs: (*! @azure/msal-common v16.4.1 2026-04-01 *) @azure/msal-common/dist-browser/crypto/ICrypto.mjs: (*! @azure/msal-common v16.4.1 2026-04-01 *) @azure/msal-common/dist-browser/logger/Logger.mjs: (*! @azure/msal-common v16.4.1 2026-04-01 *) @azure/msal-common/dist-browser/packageMetadata.mjs: (*! @azure/msal-common v16.4.1 2026-04-01 *) @azure/msal-common/dist-browser/authority/AuthorityOptions.mjs: (*! @azure/msal-common v16.4.1 2026-04-01 *) @azure/msal-common/dist-browser/account/AccountInfo.mjs: (*! @azure/msal-common v16.4.1 2026-04-01 *) @azure/msal-common/dist-browser/account/AuthToken.mjs: (*! @azure/msal-common v16.4.1 2026-04-01 *) @azure/msal-common/dist-browser/url/UrlString.mjs: (*! @azure/msal-common v16.4.1 2026-04-01 *) @azure/msal-common/dist-browser/authority/AuthorityMetadata.mjs: (*! @azure/msal-common v16.4.1 2026-04-01 *) @azure/msal-common/dist-browser/error/CacheErrorCodes.mjs: (*! @azure/msal-common v16.4.1 2026-04-01 *) @azure/msal-common/dist-browser/error/CacheError.mjs: (*! @azure/msal-common v16.4.1 2026-04-01 *) @azure/msal-common/dist-browser/account/ClientInfo.mjs: (*! @azure/msal-common v16.4.1 2026-04-01 *) @azure/msal-common/dist-browser/authority/AuthorityType.mjs: (*! @azure/msal-common v16.4.1 2026-04-01 *) @azure/msal-common/dist-browser/account/TokenClaims.mjs: (*! @azure/msal-common v16.4.1 2026-04-01 *) @azure/msal-common/dist-browser/authority/ProtocolMode.mjs: (*! @azure/msal-common v16.4.1 2026-04-01 *) @azure/msal-common/dist-browser/cache/utils/AccountEntityUtils.mjs: (*! @azure/msal-common v16.4.1 2026-04-01 *) @azure/msal-common/dist-browser/cache/CacheManager.mjs: (*! @azure/msal-common v16.4.1 2026-04-01 *) @azure/msal-common/dist-browser/telemetry/performance/PerformanceEvent.mjs: (*! @azure/msal-common v16.4.1 2026-04-01 *) @azure/msal-common/dist-browser/telemetry/performance/StubPerformanceClient.mjs: (*! @azure/msal-common v16.4.1 2026-04-01 *) @azure/msal-common/dist-browser/config/ClientConfiguration.mjs: (*! @azure/msal-common v16.4.1 2026-04-01 *) @azure/msal-common/dist-browser/cache/persistence/TokenCacheContext.mjs: (*! @azure/msal-common v16.4.1 2026-04-01 *) @azure/msal-common/dist-browser/utils/TimeUtils.mjs: (*! @azure/msal-common v16.4.1 2026-04-01 *) @azure/msal-common/dist-browser/cache/utils/CacheHelpers.mjs: (*! @azure/msal-common v16.4.1 2026-04-01 *) @azure/msal-common/dist-browser/telemetry/performance/PerformanceEvents.mjs: (*! @azure/msal-common v16.4.1 2026-04-01 *) @azure/msal-common/dist-browser/utils/FunctionWrappers.mjs: (*! @azure/msal-common v16.4.1 2026-04-01 *) @azure/msal-common/dist-browser/crypto/PopTokenGenerator.mjs: (*! @azure/msal-common v16.4.1 2026-04-01 *) @azure/msal-common/dist-browser/error/InteractionRequiredAuthErrorCodes.mjs: (*! @azure/msal-common v16.4.1 2026-04-01 *) @azure/msal-common/dist-browser/error/InteractionRequiredAuthError.mjs: (*! @azure/msal-common v16.4.1 2026-04-01 *) @azure/msal-common/dist-browser/error/ServerError.mjs: (*! @azure/msal-common v16.4.1 2026-04-01 *) @azure/msal-common/dist-browser/utils/ProtocolUtils.mjs: (*! @azure/msal-common v16.4.1 2026-04-01 *) @azure/msal-common/dist-browser/response/ResponseHandler.mjs: (*! @azure/msal-common v16.4.1 2026-04-01 *) @azure/msal-common/dist-browser/account/CcsCredential.mjs: (*! @azure/msal-common v16.4.1 2026-04-01 *) @azure/msal-common/dist-browser/utils/ClientAssertionUtils.mjs: (*! @azure/msal-common v16.4.1 2026-04-01 *) @azure/msal-common/dist-browser/network/RequestThumbprint.mjs: (*! @azure/msal-common v16.4.1 2026-04-01 *) @azure/msal-common/dist-browser/network/ThrottlingUtils.mjs: (*! @azure/msal-common v16.4.1 2026-04-01 *) @azure/msal-common/dist-browser/error/NetworkError.mjs: (*! @azure/msal-common v16.4.1 2026-04-01 *) @azure/msal-common/dist-browser/protocol/Token.mjs: (*! @azure/msal-common v16.4.1 2026-04-01 *) @azure/msal-common/dist-browser/authority/OpenIdConfigResponse.mjs: (*! @azure/msal-common v16.4.1 2026-04-01 *) @azure/msal-common/dist-browser/authority/CloudInstanceDiscoveryResponse.mjs: (*! @azure/msal-common v16.4.1 2026-04-01 *) @azure/msal-common/dist-browser/authority/CloudInstanceDiscoveryErrorResponse.mjs: (*! @azure/msal-common v16.4.1 2026-04-01 *) @azure/msal-common/dist-browser/authority/RegionDiscovery.mjs: (*! @azure/msal-common v16.4.1 2026-04-01 *) @azure/msal-common/dist-browser/authority/Authority.mjs: (*! @azure/msal-common v16.4.1 2026-04-01 *) @azure/msal-common/dist-browser/authority/AuthorityFactory.mjs: (*! @azure/msal-common v16.4.1 2026-04-01 *) @azure/msal-common/dist-browser/client/AuthorizationCodeClient.mjs: (*! @azure/msal-common v16.4.1 2026-04-01 *) @azure/msal-common/dist-browser/client/RefreshTokenClient.mjs: (*! @azure/msal-common v16.4.1 2026-04-01 *) @azure/msal-common/dist-browser/client/SilentFlowClient.mjs: (*! @azure/msal-common v16.4.1 2026-04-01 *) @azure/msal-common/dist-browser/network/INetworkModule.mjs: (*! @azure/msal-common v16.4.1 2026-04-01 *) @azure/msal-common/dist-browser/protocol/Authorize.mjs: (*! @azure/msal-common v16.4.1 2026-04-01 *) @azure/msal-common/dist-browser/request/BaseAuthRequest.mjs: (*! @azure/msal-common v16.4.1 2026-04-01 *) @azure/msal-common/dist-browser/error/AuthErrorCodes.mjs: (*! @azure/msal-common v16.4.1 2026-04-01 *) @azure/msal-common/dist-browser/telemetry/server/ServerTelemetryManager.mjs: (*! @azure/msal-common v16.4.1 2026-04-01 *) @azure/msal-common/dist-browser/error/JoseHeaderError.mjs: (*! @azure/msal-common v16.4.1 2026-04-01 *) @azure/msal-common/dist-browser/error/JoseHeaderErrorCodes.mjs: (*! @azure/msal-common v16.4.1 2026-04-01 *) @azure/msal-common/dist-browser/crypto/JoseHeader.mjs: (*! @azure/msal-common v16.4.1 2026-04-01 *) @azure/msal-common/dist-browser/index-browser.mjs: (*! @azure/msal-common v16.4.1 2026-04-01 *) @azure/msal-browser/dist/telemetry/BrowserPerformanceEvents.mjs: (*! @azure/msal-browser v5.6.3 2026-04-01 *) @azure/msal-browser/dist/error/BrowserAuthError.mjs: (*! @azure/msal-browser v5.6.3 2026-04-01 *) @azure/msal-browser/dist/utils/BrowserConstants.mjs: (*! @azure/msal-browser v5.6.3 2026-04-01 *) @azure/msal-browser/dist/encode/Base64Encode.mjs: (*! @azure/msal-browser v5.6.3 2026-04-01 *) @azure/msal-browser/dist/error/BrowserAuthErrorCodes.mjs: (*! @azure/msal-browser v5.6.3 2026-04-01 *) @azure/msal-browser/dist/encode/Base64Decode.mjs: (*! @azure/msal-browser v5.6.3 2026-04-01 *) @azure/msal-browser/dist/crypto/BrowserCrypto.mjs: (*! @azure/msal-browser v5.6.3 2026-04-01 *) @azure/msal-browser/dist/error/BrowserConfigurationAuthError.mjs: (*! @azure/msal-browser v5.6.3 2026-04-01 *) @azure/msal-browser/dist/error/BrowserConfigurationAuthErrorCodes.mjs: (*! @azure/msal-browser v5.6.3 2026-04-01 *) @azure/msal-browser/dist/utils/BrowserUtils.mjs: (*! @azure/msal-browser v5.6.3 2026-04-01 *) @azure/msal-browser/dist/cache/DatabaseStorage.mjs: (*! @azure/msal-browser v5.6.3 2026-04-01 *) @azure/msal-browser/dist/cache/MemoryStorage.mjs: (*! @azure/msal-browser v5.6.3 2026-04-01 *) @azure/msal-browser/dist/cache/AsyncMemoryStorage.mjs: (*! @azure/msal-browser v5.6.3 2026-04-01 *) @azure/msal-browser/dist/crypto/CryptoOps.mjs: (*! @azure/msal-browser v5.6.3 2026-04-01 *) @azure/msal-browser/dist/telemetry/BrowserRootPerformanceEvents.mjs: (*! @azure/msal-browser v5.6.3 2026-04-01 *) @azure/msal-browser/dist/cache/CacheKeys.mjs: (*! @azure/msal-browser v5.6.3 2026-04-01 *) @azure/msal-browser/dist/cache/CookieStorage.mjs: (*! @azure/msal-browser v5.6.3 2026-04-01 *) @azure/msal-browser/dist/cache/CacheHelpers.mjs: (*! @azure/msal-browser v5.6.3 2026-04-01 *) @azure/msal-browser/dist/cache/EncryptedData.mjs: (*! @azure/msal-browser v5.6.3 2026-04-01 *) @azure/msal-browser/dist/cache/LocalStorage.mjs: (*! @azure/msal-browser v5.6.3 2026-04-01 *) @azure/msal-browser/dist/cache/SessionStorage.mjs: (*! @azure/msal-browser v5.6.3 2026-04-01 *) @azure/msal-browser/dist/event/EventType.mjs: (*! @azure/msal-browser v5.6.3 2026-04-01 *) @azure/msal-browser/dist/packageMetadata.mjs: (*! @azure/msal-browser v5.6.3 2026-04-01 *) @azure/msal-browser/dist/utils/Helpers.mjs: (*! @azure/msal-browser v5.6.3 2026-04-01 *) @azure/msal-browser/dist/cache/BrowserCacheManager.mjs: (*! @azure/msal-browser v5.6.3 2026-04-01 *) @azure/msal-browser/dist/cache/AccountManager.mjs: (*! @azure/msal-browser v5.6.3 2026-04-01 *) @azure/msal-browser/dist/event/EventHandler.mjs: (*! @azure/msal-browser v5.6.3 2026-04-01 *) @azure/msal-browser/dist/interaction_client/BaseInteractionClient.mjs: (*! @azure/msal-browser v5.6.3 2026-04-01 *) @azure/msal-browser/dist/request/RequestHelpers.mjs: (*! @azure/msal-browser v5.6.3 2026-04-01 *) @azure/msal-browser/dist/interaction_client/StandardInteractionClient.mjs: (*! @azure/msal-browser v5.6.3 2026-04-01 *) @azure/msal-browser/dist/utils/BrowserProtocolUtils.mjs: (*! @azure/msal-browser v5.6.3 2026-04-01 *) @azure/msal-browser/dist/response/ResponseHandler.mjs: (*! @azure/msal-browser v5.6.3 2026-04-01 *) @azure/msal-browser/dist/interaction_handler/InteractionHandler.mjs: (*! @azure/msal-browser v5.6.3 2026-04-01 *) @azure/msal-browser/dist/error/NativeAuthErrorCodes.mjs: (*! @azure/msal-browser v5.6.3 2026-04-01 *) @azure/msal-browser/dist/broker/nativeBroker/NativeStatusCodes.mjs: (*! @azure/msal-browser v5.6.3 2026-04-01 *) @azure/msal-browser/dist/error/NativeAuthError.mjs: (*! @azure/msal-browser v5.6.3 2026-04-01 *) @azure/msal-browser/dist/interaction_client/SilentCacheClient.mjs: (*! @azure/msal-browser v5.6.3 2026-04-01 *) @azure/msal-browser/dist/interaction_client/PlatformAuthInteractionClient.mjs: (*! @azure/msal-browser v5.6.3 2026-04-01 *) @azure/msal-browser/dist/protocol/Authorize.mjs: (*! @azure/msal-browser v5.6.3 2026-04-01 *) @azure/msal-browser/dist/crypto/PkceGenerator.mjs: (*! @azure/msal-browser v5.6.3 2026-04-01 *) @azure/msal-browser/dist/navigation/NavigationClient.mjs: (*! @azure/msal-browser v5.6.3 2026-04-01 *) @azure/msal-browser/dist/network/FetchClient.mjs: (*! @azure/msal-browser v5.6.3 2026-04-01 *) @azure/msal-browser/dist/config/Configuration.mjs: (*! @azure/msal-browser v5.6.3 2026-04-01 *) @azure/msal-browser/dist/broker/nativeBroker/PlatformAuthExtensionHandler.mjs: (*! @azure/msal-browser v5.6.3 2026-04-01 *) @azure/msal-browser/dist/broker/nativeBroker/PlatformAuthDOMHandler.mjs: (*! @azure/msal-browser v5.6.3 2026-04-01 *) @azure/msal-browser/dist/broker/nativeBroker/PlatformAuthProvider.mjs: (*! @azure/msal-browser v5.6.3 2026-04-01 *) @azure/msal-browser/dist/interaction_client/PopupClient.mjs: (*! @azure/msal-browser v5.6.3 2026-04-01 *) @azure/msal-browser/dist/interaction_client/RedirectClient.mjs: (*! @azure/msal-browser v5.6.3 2026-04-01 *) @azure/msal-browser/dist/interaction_handler/SilentHandler.mjs: (*! @azure/msal-browser v5.6.3 2026-04-01 *) @azure/msal-browser/dist/interaction_client/SilentIframeClient.mjs: (*! @azure/msal-browser v5.6.3 2026-04-01 *) @azure/msal-browser/dist/interaction_client/SilentRefreshClient.mjs: (*! @azure/msal-browser v5.6.3 2026-04-01 *) @azure/msal-browser/dist/interaction_client/HybridSpaAuthorizationCodeClient.mjs: (*! @azure/msal-browser v5.6.3 2026-04-01 *) @azure/msal-browser/dist/interaction_client/SilentAuthCodeClient.mjs: (*! @azure/msal-browser v5.6.3 2026-04-01 *) @azure/msal-browser/dist/utils/MsalFrameStatsUtils.mjs: (*! @azure/msal-browser v5.6.3 2026-04-01 *) @azure/msal-browser/dist/controllers/StandardController.mjs: (*! @azure/msal-browser v5.6.3 2026-04-01 *) @azure/msal-browser/dist/operatingcontext/BaseOperatingContext.mjs: (*! @azure/msal-browser v5.6.3 2026-04-01 *) @azure/msal-browser/dist/operatingcontext/StandardOperatingContext.mjs: (*! @azure/msal-browser v5.6.3 2026-04-01 *) @azure/msal-browser/dist/app/PublicClientApplication.mjs: (*! @azure/msal-browser v5.6.3 2026-04-01 *) @azure/msal-browser/dist/index.mjs: (*! @azure/msal-browser v5.6.3 2026-04-01 *) @microsoft/dynamicproto-js/lib/dist/esm/dynamicproto-js.js: (*! * Microsoft Dynamic Proto Utility, 1.1.11 * Copyright (c) Microsoft and contributors. All rights reserved. *) @octokit/request-error/dist-src/index.js: (* v8 ignore else -- @preserve -- Bug with vitest coverage where it sees an else branch that doesn't exist *) @octokit/request/dist-bundle/index.js: (* v8 ignore next -- @preserve *) (* v8 ignore else -- @preserve *) */