/* @license Copyright (C) Exontrol. All rights reserved. */ !function(){"use strict";function e(e,t){var n;return Array.from(e).some(function(e){return!!(n=t(e))}),n}function t(t){var n=[];return e(t,function(e){n.push(e)}),n}function n(e){localStorage.removeItem(ve),e&&localStorage.setItem(ve,e)}function r(){return localStorage.getItem(ve)}function o(e,t){u(j[null!=t?"Add":"Del"].call(j,h(!0),e,t))}function i(e){l(function(t){t.location.hash=e}),W()}function a(e){e.preventDefault(),e.stopImmediatePropagation(),e.stopPropagation()}function s(){return document.getElementById(Y).innerHTML.trim()}function c(){return window.top}function l(e){var t=c();return e(window)||window!=t&&e(t)||null}function u(e){window.history.replaceState(null,null,e);var t,n,r=c();r!=window&&(t=new URL(e),(n=new URL(r.location.href)).search=t.search,n.hash=t.hash,r.history.replaceState(null,null,n.toString()))}function m(){return document.getElementById(K)||function(){var e=document.createElement("DIV");return e.id=K,e.className=K,document.body.appendChild(e),e}()}function f(e){(P=P||{})[e]||(P[e]={start:Date.now(),ref:0,l:setTimeout(function(){m().classList.add(re)},256)}),P[e].ref++}function d(e){var t=P&&P[e];t&&!(t.ref=Math.max(0,t.ref-1))&&(Date.now()-t.start,clearTimeout(t.l),m().classList.remove(re),P[e]=null)}function h(e){var t,n=window.location.href.replace(/#$/,""),r=new URL(n),o=r.searchParams.get(de.S);return!e&&o&&(r.search=r.search.replace(new RegExp("([?&])"+de.S+"=[^&#]*&?","i"),"$1").replace(/[?&]$/,""),(t=r.pathname.split("/"))[t.length-1]=o,r.pathname=t.join("/"),n=r.toString()),n}function p(e,t){function n(t){var n=function(e){return E((new DOMParser).parseFromString(e,"text/html"))}(t);n?function(t){f("do");var n,r;t&&(E().replaceWith(t),q(),(n=I($.value)).ensh=e,A(n),formatSamples&&formatSamples(),r=s.pathname.split("/").pop(),o(de.S,k!=r?r:null),i(s.hash),F());d("do")}(n):(sessionStorage.getItem(Le)||console.log("Cannot load '"+s.pathname.split("/").pop()+"' due to CORS restrictions. To bypass this:\n\n a) add '?D' to the page URL, such as '"+a.pathname.split("/").pop()+"?D'\r\n b) run '_doc.bat' in the component's folder"),sessionStorage.setItem(Le,"1"),H=!0,r())}function r(){l(function(t){t.location.href=e})}if(H||!DOMParser)r();else{var a=new URL(h()),s=new URL(e),c=s.pathname;if(t||c!=a.pathname){var u=Se.get(c);u?n(u):(f("do"),function(e,t){if(t)try{var n=new XMLHttpRequest;n.onreadystatechange=function(){this.readyState==(XMLHttpRequest.DONE||4)&&t(n.responseText)},n.open("GET",e),n.send(null)}catch(e){}}(function(e){return"127.0.0.1"==s.hostname?e.replace("2.JSDOC","extree"):e}(c),function(e){Se.set(c,e),n(e),d("do")}))}else i(s.hash)}}function g(){return"right"!=getComputedStyle(E()).float}function v(){return document.querySelector("nav")}function E(e){return e&&e.contentDocument&&(e=e.contentDocument),(e=e||document).getElementById(J)}function L(){return document.getElementById(fe)}function w(e){var t,n,r,o=c().location.hash,i=0;o&&(n=document.getElementById(o.replace("#","")))&&(t=L(),(r=document.querySelector("#main h2"))&&(i+=r.getBoundingClientRect().height+4),e&&(i+=n.getBoundingClientRect().height+10),window.scrollBy({top:n.getBoundingClientRect().top-(g()?t&&t.getBoundingClientRect().height||0:i||0),behavior:"smooth"}))}function S(e){return e&&e.querySelector("."+ee)}function y(e){var t=[];if(e)for(var n=e.closest("UL");n;){for(;"UL"==n.previousElementSibling.tagName;)n=n.previousElementSibling;t.push(n.previousElementSibling),(n=n.closest("LI"))&&(n=n.parentElement)}return t}function x(e){y(e).forEach(function(e){e.classList.remove(ne),e.parentElement.classList.remove(ne);var t;(t=S(e))&&t.classList.add(Q)})}function b(e,n){e&&(x(e),function(e){n=n||0;var r=t(e.getElementsByTagName(ae));r.length>1&&(e=r[0]);var o,i=e.getBoundingClientRect(),a=function(e){for(;e&&!/(auto|scroll)/.test(getComputedStyle(e).overflow);)e=e.parentElement;return e}(e),s=a.getBoundingClientRect(),c=$.getBoundingClientRect().height+8+n,l=a.offsetHeight-a.clientHeight+4,u=0,m=0;i.width&&i.height&&((m=i.top-c)<0||e.classList.contains(he)?u=m:(m=i.bottom-(s.bottom-l))>0&&(u=m),u<0&&(o=y(e)[0])&&"sticky"==getComputedStyle(o).position&&(u-=o.getBoundingClientRect().height+4),u&&a.scrollBy({behavior:"smooth",top:~~u}))}(e))}function C(t){var n,r=L();if(r)return n=j.Split(t),t=n.l+n.h,e(r.getElementsByTagName(ae),function(e){return String(e.href)==t&&e})}function T(t){function n(t){return e(t.getElementsByTagName(ae),function(e){return e.href.endsWith("#"+o)&&e})}var r,o,i,a,s,c,l=L(),u=E();return u&&((a=(i=u.querySelector("header .name"))&&i.innerText)&&(o=(r=function(e,t){t=(t||ce).trim().toUpperCase();var n,r;for(;e;){for(n=e;n;){if(n.tagName==t)return n;if(r=n.querySelector(t+":last-of-type"))return r;n=n.previousElementSibling}e=e.parentElement}}(t,ce))&&r.id)&&(s=e(l.getElementsByClassName(he),function(e){return e.innerText==a&&e}))&&(c=o.startsWith(_)?s:n(s.parentElement)),c||(c=e(l.getElementsByClassName(te),function(e){return n(e.parentElement.nextElementSibling)}))),c}function B(e){var t,n=C(e);n&&n.parentElement.classList.contains(ne)&&(n.parentElement.classList.remove(ne),(t=document.getElementById(n.innerText))&&(t.classList.remove(ne),t.nextElementSibling.classList.remove(ne)))}function N(e){if(U&&t(document.getElementsByClassName(re)).forEach(function(e){e.classList.remove(re)}),U=e){var n,r,o,i,a=U.href;c().document.title=function(){var t=D(e),n=s(),r=U.closest("UL").previousElementSibling,o=r&&r.classList.contains(he)&&r.innerText+"."||"";(o+=U.innerText+(t?" "+t:""))!=n&&(o+=" ("+n+")");return o+" | Exontrol Docs"}(),n=a.indexOf("#"),r=~n?a.substr(n):"",(i=document.getElementById(~n?a.substr(n+1):_+U.innerText))&&i&&i.classList.add(re),(U=U.parentElement).classList.add(re),(o=S(U))&&o.classList.add(Q),b(U),u(h(!0).replace(/(#.*)?$/,r))}}function I(t){var n=[];return(t=function(e){return e&&String(e).replace(/[^0-9a-z]/gi," ").trim()||""}(t))&&t.split(" ").forEach(function(e){(e=e.trim())&&n.push(e)}),n.sort(function(e,t){return t.length-e.length}),n=n.filter(function(e,t){e=e.toLocaleLowerCase();for(var r=0;rs&&a.appendChild(e.createTextNode(i.slice(s,n)));var o=e.createElement("span");o.className=Ee+" F"+(r+1),o.textContent=t,a.appendChild(o),s=n+t.length}),s2)if(e.indexOf(t)<0){if(e=r(e).replace(/\.*$/,"")){var o=e.lastIndexOf(".");~o&&(e=e.substr(o+1)),e&&n.indexOf(e)<0&&t.indexOf(e)<0&&(e=e.replace(/s$/,""),t=e+" "+t)}}else t=r(t);return t.toLowerCase()}var n=s().toLowerCase(),r="/exhelper.jsp?config=/js&product=",o=t(document.getElementsByTagName("header"))[0],i="";if(c().location.protocol,r="https://exontrol.com"+r,o){var a=(i=o.innerText).indexOf("(");~a&&(i=i.substr(0,a)),i=i.trim().toLowerCase()}n&&(n==i&&(i=""),n=(n="ex"+n).replace("exirecur","exicalendar")),r+=n+"&F="+n,t(document.getElementsByClassName(z)).forEach(function(t){var o=t.innerText.trim(),a=o.toLowerCase();i!=a&&n!="ex"+a?(t.href=(r+" "+e(i,o)).trim(),t.innerText="live example"):t.classList.add(ne)})}function F(){var t=E(),n=h().replace(/[#?].*$/,"");t&&e(t.querySelectorAll(ae),function(e){n.endsWith(e.getAttribute("href"))&&e.classList.add(pe)})}function W(){N(C(h())),w()}var H,k,M,U,$,P,V,j=function(){function e(e){var t=String(e||"").indexOf("#"),n=~t?e.substr(0,t).trim():e,r=n.indexOf("?");return{a:e,u:n,h:~t?e.substr(t).trim():"",l:~r?n.substr(0,r).trim():n,p:~r?n.substr(r).trim():""}}function t(e){return new RegExp("[?&]"+e+"($|[&]|=[^&]*)","i")}return{Split:e,Add:function(n,r,o){var i=e(n),a=t(r=String(r||"").trim()),s=-1!=i.u.indexOf("?")?"&":"?",c=i.u.match(a);(o=String(o||"").trim())&&(o="="+o);return o=r+o,(c?i.u.substr(0,c.index+1)+o+i.u.substr(c.index+c[0].length):i.u+s+o)+i.h},Del:function(n,r){var o=e(n);"?"==(n=o.u.replace(t(String(r||"").trim()),"")).slice(-1)&&(n=n.slice(0,-1));n.indexOf("?")<0&&(n=n.replace(/&/,"?"));return n+o.h},Has:function(n,r){var o,i=e(n).u.match(t(r=String(r||"").trim()));i&&(i=i[0],o=i.indexOf("="),i=~o?i.substr(o+1):"");return i}}}(),X="26.03",_="class_",G="options",z="live-sample",J="main",K="loading",Y="name",Q="expanded",Z="property",ee="glyph",te="topic",ne="hidden",re="active",oe="close",ie="px",ae="A",se="H3",ce="H4",le="spec",ue="F",me="Filter",fe="L",de={S:"S",F:"F",D:"D"},he="subtopic",pe="disabled",ge="jshelp-navtop",ve="jshelp_clickAnchorOwnerID",Ee="FilterMatch",Le="byhref",we=500,Se=new Map;window.addEventListener("load",function(){function r(){var e;($=document.getElementById(me))&&((e=document.createElement("SPAN")).id=oe,e.innerHTML="✖",e.onclick=function(){i($.value="")},$.parentElement.appendChild(e),i($.value=function(e,t){var n=j.Has(t||h(),e);null!=n&&(n=decodeURIComponent(n));return n}(de.F)),$.oninput=function(e){clearTimeout(V),V=setTimeout(function(){i(e&&e.target.value||"")},we)})}function i(n){var r,i=I(n);!function(n){var r=L();r&&(n=n||I($.value),t(r.getElementsByClassName(ne)).forEach(function(e){e.classList.remove(ne)}),n.terms.length&&(t(r.getElementsByTagName(ae)).forEach(function(e){if(n.match(O(e))?x(e):e.parentElement.classList.add(ne),e.parentElement.classList.length&&!e.parentElement.classList.contains(ne))for(var t=e;t&&t.id!=fe;t=t.parentElement)t.parentElement.classList.remove(ne)}),t(r.getElementsByTagName(se)).forEach(function(t){e(t.nextElementSibling.children,function(e){return!e.classList.contains(ne)})||t.classList.add(ne)})))}(i),A(i),o(de.F,n||null),$&&(r=$.parentElement.classList)[function(e){return e?"remove":"add"}(!n)].call(r,oe),!i.terms.length&&b(U)}function c(){function e(e){var t,n,r,o=function(e){var t=e.target;t.classList.contains(ee)||(U&&U.contains(t)||(t=t.closest(se)))&&(t=S(t));return t&&t.classList.contains(ee)&&t}(e);return o&&(a(e),o.classList.toggle(Q),e.ctrlKey&&(t=o.closest(".topic, .subtopic"))&&(n=t.className.replace(/\b(?!\w*topic\w*\b)\w+\b/g,"").replace(/\s+/g," ").trim())&&(r=o.classList.contains(Q),L().querySelectorAll("nav ."+n).forEach(function(e){S(e).classList.toggle(Q,r)}))),o}window.addEventListener("click",function(t){n(null),e(t)||function(e){var t,r=e.target;if(r.tagName==ae&&!r.getAttribute("target"))a(e),t=String(r.href),$&&$.value&&(t=j.Add(t,ue,$.value)),h()!=t&&(n(r.closest("#"+fe)?fe:J),B(t),p(t))}(t)});window.addEventListener("keydown",function(e){(!e.key||"Escape"==e.key)&&R(document,E(),E().querySelector("."+Ee)?"":$.value,!0)})}function l(){function e(e){return!g()&&e.target.id==fe}function t(e){function t(e){a(e),function(e){r.style.width=Math.max(6,o.w+e)+ie,E().style.width="calc(100% - "+r.style.width+")"}(e.screenX-o.x)}function n(){window.removeEventListener("mousemove",t),window.removeEventListener("mouseup",n)}var o={x:e.screenX,w:parseInt(function(e){return window.getComputedStyle(e)}(r).width)};a(e),window.addEventListener("mousemove",t),window.addEventListener("mouseup",n)}var n=window,r=L();r&&(n.addEventListener("mousemove",function(t){r.style.cursor=e(t)?"col-resize":""}),n.addEventListener("mousedown",function(n){e(n)&&t(n)}),r.style.setProperty("--version",'"'+X+'"'),!H&&r.querySelectorAll("nav .topic, nav .subtopic").forEach(function(e){var t=document.createElement("span");t.className=ee+(e.classList.contains("classes")?" "+Q:""),e.insertBefore(t,e.firstChild)}))}var u=h();H=!(!sessionStorage.getItem(Le)&&(new RegExp("[?&]"+de.D+"(?=&|$|=|#)","i").test(u)&&sessionStorage.setItem(Le,"1"),!sessionStorage.getItem(Le))),function(){var e,t,n,r,o=E(),i=/([^\/?#]+)(?=\.html[?#]?)/i;o&&(window.addEventListener("click",function(e){var t=e.target;E().contains(t)&&t.tagName!=ae&&(null==(t.closest("."+le)||t.closest("."+ce))&&(t=null,E().querySelectorAll(ce+":not(."+ne+")").forEach(function(n){e.clientY>n.getBoundingClientRect().top&&(t=n)})),t&&N(T(t)))}),t=h(!0),e=t.match(i),k=e&&e[1]+".html",t.match(/[?&]S=/)?n=h():o.innerText.trim()||(r=s())&&(n=h(!0).replace(i,r)),n&&p(n,!0),F())}(),l(),c(),q(),r(),B(u),N(C(u)),w(!0),function(){var e=localStorage.getItem(ge);null!=e&&(v().scrollTop=e,localStorage.removeItem(ge))}()}),window.addEventListener("beforeunload",function(){r()==fe&&localStorage.setItem(ge,v().scrollTop)}),window.addEventListener("hashchange",W)}();