var Site;!function(n,t){function v(){s=st=u=h=c=ot=gt}function vt(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])}function r(n){return parseFloat(n)||0}function o(){f={top:t.pageYOffset,left:t.pageXOffset}}function y(){return t.pageXOffset!=f.left?(o(),void u()):void(t.pageYOffset!=f.top&&(o(),w()))}function p(){setTimeout(function(){t.pageYOffset!=f.top&&(f.top=t.pageYOffset,w())},0)}function w(){for(var n=i.length-1;n>=0;n--)b(i[n])}function b(n){if(n.inited){var t=f.top<=n.limit.start?0:f.top>=n.limit.end?2:1;n.mode!=t&&pt(n,t)}}function yt(){for(var t,r,n=i.length-1;n>=0;n--)if(i[n].inited&&(t=Math.abs(it(i[n].clone)-i[n].docOffsetTop),r=Math.abs(i[n].parent.node.offsetHeight-i[n].parent.height),t>=2||r>=2))return!1;return!0}function k(n){isNaN(parseFloat(n.computed.top))||n.isCell||"none"==n.computed.display||(n.inited=!0,n.clone||wt(n),"absolute"!=n.parent.computed.position&&"relative"!=n.parent.computed.position&&(n.parent.node.style.position="relative"),b(n),n.parent.height=n.parent.node.offsetHeight,n.docOffsetTop=it(n.clone))}function d(n){var r=!0,t;for(n.clone&&bt(n),vt(n.node.style,n.css),t=i.length-1;t>=0;t--)if(i[t].node!==n.node&&i[t].parent.node===n.parent.node){r=!1;break}r&&(n.parent.node.style.position=n.parent.css.position);n.mode=-1}function g(){for(var n=i.length-1;n>=0;n--)k(i[n])}function nt(){for(var n=i.length-1;n>=0;n--)d(i[n])}function pt(n,t){var i=n.node.style;switch(t){case 0:i.position="absolute";i.left=n.offset.left+"px";i.right=n.offset.right+"px";i.top=n.offset.top+"px";i.bottom="auto";i.width="auto";i.marginLeft=0;i.marginRight=0;i.marginTop=0;break;case 1:i.position="fixed";i.left=n.box.left+"px";i.right=n.box.right+"px";i.top=n.css.top;i.bottom="auto";i.width="auto";i.marginLeft=0;i.marginRight=0;i.marginTop=0;break;case 2:i.position="absolute";i.left=n.offset.left+"px";i.right=n.offset.right+"px";i.top="auto";i.bottom=0;i.width="auto";i.marginLeft=0;i.marginRight=0}n.mode=t}function wt(n){n.clone=document.createElement("div");var i=n.node.nextSibling||n.node,t=n.clone.style;t.height=n.height+"px";t.width=n.width+"px";t.marginTop=n.computed.marginTop;t.marginBottom=n.computed.marginBottom;t.marginLeft=n.computed.marginLeft;t.marginRight=n.computed.marginRight;t.padding=t.border=t.borderSpacing=0;t.fontSize="1em";t.position="static";t.cssFloat=n.computed.cssFloat;n.node.parentNode.insertBefore(n.clone,i)}function bt(n){n.clone.parentNode.removeChild(n.clone);n.clone=void 0}function tt(n){var t=getComputedStyle(n),u=n.parentNode,f=getComputedStyle(u),c=n.style.position,h,e;n.style.position="relative";h={top:t.top,marginTop:t.marginTop,marginBottom:t.marginBottom,marginLeft:t.marginLeft,marginRight:t.marginRight,cssFloat:t.cssFloat,display:t.display};e={top:r(t.top),marginBottom:r(t.marginBottom),paddingLeft:r(t.paddingLeft),paddingRight:r(t.paddingRight),borderLeftWidth:r(t.borderLeftWidth),borderRightWidth:r(t.borderRightWidth)};n.style.position=c;var l={position:n.style.position,top:n.style.top,bottom:n.style.bottom,left:n.style.left,right:n.style.right,width:n.style.width,marginTop:n.style.marginTop,marginLeft:n.style.marginLeft,marginRight:n.style.marginRight},i=rt(n),s=rt(u),o={node:u,css:{position:u.style.position},computed:{position:f.position},numeric:{borderLeftWidth:r(f.borderLeftWidth),borderRightWidth:r(f.borderRightWidth),borderTopWidth:r(f.borderTopWidth),borderBottomWidth:r(f.borderBottomWidth)}};return{node:n,box:{left:i.win.left,right:dt.clientWidth-i.win.right},offset:{top:i.win.top-s.win.top-o.numeric.borderTopWidth,left:i.win.left-s.win.left-o.numeric.borderLeftWidth,right:-i.win.right+s.win.right-o.numeric.borderRightWidth},css:l,isCell:"table-cell"==t.display,computed:h,numeric:e,width:i.win.right-i.win.left,height:i.win.bottom-i.win.top,mode:-1,inited:!1,parent:o,limit:{start:i.doc.top-e.top,end:s.doc.top+u.offsetHeight-o.numeric.borderBottomWidth-n.offsetHeight-e.top-e.marginBottom}}}function it(n){for(var t=0;n;)t+=n.offsetTop,n=n.offsetParent;return t}function rt(n){var i=n.getBoundingClientRect();return{doc:{top:i.top+t.pageYOffset,left:i.left+t.pageXOffset},win:i}}function ut(){ht=setInterval(function(){yt()||u()},500)}function ft(){clearInterval(ht)}function et(){e&&(document[ct]?ft():ut())}function s(){e||(o(),g(),t.addEventListener("scroll",y),t.addEventListener("wheel",p),t.addEventListener("resize",u),t.addEventListener("orientationchange",u),n.addEventListener(l,et),ut(),e=!0)}function u(){if(e){nt();for(var n=i.length-1;n>=0;n--)i[n]=tt(i[n].node);g()}}function h(){t.removeEventListener("scroll",y);t.removeEventListener("wheel",p);t.removeEventListener("resize",u);t.removeEventListener("orientationchange",u);n.removeEventListener(l,et);ft();e=!1}function c(){h();nt()}function ot(){for(c();i.length;)i.pop()}function st(n){for(var r,t=i.length-1;t>=0;t--)if(i[t].node===n)return;r=tt(n);i.push(r);e?k(r):s()}function kt(n){for(var t=i.length-1;t>=0;t--)i[t].node===n&&(d(i[t]),i.splice(t,1))}var f,ht,i=[],e=!1,dt=n.documentElement,gt=function(){},ct="hidden",l="visibilitychange";void 0!==n.webkitHidden&&(ct="webkitHidden",l="webkitvisibilitychange");t.getComputedStyle||v();for(var lt=["","-webkit-","-moz-","-ms-"],at=document.createElement("div"),a=lt.length-1;a>=0;a--){try{at.style.position=lt[a]+"sticky"}catch(ni){}""!=at.style.position&&v()}o();t.Stickyfill={stickies:i,add:st,remove:kt,init:s,rebuild:u,pause:h,stop:c,kill:ot}}(document,window);window.jQuery&&!function(n){n.fn.Stickyfill=function(){return this.each(function(){Stickyfill.add(this)}),this}}(window.jQuery);Site=Site||{};Site.ScrollController=function(){this.initDocumentScroll=function(){var o=".header",s=".tabs",h="fixed",n="active",y=10,c=document.querySelector(o).clientHeight,p=$(".banner"),l=$(s),t=$(".tab"),a=$(".tab-item"),v=[],r=!1,u=0,i=0,f=!1,e;$(window).on("load resize",function(){$.each(a,function(n,t){var i=$(t).offset().top-l.height()-c,r=$(t).height();v[n]={top:i,height:r}});e()});e=function(){var l;if(!r){r=!0;var e=$(this).scrollTop(),c=e>p.height()-1,a=function(){t.removeClass(n)};window.requestAnimationFrame(function(){$(o).toggleClass(h,e>y);$(s).toggleClass(h,c);c||a()});!f&&c&&(l=!1,$.each(v,function(n,t){if(t.top<=e&&e<t.top+t.height)return i=n,l=!0,!1}),window.requestAnimationFrame(function(){(u===0||u!==i)&&(a(),l&&$(t[i]).addClass(n),u=i)}));r=!1}};$(document).on("scroll",e);t.on("click",function(i){i.preventDefault();f=!0;var r=$(this).data("index"),u=a[r];t.removeClass(n);$(this).addClass(n);$("html, body").stop().animate({scrollTop:$(u).offset().top-c-l.height()+5},500,"swing",function(){f=!1})})}};document.addEventListener("DOMContentLoaded",()=>{Site.scrollController=Site.scrollController||new Site.ScrollController,Site.scrollController.initDocumentScroll()});Site=Site||{};Site.Modern=function(){this.changeTab=function(){const n=document.getElementsByClassName("modern-tab");n.forEach(n=>{n.toggle("active",!1)})}};Site=Site||{};Site.FrameworkSelector=function(){function t(n,t){t.classList.remove("active");n.classList.add("active");const u=n.querySelector(".card-demo"),f=u.value;r.forEach(t=>{const i=n.innerHTML.replace(u.outerHTML,"");t.innerHTML=i+t.textContent});i.forEach(n=>{const i=t.querySelector(".card-demo").value;n.href=n.href.replace(i,f)})}function u(i){i.preventDefault();const r=i.currentTarget,u=document.body.querySelector(".components-frameworks.duo-card .wrapper-card.active")||n[0];u!==r&&t(r,u);Site.cookiesDAL.set("dx-devextreme-site-framework",r.querySelector("input").value)}const i=document.body.querySelectorAll("a.components-list-item"),r=document.body.querySelectorAll(".components-block-title"),n=document.body.querySelectorAll(".components-frameworks.duo-card .wrapper-card");this.init=function(){const r=Site.cookiesDAL.get("dx-devextreme-site-framework")||n[0].querySelector(".card-demo").value;let i=Array.from(n).find(n=>n.querySelector(".card-demo").value===r)||n[0];i&&(t(i,i),n.forEach(n=>{n.addEventListener("click",u)}))}};document.addEventListener("DOMContentLoaded",()=>{Site.frameworkSelector=Site.frameworkSelector||new Site.FrameworkSelector,Site.frameworkSelector.init()})