overlayscrollbars
Advanced tools
Comparing version 2.4.1 to 2.4.2
/*! | ||
* OverlayScrollbars | ||
* Version: 2.4.1 | ||
* Version: 2.4.2 | ||
* | ||
@@ -11,2 +11,2 @@ * Copyright (c) Rene Haas | KingSora. | ||
var OverlayScrollbarsGlobal=function(r){"use strict";var n=function(r,n){var t,e=r.v,i=r.o,o=r.u,u=e,c=function(r,n){var e=u,c=r,a=n||(i?!i(e,c):e!==c);return(a||o)&&(u=c,t=e),[u,a,t]};return[n?function(r){return c(n(u,t),r)}:c,function(r){return[u,!!r,t]}]},t="undefined"!=typeof window,e=t&&Node.ELEMENT_NODE,i=Object.prototype,o=i.toString,u=i.hasOwnProperty,c=/^\[object (.+)\]$/,a=function(r){return void 0===r},f=function(r){return null===r},l=function(r){return a(r)||f(r)?""+r:o.call(r).replace(c,"$1").toLowerCase()},s=function(r){return"number"==typeof r},v=function(r){return"string"==typeof r},d=function(r){return"boolean"==typeof r},p=function(r){return"function"==typeof r},h=function(r){return Array.isArray(r)},y=function(r){return"object"==typeof r&&!h(r)&&!f(r)},b=function(r){var n=!!r&&r.length,t=s(n)&&n>-1&&n%1==0;return!(!(h(r)||!p(r)&&t)||n>0&&y(r)&&!(n-1 in r))},w=function(r){if(!r||!y(r)||"object"!==l(r))return!1;var n,t="constructor",e=r[t],i=e&&e.prototype,o=u.call(r,t),c=i&&u.call(i,"isPrototypeOf");if(e&&!o&&!c)return!1;for(n in r);return a(n)||u.call(r,n)},g=function(r){var n=HTMLElement;return!!r&&(n?r instanceof n:r.nodeType===e)},m=function(r){var n=Element;return!!r&&(n?r instanceof n:r.nodeType===e)};function x(r,n){if(b(r))for(var t=0;t<r.length&&!1!==n(r[t],t,r);t++);else r&&x(Object.keys(r),(function(t){return n(r[t],t,r)}));return r}var O=function(r,n){return r.indexOf(n)>=0},S=function(r,n){return r.concat(n)},E=function(r,n,t){return t||v(n)||!b(n)?r.push(n):Array.prototype.push.apply(r,n),r},P=function(r){var n=Array.from,t=[];return n&&r?n(r):(r instanceof Set?r.forEach((function(r){E(t,r)})):x(r,(function(r){E(t,r)})),t)},C=function(r){return!!r&&!r.length},z=function(r){return P(new Set(r))},T=function(r,n,t){x(r,(function(r){return r&&r.apply(void 0,n||[])})),!t&&(r.length=0)},A=function(r,n){return Object.prototype.hasOwnProperty.call(r,n)},D=function(r){return r?Object.keys(r):[]},M=function r(n,t,e,i,o,u,c){var a=[t,e,i,o,u,c];return"object"==typeof n&&!f(n)||p(n)||(n={}),x(a,(function(t){x(t,(function(e,i){var o=t[i];if(n===o)return!0;var u=h(o);if(o&&w(o)){var c=n[i],a=c;u&&!h(c)?a=[]:u||w(c)||(a={}),n[i]=r(a,o)}else n[i]=u?o.slice():o}))})),n},L=function(r){for(var n in r)return!1;return!0},R=function(r,n,t){if(a(t))return r?r.getAttribute(n):null;r&&r.setAttribute(n,t)},I=function(r,n){return new Set((R(r,n)||"").split(" "))},k=function(r,n){r&&r.removeAttribute(n)},H=function(r,n,t,e){if(t){var i=I(r,n);i[e?"add":"delete"](t);var o=P(i).join(" ").trim();R(r,n,o)}},j=function(r,n,t){return I(r,n).has(t)},_=t&&Element.prototype,N=function(r,n){var t=[],e=n?m(n)&&n:document;return e?E(t,e.querySelectorAll(r)):t},B=function(r,n){return!!m(r)&&(_.matches||_.msMatchesSelector).call(r,n)},V=function(r){return r?P(r.childNodes):[]},F=function(r){return r&&r.parentElement},X=function(r,n){if(m(r)){var t=_.closest;if(t)return t.call(r,n);do{if(B(r,n))return r;r=F(r)}while(r)}},q=function(r,n,t){var e=X(r,n),i=r&&function(r,n){var t=n?m(n)&&n:document;return t?t.querySelector(r):null}(t,e),o=X(i,n)===e;return!(!e||!i)&&(e===r||i===r||o&&X(X(r,t),n)!==e)},Y=function(){},Z=function r(n){if(b(n))x(P(n),(function(n){return r(n)}));else if(n){var t=F(n);t&&t.removeChild(n)}},$=function(r,n,t){if(t&&r){var e,i=n;return b(t)?(e=document.createDocumentFragment(),x(t,(function(r){r===i&&(i=r.previousSibling),e.appendChild(r)}))):e=t,n&&(i?i!==n&&(i=i.nextSibling):i=r.firstChild),r.insertBefore(e,i||null),function(){return Z(t)}}return Y},W=function(r,n){return $(r,null,n)},G=function(r,n){return $(F(r),r,n)},K=function(r,n){return $(F(r),r&&r.nextSibling,n)},U=function(r){var n=document.createElement("div");return R(n,"class",r),n},J=function(r){var n=U();return n.innerHTML=r.trim(),x(V(n),(function(r){return Z(r)}))},Q=t?window:{},rr=Math.max,nr=Math.min,tr=Math.round,er=Math.abs,ir=Q.cancelAnimationFrame,or=Q.requestAnimationFrame,ur=Q.setTimeout,cr=Q.clearTimeout,ar=function(r){return r.charAt(0).toUpperCase()+r.slice(1)},fr=["-webkit-","-moz-","-o-","-ms-"],lr=["WebKit","Moz","O","MS","webkit","moz","o","ms"],sr={},vr={},dr=function(r){var n=sr[r]||Q[r];return A(sr,r)||(x(lr,(function(t){return!(n=n||Q[t+ar(r)])})),sr[r]=n),n},pr=dr("MutationObserver"),hr=dr("IntersectionObserver"),yr=dr("ResizeObserver"),br=dr("ScrollTimeline"),wr=function(r){for(var n=arguments.length,t=new Array(n>1?n-1:0),e=1;e<n;e++)t[e-1]=arguments[e];return r.bind.apply(r,[0].concat(t))},gr=function(r){var n,t=r?ur:or,e=r?cr:ir;return[function(i){e(n),n=t(i,p(r)?r():r)},function(){return e(n)}]},mr=function(r,n){var t,e,i,o=Y,u=n||{},c=u.p,a=u._,f=u.g,l=function(n){o(),cr(t),t=e=void 0,o=Y,r.apply(this,n)},v=function(r){return f&&e?f(e,r):r},d=function(){o!==Y&&l(v(i)||i)},h=function(){var r=P(arguments),n=p(c)?c():c;if(s(n)&&n>=0){var u=p(a)?a():a,f=s(u)&&u>=0,h=n>0?ur:or,y=n>0?cr:ir,b=v(r)||r,w=l.bind(0,b);o();var g=h(w,n);o=function(){return y(g)},f&&!t&&(t=ur(d,u)),e=i=b}else l(r)};return h.m=d,h},xr=/[^\x20\t\r\n\f]+/g,Or=function(r,n,t){var e,i=r&&r.classList,o=0,u=!1;if(i&&n&&v(n)){var c=n.match(xr)||[];for(u=c.length>0;e=c[o++];)u=!!t(i,e)&&u}return u},Sr=function(r,n){Or(r,n,(function(r,n){return r.remove(n)}))},Er=function(r,n){return Or(r,n,(function(r,n){return r.add(n)})),wr(Sr,r,n)},Pr={opacity:1,zIndex:1},Cr=function(r,n){var t=r||"",e=n?parseFloat(t):parseInt(t,10);return e==e?e:0},zr=function(r,n,t){return String((null!=n?n[t]||n.getPropertyValue(t):r.style[t])||"")};function Tr(r,n){var t=v(n);if(h(n)||t){var e=t?"":{};if(r){var i=Q.getComputedStyle(r,null);e=t?zr(r,i,n):n.reduce((function(n,t){return n[t]=zr(r,i,t),n}),e)}return e}r&&x(n,(function(t,i){return function(r,n,t){try{var i=r.style;a(i[n])?i.setProperty(n,t):i[n]=function(r,n){return!Pr[r]&&s(n)?n+"px":n}(n,t)}catch(e){}}(r,i,n[i])}))}var Ar,Dr=function(r){return"rtl"===Tr(r,"direction")},Mr=function(r,n,t){var e=n?n+"-":"",i=t?"-"+t:"",o=e+"top"+i,u=e+"right"+i,c=e+"bottom"+i,a=e+"left"+i,f=Tr(r,[o,u,c,a]);return{t:Cr(f[o],!0),r:Cr(f[u],!0),b:Cr(f[c],!0),l:Cr(f[a],!0)}},Lr=function(r,n){return"translate"+(y(r)?"("+r.x+","+r.y+")":(n?"X":"Y")+"("+r+")")},Rr="paddingTop",Ir="paddingRight",kr="paddingLeft",Hr="paddingBottom",jr="marginLeft",_r="marginRight",Nr="marginBottom",Br="overflowX",Vr="overflowY",Fr="width",Xr="height",qr="hidden",Yr={w:0,h:0},Zr=function(r,n){return n?{w:n[r+"Width"],h:n[r+"Height"]}:Yr},$r=function(r){return Zr("inner",r||Q)},Wr=wr(Zr,"offset"),Gr=wr(Zr,"client"),Kr=wr(Zr,"scroll"),Ur=function(r){var n=parseFloat(Tr(r,Fr))||0,t=parseFloat(Tr(r,Xr))||0;return{w:n-tr(n),h:t-tr(t)}},Jr=function(r){return r.getBoundingClientRect()},Qr=function(r){return!(!r||!r[Xr]&&!r[Fr])},rn=function(r,n){var t=Qr(r);return!Qr(n)&&t},nn=function(){return performance.now()},tn=function(r,n,t,e){if(r&&n){var i=!0;return x(t,(function(t){(e?e(r[t]):r[t])!==(e?e(n[t]):n[t])&&(i=!1)})),i}return!1},en=function(r,n){return tn(r,n,["w","h"])},on=function(r,n){return tn(r,n,["x","y"])},un=function(r,n){return tn(r,n,["t","r","b","l"])},cn=function(r,n,t){return tn(r,n,[Fr,Xr],t&&function(r){return tr(r)})},an="passive",fn=function(){if(a(Ar)){Ar=!1;try{Q.addEventListener(an,Y,Object.defineProperty({},an,{get:function(){Ar=!0}}))}catch(r){}}return Ar},ln=function(r){return r.split(" ")},sn=function(r,n,t,e){x(ln(n),(function(n){r.removeEventListener(n,t,e)}))},vn=function(r,n,t,e){var i,o=fn(),u=null!=(i=o&&e&&e.S)?i:o,c=e&&e.O||!1,a=e&&e.C||!1,f=o?{passive:u,capture:c}:c;return wr(T,ln(n).map((function(n){var e=a?function(i){sn(r,n,e,c),t(i)}:t;return r.addEventListener(n,e,f),wr(sn,r,n,e,c)})))},dn=function(r){return r.stopPropagation()},pn=function(r){return r.preventDefault()},hn={x:0,y:0},yn=function(r){var n=r&&Jr(r);return n?{x:n.left+Q.pageYOffset,y:n.top+Q.pageXOffset}:hn},bn=function(r,n,t){return t?t.n?-r:t.i?n-r:r:r},wn=function(r,n){var t=s(n)?{x:n,y:n}:n||{},e=t.x,i=t.y;s(e)&&(r.scrollLeft=e),s(i)&&(r.scrollTop=i)},gn=function(r){return{x:r.scrollLeft,y:r.scrollTop}},mn=function(r,n){x(h(n)?n:[n],r)},xn=function(r){var n=new Map,t=function(r,t){if(r){var e=n.get(r);mn((function(r){e&&e[r?"delete":"clear"](r)}),t)}else n.forEach((function(r){r.clear()})),n.clear()},e=function r(e,i){if(v(e)){var o=n.get(e)||new Set;return n.set(e,o),mn((function(r){p(r)&&o.add(r)}),i),wr(t,e,i)}d(i)&&i&&t();var u=D(e),c=[];return x(u,(function(n){var t=e[n];t&&E(c,r(n,t))})),wr(T,c)};return e(r||{}),[e,t,function(r,t){x(P(n.get(r)),(function(r){t&&!C(t)?r.apply(0,t):r()}))}]},On=function(r){return JSON.stringify(r,(function(r,n){if(p(n))throw 0;return n}))},Sn=function(r,n){return r?(""+n).split(".").reduce((function(r,n){return r&&A(r,n)?r[n]:void 0}),r):void 0},En={paddingAbsolute:!1,showNativeOverlaidScrollbars:!1,update:{elementEvents:[["img","load"]],debounce:[0,33],attributes:null,ignoreMutation:null},overflow:{x:"scroll",y:"scroll"},scrollbars:{theme:"os-theme-dark",visibility:"auto",autoHide:"never",autoHideDelay:1300,autoHideSuspend:!1,dragScroll:!0,clickScroll:!1,pointers:["mouse","touch","pen"]}},Pn=function r(n,t){var e={};return x(S(D(t),D(n)),(function(i){var o=n[i],u=t[i];if(y(o)&&y(u))M(e[i]={},r(o,u)),L(e[i])&&delete e[i];else if(A(t,i)&&u!==o){var a=!0;if(h(o)||h(u))try{On(o)===On(u)&&(a=!1)}catch(c){}a&&(e[i]=u)}})),e},Cn=function(r,n,t){return function(e){return[Sn(r,e),t||void 0!==Sn(n,e)]}},zn="data-overlayscrollbars",Tn="os-environment",An=Tn+"-flexbox-glue",Dn=An+"-max",Mn="os-scrollbar-hidden",Ln=zn+"-initialize",Rn=zn,In=Rn+"-overflow-x",kn=Rn+"-overflow-y",Hn="overflowVisible",jn="scrollbarHidden",_n="scrollbarPressed",Nn="updating",Bn=zn+"-viewport",Vn="arrange",Fn="scrollbarHidden",Xn=Hn,qn=zn+"-padding",Yn=Xn,Zn=zn+"-content",$n="os-size-observer",Wn=$n+"-appear",Gn=$n+"-listener",Kn=Gn+"-scroll",Un=Gn+"-item",Jn=Un+"-final",Qn="os-trinsic-observer",rt="os-no-css-vars",nt="os-theme-none",tt="os-scrollbar",et=tt+"-rtl",it=tt+"-horizontal",ot=tt+"-vertical",ut=tt+"-track",ct=tt+"-handle",at=tt+"-visible",ft=tt+"-cornerless",lt=tt+"-transitionless",st=tt+"-interaction",vt=tt+"-unusable",dt=tt+"-auto-hide",pt=dt+"-hidden",ht=tt+"-wheel",yt=ut+"-interactive",bt=ct+"-interactive",wt={},gt={},mt=function(r,n,t,e){return D(r).map((function(i){var o=r[i],u=o.static,c=o.instance,a=t?c:u;if(a){var f=t?a(t,n):a(n);return(e||gt)[i]=f}}))},xt=function(r){return gt[r]},Ot={},St={get exports(){return Ot},set exports(r){Ot=r}};!function(r){function n(){return r.exports=n=Object.assign?Object.assign.bind():function(r){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(r[e]=t[e])}return r},r.exports.T=!0,r.exports["default"]=r.exports,n.apply(this,arguments)}r.exports=n,r.exports.T=!0,r.exports["default"]=r.exports}(St);var Et,Pt="__osOptionsValidationPlugin",Ct="__osSizeObserverPlugin",zt=function(r){return(r={})[Ct]={static:function(){return function(r,n,t){var e,i,o=3333333,u="scroll",c=J('<div class="'+Un+'" dir="ltr"><div class="'+Un+'"><div class="'+Jn+'"></div></div><div class="'+Un+'"><div class="'+Jn+'" style="width: 200%; height: 200%"></div></div></div>'),a=c[0],f=a.lastChild,l=a.firstChild,s=null==l?void 0:l.firstChild,v=Wr(a),d=v,p=!1,h=function(){wn(l,o),wn(f,o)},y=function(r){i=0,p&&(v=d,n(!0===r))},b=function(r){d=Wr(a),p=!r||!en(d,v),r?(dn(r),p&&!i&&(ir(i),i=or(y))):y(!1===r),h()},w=[W(r,c),vn(l,u,b),vn(f,u,b)];return Er(r,Kn),Tr(s,((e={})[Fr]=o,e[Xr]=o,e)),or(h),[t?wr(b,!1):h,w]}}},r}(),Tt=0,At="__osScrollbarsHidingPlugin",Dt=function(r){return(r={})[At]={static:function(){return{H:function(r){var n=r.P,t=r.A,e=!(r.R||n||!t.x&&!t.y)&&document.createElement("style");return e&&(R(e,"id",Bn+"-"+Vn+"-"+Tt),Tt++),e},D:function(r,n,t,e,i,o,u){return[function(n,o,u,c){if(r){var a=i.I,f=n.L,l=n.M,s=l.x,v=l.y,d=f.x,p=f.y,h=a[c?Ir:kr],y=a.paddingTop,b=o.w+u.w,w=o.h+u.h,g={w:p&&v?p+b-h+"px":"",h:d&&s?d+w-y+"px":""};if(e){var m=e.sheet;if(m){var x=m.cssRules;if(x){x.length||m.insertRule("#"+R(e,"id")+" + ["+Bn+"~='"+Vn+"']::before {}",0);var O=x[0].style;O[Fr]=g.w,O[Xr]=g.h}}}else Tr(t,{"--os-vaw":g.w,"--os-vah":g.h})}return r},function(e,c,a){if(r){var f=a||o(e),l=i.I,s=f.M,v=s.x,d=s.y,p={},h=function(r){return x(r,(function(r){p[r]=l[r]}))};v&&h([Nr,Rr,Hr]),d&&h([jr,_r,kr,Ir]);var y=Tr(t,D(p));return H(t,Bn,Vn),n||(p[Xr]=""),Tr(t,p),[function(){u(f,c,r,y),Tr(t,y),H(t,Bn,Vn,!0)},f]}return[Y]}]},k:function(){var r={w:0,h:0},n=0;return function(t,e,i){var o=$r(),u={w:o.w-r.w,h:o.h-r.h};if(0!==u.w||0!==u.h){var c=er(u.w),a=er(u.h),f={w:er(tr(o.w/(r.w/100))),h:er(tr(o.h/(r.h/100)))},l=function(){var r=Q.screen,n=r.deviceXDPI||0,t=r.logicalXDPI||1;return Q.devicePixelRatio||n/t}(),s=c>2&&a>2,v=!function(r,n){var t=er(r),e=er(n);return!(t===e||t+1===e||t-1===e)}(f.w,f.h);if(s&&v&&l!==n&&l>0){var d=e(),p=d[0],h=d[1];M(t.V,p),h&&i()}r=o,n=l}}}}}},r}(),Mt="__osClickScrollPlugin",Lt=function(r){return(r={})[Mt]={static:function(){return function(r,n,t,e,i){var o=0,u=Y;return function c(a){u=function(r,n,t,e,i){var o=0,u=nn(),c=rr(0,133),a=function t(a){var f=nn(),l=f-u>=c,s=a?1:1-(rr(0,u+c-f)/c||0),v=(n-r)*(p(i)?i(s,s*c,0,1,c):s)+r,d=l||1===s;e&&e(v,0,d),o=d?0:or((function(){return t()}))};return a(),function(r){ir(o),r&&a(r)}}(a,a+e*Math.sign(t),0,(function(t,a,f){r(t);var l=n();if(f&&!(i>=l&&i<=l+e)){if(o)c(t);else{var s=ur((function(){c(t)}),222);u=function(){clearTimeout(s)}}o++}}))}(0),function(){return u()}}}},r}(),Rt=function(r,n,t,e){W(r,n);var i=Gr(n),o=Wr(n),u=Ur(t);return e&&Z(n),{x:o.h-i.h+u.h,y:o.w-i.w+u.w}},It=function(r,n){var t;Tr(r,((t={})[Br]=qr,t[Vr]=qr,t.direction="rtl",t)),wn(r,{x:0});var e=yn(r),i=yn(n);wn(r,{x:-999});var o=yn(n);return{i:e.x===i.x,n:i.x!==o.x}},kt=function(r,n){var t=Er(r,An),e=Jr(r),i=Jr(n),o=cn(i,e,!0),u=Er(r,Dn),c=Jr(r),a=Jr(n),f=cn(a,c,!0);return t(),u(),o&&f},Ht=function(){return Et||(Et=function(){var r=document.body,t=J('<div class="'+Tn+'"><div></div></div>')[0],i=t.firstChild,o=xn(),u=o[0],c=o[2],a=n({v:Rt(r,t,i),o:on},wr(Rt,r,t,i,!0)),f=a[0],l=(0,a[1])()[0],s=function(r){var n=!1,t=Er(r,Mn);try{n="none"===Tr(r,function(r){var n=vr[r];if(A(vr,r))return n;var t=ar(r),e=U().style;return x(fr,(function(i){var o=i.replace(/-/g,""),u=[r,i+r,o+t,ar(o)+t];return!(n=u.find((function(r){return void 0!==e[r]})))})),vr[r]=n||""}("scrollbar-width"))||"none"===Q.getComputedStyle(r,"::-webkit-scrollbar").getPropertyValue("display")}catch(e){}return t(),n}(t),v={x:0===l.x,y:0===l.y},d={elements:{host:null,padding:!s,viewport:function(r){return s&&r===r.ownerDocument.body&&r},content:!1},scrollbars:{slot:!0},cancel:{nativeScrollbarsOverlaid:!1,body:null}},p=M({},En),h=wr(M,{},p),y=wr(M,{},d),b={V:l,A:v,P:s,R:"-1"===Tr(t,"zIndex"),j:!!br,U:It(t,i),B:kt(t,i),F:wr(u,"z"),N:wr(u,"r"),q:y,W:function(r){return M(d,r)&&y()},Y:h,G:function(r){return M(p,r)&&h()},X:M({},d),Z:M({},p)},w=wr(vn,Q,"resize"),g=mr((function(r){return c(r)}),{p:33,_:99});return k(t,"style"),Z(t),w(wr(g,"r")),s||v.x&&v.y||w((function(){var r=xt(At);(r?r.k():Y)(b,f,wr(g,"z"))})),b}()),Et},jt=function(r,n){return p(n)?n.apply(0,r):n},_t=function(r,n,t,e){var i=a(e)?t:e;return jt(r,i)||n.apply(0,r)},Nt=function(r,n,t,e){var i=a(e)?t:e,o=jt(r,i);return!!o&&(g(o)?o:n.apply(0,r))},Bt=function(r,n){var t=n||{},e=t.nativeScrollbarsOverlaid,i=t.body,o=Ht(),u=o.A,c=o.P,l=(0,o.q)().cancel,s=l.nativeScrollbarsOverlaid,v=l.body,d=null!=e?e:s,p=a(i)?v:i,h=(u.x||u.y)&&d,y=r&&(f(p)?!c:p);return!!h||!!y},Vt=new WeakMap,Ft=function(r){return Vt.get(r)},Xt=function(r,n,t,e){var i=!1,o=e||{},u=o.$,c=o.J,a=o.K,f=o.rr,l=o.ar,s=o.er,v=mr((function(){return i&&t(!0)}),{p:33,_:99}),d=function(r,n,t){var e=!1,i=!!t&&new WeakMap,o=function(o){if(i&&t){var u=t.map((function(n){var t=n||[],e=t[0],i=t[1];return[i&&e?(o||N)(e,r):[],i]}));x(u,(function(t){return x(t[0],(function(o){var u=t[1],c=i.get(o)||[];if(r.contains(o)&&u){var a=vn(o,u.trim(),(function(r){e?(a(),i.delete(o)):n(r)}));i.set(o,E(c,a))}else T(c),i.delete(o)}))}))}};return o(),[function(){e=!0},o]}(r,v,a),p=d[0],h=d[1],y=c||[],b=S(u||[],y),w=function(i,o){if(!C(o)){var u=l||Y,c=s||Y,a=[],v=[],d=!1,p=!1;if(x(o,(function(t){var i=t.attributeName,o=t.target,l=t.type,s=t.oldValue,h=t.addedNodes,b=t.removedNodes,w="attributes"===l,g="childList"===l,m=r===o,S=w&&i,P=S?R(o,i||""):null,C=S&&s!==P,z=O(y,i)&&C;if(n&&(g||!m)){var T=w&&C,A=T&&f&&B(o,f),D=(A?!u(o,i,s,P):!w||T)&&!c(t,!!A,r,e);x(h,(function(r){return E(a,r)})),x(b,(function(r){return E(a,r)})),p=p||D}!n&&m&&C&&!u(o,i,s,P)&&(E(v,i),d=d||z)})),h((function(r){return z(a).reduce((function(n,t){return E(n,N(r,t)),B(t,r)?E(n,t):n}),[])})),n)return!i&&p&&t(!1),[!1];if(!C(v)||d){var b=[z(v),d];return!i&&t.apply(0,b),b}}},g=new pr(wr(w,!1));return[function(){return g.observe(r,{attributes:!0,attributeOldValue:!0,attributeFilter:b,subtree:n,childList:n,characterData:n}),i=!0,function(){i&&(p(),g.disconnect(),i=!1)}},function(){if(i)return v.m(),w(!0,g.takeRecords())}]},qt=function(r,t,e){var i=!1,o=3333333,u=e||{},c=u.tr,a=u.nr,f=u.vr,l=xt(Ct),s=Ht().U,v=wr(Dr,r),d=gr(33),p=d[0],y=d[1],b=n({v:!1,u:!0})[0];return function(){var e=[y,vn(Q,"resize",(function(){i=!!f,p((function(){i=!1}))}))],u=J('<div class="'+$n+'"><div class="'+Gn+'"></div></div>')[0],d=u.firstChild,w=function(r){var n=r instanceof ResizeObserverEntry,e=!n&&h(r),a=!1,f=!1,l=!0;if(n){var v=b(r.contentRect),d=v[0],p=v[2],y=Qr(d),w=rn(d,p);l=!(a=!(f=!p||w)&&(!y||i))}else e?l=r[1]:f=!0===r;if(c&&l){var g=e?r[0]:Dr(u);wn(u,{x:bn(o,o,g&&s),y:o})}a||t({ir:e?r:void 0,ur:!e,nr:f}),i=!1};if(yr){var g=new yr((function(r){return w(r.pop())}));g.observe(d),E(e,(function(){g.disconnect()}))}else{if(!l)return Y;var m=l(d,w,a),x=m[0],O=m[1];E(e,S([Er(u,Wn),vn(u,"animationstart",x)],O))}if(c){var P=n({v:void 0},v)[0];E(e,vn(u,"scroll",(function(r){var n=P(),t=n[0],e=n[1],i=n[2];e&&(Sr(d,"ltr rtl"),Er(d,t?"rtl":"ltr"),w([!!t,e,i])),dn(r)})))}return wr(T,E(e,W(r,u)))}},Yt=function(r,t){var e,i=U(Qn),o=n({v:!1})[0],u=function(r,n){if(r){var e=o(function(r){return 0===r.h||r.isIntersecting||r.intersectionRatio>0}(r));return e[1]&&!n&&t(e)&&[e]}},c=function(r,n){return u(n.pop(),r)};return[function(){var n=[];if(hr)(e=new hr(wr(c,!1),{root:r})).observe(i),E(n,(function(){e.disconnect()}));else{var t=function(){var r=Wr(i);u(r)};E(n,qt(i,t)()),t()}return wr(T,E(n,W(r,i)))},function(){return e&&c(!0,e.takeRecords())}]},Zt=function(r,t){var e,i,o,u,c,a=Ht().P,f="["+Rn+"]",l="["+Bn+"]",d=["tabindex"],y=["wrap","cols","rows"],b=["id","class","style","open"],w={lr:!1,cr:Dr(r.sr)},g=r.sr,m=r.dr,E=r.pr,P=r._r,C=r.hr,z=r.br,T=r.gr,A=Ht().B,L=n({o:en,v:{w:0,h:0}},(function(){var r=z(Xn,Hn),n=z(Vn,""),t=n&&gn(m);T(Xn,Hn),T(Vn,""),T("",Nn,!0);var e=Kr(E),i=Kr(m),o=Ur(m);return T(Xn,Hn,r),T(Vn,"",n),T("",Nn),wn(m,t),{w:i.w+e.w+o.w,h:i.h+e.h+o.h}})),I=L[0],H=P?y:S(b,y),j=mr(t,{p:function(){return e},_:function(){return i},g:function(r,n){var t=r[0],e=n[0];return[S(D(t),D(e)).reduce((function(r,n){return r[n]=t[n]||e[n],r}),{})]}}),_=function(r){x(r||d,(function(r){if(O(d,r)){var n=R(g,r);v(n)?R(m,r,n):k(m,r)}}))},N=function(r,n){var e=r[0],i={mr:r[1]};return M(w,{lr:e}),!n&&t(i),i},B=function(r){var n=r.ur,e=r.ir,i=r.nr,o=(!n||i||e)&&a?j:t,u=e||[],c=u[0],f=u[1];e&&M(w,{cr:c}),o({ur:n||i,nr:i,Sr:f})},V=function(r,n){var e=I()[1],i={yr:e};return e&&!n&&(r?t:j)(i),i},F=function(r,n,t){var e={wr:n};return n&&!t?j(e):C||_(r),e},Y=E||!A?Yt(g,N):[],Z=Y[0],$=Y[1],W=!C&&qt(g,B,{nr:!0,tr:!0,vr:!0}),G=Xt(g,!1,F,{J:b,$:S(b,d)}),K=G[0],U=G[1],J=C&&yr&&new yr((function(r){var n=r[r.length-1].contentRect;B({ur:!0,nr:rn(n,c)}),c=n}));return[function(){_(),J&&J.observe(g);var r=W&&W(),n=Z&&Z(),t=K();return function(){J&&J.disconnect(),r&&r(),n&&n(),u&&u(),t()}},function(r){var n=r.Or,t=r.Cr,c=r.Er,a={},v=n("update.ignoreMutation")[0],d=n("update.attributes"),y=d[0],b=d[1],w=n("update.elementEvents"),g=w[0],x=w[1],O=n("update.debounce"),P=O[0],z=O[1],T=t||c;if(x||b){o&&o(),u&&u();var A=Xt(E||m,!0,V,{$:S(H,y||[]),K:g,rr:f,er:function(r,n){var t=r.target,e=r.attributeName;return!(n||!e||C)&&q(t,f,l)||!!X(t,"."+tt)||!!function(r){return p(v)&&v(r)}(r)}}),D=A[0],L=A[1];u=D(),o=L}if(z)if(j.m(),h(P)){var R=P[0],I=P[1];e=s(R)&&R,i=s(I)&&I}else s(P)?(e=P,i=!1):(e=!1,i=!1);if(T){var k=U(),_=$&&$(),B=o&&o();k&&M(a,F(k[0],k[1],T)),_&&M(a,N(_[0],T)),B&&M(a,V(B[0],T))}return a},w]},$t=function(r,n,t){return rr(r,nr(n,t))},Wt=function(r,n,t){var e=function(r,n){return[n&&n.i?r:0,bn(r,r,n)]}(tr(n),t),i=e[0],o=e[1],u=(o-r)/o,c=r/i,a=r/o,f=t?t.n?u:t.i?c:a:a;return $t(0,1,f)},Gt=function(r,n,t,e){if(e){var i=t?"x":"y",o=e.Tr,u=e.Hr[i],c=o[i];return $t(0,1,u/(u+c))}var a=t?Fr:Xr,f=Jr(r)[a],l=Jr(n)[a];return $t(0,1,f/l)},Kt=function(r,n,t){var e=Ht(),i=e.q,o=e.R,u=i().scrollbars.slot,c=n.zr,a=n.sr,f=n.dr,l=n.Pr,s=n.Ar,v=n.Rr,p=n.hr,y=((l?{}:r).scrollbars||{}).slot,b=new Map,w=function(r){return br&&new br({source:s,axis:r})},g=w("x"),m=w("y"),P=Nt([c,a,f],(function(){return p&&v?c:a}),u,y),z=function(r){return p&&!v&&F(r)===f},A=function(r){b.forEach((function(n,t){(!r||O(h(r)?r:[r],t))&&((n||[]).forEach((function(r){r&&r.cancel()})),b.delete(t))}))},D=function(r,n,t){var e=t?Er:Sr;x(r,(function(r){e(r.Dr,n)}))},M=function(r,n){x(r,(function(r){var t=n(r);Tr(t[0],t[1])}))},L=function(r,n,t){M(r,(function(r){var e,i=r.Ir,o=r.Lr;return[i,(e={},e[t?Fr:Xr]=(100*Gt(i,o,t,n)).toFixed(3)+"%",e)]}))},R=function(r,n,t){m||m||M(r,(function(r){var e=r.Ir,i=r.Lr,o=r.Dr,u=function(r,n,t,e,i,o){var u=Ht().U,c=o?"x":"y",a=o?"Left":"Top",f=e.Tr,l=Gt(r,n,o);return 1/l*(1-l)*Wt(t["scroll"+a],f[c],o&&i&&u)}(e,i,s,n,Dr(o),t);return[e,{transform:u==u?Lr((100*u).toFixed(3)+"%",t):""}]}))},I=function(r){var n=r.Dr,t=z(n)&&n,e=gn(s);return[t,{transform:t?Lr({x:e.x+"px",y:e.y+"px"}):""}]},k=function(r,n,t,e){return n&&r.animate(t,{timeline:n,composite:e})},H=function(r,n,t,e){return k(r,n,{transform:[Lr("0px",e),Lr(rr(0,t-.5)+"px",e)]},"add")},j=[],_=[],N=[],B=function(r,n,t){var e=d(t),i=!e||!t;(!e||t)&&D(_,r,n),i&&D(N,r,n)},V=function(r){var n=r?it:ot,e=r?_:N,i=C(e)?lt:"",u=U(tt+" "+n+" "+i),c=U(ut),a=U(ct),f={Dr:u,Lr:c,Ir:a};return o||Er(u,rt),E(e,f),E(j,[W(u,c),W(c,a),wr(Z,u),A,t(f,B,r)]),f},X=wr(V,!0),q=wr(V,!1);return X(),q(),[{Mr:function(r){L(_,r,!0),L(N,r)},kr:function(r){R(_,r,!0),R(N,r)},Vr:function(){var r=function(r,n){var t,e=n.Dr,i=n.Ir,o=r&&Dr(e);A(i),b.set(i,[k(i,r?g:m,(t={transform:[Lr("0%",r),Lr(r&&o?"100%":"-100%",r)]},t[r?o?"right":"left":"top"]=["0%","100%"],t))])};_.forEach(wr(r,!0)),N.forEach(wr(r,!1))},jr:function(r){var n=r.Tr;S(N,_).forEach((function(r){var t=r.Dr;A(t),z(t)&&b.set(t,[H(t,g,n.x,!0),H(t,m,n.y)])}))},Ur:function(){m||m||(p&&M(_,I),p&&M(N,I))},Br:B,Fr:{j:g,Nr:_,qr:X,Wr:wr(M,_)},Yr:{j:m,Nr:N,qr:q,Wr:wr(M,N)}},function(){return W(P,_[0].Dr),W(P,N[0].Dr),ur((function(){B(lt)}),300),wr(T,j)}]},Ut=function(r,n,t){var e=n.sr,i=n.Ar,o=n.Gr,u=function(n,u){var c=n.Ir,a=n.Lr,f="scroll"+(u?"Left":"Top"),l="client"+(u?"X":"Y"),s=u?Fr:Xr,v=u?"left":"top",d=u?"w":"h",p=u?"x":"y",h="pointerup pointerleave pointercancel lostpointercapture",y=function(r,n){return function(e){var o=t.Tr,u=Wr(a)[d]-Wr(c)[d],l=n*e/u*o[p];i[f]=r+l}};return vn(a,"pointerdown",(function(n){var t=X(n.target,"."+ct)===c,u=t?c:a,p=r.scrollbars,b=n.button,w=n.isPrimary,g=n.pointerType,m=p.pointers,x=0===b&&w&&p[t?"dragScroll":"clickScroll"]&&(m||[]).includes(g);if(H(e,Rn,_n,!0),x){var O=!t&&n.shiftKey,S=wr(Jr,c),P=wr(Jr,a),C=function(r,n){return(r||S())[v]-(n||P())[v]},z=tr(Jr(i)[s])/Wr(i)[d]||1,A=y(i[f]||0,1/z),D=n[l],M=S(),L=P(),R=M[s],I=C(M,L)+R/2,k=D-L[v],j=t?0:k-I,_=function(r){T(N),u.releasePointerCapture(r.pointerId)},N=[wr(H,e,Rn,_n),vn(o,h,_),vn(o,"selectstart",(function(r){return pn(r)}),{S:!1}),vn(a,h,_),vn(a,"pointermove",(function(r){var n=r[l]-D;(t||O)&&A(j+n)}))];if(O)A(j);else if(!t){var B=xt(Mt);B&&E(N,B(A,C,j,R,k))}u.setPointerCapture(n.pointerId)}}))};return function(r,n,t){var c=r.Dr,a=gr(333),f=a[0],l=a[1],s=!!i.scrollBy,v=!0;return wr(T,[vn(c,"pointerenter",(function(){n(st,!0)})),vn(c,"pointerleave pointercancel",(function(){n(st,!1)})),vn(c,"wheel",(function(r){var t=r.deltaX,o=r.deltaY,u=r.deltaMode;s&&v&&0===u&&F(c)===e&&i.scrollBy({left:t,top:o,behavior:"smooth"}),v=!1,n(ht,!0),f((function(){v=!0,n(ht)})),pn(r)}),{S:!1,O:!0}),vn(c,"mousedown",wr(vn,o,"click",dn,{C:!0,O:!0}),{O:!0}),u(r,t),l])}},Jt=function(r){var n=r.pr;return function(r){var t,e=r.Zr,i=r.ia,o=r.Er,u=Ht().B,c=(e||{}).mr,a=i.lr;!n&&u||!c&&!o||Tr(n,((t={})[Xr]=a?"":"100%",t))}},Qt=function(r,t){var e=r.sr,i=r.ea,o=r.dr,u=r.hr,c=n({o:un,v:Mr()},wr(Mr,e,"padding","")),a=c[0],f=c[1];return function(r){var n=r.Or,e=r.Zr,c=r.ia,l=r.Er,s=f(l),v=s[0],d=s[1],p=Ht(),h=p.P,y=p.B,b=e||{},w=b.ur,g=b.yr,m=b.Sr,x=c.cr,O=n("paddingAbsolute"),S=O[0],E=O[1];if(w||d||l||!y&&g){var P=a(l);v=P[0],d=P[1]}var C=!u&&(E||m||d);if(C){var z,T,A=!S||!i&&!h,D=v.r+v.l,L=v.t+v.b,R=((z={})[_r]=A&&!x?-D:0,z[Nr]=A?-L:0,z[jr]=A&&x?-D:0,z.top=A?-v.t:0,z.right=A?x?-v.r:"auto":0,z.left=A?x?"auto":-v.l:0,z[Fr]=A?"calc(100% + "+D+"px)":"",z),I=((T={})[Rr]=A?v.t:0,T[Ir]=A?v.r:0,T[Hr]=A?v.b:0,T[kr]=A?v.l:0,T);Tr(i||o,R),Tr(o,I),M(t,{ea:v,oa:!A,I:i?I:M({},R,I)})}return{ua:C}}},re=function(r,t){var e=r.sr,i=r.ea,o=r.dr,u=r.ta,c=r.hr,a=r.gr,f=r.Rr,l=r.na,s=wr(rr,0),v="visible",d=42,p={o:en,v:{w:0,h:0}},h={o:on,v:{x:qr,y:qr}},y=function(r,n){var t=Q.devicePixelRatio%1!=0?1:0,e={w:s(r.w-n.w),h:s(r.h-n.h)};return{w:e.w>t?e.w:0,h:e.h>t?e.h:0}},b=function(r){return 0===r.indexOf(v)},w=Ht(),g=w.V,m=w.B,x=w.P,O=w.A,S=xt(At),E=!c&&!x&&(O.x||O.y),P=f&&c,C=n(p,wr(Ur,o)),z=C[0],T=C[1],A=n(p,wr(Kr,o)),D=A[0],L=A[1],I=n(p),k=I[0],j=I[1],_=n(p),N=_[0],B=_[1],V=n(h)[0],F=function(r,n){var i;if(Tr(o,((i={})[Xr]="",i)),n){var u,c=t.oa,a=t.ea,f=r.la,l=r.L,s=Ur(e),v=Gr(e),d="content-box"===Tr(o,"boxSizing"),p=c||d?a.b+a.t:0,h=!(O.x&&d);Tr(o,((u={})[Xr]=v.h+s.h+(f.x&&h?l.x:0)-p,u))}},X=function(r,n){var t=x||r?0:d,e=function(r,e,i){var u=Tr(o,r),c="scroll"===(n?n[r]:u);return[u,c,c&&!x?e?t:i:0,e&&!!t]},i=e(Br,O.x,g.x),u=i[0],c=i[1],a=i[2],f=i[3],l=e(Vr,O.y,g.y);return{ra:{x:u,y:l[0]},la:{x:c,y:l[1]},L:{x:a,y:l[2]},M:{x:f,y:l[3]}}},q=function(r,n,t,e){var i=function(r,n){var t=b(r),e=n&&t&&r.replace(v+"-","")||"";return[n&&!t?r:"",b(e)?"hidden":e]},o=i(t.x,n.x),u=o[0],c=o[1],a=i(t.y,n.y),f=a[0],l=a[1];return e[Br]=c&&f?c:u,e[Vr]=l&&u?l:f,X(r,e)},Z=function(r,n,e,i){var o=r.L,u=r.M,c=u.x,a=u.y,f=o.x,l=o.y,s=t.I,v=n?jr:_r,d=n?kr:Ir,p=s[v],h=s[Nr],y=s[d],b=s[Hr];i[Fr]="calc(100% + "+(l+-1*p)+"px)",i[v]=-l+p,i[Nr]=-f+h,e&&(i[d]=y+(a?l:0),i[Hr]=b+(c?f:0))},$=S?S.D(E,m,o,u,t,X,Z):[function(){return E},function(){return[Y]}],W=$[0],G=$[1];return function(r,n){var u,f=r.Or,v=r.Zr,d=r.ia,p=r.Er,h=n.ua,w=v||{},g=w.ur,S=w.wr,E=w.yr,C=w.mr,A=w.Sr,I=d.lr,_=d.cr,Y=f("showNativeOverlaidScrollbars"),$=Y[0],K=Y[1],U=f("overflow"),J=U[0],Q=U[1],nr=$&&O.x&&O.y,tr=!c&&!m&&(g||E||S||K||C),er=g||h||E||A||K,ir=b(J.x),or=b(J.y),ur=ir||or,cr=T(p),ar=L(p),fr=j(p),lr=B(p);if(K&&x&&a(Fn,jn,!nr),tr&&(u=X(nr),F(u,I)),er){ur&&a(Xn,Hn,!1);var sr=G(nr,_,u),vr=sr[0],dr=sr[1],pr=cr=z(p),hr=pr[0],yr=pr[1],br=ar=D(p),wr=br[0],gr=br[1],mr=Gr(o),xr=wr,Or=mr;vr(),(gr||yr||K)&&dr&&!nr&&W(dr,wr,hr,_)&&(Or=Gr(o),xr=Kr(o));var Sr=$r(l),Er={w:s(rr(wr.w,xr.w)+hr.w),h:s(rr(wr.h,xr.h)+hr.h)},Pr={w:s((P?Sr.w:Or.w+s(mr.w-wr.w))+hr.w),h:s((P?Sr.h:Or.h+s(mr.h-wr.h))+hr.h)};lr=N(Pr),fr=k(y(Er,Pr),p)}var Cr=lr,zr=Cr[0],Ar=Cr[1],Dr=fr,Mr=Dr[0],Lr=Dr[1],Rr=ar,Ir=Rr[0],kr=Rr[1],Hr=cr,Xr=Hr[0],qr=Hr[1],Yr={x:Mr.w>0,y:Mr.h>0},Zr=ir&&or&&(Yr.x||Yr.y)||ir&&Yr.x&&!Yr.y||or&&Yr.y&&!Yr.x;if(h||A||qr||kr||Ar||Lr||Q||K||tr||er){var Wr,Ur=((Wr={})[_r]=0,Wr[Nr]=0,Wr[jr]=0,Wr[Fr]="",Wr[Br]="",Wr[Vr]="",Wr),Jr=q(nr,Yr,J,Ur),Qr=W(Jr,Ir,Xr,_);c||Z(Jr,_,Qr,Ur),tr&&F(Jr,I),c?(R(e,In,Ur[Br]),R(e,kn,Ur[Vr])):Tr(o,Ur)}H(e,Rn,Hn,Zr),H(i,qn,Yn,Zr),c||H(o,Bn,Xn,ur);var rn=V(X(nr).ra),nn=rn[0],tn=rn[1];return M(t,{ra:nn,Hr:{x:zr.w,y:zr.h},Tr:{x:Mr.w,y:Mr.h},aa:Yr}),{Qr:tn,Jr:Ar,Kr:Lr}}},ne=function(r){var n,t=function(r){var n=Ht(),t=n.q,e=n.P,i=xt(At),o=i&&i.H,u=t().elements,c=u.host,a=u.padding,f=u.viewport,l=u.content,s=g(r),v=s?{}:r,d=v.elements||{},p=d.host,h=d.padding,y=d.viewport,b=d.content,w=s?r:v.target,m=B(w,"textarea"),x=w.ownerDocument,S=x.documentElement,P=w===x.body,C=x.defaultView,z=wr(_t,[w]),A=wr(Nt,[w]),M=wr(jt,[w]),L=wr(U,""),I=wr(z,L,f),_=wr(A,L,l),N=I(y),X=N===w,q=X&&P,$=!X&&_(b),J=!X&&g(N)&&N===$,Q=J&&!!M(l),rr=Q?I():N,nr=Q?$:_(),tr=q?S:J?rr:N,er=m?z(L,c,p):w,ir=q?tr:er,or=J?nr:$,ur=x.activeElement,cr=!X&&C.top===C&&ur===w,ar={zr:w,sr:ir,dr:tr,ea:!X&&A(L,a,h),pr:or,ta:!X&&!e&&o&&o(n),Ar:q?S:tr,Xr:q?x:tr,na:C,Gr:x,_r:m,Rr:P,Pr:s,hr:X,va:J,br:function(r,n){return j(tr,X?Rn:Bn,X?n:r)},gr:function(r,n,t){return H(tr,X?Rn:Bn,X?n:r,t)}},fr=D(ar).reduce((function(r,n){var t=ar[n];return E(r,!(!t||!g(t)||F(t))&&t)}),[]),lr=function(r){return r?O(fr,r):null},sr=ar.zr,vr=ar.sr,dr=ar.ea,pr=ar.dr,hr=ar.pr,yr=ar.ta,br=[function(){k(vr,Rn),k(vr,Ln),k(sr,Ln),P&&(k(S,Rn),k(S,Ln))}],gr=m&&lr(vr),mr=m?sr:V([hr,pr,dr,vr,sr].find((function(r){return!1===lr(r)}))),xr=q?sr:hr||pr,Or=wr(T,br);return[ar,function(){R(vr,Rn,X?"viewport":"host"),R(dr,qn,""),R(hr,Zn,""),X||R(pr,Bn,"");var r=P&&!X?Er(F(w),Mn):Y,n=function(r){W(F(r),V(r)),Z(r)};if(gr&&(K(sr,vr),E(br,(function(){K(vr,sr),Z(vr)}))),W(xr,mr),W(vr,dr),W(dr||vr,!X&&pr),W(pr,hr),E(br,(function(){r(),k(dr,qn),k(hr,Zn),k(pr,In),k(pr,kn),k(pr,Bn),lr(hr)&&n(hr),lr(pr)&&n(pr),lr(dr)&&n(dr)})),e&&!X&&(H(pr,Bn,Fn,!0),E(br,wr(k,pr,Bn))),yr&&(G(pr,yr),E(br,wr(Z,yr))),cr){var t="tabindex",i=R(pr,t);R(pr,t,"-1"),pr.focus();var o=function(){return i?R(pr,t,i):k(pr,t)},u=vn(x,"pointerdown keydown",(function(){o(),u()}));E(br,[o,u])}else ur&&ur.focus&&ur.focus();return mr=0,Or},Or]}(r),e=t[0],i=t[1],o=t[2],u={ea:{t:0,r:0,b:0,l:0},oa:!1,I:(n={},n[_r]=0,n[Nr]=0,n[jr]=0,n[Rr]=0,n[Ir]=0,n[Hr]=0,n[kr]=0,n),Hr:{x:0,y:0},Tr:{x:0,y:0},ra:{x:qr,y:qr},aa:{x:!1,y:!1}},c=e.zr,a=e.dr,f=e.gr,l=e.hr,s=Ht(),v=s.P,d=s.A,p=s.B,h=!v&&(d.x||d.y),y=[Jt(e),Qt(e,u),re(e,u)];return[i,function(r){var n={},t=(h||!p)&&gn(a);return f("",Nn,!0),x(y,(function(t){M(n,t(r,n)||{})})),f("",Nn),wn(a,t),!l&&wn(c,0),n},u,e,o]},te=function r(n,t,e){var i=Ht(),o=i.Y,u=i.F,c=i.N,a=g(n),f=a?n:n.target,l=Ft(f);if(t&&!l){var s=!1,v=[],d={},p=function(r){var n=xt(Pt);return n?n(r,!0):r},h=M({},o(),p(t)),y=xn(e),b=y[0],w=y[1],m=y[2],O=function(r,n,t,e){var i=ne(r),o=i[0],u=i[1],c=i[2],a=i[3],f=i[4],l=Zt(a,(function(r){m({},r)})),s=l[0],v=l[1],d=l[2],p=function(r,n,t,e,i,o){var u,c,a,f,l,s=Y,v=0,d=gr(),p=d[0],h=d[1],y=gr(),b=y[0],w=y[1],g=gr(100),m=g[0],x=g[1],O=gr(100),S=O[0],P=O[1],C=gr(100),z=C[0],A=C[1],D=gr((function(){return v})),M=D[0],L=D[1],R=Kt(r,i,Ut(n,i,e)),I=R[0],k=R[1],H=i.sr,j=i.Xr,_=i.Rr,N=I.Br,B=I.Mr,V=I.kr,F=I.Vr,X=I.jr,q=I.Ur,Z=function(r){N(dt,r,!0),N(dt,r,!1)},$=function(r,n){if(L(),r)N(pt);else{var t=wr(N,pt,!0);v>0&&!n?M(t):t()}},W=function(r){return"mouse"===r.pointerType},G=function(r){W(r)&&(f=c)&&$(!0)},K=[x,L,P,A,w,h,function(){return s()},vn(H,"pointerover",G,{C:!0}),vn(H,"pointerenter",G),vn(H,"pointerleave",(function(r){W(r)&&(f=!1,c&&$(!1))})),vn(H,"pointermove",(function(r){W(r)&&u&&p((function(){x(),$(!0),S((function(){u&&$(!1)}))}))})),vn(j,"scroll",(function(r){b((function(){V(e),a&&$(!0),m((function(){a&&!f&&$(!1)}))})),o(r),q()}))];return[function(){return wr(T,E(K,k()))},function(r){var n=r.Or,i=r.Er,o=r.Zr,f=r.$r||{},d=f.Jr,p=f.Kr,h=f.Qr,y=o||{},b=y.Sr,w=y.nr,g=t.cr,m=Ht().A,x=e.Tr,O=e.ra,S=e.aa,E=n("showNativeOverlaidScrollbars"),P=E[0],C=E[1],T=n("scrollbars.theme"),A=T[0],D=T[1],M=n("scrollbars.visibility"),L=M[0],R=M[1],I=n("scrollbars.autoHide"),k=I[0],H=I[1],Y=n("scrollbars.autoHideSuspend"),W=Y[0],G=Y[1],K=n("scrollbars.autoHideDelay")[0],U=n("scrollbars.dragScroll"),J=U[0],Q=U[1],rr=n("scrollbars.clickScroll"),nr=rr[0],tr=rr[1],er=w&&!i,ir=S.x||S.y,or=d||p||b||i,ur=h||R,cr=P&&m.x&&m.y,ar=function(r,n){var t="visible"===L||"auto"===L&&"scroll"===r;return N(at,t,n),t};if(v=K,er&&(W&&ir?(Z(!1),s(),z((function(){s=vn(j,"scroll",wr(Z,!0),{C:!0})}))):Z(!0)),C&&N(nt,cr),D&&(N(l),N(A,!0),l=A),G&&!W&&Z(!0),H&&(u="move"===k,c="leave"===k,$(!(a="never"!==k),!0)),Q&&N(bt,J),tr&&N(yt,nr),ur){var fr=ar(O.x,!0),lr=ar(O.y,!1);N(ft,!(fr&&lr))}or&&(B(e),V(e),F(e),q(),X(e),N(vt,!x.x,!0),N(vt,!x.y,!1),N(et,g&&!_))},{},I]}(r,n,d,c,a,e),h=p[0],y=p[1],b=p[3],w=function(r){return x(M({},r),(function(r,n,t){t[n]=!!r}))},g=function(r){return D(r).some((function(n){return!!r[n]}))},m=function(r,e){var i=r.ca,o=r.Er,c=r.Cr,a=r.fa,f=r.sa,l=i||{},s=!!o,p={Or:Cn(n,l,s),ca:l,Er:s};if(a)return y(p),!1;var h=e||v(M({},p,{Cr:c}));f&&M(h,{ur:!0,yr:!0});var b=u(M({},p,{ia:d,Zr:h}));y(M({},p,{Zr:h,$r:b}));var m=g(h),x=g(b),O=m||x||!L(l)||s;return O&&t(r,{Zr:w(h),$r:w(b)}),O};return[function(){var r=a.zr,n=a.dr,t=a.Gr,e=a.Rr?t.documentElement:r,i=gn(e),u=[s(),o(),h()];return wn(n,i),wr(T,u)},m,function(){return{da:d,pa:c}},{_a:a,ha:b},f]}(n,h,(function(r,n){var t=r.ca,e=r.Er,i=n.Zr,o=n.$r,u=i.ur,c=i.Sr,a=i.mr,f=i.yr,l=i.wr,s=o.Jr,v=o.Kr,d=o.Qr;m("updated",[I,{updateHints:{sizeChanged:u,directionChanged:c,heightIntrinsicChanged:a,overflowEdgeChanged:s,overflowAmountChanged:v,overflowStyleChanged:d,contentMutation:f,hostMutation:l},changedOptions:t||{},force:!!e}])}),(function(r){return m("scroll",[I,r])})),S=O[0],P=O[1],C=O[2],z=O[3],A=O[4],R=function(r){!function(r){Vt.delete(r)}(f),T(v),s=!0,m("destroyed",[I,r]),w()},I={options:function(r,n){if(r){var t=n?o():{},e=Pn(h,M(t,p(r)));L(e)||(M(h,e),P({ca:e}))}return M({},h)},on:b,off:function(r,n){r&&n&&w(r,n)},state:function(){var r=C(),n=r.da,t=r.pa,e=n.cr,i=t.Hr,o=t.Tr,u=t.ra,c=t.aa,a=t.ea,f=t.oa;return M({},{overflowEdge:i,overflowAmount:o,overflowStyle:u,hasOverflow:c,padding:a,paddingAbsolute:f,directionRTL:e,destroyed:s})},elements:function(){var r=z._a,n=r.zr,t=r.sr,e=r.ea,i=r.dr,o=r.pr,u=r.Ar,c=r.Xr,a=z.ha,f=a.Fr,l=a.Yr,s=function(r){var n=r.Ir,t=r.Lr;return{scrollbar:r.Dr,track:t,handle:n}},v=function(r){var n=r.Nr,t=r.qr,e=s(n[0]);return M({},e,{clone:function(){var r=s(t());return P({fa:!0}),r}})};return M({},{target:n,host:t,padding:e||i,viewport:i,content:o||i,scrollOffsetElement:u,scrollEventElement:c,scrollbarHorizontal:v(f),scrollbarVertical:v(l)})},update:function(r){return P({Er:r,Cr:!0})},destroy:wr(R,!1),plugin:function(r){return d[D(r)[0]]}},k=function(){var r=C().pa.aa,n=r.x||r.y;n&&P({sa:n})};return E(v,[u(k),c(k),A]),function(r,n){Vt.set(r,n)}(f,I),mt(wt,r,I,d),Bt(z._a.Rr,!a&&n.cancel)?(R(!0),I):(E(v,S()),m("initialized",[I]),I.update(!0),I)}return l};return te.plugin=function(r){var n=h(r),t=n?r:[r],e=t.map((function(r){return mt(r,te)[0]}));return function(r){x(r,(function(r){return x(r,(function(n,t){wt[t]=r[t]}))}))}(t),n?e:e[0]},te.valid=function(r){var n=r&&r.elements,t=p(n)&&n();return w(t)&&!!Ft(t.target)},te.env=function(){var r=Ht(),n=r.V,t=r.A,e=r.P,i=r.U,o=r.B,u=r.R,c=r.j,a=r.X,f=r.Z,l=r.q,s=r.W,v=r.Y,d=r.G;return M({},{scrollbarsSize:n,scrollbarsOverlaid:t,scrollbarsHiding:e,rtlScrollBehavior:i,flexboxGlue:o,cssCustomProperties:u,scrollTimeline:c,staticDefaultInitialization:a,staticDefaultOptions:f,getDefaultInitialization:l,setDefaultInitialization:s,getDefaultOptions:v,setDefaultOptions:d})},r.ClickScrollPlugin=Lt,r.OverlayScrollbars=te,r.ScrollbarsHidingPlugin=Dt,r.SizeObserverPlugin=zt,Object.defineProperty(r,"T",{value:!0}),r}({}); | ||
var OverlayScrollbarsGlobal=function(r){"use strict";var n=function(r,n){var t,e=r.v,i=r.o,o=r.u,u=e,c=function(r,n){var e=u,c=r,a=n||(i?!i(e,c):e!==c);return(a||o)&&(u=c,t=e),[u,a,t]};return[n?function(r){return c(n(u,t),r)}:c,function(r){return[u,!!r,t]}]},t="undefined"!=typeof window,e=t&&Node.ELEMENT_NODE,i=Object.prototype,o=i.toString,u=i.hasOwnProperty,c=/^\[object (.+)\]$/,a=function(r){return void 0===r},f=function(r){return null===r},l=function(r){return a(r)||f(r)?""+r:o.call(r).replace(c,"$1").toLowerCase()},s=function(r){return"number"==typeof r},v=function(r){return"string"==typeof r},d=function(r){return"boolean"==typeof r},p=function(r){return"function"==typeof r},h=function(r){return Array.isArray(r)},y=function(r){return"object"==typeof r&&!h(r)&&!f(r)},b=function(r){var n=!!r&&r.length,t=s(n)&&n>-1&&n%1==0;return!(!(h(r)||!p(r)&&t)||n>0&&y(r)&&!(n-1 in r))},w=function(r){if(!r||!y(r)||"object"!==l(r))return!1;var n,t="constructor",e=r[t],i=e&&e.prototype,o=u.call(r,t),c=i&&u.call(i,"isPrototypeOf");if(e&&!o&&!c)return!1;for(n in r);return a(n)||u.call(r,n)},g=function(r){var n=HTMLElement;return!!r&&(n?r instanceof n:r.nodeType===e)},m=function(r){var n=Element;return!!r&&(n?r instanceof n:r.nodeType===e)};function x(r,n){if(b(r))for(var t=0;t<r.length&&!1!==n(r[t],t,r);t++);else r&&x(Object.keys(r),(function(t){return n(r[t],t,r)}));return r}var O=function(r,n){return r.indexOf(n)>=0},S=function(r,n){return r.concat(n)},E=function(r,n,t){return t||v(n)||!b(n)?r.push(n):Array.prototype.push.apply(r,n),r},P=function(r){var n=Array.from,t=[];return n&&r?n(r):(r instanceof Set?r.forEach((function(r){E(t,r)})):x(r,(function(r){E(t,r)})),t)},C=function(r){return!!r&&!r.length},z=function(r){return P(new Set(r))},T=function(r,n,t){x(r,(function(r){return r&&r.apply(void 0,n||[])})),!t&&(r.length=0)},A=function(r,n){return Object.prototype.hasOwnProperty.call(r,n)},D=function(r){return r?Object.keys(r):[]},M=function r(n,t,e,i,o,u,c){var a=[t,e,i,o,u,c];return"object"==typeof n&&!f(n)||p(n)||(n={}),x(a,(function(t){x(t,(function(e,i){var o=t[i];if(n===o)return!0;var u=h(o);if(o&&w(o)){var c=n[i],a=c;u&&!h(c)?a=[]:u||w(c)||(a={}),n[i]=r(a,o)}else n[i]=u?o.slice():o}))})),n},L=function(r){for(var n in r)return!1;return!0},R=function(r,n,t){if(a(t))return r?r.getAttribute(n):null;r&&r.setAttribute(n,t)},I=function(r,n){return new Set((R(r,n)||"").split(" "))},k=function(r,n){r&&r.removeAttribute(n)},H=function(r,n,t,e){if(t){var i=I(r,n);i[e?"add":"delete"](t);var o=P(i).join(" ").trim();R(r,n,o)}},j=function(r,n,t){return I(r,n).has(t)},_=t&&Element.prototype,N=function(r,n){var t=[],e=n?m(n)&&n:document;return e?E(t,e.querySelectorAll(r)):t},B=function(r,n){return!!m(r)&&(_.matches||_.msMatchesSelector).call(r,n)},V=function(r){return r?P(r.childNodes):[]},F=function(r){return r&&r.parentElement},X=function(r,n){if(m(r)){var t=_.closest;if(t)return t.call(r,n);do{if(B(r,n))return r;r=F(r)}while(r)}},q=function(r,n,t){var e=X(r,n),i=r&&function(r,n){var t=n?m(n)&&n:document;return t?t.querySelector(r):null}(t,e),o=X(i,n)===e;return!(!e||!i)&&(e===r||i===r||o&&X(X(r,t),n)!==e)},Y=function(){},Z=function r(n){if(b(n))x(P(n),(function(n){return r(n)}));else if(n){var t=F(n);t&&t.removeChild(n)}},$=function(r,n,t){if(t&&r){var e,i=n;return b(t)?(e=document.createDocumentFragment(),x(t,(function(r){r===i&&(i=r.previousSibling),e.appendChild(r)}))):e=t,n&&(i?i!==n&&(i=i.nextSibling):i=r.firstChild),r.insertBefore(e,i||null),function(){return Z(t)}}return Y},W=function(r,n){return $(r,null,n)},G=function(r,n){return $(F(r),r,n)},K=function(r,n){return $(F(r),r&&r.nextSibling,n)},U=function(r){var n=document.createElement("div");return R(n,"class",r),n},J=function(r){var n=U();return n.innerHTML=r.trim(),x(V(n),(function(r){return Z(r)}))},Q=t?window:{},rr=Math.max,nr=Math.min,tr=Math.round,er=Math.abs,ir=Q.cancelAnimationFrame,or=Q.requestAnimationFrame,ur=Q.setTimeout,cr=Q.clearTimeout,ar=function(r){return r.charAt(0).toUpperCase()+r.slice(1)},fr=["-webkit-","-moz-","-o-","-ms-"],lr=["WebKit","Moz","O","MS","webkit","moz","o","ms"],sr={},vr={},dr=function(r){var n=sr[r]||Q[r];return A(sr,r)||(x(lr,(function(t){return!(n=n||Q[t+ar(r)])})),sr[r]=n),n},pr=dr("MutationObserver"),hr=dr("IntersectionObserver"),yr=dr("ResizeObserver"),br=dr("ScrollTimeline"),wr=function(r){for(var n=arguments.length,t=new Array(n>1?n-1:0),e=1;e<n;e++)t[e-1]=arguments[e];return r.bind.apply(r,[0].concat(t))},gr=function(r){var n,t=r?ur:or,e=r?cr:ir;return[function(i){e(n),n=t(i,p(r)?r():r)},function(){return e(n)}]},mr=function(r,n){var t,e,i,o=Y,u=n||{},c=u.p,a=u._,f=u.g,l=function(n){o(),cr(t),t=e=void 0,o=Y,r.apply(this,n)},v=function(r){return f&&e?f(e,r):r},d=function(){o!==Y&&l(v(i)||i)},h=function(){var r=P(arguments),n=p(c)?c():c;if(s(n)&&n>=0){var u=p(a)?a():a,f=s(u)&&u>=0,h=n>0?ur:or,y=n>0?cr:ir,b=v(r)||r,w=l.bind(0,b);o();var g=h(w,n);o=function(){return y(g)},f&&!t&&(t=ur(d,u)),e=i=b}else l(r)};return h.m=d,h},xr=/[^\x20\t\r\n\f]+/g,Or=function(r,n,t){var e,i=r&&r.classList,o=0,u=!1;if(i&&n&&v(n)){var c=n.match(xr)||[];for(u=c.length>0;e=c[o++];)u=!!t(i,e)&&u}return u},Sr=function(r,n){Or(r,n,(function(r,n){return r.remove(n)}))},Er=function(r,n){return Or(r,n,(function(r,n){return r.add(n)})),wr(Sr,r,n)},Pr={opacity:1,zIndex:1},Cr=function(r,n){var t=r||"",e=n?parseFloat(t):parseInt(t,10);return e==e?e:0},zr=function(r,n,t){return String((null!=n?n[t]||n.getPropertyValue(t):r.style[t])||"")};function Tr(r,n){var t=v(n);if(h(n)||t){var e=t?"":{};if(r){var i=Q.getComputedStyle(r,null);e=t?zr(r,i,n):n.reduce((function(n,t){return n[t]=zr(r,i,t),n}),e)}return e}r&&x(n,(function(t,i){return function(r,n,t){try{var i=r.style;a(i[n])?i.setProperty(n,t):i[n]=function(r,n){return!Pr[r]&&s(n)?n+"px":n}(n,t)}catch(e){}}(r,i,n[i])}))}var Ar,Dr=function(r){return"rtl"===Tr(r,"direction")},Mr=function(r,n,t){var e=n?n+"-":"",i=t?"-"+t:"",o=e+"top"+i,u=e+"right"+i,c=e+"bottom"+i,a=e+"left"+i,f=Tr(r,[o,u,c,a]);return{t:Cr(f[o],!0),r:Cr(f[u],!0),b:Cr(f[c],!0),l:Cr(f[a],!0)}},Lr=function(r,n){return"translate"+(y(r)?"("+r.x+","+r.y+")":(n?"X":"Y")+"("+r+")")},Rr="paddingTop",Ir="paddingRight",kr="paddingLeft",Hr="paddingBottom",jr="marginLeft",_r="marginRight",Nr="marginBottom",Br="overflowX",Vr="overflowY",Fr="width",Xr="height",qr="hidden",Yr={w:0,h:0},Zr=function(r,n){return n?{w:n[r+"Width"],h:n[r+"Height"]}:Yr},$r=function(r){return Zr("inner",r||Q)},Wr=wr(Zr,"offset"),Gr=wr(Zr,"client"),Kr=wr(Zr,"scroll"),Ur=function(r){var n=parseFloat(Tr(r,Fr))||0,t=parseFloat(Tr(r,Xr))||0;return{w:n-tr(n),h:t-tr(t)}},Jr=function(r){return r.getBoundingClientRect()},Qr=function(r){return!(!r||!r[Xr]&&!r[Fr])},rn=function(r,n){var t=Qr(r);return!Qr(n)&&t},nn=function(){return performance.now()},tn=function(r,n,t,e){if(r&&n){var i=!0;return x(t,(function(t){(e?e(r[t]):r[t])!==(e?e(n[t]):n[t])&&(i=!1)})),i}return!1},en=function(r,n){return tn(r,n,["w","h"])},on=function(r,n){return tn(r,n,["x","y"])},un=function(r,n){return tn(r,n,["t","r","b","l"])},cn=function(r,n,t){return tn(r,n,[Fr,Xr],t&&function(r){return tr(r)})},an="passive",fn=function(){if(a(Ar)){Ar=!1;try{Q.addEventListener(an,Y,Object.defineProperty({},an,{get:function(){Ar=!0}}))}catch(r){}}return Ar},ln=function(r){return r.split(" ")},sn=function(r,n,t,e){x(ln(n),(function(n){r.removeEventListener(n,t,e)}))},vn=function(r,n,t,e){var i,o=fn(),u=null!=(i=o&&e&&e.S)?i:o,c=e&&e.O||!1,a=e&&e.C||!1,f=o?{passive:u,capture:c}:c;return wr(T,ln(n).map((function(n){var e=a?function(i){sn(r,n,e,c),t(i)}:t;return r.addEventListener(n,e,f),wr(sn,r,n,e,c)})))},dn=function(r){return r.stopPropagation()},pn=function(r){return r.preventDefault()},hn={x:0,y:0},yn=function(r){var n=r&&Jr(r);return n?{x:n.left+Q.pageYOffset,y:n.top+Q.pageXOffset}:hn},bn=function(r,n,t){return t?t.n?-r:t.i?n-r:r:r},wn=function(r,n){var t=s(n)?{x:n,y:n}:n||{},e=t.x,i=t.y;s(e)&&(r.scrollLeft=e),s(i)&&(r.scrollTop=i)},gn=function(r){return{x:r.scrollLeft,y:r.scrollTop}},mn=function(r,n){x(h(n)?n:[n],r)},xn=function(r){var n=new Map,t=function(r,t){if(r){var e=n.get(r);mn((function(r){e&&e[r?"delete":"clear"](r)}),t)}else n.forEach((function(r){r.clear()})),n.clear()},e=function r(e,i){if(v(e)){var o=n.get(e)||new Set;return n.set(e,o),mn((function(r){p(r)&&o.add(r)}),i),wr(t,e,i)}d(i)&&i&&t();var u=D(e),c=[];return x(u,(function(n){var t=e[n];t&&E(c,r(n,t))})),wr(T,c)};return e(r||{}),[e,t,function(r,t){x(P(n.get(r)),(function(r){t&&!C(t)?r.apply(0,t):r()}))}]},On=function(r){return JSON.stringify(r,(function(r,n){if(p(n))throw 0;return n}))},Sn=function(r,n){return r?(""+n).split(".").reduce((function(r,n){return r&&A(r,n)?r[n]:void 0}),r):void 0},En={paddingAbsolute:!1,showNativeOverlaidScrollbars:!1,update:{elementEvents:[["img","load"]],debounce:[0,33],attributes:null,ignoreMutation:null},overflow:{x:"scroll",y:"scroll"},scrollbars:{theme:"os-theme-dark",visibility:"auto",autoHide:"never",autoHideDelay:1300,autoHideSuspend:!1,dragScroll:!0,clickScroll:!1,pointers:["mouse","touch","pen"]}},Pn=function r(n,t){var e={};return x(S(D(t),D(n)),(function(i){var o=n[i],u=t[i];if(y(o)&&y(u))M(e[i]={},r(o,u)),L(e[i])&&delete e[i];else if(A(t,i)&&u!==o){var a=!0;if(h(o)||h(u))try{On(o)===On(u)&&(a=!1)}catch(c){}a&&(e[i]=u)}})),e},Cn=function(r,n,t){return function(e){return[Sn(r,e),t||void 0!==Sn(n,e)]}},zn="data-overlayscrollbars",Tn="os-environment",An=Tn+"-flexbox-glue",Dn=An+"-max",Mn="os-scrollbar-hidden",Ln=zn+"-initialize",Rn=zn,In=Rn+"-overflow-x",kn=Rn+"-overflow-y",Hn="overflowVisible",jn="scrollbarHidden",_n="scrollbarPressed",Nn="updating",Bn=zn+"-viewport",Vn="arrange",Fn="scrollbarHidden",Xn=Hn,qn=zn+"-padding",Yn=Xn,Zn=zn+"-content",$n="os-size-observer",Wn=$n+"-appear",Gn=$n+"-listener",Kn=Gn+"-scroll",Un=Gn+"-item",Jn=Un+"-final",Qn="os-trinsic-observer",rt="os-no-css-vars",nt="os-theme-none",tt="os-scrollbar",et=tt+"-rtl",it=tt+"-horizontal",ot=tt+"-vertical",ut=tt+"-track",ct=tt+"-handle",at=tt+"-visible",ft=tt+"-cornerless",lt=tt+"-transitionless",st=tt+"-interaction",vt=tt+"-unusable",dt=tt+"-auto-hide",pt=dt+"-hidden",ht=tt+"-wheel",yt=ut+"-interactive",bt=ct+"-interactive",wt={},gt={},mt=function(r,n,t){return D(r).map((function(e){var i=r[e],o=i.static,u=i.instance,c=t||[],a=c[0],f=c[1],l=c[2],s=t?u:o;if(s){var v=t?s(a,f,n):s(n);return(l||gt)[e]=v}}))},xt=function(r){return gt[r]},Ot={},St={get exports(){return Ot},set exports(r){Ot=r}};!function(r){function n(){return r.exports=n=Object.assign?Object.assign.bind():function(r){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(r[e]=t[e])}return r},r.exports.T=!0,r.exports["default"]=r.exports,n.apply(this,arguments)}r.exports=n,r.exports.T=!0,r.exports["default"]=r.exports}(St);var Et,Pt="__osOptionsValidationPlugin",Ct="__osSizeObserverPlugin",zt=function(r){return(r={})[Ct]={static:function(){return function(r,n,t){var e,i,o=3333333,u="scroll",c=J('<div class="'+Un+'" dir="ltr"><div class="'+Un+'"><div class="'+Jn+'"></div></div><div class="'+Un+'"><div class="'+Jn+'" style="width: 200%; height: 200%"></div></div></div>'),a=c[0],f=a.lastChild,l=a.firstChild,s=null==l?void 0:l.firstChild,v=Wr(a),d=v,p=!1,h=function(){wn(l,o),wn(f,o)},y=function(r){i=0,p&&(v=d,n(!0===r))},b=function(r){d=Wr(a),p=!r||!en(d,v),r?(dn(r),p&&!i&&(ir(i),i=or(y))):y(!1===r),h()},w=[W(r,c),vn(l,u,b),vn(f,u,b)];return Er(r,Kn),Tr(s,((e={})[Fr]=o,e[Xr]=o,e)),or(h),[t?wr(b,!1):h,w]}}},r}(),Tt=0,At="__osScrollbarsHidingPlugin",Dt=function(r){return(r={})[At]={static:function(){return{H:function(r){var n=r.P,t=r.A,e=!(r.R||n||!t.x&&!t.y)&&document.createElement("style");return e&&(R(e,"id",Bn+"-"+Vn+"-"+Tt),Tt++),e},D:function(r,n,t,e,i,o,u){return[function(n,o,u,c){if(r){var a=i.I,f=n.L,l=n.M,s=l.x,v=l.y,d=f.x,p=f.y,h=a[c?Ir:kr],y=a.paddingTop,b=o.w+u.w,w=o.h+u.h,g={w:p&&v?p+b-h+"px":"",h:d&&s?d+w-y+"px":""};if(e){var m=e.sheet;if(m){var x=m.cssRules;if(x){x.length||m.insertRule("#"+R(e,"id")+" + ["+Bn+"~='"+Vn+"']::before {}",0);var O=x[0].style;O[Fr]=g.w,O[Xr]=g.h}}}else Tr(t,{"--os-vaw":g.w,"--os-vah":g.h})}return r},function(e,c,a){if(r){var f=a||o(e),l=i.I,s=f.M,v=s.x,d=s.y,p={},h=function(r){return x(r,(function(r){p[r]=l[r]}))};v&&h([Nr,Rr,Hr]),d&&h([jr,_r,kr,Ir]);var y=Tr(t,D(p));return H(t,Bn,Vn),n||(p[Xr]=""),Tr(t,p),[function(){u(f,c,r,y),Tr(t,y),H(t,Bn,Vn,!0)},f]}return[Y]}]},k:function(){var r={w:0,h:0},n=0;return function(t,e,i){var o=$r(),u={w:o.w-r.w,h:o.h-r.h};if(0!==u.w||0!==u.h){var c=er(u.w),a=er(u.h),f={w:er(tr(o.w/(r.w/100))),h:er(tr(o.h/(r.h/100)))},l=function(){var r=Q.screen,n=r.deviceXDPI||0,t=r.logicalXDPI||1;return Q.devicePixelRatio||n/t}(),s=c>2&&a>2,v=!function(r,n){var t=er(r),e=er(n);return!(t===e||t+1===e||t-1===e)}(f.w,f.h);if(s&&v&&l!==n&&l>0){var d=e(),p=d[0],h=d[1];M(t.V,p),h&&i()}r=o,n=l}}}}}},r}(),Mt="__osClickScrollPlugin",Lt=function(r){return(r={})[Mt]={static:function(){return function(r,n,t,e,i){var o=0,u=Y;return function c(a){u=function(r,n,t,e,i){var o=0,u=nn(),c=rr(0,133),a=function t(a){var f=nn(),l=f-u>=c,s=a?1:1-(rr(0,u+c-f)/c||0),v=(n-r)*(p(i)?i(s,s*c,0,1,c):s)+r,d=l||1===s;e&&e(v,0,d),o=d?0:or((function(){return t()}))};return a(),function(r){ir(o),r&&a(r)}}(a,a+e*Math.sign(t),0,(function(t,a,f){r(t);var l=n();if(f&&!(i>=l&&i<=l+e)){if(o)c(t);else{var s=ur((function(){c(t)}),222);u=function(){clearTimeout(s)}}o++}}))}(0),function(){return u()}}}},r}(),Rt=function(r,n,t,e){W(r,n);var i=Gr(n),o=Wr(n),u=Ur(t);return e&&Z(n),{x:o.h-i.h+u.h,y:o.w-i.w+u.w}},It=function(r,n){var t;Tr(r,((t={})[Br]=qr,t[Vr]=qr,t.direction="rtl",t)),wn(r,{x:0});var e=yn(r),i=yn(n);wn(r,{x:-999});var o=yn(n);return{i:e.x===i.x,n:i.x!==o.x}},kt=function(r,n){var t=Er(r,An),e=Jr(r),i=Jr(n),o=cn(i,e,!0),u=Er(r,Dn),c=Jr(r),a=Jr(n),f=cn(a,c,!0);return t(),u(),o&&f},Ht=function(){return Et||(Et=function(){var r=document.body,t=J('<div class="'+Tn+'"><div></div></div>')[0],i=t.firstChild,o=xn(),u=o[0],c=o[2],a=n({v:Rt(r,t,i),o:on},wr(Rt,r,t,i,!0)),f=a[0],l=(0,a[1])()[0],s=function(r){var n=!1,t=Er(r,Mn);try{n="none"===Tr(r,function(r){var n=vr[r];if(A(vr,r))return n;var t=ar(r),e=U().style;return x(fr,(function(i){var o=i.replace(/-/g,""),u=[r,i+r,o+t,ar(o)+t];return!(n=u.find((function(r){return void 0!==e[r]})))})),vr[r]=n||""}("scrollbar-width"))||"none"===Q.getComputedStyle(r,"::-webkit-scrollbar").getPropertyValue("display")}catch(e){}return t(),n}(t),v={x:0===l.x,y:0===l.y},d={elements:{host:null,padding:!s,viewport:function(r){return s&&r===r.ownerDocument.body&&r},content:!1},scrollbars:{slot:!0},cancel:{nativeScrollbarsOverlaid:!1,body:null}},p=M({},En),h=wr(M,{},p),y=wr(M,{},d),b={V:l,A:v,P:s,R:"-1"===Tr(t,"zIndex"),j:!!br,U:It(t,i),B:kt(t,i),F:wr(u,"z"),N:wr(u,"r"),q:y,W:function(r){return M(d,r)&&y()},Y:h,G:function(r){return M(p,r)&&h()},X:M({},d),Z:M({},p)},w=wr(vn,Q,"resize"),g=mr((function(r){return c(r,[])}),{p:33,_:99});return k(t,"style"),Z(t),w(wr(g,"r")),s||v.x&&v.y||w((function(){var r=xt(At);(r?r.k():Y)(b,f,wr(g,"z"))})),b}()),Et},jt=function(r,n){return p(n)?n.apply(0,r):n},_t=function(r,n,t,e){var i=a(e)?t:e;return jt(r,i)||n.apply(0,r)},Nt=function(r,n,t,e){var i=a(e)?t:e,o=jt(r,i);return!!o&&(g(o)?o:n.apply(0,r))},Bt=function(r,n){var t=n||{},e=t.nativeScrollbarsOverlaid,i=t.body,o=Ht(),u=o.A,c=o.P,l=(0,o.q)().cancel,s=l.nativeScrollbarsOverlaid,v=l.body,d=null!=e?e:s,p=a(i)?v:i,h=(u.x||u.y)&&d,y=r&&(f(p)?!c:p);return!!h||!!y},Vt=new WeakMap,Ft=function(r){return Vt.get(r)},Xt=function(r,n,t,e){var i=!1,o=e||{},u=o.$,c=o.J,a=o.K,f=o.rr,l=o.ar,s=o.er,v=mr((function(){return i&&t(!0)}),{p:33,_:99}),d=function(r,n,t){var e=!1,i=!!t&&new WeakMap,o=function(o){if(i&&t){var u=t.map((function(n){var t=n||[],e=t[0],i=t[1];return[i&&e?(o||N)(e,r):[],i]}));x(u,(function(t){return x(t[0],(function(o){var u=t[1],c=i.get(o)||[];if(r.contains(o)&&u){var a=vn(o,u.trim(),(function(r){e?(a(),i.delete(o)):n(r)}));i.set(o,E(c,a))}else T(c),i.delete(o)}))}))}};return o(),[function(){e=!0},o]}(r,v,a),p=d[0],h=d[1],y=c||[],b=S(u||[],y),w=function(i,o){if(!C(o)){var u=l||Y,c=s||Y,a=[],v=[],d=!1,p=!1;if(x(o,(function(t){var i=t.attributeName,o=t.target,l=t.type,s=t.oldValue,h=t.addedNodes,b=t.removedNodes,w="attributes"===l,g="childList"===l,m=r===o,S=w&&i,P=S?R(o,i||""):null,C=S&&s!==P,z=O(y,i)&&C;if(n&&(g||!m)){var T=w&&C,A=T&&f&&B(o,f),D=(A?!u(o,i,s,P):!w||T)&&!c(t,!!A,r,e);x(h,(function(r){return E(a,r)})),x(b,(function(r){return E(a,r)})),p=p||D}!n&&m&&C&&!u(o,i,s,P)&&(E(v,i),d=d||z)})),h((function(r){return z(a).reduce((function(n,t){return E(n,N(r,t)),B(t,r)?E(n,t):n}),[])})),n)return!i&&p&&t(!1),[!1];if(!C(v)||d){var b=[z(v),d];return!i&&t.apply(0,b),b}}},g=new pr(wr(w,!1));return[function(){return g.observe(r,{attributes:!0,attributeOldValue:!0,attributeFilter:b,subtree:n,childList:n,characterData:n}),i=!0,function(){i&&(p(),g.disconnect(),i=!1)}},function(){if(i)return v.m(),w(!0,g.takeRecords())}]},qt=function(r,t,e){var i=!1,o=3333333,u=e||{},c=u.tr,a=u.nr,f=u.vr,l=xt(Ct),s=Ht().U,v=wr(Dr,r),d=gr(33),p=d[0],y=d[1],b=n({v:!1,u:!0})[0];return function(){var e=[y,vn(Q,"resize",(function(){i=!!f,p((function(){i=!1}))}))],u=J('<div class="'+$n+'"><div class="'+Gn+'"></div></div>')[0],d=u.firstChild,w=function(r){var n=r instanceof ResizeObserverEntry,e=!n&&h(r),a=!1,f=!1,l=!0;if(n){var v=b(r.contentRect),d=v[0],p=v[2],y=Qr(d),w=rn(d,p);l=!(a=!(f=!p||w)&&(!y||i))}else e?l=r[1]:f=!0===r;if(c&&l){var g=e?r[0]:Dr(u);wn(u,{x:bn(o,o,g&&s),y:o})}a||t({ir:e?r:void 0,ur:!e,nr:f}),i=!1};if(yr){var g=new yr((function(r){return w(r.pop())}));g.observe(d),E(e,(function(){g.disconnect()}))}else{if(!l)return Y;var m=l(d,w,a),x=m[0],O=m[1];E(e,S([Er(u,Wn),vn(u,"animationstart",x)],O))}if(c){var P=n({v:void 0},v)[0];E(e,vn(u,"scroll",(function(r){var n=P(),t=n[0],e=n[1],i=n[2];e&&(Sr(d,"ltr rtl"),Er(d,t?"rtl":"ltr"),w([!!t,e,i])),dn(r)})))}return wr(T,E(e,W(r,u)))}},Yt=function(r,t){var e,i=U(Qn),o=n({v:!1})[0],u=function(r,n){if(r){var e=o(function(r){return 0===r.h||r.isIntersecting||r.intersectionRatio>0}(r));return e[1]&&!n&&t(e)&&[e]}},c=function(r,n){return u(n.pop(),r)};return[function(){var n=[];if(hr)(e=new hr(wr(c,!1),{root:r})).observe(i),E(n,(function(){e.disconnect()}));else{var t=function(){var r=Wr(i);u(r)};E(n,qt(i,t)()),t()}return wr(T,E(n,W(r,i)))},function(){return e&&c(!0,e.takeRecords())}]},Zt=function(r,t){var e,i,o,u,c,a=Ht().P,f="["+Rn+"]",l="["+Bn+"]",d=["tabindex"],y=["wrap","cols","rows"],b=["id","class","style","open"],w={lr:!1,cr:Dr(r.sr)},g=r.sr,m=r.dr,E=r.pr,P=r._r,C=r.hr,z=r.br,T=r.gr,A=Ht().B,L=n({o:en,v:{w:0,h:0}},(function(){var r=z(Xn,Hn),n=z(Vn,""),t=n&&gn(m);T(Xn,Hn),T(Vn,""),T("",Nn,!0);var e=Kr(E),i=Kr(m),o=Ur(m);return T(Xn,Hn,r),T(Vn,"",n),T("",Nn),wn(m,t),{w:i.w+e.w+o.w,h:i.h+e.h+o.h}})),I=L[0],H=P?y:S(b,y),j=mr(t,{p:function(){return e},_:function(){return i},g:function(r,n){var t=r[0],e=n[0];return[S(D(t),D(e)).reduce((function(r,n){return r[n]=t[n]||e[n],r}),{})]}}),_=function(r){x(r||d,(function(r){if(O(d,r)){var n=R(g,r);v(n)?R(m,r,n):k(m,r)}}))},N=function(r,n){var e=r[0],i={mr:r[1]};return M(w,{lr:e}),!n&&t(i),i},B=function(r){var n=r.ur,e=r.ir,i=r.nr,o=(!n||i||e)&&a?j:t,u=e||[],c=u[0],f=u[1];e&&M(w,{cr:c}),o({ur:n||i,nr:i,Sr:f})},V=function(r,n){var e=I()[1],i={yr:e};return e&&!n&&(r?t:j)(i),i},F=function(r,n,t){var e={wr:n};return n&&!t?j(e):C||_(r),e},Y=E||!A?Yt(g,N):[],Z=Y[0],$=Y[1],W=!C&&qt(g,B,{nr:!0,tr:!0,vr:!0}),G=Xt(g,!1,F,{J:b,$:S(b,d)}),K=G[0],U=G[1],J=C&&yr&&new yr((function(r){var n=r[r.length-1].contentRect;B({ur:!0,nr:rn(n,c)}),c=n}));return[function(){_(),J&&J.observe(g);var r=W&&W(),n=Z&&Z(),t=K();return function(){J&&J.disconnect(),r&&r(),n&&n(),u&&u(),t()}},function(r){var n=r.Or,t=r.Cr,c=r.Er,a={},v=n("update.ignoreMutation")[0],d=n("update.attributes"),y=d[0],b=d[1],w=n("update.elementEvents"),g=w[0],x=w[1],O=n("update.debounce"),P=O[0],z=O[1],T=t||c;if(x||b){o&&o(),u&&u();var A=Xt(E||m,!0,V,{$:S(H,y||[]),K:g,rr:f,er:function(r,n){var t=r.target,e=r.attributeName;return!(n||!e||C)&&q(t,f,l)||!!X(t,"."+tt)||!!function(r){return p(v)&&v(r)}(r)}}),D=A[0],L=A[1];u=D(),o=L}if(z)if(j.m(),h(P)){var R=P[0],I=P[1];e=s(R)&&R,i=s(I)&&I}else s(P)?(e=P,i=!1):(e=!1,i=!1);if(T){var k=U(),_=$&&$(),B=o&&o();k&&M(a,F(k[0],k[1],T)),_&&M(a,N(_[0],T)),B&&M(a,V(B[0],T))}return a},w]},$t=function(r,n,t){return rr(r,nr(n,t))},Wt=function(r,n,t){var e=function(r,n){return[n&&n.i?r:0,bn(r,r,n)]}(tr(n),t),i=e[0],o=e[1],u=(o-r)/o,c=r/i,a=r/o,f=t?t.n?u:t.i?c:a:a;return $t(0,1,f)},Gt=function(r,n,t,e){if(e){var i=t?"x":"y",o=e.Tr,u=e.Hr[i],c=o[i];return $t(0,1,u/(u+c))}var a=t?Fr:Xr,f=Jr(r)[a],l=Jr(n)[a];return $t(0,1,f/l)},Kt=function(r,n,t){var e=Ht(),i=e.q,o=e.R,u=i().scrollbars.slot,c=n.zr,a=n.sr,f=n.dr,l=n.Pr,s=n.Ar,v=n.Rr,p=n.hr,y=((l?{}:r).scrollbars||{}).slot,b=new Map,w=function(r){return br&&new br({source:s,axis:r})},g=w("x"),m=w("y"),P=Nt([c,a,f],(function(){return p&&v?c:a}),u,y),z=function(r){return p&&!v&&F(r)===f},A=function(r){b.forEach((function(n,t){(!r||O(h(r)?r:[r],t))&&((n||[]).forEach((function(r){r&&r.cancel()})),b.delete(t))}))},D=function(r,n,t){var e=t?Er:Sr;x(r,(function(r){e(r.Dr,n)}))},M=function(r,n){x(r,(function(r){var t=n(r);Tr(t[0],t[1])}))},L=function(r,n,t){M(r,(function(r){var e,i=r.Ir,o=r.Lr;return[i,(e={},e[t?Fr:Xr]=(100*Gt(i,o,t,n)).toFixed(3)+"%",e)]}))},R=function(r,n,t){m||m||M(r,(function(r){var e=r.Ir,i=r.Lr,o=r.Dr,u=function(r,n,t,e,i,o){var u=Ht().U,c=o?"x":"y",a=o?"Left":"Top",f=e.Tr,l=Gt(r,n,o);return 1/l*(1-l)*Wt(t["scroll"+a],f[c],o&&i&&u)}(e,i,s,n,Dr(o),t);return[e,{transform:u==u?Lr((100*u).toFixed(3)+"%",t):""}]}))},I=function(r){var n=r.Dr,t=z(n)&&n,e=gn(s);return[t,{transform:t?Lr({x:e.x+"px",y:e.y+"px"}):""}]},k=function(r,n,t,e){return n&&r.animate(t,{timeline:n,composite:e})},H=function(r,n,t,e){return k(r,n,{transform:[Lr("0px",e),Lr(rr(0,t-.5)+"px",e)]},"add")},j=[],_=[],N=[],B=function(r,n,t){var e=d(t),i=!e||!t;(!e||t)&&D(_,r,n),i&&D(N,r,n)},V=function(r){var n=r?it:ot,e=r?_:N,i=C(e)?lt:"",u=U(tt+" "+n+" "+i),c=U(ut),a=U(ct),f={Dr:u,Lr:c,Ir:a};return o||Er(u,rt),E(e,f),E(j,[W(u,c),W(c,a),wr(Z,u),A,t(f,B,r)]),f},X=wr(V,!0),q=wr(V,!1);return X(),q(),[{Mr:function(r){L(_,r,!0),L(N,r)},kr:function(r){R(_,r,!0),R(N,r)},Vr:function(){var r=function(r,n){var t,e=n.Dr,i=n.Ir,o=r&&Dr(e);A(i),b.set(i,[k(i,r?g:m,(t={transform:[Lr("0%",r),Lr(r&&o?"100%":"-100%",r)]},t[r?o?"right":"left":"top"]=["0%","100%"],t))])};_.forEach(wr(r,!0)),N.forEach(wr(r,!1))},jr:function(r){var n=r.Tr;S(N,_).forEach((function(r){var t=r.Dr;A(t),z(t)&&b.set(t,[H(t,g,n.x,!0),H(t,m,n.y)])}))},Ur:function(){m||m||(p&&M(_,I),p&&M(N,I))},Br:B,Fr:{j:g,Nr:_,qr:X,Wr:wr(M,_)},Yr:{j:m,Nr:N,qr:q,Wr:wr(M,N)}},function(){return W(P,_[0].Dr),W(P,N[0].Dr),ur((function(){B(lt)}),300),wr(T,j)}]},Ut=function(r,n,t){var e=n.sr,i=n.Ar,o=n.Gr,u=function(n,u){var c=n.Ir,a=n.Lr,f="scroll"+(u?"Left":"Top"),l="client"+(u?"X":"Y"),s=u?Fr:Xr,v=u?"left":"top",d=u?"w":"h",p=u?"x":"y",h="pointerup pointerleave pointercancel lostpointercapture",y=function(r,n){return function(e){var o=t.Tr,u=Wr(a)[d]-Wr(c)[d],l=n*e/u*o[p];i[f]=r+l}};return vn(a,"pointerdown",(function(n){var t=X(n.target,"."+ct)===c,u=t?c:a,p=r.scrollbars,b=n.button,w=n.isPrimary,g=n.pointerType,m=p.pointers,x=0===b&&w&&p[t?"dragScroll":"clickScroll"]&&(m||[]).includes(g);if(H(e,Rn,_n,!0),x){var O=!t&&n.shiftKey,S=wr(Jr,c),P=wr(Jr,a),C=function(r,n){return(r||S())[v]-(n||P())[v]},z=tr(Jr(i)[s])/Wr(i)[d]||1,A=y(i[f]||0,1/z),D=n[l],M=S(),L=P(),R=M[s],I=C(M,L)+R/2,k=D-L[v],j=t?0:k-I,_=function(r){T(N),u.releasePointerCapture(r.pointerId)},N=[wr(H,e,Rn,_n),vn(o,h,_),vn(o,"selectstart",(function(r){return pn(r)}),{S:!1}),vn(a,h,_),vn(a,"pointermove",(function(r){var n=r[l]-D;(t||O)&&A(j+n)}))];if(O)A(j);else if(!t){var B=xt(Mt);B&&E(N,B(A,C,j,R,k))}u.setPointerCapture(n.pointerId)}}))};return function(r,n,t){var c=r.Dr,a=gr(333),f=a[0],l=a[1],s=!!i.scrollBy,v=!0;return wr(T,[vn(c,"pointerenter",(function(){n(st,!0)})),vn(c,"pointerleave pointercancel",(function(){n(st,!1)})),vn(c,"wheel",(function(r){var t=r.deltaX,o=r.deltaY,u=r.deltaMode;s&&v&&0===u&&F(c)===e&&i.scrollBy({left:t,top:o,behavior:"smooth"}),v=!1,n(ht,!0),f((function(){v=!0,n(ht)})),pn(r)}),{S:!1,O:!0}),vn(c,"mousedown",wr(vn,o,"click",dn,{C:!0,O:!0}),{O:!0}),u(r,t),l])}},Jt=function(r){var n=r.pr;return function(r){var t,e=r.Zr,i=r.ia,o=r.Er,u=Ht().B,c=(e||{}).mr,a=i.lr;!n&&u||!c&&!o||Tr(n,((t={})[Xr]=a?"":"100%",t))}},Qt=function(r,t){var e=r.sr,i=r.ea,o=r.dr,u=r.hr,c=n({o:un,v:Mr()},wr(Mr,e,"padding","")),a=c[0],f=c[1];return function(r){var n=r.Or,e=r.Zr,c=r.ia,l=r.Er,s=f(l),v=s[0],d=s[1],p=Ht(),h=p.P,y=p.B,b=e||{},w=b.ur,g=b.yr,m=b.Sr,x=c.cr,O=n("paddingAbsolute"),S=O[0],E=O[1];if(w||d||l||!y&&g){var P=a(l);v=P[0],d=P[1]}var C=!u&&(E||m||d);if(C){var z,T,A=!S||!i&&!h,D=v.r+v.l,L=v.t+v.b,R=((z={})[_r]=A&&!x?-D:0,z[Nr]=A?-L:0,z[jr]=A&&x?-D:0,z.top=A?-v.t:0,z.right=A?x?-v.r:"auto":0,z.left=A?x?"auto":-v.l:0,z[Fr]=A?"calc(100% + "+D+"px)":"",z),I=((T={})[Rr]=A?v.t:0,T[Ir]=A?v.r:0,T[Hr]=A?v.b:0,T[kr]=A?v.l:0,T);Tr(i||o,R),Tr(o,I),M(t,{ea:v,oa:!A,I:i?I:M({},R,I)})}return{ua:C}}},re=function(r,t){var e=r.sr,i=r.ea,o=r.dr,u=r.ta,c=r.hr,a=r.gr,f=r.Rr,l=r.na,s=wr(rr,0),v="visible",d=42,p={o:en,v:{w:0,h:0}},h={o:on,v:{x:qr,y:qr}},y=function(r,n){var t=Q.devicePixelRatio%1!=0?1:0,e={w:s(r.w-n.w),h:s(r.h-n.h)};return{w:e.w>t?e.w:0,h:e.h>t?e.h:0}},b=function(r){return 0===r.indexOf(v)},w=Ht(),g=w.V,m=w.B,x=w.P,O=w.A,S=xt(At),E=!c&&!x&&(O.x||O.y),P=f&&c,C=n(p,wr(Ur,o)),z=C[0],T=C[1],A=n(p,wr(Kr,o)),D=A[0],L=A[1],I=n(p),k=I[0],j=I[1],_=n(p),N=_[0],B=_[1],V=n(h)[0],F=function(r,n){var i;if(Tr(o,((i={})[Xr]="",i)),n){var u,c=t.oa,a=t.ea,f=r.la,l=r.L,s=Ur(e),v=Gr(e),d="content-box"===Tr(o,"boxSizing"),p=c||d?a.b+a.t:0,h=!(O.x&&d);Tr(o,((u={})[Xr]=v.h+s.h+(f.x&&h?l.x:0)-p,u))}},X=function(r,n){var t=x||r?0:d,e=function(r,e,i){var u=Tr(o,r),c="scroll"===(n?n[r]:u);return[u,c,c&&!x?e?t:i:0,e&&!!t]},i=e(Br,O.x,g.x),u=i[0],c=i[1],a=i[2],f=i[3],l=e(Vr,O.y,g.y);return{ra:{x:u,y:l[0]},la:{x:c,y:l[1]},L:{x:a,y:l[2]},M:{x:f,y:l[3]}}},q=function(r,n,t,e){var i=function(r,n){var t=b(r),e=n&&t&&r.replace(v+"-","")||"";return[n&&!t?r:"",b(e)?"hidden":e]},o=i(t.x,n.x),u=o[0],c=o[1],a=i(t.y,n.y),f=a[0],l=a[1];return e[Br]=c&&f?c:u,e[Vr]=l&&u?l:f,X(r,e)},Z=function(r,n,e,i){var o=r.L,u=r.M,c=u.x,a=u.y,f=o.x,l=o.y,s=t.I,v=n?jr:_r,d=n?kr:Ir,p=s[v],h=s[Nr],y=s[d],b=s[Hr];i[Fr]="calc(100% + "+(l+-1*p)+"px)",i[v]=-l+p,i[Nr]=-f+h,e&&(i[d]=y+(a?l:0),i[Hr]=b+(c?f:0))},$=S?S.D(E,m,o,u,t,X,Z):[function(){return E},function(){return[Y]}],W=$[0],G=$[1];return function(r,n){var u,f=r.Or,v=r.Zr,d=r.ia,p=r.Er,h=n.ua,w=v||{},g=w.ur,S=w.wr,E=w.yr,C=w.mr,A=w.Sr,I=d.lr,_=d.cr,Y=f("showNativeOverlaidScrollbars"),$=Y[0],K=Y[1],U=f("overflow"),J=U[0],Q=U[1],nr=$&&O.x&&O.y,tr=!c&&!m&&(g||E||S||K||C),er=g||h||E||A||K,ir=b(J.x),or=b(J.y),ur=ir||or,cr=T(p),ar=L(p),fr=j(p),lr=B(p);if(K&&x&&a(Fn,jn,!nr),tr&&(u=X(nr),F(u,I)),er){ur&&a(Xn,Hn,!1);var sr=G(nr,_,u),vr=sr[0],dr=sr[1],pr=cr=z(p),hr=pr[0],yr=pr[1],br=ar=D(p),wr=br[0],gr=br[1],mr=Gr(o),xr=wr,Or=mr;vr(),(gr||yr||K)&&dr&&!nr&&W(dr,wr,hr,_)&&(Or=Gr(o),xr=Kr(o));var Sr=$r(l),Er={w:s(rr(wr.w,xr.w)+hr.w),h:s(rr(wr.h,xr.h)+hr.h)},Pr={w:s((P?Sr.w:Or.w+s(mr.w-wr.w))+hr.w),h:s((P?Sr.h:Or.h+s(mr.h-wr.h))+hr.h)};lr=N(Pr),fr=k(y(Er,Pr),p)}var Cr=lr,zr=Cr[0],Ar=Cr[1],Dr=fr,Mr=Dr[0],Lr=Dr[1],Rr=ar,Ir=Rr[0],kr=Rr[1],Hr=cr,Xr=Hr[0],qr=Hr[1],Yr={x:Mr.w>0,y:Mr.h>0},Zr=ir&&or&&(Yr.x||Yr.y)||ir&&Yr.x&&!Yr.y||or&&Yr.y&&!Yr.x;if(h||A||qr||kr||Ar||Lr||Q||K||tr||er){var Wr,Ur=((Wr={})[_r]=0,Wr[Nr]=0,Wr[jr]=0,Wr[Fr]="",Wr[Br]="",Wr[Vr]="",Wr),Jr=q(nr,Yr,J,Ur),Qr=W(Jr,Ir,Xr,_);c||Z(Jr,_,Qr,Ur),tr&&F(Jr,I),c?(R(e,In,Ur[Br]),R(e,kn,Ur[Vr])):Tr(o,Ur)}H(e,Rn,Hn,Zr),H(i,qn,Yn,Zr),c||H(o,Bn,Xn,ur);var rn=V(X(nr).ra),nn=rn[0],tn=rn[1];return M(t,{ra:nn,Hr:{x:zr.w,y:zr.h},Tr:{x:Mr.w,y:Mr.h},aa:Yr}),{Qr:tn,Jr:Ar,Kr:Lr}}},ne=function(r){var n,t=function(r){var n=Ht(),t=n.q,e=n.P,i=xt(At),o=i&&i.H,u=t().elements,c=u.host,a=u.padding,f=u.viewport,l=u.content,s=g(r),v=s?{}:r,d=v.elements||{},p=d.host,h=d.padding,y=d.viewport,b=d.content,w=s?r:v.target,m=B(w,"textarea"),x=w.ownerDocument,S=x.documentElement,P=w===x.body,C=x.defaultView,z=wr(_t,[w]),A=wr(Nt,[w]),M=wr(jt,[w]),L=wr(U,""),I=wr(z,L,f),_=wr(A,L,l),N=I(y),X=N===w,q=X&&P,$=!X&&_(b),J=!X&&g(N)&&N===$,Q=J&&!!M(l),rr=Q?I():N,nr=Q?$:_(),tr=q?S:J?rr:N,er=m?z(L,c,p):w,ir=q?tr:er,or=J?nr:$,ur=x.activeElement,cr=!X&&C.top===C&&ur===w,ar={zr:w,sr:ir,dr:tr,ea:!X&&A(L,a,h),pr:or,ta:!X&&!e&&o&&o(n),Ar:q?S:tr,Xr:q?x:tr,na:C,Gr:x,_r:m,Rr:P,Pr:s,hr:X,va:J,br:function(r,n){return j(tr,X?Rn:Bn,X?n:r)},gr:function(r,n,t){return H(tr,X?Rn:Bn,X?n:r,t)}},fr=D(ar).reduce((function(r,n){var t=ar[n];return E(r,!(!t||!g(t)||F(t))&&t)}),[]),lr=function(r){return r?O(fr,r):null},sr=ar.zr,vr=ar.sr,dr=ar.ea,pr=ar.dr,hr=ar.pr,yr=ar.ta,br=[function(){k(vr,Rn),k(vr,Ln),k(sr,Ln),P&&(k(S,Rn),k(S,Ln))}],gr=m&&lr(vr),mr=m?sr:V([hr,pr,dr,vr,sr].find((function(r){return!1===lr(r)}))),xr=q?sr:hr||pr,Or=wr(T,br);return[ar,function(){R(vr,Rn,X?"viewport":"host"),R(dr,qn,""),R(hr,Zn,""),X||R(pr,Bn,"");var r=P&&!X?Er(F(w),Mn):Y,n=function(r){W(F(r),V(r)),Z(r)};if(gr&&(K(sr,vr),E(br,(function(){K(vr,sr),Z(vr)}))),W(xr,mr),W(vr,dr),W(dr||vr,!X&&pr),W(pr,hr),E(br,(function(){r(),k(dr,qn),k(hr,Zn),k(pr,In),k(pr,kn),k(pr,Bn),lr(hr)&&n(hr),lr(pr)&&n(pr),lr(dr)&&n(dr)})),e&&!X&&(H(pr,Bn,Fn,!0),E(br,wr(k,pr,Bn))),yr&&(G(pr,yr),E(br,wr(Z,yr))),cr){var t="tabindex",i=R(pr,t);R(pr,t,"-1"),pr.focus();var o=function(){return i?R(pr,t,i):k(pr,t)},u=vn(x,"pointerdown keydown",(function(){o(),u()}));E(br,[o,u])}else ur&&ur.focus&&ur.focus();return mr=0,Or},Or]}(r),e=t[0],i=t[1],o=t[2],u={ea:{t:0,r:0,b:0,l:0},oa:!1,I:(n={},n[_r]=0,n[Nr]=0,n[jr]=0,n[Rr]=0,n[Ir]=0,n[Hr]=0,n[kr]=0,n),Hr:{x:0,y:0},Tr:{x:0,y:0},ra:{x:qr,y:qr},aa:{x:!1,y:!1}},c=e.zr,a=e.dr,f=e.gr,l=e.hr,s=Ht(),v=s.P,d=s.A,p=s.B,h=!v&&(d.x||d.y),y=[Jt(e),Qt(e,u),re(e,u)];return[i,function(r){var n={},t=(h||!p)&&gn(a);return f("",Nn,!0),x(y,(function(t){M(n,t(r,n)||{})})),f("",Nn),wn(a,t),!l&&wn(c,0),n},u,e,o]},te=function r(n,t,e){var i=Ht(),o=i.Y,u=i.F,c=i.N,a=g(n),f=a?n:n.target,l=Ft(f);if(t&&!l){var s=!1,v=[],d={},p=function(r){var n=xt(Pt);return n?n(r,!0):r},h=M({},o(),p(t)),y=xn(),b=y[0],w=y[1],m=y[2],O=xn(e),S=O[0],P=O[1],C=O[2],z=function(r,n){C(r,n),m(r,n)},A=function(r,n,t,e){var i=ne(r),o=i[0],u=i[1],c=i[2],a=i[3],f=i[4],l=Zt(a,(function(r){m({},r)})),s=l[0],v=l[1],d=l[2],p=function(r,n,t,e,i,o){var u,c,a,f,l,s=Y,v=0,d=gr(),p=d[0],h=d[1],y=gr(),b=y[0],w=y[1],g=gr(100),m=g[0],x=g[1],O=gr(100),S=O[0],P=O[1],C=gr(100),z=C[0],A=C[1],D=gr((function(){return v})),M=D[0],L=D[1],R=Kt(r,i,Ut(n,i,e)),I=R[0],k=R[1],H=i.sr,j=i.Xr,_=i.Rr,N=I.Br,B=I.Mr,V=I.kr,F=I.Vr,X=I.jr,q=I.Ur,Z=function(r){N(dt,r,!0),N(dt,r,!1)},$=function(r,n){if(L(),r)N(pt);else{var t=wr(N,pt,!0);v>0&&!n?M(t):t()}},W=function(r){return"mouse"===r.pointerType},G=function(r){W(r)&&(f=c)&&$(!0)},K=[x,L,P,A,w,h,function(){return s()},vn(H,"pointerover",G,{C:!0}),vn(H,"pointerenter",G),vn(H,"pointerleave",(function(r){W(r)&&(f=!1,c&&$(!1))})),vn(H,"pointermove",(function(r){W(r)&&u&&p((function(){x(),$(!0),S((function(){u&&$(!1)}))}))})),vn(j,"scroll",(function(r){b((function(){V(e),a&&$(!0),m((function(){a&&!f&&$(!1)}))})),o(r),q()}))];return[function(){return wr(T,E(K,k()))},function(r){var n=r.Or,i=r.Er,o=r.Zr,f=r.$r||{},d=f.Jr,p=f.Kr,h=f.Qr,y=o||{},b=y.Sr,w=y.nr,g=t.cr,m=Ht().A,x=e.Tr,O=e.ra,S=e.aa,E=n("showNativeOverlaidScrollbars"),P=E[0],C=E[1],T=n("scrollbars.theme"),A=T[0],D=T[1],M=n("scrollbars.visibility"),L=M[0],R=M[1],I=n("scrollbars.autoHide"),k=I[0],H=I[1],Y=n("scrollbars.autoHideSuspend"),W=Y[0],G=Y[1],K=n("scrollbars.autoHideDelay")[0],U=n("scrollbars.dragScroll"),J=U[0],Q=U[1],rr=n("scrollbars.clickScroll"),nr=rr[0],tr=rr[1],er=w&&!i,ir=S.x||S.y,or=d||p||b||i,ur=h||R,cr=P&&m.x&&m.y,ar=function(r,n){var t="visible"===L||"auto"===L&&"scroll"===r;return N(at,t,n),t};if(v=K,er&&(W&&ir?(Z(!1),s(),z((function(){s=vn(j,"scroll",wr(Z,!0),{C:!0})}))):Z(!0)),C&&N(nt,cr),D&&(N(l),N(A,!0),l=A),G&&!W&&Z(!0),H&&(u="move"===k,c="leave"===k,$(!(a="never"!==k),!0)),Q&&N(bt,J),tr&&N(yt,nr),ur){var fr=ar(O.x,!0),lr=ar(O.y,!1);N(ft,!(fr&&lr))}or&&(B(e),V(e),F(e),q(),X(e),N(vt,!x.x,!0),N(vt,!x.y,!1),N(et,g&&!_))},{},I]}(r,n,d,c,a,(function(r){return z("scroll",[N,r])})),h=p[0],y=p[1],b=p[3],w=function(r){return x(M({},r),(function(r,n,t){t[n]=!!r}))},g=function(r){return D(r).some((function(n){return!!r[n]}))},m=function(r,t){var e=r.ca,i=r.Er,o=r.Cr,c=r.fa,a=r.sa,f=e||{},l=!!i,s={Or:Cn(n,f,l),ca:f,Er:l};if(c)return y(s),!1;var p=t||v(M({},s,{Cr:o}));a&&M(p,{ur:!0,yr:!0});var h=u(M({},s,{ia:d,Zr:p}));y(M({},s,{Zr:p,$r:h}));var b=g(p),m=g(h),x=b||m||!L(f)||l;return x&&function(r,n){var t=r.ca,e=r.Er,i=n.Zr,o=n.$r,u=i.ur,c=i.Sr,a=i.mr,f=i.yr,l=i.wr,s=o.Jr,v=o.Kr,d=o.Qr;z("updated",[N,{updateHints:{sizeChanged:u,directionChanged:c,heightIntrinsicChanged:a,overflowEdgeChanged:s,overflowAmountChanged:v,overflowStyleChanged:d,contentMutation:f,hostMutation:l},changedOptions:t||{},force:!!e}])}(r,{Zr:w(p),$r:w(h)}),x};return[function(){var r=a.zr,n=a.dr,t=a.Gr,e=a.Rr?t.documentElement:r,i=gn(e),u=[s(),o(),h()];return wn(n,i),wr(T,u)},m,function(){return{da:d,pa:c}},{_a:a,ha:b},f]}(n,h),R=A[0],I=A[1],k=A[2],H=A[3],j=A[4],_=function(r){!function(r){Vt.delete(r)}(f),T(v),s=!0,z("destroyed",[N,r]),w(),P()},N={options:function(r,n){if(r){var t=n?o():{},e=Pn(h,M(t,p(r)));L(e)||(M(h,e),I({ca:e}))}return M({},h)},on:S,off:function(r,n){r&&n&&P(r,n)},state:function(){var r=k(),n=r.da,t=r.pa,e=n.cr,i=t.Hr,o=t.Tr,u=t.ra,c=t.aa,a=t.ea,f=t.oa;return M({},{overflowEdge:i,overflowAmount:o,overflowStyle:u,hasOverflow:c,padding:a,paddingAbsolute:f,directionRTL:e,destroyed:s})},elements:function(){var r=H._a,n=r.zr,t=r.sr,e=r.ea,i=r.dr,o=r.pr,u=r.Ar,c=r.Xr,a=H.ha,f=a.Fr,l=a.Yr,s=function(r){var n=r.Ir,t=r.Lr;return{scrollbar:r.Dr,track:t,handle:n}},v=function(r){var n=r.Nr,t=r.qr,e=s(n[0]);return M({},e,{clone:function(){var r=s(t());return I({fa:!0}),r}})};return M({},{target:n,host:t,padding:e||i,viewport:i,content:o||i,scrollOffsetElement:u,scrollEventElement:c,scrollbarHorizontal:v(f),scrollbarVertical:v(l)})},update:function(r){return I({Er:r,Cr:!0})},destroy:wr(_,!1),plugin:function(r){return d[D(r)[0]]}},B=function(){var r=k().pa.aa,n=r.x||r.y;n&&I({sa:n})};return E(v,[u(B),c(B),j]),function(r,n){Vt.set(r,n)}(f,N),mt(wt,r,[N,b,d]),Bt(H._a.Rr,!a&&n.cancel)?(_(!0),N):(E(v,R()),z("initialized",[N]),N.update(!0),N)}return l};return te.plugin=function(r){var n=h(r),t=n?r:[r],e=t.map((function(r){return mt(r,te)[0]}));return function(r){x(r,(function(r){return x(r,(function(n,t){wt[t]=r[t]}))}))}(t),n?e:e[0]},te.valid=function(r){var n=r&&r.elements,t=p(n)&&n();return w(t)&&!!Ft(t.target)},te.env=function(){var r=Ht(),n=r.V,t=r.A,e=r.P,i=r.U,o=r.B,u=r.R,c=r.j,a=r.X,f=r.Z,l=r.q,s=r.W,v=r.Y,d=r.G;return M({},{scrollbarsSize:n,scrollbarsOverlaid:t,scrollbarsHiding:e,rtlScrollBehavior:i,flexboxGlue:o,cssCustomProperties:u,scrollTimeline:c,staticDefaultInitialization:a,staticDefaultOptions:f,getDefaultInitialization:l,setDefaultInitialization:s,getDefaultOptions:v,setDefaultOptions:d})},r.ClickScrollPlugin=Lt,r.OverlayScrollbars=te,r.ScrollbarsHidingPlugin=Dt,r.SizeObserverPlugin=zt,Object.defineProperty(r,"T",{value:!0}),r}({}); |
/*! | ||
* OverlayScrollbars | ||
* Version: 2.4.1 | ||
* Version: 2.4.2 | ||
* | ||
@@ -11,2 +11,2 @@ * Copyright (c) Rene Haas | KingSora. | ||
var OverlayScrollbarsGlobal=function(t){"use strict";const e=(t,e)=>{const{o:n,u:r,_:o}=t;let s,l=n;const c=(t,e)=>{const n=l,c=t,i=e||(r?!r(n,c):n!==c);return(i||o)&&(l=c,s=n),[l,i,s]};return[e?t=>c(e(l,s),t):c,t=>[l,!!t,s]]},n="undefined"!=typeof window,r=n&&Node.ELEMENT_NODE,{toString:o,hasOwnProperty:s}=Object.prototype,l=/^\[object (.+)\]$/,c=t=>void 0===t,i=t=>null===t,a=t=>c(t)||i(t)?`${t}`:o.call(t).replace(l,"$1").toLowerCase(),u=t=>"number"==typeof t,d=t=>"string"==typeof t,p=t=>"boolean"==typeof t,f=t=>"function"==typeof t,h=t=>Array.isArray(t),y=t=>"object"==typeof t&&!h(t)&&!i(t),v=t=>{const e=!!t&&t.length,n=u(e)&&e>-1&&e%1==0;return!(!(h(t)||!f(t)&&n)||e>0&&y(t)&&!(e-1 in t))},b=t=>{if(!t||!y(t)||"object"!==a(t))return!1;let e;const n="constructor",r=t[n],o=r&&r.prototype,l=s.call(t,n),i=o&&s.call(o,"isPrototypeOf");if(r&&!l&&!i)return!1;for(e in t);return c(e)||s.call(t,e)},w=t=>{const e=HTMLElement;return!!t&&(e?t instanceof e:t.nodeType===r)},g=t=>{const e=Element;return!!t&&(e?t instanceof e:t.nodeType===r)};function x(t,e){if(v(t))for(let n=0;n<t.length&&!1!==e(t[n],n,t);n++);else t&&x(Object.keys(t),(n=>e(t[n],n,t)));return t}const m=(t,e)=>t.indexOf(e)>=0,$=(t,e)=>t.concat(e),S=(t,e,n)=>(n||d(e)||!v(e)?t.push(e):Array.prototype.push.apply(t,e),t),O=t=>{const e=Array.from,n=[];return e&&t?e(t):(t instanceof Set?t.forEach((t=>{S(n,t)})):x(t,(t=>{S(n,t)})),n)},E=t=>!!t&&!t.length,C=t=>O(new Set(t)),T=(t,e,n)=>{x(t,(t=>t&&t.apply(void 0,e||[]))),!n&&(t.length=0)},H=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),P=t=>t?Object.keys(t):[],z=(t,e,n,r,o,s,l)=>{const c=[e,n,r,o,s,l];return"object"==typeof t&&!i(t)||f(t)||(t={}),x(c,(e=>{x(e,((n,r)=>{const o=e[r];if(t===o)return!0;const s=h(o);if(o&&b(o)){const e=t[r];let n=e;s&&!h(e)?n=[]:s||b(e)||(n={}),t[r]=z(n,o)}else t[r]=s?o.slice():o}))})),t},D=t=>{for(const e in t)return!1;return!0},M=(t,e,n)=>{if(c(n))return t?t.getAttribute(e):null;t&&t.setAttribute(e,n)},k=(t,e)=>new Set((M(t,e)||"").split(" ")),A=(t,e)=>{t&&t.removeAttribute(e)},R=(t,e,n,r)=>{if(n){const o=k(t,e);o[r?"add":"delete"](n);const s=O(o).join(" ").trim();M(t,e,s)}},L=n&&Element.prototype,I=(t,e)=>{const n=[],r=e?g(e)&&e:document;return r?S(n,r.querySelectorAll(t)):n},_=(t,e)=>!!g(t)&&(L.matches||L.msMatchesSelector).call(t,e),X=t=>t?O(t.childNodes):[],j=t=>t&&t.parentElement,N=(t,e)=>{if(g(t)){const n=L.closest;if(n)return n.call(t,e);do{if(_(t,e))return t;t=j(t)}while(t)}},F=()=>{},V=t=>{if(v(t))x(O(t),(t=>V(t)));else if(t){const e=j(t);e&&e.removeChild(t)}},Y=(t,e,n)=>{if(n&&t){let r,o=e;return v(n)?(r=document.createDocumentFragment(),x(n,(t=>{t===o&&(o=t.previousSibling),r.appendChild(t)}))):r=n,e&&(o?o!==e&&(o=o.nextSibling):o=t.firstChild),t.insertBefore(r,o||null),()=>V(n)}return F},B=(t,e)=>Y(t,null,e),G=(t,e)=>Y(j(t),t&&t.nextSibling,e),U=t=>{const e=document.createElement("div");return M(e,"class",t),e},W=t=>{const e=U();return e.innerHTML=t.trim(),x(X(e),(t=>V(t)))},q=n?window:{},K=Math.max,J=Math.min,Q=Math.round,Z=Math.abs,tt=q.cancelAnimationFrame,et=q.requestAnimationFrame,nt=q.setTimeout,rt=q.clearTimeout,ot=t=>t.charAt(0).toUpperCase()+t.slice(1),st=["-webkit-","-moz-","-o-","-ms-"],lt=["WebKit","Moz","O","MS","webkit","moz","o","ms"],ct={},it={},at=t=>{let e=it[t];if(H(it,t))return e;const n=ot(t),r=U().style;return x(st,(o=>{const s=o.replace(/-/g,""),l=[t,o+t,s+n,ot(s)+n];return!(e=l.find((t=>void 0!==r[t])))})),it[t]=e||""},ut=t=>{let e=ct[t]||q[t];return H(ct,t)||(x(lt,(n=>(e=e||q[n+ot(t)],!e))),ct[t]=e),e},dt=ut("MutationObserver"),pt=ut("IntersectionObserver"),ft=ut("ResizeObserver"),ht=ut("ScrollTimeline"),yt=(t,...e)=>t.bind(0,...e),vt=t=>{let e;const n=t?nt:et,r=t?rt:tt;return[o=>{r(e),e=n(o,f(t)?t():t)},()=>r(e)]},bt=(t,e)=>{let n,r,o,s=F;const{v:l,p:c,g:i}=e||{},a=function(e){s(),rt(n),n=r=void 0,s=F,t.apply(this,e)},d=t=>i&&r?i(r,t):t,p=()=>{s!==F&&a(d(o)||o)},h=function(){const t=O(arguments),e=f(l)?l():l;if(u(e)&&e>=0){const l=f(c)?c():c,i=u(l)&&l>=0,h=e>0?nt:et,y=e>0?rt:tt,v=d(t)||t,b=a.bind(0,v);s();const w=h(b,e);s=()=>y(w),i&&!n&&(n=nt(p,l)),r=o=v}else a(t)};return h.m=p,h},wt=/[^\x20\t\r\n\f]+/g,gt=(t,e,n)=>{const r=t&&t.classList;let o,s=0,l=!1;if(r&&e&&d(e)){const t=e.match(wt)||[];for(l=t.length>0;o=t[s++];)l=!!n(r,o)&&l}return l},xt=(t,e)=>{gt(t,e,((t,e)=>t.remove(e)))},mt=(t,e)=>(gt(t,e,((t,e)=>t.add(e))),yt(xt,t,e)),$t={opacity:1,zIndex:1},St=(t,e)=>{const n=t||"",r=e?parseFloat(n):parseInt(n,10);return r==r?r:0},Ot=(t,e,n)=>String((null!=e?e[n]||e.getPropertyValue(n):t.style[n])||"");function Et(t,e){const n=d(e);if(h(e)||n){let r=n?"":{};if(t){const o=q.getComputedStyle(t,null);r=n?Ot(t,o,e):e.reduce(((e,n)=>(e[n]=Ot(t,o,n),e)),r)}return r}t&&x(e,((n,r)=>((t,e,n)=>{try{const{style:r}=t;c(r[e])?r.setProperty(e,n):r[e]=((t,e)=>!$t[t]&&u(e)?`${e}px`:e)(e,n)}catch(r){}})(t,r,e[r])))}const Ct=t=>"rtl"===Et(t,"direction"),Tt=(t,e,n)=>{const r=e?`${e}-`:"",o=n?`-${n}`:"",s=`${r}top${o}`,l=`${r}right${o}`,c=`${r}bottom${o}`,i=`${r}left${o}`,a=Et(t,[s,l,c,i]);return{t:St(a[s],!0),r:St(a[l],!0),b:St(a[c],!0),l:St(a[i],!0)}},Ht=(t,e)=>`translate${y(t)?`(${t.x},${t.y})`:`${e?"X":"Y"}(${t})`}`,Pt="paddingTop",zt="paddingRight",Dt="paddingLeft",Mt="paddingBottom",kt="marginLeft",At="marginRight",Rt="marginBottom",Lt="overflowX",It="overflowY",_t="width",Xt="height",jt="hidden",Nt={w:0,h:0},Ft=(t,e)=>e?{w:e[`${t}Width`],h:e[`${t}Height`]}:Nt,Vt=t=>Ft("inner",t||q),Yt=yt(Ft,"offset"),Bt=yt(Ft,"client"),Gt=yt(Ft,"scroll"),Ut=t=>{const e=parseFloat(Et(t,_t))||0,n=parseFloat(Et(t,Xt))||0;return{w:e-Q(e),h:n-Q(n)}},Wt=t=>t.getBoundingClientRect(),qt=t=>!(!t||!t[Xt]&&!t[_t]),Kt=(t,e)=>{const n=qt(t);return!qt(e)&&n},Jt=()=>performance.now(),Qt=(t,e,n,r)=>{if(t&&e){let o=!0;return x(n,(n=>{(r?r(t[n]):t[n])!==(r?r(e[n]):e[n])&&(o=!1)})),o}return!1},Zt=(t,e)=>Qt(t,e,["w","h"]),te=(t,e)=>Qt(t,e,["x","y"]),ee=(t,e)=>Qt(t,e,["t","r","b","l"]),ne=(t,e,n)=>Qt(t,e,[_t,Xt],n&&(t=>Q(t)));let re;const oe="passive",se=()=>{if(c(re)){re=!1;try{q.addEventListener(oe,F,Object.defineProperty({},oe,{get(){re=!0}}))}catch(t){}}return re},le=t=>t.split(" "),ce=(t,e,n,r)=>{x(le(e),(e=>{t.removeEventListener(e,n,r)}))},ie=(t,e,n,r)=>{var o;const s=se(),l=null!=(o=s&&r&&r.S)?o:s,c=r&&r.$||!1,i=r&&r.O||!1,a=s?{passive:l,capture:c}:c;return yt(T,le(e).map((e=>{const r=i?o=>{ce(t,e,r,c),n(o)}:n;return t.addEventListener(e,r,a),yt(ce,t,e,r,c)})))},ae=t=>t.stopPropagation(),ue=t=>t.preventDefault(),de={x:0,y:0},pe=t=>{const e=t&&Wt(t);return e?{x:e.left+q.pageYOffset,y:e.top+q.pageXOffset}:de},fe=(t,e,n)=>n?n.n?-t:n.i?e-t:t:t,he=(t,e)=>{const{x:n,y:r}=u(e)?{x:e,y:e}:e||{};u(n)&&(t.scrollLeft=n),u(r)&&(t.scrollTop=r)},ye=t=>({x:t.scrollLeft,y:t.scrollTop}),ve=(t,e)=>{x(h(e)?e:[e],t)},be=t=>{const e=new Map,n=(t,n)=>{if(t){const r=e.get(t);ve((t=>{r&&r[t?"delete":"clear"](t)}),n)}else e.forEach((t=>{t.clear()})),e.clear()},r=(t,o)=>{if(d(t)){const r=e.get(t)||new Set;return e.set(t,r),ve((t=>{f(t)&&r.add(t)}),o),yt(n,t,o)}p(o)&&o&&n();const s=P(t),l=[];return x(s,(e=>{const n=t[e];n&&S(l,r(e,n))})),yt(T,l)};return r(t||{}),[r,n,(t,n)=>{x(O(e.get(t)),(t=>{n&&!E(n)?t.apply(0,n):t()}))}]},we=t=>JSON.stringify(t,((t,e)=>{if(f(e))throw 0;return e})),ge=(t,e)=>t?`${e}`.split(".").reduce(((t,e)=>t&&H(t,e)?t[e]:void 0),t):void 0,xe={paddingAbsolute:!1,showNativeOverlaidScrollbars:!1,update:{elementEvents:[["img","load"]],debounce:[0,33],attributes:null,ignoreMutation:null},overflow:{x:"scroll",y:"scroll"},scrollbars:{theme:"os-theme-dark",visibility:"auto",autoHide:"never",autoHideDelay:1300,autoHideSuspend:!1,dragScroll:!0,clickScroll:!1,pointers:["mouse","touch","pen"]}},me=(t,e)=>{const n={};return x($(P(e),P(t)),(r=>{const o=t[r],s=e[r];if(y(o)&&y(s))z(n[r]={},me(o,s)),D(n[r])&&delete n[r];else if(H(e,r)&&s!==o){let t=!0;if(h(o)||h(s))try{we(o)===we(s)&&(t=!1)}catch(L){}t&&(n[r]=s)}})),n},$e=(t,e,n)=>r=>[ge(t,r),n||void 0!==ge(e,r)],Se=`data-overlayscrollbars`,Oe="os-environment",Ee=`${Oe}-flexbox-glue`,Ce=`${Ee}-max`,Te=`os-scrollbar-hidden`,He=`${Se}-initialize`,Pe=Se,ze=`${Pe}-overflow-x`,De=`${Pe}-overflow-y`,Me="overflowVisible",ke="scrollbarHidden",Ae="scrollbarPressed",Re="updating",Le=`${Se}-viewport`,Ie="arrange",_e="scrollbarHidden",Xe=Me,je=`${Se}-padding`,Ne=Xe,Fe=`${Se}-content`,Ve="os-size-observer",Ye=`${Ve}-appear`,Be=`${Ve}-listener`,Ge=`${Be}-scroll`,Ue=`${Be}-item`,We=`${Ue}-final`,qe="os-trinsic-observer",Ke="os-no-css-vars",Je="os-theme-none",Qe="os-scrollbar",Ze=`${Qe}-rtl`,tn=`${Qe}-horizontal`,en=`${Qe}-vertical`,nn=`${Qe}-track`,rn=`${Qe}-handle`,on=`${Qe}-visible`,sn=`${Qe}-cornerless`,ln=`${Qe}-transitionless`,cn=`${Qe}-interaction`,an=`${Qe}-unusable`,un=`${Qe}-auto-hide`,dn=`${un}-hidden`,pn=`${Qe}-wheel`,fn=`${nn}-interactive`,hn=`${rn}-interactive`,yn={},vn={},bn=(t,e,n,r)=>P(t).map((o=>{const{static:s,instance:l}=t[o],c=n?l:s;if(c){const t=n?c(n,e):c(e);return(r||vn)[o]=t}})),wn=t=>vn[t],gn="__osOptionsValidationPlugin",xn="__osSizeObserverPlugin",mn=(()=>({[xn]:{static:()=>(t,e,n)=>{const r=3333333,o="scroll",s=W(`<div class="${Ue}" dir="ltr"><div class="${Ue}"><div class="${We}"></div></div><div class="${Ue}"><div class="${We}" style="width: 200%; height: 200%"></div></div></div>`),l=s[0],c=l.lastChild,i=l.firstChild,a=null==i?void 0:i.firstChild;let u,d=Yt(l),p=d,f=!1;const h=()=>{he(i,r),he(c,r)},y=t=>{u=0,f&&(d=p,e(!0===t))},v=t=>{p=Yt(l),f=!t||!Zt(p,d),t?(ae(t),f&&!u&&(tt(u),u=et(y))):y(!1===t),h()},b=[B(t,s),ie(i,o,v),ie(c,o,v)];return mt(t,Ge),Et(a,{[_t]:r,[Xt]:r}),et(h),[n?yt(v,!1):h,b]}}}))();let $n=0;const Sn="__osScrollbarsHidingPlugin",On=(()=>({[Sn]:{static:()=>({C:t=>{const{H:e,I:n,A:r}=t,o=!(r||e||!n.x&&!n.y)&&document.createElement("style");return o&&(M(o,"id",`${Le}-${Ie}-${$n}`),$n++),o},T:(t,e,n,r,o,s,l)=>[(e,s,l,c)=>{if(t){const{D:t}=o,{R:i,k:a}=e,{x:u,y:d}=a,{x:p,y:f}=i,h=t[c?zt:Dt],y=t.paddingTop,v=s.w+l.w,b=s.h+l.h,w={w:f&&d?`${f+v-h}px`:"",h:p&&u?`${p+b-y}px`:""};if(r){const{sheet:t}=r;if(t){const{cssRules:e}=t;if(e){e.length||t.insertRule(`#${M(r,"id")} + [${Le}~='${Ie}']::before {}`,0);const n=e[0].style;n[_t]=w.w,n[Xt]=w.h}}}else Et(n,{"--os-vaw":w.w,"--os-vah":w.h})}return t},(r,c,i)=>{if(t){const a=i||s(r),{D:u}=o,{k:d}=a,{x:p,y:f}=d,h={},y=t=>x(t,(t=>{h[t]=u[t]}));p&&y([Rt,Pt,Mt]),f&&y([kt,At,Dt,zt]);const v=Et(n,P(h));return R(n,Le,Ie),e||(h[Xt]=""),Et(n,h),[()=>{l(a,c,t,v),Et(n,v),R(n,Le,Ie,!0)},a]}return[F]}],M:()=>{let t={w:0,h:0},e=0;return(n,r,o)=>{const s=Vt(),l={w:s.w-t.w,h:s.h-t.h};if(0===l.w&&0===l.h)return;const c=Z(l.w),i=Z(l.h),a={w:Z(Q(s.w/(t.w/100))),h:Z(Q(s.h/(t.h/100)))},u=(()=>{const t=q.screen,e=t.deviceXDPI||0,n=t.logicalXDPI||1;return q.devicePixelRatio||e/n})(),d=c>2&&i>2,p=!((t,e)=>{const n=Z(t),r=Z(e);return!(n===r||n+1===r||n-1===r)})(a.w,a.h);if(d&&p&&u!==e&&u>0){const[t,e]=r();z(n.L,t),e&&o()}t=s,e=u}}})}}))(),En="__osClickScrollPlugin",Cn=(()=>({[En]:{static:()=>(t,e,n,r,o)=>{let s=0,l=F;const c=i=>{l=((t,e,n,r,o)=>{let s=0;const l=Jt(),c=K(0,133),i=n=>{const a=Jt(),u=a-l>=c,d=n?1:1-(K(0,l+c-a)/c||0),p=(e-t)*(f(o)?o(d,d*c,0,1,c):d)+t,h=u||1===d;r&&r(p,0,h),s=h?0:et((()=>i()))};return i(),t=>{tt(s),t&&i(t)}})(i,i+r*Math.sign(n),0,((n,i,a)=>{t(n);const u=e();if(a&&!(o>=u&&o<=u+r)){if(s)c(n);else{const t=nt((()=>{c(n)}),222);l=()=>{clearTimeout(t)}}s++}}))};return c(0),()=>l()}}}))();let Tn;const Hn=(t,e,n,r)=>{B(t,e);const o=Bt(e),s=Yt(e),l=Ut(n);return r&&V(e),{x:s.h-o.h+l.h,y:s.w-o.w+l.w}},Pn=(t,e)=>{Et(t,{[Lt]:jt,[It]:jt,direction:"rtl"}),he(t,{x:0});const n=pe(t),r=pe(e);he(t,{x:-999});const o=pe(e);return{i:n.x===r.x,n:r.x!==o.x}},zn=(t,e)=>{const n=mt(t,Ee),r=Wt(t),o=Wt(e),s=ne(o,r,!0),l=mt(t,Ce),c=Wt(t),i=Wt(e),a=ne(i,c,!0);return n(),l(),s&&a},Dn=()=>(Tn||(Tn=(()=>{const{body:t}=document,n=W(`<div class="${Oe}"><div></div></div>`)[0],r=n.firstChild,[o,,s]=be(),[l,c]=e({o:Hn(t,n,r),u:te},yt(Hn,t,n,r,!0)),[i]=c(),a=(t=>{let e=!1;const n=mt(t,Te);try{e="none"===Et(t,at("scrollbar-width"))||"none"===q.getComputedStyle(t,"::-webkit-scrollbar").getPropertyValue("display")}catch(r){}return n(),e})(n),u={x:0===i.x,y:0===i.y},d={elements:{host:null,padding:!a,viewport:t=>a&&t===t.ownerDocument.body&&t,content:!1},scrollbars:{slot:!0},cancel:{nativeScrollbarsOverlaid:!1,body:null}},p=z({},xe),f=yt(z,{},p),h=yt(z,{},d),y={L:i,I:u,H:a,A:"-1"===Et(n,"zIndex"),P:!!ht,V:Pn(n,r),U:zn(n,r),B:yt(o,"z"),j:yt(o,"r"),G:h,N:t=>z(d,t)&&h(),q:f,W:t=>z(p,t)&&f(),F:z({},d),X:z({},p)},v=yt(ie,q,"resize"),b=bt((t=>s(t)),{v:33,p:99});return A(n,"style"),V(n),v(yt(b,"r")),a||u.x&&u.y||v((()=>{const t=wn(Sn);(t?t.M():F)(y,l,yt(b,"z"))})),y})()),Tn),Mn=(t,e)=>f(e)?e.apply(0,t):e,kn=(t,e,n,r)=>{const o=c(r)?n:r;return Mn(t,o)||e.apply(0,t)},An=(t,e,n,r)=>{const o=c(r)?n:r,s=Mn(t,o);return!!s&&(w(s)?s:e.apply(0,t))},Rn=new WeakMap,Ln=t=>Rn.get(t),In=(t,e,n,r)=>{let o=!1;const{Y:s,Z:l,J:c,K:i,tt:a,nt:u}=r||{},d=bt((()=>o&&n(!0)),{v:33,p:99}),[p,f]=((t,e,n)=>{let r=!1;const o=!!n&&new WeakMap,s=s=>{if(o&&n){const l=n.map((e=>{const[n,r]=e||[];return[r&&n?(s||I)(n,t):[],r]}));x(l,(n=>x(n[0],(s=>{const l=n[1],c=o.get(s)||[];if(t.contains(s)&&l){const t=ie(s,l.trim(),(n=>{r?(t(),o.delete(s)):e(n)}));o.set(s,S(c,t))}else T(c),o.delete(s)}))))}};return s(),[()=>{r=!0},s]})(t,d,c),h=l||[],y=$(s||[],h),v=(o,s)=>{if(!E(s)){const l=a||F,c=u||F,d=[],p=[];let y=!1,v=!1;if(x(s,(n=>{const{attributeName:o,target:s,type:a,oldValue:u,addedNodes:f,removedNodes:b}=n,w="attributes"===a,g="childList"===a,$=t===s,O=w&&o,E=O?M(s,o||""):null,C=O&&u!==E,T=m(h,o)&&C;if(e&&(g||!$)){const e=w&&C,a=e&&i&&_(s,i),p=(a?!l(s,o,u,E):!w||e)&&!c(n,!!a,t,r);x(f,(t=>S(d,t))),x(b,(t=>S(d,t))),v=v||p}!e&&$&&C&&!l(s,o,u,E)&&(S(p,o),y=y||T)})),f((t=>C(d).reduce(((e,n)=>(S(e,I(t,n)),_(n,t)?S(e,n):e)),[]))),e)return!o&&v&&n(!1),[!1];if(!E(p)||y){const t=[C(p),y];return!o&&n.apply(0,t),t}}},b=new dt(yt(v,!1));return[()=>(b.observe(t,{attributes:!0,attributeOldValue:!0,attributeFilter:y,subtree:e,childList:e,characterData:e}),o=!0,()=>{o&&(p(),b.disconnect(),o=!1)}),()=>{if(o)return d.m(),v(!0,b.takeRecords())}]},_n=(t,n,r)=>{let o=!1;const s=3333333,{ot:l,st:c,et:i}=r||{},a=wn(xn),{V:u}=Dn(),d=yt(Ct,t),[p,f]=vt(33),[y]=e({o:!1,_:!0});return()=>{const r=[f,ie(q,"resize",(()=>{o=!!i,p((()=>{o=!1}))}))],v=W(`<div class="${Ve}"><div class="${Be}"></div></div>`)[0],b=v.firstChild,w=t=>{const e=t instanceof ResizeObserverEntry,r=!e&&h(t);let c=!1,i=!1,a=!0;if(e){const[e,,n]=y(t.contentRect),r=qt(e),s=Kt(e,n);i=!n||s,c=!i&&(!r||o),a=!c}else r?[,a]=t:i=!0===t;if(l&&a){const e=r?t[0]:Ct(v);he(v,{x:fe(s,s,e&&u),y:s})}c||n({ct:r?t:void 0,rt:!r,st:i}),o=!1};if(ft){const t=new ft((t=>w(t.pop())));t.observe(b),S(r,(()=>{t.disconnect()}))}else{if(!a)return F;{const[t,e]=a(b,w,c);S(r,$([mt(v,Ye),ie(v,"animationstart",t)],e))}}if(l){const[t]=e({o:void 0},d);S(r,ie(v,"scroll",(e=>{const n=t(),[r,o,s]=n;o&&(xt(b,"ltr rtl"),mt(b,r?"rtl":"ltr"),w([!!r,o,s])),ae(e)})))}return yt(T,S(r,B(t,v)))}},Xn=(t,n)=>{let r;const o=U(qe),[s]=e({o:!1}),l=(t,e)=>{if(t){const r=s((t=>0===t.h||t.isIntersecting||t.intersectionRatio>0)(t)),[,o]=r;return o&&!e&&n(r)&&[r]}},c=(t,e)=>l(e.pop(),t);return[()=>{const e=[];if(pt)r=new pt(yt(c,!1),{root:t}),r.observe(o),S(e,(()=>{r.disconnect()}));else{const t=()=>{const t=Yt(o);l(t)};S(e,_n(o,t)()),t()}return yt(T,S(e,B(t,o)))},()=>r&&c(!0,r.takeRecords())]},jn=(t,e,n)=>K(t,J(e,n)),Nn=(t,e,n)=>{const r=Q(e),[o,s]=((t,e)=>[e&&e.i?t:0,fe(t,t,e)])(r,n),l=(s-t)/s,c=t/o,i=t/s,a=n?n.n?l:n.i?c:i:i;return jn(0,1,a)},Fn=(t,e,n,r)=>{if(r){const t=n?"x":"y",{Ct:e,zt:o}=r,s=o[t],l=e[t];return jn(0,1,s/(s+l))}const o=n?_t:Xt,s=Wt(t)[o],l=Wt(e)[o];return jn(0,1,s/l)},Vn=(t,e,n)=>{const{G:r,A:o}=Dn(),{scrollbars:s}=r(),{slot:l}=s,{Ht:c,ut:i,ft:a,It:u,At:d,Et:f,vt:y}=e,{scrollbars:v}=u?{}:t,{slot:b}=v||{},w=new Map,g=t=>ht&&new ht({source:d,axis:t}),O=g("x"),C=g("y"),H=An([c,i,a],(()=>y&&f?c:i),l,b),P=t=>y&&!f&&j(t)===a,z=t=>{w.forEach(((e,n)=>{(!t||m(h(t)?t:[t],n))&&((e||[]).forEach((t=>{t&&t.cancel()})),w.delete(n))}))},D=(t,e,n)=>{const r=n?mt:xt;x(t,(t=>{r(t.Tt,e)}))},M=(t,e)=>{x(t,(t=>{const[n,r]=e(t);Et(n,r)}))},k=(t,e,n)=>{M(t,(t=>{const{Dt:r,Rt:o}=t;return[r,{[n?_t:Xt]:`${(100*Fn(r,o,n,e)).toFixed(3)}%`}]}))},A=(t,e,n)=>{C||C||M(t,(t=>{const{Dt:r,Rt:o,Tt:s}=t,l=((t,e,n,r,o,s)=>{const{V:l}=Dn(),c=s?"x":"y",i=s?"Left":"Top",{Ct:a}=r,u=Fn(t,e,s);return 1/u*(1-u)*Nn(n[`scroll${i}`],a[c],s&&o&&l)})(r,o,d,e,Ct(s),n);return[r,{transform:l==l?Ht(`${(100*l).toFixed(3)}%`,n):""}]}))},R=t=>{const{Tt:e}=t,n=P(e)&&e,r=ye(d);return[n,{transform:n?Ht({x:`${r.x}px`,y:`${r.y}px`}):""}]},L=(t,e,n,r)=>e&&t.animate(n,{timeline:e,composite:r}),I=(t,e,n,r)=>L(t,e,{transform:[Ht(`0px`,r),Ht(`${K(0,n-.5)}px`,r)]},"add"),_=[],X=[],N=[],F=(t,e,n)=>{const r=p(n),o=!r||!n;(!r||n)&&D(X,t,e),o&&D(N,t,e)},Y=t=>{const e=t?tn:en,r=t?X:N,s=E(r)?ln:"",l=U(`${Qe} ${e} ${s}`),c=U(nn),i=U(rn),a={Tt:l,Rt:c,Dt:i};return o||mt(l,Ke),S(r,a),S(_,[B(l,c),B(c,i),yt(V,l),z,n(a,F,t)]),a},G=yt(Y,!0),W=yt(Y,!1);return G(),W(),[{kt:t=>{k(X,t,!0),k(N,t)},Mt:t=>{A(X,t,!0),A(N,t)},Lt:()=>{const t=(t,{Tt:e,Dt:n})=>{const r=t&&Ct(e);z(n),w.set(n,[L(n,t?O:C,{transform:[Ht(`0%`,t),Ht(t&&r?"100%":"-100%",t)],[t?r?"right":"left":"top"]:["0%","100%"]})])};X.forEach(yt(t,!0)),N.forEach(yt(t,!1))},Pt:({Ct:t})=>{$(N,X).forEach((({Tt:e})=>{z(e),P(e)&&w.set(e,[I(e,O,t.x,!0),I(e,C,t.y)])}))},Vt:()=>{C||C||(y&&M(X,R),y&&M(N,R))},Ut:F,Bt:{P:O,jt:X,Gt:G,Nt:yt(M,X)},qt:{P:C,jt:N,Gt:W,Nt:yt(M,N)}},()=>(B(H,X[0].Tt),B(H,N[0].Tt),nt((()=>{F(ln)}),300),yt(T,_))]},Yn=(t,e,n)=>{const{ut:r,At:o,Wt:s}=e,l=(e,l)=>{const{Dt:c,Rt:i}=e,a=`scroll${l?"Left":"Top"}`,u=`client${l?"X":"Y"}`,d=l?_t:Xt,p=l?"left":"top",f=l?"w":"h",h=l?"x":"y",y="pointerup pointerleave pointercancel lostpointercapture",v=(t,e)=>r=>{const{Ct:s}=n,l=Yt(i)[f]-Yt(c)[f],u=e*r/l*s[h];o[a]=t+u};return ie(i,"pointerdown",(e=>{const n=N(e.target,`.${rn}`)===c,l=n?c:i,h=t.scrollbars,{button:b,isPrimary:w,pointerType:g}=e,{pointers:x}=h,m=0===b&&w&&h[n?"dragScroll":"clickScroll"]&&(x||[]).includes(g);if(R(r,Pe,Ae,!0),m){const t=!n&&e.shiftKey,h=yt(Wt,c),b=yt(Wt,i),w=(t,e)=>(t||h())[p]-(e||b())[p],g=Q(Wt(o)[d])/Yt(o)[f]||1,x=v(o[a]||0,1/g),m=e[u],$=h(),O=b(),E=$[d],C=w($,O)+E/2,H=m-O[p],P=n?0:H-C,z=t=>{T(D),l.releasePointerCapture(t.pointerId)},D=[yt(R,r,Pe,Ae),ie(s,y,z),ie(s,"selectstart",(t=>ue(t)),{S:!1}),ie(i,y,z),ie(i,"pointermove",(e=>{const r=e[u]-m;(n||t)&&x(P+r)}))];if(t)x(P);else if(!n){const t=wn(En);t&&S(D,t(x,w,P,E,H))}l.setPointerCapture(e.pointerId)}}))};return(t,e,n)=>{const{Tt:c}=t,[i,a]=vt(333),u=!!o.scrollBy;let d=!0;return yt(T,[ie(c,"pointerenter",(()=>{e(cn,!0)})),ie(c,"pointerleave pointercancel",(()=>{e(cn,!1)})),ie(c,"wheel",(t=>{const{deltaX:n,deltaY:s,deltaMode:l}=t;u&&d&&0===l&&j(c)===r&&o.scrollBy({left:n,top:s,behavior:"smooth"}),d=!1,e(pn,!0),i((()=>{d=!0,e(pn)})),ue(t)}),{S:!1,$:!0}),ie(c,"mousedown",yt(ie,s,"click",ae,{O:!0,$:!0}),{$:!0}),l(t,n),a])}},Bn=({_t:t})=>({Xt:e,rn:n,xt:r})=>{const{U:o}=Dn(),{bt:s}=e||{},{lt:l}=n;(t||!o)&&(s||r)&&Et(t,{[Xt]:l?"":"100%"})},Gn=({ut:t,nn:n,ft:r,vt:o},s)=>{const[l,c]=e({u:ee,o:Tt()},yt(Tt,t,"padding",""));return({$t:t,Xt:e,rn:i,xt:a})=>{let[u,d]=c(a);const{H:p,U:f}=Dn(),{rt:h,yt:y,wt:v}=e||{},{it:b}=i,[w,g]=t("paddingAbsolute");(h||d||a||!f&&y)&&([u,d]=l(a));const x=!o&&(g||v||d);if(x){const t=!w||!n&&!p,e=u.r+u.l,o=u.t+u.b,l={[At]:t&&!b?-e:0,[Rt]:t?-o:0,[kt]:t&&b?-e:0,top:t?-u.t:0,right:t?b?-u.r:"auto":0,left:t?b?"auto":-u.l:0,[_t]:t?`calc(100% + ${e}px)`:""},c={[Pt]:t?u.t:0,[zt]:t?u.r:0,[Mt]:t?u.b:0,[Dt]:t?u.l:0};Et(n||r,l),Et(r,c),z(s,{nn:u,ln:!t,D:n?c:z({},l,c)})}return{an:x}}},Un=({ut:t,nn:n,ft:r,sn:o,vt:s,gt:l,Et:c,en:i},a)=>{const u=yt(K,0),d="visible",p=42,f={u:Zt,o:{w:0,h:0}},h={u:te,o:{x:jt,y:jt}},y=(t,e)=>{const n=q.devicePixelRatio%1!=0?1:0,r={w:u(t.w-e.w),h:u(t.h-e.h)};return{w:r.w>n?r.w:0,h:r.h>n?r.h:0}},v=t=>0===t.indexOf(d),{L:b,U:w,H:g,I:x}=Dn(),m=wn(Sn),$=!s&&!g&&(x.x||x.y),S=c&&s,[O,E]=e(f,yt(Ut,r)),[C,T]=e(f,yt(Gt,r)),[H,P]=e(f),[D,k]=e(f),[A]=e(h),L=(e,n)=>{if(Et(r,{[Xt]:""}),n){const{ln:n,nn:o}=a,{un:s,R:l}=e,c=Ut(t),i=Bt(t),u="content-box"===Et(r,"boxSizing"),d=n||u?o.b+o.t:0,p=!(x.x&&u);Et(r,{[Xt]:i.h+c.h+(s.x&&p?l.x:0)-d})}},I=(t,e)=>{const n=g||t?0:p,o=(t,o,s)=>{const l=Et(r,t),c="scroll"===(e?e[t]:l);return[l,c,c&&!g?o?n:s:0,o&&!!n]},[s,l,c,i]=o(Lt,x.x,b.x),[a,u,d,f]=o(It,x.y,b.y);return{Qt:{x:s,y:a},un:{x:l,y:u},R:{x:c,y:d},k:{x:i,y:f}}},_=(t,e,n,r)=>{const o=(t,e)=>{const n=v(t),r=e&&n&&t.replace(`${d}-`,"")||"";return[e&&!n?t:"",v(r)?"hidden":r]},[s,l]=o(n.x,e.x),[c,i]=o(n.y,e.y);return r[Lt]=l&&c?l:s,r[It]=i&&s?i:c,I(t,r)},X=(t,e,n,r)=>{const{R:o,k:s}=t,{x:l,y:c}=s,{x:i,y:u}=o,{D:d}=a,p=e?kt:At,f=e?Dt:zt,h=d[p],y=d[Rt],v=d[f],b=d[Mt];r[_t]=`calc(100% + ${u+-1*h}px)`,r[p]=-u+h,r[Rt]=-i+y,n&&(r[f]=v+(c?u:0),r[Mt]=b+(l?i:0))},[j,N]=m?m.T($,w,r,o,a,I,X):[()=>$,()=>[F]];return({$t:e,Xt:o,rn:c,xt:d},{an:p})=>{const{rt:f,St:h,yt:b,bt:m,wt:$}=o||{},{lt:F,it:V}=c,[Y,B]=e("showNativeOverlaidScrollbars"),[G,U]=e("overflow"),W=Y&&x.x&&x.y,q=!s&&!w&&(f||b||h||B||m),J=f||p||b||$||B,Q=v(G.x),Z=v(G.y),tt=Q||Z;let et,nt=E(d),rt=T(d),ot=P(d),st=k(d);if(B&&g&&l(_e,ke,!W),q&&(et=I(W),L(et,F)),J){tt&&l(Xe,Me,!1);const[t,e]=N(W,V,et),[n,o]=nt=O(d),[s,c]=rt=C(d),a=Bt(r);let p=s,f=a;t(),(c||o||B)&&e&&!W&&j(e,s,n,V)&&(f=Bt(r),p=Gt(r));const h=Vt(i),v={w:u(K(s.w,p.w)+n.w),h:u(K(s.h,p.h)+n.h)},b={w:u((S?h.w:f.w+u(a.w-s.w))+n.w),h:u((S?h.h:f.h+u(a.h-s.h))+n.h)};st=D(b),ot=H(y(v,b),d)}const[lt,ct]=st,[it,at]=ot,[ut,dt]=rt,[pt,ft]=nt,ht={x:it.w>0,y:it.h>0},yt=Q&&Z&&(ht.x||ht.y)||Q&&ht.x&&!ht.y||Z&&ht.y&&!ht.x;if(p||$||ft||dt||ct||at||U||B||q||J){const e={[At]:0,[Rt]:0,[kt]:0,[_t]:"",[Lt]:"",[It]:""},n=_(W,ht,G,e),o=j(n,ut,pt,V);s||X(n,V,o,e),q&&L(n,F),s?(M(t,ze,e[Lt]),M(t,De,e[It])):Et(r,e)}R(t,Pe,Me,yt),R(n,je,Ne,yt),s||R(r,Le,Xe,tt);const[vt,bt]=A(I(W).Qt);return z(a,{Qt:vt,zt:{x:lt.w,y:lt.h},Ct:{x:it.w,y:it.h},tn:ht}),{Kt:bt,Zt:ct,Jt:at}}},Wn=(t,n,r,o)=>{const[s,l,c,i,a]=(t=>{const[e,n,r]=(t=>{const e=Dn(),{G:n,H:r}=e,o=wn(Sn),s=o&&o.C,{elements:l}=n(),{host:c,padding:i,viewport:a,content:u}=l,d=w(t),p=d?{}:t,{elements:f}=p,{host:h,padding:y,viewport:v,content:b}=f||{},g=d?t:p.target,x=_(g,"textarea"),$=g.ownerDocument,O=$.documentElement,E=g===$.body,C=$.defaultView,H=yt(kn,[g]),z=yt(An,[g]),D=yt(Mn,[g]),L=yt(U,""),I=yt(H,L,a),N=yt(z,L,u),W=I(v),q=W===g,K=q&&E,J=!q&&N(b),Q=!q&&w(W)&&W===J,Z=Q&&!!D(u),tt=Z?I():W,et=Z?J:N(),nt=K?O:Q?tt:W,rt=x?H(L,c,h):g,ot=K?nt:rt,st=Q?et:J,lt=$.activeElement,ct=!q&&C.top===C&<===g,it={Ht:g,ut:ot,ft:nt,nn:!q&&z(L,i,y),_t:st,sn:!q&&!r&&s&&s(e),At:K?O:nt,Ft:K?$:nt,en:C,Wt:$,dt:x,Et:E,It:d,vt:q,cn:Q,ht:(t,e)=>((t,e,n)=>k(t,e).has(n))(nt,q?Pe:Le,q?e:t),gt:(t,e,n)=>R(nt,q?Pe:Le,q?e:t,n)},at=P(it).reduce(((t,e)=>{const n=it[e];return S(t,!(!n||!w(n)||j(n))&&n)}),[]),ut=t=>t?m(at,t):null,{Ht:dt,ut:pt,nn:ft,ft:ht,_t:vt,sn:bt}=it,wt=[()=>{A(pt,Pe),A(pt,He),A(dt,He),E&&(A(O,Pe),A(O,He))}],gt=x&&ut(pt);let xt=x?dt:X([vt,ht,ft,pt,dt].find((t=>!1===ut(t))));const $t=K?dt:vt||ht,St=yt(T,wt);return[it,()=>{M(pt,Pe,q?"viewport":"host"),M(ft,je,""),M(vt,Fe,""),q||M(ht,Le,"");const t=E&&!q?mt(j(g),Te):F,e=t=>{B(j(t),X(t)),V(t)};if(gt&&(G(dt,pt),S(wt,(()=>{G(pt,dt),V(pt)}))),B($t,xt),B(pt,ft),B(ft||pt,!q&&ht),B(ht,vt),S(wt,(()=>{t(),A(ft,je),A(vt,Fe),A(ht,ze),A(ht,De),A(ht,Le),ut(vt)&&e(vt),ut(ht)&&e(ht),ut(ft)&&e(ft)})),r&&!q&&(R(ht,Le,_e,!0),S(wt,yt(A,ht,Le))),bt&&(((t,e)=>{Y(j(t),t,e)})(ht,bt),S(wt,yt(V,bt))),ct){const t="tabindex",e=M(ht,t);M(ht,t,"-1"),ht.focus();const n=()=>e?M(ht,t,e):A(ht,t),r=ie($,"pointerdown keydown",(()=>{n(),r()}));S(wt,[n,r])}else lt&<.focus&<.focus();return xt=0,St},St]})(t),o={nn:{t:0,r:0,b:0,l:0},ln:!1,D:{[At]:0,[Rt]:0,[kt]:0,[Pt]:0,[zt]:0,[Mt]:0,[Dt]:0},zt:{x:0,y:0},Ct:{x:0,y:0},Qt:{x:jt,y:jt},tn:{x:!1,y:!1}},{Ht:s,ft:l,gt:c,vt:i}=e,{H:a,I:u,U:d}=Dn(),p=!a&&(u.x||u.y),f=[Bn(e),Gn(e,o),Un(e,o)];return[n,t=>{const e={},n=(p||!d)&&ye(l);return c("",Re,!0),x(f,(n=>{z(e,n(t,e)||{})})),c("",Re),he(l,n),!i&&he(s,0),e},o,e,r]})(t),[p,y,v]=((t,n)=>{let r,o,s,l,c;const{H:i}=Dn(),a=`[${Pe}]`,p=`[${Le}]`,y=["tabindex"],v=["wrap","cols","rows"],b=["id","class","style","open"],w={lt:!1,it:Ct(t.ut)},{ut:S,ft:O,_t:E,dt:C,vt:T,ht:H,gt:D}=t,{U:k}=Dn(),[R]=e({u:Zt,o:{w:0,h:0}},(()=>{const t=H(Xe,Me),e=H(Ie,""),n=e&&ye(O);D(Xe,Me),D(Ie,""),D("",Re,!0);const r=Gt(E),o=Gt(O),s=Ut(O);return D(Xe,Me,t),D(Ie,"",e),D("",Re),he(O,n),{w:o.w+r.w+s.w,h:o.h+r.h+s.h}})),L=C?v:$(b,v),I=bt(n,{v:()=>r,p:()=>o,g(t,e){const[n]=t,[r]=e;return[$(P(n),P(r)).reduce(((t,e)=>(t[e]=n[e]||r[e],t)),{})]}}),_=t=>{x(t||y,(t=>{if(m(y,t)){const e=M(S,t);d(e)?M(O,t,e):A(O,t)}}))},X=(t,e)=>{const[r,o]=t,s={bt:o};return z(w,{lt:r}),!e&&n(s),s},j=({rt:t,ct:e,st:r})=>{const o=(!t||r||e)&&i?I:n,[s,l]=e||[];e&&z(w,{it:s}),o({rt:t||r,st:r,wt:l})},F=(t,e)=>{const[,r]=R(),o={yt:r};return r&&!e&&(t?n:I)(o),o},V=(t,e,n)=>{const r={St:e};return e&&!n?I(r):T||_(t),r},[Y,B]=E||!k?Xn(S,X):[],G=!T&&_n(S,j,{st:!0,ot:!0,et:!0}),[U,W]=In(S,!1,V,{Z:b,Y:$(b,y)}),q=T&&ft&&new ft((t=>{const e=t[t.length-1].contentRect;j({rt:!0,st:Kt(e,c)}),c=e}));return[()=>{_(),q&&q.observe(S);const t=G&&G(),e=Y&&Y(),n=U();return()=>{q&&q.disconnect(),t&&t(),e&&e(),l&&l(),n()}},({$t:t,Ot:e,xt:n})=>{const c={},[i]=t("update.ignoreMutation"),[d,y]=t("update.attributes"),[v,b]=t("update.elementEvents"),[w,x]=t("update.debounce"),m=e||n;if(b||y){s&&s(),l&&l();const[t,e]=In(E||O,!0,F,{Y:$(L,d||[]),J:v,K:a,nt:(t,e)=>{const{target:n,attributeName:r}=t;return!(e||!r||T)&&((t,e,n)=>{const r=N(t,e),o=t&&((t,e)=>{const n=e?g(e)&&e:document;return n?n.querySelector(t):null})(n,r),s=N(o,e)===r;return!(!r||!o)&&(r===t||o===t||s&&N(N(t,n),e)!==r)})(n,a,p)||!!N(n,`.${Qe}`)||!!(t=>f(i)&&i(t))(t)}});l=t(),s=e}if(x)if(I.m(),h(w)){const t=w[0],e=w[1];r=u(t)&&t,o=u(e)&&e}else u(w)?(r=w,o=!1):(r=!1,o=!1);if(m){const t=W(),e=B&&B(),n=s&&s();t&&z(c,V(t[0],t[1],m)),e&&z(c,X(e[0],m)),n&&z(c,F(n[0],m))}return c},w]})(i,(t=>{L({},t)})),[b,O,,E]=((t,e,n,r,o,s)=>{let l,c,i,a,u,d=F,p=0;const[f,h]=vt(),[y,v]=vt(),[b,w]=vt(100),[g,x]=vt(100),[m,$]=vt(100),[O,E]=vt((()=>p)),[C,H]=Vn(t,o,Yn(e,o,r)),{ut:P,Ft:z,Et:D}=o,{Ut:M,kt:k,Mt:A,Lt:R,Pt:L,Vt:I}=C,_=t=>{M(un,t,!0),M(un,t,!1)},X=(t,e)=>{if(E(),t)M(dn);else{const t=yt(M,dn,!0);p>0&&!e?O(t):t()}},j=t=>"mouse"===t.pointerType,N=t=>{j(t)&&(a=c,a&&X(!0))},V=[w,E,x,$,v,h,()=>d(),ie(P,"pointerover",N,{O:!0}),ie(P,"pointerenter",N),ie(P,"pointerleave",(t=>{j(t)&&(a=!1,c&&X(!1))})),ie(P,"pointermove",(t=>{j(t)&&l&&f((()=>{w(),X(!0),g((()=>{l&&X(!1)}))}))})),ie(z,"scroll",(t=>{y((()=>{A(r),i&&X(!0),b((()=>{i&&!a&&X(!1)}))})),s(t),I()}))];return[()=>yt(T,S(V,H())),({$t:t,xt:e,Xt:o,Yt:s})=>{const{Zt:a,Jt:f,Kt:h}=s||{},{wt:y,st:v}=o||{},{it:b}=n,{I:w}=Dn(),{Ct:g,Qt:x,tn:$}=r,[S,O]=t("showNativeOverlaidScrollbars"),[E,C]=t("scrollbars.theme"),[T,H]=t("scrollbars.visibility"),[P,j]=t("scrollbars.autoHide"),[N,F]=t("scrollbars.autoHideSuspend"),[V]=t("scrollbars.autoHideDelay"),[Y,B]=t("scrollbars.dragScroll"),[G,U]=t("scrollbars.clickScroll"),W=v&&!e,q=$.x||$.y,K=a||f||y||e,J=h||H,Q=S&&w.x&&w.y,Z=(t,e)=>{const n="visible"===T||"auto"===T&&"scroll"===t;return M(on,n,e),n};if(p=V,W&&(N&&q?(_(!1),d(),m((()=>{d=ie(z,"scroll",yt(_,!0),{O:!0})}))):_(!0)),O&&M(Je,Q),C&&(M(u),M(E,!0),u=E),F&&!N&&_(!0),j&&(l="move"===P,c="leave"===P,i="never"!==P,X(!i,!0)),B&&M(hn,Y),U&&M(fn,G),J){const t=Z(x.x,!0),e=Z(x.y,!1);M(sn,!(t&&e))}K&&(k(r),A(r),R(r),I(),L(r),M(an,!g.x,!0),M(an,!g.y,!1),M(Ze,b&&!D))},{},C]})(t,n,v,c,i,o),C=t=>x(z({},t),((t,e,n)=>{n[e]=!!t})),H=t=>P(t).some((e=>!!t[e])),L=(t,e)=>{const{fn:o,xt:s,Ot:c,_n:i,dn:a}=t,u=o||{},d=!!s,p={$t:$e(n,u,d),fn:u,xt:d};if(i)return O(p),!1;const f=e||y(z({},p,{Ot:c}));a&&z(f,{rt:!0,yt:!0});const h=l(z({},p,{rn:v,Xt:f}));O(z({},p,{Xt:f,Yt:h}));const b=H(f),w=H(h),g=b||w||!D(u)||d;return g&&r(t,{Xt:C(f),Yt:C(h)}),g};return[()=>{const{Ht:t,ft:e,Wt:n,Et:r}=i,o=r?n.documentElement:t,l=ye(o),c=[p(),s(),b()];return he(e,l),yt(T,c)},L,()=>({vn:v,hn:c}),{pn:i,gn:E},a]},qn=(t,e,n)=>{const{q:r,B:o,j:s}=Dn(),l=w(t),a=l?t:t.target,u=Ln(a);if(e&&!u){let u=!1;const d=[],p={},f=t=>{const e=wn(gn);return e?e(t,!0):t},h=z({},r(),f(e)),[y,v,b]=be(n),[w,g,x,m,$]=Wn(t,h,(({fn:t,xt:e},{Xt:n,Yt:r})=>{const{rt:o,wt:s,bt:l,yt:c,St:i}=n,{Zt:a,Jt:u,Kt:d}=r;b("updated",[E,{updateHints:{sizeChanged:o,directionChanged:s,heightIntrinsicChanged:l,overflowEdgeChanged:a,overflowAmountChanged:u,overflowStyleChanged:d,contentMutation:c,hostMutation:i},changedOptions:t||{},force:!!e}])}),(t=>b("scroll",[E,t]))),O=t=>{(t=>{Rn.delete(t)})(a),T(d),u=!0,b("destroyed",[E,t]),v()},E={options(t,e){if(t){const n=e?r():{},o=me(h,z(n,f(t)));D(o)||(z(h,o),g({fn:o}))}return z({},h)},on:y,off:(t,e)=>{t&&e&&v(t,e)},state(){const{vn:t,hn:e}=x(),{it:n}=t,{zt:r,Ct:o,Qt:s,tn:l,nn:c,ln:i}=e;return z({},{overflowEdge:r,overflowAmount:o,overflowStyle:s,hasOverflow:l,padding:c,paddingAbsolute:i,directionRTL:n,destroyed:u})},elements(){const{Ht:t,ut:e,nn:n,ft:r,_t:o,At:s,Ft:l}=m.pn,{Bt:c,qt:i}=m.gn,a=t=>{const{Dt:e,Rt:n,Tt:r}=t;return{scrollbar:r,track:n,handle:e}},u=t=>{const{jt:e,Gt:n}=t,r=a(e[0]);return z({},r,{clone:()=>{const t=a(n());return g({_n:!0}),t}})};return z({},{target:t,host:e,padding:n||r,viewport:r,content:o||r,scrollOffsetElement:s,scrollEventElement:l,scrollbarHorizontal:u(c),scrollbarVertical:u(i)})},update:t=>g({xt:t,Ot:!0}),destroy:yt(O,!1),plugin:t=>p[P(t)[0]]},C=()=>{const{hn:t}=x(),{tn:e}=t,n=e.x||e.y;n&&g({dn:n})};return S(d,[o(C),s(C),$]),((t,e)=>{Rn.set(t,e)})(a,E),bn(yn,qn,E,p),((t,e)=>{const{nativeScrollbarsOverlaid:n,body:r}=e||{},{I:o,H:s,G:l}=Dn(),{nativeScrollbarsOverlaid:a,body:u}=l().cancel,d=null!=n?n:a,p=c(r)?u:r,f=(o.x||o.y)&&d,h=t&&(i(p)?!s:p);return!!f||!!h})(m.pn.Et,!l&&t.cancel)?(O(!0),E):(S(d,w()),b("initialized",[E]),E.update(!0),E)}return u};return qn.plugin=t=>{const e=h(t),n=e?t:[t],r=n.map((t=>bn(t,qn)[0]));return(t=>{x(t,(t=>x(t,((e,n)=>{yn[n]=t[n]}))))})(n),e?r:r[0]},qn.valid=t=>{const e=t&&t.elements,n=f(e)&&e();return b(n)&&!!Ln(n.target)},qn.env=()=>{const{L:t,I:e,H:n,V:r,U:o,A:s,P:l,F:c,X:i,G:a,N:u,q:d,W:p}=Dn();return z({},{scrollbarsSize:t,scrollbarsOverlaid:e,scrollbarsHiding:n,rtlScrollBehavior:r,flexboxGlue:o,cssCustomProperties:s,scrollTimeline:l,staticDefaultInitialization:c,staticDefaultOptions:i,getDefaultInitialization:a,setDefaultInitialization:u,getDefaultOptions:d,setDefaultOptions:p})},t.ClickScrollPlugin=Cn,t.OverlayScrollbars=qn,t.ScrollbarsHidingPlugin=On,t.SizeObserverPlugin=mn,Object.defineProperties(t,{bn:{value:!0},[Symbol.toStringTag]:{value:"Module"}}),t}({}); | ||
var OverlayScrollbarsGlobal=function(t){"use strict";const e=(t,e)=>{const{o:n,u:r,_:o}=t;let s,l=n;const c=(t,e)=>{const n=l,c=t,i=e||(r?!r(n,c):n!==c);return(i||o)&&(l=c,s=n),[l,i,s]};return[e?t=>c(e(l,s),t):c,t=>[l,!!t,s]]},n="undefined"!=typeof window,r=n&&Node.ELEMENT_NODE,{toString:o,hasOwnProperty:s}=Object.prototype,l=/^\[object (.+)\]$/,c=t=>void 0===t,i=t=>null===t,a=t=>c(t)||i(t)?`${t}`:o.call(t).replace(l,"$1").toLowerCase(),u=t=>"number"==typeof t,d=t=>"string"==typeof t,p=t=>"boolean"==typeof t,f=t=>"function"==typeof t,h=t=>Array.isArray(t),y=t=>"object"==typeof t&&!h(t)&&!i(t),v=t=>{const e=!!t&&t.length,n=u(e)&&e>-1&&e%1==0;return!(!(h(t)||!f(t)&&n)||e>0&&y(t)&&!(e-1 in t))},b=t=>{if(!t||!y(t)||"object"!==a(t))return!1;let e;const n="constructor",r=t[n],o=r&&r.prototype,l=s.call(t,n),i=o&&s.call(o,"isPrototypeOf");if(r&&!l&&!i)return!1;for(e in t);return c(e)||s.call(t,e)},w=t=>{const e=HTMLElement;return!!t&&(e?t instanceof e:t.nodeType===r)},g=t=>{const e=Element;return!!t&&(e?t instanceof e:t.nodeType===r)};function x(t,e){if(v(t))for(let n=0;n<t.length&&!1!==e(t[n],n,t);n++);else t&&x(Object.keys(t),(n=>e(t[n],n,t)));return t}const m=(t,e)=>t.indexOf(e)>=0,$=(t,e)=>t.concat(e),S=(t,e,n)=>(n||d(e)||!v(e)?t.push(e):Array.prototype.push.apply(t,e),t),O=t=>{const e=Array.from,n=[];return e&&t?e(t):(t instanceof Set?t.forEach((t=>{S(n,t)})):x(t,(t=>{S(n,t)})),n)},E=t=>!!t&&!t.length,C=t=>O(new Set(t)),T=(t,e,n)=>{x(t,(t=>t&&t.apply(void 0,e||[]))),!n&&(t.length=0)},H=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),P=t=>t?Object.keys(t):[],z=(t,e,n,r,o,s,l)=>{const c=[e,n,r,o,s,l];return"object"==typeof t&&!i(t)||f(t)||(t={}),x(c,(e=>{x(e,((n,r)=>{const o=e[r];if(t===o)return!0;const s=h(o);if(o&&b(o)){const e=t[r];let n=e;s&&!h(e)?n=[]:s||b(e)||(n={}),t[r]=z(n,o)}else t[r]=s?o.slice():o}))})),t},D=t=>{for(const e in t)return!1;return!0},M=(t,e,n)=>{if(c(n))return t?t.getAttribute(e):null;t&&t.setAttribute(e,n)},k=(t,e)=>new Set((M(t,e)||"").split(" ")),A=(t,e)=>{t&&t.removeAttribute(e)},R=(t,e,n,r)=>{if(n){const o=k(t,e);o[r?"add":"delete"](n);const s=O(o).join(" ").trim();M(t,e,s)}},L=n&&Element.prototype,I=(t,e)=>{const n=[],r=e?g(e)&&e:document;return r?S(n,r.querySelectorAll(t)):n},_=(t,e)=>!!g(t)&&(L.matches||L.msMatchesSelector).call(t,e),X=t=>t?O(t.childNodes):[],j=t=>t&&t.parentElement,N=(t,e)=>{if(g(t)){const n=L.closest;if(n)return n.call(t,e);do{if(_(t,e))return t;t=j(t)}while(t)}},F=()=>{},V=t=>{if(v(t))x(O(t),(t=>V(t)));else if(t){const e=j(t);e&&e.removeChild(t)}},Y=(t,e,n)=>{if(n&&t){let r,o=e;return v(n)?(r=document.createDocumentFragment(),x(n,(t=>{t===o&&(o=t.previousSibling),r.appendChild(t)}))):r=n,e&&(o?o!==e&&(o=o.nextSibling):o=t.firstChild),t.insertBefore(r,o||null),()=>V(n)}return F},B=(t,e)=>Y(t,null,e),G=(t,e)=>Y(j(t),t&&t.nextSibling,e),U=t=>{const e=document.createElement("div");return M(e,"class",t),e},W=t=>{const e=U();return e.innerHTML=t.trim(),x(X(e),(t=>V(t)))},q=n?window:{},K=Math.max,J=Math.min,Q=Math.round,Z=Math.abs,tt=q.cancelAnimationFrame,et=q.requestAnimationFrame,nt=q.setTimeout,rt=q.clearTimeout,ot=t=>t.charAt(0).toUpperCase()+t.slice(1),st=["-webkit-","-moz-","-o-","-ms-"],lt=["WebKit","Moz","O","MS","webkit","moz","o","ms"],ct={},it={},at=t=>{let e=it[t];if(H(it,t))return e;const n=ot(t),r=U().style;return x(st,(o=>{const s=o.replace(/-/g,""),l=[t,o+t,s+n,ot(s)+n];return!(e=l.find((t=>void 0!==r[t])))})),it[t]=e||""},ut=t=>{let e=ct[t]||q[t];return H(ct,t)||(x(lt,(n=>(e=e||q[n+ot(t)],!e))),ct[t]=e),e},dt=ut("MutationObserver"),pt=ut("IntersectionObserver"),ft=ut("ResizeObserver"),ht=ut("ScrollTimeline"),yt=(t,...e)=>t.bind(0,...e),vt=t=>{let e;const n=t?nt:et,r=t?rt:tt;return[o=>{r(e),e=n(o,f(t)?t():t)},()=>r(e)]},bt=(t,e)=>{let n,r,o,s=F;const{v:l,p:c,g:i}=e||{},a=function(e){s(),rt(n),n=r=void 0,s=F,t.apply(this,e)},d=t=>i&&r?i(r,t):t,p=()=>{s!==F&&a(d(o)||o)},h=function(){const t=O(arguments),e=f(l)?l():l;if(u(e)&&e>=0){const l=f(c)?c():c,i=u(l)&&l>=0,h=e>0?nt:et,y=e>0?rt:tt,v=d(t)||t,b=a.bind(0,v);s();const w=h(b,e);s=()=>y(w),i&&!n&&(n=nt(p,l)),r=o=v}else a(t)};return h.m=p,h},wt=/[^\x20\t\r\n\f]+/g,gt=(t,e,n)=>{const r=t&&t.classList;let o,s=0,l=!1;if(r&&e&&d(e)){const t=e.match(wt)||[];for(l=t.length>0;o=t[s++];)l=!!n(r,o)&&l}return l},xt=(t,e)=>{gt(t,e,((t,e)=>t.remove(e)))},mt=(t,e)=>(gt(t,e,((t,e)=>t.add(e))),yt(xt,t,e)),$t={opacity:1,zIndex:1},St=(t,e)=>{const n=t||"",r=e?parseFloat(n):parseInt(n,10);return r==r?r:0},Ot=(t,e,n)=>String((null!=e?e[n]||e.getPropertyValue(n):t.style[n])||"");function Et(t,e){const n=d(e);if(h(e)||n){let r=n?"":{};if(t){const o=q.getComputedStyle(t,null);r=n?Ot(t,o,e):e.reduce(((e,n)=>(e[n]=Ot(t,o,n),e)),r)}return r}t&&x(e,((n,r)=>((t,e,n)=>{try{const{style:r}=t;c(r[e])?r.setProperty(e,n):r[e]=((t,e)=>!$t[t]&&u(e)?`${e}px`:e)(e,n)}catch(r){}})(t,r,e[r])))}const Ct=t=>"rtl"===Et(t,"direction"),Tt=(t,e,n)=>{const r=e?`${e}-`:"",o=n?`-${n}`:"",s=`${r}top${o}`,l=`${r}right${o}`,c=`${r}bottom${o}`,i=`${r}left${o}`,a=Et(t,[s,l,c,i]);return{t:St(a[s],!0),r:St(a[l],!0),b:St(a[c],!0),l:St(a[i],!0)}},Ht=(t,e)=>`translate${y(t)?`(${t.x},${t.y})`:`${e?"X":"Y"}(${t})`}`,Pt="paddingTop",zt="paddingRight",Dt="paddingLeft",Mt="paddingBottom",kt="marginLeft",At="marginRight",Rt="marginBottom",Lt="overflowX",It="overflowY",_t="width",Xt="height",jt="hidden",Nt={w:0,h:0},Ft=(t,e)=>e?{w:e[`${t}Width`],h:e[`${t}Height`]}:Nt,Vt=t=>Ft("inner",t||q),Yt=yt(Ft,"offset"),Bt=yt(Ft,"client"),Gt=yt(Ft,"scroll"),Ut=t=>{const e=parseFloat(Et(t,_t))||0,n=parseFloat(Et(t,Xt))||0;return{w:e-Q(e),h:n-Q(n)}},Wt=t=>t.getBoundingClientRect(),qt=t=>!(!t||!t[Xt]&&!t[_t]),Kt=(t,e)=>{const n=qt(t);return!qt(e)&&n},Jt=()=>performance.now(),Qt=(t,e,n,r)=>{if(t&&e){let o=!0;return x(n,(n=>{(r?r(t[n]):t[n])!==(r?r(e[n]):e[n])&&(o=!1)})),o}return!1},Zt=(t,e)=>Qt(t,e,["w","h"]),te=(t,e)=>Qt(t,e,["x","y"]),ee=(t,e)=>Qt(t,e,["t","r","b","l"]),ne=(t,e,n)=>Qt(t,e,[_t,Xt],n&&(t=>Q(t)));let re;const oe="passive",se=()=>{if(c(re)){re=!1;try{q.addEventListener(oe,F,Object.defineProperty({},oe,{get(){re=!0}}))}catch(t){}}return re},le=t=>t.split(" "),ce=(t,e,n,r)=>{x(le(e),(e=>{t.removeEventListener(e,n,r)}))},ie=(t,e,n,r)=>{var o;const s=se(),l=null!=(o=s&&r&&r.S)?o:s,c=r&&r.$||!1,i=r&&r.O||!1,a=s?{passive:l,capture:c}:c;return yt(T,le(e).map((e=>{const r=i?o=>{ce(t,e,r,c),n(o)}:n;return t.addEventListener(e,r,a),yt(ce,t,e,r,c)})))},ae=t=>t.stopPropagation(),ue=t=>t.preventDefault(),de={x:0,y:0},pe=t=>{const e=t&&Wt(t);return e?{x:e.left+q.pageYOffset,y:e.top+q.pageXOffset}:de},fe=(t,e,n)=>n?n.n?-t:n.i?e-t:t:t,he=(t,e)=>{const{x:n,y:r}=u(e)?{x:e,y:e}:e||{};u(n)&&(t.scrollLeft=n),u(r)&&(t.scrollTop=r)},ye=t=>({x:t.scrollLeft,y:t.scrollTop}),ve=(t,e)=>{x(h(e)?e:[e],t)},be=t=>{const e=new Map,n=(t,n)=>{if(t){const r=e.get(t);ve((t=>{r&&r[t?"delete":"clear"](t)}),n)}else e.forEach((t=>{t.clear()})),e.clear()},r=(t,o)=>{if(d(t)){const r=e.get(t)||new Set;return e.set(t,r),ve((t=>{f(t)&&r.add(t)}),o),yt(n,t,o)}p(o)&&o&&n();const s=P(t),l=[];return x(s,(e=>{const n=t[e];n&&S(l,r(e,n))})),yt(T,l)};return r(t||{}),[r,n,(t,n)=>{x(O(e.get(t)),(t=>{n&&!E(n)?t.apply(0,n):t()}))}]},we=t=>JSON.stringify(t,((t,e)=>{if(f(e))throw 0;return e})),ge=(t,e)=>t?`${e}`.split(".").reduce(((t,e)=>t&&H(t,e)?t[e]:void 0),t):void 0,xe={paddingAbsolute:!1,showNativeOverlaidScrollbars:!1,update:{elementEvents:[["img","load"]],debounce:[0,33],attributes:null,ignoreMutation:null},overflow:{x:"scroll",y:"scroll"},scrollbars:{theme:"os-theme-dark",visibility:"auto",autoHide:"never",autoHideDelay:1300,autoHideSuspend:!1,dragScroll:!0,clickScroll:!1,pointers:["mouse","touch","pen"]}},me=(t,e)=>{const n={};return x($(P(e),P(t)),(r=>{const o=t[r],s=e[r];if(y(o)&&y(s))z(n[r]={},me(o,s)),D(n[r])&&delete n[r];else if(H(e,r)&&s!==o){let t=!0;if(h(o)||h(s))try{we(o)===we(s)&&(t=!1)}catch(L){}t&&(n[r]=s)}})),n},$e=(t,e,n)=>r=>[ge(t,r),n||void 0!==ge(e,r)],Se=`data-overlayscrollbars`,Oe="os-environment",Ee=`${Oe}-flexbox-glue`,Ce=`${Ee}-max`,Te=`os-scrollbar-hidden`,He=`${Se}-initialize`,Pe=Se,ze=`${Pe}-overflow-x`,De=`${Pe}-overflow-y`,Me="overflowVisible",ke="scrollbarHidden",Ae="scrollbarPressed",Re="updating",Le=`${Se}-viewport`,Ie="arrange",_e="scrollbarHidden",Xe=Me,je=`${Se}-padding`,Ne=Xe,Fe=`${Se}-content`,Ve="os-size-observer",Ye=`${Ve}-appear`,Be=`${Ve}-listener`,Ge=`${Be}-scroll`,Ue=`${Be}-item`,We=`${Ue}-final`,qe="os-trinsic-observer",Ke="os-no-css-vars",Je="os-theme-none",Qe="os-scrollbar",Ze=`${Qe}-rtl`,tn=`${Qe}-horizontal`,en=`${Qe}-vertical`,nn=`${Qe}-track`,rn=`${Qe}-handle`,on=`${Qe}-visible`,sn=`${Qe}-cornerless`,ln=`${Qe}-transitionless`,cn=`${Qe}-interaction`,an=`${Qe}-unusable`,un=`${Qe}-auto-hide`,dn=`${un}-hidden`,pn=`${Qe}-wheel`,fn=`${nn}-interactive`,hn=`${rn}-interactive`,yn={},vn={},bn=(t,e,n)=>P(t).map((r=>{const{static:o,instance:s}=t[r],[l,c,i]=n||[],a=n?s:o;if(a){const t=n?a(l,c,e):a(e);return(i||vn)[r]=t}})),wn=t=>vn[t],gn="__osOptionsValidationPlugin",xn="__osSizeObserverPlugin",mn=(()=>({[xn]:{static:()=>(t,e,n)=>{const r=3333333,o="scroll",s=W(`<div class="${Ue}" dir="ltr"><div class="${Ue}"><div class="${We}"></div></div><div class="${Ue}"><div class="${We}" style="width: 200%; height: 200%"></div></div></div>`),l=s[0],c=l.lastChild,i=l.firstChild,a=null==i?void 0:i.firstChild;let u,d=Yt(l),p=d,f=!1;const h=()=>{he(i,r),he(c,r)},y=t=>{u=0,f&&(d=p,e(!0===t))},v=t=>{p=Yt(l),f=!t||!Zt(p,d),t?(ae(t),f&&!u&&(tt(u),u=et(y))):y(!1===t),h()},b=[B(t,s),ie(i,o,v),ie(c,o,v)];return mt(t,Ge),Et(a,{[_t]:r,[Xt]:r}),et(h),[n?yt(v,!1):h,b]}}}))();let $n=0;const Sn="__osScrollbarsHidingPlugin",On=(()=>({[Sn]:{static:()=>({C:t=>{const{H:e,I:n,A:r}=t,o=!(r||e||!n.x&&!n.y)&&document.createElement("style");return o&&(M(o,"id",`${Le}-${Ie}-${$n}`),$n++),o},T:(t,e,n,r,o,s,l)=>[(e,s,l,c)=>{if(t){const{D:t}=o,{R:i,k:a}=e,{x:u,y:d}=a,{x:p,y:f}=i,h=t[c?zt:Dt],y=t.paddingTop,v=s.w+l.w,b=s.h+l.h,w={w:f&&d?`${f+v-h}px`:"",h:p&&u?`${p+b-y}px`:""};if(r){const{sheet:t}=r;if(t){const{cssRules:e}=t;if(e){e.length||t.insertRule(`#${M(r,"id")} + [${Le}~='${Ie}']::before {}`,0);const n=e[0].style;n[_t]=w.w,n[Xt]=w.h}}}else Et(n,{"--os-vaw":w.w,"--os-vah":w.h})}return t},(r,c,i)=>{if(t){const a=i||s(r),{D:u}=o,{k:d}=a,{x:p,y:f}=d,h={},y=t=>x(t,(t=>{h[t]=u[t]}));p&&y([Rt,Pt,Mt]),f&&y([kt,At,Dt,zt]);const v=Et(n,P(h));return R(n,Le,Ie),e||(h[Xt]=""),Et(n,h),[()=>{l(a,c,t,v),Et(n,v),R(n,Le,Ie,!0)},a]}return[F]}],M:()=>{let t={w:0,h:0},e=0;return(n,r,o)=>{const s=Vt(),l={w:s.w-t.w,h:s.h-t.h};if(0===l.w&&0===l.h)return;const c=Z(l.w),i=Z(l.h),a={w:Z(Q(s.w/(t.w/100))),h:Z(Q(s.h/(t.h/100)))},u=(()=>{const t=q.screen,e=t.deviceXDPI||0,n=t.logicalXDPI||1;return q.devicePixelRatio||e/n})(),d=c>2&&i>2,p=!((t,e)=>{const n=Z(t),r=Z(e);return!(n===r||n+1===r||n-1===r)})(a.w,a.h);if(d&&p&&u!==e&&u>0){const[t,e]=r();z(n.L,t),e&&o()}t=s,e=u}}})}}))(),En="__osClickScrollPlugin",Cn=(()=>({[En]:{static:()=>(t,e,n,r,o)=>{let s=0,l=F;const c=i=>{l=((t,e,n,r,o)=>{let s=0;const l=Jt(),c=K(0,133),i=n=>{const a=Jt(),u=a-l>=c,d=n?1:1-(K(0,l+c-a)/c||0),p=(e-t)*(f(o)?o(d,d*c,0,1,c):d)+t,h=u||1===d;r&&r(p,0,h),s=h?0:et((()=>i()))};return i(),t=>{tt(s),t&&i(t)}})(i,i+r*Math.sign(n),0,((n,i,a)=>{t(n);const u=e();if(a&&!(o>=u&&o<=u+r)){if(s)c(n);else{const t=nt((()=>{c(n)}),222);l=()=>{clearTimeout(t)}}s++}}))};return c(0),()=>l()}}}))();let Tn;const Hn=(t,e,n,r)=>{B(t,e);const o=Bt(e),s=Yt(e),l=Ut(n);return r&&V(e),{x:s.h-o.h+l.h,y:s.w-o.w+l.w}},Pn=(t,e)=>{Et(t,{[Lt]:jt,[It]:jt,direction:"rtl"}),he(t,{x:0});const n=pe(t),r=pe(e);he(t,{x:-999});const o=pe(e);return{i:n.x===r.x,n:r.x!==o.x}},zn=(t,e)=>{const n=mt(t,Ee),r=Wt(t),o=Wt(e),s=ne(o,r,!0),l=mt(t,Ce),c=Wt(t),i=Wt(e),a=ne(i,c,!0);return n(),l(),s&&a},Dn=()=>(Tn||(Tn=(()=>{const{body:t}=document,n=W(`<div class="${Oe}"><div></div></div>`)[0],r=n.firstChild,[o,,s]=be(),[l,c]=e({o:Hn(t,n,r),u:te},yt(Hn,t,n,r,!0)),[i]=c(),a=(t=>{let e=!1;const n=mt(t,Te);try{e="none"===Et(t,at("scrollbar-width"))||"none"===q.getComputedStyle(t,"::-webkit-scrollbar").getPropertyValue("display")}catch(r){}return n(),e})(n),u={x:0===i.x,y:0===i.y},d={elements:{host:null,padding:!a,viewport:t=>a&&t===t.ownerDocument.body&&t,content:!1},scrollbars:{slot:!0},cancel:{nativeScrollbarsOverlaid:!1,body:null}},p=z({},xe),f=yt(z,{},p),h=yt(z,{},d),y={L:i,I:u,H:a,A:"-1"===Et(n,"zIndex"),P:!!ht,V:Pn(n,r),U:zn(n,r),B:yt(o,"z"),j:yt(o,"r"),G:h,N:t=>z(d,t)&&h(),q:f,W:t=>z(p,t)&&f(),F:z({},d),X:z({},p)},v=yt(ie,q,"resize"),b=bt((t=>s(t,[])),{v:33,p:99});return A(n,"style"),V(n),v(yt(b,"r")),a||u.x&&u.y||v((()=>{const t=wn(Sn);(t?t.M():F)(y,l,yt(b,"z"))})),y})()),Tn),Mn=(t,e)=>f(e)?e.apply(0,t):e,kn=(t,e,n,r)=>{const o=c(r)?n:r;return Mn(t,o)||e.apply(0,t)},An=(t,e,n,r)=>{const o=c(r)?n:r,s=Mn(t,o);return!!s&&(w(s)?s:e.apply(0,t))},Rn=new WeakMap,Ln=t=>Rn.get(t),In=(t,e,n,r)=>{let o=!1;const{Y:s,Z:l,J:c,K:i,tt:a,nt:u}=r||{},d=bt((()=>o&&n(!0)),{v:33,p:99}),[p,f]=((t,e,n)=>{let r=!1;const o=!!n&&new WeakMap,s=s=>{if(o&&n){const l=n.map((e=>{const[n,r]=e||[];return[r&&n?(s||I)(n,t):[],r]}));x(l,(n=>x(n[0],(s=>{const l=n[1],c=o.get(s)||[];if(t.contains(s)&&l){const t=ie(s,l.trim(),(n=>{r?(t(),o.delete(s)):e(n)}));o.set(s,S(c,t))}else T(c),o.delete(s)}))))}};return s(),[()=>{r=!0},s]})(t,d,c),h=l||[],y=$(s||[],h),v=(o,s)=>{if(!E(s)){const l=a||F,c=u||F,d=[],p=[];let y=!1,v=!1;if(x(s,(n=>{const{attributeName:o,target:s,type:a,oldValue:u,addedNodes:f,removedNodes:b}=n,w="attributes"===a,g="childList"===a,$=t===s,O=w&&o,E=O?M(s,o||""):null,C=O&&u!==E,T=m(h,o)&&C;if(e&&(g||!$)){const e=w&&C,a=e&&i&&_(s,i),p=(a?!l(s,o,u,E):!w||e)&&!c(n,!!a,t,r);x(f,(t=>S(d,t))),x(b,(t=>S(d,t))),v=v||p}!e&&$&&C&&!l(s,o,u,E)&&(S(p,o),y=y||T)})),f((t=>C(d).reduce(((e,n)=>(S(e,I(t,n)),_(n,t)?S(e,n):e)),[]))),e)return!o&&v&&n(!1),[!1];if(!E(p)||y){const t=[C(p),y];return!o&&n.apply(0,t),t}}},b=new dt(yt(v,!1));return[()=>(b.observe(t,{attributes:!0,attributeOldValue:!0,attributeFilter:y,subtree:e,childList:e,characterData:e}),o=!0,()=>{o&&(p(),b.disconnect(),o=!1)}),()=>{if(o)return d.m(),v(!0,b.takeRecords())}]},_n=(t,n,r)=>{let o=!1;const s=3333333,{ot:l,st:c,et:i}=r||{},a=wn(xn),{V:u}=Dn(),d=yt(Ct,t),[p,f]=vt(33),[y]=e({o:!1,_:!0});return()=>{const r=[f,ie(q,"resize",(()=>{o=!!i,p((()=>{o=!1}))}))],v=W(`<div class="${Ve}"><div class="${Be}"></div></div>`)[0],b=v.firstChild,w=t=>{const e=t instanceof ResizeObserverEntry,r=!e&&h(t);let c=!1,i=!1,a=!0;if(e){const[e,,n]=y(t.contentRect),r=qt(e),s=Kt(e,n);i=!n||s,c=!i&&(!r||o),a=!c}else r?[,a]=t:i=!0===t;if(l&&a){const e=r?t[0]:Ct(v);he(v,{x:fe(s,s,e&&u),y:s})}c||n({ct:r?t:void 0,rt:!r,st:i}),o=!1};if(ft){const t=new ft((t=>w(t.pop())));t.observe(b),S(r,(()=>{t.disconnect()}))}else{if(!a)return F;{const[t,e]=a(b,w,c);S(r,$([mt(v,Ye),ie(v,"animationstart",t)],e))}}if(l){const[t]=e({o:void 0},d);S(r,ie(v,"scroll",(e=>{const n=t(),[r,o,s]=n;o&&(xt(b,"ltr rtl"),mt(b,r?"rtl":"ltr"),w([!!r,o,s])),ae(e)})))}return yt(T,S(r,B(t,v)))}},Xn=(t,n)=>{let r;const o=U(qe),[s]=e({o:!1}),l=(t,e)=>{if(t){const r=s((t=>0===t.h||t.isIntersecting||t.intersectionRatio>0)(t)),[,o]=r;return o&&!e&&n(r)&&[r]}},c=(t,e)=>l(e.pop(),t);return[()=>{const e=[];if(pt)r=new pt(yt(c,!1),{root:t}),r.observe(o),S(e,(()=>{r.disconnect()}));else{const t=()=>{const t=Yt(o);l(t)};S(e,_n(o,t)()),t()}return yt(T,S(e,B(t,o)))},()=>r&&c(!0,r.takeRecords())]},jn=(t,e,n)=>K(t,J(e,n)),Nn=(t,e,n)=>{const r=Q(e),[o,s]=((t,e)=>[e&&e.i?t:0,fe(t,t,e)])(r,n),l=(s-t)/s,c=t/o,i=t/s,a=n?n.n?l:n.i?c:i:i;return jn(0,1,a)},Fn=(t,e,n,r)=>{if(r){const t=n?"x":"y",{Ct:e,zt:o}=r,s=o[t],l=e[t];return jn(0,1,s/(s+l))}const o=n?_t:Xt,s=Wt(t)[o],l=Wt(e)[o];return jn(0,1,s/l)},Vn=(t,e,n)=>{const{G:r,A:o}=Dn(),{scrollbars:s}=r(),{slot:l}=s,{Ht:c,ut:i,ft:a,It:u,At:d,Et:f,vt:y}=e,{scrollbars:v}=u?{}:t,{slot:b}=v||{},w=new Map,g=t=>ht&&new ht({source:d,axis:t}),O=g("x"),C=g("y"),H=An([c,i,a],(()=>y&&f?c:i),l,b),P=t=>y&&!f&&j(t)===a,z=t=>{w.forEach(((e,n)=>{(!t||m(h(t)?t:[t],n))&&((e||[]).forEach((t=>{t&&t.cancel()})),w.delete(n))}))},D=(t,e,n)=>{const r=n?mt:xt;x(t,(t=>{r(t.Tt,e)}))},M=(t,e)=>{x(t,(t=>{const[n,r]=e(t);Et(n,r)}))},k=(t,e,n)=>{M(t,(t=>{const{Dt:r,Rt:o}=t;return[r,{[n?_t:Xt]:`${(100*Fn(r,o,n,e)).toFixed(3)}%`}]}))},A=(t,e,n)=>{C||C||M(t,(t=>{const{Dt:r,Rt:o,Tt:s}=t,l=((t,e,n,r,o,s)=>{const{V:l}=Dn(),c=s?"x":"y",i=s?"Left":"Top",{Ct:a}=r,u=Fn(t,e,s);return 1/u*(1-u)*Nn(n[`scroll${i}`],a[c],s&&o&&l)})(r,o,d,e,Ct(s),n);return[r,{transform:l==l?Ht(`${(100*l).toFixed(3)}%`,n):""}]}))},R=t=>{const{Tt:e}=t,n=P(e)&&e,r=ye(d);return[n,{transform:n?Ht({x:`${r.x}px`,y:`${r.y}px`}):""}]},L=(t,e,n,r)=>e&&t.animate(n,{timeline:e,composite:r}),I=(t,e,n,r)=>L(t,e,{transform:[Ht(`0px`,r),Ht(`${K(0,n-.5)}px`,r)]},"add"),_=[],X=[],N=[],F=(t,e,n)=>{const r=p(n),o=!r||!n;(!r||n)&&D(X,t,e),o&&D(N,t,e)},Y=t=>{const e=t?tn:en,r=t?X:N,s=E(r)?ln:"",l=U(`${Qe} ${e} ${s}`),c=U(nn),i=U(rn),a={Tt:l,Rt:c,Dt:i};return o||mt(l,Ke),S(r,a),S(_,[B(l,c),B(c,i),yt(V,l),z,n(a,F,t)]),a},G=yt(Y,!0),W=yt(Y,!1);return G(),W(),[{kt:t=>{k(X,t,!0),k(N,t)},Mt:t=>{A(X,t,!0),A(N,t)},Lt:()=>{const t=(t,{Tt:e,Dt:n})=>{const r=t&&Ct(e);z(n),w.set(n,[L(n,t?O:C,{transform:[Ht(`0%`,t),Ht(t&&r?"100%":"-100%",t)],[t?r?"right":"left":"top"]:["0%","100%"]})])};X.forEach(yt(t,!0)),N.forEach(yt(t,!1))},Pt:({Ct:t})=>{$(N,X).forEach((({Tt:e})=>{z(e),P(e)&&w.set(e,[I(e,O,t.x,!0),I(e,C,t.y)])}))},Vt:()=>{C||C||(y&&M(X,R),y&&M(N,R))},Ut:F,Bt:{P:O,jt:X,Gt:G,Nt:yt(M,X)},qt:{P:C,jt:N,Gt:W,Nt:yt(M,N)}},()=>(B(H,X[0].Tt),B(H,N[0].Tt),nt((()=>{F(ln)}),300),yt(T,_))]},Yn=(t,e,n)=>{const{ut:r,At:o,Wt:s}=e,l=(e,l)=>{const{Dt:c,Rt:i}=e,a=`scroll${l?"Left":"Top"}`,u=`client${l?"X":"Y"}`,d=l?_t:Xt,p=l?"left":"top",f=l?"w":"h",h=l?"x":"y",y="pointerup pointerleave pointercancel lostpointercapture",v=(t,e)=>r=>{const{Ct:s}=n,l=Yt(i)[f]-Yt(c)[f],u=e*r/l*s[h];o[a]=t+u};return ie(i,"pointerdown",(e=>{const n=N(e.target,`.${rn}`)===c,l=n?c:i,h=t.scrollbars,{button:b,isPrimary:w,pointerType:g}=e,{pointers:x}=h,m=0===b&&w&&h[n?"dragScroll":"clickScroll"]&&(x||[]).includes(g);if(R(r,Pe,Ae,!0),m){const t=!n&&e.shiftKey,h=yt(Wt,c),b=yt(Wt,i),w=(t,e)=>(t||h())[p]-(e||b())[p],g=Q(Wt(o)[d])/Yt(o)[f]||1,x=v(o[a]||0,1/g),m=e[u],$=h(),O=b(),E=$[d],C=w($,O)+E/2,H=m-O[p],P=n?0:H-C,z=t=>{T(D),l.releasePointerCapture(t.pointerId)},D=[yt(R,r,Pe,Ae),ie(s,y,z),ie(s,"selectstart",(t=>ue(t)),{S:!1}),ie(i,y,z),ie(i,"pointermove",(e=>{const r=e[u]-m;(n||t)&&x(P+r)}))];if(t)x(P);else if(!n){const t=wn(En);t&&S(D,t(x,w,P,E,H))}l.setPointerCapture(e.pointerId)}}))};return(t,e,n)=>{const{Tt:c}=t,[i,a]=vt(333),u=!!o.scrollBy;let d=!0;return yt(T,[ie(c,"pointerenter",(()=>{e(cn,!0)})),ie(c,"pointerleave pointercancel",(()=>{e(cn,!1)})),ie(c,"wheel",(t=>{const{deltaX:n,deltaY:s,deltaMode:l}=t;u&&d&&0===l&&j(c)===r&&o.scrollBy({left:n,top:s,behavior:"smooth"}),d=!1,e(pn,!0),i((()=>{d=!0,e(pn)})),ue(t)}),{S:!1,$:!0}),ie(c,"mousedown",yt(ie,s,"click",ae,{O:!0,$:!0}),{$:!0}),l(t,n),a])}},Bn=({_t:t})=>({Xt:e,rn:n,xt:r})=>{const{U:o}=Dn(),{bt:s}=e||{},{lt:l}=n;(t||!o)&&(s||r)&&Et(t,{[Xt]:l?"":"100%"})},Gn=({ut:t,nn:n,ft:r,vt:o},s)=>{const[l,c]=e({u:ee,o:Tt()},yt(Tt,t,"padding",""));return({$t:t,Xt:e,rn:i,xt:a})=>{let[u,d]=c(a);const{H:p,U:f}=Dn(),{rt:h,yt:y,wt:v}=e||{},{it:b}=i,[w,g]=t("paddingAbsolute");(h||d||a||!f&&y)&&([u,d]=l(a));const x=!o&&(g||v||d);if(x){const t=!w||!n&&!p,e=u.r+u.l,o=u.t+u.b,l={[At]:t&&!b?-e:0,[Rt]:t?-o:0,[kt]:t&&b?-e:0,top:t?-u.t:0,right:t?b?-u.r:"auto":0,left:t?b?"auto":-u.l:0,[_t]:t?`calc(100% + ${e}px)`:""},c={[Pt]:t?u.t:0,[zt]:t?u.r:0,[Mt]:t?u.b:0,[Dt]:t?u.l:0};Et(n||r,l),Et(r,c),z(s,{nn:u,ln:!t,D:n?c:z({},l,c)})}return{an:x}}},Un=({ut:t,nn:n,ft:r,sn:o,vt:s,gt:l,Et:c,en:i},a)=>{const u=yt(K,0),d="visible",p=42,f={u:Zt,o:{w:0,h:0}},h={u:te,o:{x:jt,y:jt}},y=(t,e)=>{const n=q.devicePixelRatio%1!=0?1:0,r={w:u(t.w-e.w),h:u(t.h-e.h)};return{w:r.w>n?r.w:0,h:r.h>n?r.h:0}},v=t=>0===t.indexOf(d),{L:b,U:w,H:g,I:x}=Dn(),m=wn(Sn),$=!s&&!g&&(x.x||x.y),S=c&&s,[O,E]=e(f,yt(Ut,r)),[C,T]=e(f,yt(Gt,r)),[H,P]=e(f),[D,k]=e(f),[A]=e(h),L=(e,n)=>{if(Et(r,{[Xt]:""}),n){const{ln:n,nn:o}=a,{un:s,R:l}=e,c=Ut(t),i=Bt(t),u="content-box"===Et(r,"boxSizing"),d=n||u?o.b+o.t:0,p=!(x.x&&u);Et(r,{[Xt]:i.h+c.h+(s.x&&p?l.x:0)-d})}},I=(t,e)=>{const n=g||t?0:p,o=(t,o,s)=>{const l=Et(r,t),c="scroll"===(e?e[t]:l);return[l,c,c&&!g?o?n:s:0,o&&!!n]},[s,l,c,i]=o(Lt,x.x,b.x),[a,u,d,f]=o(It,x.y,b.y);return{Qt:{x:s,y:a},un:{x:l,y:u},R:{x:c,y:d},k:{x:i,y:f}}},_=(t,e,n,r)=>{const o=(t,e)=>{const n=v(t),r=e&&n&&t.replace(`${d}-`,"")||"";return[e&&!n?t:"",v(r)?"hidden":r]},[s,l]=o(n.x,e.x),[c,i]=o(n.y,e.y);return r[Lt]=l&&c?l:s,r[It]=i&&s?i:c,I(t,r)},X=(t,e,n,r)=>{const{R:o,k:s}=t,{x:l,y:c}=s,{x:i,y:u}=o,{D:d}=a,p=e?kt:At,f=e?Dt:zt,h=d[p],y=d[Rt],v=d[f],b=d[Mt];r[_t]=`calc(100% + ${u+-1*h}px)`,r[p]=-u+h,r[Rt]=-i+y,n&&(r[f]=v+(c?u:0),r[Mt]=b+(l?i:0))},[j,N]=m?m.T($,w,r,o,a,I,X):[()=>$,()=>[F]];return({$t:e,Xt:o,rn:c,xt:d},{an:p})=>{const{rt:f,St:h,yt:b,bt:m,wt:$}=o||{},{lt:F,it:V}=c,[Y,B]=e("showNativeOverlaidScrollbars"),[G,U]=e("overflow"),W=Y&&x.x&&x.y,q=!s&&!w&&(f||b||h||B||m),J=f||p||b||$||B,Q=v(G.x),Z=v(G.y),tt=Q||Z;let et,nt=E(d),rt=T(d),ot=P(d),st=k(d);if(B&&g&&l(_e,ke,!W),q&&(et=I(W),L(et,F)),J){tt&&l(Xe,Me,!1);const[t,e]=N(W,V,et),[n,o]=nt=O(d),[s,c]=rt=C(d),a=Bt(r);let p=s,f=a;t(),(c||o||B)&&e&&!W&&j(e,s,n,V)&&(f=Bt(r),p=Gt(r));const h=Vt(i),v={w:u(K(s.w,p.w)+n.w),h:u(K(s.h,p.h)+n.h)},b={w:u((S?h.w:f.w+u(a.w-s.w))+n.w),h:u((S?h.h:f.h+u(a.h-s.h))+n.h)};st=D(b),ot=H(y(v,b),d)}const[lt,ct]=st,[it,at]=ot,[ut,dt]=rt,[pt,ft]=nt,ht={x:it.w>0,y:it.h>0},yt=Q&&Z&&(ht.x||ht.y)||Q&&ht.x&&!ht.y||Z&&ht.y&&!ht.x;if(p||$||ft||dt||ct||at||U||B||q||J){const e={[At]:0,[Rt]:0,[kt]:0,[_t]:"",[Lt]:"",[It]:""},n=_(W,ht,G,e),o=j(n,ut,pt,V);s||X(n,V,o,e),q&&L(n,F),s?(M(t,ze,e[Lt]),M(t,De,e[It])):Et(r,e)}R(t,Pe,Me,yt),R(n,je,Ne,yt),s||R(r,Le,Xe,tt);const[vt,bt]=A(I(W).Qt);return z(a,{Qt:vt,zt:{x:lt.w,y:lt.h},Ct:{x:it.w,y:it.h},tn:ht}),{Kt:bt,Zt:ct,Jt:at}}},Wn=(t,n,r,o)=>{const[s,l,c,i,a]=(t=>{const[e,n,r]=(t=>{const e=Dn(),{G:n,H:r}=e,o=wn(Sn),s=o&&o.C,{elements:l}=n(),{host:c,padding:i,viewport:a,content:u}=l,d=w(t),p=d?{}:t,{elements:f}=p,{host:h,padding:y,viewport:v,content:b}=f||{},g=d?t:p.target,x=_(g,"textarea"),$=g.ownerDocument,O=$.documentElement,E=g===$.body,C=$.defaultView,H=yt(kn,[g]),z=yt(An,[g]),D=yt(Mn,[g]),L=yt(U,""),I=yt(H,L,a),N=yt(z,L,u),W=I(v),q=W===g,K=q&&E,J=!q&&N(b),Q=!q&&w(W)&&W===J,Z=Q&&!!D(u),tt=Z?I():W,et=Z?J:N(),nt=K?O:Q?tt:W,rt=x?H(L,c,h):g,ot=K?nt:rt,st=Q?et:J,lt=$.activeElement,ct=!q&&C.top===C&<===g,it={Ht:g,ut:ot,ft:nt,nn:!q&&z(L,i,y),_t:st,sn:!q&&!r&&s&&s(e),At:K?O:nt,Ft:K?$:nt,en:C,Wt:$,dt:x,Et:E,It:d,vt:q,cn:Q,ht:(t,e)=>((t,e,n)=>k(t,e).has(n))(nt,q?Pe:Le,q?e:t),gt:(t,e,n)=>R(nt,q?Pe:Le,q?e:t,n)},at=P(it).reduce(((t,e)=>{const n=it[e];return S(t,!(!n||!w(n)||j(n))&&n)}),[]),ut=t=>t?m(at,t):null,{Ht:dt,ut:pt,nn:ft,ft:ht,_t:vt,sn:bt}=it,wt=[()=>{A(pt,Pe),A(pt,He),A(dt,He),E&&(A(O,Pe),A(O,He))}],gt=x&&ut(pt);let xt=x?dt:X([vt,ht,ft,pt,dt].find((t=>!1===ut(t))));const $t=K?dt:vt||ht,St=yt(T,wt);return[it,()=>{M(pt,Pe,q?"viewport":"host"),M(ft,je,""),M(vt,Fe,""),q||M(ht,Le,"");const t=E&&!q?mt(j(g),Te):F,e=t=>{B(j(t),X(t)),V(t)};if(gt&&(G(dt,pt),S(wt,(()=>{G(pt,dt),V(pt)}))),B($t,xt),B(pt,ft),B(ft||pt,!q&&ht),B(ht,vt),S(wt,(()=>{t(),A(ft,je),A(vt,Fe),A(ht,ze),A(ht,De),A(ht,Le),ut(vt)&&e(vt),ut(ht)&&e(ht),ut(ft)&&e(ft)})),r&&!q&&(R(ht,Le,_e,!0),S(wt,yt(A,ht,Le))),bt&&(((t,e)=>{Y(j(t),t,e)})(ht,bt),S(wt,yt(V,bt))),ct){const t="tabindex",e=M(ht,t);M(ht,t,"-1"),ht.focus();const n=()=>e?M(ht,t,e):A(ht,t),r=ie($,"pointerdown keydown",(()=>{n(),r()}));S(wt,[n,r])}else lt&<.focus&<.focus();return xt=0,St},St]})(t),o={nn:{t:0,r:0,b:0,l:0},ln:!1,D:{[At]:0,[Rt]:0,[kt]:0,[Pt]:0,[zt]:0,[Mt]:0,[Dt]:0},zt:{x:0,y:0},Ct:{x:0,y:0},Qt:{x:jt,y:jt},tn:{x:!1,y:!1}},{Ht:s,ft:l,gt:c,vt:i}=e,{H:a,I:u,U:d}=Dn(),p=!a&&(u.x||u.y),f=[Bn(e),Gn(e,o),Un(e,o)];return[n,t=>{const e={},n=(p||!d)&&ye(l);return c("",Re,!0),x(f,(n=>{z(e,n(t,e)||{})})),c("",Re),he(l,n),!i&&he(s,0),e},o,e,r]})(t),[p,y,v]=((t,n)=>{let r,o,s,l,c;const{H:i}=Dn(),a=`[${Pe}]`,p=`[${Le}]`,y=["tabindex"],v=["wrap","cols","rows"],b=["id","class","style","open"],w={lt:!1,it:Ct(t.ut)},{ut:S,ft:O,_t:E,dt:C,vt:T,ht:H,gt:D}=t,{U:k}=Dn(),[R]=e({u:Zt,o:{w:0,h:0}},(()=>{const t=H(Xe,Me),e=H(Ie,""),n=e&&ye(O);D(Xe,Me),D(Ie,""),D("",Re,!0);const r=Gt(E),o=Gt(O),s=Ut(O);return D(Xe,Me,t),D(Ie,"",e),D("",Re),he(O,n),{w:o.w+r.w+s.w,h:o.h+r.h+s.h}})),L=C?v:$(b,v),I=bt(n,{v:()=>r,p:()=>o,g(t,e){const[n]=t,[r]=e;return[$(P(n),P(r)).reduce(((t,e)=>(t[e]=n[e]||r[e],t)),{})]}}),_=t=>{x(t||y,(t=>{if(m(y,t)){const e=M(S,t);d(e)?M(O,t,e):A(O,t)}}))},X=(t,e)=>{const[r,o]=t,s={bt:o};return z(w,{lt:r}),!e&&n(s),s},j=({rt:t,ct:e,st:r})=>{const o=(!t||r||e)&&i?I:n,[s,l]=e||[];e&&z(w,{it:s}),o({rt:t||r,st:r,wt:l})},F=(t,e)=>{const[,r]=R(),o={yt:r};return r&&!e&&(t?n:I)(o),o},V=(t,e,n)=>{const r={St:e};return e&&!n?I(r):T||_(t),r},[Y,B]=E||!k?Xn(S,X):[],G=!T&&_n(S,j,{st:!0,ot:!0,et:!0}),[U,W]=In(S,!1,V,{Z:b,Y:$(b,y)}),q=T&&ft&&new ft((t=>{const e=t[t.length-1].contentRect;j({rt:!0,st:Kt(e,c)}),c=e}));return[()=>{_(),q&&q.observe(S);const t=G&&G(),e=Y&&Y(),n=U();return()=>{q&&q.disconnect(),t&&t(),e&&e(),l&&l(),n()}},({$t:t,Ot:e,xt:n})=>{const c={},[i]=t("update.ignoreMutation"),[d,y]=t("update.attributes"),[v,b]=t("update.elementEvents"),[w,x]=t("update.debounce"),m=e||n;if(b||y){s&&s(),l&&l();const[t,e]=In(E||O,!0,F,{Y:$(L,d||[]),J:v,K:a,nt:(t,e)=>{const{target:n,attributeName:r}=t;return!(e||!r||T)&&((t,e,n)=>{const r=N(t,e),o=t&&((t,e)=>{const n=e?g(e)&&e:document;return n?n.querySelector(t):null})(n,r),s=N(o,e)===r;return!(!r||!o)&&(r===t||o===t||s&&N(N(t,n),e)!==r)})(n,a,p)||!!N(n,`.${Qe}`)||!!(t=>f(i)&&i(t))(t)}});l=t(),s=e}if(x)if(I.m(),h(w)){const t=w[0],e=w[1];r=u(t)&&t,o=u(e)&&e}else u(w)?(r=w,o=!1):(r=!1,o=!1);if(m){const t=W(),e=B&&B(),n=s&&s();t&&z(c,V(t[0],t[1],m)),e&&z(c,X(e[0],m)),n&&z(c,F(n[0],m))}return c},w]})(i,(t=>{L({},t)})),[b,O,,E]=((t,e,n,r,o,s)=>{let l,c,i,a,u,d=F,p=0;const[f,h]=vt(),[y,v]=vt(),[b,w]=vt(100),[g,x]=vt(100),[m,$]=vt(100),[O,E]=vt((()=>p)),[C,H]=Vn(t,o,Yn(e,o,r)),{ut:P,Ft:z,Et:D}=o,{Ut:M,kt:k,Mt:A,Lt:R,Pt:L,Vt:I}=C,_=t=>{M(un,t,!0),M(un,t,!1)},X=(t,e)=>{if(E(),t)M(dn);else{const t=yt(M,dn,!0);p>0&&!e?O(t):t()}},j=t=>"mouse"===t.pointerType,N=t=>{j(t)&&(a=c,a&&X(!0))},V=[w,E,x,$,v,h,()=>d(),ie(P,"pointerover",N,{O:!0}),ie(P,"pointerenter",N),ie(P,"pointerleave",(t=>{j(t)&&(a=!1,c&&X(!1))})),ie(P,"pointermove",(t=>{j(t)&&l&&f((()=>{w(),X(!0),g((()=>{l&&X(!1)}))}))})),ie(z,"scroll",(t=>{y((()=>{A(r),i&&X(!0),b((()=>{i&&!a&&X(!1)}))})),s(t),I()}))];return[()=>yt(T,S(V,H())),({$t:t,xt:e,Xt:o,Yt:s})=>{const{Zt:a,Jt:f,Kt:h}=s||{},{wt:y,st:v}=o||{},{it:b}=n,{I:w}=Dn(),{Ct:g,Qt:x,tn:$}=r,[S,O]=t("showNativeOverlaidScrollbars"),[E,C]=t("scrollbars.theme"),[T,H]=t("scrollbars.visibility"),[P,j]=t("scrollbars.autoHide"),[N,F]=t("scrollbars.autoHideSuspend"),[V]=t("scrollbars.autoHideDelay"),[Y,B]=t("scrollbars.dragScroll"),[G,U]=t("scrollbars.clickScroll"),W=v&&!e,q=$.x||$.y,K=a||f||y||e,J=h||H,Q=S&&w.x&&w.y,Z=(t,e)=>{const n="visible"===T||"auto"===T&&"scroll"===t;return M(on,n,e),n};if(p=V,W&&(N&&q?(_(!1),d(),m((()=>{d=ie(z,"scroll",yt(_,!0),{O:!0})}))):_(!0)),O&&M(Je,Q),C&&(M(u),M(E,!0),u=E),F&&!N&&_(!0),j&&(l="move"===P,c="leave"===P,i="never"!==P,X(!i,!0)),B&&M(hn,Y),U&&M(fn,G),J){const t=Z(x.x,!0),e=Z(x.y,!1);M(sn,!(t&&e))}K&&(k(r),A(r),R(r),I(),L(r),M(an,!g.x,!0),M(an,!g.y,!1),M(Ze,b&&!D))},{},C]})(t,n,v,c,i,o),C=t=>x(z({},t),((t,e,n)=>{n[e]=!!t})),H=t=>P(t).some((e=>!!t[e])),L=(t,e)=>{const{fn:o,xt:s,Ot:c,_n:i,dn:a}=t,u=o||{},d=!!s,p={$t:$e(n,u,d),fn:u,xt:d};if(i)return O(p),!1;const f=e||y(z({},p,{Ot:c}));a&&z(f,{rt:!0,yt:!0});const h=l(z({},p,{rn:v,Xt:f}));O(z({},p,{Xt:f,Yt:h}));const b=H(f),w=H(h),g=b||w||!D(u)||d;return g&&r(t,{Xt:C(f),Yt:C(h)}),g};return[()=>{const{Ht:t,ft:e,Wt:n,Et:r}=i,o=r?n.documentElement:t,l=ye(o),c=[p(),s(),b()];return he(e,l),yt(T,c)},L,()=>({vn:v,hn:c}),{pn:i,gn:E},a]},qn=(t,e,n)=>{const{q:r,B:o,j:s}=Dn(),l=w(t),a=l?t:t.target,u=Ln(a);if(e&&!u){let u=!1;const d=[],p={},f=t=>{const e=wn(gn);return e?e(t,!0):t},h=z({},r(),f(e)),[y,v,b]=be(),[w,g,x]=be(n),m=(t,e)=>{x(t,e),b(t,e)},[$,O,E,C,H]=Wn(t,h,(({fn:t,xt:e},{Xt:n,Yt:r})=>{const{rt:o,wt:s,bt:l,yt:c,St:i}=n,{Zt:a,Jt:u,Kt:d}=r;m("updated",[k,{updateHints:{sizeChanged:o,directionChanged:s,heightIntrinsicChanged:l,overflowEdgeChanged:a,overflowAmountChanged:u,overflowStyleChanged:d,contentMutation:c,hostMutation:i},changedOptions:t||{},force:!!e}])}),(t=>m("scroll",[k,t]))),M=t=>{(t=>{Rn.delete(t)})(a),T(d),u=!0,m("destroyed",[k,t]),v(),g()},k={options(t,e){if(t){const n=e?r():{},o=me(h,z(n,f(t)));D(o)||(z(h,o),O({fn:o}))}return z({},h)},on:w,off:(t,e)=>{t&&e&&g(t,e)},state(){const{vn:t,hn:e}=E(),{it:n}=t,{zt:r,Ct:o,Qt:s,tn:l,nn:c,ln:i}=e;return z({},{overflowEdge:r,overflowAmount:o,overflowStyle:s,hasOverflow:l,padding:c,paddingAbsolute:i,directionRTL:n,destroyed:u})},elements(){const{Ht:t,ut:e,nn:n,ft:r,_t:o,At:s,Ft:l}=C.pn,{Bt:c,qt:i}=C.gn,a=t=>{const{Dt:e,Rt:n,Tt:r}=t;return{scrollbar:r,track:n,handle:e}},u=t=>{const{jt:e,Gt:n}=t,r=a(e[0]);return z({},r,{clone:()=>{const t=a(n());return O({_n:!0}),t}})};return z({},{target:t,host:e,padding:n||r,viewport:r,content:o||r,scrollOffsetElement:s,scrollEventElement:l,scrollbarHorizontal:u(c),scrollbarVertical:u(i)})},update:t=>O({xt:t,Ot:!0}),destroy:yt(M,!1),plugin:t=>p[P(t)[0]]},A=()=>{const{hn:t}=E(),{tn:e}=t,n=e.x||e.y;n&&O({dn:n})};return S(d,[o(A),s(A),H]),((t,e)=>{Rn.set(t,e)})(a,k),bn(yn,qn,[k,y,p]),((t,e)=>{const{nativeScrollbarsOverlaid:n,body:r}=e||{},{I:o,H:s,G:l}=Dn(),{nativeScrollbarsOverlaid:a,body:u}=l().cancel,d=null!=n?n:a,p=c(r)?u:r,f=(o.x||o.y)&&d,h=t&&(i(p)?!s:p);return!!f||!!h})(C.pn.Et,!l&&t.cancel)?(M(!0),k):(S(d,$()),m("initialized",[k]),k.update(!0),k)}return u};return qn.plugin=t=>{const e=h(t),n=e?t:[t],r=n.map((t=>bn(t,qn)[0]));return(t=>{x(t,(t=>x(t,((e,n)=>{yn[n]=t[n]}))))})(n),e?r:r[0]},qn.valid=t=>{const e=t&&t.elements,n=f(e)&&e();return b(n)&&!!Ln(n.target)},qn.env=()=>{const{L:t,I:e,H:n,V:r,U:o,A:s,P:l,F:c,X:i,G:a,N:u,q:d,W:p}=Dn();return z({},{scrollbarsSize:t,scrollbarsOverlaid:e,scrollbarsHiding:n,rtlScrollBehavior:r,flexboxGlue:o,cssCustomProperties:s,scrollTimeline:l,staticDefaultInitialization:c,staticDefaultOptions:i,getDefaultInitialization:a,setDefaultInitialization:u,getDefaultOptions:d,setDefaultOptions:p})},t.ClickScrollPlugin=Cn,t.OverlayScrollbars=qn,t.ScrollbarsHidingPlugin=On,t.SizeObserverPlugin=mn,Object.defineProperties(t,{bn:{value:!0},[Symbol.toStringTag]:{value:"Module"}}),t}({}); |
# Changelog | ||
## 2.4.2 | ||
### Improvements | ||
- Makes custom instance plugins compatible with "pure" environments such as `react` and all other component frameworks / libraries. | ||
## 2.4.1 | ||
@@ -4,0 +10,0 @@ |
{ | ||
"name": "overlayscrollbars", | ||
"version": "2.4.1", | ||
"version": "2.4.2", | ||
"description": "A scrollbar plugin that hides native scrollbars, provides custom styleable overlay scrollbars and keeps the native functionality and feeling.", | ||
@@ -5,0 +5,0 @@ "author": "Rene Haas | KingSora", |
@@ -583,3 +583,3 @@ <div align="center"> | ||
| newOptions | `PartialOptions` | The new (partial) options which should be applied. | | ||
| pure | `boolean / undefined` | Whether all already added event listeners will be removed before the new listeners are added. | | ||
| pure | `boolean / undefined` | Whether the options should be reset before the new options are added. | | ||
@@ -597,3 +597,3 @@ | returns | description | | ||
| eventListeners | `EventListeners` | An object which contains the added listeners. The fields are the event names and the values the listeners. | | ||
| pure | `boolean / undefined` | Whether all already added event listeners will be removed before the new listeners are added. | | ||
| pure | `boolean / undefined` | Whether all already added event listeners should be removed before the new listeners are added. | | ||
@@ -1037,5 +1037,7 @@ | returns | description | | ||
// the `osInstance` parameter is the OverlayScrollbar instance the plugin is bound to | ||
// the `event` parameter is a function which adds events to the instance which can't be removed from outside the plugin | ||
// the `osStatic` parameter is the gobal OverlayScrollbar object | ||
instance: (osInstance, osStatic) => { | ||
instance: (osInstance, event, osStatic) => { | ||
let count = 0; | ||
const instancePluginModuleInstance = { | ||
@@ -1045,2 +1047,14 @@ getCount: () => count, | ||
} | ||
// event which fires when the instance was initialized | ||
event('initialized', () => { | ||
console.log("instance initialized"); | ||
}); | ||
// event which fires when the viewport was scrolled | ||
const removeScrollEvent = event('scroll', () => { | ||
console.log("viewport scrolled"); | ||
removeScrollEvent(); // removes the event after the first scroll | ||
}); | ||
return instancePluginModuleInstance; | ||
@@ -1066,4 +1080,2 @@ } | ||
For TypeScript users the plugin system provides various types to improve the developer experience: | ||
```ts | ||
@@ -1070,0 +1082,0 @@ // Describes a OverlayScrollbar plugin. |
@@ -306,2 +306,24 @@ type CacheValues<T> = [value: T, changed: boolean, previous?: T]; | ||
type PluginModuleInstance = Record<string | number | symbol, any>; | ||
type InstancePluginEvent = { | ||
/** | ||
* Adds event listeners to the instance. | ||
* @param eventListeners An object which contains the added listeners. | ||
* @returns Returns a function which removes the added listeners. | ||
*/ | ||
(eventListeners: EventListeners): () => void; | ||
/** | ||
* Adds a single event listener to the instance. | ||
* @param name The name of the event. | ||
* @param listener The listener which is invoked on that event. | ||
* @returns Returns a function which removes the added listeners. | ||
*/ | ||
<N extends keyof EventListenerArgs>(name: N, listener: EventListener<N>): () => void; | ||
/** | ||
* Adds multiple event listeners to the instance. | ||
* @param name The name of the event. | ||
* @param listener The listeners which are invoked on that event. | ||
* @returns Returns a function which removes the added listeners. | ||
*/ | ||
<N extends keyof EventListenerArgs>(name: N, listener: EventListener<N>[]): () => void; | ||
}; | ||
/** | ||
@@ -326,6 +348,7 @@ * Describes a OverlayScrollbars plugin module. | ||
* @param osInstance The instance object the plugin is bound to. | ||
* @param event A function which adds events to the instance which can't be removed from outside the plugin. (instance events added with the `on` function can be removed with the optional `pure` parameter) | ||
* @param osStatic The static object the plugin is bound to. | ||
* @returns The plugins instance object or a falsy value if the plugin doesn't need any instance object. | ||
*/ | ||
instance: (osInstance: OverlayScrollbars, osStatic: OverlayScrollbarsStatic) => I | void; | ||
instance: (osInstance: OverlayScrollbars, event: InstancePluginEvent, osStatic: OverlayScrollbarsStatic) => I | void; | ||
} : object); | ||
@@ -590,3 +613,3 @@ /** | ||
* @param newOptions The new options which should be applied. | ||
* @param pure Whether the newOptions should be merged with the current options or with the default options. | ||
* @param pure Whether the options should be reset before the new options are added. | ||
* @returns Returns the current options of the instance. | ||
@@ -598,3 +621,3 @@ */ | ||
* @param eventListeners An object which contains the added listeners. | ||
* @param pure Whether all already added event listeners will be removed before the new listeners are added. | ||
* @param pure Whether all already added event listeners should be removed before the new listeners are added. | ||
* @returns Returns a function which removes the added listeners. | ||
@@ -647,2 +670,2 @@ */ | ||
export { ClickScrollPlugin, DynamicInitializationElement, EventListener, EventListenerArgs, EventListeners, InferInstancePluginModuleInstance, InferStaticPluginModuleInstance, Initialization, InitializationTarget, InitializationTargetElement, InitializationTargetObject, InstancePlugin, OnUpdatedEventListenerArgs, Options, OverflowBehavior, OverlayScrollbars, PartialInitialization, PartialOptions, Plugin, PluginModule, PluginModuleInstance, ReadonlyOptions, ScrollbarsAutoHideBehavior, ScrollbarsHidingPlugin, ScrollbarsVisibilityBehavior, SizeObserverPlugin, StaticInitializationElement, StaticPlugin }; | ||
export { ClickScrollPlugin, DynamicInitializationElement, EventListener, EventListenerArgs, EventListeners, InferInstancePluginModuleInstance, InferStaticPluginModuleInstance, Initialization, InitializationTarget, InitializationTargetElement, InitializationTargetObject, InstancePlugin, InstancePluginEvent, OnUpdatedEventListenerArgs, Options, OverflowBehavior, OverlayScrollbars, PartialInitialization, PartialOptions, Plugin, PluginModule, PluginModuleInstance, ReadonlyOptions, ScrollbarsAutoHideBehavior, ScrollbarsHidingPlugin, ScrollbarsVisibilityBehavior, SizeObserverPlugin, StaticInitializationElement, StaticPlugin }; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4560015
18094
1186