PageSourceSearch

https://www.kb.cz/js/app.js?t=B2D9400923BBBDE6F7BB708CC94EC03D5A411414BC092F1BA3FBD854CEE9A0EA;

js kb.cz collected 2026-09-24 09:04:03 UTC 1,282,711 bytes, 396 lines download raw bytes

1(()=>{var pD={4(Le,U){"use strict";Object.defineProperty(U,"__esModule",{value:!0}),U.default={BUFFERING:3,ENDED:0,PAUSED:2,PLAYING:1,UNSTARTED:-1,VIDEO_CUED:5},Le.exports=U.default},12(Le){Le.exports={xxs:352,sm:992,md:1568}},17(Le){"use strict";Le.exports=function U(de,he){if(de===he)return!0;if(de&&he&&typeof de=="object"&&typeof he=="object"){if(de.constructor!==he.constructor)return!1;var re,p,Q;if(Array.isArray(de)){if(re=de.length,re!=he.length)return!1;for(p=re;p--!==0;)if(!U(de[p],he[p]))return!1;return!0}if(de.constructor===RegExp)return de.source===he.source&&de.flags===he.flags;if(de.valueOf!==Object.prototype.valueOf)return de.valueOf()===he.valueOf();if(de.toString!==Object.prototype.toString)return de.toString()===he.toString();if(Q=Object.keys(de),re=Q.length,re!==Object.keys(he).length)return!1;for(p=re;p--!==0;)if(!Object.prototype.hasOwnProperty.call(he,Q[p]))return!1;for(p=re;p--!==0;){var A=Q[p];if(!U(de[A],he[A]))return!1}return!0}return de!==de&&he!==he}},137(Le,U,de){var he,re;(function(p,Q){he=Q,re=typeof he=="function"?he.call(U,de,U,Le):he,re!==void 0&&(Le.exports=re)})(typeof window<"u"?window:this,function(){"use strict";function p(){}var Q=p.prototype;return Q.on=function(A,te){if(!(!A||!te)){var se=this._events=this._events||{},K=se[A]=se[A]||[];return K.indexOf(te)==-1&&K.push(te),this}},Q.once=function(A,te){if(!(!A||!te)){this.on(A,te);var se=this._onceEvents=this._onceEvents||{},K=se[A]=se[A]||{};return K[te]=!0,this}},Q.off=function(A,te){var se=this._events&&this._events[A];if(!(!se||!se.length)){var K=se.indexOf(te);return K!=-1&&se.splice(K,1),this}},Q.emitEvent=function(A,te){var se=this._events&&this._events[A];if(!(!se||!se.length)){se=se.slice(0),te=te||[];for(var K=this._onceEvents&&this._onceEvents[A],G=0;G<se.length;G++){var j=se[G],ge=K&&K[j];ge&&(this.off(A,j),delete K[j]),j.apply(this,te)}return this}},Q.allOff=function(){delete this._events,delete this._onceEvents},p})},147(Le){Le.exports=function(p,Q,A){var te=document.head||document.getElementsByTagName("head")[0],se=document.createElement("script");typeof Q=="function"&&(A=Q,Q={}),Q=Q||{},A=A||function(){},se.type=Q.type||"text/javascript",se.charset=Q.charset||"utf8",se.async="async"in Q?!!Q.async:!0,se.src=p,Q.attrs&&U(se,Q.attrs),Q.text&&(se.text=""+Q.text);var K="onload"in se?de:he;K(se,A),se.onload||de(se,A),te.appendChild(se)};function U(re,p){for(var Q in p)re.setAttribute(Q,p[Q])}function de(re,p){re.onload=function(){this.onerror=this.onload=null,p(null,re)},re.onerror=function(){this.onerror=this.onload=null,p(new Error("Failed to load "+this.src),re)}}function he(re,p){re.onreadystatechange=function(){this.readyState!="complete"&&this.readyState!="loaded"||(this.onreadystatechange=null,p(null,re))}}},169(Le,U,de){var he,re,p;(function(Q,A){re=[de(137),de(485)],he=A,p=typeof he=="function"?he.apply(U,re):he,p!==void 0&&(Le.exports=p)})(window,function(A,te){"use strict";function se(R){for(var z in R)return!1;return z=null,!0}var K=document.documentElement.style,G=typeof K.transition=="str
1ing"?"transition":"WebkitTransition",j=typeof K.transform=="string"?"transform":"WebkitTransform",ge={WebkitTransition:"webkitTransitionEnd",transition:"transitionend"}[G],Ce={transform:j,transition:G,transitionDuration:G+"Duration",transitionProperty:G+"Property",transitionDelay:G+"Delay"};function Me(R,z){R&&(this.element=R,this.layout=z,this.position={x:0,y:0},this._create())}var Te=Me.prototype=Object.create(A.prototype);Te.constructor=Me,Te._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}},this.css({position:"absolute"})},Te.handleEvent=function(R){var z="on"+R.type;this[z]&&this[z](R)},Te.getSize=function(){this.size=te(this.element)},Te.css=function(R){var z=this.element.style;for(var ie in R){var Ee=Ce[ie]||ie;z[Ee]=R[ie]}},Te.getPosition=function(){var R=getComputedStyle(this.element),z=this.layout._getOption("originLeft"),ie=this.layout._getOption("originTop"),Ee=R[z?"left":"right"],ke=R[ie?"top":"bottom"],bt=parseFloat(Ee),St=parseFloat(ke),mt=this.layout.size;Ee.indexOf("%")!=-1&&(bt=bt/100*mt.width),ke.indexOf("%")!=-1&&(St=St/100*mt.height),bt=isNaN(bt)?0:bt,St=isNaN(St)?0:St,bt-=z?mt.paddingLeft:mt.paddingRight,St-=ie?mt.paddingTop:mt.paddingBottom,this.position.x=bt,this.position.y=St},Te.layoutPosition=function(){var R=this.layout.size,z={},ie=this.layout._getOption("originLeft"),Ee=this.layout._getOption("originTop"),ke=ie?"paddingLeft":"paddingRight",bt=ie?"left":"right",St=ie?"right":"left",mt=this.position.x+R[ke];z[bt]=this.getXValue(mt),z[St]="";var wt=Ee?"paddingTop":"paddingBottom",Sn=Ee?"top":"bottom",Zt=Ee?"bottom":"top",kt=this.position.y+R[wt];z[Sn]=this.getYValue(kt),z[Zt]="",this.css(z),this.emitEvent("layout",[this])},Te.getXValue=function(R){var z=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&!z?R/this.layout.size.width*100+"%":R+"px"},Te.getYValue=function(R){var z=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&z?R/this.layout.size.height*100+"%":R+"px"},Te._transitionTo=function(R,z){this.getPosition();var ie=this.position.x,Ee=this.position.y,ke=R==this.position.x&&z==this.position.y;if(this.setPosition(R,z),ke&&!this.isTransitioning){this.layoutPosition();return}var bt=R-ie,St=z-Ee,mt={};mt.transform=this.getTranslate(bt,St),this.transition({to:mt,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0})},Te.getTranslate=function(R,z){var ie=this.layout._getOption("originLeft"),Ee=this.layout._getOption("originTop");return R=ie?R:-R,z=Ee?z:-z,"translate3d("+R+"px, "+z+"px, 0)"},Te.goTo=function(R,z){this.setPosition(R,z),this.layoutPosition()},Te.moveTo=Te._transitionTo,Te.setPosition=function(R,z){this.position.x=parseFloat(R),this.position.y=parseFloat(z)},Te._nonTransition=function(R){this.css(R.to),R.isCleaning&&this._removeStyles(R.to);for(var z in R.onTransitionEnd)R.onTransitionEnd[z].call(this)},Te.transition=function(R){if(!parseFloat(this.layout.options.transitionDuration)){this._nonTransition(R);return}var z=this._transn;for(var ie in R.onTransitionEnd)z.onEnd[ie]=R.onTransitionEnd[ie];for(ie in R.to)z.ingProperties[ie]=!0,R.isCleaning&&(z.clean[ie]=!0);if(R.from){this.css(R.from);var Ee=this.element.offsetHeight;Ee=null}this.enableTransition(R.to),this.css(R.to),this.isTransitioning=!0};function me(R){return R.replace(/([A-Z])/g,function(z){return"-"+z.toLowerCase()})}var Pe="opacity,"+me(j);Te.enableTransition=function(){if(!this.isTransitioning){var R=this.layout.options.transitionDuration;R=typeof R=="number"?R+"ms":R,this.css({transitionProperty:Pe,transitionDuration:R,transitionDelay:this.staggerDelay||0}),this.element.addEventListener(ge,this,!1)}},Te.onwebkitTransitionEnd=function(R){this.ontransitionend(R)},Te.onotransitionend=function(R){this.ontransitionend(R)};var ve={"-webkit-transform":"transform"};Te.ontransitionend=function(R){if(R.target===this.element){var z=this._transn,ie=ve[R.propertyName]||R.propertyName;if(delete z.ingProperties[ie],se(z.ingProperties)&&this.disableTransition(),ie in z.clean&&(this.element.style[R.propertyName]="",delete z.clean[ie]),ie in z.onEnd){var Ee=z.onEnd[ie];Ee.call(this),delete z.onEnd[ie]}this.emitEvent("transitionEnd",[this])}},Te.disableTransition=function(){this.removeTransitionStyles(),this.element.removeEventListener(ge,this,
1!1),this.isTransitioning=!1},Te._removeStyles=function(R){var z={};for(var ie in R)z[ie]="";this.css(z)};var Ye={transitionProperty:"",transitionDuration:"",transitionDelay:""};return Te.removeTransitionStyles=function(){this.css(Ye)},Te.stagger=function(R){R=isNaN(R)?0:R,this.staggerDelay=R+"ms"},Te.removeElem=function(){this.element.parentNode.removeChild(this.element),this.css({display:""}),this.emitEvent("remove",[this])},Te.remove=function(){if(!G||!parseFloat(this.layout.options.transitionDuration)){this.removeElem();return}this.once("transitionEnd",function(){this.removeElem()}),this.hide()},Te.reveal=function(){delete this.isHidden,this.css({display:""});var R=this.layout.options,z={},ie=this.getHideRevealTransitionEndProperty("visibleStyle");z[ie]=this.onRevealTransitionEnd,this.transition({from:R.hiddenStyle,to:R.visibleStyle,isCleaning:!0,onTransitionEnd:z})},Te.onRevealTransitionEnd=function(){this.isHidden||this.emitEvent("reveal")},Te.getHideRevealTransitionEndProperty=function(R){var z=this.layout.options[R];if(z.opacity)return"opacity";for(var ie in z)return ie},Te.hide=function(){this.isHidden=!0,this.css({display:""});var R=this.layout.options,z={},ie=this.getHideRevealTransitionEndProperty("hiddenStyle");z[ie]=this.onHideTransitionEnd,this.transition({from:R.visibleStyle,to:R.hiddenStyle,isCleaning:!0,onTransitionEnd:z})},Te.onHideTransitionEnd=function(){this.isHidden&&(this.css({display:"none"}),this.emitEvent("hide"))},Te.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})},Me})},181(Le,U,de){var he="Expected a function",re=NaN,p="[object Symbol]",Q=/^\s+|\s+$/g,A=/^[-+]0x[0-9a-f]+$/i,te=/^0b[01]+$/i,se=/^0o[0-7]+$/i,K=parseInt,G=typeof de.g=="object"&&de.g&&de.g.Object===Object&&de.g,j=typeof self=="object"&&self&&self.Object===Object&&self,ge=G||j||Function("return this")(),Ce=Object.prototype,Me=Ce.toString,Te=Math.max,me=Math.min,Pe=function(){return ge.Date.now()};function ve(Ee,ke,bt){var St,mt,wt,Sn,Zt,kt,ze=0,He=!1,ut=!1,Ue=!0;if(typeof Ee!="function")throw new TypeError(he);ke=ie(ke)||0,Ye(bt)&&(He=!!bt.leading,ut="maxWait"in bt,wt=ut?Te(ie(bt.maxWait)||0,ke):wt,Ue="trailing"in bt?!!bt.trailing:Ue);function at(Pt){var ye=St,Qr=mt;return St=mt=void 0,ze=Pt,Sn=Ee.apply(Qr,ye),Sn}function Cr(Pt){return ze=Pt,Zt=setTimeout(Je,ke),He?at(Pt):Sn}function J(Pt){var ye=Pt-kt,Qr=Pt-ze,Ci=ke-ye;return ut?me(Ci,wt-Qr):Ci}function Ae(Pt){var ye=Pt-kt,Qr=Pt-ze;return kt===void 0||ye>=ke||ye<0||ut&&Qr>=wt}function Je(){var Pt=Pe();if(Ae(Pt))return Xe(Pt);Zt=setTimeout(Je,J(Pt))}function Xe(Pt){return Zt=void 0,Ue&&St?at(Pt):(St=mt=void 0,Sn)}function lt(){Zt!==void 0&&clearTimeout(Zt),ze=0,St=kt=mt=Zt=void 0}function Lt(){return Zt===void 0?Sn:Xe(Pe())}function st(){var Pt=Pe(),ye=Ae(Pt);if(St=arguments,mt=this,kt=Pt,ye){if(Zt===void 0)return Cr(kt);if(ut)return Zt=setTimeout(Je,ke),at(kt)}return Zt===void 0&&(Zt=setTimeout(Je,ke)),Sn}return st.cancel=lt,st.flush=Lt,st}function Ye(Ee){var ke=typeof Ee;return!!Ee&&(ke=="object"||ke=="function")}function R(Ee){return!!Ee&&typeof Ee=="object"}function z(Ee){return typeof Ee=="symbol"||R(Ee)&&Me.call(Ee)==p}function ie(Ee){if(typeof Ee=="number")return Ee;if(z(Ee))return re;if(Ye(Ee)){var ke=typeof Ee.valueOf=="function"?Ee.valueOf():Ee;Ee=Ye(ke)?ke+"":ke}if(typeof Ee!="string")return Ee===0?Ee:+Ee;Ee=Ee.replace(Q,"");var bt=te.test(Ee);return bt||se.test(Ee)?K(Ee.slice(2),bt?2:8):A.test(Ee)?re:+Ee}Le.exports=ve},221(Le,U,de){"use strict";/**
2 * @license React
3 * react-dom.production.js
4 *
5 * Copyright (c) Meta Platforms, Inc. and affiliates.
6 *
7 * This source code is licensed under the MIT license found in the
8 * LICENSE file in the root directory of this source tree.
9 */var he=de(540);function re(G){var j="https://react.dev/errors/"+G;if(1<arguments.length){j+="?args[]="+encodeURIComponent(arguments[1]);for(var ge=2;ge<arguments.length;ge++)j+="&args[]="+encodeURIComponent(arguments[ge])}return"Minified React error #"+G+"; visit "+j+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function p(){}var Q={d:{f:p,r:function(){throw Error(re(522))},D:p,C:p,L:p,m:p,X:p,S:p,M:p},p:0,findDOMNode:null},A=Symbol.for("react.portal");function te(G,j,ge){var Ce=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:A,key:Ce==null?null:""+Ce,children:G,containerInfo:j,implementation:ge}}var se=he.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function K(G,j){if(G==="font")return"";if(typeof j=="string")return j==="use-credentials"?j:""}U.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Q,U.createPortal=function(G,j){var ge=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!j||j.nodeType!==1&&j.nodeType!==9&&j.nodeType!==11)throw Error(re(299));return te(G,j,null,ge)},U.flushSync=function(G){var j=se.T,ge=Q.p;try{if(se.T=null,Q.p=2,G)return G()}finally{se.T=j,Q.p=ge,Q.d.f()}},U.preconnect=function(G,j){typeof G=="string"&&(j?(j=j.crossOrigin,j=typeof j=="string"?j==="use-credentials"?j:"":void 0):j=null,Q.d.C(G,j))},U.prefetchDNS=function(G){typeof G=="string"&&Q.d.D(G)},U.preinit=function(G,j){if(typeof G=="string"&&j&&typeof j.as=="string"){var ge=j.as,Ce=K(ge,j.crossOrigin),Me=typeof j.integrity=="string"?j.integrity:void 0,Te=typeof j.fetchPriority=="string"?j.fetchPriority:void 0;ge==="style"?Q.d.S(G,typeof j.precedence=="string"?j.precedence:void 0,{crossOrigin:Ce,integrity:Me,fetchPriority:Te}):ge==="script"&&Q.d.X(G,{crossOrigin:Ce,integrity:Me,fetchPriority:Te,nonce:typeof j.nonce=="string"?j.nonce:void 0})}},U.preinitModule=function(G,j){if(typeof G=="string")if(typeof j=="object"&&j!==null){if(j.as==null||j.as==="script"){var ge=K(j.as,j.crossOrigin);Q.d.M(G,{crossOrigin:ge,integrity:typeof j.integrity=="string"?j.integrity:void 0,nonce:typeof j.nonce=="string"?j.nonce:void 0})}}else j==null&&Q.d.M(G)},U.preload=function(G,j){if(typeof G=="string"&&typeof j=="object"&&j!==null&&typeof j.as=="string"){var ge=j.as,Ce=K(ge,j.crossOrigin);Q.d.L(G,ge,{crossOrigin:Ce,integrity:typeof j.integrity=="string"?j.integrity:void 0,nonce:typeof j.nonce=="string"?j.nonce:void 0,type:typeof j.type=="string"?j.type:void 0,fetchPriority:typeof j.fetchPriority=="string"?j.fetchPriority:void 0,referrerPolicy:typeof j.referrerPolicy=="string"?j.referrerPolicy:void 0,imageSrcSet:typeof j.imageSrcSet=="string"?j.imageSrcSet:void 0,imageSizes:typeof j.imageSizes=="string"?j.imageSizes:void 0,media:typeof j.media=="string"?j.media:void 0})}},U.preloadModule=function(G,j){if(typeof G=="string")if(j){var ge=K(j.as,j.crossOrigin);Q.d.m(G,{as:typeof j.as=="string"&&j.as!=="script"?j.as:void 0,crossOrigin:ge,integrity:typeof j.integrity=="string"?j.integrity:void 0})}else Q.d.m(G)},U.requestFormReset=function(G){Q.d.r(G)},U.unstable_batchedUpdates=function(G,j){return G(j)},U.useFormState=function(G,j,ge){return se.H.useFormState(G,j,ge)},U.useFormStatus=function(){return se.H.useHostTransitionStatus()},U.version="19.2.4"},245(Le,U,de){U=Le.exports=p.debug=p.default=p,U.coerce=se,U.disable=A,U.enable=Q,U.enabled=te,U.humanize=de(988),U.names=[],U.skips=[],U.formatters={};var he;function re(K){var G=0,j;for(j in K)G=(G<<5)-G+K.charCodeAt(j),G|=0;return U.colors[Math.abs(G)%U.colors.length]}function p(K){function G(){if(G.enabled){var j=G,ge=+new Date,Ce=ge-(he||ge);j.diff=Ce,j.prev=he,j.curr=ge,he=ge;for(var Me=new Array(arguments.length),Te=0;Te<Me.length;Te++)Me[Te]=arguments[Te];
vendor: 19,531 bytes, lines 9-24
9Me[0]=U.coerce(Me[0]),typeof Me[0]!="string"&&Me.unshift("%O");var me=0;Me[0]=Me[0].replace(/%([a-zA-Z%])/g,function(ve,Ye){if(ve==="%%")return ve;me++;var R=U.formatters[Ye];if(typeof R=="function"){var z=Me[me];ve=R.call(j,z),Me.splice(me,1),me--}return ve}),U.formatArgs.call(j,Me);var Pe=G.log||U.log||console.log.bind(console);Pe.apply(j,Me)}}return G.namespace=K,G.enabled=U.enabled(K),G.useColors=U.useColors(),G.color=re(K),typeof U.init=="function"&&U.init(G),G}function Q(K){U.save(K),U.names=[],U.skips=[];for(var G=(typeof K=="string"?K:"").split(/[\s,]+/),j=G.length,ge=0;ge<j;ge++)G[ge]&&(K=G[ge].replace(/\*/g,".*?"),K[0]==="-"?U.skips.push(new RegExp("^"+K.substr(1)+"$")):U.names.push(new RegExp("^"+K+"$")))}function A(){U.enable("")}function te(K){var G,j;for(G=0,j=U.skips.length;G<j;G++)if(U.skips[G].test(K))return!1;for(G=0,j=U.names.length;G<j;G++)if(U.names[G].test(K))return!0;return!1}function se(K){return K instanceof Error?K.stack||K.message:K}},247(Le,U,de){"use strict";var he;/**
10 * @license React
11 * react-dom-client.production.js
12 *
13 * Copyright (c) Meta Platforms, Inc. and affiliates.
14 *
15 * This source code is licensed under the MIT license found in the
16 * LICENSE file in the root directory of this source tree.
17 */var re=de(982),p=de(540),Q=de(961);function A(o){var l="https://react.dev/errors/"+o;if(1<arguments.length){l+="?args[]="+encodeURIComponent(arguments[1]);for(var d=2;d<arguments.length;d++)l+="&args[]="+encodeURIComponent(arguments[d])}return"Minified React error #"+o+"; visit "+l+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function te(o){return!(!o||o.nodeType!==1&&o.nodeType!==9&&o.nodeType!==11)}function se(o){var l=o,d=o;if(o.alternate)for(;l.return;)l=l.return;else{o=l;do l=o,(l.flags&4098)!==0&&(d=l.return),o=l.return;while(o)}return l.tag===3?d:null}function K(o){if(o.tag===13){var l=o.memoizedState;if(l===null&&(o=o.alternate,o!==null&&(l=o.memoizedState)),l!==null)return l.dehydrated}return null}function G(o){if(o.tag===31){var l=o.memoizedState;if(l===null&&(o=o.alternate,o!==null&&(l=o.memoizedState)),l!==null)return l.dehydrated}return null}function j(o){if(se(o)!==o)throw Error(A(188))}function ge(o){var l=o.alternate;if(!l){if(l=se(o),l===null)throw Error(A(188));return l!==o?null:o}for(var d=o,m=l;;){var b=d.return;if(b===null)break;var E=b.alternate;if(E===null){if(m=b.return,m!==null){d=m;continue}break}if(b.child===E.child){for(E=b.child;E;){if(E===d)return j(b),o;if(E===m)return j(b),l;E=E.sibling}throw Error(A(188))}if(d.return!==m.return)d=b,m=E;else{for(var D=!1,N=b.child;N;){if(N===d){D=!0,d=b,m=E;break}if(N===m){D=!0,m=b,d=E;break}N=N.sibling}if(!D){for(N=E.child;N;){if(N===d){D=!0,d=E,m=b;break}if(N===m){D=!0,m=E,d=b;break}N=N.sibling}if(!D)throw Error(A(189))}}if(d.alternate!==m)throw Error(A(190))}if(d.tag!==3)throw Error(A(188));return d.stateNode.current===d?o:l}function Ce(o){var l=o.tag;if(l===5||l===26||l===27||l===6)return o;for(o=o.child;o!==null;){if(l=Ce(o),l!==null)return l;o=o.sibling}return null}var Me=Object.assign,Te=Symbol.for("react.element"),me=Symbol.for("react.transitional.element"),Pe=Symbol.for("react.portal"),ve=Symbol.for("react.fragment"),Ye=Symbol.for("react.strict_mode"),R=Symbol.for("react.profiler"),z=Symbol.for("react.consumer"),ie=Symbol.for("react.context"),Ee=Symbol.for("react.forward_ref"),ke=Symbol.for("react.suspense"),bt=Symbol.for("react.suspense_list"),St=Symbol.for("react.memo"),mt=Symbol.for("react.lazy"),wt=Symbol.for("react.activity"),Sn=Symbol.for("react.memo_cache_sentinel"),Zt=Symbol.iterator;function kt(o){return o===null||typeof o!="object"?null:(o=Zt&&o[Zt]||o["@@iterator"],typeof o=="function"?o:null)}var ze=Symbol.for("react.client.reference");function He(o){if(o==null)return null;if(typeof o=="function")return o.$$typeof===ze?null:o.displayName||o.name||null;if(typeof o=="string")return o;switch(o){case ve:return"Fragment";case R:return"Profiler";case Ye:return"StrictMode";case ke:return"Suspense";case bt:return"SuspenseList";case wt:return"Activity"}if(typeof o=="object")switch(o.$$typeof){case Pe:return"Portal";case ie:return o.displayName||"Context";case z:return(o._context.displayName||"Context")+".Consumer";case Ee:var l=o.render;return o=o.displayName,o||(o=l.displayName||l.name||"",o=o!==""?"ForwardRef("+o+")":"ForwardRef"),o;case St:return l=o.displayName||null,l!==null?l:He(o.type)||"Memo";case mt:l=o._payload,o=o._init;try{return He(o(l))}catch{}}return null}var ut=Array.isArray,Ue=p.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,at=Q.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Cr={pending:!1,data:null,method:null,action:null},J=[],Ae=-1;function Je(o){return{current:o}}function Xe(o){0>Ae||(o.current=J[Ae],J[Ae]=null,Ae--)}function lt(o,l){Ae++,J[Ae]=o.current,o.current=l}var Lt=Je(null),st=Je(null),Pt=Je(null),ye=Je(null);function Qr(o,l){switch(lt(Pt,l),lt(st,o),lt(Lt,null),l.nodeType){case 9:case 11:o=(o=l.documentElement)&&(o=o.namespaceURI)?h1(o):0;break;default:if(o=l.tagName,l=l.namespaceURI)l=h1(l),o=Vv(l,o);else switch(o){case"svg":o=1;break;case"math":o=2;break;default:o=0}}Xe(Lt),lt(Lt,o)}function Ci(){Xe(Lt),Xe(st),Xe(Pt)}function Lm(o){o.memoizedState!==null&&lt(ye,o);var l=Lt.current,d=Vv(l,o.type);l!==d&&(lt(st,o),lt(Lt,d))}function Of(o){st.current===o&&(Xe(Lt),Xe(st)),ye.current===o&&(Xe(ye),Hc._currentValue=Cr)}var Os,Am;function sa(o){if(Os===void 0)try{throw Error()}catch(d){var l=d.stack.trim().match(/\n( *(at )?)/);Os=l&&l[1]||"",Am=-1<d.stack.indexOf(`
18    at`)?" (<anonymous>)":-1<d.stack.indexOf("@")?"@unknown:0:0":""}return`
19`+Os+o+Am}var kf=!1;function Lf(o,l){if(!o||kf)return"";kf=!0;var d=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var m={DetermineComponentFrameRoot:function(){try{if(l){var De=function(){throw Error()};if(Object.defineProperty(De.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(De,[])}catch(fe){var ce=fe}Reflect.construct(o,[],De)}else{try{De.call()}catch(fe){ce=fe}o.call(De.prototype)}}else{try{throw Error()}catch(fe){ce=fe}(De=o())&&typeof De.catch=="function"&&De.catch(function(){})}}catch(fe){if(fe&&ce&&typeof fe.stack=="string")return[fe.stack,ce.stack]}return[null,null]}};m.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var b=Object.getOwnPropertyDescriptor(m.DetermineComponentFrameRoot,"name");b&&b.configurable&&Object.defineProperty(m.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var E=m.DetermineComponentFrameRoot(),D=E[0],N=E[1];if(D&&N){var Z=D.split(`
20`),le=N.split(`
21`);for(b=m=0;m<Z.length&&!Z[m].includes("DetermineComponentFrameRoot");)m++;for(;b<le.length&&!le[b].includes("DetermineComponentFrameRoot");)b++;if(m===Z.length||b===le.length)for(m=Z.length-1,b=le.length-1;1<=m&&0<=b&&Z[m]!==le[b];)b--;for(;1<=m&&0<=b;m--,b--)if(Z[m]!==le[b]){if(m!==1||b!==1)do if(m--,b--,0>b||Z[m]!==le[b]){var we=`
22`+Z[m].replace(" at new "," at ");return o.displayName&&we.includes("<anonymous>")&&(we=we.replace("<anonymous>",o.displayName)),we}while(1<=m&&0<=b);break}}}finally{kf=!1,Error.prepareStackTrace=d}return(d=o?o.displayName||o.name:"")?sa(d):""}function Rm(o,l){switch(o.tag){case 26:case 27:case 5:return sa(o.type);case 16:return sa("Lazy");case 13:return o.child!==l&&l!==null?sa("Suspense Fallback"):sa("Suspense");case 19:return sa("SuspenseList");case 0:case 15:return Lf(o.type,!1);case 11:return Lf(o.type.render,!1);case 1:return Lf(o.type,!0);case 31:return sa("Activity");default:return""}}function Im(o){try{var l="",d=null;do l+=Rm(o,d),d=o,o=o.return;while(o);return l}catch(m){return`
23Error generating stack: `+m.message+`
24`+m.stack}}var wu=Object.prototype.hasOwnProperty,Af=re.unstable_scheduleCallback,Rf=re.unstable_cancelCallback,If=re.unstable_shouldYield,Nm=re.unstable_requestPaint,Yr=re.unstable_now,Kr=re.unstable_getCurrentPriorityLevel,Nf=re.unstable_ImmediatePriority,Pm=re.unstable_UserBlockingPriority,Il=re.unstable_NormalPriority,eE=re.unstable_LowPriority,Na=re.unstable_IdlePriority,tE=re.log,Bm=re.unstable_setDisableYieldValue,Eu=null,At=null;function ks(o){if(typeof tE=="function"&&Bm(o),At&&typeof At.setStrictMode=="function")try{At.setStrictMode(Eu,o)}catch{}}var Tr=Math.clz32?Math.clz32:rE,nE=Math.log,Hm=Math.LN2;function rE(o){return o>>>=0,o===0?32:31-(nE(o)/Hm|0)|0}var ko=256,xu=262144,Ls=4194304;function As(o){var l=o&42;if(l!==0)return l;switch(o&-o){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return o&261888;case 262144:case 524288:case 1048576:case 2097152:return o&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return o&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return o}}function Nl(o,l,d){var m=o.pendingLanes;if(m===0)return 0;var b=0,E=o.suspendedLanes,D=o.pingedLanes;o=o.warmLanes;var N=m&134217727;return N!==0?(m=N&~E,m!==0?b=As(m):(D&=N,D!==0?b=As(D):d||(d=N&~o,d!==0&&(b=As(d))))):(N=m&~E,N!==0?b=As(N):D!==0?b=As(D):d||(d=m&~o,d!==0&&(b=As(d)))),b===0?0:l!==0&&l!==b&&(l&E)===0&&(E=b&-b,d=l&-l,E>=d||E===32&&(d&4194048)!==0)?l:b}function Lo(o,l){return(o.pendingLanes&~(o.suspendedLanes&~o.pingedLanes)&l)===0}function $y(o,l){switch(o){case 1:case 2:case 4:case 8:case 64:return l+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return l+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Pf(){var o=Ls;return Ls<<=1,(Ls&62914560)===0&&(Ls=4194304),o}function zm(o){for(var l=[],d=0;31>d;d++)l.push(o);return l}function Pl(o,l){o.pendingLanes|=l,l!==268435456&&(o.suspendedLanes=0,o.pingedLanes=0,o.warmLanes=0)}function Su(o,l,d,m,b,E){var D=o.pendingLanes;o.pendingLanes=d,o.suspendedLanes=0,o.pingedLanes=0,o.warmLanes=0,o.expiredLanes&=d,o.entangledLanes&=d,o.errorRecoveryDisabledLanes&=d,o.shellSuspendCounter=0;var N=o.entanglements,Z=o.expirationTimes,le=o.hiddenUpdates;for(d=D&~d;0<d;){var we=31-Tr(d),De=1<<we;N[we]=0,Z[we]=-1;var ce=le[we];if(ce!==null)for(le[we]=null,we=0;we<ce.length;we++){var fe=ce[we];fe!==null&&(fe.lane&=-536870913)}d&=~De}m!==0&&Fm(o,m,0),E!==0&&b===0&&o.tag!==0&&(o.suspendedLanes|=E&~(D&~l))}function Fm(o,l,d){o.pendingLanes|=l,o.suspendedLanes&=~l;var m=31-Tr(l);o.entangledLanes|=l,o.entanglements[m]=o.entanglements[m]|1073741824|d&261930}function Cu(o,l){var d=o.entangledLanes|=l;for(o=o.entanglements;d;){var m=31-Tr(d),b=1<<m;b&l|o[m]&l&&(o[m]|=l),d&=~b}}function Vm(o,l){var d=l&-l;return d=(d&42)!==0?1:Bl(d),(d&(o.suspendedLanes|l))!==0?0:d}function Bl(o){switch(o){case 2:o=1;break;case 8:o=4;break;case 32:o=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:o=128;break;case 268435456:o=134217728;break;default:o=0}return o}function Ao(o){return o&=-o,2<o?8<o?(o&134217727)!==0?32:268435456:8:2}function Bf(){var o=at.p;return o!==0?o:(o=window.event,o===void 0?32:Mp(o.type))}function Ym(o,l){var d=at.p;try{return at.p=o,l()}finally{at.p=d}}var Pa=Math.random().toString(36).slice(2),_r="__reactFiber$"+Pa,jr="__reactProps$"+Pa,Ro="__reactContainer$"+Pa,jm="__reactEvents$"+Pa,Gy="__reactListeners$"+Pa,Zy="__reactHandles$"+Pa,Io="__reactResources$"+Pa,Ba="__reactMarker$"+Pa;function Wi(o){delete o[_r],delete o[jr],delete o[jm],delete o[Gy],delete o[Zy]}function Rs(o){var l=o[_r];if(l)return l;for(var d=o.parentNode;d;){if(l=d[Ro]||d[_r]){if(d=l.alternate,l.child!==null||d!==null&&d.child!==null)for(o=qv(o);o!==null;){if(d=o[_r])return d;o=qv(o)}return l}o=d,d=o.parentNode}return null}function Is(o){if(o=o[_r]||o[Ro]){var l=o.tag;if(l===5||l===6||l===13||l===31||l===26||l===27||l===3)return o}return null}function oa(o){var l=o.tag;if(l===5||l===26||l===27||l===6)return o.stateNode;throw Error(A(33))}function Ti(o){var l=o[Io];return l||(l=o[Io]={hoistableStyles:new Map,hoistableScripts:new Map}),l}function wr(o){o[Ba]=!0}var Ns=new Set,No={};function Mi(o,l){Ha(o,l),Ha(o+"Capture",l)}function Ha(o,l){for(No[o]=l,o=0;o<l.length;o++)Ns.add(l[o])}var Hf=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),zf={},Xy={};function Qy(o){return wu.call(Xy,o)?!0:wu.call(zf,o)?!1:Hf.test(o)?Xy[o]=!0:(zf[o]=!0,!1)}function Hl(o,l,d){if(Qy(l))if(d===null)o.removeAttribute(l);else{switch(typeof d){case"undefined":case"function":case"symbol":o.removeAttribute(l);return;case"boolean":var m=l.toLowerCase().slice(0,5);if(m!=="data-"&&m!=="aria-"){o.removeAttribute(l);return}}o.setAttribute(l,""+d)}}function Po(o,l,d){if(d===null)o.removeAttribute(l);else{switch(typeof d){case"undefined":case"function":case"symbol":case"boolean":o.removeAttribute(l);return}o.setAttribute(l,""+d)}}function Ui(o,l,d,m){if(m===null)o.removeAttribute(d);else{switch(typeof m){case"undefined":case"function":case"symbol":case"boolean":o.removeAttribute(d);return}o.setAttributeNS(l,d,""+m)}}function Cn(o){switch(typeof o){case"bigint":case"boolean":case"number":case"string":case"undefined":return o;case"object":return o;default:return""}}function Wm(o){var l=o.type;return(o=o.nodeName)&&o.toLowerCase()==="input"&&(l==="checkbox"||l==="radio")}function ar(o,l,d){var m=Object.getOwnPropertyDescriptor(o.constructor.prototype,l);if(!o.hasOwnProperty(l)&&typeof m<"u"&&typeof m.get=="function"&&typeof m.set=="function"){var b=m.get,E=m.set;return Object.defineProperty(o,l,{configurable:!0,get:function(){return b.call(this)},set:function(D){d=""+D,E.call(this,D)}}),Object.defineProperty(o,l,{enumerable:m.enumerable}),{getValue:function(){return d},setValue:function(D){d=""+D},stopTracking:function(){o._valueTracker=null,delete o[l]}}}}function Ff(o){if(!o._valueTracker){var l=Wm(o)?"checked":"value";o._valueTracker=ar(o,l,""+o[l])}}function Tu(o){if(!o)return!1;var l=o._valueTracker;if(!l)return!0;var d=l.getValue(),m="";return o&&(m=Wm(o)?o.checked?"true":"false":o.value),o=m,o!==d?(l.setValue(o),!0):!1}function Ps(o){if(o=o||(typeof document<"u"?document:void 0),typeof o>"u")return null;try{return o.activeElement||o.body}catch{return o.body}}var Ky=/[\n"\\]/g;function Ar(o){return o.replace(Ky,function(l){return"\\"+l.charCodeAt(0).toString(16)+" "})}function Vf(o,l,d,m,b,E,D,N){o.name="",D!=null&&typeof D!="function"&&typeof D!="symbol"&&typeof D!="boolean"?o.type=D:o.removeAttribute("type"),l!=null?D==="number"?(l===0&&o.value===""||o.value!=l)&&(o.value=""+Cn(l)):o.value!==""+Cn(l)&&(o.value=""+Cn(l)):D!=="submit"&&D!=="reset"||o.removeAttribute("value"),l!=null?Yf(o,D,Cn(l)):d!=null?Yf(o,D,Cn(d)):m!=null&&o.removeAttribute("value"),b==null&&E!=null&&(o.defaultChecked=!!E),b!=null&&(o.checked=b&&typeof b!="function"&&typeof b!="symbol"),N!=null&&typeof N!="function"&&typeof N!="symbol"&&typeof N!="boolean"?o.name=""+Cn(N):o.removeAttribute("name")}function Mu(o,l,d,m,b,E,D,N){if(E!=null&&typeof E!="function"&&typeof E!="symbol"&&typeof E!="boolean"&&(o.type=E),l!=null||d!=null){if(!(E!=="submit"&&E!=="reset"||l!=null)){Ff(o);return}d=d!=null?""+Cn(d):"",l=l!=null?""+Cn(l):d,N||l===o.value||(o.value=l),o.defaultValue=l}m=m??b,m=typeof m!="function"&&typeof m!="symbol"&&!!m,o.checked=N?o.checked:!!m,o.defaultChecked=!!m,D!=null&&typeof D!="function"&&typeof D!="symbol"&&typeof D!="boolean"&&(o.name=D),Ff(o)}function Yf(o,l,d){l==="number"&&Ps(o.ownerDocument)===o||o.defaultValue===""+d||(o.defaultValue=""+d)}function Bo(o,l,d,m){if(o=o.options,l){l={};for(var b=0;b<d.length;b++)l["$"+d[b]]=!0;for(d=0;d<o.length;d++)b=l.hasOwnProperty("$"+o[d].value),o[d].selected!==b&&(o[d].selected=b),b&&m&&(o[d].defaultSelected=!0)}else{for(d=""+Cn(d),l=null,b=0;b<o.length;b++){if(o[b].value===d){o[b].selected=!0,m&&(o[b].defaultSelected=!0);return}l!==null||o[b].disabled||(l=o[b])}l!==null&&(l.selected=!0)}}function la(o,l,d){if(l!=null&&(l=""+Cn(l),l!==o.value&&(o.value=l),d==null)){o.defaultValue!==l&&(o.defaultValue=l);return}o.defaultValue=d!=null?""+Cn(d):""}function Ho(o,l,d,m){if(l==null){if(m!=null){if(d!=null)throw Error(A(92));if(ut(m)){if(1<m.length)throw Error(A(93));m=m[0]}d=m}d==null&&(d=""),l=d}d=Cn(l),o.defaultValue=d,m=o.textContent,m===d&&m!==""&&m!==null&&(o.value=m),Ff(o)}function Bs(o,l){if(l){var d=o.firstChild;if(d&&d===o.lastChild&&d.nodeType===3){d.nodeValue=l;return}}o.textContent=l}var Jy=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Um(o,l,d){var m=l.indexOf("--")===0;d==null||typeof d=="boolean"||d===""?m?o.setProperty(l,""):l==="float"?o.cssFloat="":o[l]="":m?o.setProperty(l,d):typeof d!="number"||d===0||Jy.has(l)?l==="float"?o.cssFloat=d:o[l]=(""+d).trim():o[l]=d+"px"}function qm(o,l,d){if(l!=null&&typeof l!="object")throw Error(A(62));if(o=o.style,d!=null){for(var m in d)!d.hasOwnProperty(m)||l!=null&&l.hasOwnProperty(m)||(m.indexOf("--")===0?o.setProperty(m,""):m==="float"?o.cssFloat="":o[m]="");for(var b in l)m=l[b],l.hasOwnProperty(b)&&d[b]!==m&&Um(o,b,m)}else for(var E in l)l.hasOwnProperty(E)&&Um(o,E,l[E])}function Ct(o){if(o.indexOf("-")===-1)return!1;switch(o){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var eb=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRen
24dering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),tb=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Du(o){return tb.test(""+o)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":o}function ca(){}var jf=null;function Wf(o){return o=o.target||o.srcElement||window,o.correspondingUseElement&&(o=o.correspondingUseElement),o.nodeType===3?o.parentNode:o}var zl=null,Fl=null;function nb(o){var l=Is(o);if(l&&(o=l.stateNode)){var d=o[jr]||null;e:switch(o=l.stateNode,l.type){case"input":if(Vf(o,d.value,d.defaultValue,d.defaultValue,d.checked,d.defaultChecked,d.type,d.name),l=d.name,d.type==="radio"&&l!=null){for(d=o;d.parentNode;)d=d.parentNode;for(d=d.querySelectorAll('input[name="'+Ar(""+l)+'"][type="radio"]'),l=0;l<d.length;l++){var m=d[l];if(m!==o&&m.form===o.form){var b=m[jr]||null;if(!b)throw Error(A(90));Vf(m,b.value,b.defaultValue,b.defaultValue,b.checked,b.defaultChecked,b.type,b.name)}}for(l=0;l<d.length;l++)m=d[l],m.form===o.form&&Tu(m)}break e;case"textarea":la(o,d.value,d.defaultValue);break e;case"select":l=d.value,l!=null&&Bo(o,!!d.multiple,l,!1)}}}var $m=!1;function rb(o,l,d){if($m)return o(l,d);$m=!0;try{var m=o(l);return m}finally{if($m=!1,(zl!==null||Fl!==null)&&(ro(),zl&&(l=zl,o=Fl,Fl=zl=null,nb(l),o)))for(l=0;l<o.length;l++)nb(o[l])}}function Ou(o,l){var d=o.stateNode;if(d===null)return null;var m=d[jr]||null;if(m===null)return null;d=m[l];e:switch(l){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(m=!m.disabled)||(o=o.type,m=!(o==="button"||o==="input"||o==="select"||o==="textarea")),o=!m;break e;default:o=!1}if(o)return null;if(d&&typeof d!="function")throw Error(A(231,l,typeof d));return d}var ua=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Uf=!1;if(ua)try{var Vl={};Object.defineProperty(Vl,"passive",{get:function(){Uf=!0}}),window.addEventListener("test",Vl,Vl),window.removeEventListener("test",Vl,Vl)}catch{Uf=!1}var za=null,Gm=null,ku=null;function Zm(){if(ku)return ku;var o,l=Gm,d=l.length,m,b="value"in za?za.value:za.textContent,E=b.length;for(o=0;o<d&&l[o]===b[o];o++);var D=d-o;for(m=1;m<=D&&l[d-m]===b[E-m];m++);return ku=b.slice(o,1<m?1-m:void 0)}function qf(o){var l=o.keyCode;
vendor: 2,830 bytes, line 24
24return"charCode"in o?(o=o.charCode,o===0&&l===13&&(o=13)):o=l,o===10&&(o=13),32<=o||o===13?o:0}function $f(){return!0}function Xm(){return!1}function Jr(o){function l(d,m,b,E,D){this._reactName=d,this._targetInst=b,this.type=m,this.nativeEvent=E,this.target=D,this.currentTarget=null;for(var N in o)o.hasOwnProperty(N)&&(d=o[N],this[N]=d?d(E):E[N]);return this.isDefaultPrevented=(E.defaultPrevented!=null?E.defaultPrevented:E.returnValue===!1)?$f:Xm,this.isPropagationStopped=Xm,this}return Me(l.prototype,{preventDefault:function(){this.defaultPrevented=!0;var d=this.nativeEvent;d&&(d.preventDefault?d.preventDefault():typeof d.returnValue!="unknown"&&(d.returnValue=!1),this.isDefaultPrevented=$f)},stopPropagation:function(){var d=this.nativeEvent;d&&(d.stopPropagation?d.stopPropagation():typeof d.cancelBubble!="unknown"&&(d.cancelBubble=!0),this.isPropagationStopped=$f)},persist:function(){},isPersistent:$f}),l}var Hs={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(o){return o.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Lu=Jr(Hs),Au=Me({},Hs,{view:0,detail:0}),iE=Jr(Au),Gf,Zf,Yl,Ru=Me({},Au,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Km,button:0,buttons:0,relatedTarget:function(o){return o.relatedTarget===void 0?o.fromElement===o.srcElement?o.toElement:o.fromElement:o.relatedTarget},movementX:function(o){return"movementX"in o?o.movementX:(o!==Yl&&(Yl&&o.type==="mousemove"?(Gf=o.screenX-Yl.screenX,Zf=o.screenY-Yl.screenY):Zf=Gf=0,Yl=o),Gf)},movementY:function(o){return"movementY"in o?o.movementY:Zf}}),Qm=Jr(Ru),ib=Me({},Ru,{dataTransfer:0}),ab=Jr(ib),sb=Me({},Au,{relatedTarget:0}),Xf=Jr(sb),ob=Me({},Hs,{animationName:0,elapsedTime:0,pseudoElement:0}),aE=Jr(ob),lb=Me({},Hs,{clipboardData:function(o){return"clipboardData"in o?o.clipboardData:window.clipboardData}}),sE=Jr(lb),oE=Me({},Hs,{data:0}),cb=Jr(oE),ub={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},db={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},fb={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function hb(o){var l=this.nativeEvent;return l.getModifierState?l.getModifierState(o):(o=fb[o])?!!l[o]:!1}function Km(){return hb}var pb=Me({},Au,{key:function(o){if(o.key){var l=ub[o.key]||o.key;if(l!=="Unidentified")return l}
vendor: 108,078 bytes, line 24
24return o.type==="keypress"?(o=qf(o),o===13?"Enter":String.fromCharCode(o)):o.type==="keydown"||o.type==="keyup"?db[o.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Km,charCode:function(o){return o.type==="keypress"?qf(o):0},keyCode:function(o){return o.type==="keydown"||o.type==="keyup"?o.keyCode:0},which:function(o){return o.type==="keypress"?qf(o):o.type==="keydown"||o.type==="keyup"?o.keyCode:0}}),mb=Jr(pb),gb=Me({},Ru,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Jm=Jr(gb),vb=Me({},Au,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Km}),yb=Jr(vb),lE=Me({},Hs,{propertyName:0,elapsedTime:0,pseudoElement:0}),cE=Jr(lE),uE=Me({},Ru,{deltaX:function(o){return"deltaX"in o?o.deltaX:"wheelDeltaX"in o?-o.wheelDeltaX:0},deltaY:function(o){return"deltaY"in o?o.deltaY:"wheelDeltaY"in o?-o.wheelDeltaY:"wheelDelta"in o?-o.wheelDelta:0},deltaZ:0,deltaMode:0}),dE=Jr(uE),fE=Me({},Hs,{newState:0,oldState:0}),hE=Jr(fE),pE=[9,13,27,32],eg=ua&&"CompositionEvent"in window,jl=null;ua&&"documentMode"in document&&(jl=document.documentMode);var Fn=ua&&"TextEvent"in window&&!jl,bb=ua&&(!eg||jl&&8<jl&&11>=jl),_b=" ",wb=!1;function Eb(o,l){switch(o){case"keyup":return pE.indexOf(l.keyCode)!==-1;case"keydown":return l.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function xb(o){return o=o.detail,typeof o=="object"&&"data"in o?o.data:null}var Wl=!1;function mE(o,l){switch(o){case"compositionend":return xb(l);case"keypress":return l.which!==32?null:(wb=!0,_b);case"textInput":return o=l.data,o===_b&&wb?null:o;default:return null}}function gE(o,l){if(Wl)return o==="compositionend"||!eg&&Eb(o,l)?(o=Zm(),ku=Gm=za=null,Wl=!1,o):null;switch(o){case"paste":return null;case"keypress":if(!(l.ctrlKey||l.altKey||l.metaKey)||l.ctrlKey&&l.altKey){if(l.char&&1<l.char.length)return l.char;if(l.which)return String.fromCharCode(l.which)}return null;case"compositionend":return bb&&l.locale!=="ko"?null:l.data;default:return null}}var vE={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Sb(o){var l=o&&o.nodeName&&o.nodeName.toLowerCase();return l==="input"?!!vE[o.type]:l==="textarea"}function Cb(o,l,d,m){zl?Fl?Fl.push(m):Fl=[m]:zl=m,l=Id(l,"onChange"),0<l.length&&(d=new Lu("onChange","change",null,d,m),o.push({event:d,listeners:l}))}var Iu=null,Nu=null;function yE(o){dp(o,0)}function Qf(o){var l=oa(o);if(Tu(l))return o}function Tb(o,l){if(o==="change")return l}var Mb=!1;if(ua){var tg;if(ua){var ng="oninput"in document;if(!ng){var Db=document.createElement("div");Db.setAttribute("oninput","return;"),ng=typeof Db.oninput=="function"}tg=ng}else tg=!1;Mb=tg&&(!document.documentMode||9<document.documentMode)}function Ob(){Iu&&(Iu.detachEvent("onpropertychange",kb),Nu=Iu=null)}function kb(o){if(o.propertyName==="value"&&Qf(Nu)){var l=[];Cb(l,Nu,o,Wf(o)),rb(yE,l)}}function bE(o,l,d){o==="focusin"?(Ob(),Iu=l,Nu=d,Iu.attachEvent("onpropertychange",kb)):o==="focusout"&&Ob()}function rg(o){if(o==="selectionchange"||o==="keyup"||o==="keydown")return Qf(Nu)}function On(o,l){if(o==="click")return Qf(l)}function Lb(o,l){if(o==="input"||o==="change")return Qf(l)}function Kf(o,l){return o===l&&(o!==0||1/o===1/l)||o!==o&&l!==l}var Xn=typeof Object.is=="function"?Object.is:Kf;function Ul(o,l){if(Xn(o,l))return!0;if(typeof o!="object"||o===null||typeof l!="object"||l===null)return!1;var d=Object.keys(o),m=Object.keys(l);if(d.length!==m.length)return!1;for(m=0;m<d.length;m++){var b=d[m];if(!wu.call(l,b)||!Xn(o[b],l[b]))return!1}return!0}function ig(o){for(;o&&o.firstChild;)o=o.firstChild;return o}function zo(o,l){var d=ig(o);o=0;for(var m;d;){if(d.nodeType===3){if(m=o+d.textContent.length,o<=l&&m>=l)return{node:d,offset:l-o};o=m}e:{for(;d;){if(d.nextSibling){d=d.nextSibling;break e}d=d.parentNode}d=void 0}d=ig(d)}}function ag(o,l){return o&&l?o===l?!0:o&&o.nodeType===3?!1:l&&l.nodeType===3?ag(o,l.parentNode):"contains"in o?o.contains(l):o.compareDocumentPosition?!!(o.compareDocumentPosition(l)&16):!1:!1}function In(o){o=o!=null&&o.ownerDocument!=null&&o.ownerDocument.defaultView!=null?o.ownerDocument.defaultView:window;for(var l=Ps(o.document);l instanceof o.HTMLIFrameElement;){try{var d=typeof l.contentWindow.location.href=="string"}catch{d=!1}if(d)o=l.contentWindow;else break;l=Ps(o.document)}return l}function Pu(o){var l=o&&o.nodeName&&o.nodeName.toLowerCase();return l&&(l==="input"&&(o.type==="text"||o.type==="search"||o.type==="tel"||o.type==="url"||o.type==="password")||l==="textarea"||o.contentEditable==="true")}var _E=ua&&"documentMode"in document&&11>=document.documentMode,Fo=null,ql=null,$l=null,Bu=!1;function Hu(o,l,d){var m=d.window===d?d.document:d.nodeType===9?d:d.ownerDocument;Bu||Fo==null||Fo!==Ps(m)||(m=Fo,"selectionStart"in m&&Pu(m)?m={start:m.selectionStart,end:m.selectionEnd}:(m=(m.ownerDocument&&m.ownerDocument.defaultView||window).getSelection(),m={anchorNode:m.anchorNode,anchorOffset:m.anchorOffset,focusNode:m.focusNode,focusOffset:m.focusOffset}),$l&&Ul($l,m)||($l=m,m=Id(ql,"onSelect"),0<m.length&&(l=new Lu("onSelect","select",null,l,d),o.push({event:l,listeners:m}),l.target=Fo)))}function zs(o,l){var d={};return d[o.toLowerCase()]=l.toLowerCase(),d["Webkit"+o]="webkit"+l,d["Moz"+o]="moz"+l,d}var Vo={animationend:zs("Animation","AnimationEnd"),animationiteration:zs("Animation","AnimationIteration"),animationstart:zs("Animation","AnimationStart"),transitionrun:zs("Transition","TransitionRun"),transitionstart:zs("Transition","TransitionStart"),transitioncancel:zs("Transition","TransitionCancel"),transitionend:zs("Transition","TransitionEnd")},Gl={},sg={};ua&&(sg=document.createElement("div").style,"AnimationEvent"in window||(delete Vo.animationend.animation,delete Vo.animationiteration.animation,delete Vo.animationstart.animation),"TransitionEvent"in window||delete Vo.transitionend.transition);function Fs(o){if(Gl[o])return Gl[o];if(!Vo[o])return o;var l=Vo[o],d;for(d in l)if(l.hasOwnProperty(d)&&d in sg)return Gl[o]=l[d];return o}var og=Fs("animationend"),lg=Fs("animationiteration"),zu=Fs("animationstart"),Ab=Fs("transitionrun"),Rb=Fs("transitionstart"),Ib=Fs("transitioncancel"),cg=Fs("transitionend"),ug=new Map,Jf="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Jf.push("scrollEnd");function Di(o,l){ug.set(o,l),Mi(l,[o])}var Fu=typeof reportError=="function"?reportError:function(o){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var l=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof o=="object"&&o!==null&&typeof o.message=="string"?String(o.message):String(o),error:o});if(!window.dispatchEvent(l))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",o);return}console.error(o)},ui=[],Yo=0,eh=0;function Vu(){for(var o=Yo,l=eh=Yo=0;l<o;){var d=ui[l];ui[l++]=null;var m=ui[l];ui[l++]=null;var b=ui[l];ui[l++]=null;var E=ui[l];if(ui[l++]=null,m!==null&&b!==null){var D=m.pending;D===null?b.next=b:(b.next=D.next,D.next=b),m.pending=b}E!==0&&dg(d,b,E)}}function Yu(o,l,d,m){ui[Yo++]=o,ui[Yo++]=l,ui[Yo++]=d,ui[Yo++]=m,eh|=m,o.lanes|=m,o=o.alternate,o!==null&&(o.lanes|=m)}function th(o,l,d,m){return Yu(o,l,d,m),ju(o)}function Vs(o,l){return Yu(o,null,null,l),ju(o)}function dg(o,l,d){o.lanes|=d;var m=o.alternate;m!==null&&(m.lanes|=d);for(var b=!1,E=o.return;E!==null;)E.childLanes|=d,m=E.alternate,m!==null&&(m.childLanes|=d),E.tag===22&&(o=E.stateNode,o===null||o._visibility&1||(b=!0)),o=E,E=E.return;return o.tag===3?(E=o.stateNode,b&&l!==null&&(b=31-Tr(d),o=E.hiddenUpdates,m=o[b],m===null?o[b]=[l]:m.push(l),l.lane=d|536870912),E):null}function ju(o){if(50<Dd)throw Dd=0,ip=null,Error(A(185));for(var l=o.return;l!==null;)o=l,l=o.return;return o.tag===3?o.stateNode:null}var jo={};function Nb(o,l,d,m){this.tag=o,this.key=d,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=l,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=m,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ei(o,l,d,m){return new Nb(o,l,d,m)}function nh(o){return o=o.prototype,!(!o||!o.isReactComponent)}function da(o,l){var d=o.alternate;return d===null?(d=ei(o.tag,l,o.key,o.mode),d.elementType=o.elementType,d.type=o.type,d.stateNode=o.stateNode,d.alternate=o,o.alternate=d):(d.pendingProps=l,d.type=o.type,d.flags=0,d.subtreeFlags=0,d.deletions=null),d.flags=o.flags&65011712,d.childLanes=o.childLanes,d.lanes=o.lanes,d.child=o.child,d.memoizedProps=o.memoizedProps,d.memoizedState=o.memoizedState,d.updateQueue=o.updateQueue,l=o.dependencies,d.dependencies=l===null?null:{lanes:l.lanes,firstContext:l.firstContext},d.sibling=o.sibling,d.index=o.index,d.ref=o.ref,d.refCleanup=o.refCleanup,d}function fg(o,l){o.flags&=65011714;var d=o.alternate;return d===null?(o.childLanes=0,o.lanes=l,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=d.childLanes,o.lanes=d.lanes,o.child=d.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=d.memoizedProps,o.memoizedState=d.memoizedState,o.updateQueue=d.updateQueue,o.type=d.type,l=d.dependencies,o.dependencies=l===null?null:{lanes:l.lanes,firstContext:l.firstContext}),o}function Wu(o,l,d,m,b,E){var D=0;if(m=o,typeof o=="function")nh(o)&&(D=1);else if(typeof o=="string")D=Bd(o,d,Lt.current)?26:o==="html"||o==="head"||o==="body"?27:5;else e:switch(o){case wt:return o=ei(31,d,l,b),o.elementType=wt,o.lanes=E,o;case ve:return Ys(d.children,b,E,l);case Ye:D=8,b|=24;break;case R:return o=ei(12,d,l,b|2),o.elementType=R,o.lanes=E,o;case ke:return o=ei(13,d,l,b),o.elementType=ke,o.lanes=E,o;case bt:return o=ei(19,d,l,b),o.elementType=bt,o.lanes=E,o;default:if(typeof o=="object"&&o!==null)switch(o.$$typeof){case ie:D=10;break e;case z:D=9;break e;case Ee:D=11;break e;case St:D=14;break e;case mt:D=16,m=null;break e}D=29,d=Error(A(130,o===null?"null":typeof o,"")),m=null}return l=ei(D,d,l,b),l.elementType=o,l.type=m,l.lanes=E,l}function Ys(o,l,d,m){return o=ei(7,o,m,l),o.lanes=d,o}function rh(o,l,d){return o=ei(6,o,null,l),o.lanes=d,o}function hg(o){var l=ei(18,null,null,0);return l.stateNode=o,l}function ih(o,l,d){return l=ei(4,o.children!==null?o.children:[],o.key,l),l.lanes=d,l.stateNode={containerInfo:o.containerInfo,pendingChildren:null,implementation:o.implementation},l}var pg=new WeakMap;function di(o,l){if(typeof o=="object"&&o!==null){var d=pg.get(o);return d!==void 0?d:(l={value:o,source:l,stack:Im(l)},pg.set(o,l),l)}return{value:o,source:l,stack:Im(l)}}var Wo=[],Uo=0,Uu=null,Zl=0,fi=[],hi=0,Fa=null,qi=1,$i="";function fa(o,l){Wo[Uo++]=Zl,Wo[Uo++]=Uu,Uu=o,Zl=l}function mg(o,l,d){fi[hi++]=qi,fi[hi++]=$i,fi[hi++]=Fa,Fa=o;var m=qi;o=$i;var b=32-Tr(m)-1;m&=~(1<<b),d+=1;var E=32-Tr(l)+b;if(30<E){var D=b-b%5;E=(m&(1<<D)-1).toString(32),m>>=D,b-=D,qi=1<<32-Tr(l)+b|d<<b|m,$i=E+o}else qi=1<<E|d<<b|m,$i=o}function ah(o){o.return!==null&&(fa(o,1),mg(o,1,0))}function sh(o){for(;o===Uu;)Uu=Wo[--Uo],Wo[Uo]=null,Zl=Wo[--Uo],Wo[Uo]=null;for(;o===Fa;)Fa=fi[--hi],fi[hi]=null,$i=fi[--hi],fi[hi]=null,qi=fi[--hi],fi[hi]=null}function gg(o,l){fi[hi++]=qi,fi[hi++]=$i,fi[hi++]=Fa,qi=l.id,$i=l.overflow,Fa=o}var Er=null,Tn=null,jt=!1,Va=null,pi=!1,Xl=Error(A(519));function Ya(o){var l=Error(A(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Ql(di(l,o)),Xl}function vg(o){var l=o.stateNode,d=o.type,m=o.memoizedProps;switch(l[_r]=o,l[jr]=m,d){case"dialog":Bt("cancel",l),Bt("close",l);break;case"iframe":case"object":case"embed":Bt("load",l);break;case"video":case"audio":for(d=0;d<Lc.length;d++)Bt(Lc[d],l);break;case"source":Bt("error",l);break;case"img":case"image":case"link":Bt("error",l),Bt("load",l);break;case"details":Bt("toggle",l);break;case"input":Bt("invalid",l),Mu(l,m.value,m.defaultValue,m.checked,m.defaultChecked,m.type,m.name,!0);break;case"select":Bt("invalid",l);break;case"textarea":Bt("invalid",l),Ho(l,m.value,m.defaultValue,m.children)}d=m.children,typeof d!="string"&&typeof d!="number"&&typeof d!="bigint"||l.textContent===""+d||m.suppressHydrationWarning===!0||Hv(l.textContent,d)?(m.popover!=null&&(Bt("beforetoggle",l),Bt("toggle",l)),m.onScroll!=null&&Bt("scroll",l),m.onScrollEnd!=null&&Bt("scrollend",l),m.onClick!=null&&(l.onclick=ca),l=!0):l=!1,l||Ya(o,!0)}function oh(o){for(Er=o.return;Er;)switch(Er.tag){case 5:case 31:case 13:pi=!1;return;case 27:case 3:pi=!0;return;default:Er=Er.return}}function qo(o){if(o!==Er)return!1;if(!jt)return oh(o),jt=!0,!1;var l=o.tag,d;if((d=l!==3&&l!==27)&&((d=l===5)&&(d=o.type,d=!(d!=="form"&&d!=="button")||gp(o.type,o.memoizedProps)),d=!d),d&&Tn&&Ya(o),oh(o),l===13){if(o=o.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(A(317));Tn=g1(o)}else if(l===31){if(o=o.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(A(317));Tn=g1(o)}else l===27?(l=Tn,co(o.type)?(o=Ic,Ic=null,Tn=o):Tn=l):Tn=Er?Ii(o.stateNode.nextSibling):null;return!0}function js(){Tn=Er=null,jt=!1}function lh(){var o=Va;return o!==null&&($r===null?$r=o:$r.push.apply($r,o),Va=null),o}function Ql(o){Va===null?Va=[o]:Va.push(o)}var ch=Je(null),Ws=null,ha=null;function ja(o,l,d){lt(ch,l._currentValue),l._currentValue=d}function pa(o){o._currentValue=ch.current,Xe(ch)}function uh(o,l,d){for(;o!==null;){var m=o.alternate;if((o.childLanes&l)!==l?(o.childLanes|=l,m!==null&&(m.childLanes|=l)):m!==null&&(m.childLanes&l)!==l&&(m.childLanes|=l),o===d)break;o=o.return}}function dh(o,l,d,m){var b=o.child;for(b!==null&&(b.return=o);b!==null;){var E=b.dependencies;if(E!==null){var D=b.child;E=E.firstContext;e:for(;E!==null;){var N=E;E=b;for(var Z=0;Z<l.length;Z++)if(N.context===l[Z]){E.lanes|=d,N=E.alternate,N!==null&&(N.lanes|=d),uh(E.return,d,o),m||(D=null);break e}E=N.next}}else if(b.tag===18){if(D=b.return,D===null)throw Error(A(341));D.lanes|=d,E=D.alternate,E!==null&&(E.lanes|=d),uh(D,d,o),D=null}else D=b.child;if(D!==null)D.return=b;else for(D=b;D!==null;){if(D===o){D=null;break}if(b=D.sibling,b!==null){b.return=D.return,D=b;break}D=D.return}b=D}}function $o(o,l,d,m){o=null;for(var b=l,E=!1;b!==null;){if(!E){if((b.flags&524288)!==0)E=!0;else if((b.flags&262144)!==0)break}if(b.tag===10){var D=b.alternate;if(D===null)throw Error(A(387));if(D=D.memoizedProps,D!==null){var N=b.type;Xn(b.pendingProps.value,D.value)||(o!==null?o.push(N):o=[N])}}else if(b===ye.current){if(D=b.alternate,D===null)throw Error(A(387));D.memoizedState.memoizedState!==b.memoizedState.memoizedState&&(o!==null?o.push(Hc):o=[Hc])}b=b.return}o!==null&&dh(l,o,d,m),l.flags|=262144}function qu(o){for(o=o.firstContext;o!==null;){if(!Xn(o.context._currentValue,o.memoizedValue))return!0;o=o.next}return!1}function Us(o){Ws=o,ha=null,o=o.dependencies,o!==null&&(o.firstContext=null)}function xr(o){return fh(Ws,o)}function $u(o,l){return Ws===null&&Us(o),fh(o,l)}function fh(o,l){var d=l._currentValue;if(l={context:l,memoizedValue:d,next:null},ha===null){if(o===null)throw Error(A(308));ha=l,o.dependencies={lanes:0,firstContext:l},o.flags|=524288}else ha=ha.next=l;return d}var yg=typeof AbortController<"u"?AbortController:function(){var o=[],l=this.signal={aborted:!1,addEventListener:function(d,m){o.push(m)}};this.abort=function(){l.aborted=!0,o.forEach(function(d){return d()})}},Pb=re.unstable_scheduleCallback,hh=re.unstable_NormalPriority,Vn={$$typeof:ie,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Kl(){return{controller:new yg,data:new Map,refCount:0}}function Gi(o){o.refCount--,o.refCount===0&&Pb(hh,function(){o.controller.abort()})}var mi=null,Jl=0,ma=0,qs=null;function bg(o,l){if(mi===null){var d=mi=[];Jl=0,ma=lp(),qs={status:"pending",value:void 0,then:function(m){d.push(m)}}}return Jl++,l.then(ph,ph),l}function ph(){if(--Jl===0&&mi!==null){qs!==null&&(qs.status="fulfilled");var o=mi;mi=null,ma=0,qs=null;for(var l=0;l<o.length;l++)(0,o[l])()}}function _g(o,l){var d=[],m={status:"pending",value:null,reason:null,then:function(b){d.push(b)}};return o.then(function(){m.status="fulfilled",m.value=l;for(var b=0;b<d.length;b++)(0,d[b])(l)},function(b){for(m.status="rejected",m.reason=b,b=0;b<d.length;b++)(0,d[b])(void 0)}),m}var mh=Ue.S;Ue.S=function(o,l){Xb=Yr(),typeof l=="object"&&l!==null&&typeof l.then=="function"&&bg(o,l),mh!==null&&mh(o,l)};var Wa=Je(null);function wg(){var o=Wa.current;return o!==null?o:vn.pooledCache}function Gu(o,l){l===null?lt(Wa,Wa.current):lt(Wa,l.pool)}function Eg(){var o=wg();return o===null?null:{parent:Vn._currentValue,pool:o}}var Go=Error(A(460)),gh=Error(A(474)),Zu=Error(A(542)),vh={then:function(){}};function xg(o){return o=o.status,o==="fulfilled"||o==="rejected"}function Bb(o,l,d){switch(d=o[d],d===void 0?o.push(l):d!==l&&(l.then(ca,ca),l=d),l.status){case"fulfilled":return l.value;case"rejected":throw o=l.reason,Cg(o),o;default:if(typeof l.status=="string")l.then(ca,ca);else{if(o=vn,o!==null&&100<o.shellSuspendCounter)throw Error(A(482));o=l,o.status="pending",o.then(function(m){if(l.status==="pending"){var b=l;b.status="fulfilled",b.value=m}},function(m){if(l.status==="pending"){var b=l;b.status="rejected",b.reason=m}})}switch(l.status){case"fulfilled":return l.value;case"rejected":throw o=l.reason,Cg(o),o}throw Zo=l,Go}}function $s(o){try{var l=o._init;return l(o._payload)}catch(d){throw d!==null&&typeof d=="object"&&typeof d.then=="function"?(Zo=d,Go):d}}var Zo=null;function Sg(){if(Zo===null)throw Error(A(459));var o=Zo;return Zo=null,o}function Cg(o){if(o===Go||o===Zu)throw Error(A(483))}var Xo=null,ec=0;function Xu(o){var l=ec;return ec+=1,Xo===null&&(Xo=[]),Bb(Xo,o,l)}function Ua(o,l){l=l.props.ref,o.ref=l!==void 0?l:null}function qa(o,l){throw l.$$typeof===Te?Error(A(525)):(o=Object.prototype.toString.call(l),Error(A(31,o==="[object Object]"?"object with keys {"+Object.keys(l).join(", ")+"}":o)))}function Qo(o){function l(ne,X){if(o){var oe=ne.deletions;oe===null?(ne.deletions=[X],ne.flags|=16):oe.push(X)}}function d(ne,X){if(!o)return null;for(;X!==null;)l(ne,X),X=X.sibling;return null}function m(ne){for(var X=new Map;ne!==null;)ne.key!==null?X.set(ne.key,ne):X.set(ne.index,ne),ne=ne.sibling;return X}function b(ne,X){return ne=da(ne,X),ne.index=0,ne.sibling=null,ne}function E(ne,X,oe){return ne.index=oe,o?(oe=ne.alternate,oe!==null?(oe=oe.index,oe<X?(ne.flags|=67108866,X):oe):(ne.flags|=67108866,X)):(ne.flags|=1048576,X)}function D(ne){return o&&ne.alternate===null&&(ne.flags|=67108866),ne}function N(ne,X,oe,Se){return X===null||X.tag!==6?(X=rh(oe,ne.mode,Se),X.return=ne,X):(X=b(X,oe),X.return=ne,X)}function Z(ne,X,oe,Se){var gt=oe.type;return gt===ve?we(ne,X,oe.props.children,Se,oe.key):X!==null&&(X.elementType===gt||typeof gt=="object"&&gt!==null&&gt.$$typeof===mt&&$s(gt)===X.type)?(X=b(X,oe.props),Ua(X,oe),X.return=ne,X):(X=Wu(oe.type,oe.key,oe.props,null,ne.mode,Se),Ua(X,oe),X.return=ne,X)}function le(ne,X,oe,Se){return X===null||X.tag!==4||X.stateNode.containerInfo!==oe.containerInfo||X.stateNode.implementation!==oe.implementation?(X=ih(oe,ne.mode,Se),X.return=ne,X):(X=b(X,oe.children||[]),X.return=ne,X)}function we(ne,X,oe,Se,gt){return X===null||X.tag!==7?(X=Ys(oe,ne.mode,Se,gt),X.return=ne,X):(X=b(X,oe),X.return=ne,X)}function De(ne,X,oe){if(typeof X=="string"&&X!==""||typeof X=="number"||typeof X=="bigint")return X=rh(""+X,ne.mode,oe),X.return=ne,X;if(typeof X=="object"&&X!==null){switch(X.$$typeof){case me:return oe=Wu(X.type,X.key,X.props,null,ne.mode,oe),Ua(oe,X),oe.return=ne,oe;case Pe:return X=ih(X,ne.mode,oe),X.return=ne,X;case mt:return X=$s(X),De(ne,X,oe)}if(ut(X)||kt(X))return X=Ys(X,ne.mode,oe,null),X.return=ne,X;if(typeof X.then=="function")return De(ne,Xu(X),oe);if(X.$$typeof===ie)return De(ne,$u(ne,X),oe);qa(ne,X)}return null}function ce(ne,X,oe,Se){var gt=X!==null?X.key:null;if(typeof oe=="string"&&oe!==""||typeof oe=="number"||typeof oe=="bigint")return gt!==null?null:N(ne,X,""+oe,Se);if(typeof oe=="object"&&oe!==null){switch(oe.$$typeof){case me:return oe.key===gt?Z(ne,X,oe,Se):null;case Pe:return oe.key===gt?le(ne,X,oe,Se):null;case mt:return oe=$s(oe),ce(ne,X,oe,Se)}if(ut(oe)||kt(oe))return gt!==null?null:we(ne,X,oe,Se,null);if(typeof oe.then=="function")return ce(ne,X,Xu(oe),Se);if(oe.$$typeof===ie)return ce(ne,X,$u(ne,oe),Se);qa(ne,oe)}return null}function fe(ne,X,oe,Se,gt){if(typeof Se=="string"&&Se!==""||typeof Se=="number"||typeof Se=="bigint")return ne=ne.get(oe)||null,N(X,ne,""+Se,gt);if(typeof Se=="object"&&Se!==null){switch(Se.$$typeof){case me:return ne=ne.get(Se.key===null?oe:Se.key)||null,Z(X,ne,Se,gt);case Pe:return ne=ne.get(Se.key===null?oe:Se.key)||null,le(X,ne,Se,gt);case mt:return Se=$s(Se),fe(ne,X,oe,Se,gt)}if(ut(Se)||kt(Se))return ne=ne.get(oe)||null,we(X,ne,Se,gt,null);if(typeof Se.then=="function")return fe(ne,X,oe,Xu(Se),gt);if(Se.$$typeof===ie)return fe(ne,X,oe,$u(X,Se),gt);qa(X,Se)}return null}function et(ne,X,oe,Se){for(var gt=null,Kt=null,it=X,Dt=X=0,It=null;it!==null&&Dt<oe.length;Dt++){it.index>Dt?(It=it,it=null):It=it.sibling;var Jt=ce(ne,it,oe[Dt],Se);if(Jt===null){it===null&&(it=It);break}o&&it&&Jt.alternate===null&&l(ne,it),X=E(Jt,X,Dt),Kt===null?gt=Jt:Kt.sibling=Jt,Kt=Jt,it=It}if(Dt===oe.length)return d(ne,it),jt&&fa(ne,Dt),gt;if(it===null){for(;Dt<oe.length;Dt++)it=De(ne,oe[Dt],Se),it!==null&&(X=E(it,X,Dt),Kt===null?gt=it:Kt.sibling=it,Kt=it);return jt&&fa(ne,Dt),gt}for(it=m(it);Dt<oe.length;Dt++)It=fe(it,ne,Dt,oe[Dt],Se),It!==null&&(o&&It.alternate!==null&&it.delete(It.key===null?Dt:It.key),X=E(It,X,Dt),Kt===null?gt=It:Kt.sibling=It,Kt=It);return o&&it.forEach(function(Or){return l(ne,Or)}),jt&&fa(ne,Dt),gt}function yt(ne,X,oe,Se){if(oe==null)throw Error(A(151));for(var gt=null,Kt=null,it=X,Dt=X=0,It=null,Jt=oe.next();it!==null&&!Jt.done;Dt++,Jt=oe.next()){it.index>Dt?(It=it,it=null):It=it.sibling;var Or=ce(ne,it,Jt.value,Se);if(Or===null){it===null&&(it=It);break}o&&it&&Or.alternate===null&&l(ne,it),X=E(Or,X,Dt),Kt===null?gt=Or:Kt.sibling=Or,Kt=Or,it=It}if(Jt.done)return d(ne,it),jt&&fa(ne,Dt),gt;if(it===null){for(;!Jt.done;Dt++,Jt=oe.next())Jt=De(ne,Jt.value,Se),Jt!==null&&(X=E(Jt,X,Dt),Kt===null?gt=Jt:Kt.sibling=Jt,Kt=Jt);return jt&&fa(ne,Dt),gt}for(it=m(it);!Jt.done;Dt++,Jt=oe.next())Jt=fe(it,ne,Dt,Jt.value,Se),Jt!==null&&(o&&Jt.alternate!==null&&it.delete(Jt.key===null?Dt:Jt.key),X=E(Jt,X,Dt),Kt===null?gt=Jt:Kt.sibling=Jt,Kt=Jt);return o&&it.forEach(function(R1){return l(ne,R1)}),jt&&fa(ne,Dt),gt}function mn(ne,X,oe,Se){if(typeof oe=="object"&&oe!==null&&oe.type===ve&&oe.key===null&&(oe=oe.props.children),typeof oe=="object"&&oe!==null){switch(oe.$$typeof){case me:e:{for(var gt=oe.key;X!==null;){if(X.key===gt){if(gt=oe.type,gt===ve){if(X.tag===7){d(ne,X.sibling),Se=b(X,oe.props.children),Se.return=ne,ne=Se;break e}}else if(X.elementType===gt||typeof gt=="object"&&gt!==null&&gt.$$typeof===mt&&$s(gt)===X.type){d(ne,X.sibling),Se=b(X,oe.props),Ua(Se,oe),Se.return=ne,ne=Se;break e}d(ne,X);break}else l(ne,X);X=X.sibling}oe.type===ve?(Se=Ys(oe.props.children,ne.mode,Se,oe.key),Se.return=ne,ne=Se):(Se=Wu(oe.type,oe.key,oe.props,null,ne.mode,Se),Ua(Se,oe),Se.return=ne,ne=Se)}return D(ne);case Pe:e:{for(gt=oe.key;X!==null;){if(X.key===gt)if(X.tag===4&&X.stateNode.containerInfo===oe.containerInfo&&X.stateNode.implementation===oe.implementation){d(ne,X.sibling),Se=b(X,oe.children||[]),Se.return=ne,ne=Se;break e}else{d(ne,X);break}else l(ne,X);X=X.sibling}Se=ih(oe,ne.mode,Se),Se.return=ne,ne=Se}return D(ne);case mt:return oe=$s(oe),mn(ne,X,oe,Se)}if(ut(oe))return et(ne,X,oe,Se);if(kt(oe)){if(gt=kt(oe),typeof gt!="function")throw Error(A(150));return oe=gt.call(oe),yt(ne,X,oe,Se)}if(typeof oe.then=="function")return mn(ne,X,Xu(oe),Se);if(oe.$$typeof===ie)return mn(ne,X,$u(ne,oe),Se);qa(ne,oe)}return typeof oe=="string"&&oe!==""||typeof oe=="number"||typeof oe=="bigint"?(oe=""+oe,X!==null&&X.tag===6?(d(ne,X.sibling),Se=b(X,oe),Se.return=ne,ne=Se):(d(ne,X),Se=rh(oe,ne.mode,Se),Se.return=ne,ne=Se),D(ne)):d(ne,X)}return function(ne,X,oe,Se){try{ec=0;var gt=mn(ne,X,oe,Se);return Xo=null,gt}catch(it){if(it===Go||it===Zu)throw it;var Kt=ei(29,it,null,ne.mode);return Kt.lanes=Se,Kt.return=ne,Kt}}}var Ko=Qo(!0),Tg=Qo(!1),Gs=!1;function yh(o){o.updateQueue={baseState:o.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function bh(o,l){o=o.updateQueue,l.updateQueue===o&&(l.updateQueue={baseState:o.baseState,firstBaseUpdate:o.firstBaseUpdate,lastBaseUpdate:o.lastBaseUpdate,shared:o.shared,callbacks:null})}function Zs(o){return{lane:o,tag:0,payload:null,callback:null,next:null}}function $a(o,l,d){var m=o.updateQueue;if(m===null)return null;if(m=m.shared,(en&2)!==0){var b=m.pending;return b===null?l.next=l:(l.next=b.next,b.next=l),m.pending=l,l=ju(o),dg(o,null,d),l}return Yu(o,m,l,d),ju(o)}function Rr(o,l,d){if(l=l.updateQueue,l!==null&&(l=l.shared,(d&4194048)!==0)){var m=l.lanes;m&=o.pendingLanes,d|=m,l.lanes=d,Cu(o,d)}}function Ga(o,l){var d=o.updateQueue,m=o.alternate;if(m!==null&&(m=m.updateQueue,d===m)){var b=null,E=null;if(d=d.firstBaseUpdate,d!==null){do{var D={lane:d.lane,tag:d.tag,payload:d.payload,callback:null,next:null};E===null?b=E=D:E=E.next=D,d=d.next}while(d!==null);E===null?b=E=l:E=E.next=l}else b=E=l;d={baseState:m.baseState,firstBaseUpdate:b,lastBaseUpdate:E,shared:m.shared,callbacks:m.callbacks},o.updateQueue=d;return}o=d.lastBaseUpdate,o===null?d.firstBaseUpdate=l:o.next=l,d.lastBaseUpdate=l}var Wr=!1;function Xs(){if(Wr){var o=qs;if(o!==null)throw o}}function Oi(o,l,d,m){Wr=!1;var b=o.updateQueue;Gs=!1;var E=b.firstBaseUpdate,D=b.lastBaseUpdate,N=b.shared.pending;if(N!==null){b.shared.pending=null;var Z=N,le=Z.next;Z.next=null,D===null?E=le:D.next=le,D=Z;var we=o.alternate;we!==null&&(we=we.updateQueue,N=we.lastBaseUpdate,N!==D&&(N===null?we.firstBaseUpdate=le:N.next=le,we.lastBaseUpdate=Z))}if(E!==null){var De=b.baseState;D=0,we=le=Z=null,N=E;do{var ce=N.lane&-536870913,fe=ce!==N.lane;if(fe?(Ht&ce)===ce:(m&ce)===ce){ce!==0&&ce===ma&&(Wr=!0),we!==null&&(we=we.next={lane:0,tag:N.tag,payload:N.payload,callback:null,next:null});e:{var et=o,yt=N;ce=l;var mn=d;switch(yt.tag){case 1:if(et=yt.payload,typeof et=="function"){De=et.call(mn,De,ce);break e}De=et;break e;case 3:et.flags=et.flags&-65537|128;case 0:if(et=yt.payload,ce=typeof et=="function"?et.call(mn,De,ce):et,ce==null)break e;De=Me({},De,ce);break e;case 2:Gs=!0}}ce=N.callback,ce!==null&&(o.flags|=64,fe&&(o.flags|=8192),fe=b.callbacks,fe===null?b.callbacks=[ce]:fe.push(ce))}else fe={lane:ce,tag:N.tag,payload:N.payload,callback:N.callback,next:null},we===null?(le=we=fe,Z=De):we=we.next=fe,D|=ce;if(N=N.next,N===null){if(N=b.shared.pending,N===null)break;fe=N,N=fe.next,fe.next=null,b.lastBaseUpdate=fe,b.shared.pending=null}}while(!0);we===null&&(Z=De),b.baseState=Z,b.firstBaseUpdate=le,b.lastBaseUpdate=we,E===null&&(b.shared.lanes=0),is|=D,o.lanes=D,o.memoizedState=De}}function tc(o,l){if(typeof o!="function")throw Error(A(191,o));o.call(l)}function Qs(o,l){var d=o.callbacks;if(d!==null)for(o.callbacks=null,o=0;o<d.length;o++)tc(d[o],l)}var ki=Je(null),Jo=Je(0);function Mg(o,l){o=ii,lt(Jo,o),lt(ki,l),ii=o|l.baseLanes}function _h(){lt(Jo,ii),lt(ki,ki.current)}function gi(){ii=Jo.current,Xe(ki),Xe(Jo)}var Qn=Je(null),Ur=null;function Mr(o){var l=o.alternate;lt(kn,kn.current&1),lt(Qn,o),Ur===null&&(l===null||ki.current!==null||l.memoizedState!==null)&&(Ur=o)}function nc(o){lt(kn,kn.current),lt(Qn,o),Ur===null&&(Ur=o)}function Dg(o){o.tag===22?(lt(kn,kn.current),lt(Qn,o),Ur===null&&(Ur=o)):Za(o)}function Za(){lt(kn,kn.current),lt(Qn,Qn.current)}function Ir(o){Xe(Qn),Ur===o&&(Ur=null),Xe(kn)}var kn=Je(0);function rc(o){for(var l=o;l!==null;){if(l.tag===13){var d=l.memoizedState;if(d!==null&&(d=d.dehydrated,d===null||vp(d)||Uv(d)))return l}else if(l.tag===19&&(l.memoizedProps.revealOrder==="forwards"||l.memoizedProps.revealOrder==="backwards"||l.memoizedProps.revealOrder==="unstable_legacy-backwards"||l.memoizedProps.revealOrder==="together")){if((l.flags&128)!==0)return l}else if(l.child!==null){l.child.return=l,l=l.child;continue}if(l===o)break;for(;l.sibling===null;){if(l.return===null||l.return===o)return null;l=l.return}l.sibling.return=l.return,l=l.sibling}return null}var ti=0,Mt=null,on=null,Kn=null,Xa=!1,sr=!1,hr=!1,Nr=0,pr=0,Qa=null,ic=0;function gn(){throw Error(A(321))}function Ks(o,l){if(l===null)return!1;for(var d=0;d<l.length&&d<o.length;d++)if(!Xn(o[d],l[d]))return!1;return!0}function wh(o,l,d,m,b,E){return ti=E,Mt=l,l.memoizedState=null,l.updateQueue=null,l.lanes=0,Ue.H=o===null||o.memoizedState===null?Kg:Rh,hr=!1,E=d(m,b),hr=!1,sr&&(E=el(l,d,m,b)),Eh(o),E}function Eh(o){Ue.H=cc;var l=on!==null&&on.next!==null;if(ti=0,Kn=on=Mt=null,Xa=!1,pr=0,Qa=null,l)throw Error(A(300));o===null||Jn||(o=o.dependencies,o!==null&&qu(o)&&(Jn=!0))}function el(o,l,d,m){Mt=o;var b=0;do{if(sr&&(Qa=null),pr=0,sr=!1,25<=b)throw Error(A(301));if(b+=1,Kn=on=null,o.updateQueue!=null){var E=o.updateQueue;E.lastEffect=null,E.events=null,E.stores=null,E.memoCache!=null&&(E.memoCache.index=0)}Ue.H=Jg,E=l(d,m)}while(sr);return E}function Hb(){var o=Ue.H,l=o.useState()[0];return l=typeof l.then=="function"?ac(l):l,o=o.useState()[0],(on!==null?on.memoizedState:null)!==o&&(Mt.flags|=1024),l}function Qu(){var o=Nr!==0;return Nr=0,o}function Ku(o,l,d){l.updateQueue=o.updateQueue,l.flags&=-2053,o.lanes&=~d}function xh(o){if(Xa){for(o=o.memoizedState;o!==null;){var l=o.queue;l!==null&&(l.pending=null),o=o.next}Xa=!1}ti=0,Kn=on=Mt=null,sr=!1,pr=Nr=0,Qa=null}function Pr(){var o={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Kn===null?Mt.memoizedState=Kn=o:Kn=Kn.next=o,Kn}function jn(){if(on===null){var o=Mt.alternate;o=o!==null?o.memoizedState:null}else o=on.next;var l=Kn===null?Mt.memoizedState:Kn.next;if(l!==null)Kn=l,on=o;else{if(o===null)throw Mt.alternate===null?Error(A(467)):Error(A(310));on=o,o={memoizedState:on.memoizedState,baseState:on.baseState,baseQueue:on.baseQueue,queue:on.queue,next:null},Kn===null?Mt.memoizedState=Kn=o:Kn=Kn.next=o}return Kn}function Ju(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ac(o){var l=pr;return pr+=1,Qa===null&&(Qa=[]),o=Bb(Qa,o,l),l=Mt,(Kn===null?l.memoizedState:Kn.next)===null&&(l=l.alternate,Ue.H=l===null||l.memoizedState===null?Kg:Rh),o}function ed(o){if(o!==null&&typeof o=="object"){if(typeof o.then=="function")return ac(o);if(o.$$typeof===ie)return xr(o)}throw Error(A(438,String(o)))}function Sh(o){var l=null,d=Mt.updateQueue;if(d!==null&&(l=d.memoCache),l==null){var m=Mt.alternate;m!==null&&(m=m.updateQueue,m!==null&&(m=m.memoCache,m!=null&&(l={data:m.data.map(function(b){return b.slice()}),index:0})))}if(l==null&&(l={data:[],index:0}),d===null&&(d=Ju(),Mt.updateQueue=d),d.memoCache=l,d=l.data[l.index],d===void 0)for(d=l.data[l.index]=Array(o),m=0;m<o;m++)d[m]=Sn;return l.index++,d}function ga(o,l){return typeof l=="function"?l(o):l}function td(o){var l=jn();return Ch(l,on,o)}function Ch(o,l,d){var m=o.queue;if(m===null)throw Error(A(311));m.lastRenderedReducer=d;var b=o.baseQueue,E=m.pending;if(E!==null){if(b!==null){var D=b.next;b.next=E.next,E.next=D}l.baseQueue=b=E,m.pending=null}if(E=o.baseState,b===null)o.memoizedState=E;else{l=b.next;var N=D=null,Z=null,le=l,we=!1;do{var De=le.lane&-536870913;if(De!==le.lane?(Ht&De)===De:(ti&De)===De){var ce=le.revertLane;if(ce===0)Z!==null&&(Z=Z.next={lane:0,revertLane:0,gesture:null,action:le.action,hasEagerState:le.hasEagerState,eagerState:le.eagerState,next:null}),De===ma&&(we=!0);else if((ti&ce)===ce){le=le.next,ce===ma&&(we=!0);continue}else De={lane:0,revertLane:le.revertLane,gesture:null,action:le.action,hasEagerState:le.hasEagerState,eagerState:le.eagerState,next:null},Z===null?(N=Z=De,D=E):Z=Z.next=De,Mt.lanes|=ce,is|=ce;De=le.action,hr&&d(E,De),E=le.hasEagerState?le.eagerState:d(E,De)}else ce={lane:De,revertLane:le.revertLane,gesture:le.gesture,action:le.action,hasEagerState:le.hasEagerState,eagerState:le.eagerState,next:null},Z===null?(N=Z=ce,D=E):Z=Z.next=ce,Mt.lanes|=De,is|=De;le=le.next}while(le!==null&&le!==l);if(Z===null?D=E:Z.next=N,!Xn(E,o.memoizedState)&&(Jn=!0,we&&(d=qs,d!==null)))throw d;o.memoizedState=E,o.baseState=D,o.baseQueue=Z,m.lastRenderedState=E}return b===null&&(m.lanes=0),[o.memoizedState,m.dispatch]}function Th(o){var l=jn(),d=l.queue;if(d===null)throw Error(A(311));d.lastRenderedReducer=o;var m=d.dispatch,b=d.pending,E=l.memoizedState;if(b!==null){d.pending=null;var D=b=b.next;do E=o(E,D.action),D=D.next;while(D!==b);Xn(E,l.memoizedState)||(Jn=!0),l.memoizedState=E,l.baseQueue===null&&(l.baseState=E),d.lastRenderedState=E}return[E,m]}function Og(o,l,d){var m=Mt,b=jn(),E=jt;if(E){if(d===void 0)throw Error(A(407));d=d()}else d=l();var D=!Xn((on||b).memoizedState,d);if(D&&(b.memoizedState=d,Jn=!0),b=b.queue,sd(zb.bind(null,m,b,o),[o]),b.getSnapshot!==l||D||Kn!==null&&Kn.memoizedState.tag&1){if(m.flags|=2048,eo(9,{destroy:void 0},Lg.bind(null,m,b,d,l),null),vn===null)throw Error(A(349));E||(ti&127)!==0||kg(m,l,d)}return d}function kg(o,l,d){o.flags|=16384,o={getSnapshot:l,value:d},l=Mt.updateQueue,l===null?(l=Ju(),Mt.updateQueue=l,l.stores=[o]):(d=l.stores,d===null?l.stores=[o]:d.push(o))}function Lg(o,l,d,m){l.value=d,l.getSnapshot=m,Fb(l)&&Mh(o)}function zb(o,l,d){return d(function(){Fb(l)&&Mh(o)})}function Fb(o){var l=o.getSnapshot;o=o.value;try{var d=l();return!Xn(o,d)}catch{return!0}}function Mh(o){var l=Vs(o,2);l!==null&&Dr(l,o,2)}function nd(o){var l=Pr();if(typeof o=="function"){var d=o;if(o=d(),hr){ks(!0);try{d()}finally{ks(!1)}}}return l.memoizedState=l.baseState=o,l.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ga,lastRenderedState:o},l}function Ag(o,l,d,m){return o.baseState=d,Ch(o,on,typeof m=="function"?m:ga)}function wE(o,l,d,m,b){if(Ka(o))throw Error(A(485));if(o=l.action,o!==null){var E={payload:b,action:o,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(D){E.listeners.push(D)}};Ue.T!==null?d(!0):E.isTransition=!1,m(E),d=l.pending,d===null?(E.next=l.pending=E,sc(l,E)):(E.next=d.next,l.pending=d.next=E)}}function sc(o,l){var d=l.action,m=l.payload,b=o.state;if(l.isTransition){var E=Ue.T,D={};Ue.T=D;try{var N=d(b,m),Z=Ue.S;Z!==null&&Z(D,N),Rg(o,l,N)}catch(le){vi(o,l,le)}finally{E!==null&&D.types!==null&&(E.types=D.types),Ue.T=E}}else try{E=d(b,m),Rg(o,l,E)}catch(le){vi(o,l,le)}}function Rg(o,l,d){d!==null&&typeof d=="object"&&typeof d.then=="function"?d.then(function(m){Ig(o,l,m)},function(m){return vi(o,l,m)}):Ig(o,l,d)}function Ig(o,l,d){l.status="fulfilled",l.value=d,Js(l),o.state=d,l=o.pending,l!==null&&(d=l.next,d===l?o.pending=null:(d=d.next,l.next=d,sc(o,d)))}function vi(o,l,d){var m=o.pending;if(o.pending=null,m!==null){m=m.next;do l.status="rejected",l.reason=d,Js(l),l=l.next;while(l!==m)}o.action=null}function Js(o){o=o.listeners;for(var l=0;l<o.length;l++)(0,o[l])()}function rd(o,l){return l}function Dh(o,l){if(jt){var d=vn.formState;if(d!==null){e:{var m=Mt;if(jt){if(Tn){t:{for(var b=Tn,E=pi;b.nodeType!==8;){if(!E){b=null;break t}if(b=Ii(b.nextSibling),b===null){b=null;break t}}E=b.data,b=E==="F!"||E==="F"?b:null}if(b){Tn=Ii(b.nextSibling),m=b.data==="F!";break e}}Ya(m)}m=!1}m&&(l=d[0])}}return d=Pr(),d.memoizedState=d.baseState=l,m={pending:null,lanes:0,dispatch:null,lastRenderedReducer:rd,lastRenderedState:l},d.queue=m,d=Zg.bind(null,Mt,m),m.dispatch=d,m=nd(!1),E=Ah.bind(null,Mt,!1,m.queue),m=Pr(),b={state:l,dispatch:null,action:o,pending:null},m.queue=b,d=wE.bind(null,Mt,b,E,d),b.dispatch=d,m.memoizedState=o,[l,d,!1]}function Ng(o){var l=jn();return Pg(l,on,o)}function Pg(o,l,d){if(l=Ch(o,l,rd)[0],o=td(ga)[0],typeof l=="object"&&l!==null&&typeof l.then=="function")try{var m=ac(l)}catch(D){throw D===Go?Zu:D}else m=l;l=jn();var b=l.queue,E=b.dispatch;return d!==l.memoizedState&&(Mt.flags|=2048,eo(9,{destroy:void 0},Vb.bind(null,b,d),null)),[m,E,o]}function Vb(o,l){o.action=l}function Bg(o){var l=jn(),d=on;if(d!==null)return Pg(l,d,o);jn(),l=l.memoizedState,d=jn();var m=d.queue.dispatch;return d.memoizedState=o,[l,m,!1]}function eo(o,l,d,m){return o={tag:o,create:d,deps:m,inst:l,next:null},l=Mt.updateQueue,l===null&&(l=Ju(),Mt.updateQueue=l),d=l.lastEffect,d===null?l.lastEffect=o.next=o:(m=d.next,d.next=o,o.next=m,l.lastEffect=o),o}function Hg(){return jn().memoizedState}function id(o,l,d,m){var b=Pr();Mt.flags|=o,b.memoizedState=eo(1|l,{destroy:void 0},d,m===void 0?null:m)}function ad(o,l,d,m){var b=jn();m=m===void 0?null:m;var E=b.memoizedState.inst;on!==null&&m!==null&&Ks(m,on.memoizedState.deps)?b.memoizedState=eo(l,E,d,m):(Mt.flags|=o,b.memoizedState=eo(1|l,E,d,m))}function zg(o,l){id(8390656,8,o,l)}function sd(o,l){ad(2048,8,o,l)}function Yb(o){Mt.flags|=4;var l=Mt.updateQueue;if(l===null)l=Ju(),Mt.updateQueue=l,l.events=[o];else{var d=l.events;d===null?l.events=[o]:d.push(o)}}function Fg(o){var l=jn().memoizedState;return Yb({ref:l,nextImpl:o}),function(){if((en&2)!==0)throw Error(A(440));return l.impl.apply(void 0,arguments)}}function Vg(o,l){return ad(4,2,o,l)}function Yg(o,l){return ad(4,4,o,l)}function oc(o,l){if(typeof l=="function"){o=o();var d=l(o);return function(){typeof d=="function"?d():l(null)}}if(l!=null)return o=o(),l.current=o,function(){l.current=null}}function jg(o,l,d){d=d!=null?d.concat([o]):null,ad(4,4,oc.bind(null,l,o),d)}function od(){}function Wg(o,l){var d=jn();l=l===void 0?null:l;var m=d.memoizedState;return l!==null&&Ks(l,m[1])?m[0]:(d.memoizedState=[o,l],o)}function Ug(o,l){var d=jn();l=l===void 0?null:l;var m=d.memoizedState;if(l!==null&&Ks(l,m[1]))return m[0];if(m=o(),hr){ks(!0);try{o()}finally{ks(!1)}}return d.memoizedState=[m,l],m}function ld(o,l,d){return d===void 0||(ti&1073741824)!==0&&(Ht&261930)===0?o.memoizedState=l:(o.memoizedState=d,o=Cc(),Mt.lanes|=o,is|=o,d)}function cd(o,l,d,m){return Xn(d,l)?d:ki.current!==null?(o=ld(o,d,m),Xn(o,l)||(Jn=!0),o):(ti&42)===0||(ti&1073741824)!==0&&(Ht&261930)===0?(Jn=!0,o.memoizedState=d):(o=Cc(),Mt.lanes|=o,is|=o,l)}function qg(o,l,d,m,b){var E=at.p;at.p=E!==0&&8>E?E:8;var D=Ue.T,N={};Ue.T=N,Ah(o,!1,l,d);try{var Z=b(),le=Ue.S;if(le!==null&&le(N,Z),Z!==null&&typeof Z=="object"&&typeof Z.then=="function"){var we=_g(Z,m);lc(o,l,we,gr(o))}else lc(o,l,m,gr(o))}catch(De){lc(o,l,{then:function(){},status:"rejected",reason:De},gr())}finally{at.p=E,D!==null&&N.types!==null&&(D.types=N.types),Ue.T=D}}function $g(){}function Oh(o,l,d,m){if(o.tag!==5)throw Error(A(476));var b=Gg(o).queue;qg(o,b,l,Cr,d===null?$g:function(){return kh(o),d(m)})}function Gg(o){var l=o.memoizedState;if(l!==null)return l;l={memoizedState:Cr,baseState:Cr,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ga,lastRenderedState:Cr},next:null};var d={};return l.next={memoizedState:d,baseState:d,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ga,lastRenderedState:d},next:null},o.memoizedState=l,o=o.alternate,o!==null&&(o.memoizedState=l),l}function kh(o){var l=Gg(o);l.next===null&&(l=o.alternate.memoizedState),lc(o,l.next.queue,{},gr())}function ud(){return xr(Hc)}function Lh(){return jn().memoizedState}function tl(){return jn().memoizedState}function jb(o){for(var l=o.return;l!==null;){switch(l.tag){case 24:case 3:var d=gr();o=Zs(d);var m=$a(l,o,d);m!==null&&(Dr(m,l,d),Rr(m,l,d)),l={cache:Kl()},o.payload=l;return}l=l.return}}function Wb(o,l,d){var m=gr();d={lane:m,revertLane:0,gesture:null,action:d,hasEagerState:!1,eagerState:null,next:null},Ka(o)?Xg(l,d):(d=th(o,l,d,m),d!==null&&(Dr(d,o,m),Qg(d,l,m)))}function Zg(o,l,d){var m=gr();lc(o,l,d,m)}function lc(o,l,d,m){var b={lane:m,revertLane:0,gesture:null,action:d,hasEagerState:!1,eagerState:null,next:null};if(Ka(o))Xg(l,b);else{var E=o.alternate;if(o.lanes===0&&(E===null||E.lanes===0)&&(E=l.lastRenderedReducer,E!==null))try{var D=l.lastRenderedState,N=E(D,d);if(b.hasEagerState=!0,b.eagerState=N,Xn(N,D))return Yu(o,l,b,0),vn===null&&Vu(),!1}catch{}if(d=th(o,l,b,m),d!==null)return Dr(d,o,m),Qg(d,l,m),!0}return!1}function Ah(o,l,d,m){if(m={lane:2,revertLane:lp(),gesture:null,action:m,hasEagerState:!1,eagerState:null,next:null},Ka(o)){if(l)throw Error(A(479))}else l=th(o,d,m,2),l!==null&&Dr(l,o,2)}function Ka(o){var l=o.alternate;return o===Mt||l!==null&&l===Mt}function Xg(o,l){sr=Xa=!0;var d=o.pending;d===null?l.next=l:(l.next=d.next,d.next=l),o.pending=l}function Qg(o,l,d){if((d&4194048)!==0){var m=l.lanes;m&=o.pendingLanes,d|=m,l.lanes=d,Cu(o,d)}}var cc={readContext:xr,use:ed,useCallback:gn,useContext:gn,useEffect:gn,useImperativeHandle:gn,useLayoutEffect:gn,useInsertionEffect:gn,useMemo:gn,useReducer:gn,useRef:gn,useState:gn,useDebugValue:gn,useDeferredValue:gn,useTransition:gn,useSyncExternalStore:gn,useId:gn,useHostTransitionStatus:gn,useFormState:gn,useActionState:gn,useOptimistic:gn,useMemoCache:gn,useCacheRefresh:gn};cc.useEffectEvent=gn;var Kg={readContext:xr,use:ed,useCallback:function(o,l){return Pr().memoizedState=[o,l===void 0?null:l],o},useContext:xr,useEffect:zg,useImperativeHandle:function(o,l,d){d=d!=null?d.concat([o]):null,id(4194308,4,oc.bind(null,l,o),d)},useLayoutEffect:function(o,l){return id(4194308,4,o,l)},useInsertionEffect:function(o,l){id(4,2,o,l)},useMemo:function(o,l){var d=Pr();l=l===void 0?null:l;var m=o();if(hr){ks(!0);try{o()}finally{ks(!1)}}return d.memoizedState=[m,l],m},useReducer:function(o,l,d){var m=Pr();if(d!==void 0){var b=d(l);if(hr){ks(!0);try{d(l)}finally{ks(!1)}}}else b=l;return m.memoizedState=m.baseState=b,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:o,lastRenderedState:b},m.queue=o,o=o.dispatch=Wb.bind(null,Mt,o),[m.memoizedState,o]},useRef:function(o){var l=Pr();return o={current:o},l.memoizedState=o},useState:function(o){o=nd(o);var l=o.queue,d=Zg.bind(null,Mt,l);return l.dispatch=d,[o.memoizedState,d]},useDebugValue:od,useDeferredValue:function(o,l){var d=Pr();return ld(d,o,l)},useTransition:function(){var o=nd(!1);return o=qg.bind(null,Mt,o.queue,!0,!1),Pr().memoizedState=o,[!1,o]},useSyncExternalStore:function(o,l,d){var m=Mt,b=Pr();if(jt){if(d===void 0)throw Error(A(407));d=d()}else{if(d=l(),vn===null)throw Error(A(349));(Ht&127)!==0||kg(m,l,d)}b.memoizedState=d;var E={value:d,getSnapshot:l};return b.queue=E,zg(zb.bind(null,m,E,o),[o]),m.flags|=2048,eo(9,{destroy:void 0},Lg.bind(null,m,E,d,l),null),d},useId:function(){var o=Pr(),l=vn.identifierPrefix;if(jt){var d=$i,m=qi;d=(m&~(1<<32-Tr(m)-1)).toString(32)+d,l="_"+l+"R_"+d,d=Nr++,0<d&&(l+="H"+d.toString(32)),l+="_"}else d=ic++,l="_"+l+"r_"+d.toString(32)+"_";return o.memoizedState=l},useHostTransitionStatus:ud,useFormState:Dh,useActionState:Dh,useOptimistic:function(o){var l=Pr();l.memoizedState=l.baseState=o;var d={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return l.queue=d,l=Ah.bind(null,Mt,!0,d),d.dispatch=l,[o,l]},useMemoCache:Sh,useCacheRefresh:function(){return Pr().memoizedState=jb.bind(null,Mt)},useEffectEvent:function(o){var l=Pr(),d={impl:o};return l.memoizedState=d,function(){if((en&2)!==0)throw Error(A(440));return d.impl.apply(void 0,arguments)}}},Rh={readContext:xr,use:ed,useCallback:Wg,useContext:xr,useEffect:sd,useImperativeHandle:jg,useInsertionEffect:Vg,useLayoutEffect:Yg,useMemo:Ug,useReducer:td,useRef:Hg,useState:function(){return td(ga)},useDebugValue:od,useDeferredValue:function(o,l){var d=jn();return cd(d,on.memoizedState,o,l)},useTransition:function(){var o=td(ga)[0],l=jn().memoizedState;return[typeof o=="boolean"?o:ac(o),l]},useSyncExternalStore:Og,useId:Lh,useHostTransitionStatus:ud,useFormState:Ng,useActionState:Ng,useOptimistic:function(o,l){var d=jn();return Ag(d,on,o,l)},useMemoCache:Sh,useCacheRefresh:tl};Rh.useEffectEvent=Fg;var Jg={readContext:xr,use:ed,useCallback:Wg,useContext:xr,useEffect:sd,useImperativeHandle:jg,useInsertionEffect:Vg,useLayoutEffect:Yg,useMemo:Ug,useReducer:Th,useRef:Hg,useState:function(){return Th(ga)},useDebugValue:od,useDeferredValue:function(o,l){var d=jn();return on===null?ld(d,o,l):cd(d,on.memoizedState,o,l)},useTransition:function(){var o=Th(ga)[0],l=jn().memoizedState;return[typeof o=="boolean"?o:ac(o),l]},useSyncExternalStore:Og,useId:Lh,useHostTransitionStatus:ud,useFormState:Bg,useActionState:Bg,useOptimistic:function(o,l){var d=jn();return on!==null?Ag(d,on,o,l):(d.baseState=o,[o,d.queue.dispatch])},useMemoCache:Sh,useCacheRefresh:tl};Jg.useEffectEvent=Fg;function Ih(o,l,d,m){l=o.memoizedState,d=d(m,l),d=d==null?l:Me({},l,d),o.memoizedState=d,o.lanes===0&&(o.updateQueue.baseState=d)}var dd={enqueueSetState:function(o,l,d){o=o._reactInternals;var m=gr(),b=Zs(m);b.payload=l,d!=null&&(b.callback=d),l=$a(o,b,m),l!==null&&(Dr(l,o,m),Rr(l,o,m))},enqueueReplaceState:function(o,l,d){o=o._reactInternals;var m=gr(),b=Zs(m);b.tag=1,b.payload=l,d!=null&&(b.callback=d),l=$a(o,b,m),l!==null&&(Dr(l,o,m),Rr(l,o,m))},enqueueForceUpdate:function(o,l){o=o._reactInternals;var d=gr(),m=Zs(d);m.tag=2,l!=null&&(m.callback=l),l=$a(o,m,d),l!==null&&(Dr(l,o,d),Rr(l,o,d))}};function Nh(o,l,d,m,b,E,D){return o=o.stateNode,typeof o.shouldComponentUpdate=="function"?o.shouldComponentUpdate(m,E,D):l.prototype&&l.prototype.isPureReactComponent?!Ul(d,m)||!Ul(b,E):!0}function ev(o,l,d,m){o=l.state,typeof l.componentWillReceiveProps=="function"&&l.componentWillReceiveProps(d,m),typeof l.UNSAFE_componentWillReceiveProps=="function"&&l.UNSAFE_componentWillReceiveProps(d,m),l.state!==o&&dd.enqueueReplaceState(l,l.state,null)}function nl(o,l){var d=l;if("ref"in l){d={};for(var m in l)m!=="ref"&&(d[m]=l[m])}if(o=o.defaultProps){d===l&&(d=Me({},d));for(var b in o)d[b]===void 0&&(d[b]=o[b])}return d}function tv(o){Fu(o)}function nv(o){console.error(o)}function Ub(o){Fu(o)}function fd(o,l){try{var d=o.onUncaughtError;d(l.value,{componentStack:l.stack})}catch(m){setTimeout(function(){throw m})}}function Ph(o,l,d){try{var m=o.onCaughtError;m(d.value,{componentStack:d.stack,errorBoundary:l.tag===1?l.stateNode:null})}catch(b){setTimeout(function(){throw b})}}function hd(o,l,d){return d=Zs(d),d.tag=3,d.payload={element:null},d.callback=function(){fd(o,l)},d}function Bh(o){return o=Zs(o),o.tag=3,o}function Hh(o,l,d,m){var b=d.type.getDerivedStateFromError;if(typeof b=="function"){var E=m.value;o.payload=function(){return b(E)},o.callback=function(){Ph(l,d,m)}}var D=d.stateNode;D!==null&&typeof D.componentDidCatch=="function"&&(o.callback=function(){Ph(l,d,m),typeof b!="function"&&(as===null?as=new Set([this]):as.add(this));var N=m.stack;this.componentDidCatch(m.value,{componentStack:N!==null?N:""})})}function Ja(o,l,d,m,b){if(d.flags|=32768,m!==null&&typeof m=="object"&&typeof m.then=="function"){if(l=d.alternate,l!==null&&$o(l,d,b,!0),d=Qn.current,d!==null){switch(d.tag){case 31:case 13:return Ur===null?cl():d.alternate===null&&An===0&&(An=3),d.flags&=-257,d.flags|=65536,d.lanes=b,m===vh?d.flags|=16384:(l=d.updateQueue,l===null?d.updateQueue=new Set([m]):l.add(m),Oc(o,m,b)),!1;case 22:return d.flags|=65536,m===vh?d.flags|=16384:(l=d.updateQueue,l===null?(l={transitions:null,markerInstances:null,retryQueue:new Set([m])},d.updateQueue=l):(d=l.retryQueue,d===null?l.retryQueue=new Set([m]):d.add(m)),Oc(o,m,b)),!1}throw Error(A(435,d.tag))}return Oc(o,m,b),cl(),!1}if(jt)return l=Qn.current,l!==null?((l.flags&65536)===0&&(l.flags|=256),l.flags|=65536,l.lanes=b,m!==Xl&&(o=Error(A(422),{cause:m}),Ql(di(o,d)))):(m!==Xl&&(l=Error(A(423),{cause:m}),Ql(di(l,d))),o=o.current.alternate,o.flags|=65536,b&=-b,o.lanes|=b,m=di(m,d),b=hd(o.stateNode,m,b),Ga(o,b),An!==4&&(An=2)),!1;var E=Error(A(520),{cause:m});if(E=di(E,d),Sc===null?Sc=[E]:Sc.push(E),An!==4&&(An=2),l===null)return!0;m=di(m,d),d=l;do{switch(d.tag){case 3:return d.flags|=65536,o=b&-b,d.lanes|=o,o=hd(d.stateNode,m,o),Ga(d,o),!1;case 1:if(l=d.type,E=d.stateNode,(d.flags&128)===0&&(typeof l.getDerivedStateFromError=="function"||E!==null&&typeof E.componentDidCatch=="function"&&(as===null||!as.has(E))))return d.flags|=65536,b&=-b,d.lanes|=b,b=Bh(b),Hh(b,o,d,m),Ga(d,b),!1}d=d.return}while(d!==null);return!1}var pd=Error(A(461)),Jn=!1;function or(o,l,d,m){l.child=o===null?Tg(l,null,d,m):Ko(l,o.child,d,m)}function md(o,l,d,m,b){d=d.render;var E=l.ref;if("ref"in m){var D={};for(var N in m)N!=="ref"&&(D[N]=m[N])}else D=m;return Us(l),m=wh(o,l,d,D,E,b),N=Qu(),o!==null&&!Jn?(Ku(o,l,b),Zi(o,l,b)):(jt&&N&&ah(l),l.flags|=1,or(o,l,m,b),l.child)}function zh(o,l,d,m,b){if(o===null){var E=d.type;return typeof E=="function"&&!nh(E)&&E.defaultProps===void 0&&d.compare===null?(l.tag=15,l.type=E,Fh(o,l,E,m,b)):(o=Wu(d.type,null,m,l,l.mode,b),o.ref=l.ref,o.return=l,l.child=o)}if(E=o.child,!jh(o,b)){var D=E.memoizedProps;if(d=d.compare,d=d!==null?d:Ul,d(D,m)&&o.ref===l.ref)return Zi(o,l,b)}return l.flags|=1,o=da(E,m),o.ref=l.ref,o.return=l,l.child=o}function Fh(o,l,d,m,b){if(o!==null){var E=o.memoizedProps;if(Ul(E,m)&&o.ref===l.ref)if(Jn=!1,l.pendingProps=m=E,jh(o,b))(o.flags&131072)!==0&&(Jn=!0);else return l.lanes=o.lanes,Zi(o,l,b)}return vd(o,l,d,m,b)}function gd(o,l,d,m){var b=m.children,E=o!==null?o.memoizedState:null;if(o===null&&l.stateNode===null&&(l.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),m.mode==="hidden"){if((l.flags&128)!==0){if(E=E!==null?E.baseLanes|d:d,o!==null){for(m=l.child=o.child,b=0;m!==null;)b=b|m.lanes|m.childLanes,m=m.sibling;m=b&~E}else m=0,l.child=null;return va(o,l,E,d,m)}if((d&536870912)!==0)l.memoizedState={baseLanes:0,cachePool:null},o!==null&&Gu(l,E!==null?E.cachePool:null),E!==null?Mg(l,E):_h(),Dg(l);else return m=l.lanes=536870912,va(o,l,E!==null?E.baseLanes|d:d,d,m)}else E!==null?(Gu(l,E.cachePool),Mg(l,E),Za(l),l.memoizedState=null):(o!==null&&Gu(l,null),_h(),Za(l));return or(o,l,b,d),l.child}function uc(o,l){return o!==null&&o.tag===22||l.stateNode!==null||(l.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.sibling}function va(o,l,d,m,b){var E=wg();return E=E===null?null:{parent:Vn._currentValue,pool:E},l.memoizedState={baseLanes:d,cachePool:E},o!==null&&Gu(l,null),_h(),Dg(l),o!==null&&$o(o,l,m,!0),l.childLanes=b,null}function dc(o,l){return l=pc({mode:l.mode,children:l.children},o.mode),l.ref=o.ref,o.child=l,l.return=o,l}function rv(o,l,d){return Ko(l,o.child,null,d),o=dc(l,l.pendingProps),o.flags|=2,Ir(l),l.memoizedState=null,o}function iv(o,l,d){var m=l.pendingProps,b=(l.flags&128)!==0;if(l.flags&=-129,o===null){if(jt){if(m.mode==="hidden")return o=dc(l,m),l.lanes=536870912,uc(null,o);if(nc(l),(o=Tn)?(o=m1(o,pi),o=o!==null&&o.data==="&"?o:null,o!==null&&(l.memoizedState={dehydrated:o,treeContext:Fa!==null?{id:qi,overflow:$i}:null,retryLane:536870912,hydrationErrors:null},d=hg(o),d.return=l,l.child=d,Er=l,Tn=null)):o=null,o===null)throw Ya(l);return l.lanes=536870912,null}return dc(l,m)}var E=o.memoizedState;if(E!==null){var D=E.dehydrated;if(nc(l),b)if(l.flags&256)l.flags&=-257,l=rv(o,l,d);else if(l.memoizedState!==null)l.child=o.child,l.flags|=128,l=null;else throw Error(A(558));else if(Jn||$o(o,l,d,!1),b=(d&o.childLanes)!==0,Jn||b){if(m=vn,m!==null&&(D=Vm(m,d),D!==0&&D!==E.retryLane))throw E.retryLane=D,Vs(o,D),Dr(m,o,D),pd;cl(),l=rv(o,l,d)}else o=E.treeContext,Tn=Ii(D.nextSibling),Er=l,jt=!0,Va=null,pi=!1,o!==null&&gg(l,o),l=dc(l,m),l.flags|=4096;return l}return o=da(o.child,{mode:m.mode,children:m.children}),o.ref=l.ref,l.child=o,o.return=l,o}function ya(o,l){var d=l.ref;if(d===null)o!==null&&o.ref!==null&&(l.flags|=4194816);else{if(typeof d!="function"&&typeof d!="object")throw Error(A(284));(o===null||o.ref!==d)&&(l.flags|=4194816)}}function vd(o,l,d,m,b){return Us(l),d=wh(o,l,d,m,void 0,b),m=Qu(),o!==null&&!Jn?(Ku(o,l,b),Zi(o,l,b)):(jt&&m&&ah(l),l.flags|=1,or(o,l,d,b),l.child)}function es(o,l,d,m,b,E){return Us(l),l.updateQueue=null,d=el(l,m,d,b),Eh(o),m=Qu(),o!==null&&!Jn?(Ku(o,l,E),Zi(o,l,E)):(jt&&m&&ah(l),l.flags|=1,or(o,l,d,E),l.child)}function fc(o,l,d,m,b){if(Us(l),l.stateNode===null){var E=jo,D=d.contextType;typeof D=="object"&&D!==null&&(E=xr(D)),E=new d(m,E),l.memoizedState=E.state!==null&&E.state!==void 0?E.state:null,E.updater=dd,l.stateNode=E,E._reactInternals=l,E=l.stateNode,E.props=m,E.state=l.memoizedState,E.refs={},yh(l),D=d.contextType,E.context=typeof D=="object"&&D!==null?xr(D):jo,E.state=l.memoizedState,D=d.getDerivedStateFromProps,typeof D=="function"&&(Ih(l,d,D,m),E.state=l.memoizedState),typeof d.getDerivedStateFromProps=="function"||typeof E.getSnapshotBeforeUpdate=="function"||typeof E.UNSAFE_componentWillMount!="function"&&typeof E.componentWillMount!="function"||(D=E.state,typeof E.componentWillMount=="function"&&E.componentWillMount(),typeof E.UNSAFE_componentWillMount=="function"&&E.UNSAFE_componentWillMount(),D!==E.state&&dd.enqueueReplaceState(E,E.state,null),Oi(l,m,E,b),Xs(),E.state=l.memoizedState),typeof E.componentDidMount=="function"&&(l.flags|=4194308),m=!0}else if(o===null){E=l.stateNode;var N=l.memoizedProps,Z=nl(d,N);E.props=Z;var le=E.context,we=d.contextType;D=jo,typeof we=="object"&&we!==null&&(D=xr(we));var De=d.getDerivedStateFromProps;we=typeof De=="function"||typeof E.getSnapshotBeforeUpdate=="function",N=l.pendingProps!==N,we||typeof E.UNSAFE_componentWillReceiveProps!="function"&&typeof E.componentWillReceiveProps!="function"||(N||le!==D)&&ev(l,E,m,D),Gs=!1;var ce=l.memoizedState;E.state=ce,Oi(l,m,E,b),Xs(),le=l.memoizedState,N||ce!==le||Gs?(typeof De=="function"&&(Ih(l,d,De,m),le=l.memoizedState),(Z=Gs||Nh(l,d,Z,m,ce,le,D))?(we||typeof E.UNSAFE_componentWillMount!="function"&&typeof E.componentWillMount!="function"||(typeof E.componentWillMount=="function"&&E.componentWillMount(),typeof E.UNSAFE_componentWillMount=="function"&&E.UNSAFE_componentWillMount()),typeof E.componentDidMount=="function"&&(l.flags|=4194308)):(typeof E.componentDidMount=="function"&&(l.flags|=4194308),l.memoizedProps=m,l.memoizedState=le),E.props=m,E.state=le,E.context=D,m=Z):(typeof E.componentDidMount=="function"&&(l.flags|=4194308),m=!1)}else{E=l.stateNode,bh(o,l),D=l.memoizedProps,we=nl(d,D),E.props=we,De=l.pendingProps,ce=E.context,le=d.contextType,Z=jo,typeof le=="object"&&le!==null&&(Z=xr(le)),N=d.getDerivedStateFromProps,(le=typeof N=="function"||typeof E.getSnapshotBeforeUpdate=="function")||typeof E.UNSAFE_componentWillReceiveProps!="function"&&typeof E.componentWillReceiveProps!="function"||(D!==De||ce!==Z)&&ev(l,E,m,Z),Gs=!1,ce=l.memoizedState,E.state=ce,Oi(l,m,E,b),Xs();var fe=l.memoizedState;D!==De||ce!==fe||Gs||o!==null&&o.dependencies!==null&&qu(o.dependencies)?(typeof N=="function"&&(Ih(l,d,N,m),fe=l.memoizedState),(we=Gs||Nh(l,d,we,m,ce,fe,Z)||o!==null&&o.dependencies!==null&&qu(o.dependencies))?(le||typeof E.UNSAFE_componentWillUpdate!="function"&&typeof E.componentWillUpdate!="function"||(typeof E.componentWillUpdate=="function"&&E.componentWillUpdate(m,fe,Z),typeof E.UNSAFE_componentWillUpdate=="function"&&E.UNSAFE_componentWillUpdate(m,fe,Z)),typeof E.componentDidUpdate=="function"&&(l.flags|=4),typeof E.getSnapshotBeforeUpdate=="function"&&(l.flags|=1024)):(typeof E.componentDidUpdate!="function"||D===o.memoizedProps&&ce===o.memoizedState||(l.flags|=4),typeof E.getSnapshotBeforeUpdate!="function"||D===o.memoizedProps&&ce===o.memoizedState||(l.flags|=1024),l.memoizedProps=m,l.memoizedState=fe),E.props=m,E.state=fe,E.context=Z,m=we):(typeof E.componentDidUpdate!="function"||D===o.memoizedProps&&ce===o.memoizedState||(l.flags|=4),typeof E.getSnapshotBeforeUpdate!="function"||D===o.memoizedProps&&ce===o.memoizedState||(l.flags|=1024),m=!1)}return E=m,ya(o,l),m=(l.flags&128)!==0,E||m?(E=l.stateNode,d=m&&typeof d.getDerivedStateFromError!="function"?null:E.render(),l.flags|=1,o!==null&&m?(l.child=Ko(l,o.child,null,b),l.child=Ko(l,null,d,b)):or(o,l,d,b),l.memoizedState=E.state,o=l.child):o=Zi(o,l,b),o}function av(o,l,d,m){return js(),l.flags|=256,or(o,l,d,m),l.child}var hc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function yd(o){return{baseLanes:o,cachePool:Eg()}}function Vh(o,l,d){return o=o!==null?o.childLanes&~d:0,l&&(o|=ai),o}function bd(o,l,d){var m=l.pendingProps,b=!1,E=(l.flags&128)!==0,D;if((D=E)||(D=o!==null&&o.memoizedState===null?!1:(kn.current&2)!==0),D&&(b=!0,l.flags&=-129),D=(l.flags&32)!==0,l.flags&=-33,o===null){if(jt){if(b?Mr(l):Za(l),(o=Tn)?(o=m1(o,pi),o=o!==null&&o.data!=="&"?o:null,o!==null&&(l.memoizedState={dehydrated:o,treeContext:Fa!==null?{id:qi,overflow:$i}:null,retryLane:536870912,hydrationErrors:null},d=hg(o),d.return=l,l.child=d,Er=l,Tn=null)):o=null,o===null)throw Ya(l);return Uv(o)?l.lanes=32:l.lanes=536870912,null}var N=m.children;return m=m.fallback,b?(Za(l),b=l.mode,N=pc({mode:"hidden",children:N},b),m=Ys(m,b,d,null),N.return=l,m.return=l,N.sibling=m,l.child=N,m=l.child,m.memoizedState=yd(d),m.childLanes=Vh(o,D,d),l.memoizedState=hc,uc(null,m)):(Mr(l),to(l,N))}var Z=o.memoizedState;if(Z!==null&&(N=Z.dehydrated,N!==null)){if(E)l.flags&256?(Mr(l),l.flags&=-257,l=Yh(o,l,d)):l.memoizedState!==null?(Za(l),l.child=o.child,l.flags|=128,l=null):(Za(l),N=m.fallback,b=l.mode,m=pc({mode:"visible",children:m.children},b),N=Ys(N,b,d,null),N.flags|=2,m.return=l,N.return=l,m.sibling=N,l.child=m,Ko(l,o.child,null,d),m=l.child,m.memoizedState=yd(d),m.childLanes=Vh(o,D,d),l.memoizedState=hc,l=uc(null,m));else if(Mr(l),Uv(N)){if(D=N.nextSibling&&N.nextSibling.dataset,D)var le=D.dgst;D=le,m=Error(A(419)),m.stack="",m.digest=D,Ql({value:m,source:null,stack:null}),l=Yh(o,l,d)}else if(Jn||$o(o,l,d,!1),D=(d&o.childLanes)!==0,Jn||D){if(D=vn,D!==null&&(m=Vm(D,d),m!==0&&m!==Z.retryLane))throw Z.retryLane=m,Vs(o,m),Dr(D,o,m),pd;vp(N)||cl(),l=Yh(o,l,d)}else vp(N)?(l.flags|=192,l.child=o.child,l=null):(o=Z.treeContext,Tn=Ii(N.nextSibling),Er=l,jt=!0,Va=null,pi=!1,o!==null&&gg(l,o),l=to(l,m.children),l.flags|=4096);return l}return b?(Za(l),N=m.fallback,b=l.mode,Z=o.child,le=Z.sibling,m=da(Z,{mode:"hidden",children:m.children}),m.subtreeFlags=Z.subtreeFlags&65011712,le!==null?N=da(le,N):(N=Ys(N,b,d,null),N.flags|=2),N.return=l,m.return=l,m.sibling=N,l.child=m,uc(null,m),m=l.child,N=o.child.memoizedState,N===null?N=yd(d):(b=N.cachePool,b!==null?(Z=Vn._currentValue,b=b.parent!==Z?{parent:Z,pool:Z}:b):b=Eg(),N={baseLanes:N.baseLanes|d,cachePool:b}),m.memoizedState=N,m.childLanes=Vh(o,D,d),l.memoizedState=hc,uc(o.child,m)):(Mr(l),d=o.child,o=d.sibling,d=da(d,{mode:"visible",children:m.children}),d.return=l,d.sibling=null,o!==null&&(D=l.deletions,D===null?(l.deletions=[o],l.flags|=16):D.push(o)),l.child=d,l.memoizedState=null,d)}function to(o,l){return l=pc({mode:"visible",children:l},o.mode),l.return=o,o.child=l}function pc(o,l){return o=ei(22,o,null,l),o.lanes=0,o}function Yh(o,l,d){return Ko(l,o.child,null,d),o=to(l,l.pendingProps.children),o.flags|=2,l.memoizedState=null,o}function _d(o,l,d){o.lanes|=l;var m=o.alternate;m!==null&&(m.lanes|=l),uh(o.return,l,d)}function wd(o,l,d,m,b,E){var D=o.memoizedState;D===null?o.memoizedState={isBackwards:l,rendering:null,renderingStartTime:0,last:m,tail:d,tailMode:b,treeForkCount:E}:(D.isBackwards=l,D.rendering=null,D.renderingStartTime=0,D.last=m,D.tail=d,D.tailMode=b,D.treeForkCount=E)}function Li(o,l,d){var m=l.pendingProps,b=m.revealOrder,E=m.tail;m=m.children;var D=kn.current,N=(D&2)!==0;if(N?(D=D&1|2,l.flags|=128):D&=1,lt(kn,D),or(o,l,m,d),m=jt?Zl:0,!N&&o!==null&&(o.flags&128)!==0)e:for(o=l.child;o!==null;){if(o.tag===13)o.memoizedState!==null&&_d(o,d,l);else if(o.tag===19)_d(o,d,l);else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===l)break e;for(;o.sibling===null;){if(o.return===null||o.return===l)break e;o=o.return}o.sibling.return=o.return,o=o.sibling}switch(b){case"forwards":for(d=l.child,b=null;d!==null;)o=d.alternate,o!==null&&rc(o)===null&&(b=d),d=d.sibling;d=b,d===null?(b=l.child,l.child=null):(b=d.sibling,d.sibling=null),wd(l,!1,b,d,E,m);break;case"backwards":case"unstable_legacy-backwards":for(d=null,b=l.child,l.child=null;b!==null;){if(o=b.alternate,o!==null&&rc(o)===null){l.child=b;break}o=b.sibling,b.sibling=d,d=b,b=o}wd(l,!0,d,null,E,m);break;case"together":wd(l,!1,null,null,void 0,m);break;default:l.memoizedState=null}return l.child}function Zi(o,l,d){if(o!==null&&(l.dependencies=o.dependencies),is|=l.lanes,(d&l.childLanes)===0)if(o!==null){if($o(o,l,d,!1),(d&l.childLanes)===0)return null}else return null;if(o!==null&&l.child!==o.child)throw Error(A(153));if(l.child!==null){for(o=l.child,d=da(o,o.pendingProps),l.child=d,d.return=l;o.sibling!==null;)o=o.sibling,d=d.sibling=da(o,o.pendingProps),d.return=l;d.sibling=null}return l.child}function jh(o,l){return(o.lanes&l)!==0?!0:(o=o.dependencies,!!(o!==null&&qu(o)))}function sv(o,l,d){switch(l.tag){case 3:Qr(l,l.stateNode.containerInfo),ja(l,Vn,o.memoizedState.cache),js();break;case 27:case 5:Lm(l);break;case 4:Qr(l,l.stateNode.containerInfo);break;case 10:ja(l,l.type,l.memoizedProps.value);break;case 31:if(l.memoizedState!==null)return l.flags|=128,nc(l),null;break;case 13:var m=l.memoizedState;if(m!==null)return m.dehydrated!==null?(Mr(l),l.flags|=128,null):(d&l.child.childLanes)!==0?bd(o,l,d):(Mr(l),o=Zi(o,l,d),o!==null?o.sibling:null);Mr(l);break;case 19:var b=(o.flags&128)!==0;if(m=(d&l.childLanes)!==0,m||($o(o,l,d,!1),m=(d&l.childLanes)!==0),b){if(m)return Li(o,l,d);l.flags|=128}if(b=l.memoizedState,b!==null&&(b.rendering=null,b.tail=null,b.lastEffect=null),lt(kn,kn.current),m)break;return null;case 22:return l.lanes=0,gd(o,l,d,l.pendingProps);case 24:ja(l,Vn,o.memoizedState.cache)}return Zi(o,l,d)}function ov(o,l,d){if(o!==null)if(o.memoizedProps!==l.pendingProps)Jn=!0;else{if(!jh(o,d)&&(l.flags&128)===0)return Jn=!1,sv(o,l,d);Jn=(o.flags&131072)!==0}else Jn=!1,jt&&(l.flags&1048576)!==0&&mg(l,Zl,l.index);switch(l.lanes=0,l.tag){case 16:e:{var m=l.pendingProps;if(o=$s(l.elementType),l.type=o,typeof o=="function")nh(o)?(m=nl(o,m),l.tag=1,l=fc(null,l,o,m,d)):(l.tag=0,l=vd(null,l,o,m,d));else{if(o!=null){var b=o.$$typeof;if(b===Ee){l.tag=11,l=md(null,l,o,m,d);break e}else if(b===St){l.tag=14,l=zh(null,l,o,m,d);break e}}throw l=He(o)||o,Error(A(306,l,""))}}return l;case 0:return vd(o,l,l.type,l.pendingProps,d);case 1:return m=l.type,b=nl(m,l.pendingProps),fc(o,l,m,b,d);case 3:e:{if(Qr(l,l.stateNode.containerInfo),o===null)throw Error(A(387));m=l.pendingProps;var E=l.memoizedState;b=E.element,bh(o,l),Oi(l,m,null,d);var D=l.memoizedState;if(m=D.cache,ja(l,Vn,m),m!==E.cache&&dh(l,[Vn],d,!0),Xs(),m=D.element,E.isDehydrated)if(E={element:m,isDehydrated:!1,cache:D.cache},l.updateQueue.baseState=E,l.memoizedState=E,l.flags&256){l=av(o,l,m,d);break e}else if(m!==b){b=di(Error(A(424)),l),Ql(b),l=av(o,l,m,d);break e}else for(o=l.stateNode.containerInfo,o.nodeType===9?o=o.body:o=o.nodeName==="HTML"?o.ownerDocument.body:o,Tn=Ii(o.firstChild),Er=l,jt=!0,Va=null,pi=!0,d=Tg(l,null,m,d),l.child=d;d;)d.flags=d.flags&-3|4096,d=d.sibling;else{if(js(),m===b){l=Zi(o,l,d);break e}or(o,l,m,d)}l=l.child}return l;case 26:return ya(o,l),o===null?(d=Xv(l.type,null,l.pendingProps,null))?l.memoizedState=d:jt||(d=l.type,o=l.pendingProps,m=Nd(Pt.current).createElement(d),m[_r]=l,m[jr]=o,yr(m,d,o),wr(m),l.stateNode=m):l.memoizedState=Xv(l.type,o.memoizedProps,l.pendingProps,o.memoizedState),null;case 27:return Lm(l),o===null&&jt&&(m=l.stateNode=v1(l.type,l.pendingProps,Pt.current),Er=l,pi=!0,b=Tn,co(l.type)?(Ic=b,Tn=Ii(m.firstChild)):Tn=b),or(o,l,l.pendingProps.children,d),ya(o,l),o===null&&(l.flags|=4194304),l.child;case 5:return o===null&&jt&&((b=m=Tn)&&(m=SE(m,l.type,l.pendingProps,pi),m!==null?(l.stateNode=m,Er=l,Tn=Ii(m.firstChild),pi=!1,b=!0):b=!1),b||Ya(l)),Lm(l),b=l.type,E=l.pendingProps,D=o!==null?o.memoizedProps:null,m=E.children,gp(b,E)?m=null:D!==null&&gp(b,D)&&(l.flags|=32),l.memoizedState!==null&&(b=wh(o,l,Hb,null,null,d),Hc._currentValue=b),ya(o,l),or(o,l,m,d),l.child;case 6:return o===null&&jt&&((o=d=Tn)&&(d=un(d,l.pendingProps,pi),d!==null?(l.stateNode=d,Er=l,Tn=null,o=!0):o=!1),o||Ya(l)),null;case 13:return bd(o,l,d);case 4:return Qr(l,l.stateNode.containerInfo),m=l.pendingProps,o===null?l.child=Ko(l,null,m,d):or(o,l,m,d),l.child;case 11:return md(o,l,l.type,l.pendingProps,d);case 7:return or(o,l,l.pendingProps,d),l.child;case 8:return or(o,l,l.pendingProps.children,d),l.child;case 12:return or(o,l,l.pendingProps.children,d),l.child;case 10:return m=l.pendingProps,ja(l,l.type,m.value),or(o,l,m.children,d),l.child;case 9:return b=l.type._context,m=l.pendingProps.children,Us(l),b=xr(b),m=m(b),l.flags|=1,or(o,l,m,d),l.child;case 14:return zh(o,l,l.type,l.pendingProps,d);case 15:return Fh(o,l,l.type,l.pendingProps,d);case 19:return Li(o,l,d);case 31:return iv(o,l,d);case 22:return gd(o,l,d,l.pendingProps);case 24:return Us(l),m=xr(Vn),o===null?(b=wg(),b===null&&(b=vn,E=Kl(),b.pooledCache=E,E.refCount++,E!==null&&(b.pooledCacheLanes|=d),b=E),l.memoizedState={parent:m,cache:b},yh(l),ja(l,Vn,b)):((o.lanes&d)!==0&&(bh(o,l),Oi(l,null,null,d),Xs()),b=o.memoizedState,E=l.memoizedState,b.parent!==m?(b={parent:m,cache:m},l.memoizedState=b,l.lanes===0&&(l.memoizedState=l.updateQueue.baseState=b),ja(l,Vn,m)):(m=E.cache,ja(l,Vn,m),m!==b.cache&&dh(l,[Vn],d,!0))),or(o,l,l.pendingProps.children,d),l.child;case 29:throw l.pendingProps}throw Error(A(156,l.tag))}function ba(o){o.flags|=4}function Wh(o,l,d,m,b){if((l=(o.mode&32)!==0)&&(l=!1),l){if(o.flags|=16777216,(b&335544128)===b)if(o.stateNode.complete)o.flags|=8192;else if(Sv())o.flags|=8192;else throw Zo=vh,gh}else o.flags&=-16777217}function lv(o,l){if(l.type!=="stylesheet"||(l.state.loading&4)!==0)o.flags&=-16777217;else if(o.flags|=16777216,!C1(l))if(Sv())o.flags|=8192;else throw Zo=vh,gh}function Uh(o,l){l!==null&&(o.flags|=4),o.flags&16384&&(l=o.tag!==22?Pf():536870912,o.lanes|=l,sl|=l)}function rl(o,l){if(!jt)switch(o.tailMode){case"hidden":l=o.tail;for(var d=null;l!==null;)l.alternate!==null&&(d=l),l=l.sibling;d===null?o.tail=null:d.sibling=null;break;case"collapsed":d=o.tail;for(var m=null;d!==null;)d.alternate!==null&&(m=d),d=d.sibling;m===null?l||o.tail===null?o.tail=null:o.tail.sibling=null:m.sibling=null}}function Mn(o){var l=o.alternate!==null&&o.alternate.child===o.child,d=0,m=0;if(l)for(var b=o.child;b!==null;)d|=b.lanes|b.childLanes,m|=b.subtreeFlags&65011712,m|=b.flags&65011712,b.return=o,b=b.sibling;else for(b=o.child;b!==null;)d|=b.lanes|b.childLanes,m|=b.subtreeFlags,m|=b.flags,b.return=o,b=b.sibling;return o.subtreeFlags|=m,o.childLanes=d,l}function cv(o,l,d){var m=l.pendingProps;switch(sh(l),l.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Mn(l),null;case 1:return Mn(l),null;case 3:return d=l.stateNode,m=null,o!==null&&(m=o.memoizedState.cache),l.memoizedState.cache!==m&&(l.flags|=2048),pa(Vn),Ci(),d.pendingContext&&(d.context=d.pendingContext,d.pendingContext=null),(o===null||o.child===null)&&(qo(l)?ba(l):o===null||o.memoizedState.isDehydrated&&(l.flags&256)===0||(l.flags|=1024,lh())),Mn(l),null;case 26:var b=l.type,E=l.memoizedState;return o===null?(ba(l),E!==null?(Mn(l),lv(l,E)):(Mn(l),Wh(l,b,null,m,d))):E?E!==o.memoizedState?(ba(l),Mn(l),lv(l,E)):(Mn(l),l.flags&=-16777217):(o=o.memoizedProps,o!==m&&ba(l),Mn(l),Wh(l,b,o,m,d)),null;case 27:if(Of(l),d=Pt.current,b=l.type,o!==null&&l.stateNode!=null)o.memoizedProps!==m&&ba(l);else{if(!m){if(l.stateNode===null)throw Error(A(166));return Mn(l),null}o=Lt.current,qo(l)?vg(l,o):(o=v1(b,m,d),l.stateNode=o,ba(l))}return Mn(l),null;case 5:if(Of(l),b=l.type,o!==null&&l.stateNode!=null)o.memoizedProps!==m&&ba(l);else{if(!m){if(l.stateNode===null)throw Error(A(166));return Mn(l),null}if(E=Lt.current,qo(l))vg(l,E);else{var D=Nd(Pt.current);switch(E){case 1:E=D.createElementNS("http://www.w3.org/2000/svg",b);break;case 2:E=D.createElementNS("http://www.w3.org/1998/Math/MathML",b);break;default:switch(b){case"svg":E=D.createElementNS("http://www.w3.org/2000/svg",b);break;case"math":E=D.createElementNS("http://www.w3.org/1998/Math/MathML",b);break;case"script":E=D.createElement("div"),E.innerHTML="<script><\/script>",E=E.removeChild(E.firstChild);break;case"select":E=typeof m.is=="string"?D.createElement("select",{is:m.is}):D.createElement("select"),m.multiple?E.multiple=!0:m.size&&(E.size=m.size);break;default:E=typeof m.is=="string"?D.createElement(b,{is:m.is}):D.createElement(b)}}E[_r]=l,E[jr]=m;e:for(D=l.child;D!==null;){if(D.tag===5||D.tag===6)E.appendChild(D.stateNode);else if(D.tag!==4&&D.tag!==27&&D.child!==null){D.child.return=D,D=D.child;continue}if(D===l)break e;for(;D.sibling===null;){if(D.return===null||D.return===l)break e;D=D.return}D.sibling.return=D.return,D=D.sibling}l.stateNode=E;e:switch(yr(E,b,m),b){case"button":case"input":case"select":case"textarea":m=!!m.autoFocus;break e;case"img":m=!0;break e;default:m=!1}m&&ba(l)}}return Mn(l),Wh(l,l.type,o===null?null:o.memoizedProps,l.pendingProps,d),null;case 6:if(o&&l.stateNode!=null)o.memoizedProps!==m&&ba(l);else{if(typeof m!="string"&&l.stateNode===null)throw Error(A(166));if(o=Pt.current,qo(l)){if(o=l.stateNode,d=l.memoizedProps,m=null,b=Er,b!==null)switch(b.tag){case 27:case 5:m=b.memoizedProps}o[_r]=l,o=!!(o.nodeValue===d||m!==null&&m.suppressHydrationWarning===!0||Hv(o.nodeValue,d)),o||Ya(l,!0)}else o=Nd(o).createTextNode(m),o[_r]=l,l.stateNode=o}return Mn(l),null;case 31:if(d=l.memoizedState,o===null||o.memoizedState!==null){if(m=qo(l),d!==null){if(o===null){if(!m)throw Error(A(318));if(o=l.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(A(557));o[_r]=l}else js(),(l.flags&128)===0&&(l.memoizedState=null),l.flags|=4;Mn(l),o=!1}else d=lh(),o!==null&&o.memoizedState!==null&&(o.memoizedState.hydrationErrors=d),o=!0;if(!o)return l.flags&256?(Ir(l),l):(Ir(l),null);if((l.flags&128)!==0)throw Error(A(558))}return Mn(l),null;case 13:if(m=l.memoizedState,o===null||o.memoizedState!==null&&o.memoizedState.dehydrated!==null){if(b=qo(l),m!==null&&m.dehydrated!==null){if(o===null){if(!b)throw Error(A(318));if(b=l.memoizedState,b=b!==null?b.dehydrated:null,!b)throw Error(A(317));b[_r]=l}else js(),(l.flags&128)===0&&(l.memoizedState=null),l.flags|=4;Mn(l),b=!1}else b=lh(),o!==null&&o.memoizedState!==null&&(o.memoizedState.hydrationErrors=b),b=!0;if(!b)return l.flags&256?(Ir(l),l):(Ir(l),null)}return Ir(l),(l.flags&128)!==0?(l.lanes=d,l):(d=m!==null,o=o!==null&&o.memoizedState!==null,d&&(m=l.child,b=null,m.alternate!==null&&m.alternate.memoizedState!==null&&m.alternate.memoizedState.cachePool!==null&&(b=m.alternate.memoizedState.cachePool.pool),E=null,m.memoizedState!==null&&m.memoizedState.cachePool!==null&&(E=m.memoizedState.cachePool.pool),E!==b&&(m.flags|=2048)),d!==o&&d&&(l.child.flags|=8192),Uh(l,l.updateQueue),Mn(l),null);case 4:return Ci(),o===null&&Ad(l.stateNode.containerInfo),Mn(l),null;case 10:return pa(l.type),Mn(l),null;case 19:if(Xe(kn),m=l.memoizedState,m===null)return Mn(l),null;if(b=(l.flags&128)!==0,E=m.rendering,E===null)if(b)rl(m,!1);else{if(An!==0||o!==null&&(o.flags&128)!==0)for(o=l.child;o!==null;){if(E=rc(o),E!==null){for(l.flags|=128,rl(m,!1),o=E.updateQueue,l.updateQueue=o,Uh(l,o),l.subtreeFlags=0,o=d,d=l.child;d!==null;)fg(d,o),d=d.sibling;return lt(kn,kn.current&1|2),jt&&fa(l,m.treeForkCount),l.child}o=o.sibling}m.tail!==null&&Yr()>Md&&(l.flags|=128,b=!0,rl(m,!1),l.lanes=4194304)}else{if(!b)if(o=rc(E),o!==null){if(l.flags|=128,b=!0,o=o.updateQueue,l.updateQueue=o,Uh(l,o),rl(m,!0),m.tail===null&&m.tailMode==="hidden"&&!E.alternate&&!jt)return Mn(l),null}else 2*Yr()-m.renderingStartTime>Md&&d!==536870912&&(l.flags|=128,b=!0,rl(m,!1),l.lanes=4194304);m.isBackwards?(E.sibling=l.child,l.child=E):(o=m.last,o!==null?o.sibling=E:l.child=E,m.last=E)}return m.tail!==null?(o=m.tail,m.rendering=o,m.tail=o.sibling,m.renderingStartTime=Yr(),o.sibling=null,d=kn.current,lt(kn,b?d&1|2:d&1),jt&&fa(l,m.treeForkCount),o):(Mn(l),null);case 22:case 23:return Ir(l),gi(),m=l.memoizedState!==null,o!==null?o.memoizedState!==null!==m&&(l.flags|=8192):m&&(l.flags|=8192),m?(d&536870912)!==0&&(l.flags&128)===0&&(Mn(l),l.subtreeFlags&6&&(l.flags|=8192)):Mn(l),d=l.updateQueue,d!==null&&Uh(l,d.retryQueue),d=null,o!==null&&o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(d=o.memoizedState.cachePool.pool),m=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(m=l.memoizedState.cachePool.pool),m!==d&&(l.flags|=2048),o!==null&&Xe(Wa),null;case 24:return d=null,o!==null&&(d=o.memoizedState.cache),l.memoizedState.cache!==d&&(l.flags|=2048),pa(Vn),Mn(l),null;case 25:return null;case 30:return null}throw Error(A(156,l.tag))}function mc(o,l){switch(sh(l),l.tag){case 1:return o=l.flags,o&65536?(l.flags=o&-65537|128,l):null;case 3:return pa(Vn),Ci(),o=l.flags,(o&65536)!==0&&(o&128)===0?(l.flags=o&-65537|128,l):null;case 26:case 27:case 5:return Of(l),null;case 31:if(l.memoizedState!==null){if(Ir(l),l.alternate===null)throw Error(A(340));js()}return o=l.flags,o&65536?(l.flags=o&-65537|128,l):null;case 13:if(Ir(l),o=l.memoizedState,o!==null&&o.dehydrated!==null){if(l.alternate===null)throw Error(A(340));js()}return o=l.flags,o&65536?(l.flags=o&-65537|128,l):null;case 19:return Xe(kn),null;case 4:return Ci(),null;case 10:return pa(l.type),null;case 22:case 23:return Ir(l),gi(),o!==null&&Xe(Wa),o=l.flags,o&65536?(l.flags=o&-65537|128,l):null;case 24:return pa(Vn),null;case 25:return null;default:return null}}function qb(o,l){switch(sh(l),l.tag){case 3:pa(Vn),Ci();break;case 26:case 27:case 5:Of(l);break;case 4:Ci();break;case 31:l.memoizedState!==null&&Ir(l);break;case 13:Ir(l);break;case 19:Xe(kn);break;case 10:pa(l.type);break;case 22:case 23:Ir(l),gi(),o!==null&&Xe(Wa);break;case 24:pa(Vn)}}function gc(o,l){try{var d=l.updateQueue,m=d!==null?d.lastEffect:null;if(m!==null){var b=m.next;d=b;do{if((d.tag&o)===o){m=void 0;var E=d.create,D=d.inst;m=E(),D.destroy=m}d=d.next}while(d!==b)}}catch(N){cn(l,l.return,N)}}function _a(o,l,d){try{var m=l.updateQueue,b=m!==null?m.lastEffect:null;if(b!==null){var E=b.next;m=E;do{if((m.tag&o)===o){var D=m.inst,N=D.destroy;if(N!==void 0){D.destroy=void 0,b=l;var Z=d,le=N;try{le()}catch(we){cn(b,Z,we)}}}m=m.next}while(m!==E)}}catch(we){cn(l,l.return,we)}}function $b(o){var l=o.updateQueue;if(l!==null){var d=o.stateNode;try{Qs(l,d)}catch(m){cn(o,o.return,m)}}}function qh(o,l,d){d.props=nl(o.type,o.memoizedProps),d.state=o.memoizedState;try{d.componentWillUnmount()}catch(m){cn(o,l,m)}}function vc(o,l){try{var d=o.ref;if(d!==null){switch(o.tag){case 26:case 27:case 5:var m=o.stateNode;break;case 30:m=o.stateNode;break;default:m=o.stateNode}typeof d=="function"?o.refCleanup=d(m):d.current=m}}catch(b){cn(o,l,b)}}function Nn(o,l){var d=o.ref,m=o.refCleanup;if(d!==null)if(typeof m=="function")try{m()}catch(b){cn(o,l,b)}finally{o.refCleanup=null,o=o.alternate,o!=null&&(o.refCleanup=null)}else if(typeof d=="function")try{d(null)}catch(b){cn(o,l,b)}else d.current=null}function uv(o){var l=o.type,d=o.memoizedProps,m=o.stateNode;try{e:switch(l){case"button":case"input":case"select":case"textarea":d.autoFocus&&m.focus();break e;case"img":d.src?m.src=d.src:d.srcSet&&(m.srcset=d.srcSet)}}catch(b){cn(o,o.return,b)}}function $h(o,l,d){try{var m=o.stateNode;d1(m,o.type,d,l),m[jr]=l}catch(b){cn(o,o.return,b)}}function Gh(o){return o.tag===5||o.tag===3||o.tag===26||o.tag===27&&co(o.type)||o.tag===4}function Zh(o){e:for(;;){for(;o.sibling===null;){if(o.return===null||Gh(o.return))return null;o=o.return}for(o.sibling.return=o.return,o=o.sibling;o.tag!==5&&o.tag!==6&&o.tag!==18;){if(o.tag===27&&co(o.type)||o.flags&2||o.child===null||o.tag===4)continue e;o.child.return=o,o=o.child}if(!(o.flags&2))return o.stateNode}}function Ed(o,l,d){var m=o.tag;if(m===5||m===6)o=o.stateNode,l?(d.nodeType===9?d.body:d.nodeName==="HTML"?d.ownerDocument.body:d).insertBefore(o,l):(l=d.nodeType===9?d.body:d.nodeName==="HTML"?d.ownerDocument.body:d,l.appendChild(o),d=d._reactRootContainer,d!=null||l.onclick!==null||(l.onclick=ca));else if(m!==4&&(m===27&&co(o.type)&&(d=o.stateNode,l=null),o=o.child,o!==null))for(Ed(o,l,d),o=o.sibling;o!==null;)Ed(o,l,d),o=o.sibling}function Xh(o,l,d){var m=o.tag;if(m===5||m===6)o=o.stateNode,l?d.insertBefore(o,l):d.appendChild(o);else if(m!==4&&(m===27&&co(o.type)&&(d=o.stateNode),o=o.child,o!==null))for(Xh(o,l,d),o=o.sibling;o!==null;)Xh(o,l,d),o=o.sibling}function dv(o){var l=o.stateNode,d=o.memoizedProps;try{for(var m=o.type,b=l.attributes;b.length;)l.removeAttributeNode(b[0]);yr(l,m,d),l[_r]=o,l[jr]=d}catch(E){cn(o,o.return,E)}}var Ai=!1,Wn=!1,xd=!1,yc=typeof WeakSet=="function"?WeakSet:Set,lr=null;function Gb(o,l){if(o=o.containerInfo,mp=Sp,o=In(o),Pu(o)){if("selectionStart"in o)var d={start:o.selectionStart,end:o.selectionEnd};else e:{d=(d=o.ownerDocument)&&d.defaultView||window;var m=d.getSelection&&d.getSelection();if(m&&m.rangeCount!==0){d=m.anchorNode;var b=m.anchorOffset,E=m.focusNode;m=m.focusOffset;try{d.nodeType,E.nodeType}catch{d=null;break e}var D=0,N=-1,Z=-1,le=0,we=0,De=o,ce=null;t:for(;;){for(var fe;De!==d||b!==0&&De.nodeType!==3||(N=D+b),De!==E||m!==0&&De.nodeType!==3||(Z=D+m),De.nodeType===3&&(D+=De.nodeValue.length),(fe=De.firstChild)!==null;)ce=De,De=fe;for(;;){if(De===o)break t;if(ce===d&&++le===b&&(N=D),ce===E&&++we===m&&(Z=D),(fe=De.nextSibling)!==null)break;De=ce,ce=De.parentNode}De=fe}d=N===-1||Z===-1?null:{start:N,end:Z}}else d=null}d=d||{start:0,end:0}}else d=null;for(Fv={focusedElem:o,selectionRange:d},Sp=!1,lr=l;lr!==null;)if(l=lr,o=l.child,(l.subtreeFlags&1028)!==0&&o!==null)o.return=l,lr=o;else for(;lr!==null;){switch(l=lr,E=l.alternate,o=l.flags,l.tag){case 0:if((o&4)!==0&&(o=l.updateQueue,o=o!==null?o.events:null,o!==null))for(d=0;d<o.length;d++)b=o[d],b.ref.impl=b.nextImpl;break;case 11:case 15:break;case 1:if((o&1024)!==0&&E!==null){o=void 0,d=l,b=E.memoizedProps,E=E.memoizedState,m=d.stateNode;try{var et=nl(d.type,b);o=m.getSnapshotBeforeUpdate(et,E),m.__reactInternalSnapshotBeforeUpdate=o}catch(yt){cn(d,d.return,yt)}}break;case 3:if((o&1024)!==0){if(o=l.stateNode.containerInfo,d=o.nodeType,d===9)uo(o);else if(d===1)switch(o.nodeName){case"HEAD":case"HTML":case"BODY":uo(o);break;default:o.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((o&1024)!==0)throw Error(A(163))}if(o=l.sibling,o!==null){o.return=l.return,lr=o;break}lr=l.return}}function bc(o,l,d){var m=d.flags;switch(d.tag){case 0:case 11:case 15:wa(o,d),m&4&&gc(5,d);break;case 1:if(wa(o,d),m&4)if(o=d.stateNode,l===null)try{o.componentDidMount()}catch(D){cn(d,d.return,D)}else{var b=nl(d.type,l.memoizedProps);l=l.memoizedState;try{o.componentDidUpdate(b,l,o.__reactInternalSnapshotBeforeUpdate)}catch(D){cn(d,d.return,D)}}m&64&&$b(d),m&512&&vc(d,d.return);break;case 3:if(wa(o,d),m&64&&(o=d.updateQueue,o!==null)){if(l=null,d.child!==null)switch(d.child.tag){case 27:case 5:l=d.child.stateNode;break;case 1:l=d.child.stateNode}try{Qs(o,l)}catch(D){cn(d,d.return,D)}}break;case 27:l===null&&m&4&&dv(d);case 26:case 5:wa(o,d),l===null&&m&4&&uv(d),m&512&&vc(d,d.return);break;case 12:wa(o,d);break;case 31:wa(o,d),m&4&&Zb(o,d);break;case 13:wa(o,d),m&4&&hv(o,d),m&64&&(o=d.memoizedState,o!==null&&(o=o.dehydrated,o!==null&&(d=n1.bind(null,d),ls(o,d))));break;case 22:if(m=d.memoizedState!==null||Ai,!m){l=l!==null&&l.memoizedState!==null||Wn,b=Ai;var E=Wn;Ai=m,(Wn=l)&&!E?Ea(o,d,(d.subtreeFlags&8772)!==0):wa(o,d),Ai=b,Wn=E}break;case 30:break;default:wa(o,d)}}function _c(o){var l=o.alternate;l!==null&&(o.alternate=null,_c(l)),o.child=null,o.deletions=null,o.sibling=null,o.tag===5&&(l=o.stateNode,l!==null&&Wi(l)),o.stateNode=null,o.return=null,o.dependencies=null,o.memoizedProps=null,o.memoizedState=null,o.pendingProps=null,o.stateNode=null,o.updateQueue=null}var Ln=null,Un=!1;function ts(o,l,d){for(d=d.child;d!==null;)fv(o,l,d),d=d.sibling}function fv(o,l,d){if(At&&typeof At.onCommitFiberUnmount=="function")try{At.onCommitFiberUnmount(Eu,d)}catch{}switch(d.tag){case 26:Wn||Nn(d,l),ts(o,l,d),d.memoizedState?d.memoizedState.count--:d.stateNode&&(d=d.stateNode,d.parentNode.removeChild(d));break;case 27:Wn||Nn(d,l);var m=Ln,b=Un;co(d.type)&&(Ln=d.stateNode,Un=!1),ts(o,l,d),fo(d.stateNode),Ln=m,Un=b;break;case 5:Wn||Nn(d,l);case 6:if(m=Ln,b=Un,Ln=null,ts(o,l,d),Ln=m,Un=b,Ln!==null)if(Un)try{(Ln.nodeType===9?Ln.body:Ln.nodeName==="HTML"?Ln.ownerDocument.body:Ln).removeChild(d.stateNode)}catch(E){cn(d,l,E)}else try{Ln.removeChild(d.stateNode)}catch(E){cn(d,l,E)}break;case 18:Ln!==null&&(Un?(o=Ln,qn(o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o,d.stateNode),jc(o)):qn(Ln,d.stateNode));break;case 4:m=Ln,b=Un,Ln=d.stateNode.containerInfo,Un=!0,ts(o,l,d),Ln=m,Un=b;break;case 0:case 11:case 14:case 15:_a(2,d,l),Wn||_a(4,d,l),ts(o,l,d);break;case 1:Wn||(Nn(d,l),m=d.stateNode,typeof m.componentWillUnmount=="function"&&qh(d,l,m)),ts(o,l,d);break;case 21:ts(o,l,d);break;case 22:Wn=(m=Wn)||d.memoizedState!==null,ts(o,l,d),Wn=m;break;default:ts(o,l,d)}}function Zb(o,l){if(l.memoizedState===null&&(o=l.alternate,o!==null&&(o=o.memoizedState,o!==null))){o=o.dehydrated;try{jc(o)}catch(d){cn(l,l.return,d)}}}function hv(o,l){if(l.memoizedState===null&&(o=l.alternate,o!==null&&(o=o.memoizedState,o!==null&&(o=o.dehydrated,o!==null))))try{jc(o)}catch(d){cn(l,l.return,d)}}function EE(o){switch(o.tag){case 31:case 13:case 19:var l=o.stateNode;return l===null&&(l=o.stateNode=new yc),l;case 22:return o=o.stateNode,l=o._retryCache,l===null&&(l=o._retryCache=new yc),l;default:throw Error(A(435,o.tag))}}function Qh(o,l){var d=EE(o);l.forEach(function(m){if(!d.has(m)){d.add(m);var b=kv.bind(null,o,m);m.then(b,b)}})}function qr(o,l){var d=l.deletions;if(d!==null)for(var m=0;m<d.length;m++){var b=d[m],E=o,D=l,N=D;e:for(;N!==null;){switch(N.tag){case 27:if(co(N.type)){Ln=N.stateNode,Un=!1;break e}break;case 5:Ln=N.stateNode,Un=!1;break e;case 3:case 4:Ln=N.stateNode.containerInfo,Un=!0;break e}N=N.return}if(Ln===null)throw Error(A(160));fv(E,D,b),Ln=null,Un=!1,E=b.alternate,E!==null&&(E.return=null),b.return=null}if(l.subtreeFlags&13886)for(l=l.child;l!==null;)wc(l,o),l=l.sibling}var ni=null;function wc(o,l){var d=o.alternate,m=o.flags;switch(o.tag){case 0:case 11:case 14:case 15:qr(l,o),Br(o),m&4&&(_a(3,o,o.return),gc(3,o),_a(5,o,o.return));break;case 1:qr(l,o),Br(o),m&512&&(Wn||d===null||Nn(d,d.return)),m&64&&Ai&&(o=o.updateQueue,o!==null&&(m=o.callbacks,m!==null&&(d=o.shared.hiddenCallbacks,o.shared.hiddenCallbacks=d===null?m:d.concat(m))));break;case 26:var b=ni;if(qr(l,o),Br(o),m&512&&(Wn||d===null||Nn(d,d.return)),m&4){var E=d!==null?d.memoizedState:null;if(m=o.memoizedState,d===null)if(m===null)if(o.stateNode===null){e:{m=o.type,d=o.memoizedProps,b=b.ownerDocument||b;t:switch(m){case"title":E=b.getElementsByTagName("title")[0],(!E||E[Ba]||E[_r]||E.namespaceURI==="http://www.w3.org/2000/svg"||E.hasAttribute("itemprop"))&&(E=b.createElement(m),b.head.insertBefore(E,b.querySelector("head > title"))),yr(E,m,d),E[_r]=o,wr(E),m=E;break e;case"link":var D=Kv("link","href",b).get(m+(d.href||""));if(D){for(var N=0;N<D.length;N++)if(E=D[N],E.getAttribute("href")===(d.href==null||d.href===""?null:d.href)&&E.getAttribute("rel")===(d.rel==null?null:d.rel)&&E.getAttribute("title")===(d.title==null?null:d.title)&&E.getAttribute("crossorigin")===(d.crossOrigin==null?null:d.crossOrigin)){D.splice(N,1);break t}}E=b.createElement(m),yr(E,m,d),b.head.appendChild(E);break;case"meta":if(D=Kv("meta","content",b).get(m+(d.content||""))){for(N=0;N<D.length;N++)if(E=D[N],E.getAttribute("content")===(d.content==null?null:""+d.content)&&E.getAttribute("name")===(d.name==null?null:d.name)&&E.getAttribute("property")===(d.property==null?null:d.property)&&E.getAttribute("http-equiv")===(d.httpEquiv==null?null:d.httpEquiv)&&E.getAttribute("charset")===(d.charSet==null?null:d.charSet)){D.splice(N,1);break t}}E=b.createElement(m),yr(E,m,d),b.head.appendChild(E);break;default:throw Error(A(468,m))}E[_r]=o,wr(E),m=E}o.stateNode=m}else S1(b,o.type,o.stateNode);else o.stateNode=x1(b,m,o.memoizedProps);else E!==m?(E===null?d.stateNode!==null&&(d=d.stateNode,d.parentNode.removeChild(d)):E.count--,m===null?S1(b,o.type,o.stateNode):x1(b,m,o.memoizedProps)):m===null&&o.stateNode!==null&&$h(o,o.memoizedProps,d.memoizedProps)}break;case 27:qr(l,o),Br(o),m&512&&(Wn||d===null||Nn(d,d.return)),d!==null&&m&4&&$h(o,o.memoizedProps,d.memoizedProps);break;case 5:if(qr(l,o),Br(o),m&512&&(Wn||d===null||Nn(d,d.return)),o.flags&32){b=o.stateNode;try{Bs(b,"")}catch(et){cn(o,o.return,et)}}m&4&&o.stateNode!=null&&(b=o.memoizedProps,$h(o,b,d!==null?d.memoizedProps:b)),m&1024&&(xd=!0);break;case 6:if(qr(l,o),Br(o),m&4){if(o.stateNode===null)throw Error(A(162));m=o.memoizedProps,d=o.stateNode;try{d.nodeValue=m}catch(et){cn(o,o.return,et)}}break;case 3:if(wp=null,b=ni,ni=Nc(l.containerInfo),qr(l,o),ni=b,Br(o),m&4&&d!==null&&d.memoizedState.isDehydrated)try{jc(l.containerInfo)}catch(et){cn(o,o.return,et)}xd&&(xd=!1,pv(o));break;case 4:m=ni,ni=Nc(o.stateNode.containerInfo),qr(l,o),Br(o),ni=m;break;case 12:qr(l,o),Br(o);break;case 31:qr(l,o),Br(o),m&4&&(m=o.updateQueue,m!==null&&(o.updateQueue=null,Qh(o,m)));break;case 13:qr(l,o),Br(o),o.child.flags&8192&&o.memoizedState!==null!=(d!==null&&d.memoizedState!==null)&&(Td=Yr()),m&4&&(m=o.updateQueue,m!==null&&(o.updateQueue=null,Qh(o,m)));break;case 22:b=o.memoizedState!==null;var Z=d!==null&&d.memoizedState!==null,le=Ai,we=Wn;if(Ai=le||b,Wn=we||Z,qr(l,o),Wn=we,Ai=le,Br(o),m&8192)e:for(l=o.stateNode,l._visibility=b?l._visibility&-2:l._visibility|1,b&&(d===null||Z||Ai||Wn||il(o)),d=null,l=o;;){if(l.tag===5||l.tag===26){if(d===null){Z=d=l;try{if(E=Z.stateNode,b)D=E.style,typeof D.setProperty=="function"?D.setProperty("display","none","important"):D.display="none";else{N=Z.stateNode;var De=Z.memoizedProps.style,ce=De!=null&&De.hasOwnProperty("display")?De.display:null;N.style.display=ce==null||typeof ce=="boolean"?"":(""+ce).trim()}}catch(et){cn(Z,Z.return,et)}}}else if(l.tag===6){if(d===null){Z=l;try{Z.stateNode.nodeValue=b?"":Z.memoizedProps}catch(et){cn(Z,Z.return,et)}}}else if(l.tag===18){if(d===null){Z=l;try{var fe=Z.stateNode;b?p1(fe,!0):p1(Z.stateNode,!1)}catch(et){cn(Z,Z.return,et)}}}else if((l.tag!==22&&l.tag!==23||l.memoizedState===null||l===o)&&l.child!==null){l.child.return=l,l=l.child;continue}if(l===o)break e;for(;l.sibling===null;){if(l.return===null||l.return===o)break e;d===l&&(d=null),l=l.return}d===l&&(d=null),l.sibling.return=l.return,l=l.sibling}m&4&&(m=o.updateQueue,m!==null&&(d=m.retryQueue,d!==null&&(m.retryQueue=null,Qh(o,d))));break;case 19:qr(l,o),Br(o),m&4&&(m=o.updateQueue,m!==null&&(o.updateQueue=null,Qh(o,m)));break;case 30:break;case 21:break;default:qr(l,o),Br(o)}}function Br(o){var l=o.flags;if(l&2){try{for(var d,m=o.return;m!==null;){if(Gh(m)){d=m;break}m=m.return}if(d==null)throw Error(A(160));switch(d.tag){case 27:var b=d.stateNode,E=Zh(o);Xh(o,E,b);break;case 5:var D=d.stateNode;d.flags&32&&(Bs(D,""),d.flags&=-33);var N=Zh(o);Xh(o,N,D);break;case 3:case 4:var Z=d.stateNode.containerInfo,le=Zh(o);Ed(o,le,Z);break;default:throw Error(A(161))}}catch(we){cn(o,o.return,we)}o.flags&=-3}l&4096&&(o.flags&=-4097)}function pv(o){if(o.subtreeFlags&1024)for(o=o.child;o!==null;){var l=o;pv(l),l.tag===5&&l.flags&1024&&l.stateNode.reset(),o=o.sibling}}function wa(o,l){if(l.subtreeFlags&8772)for(l=l.child;l!==null;)bc(o,l.alternate,l),l=l.sibling}function il(o){for(o=o.child;o!==null;){var l=o;switch(l.tag){case 0:case 11:case 14:case 15:_a(4,l,l.return),il(l);break;case 1:Nn(l,l.return);var d=l.stateNode;typeof d.componentWillUnmount=="function"&&qh(l,l.return,d),il(l);break;case 27:fo(l.stateNode);case 26:case 5:Nn(l,l.return),il(l);break;case 22:l.memoizedState===null&&il(l);break;case 30:il(l);break;default:il(l)}o=o.sibling}}function Ea(o,l,d){for(d=d&&(l.subtreeFlags&8772)!==0,l=l.child;l!==null;){var m=l.alternate,b=o,E=l,D=E.flags;switch(E.tag){case 0:case 11:case 15:Ea(b,E,d),gc(4,E);break;case 1:if(Ea(b,E,d),m=E,b=m.stateNode,typeof b.componentDidMount=="function")try{b.componentDidMount()}catch(le){cn(m,m.return,le)}if(m=E,b=m.updateQueue,b!==null){var N=m.stateNode;try{var Z=b.shared.hiddenCallbacks;if(Z!==null)for(b.shared.hiddenCallbacks=null,b=0;b<Z.length;b++)tc(Z[b],N)}catch(le){cn(m,m.return,le)}}d&&D&64&&$b(E),vc(E,E.return);break;case 27:dv(E);case 26:case 5:Ea(b,E,d),d&&m===null&&D&4&&uv(E),vc(E,E.return);break;case 12:Ea(b,E,d);break;case 31:Ea(b,E,d),d&&D&4&&Zb(b,E);break;case 13:Ea(b,E,d),d&&D&4&&hv(b,E);break;case 22:E.memoizedState===null&&Ea(b,E,d),vc(E,E.return);break;case 30:break;default:Ea(b,E,d)}l=l.sibling}}function mv(o,l){var d=null;o!==null&&o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(d=o.memoizedState.cachePool.pool),o=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(o=l.memoizedState.cachePool.pool),o!==d&&(o!=null&&o.refCount++,d!=null&&Gi(d))}function Kh(o,l){o=null,l.alternate!==null&&(o=l.alternate.memoizedState.cache),l=l.memoizedState.cache,l!==o&&(l.refCount++,o!=null&&Gi(o))}function Xi(o,l,d,m){if(l.subtreeFlags&10256)for(l=l.child;l!==null;)Jh(o,l,d,m),l=l.sibling}function Jh(o,l,d,m){var b=l.flags;switch(l.tag){case 0:case 11:case 15:Xi(o,l,d,m),b&2048&&gc(9,l);break;case 1:Xi(o,l,d,m);break;case 3:Xi(o,l,d,m),b&2048&&(o=null,l.alternate!==null&&(o=l.alternate.memoizedState.cache),l=l.memoizedState.cache,l!==o&&(l.refCount++,o!=null&&Gi(o)));break;case 12:if(b&2048){Xi(o,l,d,m),o=l.stateNode;try{var E=l.memoizedProps,D=E.id,N=E.onPostCommit;typeof N=="function"&&N(D,l.alternate===null?"mount":"update",o.passiveEffectDuration,-0)}catch(Z){cn(l,l.return,Z)}}else Xi(o,l,d,m);break;case 31:Xi(o,l,d,m);break;case 13:Xi(o,l,d,m);break;case 23:break;case 22:E=l.stateNode,D=l.alternate,l.memoizedState!==null?E._visibility&2?Xi(o,l,d,m):Sd(o,l):E._visibility&2?Xi(o,l,d,m):(E._visibility|=2,ns(o,l,d,m,(l.subtreeFlags&10256)!==0||!1)),b&2048&&mv(D,l);break;case 24:Xi(o,l,d,m),b&2048&&Kh(l.alternate,l);break;default:Xi(o,l,d,m)}}function ns(o,l,d,m,b){for(b=b&&((l.subtreeFlags&10256)!==0||!1),l=l.child;l!==null;){var E=o,D=l,N=d,Z=m,le=D.flags;switch(D.tag){case 0:case 11:case 15:ns(E,D,N,Z,b),gc(8,D);break;case 23:break;case 22:var we=D.stateNode;D.memoizedState!==null?we._visibility&2?ns(E,D,N,Z,b):Sd(E,D):(we._visibility|=2,ns(E,D,N,Z,b)),b&&le&2048&&mv(D.alternate,D);break;case 24:ns(E,D,N,Z,b),b&&le&2048&&Kh(D.alternate,D);break;default:ns(E,D,N,Z,b)}l=l.sibling}}function Sd(o,l){if(l.subtreeFlags&10256)for(l=l.child;l!==null;){var d=o,m=l,b=m.flags;switch(m.tag){case 22:Sd(d,m),b&2048&&mv(m.alternate,m);break;case 24:Sd(d,m),b&2048&&Kh(m.alternate,m);break;default:Sd(d,m)}l=l.sibling}}var Ec=8192;function al(o,l,d){if(o.subtreeFlags&Ec)for(o=o.child;o!==null;)gv(o,l,d),o=o.sibling}function gv(o,l,d){switch(o.tag){case 26:al(o,l,d),o.flags&Ec&&o.memoizedState!==null&&Hd(d,ni,o.memoizedState,o.memoizedProps);break;case 5:al(o,l,d);break;case 3:case 4:var m=ni;ni=Nc(o.stateNode.containerInfo),al(o,l,d),ni=m;break;case 22:o.memoizedState===null&&(m=o.alternate,m!==null&&m.memoizedState!==null?(m=Ec,Ec=16777216,al(o,l,d),Ec=m):al(o,l,d));break;default:al(o,l,d)}}function xa(o){var l=o.alternate;if(l!==null&&(o=l.child,o!==null)){l.child=null;do l=o.sibling,o.sibling=null,o=l;while(o!==null)}}function xc(o){var l=o.deletions;if((o.flags&16)!==0){if(l!==null)for(var d=0;d<l.length;d++){var m=l[d];lr=m,vv(m,o)}xa(o)}if(o.subtreeFlags&10256)for(o=o.child;o!==null;)xn(o),o=o.sibling}function xn(o){switch(o.tag){case 0:case 11:case 15:xc(o),o.flags&2048&&_a(9,o,o.return);break;case 3:xc(o);break;case 12:xc(o);break;case 22:var l=o.stateNode;o.memoizedState!==null&&l._visibility&2&&(o.return===null||o.return.tag!==13)?(l._visibility&=-3,Cd(o)):xc(o);break;default:xc(o)}}function Cd(o){var l=o.deletions;if((o.flags&16)!==0){if(l!==null)for(var d=0;d<l.length;d++){var m=l[d];lr=m,vv(m,o)}xa(o)}for(o=o.child;o!==null;){switch(l=o,l.tag){case 0:case 11:case 15:_a(8,l,l.return),Cd(l);break;case 22:d=l.stateNode,d._visibility&2&&(d._visibility&=-3,Cd(l));break;default:Cd(l)}o=o.sibling}}function vv(o,l){for(;lr!==null;){var d=lr;switch(d.tag){case 0:case 11:case 15:_a(8,d,l);break;case 23:case 22:if(d.memoizedState!==null&&d.memoizedState.cachePool!==null){var m=d.memoizedState.cachePool.pool;m!=null&&m.refCount++}break;case 24:Gi(d.memoizedState.cache)}if(m=d.child,m!==null)m.return=d,lr=m;else e:for(d=o;lr!==null;){m=lr;var b=m.sibling,E=m.return;if(_c(m),m===d){lr=null;break e}if(b!==null){b.return=E,lr=b;break e}lr=E}}}var yv={getCacheForType:function(o){var l=xr(Vn),d=l.data.get(o);return d===void 0&&(d=o(),l.data.set(o,d)),d},cacheSignal:function(){return xr(Vn).controller.signal}},_t=typeof WeakMap=="function"?WeakMap:Map,en=0,vn=null,vt=null,Ht=0,ln=0,ri=null,rs=!1,yi=!1,ep=!1,ii=0,An=0,is=0,no=0,tp=0,ai=0,sl=0,Sc=null,$r=null,bv=!1,Td=0,Xb=0,Md=1/0,np=null,as=null,mr=0,ss=null,ol=null,Qi=0,rp=0,_v=null,wv=null,Dd=0,ip=null;function gr(){return(en&2)!==0&&Ht!==0?Ht&-Ht:Ue.T!==null?lp():Bf()}function Cc(){if(ai===0)if((Ht&536870912)===0||jt){var o=xu;xu<<=1,(xu&3932160)===0&&(xu=262144),ai=o}else ai=536870912;return o=Qn.current,o!==null&&(o.flags|=32),ai}function Dr(o,l,d){(o===vn&&(ln===2||ln===9)||o.cancelPendingCommit!==null)&&(io(o,0),Sa(o,Ht,ai,!1)),Pl(o,d),((en&2)===0||o!==vn)&&(o===vn&&((en&2)===0&&(no|=d),An===4&&Sa(o,Ht,ai,!1)),Ki(o))}function Qb(o,l,d){if((en&6)!==0)throw Error(A(327));var m=!d&&(l&127)===0&&(l&o.expiredLanes)===0||Lo(o,l),b=m?Jb(o,l):ap(o,l,!0),E=m;do{if(b===0){yi&&!m&&Sa(o,l,0,!1);break}else{if(d=o.current.alternate,E&&!xv(d)){b=ap(o,l,!1),E=!1;continue}if(b===2){if(E=l,o.errorRecoveryDisabledLanes&E)var D=0;else D=o.pendingLanes&-536870913,D=D!==0?D:D&536870912?536870912:0;if(D!==0){l=D;e:{var N=o;b=Sc;var Z=N.current.memoizedState.isDehydrated;if(Z&&(io(N,D).flags|=256),D=ap(N,D,!1),D!==2){if(ep&&!Z){N.errorRecoveryDisabledLanes|=E,no|=E,b=4;break e}E=$r,$r=b,E!==null&&($r===null?$r=E:$r.push.apply($r,E))}b=D}if(E=!1,b!==2)continue}}if(b===1){io(o,0),Sa(o,l,0,!0);break}e:{switch(m=o,E=b,E){case 0:case 1:throw Error(A(345));case 4:if((l&4194048)!==l)break;case 6:Sa(m,l,ai,!rs);break e;case 2:$r=null;break;case 3:case 5:break;default:throw Error(A(329))}if((l&62914560)===l&&(b=Td+300-Yr(),10<b)){if(Sa(m,l,ai,!rs),Nl(m,0,!0)!==0)break e;Qi=l,m.timeoutHandle=jv(Ev.bind(null,m,d,$r,np,bv,l,ai,no,sl,rs,E,"Throttled",-0,0),b);break e}Ev(m,d,$r,np,bv,l,ai,no,sl,rs,E,null,-0,0)}}break}while(!0);Ki(o)}function Ev(o,l,d,m,b,E,D,N,Z,le,we,De,ce,fe){if(o.timeoutHandle=-1,De=l.subtreeFlags,De&8192||(De&16785408)===16785408){De={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:ca},gv(l,E,De);var et=(E&62914560)===E?Td-Yr():(E&4194048)===E?Xb-Yr():0;if(et=TE(De,et),et!==null){Qi=E,o.cancelPendingCommit=et(Mv.bind(null,o,l,E,d,m,b,D,N,Z,we,De,null,ce,fe)),Sa(o,E,D,!le);return}}Mv(o,l,E,d,m,b,D,N,Z)}function xv(o){for(var l=o;;){var d=l.tag;if((d===0||d===11||d===15)&&l.flags&16384&&(d=l.updateQueue,d!==null&&(d=d.stores,d!==null)))for(var m=0;m<d.length;m++){var b=d[m],E=b.getSnapshot;b=b.value;try{if(!Xn(E(),b))return!1}catch{return!1}}if(d=l.child,l.subtreeFlags&16384&&d!==null)d.return=l,l=d;else{if(l===o)break;for(;l.sibling===null;){if(l.return===null||l.return===o)return!0;l=l.return}l.sibling.return=l.return,l=l.sibling}}return!0}function Sa(o,l,d,m){l&=~tp,l&=~no,o.suspendedLanes|=l,o.pingedLanes&=~l,m&&(o.warmLanes|=l),m=o.expirationTimes;for(var b=l;0<b;){var E=31-Tr(b),D=1<<E;m[E]=-1,b&=~D}d!==0&&Fm(o,d,l)}function ro(){return(en&6)===0?(kc(0,!1),!1):!0}function ll(){if(vt!==null){if(ln===0)var o=vt.return;else o=vt,ha=Ws=null,xh(o),Xo=null,ec=0,o=vt;for(;o!==null;)qb(o.alternate,o),o=o.return;vt=null}}function io(o,l){var d=o.timeoutHandle;d!==-1&&(o.timeoutHandle=-1,xE(d)),d=o.cancelPendingCommit,d!==null&&(o.cancelPendingCommit=null,d()),Qi=0,ll(),vn=o,vt=d=da(o.current,null),Ht=l,ln=0,ri=null,rs=!1,yi=Lo(o,l),ep=!1,sl=ai=tp=no=is=An=0,$r=Sc=null,bv=!1,(l&8)!==0&&(l|=l&32);var m=o.entangledLanes;if(m!==0)for(o=o.entanglements,m&=l;0<m;){var b=31-Tr(m),E=1<<b;l|=o[b],m&=~E}return ii=l,Vu(),d}function Tc(o,l){Mt=null,Ue.H=cc,l===Go||l===Zu?(l=Sg(),ln=3):l===gh?(l=Sg(),ln=4):ln=l===pd?8:l!==null&&typeof l=="object"&&typeof l.then=="function"?6:1,ri=l,vt===null&&(An=1,fd(o,di(l,o.current)))}function Sv(){var o=Qn.current;return o===null?!0:(Ht&4194048)===Ht?Ur===null:(Ht&62914560)===Ht||(Ht&536870912)!==0?o===Ur:!1}function Cv(){var o=Ue.H;return Ue.H=cc,o===null?cc:o}function ao(){var o=Ue.A;return Ue.A=yv,o}function cl(){An=4,rs||(Ht&4194048)!==Ht&&Qn.current!==null||(yi=!0),(is&134217727)===0&&(no&134217727)===0||vn===null||Sa(vn,Ht,ai,!1)}function ap(o,l,d){var m=en;en|=2;var b=Cv(),E=ao();(vn!==o||Ht!==l)&&(np=null,io(o,l)),l=!1;var D=An;e:do try{if(ln!==0&&vt!==null){var N=vt,Z=ri;switch(ln){case 8:ll(),D=6;break e;case 3:case 2:case 9:case 6:Qn.current===null&&(l=!0);var le=ln;if(ln=0,ri=null,ul(o,N,Z,le),d&&yi){D=0;break e}break;default:le=ln,ln=0,ri=null,ul(o,N,Z,le)}}Kb(),D=An;break}catch(we){Tc(o,we)}while(!0);return l&&o.shellSuspendCounter++,ha=Ws=null,en=m,Ue.H=b,Ue.A=E,vt===null&&(vn=null,Ht=0,Vu()),D}function Kb(){for(;vt!==null;)Tv(vt)}function Jb(o,l){var d=en;en|=2;var m=Cv(),b=ao();vn!==o||Ht!==l?(np=null,Md=Yr()+500,io(o,l)):yi=Lo(o,l);e:do try{if(ln!==0&&vt!==null){l=vt;var E=ri;t:switch(ln){case 1:ln=0,ri=null,ul(o,l,E,1);break;case 2:case 9:if(xg(E)){ln=0,ri=null,Mc(l);break}l=function(){ln!==2&&ln!==9||vn!==o||(ln=7),Ki(o)},E.then(l,l);break e;case 3:ln=7;break e;case 4:ln=5;break e;case 7:xg(E)?(ln=0,ri=null,Mc(l)):(ln=0,ri=null,ul(o,l,E,7));break;case 5:var D=null;switch(vt.tag){case 26:D=vt.memoizedState;case 5:case 27:var N=vt;if(D?C1(D):N.stateNode.complete){ln=0,ri=null;var Z=N.sibling;if(Z!==null)vt=Z;else{var le=N.return;le!==null?(vt=le,bi(le)):vt=null}break t}}ln=0,ri=null,ul(o,l,E,5);break;case 6:ln=0,ri=null,ul(o,l,E,6);break;case 8:ll(),An=6;break e;default:throw Error(A(462))}}e1();break}catch(we){Tc(o,we)}while(!0);return ha=Ws=null,Ue.H=m,Ue.A=b,en=d,vt!==null?0:(vn=null,Ht=0,Vu(),An)}function e1(){for(;vt!==null&&!If();)Tv(vt)}function Tv(o){var l=ov(o.alternate,o,ii);o.memoizedProps=o.pendingProps,l===null?bi(o):vt=l}function Mc(o){var l=o,d=l.alternate;switch(l.tag){case 15:case 0:l=es(d,l,l.pendingProps,l.type,void 0,Ht);break;case 11:l=es(d,l,l.pendingProps,l.type.render,l.ref,Ht);break;case 5:xh(l);default:qb(d,l),l=vt=fg(l,ii),l=ov(d,l,ii)}o.memoizedProps=o.pendingProps,l===null?bi(o):vt=l}function ul(o,l,d,m){ha=Ws=null,xh(l),Xo=null,ec=0;var b=l.return;try{if(Ja(o,b,l,d,Ht)){An=1,fd(o,di(d,o.current)),vt=null;return}}catch(E){if(b!==null)throw vt=b,E;An=1,fd(o,di(d,o.current)),vt=null;return}l.flags&32768?(jt||m===1?o=!0:yi||(Ht&536870912)!==0?o=!1:(rs=o=!0,(m===2||m===9||m===3||m===6)&&(m=Qn.current,m!==null&&m.tag===13&&(m.flags|=16384))),vr(l,o)):bi(l)}function bi(o){var l=o;do{if((l.flags&32768)!==0){vr(l,rs);return}o=l.return;var d=cv(l.alternate,l,ii);if(d!==null){vt=d;return}if(l=l.sibling,l!==null){vt=l;return}vt=l=o}while(l!==null);An===0&&(An=5)}function vr(o,l){do{var d=mc(o.alternate,o);if(d!==null){d.flags&=32767,vt=d;return}if(d=o.return,d!==null&&(d.flags|=32768,d.subtreeFlags=0,d.deletions=null),!l&&(o=o.sibling,o!==null)){vt=o;return}vt=o=d}while(o!==null);An=6,vt=null}function Mv(o,l,d,m,b,E,D,N,Z){o.cancelPendingCommit=null;do dl();while(mr!==0);if((en&6)!==0)throw Error(A(327));if(l!==null){if(l===o.current)throw Error(A(177));if(E=l.lanes|l.childLanes,E|=eh,Su(o,d,E,D,N,Z),o===vn&&(vt=vn=null,Ht=0),ol=l,ss=o,Qi=d,rp=E,_v=b,wv=m,(l.subtreeFlags&10256)!==0||(l.flags&10256)!==0?(o.callbackNode=null,o.callbackPriority=0,kd(Il,function(){return Dv(),null})):(o.callbackNode=null,o.callbackPriority=0),m=(l.flags&13878)!==0,(l.subtreeFlags&13878)!==0||m){m=Ue.T,Ue.T=null,b=at.p,at.p=2,D=en,en|=4;try{Gb(o,l,d)}finally{en=D,at.p=b,Ue.T=m}}mr=1,Od(),so(),Dc()}}function Od(){if(mr===1){mr=0;var o=ss,l=ol,d=(l.flags&13878)!==0;if((l.subtreeFlags&13878)!==0||d){d=Ue.T,Ue.T=null;var m=at.p;at.p=2;var b=en;en|=4;try{wc(l,o);var E=Fv,D=In(o.containerInfo),N=E.focusedElem,Z=E.selectionRange;if(D!==N&&N&&N.ownerDocument&&ag(N.ownerDocument.documentElement,N)){if(Z!==null&&Pu(N)){var le=Z.start,we=Z.end;if(we===void 0&&(we=le),"selectionStart"in N)N.selectionStart=le,N.selectionEnd=Math.min(we,N.value.length);else{var De=N.ownerDocument||document,ce=De&&De.defaultView||window;if(ce.getSelection){var fe=ce.getSelection(),et=N.textContent.length,yt=Math.min(Z.start,et),mn=Z.end===void 0?yt:Math.min(Z.end,et);!fe.extend&&yt>mn&&(D=mn,mn=yt,yt=D);var ne=zo(N,yt),X=zo(N,mn);if(ne&&X&&(fe.rangeCount!==1||fe.anchorNode!==ne.node||fe.anchorOffset!==ne.offset||fe.focusNode!==X.node||fe.focusOffset!==X.offset)){var oe=De.createRange();oe.setStart(ne.node,ne.offset),fe.removeAllRanges(),yt>mn?(fe.addRange(oe),fe.extend(X.node,X.offset)):(oe.setEnd(X.node,X.offset),fe.addRange(oe))}}}}for(De=[],fe=N;fe=fe.parentNode;)fe.nodeType===1&&De.push({element:fe,left:fe.scrollLeft,top:fe.scrollTop});for(typeof N.focus=="function"&&N.focus(),N=0;N<De.length;N++){var Se=De[N];Se.element.scrollLeft=Se.left,Se.element.scrollTop=Se.top}}Sp=!!mp,Fv=mp=null}finally{en=b,at.p=m,Ue.T=d}}o.current=l,mr=2}}function so(){if(mr===2){mr=0;var o=ss,l=ol,d=(l.flags&8772)!==0;if((l.subtreeFlags&8772)!==0||d){d=Ue.T,Ue.T=null;var m=at.p;at.p=2;var b=en;en|=4;try{bc(o,l.alternate,l)}finally{en=b,at.p=m,Ue.T=d}}mr=3}}function Dc(){if(mr===4||mr===3){mr=0,Nm();var o=ss,l=ol,d=Qi,m=wv;(l.subtreeFlags&10256)!==0||(l.flags&10256)!==0?mr=5:(mr=0,ol=ss=null,sp(o,o.pendingLanes));var b=o.pendingLanes;if(b===0&&(as=null),Ao(d),l=l.stateNode,At&&typeof At.onCommitFiberRoot=="function")try{At.onCommitFiberRoot(Eu,l,void 0,(l.current.flags&128)===128)}catch{}if(m!==null){l=Ue.T,b=at.p,at.p=2,Ue.T=null;try{for(var E=o.onRecoverableError,D=0;D<m.length;D++){var N=m[D];E(N.value,{componentStack:N.stack})}}finally{Ue.T=l,at.p=b}}(Qi&3)!==0&&dl(),Ki(o),b=o.pendingLanes,(d&261930)!==0&&(b&42)!==0?o===ip?Dd++:(Dd=0,ip=o):Dd=0,kc(0,!1)}}function sp(o,l){(o.pooledCacheLanes&=l)===0&&(l=o.pooledCache,l!=null&&(o.pooledCache=null,Gi(l)))}function dl(){return Od(),so(),Dc(),Dv()}function Dv(){if(mr!==5)return!1;var o=ss,l=rp;rp=0;var d=Ao(Qi),m=Ue.T,b=at.p;try{at.p=32>d?32:d,Ue.T=null,d=_v,_v=null;var E=ss,D=Qi;if(mr=0,ol=ss=null,Qi=0,(en&6)!==0)throw Error(A(331));var N=en;if(en|=4,xn(E.current),Jh(E,E.current,D,d),en=N,kc(0,!1),At&&typeof At.onPostCommitFiberRoot=="function")try{At.onPostCommitFiberRoot(Eu,E)}catch{}return!0}finally{at.p=b,Ue.T=m,sp(o,l)}}function Dn(o,l,d){l=di(d,l),l=hd(o.stateNode,l,2),o=$a(o,l,2),o!==null&&(Pl(o,2),Ki(o))}function cn(o,l,d){if(o.tag===3)Dn(o,o,d);else for(;l!==null;){if(l.tag===3){Dn(l,o,d);break}else if(l.tag===1){var m=l.stateNode;if(typeof l.type.getDerivedStateFromError=="function"||typeof m.componentDidCatch=="function"&&(as===null||!as.has(m))){o=di(d,o),d=Bh(2),m=$a(l,d,2),m!==null&&(Hh(d,m,l,o),Pl(m,2),Ki(m));break}}l=l.return}}function Oc(o,l,d){var m=o.pingCache;if(m===null){m=o.pingCache=new _t;var b=new Set;m.set(l,b)}else b=m.get(l),b===void 0&&(b=new Set,m.set(l,b));b.has(d)||(ep=!0,b.add(d),o=t1.bind(null,o,l,d),l.then(o,o))}function t1(o,l,d){var m=o.pingCache;m!==null&&m.delete(l),o.pingedLanes|=o.suspendedLanes&d,o.warmLanes&=~d,vn===o&&(Ht&d)===d&&(An===4||An===3&&(Ht&62914560)===Ht&&300>Yr()-Td?(en&2)===0&&io(o,0):tp|=d,sl===Ht&&(sl=0)),Ki(o)}function Ov(o,l){l===0&&(l=Pf()),o=Vs(o,l),o!==null&&(Pl(o,l),Ki(o))}function n1(o){var l=o.memoizedState,d=0;l!==null&&(d=l.retryLane),Ov(o,d)}function kv(o,l){var d=0;switch(o.tag){case 31:case 13:var m=o.stateNode,b=o.memoizedState;b!==null&&(d=b.retryLane);break;case 19:m=o.stateNode;break;case 22:m=o.stateNode._retryCache;break;default:throw Error(A(314))}m!==null&&m.delete(l),Ov(o,d)}function kd(o,l){return Af(o,l)}var oo=null,fl=null,Ld=!1,hl=!1,op=!1,os=0;function Ki(o){o!==fl&&o.next===null&&(fl===null?oo=fl=o:fl=fl.next=o),hl=!0,Ld||(Ld=!0,i1())}function kc(o,l){if(!op&&hl){op=!0;do for(var d=!1,m=oo;m!==null;){if(!l)if(o!==0){var b=m.pendingLanes;if(b===0)var E=0;else{var D=m.suspendedLanes,N=m.pingedLanes;E=(1<<31-Tr(42|o)+1)-1,E&=b&~(D&~N),E=E&201326741?E&201326741|1:E?E|2:0}E!==0&&(d=!0,Rv(m,E))}else E=Ht,E=Nl(m,m===vn?E:0,m.cancelPendingCommit!==null||m.timeoutHandle!==-1),(E&3)===0||Lo(m,E)||(d=!0,Rv(m,E));m=m.next}while(d);op=!1}}function r1(){Lv()}function Lv(){hl=Ld=!1;var o=0;os!==0&&Yv()&&(o=os);for(var l=Yr(),d=null,m=oo;m!==null;){var b=m.next,E=Av(m,l);E===0?(m.next=null,d===null?oo=b:d.next=b,b===null&&(fl=d)):(d=m,(o!==0||(E&3)!==0)&&(hl=!0)),m=b}mr!==0&&mr!==5||kc(o,!1),os!==0&&(os=0)}function Av(o,l){for(var d=o.suspendedLanes,m=o.pingedLanes,b=o.expirationTimes,E=o.pendingLanes&-62914561;0<E;){var D=31-Tr(E),N=1<<D,Z=b[D];Z===-1?((N&d)===0||(N&m)!==0)&&(b[D]=$y(N,l)):Z<=l&&(o.expiredLanes|=N),E&=~N}if(l=vn,d=Ht,d=Nl(o,o===l?d:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),m=o.callbackNode,d===0||o===l&&(ln===2||ln===9)||o.cancelPendingCommit!==null)return m!==null&&m!==null&&Rf(m),o.callbackNode=null,o.callbackPriority=0;if((d&3)===0||Lo(o,d)){if(l=d&-d,l===o.callbackPriority)return l;switch(m!==null&&Rf(m),Ao(d)){case 2:case 8:d=Pm;break;case 32:d=Il;break;case 268435456:d=Na;break;default:d=Il}return m=Ca.bind(null,o),d=Af(d,m),o.callbackPriority=l,o.callbackNode=d,l}return m!==null&&m!==null&&Rf(m),o.callbackPriority=2,o.callbackNode=null,2}function Ca(o,l){if(mr!==0&&mr!==5)return o.callbackNode=null,o.callbackPriority=0,null;var d=o.callbackNode;if(dl()&&o.callbackNode!==d)return null;var m=Ht;return m=Nl(o,o===vn?m:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),m===0?null:(Qb(o,m,l),Av(o,Yr()),o.callbackNode!=null&&o.callbackNode===d?Ca.bind(null,o):null)}function Rv(o,l){if(dl())return null;Qb(o,l,!0)}function i1(){Wv(function(){(en&6)!==0?Af(Nf,r1):Lv()})}function lp(){if(os===0){var o=ma;o===0&&(o=ko,ko<<=1,(ko&261888)===0&&(ko=256)),os=o}return os}function Iv(o){return o==null||typeof o=="symbol"||typeof o=="boolean"?null:typeof o=="function"?o:Du(""+o)}function Nv(o,l){var d=l.ownerDocument.createElement("input");return d.name=l.name,d.value=l.value,o.id&&d.setAttribute("form",o.id),l.parentNode.insertBefore(d,l),o=new FormData(o),d.parentNode.removeChild(d),o}function a1(o,l,d,m,b){if(l==="submit"&&d&&d.stateNode===b){var E=Iv((b[jr]||null).action),D=m.submitter;D&&(l=(l=D[jr]||null)?Iv(l.formAction):D.getAttribute("formAction"),l!==null&&(E=l,D=null));var N=new Lu("action","action",null,m,b);o.push({event:N,listeners:[{instance:null,listener:function(){if(m.defaultPrevented){if(os!==0){var Z=D?Nv(b,D):new FormData(b);Oh(d,{pending:!0,data:Z,method:b.method,action:E},null,Z)}}else typeof E=="function"&&(N.preventDefault(),Z=D?Nv(b,D):new FormData(b),Oh(d,{pending:!0,data:Z,method:b.method,action:E},E,Z))},currentTarget:b}]})}}for(var cp=0;cp<Jf.length;cp++){var up=Jf[cp],s1=up.toLowerCase(),o1=up[0].toUpperCase()+up.slice(1);Di(s1,"on"+o1)}Di(og,"onAnimationEnd"),Di(lg,"onAnimationIteration"),Di(zu,"onAnimationStart"),Di("dblclick","onDoubleClick"),Di("focusin","onFocus"),Di("focusout","onBlur"),Di(Ab,"onTransitionRun"),Di(Rb,"onTransitionStart"),Di(Ib,"onTransitionCancel"),Di(cg,"onTransitionEnd"),Ha("onMouseEnter",["mouseout","mouseover"]),Ha("onMouseLeave",["mouseout","mouseover"]),Ha("onPointerEnter",["pointerout","pointerover"]),Ha("onPointerLeave",["pointerout","pointerover"]),Mi("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Mi("onSelect","focusout contextmenu dragend focu
24sin keydown keyup mousedown mouseup selectionchange".split(" ")),Mi("onBeforeInput",["compositionend","keypress","textInput","paste"]),Mi("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Mi("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Mi("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Lc="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),l1=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Lc));function dp(o,l){l=(l&4)!==0;for(var d=0;d<o.length;d++){var m=o[d],b=m.event;m=m.listeners;e:{var E=void 0;if(l)for(var D=m.length-1;0<=D;D--){var N=m[D],Z=N.instance,le=N.currentTarget;if(N=N.listener,Z!==E&&b.isPropagationStopped())break e;E=N,b.currentTarget=le;try{E(b)}catch(we){Fu(we)}b.currentTarget=null,E=Z}else for(D=0;D<m.length;D++){if(N=m[D],Z=N.instance,le=N.currentTarget,N=N.listener,Z!==E&&b.isPropagationStopped())break e;E=N,b.currentTarget=le;try{E(b)}catch(we){Fu(we)}b.currentTarget=null,E=Z}}}}function Bt(o,l){var d=l[jm];d===void 0&&(d=l[jm]=new Set);var m=o+"__bubble";d.has(m)||(fp(l,o,2,!1),d.add(m))}function Ac(o,l,d){var m=0;l&&(m|=4),fp(d,o,m,l)}var lo="_reactListening"+Math.random().toString(36).slice(2);function Ad(o){if(!o[lo]){o[lo]=!0,Ns.forEach(function(d){d!=="selectionchange"&&(l1.has(d)||Ac(d,!1,o),Ac(d,!0,o))});var l=o.nodeType===9?o:o.ownerDocument;l===null||l[lo]||(l[lo]=!0,Ac("selectionchange",!1,l))}}function fp(o,l,d,m){switch(Mp(l)){case 2:var b=D1;break;case 8:b=OE;break;default:b=Cp}d=b.bind(null,l,d,o),b=void 0,!Uf||l!=="touchstart"&&l!=="touchmove"&&l!=="wheel"||(b=!0),m?b!==void 0?o.addEventListener(l,d,{capture:!0,passive:b}):o.addEventListener(l,d,!0):b!==void 0?o.addEventListener(l,d,{passive:b}):o.addEventListener(l,d,!1)}function Rd(o,l,d,m,b){var E=m;if((l&1)===0&&(l&2)===0&&m!==null)e:for(;;){if(m===null)return;var D=m.tag;if(D===3||D===4){var N=m.stateNode.containerInfo;if(N===b)break;if(D===4)for(D=m.return;D!==null;){var Z=D.tag;if((Z===3||Z===4)&&D.stateNode.containerInfo===b)return;D=D.return}for(;N!==null;){if(D=Rs(N),D===null)return;if(Z=D.tag,Z===5||Z===6||Z===26||Z===27){m=E=D;continue e}N=N.parentNode}}m=m.return}rb(function(){var le=E,we=Wf(d),De=[];e:{var ce=ug.get(o);if(ce!==void 0){var fe=Lu,et=o;switch(o){case"keypress":if(qf(d)===0)break e;case"keydown":case"keyup":fe=mb;break;case"focusin":et="focus",fe=Xf;break;case"focusout":et="blur",fe=Xf;break;case"beforeblur":case"afterblur":fe=Xf;break;case"click":if(d.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":fe=Qm;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":fe=ab;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":fe=yb;break;case og:case lg:case zu:fe=aE;break;case cg:fe=cE;break;case"scroll":case"scrollend":fe=iE;break;case"wheel":fe=dE;break;case"copy":case"cut":case"paste":fe=sE;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":fe=Jm;break;case"toggle":case"beforetoggle":fe=hE}var yt=(l&4)!==0,mn=!yt&&(o==="scroll"||o==="scrollend"),ne=yt?ce!==null?ce+"Capture":null:ce;yt=[];for(var X=le,oe;X!==null;){var Se=X;if(oe=Se.stateNode,Se=Se.tag,Se!==5&&Se!==26&&Se!==27||oe===null||ne===null||(Se=Ou(X,ne),Se!=null&&yt.push(Rc(X,Se,oe))),mn)break;X=X.return}0<yt.length&&(ce=new fe(ce,et,null,d,we),De.push({event:ce,listeners:yt}))}}if((l&7)===0){e:{if(ce=o==="mouseover"||o==="pointerover",fe=o==="mouseout"||o==="pointerout",ce&&d!==jf&&(et=d.relatedTarget||d.fromElement)&&(Rs(et)||et[Ro]))break e;if((fe||ce)&&(ce=we.window===we?we:(ce=we.ownerDocument)?ce.defaultView||ce.parentWindow:window,fe?(et=d.relatedTarget||d.toElement,fe=le,et=et?Rs(et):null,et!==null&&(mn=se(et),yt=et.tag,et!==mn||yt!==5&&yt!==27&&yt!==6)&&(et=null)):(fe=null,et=le),fe!==et)){
vendor: 5,935 bytes, lines 24-25
24if(yt=Qm,Se="onMouseLeave",ne="onMouseEnter",X="mouse",(o==="pointerout"||o==="pointerover")&&(yt=Jm,Se="onPointerLeave",ne="onPointerEnter",X="pointer"),mn=fe==null?ce:oa(fe),oe=et==null?ce:oa(et),ce=new yt(Se,X+"leave",fe,d,we),ce.target=mn,ce.relatedTarget=oe,Se=null,Rs(we)===le&&(yt=new yt(ne,X+"enter",et,d,we),yt.target=oe,yt.relatedTarget=mn,Se=yt),mn=Se,fe&&et)t:{for(yt=c1,ne=fe,X=et,oe=0,Se=ne;Se;Se=yt(Se))oe++;Se=0;for(var gt=X;gt;gt=yt(gt))Se++;for(;0<oe-Se;)ne=yt(ne),oe--;for(;0<Se-oe;)X=yt(X),Se--;for(;oe--;){if(ne===X||X!==null&&ne===X.alternate){yt=ne;break t}ne=yt(ne),X=yt(X)}yt=null}else yt=null;fe!==null&&Pv(De,ce,fe,yt,!1),et!==null&&mn!==null&&Pv(De,mn,et,yt,!0)}}e:{if(ce=le?oa(le):window,fe=ce.nodeName&&ce.nodeName.toLowerCase(),fe==="select"||fe==="input"&&ce.type==="file")var Kt=Tb;else if(Sb(ce))if(Mb)Kt=Lb;else{Kt=rg;var it=bE}else fe=ce.nodeName,!fe||fe.toLowerCase()!=="input"||ce.type!=="checkbox"&&ce.type!=="radio"?le&&Ct(le.elementType)&&(Kt=Tb):Kt=On;if(Kt&&(Kt=Kt(o,le))){Cb(De,Kt,d,we);break e}it&&it(o,ce,le),o==="focusout"&&le&&ce.type==="number"&&le.memoizedProps.value!=null&&Yf(ce,"number",ce.value)}switch(it=le?oa(le):window,o){case"focusin":(Sb(it)||it.contentEditable==="true")&&(Fo=it,ql=le,$l=null);break;case"focusout":$l=ql=Fo=null;break;case"mousedown":Bu=!0;break;case"contextmenu":case"mouseup":case"dragend":Bu=!1,Hu(De,d,we);break;case"selectionchange":if(_E)break;case"keydown":case"keyup":Hu(De,d,we)}var Dt;if(eg)e:{switch(o){case"compositionstart":var It="onCompositionStart";break e;case"compositionend":It="onCompositionEnd";break e;case"compositionupdate":It="onCompositionUpdate";break e}It=void 0}else Wl?Eb(o,d)&&(It="onCompositionEnd"):o==="keydown"&&d.keyCode===229&&(It="onCompositionStart");It&&(bb&&d.locale!=="ko"&&(Wl||It!=="onCompositionStart"?It==="onCompositionEnd"&&Wl&&(Dt=Zm()):(za=we,Gm="value"in za?za.value:za.textContent,Wl=!0)),it=Id(le,It),0<it.length&&(It=new cb(It,o,null,d,we),De.push({event:It,listeners:it}),Dt?It.data=Dt:(Dt=xb(d),Dt!==null&&(It.data=Dt)))),(Dt=Fn?mE(o,d):gE(o,d))&&(It=Id(le,"onBeforeInput"),0<It.length&&(it=new cb("onBeforeInput","beforeinput",null,d,we),De.push({event:it,listeners:It}),it.data=Dt)),a1(De,o,le,d,we)}dp(De,l)})}function Rc(o,l,d){return{instance:o,listener:l,currentTarget:d}}function Id(o,l){for(var d=l+"Capture",m=[];o!==null;){var b=o,E=b.stateNode;if(b=b.tag,b!==5&&b!==26&&b!==27||E===null||(b=Ou(o,d),b!=null&&m.unshift(Rc(o,b,E)),b=Ou(o,l),b!=null&&m.push(Rc(o,b,E))),o.tag===3)return m;o=o.return}return[]}function c1(o){if(o===null)return null;do o=o.return;while(o&&o.tag!==5&&o.tag!==27);return o||null}function Pv(o,l,d,m,b){for(var E=l._reactName,D=[];d!==null&&d!==m;){var N=d,Z=N.alternate,le=N.stateNode;if(N=N.tag,Z!==null&&Z===m)break;N!==5&&N!==26&&N!==27||le===null||(Z=le,b?(le=Ou(d,E),le!=null&&D.unshift(Rc(d,le,Z))):b||(le=Ou(d,E),le!=null&&D.push(Rc(d,le,Z)))),d=d.return}D.length!==0&&o.push({event:l,listeners:D})}var hp=/\r\n?/g,u1=/\u0000|\uFFFD/g;function Bv(o){return(typeof o=="string"?o:""+o).replace(hp,`
25`).replace(u1,"")}function Hv(o,l){return l=Bv(l),Bv(o)===l}function pn(o,l,d,m,b,E){switch(d){case"children":typeof m=="string"?l==="body"||l==="textarea"&&m===""||Bs(o,m):(typeof m=="number"||typeof m=="bigint")&&l!=="body"&&Bs(o,""+m);break;case"className":Po(o,"class",m);break;case"tabIndex":Po(o,"tabindex",m);break;case"dir":case"role":case"viewBox":case"width":case"height":Po(o,d,m);break;case"style":qm(o,m,E);break;case"data":if(l!=="object"){Po(o,"data",m);break}case"src":case"href":if(m===""&&(l!=="a"||d!=="href")){o.removeAttribute(d);break}if(m==null||typeof m=="function"||typeof m=="symbol"||typeof m=="boolean"){o.removeAttribute(d);break}m=Du(""+m),o.setAttribute(d,m);break;case"action":case"formAction":if(typeof m=="function"){o.setAttribute(d,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof E=="function"&&(d==="formAction"?(l!=="input"&&pn(o,l,"name",b.name,b,null),pn(o,l,"formEncType",b.formEncType,b,null),pn(o,l,"formMethod",b.formMethod,b,null),pn(o,l,"formTarget",b.formTarget,b,null)):(pn(o,l,"encType",b.encType,b,null),pn(o,l,"method",b.method,b,null),pn(o,l,"target",b.target,b,null)));if(m==null||typeof m=="symbol"||typeof m=="boolean"){o.removeAttribute(d);break}m=Du(""+m),o.setAttribute(d,m);break;case"onClick":m!=null&&(o.onclick=ca);break;case"onScroll":m!=null&&Bt("scroll",o);break;case"onScrollEnd":m!=null&&Bt("scrollend",o);break;case"dangerouslySetInnerHTML":if(m!=null){if(typeof m!="object"||!("__html"in m))throw Error(A(61));if(d=m.__html,d!=null){if(b.children!=null)throw Error(A(60));o.innerHTML=d}}break;case"multiple":o.multiple=m&&typeof m!="function"&&typeof m!="symbol";break;case"muted":o.muted=m&&typeof m!="function"&&typeof m!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(m==null||typeof m=="function"||typeof m=="boolean"||typeof m=="symbol"){o.removeAttribute("xlink:href");break}d=Du(""+m),o.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",d);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":m!=null&&typeof m!="function"&&typeof m!="symbol"?o.setAttribute(d,""+m):o.removeAttribute(d);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInl
25ine":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":m&&typeof m!="function"&&typeof m!="symbol"?o.setAttribute(d,""):o.removeAttribute(d);break;case"capture":case"download":m===!0?o.setAttribute(d,""):m!==!1&&m!=null&&typeof m!="function"&&typeof m!="symbol"?o.setAttribute(d,m):o.removeAttribute(d);break;case"cols":case"rows":case"size":case"span":m!=null&&typeof m!="function"&&typeof m!="symbol"&&!isNaN(m)&&1<=m?o.setAttribute(d,m):o.removeAttribute(d);break;case"rowSpan":case"start":m==null||typeof m=="function"||typeof m=="symbol"||isNaN(m)?o.removeAttribute(d):o.setAttribute(d,m);break;case"popover":Bt("beforetoggle",o),Bt("toggle",o),Hl(o,"popover",m);break;case"xlinkActuate":Ui(o,"http://www.w3.org/1999/xlink","xlink:actuate",m);break;case"xlinkArcrole":Ui(o,"http://www.w3.org/1999/xlink","xlink:arcrole",m);break;case"xlinkRole":Ui(o,"http://www.w3.org/1999/xlink","xlink:role",m);break;case"xlinkShow":Ui(o,"http://www.w3.org/1999/xlink","xlink:show",m);break;case"xlinkTitle":Ui(o,"http://www.w3.org/1999/xlink","xlink:title",m);break;case"xlinkType":Ui(o,"http://www.w3.org/1999/xlink","xlink:type",m);break;case"xmlBase":Ui(o,"http://www.w3.org/XML/1998/namespace","xml:base",m);break;case"xmlLang":Ui(o,"http://www.w3.org/XML/1998/namespace","xml:lang",m);break;case"xmlSpace":Ui(o,"http://www.w3.org/XML/1998/namespace","xml:space",m);break;case"is":Hl(o,"is",m);break;case"innerText":case"textContent":break;default:(!(2<d.length)||d[0]!=="o"&&d[0]!=="O"||d[1]!=="n"&&d[1]!=="N")&&(d=eb.get(d)||d,Hl(o,d,m))}}function pp(o,l,d,m,b,E){switch(d){case"style":qm(o,m,E);break;case"dangerouslySetInnerHTML":if(m!=null){if(typeof m!="object"||!("__html"in m))throw Error(A(61));if(d=m.__html,d!=null){if(b.children!=null)throw Error(A(60));o.innerHTML=d}}break;case"children":typeof m=="string"?Bs(o,m):(typeof m=="number"||typeof m=="bigint")&&Bs(o,""+m);break;case"onScroll":m!=null&&Bt("scroll",o);break;case"onScrollEnd":m!=null&&Bt("scrollend",o);break;case"onClick":m!=null&&(o.onclick=ca);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!No.hasOwnProperty(d))e:{if(d[0]==="o"&&d[1]==="n"&&(b=d.endsWith("Capture"),l=d.slice(2,b?d.length-7:void 0),E=o[jr]||null,E=E!=null?E[d]:null,typeof E=="function"&&o.removeEventListener(l,E,b),typeof m=="function")){typeof E!="function"&&E!==null&&(d in o?o[d]=null:o.hasAttribute(d)&&o.removeAttribute(d)),o.addEventListener(l,m,b);break e}d in o?o[d]=m:m===!0?o.setAttribute(d,""):Hl(o,d,m)}}}function yr(o,l,d){switch(l){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Bt("error",o),Bt("load",o);var m=!1,b=!1,E;for(E in d)if(d.hasOwnProperty(E)){var D=d[E];if(D!=null)switch(E){case"src":m=!0;break;case"srcSet":b=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(A(137,l));default:pn(o,l,E,D,d,null)}}b&&pn(o,l,"srcSet",d.srcSet,d,null),m&&pn(o,l,"src",d.src,d,null);return;case"input":Bt("invalid",o);var N=E=D=b=null,Z=null,le=null;for(m in d)if(d.hasOwnProperty(m)){var we=d[m];if(we!=null)switch(m){case"name":b=we;break;case"type":D=we;break;case"checked":Z=we;break;case"defaultChecked":le=we;break;case"value":E=we;break;case"defaultValue":N=we;break;case"children":case"dangerouslySetInnerHTML":if(we!=null)throw Error(A(137,l));break;default:pn(o,l,m,we,d,null)}}Mu(o,E,N,Z,le,D,b,!1);return;case"select":Bt("invalid",o),m=D=E=null;for(b in d)if(d.hasOwnProperty(b)&&(N=d[b],N!=null))switch(b){case"value":E=N;break;case"defaultValue":D=N;break;case"multiple":m=N;default:pn(o,l,b,N,d,null)}l=E,d=D,o.multiple=!!m,l!=null?Bo(o,!!m,l,!1):d!=null&&Bo(o,!!m,d,!0);return;case"textarea":Bt("invalid",o),E=b=m=null;for(D in d)if(d.hasOwnProperty(D)&&(N=d[D],N!=null))switch(D){case"value":m=N;break;case"defaultValue":b=N;break;case"children":E=N;break;case"dangerouslySetInnerHTML":if(N!=null)throw Error(A(91));break;default:pn(o,l,D,N,d,null)}Ho(o,m,b,E);return;case"option":for(Z in d)d.hasOwnProperty(Z)&&(m=d[Z],m!=null)&&(Z==="selected"?o.selected=m&&typeof m!="function"&&typeof m!="symbol":pn(o,l,Z,m,d,null));return;case"dialog":Bt("beforetoggle",o),Bt("toggle",o),Bt("cancel",o),Bt("close",o);break;case"iframe":case"object":Bt("load",o);break;case"video":case"audio":for(m=0;m<Lc.length;m++)Bt(Lc[m],o);break;case"image":Bt("error",o),Bt("load",o);break;case"details":Bt("toggle",o);break;
vendor: 17,315 bytes, line 25
25case"embed":case"source":case"link":Bt("error",o),Bt("load",o);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(le in d)if(d.hasOwnProperty(le)&&(m=d[le],m!=null))switch(le){case"children":case"dangerouslySetInnerHTML":throw Error(A(137,l));default:pn(o,l,le,m,d,null)}return;default:if(Ct(l)){for(we in d)d.hasOwnProperty(we)&&(m=d[we],m!==void 0&&pp(o,l,we,m,d,void 0));return}}for(N in d)d.hasOwnProperty(N)&&(m=d[N],m!=null&&pn(o,l,N,m,d,null))}function d1(o,l,d,m){switch(l){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var b=null,E=null,D=null,N=null,Z=null,le=null,we=null;for(fe in d){var De=d[fe];if(d.hasOwnProperty(fe)&&De!=null)switch(fe){case"checked":break;case"value":break;case"defaultValue":Z=De;default:m.hasOwnProperty(fe)||pn(o,l,fe,null,m,De)}}for(var ce in m){var fe=m[ce];if(De=d[ce],m.hasOwnProperty(ce)&&(fe!=null||De!=null))switch(ce){case"type":E=fe;break;case"name":b=fe;break;case"checked":le=fe;break;case"defaultChecked":we=fe;break;case"value":D=fe;break;case"defaultValue":N=fe;break;case"children":case"dangerouslySetInnerHTML":if(fe!=null)throw Error(A(137,l));break;default:fe!==De&&pn(o,l,ce,fe,m,De)}}Vf(o,D,N,Z,le,we,E,b);return;case"select":fe=D=N=ce=null;for(E in d)if(Z=d[E],d.hasOwnProperty(E)&&Z!=null)switch(E){case"value":break;case"multiple":fe=Z;default:m.hasOwnProperty(E)||pn(o,l,E,null,m,Z)}for(b in m)if(E=m[b],Z=d[b],m.hasOwnProperty(b)&&(E!=null||Z!=null))switch(b){case"value":ce=E;break;case"defaultValue":N=E;break;case"multiple":D=E;default:E!==Z&&pn(o,l,b,E,m,Z)}l=N,d=D,m=fe,ce!=null?Bo(o,!!d,ce,!1):!!m!=!!d&&(l!=null?Bo(o,!!d,l,!0):Bo(o,!!d,d?[]:"",!1));return;case"textarea":fe=ce=null;for(N in d)if(b=d[N],d.hasOwnProperty(N)&&b!=null&&!m.hasOwnProperty(N))switch(N){case"value":break;case"children":break;default:pn(o,l,N,null,m,b)}for(D in m)if(b=m[D],E=d[D],m.hasOwnProperty(D)&&(b!=null||E!=null))switch(D){case"value":ce=b;break;case"defaultValue":fe=b;break;case"children":break;case"dangerouslySetInnerHTML":if(b!=null)throw Error(A(91));break;default:b!==E&&pn(o,l,D,b,m,E)}la(o,ce,fe);return;case"option":for(var et in d)ce=d[et],d.hasOwnProperty(et)&&ce!=null&&!m.hasOwnProperty(et)&&(et==="selected"?o.selected=!1:pn(o,l,et,null,m,ce));for(Z in m)ce=m[Z],fe=d[Z],m.hasOwnProperty(Z)&&ce!==fe&&(ce!=null||fe!=null)&&(Z==="selected"?o.selected=ce&&typeof ce!="function"&&typeof ce!="symbol":pn(o,l,Z,ce,m,fe));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var yt in d)ce=d[yt],d.hasOwnProperty(yt)&&ce!=null&&!m.hasOwnProperty(yt)&&pn(o,l,yt,null,m,ce);for(le in m)if(ce=m[le],fe=d[le],m.hasOwnProperty(le)&&ce!==fe&&(ce!=null||fe!=null))switch(le){case"children":case"dangerouslySetInnerHTML":if(ce!=null)throw Error(A(137,l));break;default:pn(o,l,le,ce,m,fe)}return;default:if(Ct(l)){for(var mn in d)ce=d[mn],d.hasOwnProperty(mn)&&ce!==void 0&&!m.hasOwnProperty(mn)&&pp(o,l,mn,void 0,m,ce);for(we in m)ce=m[we],fe=d[we],!m.hasOwnProperty(we)||ce===fe||ce===void 0&&fe===void 0||pp(o,l,we,ce,m,fe);return}}for(var ne in d)ce=d[ne],d.hasOwnProperty(ne)&&ce!=null&&!m.hasOwnProperty(ne)&&pn(o,l,ne,null,m,ce);for(De in m)ce=m[De],fe=d[De],!m.hasOwnProperty(De)||ce===fe||ce==null&&fe==null||pn(o,l,De,ce,m,fe)}function zv(o){switch(o){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function f1(){if(typeof performance.getEntriesByType=="function"){for(var o=0,l=0,d=performance.getEntriesByType("resource"),m=0;m<d.length;m++){var b=d[m],E=b.transferSize,D=b.initiatorType,N=b.duration;if(E&&N&&zv(D)){for(D=0,N=b.responseEnd,m+=1;m<d.length;m++){var Z=d[m],le=Z.startTime;if(le>N)break;var we=Z.transferSize,De=Z.initiatorType;we&&zv(De)&&(Z=Z.responseEnd,D+=we*(Z<N?1:(N-le)/(Z-le)))}if(--m,l+=8*(E+D)/(b.duration/1e3),o++,10<o)break}}if(0<o)return l/o/1e6}return navigator.connection&&(o=navigator.connection.downlink,typeof o=="number")?o:5}var mp=null,Fv=null;function Nd(o){return o.nodeType===9?o:o.ownerDocument}function h1(o){switch(o){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Vv(o,l){if(o===0)switch(l){case"svg":return 1;case"math":return 2;default:return 0}return o===1&&l==="foreignObject"?0:o}function gp(o,l){return o==="textarea"||o==="noscript"||typeof l.children=="string"||typeof l.children=="number"||typeof l.children=="bigint"||typeof l.dangerouslySetInnerHTML=="object"&&l.dangerouslySetInnerHTML!==null&&l.dangerouslySetInnerHTML.__html!=null}var Ta=null;function Yv(){var o=window.event;return o&&o.type==="popstate"?o===Ta?!1:(Ta=o,!0):(Ta=null,!1)}var jv=typeof setTimeout=="function"?setTimeout:void 0,xE=typeof clearTimeout=="function"?clearTimeout:void 0,Ri=typeof Promise=="function"?Promise:void 0,Wv=typeof queueMicrotask=="function"?queueMicrotask:typeof Ri<"u"?function(o){return Ri.resolve(null).then(o).catch(Pd)}:jv;function Pd(o){setTimeout(function(){throw o})}function co(o){return o==="head"}function qn(o,l){var d=l,m=0;do{var b=d.nextSibling;if(o.removeChild(d),b&&b.nodeType===8)if(d=b.data,d==="/$"||d==="/&"){if(m===0){o.removeChild(b),jc(l);return}m--}else if(d==="$"||d==="$?"||d==="$~"||d==="$!"||d==="&")m++;else if(d==="html")fo(o.ownerDocument.documentElement);else if(d==="head"){d=o.ownerDocument.head,fo(d);for(var E=d.firstChild;E;){var D=E.nextSibling,N=E.nodeName;E[Ba]||N==="SCRIPT"||N==="STYLE"||N==="LINK"&&E.rel.toLowerCase()==="stylesheet"||d.removeChild(E),E=D}}else d==="body"&&fo(o.ownerDocument.body);d=b}while(d);jc(l)}function p1(o,l){var d=o;o=0;do{var m=d.nextSibling;if(d.nodeType===1?l?(d._stashedDisplay=d.style.display,d.style.display="none"):(d.style.display=d._stashedDisplay||"",d.getAttribute("style")===""&&d.removeAttribute("style")):d.nodeType===3&&(l?(d._stashedText=d.nodeValue,d.nodeValue=""):d.nodeValue=d._stashedText||""),m&&m.nodeType===8)if(d=m.data,d==="/$"){if(o===0)break;o--}else d!=="$"&&d!=="$?"&&d!=="$~"&&d!=="$!"||o++;d=m}while(d)}function uo(o){var l=o.firstChild;for(l&&l.nodeType===10&&(l=l.nextSibling);l;){var d=l;switch(l=l.nextSibling,d.nodeName){case"HTML":case"HEAD":case"BODY":uo(d),Wi(d);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(d.rel.toLowerCase()==="stylesheet")continue}o.removeChild(d)}}function SE(o,l,d,m){for(;o.nodeType===1;){var b=d;if(o.nodeName.toLowerCase()!==l.toLowerCase()){if(!m&&(o.nodeName!=="INPUT"||o.type!=="hidden"))break}else if(m){if(!o[Ba])switch(l){case"meta":if(!o.hasAttribute("itemprop"))break;return o;case"link":if(E=o.getAttribute("rel"),E==="stylesheet"&&o.hasAttribute("data-precedence"))break;if(E!==b.rel||o.getAttribute("href")!==(b.href==null||b.href===""?null:b.href)||o.getAttribute("crossorigin")!==(b.crossOrigin==null?null:b.crossOrigin)||o.getAttribute("title")!==(b.title==null?null:b.title))break;return o;case"style":if(o.hasAttribute("data-precedence"))break;return o;case"script":if(E=o.getAttribute("src"),(E!==(b.src==null?null:b.src)||o.getAttribute("type")!==(b.type==null?null:b.type)||o.getAttribute("crossorigin")!==(b.crossOrigin==null?null:b.crossOrigin))&&E&&o.hasAttribute("async")&&!o.hasAttribute("itemprop"))break;return o;default:return o}}else if(l==="input"&&o.type==="hidden"){var E=b.name==null?null:""+b.name;if(b.type==="hidden"&&o.getAttribute("name")===E)return o}else return o;if(o=Ii(o.nextSibling),o===null)break}return null}function un(o,l,d){if(l==="")return null;for(;o.nodeType!==3;)if((o.nodeType!==1||o.nodeName!=="INPUT"||o.type!=="hidden")&&!d||(o=Ii(o.nextSibling),o===null))return null;return o}function m1(o,l){for(;o.nodeType!==8;)if((o.nodeType!==1||o.nodeName!=="INPUT"||o.type!=="hidden")&&!l||(o=Ii(o.nextSibling),o===null))return null;return o}function vp(o){return o.data==="$?"||o.data==="$~"}function Uv(o){return o.data==="$!"||o.data==="$?"&&o.ownerDocument.readyState!=="loading"}function ls(o,l){var d=o.ownerDocument;if(o.data==="$~")o._reactRetry=l;else if(o.data!=="$?"||d.readyState!=="loading")l();else{var m=function(){l(),d.removeEventListener("DOMContentLoaded",m)};d.addEventListener("DOMContentLoaded",m),o._reactRetry=m}}function Ii(o){for(;o!=null;o=o.nextSibling){var l=o.nodeType;if(l===1||l===3)break;if(l===8){if(l=o.data,l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"||l==="F!"||l==="F")break;if(l==="/$"||l==="/&")return null}}return o}var Ic=null;function g1(o){o=o.nextSibling;for(var l=0;o;){if(o.nodeType===8){var d=o.data;if(d==="/$"||d==="/&"){if(l===0)return Ii(o.nextSibling);l--}else d!=="$"&&d!=="$!"&&d!=="$?"&&d!=="$~"&&d!=="&"||l++}o=o.nextSibling}return null}function qv(o){o=o.previousSibling;for(var l=0;o;){if(o.nodeType===8){var d=o.data;if(d==="$"||d==="$!"||d==="$?"||d==="$~"||d==="&"){if(l===0)return o;l--}else d!=="/$"&&d!=="/&"||l++}o=o.previousSibling}return null}function v1(o,l,d){switch(l=Nd(d),o){case"html":if(o=l.documentElement,!o)throw Error(A(452));return o;case"head":if(o=l.head,!o)throw Error(A(453));return o;case"body":if(o=l.body,!o)throw Error(A(454));return o;default:throw Error(A(451))}}function fo(o){for(var l=o.attributes;l.length;)o.removeAttributeNode(l[0]);Wi(o)}var Ni=new Map,$v=new Set;function Nc(o){return typeof o.getRootNode=="function"?o.getRootNode():o.nodeType===9?o:o.ownerDocument}var Ji=at.d;at.d={f:Gv,r:Zv,D:y1,C:b1,L:ea,m:_i,X:w1,S:_1,M:CE};function Gv(){var o=Ji.f(),l=ro();return o||l}function Zv(o){var l=Is(o);l!==null&&l.tag===5&&l.type==="form"?kh(l):Ji.r(o)}var ho=typeof document>"u"?null:document;function yp(o,l,d){var m=ho;if(m&&typeof l=="string"&&l){var b=Ar(l);b='link[rel="'+o+'"][href="'+b+'"]',typeof d=="string"&&(b+='[crossorigin="'+d+'"]'),$v.has(b)||($v.add(b),o={rel:o,crossOrigin:d,href:l},m.querySelector(b)===null&&(l=m.createElement("link"),yr(l,"link",o),wr(l),m.head.appendChild(l)))}}function y1(o){Ji.D(o),yp("dns-prefetch",o,null)}function b1(o,l){Ji.C(o,l),yp("preconnect",o,l)}function ea(o,l,d){Ji.L(o,l,d);var m=ho;if(m&&o&&l){var b='link[rel="preload"][as="'+Ar(l)+'"]';l==="image"&&d&&d.imageSrcSet?(b+='[imagesrcset="'+Ar(d.imageSrcSet)+'"]',typeof d.imageSizes=="string"&&(b+='[imagesizes="'+Ar(d.imageSizes)+'"]')):b+='[href="'+Ar(o)+'"]';var E=b;switch(l){case"style":E=Ma(o);break;case"script":E=Pc(o)}Ni.has(E)||(o=Me({rel:"preload",href:l==="image"&&d&&d.imageSrcSet?void 0:o,as:l},d),Ni.set(E,o),m.querySelector(b)!==null||l==="style"&&m.querySelector(Pi(E))||l==="script"&&m.querySelector(Bc(E))||(l=m.createElement("link"),yr(l,"link",o),wr(l),m.head.appendChild(l)))}}function _i(o,l){Ji.m(o,l);var d=ho;if(d&&o){var m=l&&typeof l.as=="string"?l.as:"script",b='link[rel="modulepreload"][as="'+Ar(m)+'"][href="'+Ar(o)+'"]',E=b;switch(m){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":E=Pc(o)}if(!Ni.has(E)&&(o=Me({rel:"modulepreload",href:o},l),Ni.set(E,o),d.querySelector(b)===null)){switch(m){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(d.querySelector(Bc(E)))return}m=d.createElement("link"),yr(m,"link",o),wr(m),d.head.appendChild(m)}}}function _1(o,l,d){Ji.S(o,l,d);var m=ho;if(m&&o){var b=Ti(m).hoistableStyles,E=Ma(o);l=l||"default";var D=b.get(E);if(!D){var N={loading:0,preload:null};if(D=m.querySelector(Pi(E)))N.loading=5;else{o=Me({rel:"stylesheet",href:o,"data-precedence":l},d),(d=Ni.get(E))&&Qv(o,d);var Z=D=m.createElement("link");wr(Z),yr(Z,"link",o),Z._p=new Promise(function(le,we){Z.onload=le,Z.onerror=we}),Z.addEventListener("load",function(){N.loading|=1}),Z.addEventListener("error",function(){N.loading|=2}),N.loading|=4,bp(D,l,m)}D={type:"stylesheet",instance:D,count:1,state:N},b.set(E,D)}}}function w1(o,l){Ji.X(o,l);var d=ho;if(d&&o){var m=Ti(d).hoistableScripts,b=Pc(o),E=m.get(b);E||(E=d.querySelector(Bc(b)),E||(o=Me({src:o,async:!0},l),(l=Ni.get(b))&&_p(o,l),E=d.createElement("script"),wr(E),yr(E,"link",o),d.head.appendChild(E)),E={type:"script",instance:E,count:1,state:null},m.set(b,E))}}function CE(o,l){Ji.M(o,l);var d=ho;if(d&&o){var m=Ti(d).hoistableScripts,b=Pc(o),E=m.get(b);E||(E=d.querySelector(Bc(b)),E||(o=Me({src:o,async:!0,type:"module"},l),(l=Ni.get(b))&&_p(o,l),E=d.createElement("script"),wr(E),yr(E,"link",o),d.head.appendChild(E)),E={type:"script",instance:E,count:1,state:null},m.set(b,E))}}function Xv(o,l,d,m){var b=(b=Pt.current)?Nc(b):null;if(!b)throw Error(A(446));switch(o){case"meta":case"title":return null;case"style":return typeof d.precedence=="string"&&typeof d.href=="string"?(l=Ma(d.href),d=Ti(b).hoistableStyles,m=d.get(l),m||(m={type:"style",instance:null,count:0,state:null},d.set(l,m)),m):{type:"void",instance:null,count:0,state:null};case"link":if(d.rel==="stylesheet"&&typeof d.href=="string"&&typeof d.precedence=="string"){o=Ma(d.href);var E=Ti(b).hoistableStyles,D=E.get(o);if(D||(b=b.ownerDocument||b,D={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},E.set(o,D),(E=b.querySelector(Pi(o)))&&!E._p&&(D.instance=E,D.state.loading=5),Ni.has(o)||(d={rel:"preload",as:"style",href:d.href,crossOrigin:d.crossOrigin,integrity:d.integrity,media:d.media,hrefLang:d.hrefLang,referrerPolicy:d.referrerPolicy},Ni.set(o,d),E||Da(b,o,d,D.state))),l&&m===null)throw Error(A(528,""));return D}if(l&&m!==null)throw Error(A(529,""));return null;case"script":return l=d.async,d=d.src,typeof d=="string"&&l&&typeof l!="function"&&typeof l!="symbol"?(l=Pc(d),d=Ti(b).hoistableScripts,m=d.get(l),m||(m={type:"script",instance:null,count:0,state:null},d.set(l,m)),m):{type:"void",instance:null,count:0,state:null};default:throw Error(A(444,o))}}function Ma(o){return'href="'+Ar(o)+'"'}function Pi(o){return'link[rel="stylesheet"]['+o+"]"}function E1(o){return Me({},o,{"data-precedence":o.precedence,precedence:null})}function Da(o,l,d,m){o.querySelector('link[rel="preload"][as="style"]['+l+"]")?m.loading=1:(l=o.createElement("link"),m.preload=l,l.addEventListener("load",function(){return m.loading|=1}),l.addEventListener("error",function(){return m.loading|=2}),yr(l,"link",d),wr(l),o.head.appendChild(l))}function Pc(o){return'[src="'+Ar(o)+'"]'}function Bc(o){return"script[async]"+o}function x1(o,l,d){if(l.count++,l.instance===null)switch(l.type){case"style":var m=o.querySelector('style[data-href~="'+Ar(d.href)+'"]');if(m)return l.instance=m,wr(m),m;var b=Me({},d,{"data-href":d.href,"data-precedence":d.precedence,href:null,precedence:null});return m=(o.ownerDocument||o).createElement("style"),wr(m),yr(m,"style",b),bp(m,d.precedence,o),l.instance=m;case"stylesheet":b=Ma(d.href);var E=o.querySelector(Pi(b));if(E)return l.state.loading|=4,l.instance=E,wr(E),E;m=E1(d),(b=Ni.get(b))&&Qv(m,b),E=(o.ownerDocument||o).createElement("link"),wr(E);var D=E;return D._p=new Promise(function(N,Z){D.onload=N,D.onerror=Z}),yr(E,"link",m),l.state.loading|=4,bp(E,d.precedence,o),l.instance=E;case"script":return E=Pc(d.src),(b=o.querySelector(Bc(E)))?(l.instance=b,wr(b),b):(m=d,(b=Ni.get(E))&&(m=Me({},d),_p(m,b)),o=o.ownerDocument||o,b=o.createElement("script"),wr(b),yr(b,"link",m),o.head.appendChild(b),l.instance=b);case"void":return null;default:throw Error(A(443,l.type))}else l.type==="stylesheet"&&(l.state.loading&4)===0&&(m=l.instance,l.state.loading|=4,bp(m,d.precedence,o));return l.instance}function bp(o,l,d){for(var m=d.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),b=m.length?m[m.length-1]:null,E=b,D=0;D<m.length;D++){var N=m[D];if(N.dataset.precedence===l)E=N;else if(E!==b)break}E?E.parentNode.insertBefore(o,E.nextSibling):(l=d.nodeType===9?d.head:d,l.insertBefore(o,l.firstChild))}function Qv(o,l){o.crossOrigin==null&&(o.crossOrigin=l.crossOrigin),o.referrerPolicy==null&&(o.referrerPolicy=l.referrerPolicy),o.title==null&&(o.title=l.title)}function _p(o,l){o.crossOrigin==null&&(o.crossOrigin=l.crossOrigin),o.referrerPolicy==null&&(o.referrerPolicy=l.referrerPolicy),o.integrity==null&&(o.integrity=l.integrity)}var wp=null;function Kv(o,l,d){if(wp===null){var m=new Map,b=wp=new Map;b.set(d,m)}else b=wp,m=b.get(d),m||(m=new Map,b.set(d,m));if(m.has(o))return m;for(m.set(o,null),d=d.getElementsByTagName(o),b=0;b<d.length;b++){var E=d[b];if(!(E[Ba]||E[_r]||o==="link"&&E.getAttribute("rel")==="stylesheet")&&E.namespaceURI!=="http://www.w3.org/2000/svg"){var D=E.getAttribute(l)||"";D=o+D;var N=m.get(D);N?N.push(E):m.set(D,[E])}}return m}function S1(o,l,d){o=o.ownerDocument||o,o.head.insertBefore(d,l==="title"?o.querySelector("head > title"):null)}function Bd(o,l,d){if(d===1||l.itemProp!=null)return!1;switch(o){case"meta":case"title":return!0;case"style":if(typeof l.precedence!="string"||typeof l.href!="string"||l.href==="")break;return!0;case"link":if(typeof l.rel!="string"||typeof l.href!="string"||l.href===""||l.onLoad||l.onError)break;return l.rel==="stylesheet"?(o=l.disabled,typeof l.precedence=="string"&&o==null):!0;case"script":if(l.async&&typeof l.async!="function"&&typeof l.async!="symbol"&&!l.onLoad&&!l.onError&&l.src&&typeof l.src=="string")return!0}return!1}function C1(o){return!(o.type==="stylesheet"&&(o.state.loading&3)===0)}function Hd(o,l,d,m){if(d.type==="stylesheet"&&(typeof m.media!="str
25ing"||matchMedia(m.media).matches!==!1)&&(d.state.loading&4)===0){if(d.instance===null){var b=Ma(m.href),E=l.querySelector(Pi(b));if(E){l=E._p,l!==null&&typeof l=="object"&&typeof l.then=="function"&&(o.count++,o=zd.bind(o),l.then(o,o)),d.state.loading|=4,d.instance=E,wr(E);return}E=l.ownerDocument||l,m=E1(m),(b=Ni.get(b))&&Qv(m,b),E=E.createElement("link"),wr(E);var D=E;D._p=new Promise(function(N,Z){D.onload=N,D.onerror=Z}),yr(E,"link",m),d.instance=E}o.stylesheets===null&&(o.stylesheets=new Map),o.stylesheets.set(d,l),(l=d.state.preload)&&(d.state.loading&3)===0&&(o.count++,d=zd.bind(o),l.addEventListener("load",d),l.addEventListener("error",d))}}var Ep=0;function TE(o,l){return o.stylesheets&&o.count===0&&Vd(o,o.stylesheets),0<o.count||0<o.imgCount?function(d){var m=setTimeout(function(){if(o.stylesheets&&Vd(o,o.stylesheets),o.unsuspend){var E=o.unsuspend;o.unsuspend=null,E()}},6e4+l);0<o.imgBytes&&Ep===0&&(Ep=62500*f1());var b=setTimeout(function(){if(o.waitingForImages=!1,o.count===0&&(o.stylesheets&&Vd(o,o.stylesheets),o.unsuspend)){var E=o.unsuspend;o.unsuspend=null,E()}},(o.imgBytes>Ep?50:800)+l);return o.unsuspend=d,function(){o.unsuspend=null,clearTimeout(m),clearTimeout(b)}}:null}function zd(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Vd(this,this.stylesheets);else if(this.unsuspend){var o=this.unsuspend;this.unsuspend=null,o()}}}var Fd=null;function Vd(o,l){o.stylesheets=null,o.unsuspend!==null&&(o.count++,Fd=new Map,l.forEach(ME,o),Fd=null,zd.call(o))}function ME(o,l){if(!(l.state.loading&4)){var d=Fd.get(o);if(d)var m=d.get(null);else{d=new Map,Fd.set(o,d);for(var b=o.querySelectorAll("link[data-precedence],style[data-precedence]"),E=0;E<b.length;E++){var D=b[E];(D.nodeName==="LINK"||D.getAttribute("media")!=="not all")&&(d.set(D.dataset.precedence,D),m=D)}m&&d.set(null,m)}b=l.instance,D=b.getAttribute("data-precedence"),E=d.get(D)||m,E===m&&d.set(null,b),d.set(D,b),this.count++,m=zd.bind(this),b.addEventListener("load",m),b.addEventListener("error",m),E?E.parentNode.insertBefore(b,E.nextSibling):(o=o.nodeType===9?o.head:o,o.insertBefore(b,o.firstChild)),l.state.loading|=4}}var Hc={$$typeof:ie,Provider:null,Consumer:null,_currentValue:Cr,_currentValue2:Cr,_threadCount:0};function DE(o,l,d,m,b,E,D,N,Z){this.tag=1,this.containerInfo=o,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=zm(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=zm(0),this.hiddenUpdates=zm(null),this.identifierPrefix=m,this.onUncaughtError=b,this.onCaughtError=E,this.onRecoverableError=D,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=Z,this.incompleteTransitions=new Map}function Jv(o,l,d,m,b,E,D,N,Z,le,we,De){return o=new DE(o,l,d,D,Z,le,we,De,N),l=1,E===!0&&(l|=24),E=ei(3,null,null,l),o.current=E,E.stateNode=o,l=Kl(),l.refCount++,o.pooledCache=l,l.refCount++,E.memoizedState={element:m,isDehydrated:d,cache:l},yh(E),o}function e0(o){return o?(o=jo,o):jo}function t0(o,l,d,m,b,E){b=e0(b),m.context===null?m.context=b:m.pendingContext=b,m=Zs(l),m.payload={element:d},E=E===void 0?null:E,E!==null&&(m.callback=E),d=$a(o,m,l),d!==null&&(Dr(d,o,l),Rr(d,o,l))}function T1(o,l){if(o=o.memoizedState,o!==null&&o.dehydrated!==null){var d=o.retryLane;o.retryLane=d!==0&&d<l?d:l}}function xp(o,l){T1(o,l),(o=o.alternate)&&T1(o,l)}function M1(o){if(o.tag===13||o.tag===31){var l=Vs(o,67108864);l!==null&&Dr(l,o,67108864),xp(o,67108864)}}function n0(o){if(o.tag===13||o.tag===31){var l=gr();l=Bl(l);var d=Vs(o,l);d!==null&&Dr(d,o,l),xp(o,l)}}var Sp=!0;function D1(o,l,d,m){var b=Ue.T;Ue.T=null;var E=at.p;try{at.p=2,Cp(o,l,d,m)}finally{at.p=E,Ue.T=b}}function OE(o,l,d,m){var b=Ue.T;Ue.T=null;var E=at.p;try{at.p=8,Cp(o,l,d,m)}finally{at.p=E,Ue.T=b}}function Cp(o,l,d,m){if(Sp){var b=Tp(m);if(b===null)Rd(o,l,m,cs,d),pl(o,m);else if(kE(b,o,l,d,m))m.stopPropagation();else if(pl(o,m),l&4&&-1<O1.indexOf(o)){for(;b!==null;){var E=Is(b);if(E!==null)switch(E.tag){case 3:if(E=E.stateNode,E.current.memoizedState.isDehydrated){var D=As(E.pendingLanes);if(D!==0){var N=E;for(N.pendingLanes|=2,N.entangledLanes|=2;D;){var Z=1<<31-Tr(D);N.entanglements[1]|=Z,D&=~Z}Ki(E),(en&6)===0&&(Md=Yr()+500,kc(0,!1))}}break;case 31:case 13:N=Vs(E,2),N!==null&&Dr(N,E,2),ro(),xp(E,2)}if(E=Tp(m),E===null&&Rd(o,l,m,cs,d),E===b)break;b=E}b!==null&&m.stopPropagation()}else Rd(o,l,m,null,d)}}function Tp(o){return o=Wf(o),zc(o)}var cs=null;function zc(o){if(cs=null,o=Rs(o),o!==null){var l=se(o);if(l===null)o=null;else{var d=l.tag;if(d===13){if(o=K(l),o!==null)return o;o=null}else if(d===31){if(o=G(l),o!==null)return o;o=null}else if(d===3){if(l.stateNode.current.memoizedState.isDehydrated)return l.tag===3?l.stateNode.containerInfo:null;o=null}else l!==o&&(o=null)}}return cs=o,null}function Mp(o){switch(o){case"beforetoggle":case"cancel":case"click":case"close"
vendor: 5,657 bytes, line 25
25:case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Kr()){case Nf:return 2;case Pm:return 8;case Il:case eE:return 32;case Na:return 268435456;default:return 32}default:return 32}}var Dp=!1,us=null,ds=null,ta=null,Fc=new Map,Vc=new Map,Oa=[],O1="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function pl(o,l){switch(o){case"focusin":case"focusout":us=null;break;case"dragenter":case"dragleave":ds=null;break;case"mouseover":case"mouseout":ta=null;break;case"pointerover":case"pointerout":Fc.delete(l.pointerId);break;case"gotpointercapture":case"lostpointercapture":Vc.delete(l.pointerId)}}function Yc(o,l,d,m,b,E){return o===null||o.nativeEvent!==E?(o={blockedOn:l,domEventName:d,eventSystemFlags:m,nativeEvent:E,targetContainers:[b]},l!==null&&(l=Is(l),l!==null&&M1(l)),o):(o.eventSystemFlags|=m,l=o.targetContainers,b!==null&&l.indexOf(b)===-1&&l.push(b),o)}function kE(o,l,d,m,b){switch(l){case"focusin":return us=Yc(us,o,l,d,m,b),!0;case"dragenter":return ds=Yc(ds,o,l,d,m,b),!0;case"mouseover":return ta=Yc(ta,o,l,d,m,b),!0;case"pointerover":var E=b.pointerId;return Fc.set(E,Yc(Fc.get(E)||null,o,l,d,m,b)),!0;case"gotpointercapture":return E=b.pointerId,Vc.set(E,Yc(Vc.get(E)||null,o,l,d,m,b)),!0}return!1}function Yd(o){var l=Rs(o.target);if(l!==null){var d=se(l);if(d!==null){if(l=d.tag,l===13){if(l=K(d),l!==null){o.blockedOn=l,Ym(o.priority,function(){n0(d)});return}}else if(l===31){if(l=G(d),l!==null){o.blockedOn=l,Ym(o.priority,function(){n0(d)});return}}else if(l===3&&d.stateNode.current.memoizedState.isDehydrated){o.blockedOn=d.tag===3?d.stateNode.containerInfo:null;return}}}o.blockedOn=null}function Op(o){if(o.blockedOn!==null)return!1;for(var l=o.targetContainers;0<l.length;){var d=Tp(o.nativeEvent);if(d===null){d=o.nativeEvent;var m=new d.constructor(d.type,d);jf=m,d.target.dispatchEvent(m),jf=null}else return l=Is(d),l!==null&&M1(l),o.blockedOn=d,!1;l.shift()}return!0}function jd(o,l,d){Op(o)&&d.delete(l)}function LE(){Dp=!1,us!==null&&Op(us)&&(us=null),ds!==null&&Op(ds)&&(ds=null),ta!==null&&Op(ta)&&(ta=null),Fc.forEach(jd),Vc.forEach(jd)}function kp(o,l){o.blockedOn===l&&(o.blockedOn=null,Dp||(Dp=!0,re.unstable_scheduleCallback(re.unstable_NormalPriority,LE)))}var Lp=null;function k1(o){Lp!==o&&(Lp=o,re.unstable_scheduleCallback(re.unstable_NormalPriority,function(){Lp===o&&(Lp=null);for(var l=0;l<o.length;l+=3){var d=o[l],m=o[l+1],b=o[l+2];if(typeof m!="function"){if(zc(m||d)===null)continue;break}var E=Is(d);E!==null&&(o.splice(l,3),l-=3,Oh(E,{pending:!0,data:b,method:d.method,action:m},m,b))}}))}function jc(o){function l(Z){return kp(Z,o)}us!==null&&kp(us,o),ds!==null&&kp(ds,o),ta!==null&&kp(ta,o),Fc.forEach(l),Vc.forEach(l);for(var d=0;d<Oa.length;d++){var m=Oa[d];m.blockedOn===o&&(m.blockedOn=null)}for(;0<Oa.length&&(d=Oa[0],d.blockedOn===null);)Yd(d),d.blockedOn===null&&Oa.shift();if(d=(o.ownerDocument||o).$$reactFormReplay,d!=null)for(m=0;m<d.length;m+=3){var b=d[m],E=d[m+1],D=b[jr]||null;if(typeof E=="function")D||k1(d);else if(D){var N=null;if(E&&E.hasAttribute("formAction")){if(b=E,D=E[jr]||null)N=D.formAction;else if(zc(b)!==null)continue}else N=D.action;typeof N=="function"?d[m+1]=N:(d.splice(m,3),m-=3),k1(d)}}}function L1(){function o(E){E.canIntercept&&E.info==="react-transition"&&E.intercept({handler:function(){return new Promise(function(D){return b=D})},focusReset:"manual",scroll:"manual"})}function l(){b!==null&&(b(),b=null),m||setTimeout(d,20)}function d(){if(!m&&!navigation.transition){var E=navigation.currentEntry;E&&E.url!=null&&navigation.navigate(E.url,{state:E.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var m=!1,b=null;return navigation.addEventListener("navigate",o),navigation.addEventListener("navigatesuccess",l),navigation.addEventListener("navigateerror",l),setTimeout(d,100),function(){m=!0,navigation.removeEventListener("navigate",o),navigation.removeEventListener("navigatesuccess",l),navigation.removeEventListener("navigateerror",l),b!==null&&(b(),b=null)}}}function Wd(o){this._internalRoot=o}Ap.prototype.render=Wd.prototype.render=function(o){var l=this._internalRoot;if(l===null)throw Error(A(409));var d=l.current,m=gr();t0(d,m,o,l,null,null)},Ap.prototype.unmount=Wd.prototype.unmount=function(){var o=this._internalRoot;if(o!==null){this._internalRoot=null;var l=o.containerInfo;t0(o.current,2,null,o,null,null),ro(),l[Ro]=null}};function Ap(o){this._internalRoot=o}
25Ap.prototype.unstable_scheduleHydration=function(o){if(o){var l=Bf();o={blockedOn:null,target:o,priority:l};for(var d=0;d<Oa.length&&l!==0&&l<Oa[d].priority;d++);Oa.splice(d,0,o),d===0&&Yd(o)}};var Rp=p.version;if(Rp!=="19.2.4")throw Error(A(527,Rp,"19.2.4"));at.findDOMNode=function(o){var l=o._reactInternals;if(l===void 0)throw typeof o.render=="function"?Error(A(188)):(o=Object.keys(o).join(","),Error(A(268,o)));return o=ge(l),o=o!==null?Ce(o):null,o=o===null?null:o.stateNode,o};var A1={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:Ue,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ip=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ip.isDisabled&&Ip.supportsFiber)try{Eu=Ip.inject(A1),At=Ip}catch{}}U.createRoot=function(o,l){if(!te(o))throw Error(A(299));var d=!1,m="",b=tv,E=nv,D=Ub;return l!=null&&(l.unstable_strictMode===!0&&(d=!0),l.identifierPrefix!==void 0&&(m=l.identifierPrefix),l.onUncaughtError!==void 0&&(b=l.onUncaughtError),l.onCaughtError!==void 0&&(E=l.onCaughtError),l.onRecoverableError!==void 0&&(D=l.onRecoverableError)),l=Jv(o,1,!1,null,null,d,m,null,b,E,D,L1),o[Ro]=l.current,Ad(o),new Wd(l)},he=function(o,l,d){if(!te(o))throw Error(A(299));var m=!1,b="",E=tv,D=nv,N=Ub,Z=null;return d!=null&&(d.unstable_strictMode===!0&&(m=!0),d.identifierPrefix!==void 0&&(b=d.identifierPrefix),d.onUncaughtError!==void 0&&(E=d.onUncaughtError),d.onCaughtError!==void 0&&(D=d.onCaughtError),d.onRecoverableError!==void 0&&(N=d.onRecoverableError),d.formState!==void 0&&(Z=d.formState)),l=Jv(o,1,!0,l,d??null,m,b,Z,E,D,N,L1),l.context=e0(null),d=l.current,m=gr(),m=Bl(m),b=Zs(m),b.callback=null,$a(d,b,m),d=m,l.current.lanes=d,Pl(l,d),Ki(l),o[Ro]=l.current,Ad(o),new Ap(l)},he="19.2.4"},313(Le,U,de){"use strict";Object.defineProperty(U,"__esModule",{value:!0});var he=de(147),re=p(he);function p(Q){return Q&&Q.__esModule?Q:{default:Q}}U.default=function(Q){var A=new Promise(function(te){if(window.YT&&window.YT.Player&&window.YT.Player instanceof Function){te(window.YT);return}else{var se=window.location.protocol==="http:"?"http:":"https:";(0,re.default)(se+"//www.youtube.com/iframe_api",function(G){G&&Q.trigger("error",G)})}var K=window.onYouTubeIframeAPIReady;window.onYouTubeIframeAPIReady=function(){K&&K(),te(window.YT)}});return A},Le.exports=U.default},325(Le,U,de){"use strict";Object.defineProperty(U,"__esModule",{value:!0});var he=de(602),re=G(he),p=de(345),Q=G(p),A=de(769),te=G(A),se=de(748),K=G(se);function G(Ce){return Ce&&Ce.__esModule?Ce:{default:Ce}}var j=(0,re.default)("youtube-player"),ge={};ge.proxyEvents=function(Ce){var Me={},Te=function(Ee){var ke="on"+Ee.slice(0,1).toUpperCase()+Ee.slice(1);Me[ke]=function(bt){j('event "%s"',ke,bt),Ce.trigger(Ee,bt)}},me=!0,Pe=!1,ve=void 0;try{for(var Ye=te.default[Symbol.iterator](),R;!(me=(R=Ye.next()).done);me=!0){var z=R.value;Te(z)}}catch(ie){Pe=!0,ve=ie}finally{try{!me&&Ye.return&&Ye.return()}finally{if(Pe)throw ve}}return Me},ge.promisifyPlayer=function(Ce){var Me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Te={},me=function(ke){Me&&K.default[ke]?Te[ke]=function(){for(var bt=arguments.length,St=Array(bt),mt=0;mt<bt;mt++)St[mt]=arguments[mt];return Ce.then(function(wt){var Sn=K.default[ke],Zt=wt.getPlayerState(),kt=wt[ke].apply(wt,St);return Sn.stateChangeRequired||Array.isArray(Sn.acceptableStates)&&Sn.acceptableStates.indexOf(Zt)===-1?new Promise(function(ze){var He=function ut(){var Ue=wt.getPlayerState(),at=void 0;typeof Sn.timeout=="number"&&(at=setTimeout(function(){wt.removeEventListener("onStateChange",ut),ze()},Sn.timeout)),Array.isArray(Sn.acceptableStates)&&Sn.acceptableStates.indexOf(Ue)!==-1&&(wt.removeEventListener("onStateChange",ut),clearTimeout(at),ze())};wt.addEventListener("onStateChange",He)}).then(function(){return kt}):kt})}:Te[ke]=function(){for(var bt=arguments.length,St=Array(bt),mt=0;mt<bt;mt++)St[mt]=arguments[mt];return Ce.then(function(wt){return wt[ke].apply(wt,St)})}},Pe=!0,ve=!1,Ye=void 0;try{for(var R=Q.default[Symbol.iterator](),z;!(Pe=(z=R.next()).done);Pe=!0){var ie=z.value;me(ie)}}catch(Ee){ve=!0,Ye=Ee}finally{try{!Pe&&R.return&&R.return()}finally{if(ve)throw Ye}}return Te},U.default=ge,Le.exports=U.default},338(Le,U,de){"use strict";function he(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(he)}catch(re){console.error(re)}}
25he(),Le.exports=de(247)},345(Le,U){"use strict";Object.defineProperty(U,"__esModule",{value:!0}),U.default=["cueVideoById","loadVideoById","cueVideoByUrl","loadVideoByUrl","playVideo","pauseVideo","stopVideo","getVideoLoadedFraction","cuePlaylist","loadPlaylist","nextVideo","previousVideo","playVideoAt","setShuffle","setLoop","getPlaylist","getPlaylistIndex","setOption","mute","unMute","isMuted","setVolume","getVolume","seekTo","getPlayerState","getPlaybackRate","setPlaybackRate","getAvailablePlaybackRates","getPlaybackQuality","setPlaybackQuality","getAvailableQualityLevels","getCurrentTime","getDuration","removeEventListener","getVideoUrl","getVideoEmbedCode","getOptions","getOption","addEventListener","destroy","setSize","getIframe"],Le.exports=U.default},379(Le){function U(p,Q){if(!(p instanceof Q))throw new TypeError("Cannot call a class as a function")}function de(p,Q){for(var A=0;A<Q.length;A++){var te=Q[A];te.enumerable=te.enumerable||!1,te.configurable=!0,"value"in te&&(te.writable=!0),Object.defineProperty(p,te.key,te)}}function he(p,Q,A){return Q&&de(p.prototype,Q),A&&de(p,A),p}/**
26 * Sticky.js
27 * Library for sticky elements written in vanilla javascript. With this library you can easily set sticky elements on your website. It's also responsive.
28 *
29 * @version 1.3.0
30 * @author Rafal Galus <[email protected]>
31 * @website https://rgalus.github.io/sticky-js/
32 * @repo https://github.com/rgalus/sticky-js
33 * @license https://github.com/rgalus/sticky-js/blob/master/LICENSE
34 */var re=(function(){function p(){var Q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};U(this,p),this.selector=Q,this.elements=[],this.version="1.3.0",this.vp=this.getViewportSize(),this.body=document.querySelector("body"),this.options={wrap:A.wrap||!1,wrapWith:A.wrapWith||"<span></span>",marginTop:A.marginTop||0,marginBottom:A.marginBottom||0,stickyFor:A.stickyFor||0,stickyClass:A.stickyClass||null,stickyContainer:A.stickyContainer||"body"},this.updateScrollTopPosition=this.updateScrollTopPosition.bind(this),this.updateScrollTopPosition(),window.addEventListener("load",this.updateScrollTopPosition),window.addEventListener("scroll",this.updateScrollTopPosition),this.run()}return he(p,[{key:"run",value:function(){var A=this,te=setInterval(function(){if(document.readyState==="complete"){clearInterval(te);var se=document.querySelectorAll(A.selector);A.forEach(se,function(K){return A.renderElement(K)})}},10)}},{key:"renderElement",value:function(A){var te=this;A.sticky={},A.sticky.active=!1,A.sticky.marginTop=parseInt(A.getAttribute("data-margin-top"))||this.options.marginTop,A.sticky.marginBottom=parseInt(A.getAttribute("data-margin-bottom"))||this.options.marginBottom,A.sticky.stickyFor=parseInt(A.getAttribute("data-sticky-for"))||this.options.stickyFor,A.sticky.stickyClass=A.getAttribute("data-sticky-class")||this.options.stickyClass,A.sticky.wrap=A.hasAttribute("data-sticky-wrap")?!0:this.options.wrap,A.sticky.stickyContainer=this.options.stickyContainer,A.sticky.container=this.getStickyContainer(A),A.sticky.container.rect=this.getRectangle(A.sticky.container),A.sticky.rect=this.getRectangle(A),A.tagName.toLowerCase()==="img"&&(A.onload=function(){return A.sticky.rect=te.getRectangle(A)}),A.sticky.wrap&&this.wrapElement(A),this.activate(A)}},{key:"wrapElement",value:function(A){A.insertAdjacentHTML("beforebegin",A.getAttribute("data-sticky-wrapWith")||this.options.wrapWith),A.previousSibling.appendChild(A)}},{key:"activate",value:function(A){A.sticky.rect.top+A.sticky.rect.height<A.sticky.container.rect.top+A.sticky.container.rect.height&&A.sticky.stickyFor<this.vp.width&&!A.sticky.active&&(A.sticky.active=!0),this.elements.indexOf(A)<0&&this.elements.push(A),A.sticky.resizeEvent||(this.initResizeEvents(A),A.sticky.resizeEvent=!0),A.sticky.scrollEvent||(this.initScrollEvents(A),A.sticky.scrollEvent=!0),this.setPosition(A)}},{key:"initResizeEvents",value:function(A){var te=this;A.sticky.resizeListener=function(){return te.onResizeEvents(A)},window.addEventListener("resize",A.sticky.resizeListener)}},{key:"destroyResizeEvents",value:function(A){window.removeEventListener("resize",A.sticky.resizeListener)}},{key:"onResizeEvents",value:function(A){this.vp=this.getViewportSize(),A.sticky.rect=this.getRectangle(A),A.sticky.container.rect=this.getRectangle(A.sticky.container),A.sticky.rect.top+A.sticky.rect.height<A.sticky.container.rect.top+A.sticky.container.rect.height&&A.sticky.stickyFor<this.vp.width&&!A.sticky.active?A.sticky.active=!0:(A.sticky.rect.top+A.sticky.rect.height>=A.sticky.container.rect.top+A.sticky.container.rect.height||A.sticky.stickyFor>=this.vp.width&&A.sticky.active)&&(A.sticky.active=!1),this.setPosition(A)}},{key:"initScrollEvents",value:function(A){var te=this;A.sticky.scrollListener=function(){return te.onScrollEvents(A)},window.addEventListener("scroll",A.sticky.scrollListener)}},{key:"destroyScrollEvents",value:function(A){window.removeEventListener("scroll",A.sticky.scrollListener)}},{key:"onScrollEvents",value:function(A){A.sticky&&A.sticky.active&&this.setPosition(A)}},{key:"setPosition",value:function(A){this.css(A,{position:"",width:"",top:"",left:""}),!(this.vp.height<A.sticky.rect.height||!A.sticky.active)&&(A.sticky.rect.width||(A.sticky.rect=this.getRectangle(A)),A.sticky.wrap&&this.css(A.parentNode,{display:"block",width:A.sticky.rect.width+"px",height:A.sticky.rect.height+"px"}),A.sticky.rect.top===0&&A.sticky.container===this.body?(this.css(A,{position:"fixed",top:A.sticky.rect.top+"px",left:A.sticky.rect.left+"px",width:A.sticky.rect.width+"px"}),A.sticky.stickyClass&&A.classList.add(A.sticky.stickyClass)):this.scrollTop>A.sticky.rect.top-A.sticky.marginTop?(this.css(A,{position:"fixed",width:A.sticky.rect.width+"px",left:A.sticky.rect.left+"px"}),this.scrollTop+A.sticky.rect.height+A.sticky.marginTop>A.sticky.container.rect.top+A.sticky.container.offsetHeight-A.sticky.marginBottom?(A.sticky.stickyClass&&A.classList.remove(A.sticky.stickyClass),this.css(A,{top:A.sticky.container.rect.top+A.sticky.container.offsetHeight-(this.scrollTop+A.sticky.rect.height+A.sticky.marginBottom)+"px"})):(A.sticky.stickyClass&&A.classList.add(A.sticky.stickyClass),this.css(A,{top:A.sticky.marginTop+"px"}))):(A.sticky.stickyClass&&A.classList.remove(A.sticky.stickyClass),this.css(A,{position:"",width:"",top:"",left:""}),A.sticky.wrap&&this.css(A.parentNode,{display:"",width:"",height:""})))}},{key:"update",value:function(){var A=this;this.forEach(this.elements,function(te){te.sticky.rect=A.getRectangle(te),te.sticky.container.rect=A.getRectangle(te.sticky.container),A.activate(te),A.setPosition(te)})}},{key:"destroy",value:function(){var A=this;window.removeEventListener("load",this.updateScrollTopPosition),window.removeEventListener("scroll",this.updateScrollTopPosition),this.forEach(this.elements,function(te){A.destroyResizeEvents(te),A.destroyScrollEvents(te),delete te.sticky})}},{key:"getStickyContainer",value:function(A){for(var te=A.parentNode;!te.hasAttribute("data-sticky-container")&&!te.parentNode.querySelector(A.sticky.stickyContainer)&&te!==this.body;)te=te.parentNode;return te}},{key:"getRectangle",value:function(A){this.css(A,{position:"",width:"",top:"",left:""});var te=Math.max(A.offsetWidth,A.clientWidth,A.scrollWidth),se=Math.max(A.offsetHeight,A.clientHeight,A.scrollHeight),K=0,G=0;do K+=A.offsetTop||0,G+=A.offsetLeft||0,A=A.offsetParent;while(A);return{top:K,left:G,width:te,height:se}}},{key:"getViewportSize",value:function(){return{width:Math.max(document.documentElement.clientWidth,window.innerWidth||0),height:Math.max(document.documentElement.clientHeight,window.innerHeight||0)}}},{key:"updateScrollTopPosition",value:function(){this.scrollTop=(window.pageYOffset||document.scrollTop)-(document.clientTop||0)||0}}
vendor: 4,692 bytes, lines 34-46
34,{key:"forEach",value:function(A,te){for(var se=0,K=A.length;se<K;se++)te(A[se])}},{key:"css",value:function(A,te){for(var se in te)te.hasOwnProperty(se)&&(A.style[se]=te[se])}}]),p})();(function(p,Q){Le.exports=Q})(this,re)},438(Le,U,de){var he=de(379);Le.exports=he},477(Le,U){"use strict";/**
35 * @license React
36 * scheduler.production.js
37 *
38 * Copyright (c) Meta Platforms, Inc. and affiliates.
39 *
40 * This source code is licensed under the MIT license found in the
41 * LICENSE file in the root directory of this source tree.
42 */function de(ze,He){var ut=ze.length;ze.push(He);e:for(;0<ut;){var Ue=ut-1>>>1,at=ze[Ue];if(0<p(at,He))ze[Ue]=He,ze[ut]=at,ut=Ue;else break e}}function he(ze){return ze.length===0?null:ze[0]}function re(ze){if(ze.length===0)return null;var He=ze[0],ut=ze.pop();if(ut!==He){ze[0]=ut;e:for(var Ue=0,at=ze.length,Cr=at>>>1;Ue<Cr;){var J=2*(Ue+1)-1,Ae=ze[J],Je=J+1,Xe=ze[Je];if(0>p(Ae,ut))Je<at&&0>p(Xe,Ae)?(ze[Ue]=Xe,ze[Je]=ut,Ue=Je):(ze[Ue]=Ae,ze[J]=ut,Ue=J);else if(Je<at&&0>p(Xe,ut))ze[Ue]=Xe,ze[Je]=ut,Ue=Je;else break e}}return He}function p(ze,He){var ut=ze.sortIndex-He.sortIndex;return ut!==0?ut:ze.id-He.id}if(U.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var Q=performance;U.unstable_now=function(){return Q.now()}}else{var A=Date,te=A.now();U.unstable_now=function(){return A.now()-te}}var se=[],K=[],G=1,j=null,ge=3,Ce=!1,Me=!1,Te=!1,me=!1,Pe=typeof setTimeout=="function"?setTimeout:null,ve=typeof clearTimeout=="function"?clearTimeout:null,Ye=typeof setImmediate<"u"?setImmediate:null;function R(ze){for(var He=he(K);He!==null;){if(He.callback===null)re(K);else if(He.startTime<=ze)re(K),He.sortIndex=He.expirationTime,de(se,He);else break;He=he(K)}}function z(ze){if(Te=!1,R(ze),!Me)if(he(se)!==null)Me=!0,ie||(ie=!0,wt());else{var He=he(K);He!==null&&kt(z,He.startTime-ze)}}var ie=!1,Ee=-1,ke=5,bt=-1;function St(){return me?!0:!(U.unstable_now()-bt<ke)}function mt(){if(me=!1,ie){var ze=U.unstable_now();bt=ze;var He=!0;try{e:{Me=!1,Te&&(Te=!1,ve(Ee),Ee=-1),Ce=!0;var ut=ge;try{t:{for(R(ze),j=he(se);j!==null&&!(j.expirationTime>ze&&St());){var Ue=j.callback;if(typeof Ue=="function"){j.callback=null,ge=j.priorityLevel;var at=Ue(j.expirationTime<=ze);if(ze=U.unstable_now(),typeof at=="function"){j.callback=at,R(ze),He=!0;break t}j===he(se)&&re(se),R(ze)}else re(se);j=he(se)}if(j!==null)He=!0;else{var Cr=he(K);Cr!==null&&kt(z,Cr.startTime-ze),He=!1}}break e}finally{j=null,ge=ut,Ce=!1}He=void 0}}finally{He?wt():ie=!1}}}var wt;if(typeof Ye=="function")wt=function(){Ye(mt)};else if(typeof MessageChannel<"u"){var Sn=new MessageChannel,Zt=Sn.port2;Sn.port1.onmessage=mt,wt=function(){Zt.postMessage(null)}}else wt=function(){Pe(mt,0)};function kt(ze,He){Ee=Pe(function(){ze(U.unstable_now())},He)}U.unstable_IdlePriority=5,U.unstable_ImmediatePriority=1,U.unstable_LowPriority=4,U.unstable_NormalPriority=3,U.unstable_Profiling=null,U.unstable_UserBlockingPriority=2,U.unstable_cancelCallback=function(ze){ze.callback=null},U.unstable_forceFrameRate=function(ze){0>ze||125<ze?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ke=0<ze?Math.floor(1e3/ze):5},U.unstable_getCurrentPriorityLevel=function(){return ge},U.unstable_next=function(ze){switch(ge){case 1:case 2:case 3:var He=3;break;default:He=ge}var ut=ge;ge=He;try{return ze()}finally{ge=ut}},U.unstable_requestPaint=function(){me=!0},U.unstable_runWithPriority=function(ze,He){switch(ze){case 1:case 2:case 3:case 4:case 5:break;default:ze=3}var ut=ge;ge=ze;try{return He()}finally{ge=ut}},U.unstable_scheduleCallback=function(ze,He,ut){var Ue=U.unstable_now();switch(typeof ut=="object"&&ut!==null?(ut=ut.delay,ut=typeof ut=="number"&&0<ut?Ue+ut:Ue):ut=Ue,ze){case 1:var at=-1;break;case 2:at=250;break;case 5:at=1073741823;break;case 4:at=1e4;break;default:at=5e3}return at=ut+at,ze={id:G++,callback:He,priorityLevel:ze,startTime:ut,expirationTime:at,sortIndex:-1},ut>Ue?(ze.sortIndex=ut,de(K,ze),he(se)===null&&ze===he(K)&&(Te?(ve(Ee),Ee=-1):Te=!0,kt(z,ut-Ue))):(ze.sortIndex=at,de(se,ze),Me||Ce||(Me=!0,ie||(ie=!0,wt()))),ze},U.unstable_shouldYield=St,U.unstable_wrapCallback=function(ze){var He=ge;return function(){var ut=ge;ge=He;try{return ze.apply(this,arguments)}finally{ge=ut}}}},485(Le,U,de){var he,re;/*!
43* getSize v2.0.3
44* measure size of elements
45* MIT license
46*/(function(p,Q){he=Q,re=typeof he=="function"?he.call(U,de,U,Le):he,re!==void 0&&(Le.exports=re)})(window,function(){"use strict";function Q(me){var Pe=parseFloat(me),ve=me.indexOf("%")==-1&&!isNaN(Pe);return ve&&Pe}function A(){}var te=typeof console>"u"?A:function(me){console.error(me)}
46,se=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],K=se.length;function G(){for(var me={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},Pe=0;Pe<K;Pe++){var ve=se[Pe];me[ve]=0}return me}function j(me){var Pe=getComputedStyle(me);return Pe||te("Style returned "+Pe+". Are you running this code in a hidden iframe on Firefox? See https://bit.ly/getsizebug1"),Pe}var ge=!1,Ce;function Me(){if(!ge){ge=!0;var me=document.createElement("div");me.style.width="200px",me.style.padding="1px 2px 3px 4px",me.style.borderStyle="solid",me.style.borderWidth="1px 2px 3px 4px",me.style.boxSizing="border-box";var Pe=document.body||document.documentElement;Pe.appendChild(me);var ve=j(me);Ce=Math.round(Q(ve.width))==200,Te.isBoxSizeOuter=Ce,Pe.removeChild(me)}}function Te(me){if(Me(),typeof me=="string"&&(me=document.querySelector(me)),!(!me||typeof me!="object"||!me.nodeType)){var Pe=j(me);if(Pe.display=="none")return G();var ve={};ve.width=me.offsetWidth,ve.height=me.offsetHeight;for(var Ye=ve.isBorderBox=Pe.boxSizing=="border-box",R=0;R<K;R++){var z=se[R],ie=Pe[z],Ee=parseFloat(ie);ve[z]=isNaN(Ee)?0:Ee}var ke=ve.paddingLeft+ve.paddingRight,bt=ve.paddingTop+ve.paddingBottom,St=ve.marginLeft+ve.marginRight,mt=ve.marginTop+ve.marginBottom,wt=ve.borderLeftWidth+ve.borderRightWidth,Sn=ve.borderTopWidth+ve.borderBottomWidth,Zt=Ye&&Ce,kt=Q(Pe.width);kt!==!1&&(ve.width=kt+(Zt?0:ke+wt));var ze=Q(Pe.height);return ze!==!1&&(ve.height=ze+(Zt?0:bt+Sn)),ve.innerWidth=ve.width-(ke+wt),ve.innerHeight=ve.height-(bt+Sn),ve.outerWidth=ve.width+St,ve.outerHeight=ve.height+mt,ve}}return Te})},517(Le,U,de){"use strict";Object.defineProperty(U,"__esModule",{value:!0});var he=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(j){return typeof j}:function(j){return j&&typeof Symbol=="function"&&j.constructor===Symbol&&j!==Symbol.prototype?"symbol":typeof j},re=de(666),p=K(re),Q=de(313),A=K(Q),te=de(325),se=K(te);function K(j){return j&&j.__esModule?j:{default:j}}var G=void 0;U.default=function(j){var ge=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ce=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Me=(0,p.default)();if(G||(G=(0,A.default)(Me)),ge.events)throw new Error("Event handlers cannot be overwritten.");if(typeof j=="string"&&!document.getElementById(j))throw new Error('Element "'+j+'" does not exist.');ge.events=se.default.proxyEvents(Me);var Te=new Promise(function(Pe){if((typeof j>"u"?"undefined":he(j))==="object"&&j.playVideo instanceof Function){var ve=j;Pe(ve)}else G.then(function(Ye){var R=new Ye.Player(j,ge);return Me.on("ready",function(){Pe(R)}),null})}),me=se.default.promisifyPlayer(Te,Ce);return me.on=Me.on,me.off=Me.off,me},Le.exports=U.default},528(Le,U,de){"use strict";Object.defineProperty(U,"__esModule",{value:!0});var he=Object.assign||function(Pe){for(var ve=1;ve<arguments.length;ve++){var Ye=arguments[ve];for(var R in Ye)Object.prototype.hasOwnProperty.call(Ye,R)&&(Pe[R]=Ye[R])}return Pe},re=(function(){function Pe(ve,Ye){for(var R=0;R<Ye.length;R++){var z=Ye[R];z.enumerable=z.enumerable||!1,z.configurable=!0,"value"in z&&(z.writable=!0),Object.defineProperty(ve,z.key,z)}}return function(ve,Ye,R){return Ye&&Pe(ve.prototype,Ye),R&&Pe(ve,R),ve}})(),p=de(540),Q=j(p),A=de(556),te=j(A),se=de(181),K=j(se),G=de(946);function j(Pe){return Pe&&Pe.__esModule?Pe:{default:Pe}}function ge(Pe,ve){if(!(Pe instanceof ve))throw new TypeError("Cannot call a class as a function")}function Ce(Pe,ve){if(!Pe)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ve&&(typeof ve=="object"||typeof ve=="function")?ve:Pe}function Me(Pe,ve){if(typeof ve!="function"&&ve!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof ve);Pe.prototype=Object.create(ve&&ve.prototype,{constructor:{value:Pe,enumerable:!1,writable:!0,configurable:!0}}),ve&&(Object.setPrototypeOf?Object.setPrototypeOf(Pe,ve):Pe.__proto__=ve)}var Te=function(ve){return{mainText:ve.main_text,secondaryText:ve.secondary_text}},me=(function(Pe){Me(ve,Pe);function ve(Ye){ge(this,ve);var R=Ce(this,(ve.__proto__||Object.getPrototypeOf(ve)).call(this,Ye));return R.init=function(){if(!window.google)throw new Error("[react-places-autocomplete]: Google Maps JavaScript API library must be loaded. See: https://github.com/kenny-hibino/react-places-autocomplete#load-google-library");if(!window.google.maps.places)throw new Error("[react-places-autocomplete]: Google Maps Places library must be loaded. Please add `libraries=places` to the src URL. See: https://github.com/kenny-hibino/react-places-autocomplete#load-google-library");R.autocompleteService=new window.google.maps.places.AutocompleteService,R.autocompleteOK=window.google.maps.places.PlacesServiceStatus.OK,R.setState(function(z){return z.ready?null:{ready:!0}})},R.autocompleteCallback=function(z,ie){if(R.setState({loading:!1}),ie!==R.autocompleteOK){R.props.onError(ie,R.clearSuggestions);return}var Ee=R.props.highlightFirstSuggestion;R.setState({suggestions:z.map(function(ke,bt){return{id:ke.id,description:ke.description,placeId:ke.place_id,active:!!(Ee&&bt===0),index:bt,formattedSuggestion:Te(ke.structured_formatting),matchedSubstrings:ke.matched_substrings,terms:ke.terms,types:ke.types}})})},R.fetchPredictions=function(){var z=R.props.value;z.length&&(R.setState({loading:!0}),R.autocompleteService.getPlacePredictions(he({},R.props.searchOptions,{input:z}),R.autocompleteCallback))},R.clearSuggestions=function(){R.setState({suggestions:[]})},R.clearActive=function(){R.setState({suggestions:R.state.suggestions.map(function(z){return he({},z,{active:!1})})})},R.handleSelect=function(z,ie,Ee){R.clearSuggestions(),R.props.onSelect?R.props.onSelect(z,ie,Ee):R.props.onChange(z)},R.getActiveSuggestion=function(){return R.state.suggestions.find(function(z){return z.active})},R.selectActiveAtIndex=function(z){var ie=R.state.suggestions.find(function(Ee){return Ee.index===z}).description;R.setActiveAtIndex(z),R.props.onChange(ie)},R.selectUserInputValue=function(){R.clearActive(),R.props.onChange(R.state.userIn
46putValue)},R.handleEnterKey=function(){var z=R.getActiveSuggestion();z===void 0?R.handleSelect(R.props.value,null,null):R.handleSelect(z.description,z.placeId,z)},R.handleDownKey=function(){if(R.state.suggestions.length!==0){var z=R.getActiveSuggestion();z===void 0?R.selectActiveAtIndex(0):z.index===R.state.suggestions.length-1?R.selectUserInputValue():R.selectActiveAtIndex(z.index+1)}},R.handleUpKey=function(){if(R.state.suggestions.length!==0){var z=R.getActiveSuggestion();z===void 0?R.selectActiveAtIndex(R.state.suggestions.length-1):z.index===0?R.selectUserInputValue():R.selectActiveAtIndex(z.index-1)}},R.handleInputKeyDown=function(z){switch(z.key){case"Enter":z.preventDefault(),R.handleEnterKey();break;case"ArrowDown":z.preventDefault(),R.handleDownKey();break;case"ArrowUp":z.preventDefault(),R.handleUpKey();break;case"Escape":R.clearSuggestions();break}},R.setActiveAtIndex=function(z){R.setState({suggestions:R.state.suggestions.map(function(ie,Ee){return Ee===z?he({},ie,{active:!0}):he({},ie,{active:!1})})})},R.handleInputChange=function(z){var ie=z.target.value;if(R.props.onChange(ie),R.setState({userInputValue:ie}),!ie){R.clearSuggestions();return}R.props.shouldFetchSuggestions&&R.debouncedFetchPredictions()},R.handleInputOnBlur=function(){R.mousedownOnSuggestion||R.clearSuggestions()},R.getActiveSuggestionId=function(){var z=R.getActiveSuggestion();return z?"PlacesAutocomplete__suggestion-"+z.placeId:void 0},R.getIsExpanded=function(){return R.state.suggestions.length>0},R.getInputProps=function(){var z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(z.hasOwnProperty("value"))throw new Error("[react-places-autocomplete]: getInputProps does not accept `value`. Use `value` prop instead");if(z.hasOwnProperty("onChange"))throw new Error("[react-places-autocomplete]: getInputProps does not accept `onChange`. Use `onChange` prop instead");var ie={type:"text",autoComplete:"off",role:"combobox","aria-autocomplete":"list","aria-expanded":R.getIsExpanded(),"aria-activedescendant":R.getActiveSuggestionId(),disabled:!R.state.ready};return he({},ie,z,{onKeyDown:(0,G.compose)(R.handleInputKeyDown,z.onKeyDown),onBlur:(0,G.compose)(R.handleInputOnBlur,z.onBlur),value:R.props.value,onChange:function(ke){R.handleInputChange(ke)}})},R.getSuggestionItemProps=function(z){var ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ee=R.handleSuggestionMouseEnter.bind(R,z.index),ke=R.handleSuggestionClick.bind(R,z);return he({},ie,{key:z.id,id:R.getActiveSuggestionId(),role:"option",onMouseEnter:(0,G.compose)(Ee,ie.onMouseEnter),onMouseLeave:(0,G.compose)(R.handleSuggestionMouseLeave,ie.onMouseLeave),onMouseDown:(0,G.compose)(R.handleSuggestionMouseDown,ie.onMouseDown),onMouseUp:(0,G.compose)(R.handleSuggestionMouseUp,ie.onMouseUp),onTouchStart:(0,G.compose)(R.handleSuggestionTouchStart,ie.onTouchStart),onTouchEnd:(0,G.compose)(R.handleSuggestionMouseUp,ie.onTouchEnd),onClick:(0,G.compose)(ke,ie.onClick)})},R.handleSuggestionMouseEnter=function(z){R.setActiveAtIndex(z)},R.handleSuggestionMouseLeave=function(){R.mousedownOnSuggestion=!1,R.clearActive()},R.handleSuggestionMouseDown=function(z){z.preventDefault(),R.mousedownOnSuggestion=!0}
46,R.handleSuggestionTouchStart=function(){R.mousedownOnSuggestion=!0},R.handleSuggestionMouseUp=function(){R.mousedownOnSuggestion=!1},R.handleSuggestionClick=function(z,ie){ie&&ie.preventDefault&&ie.preventDefault();var Ee=z.description,ke=z.placeId;R.handleSelect(Ee,ke,z),setTimeout(function(){R.mousedownOnSuggestion=!1})},R.state={loading:!1,suggestions:[],userInputValue:Ye.value,ready:!Ye.googleCallbackName},R.debouncedFetchPredictions=(0,K.default)(R.fetchPredictions,Ye.debounce),R}return re(ve,[{key:"componentDidMount",value:function(){var R=this.props.googleCallbackName;if(R){var z=window.google&&window.google.maps&&window.google.maps.places;z?this.init():window[R]=this.init}else this.init()}},{key:"componentWillUnmount",value:function(){var R=this.props.googleCallbackName;R&&window[R]&&delete window[R]}},{key:"render",value:function(){return this.props.children({getInputProps:this.getInputProps,getSuggestionItemProps:this.getSuggestionItemProps,loading:this.state.loading,suggestions:this.state.suggestions})}}]),ve})(Q.default.Component);me.propTypes={onChange:te.default.func.isRequired,value:te.default.string.isRequired,children:te.default.func.isRequired,onError:te.default.func,onSelect:te.default.func,searchOptions:te.default.shape({bounds:te.default.object,componentRestrictions:te.default.object,location:te.default.object,offset:te.default.oneOfType([te.default.number,te.default.string]),radius:te.default.oneOfType([te.default.number,te.default.string]),types:te.default.array}),debounce:te.default.number,highlightFirstSuggestion:te.default.bool,shouldFetchSuggestions:te.default.bool,googleCallbackName:te.default.string},me.defaultProps={onError:function(ve,Ye){return console.error(`[react-places-autocomplete]: error happened when fetching data from Google Maps API.
47Please check the docs here (https://developers.google.com/maps/documentation/javascript/places#place_details_responses)
48Status: `,ve)},searchOptions:{},debounce:200,highlightFirstSuggestion:!1,shouldFetchSuggestions:!0},U.default=me},540(Le,U,de){"use strict";Le.exports=de(869)},556(Le,U,de){if(0)var he,re;else Le.exports=de(694)()},602(Le,U,de){U=Le.exports=de(245),U.log=p,U.formatArgs=re,U.save=Q,U.load=A,U.useColors=he,U.storage=typeof chrome<"u"&&typeof chrome.storage<"u"?chrome.storage.local:te(),U.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"];function he(){return typeof window<"u"&&window.process&&window.process.type==="renderer"?!0:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}U.formatters.j=function(se){try{return JSON.stringify(se)}catch(K){return"[UnexpectedJSONParseError]: "+K.message}};function re(se){var K=this.useColors;if(se[0]=(K?"%c":"")+this.namespace+(K?" %c":" ")+se[0]+(K?"%c ":" ")+"+"+U.humanize(this.diff),!!K){var G="color: "+this.color;se.splice(1,0,G,"color: inherit");var j=0,ge=0;se[0].replace(/%[a-zA-Z%]/g,function(Ce){Ce!=="%%"&&(j++,Ce==="%c"&&(ge=j))}),se.splice(ge,0,G)}}function p(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function Q(se){try{se==null?U.storage.removeItem("debug"):U.storage.debug=se}catch{}}function A(){var se;try{se=U.storage.debug}catch{}return!se&&typeof process<"u"&&"env"in process&&(se=process.env.DEBUG),se}U.enable(A());function te(){try{return window.localStorage}catch{}}},666(Le){"use strict";var U;/**
49* @link https://github.com/gajus/sister for the canonical source repository
50* @license https://github.com/gajus/sister/blob/master/LICENSE BSD 3-Clause
51*/U=function(){var de={},he={};return de.on=function(re,p){var Q={name:re,handler:p};return he[re]=he[re]||[],he[re].unshift(Q),Q},de.off=function(re){var p=he[re.name].indexOf(re);p!==-1&&he[re.name].splice(p,1)},de.trigger=function(re,p){var Q=he[re],A;if(Q)for(A=Q.length;A--;)Q[A].handler(p)},de},Le.exports=U},694(Le,U,de){"use strict";var he=de(925);function re(){}function p(){}p.resetWarningCache=re,Le.exports=function(){function Q(se,K,G,j,ge,Ce){if(Ce!==he){var Me=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw Me.name="Invariant Violation",Me}}Q.isRequired=Q;function A(){return Q}var te={array:Q,bigint:Q,bool:Q,func:Q,number:Q,object:Q,string:Q,symbol:Q,any:Q,arrayOf:A,element:Q,elementType:Q,instanceOf:A,node:Q,objectOf:A,oneOf:A,oneOfType:A,shape:A,exact:A,checkPropTypes:p,resetWarningCache:re};return te.PropTypes=te,te}},698(Le,U){"use strict";var de;/**
52 * @license React
53 * react-jsx-runtime.production.js
54 *
55 * Copyright (c) Meta Platforms, Inc. and affiliates.
56 *
57 * This source code is licensed under the MIT license found in the
58 * LICENSE file in the root directory of this source tree.
59 */var he=Symbol.for("react.transitional.element"),re=Symbol.for("react.fragment");function p(Q,A,te){var se=null;if(te!==void 0&&(se=""+te),A.key!==void 0&&(se=""+A.key),"key"in A){te={};for(var K in A)K!=="key"&&(te[K]=A[K])}else te=A;return A=te.ref,{$$typeof:he,type:Q,key:se,ref:A!==void 0?A:null,props:te}}de=re,U.jsx=p,U.jsxs=p},748(Le,U,de){"use strict";Object.defineProperty(U,"__esModule",{value:!0});var he=de(4),re=p(he);function p(Q){return Q&&Q.__esModule?Q:{default:Q}}U.default={pauseVideo:{acceptableStates:[re.default.ENDED,re.default.PAUSED],stateChangeRequired:!1},playVideo:{acceptableStates:[re.default.ENDED,re.default.PLAYING],stateChangeRequired:!1},seekTo:{acceptableStates:[re.default.ENDED,re.default.PLAYING,re.default.PAUSED],stateChangeRequired:!0,timeout:3e3}}
59,Le.exports=U.default},769(Le,U){"use strict";Object.defineProperty(U,"__esModule",{value:!0}),U.default=["ready","stateChange","playbackQualityChange","playbackRateChange","error","apiChange","volumeChange"],Le.exports=U.default},786(Le,U,de){var he,re;(function(p,Q){"use strict";he=Q,re=typeof he=="function"?he.call(U,de,U,Le):he,re!==void 0&&(Le.exports=re)})(window,function(){"use strict";var Q=(function(){var A=window.Element.prototype;if(A.matches)return"matches";if(A.matchesSelector)return"matchesSelector";for(var te=["webkit","moz","ms","o"],se=0;se<te.length;se++){var K=te[se],G=K+"MatchesSelector";if(A[G])return G}})();return function(te,se){return te[Q](se)}})},831(Le,U,de){var he,re;/*!
60* Outlayer v2.1.1
61* the brains and guts of a layout library
62* MIT license
63*/(function(p,Q){"use strict";he=[de(137),de(485),de(977),de(169)],re=(function(A,te,se,K){return Q(p,A,te,se,K)}).apply(U,he),re!==void 0&&(Le.exports=re)})(window,function(Q,A,te,se,K){"use strict";var G=Q.console,j=Q.jQuery,ge=function(){},Ce=0,Me={};function Te(R,z){var ie=se.getQueryElement(R);if(!ie){G&&G.error("Bad element for "+this.constructor.namespace+": "+(ie||R));return}this.element=ie,j&&(this.$element=j(this.element)),this.options=se.extend({},this.constructor.defaults),this.option(z);var Ee=++Ce;this.element.outlayerGUID=Ee,Me[Ee]=this,this._create();var ke=this._getOption("initLayout");ke&&this.layout()}Te.namespace="outlayer",Te.Item=K,Te.defaults={containerStyle:{position:"relative"},initLayout:!0,originLeft:!0,originTop:!0,resize:!0,resizeContainer:!0,transitionDuration:"0.4s",hiddenStyle:{opacity:0,transform:"scale(0.001)"},visibleStyle:{opacity:1,transform:"scale(1)"}};var me=Te.prototype;se.extend(me,A.prototype),me.option=function(R){se.extend(this.options,R)},me._getOption=function(R){var z=this.constructor.compatOptions[R];return z&&this.options[z]!==void 0?this.options[z]:this.options[R]},Te.compatOptions={initLayout:"isInitLayout",horizontal:"isHorizontal",layoutInstant:"isLayoutInstant",originLeft:"isOriginLeft",originTop:"isOriginTop",resize:"isResizeBound",resizeContainer:"isResizingContainer"},me._create=function(){this.reloadItems(),this.stamps=[],this.stamp(this.options.stamp),se.extend(this.element.style,this.options.containerStyle);var R=this._getOption("resize");R&&this.bindResize()},me.reloadItems=function(){this.items=this._itemize(this.element.children)},me._itemize=function(R){for(var z=this._filterFindItemElements(R),ie=this.constructor.Item,Ee=[],ke=0;ke<z.length;ke++){var bt=z[ke],St=new ie(bt,this);Ee.push(St)}return Ee},me._filterFindItemElements=function(R){return se.filterFindElements(R,this.options.itemSelector)},me.getItemElements=function(){return this.items.map(function(R){return R.element})},me.layout=function(){this._resetLayout(),this._manageStamps();var R=this._getOption("layoutInstant"),z=R!==void 0?R:!this._isLayoutInited;this.layoutItems(this.items,z),this._isLayoutInited=!0},me._init=me.layout,me._resetLayout=function(){this.getSize()},me.getSize=function(){this.size=te(this.element)},me._getMeasurement=function(R,z){var ie=this.options[R],Ee;ie?(typeof ie=="string"?Ee=this.element.querySelector(ie):ie instanceof HTMLElement&&(Ee=ie),this[R]=Ee?te(Ee)[z]:ie):this[R]=0},me.layoutItems=function(R,z){R=this._getItemsForLayout(R),this._layoutItems(R,z),this._postLayout()},me._getItemsForLayout=function(R){return R.filter(function(z){return!z.isIgnored})},me._layoutItems=function(R,z){if(this._emitCompleteOnItems("layout",R),!(!R||!R.length)){var ie=[];R.forEach(function(Ee){var ke=this._getItemLayoutPosition(Ee);ke.item=Ee,ke.isInstant=z||Ee.isLayoutInstant,ie.push(ke)},this),this._processLayoutQueue(ie)}},me._getItemLayoutPosition=function(){return{x:0,y:0}},me._processLayoutQueue=function(R){this.updateStagger(),R.forEach(function(z,ie){this._positionItem(z.item,z.x,z.y,z.isInstant,ie)},this)},me.updateStagger=function(){var R=this.options.stagger;if(R==null){this.stagger=0;return}return this.stagger=Ye(R),this.stagger},me._positionItem=function(R,z,ie,Ee,ke){Ee?R.goTo(z,ie):(R.stagger(ke*this.stagger),R.moveTo(z,ie))},me._postLayout=function(){this.resizeContainer()},me.resizeContainer=function(){var R=this._getOption("resizeContainer");if(R){var z=this._getContainerSize();z&&(this._setContainerMeasure(z.width,!0),this._setContainerMeasure(z.height,!1))}},me._getContainerSize=ge,me._setContainerMeasure=function(R,z){if(R!==void 0){var ie=this.size;ie.isBorderBox&&(R+=z?ie.paddingLeft+ie.paddingRight+ie.borderLeftWidth+ie.borderRightWidth:ie.paddingBottom+ie.paddingTop+ie.borderTopWidth+ie.borderBottomWidth),R=Math.max(R,0),this.element.style[z?"width":"height"]=R+"px"}},me._emitCompleteOnItems=function(R,z){var ie=this;function Ee(){ie.dispatchEvent(R+"Complete",null,[z])}var ke=z.length;if(!z||!ke){Ee();return}var bt=0;function St(){bt++,bt==ke&&Ee()}z.forEach(function(mt){mt.once(R,St)})},me.dispatchEvent=function(R,z,ie){var Ee=z?[z].concat(ie):ie;if(this.emitEvent(R,Ee),j)if(this.$element=this.$element||j(this.element),z){var ke=j.Event(z);ke.type=R,this.$element.trigger(ke,ie)}else this.$element.trigger(R,ie)},me.ignore=function(R){var z=this.getItem(R);z&&(z.isIgnored=!0)},me.unignore=function(R){var z=this.getItem(R);z&&delete z.isIgnored},me.stamp=function(R){R=this._find(R),R&&(this.stamps=this.stamps.
63concat(R),R.forEach(this.ignore,this))},me.unstamp=function(R){R=this._find(R),R&&R.forEach(function(z){se.removeFrom(this.stamps,z),this.unignore(z)},this)},me._find=function(R){if(R)return typeof R=="string"&&(R=this.element.querySelectorAll(R)),R=se.makeArray(R),R},me._manageStamps=function(){!this.stamps||!this.stamps.length||(this._getBoundingRect(),this.stamps.forEach(this._manageStamp,this))},me._getBoundingRect=function(){var R=this.element.getBoundingClientRect(),z=this.size;this._boundingRect={left:R.left+z.paddingLeft+z.borderLeftWidth,top:R.top+z.paddingTop+z.borderTopWidth,right:R.right-(z.paddingRight+z.borderRightWidth),bottom:R.bottom-(z.paddingBottom+z.borderBottomWidth)}},me._manageStamp=ge,me._getElementOffset=function(R){var z=R.getBoundingClientRect(),ie=this._boundingRect,Ee=te(R),ke={left:z.left-ie.left-Ee.marginLeft,top:z.top-ie.top-Ee.marginTop,right:ie.right-z.right-Ee.marginRight,bottom:ie.bottom-z.bottom-Ee.marginBottom};return ke},me.handleEvent=se.handleEvent,me.bindResize=function(){Q.addEventListener("resize",this),this.isResizeBound=!0},me.unbindResize=function(){Q.removeEventListener("resize",this),this.isResizeBound=!1},me.onresize=function(){this.resize()},se.debounceMethod(Te,"onresize",100),me.resize=function(){!this.isResizeBound||!this.needsResizeLayout()||this.layout()},me.needsResizeLayout=function(){var R=te(this.element),z=this.size&&R;return z&&R.innerWidth!==this.size.innerWidth},me.addItems=function(R){var z=this._itemize(R);return z.length&&(this.items=this.items.concat(z)),z},me.appended=function(R){var z=this.addItems(R);z.length&&(this.layoutItems(z,!0),this.reveal(z))},me.prepended=function(R){var z=this._itemize(R);if(z.length){var ie=this.items.slice(0);this.items=z.concat(ie),this._resetLayout(),this._manageStamps(),this.layoutItems(z,!0),this.reveal(z),this.layoutItems(ie)}},me.reveal=function(R){if(this._emitCompleteOnItems("reveal",R),!(!R||!R.length)){var z=this.updateStagger();R.forEach(function(ie,Ee){ie.stagger(Ee*z),ie.reveal()})}},me.hide=function(R){if(this._emitCompleteOnItems("hide",R),!(!R||!R.length)){var z=this.updateStagger();R.forEach(function(ie,Ee){ie.stagger(Ee*z),ie.hide()})}},me.revealItemElements=function(R){var z=this.getItems(R);this.reveal(z)},me.hideItemElements=function(R){var z=this.getItems(R);this.hide(z)},me.getItem=function(R){for(var z=0;z<this.items.length;z++){var ie=this.items[z];if(ie.element==R)return ie}},me.getItems=function(R){R=se.makeArray(R);var z=[];return R.forEach(function(ie){var Ee=this.getItem(ie);Ee&&z.push(Ee)},this),z},me.remove=function(R){var z=this.getItems(R);this._emitCompleteOnItems("remove",z),!(!z||!z.length)&&z.forEach(function(ie){ie.remove(),se.removeFrom(this.items,ie)},this)},me.destroy=function(){var R=this.element.style;R.height="",R.position="",R.width="",this.items.forEach(function(ie){ie.destroy()}),this.unbindResize();var z=this.element.outlayerGUID;delete Me[z],delete this.element.outlayerGUID,j&&j.removeData(this.element,this.constructor.namespace)},Te.data=function(R){R=se.getQueryElement(R);var z=R&&R.outlayerGUID;return z&&Me[z]},Te.create=function(R,z){var ie=Pe(Te);return ie.defaults=se.extend({},Te.defaults),se.extend(ie.defaults,z),ie.compatOptions=se.extend({},Te.compatOptions),ie.namespace=R,ie.data=Te.data,ie.Item=Pe(K),se.htmlInit(ie,R),j&&j.bridget&&j.bridget(R,ie),ie};function Pe(R){function z(){R.apply(this,arguments)}return z.prototype=Object.create(R.prototype),z.prototype.constructor=z,z}var ve={ms:1,s:1e3};function Ye(R){if(typeof R=="number")return R;var z=R.match(/(^\d*\.?\d*)(\w*)/),ie=z&&z[1],Ee=z&&z[2];if(!ie.length)return 0;ie=parseFloat(ie);var ke=ve[Ee]||1;return ie*ke}return Te.Item=K,Te})},848(Le,U,de){"use strict";Le.exports=de(698)},866(Le,U){var de,he;/*!
64  Copyright (c) 2018 Jed Watson.
65  Licensed under the MIT License (MIT), see
66  http://jedwatson.github.io/classnames
67*/(function(){"use strict";var re={}.hasOwnProperty;function p(){for(var Q=[],A=0;A<arguments.length;A++){var te=arguments[A];if(te){var se=typeof te;if(se==="string"||se==="number")Q.push(te);else if(Array.isArray(te)){if(te.length){var K=p.apply(null,te);K&&Q.push(K)}}else if(se==="object")if(te.toString===Object.prototype.toString)for(var G in te)re.call(te,G)&&te[G]&&Q.push(G);else Q.push(te.toString())}}return Q.join(" ")}
vendor: 4,185 bytes, lines 67-75
67Le.exports?(p.default=p,Le.exports=p):(de=[],he=(function(){return p}).apply(U,de),he!==void 0&&(Le.exports=he))})()},869(Le,U){"use strict";/**
68 * @license React
69 * react.production.js
70 *
71 * Copyright (c) Meta Platforms, Inc. and affiliates.
72 *
73 * This source code is licensed under the MIT license found in the
74 * LICENSE file in the root directory of this source tree.
75 */var de=Symbol.for("react.transitional.element"),he=Symbol.for("react.portal"),re=Symbol.for("react.fragment"),p=Symbol.for("react.strict_mode"),Q=Symbol.for("react.profiler"),A=Symbol.for("react.consumer"),te=Symbol.for("react.context"),se=Symbol.for("react.forward_ref"),K=Symbol.for("react.suspense"),G=Symbol.for("react.memo"),j=Symbol.for("react.lazy"),ge=Symbol.for("react.activity"),Ce=Symbol.iterator;function Me(J){return J===null||typeof J!="object"?null:(J=Ce&&J[Ce]||J["@@iterator"],typeof J=="function"?J:null)}var Te={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},me=Object.assign,Pe={};function ve(J,Ae,Je){this.props=J,this.context=Ae,this.refs=Pe,this.updater=Je||Te}ve.prototype.isReactComponent={},ve.prototype.setState=function(J,Ae){if(typeof J!="object"&&typeof J!="function"&&J!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,J,Ae,"setState")},ve.prototype.forceUpdate=function(J){this.updater.enqueueForceUpdate(this,J,"forceUpdate")};function Ye(){}Ye.prototype=ve.prototype;function R(J,Ae,Je){this.props=J,this.context=Ae,this.refs=Pe,this.updater=Je||Te}var z=R.prototype=new Ye;z.constructor=R,me(z,ve.prototype),z.isPureReactComponent=!0;var ie=Array.isArray;function Ee(){}var ke={H:null,A:null,T:null,S:null},bt=Object.prototype.hasOwnProperty;function St(J,Ae,Je){var Xe=Je.ref;return{$$typeof:de,type:J,key:Ae,ref:Xe!==void 0?Xe:null,props:Je}}function mt(J,Ae){return St(J.type,Ae,J.props)}function wt(J){return typeof J=="object"&&J!==null&&J.$$typeof===de}function Sn(J){var Ae={"=":"=0",":":"=2"};return"$"+J.replace(/[=:]/g,function(Je){return Ae[Je]})}var Zt=/\/+/g;function kt(J,Ae){return typeof J=="object"&&J!==null&&J.key!=null?Sn(""+J.key):Ae.toString(36)}function ze(J){switch(J.status){case"fulfilled":return J.value;case"rejected":throw J.reason;default:switch(typeof J.status=="string"?J.then(Ee,Ee):(J.status="pending",J.then(function(Ae){J.status==="pending"&&(J.status="fulfilled",J.value=Ae)},function(Ae){J.status==="pending"&&(J.status="rejected",J.reason=Ae)})),J.status){case"fulfilled":return J.value;case"rejected":throw J.reason}}throw J}function He(J,Ae,Je,Xe,lt){var Lt=typeof J;(Lt==="undefined"||Lt==="boolean")&&(J=null);var st=!1;if(J===null)st=!0;else switch(Lt){case"bigint":case"string":case"number":st=!0;break;case"object":switch(J.$$typeof){case de:case he:st=!0;break;case j:return st=J._init,He(st(J._payload),Ae,Je,Xe,lt)}}if(st)return lt=lt(J),st=Xe===""?"."+kt(J,0):Xe,ie(lt)?(Je="",st!=null&&(Je=st.replace(Zt,"$&/")+"/"),He(lt,Ae,Je,"",function(Qr){return Qr})):lt!=null&&(wt(lt)&&(lt=mt(lt,Je+(lt.key==null||J&&J.key===lt.key?"":(""+lt.key).replace(Zt,"$&/")+"/")+st)),Ae.push(lt)),1;st=0;var Pt=Xe===""?".":Xe+":";if(ie(J))for(var ye=0;ye<J.length;ye++)Xe=J[ye],Lt=Pt+kt(Xe,ye),st+=He(Xe,Ae,Je,Lt,lt);else if(ye=Me(J),typeof ye=="function")for(J=ye.call(J),ye=0;!(Xe=J.next()).done;)Xe=Xe.value,Lt=Pt+kt(Xe,ye++),st+=He(Xe,Ae,Je,Lt,lt);else if(Lt==="object"){if(typeof J.then=="function")return He(ze(J),Ae,Je,Xe,lt);throw Ae=String(J),Error("Objects are not valid as a React child (found: "+(Ae==="[object Object]"?"object with keys {"+Object.keys(J).join(", ")+"}":Ae)+"). If you meant to render a collection of children, use an array instead.")}return st}function ut(J,Ae,Je){if(J==null)return J;var Xe=[],lt=0;return He(J,Xe,"","",function(Lt){return Ae.call(Je,Lt,lt++)}),Xe}function Ue(J){if(J._status===-1){var Ae=J._result;Ae=Ae(),Ae.then(function(Je){(J._status===0||J._status===-1)&&(J._status=1,J._result=Je)},function(Je){(J._status===0||J._status===-1)&&(J._status=2,J._result=Je)}),J._status===-1&&(J._status=0,J._result=Ae)}
vendor: 4,121 bytes, line 75
75if(J._status===1)return J._result.default;throw J._result}var at=typeof reportError=="function"?reportError:function(J){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Ae=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof J=="object"&&J!==null&&typeof J.message=="string"?String(J.message):String(J),error:J});if(!window.dispatchEvent(Ae))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",J);return}console.error(J)},Cr={map:ut,forEach:function(J,Ae,Je){ut(J,function(){Ae.apply(this,arguments)},Je)},count:function(J){var Ae=0;return ut(J,function(){Ae++}),Ae},toArray:function(J){return ut(J,function(Ae){return Ae})||[]},only:function(J){if(!wt(J))throw Error("React.Children.only expected to receive a single React element child.");return J}};U.Activity=ge,U.Children=Cr,U.Component=ve,U.Fragment=re,U.Profiler=Q,U.PureComponent=R,U.StrictMode=p,U.Suspense=K,U.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=ke,U.__COMPILER_RUNTIME={__proto__:null,c:function(J){return ke.H.useMemoCache(J)}},U.cache=function(J){return function(){return J.apply(null,arguments)}},U.cacheSignal=function(){return null},U.cloneElement=function(J,Ae,Je){if(J==null)throw Error("The argument must be a React element, but you passed "+J+".");var Xe=me({},J.props),lt=J.key;if(Ae!=null)for(Lt in Ae.key!==void 0&&(lt=""+Ae.key),Ae)!bt.call(Ae,Lt)||Lt==="key"||Lt==="__self"||Lt==="__source"||Lt==="ref"&&Ae.ref===void 0||(Xe[Lt]=Ae[Lt]);var Lt=arguments.length-2;if(Lt===1)Xe.children=Je;else if(1<Lt){for(var st=Array(Lt),Pt=0;Pt<Lt;Pt++)st[Pt]=arguments[Pt+2];Xe.children=st}return St(J.type,lt,Xe)},U.createContext=function(J){return J={$$typeof:te,_currentValue:J,_currentValue2:J,_threadCount:0,Provider:null,Consumer:null},J.Provider=J,J.Consumer={$$typeof:A,_context:J},J},U.createElement=function(J,Ae,Je){var Xe,lt={},Lt=null;if(Ae!=null)for(Xe in Ae.key!==void 0&&(Lt=""+Ae.key),Ae)bt.call(Ae,Xe)&&Xe!=="key"&&Xe!=="__self"&&Xe!=="__source"&&(lt[Xe]=Ae[Xe]);var st=arguments.length-2;if(st===1)lt.children=Je;else if(1<st){for(var Pt=Array(st),ye=0;ye<st;ye++)Pt[ye]=arguments[ye+2];lt.children=Pt}if(J&&J.defaultProps)for(Xe in st=J.defaultProps,st)lt[Xe]===void 0&&(lt[Xe]=st[Xe]);return St(J,Lt,lt)},U.createRef=function(){return{current:null}},U.forwardRef=function(J){return{$$typeof:se,render:J}},U.isValidElement=wt,U.lazy=function(J){return{$$typeof:j,_payload:{_status:-1,_result:J},_init:Ue}},U.memo=function(J,Ae){return{$$typeof:G,type:J,compare:Ae===void 0?null:Ae}},U.startTransition=function(J){var Ae=ke.T,Je={};ke.T=Je;try{var Xe=J(),lt=ke.S;lt!==null&&lt(Je,Xe),typeof Xe=="object"&&Xe!==null&&typeof Xe.then=="function"&&Xe.then(Ee,at)}catch(Lt){at(Lt)}finally{Ae!==null&&Je.types!==null&&(Ae.types=Je.types),ke.T=Ae}},U.unstable_useCacheRefresh=function(){return ke.H.useCacheRefresh()},U.use=function(J){return ke.H.use(J)},U.useActionState=function(J,Ae,Je){return ke.H.useActionState(J,Ae,Je)},U.useCallback=function(J,Ae){return ke.H.useCallback(J,Ae)},U.useContext=function(J){return ke.H.useContext(J)},U.useDebugValue=function(){},U.useDeferredValue=function(J,Ae){return ke.H.useDeferredValue(J,Ae)},U.useEffect=function(J,Ae){return ke.H.useEffect(J,Ae)},U.useEffectEvent=function(J){return ke.H.useEffectEvent(J)},U.useId=function(){return ke.H.useId()},U.useImperativeHandle=function(J,Ae,Je){return ke.H.useImperativeHandle(J,Ae,Je)},U.useInsertionEffect=function(J,Ae){return ke.H.useInsertionEffect(J,Ae)},U.useLayoutEffect=function(J,Ae){return ke.H.useLayoutEffect(J,Ae)},U.useMemo=function(J,Ae){return ke.H.useMemo(J,Ae)},U.useOptimistic=function(J,Ae){return ke.H.useOptimistic(J,Ae)},U.useReducer=function(J,Ae,Je){return ke.H.useReducer(J,Ae,Je)},U.useRef=function(J){return ke.H.useRef(J)},U.useState=function(J){return ke.H.useState(J)},U.useSyncExternalStore=function(J,Ae,Je){return ke.H.useSyncExternalStore(J,Ae,Je)},U.useTransition=function(){return ke.H.useTransition()},U.version="19.2.4"},925(Le){"use strict";var U="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
75Le.exports=U},931(Le,U,de){"use strict";var he;he={value:!0},U.rg=he=he=void 0;var re=de(528),p=A(re),Q=de(942);function A(te){return te&&te.__esModule?te:{default:te}}he=Q.geocodeByAddress,he=Q.geocodeByPlaceId,U.rg=Q.getLatLng,U.Ay=p.default},942(Le,U){"use strict";Object.defineProperty(U,"__esModule",{value:!0});var de=U.geocodeByAddress=function(Q){var A=new window.google.maps.Geocoder,te=window.google.maps.GeocoderStatus.OK;return new Promise(function(se,K){A.geocode({address:Q},function(G,j){j!==te&&K(j),se(G)})})},he=U.getLatLng=function(Q){return new Promise(function(A,te){try{var se={lat:Q.geometry.location.lat(),lng:Q.geometry.location.lng()};A(se)}catch(K){te(K)}})},re=U.geocodeByPlaceId=function(Q){var A=new window.google.maps.Geocoder,te=window.google.maps.GeocoderStatus.OK;return new Promise(function(se,K){A.geocode({placeId:Q},function(G,j){j!==te&&K(j),se(G)})})}},946(Le,U){"use strict";Object.defineProperty(U,"__esModule",{value:!0});var de=U.compose=function(){for(var p=arguments.length,Q=Array(p),A=0;A<p;A++)Q[A]=arguments[A];return function(){for(var te=arguments.length,se=Array(te),K=0;K<te;K++)se[K]=arguments[K];Q.forEach(function(G){return G&&G.apply(void 0,se)})}},he=U.pick=function(p){for(var Q=arguments.length,A=Array(Q>1?Q-1:0),te=1;te<Q;te++)A[te-1]=arguments[te];return A.reduce(function(se,K){return p&&p.hasOwnProperty(K)&&(se[K]=p[K]),se},{})}},961(Le,U,de){"use strict";function he(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(he)}catch(re){console.error(re)}}he(),Le.exports=de(221)},977(Le,U,de){var he,re;(function(p,Q){he=[de(786)],re=(function(A){return Q(p,A)}).apply(U,he),re!==void 0&&(Le.exports=re)})(window,function(Q,A){"use strict";var te={};te.extend=function(G,j){for(var ge in j)G[ge]=j[ge];return G},te.modulo=function(G,j){return(G%j+j)%j};var se=Array.prototype.slice;te.makeArray=function(G){if(Array.isArray(G))return G;if(G==null)return[];var j=typeof G=="object"&&typeof G.length=="number";return j?se.call(G):[G]},te.removeFrom=function(G,j){var ge=G.indexOf(j);ge!=-1&&G.splice(ge,1)},te.getParent=function(G,j){for(;G.parentNode&&G!=document.body;)if(G=G.parentNode,A(G,j))return G},te.getQueryElement=function(G){return typeof G=="string"?document.querySelector(G):G},te.handleEvent=function(G){var j="on"+G.type;this[j]&&this[j](G)},te.filterFindElements=function(G,j){G=te.makeArray(G);var ge=[];return G.forEach(function(Ce){if(Ce instanceof HTMLElement){if(!j){ge.push(Ce);return}A(Ce,j)&&ge.push(Ce);for(var Me=Ce.querySelectorAll(j),Te=0;Te<Me.length;Te++)ge.push(Me[Te])}}),ge},te.debounceMethod=function(G,j,ge){ge=ge||100;var Ce=G.prototype[j],Me=j+"Timeout";G.prototype[j]=function(){var Te=this[Me];clearTimeout(Te);var me=arguments,Pe=this;this[Me]=setTimeout(function(){Ce.apply(Pe,me),delete Pe[Me]},ge)}},te.docReady=function(G){var j=document.readyState;j=="complete"||j=="interactive"?setTimeout(G):document.addEventListener("DOMContentLoaded",G)},te.toDashed=function(G){return G.replace(/(.)([A-Z])/g,function(j,ge,Ce){return ge+"-"+Ce}).toLowerCase()};var K=Q.console;return te.htmlInit=function(G,j){te.docReady(function(){var ge=te.toDashed(j),Ce="data-"+ge,Me=document.querySelectorAll("["+Ce+"]"),Te=document.querySelectorAll(".js-"+ge),me=te.makeArray(Me).concat(te.makeArray(Te)),Pe=Ce+"-options",ve=Q.jQuery;me.forEach(function(Ye){var R=Ye.getAttribute(Ce)||Ye.getAttribute(Pe),z;try{z=R&&JSON.parse(R)}catch(Ee){K&&K.error("Error parsing "+Ce+" on "+Ye.className+": "+Ee);return}var ie=new G(Ye,z);ve&&ve.data(Ye,j,ie)})})},te})},982(Le,U,de){"use strict";Le.exports=de(477)},988(Le){var U=1e3,de=U*60,he=de*60,re=he*24,p=re*365.25;Le.exports=function(K,G){G=G||{};var j=typeof K;if(j==="string"&&K.length>0)return Q(K);if(j==="number"&&isNaN(K)===!1)return G.long?te(K):A(K);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(K))};function Q(K){if(K=String(K),!(K.length>100)){var G=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(K);if(G){var j=parseFloat(G[1]),ge=(G[2]||"ms").toLowerCase();switch(ge){case"years":case"year":case"yrs":case"yr":case"y":return j*p;case"days":case"day":case"d":return j*re;case"hours":case"hour":case"hrs":case"hr":case"h":return j*he;case"minutes":case"minute":case"mins":case"min":case"m":return j*de;case"seconds":case"second":case"secs":case"sec":case"s":return j*U;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return j;default:return}}}}function A(K){return K>=re?Math.round(K/re)+"d":K>=he?Math.round(K/he)+"h":K>=de?Math.round(K/de)+"m":K>=U?Math.round(K/U)+"s":K+"ms"}function te(K){return se(K,re,"day")||se(K,he,"hour")||se(K,de,"minute")||se(K,U,"second")||K+" ms"}function se(K,G,j){if(!(K<G))return K<G*1.5?Math.floor(K/G)+" "+j:Math.ceil(K/G)+" "+j+"s"}},994(Le,U,de){var he,re,p;/*!
76* Masonry v4.2.2
77* Cascading grid layout library
78* https://masonry.desandro.com
79* MIT License
80* by David DeSandro
81*/(function(Q,A){re=[de(831),de(485)],he=A,p=typeof he=="function"?he.apply(U,re):he,p!==void 0&&(Le.exports=p)})(window,function(A,te){"use strict";var se=A.create("masonry");se.compatOptions.fitWidth="isFitWidth";var K=se.prototype;
81return K._resetLayout=function(){this.getSize(),this._getMeasurement("columnWidth","outerWidth"),this._getMeasurement("gutter","outerWidth"),this.measureColumns(),this.colYs=[];for(var G=0;G<this.cols;G++)this.colYs.push(0);this.maxY=0,this.horizontalColIndex=0},K.measureColumns=function(){if(this.getContainerWidth(),!this.columnWidth){var G=this.items[0],j=G&&G.element;this.columnWidth=j&&te(j).outerWidth||this.containerWidth}var ge=this.columnWidth+=this.gutter,Ce=this.containerWidth+this.gutter,Me=Ce/ge,Te=ge-Ce%ge,me=Te&&Te<1?"round":"floor";Me=Math[me](Me),this.cols=Math.max(Me,1)},K.getContainerWidth=function(){var G=this._getOption("fitWidth"),j=G?this.element.parentNode:this.element,ge=te(j);this.containerWidth=ge&&ge.innerWidth},K._getItemLayoutPosition=function(G){G.getSize();var j=G.size.outerWidth%this.columnWidth,ge=j&&j<1?"round":"ceil",Ce=Math[ge](G.size.outerWidth/this.columnWidth);Ce=Math.min(Ce,this.cols);for(var Me=this.options.horizontalOrder?"_getHorizontalColPosition":"_getTopColPosition",Te=this[Me](Ce,G),me={x:this.columnWidth*Te.col,y:Te.y},Pe=Te.y+G.size.outerHeight,ve=Ce+Te.col,Ye=Te.col;Ye<ve;Ye++)this.colYs[Ye]=Pe;return me},K._getTopColPosition=function(G){var j=this._getTopColGroup(G),ge=Math.min.apply(Math,j);return{col:j.indexOf(ge),y:ge}},K._getTopColGroup=function(G){if(G<2)return this.colYs;for(var j=[],ge=this.cols+1-G,Ce=0;Ce<ge;Ce++)j[Ce]=this._getColGroupY(Ce,G);return j},K._getColGroupY=function(G,j){if(j<2)return this.colYs[G];var ge=this.colYs.slice(G,G+j);return Math.max.apply(Math,ge)},K._getHorizontalColPosition=function(G,j){var ge=this.horizontalColIndex%this.cols,Ce=G>1&&ge+G>this.cols;ge=Ce?0:ge;var Me=j.size.outerWidth&&j.size.outerHeight;return this.horizontalColIndex=Me?ge+G:this.horizontalColIndex,{col:ge,y:this._getColGroupY(ge,G)}},K._manageStamp=function(G){var j=te(G),ge=this._getElementOffset(G),Ce=this._getOption("originLeft"),Me=Ce?ge.left:ge.right,Te=Me+j.outerWidth,me=Math.floor(Me/this.columnWidth);me=Math.max(0,me);var Pe=Math.floor(Te/this.columnWidth);Pe-=Te%this.columnWidth?0:1,Pe=Math.min(this.cols-1,Pe);for(var ve=this._getOption("originTop"),Ye=(ve?ge.top:ge.bottom)+j.outerHeight,R=me;R<=Pe;R++)this.colYs[R]=Math.max(Ye,this.colYs[R])},K._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var G={height:this.maxY};return this._getOption("fitWidth")&&(G.width=this._getContainerFitWidth()),G},K._getContainerFitWidth=function(){for(var G=0,j=this.cols;--j&&this.colYs[j]===0;)G++;return(this.cols-G)*this.columnWidth-this.gutter},K.needsResizeLayout=function(){var G=this.containerWidth;return this.getContainerWidth(),G!=this.containerWidth},se})}},Jw={};function sn(Le){var U=Jw[Le];if(U!==void 0)return U.exports;var de=Jw[Le]={exports:{}};return pD[Le].call(de.exports,de,de.exports,sn),de.exports}sn.n=Le=>{var U=Le&&Le.__esModule?()=>Le.default:()=>Le;return sn.d(U,{a:U}),U},(()=>{var Le=Object.getPrototypeOf?de=>Object.getPrototypeOf(de):de=>de.__proto__,U;sn.t=function(de,he){if(he&1&&(de=this(de)),he&8||typeof de=="object"&&de&&(he&4&&de.__esModule||he&16&&typeof de.then=="function"))return de;var re=Object.create(null);sn.r(re);var p={};U=U||[null,Le({}),Le([]),Le(Le)];for(var Q=he&2&&de;(typeof Q=="object"||typeof Q=="function")&&!~U.indexOf(Q);Q=Le(Q))Object.getOwnPropertyNames(Q).forEach(A=>p[A]=()=>de[A]);return p.default=()=>de,sn.d(re,p),re}})(),sn.d=(Le,U)=>{for(var de in U)sn.o(U,de)&&!sn.o(Le,de)&&Object.defineProperty(Le,de,{enumerable:!0,get:U[de]})},sn.g=(function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}})(),sn.o=(Le,U)=>Object.prototype.hasOwnProperty.call(Le,U),sn.r=Le=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(Le,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(Le,"__esModule",{value:!0})};var gH={};(()=>{"use strict";const U=n=>{};function de(n,e,...t){try{if(e)return n(e,...t)}catch(r){return console.error(r),null}return null}function he(n,e,...t){try{return Array.from(e).map(r=>n(r,...t))}catch(r){return console.error(r),null}}const re={single:de,multiple:he};var p=sn(540),Q=sn.t(p,2),A=sn(338);function te(n,e,t=!0,...r){try{if(e){const i=t?at(e):{},a=(0,A.createRoot)(e),s=Object.assign(Object.assign({},r),i);a.render(p.createElement(n,Object.assign({},s)))}}catch(i){console.error(i)}}function se(n,e,t=!0,...r){try{return Array.from(e).forEach(i=>
81{const a=t?at(i):{},s=(0,A.createRoot)(i),c=Object.assign(Object.assign({container:i},r),a);s.render(p.createElement(n,Object.assign({},c)))})}catch(i){console.error(i)}return null}const K={single:te,multiple:se};var G=sn(12),j=sn.n(G);const ge={ACTIVE:"active",INVISIBLE:"invisible",HIDDEN:"hidden",IS_OPEN:"is-open"};var Ce;(function(n){n.Info="info",n.Warning="warning",n.Error="error",n.Success="success"})(Ce||(Ce={}));var Me;(function(n){n.Branches="branches",n.Atms="atms"})(Me||(Me={}));var Te;(function(n){n.Cash="cash",n.Wire="wire"})(Te||(Te={}));const me="js-branches-search-form",Pe="js-atms-search-form",ve="geo_coordinates_from_browser",Ye="geo_coordinates_from_search",R="js-search-list-form",z="opening-hours",ie="handicaped",Ee="companies",ke="services",bt="more",St="all",mt="desktop",wt="mobile",Sn=3,Zt=10,kt={lat:50.0812,lng:14.4271},ze=j(),He=ge,ut="widget_id",at=n=>{var e;const t=window.WIDGETS_CONFIG;if(!t)throw new Error("Config was not provided");const r=(e=n.dataset)===null||e===void 0?void 0:e[ut];if(!r)return null;const i=t[r];if(!i)throw new Error(`Data for widget "${r}" was not provided`);return i},Cr={api:"http://localhost:3131/api/transparent-list",baseUrl:"xyz",query:"hledany_vyraz",items:[{id:1,perex:"TesttesttestTesttesttestTesttesttestTesttesttestTesttesttestTesttesttestTesttesttestTesttesttestTesttesttestTesttesttestTesttesttestTesttesttestTesttesttestTesttesttestTesttesttestTesttesttestTesttesttestTesttesttestTesttesttestTesttesttest",title:"NejkulatoulinkatejsiKulickaNeCelemSvete",url:"#",target:null},{id:2,perex:"Test test test",title:"Test test test",url:"#",target:null},{id:3,perex:"Test test test",title:"Test test test",url:"#",target:null},{id:4,perex:"Test test test",title:"Test test test",url:"#",target:null},{id:5,perex:"Test test test",title:"Test test test",url:"#",target:null}],cultureCode:"cs-CZ",localization:{"transparentAccountList/button":"Na\u010D\xEDst dal\u0161\xED","transparentAccountList/errorMessage":"\xDA\u010Dty se nepoda\u0159ilo na\u010D\xEDst, Zvolen\xFD \xFA\u010Det nen\xED dostupn\xFD, vyberte si ze seznamu n\xED\u017Ee."},pagination:{currentPage:1,pagesCount:5,rowsCount:47,rowsOnPage:10}},J={title:"V\u0161echny platby",balance:{amount:"6 507,50 CZK",date:"z\u016Fstatek k 2. 11. 2021 7:04"},api:"http://localhost:3131/api/transparent-detail",query:"account_id",maxVisibleDays:9999,items:[{id:1,date:"12. 12.",info:{title:"Consueq Invsvestment Ma",transparentAccountInfo:"Adam Majercik, Dar pro nadace",additionalInfo:"VS: 25085, KS: 25085, SS: 25085"},amount:{value:"10 000,00 CZK",type:"income"}},{id:2,date:"21. 11.",info:{title:"Odchoz\xED platba",transparentAccountInfo:"Dopl\u0148uj\xEDc\xED informace o transparentn\xED \xFA\u010Dtu"},amount:{value:"- 10 000,00 CZK",type:"expense"}},{id:3,date:"14. 10.",info:{title:'Polo\u017Eka "C" (1 \u0159\xE1dek v tabulce)'},amount:{value:"10 000,00 CZK",type:"income"}},{id:4,date:"13. 12.",year:"2020",info:{title:"Odchoz\xED platba",transparentAccountInfo:"Dopl\u0148uj\xEDc\xED informace o transparentn\xEDm \xFA\u010Dtu"},amount:{value:"- 10 000,00 CZK",type:"expense"}}],cultureCode:"cs-CZ",localization:{"transparentAccountDetail/button":"Na\u010D\xEDst dal\u0161\xED"},pagination:{currentPage:1,pagesCount:5,rowsCount:47,rowsOnPage:10}},Je=()=>{window?.WIDGETS_CONFIG||(window.WIDGETS_CONFIG={TransparentAccountList:Cr,TransparentAccountDetail:J})},Xe=async(n,e)=>{var t;const{res:r}=n,i={};i.res=r,i.data={success:!1,message:"An error occured."},i.originalError=n;try{typeof r<"u"&&typeof r.data=="object"&&r.data.message&&(i.data=r.data)}catch(a){console.error(a)}throw e&&(!((t=i?.data)===null||t===void 0)&&t.message)&&console.error(i.data.message),i},lt=n=>{var e,t,r;const i=(r=(t=(e=window.WIDGETS_CONFIG)===null||e===void 0?void 0:e.general)===null||t===void 0?void 0:t.requestVerificationToken)!==null&&r!==void 0?r:"";return i||console.error('Missing "requestVerificationToken" in general config!'),Object.assign(Object.assign({},n),{headers:Object.assign(Object.assign({},n.headers),{__RequestVerificationToken:i})})};
81async function Lt({settings:n,headers:e={Accept:"application/json","Content-Type":"application/json"},withErrorToast:t}){const r={method:n.method,body:n.body||null,credentials:"same-origin"};e&&(r.headers=e);const{url:i}=n,a=i.startsWith("/")?i:`/${i}`,s=lt(r);return fetch(a,s).then(c=>c.json()).then(c=>{if(c&&c.success)return c;throw{res:{data:{message:c.message,payload:c.payload,success:c.success}}}}).catch(c=>Xe(c,t))}const st=Lt,ye=(n,e)=>n?.[e]||e,Qr={getOffsetTop(n){const e=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;return n.getBoundingClientRect().top+e},toElement({behavior:n="smooth",customOffset:e=0,target:t}){const i=this.getOffsetTop(t)-e;window.scroll({behavior:n,top:i})}},Ci=()=>window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,Os={getDeviceWidth:Ci,isMobileBreakpoint:()=>Ci()<ze.sm,isDesktopBreakpoint:()=>Ci()>=ze.sm};function Am(n,e){n.allElements().forEach(t=>{(t.dataset.bg||t.dataset.lazyClass)&&n.newObserver().observe(t)}),n.loadImages(t=>{t.loading="lazy",e&&e(t)})}function sa(n={},e,t){this.update=()=>{this.enabled?this.loadImages(()=>{},!1):Am(this)},this.allElements=()=>[].slice.call(document.querySelectorAll(this.selector)),this.loadImages=(s=()=>{},c=!0)=>{const u=window.IntersectionObserver&&this.newObserver();this.allElements().forEach(f=>{a(f),s(f),!u||c?r(f):u.observe(f)})},this.newObserver=()=>new IntersectionObserver((s,c)=>{s.forEach(({intersectionRatio:u,target:f})=>{u>0&&(c.unobserve(f),r(f,!0))})},this.options);const r=(s,c)=>{const{src:u,srcset:f,bg:h,lazyClass:g}=s.dataset;c=c||!window.IntersectionObserver,u&&(s.src=u),f&&(s.srcset=f),c&&h&&(s.style.backgroundImage=`url("${h}")`),c&&g&&s.classList.add(g),i(s.parentElement)},i=s=>{window.HTMLPictureElement&&s instanceof HTMLPictureElement&&[].slice.call(s.querySelectorAll("[data-srcset]")).forEach(c=>{c.srcset=c.dataset.srcset})},a=s=>{const{placeholder:c,onload:u=()=>{}}=this.options,f=()=>{u(s),s.classList.add("loaded")};s.addEventListener("error",()=>{c&&!s.classList.contains("error")&&(s.src=c),s.classList.add("error"),s.removeEventListener("load",f)}),s.addEventListener("load",f)};this.selector=e||"[loading=lazy]",this.options=n,this.enabled=!HTMLImageElement.prototype.hasOwnProperty("loading")||t===sa.IGNORE_NATIVE_LAZYLOAD,this.update()}sa.IGNORE_NATIVE_LAZYLOAD=!0;const kf=sa,Lf=992,Rm=kf;function Im(n){const e=window.innerWidth>=Lf,t=(window.devicePixelRatio||1)>=2,{bgMobile:r,bgDesktop:i}=n.dataset,a=n.getAttribute("data-bg-mobile-2x"),s=n.getAttribute("data-bg-desktop-2x");return e?t&&s?s:i||(t&&a?a:r||null):t&&a?a:r||(t&&s?s:i||null)}function wu(){const n=document.querySelectorAll(".lazyload[data-bg-mobile], .lazyload[data-bg-desktop], .lazyload[data-bg-mobile-2x], .lazyload[data-bg-desktop-2x]");let e=!1;return n.forEach(t=>{const r=t,i=Im(r)||"";r.dataset.bg!==i&&(r.dataset.bg=i,e=!0)}),e}const Af=(()=>{wu();let n=new Rm({rootMargin:"200px"},".lazyload");document.querySelector(".js-tabs")&&(n=new Rm({rootMargin:"500px",threshold:.5},".lazyload"));let e=0;const t=()=>{e&&cancelAnimationFrame(e),e=requestAnimationFrame(()=>{wu()&&typeof n.update=="function"&&n.update()})};window.addEventListener("resize",t)});function Rf(n){if(!("IntersectionObserver"in window))return;new IntersectionObserver((r,i)=>{r.forEach(({isIntersecting:a,target:s})=>{if(a&&s instanceof HTMLVideoElement)for(let c=0;c<s.children.length;c+=1){const u=s.children[c];u&&(u.src=u.dataset.src,s.load(),s.classList.remove("lazyloadvideo"),i.unobserve(s))}})}).observe(n)}const If={toArray(n){return Array.isArray(n)?n:[n]},includes(n,e,t=!1){const r=Array.isArray(e)?e:[e];return t?r.every(i=>n.includes(i)):r.some(i=>n.includes(i))},fromNodes(n){return Array.isArray(n)?n:n instanceof HTMLCollection||n instanceof NodeList?Array.from(n):[n]},merge(...n){const e=n.reduce((r,i)=>Array.isArray(i)?r.concat(i):r.concat([i]),[]),t=this.trim(e);return this.unique(t)},mergeItemsById(n,e){if(n){const t=n.map(i=>i.id),r=e.filter(i=>!t.includes(i.id));return r.length?[...n,...r]:n}return e}
81,join(...n){return this.merge(...n).join(" ")},unique:n=>Array.from(new Set(n)),trim(n){return n.filter(Boolean)},remove(n,e){const t=n.indexOf(e);return t!==-1&&n.splice(t,1),n},getPreviousItems(n,e){const t=n.indexOf(e);let r=n;return t!==-1&&(r=n.filter((i,a)=>a<t)),r},flatten(n){return Array.isArray(n)?n.reduce((e,t)=>e.concat(t),[]):n},sum(n){return n.reduce((e,t)=>e+t,0)},move(n,e,t){const r=n[e];return n.splice(e,1),n.splice(t,0,r),n},toChunks(n,e){const t=[];for(let r=0;r<n.length;r+=e)t.push(n.slice(r,r+e));return t},isInSameGroup({items:n,arr:e,chunkSize:t}){const i=this.toChunks(e,t).find(s=>s.indexOf(n[0])!==-1);return this.includes(i,n,!0)}};function Nm(n){const e=n.constructor===Object,t=e?n.condition:!0,r=e?n.callback:n;return{condition:t,callback:r}}function Yr(n,e,t){const r=If.fromNodes(n);let i=e;i instanceof Array||(i=[i]);let{callback:a}=t;return t.hasOwnProperty("condition")&&t.condition.constructor===Function&&(a=s=>{t.condition()&&t.callback(s)}),i.map(s=>r.forEach(c=>c.addEventListener(s,a)))}const Kr={on(...n){try{const e=n[0],t=n[1];if(t.constructor===Object)Object.keys(t).forEach(r=>{const i=t[r],a=Nm(i);Yr(e,r,a)});else{const r=n[2],i=Nm(r);Yr(t,e,i)}}catch(e){throw new Error(e)}return!0},unmount(n,e,t,r=!1){const i=If.fromNodes(n);try{i.forEach(a=>a.removeEventListener(e,t,r))}catch(a){throw new Error(a)}return!0},loseFocus(){document.activeElement&&document.activeElement.blur(),document.body.focus()},triggerCustom({element:n,currentElement:e,componentClassName:t,readyClassName:r,eventId:i,payload:a={}}){const s=If.fromNodes(e||n.getElementsByClassName(t));if(!s.length)return;const c=u=>{let f;f=setInterval(()=>{let g=!0;if(Array.isArray(r)){for(let v=0;v<r.length;v+=1)if(!u.classList.contains(r[v])){g=!1;break}}else g=u.classList.contains(r);if(g){const v=new CustomEvent(i,{detail:a});u.dispatchEvent(v),clearInterval(f)}},300)};s.forEach(c)}},Nf={parseSafe(n){try{return JSON.parse(n)}catch{return null}}};function Pm(n){const e=new google.maps.Geocoder,{OK:t}=google.maps.GeocoderStatus;return new Promise((r,i)=>{e.geocode({address:n,componentRestrictions:{country:"cz"}},(a,s)=>{s!==t&&i(new Error(s)),r(a)})})}const Il=Pm,Na=n=>{const e=n.charAt(0).toLowerCase(),t=n.slice(1);return`${e}${t}`},Bm=n=>{let e={};return n.forEach(t=>{t.isDropdown===!0?t.items.forEach(r=>{e=Object.assign(Object.assign({},e),{[Na(r.value)]:r.isChecked})}):e=Object.assign(Object.assign({},e),{[Na(t.value)]:t.isChecked})}),e},At=n=>{const e=JSON.parse(window.localStorage.getItem(n));return e??kt},Tr=n=>window.localStorage.getItem(n)!==null,Hm=(n,e)=>{const t=new URLSearchParams(window.location.search);t.set(n,e.toString()),e===!1&&t.delete(n);const r=`${window.location.pathname}?${t.toString()}`;window.history.replaceState(null,"",r)},ko=()=>{var n,e,t;const r=(t=(e=(n=window.WIDGETS_CONFIG)===null||n===void 0?void 0:n.general)===null||e===void 0?void 0:e.requestVerificationToken)!==null&&t!==void 0?t:"";return r||console.error('Missing "requestVerificationToken" in general config!'),r},xu=(()=>{function n(){const t=new URLSearchParams(window.location.search).get("scrollTo");if(t){const r=document.getElementById(t);r?r.scrollIntoView({behavior:"smooth"}):console.warn(`Element with ID '${t}' not found.`)}}document.addEventListener("DOMContentLoaded",n)}),Ls="js-accordion",As="js-tabs-content-container",Nl="rotate-180",Lo="bg-white",$y="bgChange",Pf="isOpened",Pl=n=>{var e,t,r;const i=n.querySelector(`.${Ls}-button`),a=n.querySelector(`.${Ls}-button-icon`),s=n.querySelector(`.${Ls}-content-container`),c=n.querySelector(`.${Ls}-content`),u=((e=n.dataset)===null||e===void 0?void 0:e[$y])!==void 0,f=((t=n.dataset)===null||t===void 0?void 0:t[Pf])!==void 0?JSON.parse((r=n.dataset)===null||r===void 0?void 0:r[Pf].toLowerCase()):!1,h=n.closest(`.${As}`),g=!!h,v=new Event("accordionToggle");let y=!1,_=0;if(!i||!s)return;const w=`#${n.id}`,x=i.getAttribute("href"),S=()=>{y||s.classList.add("invisible")},T=()=>{y&&s.classList.remove("invisible")},M=()=>{i.setAttribute("aria-expanded",`${y}`),s.setAttribute("aria-hidden",`${!y}`)},C=()=>{s.style.maxHeight=`${_}px`,g&&(v.additionalHeight=_,h.dispatchEvent(v))},k=()=>{M(),a.classList.add(Nl),u&&i.classList.add(Lo),C()},L=()=>{M(),a.classList.remove(Nl),u&&i.classList.remove(Lo),s.style.maxHeight=null,g&&(v.additionalHeight=-_,h.dispatchEvent(v))},O=H=>
81{if(H.preventDefault(),y=!y,y){window.history.replaceState(null,null,x),k();return}window.history.replaceState(null,null,window.location.href.split("#")[0]),L()},I=()=>{_=s.scrollHeight,y&&C()},P=(H=!0)=>{window.location.hash===w&&(y=!0,k(),H&&Qr.toElement({target:n}))},B=new ResizeObserver(()=>{I()});i.addEventListener("click",O),B.observe(c),window.addEventListener("hashchange",()=>P(!1)),P(),f===!0&&(y=!0,k()),S(),T(),s.addEventListener("transitionstart",T),s.addEventListener("transitionend",S)};/*! js-cookie v3.0.1 | MIT */function Su(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)n[r]=t[r]}return n}var Fm={read:function(n){return n[0]==='"'&&(n=n.slice(1,-1)),n.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(n){return encodeURIComponent(n).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function Cu(n,e){function t(i,a,s){if(!(typeof document>"u")){s=Su({},e,s),typeof s.expires=="number"&&(s.expires=new Date(Date.now()+s.expires*864e5)),s.expires&&(s.expires=s.expires.toUTCString()),i=encodeURIComponent(i).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var c="";for(var u in s)s[u]&&(c+="; "+u,s[u]!==!0&&(c+="="+s[u].split(";")[0]));return document.cookie=i+"="+n.write(a,i)+c}}function r(i){if(!(typeof document>"u"||arguments.length&&!i)){for(var a=document.cookie?document.cookie.split("; "):[],s={},c=0;c<a.length;c++){var u=a[c].split("="),f=u.slice(1).join("=");try{var h=decodeURIComponent(u[0]);if(s[h]=n.read(f,h),i===h)break}catch{}}return i?s[i]:s}}return Object.create({set:t,get:r,remove:function(i,a){t(i,"",Su({},a,{expires:-1}))},withAttributes:function(i){return Cu(this.converter,Su({},this.attributes,i))},withConverter:function(i){return Cu(Su({},this.converter,i),this.attributes)}},{attributes:{value:Object.freeze(e)},converter:{value:Object.freeze(n)}})}var Vm=Cu(Fm,{path:"/"});const Bl=Vm,Ao={DECLINE:".js-cookie-decline",ACCEPT:".js-cookie-accept",OVERLAY:".js-overlay",CLOSE:".js-cookie-close"},Bf={OVERLAY:"overlay-cookie",ACTIVE:"active"},Ym="HideCookiePanel",Pa=(n=>{const e=n.querySelector(Ao.DECLINE),t=n.querySelector(Ao.ACCEPT),r=n.querySelector(Ao.CLOSE),i=document.querySelector(Ao.OVERLAY);if(Bl.get(Ym)==="hide")return;!e&&!t&&!r&&console.warn("Cookie controls not found in DOM (accept/decline/close).");const a=()=>{var y,_,w;const x=(w=(_=(y=window.WIDGETS_CONFIG)===null||y===void 0?void 0:y.general)===null||_===void 0?void 0:_.requestVerificationToken)!==null&&w!==void 0?w:"";return x||console.error('Missing "requestVerificationToken" in general config!'),x},s=()=>{i&&!n.classList.contains("js-cookieOld")&&i.classList.toggle(Bf.OVERLAY)};Kr.on(window,{DOMContentLoaded:()=>{n.classList.add(He.ACTIVE),s()}});const c=()=>{n.classList.remove(Bf.ACTIVE)},u=async y=>{const _={acceptAllCookies:y};try{await fetch(`${window.location.origin}/api/Cookie/Update`,{method:"POST",headers:{"Content-Type":"application/json",__RequestVerificationToken:a()},body:JSON.stringify(_)}).then(()=>{c()})}catch(w){U(w)}},f=y=>{const{dataLayer:_}=window,w={event:`${y.dataset.cookieConsentEvent||""}`,preferential:`${y.dataset.cookieConsentPreferential||""}`,analytical:`${y.dataset.cookieConsentAnalytical||""}`,marketing:`${y.dataset.cookieConsentMarketing||""}`,technical:`${y.dataset.cookieConsentTechnical||""}`,storageConsentsContext:{consentSelectionMethod:`${y.dataset.cookieConsentConsentselectionmethod||""}`,functionalStorageAllowed:`${y.dataset.cookieConsentPreferential||""}`,statisticsStorageAllowed:`${y.dataset.cookieConsentAnalytical||""}`,marketingStorageAllowed:`${y.dataset.cookieConsentMarketing||""}`,technicalStorageAllowed:`${y.dataset.cookieConsentTechnical||""}`}};_.push(w)},h=y=>{try{window.MeiroEvents&&window.MeiroEvents.updateStorageConsent({statistics:y})}catch(_){U(_)}},g=(y,_)=>{u(y),h(y),s(),f(_)},v=y=>{Bl.set("HideCookiePanel","hide"),c(),f(y)};t&&Kr.on(t,{click:()=>g(!0,t)}),e&&Kr.on(e,{click:()=>g(!1,e)}),r&&Kr.on(r,{click:()=>v(r)})}),_r="fileTitle",jr="linkLabel",Ro=300,Gy=n=>{const e=n.querySelector("svg");if(!e)return;let t=!1,r;const i=n.dataset[_r],a=n.dataset[jr],s=()=>{t=!0,window.clearInterval(r)},c=h=>{const g=document.createElement("a");g.download=i,g.href=h,g.setAttribute("aria-label",a),g.classList.add("block","w-fit"),n.parentNode.insertBefore(g,n),g.appendChild(n)},u=()=>{if(t)return;s();const h=new Image,v=new XMLSerializer().serializeToString(e);h.onload=()=>{const y=document.createElement("canvas"),_=800,{height:w,width:x}
81=e.getBoundingClientRect(),S=Math.max(w,x),T=Math.ceil(_/S),M=x*T,C=w*T;y.width=M,y.height=C,y.getContext("2d").drawImage(h,0,0,M,C);const L=y.toDataURL("image/png");c(L)},h.src=`data:image/svg+xml;base64,${window.btoa(v)}`},f=()=>{e.clientHeight!==0&&u()};e.addEventListener("load",u),r=window.setInterval(f,Ro)};var Zy=sn(181),Io=sn.n(Zy);const Ba="js-horizontal-panel",Wi="hidden",Rs="is-active",Is="is-dragging",oa=64,Ti=({containerEl:n,itemElement:e,callback:t})=>{const{offsetLeft:r}=e;n.scrollLeft=r-oa,t&&t()},Ns=n=>{let e=null,t=!1,r=!1,i=0,a=0;const s=n.querySelector(`.${Ba}-button-list`),{parentElement:c}=s,u=n.querySelector(`.${Ba}-prev-button`),f=n.querySelector(`.${Ba}-next-button`),h=s.querySelectorAll(`.${Ba}-button`),g=()=>{u.classList.add(Wi),f.classList.add(Wi),t=!0},v=O=>{const{offsetLeft:I}=c;r=!0,a=s.scrollLeft,i=O.pageX-I},y=()=>{r=!1,s.classList.remove(Is)},_=O=>{if(O.preventDefault(),!r)return;s.classList.add(Is),g();const P=O.pageX-c.offsetLeft-i;s.scrollLeft=a-P},w=({isLeftArrowVisible:O=!0,isRightArrowVisible:I=!0})=>{O&&u.classList.remove(Wi),I&&f.classList.remove(Wi)},x=()=>{const{clientWidth:O}=c,I=4;if(!(Array.from(h).reduce((ee,q)=>{const{width:Y}=q.getBoundingClientRect();return ee+Y+I},-I)>O)){g(),s.removeEventListener("mousedown",v),s.removeEventListener("mouseup",y),s.removeEventListener("mouseleave",y),s.removeEventListener("mousemove",_),s.removeEventListener("touchmove",g);return}if(s.addEventListener("mousedown",v),s.addEventListener("mouseup",y),s.addEventListener("mouseleave",y),s.addEventListener("mousemove",_),s.addEventListener("touchmove",g),t)return;const{scrollLeft:H,scrollWidth:F,offsetWidth:$}=s;let V=!1,W=!1;H>0&&(V=!0),$+H<F&&(W=!0),w({isLeftArrowVisible:V,isRightArrowVisible:W})},S=({side:O})=>{const{clientWidth:I}=c,{scrollLeft:P}=s,B=80,H=40,F=Os.isMobileBreakpoint(),$=I/100*(F?B:H),V=O==="right"?P+$:P-$;s.scrollLeft=V,g()},T=O=>{const{intersectionRatio:I,boundingClientRect:P}=O;if(!(I!==1))return;const{x:H,right:F}=P,$=H<0,V=F>Os.getDeviceWidth();if($&&V){Ti({containerEl:s,itemElement:O.target});return}const W=s.scrollLeft,ee=16;if($){const q=!u.classList.contains(Wi),Y=ee+(q?oa:0);s.scrollLeft=W+H-Y;return}if(V){const q=!f.classList.contains(Wi),Y=F-Os.getDeviceWidth(),ae=ee+(q?oa:0);s.scrollLeft=W+Y+ae}},M=O=>{const{intersectionRect:I,boundingClientRect:P}=O;if(I.width===P.width)return;const H=P.x<I.x,F=I.right<P.right;if(H&&F){Ti({containerEl:s,itemElement:O.target}),Ti({containerEl:s,itemElement:O.target});return}const $=s.scrollLeft,V=16;if(H){const W=!u.classList.contains(Wi),ee=I.x-P.x,q=V+(W?oa:0);s.scrollLeft=$-ee-q;return}if(F){const W=!f.classList.contains(Wi),ee=P.right-I.right,q=V+(W?oa:0);s.scrollLeft=$+ee+q}},C=O=>{const I=new IntersectionObserver(([P])=>{Os.isMobileBreakpoint()?T(P):M(P),I.disconnect()});I.observe(O)},k=O=>{O.preventDefault();const I=O.currentTarget;I!==e&&(e=I,C(I))},L=()=>{e=Array.from(h).find(O=>O.classList.contains(Rs)),h.forEach(O=>{O.addEventListener("click",k)}),u.addEventListener("click",()=>S({side:"left"})),f.addEventListener("click",()=>S({side:"right"})),x()};window.addEventListener("resize",Io()(()=>{x();const O=Array.from(h).find(I=>I.classList.contains(Rs));C(O)},200)),window.setTimeout(()=>{L()},100)},No="js-tabs",Mi="is-active",Ha="is-hidden",Hf="initial-setup",zf=250,Qy=n=>{let e=0,t=0,r=0,i=!0,a=!1;const s=n.querySelector(`.${No}-button-list`);if(!s){console.warn("Tab button list element not found, aborting tabs initialization");return}s.setAttribute("role","tablist");const c=s.querySelectorAll(`.${No}-button`);if(c.length===0){console.warn("No tab buttons found, aborting tabs initialization");return}const u=n.querySelector(`.${No}-content-outer-container`);if(!u){console.warn("Content outer container not found, aborting tabs initialization");return}const f=n.querySelectorAll(`.${No}-content-container`),h=n.querySelectorAll(`.${No}-content`);if(f.length===0||h.length===0){console.warn("No tab content found, aborting tabs initialization");return}const g=({newActiveContentContainer:C})=>{C.addEventListener("transitionend",()=>{a=!1},{once:!0}),C.classList.remove(Ha),C.classList.add(Mi),i&&(i=!1,u?.removeAttribute("style")),Array.from(f).filter(L=>
81L!==C&&!L.classList.contains(Ha)).forEach(L=>{L.classList.add(Ha)})},v=({isWindowResized:C=!1,additionalHeight:k=0})=>{r&&window.cancelAnimationFrame(r);const L=f[e],O=f[t],I=h[t];if(!u){console.warn("contentOuterContainer not found, skipping height animation");return}const{height:P}=u.getBoundingClientRect(),B=I.scrollHeight+k;let H=0;const F=B-P,$=W=>{H||(H=W);const ee=W-H,q=ee/zf,Y=P+F*Math.min(q,1);if(u.style.height=`${Y}px`,ee<zf){r=window.requestAnimationFrame($);return}C||g({newActiveContentContainer:O})};if(C){r=window.requestAnimationFrame($);return}const V=()=>{if(F!==0){r=window.requestAnimationFrame($);return}g({newActiveContentContainer:O})};a?V():L.addEventListener("transitionend",()=>{V()},{once:!0}),L.classList.remove(Mi),L.setAttribute("aria-expanded","false"),O.setAttribute("aria-expanded","true")},y=({newActiveIndex:C})=>{e=t,t=C},_=(C=!1)=>{if(t===e&&!C)return;a=!0;const k=c[t],L=c[e];k.classList.add(Mi),L.classList.remove(Mi),k.setAttribute("aria-selected","true"),k.setAttribute("tabindex","0"),L.setAttribute("aria-selected","false"),L.setAttribute("tabindex","-1"),v({})},w=()=>{const{hash:C}=window.location;if(!C)return;let k=0;const L=Array.from(c).find((O,I)=>{const{hash:P}=O;return P?(k=I,P===C):!1});L&&(y({newActiveIndex:k}),_(),Qr.toElement({target:L,customOffset:10}))},x=C=>{var k;C.preventDefault(),(k=n.querySelector(".js-tile"))===null||k===void 0||k.classList.add("is-inTab");let L=0;i&&(i=!1);const O=Array.from(c).find((I,P)=>(L=P,I===C.currentTarget));!O||L===t||(y({newActiveIndex:L}),window.history.replaceState(null,"",O.hash),_())},S=()=>{const C=Array.from(c).findIndex(k=>k.classList.contains(Mi));t=C>=0?C:0},T=()=>{Array.from(f).forEach(k=>{k.addEventListener("accordionToggle",L=>{const{additionalHeight:O}=L;v({isWindowResized:!0,additionalHeight:O})})})},M=()=>{c.forEach(k=>{k.addEventListener("click",x)}),S(),w();const C=c[t];C&&Ti({containerEl:s,itemElement:C,callback:()=>s.classList.remove(Hf)}),T()};window.addEventListener("hashchange",()=>{w(),s.classList.add(Hf);const C=c[t];C&&Ti({containerEl:s,itemElement:C,callback:()=>s.classList.remove(Hf)})}),window.addEventListener("resize",Io()(()=>{v({isWindowResized:!0})},200)),M()};function Hl(n){return n!==null&&typeof n=="object"&&"constructor"in n&&n.constructor===Object}function Po(n,e){n===void 0&&(n={}),e===void 0&&(e={}),Object.keys(e).forEach(function(t){typeof n[t]>"u"?n[t]=e[t]:Hl(e[t])&&Hl(n[t])&&Object.keys(e[t]).length>0&&Po(n[t],e[t])})}var Ui={body:{},addEventListener:function(){},removeEventListener:function(){},activeElement:{blur:function(){},nodeName:""},querySelector:function(){return null},querySelectorAll:function(){return[]},getElementById:function(){return null},createEvent:function(){return{initEvent:function(){}}},createElement:function(){return{children:[],childNodes:[],style:{},setAttribute:function(){},getElementsByTagName:function(){return[]}}},createElementNS:function(){return{}},importNode:function(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function Cn(){var n=typeof document<"u"?document:{};return Po(n,Ui),n}var Wm={document:Ui,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState:function(){},pushState:function(){},go:function(){},back:function(){}},CustomEvent:function(){return this},addEventListener:function(){},removeEventListener:function(){},getComputedStyle:function(){return{getPropertyValue:function(){return""}}},Image:function(){},Date:function(){},screen:{},setTimeout:function(){},clearTimeout:function(){},matchMedia:function(){return{}},requestAnimationFrame:function(n){return typeof setTimeout>"u"?(n(),null):setTimeout(n,0)},cancelAnimationFrame:function(n){typeof setTimeout>"u"||clearTimeout(n)}};function ar(){var n=typeof window<"u"?window:{};return Po(n,Wm),n}function Ff(n,e){n.prototype=Object.create(e.prototype),n.prototype.constructor=n,n.__proto__=e}function Tu(n){return Tu=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Tu(n)}
81function Ps(n,e){return Ps=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Ps(n,e)}function Ky(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function Ar(n,e,t){return Ky()?Ar=Reflect.construct:Ar=function(i,a,s){var c=[null];c.push.apply(c,a);var u=Function.bind.apply(i,c),f=new u;return s&&Ps(f,s.prototype),f},Ar.apply(null,arguments)}function Vf(n){return Function.toString.call(n).indexOf("[native code]")!==-1}function Mu(n){var e=typeof Map=="function"?new Map:void 0;return Mu=function(r){if(r===null||!Vf(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e<"u"){if(e.has(r))return e.get(r);e.set(r,i)}function i(){return Ar(r,arguments,Tu(this).constructor)}return i.prototype=Object.create(r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),Ps(i,r)},Mu(n)}function Yf(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function Bo(n){var e=n.__proto__;Object.defineProperty(n,"__proto__",{get:function(){return e},set:function(r){e.__proto__=r}})}var la=(function(n){Ff(e,n);function e(t){var r;return r=n.call.apply(n,[this].concat(t))||this,Bo(Yf(r)),r}return e})(Mu(Array));function Ho(n){n===void 0&&(n=[]);var e=[];return n.forEach(function(t){Array.isArray(t)?e.push.apply(e,Ho(t)):e.push(t)}),e}function Bs(n,e){return Array.prototype.filter.call(n,e)}function Jy(n){for(var e=[],t=0;t<n.length;t+=1)e.indexOf(n[t])===-1&&e.push(n[t]);return e}function Um(n){return n.toLowerCase().replace(/-(.)/g,function(e,t){return t.toUpperCase()})}function qm(n,e){if(typeof n!="string")return[n];for(var t=[],r=e.querySelectorAll(n),i=0;i<r.length;i+=1)t.push(r[i]);return t}function Ct(n,e){var t=ar(),r=Cn(),i=[];if(!e&&n instanceof la)return n;if(!n)return new la(i);if(typeof n=="string"){var a=n.trim();if(a.indexOf("<")>=0&&a.indexOf(">")>=0){var s="div";a.indexOf("<li")===0&&(s="ul"),a.indexOf("<tr")===0&&(s="tbody"),(a.indexOf("<td")===0||a.indexOf("<th")===0)&&(s="tr"),a.indexOf("<tbody")===0&&(s="table"),a.indexOf("<option")===0&&(s="select");var c=r.createElement(s);c.innerHTML=a;for(var u=0;u<c.childNodes.length;u+=1)i.push(c.childNodes[u])}else i=qm(n.trim(),e||r)}else if(n.nodeType||n===t||n===r)i.push(n);else if(Array.isArray(n)){if(n instanceof la)return n;i=n}return new la(Jy(i))}Ct.fn=la.prototype;function eb(){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];var r=Ho(e.map(function(i){return i.split(" ")}));return this.forEach(function(i){var a;(a=i.classList).add.apply(a,r)}),this}function tb(){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];var r=Ho(e.map(function(i){return i.split(" ")}));return this.forEach(function(i){var a;(a=i.classList).remove.apply(a,r)}),this}function Du(){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];var r=Ho(e.map(function(i){return i.split(" ")}));this.forEach(function(i){r.forEach(function(a){i.classList.toggle(a)})})}function ca(){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];var r=Ho(e.map(function(i){return i.split(" ")}));return Bs(this,function(i){return r.filter(function(a){return i.classList.contains(a)}).length>0}).length>0}function jf(n,e){if(arguments.length===1&&typeof n=="string")return this[0]?this[0].getAttribute(n):void 0;for(var t=0;t<this.length;t+=1)if(arguments.length===2)this[t].setAttribute(n,e);else for(var r in n)this[t][r]=n[r],this[t].setAttribute(r,n[r]);return this}function Wf(n){for(var e=0;e<this.length;e+=1)this[e].removeAttribute(n);return this}function zl(n,e){if(arguments.length===1&&typeof n=="string"){if(this[0])return this[0][n]}else{for(var t=0;t<this.length;t+=1)if(arguments.length===2)this[t][n]=e;else for(var r in n)this[t][r]=n[r];return this}return this}function Fl(n,e){var t;if(typeof e>"u"){if(t=this[0],!t)return;if(t.dom7ElementDataStorage&&n in t.dom7ElementDataStorage)return t.dom7ElementDataStorage[n];var r=t.getAttribute("data-"+n);return r||void 0}for(var i=0;i<this.length;i+=1)t=this[i],t.dom7ElementDataStorage||(t.dom7ElementDataStorage={}),t.dom7ElementDataStorage[n]=e;return this}function nb(n){for(var e=0;e<this.length;e+=1){var t=this[e];t.dom7ElementDataStorage&&t.dom7ElementDataStorage[n]&&(t.dom7ElementDataStorage[n]=null,delete t.dom7ElementDataStorage[n])}}function $m(){var n=this[0];if(n){var e={};if(n.dataset)for(var t in n.dataset)e[t]=n.dataset[t];else for(var r=0;r<n.attributes.length;r+=1){var i=n.attributes[r];i.name.indexOf("data-")>=0&&(e[Um(i.name.split("data-")[1])]=i.value)}
81for(var a in e)e[a]==="false"?e[a]=!1:e[a]==="true"?e[a]=!0:parseFloat(e[a])===e[a]*1&&(e[a]*=1);return e}}function rb(n){if(typeof n>"u"){var e=this[0];if(!e)return;if(e.multiple&&e.nodeName.toLowerCase()==="select"){for(var t=[],r=0;r<e.selectedOptions.length;r+=1)t.push(e.selectedOptions[r].value);return t}return e.value}for(var i=0;i<this.length;i+=1){var a=this[i];if(Array.isArray(n)&&a.multiple&&a.nodeName.toLowerCase()==="select")for(var s=0;s<a.options.length;s+=1)a.options[s].selected=n.indexOf(a.options[s].value)>=0;else a.value=n}return this}function Ou(n){return this.val(n)}function ua(n){for(var e=0;e<this.length;e+=1)this[e].style.transform=n;return this}function Uf(n){for(var e=0;e<this.length;e+=1)this[e].style.transitionDuration=typeof n!="string"?n+"ms":n;return this}function Vl(){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];var r=e[0],i=e[1],a=e[2],s=e[3];typeof e[1]=="function"&&(r=e[0],a=e[1],s=e[2],i=void 0),s||(s=!1);function c(w){var x=w.target;if(x){var S=w.target.dom7EventData||[];if(S.indexOf(w)<0&&S.unshift(w),Ct(x).is(i))a.apply(x,S);else for(var T=Ct(x).parents(),M=0;M<T.length;M+=1)Ct(T[M]).is(i)&&a.apply(T[M],S)}}function u(w){var x=w&&w.target?w.target.dom7EventData||[]:[];x.indexOf(w)<0&&x.unshift(w),a.apply(this,x)}for(var f=r.split(" "),h,g=0;g<this.length;g+=1){var v=this[g];if(i)for(h=0;h<f.length;h+=1){var _=f[h];v.dom7LiveListeners||(v.dom7LiveListeners={}),v.dom7LiveListeners[_]||(v.dom7LiveListeners[_]=[]),v.dom7LiveListeners[_].push({listener:a,proxyListener:c}),v.addEventListener(_,c,s)}else for(h=0;h<f.length;h+=1){var y=f[h];v.dom7Listeners||(v.dom7Listeners={}),v.dom7Listeners[y]||(v.dom7Listeners[y]=[]),v.dom7Listeners[y].push({listener:a,proxyListener:u}),v.addEventListener(y,u,s)}}return this}function za(){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];var r=e[0],i=e[1],a=e[2],s=e[3];typeof e[1]=="function"&&(r=e[0],a=e[1],s=e[2],i=void 0),s||(s=!1);for(var c=r.split(" "),u=0;u<c.length;u+=1)for(var f=c[u],h=0;h<this.length;h+=1){var g=this[h],v=void 0;if(!i&&g.dom7Listeners?v=g.dom7Listeners[f]:i&&g.dom7LiveListeners&&(v=g.dom7LiveListeners[f]),v&&v.length)for(var y=v.length-1;y>=0;y-=1){var _=v[y];a&&_.listener===a||a&&_.listener&&_.listener.dom7proxy&&_.listener.dom7proxy===a?(g.removeEventListener(f,_.proxyListener,s),v.splice(y,1)):a||(g.removeEventListener(f,_.proxyListener,s),v.splice(y,1))}}return this}function Gm(){for(var n=this,e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i=t[0],a=t[1],s=t[2],c=t[3];typeof t[1]=="function"&&(i=t[0],s=t[1],c=t[2],a=void 0);function u(){for(var f=arguments.length,h=new Array(f),g=0;g<f;g++)h[g]=arguments[g];s.apply(this,h),n.off(i,a,u,c),u.dom7proxy&&delete u.dom7proxy}return u.dom7proxy=s,n.on(i,a,u,c)}function ku(){for(var n=ar(),e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var i=t[0].split(" "),a=t[1],s=0;s<i.length;s+=1)for(var c=i[s],u=0;u<this.length;u+=1){var f=this[u];if(n.CustomEvent){var h=new n.CustomEvent(c,{detail:a,bubbles:!0,cancelable:!0});f.dom7EventData=t.filter(function(g,v){return v>0}),f.dispatchEvent(h),f.dom7EventData=[],delete f.dom7EventData}}return this}function Zm(n){var e=this;function t(r){r.target===this&&(n.call(this,r),e.off("transitionend",t))}return n&&e.on("transitionend",t),this}function qf(n){var e=this;function t(r){r.target===this&&(n.call(this,r),e.off("animationend",t))}return n&&e.on("animationend",t),this}function $f(){var n=getWindow();return this[0]===n?n.innerWidth:this.length>0?parseFloat(this.css("width")):null}function Xm(n){if(this.length>0){if(n){var e=this.styles();return this[0].offsetWidth+parseFloat(e.getPropertyValue("margin-right"))+parseFloat(e.getPropertyValue("margin-left"))}return this[0].offsetWidth}return null}function Jr(){var n=getWindow();return this[0]===n?n.innerHeight:this.length>0?parseFloat(this.css("height")):null}function Hs(n){if(this.length>0){if(n){var e=this.styles();return this[0].offsetHeight+parseFloat(e.getPropertyValue("margin-top"))+parseFloat(e.getPropertyValue("margin-bottom"))}return this[0].offsetHeight}return null}
81function Lu(){if(this.length>0){var n=ar(),e=Cn(),t=this[0],r=t.getBoundingClientRect(),i=e.body,a=t.clientTop||i.clientTop||0,s=t.clientLeft||i.clientLeft||0,c=t===n?n.scrollY:t.scrollTop,u=t===n?n.scrollX:t.scrollLeft;return{top:r.top+c-a,left:r.left+u-s}}return null}function Au(){for(var n=0;n<this.length;n+=1)this[n].style.display="none";return this}function iE(){for(var n=getWindow(),e=0;e<this.length;e+=1){var t=this[e];t.style.display==="none"&&(t.style.display=""),n.getComputedStyle(t,null).getPropertyValue("display")==="none"&&(t.style.display="block")}return this}function Gf(){var n=ar();return this[0]?n.getComputedStyle(this[0],null):{}}function Zf(n,e){var t=ar(),r;if(arguments.length===1)if(typeof n=="string"){if(this[0])return t.getComputedStyle(this[0],null).getPropertyValue(n)}else{for(r=0;r<this.length;r+=1)for(var i in n)this[r].style[i]=n[i];return this}if(arguments.length===2&&typeof n=="string"){for(r=0;r<this.length;r+=1)this[r].style[n]=e;return this}return this}function Yl(n){return n?(this.forEach(function(e,t){n.apply(e,[e,t])}),this):this}function Ru(n){var e=Bs(this,n);return Ct(e)}function Qm(n){if(typeof n>"u")return this[0]?this[0].innerHTML:null;for(var e=0;e<this.length;e+=1)this[e].innerHTML=n;return this}function ib(n){if(typeof n>"u")return this[0]?this[0].textContent.trim():null;for(var e=0;e<this.length;e+=1)this[e].textContent=n;return this}function ab(n){var e=ar(),t=Cn(),r=this[0],i,a;if(!r||typeof n>"u")return!1;if(typeof n=="string"){if(r.matches)return r.matches(n);if(r.webkitMatchesSelector)return r.webkitMatchesSelector(n);if(r.msMatchesSelector)return r.msMatchesSelector(n);for(i=Ct(n),a=0;a<i.length;a+=1)if(i[a]===r)return!0;return!1}if(n===t)return r===t;if(n===e)return r===e;if(n.nodeType||n instanceof la){for(i=n.nodeType?[n]:n,a=0;a<i.length;a+=1)if(i[a]===r)return!0;return!1}return!1}function sb(){var n=this[0],e;if(n){for(e=0;(n=n.previousSibling)!==null;)n.nodeType===1&&(e+=1);return e}}function Xf(n){if(typeof n>"u")return this;var e=this.length;if(n>e-1)return Ct([]);if(n<0){var t=e+n;return t<0?Ct([]):Ct([this[t]])}return Ct([this[n]])}function ob(){for(var n,e=Cn(),t=0;t<arguments.length;t+=1){n=t<0||arguments.length<=t?void 0:arguments[t];for(var r=0;r<this.length;r+=1)if(typeof n=="string"){var i=e.createElement("div");for(i.innerHTML=n;i.firstChild;)this[r].appendChild(i.firstChild)}else if(n instanceof la)for(var a=0;a<n.length;a+=1)this[r].appendChild(n[a]);else this[r].appendChild(n)}return this}function aE(n){return Ct(n).append(this),this}function lb(n){var e=Cn(),t,r;for(t=0;t<this.length;t+=1)if(typeof n=="string"){var i=e.createElement("div");for(i.innerHTML=n,r=i.childNodes.length-1;r>=0;r-=1)this[t].insertBefore(i.childNodes[r],this[t].childNodes[0])}else if(n instanceof la)for(r=0;r<n.length;r+=1)this[t].insertBefore(n[r],this[t].childNodes[0]);else this[t].insertBefore(n,this[t].childNodes[0]);return this}function sE(n){return Ct(n).prepend(this),this}function oE(n){for(var e=Ct(n),t=0;t<this.length;t+=1)if(e.length===1)e[0].parentNode.insertBefore(this[t],e[0]);else if(e.length>1)for(var r=0;r<e.length;r+=1)e[r].parentNode.insertBefore(this[t].cloneNode(!0),e[r])}function cb(n){for(var e=Ct(n),t=0;t<this.length;t+=1)if(e.length===1)e[0].parentNode.insertBefore(this[t],e[0].nextSibling);else if(e.length>1)for(var r=0;r<e.length;r+=1)e[r].parentNode.insertBefore(this[t].cloneNode(!0),e[r].nextSibling)}function ub(n){return this.length>0?n?this[0].nextElementSibling&&Ct(this[0].nextElementSibling).is(n)?Ct([this[0].nextElementSibling]):Ct([]):this[0].nextElementSibling?Ct([this[0].nextElementSibling]):Ct([]):Ct([])}function db(n){var e=[],t=this[0];if(!t)return Ct([]);for(;t.nextElementSibling;){var r=t.nextElementSibling;n?Ct(r).is(n)&&e.push(r):e.push(r),t=r}return Ct(e)}function fb(n){if(this.length>0){var e=this[0];return n?e.previousElementSibling&&Ct(e.previousElementSibling).is(n)?Ct([e.previousElementSibling]):Ct([]):e.previousElementSibling?Ct([e.previousElementSibling]):Ct([])}return Ct([])}function hb(n){var e=[],t=this[0];if(!t)return Ct([]);for(;t.previousElementSibling;){var r=t.previousElementSibling;n?Ct(r).is(n)&&e.push(r):e.push(r),t=r}return Ct(e)}function Km(n){return this.nextAll(n).add(this.prevAll(n))}function pb(n){for(var e=[],t=0;t<this.length;t+=1)this[t].parentNode!==null&&(n?Ct(this[t].parentNode).is(n)&&e.push(this[t].parentNode):e.push(this[t].parentNode));return Ct(e)}function mb(n){for(var e=[],t=0;t<this.length;t+=1)for(var r=this[t].parentNode;r;)n?Ct(r).is(n)&&e.push(r):e.push(r),r=r.parentNode;return Ct(e)}function gb(n){var e=this;return typeof n>"u"?Ct([]):(e.is(n)||(e=e.parents(n).eq(0)),e)}function Jm(n){for(var e=[],t=0;t<this.length;t+=1)for(var r=this[t].querySelectorAll(n),i=0;i<r.length;
81i+=1)e.push(r[i]);return Ct(e)}function vb(n){for(var e=[],t=0;t<this.length;t+=1)for(var r=this[t].children,i=0;i<r.length;i+=1)(!n||Ct(r[i]).is(n))&&e.push(r[i]);return Ct(e)}function yb(){for(var n=0;n<this.length;n+=1)this[n].parentNode&&this[n].parentNode.removeChild(this[n]);return this}function lE(){return this.remove()}function cE(){for(var n=this,e,t,r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];for(e=0;e<i.length;e+=1){var s=Ct(i[e]);for(t=0;t<s.length;t+=1)n.push(s[t])}return n}function uE(){for(var n=0;n<this.length;n+=1){var e=this[n];if(e.nodeType===1){for(var t=0;t<e.childNodes.length;t+=1)e.childNodes[t].parentNode&&e.childNodes[t].parentNode.removeChild(e.childNodes[t]);e.textContent=""}}return this}function dE(){for(var n=getWindow(),e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i=t[0],a=t[1],s=t[2],c=t[3],u=t[4];return t.length===4&&typeof c=="function"&&(u=c,i=t[0],a=t[1],s=t[2],u=t[3],c=t[4]),typeof c>"u"&&(c="swing"),this.each(function(){var h=this,g,v,y,_,w,x,S,T,M=a>0||a===0,C=i>0||i===0;if(typeof c>"u"&&(c="swing"),M&&(g=h.scrollTop,s||(h.scrollTop=a)),C&&(v=h.scrollLeft,s||(h.scrollLeft=i)),!s)return;M&&(y=h.scrollHeight-h.offsetHeight,w=Math.max(Math.min(a,y),0)),C&&(_=h.scrollWidth-h.offsetWidth,x=Math.max(Math.min(i,_),0));var k=null;M&&w===g&&(M=!1),C&&x===v&&(C=!1);function L(O){O===void 0&&(O=new Date().getTime()),k===null&&(k=O);var I=Math.max(Math.min((O-k)/s,1),0),P=c==="linear"?I:.5-Math.cos(I*Math.PI)/2,B;if(M&&(S=g+P*(w-g)),C&&(T=v+P*(x-v)),M&&w>g&&S>=w&&(h.scrollTop=w,B=!0),M&&w<g&&S<=w&&(h.scrollTop=w,B=!0),C&&x>v&&T>=x&&(h.scrollLeft=x,B=!0),C&&x<v&&T<=x&&(h.scrollLeft=x,B=!0),B){u&&u();return}M&&(h.scrollTop=S),C&&(h.scrollLeft=T),n.requestAnimationFrame(L)}n.requestAnimationFrame(L)})}function fE(){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];var r=e[0],i=e[1],a=e[2],s=e[3];e.length===3&&typeof a=="function"&&(r=e[0],i=e[1],s=e[2],a=e[3]);var c=this;return typeof r>"u"?c.length>0?c[0].scrollTop:null:c.scrollTo(void 0,r,i,a,s)}function hE(){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];var r=e[0],i=e[1],a=e[2],s=e[3];e.length===3&&typeof a=="function"&&(r=e[0],i=e[1],s=e[2],a=e[3]);var c=this;return typeof r>"u"?c.length>0?c[0].scrollLeft:null:c.scrollTo(r,void 0,i,a,s)}function pE(n,e){var t=getWindow(),r=this,i={props:Object.assign({},n),params:Object.assign({duration:300,easing:"swing"},e),elements:r,animating:!1,que:[],easingProgress:function(u,f){return u==="swing"?.5-Math.cos(f*Math.PI)/2:typeof u=="function"?u(f):f},stop:function(){i.frameId&&t.cancelAnimationFrame(i.frameId),i.animating=!1,i.elements.each(function(u){var f=u;delete f.dom7AnimateInstance}),i.que=[]},done:function(u){if(i.animating=!1,i.elements.each(function(h){var g=h;delete g.dom7AnimateInstance}),u&&u(r),i.que.length>0){var f=i.que.shift();i.animate(f[0],f[1])}},animate:function(u,f){if(i.animating)return i.que.push([u,f]),i;var h=[];i.elements.each(function(T,M){var C,k,L,O,I;T.dom7AnimateInstance||(i.elements[M].dom7AnimateInstance=i),h[M]={container:T},Object.keys(u).forEach(function(P){C=t.getComputedStyle(T,null).getPropertyValue(P).replace(",","."),k=parseFloat(C),L=C.replace(k,""),O=parseFloat(u[P]),I=u[P]+L,h[M][P]={initialFullValue:C,initialValue:k,unit:L,finalValue:O,finalFullValue:I,currentValue:k}})});var g=null,v,y=0,_=0,w,x=!1;i.animating=!0;function S(){v=new Date().getTime();var T,M;x||(x=!0,f.begin&&f.begin(r)),g===null&&(g=v),f.progress&&f.progress(r,Math.max(Math.min((v-g)/f.duration,1),0),g+f.duration-v<0?0:g+f.duration-v,g),h.forEach(function(C){var k=C;w||k.done||Object.keys(u).forEach(function(L){if(!(w||k.done)){T=Math.max(Math.min((v-g)/f.duration,1),0),M=i.easingProgress(f.easing,T);var O=k[L],I=O.initialValue,P=O.finalValue,B=O.unit;k[L].currentValue=I+M*(P-I);var H=k[L].currentValue;if((P>I&&H>=P||P<I&&H<=P)&&(k.container.style[L]=P+B,_+=1,_===Object.keys(u).length&&(k.done=!0,y+=1),y===h.length&&(w=!0)),w){i.done(f.complete);return}k.container.style[L]=H+B}})}),!w&&(i.frameId=t.requestAnimationFrame(S))}return i.frameId=t.requestAnimationFrame(S),i}};if(i.elements.length===0)return r;for(var a,s=0;s<i.elements.length;s+=1)i.elements[s].dom7AnimateInstance?a=i.elements[s].dom7AnimateInstance:i.elements[s].dom7AnimateInstance=i;return a||(a=i),n==="stop"?a.stop():a.animate(i.props,i.params),r}function eg(){for(var n=this,e=0;e<n.length;e+=1)n[e].dom7AnimateInstance&&n[e].dom7AnimateInstance.stop()}var jl="resize scroll".split(" ");function Fn(n){function e(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];if(typeof r[0]>"u"){for(var a=0;a<this.length;a+=1)jl.indexOf(n)<0&&(n in this[a]?this[a][n]():Ct(this[a]).trigger(n));return this}return this.on.apply(this,[n].concat(r))}return e}var bb=Fn("click"),_b=Fn("blur"),wb=Fn("focus"),Eb=Fn("focusin"),xb=Fn("focusout"),Wl=Fn("keyup"),mE=Fn("keydown"),gE=Fn("keypress"),vE=Fn("submit"),Sb=Fn("change"),Cb=Fn("mousedown"),Iu=Fn("mousemove"),Nu=Fn("mouseup"),yE=Fn("mouseenter"),Qf=Fn("mouseleave"),Tb=Fn("mouseout"),Mb=Fn("mouseover"),tg=Fn("touchstart"),ng=Fn("touchend"),Db=Fn("touchmove"),Ob=Fn("resize"),kb=Fn("scroll");const bE=null;
81var rg={addClass:eb,removeClass:tb,hasClass:ca,toggleClass:Du,attr:jf,removeAttr:Wf,transform:ua,transition:Uf,on:Vl,off:za,trigger:ku,transitionEnd:Zm,outerWidth:Xm,outerHeight:Hs,styles:Gf,offset:Lu,css:Zf,each:Yl,html:Qm,text:ib,is:ab,index:sb,eq:Xf,append:ob,prepend:lb,next:ub,nextAll:db,prev:fb,prevAll:hb,parent:pb,parents:mb,closest:gb,find:Jm,children:vb,filter:Ru,remove:yb};Object.keys(rg).forEach(function(n){Object.defineProperty(Ct.fn,n,{value:rg[n],writable:!0})});const On=Ct;function Lb(n){var e=n;Object.keys(e).forEach(function(t){try{e[t]=null}catch{}try{delete e[t]}catch{}})}function Kf(n,e){return e===void 0&&(e=0),setTimeout(n,e)}function Xn(){return Date.now()}function Ul(n){var e=ar(),t;return e.getComputedStyle&&(t=e.getComputedStyle(n,null)),!t&&n.currentStyle&&(t=n.currentStyle),t||(t=n.style),t}function ig(n,e){e===void 0&&(e="x");var t=ar(),r,i,a,s=Ul(n,null);return t.WebKitCSSMatrix?(i=s.transform||s.webkitTransform,i.split(",").length>6&&(i=i.split(", ").map(function(c){return c.replace(",",".")}).join(", ")),a=new t.WebKitCSSMatrix(i==="none"?"":i)):(a=s.MozTransform||s.OTransform||s.MsTransform||s.msTransform||s.transform||s.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),r=a.toString().split(",")),e==="x"&&(t.WebKitCSSMatrix?i=a.m41:r.length===16?i=parseFloat(r[12]):i=parseFloat(r[4])),e==="y"&&(t.WebKitCSSMatrix?i=a.m42:r.length===16?i=parseFloat(r[13]):i=parseFloat(r[5])),i||0}function zo(n){return typeof n=="object"&&n!==null&&n.constructor&&Object.prototype.toString.call(n).slice(8,-1)==="Object"}function ag(n){return typeof window<"u"&&typeof window.HTMLElement<"u"?n instanceof HTMLElement:n&&(n.nodeType===1||n.nodeType===11)}function In(){for(var n=Object(arguments.length<=0?void 0:arguments[0]),e=["__proto__","constructor","prototype"],t=1;t<arguments.length;t+=1){var r=t<0||arguments.length<=t?void 0:arguments[t];if(r!=null&&!ag(r))for(var i=Object.keys(Object(r)).filter(function(f){return e.indexOf(f)<0}),a=0,s=i.length;a<s;a+=1){var c=i[a],u=Object.getOwnPropertyDescriptor(r,c);u!==void 0&&u.enumerable&&(zo(n[c])&&zo(r[c])?r[c].__swiper__?n[c]=r[c]:In(n[c],r[c]):!zo(n[c])&&zo(r[c])?(n[c]={},r[c].__swiper__?n[c]=r[c]:In(n[c],r[c])):n[c]=r[c])}}return n}function Pu(n,e){Object.keys(e).forEach(function(t){zo(e[t])&&Object.keys(e[t]).forEach(function(r){typeof e[t][r]=="function"&&(e[t][r]=e[t][r].bind(n))}),n[t]=e[t]})}function _E(n){return n===void 0&&(n=""),"."+n.trim().replace(/([\.:!\/])/g,"\\$1").replace(/ /g,".")}function Fo(n,e,t,r){var i=Cn();return t&&Object.keys(r).forEach(function(a){if(!e[a]&&e.auto===!0){var s=i.createElement("div");s.className=r[a],n.append(s),e[a]=s}}),e}var ql;function $l(){var n=ar(),e=Cn();return{touch:!!("ontouchstart"in n||n.DocumentTouch&&e instanceof n.DocumentTouch),pointerEvents:!!n.PointerEvent&&"maxTouchPoints"in n.navigator&&n.navigator.maxTouchPoints>=0,observer:(function(){return"MutationObserver"in n||"WebkitMutationObserver"in n})(),passiveListener:(function(){var r=!1;try{var i=Object.defineProperty({},"passive",{get:function(){r=!0}});n.addEventListener("testPassiveListener",null,i)}catch{}return r})(),gestures:(function(){return"ongesturestart"in n})()}}function Bu(){return ql||(ql=$l()),ql}var Hu;function zs(n){var e=n===void 0?{}:n,t=e.userAgent,r=Bu(),i=ar(),a=i.navigator.platform,s=t||i.navigator.userAgent,c={ios:!1,android:!1},u=i.screen.width,f=i.screen.height,h=s.match(/(Android);?[\s\/]+([\d.]+)?/),g=s.match(/(iPad).*OS\s([\d_]+)/),v=s.match(/(iPod)(.*OS\s([\d_]+))?/),y=!g&&s.match(/(iPhone\sOS|iOS)\s([\d_]+)/),_=a==="Win32",w=a==="MacIntel",x=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!g&&w&&r.touch&&x.indexOf(u+"x"+f)>=0&&(g=s.match(/(Version)\/([\d.]+)/),g||(g=[0,1,"13_0_0"]),w=!1),h&&!_&&(c.os="android",c.android=!0),(g||y||v)&&(c.os="ios",c.ios=!0),c}function Vo(n){return n===void 0&&(n={}),Hu||(Hu=zs(n)),Hu}var Gl;function sg(){var n=ar();function e(){var t=n.navigator.userAgent.toLowerCase();return t.indexOf("safari")>=0&&t.indexOf("chrome")<0&&t.indexOf("android")<0}return{isEdge:!!n.navigator.userAgent.match(/Edge/g),isSafari:e(),isWebView:/(iPhone|iPod|iPad).*AppleWeb
81Kit(?!.*Safari)/i.test(n.navigator.userAgent)}}function Fs(){return Gl||(Gl=sg()),Gl}var og=function(){var e=ar();return typeof e.ResizeObserver<"u"};const lg={name:"resize",create:function(){var e=this;In(e,{resize:{observer:null,createObserver:function(){!e||e.destroyed||!e.initialized||(e.resize.observer=new ResizeObserver(function(r){var i=e.width,a=e.height,s=i,c=a;r.forEach(function(u){var f=u.contentBoxSize,h=u.contentRect,g=u.target;g&&g!==e.el||(s=h?h.width:(f[0]||f).inlineSize,c=h?h.height:(f[0]||f).blockSize)}),(s!==i||c!==a)&&e.resize.resizeHandler()}),e.resize.observer.observe(e.el))},removeObserver:function(){e.resize.observer&&e.resize.observer.unobserve&&e.el&&(e.resize.observer.unobserve(e.el),e.resize.observer=null)},resizeHandler:function(){!e||e.destroyed||!e.initialized||(e.emit("beforeResize"),e.emit("resize"))},orientationChangeHandler:function(){!e||e.destroyed||!e.initialized||e.emit("orientationchange")}}})},on:{init:function(e){var t=ar();if(e.params.resizeObserver&&og()){e.resize.createObserver();return}t.addEventListener("resize",e.resize.resizeHandler),t.addEventListener("orientationchange",e.resize.orientationChangeHandler)},destroy:function(e){var t=ar();e.resize.removeObserver(),t.removeEventListener("resize",e.resize.resizeHandler),t.removeEventListener("orientationchange",e.resize.orientationChangeHandler)}}};function zu(){return zu=Object.assign||function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},zu.apply(this,arguments)}var Ab={attach:function(e,t){t===void 0&&(t={});var r=ar(),i=this,a=r.MutationObserver||r.WebkitMutationObserver,s=new a(function(c){if(c.length===1){i.emit("observerUpdate",c[0]);return}var u=function(){i.emit("observerUpdate",c[0])};r.requestAnimationFrame?r.requestAnimationFrame(u):r.setTimeout(u,0)});s.observe(e,{attributes:typeof t.attributes>"u"?!0:t.attributes,childList:typeof t.childList>"u"?!0:t.childList,characterData:typeof t.characterData>"u"?!0:t.characterData}),i.observer.observers.push(s)},init:function(){var e=this;if(!(!e.support.observer||!e.params.observer)){if(e.params.observeParents)for(var t=e.$el.parents(),r=0;r<t.length;r+=1)e.observer.attach(t[r]);e.observer.attach(e.$el[0],{childList:e.params.observeSlideChildren}),e.observer.attach(e.$wrapperEl[0],{attributes:!1})}},destroy:function(){var e=this;e.observer.observers.forEach(function(t){t.disconnect()}),e.observer.observers=[]}};const Rb={name:"observer",params:{observer:!1,observeParents:!1,observeSlideChildren:!1},create:function(){var e=this;Pu(e,{observer:zu({},Ab,{observers:[]})})},on:{init:function(e){e.observer.init()},destroy:function(e){e.observer.destroy()}}},Ib={useParams:function(e){var t=this;t.modules&&Object.keys(t.modules).forEach(function(r){var i=t.modules[r];i.params&&In(e,i.params)})},useModules:function(e){e===void 0&&(e={});var t=this;t.modules&&Object.keys(t.modules).forEach(function(r){var i=t.modules[r],a=e[r]||{};i.on&&t.on&&Object.keys(i.on).forEach(function(s){t.on(s,i.on[s])}),i.create&&i.create.bind(t)(a)})}},cg={on:function(e,t,r){var i=this;if(typeof t!="function")return i;var a=r?"unshift":"push";return e.split(" ").forEach(function(s){i.eventsListeners[s]||(i.eventsListeners[s]=[]),i.eventsListeners[s][a](t)}),i},once:function(e,t,r){var i=this;if(typeof t!="function")return i;function a(){i.off(e,a),a.__emitterProxy&&delete a.__emitterProxy;for(var s=arguments.length,c=new Array(s),u=0;u<s;u++)c[u]=arguments[u];t.apply(i,c)}return a.__emitterProxy=t,i.on(e,a,r)},onAny:function(e,t){var r=this;if(typeof e!="function")return r;var i=t?"unshift":"push";return r.eventsAnyListeners.indexOf(e)<0&&r.eventsAnyListeners[i](e),r},offAny:function(e){var t=this;if(!t.eventsAnyListeners)return t;var r=t.eventsAnyListeners.indexOf(e);return r>=0&&t.eventsAnyListeners.splice(r,1),t},off:function(e,t){var r=this;return r.eventsListeners&&e.split(" ").forEach(function(i){typeof t>"u"?r.eventsListeners[i]=[]:r.eventsListeners[i]&&r.eventsListeners[i].forEac
81h(function(a,s){(a===t||a.__emitterProxy&&a.__emitterProxy===t)&&r.eventsListeners[i].splice(s,1)})}),r},emit:function(){var e=this;if(!e.eventsListeners)return e;for(var t,r,i,a=arguments.length,s=new Array(a),c=0;c<a;c++)s[c]=arguments[c];typeof s[0]=="string"||Array.isArray(s[0])?(t=s[0],r=s.slice(1,s.length),i=e):(t=s[0].events,r=s[0].data,i=s[0].context||e),r.unshift(i);var u=Array.isArray(t)?t:t.split(" ");return u.forEach(function(f){e.eventsAnyListeners&&e.eventsAnyListeners.length&&e.eventsAnyListeners.forEach(function(h){h.apply(i,[f].concat(r))}),e.eventsListeners&&e.eventsListeners[f]&&e.eventsListeners[f].forEach(function(h){h.apply(i,r)})}),e}};function ug(){var n=this,e,t,r=n.$el;typeof n.params.width<"u"&&n.params.width!==null?e=n.params.width:e=r[0].clientWidth,typeof n.params.height<"u"&&n.params.height!==null?t=n.params.height:t=r[0].clientHeight,!(e===0&&n.isHorizontal()||t===0&&n.isVertical())&&(e=e-parseInt(r.css("padding-left")||0,10)-parseInt(r.css("padding-right")||0,10),t=t-parseInt(r.css("padding-top")||0,10)-parseInt(r.css("padding-bottom")||0,10),Number.isNaN(e)&&(e=0),Number.isNaN(t)&&(t=0),In(n,{width:e,height:t,size:n.isHorizontal()?e:t}))}function Jf(){var n=this;function e(Be){return n.isHorizontal()?Be:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[Be]}function t(Be,Fe){return parseFloat(Be.getPropertyValue(e(Fe))||0)}var r=n.params,i=n.$wrapperEl,a=n.size,s=n.rtlTranslate,c=n.wrongRTL,u=n.virtual&&r.virtual.enabled,f=u?n.virtual.slides.length:n.slides.length,h=i.children("."+n.params.slideClass),g=u?n.virtual.slides.length:h.length,v=[],y=[],_=[],w=r.slidesOffsetBefore;typeof w=="function"&&(w=r.slidesOffsetBefore.call(n));var x=r.slidesOffsetAfter;typeof x=="function"&&(x=r.slidesOffsetAfter.call(n));var S=n.snapGrid.length,T=n.slidesGrid.length,M=r.spaceBetween,C=-w,k=0,L=0;if(!(typeof a>"u")){typeof M=="string"&&M.indexOf("%")>=0&&(M=parseFloat(M.replace("%",""))/100*a),n.virtualSize=-M,s?h.css({marginLeft:"",marginBottom:"",marginTop:""}):h.css({marginRight:"",marginBottom:"",marginTop:""});var O;r.slidesPerColumn>1&&(Math.floor(g/r.slidesPerColumn)===g/n.params.slidesPerColumn?O=g:O=Math.ceil(g/r.slidesPerColumn)*r.slidesPerColumn,r.slidesPerView!=="auto"&&r.slidesPerColumnFill==="row"&&(O=Math.max(O,r.slidesPerView*r.slidesPerColumn)));for(var I,P=r.slidesPerColumn,B=O/P,H=Math.floor(g/r.slidesPerColumn),F=0;F<g;F+=1){I=0;var $=h.eq(F);if(r.slidesPerColumn>1){var V=void 0,W=void 0,ee=void 0;if(r.slidesPerColumnFill==="row"&&r.slidesPerGroup>1){var q=Math.floor(F/(r.slidesPerGroup*r.slidesPerColumn)),Y=F-r.slidesPerColumn*r.slidesPerGroup*q,ae=q===0?r.slidesPerGroup:Math.min(Math.ceil((g-q*P*r.slidesPerGroup)/P),r.slidesPerGroup);ee=Math.floor(Y/ae),W=Y-ee*ae+q*r.slidesPerGroup,V=W+ee*O/P,$.css({"-webkit-box-ordinal-group":V,"-moz-box-ordinal-group":V,"-ms-flex-order":V,"-webkit-order":V,order:V})}else r.slidesPerColumnFill==="column"?(W=Math.floor(F/P),ee=F-W*P,(W>H||W===H&&ee===P-1)&&(ee+=1,ee>=P&&(ee=0,W+=1))):(ee=Math.floor(F/B),W=F-ee*B);$.css(e("margin-top"),ee!==0?r.spaceBetween&&r.spaceBetween+"px":"")}if($.css("display")!=="none"){if(r.slidesPerView==="auto"){var ue=getComputedStyle($[0]),We=$[0].style.transform,be=$[0].style.webkitTransform;if(We&&($[0].style.transform="none"),be&&($[0].style.webkitTransform="none"),r.roundLengths)I=n.isHorizontal()?$.outerWidth(!0):$.outerHeight(!0);else{var _e=t(ue,"width"),qe=t(ue,"padding-left"),je=t(ue,"padding-right"),ct=t(ue,"margin-left"),ht=t(ue,"margin-right"),Ge=ue.getPropertyValue("box-sizing");if(Ge&&Ge==="border-box")I=_e+ct+ht;else{var Re=$[0],Ze=Re.clientWidth,pe=Re.offsetWidth;I=_e+qe+je+ct+ht+(pe-Ze)}}We&&($[0].style.transform=We),be&&($[0].style.webkitTransform=be),r.roundLengths&&(I=Math.floor(I))}else I=(a-(r.slidesPerView-1)*M)/r.slidesPerView,r.roundLengths&&(I=Math.floor(I)),h[F]&&(h[F].style[e("width")]=I+"px");h[F]&&(h[F].swiperSlideSize=I),_.push(I),r.centeredSlides?(C=C+I/2+k/2+M,k===0&&F!==0&&(C=C-a/2-M),F===0&&(C=C-a/2-M),Math.abs(C)<1/1e3&&(C=0),r.roundLengths&&(C=Math.floor(C)),L%r.slidesPerGroup===0&&v.push(C),y.push(C)):(r.roundLengths&&(C=Math.floor(C)),(L-Math.min(n.params.slidesPerGroupSkip,L))%n.params.slidesPerGroup===0&&v.push(C),y.push(C),C=C+I+M),n.virtualSize+=I+M,k=I,L+=1}}n.virtualSize=Math.max(n.virtualSize,a)+x;var Ie;if(s&&c&&(r.effect==="slide"||r.effect==="coverflow")&&i.css({width:n.virtualSize+r.spaceBetween+"px"}),r.setWrapperSize){var Ke;i.css((Ke={},Ke[e("width")]=n.virtualSize+r.spaceBetween+"px",Ke))}if(r.slidesPerColumn>1){var nt;if(n.virtualSize=(I+r.spaceBetween)*O,n.virtualSize=Math.ceil(n.virtualSize/r.slidesPerColumn)-r.spaceBetween,i.css((nt={},nt[e("width")]=n.virtualSize+r.spaceBetween+"px",nt)),r.centeredSlides){Ie=[];for(var Ot=0;Ot<v.length;Ot+=1){var zt=v[Ot];r.roundLengths&&(zt=Math.floor(zt)),v[Ot]<n.virtualSize+v[0]&&Ie.push(zt)}v=Ie}}
81if(!r.centeredSlides){Ie=[];for(var pt=0;pt<v.length;pt+=1){var Gt=v[pt];r.roundLengths&&(Gt=Math.floor(Gt)),v[pt]<=n.virtualSize-a&&Ie.push(Gt)}v=Ie,Math.floor(n.virtualSize-a)-Math.floor(v[v.length-1])>1&&v.push(n.virtualSize-a)}if(v.length===0&&(v=[0]),r.spaceBetween!==0){var Ft,Nt=n.isHorizontal()&&s?"marginLeft":e("marginRight");h.filter(function(Be,Fe){return r.cssMode?Fe!==h.length-1:!0}).css((Ft={},Ft[Nt]=M+"px",Ft))}if(r.centeredSlides&&r.centeredSlidesBounds){var Tt=0;_.forEach(function(Be){Tt+=Be+(r.spaceBetween?r.spaceBetween:0)}),Tt-=r.spaceBetween;var Ne=Tt-a;v=v.map(function(Be){return Be<0?-w:Be>Ne?Ne+x:Be})}if(r.centerInsufficientSlides){var Ve=0;if(_.forEach(function(Be){Ve+=Be+(r.spaceBetween?r.spaceBetween:0)}),Ve-=r.spaceBetween,Ve<a){var Oe=(a-Ve)/2;v.forEach(function(Be,Fe){v[Fe]=Be-Oe}),y.forEach(function(Be,Fe){y[Fe]=Be+Oe})}}In(n,{slides:h,snapGrid:v,slidesGrid:y,slidesSizesGrid:_}),g!==f&&n.emit("slidesLengthChange"),v.length!==S&&(n.params.watchOverflow&&n.checkOverflow(),n.emit("snapGridLengthChange")),y.length!==T&&n.emit("slidesGridLengthChange"),(r.watchSlidesProgress||r.watchSlidesVisibility)&&n.updateSlidesOffset()}}function Di(n){var e=this,t=[],r=e.virtual&&e.params.virtual.enabled,i=0,a;typeof n=="number"?e.setTransition(n):n===!0&&e.setTransition(e.params.speed);var s=function(h){return r?e.slides.filter(function(g){return parseInt(g.getAttribute("data-swiper-slide-index"),10)===h})[0]:e.slides.eq(h)[0]};if(e.params.slidesPerView!=="auto"&&e.params.slidesPerView>1)if(e.params.centeredSlides)e.visibleSlides.each(function(f){t.push(f)});else for(a=0;a<Math.ceil(e.params.slidesPerView);a+=1){var c=e.activeIndex+a;if(c>e.slides.length&&!r)break;t.push(s(c))}else t.push(s(e.activeIndex));for(a=0;a<t.length;a+=1)if(typeof t[a]<"u"){var u=t[a].offsetHeight;i=u>i?u:i}i&&e.$wrapperEl.css("height",i+"px")}function Fu(){for(var n=this,e=n.slides,t=0;t<e.length;t+=1)e[t].swiperSlideOffset=n.isHorizontal()?e[t].offsetLeft:e[t].offsetTop}function ui(n){n===void 0&&(n=this&&this.translate||0);var e=this,t=e.params,r=e.slides,i=e.rtlTranslate;if(r.length!==0){typeof r[0].swiperSlideOffset>"u"&&e.updateSlidesOffset();var a=-n;i&&(a=n),r.removeClass(t.slideVisibleClass),e.visibleSlidesIndexes=[],e.visibleSlides=[];for(var s=0;s<r.length;s+=1){var c=r[s],u=(a+(t.centeredSlides?e.minTranslate():0)-c.swiperSlideOffset)/(c.swiperSlideSize+t.spaceBetween);if(t.watchSlidesVisibility||t.centeredSlides&&t.autoHeight){var f=-(a-c.swiperSlideOffset),h=f+e.slidesSizesGrid[s],g=f>=0&&f<e.size-1||h>1&&h<=e.size||f<=0&&h>=e.size;g&&(e.visibleSlides.push(c),e.visibleSlidesIndexes.push(s),r.eq(s).addClass(t.slideVisibleClass))}c.progress=i?-u:u}e.visibleSlides=On(e.visibleSlides)}}function Yo(n){var e=this;if(typeof n>"u"){var t=e.rtlTranslate?-1:1;n=e&&e.translate&&e.translate*t||0}var r=e.params,i=e.maxTranslate()-e.minTranslate(),a=e.progress,s=e.isBeginning,c=e.isEnd,u=s,f=c;i===0?(a=0,s=!0,c=!0):(a=(n-e.minTranslate())/i,s=a<=0,c=a>=1),In(e,{progress:a,isBeginning:s,isEnd:c}),(r.watchSlidesProgress||r.watchSlidesVisibility||r.centeredSlides&&r.autoHeight)&&e.updateSlidesProgress(n),s&&!u&&e.emit("reachBeginning toEdge"),c&&!f&&e.emit("reachEnd toEdge"),(u&&!s||f&&!c)&&e.emit("fromEdge"),e.emit("progress",a)}function eh(){var n=this,e=n.slides,t=n.params,r=n.$wrapperEl,i=n.activeIndex,a=n.realIndex,s=n.virtual&&t.virtual.enabled;e.removeClass(t.slideActiveClass+" "+t.slideNextClass+" "+t.slidePrevClass+" "+t.slideDuplicateActiveClass+" "+t.slideDuplicateNextClass+" "+t.slideDuplicatePrevClass);var c;s?c=n.$wrapperEl.find("."+t.slideClass+'[data-swiper-slide-index="'+i+'"]'):c=e.eq(i),c.addClass(t.slideActiveClass),t.loop&&(c.hasClass(t.slideDuplicateClass)?r.children("."+t.slideClass+":not(."+t.slideDuplicateClass+')[data-swiper-slide-index="'+a+'"]').addClass(t.slideDuplicateActiveClass):r.children("."+t.slideClass+"."+t.slideDuplicateClass+'[data-swiper-slide-index="'+a+'"]').addClass(t.slideDuplicateActiveClass));var u=c.nextAll("."+t.slideClass).eq(0).addClass(t.slideNextClass);t.loop&&u.length===0&&(u=e.eq(0),u.addClass(t.slideNextClass));var f=c.prevAll("."+t.slideClass).eq(0).addClass(t.slidePrevClass);t.loop&&f.length===0&&(f=e.eq(-1),f.addClass(t.slidePrevClass)),t.loop&&(u.hasClass(t.slideDuplicateClass)?r.children("."+t.slideClass+":not(."+t.slideDuplicateClass+')[data-swiper-slide-index="'+u.attr("data-swiper-slide-index")+'"]').addClass(t.slideDuplicateNextClass):r.children("."+t.slideClass+"."+t.slideDuplicateClass+'[data-swiper-slide-index="'+u.attr("data-swiper-slide-index")+'"]').addClass(t.slideDuplicateNextClass),f.hasClass(t.slideDuplicateClass)?r.children("."+t.slideClass+":not(."+t.slideDuplicateClass+')[data-swiper-slide-index="'+f.attr("data-swiper-slide-index")+'"]').addClass(t.slideDuplicatePrevClass):r.children("."+t.slideClass+"."+t.slideDuplicateClass+'[data-swiper-slide-index="'+f.attr("data-swiper-slide-index")+'"]').addClass(t.slideDuplicatePrevClass)),n.emitSlidesClasses()}function Vu(n){var e=this,t=e.rtlTranslate?e.translate:-e.translate,r=e.slidesGrid,i=e.snapGrid,a=e.params,s=e.activeIndex,c=e.realIndex,u=e.snapIndex,f=n,h;
81if(typeof f>"u"){for(var g=0;g<r.length;g+=1)typeof r[g+1]<"u"?t>=r[g]&&t<r[g+1]-(r[g+1]-r[g])/2?f=g:t>=r[g]&&t<r[g+1]&&(f=g+1):t>=r[g]&&(f=g);a.normalizeSlideIndex&&(f<0||typeof f>"u")&&(f=0)}if(i.indexOf(t)>=0)h=i.indexOf(t);else{var v=Math.min(a.slidesPerGroupSkip,f);h=v+Math.floor((f-v)/a.slidesPerGroup)}if(h>=i.length&&(h=i.length-1),f===s){h!==u&&(e.snapIndex=h,e.emit("snapIndexChange"));return}var y=parseInt(e.slides.eq(f).attr("data-swiper-slide-index")||f,10);In(e,{snapIndex:h,realIndex:y,previousIndex:s,activeIndex:f}),e.emit("activeIndexChange"),e.emit("snapIndexChange"),c!==y&&e.emit("realIndexChange"),(e.initialized||e.params.runCallbacksOnInit)&&e.emit("slideChange")}function Yu(n){var e=this,t=e.params,r=On(n.target).closest("."+t.slideClass)[0],i=!1,a;if(r){for(var s=0;s<e.slides.length;s+=1)if(e.slides[s]===r){i=!0,a=s;break}}if(r&&i)e.clickedSlide=r,e.virtual&&e.params.virtual.enabled?e.clickedIndex=parseInt(On(r).attr("data-swiper-slide-index"),10):e.clickedIndex=a;else{e.clickedSlide=void 0,e.clickedIndex=void 0;return}t.slideToClickedSlide&&e.clickedIndex!==void 0&&e.clickedIndex!==e.activeIndex&&e.slideToClickedSlide()}const th={updateSize:ug,updateSlides:Jf,updateAutoHeight:Di,updateSlidesOffset:Fu,updateSlidesProgress:ui,updateProgress:Yo,updateSlidesClasses:eh,updateActiveIndex:Vu,updateClickedSlide:Yu};function Vs(n){n===void 0&&(n=this.isHorizontal()?"x":"y");var e=this,t=e.params,r=e.rtlTranslate,i=e.translate,a=e.$wrapperEl;if(t.virtualTranslate)return r?-i:i;if(t.cssMode)return i;var s=ig(a[0],n);return r&&(s=-s),s||0}function dg(n,e){var t=this,r=t.rtlTranslate,i=t.params,a=t.$wrapperEl,s=t.wrapperEl,c=t.progress,u=0,f=0,h=0;t.isHorizontal()?u=r?-n:n:f=n,i.roundLengths&&(u=Math.floor(u),f=Math.floor(f)),i.cssMode?s[t.isHorizontal()?"scrollLeft":"scrollTop"]=t.isHorizontal()?-u:-f:i.virtualTranslate||a.transform("translate3d("+u+"px, "+f+"px, "+h+"px)"),t.previousTranslate=t.translate,t.translate=t.isHorizontal()?u:f;var g,v=t.maxTranslate()-t.minTranslate();v===0?g=0:g=(n-t.minTranslate())/v,g!==c&&t.updateProgress(n),t.emit("setTranslate",t.translate,e)}function ju(){return-this.snapGrid[0]}function jo(){return-this.snapGrid[this.snapGrid.length-1]}function Nb(n,e,t,r,i){n===void 0&&(n=0),e===void 0&&(e=this.params.speed),t===void 0&&(t=!0),r===void 0&&(r=!0);var a=this,s=a.params,c=a.wrapperEl;if(a.animating&&s.preventInteractionOnTransition)return!1;var u=a.minTranslate(),f=a.maxTranslate(),h;if(r&&n>u?h=u:r&&n<f?h=f:h=n,a.updateProgress(h),s.cssMode){var g=a.isHorizontal();if(e===0)c[g?"scrollLeft":"scrollTop"]=-h;else if(c.scrollTo){var v;c.scrollTo((v={},v[g?"left":"top"]=-h,v.behavior="smooth",v))}else c[g?"scrollLeft":"scrollTop"]=-h;return!0}return e===0?(a.setTransition(0),a.setTranslate(h),t&&(a.emit("beforeTransitionStart",e,i),a.emit("transitionEnd"))):(a.setTransition(e),a.setTranslate(h),t&&(a.emit("beforeTransitionStart",e,i),a.emit("transitionStart")),a.animating||(a.animating=!0,a.onTranslateToWrapperTransitionEnd||(a.onTranslateToWrapperTransitionEnd=function(_){!a||a.destroyed||_.target===this&&(a.$wrapperEl[0].removeEventListener("transitionend",a.onTranslateToWrapperTransitionEnd),a.$wrapperEl[0].removeEventListener("webkitTransitionEnd",a.onTranslateToWrapperTransitionEnd),a.onTranslateToWrapperTransitionEnd=null,delete a.onTranslateToWrapperTransitionEnd,t&&a.emit("transitionEnd"))}),a.$wrapperEl[0].addEventListener("transitionend",a.onTranslateToWrapperTransitionEnd),a.$wrapperEl[0].addEventListener("webkitTransitionEnd",a.onTranslateToWrapperTransitionEnd))),!0}const ei={getTranslate:Vs,setTranslate:dg,minTranslate:ju,maxTranslate:jo,translateTo:Nb};function nh(n,e){var t=this;t.params.cssMode||t.$wrapperEl.transition(n),t.emit("setTransition",n,e)}function da(n,e){n===void 0&&(n=!0);var t=this,r=t.activeIndex,i=t.params,a=t.previousIndex;if(!i.cssMode){i.autoHeight&&t.updateAutoHeight();var s=e;if(s||(r>a?s="next":r<a?s="prev":s="reset"),t.emit("transitionStart"),n&&r!==a){if(s==="reset"){t.emit("slideResetTransitionStart");return}t.emit("slideChangeTransitionStart"),s==="next"?t.emit("slideNextTransitionStart"):t.emit("slidePrevTransitionStart")}}}function fg(n,e){n===void 0&&(n=!0);var t=this,r=t.activeIndex,i=t.previousIndex,a=t.params;if(t.animating=!1,!a.cssMode){t.setTransition(0);var s=e;if(s||(r>i?s="next":r<i?s="prev":s="reset"),t.emit("transitionEnd"),n&&r!==i){
81if(s==="reset"){t.emit("slideResetTransitionEnd");return}t.emit("slideChangeTransitionEnd"),s==="next"?t.emit("slideNextTransitionEnd"):t.emit("slidePrevTransitionEnd")}}}const Wu={setTransition:nh,transitionStart:da,transitionEnd:fg};function Ys(n,e,t,r,i){if(n===void 0&&(n=0),e===void 0&&(e=this.params.speed),t===void 0&&(t=!0),typeof n!="number"&&typeof n!="string")throw new Error("The 'index' argument cannot have type other than 'number' or 'string'. ["+typeof n+"] given.");if(typeof n=="string"){var a=parseInt(n,10),s=isFinite(a);if(!s)throw new Error("The passed-in 'index' (string) couldn't be converted to 'number'. ["+n+"] given.");n=a}var c=this,u=n;u<0&&(u=0);var f=c.params,h=c.snapGrid,g=c.slidesGrid,v=c.previousIndex,y=c.activeIndex,_=c.rtlTranslate,w=c.wrapperEl,x=c.enabled;if(c.animating&&f.preventInteractionOnTransition||!x&&!r&&!i)return!1;var S=Math.min(c.params.slidesPerGroupSkip,u),T=S+Math.floor((u-S)/c.params.slidesPerGroup);T>=h.length&&(T=h.length-1),(y||f.initialSlide||0)===(v||0)&&t&&c.emit("beforeSlideChangeStart");var M=-h[T];if(c.updateProgress(M),f.normalizeSlideIndex)for(var C=0;C<g.length;C+=1){var k=-Math.floor(M*100),L=Math.floor(g[C]*100),O=Math.floor(g[C+1]*100);typeof g[C+1]<"u"?k>=L&&k<O-(O-L)/2?u=C:k>=L&&k<O&&(u=C+1):k>=L&&(u=C)}if(c.initialized&&u!==y&&(!c.allowSlideNext&&M<c.translate&&M<c.minTranslate()||!c.allowSlidePrev&&M>c.translate&&M>c.maxTranslate()&&(y||0)!==u))return!1;var I;if(u>y?I="next":u<y?I="prev":I="reset",_&&-M===c.translate||!_&&M===c.translate)return c.updateActiveIndex(u),f.autoHeight&&c.updateAutoHeight(),c.updateSlidesClasses(),f.effect!=="slide"&&c.setTranslate(M),I!=="reset"&&(c.transitionStart(t,I),c.transitionEnd(t,I)),!1;if(f.cssMode){var P=c.isHorizontal(),B=-M;if(_&&(B=w.scrollWidth-w.offsetWidth-B),e===0)w[P?"scrollLeft":"scrollTop"]=B;else if(w.scrollTo){var H;w.scrollTo((H={},H[P?"left":"top"]=B,H.behavior="smooth",H))}else w[P?"scrollLeft":"scrollTop"]=B;return!0}return e===0?(c.setTransition(0),c.setTranslate(M),c.updateActiveIndex(u),c.updateSlidesClasses(),c.emit("beforeTransitionStart",e,r),c.transitionStart(t,I),c.transitionEnd(t,I)):(c.setTransition(e),c.setTranslate(M),c.updateActiveIndex(u),c.updateSlidesClasses(),c.emit("beforeTransitionStart",e,r),c.transitionStart(t,I),c.animating||(c.animating=!0,c.onSlideToWrapperTransitionEnd||(c.onSlideToWrapperTransitionEnd=function($){!c||c.destroyed||$.target===this&&(c.$wrapperEl[0].removeEventListener("transitionend",c.onSlideToWrapperTransitionEnd),c.$wrapperEl[0].removeEventListener("webkitTransitionEnd",c.onSlideToWrapperTransitionEnd),c.onSlideToWrapperTransitionEnd=null,delete c.onSlideToWrapperTransitionEnd,c.transitionEnd(t,I))}),c.$wrapperEl[0].addEventListener("transitionend",c.onSlideToWrapperTransitionEnd),c.$wrapperEl[0].addEventListener("webkitTransitionEnd",c.onSlideToWrapperTransitionEnd))),!0}function rh(n,e,t,r){n===void 0&&(n=0),e===void 0&&(e=this.params.speed),t===void 0&&(t=!0);var i=this,a=n;return i.params.loop&&(a+=i.loopedSlides),i.slideTo(a,e,t,r)}function hg(n,e,t){n===void 0&&(n=this.params.speed),e===void 0&&(e=!0);var r=this,i=r.params,a=r.animating,s=r.enabled;if(!s)return r;var c=r.activeIndex<i.slidesPerGroupSkip?1:i.slidesPerGroup;if(i.loop){if(a&&i.loopPreventsSlide)return!1;r.loopFix(),r._clientLeft=r.$wrapperEl[0].clientLeft}return r.slideTo(r.activeIndex+c,n,e,t)}function ih(n,e,t){n===void 0&&(n=this.params.speed),e===void 0&&(e=!0);var r=this,i=r.params,a=r.animating,s=r.snapGrid,c=r.slidesGrid,u=r.rtlTranslate,f=r.enabled;if(!f)return r;if(i.loop){if(a&&i.loopPreventsSlide)return!1;r.loopFix(),r._clientLeft=r.$wrapperEl[0].clientLeft}var h=u?r.translate:-r.translate;function g(x){return x<0?-Math.floor(Math.abs(x)):Math.floor(x)}var v=g(h),y=s.map(function(x){return g(x)}),_=s[y.indexOf(v)-1];typeof _>
81"u"&&i.cssMode&&s.forEach(function(x){!_&&v>=x&&(_=x)});var w;return typeof _<"u"&&(w=c.indexOf(_),w<0&&(w=r.activeIndex-1)),r.slideTo(w,n,e,t)}function pg(n,e,t){n===void 0&&(n=this.params.speed),e===void 0&&(e=!0);var r=this;return r.slideTo(r.activeIndex,n,e,t)}function di(n,e,t,r){n===void 0&&(n=this.params.speed),e===void 0&&(e=!0),r===void 0&&(r=.5);var i=this,a=i.activeIndex,s=Math.min(i.params.slidesPerGroupSkip,a),c=s+Math.floor((a-s)/i.params.slidesPerGroup),u=i.rtlTranslate?i.translate:-i.translate;if(u>=i.snapGrid[c]){var f=i.snapGrid[c],h=i.snapGrid[c+1];u-f>(h-f)*r&&(a+=i.params.slidesPerGroup)}else{var g=i.snapGrid[c-1],v=i.snapGrid[c];u-g<=(v-g)*r&&(a-=i.params.slidesPerGroup)}return a=Math.max(a,0),a=Math.min(a,i.slidesGrid.length-1),i.slideTo(a,n,e,t)}function Wo(){var n=this,e=n.params,t=n.$wrapperEl,r=e.slidesPerView==="auto"?n.slidesPerViewDynamic():e.slidesPerView,i=n.clickedIndex,a;if(e.loop){if(n.animating)return;a=parseInt(On(n.clickedSlide).attr("data-swiper-slide-index"),10),e.centeredSlides?i<n.loopedSlides-r/2||i>n.slides.length-n.loopedSlides+r/2?(n.loopFix(),i=t.children("."+e.slideClass+'[data-swiper-slide-index="'+a+'"]:not(.'+e.slideDuplicateClass+")").eq(0).index(),Kf(function(){n.slideTo(i)})):n.slideTo(i):i>n.slides.length-r?(n.loopFix(),i=t.children("."+e.slideClass+'[data-swiper-slide-index="'+a+'"]:not(.'+e.slideDuplicateClass+")").eq(0).index(),Kf(function(){n.slideTo(i)})):n.slideTo(i)}else n.slideTo(i)}const Uo={slideTo:Ys,slideToLoop:rh,slideNext:hg,slidePrev:ih,slideReset:pg,slideToClosest:di,slideToClickedSlide:Wo};function Uu(){var n=this,e=Cn(),t=n.params,r=n.$wrapperEl;r.children("."+t.slideClass+"."+t.slideDuplicateClass).remove();var i=r.children("."+t.slideClass);if(t.loopFillGroupWithBlank){var a=t.slidesPerGroup-i.length%t.slidesPerGroup;if(a!==t.slidesPerGroup){for(var s=0;s<a;s+=1){var c=On(e.createElement("div")).addClass(t.slideClass+" "+t.slideBlankClass);r.append(c)}i=r.children("."+t.slideClass)}}t.slidesPerView==="auto"&&!t.loopedSlides&&(t.loopedSlides=i.length),n.loopedSlides=Math.ceil(parseFloat(t.loopedSlides||t.slidesPerView,10)),n.loopedSlides+=t.loopAdditionalSlides,n.loopedSlides>i.length&&(n.loopedSlides=i.length);var u=[],f=[];i.each(function(v,y){var _=On(v);y<n.loopedSlides&&f.push(v),y<i.length&&y>=i.length-n.loopedSlides&&u.push(v),_.attr("data-swiper-slide-index",y)});for(var h=0;h<f.length;h+=1)r.append(On(f[h].cloneNode(!0)).addClass(t.slideDuplicateClass));for(var g=u.length-1;g>=0;g-=1)r.prepend(On(u[g].cloneNode(!0)).addClass(t.slideDuplicateClass))}function Zl(){var n=this;n.emit("beforeLoopFix");var e=n.activeIndex,t=n.slides,r=n.loopedSlides,i=n.allowSlidePrev,a=n.allowSlideNext,s=n.snapGrid,c=n.rtlTranslate,u;n.allowSlidePrev=!0,n.allowSlideNext=!0;var f=-s[e],h=f-n.getTranslate();if(e<r){u=t.length-r*3+e,u+=r;var g=n.slideTo(u,0,!1,!0);g&&h!==0&&n.setTranslate((c?-n.translate:n.translate)-h)}else if(e>=t.length-r){u=-t.length+e+r,u+=r;var v=n.slideTo(u,0,!1,!0);v&&h!==0&&n.setTranslate((c?-n.translate:n.translate)-h)}n.allowSlidePrev=i,n.allowSlideNext=a,n.emit("loopFix")}function fi(){var n=this,e=n.$wrapperEl,t=n.params,r=n.slides;e.children("."+t.slideClass+"."+t.slideDuplicateClass+",."+t.slideClass+"."+t.slideBlankClass).remove(),r.removeAttr("data-swiper-slide-index")}const hi={loopCreate:Uu,loopFix:Zl,loopDestroy:fi};function Fa(n){var e=this;if(!(e.support.touch||!e.params.simulateTouch||e.params.watchOverflow&&e.isLocked||e.params.cssMode)){var t=e.el;t.style.cursor="move",t.style.cursor=n?"-webkit-grabbing":"-webkit-grab",t.style.cursor=n?"-moz-grabbin":"-moz-grab",t.style.cursor=n?"grabbing":"grab"}}function qi(){var n=this;n.support.touch||n.params.watchOverflow&&n.isLocked||n.params.cssMode||(n.el.style.cursor="")}const $i={setGrabCursor:Fa,unsetGrabCursor:qi};function fa(n){var e=this,t=e.$wrapperEl,r=e.params;if(r.loop&&e.loopDestroy(),typeof n=="object"&&"length"in n)for(var i=0;i<n.length;i+=1)n[i]&&t.append(n[i]);else t.append(n);r.loop&&e.loopCreate(),r.observer&&e.support.observer||e.update()}function mg(n){var e=this,t=e.params,r=e.$wrapperEl,i=e.activeIndex;t.loop&&e.loopDestroy();var a=i+1;if(typeof n=="object"&&"length"in n){for(var s=0;s<n.length;s+=1)n[s]&&r.prepend(n[s]);a=i+n.length}else r.prepend(n);t.loop&&e.loopCreate(),t.observer&&e.support.observer||e.update(
81),e.slideTo(a,0,!1)}function ah(n,e){var t=this,r=t.$wrapperEl,i=t.params,a=t.activeIndex,s=a;i.loop&&(s-=t.loopedSlides,t.loopDestroy(),t.slides=r.children("."+i.slideClass));var c=t.slides.length;if(n<=0){t.prependSlide(e);return}if(n>=c){t.appendSlide(e);return}for(var u=s>n?s+1:s,f=[],h=c-1;h>=n;h-=1){var g=t.slides.eq(h);g.remove(),f.unshift(g)}if(typeof e=="object"&&"length"in e){for(var v=0;v<e.length;v+=1)e[v]&&r.append(e[v]);u=s>n?s+e.length:s}else r.append(e);for(var y=0;y<f.length;y+=1)r.append(f[y]);i.loop&&t.loopCreate(),i.observer&&t.support.observer||t.update(),i.loop?t.slideTo(u+t.loopedSlides,0,!1):t.slideTo(u,0,!1)}function sh(n){var e=this,t=e.params,r=e.$wrapperEl,i=e.activeIndex,a=i;t.loop&&(a-=e.loopedSlides,e.loopDestroy(),e.slides=r.children("."+t.slideClass));var s=a,c;if(typeof n=="object"&&"length"in n){for(var u=0;u<n.length;u+=1)c=n[u],e.slides[c]&&e.slides.eq(c).remove(),c<s&&(s-=1);s=Math.max(s,0)}else c=n,e.slides[c]&&e.slides.eq(c).remove(),c<s&&(s-=1),s=Math.max(s,0);t.loop&&e.loopCreate(),t.observer&&e.support.observer||e.update(),t.loop?e.slideTo(s+e.loopedSlides,0,!1):e.slideTo(s,0,!1)}function gg(){for(var n=this,e=[],t=0;t<n.slides.length;t+=1)e.push(t);n.removeSlide(e)}const Er={appendSlide:fa,prependSlide:mg,addSlide:ah,removeSlide:sh,removeAllSlides:gg};function Tn(n,e){e===void 0&&(e=this);function t(r){if(!r||r===Cn()||r===ar())return null;r.assignedSlot&&(r=r.assignedSlot);var i=r.closest(n);return i||t(r.getRootNode().host)}return t(e)}function jt(n){var e=this,t=Cn(),r=ar(),i=e.touchEventsData,a=e.params,s=e.touches,c=e.enabled;if(c&&!(e.animating&&a.preventInteractionOnTransition)){var u=n;u.originalEvent&&(u=u.originalEvent);var f=On(u.target);if(!(a.touchEventsTarget==="wrapper"&&!f.closest(e.wrapperEl).length)&&(i.isTouchEvent=u.type==="touchstart",!(!i.isTouchEvent&&"which"in u&&u.which===3)&&!(!i.isTouchEvent&&"button"in u&&u.button>0)&&!(i.isTouched&&i.isMoved))){var h=!!a.noSwipingClass&&a.noSwipingClass!=="";h&&u.target&&u.target.shadowRoot&&n.path&&n.path[0]&&(f=On(n.path[0]));var g=a.noSwipingSelector?a.noSwipingSelector:"."+a.noSwipingClass,v=!!(u.target&&u.target.shadowRoot);if(a.noSwiping&&(v?Tn(g,u.target):f.closest(g)[0])){e.allowClick=!0;return}if(!(a.swipeHandler&&!f.closest(a.swipeHandler)[0])){s.currentX=u.type==="touchstart"?u.targetTouches[0].pageX:u.pageX,s.currentY=u.type==="touchstart"?u.targetTouches[0].pageY:u.pageY;var y=s.currentX,_=s.currentY,w=a.edgeSwipeDetection||a.iOSEdgeSwipeDetection,x=a.edgeSwipeThreshold||a.iOSEdgeSwipeThreshold;if(w&&(y<=x||y>=r.innerWidth-x))if(w==="prevent")n.preventDefault();else return;if(In(i,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),s.startX=y,s.startY=_,i.touchStartTime=Xn(),e.allowClick=!0,e.updateSize(),e.swipeDirection=void 0,a.threshold>0&&(i.allowThresholdMove=!1),u.type!=="touchstart"){var S=!0;f.is(i.focusableElements)&&(S=!1),t.activeElement&&On(t.activeElement).is(i.focusableElements)&&t.activeElement!==f[0]&&t.activeElement.blur();var T=S&&e.allowTouchMove&&a.touchStartPreventDefault;(a.touchStartForcePreventDefault||T)&&!f[0].isContentEditable&&u.preventDefault()}e.emit("touchStart",u)}}}}function Va(n){var e=Cn(),t=this,r=t.touchEventsData,i=t.params,a=t.touches,s=t.rtlTranslate,c=t.enabled;if(c){var u=n;if(u.originalEvent&&(u=u.originalEvent),!r.isTouched){r.startMoving&&r.isScrolling&&t.emit("touchMoveOpposite",u);return}if(!(r.isTouchEvent&&u.type!=="touchmove")){var f=u.type==="touchmove"&&u.targetTouches&&(u.targetTouches[0]||u.changedTouches[0]),h=u.type==="touchmove"?f.pageX:u.pageX,g=u.type==="touchmove"?f.pageY:u.pageY;if(u.preventedByNestedSwiper){a.startX=h,a.startY=g;return}if(!t.allowTouchMove){t.allowClick=!1,r.isTouched&&(In(a,{startX:h,startY:g,currentX:h,currentY:g}),r.touchStartTime=Xn());return}if(r.isTouchEvent&&i.touchReleaseOnEdges&&!i.loop){if(t.isVertical()){if(g<a.startY&&t.translate<=t.maxTranslate()||g>a.startY&&t.translate>=t.minTranslate()){r.isTouched=!1,r.isMoved=!1;return}}else if(h<a.startX&&t.translate<=t.maxTranslate()||h>a.startX&&t.translate>=t.minTranslate())return}if(r.isTouchEvent&&e.activeElement&&u.target===e.activeElement&&On(u.target).is(r.focusableElements)){r.isMoved=!0,t.allowClick=!1;return}if(r.allowTouchCallbacks&&t.emit("touchMove",u),!(u.targetTouches&&u.targetTouches.length>1)){a.currentX=h,a.currentY=g;var v=a.currentX-a.startX,y=a.currentY-a.startY;if(!(t.params.threshold&&Math.sqrt(Math.pow(v,2)+Math.pow(y,2))<t.params.threshold)){if(typeof r.isScrolling>"u"){var _;t.isHorizontal()&&a.currentY===a.startY||t.isVertical()&&a.currentX===a.startX?r.isScrolling=!1:v*v+y*y>=25&&(_=Math.atan2(Math.abs(y),Math.abs(v))*180/Math.PI,r.isScrolling=t.isHorizontal()?_>i.touchAngle:90-_>i.touchAngle)}if(r.isScrolling&&t.emit("touchMoveOpposite",u),typeof r.startMoving>"u"&&(a.currentX!==a.startX||a.currentY!==a.startY)&&(r.startMoving=!0),r.isScrolling){r.isTouched=!1;return}if(r.startMoving){t.allowClick=!1,!i.cssMode&&u.cancelable&&u.preventDefault(),i.touchMoveStopPropagation&&!i.nested&&u.stopPropagation(),r.isMoved||(i.loop&&t.loopFix(),r.startTranslate=t.getTranslate(),t.setTransition(0),t.animating&&t.$wrapperEl.trigger("webkitTransitionEnd transitionend"),r.allowMomentumBounce
81=!1,i.grabCursor&&(t.allowSlideNext===!0||t.allowSlidePrev===!0)&&t.setGrabCursor(!0),t.emit("sliderFirstMove",u)),t.emit("sliderMove",u),r.isMoved=!0;var w=t.isHorizontal()?v:y;a.diff=w,w*=i.touchRatio,s&&(w=-w),t.swipeDirection=w>0?"prev":"next",r.currentTranslate=w+r.startTranslate;var x=!0,S=i.resistanceRatio;if(i.touchReleaseOnEdges&&(S=0),w>0&&r.currentTranslate>t.minTranslate()?(x=!1,i.resistance&&(r.currentTranslate=t.minTranslate()-1+Math.pow(-t.minTranslate()+r.startTranslate+w,S))):w<0&&r.currentTranslate<t.maxTranslate()&&(x=!1,i.resistance&&(r.currentTranslate=t.maxTranslate()+1-Math.pow(t.maxTranslate()-r.startTranslate-w,S))),x&&(u.preventedByNestedSwiper=!0),!t.allowSlideNext&&t.swipeDirection==="next"&&r.currentTranslate<r.startTranslate&&(r.currentTranslate=r.startTranslate),!t.allowSlidePrev&&t.swipeDirection==="prev"&&r.currentTranslate>r.startTranslate&&(r.currentTranslate=r.startTranslate),!t.allowSlidePrev&&!t.allowSlideNext&&(r.currentTranslate=r.startTranslate),i.threshold>0)if(Math.abs(w)>i.threshold||r.allowThresholdMove){if(!r.allowThresholdMove){r.allowThresholdMove=!0,a.startX=a.currentX,a.startY=a.currentY,r.currentTranslate=r.startTranslate,a.diff=t.isHorizontal()?a.currentX-a.startX:a.currentY-a.startY;return}}else{r.currentTranslate=r.startTranslate;return}!i.followFinger||i.cssMode||((i.freeMode||i.watchSlidesProgress||i.watchSlidesVisibility)&&(t.updateActiveIndex(),t.updateSlidesClasses()),i.freeMode&&(r.velocities.length===0&&r.velocities.push({position:a[t.isHorizontal()?"startX":"startY"],time:r.touchStartTime}),r.velocities.push({position:a[t.isHorizontal()?"currentX":"currentY"],time:Xn()})),t.updateProgress(r.currentTranslate),t.setTranslate(r.currentTranslate))}}}}}}function pi(n){var e=this,t=e.touchEventsData,r=e.params,i=e.touches,a=e.rtlTranslate,s=e.$wrapperEl,c=e.slidesGrid,u=e.snapGrid,f=e.enabled;if(f){var h=n;if(h.originalEvent&&(h=h.originalEvent),t.allowTouchCallbacks&&e.emit("touchEnd",h),t.allowTouchCallbacks=!1,!t.isTouched){t.isMoved&&r.grabCursor&&e.setGrabCursor(!1),t.isMoved=!1,t.startMoving=!1;return}r.grabCursor&&t.isMoved&&t.isTouched&&(e.allowSlideNext===!0||e.allowSlidePrev===!0)&&e.setGrabCursor(!1);var g=Xn(),v=g-t.touchStartTime;if(e.allowClick&&(e.updateClickedSlide(h),e.emit("tap click",h),v<300&&g-t.lastClickTime<300&&e.emit("doubleTap doubleClick",h)),t.lastClickTime=Xn(),Kf(function(){e.destroyed||(e.allowClick=!0)}),!t.isTouched||!t.isMoved||!e.swipeDirection||i.diff===0||t.currentTranslate===t.startTranslate){t.isTouched=!1,t.isMoved=!1,t.startMoving=!1;return}t.isTouched=!1,t.isMoved=!1,t.startMoving=!1;var y;if(r.followFinger?y=a?e.translate:-e.translate:y=-t.currentTranslate,!r.cssMode){if(r.freeMode){if(y<-e.minTranslate()){e.slideTo(e.activeIndex);return}if(y>-e.maxTranslate()){e.slides.length<u.length?e.slideTo(u.length-1):e.slideTo(e.slides.length-1);return}if(r.freeModeMomentum){if(t.velocities.length>1){var _=t.velocities.pop(),w=t.velocities.pop(),x=_.position-w.position,S=_.time-w.time;e.velocity=x/S,e.velocity/=2,Math.abs(e.velocity)<r.freeModeMinimumVelocity&&(e.velocity=0),(S>150||Xn()-_.time>300)&&(e.velocity=0)}else e.velocity=0;e.velocity*=r.freeModeMomentumVelocityRatio,t.velocities.length=0;var T=1e3*r.freeModeMomentumRatio,M=e.velocity*T,C=e.translate+M;a&&(C=-C);var k=!1,L,O=Math.abs(e.velocity)*20*r.freeModeMomentumBounceRatio,I;if(C<e.maxTranslate())r.freeModeMomentumBounce?(C+e.maxTranslate()<-O&&(C=e.maxTranslate()-O),L=e.maxTranslate(),k=!0,t.allowMomentumBounce=!0):C=e.maxTranslate(),r.loop&&r.centeredSlides&&(I=!0);else if(C>e.minTranslate())r.freeModeMomentumBounce?(C-e.minTranslate()>O&&(C=e.minTranslate()+O),L=e.minTranslate(),k=!0,t.allowMomentumBounce=!0):C=e.minTranslate(),r.loop&&r.centeredSlides&&(I=!0);else if(r.freeModeSticky){for(var P,B=0;B<u.length;B+=1)if(u[B]>-C){P=B;break}Math.abs(u[P]-C)<Math.abs(u[P-1]-C)||e.swipeDirection==="next"?C=u[P]:C=u[P-1],C=-C}if(I&&e.once("transitionEnd",function(){e.loopFix()}),e.velocity!==0){if(a?T=Math.abs((-C-e.translate)/e.velocity):T=Math.abs((C-e.translate)/e.velocity),r.freeModeSticky){var H=Math.abs((a?-C:C)-e.translate),F=e.slidesSizesGrid[e.activeIndex];H<F?T=r.speed:H<2*F?T=r.speed*1.5:T=r.speed*2.5}}else if(r.freeModeSticky){e.slideToClosest();return}r.freeModeMomentumBounce&&k?(e.updateProgress(L),e.setTransition(T),e.setTranslate(C),e.transitionStart(!0,e.swipeDirection),e.animating=!0,s.transitionEnd(function(){!e||e.destroyed||!t.allowMomentumBounce||(e.emit("momentumBounce"),e.setTransition(r.speed),setTimeout(function(){e.setTranslate(L),s.transitionEnd(function(){!e||e.destroyed||e.transitionEnd()})},0))})):e.velocity?(e.updateProgress(C),e.setTransition(T),e.setTranslate(C),e.transitionStart(!0,e.swipeDirection),e.animating||(e.animating=!0,s.transitionEnd(function(){!e||e.destroyed||e.transitionEnd()}))):(e.emit("_freeModeNoMomentumRelease"),e.updateProgress(C)),e.updateActiveIndex(),e.updateSlidesClasses()}else if(r.freeModeSticky){e.slideToClosest();return}else r.freeMode&&e.emit("_freeModeNoMomentumRelease");(!r.freeModeMomentum||v>=r.longSwipesMs)&&(e.updateProgress(),e.updateActiveIndex(),e.updateSlidesClasses());return}for(var $=0,V=e.slidesSizesGrid[0],W=0;W<c.length;W+=W<r.slidesPerGroupSkip?1:r.slidesPerGroup){var ee=W<r.slidesPerGroupSkip-1?1:r.slidesPerGroup;typeof c[W+ee]<"u"?y>=c[W]&&y<c[W+ee]&&($=W,V=c[W+ee]-c[W]):y>=c[W]&&($=W,V=c[c.length-1]-c[c.length-2])}var q=(y-c[$])/V,Y=$<r.slidesPerGroupSkip-1?1:r.slidesPerGroup;if(v>r.longSwipesMs){if(!r.longSwipes){e.slideTo(e.activeIndex);return}e.swipeDirection==="next"&&(q>=r.longSwipesRatio?e.slideTo($+Y):e.slideTo($)),e.swipeDirection==="prev"&&(q>1-r.longSwipesRatio?e.slideTo($+Y):e.slideTo($))}else{if(!r.shortSwipes){e.slideTo(e.activeIndex);return}var ae=e.navigation&&(h.target===e.navigation.nextEl||h.target===e.navigation.prevEl);ae?h.target===e.navigation.nextEl?e.slideTo($+Y):e.slideTo($):(e.swipeDirection==="next"&&e.slideTo($+Y),e.swipeDirection==="prev"&&e.slideTo($))}}}}function Xl(){var n=this,e=n.params,t=n.el;if(!(t&&t.offsetWidth===0)){e.breakpoints&&n.setBreakpoint();var r=n.allowSlideNext,i=n.allowSlidePrev,a=n.snapGrid;n.allowSlideNext=!0,n.allowSlidePrev=!0,n.updateSize(),n.updateSlides(),n.updateSlidesClasses(),(e.slidesPerView==="auto"||e.slidesPerView>1)&&n.isEnd&&!n.isBeginning&&!n.params.centeredSlides?n.slideTo(n.slides.length-1,0,!1,!0):n.slideTo(n.activeIndex,0,!1,!0),n.autoplay&&n.autoplay.running&&n.autoplay.paused&&n.autoplay.run(),n.allowSlidePrev=i,n.allowSlideNext=r,n.params.watchOverflow&&a!==n.snapGrid&&n.checkOverflow()}}function Ya(n){var e=this;e.enabled&&(e.allowClick||(e.params.preventClicks&&n.preventDefault(),e.params.preventClicksPropagation&&e.animating&&(n.stopPropagation(),n.stopImmediatePropagation())))}function vg(){var n=this,e=n.wrapperEl,t=n.rtlTranslate,r=n.enabled;if(r){n.previousTranslate=n.translate,n.isHorizontal()?t?n.translate=e.scrollWidth-e.offsetWidth-e.scrollLeft:n.translate=-e.scrollLeft:n.translate=-e.scrollTop,n.translate===-0&&(n.translate=0),n.updateActiveIndex(),n.updateSlidesClasses();var i,a=n.maxTranslate()-n.minTranslate();a===0?i=0:i=(n.translate-n.minTranslate())/a,i!==n.progress&&n.updateProgress(t?-n.translate:n.translate),n.emit("setTranslate",n.translate,!1)}}var oh=!1;function qo(){}function js(){var n=this,e=Cn(),t=n.params,r=n.touchEvents,i=n.el,a=n.wrapperEl,s=n.device,c=n.support;n.onTouchStart=jt.bind(n),n.onTouchMove=Va.bind(n),n.onTouchEnd=pi.bind(n),t.cssMode&&(n.onScroll=vg.b
81ind(n)),n.onClick=Ya.bind(n);var u=!!t.nested;if(!c.touch&&c.pointerEvents)i.addEventListener(r.start,n.onTouchStart,!1),e.addEventListener(r.move,n.onTouchMove,u),e.addEventListener(r.end,n.onTouchEnd,!1);else{if(c.touch){var f=r.start==="touchstart"&&c.passiveListener&&t.passiveListeners?{passive:!0,capture:!1}:!1;i.addEventListener(r.start,n.onTouchStart,f),i.addEventListener(r.move,n.onTouchMove,c.passiveListener?{passive:!1,capture:u}:u),i.addEventListener(r.end,n.onTouchEnd,f),r.cancel&&i.addEventListener(r.cancel,n.onTouchEnd,f),oh||(e.addEventListener("touchstart",qo),oh=!0)}(t.simulateTouch&&!s.ios&&!s.android||t.simulateTouch&&!c.touch&&s.ios)&&(i.addEventListener("mousedown",n.onTouchStart,!1),e.addEventListener("mousemove",n.onTouchMove,u),e.addEventListener("mouseup",n.onTouchEnd,!1))}(t.preventClicks||t.preventClicksPropagation)&&i.addEventListener("click",n.onClick,!0),t.cssMode&&a.addEventListener("scroll",n.onScroll),t.updateOnWindowResize?n.on(s.ios||s.android?"resize orientationchange observerUpdate":"resize observerUpdate",Xl,!0):n.on("observerUpdate",Xl,!0)}function lh(){var n=this,e=Cn(),t=n.params,r=n.touchEvents,i=n.el,a=n.wrapperEl,s=n.device,c=n.support,u=!!t.nested;if(!c.touch&&c.pointerEvents)i.removeEventListener(r.start,n.onTouchStart,!1),e.removeEventListener(r.move,n.onTouchMove,u),e.removeEventListener(r.end,n.onTouchEnd,!1);else{if(c.touch){var f=r.start==="onTouchStart"&&c.passiveListener&&t.passiveListeners?{passive:!0,capture:!1}:!1;i.removeEventListener(r.start,n.onTouchStart,f),i.removeEventListener(r.move,n.onTouchMove,u),i.removeEventListener(r.end,n.onTouchEnd,f),r.cancel&&i.removeEventListener(r.cancel,n.onTouchEnd,f)}(t.simulateTouch&&!s.ios&&!s.android||t.simulateTouch&&!c.touch&&s.ios)&&(i.removeEventListener("mousedown",n.onTouchStart,!1),e.removeEventListener("mousemove",n.onTouchMove,u),e.removeEventListener("mouseup",n.onTouchEnd,!1))}(t.preventClicks||t.preventClicksPropagation)&&i.removeEventListener("click",n.onClick,!0),t.cssMode&&a.removeEventListener("scroll",n.onScroll),n.off(s.ios||s.android?"resize orientationchange observerUpdate":"resize observerUpdate",Xl)}const Ql={attachEvents:js,detachEvents:lh};function ch(){var n=this,e=n.activeIndex,t=n.initialized,r=n.loopedSlides,i=r===void 0?0:r,a=n.params,s=n.$el,c=a.breakpoints;if(!(!c||c&&Object.keys(c).length===0)){var u=n.getBreakpoint(c,n.params.breakpointsBase,n.el);if(!(!u||n.currentBreakpoint===u)){var f=u in c?c[u]:void 0;f&&["slidesPerView","spaceBetween","slidesPerGroup","slidesPerGroupSkip","slidesPerColumn"].forEach(function(S){var T=f[S];typeof T>"u"||(S==="slidesPerView"&&(T==="AUTO"||T==="auto")?f[S]="auto":S==="slidesPerView"?f[S]=parseFloat(T):f[S]=parseInt(T,10))});var h=f||n.originalParams,g=a.slidesPerColumn>1,v=h.slidesPerColumn>1,y=a.enabled;g&&!v?(s.removeClass(a.containerModifierClass+"multirow "+a.containerModifierClass+"multirow-column"),n.emitContainerClasses()):!g&&v&&(s.addClass(a.containerModifierClass+"multirow"),(h.slidesPerColumnFill&&h.slidesPerColumnFill==="column"||!h.slidesPerColumnFill&&a.slidesPerColumnFill==="column")&&s.addClass(a.containerModifierClass+"multirow-column"),n.emitContainerClasses());var _=h.direction&&h.direction!==a.direction,w=a.loop&&(h.slidesPerView!==a.slidesPerView||_);_&&t&&n.changeDirection(),In(n.params,h);var x=n.params.enabled;In(n,{allowTouchMove:n.params.allowTouchMove,allowSlideNext:n.params.allowSlideNext,allowSlidePrev:n.params.allowSlidePrev}),y&&!x?n.disable():!y&&x&&n.enable(),n.currentBreakpoint=u,n.emit("_beforeBreakpoint",h),w&&t&&(n.loopDestroy(),n.loopCreate(),n.updateSlides(),n.slideTo(e-i+n.loopedSlides,0,!1)),n.emit("breakpoint",h)}}}function Ws(n,e,t){if(e===void 0&&(e="window"),!(!n||e==="container"&&!t)){var r=!1,i=ar(),a=e==="window"?i.innerHeight:t.clientHeight,s=Object.keys(n).map(function(g){if(typeof g=="string"&&g.indexOf("@")===0){var v=parseFloat(g.substr(1)),y=a*v;return{value:y,point:g}}return{value:g,point:g}});s.sort(function(g,v){return parseInt(g.value,10)-parseInt(v.value,10)});for(var c=0;c<s.length;c+=1){var u=s[c],f=u.point,h=u.value;e==="window"?i.matchMedia("(min-width: "+h+"px)").matches&&(r=f):h<=t.clientWidth&&(r=f)}
81return r||"max"}}const ha={setBreakpoint:ch,getBreakpoint:Ws};function ja(n,e){var t=[];return n.forEach(function(r){typeof r=="object"?Object.keys(r).forEach(function(i){r[i]&&t.push(e+i)}):typeof r=="string"&&t.push(e+r)}),t}function pa(){var n=this,e=n.classNames,t=n.params,r=n.rtl,i=n.$el,a=n.device,s=n.support,c=ja(["initialized",t.direction,{"pointer-events":s.pointerEvents&&!s.touch},{"free-mode":t.freeMode},{autoheight:t.autoHeight},{rtl:r},{multirow:t.slidesPerColumn>1},{"multirow-column":t.slidesPerColumn>1&&t.slidesPerColumnFill==="column"},{android:a.android},{ios:a.ios},{"css-mode":t.cssMode}],t.containerModifierClass);e.push.apply(e,c),i.addClass([].concat(e).join(" ")),n.emitContainerClasses()}function uh(){var n=this,e=n.$el,t=n.classNames;e.removeClass(t.join(" ")),n.emitContainerClasses()}const dh={addClasses:pa,removeClasses:uh};function $o(n,e,t,r,i,a){var s=ar(),c;function u(){a&&a()}var f=On(n).parent("picture")[0];!f&&(!n.complete||!i)&&e?(c=new s.Image,c.onload=u,c.onerror=u,r&&(c.sizes=r),t&&(c.srcset=t),e&&(c.src=e)):u()}function qu(){var n=this;n.imagesToLoad=n.$el.find("img");function e(){typeof n>"u"||n===null||!n||n.destroyed||(n.imagesLoaded!==void 0&&(n.imagesLoaded+=1),n.imagesLoaded===n.imagesToLoad.length&&(n.params.updateOnImagesReady&&n.update(),n.emit("imagesReady")))}for(var t=0;t<n.imagesToLoad.length;t+=1){var r=n.imagesToLoad[t];n.loadImage(r,r.currentSrc||r.getAttribute("src"),r.srcset||r.getAttribute("srcset"),r.sizes||r.getAttribute("sizes"),!0,e)}}const Us={loadImage:$o,preloadImages:qu};function xr(){var n=this,e=n.params,t=n.isLocked,r=n.slides.length>0&&e.slidesOffsetBefore+e.spaceBetween*(n.slides.length-1)+n.slides[0].offsetWidth*n.slides.length;e.slidesOffsetBefore&&e.slidesOffsetAfter&&r?n.isLocked=r<=n.size:n.isLocked=n.snapGrid.length===1,n.allowSlideNext=!n.isLocked,n.allowSlidePrev=!n.isLocked,t!==n.isLocked&&n.emit(n.isLocked?"lock":"unlock"),t&&t!==n.isLocked&&(n.isEnd=!1,n.navigation&&n.navigation.update())}const $u={checkOverflow:xr},fh={init:!0,direction:"horizontal",touchEventsTarget:"container",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!1,nested:!1,createElements:!1,enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,freeMode:!1,freeModeMomentum:!0,freeModeMomentumRatio:1,freeModeMomentumBounce:!0,freeModeMomentumBounceRatio:1,freeModeMomentumVelocityRatio:1,freeModeSticky:!1,freeModeMinimumVelocity:.02,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerColumn:1,slidesPerColumnFill:"column",slidesPerGroup:1,slidesPerGroupSkip:0,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!1,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:0,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,watchSlidesVisibility:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,preloadImages:!0,updateOnImagesReady:!0,loop:!1,loopAdditionalSlides:0,loopedSlides:null,loopFillGroupWithBlank:!1,loopPreventsSlide:!0,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,containerModifierClass:"swiper-container-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-invisible-blank",slideActiveClass:"swiper-slide-active",slideDuplicateActiveClass:"swiper-slide-duplicate-active",slideVisibleClass:"swiper-slide-visible",slideDuplicateClass:"swiper-slide-duplicate",slideNextClass:"swiper-slide-next",slideDuplicateNextClass:"swiper-slide-duplicate-next",slidePrevClass:"swiper-slide-prev",slideDuplicatePrevClass:"swiper-slide-duplicate-prev",wrapperClass:"swiper-wrapper",runCallbacksOnInit:!0,_emitClasses:!1};function yg(n,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}function Pb(n,e,t){return e&&yg(n.prototype,e),t&&yg(n,t),n}var hh={modular:Ib,eventsEmitter:cg,update:th,translate:ei,transition:Wu,slide:Uo,loop:hi,grabCursor:$i,manipulation:Er,events:Ql,breakpoints:ha,checkOverflow:$u,classes:dh,images:Us},Vn={},Kl=(function(){function n(){for(var t,r,i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];if(a.length===1&&a[0].constructor&&Object.prototype.toString.call(a[0]).slice(8,-1)==="Object"?r=a[0]:(t=a[0],r=a[1]),r||(r={}),r=In({},r),t&&!r.el&&(r.el=t),r.el&&On(r.el).length>1){var c=[];return On(r.el).each(function(h){var g=In({},r,{el:h});c.push(new n(g))}),c}var u=this;u.__swiper__=!0,u.support=Bu(),u.device=Vo({userAgent:r.userAgent}),u.browser=Fs(),u.eventsListeners={},u.eventsAnyListeners=[],typeof u.modules>"u"&&(u.modules={}
81),Object.keys(u.modules).forEach(function(h){var g=u.modules[h];if(g.params){var v=Object.keys(g.params)[0],y=g.params[v];if(typeof y!="object"||y===null||(["navigation","pagination","scrollbar"].indexOf(v)>=0&&r[v]===!0&&(r[v]={auto:!0}),!(v in r&&"enabled"in y)))return;r[v]===!0&&(r[v]={enabled:!0}),typeof r[v]=="object"&&!("enabled"in r[v])&&(r[v].enabled=!0),r[v]||(r[v]={enabled:!1})}});var f=In({},fh);return u.useParams(f),u.params=In({},f,Vn,r),u.originalParams=In({},u.params),u.passedParams=In({},r),u.params&&u.params.on&&Object.keys(u.params.on).forEach(function(h){u.on(h,u.params.on[h])}),u.params&&u.params.onAny&&u.onAny(u.params.onAny),u.$=On,In(u,{enabled:u.params.enabled,el:t,classNames:[],slides:On(),slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:function(){return u.params.direction==="horizontal"},isVertical:function(){return u.params.direction==="vertical"},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,allowSlideNext:u.params.allowSlideNext,allowSlidePrev:u.params.allowSlidePrev,touchEvents:(function(){var g=["touchstart","touchmove","touchend","touchcancel"],v=["mousedown","mousemove","mouseup"];return u.support.pointerEvents&&(v=["pointerdown","pointermove","pointerup"]),u.touchEventsTouch={start:g[0],move:g[1],end:g[2],cancel:g[3]},u.touchEventsDesktop={start:v[0],move:v[1],end:v[2]},u.support.touch||!u.params.simulateTouch?u.touchEventsTouch:u.touchEventsDesktop})(),touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:u.params.focusableElements,lastClickTime:Xn(),clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,isTouchEvent:void 0,startMoving:void 0},allowClick:!0,allowTouchMove:u.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),u.useModules(),u.emit("_swiper"),u.params.init&&u.init(),u}var e=n.prototype;return e.enable=function(){var r=this;r.enabled||(r.enabled=!0,r.params.grabCursor&&r.setGrabCursor(),r.emit("enable"))},e.disable=function(){var r=this;r.enabled&&(r.enabled=!1,r.params.grabCursor&&r.unsetGrabCursor(),r.emit("disable"))},e.setProgress=function(r,i){var a=this;r=Math.min(Math.max(r,0),1);var s=a.minTranslate(),c=a.maxTranslate(),u=(c-s)*r+s;a.translateTo(u,typeof i>"u"?0:i),a.updateActiveIndex(),a.updateSlidesClasses()},e.emitContainerClasses=function(){var r=this;if(!(!r.params._emitClasses||!r.el)){var i=r.el.className.split(" ").filter(function(a){return a.indexOf("swiper-container")===0||a.indexOf(r.params.containerModifierClass)===0});r.emit("_containerClasses",i.join(" "))}},e.getSlideClasses=function(r){var i=this;return r.className.split(" ").filter(function(a){return a.indexOf("swiper-slide")===0||a.indexOf(i.params.slideClass)===0}).join(" ")},e.emitSlidesClasses=function(){var r=this;if(!(!r.params._emitClasses||!r.el)){var i=[];r.slides.each(function(a){var s=r.getSlideClasses(a);i.push({slideEl:a,classNames:s}),r.emit("_slideClass",a,s)}),r.emit("_slideClasses",i)}},e.slidesPerViewDynamic=function(){var r=this,i=r.params,a=r.slides,s=r.slidesGrid,c=r.size,u=r.activeIndex,f=1;if(i.centeredSlides){for(var h=a[u].swiperSlideSize,g,v=u+1;v<a.length;v+=1)a[v]&&!g&&(h+=a[v].swiperSlideSize,f+=1,h>c&&(g=!0));for(var y=u-1;y>=0;y-=1)a[y]&&!g&&(h+=a[y].swiperSlideSize,f+=1,h>c&&(g=!0))}else for(var _=u+1;_<a.length;_+=1)s[_]-s[u]<c&&(f+=1);return f},e.update=function(){var r=this;if(!r||r.destroyed)return;var i=r.snapGrid,a=r.params;a.breakpoints&&r.setBreakpoint(),r.updateSize(),r.updateSlides(),r.updateProgress(),r.updateSlidesClasses();function s(){var u=r.rtlTranslate?r.translate*-1:r.translate,f=Math.min(Math.max(u,r.maxTranslate()),r.minTranslate());r.setTranslate(f),r.updateActiveIndex(),r.updateSlidesClasses()}var c;r.params.freeMode?(s(),r.params.autoHeight&&r.updateAutoHeight()):((r.params.slidesPerView==="auto"||r.params.slidesPerView>1)&&r.isEnd&&!r.params.centeredSlides?c=r.slideTo(r.slides.length-1,0,!1,!0):c=r.slideTo(r.activeIndex,0,!1,!0),c||s()),a.watchOverflow&&i!==r.snapGrid&&r.checkOverflow(),r.emit("update")},e.changeDirection=function(r,i){i===void 0&&(i=!0);var a=this,s=a.params.direction;return r||(r=s==="horizontal"?"vertical":"horizontal"),r===s||r!=="horizontal"&&r!=="vertical"||(a.$el.removeClass(""+a.params.containerModifierClass+s).addClass(""+a.params.containerModifierClass+r),a.emitContainerClasses(),a.params.direction=r,a.slides.each(function(c){r==="vertical"?c.style.width="":c.style.height=""}),a.emit("changeDirection"),i&&a.update()),a},e.mount=function(r){var i=this;if(i.mounted)return!0;var a=On(r||i.params.el);if(r=a[0],!r)return!1;r.swiper=i;var s=function(){return"."+(i.params.wrapperClass||"").trim().split(" ").join(".")},c=function(){if(r&&r.shadowRoot&&r.shadowRoot.querySelector){var v=On(r.shadowRoot.querySelector(s()));return v.children=function(y){return a.children(y)},v}return a.children(s())},u=c();if(u.length===0&&i.params.createElements){var f=Cn(),h=f.createElement("div");u=On(h),h.className=i.params.wrapperClass,a.append(h),a.children("."+i.params.slideClass).each(function(g){u.append(g)})}return In(i,{$el:a,el:r,$wrapperEl:u,wrapperEl:u[0],mounted:!0,rtl:r.dir.toLowerCase()==="rtl"||a.css("direction")==="rtl",rtlTranslate:i.params.direction==="horizontal"&&(r.dir.toLowerCase()==="rtl"||a.css("direction")==="rtl"),wrongRTL:u.css("display")==="-webkit-box"}),!0},e.init=function(r){var i=this;if(i.initialized)return i;var a=i.mount(r);return a===!1||(i.emit("beforeInit"),i.params.breakpoints&&i.setBreakpoint(),i.addClasses(),i.params.loop&&i.loopCreate(),i.updateSize(),i.updateSlides(),i.params.watchOverflow&&i.checkOverflow(),i.params.grabCursor&&i.enabled&&i.setGrabCursor(
81),i.params.preloadImages&&i.preloadImages(),i.params.loop?i.slideTo(i.params.initialSlide+i.loopedSlides,0,i.params.runCallbacksOnInit,!1,!0):i.slideTo(i.params.initialSlide,0,i.params.runCallbacksOnInit,!1,!0),i.attachEvents(),i.initialized=!0,i.emit("init"),i.emit("afterInit")),i},e.destroy=function(r,i){r===void 0&&(r=!0),i===void 0&&(i=!0);var a=this,s=a.params,c=a.$el,u=a.$wrapperEl,f=a.slides;return typeof a.params>"u"||a.destroyed||(a.emit("beforeDestroy"),a.initialized=!1,a.detachEvents(),s.loop&&a.loopDestroy(),i&&(a.removeClasses(),c.removeAttr("style"),u.removeAttr("style"),f&&f.length&&f.removeClass([s.slideVisibleClass,s.slideActiveClass,s.slideNextClass,s.slidePrevClass].join(" ")).removeAttr("style").removeAttr("data-swiper-slide-index")),a.emit("destroy"),Object.keys(a.eventsListeners).forEach(function(h){a.off(h)}),r!==!1&&(a.$el[0].swiper=null,Lb(a)),a.destroyed=!0),null},n.extendDefaults=function(r){In(Vn,r)},n.installModule=function(r){n.prototype.modules||(n.prototype.modules={});var i=r.name||Object.keys(n.prototype.modules).length+"_"+Xn();n.prototype.modules[i]=r},n.use=function(r){return Array.isArray(r)?(r.forEach(function(i){return n.installModule(i)}),n):(n.installModule(r),n)},Pb(n,null,[{key:"extendedDefaults",get:function(){return Vn}},{key:"defaults",get:function(){return fh}}]),n})();Object.keys(hh).forEach(function(n){Object.keys(hh[n]).forEach(function(e){Kl.prototype[e]=hh[n][e]})}),Kl.use([lg,Rb]);const Gi=Kl,mi="js-comparator",Jl="is-active",ma="with-scroll-panel",qs="!hidden",bg="!block",ph="!justify-start",_g="!justify-center",mh="--intro-min-height",Wa=300,Gu=n=>{const e=n.querySelector(`.${mi}-swiper`),t=n.querySelector(`.${mi}-panel-container`),r=n.querySelector(`.${mi}-content-container`),i=n.querySelector(`.${mi}-button-list`),a=Array.from(i.querySelectorAll(`.${mi}-panel-button`)),s=r.querySelector(`.${mi}-swiper-wrapper`),c=Array.from(r.querySelectorAll(`.${mi}-swiper-slide`)),u=Array.from(r.querySelectorAll(`.${mi}-item-intro`));let f=null,h=!1;const g=new Gi(e,{enabled:!0,speed:Wa,slidesPerView:"auto",longSwipesRatio:.2,loop:!1,resizeObserver:!0,resistanceRatio:0}),v=M=>{f.classList.remove(Jl),f=M,f.classList.add(Jl)};g.on("slideChange",M=>{const{realIndex:C}=M;if(a.findIndex(O=>O===f)===C||h){h=!1;return}const L=a[C];v(L),Ti({containerEl:i,itemElement:L})});const y=M=>{const C=M.currentTarget;if(C===f)return;h=!0,v(C);const k=a.findIndex(L=>L===C);g.slideTo(k,Wa)},_=()=>{g.enable(),n.classList.add(ma),r.classList.add(ma),s.classList.remove(_g),s.classList.add(ph),t.classList.remove(qs),t.classList.add(bg)},w=()=>{g.disable(),n.classList.remove(ma),r.classList.remove(ma),s.classList.remove(ph),s.classList.add(_g),t.classList.remove(bg),t.classList.add(qs)},x=()=>{const{clientWidth:M}=s,C=c.reduce((k,L)=>{const{width:O}=L.getBoundingClientRect();return k+O},0);if(Math.floor(C)>M){_();return}w()},S=()=>{s.style.setProperty(mh,"0");let M=0;u.forEach(C=>{const{height:k}=C.getBoundingClientRect(),L=Math.ceil(k);L>M&&(M=L)}),s.style.setProperty(mh,`${M}px`)},T=()=>{[f]=a,f.classList.add(Jl),a.forEach(M=>{M.addEventListener("click",y)}),x(),S()};window.addEventListener("resize",Io()(()=>{x(),S()},200)),T()};var Eg=sn(994),Go=sn.n(Eg);const gh=(()=>{[...document.getElementsByClassName("js-tile")].forEach(e=>{const t=new(Go())(e,{itemSelector:".grid-item",columnWidth:".grid-sizer",percentPosition:!0})})}),Zu=(()=>{var n;const e=document.querySelector(".js-search-desktop"),t=e.querySelector(".js-tob-bar-links"),r=e.querySelector(".js-search-icon"),i=e.querySelector(".js-search-desk"),a=e.querySelector(".js-search-input-desk"),s=document.querySelector(".js-search-input-mob"),c=e.querySelector(".js-search-close"),u=document.querySelector(".js-search-cancel"),f=document.querySelector(".js-search-whisperer-mob"),h=e.querySelector(".js-search-whisperer-desk"),g=e.querySelector(".js-search-form"),v=document.querySelector(".js-mob-search-form"),y=(n=window.WIDGETS_CONFIG)===null||n===void 0?void 0:n.general;r&&Kr.on(r,{click:x=>{x.preventDefault(),i.classList.toggle(He.ACTIVE),t.classList.toggle(He.INVISIBLE),a.focus()}}),Kr.on(c,{click:x=>{x.preventDefault(),i.classList.toggle(He.ACTIVE),t.classList.toggle(He.INVISIBLE),h.classList.remove(He.ACTIVE)}});const _=()=>{i.classList.remove(He.ACTIVE),t.classList.remove(He.INVISIBLE),h.classList.remove(He.ACTIVE)};Kr.on(document.body,{keydown:x=>{x.key==="Escape"&&_()}}),Kr.on(document,{click:x=>{typeof x.composedPath=="function"&&!x.composedPath().includes(e)&&_(
81)}}),Kr.on(s,{focus:()=>{u.classList.remove(He.HIDDEN),Nf.parseSafe(r.dataset.persoo)||f.classList.add(He.ACTIVE)}}),Kr.on(u,{click:()=>{u.classList.toggle(He.HIDDEN),Nf.parseSafe(r.dataset.persoo)||f.classList.remove(He.ACTIVE)}});const w=(x,S)=>{x.preventDefault();const T=`${window.location.origin}${y.searchUrl}?query=${S}`;window.location.href=T};Kr.on(g,{submit:x=>{const S=a.value;w(x,S)}}),Kr.on(v,{submit:x=>{const S=s.value;w(x,S)}})}),xg=n=>{var e;const t=n.querySelector(".js-cta-loader"),r=(e=window.WIDGETS_CONFIG)===null||e===void 0?void 0:e.general;let i="";const a=()=>{var c;const u=document.querySelector(".js-cta-error"),f=(c=u?.dataset)===null||c===void 0?void 0:c.cta_error;alert(f),t?.classList.remove("is-active"),document.removeEventListener("kbo:load-failed",a)},s=c=>{const u=n.dataset.ctaUsecase,f=n.dataset.ctaAddsessionid;if(u==="app"){const C=r.meiroSessionId,k=r.meiroUrlParam==null||r.meiroUrlParam.length===0?C:r.meiroUrlParam;if(C){const L=Bl.get(C),O=c.currentTarget;if(O&&L&&f==="true"){c.preventDefault();const I=O.href;window.location.href=`${O.href}${I.indexOf("?")>0?"&":"?"}${k}=${L}`}else O&&f==="false"&&(c.preventDefault(),window.location.href=O.href)}return}if(n.classList.contains("btn")){const C=n;C.classList.add("btn--loading","w-[190px]","h-[50px]"),i=C.innerText,C.innerText="",setTimeout(()=>{C.classList.remove("btn--loading","w-[190px]","h-[50px]"),C.innerText=i},25e3)}c.preventDefault();const h=n.dataset.ctaLanguage,g=n.dataset.ctaProductcode,v=Number(n.dataset.ctaProductid),y=n.dataset.ctaProductname,_=n.dataset.ctaSource,w=n.dataset.ctaChanneid,x=n.dataset.ctaObjectcode,S=n.dataset.ctaBankadvisorgroupid,T=n.dataset.ctaBranchid,M=n.dataset.ctaBranchdetail;if(document.dispatchEvent(new CustomEvent("kbo:load",{detail:{lang:h,useCase:u,data:{productCode:g,productId:v,product:{name:y,detail:"",clickAction:()=>{}},source:_,visitorId:"a087bc9a48c60203",bankAdvisorGroupId:S,channelId:w,objectCode:x,fromBranch:{id:T,name:M}}}})),window.kboLoaded)t?.classList.add("is-active");
81else{const k=document.querySelector(".js-cta-error").dataset.cta_error;alert(k)}document.addEventListener("kbo:load-failed",a)};n.addEventListener("click",s),document.addEventListener("kbo:loaded",()=>{setTimeout(()=>{t?.classList.remove("is-active"),n.classList.contains("btn")&&(n.classList.remove("btn--loading","w-[190px]","h-[50px]"),n.innerText=i)},1)})},$s=n=>{if(!n)return;const e=n.querySelector("form");e&&(e.removeAttribute("onsubmit"),e.onsubmit=null,e.addEventListener("submit",f=>{window.kentico.updatableFormHelper.submitForm(f)}));const t=24,r=n.querySelector("input[type='submit']");if(!r)return;const a=n.getBoundingClientRect().top,s=window.pageYOffset,c=a+s-t,u=()=>{setTimeout(()=>{window.scrollTo({top:c,behavior:"smooth"})},100)};r.addEventListener("click",u)},Sg=n=>{const e=document.querySelector(".js-navMob"),t=document.querySelector(".js-search-cancel"),r=document.querySelector("body"),i=document.querySelector(".js-overlay"),a=()=>{r.classList.toggle("overflow-hidden"),e.classList.toggle("active"),i.classList.toggle("overlay"),t?.classList.add(He.HIDDEN)};n.addEventListener("click",a)},Cg="table-branch-tab",Xo="table-cashdesk-tab",ec="table-branch",Xu="table-cashdesk",Ua="is-active",qa="flex",Qo="hidden",Tg=()=>{const n=document.getElementById(Cg),e=()=>{n.classList.add(Ua)},t=()=>{n.classList.remove(Ua)},r=document.getElementById(Xo),i=()=>{r.classList.add(Ua)},a=()=>{r.classList.remove(Ua)},s=document.getElementById(ec);s.classList.add(qa);const c=()=>{s.classList.remove(Qo),s.classList.add(qa)},u=()=>{s.classList.remove(qa),s.classList.add(Qo)},f=document.getElementById(Xu);f.classList.add(Qo);const h=()=>{f.classList.remove(Qo),f.classList.add(qa)},g=()=>{f.classList.remove(qa),f.classList.add(Qo)};n.addEventListener("click",()=>{e(),c(),r&&(a(),g())}),r.addEventListener("click",()=>{i(),h(),t(),u()})},yh=()=>{[...document.getElementsByClassName("tabs-widget-container")].forEach(e=>{const t=e.querySelectorAll(".js-tabs-button"),r=e.querySelectorAll(".youtube-video-iframe");t.forEach(i=>{i.addEventListener("click",()=>{r.forEach(a=>{a.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"https://www.youtube.com")})})})})},bh=(n=>{const e=[...n.getElementsByClassName("js-menuItem")],t=[...n.getElementsByClassName("js-login")],r=document.querySelector(".js-menuBg"),i=document.querySelector(".js-menuOverlay"),a=()=>{e.forEach(f=>{const{target:h}=f.dataset,g=document.getElementById(h);f.classList.remove(He.IS_OPEN),g.classList.remove(He.ACTIVE),f.setAttribute("aria-expanded","false")}),n.classList.remove(He.IS_OPEN),r?.classList.remove(He.IS_OPEN),i?.classList.remove("overlay")},s=f=>{const{target:h}=f.dataset,g=document.getElementById(h);f.classList.add(He.IS_OPEN),g.classList.add(He.ACTIVE),f.setAttribute("aria-expanded","true"),n.classList.add(He.IS_OPEN),r?.classList.add(He.IS_OPEN),i?.classList.add("overlay")},c=f=>{f.classList.contains(He.IS_OPEN)?a():(a(),s(f))};t.forEach(f=>{const{target:h}=f.dataset,g=document.getElementById(h);h&&f.addEventListener("click",v=>{v.preventDefault(),g.classList.toggle(He.ACTIVE),f.classList.toggle(He.IS_OPEN),f.setAttribute("aria-expanded",f.getAttribute("aria-expanded")==="true"?"false":"true"),a()}),document.body.addEventListener("mousedown",v=>{if(f.classList.contains(He.IS_OPEN)){const y=g.contains(v?.target),_=f.contains(v?.target);!y&&!_&&(g.classList.remove(He.ACTIVE),f.classList.remove(He.IS_OPEN),f.setAttribute("aria-expanded","false"))}})}),e.forEach(f=>{Kr.on(f,{click:h=>{h.preventDefault(),c(f)}})});const u=document.querySelector(".js-megaMenu");document.body.addEventListener("mousedown",f=>{u.classList.contains(He.IS_OPEN)&&(u.contains(f?.target)||a())}),window.onkeydown=f=>{if(u.classList.contains(He.IS_OPEN)){const{key:h}=f;h==="Escape"&&a()}},Os.isDesktopBreakpoint()&&(window.onscroll=()=>{document.documentElement.scrollTop>200&&a()})}),$a=n=>{n.addEventListener("click",e=>{e.preventDefault(),n.classList.toggle(He.ACTIVE),document.getElementById(n.dataset.target).classList.toggle(He.ACTIVE),n.setAttribute("aria-expanded",n.getAttribute("aria-expanded")==="true"?"false":"true")})};function Rr(n){if(n==null)return window;if(n.toString()!=="[object Window]"){var e=n.ownerDocument;return e&&e.defaultView||window}return n}function Ga(n){var e=Rr(n).Element;return n instanceof e||n instanceof Element}function Wr(n){var e=Rr(n).HTMLElement;return n instanceof e||n instanceof HTMLElement}function Xs(n){if(typeof ShadowRoot>"u")return!1;var e=Rr(n).ShadowRoot;return n instanceof e||n instanceof ShadowRoot}var Oi=Math.max,tc=Math.min,Qs=Math.round;function ki(n,e){e===void 0&&(e=!1);var t=n.getBoundingClientRect(),r=1,i=1;if(Wr(n)&&e){var a=n.offsetHeight,s=n.offsetWidth;s>0&&(r=Qs(t.width)/s||1),a>0&&(i=Qs(t.height)/a||1)}return{width:t.width/r,height:t.height/i,top:t.top/i,right:t.right/r,bottom:t.bottom/i,left:t.left/r,x:t.left/r,y:t.top/i}}function Jo(n){var e=Rr(n),t=e.pageXOffset,r=e.pageYOffset;return{scrollLeft:t,scrollTop:r}}function Mg(n){return{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}}function _h(n){return n===Rr(n)||!Wr(n)?Jo(n):Mg(n)}function gi(n){return n?(n.nodeName||"").toLowerCase():null}function Qn(n){return((Ga(n)?n.ownerDocument:n.document)||window.document).documentElement}function Ur(n){return ki(Qn(n)).left+Jo(n).scrollLeft}function Mr(n){return Rr(n).getComputedStyle(n)}function nc(n){var e=Mr(n),t=e.overflow,r=e.overflowX,i=e.overflowY;return/auto|scroll|overlay|hidden/.test(t+i+r)}function Dg(n){var e=n.getBoundingClientRect(),t=Qs(e.width)/n.offsetWidth||1,r=Qs(e.height)/n.offsetHeight||1;return t!==1||r!==1}function Za(n,e,t){t===void 0&&(t=!1);var r=Wr(e),i=Wr(e)&&Dg(e),a=Qn(e),s=ki(n,i),c={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(r||!r&&!t)&&((gi(e)!=="body"||nc(a))&&(c=_h(e)),Wr(e)?(u=ki(e,!0),u.x+=e.clientLeft,u.y+=e.clientTop):a&&(u.x=Ur(a))),{x:s.left+c.scrollLeft-u.x,y:s.top+c.scrollTop-u.y,width:s.width,height:s.height}}function Ir(n){var e=ki(n),t=n.offsetWidth,r=n.offsetHeight;return Math.abs(e.width-t)<=1&&(t=e.width),Math.abs(e.height-r)<=1&&(r=e.height),{x:n.offsetLeft,y:n.offsetTop,width:t,height:r}}function kn(n){return gi(n)==="html"?n:n.assignedSlot||n.parentNode||(Xs(n)?n.host:null)||Qn(n)}function rc(n){return["html","body","#document"].indexOf(gi(n))>=0?n.ownerDocument.body:Wr(n)&&nc(n)?n:rc(kn(n))}function ti(n,e){var t;e===void 0&&(e=[]);var r=rc(n),i=r===((t=n.ownerDocument)==null?void 0:t.body),a=Rr(r),s=i?[a].concat(a.visualVie
vendor: 5,890 bytes, line 81
81wport||[],nc(r)?r:[]):r,c=e.concat(s);return i?c:c.concat(ti(kn(s)))}function Mt(n){return["table","td","th"].indexOf(gi(n))>=0}function on(n){return!Wr(n)||Mr(n).position==="fixed"?null:n.offsetParent}function Kn(n){var e=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,t=navigator.userAgent.indexOf("Trident")!==-1;if(t&&Wr(n)){var r=Mr(n);if(r.position==="fixed")return null}var i=kn(n);for(Xs(i)&&(i=i.host);Wr(i)&&["html","body"].indexOf(gi(i))<0;){var a=Mr(i);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||e&&a.willChange==="filter"||e&&a.filter&&a.filter!=="none")return i;i=i.parentNode}return null}function Xa(n){for(var e=Rr(n),t=on(n);t&&Mt(t)&&Mr(t).position==="static";)t=on(t);return t&&(gi(t)==="html"||gi(t)==="body"&&Mr(t).position==="static")?e:t||Kn(n)||e}var sr="top",hr="bottom",Nr="right",pr="left",Qa="auto",ic=[sr,hr,Nr,pr],gn="start",Ks="end",wh="clippingParents",Eh="viewport",el="popper",Hb="reference",Qu=ic.reduce(function(n,e){return n.concat([e+"-"+gn,e+"-"+Ks])},[]),Ku=[].concat(ic,[Qa]).reduce(function(n,e){return n.concat([e,e+"-"+gn,e+"-"+Ks])},[]),xh="beforeRead",Pr="read",jn="afterRead",Ju="beforeMain",ac="main",ed="afterMain",Sh="beforeWrite",ga="write",td="afterWrite",Ch=[xh,Pr,jn,Ju,ac,ed,Sh,ga,td];function Th(n){var e=new Map,t=new Set,r=[];n.forEach(function(a){e.set(a.name,a)});function i(a){t.add(a.name);var s=[].concat(a.requires||[],a.requiresIfExists||[]);s.forEach(function(c){if(!t.has(c)){var u=e.get(c);u&&i(u)}}),r.push(a)}return n.forEach(function(a){t.has(a.name)||i(a)}),r}function Og(n){var e=Th(n);return Ch.reduce(function(t,r){return t.concat(e.filter(function(i){return i.phase===r}))},[])}function kg(n){var e;return function(){return e||(e=new Promise(function(t){Promise.resolve().then(function(){e=void 0,t(n())})})),e}}function Lg(n){var e=n.reduce(function(t,r){var i=t[r.name];return t[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,t},{});return Object.keys(e).map(function(t){return e[t]})}var zb="Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.",Fb="Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.",Mh={placement:"bottom",modifiers:[],strategy:"absolute"};function nd(){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];return!e.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function Ag(n){n===void 0&&(n={});var e=n,t=e.defaultModifiers,r=t===void 0?[]:t,i=e.defaultOptions,a=i===void 0?Mh:i;return function(c,u,f){f===void 0&&(f=a);var h={placement:"bottom",orderedModifiers:[],options:Object.assign({},Mh,a),modifiersData:{},elements:{reference:c,popper:u},attributes:{},styles:{}},g=[],v=!1,y={state:h,setOptions:function(S){var T=typeof S=="function"?S(h.options):S;w(),h.options=Object.assign({},a,h.options,T),h.scrollParents={reference:Ga(c)?ti(c):c.contextElement?ti(c.contextElement):[],popper:ti(u)};var M=Og(Lg([].concat(r,h.options.modifiers)));if(h.orderedModifiers=M.filter(function(H){return H.enabled}),0)var C,k,L,O,I,P,B;return _(),y.update()},forceUpdate:function(){if(!v){var S=h.elements,T=S.reference,M=S.popper;if(nd(T,M)){h.rects={reference:Za(T,Xa(M),h.options.strategy==="fixed"),popper:Ir(M)},h.reset=!1,h.placement=h.options.placement,h.orderedModifiers.forEach(function(H){return h.modifiersData[H.name]=Object.assign({},H.data)});for(var C=0,k=0;k<h.orderedModifiers.length;k++){if(h.reset===!0){h.reset=!1,k=-1;continue}var L=h.orderedModifiers[k],O=L.fn,I=L.options,P=I===void 0?{}:I,B=L.name;typeof O=="function"&&(h=O({state:h,options:P,name:B,instance:y})||h)}}}},update:kg(function(){return new Promise(function(x){y.forceUpdate(),x(h)})}),destroy:function(){w(),v=!0}};if(!nd(c,u))return y;y.setOptions(f).then(function(x){!v&&f.onFirstUpdate&&f.onFirstUpdate(x)});function _(){h.orderedModifiers.forEach(function(x){var S=x.name,T=x.options,M=T===void 0?{}:T,C=x.effect;if(typeof C=="function"){var k=C({state:h,name:S,instance:y,options:M}),L=function(){};g.push(k||L)}})}function w(){g.forEach(function(x){return x()}),g=[]}return y}}var wE=null,sc={passive:!0};function Rg(n){var e=n.state,t=n.instance,r=n.options,i=r.scroll,a=i===void 0?!0:i,s=r.resize,c=s===void 0?!0:s,u=Rr(e.elements.popper),f=[].concat(e.scrollParents.reference,e.scrollParents.popper);return a&&f.forEach(function(h){h.addEventListener("scroll",t.update,sc)}),c&&u.addEventListener("resize",t.update,sc),function(){a&&f.forEach(function(h){h.removeEventListener("scroll",t.update,sc)}),c&&u.removeEventListener("resize",t.update,sc)}}const Ig={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Rg,data:{}};function vi(n){return n.split("-")[0]}function Js(n){return n.split("-")[1]}function rd(n){return["top","bottom"].indexOf(n)>=0?"x":"y"}function Dh(n){var e=n.reference,t=n.element,r=n.placement,i=r?vi(r):null,a=r?Js(r):null,s=e.x+e.width/2-t.width/2,c=e.y+e.height/2-t.height/2,u;switch(i){case sr:u={x:s,y:e.y-t.height};break;case hr:u={x:s,y:e.y+e.height};break;case Nr:u={x:e.x+e.width,y:c};break;case pr:u={x:e.x-t.width,y:c};break;default:u={x:e.x,y:e.y}}var f=i?rd(i):null;if(f!=null){var h=f==="y"?"height":"width";switch(a){case gn:u[f]=u[f]-(e[h]/2-t[h]/2);break;case Ks:u[f]=u[f]+(e[h]/2-t[h]/2);break;default:}}return u}function Ng(n){var e=n.state,t=n.name;e.modifiersData[t]=Dh({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}const Pg={name:"popperOffsets",enabled:!0,phase:"read",fn:Ng,data:{}};var Vb={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Bg(n){var e=n.x,t=n.y,r=window,i=r.devicePixelRatio||1;return{x:Qs(e*i)/i||0,y:Qs(t*i)/i||0}}
vendor: 2,113 bytes, line 81
81function eo(n){var e,t=n.popper,r=n.popperRect,i=n.placement,a=n.variation,s=n.offsets,c=n.position,u=n.gpuAcceleration,f=n.adaptive,h=n.roundOffsets,g=n.isFixed,v=s.x,y=v===void 0?0:v,_=s.y,w=_===void 0?0:_,x=typeof h=="function"?h({x:y,y:w}):{x:y,y:w};y=x.x,w=x.y;var S=s.hasOwnProperty("x"),T=s.hasOwnProperty("y"),M=pr,C=sr,k=window;if(f){var L=Xa(t),O="clientHeight",I="clientWidth";if(L===Rr(t)&&(L=Qn(t),Mr(L).position!=="static"&&c==="absolute"&&(O="scrollHeight",I="scrollWidth")),L=L,i===sr||(i===pr||i===Nr)&&a===Ks){C=hr;var P=g&&L===k&&k.visualViewport?k.visualViewport.height:L[O];w-=P-r.height,w*=u?1:-1}if(i===pr||(i===sr||i===hr)&&a===Ks){M=Nr;var B=g&&L===k&&k.visualViewport?k.visualViewport.width:L[I];y-=B-r.width,y*=u?1:-1}}var H=Object.assign({position:c},f&&Vb),F=h===!0?Bg({x:y,y:w}):{x:y,y:w};if(y=F.x,w=F.y,u){var $;return Object.assign({},H,($={},$[C]=T?"0":"",$[M]=S?"0":"",$.transform=(k.devicePixelRatio||1)<=1?"translate("+y+"px, "+w+"px)":"translate3d("+y+"px, "+w+"px, 0)",$))}return Object.assign({},H,(e={},e[C]=T?w+"px":"",e[M]=S?y+"px":"",e.transform="",e))}function Hg(n){var e=n.state,t=n.options,r=t.gpuAcceleration,i=r===void 0?!0:r,a=t.adaptive,s=a===void 0?!0:a,c=t.roundOffsets,u=c===void 0?!0:c;if(0)var f;var h={placement:vi(e.placement),variation:Js(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:i,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,eo(Object.assign({},h,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:s,roundOffsets:u})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,eo(Object.assign({},h,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const id={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Hg,data:{}};function ad(n){var e=n.state;Object.keys(e.elements).forEach(function(t){var r=e.styles[t]||{},i=e.attributes[t]||{},a=e.elements[t];
vendor: 4,204 bytes, line 81
81!Wr(a)||!gi(a)||(Object.assign(a.style,r),Object.keys(i).forEach(function(s){var c=i[s];c===!1?a.removeAttribute(s):a.setAttribute(s,c===!0?"":c)}))})}function zg(n){var e=n.state,t={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,t.popper),e.styles=t,e.elements.arrow&&Object.assign(e.elements.arrow.style,t.arrow),function(){Object.keys(e.elements).forEach(function(r){var i=e.elements[r],a=e.attributes[r]||{},s=Object.keys(e.styles.hasOwnProperty(r)?e.styles[r]:t[r]),c=s.reduce(function(u,f){return u[f]="",u},{});!Wr(i)||!gi(i)||(Object.assign(i.style,c),Object.keys(a).forEach(function(u){i.removeAttribute(u)}))})}}const sd={name:"applyStyles",enabled:!0,phase:"write",fn:ad,effect:zg,requires:["computeStyles"]};function Yb(n,e,t){var r=vi(n),i=[pr,sr].indexOf(r)>=0?-1:1,a=typeof t=="function"?t(Object.assign({},e,{placement:n})):t,s=a[0],c=a[1];return s=s||0,c=(c||0)*i,[pr,Nr].indexOf(r)>=0?{x:c,y:s}:{x:s,y:c}}function Fg(n){var e=n.state,t=n.options,r=n.name,i=t.offset,a=i===void 0?[0,0]:i,s=Ku.reduce(function(h,g){return h[g]=Yb(g,e.rects,a),h},{}),c=s[e.placement],u=c.x,f=c.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=u,e.modifiersData.popperOffsets.y+=f),e.modifiersData[r]=s}const Vg={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Fg};var Yg={left:"right",right:"left",bottom:"top",top:"bottom"};function oc(n){return n.replace(/left|right|bottom|top/g,function(e){return Yg[e]})}var jg={start:"end",end:"start"};function od(n){return n.replace(/start|end/g,function(e){return jg[e]})}function Wg(n){var e=Rr(n),t=Qn(n),r=e.visualViewport,i=t.clientWidth,a=t.clientHeight,s=0,c=0;return r&&(i=r.width,a=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(s=r.offsetLeft,c=r.offsetTop)),{width:i,height:a,x:s+Ur(n),y:c}}function Ug(n){var e,t=Qn(n),r=Jo(n),i=(e=n.ownerDocument)==null?void 0:e.body,a=Oi(t.scrollWidth,t.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),s=Oi(t.scrollHeight,t.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),c=-r.scrollLeft+Ur(n),u=-r.scrollTop;return Mr(i||t).direction==="rtl"&&(c+=Oi(t.clientWidth,i?i.clientWidth:0)-a),{width:a,height:s,x:c,y:u}}function ld(n,e){var t=e.getRootNode&&e.getRootNode();if(n.contains(e))return!0;if(t&&Xs(t)){var r=e;do{if(r&&n.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function cd(n){return Object.assign({},n,{left:n.x,top:n.y,right:n.x+n.width,bottom:n.y+n.height})}function qg(n){var e=ki(n);return e.top=e.top+n.clientTop,e.left=e.left+n.clientLeft,e.bottom=e.top+n.clientHeight,e.right=e.left+n.clientWidth,e.width=n.clientWidth,e.height=n.clientHeight,e.x=e.left,e.y=e.top,e}function $g(n,e){return e===Eh?cd(Wg(n)):Ga(e)?qg(e):cd(Ug(Qn(n)))}function Oh(n){var e=ti(kn(n)),t=["absolute","fixed"].indexOf(Mr(n).position)>=0,r=t&&Wr(n)?Xa(n):n;return Ga(r)?e.filter(function(i){return Ga(i)&&ld(i,r)&&gi(i)!=="body"}):[]}function Gg(n,e,t){var r=e==="clippingParents"?Oh(n):[].concat(e),i=[].concat(r,[t]),a=i[0],s=i.reduce(function(c,u){var f=$g(n,u);return c.top=Oi(f.top,c.top),c.right=tc(f.right,c.right),c.bottom=tc(f.bottom,c.bottom),c.left=Oi(f.left,c.left),c},$g(n,a));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function kh(){return{top:0,right:0,bottom:0,left:0}}function ud(n){return Object.assign({},kh(),n)}function Lh(n,e){return e.reduce(function(t,r){return t[r]=n,t},{})}function tl(n,e){e===void 0&&(e={});var t=e,r=t.placement,i=r===void 0?n.placement:r,a=t.boundary,s=a===void 0?wh:a,c=t.rootBoundary,u=c===void 0?Eh:c,f=t.elementContext,h=f===void 0?el:f,g=t.altBoundary,v=g===void 0?!1:g,y=t.padding,_=y===void 0?0:y,w=ud(typeof _!="number"?_:Lh(_,ic)),x=h===el?Hb:el,S=n.rects.popper,T=n.elements[v?x:h],M=Gg(Ga(T)?T:T.contextElement||Qn(n.elements.popper),s,u),C=ki(n.elements.reference),k=Dh({reference:C,element:S,strategy:"absolute",placement:i}),L=cd(Object.assign({},S,k)),O=h===el?L:C,I={top:M.top-O.top+w.top,bottom:O.bottom-M.bottom+w.bottom,left:M.left-O.left+w.left,right:O.right-M.right+w.right},P=n.modifiersData.offset;if(h===el&&P){var B=P[i];
vendor: 12,992 bytes, lines 81-90
81Object.keys(I).forEach(function(H){var F=[Nr,hr].indexOf(H)>=0?1:-1,$=[sr,hr].indexOf(H)>=0?"y":"x";I[H]+=B[$]*F})}return I}function jb(n,e){e===void 0&&(e={});var t=e,r=t.placement,i=t.boundary,a=t.rootBoundary,s=t.padding,c=t.flipVariations,u=t.allowedAutoPlacements,f=u===void 0?Ku:u,h=Js(r),g=h?c?Qu:Qu.filter(function(_){return Js(_)===h}):ic,v=g.filter(function(_){return f.indexOf(_)>=0});v.length===0&&(v=g);var y=v.reduce(function(_,w){return _[w]=tl(n,{placement:w,boundary:i,rootBoundary:a,padding:s})[vi(w)],_},{});return Object.keys(y).sort(function(_,w){return y[_]-y[w]})}function Wb(n){if(vi(n)===Qa)return[];var e=oc(n);return[od(n),e,od(e)]}function Zg(n){var e=n.state,t=n.options,r=n.name;if(!e.modifiersData[r]._skip){for(var i=t.mainAxis,a=i===void 0?!0:i,s=t.altAxis,c=s===void 0?!0:s,u=t.fallbackPlacements,f=t.padding,h=t.boundary,g=t.rootBoundary,v=t.altBoundary,y=t.flipVariations,_=y===void 0?!0:y,w=t.allowedAutoPlacements,x=e.options.placement,S=vi(x),T=S===x,M=u||(T||!_?[oc(x)]:Wb(x)),C=[x].concat(M).reduce(function(qe,je){return qe.concat(vi(je)===Qa?jb(e,{placement:je,boundary:h,rootBoundary:g,padding:f,flipVariations:_,allowedAutoPlacements:w}):je)},[]),k=e.rects.reference,L=e.rects.popper,O=new Map,I=!0,P=C[0],B=0;B<C.length;B++){var H=C[B],F=vi(H),$=Js(H)===gn,V=[sr,hr].indexOf(F)>=0,W=V?"width":"height",ee=tl(e,{placement:H,boundary:h,rootBoundary:g,altBoundary:v,padding:f}),q=V?$?Nr:pr:$?hr:sr;k[W]>L[W]&&(q=oc(q));var Y=oc(q),ae=[];if(a&&ae.push(ee[F]<=0),c&&ae.push(ee[q]<=0,ee[Y]<=0),ae.every(function(qe){return qe})){P=H,I=!1;break}O.set(H,ae)}if(I)for(var ue=_?3:1,We=function(je){var ct=C.find(function(ht){var Ge=O.get(ht);if(Ge)return Ge.slice(0,je).every(function(Re){return Re})});if(ct)return P=ct,"break"},be=ue;be>0;be--){var _e=We(be);if(_e==="break")break}e.placement!==P&&(e.modifiersData[r]._skip=!0,e.placement=P,e.reset=!0)}}const lc={name:"flip",enabled:!0,phase:"main",fn:Zg,requiresIfExists:["offset"],data:{_skip:!1}};function Ah(n){return n==="x"?"y":"x"}function Ka(n,e,t){return Oi(n,tc(e,t))}function Xg(n,e,t){var r=Ka(n,e,t);return r>t?t:r}function Qg(n){var e=n.state,t=n.options,r=n.name,i=t.mainAxis,a=i===void 0?!0:i,s=t.altAxis,c=s===void 0?!1:s,u=t.boundary,f=t.rootBoundary,h=t.altBoundary,g=t.padding,v=t.tether,y=v===void 0?!0:v,_=t.tetherOffset,w=_===void 0?0:_,x=tl(e,{boundary:u,rootBoundary:f,padding:g,altBoundary:h}),S=vi(e.placement),T=Js(e.placement),M=!T,C=rd(S),k=Ah(C),L=e.modifiersData.popperOffsets,O=e.rects.reference,I=e.rects.popper,P=typeof w=="function"?w(Object.assign({},e.rects,{placement:e.placement})):w,B=typeof P=="number"?{mainAxis:P,altAxis:P}:Object.assign({mainAxis:0,altAxis:0},P),H=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,F={x:0,y:0};if(L){if(a){var $,V=C==="y"?sr:pr,W=C==="y"?hr:Nr,ee=C==="y"?"height":"width",q=L[C],Y=q+x[V],ae=q-x[W],ue=y?-I[ee]/2:0,We=T===gn?O[ee]:I[ee],be=T===gn?-I[ee]:-O[ee],_e=e.elements.arrow,qe=y&&_e?Ir(_e):{width:0,height:0},je=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:kh(),ct=je[V],ht=je[W],Ge=Ka(0,O[ee],qe[ee]),Re=M?O[ee]/2-ue-Ge-ct-B.mainAxis:We-Ge-ct-B.mainAxis,Ze=M?-O[ee]/2+ue+Ge+ht+B.mainAxis:be+Ge+ht+B.mainAxis,pe=e.elements.arrow&&Xa(e.elements.arrow),Ie=pe?C==="y"?pe.clientTop||0:pe.clientLeft||0:0,Ke=($=H?.[C])!=null?$:0,nt=q+Re-Ke-Ie,Ot=q+Ze-Ke,zt=Ka(y?tc(Y,nt):Y,q,y?Oi(ae,Ot):ae);L[C]=zt,F[C]=zt-q}if(c){var pt,Gt=C==="x"?sr:pr,Ft=C==="x"?hr:Nr,Nt=L[k],Tt=k==="y"?"height":"width",Ne=Nt+x[Gt],Ve=Nt-x[Ft],Oe=[sr,pr].indexOf(S)!==-1,Be=(pt=H?.[k])!=null?pt:0,Fe=Oe?Ne:Nt-O[Tt]-I[Tt]-Be+B.altAxis,rt=Oe?Nt+O[Tt]+I[Tt]-Be-B.altAxis:Ve,hn=y&&Oe?Xg(Fe,Nt,rt):Ka(y?Fe:Ne,Nt,y?rt:Ve);L[k]=hn,F[k]=hn-Nt}e.modifiersData[r]=F}}const cc={name:"preventOverflow",enabled:!0,phase:"main",fn:Qg,requiresIfExists:["offset"]};var Kg=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,ud(typeof e!="number"?e:Lh(e,ic))};function Rh(n){var e,t=n.state,r=n.name,i=n.options,a=t.elements.arrow,s=t.modifiersData.popperOffsets,c=vi(t.placement),u=rd(c),f=[pr,Nr].indexOf(c)>=0,h=f?"height":"width";if(!(!a||!s)){var g=Kg(i.padding,t),v=Ir(a),y=u==="y"?sr:pr,_=u==="y"?hr:Nr,w=t.rects.reference[h]+t.rects.reference[u]-s[u]-t.rects.popper[h],x=s[u]-t.rects.reference[u],S=Xa(a),T=S?u==="y"?S.clientHeight||0:S.clientWidth||0:0,M=w/2-x/2,C=g[y],k=T-v[h]-g[_],L=T/2-v[h]/2+M,O=Ka(C,L,k),I=u;t.modifiersData[r]=(e={},e[I]=O,e.centerOffset=O-L,e)}}function Jg(n){var e=n.state,t=n.options,r=t.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=e.elements.popper.querySelector(i),!i)||ld(e.elements.popper,i)&&(e.elements.arrow=i))}const Ih={name:"arrow",enabled:!0,phase:"main",fn:Rh,effect:Jg,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function dd(n,e,t){return t===void 0&&(t={x:0,y:0}),{top:n.top-e.height-t.y,right:n.right-e.width+t.x,bottom:n.bottom-e.height+t.y,left:n.left-e.width-t.x}}function Nh(n){return[sr,Nr,hr,pr].some(function(e){return n[e]>=0})}function ev(n){var e=n.state,t=n.name,r=e.rects.reference,i=e.rects.popper,a=e.modifiersData.preventOverflow,s=tl(e,{elementContext:"reference"}),c=tl(e,{altBoundary:!0}),u=dd(s,r),f=dd(c,i,a),h=Nh(u),g=Nh(f);e.modifiersData[t]={referenceClippingOffsets:u,popperEscapeOffsets:f,isReferenceHidden:h,hasPopperEscaped:g},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":h,"data-popper-escaped":g})}var tv=[Ig,Pg,id,sd,Vg,lc,cc,Ih,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:ev}],nv=Ag({defaultModifiers:tv}),Ub='<svg width="16" height="6" xmlns="http://www.w3.org/2000/svg"><path d="M0 6s1.796-.013 4.67-3.615C5.851.9 6.93.006 8 0c1.07-.006 2.148.887 3.343 2.385C14.233 6.005 16 6 16 6H0z"></svg>',fd="tippy-box",Ph="tippy-content",hd="tippy-backdrop",Bh="tippy-arrow",Hh="tippy-svg-arrow",Ja={passive:!0,capture:!0},pd=function(){return document.body};function Jn(n,e){return{}.hasOwnProperty.call(n,e)}function or(n,e,t){if(Array.isArray(n)){var r=n[e];return r??(Array.isArray(t)?t[e]:t)}return n}function md(n,e){var t={}.toString.call(n);return t.indexOf("[object")===0&&t.indexOf(e+"]")>-1}function zh(n,e){return typeof n=="function"?n.apply(void 0,e):n}function Fh(n,e){if(e===0)return n;var t;return function(r){clearTimeout(t),t=setTimeout(function(){n(r)},e)}}function gd(n,e){var t=Object.assign({},n);return e.forEach(function(r){delete t[r]}),t}function uc(n){return n.split(/\s+/).filter(Boolean)}function va(n){return[].concat(n)}function dc(n,e){n.indexOf(e)===-1&&n.push(e)}function rv(n){return n.filter(function(e,t){return n.indexOf(e)===t})}function iv(n){return n.split("-")[0]}function ya(n){return[].slice.call(n)}function vd(n){return Object.keys(n).reduce(function(e,t){return n[t]!==void 0&&(e[t]=n[t]),e},{})}function es(){return document.createElement("div")}function fc(n){return["Element","Fragment"].some(function(e){return md(n,e)})}function av(n){return md(n,"NodeList")}function hc(n){return md(n,"MouseEvent")}function yd(n){return!!(n&&n._tippy&&n._tippy.reference===n)}function Vh(n){return fc(n)?[n]:av(n)?ya(n):Array.isArray(n)?n:ya(document.querySelectorAll(n))}function bd(n,e){n.forEach(function(t){t&&(t.style.transitionDuration=e+"ms")})}function to(n,e){n.forEach(function(t){t&&t.setAttribute("data-state",e)})}function pc(n){var e,t=va(n),r=t[0];return r!=null&&(e=r.ownerDocument)!=null&&e.body?r.ownerDocument:document}function Yh(n,e){var t=e.clientX,r=e.clientY;return n.every(function(i){var a=i.popperRect,s=i.popperState,c=i.props,u=c.interactiveBorder,f=iv(s.placement),h=s.modifiersData.offset;if(!h)return!0;var g=f==="bottom"?h.top.y:0,v=f==="top"?h.bottom.y:0,y=f==="right"?h.left.x:0,_=f==="left"?h.right.x:0,w=a.top-r+g>u,x=r-a.bottom-v>u,S=a.left-t+y>u,T=t-a.right-_>u;return w||x||S||T})}function _d(n,e,t){var r=e+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(i){n[r](i,t)})}function wd(n,e){for(var t=e;t;){var r;if(n.contains(t))return!0;t=t.getRootNode==null||(r=t.getRootNode())==null?void 0:r.host}return!1}var Li={isTouch:!1},Zi=0;function jh(){Li.isTouch||(Li.isTouch=!0,window.performance&&document.addEventListener("mousemove",sv))}function sv(){var n=performance.now();n-Zi<20&&(Li.isTouch=!1,document.removeEventListener("mousemove",sv)),Zi=n}function ov(){var n=document.activeElement;if(yd(n)){var e=n._tippy;n.blur&&!e.state.isVisible&&n.blur()}}function ba(){document.addEventListener("touchstart",jh,Ja),window.addEventListener("blur",ov)}var Wh=typeof window<"u"&&typeof document<"u",lv=Wh?!!window.msCrypto:!1;function Uh(n){var e=n==="destroy"?"n already-":" ";return[n+"() was called on a"+e+"destroyed instance. This is a no-op but","indicates a potential memory leak."].join(" ")}function rl(n){var e=/[ \t]{2,}/g,t=/^[ \t]*/gm;return n.replace(e," ").replace(t,"").trim()}function Mn(n){return rl(`
82  %ctippy.js
83
84  %c`+rl(n)+`
85
86  %c\u{1F477}\u200D This is a development-only message. It will be removed in production.
87  `)}function cv(n){return[Mn(n),"color: #00C584; font-size: 1.3em; font-weight: bold;","line-height: 1.5","color: #a6a095;"]}var mc;function qb(){mc=new Set}function gc(n,e){if(n&&!mc.has(e)){var t;mc.add(e),(t=console).warn.apply(t,cv(e))}}function _a(n,e){if(n&&!mc.has(e)){var t;mc.add(e),(t=console).error.apply(t,cv(e))}}function $b(n){var e=!n,t=Object.prototype.toString.call(n)==="[object Object]"&&!n.addEventListener;_a(e,["tippy() was passed","`"+String(n)+"`","as its targets (first) argument. Valid types are: String, Element,","Element[], or NodeList."].join(" ")),_a(t,["tippy() was passed a plain object which is not supported as an argument","for virtual positioning. Use props.getReferenceClientRect instead."].join(" "))}var qh={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},vc={allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999},Nn=Object.assign({appendTo:pd,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},qh,vc),uv=Object.keys(Nn),$h=function(e){var t=Object.keys(e);t.forEach(function(r){Nn[r]=e[r]})};function Gh(n){var e=n.plugins||[],t=e.reduce(function(r,i){var a=i.name,s=i.defaultValue;if(a){var c;r[a]=n[a]!==void 0?n[a]:(c=Nn[a])!=null?c:s}return r},{});return Object.assign({},n,t)}function Zh(n,e){var t=e?Object.keys(Gh(Object.assign({},Nn,{plugins:e}))):uv,r=t.reduce(function(i,a){var s=(n.getAttribute("data-tippy-"+a)||"").trim();if(!s)return i;if(a==="content")i[a]=s;else try{i[a]=JSON.parse(s)}catch{i[a]=s}return i},{});return r}function Ed(n,e){var t=Object.assign({},e,{content:zh(e.content,[n])},e.ignoreAttributes?{}:Zh(n,e.plugins));return t.aria=Object.assign({},Nn.aria,t.aria),t.aria={expanded:t.aria.expanded==="auto"?e.interactive:t.aria.expanded,content:t.aria.content==="auto"?e.interactive?null:"describedby":t.aria.content},t}function Xh(n,e){n===void 0&&(n={}),e===void 0&&(e=[]);var t=Object.keys(n);t.forEach(function(r){var i=gd(Nn,Object.keys(qh)),a=!Jn(i,r);a&&(a=e.filter(function(s){return s.name===r}).length===0),gc(a,["`"+r+"`","is not a valid prop. You may have spelled it incorrectly, or if it's","a plugin, forgot to pass it in an array as props.plugins.",`
88
89`,`All props: https://atomiks.github.io/tippyjs/v6/all-props/
90`,"Plugins: https://atomiks.github.io/tippyjs/v6/plugins/"].join(" "))})}var dv=function(){return"innerHTML"};function Ai(n,e){n[dv()]=e}function Wn(n){var e=es();return n===!0?e.className=Bh:(e.className=Hh,fc(n)?e.appendChild(n):Ai(e,n)),e}function xd(n,e){fc(e.content)?(Ai(n,""),n.appendChild(e.content)):typeof e.content!="function"&&(e.allowHTML?Ai(n,e.content):n.textContent=e.content)}function yc(n){var e=n.firstElementChild,t=ya(e.children);return{box:e,content:t.find(function(r){return r.classList.contains(Ph)}),arrow:t.find(function(r){return r.classList.contains(Bh)||r.classList.contains(Hh)}),backdrop:t.find(function(r){return r.classList.contains(hd)})}}function lr(n){var e=es(),t=es();t.className=fd,t.setAttribute("data-state","hidden"),t.setAttribute("tabindex","-1");var r=es();r.className=Ph,r.setAttribute("data-state","hidden"),xd(r,n.props),e.appendChild(t),t.appendChild(r),i(n.props,n.props);function i(a,s){var c=yc(e),u=c.box,f=c.content,h=c.arrow;s.theme?u.setAttribute("data-theme",s.theme):u.removeAttribute("data-theme"),typeof s.animation=="str
90ing"?u.setAttribute("data-animation",s.animation):u.removeAttribute("data-animation"),s.inertia?u.setAttribute("data-inertia",""):u.removeAttribute("data-inertia"),u.style.maxWidth=typeof s.maxWidth=="number"?s.maxWidth+"px":s.maxWidth,s.role?u.setAttribute("role",s.role):u.removeAttribute("role"),(a.content!==s.content||a.allowHTML!==s.allowHTML)&&xd(f,n.props),s.arrow?h?a.arrow!==s.arrow&&(u.removeChild(h),u.appendChild(Wn(s.arrow))):u.appendChild(Wn(s.arrow)):h&&u.removeChild(h)}return{popper:e,onUpdate:i}}lr.$$tippy=!0;var Gb=1,bc=[],_c=[];function Ln(n,e){var t=Ed(n,Object.assign({},Nn,Gh(vd(e)))),r,i,a,s=!1,c=!1,u=!1,f=!1,h,g,v,y=[],_=Fh(nt,t.interactiveDebounce),w,x=Gb++,S=null,T=rv(t.plugins),M={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},C={id:x,reference:n,popper:es(),popperInstance:S,props:t,state:M,plugins:T,clearDelayTimeouts:Fe,setProps:rt,setContent:hn,show:En,hide:Zn,hideWithInteractivity:br,enable:Oe,disable:Be,unmount:li,destroy:Mf};if(!t.render)return C;var k=t.render(C),L=k.popper,O=k.onUpdate;L.setAttribute("data-tippy-root",""),L.id="tippy-"+C.id,C.popper=L,n._tippy=C,L._tippy=C;var I=T.map(function(xe){return xe.fn(C)}),P=n.hasAttribute("aria-expanded");return pe(),ue(),q(),Y("onCreate",[C]),t.showOnCreate&&Ne(),L.addEventListener("mouseenter",function(){C.props.interactive&&C.state.isVisible&&C.clearDelayTimeouts()}),L.addEventListener("mouseleave",function(){C.props.interactive&&C.props.trigger.indexOf("mouseenter")>=0&&V().addEventListener("mousemove",_)}),C;function B(){var xe=C.props.touch;return Array.isArray(xe)?xe:[xe,0]}function H(){return B()[0]==="hold"}function F(){var xe;return!!((xe=C.props.render)!=null&&xe.$$tippy)}function $(){return w||n}function V(){var xe=$().parentNode;return xe?pc(xe):document}function W(){return yc(L)}function ee(xe){return C.state.isMounted&&!C.state.isVisible||Li.isTouch||h&&h.type==="focus"?0:or(C.props.delay,xe?0:1,Nn.delay)}function q(xe){xe===void 0&&(xe=!1),L.style.pointerEvents=C.props.interactive&&!xe?"":"none",L.style.zIndex=""+C.props.zIndex}function Y(xe,ot,xt){if(xt===void 0&&(xt=!0),I.forEach(function(Yt){Yt[xe]&&Yt[xe].apply(Yt,ot)}),xt){var Vt;(Vt=C.props)[xe].apply(Vt,ot)}}function ae(){var xe=C.props.aria;if(xe.content){var ot="aria-"+xe.content,xt=L.id,Vt=va(C.props.triggerTarget||n);Vt.forEach(function(Yt){var Vr=Yt.getAttribute(ot);if(C.state.isVisible)Yt.setAttribute(ot,Vr?Vr+" "+xt:xt);else{var ci=Vr&&Vr.replace(xt,"").trim();ci?Yt.setAttribute(ot,ci):Yt.removeAttribute(ot)}})}}function ue(){if(!(P||!C.props.aria.expanded)){var xe=va(C.props.triggerTarget||n);xe.forEach(function(ot){C.props.interactive?ot.setAttribute("aria-expanded",C.state.isVisible&&ot===$()?"true":"false"):ot.removeAttribute("aria-expanded")})}}function We(){V().removeEventListener("mousemove",_),bc=bc.filter(function(xe){return xe!==_})}function be(xe){if(!(Li.isTouch&&(u||xe.type==="mousedown"))){var ot=xe.composedPath&&xe.composedPath()[0]||xe.target;if(!(C.props.interactive&&wd(L,ot))){if(va(C.props.triggerTarget||n).some(function(xt){return wd(xt,ot)})){if(Li.isTouch||C.state.isVisible&&C.props.trigger.indexOf("click")>=0)return}else Y("onClickOutside",[C,xe]);C.props.hideOnClick===!0&&(C.clearDelayTimeouts(),C.hide(),c=!0,setTimeout(function(){c=!1}),C.state.isMounted||ct())}}}function _e(){u=!0}function qe(){u=!1}function je(){var xe=V();xe.addEventListener("mousedown",be,!0),xe.addEventListener("touchend",be,Ja),xe.addEventListener("touchstart",qe,Ja),xe.addEventListener("touchmove",_e,Ja)}function ct(){var xe=V();xe.removeEventListener("mousedown",be,!0),xe.removeEventListener("touchend",be,Ja),xe.removeEventListener("touchstart",qe,Ja),xe.removeEventListener("touchmove",_e,Ja)}function ht(xe,ot){Re(xe,function(){!C.state.isVisible&&L.parentNode&&L.parentNode.contains(L)&&ot()})}function Ge(xe,ot){Re(xe,ot)}function Re(xe,ot){var xt=W().box;function Vt(Yt){Yt.target===xt&&(_d(xt,"remove",Vt),ot())}if(xe===0)return ot();_d(xt,"remove",g),_d(xt,"add",Vt),g=Vt}function Ze(xe,ot,xt){xt===void 0&&(xt=!1);var Vt=va(C.props.triggerTarget||n);Vt.forEach(function(Yt){Yt.addEventListener(xe,ot,xt),y.push({node:Yt,eventType:xe,handler:ot,options:xt})})}function pe(){H()&&(Ze("touchstart",Ke,{passive:!0}),Ze("touchend",Ot,{passive:!0})),uc(C.props.trigger).forEach(function(xe){if(xe!=="manual")switch(Ze(xe,Ke),xe){case"mouseenter":Ze("mouseleave",Ot);break;case"focus":Ze(lv?"focusout":"blur",zt);break;case"focusin":Ze("focusout",zt);break}})}
vendor: 4,129 bytes, line 90
90function Ie(){y.forEach(function(xe){var ot=xe.node,xt=xe.eventType,Vt=xe.handler,Yt=xe.options;ot.removeEventListener(xt,Vt,Yt)}),y=[]}function Ke(xe){var ot,xt=!1;if(!(!C.state.isEnabled||pt(xe)||c)){var Vt=((ot=h)==null?void 0:ot.type)==="focus";h=xe,w=xe.currentTarget,ue(),!C.state.isVisible&&hc(xe)&&bc.forEach(function(Yt){return Yt(xe)}),xe.type==="click"&&(C.props.trigger.indexOf("mouseenter")<0||s)&&C.props.hideOnClick!==!1&&C.state.isVisible?xt=!0:Ne(xe),xe.type==="click"&&(s=!xt),xt&&!Vt&&Ve(xe)}}function nt(xe){var ot=xe.target,xt=$().contains(ot)||L.contains(ot);if(!(xe.type==="mousemove"&&xt)){var Vt=Tt().concat(L).map(function(Yt){var Vr,ci=Yt._tippy,Oo=(Vr=ci.popperInstance)==null?void 0:Vr.state;return Oo?{popperRect:Yt.getBoundingClientRect(),popperState:Oo,props:t}:null}).filter(Boolean);Yh(Vt,xe)&&(We(),Ve(xe))}}function Ot(xe){var ot=pt(xe)||C.props.trigger.indexOf("click")>=0&&s;if(!ot){if(C.props.interactive){C.hideWithInteractivity(xe);return}Ve(xe)}}function zt(xe){C.props.trigger.indexOf("focusin")<0&&xe.target!==$()||C.props.interactive&&xe.relatedTarget&&L.contains(xe.relatedTarget)||Ve(xe)}function pt(xe){return Li.isTouch?H()!==xe.type.indexOf("touch")>=0:!1}function Gt(){Ft();var xe=C.props,ot=xe.popperOptions,xt=xe.placement,Vt=xe.offset,Yt=xe.getReferenceClientRect,Vr=xe.moveTransition,ci=F()?yc(L).arrow:null,Oo=Yt?{getBoundingClientRect:Yt,contextElement:Yt.contextElement||$()}:n,hD={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(Uy){var Df=Uy.state;if(F()){var mH=W(),Kw=mH.box;["placement","reference-hidden","escaped"].forEach(function(qy){qy==="placement"?Kw.setAttribute("data-placement",Df.placement):Df.attributes.popper["data-popper-"+qy]?Kw.setAttribute("data-"+qy,""):Kw.removeAttribute("data-"+qy)}),Df.attributes.popper={}}}},_u=[{name:"offset",options:{offset:Vt}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!Vr}},hD];F()&&ci&&_u.push({name:"arrow",options:{element:ci,padding:3}}),_u.push.apply(_u,ot?.modifiers||[]),C.popperInstance=nv(Oo,L,Object.assign({},ot,{placement:xt,onFirstUpdate:v,modifiers:_u}))}function Ft(){C.popperInstance&&(C.popperInstance.destroy(),C.popperInstance=null)}function Nt(){var xe=C.props.appendTo,ot,xt=$();C.props.interactive&&xe===pd||xe==="parent"?ot=xt.parentNode:ot=zh(xe,[xt]),ot.contains(L)||ot.appendChild(L),C.state.isMounted=!0,Gt()}function Tt(){return ya(L.querySelectorAll("[data-tippy-root]"))}function Ne(xe){C.clearDelayTimeouts(),xe&&Y("onTrigger",[C,xe]),je();var ot=ee(!0),xt=B(),Vt=xt[0],Yt=xt[1];Li.isTouch&&Vt==="hold"&&Yt&&(ot=Yt),ot?r=setTimeout(function(){C.show()},ot):C.show()}function Ve(xe){if(C.clearDelayTimeouts(),Y("onUntrigger",[C,xe]),!C.state.isVisible){ct();return}if(!(C.props.trigger.indexOf("mouseenter")>=0&&C.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(xe.type)>=0&&s)){var ot=ee(!1);ot?i=setTimeout(function(){C.state.isVisible&&C.hide()},ot):a=requestAnimationFrame(function(){C.hide()})}}function Oe(){C.state.isEnabled=!0}function Be(){C.hide(),C.state.isEnabled=!1}function Fe(){clearTimeout(r),clearTimeout(i),cancelAnimationFrame(a)}function rt(xe){if(!C.state.isDestroyed){Y("onBeforeUpdate",[C,xe]),Ie();var ot=C.props,xt=Ed(n,Object.assign({},ot,vd(xe),{ignoreAttributes:!0}));C.props=xt,pe(),ot.interactiveDebounce!==xt.interactiveDebounce&&(We(),_=Fh(nt,xt.interactiveDebounce)),ot.triggerTarget&&!xt.triggerTarget?va(ot.triggerTarget).forEach(function(Vt){Vt.removeAttribute("aria-expanded")}):xt.triggerTarget&&n.removeAttribute("aria-expanded"),ue(),q(),O&&O(ot,xt),C.popperInstance&&(Gt(),Tt().forEach(function(Vt){requestAnimationFrame(Vt._tippy.popperInstance.forceUpdate)})),Y("onAfterUpdate",[C,xe])}}function hn(xe){C.setProps({content:xe})}function En(){var xe=C.state.isVisible,ot=C.state.isDestroyed,xt=!C.state.isEnabled,Vt=Li.isTouch&&!C.props.touch,Yt=or(C.props.duration,0,Nn.duration);if(!(xe||ot||xt||Vt)&&!$().hasAttribute("disabled")&&(Y("onShow",[C],!1),C.props.onShow(C)!==!1)){if
90(C.state.isVisible=!0,F()&&(L.style.visibility="visible"),q(),je(),C.state.isMounted||(L.style.transition="none"),F()){var Vr=W(),ci=Vr.box,Oo=Vr.content;bd([ci,Oo],0)}v=function(){var _u;if(!(!C.state.isVisible||f)){if(f=!0,L.offsetHeight,L.style.transition=C.props.moveTransition,F()&&C.props.animation){var Qw=W(),Uy=Qw.box,Df=Qw.content;bd([Uy,Df],Yt),to([Uy,Df],"visible")}ae(),ue(),dc(_c,C),(_u=C.popperInstance)==null||_u.forceUpdate(),Y("onMount",[C]),C.props.animation&&F()&&Ge(Yt,function(){C.state.isShown=!0,Y("onShown",[C])})}},Nt()}}function Zn(){var xe=!C.state.isVisible,ot=C.state.isDestroyed,xt=!C.state.isEnabled,Vt=or(C.props.duration,1,Nn.duration);if(!(xe||ot||xt)&&(Y("onHide",[C],!1),C.props.onHide(C)!==!1)){if(C.state.isVisible=!1,C.state.isShown=!1,f=!1,s=!1,F()&&(L.style.visibility="hidden"),We(),ct(),q(!0),F()){var Yt=W(),Vr=Yt.box,ci=Yt.content;C.props.animation&&(bd([Vr,ci],Vt),to([Vr,ci],"hidden"))}ae(),ue(),C.props.animation?F()&&ht(Vt,C.unmount):C.unmount()}}function br(xe){V().addEventListener("mousemove",_),dc(bc,_),_(xe)}function li(){C.state.isVisible&&C.hide(),C.state.isMounted&&(Ft(),Tt().forEach(function(xe){xe._tippy.unmount()}),L.parentNode&&L.parentNode.removeChild(L),_c=_c.filter(function(xe){return xe!==C}),C.state.isMounted=!1,Y("onHidden",[C]))}function Mf(){C.state.isDestroyed||(C.clearDelayTimeouts(),C.unmount(),Ie(),delete n._tippy,C.state.isDestroyed=!0,Y("onDestroy",[C]))}}function Un(n,e){e===void 0&&(e={});var t=Nn.plugins.concat(e.plugins||[]);ba();var r=Object.assign({},e,{plugins:t}),i=Vh(n);if(0)var a,s;var c=i.reduce(function(u,f){var h=f&&Ln(f,r);return h&&u.push(h),u},[]);return fc(n)?c[0]:c}Un.defaultProps=Nn,Un.setDefaultProps=$h,Un.currentInput=Li;var ts=function(e){var t=e===void 0?{}:e,r=t.exclude,i=t.duration;_c.forEach(function(a){var s=!1;if(r&&(s=yd(r)?a.reference===r:a.popper===r.popper),!s){var c=a.props.duration;a.setProps({duration:i}),a.hide(),a.state.isDestroyed||a.setProps({duration:c})}})},fv=Object.assign({},sd,{effect:function(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow)}}),Zb=function(e,t){var r;t===void 0&&(t={});var i=e,a=[],s=[],c,u=t.overrides,f=[],h=!1;function g(){s=i.map(function(C){return va(C.props.triggerTarget||C.reference)}).reduce(function(C,k){return C.concat(k)},[])}function v(){a=i.map(function(C){return C.reference})}function y(C){i.forEach(function(k){C?k.enable():k.disable()})}function _(C){return i.map(function(k){var L=k.setProps;return k.setProps=function(O){L(O),k.reference===c&&C.setProps(O)},function(){k.setProps=L}})}function w(C,k){var L=s.indexOf(k);if(k!==c){c=k;var O=(u||[]).concat("content").reduce(function(I,P){return I[P]=i[L].props[P],I},{});C.setProps(Object.assign({},O,{getReferenceClientRect:typeof O.getReferenceClientRect=="function"?O.getReferenceClientRect:function(){var I;return(I=a[L])==null?void 0:I.getBoundingClientRect()}}))}}y(!1),v(),g();var x={fn:function(){return{onDestroy:function(){y(!0)},onHidden:function(){c=null},onClickOutside:function(L){L.props.showOnCreate&&!h&&(h=!0,c=null)},onShow:function(L){L.props.showOnCreate&&!h&&(h=!0,w(L,a[0]))},onTrigger:function(L,O){w(L,O.currentTarget)}}}},S=Un(es(),Object.assign({},gd(t,["overrides"]),{plugins:[x].concat(t.plugins||[]),triggerTarget:s,popperOptions:Object.assign({},t.popperOptions,{modifiers:[].concat(((r=t.popperOptions)==null?void 0:r.modifiers)||[],[fv])})})),T=S.show;S.show=function(C){if(T(),!c&&C==null)return w(S,a[0]);if(!(c&&C==null)){if(typeof C=="number")return a[C]&&w(S,a[C]);if(i.indexOf(C)>=0){var k=C.reference;return w(S,k)}if(a.indexOf(C)>=0)return w(S,C)}},S.showNext=function(){var C=a[0];if(!c)return S.show(0);var k=a.indexOf(c);S.show(a[k+1]||C)},S.showPrevious=function(){var C=a[a.length-1];if(!c)return S.show(C);var k=a.indexOf(c),L=a[k-1]||C;S.show(L)};var M=S.setProps;return S.setProps=function(C){u=C.overrides||u,M(C)},S.setInstances=function(C){y(!0),f.forEach(function(k){return k()}),i=C,y(!1),v(),g(),f=_(S),S.setProps({triggerTarget:s})},f=_(S),S}
90,hv={mouseover:"mouseenter",focusin:"focus",click:"click"};function EE(n,e){var t=[],r=[],i=!1,a=e.target,s=gd(e,["target"]),c=Object.assign({},s,{trigger:"manual",touch:!1}),u=Object.assign({touch:Nn.touch},s,{showOnCreate:!0}),f=Un(n,c),h=va(f);function g(x){if(!(!x.target||i)){var S=x.target.closest(a);if(S){var T=S.getAttribute("data-tippy-trigger")||e.trigger||Nn.trigger;if(!S._tippy&&!(x.type==="touchstart"&&typeof u.touch=="boolean")&&!(x.type!=="touchstart"&&T.indexOf(hv[x.type])<0)){var M=Un(S,u);M&&(r=r.concat(M))}}}}function v(x,S,T,M){M===void 0&&(M=!1),x.addEventListener(S,T,M),t.push({node:x,eventType:S,handler:T,options:M})}function y(x){var S=x.reference;v(S,"touchstart",g,Ja),v(S,"mouseover",g),v(S,"focusin",g),v(S,"click",g)}function _(){t.forEach(function(x){var S=x.node,T=x.eventType,M=x.handler,C=x.options;S.removeEventListener(T,M,C)}),t=[]}function w(x){var S=x.destroy,T=x.enable,M=x.disable;x.destroy=function(C){C===void 0&&(C=!0),C&&r.forEach(function(k){k.destroy()}),r=[],_(),S()},x.enable=function(){T(),r.forEach(function(C){return C.enable()}),i=!1},x.disable=function(){M(),r.forEach(function(C){return C.disable()}),i=!0},y(x)}return h.forEach(w),f}var Qh={name:"animateFill",defaultValue:!1,fn:function(e){var t;if(!((t=e.props.render)!=null&&t.$$tippy))return{};var r=yc(e.popper),i=r.box,a=r.content,s=e.props.animateFill?qr():null;return{onCreate:function(){s&&(i.insertBefore(s,i.firstElementChild),i.setAttribute("data-animatefill",""),i.style.overflow="hidden",e.setProps({arrow:!1,animation:"shift-away"}))},onMount:function(){if(s){var u=i.style.transitionDuration,f=Number(u.replace("ms",""));a.style.transitionDelay=Math.round(f/10)+"ms",s.style.transitionDuration=u,to([s],"visible")}},onShow:function(){s&&(s.style.transitionDuration="0ms")},onHide:function(){s&&to([s],"hidden")}}}};function qr(){var n=es();return n.className=hd,to([n],"hidden"),n}var ni={clientX:0,clientY:0},wc=[];function Br(n){var e=n.clientX,t=n.clientY;ni={clientX:e,clientY:t}}function pv(n){n.addEventListener("mousemove",Br)}function wa(n){n.removeEventListener("mousemove",Br)}var il={name:"followCursor",defaultValue:!1,fn:function(e){var t=e.reference,r=pc(e.props.triggerTarget||t),i=!1,a=!1,s=!0,c=e.props;function u(){return e.props.followCursor==="initial"&&e.state.isVisible}function f(){r.addEventListener("mousemove",v)}function h(){r.removeEventListener("mousemove",v)}function g(){i=!0,e.setProps({getReferenceClientRect:null}),i=!1}function v(w){var x=w.target?t.contains(w.target):!0,S=e.props.followCursor,T=w.clientX,M=w.clientY,C=t.getBoundingClientRect(),k=T-C.left,L=M-C.top;(x||!e.props.interactive)&&e.setProps({getReferenceClientRect:function(){var I=t.getBoundingClientRect(),P=T,B=M;S==="initial"&&(P=I.left+k,B=I.top+L);var H=S==="horizontal"?I.top:B,F=S==="vertical"?I.right:P,$=S==="horizontal"?I.bottom:B,V=S==="vertical"?I.left:P;return{width:F-V,height:$-H,top:H,right:F,bottom:$,left:V}}})}function y(){e.props.followCursor&&(wc.push({instance:e,doc:r}),pv(r))}function _(){wc=wc.filter(function(w){return w.instance!==e}),wc.filter(function(w){return w.doc===r}).length===0&&wa(r)}return{onCreate:y,onDestroy:_,onBeforeUpdate:function(){c=e.props},onAfterUpdate:function(x,S){var T=S.followCursor;i||T!==void 0&&c.followCursor!==T&&(_(),T?(y(),e.state.isMounted&&!a&&!u()&&f()):(h(),g()))},onMount:function(){e.props.followCursor&&!a&&(s&&(v(ni),s=!1),u()||f())},onTrigger:function(x,S){hc(S)&&(ni={clientX:S.clientX,clientY:S.clientY}),a=S.type==="focus"},onHidden:function(){e.props.followCursor&&(g(),h(),s=!0)}}}};function Ea(n,e){var t;return{popperOptions:Object.assign({},n.popperOptions,{modifiers:[].concat((((t=n.popperOptions)==null?void 0:t.modifiers)||[]).filter(function(r){var i=r.name;return i!==e.name}),[e])})}}var mv={name:"inlinePositioning",defaultValue:!1,fn:function(e){var t=e.reference;function r(){return!!e.props.inlinePositioning}var i,a=-1,s=!1,c=[],u={name:"tippyInlinePositioning",enabled:!0,phase:"afterWrite",fn:function(y){var _=y.state;r()&&(c.indexOf(_.placement)!==-1&&(c=[]),i!==_.placement&&c.indexOf(_.placement)===-1&&(c.push(_.placement),e.setProps({getReferenceClientRect:function(){return f(_.placement)}})),i=_.placement)}};function f(v){return Kh(iv(v),t.getBoundingClientRect(),ya(t.getClientRects()),a)}function h(v){s=!0,e.setProps(v),s=!1}function g(){s||h(Ea(e.props,u))}return{onCreate:g,onAfterUpdate:g,onTrigger:function(y,_){if(hc(_)){var w=ya(e.reference.getClientRects()),x=w.find(function(T){return T.left-2<=_.clientX&&T.right+2>=_.clientX&&T.top-2<=_.clientY&&T.bottom+2>=_.clientY}),S=w.indexOf(x);a=S>-1?S:a}},onHidden:function(){a=-1}}}};function Kh(n,e,t,r){if(t.length<2||n===null)return e;if(t.length===2&&r>=0&&t[0].left>t[1].right)return t[r]||e;switch(n){case"top":case"bottom":{var i=t[0],a=t[t.length-1],s=n==="top",c=i.top,u=a.bottom,f=s?i.left:a.left,h=s?i.right:a.right,g=h-f,v=u-c;return{top:c,bottom:u,left:f,right:h,width:g,height:v}}case"left":case"right":{var y=Math.min.apply(Math,t.map(function(L){return L.left})),_=Math.max.apply(Math,t.map(function(L){return L.right})),w=t.filter(function(L){return n==="left"?L.left===y:L.right===_}),x=w[0].top,S=w[w.length-1].bottom,T=y,M=_,C=M-T,k=S-x;return{top:x,bottom:S,left:T,right:M,width:C,height:k}}default:return e}}var Xi={name:"sticky",defaultValue:!1,fn:function(e){var t=e.reference,r=e.popper;function i(){return e.popperInstance?e.popperInstance.state.elements.reference:t}function a(f){return e.props.sticky===!0||e.props.sticky===f}var s=null,c=null;function u(){var f=a("reference")?i().getBoundingClientRect():null,h=a("popper")?r.getBoundingClientRect():null;(f&&Jh(s,f)||h&&Jh(c,h))&&e.popperInstance&&e.popperInstance.update(
90),s=f,c=h,e.state.isMounted&&requestAnimationFrame(u)}return{onMount:function(){e.props.sticky&&u()}}}};function Jh(n,e){return n&&e?n.top!==e.top||n.right!==e.right||n.bottom!==e.bottom||n.left!==e.left:!0}Un.setDefaultProps({render:lr});const ns=Un,Ec=n=>{ns(n,{allowHTML:!0,trigger:"click",interactive:!0,arrow:!0,theme:"kb"})},al=(n=>{const e=[...n.getElementsByClassName("js-appStoreItem")];let t;function r(i,a){if(!a||Object.keys(a).length===0)return`https://play.google.com/store/apps/details?id=${i}`;const c=new TextEncoder().encode(JSON.stringify(a)),u=btoa(String.fromCharCode.apply(null,c)),f=encodeURIComponent(`ndb_referrer=${encodeURIComponent(u)}`);return`https://play.google.com/store/apps/details?id=${i}&referrer=${f}`}e.forEach(i=>{i.addEventListener("click",a=>{const s=i.dataset.storetype,c=i.dataset.storeconfigjson,u={businessContextProductId:`${i.dataset.storeconfigbusinesscontextproductid}`,businessContextProductGroup:`${i.dataset.storeconfigbusinesscontextproductgroup}`,phone:`${i.dataset.storeconfigphonecode}`,caseId:`${i.dataset.storeconfigcaseidcode}`,kbCzSessionId:`${i.dataset.storekbczsessionid}`};if(s==="apple")a.preventDefault(),navigator.clipboard.writeText(c),window.location.href=i.querySelector("a").href;else if(s==="google"){a.preventDefault();const f=i.dataset.storepackage;t=r(f,u),window.location.href=t}})})}),gv=(n=>{let e;function t(r,i){if(!i||Object.keys(i).length===0)return`https://play.google.com/store/apps/details?id=${r}`;const s=new TextEncoder().encode(JSON.stringify(i)),c=btoa(String.fromCharCode.apply(null,s)),u=encodeURIComponent(`ndb_referrer=${encodeURIComponent(c)}`);return`https://play.google.com/store/apps/details?id=${r}&referrer=${u}`}window.addEventListener("load",()=>{if(n){const r=n.dataset.storetype,i=n.dataset.storeconfigjson,a=n.dataset.storelinkurl,s={businessContextProductId:`${n.dataset.storeconfigbusinesscontextproductid}`,businessContextProductGroup:`${n.dataset.storeconfigbusinesscontextproductgroup}`,phone:`${n.dataset.storeconfigphonecode}`,caseId:`${n.dataset.storeconfigcaseidcode}`,kbCzSessionId:`${n.dataset.storekbczsessionid}`};if(r==="apple")navigator.clipboard.writeText(i),window.location.href=a;else if(r==="google"){const c=n.dataset.storepackage;e=t(c,s),window.location.href=e}else(r==="link"||r==="huawei")&&(window.location.href=a)}})});/*!
91 * lightgallery | 2.7.2 | September 20th 2023
92 * http://www.lightgalleryjs.com/
93 * Copyright (c) 2020 Sachin Neravath;
94 * @license GPLv3
95 *//*! *****************************************************************************
96Copyright (c) Microsoft Corporation.
97
98Permission to use, copy, modify, and/or distribute this software for any
99purpose with or without fee is hereby granted.
100
101THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
102REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
103AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
104INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
105LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
106OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
107PERFORMANCE OF THIS SOFTWARE.
108***************************************************************************** */var xa=function(){return xa=Object.assign||function(e){for(var t,r=1,i=arguments.length;r<i;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},xa.apply(this,arguments)};function xc(){for(var n=0,e=0,t=arguments.length;e<t;e++)n+=arguments[e].length;for(var r=Array(n),i=0,e=0;e<t;e++)for(var a=arguments[e],s=0,c=a.length;s<c;s++,i++)r[i]=a[s];return r}var xn={afterAppendSlide:"lgAfterAppendSlide",init:"lgInit",hasVideo:"lgHasVideo",containerResize:"lgContainerResize",updateSlides:"lgUpdateSlides",afterAppendSubHtml:"lgAfterAppendSubHtml",beforeOpen:"lgBeforeOpen",afterOpen:"lgAfterOpen",slideItemLoad:"lgSlideItemLoad",beforeSlide:"lgBeforeSlide",afterSlide:"lgAfterSlide",posterClick:"lgPosterClick",dragStart:"lgDragStart",dragMove:"lgDragMove",dragEnd:"lgDragEnd",beforeNextSlide:"lgBeforeNextSlide",beforePrevSlide:"lgBeforePrevSlide",beforeClose:"lgBeforeClose",afterClose:"lgAfterClose",rotateLeft:"lgRotateLeft",rotateRight:"lgRotateRight",flipHorizontal:"lgFlipHorizontal",flipVertical:"lgFlipVertical",autoplay:"lgAutoplay",auto
108playStart:"lgAutoplayStart",autoplayStop:"lgAutoplayStop"},Cd={mode:"lg-slide",easing:"ease",speed:400,licenseKey:"0000-0000-000-0000",height:"100%",width:"100%",addClass:"",startClass:"lg-start-zoom",backdropDuration:300,container:"",startAnimationDuration:400,zoomFromOrigin:!0,hideBarsDelay:0,showBarsAfter:1e4,slideDelay:0,supportLegacyBrowser:!0,allowMediaOverlap:!1,videoMaxSize:"1280-720",loadYouTubePoster:!0,defaultCaptionHeight:0,ariaLabelledby:"",ariaDescribedby:"",resetScrollPosition:!0,hideScrollbar:!1,closable:!0,swipeToClose:!0,closeOnTap:!0,showCloseIcon:!0,showMaximizeIcon:!1,loop:!0,escKey:!0,keyPress:!0,trapFocus:!0,controls:!0,slideEndAnimation:!0,hideControlOnEnd:!1,mousewheel:!1,getCaptionFromTitleOrAlt:!0,appendSubHtmlTo:".lg-sub-html",subHtmlSelectorRelative:!1,preload:2,numberOfSlideItemsInDom:10,selector:"",selectWithin:"",nextHtml:"",prevHtml:"",index:0,iframeWidth:"100%",iframeHeight:"100%",iframeMaxWidth:"100%",iframeMaxHeight:"100%",download:!0,counter:!0,appendCounterTo:".lg-toolbar",swipeThreshold:50,enableSwipe:!0,enableDrag:!0,dynamic:!1,dynamicEl:[],extraProps:[],exThumbImage:"",isMobile:void 0,mobileSettings:{controls:!1,showCloseIcon:!1,download:!1},plugins:[],strings:{closeGallery:"Close gallery",toggleMaximize:"Toggle maximize",previousSlide:"Previous slide",nextSlide:"Next slide",download:"Download",playVideo:"Play video",mediaLoadingFailed:"Oops... Failed to load content..."}};function vv(){(function(){if(typeof window.CustomEvent=="function")return!1;function n(e,t){t=t||{bubbles:!1,cancelable:!1,detail:null};var r=document.createEvent("CustomEvent");return r.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),r}window.CustomEvent=n})(),(function(){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector)})()}var yv=(function(){function n(e){return this.cssVenderPrefixes=["TransitionDuration","TransitionTimingFunction","Transform","Transition"],this.selector=this._getSelector(e),this.firstElement=this._getFirstEl(),this}return n.generateUUID=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=Math.random()*16|0,r=e=="x"?t:t&3|8;return r.toString(16)})},n.prototype._getSelector=function(e,t){if(t===void 0&&(t=document),typeof e!="string")return e;t=t||document;var r=e.substring(0,1);return r==="#"?t.querySelector(e):t.querySelectorAll(e)},n.prototype._each=function(e){return this.selector?(this.selector.length!==void 0?[].forEach.call(this.selector,e):e(this.selector,0),this):this},n.prototype._setCssVendorPrefix=function(e,t,r){var i=t.replace(/-([a-z])/gi,function(a,s){return s.toUpperCase()});this.cssVenderPrefixes.indexOf(i)!==-1?(e.style[i.charAt(0).toLowerCase()+i.slice(1)]=r,e.style["webkit"+i]=r,e.style["moz"+i]=r,e.style["ms"+i]=r,e.style["o"+i]=r):e.style[i]=r},n.prototype._getFirstEl=function(){return this.selector&&this.selector.length!==void 0?this.selector[0]:this.selector},n.prototype.isEventMatched=function(e,t){var r=t.split(".");return e.split(".").filter(function(i){return i}).every(function(i){return r.indexOf(i)!==-1})},n.prototype.attr=function(e,t){return t===void 0?this.firstElement?this.firstElement.getAttribute(e):"":(this._each(function(r){r.setAttribute(e,t)}),this)},n.prototype.find=function(e){return _t(this._getSelector(e,this.selector))},n.prototype.first=function(){return this.selector&&this.selector.length!==void 0?_t(this.selector[0]):_t(this.selector)},n.prototype.eq=function(e){return _t(this.selector[e])},n.prototype.parent=function(){return _t(this.selector.parentElement)},n.prototype.get=function(){return this._getFirstEl()},n.prototype.removeAttr=function(e){var t=e.split(" ");return this._each(function(r){t.forEach(function(i){return r.removeAttribute(i)})}),this},n.prototype.wrap=function(e){if(!this.firstElement)return this;var t=document.createElement("div");return t.className=e,this.firstElement.parentNode.insertBefore(t,this.firstElement),this.firstElement.parentNode.removeChild(this.firstElement),t.appendChild(this.firstElement),this},n.prototype.addClass=function(e){return e===void 0&&(e=""),this._each(function(t){e.split(" ").forEach(function(r){r&&t.classList.add(r)})}),this},n.prototype.removeClass=function(e){return this._each(function(t){e.split(" ").forEach(function(r){r&&t.classList.remove(r)})}),this},n.prototype.hasClass=function(e){return this.firstElement?this.firstElement.classList.contains(e):!1}
108,n.prototype.hasAttribute=function(e){return this.firstElement?this.firstElement.hasAttribute(e):!1},n.prototype.toggleClass=function(e){return this.firstElement?(this.hasClass(e)?this.removeClass(e):this.addClass(e),this):this},n.prototype.css=function(e,t){var r=this;return this._each(function(i){r._setCssVendorPrefix(i,e,t)}),this},n.prototype.on=function(e,t){var r=this;return this.selector?(e.split(" ").forEach(function(i){Array.isArray(n.eventListeners[i])||(n.eventListeners[i]=[]),n.eventListeners[i].push(t),r.selector.addEventListener(i.split(".")[0],t)}),this):this},n.prototype.once=function(e,t){var r=this;return this.on(e,function(){r.off(e),t(e)}),this},n.prototype.off=function(e){var t=this;return this.selector?(Object.keys(n.eventListeners).forEach(function(r){t.isEventMatched(e,r)&&(n.eventListeners[r].forEach(function(i){t.selector.removeEventListener(r.split(".")[0],i)}),n.eventListeners[r]=[])}),this):this},n.prototype.trigger=function(e,t){if(!this.firstElement)return this;var r=new CustomEvent(e.split(".")[0],{detail:t||null});return this.firstElement.dispatchEvent(r),this},n.prototype.load=function(e){var t=this;return fetch(e).then(function(r){return r.text()}).then(function(r){t.selector.innerHTML=r}),this},n.prototype.html=function(e){return e===void 0?this.firstElement?this.firstElement.innerHTML:"":(this._each(function(t){t.innerHTML=e}),this)},n.prototype.append=function(e){return this._each(function(t){typeof e=="string"?t.insertAdjacentHTML("beforeend",e):t.appendChild(e)}),this},n.prototype.prepend=function(e){return this._each(function(t){t.insertAdjacentHTML("afterbegin",e)}),this},n.prototype.remove=function(){return this._each(function(e){e.parentNode.removeChild(e)}),this},n.prototype.empty=function(){return this._each(function(e){e.innerHTML=""}),this},n.prototype.scrollTop=function(e){return e!==void 0?(document.body.scrollTop=e,document.documentElement.scrollTop=e,this):window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0},n.prototype.scrollLeft=function(e){return e!==void 0?(document.body.scrollLeft=e,document.documentElement.scrollLeft=e,this):window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0},n.prototype.offset=function(){if(!this.firstElement)return{left:0,top:0};var e=this.firstElement.getBoundingClientRect(),t=_t("body").style().marginLeft;return{left:e.left-parseFloat(t)+this.scrollLeft(),top:e.top+this.scrollTop()}},n.prototype.style=function(){return this.firstElement?this.firstElement.currentStyle||window.getComputedStyle(this.firstElement):{}},n.prototype.width=function(){var e=this.style();return this.firstElement.clientWidth-parseFloat(e.paddingLeft)-parseFloat(e.paddingRight)},n.prototype.height=function(){var e=this.style();return this.firstElement.clientHeight-parseFloat(e.paddingTop)-parseFloat(e.paddingBottom)},n.eventListeners={},n})();function _t(n){return vv(),new yv(n)}var en=["src","sources","subHtml","subHtmlUrl","html","video","poster","slideName","responsive","srcset","sizes","iframe","downloadUrl","download","width","facebookShareUrl","tweetText","iframeTitle","twitterShareUrl","pinterestShareUrl","pinterestText","fbHtml","disqusIdentifier","disqusUrl"];function vn(n){return n==="href"?"src":(n=n.replace("data-",""),n=n.charAt(0).toLowerCase()+n.slice(1),n=n.replace(/-([a-z])/g,function(e){return e[1].toUpperCase()}),n)}var vt={getSize:function(n,e,t,r){t===void 0&&(t=0);var i=_t(n),a=i.attr("data-lg-size")||r;if(a){var s=a.split(",");if(s[1])for(var c=window.innerWidth,u=0;u<s.length;u++){var f=s[u],h=parseInt(f.split("-")[2],10);if(h>c){a=f;break}u===s.length-1&&(a=f)}var g=a.split("-"),v=parseInt(g[0],10),y=parseInt(g[1],10),_=e.width(),w=e.height()-t,x=Math.min(_,v),S=Math.min(w,y),T=Math.min(x/v,S/y);return{width:v*T,height:y*T}}},getTransform:function(n,e,t,r,i){if(i){var a=_t(n).find("img").first();if(a.get()){var s=e.get().getBoundingClientRect(),c=s.width,u=e.height()-(t+r),f=a.width(),h=a.height(),g=a.style(),v=(c-f)/2-a.offset().left+(parseFloat(g.paddingLeft)||0)+(parseFloat(g.borderLeft)||0)+_t(window).scrollLeft()+s.left,y=(u-h)/2-a.offset().top+(parseFloat(g.paddingTop)||0)+(parseFloat(g.borderTop)||0)+_t(window).scrollTop()+t,_=f/i.width,w=h/i.height,x="translate3d("+(v*=-1)+"px, "+(y*=-1)+"px, 0) scale3d("+_+", "+w+", 1)";return x}}},getIframeMarkup:function(n,e,t,r,i,a){var s=a?'title="'+a+'"':"";return'<div class="lg-video-cont lg-has-iframe" style="width:'+n+"; max-width:"+t+"; height: "+e+"; max-height:"+r+`">
109                    <iframe class="lg-object" frameborder="0" `+s+' src="'+i+`"  allowfullscreen="true"></iframe>
110                </div>`},getImgMarkup:function(n,e,t,r,i,a){var s=r?'srcset="'+r+'"':"",c=i?'sizes="'+i+'"':"",u="<img "+t+" "+s+"  "+c+' class="lg-object lg-image" data-index="'+n+'" src="'+e+'" />',f="";
110if(a){var h=typeof a=="string"?JSON.parse(a):a;f=h.map(function(g){var v="";return Object.keys(g).forEach(function(y){v+=" "+y+'="'+g[y]+'"'}),"<source "+v+"></source>"})}return""+f+u},getResponsiveSrc:function(n){for(var e=[],t=[],r="",i=0;i<n.length;i++){var a=n[i].split(" ");a[0]===""&&a.splice(0,1),t.push(a[0]),e.push(a[1])}for(var s=window.innerWidth,c=0;c<e.length;c++)if(parseInt(e[c],10)>s){r=t[c];break}return r},isImageLoaded:function(n){return!(!n||!n.complete||n.naturalWidth===0)},getVideoPosterMarkup:function(n,e,t,r,i){var a="";return i&&i.youtube?a="lg-has-youtube":i&&i.vimeo?a="lg-has-vimeo":a="lg-has-html5",'<div class="lg-video-cont '+a+'" style="'+t+`">
111                <div class="lg-video-play-button">
112                <svg
113                    viewBox="0 0 20 20"
114                    preserveAspectRatio="xMidYMid"
115                    focusable="false"
116                    aria-labelledby="`+r+`"
117                    role="img"
118                    class="lg-video-play-icon"
119                >
120                    <title>`+r+`</title>
121                    <polygon class="lg-video-play-icon-inner" points="1,0 20,10 1,20"></polygon>
122                </svg>
123                <svg class="lg-video-play-icon-bg" viewBox="0 0 50 50" focusable="false">
124                    <circle cx="50%" cy="50%" r="20"></circle></svg>
125                <svg class="lg-video-play-icon-circle" viewBox="0 0 50 50" focusable="false">
126                    <circle cx="50%" cy="50%" r="20"></circle>
127                </svg>
128            </div>
129            `+(e||"")+`
130            <img class="lg-object lg-video-poster" src="`+n+`" />
131        </div>`},getFocusableElements:function(n){var e=n.querySelectorAll('a[href]:not([disabled]), button:not([disabled]), textarea:not([disabled]), input[type="text"]:not([disabled]), input[type="radio"]:not([disabled]), input[type="checkbox"]:not([disabled]), select:not([disabled])'),t=[].filter.call(e,function(r){var i=window.getComputedStyle(r);return i.display!=="none"&&i.visibility!=="hidden"});return t},getDynamicOptions:function(n,e,t,r){var i=[],a=xc(en,e);return[].forEach.call(n,function(s){for(var c={},u=0;u<s.attributes.length;u++){var f=s.attributes[u];if(f.specified){var h=vn(f.name),g="";a.indexOf(h)>-1&&(g=h),g&&(c[g]=f.value)}}var v=_t(s),y=v.find("img").first().attr("alt"),_=v.attr("title"),w=r?v.attr(r):v.find("img").first().attr("src");c.thumb=w,t&&!c.subHtml&&(c.subHtml=_||y||""),c.alt=y||_||"",i.push(c)}),i},isMobile:function(){return/iPhone|iPad|iPod|Android/i.test(navigator.userAgent)},isVideo:function(n,e,t){if(!n){if(e)return{html5:!0};console.error("lightGallery :- data-src is not provided on slide item "+(t+1)+". Please make sure the selector property is properly configured. More info - https://www.lightgalleryjs.com/demos/html-markup/");return}var r=n.match(/\/\/(?:www\.)?youtu(?:\.be|be\.com|be-nocookie\.com)\/(?:watch\?v=|embed\/)?([a-z0-9\-\_\%]+)([\&|?][\S]*)*/i),i=n.match(/\/\/(?:www\.)?(?:player\.)?vimeo.com\/(?:video\/)?([0-9a-z\-_]+)(.*)?/i),a=n.match(/https?:\/\/(.+)?(wistia\.com|wi\.st)\/(medias|embed)\/([0-9a-z\-_]+)(.*)/);if(r)return{youtube:r};if(i)return{vimeo:i};if(a)return{wistia:a}}},Ht=0,ln=(function(){function n(e,t){if(this.lgOpened=!1,this.index=0,this.plugins=[],this.lGalleryOn=!1,this.lgBusy=!1,this.currentItemsInDom=[],this.prevScrollTop=0,this.bodyPaddingRight=0,this.isDummyImageRemoved=!1,this.dragOrSwipeEnabled=!1,this.mediaContainerPosition={top:0,bottom:0},!e)return this;if(Ht++,this.lgId=Ht,this.el=e,this.LGel=_t(e),this.generateSettings(t),this.buildModules(),this.settings.dynamic&&this.settings.dynamicEl!==void 0&&!Array.isArray(this.settings.dynamicEl))throw"When using dynamic mode, you must also define dynamicEl as an Array.";return this.galleryItems=this.getItems(),this.normalizeSettings(),this.init(),this.validateLicense(),this}return n.prototype.generateSettings=function(e){if(this.settings=xa(xa({},Cd),e),this.settings.isMobile&&typeof this.settings.isMobile=="function"?this.settings.isMobile():vt.isMobile()){var t=xa(xa({},this.settings.mobileSettings),this.settings.mobileSettings);this.settings=xa(xa({},this.settings),t)}},n.prototype.normalizeSettings=function(){this.settings.slideEndAnimation&&(this.settings.hideControlOnEnd=!1),this.settings.closable||(this.settings.swipeToClose
131=!1),this.zoomFromOrigin=this.settings.zoomFromOrigin,this.settings.dynamic&&(this.zoomFromOrigin=!1),this.settings.container||(this.settings.container=document.body),this.settings.preload=Math.min(this.settings.preload,this.galleryItems.length)},n.prototype.init=function(){var e=this;this.addSlideVideoInfo(this.galleryItems),this.buildStructure(),this.LGel.trigger(xn.init,{instance:this}),this.settings.keyPress&&this.keyPress(),setTimeout(function(){e.enableDrag(),e.enableSwipe(),e.triggerPosterClick()},50),this.arrow(),this.settings.mousewheel&&this.mousewheel(),this.settings.dynamic||this.openGalleryOnItemClick()},n.prototype.openGalleryOnItemClick=function(){for(var e=this,t=function(a){var s=r.items[a],c=_t(s),u=yv.generateUUID();c.attr("data-lg-id",u).on("click.lgcustom-item-"+u,function(f){f.preventDefault();var h=e.settings.index||a;e.openGallery(h,s)})},r=this,i=0;i<this.items.length;i++)t(i)},n.prototype.buildModules=function(){var e=this;this.settings.plugins.forEach(function(t){e.plugins.push(new t(e,_t))})},n.prototype.validateLicense=function(){this.settings.licenseKey?this.settings.licenseKey==="0000-0000-000-0000"&&console.warn("lightGallery: "+this.settings.licenseKey+" license key is not valid for production use"):console.error("Please provide a valid license key")},n.prototype.getSlideItem=function(e){return _t(this.getSlideItemId(e))},n.prototype.getSlideItemId=function(e){return"#lg-item-"+this.lgId+"-"+e},n.prototype.getIdName=function(e){return e+"-"+this.lgId},n.prototype.getElementById=function(e){return _t("#"+this.getIdName(e))},n.prototype.manageSingleSlideClassName=function(){this.galleryItems.length<2?this.outer.addClass("lg-single-item"):this.outer.removeClass("lg-single-item")},n.prototype.buildStructure=function(){var e=this,t=this.$container&&this.$container.get();if(!t){var r="",i="";this.settings.controls&&(r='<button type="button" id="'+this.getIdName("lg-prev")+'" aria-label="'+this.settings.strings.previousSlide+'" class="lg-prev lg-icon"> '+this.settings.prevHtml+` </button>
132                <button type="button" id="`+this.getIdName("lg-next")+'" aria-label="'+this.settings.strings.nextSlide+'" class="lg-next lg-icon"> '+this.settings.nextHtml+" </button>"),this.settings.appendSubHtmlTo!==".lg-item"&&(i='<div class="lg-sub-html" role="status" aria-live="polite"></div>');var a="";this.settings.allowMediaOverlap&&(a+="lg-media-overlap ");var s=this.settings.ariaLabelledby?'aria-labelledby="'+this.settings.ariaLabelledby+'"':"",c=this.settings.ariaDescribedby?'aria-describedby="'+this.settings.ariaDescribedby+'"':"",u="lg-container "+this.settings.addClass+" "+(document.body!==this.settings.container?"lg-inline":""),f=this.settings.closable&&this.settings.showCloseIcon?'<button type="button" aria-label="'+this.settings.strings.closeGallery+'" id="'+this.getIdName("lg-close")+'" class="lg-close lg-icon"></button>':"",h=this.settings.showMaximizeIcon?'<button type="button" aria-label="'+this.settings.strings.toggleMaximize+'" id="'+this.getIdName("lg-maximize")+'" class="lg-maximize lg-icon"></button>':"",g=`
133        <div class="`+u+'" id="'+this.getIdName("lg-container")+'" tabindex="-1" aria-modal="true" '+s+" "+c+` role="dialog"
134        >
135            <div id="`+this.getIdName("lg-backdrop")+`" class="lg-backdrop"></div>
136
137            <div id="`+this.getIdName("lg-outer")+'" class="lg-outer lg-use-css3 lg-css3 lg-hide-items '+a+` ">
138
139              <div id="`+this.getIdName("lg-content")+`" class="lg-content">
140                <div id="`+this.getIdName("lg-inner")+`" class="lg-inner">
141                </div>
142                `+r+`
143              </div>
144                <div id="`+this.getIdName("lg-toolbar")+`" class="lg-toolbar lg-group">
145                    `+h+`
146                    `+f+`
147                    </div>
148                    `+(this.settings.appendSubHtmlTo===".lg-outer"?i:"")+`
149                <div id="`+this.getIdName("lg-components")+`" class="lg-components">
150                    `+(this.settings.appendSubHtmlTo===".lg-sub-html"?i:"")+`
151                </div>
152            </div>
153        </div>
154        `;_t(this.settings.container).append(g),document.body!==this.settings.container&&_t(this.settings.container).css("position","relative"),this.outer=this.getElementById("lg-outer"),this.$lgComponents=this.getElementById("lg-components"),this.$backdrop=this.getElementById("lg-backdrop"),this.$container=this.getElementById("lg-container"),this.$inner=this.getElementById("lg-inner"),this.$content=this.getElementById("lg-content"),this.$toolbar=this.getElementById("lg-toolbar"),this.$backdrop.css("transition-duration",this.settings.backdropDuration+"ms");var v=this.settings.mode+" ";this.manageSingleSlideClassName(),this.settings.enableDrag&&(v+="lg-grab "),this.outer.addClass(v),this.$inner.css("transition-timing-function",this.settings.easing),this.$inner.css("transition-duration",this.settings.speed+"ms"),this.settings.download&&this.$toolbar.append('<a id="'+this.getIdName("lg-download")+'" target="_blank" rel="noopener" aria-label="'+this.settings.strings.download+'" download class="lg-download lg-icon"></a>'),this.counter(),_t(window).on("resize.lg.global"+this.lgId+" orientationchange.lg.global"+this.lgId,function(){e.refreshOnResize()}),this.hideBars(),this.manageCloseGallery(),this.toggleMaximize(),this.initModules()}},n.prototype.refreshOnResize=function(){if(this.lgOpened){var e=this.galleryItems[this.index],t=e.__slideVideoInfo;this.mediaContainerPosition=this.getMediaContainerPosition();var r=this.mediaContainerPosition,i=r.top,a=r.bottom;if(this.currentImageSize=vt.getSize(this.items[this.index],this.outer,i+a,t&&this.settings.videoMaxSize),t&&this.resizeVideoSlide(this.index,this.currentImageSize),this.zoomFromOrigin&&!this.isDummyImageRemoved){var s=this.getDummyImgStyles(this.currentImageSize);this.outer.find(".lg-current .lg-dummy-img").first().attr("style",s)}this.LGel.trigger(xn.containerResize)}},n.prototype.resizeVideoSlide=function(e,t){var r=this.getVideoContStyle(t),i=this.getSlideItem(e);i.find(".lg-video-cont").attr("style",r)},n.prototype.updateSlides=function(e,t){if(this.index>e.length-1&&(this.index=e.length-1),e.length===1&&(this.index=0),!e.length){this.closeGallery();return}var r=this.galleryItems[t].src;this.galleryItems=e,this.updateControls(),this.$inner.empty(),this.currentItemsInDom=[];var i=0;this.galleryItems.some(function(a,s){return a.src===r?(i=s,!0):!1}),this.currentItemsInDom=this.organizeSlideItems(i,-1),this.loadContent(i,!0),this.get
154SlideItem(i).addClass("lg-current"),this.index=i,this.updateCurrentCounter(i),this.LGel.trigger(xn.updateSlides)},n.prototype.getItems=function(){if(this.items=[],this.settings.dynamic)return this.settings.dynamicEl||[];if(this.settings.selector==="this")this.items.push(this.el);else if(this.settings.selector)if(typeof this.settings.selector=="string")if(this.settings.selectWithin){var e=_t(this.settings.selectWithin);this.items=e.find(this.settings.selector).get()}else this.items=this.el.querySelectorAll(this.settings.selector);else this.items=this.settings.selector;else this.items=this.el.children;return vt.getDynamicOptions(this.items,this.settings.extraProps,this.settings.getCaptionFromTitleOrAlt,this.settings.exThumbImage)},n.prototype.shouldHideScrollbar=function(){return this.settings.hideScrollbar&&document.body===this.settings.container},n.prototype.hideScrollbar=function(){if(this.shouldHideScrollbar()){this.bodyPaddingRight=parseFloat(_t("body").style().paddingRight);var e=document.documentElement.getBoundingClientRect(),t=window.innerWidth-e.width;_t(document.body).css("padding-right",t+this.bodyPaddingRight+"px"),_t(document.body).addClass("lg-overlay-open")}},n.prototype.resetScrollBar=function(){this.shouldHideScrollbar()&&(_t(document.body).css("padding-right",this.bodyPaddingRight+"px"),_t(document.body).removeClass("lg-overlay-open"))},n.prototype.openGallery=function(e,t){var r=this;if(e===void 0&&(e=this.settings.index),!this.lgOpened){this.lgOpened=!0,this.outer.removeClass("lg-hide-items"),this.hideScrollbar(),this.$container.addClass("lg-show");var i=this.getItemsToBeInsertedToDom(e,e);this.currentItemsInDom=i;var a="";i.forEach(function(v){a=a+('<div id="'+v+'" class="lg-item"></div>')}),this.$inner.append(a),this.addHtml(e);var s="";this.mediaContainerPosition=this.getMediaContainerPosition();var c=this.mediaContainerPosition,u=c.top,f=c.bottom;this.settings.allowMediaOverlap||this.setMediaContainerPosition(u,f);var h=this.galleryItems[e].__slideVideoInfo;this.zoomFromOrigin&&t&&(this.currentImageSize=vt.getSize(t,this.outer,u+f,h&&this.settings.videoMaxSize),s=vt.getTransform(t,this.outer,u,f,this.currentImageSize)),(!this.zoomFromOrigin||!s)&&(this.outer.addClass(this.settings.startClass),this.getSlideItem(e).removeClass("lg-complete"));var g=this.settings.zoomFromOrigin?100:this.settings.backdropDuration;setTimeout(function(){r.outer.addClass("lg-components-open")},g),this.index=e,this.LGel.trigger(xn.beforeOpen),this.getSlideItem(e).addClass("lg-current"),this.lGalleryOn=!1,this.prevScrollTop=_t(window).scrollTop(),setTimeout(function(){if(r.zoomFromOrigin&&s){var v=r.getSlideItem(e);v.css("transform",s),setTimeout(function(){v.addClass("lg-start-progress lg-start-end-progress").css("transition-duration",r.settings.startAnimationDuration+"ms"),r.outer.addClass("lg-zoom-from-image")}),setTimeout(function(){v.css("transform","translate3d(0, 0, 0)")},100)}setTimeout(function(){r.$backdrop.addClass("in"),r.$container.addClass("lg-show-in")},10),setTimeout(function(){r.settings.trapFocus&&document.body===r.settings.container&&r.trapFocus()},r.settings.backdropDuration+50),(!r.zoomFromOrigin||!s)&&setTimeout(function(){r.outer.addClass("lg-visible")},r.settings.backdropDuration),r.slide(e,!1,!1,!1),r.LGel.trigger(xn.afterOpen)}),document.body===this.settings.container&&_t("html").addClass("lg-on")}},n.prototype.getMediaContainerPosition=function(){if(this.settings.allowMediaOverlap)return{top:0,bottom:0};var e=this.$toolbar.get().clientHeight||0,t=this.outer.find(".lg-components .lg-sub-html").get(),r=this.settings.defaultCaptionHeight||t&&t.clientHeight||0,i=this.outer.find(".lg-thumb-outer").get(),a=i?i.clientHeight:0,s=a+r;return{top:e,bottom:s}},n.prototype.setMediaContainerPosition=function(e,t){e===void 0&&(e=0),t===void 0&&(t=0),this.$content.css("top",e+"px").css("bottom",t+"px")},n.prototype.hideBars=function(){var e=this;setTimeout(function(){e.outer.removeClass("lg-hide-items"),e.settings.hideBarsDelay>0&&(e.outer.on("mousemove.lg click.lg touchstart.lg",function(){e.outer.removeClass("lg-hide-items"),clearTimeout(e.hideBarTimeout),e.hideBarTimeout=setTimeout(function(){e.outer.addClass("lg-hide-items")},e.settings.hideBarsDelay)}),e.outer.trigger("mousemove.lg"))},this.settings.showBarsAfter)},n.prototype.initPictureFill=function(e){if(this.settings.supportLegacyBrowser)try{picturefill({elements:[e.get()]})}catch{console.warn("lightGallery :- If you want srcset or picture tag to be supported for older browser please include picturefil javascript library in your document.")}},n.prototype.counter=function(){if(this.settings.counter){var e=`<div class="lg-counter" role="status" aria-l
154ive="polite">
155                <span id="`+this.getIdName("lg-counter-current")+'" class="lg-counter-current">'+(this.index+1)+` </span> /
156                <span id="`+this.getIdName("lg-counter-all")+'" class="lg-counter-all">'+this.galleryItems.length+" </span></div>";this.outer.find(this.settings.appendCounterTo).append(e)}},n.prototype.addHtml=function(e){var t,r;if(this.galleryItems[e].subHtmlUrl?r=this.galleryItems[e].subHtmlUrl:t=this.galleryItems[e].subHtml,!r)if(t){var i=t.substring(0,1);(i==="."||i==="#")&&(this.settings.subHtmlSelectorRelative&&!this.settings.dynamic?t=_t(this.items).eq(e).find(t).first().html():t=_t(t).first().html())}else t="";if(this.settings.appendSubHtmlTo!==".lg-item")r?this.outer.find(".lg-sub-html").load(r):this.outer.find(".lg-sub-html").html(t);else{var a=_t(this.getSlideItemId(e));r?a.load(r):a.append('<div class="lg-sub-html">'+t+"</div>")}typeof t<"u"&&t!==null&&(t===""?this.outer.find(this.settings.appendSubHtmlTo).addClass("lg-empty-html"):this.outer.find(this.settings.appendSubHtmlTo).removeClass("lg-empty-html")),this.LGel.trigger(xn.afterAppendSubHtml,{index:e})},n.prototype.preload=function(e){for(var t=1;t<=this.settings.preload&&!(t>=this.galleryItems.length-e);t++)this.loadContent(e+t,!1);for(var r=1;r<=this.settings.preload&&!(e-r<0);r++)this.loadContent(e-r,!1)},n.prototype.getDummyImgStyles=function(e){return e?"width:"+e.width+`px;
157                margin-left: -`+e.width/2+`px;
158                margin-top: -`+e.height/2+`px;
159                height:`+e.height+"px":""},n.prototype.getVideoContStyle=function(e){return e?"width:"+e.width+`px;
160                height:`+e.height+"px":""},n.prototype.getDummyImageContent=function(e,t,r){var i;if(this.settings.dynamic||(i=_t(this.items).eq(t)),i){var a=void 0;if(this.settings.exThumbImage?a=i.attr(this.settings.exThumbImage):a=i.find("img").first().attr("src"),!a)return"";var s=this.getDummyImgStyles(this.currentImageSize),c="<img "+r+' style="'+s+'" class="lg-dummy-img" src="'+a+'" />';return e.addClass("lg-first-slide"),this.outer.addClass("lg-first-slide-loading"),c}return""},n.prototype.setImgMarkup=function(e,t,r){var i=this.galleryItems[r],a=i.alt,s=i.srcset,c=i.sizes,u=i.sources,f="",h=a?'alt="'+a+'"':"";this.isFirstSlideWithZoomAnimation()?f=this.getDummyImageContent(t,r,h):f=vt.getImgMarkup(r,e,h,s,c,u);var g='<picture class="lg-img-wrap"> '+f+"</picture>";t.prepend(g)},n.prototype.onSlideObjectLoad=function(e,t,r,i){var a=e.find(".lg-object").first();vt.isImageLoaded(a.get())||t?r():(a.on("load.lg error.lg",function(){r&&r()}),a.on("error.lg",function(){i&&i()}))},n.prototype.onLgObjectLoad=function(e,t,r,i,a,s){var c=this;this.onSlideObjectLoad(e,s,function(){c.triggerSlideItemLoad(e,t,r,i,a)},function(){e.addClass("lg-complete lg-complete_"),e.html('<span class="lg-error-msg">'+c.settings.strings.mediaLoadingFailed+"</span>")})},n.prototype.triggerSlideItemLoad=function(e,t,r,i,a){var s=this,c=this.galleryItems[t],u=a&&this.getSlideType(c)==="video"&&!c.poster?i:0;setTimeout(function(){e.addClass("lg-complete lg-complete_"),s.LGel.trigger(xn.slideItemLoad,{index:t,delay:r||0,isFirstSlide:a})},u)},n.prototype.isFirstSlideWithZoomAnimation=function(){return!!(!this.lGalleryOn&&this.zoomFromOrigin&&this.currentImageSize)},n.prototype.addSlideVideoInfo=function(e){var t=this;e.forEach(function(r,i){r.__slideVideoInfo=vt.isVideo(r.src,!!r.video,i),r.__slideVideoInfo&&t.settings.loadYouTubePoster&&!r.poster&&r.__slideVideoInfo.youtube&&(r.poster="//img.youtube.com/vi/"+r.__slideVideoInfo.youtube[1]+"/maxresdefault.jpg")})},n.prototype.loadContent=function(e,t){var r=this,i=this.galleryItems[e],a=_t(this.getSlideItemId(e)),s=i.poster,c=i.srcset,u=i.sizes,f=i.sources,h=i.src,g=i.video,v=g&&typeof g=="string"?JSON.parse(g):g;if(i.responsive){var y=i.responsive.split(",");h=vt.getResponsiveSrc(y)||h}var _=i.__slideVideoInfo,w="",x=!!i.iframe,S=!this.lGalleryOn,T=0;if(S&&(this.zoomFromOrigin&&this.currentImageSize?T=this.settings.startAnimationDuration+10:T=this.settings.backdropDuration+10),!a.hasClass("lg-loaded")){if(_){var M=this.mediaContainerPosition,C=M.top,k=M.bottom,L=vt.getSize(this.items[e],this.outer,C+k,_&&this.settings.videoMaxSize);w=this.getVideoContStyle(L)}if(x){var O=vt.getIframeMarkup(this.settings.iframeWidth,this.settings.iframeHeight,this.settings.iframeMaxWidth,this.settings.iframeMaxHeight,h,i.iframeTitle);a.prepend(O)}else if(s){var I="",P=S&&this.zoomFromOrigin&&this.currentImageSize;P&&(I=this.getDummyImageContent(a,e,""));var O=vt.getVideoPosterMarkup(s,I||"",w,this.settings.strings.playVideo,_);a.prepend(O)}else if(_){var O='<div class="lg-video-cont " style="'+w+'"></div>';a.prepend(O)}else if(this.setImgMarkup(h,a,e),c||f){var B=a.find(".lg-object");this.initPictureFill(B)}(s||_)&&this.LGel.trigger(xn.hasVideo,{index:e,src:h,html5Video:v,hasPoster:!!s}),this.LGel.trigger(xn.afterAppendSlide,{index:e}),this.lGalleryOn&&this.settings.appendSubHtmlTo===".lg-item"&&this.addHtml(e)}var H=0;T&&!_t(document.body).hasClass("lg-from-hash")&&(H=T),this.isFirstSlideWithZoomAnimation()&&(setTimeout(function(){a.removeClass("lg-start-end-progress lg-start-progress").removeAttr("style")},this.settings.startAnimationDuration+100),a.hasClass("lg-loaded")||setTimeout(function(){if(r.getSlideType(i)==="image"){var F=i.alt,$=F?'alt="'+F+'"':"";if(a.find(".lg-img-wrap").append(vt.getImgMarkup(e,h,$,c,u,i.sources)),c||f){var V=a.find(".lg-object");r.initPictureFill(V)}}(r.getSlideType(i)==="image"||r.getSlideType(i)==="video"&&s)&&(r.onLgObjectLoad(a,e,T,H,!0,!1),r.onSlideObjectLoad(a,!!(_&&_.html5&&!s),function(){r.loadContentOnFirstSlideLoad(e,a,H)},function(){r.loadContentOnFirstSlideLoad(e,a,H)}))},this.settings.startAnimationDuration+100)),a.addClass("lg-loaded"),(!this.isFirstSlideWithZoomAnimation()||this.get
160SlideType(i)==="video"&&!s)&&this.onLgObjectLoad(a,e,T,H,S,!!(_&&_.html5&&!s)),(!this.zoomFromOrigin||!this.currentImageSize)&&a.hasClass("lg-complete_")&&!this.lGalleryOn&&setTimeout(function(){a.addClass("lg-complete")},this.settings.backdropDuration),this.lGalleryOn=!0,t===!0&&(a.hasClass("lg-complete_")?this.preload(e):a.find(".lg-object").first().on("load.lg error.lg",function(){r.preload(e)}))},n.prototype.loadContentOnFirstSlideLoad=function(e,t,r){var i=this;setTimeout(function(){t.find(".lg-dummy-img").remove(),t.removeClass("lg-first-slide"),i.outer.removeClass("lg-first-slide-loading"),i.isDummyImageRemoved=!0,i.preload(e)},r+300)},n.prototype.getItemsToBeInsertedToDom=function(e,t,r){var i=this;r===void 0&&(r=0);var a=[],s=Math.max(r,3);s=Math.min(s,this.galleryItems.length);var c="lg-item-"+this.lgId+"-"+t;if(this.galleryItems.length<=3)return this.galleryItems.forEach(function(h,g){a.push("lg-item-"+i.lgId+"-"+g)}),a;if(e<(this.galleryItems.length-1)/2){for(var u=e;u>e-s/2&&u>=0;u--)a.push("lg-item-"+this.lgId+"-"+u);for(var f=a.length,u=0;u<s-f;u++)a.push("lg-item-"+this.lgId+"-"+(e+u+1))}else{for(var u=e;u<=this.galleryItems.length-1&&u<e+s/2;u++)a.push("lg-item-"+this.lgId+"-"+u);for(var f=a.length,u=0;u<s-f;u++)a.push("lg-item-"+this.lgId+"-"+(e-u-1))}return this.settings.loop&&(e===this.galleryItems.length-1?a.push("lg-item-"+this.lgId+"-0"):e===0&&a.push("lg-item-"+this.lgId+"-"+(this.galleryItems.length-1))),a.indexOf(c)===-1&&a.push("lg-item-"+this.lgId+"-"+t),a},n.prototype.organizeSlideItems=function(e,t){var r=this,i=this.getItemsToBeInsertedToDom(e,t,this.settings.numberOfSlideItemsInDom);return i.forEach(function(a){r.currentItemsInDom.indexOf(a)===-1&&r.$inner.append('<div id="'+a+'" class="lg-item"></div>')}),this.currentItemsInDom.forEach(function(a){i.indexOf(a)===-1&&_t("#"+a).remove()}),i},n.prototype.getPreviousSlideIndex=function(){var e=0;try{var t=this.outer.find(".lg-current").first().attr("id");e=parseInt(t.split("-")[3])||0}catch{e=0}return e},n.prototype.setDownloadValue=function(e){if(this.settings.download){var t=this.galleryItems[e],r=t.downloadUrl===!1||t.downloadUrl==="false";if(r)this.outer.addClass("lg-hide-download");else{var i=this.getElementById("lg-download");this.outer.removeClass("lg-hide-download"),i.attr("href",t.downloadUrl||t.src),t.download&&i.attr("download",t.download)}}},n.prototype.makeSlideAnimation=function(e,t,r){var i=this;this.lGalleryOn&&r.addClass("lg-slide-progress"),setTimeout(function(){i.outer.addClass("lg-no-trans"),i.outer.find(".lg-item").removeClass("lg-prev-slide lg-next-slide"),e==="prev"?(t.addClass("lg-prev-slide"),r.addClass("lg-next-slide")):(t.addClass("lg-next-slide"),r.addClass("lg-prev-slide")),setTimeout(function(){i.outer.find(".lg-item").removeClass("lg-current"),t.addClass("lg-current"),i.outer.removeClass("lg-no-trans")},50)},this.lGalleryOn?this.settings.slideDelay:0)},n.prototype.slide=function(e,t,r,i){var a=this,s=this.getPreviousSlideIndex();if(this.currentItemsInDom=this.organizeSlideItems(e,s),!(this.lGalleryOn&&s===e)){var c=this.galleryItems.length;if(!this.lgBusy){this.settings.counter&&this.updateCurrentCounter(e);var u=this.getSlideItem(e),f=this.getSlideItem(s),h=this.galleryItems[e],g=h.__slideVideoInfo;if(this.outer.attr("data-lg-slide-type",this.getSlideType(h)),this.setDownloadValue(e),g){var v=this.mediaContainerPosition,y=v.top,_=v.bottom,w=vt.getSize(this.items[e],this.outer,y+_,g&&this.settings.videoMaxSize);this.resizeVideoSlide(e,w)}if(this.LGel.trigger(xn.beforeSlide,{prevIndex:s,index:e,fromTouch:!!t,fromThumb:!!r}),this.lgBusy=!0,clearTimeout(this.hideBarTimeout),this.arrowDisable(e),i||(e<s?i="prev":e>s&&(i="next")),!t)this.makeSlideAnimation(i,u,f);else{this.outer.find(".lg-item").removeClass("lg-prev-slide lg-current lg-next-slide");var x=void 0,S=void 0;c>2?(x=e-1,S=e+1,(e===0&&s===c-1||e===c-1&&s===0)&&(S=0,x=c-1)):(x=0,S=1),i==="prev"?this.getSlideItem(S).addClass("lg-next-slide"):this.getSlideItem(x).addClass("lg-prev-slide"),u.addClass("lg-current")}this.lGalleryOn?setTimeout(function(){a.loadContent(e,!0),a.settings.appendSubHtmlTo!==".lg-item"&&a.addHtml(e)},this.settings.speed+50+(t?0:this.settings.slideDelay)):this.loadContent(e,!0),setTimeout(function(){a.lgBusy=!1,f.removeClass("lg-slide-progress"),a.LGel.trigger(xn.afterSlide,{prevIndex:s,index:e,fromTouch:t,fromThumb:r})},(this.lGalleryOn?this.settings.speed+100:100)+(t?0:this.settings.slideDelay))}this.index=e}},n.prototype.updateCurrentCounter=function(e){this.getElementById("lg-counter-current").html(e+1+"")},n.prototype.updateCounterTotal=function(){this.getElementById("lg-counter-all").html(this.galleryItems.length+"")},n.prototype.getSlideType=function(e){return e.__slideVideoInfo?"video":e.iframe?"iframe":"image"},n.prototype.touchMove=function(e,t,r){var i=t.pageX-e.pageX,a=t.pageY-e.pageY,s=!1;if(this.swipeDirection?s=!0:Math.abs(i)>15?(this.swipeDirection="horizontal",s=!0):Math.abs(a)>15&&(this.swipeDirection="vertical",s=!0),!!s){var c=this.getSlideItem(this.index);if(this.swipeDirection==="horizontal"){r?.preventDefault(),this.outer.addClass("lg-dragging"),this.setTranslate(c,i,0);var u=c.get().offsetWidth,f=u*15/100,h=f-Math.abs(i*10/100);this.setTranslate(this.outer.find(".lg-prev-slide").first(),-u+i-h,0),this.setTranslate(this.outer.find(".lg-next-slide").first(),u+i+h,0)}else if(this.swipeDirection==="vertical"&&this.settings.swipeToClose){r?.preventDefault(),this.$container.addClass("lg-dragging-vertical");var g=1-Math.abs(a)/window.innerHeight;this.$backdrop.css("opacity",g);var v=1-Math.abs(a)/(window.innerWidth*2);this.setTranslate(c,0,a,v,v),Math.abs(a)>100&&this.outer.addClass("lg-hide-items").removeClass("lg-components-open")}}},n.prototype.touchEnd=function(e,t,r){var i=this,a;this.settings.mode!=="lg-slide"&&this.outer.addClass("lg-slide"),setTimeout(function(){i.$container.removeClass("lg-dragging-vertical"),i.outer.removeClass("lg-dragging lg-hide-items").addClass("lg-components-open");var s=!0;if(i.swipeDirection==="horizontal"){a=e.pageX-t.pageX;var c=Math.abs(e.pageX-t.pageX);a<0&&c>i.settings.swipeThreshold?(i.goToNextSlide(!0),s=!1):a>0&&c>i.settings.swipeThreshold&&(i.goToPrevSlide(!0),s=!1)}else if(i.swipeDirection==="vertical")if(a=Math.abs(e.pageY-t.pageY),i.settings.closable&&i.settings.swipeToClose&&a>100){i.closeGallery();return}else i.$backdrop.css("opacity",1);if(i.outer.find(".lg-item").removeAttr("style"),s&&Math.abs(e.pageX-t.pageX)<5){var u=_t(r.target);i.isPosterElement(u)&&i.LGel.trigger(xn.posterClick)}i.swipeDirection=void 0}),setTimeout(function(){!i.outer.hasClass("lg-dragging")&&i.settings.mode!=="lg-slide"&&i.outer.removeClass("lg-slide")},this.settings.speed+100)},n.prototype.enableSwipe=function(){var e=this,t={},r={},i=!1,a=!1;this.settings.enableSwipe&&(this.$inner.on("touchstart.lg",function(s){e.dragOrSwipeEnabled=!0;var c=e.getSlideItem(e.index);(_t(s.target).hasClass("lg-item")||c.get().contains(s.target))&&!e.outer.hasClass("lg-zoomed")&&!e.lgBusy&&s.touches.length===1&&(a=!0,e.touchAction="swipe",e.manageSwipeClass(),t={pageX:s.touches[0].pageX,pageY:s.touches[0].pageY})}),this.$inner.on("touchmove.lg",function(s){a&&e.touchAction==="swipe"&&s.touches.length===1&&(r={pageX:s.touches[0].pageX,pageY:s.touches[0].pageY},e.touchMove(t,r,s),i=!0)}),this.$inner.on("touchend.lg",function(s){if(e.touchAction==="swipe"){if(i)i=!1,e.touchEnd(r,t,s);else if(a){var c=_t(s.target);e.isPosterElement(c)&&e.LGel.trigger(xn.posterClick)}e.touchAction=void 0,a=!1}}))},n.prototype.enableDrag=function(){var e=this,t={},r={},i=!1,a=!1;this.settings.enableDrag&&(this.outer.on("mousedown.lg",function(s){e.dragOrSwipeEnabled=!0;var c=e.getSlideItem(e.index);(_t(s.target).hasClass("lg-item")||c.get().contains(s.target))&&!e.outer.hasClass("lg-zoomed")&&!e.lgBusy&&(s.preventDefault(),e.lgBusy||(e.manageSwipeClass(),t={pageX:s.pageX,pageY:s.pageY},i=!0,e.outer.get().scrollLeft+=1,e.outer.get().scrollLeft-=1,e.outer.removeClass("lg-grab").addClass("lg-grabbing"),e.LGel.trigger(xn.dragStart)))}),_t(window).on("mousemove.lg.global"+this.lgId,function(s){i&&e.lgOpened&&(a=!0,r={pageX:s.pageX,pageY:s.pageY},e.touchMove(t,r),e.LGel.trigger(xn.dragMove))}),_t(window).on("mouseup.lg.global"+this.lgId,function(s){if(e.lgOpened){var c=_t(s.target);a?(a=!1,e.touchEnd(r,t,s),e.LGel.trigger(xn.dragEnd)):e.isPosterElement(c)&&e.LGel.trigger(xn.posterClick),i&&(i=!1,e.outer.removeClass("lg-grabbing").addClass("lg-grab"))}}))},n.prototype.triggerPosterClick=function(){var e=this;this.$inner.on("click.lg",function(t){!e.dragOrSwipeEnabled&&e.isPosterElement(_t(t.target))&&e.LGel.trigger(xn.posterClick)})},n.prototype.manageSwipeClass=function(){var e=this.index+1,t=this.index-1;this.settings.loop&&this.galleryItems.length>2&&(this.index===0?t=this.galleryItems.length-1:this.index===this.galleryItems.length-1&&(e=0)),this.outer.find(".lg-item").removeClass("lg-next-slide lg-prev-slide"),t>
160-1&&this.getSlideItem(t).addClass("lg-prev-slide"),this.getSlideItem(e).addClass("lg-next-slide")},n.prototype.goToNextSlide=function(e){var t=this,r=this.settings.loop;e&&this.galleryItems.length<3&&(r=!1),this.lgBusy||(this.index+1<this.galleryItems.length?(this.index++,this.LGel.trigger(xn.beforeNextSlide,{index:this.index}),this.slide(this.index,!!e,!1,"next")):r?(this.index=0,this.LGel.trigger(xn.beforeNextSlide,{index:this.index}),this.slide(this.index,!!e,!1,"next")):this.settings.slideEndAnimation&&!e&&(this.outer.addClass("lg-right-end"),setTimeout(function(){t.outer.removeClass("lg-right-end")},400)))},n.prototype.goToPrevSlide=function(e){var t=this,r=this.settings.loop;e&&this.galleryItems.length<3&&(r=!1),this.lgBusy||(this.index>0?(this.index--,this.LGel.trigger(xn.beforePrevSlide,{index:this.index,fromTouch:e}),this.slide(this.index,!!e,!1,"prev")):r?(this.index=this.galleryItems.length-1,this.LGel.trigger(xn.beforePrevSlide,{index:this.index,fromTouch:e}),this.slide(this.index,!!e,!1,"prev")):this.settings.slideEndAnimation&&!e&&(this.outer.addClass("lg-left-end"),setTimeout(function(){t.outer.removeClass("lg-left-end")},400)))},n.prototype.keyPress=function(){var e=this;_t(window).on("keydown.lg.global"+this.lgId,function(t){e.lgOpened&&e.settings.escKey===!0&&t.keyCode===27&&(t.preventDefault(),e.settings.allowMediaOverlap&&e.outer.hasClass("lg-can-toggle")&&e.outer.hasClass("lg-components-open")?e.outer.removeClass("lg-components-open"):e.closeGallery()),e.lgOpened&&e.galleryItems.length>1&&(t.keyCode===37&&(t.preventDefault(),e.goToPrevSlide()),t.keyCode===39&&(t.preventDefault(),e.goToNextSlide()))})},n.prototype.arrow=function(){var e=this;this.getElementById("lg-prev").on("click.lg",function(){e.goToPrevSlide()}),this.getElementById("lg-next").on("click.lg",function(){e.goToNextSlide()})},n.prototype.arrowDisable=function(e){if(!this.settings.loop&&this.settings.hideControlOnEnd){var t=this.getElementById("lg-prev"),r=this.getElementById("lg-next");e+1===this.galleryItems.length?r.attr("disabled","disabled").addClass("disabled"):r.removeAttr("disabled").removeClass("disabled"),e===0?t.attr("disabled","disabled").addClass("disabled"):t.removeAttr("disabled").removeClass("disabled")}},n.prototype.setTranslate=function(e,t,r,i,a){i===void 0&&(i=1),a===void 0&&(a=1),e.css("transform","translate3d("+t+"px, "+r+"px, 0px) scale3d("+i+", "+a+", 1)")},n.prototype.mousewheel=function(){var e=this,t=0;this.outer.on("wheel.lg",function(r){if(!(!r.deltaY||e.galleryItems.length<2)){r.preventDefault();var i=new Date().getTime();i-t<1e3||(t=i,r.deltaY>0?e.goToNextSlide():r.deltaY<0&&e.goToPrevSlide())}})},n.prototype.isSlideElement=function(e){return e.hasClass("lg-outer")||e.hasClass("lg-item")||e.hasClass("lg-img-wrap")},n.prototype.isPosterElement=function(e){var t=this.getSlideItem(this.index).find(".lg-video-play-button").get();return e.hasClass("lg-video-poster")||e.hasClass("lg-video-play-button")||t&&t.contains(e.get())},n.prototype.toggleMaximize=function(){var e=this;this.getElementById("lg-maximize").on("click.lg",function(){e.$container.toggleClass("lg-inline"),e.refreshOnResize()})},n.prototype.invalidateItems=function(){for(var e=0;e<this.items.length;e++){var t=this.items[e],r=_t(t);r.off("click.lgcustom-item-"+r.attr("data-lg-id"))}},n.prototype.trapFocus=function(){var e=this;this.$container.get().focus({preventScroll:!0}),_t(window).on("keydown.lg.global"+this.lgId,function(t){if(e.lgOpened){var r=t.key==="Tab"||t.keyCode===9;if(r){var i=vt.getFocusableElements(e.$container.get()),a=i[0],s=i[i.length-1];t.shiftKey?document.activeElement===a&&(s.focus(),t.preventDefault()):document.activeElement===s&&(a.focus(),t.preventDefault())}}})},n.prototype.manageCloseGallery=function(){var e=this;if(this.settings.closable){var t=!1;this.getElementById("lg-close").on("click.lg",function(){e.closeGallery()}),this.settings.closeOnTap&&(this.outer.on("mousedown.lg",function(r){var i=_t(r.target);e.isSlideElement(i)?t=!0:t=!1}),this.outer.on("mousemove.lg",function(){t=!1}),this.outer.on("mouseup.lg",function(r){var i=_t(r.target);e.isSlideElement(i)&&t&&(e.outer.hasClass("lg-dragging")||e.closeGallery())}))}},n.prototype.closeGallery=function(e){var t=this;if(!this.lgOpened||!this.settings.closable&&!e)return 0;this.LGel.trigger(xn.beforeClose),this.settings.resetScrollPosition&&!this.settings.hideScrollbar&&_t(window).scrollTop(this.prevScrollTop);var r=this.items[this.index],i;if(this.zoomFromOrigin&&r){var a=this.mediaContainerPosition,s=a.top,c=a.bottom,u=this.galleryItems[this.index],f=u.__slideVideoInfo,h=u.poster,g=vt.getSize(r,this.outer,s+c,f&&h&&this.settings.videoMaxSize);i=vt.getTransform(r,this.outer,s,c,g)}this.zoomFromOrigin&&i?(this.outer.addClass("lg-closing lg-zoom-from-image"),this.get
160SlideItem(this.index).addClass("lg-start-end-progress").css("transition-duration",this.settings.startAnimationDuration+"ms").css("transform",i)):(this.outer.addClass("lg-hide-items"),this.outer.removeClass("lg-zoom-from-image")),this.destroyModules(),this.lGalleryOn=!1,this.isDummyImageRemoved=!1,this.zoomFromOrigin=this.settings.zoomFromOrigin,clearTimeout(this.hideBarTimeout),this.hideBarTimeout=!1,_t("html").removeClass("lg-on"),this.outer.removeClass("lg-visible lg-components-open"),this.$backdrop.removeClass("in").css("opacity",0);var v=this.zoomFromOrigin&&i?Math.max(this.settings.startAnimationDuration,this.settings.backdropDuration):this.settings.backdropDuration;return this.$container.removeClass("lg-show-in"),setTimeout(function(){t.zoomFromOrigin&&i&&t.outer.removeClass("lg-zoom-from-image"),t.$container.removeClass("lg-show"),t.resetScrollBar(),t.$backdrop.removeAttr("style").css("transition-duration",t.settings.backdropDuration+"ms"),t.outer.removeClass("lg-closing "+t.settings.startClass),t.getSlideItem(t.index).removeClass("lg-start-end-progress"),t.$inner.empty(),t.lgOpened&&t.LGel.trigger(xn.afterClose,{instance:t}),t.$container.get()&&t.$container.get().blur(),t.lgOpened=!1},v+100),v+100},n.prototype.initModules=function(){this.plugins.forEach(function(e){try{e.init()}catch{console.warn("lightGallery:- make sure lightGallery module is properly initiated")}})},n.prototype.destroyModules=function(e){this.plugins.forEach(function(t){try{e?t.destroy():t.closeGallery&&t.closeGallery()}catch{console.warn("lightGallery:- make sure lightGallery module is properly destroyed")}})},n.prototype.refresh=function(e){this.settings.dynamic||this.invalidateItems(),e?this.galleryItems=e:this.galleryItems=this.getItems(),this.updateControls(),this.openGalleryOnItemClick(),this.LGel.trigger(xn.updateSlides)},n.prototype.updateControls=function(){this.addSlideVideoInfo(this.galleryItems),this.updateCounterTotal(),this.manageSingleSlideClassName()},n.prototype.destroyGallery=function(){this.destroyModules(!0),this.settings.dynamic||this.invalidateItems(),_t(window).off(".lg.global"+this.lgId),this.LGel.off(".lg"),this.$container.remove()},n.prototype.destroy=function(){var e=this.closeGallery(!0);return e?setTimeout(this.destroyGallery.bind(this),e):this.destroyGallery(),e},n})();function ri(n,e){return new ln(n,e)}const rs=ri;/*!
161 * lightgallery | 2.7.2 | September 20th 2023
162 * http://www.lightgalleryjs.com/
163 * Copyright (c) 2020 Sachin Neravath;
164 * @license GPLv3
165 *//*! *****************************************************************************
166Copyright (c) Microsoft Corporation.
167
168Permission to use, copy, modify, and/or distribute this software for any
169purpose with or without fee is hereby granted.
170
171THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
172REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
173AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
174INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
175LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
176OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
177PERFORMANCE OF THIS SOFTWARE.
178***************************************************************************** */var yi=function(){return yi=Object.assign||function(e){for(var t,r=1,i=arguments.length;r<i;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},yi.apply(this,arguments)},ep={autoplayFirstVideo:!0,youTubePlayerParams:!1,vimeoPlayerParams:!1,wistiaPlayerParams:!1,gotoNextSlideOnVideoEnd:!0,autoplayVideoOnSlide:!1,videojs:!1,videojsTheme:"",videojsOptions:{}},ii={afterAppendSlide:"lgAfterAppendSlide",init:"lgInit",hasVideo:"lgHasVideo",containerResize:"lgContainerResize",updateSlides:"lgUpdateSlides",afterAppendSubHtml:"lgAfterAppendSubHtml",beforeOpen:"lgBeforeOpen",afterOpen:"lgAfterOpen",slideItemLoad:"lgSlideItemLoad",beforeSlide:"lgBeforeSlide",afterSlide:"lgAfterSlide",posterClick:"lgPosterClick",dragStart:"lgDragStart",dragMove:"lgDragMove",dragEnd:"lgDragEnd",beforeNextSlide:"lgBeforeNextSlide",beforePrevSlide:"lgBeforePrevSlide",beforeClose:"lgBeforeClose",afterClose:"lgAfterClose",rotateLeft:"lgRotateLeft",rotateRight:"lgRotateRight",flipHorizontal:"lgFlipHorizontal",flipVertical:"lgFlipVertical",autoplay:"lgAutoplay",auto
178playStart:"lgAutoplayStart",autoplayStop:"lgAutoplayStop"},An=function(n){return Object.keys(n).map(function(e){return encodeURIComponent(e)+"="+encodeURIComponent(n[e])}).join("&")},is=function(n){var e=n.slice(1).split("&").map(function(t){return t.split("=")}).reduce(function(t,r){var i=r.map(decodeURIComponent),a=i[0],s=i[1];return t[a]=s,t},{});return e},no=function(n,e){if(!n.youtube)return"";var t=n.youtube[2]?is(n.youtube[2]):"",r={wmode:"opaque",autoplay:0,mute:1,enablejsapi:1},i=e||{},a=yi(yi(yi({},r),i),t),s="?"+An(a);return s},tp=function(n){return n.includes("youtube-nocookie.com")},ai=function(n,e){if(!e||!e.vimeo)return"";var t=e.vimeo[2]||"",r=n&&Object.keys(n).length!==0?"&"+An(n):"",i=e.vimeo[0].split("/").pop()||"",a=i.split("?")[0]||"",s=a.split("#")[0],c=e.vimeo[1]!==s;c&&(t=t.replace("/"+s,"")),t=t[0]=="?"?"&"+t.slice(1):t||"";var u="?autoplay=0&muted=1"+(c?"&h="+s:"")+r+t;return u},sl=(function(){function n(e){return this.core=e,this.settings=yi(yi({},ep),this.core.settings),this}return n.prototype.init=function(){var e=this;this.core.LGel.on(ii.hasVideo+".video",this.onHasVideo.bind(this)),this.core.LGel.on(ii.posterClick+".video",function(){var t=e.core.getSlideItem(e.core.index);e.loadVideoOnPosterClick(t)}),this.core.LGel.on(ii.slideItemLoad+".video",this.onSlideItemLoad.bind(this)),this.core.LGel.on(ii.beforeSlide+".video",this.onBeforeSlide.bind(this)),this.core.LGel.on(ii.afterSlide+".video",this.onAfterSlide.bind(this))},n.prototype.onSlideItemLoad=function(e){var t=this,r=e.detail,i=r.isFirstSlide,a=r.index;this.settings.autoplayFirstVideo&&i&&a===this.core.index&&setTimeout(function(){t.loadAndPlayVideo(a)},200),!i&&this.settings.autoplayVideoOnSlide&&a===this.core.index&&this.loadAndPlayVideo(a)},n.prototype.onHasVideo=function(e){var t=e.detail,r=t.index,i=t.src,a=t.html5Video,s=t.hasPoster;s||(this.appendVideos(this.core.getSlideItem(r),{src:i,addClass:"lg-object",index:r,html5Video:a}),this.gotoNextSlideOnVideoEnd(i,r))},n.prototype.onBeforeSlide=function(e){if(this.core.lGalleryOn){var t=e.detail.prevIndex;this.pauseVideo(t)}},n.prototype.onAfterSlide=function(e){var t=this,r=e.detail,i=r.index,a=r.prevIndex,s=this.core.getSlideItem(i);this.settings.autoplayVideoOnSlide&&i!==a&&s.hasClass("lg-complete")&&setTimeout(function(){t.loadAndPlayVideo(i)},100)},n.prototype.loadAndPlayVideo=function(e){var t=this.core.getSlideItem(e),r=this.core.galleryItems[e];r.poster?this.loadVideoOnPosterClick(t,!0):this.playVideo(e)},n.prototype.playVideo=function(e){this.controlVideo(e,"play")},n.prototype.pauseVideo=function(e){this.controlVideo(e,"pause")},n.prototype.getVideoHtml=function(e,t,r,i){var a="",s=this.core.galleryItems[r].__slideVideoInfo||{},c=this.core.galleryItems[r],u=c.title||c.alt;u=u?'title="'+u+'"':"";var f=`allowtransparency="true"
179            frameborder="0"
180            scrolling="no"
181            allowfullscreen
182            mozallowfullscreen
183            webkitallowfullscreen
184            oallowfullscreen
185            msallowfullscreen`;if(s.youtube){var h="lg-youtube"+r,g=no(s,this.settings.youTubePlayerParams),v=tp(e),y=v?"//www.youtube-nocookie.com/":"//www.youtube.com/";a='<iframe allow="autoplay" id='+h+' class="lg-video-object lg-youtube '+t+'" '+u+' src="'+y+"embed/"+(s.youtube[1]+g)+'" '+f+"></iframe>"}else if(s.vimeo){var h="lg-vimeo"+r,_=ai(this.settings.vimeoPlayerParams,s);a='<iframe allow="autoplay" id='+h+' class="lg-video-object lg-vimeo '+t+'" '+u+' src="//player.vimeo.com/video/'+(s.vimeo[1]+_)+'" '+f+"></iframe>"}else if(s.wistia){var w="lg-wistia"+r,_=An(this.settings.wistiaPlayerParams);_=_?"?"+_:"",a='<iframe allow="autoplay" id="'+w+'" src="//fast.wistia.net/embed/iframe/'+(s.wistia[4]+_)+'" '+u+' class="wistia_embed lg-video-object lg-wistia '+t+'" name="wistia_embed" '+f+"></iframe>"}else if(s.html5){for(var x="",S=0;S<i.source.length;S++)x+='<source src="'+i.source[S].src+'" type="'+i.source[S].type+'">';if(i.tracks)for(var T=function(k){var L="",O=i.tracks[k];Object.keys(O||{}).forEach(function(I){L+=I+'="'+O[I]+'" '}),x+="<track "+L+">"},S=0;S<i.tracks.length;S++)T(S);var M="",C=i.attributes||{};Object.keys(C||{}
185).forEach(function(k){M+=k+'="'+C[k]+'" '}),a='<video class="lg-video-object lg-html5 '+(this.settings.videojs&&this.settings.videojsTheme?this.settings.videojsTheme+" ":"")+" "+(this.settings.videojs?" video-js":"")+'" '+M+`>
186                `+x+`
187                Your browser does not support HTML5 video.
188            </video>`}return a},n.prototype.appendVideos=function(e,t){var r,i=this.getVideoHtml(t.src,t.addClass,t.index,t.html5Video);e.find(".lg-video-cont").append(i);var a=e.find(".lg-video-object").first();if(t.html5Video&&a.on("mousedown.lg.video",function(s){s.stopPropagation()}),this.settings.videojs&&(!((r=this.core.galleryItems[t.index].__slideVideoInfo)===null||r===void 0)&&r.html5))try{return videojs(a.get(),this.settings.videojsOptions)}catch{console.error("lightGallery:- Make sure you have included videojs")}},n.prototype.gotoNextSlideOnVideoEnd=function(e,t){var r=this,i=this.core.getSlideItem(t).find(".lg-video-object").first(),a=this.core.galleryItems[t].__slideVideoInfo||{};if(this.settings.gotoNextSlideOnVideoEnd){if(a.html5)i.on("ended",function(){r.core.goToNextSlide()});else if(a.vimeo)try{new Vimeo.Player(i.get()).on("ended",function(){r.core.goToNextSlide()})}catch{console.error("lightGallery:- Make sure you have included //github.com/vimeo/player.js")}else if(a.wistia)try{window._wq=window._wq||[],window._wq.push({id:i.attr("id"),onReady:function(s){s.bind("end",function(){r.core.goToNextSlide()})}})}catch{console.error("lightGallery:- Make sure you have included //fast.wistia.com/assets/external/E-v1.js")}}},n.prototype.controlVideo=function(e,t){var r=this.core.getSlideItem(e).find(".lg-video-object").first(),i=this.core.galleryItems[e].__slideVideoInfo||{};if(r.get()){if(i.youtube)try{r.get().contentWindow.postMessage('{"event":"command","func":"'+t+'Video","args":""}',"*")}catch(a){console.error("lightGallery:- "+a)}else if(i.vimeo)try{new Vimeo.Player(r.get())[t]()}catch{console.error("lightGallery:- Make sure you have included //github.com/vimeo/player.js")}else if(i.html5)if(this.settings.videojs)try{videojs(r.get())[t]()}catch{console.error("lightGallery:- Make sure you have included videojs")}else r.get()[t]();else if(i.wistia)try{window._wq=window._wq||[],window._wq.push({id:r.attr("id"),onReady:function(a){a[t]()}})}catch{console.error("lightGallery:- Make sure you have included //fast.wistia.com/assets/external/E-v1.js")}}},n.prototype.loadVideoOnPosterClick=function(e,t){var r=this;if(e.hasClass("lg-video-loaded"))t&&this.playVideo(this.core.index);else if(e.hasClass("lg-has-video"))this.playVideo(this.core.index);else{e.addClass("lg-has-video");var i=void 0,a=this.core.galleryItems[this.core.index].src,s=this.core.galleryItems[this.core.index].video;s&&(i=typeof s=="string"?JSON.parse(s):s);var c=this.appendVideos(e,{src:a,addClass:"",index:this.core.index,html5Video:i});this.gotoNextSlideOnVideoEnd(a,this.core.index);var u=e.find(".lg-object").first().get();e.find(".lg-video-cont").first().append(u),e.addClass("lg-video-loading"),c&&c.ready(function(){c.on("loadedmetadata",function(){r.onVideoLoadAfterPosterClick(e,r.core.index)})}),e.find(".lg-video-object").first().on("load.lg error.lg loadedmetadata.lg",function(){setTimeout(function(){r.onVideoLoadAfterPosterClick(e,r.core.index)},50)})}},n.prototype.onVideoLoadAfterPosterClick=function(e,t){e.addClass("lg-video-loaded"),this.playVideo(t)},n.prototype.destroy=function(){this.core.LGel.off(".lg.video"),this.core.LGel.off(".video")},n})();const Sc=sl,$r=(n=>{rs(n,{plugins:[Sc],speed:500,download:!1,closeOnTap:!1,hideScrollbar:!0,defaultCaptionHeight:150,supportLegacyBrowser:!1,mobileSettings:{controls:!0}}),document.querySelectorAll(".lg-sub-html").forEach(t=>t.classList.add("line-clamp-5","!pb-1"))}),Td=n=>{const{dataLayer:e}=window,t=()=>{e.push(JSON.parse(n.dataset.analytics))};n.addEventListener("click",t)},Md=n=>{const{dataLayer:e}=window;document.addEventListener("scrollend",()=>{n.classList.contains("sticky")&&(n.classList.contains("is-active")?n.classList.contains("is-showing")||(e.push(JSON.parse(n.dataset.analyticsView)),n.classList.add("is-showing")):n.classList.remove("is-showing"))}),n.classList.contains("sticky")||e.push(JSON.parse(n.dataset.analyticsView))},as=n=>{const{dataLayer:e}=window,t=()=>{const r=n.querySelector("[data-analytics-personalized]");r?e.push(JSON.parse(r.dataset.analyticsPersonalized)):e.push(JSON.parse(n.dataset.analyticsPersonalizable))};n.addEventListener("click",t)},ss=n=>{const{dataLayer:e}=window;n.querySelectorAll("a").forEach(t=>{const r=t.getAttribute("href"),i=t.textContent.replace(/<[^>]*>/g,""),a=n.dataset.analyticsContent.replace("LINK",r).replace("TITLE",i).trim(),s=()=>{e.push(JSON.parse(a))};
188t.addEventListener("click",s)})};var ol=sn(438),Qi=sn.n(ol);const rp=(()=>{if((e=>window.matchMedia(e).matches)("(max-width: 991px)")){const e=new(Qi())(".sticky-mobile")}else{const e=new(Qi())(".sticky-desktop")}}),wv=n=>{const e=n.querySelector(".js-marketingAlertStrip-close"),{id:t}=n.dataset;sessionStorage.getItem(t)==="true"||n.classList.add("sm:block"),e.addEventListener("click",()=>{sessionStorage.setItem(t,"true"),n.classList.remove("sm:block")});const i=()=>{const a=document.querySelector(".js-marketingAlertStripe");if(!a)return;const s=a.dataset.image,c=a.dataset.imageRetina,u=window.devicePixelRatio>1.1,f=new Image;f.src=u&&c?c:s,f.onload=()=>{a.style.backgroundImage=`url(${f.src})`,a.style.backgroundSize=`${f.width/(u?2:1)}px auto`}};i(),window.addEventListener("resize",i)},ip=n=>{const e=n.querySelector(".js-marketingAlertStrip-close"),{id:t}=n.dataset;sessionStorage.getItem(t)==="true"||n.classList.remove("hidden");const i=()=>{const a=document.querySelector(".js-marketingAlertStripe-mob");if(!a)return;const s=a.dataset.image,c=a.dataset.imageRetina,u=window.devicePixelRatio>1.1,f=new Image;f.src=u&&c?c:s,f.onload=()=>{a.style.backgroundImage=`url(${f.src})`,a.style.backgroundSize=`${f.width/(u?2:1)}px auto`}};i(),window.addEventListener("resize",i),e.addEventListener("click",()=>{sessionStorage.setItem(t,"true"),n.classList.add("hidden")})},gr=()=>{const n=window;return Array.isArray(n.dataLayer)||(n.dataLayer=[]),n.dataLayer},Cc=n=>{try{return JSON.parse(n)}catch{return null}},Dr=(n,e)=>{Object.entries(e).forEach(([t,r])=>{t in n||(n[t]=r)})},Ev=n=>{const e=n.querySelectorAll(".container__inner"),t=n.querySelectorAll(".container__item");let r=null;const i=u=>{if(window.innerWidth<992||!u)return;const f=u.getAttribute("href")||"";if(!f||f===r)return;const h=u.getAttribute("data-interactive-analytics");
188if(!h)return;const g=Cc(h);g&&typeof g=="object"&&(gr().push(g),r=f)},a=()=>{e.forEach(u=>{u.classList.add("container__inner_hidden"),u.querySelectorAll("video").forEach(h=>{h&&(h.pause(),h.currentTime=0)})}),t.forEach(u=>u.classList.remove("container__item_active"))},s=u=>{const f=Array.from(t).find(v=>v.querySelector(`a[href="${u}"]`));if(!f)return;a();const h=n.querySelector(u);if(!h)return;h.classList.remove("container__inner_hidden"),f.classList.add("container__item_active"),h.querySelectorAll("video").forEach(v=>{v&&v.play()}),i(f.querySelector("a"))},c=()=>{const{hash:u}=window.location;u&&s(u)};if(t.forEach(u=>{u.addEventListener("click",f=>{f.preventDefault();const h=u.querySelector("a"),g=h?.getAttribute("href");g&&(history.replaceState(null,"",g),s(g))})}),window.addEventListener("hashchange",c),c(),!window.location.hash&&t.length>0){const u=t[0].querySelector("a"),f=u?.getAttribute("href")||"";f&&s(f)}};/*!
189 * Glide.js v3.6.2
190 * (c) 2013-2024 Jędrzej Chałubek (https://github.com/jedrzejchalubek/)
191 * Released under the MIT License.
192 */function xv(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable})),t.push.apply(t,r)}return t}function Sa(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?xv(Object(t),!0).forEach(function(r){Sv(n,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):xv(Object(t)).forEach(function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(t,r))})}return n}function ro(n){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ro=function(e){return typeof e}:ro=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ro(n)}function ll(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function io(n,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}function Tc(n,e,t){return e&&io(n.prototype,e),t&&io(n,t),n}function Sv(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function Cv(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),e&&cl(n,e)}function ao(n){return ao=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},ao(n)}function cl(n,e){return cl=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},cl(n,e)}function ap(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Kb(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function Jb(n,e){if(e&&(typeof e=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Kb(n)}function e1(n){var e=ap();return function(){var r=ao(n),i;if(e){var a=ao(this).constructor;i=Reflect.construct(r,arguments,a)}else i=r.apply(this,arguments);return Jb(this,i)}}function Tv(n,e){for(;!Object.prototype.hasOwnProperty.call(n,e)&&(n=ao(n),n!==null););return n}function Mc(){return typeof Reflect<"u"&&Reflect.get?Mc=Reflect.get:Mc=function(e,t,r){var i=Tv(e,t);if(i){var a=Object.getOwnPropertyDescriptor(i,t);return a.get?a.get.call(arguments.length<3?e:r):a.value}},Mc.apply(this,arguments)}var ul={type:"slider",startAt:0,perView:1,focusAt:0,gap:10,autoplay:!1,hoverpause:!0,keyboard:!0,bound:!1,swipeThreshold:80,dragThreshold:120,perSwipe:"",touchRatio:.5,touchAngle:45,animationDuration:400,rewind:!0,rewindDuration:800,animationTimingFunc:"cubic-bezier(.165, .840, .440, 1)",waitForTransition:!0,throttle:10,direction:"ltr",peek:0,cloningRatio:1,breakpoints:{},classes:{swipeable:"glide--swipeable",dragging:"glide--dragging",direction:{ltr:"glide--ltr",rtl:"glide--rtl"},type:{slider:"glide--slider",carousel:"glide--carousel"},slide:{clone:"glide__slide--clone",active:"glide__slide--active"},arrow:{disabled:"glide__arrow--disabled"},nav:{active:"glide__bullet--active"}}};function bi(n){console.error("[Glide warn]: ".concat(n))}function vr(n){return parseInt(n)}function Mv(n){return parseFloat(n)}function Od(n){return typeof n=="string"}function so(n){var e=ro(n);return e==="function"||e==="object"&&!!n}function Dc(n){return typeof n=="function"}function sp(n){return typeof n>"u"}function dl(n){return n.constructor===Array}function Dv(n,e,t){var r={};for(var i in e)Dc(e[i])?r[i]=e[i](n,r,t):bi("Extension must be a function");for(var a in r)Dc(r[a].mount)&&r[a].mount();return r}function Dn(n,e,t){Object.defineProperty(n,e,t)}function cn(n){return Object.keys(n).sort().reduce(function(e,t){return e[t]=n[t],e[t],e},{})}function Oc(n,e){var t=Object.assign({},n,e);if(e.hasOwnProperty("classes")){t.classes=Object.assign({},n.classes,e.classes);var r=["direction","type","slide","arrow","nav"];r.forEach(function(i){e.classes.hasOwnProperty(i)&&(t.classes[i]=Sa(Sa({},n.classes[i]),e.classes[i]))})}return e.hasOwnProperty("breakpoints")&&(t.breakpoints=Object.assign({},n.breakpoints,e.breakpoints)),t}var t1=(function(){function n(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ll(this,n),this.events=e,this.hop=e.hasOwnProperty}return Tc(n,[{key:"on",value:function(t,r){if(dl(t)){for(var i=0;i<t.length;i++)this.on(t[i],r);return}this.hop.call(this.events,t)||(this.events[t]=[]);var a=this.events[t].push(r)-1;return{remove:function(){delete this.events[t][a]}}}},{key:"emit",value:function(t,r){if(dl(t)){for(var i=0;i<t.length;
192i++)this.emit(t[i],r);return}this.hop.call(this.events,t)&&this.events[t].forEach(function(a){a(r||{})})}}]),n})(),Ov=(function(){function n(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};ll(this,n),this._c={},this._t=[],this._e=new t1,this.disabled=!1,this.selector=e,this.settings=Oc(ul,t),this.index=this.settings.startAt}return Tc(n,[{key:"mount",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return this._e.emit("mount.before"),so(t)?this._c=Dv(this,t,this._e):bi("You need to provide a object on `mount()`"),this._e.emit("mount.after"),this}},{key:"mutate",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return dl(t)?this._t=t:bi("You need to provide a array on `mutate()`"),this}},{key:"update",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return this.settings=Oc(this.settings,t),t.hasOwnProperty("startAt")&&(this.index=t.startAt),this._e.emit("update"),this}},{key:"go",value:function(t){return this._c.Run.make(t),this}},{key:"move",value:function(t){return this._c.Transition.disable(),this._c.Move.make(t),this}},{key:"destroy",value:function(){return this._e.emit("destroy"),this}},{key:"play",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return t&&(this.settings.autoplay=t),this._e.emit("play"),this}},{key:"pause",value:function(){return this._e.emit("pause"),this}},{key:"disable",value:function(){return this.disabled=!0,this}},{key:"enable",value:function(){return this.disabled=!1,this}},{key:"on",value:function(t,r){return this._e.on(t,r),this}},{key:"isType",value:function(t){return this.settings.type===t}},{key:"settings",get:function(){return this._o},set:function(t){so(t)?this._o=t:bi("Options must be an `object` instance.")}},{key:"index",get:function(){return this._i},set:function(t){this._i=vr(t)}},{key:"type",get:function(){return this.settings.type}},{key:"disabled",get:function(){return this._d},set:function(t){this._d=!!t}}]),n})();function n1(n,e,t){var r={mount:function(){this._o=!1},make:function(f){var h=this;n.disabled||(!n.settings.waitForTransition||n.disable(),this.move=f,t.emit("run.before",this.move),this.calculate(),t.emit("run",this.move),e.Transition.after(function(){h.isStart()&&t.emit("run.start",h.move),h.isEnd()&&t.emit("run.end",h.move),h.isOffset()&&(h._o=!1,t.emit("run.offset",h.move)),t.emit("run.after",h.move),n.enable()}))},calculate:function(){var f=this.move,h=this.length,g=f.steps,v=f.direction,y=1;if(v==="="){if(n.settings.bound&&vr(g)>h){n.index=h;return}n.index=g;return}if(v===">"&&g===">"){n.index=h;return}if(v==="<"&&g==="<"){n.index=0;return}if(v==="|"&&(y=n.settings.perView||1),v===">"||v==="|"&&g===">"){var _=i(y);_>
192h&&(this._o=!0),n.index=a(_,y);return}if(v==="<"||v==="|"&&g==="<"){var w=s(y);w<0&&(this._o=!0),n.index=c(w,y);return}bi("Invalid direction pattern [".concat(v).concat(g,"] has been used"))},isStart:function(){return n.index<=0},isEnd:function(){return n.index>=this.length},isOffset:function(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:void 0;return f?this._o?f==="|>"?this.move.direction==="|"&&this.move.steps===">":f==="|<"?this.move.direction==="|"&&this.move.steps==="<":this.move.direction===f:!1:this._o},isBound:function(){return n.isType("slider")&&n.settings.focusAt!=="center"&&n.settings.bound}};function i(u){var f=n.index;return n.isType("carousel")?f+u:f+(u-f%u)}function a(u,f){var h=r.length;return u<=h?u:n.isType("carousel")?u-(h+1):n.settings.rewind?r.isBound()&&!r.isEnd()?h:0:r.isBound()?h:Math.floor(h/f)*f}function s(u){var f=n.index;if(n.isType("carousel"))return f-u;var h=Math.ceil(f/u);return(h-1)*u}function c(u,f){var h=r.length;return u>=0?u:n.isType("carousel")?u+(h+1):n.settings.rewind?r.isBound()&&r.isStart()?h:Math.floor(h/f)*f:0}return Dn(r,"move",{get:function(){return this._m},set:function(f){var h=f.substr(1);this._m={direction:f.substr(0,1),steps:h?vr(h)?vr(h):h:0}}}),Dn(r,"length",{get:function(){var f=n.settings,h=e.Html.slides.length;return this.isBound()?h-1-(vr(f.perView)-1)+vr(f.focusAt):h-1}}),Dn(r,"offset",{get:function(){return this._o}}),r}function kv(){return new Date().getTime()}function kd(n,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r,i,a,s,c=0,u=function(){c=t.leading===!1?0:kv(),r=null,s=n.apply(i,a),r||(i=a=null)},f=function(){var g=kv();!c&&t.leading===!1&&(c=g);var v=e-(g-c);return i=this,a=arguments,v<=0||v>e?(r&&(clearTimeout(r),r=null),c=g,s=n.apply(i,a),r||(i=a=null)):!r&&t.trailing!==!1&&(r=setTimeout(u,v)),s};return f.cancel=function(){clearTimeout(r),c=0,r=i=a=null},f}var oo={ltr:["marginLeft","marginRight"],rtl:["marginRight","marginLeft"]};function fl(n,e,t){var r={apply:function(a){for(var s=0,c=a.length;s<c;s++){var u=a[s].style,f=e.Direction.value;s!==0?u[oo[f][0]]="".concat(this.value/2,"px"):u[oo[f][0]]="",s!==a.length-1?u[oo[f][1]]="".concat(this.value/2,"px"):u[oo[f][1]]=""}},remove:function(a){for(var s=0,c=a.length;s<c;s++){var u=a[s].style;u.marginLeft="",u.marginRight=""}}};return Dn(r,"value",{get:function(){return vr(n.settings.gap)}}),Dn(r,"grow",{get:function(){return r.value*e.Sizes.length}}),Dn(r,"reductor",{get:function(){var a=n.settings.perView;return r.value*(a-1)/a}}),t.on(["build.after","update"],kd(function(){r.apply(e.Html.wrapper.children)},30)),t.on("destroy",function(){r.remove(e.Html.wrapper.children)}),r}function Ld(n){if(n&&n.parentNode){for(var e=n.parentNode.firstChild,t=[];e;e=e.nextSibling)e.nodeType===1&&e!==n&&t.push(e);return t}return[]}function hl(n){return Array.prototype.slice.call(n)}var op='[data-glide-el="track"]';function os(n,e,t){var r={mount:function(){this.root=n.selector,this.track=this.root.querySelector(op),this.collectSlides()},collectSlides:function(){this.slides=hl(this.wrapper.children).filter(function(a){return!a.classList.contains(n.settings.classes.slide.clone)})}};return Dn(r,"root",{get:function(){return r._r},set:function(a){Od(a)&&(a=document.querySelector(a)),a!==null?r._r=a:bi("Root element must be a existing Html node")}}),Dn(r,"track",{get:function(){return r._t},set:function(a){r._t=a}}),Dn(r,"wrapper",{get:function(){return r.track.children[0]}}),t.on("update",function(){r.collectSlides()}),r}function Ki(n,e,t){var r={mount:function(){this.value=n.settings.peek}};return Dn(r,"value",{get:function(){return r._v},set:function(a){so(a)?(a.before=vr(a.before),a.after=vr(a.after)):a=vr(a),r._v=a}}),Dn(r,"reductor",{get:function(){var a=r.value,s=n.settings.perView;return so(a)?a.before/s+a.after/s:a*2/s}}),t.on(["resize","update"],function(){r.mount()}),r}function kc(n,e,t){var r={mount:function(){this._o=0},make:function(){var a=this,s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.offset=s,t.emit("move",{movement:this.value}),e.Transition.after(function(){t.emit("move.after",{movement:a.value})})}};return Dn(r,"offset",{get:function(){return r._o},set:function(a){r._o=sp(a)?0:vr(a)}}),Dn(r,"translate",{get:function(){return e.Sizes.slideWidth*n.index}}),Dn(r,"value",{get:function(){var a=this.offset,s=this.translate;return e.Direction.is("rtl")?s+a:s-a}}),t.on(["build.before","run"],function(){r.make()}),r}function r1(n,e,t){var r={setupSlides:function(){for(var a="".concat(this.slideWidth,"px"),s=e.Html.slides,c=0;c<s.length;c++)s[c].style.width=a},setupWrapper:function(){e.Html.wrapper.style.width="".concat(this.wrapperSize,"px")},remove:function(){for(var a=e.Html.slides,s=0;s<a.length;s++)a[s].style.width="";e.Html.wrapper.style.width=""}};return Dn(r,"length",{get:function(){return e.Html.slides.length}}),Dn(r,"width",{get:function(){return e.Html.track.offsetWidth}}),Dn(r,"wrapperSize",{get:function(){return r.slideWidth*r.length+e.Gaps.grow+e.Clones.grow}}),Dn(r,"slideWidth",{get:function(){return r.width/n.settings.perView-e.Peek.reductor-e.Gaps.reductor}}),t.on(["build.before","resize","update"],function(){r.setupSlides(),r.setupWrapper()}),t.on("destroy",function(){r.remove()}),r}function Lv(n,e,t){var r={mount:function(){t.emit("build.before"),this.typeClass(),this.activeClass(),t.emit("build.after")},typeClass:function(){e.Html.root.classList.add(n.settings.classes.type[n.settings.type])},activeClass:function(){var a=n.settings.classes,s=e.Html.slides[n.index];
192s&&(s.classList.add(a.slide.active),Ld(s).forEach(function(c){c.classList.remove(a.slide.active)}))},removeClasses:function(){var a=n.settings.classes,s=a.type,c=a.slide;e.Html.root.classList.remove(s[n.settings.type]),e.Html.slides.forEach(function(u){u.classList.remove(c.active)})}};return t.on(["destroy","update"],function(){r.removeClasses()}),t.on(["resize","update"],function(){r.mount()}),t.on("move.after",function(){r.activeClass()}),r}function Av(n,e,t){var r={mount:function(){this.items=[],n.isType("carousel")&&(this.items=this.collect())},collect:function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],s=e.Html.slides,c=n.settings,u=c.perView,f=c.classes,h=c.cloningRatio;if(s.length>0)for(var g=+!!n.settings.peek,v=u+g+Math.round(u/2),y=s.slice(0,v).reverse(),_=s.slice(v*-1),w=0;w<Math.max(h,Math.floor(u/s.length));w++){for(var x=0;x<y.length;x++){var S=y[x].cloneNode(!0);S.classList.add(f.slide.clone),a.push(S)}for(var T=0;T<_.length;T++){var M=_[T].cloneNode(!0);M.classList.add(f.slide.clone),a.unshift(M)}}return a},append:function(){for(var a=this.items,s=e.Html,c=s.wrapper,u=s.slides,f=Math.floor(a.length/2),h=a.slice(0,f).reverse(),g=a.slice(f*-1).reverse(),v="".concat(e.Sizes.slideWidth,"px"),y=0;y<g.length;y++)c.appendChild(g[y]);for(var _=0;_<h.length;_++)c.insertBefore(h[_],u[0]);for(var w=0;w<a.length;w++)a[w].style.width=v},remove:function(){for(var a=this.items,s=0;s<a.length;s++)e.Html.wrapper.removeChild(a[s])}};return Dn(r,"grow",{get:function(){return(e.Sizes.slideWidth+e.Gaps.value)*r.items.length}}),t.on("update",function(){r.remove(),r.mount(),r.append()}),t.on("build.before",function(){n.isType("carousel")&&r.append()}),t.on("destroy",function(){r.remove()}),r}var Ca=(function(){function n(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ll(this,n),this.listeners=e}return Tc(n,[{key:"on",value:function(t,r,i){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;Od(t)&&(t=[t]);for(var s=0;s<t.length;s++)this.listeners[t[s]]=i,r.addEventListener(t[s],this.listeners[t[s]],a)}},{key:"off",value:function(t,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;Od(t)&&(t=[t]);for(var a=0;a<t.length;a++)r.removeEventListener(t[a],this.listeners[t[a]],i)}},{key:"destroy",value:function(){delete this.listeners}}]),n})();function Rv(n,e,t){var r=new Ca,i={mount:function(){this.bind()},bind:function(){r.on("resize",window,kd(function(){t.emit("resize")},n.settings.throttle))},unbind:function(){r.off("resize",window)}};return t.on("destroy",function(){i.unbind(),r.destroy()}),i}var i1=["ltr","rtl"],lp={">":"<","<":">","=":"="};function Iv(n,e,t){var r={mount:function(){this.value=n.settings.direction},resolve:function(a){var s=a.slice(0,1);return this.is("rtl")?a.split(s).join(lp[s]):a},is:function(a){return this.value===a},addClass:function(){e.Html.root.classList.add(n.settings.classes.direction[this.value])},removeClass:function(){e.Html.root.classList.remove(n.settings.classes.direction[this.value])}};return Dn(r,"value",{get:function(){return r._v},set:function(a){i1.indexOf(a)>-1?r._v=a:bi("Direction value must be `ltr` or `rtl`")}}),t.on(["destroy","update"],function(){r.removeClass()}),t.on("update",function(){r.mount()}),t.on(["build.before","update"],function(){r.addClass()}),r}function Nv(n,e){return{modify:function(r){return e.Direction.is("rtl")?-r:r}}}function a1(n,e){return{modify:function(r){var i=Math.floor(r/e.Sizes.slideWidth);return r+e.Gaps.value*i}}}function cp(n,e){return{modify:function(r){return r+e.Clones.grow/2}}}function up(n,e){return{modify:function(r){if(n.settings.focusAt>=0){var i=e.Peek.value;return so(i)?r-i.before:r-i}return r}}}function s1(n,e){return{modify:function(r){var i=e.Gaps.value,a=e.Sizes.width,s=n.settings.focusAt,c=e.Sizes.slideWidth;return s==="center"?r-(a/2-c/2):r-c*s-i*s}}}function o1(n,e,t){var r=[a1,cp,up,s1].concat(n._t,[Nv]);return{mutate:function(a){for(var s=0;s<r.length;s++){var c=r[s];Dc(c)&&Dc(c().modify)?a=c(n,e,t).modify(a):bi("Transformer should be a function that returns an object with `modify()` method")}return a}}}function Lc(n,e,t){var r={set:function(a){var s=o1(n,e).mutate(a),c="translate3d(".concat(-1*s,"px, 0px, 0px)");e.Html.wrapper.style.mozTransform=c,e.Html.wrapper.style.webkitTransform=c,e.Html.wrapper.style.transform=c},remove:function(){e.Html.wrapper.style.transform=""}
192,getStartIndex:function(){var a=e.Sizes.length,s=n.index,c=n.settings.perView;return e.Run.isOffset(">")||e.Run.isOffset("|>")?a+(s-c):(s+c)%a},getTravelDistance:function(){var a=e.Sizes.slideWidth*n.settings.perView;return e.Run.isOffset(">")||e.Run.isOffset("|>")?a*-1:a}};return t.on("move",function(i){if(!n.isType("carousel")||!e.Run.isOffset())return r.set(i.movement);e.Transition.after(function(){t.emit("translate.jump"),r.set(e.Sizes.slideWidth*n.index)});var a=e.Sizes.slideWidth*e.Translate.getStartIndex();return r.set(a-e.Translate.getTravelDistance())}),t.on("destroy",function(){r.remove()}),r}function l1(n,e,t){var r=!1,i={compose:function(s){var c=n.settings;return r?"".concat(s," 0ms ").concat(c.animationTimingFunc):"".concat(s," ").concat(this.duration,"ms ").concat(c.animationTimingFunc)},set:function(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"transform";e.Html.wrapper.style.transition=this.compose(s)},remove:function(){e.Html.wrapper.style.transition=""},after:function(s){setTimeout(function(){s()},this.duration)},enable:function(){r=!1,this.set()},disable:function(){r=!0,this.set()}};return Dn(i,"duration",{get:function(){var s=n.settings;return n.isType("slider")&&e.Run.offset?s.rewindDuration:s.animationDuration}}),t.on("move",function(){i.set()}),t.on(["build.before","resize","translate.jump"],function(){i.disable()}),t.on("run",function(){i.enable()}),t.on("destroy",function(){i.remove()}),i}var dp=!1;try{var Bt=Object.defineProperty({},"passive",{get:function(){dp=!0}});window.addEventListener("testPassive",null,Bt),window.removeEventListener("testPassive",null,Bt)}catch{}var Ac=dp,lo=["touchstart","mousedown"],Ad=["touchmove","mousemove"],fp=["touchend","touchcancel","mouseup","mouseleave"],Rd=["mousedown","mousemove","mouseup","mouseleave"];function Rc(n,e,t){var r=new Ca,i=0,a=0,s=0,c=!1,u=Ac?{passive:!0}:!1,f={mount:function(){this.bindSwipeStart()},start:function(g){if(!c&&!n.disabled){this.disable();var v=this.touches(g);i=null,a=vr(v.pageX),s=vr(v.pageY),this.bindSwipeMove(),this.bindSwipeEnd(),t.emit("swipe.start")}},move:function(g){if(!n.disabled){var v=n.settings,y=v.touchAngle,_=v.touchRatio,w=v.classes,x=this.touches(g),S=vr(x.pageX)-a,T=vr(x.pageY)-s,M=Math.abs(S<<2),C=Math.abs(T<<2),k=Math.sqrt(M+C),L=Math.sqrt(C);if(i=Math.asin(L/k),i*180/Math.PI<y)g.stopPropagation(),e.Move.make(S*Mv(_)),e.Html.root.classList.add(w.dragging),t.emit("swipe.move");else return!1}},end:function(g){if(!n.disabled){var v=n.settings,y=v.perSwipe,_=v.touchAngle,w=v.classes,x=this.touches(g),S=this.threshold(g),T=x.pageX-a,M=i*180/Math.PI;this.enable(),T>S&&M<_?e.Run.make(e.Direction.resolve("".concat(y,"<"))):T<-S&&M<_?e.Run.make(e.Direction.resolve("".concat(y,">"))):e.Move.make(),e.Html.root.classList.remove(w.dragging),this.unbindSwipeMove(),this.unbindSwipeEnd(),t.emit("swipe.end")}},bindSwipeStart:function(){var g=this,v=n.settings,y=v.swipeThreshold,_=v.dragThreshold;y&&r.on(lo[0],e.Html.wrapper,function(w){g.start(w)},u),_&&r.on(lo[1],e.Html.wrapper,function(w){g.start(w)},u)},unbindSwipeStart:function(){r.off(lo[0],e.Html.wrapper,u),r.off(lo[1],e.Html.wrapper,u)},bindSwipeMove:function(){var g=this;r.on(Ad,e.Html.wrapper,kd(function(v){g.move(v)},n.settings.throttle),u)},unbindSwipeMove:function(){r.off(Ad,e.Html.wrapper,u)},bindSwipeEnd:function(){var g=this;r.on(fp,e.Html.wrapper,function(v){g.end(v)})},unbindSwipeEnd:function(){r.off(fp,e.Html.wrapper)},touches:function(g){return Rd.indexOf(g.type)>-1?g:g.touches[0]||g.changedTouches[0]},threshold:function(g){var v=n.settings;return Rd.indexOf(g.type)>-1?v.dragThreshold:v.swipeThreshold},enable:function(){return c=!1,e.Transition.enable(),this},disable:function(){return c=!0,e.Transition.disable(),this}};return t.on("build.after",function(){e.Html.root.classList.add(n.settings.classes.swipeable)}),t.on("destroy",function(){f.unbindSwipeStart(),f.unbindSwipeMove(),f.unbindSwipeEnd(),r.destroy()}),f}function Id(n,e,t){var r=new Ca,i={mount:function(){this.bind()},bind:function(){r.on("dragstart",e.Html.wrapper,this.dragstart)},unbind:function(){r.off("dragstart",e.Html.wrapper)},dragstart:function(s){s.preventDefault()}};return t.on("destroy",function(){i.unbind(),r.destroy()}),i}function c1(n,e,t){var r=new Ca,i=!1,a=!1,s={mount:function(){this._a=e.Html.wrapper.querySelectorAll("a"),this.bind()},bind:function(){r.on("click",e.Html.wrapper,this.click)},unbind:function(){r.off("click",e.Html.wrapper)},click:function(u){a&&(u.stopPropagation(),u.preventDefault())},detach:function(){if(a=!0,!i){for(var u=0;u<this.items.length;u++)this.items[u].draggable=!1;i=!0}return this},attach:function(){if(a=!1,i){for(var u=0;u<this.items.length;u++)this.items[u].draggable=!0;i=!1}return this}};return Dn(s,"items",{get:function(){return s._a}}),t.on("swipe.move",function(){s.detach()}),t.on("swipe.end",function(){e.Transition.after(function(){s.attach()})}),t.on("destroy",function(){s.attach(),s.unbind(),r.destroy()}),s}
192var Pv='[data-glide-el="controls[nav]"]',hp='[data-glide-el^="controls"]',u1="".concat(hp,' [data-glide-dir*="<"]'),Bv="".concat(hp,' [data-glide-dir*=">"]');function Hv(n,e,t){var r=new Ca,i=Ac?{passive:!0}:!1,a={mount:function(){this._n=e.Html.root.querySelectorAll(Pv),this._c=e.Html.root.querySelectorAll(hp),this._arrowControls={previous:e.Html.root.querySelectorAll(u1),next:e.Html.root.querySelectorAll(Bv)},this.addBindings()},setActive:function(){for(var c=0;c<this._n.length;c++)this.addClass(this._n[c].children)},removeActive:function(){for(var c=0;c<this._n.length;c++)this.removeClass(this._n[c].children)},addClass:function(c){var u=n.settings,f=c[n.index];f&&(f.classList.add(u.classes.nav.active),Ld(f).forEach(function(h){h.classList.remove(u.classes.nav.active)}))},removeClass:function(c){var u=c[n.index];u?.classList.remove(n.settings.classes.nav.active)},setArrowState:function(){if(!n.settings.rewind){var c=a._arrowControls.next,u=a._arrowControls.previous;this.resetArrowState(c,u),n.index===0&&this.disableArrow(u),n.index===e.Run.length&&this.disableArrow(c)}},resetArrowState:function(){for(var c=n.settings,u=arguments.length,f=new Array(u),h=0;h<u;h++)f[h]=arguments[h];f.forEach(function(g){hl(g).forEach(function(v){v.classList.remove(c.classes.arrow.disabled)})})},disableArrow:function(){for(var c=n.settings,u=arguments.length,f=new Array(u),h=0;h<u;h++)f[h]=arguments[h];f.forEach(function(g){hl(g).forEach(function(v){v.classList.add(c.classes.arrow.disabled)})})},addBindings:function(){for(var c=0;c<this._c.length;c++)this.bind(this._c[c].children)},removeBindings:function(){for(var c=0;c<this._c.length;c++)this.unbind(this._c[c].children)},bind:function(c){for(var u=0;u<c.length;u++)r.on("click",c[u],this.click),r.on("touchstart",c[u],this.click,i)},unbind:function(c){for(var u=0;u<c.length;u++)r.off(["click","touchstart"],c[u])},click:function(c){!Ac&&c.type==="touchstart"&&c.preventDefault();var u=c.currentTarget.getAttribute("data-glide-dir");e.Run.make(e.Direction.resolve(u))}};return Dn(a,"items",{get:function(){return a._c}}),t.on(["mount.after","move.after"],function(){a.setActive()}),t.on(["mount.after","run"],function(){a.setArrowState()}),t.on("destroy",function(){a.removeBindings(),a.removeActive(),r.destroy()}),a}function pn(n,e,t){var r=new Ca,i={mount:function(){n.settings.keyboard&&this.bind()},bind:function(){r.on("keyup",document,this.press)},unbind:function(){r.off("keyup",document)},press:function(s){var c=n.settings.perSwipe,u={ArrowRight:">",ArrowLeft:"<"};["ArrowRight","ArrowLeft"].includes(s.code)&&e.Run.make(e.Direction.resolve("".concat(c).concat(u[s.code])))}};return t.on(["destroy","update"],function(){i.unbind()}),t.on("update",function(){i.mount()}),t.on("destroy",function(){r.destroy()}),i}function pp(n,e,t){var r=new Ca,i={mount:function(){this.enable(),this.start(),n.settings.hoverpause&&this.bind()},enable:function(){this._e=!0},disable:function(){this._e=!1},start:function(){var s=this;this._e&&(this.enable(),n.settings.autoplay&&sp(this._i)&&(this._i=setInterval(function(){s.stop(),e.Run.make(">"),s.start(),t.emit("autoplay")},this.time)))},stop:function(){this._i=clearInterval(this._i)},bind:function(){var s=this;r.on("mouseover",e.Html.root,function(){s._e&&s.stop()}),r.on("mouseout",e.Html.root,function(){s._e&&s.start()})},unbind:function(){r.off(["mouseover","mouseout"],e.Html.root)}};return Dn(i,"time",{get:function(){var s=e.Html.slides[n.index].getAttribute("data-glide-autoplay");return vr(s||n.settings.autoplay)}}),t.on(["destroy","update"],function(){i.unbind()}),t.on(["run.before","swipe.start","update"],function(){i.stop()}),t.on(["pause","destroy"],function(){i.disable(),i.stop()}),t.on(["run.after","swipe.end"],function(){i.start()}),t.on(["play"],function(){i.enable(),i.start()}),t.on("update",function(){i.mount()}),t.on("destroy",function(){r.destroy()}),i}function yr(n){return so(n)?cn(n):(bi("Breakpoints option must be an object"),{})}function d1(n,e,t){var r=new Ca,i=n.settings,a=yr(i.breakpoints),s=Object.assign({},i),c={match:function(f){if(typeof window.matchMedia<"u"){for(var h in f)if(f.hasOwnProperty(h)&&window.matchMedia("(max-width: ".concat(h,"px)")).matches)return f[h]}return s}};return Object.assign(i,c.match(a)),r.on("resize",window,kd(function(){n.settings=Oc(i,c.match(a))},n.settings.throttle)),t.on("update",function(){a=yr(a),s=Object.assign({},i)}),t.on("destroy",function(){r.off("resize",window)}),c}var zv={Html:os,Translate:Lc,Transition:l1,Direction:Iv,Peek:Ki,Sizes:r1,Gaps:fl,Move:kc,Clones:Av,Resize:Rv,Build:Lv,Run:n1,Swipe:Rc,Images:Id,Anchors:c1,Controls:Hv,Keyboard:pn,Autoplay:pp,Breakpoints:d1},f1=(function(n){Cv(t,n);var e=e1(t);function t(){return ll(this,t),e.apply(this,arguments)}
192return Tc(t,[{key:"mount",value:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Mc(ao(t.prototype),"mount",this).call(this,Object.assign({},zv,i))}}]),t})(Ov);const mp=(n=>{const e=window.location.hash.startsWith("#slide-");let t=!1,r=!1,i=null;const a=_=>{var w;if(window.innerWidth>=992||!r)return;const x=n.querySelector(".glide__slide--active");if(!x){r=!1;return}const T=Array.from(n.querySelectorAll(".glide__slide")).indexOf(x),M=T>=0?T:_;if(M===i){r=!1;return}const C=x.querySelector(".glide__content h2"),k=((w=C?.textContent)===null||w===void 0?void 0:w.trim())||`slide_${M+1}`,L=x.dataset.analyticsViewInteractive||x.dataset.analyticsView;if(L){const B=Cc(L);B&&typeof B=="object"&&(Dr(B,{contentTitle:k,slideIndex:M,slideIndexOneBased:M+1}),gr().push(B),i=M),r=!1;return}const O=x.querySelector("[data-interactive-analytics]");if(!O){try{const B=gr(),H={event:"show.content",contentTitle:k};B.push(H),i=M}catch{}finally{r=!1}return}const I=O.getAttribute("data-interactive-analytics");if(!I){try{const B=gr(),H={event:"show.content",contentTitle:k};B.push(H),i=M}finally{r=!1}return}const P=Cc(I);P&&typeof P=="object"&&(Dr(P,{contentTitle:k,slideIndex:M,slideIndexOneBased:M+1}),gr().push(P),i=M),r=!1},s=()=>{var _;if(window.innerWidth>=992)return;const w=n.querySelector(".glide__slide--active");if(!w)return;const S=Array.from(n.querySelectorAll(".glide__slide")).indexOf(w),T=w.querySelector(".glide__content h2"),M=((_=T?.textContent)===null||_===void 0?void 0:_.trim())||`slide_${S+1}`,C=gr(),k=w.dataset.analyticsViewInteractive||w.dataset.analyticsView;if(k){const O=Cc(k);if(O&&typeof O=="object"){Dr(O,{contentTitle:M,slideIndex:S,slideIndexOneBased:S+1}),C.push(O),i=S;return}}const L={event:"show.content",slideIndex:S,slideIndexOneBased:S+1,contentTitle:M,component:"interactiveComponentMobile"};C.push(L),i=S},c=()=>{const _=document.querySelectorAll(".glide__content");let w=0;_.forEach(x=>{const S=x.offsetHeight;S>w&&(w=S)}),_.forEach(x=>{x.style.height=`${w}px`})},u=_=>{window.history.replaceState(null,"",`#slide-${_+1}`)},f=_=>/^#slide-(\d+)$/.test(_),h=()=>{const{hash:_}=window.location;if(_&&f(_)){const w=parseInt(_.replace("#slide-",""),10)-1;return Number.isNaN(w)?0:w}return 0},g=_=>{n.querySelectorAll(".glide__slide").forEach((x,S)=>{const T=x.querySelector("video");T&&(S===_?T.play():T.currentTime=0)})},v=()=>window.innerWidth<=991,y=n.querySelectorAll(".glide__content");if(v()&&y.length>1){const _=new f1(n,{type:"carousel",gap:16,peek:48,startAt:h()});_.on("move.after",()=>{t||e?u(_.index):t=!0,g(_.index)}),_.on("run.after",()=>{setTimeout(()=>a(_.index),30)});const w=n.querySelector(".glide__arrow--right");w&&w.addEventListener("click",()=>{r=!0});const x=n.querySelector(".glide__arrow--left");if(x&&x.addEventListener("click",()=>{r=!0}),_.on("swipe.end",()=>{r=!0}),_.mount(),c(),window.addEventListener("resize",()=>{v()?c():y.forEach(S=>{const T=S;T.style.height=""})}),window.addEventListener("hashchange",()=>{const{hash:S}=window.location;if(!f(S))return;const T=h();_.index!==T&&_.go(`=${T}`),n.scrollIntoView({behavior:"smooth",block:"start"})}),e){const S=h();setTimeout(()=>{g(S),n.scrollIntoView({behavior:"smooth",block:"start"}),s()},120)}else setTimeout(()=>{s()},120)}else if(y.length<=1){const _=n.querySelector(".glide");_&&_.classList.add("p-8");const w=n.querySelector(".glide__bullets");w&&w.classList.add("hidden");const x=n.querySelector(".glide__arrows");x&&x.classList.add("hidden"),n.classList.add("!mb-4")}}),Nd=n=>{const e=n;e.dataset.buttonlink&&(e.href=e.dataset.buttonlink)},Vv=n=>{const e=r=>{const i=n.querySelectorAll("input[type='checkbox']");if(Array.from(i).some(s=>s.checked))n.submit();else{const s=n.querySelector(".js-form-unsubscribe-message");s&&s.classList.remove("hidden"),r.preventDefault()}},t=n.querySelector("input[type='submit']");t&&t.addEventListener("click",e)};var gp=sn(866),Ta=sn.n(gp),Yv=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(n);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(n,r[i])&&(t[r[i]]=n[r[
192i]]);return t};const jv=({parentProps:n,children:e})=>{const{template:t,href:r,isDisabled:i,isLoading:a,onClick:s,target:c,type:u="submit",prefix:f,suffix:h,dataTestId:g}=n,v=Yv(n,["template","href","isDisabled","isLoading","onClick","target","type","prefix","suffix","dataTestId"]),y=Ta()("btn",`btn--${t}`,{"btn--disabled":i,"btn--loading":a,"btn--w-prefix":!!f,"btn--w-suffix":!!h}),_=()=>{i||a||s&&s()};return r?p.createElement("a",Object.assign({className:y,href:r,target:c,onClick:_},v),e):p.createElement("button",Object.assign({className:y,disabled:i,type:u,onClick:_,"data-testid":g},v),e)},Ri=n=>{var{title:e}=n,t=Yv(n,["title"]);return p.createElement(jv,{parentProps:t},t?.prefix&&p.createElement(uo,{name:t.prefix,className:"btn__prefix"}),p.createElement("span",null,e),t?.suffix&&p.createElement(uo,{name:t.suffix,className:"btn__suffix"}))},Wv="bg-transparent",Pd="info-circle-grey",qn=({type:n=Ce.Info,title:e,text:t,className:r="",noPadding:i,alertSource:a="0",textAttributes:s})=>{const c=()=>n===Ce.Info?Wv:n===Ce.Warning?"bg-white":n===Ce.Error?"bg-red-5":n===Ce.Success?"bg-success-background":Wv,u=()=>n===Ce.Info?Pd:n===Ce.Warning?"info-circle-red":n===Ce.Error?"cross-mark":n===Ce.Success?"check-circle":Pd,f=()=>n===Ce.Info?"fill-grey-80":n===Ce.Warning||n===Ce.Error?"fill-red-corporate":n===Ce.Success?"fill-success-icon":Pd,h=()=>n===Ce.Info||n===Ce.Warning||n===Ce.Error||n===Ce.Success?e:Pd;return p.createElement("div",{"data-testid":`alert-${a}`,className:`flex items-start rounded-sm ${i?"p-0":"py-3 px-4"} ${c()} ${r}`},p.createElement(uo,{name:u(),className:`mr-3 h-6 w-6 shrink-0 ${f()}`}),p.createElement("div",Object.assign({className:"break-words text-xs"},s),e&&p.createElement("span",{className:"mr-1 font-bold"},h(),":"),t))},uo=({name:n,className:e,svgAttributes:t,altText:r})=>{switch(n){case"info-circle-grey":return p.createElement("svg",Object.assign({className:e,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},t),p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1 12C1 5.94772 5.94772 1 12 1C18.0523 1 23 5.94772 23 12C23 18.0523 18.0523 23 12 23C5.94772 23 1 18.0523 1 12ZM12 3C7.05228 3 3 7.05228 3 12C3 16.9477 7.05228 21 12 21C16.9477 21 21 16.9477 21 12C21 7.05228 16.9477 3 12 3Z"}),p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.9961 10L10.9961 16H9.5V18L10.9961 18H12.9961H14.5V16H12.9961L12.9961 10H10.9961Z"}),p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.2539 8C13.2539 8.69036 12.6943 9.25 12.0039 9.25L11.9949 9.25C11.3046 9.25 10.7449 8.69036 10.7449 8C10.7449 7.30964 11.3046 6.75 11.9949 6.75L12.0039 6.75C12.6943 6.75 13.2539 7.30964 13.2539 8Z"}));case"info-circle-red":return p.createElement("svg",Object.assign({className:e,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},t),p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.25 12C1.25 6.08579 6.08579 1.25 12 1.25C17.9142 1.25 22.75 6.08579 22.75 12C22.75 17.9142 17.9142 22.75 12 22.75C6.08579 22.75 1.25 17.9142 1.25 12ZM12 2.75C6.91421 2.75 2.75 6.91421 2.75 12C2.75 17.0858 6.91421 21.25 12 21.25C17.0858 21.25 21.25 17.0858 21.25 12C21.25 6.91421 17.0858 2.75 12 2.75Z",fill:"#E00000"}),p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.2461 17.75L11.2461 10.25H12.74
19261L12.7461 17.75H11.2461Z",fill:"#E00000"}),p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.25 17.75H9.75V16.25H14.25V17.75Z",fill:"#E00000"}),p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.0039 8C13.0039 8.55228 12.5562 9 12.0039 9H11.9949C11.4426 9 10.9949 8.55228 10.9949 8C10.9949 7.44772 11.4426 7 11.9949 7H12.0039C12.5562 7 13.0039 7.44772 13.0039 8Z",fill:"#E00000"}));case"cross-mark":return p.createElement("svg",Object.assign({className:e,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},t),p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.58124 1.33657C8.04449 1.14405 8.58829 1 9.10001 1H14.9C15.4117 1 15.9555 1.14405 16.4188 1.33657C16.8822 1.52916 17.3668 1.81256 17.7271 2.1729L17.0249 2.87513L17.7271 2.1729L21.8271 6.27291C22.1874 6.63324 22.4708 7.11782 22.6634 7.58124C22.8559 8.04449 23 8.58829 23 9.10001V14.9C23 15.4117 22.8559 15.9555 22.6634 16.4188C22.4708 16.8822 22.1874 17.3668 21.8271 17.7271L17.7271 21.8271C17.3668 22.1874 16.8822 22.4708 16.4188 22.6634C15.9555 22.8559 15.4117 23 14.9 23H9.10001C8.58829 23 8.04449 22.8559 7.58124 22.6634C7.11781 22.4708 6.63323 22.1874 6.27289 21.8271L6.98 21.12L6.27289 21.8271L2.1729 17.7271C1.81256 17.3668 1.52917 16.8822 1.33657 16.4188C1.14405 15.9555 1 15.4117 1 14.9V9.10001C1 8.58829 1.14405 8.04449 1.33657 7.58124C1.52917 7.11782 1.81256 6.63324 2.1729 6.27291L6.27289 2.1729L6.98 2.88L6.27289 2.1729C6.63323 1.81256 7.11781 1.52916 7.58124 1.33657ZM8.34876 3.18343C8.04218 3.31084 7.80676 3.46745 7.6871 3.58711L3.58711 7.68712L2.88 6.98001L3.58711 7.68712C3.46745 7.80678 3.31084 8.0422 3.18343 8.34878C3.05595 8.65552 3 8.93173 3 9.10001V14.9C3 15.0683 3.05595 15.3445 3.18343 15.6512C3.31084 15.9578 3.46745 16.1932 3.58711 16.3129L7.6871 20.4129C7.80676 20.5325 8.04218 20.6892 8.34876 20.8166C8.65552 20.944 8.93172 21 9.10001 21H14.9C15.0683 21 15.3445 20.944 15.6512 20.8166C15.9578 20.6892 16.1932 20.5325 16.3129 20.4129L20.4129 16.3129C20.5325 16.1932 20.6892 15.9578 20.8166 15.6512C20.944 15.3445 21 15.0683 21 14.9V9.10001C21 8.93173 20.944 8.65552 20.8166 8.34878C20.6892 8.0422 20.5325 7.80678 20.4129 7.68712L16.3129 3.58711C16.1932 3.46745 15.9578 3.31084 15.6512 3.18343C15.3445 3.05595 15.0683 3 14.9 3H9.10001C8.93172 3 8.65552 3.05595 8.34876 3.18343Z"}),p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.4142 12L16.9142 8.50003L15.5 7.08582L12 10.5858L8.5 7.08582L7.08578 8.50003L10.5858 12L7.08578 15.5L8.5 16.9142L12 13.4142L15.5 16.9142L16.9142 15.5L13.4142 12Z"}));case"check-circle":return p.createElement("svg",Object.assign({className:e,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},t),p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.9996 3.00037C7.02927 3.00037 3 7.02963 3 12C3 16.9703 7.02927 20.9996 11.9996 20.9996C16.97 20.9996 20.9992 16.9703 20.9992 12C20.9992 7.02963 16.97 3.00037 11.9996 3.00037ZM1 12C1 5.92506 5.9247 1.00037 11.9996 1.00037C18.0745 1.00037 22.9992 5.92506 22.9992 12C22.9992 18.0749 18.0745 22.9996 11.9996 22.9996C5.9247 22.9996 1 18.0749 1 12Z",fill:"#267C29"}),p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.6642 9.17126L11.2865 15.5377C10.8959 15.9277 10.2632 15.9274 9.87292 15.5371L6.33582 12L7.75003 10.5858L10.5807 13.4164L16.2513 7.7558L17.6642 9.17126Z",fill:"#267C29"}));case"flag_icon_hu":return p.createElement("svg",Object.assign({className:e,"aria-label":r,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg"},t),p.createElement("g",{clipPath:"url(#clip0_20915_38712)"}," ",p.createElement("path",{d:"M0.995188 10.4348C0.352063 12.1681 0 14.0428 0 16C0 17.9571 0.352063 19.8319 0.995188 21.5651L16 22.9565L31.0048 21.5651C31.6479 19.8319 32 17.9571 32 16C32 14.0428 31.6479 12.1681 31.0048 10.4348L16 9.04346L0.995188 10.4348Z",fill:"#F0F0F0"})," ",p.createElement("path",{d:"M16.0001 0C9.12073 0 3.25599 4.342 0.995361 10.4348H31.005C28.7442 4.342 22.8796 0 16.0001 0Z",fill:"#D80027"})," ",p.createElement("path",{d:"M16.0001 32.0002C22.8796 32.0002 28.7442 27.6582 31.005 21.5654H0.995361C3.25599 27.6582 9.12073 32.0002 16.0001 32.0002Z",fill:"#6DA544"})," ")," ",p.createElement("defs",null," ",p.createElement("clipPath",{id:"clip0_20915_38712"}," ",p.createElement("rect",{width:"32",height:"32",fill:"white"})," ")," "));case"flag_icon_jp":return p.createElement("svg",Object.assign({className:e,"aria-label":r,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg"}
192,t),p.createElement("g",{clipPath:"url(#clip0_20915_38700)"}," ",p.createElement("path",{d:"M16 32C24.8366 32 32 24.8366 32 16C32 7.16344 24.8366 0 16 0C7.16344 0 0 7.16344 0 16C0 24.8366 7.16344 32 16 32Z",fill:"#F0F0F0"})," ",p.createElement("path",{d:"M16 22.9565C19.8419 22.9565 22.9565 19.8419 22.9565 16C22.9565 12.158 19.8419 9.04346 16 9.04346C12.158 9.04346 9.04346 12.158 9.04346 16C9.04346 19.8419 12.158 22.9565 16 22.9565Z",fill:"#D80027"})," ")," ",p.createElement("defs",null," ",p.createElement("clipPath",{id:"clip0_20915_38700"}," ",p.createElement("rect",{width:"32",height:"32",fill:"white"})," ")," "));case"flag_icon_ru":return p.createElement("svg",Object.assign({className:e,"aria-label":r,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg"},t),p.createElement("g",{clipPath:"url(#clip0_20915_38736)"}," ",p.createElement("path",{d:"M16 32C24.8366 32 32 24.8366 32 16C32 7.16344 24.8366 0 16 0C7.16344 0 0 7.16344 0 16C0 24.8366 7.16344 32 16 32Z",fill:"#F0F0F0"})," ",p.createElement("path",{d:"M31.0048 21.5649C31.648 19.8316 32 17.9569 32 15.9998C32 14.0426 31.648 12.1679 31.0048 10.4346H0.995188C0.352063 12.1679 0 14.0426 0 15.9998C0 17.9569 0.352063 19.8316 0.995188 21.5649L16 22.9563L31.0048 21.5649Z",fill:"#0052B4"})," ",p.createElement("path",{d:"M15.9999 32.0002C22.8794 32.0002 28.7441 27.6582 31.0047 21.5654H0.995117C3.2558 27.6582 9.12049 32.0002 15.9999 32.0002Z",fill:"#D80027"})," ")," ",p.createElement("defs",null," ",p.createElement("clipPath",{id:"clip0_20915_38736"}," ",p.createElement("rect",{width:"32",height:"32",fill:"white"})," ")," "));case"flag_icon_ch":return p.createElement("svg",Object.assign({className:e,"aria-label":r,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg"},t),p.createElement("g",{clipPath:"url(#clip0_20915_38754)"}," ",p.createElement("path",{d:"M16 32C24.8366 32 32 24.8366 32 16C32 7.16344 24.8366 0 16 0C7.16344 0 0 7.16344 0 16C0 24.8366 7.16344 32 16 32Z",fill:"#D80027"})," ",p.createElement("path",{d:"M24.3477 13.2176H18.7825V7.65234H13.2173V13.2176H7.6521V18.7828H13.2173V24.348H18.7825V18.7828H24.3477V13.2176Z",fill:"#F0F0F0"})," ")," ",p.createElement("defs",null," ",p.createElement("clipPath",{id:"clip0_20915_38754"}," ",p.createElement("rect",{width:"32",height:"32",fill:"white"})," ")," "));case"flag_icon_pl":return p.createElement("svg",Object.assign({className:e,"aria-label":r,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg"},t),p.createElement("g",{clipPath:"url(#clip0_20915_38724)"}," ",p.createElement("path",{d:"M16 32C24.8366 32 32 24.8366 32 16C32 7.16344 24.8366 0 16 0C7.16344 0 0 7.16344 0 16C0 24.8366 7.16344 32 16 32Z",fill:"#F0F0F0"})," ",p.createElement("path",{d:"M32 16C32 24.8365 24.8365 32 16 32C7.1635 32 0 24.8365 0 16",fill:"#D80027"})," ")," ",p.createElement("defs",null," ",p.createElement("clipPath",{id:"clip0_20915_38724"}," ",p.createElement("rect",{width:"32",height:"32",fill:"white"})," ")," "));case"flag_icon_au":return p.createElement("svg",Object.assign({className:e,"aria-label":r,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg"},t),p.createElement("g",{clipPath:"url(#clip0_20915_38665)"}," ",p.createElement("path",{d:"M32 16C32 24.8365 24.8365 32 16 32C7.1635 32 0 24.8365 0 16C0 16.0037 16 0.0018125 16 0C24.8365 0 32 7.1635 32 16Z",fill:"#0052B4"})," ",p.createElement("path",{d:"M15.9573 15.9998H16.0001C16.0001 15.9853 16.0001 15.9715 16.0001 15.957C15.9858 15.9713 15.9716 15.9856 15.9573 15.9998Z",fill:"#F0F0F0"})," ",p.createElement("path",{d:"M16 8.34781C16 5.5325 16 3.68769 16 0H15.9973C7.162 0.0014375 0 7.16425 0 15.9999H8.34781V11.2992L13.0486 15.9999H15.9572C15.9716 15.9857 15.9858 15.9714 16.0001 15.9571C16.0001 14.8792 16.0001 13.9174 16.0001 13.0486L11.2992 8.34781H16Z",fill:"#F0F0F0"})," ",p.createElement("path",{d:"M8.09467 2.08691C5.59223 3.51185 3.51185 5.59223 2.08691 8.09467V16H6.26085V6.26092V6.26085H16C16 4.94442 16 3.69029 16 2.08691H8.09467Z",fill:"#D80027"})," ",p.createElement("path",{d:"M16 14.0322L10.3155 8.34768H8.3479C8.3479 8.34762 8.3479 8.34768 8.3479 8.34768L16 15.9997H16C16 15.9997 16 14.6432 16 14.0322Z",fill:"#D80027"})," ",p.createElement("path",{d:"M9.64972 18.7827L10.5278 20.6188L12.5108 20.1605L11.6228 21.9919L13.2174 23.2565L11.232 23.704L11.2375 25.7392L9.64972 24.4659L8.06197 25.7392L8.06753 23.704L6.08203 23.2565L7.67672 21.9919L6.78859 20.1605L8.77166 20.6188L9.64972 18.7827Z",fill:"#F0F0F0"})," ",p.createElement("path",{d:"M23.9552 22.2607L24.3943 23.1788L25.3858 22.9496L24.9417 23.8653L25.7391 24.4976L24.7463 24.7214L24.7491 25.739L23.9552 25.1023L23.1613 25.739L23.1641 24.7214L22.1714 24.4976L22.9687 23.8653L22.5247 22.9496L23.5161 23.1788L23.9552 22.2607Z",fill:"#F0F0F0"})," ",p.createElement("path",{d:"M19.8708 12.522L20.3098 13.4401L21.3013 13.2108L20.8573 14.1265L21.6546 14.7588L20.6619 14.9826L20.6646 16.0002L19.8708 15.3635L19.0769 16.0002L19.0796 14.9826L18.0869 14.7588L18.8842 14.1265L18.4402 13.2108L19.4317 13.4401L19.8708 12.522Z",fill:"#F0F0F0"})," ",p.createElement("path",{d:"M23.9552 6.95654L24.3943 7.87467L25.3858 7.64548L24.9418 8.56117L25.739 9.19342L24.7463 9.41723L24.7491 10.4349L23.9552 9.79817L23.1613 10.4349L23.1641 9.41723L22.1714 9.19342L22.9686 8.56117L22.5247 7.64548L23.5161 7.87467L23.9552 6.95654Z",fill:"#F0F0F0"})," ",p.createElement("path",{d:"M27.5231 11.1304L27.9621 12.0485L28.9536 11.8192L28.5096 12.7349L29.3069 13.3672L28.3142 
19213.5911L28.3169 14.6086L27.5231 13.972L26.7293 14.6086L26.7319 13.5911L25.7393 13.3672L26.5366 12.7349L26.0926 11.8192L27.084 12.0485L27.5231 11.1304Z",fill:"#F0F0F0"})," ",p.createElement("path",{d:"M24.972 16L25.3173 17.0629H26.4349L25.5307 17.7198L25.8762 18.7826L24.972 18.1257L24.0678 18.7826L24.4132 17.7198L23.509 17.0629H24.6266L24.972 16Z",fill:"#F0F0F0"})," ")," ",p.createElement("defs",null," ",p.createElement("clipPath",{id:"clip0_20915_38665"}," ",p.createElement("rect",{width:"32",height:"32",fill:"white"})," ")," "));case"flag_icon_hr":return p.createElement("svg",Object.assign({className:e,"aria-label":r,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg"},t),p.createElement("g",{clipPath:"url(#clip0_20915_38694)"}," ",p.createElement("path",{d:"M32 16.0001C32 14.043 31.6479 12.1682 31.0048 10.4349L16 9.73926L0.995188 10.4349C0.352063 12.1682 0 14.043 0 16.0001C0 17.9573 0.352063 19.8321 0.995188 21.5653L16 22.261L31.0048 21.5654C31.6479 19.8321 32 17.9573 32 16.0001Z",fill:"#F0F0F0"})," ",p.createElement("path",{d:"M15.9999 32.0002C22.8794 32.0002 28.7441 27.6582 31.0047 21.5654H0.995117C3.2558 27.6582 9.12049 32.0002 15.9999 32.0002Z",fill:"#0052B4"})," ",p.createElement("path",{d:"M0.995117 10.4348H31.0048C28.7441 4.342 22.8794 0 15.9999 0C9.12049 0 3.2558 4.342 0.995117 10.4348Z",fill:"#D80027"})," ",p.createElement("path",{d:"M20.174 11.1304H17.3914L17.8552 7.65205L19.7102 6.26074L21.5652 7.65205V10.4347L20.174 11.1304Z",fill:"#338AF3"})," ",p.createElement("path",{d:"M11.8261 11.1304H14.6087L14.1449 7.65205L12.2898 6.26074L10.4348 7.65205V10.4347L11.8261 11.1304Z",fill:"#338AF3"})," ",p.createElement("path",{d:"M17.855 11.1304H14.1448V7.65205L15.9999 6.26074L17.855 7.65205V11.1304Z",fill:"#0052B4"})," ",p.createElement("path",{d:"M10.4348 10.4351V18.0872C10.4348 19.9092 11.3149 21.5296 12.6724 22.5454L13.6464 22.3017L14.8754 23.5381C15.2388 23.613 15.6149 23.6524 16.0001 23.6524C16.3832 23.6524 16.7574 23.6135 17.1189 23.5394L18.5218 22.3712L19.3276 22.5432C20.6845 21.5274 21.5653 19.9087 21.5653 18.0872V10.4351H10.4348Z",fill:"#F0F0F0"})," ",p.createElement("path",{d:"M10.4348 10.4346H12.6609V12.6606H10.4348V10.4346Z",fill:"#D80027"})," ",p.createElement("path",{d:"M14.887 10.4346H17.113V12.6606H14.887V10.4346Z",fill:"#D80027"})," ",p.createElement("path",{d:"M19.3391 10.4346H21.5652V12.6606H19.3391V10.4346Z",fill:"#D80027"})," ",p.createElement("path",{d:"M12.6609 12.6606H14.887V14.8867H12.6609V12.6606Z",fill:"#D80027"})," ",p.createElement("path",{d:"M17.113 12.6606H19.3391V14.8867H17.113V12.6606Z",fill:"#D80027"})," ",p.createElement("path",{d:"M10.4348 14.8862H12.6609V17.1123H10.4348V14.8862Z",fill:"#D80027"})," ",p.createElement("path",{d:"M12.6609 17.1123H14.887V19.3384H12.6609V17.1123Z",fill:"#D80027"})," ",p.createElement("path",{d:"M14.887 14.8862H17.113V17.1123H14.887V14.8862Z",fill:"#D80027"})," ",p.createElement("path",{d:"M19.3391 14.8862H21.5652V17.1123H19.3391V14.8862Z",fill:"#D80027"})," ",p.createElement("path",{d:"M17.113 17.1123H19.3391V19.3384H17.113V17.1123Z",fill:"#D80027"})," ",p.createElement("path",{d:"M14.887 19.3384H17.113V21.5644H14.887V19.3384Z",fill:"#D80027"})," ",p.createElement("path",{d:"M12.6608 19.3384H10.5784C10.7694 20.1659 11.1449 20.9231 11.6597 21.5644H12.6608V19.3384Z",fill:"#D80027"})," ",p.createElement("path",{d:"M19.3391 21.5644H20.3401C20.8551 20.9231 21.2305 20.1658 21.4215 19.3384H19.3391V21.5644Z",fill:"#D80027"})," ",p.createElement("path",{d:"M12.6609 21.5645V22.5358C13.3083 23.023 14.065 23.3723 14.887 23.5399V21.5645H12.6609Z",fill:"#D80027"})," ",p.createElement("path",{d:"M17.113 21.5645V23.5399C17.9351 23.3724 18.6917 23.023 19.3391 22.5358V21.5645H17.113Z",fill:"#D80027"})," ")," ",p.createElement("defs",null," ",p.createElement("clipPath",{id:"clip0_20915_38694"}," ",p.createElement("rect",{width:"32",height:"32",fill:"white"})," ")," "));case"flag_icon_dk":return p.createElement("svg",Object.assign({className:e,"aria-label":r,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg"},t),p.createElement("g",{clipPath:"url(#clip0_20915_38682)"}," ",p.createElement("path",{d:"M16 32C24.8366 32 32 24.8366 32 16C32 7.16344 24.8366 0 16 0C7.16344 0 0 7.16344 0 16C0 24.8366 7.16344 32 16 32Z",fill:"#F0F0F0"})," ",p.createElement("path",{d:"M12.5218 13.9131H31.8645C30.8418 6.06262 24.1292 0 16 0C14.8053 0 13.6417 0.132063 12.5217 0.380313V13.9131H12.5218Z",fill:"#D80027"})," ",p.createElement("path",{d:"M8.34787 13.9129V1.94531C3.95456 4.34244 0.809435 8.73938 0.135498 13.9129H8.34787V13.9129Z",fill:"#D80027"})," ",p.createElement("path",{d:"M8.3478 18.0869H0.135498C0.809435 23.2605 3.95456 27.6574 8.34787 30.0545L8.3478 18.0869Z",fill:"#D80027"})," ",p.createElement("path",{d:"M12.5217 18.087V31.6197C13.6417 31.8679 14.8053 32 16 32C24.1292 32 30.8418 25.9374 31.8645 18.0869H12.5217V18.087Z",fill:"#D80027"})," ")," ",p.createElement("defs",null," ",p.createElement("clipPath",{id:"clip0_20915_38682"}," ",p.createElement("rect",{width:"32",height:"32",fill:"white"})," ")," "));case"flag_icon_gb":return p.createElement("svg",Object.assign({className:e,"aria-label":r,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg"}
192,t),p.createElement("g",{clipPath:"url(#clip0_20915_38766)"}," ",p.createElement("path",{d:"M16 32C24.8366 32 32 24.8366 32 16C32 7.16344 24.8366 0 16 0C7.16344 0 0 7.16344 0 16C0 24.8366 7.16344 32 16 32Z",fill:"#F0F0F0"})," ",p.createElement("path",{d:"M3.30758 6.25879C2.05077 7.89398 1.10308 9.77866 0.55127 11.8261H8.87489L3.30758 6.25879Z",fill:"#0052B4"})," ",p.createElement("path",{d:"M31.449 11.826C30.8972 9.77866 29.9494 7.89398 28.6927 6.25879L23.1255 11.826H31.449Z",fill:"#0052B4"})," ",p.createElement("path",{d:"M0.55127 20.1743C1.10314 22.2217 2.05083 24.1064 3.30758 25.7415L8.87471 20.1743H0.55127Z",fill:"#0052B4"})," ",p.createElement("path",{d:"M25.7413 3.30764C24.1061 2.05083 22.2215 1.10314 20.1741 0.55127V8.87483L25.7413 3.30764Z",fill:"#0052B4"})," ",p.createElement("path",{d:"M6.25903 28.6926C7.89422 29.9494 9.77891 30.8971 11.8263 31.449V23.1255L6.25903 28.6926Z",fill:"#0052B4"})," ",p.createElement("path",{d:"M11.8262 0.55127C9.77885 1.10314 7.89416 2.05083 6.25903 3.30758L11.8262 8.87477V0.55127Z",fill:"#0052B4"})," ",p.createElement("path",{d:"M20.1741 31.449C22.2214 30.8971 24.1061 29.9494 25.7413 28.6927L20.1741 23.1255V31.449Z",fill:"#0052B4"})," ",p.createElement("path",{d:"M23.1255 20.1743L28.6927 25.7416C29.9494 24.1064 30.8972 22.2217 31.449 20.1743H23.1255Z",fill:"#0052B4"})," ",p.createElement("path",{d:"M31.8646 13.9131H18.0871H18.087V0.135438C17.4038 0.0465 16.7073 0 16 0C15.2926 0 14.5962 0.0465 13.9131 0.135438V13.9129V13.913H0.135438C0.0465 14.5962 0 15.2927 0 16C0 16.7074 0.0465 17.4038 0.135438 18.0869H13.9129H13.913V31.8646C14.5962 31.9535 15.2926 32 16 32C16.7073 32 17.4038 31.9536 18.0869 31.8646V18.0871V18.087H31.8646C31.9535 17.4038 32 16.7074 32 16C32 15.2927 31.9535 14.5962 31.8646 13.9131Z",fill:"#D80027"})," ",p.createElement("path",{d:"M20.1738 20.1739L27.3136 27.3136C27.642 26.9854 27.9552 26.6422 28.2541 26.2865L22.1415 20.1738H20.1738V20.1739Z",fill:"#D80027"})," ",p.createElement("path",{d:"M11.8261 20.1738H11.826L4.68628 27.3135C5.01453 27.6419 5.35772 27.9551 5.71347 28.254L11.8261 22.1413V20.1738Z",fill:"#D80027"})," ",p.createElement("path",{d:"M11.8261 11.826V11.8258L4.68635 4.68604C4.35797 5.01429 4.04472 5.35747 3.74585 5.71322L9.85854 11.8259H11.8261V11.826Z",fill:"#D80027"})," ",p.createElement("path",{d:"M20.1738 11.8264L27.3136 4.68653C26.9854 4.35816 26.6422 4.04491 26.2865 3.74609L20.1738 9.85879V11.8264Z",fill:"#D80027"})," ")," ",p.createElement("defs",null," ",p.createElement("clipPath",{id:"clip0_20915_38766"}," ",p.createElement("rect",{width:"32",height:"32",fill:"white"})," ")," "));case"flag_icon_se":return p.createElement("svg",Object.assign({className:e,"aria-label":r,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg"},t),p.createElement("g",{clipPath:"url(#clip0_20915_38748)"}," ",p.createElement("path",{d:"M16 32C24.8366 32 32 24.8366 32 16C32 7.16344 24.8366 0 16 0C7.16344 0 0 7.16344 0 16C0 24.8366 7.16344 32 16 32Z",fill:"#FFDA44"})," ",p.createElement("path",{d:"M12.5218 13.9131H31.8645C30.8418 6.06262 24.1292 0 16 0C14.8054 0 13.6417 0.132063 12.5217 0.380313V13.9131H12.5218Z",fill:"#0052B4"})," ",p.createElement("path",{d:"M8.34787 13.9129V1.94531C3.95449 4.34244 0.809435 8.73938 0.135498 13.9129H8.34787V13.9129Z",fill:"#0052B4"})," ",p.createElement("path",{d:"M8.3478 18.0869H0.135498C0.809435 23.2605 3.95449 27.6574 8.34787 30.0545L8.3478 18.0869Z",fill:"#0052B4"})," ",p.createElement("path",{d:"M12.5217 18.087V31.6197C13.6417 31.8679 14.8054 32 16 32C24.1292 32 30.8418 25.9374 31.8645 18.0869H12.5217V18.087Z",fill:"#0052B4"})," ")," ",p.createElement("defs",null," ",p.createElement("clipPath",{id:"clip0_20915_38748"}," ",p.createElement("rect",{width:"32",height:"32",fill:"white"})," ")," "));case"flag_icon_no":return p.createElement("svg",Object.assign({className:e,"aria-label":r,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg"},t),p.createElement("g",{clipPath:"url(#clip0_20915_38718)"}," ",p.createElement("path",{d:"M16 32C24.8366 32 32 24.8366 32 16C32 7.16344 24.8366 0 16 0C7.16344 0 0 7.16344 0 16C0 24.8366 7.16344 32 16 32Z",fill:"#F0F0F0"})," ",p.createElement("path",{d:"M0.55127 20.1738C1.47702 23.6088 3.51733 26.5859 6.26096 28.694V20.1738H0.55127Z",fill:"#D80027"})," ",p.createElement("path",{d:"M14.6089 31.939C15.0675 31.9785 15.5313 31.9999 16.0002 31.9999C23.3926 31.9999 29.613 26.9861 31.449 20.1738H14.6089V31.939Z",fill:"#D80027"})," ",p.createElement("path",{d:"M31.449 11.8261C29.613 5.01381 23.3926 0 16.0002 0C15.5313 0 15.0675 0.021375 14.6089 0.060875V11.8261H31.449Z",fill:"#D80027"})," ",p.createElement("path",{d:"M6.26096 3.30615C3.51733 5.41428 1.47702 8.39134 0.55127 11.8263H6.26096V3.30615Z",fill:"#D80027"})," ",p.createElement("path",{d:"M31.8646 13.9131H12.5218H12.5218V0.380371C11.0431 0.708246 9.64131 1.23968 8.34781 1.9455V13.913V13.9131H0.135438C0.046375 14.5962 0 15.2927 0 16.0001C0 16.7074 0.046375 17.4039 0.135438 18.087H8.34775H8.34781V30.0546C9.64131 30.7603 11.0431 31.2919 12.5218 31.6197V18.0872V18.0871H31.8646C31.9535 17.4039 32 16.7074 32 16.0001C32 15.2927 31.9535 14.5962 31.8646 13.9131Z",fill:"#0052B4"})," ")," ",p.createElement("defs",null," ",p.createElement("clipPath",{id:"clip0_20915_38718"}," ",p.createElement("rect",{width:"32",height:"32",fill:"white"})," ")," "));case"flag_icon_bg":return p.createElement("svg",Object.assign({className:e,"aria-label":r,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg"}
192,t),p.createElement("g",{clipPath:"url(#clip0_20915_38671)"}," ",p.createElement("path",{d:"M32 16.0001C32 14.043 31.648 12.1682 31.0048 10.4349L16 9.73926L0.995188 10.4349C0.352063 12.1682 0 14.043 0 16.0001C0 17.9573 0.352063 19.8321 0.995188 21.5653L16 22.261L31.0048 21.5654C31.648 19.8321 32 17.9573 32 16.0001Z",fill:"#496E2D"})," ",p.createElement("path",{d:"M15.9999 32.0002C22.8794 32.0002 28.7441 27.6582 31.0047 21.5654H0.995117C3.2558 27.6582 9.12049 32.0002 15.9999 32.0002Z",fill:"#D80027"})," ",p.createElement("path",{d:"M0.995117 10.4348H31.0048C28.7441 4.342 22.8794 0 15.9999 0C9.12049 0 3.2558 4.342 0.995117 10.4348Z",fill:"#F0F0F0"})," ")," ",p.createElement("defs",null," ",p.createElement("clipPath",{id:"clip0_20915_38671"}," ",p.createElement("rect",{width:"32",height:"32",fill:"white"})," ")," "));case"flag_icon_us":return p.createElement("svg",Object.assign({className:e,"aria-label":r,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg"},t),p.createElement("g",{clipPath:"url(#clip0_20915_38742)"}," ",p.createElement("path",{d:"M16 32C24.8366 32 32 24.8366 32 16C32 7.16344 24.8366 0 16 0C7.16344 0 0 7.16344 0 16C0 24.8366 7.16344 32 16 32Z",fill:"#F0F0F0"})," ",p.createElement("path",{d:"M15.3044 15.9996H32.0001C32.0001 14.5555 31.8076 13.1565 31.4489 11.8257H15.3044V15.9996Z",fill:"#D80027"})," ",p.createElement("path",{d:"M15.3044 7.65196H29.6517C28.6723 6.05371 27.4199 4.64103 25.9598 3.47803H15.3044V7.65196Z",fill:"#D80027"})," ",p.createElement("path",{d:"M16 31.9997C19.7656 31.9997 23.2267 30.6982 25.9598 28.5215H6.04028C8.77341 30.6982 12.2345 31.9997 16 31.9997Z",fill:"#D80027"})," ",p.createElement("path",{d:"M2.34846 24.3478H29.6517C30.438 23.0647 31.0478 21.6622 31.4489 20.1738H0.55127C0.952332 21.6622 1.56214 23.0647 2.34846 24.3478Z",fill:"#D80027"})," ",p.createElement("path",{d:"M7.4115 2.49863H8.86956L7.51331 3.48394L8.03137 5.07825L6.67519 4.09294L5.319 5.07825L5.7665 3.70094C4.57237 4.69562 3.52575 5.861 2.66325 7.1595H3.13044L2.26712 7.78669C2.13262 8.01106 2.00362 8.239 1.88 8.47031L2.29225 9.73913L1.52313 9.18031C1.33194 9.58537 1.15706 9.99956 0.999875 10.4224L1.45406 11.8204H3.13044L1.77419 12.8057L2.29225 14.4L0.936063 13.4147L0.123687 14.0049C0.042375 14.6586 0 15.3243 0 16H16C16 7.1635 16 6.12175 16 0C12.8393 0 9.89281 0.916875 7.4115 2.49863ZM8.03137 14.4L6.67519 13.4147L5.319 14.4L5.83706 12.8057L4.48081 11.8204H6.15719L6.67519 10.2261L7.19319 11.8204H8.86956L7.51331 12.8057L8.03137 14.4ZM7.51331 8.14481L8.03137 9.73913L6.67519 8.75381L5.319 9.73913L5.83706 8.14481L4.48081 7.1595H6.15719L6.67519 5.56519L7.19319 7.1595H8.86956L7.51331 8.14481ZM13.7705 14.4L12.4143 13.4147L11.0581 14.4L11.5762 12.8057L10.2199 11.8204H11.8963L12.4143 10.2261L12.9323 11.8204H14.6087L13.2524 12.8057L13.7705 14.4ZM13.2524 8.14481L13.7705 9.73913L12.4143 8.75381L11.0581 9.73913L11.5762 8.14481L10.2199 7.1595H11.8963L12.4143 5.56519L12.9323 7.1595H14.6087L13.2524 8.14481ZM13.2524 3.48394L13.7705 5.07825L12.4143 4.09294L11.0581 5.07825L11.5762 3.48394L10.2199 2.49863H11.8963L12.4143 0.904312L12.9323 2.49863H14.6087L13.2524 3.48394Z",fill:"#0052B4"})," ")," ",p.createElement("defs",null," ",p.createElement("clipPath",{id:"clip0_20915_38742"}," ",p.createElement("rect",{width:"32",height:"32",fill:"white"})," ")," "));case"flag_icon_ro":return p.createElement("svg",Object.assign({className:e,"aria-label":r,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg"},t),p.createElement("g",{clipPath:"url(#clip0_20915_38730)"}," ",p.createElement("path",{d:"M15.9999 0C14.0428 0 12.168 0.352063 10.4347 0.995188L9.73901 16L10.4346 31.0048C12.168 31.648 14.0428 32 15.9999 32C17.957 32 19.8318 31.648 21.5651 31.0048L22.2608 16L21.5651 0.995188C19.8318 0.352063 17.957 0 15.9999 0V0Z",fill:"#FFDA44"})," ",p.createElement("path",{d:"M32 15.9999C32 9.12049 27.658 3.2558 21.5652 0.995117V31.0048C27.658 28.7441 32 22.8794 32 15.9999Z",fill:"#D80027"})," ",p.createElement("path",{d:"M10.4348 31.0047V0.995117C4.342 3.2558 0 9.12049 0 15.9999C0 22.8794 4.342 28.7441 10.4348 31.0047Z",fill:"#0052B4"})," ")," ",p.createElement("defs",null," ",p.createElement("clipPath",{id:"clip0_20915_38730"}," ",p.createElement("rect",{width:"32",height:"32",fill:"white"})," ")," "));case"flag_icon_tr":return p.createElement("svg",Object.assign({className:e,"aria-label":r,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg"}
192,t),p.createElement("g",{clipPath:"url(#clip0_20915_38760)"}," ",p.createElement("path",{d:"M16 32C24.8366 32 32 24.8366 32 16C32 7.16344 24.8366 0 16 0C7.16344 0 0 7.16344 0 16C0 24.8366 7.16344 32 16 32Z",fill:"#D80027"})," ",p.createElement("path",{d:"M15.3448 13.0737L16.6576 14.8828L18.7837 14.1934L17.4688 16.0009L18.7814 17.8099L16.6561 17.1179L15.3413 18.9254L15.3427 16.6904L13.2173 15.9984L15.3434 15.309L15.3448 13.0737Z",fill:"#F0F0F0"})," ",p.createElement("path",{d:"M11.7621 20.5216C9.26483 20.5216 7.24033 18.4971 7.24033 15.9998C7.24033 13.5026 9.26483 11.4781 11.7621 11.4781C12.5407 11.4781 13.2733 11.675 13.913 12.0216C12.9095 11.0402 11.5372 10.4346 10.023 10.4346C6.94933 10.4346 4.45776 12.9262 4.45776 15.9998C4.45776 19.0733 6.94939 21.5649 10.023 21.5649C11.5373 21.5649 12.9096 20.9593 13.913 19.9779C13.2733 20.3246 12.5407 20.5216 11.7621 20.5216Z",fill:"#F0F0F0"})," ")," ",p.createElement("defs",null," ",p.createElement("clipPath",{id:"clip0_20915_38760"}," ",p.createElement("rect",{width:"32",height:"32",fill:"white"})," ")," "));case"flag_icon_eu":return p.createElement("svg",Object.assign({className:e,"aria-label":r,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg"},t),p.createElement("g",{clipPath:"url(#clip0_20915_38688)"}," ",p.createElement("path",{d:"M16 32C24.8366 32 32 24.8366 32 16C32 7.16344 24.8366 0 16 0C7.16344 0 0 7.16344 0 16C0 24.8366 7.16344 32 16 32Z",fill:"#0052B4"})," ",p.createElement("path",{d:"M16 6.26074L16.5181 7.85505H18.1944L16.8382 8.84037L17.3562 10.4347L16 9.4493L14.6438 10.4347L15.1619 8.84037L13.8057 7.85505H15.482L16 6.26074Z",fill:"#FFDA44"})," ",p.createElement("path",{d:"M9.1134 9.11321L10.6071 9.87422L11.7925 8.68896L11.5301 10.3446L13.0238 11.1057L11.3681 11.3679L11.1059 13.0237L10.3448 11.53L8.68921 11.7923L9.87452 10.607L9.1134 9.11321Z",fill:"#FFDA44"})," ",p.createElement("path",{d:"M6.26099 16L7.8553 15.482V13.8057L8.84055 15.1619L10.4349 14.6439L9.44949 16L10.4349 17.3562L8.84055 16.8382L7.8553 18.1944V16.5181L6.26099 16Z",fill:"#FFDA44"})," ",p.createElement("path",{d:"M9.1134 22.8864L9.87446 21.3927L8.68921 20.2074L10.3449 20.4698L11.1058 18.9761L11.3681 20.6318L13.0238 20.894L11.5303 21.6551L11.7925 23.3107L10.6071 22.1254L9.1134 22.8864Z",fill:"#FFDA44"})," ",p.createElement("path",{d:"M16 25.7388L15.4819 24.1444H13.8057L15.1619 23.1591L14.6438 21.5649L16 22.5502L17.3562 21.5649L16.8382 23.1591L18.1944 24.1444H16.518L16 25.7388Z",fill:"#FFDA44"})," ",p.createElement("path",{d:"M22.8866 22.8864L21.3929 22.1255L20.2076 23.3108L20.4699 21.655L18.9763 20.894L20.6319 20.6318L20.8942 18.9761L21.6552 20.4698L23.3108 20.2074L22.1255 21.3928L22.8866 22.8864Z",fill:"#FFDA44"})," ",p.createElement("path",{d:"M25.7392 16L24.1449 16.5181V18.1944L23.1596 16.8382L21.5654 17.3562L22.5507 16L21.5654 14.6439L23.1597 15.1619L24.1449 13.8057V15.482L25.7392 16Z",fill:"#FFDA44"})," ",p.createElement("path",{d:"M22.8866 9.11315L22.1256 10.6069L23.3109 11.7922L21.6551 11.5298L20.8942 13.0235L20.6319 11.3678L18.9763 11.1055L20.4699 10.3445L20.2076 8.68896L21.393 9.87422L22.8866 9.11315Z",fill:"#FFDA44"})," ")," ",p.createElement("defs",null," ",p.createElement("clipPath",{id:"clip0_20915_38688"}," ",p.createElement("rect",{width:"32",height:"32",fill:"white"})," ")," "));case"flag_icon_cn":return p.createElement("svg",Object.assign({className:e,"aria-label":r,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg"},t),p.createElement("g",{clipPath:"url(#clip0_20915_38677)"}," ",p.createElement("path",{d:"M16 32C24.8366 32 32 24.8366 32 16C32 7.16344 24.8366 0 16 0C7.16344 0 0 7.16344 0 16C0 24.8366 7.16344 32 16 32Z",fill:"#D80027"})," ",p.createElement("path",{d:"M8.75625 9.7373L10.1375 13.9873H14.6062L10.9937 16.6186L12.375 20.8686L8.75625 18.2436L5.1375 20.8686L6.525 16.6186L2.90625 13.9873H7.375L8.75625 9.7373Z",fill:"#FFDA44"})," ",p.createElement("path",{d:"M18.9687 24.7812L17.9124 23.4812L16.35 24.0874L17.2562 22.6812L16.2 21.3749L17.8187 21.8062L18.7312 20.3999L18.8187 22.0749L20.4437 22.5062L18.8749 23.1062L18.9687 24.7812Z",fill:"#FFDA44"})," ",p.createElement("path",{d:"M21.0687 20.9687L21.5687 19.3687L20.2 
19218.3999L21.875 18.3749L22.3687 16.7749L22.9125 18.3624L24.5875 18.3437L23.2437 19.3437L23.7812 20.9312L22.4125 19.9624L21.0687 20.9687Z",fill:"#FFDA44"})," ",p.createElement("path",{d:"M23.9 11.7435L23.1625 13.2497L24.3625 14.4185L22.7063 14.181L21.9688 15.681L21.6813 14.031L20.0188 13.7935L21.5063 13.0122L21.2188 11.356L22.4188 12.5247L23.9 11.7435Z",fill:"#FFDA44"})," ",p.createElement("path",{d:"M19.0124 7.18115L18.8874 8.8499L20.4437 9.48115L18.8124 9.88115L18.6937 11.5562L17.8124 10.1312L16.1812 10.5312L17.2624 9.2499L16.3749 7.83115L17.9312 8.4624L19.0124 7.18115Z",fill:"#FFDA44"})," ")," ",p.createElement("defs",null," ",p.createElement("clipPath",{id:"clip0_20915_38677"}," ",p.createElement("rect",{width:"32",height:"32",fill:"white"})," ")," "));case"flag_icon_ca":return p.createElement("svg",Object.assign({className:e,"aria-label":r,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg"},t),p.createElement("g",{clipPath:"url(#clip0_18949_46055)"},p.createElement("path",{d:"M16 32C24.8366 32 32 24.8366 32 16C32 7.16344 24.8366 0 16 0C7.16344 0 0 7.16344 0 16C0 24.8366 7.16344 32 16 32Z",fill:"#F0F0F0"}),p.createElement("path",{d:"M32 16C32 9.65664 28.3085 4.17565 22.9565 1.58765V30.4123C28.3085 27.8244 32 22.3434 32 16Z",fill:"#D80027"}),p.createElement("path",{d:"M0 16C0 22.3434 3.69156 27.8244 9.0435 30.4124V1.58765C3.69156 4.17565 0 9.65664 0 16Z",fill:"#D80027"}),p.createElement("path",{d:"M18.7826 18.087L21.5652 16.6957L20.1739 16.0001V14.6087L17.3913 16.0001L18.7826 13.2174H17.3913L16 11.1305L14.6087 13.2174H13.2174L14.6087 16.0001L11.8261 14.6087V16.0001L10.4348 16.6957L13.2174 18.087L12.5218 19.4783H15.3044V21.5652H16.6956V19.4783H19.4783L18.7826 18.087Z",fill:"#D80027"})),p.createElement("defs",null,p.createElement("clipPath",{id:"clip0_18949_46055"},p.createElement("rect",{width:"32",height:"32",fill:"white"}))));case"flag_icon_cz":return p.createElement("svg",Object.assign({className:e,"aria-label":r,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg"},t),p.createElement("g",{clipPath:"url(#clip0_3486_1244)"},p.createElement("rect",{x:"-7.2002",y:"-6.3999",width:"68.8",height:"22.4",fill:"white"}),p.createElement("rect",{x:"-7.2002",y:"16",width:"68.8",height:"22.4",fill:"#D2142E"}),p.createElement("path",{d:"M16.7998 16.0001L-7.2002 -6.3999V38.4001L16.7998 16.0001Z",fill:"#012681"})),p.createElement("defs",null,p.createElement("clipPath",{id:"clip0_3486_1244"},p.createElement("rect",{width:"32",height:"32",rx:"16",fill:"white"}))));default:return null}},un=({name:n,viewBox:e,alt:t,svg:r,className:i,id:a})=>p.createElement("svg",{"data-name":n,viewBox:e,"aria-labelledby":t,dangerouslySetInnerHTML:{__html:r},className:i,id:a,xmlns:"http://www.w3.org/2000/svg"}),vp=({handleOnChange:n,labelText:e,activeQuery:t,className:r="",items:i,name:a})=>p.createElement("div",{className:r},p.createElement("label",{className:"mr-4",htmlFor:a},e),p.createElement("select",{name:a,value:t,onChange:n,className:"select max-w-sm"},i.map(s=>p.createElement("option",{key:s.slug,value:s.slug||""},s.title)))),ls=({className:n})=>p.createElement("div",{className:`
193          mx-auto
194          h-[48px]
195          w-[48px]
196          bg-[url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjI1IDI1IDUwIDUwIiBjbGFzcz0ic3Bpbm5lciI+PHN0eWxlIHR5cGU9InRleHQvY3NzIj4uc3Bpbm5lciB7dHJhbnNmb3JtLW9yaWdpbjogY2VudGVyIGNlbnRlcjthbmltYXRpb246IHNwaW5uZXItcm90YXRlIDJzIGxpbmVhciBpbmZpbml0ZTt9LnNwaW5uZXJfX2NpcmNsZSB7c3Ryb2tlLWRhc2hhcnJheTogODksIDIwMDtzdHJva2UtZGFzaG9mZnNldDogMDthbmltYXRpb246IHNwaW5uZXItZGFzaCAxLjVzIGVhc2UtaW4tb3V0IGluZmluaXRlO3N0cm9rZS1saW5lY2FwOiByb3VuZDt9QGtleWZyYW1lcyBzcGlubmVyLXJvdGF0ZSB7dG8ge3RyYW5zZm9ybTogcm90YXRlKDM2MGRlZyk7fX1Aa2V5ZnJhbWVzIHNwaW5uZXItZGFzaCB7MCUge3N0cm9rZS1kYXNoYXJyYXk6IDEsIDIwMDtzdHJva2UtZGFzaG9mZnNldDogMDt9NTAlIHtzdHJva2UtZGFzaGFycmF5OiA4OSwgMjAwO3N0cm9rZS1kYXNob2Zmc2V0OiAtMzVweDt9MTAwJSB7c3Ryb2tlLWRhc2hhcnJheTogODksIDIwMDtzdHJva2UtZGFzaG9mZnNldDogLTEyNHB4O319PC9zdHlsZT48Y2lyY2xlIGNsYXNzPSJzcGlubmVyX19jaXJjbGUiIHN0cm9rZT0iI2U5MDQxZSIgY3g9IjUwIiBjeT0iNTAiIHI9IjIwIiBzdHJva2UtbWl0ZXJsaW1pdD0iMTAiIGZpbGw9Im5vbmUiIHN0cm9rZS13aWR0aD0iNCI+PC9jaXJjbGU+PC9zdmc+')]
197          bg-auto
198          bg-center
199          bg-no-repeat
200          sm:h-[64px]
201          sm:w-[64px]
202         ${n} `}),Ic=({isVisible:n,title:e,links:t,iconsList:r,apiUrl:i,cultureCode:a,fromDate:s,toDate:c,timeFrame:u,currency:f,isSK:h})=>{if(!n)return null;const{download:g}=r,v=(y,_)=>{const{dataLayer:w}=window;w.push(JSON.parse(y)),window.location.href=_};return p.createElement("div",{className:"mb-12"},p.createElement("p",{className:"mb-6 text-2xl"},e),t.map(y=>{let _=`${i}?cultureCode=${a}&format=${y.extension}`;h&&(_+=`&isSK=${h}`);let w="";Number(u)>=0?(_+=`&currency=${f}&timeframe=${u}&fromDate=${s}&toDate=${c}`,w="currency-detail"):(_+=`&date=${s}`,w="currency-list");const x=`{"event":"download.file","linkUrl":"${_}","fileContext":{"fileName":"${y.title}","fileType":"${y.extension}","fileComponent":"${w}"}}`;return p.createElement("div",{className:"mb-8 last:mb-0",key:_},p.createElement("button",{type:"button",className:"group inline-flex items-center focus:outline-grey-200","data-testid":"downloads-link",onClick:()=>{v(x,_)},"data-analytics":x},p.createElement("div",null,p.createElement(un,{name:g.name,viewBox:g.viewbox,alt:g.alt,svg:g.svg,className:"mr-6 inline h-8 w-8 fill-red-corporate"})),p.createElement("div",{className:"words-break text-left"},p.createElement("span",{className:"mb-2 inline-block underline group-visited:text-visited group-hover:text-red-corporate"},y.title),p.createElement("div",null,p.createElement("span",{className:"mr-2 text-xs text-grey-160"},y.subTitle),p.createElement("span",{className:"rounded-lg bg-light px-2 py-1 text-2xs font-semibold uppercase text-grey-160 shadow-tab group-visited:text-visited group-hover:text-red-corporate"},y.extension)))))}
202))},qv=({container:n})=>{const{contentTitle:e,contentText:t,contentLinkUrl:r,contentLinkText:i,contentLinkIsExternal:a,tooltipText:s,tooltipDarkBg:c}=n.dataset,u=()=>p.createElement("span",{className:"tooltip-kentico group mr-1 flex-row items-center hover:cursor-pointer"},s&&p.createElement("span",{className:"mr-1 inline border-b border-dashed border-b-white leading-5 text-white group-hover:border-b-grey-30 group-hover:text-grey-30"},s),p.createElement(un,{name:"tooltip",viewBox:"0 0 24 24",alt:"tooltip",svg:'<path d="M12 19.5C7.85775 19.5 4.5 16.1423 4.5 12C4.5 7.85775 7.85775 4.5 12 4.5C16.1423 4.5 19.5 7.85775 19.5 12C19.5 16.1423 16.1423 19.5 12 19.5ZM12 18C13.5913 18 15.1174 17.3679 16.2426 16.2426C17.3679 15.1174 18 13.5913 18 12C18 10.4087 17.3679 8.88258 16.2426 7.75736C15.1174 6.63214 13.5913 6 12 6C10.4087 6 8.88258 6.63214 7.75736 7.75736C6.63214 8.88258 6 10.4087 6 12C6 13.5913 6.63214 15.1174 7.75736 16.2426C8.88258 17.3679 10.4087 18 12 18ZM11.25 8.25H12.75V9.75H11.25V8.25ZM11.25 11.25H12.75V15.75H11.25V11.25Z"/>',className:"inline h-6 w-6 fill-grey-darkMode-contentTertiary group-hover:fill-grey-30"})),f=()=>p.createElement("span",{className:"tooltip-kentico group mr-1 flex-row items-center hover:cursor-pointer"},s&&p.createElement("span",{className:"mr-1 inline border-b border-dashed border-b-grey-200 leading-5 text-grey-200 group-hover:border-b-red-corporate group-hover:text-red-corporate"},s),p.createElement(un,{name:"tooltip",viewBox:"0 0 24 24",alt:"tooltip",svg:'<path d="M12 19.5C7.85775 19.5 4.5 16.1423 4.5 12C4.5 7.85775 7.85775 4.5 12 4.5C16.1423 4.5 19.5 7.85775 19.5 12C19.5 16.1423 16.1423 19.5 12 19.5ZM12 18C13.5913 18 15.1174 17.3679 16.2426 16.2426C17.3679 15.1174 18 13.5913 18 12C18 10.4087 17.3679 8.88258 16.2426 7.75736C15.1174 6.63214 13.5913 6 12 6C10.4087 6 8.88258 6.63214 7.75736 7.75736C6.63214 8.88258 6 10.4087 6 12C6 13.5913 6.63214 15.1174 7.75736 16.2426C8.88258 17.3679 10.4087 18 12 18ZM11.25 8.25H12.75V9.75H11.25V8.25ZM11.25 11.25H12.75V15.75H11.25V11.25Z"/>',className:"inline h-6 w-6 fill-grey-80 group-hover:fill-red-corporate"}));return(0,p.useEffect)(()=>{ns(n,{allowHTML:!0,content:`
203      <div class="mb-2 break-words font-semibold text-[16px]">${e}</div>
204        <div class="break-words">${t}</div>
205        <a href="${r}" target="${a?"_blank":"_self"}" class="inline-block">
206          ${i}
207        </a>
208      </div>
209      `,trigger:"click",hideOnClick:!0,interactive:!0,arrow:!0,theme:"kb",zIndex:1070})},[]),c?u():f()},fo=n=>{if(!n)return!1;const{currentPage:e,pagesCount:t}=n;return!e||!t?!1:e<t},$v=({items:n,pagination:e,errorMessage:t})=>({hasNextItems:fo(e),isLoading:!1,isLoadingMore:!1,items:n,pagination:e,hasError:!1,errorMessage:t}),Nc="SET_IS_LOADING",Ji="SET_IS_LOADING_MORE",Gv="SET_NEXT_DATA",Zv="SET_NEW_DATA",ho="SET_HAS_ERROR",yp="SET_ERROR_MESSAGE",y1=n=>({payload:n,type:Gv}),b1=n=>({payload:n,type:Zv}),ea=n=>({payload:n,type:Nc}),_i=n=>({payload:n,type:Ji}),_1=n=>({payload:n,type:ho}),w1=n=>({payload:n,type:yp}),Xv=(n,e)=>{const{type:t}=e;switch(t){case Gv:{const{payload:r}=e;return Object.assign(Object.assign({},n),{hasNextItems:fo(r.pagination),items:[...n.items,...r.data],pagination:r.pagination,hasError:!1})}case Zv:{const{payload:r}=e;return Object.assign(Object.assign({},n),{hasNextItems:fo(r.pagination),items:r.data,pagination:r.pagination,hasError:!1})}case Nc:{const{payload:r}=e;return Object.assign(Object.assign({},n),{isLoading:r})}case Ji:{const{payload:r}=e;return Object.assign(Object.assign({},n),{isLoadingMore:r})}case ho:{const{payload:r}=e;return Object.assign(Object.assign({},n),{hasError:r})}case yp:{const{payload:r}=e;return Object.assign(Object.assign({},n),{errorMessage:r})}default:return n}},Ma=3,Pi=10,Da=({api:n,apiQueryKey:e="query",defaultQuery:t,fetchBodyData:r,formElement:i,formInputName:a,defaultItems:s,defaultPagination:c,cultureCode:u,defaultErrorMessage:f,pageSize:h,pageSizeDetail:g,hasGeolocation:v,hasSearchCoordinates:y=!1,latitude:_,longitude:w,currency:x,date:S,searchFolder:T,hideSegmentBreadcrumb:M})=>{const[{hasNextItems:C,isLoading:k,isLoadingMore:L,items:O,pagination:I,hasError:P,errorMessage:B},H]=(0,p.useReducer)(Xv,$v({items:s,pagination:c,errorMessage:f||""})),[F,$]=(0,p.useState)(t),[V,W]=(0,p.useState)(void 0),ee=({payload:pe})=>{pe&&H(y1(pe))},q=({payload:pe})=>{pe&&H(b1(pe))},Y=pe=>{var Ie;H(_1(!0)),!((Ie=pe?.data)===null||Ie===void 0)&&Ie.message&&(H(w1(pe.data.message)),U(pe.data.message))},ae=async pe=>{H(ea(!0));try{const Ie=await st({settings:{method:"POST",url:n,body:JSON.stringify(Object.assign({[e]:pe,limit:h??9,offset:0,currentPage:1,cultureCode:u,searchFolder:T,hideSegmentBreadcrumb:M},r))}});W(Ie.payload.localization),q(Ie)}catch(Ie){Y(Ie)}finally{H(ea(!1))}},ue=async()=>
209{if(!(!C||k||L)){H(_i(!0));try{const pe=await st({settings:{method:"POST",url:n,body:JSON.stringify(Object.assign({[e]:F,limit:I.rowsOnPage,offset:O.length,cultureCode:u,searchFolder:T,hideSegmentBreadcrumb:M},r))}});ee(pe)}catch(pe){Y(pe)}finally{H(_i(!1))}}},We=async()=>{H(ea(!0));try{const pe=await st({settings:{method:"POST",url:n,body:JSON.stringify(Object.assign({limit:v?g??Ma:h??Pi,offset:0,cultureCode:u,latitude:kt.lat,longitude:kt.lng,isPageDetail:v},r))}});W(pe.payload.localization),q(pe)}catch(pe){Y(pe)}finally{H(ea(!1))}},be=async()=>{if(!(!C||k||L)){H(_i(!0));try{const pe=await st({settings:{method:"POST",url:n,body:JSON.stringify(Object.assign({limit:v?Pi:I.rowsOnPage,offset:O.length,cultureCode:u,latitude:kt.lat,longitude:kt.lng,isPageDetail:v},r))}});ee(pe)}catch(pe){Y(pe)}finally{H(_i(!1))}}},_e=async()=>{H(ea(!0));try{const pe=await st({settings:{method:"POST",url:n,body:JSON.stringify(Object.assign({limit:v?g??Ma:h??Pi,offset:0,cultureCode:u,latitude:At(Ye).lat,longitude:At(Ye).lng,isPageDetail:v},r))}});W(pe.payload.localization),q(pe)}catch(pe){Y(pe)}finally{H(ea(!1))}},qe=async()=>{if(!(!C||k||L)){H(_i(!0));try{const pe=await st({settings:{method:"POST",url:n,body:JSON.stringify(Object.assign({limit:v?Pi:I.rowsOnPage,offset:O.length,cultureCode:u,latitude:At(Ye).lat,longitude:At(Ye).lng,isPageDetail:v},r))}});ee(pe)}catch(pe){Y(pe)}finally{H(_i(!1))}}},je=async()=>{H(ea(!0));try{const pe=await st({settings:{method:"POST",url:n,body:JSON.stringify(Object.assign({limit:v?g??Ma:h??Pi,offset:0,cultureCode:u,latitude:At(ve).lat,longitude:At(ve).lng,isPageDetail:v},r))}});W(pe.payload.localization),q(pe)}catch(pe){Y(pe)}finally{H(ea(!1))}},ct=async()=>{if(!(!C||k||L)){H(_i(!0));try{const pe=await st({settings:{method:"POST",url:n,body:JSON.stringify(Object.assign({limit:v?Pi:I.rowsOnPage,offset:O.length,cultureCode:u,latitude:At(ve).lat,longitude:At(ve).lng,isPageDetail:v},r))}});ee(pe)}catch(pe){Y(pe)}finally{H(_i(!1))}}},ht=async()=>{H(ea(!0));try{const pe=await st({settings:{method:"POST",url:n,body:JSON.stringify(Object.assign({limit:g??Ma,offset:0,cultureCode:u,latitude:_,longitude:w,isPageDetail:v},r))}});W(pe.payload.localization),q(pe)}catch(pe){Y(pe)}finally{H(ea(!1))}},Ge=async()=>{if(!(!C||k||L)){H(_i(!0));try{const pe=await st({settings:{method:"POST",url:n,body:JSON.stringify(Object.assign({limit:Pi,offset:O.length,cultureCode:u,latitude:_,longitude:w,isPageDetail:v},r))}});ee(pe)}catch(pe){Y(pe)}finally{H(_i(!1))}}},Re=async()=>{if(!(!C||k||L)){H(_i(!0));try{const pe=await st({settings:{method:"POST",url:n,body:JSON.stringify(Object.assign({currency:x,date:S,cultureCode:u,limit:I.rowsOnPage,offset:O.length,initPageSize:O.length},r))}});ee(pe)}catch(pe){Y(pe)}finally{H(_i(!1))}}},Ze=async pe=>{if(pe.preventDefault(),k)return;const Ie=pe.target[a];if(!Ie){console.error(`No '${a}' input in form found`);return}const Ke=Ie.value.trim();$(Ke),i.classList.contains(R)&&window.history.replaceState(null,"",`?query=${Ke}`),y?_e():ae(Ke)};return(0,p.useEffect)(()=>{if(!(!i||!a))return i.addEventListener("submit",Ze),()=>{i.removeEventListener("submit",Ze)}},[i]),{hasNextItems:C,isLoading:k,isLoadingMore:L,items:O,query:F,setQuery:$,loadNewItemsWithQuery:ae,loadNextItems:ue,loadNewItemsWithFallbackCoordinates:We,loadMoreItemsWithFallbackCoordinates:be,loadNewItemsWithSearchCoordinates:_e,loadMoreItemsWithSearchCoordinates:qe,loadNewItemsWithBrowserCoordinates:je,loadMoreItemsWithBrowserCoordinates:ct,loadNewItemsOnDetailPage:ht,loadMoreItemsOnDetailPage:Ge,loadMoreItemsExchangeRatesDetail:Re,hasError:P,errorMessage:B,localization:V}},Bc=()=>{const n=(0,p.useRef)(!1);return{allowScroll:()=>{const{body:r,documentElement:i}=window.document;!r?.style||!n.current||(i.style.position="",i.style.overflow="",r.style.position="",r.style.overflow="",r.style.paddingRight="",n.current=!1)},blockScroll:()=>{const{body:r,documentElement:i}=window.document;if(!r?.style||n.current)return;const a=window.innerWidth-i.clientWidth,s=parseInt(window.getComputedStyle(r).getPropertyValue("padding-right"),10)||0;i.style.position="relative",i.style.overflow="hidden",r.style.position="relative",r.style.overflow="hidden",r.style.paddingRight=`${s+a}px`,n.current=!0}}},x1=({htmlElement:n})=>{const[e,t]=useState({});let r=null;const i=a=>{r=new ResizeObserver(([s])=>{if(!s)return;const{contentRect:c}=s;c&&t(c)}),r.observe(a)};return useEffect(()=>{if(!(!window.ResizeObserver||!n))return r&&r.disconnect(),i(n),()=>{r&&r.disconnect()}},[n]),e},bp=null,_p=()=>{const[n,e]=(0,p.useState)(0),t=()=>{const r=window.innerHeight/100;e(r)};return(0,p.useEffect)(()=>{const r=Io()(()=>t(),300);return window.addEventListener("resize",r),t(),()=>{window.removeEventListener("resize",r)}},[]),{deviceVh:n}},Kv=({ref:n,onClickOutsideCb:e,shouldHandleClick:t=!0})=>{const r=(0,p.useRef)(t),i=a=>{var s;r.current&&(!((s=n?.current)===null||s===void 0)&&s.contains(a.target)||e())};(0,p.useEffect)(()=>{r.current=t},[t]),(0,p.useEffect)(()=>
209{if(n.current)return window.addEventListener("click",i),()=>{document.removeEventListener("click",i)}},[n])},Bd=({totalItems:n,isLoadingMore:e,previousItemCount:t})=>{const r=(0,p.useRef)(t||0),i=(0,p.useRef)(e);return(0,p.useEffect)(()=>{const a=i.current;if(i.current=e,a&&!e&&n>r.current){const s=r.current;setTimeout(()=>{const c=document.querySelector(`[data-item-index="${s}"]`);if(c){const u=c.querySelector('a, button, [tabindex]:not([tabindex="-1"])');u?(u.focus(),u.scrollIntoView({behavior:"smooth",block:"nearest"})):(c.tabIndex=-1,c.focus(),c.scrollIntoView({behavior:"smooth",block:"nearest"}))}},100)}!e&&n!==r.current&&(r.current=n)},[n,e]),{getItemIndexProps:a=>({"data-item-index":a})}},Hd=({itemCount:n,isLoadingMore:e,localization:t,itemType:r})=>{const[i,a]=(0,p.useState)(""),s=(0,p.useRef)(n),c=(0,p.useRef)(e);return(0,p.useEffect)(()=>{const u=c.current;if(c.current=e,u&&!e&&n>s.current){const f=n-s.current;let h="";if(f===1?h=`1 new ${r} loaded. Focus moved to the new item.`:h=`${f} new ${r} loaded. Focus moved to the first new item.`,t){const g=r==="branches"?t.Branches_Branch||"branch":t.Branches_Atm||"ATM";f===1?h=`1 new ${g} loaded. Focus moved to the new item.`:h=`${f} new ${g}s loaded. Focus moved to the first new item.`}a(h),setTimeout(()=>{a("")},1e3)}e||(s.current=n)},[n,e,t,r]),{announcement:i,liveRegionProps:{"aria-live":"assertive","aria-atomic":!0,className:"sr-only",role:"status"}}},Ep="js-transparent-account-list-form",zd=({items:n})=>n?.length?p.createElement("ul",{className:"mb-8 pl-0 last:mb-0"},n.map(e=>p.createElement(Vd,Object.assign({key:e.id},e)))):null,Fd=({perex:n,title:e,url:t,target:r})=>!e||!t?null:p.createElement("li",{className:"block border-b border-grey-30 first:border-t","data-testid":`result-item-${t}`},p.createElement("a",{className:"group block break-words py-6 px-4",href:t,target:r},p.createElement("div",{className:"font-semibold leading-7 underline media-group-hover:text-red-corporate media-group-hover:decoration-red-corporate sm:duration-300"},e),n&&p.createElement("div",{className:"mt-2 text-xs",dangerouslySetInnerHTML:{__html:n}}))),Vd=(0,p.memo)(Fd),Hc=({api:n,query:e,baseUrl:t,items:r,pagination:i,localization:a,cultureCode:s})=>{const{hasNextItems:c,isLoadingMore:u,items:f,loadNextItems:h,hasError:g}=Da({api:n,defaultQuery:e,formElement:document.querySelector(`.${Ep}`),formInputName:"query",fetchBodyData:{baseUrl:t},defaultItems:r,defaultPagination:i,cultureCode:s}),v=!f?.length;return p.createElement("div",{className:"sm:col-14 sm:offset-1"},(g||v)&&p.createElement("div",{className:`${v?"mb-0":"mb-8"}`},p.createElement(qn,{type:Ce.Error,text:ye(a,"transparentAccountList/errorMessage"),textAttributes:{role:"alert","aria-live":"assertive"}})),p.createElement(zd,{items:f}),c&&p.createElement(Ri,{template:"secondary",title:ye(a,"transparentAccountList/button"),type:"button",isLoading:u,onClick:h,dataTestId:"button-load-more"}))},Jv=({items:n})=>n?.length?p.createElement("ul",{className:"mb-8 pl-0 last:mb-0"},n.map(e=>p.createElement(t0,Object.assign({key:e.id},e)))):null,e0=({date:n,year:e,info:t,amount:r})=>p.createElement("li",{className:"block border-b border-grey-30 p-4 text-base text-grey-200 first:border-t sm:flex sm:items-center sm:py-6","data-testid":"result-item"},p.createElement(xp,{date:n,year:e}),p.createElement(n0,Object.assign({},t)),p.createElement(D1,Object.assign({},r))),t0=(0,p.memo)(e0),xp=({date:n,year:e})=>p.createElement("div",{className:"mb-2 flex shrink-0 font-semibold sm:mb-0 sm:block"},p.createElement("div",{className:"sm:min-w-[3.375rem]"},n),e&&p.createElement("div",{className:"ml-1 text-grey-80 sm:ml-0 sm:mt-2 sm:text-xs"},e)),n0=({title:n,additionalInfo:e,transparentAccountInfo:t})=>p.createElement("div",{className:"mb-4 break-words text-grey-160 sm:mx-6 sm:mb-0 sm:min-w-0"},p.createElement("div",{className:"font-semibold text-grey-200",dangerouslySetInnerHTML:{__html:n}}),t&&p.createElement("div",{className:"mt-1 text-xs"},t),e&&p.createElement("div",{className:"mt-1 text-xs"},e)),D1=({value:n,type:e})=>{const t=Ta()("font-semibold shrink-0 sm:ml-auto",{"text-teal-170":e==="income","text-red-corporate":e==="expense"});return p.createElement("div",{className:t},n)},Cp=({api:n,balance:e,items:t,localization:r,pagination:i,query:a,maxVisibleDays:s,title:c,cultureCode:u})=>{const{hasNextItems:f,isLoadingMore:h,items:g,loadNextItems:v}=Da({api:n,defaultQuery:a,fetchBodyData:{maxVisibleDays:s},defaultItems:t,defaultPagination:i,cultureCode:u});return p.createElement("div",{className:"sm:col-14 sm:offset-1"},p.createElement("h2",{className:"mb-2 text-2xl text-grey-200 sm:text-3xl"},c),p.createElement("div",{className:"mb-6 text-lg text-grey-200 last:mb-0 sm:flex sm:font-normal"},p.createElement("span",{className:"font-semibold"},e.amount),p.createElement("span",{className:"whitespace-pre-line sm:whitespace-pre",dangerouslySetInnerHTML:{__html:` (${e.date})`}})),p.createElement(Jv,{items:g}),f&&p.createElement(Ri,{template:"secondary",title:ye(r,"transparentAccountDetail/button"),type:"button",isLoading:h,onClick:v,dataTestId:"button-load-more"}))};function Tp(n,e){if(n==null)return{};var t={};for(var r in n)if({}
209.hasOwnProperty.call(n,r)){if(e.indexOf(r)!==-1)continue;t[r]=n[r]}return t}function cs(){return cs=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},cs.apply(null,arguments)}var zc="data-focus-lock",Mp="data-focus-lock-disabled",Dp="data-no-focus-lock",us="data-autofocus-inside",ds="data-no-autofocus";function ta(n,e){return typeof n=="function"?n(e):n&&(n.current=e),n}function Fc(n,e){var t=(0,p.useState)(function(){return{value:n,callback:e,facade:{get current(){return t.value},set current(r){var i=t.value;i!==r&&(t.value=r,t.callback(r,i))}}}})[0];return t.callback=e,t.facade}var Vc=typeof window<"u"?p.useLayoutEffect:p.useEffect,Oa=new WeakMap;function O1(n,e){var t=Fc(e||null,function(r){return n.forEach(function(i){return ta(i,r)})});return Vc(function(){var r=Oa.get(t);if(r){var i=new Set(r),a=new Set(n),s=t.current;i.forEach(function(c){a.has(c)||ta(c,null)}),a.forEach(function(c){i.has(c)||ta(c,s)})}Oa.set(t,n)},[n]),t}var pl={width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"},Yc=function(e){var t=e.children,r=t===void 0?null:t;return p.createElement(p.Fragment,null,p.createElement("div",{key:"guard-first","data-focus-guard":!0,"data-focus-auto-guard":!0,style:pl}),r,r&&p.createElement("div",{key:"guard-last","data-focus-guard":!0,"data-focus-auto-guard":!0,style:pl}))};Yc.propTypes={};const kE=null;var Yd=function(n,e){return Yd=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])},Yd(n,e)};function Op(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Yd(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var jd=function(){return jd=Object.assign||function(e){for(var t,r=1,i=arguments.length;r<i;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},jd.apply(this,arguments)};function LE(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(n);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(n,r[i])&&(t[r[i]]=n[r[i]]);return t}function kp(n,e,t,r){var i=arguments.length,a=i<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,e,t,r);else for(var c=n.length-1;c>=0;c--)(s=n[c])&&(a=(i<3?s(a):i>3?s(e,t,a):s(e,t))||a);return i>3&&a&&Object.defineProperty(e,t,a),a}function Lp(n,e){return function(t,r){e(t,r,n)}}function k1(n,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,e)}function jc(n,e,t,r){function i(a){return a instanceof t?a:new t(function(s){s(a)})}return new(t||(t=Promise))(function(a,s){function c(h){try{f(r.next(h))}catch(g){s(g)}}function u(h){try{f(r.throw(h))}catch(g){s(g)}}function f(h){h.done?a(h.value):i(h.value).then(c,u)}f((r=r.apply(n,e||[])).next())})}function L1(n,e){var t={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,s;return s={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function c(f){return function(h){return u([f,h])}}function u(f){if(r)throw new TypeError("Generator is already executing.");for(;t;)try{if(r=1,i&&(a=f[0]&2?i.return:f[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,f[1])).done)return a;switch(i=0,a&&(f=[f[0]&2,a.value]),f[0]){case 0:case 1:a=f;break;case 4:return t.label++,{value:f[1],done:!1};case 5:t.label++,i=f[1],f=[0];continue;case 7:f=t.ops.pop(),t.trys.pop();continue;default:if(a=t.trys,!(a=a.length>0&&a[a.length-1])&&(f[0]===6||f[0]===2)){t=0;continue}if(f[0]===3&&(!a||f[1]>a[0]&&f[1]<a[3])){t.label=f[1];break}if(f[0]===6&&t.label<a[1]){t.label=a[1],a=f;break}if(a&&t.label<a[2]){t.label=a[2],t.ops.push(f);break}a[2]&&t.ops.pop(),t.trys.pop();continue}f=e.call(n,t)}catch(h){f=[6,h],i=0}finally{r=a=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}}var Wd=Object.create?(function(n,e,t,r){r===void 0&&(r=t);var i=Object.getOwnPropertyDescriptor(e,t);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(n,r,i)}):(function(n,e,t,r){r===void 0&&(r=t),n[r]=e[t]});function Ap(n,e){for(var t in n)t!=="default"&&!Object.prototype.hasOwnProperty.call(e,t)&&Wd(e,n,t)}function Rp(n){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&n[e],r=0;if(t)return t.call(n);if(n&&typeof n.length=="number")return{next:function(){return n&&r>=n.length&&(n=void 0),{value:n&&n[r++],done:!n}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function A1(n,e){var t=typeof Symbol=="function"&&n[Symbol.iterator];if(!t)return n;var r=t.call(n),i,a=[],s;try{for(;(e===void 0||e-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(c){s={error:c}}finally{try{i&&!i.done&&(t=r.return)&&t.call(r)}finally{if(s)throw s.error}}return a}function Ip(){for(var n=[],e=0;e<arguments.length;e++)n=n.concat(A1(arguments[e]));return n}function o(){for(var n=0,e=0,t=arguments.length;e<t;e++)n+=arguments[e].length;for(var r=Array(n),i=0,e=0;e<t;e++)for(var a=arguments[e],s=0,c=a.length;s<c;s++,i++)r[i]=a[s];return r}function l(n,e,t){if(t||arguments.length===2)for(var r=0,i=e.length,a;r<i;
209r++)(a||!(r in e))&&(a||(a=Array.prototype.slice.call(e,0,r)),a[r]=e[r]);return n.concat(a||Array.prototype.slice.call(e))}function d(n){return this instanceof d?(this.v=n,this):new d(n)}function m(n,e,t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=t.apply(n,e||[]),i,a=[];return i={},s("next"),s("throw"),s("return"),i[Symbol.asyncIterator]=function(){return this},i;function s(v){r[v]&&(i[v]=function(y){return new Promise(function(_,w){a.push([v,y,_,w])>1||c(v,y)})})}function c(v,y){try{u(r[v](y))}catch(_){g(a[0][3],_)}}function u(v){v.value instanceof d?Promise.resolve(v.value.v).then(f,h):g(a[0][2],v)}function f(v){c("next",v)}function h(v){c("throw",v)}function g(v,y){v(y),a.shift(),a.length&&c(a[0][0],a[0][1])}}function b(n){var e,t;return e={},r("next"),r("throw",function(i){throw i}),r("return"),e[Symbol.iterator]=function(){return this},e;function r(i,a){e[i]=n[i]?function(s){return(t=!t)?{value:d(n[i](s)),done:i==="return"}:a?a(s):s}:a}}function E(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=n[Symbol.asyncIterator],t;return e?e.call(n):(n=typeof Rp=="function"?Rp(n):n[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(a){t[a]=n[a]&&function(s){return new Promise(function(c,u){s=n[a](s),i(c,u,s.done,s.value)})}}function i(a,s,c,u){Promise.resolve(u).then(function(f){a({value:f,done:c})},s)}}function D(n,e){return Object.defineProperty?Object.defineProperty(n,"raw",{value:e}):n.raw=e,n}var N=Object.create?(function(n,e){Object.defineProperty(n,"default",{enumerable:!0,value:e})}):function(n,e){n.default=e};function Z(n){if(n&&n.__esModule)return n;var e={};if(n!=null)for(var t in n)t!=="default"&&Object.prototype.hasOwnProperty.call(n,t)&&Wd(e,n,t);return N(e,n),e}function le(n){return n&&n.__esModule?n:{default:n}}function we(n,e,t,r){if(t==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?n!==e||!r:!e.has(n))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?r:t==="a"?r.call(n):r?r.value:e.get(n)}function De(n,e,t,r,i){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?n!==e||!i:!e.has(n))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?i.call(n,t):i?i.value=t:e.set(n,t),t}function ce(n,e){if(e===null||typeof e!="object"&&typeof e!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof n=="function"?e===n:n.has(e)}function fe(n){return n}function et(n,e){e===void 0&&(e=fe);var t=[],r=!1,i={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return t.length?t[t.length-1]:n},useMedium:function(a){var s=e(a,r);return t.push(s),function(){t=t.filter(function(c){return c!==s})}},assignSyncMedium:function(a){for(r=!0;t.length;){var s=t;t=[],s.forEach(a)}t={push:function(c){return a(c)},filter:function(){return t}}},assignMedium:function(a){r=!0;var s=[];if(t.length){var c=t;t=[],c.forEach(a),s=t}var u=function(){var h=s;s=[],h.forEach(a)},f=function(){return Promise.resolve().then(u)};f(),t={push:function(h){s.push(h),f()},filter:function(h){return s=s.filter(h),t}}}};return i}function yt(n,e){return e===void 0&&(e=fe),et(n,e)}function mn(n){n===void 0&&(n={});var e=et(null);return e.options=jd({async:!0,ssr:!1},n),e}var ne=yt({},function(n){var e=n.target,t=n.currentTarget;return{target:e,currentTarget:t}}),X=yt(),oe=yt(),Se=mn({async:!0,ssr:typeof document<"u"}),gt=(0,p.createContext)(void 0),Kt=[],it=(0,p.forwardRef)(function(e,t){var r,i=(0,p.useState)(),a=i[0],s=i[1],c=(0,p.useRef)(),u=(0,p.useRef)(!1),f=(0,p.useRef)(null),h=(0,p.useState)({}),g=h[1],v=e.children,y=e.disabled,_=y===void 0?!1:y,w=e.noFocusGuards,x=w===void 0?!1:w,S=e.persistentFocus,T=S===void 0?!1:S,M=e.crossFrame,C=M===void 0?!0:M,k=e.autoFocus,L=k===void 0?!0:k,O=e.allowTextSelection,I=e.group,P=e.className,B=e.whiteList,H=e.hasPositiveIndices,F=e.shards,$=F===void 0?Kt:F,V=e.as,W=V===void 0?"div":V,ee=e.lockProps,q=ee===void 0?{}
209:ee,Y=e.sideCar,ae=e.returnFocus,ue=ae===void 0?!1:ae,We=e.focusOptions,be=e.onActivation,_e=e.onDeactivation,qe=(0,p.useState)({}),je=qe[0],ct=(0,p.useCallback)(function(pt){var Gt=pt.captureFocusRestore;if(!f.current){var Ft,Nt=(Ft=document)==null?void 0:Ft.activeElement;f.current=Nt,Nt!==document.body&&(f.current=Gt(Nt))}c.current&&be&&be(c.current),u.current=!0,g()},[be]),ht=(0,p.useCallback)(function(){u.current=!1,_e&&_e(c.current),g()},[_e]),Ge=(0,p.useCallback)(function(pt){var Gt=f.current;if(Gt){var Ft=(typeof Gt=="function"?Gt():Gt)||document.body,Nt=typeof ue=="function"?ue(Ft):ue;if(Nt){var Tt=typeof Nt=="object"?Nt:void 0;f.current=null,pt?Promise.resolve().then(function(){return Ft.focus(Tt)}):Ft.focus(Tt)}}},[ue]),Re=(0,p.useCallback)(function(pt){u.current&&ne.useMedium(pt)},[]),Ze=X.useMedium,pe=(0,p.useCallback)(function(pt){c.current!==pt&&(c.current=pt,s(pt))},[]),Ie=cs((r={},r[Mp]=_&&"disabled",r[zc]=I,r),q),Ke=x!==!0,nt=Ke&&x!=="tail",Ot=O1([t,pe]),zt=(0,p.useMemo)(function(){return{observed:c,shards:$,enabled:!_,get active(){return u.current}}},[_,u,$,c]);return p.createElement(p.Fragment,null,Ke&&[p.createElement("div",{key:"guard-first","data-focus-guard":!0,tabIndex:_?-1:0,style:pl}),H?p.createElement("div",{key:"guard-nearest","data-focus-guard":!0,tabIndex:_?-1:1,style:pl}):null],!_&&p.createElement(Y,{id:je,sideCar:Se,observed:a,disabled:_,persistentFocus:T,crossFrame:C,autoFocus:L,whiteList:B,shards:$,onActivation:ct,onDeactivation:ht,returnFocus:Ge,focusOptions:We,noFocusGuards:x}),p.createElement(W,cs({ref:Ot},Ie,{className:P,onBlur:Ze,onFocus:Re}),p.createElement(gt.Provider,{value:zt},v)),nt&&p.createElement("div",{"data-focus-guard":!0,tabIndex:_?-1:0,style:pl}))});it.propTypes={};const Dt=it;function It(n,e){return It=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,r){return t.__proto__=r,t},It(n,e)}function Jt(n,e){n.prototype=Object.create(e.prototype),n.prototype.constructor=n,It(n,e)}function Or(n){"@babel/helpers - typeof";return Or=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Or(n)}function R1(n,e){if(Or(n)!="object"||!n)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e||"default");if(Or(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function AE(n){var e=R1(n,"string");return Or(e)=="symbol"?e:e+""}function Qe(n,e,t){return(e=AE(e))in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function mD(n,e){function t(r){return r.displayName||r.name||"Component"}return function(i){var a=[],s;function c(){s=n(a.map(function(f){return f.props})),e(s)}var u=(function(f){Jt(h,f);function h(){return f.apply(this,arguments)||this}h.peek=function(){return s};var g=h.prototype;return g.componentDidMount=function(){a.push(this),c()},g.componentDidUpdate=function(){c()},g.componentWillUnmount=function(){var y=a.indexOf(this);a.splice(y,1),c()},g.render=function(){return p.createElement(i,this.props)},h})(p.PureComponent);return Qe(u,"displayName","SideEffect("+t(i)+")"),u}}const gD=mD;var fs=function(n){for(var e=Array(n.length),t=0;t<n.length;++t)e[t]=n[t];return e},Wc=function(n){return Array.isArray(n)?n:[n]},RE=function(n){return Array.isArray(n)?n[0]:n},vD=function(n){if(n.nodeType!==Node.ELEMENT_NODE)return!1;var e=window.getComputedStyle(n,null);return!e||!e.getPropertyValue?!1:e.getPropertyValue("display")==="none"||e.getPropertyValue("visibility")==="hidden"},IE=function(n){return n.parentNode&&n.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE?n.parentNode.host:n.parentNode},NE=function(n){return n===document||n&&n.nodeType===Node.DOCUMENT_NODE},yD=function(n){return n.hasAttribute("inert")},bD=function(n,e){return!n||NE(n)||!vD(n)&&!yD(n)&&e(IE(n))},PE=function(n,e){var t=n.get(e);if(t!==void 0)return t;var r=bD(e,PE.bind(void 0,n));return n.set(e,r),r},_D=function(n,e){return n&&!NE(n)?xD(n)?e(IE(n)):!1:!0}
209,BE=function(n,e){var t=n.get(e);if(t!==void 0)return t;var r=_D(e,BE.bind(void 0,n));return n.set(e,r),r},HE=function(n){return n.dataset},wD=function(n){return n.tagName==="BUTTON"},zE=function(n){return n.tagName==="INPUT"},FE=function(n){return zE(n)&&n.type==="radio"},ED=function(n){return!((zE(n)||wD(n))&&(n.type==="hidden"||n.disabled))},xD=function(n){var e=n.getAttribute(ds);return![!0,"true",""].includes(e)},I1=function(n){var e;return!!(n&&(!((e=HE(n))===null||e===void 0)&&e.focusGuard))},N1=function(n){return!I1(n)},SD=function(n){return!!n},CD=function(n,e){var t=Math.max(0,n.tabIndex),r=Math.max(0,e.tabIndex),i=t-r,a=n.index-e.index;if(i){if(!t)return 1;if(!r)return-1}return i||a},TD=function(n){return n.tabIndex<0&&!n.hasAttribute("tabindex")?0:n.tabIndex},P1=function(n,e,t){return fs(n).map(function(r,i){var a=TD(r);return{node:r,index:i,tabIndex:t&&a===-1?(r.dataset||{}).focusGuard?0:-1:a}}).filter(function(r){return!e||r.tabIndex>=0}).sort(CD)},MD=["button:enabled","select:enabled","textarea:enabled","input:enabled","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[tabindex]","[contenteditable]","[autofocus]"],B1=MD.join(","),DD="".concat(B1,", [data-focus-guard]"),VE=function(n,e){return fs((n.shadowRoot||n).children).reduce(function(t,r){return t.concat(r.matches(e?DD:B1)?[r]:[],VE(r))},[])},OD=function(n,e){var t;return n instanceof HTMLIFrameElement&&(!((t=n.contentDocument)===null||t===void 0)&&t.body)?Ud([n.contentDocument.body],e):[n]},Ud=function(n,e){return n.reduce(function(t,r){var i,a=VE(r,e),s=(i=[]).concat.apply(i,a.map(function(c){return OD(c,e)}));return t.concat(s,r.parentNode?fs(r.parentNode.querySelectorAll(B1)).filter(function(c){return c===r}):[])},[])},kD=function(n){var e=n.querySelectorAll("[".concat(us,"]"));return fs(e).map(function(t){return Ud([t])}).reduce(function(t,r){return t.concat(r)},[])},H1=function(n,e){return fs(n).filter(function(t){return PE(e,t)}).filter(function(t){return ED(t)})},YE=function(n,e){return e===void 0&&(e=new Map),fs(n).filter(function(t){return BE(e,t)})},z1=function(n,e,t){return P1(H1(Ud(n,t),e),!0,t)},Np=function(n,e){return P1(H1(Ud(n),e),!1)},LD=function(n,e){return H1(kD(n),e)},Uc=function(n,e){return n.shadowRoot?Uc(n.shadowRoot,e):Object.getPrototypeOf(n).contains!==void 0&&Object.getPrototypeOf(n).contains.call(n,e)?!0:fs(n.children).some(function(t){var r;if(t instanceof HTMLIFrameElement){var i=(r=t.contentDocument)===null||r===void 0?void 0:r.body;return i?Uc(i,e):!1}return Uc(t,e)})},AD=function(n){try{return n()}catch{return}},Pp=function(n){if(n===void 0&&(n=document),!(!n||!n.activeElement)){var e=n.activeElement;return e.shadowRoot?Pp(e.shadowRoot):e instanceof HTMLIFrameElement&&AD(function(){return e.contentWindow.document})?Pp(e.contentWindow.document):e}},RD=function(n){n===void 0&&(n=document);var e=Pp(n);return e?fs(n.querySelectorAll("[".concat(Dp,"]"))).some(function(t){return Uc(t,e)}):!1},ID=function(n){for(var e=new Set,t=n.length,r=0;r<t;r+=1)for(var i=r+1;i<t;i+=1){var a=n[r].compareDocumentPosition(n[i]);(a&Node.DOCUMENT_POSITION_CONTAINED_BY)>0&&e.add(i),(a&Node.DOCUMENT_POSITION_CONTAINS)>0&&e.add(r)}return n.filter(function(s,c){return!e.has(c)})},jE=function(n){return n.parentNode?jE(n.parentNode):n},F1=function(n){var e=Wc(n);return e.filter(Boolean).reduce(function(t,r){var i=r.getAttribute(zc);return t.push.apply(t,i?ID(fs(jE(r).querySelectorAll("[".concat(zc,'="').concat(i,'"]:not([').concat(Mp,'="disabled"])')))):[r]),t},[])},ND=function(n,e){return n===e},PD=function(n,e){return!!fs(n.querySelectorAll("iframe")).some(function(t){return ND(t,e)})},WE=function(n,e){return e===void 0&&(e=Pp(RE(n).ownerDocument)),!e||e.dataset&&e.dataset.focusGuard?!1:F1(n).some(function(t){return Uc(t,e)||PD(t,e)})},V1=function(n,e){n&&("focus"in n&&n.focus(e),"contentWindow"in n&&n.contentWindow&&n.c
209ontentWindow.focus())},BD=function(n,e){return e.filter(FE).filter(function(t){return t.name===n.name}).filter(function(t){return t.checked})[0]||n},Y1=function(n,e){return FE(n)&&n.name?BD(n,e):n},HD=function(n){var e=new Set;return n.forEach(function(t){return e.add(Y1(t,n))}),n.filter(function(t){return e.has(t)})},UE=function(n){return n[0]&&n.length>1?Y1(n[0],n):n[0]},qE=function(n,e){return n.indexOf(Y1(e,n))},j1="NEW_FOCUS",zD=function(n,e,t,r,i){var a=n.length,s=n[0],c=n[a-1],u=I1(r);if(!(r&&n.indexOf(r)>=0)){var f=r!==void 0?t.indexOf(r):-1,h=i?t.indexOf(i):f,g=i?n.indexOf(i):-1;if(f===-1)return g!==-1?g:j1;if(g===-1)return j1;var v=f-h,y=t.indexOf(s),_=t.indexOf(c),w=HD(t),x=r!==void 0?w.indexOf(r):-1,S=i?w.indexOf(i):x,T=w.filter(function(I){return I.tabIndex>=0}),M=r!==void 0?T.indexOf(r):-1,C=i?T.indexOf(i):M,k=M>=0&&C>=0?C-M:S-x;if(!v&&g>=0||e.length===0)return g;var L=qE(n,e[0]),O=qE(n,e[e.length-1]);if(f<=y&&u&&Math.abs(v)>1)return O;if(f>=_&&u&&Math.abs(v)>1)return L;if(v&&Math.abs(k)>1)return g;if(f<=y)return O;if(f>_)return L;if(v)return Math.abs(v)>1?g:(a+g+v)%a}},FD=function(n){return function(e){var t,r=(t=HE(e))===null||t===void 0?void 0:t.autofocus;return e.autofocus||r!==void 0&&r!=="false"||n.indexOf(e)>=0}},$E=function(n,e,t){var r=n.map(function(a){var s=a.node;return s}),i=YE(r.filter(FD(t)));return i&&i.length?UE(i):UE(YE(e))},W1=function(n,e){return e===void 0&&(e=[]),e.push(n),n.parentNode&&W1(n.parentNode.host||n.parentNode,e),e},U1=function(n,e){for(var t=W1(n),r=W1(e),i=0;i<t.length;i+=1){var a=t[i];if(r.indexOf(a)>=0)return a}return!1},GE=function(n,e,t){var r=Wc(n),i=Wc(e),a=r[0],s=!1;return i.filter(Boolean).forEach(function(c){s=U1(s||c,c)||s,t.filter(Boolean).forEach(function(u){var f=U1(a,u);f&&(!s||Uc(f,s)?s=f:s=U1(f,s))})}),s},ZE=function(n,e){return n.reduce(function(t,r){return t.concat(LD(r,e))},[])},VD=function(n,e){var t=new Map;return e.forEach(function(r){return t.set(r.node,r)}),n.map(function(r){return t.get(r)}).filter(SD)},YD=function(n,e){var t=Pp(Wc(n).length>0?document:RE(n).ownerDocument),r=F1(n).filter(N1),i=GE(t||n,n,r),a=new Map,s=Np(r,a),c=s.filter(function(_){var w=_.node;return N1(w)});if(c[0]){var u=Np([i],a).map(function(_){var w=_.node;return w}),f=VD(u,c),h=f.map(function(_){var w=_.node;return w}),g=f.filter(function(_){var w=_.tabIndex;return w>=0}).map(function(_){var w=_.node;return w}),v=zD(h,g,u,t,e);if(v===j1){var y=$E(s,g,ZE(r,a))||$E(s,h,ZE(r,a));if(y)return{node:y};console.warn("focus-lock: cannot find any node to move focus into");return}return v===void 0?v:f[v]}},q1=0,$1=!1,XE=function(n,e,t){t===void 0&&(t={});var r=YD(n,e);if(!$1&&r){if(q1>2){console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),$1=!0,setTimeout(function(){$1=!1},1);return}q1++,V1(r.node,t.focusOptions),q1--}};function Bp(n){if(!n)return null;if(typeof WeakRef>"u")return function(){return n||null};var e=n?new WeakRef(n):null;return function(){return e?.deref()||null}}var jD=function(n){if(!n)return null;for(var e=[],t=n;t&&t!==document.body;)e.push({current:Bp(t),parent:Bp(t.parentElement),left:Bp(t.previousElementSibling),right:Bp(t.nextElementSibling)}),t=t.parentElement;return{element:Bp(n),stack:e,ownerDocument:n.ownerDocument}},WD=function(n){var e,t,r,i,a;if(n)for(var s=n.stack,c=n.ownerDocument,u=new Map,f=0,h=s;f<h.length;f++){var g=h[f],v=(e=g.parent)===null||e===void 0?void 0:e.call(g);if(v&&c.contains(v)){for(var y=(t=g.left)===null||t===void 0?void 0:t.call(g),_=g.current(),w=v.contains(_)?_:void 0,x=(r=g.right)===null||r===void 0?void 0:r.call(g),S=z1([v],u),T=(a=(i=w??y?.nextElementSibling)!==null&&i!==void 0?i:x)!==null&&a!==void 0?a:y;T;){for(var M=0,C=S;M<C.length;M++){var k=C[M];if(T?.contains(k.node))return k.node}T=T.nextElementSibling}if(S.length)return S[0].node}}},QE=function(n){var e=jD(n);return function(){return WD(e)}},UD=function(n){var e=F1(n).filter(N1),t=GE(n,n,e),r=P1(Ud([t],!0),!0,!0),i=Ud(e,!1);return r.map(function(a){var s=a.node,c=a.index;return{node:s,index:c,lockItem:i.indexOf(s)>=0,guard:I1(s)}})},qD=function(n,e,t){if(!n||!e)return console.error("no element or scope given"),{};var r=Wc(e);if(r.every(function(s){return!Uc(s,n)}))return console.error("Active element is not contained in the scope"),{};var i=t?z1(r,new Map):Np(r,new Map),a=i.findIndex(function(s){var c=s.node;return c===n});if(a!==-1)return{prev:i[a-1],next:i[a+1],first:i[0],last:i[i.length-1]}},$D=function(n,e){var t=e?z1(Wc(n),new Map):Np(Wc(n),new Map);return{first:t[0],last:t[t.length-1]}},GD=function(n){return Object.assign({scope:document.body,cycle:!0,onlyTabbable:!0},n)},KE=function(n,e,t){e===void 0&&(e={});var r=GD(e),i=qD(n,r.scope,r.onlyTabbable);if(i){var a=t(i,r.cycle);
209a&&V1(a.node,r.focusOptions)}},ZD=function(n,e){e===void 0&&(e={}),KE(n,e,function(t,r){var i=t.next,a=t.first;return i||r&&a})},XD=function(n,e){e===void 0&&(e={}),KE(n,e,function(t,r){var i=t.prev,a=t.last;return i||r&&a})},JE=function(n,e,t){var r,i=$D(n,(r=e.onlyTabbable)!==null&&r!==void 0?r:!0),a=i[t];a&&V1(a.node,e.focusOptions)},QD=function(n,e){e===void 0&&(e={}),JE(n,e,"first")},KD=function(n,e){e===void 0&&(e={}),JE(n,e,"last")};function G1(n){setTimeout(n,1)}var vH=function(e,t){var r={};return r[e]=t,r},JD=function(e){return e&&"current"in e?e.current:e},e2=function(){return document&&document.activeElement===document.body},eO=function(){return e2()||RD()},qd=null,wi=null,t2=function(){return null},$d=null,Hp=!1,Z1=!1,tO=function(){return!0},nO=function(e){return(qd.whiteList||tO)(e)},rO=function(e,t){$d={observerNode:e,portaledElement:t}},iO=function(e){return $d&&$d.portaledElement===e};function n2(n,e,t,r){var i=null,a=n;do{var s=r[a];if(s.guard)s.node.dataset.focusAutoGuard&&(i=s);else if(s.lockItem){if(a!==n)return;i=null}else break}while((a+=t)!==e);i&&(i.node.tabIndex=0)}var aO=function(e){return e?!!Hp:Hp==="meanwhile"},sO=function n(e,t,r){return t&&(t.host===e&&(!t.activeElement||r.contains(t.activeElement))||t.parentNode&&n(e,t.parentNode,r))},oO=function(e,t){return t.some(function(r){return sO(e,r,r)})},r2=function(e){return Np(e,new Map)},lO=function(e){return!r2([e.parentNode]).some(function(t){return t.node===e})},r0=function(){var e=!1;if(qd){var t=qd,r=t.observed,i=t.persistentFocus,a=t.autoFocus,s=t.shards,c=t.crossFrame,u=t.focusOptions,f=t.noFocusGuards,h=r||$d&&$d.portaledElement;if(e2()&&wi&&wi!==document.body&&(!document.body.contains(wi)||lO(wi))){var g=t2();g&&g.focus()}var v=document&&document.activeElement;if(h){var y=[h].concat(s.map(JD).filter(Boolean)),_=function(){if(!aO(c)||!f||!wi||Z1)return!1;var M=r2(y),C=M.findIndex(function(k){var L=k.node;return L===wi});return C===0||C===M.length-1};if((!v||nO(v))&&(i||_()||!eO()||!wi&&a)&&(h&&!(WE(y)||v&&oO(v,y)||iO(v,h))&&(document&&!wi&&v&&!a?(v.blur&&v.blur(),document.body.focus()):(e=XE(y,wi,{focusOptions:u}),$d={})),wi=document&&document.activeElement,wi!==document.body&&(t2=QE(wi)),Hp=!1),document&&v!==document.activeElement&&document.querySelector("[data-focus-auto-guard]")){var w=document&&document.activeElement,x=UD(y),S=x.map(function(T){var M=T.node;return M}).indexOf(w);S>-1&&(x.filter(function(T){var M=T.guard,C=T.node;return M&&C.dataset.focusAutoGuard}).forEach(function(T){var M=T.node;return M.removeAttribute("tabIndex")}),n2(S,x.length,1,x),n2(S,-1,-1,x))}}}return e},i2=function(e){r0()&&e&&(e.stopPropagation(),e.preventDefault())},i0=function(){return G1(r0)},a2=function(e){var t=e.target,r=e.currentTarget;r.contains(t)||rO(r,t)},cO=function(){return null},uO=function(e){var t=e.children;return p.createElement("div",{onBlur:i0,onFocus:a2},t)};uO.propTypes={};var s2=function(){Z1=!0},o2=function(){Z1=!1,Hp="just",G1(function(){Hp="meanwhile"})},dO=function(){document.addEventListener("focusin",i2),document.addEventListener("focusout",i0),window.addEventListener("focus",s2),window.addEventListener("blur",o2)},fO=function(){document.removeEventListener("focusin",i2),document.removeEventListener("focusout",i0),window.removeEventListener("focus",s2),window.removeEventListener("blur",o2)};function hO(n){return n.filter(function(e){var t=e.disabled;return!t})}var l2={moveFocusInside:XE,focusInside:WE,focusNextElement:ZD,focusPrevElement:XD,focusFirstElement:QD,focusLastElement:KD,captureFocusRestore:QE};function pO(n){var e=n.slice(-1)[0];e&&!qd&&dO();var t=qd,r=t&&e&&e.id===t.id;qd=e,t&&!r&&(t.onDeactivation(),n.filter(function(i){var a=i.id;return a===t.id}).length||t.returnFocus(!e)),e?(wi=null,(!r||t.observed!==e.observed)&&e.onActivation(l2),r0(!0),G1(r0)):(fO(),wi=null)}ne.assignSyncMedium(a2),X.assignMedium(i0),oe.assignMedium(function(n){return n(l2)});const mO=gD(hO,pO)(cO);var c2=(0,p.forwardRef)(function(e,t){return p.createElement(Dt,cs({sideCar:mO,ref:t},e))}),u2=Dt.propTypes||{},yH=u2.sideCar,bH=Tp(u2,["sideCar"]);c2.propTypes={};const gO=c2;function X1(){return X1=Object.assign||function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},X1.apply(this,arguments)}var vO={toggleEl:function(e,t){e[t?"addClass":"removeClass"](this.params.navigation.disabledClass),e[0]&&e[0].tagName==="BUTTON"&&(e[0].disabled=t)},update:function(){var e=this,t=e.params.navigation,r=e.navigation.toggleEl;if(!e.params.loop){var i=e.navigation,a=i.$nextEl,s=i.$prevEl;s&&s.length>0&&(e.isBeginning?r(s,!0):r(s,!1),e.params.watchOverflow&&e.enabled&&s[e.isLocked?"addClass":"removeClass"](t.lockClass)),a&&a.length>0&&(e.isEnd?r(a,!0):r(a,!1),e.params.watchOverflow&&e.enabled&&a[e.isLocked?"addClass":"removeClass"](t.lockClass))}},onPrevClick:function(e){var t=this;e.preventDefault(),!(t.isBeginning&&!t.params.loop)&&t.slidePrev()},onNextClick:function(e){var t=this;e.preventDefault(),!(t.isEnd&&!t.params.loop)&&t.slideNext()},init:function(){var e=this,t=e.params.navigation;if(e.params.navigation=Fo(e.$el,e.params.navigation,e.params.createElements,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!!(t.nextEl||t.prevEl)){var r,i;t.nextEl&&(r=On(t.nextEl),e.params.uniqueNavElements&&typeof t.nextEl=="string"&&r.length>1&&e.$el.find(t.nextEl).length===1&&(r=e.$el.find(t.nextEl))),t.prevEl&&(i=On(t.prevEl),e.params.uniqueNavElements&&typeof t.prevEl=="string"&&i.length>1&&e.$el.find(t.prevEl).length===1&&(i=e.$el.find(t.prevEl))),r&&r.length>0&&r.on("click",e.navigation.onNextClick),i&&i.length>0&&i.on("click",e.navigation.onPrevClick),In(e.navigation,{$nextEl:r,nextEl:r&&r[0],$prevEl:i,prevEl:i&&i[0]}),e.enabled||(r&&r.addClass(t.lockClass),i&&i.addClass(t.lockClass))}},destroy:function(){var e=this,t=e.navigation,r=t.$nextEl,i=t.$prevEl;r&&r.length&&(r.off("click",e.navigation.onNextClick),r.removeClass(e.params.navigation.disabledClass)),i&&i.length&&(i.off("
209click",e.navigation.onPrevClick),i.removeClass(e.params.navigation.disabledClass))}};const yO={name:"navigation",params:{navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock"}},create:function(){var e=this;Pu(e,{navigation:X1({},vO)})},on:{init:function(e){e.navigation.init(),e.navigation.update()},toEdge:function(e){e.navigation.update()},fromEdge:function(e){e.navigation.update()},destroy:function(e){e.navigation.destroy()},"enable disable":function(e){var t=e.navigation,r=t.$nextEl,i=t.$prevEl;r&&r[e.enabled?"removeClass":"addClass"](e.params.navigation.lockClass),i&&i[e.enabled?"removeClass":"addClass"](e.params.navigation.lockClass)},click:function(e,t){var r=e.navigation,i=r.$nextEl,a=r.$prevEl,s=t.target;if(e.params.navigation.hideOnClick&&!On(s).is(a)&&!On(s).is(i)){if(e.pagination&&e.params.pagination&&e.params.pagination.clickable&&(e.pagination.el===s||e.pagination.el.contains(s)))return;var c;i?c=i.hasClass(e.params.navigation.hiddenClass):a&&(c=a.hasClass(e.params.navigation.hiddenClass)),c===!0?e.emit("navigationShow"):e.emit("navigationHide"),i&&i.toggleClass(e.params.navigation.hiddenClass),a&&a.toggleClass(e.params.navigation.hiddenClass)}}}};function qc(n){return typeof n=="object"&&n!==null&&n.constructor&&Object.prototype.toString.call(n).slice(8,-1)==="Object"}function ml(n,e){var t=["__proto__","constructor","prototype"];Object.keys(e).filter(function(r){return t.indexOf(r)<0}).forEach(function(r){typeof n[r]>"u"?n[r]=e[r]:qc(e[r])&&qc(n[r])&&Object.keys(e[r]).length>0?e[r].__swiper__?n[r]=e[r]:ml(n[r],e[r]):n[r]=e[r]})}function d2(n){return n===void 0&&(n={}),n.navigation&&typeof n.navigation.nextEl>"u"&&typeof n.navigation.prevEl>"u"}function f2(n){return n===void 0&&(n={}),n.pagination&&typeof n.pagination.el>"u"}function h2(n){return n===void 0&&(n={}),n.scrollbar&&typeof n.scrollbar.el>"u"}function p2(n){n===void 0&&(n="");var e=n.split(" ").map(function(r){return r.trim()}).filter(function(r){return!!r}),t=[];return e.forEach(function(r){t.indexOf(r)<0&&t.push(r)}),t.join(" ")}var m2=["init","_direction","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","resizeObserver","nested","focusableElements","_enabled","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_freeModeMomentum","_freeModeMomentumRatio","_freeModeMomentumBounce","_freeModeMomentumBounceRatio","_freeModeMomentumVelocityRatio","_freeModeSticky","_freeModeMinimumVelocity","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","_spaceBetween","_slidesPerView","_slidesPerColumn","_slidesPerColumnFill","_slidesPerGroup","_slidesPerGroupSkip","_centeredSlides","_centeredSlidesBounds","_slidesOffsetBefore","_slidesOffsetAfter","normalizeSlideIndex","_centerInsufficientSlides","_watchOverflow","roundLengths","touchRatio","touchAngle","simulateTouch","_shortSwipes","_longSwipes","longSwipesRatio","longSwipesMs","_followFinger","allowTouchMove","_threshold","touchMoveStopPropagation","touchStartPreventDefault","touchStartForcePreventDefault","touchReleaseOnEdges","uniqueNavElements","_resistance","_resistanceRatio","_watchSlidesProgress","_watchSlidesVisibility","_grabCursor","preventClicks","preventClicksPropagation","_slideToClickedSlide","_preloadImages","updateOnImagesReady","_loop","_loopAdditionalSlides","_loopedSlides","_loopFillGroupWithBlank","loopPreventsSlide","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideBlankClass","slideActiveClass","slideDuplicateActiveClass","slideVisibleClass","slideDuplicateClass","slideNextClass","slideDuplicateNextClass","slidePrevClass","slideDuplicatePrevClass","wrapperClass","runCallbacksOnInit","observer","observeParents","observeSlideChildren","a11y","autoplay","_controller","coverflowEffect","cubeEffect","fadeEffect","flipEffect","hashNavigation","history","keyboard","lazy","mousewheel","_navigation","_pagination","parallax","_scrollbar","_thumbs","virtual","zoom"];function bO(n){n===void 0&&(n={});var e={on:{}},t={},r={};ml(e,Gi.defaults),ml(e,Gi.extendedDefaults),e._emitClasses=!0,e.init=!1;var i={},a=m2.map(function(s){return s.replace(/_/,"")});
209return Object.keys(n).forEach(function(s){a.indexOf(s)>=0?qc(n[s])?(e[s]={},r[s]={},ml(e[s],n[s]),ml(r[s],n[s])):(e[s]=n[s],r[s]=n[s]):s.search(/on[A-Z]/)===0&&typeof n[s]=="function"?t[""+s[2].toLowerCase()+s.substr(3)]=n[s]:i[s]=n[s]}),["navigation","pagination","scrollbar"].forEach(function(s){e[s]===!0&&(e[s]={}),e[s]===!1&&delete e[s]}),{params:e,passedParams:r,rest:i,events:t}}function _O(n){return new Gi(n)}function wO(n,e){var t=n.el,r=n.nextEl,i=n.prevEl,a=n.paginationEl,s=n.scrollbarEl,c=n.swiper;d2(e)&&r&&i&&(c.params.navigation.nextEl=r,c.originalParams.navigation.nextEl=r,c.params.navigation.prevEl=i,c.originalParams.navigation.prevEl=i),f2(e)&&a&&(c.params.pagination.el=a,c.originalParams.pagination.el=a),h2(e)&&s&&(c.params.scrollbar.el=s,c.originalParams.scrollbar.el=s),c.init(t)}function g2(n,e){var t=e.slidesPerView;if(e.breakpoints){var r=Gi.prototype.getBreakpoint(e.breakpoints),i=r in e.breakpoints?e.breakpoints[r]:void 0;i&&i.slidesPerView&&(t=i.slidesPerView)}var a=Math.ceil(parseFloat(e.loopedSlides||t,10));return a+=e.loopAdditionalSlides,a>n.length&&(a=n.length),a}function EO(n,e,t){var r=e.map(function(g,v){return p.cloneElement(g,{swiper:n,"data-swiper-slide-index":v})});function i(g,v,y){return p.cloneElement(g,{key:g.key+"-duplicate-"+v+"-"+y,className:(g.props.className||"")+" "+t.slideDuplicateClass})}if(t.loopFillGroupWithBlank){var a=t.slidesPerGroup-r.length%t.slidesPerGroup;if(a!==t.slidesPerGroup)for(var s=0;s<a;s+=1){var c=p.createElement("div",{className:t.slideClass+" "+t.slideBlankClass});r.push(c)}}t.slidesPerView==="auto"&&!t.loopedSlides&&(t.loopedSlides=r.length);var u=g2(r,t),f=[],h=[];return r.forEach(function(g,v){v<u&&h.push(i(g,v,"prepend")),v<r.length&&v>=r.length-u&&f.push(i(g,v,"append"))}),n&&(n.loopedSlides=u),[].concat(f,r,h)}function xO(n,e,t,r){var i=[];if(!e)return i;var a=function(h){i.indexOf(h)<0&&i.push(h)},s=r.map(function(f){return f.key}),c=t.map(function(f){return f.key});s.join("")!==c.join("")&&a("children"),r.length!==t.length&&a("children");var u=m2.filter(function(f){return f[0]==="_"}).map(function(f){return f.replace(/_/,"")});return u.forEach(function(f){if(f in n&&f in e)if(qc(n[f])&&qc(e[f])){var h=Object.keys(n[f]),g=Object.keys(e[f]);h.length!==g.length?a(f):(h.forEach(function(v){n[f][v]!==e[f][v]&&a(f)}),g.forEach(function(v){n[f][v]!==e[f][v]&&a(f)}))}else n[f]!==e[f]&&a(f)}),i}function v2(n){var e=[];
209return p.Children.toArray(n).forEach(function(t){t.type&&t.type.displayName==="SwiperSlide"?e.push(t):t.props&&t.props.children&&v2(t.props.children).forEach(function(r){return e.push(r)})}),e}function SO(n){var e=[],t={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]};return p.Children.toArray(n).forEach(function(r){if(r.type&&r.type.displayName==="SwiperSlide")e.push(r);else if(r.props&&r.props.slot&&t[r.props.slot])t[r.props.slot].push(r);else if(r.props&&r.props.children){var i=v2(r.props.children);i.length>0?i.forEach(function(a){return e.push(a)}):t["container-end"].push(r)}else t["container-end"].push(r)}),{slides:e,slots:t}}function CO(n){var e=n.swiper,t=n.slides,r=n.passedParams,i=n.changedParams,a=n.nextEl,s=n.prevEl,c=n.scrollbarEl,u=n.paginationEl,f=i.filter(function(O){return O!=="children"&&O!=="direction"}),h=e.params,g=e.pagination,v=e.navigation,y=e.scrollbar,_=e.virtual,w=e.thumbs,x,S,T,M,C;i.includes("thumbs")&&r.thumbs&&r.thumbs.swiper&&h.thumbs&&!h.thumbs.swiper&&(x=!0),i.includes("controller")&&r.controller&&r.controller.control&&h.controller&&!h.controller.control&&(S=!0),i.includes("pagination")&&r.pagination&&(r.pagination.el||u)&&(h.pagination||h.pagination===!1)&&g&&!g.el&&(T=!0),i.includes("scrollbar")&&r.scrollbar&&(r.scrollbar.el||c)&&(h.scrollbar||h.scrollbar===!1)&&y&&!y.el&&(M=!0),i.includes("navigation")&&r.navigation&&(r.navigation.prevEl||s)&&(r.navigation.nextEl||a)&&(h.navigation||h.navigation===!1)&&v&&!v.prevEl&&!v.nextEl&&(C=!0);var k=function(I){e[I]&&(e[I].destroy(),I==="navigation"?(h[I].prevEl=void 0,h[I].nextEl=void 0,e[I].prevEl=void 0,e[I].nextEl=void 0):(h[I].el=void 0,e[I].el=void 0))};if(f.forEach(function(O){if(qc(h[O])&&qc(r[O]))ml(h[O],r[O]);else{var I=r[O];(I===!0||I===!1)&&(O==="navigation"||O==="pagination"||O==="scrollbar")?I===!1&&k(O):h[O]=r[O]}}),i.includes("children")&&_&&h.virtual.enabled?(_.slides=t,_.update(!0)):i.includes("children")&&e.lazy&&e.params.lazy.enabled&&e.lazy.load(),x){var L=w.init();L&&w.update(!0)}S&&(e.controller.control=h.controller.control),T&&(u&&(h.pagination.el=u),g.init(),g.render(),g.update()),M&&(c&&(h.scrollbar.el=c),y.init(),y.updateSize(),y.setTranslate()),C&&(a&&
209(h.navigation.nextEl=a),s&&(h.navigation.prevEl=s),v.init(),v.update()),i.includes("allowSlideNext")&&(e.allowSlideNext=r.allowSlideNext),i.includes("allowSlidePrev")&&(e.allowSlidePrev=r.allowSlidePrev),i.includes("direction")&&e.changeDirection(r.direction,!1),e.update()}function TO(n){!n||n.destroyed||!n.params.virtual||n.params.virtual&&!n.params.virtual.enabled||(n.updateSlides(),n.updateProgress(),n.updateSlidesClasses(),n.lazy&&n.params.lazy.enabled&&n.lazy.load(),n.parallax&&n.params.parallax&&n.params.parallax.enabled&&n.parallax.setTranslate())}function MO(n,e,t){var r;if(!t)return null;var i=n.isHorizontal()?(r={},r[n.rtlTranslate?"right":"left"]=t.offset+"px",r):{top:t.offset+"px"};return e.filter(function(a,s){return s>=t.from&&s<=t.to}).map(function(a){return p.cloneElement(a,{swiper:n,style:i})})}function zp(n,e){return typeof window>"u"?(0,p.useEffect)(n,e):(0,p.useLayoutEffect)(n,e)}var DO=["className","tag","wrapperTag","children","onSwiper"];function Q1(){return Q1=Object.assign||function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},Q1.apply(this,arguments)}function OO(n,e){if(n==null)return{};var t={},r=Object.keys(n),i,a;for(a=0;a<r.length;a++)i=r[a],!(e.indexOf(i)>=0)&&(t[i]=n[i]);return t}var y2=(0,p.forwardRef)(function(n,e){var t=n===void 0?{}:n,r=t.className,i=t.tag,a=i===void 0?"div":i,s=t.wrapperTag,c=s===void 0?"div":s,u=t.children,f=t.onSwiper,h=OO(t,DO),g=!1,v=(0,p.useState)("swiper-container"),y=v[0],_=v[1],w=(0,p.useState)(null),x=w[0],S=w[1],T=(0,p.useState)(!1),M=T[0],C=T[1],k=(0,p.useRef)(!1),L=(0,p.useRef)(null),O=(0,p.useRef)(null),I=(0,p.useRef)(null),P=(0,p.useRef)(null),B=(0,p.useRef)(null),H=(0,p.useRef)(null),F=(0,p.useRef)(null),$=(0,p.useRef)(null),V=bO(h),W=V.params,ee=V.passedParams,q=V.rest,Y=V.events,ae=SO(u),ue=ae.slides,We=ae.slots,be=function(){C(!M)};if(Object.assign(W.on,{_containerClasses:function(Ge,Re){_(Re)}}),!L.current&&(Object.assign(W.on,Y),g=!0,O.current=_O(W),O.current.loopCreate=function(){},O.current.loopDestroy=function(){},W.loop&&(O.current.loopedSlides=g2(ue,W)),O.current.virtual&&O.current.params.virtual.enabled)){O.current.virtual.slides=ue;var _e={cache:!1,renderExternal:S,renderExternalUpdate:!1};ml(O.current.params.virtual,_e),ml(O.current.originalParams.virtual,_e)}O.current&&O.current.on("_beforeBreakpoint",be);var qe=function(){g||!Y||!O.current||Object.keys(Y).forEach(function(Ge){O.current.on(Ge,Y[Ge])})},je=function(){!Y||!O.current||Object.keys(Y).forEach(function(Ge){O.current.off(Ge,Y[Ge])})};(0,p.useEffect)(function(){return function(){O.current&&O.current.off("_beforeBreakpoint",be)}}),(0,p.useEffect)(function(){!k.current&&O.current&&(O.current.emitSlidesClasses(),k.current=!0)}),zp(function(){if(e&&(e.current=L.current),!!L.current)return wO({el:L.current,nextEl:B.current,prevEl:H.current,paginationEl:F.current,scrollbarEl:$.current,swiper:O.current},W),f&&f(O.current),function(){O.current&&!O.current.destroyed&&O.current.destroy(!0,!1)}},[]),zp(function(){qe();var ht=xO(ee,I.current,ue,P.current);return I.current=ee,P.current=ue,ht.length&&O.current&&!O.current.destroyed&&CO({swiper:O.current,slides:ue,passedParams:ee,changedParams:ht,nextEl:B.current,prevEl:H.current,scrollbarEl:$.current,paginationEl:F.current}),function(){je()}}),zp(function(){TO(O.current)},[x]);function ct(){return W.virtual?MO(O.current,ue,x):!W.loop||O.current&&O.current.destroyed?ue.map(function(ht){return p.cloneElement(ht,{swiper:O.current})}):EO(O.current,ue,W)}return p.createElement(a,Q1({ref:L,className:p2(""+y+(r?" "+r:""))},q),We["container-start"],d2(W)&&p.createElement(p.Fragment,null,p.createElement("div",{ref:H,className:"swiper-button-prev"}),p.createElement("div",{ref:B,className:"swiper-button-next"})),h2(W)&&p.createElement("div",{ref:$,className:"swiper-scrollbar"}),f2(W)&&p.createElement("div",{ref:F,className:"swiper-pagination"}),p.createElement(c,{className:"swiper-wrapper"},We["wrapper-start"],ct(),We["wrapper-end"]),We["container-end"])});y2.displayName="Swiper";var kO=["tag","children","className","swiper","zoom","virtualIndex"];function K1(){return K1=Object.assign||function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},K1.apply(this,arguments)}function LO(n,e){if(n==null)return{};var t={},r=Object.keys(n),i,a;for(a=0;a<r.length;a++)i=r[a],!(e.indexOf(i)>=0)&&(t[i]=n[i]);return t}var b2=(0,p.forwardRef)(function(n,e){var t=n===void 0?{}:n,r=t.tag,i=r===void 0?"div":r,a=t.children,s=t.className,c=s===void 0?"":s,u=t.swiper,f=t.zoom,h=t.virtualIndex,g=LO(t,kO),v=(0,p.useRef)(null),y=(0,p.useState)("swiper-slide"),_=y[0],w=y[1];function x(M,C,k){C===v.current&&w(k)}zp(function(){if(e&&(e.current=v.current),!(!v.current||!u)){if(u.destroyed){_!=="swiper-slide"&&w("swiper-slide");return}return u.on("_slideClass",x),function(){u&&u.off("_slideClass",x)}}}),zp(function(){u&&v.current&&w(u.getSlideClasses(v.current))},[u]);var S;typeof a=="function"&&(S={isActive:_.indexOf("swiper-slide-active")>=0||_.indexOf("swiper-slide-duplicate-active")>=0,isVisible:_.indexOf("swiper-slide-visible")>=0,isDuplicate:_.indexOf("swiper-slide-duplicate")>=0,isPrev:_.indexOf("swiper-slide-prev")>=0||_.indexOf("swiper-slide-duplicate-prev")>=0,isNext:_.indexOf("swiper-slide-next")>=0||_.indexOf("swiper-slide-duplicate-next")>=0});var T=function(){return typeof a=="function"?a(S):a};return p.createElement(i,K1({ref:v,className:p2(""+_+(c?" "+c:"")),"data-swiper-slide-index":h},g),f?p.createElement("div",{className:"swiper-zoom-container","data-swiper-zoom":typeof f=="number"?f:void 0},T()):T())});b2.displayName="SwiperSlide";const AO="js-gallery",RO="js-gallery-item",J1={CLOSE_TITLE:"galleryClose",NEXT_TITLE:"galleryNext",PREVIOUS_TITLE:"galleryPrevious"};var gl;(function(n){n.HREF="href",n.SRCSET="srcset",n.SIZES="sizes",n.DESCRIPTION="subHtml",n.POSTER="poster",n.SRC="src",n.IS_VIDEO="video",n.INDEX_POSITION="slidePosition"})(gl||(gl={}));const e_=300,IO=({item:n,index:e})=>
209{if(!n)return null;const{dataset:t,href:r}=n,i=t?.[gl.IS_VIDEO]!==void 0;return{description:t?.[gl.DESCRIPTION],sizes:t?.[gl.SIZES],src:i?t?.[gl.SRC]:r,srcset:t?.[gl.SRCSET],type:i?"video":"img",poster:t?.[gl.POSTER],slidePositionIndex:e}},NO=({focusLockRef:n,swiperInstance:e})=>{const{allowScroll:t,blockScroll:r}=Bc(),i=(0,p.useRef)(e),a=(0,p.useRef)(!1),s=(0,p.useRef)(!1),c=(0,p.useRef)(!1),u=(0,p.useRef)(null),f=(0,p.useRef)(null),[h,g]=(0,p.useState)(null),[v,y]=(0,p.useState)(!1),[_,w]=(0,p.useState)(!1),[x,S]=(0,p.useState)(!1),[T,M]=(0,p.useState)(0),[C,k]=(0,p.useState)(!1),[L,O]=(0,p.useState)(null),[I,P]=(0,p.useState)(null),[B,H]=(0,p.useState)(0),[F,$]=(0,p.useState)(0),V=(0,p.useMemo)(()=>{if(!h)return null;const{dataset:be}=h;return{CLOSE_TITLE:be?.[J1.CLOSE_TITLE],NEXT_TITLE:be?.[J1.NEXT_TITLE],PREVIOUS_TITLE:be?.[J1.PREVIOUS_TITLE]}},[h]),W=(be,_e)=>{if(be.preventDefault(),!i?.current)return;const qe=_e+1;i.current.slideTo(qe,0,!1),M(_e),w(!0)},ee=(0,p.useMemo)(()=>{if(!h)return null;const be=h.querySelectorAll(`.${RO}`),_e=Array.from(be||[]);return _e?.length?_e.map((je,ct)=>(je.addEventListener("click",ht=>W(ht,ct)),je.classList.remove("pointer-events-none"),IO({item:je,index:ct}))):null},[h]),q=()=>{!s.current||c.current||S(!0)},Y=()=>{x&&(y(!1),S(!1))},ae=be=>{if(!i?.current||!a?.current)return;const{key:_e,code:qe}=be;if(!(_e==="Enter"||_e==="Tab"||qe==="Space"))switch(be.preventDefault(),_e){case"Escape":{q();return}case"ArrowLeft":{i.current.slidePrev();break}case"ArrowRight":{i.current.slideNext();break}default:break}},ue=()=>{const be=u?.current;if(!be){$(0);return}const _e=be.clientHeight;$(_e)},We=()=>{const be=f?.current;if(!be){H(0);return}const _e=be.clientHeight;H(_e)};return(0,p.useEffect)(()=>{I?.current&&(f.current=I.current,We())},[I]),(0,p.useEffect)(()=>{L?.current&&(u.current=L.current,ue())},[L]),(0,p.useEffect)(()=>{e&&(i.current=e)},[e]),(0,p.useEffect)(()=>{_&&window.setTimeout(()=>{y(!0)},50)},[_]),(0,p.useEffect)(()=>{if(s.current=v,v){r(),w(!1);return}t()},[v]),(0,p.useEffect)(()=>{c.current=x},[x]),(0,p.useEffect)(()=>{if(v&&!_&&!x){window.setTimeout(()=>{k(!0)},e_);return}k(!1)},[v,_,x]),(0,p.useEffect)(()=>{a.current=C},[C]),(0,p.useEffect)(()=>{if(!n?.current)return;const{current:be}=n,{parentNode:_e}=be,{parentNode:qe}=_e,je=qe.querySelector(`.${AO}`);je&&g(je)},[n]),(0,p.useEffect)(()=>{const be=Io()(()=>{We(),ue()},300);return window.addEventListener("keydown",ae),window.addEventListener("resize",be),()=>{window.removeEventListener("keydown",ae),window.removeEventListener("resize",be)}},[]),{handleCloseButtonClick:q,isClosing:x,isOpen:v,isOpening:_,items:ee,localization:V,handleLightboxFading:Y,clickedThumbnailIndex:T,activeDescriptionHeight:B,setActiveDescriptionRef:P,setActiveContentRef:O,activeContentHeight:F}},t_=({ariaLabel:n,clickHandler:e,mobileTopPosition:t,type:r,buttonRef:i})=>{const a=Ta()("lightbox__icon-button",{"lightbox__icon-close":r==="close","lightbox__navigation-button":r!=="close","lightbox__icon-prev":r==="previous","lightbox__icon-next":r==="next"}),s=p.createElement("svg",{className:"lightbox__icon",viewBox:"0 0 48 48",xmlns:"http://www.w3.org/2000/svg"},p.createElement("path",{d:"m24 21.88 7.425-7.426 2.121 2.121L26.121 24l7.425 7.425-2.121 2.121L24 26.121l-7.425 7.425-2.121-2.12L21.879 24l-7.425-7.425 2.121-2.12L24 21.878Z"})),c=p.createElement("svg",{className:"lightbox__icon",viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg"},p.createElement("path",{d:"M17.061 16L12.111 11.05L13.525 9.63599L19.889 16L13.525 22.364L12.111 20.95L17.061 16Z"}));return p.createElement("button",{ref:i,className:a,type:"button",onClick:e,"aria-label":n,style:t?{"--top-position":`${t}px`}:null},r==="close"?s:c)},PO=({isActive:n,swiperContainerRef:e,setActiveDescriptionRef:t,isLighthboxOpen:r,item:i,clickedThumbnailIndex:a,setActiveContentRef:s})=>{const c=(0,p.useRef)(null);return(0,p.useEffect)(()=>{if(!n||!c?.current)return;const u=document.getElementsByClassName("js-tooltip ");[].slice.call(u).forEach(h=>{ns(h,{allowHTML:!0,trigger:"click",hideOnClick:!0,interactive:!0,arrow:!0,theme:"kb"})}),t(c)},[n,c]),p.createElement("div",{className:"lightbox__slide-container"},i.type==="img"?p.createElement(BO,{data:i,isSlideActive:n,setActiveContentRef:s}):p.createElement(KO,{data:i,swiperContainerRef:e,isSlideActive:n,isLighthboxOpen:r,shouldPlayOnLoad:a===i.slidePositionIndex,setActiveContentRef:s}),!!i?.description&&p.createElement("div",{className:"lightbox__description-container",ref:c},p.createElement("div",{className:"row"}
209,p.createElement("div",{className:"mx-auto sm:col-14"},p.createElement("div",{className:"lightbox__description-text",dangerouslySetInnerHTML:{__html:i.description}})))))},BO=({data:n,isSlideActive:e,setActiveContentRef:t})=>{const{description:r,sizes:i,src:a,srcset:s}=n,[c,u]=(0,p.useState)(!1),[f,h]=(0,p.useState)(!1),g=(0,p.useRef)(null),v=Ta()("lightbox__slide-item-img",{"lightbox__slide-item--loading":!f}),y=()=>{h(!0)};return(0,p.useEffect)(()=>{!e||c||u(!0)},[e]),(0,p.useEffect)(()=>{!f||!e||t(g)},[e,f]),p.createElement(p.Fragment,null,!f&&p.createElement(x2,null),(c||f)&&p.createElement("img",{className:v,ref:g,draggable:"false",src:a,alt:r,srcSet:s,sizes:i,onLoad:y}))};var Hr=sn(556),HO=sn(17),zO=sn(517),FO=Object.defineProperty,VO=Object.defineProperties,YO=Object.getOwnPropertyDescriptors,_2=Object.getOwnPropertySymbols,jO=Object.prototype.hasOwnProperty,WO=Object.prototype.propertyIsEnumerable,w2=(n,e,t)=>e in n?FO(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,n_=(n,e)=>{for(var t in e||(e={}))jO.call(e,t)&&w2(n,t,e[t]);if(_2)for(var t of _2(e))WO.call(e,t)&&w2(n,t,e[t]);return n},r_=(n,e)=>VO(n,YO(e));function UO(n,e){var t,r;if(n.videoId!==e.videoId)return!0;const i=((t=n.opts)==null?void 0:t.playerVars)||{},a=((r=e.opts)==null?void 0:r.playerVars)||{};return i.start!==a.start||i.end!==a.end}function E2(n={}){return r_(n_({},n),{height:0,width:0,playerVars:r_(n_({},n.playerVars),{autoplay:0,start:0,end:0})})}function qO(n,e){return n.videoId!==e.videoId||!HO(E2(n.opts),E2(e.opts))}function $O(n,e){var t,r,i,a;return n.id!==e.id||n.className!==e.className||((t=n.opts)==null?void 0:t.width)!==((r=e.opts)==null?void 0:r.width)||((i=n.opts)==null?void 0:i.height)!==((a=e.opts)==null?void 0:a.height)||n.iframeClassName!==e.iframeClassName||n.title!==e.title}var GO={videoId:"",id:"",className:"",iframeClassName:"",style:{},title:"",loading:void 0,opts:{},onReady:()=>{},onError:()=>{},onPlay:()=>{},onPause:()=>{},onEnd:()=>{},onStateChange:()=>{},onPlaybackRateChange:()=>{},onPlaybackQualityChange:()=>{}},ZO={videoId:Hr.string,id:Hr.string,className:Hr.string,iframeClassName:Hr.string,style:Hr.object,title:Hr.string,loading:Hr.oneOf(["lazy","eager"]),opts:Hr.objectOf(Hr.any),onReady:Hr.func,onError:Hr.func,onPlay:Hr.func,onPause:Hr.func,onEnd:Hr.func,onStateChange:Hr.func,onPlaybackRateChange:Hr.func,onPlaybackQualityChange:Hr.func},a0=class extends p.Component{constructor(n){super(n),this.onPlayerReady=e=>{var t,r;return(r=(t=this.props).onReady)==null?void 0:r.call(t,e)},this.onPlayerError=e=>{var t,r;return(r=(t=this.props).onError)==null?void 0:r.call(t,e)},this.onPlayerStateChange=e=>{var t,r,i,a,s,c,u,f;switch((r=(t=this.props).onStateChange)==null||r.call(t,e),e.data){case a0.PlayerState.ENDED:(a=(i=this.props).onEnd)==null||a.call(i,e);break;case a0.PlayerState.PLAYING:(c=(s=this.props).onPlay)==null||c.call(s,e);break;case a0.PlayerState.PAUSED:(f=(u=this.props).onPause)==null||f.call(u,e);break;default:}},this.onPlayerPlaybackRateChange=e=>{var t,r;return(r=(t=this.props).onPlaybackRateChange)==null?void 0:r.call(t,e)},this.onPlayerPlaybackQualityChange=e=>{var t,r;return(r=(t=this.props).onPlaybackQualityChange)==null?void 0:r.call(t,e)},this.createPlayer=()=>{if(typeof document>"u")return;const e=r_(n_({},this.props.opts),{videoId:this.props.videoId});this.internalPlayer=zO(this.container,e),this.internalPlayer.on("ready",this.onPlayerReady),this.internalPlayer.on("error",this.onPlayerError),this.internalPlayer.on("stateChange",this.onPlayerStateChange),this.internalPlayer.on("playbackRateChange",this.onPlayerPlaybackRateChange),this.internalPlayer.on("playbackQualityChange",this.onPlayerPlaybackQualityChange),(this.props.title||this.props.loading)&&this.internalPlayer.getIframe().then(t=>{this.props.title&&t.setAttribute("title",this.props.title),this.props.loading&&t.setAttribute("loading",this.props.loading)})},this.resetPlayer=()=>{var e;return(e=this.internalPlayer)==null?void 0:e.destroy().then(this.createPlayer)},this.updatePlayer=()=>{var e;(e=this.internalPlayer)==null||e.getIframe().then(t=>{this.props.id?t.setAttribute("id",this.props.id):t.removeAttribute("id"),this.props.iframeClassName?t.setAttribute("class",this.props.iframeClassName):t.removeAttribute("class"),this.props.opts&&this.props.opts.width?t.setAttribute("width",this.props.opts.width.toString()):t.removeAttribute("width"),this.props.opts&&this.props.opts.height?t.setAttribute("height",this.props.opts.height.toString()):t.removeAttribute("height"),this.props.title?t.setAttribute("title",this.props.title):t.setAttribute("title","YouTube video player"),this.props.loading?t.setAttribute("loading",this.props.loading):t.removeAttribute("loading")})},this.getInternalPlayer=()=>this.internalPlayer,this.updateVideo=()=>{var e,t,r,i;if(typeof this.props.videoId>"u"||this.props.videoId===null){(e=this.internalPlayer)==null||e.stopVideo();return}let a=!1;const s={videoId:this.props.videoId};if((t=this.props.opts)!=null&&t.playerVars&&(a=this.props.opts.playerVars.autoplay===1,"start"in this.props.opts.playerVars&&(s.startSeconds=this.props.opts.playerVars.start),"end"in this.props.opts.playerVars&&(s.endSeconds=this.props.opts.playerVars.end)),a){(r=this.internalPlayer)==null||r.loadVideoById(s);return}(i=this.internalPlayer)==null||i.cueVideoById(s)},this.refContainer=e=>{this.container=e},this.container=null,this.internalPlayer=null}componentDidMount(){this.createPlayer()}componentDidUpdate(n){$O(n,this.props)&&this.updatePlayer(),qO(n,this.props)&&this.resetPlayer(),UO(n,this.props)&&this.updateVideo()}componentWillUnmount(){var n;(n=this.internalPlayer)==null||n.destroy()}render(){return p.createElement("div",{className:this.props.className,style:this.props.style},p.createElement("div",{id:this.props.id,className:this.props.iframeClassName,ref:this.refContainer}))}},s0=a0;s0.propTypes=ZO,s0.defaultProps=GO,s0.PlayerState={UNSTARTED:-1,ENDED:0,PLAYING:1,PAUSED:2,BUFFERING:3,CUED:5};var XO=s0;const QO=3e3,KO=({data:n,swiperContainerRef:e,isLighthboxOpen:t,shouldPlayOnLoad:r,isSlideActive:i,setActiveContentRef:a})=>{const{src:s,description:c}=n,[u,f]=(0,p.useState)(null),h=(0,p.useRef)(null);Kv({ref:h,onClickOutsideCb:()=>{e?.current&&e.current.focus()},shouldHandleClick:t&&i});const v=Ta()("lightbox__slide-item-video",{"lightbox__slide-item--loading":!u}),y=()=>{u.target.getPlayerState()===1&&u.target.pauseVideo()},_=()=>{var w;if(!(!((w=u?.target)===null||w===void 0)&&w.i)||!e?.current)return;const x=e.current.querySelectorAll('[class*="duplicate"]');x?.length&&x.forEach(S=>{const T=S.querySelector("iframe"),M="https://www.youtube.com";T?.contentWindow&&T.src.startsWith(M)&&T.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',M)})};return(0,p.useEffect)(()=>{u?.target&&y()},[u]),(0,p.useEffect)(()=>{!u?.target||!t||!r||window.setTimeout(()=>{u.target.playVideo()},e_)},[u,t,r]),(0,p.useEffect)(()=>
209{if(!u?.target)return;const w=u.target.i;if(!t){w.tabIndex=-1;return}w.tabIndex=0},[u,t]),(0,p.useEffect)(()=>{!u?.target||t||y()},[t,u,i]),(0,p.useEffect)(()=>{if(!u?.target)return;const w=u.target.i;if(!t||!i){w.tabIndex=-1,setTimeout(()=>{w.blur()},QO),y();return}w.tabIndex=0},[u,i,t]),(0,p.useEffect)(()=>{!h.current||!i||a(h)},[i,h]),p.createElement("div",{ref:h,className:"h-full w-full min-w-[8rem]"},!u&&p.createElement(x2,null),p.createElement(XO,{className:v,iframeClassName:"lightbox__slide-item-video-iframe",videoId:s,title:c,onReady:w=>f(w),opts:{height:"100%",width:"100%"},onPause:_}))},x2=({position:n})=>{const e=n||"center";return p.createElement("div",{className:`lightbox__slide-item-loader bg-${e}`})};Gi.use([yO]);const JO=()=>{const n=(0,p.useRef)(null),e=(0,p.useRef)(null),t=(0,p.useRef)(null),r=(0,p.useRef)(null),[i,a]=(0,p.useState)(null),{deviceVh:s}=_p(),{clickedThumbnailIndex:c,handleCloseButtonClick:u,handleLightboxFading:f,activeContentHeight:h,activeDescriptionHeight:g,setActiveDescriptionRef:v,setActiveContentRef:y,isClosing:_,isOpen:w,isOpening:x,items:S,localization:T}=NO({focusLockRef:n,swiperInstance:i}),M=Ta()("lightbox",{"lightbox--open":w,"lightbox--closing":_,"lightbox--closed":!w&&!x}),C=k=>{const{navigation:L}=k.params;typeof L!="boolean"&&(L.prevEl=t.current,L.nextEl=r.current)};return p.createElement(gO,{disabled:!w,ref:n},!!S?.length&&p.createElement("div",{className:M,onTransitionEnd:f,style:{"--device-vh":`${s}px`,"--active-description-height":`${g}px`,"--active-content-height":`${h}px`},tabIndex:-1,role:"presentation",ref:e},p.createElement("div",{className:"lightbox__inner-wrapper"},p.createElement(y2,{className:"lightbox__swiper",enabled:S?.length>1,spaceBetween:32,loop:!0,longSwipesRatio:.2,resizeObserver:!0,onBeforeInit:C,speed:e_,onSwiper:a},p.createElement("div",{slot:"container-start",className:"lightbox__topbar"},p.createElement(t_,{ariaLabel:T?.CLOSE_TITLE,type:"close",clickHandler:u})),S.map(k=>p.createElement(b2,{key:k.slidePositionIndex},({isActive:L})=>p.createElement(PO,{isActive:L,swiperContainerRef:e,item:k,clickedThumbnailIndex:c,isLighthboxOpen:w,setActiveDescriptionRef:v,setActiveContentRef:y}))),S.length>1&&p.createElement(p.Fragment,null,p.createElement(t_,{ariaLabel:T?.PREVIOUS_TITLE,buttonRef:t,type:"previous"}),p.createElement(t_,{ariaLabel:T?.NEXT_TITLE,buttonRef:r,type:"next"}))))))},e3=({items:n,iconsList:e,showDates:t})=>n?.length?p.createElement("div",{className:"row"},n.map((r,i)=>p.createElement(r3,{item:r,key:r.id,iconsList:e,showDates:t,itemIndex:i}))):null,t3=({item:n,activeQuery:e,categoryRoot:t,onClickCategory:r})=>{const i=Ta()("cursor-pointer rounded-lg px-3 py-1 text-2xs font-semibold hover:text-red-corporate hover:underline",{"bg-light shadow-tab":e===n.slug});return p.createElement("li",null,p.createElement("button",{className:i,onClick:()=>r(n.slug,t),type:"button"},n.title))},n3=({item:n,iconsList:e,showDates:t,itemIndex:r})=>{const{arrowRight:i}=e;return p.createElement("div",{className:"mt-8 sm:col-8"},p.createElement("a",{href:n.url,className:"group block h-full rounded bg-light p-8 shadow-tab","data-item-index":r,tabIndex:0},t&&p.createElement("div",{className:"text-xs text-grey-160"},n.date),p.createElement("div",{className:"max-w-full break-words text-lg group-hover:text-red-corporate group-hover:underline flex items-center"},p.createElement("span",{dangerouslySetInnerHTML:{__html:n.title}}),p.createElement(un,{name:i.name,viewBox:i.viewBox,alt:i.alt,svg:i.svg,className:"inline h-6 w-6 fill-red-corporate -mt-1.5 shrink-0"}))))},r3=(0,p.memo)(n3),i3=({api:n,query:e,items:t,categories:r,pagination:i,localization:a,cultureCode:s,showCategories:c,showDates:u,errorMessage:f,iconsList:h,categoryRoot:g})=>{const v=(0,p.useRef)(null),y=(0,p.useRef)(null),_=(0,p.useRef)(0),{isLoadingMore:w,hasNextItems:x,hasError:S,errorMessage:T,items:M,query:C,setQuery:k,loadNewItemsWithQuery:L,loadNextItems:O}=Da({api:n,apiQueryKey:"category",defaultQuery:e,defaultItems:t,defaultPagination:i,cultureCode:s,defaultErrorMessage:f||ye(a,"listOfArticlesCategory/error")});(0,p.useEffect)(()=>{const F=M?.length||0,$=_.current;if(F>$&&$>0){const V=F-$;v.current&&V>0&&(v.current.textContent=`Bylo na\u010Dteno ${V} dal\u0161\xEDch \u010Dl\xE1nk\u016F`),setTimeout(()=>{if(y.current){const ee=y.current.querySelectorAll("[data-item-index]")[$];ee&&(ee.focus(),ee.scrollIntoView({behavior:"smooth",block:"nearest"}))}},100),setTimeout(()=>{v.current&&(v.current.textContent="")},1e3)}_.current=F},[M]);const I=(F,$)=>{const V=new URLSearchParams(window.location.search);V.set("category",F),$!==""&&!V.has("categoryroot")&&V.set("categoryroot",$),window.history.replaceState(null,null,`?${V.toString()}`)},P=F=>
209{k(F),L(F),I(F,g)},B=()=>{O()},H=F=>{var $;const V=($=F?.target)===null||$===void 0?void 0:$.value;!V&&V!==""||P(V)};return p.createElement("div",{className:"container mb-12"},p.createElement("div",{ref:v,"aria-live":"polite","aria-atomic":"true",className:"sr-only"}),c&&p.createElement("div",{className:"row"},p.createElement("div",{className:"sm:col-22 sm:offset-1"},p.createElement(vp,{items:r,labelText:`${ye(a,"listOfArticlesCategory/categoriesTitle")}: `,name:"temata",className:"flex items-center sm:hidden",activeQuery:C,handleOnChange:H}),p.createElement("div",{className:"hidden sm:flex items-center"},p.createElement("span",{className:"mr-3 text-2xs"},`${ye(a,"listOfArticlesCategory/categoriesTitle")}: `),p.createElement("ul",{className:"flex flex-wrap items-center gap-1"},r.map(F=>p.createElement(t3,{key:F.categoryGuid,item:F,activeQuery:C,categoryRoot:g,onClickCategory:P})))))),p.createElement("div",{className:"row"},p.createElement("div",{className:"sm:col-22 sm:offset-1"},(S||!M?.length)&&p.createElement("div",{className:"mt-8"},p.createElement(qn,{type:Ce.Error,text:T,textAttributes:{role:"alert","aria-live":"assertive"}})),p.createElement("div",{ref:y},p.createElement(e3,{items:M,iconsList:h,showDates:u})))),x&&p.createElement("div",{className:"row mt-8"},p.createElement("div",{className:"sm:col-22 sm:offset-1"},p.createElement(Ri,{template:"secondary",title:ye(a,"listOfArticlesCategory/button"),type:"button",isLoading:w,onClick:B,"aria-describedby":"load-more-description"}),p.createElement("div",{id:"load-more-description",className:"sr-only"},"Po kliknut\xED se na\u010Dtou dal\u0161\xED \u010Dl\xE1nky."))))},a3=({timeout:n,scriptUrl:e,localization:t})=>{const[r,i]=(0,p.useState)(!1),[a,s]=(0,p.useState)(!1),c=document.createElement("script"),u=r&&!a,f=!r&&!a,h=async()=>{try{await fetch(e).then(g=>{g.ok?setTimeout(()=>{c.src=g.url,document.body.appendChild(c),i(!0)},n*1e3):g.status>=404&&s(!0)})}catch{s(!0)}};return(0,p.useEffect)(()=>{h()},[]),p.createElement("div",{className:"container"},p.createElement("div",{className:"row"},p.createElement("div",{className:"h-16 sm:col-22 sm:offset-1"},f&&p.createElement(ls,null),a&&p.createElement(qn,{type:Ce.Error,text:ye(t,"ErrorMessage"),textAttributes:{role:"alert","aria-live":"assertive"}}),u&&p.createElement(p.Fragment,null,"kalkukacka"))))},s3="js-search-list-form",o3=({items:n,title:e,apiLocalization:t,showBreadcrumbs:r})=>p.createElement(p.Fragment,null,p.createElement("div",{className:"mb-6 text-base"},p.createElement("span",{dangerouslySetInnerHTML:{__html:e}})),p.createElement("ul",{className:"mb-8 pl-0 last:mb-0"},n.map(i=>p.createElement(c3,Object.assign({key:i.id,apiLocalization:t,showBreadcrumbs:r},i))))),l3=({title:n,url:e,target:t,breadcrumb:r,mime:i,extension:a,apiLocalization:s,showBreadcrumbs:c})=>{if(!n||!e)return null;const u=ye(s,"search/DocToDownload");return p.createElement("li",{className:"block border-b border-grey-30 first:border-t"},p.createElement("a",{className:"group block break-words py-6 px-4",href:e,target:t},p.createElement("div",{className:"mb-[0.375rem] font-semibold leading-7 underline media-group-hover:text-red-corporate media-group-hover:decoration-red-corporate sm:mb-2 sm:duration-300"},n),c&&r&&p.createElement("p",{className:"text-xs font-normal text-grey-180"},r),i&&p.createElement("div",{className:"flex"},p.createElement("p",{className:"mr-2 text-xs font-normal text-grey-180"},u),p.createElement("div",{className:"flex items-center rounded-lg bg-white py-0 px-3 text-2xs font-semibold shadow-tab"},a.toUpperCase()))))},c3=(0,p.memo)(l3),u3=({pageLinks:n,title:e})=>{if(!n)return null;
209const t="search",r='<path fill-rule="evenodd" clip-rule="evenodd" d="M3.02865 7.3335C3.02865 4.75617 5.11798 2.66683 7.69531 2.66683C10.2726 2.66683 12.362 4.75617 12.362 7.3335C12.362 9.91083 10.2726 12.0002 7.69531 12.0002C5.11798 12.0002 3.02865 9.91083 3.02865 7.3335ZM7.69531 1.3335C4.3816 1.3335 1.69531 4.01979 1.69531 7.3335C1.69531 10.6472 4.3816 13.3335 7.69531 13.3335C9.18243 13.3335 10.5432 12.7925 11.5915 11.8965L14.3619 14.6669L15.3047 13.7241L12.5036 10.923C13.2521 9.92204 13.6953 8.67953 13.6953 7.3335C13.6953 4.01979 11.009 1.3335 7.69531 1.3335Z"></path>';return p.createElement("div",{className:"mb-8"},p.createElement("p",{className:"mb-6 text-2xl"},e),n.map((i,a)=>p.createElement("div",{className:"mb-4 flex items-center",key:a},p.createElement(un,{name:"search-icon",viewBox:"0 0 17 16",svg:r,alt:t,className:"mr-2 h-4 w-4 fill-grey-80"}),p.createElement("a",{className:"group block break-words",href:i.url,target:i.target},p.createElement("p",{className:"text-base underline"},i.title)))))},d3=({api:n,query:e,pagination:t,localization:r,cultureCode:i,pageLinks:a,pageSize:s,showBreadcrumbs:c,searchFolder:u,hideSegmentBreadcrumb:f})=>{const{hasNextItems:h,isLoadingMore:g,items:v,loadNewItemsWithQuery:y,loadNextItems:_,hasError:w,isLoading:x,query:S,localization:T}=Da({api:n,defaultQuery:e,formElement:document.querySelector(`.${s3}`),formInputName:"query",defaultItems:[],defaultPagination:t,cultureCode:i,pageSize:s,searchFolder:u,hideSegmentBreadcrumb:f}),M=v.length>0&&S&&x===!1,C=v.length===0&&x===!1,k=v.length===0&&S,L={apiLocalization:T,widgetConfigLocalization:r};(0,p.useEffect)(()=>{S&&(window.history.replaceState(null,null,`?query=${S}`),y(S))},[]);const O=()=>{window.history.replaceState(null,null,`?query=${S}`),_()};return p.createElement("div",{className:M&&!x||w||k&&!x&&!w||h&&!x?"container mb-12":"container"},p.createElement("div",{className:"row"},p.createElement("div",{className:"col-24"},x?p.createElement(ls,null):null),p.createElement("div",{className:"sm:col-14 sm:offset-1"},w&&p.createElement("div",{className:"mb-8"},p.createElement(qn,{type:Ce.Error,text:ye(L.apiLocalization,"search/ErrorGeneric"),textAttributes:{role:"alert","aria-live":"assertive"}})),k&&!x&&!w?p.createElement("div",{className:"mb-8"},p.createElement(qn,{type:Ce.Error,text:ye(L.apiLocalization,"search/NoResults"),textAttributes:{role:"alert","aria-live":"assertive"}})):null,M&&!x?p.createElement(o3,{items:v,pagination:t,apiLocalization:T,title:ye(L.apiLocalization,"search/resultCountInj"),showBreadcrumbs:c}):null,C&&p.createElement(u3,{pageLinks:a,title:ye(L.widgetConfigLocalization,"search/oftentitle")}),h&&!x&&M?p.createElement(Ri,{template:"secondary",title:ye(L.apiLocalization,"search/loadMoreButton"),type:"button",isLoading:g,onClick:O}):null)))},f3="js-branches-container",h3="js-atms-container",o0="is-hidden",i_="branches-btn",a_="atms-btn",l0="is-active",p3=({children:n})=>p.createElement("div",{className:"container"},p.createElement("div",{className:"row"},p.createElement("div",{className:"sm:col-22 sm:offset-1"},n))),S2=({id:n,dataTestId:e,iconName:t,iconViewbox:r,iconAlt:i,iconSvg:a,localization:s,tabText:c})=>p.createElement("li",{className:"tabs-branches-atms__list-item"},p.createElement("button",{type:"button",id:n,"data-testid":e,className:"tabs-branches-atms__button"},p.createElement(un,{name:t,viewBox:r,alt:i,svg:a,className:"icon mb-2 inline h-6 w-6 shrink-0 fill-red-corporate sm:mb-0 sm:mr-2"}),p.createElement("div",{className:t==="branch-atm-atm"?"":"words-break",dangerouslySetInnerHTML:{__html:ye(s,c)}}))),m3=({localization:n,iconsList:e})=>{const t=(s,c)=>{window.sessionStorage.setItem(s===Me.Branches?`active_tab_is_${Me.Branches}`:`active_tab_is_${Me.Atms}`,c)},r=s=>{const c=new URL(window.location.href);c.searchParams.set("tab",s),window.history.replaceState(null,"",c.toString())};(0,p.useEffect)(()=>{const s=document.getElementById(f3),c=document.getElementById(h3),u=document.getElementById(i_),f=document.getElementById(a_),h=()=>{s.classList.remove(o0),c.classList.add(o0)},g=()=>{c.classList.remove(o0),s.classList.add(o0)},v=()=>{u.classList.add(l0),f.classList.remove(l0),h()},y=()=>{f.classList.add(l0),u.classList.remove(l0),g()};u.addEventListener("click",()=>{v(),t(Me.Branches,"true"),t(Me.Atms,"false"),r("branches")}),f.addEventListener("click",()=>{y(),t(Me.Atms,"true"),t(Me.Branches,"false"),r("atms")});const w=new URLSearchParams(window.location.search).get("tab");w==="atms"?y():(w==="branches"||!w)&&v()},[]);const{bank:i,branchAtmAtm:a}=e;return p.createElement(p3,null,p.createElement("ul",{className:"tabs-branches-atms"},p.createElement(S2,{id:i_,dataTestId:`tab-${i_}`,iconName:i.name,iconViewbox:i.viewbox,iconAlt:i.alt,iconSvg:i.svg,localization:n,tabText:"Branches_BranchPlural"}),p.createElement(S2,{id:a_,dataTestId:`tab-${a_}`,iconName:a.name,iconViewbox:a.viewbox,iconAlt:a.alt,iconSvg:a.svg,localization:n,tabText:"Branches_AtmPlural"})))},C2=n=>{(0,p.useEffect)(()=>{const e=document.getElementById(`filters-toggle-container-${wt}-${n}-${St}`),t=document.getElementById(`filters-toggle-button-${wt}-${n}-${St}`),r=document.getElementById(`filters-toggle-button-icon-${wt}-${n}-${St}`),i=document.getElementById(`filters-home-indicator-${n}`),a=document.getElementById(`filters-hide-button-${wt}-${n}`),s=document.getElementById(`filters-dropdown-all-${wt}-${n}`),c=()=>{r.classList.toggle("rotate-180"),e.classList.toggle("pb-12"),e.classList.toggle("pb-2"),s.classList.toggle("hidden"),s.classList.toggle("block")};t.addEventListener("click",()=>{c()}),i&&i.addEventListener("click",()=>{c()}),a&&a.addEventListener("click",()=>{c()})},[])},s_=({children:n,col:e,offset:t})=>p.createElement("div",{className:`sm:col-${e} sm:offset-${t}`},n),T2=({children:n})=>p.createElement("div",{className:"row"},p.createElement("div",{className:"container mb-12 shadow-tab sm:shadow-none"},p.createElement("div",{className:"row -mx-8 sm:-mx-4"},p.createElement("div",{className:"px-0 sm:px-4"},p.createElement("div",{className:"flex flex-col bg-light sm:flex-row sm:items-center sm:rounded sm:shadow-tab"},p.createElement(s_,{col:"22",offset:"1"},n)))))),M2=({children:n})=>p.createElement("div",{className:"row"},p.createElement(s_,{col:"22",offset:"1"},n)),g3=({iconsList:n,localization:e,type:t})=>{const{arrowDown:r}=n,[i,a]=p.useState(!1),s=()=>{a(!i)};return p.createElement("div",{id:`filters-toggle-container-${wt}-${t}-${St}`,className:"select-none px-8 pb-12"},p.createElement("button",{type:"button",id:`filters-toggle-button-${wt}-${t}-${St}`,"aria-expanded":i,onClick:s},p.createElement("div",null,ye(e,"Branches_Filters_RefineSearch"),p.createElement(un,{name:r.name,viewBox:r.viewbox,alt:r.alt,svg:r.svg,className:"inline h-8 w-8 fill-red-corporate",id:`filters-toggle-button-icon-${wt}-${t}-${St}`}))))},v3=({type:n})=>p.createElement("div",{id:`filters-home-indicator-${n}`,className:"filters__home-indicator"},p.createElement("div",{className:"filters__home-indicator-handle"})),y3=({iconsList:n,type:e})=>{const{close:t}=n;return p.createElement("button",{type:"button",id:`filters-hide-button-${wt}-${e}`,className:"pointer absolute top-4 right-4 flex h-[30px] w-[30px] items-center justify-center rounded-full bg-grey-80"},p.createElement(un,{name:t.name,viewBox:t.viewbox,alt:t.alt,svg:t.svg,className:"inline h-6 w-6 fill-white"}))},Fp=({children:n})=>p.createElement("div",{className:"editing-form-control-nested-control mb-4 last:mb-0"},n),Vp=({isInsideDropdown:n=!1,type:e,id:t,name:r,checkboxValue:i,defaultChecked:a,label:s,handleOnChange:c})=>{const u=`${e}-${t}`;return p.createElement("span",{className:"ktc-checkbox",title:""},p.createElement("input",{className:"form-control",type:"checkbox",id:u,name:r,value:i,defaultChecked:a,onChange:c}),p.createElement("label",{htmlFor:u,className:`${n?"!mr-0 select-none":"select-none"}`},s))},b3=({filters:n,type:e,handleOnChange:t})=>{const r=n.slice(0,1),i=n[1].items,a=n[2].items,s=n[3].items,c=n[4].items,u=[...r,...i,...a,...s,...c];return p.createElement("form",{className:`form-filters-${wt}-${e}`},u.map(f=>{const h=Na(f.value);return p.createElement(Fp,{key:h},p.createElement(Vp,{type:e,id:`${wt}-${h}`,name:h,checkboxValue:h,defaultChecked:f.isChecked,label:f.name,handleOnChange:t}))}))},_3=({filters:n,type:e,handleOnChange:t})=>{const r=n.slice(0,3),i=n[3].items,a=[...r,...i];return p.createElement("form",{className:`form-filters-${wt}-${e}`},a.map(s=>{const c=Na(s.value);return p.createElement(Fp,{key:c},p.createElement(Vp,{type:e,id:`${wt}-${c}`,name:c,checkboxValue:c,defaultChecked:s.isChecked,label:s.name,handleOnChange:t}))}))},D2="filters-header-mobile",O2="filters-body-mobile",w3=({type:n,filters:e,iconsList:t,handleOnChange:r})=>p.createElement("div",{id:`filters-dropdown-all-${wt}-${n}`,className:"hidden"},p.createElement("div",{id:D2,className:D2},p.createElement(v3,{type:n}),p.createElement(y3,{iconsList:t,type:n})),p.createElement("div",{id:O2,className:O2},n===Me.Branches?p.createElement(b3,{type:Me.Branches,filters:e,handleOnChange:r}):p.createElement(_3,{type:Me.Atms,filters:e,handleOnChange:r}))),k2=({filters:n,iconsList:e,localization:t,type:r,handleOnChange:i})=>p.createElement("div",{id:`filters-${wt}-${r}`,className:"sm:hidden"},p.createElement(g3,{iconsList:e,localization:t,type:r}),p.createElement(w3,{filters:n,iconsList:e,type:r,handleOnChange:i})),Yp=({iconsList:n,type:e,name:t,viewport:r,text:i,filters:a,handleOnChange:s})=>{const c=(0,p.useRef)(null),[u,f]=(0,p.useState)(!1);(0,p.useEffect)(()=>{const g=v=>{c.current&&!c.current.contains(v.target)&&f(!1)};return document.addEventListener("click",g),()=>{document.removeEventListener("click",g)}},[]);const h=()=>{f(!u)};return p.createElement("div",{className:"filters-dropdown-container relative mr-[17.5px] last:mr-0",ref:c},p.createElement("div",{id:`filters-toggle-container-${r}-${e}-${t}`,className:`filters__toggle-container-${r} hidden sm:block`},p.createElement("div",{className:"flex items-center"},p.createElement("button",{type:"button",onClick:h,id:`filters-toggle-button-${r}-${e}-${t}`,"aria-expanded":u,"aria-controls":`filters-dropdown-${r}-${e}-${t}`},i,p.createElement(un,{name:n.name,viewBox:n.viewbox,alt:n.alt,svg:n.svg,className:`inline h-8 w-8 fill-red-corporate ${u?"rotate-180":""}`,id:`filters-toggle-button-icon-${r}-${e}-${t}`})))),p.createElement("div",{id:`filters-dropdown-${r}-${e}-${t}`,className:`filters-dropdown-more-${r} ${u?"block":"hidden"}`},a.map(g=>{const v=Na(g.value);return p.createElement(Fp,{key:v},p.createElement(Vp,{isInsideDropdown:!0,type:e,id:`${r}-${v}
209`,name:v,checkboxValue:v,defaultChecked:g.isChecked,label:g.name,handleOnChange:s}))})))},E3=({filters:n,iconsList:e,type:t,handleOnChange:r})=>{const{arrowDown:i}=e,a=n.slice(0,1),s=n[1].items,c=n[2].items,u=n[3].items,f=n[4].items,h=n[1].name,g=n[2].name,v=n[3].name,y=n[4].name;return p.createElement("form",{className:`form-filters-${mt}-${t} mb-8 flex flex-row`},a.map(_=>{const w=Na(_.value);return p.createElement(Fp,{key:w},p.createElement(Vp,{type:t,id:`${mt}-${w}`,name:w,checkboxValue:w,defaultChecked:_.isChecked,label:_.name,handleOnChange:r}))}),p.createElement(Yp,{iconsList:i,type:t,name:z,viewport:mt,text:h,filters:s,handleOnChange:r}),p.createElement(Yp,{iconsList:i,type:t,name:ie,viewport:mt,text:g,filters:c,handleOnChange:r}),p.createElement(Yp,{iconsList:i,type:t,name:Ee,viewport:mt,text:v,filters:u,handleOnChange:r}),p.createElement(Yp,{iconsList:i,type:t,name:ke,viewport:mt,text:y,filters:f,handleOnChange:r}))},x3=({filters:n,iconsList:e,type:t,handleOnChange:r})=>{const{arrowDown:i}=e,a=n.slice(0,3),s=n[3].items,c=n[3].name;return p.createElement("form",{className:`form-filters-${mt}-${t} mb-8 flex flex-row`},a.map(u=>{const f=Na(u.value);return p.createElement(Fp,{key:f},p.createElement(Vp,{type:t,id:`${mt}-${f}`,name:f,checkboxValue:f,defaultChecked:u.isChecked,label:u.name,handleOnChange:r}))}),p.createElement(Yp,{iconsList:i,type:t,name:bt,viewport:mt,text:c,filters:s,handleOnChange:r}))},L2=({filters:n,iconsList:e,type:t,handleOnChange:r})=>p.createElement("div",{id:`filters-${mt}-${t}`,className:"hidden sm:block"},t===Me.Branches?p.createElement(E3,{filters:n,iconsList:e,type:t,handleOnChange:r}):p.createElement(x3,{filters:n,iconsList:e,type:t,handleOnChange:r}
209)),A2=({iconsList:n,inputValue:e,localization:t,alertSource:r="0"})=>{const{infoCircleRed:i}=n;return p.createElement(s_,{col:"22",offset:"1"},p.createElement("div",{className:"mb-8 flex items-start rounded-sm bg-white py-3 px-4","data-testid":`alert-${r}`},p.createElement(un,{name:i.name,viewBox:i.viewbox,alt:i.alt,svg:i.svg,className:"icon mr-3 inline h-6 w-6 shrink-0 fill-red-corporate"}),p.createElement("div",{className:"words-break text-xs",role:"alert","aria-live":"assertive"},ye(t,"Branches_AlertMessageNoResultsPart1"),e?null:" ",e?p.createElement("span",{className:"mx-1 font-bold"},`"${e}"`):null,ye(t,"Branches_AlertMessageNoResultsPart2"))))},R2=({localization:n,text:e,alertSource:t="0"})=>p.createElement("div",{className:"mb-8"},p.createElement(qn,{type:Ce.Error,text:ye(n,e),textAttributes:{role:"alert","aria-live":"assertive"},alertSource:t})),ez=({api:n,query:e,pagination:t,localization:r,cultureCode:i,baseUrl:a,pageSize:s,pageSizeDetail:c,latitude:u,longitude:f,iconsList:h})=>{const{hasNextItems:g,isLoadingMore:v,items:y,loadNewItemsWithFallbackCoordinates:_,loadMoreItemsWithFallbackCoordinates:w,loadNewItemsWithBrowserCoordinates:x,loadMoreItemsWithBrowserCoordinates:S,loadNewItemsWithSearchCoordinates:T,loadMoreItemsWithSearchCoordinates:M,hasError:C,isLoading:k,query:L}=usePagination({api:n,defaultQuery:e,formElement:document.querySelector(`.${SEARCH_FORM_ATMS}`),formInputName:"query",defaultItems:[],defaultPagination:t,cultureCode:i,fetchBodyData:{baseUrl:a},hasSearchCoordinates:!0,pageSize:s,pageSizeDetail:c,latitude:u,longitude:f}),O=y?.length===0&&L,{getItemIndexProps:I}=useFocusAfterLoadMore({totalItems:y.length,isLoadingMore:v}),{announcement:P,liveRegionProps:B}=useLoadMoreAnnouncement({itemCount:y.length,isLoadingMore:v,localization:r,itemType:"atms"}),H=window.localStorage.getItem(GEO_COORDINATES_FROM_BROWSER)!==null,F=window.localStorage.getItem(GEO_COORDINATES_FROM_SEARCH)!==null,$=()=>H&&!F?S:F?M:w;return useEffect(()=>{H&&!F&&x(),F&&T(),!H&&!F&&_()},[F,H]),React.createElement(React.Fragment,null,C&&React.createElement(AlertShared,{localization:r,text:"Branches_ErrorMessage"}),O&&React.createElement(AlertShared,{localization:r,text:"Branches_SearchNoResults"}),React.createElement("div",Object.assign({},B),P),k?React.createElement("div",{className:"search-ba-loader"},React.createElement(Loader,null)):React.createElement(React.Fragment,null,React.createElement(GeoLocationInfo,{type:TabType.Atms,localization:r,iconsList:h}),React.createElement(ResultsList,{type:TabType.Atms,localization:r,items:y,iconsList:h})),g&&React.createElement(Button,{template:"secondary",title:getLocalization(r,"LoadMore"),type:"button",isLoading:v,onClick:$(),dataTestId:`button-load-more-${TabType.Atms}`}))},tz=null,S3=({filters:n,api:e,pagination:t,localization:r,cultureCode:i,baseUrl:a,pageSize:s,iconsList:c,mapEnabled:u})=>{Da({api:e,formElement:document.querySelector(`.${Pe}`),cultureCode:i,fetchBodyData:{baseUrl:a},hasSearchCoordinates:!0});const{listedItems:f,map:h}=c,[g,v]=(0,p.useState)(!1),y=Bm(n),[_,w]=(0,p.useState)(y),[x,S]=(0,p.useState)([]),[T,M]=(0,p.useState)(t.currentPage),[C,k]=(0,p.useState)(t.pagesCount),[L,O]=(0,p.useState)(!1),[I,P]=(0,p.useState)(!1),[B,H]=(0,p.useState)(!1),[F,$]=(0,p.useState)(!1),[V,W]=(0,p.useState)(""),[ee,q]=(0,p.useState)(!1),Y=Me.Atms,{getItemIndexProps:ae}=Bd({totalItems:x.length,isLoadingMore:I}),{announcement:ue,liveRegionProps:We}=Hd({itemCount:x.length,isLoadingMore:I,localization:r,itemType:"atms"}),be=x.length>0,_e=L,qe=F,je=be,ct=B&&!be,ht=!L&&be,Ge=!L&&be&&T!==C,Re=Tr(ve),Ze=Tr(Ye);C2(Y);const pe=async(Tt,Ne)=>{var Ve;O(!0),H(!1);try{const Oe=await st({settings:{method:"POST",url:e,body:JSON.stringify(Object.assign({latitude:kt.lat,longitude:kt.lng,baseUrl:a,limit:(Ve=Ne??s)!==null&&Ve!==void 0?Ve:Zt,offset:0,cultureCode:i,isPageDetail:!1},Tt))}});S(Oe.payload.data);const Be=Oe.payload.pagination,{currentPage:Fe,pagesCount:rt}=Be;M(Fe),k(rt)}catch(Oe){O(!1),$(!0),console.error(Oe)}finally{O(!1),H(!0)}},Ie=async(Tt,Ne)=>{var Ve;O(!0),H(!1);try{const Oe=await st({settings:{method:"POST",url:e,body:JSON.stringify(Object.assign({latitude:At(ve).lat,longitude:At(ve).lng,baseUrl:a,limit:(Ve=Ne??s)!==null&&Ve!==void 0?Ve:Zt,offset:0,cultureCode:i,isPageDetail:!1},Tt))}});S(Oe.payload.data);const Be=Oe.payload.pagination,{currentPage:Fe,pagesCount:rt}=Be;M(Fe),k(rt)}catch(Oe){O(!1),$(!0),console.error(Oe)}finally{O(!1),H(!0)}},Ke=async(Tt,Ne)=>{var Ve;O(!0),H(!1);try{const Oe=await st({settings:{method:"POST",url:e,body:JSON.stringify(Object.assign({latitude:At(Ye).lat,longitude:At(Ye).lng,baseUrl:a,limit:(Ve=Ne??s)!==null&&Ve!==void 0?Ve:Zt,offset:0,cultureCode:i,isPageDetail:!1},Tt))}});S(Oe.payload.data);const Be=Oe.payload.pagination,{currentPage:Fe,pagesCount:rt}=Be;M(Fe),k(rt)}catch(Oe){O(!1),$(!0),console.error(Oe)}finally{O(!1),H(!0)}},nt=async(Tt,Ne)=>{P(!0),H(!1);try{const Ve=await st({settings:{method:"POST",url:e,body:JSON.stringify(Object.assign({latitude:kt.lat,longitude:kt.lng,baseUrl:a,limit:Ne??t.rowsOnPage,offset:x.length,cultureCode:i,isPageDetail:!1},Tt))}}),Oe=x,Be=Ve.payload.data,Fe=Oe.concat(Be);S(Fe);const rt=Ve.payload.pagination,{currentPage:hn,pagesCount:En}=rt;M(hn),k(En)}catch(Ve){P(!1),$(!0),console.error(Ve)}finally{P(!1),H(!0)}},Ot=async(Tt,Ne)=>{P(!0),H(!1);try{const Ve=await st({settings:{method:"POST",url:e,body:JSON.stringify(Object.assign({latitude:At(ve).lat,longitude:At(ve).lng,baseUrl:a,limit:Ne??t.rowsOnPage,offset:x.length,cultureCode:i,isPageDetail:!1},Tt))}}),Oe=x,Be=Ve.payload.data,Fe=Oe.concat(Be);S(Fe);const rt=Ve.payload.pagination,{currentPage:hn,pagesCount:En}=rt;M(hn),k(En)}catch(Ve){P(!1),$(!0),console.error(Ve)}finally{P(!1),H(!0)}},zt=async(Tt,Ne)=>{P(!0),H(!1);try{const Ve=await st({settings:{method:"POST",url:e,body:JSON.stringify(Object.assign({latitude:At(Ye).lat,longitude:At(Ye).lng,baseUrl:a,limit:Ne??t.rowsOnPage,offset:x.length,cultureCode:i,isPageDetail:!1},Tt))}}),Oe=x,Be=Ve.payload.data,Fe=Oe.concat(Be);S(Fe);const rt=Ve.payload.pagination,{currentPage:hn,pagesCount:En}=rt;M(hn),k(En)}catch(Ve){P(!1),$(!0),console.error(Ve)}finally{P(!1),H(!0)}},pt=Tt=>{const{checked:Ne,value:Ve}=Tt.target,Oe=Ve,Be=Ne,Fe=Object.assign(Object.assign({},_),{[Oe]:Be});w(Fe),Hm(Oe,Be);const rt=g?9999:s??Zt;
209Re&&!Ze&&Ie(Fe,rt),Ze&&Ke(Fe,rt),!Re&&!Ze&&pe(Fe,rt)},Gt=()=>{Re&&!Ze&&Ie(_),Ze&&Ke(_),!Re&&!Ze&&pe(_)};(0,p.useEffect)(()=>{Gt()},[Ze,Re]);const Ft=Tt=>Re&&!Ze?Ot(_,Tt):Ze?zt(_,Tt):nt(_,Tt),Nt=()=>{g?(v(!1),Gt()):(v(!0),Ft(9999))};return p.createElement(p.Fragment,null,p.createElement("div",{className:"container"},p.createElement(T2,null,p.createElement(N2,{inputValue:V,setInputValue:W,setShowAlertNoResult:q,localization:r,type:Y,isToggled:g}),p.createElement(k2,{filters:n,iconsList:c,localization:r,type:Y,handleOnChange:pt}),p.createElement(L2,{filters:n,iconsList:c,type:Y,handleOnChange:pt})),ee&&p.createElement(A2,{iconsList:c,inputValue:V,localization:r,alertSource:"Atm-Search-NoAddress"})),p.createElement("div",{className:"container mb-12",id:"ResultsList"},p.createElement("div",{className:"row"},p.createElement("div",{className:"mb-6 sm:col-22 sm:offset-1"},je&&p.createElement(I2,{type:Y,localization:r,iconsList:c}),p.createElement("button",{type:"button",onClick:Nt,"data-testid":g?"display-atm-list":"display-atm-map",className:`${u?"underline":"hidden underline"} flex items-center`},g?p.createElement(un,{name:f.name,viewBox:f.viewbox,alt:f.alt,svg:f.svg,className:"icon mr-2 inline h-6 w-6 fill-red-corporate"}):p.createElement(un,{name:h.name,viewBox:h.viewbox,alt:h.alt,svg:h.svg,className:"icon mr-2 inline h-6 w-6 fill-red-corporate"}),g?ye(r,"Branches_Atms_ShowList"):ye(r,"Branches_Atms_ShowMap")))),g?p.createElement(p.Fragment,null,ct&&p.createElement("div",{className:"row"},p.createElement("div",{className:"sm:col-22 sm:offset-1 mb-6"},p.createElement(qn,{type:Ce.Error,text:ye(r,"Branches_SearchNoResults"),textAttributes:{role:"alert","aria-live":"assertive"},alertSource:"Atm-Search-NoResult"}))),p.createElement("div",{className:"row"},p.createElement("div",{className:"sm:col-22 sm:offset-1"},p.createElement(P3,{baseUrl:a,type:Y,localization:r,cultureCode:i,lat:At(Ye).lat,lng:At(Ye).lng,showGeolocation:!0,items:x,TabType:!0,isToggled:!0})))):p.createElement(M2,null,_e&&p.createElement("div",{className:`search-ba-loader ${be?"mt-4":""}`},p.createElement(ls,null)),qe&&p.createElement(R2,{localization:r,text:"Branches_ErrorMessage",alertSource:"Atm-Search-Error"}),ct&&p.createElement(qn,{type:Ce.Error,text:ye(r,"Branches_SearchNoResults"),textAttributes:{role:"alert","aria-live":"assertive"},alertSource:"Atm-Search-NoResult"}),p.createElement("div",Object.assign({},We),ue),ht&&p.createElement(c0,{type:Y,localization:r,items:x,iconsList:c}),Ge&&p.createElement(Ri,{template:"primary",title:ye(r,"LoadMore"),type:"button",onClick:()=>Ft(t.rowsOnPage),dataTestId:`button-load-more-${Y}`,isLoading:I}))))},rz=({api:n,query:e,pagination:t,localization:r,cultureCode:i,baseUrl:a,pageSize:s,pageSizeDetail:c,latitude:u,longitude:f,iconsList:h})=>{const{hasNextItems:g,isLoadingMore:v,items:y,loadNewItemsWithFallbackCoordinates:_,loadMoreItemsWithFallbackCoordinates:w,loadNewItemsWithBrowserCoordinates:x,loadMoreItemsWithBrowserCoordinates:S,loadNewItemsWithSearchCoordinates:T,loadMoreItemsWithSearchCoordinates:M,hasError:C,isLoading:k,query:L}=usePagination({api:n,defaultQuery:e,formElement:document.querySelector(`.${SEARCH_FORM_BRANCHES}`),formInputName:"query",defaultItems:[],defaultPagination:t,cultureCode:i,fetchBodyData:{baseUrl:a},hasSearchCoordinates:!0,pageSize:s,pageSizeDetail:c,latitude:u,longitude:f}),O=y?.length===0&&L,{getItemIndexProps:I}=useFocusAfterLoadMore({totalItems:y.length,isLoadingMore:v}),{announcement:P,liveRegionProps:B}=useLoadMoreAnnouncement({itemCount:y.length,isLoadingMore:v,localization:r,itemType:"branches"}),H=window.localStorage.getItem(GEO_COORDINATES_FROM_BROWSER)!==null,F=window.localStorage.getItem(GEO_COORDINATES_FROM_SEARCH)!==null,$=()=>H&&!F?S:F?M:w;return useEffect(()=>{H&&!F&&x(),F&&T(),!H&&!F&&_()},[F,H]),React.createElement(React.Fragment,null,C&&React.createElement(AlertShared,{localization:r,text:"Branches_ErrorMessage"}),O&&React.createElement(AlertShared,{localization:r,text:"Branches_SearchNoResults"}),React.createElement("div",Object.assign({},B),P),k?React.createElement("div",{className:"search-ba-loader"},React.createElement(Loader,null)):React.createElement(React.Fragment,null,React.createElement(GeoLocationInfo,{type:TabType.Branches,localization:r,iconsList:h}),React.createElement(ResultsList,{type:TabType.Branches,localization:r,items:y,iconsList:h})),g&&React.createElement(Button,{template:"secondary",title:getLocalization(r,"LoadMore"),type:"button",isLoading:v,onClick:$(),dataTestId:`button-load-more-${TabType.Branches}`}))},iz=null,C3=({localization:n})=>p.createElement("div",{className:"mb-8"},p.createElement(qn,{type:Ce.Error,text:ye(n,"Branches_GeoLocationNotSupported"),textAttributes:{role:"alert","aria-live":"assertive"},className:"w-full"})),T3=({type:n,localization:e,iconsList:t,onClick:r})=>{const{mapMarker:i}=t;return p.createElement("div",{className:"mb-12","data-testid":`geolocation-info-box-${n}`},p.createElement("div",{className:`\r
210          flex\r
211          flex-col\r
212          items-center\r
213          rounded\r
214          bg-light\r
215          shadow-tab\r
216          sm:flex-row\r
217        `},p.createElement("div",{className:"mb-4 w-[247px] sm:mb-0 sm:w-[268px]"},p.createElement("img",{src:"../../../img/webp/geolocation.webp",className:"icon h-[153px] w-[247px] sm:h-[166px] sm:w-[268px]",alt:"geolocation"})),p.createElement("div",{className:"w-full sm:h-[166px] sm:w-2/3 sm:py-10 sm:pl-4"},p.createElement("h2",{className:"mx-8 mb-4 break-words text-xl font-semibold text-grey-200 group-hover:text-red-corporate group-hover:underline sm:mx-0 sm:text-2xl"},ye(e,n===Me.Branches?"Branches_GeoLocationTitle_Branch":"Branches_GeoLocationTitle_Atm")),p.createElement("div",{className:"mx-8 mb-8 flex items-start sm:mx-0 sm:mb-0"},p.createElement(un,{name:i.name,viewBox:i.viewbox,alt:i.alt,svg:i.svg,className:"icon inline h-6 w-6 shrink-0 fill-red-corporate"}),p.createElement("div",{className:"ml-2 break-words text-base"},ye(e,n===Me.Branches?"Branches_GeoLocationText_Branch":"Branches_GeoLocationText_Atm")," ",p.createElement("button",{type:"button",onClick:r,className:"underline","data-testid":`geolocation-info-button-${n}`},ye(e,"Branches_GeoLocationTextUnderline")))))))},I2=({type:n,localization:e,iconsList:t})=>{const[r,i]=(0,p.useState)({lat:0,lng:0}),a=u=>{const f={lat:u.coords.latitude,lng:u.coords.longitude};i(f),window.localStorage.setItem(ve,JSON.stringify(f))},s=()=>{navigator.geolocation&&navigator.geolocation.getCurrentPosition(a)},c=r.lat===0&&r.lng===0;return(0,p.useEffect)(()=>{s()},[]),navigator.geolocation?c?p.createElement(T3,{type:n,localization:e,iconsList:t,onClick:s}):null:p.createElement(C3,{localization:e})},c0=({items:n,type:e,localization:t,iconsList:r})=>n?.length?p.createElement("ul",{"data-testid":`branches-atms-${e}`,"aria-label":`List of ${e}`},n.map((i,a)=>p.createElement(D3,Object.assign({key:i.id,sourceItemId:i.sourceItemId,type:e,localization:t,iconsList:r,"data-item-index":a},i)))):null,M3=({title:n,url:e,distanceKm:t,distanceUnit:r,openingHoursTime:i,openingHoursIcon:a,additionalInfo:s,isAdvisoryCenter:c,target:u,localization:f,type:h,iconsList:g,sourceItemId:v,"data-item-index":y})=>{if(!n||!e)return null;const _=s!=="",w=h===Me.Branches,x=a==="opening-hours",{arrowRight:S,bank:T,branchAtmAtm:M,mapMarker:C,openingHours:k,nonstop:L,advisory:O}=g;return p.createElement("li",{"data-item-index":y},p.createElement("div",{className:"mb-8 flex flex-col rounded bg-light shadow-tab sm:flex-row sm:items-center"},p.createElement("a",{href:e,title:n,target:u,"data-testid":`result-item-${v}`,className:"group grow overflow-hidden rounded bg-white p-8 sm:px-12"},p.createElement("div",{className:"flex flex-col break-words text-lg sm:flex-row"},p.createElement("div",{className:"w-full sm:w-2/3"},p.createElement("div",{className:"mb-4 flex items-center"},p.createElement("h2",{className:"break-words text-xl font-semibold text-grey-200 group-hover:text-red-corporate group-hover:underline sm:text-2xl"},n,p.createElement(un,{name:S.name,viewBox:S.viewbox,alt:S.alt,svg:S.svg,className:"icon ml-2 inline h-6 w-6 fill-red-corporate"}))),p.createElement("div",{className:`${_?"mb-0":"mb-2"} flex items-center sm:mb-0`},p.createElement(un,{name:C.name,viewBox:C.viewbox,alt:C.alt,svg:C.svg,className:"icon inline h-6 w-6 shrink-0 fill-red-corporate"}),p.createElement("div",{className:"ml-2 break-words text-base"},t," ",r," ",ye(f,"Branches_SharedDistanceNote"))),_&&p.createElement("div",{className:"my-2 sm:mb-0 sm:mt-4"},p.createElement(qn,{type:Ce.Warning,title:ye(f,"Branches_WarningAdditionalInfo"),text:s,textAttributes:{role:"alert","aria-live":"assertive"},noPadding:!0}))),p.createElement("div",{className:"ml-0 flex w-full flex-col justify-center sm:ml-8 sm:w-1/3"},p.createElement("div",{className:"mb-2 flex items-center"},c?p.createElement(p.Fragment,null,p.createElement(un,{name:O.name,viewBox:O.viewbox,alt:O.alt,svg:O.svg,className:"icon inline h-6 w-6 shrink-0 fill-red-corporate"}),p.createElement("div",{className:"ml-2 break-words text-base"},ye(f,"Branches_Advisory"))):p.createElement(p.Fragment,null,p.createElement(un,{name:w?T.name:M.name,viewBox:w?T.viewbox:M.viewbox,alt:w?T.alt:M.alt,svg:w?T.svg:M.svg,className:"icon inline h-6 w-6 shrink-0 fill-red-corporate"}),p.createElement("div",{className:"ml-2 break-words text-base"},w?ye(f,"Branches_Branch"):ye(f,"Branches_Atm")))),p.createElement("div",{className:"mb-2 flex items-center"},p.createElement(un,{name:x?k.name:L.name,viewBox:x?k.viewbox:L.viewbox,alt:x?k.alt:L.alt,svg:x?k.svg:L.svg,className:"icon inline h-6 w-6 shrink-0 fill-red-corporate"}),p.createElement("div",{className:"ml-2 break-words text-base"},i)),c?p.createElement("div",{className:"break-words text-base underline"},ye(f,"Branches_AdvisoryDetail")):p.createElement("div",{className:"break-words text-base underline"},w?ye(f,"Branches_BranchDetail"):ye(f,"Branches_AtmDetail")))))))},D3=(0,p.memo)(M3);var o_=sn(931);const O3=()=>p.createElement("div",{className:"relative h-[22px] w-full border border-t-0 border-grey-30 bg-white"},p.createElement("div",{className:"absolute right-1 top-1"},p.createElement("img",{alt:"Powered by Google",src:"https://maps.gstatic.
217com/mapfiles/api-3/images/powered-by-google-on-white3.png",width:"120px",height:"140px"}))),N2=({type:n,inputValue:e,setInputValue:t,setShowAlertNoResult:r,localization:i,isToggled:a})=>{const s=p.useRef(null),c=ye(i,"Branches_SearchPlaceholder"),u=e.length>2,f={componentRestrictions:{country:"cz"}},h=()=>n===Me.Branches?me:Pe,g=w=>{t(w),w===""&&r(!1)},v=async w=>{window.location.hash="#ResultsList";let x,S;try{x=await Il(w),S=await(0,o_.rg)(x[0])}catch(T){console.warn(T),r(!0);return}window.localStorage.setItem(Ye,JSON.stringify(S)),r(!1),t(w),s.current&&s.current.click()},y=async w=>{const x=w.isTrusted;if(window.location.hash="#ResultsList",x){w.preventDefault();let S,T;try{S=await Il(e),T=await(0,o_.rg)(S[0])}catch(M){console.warn(M),r(!0);return}window.localStorage.setItem(Ye,JSON.stringify(T)),r(!1),s.current&&s.current.click()}},_=(w,x)=>{(w==="ZERO_RESULTS"||w==="NOT_FOUND")&&r(!0),x()};return p.createElement("div",{className:"search-ba"},p.createElement("form",{className:`${h()} search-ba__form`,method:"POST",noValidate:!0},p.createElement("label",{className:"sr-only",htmlFor:"query"},c),p.createElement("div",{className:"autocomplete-wrapper"},p.createElement(o_.Ay,{value:e,onChange:g,onSelect:v,searchOptions:f,shouldFetchSuggestions:u,onError:_},({getInputProps:w,suggestions:x,getSuggestionItemProps:S})=>p.createElement("div",{className:"autocomplete-root"},p.createElement("input",Object.assign({},w({placeholder:c}),{type:"text",name:"query",id:"query",autoComplete:"off","data-testid":`search-input-${n}`,className:"autocomplete-input"})),a&&p.createElement("button",{type:"button",id:`btn-${n}-localization`,className:"absolute top-3 right-4","aria-label":ye(i,"Branches_SearchNearBy")},p.createElement("svg",{width:"24",height:"24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.249 3.784a8.263 8.263 0 0 0-7.466 7.466h-2.53v1.5h2.53a8.263 8.263 0 0 0 7.466 7.466v2.53h1.5v-2.53a8.263 8.263 0 0 0 7.466-7.466h2.533v-1.5h-2.533a8.263 8.263 0 0 0-7.466-7.466v-2.53h-1.5v2.53Zm.75 1.466c-3.72 0-6.75 3.03-6.75 6.75s3.03 6.75 6.75 6.75 6.75-3.03 6.75-6.75-3.03-6.75-6.75-6.75Zm0 10.5c-2.07 0-3.75-1.68-3.75-3.75 0-2.07 1.68-3.75 3.75-3.75 2.07 0 3.75 1.68 3.75 3.75 0 2.07-1.68 3.75-3.75 3.75Zm0-6c-1.24 0-2.25 1.01-2.25 2.25s1.01 2.25 2.25 2.25 2.25-1.01 2.25-2.25-1.01-2.25-2.25-2.25Z",fill:"#E00000"}))),p.createElement("div",{className:"autocomplete-dropdown-container"},x.map(T=>{const M={backgroundColor:T.active?"#EAEEF3":"#FFFFFF"};return p.createElement("div",Object.assign({},S(T,{style:M}),{key:T.placeId,className:"autocomplete-suggestion"}),T.description)}),x.length>0&&p.createElement(O3,null))))),p.createElement("button",{ref:s,type:"submit",className:"search-ba__form-submit-button","data-testid":`search-button-${n}`,onClick:y},ye(i,"SearchButton"))))};/*! *****************************************************************************
218Copyright (c) Microsoft Corporation.
219
220Permission to use, copy, modify, and/or distribute this software for any
221purpose with or without fee is hereby granted.
222
223THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
224REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
225AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
226INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
227LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
228OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
229PERFORMANCE OF THIS SOFTWARE.
230***************************************************************************** */function k3(n,e,t,r){function i(a){return a instanceof t?a:new t(function(s){s(a)})}return new(t||(t=Promise))(function(a,s){function c(h){try{f(r.next(h))}catch(g){s(g)}}function u(h){try{f(r.throw(h))}catch(g){s(g)}}function f(h){h.done?a(h.value):i(h.value).then(c,u)}f((r=r.apply(n,e||[])).next())})}var L3=function n(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var r,i,a;if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(i=r;i--!==0;)if(!n(e[i],t[i]))return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();if(a=Object.keys(e),r=a.length,r!==Object.keys(t).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(t,a[i]))return!1;for(i=r;i--!==0;){var s=a[i];if(!n(e[s],t[s]))return!1}return!0}return e!==e&&t!==t};const P2="__googleMapsScriptId";var Gd;(function(n){n[n.INITIALIZED=0]="INITIALIZED",n[n.LOADING=1]="LOADING",n[n.SUCCESS=2]="SUCCESS",n[n.FAILURE=3]="FAILURE"})(Gd||(Gd={}));class vl{constructor({apiKey:e,authReferrerPolicy:t,channel:r,client:i,id:a=P2,language:s,libraries:c=[],mapIds:u,nonce:f,regi
230on:h,retries:g=3,url:v="https://maps.googleapis.com/maps/api/js",version:y}){if(this.callbacks=[],this.done=!1,this.loading=!1,this.errors=[],this.apiKey=e,this.authReferrerPolicy=t,this.channel=r,this.client=i,this.id=a||P2,this.language=s,this.libraries=c,this.mapIds=u,this.nonce=f,this.region=h,this.retries=g,this.url=v,this.version=y,vl.instance){if(!L3(this.options,vl.instance.options))throw new Error(`Loader must not be called again with different options. ${JSON.stringify(this.options)} !== ${JSON.stringify(vl.instance.options)}`);return vl.instance}vl.instance=this}get options(){return{version:this.version,apiKey:this.apiKey,channel:this.channel,client:this.client,id:this.id,libraries:this.libraries,language:this.language,region:this.region,mapIds:this.mapIds,nonce:this.nonce,url:this.url,authReferrerPolicy:this.authReferrerPolicy}}get status(){return this.errors.length?Gd.FAILURE:this.done?Gd.SUCCESS:this.loading?Gd.LOADING:Gd.INITIALIZED}get failed(){return this.done&&!this.loading&&this.errors.length>=this.retries+1}createUrl(){let e=this.url;return e+="?callback=__googleMapsCallback",this.apiKey&&(e+=`&key=${this.apiKey}`),this.channel&&(e+=`&channel=${this.channel}`),this.client&&(e+=`&client=${this.client}`),this.libraries.length>0&&(e+=`&libraries=${this.libraries.join(",")}`),this.language&&(e+=`&language=${this.language}`),this.region&&(e+=`&region=${this.region}`),this.version&&(e+=`&v=${this.version}`),this.mapIds&&(e+=`&map_ids=${this.mapIds.join(",")}`),this.authReferrerPolicy&&(e+=`&auth_referrer_policy=${this.authReferrerPolicy}`),e}deleteScript(){const e=document.getElementById(this.id);e&&e.remove()}load(){return this.loadPromise()}loadPromise(){return new Promise((e,t)=>{this.loadCallback(r=>{r?t(r.error):e(window.google)})})}importLibrary(e){return this.execute(),google.maps.importLibrary(e)}loadCallback(e){this.callbacks.push(e),this.execute()}setScript(){var e,t;if(document.getElementById(this.id)){this.callback();return}const r={key:this.apiKey,channel:this.channel,client:this.client,libraries:this.libraries.length&&this.libraries,v:this.version,mapIds:this.mapIds,language:this.language,region:this.region,authReferrerPolicy:this.authReferrerPolicy};Object.keys(r).forEach(a=>!r[a]&&delete r[a]),!((t=(e=window?.google)===null||e===void 0?void 0:e.maps)===null||t===void 0)&&t.importLibrary||(a=>{let s,c,u,f="The Google Maps JavaScript API",h="google",g="importLibrary",v="__ib__",y=document,_=window;_=_[h]||(_[h]={});const w=_.maps||(_.maps={}),x=new Set,S=new URLSearchParams,T=()=>s||(s=new Promise((M,C)=>k3(this,void 0,void 0,function*(){var k;yield c=y.createElement("script"),c.id=this.id,S.set("libraries",[...x]+"");for(u in a)S.set(u.replace(/[A-Z]/g,L=>"_"+L[0].toLowerCase()),a[u]);S.set("callback",h+".maps."+v),c.src=this.url+"?"+S,w[v]=M,c.onerror=()=>s=C(Error(f+" could not load.")),c.nonce=this.nonce||((k=y.querySelector("script[nonce]"))===null||k===void 0?void 0:k.nonce)||"",y.head.append(c)})));w[g]?console.warn(f+" only loads once. Ignoring:",a):w[g]=(M,...C)=>x.add(M)&&T().then(()=>w[g](M,...C))})(r);const i=this.libraries.map(a=>this.importLibrary(a));i.length||i.push(this.importLibrary("core")),Promise.all(i).then(()=>this.callback(),a=>{const s=new ErrorEvent("error",{error:a});this.loadErrorCallback(s)})}reset(){this.deleteScript(),this.done=!1,this.loading=!1,this.errors=[],this.onerrorEvent=null}resetIfRetryingFailed(){this.failed&&this.reset()}loadErrorCallback(e){if(this.errors.push(e),this.errors.length<=this.retries){const t=this.errors.length*Math.pow(2,this.errors.length);console.error(`Failed to load Google Maps script, retrying in ${t} ms.`),setTimeout(()=>{this.deleteScript(),this.setScript()},t)}else this.onerrorEvent=e,this.callback()}callback(){this.done=!0,this.loading=!1,this.callbacks.forEach(e=>{e(this.onerrorEvent)}),this.callbacks=[]}execute(){if(this.resetIfRetryingFailed(),this.done)this.callback();else{if(window.google&&window.google.maps&&window.google.maps.version){console.warn("Google Maps already loaded outside @googlemaps/js-api-loader.This may result in undesirable behavior as options and script parameters may not match."),this.callback();return}this.loading||(this.loading=!0,this.setScript())}}}/*! *****************************************************************************
231Copyright (c) Microsoft Corporation.
232
233Permission to use, copy, modify, and/or distribute this software for any
234purpose with or without fee is hereby granted.
235
236THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
237REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
238AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
239INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
240LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
241OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
242PERFORMANCE OF THIS SOFTWARE.
243***************************************************************************** */var l_=function(n,e){return l_=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var i in r)r.hasOwnProperty(i)&&(t[i]=r[i])},l_(n,e)};function B2(n,e){l_(n,e);function t(){this.constructor=n}
243n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var $c=function(){return $c=Object.assign||function(e){for(var t,r=1,i=arguments.length;r<i;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},$c.apply(this,arguments)};function A3(n,e){for(var t in e.prototype)n.prototype[t]=e.prototype[t]}var H2=(function(){function n(){A3(n,google.maps.OverlayView)}return n})();function c_(n){return Object.keys(n).reduce(function(e,t){return n[t]&&e.push(t+":"+n[t]),e},[]).join(";")}function Bi(n){return n?n+"px":void 0}var R3=(function(n){B2(e,n);function e(t,r){var i=n.call(this)||this;return i.cluster_=t,i.styles_=r,i.center_=null,i.div_=null,i.sums_=null,i.visible_=!1,i.style=null,i.setMap(t.getMap()),i}return e.prototype.onAdd=function(){var t=this,r,i,a=this.cluster_.getMarkerClusterer(),s=google.maps.version.split("."),c=s[0],u=s[1],f=parseInt(c,10)*100+parseInt(u,10);this.div_=document.createElement("div"),this.visible_&&this.show(),this.getPanes().overlayMouseTarget.appendChild(this.div_),this.boundsChangedListener_=google.maps.event.addListener(this.getMap(),"bounds_changed",function(){i=r}),google.maps.event.addDomListener(this.div_,"mousedown",function(){r=!0,i=!1}),google.maps.event.addDomListener(this.div_,"contextmenu",function(){google.maps.event.trigger(a,"contextmenu",t.cluster_)}),f>=332&&google.maps.event.addDomListener(this.div_,"touchstart",function(h){h.stopPropagation()}),google.maps.event.addDomListener(this.div_,"click",function(h){if(r=!1,!i){if(google.maps.event.trigger(a,"click",t.cluster_),google.maps.event.trigger(a,"clusterclick",t.cluster_),a.getZoomOnClick()){var g=a.getMaxZoom(),v=t.cluster_.getBounds();a.getMap().fitBounds(v),setTimeout(function(){a.getMap().fitBounds(v),g!==null&&a.getMap().getZoom()>g&&a.getMap().setZoom(g+1)},100)}h.cancelBubble=!0,h.stopPropagation&&h.stopPropagation()}}),google.maps.event.addDomListener(this.div_,"mouseover",function(){google.maps.event.trigger(a,"mouseover",t.cluster_)}),google.maps.event.addDomListener(this.div_,"mouseout",function(){google.maps.event.trigger(a,"mouseout",t.cluster_)})},e.prototype.onRemove=function(){this.div_&&this.div_.parentNode&&(this.hide(),google.maps.event.removeListener(this.boundsChangedListener_),google.maps.event.clearInstanceListeners(this.div_),this.div_.parentNode.removeChild(this.div_),this.div_=null)},e.prototype.draw=function(){if(this.visible_){var t=this.getPosFromLatLng_(this.center_);this.div_.style.top=t.y+"px",this.div_.style.left=t.x+"px"}},e.prototype.hide=function(){this.div_&&(this.div_.style.display="none"),this.visible_=!1},e.prototype.show=function(){this.div_&&(this.div_.className=this.className_,this.div_.style.cssText=this.createCss_(this.getPosFromLatLng_(this.center_)),this.div_.innerHTML=(this.style.url?this.getImageElementHtml():"")+this.getLabelDivHtml(),typeof this.sums_.title>"u"||this.sums_.title===""?this.div_.title=this.cluster_.getMarkerClusterer().getTitle():this.div_.title=this.sums_.title,this.div_.style.display=""),this.visible_=!0},e.prototype.getLabelDivHtml=function(){var t=this.cluster_.getMarkerClusterer(),r=t.ariaLabelFn(this.sums_.text),i={position:"absolute",top:Bi(this.anchorText_[0]),left:Bi(this.anchorText_[1]),color:this.style.textColor,"font-size":Bi(this.style.textSize),"font-family":this.style.fontFamily,"font-weight":this.style.fontWeight,"font-style":this.style.fontStyle,"text-decoration":this.style.textDecoration,"text-align":"center",width:Bi(this.style.width),"line-height":Bi(this.style.textLineHeight)};return`
244<div aria-label="`.concat(r,'" style="').concat(c_(i),`" tabindex="0">
245  <span aria-hidden="true">`).concat(this.sums_.text,`</span>
246</div>
247`)},e.prototype.getImageElementHtml=function(){var t=(this.style.backgroundPosition||"0 0").split(" "),r=parseInt(t[0].replace(/^\s+|\s+$/g,""),10),i=parseInt(t[1].replace(/^\s+|\s+$/g,""),10),a={};if(this.cluster_.getMarkerClusterer().getEnableRetinaIcons())a={width:Bi(this.style.width),height:Bi(this.style.height)};else{var s=[-1*i,-1*r+this.style.width,-1*i+this.style.height,-1*r],c=s[0],u=s[1],f=s[2],h=s[3];a={clip:"rect(".concat(c,"px, ").concat(u,"px, ").concat(f,"px, ").concat(h,"px)")}}var g=this.sums_.url?{width:"100%",height:"100%"}:{},v=c_($c($c({position:"absolute",top:Bi(i),left:Bi(r)}
247,a),g));return'<img alt="'.concat(this.sums_.text,'" aria-hidden="true" src="').concat(this.style.url,'" style="').concat(v,'"/>')},e.prototype.useStyle=function(t){this.sums_=t;var r=Math.max(0,t.index-1);r=Math.min(this.styles_.length-1,r),this.style=this.sums_.url?$c($c({},this.styles_[r]),{url:this.sums_.url}):this.styles_[r],this.anchorText_=this.style.anchorText||[0,0],this.anchorIcon_=this.style.anchorIcon||[Math.floor(this.style.height/2),Math.floor(this.style.width/2)],this.className_=this.cluster_.getMarkerClusterer().getClusterClass()+" "+(this.style.className||"cluster-"+r)},e.prototype.setCenter=function(t){this.center_=t},e.prototype.createCss_=function(t){return c_({"z-index":"".concat(this.cluster_.getMarkerClusterer().getZIndex()),top:Bi(t.y),left:Bi(t.x),width:Bi(this.style.width),height:Bi(this.style.height),cursor:"pointer",position:"absolute","-webkit-user-select":"none","-khtml-user-select":"none","-moz-user-select":"none","-o-user-select":"none","user-select":"none"})},e.prototype.getPosFromLatLng_=function(t){var r=this.getProjection().fromLatLngToDivPixel(t);return r.x=Math.floor(r.x-this.anchorIcon_[1]),r.y=Math.floor(r.y-this.anchorIcon_[0]),r},e})(H2),I3=(function(){function n(e){this.markerClusterer_=e,this.map_=this.markerClusterer_.getMap(),this.minClusterSize_=this.markerClusterer_.getMinimumClusterSize(),this.averageCenter_=this.markerClusterer_.getAverageCenter(),this.markers_=[],this.center_=null,this.bounds_=null,this.clusterIcon_=new R3(this,this.markerClusterer_.getStyles())}return n.prototype.getSize=function(){return this.markers_.length},n.prototype.getMarkers=function(){return this.markers_},n.prototype.getCenter=function(){return this.center_},n.prototype.getMap=function(){return this.map_},n.prototype.getMarkerClusterer=function(){return this.markerClusterer_},n.prototype.getBounds=function(){for(var e=new google.maps.LatLngBounds(this.center_,this.center_),t=this.getMarkers(),r=0;r<t.length;r++)e.extend(t[r].getPosition());return e},n.prototype.remove=function(){this.clusterIcon_.setMap(null),this.markers_=[],delete this.markers_},n.prototype.addMarker=function(e){if(this.isMarkerAlreadyAdded_(e))return!1;if(!this.center_)this.center_=e.getPosition(),this.calculateBounds_();else if(this.averageCenter_){var t=this.markers_.length+1,r=(this.center_.lat()*(t-1)+e.getPosition().lat())/t,i=(this.center_.lng()*(t-1)+e.getPosition().lng())/t;this.center_=new google.maps.LatLng(r,i),this.calculateBounds_()}e.isAdded=!0,this.markers_.push(e);var a=this.markers_.length,s=this.markerClusterer_.getMaxZoom();if(s!==null&&this.map_.getZoom()>s)e.getMap()!==this.map_&&e.setMap(this.map_);else if(a<this.minClusterSize_)e.getMap()!==this.map_&&e.setMap(this.map_);else if(a===this.minClusterSize_)for(var c=0;c<a;c++)this.markers_[c].setMap(null);else e.setMap(null);return!0},n.prototype.isMarkerInClusterBounds=function(e){return this.bounds_.contains(e.getPosition())},n.prototype.calculateBounds_=function(){var e=new google.maps.LatLngBounds(this.center_,this.center_);this.bounds_=this.markerClusterer_.getExtendedBounds(e)},n.prototype.updateIcon=function(){var e=this.markers_.length,t=this.markerClusterer_.getMaxZoom();if(t!==null&&this.map_.getZoom()>t){this.clusterIcon_.hide();return}if(e<this.minClusterSize_){this.clusterIcon_.hide();return}var r=this.markerClusterer_.getStyles().length,i=this.markerClusterer_.getCalculator()(this.markers_,r);this.clusterIcon_.setCenter(this.center_),this.clusterIcon_.useStyle(i),this.clusterIcon_.show()},n.prototype.isMarkerAlreadyAdded_=function(e){if(this.markers_.indexOf)return this.markers_.indexOf(e)!==-1;for(var t=0;t<this.markers_.length;t++)if(e===this.markers_[t])return!0;return!1},n})(),u0=function(n,e,t){return n[e]!==void 0?n[e]:t},z2=(function(n){B2(e,n);function e(t,r,i){r===void 0&&(r=[]),i===void 0&&(i={});var a=n.call(this)||this;return a.options=i,a.markers_=[],a.clusters_=[],a.listeners_=[],a.activeMap_=null,a.ready_=!1,a.ariaLabelFn=a.options.ariaLabelFn||(function(){return""}),a.zIndex_=a.options.zIndex||Number(google.maps.Marker.MAX_ZINDEX)+1,a.gridSize_=a.options.gridSize||60,a.minClusterSize_=a.options.minimumClusterSize||2,a.maxZoom_=a.options.maxZoom||null,a.styles_=a.options.styles||[],a.title_=a.options.title||"",a.zoomOnClick_=u0(a.options,"zoomOnClick",!0),a.averageCenter_=u0(a.options,"averageCenter",!1),a.ignoreHidden_=u0(a.options,"ignoreHidden",!1),a.enableRetinaIcons_=u0(a.options,"enableRetinaIcons",!1),a.imagePath_=a.options.imagePath||e.IMAGE_PATH,a.imageExtension_=a.options.imageExtension||e.IMAGE_EXTENSION,a.imageSizes_=a.options.imageSizes||e.IMAGE_SIZES,a.calculator_=a.options.calculator||e.CALCULATOR,a.batchSize_=a.options.batchSize||e.BATCH_SIZE,a.batchSizeIE_=a.options.batchSizeIE||e.BATCH_SIZE_IE,a.clusterClass_
247=a.options.clusterClass||"cluster",navigator.userAgent.toLowerCase().indexOf("msie")!==-1&&(a.batchSize_=a.batchSizeIE_),a.setupStyles_(),a.addMarkers(r,!0),a.setMap(t),a}return e.prototype.onAdd=function(){var t=this;this.activeMap_=this.getMap(),this.ready_=!0,this.repaint(),this.prevZoom_=this.getMap().getZoom(),this.listeners_=[google.maps.event.addListener(this.getMap(),"zoom_changed",function(){var r=t.getMap(),i=r.minZoom||0,a=Math.min(r.maxZoom||100,r.mapTypes[r.getMapTypeId()].maxZoom),s=Math.min(Math.max(t.getMap().getZoom(),i),a);t.prevZoom_!=s&&(t.prevZoom_=s,t.resetViewport_(!1))}),google.maps.event.addListener(this.getMap(),"idle",function(){t.redraw_()})]},e.prototype.onRemove=function(){for(var t=0;t<this.markers_.length;t++)this.markers_[t].getMap()!==this.activeMap_&&this.markers_[t].setMap(this.activeMap_);for(var t=0;t<this.clusters_.length;t++)this.clusters_[t].remove();this.clusters_=[];for(var t=0;t<this.listeners_.length;t++)google.maps.event.removeListener(this.listeners_[t]);this.listeners_=[],this.activeMap_=null,this.ready_=!1},e.prototype.draw=function(){},e.prototype.setupStyles_=function(){if(!(this.styles_.length>0))for(var t=0;t<this.imageSizes_.length;t++){var r=this.imageSizes_[t];this.styles_.push(e.withDefaultStyle({url:this.imagePath_+(t+1)+"."+this.imageExtension_,height:r,width:r}))}},e.prototype.fitMapToMarkers=function(t){for(var r=this.getMarkers(),i=new google.maps.LatLngBounds,a=0;a<r.length;a++)(r[a].getVisible()||!this.getIgnoreHidden())&&i.extend(r[a].getPosition());this.getMap().fitBounds(i,t)},e.prototype.getGridSize=function(){return this.gridSize_},e.prototype.setGridSize=function(t){this.gridSize_=t},e.prototype.getMinimumClusterSize=function(){return this.minClusterSize_},e.prototype.setMinimumClusterSize=function(t){this.minClusterSize_=t},e.prototype.getMaxZoom=function(){return this.maxZoom_},e.prototype.setMaxZoom=function(t){this.maxZoom_=t},e.prototype.getZIndex=function(){return this.zIndex_},e.prototype.setZIndex=function(t){this.zIndex_=t},e.prototype.getStyles=function(){return this.styles_},e.prototype.setStyles=function(t){this.styles_=t},e.prototype.getTitle=function(){return this.title_},e.prototype.setTitle=function(t){this.title_=t},e.prototype.getZoomOnClick=function(){return this.zoomOnClick_},e.prototype.setZoomOnClick=function(t){this.zoomOnClick_=t},e.prototype.getAverageCenter=function(){return this.averageCenter_},e.prototype.setAverageCenter=function(t){this.averageCenter_=t},e.prototype.getIgnoreHidden=function(){return this.ignoreHidden_},e.prototype.setIgnoreHidden=function(t){this.ignoreHidden_=t},e.prototype.getEnableRetinaIcons=function(){return this.enableRetinaIcons_},e.prototype.setEnableRetinaIcons=function(t){this.enableRetinaIcons_=t},e.prototype.getImageExtension=function(){return this.imageExtension_},e.prototype.setImageExtension=function(t){this.imageExtension_=t},e.prototype.getImagePath=function(){return this.imagePath_},e.prototype.setImagePath=function(t){this.imagePath_=t},e.prototype.getImageSizes=function(){return this.imageSizes_},e.prototype.setImageSizes=function(t){this.imageSizes_=t},e.prototype.getCalculator=function(){return this.calculator_},e.prototype.setCalculator=function(t){this.calculator_=t},e.prototype.getBatchSizeIE=function(){return this.batchSizeIE_},e.prototype.setBatchSizeIE=function(t){this.batchSizeIE_=t},e.prototype.getClusterClass=function(){return this.clusterClass_},e.prototype.setClusterClass=function(t){this.clusterClass_=t},e.prototype.getMarkers=function(){return this.markers_},e.prototype.getTotalMarkers=function(){return this.markers_.length},e.prototype.getClusters=function(){return this.clusters_},e.prototype.getTotalClusters=function(){return this.clusters_.length},e.prototype.addMarker=function(t,r){this.pushMarkerTo_(t),r||this.redraw_()},e.prototype.addMarkers=function(t,r){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&this.pushMarkerTo_(t[i]);r||this.redraw_()},e.prototype.pushMarkerTo_=function(t){var r=this;t.getDraggable()&&google.maps.event.addListener(t,"dragend",function(){r.ready_&&(t.isAdded=!1,r.repaint())}),t.isAdded=!1,this.markers_.push(t)},e.prototype.removeMarker=function(t,r){var i=this.removeMarker_(t);return!r&&i&&this.repaint(),i},e.prototype.removeMarkers=function(t,r){for(var i=!1,a=0;a<t.length;a++){var s=this.removeMarker_(t[a]);i=i||s}return!r&&i&&this.repaint(),i},e.prototype.removeMarker_=function(t){var r=-1;if(this.markers_.indexOf)r=this.markers_.indexOf(t);else for(var i=0;i<this.markers_.length;i++)if(t===this.markers_[i]){r=i;break}return r===-1?!1:(t.setMap(null),this.markers_.splice(r,1),!0)},e.prototype.clearMarkers=function(){this.resetViewport_(!0),this.markers_=[]}
247,e.prototype.repaint=function(){var t=this.clusters_.slice();this.clusters_=[],this.resetViewport_(!1),this.redraw_(),setTimeout(function(){for(var r=0;r<t.length;r++)t[r].remove()},0)},e.prototype.getExtendedBounds=function(t){var r=this.getProjection(),i=new google.maps.LatLng(t.getNorthEast().lat(),t.getNorthEast().lng()),a=new google.maps.LatLng(t.getSouthWest().lat(),t.getSouthWest().lng()),s=r.fromLatLngToDivPixel(i);s.x+=this.gridSize_,s.y-=this.gridSize_;var c=r.fromLatLngToDivPixel(a);c.x-=this.gridSize_,c.y+=this.gridSize_;var u=r.fromDivPixelToLatLng(s),f=r.fromDivPixelToLatLng(c);return t.extend(u),t.extend(f),t},e.prototype.redraw_=function(){this.createClusters_(0)},e.prototype.resetViewport_=function(t){for(var r=0;r<this.clusters_.length;r++)this.clusters_[r].remove();this.clusters_=[];for(var r=0;r<this.markers_.length;r++){var i=this.markers_[r];i.isAdded=!1,t&&i.setMap(null)}},e.prototype.distanceBetweenPoints_=function(t,r){var i=6371,a=(r.lat()-t.lat())*Math.PI/180,s=(r.lng()-t.lng())*Math.PI/180,c=Math.sin(a/2)*Math.sin(a/2)+Math.cos(t.lat()*Math.PI/180)*Math.cos(r.lat()*Math.PI/180)*Math.sin(s/2)*Math.sin(s/2),u=2*Math.atan2(Math.sqrt(c),Math.sqrt(1-c));return i*u},e.prototype.isMarkerInBounds_=function(t,r){return r.contains(t.getPosition())},e.prototype.addToClosestCluster_=function(t){for(var r=4e4,i=null,a=0;
247a<this.clusters_.length;a++){var s=this.clusters_[a],c=s.getCenter();if(c){var u=this.distanceBetweenPoints_(c,t.getPosition());u<r&&(r=u,i=s)}}if(i&&i.isMarkerInClusterBounds(t))i.addMarker(t);else{var s=new I3(this);s.addMarker(t),this.clusters_.push(s)}},e.prototype.createClusters_=function(t){var r=this;if(this.ready_){t===0&&(google.maps.event.trigger(this,"clusteringbegin",this),typeof this.timerRefStatic<"u"&&(clearTimeout(this.timerRefStatic),delete this.timerRefStatic));for(var i=new google.maps.LatLngBounds(this.getMap().getBounds().getSouthWest(),this.getMap().getBounds().getNorthEast()),a=this.getExtendedBounds(i),s=Math.min(t+this.batchSize_,this.markers_.length),c=t;c<s;c++){var u=this.markers_[c];!u.isAdded&&this.isMarkerInBounds_(u,a)&&(!this.ignoreHidden_||this.ignoreHidden_&&u.getVisible())&&this.addToClosestCluster_(u)}if(s<this.markers_.length)this.timerRefStatic=window.setTimeout(function(){r.createClusters_(s)},0);else{delete this.timerRefStatic,google.maps.event.trigger(this,"clusteringend",this);for(var c=0;
247c<this.clusters_.length;c++)this.clusters_[c].updateIcon()}}},e.CALCULATOR=function(t,r){for(var i=0,a=t.length,s=a;s!==0;)s=Math.floor(s/10),i++;return i=Math.min(i,r),{text:a.toString(),index:i,title:""}},e.withDefaultStyle=function(t){return $c({textColor:"black",textSize:11,textDecoration:"none",textLineHeight:t.height,fontWeight:"bold",fontStyle:"normal",fontFamily:"Arial,sans-serif",backgroundPosition:"0 0"},t)},e.BATCH_SIZE=2e3,e.BATCH_SIZE_IE=500,e.IMAGE_PATH="../images/m",e.IMAGE_EXTENSION="png",e.IMAGE_SIZES=[53,56,66,78,90],e})(H2);const N3=n=>{const{baseUrl:e,lat:t,lng:r,showGeolocation:i,localization:a,cultureCode:s,type:c,items:u,TabType:f,isToggled:h}=n,g=()=>window.innerWidth<992,v=()=>{const _=window.innerWidth,w=window.innerHeight;return _>w};let y;return v()&&g()?y="450px":y="640px",(0,p.useEffect)(()=>{let _=null;const w=new vl({apiKey:"AIzaSyB-BZCEoTrALP-YNfYeB7xaWmnmJaB2HRg",version:"weekly"}),x={lat:49.8175,lng:15.473};w.load().then(()=>{const S={latitude:t,longitude:r,baseUrl:"",limit:9999,offset:0,cultureCode:s},T=new window.google.maps.Map(document.getElementById("map"),{center:x,zoom:7,mapTypeControl:!1,streetViewControl:!1,zoomControl:!0,fullscreenControl:!1,clickableIcons:!1}),M=P=>{_?_.setPosition(P):_=new window.google.maps.Marker({position:P,title:a.Branches_Atms_YourLocation,icon:{url:"/img/png/yourLocation.png",scaledSize:new window.google.maps.Size(32,40)},map:T}),T.setCenter(P),T.setZoom(12)},C=[{textColor:"white",url:"/img/svg/cluster.svg",height:48,width:48,display:"flex",lineHeight:48}];let k;g()?k=new window.google.maps.InfoWindow({pixelOffset:new window.google.maps.Size(0,0),disableAutoPan:!1}):k=new window.google.maps.InfoWindow({pixelOffset:new window.google.maps.Size(185,180),disableAutoPan:!0});const L=u,O=L?.map(P=>{const B=new window.google.maps.Marker({position:{lat:P.latitude,lng:P.longitude},title:P.title,icon:c==="atms"?"/img/svg/mapAtm.svg":"/img/svg/mapBranche.svg",map:T});B.addListener("click",()=>{const F=`
248            <div class="info-window">
249              <div class="info-window__inner">
250                <div class="info-window__title">
251                <svg width="24" height="24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M5.556 15.29V8.71h1.19v3.07l3.228-3.07h1.464l-3.322 3.167 3.46 3.412H9.973l-3.228-3.192v3.193h-1.19ZM17.744 13.36c0-.553-.288-.851-.908-.851h-3.254v1.693h3.106c.724 0 1.056-.316 1.056-.842Zm-.986-1.939c.55 0 .803-.385.803-.798 0-.456-.288-.824-.873-.824h-3.106v1.622h3.176Zm1.335.456c.576.298.907.851.907 1.483 0 1.088-.785 1.93-2.286 1.93h-4.336V8.71h4.31c1.204 0 2.076.737 2.076 1.851 0 .57-.244.983-.671 1.316Z" fill="#fff"/><path fill-rule="evenodd" clip-rule="evenodd" d="M1.25 7.017A5.767 5.767 0 0 1 7.017 1.25h9.966a5.767 5.767 0 0 1 5.767 5.767v9.966a5.767 5.767 0 0 1-5.767 5.767H7.017a5.767 5.767 0 0 1-5.767-5.767V7.017ZM7.017 2.75A4.267 4.267 0 0 0 2.75 7.017v9.966a4.267 4.267 0 0 0 4.267 4.267h9.966a4.267 4.267 0 0 0 4.267-4.267V7.017a4.267 4.267 0 0 0-4.267-4.267H7.017Z" fill="#fff"/></svg>
252                  ${P.title}
253                </div>
254                <div class="info-window__info" style="${P.additionalInfoCut?"":"display: none;"}">
255                  <svg
256                    width="24"
257                    height="24"
258                    fill="none"
259                    xmlns="http://www.w3.org/2000/svg"
260                  >
261                    <g fillRule="evenodd" clipRule="evenodd" fill="#fff">
262                      <path d="M1.25 12C1.25 6.086 6.086 1.25 12 1.25S22.75 6.086 22.75 12 17.914 22.75 12 22.75 1.25 17.914 1.25 12ZM12 2.75c-5.086 0-9.25 4.164-9.25 9.25s4.164 9.25 9.25 9.25 9.25-4.164 9.25-9.25S17.086 2.75 12 2.75Z" />
263                      <path d="M11.246 17.75v-7.5h1.5v7.5h-1.5Z" />
264                      <path d="M14.25 17.75h-4.5v-1.5h4.5v1.5ZM13.004 8a1 1 0 0 1-1 1h-.01a1 1 0 1 1 0-2h.01a1 1 0 0 1 1 1Z" />
265                    </g>
266                  </svg>
267                  <div>${P.additionalInfoCut} <a href="${P.url}" class="underline hover:no-underline" type="button">${a.Branches_MoreInfo}</a></div>
268                </div>
269                <div class="info-window__atm" style="${P.branchWithAtm?"":"display: none;"}">
270                  <svg class="icon" width="24" height="24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M1.25 5.374A2.75 2.75 0 0 1 4 2.624h16a2.75 2.75 0 0 1 2.75 2.75v2a2.75 2.75 0 0 1-1.456 2.427l-.429-1.525c.237-.227.385-.547.385-.902v-2c0-.69-.56-1.25-1.25-1.25H4c-.69 0-1.25.56-1.25 1.25v2c0 .35.143.666.375.892l-.429 1.53A2.75 2.75 0 0 1 1.25 7.374v-2Zm3.609 2.263A2.75 2.75 0 0 1 7.507 5.63h8.973a2.75 2.75 0 0 1 2.647 2.006l2.88 10.247a2.75 2.75 0 0 1-2.647 3.494H4.637a2.75 2.75 0 0 1-2.648-3.492l2.87-10.247Zm2.648-.508a1.25 1.25 0 0 0-1.204.913l-2.87 10.247a1.25 1.25 0 0 0 1.204 1.587H19.36a1.25 1.25 0 0 0 1.204-1.588L17.683 8.04a1.25 1.25 0 0 0-1.203-.912H7.507ZM7.33 12.51l.382-2.601H9.23l-.382 2.6H7.33Zm-.2 1.355-.662 4.503h1.516l.663-4.503H7.13Z" fill="#fff"/></svg>
271                  ${a.Branches_BranchDetail_HasAtm}
272                </div>
273                <div class="info-window__time">
274                  <svg width="24" height="24" fill="none" xmlns="http://www.w3.org/2000/svg"><g fill-rule="evenodd" clip-rule="evenodd" fill="#fff"><path d="M12 2.75c-5.106 0-9.25 4.144-9.25 9.25s4.144 9.25 9.25 9.25 9.25-4.144 9.25-9.25S17.106 2.75 12 2.75ZM1.25 12C1.25 6.066 6.066 1.25 12 1.25S22.75 6.066 22.75 12 17.934 22.75 12 22.75 1.25 17.934 1.25 12Z"/><path d="M12.38 6.76v4.85c0 .154.059.376.189.605.13.228.292.392.423.47l.002.001 3.744 2.234-.768 1.288-3.742-2.233h-.001c-.409-.243-.737-.624-.961-1.017-.225-.394-.386-.872-.386-1.348V6.76h1.5Z"/></g></svg>
275                  ${P.openingHoursTime}
276                </div>
277              </div>
278              <a href="${P.url}" class="btn btn--tertiary" type="button">${c==="atms"?a.Branches_AtmDetail:P.isAdvisoryCenter?a.Branches_AdvisoryDetail:a.Branches_BranchDetail}</a>
279            </div>
280          `,$=B.getPosition();T.panTo($),k.setContent(F),k.open(T,B)});const H=document.getElementById("btn-branches-localization");return H&&H.addEventListener("click",()=>{navigator.geolocation?navigator.geolocation.getCurrentPosition(F=>{M({lat:F.coords.latitude,lng:F.coords.longitude})},F=>{console.error("Error getting user location:",F)}):console.error("Geolocation is not supported by this browser.")}),B}),I=new z2(T,O,{styles:C,gridSize:60,maxZoom:15});if(i){if(navigator.geolocation.getCurrentPosition(H=>{const F={lat:t,lng:r};M({lat:t,lng:r}),T.setCenter(F),T.setZoom(12)},H=>{console.error("Error getting user location:",H)}),t&&r){const H={lat:t,lng:r};M({lat:t,lng:r}),T.setCenter(H),T.setZoom(12)}const P=O.slice(0,5),B=new window.google.maps.LatLngBounds;B.extend(P?.getPosition()),T.fitBounds(B)}else{const P=new window.google.maps.LatLngBounds;O.forEach(B=>{P.extend(B.getPosition())}),T.fitBounds(P)}}).catch(S=>{console.error("Chyba p\u0159i na\u010D\xEDt\xE1n\xED mapy:",S)})},[u,f,h]),p.createElement("div",{id:"map",className:"results-map",style:{minHeight:y,width:"100%"}})},P3=n=>{const{baseUrl:e,lat:t,lng:r,showGeolocation:i,localization:a,cultureCode:s,t
280ype:c,items:u,TabType:f,isToggled:h}=n,g=()=>window.innerWidth<992;return(0,p.useEffect)(()=>{let v=null;const y=new vl({apiKey:"AIzaSyB-BZCEoTrALP-YNfYeB7xaWmnmJaB2HRg",version:"weekly"}),_={lat:49.8175,lng:15.473};y.load().then(()=>{const w={latitude:t,longitude:r,baseUrl:"",limit:9999,offset:0,cultureCode:s},x=new window.google.maps.Map(document.getElementById("mapAtm"),{center:_,zoom:7,mapTypeControl:!1,streetViewControl:!1,zoomControl:!0,fullscreenControl:!1,clickableIcons:!1}),S=O=>{v?v.setPosition(O):v=new window.google.maps.Marker({position:O,title:a.Branches_Atms_YourLocation,icon:{url:"/img/png/yourLocation.png",scaledSize:new window.google.maps.Size(32,40)},map:x}),x.setCenter(O),x.setZoom(12)},T=[{textColor:"white",url:"/img/svg/cluster.svg",height:48,width:48,display:"flex",lineHeight:48}];let M;g()?M=new window.google.maps.InfoWindow({pixelOffset:new window.google.maps.Size(0,0),disableAutoPan:!1}):M=new window.google.maps.InfoWindow({pixelOffset:new window.google.maps.Size(185,180),disableAutoPan:!0});const C=u,k=C?.map(O=>{const I=new window.google.maps.Marker({position:{lat:O.latitude,lng:O.longitude},title:O.title,icon:c==="atms"?"/img/svg/mapAtm.svg":"/img/svg/mapBranche.svg",map:x});I.addListener("click",()=>{const B=`
281            <div class="info-window">
282              <div class="info-window__inner">
283                <div class="info-window__title">
284                <svg width="24" height="24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M5.556 15.29V8.71h1.19v3.07l3.228-3.07h1.464l-3.322 3.167 3.46 3.412H9.973l-3.228-3.192v3.193h-1.19ZM17.744 13.36c0-.553-.288-.851-.908-.851h-3.254v1.693h3.106c.724 0 1.056-.316 1.056-.842Zm-.986-1.939c.55 0 .803-.385.803-.798 0-.456-.288-.824-.873-.824h-3.106v1.622h3.176Zm1.335.456c.576.298.907.851.907 1.483 0 1.088-.785 1.93-2.286 1.93h-4.336V8.71h4.31c1.204 0 2.076.737 2.076 1.851 0 .57-.244.983-.671 1.316Z" fill="#fff"/><path fill-rule="evenodd" clip-rule="evenodd" d="M1.25 7.017A5.767 5.767 0 0 1 7.017 1.25h9.966a5.767 5.767 0 0 1 5.767 5.767v9.966a5.767 5.767 0 0 1-5.767 5.767H7.017a5.767 5.767 0 0 1-5.767-5.767V7.017ZM7.017 2.75A4.267 4.267 0 0 0 2.75 7.017v9.966a4.267 4.267 0 0 0 4.267 4.267h9.966a4.267 4.267 0 0 0 4.267-4.267V7.017a4.267 4.267 0 0 0-4.267-4.267H7.017Z" fill="#fff"/></svg>
285                  ${O.title}
286                </div>
287                <div class="info-window__info" style="${O.additionalInfoCut?"":"display: none;"}">
288                  <svg
289                    width="24"
290                    height="24"
291                    fill="none"
292                    xmlns="http://www.w3.org/2000/svg"
293                  >
294                    <g fillRule="evenodd" clipRule="evenodd" fill="#fff">
295                      <path d="M1.25 12C1.25 6.086 6.086 1.25 12 1.25S22.75 6.086 22.75 12 17.914 22.75 12 22.75 1.25 17.914 1.25 12ZM12 2.75c-5.086 0-9.25 4.164-9.25 9.25s4.164 9.25 9.25 9.25 9.25-4.164 9.25-9.25S17.086 2.75 12 2.75Z" />
296                      <path d="M11.246 17.75v-7.5h1.5v7.5h-1.5Z" />
297                      <path d="M14.25 17.75h-4.5v-1.5h4.5v1.5ZM13.004 8a1 1 0 0 1-1 1h-.01a1 1 0 1 1 0-2h.01a1 1 0 0 1 1 1Z" />
298                    </g>
299                  </svg>
300                  <div>${O.additionalInfoCut} <a href="${O.url}" class="underline hover:no-underline" type="button">${a.Branches_MoreInfo}</a></div>
301                </div>
302                <div class="info-window__atm" style="${O.branchWithAtm?"":"display: none;"}">
303                  <svg class="icon" width="24" height="24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M1.25 5.374A2.75 2.75 0 0 1 4 2.624h16a2.75 2.75 0 0 1 2.75 2.75v2a2.75 2.75 0 0 1-1.456 2.427l-.429-1.525c.237-.227.385-.547.385-.902v-2c0-.69-.56-1.25-1.25-1.25H4c-.69 0-1.25.56-1.25 1.25v2c0 .35.143.666.375.892l-.429 1.53A2.75 2.75 0 0 1 1.25 7.374v-2Zm3.609 2.263A2.75 2.75 0 0 1 7.507 5.63h8.973a2.75 2.75 0 0 1 2.647 2.006l2.88 10.247a2.75 2.75 0 0 1-2.647 3.494H4.637a2.75 2.75 0 0 1-2.648-3.492l2.87-10.247Zm2.648-.508a1.25 1.25 0 0 0-1.204.913l-2.87 10.247a1.25 1.25 0 0 0 1.204 1.587H19.36a1.25 1.25 0 0 0 1.204-1.588L17.683 8.04a1.25 1.25 0 0 0-1.203-.912H7.507ZM7.33 12.51l.382-2.601H9.23l-.382 2.6H7.33Zm-.2 1.355-.662 4.503h1.516l.663-4.503H7.13Z" fill="#fff"/></svg>
304                  ${a.Branches_BranchDetail_HasAtm}
305                </div>
306                <div class="info-window__time">
307                  <svg width="24" height="24" fill="none" xmlns="http://www.w3.org/2000/svg"><g fill-rule="evenodd" clip-rule="evenodd" fill="#fff"><path d="M12 2.75c-5.106 0-9.25 4.144-9.25 9.25s4.144 9.25 9.25 9.25 9.25-4.144 9.25-9.25S17.106 2.75 12 2.75ZM1.25 12C1.25 6.066 6.066 1.25 12 1.25S22.75 6.066 22.75 12 17.934 22.75 12 22.75 1.25 17.934 1.25 12Z"/><path d="M12.38 6.76v4.85c0 .154.059.376.189.605.13.228.292.392.423.47l.002.001 3.744 2.234-.768 1.288-3.742-2.233h-.001c-.409-.243-.737-.624-.961-1.017-.225-.394-.386-.872-.386-1.348V6.76h1.5Z"/></g></svg>
308                  ${O.openingHoursTime}
309                </div>
310              </div>
311              <a href="${O.url}" class="btn btn--tertiary" type="button">${c==="atms"?a.Branches_AtmDetail:O.isAdvisoryCenter?a.Branches_AdvisoryDetail:a.Branches_BranchDetail}</a>
312            </div>
313          `,H=I.getPosition();x.panTo(H),M.setContent(B),M.open(x,I)});const P=document.getElementById("btn-atms-localization");return P&&P.addEventListener("click",()=>{navigator.geolocation?navigator.geolocation.getCurrentPosition(B=>{S({lat:B.coords.latitude,lng:B.coords.longitude})},B=>{console.error("Error getting user location:",B)}):console.error("Geolocation is not supported by this browser.")}),I}),L=new z2(x,k,{styles:T,gridSize:60,maxZoom:15});if(i){if(navigator.geolocation.getCurrentPosition(P=>{const B={lat:t,lng:r};S({lat:t,lng:r}),x.setCenter(B),x.setZoom(12)},P=>{console.error("Error getting user location:",P)}),t&&r){const P={lat:t,lng:r};S({lat:t,lng:r}),x.setCenter(P),x.setZoom(12)}const O=k.slice(0,5),I=new window.google.maps.LatLngBounds;I.extend(O?.getPosition()),x.fitBounds(I)}else{const O=new window.google.maps.LatLngBounds;
313k.forEach(I=>{O.extend(I.getPosition())}),x.fitBounds(O)}}).catch(w=>{console.error("Chyba p\u0159i na\u010D\xEDt\xE1n\xED mapy:",w)})},[u,f,h]),p.createElement("div",{id:"mapAtm",className:"results-map",style:{minHeight:"640px",width:"100%"}})},B3=({filters:n,api:e,pagination:t,localization:r,cultureCode:i,baseUrl:a,pageSize:s,iconsList:c,mapEnabled:u,mapMobileEnabled:f})=>{Da({api:e,formElement:document.querySelector(`.${me}`),cultureCode:i,fetchBodyData:{baseUrl:a},hasSearchCoordinates:!0});const{listedItems:h,map:g}=c,[v,y]=(0,p.useState)(!1),_=Bm(n),[w,x]=(0,p.useState)(_),[S,T]=(0,p.useState)([]),[M,C]=(0,p.useState)(t.currentPage),[k,L]=(0,p.useState)(t.pagesCount),[O,I]=(0,p.useState)(!1),[P,B]=(0,p.useState)(!1),[H,F]=(0,p.useState)(!1),[$,V]=(0,p.useState)(!1),[W,ee]=(0,p.useState)(""),[q,Y]=(0,p.useState)(!1),ae=Me.Branches,{getItemIndexProps:ue}=Bd({totalItems:S.length,isLoadingMore:P}),{announcement:We,liveRegionProps:be}=Hd({itemCount:S.length,isLoadingMore:P,localization:r,itemType:"branches"}),_e=S.length>0,qe=O,je=$,ct=_e,ht=H&&!_e,Ge=!O&&_e,Re=!O&&_e&&M!==k,Ze=Tr(ve),pe=Tr(Ye);C2(ae);const Ie=f?"":"hidden sm:block",Ke=u?"underline":"hidden underline",nt=async(Oe,Be)=>{var Fe;I(!0),F(!1);try{const rt=await st({settings:{method:"POST",url:e,body:JSON.stringify(Object.assign({latitude:kt.lat,longitude:kt.lng,baseUrl:a,limit:(Fe=Be??s)!==null&&Fe!==void 0?Fe:Zt,offset:0,cultureCode:i,isPageDetail:!1},Oe))}});T(rt.payload.data);const hn=rt.payload.pagination,{currentPage:En,pagesCount:Zn}=hn;C(En),L(Zn)}catch(rt){I(!1),V(!0),console.error(rt)}finally{I(!1),F(!0)}},Ot=async(Oe,Be)=>{var Fe;I(!0),F(!1);try{const rt=await st({settings:{method:"POST",url:e,body:JSON.stringify(Object.assign({latitude:At(ve).lat,longitude:At(ve).lng,baseUrl:a,limit:(Fe=Be??s)!==null&&Fe!==void 0?Fe:Zt,offset:0,cultureCode:i,isPageDetail:!1},Oe))}});T(rt.payload.data);const hn=rt.payload.pagination,{currentPage:En,pagesCount:Zn}=hn;C(En),L(Zn)}catch(rt){I(!1),V(!0),console.error(rt)}finally{I(!1),F(!0)}},zt=async(Oe,Be)=>{var Fe;I(!0),F(!1);try{const rt=await st({settings:{method:"POST",url:e,body:JSON.stringify(Object.assign({latitude:At(Ye).lat,longitude:At(Ye).lng,baseUrl:a,limit:(Fe=Be??s)!==null&&Fe!==void 0?Fe:Zt,offset:0,cultureCode:i,isPageDetail:!1},Oe))}});T(rt.payload.data);const hn=rt.payload.pagination,{currentPage:En,pagesCount:Zn}=hn;C(En),L(Zn)}catch(rt){I(!1),V(!0),console.error(rt)}finally{I(!1),F(!0)}},pt=async(Oe,Be)=>{B(!0),F(!1);try{const Fe=await st({settings:{method:"POST",url:e,body:JSON.stringify(Object.assign({latitude:kt.lat,longitude:kt.lng,baseUrl:a,limit:Be??t.rowsOnPage,offset:S.length,cultureCode:i,isPageDetail:!1},Oe))}}),rt=S,hn=Fe.payload.data,En=rt.concat(hn);T(En);const Zn=Fe.payload.pagination,{currentPage:br,pagesCount:li}=Zn;C(br),L(li)}catch(Fe){B(!1),V(!0),console.error(Fe)}finally{B(!1),F(!0)}},Gt=async(Oe,Be)=>{B(!0),F(!1);try{const Fe=await st({settings:{method:"POST",url:e,body:JSON.stringify(Object.assign({latitude:At(ve).lat,longitude:At(ve).lng,baseUrl:a,limit:Be??t.rowsOnPage,offset:S.length,cultureCode:i,isPageDetail:!1},Oe))}}),rt=S,hn=Fe.payload.data,En=rt.concat(hn);T(En);const Zn=Fe.payload.pagination,{currentPage:br,pagesCount:li}=Zn;C(br),L(li)}catch(Fe){B(!1),V(!0),console.error(Fe)}finally{B(!1),F(!0)}},Ft=async(Oe,Be)=>{B(!0),F(!1);try{const Fe=await st({settings:{method:"POST",url:e,body:JSON.stringify(Object.assign({latitude:At(Ye).lat,longitude:At(Ye).lng,baseUrl:a,limit:Be??t.rowsOnPage,offset:S.length,cultureCode:i,isPageDetail:!1},Oe))}}),rt=S,hn=Fe.payload.data,En=rt.concat(hn);T(En);const Zn=Fe.payload.pagination,{currentPage:br,pagesCount:li}=Zn;C(br),L(li)}catch(Fe){B(!1),V(!0),console.error(Fe)}finally{B(!1),F(!0)}},Nt=Oe=>{const{checked:Be,value:Fe}=Oe.target,rt=Fe,hn=Be,En=Object.assign(Object.assign({},w),{[rt]:hn});x(En),Hm(rt,hn);const Zn=v?9999:s??Zt;Ze&&!pe&&Ot(En,Zn),pe&&zt(En,Zn),!Ze&&!pe&&nt(En,Zn)},Tt=()=>{Ze&&!pe&&Ot(w),pe&&zt(w),!Ze&&!pe&&nt(w)};(0,p.useEffect)(()=>{Tt()},[pe,Ze]);const Ne=Oe=>Ze&&!pe?Gt(w,Oe):pe?Ft(w,Oe):pt(w,Oe),Ve=()=>{v?(y(!1),Tt()):(y(!0),Ne(9999))};return p.createElement(p.Fragment,null,p.createElement("div",{className:"container"},p.createElement(T2,null,p.createElement(N2,{inputValue:W,setInputValue:ee,setShowAlertNoResult:Y,localization:r,type:ae,isToggled:v}),p.createElement(k2,{filters:n,iconsList:c,localization:r,type:ae,handleOnChange:Nt}),p.createElement(L2,{filters:n,iconsList:c,type:ae,handleOnChange:Nt})),q&&p.createElement(A2,{iconsList:c,inputValue:W,localization:r,alertS
313ource:"Branch-Search-NoAddress"})),p.createElement("div",{className:"container mb-12",id:"ResultsList"},p.createElement("div",{className:"row"},p.createElement("div",{className:"mb-6 sm:col-22 sm:offset-1"},ct&&p.createElement(I2,{type:ae,localization:r,iconsList:c}),p.createElement("button",{type:"button",onClick:Ve,className:`${Ke} ${Ie} flex items-center`,"data-testid":v?"display-branches-list":"display-branches-map"},v?p.createElement(un,{name:h.name,viewBox:h.viewbox,alt:h.alt,svg:h.svg,className:"icon mr-2 inline h-6 w-6 fill-red-corporate"}):p.createElement(un,{name:g.name,viewBox:g.viewbox,alt:g.alt,svg:g.svg,className:"icon mr-2 inline h-6 w-6 fill-red-corporate"}),v?ye(r,"Branches_Atms_ShowList"):ye(r,"Branches_Atms_ShowMap")))),v?p.createElement(p.Fragment,null,ht&&p.createElement("div",{className:"row"},p.createElement("div",{className:"sm:col-22 sm:offset-1 mb-6"},p.createElement(qn,{type:Ce.Error,text:ye(r,"Branches_SearchNoResults"),textAttributes:{role:"alert","aria-live":"assertive"},alertSource:"Branch-Search-NoResult"}))),p.createElement("div",{className:"row"},p.createElement("div",{className:"sm:col-22 sm:offset-1"},p.createElement(N3,{baseUrl:a,localization:r,cultureCode:i,lat:At(Ye).lat,lng:At(Ye).lng,showGeolocation:!0,items:S,TabType:!0,isToggled:!0,hasSearchCoordinates:!0})))):p.createElement(M2,null,qe&&p.createElement("div",{className:`search-ba-loader ${_e?"mt-4":""}`},p.createElement(ls,null)),je&&p.createElement(R2,{localization:r,text:"Branches_ErrorMessage",alertSource:"Branch-Search-Error"}),ht&&p.createElement(qn,{type:Ce.Error,text:ye(r,"Branches_SearchNoResults"),textAttributes:{role:"alert","aria-live":"assertive"},alertSource:"Branch-Search-NoResult"}),p.createElement("div",Object.assign({},be),We),Ge&&p.createElement(c0,{type:ae,localization:r,items:S,iconsList:c}),Re&&p.createElement(Ri,{template:"primary",title:ye(r,"LoadMore"),type:"button",onClick:()=>Ne(t.rowsOnPage),dataTestId:`button-load-more-${ae}`,isLoading:P}))))},H3=({api:n,query:e,pagination:t,localization:r,cultureCode:i,baseUrl:a,pageSize:s,pageSizeDetail:c,hasGeolocation:u,latitude:f,longitude:h,iconsList:g})=>{const{hasNextItems:v,isLoadingMore:y,items:_,loadNewItemsOnDetailPage:w,loadMoreItemsOnDetailPage:x,hasError:S,isLoading:T,query:M}=Da({api:n,defaultQuery:e,formElement:document.querySelector(`.${me}`),formInputName:"query",defaultItems:[],defaultPagination:t,cultureCode:i,fetchBodyData:{baseUrl:a},hasSearchCoordinates:!0,pageSize:s,pageSizeDetail:c,hasGeolocation:u,latitude:f,longitude:h}),C=_?.length===0&&M,{getItemIndexProps:k}=Bd({totalItems:_.length,isLoadingMore:y}),{announcement:L,liveRegionProps:O}=Hd({itemCount:_.length,isLoadingMore:y,localization:r,itemType:"branches"});return(0,p.useEffect)(()=>{w()},[]),p.createElement("div",null,S&&p.createElement("div",{className:"mb-8"},p.createElement(qn,{type:Ce.Error,text:ye(r,"Branches_ErrorMessage"),textAttributes:{role:"alert","aria-live":"assertive"}})),C&&p.createElement("div",{className:"mb-8"},p.createElement(qn,{type:Ce.Error,text:ye(r,"Branches_SearchNoResults"),textAttributes:{role:"alert","aria-live":"assertive"}})),p.createElement("div",Object.assign({},O),L),T?p.createElement("div",{className:"mb-4 flex items-center justify-center"},p.createElement(ls,null)):p.createElement(c0,{type:Me.Branches,localization:r,items:_,iconsList:g}),v&&p.createElement(Ri,{template:"primary",title:ye(r,"LoadMore"),type:"button",isLoading:y,onClick:x,dataTestId:"button-load-more-branches-detail"}))},F2="google-map",z3=({latitude:n,longitude:e,mapPinIcon:t})=>{const r={lat:n,lng:e},a={zoom:16,center:r,mapTypeId:"roadmap",disableDefaultUI:!0,styles:[{featureType:"poi",stylers:[{visibility:"off"}]}]},s=()=>{const c=new google.maps.Map(document.getElementById(F2),a);new google.maps.Marker({position:r,map:c,icon:t})};return(0,p.useEffect)(()=>{s()},[]),p.createElement("div",{id:F2,className:"h-[607px] w-[100%] rounded-[12px]","data-testid":"google-map"})},F3=({api:n,query:e,pagination:t,localization:r,cultureCode:i,baseUrl:a,pageSize:s,pageSizeDetail:c,hasGeolocation:u,latitude:f,longitude:h,iconsList:g})=>{const{hasNextItems:v,isLoadingMore:y,items:_,loadNewItemsOnDetailPage:w,loadMoreItemsOnDetailPage:x,hasError:S,isLoading:T,query:M}=Da({api:n,defaultQuery:e,formElement:document.querySelector(`.${Pe}`),formInputName:"query",defaultItems:[],defaultPagination:t,cultureCode:i,fetchBodyData:{baseUrl:a},hasSearchCoordinates:!0,pageSize:s,pageSizeDetail:c,hasGeolocation:u,latitude:f,longitude:h}),C=_?.length===0&&M,{getItemIndexProps:k}=Bd({totalItems:_.length,isLoadingMore:y}),{announcement:L,liveRegionProps:O}=Hd({itemCount:_.length,isLoadingMore:y,localization:r,itemType:"atms"});return(0,p.useEffect)(()=>{w()},[]),p.createElement("div",null,S&&p.createElement("div",{className:"mb-8"},p.createElement(qn,{type:Ce.Error,text:ye(r,"Branches_ErrorMessage"),textAttributes:{role:"alert","aria-live":"assertive"}})),C&&p.createElement("div",{className:"mb-8"},p.createElement(qn,{type:Ce.Error,text:ye(r,"Branches_SearchNoResults"),textAttributes:{role:"alert","aria-live":"assertive"}})),p.createElement("div",Object.assign({},O),L),T?p.createElement("div",{className:"mb-4 flex items-center justify-center"},p.createElement(ls,null)):p.createElement(c0,{type:Me.Atms,localization:r,items:_,iconsList:g}),v&&p.createElement(Ri,{template:"primary",title:ye(r,"LoadMore"),type:"button",isLoading:y,onClick:x,dataTestId:"button-load-more-atms-detail"}))}
313,V3=({localization:n,iconsList:e,onChange:t})=>{const[r,i]=(0,p.useState)(Te.Cash),a=u=>{t(u),i(u)},{cash:s,wire:c}=e;return p.createElement("div",{className:"tabs-exchange-rates"},p.createElement("button",{type:"button","data-testid":`tab-${Te.Cash}`,className:`tabs-exchange-rates__button mr-2 ${r===Te.Cash?"is-active":""}`,onClick:()=>a(Te.Cash)},p.createElement(un,{name:s.name,viewBox:s.viewbox,alt:s.alt,svg:s.svg,className:"mr-1 inline h-6 w-6 shrink-0 fill-red-corporate"}),ye(n,"ExchangeCash")),p.createElement("button",{type:"button","data-testid":`tab-${Te.Wire}`,className:`tabs-exchange-rates__button ${r===Te.Wire?"is-active":""}`,onClick:()=>a(Te.Wire)},p.createElement(un,{name:c.name,viewBox:c.viewbox,alt:c.alt,svg:c.svg,className:"mr-1 inline h-6 w-6 shrink-0 fill-red-corporate"}),ye(n,"ExchangeWire")))},Y3=({type:n,localization:e})=>p.createElement("div",{className:"exchange-rates-hint"},p.createElement("span",{className:"font-bold"},ye(e,n===Te.Cash?"ExchangeCash":"ExchangeWire"))," ","\xA0-"," ",p.createElement("span",{dangerouslySetInnerHTML:{__html:ye(e,n===Te.Cash?"ExchangeCash_Note":"ExchangeWire_Note")}})),j3=({items:n,localization:e,type:t,iconsList:r,baseUrl:i,queryDateValueString:a})=>{if(!n)return null;const{arrowRight:s}=r;return p.createElement(p.Fragment,null,p.createElement(Y3,{type:t,localization:e}),p.createElement("div",{className:"table-exrate","data-id":t,"data-testid":`rates-table-${t}`},p.createElement("div",{className:"table-exrate-header"},p.createElement("div",{className:"table-exrate-row"},p.createElement("div",{className:"table-exrate-cell table-exrate-cell--header table-exrate-cell--empty-country-name"}),p.createElement("div",{className:"table-exrate-cell table-exrate-cell--header"},ye(e,"Currency")),p.createElement("div",{className:"table-exrate-cell table-exrate-cell--header"},ye(e,"Buy")),p.createElement("div",{className:"table-exrate-cell table-exrate-cell--header"},ye(e,"Sell")),p.createElement("div",{className:"table-exrate-cell table-exrate-cell--header"},ye(e,"CnbMiddle")),p.createElement("div",{className:"table-exrate-cell table-exrate-cell--header table-exrate-cell--empty-icon"}))),p.createElement("div",{className:"table-exrate__body"},n.map(c=>{const u=`${i}${c.detailUrl}&date=${a}`;return p.createElement("a",{href:u,className:"table-exrate-link","data-testid":"rates-table-link",key:c.id,title:c.title},p.createElement("div",{className:"table-exrate-row"},p.createElement("div",{className:"table-exrate-cell table-exrate-country-name"},p.createElement("div",null,p.createElement(uo,{name:c.icon,altText:ye(e,"FlagLabel"),className:"mr-4 inline h-8 w-8 sm:mx-4"}),p.createElement("span",{className:"group-hover:text-red-corporate group-hover:underline sm:font-semibold"},c.title)),p.createElement("div",{className:"table-exrate-icon-arrow-mobile"},p.createElement(un,{name:s.name,viewBox:s.viewbox,alt:s.alt,svg:s.svg,className:"inline h-8 w-8 fill-red-corporate"}))),p.createElement("div",{className:"table-exrate-cell","data-title":ye(e,"Currency")},c.currencyUnit," ",c.curencyIso),p.createElement("div",{className:"table-exrate-cell","data-title":ye(e,"Buy")},t===Te.Cash?c.cashBuyStr:c.nonCashBuyStr),p.createElement("div",{className:"table-exrate-cell","data-title":ye(e,"Sell")},t===Te.Cash?c.cashSellStr:c.nonCashSellStr),p.createElement("div",{className:"table-exrate-cell penultimate","data-title":ye(e,"CnbMiddle")},c.middleCNBStr),p.createElement("div",{className:"table-exrate-cell table-exrate-icon-arrow-table"},p.createElement(un,{name:s.name,viewBox:s.viewbox,alt:s.alt,svg:s.svg,className:"inline h-8 w-8 fill-red-corporate"}))))}))))},W3=(0,p.memo)(j3),U3=({exchangeRatesECBDifference:n,inputDate:e,iconsList:t})=>{if(!n.isVisible)return null;const{arrowRight:r}=t;return p.createElement("div",{className:"mb-12"},p.createElement("p",{className:"mb-6 text-2xl"},n.title),p.createElement("p",{className:"mb-6",dangerouslySetInnerHTML:{__html:n.intro}}),p.createElement("span",{className:"cursor-pointer text-red-corporate hover:underline"},p.createElement("a",{href:`${n.link.href}${e}`,target:n.link.target,"data-testid":"rates-ecb-link"},n.link.innerHtml),p.createElement(un,{name:r.name,viewBox:r.viewbox,alt:r.alt,svg:r.svg,className:"inline h-6 w-6 fill-red-corporate"})))},V2="exchange-rates-form",d0="date-picker",f0="time-select",q3=({children:n})=>p.createElement("div",{className:"container"},p.createElement("div",{className:"row"},p.createElement("div",{className:"container mb-12 shadow-tab sm:shadow-none"},p.createElement("div",{className:"row -mx-8 sm:-mx-4"},p.createElement("div",{className:"px-0 sm:px-4"},p.createElement("div",{className:"bg-light p-8 sm:rounded sm:px-10 sm:py-12 sm:shadow-tab md:px-16"},p.createElement("div",{className:"shrink-0 grow-0 basis-auto"},n))))))),$3=({api:n,cultureCode:e,localization:t,dateDll:r,timeDll:i,isQueryDate:a,items:s,downloads:c,exchangeRatesECBDifference:u,iconsList:f,baseUrl:h,queryD
313ate:g})=>{const{calendar:v}=f,[y,_]=(0,p.useState)(g),[w,x]=(0,p.useState)(Te.Cash),[S,T]=(0,p.useState)(!1),[M,C]=(0,p.useState)(s),[k,L]=(0,p.useState)(r),[O,I]=(0,p.useState)(a),[P,B]=(0,p.useState)("releaseTimeNoRecord"),[H,F]=(0,p.useState)(i),[,$]=(0,p.useState)(i[i.length-1].value),V=pe=>{const Ie=`${pe}`;st({settings:{method:"POST",url:n,body:JSON.stringify({date:Ie,cultureCode:e})}}).then(Ke=>{if(Ke.payload.data.length>0)T(!1),C(Ke.payload.data),L(Ke.payload.dateDll),F(Ke.payload.timeDll),I(Ke.payload.isQueryDate),B(Ke.payload.localization.releaseTimeNoRecord),_(Ke.payload.queryDate);else throw T(!0),new Error("Payload 'fetchDate' not loaded!")}).catch(Ke=>{T(!0)})},W=(pe,Ie)=>{const Ke=`${pe}+${Ie}`;st({settings:{method:"POST",url:n,body:JSON.stringify({date:Ke,cultureCode:e})}}).then(nt=>{if(nt.payload.data.length>0)T(!1),C(nt.payload.data),L(nt.payload.dateDll),F(nt.payload.timeDll),I(nt.payload.isQueryDate),B(nt.payload.localization.releaseTimeNoRecord),_(nt.payload.queryDate);else throw T(!0),new Error("Payload 'fetchDateTime' not loaded!")}).catch(nt=>{T(!0)})},ee=pe=>{L(pe),V(pe),window.history.replaceState(null,"",`?date=${pe}`)},q=pe=>{$(pe),W(k,pe),window.history.replaceState(null,"",`?date=${k}%20${pe}`)},Y=!O,ae=()=>Y?"border-red-corporate":"border-grey-30",ue=()=>Y?"mb-0":"mb-6 sm:mb-0",We=10,be=new Date().getFullYear(),_e=be-We,je=`0${new Date().getMonth()+1}`.slice(-2),ht=`0${new Date().getDate().toString()}`.slice(-2),Ge=`${_e}-01-01`,Re=`${be}-${je}-${ht}`,Ze=()=>p.createElement("div",null,S?p.createElement(qn,{type:Ce.Error,text:ye(t,"TableError"),textAttributes:{role:"alert","aria-live":"assertive"},className:"mb-12"}):p.createElement(W3,{items:M,localization:t,type:w,iconsList:f,baseUrl:h,queryD
313ateValueString:y}));return p.createElement(p.Fragment,null,p.createElement(q3,null,p.createElement("form",{id:V2,"data-testid":V2,method:"POST",noValidate:!0},p.createElement("div",{className:"flex w-full flex-col sm:flex-row"},p.createElement("div",{className:"sm:mr-8 sm:w-1/2"},p.createElement("label",{htmlFor:d0,className:"text-[12px]"},ye(t,"releaseDay"),p.createElement("div",{className:"relative"},p.createElement("input",{id:d0,name:d0,"data-testid":d0,type:"date",className:`exchange-rates-date-picker ${ae()} ${ue()}`,value:k,min:Ge,max:Re,onChange:pe=>{ee(pe.target.value)}}),p.createElement("div",{className:"pointer-events-none absolute right-[3px] top-[8px] w-[32px] bg-white"},p.createElement(un,{name:v.name,viewBox:v.viewbox,alt:v.alt,svg:v.svg,className:"inline h-[21.5px] w-[19.5px] bg-white fill-red-corporate"})))),Y&&p.createElement("div",{className:"mb-6 text-xs text-red-corporate sm:mb-0"},ye(t,P))),p.createElement("div",{className:"sm:w-1/2"},p.createElement("label",{htmlFor:f0,className:"text-[12px]"},ye(t,"releaseTime"),p.createElement("select",{id:f0,name:f0,"data-testid":f0,className:"exchange-rates-time-select",onChange:pe=>{q(pe.target.value)}},H.map((pe,Ie)=>p.createElement("option",{value:pe.value,key:Ie,selected:pe.isSelected},pe.text)))))))),p.createElement("div",{className:"container"},p.createElement("div",{className:"row"},p.createElement("div",{className:"sm:col-22 sm:offset-1"},p.createElement(V3,{localization:t,iconsList:f,onChange:x}),Ze()))),p.createElement("div",{className:"container"},p.createElement("div",{className:"row"},p.createElement("div",{className:"sm:col-14 sm:offset-1"},p.createElement(Ic,{isVisible:c.isVisible,title:c.title,links:c.links,iconsList:f,apiUrl:c.apiUrl,cultureCode:e,fromDate:y}
313),p.createElement(U3,{exchangeRatesECBDifference:u,inputDate:k,iconsList:f})))))},G3=({items:n,localization:e,type:t})=>{if(!n)return null;const r=i=>i>0?p.createElement("span",{style:{fill:"#267C29"}},p.createElement("svg",{width:"10",height:"10",viewBox:"0 0 9 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},p.createElement("path",{d:"M8.63166 7.54545L0.449841 7.54545L4.54075 0.590909L8.63166 7.54545Z",fill:"#267C29"}))):i<0?p.createElement("span",{style:{fill:"#E00000"}},p.createElement("svg",{width:"10",height:"10",viewBox:"0 0 9 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},p.createElement("path",{d:"M0.368342 0.454545H8.55016L4.45925 7.40909L0.368342 0.454545Z",fill:"#E00000"}))):p.createElement("span",{style:{fill:"#E26E52"}},p.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"10",height:"10",viewBox:"0 0 7 10",fill:"none"},p.createElement("path",{d:"M0 9.09082L-3.57639e-07 0.909001L6.95455 4.99991L0 9.09082Z",fill:"#E26E52"})));return p.createElement("div",{className:"table-exrate","data-id":t,"data-testid":`rates-table-${t}`},p.createElement("div",{className:"table-exrate-header"},p.createElement("div",{className:"table-exrate-row mb-0"},p.createElement("div",{className:"table-exrate-cell table-exrate-cell--header table-exrate-cell--empty-country-name"}),p.createElement("div",{className:"table-exrate-cell table-exrate-cell--header"},ye(e,"Currency")),p.createElement("div",{className:"table-exrate-cell table-exrate-cell--header"},ye(e,"Buy")),p.createElement("div",{className:"table-exrate-cell table-exrate-cell--header"},ye(e,"Sell")),p.createElement("div",{className:"table-exrate-cell table-exrate-cell--header"},ye(e,"CnbMiddle")))),p.createElement("div",{className:"table-exrate__body"},n.map(i=>p.createElement("div",{className:"table-exrate-row table-exrate-row-sk sm:!mb-0"},p.createElement("div",{className:"table-exrate-cell table-exrate-country-name"},p.createElement("div",null,p.createElement(uo,{name:i.icon,className:"mr-4 inline h-8 w-8 sm:mx-4"}),p.createElement("span",{className:"font-semibold"},i.title)),p.createElement("div",{className:"table-exrate-icon-arrow-mobile flex items-center mr-[7px]"},r(i.trend))),p.createElement("div",{className:"table-exrate-cell","data-title":ye(e,"Currency")},i.currencyUnit," ",i.curencyIso),p.createElement("div",{className:"table-exrate-cell","data-title":ye(e,"Buy")},t===Te.Cash?i.cashBuyStr:i.nonCashBuyStr),p.createElement("div",{className:"table-exrate-cell","data-title":ye(e,"Sell")},t===Te.Cash?i.cashSellStr:i.nonCashSellStr),p.createElement("div",{className:"table-exrate-cell penultimate","data-title":ye(e,"CnbMiddle")},i.middleCNBStr)))))},Z3=(0,p.memo)(G3),X3=({exchangeRatesECBDifference:n,inputDate:e,iconsList:t})=>{if(!n.isVisible)return null;const{arrowRight:r}=t;return p.createElement("div",{className:"mb-12"},p.createElement("p",{className:"mb-6 text-2xl"},n.title),p.createElement("p",{className:"mb-6",dangerouslySetInnerHTML:{__html:n.intro}}),p.createElement("span",{className:"cursor-pointer text-red-corporate hover:underline"},p.createElement("a",{href:`${n.link.href}${e}`,target:n.link.target,"data-testid":"rates-ecb-link"},n.link.innerHtml),p.createElement(un,{name:r.name,viewBox:r.viewbox,alt:r.alt,svg:r.svg,className:"inline h-6 w-6 fill-red-corporate"})))},Y2="exchange-rates-form",h0="date-picker",p0="time-select",Q3=({children:n})=>p.createElement("div",{className:"container"},p.createElement("div",{className:"row"},p.createElement("div",{className:"container mb-12 shadow-tab sm:shadow-none"},p.createElement("div",{className:"row -mx-8 sm:-mx-4"},p.createElement("div",{className:"px-0 sm:px-4"},p.createElement("div",{className:"bg-light p-8 sm:rounded sm:px-10 sm:py-12 sm:shadow-tab md:px-16"},p.createElement("div",{className:"shrink-0 grow-0 basis-auto"},n))))))),K3=({api:n,cultureCode:e,localization:t,dateDll:r,timeDll:i,isQueryDate:a,items:s,downloads:c,exchangeRatesECBDifference:u,iconsList:f,queryDate:h,isSK:g})=>{const{calendar:v}=f,[y,_]=(0,p.useState)(h),[w]=(0,p.useState)(Te.Wire),[x,S]=(0,p.useState)(!1),[T,M]=(0,p.useState)(s),[C,k]=(0,p.useState)(r),[L,O]=(0,p.useState)(a),[I,P]=(0,p.useState)("releaseTimeNoRecord"),[B,H]=(0,p.useState)(i),[,F]=(0,p.useState)(i[i.length-1].value),$=Re=>{const Ze=`${Re}`;st({settings:{method:"POST",url:n,body:JSON.stringify({date:Ze,cultureCode:e,isSK:!0})}}).then(pe=>{if(pe.payload.data.length>
3130)S(!1),M(pe.payload.data),k(pe.payload.dateDll),H(pe.payload.timeDll),O(pe.payload.isQueryDate),P(pe.payload.localization.releaseTimeNoRecord),_(pe.payload.queryDate);else throw S(!0),new Error("Payload 'fetchDate' not loaded!")}).catch(pe=>{S(!0)})},V=(Re,Ze)=>{const pe=`${Re}+${Ze}`;st({settings:{method:"POST",url:n,body:JSON.stringify({date:pe,cultureCode:e,isSK:!0})}}).then(Ie=>{if(Ie.payload.data.length>0)S(!1),M(Ie.payload.data),k(Ie.payload.dateDll),H(Ie.payload.timeDll),O(Ie.payload.isQueryDate),P(Ie.payload.localization.releaseTimeNoRecord),_(Ie.payload.queryDate);else throw S(!0),new Error("Payload 'fetchDateTime' not loaded!")}).catch(Ie=>{S(!0)})},W=Re=>{k(Re),$(Re),window.history.replaceState(null,"",`?date=${Re}`)},ee=Re=>{F(Re),V(C,Re),window.history.replaceState(null,"",`?date=${C}%20${Re}`)},q=!L,Y=()=>q?"border-red-corporate":"border-grey-30",ae=()=>q?"mb-0":"mb-6 sm:mb-0",ue=10,We=new Date().getFullYear(),be=We-ue,qe=`0${new Date().getMonth()+1}`.slice(-2),ct=`0${new Date().getDate().toString()}`.slice(-2),ht=`${be}-01-01`,Ge=`${We}-${qe}-${ct}`;return p.createElement(p.Fragment,null,p.createElement(Q3,null,p.createElement("form",{id:Y2,"data-testid":Y2,method:"POST",noValidate:!0},p.createElement("div",{className:"flex w-full flex-col sm:flex-row"},p.createElement("div",{className:"sm:mr-8 sm:w-1/2"},p.createElement("label",{htmlFor:h0,className:"text-[12px]"},ye(t,"releaseDay"),p.createElement("div",{className:"relative"},p.createElement("input",{id:h0,name:h0,"data-testid":h0,type:"date",className:`exchange-rates-date-picker ${Y()} ${ae()}`,value:C,min:ht,max:Ge,onChange:Re=>{W(Re.target.value)}}),p.createElement("div",{className:"pointer-events-none absolute right-[3px] top-[8px] w-[32px] bg-white"},p.createElement(un,{name:v.name,viewBox:v.viewbox,alt:v.alt,svg:v.svg,className:"inline h-[21.5px] w-[19.5px] bg-white fill-red-corporate"})))),q&&p.createElement("div",{className:"mb-6 text-xs text-red-corporate sm:mb-0"},ye(t,I))),p.createElement("div",{className:"sm:w-1/2"},p.createElement("label",{htmlFor:p0,className:"text-[12px]"},ye(t,"releaseTime"),p.createElement("select",{id:p0,name:p0,"data-testid":p0,className:"exchange-rates-time-select",onChange:Re=>{ee(Re.target.value)}},B.map((Re,Ze)=>p.createElement("option",{value:Re.value,key:Ze,selected:Re.isSelected},Re.text)))))))),p.createElement("div",{className:"container"},p.createElement("div",{className:"row"},p.createElement("div",{className:"sm:col-22 sm:offset-1"},p.createElement("div",null,x?p.createElement(qn,{type:Ce.Error,text:ye(t,"TableError"),textAttributes:{role:"alert","aria-live":"assertive"},className:"mb-12"}):p.createElement(Z3,{items:T,localization:t,type:w}))))),p.createElement("div",{className:"container"},p.createElement("div",{className:"row"},p.createElement("div",{className:"sm:col-14 sm:offset-1"},p.createElement(Ic,{isVisible:c.isVisible,title:c.title,links:c.links,iconsList:f,apiUrl:c.apiUrl,cultureCode:e,fromDate:y,isSK:g}),p.createElement(X3,{exchangeRatesECBDifference:u,inputDate:C,iconsList:f})))))};/*!
314 * @kurkle/color v0.3.2
315 * https://github.com/kurkle/color#readme
316 * (c) 2023 Jukka Kurkela
317 * Released under the MIT License
318 */function Zd(n){return n+.5|0}const po=(n,e,t)=>Math.max(Math.min(n,t),e);function jp(n){return po(Zd(n*2.55),0,255)}function bz(n){return po(Zd(n/2.55),0,100)}function yl(n){return po(Zd(n*255),0,255)}function mo(n){return po(Zd(n/2.55)/100,0,1)}function j2(n){return po(Zd(n*100),0,100)}const na={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},u_=[..."0123456789ABCDEF"],J3=n=>u_[n&15],ek=n=>u_[(n&240)>>4]+u_[n&15],m0=n=>(n&240)>>4===(n&15),tk=n=>m0(n.r)&&m0(n.g)&&m0(n.b)&&m0(n.a);function nk(n){var e=n.length,t;return n[0]==="#"&&(e===4||e===5?t={r:255&na[n[1]]*17,g:255&na[n[2]]*17,b:255&na[n[3]]*17,a:e===5?na[n[4]]*17:255}:(e===7||e===9)&&(t={r:na[n[1]]<<4|na[n[2]],g:na[n[3]]<<4|na[n[4]],b:na[n[5]]<<4|na[n[6]],a:e===9?na[n[7]]<<4|na[n[8]]:255})),t}const rk=(n,e)=>n<255?e(n):"";function ik(n){var e=tk(n)?J3:ek;return n?"#"+e(n.r)+e(n.g)+e(n.b)+rk(n.a,e):void 0}const ak=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function W2(n,e,t){const r=e*Math.min(t,1-t),i=(a,s=(a+n/30)%12)=>t-r*Math.max(Math.min(s-3,9-s,1),-1);return[i(0),i(8),i(4)]}function sk(n,e,t){const r=(i,a=(i+n/60)%6)=>t-t*e*Math.max(Math.min(a,4-a,1),0);return[r(5),r(3),r(1)]}function ok(n,e,t){const r=W2(n,1,.5);let i;for(e+t>1&&(i=1/(e+t),e*=i,t*=i),i=0;i<3;i++)r[i]*=1-e-t,r[i]+=e;return r}function lk(n,e,t,r,i){return n===i?(e-t)/r+(e<t?6:0):e===i?(t-n)/r+2:(n-e)/r+4}function d_(n){const t=n.r/255,r=n.g/255,i=n.b/255,a=Math.max(t,r,i),s=Math.min(t,r,i),c=(a+s)/2;let u,f,h;return a!==s&&(h=a-s,f=c>.5?h/(2-a-s):h/(a+s),u=lk(t,r,i,h,a),u=u*60+.5),[u|0,f||0,c]}function f_(n,e,t,r){return(Array.isArray(e)?n(e[0],e[1],e[2]):n(e,t,r)).map(yl)}function h_(n,e,t){return f_(W2,n,e,t)}function ck(n,e,t){return f_(ok,n,e,t)}function uk(n,e,t){return f_(sk,n,e,t)}function U2(n){return(n%360+360)%360}function dk(n){const e=ak.exec(n);let t=255,r;if(!e)return;e[5]!==r&&(t=e[6]?jp(+e[5]):yl(+e[5]));const i=U2(+e[2]),a=+e[3]/100,s=+e[4]/100;return e[1]==="hwb"?r=ck(i,a,s):e[1]==="hsv"?r=uk(i,a,s):r=h_(i,a,s),{r:r[0],g:r[1],b:r[2],a:t}}function fk(n,e){var t=d_(n);t[0]=U2(t[0]+e),t=h_(t),n.r=t[0],n.g=t[1],n.b=t[2]}function hk(n){if(!n)return;const e=d_(n),t=e[0],r=j2(e[1]),i=j2(e[2]);return n.a<255?`hsla(${t}, ${r}%, ${i}%, ${mo(n.a)})`:`hsl(${t}, ${r}%, ${i}%)`}const q2={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},$2={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",K
318ocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function pk(){const n={},e=Object.keys($2),t=Object.keys(q2);let r,i,a,s,c;for(r=0;r<e.length;r++){for(s=c=e[r],i=0;i<t.length;i++)a=t[i],c=c.replace(a,q2[a]);a=parseInt($2[s],16),n[c]=[a>>16&255,a>>8&255,a&255]}return n}let g0;function mk(n){g0||(g0=pk(),g0.transparent=[0,0,0,0]);const e=g0[n.toLowerCase()];return e&&{r:e[0],g:e[1],b:e[2],a:e.length===4?e[3]:255}}const gk=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function vk(n){const e=gk.exec(n);let t=255,r,i,a;if(e){if(e[7]!==r){const s=+e[7];t=e[8]?jp(s):po(s*255,0,255)}return r=+e[1],i=+e[3],a=+e[5],r=255&(e[2]?jp(r):po(r,0,255)),i=255&(e[4]?jp(i):po(i,0,255)),a=255&(e[6]?jp(a):po(a,0,255)),{r,g:i,b:a,a:t}}}function yk(n){return n&&(n.a<255?`rgba(${n.r}, ${n.g}, ${n.b}, ${mo(n.a)})`:`rgb(${n.r}, ${n.g}, ${n.b})`)}const p_=n=>n<=.0031308?n*12.92:Math.pow(n,1/2.4)*1.055-.055,Xd=n=>n<=.04045?n/12.92:Math.pow((n+.055)/1.055,2.4);function bk(n,e,t){const r=Xd(mo(n.r)),i=Xd(mo(n.g)),a=Xd(mo(n.b));return{r:yl(p_(r+t*(Xd(mo(e.r))-r))),g:yl(p_(i+t*(Xd(mo(e.g))-i))),b:yl(p_(a+t*(Xd(mo(e.b))-a))),a:n.a+t*(e.a-n.a)}}function v0(n,e,t){if(n){let r=d_(n);r[e]=Math.max(0,Math.min(r[e]+r[e]*t,e===0?360:1)),r=h_(r),n.r=r[0],n.g=r[1],n.b=r[2]}}function G2(n,e){return n&&Object.assign(e||{},n)}function Z2(n){var e={r:0,g:0,b:0,a:255};return Array.isArray(n)?n.length>=3&&(e={r:n[0],g:n[1],b:n[2],a:255},n.length>3&&(e.a=yl(n[3]))):(e=G2(n,{r:0,g:0,b:0,a:1}),e.a=yl(e.a)),e}function _k(n){return n.charAt(0)==="r"?vk(n):dk(n)}class Qd{constructor(e){if(e instanceof Qd)return e;const t=typeof e;let r;t==="object"?r=Z2(e):t==="string"&&(r=nk(e)||mk(e)||_k(e)),this._rgb=r,this._valid=!!r}get valid(){return this._valid}get rgb(){var e=G2(this._rgb);return e&&(e.a=mo(e.a)),e}set rgb(e){this._rgb=Z2(e)}rgbString(){return this._valid?yk(this._rgb):void 0}hexString(){return this._valid?ik(this._rgb):void 0}hslString(){return this._valid?hk(this._rgb):void 0}mix(e,t){if(e){const r=this.rgb,i=e.rgb;let a;const s=t===a?.5:t,c=2*s-1,u=r.a-i.a,f=((c*u===-1?c:(c+u)/(1+c*u))+1)/2;a=1-f,r.r=255&f*r.r+a*i.r+.5,r.g=255&f*r.g+a*i.g+.5,r.b=255&f*r.b+a*i.b+.5,r.a=s*r.a+(1-s)*i.a,this.rgb=r}return this}interpolate(e,t){return e&&(this._rgb=bk(this._rgb,e._rgb,t)),this}clone(){return new Qd(this.rgb)}alpha(e){return this._rgb.a=yl(e),this}clearer(e){const t=this._rgb;return t.a*=1-e,this}greyscale(){const e=this._rgb,t=Zd(e.r*.3+e.g*.59+e.b*.11);return e.r=e.g=e.b=t,this}opaquer(e){const t=this._rgb;return t.a*=1+e,this}negate(){const e=this._rgb;return e.r=255-e.r,e.g=255-e.g,e.b=255-e.b,this}lighten(e){return v0(this._rgb,2,e),this}darken(e){return v0(this._rgb,2,-e),this}saturate(e){return v0(this._rgb,1,e),this}desaturate(e){return v0(this._rgb,1,-e),this}rotate(e){return fk(this._rgb,e),this}}function _z(n){return new Qd(n)}/*!
319 * Chart.js v4.3.0
320 * https://www.chartjs.org
321 * (c) 2023 Chart.js Contributors
322 * Released under the MIT License
323 */function go(){}const wk=(()=>{let n=0;return()=>n++})();function tn(n){return n===null||typeof n>"u"}
323function Pn(n){if(Array.isArray&&Array.isArray(n))return!0;const e=Object.prototype.toString.call(n);return e.slice(0,7)==="[object"&&e.slice(-6)==="Array]"}function qt(n){return n!==null&&Object.prototype.toString.call(n)==="[object Object]"}function er(n){return(typeof n=="number"||n instanceof Number)&&isFinite(+n)}function Hi(n,e){return er(n)?n:e}function Rt(n,e){return typeof n>"u"?e:n}const Ek=(n,e)=>typeof n=="string"&&n.endsWith("%")?parseFloat(n)/100:+n/e,X2=(n,e)=>typeof n=="string"&&n.endsWith("%")?parseFloat(n)/100*e:+n;function Rn(n,e,t){if(n&&typeof n.call=="function")return n.apply(t,e)}function yn(n,e,t,r){let i,a,s;if(Pn(n))if(a=n.length,r)for(i=a-1;i>=0;i--)e.call(t,n[i],i);else for(i=0;i<a;i++)e.call(t,n[i],i);else if(qt(n))for(s=Object.keys(n),a=s.length,i=0;i<a;i++)e.call(t,n[s[i]],s[i])}function y0(n,e){let t,r,i,a;if(!n||!e||n.length!==e.length)return!1;for(t=0,r=n.length;t<r;++t)if(i=n[t],a=e[t],i.datasetIndex!==a.datasetIndex||i.index!==a.index)return!1;return!0}function b0(n){if(Pn(n))return n.map(b0);if(qt(n)){const e=Object.create(null),t=Object.keys(n),r=t.length;let i=0;for(;i<r;++i)e[t[i]]=b0(n[t[i]]);return e}return n}function Q2(n){return["__proto__","prototype","constructor"].indexOf(n)===-1}function xk(n,e,t,r){if(!Q2(n))return;const i=e[n],a=t[n];qt(i)&&qt(a)?Wp(i,a,r):e[n]=b0(a)}function Wp(n,e,t){const r=Pn(e)?e:[e],i=r.length;if(!qt(n))return n;t=t||{};const a=t.merger||xk;let s;for(let c=0;c<i;++c){if(s=r[c],!qt(s))continue;const u=Object.keys(s);for(let f=0,h=u.length;f<h;++f)a(u[f],n,s,t)}return n}function Up(n,e){return Wp(n,e,{merger:Sk})}function Sk(n,e,t){if(!Q2(n))return;const r=e[n],i=t[n];qt(r)&&qt(i)?Up(r,i):Object.prototype.hasOwnProperty.call(e,n)||(e[n]=b0(i))}function wz(n,e,t,r){e!==void 0&&console.warn(n+': "'+t+'" is deprecated. Please use "'+r+'" instead')}const K2={"":n=>n,x:n=>n.x,y:n=>n.y};function Ck(n){const e=n.split("."),t=[];let r="";for(const i of e)r+=i,r.endsWith("\\")?r=r.slice(0,-1)+".":(t.push(r),r="");return t}function Tk(n){const e=Ck(n);return t=>{for(const r of e){if(r==="")break;t=t&&t[r]}return t}}function bl(n,e){return(K2[e]||(K2[e]=Tk(e)))(n)}function m_(n){return n.charAt(0).toUpperCase()+n.slice(1)}const qp=n=>typeof n<"u",_l=n=>typeof n=="function",J2=(n,e)=>{if(n.size!==e.size)return!1;for(const t of n)if(!e.has(t))return!1;return!0};function Mk(n){return n.type==="mouseup"||n.type==="click"||n.type==="contextmenu"}const Yn=Math.PI,Bn=2*Yn,Dk=Bn+Yn,_0=Number.POSITIVE_INFINITY,Ok=Yn/180,tr=Yn/2,Gc=Yn/4,ex=Yn*2/3,wl=Math.log10,hs=Math.sign;function $p(n,e,t){return Math.abs(n-e)<t}function tx(n){const e=Math.round(n);n=$p(n,e,n/1e3)?e:n;const t=Math.pow(10,Math.floor(wl(n))),r=n/t;return(r<=1?1:r<=2?2:r<=5?5:10)*t}function kk(n){const e=[],t=Math.sqrt(n);let r;for(r=1;r<t;r++)n%r===0&&(e.push(r),e.push(n/r));return t===(t|0)&&e.push(t),e.sort((i,a)=>i-a).pop(),e}function Kd(n){return!isNaN(parseFloat(n))&&isFinite(n)}function Lk(n,e){const t=Math.round(n);return t-e<=n&&t+e>=n}function nx(n,e,t){let r,i,a;for(r=0,i=n.length;r<i;r++)a=n[r][t],isNaN(a)||(e.min=Math.min(e.min,a),e.max=Math.max(e.max,a))}function ka(n){return n*(Yn/180)}function g_(n){return n*(180/Yn)}function rx(n){if(!er(n))return;let e=1,t=0;for(;Math.round(n*e)/e!==n;)e*=10,t++;return t}function ix(n,e){const t=e.x-n.x,r=e.y-n.y,i=Math.sqrt(t*t+r*r);let a=Math.atan2(r,t);return a<-.5*Yn&&(a+=Bn),{angle:a,distance:i}}function v_(n,e){return Math.sqrt(Math.pow(e.x-n.x,2)+Math.pow(e.y-n.y,2))}function Ak(n,e){return(n-e+Dk)%Bn-Yn}function zi(n){return(n%Bn+Bn)%Bn}function Gp(n,e,t,r){const i=zi(n),a=zi(e),s=zi(t),c=zi(a-i),u=zi(s-i),f=zi(i-a),h=zi(i-s);return i===a||i===s||r&&a===s||c>u&&f<h}function kr(n,e,t){return Math.max(e,Math.min(t,n))}function Rk(n){return kr(n,-32768,32767)}function vo(n,e,t,r=1e-6){return n>=Math.min(e,t)-r&&n<=Math.max(e,t)+r}function y_(n,e,t){t=t||(s=>n[s]<e);let r=n.length-1,i=0,a;for(;r-i>1;)a=i+r>>1,t(a)?i=a:r=a;return{lo:i,hi:r}}const yo=(n,e,t,r)=>y_(n,t,r?i=>{const a=n[i][e];return a<t||a===t&&n[i+1][e]===t}:i=>n[i][e]<t),Ik=(n,e,t)=>y_(n,t,r=>n[r][e]>=t);function Nk(n,e,t){let r=0,i=n.length;for(;r<i&&n[r]<e;)r++;for(;i>r&&n[i-1]>t;)i--;return r>0||i<n.length?n.slice(r,i):n}const ax=["push","pop","shift","splice","unshift"];function Pk(n,e){if(n._chartjs){n._chartjs.listeners.push(e);return}Object.defineProperty(n,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[e]}}
323),ax.forEach(t=>{const r="_onData"+m_(t),i=n[t];Object.defineProperty(n,t,{configurable:!0,enumerable:!1,value(...a){const s=i.apply(this,a);return n._chartjs.listeners.forEach(c=>{typeof c[r]=="function"&&c[r](...a)}),s}})})}function sx(n,e){const t=n._chartjs;if(!t)return;const r=t.listeners,i=r.indexOf(e);i!==-1&&r.splice(i,1),!(r.length>0)&&(ax.forEach(a=>{delete n[a]}),delete n._chartjs)}function ox(n){const e=new Set(n);return e.size===n.length?n:Array.from(e)}function Ez(n,e,t){return e+" "+n+"px "+t}const lx=(function(){return typeof window>"u"?function(n){return n()}:window.requestAnimationFrame})();function cx(n,e){let t=[],r=!1;return function(...i){t=i,r||(r=!0,lx.call(window,()=>{r=!1,n.apply(e,t)}))}}function Bk(n,e){let t;return function(...r){return e?(clearTimeout(t),t=setTimeout(n,e,r)):n.apply(this,r),e}}const b_=n=>n==="start"?"left":n==="end"?"right":"center",Gr=(n,e,t)=>n==="start"?e:n==="end"?t:(e+t)/2,Hk=(n,e,t,r)=>n===(r?"left":"right")?t:n==="center"?(e+t)/2:e;function ux(n,e,t){const r=e.length;let i=0,a=r;if(n._sorted){const{iScale:s,_parsed:c}=n,u=s.axis,{min:f,max:h,minDefined:g,maxDefined:v}=s.getUserBounds();g&&(i=kr(Math.min(yo(c,s.axis,f).lo,t?r:yo(e,u,s.getPixelForValue(f)).lo),0,r-1)),v?a=kr(Math.max(yo(c,s.axis,h,!0).hi+1,t?0:yo(e,u,s.getPixelForValue(h),!0).hi+1),i,r)-i:a=r-i}return{start:i,count:a}}function dx(n){const{xScale:e,yScale:t,_scaleRanges:r}=n,i={xmin:e.min,xmax:e.max,ymin:t.min,ymax:t.max};if(!r)return n._scaleRanges=i,!0;const a=r.xmin!==e.min||r.xmax!==e.max||r.ymin!==t.min||r.ymax!==t.max;return Object.assign(r,i),a}const w0=n=>n===0||n===1,fx=(n,e,t)=>-(Math.pow(2,10*(n-=1))*Math.sin((n-e)*Bn/t)),hx=(n,e,t)=>Math.pow(2,-10*n)*Math.sin((n-e)*Bn/t)+1,Zp={linear:n=>n,easeInQuad:n=>n*n,easeOutQuad:n=>-n*(n-2),easeInOutQuad:n=>(n/=.5)<1?.5*n*n:-.5*(--n*(n-2)-1),easeInCubic:n=>n*n*n,easeOutCubic:n=>(n-=1)*n*n+1,easeInOutCubic:n=>(n/=.5)<1?.5*n*n*n:.5*((n-=2)*n*n+2),easeInQuart:n=>n*n*n*n,easeOutQuart:n=>-((n-=1)*n*n*n-1),easeInOutQuart:n=>(n/=.5)<1?.5*n*n*n*n:-.5*((n-=2)*n*n*n-2),easeInQuint:n=>n*n*n*n*n,easeOutQuint:n=>(n-=1)*n*n*n*n+1,easeInOutQuint:n=>(n/=.5)<1?.5*n*n*n*n*n:.5*((n-=2)*n*n*n*n+2),easeInSine:n=>-Math.cos(n*tr)+1,easeOutSine:n=>Math.sin(n*tr),easeInOutSine:n=>-.5*(Math.cos(Yn*n)-1),easeInExpo:n=>n===0?0:Math.pow(2,10*(n-1)),easeOutExpo:n=>n===1?1:-Math.pow(2,-10*n)+1,easeInOutExpo:n=>w0(n)?n:n<.5?.5*Math.pow(2,10*(n*2-1)):.5*(-Math.pow(2,-10*(n*2-1))+2),easeInCirc:n=>n>=1?n:-(Math.sqrt(1-n*n)-1),easeOutCirc:n=>Math.sqrt(1-(n-=1)*n),easeInOutCirc:n=>(n/=.5)<1?-.5*(Math.sqrt(1-n*n)-1):.5*(Math.sqrt(1-(n-=2)*n)+1),easeInElastic:n=>w0(n)?n:fx(n,.075,.3),easeOutElastic:n=>w0(n)?n:hx(n,.075,.3),easeInOutElastic(n){return w0(n)?n:n<.5?.5*fx(n*2,.1125,.45):.5+.5*hx(n*2-1,.1125,.45)},easeInBack(n){return n*n*((1.70158+1)*n-1.70158)},easeOutBack(n){return(n-=1)*n*((1.70158+1)*n+1.70158)+1},easeInOutBack(n){let e=1.70158;return(n/=.5)<1?.5*(n*n*(((e*=1.525)+1)*n-e)):.5*((n-=2)*n*(((e*=1.525)+1)*n+e)+2)},easeInBounce:n=>1-Zp.easeOutBounce(1-n),easeOutBounce(n){return n<1/2.75?7.5625*n*n:n<2/2.75?7.5625*(n-=1.5/2.75)*n+.75:n<2.5/2.75?7.5625*(n-=2.25/2.75)*n+.9375:7.5625*(n-=2.625/2.75)*n+.984375},easeInOutBounce:n=>n<.5?Zp.easeInBounce(n*2)*.5:Zp.easeOutBounce(n*2-1)*.5+.5};function __(n){if(n&&typeof n=="object"){const e=n.toString();return e==="[object CanvasPattern]"||e==="[object CanvasGradient]"}return!1}function px(n){return __(n)?n:new Qd(n)}function w_(n){return __(n)?n:new Qd(n).saturate(.5).darken(.1).hexString()}const zk=["x","y","borderWidth","radius","tension"],Fk=["color","borderColor","backgroundColor"];function Vk(n){n.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),n.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:e=>e!=="onProgress"&&e!=="onComplete"&&e!=="fn"}),n.set("animations",{colors:{type:"color",properties:Fk},numbers:{type:"number",properties:zk}}),n.describe("animations",{_fallback:"animation"}),n.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:e=>e|0}}}})}function Yk(n){n.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const mx=new Map;function jk(n,e){e=e||{};const t=n+JSON.stringify(e);let r=mx.get(t);return r||(r=new Intl.NumberFormat(n,e),mx.set(t,r)),r}function Xp(n,e,t){return jk(e,t).format(n)}const gx={values(n){return Pn(n)?n:""+n},numeric(n,e,t){if(n===0)return"0";const r=this.chart.options.locale;let i,a=n;if(t.length>1){const f=Math.max(Math.abs(t[0].value),Math.abs(t[t.length-1].value));(f<1e-4||f>1e15)&&(i="scientific"),a=Wk(n,t)}
323const s=wl(Math.abs(a)),c=isNaN(s)?1:Math.max(Math.min(-1*Math.floor(s),20),0),u={notation:i,minimumFractionDigits:c,maximumFractionDigits:c};return Object.assign(u,this.options.ticks.format),Xp(n,r,u)},logarithmic(n,e,t){if(n===0)return"0";const r=t[e].significand||n/Math.pow(10,Math.floor(wl(n)));return[1,2,3,5,10,15].includes(r)||e>.8*t.length?gx.numeric.call(this,n,e,t):""}};function Wk(n,e){let t=e.length>3?e[2].value-e[1].value:e[1].value-e[0].value;return Math.abs(t)>=1&&n!==Math.floor(n)&&(t=n-Math.floor(n)),t}var E0={formatters:gx};function Uk(n){n.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(e,t)=>t.lineWidth,tickColor:(e,t)=>t.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:E0.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),n.route("scale.ticks","color","","color"),n.route("scale.grid","color","","borderColor"),n.route("scale.border","color","","borderColor"),n.route("scale.title","color","","color"),n.describe("scale",{_fallback:!1,_scriptable:e=>!e.startsWith("before")&&!e.startsWith("after")&&e!=="callback"&&e!=="parser",_indexable:e=>e!=="borderDash"&&e!=="tickBorderDash"&&e!=="dash"}),n.describe("scales",{_fallback:"scale"}),n.describe("scale.ticks",{_scriptable:e=>e!=="backdropPadding"&&e!=="callback",_indexable:e=>e!=="backdropPadding"})}const Zc=Object.create(null),E_=Object.create(null);function Qp(n,e){if(!e)return n;const t=e.split(".");for(let r=0,i=t.length;r<i;++r){const a=t[r];n=n[a]||(n[a]=Object.create(null))}return n}function x_(n,e,t){return typeof e=="string"?Wp(Qp(n,e),t):Wp(Qp(n,""),e)}class qk{constructor(e,t){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=r=>r.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(r,i)=>w_(i.backgroundColor),this.hoverBorderColor=(r,i)=>w_(i.borderColor),this.hoverColor=(r,i)=>w_(i.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={}
vendor: 5,097 bytes, line 323
323,this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(e),this.apply(t)}set(e,t){return x_(this,e,t)}get(e){return Qp(this,e)}describe(e,t){return x_(E_,e,t)}override(e,t){return x_(Zc,e,t)}route(e,t,r,i){const a=Qp(this,e),s=Qp(this,r),c="_"+t;Object.defineProperties(a,{[c]:{value:a[t],writable:!0},[t]:{enumerable:!0,get(){const u=this[c],f=s[i];return qt(u)?Object.assign({},f,u):Rt(u,f)},set(u){this[c]=u}}})}apply(e){e.forEach(t=>t(this))}}var nr=new qk({_scriptable:n=>!n.startsWith("on"),_indexable:n=>n!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[Vk,Yk,Uk]);function $k(n){return!n||tn(n.size)||tn(n.family)?null:(n.style?n.style+" ":"")+(n.weight?n.weight+" ":"")+n.size+"px "+n.family}function x0(n,e,t,r,i){let a=e[i];return a||(a=e[i]=n.measureText(i).width,t.push(i)),a>r&&(r=a),r}function Gk(n,e,t,r){r=r||{};let i=r.data=r.data||{},a=r.garbageCollect=r.garbageCollect||[];r.font!==e&&(i=r.data={},a=r.garbageCollect=[],r.font=e),n.save(),n.font=e;let s=0;const c=t.length;let u,f,h,g,v;for(u=0;u<c;u++)if(g=t[u],g!=null&&!Pn(g))s=x0(n,i,a,s,g);else if(Pn(g))for(f=0,h=g.length;f<h;f++)v=g[f],v!=null&&!Pn(v)&&(s=x0(n,i,a,s,v));n.restore();const y=a.length/2;if(y>t.length){for(u=0;u<y;u++)delete i[a[u]];a.splice(0,y)}return s}function Xc(n,e,t){const r=n.currentDevicePixelRatio,i=t!==0?Math.max(t/2,.5):0;return Math.round((e-i)*r)/r+i}function vx(n,e){e=e||n.getContext("2d"),e.save(),e.resetTransform(),e.clearRect(0,0,n.width,n.height),e.restore()}function S_(n,e,t,r){yx(n,e,t,r,null)}function yx(n,e,t,r,i){let a,s,c,u,f,h,g,v;const y=e.pointStyle,_=e.rotation,w=e.radius;let x=(_||0)*Ok;if(y&&typeof y=="object"&&(a=y.toString(),a==="[object HTMLImageElement]"||a==="[object HTMLCanvasElement]")){n.save(),n.translate(t,r),n.rotate(x),n.drawImage(y,-y.width/2,-y.height/2,y.width,y.height),n.restore();return}if(!(isNaN(w)||w<=0)){switch(n.beginPath(),y){default:i?n.ellipse(t,r,i/2,w,0,0,Bn):n.arc(t,r,w,0,Bn),n.closePath();break;case"triangle":h=i?i/2:w,n.moveTo(t+Math.sin(x)*h,r-Math.cos(x)*w),x+=ex,n.lineTo(t+Math.sin(x)*h,r-Math.cos(x)*w),x+=ex,n.lineTo(t+Math.sin(x)*h,r-Math.cos(x)*w),n.closePath();break;case"rectRounded":f=w*.516,u=w-f,s=Math.cos(x+Gc)*u,g=Math.cos(x+Gc)*(i?i/2-f:u),c=Math.sin(x+Gc)*u,v=Math.sin(x+Gc)*(i?i/2-f:u),n.arc(t-g,r-c,f,x-Yn,x-tr),n.arc(t+v,r-s,f,x-tr,x),n.arc(t+g,r+c,f,x,x+tr),n.arc(t-v,r+s,f,x+tr,x+Yn),n.closePath();break;case"rect":if(!_){u=Math.SQRT1_2*w,h=i?i/2:u,n.rect(t-h,r-u,2*h,2*u);break}x+=Gc;case"rectRot":g=Math.cos(x)*(i?i/2:w),s=Math.cos(x)*w,c=Math.sin(x)*w,v=Math.sin(x)*(i?i/2:w),n.moveTo(t-g,r-c),n.lineTo(t+v,r-s),n.lineTo(t+g,r+c),n.lineTo(t-v,r+s),n.closePath();break;case"crossRot":x+=Gc;case"cross":g=Math.cos(x)*(i?i/2:w),s=Math.cos(x)*w,c=Math.sin(x)*w,v=Math.sin(x)*(i?i/2:w),n.moveTo(t-g,r-c),n.lineTo(t+g,r+c),n.moveTo(t+v,r-s),n.lineTo(t-v,r+s);break;case"star":g=Math.cos(x)*(i?i/2:w),s=Math.cos(x)*w,c=Math.sin(x)*w,v=Math.sin(x)*(i?i/2:w),n.moveTo(t-g,r-c),n.lineTo(t+g,r+c),n.moveTo(t+v,r-s),n.lineTo(t-v,r+s),x+=Gc,g=Math.cos(x)*(i?i/2:w),s=Math.cos(x)*w,c=Math.sin(x)*w,v=Math.sin(x)*(i?i/2:w),n.moveTo(t-g,r-c),n.lineTo(t+g,r+c),n.moveTo(t+v,r-s),n.lineTo(t-v,r+s);break;case"line":s=i?i/2:Math.cos(x)*w,c=Math.sin(x)*w,n.moveTo(t-s,r-c),n.lineTo(t+s,r+c);break;case"dash":n.moveTo(t,r),n.lineTo(t+Math.cos(x)*(i?i/2:w),r+Math.sin(x)*w);break;case!1:n.closePath();break}n.fill(),e.borderWidth>0&&n.stroke()}}function bo(n,e,t){return t=t||.5,!e||n&&n.x>e.left-t&&n.x<e.right+t&&n.y>e.top-t&&n.y<e.bottom+t}function S0(n,e){n.save(),n.beginPath(),n.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),n.clip()}function C0(n){n.restore()}function Zk(n,e,t,r,i){if(!e)return n.lineTo(t.x,t.y);if(i==="middle"){const a=(e.x+t.x)/2;n.lineTo(a,e.y),n.lineTo(a,t.y)}else i==="after"!=!!r?n.lineTo(e.x,t.y):n.lineTo(t.x,e.y);n.lineTo(t.x,t.y)}function Xk(n,e,t,r){if(!e)return n.lineTo(t.x,t.y);n.bezierCurveTo(r?e.cp1x:e.cp2x,r?e.cp1y:e.cp2y,r?t.cp2x:t.cp1x,r?t.cp2y:t.cp1y,t.x,t.y)}function Qk(n,e){e.translation&&n.translate(e.translation[0],e.translation[1]),tn(e.rotation)||n.rotate(e.rotation),e.color&&(n.fillStyle=e.color),e.textAlign&&(n.textAlign=e.textAlign),e.textBaseline&&(n.textBaseline=e.textBaseline)}function Kk(n,e,t,r,i){if(i.strikethrough||i.underline){const a=n.measureText(r),s=e-a.actualBoundingBoxLeft,c=e+a.actualBoundingBoxRight,u=t-a.actualBoundingBoxAscent,f=t+a.actualBoundingBoxDescent,h=i.strikethrough?(u+f)/2:f;n.strokeStyle=n.fillStyle,n.beginPath(),n.lineWidth=i.decorationWidth||2,n.moveTo(s,h),n.lineTo(c,h),n.stroke()}}function Jk(n,e){const t=n.fillStyle;n.fillStyle=e.color,n.fillRect(e.left,e.top,e.width,e.height),n.fillStyle=t}function Qc(n,e,t,r,i,a={}){const s=Pn(e)?e:[e],c=a.strokeWidth>0&&a.strokeColor!=="";let u,f;for(n.save(),n.font=i.string,Qk(n,a),u=0;u<s.length;++u)f=s[u],a.backdrop&&Jk(n,a.backdrop),c&&(a.strokeColor&&(n.strokeStyle=a.strokeColor),tn(a.strokeWidth)||(n.lineWidth=a.strokeWidth),n.strokeText(f,t,r,a.maxWidth)),n.fillText(f,t,r,a.maxWidth),Kk(n,t,r,f,a),r+=Number(i.lineHeight);
323n.restore()}function Kp(n,e){const{x:t,y:r,w:i,h:a,radius:s}=e;n.arc(t+s.topLeft,r+s.topLeft,s.topLeft,-tr,Yn,!0),n.lineTo(t,r+a-s.bottomLeft),n.arc(t+s.bottomLeft,r+a-s.bottomLeft,s.bottomLeft,Yn,tr,!0),n.lineTo(t+i-s.bottomRight,r+a),n.arc(t+i-s.bottomRight,r+a-s.bottomRight,s.bottomRight,tr,0,!0),n.lineTo(t+i,r+s.topRight),n.arc(t+i-s.topRight,r+s.topRight,s.topRight,0,-tr,!0),n.lineTo(t+s.topLeft,r)}const eL=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,tL=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function nL(n,e){const t=(""+n).match(eL);if(!t||t[1]==="normal")return e*1.2;switch(n=+t[2],t[3]){case"px":return n;case"%":n/=100;break}return e*n}const rL=n=>+n||0;function C_(n,e){const t={},r=qt(e),i=r?Object.keys(e):e,a=qt(n)?r?s=>Rt(n[s],n[e[s]]):s=>n[s]:()=>n;for(const s of i)t[s]=rL(a(s));return t}function bx(n){return C_(n,{top:"y",right:"x",bottom:"y",left:"x"})}function Kc(n){return C_(n,["topLeft","topRight","bottomLeft","bottomRight"])}function Zr(n){const e=bx(n);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function Sr(n,e){n=n||{},e=e||nr.font;let t=Rt(n.size,e.size);typeof t=="string"&&(t=parseInt(t,10));let r=Rt(n.style,e.style);r&&!(""+r).match(tL)&&(console.warn('Invalid font style specified: "'+r+'"'),r=void 0);const i={family:Rt(n.family,e.family),lineHeight:nL(Rt(n.lineHeight,e.lineHeight),t),size:t,style:r,weight:Rt(n.weight,e.weight),string:""};return i.string=$k(i),i}function Jp(n,e,t,r){let i=!0,a,s,c;for(a=0,s=n.length;a<s;++a)if(c=n[a],c!==void 0&&(e!==void 0&&typeof c=="function"&&(c=c(e),i=!1),t!==void 0&&Pn(c)&&(c=c[t%c.length],i=!1),c!==void 0))return r&&!i&&(r.cacheable=!1),c}function iL(n,e,t){const{min:r,max:i}=n,a=X2(e,(i-r)/2),s=(c,u)=>t&&c===0?0:c+u;return{min:s(r,-Math.abs(a)),max:s(i,a)}}function El(n,e){return Object.assign(Object.create(n),e)}function T_(n,e=[""],t,r,i=()=>n[0]){const a=t||n;typeof r>"u"&&(r=Sx("_fallback",n));const s={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:n,_rootScopes:a,_fallback:r,_getTarget:i,override:c=>T_([c,...n],e,a,r)};return new Proxy(s,{deleteProperty(c,u){return delete c[u],delete c._keys,delete n[0][u],!0},get(c,u){return wx(c,u,()=>fL(u,e,n,c))},getOwnPropertyDescriptor(c,u){return Reflect.getOwnPropertyDescriptor(c._scopes[0],u)},getPrototypeOf(){return Reflect.getPrototypeOf(n[0])},has(c,u){return Cx(c).includes(u)},ownKeys(c){return Cx(c)},set(c,u,f){const h=c._storage||(c._storage=i());return c[u]=h[u]=f,delete c._keys,!0}})}function Jd(n,e,t,r){const i={_cacheable:!1,_proxy:n,_context:e,_subProxy:t,_stack:new Set,_descriptors:_x(n,r),setContext:a=>Jd(n,a,t,r),override:a=>Jd(n.override(a),e,t,r)};return new Proxy(i,{deleteProperty(a,s){return delete a[s],delete n[s],!0},get(a,s,c){return wx(a,s,()=>sL(a,s,c))},getOwnPropertyDescriptor(a,s){return a._descriptors.allKeys?Reflect.has(n,s)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(n,s)},getPrototypeOf(){return Reflect.getPrototypeOf(n)},has(a,s){return Reflect.has(n,s)},ownKeys(){return Reflect.ownKeys(n)},set(a,s,c){return n[s]=c,delete a[s],!0}})}function _x(n,e={scriptable:!0,indexable:!0}){const{_scriptable:t=e.scriptable,_indexable:r=e.indexable,_allKeys:i=e.allKeys}=n;return{allKeys:i,scriptable:t,indexable:r,isScriptable:_l(t)?t:()=>t,isIndexable:_l(r)?r:()=>r}}const aL=(n,e)=>n?n+m_(e):e,M_=(n,e)=>qt(e)&&n!=="adapters"&&(Object.getPrototypeOf(e)===null||e.constructor===Object);function wx(n,e,t){if(Object.prototype.hasOwnProperty.call(n,e))return n[e];const r=t();return n[e]=r,r}function sL(n,e,t){const{_proxy:r,_context:i,_subProxy:a,_descriptors:s}=n;let c=r[e];return _l(c)&&s.isScriptable(e)&&(c=oL(e,c,n,t)),Pn(c)&&c.length&&(c=lL(e,c,n,s.isIndexable)),M_(e,c)&&(c=Jd(c,i,a&&a[e],s)),c}function oL(n,e,t,r){const{_proxy:i,_context:a,_subProxy:s,_stack:c}=t;if(c.has(n))throw new Error("Recursion detected: "+Array.from(c).join("->")+"->"+n);c.add(n);let u=e(a,s||r);return c.delete(n),M_(n,u)&&(u=D_(i._scopes,i,n,u)),u}function lL(n,e,t,r){const{_proxy:i,_context:a,_subProxy:s,_descriptors:c}=t;if(typeof a.index<"u"&&r(n))return e[a.index%e.length];if(qt(e[0])){const u=e,f=i._scopes.filter(h=>h!==u);e=[];for(const h of u){const g=D_(f,i,n,h);e.push(Jd(g,a,s&&s[n],c))}}return e}function Ex(n,e,t){return _l(n)?n(e,t):n}const cL=(n,e)=>n===!0?e:typeof n=="string"?bl(e,n):void 0;function uL(n,e,t,r,i){for(const a of e){const s=cL(t,a);if(s){n.add(s);const c=Ex(s._fallback,t,i);if(typeof c<"u"&&c!==t&&c!==r)return c}else if(s===!1&&typeof r<"u"&&t!==r)return null}return!1}function D_(n,e,t,r){const i=e._rootScopes,a=Ex(e._fallback,t,r),s=[...n,...i],c=new Set;c.add(r);let u=xx(c,s,t,a||t,r);return u===null||typeof a<"u"&&a!==t&&(u=xx(c,s,a,u,r),u===null)?!1:T_(Array.from(c),[""],i,a,()=>dL(e,t,r))}function xx(n,e,t,r,i){for(;t;)t=uL(n,e,t,r,i);return t}function dL(n,e,t){const r=n._getTarget();e in r||(r[e]={});const i=r[e];return Pn(i)&&qt(t)?t:i||{}}function fL(n,e,t,r){let i;for(const a of e)if(i=Sx(aL(a,n),t),typeof i<"u")return M_(n,i)?D_(t,r,n,i):i}function Sx(n,e){for(const t of e){if(!t)continue;const r=t[n];if(typeof r<"u")return r}}function Cx(n){let e=n._keys;return e||(e=n._keys=hL(n._scopes)),e}function hL(n){const e=new Set;for(const t of n)for(const r of Object.keys(t).filter(i=>!i.startsWith("_")))e.add(r);return Array.from(e)}function Tx(n,e,t,r){const{iScale:i}=n,{key:a="r"}=this._parsing,s=new Array(r);let c,u,f,h;for(c=0,u=r;c<u;++c)f=c+t,h=e[f],s[c]={r:i.parse(bl(h,a),f)};return s}const pL=Number.EPSILON||1e-14,ef=(n,e)=>e<n.length&&!n[e].skip&&n[e],Mx=n=>n==="x"?"y":"x";function mL(n,e,t,r){const i=n.skip?e:n,a=e,s=t.skip?e:t,c=v_(a,i),u=v_(s,a);let f=c/(c+u),h=u/(c+u);f=isNaN(f)?0:f,h=isNaN(h)?0:h;const g=r*f,v=r*h;return{previous:{x:a.x-g*(s.x-i.x),y:a.y-g*(s.y-i.y)},next:{x:a.x+v*(s.x-i.x),y:a.y+v*(s.y-i.y)}}}function gL(n,e,t){const r=n.length;let i,a,s,c,u,f=ef(n,0);for(let h=0;h<r-1;++h)if(u=f,f=ef(n,h+1),!(!u||!f)){if($p(e[h],0,pL)){t[h]=t[h+1]=0;continue}i=t[h]/e[h],a=t[h+1]/e[h],c=Math.pow(i,2)+Math.pow(a,2),!(c<=9)&&(s=3/Math.sqrt(c),t[h]=i*s*e[h],t[h+1]=a*s*e[h])}}function vL(n,e,t="x"){const r=Mx(t),i=n.length;let a,s,c,u=ef(n,0);for(let f=0;f<i;++f){if(s=c,c=u,u=ef(n,f+1),!c)continue;const h=c[t],g=c[r];s&&(a=(h-s[t])/3,c[`cp1${t}`]=h-a,c[`cp1${r}
323`]=g-a*e[f]),u&&(a=(u[t]-h)/3,c[`cp2${t}`]=h+a,c[`cp2${r}`]=g+a*e[f])}}function yL(n,e="x"){const t=Mx(e),r=n.length,i=Array(r).fill(0),a=Array(r);let s,c,u,f=ef(n,0);for(s=0;s<r;++s)if(c=u,u=f,f=ef(n,s+1),!!u){if(f){const h=f[e]-u[e];i[s]=h!==0?(f[t]-u[t])/h:0}a[s]=c?f?hs(i[s-1])!==hs(i[s])?0:(i[s-1]+i[s])/2:i[s-1]:i[s]}gL(n,i,a),vL(n,a,e)}function T0(n,e,t){return Math.max(Math.min(n,t),e)}function bL(n,e){let t,r,i,a,s,c=bo(n[0],e);for(t=0,r=n.length;t<r;++t)s=a,a=c,c=t<r-1&&bo(n[t+1],e),a&&(i=n[t],s&&(i.cp1x=T0(i.cp1x,e.left,e.right),i.cp1y=T0(i.cp1y,e.top,e.bottom)),c&&(i.cp2x=T0(i.cp2x,e.left,e.right),i.cp2y=T0(i.cp2y,e.top,e.bottom)))}function _L(n,e,t,r,i){let a,s,c,u;if(e.spanGaps&&(n=n.filter(f=>!f.skip)),e.cubicInterpolationMode==="monotone")yL(n,i);else{let f=r?n[n.length-1]:n[0];for(a=0,s=n.length;a<s;++a)c=n[a],u=mL(f,c,n[Math.min(a+1,s-(r?0:1))%s],e.tension),c.cp1x=u.previous.x,c.cp1y=u.previous.y,c.cp2x=u.next.x,c.cp2y=u.next.y,f=c}e.capBezierPoints&&bL(n,t)}function Dx(){return typeof window<"u"&&typeof document<"u"}function O_(n){let e=n.parentNode;return e&&e.toString()==="[object ShadowRoot]"&&(e=e.host),e}function M0(n,e,t){let r;return typeof n=="string"?(r=parseInt(n,10),n.indexOf("%")!==-1&&(r=r/100*e.parentNode[t])):r=n,r}const D0=n=>n.ownerDocument.defaultView.getComputedStyle(n,null);function wL(n,e){return D0(n).getPropertyValue(e)}const EL=["top","right","bottom","left"];function Jc(n,e,t){const r={};t=t?"-"+t:"";for(let i=0;i<4;i++){const a=EL[i];r[a]=parseFloat(n[e+"-"+a+t])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}const xL=(n,e,t)=>(n>0||e>0)&&(!t||!t.shadowRoot);function SL(n,e){const t=n.touches,r=t&&t.length?t[0]:n,{offsetX:i,offsetY:a}=r;let s=!1,c,u;if(xL(i,a,n.target))c=i,u=a;else{const f=e.getBoundingClientRect();c=r.clientX-f.left,u=r.clientY-f.top,s=!0}return{x:c,y:u,box:s}}function eu(n,e){if("native"in n)return n;const{canvas:t,currentDevicePixelRatio:r}=e,i=D0(t),a=i.boxSizing==="border-box",s=Jc(i,"padding"),c=Jc(i,"border","width"),{x:u,y:f,box:h}=SL(n,t),g=s.left+(h&&c.left),v=s.top+(h&&c.top);let{width:y,height:_}=e;return a&&(y-=s.width+c.width,_-=s.height+c.height),{x:Math.round((u-g)/y*t.width/r),y:Math.round((f-v)/_*t.height/r)}}function CL(n,e,t){let r,i;if(e===void 0||t===void 0){const a=O_(n);if(!a)e=n.clientWidth,t=n.clientHeight;else{const s=a.getBoundingClientRect(),c=D0(a),u=Jc(c,"border","width"),f=Jc(c,"padding");e=s.width-f.width-u.width,t=s.height-f.height-u.height,r=M0(c.maxWidth,a,"clientWidth"),i=M0(c.maxHeight,a,"clientHeight")}}return{width:e,height:t,maxWidth:r||_0,maxHeight:i||_0}}const O0=n=>Math.round(n*10)/10;function TL(n,e,t,r){const i=D0(n),a=Jc(i,"margin"),s=M0(i.maxWidth,n,"clientWidth")||_0,c=M0(i.maxHeight,n,"clientHeight")||_0,u=CL(n,e,t);let{width:f,height:h}=u;if(i.boxSizing==="content-box"){const v=Jc(i,"border","width"),y=Jc(i,"padding");f-=y.width+v.width,h-=y.height+v.height}return f=Math.max(0,f-a.width),h=Math.max(0,r?f/r:h-a.height),f=O0(Math.min(f,s,u.maxWidth)),h=O0(Math.min(h,c,u.maxHeight)),f&&!h&&(h=O0(f/2)),(e!==void 0||t!==void 0)&&r&&u.height&&h>u.height&&(h=u.height,f=O0(Math.floor(h*r))),{width:f,height:h}}function Ox(n,e,t){const r=e||1,i=Math.floor(n.height*r),a=Math.floor(n.width*r);n.height=Math.floor(n.height),n.width=Math.floor(n.width);const s=n.canvas;return s.style&&(t||!s.style.height&&!s.style.width)&&(s.style.height=`${n.height}px`,s.style.width=`${n.width}px`),n.currentDevicePixelRatio!==r||s.height!==i||s.width!==a?(n.currentDevicePixelRatio=r,s.height=i,s.width=a,n.ctx.setTransform(r,0,0,r,0,0),!0):!1}const ML=(function(){let n=!1;try{const e={get passive(){return n=!0,!1}};window.addEventListener("test",null,e),window.removeEventListener("test",null,e)}catch{}return n})();function kx(n,e){const t=wL(n,e),r=t&&t.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}function tu(n,e,t,r){return{x:n.x+t*(e.x-n.x),y:n.y+t*(e.y-n.y)}}function DL(n,e,t,r){return{x:n.x+t*(e.x-n.x),y:r==="middle"?t<.5?n.y:e.y:r==="after"?t<1?n.y:e.y:t>0?e.y:n.y}}function OL(n,e,t,r){const i={x:n.cp2x,y:n.cp2y},a={x:e.cp1x,y:e.cp1y},s=tu(n,i,t),c=tu(i,a,t),u=tu(a,e,t),f=tu(s,c,t),h=tu(c,u,t);return tu(f,h,t)}const kL=function(n,e){return{x(t){return n+n+e-t},setWidth(t){e=t}
vendor: 4,805 bytes, lines 323-328
323,textAlign(t){return t==="center"?t:t==="right"?"left":"right"},xPlus(t,r){return t-r},leftForLtr(t,r){return t-r}}},LL=function(){return{x(n){return n},setWidth(n){},textAlign(n){return n},xPlus(n,e){return n+e},leftForLtr(n,e){return n}}};function tf(n,e,t){return n?kL(e,t):LL()}function Lx(n,e){let t,r;(e==="ltr"||e==="rtl")&&(t=n.canvas.style,r=[t.getPropertyValue("direction"),t.getPropertyPriority("direction")],t.setProperty("direction",e,"important"),n.prevTextDirection=r)}function Ax(n,e){e!==void 0&&(delete n.prevTextDirection,n.canvas.style.setProperty("direction",e[0],e[1]))}function Rx(n){return n==="angle"?{between:Gp,compare:Ak,normalize:zi}:{between:vo,compare:(e,t)=>e-t,normalize:e=>e}}function Ix({start:n,end:e,count:t,loop:r,style:i}){return{start:n%t,end:e%t,loop:r&&(e-n+1)%t===0,style:i}}function AL(n,e,t){const{property:r,start:i,end:a}=t,{between:s,normalize:c}=Rx(r),u=e.length;let{start:f,end:h,loop:g}=n,v,y;if(g){for(f+=u,h+=u,v=0,y=u;v<y&&s(c(e[f%u][r]),i,a);++v)f--,h--;f%=u,h%=u}return h<f&&(h+=u),{start:f,end:h,loop:g,style:n.style}}function Nx(n,e,t){if(!t)return[n];const{property:r,start:i,end:a}=t,s=e.length,{compare:c,between:u,normalize:f}=Rx(r),{start:h,end:g,loop:v,style:y}=AL(n,e,t),_=[];let w=!1,x=null,S,T,M;const C=()=>u(i,M,S)&&c(i,M)!==0,k=()=>c(a,S)===0||u(a,M,S),L=()=>w||C(),O=()=>!w||k();for(let I=h,P=h;I<=g;++I)T=e[I%s],!T.skip&&(S=f(T[r]),S!==M&&(w=u(S,i,a),x===null&&L()&&(x=c(S,i)===0?I:P),x!==null&&O()&&(_.push(Ix({start:x,end:I,loop:v,count:s,style:y})),x=null),P=I,M=S));return x!==null&&_.push(Ix({start:x,end:g,loop:v,count:s,style:y})),_}function Px(n,e){const t=[],r=n.segments;for(let i=0;i<r.length;i++){const a=Nx(r[i],n.points,e);a.length&&t.push(...a)}return t}function RL(n,e,t,r){let i=0,a=e-1;if(t&&!r)for(;i<e&&!n[i].skip;)i++;for(;i<e&&n[i].skip;)i++;for(i%=e,t&&(a+=i);a>i&&n[a%e].skip;)a--;return a%=e,{start:i,end:a}}function IL(n,e,t,r){const i=n.length,a=[];let s=e,c=n[e],u;for(u=e+1;u<=t;++u){const f=n[u%i];f.skip||f.stop?c.skip||(r=!1,a.push({start:e%i,end:(u-1)%i,loop:r}),e=s=f.stop?u:null):(s=u,c.skip&&(e=u)),c=f}return s!==null&&a.push({start:e%i,end:s%i,loop:r}),a}function NL(n,e){const t=n.points,r=n.options.spanGaps,i=t.length;if(!i)return[];const a=!!n._loop,{start:s,end:c}=RL(t,i,a,r);if(r===!0)return Bx(n,[{start:s,end:c,loop:a}],t,e);const u=c<s?c+i:c,f=!!n._fullLoop&&s===0&&c===i-1;return Bx(n,IL(t,s,u,f),t,e)}function Bx(n,e,t,r){return!r||!r.setContext||!t?e:PL(n,e,t,r)}function PL(n,e,t,r){const i=n._chart.getContext(),a=Hx(n.options),{_datasetIndex:s,options:{spanGaps:c}}=n,u=t.length,f=[];let h=a,g=e[0].start,v=g;function y(_,w,x,S){const T=c?-1:1;if(_!==w){for(_+=u;t[_%u].skip;)_-=T;for(;t[w%u].skip;)w+=T;_%u!==w%u&&(f.push({start:_%u,end:w%u,loop:x,style:S}),h=S,g=w%u)}}for(const _ of e){g=c?g:_.start;let w=t[g%u],x;for(v=g+1;v<=_.end;v++){const S=t[v%u];x=Hx(r.setContext(El(i,{type:"segment",p0:w,p1:S,p0DataIndex:(v-1)%u,p1DataIndex:v%u,datasetIndex:s}))),BL(x,h)&&y(g,v-1,_.loop,h),w=S,h=x}g<v-1&&y(g,v-1,_.loop,h)}return f}function Hx(n){return{backgroundColor:n.backgroundColor,borderCapStyle:n.borderCapStyle,borderDash:n.borderDash,borderDashOffset:n.borderDashOffset,borderJoinStyle:n.borderJoinStyle,borderWidth:n.borderWidth,borderColor:n.borderColor}}function BL(n,e){if(!e)return!1;const t=[],r=function(i,a){return __(a)?(t.includes(a)||t.push(a),t.indexOf(a)):a};return JSON.stringify(n,r)!==JSON.stringify(e,r)}/*!
324 * Chart.js v4.3.0
325 * https://www.chartjs.org
326 * (c) 2023 Chart.js Contributors
327 * Released under the MIT License
328 */class HL{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(e,t,r,i){const a=t.listeners[i],s=t.duration;a.forEach(c=>c({chart:e,initial:t.initial,numSteps:s,currentStep:Math.min(r-t.start,s)}))}_refresh(){this._request||(this._running=!0,this._request=lx.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(e=Date.now()){let t=0;this._charts.forEach((r,i)=>{if(!r.running||!r.items.length)return;const a=r.items;let s=a.length-1,c=!1,u;for(;s>=0;--s)u=a[s],u._active?(u._total>r.duration&&(r.duration=u._total),u.tick(e),c=!0):(a[s]=a[a.length-1],a.pop());c&&(i.draw(),this._notify(i,r,e,"progress")),a.length||(r.running=!1,this._notify(i,r,e,"complete"),r.initial=!1),t+=a.length}),this._lastDate=e,t===0&&(this._running=!1)}_getAnims(e){const t=this._charts;let r=t.get(e);return r||(r={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},t.set(e,r)),r}listen(e,t,r){this._getAnims(e).listeners[t].push(r)}add(e,t){!t||!t.length||this._getAnims(e).items.push(...t)}has(e){return this._getAnims(e).items.length>0}start(e){const t=this._charts.get(e);t&&(t.running=!0,t.start=Date.now(),t.duration=t.items.reduce((r,i)=>
328Math.max(r,i._duration),0),this._refresh())}running(e){if(!this._running)return!1;const t=this._charts.get(e);return!(!t||!t.running||!t.items.length)}stop(e){const t=this._charts.get(e);if(!t||!t.items.length)return;const r=t.items;let i=r.length-1;for(;i>=0;--i)r[i].cancel();t.items=[],this._notify(e,t,Date.now(),"complete")}remove(e){return this._charts.delete(e)}}var _o=new HL;const zx="transparent",zL={boolean(n,e,t){return t>.5?e:n},color(n,e,t){const r=px(n||zx),i=r.valid&&px(e||zx);return i&&i.valid?i.mix(r,t).hexString():e},number(n,e,t){return n+(e-n)*t}};class FL{constructor(e,t,r,i){const a=t[r];i=Jp([e.to,i,a,e.from]);const s=Jp([e.from,a,i]);this._active=!0,this._fn=e.fn||zL[e.type||typeof s],this._easing=Zp[e.easing]||Zp.linear,this._start=Math.floor(Date.now()+(e.delay||0)),this._duration=this._total=Math.floor(e.duration),this._loop=!!e.loop,this._target=t,this._prop=r,this._from=s,this._to=i,this._promises=void 0}active(){return this._active}update(e,t,r){if(this._active){this._notify(!1);const i=this._target[this._prop],a=r-this._start,s=this._duration-a;this._start=r,this._duration=Math.floor(Math.max(s,e.duration)),this._total+=a,this._loop=!!e.loop,this._to=Jp([e.to,t,i,e.from]),this._from=Jp([e.from,i,t])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(e){const t=e-this._start,r=this._duration,i=this._prop,a=this._from,s=this._loop,c=this._to;let u;if(this._active=a!==c&&(s||t<r),!this._active){this._target[i]=c,this._notify(!0);return}if(t<0){this._target[i]=a;return}u=t/r%2,u=s&&u>1?2-u:u,u=this._easing(Math.min(1,Math.max(0,u))),this._target[i]=this._fn(a,c,u)}wait(){const e=this._promises||(this._promises=[]);return new Promise((t,r)=>{e.push({res:t,rej:r})})}_notify(e){const t=e?"res":"rej",r=this._promises||[];for(let i=0;i<r.length;i++)r[i][t]()}}class Fx{constructor(e,t){this._chart=e,this._properties=new Map,this.configure(t)}configure(e){if(!qt(e))return;const t=Object.keys(nr.animation),r=this._properties;Object.getOwnPropertyNames(e).forEach(i=>{const a=e[i];if(!qt(a))return;const s={};for(const c of t)s[c]=a[c];(Pn(a.properties)&&a.properties||[i]).forEach(c=>{(c===i||!r.has(c))&&r.set(c,s)})})}_animateOptions(e,t){const r=t.options,i=YL(e,r);if(!i)return[];const a=this._createAnimations(i,r);return r.$shared&&VL(e.options.$animations,r).then(()=>{e.options=r},()=>{}),a}_createAnimations(e,t){const r=this._properties,i=[],a=e.$animations||(e.$animations={}),s=Object.keys(t),c=Date.now();let u;for(u=s.length-1;u>=0;--u){const f=s[u];if(f.charAt(0)==="$")continue;if(f==="options"){i.push(...this._animateOptions(e,t));continue}const h=t[f];let g=a[f];const v=r.get(f);if(g)if(v&&g.active()){g.update(v,h,c);continue}else g.cancel();if(!v||!v.duration){e[f]=h;continue}a[f]=g=new FL(v,e,f,h),i.push(g)}return i}update(e,t){if(this._properties.size===0){Object.assign(e,t);return}const r=this._createAnimations(e,t);if(r.length)return _o.add(this._chart,r),!0}}function VL(n,e){const t=[],r=Object.keys(e);for(let i=0;i<r.length;i++){const a=n[r[i]];a&&a.active()&&t.push(a.wait())}return Promise.all(t)}function YL(n,e){if(!e)return;let t=n.options;if(!t){n.options=e;return}return t.$shared&&(n.options=t=Object.assign({},t,{$shared:!1,$animations:{}})),t}function Vx(n,e){const t=n&&n.options||{},r=t.reverse,i=t.min===void 0?e:0,a=t.max===void 0?e:0;return{start:r?a:i,end:r?i:a}}function jL(n,e,t){if(t===!1)return!1;const r=Vx(n,t),i=Vx(e,t);return{top:i.end,right:r.end,bottom:i.start,left:r.start}}function WL(n){let e,t,r,i;return qt(n)?(e=n.top,t=n.right,r=n.bottom,i=n.left):e=t=r=i=n,{top:e,right:t,bottom:r,left:i,disabled:n===!1}}function Yx(n,e){const t=[],r=n._getSortedDatasetMetas(e);let i,a;for(i=0,a=r.length;i<a;++i)t.push(r[i].index);return t}function jx(n,e,t,r={}){const i=n.keys,a=r.mode==="single";let s,c,u,f;if(e!==null){for(s=0,c=i.length;s<c;++s){if(u=+i[s],u===t){if(r.all)continue;break}f=n.values[u],er(f)&&(a||e===0||hs(e)===hs(f))&&(e+=f)}return e}}function UL(n){const e=Object.keys(n),t=new Array(e.length);let r,i,a;for(r=0,i=e.length;r<i;++r)a=e[r],t[r]={x:a,y:n[a]};return t}function Wx(n,e){const t=n&&n.options.stacked;return t||t===void 0&&e.stack!==void 0}function qL(n,e,t){return`${n.id}
328.${e.id}.${t.stack||t.type}`}function $L(n){const{min:e,max:t,minDefined:r,maxDefined:i}=n.getUserBounds();return{min:r?e:Number.NEGATIVE_INFINITY,max:i?t:Number.POSITIVE_INFINITY}}function GL(n,e,t){const r=n[e]||(n[e]={});return r[t]||(r[t]={})}function Ux(n,e,t,r){for(const i of e.getMatchingVisibleMetas(r).reverse()){const a=n[i.index];if(t&&a>0||!t&&a<0)return i.index}return null}function qx(n,e){const{chart:t,_cachedMeta:r}=n,i=t._stacks||(t._stacks={}),{iScale:a,vScale:s,index:c}=r,u=a.axis,f=s.axis,h=qL(a,s,r),g=e.length;let v;for(let y=0;y<g;++y){const _=e[y],{[u]:w,[f]:x}=_,S=_._stacks||(_._stacks={});v=S[f]=GL(i,h,w),v[c]=x,v._top=Ux(v,s,!0,r.type),v._bottom=Ux(v,s,!1,r.type);const T=v._visualValues||(v._visualValues={});T[c]=x}}function k_(n,e){const t=n.scales;return Object.keys(t).filter(r=>t[r].axis===e).shift()}function ZL(n,e){return El(n,{active:!1,dataset:void 0,datasetIndex:e,index:e,mode:"default",type:"dataset"})}function XL(n,e,t){return El(n,{active:!1,dataIndex:e,parsed:void 0,raw:void 0,element:t,index:e,mode:"default",type:"data"})}function em(n,e){const t=n.controller.index,r=n.vScale&&n.vScale.axis;if(r){e=e||n._parsed;for(const i of e){const a=i._stacks;if(!a||a[r]===void 0||a[r][t]===void 0)return;delete a[r][t],a[r]._visualValues!==void 0&&a[r]._visualValues[t]!==void 0&&delete a[r]._visualValues[t]}}}const L_=n=>n==="reset"||n==="none",$x=(n,e)=>e?n:Object.assign({},n),QL=(n,e,t)=>n&&!e.hidden&&e._stacked&&{keys:Yx(t,!0),values:null};class xl{static defaults={};static datasetElementType=null;static dataElementType=null;constructor(e,t){this.chart=e,this._ctx=e.ctx,this.index=t,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const e=this._cachedMeta;this.configure(),this.linkScales(),e._stacked=Wx(e.vScale,e),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(e){this.index!==e&&em(this._cachedMeta),this.index=e}linkScales(){const e=this.chart,t=this._cachedMeta,r=this.getDataset(),i=(g,v,y,_)=>g==="x"?v:g==="r"?_:y,a=t.xAxisID=Rt(r.xAxisID,k_(e,"x")),s=t.yAxisID=Rt(r.yAxisID,k_(e,"y")),c=t.rAxisID=Rt(r.rAxisID,k_(e,"r")),u=t.indexAxis,f=t.iAxisID=i(u,a,s,c),h=t.vAxisID=i(u,s,a,c);t.xScale=this.getScaleForId(a),t.yScale=this.getScaleForId(s),t.rScale=this.getScaleForId(c),t.iScale=this.getScaleForId(f),t.vScale=this.getScaleForId(h)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(e){return this.chart.scales[e]}_getOtherScale(e){const t=this._cachedMeta;return e===t.iScale?t.vScale:t.iScale}reset(){this._update("reset")}_destroy(){const e=this._cachedMeta;this._data&&sx(this._data,this),e._stacked&&em(e)}_dataCheck(){const e=this.getDataset(),t=e.data||(e.data=[]),r=this._data;if(qt(t))this._data=UL(t);else if(r!==t){if(r){sx(r,this);const i=this._cachedMeta;em(i),i._parsed=[]}t&&Object.isExtensible(t)&&Pk(t,this),this._syncList=[],this._data=t}}addElements(){const e=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(e.dataset=new this.datasetElementType)}buildOrUpdateElements(e){const t=this._cachedMeta,r=this.getDataset();let i=!1;this._dataCheck();const a=t._stacked;t._stacked=Wx(t.vScale,t),t.stack!==r.stack&&(i=!0,em(t),t.stack=r.stack),this._resyncElements(e),(i||a!==t._stacked)&&qx(this,t._parsed)}configure(){const e=this.chart.config,t=e.datasetScopeKeys(this._type),r=e.getOptionScopes(this.getDataset(),t,!0);this.options=e.createResolver(r,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(e,t){const{_cachedMeta:r,_data:i}=this,{iScale:a,_stacked:s}=r,c=a.axis;let u=e===0&&t===i.length?!0:r._sorted,f=e>0&&r._parsed[e-1],h,g,v;if(this._parsing===!1)r._parsed=i,r._sorted=!0,v=i;else{Pn(i[e])?v=this.parseArrayData(r,i,e,t):qt(i[e])?v=this.parseObjectData(r,i,e,t):v=this.parsePrimitiveData(r,i,e,t);const y=()=>g[c]===null||f&&g[c]<f[c];for(h=0;h<t;++h)r._parsed[h+e]=g=v[h],u&&(y()&&(u=!1),f=g);r._sorted=u}s&&qx(this,v)}parsePrimitiveData(e,t,r,i){const{iScale:a,vScale:s}=e,c=a.axis,u=s.axis,f=a.getLabels(),h=a===s,g=new Array(i);let v,y,_;
vendor: 4,184 bytes, line 328
328for(v=0,y=i;v<y;++v)_=v+r,g[v]={[c]:h||a.parse(f[_],_),[u]:s.parse(t[_],_)};return g}parseArrayData(e,t,r,i){const{xScale:a,yScale:s}=e,c=new Array(i);let u,f,h,g;for(u=0,f=i;u<f;++u)h=u+r,g=t[h],c[u]={x:a.parse(g[0],h),y:s.parse(g[1],h)};return c}parseObjectData(e,t,r,i){const{xScale:a,yScale:s}=e,{xAxisKey:c="x",yAxisKey:u="y"}=this._parsing,f=new Array(i);let h,g,v,y;for(h=0,g=i;h<g;++h)v=h+r,y=t[v],f[h]={x:a.parse(bl(y,c),v),y:s.parse(bl(y,u),v)};return f}getParsed(e){return this._cachedMeta._parsed[e]}getDataElement(e){return this._cachedMeta.data[e]}applyStack(e,t,r){const i=this.chart,a=this._cachedMeta,s=t[e.axis],c={keys:Yx(i,!0),values:t._stacks[e.axis]._visualValues};return jx(c,s,a.index,{mode:r})}updateRangeFromParsed(e,t,r,i){const a=r[t.axis];let s=a===null?NaN:a;const c=i&&r._stacks[t.axis];i&&c&&(i.values=c,s=jx(i,a,this._cachedMeta.index)),e.min=Math.min(e.min,s),e.max=Math.max(e.max,s)}getMinMax(e,t){const r=this._cachedMeta,i=r._parsed,a=r._sorted&&e===r.iScale,s=i.length,c=this._getOtherScale(e),u=QL(t,r,this.chart),f={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:h,max:g}=$L(c);let v,y;function _(){y=i[v];const w=y[c.axis];return!er(y[e.axis])||h>w||g<w}for(v=0;v<s&&!(!_()&&(this.updateRangeFromParsed(f,e,y,u),a));++v);if(a){for(v=s-1;v>=0;--v)if(!_()){this.updateRangeFromParsed(f,e,y,u);break}}return f}getAllParsedValues(e){const t=this._cachedMeta._parsed,r=[];let i,a,s;for(i=0,a=t.length;i<a;++i)s=t[i][e.axis],er(s)&&r.push(s);return r}getMaxOverflow(){return!1}getLabelAndValue(e){const t=this._cachedMeta,r=t.iScale,i=t.vScale,a=this.getParsed(e);return{label:r?""+r.getLabelForValue(a[r.axis]):"",value:i?""+i.getLabelForValue(a[i.axis]):""}}_update(e){const t=this._cachedMeta;this.update(e||"default"),t._clip=WL(Rt(this.options.clip,jL(t.xScale,t.yScale,this.getMaxOverflow())))}update(e){}draw(){const e=this._ctx,t=this.chart,r=this._cachedMeta,i=r.data||[],a=t.chartArea,s=[],c=this._drawStart||0,u=this._drawCount||i.length-c,f=this.options.drawActiveElementsOnTop;let h;for(r.dataset&&r.dataset.draw(e,a,c,u),h=c;h<c+u;++h){const g=i[h];g.hidden||(g.active&&f?s.push(g):g.draw(e,a))}for(h=0;h<s.length;++h)s[h].draw(e,a)}getStyle(e,t){const r=t?"active":"default";return e===void 0&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(r):this.resolveDataElementOptions(e||0,r)}getContext(e,t,r){const i=this.getDataset();let a;if(e>=0&&e<this._cachedMeta.data.length){const s=this._cachedMeta.data[e];a=s.$context||(s.$context=XL(this.getContext(),e,s)),a.parsed=this.getParsed(e),a.raw=i.data[e],a.index=a.dataIndex=e}else a=this.$context||(this.$context=ZL(this.chart.getContext(),this.index)),a.dataset=i,a.index=a.datasetIndex=this.index;return a.active=!!t,a.mode=r,a}resolveDatasetElementOptions(e){return this._resolveElementOptions(this.datasetElementType.id,e)}resolveDataElementOptions(e,t){return this._resolveElementOptions(this.dataElementType.id,t,e)}_resolveElementOptions(e,t="default",r){const i=t==="active",a=this._cachedDataOpts,s=e+"-"+t,c=a[s],u=this.enableOptionSharing&&qp(r);if(c)return $x(c,u);const f=this.chart.config,h=f.datasetElementScopeKeys(this._type,e),g=i?[`${e}Hover`,"hover",e,""]:[e,""],v=f.getOptionScopes(this.getDataset(),h),y=Object.keys(nr.elements[e]),_=()=>this.getContext(r,i,t),w=f.resolveNamedOptions(v,y,_,g);return w.$shared&&(w.$shared=u,a[s]=Object.freeze($x(w,u))),w}_resolveAnimations(e,t,r){const i=this.chart,a=this._cachedDataOpts,s=`animation-${t}`,c=a[s];if(c)return c;let u;if(i.options.animation!==!1){const h=this.chart.config,g=h.datasetAnimationScopeKeys(this._type,t),v=h.getOptionScopes(this.getDataset(),g);u=h.createResolver(v,this.getContext(e,r,t))}const f=new Fx(i,u&&u.animations);return u&&u._cacheable&&(a[s]=Object.freeze(f)),f}getSharedOptions(e){if(e.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},e))}includeOptions(e,t){return!t||L_(e)||this.chart._animationsDisabled}_getSharedOptions(e,t){const r=this.resolveDataElementOptions(e,t),i=this._sharedOptions,a=this.getSharedOptions(r),s=this.includeOptions(t,a)||a!==i;return this.updateSharedOptions(a,t,r),{sharedOptions:a,includeOptions:s}}
328updateElement(e,t,r,i){L_(i)?Object.assign(e,r):this._resolveAnimations(t,i).update(e,r)}updateSharedOptions(e,t,r){e&&!L_(t)&&this._resolveAnimations(void 0,t).update(e,r)}_setStyle(e,t,r,i){e.active=i;const a=this.getStyle(t,i);this._resolveAnimations(t,r,i).update(e,{options:!i&&this.getSharedOptions(a)||a})}removeHoverStyle(e,t,r){this._setStyle(e,r,"active",!1)}setHoverStyle(e,t,r){this._setStyle(e,r,"active",!0)}_removeDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!1)}_setDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!0)}_resyncElements(e){const t=this._data,r=this._cachedMeta.data;for(const[c,u,f]of this._syncList)this[c](u,f);this._syncList=[];const i=r.length,a=t.length,s=Math.min(a,i);s&&this.parse(0,s),a>i?this._insertElements(i,a-i,e):a<i&&this._removeElements(a,i-a)}_insertElements(e,t,r=!0){const i=this._cachedMeta,a=i.data,s=e+t;let c;const u=f=>{for(f.length+=t,c=f.length-1;c>=s;c--)f[c]=f[c-t]};for(u(a),c=e;c<s;++c)a[c]=new this.dataElementType;this._parsing&&u(i._parsed),this.parse(e,t),r&&this.updateElements(a,e,t,"reset")}updateElements(e,t,r,i){}_removeElements(e,t){const r=this._cachedMeta;if(this._parsing){const i=r._parsed.splice(e,t);r._stacked&&em(r,i)}r.data.splice(e,t)}_sync(e){if(this._parsing)this._syncList.push(e);else{const[t,r,i]=e;this[t](r,i)}this.chart._dataChanges.push([this.index,...e])}_onDataPush(){const e=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-e,e])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(e,t){t&&this._sync(["_removeElements",e,t]);const r=arguments.length-2;r&&this._sync(["_insertElements",e,r])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}function KL(n,e){if(!n._cache.$bar){const t=n.getMatchingVisibleMetas(e);let r=[];for(let i=0,a=t.length;i<a;i++)r=r.concat(t[i].controller.getAllParsedValues(n));n._cache.$bar=ox(r.sort((i,a)=>i-a))}return n._cache.$bar}function JL(n){const e=n.iScale,t=KL(e,n.type);let r=e._length,i,a,s,c;const u=()=>{s===32767||s===-32768||(qp(c)&&(r=Math.min(r,Math.abs(s-c)||r)),c=s)};for(i=0,a=t.length;i<a;++i)s=e.getPixelForValue(t[i]),u();for(c=void 0,i=0,a=e.ticks.length;i<a;++i)s=e.getPixelForTick(i),u();return r}function e5(n,e,t,r){const i=t.barThickness;let a,s;return tn(i)?(a=e.min*t.categoryPercentage,s=t.barPercentage):(a=i*r,s=1),{chunk:a/r,ratio:s,start:e.pixels[n]-a/2}}function t5(n,e,t,r){const i=e.pixels,a=i[n];let s=n>0?i[n-1]:null,c=n<i.length-1?i[n+1]:null;const u=t.categoryPercentage;s===null&&(s=a-(c===null?e.end-e.start:c-a)),c===null&&(c=a+a-s);const f=a-(a-Math.min(s,c))/2*u;return{chunk:Math.abs(c-s)/2*u/r,ratio:t.barPercentage,start:f}}function n5(n,e,t,r){const i=t.parse(n[0],r),a=t.parse(n[1],r),s=Math.min(i,a),c=Math.max(i,a);let u=s,f=c;Math.abs(s)>Math.abs(c)&&(u=c,f=s),e[t.axis]=f,e._custom={barStart:u,barEnd:f,start:i,end:a,min:s,max:c}}function Gx(n,e,t,r){return Pn(n)?n5(n,e,t,r):e[t.axis]=t.parse(n,r),e}function Zx(n,e,t,r){const i=n.iScale,a=n.vScale,s=i.getLabels(),c=i===a,u=[];let f,h,g,v;for(f=t,h=t+r;f<h;++f)v=e[f],g={},g[i.axis]=c||i.parse(s[f],f),u.push(Gx(v,g,a,f));return u}function A_(n){return n&&n.barStart!==void 0&&n.barEnd!==void 0}function r5(n,e,t){return n!==0?hs(n):(e.isHorizontal()?1:-1)*(e.min>=t?1:-1)}function i5(n){let e,t,r,i,a;return n.horizontal?(e=n.base>n.x,t="left",r="right"):(e=n.base<n.y,t="bottom",r="top"),e?(i="end",a="start"):(i="start",a="end"),{start:t,end:r,reverse:e,top:i,bottom:a}}function a5(n,e,t,r){let i=e.borderSkipped;const a={};if(!i){n.borderSkipped=a;return}if(i===!0){n.borderSkipped={top:!0,right:!0,bottom:!0,left:!0};return}const{start:s,end:c,reverse:u,top:f,bottom:h}=i5(n);i==="middle"&&t&&(n.enableBorderRadius=!0,(t._top||0)===r?i=f:(t._bottom||0)===r?i=h:(a[Xx(h,s,c,u)]=!0,i=f)),a[Xx(i,s,c,u)]=!0,n.borderSkipped=a}function Xx(n,e,t,r){return r?(n=s5(n,e,t),n=Qx(n,t,e)):n=Qx(n,e,t),n}function s5(n,e,t){return n===e?t:n===t?e:n}function Qx(n,e,t){return n==="start"?e:n==="end"?t:n}
vendor: 7,207 bytes, line 328
328function o5(n,{inflateAmount:e},t){n.inflateAmount=e==="auto"?t===1?.33:0:e}class l5 extends xl{static id="bar";static defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}};static overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};parsePrimitiveData(e,t,r,i){return Zx(e,t,r,i)}parseArrayData(e,t,r,i){return Zx(e,t,r,i)}parseObjectData(e,t,r,i){const{iScale:a,vScale:s}=e,{xAxisKey:c="x",yAxisKey:u="y"}=this._parsing,f=a.axis==="x"?c:u,h=s.axis==="x"?c:u,g=[];let v,y,_,w;for(v=r,y=r+i;v<y;++v)w=t[v],_={},_[a.axis]=a.parse(bl(w,f),v),g.push(Gx(bl(w,h),_,s,v));return g}updateRangeFromParsed(e,t,r,i){super.updateRangeFromParsed(e,t,r,i);const a=r._custom;a&&t===this._cachedMeta.vScale&&(e.min=Math.min(e.min,a.min),e.max=Math.max(e.max,a.max))}getMaxOverflow(){return 0}getLabelAndValue(e){const t=this._cachedMeta,{iScale:r,vScale:i}=t,a=this.getParsed(e),s=a._custom,c=A_(s)?"["+s.start+", "+s.end+"]":""+i.getLabelForValue(a[i.axis]);return{label:""+r.getLabelForValue(a[r.axis]),value:c}}initialize(){this.enableOptionSharing=!0,super.initialize();const e=this._cachedMeta;e.stack=this.getDataset().stack}update(e){const t=this._cachedMeta;this.updateElements(t.data,0,t.data.length,e)}updateElements(e,t,r,i){const a=i==="reset",{index:s,_cachedMeta:{vScale:c}}=this,u=c.getBasePixel(),f=c.isHorizontal(),h=this._getRuler(),{sharedOptions:g,includeOptions:v}=this._getSharedOptions(t,i);for(let y=t;y<t+r;y++){const _=this.getParsed(y),w=a||tn(_[c.axis])?{base:u,head:u}:this._calculateBarValuePixels(y),x=this._calculateBarIndexPixels(y,h),S=(_._stacks||{})[c.axis],T={horizontal:f,base:w.base,enableBorderRadius:!S||A_(_._custom)||s===S._top||s===S._bottom,x:f?w.head:x.center,y:f?x.center:w.head,height:f?x.size:Math.abs(w.size),width:f?Math.abs(w.size):x.size};v&&(T.options=g||this.resolveDataElementOptions(y,e[y].active?"active":i));const M=T.options||e[y].options;a5(T,M,S,s),o5(T,M,h.ratio),this.updateElement(e[y],y,T,i)}}_getStacks(e,t){const{iScale:r}=this._cachedMeta,i=r.getMatchingVisibleMetas(this._type).filter(u=>u.controller.options.grouped),a=r.options.stacked,s=[],c=u=>{const f=u.controller.getParsed(t),h=f&&f[u.vScale.axis];if(tn(h)||isNaN(h))return!0};for(const u of i)if(!(t!==void 0&&c(u))&&((a===!1||s.indexOf(u.stack)===-1||a===void 0&&u.stack===void 0)&&s.push(u.stack),u.index===e))break;return s.length||s.push(void 0),s}_getStackCount(e){return this._getStacks(void 0,e).length}_getStackIndex(e,t,r){const i=this._getStacks(e,r),a=t!==void 0?i.indexOf(t):-1;return a===-1?i.length-1:a}_getRuler(){const e=this.options,t=this._cachedMeta,r=t.iScale,i=[];let a,s;for(a=0,s=t.data.length;a<s;++a)i.push(r.getPixelForValue(this.getParsed(a)[r.axis],a));const c=e.barThickness;return{min:c||JL(t),pixels:i,start:r._startPixel,end:r._endPixel,stackCount:this._getStackCount(),scale:r,grouped:e.grouped,ratio:c?1:e.categoryPercentage*e.barPercentage}}_calculateBarValuePixels(e){const{_cachedMeta:{vScale:t,_stacked:r,index:i},options:{base:a,minBarLength:s}}=this,c=a||0,u=this.getParsed(e),f=u._custom,h=A_(f);let g=u[t.axis],v=0,y=r?this.applyStack(t,u,r):g,_,w;y!==g&&(v=y-g,y=g),h&&(g=f.barStart,y=f.barEnd-f.barStart,g!==0&&hs(g)!==hs(f.barEnd)&&(v=0),v+=g);const x=!tn(a)&&!h?a:v;let S=t.getPixelForValue(x);if(this.chart.getDataVisibility(e)?_=t.getPixelForValue(v+y):_=S,w=_-S,Math.abs(w)<s){w=r5(w,t,c)*s,g===c&&(S-=w/2);const T=t.getPixelForDecimal(0),M=t.getPixelForDecimal(1),C=Math.min(T,M),k=Math.max(T,M);S=Math.max(Math.min(S,k),C),_=S+w,r&&!h&&(u._stacks[t.axis]._visualValues[i]=t.getValueForPixel(_)-t.getValueForPixel(S))}if(S===t.getPixelForValue(c)){const T=hs(w)*t.getLineWidthForValue(c)/2;S+=T,w-=T}return{size:w,base:S,head:_,center:_+w/2}}_calculateBarIndexPixels(e,t){const r=t.scale,i=this.options,a=i.skipNull,s=Rt(i.maxBarThickness,1/0);let c,u;if(t.grouped){const f=a?this._getStackCount(e):t.stackCount,h=i.barThickness==="flex"?t5(e,t,i,f):e5(e,t,i,f),g=this._getStackIndex(this.index,this._cachedMeta.stack,a?e:void 0);c=h.start+h.chunk*g+h.chunk/2,u=Math.min(s,h.chunk*h.ratio)}else c=r.getPixelForValue(this.getParsed(e)[r.axis],e),u=Math.min(s,t.min*t.ratio);return{base:c-u/2,head:c+u/2,center:c,size:u}}draw(){const e=this._cachedMeta,t=e.vScale,r=e.data,i=r.length;let a=0;for(;a<i;++a)this.getParsed(a)[t.axis]!==null&&r[a].draw(this._ctx)}}class c5 extends xl{static id="bubble";static defaults={datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}};static overrides={scales:{x:{type:"linear"},y:{type:"linear"}}};initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(e,t,r,i){const a=super.parsePrimitiveData(e,t,r,i);for(let s=0;s<a.length;s++)a[s]._custom=this.resolveDataElementOptions(s+r).radius;return a}parseArrayData(e,t,r,i){const a=super.parseArrayData(e,t,r,i);for(let s=0;s<a.length;s++){const c=t[r+s];a[s]._custom=Rt(c[2],this.resolveDataElementOptions(s+r).radius)}return a}parseObjectData(e,t,r,i){const a=super.parseObjectData(e,t,r,i);for(let s=0;s<a.length;s++){const c=t[r+s];a[s]._custom=Rt(c&&c.r&&+c.r,this.resolveDataElementOptions(s+r).radius)}return a}getMaxOverflow(){const e=this._cachedMeta.data;let t=0;for(let r=e.length-1;r>=0;--r)t=Math.max(t,e[r].size(this.resolveDataElementOptions(r))/2);return t>0&&t}getLabelAndValue(e){const t=this._cachedMeta,r=this.chart.data.labels||[],{xScale:i,yScale:a}=t,s=this.getParsed(e),c=i.getLabelForValue(s.x),u=a.getLabelForValue(s.y),f=s._custom;return{label:r[e]||"",value:"("+c+", "+u+(f?", "+f:"")+")"}}update(e){const t=this._cachedMeta.data;this.updateElements(t,0,t.length,e)}updateElements(e,t,r,i){const a=i==="reset",{iScale:s,vScale:c}=this._cachedMeta,{sharedOptions:u,includeOptions:f}=this._getSharedOptions(t,i),h=s.axis,g=c.axis;for(let v=t;v<t+r;v++){const y=e[v],_=!a&&this.getParsed(v),w={},x=w[h]=a?s.getPixelForDecimal(.5):s.getPixelForValue(_[h]),S=w[g]=a?c.getBasePixel():c.getPixelForValue(_[g]);w.skip=isNaN(x)||isNaN(S),f&&(w.options=u||this.resolveDataElementOptions(v,y.active?"active":i),a&&(w.options.radius=0)),this.updateElement(y,v,w,i)}}resolveDataElementOptions(e,t){const r=this.getParsed(e);let i=super.resolveDataElementOptions(e,t);i.$shared&&(i=Object.assign({},i,{$shared:!1}));const a=i.radius;return t!=="active"&&(i.radius=0),i.radius+=Rt(r&&r._custom,a),i}}function u5(n,e,t){let r=1,i=1,a=0,s=0;if(e<Bn){const c=n,u=c+e,f=Math.cos(c),h=Math.sin(c),g=Math.cos(u),v=Math.sin(u),y=(M,C,k)=>Gp(M,c,u,!0)?1:Math.max(C,C*t,k,k*t),_=(M,C,k)=>Gp(M,c,u,!0)?-1:Math.min(C,C*t,k,k*t),w=y(0,f,g),x=y(tr,h,v),S=_(Yn,f,g),T=_(Yn+tr,h,v);r=(w-S)/2,i=(x-T)/2,a=-(w+S)/2,s=-(x+T)/2}return{ratioX:r,ratioY:i,offsetX:a,offsetY:s}}class k0 extends xl{static id="doughnut";static defaults={datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}}
328,cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"};static descriptors={_scriptable:e=>e!=="spacing",_indexable:e=>e!=="spacing"&&!e.startsWith("borderDash")&&!e.startsWith("hoverBorderDash")};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){const t=e.data;if(t.labels.length&&t.datasets.length){const{labels:{pointStyle:r,color:i}}=e.legend.options;return t.labels.map((a,s)=>{const u=e.getDatasetMeta(0).controller.getStyle(s);return{text:a,fillStyle:u.backgroundColor,strokeStyle:u.borderColor,fontColor:i,lineWidth:u.borderWidth,pointStyle:r,hidden:!e.getDataVisibility(s),index:s}})}return[]}},onClick(e,t,r){r.chart.toggleDataVisibility(t.index),r.chart.update()}}}};constructor(e,t){super(e,t),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(e,t){const r=this.getDataset().data,i=this._cachedMeta;if(this._parsing===!1)i._parsed=r;else{let a=u=>+r[u];if(qt(r[e])){const{key:u="value"}=this._parsing;a=f=>+bl(r[f],u)}let s,c;for(s=e,c=e+t;s<c;++s)i._parsed[s]=a(s)}}_getRotation(){return ka(this.options.rotation-90)}_getCircumference(){return ka(this.options.circumference)}_getRotationExtents(){let e=Bn,t=-Bn;for(let r=0;r<this.chart.data.datasets.length;++r)if(this.chart.isDatasetVisible(r)&&this.chart.getDatasetMeta(r).type===this._type){const i=this.chart.getDatasetMeta(r).controller,a=i._getRotation(),s=i._getCircumference();e=Math.min(e,a),t=Math.max(t,a+s)}return{rotation:e,circumference:t-e}}update(e){const t=this.chart,{chartArea:r}=t,i=this._cachedMeta,a=i.data,s=this.getMaxBorderWidth()+this.getMaxOffset(a
vendor: 1,767 bytes, line 328
328)+this.options.spacing,c=Math.max((Math.min(r.width,r.height)-s)/2,0),u=Math.min(Ek(this.options.cutout,c),1),f=this._getRingWeight(this.index),{circumference:h,rotation:g}=this._getRotationExtents(),{ratioX:v,ratioY:y,offsetX:_,offsetY:w}=u5(g,h,u),x=(r.width-s)/v,S=(r.height-s)/y,T=Math.max(Math.min(x,S)/2,0),M=X2(this.options.radius,T),C=Math.max(M*u,0),k=(M-C)/this._getVisibleDatasetWeightTotal();this.offsetX=_*M,this.offsetY=w*M,i.total=this.calculateTotal(),this.outerRadius=M-k*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-k*f,0),this.updateElements(a,0,a.length,e)}_circumference(e,t){const r=this.options,i=this._cachedMeta,a=this._getCircumference();return t&&r.animation.animateRotate||!this.chart.getDataVisibility(e)||i._parsed[e]===null||i.data[e].hidden?0:this.calculateCircumference(i._parsed[e]*a/Bn)}updateElements(e,t,r,i){const a=i==="reset",s=this.chart,c=s.chartArea,f=s.options.animation,h=(c.left+c.right)/2,g=(c.top+c.bottom)/2,v=a&&f.animateScale,y=v?0:this.innerRadius,_=v?0:this.outerRadius,{sharedOptions:w,includeOptions:x}=this._getSharedOptions(t,i);let S=this._getRotation(),T;for(T=0;T<t;++T)S+=this._circumference(T,a);for(T=t;T<t+r;++T){const M=this._circumference(T,a),C=e[T],k={x:h+this.offsetX,y:g+this.offsetY,startAngle:S,endAngle:S+M,circumference:M,outerRadius:_,innerRadius:y};x&&(k.options=w||this.resolveDataElementOptions(T,C.active?"active":i)),S+=M,this.updateElement(C,T,k,i)}}calculateTotal(){const e=this._cachedMeta,t=e.data;let r=0,i;for(i=0;i<t.length;i++){const a=e._parsed[i];a!==null&&!isNaN(a)&&this.chart.getDataVisibility(i)&&!t[i].hidden&&(r+=Math.abs(a))}return r}calculateCircumference(e){const t=this._cachedMeta.total;return t>0&&!isNaN(e)?Bn*(Math.abs(e)/t):0}
vendor: 5,613 bytes, line 328
328getLabelAndValue(e){const t=this._cachedMeta,r=this.chart,i=r.data.labels||[],a=Xp(t._parsed[e],r.options.locale);return{label:i[e]||"",value:a}}getMaxBorderWidth(e){let t=0;const r=this.chart;let i,a,s,c,u;if(!e){for(i=0,a=r.data.datasets.length;i<a;++i)if(r.isDatasetVisible(i)){s=r.getDatasetMeta(i),e=s.data,c=s.controller;break}}if(!e)return 0;for(i=0,a=e.length;i<a;++i)u=c.resolveDataElementOptions(i),u.borderAlign!=="inner"&&(t=Math.max(t,u.borderWidth||0,u.hoverBorderWidth||0));return t}getMaxOffset(e){let t=0;for(let r=0,i=e.length;r<i;++r){const a=this.resolveDataElementOptions(r);t=Math.max(t,a.offset||0,a.hoverOffset||0)}return t}_getRingWeightOffset(e){let t=0;for(let r=0;r<e;++r)this.chart.isDatasetVisible(r)&&(t+=this._getRingWeight(r));return t}_getRingWeight(e){return Math.max(Rt(this.chart.data.datasets[e].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}class Kx extends xl{static id="line";static defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1};static overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(e){const t=this._cachedMeta,{dataset:r,data:i=[],_dataset:a}=t,s=this.chart._animationsDisabled;let{start:c,count:u}=ux(t,i,s);this._drawStart=c,this._drawCount=u,dx(t)&&(c=0,u=i.length),r._chart=this.chart,r._datasetIndex=this.index,r._decimated=!!a._decimated,r.points=i;const f=this.resolveDatasetElementOptions(e);this.options.showLine||(f.borderWidth=0),f.segment=this.options.segment,this.updateElement(r,void 0,{animated:!s,options:f},e),this.updateElements(i,c,u,e)}updateElements(e,t,r,i){const a=i==="reset",{iScale:s,vScale:c,_stacked:u,_dataset:f}=this._cachedMeta,{sharedOptions:h,includeOptions:g}=this._getSharedOptions(t,i),v=s.axis,y=c.axis,{spanGaps:_,segment:w}=this.options,x=Kd(_)?_:Number.POSITIVE_INFINITY,S=this.chart._animationsDisabled||a||i==="none",T=t+r,M=e.length;let C=t>0&&this.getParsed(t-1);for(let k=0;k<M;++k){const L=e[k],O=S?L:{};if(k<t||k>=T){O.skip=!0;continue}const I=this.getParsed(k),P=tn(I[y]),B=O[v]=s.getPixelForValue(I[v],k),H=O[y]=a||P?c.getBasePixel():c.getPixelForValue(u?this.applyStack(c,I,u):I[y],k);O.skip=isNaN(B)||isNaN(H)||P,O.stop=k>0&&Math.abs(I[v]-C[v])>x,w&&(O.parsed=I,O.raw=f.data[k]),g&&(O.options=h||this.resolveDataElementOptions(k,L.active?"active":i)),S||this.updateElement(L,k,O,i),C=I}}getMaxOverflow(){const e=this._cachedMeta,t=e.dataset,r=t.options&&t.options.borderWidth||0,i=e.data||[];if(!i.length)return r;const a=i[0].size(this.resolveDataElementOptions(0)),s=i[i.length-1].size(this.resolveDataElementOptions(i.length-1));return Math.max(r,a,s)/2}draw(){const e=this._cachedMeta;e.dataset.updateControlPoints(this.chart.chartArea,e.iScale.axis),super.draw()}}class Jx extends xl{static id="polarArea";static defaults={dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){const t=e.data;if(t.labels.length&&t.datasets.length){const{labels:{pointStyle:r,color:i}}=e.legend.options;return t.labels.map((a,s)=>{const u=e.getDatasetMeta(0).controller.getStyle(s);return{text:a,fillStyle:u.backgroundColor,strokeStyle:u.borderColor,fontColor:i,lineWidth:u.borderWidth,pointStyle:r,hidden:!e.getDataVisibility(s),index:s}})}return[]}},onClick(e,t,r){r.chart.toggleDataVisibility(t.index),r.chart.update()}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}};constructor(e,t){super(e,t),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(e){const t=this._cachedMeta,r=this.chart,i=r.data.labels||[],a=Xp(t._parsed[e].r,r.options.locale);return{label:i[e]||"",value:a}}parseObjectData(e,t,r,i){return Tx.bind(this)(e,t,r,i)}update(e){const t=this._cachedMeta.data;this._updateRadius(),this.updateElements(t,0,t.length,e)}getMinMax(){const e=this._cachedMeta,t={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return e.data.forEach((r,i)=>{const a=this.getParsed(i).r;!isNaN(a)&&this.chart.getDataVisibility(i)&&(a<t.min&&(t.min=a),a>t.max&&(t.max=a))}),t}_updateRadius(){const e=this.chart,t=e.chartArea,r=e.options,i=Math.min(t.right-t.left,t.bottom-t.top),a=Math.max(i/2,0),s=Math.max(r.cutoutPercentage?a/100*r.cutoutPercentage:1,0),c=(a-s)/e.getVisibleDatasetCount();this.outerRadius=a-c*this.index,this.innerRadius=this.outerRadius-c}updateElements(e,t,r,i){const a=i==="reset",s=this.chart,u=s.options.animation,f=this._cachedMeta.rScale,h=f.xCenter,g=f.yCenter,v=f.getIndexAngle(0)-.5*Yn;let y=v,_;const w=360/this.countVisibleElements();for(_=0;_<t;++_)y+=this._computeAngle(_,i,w);for(_=t;_<t+r;_++){const x=e[_];let S=y,T=y+this._computeAngle(_,i,w),M=s.getDataVisibility(_)?f.getDistanceFromCenterForValue(this.getParsed(_).r):0;y=T,a&&(u.animateScale&&(M=0),u.animateRotate&&(S=T=v));const C={x:h,y:g,innerRadius:0,outerRadius:M,startAngle:S,endAngle:T,options:this.resolveDataElementOptions(_,x.active?"active":i)};this.updateElement(x,_,C,i)}}countVisibleElements(){const e=this._cachedMeta;let t=0;return e.data.forEach((r,i)=>{!isNaN(this.getParsed(i).r)&&this.chart.getDataVisibility(i)&&t++}),t}_computeAngle(e,t,r){return this.chart.getDataVisibility(e)?ka(this.resolveDataElementOptions(e,t).angle||r):0}}class d5 extends k0{static id="pie";
vendor: 4,360 bytes, line 328
328static defaults={cutout:0,rotation:0,circumference:360,radius:"100%"}}class f5 extends xl{static id="radar";static defaults={datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}};static overrides={aspectRatio:1,scales:{r:{type:"radialLinear"}}};getLabelAndValue(e){const t=this._cachedMeta.vScale,r=this.getParsed(e);return{label:t.getLabels()[e],value:""+t.getLabelForValue(r[t.axis])}}parseObjectData(e,t,r,i){return Tx.bind(this)(e,t,r,i)}update(e){const t=this._cachedMeta,r=t.dataset,i=t.data||[],a=t.iScale.getLabels();if(r.points=i,e!=="resize"){const s=this.resolveDatasetElementOptions(e);this.options.showLine||(s.borderWidth=0);const c={_loop:!0,_fullLoop:a.length===i.length,options:s};this.updateElement(r,void 0,c,e)}this.updateElements(i,0,i.length,e)}updateElements(e,t,r,i){const a=this._cachedMeta.rScale,s=i==="reset";for(let c=t;c<t+r;c++){const u=e[c],f=this.resolveDataElementOptions(c,u.active?"active":i),h=a.getPointPositionForValue(c,this.getParsed(c).r),g=s?a.xCenter:h.x,v=s?a.yCenter:h.y,y={x:g,y:v,angle:h.angle,skip:isNaN(g)||isNaN(v),options:f};this.updateElement(u,c,y,i)}}}class h5 extends xl{static id="scatter";static defaults={datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1};static overrides={interaction:{mode:"point"},scales:{x:{type:"linear"},y:{type:"linear"}}};getLabelAndValue(e){const t=this._cachedMeta,r=this.chart.data.labels||[],{xScale:i,yScale:a}=t,s=this.getParsed(e),c=i.getLabelForValue(s.x),u=a.getLabelForValue(s.y);return{label:r[e]||"",value:"("+c+", "+u+")"}}update(e){const t=this._cachedMeta,{data:r=[]}=t,i=this.chart._animationsDisabled;let{start:a,count:s}=ux(t,r,i);if(this._drawStart=a,this._drawCount=s,dx(t)&&(a=0,s=r.length),this.options.showLine){const{dataset:c,_dataset:u}=t;c._chart=this.chart,c._datasetIndex=this.index,c._decimated=!!u._decimated,c.points=r;const f=this.resolveDatasetElementOptions(e);f.segment=this.options.segment,this.updateElement(c,void 0,{animated:!i,options:f},e)}this.updateElements(r,a,s,e)}addElements(){const{showLine:e}=this.options;!this.datasetElementType&&e&&(this.datasetElementType=this.chart.registry.getElement("line")),super.addElements()}updateElements(e,t,r,i){const a=i==="reset",{iScale:s,vScale:c,_stacked:u,_dataset:f}=this._cachedMeta,h=this.resolveDataElementOptions(t,i),g=this.getSharedOptions(h),v=this.includeOptions(i,g),y=s.axis,_=c.axis,{spanGaps:w,segment:x}=this.options,S=Kd(w)?w:Number.POSITIVE_INFINITY,T=this.chart._animationsDisabled||a||i==="none";let M=t>0&&this.getParsed(t-1);for(let C=t;C<t+r;++C){const k=e[C],L=this.getParsed(C),O=T?k:{},I=tn(L[_]),P=O[y]=s.getPixelForValue(L[y],C),B=O[_]=a||I?c.getBasePixel():c.getPixelForValue(u?this.applyStack(c,L,u):L[_],C);O.skip=isNaN(P)||isNaN(B)||I,O.stop=C>0&&Math.abs(L[y]-M[y])>S,x&&(O.parsed=L,O.raw=f.data[C]),v&&(O.options=g||this.resolveDataElementOptions(C,k.active?"active":i)),T||this.updateElement(k,C,O,i),M=L}this.updateSharedOptions(g,i,h)}getMaxOverflow(){const e=this._cachedMeta,t=e.data||[];if(!this.options.showLine){let c=0;for(let u=t.length-1;u>=0;--u)c=Math.max(c,t[u].size(this.resolveDataElementOptions(u))/2);return c>0&&c}const r=e.dataset,i=r.options&&r.options.borderWidth||0;if(!t.length)return i;const a=t[0].size(this.resolveDataElementOptions(0)),s=t[t.length-1].size(this.resolveDataElementOptions(t.length-1));return Math.max(i,a,s)/2}}var p5=Object.freeze({__proto__:null,BarController:l5,BubbleController:c5,DoughnutController:k0,LineController:Kx,PieController:d5,PolarAreaController:Jx,RadarController:f5,ScatterController:h5});function nu(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class R_{static override(e){Object.assign(R_.prototype,e)}options;constructor(e){this.options=e||{}}init(){}formats(){return nu()}parse(){return nu()}format(){return nu()}add(){return nu()}diff(){return nu()}startOf(){return nu()}endOf(){return nu()}}var eS={_date:R_};function m5(n,e,t,r){const{controller:i,data:a,_sorted:s}=n,c=i._cachedMeta.iScale;if(c&&e===c.axis&&e!=="r"&&s&&a.length){const u=c._reversePixels?Ik:yo;if(r){if(i._sharedOptions){const f=a[0],h=typeof f.getRange=="function"&&f.getRange(e);if(h){const g=u(a,e,t-h),v=u(a,e,t+h);return{lo:g.lo,hi:v.hi}}}}else return u(a,e,t)}return{lo:0,hi:a.length-1}}
328function tm(n,e,t,r,i){const a=n.getSortedVisibleDatasetMetas(),s=t[e];for(let c=0,u=a.length;c<u;++c){const{index:f,data:h}=a[c],{lo:g,hi:v}=m5(a[c],e,s,i);for(let y=g;y<=v;++y){const _=h[y];_.skip||r(_,f,y)}}}function g5(n){const e=n.indexOf("x")!==-1,t=n.indexOf("y")!==-1;return function(r,i){const a=e?Math.abs(r.x-i.x):0,s=t?Math.abs(r.y-i.y):0;return Math.sqrt(Math.pow(a,2)+Math.pow(s,2))}}function I_(n,e,t,r,i){const a=[];return!i&&!n.isPointInArea(e)||tm(n,t,e,function(c,u,f){!i&&!bo(c,n.chartArea,0)||c.inRange(e.x,e.y,r)&&a.push({element:c,datasetIndex:u,index:f})},!0),a}function v5(n,e,t,r){let i=[];function a(s,c,u){const{startAngle:f,endAngle:h}=s.getProps(["startAngle","endAngle"],r),{angle:g}=ix(s,{x:e.x,y:e.y});Gp(g,f,h)&&i.push({element:s,datasetIndex:c,index:u})}return tm(n,t,e,a),i}function y5(n,e,t,r,i,a){let s=[];const c=g5(t);let u=Number.POSITIVE_INFINITY;function f(h,g,v){const y=h.inRange(e.x,e.y,i);if(r&&!y)return;const _=h.getCenterPoint(i);if(!(!!a||n.isPointInArea(_))&&!y)return;const x=c(e,_);x<u?(s=[{element:h,datasetIndex:g,index:v}],u=x):x===u&&s.push({element:h,datasetIndex:g,index:v})}return tm(n,t,e,f),s}function N_(n,e,t,r,i,a){return!a&&!n.isPointInArea(e)?[]:t==="r"&&!r?v5(n,e,t,i):y5(n,e,t,r,i,a)}function tS(n,e,t,r,i){const a=[],s=t==="x"?"inXRange":"inYRange";let c=!1;return tm(n,t,e,(u,f,h)=>{u[s](e[t],i)&&(a.push({element:u,datasetIndex:f,index:h}),c=c||u.inRange(e.x,e.y,i))}),r&&!c?[]:a}var b5={evaluateInteractionItems:tm,modes:{index(n,e,t,r){const i=eu(e,n),a=t.axis||"x",s=t.
vendor: 5,113 bytes, line 328
328includeInvisible||!1,c=t.intersect?I_(n,i,a,r,s):N_(n,i,a,!1,r,s),u=[];return c.length?(n.getSortedVisibleDatasetMetas().forEach(f=>{const h=c[0].index,g=f.data[h];g&&!g.skip&&u.push({element:g,datasetIndex:f.index,index:h})}),u):[]},dataset(n,e,t,r){const i=eu(e,n),a=t.axis||"xy",s=t.includeInvisible||!1;let c=t.intersect?I_(n,i,a,r,s):N_(n,i,a,!1,r,s);if(c.length>0){const u=c[0].datasetIndex,f=n.getDatasetMeta(u).data;c=[];for(let h=0;h<f.length;++h)c.push({element:f[h],datasetIndex:u,index:h})}return c},point(n,e,t,r){const i=eu(e,n),a=t.axis||"xy",s=t.includeInvisible||!1;return I_(n,i,a,r,s)},nearest(n,e,t,r){const i=eu(e,n),a=t.axis||"xy",s=t.includeInvisible||!1;return N_(n,i,a,t.intersect,r,s)},x(n,e,t,r){const i=eu(e,n);return tS(n,i,"x",t.intersect,r)},y(n,e,t,r){const i=eu(e,n);return tS(n,i,"y",t.intersect,r)}}};const nS=["left","top","right","bottom"];function nm(n,e){return n.filter(t=>t.pos===e)}function rS(n,e){return n.filter(t=>nS.indexOf(t.pos)===-1&&t.box.axis===e)}function rm(n,e){return n.sort((t,r)=>{const i=e?r:t,a=e?t:r;return i.weight===a.weight?i.index-a.index:i.weight-a.weight})}function _5(n){const e=[];let t,r,i,a,s,c;for(t=0,r=(n||[]).length;t<r;++t)i=n[t],{position:a,options:{stack:s,stackWeight:c=1}}=i,e.push({index:t,box:i,pos:a,horizontal:i.isHorizontal(),weight:i.weight,stack:s&&a+s,stackWeight:c});return e}function w5(n){const e={};for(const t of n){const{stack:r,pos:i,stackWeight:a}=t;if(!r||!nS.includes(i))continue;const s=e[r]||(e[r]={count:0,placed:0,weight:0,size:0});s.count++,s.weight+=a}return e}function E5(n,e){const t=w5(n),{vBoxMaxWidth:r,hBoxMaxHeight:i}=e;let a,s,c;for(a=0,s=n.length;a<s;++a){c=n[a];const{fullSize:u}=c.box,f=t[c.stack],h=f&&c.stackWeight/f.weight;c.horizontal?(c.width=h?h*r:u&&e.availableWidth,c.height=i):(c.width=r,c.height=h?h*i:u&&e.availableHeight)}return t}function x5(n){const e=_5(n),t=rm(e.filter(f=>f.box.fullSize),!0),r=rm(nm(e,"left"),!0),i=rm(nm(e,"right")),a=rm(nm(e,"top"),!0),s=rm(nm(e,"bottom")),c=rS(e,"x"),u=rS(e,"y");return{fullSize:t,leftAndTop:r.concat(a),rightAndBottom:i.concat(u).concat(s).concat(c),chartArea:nm(e,"chartArea"),vertical:r.concat(i).concat(u),horizontal:a.concat(s).concat(c)}}function iS(n,e,t,r){return Math.max(n[t],e[t])+Math.max(n[r],e[r])}function aS(n,e){n.top=Math.max(n.top,e.top),n.left=Math.max(n.left,e.left),n.bottom=Math.max(n.bottom,e.bottom),n.right=Math.max(n.right,e.right)}function S5(n,e,t,r){const{pos:i,box:a}=t,s=n.maxPadding;if(!qt(i)){t.size&&(n[i]-=t.size);const g=r[t.stack]||{size:0,count:1};g.size=Math.max(g.size,t.horizontal?a.height:a.width),t.size=g.size/g.count,n[i]+=t.size}a.getPadding&&aS(s,a.getPadding());const c=Math.max(0,e.outerWidth-iS(s,n,"left","right")),u=Math.max(0,e.outerHeight-iS(s,n,"top","bottom")),f=c!==n.w,h=u!==n.h;return n.w=c,n.h=u,t.horizontal?{same:f,other:h}:{same:h,other:f}}function C5(n){const e=n.maxPadding;function t(r){const i=Math.max(e[r]-n[r],0);return n[r]+=i,i}n.y+=t("top"),n.x+=t("left"),t("right"),t("bottom")}function T5(n,e){const t=e.maxPadding;function r(i){const a={left:0,top:0,right:0,bottom:0};return i.forEach(s=>{a[s]=Math.max(e[s],t[s])}),a}return r(n?["left","right"]:["top","bottom"])}function im(n,e,t,r){const i=[];let a,s,c,u,f,h;for(a=0,s=n.length,f=0;a<s;++a){c=n[a],u=c.box,u.update(c.width||e.w,c.height||e.h,T5(c.horizontal,e));const{same:g,other:v}=S5(e,t,c,r);f|=g&&i.length,h=h||v,u.fullSize||i.push(c)}return f&&im(i,e,t,r)||h}function L0(n,e,t,r,i){n.top=t,n.left=e,n.right=e+r,n.bottom=t+i,n.width=r,n.height=i}function sS(n,e,t,r){const i=t.padding;let{x:a,y:s}=e;for(const c of n){const u=c.box,f=r[c.stack]||{count:1,placed:0,weight:1},h=c.stackWeight/f.weight||1;if(c.horizontal){const g=e.w*h,v=f.size||u.height;qp(f.start)&&(s=f.start),u.fullSize?L0(u,i.left,s,t.outerWidth-i.right-i.left,v):L0(u,e.left+f.placed,s,g,v),f.start=s,f.placed+=g,s=u.bottom}else{const g=e.h*h,v=f.size||u.width;qp(f.start)&&(a=f.start),u.fullSize?L0(u,a,i.top,v,t.outerHeight-i.bottom-i.top):L0(u,a,e.top+f.placed,v,g),f.start=a,f.placed+=g,a=u.right}}e.x=a,e.y=s}var Xr={addBox(n,e){n.boxes||(n.boxes=[]),e.fullSize=e.fullSize||!1,e.position=e.position||"top",e.weight=e.weight||0,e._layers=e._layers||function(){return[{z:0,draw(t){e.draw(t)}}]},n.boxes.push(e)},removeBox(n,e){const t=n.boxes?n.boxes.indexOf(e):-1;t!==-1&&n.boxes.splice(t,1)},configure(n,e,t){e.fullSize=t.fullSize,e.position=t.position,e.weight=t.weight},update(n,e,t,r){if(!n)return;const i=Zr(n.options.layout.padding),a=Math.max(e-i.width,0),s=Math.max(t-i.height,0),c=x5(n.boxes),u=c.vertical,f=c.horizontal;yn(n.boxes,w=>{typeof w.beforeLayout=="function"&&w.beforeLayout()});const h=u.reduce((w,x)=>x.box.options&&x.box.options.display===!1?w:w+1,0)||1,g=Object.freeze({outerWidth:e,outerHeight:t,padding:i,availableWidth:a,availableHeight:s,vBoxMaxWidth:a/2/h,hBoxMaxHeight:s/2}),v=Object.assign({},i);aS(v,Zr(r));const y=Object.assign({maxPadding:v,w:a,h:s,x:i.left,y:i.top},i),_=E5(u.concat(f),g);im(c.fullSize,y,g,_),im(u,y,g,_),im(f,y,g,_)&&im(u,y,g,_),C5(y),sS(c.leftAndTop,y,g,_),y.x+=y.w,y.y+=y.h,sS(c.r
328ightAndBottom,y,g,_),n.chartArea={left:y.left,top:y.top,right:y.left+y.w,bottom:y.top+y.h,height:y.h,width:y.w},yn(c.chartArea,w=>{const x=w.box;Object.assign(x,n.chartArea),x.update(y.w,y.h,{left:0,top:0,right:0,bottom:0})})}};class oS{acquireContext(e,t){}releaseContext(e){return!1}addEventListener(e,t,r){}removeEventListener(e,t,r){}getDevicePixelRatio(){return 1}getMaximumSize(e,t,r,i){return t=Math.max(0,t||e.width),r=r||e.height,{width:t,height:Math.max(0,i?Math.floor(t/i):r)}}isAttached(e){return!0}updateConfig(e){}}class M5 extends oS{acquireContext(e){return e&&e.getContext&&e.getContext("2d")||null}updateConfig(e){e.options.animation=!1}}const A0="$chartjs",D5={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},lS=n=>n===null||n==="";function O5(n,e){const t=n.style,r=n.getAttribute("height"),i=n.getAttribute("width");if(n[A0]={initial:{height:r,width:i,style:{display:t.display,height:t.height,width:t.width}}},t.display=t.display||"block",t.boxSizing=t.boxSizing||"border-box",lS(i)){const a=kx(n,"width");a!==void 0&&(n.width=a)}if(lS(r))if(n.style.height==="")n.height=n.width/(e||2);else{const a=kx(n,"height");a!==void 0&&(n.height=a)}return n}const cS=ML?{passive:!0}:!1;function k5(n,e,t){n.addEventListener(e,t,cS)}function L5(n,e,t){n.canvas.removeEventListener(e,t,cS)}function A5(n,e){const t=D5[n.type]||n.type,{x:r,y:i}=eu(n,e);return{type:t,chart:e,native:n,x:r!==void 0?r:null,y:i!==void 0?i:null}}function R0(n,e){for(const t of n)if(t===e||t.contains(e))return!0}function R5(n,e,t){const r=n.canvas,i=new MutationObserver(a=>{let s=!1;for(const c of a)s=s||R0(c.addedNodes,r),s=s&&!R0(c.removedNodes,r);s&&t()});return i.observe(document,{childList:!0,subtree:!0}),i}function I5(n,e,t){const r=n.canvas,i=new MutationObserver(a=>{let s=!1;for(const c of a)s=s||R0(c.removedNodes,r),s=s&&!R0(c.addedNodes,r);s&&t()});return i.observe(document,{childList:!0,subtree:!0}),i}const am=new Map;let uS=0;function dS(){const n=window.devicePixelRatio;n!==uS&&(uS=n,am.forEach((e,t)=>{t.currentDevicePixelRatio!==n&&e()}))}function N5(n,e){am.size||window.addEventListener("resize",dS),am.set(n,e)}function P5(n){am.delete(n),am.size||window.removeEventListener("resize",dS)}function B5(n,e,t){const r=n.canvas,i=r&&O_(r);if(!i)return;const a=cx((c,u)=>{const f=i.clientWidth;t(c,u),f<i.clientWidth&&t()},window),s=new ResizeObserver(c=>{const u=c[0],f=u.contentRect.width,h=u.contentRect.height;f===0&&h===0||a(f,h)});return s.observe(i),N5(n,a),s}function P_(n,e,t){t&&t.disconnect(),e==="resize"&&P5(n)}function H5(n,e,t){const r=n.canvas,i=cx(a=>{n.ctx!==null&&t(A5(a,n))},n);return k5(r,e,i),i}class z5 extends oS{acquireContext(e,t){const r=e&&e.getContext&&e.getContext("2d");return r&&r.canvas===e?(O5(e,t),r):null}releaseContext(e){const t=e.canvas;if(!t[A0])return!1;const r=t[A0].initial;["height","width"].forEach(a=>{const s=r[a];tn(s)?t.removeAttribute(a):t.setAttribute(a,s)});const i=r.style||{};
328return Object.keys(i).forEach(a=>{t.style[a]=i[a]}),t.width=t.width,delete t[A0],!0}addEventListener(e,t,r){this.removeEventListener(e,t);const i=e.$proxies||(e.$proxies={}),s={attach:R5,detach:I5,resize:B5}[t]||H5;i[t]=s(e,t,r)}removeEventListener(e,t){const r=e.$proxies||(e.$proxies={}),i=r[t];if(!i)return;({attach:P_,detach:P_,resize:P_}[t]||L5)(e,t,i),r[t]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(e,t,r,i){return TL(e,t,r,i)}isAttached(e){const t=O_(e);return!!(t&&t.isConnected)}}function F5(n){return!Dx()||typeof OffscreenCanvas<"u"&&n instanceof OffscreenCanvas?M5:z5}class wo{static defaults={};static defaultRoutes=void 0;x;y;active=!1;options;$animations;tooltipPosition(e){const{x:t,y:r}=this.getProps(["x","y"],e);return{x:t,y:r}}hasValue(){return Kd(this.x)&&Kd(this.y)}getProps(e,t){const r=this.$animations;if(!t||!r)return this;const i={};return e.forEach(a=>{i[a]=r[a]&&r[a].active()?r[a]._to:this[a]}),i}}function V5(n,e){const t=n.options.ticks,r=Y5(n),i=Math.min(t.maxTicksLimit||r,r),a=t.major.enabled?W5(e):[],s=a.length,c=a[0],u=a[s-1],f=[];if(s>i)return U5(e,f,a,s/i),f;const h=j5(a,e,i);if(s>0){let g,v;const y=s>1?Math.round((u-c)/(s-1)):null;for(I0(e,f,h,tn(y)?0:c-y,c),g=0,v=s-1;g<v;g++)I0(e,f,h,a[g],a[g+1]);return I0(e,f,h,u,tn(y)?e.length:u+y),f}return I0(e,f,h),f}function Y5(n){const e=n.options.offset,t=n._tickSize(),r=n._length/t+(e?0:1),i=n._maxLength/t;return Math.floor(Math.min(r,i))}function j5(n,e,t){const r=q5(n),i=e.length/t;if(!r)return Math.max(i,1);const a=kk(r);for(let s=0,c=a.length-1;s<c;s++){const u=a[s];if(u>i)return u}return Math.max(i,1)}function W5(n){const e=[];let t,r;for(t=0,r=n.length;t<r;t++)n[t].major&&e.push(t);return e}function U5(n,e,t,r){let i=0,a=t[0],s;for(r=Math.ceil(r),s=0;s<n.length;s++)s===a&&(e.push(n[s]),i++,a=t[i*r])}function I0(n,e,t,r,i){const a=Rt(r,0),s=Math.min(Rt(i,n.length),n.length);let c=0,u,f,h;for(t=Math.ceil(t),i&&(u=i-r,t=u/Math.floor(u/t)),h=a;h<0;)c++,h=Math.round(a+c*t);for(f=Math.max(a,0);f<s;f++)f===h&&(e.push(n[f]),c++,h=Math.round(a+c*t))}function q5(n){const e=n.length;let t,r;if(e<2)return!1;for(r=n[0],t=1;t<e;++t)if(n[t]-n[t-1]!==r)return!1;return r}const $5=n=>n==="left"?"right":n==="right"?"left":n,fS=(n,e,t)=>e==="top"||e==="left"?n[e]+t:n[e]-t,hS=(n,e)=>Math.min(e||n,n);function pS(n,e){const t=[],r=n.length/e,i=n.length;let a=0;for(;a<i;a+=r)t.push(n[Math.floor(a)]);return t}function G5(n,e,t){const r=n.ticks.length,i=Math.min(e,r-1),a=n._startPixel,s=n._endPixel,c=1e-6;let u=n.getPixelForTick(i),f;if(!(t&&(r===1?f=Math.max(u-a,s-u):e===0?f=(n.getPixelForTick(1)-u)/2:f=(u-n.getPixelForTick(i-1))/2,u+=i<e?f:-f,u<a-c||u>s+c)))return u}function Z5(n,e){yn(n,t=>{const r=t.gc,i=r.length/2;let a;if(i>e){for(a=0;a<i;++a)delete t.data[r[a]];r.splice(0,i)}})}function sm(n){return n.drawTicks?n.tickLength:0}function mS(n,e){if(!n.display)return 0;const t=Sr(n.font,e),r=Zr(n.padding);return(Pn(n.text)?n.text.length:1)*t.lineHeight+r.height}function X5(n,e){return El(n,{scale:e,type:"scale"})}function Q5(n,e,t){return El(n,{tick:t,index:e,type:"tick"})}function K5(n,e,t){let r=b_(n);return(t&&e!=="right"||!t&&e==="right")&&(r=$5(r)),r}function J5(n,e,t,r){const{top:i,left:a,bottom:s,right:c,chart:u}=n,{chartArea:f,scales:h}=u;let g=0,v,y,_;const w=s-i,x=c-a;if(n.isHorizontal()){if(y=Gr(r,a,c),qt(t)){const S=Object.keys(t)[0],T=t[S];_=h[S].getPixelForValue(T)+w-e}else t==="center"?_=(f.bottom+f.top)/2+w-e:_=fS(n,t,e);v=c-a}else{if(qt(t)){const S=Object.keys(t)[0],T=t[S];y=h[S].getPixelForValue(T)-x+e}else t==="center"?y=(f.left+f.right)/2-x+e:y=fS(n,t,e);_=Gr(r,s,i),g=t==="left"?-tr:tr}return{titleX:y,titleY:_,maxWidth:v,rotation:g}}class ru extends wo{constructor(e){super(),this.id=e.id,this.type=e.type,this.options=void 0,this.ctx=e.ctx,this.chart=e.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(e){this.options=e.setContext(this.getContext()),this.axis=e.axis,this._userMin=this.parse(e.min),this._userMax=this.parse(e.max),this._suggestedMin=this.parse(e.suggestedMin),this._suggestedMax=this.parse(e.suggestedMax)}parse(e,t){return e}getUserBounds(){let{_userMin:e,_userMax:t,_suggestedMin:r,_suggestedMax:i}=this;return e=Hi(e,Number.POSITIVE_INFINITY),t=Hi(t,Number.NEGATIVE_INFINITY),r=Hi(r,Number.POSITIVE_INFINITY),i=Hi(i,Number.NEGATIVE_INFINITY),{min:Hi(e,r),max:Hi(t,i),minDefined:er(e),maxDefined:er(t)}}getMinMax(e){let{min:t,max:r,minDefined:i,maxDefined:a}=this.getUserBounds(),s;if(i&&a)return{min:t,max:r};const c=this.getMatchingVisibleMetas();for(let u=0,f=c.length;u<f;++u)s=c[u].controller.getMinMax(this,e),i||(t=Math.min(t,s.min)),a||(r=Math.max(r,s.max));return t=a&&t>r?r:t,r=i&&t>r?t:r,{min:Hi(t,Hi(r,t)),max:Hi(r,Hi(t,r))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const e=this.chart.data;return this.options.labels||(this.isHorizontal()?e.xLabels:e.yLabels)||e.labels||[]}
vendor: 4,366 bytes, line 328
328getLabelItems(e=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(e))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){Rn(this.options.beforeUpdate,[this])}update(e,t,r){const{beginAtZero:i,grace:a,ticks:s}=this.options,c=s.sampleSize;this.beforeUpdate(),this.maxWidth=e,this.maxHeight=t,this._margins=r=Object.assign({left:0,right:0,top:0,bottom:0},r),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+r.left+r.right:this.height+r.top+r.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=iL(this,a,i),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const u=c<this.ticks.length;this._convertTicksToLabels(u?pS(this.ticks,c):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),s.display&&(s.autoSkip||s.source==="auto")&&(this.ticks=V5(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),u&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let e=this.options.reverse,t,r;this.isHorizontal()?(t=this.left,r=this.right):(t=this.top,r=this.bottom,e=!e),this._startPixel=t,this._endPixel=r,this._reversePixels=e,this._length=r-t,this._alignToPixels=this.options.alignToPixels}afterUpdate(){Rn(this.options.afterUpdate,[this])}beforeSetDimensions(){Rn(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){Rn(this.options.afterSetDimensions,[this])}_callHooks(e){this.chart.notifyPlugins(e,this.getContext()),Rn(this.options[e],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){Rn(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(e){const t=this.options.ticks;let r,i,a;for(r=0,i=e.length;r<i;r++)a=e[r],a.label=Rn(t.callback,[a.value,r,e],this)}afterTickToLabelConversion(){Rn(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){Rn(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const e=this.options,t=e.ticks,r=hS(this.ticks.length,e.ticks.maxTicksLimit),i=t.minRotation||0,a=t.maxRotation;let s=i,c,u,f;if(!this._isVisible()||!t.display||i>=a||r<=1||!this.isHorizontal()){this.labelRotation=i;return}const h=this._getLabelSizes(),g=h.widest.width,v=h.highest.height,y=kr(this.chart.width-g,0,this.maxWidth);c=e.offset?this.maxWidth/r:y/(r-1),g+6>c&&(c=y/(r-(e.offset?.5:1)),u=this.maxHeight-sm(e.grid)-t.padding-mS(e.title,this.chart.options.font),f=Math.sqrt(g*g+v*v),s=g_(Math.min(Math.asin(kr((h.highest.height+6)/c,-1,1)),Math.asin(kr(u/f,-1,1))-Math.asin(kr(v/f,-1,1)))),s=Math.max(i,Math.min(a,s))),this.labelRotation=s}afterCalculateLabelRotation(){Rn(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){Rn(this.options.beforeFit,[this])}fit(){const e={width:0,height:0},{chart:t,options:{ticks:r,title:i,grid:a}}=this,s=this._isVisible(),c=this.isHorizontal();if(s){const u=mS(i,t.options.font);if(c?(e.width=this.maxWidth,e.height=sm(a)+u):(e.height=this.maxHeight,e.width=sm(a)+u),r.display&&this.ticks.length){const{first:f,last:h,widest:g,highest:v}=this._getLabelSizes(),y=r.padding*2,_=ka(this.labelRotation),w=Math.cos(_),x=Math.sin(_);if(c){const S=r.mirror?0:x*g.width+w*v.height;e.height=Math.min(this.maxHeight,e.height+S+y)}else{const S=r.mirror?0:w*g.width+x*v.height;e.width=Math.min(this.maxWidth,e.width+S+y)}this._calculatePadding(f,h,x,w)}}this._handleMargins(),c?(this.width=this._length=t.width-this._margins.left-this._margins.right,this.height=e.height):(this.width=e.width,this.height=this._length=t.height-this._margins.top-this._margins.bottom)}
vendor: 8,033 bytes, line 328
328_calculatePadding(e,t,r,i){const{ticks:{align:a,padding:s},position:c}=this.options,u=this.labelRotation!==0,f=c!=="top"&&this.axis==="x";if(this.isHorizontal()){const h=this.getPixelForTick(0)-this.left,g=this.right-this.getPixelForTick(this.ticks.length-1);let v=0,y=0;u?f?(v=i*e.width,y=r*t.height):(v=r*e.height,y=i*t.width):a==="start"?y=t.width:a==="end"?v=e.width:a!=="inner"&&(v=e.width/2,y=t.width/2),this.paddingLeft=Math.max((v-h+s)*this.width/(this.width-h),0),this.paddingRight=Math.max((y-g+s)*this.width/(this.width-g),0)}else{let h=t.height/2,g=e.height/2;a==="start"?(h=0,g=e.height):a==="end"&&(h=t.height,g=0),this.paddingTop=h+s,this.paddingBottom=g+s}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){Rn(this.options.afterFit,[this])}isHorizontal(){const{axis:e,position:t}=this.options;return t==="top"||t==="bottom"||e==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(e){this.beforeTickToLabelConversion(),this.generateTickLabels(e);let t,r;for(t=0,r=e.length;t<r;t++)tn(e[t].label)&&(e.splice(t,1),r--,t--);this.afterTickToLabelConversion()}_getLabelSizes(){let e=this._labelSizes;if(!e){const t=this.options.ticks.sampleSize;let r=this.ticks;t<r.length&&(r=pS(r,t)),this._labelSizes=e=this._computeLabelSizes(r,r.length,this.options.ticks.maxTicksLimit)}return e}_computeLabelSizes(e,t,r){const{ctx:i,_longestTextCache:a}=this,s=[],c=[],u=Math.floor(t/hS(t,r));let f=0,h=0,g,v,y,_,w,x,S,T,M,C,k;for(g=0;g<t;g+=u){if(_=e[g].label,w=this._resolveTickFontOptions(g),i.font=x=w.string,S=a[x]=a[x]||{data:{},gc:[]},T=w.lineHeight,M=C=0,!tn(_)&&!Pn(_))M=x0(i,S.data,S.gc,M,_),C=T;else if(Pn(_))for(v=0,y=_.length;v<y;++v)k=_[v],!tn(k)&&!Pn(k)&&(M=x0(i,S.data,S.gc,M,k),C+=T);s.push(M),c.push(C),f=Math.max(M,f),h=Math.max(C,h)}Z5(a,t);const L=s.indexOf(f),O=c.indexOf(h),I=P=>({width:s[P]||0,height:c[P]||0});return{first:I(0),last:I(t-1),widest:I(L),highest:I(O),widths:s,heights:c}}getLabelForValue(e){return e}getPixelForValue(e,t){return NaN}getValueForPixel(e){}getPixelForTick(e){const t=this.ticks;return e<0||e>t.length-1?null:this.getPixelForValue(t[e].value)}getPixelForDecimal(e){this._reversePixels&&(e=1-e);const t=this._startPixel+e*this._length;return Rk(this._alignToPixels?Xc(this.chart,t,0):t)}getDecimalForPixel(e){const t=(e-this._startPixel)/this._length;return this._reversePixels?1-t:t}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:e,max:t}=this;return e<0&&t<0?t:e>0&&t>0?e:0}getContext(e){const t=this.ticks||[];if(e>=0&&e<t.length){const r=t[e];return r.$context||(r.$context=Q5(this.getContext(),e,r))}return this.$context||(this.$context=X5(this.chart.getContext(),this))}_tickSize(){const e=this.options.ticks,t=ka(this.labelRotation),r=Math.abs(Math.cos(t)),i=Math.abs(Math.sin(t)),a=this._getLabelSizes(),s=e.autoSkipPadding||0,c=a?a.widest.width+s:0,u=a?a.highest.height+s:0;return this.isHorizontal()?u*r>c*i?c/r:u/i:u*i<c*r?u/r:c/i}_isVisible(){const e=this.options.display;return e!=="auto"?!!e:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(e){const t=this.axis,r=this.chart,i=this.options,{grid:a,position:s,border:c}=i,u=a.offset,f=this.isHorizontal(),g=this.ticks.length+(u?1:0),v=sm(a),y=[],_=c.setContext(this.getContext()),w=_.display?_.width:0,x=w/2,S=function(ee){return Xc(r,ee,w)};let T,M,C,k,L,O,I,P,B,H,F,$;if(s==="top")T=S(this.bottom),O=this.bottom-v,P=T-x,H=S(e.top)+x,$=e.bottom;else if(s==="bottom")T=S(this.top),H=e.top,$=S(e.bottom)-x,O=T+x,P=this.top+v;else if(s==="left")T=S(this.right),L=this.right-v,I=T-x,B=S(e.left)+x,F=e.right;else if(s==="right")T=S(this.left),B=e.left,F=S(e.right)-x,L=T+x,I=this.left+v;else if(t==="x"){if(s==="center")T=S((e.top+e.bottom)/2+.5);else if(qt(s)){const ee=Object.keys(s)[0],q=s[ee];T=S(this.chart.scales[ee].getPixelForValue(q))}H=e.top,$=e.bottom,O=T+x,P=O+v}else if(t==="y"){if(s==="center")T=S((e.left+e.right)/2);else if(qt(s)){const ee=Object.keys(s)[0],q=s[ee];T=S(this.chart.scales[ee].getPixelForValue(q))}L=T-x,I=L-v,B=e.left,F=e.right}const V=Rt(i.ticks.maxTicksLimit,g),W=Math.max(1,Math.ceil(g/V));for(M=0;M<g;M+=W){const ee=this.getContext(M),q=a.setContext(ee),Y=c.setContext(ee),ae=q.lineWidth,ue=q.color,We=Y.dash||[],be=Y.dashOffset,_e=q.tickWidth,qe=q.tickColor,je=q.tickBorderDash||[],ct=q.tickBorderDashOffset;C=G5(this,M,u),C!==void 0&&(k=Xc(r,C,ae),f?L=I=B=F=k:O=P=H=$=k,y.push({tx1:L,ty1:O,tx2:I,ty2:P,x1:B,y1:H,x2:F,y2:$,width:ae,color:ue,borderDash:We,borderDashOffset:be,tickWidth:_e,tickColor:qe,tickBorderDash:je,tickBorderDashOffset:ct}))}return this._ticksLength=g,this._borderValue=T,y}_computeLabelItems(e){const t=this.axis,r=this.options,{position:i,ticks:a}=r,s=this.isHorizontal(),c=this.ticks,{align:u,crossAlign:f,padding:h,mirror:g}=a,v=sm(r.grid),y=v+h,_=g?-h:y,w=-ka(this.labelRotation),x=[];let S,T,M,C,k,L,O,I,P,B,H,F,$="middle";if(i==="top")L=this.bottom-_,O=this._getXAxisLabelAlignment();else if(i==="bottom")L=this.top+_,O=this._getXAxisLabelAlignment();else if(i==="left"){const W=this._getYAxisLabelAlignment(v);O=W.textAlign,k=W.x}else if(i==="right"){const W=this._getYAxisLabelAlignment(v);O=W.textAlign,k=W.x}else if(t==="x"){if(i==="center")L=(e.top+e.bottom)/2+y;else if(qt(i)){const W=Object.keys(i)[0],ee=i[W];L=this.chart.scales[W].getPixelForValue(ee)+y}O=this._getXAxisLabelAlignment()}else if(t==="y"){if(i==="center")k=(e.left+e.right)/2-y;else if(qt(i)){const W=Object.keys(i)[0],ee=i[W];k=this.chart.scales[W].getPixelForValue(ee)}O=this._getYAxisLabelAlignment(v).textAlign}t==="y"&&(u==="start"?$="top":u==="end"&&($="bottom"));const V=this._getLabelSizes();for(S=0,T=c.length;S<T;++S){M=c[S],C=M.label;const W=a.setContext(this.getContext(S));I=this.getPixelForTick(S)+a.labelOffset,P=this._resolveTickFontOptions(S),B=P.lineHeight,H=Pn(C)?C.length:1;const ee=H/2,q=W.color,Y=W.textStrokeColor,ae=W.textStrokeWidth;let ue=O;s?(k=I,O==="inner"&&(S===T-1?ue=this.options.reverse?"left":"right":S===0?ue=this.options.reverse?"right":"left":ue="center"),i==="top"?f==="near"||w!==0?F=-H*B+B/2:f==="center"?F=-V.highest.height/2-ee*B+B:F=-V.highest.height+B/2:f==="near"||w!==0?F=B/2:f==="center"?F=V.highest.height/2-ee*B:F=V.highest.height-H*B,g&&(F*=-1),w!==0&&!W.showLabelBackdrop&&(k+=B/2*Math.sin(w))):(L=I,F=(1-H)*B/2);let We;if(W.showLabelBackdrop){const be=Zr(W.backdropPadding),_e=V.heights[S],qe=V.widths[S];let je=F-be.top,ct=0-be.left;switch($){case"middle":je-=_e/2;break;case"bottom":je-=_e;break}switch(O){case"center":ct-=qe/2;break;case"right":ct-=qe;break}We={left:ct,top:je,width:qe+be.width,height:_e+be.height,color:W.backdropColor}}x.push({label:C,font:P,textOffset:F,options:{rotation:w,color:q,strokeColor:Y,strokeWidth:ae,textAlign:ue,textBaseline:$,translation:[k,L],backdrop:We}})}return x}_getXAxisLabelAlignment(){const{position:e,ticks:t}=this.options;if(-ka(this.labelRotation))return e==="top"?"left":"right";let i="center";return t.align==="start"?i="left":t.align==="end"?i="right":t.align==="inner"&&(i="inner"),i}_getYAxisLabelAlignment(e){const{position:t,ticks:{crossAlign:r,mirror:i,padding:a}}=this.options,s=this._getLabelSizes(),c=e+a,u=s.widest.width;let f,h;return t==="left"?i?(h=this.right+a,r==="near"?f="left":r==="center"?(f="center",h+=u/2):(f="right",h+=u)):(h=this.right-c,r==="near"?f="right":r==="center"?(f="center",h-=u/2):(f="left",h=this.left)):t==="right"?i?(h=this.left+a,r==="near"?f="right":r==="center"?(f="center",h-=u/2):(f="left",h-=u)):(h=this.left+c,r==="near"?f="left":r==="center"?(f="center",h+=u/2):(f="right",h=this.right)):f="right",{textAlign:f,x:h}}_computeLabelArea(){if(this.options.ticks.mirror)return;const e=this.chart,t=this.options.position;if(t==="left"||t==="right")return{top:0,left:this.left,bottom:e.height,right:this.right};
vendor: 4,873 bytes, line 328
328if(t==="top"||t==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:e.width}}drawBackground(){const{ctx:e,options:{backgroundColor:t},left:r,top:i,width:a,height:s}=this;t&&(e.save(),e.fillStyle=t,e.fillRect(r,i,a,s),e.restore())}getLineWidthForValue(e){const t=this.options.grid;if(!this._isVisible()||!t.display)return 0;const i=this.ticks.findIndex(a=>a.value===e);return i>=0?t.setContext(this.getContext(i)).lineWidth:0}drawGrid(e){const t=this.options.grid,r=this.ctx,i=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(e));let a,s;const c=(u,f,h)=>{!h.width||!h.color||(r.save(),r.lineWidth=h.width,r.strokeStyle=h.color,r.setLineDash(h.borderDash||[]),r.lineDashOffset=h.borderDashOffset,r.beginPath(),r.moveTo(u.x,u.y),r.lineTo(f.x,f.y),r.stroke(),r.restore())};if(t.display)for(a=0,s=i.length;a<s;++a){const u=i[a];t.drawOnChartArea&&c({x:u.x1,y:u.y1},{x:u.x2,y:u.y2},u),t.drawTicks&&c({x:u.tx1,y:u.ty1},{x:u.tx2,y:u.ty2},{color:u.tickColor,width:u.tickWidth,borderDash:u.tickBorderDash,borderDashOffset:u.tickBorderDashOffset})}}drawBorder(){const{chart:e,ctx:t,options:{border:r,grid:i}}=this,a=r.setContext(this.getContext()),s=r.display?a.width:0;if(!s)return;const c=i.setContext(this.getContext(0)).lineWidth,u=this._borderValue;let f,h,g,v;this.isHorizontal()?(f=Xc(e,this.left,s)-s/2,h=Xc(e,this.right,c)+c/2,g=v=u):(g=Xc(e,this.top,s)-s/2,v=Xc(e,this.bottom,c)+c/2,f=h=u),t.save(),t.lineWidth=a.width,t.strokeStyle=a.color,t.beginPath(),t.moveTo(f,g),t.lineTo(h,v),t.stroke(),t.restore()}drawLabels(e){if(!this.options.ticks.display)return;const r=this.ctx,i=this._computeLabelArea();i&&S0(r,i);const a=this.getLabelItems(e);for(const s of a){const c=s.options,u=s.font,f=s.label,h=s.textOffset;Qc(r,f,0,h,u,c)}i&&C0(r)}drawTitle(){const{ctx:e,options:{position:t,title:r,reverse:i}}=this;if(!r.display)return;const a=Sr(r.font),s=Zr(r.padding),c=r.align;let u=a.lineHeight/2;t==="bottom"||t==="center"||qt(t)?(u+=s.bottom,Pn(r.text)&&(u+=a.lineHeight*(r.text.length-1))):u+=s.top;const{titleX:f,titleY:h,maxWidth:g,rotation:v}=J5(this,u,t,c);Qc(e,r.text,0,0,a,{color:r.color,maxWidth:g,rotation:v,textAlign:K5(c,t,i),textBaseline:"middle",translation:[f,h]})}draw(e){this._isVisible()&&(this.drawBackground(),this.drawGrid(e),this.drawBorder(),this.drawTitle(),this.drawLabels(e))}_layers(){const e=this.options,t=e.ticks&&e.ticks.z||0,r=Rt(e.grid&&e.grid.z,-1),i=Rt(e.border&&e.border.z,0);return!this._isVisible()||this.draw!==ru.prototype.draw?[{z:t,draw:a=>{this.draw(a)}}]:[{z:r,draw:a=>{this.drawBackground(),this.drawGrid(a),this.drawTitle()}},{z:i,draw:()=>{this.drawBorder()}},{z:t,draw:a=>{this.drawLabels(a)}}]}getMatchingVisibleMetas(e){const t=this.chart.getSortedVisibleDatasetMetas(),r=this.axis+"AxisID",i=[];let a,s;for(a=0,s=t.length;a<s;++a){const c=t[a];c[r]===this.id&&(!e||c.type===e)&&i.push(c)}return i}_resolveTickFontOptions(e){const t=this.options.ticks.setContext(this.getContext(e));return Sr(t.font)}_maxDigits(){const e=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/e}}class N0{constructor(e,t,r){this.type=e,this.scope=t,this.override=r,this.items=Object.create(null)}isForType(e){return Object.prototype.isPrototypeOf.call(this.type.prototype,e.prototype)}register(e){const t=Object.getPrototypeOf(e);let r;nA(t)&&(r=this.register(t));const i=this.items,a=e.id,s=this.scope+"."+a;if(!a)throw new Error("class does not have id: "+e);return a in i||(i[a]=e,eA(e,s,r),this.override&&nr.override(e.id,e.overrides)),s}get(e){return this.items[e]}unregister(e){const t=this.items,r=e.id,i=this.scope;r in t&&delete t[r],i&&r in nr[i]&&(delete nr[i][r],this.override&&delete Zc[r])}}function eA(n,e,t){const r=Wp(Object.create(null),[t?nr.get(t):{},nr.get(e),n.defaults]);nr.set(e,r),n.defaultRoutes&&tA(e,n.defaultRoutes),n.descriptors&&nr.describe(e,n.descriptors)}function tA(n,e){Object.keys(e).forEach(t=>{const r=t.split("."),i=r.pop(),a=[n].concat(r).join("."),s=e[t].split("."),c=s.pop(),u=s.join(".");nr.route(a,i,u,c)})}function nA(n){return"id"in n&&"defaults"in n}class rA{constructor(){this.controllers=new N0(xl,"datasets",!0),this.elements=new N0(wo,"elements"),this.plugins=new N0(Object,"plugins"),this.scales=new N0(ru,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...e){this._each("register",e)}remove(...e){this._each("unregister",e)}addControllers(...e){this._each("register",e,this.controllers)}addElements(...e){this._each("register",e,this.elements)}addPlugins(...e){this._each("register",e,this.plugins)}addScales(...e){this._each("register",e,this.scales)}getController(e){return this._get(e,this.controllers,"controller")}getElement(e){return this._get(e,this.elements,"element")}getPlugin(e){return this._get(e,this.plugins,"plugin")}getScale(e){return this._get(e,this.scales,"scale")}
328removeControllers(...e){this._each("unregister",e,this.controllers)}removeElements(...e){this._each("unregister",e,this.elements)}removePlugins(...e){this._each("unregister",e,this.plugins)}removeScales(...e){this._each("unregister",e,this.scales)}_each(e,t,r){[...t].forEach(i=>{const a=r||this._getRegistryForType(i);r||a.isForType(i)||a===this.plugins&&i.id?this._exec(e,a,i):yn(i,s=>{const c=r||this._getRegistryForType(s);this._exec(e,c,s)})})}_exec(e,t,r){const i=m_(e);Rn(r["before"+i],[],r),t[e](r),Rn(r["after"+i],[],r)}_getRegistryForType(e){for(let t=0;t<this._typedRegistries.length;t++){const r=this._typedRegistries[t];if(r.isForType(e))return r}return this.plugins}_get(e,t,r){const i=t.get(e);if(i===void 0)throw new Error('"'+e+'" is not a registered '+r+".");return i}}var ps=new rA;class iA{constructor(){this._init=[]}notify(e,t,r,i){t==="beforeInit"&&(this._init=this._createDescriptors(e,!0),this._notify(this._init,e,"install"));const a=i?this._descriptors(e).filter(i):this._descriptors(e),s=this._notify(a,e,t,r);return t==="afterDestroy"&&(this._notify(a,e,"stop"),this._notify(this._init,e,"uninstall")),s}_notify(e,t,r,i){i=i||{};for(const a of e){const s=a.plugin,c=s[r],u=[t,i,a.options];if(Rn(c,u,s)===!1&&i.cancelable)return!1}return!0}invalidate(){tn(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(e){if(this._cache)return this._cache;const t=this._cache=this._createDescriptors(e);return this._notifyStateChanges(e),t}_createDescriptors(e,t){const r=e&&e.config,i=Rt(r.options&&r.options.plugins,{}),a=aA(r);return i===!1&&!t?[]:oA(e,a,i,t)}_notifyStateChanges(e){const t=this._oldCache||[],r=this._cache,i=(a,s)=>a.filter(c=>!s.some(u=>c.plugin.id===u.plugin.id));this._notify(i(t,r),e,"stop"),this._notify(i(r,t),e,"start")}}function aA(n){const e={},t=[],r=Object.keys(ps.plugins.items);for(let a=0;a<r.length;a++)t.push(ps.getPlugin(r[a]));const i=n.plugins||[];for(let a=0;a<i.length;a++){const s=i[a];t.indexOf(s)===-1&&(t.push(s),e[s.id]=!0)}return{plugins:t,localIds:e}}function sA(n,e){return!e&&n===!1?null:n===!0?{}:n}function oA(n,{plugins:e,localIds:t},r,i){const a=[],s=n.getContext();for(const c of e){const u=c.id,f=sA(r[u],i);f!==null&&a.push({plugin:c,options:lA(n.config,{plugin:c,local:t[u]},f,s)})}return a}function lA(n,{plugin:e,local:t},r,i){const a=n.pluginScopeKeys(e),s=n.getOptionScopes(r,a);return t&&e.defaults&&s.push(e.defaults),n.createResolver(s,i,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function B_(n,e){const t=nr.datasets[n]||{};return((e.datasets||{})[n]||{}).indexAxis||e.indexAxis||t.indexAxis||"x"}function cA(n,e){let t=n;return n==="_index_"?t=e:n==="_value_"&&(t=e==="x"?"y":"x"),t}function uA(n,e){return n===e?"_index_":"_value_"}function gS(n){if(n==="x"||n==="y"||n==="r")return n}function dA(n){if(n==="top"||n==="bottom")return"x";if(n==="left"||n==="right")return"y"}function H_(n,...e){if(gS(n))return n;for(const t of e){const r=t.axis||dA(t.position)||n.length>1&&gS(n[0].toLowerCase());if(r)return r}throw new Error(`Cannot determine type of '${n}' axis. Please provide 'axis' or 'position' option.`)}function vS(n,e,t){if(t[e+"AxisID"]===n)return{axis:e}}function fA(n,e){if(e.data&&e.data.datasets){const t=e.data.datasets.filter(r=>r.xAxisID===n||r.yAxisID===n);if(t.length)return vS(n,"x",t[0])||vS(n,"y",t[0])}return{}}function hA(n,e){const t=Zc[n.type]||{scales:{}},r=e.scales||{},i=B_(n.type,e),a=Object.create(null);return Object.keys(r).forEach(s=>{const c=r[s];if(!qt(c))return console.error(`Invalid scale configuration for scale: ${s}`);if(c._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${s}`);const u=H_(s,c,fA(s,n),nr.scales[c.type]),f=uA(u,i),h=t.scales||{};a[s]=Up(Object.create(null),[{axis:u},c,h[u],h[f]])}),n.data.datasets.forEach(s=>{const c=s.type||n.type,u=s.indexAxis||B_(c,e),h=(Zc[c]||{}).scales||{};Object.keys(h).forEach(g=>{const v=cA(g,u),y=s[v+"AxisID"]||v;a[y]=a[y]||Object.create(null),Up(a[y],[{axis:v},r[y],h[g]])})}),Object.keys(a).forEach(s=>{const c=a[s];Up(c,[nr.scales[c.type],nr.scale])}),a}function yS(n){const e=n.options||(n.options={});e.plugins=Rt(e.plugins,{}),e.scales=hA(n,e)}function bS(n){return n=n||{},n.datasets=n.datasets||[],n.labels=n.labels||[],n}function pA(n){return n=n||{},n.data=bS(n.data),yS(n),n}const _S=new Map,wS=new Set;function P0(n,e){let t=_S.get(n);return t||(t=e(),_S.set(n,t),wS.add(t)),t}const om=(n,e,t)=>{const r=bl(e,t);r!==void 0&&n.add(r)};class mA{constructor(e){this._config=pA(e),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(e){this._config.type=e}get data(){return this._config.data}set data(e){this._config.data=bS(e)}get options(){return this._config.options}set options(e){this._config.options=e}get plugins(){return this._config.plugins}update(){const e=this._config;this.clearCache(),yS(e)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(e){return P0(e,()=>[[`datasets.${e}`,""]])}datasetAnimationScopeKeys(e,t){return P0(`${e}.transition.${t}`,()=>[[`datasets.${e}.transitions.${t}`,`transitions.${t}`],[`datasets.${e}`,""]])}datasetElementScopeKeys(e,t){return P0(`${e}-${t}`,()=>[[`datasets.${e}.elements.${t}`,`datasets.${e}`,`elements.${t}`,""]])}
328pluginScopeKeys(e){const t=e.id,r=this.type;return P0(`${r}-plugin-${t}`,()=>[[`plugins.${t}`,...e.additionalOptionScopes||[]]])}_cachedScopes(e,t){const r=this._scopeCache;let i=r.get(e);return(!i||t)&&(i=new Map,r.set(e,i)),i}getOptionScopes(e,t,r){const{options:i,type:a}=this,s=this._cachedScopes(e,r),c=s.get(t);if(c)return c;const u=new Set;t.forEach(h=>{e&&(u.add(e),h.forEach(g=>om(u,e,g))),h.forEach(g=>om(u,i,g)),h.forEach(g=>om(u,Zc[a]||{},g)),h.forEach(g=>om(u,nr,g)),h.forEach(g=>om(u,E_,g))});const f=Array.from(u);return f.length===0&&f.push(Object.create(null)),wS.has(t)&&s.set(t,f),f}chartOptionScopes(){const{options:e,type:t}=this;return[e,Zc[t]||{},nr.datasets[t]||{},{type:t},nr,E_]}resolveNamedOptions(e,t,r,i=[""]){const a={$shared:!0},{resolver:s,subPrefixes:c}=ES(this._resolverCache,e,i);let u=s;if(vA(s,t)){a.$shared=!1,r=_l(r)?r():r;const f=this.createResolver(e,r,c);u=Jd(s,r,f)}for(const f of t)a[f]=u[f];return a}createResolver(e,t,r=[""],i){const{resolver:a}=ES(this._resolverCache,e,r);return qt(t)?Jd(a,t,void 0,i):a}}function ES(n,e,t){let r=n.get(e);r||(r=new Map,n.set(e,r));const i=t.join();let a=r.get(i);return a||(a={resolver:T_(e,t),subPrefixes:t.filter(c=>!c.toLowerCase().includes("hover"))},r.set(i,a)),a}const gA=n=>qt(n)&&Object.getOwnPropertyNames(n).reduce((e,t)=>e||_l(n[t]),!1);function vA(n,e){const{isScriptable:t,isIndexable:r}=_x(n);for(const i of e){const a=t(i),s=r(i),c=(s||a)&&n[i];if(a&&(_l(c)||gA(c))||s&&Pn(c))return!0}return!1}var yA="4.3.0";const bA=["top","bottom","left","right","chartArea"];function xS(n,e){return n==="top"||n==="bottom"||bA.indexOf(n)===-1&&e==="x"}function SS(n,e){return function(t,r){return t[n]===r[n]?t[e]-r[e]:t[n]-r[n]}}function CS(n){const e=n.chart,t=e.options.animation;e.notifyPlugins("afterRender"),Rn(t&&t.onComplete,[n],e)}function _A(n){const e=n.chart,t=e.options.animation;Rn(t&&t.onProgress,[n],e)}function TS(n){return Dx()&&typeof n=="string"?n=document.getElementById(n):n&&n.length&&(n=n[0]),n&&n.canvas&&(n=n.canvas),n}const B0={},MS=n=>{const e=TS(n);return Object.values(B0).filter(t=>t.canvas===e).pop()};function wA(n,e,t){const r=Object.keys(n);for(const i of r){const a=+i;if(a>=e){const s=n[i];delete n[i],(t>0||a>e)&&(n[a+t]=s)}}}function EA(n,e,t,r){return!t||n.type==="mouseout"?null:r?e:n}function xA(n){const{xScale:e,yScale:t}=n;if(e&&t)return{left:e.left,right:e.right,top:t.top,bottom:t.bottom}}class iu{static defaults=nr;static instances=B0;static overrides=Zc;static registry=ps;static version=yA;static getChart=MS;static register(...e){ps.add(...e),DS()}static unregister(...e){ps.remove(...e),DS()}constructor(e,t){const r=this.config=new mA(t),i=TS(e),a=MS(i);if(a)throw new Error("Canvas is already in use. Chart with ID '"+a.id+"' must be destroyed before the canvas with ID '"+a.canvas.id+"' can be reused.");const s=r.createResolver(r.chartOptionScopes(),this.getContext());this.platform=new(r.platform||F5(i)),this.platform.updateConfig(r);const c=this.platform.acquireContext(i,s.aspectRatio),u=c&&c.canvas,f=u&&u.height,h=u&&u.width;if(this.id=wk(),this.ctx=c,this.canvas=u,this.width=h,this.height=f,this._options=s,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new iA,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=Bk(g=>this.update(g),s.resizeDelay||0),this._dataChanges=[],B0[this.id]=this,!c||!u){console.error("Failed to create chart: can't acquire context from the given item");return}_o.listen(this,"complete",CS),_o.listen(this,"progress",_A),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:e,maintainAspectRatio:t},width:r,height:i,_aspectRatio:a}=this;return tn(e)?t&&a?a:i?r/i:null:e}get data(){return this.config.data}set data(e){this.config.data=e}get options(){return this._options}set options(e){this.config.options=e}get registry(){return ps}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():Ox(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return vx(this.canvas,this.ctx),this}stop(){return _o.stop(this),this}resize(e,t){_o.running(this)?this._resizeBeforeDraw={width:e,height:t}:this._resize(e,t)}_resize(e,t){const r=this.options,i=this.canvas,a=r.maintainAspectRatio&&this.aspectRatio,s=this.platform.getMaximumSize(i,e,t,a),c=r.devicePixelRatio||this.platform.getDevicePixelRatio(),u=this.width?"resize":"attach";this.width=s.width,this.height=s.height,this._aspectRatio=this.aspectRatio,Ox(this,c,!0)&&(this.notifyPlugins("resize",{size:s}),Rn(r.onResize,[this,s],this),this.attached&&this._doResize(u)&&this.render())}ensureScalesHaveIDs(){const t=this.options.scales||{};yn(t,(r,i)=>{r.id=i})}buildOrUpdateScales(){const e=this.options,t=e.scales,r=this.scales,i=Object.keys(r).reduce((s,c)=>(s[c]=!1,s),{});let a=[];t&&(a=a.concat(Object.keys(t).map(s=>{const c=t[s],u=H_(s,c),f=u==="r",h=u==="x";return{options:c,dposition:f?"chartArea":h?"bottom":"left",dtype:f?"radialLinear":h?"category":"linear"}}))),yn(a,s=>{const c=s.options,u=c.id,f=H_(u,c),h=Rt(c.type,s.dtype);(c.position===void 0||xS(c.position,f)!==xS(s.dposition))&&(c.position=s.dposition),i[u]=!0;let g=null;if(u in r&&r[u].type===h)g=r[u];else{const v=ps.getScale(h);
328g=new v({id:u,type:h,ctx:this.ctx,chart:this}),r[g.id]=g}g.init(c,e)}),yn(i,(s,c)=>{s||delete r[c]}),yn(r,s=>{Xr.configure(this,s,s.options),Xr.addBox(this,s)})}_updateMetasets(){const e=this._metasets,t=this.data.datasets.length,r=e.length;if(e.sort((i,a)=>i.index-a.index),r>t){for(let i=t;i<r;++i)this._destroyDatasetMeta(i);e.splice(t,r-t)}this._sortedMetasets=e.slice(0).sort(SS("order","index"))}_removeUnreferencedMetasets(){const{_metasets:e,data:{datasets:t}}=this;e.length>t.length&&delete this._stacks,e.forEach((r,i)=>{t.filter(a=>a===r._dataset).length===0&&this._destroyDatasetMeta(i)})}buildOrUpdateControllers(){const e=[],t=this.data.datasets;let r,i;for(this._removeUnreferencedMetasets(),r=0,i=t.length;r<i;r++){const a=t[r];let s=this.getDatasetMeta(r);const c=a.type||this.config.type;if(s.type&&s.type!==c&&(this._destroyDatasetMeta(r),s=this.getDatasetMeta(r)),s.type=c,s.indexAxis=a.indexAxis||B_(c,this.options),s.order=a.order||0,s.index=r,s.label=""+a.label,s.visible=this.isDatasetVisible(r),s.controller)s.controller.updateIndex(r),s.controller.linkScales();else{const u=ps.getController(c),{datasetElementType:f,dataElementType:h}=nr.datasets[c];Object.assign(u,{dataElementType:ps.getElement(h),datasetElementType:f&&ps.getElement(f)}),s.controller=new u(this,r),e.push(s.controller)}}return this._updateMetasets(),e}_resetElements(){yn(this.data.datasets,(e,t)=>{this.getDatasetMeta(t).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(e){const t=this.config;t.update();const r=this._options=t.createResolver(t.chartOptionScopes(),this.getContext()),i=this._animationsDisabled=!r.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:e,cancelable:!0})===!1)return;const a=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let s=0;for(let f=0,h=this.data.datasets.length;f<h;f++){const{controller:g}=this.getDatasetMeta(f),v=!i&&a.indexOf(g)===-1;g.buildOrUpdateElements(v),s=Math.max(+g.getMaxOverflow(),s)}s=this._minPadding=r.layout.autoPadding?s:0,this._updateLayout(s),i||yn(a,f=>{f.reset()}),this._updateDatasets(e),this.notifyPlugins("afterUpdate",{mode:e}),this._layers.sort(SS("z","_idx"));const{_active:c,_lastEvent:u}=this;u?this._eventHandler(u,!0):c.length&&this._updateHoverStyles(c,c,!0),this.render()}_updateScales(){yn(this.scales,e=>{Xr.removeBox(this,e)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const e=this.options,t=new Set(Object.keys(this._listeners)),r=new Set(e.events);(!J2(t,r)||!!this._responsiveListeners!==e.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:e}=this,t=this._getUniformDataChanges()||[];for(const{method:r,start:i,count:a}of t){const s=r==="_removeElements"?-a:a;wA(e,i,s)}}_getUniformDataChanges(){const e=this._dataChanges;if(!e||!e.length)return;this._dataChanges=[];const t=this.data.datasets.length,r=a=>new Set(e.filter(s=>s[0]===a).map((s,c)=>c+","+s.splice(1).join(","))),i=r(0);for(let a=1;a<t;a++)if(!J2(i,r(a)))return;return Array.from(i).map(a=>a.split(",")).map(a=>({method:a[1],start:+a[2],count:+a[3]}))}_updateLayout(e){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;Xr.update(this,this.width,this.height,e);const t=this.chartArea,r=t.width<=0||t.height<=0;this._layers=[],yn(this.boxes,i=>{r&&i.position==="chartArea"||(i.configure&&i.configure(),this._layers.push(...i._layers()))},this),this._layers.forEach((i,a)=>{i._idx=a}),this.notifyPlugins("afterLayout")}_updateDatasets(e){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:e,cancelable:!0})!==!1){for(let t=0,r=this.data.datasets.length;t<r;++t)this.getDatasetMeta(t).controller.configure();for(let t=0,r=this.data.datasets.length;t<r;++t)this._updateDataset(t,_l(e)?e({datasetIndex:t}):e);this.notifyPlugins("afterDatasetsUpdate",{mode:e})}}_updateDataset(e,t){const r=this.getDatasetMeta(e),i={meta:r,index:e,mode:t,cancelable:!0};this.notifyPlugins("beforeDatasetUpdate",i)!==!1&&(r.controller._update(t),i.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",i))}render(){this.notifyPlugins("beforeRender",{cancelable:!0})!==!1&&(_o.has(this)?this.attached&&!_o.running(this)&&_o.start(this):(this.draw(),CS({chart:this})))}draw(){let e;if(this._resizeBeforeDraw){const{width:r,height:i}=this._resizeBeforeDraw;this._resize(r,i),this._resizeBeforeDraw=null}if(this.clear(),this.width<=0||this.height<=0||this.notifyPlugins("beforeDraw",{cancelable:!0})===!1)return;const t=this._layers;for(e=0;e<t.length&&t[e].z<=0;++e)t[e].draw(this.chartArea);for(this._drawDatasets();e<t.length;++e)t[e].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(e){const t=this._sortedMetasets,r=[];let i,a;for(i=0,a=t.length;i<a;++i){const s=t[i];(!e||s.visible)&&r.push(s)}return r}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0})===!1)return;const e=this.getSortedVisibleDatasetMetas();for(let t=e.length-1;t>=0;--t)this._drawDataset(e[t]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(e){const t=this.ctx,r=e._clip,i=!r.disabled,a=xA(e)||this.chartArea,s={meta:e,index:e.index,cancelable:!0};this.notifyPlugins("beforeDatasetDraw",s)!==!1&&(i&&S0(t,{left:r.left===!1?0:a.left-r.left,right:r.right===!1?this.width:a.right+r.right,top:r.top===!1?0:a.top-r.top,bottom:r.bottom===!1?this.height:a.bottom+r.bottom}),e.controller.draw(),i&&C0(t),s.cancelable=!1,this.notifyPlugins("afterDatasetDraw",s))}isPointInArea(e){return bo(e,this.chartArea,this._minPadding)}
vendor: 4,437 bytes, line 328
328getElementsAtEventForMode(e,t,r,i){const a=b5.modes[t];return typeof a=="function"?a(this,e,r,i):[]}getDatasetMeta(e){const t=this.data.datasets[e],r=this._metasets;let i=r.filter(a=>a&&a._dataset===t).pop();return i||(i={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:t&&t.order||0,index:e,_dataset:t,_parsed:[],_sorted:!1},r.push(i)),i}getContext(){return this.$context||(this.$context=El(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(e){const t=this.data.datasets[e];if(!t)return!1;const r=this.getDatasetMeta(e);return typeof r.hidden=="boolean"?!r.hidden:!t.hidden}setDatasetVisibility(e,t){const r=this.getDatasetMeta(e);r.hidden=!t}toggleDataVisibility(e){this._hiddenIndices[e]=!this._hiddenIndices[e]}getDataVisibility(e){return!this._hiddenIndices[e]}_updateVisibility(e,t,r){const i=r?"show":"hide",a=this.getDatasetMeta(e),s=a.controller._resolveAnimations(void 0,i);qp(t)?(a.data[t].hidden=!r,this.update()):(this.setDatasetVisibility(e,r),s.update(a,{visible:r}),this.update(c=>c.datasetIndex===e?i:void 0))}hide(e,t){this._updateVisibility(e,t,!1)}show(e,t){this._updateVisibility(e,t,!0)}_destroyDatasetMeta(e){const t=this._metasets[e];t&&t.controller&&t.controller._destroy(),delete this._metasets[e]}_stop(){let e,t;for(this.stop(),_o.remove(this),e=0,t=this.data.datasets.length;e<t;++e)this._destroyDatasetMeta(e)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:e,ctx:t}=this;this._stop(),this.config.clearCache(),e&&(this.unbindEvents(),vx(e,t),this.platform.releaseContext(t),this.canvas=null,this.ctx=null),delete B0[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...e){return this.canvas.toDataURL(...e)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const e=this._listeners,t=this.platform,r=(a,s)=>{t.addEventListener(this,a,s),e[a]=s},i=(a,s,c)=>{a.offsetX=s,a.offsetY=c,this._eventHandler(a)};yn(this.options.events,a=>r(a,i))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const e=this._responsiveListeners,t=this.platform,r=(u,f)=>{t.addEventListener(this,u,f),e[u]=f},i=(u,f)=>{e[u]&&(t.removeEventListener(this,u,f),delete e[u])},a=(u,f)=>{this.canvas&&this.resize(u,f)};let s;const c=()=>{i("attach",c),this.attached=!0,this.resize(),r("resize",a),r("detach",s)};s=()=>{this.attached=!1,i("resize",a),this._stop(),this._resize(0,0),r("attach",c)},t.isAttached(this.canvas)?c():s()}unbindEvents(){yn(this._listeners,(e,t)=>{this.platform.removeEventListener(this,t,e)}),this._listeners={},yn(this._responsiveListeners,(e,t)=>{this.platform.removeEventListener(this,t,e)}),this._responsiveListeners=void 0}updateHoverStyle(e,t,r){const i=r?"set":"remove";let a,s,c,u;for(t==="dataset"&&(a=this.getDatasetMeta(e[0].datasetIndex),a.controller["_"+i+"DatasetHoverStyle"]()),c=0,u=e.length;c<u;++c){s=e[c];const f=s&&this.getDatasetMeta(s.datasetIndex).controller;f&&f[i+"HoverStyle"](s.element,s.datasetIndex,s.index)}}getActiveElements(){return this._active||[]}setActiveElements(e){const t=this._active||[],r=e.map(({datasetIndex:a,index:s})=>{const c=this.getDatasetMeta(a);if(!c)throw new Error("No dataset found at index "+a);return{datasetIndex:a,element:c.data[s],index:s}});!y0(r,t)&&(this._active=r,this._lastEvent=null,this._updateHoverStyles(r,t))}notifyPlugins(e,t,r){return this._plugins.notify(this,e,t,r)}isPluginEnabled(e){return this._plugins._cache.filter(t=>t.plugin.id===e).length===1}_updateHoverStyles(e,t,r){const i=this.options.hover,a=(u,f)=>u.filter(h=>!f.some(g=>h.datasetIndex===g.datasetIndex&&h.index===g.index)),s=a(t,e),c=r?e:a(e,t);s.length&&this.updateHoverStyle(s,i.mode,!1),c.length&&i.mode&&this.updateHoverStyle(c,i.mode,!0)}_eventHandler(e,t){const r={event:e,replay:t,cancelable:!0,inChartArea:this.isPointInArea(e)},i=s=>(s.options.events||this.options.events).includes(e.native.type);if(this.notifyPlugins("beforeEvent",r,i)===!1)return;const a=this._handleEvent(e,t,r.inChartArea);return r.cancelable=!1,this.notifyPlugins("afterEvent",r,i),(a||r.changed)&&this.render(),this}_handleEvent(e,t,r){const{_active:i=[],options:a}=this,s=t,c=this._getActiveElements(e,i,r,s),u=Mk(e),f=EA(e,this._lastEvent,r,u);r&&(this._lastEvent=null,Rn(a.onHover,[e,c,this],this),u&&Rn(a.onClick,[e,c,this],this));const h=!y0(c,i);
328return(h||t)&&(this._active=c,this._updateHoverStyles(c,i,t)),this._lastEvent=f,h}_getActiveElements(e,t,r,i){if(e.type==="mouseout")return[];if(!r)return t;const a=this.options.hover;return this.getElementsAtEventForMode(e,a.mode,a,i)}}function DS(){return yn(iu.instances,n=>n._plugins.invalidate())}function SA(n,e,t){const{startAngle:r,pixelMargin:i,x:a,y:s,outerRadius:c,innerRadius:u}=e;let f=i/c;n.beginPath(),n.arc(a,s,c,r-f,t+f),u>i?(f=i/u,n.arc(a,s,u,t+f,r-f,!0)):n.arc(a,s,i,t+tr,r-tr),n.closePath(),n.clip()}function CA(n){return C_(n,["outerStart","outerEnd","innerStart","innerEnd"])}function TA(n,e,t,r){const i=CA(n.options.borderRadius),a=(t-e)/2,s=Math.min(a,r*e/2),c=u=>{const f=(t-Math.min(a,u))*r/2;return kr(u,0,Math.min(a,f))};return{outerStart:c(i.outerStart),outerEnd:c(i.outerEnd),innerStart:kr(i.innerStart,0,s),innerEnd:kr(i.innerEnd,0,s)}}function nf(n,e,t,r){return{x:t+n*Math.cos(e),y:r+n*Math.sin(e)}}function H0(n,e,t,r,i,a){const{x:s,y:c,startAngle:u,pixelMargin:f,innerRadius:h}=e,g=Math.max(e.outerRadius+r+t-f,0),v=h>0?h+r+t+f:0;let y=0;const _=i-u;if(r){const W=h>0?h-r:0,ee=g>0?g-r:0,q=(W+ee)/2,Y=q!==0?_*q/(q+r):_;y=(_-Y)/2}const w=Math.max(.001,_*g-t/Yn)/g,x=(_-w)/2,S=u+x+y,T=i-x-y,{outerStart:M,outerEnd:C,innerStart:k,innerEnd:L}=TA(e,v,g,T-S),O=g-M,I=g-C,P=S+M/O,B=T-C/I,H=v+k,F=v+L,$=S+k/H,V=T-L/F;if(n.beginPath(),a){const W=(P+B)/2;if(n.arc(s,c,g,P,W),n.arc(s,c,g,W,B),C>0){const ae=nf(I,B,s,c);n.arc(ae.x,ae.y,C,B,T+tr)}const ee=nf(F,T,s,c);if(n.lineTo(ee.x,ee.y),L>0){const ae=nf(F,V,s,c);n.arc(ae.x,ae.y,L,T+tr,V+Math.PI)}const q=(T-L/v+(S+k/v))/2;if(n.arc(s,c,v,T-L/v,q,!0),n.arc(s,c,v,q,S+k/v,!0),k>0){const ae=nf(H,$,s,c);n.arc(ae.x,ae.y,k,$+Math.PI,S-tr)}const Y=nf(O,S,s,c);if(n.lineTo(Y.x,Y.y),M>0){const ae=nf(O,P,s,c);n.arc(ae.x,ae.y,M,S-tr,P)}}else{n.moveTo(s,c);const W=Math.cos(P)*g+s,ee=Math.sin(P)*g+c;n.lineTo(W,ee);const q=Math.cos(B)*g+s,Y=Math.sin(B)*g+c;n.lineTo(q,Y)}n.closePath()}function MA(n,e,t,r,i){const{fullCircles:a,startAngle:s,circumference:c}=e;let u=e.endAngle;if(a){H0(n,e,t,r,u,i);for(let f=0;f<a;++f)n.fill();isNaN(c)||(u=s+(c%Bn||Bn))}return H0(n,e,t,r,u,i),n.fill(),u}function DA(n,e,t,r,i){const{fullCircles:a,startAngle:s,circumference:c,options:u}=e,{borderWidth:f,borderJoinStyle:h,borderDash:g,borderDashOffset:v}=u,y=u.borderAlign==="inner";if(!f)return;n.setLineDash(g||[]),n.lineDashOffset=v,y?(n.lineWidth=f*2,n.lineJoin=h||"round"):(n.lineWidth=f,n.lineJoin=h||"bevel");let _=e.endAngle;if(a){H0(n,e,t,r,_,i);for(let w=0;w<a;++w)n.stroke();isNaN(c)||(_=s+(c%Bn||Bn))}y&&SA(n,e,_),a||(H0(n,e,t,r,_,i),n.stroke())}class OS extends wo{static id="arc";static defaults={borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0};static defaultRoutes={backgroundColor:"backgroundColor"};static descriptors={_scriptable:!0,_indexable:e=>e!=="borderDash"};circumference;endAngle;fullCircles;innerRadius;outerRadius;pixelMargin;startAngle;constructor(e){super(),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,e&&Object.assign(this,e)}inRange(e,t,r){const i=this.getProps(["x","y"],r),{angle:a,distance:s}=ix(i,{x:e,y:t}),{startAngle:c,endAngle:u,innerRadius:f,outerRadius:h,circumference:g}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],r),v=(this.options.spacing+this.options.borderWidth)/2,_=Rt(g,u-c)>=Bn||Gp(a,c,u),w=vo(s,f+v,h+v);return _&&w}getCenterPoint(e){const{x:t,y:r,startAngle:i,endAngle:a,innerRadius:s,outerRadius:c}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],e),{offset:u,spacing:f}=this.options,h=(i+a)/2,g=(s+c+f+u)/2;return{x:t+Math.cos(h)*g,y:r+Math.sin(h)*g}}tooltipPosition(e){return this.getCenterPoint(e)}draw(e){const{options:t,circumference:r}=this,i=(t.offset||0)/4,a=(t.spacing||0)/2,s=t.circular;if(this.pixelMargin=t.borderAlign==="inner"?.33:0,this.fullCircles=r>Bn?Math.floor(r/Bn):0,r===0||this.innerRadius<0||this.outerRadius<0)return;e.save();const c=(this.startAngle+this.endAngle)/2;e.translate(Math.cos(c)*i,Math.sin(c)*i);const u=1-Math.sin(Math.min(Yn,r||0)),f=i*u;e.fillStyle=t.backgroundColor,e.strokeStyle=t.borderColor,MA(e,this,f,a,s),DA(e,this,f,a,s),e.restore(
vendor: 7,658 bytes, line 328
328)}}function kS(n,e,t=e){n.lineCap=Rt(t.borderCapStyle,e.borderCapStyle),n.setLineDash(Rt(t.borderDash,e.borderDash)),n.lineDashOffset=Rt(t.borderDashOffset,e.borderDashOffset),n.lineJoin=Rt(t.borderJoinStyle,e.borderJoinStyle),n.lineWidth=Rt(t.borderWidth,e.borderWidth),n.strokeStyle=Rt(t.borderColor,e.borderColor)}function OA(n,e,t){n.lineTo(t.x,t.y)}function kA(n){return n.stepped?Zk:n.tension||n.cubicInterpolationMode==="monotone"?Xk:OA}function LS(n,e,t={}){const r=n.length,{start:i=0,end:a=r-1}=t,{start:s,end:c}=e,u=Math.max(i,s),f=Math.min(a,c),h=i<s&&a<s||i>c&&a>c;return{count:r,start:u,loop:e.loop,ilen:f<u&&!h?r+f-u:f-u}}function LA(n,e,t,r){const{points:i,options:a}=e,{count:s,start:c,loop:u,ilen:f}=LS(i,t,r),h=kA(a);let{move:g=!0,reverse:v}=r||{},y,_,w;for(y=0;y<=f;++y)_=i[(c+(v?f-y:y))%s],!_.skip&&(g?(n.moveTo(_.x,_.y),g=!1):h(n,w,_,v,a.stepped),w=_);return u&&(_=i[(c+(v?f:0))%s],h(n,w,_,v,a.stepped)),!!u}function AA(n,e,t,r){const i=e.points,{count:a,start:s,ilen:c}=LS(i,t,r),{move:u=!0,reverse:f}=r||{};let h=0,g=0,v,y,_,w,x,S;const T=C=>(s+(f?c-C:C))%a,M=()=>{w!==x&&(n.lineTo(h,x),n.lineTo(h,w),n.lineTo(h,S))};for(u&&(y=i[T(0)],n.moveTo(y.x,y.y)),v=0;v<=c;++v){if(y=i[T(v)],y.skip)continue;const C=y.x,k=y.y,L=C|0;L===_?(k<w?w=k:k>x&&(x=k),h=(g*h+C)/++g):(M(),n.lineTo(C,k),_=L,g=0,w=x=k),S=k}M()}function z_(n){const e=n.options,t=e.borderDash&&e.borderDash.length;return!n._decimated&&!n._loop&&!e.tension&&e.cubicInterpolationMode!=="monotone"&&!e.stepped&&!t?AA:LA}function RA(n){return n.stepped?DL:n.tension||n.cubicInterpolationMode==="monotone"?OL:tu}function IA(n,e,t,r){let i=e._path;i||(i=e._path=new Path2D,e.path(i,t,r)&&i.closePath()),kS(n,e.options),n.stroke(i)}function NA(n,e,t,r){const{segments:i,options:a}=e,s=z_(e);for(const c of i)kS(n,a,c.style),n.beginPath(),s(n,e,c,{start:t,end:t+r-1})&&n.closePath(),n.stroke()}const PA=typeof Path2D=="function";function BA(n,e,t,r){PA&&!e.options.segment?IA(n,e,t,r):NA(n,e,t,r)}class rf extends wo{static id="line";static defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};static descriptors={_scriptable:!0,_indexable:e=>e!=="borderDash"&&e!=="fill"};constructor(e){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,e&&Object.assign(this,e)}updateControlPoints(e,t){const r=this.options;if((r.tension||r.cubicInterpolationMode==="monotone")&&!r.stepped&&!this._pointsUpdated){const i=r.spanGaps?this._loop:this._fullLoop;_L(this._points,r,e,i,t),this._pointsUpdated=!0}}set points(e){this._points=e,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=NL(this,this.options.segment))}first(){const e=this.segments,t=this.points;return e.length&&t[e[0].start]}last(){const e=this.segments,t=this.points,r=e.length;return r&&t[e[r-1].end]}interpolate(e,t){const r=this.options,i=e[t],a=this.points,s=Px(this,{property:t,start:i,end:i});if(!s.length)return;const c=[],u=RA(r);let f,h;for(f=0,h=s.length;f<h;++f){const{start:g,end:v}=s[f],y=a[g],_=a[v];if(y===_){c.push(y);continue}const w=Math.abs((i-y[t])/(_[t]-y[t])),x=u(y,_,w,r.stepped);x[t]=e[t],c.push(x)}return c.length===1?c[0]:c}pathSegment(e,t,r){return z_(this)(e,this,t,r)}path(e,t,r){const i=this.segments,a=z_(this);let s=this._loop;t=t||0,r=r||this.points.length-t;for(const c of i)s&=a(e,this,c,{start:t,end:t+r-1});return!!s}draw(e,t,r,i){const a=this.options||{};(this.points||[]).length&&a.borderWidth&&(e.save(),BA(e,this,r,i),e.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}function AS(n,e,t,r){const i=n.options,{[t]:a}=n.getProps([t],r);return Math.abs(e-a)<i.radius+i.hitRadius}class F_ extends wo{static id="point";parsed;skip;stop;static defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(e){super(),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,e&&Object.assign(this,e)}inRange(e,t,r){const i=this.options,{x:a,y:s}=this.getProps(["x","y"],r);return Math.pow(e-a,2)+Math.pow(t-s,2)<Math.pow(i.hitRadius+i.radius,2)}inXRange(e,t){return AS(this,e,"x",t)}inYRange(e,t){return AS(this,e,"y",t)}getCenterPoint(e){const{x:t,y:r}=this.getProps(["x","y"],e);return{x:t,y:r}}size(e){e=e||this.options||{};let t=e.radius||0;t=Math.max(t,t&&e.hoverRadius||0);const r=t&&e.borderWidth||0;return(t+r)*2}draw(e,t){const r=this.options;this.skip||r.radius<.1||!bo(this,t,this.size(r)/2)||(e.strokeStyle=r.borderColor,e.lineWidth=r.borderWidth,e.fillStyle=r.backgroundColor,S_(e,r,this.x,this.y))}getRange(){const e=this.options||{};return e.radius+e.hitRadius}}function RS(n,e){const{x:t,y:r,base:i,width:a,height:s}=n.getProps(["x","y","base","width","height"],e);let c,u,f,h,g;return n.horizontal?(g=s/2,c=Math.min(t,i),u=Math.max(t,i),f=r-g,h=r+g):(g=a/2,c=t-g,u=t+g,f=Math.min(r,i),h=Math.max(r,i)),{left:c,top:f,right:u,bottom:h}}function Sl(n,e,t,r){return n?0:kr(e,t,r)}function HA(n,e,t){const r=n.options.borderWidth,i=n.borderSkipped,a=bx(r);return{t:Sl(i.top,a.top,0,t),r:Sl(i.right,a.right,0,e),b:Sl(i.bottom,a.bottom,0,t),l:Sl(i.left,a.left,0,e)}}function zA(n,e,t){const{enableBorderRadius:r}=n.getProps(["enableBorderRadius"]),i=n.options.borderRadius,a=Kc(i),s=Math.min(e,t),c=n.borderSkipped,u=r||qt(i);return{topLeft:Sl(!u||c.top||c.left,a.topLeft,0,s),topRight:Sl(!u||c.top||c.right,a.topRight,0,s),bottomLeft:Sl(!u||c.bottom||c.left,a.bottomLeft,0,s),bottomRight:Sl(!u||c.bottom||c.right,a.bottomRight,0,s)}}function FA(n){const e=RS(n),t=e.right-e.left,r=e.bottom-e.top,i=HA(n,t/2,r/2),a=zA(n,t/2,r/2);return{outer:{x:e.left,y:e.top,w:t,h:r,radius:a},inner:{x:e.left+i.l,y:e.top+i.t,w:t-i.l-i.r,h:r-i.t-i.b,radius:{topLeft:Math.max(0,a.topLeft-Math.max(i.t,i.l)),topRight:Math.max(0,a.topRight-Math.max(i.t,i.r)),bottomLeft:Math.max(0,a.bottomLeft-Math.max(i.b,i.l)),bottomRight:Math.max(0,a.bottomRight-Math.max(i.b,i.r))}}}}function V_(n,e,t,r){const i=e===null,a=t===null,c=n&&!(i&&a)&&RS(n,r);return c&&(i||vo(e,c.left,c.right))&&(a||vo(t,c.top,c.bottom))}function VA(n){return n.topLeft||n.topRight||n.bottomLeft||n.bottomRight}function YA(n,e){n.rect(e.x,e.y,e.w,e.h)}function Y_(n,e,t={}){const r=n.x!==t.x?-e:0,i=n.y!==t.y?-e:0,a=(n.x+n.w!==t.x+t.w?e:0)-r,s=(n.y+n.h!==t.y+t.h?e:0)-i;return{x:n.x+r,y:n.y+i,w:n.w+a,h:n.h+s,radius:n.radius}}class jA extends wo{static id="bar";static defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(e){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,e&&Object.assign(this,e)}draw(e){const{inflateAmount:t,options:{borderColor:r,backgroundColor:i}}=this,{inner:a,outer:s}=FA(this),c=VA(s.radius)?Kp:YA;e.save(),(s.w!==a.w||s.h!==a.h)&&(e.beginPath(),c(e,Y_(s,t,a)),e.clip(),c(e,Y_(a,-t,s)),e.fillStyle=r,e.fill("evenodd")),e.beginPath(),c(e,Y_(a,t)),e.fillStyle=i,e.fill(),e.restore()}inRange(e,t,r){return V_(this,e,t,r)}inXRange(e,t){return V_(this,e,null,t)}inYRange(e,t){return V_(this,null,e,t)}
328getCenterPoint(e){const{x:t,y:r,base:i,horizontal:a}=this.getProps(["x","y","base","horizontal"],e);return{x:a?(t+i)/2:t,y:a?r:(r+i)/2}}getRange(e){return e==="x"?this.width/2:this.height/2}}var WA=Object.freeze({__proto__:null,ArcElement:OS,BarElement:jA,LineElement:rf,PointElement:F_});const j_=["rgb(54, 162, 235)","rgb(255, 99, 132)","rgb(255, 159, 64)","rgb(255, 205, 86)","rgb(75, 192, 192)","rgb(153, 102, 255)","rgb(201, 203, 207)"],IS=j_.map(n=>n.replace("rgb(","rgba(").replace(")",", 0.5)"));function NS(n){return j_[n%j_.length]}function PS(n){return IS[n%IS.length]}function UA(n,e){return n.borderColor=NS(e),n.backgroundColor=PS(e),++e}function qA(n,e){return n.backgroundColor=n.data.map(()=>NS(e++)),e}function $A(n,e){return n.backgroundColor=n.data.map(()=>PS(e++)),e}function GA(n){let e=0;return(t,r)=>{const i=n.getDatasetMeta(r).controller;i instanceof k0?e=qA(t,e):i instanceof Jx?e=$A(t,e):i&&(e=UA(t,e))}}function BS(n){let e;for(e in n)if(n[e].borderColor||n[e].backgroundColor)return!0;return!1}function ZA(n){return n&&(n.borderColor||n.backgroundColor)}var XA={id:"colors",defaults:{enabled:!0,forceOverride:!1},beforeLayout(n,e,t){if(!t.enabled)return;const{data:{datasets:r},options:i}=n.config,{elements:a}=i;if(!t.forceOverride&&(BS(r)||ZA(i)||a&&BS(a)))return;const s=GA(n);r.forEach(s)}};function QA(n,e,t,r,i){const a=i.samples||r;if(a>=t)return n.slice(e,e+t);const s=[],c=(t-2)/(a-2);let u=0;const f=e+t-1;let h=e,g,v,y,_,w;for(s[u++]=n[h],g=0;g<a-2;g++){let x=0,S=0,T;const M=Math.floor((g+1)*c)+1+e,C=Math.min(Math.floor((g+2)*c)+1,t)+e,k=C-M;for(T=M;T<C;T++)x+=n[T].x,S+=n[T].y;x/=k,S/=k;const L=Math.floor(g*c)+1+e,O=Math.min(Math.floor((g+1)*c)+1,t)+e,{x:I,y:P}=n[h];for(y=_=-1,T=L;T<O;T++)_=.5*Math.abs((I-x)*(n[T].y-P)-(I-n[T].x)*(S-P)),_>y&&(y=_,v=n[T],w=T);s[u++]=v,h=w}return s[u++]=n[f],s}function KA(n,e,t,r){let i=0,a=0,s,c,u,f,h,g,v,y,_,w;const x=[],S=e+t-1,T=n[e].x,C=n[S].x-T;for(s=e;s<e+t;++s){c=n[s],u=(c.x-T)/C*r,f=c.y;const k=u|0;if(k===h)f<_?(_=f,g=s):f>w&&(w=f,v=s),i=(a*i+c.x)/++a;else{const L=s-1;if(!tn(g)&&!tn(v)){const O=Math.min(g,v),I=Math.max(g,v);O!==y&&O!==L&&x.push({...n[O],x:i}),I!==y&&I!==L&&x.push({...n[I],x:i})}s>0&&L!==y&&x.push(n[L]),x.push(c),h=k,a=0,_=w=f,g=v=y=s}}return x}function HS(n){if(n._decimated){const e=n._data;delete n._decimated,delete n._data,Object.defineProperty(n,"data",{configurable:!0,enumerable:!0,writable:!0,value:e})}}function zS(n){n.data.datasets.forEach(e=>{HS(e)})}function JA(n,e){const t=e.length;let r=0,i;const{iScale:a}=n,{min:s,max:c,minDefined:u,maxDefined:f}=a.getUserBounds();return u&&(r=kr(yo(e,a.axis,s).lo,0,t-1)),f?i=kr(yo(e,a.axis,c).hi+1,r,t)-r:i=t-r,{start:r,count:i}}var e6={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(n,e,t)=>{if(!t.enabled){zS(n);return}const r=n.width;n.data.datasets.forEach((i,a)=>{const{_data:s,indexAxis:c}=i,u=n.getDatasetMeta(a),f=s||i.data;if(Jp([c,n.options.indexAxis])==="y"||!u.controller.supportsDecimation)return;const h=n.scales[u.xAxisID];if(h.type!=="linear"&&h.type!=="time"||n.options.parsing)return;let{start:g,count:v}=JA(u,f);const y=t.threshold||4*r;if(v<=y){HS(i);return}tn(s)&&(i._data=f,delete i.data,Object.defineProperty(i,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(w){this._data=w}}));let _;switch(t.algorithm){case"lttb":_=QA(f,g,v,r,t);break;case"min-max":_=KA(f,g,v,r);break;default:throw new Error(`Unsupported decimation algorithm '${t.algorithm}'`)}i._decimated=_})},destroy(n){zS(n)}};function t6(n,e,t){const r=n.segments,i=n.points,a=e.points,s=[];for(const c of r){let{start:u,end:f}=c;f=U_(u,f,i);const h=W_(t,i[u],i[f],c.loop);if(!e.segments){s.push({source:c,target:h,start:i[u],end:i[f]});continue}const g=Px(e,h);for(const v of g){const y=W_(t,a[v.start],a[v.end],v.loop),_=Nx(c,i,y);for(const w of _)s.push({source:w,target:v,start:{[t]:FS(h,y,"start",Math.max)},end:{[t]:FS(h,y,"end",Math.min)}})}}return s}function W_(n,e,t,r){if(r)return;let i=e[n],a=t[n];return n==="angle"&&(i=zi(i),a=zi(a)),{property:n,start:i,end:a}}function n6(n,e){const{x:t=null,y:r=null}=n||{},i=e.points,a=[];
328return e.segments.forEach(({start:s,end:c})=>{c=U_(s,c,i);const u=i[s],f=i[c];r!==null?(a.push({x:u.x,y:r}),a.push({x:f.x,y:r})):t!==null&&(a.push({x:t,y:u.y}),a.push({x:t,y:f.y}))}),a}function U_(n,e,t){for(;e>n;e--){const r=t[e];if(!isNaN(r.x)&&!isNaN(r.y))break}return e}function FS(n,e,t,r){return n&&e?r(n[t],e[t]):n?n[t]:e?e[t]:0}function VS(n,e){let t=[],r=!1;return Pn(n)?(r=!0,t=n):t=n6(n,e),t.length?new rf({points:t,options:{tension:0},_loop:r,_fullLoop:r}):null}function YS(n){return n&&n.fill!==!1}function r6(n,e,t){let i=n[e].fill;const a=[e];let s;if(!t)return i;for(;i!==!1&&a.indexOf(i)===-1;){if(!er(i))return i;if(s=n[i],!s)return!1;if(s.visible)return i;a.push(i),i=s.fill}return!1}function i6(n,e,t){const r=l6(n);if(qt(r))return isNaN(r.value)?!1:r;let i=parseFloat(r);return er(i)&&Math.floor(i)===i?a6(r[0],e,i,t):["origin","start","end","stack","shape"].indexOf(r)>=0&&r}function a6(n,e,t,r){return(n==="-"||n==="+")&&(t=e+t),t===e||t<0||t>=r?!1:t}function s6(n,e){let t=null;return n==="start"?t=e.bottom:n==="end"?t=e.top:qt(n)?t=e.getPixelForValue(n.value):e.getBasePixel&&(t=e.getBasePixel()),t}function o6(n,e,t){let r;return n==="start"?r=t:n==="end"?r=e.options.reverse?e.min:e.max:qt(n)?r=n.value:r=e.getBaseValue(),r}function l6(n){const e=n.options,t=e.fill;let r=Rt(t&&t.target,t);return r===void 0&&(r=!!e.backgroundColor),r===!1||r===null?!1:r===!0?"origin":r}function c6(n){const{scale:e,index:t,line:r}=n,i=[],a=r.segments,s=r.points,c=u6(e,t);c.push(VS({x:null,y:e.bottom},r));for(let u=0;u<a.length;u++){const f=a[u];for(let h=f.start;h<=f.end;h++)d6(i,s[h],c)}return new rf({points:i,options:{}})}function u6(n,e){const t=[],r=n.getMatchingVisibleMetas("line");for(let i=0;i<r.length;i++){const a=r[i];if(a.index===e)break;a.hidden||t.unshift(a.dataset)}return t}function d6(n,e,t){const r=[];for(let i=0;i<t.length;i++){const a=t[i],{first:s,last:c,point:u}=f6(a,e,"x");if(!(!u||s&&c)){if(s)r.unshift(u);else if(n.push(u),!c)break}}n.push(...r)}function f6(n,e,t){const r=n.interpolate(e,t);if(!r)return{};const i=r[t],a=n.segments,s=n.points;let c=!1,u=!1;for(let f=0;f<a.length;f++){const h=a[f],g=s[h.start][t],v=s[h.end][t];if(vo(i,g,v)){c=i===g,u=i===v;break}}return{first:c,last:u,point:r}}class jS{constructor(e){this.x=e.x,this.y=e.y,this.radius=e.radius}pathSegment(e,t,r){const{x:i,y:a,radius:s}=this;return t=t||{start:0,end:Bn},e.arc(i,a,s,t.end,t.start,!0),!r.bounds}interpolate(e){const{x:t,y:r,radius:i}=this,a=e.angle;return{x:t+Math.cos(a)*i,y:r+Math.sin(a)*i,angle:a}}}function h6(n){const{chart:e,fill:t,line:r}=n;if(er(t))return p6(e,t);if(t==="stack")return c6(n);if(t==="shape")return!0;const i=m6(n);return i instanceof jS?i:VS(i,r)}function p6(n,e){const t=n.getDatasetMeta(e);return t&&n.isDatasetVisible(e)?t.dataset:null}function m6(n){return(n.scale||{}).getPointPositionForValue?v6(n):g6(n)}function g6(n){const{scale:e={},fill:t}=n,r=s6(t,e);if(er(r)){const i=e.isHorizontal();return{x:i?r:null,y:i?null:r}}return null}function v6(n){const{scale:e,fill:t}=n,r=e.options,i=e.getLabels().length,a=r.reverse?e.max:e.min,s=o6(t,e,a),c=[];if(r.grid.circular){const u=e.getPointPositionForValue(0,a);return new jS({x:u.x,y:u.y,radius:e.getDistanceFromCenterForValue(s)})}for(let u=0;u<i;++u)c.push(e.getPointPositionForValue(u,s));return c}function q_(n,e,t){const r=h6(e),{line:i,scale:a,axis:s}=e,c=i.options,u=c.fill,f=c.backgroundColor,{above:h=f,below:g=f}=u||{};r&&i.points.length&&(S0(n,t),y6(n,{line:i,target:r,above:h,below:g,area:t,scale:a,axis:s}),C0(n))}function y6(n,e){const{line:t,target:r,above:i,below:a,area:s,scale:c}=e,u=t._loop?"angle":e.axis;n.save(),u==="x"&&a!==i&&(WS(n,r,s.top),US(n,{line:t,target:r,color:i,scale:c,property:u}),n.restore(),n.save(),WS(n,r,s.bottom)),US(n,{line:t,target:r,color:a,scale:c,property:u}),n.restore()}function WS(n,e,t){const{segments:r,points:i}=e;let a=!0,s=!1;n.beginPath();for(const c of r){const{start:u,end:f}=c,h=i[u],g=i[U_(u,f,i)];a?(n.moveTo(h.x,h.y),a=!1):(n.lineTo(h.x,t),n.lineTo(h.x,h.y)),s=!!e.pathSegment(n,c,{move:s}),s?n.closePath():n.lineTo(g.x,t)}n.lineTo(e.first().x,t),n.closePath(),n.clip()}function US(n,e){const{line:t,target:r,property:i,color:a,scale:s}=e,c=t6(t,r,i);for(const{source:u,target:f,start:h,end:g}of c){const{style:{backgroundColor:v=a}={}}=u,y=r!==!0;n.save(),n.fillStyle=v,b6(n,s,y&&W_(i,h,g)),n.beginPath();const _=!!t.pathSegment(n,u);let w;if(y){_?n.closePath():qS(n,r,g,i);const x=!!r.pathSegment(n,f,{move:_,reverse:!0});w=_&&x,w||qS(n,r,h,i)}
vendor: 5,206 bytes, line 328
328n.closePath(),n.fill(w?"evenodd":"nonzero"),n.restore()}}function b6(n,e,t){const{top:r,bottom:i}=e.chart.chartArea,{property:a,start:s,end:c}=t||{};a==="x"&&(n.beginPath(),n.rect(s,r,c-s,i-r),n.clip())}function qS(n,e,t,r){const i=e.interpolate(t,r);i&&n.lineTo(i.x,i.y)}var $S={id:"filler",afterDatasetsUpdate(n,e,t){const r=(n.data.datasets||[]).length,i=[];let a,s,c,u;for(s=0;s<r;++s)a=n.getDatasetMeta(s),c=a.dataset,u=null,c&&c.options&&c instanceof rf&&(u={visible:n.isDatasetVisible(s),index:s,fill:i6(c,s,r),chart:n,axis:a.controller.options.indexAxis,scale:a.vScale,line:c}),a.$filler=u,i.push(u);for(s=0;s<r;++s)u=i[s],!(!u||u.fill===!1)&&(u.fill=r6(i,s,t.propagate))},beforeDraw(n,e,t){const r=t.drawTime==="beforeDraw",i=n.getSortedVisibleDatasetMetas(),a=n.chartArea;for(let s=i.length-1;s>=0;--s){const c=i[s].$filler;c&&(c.line.updateControlPoints(a,c.axis),r&&c.fill&&q_(n.ctx,c,a))}},beforeDatasetsDraw(n,e,t){if(t.drawTime!=="beforeDatasetsDraw")return;const r=n.getSortedVisibleDatasetMetas();for(let i=r.length-1;i>=0;--i){const a=r[i].$filler;YS(a)&&q_(n.ctx,a,n.chartArea)}},beforeDatasetDraw(n,e,t){const r=e.meta.$filler;!YS(r)||t.drawTime!=="beforeDatasetDraw"||q_(n.ctx,r,n.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const GS=(n,e)=>{let{boxHeight:t=e,boxWidth:r=e}=n;return n.usePointStyle&&(t=Math.min(t,e),r=n.pointStyleWidth||Math.min(r,e)),{boxWidth:r,boxHeight:t,itemHeight:Math.max(e,t)}},_6=(n,e)=>n!==null&&e!==null&&n.datasetIndex===e.datasetIndex&&n.index===e.index;class ZS extends wo{constructor(e){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=e.chart,this.options=e.options,this.ctx=e.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(e,t,r){this.maxWidth=e,this.maxHeight=t,this._margins=r,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const e=this.options.labels||{};let t=Rn(e.generateLabels,[this.chart],this)||[];e.filter&&(t=t.filter(r=>e.filter(r,this.chart.data))),e.sort&&(t=t.sort((r,i)=>e.sort(r,i,this.chart.data))),this.options.reverse&&t.reverse(),this.legendItems=t}fit(){const{options:e,ctx:t}=this;if(!e.display){this.width=this.height=0;return}const r=e.labels,i=Sr(r.font),a=i.size,s=this._computeTitleHeight(),{boxWidth:c,itemHeight:u}=GS(r,a);let f,h;t.font=i.string,this.isHorizontal()?(f=this.maxWidth,h=this._fitRows(s,a,c,u)+10):(h=this.maxHeight,f=this._fitCols(s,i,c,u)+10),this.width=Math.min(f,e.maxWidth||this.maxWidth),this.height=Math.min(h,e.maxHeight||this.maxHeight)}_fitRows(e,t,r,i){const{ctx:a,maxWidth:s,options:{labels:{padding:c}}}=this,u=this.legendHitBoxes=[],f=this.lineWidths=[0],h=i+c;let g=e;a.textAlign="left",a.textBaseline="middle";let v=-1,y=-h;return this.legendItems.forEach((_,w)=>{const x=r+t/2+a.measureText(_.text).width;(w===0||f[f.length-1]+x+2*c>s)&&(g+=h,f[f.length-(w>0?0:1)]=0,y+=h,v++),u[w]={left:0,top:y,row:v,width:x,height:i},f[f.length-1]+=x+c}),g}_fitCols(e,t,r,i){const{ctx:a,maxHeight:s,options:{labels:{padding:c}}}=this,u=this.legendHitBoxes=[],f=this.columnSizes=[],h=s-e;let g=c,v=0,y=0,_=0,w=0;return this.legendItems.forEach((x,S)=>{const{itemWidth:T,itemHeight:M}=w6(r,t,a,x,i);S>0&&y+M+2*c>h&&(g+=v+c,f.push({width:v,height:y}),_+=v+c,w++,v=y=0),u[S]={left:_,top:y,col:w,width:T,height:M},v=Math.max(v,T),y+=M+c}),g+=v,f.push({width:v,height:y}),g}adjustHitBoxes(){if(!this.options.display)return;const e=this._computeTitleHeight(),{legendHitBoxes:t,options:{align:r,labels:{padding:i},rtl:a}}=this,s=tf(a,this.left,this.width);if(this.isHorizontal()){let c=0,u=Gr(r,this.left+i,this.right-this.lineWidths[c]);for(const f of t)c!==f.row&&(c=f.row,u=Gr(r,this.left+i,this.right-this.lineWidths[c])),f.top+=this.top+e+i,f.left=s.leftForLtr(s.x(u),f.width),u+=f.width+i}else{let c=0,u=Gr(r,this.top+e+i,this.bottom-this.columnSizes[c].height);for(const f of t)f.col!==c&&(c=f.col,u=Gr(r,this.top+e+i,this.bottom-this.columnSizes[c].height)),f.top=u,f.left+=this.left+i,f.left=s.leftForLtr(s.x(f.left),f.width),u+=f.height+i}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const e=this.ctx;S0(e,this),this._draw(),C0(e)}}_draw(){const{options:e,columnSizes:t,lineWidths:r,ctx:i}=this,{align:a,labels:s}=e,c=nr.color,u=tf(e.rtl,this.left,this.width),f=Sr(s.font),{padding:h}=s,g=f.size,v=g/2;let y;this.drawTitle(),i.textAlign=u.textAlign("left"),i.textBaseline="middle",i.lineWidth=.5,i.font=f.string;const{boxWidth:_,boxHeight:w,itemHeight:x}=GS(s,g),S=function(L,O,I){if(isNaN(_)||_<=0||isNaN(w)||w<0)return;i.save();const P=Rt(I.lineWidth,1);if(i.fillStyle=Rt(I.fillStyle,c),i.lineCap=Rt(I.lineCap,"butt"),i.lineDashOffset=Rt(I.lineDashOffset,0),i.lineJoin=Rt
vendor: 1,519 bytes, line 328
328(I.lineJoin,"miter"),i.lineWidth=P,i.strokeStyle=Rt(I.strokeStyle,c),i.setLineDash(Rt(I.lineDash,[])),s.usePointStyle){const B={radius:w*Math.SQRT2/2,pointStyle:I.pointStyle,rotation:I.rotation,borderWidth:P},H=u.xPlus(L,_/2),F=O+v;yx(i,B,H,F,s.pointStyleWidth&&_)}else{const B=O+Math.max((g-w)/2,0),H=u.leftForLtr(L,_),F=Kc(I.borderRadius);i.beginPath(),Object.values(F).some($=>$!==0)?Kp(i,{x:H,y:B,w:_,h:w,radius:F}):i.rect(H,B,_,w),i.fill(),P!==0&&i.stroke()}i.restore()},T=function(L,O,I){Qc(i,I.text,L,O+x/2,f,{strikethrough:I.hidden,textAlign:u.textAlign(I.textAlign)})},M=this.isHorizontal(),C=this._computeTitleHeight();M?y={x:Gr(a,this.left+h,this.right-r[0]),y:this.top+h+C,line:0}:y={x:this.left+h,y:Gr(a,this.top+C+h,this.bottom-t[0].height),line:0},Lx(this.ctx,e.textDirection);const k=x+h;this.legendItems.forEach((L,O)=>{i.strokeStyle=L.fontColor,i.fillStyle=L.fontColor;const I=i.measureText(L.text).width,P=u.textAlign(L.textAlign||(L.textAlign=s.textAlign)),B=_+v+I;let H=y.x,F=y.y;u.setWidth(this.width),M?O>0&&H+B+h>this.right&&(F=y.y+=k,y.line++,H=y.x=Gr(a,this.left+h,this.right-r[y.line])):O>0&&F+k>this.bottom&&(H=y.x=H+t[y.line].width+h,y.line++,F=y.y=Gr(a,this.top+C+h,this.bottom-t[y.line].height));const $=u.x(H);if(S($,F,L),H=Hk(P,H+_+v,M?H+B:this.right,e.rtl),T(u.x(H),F,L),M)y.x+=B+h;else if(typeof L.text!="string"){const V=f.lineHeight;y.y+=XS(L,V)}else y.y+=k}),Ax(this.ctx,e.textDirection)}drawTitle(){const e=this.options,t=e.title,r=Sr(t.font),i=Zr(t.padding);if(!t.display)return;
328const a=tf(e.rtl,this.left,this.width),s=this.ctx,c=t.position,u=r.size/2,f=i.top+u;let h,g=this.left,v=this.width;if(this.isHorizontal())v=Math.max(...this.lineWidths),h=this.top+f,g=Gr(e.align,g,this.right-v);else{const _=this.columnSizes.reduce((w,x)=>Math.max(w,x.height),0);h=f+Gr(e.align,this.top,this.bottom-_-e.labels.padding-this._computeTitleHeight())}const y=Gr(c,g,g+v);s.textAlign=a.textAlign(b_(c)),s.textBaseline="middle",s.strokeStyle=t.color,s.fillStyle=t.color,s.font=r.string,Qc(s,t.text,y,h,r)}_computeTitleHeight(){const e=this.options.title,t=Sr(e.font),r=Zr(e.padding);return e.display?t.lineHeight+r.height:0}_getLegendItemAt(e,t){let r,i,a;if(vo(e,this.left,this.right)&&vo(t,this.top,this.bottom)){for(a=this.legendHitBoxes,r=0;r<a.length;++r)if(i=a[r],vo(e,i.left,i.left+i.width)&&vo(t,i.top,i.top+i.height))return this.legendItems[r]}return null}handleEvent(e){const t=this.options;if(!S6(e.type,t))return;const r=this._getLegendItemAt(e.x,e.y);if(e.type==="mousemove"||e.type==="mouseout"){const i=this._hoveredItem,a=_6(i,r);i&&!a&&Rn(t.onLeave,[e,i,this],this),this._hoveredItem=r,r&&!a&&Rn(t.onHover,[e,r,this],this)}else r&&Rn(t.onClick,[e,r,this],this)}}function w6(n,e,t,r,i){const a=E6(r,n,e,t),s=x6(i,r,e.lineHeight);return{itemWidth:a,itemHeight:s}}function E6(n,e,t,r){let i=n.text;return i&&typeof i!="string"&&(i=i.reduce((a,s)=>a.length>s.length?a:s)),e+t.size/2+r.measureText(i).width}function x6(n,e,t){let r=n;return typeof e.text!="string"&&(r=XS(e,t)),r}function XS(n,e){const t=n.text?n.text.length+.5:0;return e*t}function S6(n,e){return!!((n==="mousemove"||n==="mouseout")&&(e.onHover||e.onLeave)||e.onClick&&(n==="click"||n==="mouseup"))}var $_={id:"legend",_element:ZS,start(n,e,t){const r=n.legend=new ZS({ctx:n.ctx,options:t,chart:n});Xr.configure(n,r,t),Xr.addBox(n,r)},stop(n){Xr.removeBox(n,n.legend),delete n.legend},beforeUpdate(n,e,t){const r=n.legend;Xr.configure(n,r,t),r.options=t},afterUpdate(n){const e=n.legend;e.buildLabels(),e.adjustHitBoxes()},afterEvent(n,e){e.replay||n.legend.handleEvent(e.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(n,e,t){const r=e.datasetIndex,i=t.chart;i.isDatasetVisible(r)?(i.hide(r),e.hidden=!0):(i.show(r),e.hidden=!1)},onHover:null,onLeave:null,labels:{color:n=>n.chart.options.color,boxWidth:40,padding:10,generateLabels(n){const e=n.data.datasets,{labels:{usePointStyle:t,pointStyle:r,textAlign:i,color:a,useBorderRadius:s,borderRadius:c}}=n.legend.options;return n._getSortedDatasetMetas().map(u=>{const f=u.controller.getStyle(t?0:void 0),h=Zr(f.borderWidth);return{text:e[u.index].label,fillStyle:f.backgroundColor,fontColor:a,hidden:!u.visible,lineCap:f.borderCapStyle,lineDash:f.borderDash,lineDashOffset:f.borderDashOffset,lineJoin:f.borderJoinStyle,lineWidth:(h.width+h.height)/4,strokeStyle:f.borderColor,pointStyle:r||f.pointStyle,rotation:f.rotation,textAlign:i||f.textAlign,borderRadius:s&&(c||f.borderRadius),datasetIndex:u.index}},this)}},title:{color:n=>n.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:n=>!n.startsWith("on"),labels:{_scriptable:n=>!["generateLabels","filter","sort"].includes(n)}}};class G_ extends wo{constructor(e){super(),this.chart=e.chart,this.options=e.options,this.ctx=e.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(e,t){const r=this.options;if(this.left=0,this.top=0,!r.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=e,this.height=this.bottom=t;const i=Pn(r.text)?r.text.length:1;this._padding=Zr(r.padding);const a=i*Sr(r.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=a:this.width=a}isHorizontal(){const e=this.options.position;return e==="top"||e==="bottom"}_drawArgs(e){const{top:t,left:r,bottom:i,right:a,options:s}=this,c=s.align;let u=0,f,h,g;return this.isHorizontal()?(h=Gr(c,r,a),g=t+e,f=a-r):(s.position==="left"?(h=r+e,g=Gr(c,i,t),u=Yn*-.5):(h=a-e,g=Gr(c,t,i),u=Yn*.5),f=i-t),{titleX:h,titleY:g,maxWidth:f,rotation:u}}draw(){const e=this.ctx,t=this.options;if(!t.display)return;const r=Sr(t.font),a=r.lineHeight/2+this._padding.top,{titleX:s,titleY:c,maxWidth:u,rotation:f}=this._drawArgs(a);
328Qc(e,t.text,0,0,r,{color:t.color,maxWidth:u,rotation:f,textAlign:b_(t.align),textBaseline:"middle",translation:[s,c]})}}function C6(n,e){const t=new G_({ctx:n.ctx,options:e,chart:n});Xr.configure(n,t,e),Xr.addBox(n,t),n.titleBlock=t}var Z_={id:"title",_element:G_,start(n,e,t){C6(n,t)},stop(n){const e=n.titleBlock;Xr.removeBox(n,e),delete n.titleBlock},beforeUpdate(n,e,t){const r=n.titleBlock;Xr.configure(n,r,t),r.options=t},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const z0=new WeakMap;var T6={id:"subtitle",start(n,e,t){const r=new G_({ctx:n.ctx,options:t,chart:n});Xr.configure(n,r,t),Xr.addBox(n,r),z0.set(n,r)},stop(n){Xr.removeBox(n,z0.get(n)),z0.delete(n)},beforeUpdate(n,e,t){const r=z0.get(n);Xr.configure(n,r,t),r.options=t},defaults:{align:"center",display:!1,font:{weight:"normal"},fullSize:!0,padding:0,position:"top",text:"",weight:1500},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const lm={average(n){if(!n.length)return!1;let e,t,r=0,i=0,a=0;for(e=0,t=n.length;e<t;++e){const s=n[e].element;if(s&&s.hasValue()){const c=s.tooltipPosition();r+=c.x,i+=c.y,++a}}return{x:r/a,y:i/a}},nearest(n,e){if(!n.length)return!1;let t=e.x,r=e.y,i=Number.POSITIVE_INFINITY,a,s,c;for(a=0,s=n.length;a<s;++a){const u=n[a].element;if(u&&u.hasValue()){const f=u.getCenterPoint(),h=v_(e,f);h<i&&(i=h,c=u)}}if(c){const u=c.tooltipPosition();t=u.x,r=u.y}return{x:t,y:r}}};function ms(n,e){return e&&(Pn(e)?Array.prototype.push.apply(n,e):n.push(e)),n}function Eo(n){return(typeof n=="string"||n instanceof String)&&n.indexOf(`
329`)>-1?n.split(`
330`):n}function M6(n,e){const{element:t,datasetIndex:r,index:i}=e,a=n.getDatasetMeta(r).controller,{label:s,value:c}=a.getLabelAndValue(i);return{chart:n,label:s,parsed:a.getParsed(i),raw:n.data.datasets[r].data[i],formattedValue:c,dataset:a.getDataset(),dataIndex:i,datasetIndex:r,element:t}}function QS(n,e){const t=n.chart.ctx,{body:r,footer:i,title:a}=n,{boxWidth:s,boxHeight:c}=e,u=Sr(e.bodyFont),f=Sr(e.titleFont),h=Sr(e.footerFont),g=a.length,v=i.length,y=r.length,_=Zr(e.padding);let w=_.height,x=0,S=r.reduce((C,k)=>C+k.before.length+k.lines.length+k.after.length,0);if(S+=n.beforeBody.length+n.afterBody.length,g&&(w+=g*f.lineHeight+(g-1)*e.titleSpacing+e.titleMarginBottom),S){const C=e.displayColors?Math.max(c,u.lineHeight):u.lineHeight;w+=y*C+(S-y)*u.lineHeight+(S-1)*e.bodySpacing}v&&(w+=e.footerMarginTop+v*h.lineHeight+(v-1)*e.footerSpacing);let T=0;const M=function(C){x=Math.max(x,t.measureText(C).width+T)};return t.save(),t.font=f.string,yn(n.title,M),t.font=u.string,yn(n.beforeBody.concat(n.afterBody),M),T=e.displayColors?s+2+e.boxPadding:0,yn(r,C=>{yn(C.before,M),yn(C.lines,M),yn(C.after,M)}),T=0,t.font=h.string,yn(n.footer,M),t.restore(),x+=_.width,{width:x,height:w}}function D6(n,e){const{y:t,height:r}=e;return t<r/2?"top":t>n.height-r/2?"bottom":"center"}function O6(n,e,t,r){const{x:i,width:a}=r,s=t.caretSize+t.caretPadding;if(n==="left"&&i+a+s>e.width||n==="right"&&i-a-s<0)return!0}function k6(n,e,t,r){const{x:i,width:a}=t,{width:s,chartArea:{left:c,right:u}}=n;let f="center";return r==="center"?f=i<=(c+u)/2?"left":"right":i<=a/2?f="left":i>=s-a/2&&(f="right"),O6(f,n,e,t)&&(f="center"),f}function KS(n,e,t){const r=t.yAlign||e.yAlign||D6(n,t);return{xAlign:t.xAlign||e.xAlign||k6(n,e,t,r),yAlign:r}}function L6(n,e){let{x:t,width:r}=n;return e==="right"?t-=r:e==="center"&&(t-=r/2),t}function A6(n,e,t){let{y:r,height:i}=n;return e==="top"?r+=t:e==="bottom"?r-=i+t:r-=i/2,r}function JS(n,e,t,r){const{caretSize:i,caretPadding:a,cornerRadius:s}=n,{xAlign:c,yAlign:u}=t,f=i+a,{topLeft:h,topRight:g,bottomLeft:v,bottomRight:y}=Kc(s);let _=L6(e,c);const w=A6(e,u,f);return u==="center"?c==="left"?_+=f:c==="right"&&(_-=f):c==="left"?_-=Math.max(h,v)+i:c==="right"&&(_+=Math.max(g,y)+i),{x:kr(_,0,r.width-e.width),y:kr(w,0,r.height-e.height)}}function F0(n,e,t){const r=Zr(t.padding);return e==="center"?n.x+n.width/2:e==="right"?n.x+n.width-r.right:n.x+r.left}function eC(n){return ms([],Eo(n))}function R6(n,e,t){return El(n,{tooltip:e,tooltipItems:t,type:"tooltip"})}function tC(n,e){const t=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return t?n.override(t):n}const nC={beforeTitle:go,title(n){if(n.length>0){const e=n[0],t=e.chart.data.labels,r=t?t.length:0;if(this&&this.options&&this.options.mode==="dataset")return e.dataset.label||"";if(e.label)return e.label;if(r>0&&e.dataIndex<r)return t[e.dataIndex]}return""},afterTitle:go,beforeBody:go,beforeLabel:go,label(n){if(this&&this.options&&this.options.mode==="dataset")return n.label+": "+n.formattedValue||n.formattedValue;let e=n.dataset.label||"";e&&(e+=": ");const t=n.formattedValue;return tn(t)||(e+=t),e},labelColor(n){const t=n.chart.getDatasetMeta(n.datasetIndex).controller.getStyle(n.dataIndex);return{borderColor:t.borderColor,backgroundColor:t.backgroundColor,borderWidth:t.borderWidth,borderDash:t.borderDash,borderDashOffset:t.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(n){const t=n.chart.getDatasetMeta(n.datasetIndex).controller.getStyle(n.dataIndex);return{pointStyle:t.pointStyle,rotation:t.rotation}},afterLabel:go,afterBody:go,beforeFooter:go,footer:go,afterFooter:go};function Ei(n,e,t,r){const i=n[e].call(t,r);return typeof i>"u"?nC[e].call(t,r):i}
vendor: 4,201 bytes, line 330
330class rC extends wo{static positioners=lm;constructor(e){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=e.chart,this.options=e.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(e){this.options=e,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const e=this._cachedAnimations;if(e)return e;const t=this.chart,r=this.options.setContext(this.getContext()),i=r.enabled&&t.options.animation&&r.animations,a=new Fx(this.chart,i);return i._cacheable&&(this._cachedAnimations=Object.freeze(a)),a}getContext(){return this.$context||(this.$context=R6(this.chart.getContext(),this,this._tooltipItems))}getTitle(e,t){const{callbacks:r}=t,i=Ei(r,"beforeTitle",this,e),a=Ei(r,"title",this,e),s=Ei(r,"afterTitle",this,e);let c=[];return c=ms(c,Eo(i)),c=ms(c,Eo(a)),c=ms(c,Eo(s)),c}getBeforeBody(e,t){return eC(Ei(t.callbacks,"beforeBody",this,e))}getBody(e,t){const{callbacks:r}=t,i=[];return yn(e,a=>{const s={before:[],lines:[],after:[]},c=tC(r,a);ms(s.before,Eo(Ei(c,"beforeLabel",this,a))),ms(s.lines,Ei(c,"label",this,a)),ms(s.after,Eo(Ei(c,"afterLabel",this,a))),i.push(s)}),i}getAfterBody(e,t){return eC(Ei(t.callbacks,"afterBody",this,e))}getFooter(e,t){const{callbacks:r}=t,i=Ei(r,"beforeFooter",this,e),a=Ei(r,"footer",this,e),s=Ei(r,"afterFooter",this,e);let c=[];return c=ms(c,Eo(i)),c=ms(c,Eo(a)),c=ms(c,Eo(s)),c}_createItems(e){const t=this._active,r=this.chart.data,i=[],a=[],s=[];let c=[],u,f;for(u=0,f=t.length;u<f;++u)c.push(M6(this.chart,t[u]));return e.filter&&(c=c.filter((h,g,v)=>e.filter(h,g,v,r))),e.itemSort&&(c=c.sort((h,g)=>e.itemSort(h,g,r))),yn(c,h=>{const g=tC(e.callbacks,h);i.push(Ei(g,"labelColor",this,h)),a.push(Ei(g,"labelPointStyle",this,h)),s.push(Ei(g,"labelTextColor",this,h))}),this.labelColors=i,this.labelPointStyles=a,this.labelTextColors=s,this.dataPoints=c,c}update(e,t){const r=this.options.setContext(this.getContext()),i=this._active;let a,s=[];if(!i.length)this.opacity!==0&&(a={opacity:0});else{const c=lm[r.position].call(this,i,this._eventPosition);s=this._createItems(r),this.title=this.getTitle(s,r),this.beforeBody=this.getBeforeBody(s,r),this.body=this.getBody(s,r),this.afterBody=this.getAfterBody(s,r),this.footer=this.getFooter(s,r);const u=this._size=QS(this,r),f=Object.assign({},c,u),h=KS(this.chart,r,f),g=JS(r,f,h,this.chart);this.xAlign=h.xAlign,this.yAlign=h.yAlign,a={opacity:1,x:g.x,y:g.y,width:u.width,height:u.height,caretX:c.x,caretY:c.y}}this._tooltipItems=s,this.$context=void 0,a&&this._resolveAnimations().update(this,a),e&&r.external&&r.external.call(this,{chart:this.chart,tooltip:this,replay:t})}drawCaret(e,t,r,i){const a=this.getCaretPosition(e,r,i);t.lineTo(a.x1,a.y1),t.lineTo(a.x2,a.y2),t.lineTo(a.x3,a.y3)}getCaretPosition(e,t,r){const{xAlign:i,yAlign:a}=this,{caretSize:s,cornerRadius:c}=r,{topLeft:u,topRight:f,bottomLeft:h,bottomRight:g}=Kc(c),{x:v,y}=e,{width:_,height:w}=t;let x,S,T,M,C,k;return a==="center"?(C=y+w/2,i==="left"?(x=v,S=x-s,M=C+s,k=C-s):(x=v+_,S=x+s,M=C-s,k=C+s),T=x):(i==="left"?S=v+Math.max(u,h)+s:i==="right"?S=v+_-Math.max(f,g)-s:S=this.caretX,a==="top"?(M=y,C=M-s,x=S-s,T=S+s):(M=y+w,C=M+s,x=S+s,T=S-s),k=M),{x1:x,x2:S,x3:T,y1:M,y2:C,y3:k}}drawTitle(e,t,r){const i=this.title,a=i.length;let s,c,u;if(a){const f=tf(r.rtl,this.x,this.width);for(e.x=F0(this,r.titleAlign,r),t.textAlign=f.textAlign(r.titleAlign),t.textBaseline="middle",s=Sr(r.titleFont),c=r.titleSpacing,t.fillStyle=r.titleColor,t.font=s.string,u=0;u<a;++u)t.fillText(i[u],f.x(e.x),e.y+s.lineHeight/2),e.y+=s.lineHeight+c,u+1===a&&(e.y+=r.titleMarginBottom-c)}}_drawColorBox(e,t,r,i,a){const s=this.labelColors[r],c=this.labelPointStyles[r],{boxHeight:u,boxWidth:f}=a,h=Sr(a.bodyFont),g=F0(this,"left",a),v=i.x(g),y=u<h.lineHeight?(h.lineHeight-u)/2:0,_=t.y+y;
vendor: 5,796 bytes, line 330
330if(a.usePointStyle){const w={radius:Math.min(f,u)/2,pointStyle:c.pointStyle,rotation:c.rotation,borderWidth:1},x=i.leftForLtr(v,f)+f/2,S=_+u/2;e.strokeStyle=a.multiKeyBackground,e.fillStyle=a.multiKeyBackground,S_(e,w,x,S),e.strokeStyle=s.borderColor,e.fillStyle=s.backgroundColor,S_(e,w,x,S)}else{e.lineWidth=qt(s.borderWidth)?Math.max(...Object.values(s.borderWidth)):s.borderWidth||1,e.strokeStyle=s.borderColor,e.setLineDash(s.borderDash||[]),e.lineDashOffset=s.borderDashOffset||0;const w=i.leftForLtr(v,f),x=i.leftForLtr(i.xPlus(v,1),f-2),S=Kc(s.borderRadius);Object.values(S).some(T=>T!==0)?(e.beginPath(),e.fillStyle=a.multiKeyBackground,Kp(e,{x:w,y:_,w:f,h:u,radius:S}),e.fill(),e.stroke(),e.fillStyle=s.backgroundColor,e.beginPath(),Kp(e,{x,y:_+1,w:f-2,h:u-2,radius:S}),e.fill()):(e.fillStyle=a.multiKeyBackground,e.fillRect(w,_,f,u),e.strokeRect(w,_,f,u),e.fillStyle=s.backgroundColor,e.fillRect(x,_+1,f-2,u-2))}e.fillStyle=this.labelTextColors[r]}drawBody(e,t,r){const{body:i}=this,{bodySpacing:a,bodyAlign:s,displayColors:c,boxHeight:u,boxWidth:f,boxPadding:h}=r,g=Sr(r.bodyFont);let v=g.lineHeight,y=0;const _=tf(r.rtl,this.x,this.width),w=function(I){t.fillText(I,_.x(e.x+y),e.y+v/2),e.y+=v+a},x=_.textAlign(s);let S,T,M,C,k,L,O;for(t.textAlign=s,t.textBaseline="middle",t.font=g.string,e.x=F0(this,x,r),t.fillStyle=r.bodyColor,yn(this.beforeBody,w),y=c&&x!=="right"?s==="center"?f/2+h:f+2+h:0,C=0,L=i.length;C<L;++C){for(S=i[C],T=this.labelTextColors[C],t.fillStyle=T,yn(S.before,w),M=S.lines,c&&M.length&&(this._drawColorBox(t,e,C,_,r),v=Math.max(g.lineHeight,u)),k=0,O=M.length;k<O;++k)w(M[k]),v=g.lineHeight;yn(S.after,w)}y=0,v=g.lineHeight,yn(this.afterBody,w),e.y-=a}drawFooter(e,t,r){const i=this.footer,a=i.length;let s,c;if(a){const u=tf(r.rtl,this.x,this.width);for(e.x=F0(this,r.footerAlign,r),e.y+=r.footerMarginTop,t.textAlign=u.textAlign(r.footerAlign),t.textBaseline="middle",s=Sr(r.footerFont),t.fillStyle=r.footerColor,t.font=s.string,c=0;c<a;++c)t.fillText(i[c],u.x(e.x),e.y+s.lineHeight/2),e.y+=s.lineHeight+r.footerSpacing}}drawBackground(e,t,r,i){const{xAlign:a,yAlign:s}=this,{x:c,y:u}=e,{width:f,height:h}=r,{topLeft:g,topRight:v,bottomLeft:y,bottomRight:_}=Kc(i.cornerRadius);t.fillStyle=i.backgroundColor,t.strokeStyle=i.borderColor,t.lineWidth=i.borderWidth,t.beginPath(),t.moveTo(c+g,u),s==="top"&&this.drawCaret(e,t,r,i),t.lineTo(c+f-v,u),t.quadraticCurveTo(c+f,u,c+f,u+v),s==="center"&&a==="right"&&this.drawCaret(e,t,r,i),t.lineTo(c+f,u+h-_),t.quadraticCurveTo(c+f,u+h,c+f-_,u+h),s==="bottom"&&this.drawCaret(e,t,r,i),t.lineTo(c+y,u+h),t.quadraticCurveTo(c,u+h,c,u+h-y),s==="center"&&a==="left"&&this.drawCaret(e,t,r,i),t.lineTo(c,u+g),t.quadraticCurveTo(c,u,c+g,u),t.closePath(),t.fill(),i.borderWidth>0&&t.stroke()}_updateAnimationTarget(e){const t=this.chart,r=this.$animations,i=r&&r.x,a=r&&r.y;if(i||a){const s=lm[e.position].call(this,this._active,this._eventPosition);if(!s)return;const c=this._size=QS(this,e),u=Object.assign({},s,this._size),f=KS(t,e,u),h=JS(e,u,f,t);(i._to!==h.x||a._to!==h.y)&&(this.xAlign=f.xAlign,this.yAlign=f.yAlign,this.width=c.width,this.height=c.height,this.caretX=s.x,this.caretY=s.y,this._resolveAnimations().update(this,h))}}_willRender(){return!!this.opacity}draw(e){const t=this.options.setContext(this.getContext());let r=this.opacity;if(!r)return;this._updateAnimationTarget(t);const i={width:this.width,height:this.height},a={x:this.x,y:this.y};r=Math.abs(r)<.001?0:r;const s=Zr(t.padding),c=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;t.enabled&&c&&(e.save(),e.globalAlpha=r,this.drawBackground(a,e,i,t),Lx(e,t.textDirection),a.y+=s.top,this.drawTitle(a,e,t),this.drawBody(a,e,t),this.drawFooter(a,e,t),Ax(e,t.textDirection),e.restore())}getActiveElements(){return this._active||[]}setActiveElements(e,t){const r=this._active,i=e.map(({datasetIndex:c,index:u})=>{const f=this.chart.getDatasetMeta(c);if(!f)throw new Error("Cannot find a dataset at index "+c);return{datasetIndex:c,element:f.data[u],index:u}}),a=!y0(r,i),s=this._positionChanged(i,t);(a||s)&&(this._active=i,this._eventPosition=t,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(e,t,r=!0){if(t&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const i=this.options,a=this._active||[],s=this._getActiveElements(e,a,t,r),c=this._positionChanged(s,e),u=t||!y0(s,a)||c;return u&&(this._active=s,(i.enabled||i.external)&&(this._eventPosition={x:e.x,y:e.y},this.update(!0,t))),u}_getActiveElements(e,t,r,i){const a=this.options;if(e.type==="mouseout")return[];if(!i)return t;const s=this.chart.getElementsAtEventForMode(e,a.mode,a,r);return a.reverse&&s.reverse(),s}_positionChanged(e,t){const{caretX:r,caretY:i,options:a}=this,s=lm[a.position].call(this,e,t);return s!==!1&&(r!==s.x||i!==s.y)}}var V0={id:"tooltip",_element:rC,positioners:lm,afterInit(n,e,t){t&&(n.tooltip=new rC({chart:n,options:t}))},beforeUpdate(n,e,t){n.tooltip&&n.tooltip.initialize(t)},reset(n,e,t){n.tooltip&&n.tooltip.initialize(t)},afterDraw(n){const e=n.tooltip;if(e&&e._willRender()){const t={tooltip:e};if(n.notifyPlugins("beforeTooltipDraw",{...t,cancelable:!0})===!1)return;e.draw(n.ctx),n.notifyPlugins("afterTooltipDraw",t)}},afterEvent(n,e){if(n.tooltip){const t=e.replay;n.tooltip.handleEvent(e.event,t,e.inChartArea)&&(e.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(n,e)=>e.bodyFont.size,boxWidth:(n,e)=>
vendor: 4,943 bytes, line 330
330e.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:nC},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:n=>n!=="filter"&&n!=="itemSort"&&n!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]},I6=Object.freeze({__proto__:null,Colors:XA,Decimation:e6,Filler:$S,Legend:$_,SubTitle:T6,Title:Z_,Tooltip:V0});const N6=(n,e,t,r)=>(typeof e=="string"?(t=n.push(e)-1,r.unshift({index:t,label:e})):isNaN(e)&&(t=null),t);function P6(n,e,t,r){const i=n.indexOf(e);if(i===-1)return N6(n,e,t,r);const a=n.lastIndexOf(e);return i!==a?t:i}const B6=(n,e)=>n===null?null:kr(Math.round(n),0,e);function iC(n){const e=this.getLabels();return n>=0&&n<e.length?e[n]:n}class X_ extends ru{static id="category";static defaults={ticks:{callback:iC}};constructor(e){super(e),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(e){const t=this._addedLabels;if(t.length){const r=this.getLabels();for(const{index:i,label:a}of t)r[i]===a&&r.splice(i,1);this._addedLabels=[]}super.init(e)}parse(e,t){if(tn(e))return null;const r=this.getLabels();return t=isFinite(t)&&r[t]===e?t:P6(r,e,Rt(t,e),this._addedLabels),B6(t,r.length-1)}determineDataLimits(){const{minDefined:e,maxDefined:t}=this.getUserBounds();let{min:r,max:i}=this.getMinMax(!0);this.options.bounds==="ticks"&&(e||(r=0),t||(i=this.getLabels().length-1)),this.min=r,this.max=i}buildTicks(){const e=this.min,t=this.max,r=this.options.offset,i=[];let a=this.getLabels();a=e===0&&t===a.length-1?a:a.slice(e,t+1),this._valueRange=Math.max(a.length-(r?0:1),1),this._startValue=this.min-(r?.5:0);for(let s=e;s<=t;s++)i.push({value:s});return i}getLabelForValue(e){return iC.call(this,e)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(e){return typeof e!="number"&&(e=this.parse(e)),e===null?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getPixelForTick(e){const t=this.ticks;return e<0||e>t.length-1?null:this.getPixelForValue(t[e].value)}getValueForPixel(e){return Math.round(this._startValue+this.getDecimalForPixel(e)*this._valueRange)}getBasePixel(){return this.bottom}}function H6(n,e){const t=[],{bounds:i,step:a,min:s,max:c,precision:u,count:f,maxTicks:h,maxDigits:g,includeBounds:v}=n,y=a||1,_=h-1,{min:w,max:x}=e,S=!tn(s),T=!tn(c),M=!tn(f),C=(x-w)/(g+1);let k=tx((x-w)/_/y)*y,L,O,I,P;if(k<1e-14&&!S&&!T)return[{value:w},{value:x}];P=Math.ceil(x/k)-Math.floor(w/k),P>_&&(k=tx(P*k/_/y)*y),tn(u)||(L=Math.pow(10,u),k=Math.ceil(k*L)/L),i==="ticks"?(O=Math.floor(w/k)*k,I=Math.ceil(x/k)*k):(O=w,I=x),S&&T&&a&&Lk((c-s)/a,k/1e3)?(P=Math.round(Math.min((c-s)/k,h)),k=(c-s)/P,O=s,I=c):M?(O=S?s:O,I=T?c:I,P=f-1,k=(I-O)/P):(P=(I-O)/k,$p(P,Math.round(P),k/1e3)?P=Math.round(P):P=Math.ceil(P));const B=Math.max(rx(k),rx(O));L=Math.pow(10,tn(u)?B:u),O=Math.round(O*L)/L,I=Math.round(I*L)/L;let H=0;for(S&&(v&&O!==s?(t.push({value:s}),O<s&&H++,$p(Math.round((O+H*k)*L)/L,s,aC(s,C,n))&&H++):O<s&&H++);H<P;++H){const F=Math.round((O+H*k)*L)/L;if(T&&F>c)break;t.push({value:F})}return T&&v&&I!==c?t.length&&$p(t[t.length-1].value,c,aC(c,C,n))?t[t.length-1].value=c:t.push({value:c}):(!T||I===c)&&t.push({value:I}),t}function aC(n,e,{horizontal:t,minRotation:r}){const i=ka(r),a=(t?Math.sin(i):Math.cos(i))||.001,s=.75*e*(""+n).length;return Math.min(e/a,s)}class Y0 extends ru{constructor(e){super(e),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(e,t){return tn(e)||(typeof e=="number"||e instanceof Number)&&!isFinite(+e)?null:+e}handleTickRangeOptions(){const{beginAtZero:e}=this.options,{minDefined:t,maxDefined:r}=this.getUserBounds();let{min:i,max:a}=this;const s=u=>i=t?i:u,c=u=>a=r?a:u;if(e){const u=hs(i),f=hs(a);u<0&&f<0?c(0):u>0&&f>0&&s(0)}if(i===a){let u=a===0?1:Math.abs(a*.05);c(a+u),e||s(i-u)}this.min=i,this.max=a}getTickLimit(){const e=this.options.ticks;let{maxTicksLimit:t,stepSize:r}=e,i;return r?(i=Math.ceil(this.max/r)-Math.floor(this.min/r)+1,i>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${r} would result generating up to ${i} ticks. Limiting to 1000.`),i=1e3)):(i=this.computeTickLimit(),t=t||11),t&&(i=Math.min(t,i)),i}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const e=this.options,t=e.ticks;let r=this.getTickLimit();r=Math.max(2,r);const i={maxTicks:r,bounds:e.bounds,min:e.min,max:e.max,precision:t.precision,step:t.stepSize,count:t.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:t.minRotation||0,includeBounds:t.includeBounds!==!1},a=this._range||this,s=H6(i,a);
vendor: 10,536 bytes, line 330
330return e.bounds==="ticks"&&nx(s,this,"value"),e.reverse?(s.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),s}configure(){const e=this.ticks;let t=this.min,r=this.max;if(super.configure(),this.options.offset&&e.length){const i=(r-t)/Math.max(e.length-1,1)/2;t-=i,r+=i}this._startValue=t,this._endValue=r,this._valueRange=r-t}getLabelForValue(e){return Xp(e,this.chart.options.locale,this.options.ticks.format)}}class Q_ extends Y0{static id="linear";static defaults={ticks:{callback:E0.formatters.numeric}};determineDataLimits(){const{min:e,max:t}=this.getMinMax(!0);this.min=er(e)?e:0,this.max=er(t)?t:1,this.handleTickRangeOptions()}computeTickLimit(){const e=this.isHorizontal(),t=e?this.width:this.height,r=ka(this.options.ticks.minRotation),i=(e?Math.sin(r):Math.cos(r))||.001,a=this._resolveTickFontOptions(0);return Math.ceil(t/Math.min(40,a.lineHeight/i))}getPixelForValue(e){return e===null?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getValueForPixel(e){return this._startValue+this.getDecimalForPixel(e)*this._valueRange}}const cm=n=>Math.floor(wl(n)),au=(n,e)=>Math.pow(10,cm(n)+e);function sC(n){return n/Math.pow(10,cm(n))===1}function oC(n,e,t){const r=Math.pow(10,t),i=Math.floor(n/r);return Math.ceil(e/r)-i}function z6(n,e){const t=e-n;let r=cm(t);for(;oC(n,e,r)>10;)r++;for(;oC(n,e,r)<10;)r--;return Math.min(r,cm(n))}function F6(n,{min:e,max:t}){e=Hi(n.min,e);const r=[],i=cm(e);let a=z6(e,t),s=a<0?Math.pow(10,Math.abs(a)):1;const c=Math.pow(10,a),u=i>a?Math.pow(10,i):0,f=Math.round((e-u)*s)/s,h=Math.floor((e-u)/c/10)*c*10;let g=Math.floor((f-h)/Math.pow(10,a)),v=Hi(n.min,Math.round((u+h+g*Math.pow(10,a))*s)/s);for(;v<t;)r.push({value:v,major:sC(v),significand:g}),g>=10?g=g<15?15:20:g++,g>=20&&(a++,g=2,s=a>=0?1:s),v=Math.round((u+h+g*Math.pow(10,a))*s)/s;const y=Hi(n.max,v);return r.push({value:y,major:sC(y),significand:g}),r}class V6 extends ru{static id="logarithmic";static defaults={ticks:{callback:E0.formatters.logarithmic,major:{enabled:!0}}};constructor(e){super(e),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(e,t){const r=Y0.prototype.parse.apply(this,[e,t]);if(r===0){this._zero=!0;return}return er(r)&&r>0?r:null}determineDataLimits(){const{min:e,max:t}=this.getMinMax(!0);this.min=er(e)?Math.max(0,e):null,this.max=er(t)?Math.max(0,t):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!er(this._userMin)&&(this.min=e===au(this.min,0)?au(this.min,-1):au(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:e,maxDefined:t}=this.getUserBounds();let r=this.min,i=this.max;const a=c=>r=e?r:c,s=c=>i=t?i:c;r===i&&(r<=0?(a(1),s(10)):(a(au(r,-1)),s(au(i,1)))),r<=0&&a(au(i,-1)),i<=0&&s(au(r,1)),this.min=r,this.max=i}buildTicks(){const e=this.options,t={min:this._userMin,max:this._userMax},r=F6(t,this);return e.bounds==="ticks"&&nx(r,this,"value"),e.reverse?(r.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),r}getLabelForValue(e){return e===void 0?"0":Xp(e,this.chart.options.locale,this.options.ticks.format)}configure(){const e=this.min;super.configure(),this._startValue=wl(e),this._valueRange=wl(this.max)-wl(e)}getPixelForValue(e){return(e===void 0||e===0)&&(e=this.min),e===null||isNaN(e)?NaN:this.getPixelForDecimal(e===this.min?0:(wl(e)-this._startValue)/this._valueRange)}getValueForPixel(e){const t=this.getDecimalForPixel(e);return Math.pow(10,this._startValue+t*this._valueRange)}}function K_(n){const e=n.ticks;if(e.display&&n.display){const t=Zr(e.backdropPadding);return Rt(e.font&&e.font.size,nr.font.size)+t.height}return 0}function Y6(n,e,t){return t=Pn(t)?t:[t],{w:Gk(n,e.string,t),h:t.length*e.lineHeight}}function lC(n,e,t,r,i){return n===r||n===i?{start:e-t/2,end:e+t/2}:n<r||n>i?{start:e-t,end:e}:{start:e,end:e+t}}function j6(n){const e={l:n.left+n._padding.left,r:n.right-n._padding.right,t:n.top+n._padding.top,b:n.bottom-n._padding.bottom},t=Object.assign({},e),r=[],i=[],a=n._pointLabels.length,s=n.options.pointLabels,c=s.centerPointLabels?Yn/a:0;for(let u=0;u<a;u++){const f=s.setContext(n.getPointLabelContext(u));i[u]=f.padding;const h=n.getPointPosition(u,n.drawingArea+i[u],c),g=Sr(f.font),v=Y6(n.ctx,g,n._pointLabels[u]);r[u]=v;const y=zi(n.getIndexAngle(u)+c),_=Math.round(g_(y)),w=lC(_,h.x,v.w,0,180),x=lC(_,h.y,v.h,90,270);W6(t,e,y,w,x)}n.setCenterPoint(e.l-t.l,t.r-e.r,e.t-t.t,t.b-e.b),n._pointLabelItems=$6(n,r,i)}function W6(n,e,t,r,i){const a=Math.abs(Math.sin(t)),s=Math.abs(Math.cos(t));let c=0,u=0;r.start<e.l?(c=(e.l-r.start)/a,n.l=Math.min(n.l,e.l-c)):r.end>e.r&&(c=(r.end-e.r)/a,n.r=Math.max(n.r,e.r+c)),i.start<e.t?(u=(e.t-i.start)/s,n.t=Math.min(n.t,e.t-u)):i.end>e.b&&(u=(i.end-e.b)/s,n.b=Math.max(n.b,e.b+u))}function U6(n,e,t){const r=n.drawingArea,{extra:i,additionalAngle:a,padding:s,size:c}=t,u=n.getPointPosition(e,r+i+s,a),f=Math.round(g_(zi(u.angle+tr))),h=X6(u.y,c.h,f),g=G6(f),v=Z6(u.x,c.w,g);return{visible:!0,x:u.x,y:h,textAlign:g,left:v,top:h,right:v+c.w,bottom:h+c.h}}function q6(n,e){if(!e)return!0;const{left:t,top:r,right:i,bottom:a}=n;return!(bo({x:t,y:r},e)||bo({x:t,y:a},e)||bo({x:i,y:r},e)||bo({x:i,y:a},e))}function $6(n,e,t){const r=[],i=n._pointLabels.length,a=n.options,{centerPointLabels:s,display:c}=a.pointLabels,u={extra:K_(a)/2,additionalAngle:s?Yn/i:0};let f;for(let h=0;h<i;h++){u.padding=t[h],u.size=e[h];const g=U6(n,h,u);r.push(g),c==="auto"&&(g.visible=q6(g,f),g.visible&&(f=g))}return r}function G6(n){return n===0||n===180?"center":n<180?"left":"right"}function Z6(n,e,t){return t==="right"?n-=e:t==="center"&&(n-=e/2),n}function X6(n,e,t){return t===90||t===270?n-=e/2:(t>270||t<90)&&(n-=e),n}function Q6(n,e,t){const{left:r,top:i,right:a,bottom:s}=t,{backdropColor:c}=e;if(!tn(c)){const u=Kc(e.borderRadius),f=Zr(e.backdropPadding);n.fillStyle=c;const h=r-f.left,g=i-f.top,v=a-r+f.width,y=s-i+f.height;Object.values(u).some(_=>_!==0)?(n.beginPath(),Kp(n,{x:h,y:g,w:v,h:y,radius:u}),n.fill()):n.fillRect(h,g,v,y)}}function K6(n,e){const{ctx:t,options:{pointLabels:r}}=n;for(let i=e-1;i>=0;i--){const a=n._pointLabelItems[i];if(!a.visible)continue;const s=r.setContext(n.getPointLabelContext(i));Q6(t,s,a);const c=Sr(s.font),{x:u,y:f,textAlign:h}=a;Qc(t,n._pointLabels[i],u,f+c.lineHeight/2,c,{color:s.color,textAlign:h,textBaseline:"middle"})}}function cC(n,e,t,r){const{ctx:i}=n;if(t)i.arc(n.xCenter,n.yCenter,e,0,Bn);else{let a=n.getPointPosition(0,e);i.moveTo(a.x,a.y);for(let s=1;s<r;s++)a=n.getPointPosition(s,e),i.lineTo(a.x,a.y)}}function J6(n,e,t,r,i){const a=n.ctx,s=e.circular,{color:c,lineWidth:u}=e;!s&&!r||!c||!u||t<0||(a.save(),a.strokeStyle=c,a.lineWidth=u,a.setLineDash(i.dash),a.lineDashOffset=i.dashOffset,a.beginPath(),cC(n,t,s,r),a.closePath(),a.stroke(),a.restore())}function e4(n,e,t){return El(n,{label:t,index:e,type:"pointLabel"})}class t4 extends Y0{static id="radialLinear";static defaults={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:E0.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(e){return e},padding:5,centerPointLabels:!1}};static defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"};static descriptors={angleLines:{_fallback:"grid"}};constructor(e){super(e),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){const e=this._padding=Zr(K_(this.options)/2),t=this.width=this.maxWidth-e.width,r=this.height=this.maxHeight-e.height;this.xCenter=Math.floor(this.left+t/2+e.left),this.yCenter=Math.floor(this.top+r/2+e.top),this.drawingArea=Math.floor(Math.min(t,r)/2)}determineDataLimits(){const{min:e,max:t}=this.getMinMax(!1);this.min=er(e)&&!isNaN(e)?e:0,this.max=er(t)&&!isNaN(t)?t:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/K_(this.options))}generateTickLabels(e){Y0.prototype.generateTickLabels.call(this,e),this._pointLabels=this.getLabels().map((t,r)=>{const i=Rn(this.options.pointLabels.callback,[t,r],this);return i||i===0?i:""}).filter((t,r)=>this.chart.getDataVisibility(r))}fit(){const e=this.options;e.display&&e.pointLabels.display?j6(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(e,t,r,i){this.xCenter+=Math.floor((e-t)/2),this.yCenter+=Math.floor((r-i)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(e,t,r,i))}getIndexAngle(e){const t=Bn/(this._pointLabels.length||1),r=this.options.startAngle||0;return zi(e*t+ka(r))}getDistanceFromCenterForValue(e){if(tn(e))return NaN;const t=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-e)*t:(e-this.min)*t}getValueForDistanceFromCenter(e){if(tn(e))return NaN;const t=e/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-t:this.min+t}getPointLabelContext(e){const t=this._pointLabels||[];if(e>=0&&e<t.length){const r=t[e];return e4(this.getContext(),e,r)}}getPointPosition(e,t,r=0){const i=this.getIndexAngle(e)-tr+r;return{x:Math.cos(i)*t+this.xCenter,y:Math.sin(i)*t+this.yCenter,angle:i}}getPointPositionForValue(e,t){return this.getPointPosition(e,this.getDistanceFromCenterForValue(t))}getBasePosition(e){return this.getPointPositionForValue(e||0,this.getBaseValue())}getPointLabelPosition(e){const{left:t,top:r,right:i,bottom:a}=this._pointLabelItems[e];return{left:t,top:r,right:i,bottom:a}}drawBackground(){const{backgroundColor:e,grid:{circular:t}}=this.options;if(e){const r=this.ctx;r.save(),r.beginPath(),cC(this,this.getDistanceFromCenterForValue(this._endValue),t,this._pointLabels.length),r.closePath(),r.fillStyle=e,r.fill(),r.restore()}}drawGrid(){const e=this.ctx,t=this.options,{angleLines:r,grid:i,border:a}=t,s=this._pointLabels.length;let c,u,f;if(t.pointLabels.display&&K6(this,s),i.display&&this.ticks.forEach((h,g)=>{if(g!==0){u=this.getDistanceFromCenterForValue(h.value);const v=this.getContext(g),y=i.setContext(v),_=a.setContext(v);J6(this,y,u,s,_)}}),r.display){for(e.save(),c=s-1;c>=0;c--){const h=r.setContext(this.getPointLabelContext(c)),{color:g,lineWidth:v}=h;!v||!g||(e.lineWidth=v,e.strokeStyle=g,e.setLineDash(h.borderDash),e.lineDashOffset=h.borderDashOffset,u=this.getDistanceFromCenterForValue(t.ticks.reverse?this.min:this.max),f=this.getPointPosition(c,u),e.beginPath(),e.moveTo(this.xCenter,this.yCenter),e.lineTo(f.x,f.y),e.stroke())}
330e.restore()}}drawBorder(){}drawLabels(){const e=this.ctx,t=this.options,r=t.ticks;if(!r.display)return;const i=this.getIndexAngle(0);let a,s;e.save(),e.translate(this.xCenter,this.yCenter),e.rotate(i),e.textAlign="center",e.textBaseline="middle",this.ticks.forEach((c,u)=>{if(u===0&&!t.reverse)return;const f=r.setContext(this.getContext(u)),h=Sr(f.font);if(a=this.getDistanceFromCenterForValue(this.ticks[u].value),f.showLabelBackdrop){e.font=h.string,s=e.measureText(c.label).width,e.fillStyle=f.backdropColor;const g=Zr(f.backdropPadding);e.fillRect(-s/2-g.left,-a-h.size/2-g.top,s+g.width,h.size+g.height)}Qc(e,c.label,0,-a,h,{color:f.color})}),e.restore()}drawTitle(){}}const j0={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},xi=Object.keys(j0);function n4(n,e){return n-e}function uC(n,e){if(tn(e))return null;const t=n._adapter,{parser:r,round:i,isoWeekday:a}=n._parseOpts;let s=e;return typeof r=="function"&&(s=r(s)),er(s)||(s=typeof r=="string"?t.parse(s,r):t.parse(s)),s===null?null:(i&&(s=i==="week"&&(Kd(a)||a===!0)?t.startOf(s,"isoWeek",a):t.startOf(s,i)),+s)}function dC(n,e,t,r){const i=xi.length;for(let a=xi.indexOf(n);a<i-1;++a){const s=j0[xi[a]],c=s.steps?s.steps:Number.MAX_SAFE_INTEGER;if(s.common&&Math.ceil((t-e)/(c*s.size))<=r)return xi[a]}return xi[i-1]}function r4(n,e,t,r,i){for(let a=xi.length-1;a>=xi.indexOf(t);a--){const s=xi[a];if(j0[s].common&&n._adapter.diff(i,r,s)>=e-1)return s}return xi[t?xi.indexOf(t):0]}function i4(n){for(let e=xi.indexOf(n)+1,t=xi.length;e<t;++e)if(j0[xi[e]].common)return xi[e]}function fC(n,e,t){if(!t)n[e]=!0;else if(t.length){const{lo:r,hi:i}=y_(t,e),a=t[r]>=e?t[r]:t[i];n[a]=!0}}function a4(n,e,t,r){const i=n._adapter,a=+i.startOf(e[0].value,r),s=e[e.length-1].value;let c,u;for(c=a;c<=s;c=+i.add(c,1,r))u=t[c],u>=0&&(e[u].major=!0);return e}function hC(n,e,t){const r=[],i={},a=e.length;let s,c;for(s=0;s<a;++s)c=e[s],i[c]=s,r.push({value:c,major:!1});return a===0||!t?r:a4(n,r,i,t)}class W0 extends ru{static id="time";static defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}};constructor(e){super(e),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(e,t={}){const r=e.time||(e.time={}),i=this._adapter=new eS._date(e.adapters.date);i.init(t),Up(r.displayFormats,i.formats()),this._parseOpts={parser:r.parser,round:r.round,isoWeekday:r.isoWeekday},super.init(e),this._normalized=t.normalized}parse(e,t){return e===void 0?null:uC(this,e)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const e=this.options,t=this._adapter,r=e.time.unit||"day";let{min:i,max:a,minDefined:s,maxDefined:c}=this.getUserBounds();function u(f){!s&&!isNaN(f.min)&&(i=Math.min(i,f.min)),!c&&!isNaN(f.max)&&(a=Math.max(a,f.max))}(!s||!c)&&(u(this._getLabelBounds()),(e.bounds!=="ticks"||e.ticks.source!=="labels")&&u(this.getMinMax(!1))),i=er(i)&&!isNaN(i)?i:+t.startOf(Date.now(),r),a=er(a)&&!isNaN(a)?a:+t.endOf(Date.now(),r)+1,this.min=Math.min(i,a-1),this.max=Math.max(i+1,a)}_getLabelBounds(){const e=this.getLabelTimestamps();let t=Number.POSITIVE_INFINITY,r=Number.NEGATIVE_INFINITY;return e.length&&(t=e[0],r=e[e.length-1]),{min:t,max:r}}buildTicks(){const e=this.options,t=e.time,r=e.ticks,i=r.source==="labels"?this.getLabelTimestamps():this._generate();
330e.bounds==="ticks"&&i.length&&(this.min=this._userMin||i[0],this.max=this._userMax||i[i.length-1]);const a=this.min,s=this.max,c=Nk(i,a,s);return this._unit=t.unit||(r.autoSkip?dC(t.minUnit,this.min,this.max,this._getLabelCapacity(a)):r4(this,c.length,t.minUnit,this.min,this.max)),this._majorUnit=!r.major.enabled||this._unit==="year"?void 0:i4(this._unit),this.initOffsets(i),e.reverse&&c.reverse(),hC(this,c,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(e=>+e.value))}initOffsets(e=[]){let t=0,r=0,i,a;this.options.offset&&e.length&&(i=this.getDecimalForValue(e[0]),e.length===1?t=1-i:t=(this.getDecimalForValue(e[1])-i)/2,a=this.getDecimalForValue(e[e.length-1]),e.length===1?r=a:r=(a-this.getDecimalForValue(e[e.length-2]))/2);const s=e.length<3?.5:.25;t=kr(t,0,s),r=kr(r,0,s),this._offsets={start:t,end:r,factor:1/(t+1+r)}}_generate(){const e=this._adapter,t=this.min,r=this.max,i=this.options,a=i.time,s=a.unit||dC(a.minUnit,t,r,this._getLabelCapacity(t)),c=Rt(i.ticks.stepSize,1),u=s==="week"?a.isoWeekday:!1,f=Kd(u)||u===!0,h={};let g=t,v,y;if(f&&(g=+e.startOf(g,"isoWeek",u)),g=+e.startOf(g,f?"day":s),e.diff(r,t,s)>1e5*c)throw new Error(t+" and "+r+" are too far apart with stepSize of "+c+" "+s);const _=i.ticks.source==="data"&&this.getDataTimestamps();for(v=g,y=0;v<r;v=+e.add(v,c,s),y++)fC(h,v,_);return(v===r||i.bounds==="ticks"||y===1)&&fC(h,v,_),Object.keys(h).sort((w,x)=>w-x).map(w=>+w)}getLabelForValue(e){const t=this._adapter,r=this.options.time;return r.tooltipFormat?t.format(e,r.tooltipFormat):t.format(e,r.displayFormats.datetime)}format(e,t){const i=this.options.time.displayFormats,a=this._unit,s=t||i[a];return this._adapter.format(e,s)}_tickFormatFunction(e,t,r,i){const a=this.options,s=a.ticks.callback;if(s)return Rn(s,[e,t,r],this);const c=a.time.displayFormats,u=this._unit,f=this._majorUnit,h=u&&c[u],g=f&&c[f],v=r[t],y=f&&g&&v&&v.major;return this._adapter.format(e,i||(y?g:h))}generateTickLabels(e){let t,r,i;for(t=0,r=e.length;t<r;++t)i=e[t],i.label=this._tickFormatFunction(i.value,t,e)}getDecimalForValue(e){return e===null?NaN:(e-this.min)/(this.max-this.min)}getPixelForValue(e){const t=this._offsets,r=this.getDecimalForValue(e);return this.getPixelForDecimal((t.start+r)*t.factor)}getValueForPixel(e){const t=this._offsets,r=this.getDecimalForPixel(e)/t.factor-t.end;return this.min+r*(this.max-this.min)}_getLabelSize(e){const t=this.options.ticks,r=this.ctx.measureText(e).width,i=ka(this.isHorizontal()?t.maxRotation:t.minRotation),a=Math.cos(i),s=Math.sin(i),c=this._resolveTickFontOptions(0).size;return{w:r*a+c*s,h:r*s+c*a}}_getLabelCapacity(e){const t=this.options.time,r=t.displayFormats,i=r[t.unit]||r.millisecond,a=this._tickFormatFunction(e,0,hC(this,[e],this._majorUnit),i),s=this._getLabelSize(a),c=Math.floor(this.isHorizontal()?this.width/s.w:this.height/s.h)-1;return c>0?c:1}getDataTimestamps(){let e=this._cache.data||[],t,r;if(e.length)return e;const i=this.getMatchingVisibleMetas();if(this._normalized&&i.length)return this._cache.data=i[0].controller.getAllParsedValues(this);for(t=0,r=i.length;t<r;++t)e=e.concat(i[t].controller.getAllParsedValues(this));return this._cache.data=this.normalize(e)}getLabelTimestamps(){const e=this._cache.labels||[];let t,r;if(e.length)return e;const i=this.getLabels();for(t=0,r=i.length;t<r;++t)e.push(uC(this,i[t]));return this._cache.labels=this._normalized?e:this.normalize(e)}normalize(e){return ox(e.sort(n4))}}function U0(n,e,t){let r=0,i=n.length-1,a,s,c,u;t?(e>=n[r].pos&&e<=n[i].pos&&({lo:r,hi:i}=yo(n,"pos",e)),{pos:a,time:c}=n[r],{pos:s,time:u}=n[i]):(e>=n[r].time&&e<=n[i].time&&({lo:r,hi:i}=yo(n,"time",e)),{time:a,pos:c}=n[r],{time:s,pos:u}=n[i]);const f=s-a;return f?c+(u-c)*(e-a)/f:c}class s4 extends W0{static id="timeseries";static defaults=W0.defaults;constructor(e){super(e),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const e=this._getTimestampsForTable(),t=this._table=this.buildLookupTable(e);this._minPos=U0(t,this.min),this._tableRange=U0(t,this.max)-this._minPos,super.initOffsets(e)}buildLookupTable(e){const{min:t,max:r}=this,i=[],a=[];let s,c,u,f,h;for(s=0,c=e.length;s<c;++s)f=e[s],f>=t&&f<=r&&i.push(f);if(i.length<2)return[{time:t,pos:0},{time:r,pos:1}];for(s=0,c=i.length;s<c;++s)h=i[s+1],u=i[s-1],f=i[s],Math.round((h+u)/2)!==f&&a.push({time:f,pos:s/(c-1)});return a}_getTimestampsForTable(){let e=this._cache.all||[];if(e.length)return e;const t=this.getDataTimestamps(),r=this.getLabelTimestamps();return t.length&&r.length?e=this.normalize(t.concat(r)):e=t.length?t:r,e=this._cache.all=e,e}getDecimalForValue(e){return(U0(this._table,e)-this._minPos)/this._tableRange}getValueForPixel(e){const t=this._offsets,r=this.getDecimalForPixel(e)/t.factor-t.end;return U0(this._table,r*this._tableRange+this._minPos,!0)}}var o4=Object.freeze({__proto__:null,CategoryScale:X_,LinearScale:Q_,LogarithmicScale:V6,RadialLinearScale:t4,TimeScale:W0,TimeSeriesScale:s4});const l4=[p5,WA,I6,o4];iu.register(...l4);const xz=null;var su=sn(848);const pC="label";function mC(n,e){typeof n=="function"?n(e):n&&(n.current=e)}function c4(n,e){const t=n.options;t&&e&&Object.assign(t,e)}function gC(n,e){n.labels=e}function vC(n,e,t=pC){const r=[];n.datasets=e.map(i=>{const a=n.datasets.find(s=>s[t]===i[t]);return!a||!i.data||r.includes(a)?{...i}:(r.push(a),Object.assign(a,i),a)})}function u4(n,e=pC){const t={labels:[],datasets:[]};return gC(t,n.labels),vC(t,n.datasets,e),t}function Sz(n,e){return n.getElementsAtEventForMode(e.nativeEvent,"dataset",{intersect:!0},!1)}function Cz(n,e){return n.getElementsAtEventForMode(e.nativeEvent,"nearest",{intersect:!0},!1)}function Tz(n,e){return n.getElementsAtEventForMode(e.nativeEvent,"index",{intersect:!0},!1)}function d4(n,e){const{height:t=150,width:r=300,redraw:i=!1,datasetIdKey:a,type:s,data:c,options:u,plugins:f=[],fallbackContent:h,updateMode:g,...v}=n,y=(0,p.useRef)(null),_=(0,p.useRef)(null),w=()=>
330{y.current&&(_.current=new iu(y.current,{type:s,data:u4(c,a),options:u&&{...u},plugins:f}),mC(e,_.current))},x=()=>{mC(e,null),_.current&&(_.current.destroy(),_.current=null)};return(0,p.useEffect)(()=>{!i&&_.current&&u&&c4(_.current,u)},[i,u]),(0,p.useEffect)(()=>{!i&&_.current&&gC(_.current.config.data,c.labels)},[i,c.labels]),(0,p.useEffect)(()=>{!i&&_.current&&c.datasets&&vC(_.current.config.data,c.datasets,a)},[i,c.datasets]),(0,p.useEffect)(()=>{_.current&&(i?(x(),setTimeout(w)):_.current.update(g))},[i,u,c.labels,c.datasets,g]),(0,p.useEffect)(()=>{_.current&&(x(),setTimeout(w))},[s]),(0,p.useEffect)(()=>(w(),()=>x()),[]),(0,su.jsx)("canvas",{ref:y,role:"img",height:t,width:r,...v,children:h})}const f4=(0,p.forwardRef)(d4);function yC(n,e){return iu.register(e),(0,p.forwardRef)((t,r)=>(0,su.jsx)(f4,{...t,ref:r,type:n}))}const bC=yC("line",Kx),Mz=null,Dz=null,h4=yC("doughnut",k0),Oz=null,kz=null,Lz=null,Az=null;function _C(n){var e,t,r="";if(typeof n=="string"||typeof n=="number")r+=n;else if(typeof n=="object")if(Array.isArray(n)){var i=n.length;for(e=0;e<i;e++)n[e]&&(t=_C(n[e]))&&(r&&(r+=" "),r+=t)}else for(t in n)n[t]&&(r&&(r+=" "),r+=t);return r}function zr(){for(var n,e,t=0,r="",i=arguments.length;t<i;t++)(n=arguments[t])&&(e=_C(n))&&(r&&(r+=" "),r+=e);return r}const Rz=null,Iz=7,p4=365.2425,Pz=-(Math.pow(10,8)*24*60*60*1e3),wC=6048e5,m4=864e5,q0=6e4,$0=36e5,g4=1e3,Bz=525600,Hz=43200,zz=1440,Fz=60,Vz=3,Yz=12,jz=4,v4=3600,Wz=60,EC=v4*24,Uz=EC*7,Gz=EC*p4/12*3,xC=Symbol.for("constructDateFrom");function bn(n,e){return typeof n=="function"?n(e):n&&typeof n=="object"&&xC in n?n[xC](e):n instanceof Date?new n.constructor(e):new Date(e)}const Zz=null;function dt(n,e){return bn(e||n,n)}const Xz=null;function y4(n,e){const t=()=>bn(e?.in,NaN),r=e?.additionalDigits??2,i=E4(n);let a;if(i.date){const f=x4(i.date,r);a=S4(f.restDateString,f.year)}if(!a||isNaN(+a))return t();const s=+a;let c=0,u;if(i.time&&(c=C4(i.time),isNaN(c)))return t();if(i.timezone){if(u=T4(i.timezone),isNaN(u))return t()}else{const f=new Date(s+c),h=dt(0,e?.in);return h.setFullYear(f.getUTCFullYear(),f.getUTCMonth(),f.getUTCDate()),h.setHours(f.getUTCHours(),f.getUTCMinutes(),f.getUTCSeconds(),f.getUTCMilliseconds()),h}return dt(s+c+u,e?.in)}const G0={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},b4=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,_4=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,w4=/^([+-])(\d{2})(?::?(\d{2}))?$/;function E4(n){const e={},t=n.split(G0.dateTimeDelimiter);let r;if(t.length>2)return e;if(/:/.test(t[0])?r=t[0]:(e.date=t[0],r=t[1],G0.timeZoneDelimiter.test(e.date)&&(e.date=n.split(G0.timeZoneDelimiter)[0],r=n.substr(e.date.length,n.length))),r){const i=G0.timezone.exec(r);i?(e.time=r.replace(i[1],""),e.timezone=i[1]):e.time=r}return e}function x4(n,e){const t=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+e)+"})|(\\d{2}|[+-]\\d{"+(2+e)+"})$)"),r=n.match(t);if(!r)return{year:NaN,restDateString:""};const i=r[1]?parseInt(r[1]):null,a=r[2]?parseInt(r[2]):null;return{year:a===null?i:a*100,restDateString:n.slice((r[1]||r[2]).length)}}function S4(n,e){if(e===null)return new Date(NaN);const t=n.match(b4);if(!t)return new Date(NaN);const r=!!t[4],i=um(t[1]),a=um(t[2])-1,s=um(t[3]),c=um(t[4]),u=um(t[5])-1;if(r)return L4(e,c,u)?M4(e,c,u):new Date(NaN);{const f=new Date(0);return!O4(e,a,s)||!k4(e,i)?new Date(NaN):(f.setUTCFullYear(e,a,Math.max(i,s)),f)}}function um(n){return n?parseInt(n):1}function C4(n){const e=n.match(_4);if(!e)return NaN;const t=J_(e[1]),r=J_(e[2]),i=J_(e[3]);return A4(t,r,i)?t*$0+r*q0+i*1e3:NaN}function J_(n){return n&&parseFloat(n.replace(",","."))||0}function T4(n){if(n==="Z")return 0;const e=n.match(w4);if(!e)return 0;const t=e[1]==="+"?-1:1,r=parseInt(e[2]),i=e[3]&&parseInt(e[3])||0;return R4(r,i)?t*(r*$0+i*q0):NaN}function M4(n,e,t){const r=new Date(0);r.setUTCFullYear(n,0,4);const i=r.getUTCDay()||7,a=(e-1)*7+t+1-i;return r.setUTCDate(r.getUTCDate()+a),r}const D4=[31,null,31,30,31,30,31,31,30,31,30,31];function SC(n){return n%400===0||n%4===0&&n%100!==0}function O4(n,e,t){return e>=0&&e<=11&&t>=1&&t<=(D4[e]||(SC(n)?29:28))}function k4(n,e){return e>=1&&e<=(SC(n)?366:365)}function L4(n,e,t){return e>=1&&e<=53&&t>=0&&t<=6}function A4(n,e,t){return n===24?e===0&&t===0:t>=0&&t<60&&e>=0&&e<60&&n>=0&&n<25}function R4(n,e){return e>=0&&e<=59}const Qz=null,I4={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},N4=(n,e,t)=>{let r;const i=I4[n];return typeof i=="string"?r=i:e===1?r=i.one:r=i.other.replace("{{count}}",e.toString()),t?.addSuffix?t.comparison&&t.comparison>0?"in "+r:r+" ago":r};function ew(n){return(e={})=>{const t=e.width?String(e.width):n.defaultWidth;return n.formats[t]||n.formats[n.defaultWidth]}}const P4={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},B4={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},H4={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},z4={date:ew({formats:P4,defaultWidth:"full"}),time:ew({formats:B4,defaultWidth:"full"}),dateTime:ew({formats:H4,defaultWidth:"full"})},F4={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},V4=(n,e,t,r)=>F4[n];function dm(n){return(e,t)=>{const r=t?.context?String(t.context):"standalone";let i;if(r==="formatting"&&n.formattingValues){const s=n.defaultFormattingWidth||n.defaultWidth,c=t?.width?String(t.width):s;i=n.formattingValues[c]||n.formattingValues[s]}else{const s=n.defaultWidth,c=t?.width?String(t.width):n.defaultWidth;i=n.values[c]||n.values[s]}const a=n.argumentCallback?n.argumentCallback(e):e;return i[a]}}const Y4={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},j4={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},W4={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},U4={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
330ay","Saturday"]},q4={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},$4={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},G4={ordinalNumber:(n,e)=>{const t=Number(n),r=t%100;if(r>20||r<10)switch(r%10){case 1:return t+"st";case 2:return t+"nd";case 3:return t+"rd"}return t+"th"},era:dm({values:Y4,defaultWidth:"wide"}),quarter:dm({values:j4,defaultWidth:"wide",argumentCallback:n=>n-1}),month:dm({values:W4,defaultWidth:"wide"}),day:dm({values:U4,defaultWidth:"wide"}),dayPeriod:dm({values:q4,defaultWidth:"wide",formattingValues:$4,defaultFormattingWidth:"wide"})};function fm(n){return(e,t={})=>{const r=t.width,i=r&&n.matchPatterns[r]||n.matchPatterns[n.defaultMatchWidth],a=e.match(i);if(!a)return null;const s=a[0],c=r&&n.parsePatterns[r]||n.parsePatterns[n.defaultParseWidth],u=Array.isArray(c)?X4(c,g=>g.test(s)):Z4(c,g=>g.test(s));let f;f=n.valueCallback?n.valueCallback(u):u,f=t.valueCallback?t.valueCallback(f):f;const h=e.slice(s.length);return{value:f,rest:h}}}function Z4(n,e){for(const t in n)if(Object.prototype.hasOwnProperty.call(n,t)&&e(n[t]))return t}function X4(n,e){for(let t=0;t<n.length;t++)if(e(n[t]))return t}function Q4(n){return(e,t={})=>{const r=e.match(n.matchPattern);if(!r)return null;const i=r[0],a=e.match(n.parsePattern);if(!a)return null;let s=n.valueCallback?n.valueCallback(a[0]):a[0];s=t.valueCallback?t.valueCallback(s):s;const c=e.slice(i.length);return{value:s,rest:c}}}const K4=/^(\d+)(th|st|nd|rd)?/i,J4=/\d+/i,eR={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},tR={any:[/^b/i,/^(a|c)/i]},nR={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},rR={any:[/1/i,/2/i,/3/i,/4/i]},iR={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},aR={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},sR={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},oR={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},lR={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},cR={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},uR={ordinalNumber:Q4({matchPattern:K4,parsePattern:J4,valueCallback:n=>parseInt(n,10)}),era:fm({matchPatterns:eR,defaultMatchWidth:"wide",parsePatterns:tR,defaultParseWidth:"any"}),quarter:fm({matchPatterns:nR,defaultMatchWidth:"wide",parsePatterns:rR,defaultParseWidth:"any",valueCallback:n=>n+1}),month:fm({matchPatterns:iR,defaultMatchWidth:"wide",parsePatterns:aR,defaultParseWidth:"any"}),day:fm({matchPatterns:sR,defaultMatchWidth:"wide",parsePatterns:oR,defaultParseWidth:"any"}),dayPeriod:fm({matchPatterns:lR,defaultMatchWidth:"any",parsePatterns:cR,defaultParseWidth:"any"})},CC={code:"en-US",formatDistance:N4,formatLong:z4,formatRelative:V4,localize:G4,match:uR,options:{weekStartsOn:0,firstWeekContainsDate:1}},Jz=null,TC=(n,e)=>{switch(n){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});default:return e.date({width:"full"})}},MC=(n,e)=>{switch(n){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});default:return e.time({width:"full"})}},tw={p:MC,P:(n,e)=>{const t=n.match(/(P+)(p+)?/)||[],r=t[1],i=t[2];if(!i)return TC(n,e);let a;switch(r){case"P":a=e.dateTime({width:"short"});break;case"PP":a=e.dateTime({width:"medium"});break;case"PPP":a=e.dateTime({width:"long"});break;default:a=e.dateTime({width:"full"});break}return a.replace("{{date}}",TC(r,e)).replace("{{time}}",MC(i,e))}},dR=/^D+$/,fR=/^Y+$/,hR=["D","DD","YY","YYYY"];function DC(n){return dR.test(n)}function OC(n){return fR.test(n)}function nw(n,e,t){const r=pR(n,e,t);if(console.warn(r),hR.includes(n))throw new RangeError(r)}function pR(n,e,t){const r=n[0]==="Y"?"years":"days of the month";return`Use \`${n.toLowerCase()}\` instead of \`${n}\` (in \`${e}\`) for formatting ${r} to the input \`${t}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}let kC={};function ou(){return kC}function tF(n){kC=n}function mR(){return Object.assign({}
330,ou())}const nF=null;function gR(n,e){const t=vR(e)?new e(0):bn(e,0);return t.setFullYear(n.getFullYear(),n.getMonth(),n.getDate()),t.setHours(n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()),t}function vR(n){return typeof n=="function"&&n.prototype?.constructor===n}const rF=null,yR=10;class LC{subPriority=0;validate(e,t){return!0}}class bR extends LC{constructor(e,t,r,i,a){super(),this.value=e,this.validateValue=t,this.setValue=r,this.priority=i,a&&(this.subPriority=a)}validate(e,t){return this.validateValue(e,this.value,t)}set(e,t,r){return this.setValue(e,t,this.value,r)}}class _R extends LC{priority=yR;subPriority=-1;constructor(e,t){super(),this.context=e||(r=>bn(t,r))}set(e,t){return t.timestampIsSet?e:bn(e,gR(e,this.context))}}class dn{run(e,t,r,i){const a=this.parse(e,t,r,i);return a?{setter:new bR(a.value,this.validate,this.set,this.priority,this.subPriority),rest:a.rest}:null}validate(e,t,r){return!0}}class wR extends dn{priority=140;parse(e,t,r){switch(t){case"G":case"GG":case"GGG":return r.era(e,{width:"abbreviated"})||r.era(e,{width:"narrow"});case"GGGGG":return r.era(e,{width:"narrow"});default:return r.era(e,{width:"wide"})||r.era(e,{width:"abbreviated"})||r.era(e,{width:"narrow"})}}set(e,t,r){return t.era=r,e.setFullYear(r,0,1),e.setHours(0,0,0,0),e}incompatibleTokens=["R","u","t","T"]}const cr={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},gs={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function ur(n,e){return n&&{value:e(n.value),rest:n.rest}}function $n(n,e){const t=e.match(n);return t?{value:parseInt(t[0],10),rest:e.slice(t[0].length)}:null}function vs(n,e){const t=e.match(n);if(!t)return null;if(t[0]==="Z")return{value:0,rest:e.slice(1)};const r=t[1]==="+"?1:-1,i=t[2]?parseInt(t[2],10):0,a=t[3]?parseInt(t[3],10):0,s=t[5]?parseInt(t[5],10):0;return{value:r*(i*$0+a*q0+s*g4),rest:e.slice(t[0].length)}}function AC(n){return $n(cr.anyDigitsSigned,n)}function rr(n,e){switch(n){case 1:return $n(cr.singleDigit,e);case 2:return $n(cr.twoDigits,e);case 3:return $n(cr.threeDigits,e);case 4:return $n(cr.fourDigits,e);default:return $n(new RegExp("^\\d{1,"+n+"}"),e)}}function Z0(n,e){switch(n){case 1:return $n(cr.singleDigitSigned,e);case 2:return $n(cr.twoDigitsSigned,e);case 3:return $n(cr.threeDigitsSigned,e);case 4:return $n(cr.fourDigitsSigned,e);default:return $n(new RegExp("^-?\\d{1,"+n+"}"),e)}}function rw(n){switch(n){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}function RC(n,e){const t=e>0,r=t?e:1-e;let i;if(r<=50)i=n||100;else{const a=r+50,s=Math.trunc(a/100)*100,c=n>=a%100;i=n+s-(c?100:0)}return t?i:1-i}function IC(n){return n%400===0||n%4===0&&n%100!==0}class ER extends dn{priority=130;incompatibleTokens=["Y","R","u","w","I","i","e","c","t","T"];parse(e,t,r){const i=a=>({year:a,isTwoDigitYear:t==="yy"});switch(t){case"y":return ur(rr(4,e),i);case"yo":return ur(r.ordinalNumber(e,{unit:"year"}),i);default:return ur(rr(t.length,e),i)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,t,r){const i=e.getFullYear();if(r.isTwoDigitYear){const s=RC(r.year,i);return e.setFullYear(s,0,1),e.setHours(0,0,0,0),e}const a=!("era"in t)||t.era===1?r.year:1-r.year;return e.setFullYear(a,0,1),e.setHours(0,0,0,0),e}}function xo(n,e){const t=ou(),r=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??t.weekStartsOn??t.locale?.options?.weekStartsOn??0,i=dt(n,e?.in),a=i.getDay(),s=(a<r?7:0)+a-r;return i.setDate(i.getDate()-s),i.setHours(0,0,0,0),i}const iF=null;function iw(n,e){const t=dt(n,e?.in),r=t.getFullYear(),i=ou(),a=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,s=bn(e?.in||n,0);s.setFullYear(r+1,0,a),s.setHours(0,0,0,0);const c=xo(s,e),u=bn(e?.in||n,0);u.setFullYear(r,0,a),u.setHours(0,0,0,0);const f=xo(u,e);return+t>=+c?r+1:+t>=+f?r:r-1}const aF=null;class xR extends dn{priority=130;parse(e,t,r){const i=a=>({year:a,isTwoDigitYear:t==="YY"});switch(t){case"Y":return ur(rr(4,e),i);case"Yo":return ur(r.ordinalNumber(e,{unit:"year"}),i);default:return ur(rr(t.length,e),i)}}validate(e,t){return t.isTwoDigitYear||t.year>0}
330set(e,t,r,i){const a=iw(e,i);if(r.isTwoDigitYear){const c=RC(r.year,a);return e.setFullYear(c,0,i.firstWeekContainsDate),e.setHours(0,0,0,0),xo(e,i)}const s=!("era"in t)||t.era===1?r.year:1-r.year;return e.setFullYear(s,0,i.firstWeekContainsDate),e.setHours(0,0,0,0),xo(e,i)}incompatibleTokens=["y","R","u","Q","q","M","L","I","d","D","i","t","T"]}function af(n,e){return xo(n,{...e,weekStartsOn:1})}const sF=null;class SR extends dn{priority=130;parse(e,t){return Z0(t==="R"?4:t.length,e)}set(e,t,r){const i=bn(e,0);return i.setFullYear(r,0,4),i.setHours(0,0,0,0),af(i)}incompatibleTokens=["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]}class CR extends dn{priority=130;parse(e,t){return Z0(t==="u"?4:t.length,e)}set(e,t,r){return e.setFullYear(r,0,1),e.setHours(0,0,0,0),e}incompatibleTokens=["G","y","Y","R","w","I","i","e","c","t","T"]}class TR extends dn{priority=120;parse(e,t,r){switch(t){case"Q":case"QQ":return rr(t.length,e);case"Qo":return r.ordinalNumber(e,{unit:"quarter"});case"QQQ":return r.quarter(e,{width:"abbreviated",context:"formatting"})||r.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return r.quarter(e,{width:"narrow",context:"formatting"});default:return r.quarter(e,{width:"wide",context:"formatting"})||r.quarter(e,{width:"abbreviated",context:"formatting"})||r.quarter(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=1&&t<=4}set(e,t,r){return e.setMonth((r-1)*3,1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]}class MR extends dn{priority=120;parse(e,t,r){switch(t){case"q":case"qq":return rr(t.length,e);case"qo":return r.ordinalNumber(e,{unit:"quarter"});case"qqq":return r.quarter(e,{width:"abbreviated",context:"standalone"})||r.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return r.quarter(e,{width:"narrow",context:"standalone"});default:return r.quarter(e,{width:"wide",context:"standalone"})||r.quarter(e,{width:"abbreviated",context:"standalone"})||r.quarter(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=1&&t<=4}set(e,t,r){return e.setMonth((r-1)*3,1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]}class DR extends dn{incompatibleTokens=["Y","R","q","Q","L","w","I","D","i","e","c","t","T"];priority=110;parse(e,t,r){const i=a=>a-1;switch(t){case"M":return ur($n(cr.month,e),i);case"MM":return ur(rr(2,e),i);case"Mo":return ur(r.ordinalNumber(e,{unit:"month"}),i);case"MMM":return r.month(e,{width:"abbreviated",context:"formatting"})||r.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return r.month(e,{width:"narrow",context:"formatting"});default:return r.month(e,{width:"wide",context:"formatting"})||r.month(e,{width:"abbreviated",context:"formatting"})||r.month(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=11}set(e,t,r){return e.setMonth(r,1),e.setHours(0,0,0,0),e}}class OR extends dn{priority=110;parse(e,t,r){const i=a=>a-1;switch(t){case"L":return ur($n(cr.month,e),i);case"LL":return ur(rr(2,e),i);case"Lo":return ur(r.ordinalNumber(e,{unit:"month"}),i);case"LLL":return r.month(e,{width:"abbreviated",context:"standalone"})||r.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return r.month(e,{width:"narrow",context:"standalone"});default:return r.month(e,{width:"wide",context:"standalone"})||r.month(e,{width:"abbreviated",context:"standalone"})||r.month(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=0&&t<=11}set(e,t,r){return e.setMonth(r,1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]}function kR(n,e){const t=ou(),r=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??t.firstWeekContainsDate??t.locale?.options?.firstWeekContainsDate??1,i=iw(n,e),a=bn(e?.in||n,0);return a.setFullYear(i,0,r),a.setHours(0,0,0,0),xo(a,e)}const oF=null;function NC(n,e){const t=dt(n,e?.in),r=+xo(t,e)-+kR(t,e);return Math.round(r/wC)+1}const lF=null;function LR(n,e,t){const r=dt(n,t?.in),i=NC(r,t)-e;return r.setDate(r.getDate()-i*7),dt(r,t?.in)}const cF=null;class AR extends dn{priority=100;parse(e,t,r){switch(t){case"w":return $n(cr.week,e);case"wo":return r.ordinalNumber(e,{unit:"week"});default:return rr(t.length,e)}}validate(e,t){return t>=1&&t<=53}
330set(e,t,r,i){return xo(LR(e,r,i),i)}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","i","t","T"]}function PC(n,e){const t=dt(n,e?.in),r=t.getFullYear(),i=bn(t,0);i.setFullYear(r+1,0,4),i.setHours(0,0,0,0);const a=af(i),s=bn(t,0);s.setFullYear(r,0,4),s.setHours(0,0,0,0);const c=af(s);return t.getTime()>=a.getTime()?r+1:t.getTime()>=c.getTime()?r:r-1}const uF=null;function RR(n,e){const t=PC(n,e),r=bn(e?.in||n,0);return r.setFullYear(t,0,4),r.setHours(0,0,0,0),af(r)}const dF=null;function aw(n,e){const t=dt(n,e?.in),r=+af(t)-+RR(t);return Math.round(r/wC)+1}const fF=null;function IR(n,e,t){const r=dt(n,t?.in),i=aw(r,t)-e;return r.setDate(r.getDate()-i*7),r}const hF=null;class NR extends dn{priority=100;parse(e,t,r){switch(t){case"I":return $n(cr.week,e);case"Io":return r.ordinalNumber(e,{unit:"week"});default:return rr(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,t,r){return af(IR(e,r))}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]}const PR=[31,28,31,30,31,30,31,31,30,31,30,31],BR=[31,29,31,30,31,30,31,31,30,31,30,31];class HR extends dn{priority=90;subPriority=1;parse(e,t,r){switch(t){case"d":return $n(cr.date,e);case"do":return r.ordinalNumber(e,{unit:"date"});default:return rr(t.length,e)}}validate(e,t){const r=e.getFullYear(),i=IC(r),a=e.getMonth();return i?t>=1&&t<=BR[a]:t>=1&&t<=PR[a]}set(e,t,r){return e.setDate(r),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","w","I","D","i","e","c","t","T"]}class zR extends dn{priority=90;subpriority=1;parse(e,t,r){switch(t){case"D":case"DD":return $n(cr.dayOfYear,e);case"Do":return r.ordinalNumber(e,{unit:"date"});default:return rr(t.length,e)}}validate(e,t){const r=e.getFullYear();return IC(r)?t>=1&&t<=366:t>=1&&t<=365}set(e,t,r){return e.setMonth(0,r),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]}function La(n,e,t){const r=dt(n,t?.in);return isNaN(e)?bn(t?.in||n,NaN):(e&&r.setDate(r.getDate()+e),r)}const pF=null;function sw(n,e,t){const r=ou(),i=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,a=dt(n,t?.in),s=a.getDay(),u=(e%7+7)%7,f=7-i,h=e<0||e>6?e-(s+f)%7:(u+f)%7-(s+f)%7;return La(a,h,t)}const mF=null;class FR extends dn{priority=90;parse(e,t,r){switch(t){case"E":case"EE":case"EEE":return r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return r.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"});default:return r.day(e,{width:"wide",context:"formatting"})||r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=6}set(e,t,r,i){return e=sw(e,r,i),e.setHours(0,0,0,0),e}incompatibleTokens=["D","i","e","c","t","T"]}class VR extends dn{priority=90;parse(e,t,r,i){const a=s=>{const c=Math.floor((s-1)/7)*7;return(s+i.weekStartsOn+6)%7+c};switch(t){case"e":case"ee":return ur(rr(t.length,e),a);case"eo":return ur(r.ordinalNumber(e,{unit:"day"}),a);case"eee":return r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"});case"eeeee":return r.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"});default:return r.day(e,{width:"wide",context:"formatting"})||r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=6}set(e,t,r,i){return e=sw(e,r,i),e.setHours(0,0,0,0),e}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]}class YR extends dn{priority=90;parse(e,t,r,i){const a=s=>{const c=Math.floor((s-1)/7)*7;return(s+i.weekStartsOn+6)%7+c};switch(t){case"c":case"cc":return ur(rr(t.length,e),a);case"co":return ur(r.ordinalNumber(e,{unit:"day"}),a);case"ccc":return r.day(e,{width:"abbreviated",context:"standalone"})||r.day(e,{width:"short",context:"standalone"})||r.day(e,{width:"narrow",context:"standalone"});case"ccccc":return r.day(e,{width:"narrow",context:"standalone"});case"cccccc":return r.day(e,{width:"short",context:"standalone"})||r.day(e,{width:"narrow",context:"standalone"});default:return r.day(e,{width:"wide",context:"standalone"})||r.day(e,{width:"abbreviated",context:"standalone"})||r.day(e,{width:"short",context:"standalone"})||r.day(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=0&&t<=6}
330set(e,t,r,i){return e=sw(e,r,i),e.setHours(0,0,0,0),e}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]}function jR(n,e){const t=dt(n,e?.in).getDay();return t===0?7:t}const gF=null;function WR(n,e,t){const r=dt(n,t?.in),i=jR(r,t),a=e-i;return La(r,a,t)}const vF=null;class UR extends dn{priority=90;parse(e,t,r){const i=a=>a===0?7:a;switch(t){case"i":case"ii":return rr(t.length,e);case"io":return r.ordinalNumber(e,{unit:"day"});case"iii":return ur(r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"}),i);case"iiiii":return ur(r.day(e,{width:"narrow",context:"formatting"}),i);case"iiiiii":return ur(r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"}),i);default:return ur(r.day(e,{width:"wide",context:"formatting"})||r.day(e,{width:"abbreviated",context:"formatting"})||r.day(e,{width:"short",context:"formatting"})||r.day(e,{width:"narrow",context:"formatting"}),i)}}validate(e,t){return t>=1&&t<=7}set(e,t,r){return e=WR(e,r),e.setHours(0,0,0,0),e}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]}class qR extends dn{priority=80;parse(e,t,r){switch(t){case"a":case"aa":case"aaa":return r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return r.dayPeriod(e,{width:"narrow",context:"formatting"});default:return r.dayPeriod(e,{width:"wide",context:"formatting"})||r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,r){return e.setHours(rw(r),0,0,0),e}incompatibleTokens=["b","B","H","k","t","T"]}class $R extends dn{priority=80;parse(e,t,r){switch(t){case"b":case"bb":case"bbb":return r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return r.dayPeriod(e,{width:"narrow",context:"formatting"});default:return r.dayPeriod(e,{width:"wide",context:"formatting"})||r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,r){return e.setHours(rw(r),0,0,0),e}incompatibleTokens=["a","B","H","k","t","T"]}class GR extends dn{priority=80;parse(e,t,r){switch(t){case"B":case"BB":case"BBB":return r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return r.dayPeriod(e,{width:"narrow",context:"formatting"});default:return r.dayPeriod(e,{width:"wide",context:"formatting"})||r.dayPeriod(e,{width:"abbreviated",context:"formatting"})||r.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,r){return e.setHours(rw(r),0,0,0),e}incompatibleTokens=["a","b","t","T"]}class ZR extends dn{priority=70;parse(e,t,r){switch(t){case"h":return $n(cr.hour12h,e);case"ho":return r.ordinalNumber(e,{unit:"hour"});default:return rr(t.length,e)}}validate(e,t){return t>=1&&t<=12}set(e,t,r){const i=e.getHours()>=12;return i&&r<12?e.setHours(r+12,0,0,0):!i&&r===12?e.setHours(0,0,0,0):e.setHours(r,0,0,0),e}incompatibleTokens=["H","K","k","t","T"]}class XR extends dn{priority=70;parse(e,t,r){switch(t){case"H":return $n(cr.hour23h,e);case"Ho":return r.ordinalNumber(e,{unit:"hour"});default:return rr(t.length,e)}}validate(e,t){return t>=0&&t<=23}set(e,t,r){return e.setHours(r,0,0,0),e}incompatibleTokens=["a","b","h","K","k","t","T"]}class QR extends dn{priority=70;parse(e,t,r){switch(t){case"K":return $n(cr.hour11h,e);case"Ko":return r.ordinalNumber(e,{unit:"hour"});default:return rr(t.length,e)}}validate(e,t){return t>=0&&t<=11}set(e,t,r){return e.getHours()>=12&&r<12?e.setHours(r+12,0,0,0):e.setHours(r,0,0,0),e}incompatibleTokens=["h","H","k","t","T"]}class KR extends dn{priority=70;parse(e,t,r){switch(t){case"k":return $n(cr.hour24h,e);case"ko":return r.ordinalNumber(e,{unit:"hour"});default:return rr(t.length,e)}}validate(e,t){return t>=1&&t<=24}set(e,t,r){const i=r<=24?r%24:r;return e.setHours(i,0,0,0),e}incompatibleTokens=["a","b","h","H","K","t","T"]}class JR extends dn{priority=60;parse(e,t,r){switch(t){case"m":return $n(cr.minute,e);case"mo":return r.ordinalNumber(e,{unit:"minute"});default:return rr(t.length,e)}}validate(e,t){return t>=0&&t<=59}set(e,t,r){return e.setMinutes(r,0,0),e}incompatibleTokens=["t","T"]}class e8 extends dn{priority=50;parse(e,t,r){switch(t){case"s":return $n(cr.second,e);case"so":return r.ordinalNumber(e,{unit:"second"});default:return rr(t.length,e)}}validate(e,t){return t>=0&&t<=59}set(e,t,r){return e.setSeconds(r,0),e}incompatibleTokens=["t","T"]}class t8 extends dn{priority=30;parse(e,t){const r=i=>Math.trunc(i*Math.pow(10,-t.length+3));return ur(rr(t.length,e),r)}set(e,t,r){return e.setMilliseconds(r),e}incompatibleTokens=["t","T"]}function X0(n){const e=dt(n),t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),+n-+t}class n8 extends dn{priority=10;parse(e,t){switch(t){case"X":return vs(gs.basicOptionalMinutes,e);case"XX":return vs(gs.basic,e);case"XXXX":return vs(gs.basicOptionalSeconds,e);case"XXXXX":return vs(gs.extendedOptionalSeconds,e);default:return vs(gs.extended,e)}}set(e,t,r){return t.timestampIsSet?e:bn(e,e.getTime()-X0(e)-r)}incompatibleTokens=["t","T","x"]}class r8 extends dn{priority=10;parse(e,t){switch(t){case"x":return vs(gs.basicOptionalMinutes,e);case"xx":return vs(gs.basic,e);case"xxxx":return vs(gs.basicOptionalSeconds,e);case"xxxxx":return vs(gs.extendedOptionalSeconds,e);default:return vs(gs.extended,e)}}set(e,t,r){return t.timestampIsSet?e:bn(e,e.getTime()-X0(e)-r)}incompatibleTokens=["t","T","X"]}class i8 extends dn{priority=40;parse(e){return AC(e)}set(e,t,r){return[bn(e,r*1e3),{timestampIsSet:!0}]}incompatibleTokens="*"}class a8 extends dn{priority=20;parse(e){return AC(e)}set(e,t,r){return[bn(e,r),{timestampIsSet:!0}]}incompatibleTokens="*"}const s8={G:new wR,y:new ER,Y:new xR,R:new SR,u:new CR,Q:new TR,q:ne
330w MR,M:new DR,L:new OR,w:new AR,I:new NR,d:new HR,D:new zR,E:new FR,e:new VR,c:new YR,i:new UR,a:new qR,b:new $R,B:new GR,h:new ZR,H:new XR,K:new QR,k:new KR,m:new JR,s:new e8,S:new t8,X:new n8,x:new r8,t:new i8,T:new a8},o8=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,l8=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,c8=/^'([^]*?)'?$/,u8=/''/g,d8=/\S/,f8=/[a-zA-Z]/;function h8(n,e,t,r){const i=()=>bn(r?.in||t,NaN),a=mR(),s=r?.locale??a.locale??CC,c=r?.firstWeekContainsDate??r?.locale?.options?.firstWeekContainsDate??a.firstWeekContainsDate??a.locale?.options?.firstWeekContainsDate??1,u=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??a.weekStartsOn??a.locale?.options?.weekStartsOn??0;if(!e)return n?i():dt(t,r?.in);const f={firstWeekContainsDate:c,weekStartsOn:u,locale:s},h=[new _R(r?.in,t)],g=e.match(l8).map(x=>{const S=x[0];if(S in tw){const T=tw[S];return T(x,s.formatLong)}return x}).join("").match(o8),v=[];for(let x of g){!r?.useAdditionalWeekYearTokens&&OC(x)&&nw(x,e,n),!r?.useAdditionalDayOfYearTokens&&DC(x)&&nw(x,e,n);const S=x[0],T=s8[S];if(T){const{incompatibleTokens:M}=T;if(Array.isArray(M)){const k=v.find(L=>M.includes(L.token)||L.token===S);if(k)throw new RangeError(`The format string mustn't contain \`${k.fullToken}\` and \`${x}\` at the same time`)}else if(T.incompatibleTokens==="*"&&v.length>0)throw new RangeError(`The format string mustn't contain \`${x}\` and any other token at the same time`);v.push({token:S,fullToken:x});const C=T.run(n,x,s.match,f);if(!C)return i();h.push(C.setter),n=C.rest}else{if(S.match(f8))throw new RangeError("Format string contains an unescaped latin alphabet character `"+S+"`");if(x==="''"?x="'":S==="'"&&(x=p8(x)),n.indexOf(x)===0)n=n.slice(x.length);else return i()}}if(n.length>0&&d8.test(n))return i();const y=h.map(x=>x.priority).sort((x,S)=>S-x).filter((x,S,T)=>T.indexOf(x)===S).map(x=>h.filter(S=>S.priority===x).sort((S,T)=>T.subPriority-S.subPriority)).map(x=>x[0]);let _=dt(t,r?.in);if(isNaN(+_))return i();const w={};for(const x of y){if(!x.validate(_,f))return i();const S=x.set(_,w,f);Array.isArray(S)?(_=S[0],Object.assign(w,S[1])):_=S}return _}function p8(n){return n.match(c8)[1].replace(u8,"'")}const yF=null;function So(n){return n instanceof Date||typeof n=="object"&&Object.prototype.toString.call(n)==="[object Date]"}const bF=null;function Q0(n){return!(!So(n)&&typeof n!="number"||isNaN(+dt(n)))}const _F=null;function ys(n,e){return+dt(n)<+dt(e)}const wF=null;function Co(n,...e){const t=bn.bind(null,n||e.find(r=>typeof r=="object"));return e.map(t)}function lu(n,e){const t=dt(n,e?.in);return t.setHours(0,0,0,0),t}const EF=null;function sf(n,e,t){const[r,i]=Co(t?.in,n,e),a=lu(r),s=lu(i),c=+a-X0(a),u=+s-X0(s);return Math.round((c-u)/m4)}const xF=null;function K0(n,e){const t=dt(n,e?.in);return t.setFullYear(t.getFullYear(),0,1),t.setHours(0,0,0,0),t}const SF=null;function m8(n,e){const t=dt(n,e?.in);return sf(t,K0(t))+1}const CF=null;function _n(n,e){const t=n<0?"-":"",r=Math.abs(n).toString().padStart(e,"0");return t+r}const Cl={y(n,e){const t=n.getFullYear(),r=t>0?t:1-t;return _n(e==="yy"?r%100:r,e.length)},M(n,e){const t=n.getMonth();return e==="M"?String(t+1):_n(t+1,2)},d(n,e){return _n(n.getDate(),e.length)},a(n,e){const t=n.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return t.toUpperCase();case"aaa":return t;case"aaaaa":return t[0];default:return t==="am"?"a.m.":"p.m."}},h(n,e){return _n(n.getHours()%12||12,e.length)},H(n,e){return _n(n.getHours(),e.length)},m(n,e){return _n(n.getMinutes(),e.length)},s(n,e){return _n(n.getSeconds(),e.length)},S(n,e){const t=e.length,r=n.getMilliseconds(),i=Math.trunc(r*Math.pow(10,t-3));return _n(i,e.length)}},of={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},BC={G:function(n,e,t){const r=n.getFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return t.era(r,{width:"abbreviated"});case"GGGGG":return t.era(r,{width:"narrow"});default:return t.era(r,{width:"wide"})}},y:function(n,e,t){if(e==="yo"){const r=n.getFullYear(),i=r>0?r:1-r;return t.ordinalNumber(i,{unit:"year"})}return Cl.y(n,e)},Y:function(n,e,t,r){const i=iw(n,r),a=i>0?i:1-i;if(e==="YY"){const s=a%100;return _n(s,2)}return e==="Yo"?t.ordinalNumber(a,{unit:"year"}):_n(a,e.length)},R:function(n,e){const t=PC(n);return _n(t,e.length)},u:function(n,e){const t=n.getFullYear();return _n(t,e.length)},Q:function(n,e,t){const r=Math.ceil((n.getMonth()+1)/3);switch(e){case"Q":return String(r);case"QQ":return _n(r,2);case"Qo":return t.ordinalNumber(r,{unit:"quarter"});case"QQQ":return t.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return t.quarter(r,{width:"narrow",context:"formatting"});default:return t.quarter(r,{width:"wide",context:"formatting"})}},q:function(n,e,t){const r=Math.ceil((n.getMonth()+1)/3);switch(e){case"q":return String(r);case"qq":return _n(r,2);case"qo":return t.ordinalNumber(r,{unit:"quarter"});case"qqq":return t.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return t.quarter(r,{width:"narrow",context:"standalone"});default:return t.quarter(r,{width:"wide",context:"standalone"})}},M:function(n,e,t){const r=n.getMonth();switch(e){case"M":case"MM":return Cl.M(n,e);case"Mo":return t.ordinalNumber(r+1,{unit:"month"});case"MMM":return t.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return t.month(r,{width:"narrow",context:"formatting"});default:return t.month(r,{width:"wide",context:"formatting"})}},L:function(n,e,t){const r=n.getMonth();switch(e){case"L":return String(r+1);case"LL":return _n(r+1,2);case"Lo":return t.ordinalNumber(r+1,{unit:"month"});case"LLL":return t.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return t.month(r,{width:"narrow",context:"standalone"});default:return t.month(r,{width:"wide",context:"standalone"})}},w:function(n,e,t,r){const i=NC(n,r);return e==="wo"?t.ordinalNumber(i,{unit:"week"}):_n(i,e.length)},I:function(n,e,t){const r=aw(n);return e==="Io"?t.ordinalNumber(r,{unit:"week"}):_n(r,e.length)},d:function(n,e,t){return e==="do"?t.ordinalNumber(n.getDate(),{unit:"date"}):Cl.d(n,e)},D:function(n,e,t){const r=m8(n);return e==="Do"?t.ordinalNumber(r,{unit:"dayOfYear"}):_n(r,e.length)},E:function(n,e,t){const r=n.getDay();switch(e){case"E":case"EE":case"EEE":return t.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return t.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return t.day(r,{width:"short",context:"formatting"});default:return t.day(r,{width:"wide",context:"formatting"})}},e:function(n,e,t,r){const i=n.getDay(),a=(i-r.weekStartsOn+8)%7||7;switch(e){case"e":return String(a);case"ee":return _n(a,2);case"eo":return t.ordinalNumber(a,{unit:"day"});case"eee":return t.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return t.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return t.day(i,{width:"short",context:"formatting"});default:return t.day(i,{width:"wide",context:"formatting"})}},c:function(n,e,t,r){const i=n.getDay(),a=(i-r.weekStartsOn+8)%7||7;switch(e){case"c":return String(a);case"cc":return _n(a,e.length);case"co":return t.ordinalNumber(a,{unit:"day"});case"ccc":return t.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return t.day(i,{width:"narrow",context:"standalone"});case"cccccc":return t.day(i,{width:"short",context:"standalone"});default:return t.day(i,{width:"wide",context:"standalone"})}},i:function(n,e,t){const r=n.getDay(),i=r===0?7:r;switch(e){case"i":return String(i);case"ii":return _n(i,e.length);case"io":return t.ordinalNumber(i,{unit:"day"});case"iii":return t.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return t.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return t.day(r,{width:"short",context:"formatting"});default:return t.day(r,{width:"wide",context:"formatting"})}},a:function(n,e,t){const i=n.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return t.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return t.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return t.dayPeriod(i,{width:"narrow",context:"formatting"});default:return t.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(n,e,t){const r=n.getHours();let i;switch(r===12?i=of.noon:r===0?i=of.midnight:i=r/12>
330=1?"pm":"am",e){case"b":case"bb":return t.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return t.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return t.dayPeriod(i,{width:"narrow",context:"formatting"});default:return t.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(n,e,t){const r=n.getHours();let i;switch(r>=17?i=of.evening:r>=12?i=of.afternoon:r>=4?i=of.morning:i=of.night,e){case"B":case"BB":case"BBB":return t.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return t.dayPeriod(i,{width:"narrow",context:"formatting"});default:return t.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(n,e,t){if(e==="ho"){let r=n.getHours()%12;return r===0&&(r=12),t.ordinalNumber(r,{unit:"hour"})}return Cl.h(n,e)},H:function(n,e,t){return e==="Ho"?t.ordinalNumber(n.getHours(),{unit:"hour"}):Cl.H(n,e)},K:function(n,e,t){const r=n.getHours()%12;return e==="Ko"?t.ordinalNumber(r,{unit:"hour"}):_n(r,e.length)},k:function(n,e,t){let r=n.getHours();return r===0&&(r=24),e==="ko"?t.ordinalNumber(r,{unit:"hour"}):_n(r,e.length)},m:function(n,e,t){return e==="mo"?t.ordinalNumber(n.getMinutes(),{unit:"minute"}):Cl.m(n,e)},s:function(n,e,t){return e==="so"?t.ordinalNumber(n.getSeconds(),{unit:"second"}):Cl.s(n,e)},S:function(n,e){return Cl.S(n,e)},X:function(n,e,t){const r=n.getTimezoneOffset();if(r===0)return"Z";switch(e){case"X":return zC(r);case"XXXX":case"XX":return cu(r);default:return cu(r,":")}},x:function(n,e,t){const r=n.getTimezoneOffset();switch(e){case"x":return zC(r);case"xxxx":case"xx":return cu(r);default:return cu(r,":")}},O:function(n,e,t){const r=n.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+HC(r,":");default:return"GMT"+cu(r,":")}},z:function(n,e,t){const r=n.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+HC(r,":");default:return"GMT"+cu(r,":")}},t:function(n,e,t){const r=Math.trunc(+n/1e3);return _n(r,e.length)},T:function(n,e,t){return _n(+n,e.length)}};function HC(n,e=""){const t=n>0?"-":"+",r=Math.abs(n),i=Math.trunc(r/60),a=r%60;return a===0?t+String(i):t+String(i)+e+_n(a,2)}function zC(n,e){return n%60===0?(n>0?"-":"+")+_n(Math.abs(n)/60,2):cu(n,e)}function cu(n,e=""){const t=n>0?"-":"+",r=Math.abs(n),i=_n(Math.trunc(r/60),2),a=_n(r%60,2);return t+i+e+a}const g8=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,v8=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,y8=/^'([^]*?)'?$/,b8=/''/g,_8=/[a-zA-Z]/;function FC(n,e,t){const r=ou(),i=t?.locale??r.locale??CC,a=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,s=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,c=dt(n,t?.in);if(!Q0(c))throw new RangeError("Invalid time value");let u=e.match(v8).map(h=>{const g=h[0];if(g==="p"||g==="P"){const v=tw[g];return v(h,i.formatLong)}return h}).join("").match(g8).map(h=>{if(h==="''")return{isToken:!1,value:"'"};const g=h[0];if(g==="'")return{isToken:!1,value:w8(h)};if(BC[g])return{isToken:!0,value:h};if(g.match(_8))throw new RangeError("Format string contains an unescaped latin alphabet character `"+g+"`");return{isToken:!1,value:h}});i.localize.preprocessor&&(u=i.localize.preprocessor(c,u));const f={firstWeekContainsDate:a,weekStartsOn:s,locale:i};return u.map(h=>{if(!h.isToken)return h.value;const g=h.value;(!t?.useAdditionalWeekYearTokens&&OC(g)||!t?.useAdditionalDayOfYearTokens&&DC(g))&&nw(g,e,String(n));const v=BC[g[0]];return v(c,g,i.localize,f)}).join("")}function w8(n){const e=n.match(y8);return e?e[1].replace(b8,"'"):n}const TF=null;function J0(n,e,t){const r=dt(n,t?.in);return r.setHours(e),r}const MF=null;function ey(n,e,t){const r=dt(n,t?.in);return r.setMinutes(e),r}const DF=null;function ty(n,e,t){const r=dt(n,t?.in);return r.setSeconds(e),r}const OF=null;function VC(n,e){const t=dt(n,e?.in);return t.setDate(1),t.setHours(0,0,0,0),t}const kF=null;function ow(n,e){const t=dt(n,e?.in),r=t.getMonth(),i=r-r%3;return t.setMonth(i,1),t.setHours(0,0,0,0),t}const LF=null;function YC(n,e){const t=dt(n,e?.in);return t.setHours(23,59,59,999),t}const AF=null;
330function E8(n,e){const t=ou(),r=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??t.weekStartsOn??t.locale?.options?.weekStartsOn??0,i=dt(n,e?.in),a=i.getDay(),s=(a<r?-7:0)+6-(a-r);return i.setDate(i.getDate()+s),i.setHours(23,59,59,999),i}const RF=null;function jC(n,e){const t=dt(n,e?.in),r=t.getMonth();return t.setFullYear(t.getFullYear(),r+1,0),t.setHours(23,59,59,999),t}const IF=null;function x8(n,e,t){const[r,i]=Co(t?.in,n,e);return r.getFullYear()===i.getFullYear()}const NF=null;function S8(n,e,t){const[r,i]=Co(t?.in,n,e);return r.getFullYear()===i.getFullYear()&&r.getMonth()===i.getMonth()}const PF=null;function C8(n,e,t){const[r,i]=Co(t?.in,n,e);return+ow(r)==+ow(i)}const BF=null;function T8(n,e,t){const[r,i]=Co(t?.in,n,e);return+lu(r)==+lu(i)}const HF=null;function M8(n,e){return+dt(n)==+dt(e)}const zF=null;function hm(n,e,t){const r=+dt(n,t?.in),[i,a]=[+dt(e.start,t?.in),+dt(e.end,t?.in)].sort((s,c)=>s-c);return r>=i&&r<=a}const FF=null;function D8(n,e){const t=dt(n,e?.in),r=t.getFullYear(),i=t.getMonth(),a=bn(t,0);return a.setFullYear(r,i+1,0),a.setHours(0,0,0,0),a.getDate()}const VF=null;function Fi(n,e,t){const r=dt(n,t?.in),i=r.getFullYear(),a=r.getDate(),s=bn(t?.in||n,0);s.setFullYear(i,e,15),s.setHours(0,0,0,0);const c=D8(s);return r.setMonth(e,Math.min(a,c)),r}const YF=null;function lf(n,e,t){const r=dt(n,t?.in),i=Math.trunc(r.getMonth()/3)+1,a=e-i;return Fi(r,r.getMonth()+a*3)}const jF=null;function Wt(n,e){return dt(n,e?.in).getFullYear()}const WF=null;function Si(n,e){return dt(n,e?.in).getMonth()}const UF=null;function WC(n,e){const t=dt(n,e?.in),r=t.getFullYear();return t.setFullYear(r+1,0,0),t.setHours(23,59,59,999),t}const qF=null;function Tl(n,e){const t=dt(n,e?.in);return Math.trunc(t.getMonth()/3)+1}const $F=null;function Aa(n,e){return dt(n,e?.in).getHours()}const GF=null;function Ra(n,e){return dt(n,e?.in).getMinutes()}const ZF=null;function Ml(n){return dt(n).getSeconds()}const XF=null;function Ia(n,e,t){const r=dt(n,t?.in);if(isNaN(e))return bn(t?.in||n,NaN);if(!e)return r;const i=r.getDate(),a=bn(t?.in||n,r.getTime());a.setMonth(r.getMonth()+e+1,0);const s=a.getDate();return i>=s?a:(r.setFullYear(a.getFullYear(),a.getMonth(),i),r)}const QF=null;function uu(n,e,t){return Ia(n,-e,t)}const KF=null;function ny(n,e,t){const[r,i]=Co(t?.in,n,e),a=r.getFullYear()-i.getFullYear(),s=r.getMonth()-i.getMonth();return a*12+s}const JF=null;function lw(n,e,t){return Ia(n,e*3,t)}const eV=null;function UC(n,e,t){return lw(n,-e,t)}const tV=null;function ry(n,e,t){const[r,i]=Co(t?.in,n,e),a=r.getFullYear()-i.getFullYear(),s=Tl(r)-Tl(i);return a*4+s}const nV=null;function To(n,e,t){return Ia(n,e*12,t)}const rV=null;function cf(n,e,t){return To(n,-e,t)}const iV=null;function iy(n,e,t){const[r,i]=Co(t?.in,n,e);return r.getFullYear()-i.getFullYear()}const aV=null;function qC(n,e){let t,r=e?.in;return n.forEach(i=>{!r&&typeof i=="object"&&(r=bn.bind(null,i));const a=dt(i,r);(!t||t>a||isNaN(+a))&&(t=a)}),bn(r,t||NaN)}const sV=null;function $C(n,e){let t,r=e?.in;return n.forEach(i=>{!r&&typeof i=="object"&&(r=bn.bind(null,i));const a=dt(i,r);(!t||t<a||isNaN(+a))&&(t=a)}),bn(r,t||NaN)}const oV=null;function GC(n,e,t){return bn(t?.in||n,+dt(n)+e)}const lV=null;function O8(n,e,t){return GC(n,e*$0,t)}const cV=null;function pm(n,e,t){const r=dt(n,t?.in);return r.setTime(r.getTime()+e*q0),r}const uV=null;function k8(n,e,t){return GC(n,e*1e3,t)}const dV=null;function Dl(n,e){return+dt(n)>+dt(e)}const fV=null;function L8(n,e){return dt(n,e?.in).getDay()}const hV=null;function ZC(n,e){return dt(n,e?.in).getDate()}const pV=null;function ay(n,e,t){return La(n,e*7,t)}const mV=null;function cw(n){return+dt(n)}const gV=null;function bs(n,e,t){const r=dt(n,t?.in);return isNaN(+r)?bn(t?.in||n,NaN):(r.setFullYear(e),r)}const vV=null;function A8(n,e,t){const[r,i]=Co(t?.in,n,e),a=XC(r,i),s=Math.abs(sf(r,i));r.setDate(r.getDate()-a*s);const c=+(XC(r,i)===-a),u=a*(s-c);return u===0?0:u}function XC(n,e){const t=n.getFullYear()-e.getFullYear()||n.getMonth()-e.getMonth()||n.getDate()-e.getDate()||n.getHours()-e.getHours()||n.getMinutes()-e.getMinutes()||n.getSeconds()-e.getSeconds()||n.getMilliseconds()-e.getMilliseconds();return t<0?-1:t>0?1:t}const yV=null;function QC(n,e,t){return ay(n,-e,t)}const bV=null;function R8(n,e,t){return La(n,-e,t)}const _V=null;function KC(){const n=navigator.userAgentData;return n!=null&&n.platform?n.platform:navigator.platform}function JC(){const n=navigator.userAgentData;return n&&Array.isArray(n.brands)?n.brands.map(e=>{let{brand:t,version:r}=e;return t+"/"+r}).join(" "):navigator.userAgent}function wV(){return/apple/i.test(navigator.vendor)}function uw(){const n=/android/i;return n.test(KC())||n.test(JC())}function EV(){return KC().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function eT(){return JC().includes("jsdom/")}const tT="data-floating-ui-focusable",I8=null,dw="ArrowLeft",fw="ArrowRight",N8="ArrowUp",P8="ArrowDown";function B8(n){let e=n.activeElement;for(;((t=e)==null||(t=t.shadowRoot)==null?void 0:t.activeElement)!=null;){var t;e=e.shadowRoot.activeElement}return e}function H8(n,e){if(!n||!e)return!1;const t=e.getRootNode==null?void 0:e.getRootNode();if(n.contains(e))return!0;
330if(t&&isShadowRoot(t)){let r=e;for(;r;){if(n===r)return!0;r=r.parentNode||r.host}}return!1}function xV(n){return"composedPath"in n?n.composedPath()[0]:n.target}function SV(n,e){if(e==null)return!1;if("composedPath"in n)return n.composedPath().includes(e);const t=n;return t.target!=null&&e.contains(t.target)}function CV(n){return n.matches("html,body")}function hw(n){return n?.ownerDocument||document}function z8(n){return isHTMLElement(n)&&n.matches(I8)}function TV(n){return n?n.getAttribute("role")==="combobox"&&z8(n):!1}function MV(n){if(!n||eT())return!0;try{return n.matches(":focus-visible")}catch{return!0}}function DV(n){return n?n.hasAttribute(tT)?n:n.querySelector("["+tT+"]")||n:null}function nT(n,e,t){return t===void 0&&(t=!0),n.filter(i=>{var a;return i.parentId===e&&(!t||((a=i.context)==null?void 0:a.open))}).flatMap(i=>[i,...nT(n,i.id,t)])}function OV(n,e){let t,r=-1;function i(a,s){s>r&&(t=a,r=s),nT(n,a).forEach(u=>{i(u.id,s+1)})}return i(e,0),n.find(a=>a.id===t)}function kV(n,e){var t;let r=[],i=(t=n.find(a=>a.id===e))==null?void 0:t.parentId;for(;i;){const a=n.find(s=>s.id===i);i=a?.parentId,a&&(r=r.concat(a))}return r}function sy(n){n.preventDefault(),n.stopPropagation()}function LV(n){return"nativeEvent"in n}function AV(n){return n.mozInputSource===0&&n.isTrusted?!0:uw()&&n.pointerType?n.type==="click"&&n.buttons===1:n.detail===0&&!n.pointerType}function RV(n){return eT()?!1:!uw()&&n.width===0&&n.height===0||uw()&&n.width===1&&n.height===1&&n.pressure===0&&n.detail===0&&n.pointerType==="mouse"||n.width<1&&n.height<1&&n.pressure===0&&n.detail===0&&n.pointerType==="touch"}function IV(n,e){const t=["mouse","pen"];return e||t.push("",void 0),t.includes(n)}var F8=typeof document<"u",V8=function(){},mm=F8?p.useLayoutEffect:V8;const Y8={...Q};function NV(n){const e=React.useRef(n);return mm(()=>{e.current=n}),e}const j8=Y8.useInsertionEffect||(n=>n());function W8(n){const e=p.useRef(()=>{});return j8(()=>{e.current=n}),p.useCallback(function(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return e.current==null?void 0:e.current(...r)},[])}function oy(n,e,t){return Math.floor(n/e)!==t}function pw(n,e){return e<0||e>=n.current.length}function BV(n,e){return ra(n,{disabledIndices:e})}function HV(n,e){return ra(n,{decrement:!0,startingIndex:n.current.length,disabledIndices:e})}function ra(n,e){let{startingIndex:t=-1,decrement:r=!1,disabledIndices:i,amount:a=1}=e===void 0?{}:e,s=t;do s+=r?-a:a;while(s>=0&&s<=n.current.length-1&&U8(n,s,i));return s}function zV(n,e){let{event:t,orientation:r,loop:i,rtl:a,cols:s,disabledIndices:c,minIndex:u,maxIndex:f,prevIndex:h,stopEvent:g=!1}=e,v=h;if(t.key===N8){if(g&&sy(t),h===-1)v=f;else if(v=ra(n,{startingIndex:v,amount:s,decrement:!0,disabledIndices:c}),i&&(h-s<u||v<0)){const y=h%s,_=f%s,w=f-(_-y);_===y?v=f:v=_>y?w:w-s}pw(n,v)&&(v=h)}if(t.key===P8&&(g&&sy(t),h===-1?v=u:(v=ra(n,{startingIndex:h,amount:s,disabledIndices:c}),i&&h+s>f&&(v=ra(n,{startingIndex:h%s-s,amount:s,disabledIndices:c}))),pw(n,v)&&(v=h)),r==="both"){const y=floor(h/s);t.key===(a?dw:fw)&&(g&&sy(t),h%s!==s-1?(v=ra(n,{startingIndex:h,disabledIndices:c}),i&&oy(v,s,y)&&(v=ra(n,{startingIndex:h-h%s-1,disabledIndices:c}))):i&&(v=ra(n,{startingIndex:h-h%s-1,disabledIndices:c})),oy(v,s,y)&&(v=h)),t.key===(a?fw:dw)&&(g&&sy(t),h%s!==0?(v=ra(n,{startingIndex:h,decrement:!0,disabledIndices:c}),i&&oy(v,s,y)&&(v=ra(n,{startingIndex:h+(s-h%s),decrement:!0,disabledIndices:c}))):i&&(v=ra(n,{startingIndex:h+(s-h%s),decrement:!0,disabledIndices:c})),oy(v,s,y)&&(v=h));const _=floor(f/s)===y;pw(n,v)&&(i&&_?v=t.key===(a?fw:dw)?f:ra(n,{startingIndex:h-h%s-1,disabledIndices:c}):v=h)}return v}function FV(n,e,t){const r=[];let i=0;return n.forEach((a,s)=>{let{width:c,height:u}=a;c>e;let f=!1;for(t&&(i=0);!f;){const h=[];for(let g=0;g<c;g++)for(let v=0;v<u;v++)h.push(i+g+v*e);i%e+c<=e&&h.every(g=>
330r[g]==null)?(h.forEach(g=>{r[g]=s}),f=!0):i++}}),[...r]}function VV(n,e,t,r,i){if(n===-1)return-1;const a=t.indexOf(n),s=e[n];switch(i){case"tl":return a;case"tr":return s?a+s.width-1:a;case"bl":return s?a+(s.height-1)*r:a;case"br":return t.lastIndexOf(n)}}function YV(n,e){return e.flatMap((t,r)=>n.includes(t)?[r]:[])}function U8(n,e,t){if(typeof t=="function")return t(e);if(t)return t.includes(e);const r=n.current[e];return r==null||r.hasAttribute("disabled")||r.getAttribute("aria-disabled")==="true"}const rT=()=>({getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function iT(n,e){const t=tabbable(n,rT()),r=t.length;if(r===0)return;const i=B8(hw(n)),a=t.indexOf(i),s=a===-1?e===1?0:r-1:a+e;return t[s]}function jV(n){return iT(hw(n).body,1)||n}function WV(n){return iT(hw(n).body,-1)||n}function UV(n,e){const t=e||n.currentTarget,r=n.relatedTarget;return!r||!H8(t,r)}function qV(n){tabbable(n,rT()).forEach(t=>{t.dataset.tabindex=t.getAttribute("tabindex")||"",t.setAttribute("tabindex","-1")})}function $V(n){n.querySelectorAll("[data-tabindex]").forEach(t=>{const r=t.dataset.tabindex;delete t.dataset.tabindex,r?t.setAttribute("tabindex",r):t.removeAttribute("tabindex")})}function ly(){return typeof window<"u"}function uf(n){return aT(n)?(n.nodeName||"").toLowerCase():"#document"}function Vi(n){var e;return(n==null||(e=n.ownerDocument)==null?void 0:e.defaultView)||window}function _s(n){var e;return(e=(aT(n)?n.ownerDocument:n.document)||window.document)==null?void 0:e.documentElement}function aT(n){return ly()?n instanceof Node||n instanceof Vi(n).Node:!1}function si(n){return ly()?n instanceof Element||n instanceof Vi(n).Element:!1}function ws(n){return ly()?n instanceof HTMLElement||n instanceof Vi(n).HTMLElement:!1}function sT(n){return!ly()||typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof Vi(n).ShadowRoot}const q8=new Set(["inline","contents"]);function gm(n){const{overflow:e,overflowX:t,overflowY:r,display:i}=ia(n);return/auto|scroll|overlay|hidden|clip/.test(e+r+t)&&!q8.has(i)}const $8=new Set(["table","td","th"]);function G8(n){return $8.has(uf(n))}const Z8=[":popover-open",":modal"];function cy(n){return Z8.some(e=>{try{return n.matches(e)}catch{return!1}})}const X8=["transform","translate","scale","rotate","perspective"],Q8=["transform","translate","scale","rotate","perspective","filter"],K8=["paint","layout","strict","content"];function mw(n){const e=gw(),t=si(n)?ia(n):n;return X8.some(r=>t[r]?t[r]!=="none":!1)||(t.containerType?t.containerType!=="normal":!1)||!e&&(t.backdropFilter?t.backdropFilter!=="none":!1)||!e&&(t.filter?t.filter!=="none":!1)||Q8.some(r=>(t.willChange||"").includes(r))||K8.some(r=>(t.contain||"").includes(r))}function J8(n){let e=Ol(n);for(;ws(e)&&!df(e);){if(mw(e))return e;if(cy(e))return null;e=Ol(e)}return null}function gw(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const eI=new Set(["html","body","#document"]);function df(n){return eI.has(uf(n))}function ia(n){return Vi(n).getComputedStyle(n)}function uy(n){return si(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.scrollX,scrollTop:n.scrollY}}function Ol(n){if(uf(n)==="html")return n;const e=n.assignedSlot||n.parentNode||sT(n)&&n.host||_s(n);return sT(e)?e.host:e}function oT(n){const e=Ol(n);return df(e)?n.ownerDocument?n.ownerDocument.body:n.body:ws(e)&&gm(e)?e:oT(e)}function vm(n,e,t){var r;e===void 0&&(e=[]),t===void 0&&(t=!0);const i=oT(n),a=i===((r=n.ownerDocument)==null?void 0:r.body),s=Vi(i);if(a){const c=vw(s);return e.concat(s,s.visualViewport||[],gm(i)?i:[],c&&t?vm(c):[])}return e.concat(i,vm(i,[],t))}function vw(n){return n.parent&&Object.getPrototypeOf(n.parent)?n.frameElement:null}var lT=sn(961);const GV=null,ZV=null,XV=null,ff=Math.min,du=Math.max,dy=Math.round,fy=Math.floor,Es=n=>({x:n,y:n}),tI={left:"right",right:"left",bottom:"top",top:"bottom"},nI={start:"end",end:"start"};function rI(n,e,t){return du(n,ff(e,t))}function hy(n,e){return typeof n=="function"?n(e):n}function hf(n){return n.split("-")[0]}function ym(n){return n.split("-")[1]}function iI(n){return n==="x"?"y":"x"}function yw(n){return n==="y"?"height":"width"}const aI=new Set(["top","bottom"]);function fu(n){return aI.has(hf(n))?"y":"x"}function bw(n){return iI(fu(n))}function sI(n,e,t){t===void 0&&(t=!1);const r=ym(n),i=bw(n),a=yw(i);let s=i==="x"?r===(t?"end":"start")?"right":"left":r==="start"?"bottom":"top";return e.reference[a]>e.floating[a]&&(s=py(s)),[s,py(s)]}function oI(n){const e=py(n);return[_w(n),e,_w(e)]}function _w(n){return n.replace(/start|end/g,e=>nI[e])}const cT=["left","right"],uT=["right","left"],lI=["top","bottom"],cI=["bottom","top"];function uI(n,e,t){switch(n){case"top":case"bottom":return t?e?uT:cT:e?cT:uT;case"left":case"right":return e?lI:cI;default:return[]}}function dI(n,e,t,r){const i=ym(n);let a=uI(hf(n),t==="start",r);return i&&(a=a.map(s=>s+"-"+i),e&&(a=a.concat(a.map(_w)))),a}function py(n){return n.replace(/left|right|bottom|top/g,e=>tI[e])}function fI(n){return{top:0,right:0,bottom:0,left:0,...n}}function dT(n){return typeof n!="number"?fI(n):{top:n,right:n,bottom:n,left:n}}function my(n){const{x:e,y:t,width:r,height:i}=n;return{width:r,height:i,top:t,left:e,right:e+r,bottom:t+i,x:e,y:t}}function fT(n,e,t){let{reference:r,floating:i}=n;const a=fu(e),s=bw(e),c=yw(s),u=hf(e),f=a==="y",h=r.x+r.width/2-i.width/2,g=r.y+r.height/2-i.height/2,v=r[c]/2-i[c]/2;let y;switch(u){case"top":y={x:h,y:r.y-i.height};break;case"bottom":y={x:h,y:r.y+r.height};break;case"right":y={x:r.x+r.width,y:g};break;case"left":y={x:r.x-i.width,y:g};break;default:y={x:r.x,y:r.y}}switch(ym(e)){case"start":y[s]-=v*(t&&f?-1:1);break;case"end":y[s]+=v*(t&&f?-1:1);break}return y}async function hI(n,e){var t;e===void 0&&(e={});const{x:r,y:i,platform:a,rects:s,elements:c,strategy:u}=n,{boundary:f="clippingAncestors",rootBoundary:h="viewport",elementContext:g="floating",altBoundary:v=!1,padding:y=0}=hy(e,n),_=dT(y),x=c[v?g==="floating"?"reference":"floating":g],S=my(await a.getClippingRect
330({element:(t=await(a.isElement==null?void 0:a.isElement(x)))==null||t?x:x.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(c.floating)),boundary:f,rootBoundary:h,strategy:u})),T=g==="floating"?{x:r,y:i,width:s.floating.width,height:s.floating.height}:s.reference,M=await(a.getOffsetParent==null?void 0:a.getOffsetParent(c.floating)),C=await(a.isElement==null?void 0:a.isElement(M))?await(a.getScale==null?void 0:a.getScale(M))||{x:1,y:1}:{x:1,y:1},k=my(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:T,offsetParent:M,strategy:u}):T);return{top:(S.top-k.top+_.top)/C.y,bottom:(k.bottom-S.bottom+_.bottom)/C.y,left:(S.left-k.left+_.left)/C.x,right:(k.right-S.right+_.right)/C.x}}const pI=async(n,e,t)=>{const{placement:r="bottom",strategy:i="absolute",middleware:a=[],platform:s}=t,c=a.filter(Boolean),u=await(s.isRTL==null?void 0:s.isRTL(e));let f=await s.getElementRects({reference:n,floating:e,strategy:i}),{x:h,y:g}=fT(f,r,u),v=r,y={},_=0;for(let x=0;x<c.length;x++){var w;const{name:S,fn:T}=c[x],{x:M,y:C,data:k,reset:L}=await T({x:h,y:g,initialPlacement:r,placement:v,strategy:i,middlewareData:y,rects:f,platform:{...s,detectOverflow:(w=s.detectOverflow)!=null?w:hI},elements:{reference:n,floating:e}});h=M??h,g=C??g,y={...y,[S]:{...y[S],...k}},L&&_<=50&&(_++,typeof L=="object"&&(L.placement&&(v=L.placement),L.rects&&(f=L.rects===!0?await s.getElementRects({reference:n,floating:e,strategy:i}):L.rects),{x:h,y:g}=fT(f,v,u)),x=-1)}return{x:h,y:g,placement:v,strategy:i,middlewareData:y}},mI=n=>({name:"arrow",options:n,async fn(e){const{x:t,y:r,placement:i,rects:a,platform:s,elements:c,middlewareData:u}=e,{element:f,padding:h=0}=hy(n,e)||{};if(f==null)return{};const g=dT(h),v={x:t,y:r},y=bw(i),_=yw(y),w=await s.getDimensions(f),x=y==="y",S=x?"top":"left",T=x?"bottom":"right",M=x?"clientHeight":"clientWidth",C=a.reference[_]+a.reference[y]-v[y]-a.floating[_],k=v[y]-a.reference[y],L=await(s.getOffsetParent==null?void 0:s.getOffsetParent(f));let O=L?L[M]:0;(!O||!await(s.isElement==null?void 0:s.isElement(L)))&&(O=c.floating[M]||a.floating[_]);const I=C/2-k/2,P=O/2-w[_]/2-1,B=ff(g[S],P),H=ff(g[T],P),F=B,$=O-w[_]-H,V=O/2-w[_]/2+I,W=rI(F,V,$),ee=!u.arrow&&ym(i)!=null&&V!==W&&a.reference[_]/2-(V<F?B:H)-w[_]/2<0,q=ee?V<F?V-F:V-$:0;return{[y]:v[y]+q,data:{[y]:W,centerOffset:V-W-q,...ee&&{alignmentOffset:q}},reset:ee}}});function gI(n,e,t){return(n?[...t.filter(i=>getAlignment(i)===n),...t.filter(i=>getAlignment(i)!==n)]:t.filter(i=>getSide(i)===i)).filter(i=>n?getAlignment(i)===n||(e?getOppositeAlignmentPlacement(i)!==i:!1):!0)}const QV=function(n){return n===void 0&&(n={}),{name:"autoPlacement",options:n,async fn(e){var t,r,i;const{rects:a,middlewareData:s,placement:c,platform:u,elements:f}=e,{crossAxis:h=!1,alignment:g,allowedPlacements:v=placements,autoAlignment:y=!0,..._}=evaluate(n,e),w=g!==void 0||v===placements?gI(g||null,y,v):v,x=await u.detectOverflow(e,_),S=((t=s.autoPlacement)==null?void 0:t.index)||0,T=w[S];if(T==null)return{};const M=getAlignmentSides(T,a,await(u.isRTL==null?void 0:u.isRTL(f.floating)));if(c!==T)return{reset:{placement:w[0]}};const C=[x[getSide(T)],x[M[0]],x[M[1]]],k=[...((r=s.autoPlacement)==null?void 0:r.overflows)||[],{placement:T,overflows:C}],L=w[S+1];if(L)return{data:{index:S+1,overflows:k},reset:{placement:L}};const O=k.map(B=>{const H=getAlignment(B.placement);return[B.placement,H&&h?B.overflows.slice(0,2).reduce((F,$)=>F+$,0):B.overflows[0],B.overflows]}).sort((B,H)=>B[1]-H[1]),P=((i=O.filter(B=>B[2].slice(0,getAlignment(B[0])?2:3).every(H=>H<=0))[0])==null?void 0:i[0])||O[0][0];return P!==c?{data:{index:S+1,overflows:k},reset:{placement:P}}:{}}}},vI=function(n){return n===void 0&&(n={}),{name:"flip",options:n,async fn(e){var t,r;const{placement:i,middlewareData:a,rects:s,initialPlacement:c,platform:u,elements:f}=e,{mainAxis:h=!0,crossAxis:g=!0,fallbackPlacements:v,fallbackStrategy:y="bestFit",fallbackAxisSideDirection:_="none",flipAlignment:w=!0,...x}=hy(n,e);if((t=a.arrow)!=null&&t.alignmentOffset)return{};const S=hf(i),T=fu(c),M=hf(c)===c,C=await(u.isRTL==null?void 0:u.isRTL(f.floating)),k=v||(M||!w?[py(c)]:oI(c)),L=_!=="none";!v&&L&&k.push(...dI(c,w,_,C));const O=[c,...k],I=await u.detectOverflow(e,x),P=[];let B=((r=a.flip)==null?void 0:r.overflows)||[];if(h&&P.push(I[S]),g){const V=sI(i,s,C);P.push(I[V[0]],I[V[1]])}if(B=[...B,{placement:i,overflows:P}],!P.every(V=>V<=0)){var H,F;const V=(((H=a.flip)==null?void 0:H.index)||0)+1,W=O[V];if(W&&(!(g==="alignment"?T!==fu(W):!1)||B.every(Y=>fu(Y.placement)===T?Y.overflows[0]>0:!0)))return{data:{index:V,overflows:B},reset:{placement:W}};let ee=(F=B.filter(q=>q.overflows[0]<=0).sort((q,Y)=>q.overflows[1]-Y.overflows[1])[0])==null?void 0:F.placement;if(!ee)switch(y){case"bestFit":{var $;const q=($=B.filter(Y=>{if(L){const ae=fu(Y.placement);return ae===T||ae==="y"}return!0}).map(Y=>[Y.placement,Y.overflows.filter(ae=>ae>0).reduce((ae,ue)=>ae+ue,0)]).sort((Y,ae)=>Y[1]-ae[1])[0])==null?void 0:$[0];q&&(ee=q);break}case"initialPlacement":ee=c;break}if(i!==ee)return{reset:{placement:ee}}}return{}}}};function hT(n,e){return{top:n.top-e.height,right:n.right-e.width,bottom:n.bottom-e.height,left:n.left-e.width}}function pT(n){return sides.some(e=>n[e]>=0)}const KV=function(n){return n===void 0&&(n={}),{name:"hide",options:n,async fn(e){const{rects:t,platform:r}=e,{strategy:i="referenceHidden",...a}=evaluate(n,e);switch(i){case"referenceHidden":{const s=await r.detectOverflow(e,{...a,elementContext:"reference"}),c=hT(s,t.reference);return{data:{referenceHiddenOffsets:c,referenceHidden:pT(c)}}}case"escaped":{const s=await r.detectOverflow(e,{...a,altBoundary:!0}),c=hT(s,t.floating);return{data:{escapedOffsets:c,escaped:pT(c)}}}default:return{}}}}};function mT(n){const e=min(...n.map(a=>a.left)),t=min(...n.map(a=>a.top)),r=max(...n.map(a=>a.right)),i=max(...n.map(a=>a.bottom));return{x:e,y:t,width:r-e,height:i-t}}function yI(n){const e=n.slice().sort((i,a)=>i.y-a.y),t=[];let r=null;for(let i=0;i<e.length;i++){const a=e[i];!r||a.y-r.y>r.height/2?t.push([a]):t[t.length-1].push(a),r=a}return t.map(i=>rectToClientRect(mT(i)))}const JV=function(n){return n===void 0&&(n={}),{name:"inline",options:n,async fn(e){const{placement:t,elements:r,rects:i,platform:a,strategy:s}=e,{padding:c=2,x:u,y:f}=evaluate(n,e),h=Array.from(await(a.getClientRects==null?void 0:a.getClientRects(r.reference))||[]),g=yI(h),v=rectToClientRect(mT(h)),y=getPaddingOb
330ject(c);function _(){if(g.length===2&&g[0].left>g[1].right&&u!=null&&f!=null)return g.find(x=>u>x.left-y.left&&u<x.right+y.right&&f>x.top-y.top&&f<x.bottom+y.bottom)||v;if(g.length>=2){if(getSideAxis(t)==="y"){const B=g[0],H=g[g.length-1],F=getSide(t)==="top",$=B.top,V=H.bottom,W=F?B.left:H.left,ee=F?B.right:H.right,q=ee-W,Y=V-$;return{top:$,bottom:V,left:W,right:ee,width:q,height:Y,x:W,y:$}}const x=getSide(t)==="left",S=max(...g.map(B=>B.right)),T=min(...g.map(B=>B.left)),M=g.filter(B=>x?B.left===T:B.right===S),C=M[0].top,k=M[M.length-1].bottom,L=T,O=S,I=O-L,P=k-C;return{top:C,bottom:k,left:L,right:O,width:I,height:P,x:L,y:C}}return v}const w=await a.getElementRects({reference:{getBoundingClientRect:_},floating:r.floating,strategy:s});return i.reference.x!==w.reference.x||i.reference.y!==w.reference.y||i.reference.width!==w.reference.width||i.reference.height!==w.reference.height?{reset:{rects:w}}:{}}}},gT=new Set(["left","top"]);async function bI(n,e){const{placement:t,platform:r,elements:i}=n,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),s=hf(t),c=ym(t),u=fu(t)==="y",f=gT.has(s)?-1:1,h=a&&u?-1:1,g=hy(e,n);let{mainAxis:v,crossAxis:y,alignmentAxis:_}=typeof g=="number"?{mainAxis:g,crossAxis:0,alignmentAxis:null}:{mainAxis:g.mainAxis||0,crossAxis:g.crossAxis||0,alignmentAxis:g.alignmentAxis};return c&&typeof _=="number"&&(y=c==="end"?_*-1:_),u?{x:y*h,y:v*f}:{x:v*f,y:y*h}}const _I=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(e){var t,r;const{x:i,y:a,placement:s,middlewareData:c}=e,u=await bI(e,n);return s===((t=c.offset)==null?void 0:t.placement)&&(r=c.arrow)!=null&&r.alignmentOffset?{}:{x:i+u.x,y:a+u.y,data:{...u,placement:s}}}}},eY=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(e){const{x:t,y:r,placement:i,platform:a}=e,{mainAxis:s=!0,crossAxis:c=!1,limiter:u={fn:S=>{let{x:T,y:M}=S;return{x:T,y:M}}},...f}=evaluate(n,e),h={x:t,y:r},g=await a.detectOverflow(e,f),v=getSideAxis(getSide(i)),y=getOppositeAxis(v);let _=h[y],w=h[v];if(s){const S=y==="y"?"top":"left",T=y==="y"?"bottom":"right",M=_+g[S],C=_-g[T];_=clamp(M,_,C)}if(c){const S=v==="y"?"top":"left",T=v==="y"?"bottom":"right",M=w+g[S],C=w-g[T];w=clamp(M,w,C)}const x=u.fn({...e,[y]:_,[v]:w});return{...x,data:{x:x.x-t,y:x.y-r,enabled:{[y]:s,[v]:c}}}}}},tY=function(n){return n===void 0&&(n={}),{options:n,fn(e){const{x:t,y:r,placement:i,rects:a,middlewareData:s}=e,{offset:c=0,mainAxis:u=!0,crossAxis:f=!0}=evaluate(n,e),h={x:t,y:r},g=getSideAxis(i),v=getOppositeAxis(g);let y=h[v],_=h[g];const w=evaluate(c,e),x=typeof w=="number"?{mainAxis:w,crossAxis:0}:{mainAxis:0,crossAxis:0,...w};if(u){const M=v==="y"?"height":"width",C=a.reference[v]-a.floating[M]+x.mainAxis,k=a.reference[v]+a.reference[M]-x.mainAxis;y<C?y=C:y>k&&(y=k)}if(f){var S,T;const M=v==="y"?"width":"height",C=gT.has(getSide(i)),k=a.reference[g]-a.floating[M]+(C&&((S=s.offset)==null?void 0:S[g])||0)+(C?0:x.crossAxis),L=a.reference[g]+a.reference[M]+(C?0:((T=s.offset)==null?void 0:T[g])||0)-(C?x.crossAxis:0);_<k?_=k:_>L&&(_=L)}return{[v]:y,[g]:_}}}},nY=function(n){return n===void 0&&(n={}),{name:"size",options:n,async fn(e){var t,r;const{placement:i,rects:a,platform:s,elements:c}=e,{apply:u=()=>{},...f}=evaluate(n,e),h=await s.detectOverflow(e,f),g=getSide(i),v=getAlignment(i),y=getSideAxis(i)==="y",{width:_,height:w}=a.floating;let x,S;g==="top"||g==="bottom"?(x=g,S=v===(await(s.isRTL==null?void 0:s.isRTL(c.floating))?"start":"end")?"left":"right"):(S=g,x=v==="end"?"top":"bottom");const T=w-h.top-h.bottom,M=_-h.left-h.right,C=min(w-h[x],T),k=min(_-h[S],M),L=!e.middlewareData.shift;let O=C,I=k;if((t=e.middlewareData.shift)!=null&&t.enabled.x&&(I=M),(r=e.middlewareData.shift)!=null&&r.enabled.y&&(O=T),L&&!v){const B=max(h.left,0),H=max(h.right,0),F=max(h.top,0),$=max(h.bottom,0);y?I=_-2*(B!==0||H!==0?B+H:max(h.left,h.right)):O=w-2*(F!==0||$!==0?F+$:max(h.top,h.bottom))}await u({...e,availableWidth:I,availableHeight:O});const P=await s.getDimensions(c.floating);return _!==P.width||w!==P.height?{reset:{rects:!0}}:{}}}};function vT(n){const e=ia(n);let t=parseFloat(e.width)||0,r=parseFloat(e.height)||0;const i=ws(n),a=i?n.offsetWidth:t,s=i?n.offsetHeight:r,c=dy(t)!==a||dy(r)!==s;
330return c&&(t=a,r=s),{width:t,height:r,$:c}}function ww(n){return si(n)?n:n.contextElement}function pf(n){const e=ww(n);if(!ws(e))return Es(1);const t=e.getBoundingClientRect(),{width:r,height:i,$:a}=vT(e);let s=(a?dy(t.width):t.width)/r,c=(a?dy(t.height):t.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}const wI=Es(0);function yT(n){const e=Vi(n);return!gw()||!e.visualViewport?wI:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function EI(n,e,t){return e===void 0&&(e=!1),!t||e&&t!==Vi(n)?!1:e}function hu(n,e,t,r){e===void 0&&(e=!1),t===void 0&&(t=!1);const i=n.getBoundingClientRect(),a=ww(n);let s=Es(1);e&&(r?si(r)&&(s=pf(r)):s=pf(n));const c=EI(a,t,r)?yT(a):Es(0);let u=(i.left+c.x)/s.x,f=(i.top+c.y)/s.y,h=i.width/s.x,g=i.height/s.y;if(a){const v=Vi(a),y=r&&si(r)?Vi(r):r;let _=v,w=vw(_);for(;w&&r&&y!==_;){const x=pf(w),S=w.getBoundingClientRect(),T=ia(w),M=S.left+(w.clientLeft+parseFloat(T.paddingLeft))*x.x,C=S.top+(w.clientTop+parseFloat(T.paddingTop))*x.y;u*=x.x,f*=x.y,h*=x.x,g*=x.y,u+=M,f+=C,_=Vi(w),w=vw(_)}}return my({width:h,height:g,x:u,y:f})}function gy(n,e){const t=uy(n).scrollLeft;return e?e.left+t:hu(_s(n)).left+t}function bT(n,e){const t=n.getBoundingClientRect(),r=t.left+e.scrollLeft-gy(n,t),i=t.top+e.scrollTop;return{x:r,y:i}}function xI(n){let{elements:e,rect:t,offsetParent:r,strategy:i}=n;const a=i==="fixed",s=_s(r),c=e?cy(e.floating):!1;if(r===s||c&&a)return t;let u={scrollLeft:0,scrollTop:0},f=Es(1);const h=Es(0),g=ws(r);if((g||!g&&!a)&&((uf(r)!=="body"||gm(s))&&(u=uy(r)),ws(r))){const y=hu(r);f=pf(r),h.x=y.x+r.clientLeft,h.y=y.y+r.clientTop}const v=s&&!g&&!a?bT(s,u):Es(0);return{width:t.width*f.x,height:t.height*f.y,x:t.x*f.x-u.scrollLeft*f.x+h.x+v.x,y:t.y*f.y-u.scrollTop*f.y+h.y+v.y}}function SI(n){return Array.from(n.getClientRects())}function CI(n){const e=_s(n),t=uy(n),r=n.ownerDocument.body,i=du(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),a=du(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight);let s=-t.scrollLeft+gy(n);const c=-t.scrollTop;return ia(r).direction==="rtl"&&(s+=du(e.clientWidth,r.clientWidth)-i),{width:i,height:a,x:s,y:c}}const _T=25;function TI(n,e){const t=Vi(n),r=_s(n),i=t.visualViewport;let a=r.clientWidth,s=r.clientHeight,c=0,u=0;if(i){a=i.width,s=i.height;const h=gw();(!h||h&&e==="fixed")&&(c=i.offsetLeft,u=i.offsetTop)}const f=gy(r);if(f<=0){const h=r.ownerDocument,g=h.body,v=getComputedStyle(g),y=h.compatMode==="CSS1Compat"&&parseFloat(v.marginLeft)+parseFloat(v.marginRight)||0,_=Math.abs(r.clientWidth-g.clientWidth-y);_<=_T&&(a-=_)}else f<=_T&&(a+=f);return{width:a,height:s,x:c,y:u}}const MI=new Set(["absolute","fixed"]);function DI(n,e){const t=hu(n,!0,e==="fixed"),r=t.top+n.clientTop,i=t.left+n.clientLeft,a=ws(n)?pf(n):Es(1),s=n.clientWidth*a.x,c=n.clientHeight*a.y,u=i*a.x,f=r*a.y;return{width:s,height:c,x:u,y:f}}function wT(n,e,t){let r;if(e==="viewport")r=TI(n,t);else if(e==="document")r=CI(_s(n));else if(si(e))r=DI(e,t);else{const i=yT(n);r={x:e.x-i.x,y:e.y-i.y,width:e.width,height:e.height}}return my(r)}function ET(n,e){const t=Ol(n);return t===e||!si(t)||df(t)?!1:ia(t).position==="fixed"||ET(t,e)}function OI(n,e){const t=e.get(n);if(t)return t;let r=vm(n,[],!1).filter(c=>si(c)&&uf(c)!=="body"),i=null;const a=ia(n).position==="fixed";let s=a?Ol(n):n;for(;si(s)&&!df(s);){const c=ia(s),u=mw(s);!u&&c.position==="fixed"&&(i=null),(a?!u&&!i:!u&&c.position==="static"&&!!i&&MI.has(i.position)||gm(s)&&!u&&ET(n,s))?r=r.filter(h=>h!==s):i=c,s=Ol(s)}return e.set(n,r),r}function kI(n){let{element:e,boundary:t,rootBoundary:r,strategy:i}=n;const s=[...t==="clippingAncestors"?cy(e)?[]:OI(e,this._c):[].concat(t),r],c=s[0],u=s.reduce((f,h)=>{const g=wT(e,h,i);return f.top=du(g.top,f.top),f.right=ff(g.right,f.right),f.bottom=ff(g.bottom,f.bottom),f.left=du(g.left,f.left),f},wT(e,c,i));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function LI(n){const{width:e,height:t}=vT(n);return{width:e,height:t}}function AI(n,e,t){const r=ws(e),i=_s(e),a=t==="fixed",s=hu(n,!0,a,e);let c={scrollLeft:0,scrollTop:0};const u=Es(0);function f(){u.x=gy(i)}if(r||!r&&!a)if((uf(e)!=="body"||gm(i))&&(c=uy(e)),r){const y=hu(e,!0,a,e);u.x=y.x+e.clientLeft,u.y=y.y+e.clientTop}else i&&f();a&&!r&&i&&f();const h=i&&!r&&!a?bT(i,c):Es(0),g=s.left+c.scrollLeft-u.x-h.x,v=s.top+c.scrollTop-u.y-h.y;return{x:g,y:v,width:s.width,height:s.height}}function Ew(n){return ia(n).position==="static"}function xT(n,e){if(!ws(n)||ia(n).position==="fixed")return null;if(e)return e(n);let t=n.offsetParent;return _s(n)===t&&(t=t.ownerDocument.body),t}function ST(n,e){const t=Vi(n);if(cy(n))return t;if(!ws(n)){let i=Ol(n);for(;i&&!df(i);){if(si(i)&&!Ew(i))return i;i=Ol(i)}return t}let r=xT(n,e);for(;r&&G8(r)&&Ew(r);)r=xT(r,e);return r&&df(r)&&Ew(r)&&!mw(r)?t:r||J8(n)||t}const RI=async function(n){const e=this.getOffsetParent||ST,t=this.getDimensions,r=await t(n.floating);return{reference:AI(n.reference,await e(n.floating),n.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function II(n){return ia(n).direction==="rtl"}const NI={convertOffsetParentRelativeRectToViewportRelativeRect:xI,getDocumentElement:_s,getClippingRect:kI,getOffsetParent:ST,getElementRects:RI,getClientRects:SI,getDimensions:LI,getScale:pf,isElement:si,isRTL:II};function CT(n,e){return n.x===e.x&&n.y===e.y&&n.width===e.width&&n.height===e.height}function PI(n,e){let t=null,r;const i=_s(n);function a(){var c;clearTimeout(r),(c=t)==null||c.disconnect(),t=null}function s(c,u){c===void 0&&(c=!1),u===void 0&&(u=1),a();const f=n.getBoundingClientRect(),{left:h,top:g,width:v,height:y}=f;
330if(c||e(),!v||!y)return;const _=fy(g),w=fy(i.clientWidth-(h+v)),x=fy(i.clientHeight-(g+y)),S=fy(h),M={rootMargin:-_+"px "+-w+"px "+-x+"px "+-S+"px",threshold:du(0,ff(1,u))||1};let C=!0;function k(L){const O=L[0].intersectionRatio;if(O!==u){if(!C)return s();O?s(!1,O):r=setTimeout(()=>{s(!1,1e-7)},1e3)}O===1&&!CT(f,n.getBoundingClientRect())&&s(),C=!1}try{t=new IntersectionObserver(k,{...M,root:i.ownerDocument})}catch{t=new IntersectionObserver(k,M)}t.observe(n)}return s(!0),a}function BI(n,e,t,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:u=!1}=r,f=ww(n),h=i||a?[...f?vm(f):[],...vm(e)]:[];h.forEach(S=>{i&&S.addEventListener("scroll",t,{passive:!0}),a&&S.addEventListener("resize",t)});const g=f&&c?PI(f,t):null;let v=-1,y=null;s&&(y=new ResizeObserver(S=>{let[T]=S;T&&T.target===f&&y&&(y.unobserve(e),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var M;(M=y)==null||M.observe(e)})),t()}),f&&!u&&y.observe(f),y.observe(e));let _,w=u?hu(n):null;u&&x();function x(){const S=hu(n);w&&!CT(w,S)&&t(),w=S,_=requestAnimationFrame(x)}return t(),()=>{var S;h.forEach(T=>{i&&T.removeEventListener("scroll",t),a&&T.removeEventListener("resize",t)}),g?.(),(S=y)==null||S.disconnect(),y=null,u&&cancelAnimationFrame(_)}}const rY=null,HI=_I,iY=null,aY=null,zI=vI,sY=null,oY=null,TT=mI,lY=null,cY=null,FI=(n,e,t)=>{const r=new Map,i={platform:NI,...t},a={...i.platform,_c:r};return pI(n,e,{...i,platform:a})};var VI=typeof document<"u",YI=function(){},vy=VI?p.useLayoutEffect:YI;function yy(n,e){if(n===e)return!0;if(typeof n!=typeof e)return!1;if(typeof n=="function"&&n.toString()===e.toString())return!0;let t,r,i;if(n&&e&&typeof n=="object"){if(Array.isArray(n)){if(t=n.length,t!==e.length)return!1;for(r=t;r--!==0;)if(!yy(n[r],e[r]))return!1;return!0}if(i=Object.keys(n),t=i.length,t!==Object.keys(e).length)return!1;for(r=t;r--!==0;)if(!{}.hasOwnProperty.call(e,i[r]))return!1;for(r=t;r--!==0;){const a=i[r];if(!(a==="_owner"&&n.$$typeof)&&!yy(n[a],e[a]))return!1}return!0}return n!==n&&e!==e}function MT(n){return typeof window>"u"?1:(n.ownerDocument.defaultView||window).devicePixelRatio||1}function DT(n,e){const t=MT(n);return Math.round(e*t)/t}function xw(n){const e=p.useRef(n);return vy(()=>{e.current=n}),e}function jI(n){n===void 0&&(n={});const{placement:e="bottom",strategy:t="absolute",middleware:r=[],platform:i,elements:{reference:a,floating:s}={},transform:c=!0,whileElementsMounted:u,open:f}=n,[h,g]=p.useState({x:0,y:0,strategy:t,placement:e,middlewareData:{},isPositioned:!1}),[v,y]=p.useState(r);yy(v,r)||y(r);const[_,w]=p.useState(null),[x,S]=p.useState(null),T=p.useCallback(Y=>{Y!==L.current&&(L.current=Y,w(Y))},[]),M=p.useCallback(Y=>{Y!==O.current&&(O.current=Y,S(Y))},[]),C=a||_,k=s||x,L=p.useRef(null),O=p.useRef(null),I=p.useRef(h),P=u!=null,B=xw(u),H=xw(i),F=xw(f),$=p.useCallback(()=>{if(!L.current||!O.current)return;const Y={placement:e,strategy:t,middleware:v};H.current&&(Y.platform=H.current),FI(L.current,O.current,Y).then(ae=>{const ue={...ae,isPositioned:F.current!==!1};V.current&&!yy(I.current,ue)&&(I.current=ue,lT.flushSync(()=>{g(ue)}))})},[v,e,t,H,F]);vy(()=>{f===!1&&I.current.isPositioned&&(I.current.isPositioned=!1,g(Y=>({...Y,isPositioned:!1})))},[f]);const V=p.useRef(!1);vy(()=>(V.current=!0,()=>{V.current=!1}),[]),vy(()=>{if(C&&(L.current=C),k&&(O.current=k),C&&k){if(B.current)return B.current(C,k,$);$()}},[C,k,$,B,P]);const W=p.useMemo(()=>({reference:L,floating:O,setReference:T,setFloating:M}),[T,M]),ee=p.useMemo(()=>({reference:C,floating:k}),[C,k]),q=p.useMemo(()=>{const Y={position:t,left:0,top:0};if(!ee.floating)return Y;const ae=DT(ee.floating,h.x),ue=DT(ee.floating,h.y);return c?{...Y,transform:"translate("+ae+"px, "+ue+"px)",...MT(ee.floating)>=1.5&&{willChange:"transform"}}:{position:t,left:ae,top:ue}},[t,c,ee.floating,h.x,h.y]);return p.useMemo(()=>({...h,update:$,refs:W,elements:ee,floatingStyles:q}),[h,$,W,ee,q])}const WI=n=>{function e(t){return{}.hasOwnProperty.call(t,"current")}return{name:"arrow",options:n,fn(t){const{element:r,padding:i}=typeof n=="function"?n(t):n;return r&&e(r)?r.current!=null?TT({element:r.current,padding:i}).fn(t):{}:r?TT({element:r,padding:i}).fn(t):{}}}},UI=(n,e)=>({...HI(n),options:[n,e]}),uY=(n,e)=>({...shift$1(n),options:[n,e]}),dY=(n,e)=>({...limitShift$1(n),options:[n,e]}),qI=(n,e)=>({...zI(n),options:[n,e]}),fY=(n,e)=>({...size$1(n),options:[n,e]}),hY=(n,e)=>({...autoPlacement$1(n),options:[n,e]}),pY=(n,e)=>({...hide$1(n),options:[n,e]}),mY=(n,e)=>({...inline$1(n),options:[n,e]}),$I=(n,e)=>({...WI(n),options:[n,e]});function gY(n){const e=React.useRef(void 0),t=React.useCallback(r=>{const i=n.map(a=>{if(a!=null){if(typeof a=="function"){const s=a,c=s(r);return typeof c=="function"?c:()=>{s(null)}}return a.current=r,()=>{a.current=null}}});return()=>
330{i.forEach(a=>a?.())}},n);return React.useMemo(()=>n.every(r=>r==null)?null:r=>{e.current&&(e.current(),e.current=void 0),r!=null&&(e.current=t(r))},n)}function GI(n,e){const t=n.compareDocumentPosition(e);return t&Node.DOCUMENT_POSITION_FOLLOWING||t&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:t&Node.DOCUMENT_POSITION_PRECEDING||t&Node.DOCUMENT_POSITION_CONTAINS?1:0}const OT=p.createContext({register:()=>{},unregister:()=>{},map:new Map,elementsRef:{current:[]}});function vY(n){const{children:e,elementsRef:t,labelsRef:r}=n,[i,a]=React.useState(()=>new Set),s=React.useCallback(f=>{a(h=>new Set(h).add(f))},[]),c=React.useCallback(f=>{a(h=>{const g=new Set(h);return g.delete(f),g})},[]),u=React.useMemo(()=>{const f=new Map;return Array.from(i.keys()).sort(GI).forEach((g,v)=>{f.set(g,v)}),f},[i]);return jsx(OT.Provider,{value:React.useMemo(()=>({register:s,unregister:c,map:u,elementsRef:t,labelsRef:r}),[s,c,u,t,r]),children:e})}function yY(n){n===void 0&&(n={});const{label:e}=n,{register:t,unregister:r,map:i,elementsRef:a,labelsRef:s}=React.useContext(OT),[c,u]=React.useState(null),f=React.useRef(null),h=React.useCallback(g=>{if(f.current=g,c!==null&&(a.current[c]=g,s)){var v;const y=e!==void 0;s.current[c]=y?e:(v=g?.textContent)!=null?v:null}},[c,a,s,e]);return useModernLayoutEffect(()=>{const g=f.current;if(g)return t(g),()=>{r(g)}},[t,r]),useModernLayoutEffect(()=>{const g=f.current?i.get(f.current):null;g!=null&&u(g)},[i]),React.useMemo(()=>({ref:h,index:c??-1}),[c,h])}const ZI="data-floating-ui-focusable",kT="active",LT="selected",mf="ArrowLeft",gf="ArrowRight",Sw="ArrowUp",bm="ArrowDown";function bY(n,e){return typeof n=="function"?n(e):n?React.cloneElement(n,e):jsx("div",{...e})}const _Y=p.createContext({activeIndex:0,onNavigate:()=>{}}),XI=[mf,gf],QI=[Sw,bm],wY=[...XI,...QI],EY=null,xY=null,KI={...Q};let AT=!1,JI=0;const RT=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+JI++;function eN(){const[n,e]=p.useState(()=>AT?RT():void 0);return mm(()=>{n==null&&e(RT())},[]),p.useEffect(()=>{AT=!0},[]),n}const _m=KI.useId||eN;let by;function CY(){for(var n,e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];const i="Floating UI: "+t.join(" ");if(!((n=by)!=null&&n.has(i))){var a;(a=by)==null||a.add(i),console.warn(i)}}function TY(){for(var n,e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];const i="Floating UI: "+t.join(" ");if(!((n=by)!=null&&n.has(i))){var a;(a=by)==null||a.add(i),console.error(i)}}const tN=p.forwardRef(function(e,t){const{context:{placement:r,elements:{floating:i},middlewareData:{arrow:a,shift:s}},width:c=14,height:u=7,tipRadius:f=0,strokeWidth:h=0,staticOffset:g,stroke:v,d:y,style:{transform:_,...w}={},...x}=e,S=_m(),[T,M]=p.useState(!1);if(mm(()=>{if(!i)return;ia(i).direction==="rtl"&&M(!0)},[i]),!i)return null;const[C,k]=r.split("-"),L=C==="top"||C==="bottom";let O=g;(L&&s!=null&&s.x||!L&&s!=null&&s.y)&&(O=null);const I=h*2,P=I/2,B=c/2*(f/-8+1),H=u/2*f/4,F=!!y,$=O&&k==="end"?"bottom":"top";let V=O&&k==="end"?"right":"left";O&&T&&(V=k==="end"?"left":"right");const W=a?.x!=null?O||a.x:"",ee=a?.y!=null?O||a.y:"",q=y||"M0,0"+(" H"+c)+(" L"+(c-B)+","+(u-H))+(" Q"+c/2+","+u+" "+B+","+(u-H))+" Z",Y={top:F?"rotate(180deg)":"",left:F?"rotate(90deg)":"rotate(-90deg)",bottom:F?"":"rotate(180deg)",right:F?"rotate(-90deg)":"rotate(90deg)"}[C];return(0,su.jsxs)("svg",{...x,"aria-hidden":!0,ref:t,width:F?c:c+I,height:c,viewBox:"0 0 "+c+" "+(u>c?u:c),style:{position:"absolute",pointerEvents:"none",[V]:W,[$]:ee,[C]:L||F?"100%":"calc(100% - "+I/2+"px)",transform:[Y,_].filter(ae=>!!ae).join(" "),...w},children:[I>0&&(0,su.jsx)("path",{clipPath:"url(#"+S+")",fill:"none",stroke:v,strokeWidth:I+(y?0:1),d:q}),(0,su.jsx)("path",{stroke:I&&!y?x.fill:"none",d:q}),(0,su.jsx)("clipPath",{id:S,children:(0,su.jsx)("rect",{x:-P,y:P*(F?-1:1),width:c+I,height:c})})]})});function IT(){const n=new Map;return{emit(e,t){var r;(r=n.get(e))==null||r.forEach(i=>i(t))},on(e,t){n.has(e)||n.set(e,new Set),n.get(e).add(t)},off(e,t){var r;(r=n.get(e))==null||r.delete(t)}}}const NT=p.createContext(null),PT=p.createContext(null),vf=()=>{var n;return((n=p.useContext(NT))==null?void 0:n.id)||null},yf=()=>p.useContext(PT);function MY(n){const e=_m(),t=yf(),r=vf(),i=n||r;return useModernLayoutEffect(()=>{if(!e)return;const a={id:e,parentId:i};return t?.addNode(a),()=>{t?.removeNode(a)}},[t,e,i]),e}function DY(n){const{children:e,id:t}=n,r=vf();return jsx(NT.Provider,{value:React.useMemo(()=>({id:t,parentId:r}),[t,r]),children:e})}function OY(n){const{children:e}=n,t=React.useRef([]),r=React.useCallback(s=>{t.current=[...t.current,s]},[]),i=React.useCallback(s=>{t.current=t.current.filter(c=>c!==s)},[]),[a]=React.useState(()=>IT());return jsx(PT.Provider,{value:React.useMemo(()=>({nodesRef:t,addNode:r,removeNode:i,events:a}),[r,i,a]),children:e})}function _y(n){return"data-floating-ui-"+n}function Lr(n){n.current!==-1&&(clearTimeout(n.current),n.current=-1)}const BT=null;function wm(n,e,t){if(t&&!isMouseLikePointerType(t))return 0;if(typeof n=="number")return n;if(typeof n=="function"){const r=n();return typeof r=="number"?r:r?.[e]}return n?.[e]}function Cw(n){return typeof n=="function"?n():n}function kY(n,e){e===void 0&&(e={});const{open:t,onOpenChange:r,dataRef:i,events:a,elements:s}=n,{enabled:c=!0,delay:u=0,handleClose:f=null,mouseOnly:h=!1,restMs:g=0,move:v=!0}=e,y=yf(),_=vf(),w=useLatestRef(f),x=useLatestRef(u),S=useLatestRef(t),T=useL
330atestRef(g),M=React.useRef(),C=React.useRef(-1),k=React.useRef(),L=React.useRef(-1),O=React.useRef(!0),I=React.useRef(!1),P=React.useRef(()=>{}),B=React.useRef(!1),H=useEffectEvent(()=>{var q;const Y=(q=i.current.openEvent)==null?void 0:q.type;return Y?.includes("mouse")&&Y!=="mousedown"});React.useEffect(()=>{if(!c)return;function q(Y){let{open:ae}=Y;ae||(Lr(C),Lr(L),O.current=!0,B.current=!1)}return a.on("openchange",q),()=>{a.off("openchange",q)}},[c,a]),React.useEffect(()=>{if(!c||!w.current||!t)return;function q(ae){H()&&r(!1,ae,"hover")}const Y=getDocument$1(s.floating).documentElement;return Y.addEventListener("mouseleave",q),()=>{Y.removeEventListener("mouseleave",q)}},[s.floating,t,r,c,w,H]);const F=React.useCallback(function(q,Y,ae){Y===void 0&&(Y=!0),ae===void 0&&(ae="hover");const ue=wm(x.current,"close",M.current);ue&&!k.current?(Lr(C),C.current=window.setTimeout(()=>r(!1,q,ae),ue)):Y&&(Lr(C),r(!1,q,ae))},[x,r]),$=useEffectEvent(()=>{P.current(),k.current=void 0}),V=useEffectEvent(()=>{if(I.current){const q=getDocument$1(s.floating).body;q.style.pointerEvents="",q.removeAttribute(BT),I.current=!1}}),W=useEffectEvent(()=>i.current.openEvent?["click","mousedown"].includes(i.current.openEvent.type):!1);React.useEffect(()=>{if(!c)return;function q(be){if(Lr(C),O.current=!1,h&&!isMouseLikePointerType(M.current)||Cw(T.current)>0&&!wm(x.current,"open"))return;const _e=wm(x.current,"open",M.current);_e?C.current=window.setTimeout(()=>{S.current||r(!0,be,"hover")},_e):t||r(!0,be,"hover")}function Y(be){if(W()){V();return}P.current();const _e=getDocument$1(s.floating);if(Lr(L),B.current=!1,w.current&&i.current.floatingContext){t||Lr(C),k.current=w.current({...i.current.floatingContext,tree:y,x:be.clientX,y:be.clientY,onClose(){V(),$(),W()||F(be,!0,"safe-polygon")}});const je=k.current;_e.addEventListener("mousemove",je),P.current=()=>{_e.removeEventListener("mousemove",je)};return}(M.current!=="touch"||!contains$1(s.floating,be.relatedTarget))&&F(be)}function ae(be){W()||i.current.floatingContext&&(w.current==null||w.current({...i.current.floatingContext,tree:y,x:be.clientX,y:be.clientY,onClose(){V(),$(),W()||F(be)}})(be))}function ue(){Lr(C)}function We(be){W()||F(be,!1)}if(isElement(s.domReference)){const be=s.domReference,_e=s.floating;return t&&be.addEventListener("mouseleave",ae),v&&be.addEventListener("mousemove",q,{once:!0}),be.addEventListener("mouseenter",q),be.addEventListener("mouseleave",Y),_e&&(_e.addEventListener("mouseleave",ae),_e.addEventListener("mouseenter",ue),_e.addEventListener("mouseleave",We)),()=>{t&&be.removeEventListener("mouseleave",ae),v&&be.removeEventListener("mousemove",q),be.removeEventListener("mouseenter",q),be.removeEventListener("mouseleave",Y),_e&&(_e.removeEventListener("mouseleave",ae),_e.removeEventListener("mouseenter",ue),_e.removeEventListener("mouseleave",We))}}},[s,c,n,h,v,F,$,V,r,t,S,y,x,w,i,W,T]),useModernLayoutEffect(()=>{var q;if(c&&t&&(q=w.current)!=null&&(q=q.__options)!=null&&q.blockPointerEvents&&H()){I.current=!0;const ae=s.floating;if(isElement(s.domReference)&&ae){var Y;const ue=getDocument$1(s.floating).body;ue.setAttribute(BT,"");const We=s.domReference,be=y==null||(Y=y.nodesRef.current.find(_e=>_e.id===_))==null||(Y=Y.context)==null?void 0:Y.elements.floating;return be&&(be.style.pointerEvents=""),ue.style.pointerEvents="none",We.style.pointerEvents="auto",ae.style.pointerEvents="auto",()=>{ue.style.pointerEvents="",We.style.pointerEvents="",ae.style.pointerEvents=""}}}},[c,t,_,s,y,w,H]),useModernLayoutEffect(()=>{t||(M.current=void 0,B.current=!1,$(),V())},[t,$,V]),React.useEffect(()=>()=>{$(),Lr(C),Lr(L),V()},[c,s.domReference,$,V]);const ee=React.useMemo(()=>{function q(Y){M.current=Y.pointerType}return{onPointerDown:q,onPointerEnter:q,onMouseMove(Y){const{nativeEvent:ae}=Y;function ue(){!O.current&&!S.current&&r(!0,ae,"hover")}h&&!isMouseLikePointerType(M.current)||t||Cw(T.current)===0||B.current&&Y.movementX**2+Y.movementY**2<2||(Lr(L),M.current==="touch"?ue():(B.current=!0,L.current=window.setTimeout(ue,Cw(T.current))))}}},[h,r,t,S,T]);return React.useMemo(()=>c?{reference:ee}:{},[c,ee])}const Tw=()=>{},HT=p.createContext({delay:0,initialDelay:0,timeoutMs:0,currentId:null,setCurrentId:Tw,setState:Tw,isInstantPhase:!1}),nN=()=>React.useContext(HT);function LY(n){const{children:e,delay:t,timeoutMs:r=0}=n,[i,a]=React.useReducer((u,f)=>({...u,...f}),{delay:t,timeoutMs:r,initialDelay:t,currentId:null,isInstantPhase:!1}),s=React.useRef(null),c=React.useCallback(u=>{a({currentId:u})},[]);return useModernLayoutEffect(()=>{i.currentId?s.current===null?s.current=i.currentId:i.isInstantPhase||a({isInstantPhase:!0}):(i.isInstantPhase&&a({isInstantPhase:!1}),s.current=null)},[i.currentId,i.isInstantPhase]),jsx(HT.Provider,{value:React.useMemo(()=>({...i,setState:a,setCurrentId:c}),[i,c]),children:e})}function AY(n,e){e===void 0&&(e={});const{open:t,onOpenChange:r,floatingId:i}=n,{id:a,enabled:s=!0}=e,c=a??i,u=nN(),{currentId:f,setCurrentId:h,initialDelay:g,setState:v,timeoutMs:y}=u;return useModernLayoutEffect(()=>{s&&f&&(v({delay:{open:1,close:wm(g,"close")}}),f!==c&&r(!1))},[s,c,r,v,f,g]),useModernLayoutEffect(()=>{function _(){r(!1),v({delay:g,currentId:null})}if(s&&f&&!t&&f===c){if(y){const w=window.setTimeout(_,y);return()=>{clearTimeout(w)}}_()}},[s,t,v,f,c,r,g,y]),useModernLayoutEffect(()=>{s&&(h===Tw||!t||h(c))},[s,t,h,c]),u}const zT=p.createContext({hasProvider:!1,timeoutMs:0,delayRef:{current:0},initialDelayRef:{current:0},timeoutIdRef:{current:-1},currentIdRef:{current:null},currentContextRef:{current:null}});function RY(n){const{children:e,delay:t,timeoutMs:r=0}=n,i=React.useRef(t),a=React.useRef(t),s=React.useRef(null),c=React.useRef(null),u=React.useRef(-1);return jsx(zT.Provider,{value:React.useMemo(()=>({hasProvider:!0,delayRef:i,initialDelayRef:a,currentIdRef:s,timeoutMs:r,currentContextRef:c,timeoutIdRef:u}),[r]),children:e})}function IY(n,e){e===void 0&&(e={});const{open:t,onOpenChange:r,floatingId:i}=n,{enabled:a=!0}=e,s=React.useContext(zT),{currentIdRef:c,delayRef:u,timeoutMs:f,initialDelayRef:h,currentContextRef:g,hasProvider:v,timeoutIdRef:y}=s,[_,w]=React.useState(!1);return useModernLayoutEffect(()=>{function x(){var S;w(!1),(S=g.current)==null||S.setIsInstantPhase(!1),c.current=null,g.current=null,u.current=h.current}if(a&&c.current&&!t&&c.current===i){if(w(!1),f)return y.current=window.setTimeout(x,f),()=>{clearTimeout(y.current)};x()}},[a,t,i,c,u,f,h,g,y]),useModernLayoutEffect(()=>{if(!a||!t)return;const x=g.current,S=c.current;g.current={onOpenChange:r,setIsInstantPhase:w},c.current=i,u.current={open:0,close:wm(h.current,"close")},S!==null&&S!==i?(Lr(y),w(!0),x?.setIsInstantPhase(!0),x?.onOpenChange(!1)):(w(!1),x?.setIsInstantPhase(!1))},[a,t,i,r,c,u,f,h,g,y]),useModernLayoutEffect(()=>()=>{g.current=null},[g]),React.useMemo(()=>({hasProvider:v,delayRef:u,isInstantPhase:_}),[v,u,_])}let FT=0;function pu(n,e){e===void 0&&(e={});const{preventScroll:t=!1,cancelPrevious:r=!0,sync:i=!1}=e;r&&cancelAnimationFrame(FT);const a=()=>n?.focus({preventScroll:t});i?a():FT=requestAnimationFrame(a)}function Mw(n,e){if(!n||!e)return!1;const t=e.getRootNode==null?void 0:e.getRootNode();if(n.contains(e))return!0;
330if(t&&isShadowRoot(t)){let r=e;for(;r;){if(n===r)return!0;r=r.parentNode||r.host}}return!1}function rN(n){return"composedPath"in n?n.composedPath()[0]:n.target}function iN(n){return n?.ownerDocument||document}const bf={inert:new WeakMap,"aria-hidden":new WeakMap,none:new WeakMap};function VT(n){return n==="inert"?bf.inert:n==="aria-hidden"?bf["aria-hidden"]:bf.none}let wy=new WeakSet,Ey={},Dw=0;const aN=()=>typeof HTMLElement<"u"&&"inert"in HTMLElement.prototype,YT=n=>n&&(n.host||YT(n.parentNode)),sN=(n,e)=>e.map(t=>{if(n.contains(t))return t;const r=YT(t);return n.contains(r)?r:null}).filter(t=>t!=null);function oN(n,e,t,r){const i="data-floating-ui-inert",a=r?"inert":t?"aria-hidden":null,s=sN(e,n),c=new Set,u=new Set(s),f=[];Ey[i]||(Ey[i]=new WeakMap);const h=Ey[i];s.forEach(g),v(e),c.clear();function g(y){!y||c.has(y)||(c.add(y),y.parentNode&&g(y.parentNode))}function v(y){!y||u.has(y)||[].forEach.call(y.children,_=>{if(getNodeName(_)!=="script")if(c.has(_))v(_);else{const w=a?_.getAttribute(a):null,x=w!==null&&w!=="false",S=VT(a),T=(S.get(_)||0)+1,M=(h.get(_)||0)+1;S.set(_,T),h.set(_,M),f.push(_),T===1&&x&&wy.add(_),M===1&&_.setAttribute(i,""),!x&&a&&_.setAttribute(a,a==="inert"?"":"true")}})}return Dw++,()=>{f.forEach(y=>{const _=VT(a),x=(_.get(y)||0)-1,S=(h.get(y)||0)-1;_.set(y,x),h.set(y,S),x||(!wy.has(y)&&a&&y.removeAttribute(a),wy.delete(y)),S||y.removeAttribute(i)}),Dw--,Dw||(bf.inert=new WeakMap,bf["aria-hidden"]=new WeakMap,bf.none=new WeakMap,wy=new WeakSet,Ey={})}}function jT(n,e,t){e===void 0&&(e=!1),t===void 0&&(t=!1);const r=iN(n[0]).body;return oN(n.concat(Array.from(r.querySelectorAll('[aria-live],[role="status"],output'))),r,e,t)}const lN={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0},xy=null,cN={clipPath:"inset(50%)",position:"fixed",top:0,left:0},WT=null,UT=null;function uN(n){n===void 0&&(n={});const{id:e,root:t}=n,r=_m(),i=qT(),[a,s]=React.useState(null),c=React.useRef(null);return useModernLayoutEffect(()=>()=>{a?.remove(),queueMicrotask(()=>{c.current=null})},[a]),useModernLayoutEffect(()=>{if(!r||c.current)return;const u=e?document.getElementById(e):null;if(!u)return;const f=document.createElement("div");f.id=r,f.setAttribute(UT,""),u.appendChild(f),c.current=f,s(f)},[e,r]),useModernLayoutEffect(()=>{if(t===null||!r||c.current)return;let u=t||i?.portalNode;u&&!isNode(u)&&(u=u.current),u=u||document.body;let f=null;e&&(f=document.createElement("div"),f.id=e,u.appendChild(f));const h=document.createElement("div");h.id=r,h.setAttribute(UT,""),u=f||u,u.appendChild(h),c.current=h,s(h)},[e,t,r,i]),a}function NY(n){const{children:e,id:t,root:r,preserveTabOrder:i=!0}=n,a=uN({id:t,root:r}),[s,c]=React.useState(null),u=React.useRef(null),f=React.useRef(null),h=React.useRef(null),g=React.useRef(null),v=s?.modal,y=s?.open,_=!!s&&!s.modal&&s.open&&i&&!!(r||a);return React.useEffect(()=>{if(!a||!i||v)return;function w(x){a&&isOutsideEvent(x)&&(x.type==="focusin"?enableFocusInside:disableFocusInside)(a)}return a.addEventListener("focusin",w,!0),a.addEventListener("focusout",w,!0),()=>{a.removeEventListener("focusin",w,!0),a.removeEventListener("focusout",w,!0)}},[a,i,v]),React.useEffect(()=>{a&&(y||enableFocusInside(a))},[y,a]),jsxs(WT.Provider,{value:React.useMemo(()=>({preserveTabOrder:i,beforeOutsideRef:u,afterOutsideRef:f,beforeInsideRef:h,afterInsideRef:g,portalNode:a,setFocusManagerState:c}),[i,a]),children:[_&&a&&jsx(xy,{"data-type":"outside",ref:u,onFocus:w=>{if(isOutsideEvent(w,a)){var x;(x=h.current)==null||x.focus()}else{const S=s?s.domReference:null,T=getPreviousTabbable(S);T?.focus()}}}),_&&a&&jsx("span",{"aria-owns":a.id,style:cN}),a&&ReactDOM.createPortal(e,a),_&&a&&jsx(xy,{"data-type":"outside",ref:f,onFocus:w=>{if(isOutsideEvent(w,a)){var x;(x=g.current)==null||x.focus()}else{const S=s?s.domReference:null,T=getNextTabbable(S);T?.focus(),s?.closeOnFocusOut&&s?.onOpenChange(!1,w.nativeEvent,"focus-out")}}})]})}const qT=()=>React.useContext(WT);function $T(n){return React.useMemo(()=>e=>
330{n.forEach(t=>{t&&(t.current=e)})},n)}const dN=20;let kl=null;function Ow(){kl=kl.filter(n=>{var e;return(e=n.deref())==null?void 0:e.isConnected})}function fN(n){Ow(),n&&getNodeName(n)!=="body"&&(kl.push(new WeakRef(n)),kl.length>dN&&(kl=kl.slice(-20)))}function GT(){Ow();const n=kl[kl.length-1];return n?.deref()}function hN(n){const e=getTabbableOptions();return isTabbable(n,e)?n:tabbable(n,e)[0]||n}function ZT(n,e){var t;if(!e.current.includes("floating")&&!((t=n.getAttribute("role"))!=null&&t.includes("dialog")))return;const r=getTabbableOptions(),a=focusable(n,r).filter(c=>{const u=c.getAttribute("data-tabindex")||"";return isTabbable(c,r)||c.hasAttribute("data-tabindex")&&!u.startsWith("-")}),s=n.getAttribute("tabindex");e.current.includes("floating")||a.length===0?s!=="0"&&n.setAttribute("tabindex","0"):(s!=="-1"||n.hasAttribute("data-tabindex")&&n.getAttribute("data-tabindex")!=="-1")&&(n.setAttribute("tabindex","-1"),n.setAttribute("data-tabindex","-1"))}const pN=null;function PY(n){const{context:e,children:t,disabled:r=!1,order:i=["content"],guards:a=!0,initialFocus:s=0,returnFocus:c=!0,restoreFocus:u=!1,modal:f=!0,visuallyHiddenDismiss:h=!1,closeOnFocusOut:g=!0,outsideElementsInert:v=!1,getInsideElements:y=()=>[]}=n,{open:_,onOpenChange:w,events:x,dataRef:S,elements:{domReference:T,floating:M}}=e,C=useEffectEvent(()=>{var Ie;return(Ie=S.current.floatingContext)==null?void 0:Ie.nodeId}),k=useEffectEvent(y),L=typeof s=="number"&&s<0,O=isTypeableCombobox(T)&&L,I=aN(),P=I?a:!0,B=!P||I&&v,H=useLatestRef(i),F=useLatestRef(s),$=useLatestRef(c),V=yf(),W=qT(),ee=React.useRef(null),q=React.useRef(null),Y=React.useRef(!1),ae=React.useRef(!1),ue=React.useRef(-1),We=React.useRef(-1),be=W!=null,_e=getFloatingFocusElement(M),qe=useEffectEvent(function(Ie){return Ie===void 0&&(Ie=_e),Ie?tabbable(Ie,getTabbableOptions()):[]}),je=useEffectEvent(Ie=>{const Ke=qe(Ie);return H.current.map(nt=>T&&nt==="reference"?T:_e&&nt==="floating"?_e:Ke).filter(Boolean).flat()});React.useEffect(()=>{if(r||!f)return;function Ie(nt){if(nt.key==="Tab"){contains$1(_e,activeElement(getDocument$1(_e)))&&qe().length===0&&!O&&stopEvent(nt);const Ot=je(),zt=getTarget$1(nt);H.current[0]==="reference"&&zt===T&&(stopEvent(nt),nt.shiftKey?pu(Ot[Ot.length-1]):pu(Ot[1])),H.current[1]==="floating"&&zt===_e&&nt.shiftKey&&(stopEvent(nt),pu(Ot[0]))}}const Ke=getDocument$1(_e);return Ke.addEventListener("keydown",Ie),()=>{Ke.removeEventListener("keydown",Ie)}},[r,T,_e,f,H,O,qe,je]),React.useEffect(()=>{if(r||!M)return;function Ie(Ke){const nt=getTarget$1(Ke),zt=qe().indexOf(nt);zt!==-1&&(ue.current=zt)}return M.addEventListener("focusin",Ie),()=>{M.removeEventListener("focusin",Ie)}},[r,M,qe]),React.useEffect(()=>{if(r||!g)return;function Ie(){ae.current=!0,setTimeout(()=>{ae.current=!1})}function Ke(zt){const pt=zt.relatedTarget,Gt=zt.currentTarget,Ft=getTarget$1(zt);queueMicrotask(()=>{const Nt=C(),Tt=!(contains$1(T,pt)||contains$1(M,pt)||contains$1(pt,M)||contains$1(W?.portalNode,pt)||pt!=null&&pt.hasAttribute(_y("focus-guard"))||V&&(getNodeChildren$1(V.nodesRef.current,Nt).find(Ne=>{var Ve,Oe;return contains$1((Ve=Ne.context)==null?void 0:Ve.elements.floating,pt)||contains$1((Oe=Ne.context)==null?void 0:Oe.elements.domReference,pt)})||getNodeAncestors(V.nodesRef.current,Nt).find(Ne=>{var Ve,Oe,Be;return[(Ve=Ne.context)==null?void 0:Ve.elements.floating,getFloatingFocusElement((Oe=Ne.context)==null?void 0:Oe.elements.floating)].includes(pt)||((Be=Ne.context)==null?void 0:Be.elements.domReference)===pt})));if(Gt===T&&_e&&ZT(_e,H),u&&Gt!==T&&!(Ft!=null&&Ft.isConnected)&&activeElement(getDocument$1(_e))===getDocument$1(_e).body){isHTMLElement(_e)&&_e.focus();const Ne=ue.current,Ve=qe(),Oe=Ve[Ne]||Ve[Ve.length-1]||_e;isHTMLElement(Oe)&&Oe.focus()}if(S.current.insideReactTree){S.current.insideReactTree=!1;return}(O||!f)&&pt&&Tt&&!ae.current&&pt!==GT()&&(Y.current=!0,w(!1,zt,"focus-out"))})}const nt=!!(!V&&W);function Ot(){Lr(We),S.current.insideReactTree=!0,We.current=window.setTimeout(()=>{S.current.insideReactTree=!1})}
330if(M&&isHTMLElement(T))return T.addEventListener("focusout",Ke),T.addEventListener("pointerdown",Ie),M.addEventListener("focusout",Ke),nt&&M.addEventListener("focusout",Ot,!0),()=>{T.removeEventListener("focusout",Ke),T.removeEventListener("pointerdown",Ie),M.removeEventListener("focusout",Ke),nt&&M.removeEventListener("focusout",Ot,!0)}},[r,T,M,_e,f,V,W,w,g,u,qe,O,C,H,S]);const ct=React.useRef(null),ht=React.useRef(null),Ge=$T([ct,W?.beforeInsideRef]),Re=$T([ht,W?.afterInsideRef]);React.useEffect(()=>{var Ie,Ke;if(r||!M)return;const nt=Array.from((W==null||(Ie=W.portalNode)==null?void 0:Ie.querySelectorAll("["+_y("portal")+"]"))||[]),zt=(Ke=(V?getNodeAncestors(V.nodesRef.current,C()):[]).find(Ft=>{var Nt;return isTypeableCombobox(((Nt=Ft.context)==null?void 0:Nt.elements.domReference)||null)}))==null||(Ke=Ke.context)==null?void 0:Ke.elements.domReference,pt=[M,zt,...nt,...k(),ee.current,q.current,ct.current,ht.current,W?.beforeOutsideRef.current,W?.afterOutsideRef.current,H.current.includes("reference")||O?T:null].filter(Ft=>Ft!=null),Gt=f||O?jT(pt,!B,B):jT(pt);return()=>{Gt()}},[r,T,M,f,H,W,O,P,B,V,C,k]),useModernLayoutEffect(()=>{if(r||!isHTMLElement(_e))return;const Ie=getDocument$1(_e),Ke=activeElement(Ie);queueMicrotask(()=>{const nt=je(_e),Ot=F.current,zt=(typeof Ot=="number"?nt[Ot]:Ot.current)||_e,pt=contains$1(_e,Ke);!L&&!pt&&_&&pu(zt,{preventScroll:zt===_e})})},[r,_,_e,L,je,F]),useModernLayoutEffect(()=>{if(r||!_e)return;const Ie=getDocument$1(_e),Ke=activeElement(Ie);fN(Ke);function nt(pt){let{reason:Gt,event:Ft,nested:Nt}=pt;if(["hover","safe-polygon"].includes(Gt)&&Ft.type==="mouseleave"&&(Y.current=!0),Gt==="outside-press")if(Nt)Y.current=!1;else if(isVirtualClick(Ft)||isVirtualPointerEvent(Ft))Y.current=!1;else{let Tt=!1;document.createElement("div").focus({get preventScroll(){return Tt=!0,!1}}),Tt?Y.current=!1:Y.current=!0}}x.on("openchange",nt);const Ot=Ie.createElement("span");Ot.setAttribute("tabindex","-1"),Ot.setAttribute("aria-hidden","true"),Object.assign(Ot.style,lN),be&&T&&T.insertAdjacentElement("afterend",Ot);function zt(){if(typeof $.current=="boolean"){const pt=T||GT();return pt&&pt.isConnected?pt:Ot}return $.current.current||Ot}return()=>{x.off("openchange",nt);const pt=activeElement(Ie),Gt=contains$1(M,pt)||V&&getNodeChildren$1(V.nodesRef.current,C(),!1).some(Nt=>{var Tt;return contains$1((Tt=Nt.context)==null?void 0:Tt.elements.floating,pt)}),Ft=zt();queueMicrotask(()=>{const Nt=hN(Ft);$.current&&!Y.current&&isHTMLElement(Nt)&&(!(Nt!==pt&&pt!==Ie.body)||Gt)&&Nt.focus({preventScroll:!0}),Ot.remove()})}},[r,M,_e,$,S,x,V,be,T,C]),React.useEffect(()=>(queueMicrotask(()=>{Y.current=!1}),()=>{queueMicrotask(Ow)}),[r]),useModernLayoutEffect(()=>{if(!r&&W)return W.setFocusManagerState({modal:f,closeOnFocusOut:g,open:_,onOpenChange:w,domReference:T}),()=>{W.setFocusManagerState(null)}},[r,W,f,_,w,g,T]),useModernLayoutEffect(()=>{r||_e&&ZT(_e,H)},[r,_e,H]);function Ze(Ie){return r||!h||!f?null:jsx(pN,{ref:Ie==="start"?ee:q,onClick:Ke=>w(!1,Ke.nativeEvent),children:typeof h=="string"?h:"Dismiss"})}const pe=!r&&P&&(f?!O:!0)&&(be||f);return jsxs(Fragment,{children:[pe&&jsx(xy,{"data-type":"inside",ref:Ge,onFocus:Ie=>{if(f){const nt=je();pu(i[0]==="reference"?nt[0]:nt[nt.length-1])}else if(W!=null&&W.preserveTabOrder&&W.portalNode)if(Y.current=!1,isOutsideEvent(Ie,W.portalNode)){const nt=getNextTabbable(T);nt?.focus()}else{var Ke;(Ke=W.beforeOutsideRef.current)==null||Ke.focus()}}}),!O&&Ze("start"),t,Ze("end"),pe&&jsx(xy,{"data-type":"inside",ref:Re,onFocus:Ie=>{if(f)pu(je()[0]);else if(W!=null&&W.preserveTabOrder&&W.portalNode)if(g&&(Y.current=!0),isOutsideEvent(Ie,W.portalNode)){const nt=getPreviousTabbable(T);nt?.focus()}else{var Ke;(Ke=W.afterOutsideRef.current)==null||Ke.focus()}}})]})}let BY=0;const XT="--floating-ui-scrollbar-width";function HY(){const n=getPlatform(),e=/iP(hone|ad|od)|iOS/.test(n)||n==="MacIntel"&&navigator.maxTouchPoints>1,t=document.body.style,i=Math.round(document.documentElement.getBoundingClientRect().left)+document.documentElement.scrollLeft?"paddingLeft":"paddingRight",a=window.innerWidth-document.documentElement.clientWidth,s=t.left?parseFloat(t.left):window.scrollX,c=t.top?parseFloat(t.top):window.scrollY;if(t.overflow="hidden",t.setProperty(XT,a+"px"),a&&(t[i]=a+"px"),e){var u,f;
330const h=((u=window.visualViewport)==null?void 0:u.offsetLeft)||0,g=((f=window.visualViewport)==null?void 0:f.offsetTop)||0;Object.assign(t,{position:"fixed",top:-(c-Math.floor(g))+"px",left:-(s-Math.floor(h))+"px",right:"0"})}return()=>{Object.assign(t,{overflow:"",[i]:""}),t.removeProperty(XT),e&&(Object.assign(t,{position:"",top:"",left:"",right:""}),window.scrollTo(s,c))}}let zY=()=>{};const FY=null;function QT(n){return isHTMLElement(n.target)&&n.target.tagName==="BUTTON"}function mN(n){return isHTMLElement(n.target)&&n.target.tagName==="A"}function KT(n){return isTypeableElement(n)}function VY(n,e){e===void 0&&(e={});const{open:t,onOpenChange:r,dataRef:i,elements:{domReference:a}}=n,{enabled:s=!0,event:c="click",toggle:u=!0,ignoreMouse:f=!1,keyboardHandlers:h=!0,stickIfOpen:g=!0}=e,v=React.useRef(),y=React.useRef(!1),_=React.useMemo(()=>({onPointerDown(w){v.current=w.pointerType},onMouseDown(w){const x=v.current;w.button===0&&c!=="click"&&(isMouseLikePointerType(x,!0)&&f||(t&&u&&(!(i.current.openEvent&&g)||i.current.openEvent.type==="mousedown")?r(!1,w.nativeEvent,"click"):(w.preventDefault(),r(!0,w.nativeEvent,"click"))))},onClick(w){const x=v.current;if(c==="mousedown"&&v.current){v.current=void 0;return}isMouseLikePointerType(x,!0)&&f||(t&&u&&(!(i.current.openEvent&&g)||i.current.openEvent.type==="click")?r(!1,w.nativeEvent,"click"):r(!0,w.nativeEvent,"click"))},onKeyDown(w){v.current=void 0,!(w.defaultPrevented||!h||QT(w))&&(w.key===" "&&!KT(a)&&(w.preventDefault(),y.current=!0),!mN(w)&&w.key==="Enter"&&r(!(t&&u),w.nativeEvent,"click"))},onKeyUp(w){w.defaultPrevented||!h||QT(w)||KT(a)||w.key===" "&&y.current&&(y.current=!1,r(!(t&&u),w.nativeEvent,"click"))}}),[i,a,c,f,h,r,t,g,u]);return React.useMemo(()=>s?{reference:_}:{},[s,_])}function gN(n,e){let t=null,r=null,i=!1;return{contextElement:n||void 0,getBoundingClientRect(){var a;const s=n?.getBoundingClientRect()||{width:0,height:0,x:0,y:0},c=e.axis==="x"||e.axis==="both",u=e.axis==="y"||e.axis==="both",f=["mouseenter","mousemove"].includes(((a=e.dataRef.current.openEvent)==null?void 0:a.type)||"")&&e.pointerType!=="touch";let h=s.width,g=s.height,v=s.x,y=s.y;return t==null&&e.x&&c&&(t=s.x-e.x),r==null&&e.y&&u&&(r=s.y-e.y),v-=t||0,y-=r||0,h=0,g=0,!i||f?(h=e.axis==="y"?s.width:0,g=e.axis==="x"?s.height:0,v=c&&e.x!=null?e.x:v,y=u&&e.y!=null?e.y:y):i&&!f&&(g=e.axis==="x"?s.height:g,h=e.axis==="y"?s.width:h),i=!0,{width:h,height:g,x:v,y,top:y,right:v+h,bottom:y+g,left:v}}}}function JT(n){return n!=null&&n.clientX!=null}function YY(n,e){e===void 0&&(e={});const{open:t,dataRef:r,elements:{floating:i,domReference:a},refs:s}=n,{enabled:c=!0,axis:u="both",x:f=null,y:h=null}=e,g=React.useRef(!1),v=React.useRef(null),[y,_]=React.useState(),[w,x]=React.useState([]),S=useEffectEvent((L,O)=>{g.current||r.current.openEvent&&!JT(r.current.openEvent)||s.setPositionReference(gN(a,{x:L,y:O,axis:u,dataRef:r,pointerType:y}))}),T=useEffectEvent(L=>{f!=null||h!=null||(t?v.current||x([]):S(L.clientX,L.clientY))}),M=isMouseLikePointerType(y)?i:t,C=React.useCallback(()=>{if(!M||!c||f!=null||h!=null)return;const L=getWindow(i);function O(I){const P=getTarget$1(I);contains$1(i,P)?(L.removeEventListener("mousemove",O),v.current=null):S(I.clientX,I.clientY)}if(!r.current.openEvent||JT(r.current.openEvent)){L.addEventListener("mousemove",O);const I=()=>{L.removeEventListener("mousemove",O),v.current=null};return v.current=I,I}s.setPositionReference(a)},[M,c,f,h,i,r,s,a,S]);React.useEffect(()=>C(),[C,w]),React.useEffect(()=>{c&&!i&&(g.current=!1)},[c,i]),React.useEffect(()=>{!c&&t&&(g.current=!0)},[c,t]),useModernLayoutEffect(()=>{c&&(f!=null||h!=null)&&(g.current=!1,S(f,h))},[c,f,h,S]);const k=React.useMemo(()=>{function L(O){let{pointerType:I}=O;_(I)}return{onPointerDown:L,onPointerEnter:L,onMouseMove:T,onMouseEnter:T}},[T]);return React.useMemo(()=>c?{reference:k}:{},[c,k])}const vN={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},yN={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},eM=n=>{var e,t;return{escapeKey:typeof n=="boolean"?n:(e=n?.escapeKey)!=null?e:!1,outsidePress:typeof n=="boolean"?n:(t=n?.outsidePress)!=null?t:!0}};function jY(n,e){e===void 0&&(e={});const{open:t,onOpenChange:r,elements:i,dataRef:a}=n,{enabled:s=!0,escapeKey:c=!0,outsidePress:u=!0,outsidePressEvent:f="pointerdown",referencePress:h=!1,referencePressEvent:g="pointerdown",ancestorScroll:v=!1,bubbles:y,capture:_}=e,w=yf(),x=useEffectEvent(typeof u=="function"?u:()=>!1),S=typeof u=="function"?x:u,T=React.useRef(!1),{escapeKey:M,outsidePress:C}=eM(y),{escapeKey:k,outsidePress:L}=eM(_),O=React.useRef(!1),I=useEffectEvent(V=>{var W;if(!t||!s||!c||V.key!=="Escape"||O.current)return;const ee=(W=a.current.floatingContext)==null?void 0:W.nodeId,q=w?getNodeChildren$1(w.nodesRef.current,ee):[];if(!M&&(V.stopPropagation(),q.length>0)){let Y=!0;if(q.forEach(ae=>{var ue;if((ue=ae.context)!=null&&ue.open&&!ae.context.dataRef.current.__escapeKeyBubbles){Y=!1;return}}),!Y)return}r(!1,isReactEvent(V)?V.nativeEvent:V,"escape-key")}),P=useEffectEvent(V=>{var W;const ee=()=>{var q;I(V),(q=getTarget$1(V))==null||q.removeEventListener("keydown",ee)};(W=getTarget$1(V))==null||W.addEventListener("keydown",ee)}),B=useEffectEvent(V=>{var W;const ee=a.current.insideReactTree;a.current.insideReactTree=!1;const q=T.current;if(T.current=!1,f==="click"&&q||ee||typeof S=="function"&&!S(V))return;const Y=getTarget$1(V),ae="["+_y("inert")+"]",ue=getDocument$1(i.floating).querySelectorAll(ae);let We=isElement(Y)?Y:null;for(;We&&!isLastTraversableNode(We);){const je=getParentNode(We);if(isLastTraversableNode(je)||!isElement(je))break;We=je}if(ue.length&&isElement(Y)&&!isRootElement(Y)&&!contains$1(Y,i.floating)&&Array.from(ue).every(je=>!contains$1(We,je)))return;if(isHTMLElement(Y)&&$){const je=isLastTraversableNode(Y),ct=getComputedStyle(Y),ht=/auto|scroll/,Ge=je||ht.test(ct.overflowX),Re=je||ht.test(ct.overflowY),Ze=Ge&&Y.clientWidth>0&&Y.scrollWidth>Y.clientWidth,pe=Re&&Y.clientHeight>0&&Y.scrollHeight>Y.clientHeight,Ie=ct.direction==="rtl",Ke=pe&&(Ie?V.offsetX<=Y.offsetWidth-Y.clientWidth:V.offsetX>Y.clientWidth),nt=Ze&&V.offsetY>Y.clientHeight;if(Ke||nt)return}const be=(W=a.current.floatingContext)==null?void 0:W.nodeId,_e=w&&getNodeChildren$1(w.nodesRef.current,be).some(je=>{var ct;return isEventTargetWithin(V,(ct=je.context)==null?void 0:ct.elements.floating)});if(isEventTargetWithin(V,i.floating)||isEventTargetWithin(V,i.domReference)||_e)return;const qe=w?getNodeChildren$1(w.nodesRef.current,be):[];if(qe.length>0){let je=!0;if(qe.forEach(ct=>{var ht;if((ht=ct.context)!=null&&ht.open&&!ct.context.dataRef.current.__outsidePressBubbles){je=!1;return}}),!je)return}r(!1,V,"outside-press")}),H=useEffectEvent(V=>{var W;const ee=()=>{var q;B(V),(q=getTarget$1(V))==null||q.removeEventListener(f,ee)};(W=getTarget$1(V))==null||W.addEventListener(f,ee)});React.useEffect(()=>{if(!t||!s)return;a.current.__escapeKeyBubbles=M,a.current.__outsidePressBubbles=C;let V=-1;function W(ue){r(!1,ue,"ancestor-scroll")}function ee(){window.clearTimeout(V),O.current=!0}function q(){V=window.setTimeout(()=>{O.current=!1},isWebKit()?5:0)}const Y=getDocument$1(i.floating);c&&(Y.addEventListener("keydown",k?P:I,k),Y.addEventListener("compositionstart",ee),Y.addEventListener("compositionend",q)),S&&Y.addEventListener(f,L?H:B,L);let ae=[];return v&&(isElement(i.domReference)&&(ae=getOverflowAncestors(i.domReference)),isElement(i.floating)&&(ae=ae.concat(getOverflowAncestors(i.floating))),!isElement(i.reference)&&i.reference&&i.reference.contextElement&&(ae=ae.concat(getOverflowAncestors(i.reference.contextElement)))),ae=ae.filter(ue=>{var We;
330return ue!==((We=Y.defaultView)==null?void 0:We.visualViewport)}),ae.forEach(ue=>{ue.addEventListener("scroll",W,{passive:!0})}),()=>{c&&(Y.removeEventListener("keydown",k?P:I,k),Y.removeEventListener("compositionstart",ee),Y.removeEventListener("compositionend",q)),S&&Y.removeEventListener(f,L?H:B,L),ae.forEach(ue=>{ue.removeEventListener("scroll",W)}),window.clearTimeout(V)}},[a,i,c,S,f,t,r,v,s,M,C,I,k,P,B,L,H]),React.useEffect(()=>{a.current.insideReactTree=!1},[a,S,f]);const F=React.useMemo(()=>({onKeyDown:I,...h&&{[vN[g]]:V=>{r(!1,V.nativeEvent,"reference-press")},...g!=="click"&&{onClick(V){r(!1,V.nativeEvent,"reference-press")}}}}),[I,r,h,g]),$=React.useMemo(()=>({onKeyDown:I,onMouseDown(){T.current=!0},onMouseUp(){T.current=!0},[yN[f]]:()=>{a.current.insideReactTree=!0}}),[I,f,a]);return React.useMemo(()=>s?{reference:F,floating:$}:{},[s,F,$])}function bN(n){const{open:e=!1,onOpenChange:t,elements:r}=n,i=_m(),a=p.useRef({}),[s]=p.useState(()=>IT()),c=vf()!=null,[u,f]=p.useState(r.reference),h=W8((y,_,w)=>{a.current.openEvent=y?_:void 0,s.emit("openchange",{open:y,event:_,reason:w,nested:c}),t?.(y,_,w)}),g=p.useMemo(()=>({setPositionReference:f}),[]),v=p.useMemo(()=>({reference:u||r.reference||null,floating:r.floating||null,domReference:r.reference}),[u,r.reference,r.floating]);return p.useMemo(()=>({dataRef:a,open:e,onOpenChange:h,elements:v,events:s,floatingId:i,refs:g}),[e,h,v,s,i,g])}function _N(n){n===void 0&&(n={});const{nodeId:e}=n,t=bN({...n,elements:{reference:null,floating:null,...n.elements}}),r=n.rootContext||t,i=r.elements,[a,s]=p.useState(null),[c,u]=p.useState(null),h=i?.domReference||a,g=p.useRef(null),v=yf();mm(()=>{h&&(g.current=h)},[h]);const y=jI({...n,elements:{...i,...c&&{reference:c}}}),_=p.useCallback(M=>{const C=si(M)?{getBoundingClientRect:()=>M.getBoundingClientRect(),getClientRects:()=>M.getClientRects(),contextElement:M}:M;u(C),y.refs.setReference(C)},[y.refs]),w=p.useCallback(M=>{(si(M)||M===null)&&(g.current=M,s(M)),(si(y.refs.reference.current)||y.refs.reference.current===null||M!==null&&!si(M))&&y.refs.setReference(M)},[y.refs]),x=p.useMemo(()=>({...y.refs,setReference:w,setPositionReference:_,domReference:g}),[y.refs,w,_]),S=p.useMemo(()=>({...y.elements,domReference:h}),[y.elements,h]),T=p.useMemo(()=>({...y,...r,refs:x,elements:S,nodeId:e}),[y,x,S,e,r]);return mm(()=>{r.dataRef.current.floatingContext=T;const M=v?.nodesRef.current.find(C=>C.id===e);M&&(M.context=T)}),p.useMemo(()=>({...y,context:T,refs:x,elements:S}),[y,x,S,T])}function kw(){return isMac()&&isSafari()}function WY(n,e){e===void 0&&(e={});const{open:t,onOpenChange:r,events:i,dataRef:a,elements:s}=n,{enabled:c=!0,visibleOnly:u=!0}=e,f=React.useRef(!1),h=React.useRef(-1),g=React.useRef(!0);React.useEffect(()=>{if(!c)return;const y=getWindow(s.domReference);function _(){!t&&isHTMLElement(s.domReference)&&s.domReference===activeElement(getDocument$1(s.domReference))&&(f.current=!0)}function w(){g.current=!0}function x(){g.current=!1}return y.addEventListener("blur",_),kw()&&(y.addEventListener("keydown",w,!0),y.addEventListener("pointerdown",x,!0)),()=>{y.removeEventListener("blur",_),kw()&&(y.removeEventListener("keydown",w,!0),y.removeEventListener("pointerdown",x,!0))}},[s.domReference,t,c]),React.useEffect(()=>{if(!c)return;function y(_){let{reason:w}=_;(w==="reference-press"||w==="escape-key")&&(f.current=!0)}return i.on("openchange",y),()=>{i.off("openchange",y)}},[i,c]),React.useEffect(()=>()=>{Lr(h)},[]);const v=React.useMemo(()=>({onMouseLeave(){f.current=!1},onFocus(y){if(f.current)return;const _=getTarget$1(y.nativeEvent);if(u&&isElement(_)){if(kw()&&!y.relatedTarget){if(!g.current&&!isTypeableElement(_))return}else if(!matchesFocusVisible(_))return}r(!0,y.nativeEvent,"focus")},onBlur(y){f.current=!1;const _=y.relatedTarget,w=y.nativeEvent,x=isElement(_)&&_.hasAttribute(_y("focus-guard"))&&_.getAttribute("data-type")==="outside";h.current=window.setTimeout(()=>{var S;const T=activeElement(s.domReference?s.domReference.ownerDocument:document);!_&&T===s.domReference||contains$1((S=a.current.floatingContext)==null?void 0:S.refs.floating.current,T)||contains$1(s.domReference,T)||x||r(!1,w,"focus")})}}),[a,s.domReference,r,u]);return React.useMemo(()=>c?{reference:v}:{},[c,v])}function Lw(n,e,t){const r=new Map,i=t==="item";let a=n;if(i&&n){const{[kT]:s,[LT]:c,...u}=n;a=u}return{...t==="floating"&&{tabIndex:-1,[ZI]:""},...a,...e.map(s=>{const c=s?s[t]:null;return typeof c=="function"?n?c(n):null:c}).concat(n).reduce((s,c)=>
330(c&&Object.entries(c).forEach(u=>{let[f,h]=u;if(!(i&&[kT,LT].includes(f)))if(f.indexOf("on")===0){if(r.has(f)||r.set(f,[]),typeof h=="function"){var g;(g=r.get(f))==null||g.push(h),s[f]=function(){for(var v,y=arguments.length,_=new Array(y),w=0;w<y;w++)_[w]=arguments[w];return(v=r.get(f))==null?void 0:v.map(x=>x(..._)).find(x=>x!==void 0)}}}else s[f]=h}),s),{})}}function UY(n){n===void 0&&(n=[]);const e=n.map(c=>c?.reference),t=n.map(c=>c?.floating),r=n.map(c=>c?.item),i=React.useCallback(c=>Lw(c,n,"reference"),e),a=React.useCallback(c=>Lw(c,n,"floating"),t),s=React.useCallback(c=>Lw(c,n,"item"),r);return React.useMemo(()=>({getReferenceProps:i,getFloatingProps:a,getItemProps:s}),[i,a,s])}const wN="Escape";function Sy(n,e,t){switch(n){case"vertical":return e;case"horizontal":return t;default:return e||t}}function Cy(n,e){return Sy(e,n===Sw||n===bm,n===mf||n===gf)}function Aw(n,e,t){return Sy(e,n===bm,t?n===mf:n===gf)||n==="Enter"||n===" "||n===""}function tM(n,e,t){return Sy(e,t?n===mf:n===gf,n===bm)}function nM(n,e,t,r){const i=t?n===gf:n===mf,a=n===Sw;return e==="both"||e==="horizontal"&&r&&r>1?n===wN:Sy(e,i,a)}function qY(n,e){const{open:t,onOpenChange:r,elements:i,floatingId:a}=n,{listRef:s,activeIndex:c,onNavigate:u=()=>{},enabled:f=!0,selectedIndex:h=null,allowEscape:g=!1,loop:v=!1,nested:y=!1,rtl:_=!1,virtual:w=!1,focusItemOnOpen:x="auto",focusItemOnHover:S=!0,openOnArrowKeyDown:T=!0,disabledIndices:M=void 0,orientation:C="vertical",parentOrientation:k,cols:L=1,scrollItemIntoView:O=!0,virtualItemRef:I,itemSizes:P,dense:B=!1}=e,H=getFloatingFocusElement(i.floating),F=useLatestRef(H),$=vf(),V=yf();useModernLayoutEffect(()=>{n.dataRef.current.orientation=C},[n,C]);const W=useEffectEvent(()=>{u(Y.current===-1?null:Y.current)}),ee=isTypeableCombobox(i.domReference),q=React.useRef(x),Y=React.useRef(h??-1),ae=React.useRef(null),ue=React.useRef(!0),We=React.useRef(W),be=React.useRef(!!i.floating),_e=React.useRef(t),qe=React.useRef(!1),je=React.useRef(!1),ct=useLatestRef(M),ht=useLatestRef(t),Ge=useLatestRef(O),Re=useLatestRef(h),[Ze,pe]=React.useState(),[Ie,Ke]=React.useState(),nt=useEffectEvent(()=>{function Ne(Fe){if(w){var rt;(rt=Fe.id)!=null&&rt.endsWith("-fui-option")&&(Fe.id=a+"-"+Math.random().toString(16).slice(2,10)),pe(Fe.id),V?.events.emit("virtualfocus",Fe),I&&(I.current=Fe)}else pu(Fe,{sync:qe.current,preventScroll:!0})}const Ve=s.current[Y.current],Oe=je.current;Ve&&Ne(Ve),(qe.current?Fe=>Fe():requestAnimationFrame)(()=>{const Fe=s.current[Y.current]||Ve;if(!Fe)return;Ve||Ne(Fe);const rt=Ge.current;rt&&zt&&(Oe||!ue.current)&&(Fe.scrollIntoView==null||Fe.scrollIntoView(typeof rt=="boolean"?{block:"nearest",inline:"nearest"}:rt))})});useModernLayoutEffect(()=>{f&&(t&&i.floating?q.current&&h!=null&&(je.current=!0,Y.current=h,W()):be.current&&(Y.current=-1,We.current()))},[f,t,i.floating,h,W]),useModernLayoutEffect(()=>{if(f&&t&&i.floating)if(c==null){if(qe.current=!1,Re.current!=null)return;if(be.current&&(Y.current=-1,nt()),(!_e.current||!be.current)&&q.current&&(ae.current!=null||q.current===!0&&ae.current==null)){let Ne=0;const Ve=()=>{s.current[0]==null?(Ne<2&&(Ne?requestAnimationFrame:queueMicrotask)(Ve),Ne++):(Y.current=ae.current==null||Aw(ae.current,C,_)||y?getMinListIndex(s,ct.current):getMaxListIndex(s,ct.current),ae.current=null,W())};Ve()}}else isIndexOutOfListBounds(s,c)||(Y.current=c,nt(),je.current=!1)},[f,t,i.floating,c,Re,y,s,C,_,W,nt,ct]),useModernLayoutEffect(()=>{var Ne;if(!f||i.floating||!V||w||!be.current)return;const Ve=V.nodesRef.current,Oe=(Ne=Ve.find(rt=>rt.id===$))==null||(Ne=Ne.context)==null?void 0:Ne.elements.floating,Be=activeElement(getDocument$1(i.floating)),Fe=Ve.some(rt=>rt.context&&contains$1(rt.context.elements.floating,Be));Oe&&!Fe&&ue.current&&Oe.focus({preventScroll:!0})},[f,i.floating,V,$,w]),useModernLayoutEffect(()=>{if(!f||!V||!w||$)return;function Ne(Ve){Ke(Ve.id),I&&(I.current=Ve)}return V.events.on("virtualfocus",Ne),()=>{V.events.off("virtualfocus",Ne)}},[f,V,w,$,I]),useModernLayoutEffect(()=>{We.current=W,_e.current=t,be.current=!!i.floating}),useModernLayoutEffect(()=>{t||(ae.current=null,q.current=x)},[t,x]);const Ot=c!=null,zt=React.useMemo(()=>{function Ne(Oe){if(!ht.current)return;const Be=s.current.indexOf(Oe);Be!==-1&&Y.current!==Be&&(Y.current=Be,W())}return{onFocus(Oe){let{currentTarget:Be}=Oe;qe.current=!0,Ne(Be)},onClick:Oe=>{let{currentTarget:Be}=Oe;return Be.focus({preventScroll:!0})},onMouseMove(Oe){let{currentTarget:Be}=Oe;qe.current=!0,je.current=!1,S&&Ne(Be)},onPointerLeave(Oe){let{pointerType:Be}=Oe;if(!(!ue.current||Be==="touch")&&(qe.current=!0,!!S&&(Y.current=-1,W(),!w))){var Fe;(Fe=F.current)==null||Fe.focus({preventScroll:!0})}}}},[ht,F,S,s,W,w]),pt=React.useCallback(()=>{var Ne;return k??(V==null||(Ne=V.nodesRef.current.find(Ve=>Ve.id===$))==null||(Ne=Ne.context)==null||(Ne=Ne.dataRef)==null?void 0:Ne.current.orientation)},[$,V,k]),Gt=useEffectEvent(Ne=>{if(ue.current=!1,qe.current=!0,Ne.which===229||!ht.current&&Ne.currentTarget===F.current)return;
330if(y&&nM(Ne.key,C,_,L)){Cy(Ne.key,pt())||stopEvent(Ne),r(!1,Ne.nativeEvent,"list-navigation"),isHTMLElement(i.domReference)&&(w?V?.events.emit("virtualfocus",i.domReference):i.domReference.focus());return}const Ve=Y.current,Oe=getMinListIndex(s,M),Be=getMaxListIndex(s,M);if(ee||(Ne.key==="Home"&&(stopEvent(Ne),Y.current=Oe,W()),Ne.key==="End"&&(stopEvent(Ne),Y.current=Be,W())),L>1){const Fe=P||Array.from({length:s.current.length},()=>({width:1,height:1})),rt=createGridCellMap(Fe,L,B),hn=rt.findIndex(br=>br!=null&&!isListIndexDisabled(s,br,M)),En=rt.reduce((br,li,Mf)=>li!=null&&!isListIndexDisabled(s,li,M)?Mf:br,-1),Zn=rt[getGridNavigatedIndex({current:rt.map(br=>br!=null?s.current[br]:null)},{event:Ne,orientation:C,loop:v,rtl:_,cols:L,disabledIndices:getGridCellIndices([...(typeof M!="function"?M:null)||s.current.map((br,li)=>isListIndexDisabled(s,li,M)?li:void 0),void 0],rt),minIndex:hn,maxIndex:En,prevIndex:getGridCellIndexOfCorner(Y.current>Be?Oe:Y.current,Fe,rt,L,Ne.key===bm?"bl":Ne.key===(_?mf:gf)?"tr":"tl"),stopEvent:!0})];if(Zn!=null&&(Y.current=Zn,W()),C==="both")return}if(Cy(Ne.key,C)){if(stopEvent(Ne),t&&!w&&activeElement(Ne.currentTarget.ownerDocument)===Ne.currentTarget){Y.current=Aw(Ne.key,C,_)?Oe:Be,W();return}Aw(Ne.key,C,_)?v?Y.current=Ve>=Be?g&&Ve!==s.current.length?-1:Oe:findNonDisabledListIndex(s,{startingIndex:Ve,disabledIndices:M}):Y.current=Math.min(Be,findNonDisabledListIndex(s,{startingIndex:Ve,disabledIndices:M})):v?Y.current=Ve<=Oe?g&&Ve!==-1?s.current.length:Be:findNonDisabledListIndex(s,{startingIndex:Ve,decrement:!0,disabledIndices:M}):Y.current=Math.max(Oe,findNonDisabledListIndex(s,{startingIndex:Ve,decrement:!0,disabledIndices:M})),isIndexOutOfListBounds(s,Y.current)&&(Y.current=-1),W()}}),Ft=React.useMemo(()=>w&&t&&Ot&&{"aria-activedescendant":Ie||Ze},[w,t,Ot,Ie,Ze]),Nt=React.useMemo(()=>({"aria-orientation":C==="both"?void 0:C,...ee?{}:Ft,onKeyDown:Gt,onPointerMove(){ue.current=!0}}),[Ft,Gt,C,ee]),Tt=React.useMemo(()=>{function Ne(Oe){x==="auto"&&isVirtualClick(Oe.nativeEvent)&&(q.current=!0)}function Ve(Oe){q.current=x,x==="auto"&&isVirtualPointerEvent(Oe.nativeEvent)&&(q.current=!0)}return{...Ft,onKeyDown(Oe){ue.current=!1;const Be=Oe.key.startsWith("Arrow"),Fe=["Home","End"].includes(Oe.key),rt=Be||Fe,hn=tM(Oe.key,C,_),En=nM(Oe.key,C,_,L),Zn=tM(Oe.key,pt(),_),br=Cy(Oe.key,C),li=(y?Zn:br)||Oe.key==="Enter"||Oe.key.trim()==="";if(w&&t){const xt=V?.nodesRef.current.find(Yt=>Yt.parentId==null),Vt=V&&xt?getDeepestNode(V.nodesRef.current,xt.id):null;if(rt&&Vt&&I){const Yt=new KeyboardEvent("keydown",{key:Oe.key,bubbles:!0});if(hn||En){var Mf,xe;const Vr=((Mf=Vt.context)==null?void 0:Mf.elements.domReference)===Oe.currentTarget,ci=En&&!Vr?(xe=Vt.context)==null?void 0:xe.elements.domReference:hn?s.current.find(Oo=>Oo?.id===Ze):null;ci&&(stopEvent(Oe),ci.dispatchEvent(Yt),Ke(void 0))}if((br||Fe)&&Vt.context&&Vt.context.open&&Vt.parentId&&Oe.currentTarget!==Vt.context.elements.domReference){var ot;stopEvent(Oe),(ot=Vt.context.elements.domReference)==null||ot.dispatchEvent(Yt);return}}return Gt(Oe)}if(!(!t&&!T&&Be)){if(li){const xt=Cy(Oe.key,pt());ae.current=y&&xt?null:Oe.key}if(y){Zn&&(stopEvent(Oe),t?(Y.current=getMinListIndex(s,ct.current),W()):r(!0,Oe.nativeEvent,"list-navigation"));return}br&&(h!=null&&(Y.current=h),stopEvent(Oe),!t&&T?r(!0,Oe.nativeEvent,"list-navigation"):Gt(Oe),t&&W())}},onFocus(){t&&!w&&(Y.current=-1,W())},onPointerDown:Ve,onPointerEnter:Ve,onMouseDown:Ne,onClick:Ne}},[Ze,Ft,L,Gt,ct,x,s,y,W,r,t,T,C,pt,_,h,V,w,I]);return React.useMemo(()=>f?{reference:Tt,floating:Nt,item:zt}:{},[f,Tt,Nt,zt])}const EN=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function $Y(n,e){var t,r;e===void 0&&(e={});const{open:i,elements:a,floatingId:s}=n,{enabled:c=!0,role:u="dialog"}=e,f=_m(),h=((t=a.domReference)==null?void 0:t.id)||f,g=React.useMemo(()=>{var T;return((T=getFloatingFocusElement(a.floating))==null?void 0:T.id)||s},[a.floating,s]),v=(r=EN.get(u))!=null?r:u,_=vf()!=null,w=React.useMemo(()=>v==="tooltip"||u==="label"?{["aria-"+(u==="label"?"labelledby":"describedby")]:i?g:void 0}:{"aria-expanded":i?"true":"false","aria-haspopup":v==="alertdialog"?"dialog":v,"aria-controls":i?g:void 0,...v==="listbox"&&{role:"combobox"},...v==="menu"&&{id:h},...v==="menu"&&_&&{role:"menuitem"},...u==="select"&&{"aria-autocomplete":"none"},...u==="combobox"&&{"aria-autocomplete":"list"}},[v,g,_,i,h,u]),x=React.useMemo(()=>{const T={id:g,...v&&{role:v}};return v==="tooltip"||u==="label"?T:{...T,...v==="menu"&&{"aria-labelledby":h}}},[v,g,h,u]),S=React.useCallback(T=>{let{active:M,selected:C}=T;const k={role:"option",...M&&{id:g+"-fui-option"}};switch(u){case"select":case"combobox":return{...k,"aria-selected":C}}return{}},[g,u]);return React.useMemo(()=>c?{reference:w,floating:x,item:S}:{},[c,w,x,S])}const rM=n=>n.replace(/[A-Z]+(?![a-z])|[A-Z]/g,(e,t)=>(t?"-":"")+e.toLowerCase());function _f(n,e){return typeof n=="function"?n(e):n}function xN(n,e){const[t,r]=React.useState(n);return n&&!t&&r(!0),React.useEffect(()=>{if(!n&&t){const i=setTimeout(()=>r(!1),e);return()=>clearTimeout(i)}},[n,t,e]),t}function SN(n,e){e===void 0&&(e={});const{open:t,elements:{floating:r}}=n,{duration:i=250}=e,s=(typeof i=="number"?i:i.close)||0,[c,u]=React.useState("unmounted"),f=xN(t,s);return!f&&c==="close"&&u("unmounted"),useModernLayoutEffect(()=>{if(r){if(t){u("initial");const h=requestAnimationFrame(()=>{ReactDOM.flushSync(()=>{u("open")})});return()=>{cancelAnimationFrame(h)}}u("close")}},[t,r]),{isMounted:f,status:c}}function GY(n,e){e===void 0&&(e={});const{initial:t={opacity:0}
330,open:r,close:i,common:a,duration:s=250}=e,c=n.placement,u=c.split("-")[0],f=React.useMemo(()=>({side:u,placement:c}),[u,c]),h=typeof s=="number",g=(h?s:s.open)||0,v=(h?s:s.close)||0,[y,_]=React.useState(()=>({..._f(a,f),..._f(t,f)})),{isMounted:w,status:x}=SN(n,{duration:s}),S=useLatestRef(t),T=useLatestRef(r),M=useLatestRef(i),C=useLatestRef(a);return useModernLayoutEffect(()=>{const k=_f(S.current,f),L=_f(M.current,f),O=_f(C.current,f),I=_f(T.current,f)||Object.keys(k).reduce((P,B)=>(P[B]="",P),{});if(x==="initial"&&_(P=>({transitionProperty:P.transitionProperty,...O,...k})),x==="open"&&_({transitionProperty:Object.keys(I).map(rM).join(","),transitionDuration:g+"ms",...O,...I}),x==="close"){const P=L||k;_({transitionProperty:Object.keys(P).map(rM).join(","),transitionDuration:v+"ms",...O,...P})}},[v,M,S,T,C,g,x,f]),{isMounted:w,styles:y}}function ZY(n,e){var t;const{open:r,dataRef:i}=n,{listRef:a,activeIndex:s,onMatch:c,onTypingChange:u,enabled:f=!0,findMatch:h=null,resetMs:g=750,ignoreKeys:v=[],selectedIndex:y=null}=e,_=React.useRef(-1),w=React.useRef(""),x=React.useRef((t=y??s)!=null?t:-1),S=React.useRef(null),T=useEffectEvent(c),M=useEffectEvent(u),C=useLatestRef(h),k=useLatestRef(v);useModernLayoutEffect(()=>{r&&(Lr(_),S.current=null,w.current="")},[r]),useModernLayoutEffect(()=>{if(r&&w.current===""){var B;x.current=(B=y??s)!=null?B:-1}},[r,y,s]);const L=useEffectEvent(B=>{B?i.current.typing||(i.current.typing=B,M(B)):i.current.typing&&(i.current.typing=B,M(B))}),O=useEffectEvent(B=>{function H(ee,q,Y){const ae=C.current?C.current(q,Y):q.find(ue=>ue?.toLocaleLowerCase().indexOf(Y.toLocaleLowerCase())===0);return ae?ee.indexOf(ae):-1}const F=a.current;if(w.current.length>0&&w.current[0]!==" "&&(H(F,F,w.current)===-1?L(!1):B.key===" "&&stopEvent(B)),F==null||k.current.includes(B.key)||B.key.length!==1||B.ctrlKey||B.metaKey||B.altKey)return;r&&B.key!==" "&&(stopEvent(B),L(!0)),F.every(ee=>{var q,Y;return ee?((q=ee[0])==null?void 0:q.toLocaleLowerCase())!==((Y=ee[1])==null?void 0:Y.toLocaleLowerCase()):!0})&&w.current===B.key&&(w.current="",x.current=S.current),w.current+=B.key,Lr(_),_.current=window.setTimeout(()=>{w.current="",x.current=S.current,L(!1)},g);const V=x.current,W=H(F,[...F.slice((V||0)+1),...F.slice(0,(V||0)+1)],w.current);W!==-1?(T(W),S.current=W):B.key!==" "&&(w.current="",L(!1))}),I=React.useMemo(()=>({onKeyDown:O}),[O]),P=React.useMemo(()=>({onKeyDown:O,onKeyUp(B){B.key===" "&&L(!1)}}),[O,L]);return React.useMemo(()=>f?{reference:I,floating:P}:{},[f,I,P])}function iM(n,e){return{...n,rects:{...n.rects,floating:{...n.rects.floating,height:e}}}}const XY=n=>({name:"inner",options:n,async fn(e){const{listRef:t,overflowRef:r,onFallbackChange:i,offset:a=0,index:s=0,minItemsVisible:c=4,referenceOverflowThreshold:u=0,scrollRef:f,...h}=evaluate(n,e),{rects:g,platform:v,elements:{floating:y}}=e,_=t.current[s],w=f?.current||y,x=y.clientTop||w.clientTop,S=y.clientTop!==0,T=w.clientTop!==0,M=y===w;if(!_)return{};const C={...e,...await offset(-_.offsetTop-y.clientTop-g.reference.height/2-_.offsetHeight/2-a).fn(e)},k=await v.detectOverflow(iM(C,w.scrollHeight+x+y.clientTop),h),L=await v.detectOverflow(C,{...h,elementContext:"reference"}),O=max(0,k.top),I=C.y+O,H=(w.scrollHeight>w.clientHeight?F=>F:round)(max(0,w.scrollHeight+(S&&M||T?x*2:0)-O-max(0,k.bottom)));if(w.style.maxHeight=H+"px",w.scrollTop=O,i){const F=w.offsetHeight<_.offsetHeight*min(c,t.current.length)-1||L.top>=-u||L.bottom>=-u;ReactDOM.flushSync(()=>i(F))}return r&&(r.current=await v.detectOverflow(iM({...C,y:I},w.offsetHeight+x+y.clientTop),h)),{y:I}}});function QY(n,e){const{open:t,elements:r}=n,{enabled:i=!0,overflowRef:a,scrollRef:s,onChange:c}=e,u=useEffectEvent(c),f=React.useRef(!1),h=React.useRef(null),g=React.useRef(null);React.useEffect(()=>{if(!i)return;function y(w){if(w.ctrlKey||!_||a.current==null)return;const x=w.deltaY,S=a.current.top>=-.5,T=a.current.bottom>=-.5,M=_.scrollHeight-_.clientHeight,C=x<0?-1:1,k=x<0?"max":"min";_.scrollHeight<=_.clientHeight||(!S&&x>0||!T&&x<0?(w.preventDefault(),ReactDOM.flushSync(()=>{u(L=>L+Math[k](x,M*C))})):/firefox/i.test(getUserAgent())&&(_.scrollTop+=x))}const _=s?.current||r.floating;if(t&&_)return _.addEventListener("wheel",y),requestAnimationFrame(()=>{h.current=_.scrollTop,a.current!=null&&(g.current={...a.current})}),()=>{h.current=null,g.current=null,_.removeEventListener("wheel",y)}},[i,t,r.floating,a,s,u]);const v=React.useMemo(()=>({onKeyDown(){f.current=!0},onWheel(){f.current=!1},onPointerMove(){f.current=!1},onScroll(){const y=s?.current||r.floating;if(!(!a.current||!y||!f.current)){if(h.current!==null){const _=y.scrollTop-h.current;(a.current.bottom<-.5&&_<-1||a.current.top<-.5&&_>1)&&ReactDOM.flushSync(()=>u(w=>w+_))}requestAnimationFrame(()=>{h.current=y.scrollTop})}}}),[r.floating,u,a,s]);return React.useMemo(()=>i?{floating:v}:{},[i,v])}function aM(n,e,t){return t===void 0&&(t=!0),n.filter(i=>{var a;return i.parentId===e&&(!t||((a=i.context)==null?void 0:a.open))}).flatMap(i=>[i,...aM(n,i.id,t)])}function sM(n,e){const[t,r]=n;let i=!1;const a=e.length;for(let s=0,c=a-1;s<a;c=s++){const[u,f]=e[s]||[0,0],[h,g]=e[c]||[0,0];f>=r!=g>=r&&t<=(h-u)*(r-f)/(g-f)+u&&(i=!i)}return i}function CN(n,e){return n[0]>=e.x&&n[0]<=e.x+e.width&&n[1]>=e.y&&n[1]<=e.y+e.height}function KY(n){n===void 0&&(n={});const{buffer:e=.5,blockPointerEvents:t=!1,requireIntent:r=!0}=n,i={current:-1};let a=!1,s=null,c=null,u=typeof performance<"u"?performance.now():0;function f(g,v){const y=performance.now(),_=y-u;if(s===null||c===null||_===0)return s=g,c=v,u=y,null;const w=g-s,x=v-c,T=Math.sqrt(w*w+x*x)/_;return s=g,c=v,u=y,T}const h=g=>{let{x:v,y,placement:_,elements:w,onClose:x,nodeId:S,tree:T}=g;return function(C){function k(){Lr(i),x()}if(Lr(i),!w.domReference||!w.floating||_==null||v==null||y==null)return;const{clientX:L,clientY:O}=C,I=[L,O],P=rN(C),B=C.type==="mouseleave",H=Mw(w.floating,P),F=Mw(w.domReference,P),$=w.domReference.getBoundingClientRect(),V=w.floating.getBoundingClientRect(),W=_.split("-")[0],ee=v>V.right-V.width/2,q=y>V.bottom-V.height/2,Y=CN(I,$),ae=V.width>$.width,ue=V.height>$.height,We=(ae?$:V).left,be=(ae?$:V).right,_e=(ue?$:V).top,qe=(ue?$:V).bottom;if(H&&(a=!0,!B))return;if(F&&(a=!1),F&&!B){a=!0;return}if(B&&isElement(C.relatedTarget)&&Mw(w.floating,C.relatedTarget)||T&&aM(T.nodesRef.current,S).length)return;if(W==="top"&&y>=$.bottom-1||W==="bottom"&&y<=$.top+1||W==="left"&&v>=$.right-1||W==="right"&&v<=$.left+1)return k();let je=[];switch(W){case"top":je=[[We,$.top+1],[We,V.bottom-1],[be,V.bottom-1],[be,$.top+1]];break;case"bottom":je=[[We,V.top+1],[We,$.bottom-1],[be,$.bottom-1],[be,V.top+1]];break;case"left":je=[[V.right-1,qe],[V.right-1,_e],[$.left+1,_e],[$.left+1,qe]];break;case"right":je=[[$.right-1,qe],[$.right-1,_e],[V.left+1,_e],[V.left+1,qe]];break}function ct(ht){let[Ge,Re]=ht;switch(W){case"top":{const Ze=[ae?Ge+e/2:ee?Ge+e*4:Ge-e*4,Re+e+1],pe=[ae?Ge-e/2:ee?Ge+e*4:Ge-e*4,Re+e+1],Ie=[[V.left,ee||ae?V.bottom-e:V.top],[V.right,ee?ae?V.bottom-e:V.top:V.bottom-e]];return[Ze,pe,...Ie]}case"bottom":{const Ze=[ae?Ge+e/2:ee?Ge+e*4:Ge-e*4,Re-e],pe=[ae?Ge-e/2:ee?Ge+e*4:Ge-e*4,Re-e],Ie=[[V.left,ee||ae?V.top+e:V.bottom],[V.right,ee?ae?V.top+e:V.bottom:V.top+e]];return[Ze,pe,...Ie]}
330case"left":{const Ze=[Ge+e+1,ue?Re+e/2:q?Re+e*4:Re-e*4],pe=[Ge+e+1,ue?Re-e/2:q?Re+e*4:Re-e*4];return[...[[q||ue?V.right-e:V.left,V.top],[q?ue?V.right-e:V.left:V.right-e,V.bottom]],Ze,pe]}case"right":{const Ze=[Ge-e,ue?Re+e/2:q?Re+e*4:Re-e*4],pe=[Ge-e,ue?Re-e/2:q?Re+e*4:Re-e*4],Ie=[[q||ue?V.left+e:V.right,V.top],[q?ue?V.left+e:V.right:V.left+e,V.bottom]];return[Ze,pe,...Ie]}}}if(!sM([L,O],je)){if(a&&!Y)return k();if(!B&&r){const ht=f(C.clientX,C.clientY);if(ht!==null&&ht<.1)return k()}sM([L,O],ct([v,y]))?!a&&r&&(i.current=window.setTimeout(k,40)):k()}}};return h.__options={blockPointerEvents:t},h}/*!
331  react-datepicker v8.10.0
332  https://github.com/Hacker0x01/react-datepicker
333  Released under the MIT License.
334*/var Rw=function(e,t){return Rw=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},Rw(e,t)};function Fr(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Rw(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var Ut=function(){return Ut=Object.assign||function(t){for(var r,i=1,a=arguments.length;i<a;i++){r=arguments[i];
334for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(t[s]=r[s])}return t},Ut.apply(this,arguments)};function xs(n,e,t){if(t||arguments.length===2)for(var r=0,i=e.length,a;r<i;r++)(a||!(r in e))&&(a||(a=Array.prototype.slice.call(e,0,r)),a[r]=e[r]);return n.concat(a||Array.prototype.slice.call(e))}typeof SuppressedError=="function"&&SuppressedError;var TN=function(n){var e=n.showTimeSelectOnly,t=e===void 0?!1:e,r=n.showTime,i=r===void 0?!1:r,a=n.className,s=n.children,c=n.inline,u=t?"Choose Time":"Choose Date".concat(i?" and Time":"");return p.createElement("div",{className:a,"aria-label":u,role:c?void 0:"dialog","aria-modal":c?void 0:"true"},s)},MN=function(n,e){var t=(0,p.useRef)(null),r=(0,p.useRef)(n);(0,p.useEffect)(function(){r.current=n},[n]);var i=(0,p.useCallback)(function(a){var s,c=a.composed&&a.composedPath&&a.composedPath().find(function(u){return u instanceof Node})||a.target;t.current&&!t.current.contains(c)&&(e&&c instanceof HTMLElement&&c.classList.contains(e)||(s=r.current)===null||s===void 0||s.call(r,a))},[e]);return(0,p.useEffect)(function(){return document.addEventListener("mousedown",i),function(){document.removeEventListener("mousedown",i)}},[i]),t},Ty=function(n){var e=n.children,t=n.onClickOutside,r=n.className,i=n.containerRef,a=n.style,s=n.ignoreClass,c=MN(t,s);return p.createElement("div",{className:r,style:a,ref:function(u){c.current=u,i&&(i.current=u)}},e)},$e;(function(n){n.ArrowUp="ArrowUp",n.ArrowDown="ArrowDown",n.ArrowLeft="ArrowLeft",n.ArrowRight="ArrowRight",n.PageUp="PageUp",n.PageDown="PageDown",n.Home="Home",n.End="End",n.Enter="Enter",n.Space=" ",n.Tab="Tab",n.Escape="Escape",n.Backspace="Backspace",n.X="x"})($e||($e={}));function My(){var n=typeof window<"u"?window:globalThis;return n}var Em=12;function an(n){if(n==null)return new Date;var e=typeof n=="string"?y4(n):dt(n);return Yi(e)?e:new Date}function wf(n,e,t,r,i){i===void 0&&(i=an());for(var a=Ef(t)||Ef(Iw()),s=Array.isArray(e)?e:[e],c=0,u=s;c<u.length;c++){var f=u[c],h=h8(n,f,i,{locale:a,useAdditionalWeekYearTokens:!0,useAdditionalDayOfYearTokens:!0});if(Yi(h)&&(!r||n===Hn(h,f,t)))return h}return null}function Yi(n,e){return Q0(n)&&!ys(n,new Date("1/1/1800"))}function Hn(n,e,t){if(t==="en")return FC(n,e,{useAdditionalWeekYearTokens:!0,useAdditionalDayOfYearTokens:!0});var r=t?Ef(t):void 0;return t&&!r&&console.warn('A locale object was not found for the provided string ["'.concat(t,'"].')),r=r||Ef(Iw()),FC(n,e,{locale:r,useAdditionalWeekYearTokens:!0,useAdditionalDayOfYearTokens:!0})}function ji(n,e){var t=e.dateFormat,r=e.locale,i=Array.isArray(t)&&t.length>0?t[0]:t;return n&&Hn(n,i,r)||""}var oM=" - ";function DN(n,e,t){if(!n&&!e)return"";var r=n?ji(n,t):"",i=e?ji(e,t):"",a=t.rangeSeparator||oM;return"".concat(r).concat(a).concat(i)}function ON(n,e){if(!n?.length)return"";var t=n[0]?ji(n[0],e):"";if(n.length===1)return t;if(n.length===2&&n[1]){var r=ji(n[1],e);return"".concat(t,", ").concat(r)}var i=n.length-1;return"".concat(t," (+").concat(i,")")}function Dy(n,e){var t=e.hour,r=t===void 0?0:t,i=e.minute,a=i===void 0?0:i,s=e.second,c=s===void 0?0:s;return J0(ey(ty(n,c),a),r)}function kN(n){return aw(n)}function LN(n,e){return Hn(n,"ddd",e)}function xm(n){return lu(n)}function Ll(n,e,t){var r=Ef(e||Iw());return xo(n,{locale:r,weekStartsOn:t})}function Mo(n){return VC(n)}function Sm(n){return K0(n)}function lM(n){return ow(n)}function cM(){return lu(an())}function uM(n){return YC(n)}function AN(n){return E8(n)}function RN(n){return jC(n)}function Ss(n,e){return n&&e?x8(n,e):!n&&!e}function oi(n,e){return n&&e?S8(n,e):!n&&!e}function Oy(n,e){return n&&e?C8(n,e):!n&&!e}function $t(n,e){return n&&e?T8(n,e):!n&&!e}function mu(n,e){return n&&e?M8(n,e):!n&&!e}function gu(n,e,t){var r,i=lu(e),a=YC(t);try{r=hm(n,{start:i,end:a})}catch{r=!1}return r}function dM(n,e){var t=My();t.__localeData__||(t.__localeData__={}),t.__localeData__[n]=e}function JY(n){var e=My();e.__localeId__=n}function Iw(){var n=My();return n.__localeId__}function Ef(n){if(typeof n=="string"){var e=My();return e.__localeData__?e.__localeData__[n]:void 0}else return n}function IN(n,e,t){return e(Hn(n,"EEEE",t))}function NN(n,e){return Hn(n,"EEEEEE",e)}function PN(n,e){return Hn(n,"EEE",e)}function Nw(n,e){return Hn(Fi(an(),n),"LLLL",e)}function fM(n,e){return Hn(Fi(an(),n),"LLL",e)}function BN(n,e){return Hn(lf(an(),n),"QQQ",e)}function aa(n,e){var t=e===void 0?{}:e,r=t.minDate,i=t.maxDate,a=t.excludeDates,s=t.excludeDateIntervals,c=t.includeDates,u=t.includeDateIntervals,f=t.filterDate,h=t.disabled;return h?!0:Cm(n,{minDate:r,maxDate:i})||a&&a.some(function(g){return g instanceof Date?$t(n,g):$t(n,g.date)})||s&&s.some(function(g){var v=g.start,y=g.end;return hm(n,{start:v,end:y})})||c&&!c.some(function(g){return $t(n,g)})||u&&!u.some(function(g){var v=g.start,y=g.end;return hm(n,{start:v,end:y})})||f&&!f(an(n))||!1}function Pw(n,e){var t=e===void 0?{}:e,r=t.excludeDates,i=t.excludeDateIntervals;return i&&i.length>0?i.some(function(a){var s=a.start,c=a.end;return hm(n,{start:s,end:c})}
334):r&&r.some(function(a){var s;return a instanceof Date?$t(n,a):$t(n,(s=a.date)!==null&&s!==void 0?s:new Date)})||!1}function hM(n,e){var t=e===void 0?{}:e,r=t.minDate,i=t.maxDate,a=t.excludeDates,s=t.includeDates,c=t.filterDate;return Cm(n,{minDate:r?VC(r):void 0,maxDate:i?jC(i):void 0})||a?.some(function(u){return oi(n,u instanceof Date?u:u.date)})||s&&!s.some(function(u){return oi(n,u)})||c&&!c(an(n))||!1}function ky(n,e,t,r){var i=Wt(n),a=Si(n),s=Wt(e),c=Si(e),u=Wt(r);return i===s&&i===u?a<=t&&t<=c:i<s?u===i&&a<=t||u===s&&c>=t||u<s&&u>i:!1}function HN(n,e){var t=e===void 0?{}:e,r=t.minDate,i=t.maxDate,a=t.excludeDates,s=t.includeDates;return Cm(n,{minDate:r,maxDate:i})||a&&a.some(function(c){return oi(c instanceof Date?c:c.date,n)})||s&&!s.some(function(c){return oi(c,n)})||!1}function Ly(n,e){var t=e===void 0?{}:e,r=t.minDate,i=t.maxDate,a=t.excludeDates,s=t.includeDates,c=t.filterDate,u=t.disabled;return u?!0:Cm(n,{minDate:r,maxDate:i})||a?.some(function(f){return Oy(n,f instanceof Date?f:f.date)})||s&&!s.some(function(f){return Oy(n,f)})||c&&!c(an(n))||!1}function Ay(n,e,t){if(!e||!t||!Q0(e)||!Q0(t))return!1;var r=Wt(e),i=Wt(t);return r<=n&&i>=n}function Ry(n,e){var t=e===void 0?{}:e,r=t.minDate,i=t.maxDate,a=t.excludeDates,s=t.includeDates,c=t.filterDate,u=t.disabled;if(u)return!0;var f=new Date(n,0,1);return Cm(f,{minDate:r?K0(r):void 0,maxDate:i?WC(i):void 0})||a?.some(function(h){return Ss(f,h instanceof Date?h:h.date)})||s&&!s.some(function(h){return Ss(f,h)})||c&&!c(an(f))||!1}function Iy(n,e,t,r){var i=Wt(n),a=Tl(n),s=Wt(e),c=Tl(e),u=Wt(r);return i===s&&i===u?a<=t&&t<=c:i<s?u===i&&a<=t||u===s&&c>=t||u<s&&u>i:!1}function Cm(n,e){var t,r=e===void 0?{}:e,i=r.minDate,a=r.maxDate;return(t=i&&sf(n,i)<0||a&&sf(n,a)>0)!==null&&t!==void 0?t:!1}function pM(n,e){return e.some(function(t){return Aa(t)===Aa(n)&&Ra(t)===Ra(n)&&Ml(t)===Ml(n)})}function mM(n,e){var t=e===void 0?{}:e,r=t.excludeTimes,i=t.includeTimes,a=t.filterTime;return r&&pM(n,r)||i&&!pM(n,i)||a&&!a(n)||!1}function gM(n,e){var t=e.minTime,r=e.maxTime;if(!t||!r)throw new Error("Both minTime and maxTime props required");var i=an();i=J0(i,Aa(n)),i=ey(i,Ra(n)),i=ty(i,Ml(n));var a=an();a=J0(a,Aa(t)),a=ey(a,Ra(t)),a=ty(a,Ml(t));var s=an();s=J0(s,Aa(r)),s=ey(s,Ra(r)),s=ty(s,Ml(r));var c;try{c=!hm(i,{start:a,end:s})}catch{c=!1}return c}function vM(n,e){var t=e===void 0?{}:e,r=t.minDate,i=t.includeDates,a=uu(n,1);return r&&ny(r,a)>0||i&&i.every(function(s){return ny(s,a)>0})||!1}function yM(n,e){var t=e===void 0?{}:e,r=t.maxDate,i=t.includeDates,a=Ia(n,1);return r&&ny(a,r)>0||i&&i.every(function(s){return ny(a,s)>0})||!1}function zN(n,e){var t=e===void 0?{}:e,r=t.minDate,i=t.includeDates,a=K0(n),s=UC(a,1);return r&&ry(r,s)>0||i&&i.every(function(c){return ry(c,s)>0})||!1}function FN(n,e){var t=e===void 0?{}:e,r=t.maxDate,i=t.includeDates,a=WC(n),s=lw(a,1);return r&&ry(s,r)>0||i&&i.every(function(c){return ry(s,c)>0})||!1}function bM(n,e){var t=e===void 0?{}:e,r=t.minDate,i=t.includeDates,a=cf(n,1);return r&&iy(r,a)>0||i&&i.every(function(s){return iy(s,a)>0})||!1}function VN(n,e){var t=e===void 0?{}:e,r=t.minDate,i=t.yearItemNumber,a=i===void 0?Em:i,s=Sm(cf(n,a)),c=Do(s,a).endPeriod,u=r&&Wt(r);return u&&u>c||!1}function _M(n,e){var t=e===void 0?{}:e,r=t.maxDate,i=t.includeDates,a=To(n,1);return r&&iy(a,r)>0||i&&i.every(function(s){return iy(a,s)>0})||!1}function YN(n,e){var t=e===void 0?{}:e,r=t.maxDate,i=t.yearItemNumber,a=i===void 0?Em:i,s=To(n,a),c=Do(s,a).startPeriod,u=r&&Wt(r);return u&&u<c||!1}function wM(n){var e=n.minDate,t=n.includeDates;if(t&&e){var r=t.filter(function(i){return sf(i,e)>=0});return qC(r)}else return t?qC(t):e}function EM(n){var e=n.maxDate,t=n.includeDates;if(t&&e){var r=t.filter(function(i){return sf(i,e)<=0});return $C(r)}else return t?$C(t):e}function xM(n,e){var t;n===void 0&&(n=[]),e===void 0&&(e="react-datepicker__day--highlighted");for(var r=new Map,i=0,a=n.length;i<a;i++){var s=n[i];if(So(s)){var c=Hn(s,"MM.dd.yyyy"),u=r.get(c)||[];u.includes(e)||(u.push(e),r.set(c,u))}else if(typeof s=="object"){var f=Object.keys(s),h=(t=f[0])!==null&&t!==void 0?t:"",g=s[h];if(typeof h=="string"&&Array.isArray(g))for(var v=0,y=g.length;v<y;v++){var _=g[v];if(_){var c=Hn(_,"MM.dd.yyyy"),u=r.get(c)||[];u.includes(h)||(u.push(h),r.set(c,u))}}}}return r}function jN(n,e){return n.length!==e.length?!1:n.every(function(t,r){return t===e[r]})}function WN(n,e){n===void 0&&(n=[]),e===void 0&&(e="react-datepicker__day--holidays");var t=new Map;
334return n.forEach(function(r){var i=r.date,a=r.holidayName;if(So(i)){var s=Hn(i,"MM.dd.yyyy"),c=t.get(s)||{className:"",holidayNames:[]};if(!("className"in c&&c.className===e&&jN(c.holidayNames,[a]))){c.className=e;var u=c.holidayNames;c.holidayNames=u?xs(xs([],u,!0),[a],!1):[a],t.set(s,c)}}}),t}function UN(n,e,t,r,i){for(var a=i.length,s=[],c=0;c<a;c++){var u=n,f=i[c];f&&(u=O8(u,Aa(f)),u=pm(u,Ra(f)),u=k8(u,Ml(f)));var h=pm(n,(t+1)*r);Dl(u,e)&&ys(u,h)&&f!=null&&s.push(f)}return s}function SM(n){return n<10?"0".concat(n):"".concat(n)}function Do(n,e){e===void 0&&(e=Em);var t=Math.ceil(Wt(n)/e)*e,r=t-(e-1);return{startPeriod:r,endPeriod:t}}function qN(n){var e=new Date(n.getFullYear(),n.getMonth(),n.getDate()),t=new Date(n.getFullYear(),n.getMonth(),n.getDate(),24);return Math.round((+t-+e)/36e5)}function CM(n){var e=n.getSeconds(),t=n.getMilliseconds();return dt(n.getTime()-e*1e3-t)}function TM(n,e){return CM(n).getTime()===CM(e).getTime()}function MM(n){if(!So(n))throw new Error("Invalid date");var e=new Date(n);return e.setHours(0,0,0,0),e}function Bw(n,e){if(!So(n)||!So(e))throw new Error("Invalid date received");var t=MM(n),r=MM(e);return ys(t,r)}function DM(n){return n.key===$e.Space}var $N=(function(n){Fr(e,n);function e(t){var r=n.call(this,t)||this;return r.inputRef=p.createRef(),r.onTimeChange=function(i){var a,s;r.setState({time:i});var c=r.props.date,u=c instanceof Date&&!isNaN(+c),f=u?c:new Date;if(i?.includes(":")){var h=i.split(":"),g=h[0],v=h[1];f.setHours(Number(g)),f.setMinutes(Number(v))}(s=(a=r.props).onChange)===null||s===void 0||s.call(a,f)},r.renderTimeInput=function(){var i=r.state.time,a=r.props,s=a.date,c=a.timeString,u=a.customTimeInput;return u?(0,p.cloneElement)(u,{date:s,value:i,onChange:r.onTimeChange}):p.createElement("input",{type:"time",className:"react-datepicker-time__input",placeholder:"Time",name:"time-input",ref:r.inputRef,onClick:function(){var f;(f=r.inputRef.current)===null||f===void 0||f.focus()},required:!0,value:i,onChange:function(f){r.onTimeChange(f.target.value||c)}})},r.state={time:r.props.timeString},r}return e.getDerivedStateFromProps=function(t,r){return t.timeStr
334ing!==r.time?{time:t.timeString}:null},e.prototype.render=function(){return p.createElement("div",{className:"react-datepicker__input-time-container"},p.createElement("div",{className:"react-datepicker-time__caption"},this.props.timeInputLabel),p.createElement("div",{className:"react-datepicker-time__input-container"},p.createElement("div",{className:"react-datepicker-time__input"},this.renderTimeInput())))},e})(p.Component),GN=(function(n){Fr(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.dayEl=(0,p.createRef)(),t.handleClick=function(r){!t.isDisabled()&&t.props.onClick&&t.props.onClick(r)},t.handleMouseEnter=function(r){!t.isDisabled()&&t.props.onMouseEnter&&t.props.onMouseEnter(r)},t.handleOnKeyDown=function(r){var i,a,s=r.key;s===$e.Space&&(r.preventDefault(),r.key=$e.Enter),(a=(i=t.props).handleOnKeyDown)===null||a===void 0||a.call(i,r)},t.isSameDay=function(r){return $t(t.props.day,r)},t.isKeyboardSelected=function(){var r;if(t.props.disabledKeyboardNavigation)return!1;var i=t.props.selectsMultiple?(r=t.props.selectedDates)===null||r===void 0?void 0:r.some(function(s){return t.isSameDayOrWeek(s)}):t.isSameDayOrWeek(t.props.selected),a=t.props.preSelection&&t.isDisabled(t.props.preSelection);return!i&&t.isSameDayOrWeek(t.props.preSelection)&&!a},t.isDisabled=function(r){return r===void 0&&(r=t.props.day),aa(r,{minDate:t.props.minDate,maxDate:t.props.maxDate,excludeDates:t.props.excludeDates,excludeDateIntervals:t.props.excludeDateIntervals,includeDateIntervals:t.props.includeDateIntervals,includeDates:t.props.includeDates,filterDate:t.props.filterDate,disabled:t.props.disabled})},t.isExcluded=function(){return Pw(t.props.day,{excludeDates:t.props.excludeDates,excludeDateIntervals:t.props.excludeDateIntervals})},t.isStartOfWeek=function(){return $t(t.props.day,Ll(t.props.day,t.props.locale,t.props.calendarStartDay))},t.isSameWeek=function(r){return t.props.showWeekPicker&&$t(r,Ll(t.props.day,t.props.locale,t.props.calendarStartDay))},t.isSameDayOrWeek=function(r){return t.isSameDay(r)||t.isSameWeek(r)},t.getHighLightedClass=function(){var r=t.props,i=r.day,a=r.highlightDates;if(!a)return!1;var s=Hn(i,"MM.dd.yyyy");return a.get(s)},t.getHolidaysClass=function(){var r,i=t.props,a=i.day,s=i.holidays;if(!s)return[void 0];var c=Hn(a,"MM.dd.yyyy");return s.has(c)?[(r=s.get(c))===null||r===void 0?void 0:r.className]:[void 0]},t.isInRange=function(){var r=t.props,i=r.day,a=r.startDate,s=r.endDate;return!a||!s?!1:gu(i,a,s)},t.isInSelectingRange=function(){var r,i=t.props,a=i.day,s=i.selectsStart,c=i.selectsEnd,u=i.selectsRange,f=i.selectsDisabledDaysInRange,h=i.startDate,g=i.swapRange,v=i.endDate,y=(r=t.props.selectingDate)!==null&&r!==void 0?r:t.props.preSelection;if(!(s||c||u)||!y||!f&&t.isDisabled())return!1;if(s&&v&&(ys(y,v)||mu(y,v)))return gu(a,y,v);if(c&&h&&(Dl(y,h)||mu(y,h)))return gu(a,h,y);if(u&&h&&!v){if(mu(y,h)||Dl(y,h))return gu(a,h,y);if(g&&ys(y,h))return gu(a,y,h)}return!1},t.isSelectingRangeStart=function(){var r;if(!t.isInSelectingRange())return!1;var i=t.props,a=i.day,s=i.startDate,c=i.selectsStart,u=i.swapRange,f=i.selectsRange,h=(r=t.props.selectingDate)!==null&&r!==void 0?r:t.props.preSelection;return c?$t(a,h):f&&u&&s&&h?$t(a,ys(h,s)?h:s):$t(a,s)},t.isSelectingRangeEnd=function(){var r;if(!t.isInSelectingRange())return!1;var i=t.props,a=i.day,s=i.endDate,c=i.selectsEnd,u=i.selectsRange,f=i.swapRange,h=i.startDate,g=(r=t.props.selectingDate)!==null&&r!==void 0?r:t.props.preSelection;return c?$t(a,g):u&&f&&h&&g?$t(a,ys(g,h)?h:g):u?$t(a,g):$t(a,s)},t.isRangeStart=function(){var r=t.props,i=r.day,a=r.startDate,s=r.endDate;return!a||!s?!1:$t(a,i)},t.isRangeEnd=function(){var r=t.props,i=r.day,a=r.startDate,s=r.endDate;return!a||!s?!1:$t(s,i)},t.isWeekend=function(){var r=L8(t.props.day);return r===0||r===6},t.isAfterMonth=function(){return t.props.month!==void 0&&(t.props.month+1)%12===Si(t.props.day)},t.isBeforeMonth=function(){return t.props.month!==void 0&&(Si(t.props.day)+1)%12===t.props.month},t.isCurrentDay=function(){return t.isSameDay(an())},t.isSelected=function(){var r;return t.props.selectsMultiple?(r=t.props.selectedDates)===null||r===void 0?void 0:r.some(function(i){return t.isSameDayOrWeek(i)}):t.isSameDayOrWeek(t.props.selected)},t.getClassNames=function(r){var i=t.props.dayClassName?t.props.dayClassName(r):void 0;return zr("react-datepicker__day",i,"react-datepicker__day--"+LN(t.props.day),{"react-datepicker__day--disabled":t.isDisabled(),"react-datepicker__day--excluded":t.isExcluded(),"react-datepicker__day--selected":t.isSelected(),"react-datepicker__day--keyboard-selected":t.isKeyboardSelected(),"react-datepicker__day--range-start":t.isRangeStart(),"react-datepicker__day--range-end":t.isRangeEnd(),"react-datepicker__day--in-range":t.isInRange(),"react-datepicker__day--in-selecting-range":t.isInSelectingRange(),"react-datepicker__day--selecting-range-start":t.isSelectingRangeStart(),"react-datepicker__day--selecting-range-end":t.isSelectingRangeEnd(),"react-datepicker__day--today":t.isCurrentDay(),"react-datepicker__day--weekend":t.isWeekend(),"react-datepicker__day--outside-month":t.isAfterMonth()||t.isBeforeMonth()},t.getHighLightedClass(),t.getHolidaysClass())},t.getAriaLabel=function(){var r=t.props,i=r.day,a=r.ariaLabelPrefixWhenEnabled,s=a===void 0?"Choose":a,c=r.ariaLabelPrefixWhenDisabled,u=c===void 0?"Not available":c,f=t.isDisabled()||t.isExcluded()?u:s;return"".concat(f," ").concat(Hn(i,"PPPP",t.props.locale))},t.getTitle=function(){var r=t.props,i=r.day,a=r.holidays,s=a===void 0?new Map:a,c=r.excludeDates,u=Hn(i,"MM.dd.yyyy"),f=[];return s.has(u)&&f.push.apply(f,s.get(u).holidayNames),t.isExcluded()&&f.push(c?.filter(function(h){return h instanceof Date?$t(h,i):$t(h?.date,i)}).map(function(h){if(!(h instanceof Date))return h?.message})),f.join(", ")},t.getTabIndex=function(){var r=t.props.selected,i=t.props.preSelection,a=!(t.props.showWeekPicker&&(t.props.showWeekNumber||!t.isStartOfWeek()))&&(t.isKeyboardSelected()||t.isSameDay(r)&&$t(i,r))?0:-1;return a},t.handleFocusDay=function(){var r;t.shouldFocusDay()&&((r=t.dayEl.current)===null||r===void 0||r.focus({preventScroll:!0}))},t.renderDayContents=function(){return t.props.monthShowsDuplicateDaysEnd&&t.isAfterMonth()||t.props.monthShowsDuplicateDaysStart&&t.isBeforeMonth()?null:t.props.renderDayContents?t.props.renderDayContents(ZC(t.props.day),t.props.day):ZC(t.props.day)},t.render=function(){return p.createElement("div",{ref:t.dayEl,className:t.getClassNames(t.props.day),onKeyDown:t.handleOnKeyDown,onClick:t.handleClick,onMouseEnter:t.props.usePointerEvent?void 0:t.handleMouseEnter,onPointerEnter:t.props.usePointerEvent?t.handleMouseEnter:void 0,tabIndex:t.getTabIndex(),"aria-label":t.getAriaLabel(),role:"gridcell",title:t.getTitle(),"aria-disabled":t.isDisabled(),"aria-current":t.isCurrentDay()?"date":void 0,"aria-selected":t.isSelected()||t.isInRange()},t.renderDayContents(),t.getTitle()!==""&&p.createElement("span",{className:"overlay"},t.getTitle()))},t}return e.prototype.componentDidMount=function(){this.handleFocusDay()},e.prototype.componentDidUpdate=function(){this.handleFocusDay()},e.prototype.shouldFocusDay=function(){var t=!1;return this.getTabIndex()===0&&this.isSameDay(this.props.preSelection)&&((!document.activeElement||document.activeElement===document.body)&&(t=!0),this.props.inline&&!this.props.shouldFocusDayInline&&(t=!1),this.isDayActiveElement()&&
334(t=!0),this.isDuplicateDay()&&(t=!1)),t},e.prototype.isDayActiveElement=function(){var t,r,i;return((r=(t=this.props.containerRef)===null||t===void 0?void 0:t.current)===null||r===void 0?void 0:r.contains(document.activeElement))&&((i=document.activeElement)===null||i===void 0?void 0:i.classList.contains("react-datepicker__day"))},e.prototype.isDuplicateDay=function(){return this.props.monthShowsDuplicateDaysEnd&&this.isAfterMonth()||this.props.monthShowsDuplicateDaysStart&&this.isBeforeMonth()},e})(p.Component),ZN=(function(n){Fr(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.weekNumberEl=(0,p.createRef)(),t.handleClick=function(r){t.props.onClick&&t.props.onClick(r)},t.handleOnKeyDown=function(r){var i,a,s=r.key;s===$e.Space&&(r.preventDefault(),r.key=$e.Enter),(a=(i=t.props).handleOnKeyDown)===null||a===void 0||a.call(i,r)},t.isKeyboardSelected=function(){return!t.props.disabledKeyboardNavigation&&!$t(t.props.date,t.props.selected)&&$t(t.props.date,t.props.preSelection)},t.getTabIndex=function(){return t.props.showWeekPicker&&t.props.showWeekNumber&&(t.isKeyboardSelected()||$t(t.props.date,t.props.selected)&&$t(t.props.preSelection,t.props.selected))?0:-1},t.handleFocusWeekNumber=function(r){var i=!1;t.getTabIndex()===0&&!r?.isInputFocused&&$t(t.props.date,t.props.preSelection)&&((!document.activeElement||document.activeElement===document.body)&&(i=!0),t.props.inline&&!t.props.shouldFocusDayInline&&(i=!1),t.props.containerRef&&t.props.containerRef.current&&t.props.containerRef.current.contains(document.activeElement)&&document.activeElement&&document.activeElement.classList.contains("react-datepicker__week-number")&&(i=!0)),i&&t.weekNumberEl.current&&t.weekNumberEl.current.focus({preventScroll:!0})},t}return Object.defineProperty(e,"defaultProps",{get:function(){return{ariaLabelPrefix:"week "}},enumerable:!1,configurable:!0}),e.prototype.componentDidMount=function(){this.handleFocusWeekNumber()},e.prototype.componentDidUpdate=function(t){this.handleFocusWeekNumber(t)},e.prototype.render=function(){var t=this.props,r=t.weekNumber,i=t.isWeekDisabled,a=t.ariaLabelPrefix,s=a===void 0?e.defaultProps.ariaLabelPrefix:a,c=t.onClick,u={"react-datepicker__week-number":!0,"react-datepicker__week-number--clickable":!!c&&!i,"react-datepicker__week-number--selected":!!c&&$t(this.props.date,this.props.selected)};return p.createElement("div",{ref:this.weekNumberEl,className:zr(u),"aria-label":"".concat(s," ").concat(this.props.weekNumber),onClick:this.handleClick,onKeyDown:this.handleOnKeyDown,tabIndex:this.getTabIndex(),role:"gridcell"},r)},e})(p.Component),XN=(function(n){Fr(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.isDisabled=function(r){return aa(r,{minDate:t.props.minDate,maxDate:t.props.maxDate,excludeDates:t.props.excludeDates,excludeDateIntervals:t.props.excludeDateIntervals,includeDateIntervals:t.props.includeDateIntervals,includeDates:t.props.includeDates,filterDate:t.props.filterDate})},t.handleDayClick=function(r,i){t.props.onDayClick&&t.props.onDayClick(r,i)},t.handleDayMouseEnter=function(r){t.props.onDayMouseEnter&&t.props.onDayMouseEnter(r)},t.handleWeekClick=function(r,i,a){for(var s,c,u,f=new Date(r),h=0;h<7;h++){var g=new Date(r);g.setDate(g.getDate()+h);var v=!t.isDisabled(g);if(v){f=g;break}}typeof t.props.onWeekSelect=="function"&&t.props.onWeekSelect(f,i,a),t.props.showWeekPicker&&t.handleDayClick(f,a),((s=t.props.shouldCloseOnSelect)!==null&&s!==void 0?s:e.defaultProps.shouldCloseOnSelect)&&((u=(c=t.props).setOpen)===null||u===void 0||u.call(c,!1))},t.formatWeekNumber=function(r){return t.props.formatWeekNumber?t.props.formatWeekNumber(r):kN(r)},t.isWeekDisabled=function(){for(var r=t.startOfWeek(),i=La(r,6),a=new Date(r);a<=i;){if(!t.isDisabled(a))return!1;a=La(a,1)}return!0},t.renderDays=function(){var r=t.startOfWeek(),i=[],a=t.formatWeekNumber(r);
334if(t.props.showWeekNumber){var s=t.props.onWeekSelect||t.props.showWeekPicker?t.handleWeekClick.bind(t,r,a):void 0;i.push(p.createElement(ZN,Ut({key:"W"},e.defaultProps,t.props,{weekNumber:a,isWeekDisabled:t.isWeekDisabled(),date:r,onClick:s})))}return i.concat([0,1,2,3,4,5,6].map(function(c){var u=La(r,c);return p.createElement(GN,Ut({},e.defaultProps,t.props,{ariaLabelPrefixWhenEnabled:t.props.chooseDayAriaLabelPrefix,ariaLabelPrefixWhenDisabled:t.props.disabledDayAriaLabelPrefix,key:u.valueOf(),day:u,onClick:t.handleDayClick.bind(t,u),onMouseEnter:t.handleDayMouseEnter.bind(t,u)}))}))},t.startOfWeek=function(){return Ll(t.props.day,t.props.locale,t.props.calendarStartDay)},t.isKeyboardSelected=function(){return!t.props.disabledKeyboardNavigation&&!$t(t.startOfWeek(),t.props.selected)&&$t(t.startOfWeek(),t.props.preSelection)},t}return Object.defineProperty(e,"defaultProps",{get:function(){return{shouldCloseOnSelect:!0}},enumerable:!1,configurable:!0}),e.prototype.render=function(){var t={"react-datepicker__week":!0,"react-datepicker__week--selected":$t(this.startOfWeek(),this.props.selected),"react-datepicker__week--keyboard-selected":this.isKeyboardSelected()},r=this.props.weekClassName?this.props.weekClassName(this.startOfWeek()):void 0;return p.createElement("div",{className:zr(t,r),role:"row"},this.renderDays())},e})(p.Component),Tm,QN=6,xf={TWO_COLUMNS:"two_columns",THREE_COLUMNS:"three_columns",FOUR_COLUMNS:"four_columns"},Hw=(Tm={},Tm[xf.TWO_COLUMNS]={grid:[[0,1],[2,3],[4,5],[6,7],[8,9],[10,11]],verticalNavigationOffset:2},Tm[xf.THREE_COLUMNS]={grid:[[0,1,2],[3,4,5],[6,7,8],[9,10,11]],verticalNavigationOffset:3},Tm[xf.FOUR_COLUMNS]={grid:[[0,1,2,3],[4,5,6,7],[8,9,10,11]],verticalNavigationOffset:4},Tm),Ny=1;function OM(n,e){return n?xf.FOUR_COLUMNS:e?xf.TWO_COLUMNS:xf.THREE_COLUMNS}var KN=(function(n){Fr(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.MONTH_REFS=xs([],Array(12),!0).map(function(){return(0,p.createRef)()}),t.QUARTER_REFS=xs([],Array(4),!0).map(function(){return(0,p.createRef)()}),t.isDisabled=function(r){return aa(r,{minDate:t.props.minDate,maxDate:t.props.maxDate,excludeDates:t.props.excludeDates,excludeDateIntervals:t.props.excludeDateIntervals,includeDateIntervals:t.props.includeDateIntervals,includeDates:t.props.includeDates,filterDate:t.props.filterDate,disabled:t.props.disabled})},t.isExcluded=function(r){return Pw(r,{excludeDates:t.props.excludeDates,excludeDateIntervals:t.props.excludeDateIntervals})},t.handleDayClick=function(r,i){var a,s;
334(s=(a=t.props).onDayClick)===null||s===void 0||s.call(a,r,i,t.props.orderInDisplay)},t.handleDayMouseEnter=function(r){var i,a;(a=(i=t.props).onDayMouseEnter)===null||a===void 0||a.call(i,r)},t.handleMouseLeave=function(){var r,i;(i=(r=t.props).onMouseLeave)===null||i===void 0||i.call(r)},t.isRangeStartMonth=function(r){var i=t.props,a=i.day,s=i.startDate,c=i.endDate;return!s||!c?!1:oi(Fi(a,r),s)},t.isRangeStartQuarter=function(r){var i=t.props,a=i.day,s=i.startDate,c=i.endDate;return!s||!c?!1:Oy(lf(a,r),s)},t.isRangeEndMonth=function(r){var i=t.props,a=i.day,s=i.startDate,c=i.endDate;return!s||!c?!1:oi(Fi(a,r),c)},t.isRangeEndQuarter=function(r){var i=t.props,a=i.day,s=i.startDate,c=i.endDate;return!s||!c?!1:Oy(lf(a,r),c)},t.isInSelectingRangeMonth=function(r){var i,a=t.props,s=a.day,c=a.selectsStart,u=a.selectsEnd,f=a.selectsRange,h=a.startDate,g=a.endDate,v=(i=t.props.selectingDate)!==null&&i!==void 0?i:t.props.preSelection;return!(c||u||f)||!v?!1:c&&g?ky(v,g,r,s):u&&h||f&&h&&!g?ky(h,v,r,s):!1},t.isSelectingMonthRangeStart=function(r){var i;if(!t.isInSelectingRangeMonth(r))return!1;var a=t.props,s=a.day,c=a.startDate,u=a.selectsStart,f=Fi(s,r),h=(i=t.props.selectingDate)!==null&&i!==void 0?i:t.props.preSelection;return u?oi(f,h):oi(f,c)},t.isSelectingMonthRangeEnd=function(r){var i;if(!t.isInSelectingRangeMonth(r))return!1;var a=t.props,s=a.day,c=a.endDate,u=a.selectsEnd,f=a.selectsRange,h=Fi(s,r),g=(i=t.props.selectingDate)!==null&&i!==void 0?i:t.props.preSelection;return u||f?oi(h,g):oi(h,c)},t.isInSelectingRangeQuarter=function(r){var i,a=t.props,s=a.day,c=a.selectsStart,u=a.selectsEnd,f=a.selectsRange,h=a.startDate,g=a.endDate,v=(i=t.props.selectingDate)!==null&&i!==void 0?i:t.props.preSelection;return!(c||u||f)||!v?!1:c&&g?Iy(v,g,r,s):u&&h||f&&h&&!g?Iy(h,v,r,s):!1},t.isWeekInMonth=function(r){var i=t.props.day,a=La(r,6);return oi(r,i)||oi(a,i)},t.isCurrentMonth=function(r,i){return Wt(r)===Wt(an())&&i===Si(an())},t.isCurrentQuarter=function(r,i){return Wt(r)===Wt(an())&&i===Tl(an())},t.isSelectedMonth=function(r,i,a){return Si(a)===i&&Wt(r)===Wt(a)},t.isSelectMonthInList=function(r,i,a){return a.some(function(s){return t.isSelectedMonth(r,i,s)})},t.isSelectedQuarter=function(r,i,a){return Tl(a)===i&&Wt(r)===Wt(a)},t.isSelectQuarterInList=function(r,i,a){return a.some(function(s){return t.isSelectedQuarter(r,i,s)})},t.isMonthSelected=function(){var r=t.props,i=r.day,a=r.selected,s=r.selectedDates,c=r.selectsMultiple,u=Si(i);return c?s?.some(function(f){return t.isSelectedMonth(i,u,f)}):!!a&&t.isSelectedMonth(i,u,a)},t.isQuarterSelected=function(){var r=t.props,i=r.day,a=r.selected,s=r.selectedDates,c=r.selectsMultiple,u=Tl(i);return c?s?.some(function(f){return t.isSelectedQuarter(i,u,f)}):!!a&&t.isSelectedQuarter(i,u,a)},t.renderWeeks=function(){if(!Yi(t.props.day))return[];for(var r=[],i=t.props.fixedHeight,a=0,s=!1,c=Ll(Mo(t.props.day),t.props.locale,t.props.calendarStartDay),u=function(_){return t.props.showWeekPicker?Ll(_,t.props.locale,t.props.calendarStartDay):t.props.preSelection},f=function(_){return t.props.showWeekPicker?Ll(_,t.props.locale,t.props.calendarStartDay):t.props.selected},h=t.props.selected?f(t.props.selected):void 0,g=t.props.preSelection?u(t.props.preSelection):void 0;r.push(p.createElement(XN,Ut({},t.props,{ariaLabelPrefix:t.props.weekAriaLabelPrefix,key:a,day:c,month:Si(t.props.day),onDayClick:t.handleDayClick,onDayMouseEnter:t.handleDayMouseEnter,selected:h,preSelection:g,showWeekNumber:t.props.showWeekNumbers}))),!s;){a++,c=ay(c,1);var v=i&&a>=QN,y=!i&&!t.isWeekInMonth(c);if(v||y)if(t.props.peekNextMonth)s=!0;else break}return r},t.onMonthClick=function(r,i){var a=t.isMonthDisabledForLabelDate(i),s=a.isDisabled,c=a.labelDate;s||t.handleDayClick(Mo(c),r)},t.onMonthMouseEnter=function(r){var i=t.isMonthDisabledForLabelDate(r),a=i.isDisabled,s=i.labelDate;a||t.handleDayMouseEnter(Mo(s))},t.handleMonthNavigation=function(r,i){var a,s,c,u;(s=(a=t.props).setPreSelection)===null||s===void 0||s.call(a,i),(u=(c=t.MONTH_REFS[r])===null||c===void 0?void 0:c.current)===null||u===void 0||u.focus()},t.handleKeyboardNavigation=function(r,i,a){var s,c=t.props,u=c.selected,f=c.preSelection,h=c.setPreSelection,g=c.minDate,v=c.maxDate,y=c.showFourColumnMonthYearPicker,_=c.showTwoColumnMonthYearPicker;if(f){var w=OM(y,_),x=t.getVerticalOffset(w),S=(s=Hw[w])===null||s===void 0?void 0:s.grid,T=function(O,I,P){var B,H,F=I,$=P;switch(O){case $e.ArrowRight:F=Ia(I,Ny),$=P===11?0:P+Ny;break;case $e.ArrowLeft:F=uu(I,Ny),$=P===0?11:P-Ny;break;case $e.ArrowUp:F=uu(I,x),$=!((B=S?.[0])===null||B===void 0)&&B.includes(P)?P+12-x:P-x;break;case $e.ArrowDown:F=Ia(I,x),$=!((H=S?.[S.length-1])===null||H===void 0)&&H.includes(P)?P-12+x:P+x;break}return{newCalculatedDate:F,newCalculatedMonth:$}},M=function(O,I,P){for(var B=40,H=O,F=!1,$=0,V=T(H,I,P),W=V.newCalculatedDate,ee=V.newCalculatedMonth;!F;){if($>=B){W=I,ee=P;break}if(g&&W<g){H=$e.ArrowRight;var q=T(H,W,ee);W=q.newCalculatedDate,ee=q.newCalculatedMonth}if(v&&W>v){H=$e.ArrowLeft;var q=T(H,W,ee);W=q.newCalculatedDate,ee=q.newCalculatedMonth}if(HN(W,t.props)){var q=T(H,W,ee);W=q.newCalculatedDate,ee=q.newCalculatedMonth}else F=!0;$++}return{newCalculatedDate:W,newCalculatedMonth:ee}};if(i===$e.Enter){t.isMonthDisabled(a)||(t.onMonthClick(r,a),h?.(u));return}var C=M(i,f,a),k=C.newCalculatedDate,L=C.newCalculatedMonth;switch(i){case $e.ArrowRight:case $e.ArrowLeft:case $e.ArrowUp:case $e.ArrowDown:t.handleMonthNavigation(L,k);break}}},t.getVerticalOffset=function(r){var i,a;return(a=(i=Hw[r])===null||i===void 0?void 0:i.verticalNavigationOffset)!==null&&a!==void 0?a:0},t.onMonthKeyDown=function(r,i){var a=t.props,s=a.disabledKeyboardNavigation,c=a.handleOnMonthKeyDown,u=r.key;u!==$e.Tab&&r.preventDefault(),s||t.handleKeyboardNavigation(r,u,i),c&&c(r)},t.onQuarterClick=function(r,i){var a=lf(t.props.day,i);Ly(a,t.props)||t.handleDayClick(lM(a),r)},t.onQuarterMouseEnter=function(r){var i=lf(t.props.day,r);Ly(i,t.props)||t.handleDayMouseEnter(lM(i))},t.handleQuarterNavigation=function(r,i){var a,s,c,u;t.isDisabled(i)||t.isExcluded(i)||((s=(a=t.props).setPreSelection)===null||s===void 0||s.call(a,i),(u=(c=t.QUARTER_REFS[r-1])===null||c===void 0?void 0:c.current)===null||u===void 0||u.focus())},t.onQuarterKeyDown=function(r,i){var a,s,c=r.key;if(!t.props.disabledKeyboardNavigation)switch(c){case $e.Enter:t.onQuarterClick(r,i),(s=(a=t.props).setPreSelection)===null||s===void 0||s.call(a,t.props.selected);break;case $e.ArrowRight:if(!t.props.preSelection)break;t.handleQuarterNavigation(i===4?1:i+1,lw(t.props.preSelection,1));break;case $e.ArrowLeft:if(!t.props.preSelection)break;t.handleQuarterNavigation(i===1?4:i-1,UC(t.props.preSelection,1));break}},t.isMonthDisabledForLabelDate=function(r){var i,a=t.props,s=a.day,c=a.disabled,u=a.minDate,f=a.maxDate,h=a.excludeDates,g=a.includeDates,v=Fi(s,r);return c?{isDisabled:!0,labelDate:Fi(s,r)}:{isDisabled:(i=(u||f||h||g)&&hM(v,t.props))!==null&&i!==void 0?i:!1,labelDate:v}},t.isMonthDisabled=function(r){var i=t.isMonthDisabledForLabelDate(r).isDisabled;return i},t.getMonthClassNames=function(r){var i=t.props,a=i.day,s=i.startDate,c=i.endDate,u=i.preSelection,f=i.monthClassName,h=f?f(Fi(a,r)):void 0,g=t.getSelection();return zr("react-datepicker__month-text","react-datepicker__month-".concat(r),h,{"react-datepicker__month-text--disabled":t.isMonthDisabled(r),"react-datepicker__month-text--selected":g?t.isSelectMonthInList(a,r,g):void 0,"react-datepicker__month-text--keyboard-selected":!t.props.disabledKeyboardNavigation&&u&&t.isSelectedMonth(a,r,u)&&!t.isMonthSelected()&&!t.isMonthDisabled(r),"react-datepicker__month-text--in-selecting-range":t.isInSelectingRangeMonth(r),"react-datepicker__month-text--in-range":s&&c?ky(s,c,r,a):void 0,"react-datepicker__month-text--range-start":t.isRangeStartMonth(r),"react-datepicker__month-text--range-end":t.isRangeEndMonth(r),"react-datepicker__month-text--selecting-range-start":t.isSelectingMonthRangeStart(r),"react-datepicker__month-text--selecting-range-end":t.isSelectingMonthRangeEnd(r),"react-datepicker__month-text--today":t.isCurrentMonth(a,r)})},t.getTabIndex=function(r){if(t.props.preSelection==null)return"-1";var i=Si(t.props.preSelection),a=t.isMonthDisabledForLabelDate(i).isDisabled,s=r===i&&!(a||t.props.disabledKeyboardNavigation)?"0":"-1";return s},t.getQuarterTabIndex=function(r){if(t.props.preSelection==null)return"-1";var i=Tl(t.props.preSelection),a=Ly(t.props.day,t.props),s=r===i&&!(a||t.props.disabledKeyboardNavigation)?"0":"-1";return s},t.getAriaLabel=function(r){var i=t.props,a=i.chooseDayAriaLabelPrefix,s=a===void 0?"Choose":a,c=i.disabledDayAriaLabelPrefix,u=c===void 0?"Not available":c,f=i.day,h=i.locale,g=Fi(f,r),v=t.isDisabled(g)||t.isExcluded(g)?u:s;return"".concat(v," ").concat(Hn(g,"MMMM yyyy",h))},t.getQuarterClassNames=function(r){var i=t.props,a=i.day,s=i.startDate,c=i.endDate,u=i.minDate,f=i.maxDate,h=i.excludeDates,g=i.includeDates,v=i.filterDate,y=i.preSelection,_=i.disabledKeyboardNavigation,w=i.disabled,x=(u||f||h||g||v||w)&&Ly(lf(a,r),t.props),S=t.getSelection();return zr("react-datepicker__quarter-text","react-datepicker__quarter-".concat(r),{"react-datepicker__quarter-text--disabled":x,"react-datepicker__quarter-text--selected":S?t.isSelectQuarterInList(a,r,S):void 0,"react-datepicker__quarter-text--keyboard-selected":!_&&y&&t.isSelectedQuarter(a,r,y)&&!t.isQuarterSelected()&&!x,"react-datepicker__quarter-text--in-selecting-range":t.isInSelectingRangeQuarter(r),"react-datepicker__quarter-text--in-range":s&&c?Iy(s,c,r,a):void 0,"react-datepicker__quarter-text--range-start":t.isRangeStartQuarter(r),"react-datepicker__quarter-text--range-end":t.isRangeEndQuarter(r),"react-datepicker__quarter-text--today":t.isCurrentQuarter(a,r)})}
334,t.getMonthContent=function(r){var i=t.props,a=i.showFullMonthYearPicker,s=i.renderMonthContent,c=i.locale,u=i.day,f=fM(r,c),h=Nw(r,c);return s?s(r,f,h,u):a?h:f},t.getQuarterContent=function(r){var i,a=t.props,s=a.renderQuarterContent,c=a.locale,u=BN(r,c);return(i=s?.(r,u))!==null&&i!==void 0?i:u},t.renderMonths=function(){var r,i=t.props,a=i.showTwoColumnMonthYearPicker,s=i.showFourColumnMonthYearPicker,c=i.day,u=i.selected,f=(r=Hw[OM(s,a)])===null||r===void 0?void 0:r.grid;return f?.map(function(h,g){return p.createElement("div",{className:"react-datepicker__month-wrapper",key:g},h.map(function(v,y){return p.createElement("div",{ref:t.MONTH_REFS[v],key:y,onClick:function(_){t.onMonthClick(_,v)},onKeyDown:function(_){DM(_)&&(_.preventDefault(),_.key=$e.Enter),t.onMonthKeyDown(_,v)},onMouseEnter:t.props.usePointerEvent?void 0:function(){return t.onMonthMouseEnter(v)},onPointerEnter:t.props.usePointerEvent?function(){return t.onMonthMouseEnter(v)}:void 0,tabIndex:Number(t.getTabIndex(v)),className:t.getMonthClassNames(v),"aria-disabled":t.isMonthDisabled(v),role:"option","aria-label":t.getAriaLabel(v),"aria-current":t.isCurrentMonth(c,v)?"date":void 0,"aria-selected":u?t.isSelectedMonth(c,v,u):void 0},t.getMonthContent(v))}))})},t.renderQuarters=function(){var r=t.props,i=r.day,a=r.selected,s=[1,2,3,4];return p.createElement("div",{className:"react-datepicker__quarter-wrapper"},s.map(function(c,u){return p.createElement("div",{key:u,ref:t.QUARTER_REFS[u],role:"option",onClick:function(f){t.onQuarterClick(f,c)},onKeyDown:function(f){t.onQuarterKeyDown(f,c)},onMouseEnter:t.props.usePointerEvent?void 0:function(){return t.onQuarterMouseEnter(c)},onPointerEnter:t.props.usePointerEvent?function(){return t.onQuarterMouseEnter(c)}:void 0,className:t.getQuarterClassNames(c),"aria-selected":a?t.isSelectedQuarter(i,c,a):void 0,tabIndex:Number(t.getQuarterTabIndex(c)),"aria-current":t.isCurrentQuarter(i,c)?"date":void 0},t.getQuarterContent(c))}))},t.getClassNames=function(){var r=t.props,i=r.selectingDate,a=r.selectsStart,s=r.selectsEnd,c=r.showMonthYearPicker,u=r.showQuarterYearPicker,f=r.showWeekPicker;return zr("react-datepicker__month",{"react-datepicker__month--selecting-range":i&&(a||s)},{"react-datepicker__monthPicker":c},{"react-datepicker__quarterPicker":u},{"react-datepicker__weekPicker":f})},t}return e.prototype.getSelection=function(){var t=this.props,r=t.selected,i=t.selectedDates,a=t.selectsMultiple;if(a)return i;if(r)return[r]},e.prototype.render=function(){var t=this.props,r=t.showMonthYearPicker,i=t.showQuarterYearPicker,a=t.day,s=t.ariaLabelPrefix,c=s===void 0?"Month ":s,u=c?c.trim()+" ":"",f=Yi(a)?"".concat(u).concat(Hn(a,"MMMM, yyyy",this.props.locale)):"",h=r||i;return h?p.createElement("div",{className:this.getClassNames(),onMouseLeave:this.props.usePointerEvent?void 0:this.handleMouseLeave,onPointerLeave:this.props.usePointerEvent?this.handleMouseLeave:void 0,"aria-label":f,role:"listbox"},r?this.renderMonths():this.renderQuarters()):p.createElement("div",{role:"table"},this.props.dayNamesHeader&&p.createElement("div",{role:"rowgroup"},this.props.dayNamesHeader),p.createElement("div",{className:this.getClassNames(),onMouseLeave:this.props.usePointerEvent?void 0:this.handleMouseLeave,onPointerLeave:this.props.usePointerEvent?this.handleMouseLeave:void 0,"aria-label":f,role:"rowgroup"},this.renderWeeks()))},e})(p.Component),JN=(function(n){Fr(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.monthOptionButtonsRef={},t.isSelectedMonth=function(r){return t.props.month===r},t.handleOptionKeyDown=function(r,i){var a;switch(i.key){case"Enter":i.preventDefault(),t.onChange(r);break;case"Escape":i.preventDefault(),t.props.onCancel();break;case"ArrowUp":case"ArrowDown":{i.preventDefault();var s=(r+(i.key==="ArrowUp"?-1:1)+t.props.monthNames.length)%t.props.monthNames.length;(a=t.monthOptionButtonsRef[s])===null||a===void 0||a.focus();break}}},t.renderOptions=function(){return t.monthOptionButtonsRef={},t.props.monthNames.map(function(r,i){return p.createElement("div",{ref:function(a){t.monthOptionButtonsRef[i]=a,t.isSelectedMonth(i)&&a?.focus()},role:"button",tabIndex:0,className:t.isSelectedMonth(i)?"react-datepicker__month-option react-datepicker__month-option--selected_month":"react-datepicker__month-option",key:r,onClick:t.onChange.bind(t,i),onKeyDown:t.handleOptionKeyDown.bind(t,i),"aria-selected":t.isSelectedMonth(i)?"true":void 0},t.isSelectedMonth(i)?p.createElement("span",{className:"react-datepicker__month-option--selected"},"\u2713"):"",r)})},t.onChange=function(r){return t.props.onChange(r)},t.handleClickOutside=function(){return t.props.onCancel()},t}return e.prototype.render=function(){return p.createElement(Ty,{className:"react-datepicker__month-dropdown",onClickOutside:this.handleClickOutside},this.renderOptions())},e})(p.Component),e7=(function(n){Fr(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.state={dropdownVisible:!1},t.renderSelectOptions=function(r){return r.map(function(i,a){return p.createElement("option",{key:i,value:a},i)})},t.renderSelectMode=function(r){return p.createElement("select",{value:t.props.month,className:"react-datepicker__month-select",onChange:function(i){return t.onChange(parseInt(i.target.value))}},t.renderSelectOptions(r))},t.renderReadView=function(r,i){return p.createElement("button",{key:"read",type:"button",style:{visibility:r?"visible":"hidden"},className:"react-datepicker__month-read-view",onClick:t.toggleDropdown},p.createElement("span",{className:"react-datepicker__month-read-view--down-arrow"}),p.createElement("span",{className:"react-datepicker__month-read-view--selected-month"},i[t.props.month]))},t.renderDropdown=function(r){return p.createElement(JN,Ut({key:"dropdown"},t.props,{monthNames:r,onChange:t.onChange,onCancel:t.toggleDropdown}))},t.renderScrollMode=function(r){var i=t.state.dropdownVisible,a=[t.renderReadView(!i,r)];return i&&a.unshift(t.renderDropdown(r)),a},t.onChange=function(r){t.toggleDropdown(),r!==t.props.month&&t.props.onChange(r)},t.toggleDropdown=function(){return t.setState({dropdownVisible:!t.state.dropdownVisible})},t}return e.prototype.render=function(){var t=this,r=[0,1,2,3,4,5,6,7,8,9,10,11].map(this.props.useShortMonthInDropdown?function(a){return fM(a,t.props.locale)}:function(a){return Nw(a,t.props.locale)}),i;switch(this.props.dropdownMode){case"scroll":i=this.renderScrollMode(r);break;case"select":i=this.renderSelectMode(r);break}return p.createElement("div",{className:"react-datepicker__month-dropdown-container react-datepicker__month-dropdown-container--".concat(this.props.dropdownMode)},i)},e})(p.Component);function t7(n,e){for(var t=[],r=Mo(n),i=Mo(e);!Dl(r,i);)t.push(an(r)),r=Ia(r,1);return t}var n7=(function(n){Fr(e,n);function e(t){var r=n.call(this,t)||this;return r.renderOptions=function(){return r.state.monthYearsList.map(function(i){var a=cw(i),s=Ss(r.props.date,i)&&oi(r.props.date,i);return p.createElement("div",{className:s?"react-datepicker__month-year-option--selected_month-year":"react-datepicker__month-year-option",key:a,onClick:r.onChange.bind(r,a),"aria-selected":s?"true":void 0},s?p.createElement("span",{className:"react-datepicker__month-year-option--selected"},"\u2713"):"",Hn(i,r.props.dateFormat,r.props.locale))})},r.onChange=function(i){return r.props.onChange(i)},r.handleClickOutside=function(){r.props.onCancel()},r.state={monthYearsList:t7(r.props.minDate,r.props.maxDate)},r}return e.prototype.render=function(){var t=zr({"react-datepicker__month-year-dropdown":!0,"react-datepicker__month-year-dropdown--scrollable":this.props.scrollableMonthYearDropdown});return p.createElement(Ty,{className:t,onClickOutside:this.handleClickOutside},this.renderOptions())},e})(p.Component),r7=(function(n){Fr(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.state={dropdownVisible:!1},t.renderSelectOptions=function(){for(var r=Mo(t.props.minDate),i=Mo(t.props.maxDate),a=[];!Dl(r,i);){var s=cw(r);a.push(p.createElement("option",{key:s,value:s}
334,Hn(r,t.props.dateFormat,t.props.locale))),r=Ia(r,1)}return a},t.onSelectChange=function(r){t.onChange(parseInt(r.target.value))},t.renderSelectMode=function(){return p.createElement("select",{value:cw(Mo(t.props.date)),className:"react-datepicker__month-year-select",onChange:t.onSelectChange},t.renderSelectOptions())},t.renderReadView=function(r){var i=Hn(t.props.date,t.props.dateFormat,t.props.locale);return p.createElement("div",{key:"read",style:{visibility:r?"visible":"hidden"},className:"react-datepicker__month-year-read-view",onClick:t.toggleDropdown},p.createElement("span",{className:"react-datepicker__month-year-read-view--down-arrow"}),p.createElement("span",{className:"react-datepicker__month-year-read-view--selected-month-year"},i))},t.renderDropdown=function(){return p.createElement(n7,Ut({key:"dropdown"},t.props,{onChange:t.onChange,onCancel:t.toggleDropdown}))},t.renderScrollMode=function(){var r=t.state.dropdownVisible,i=[t.renderReadView(!r)];return r&&i.unshift(t.renderDropdown()),i},t.onChange=function(r){t.toggleDropdown();var i=an(r);Ss(t.props.date,i)&&oi(t.props.date,i)||t.props.onChange(i)},t.toggleDropdown=function(){return t.setState({dropdownVisible:!t.state.dropdownVisible})},t}return e.prototype.render=function(){var t;switch(this.props.dropdownMode){case"scroll":t=this.renderScrollMode();break;case"select":t=this.renderSelectMode();break}return p.createElement("div",{className:"react-datepicker__month-year-dropdown-container react-datepicker__month-year-dropdown-container--".concat(this.props.dropdownMode)},t)},e})(p.Component),i7=(function(n){Fr(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.state={height:null},t.scrollToTheSelectedTime=function(){requestAnimationFrame(function(){var r,i,a;t.list&&(t.list.scrollTop=(a=t.centerLi&&e.calcCenterPosition(t.props.monthRef?t.props.monthRef.clientHeight-((i=(r=t.header)===null||r===void 0?void 0:r.clientHeight)!==null&&i!==void 0?i:0):t.list.clientHeight,t.centerLi))!==null&&a!==void 0?a:0)})},t.handleClick=function(r){var i,a;(t.props.minTime||t.props.maxTime)&&gM(r,t.props)||(t.props.excludeTimes||t.props.includeTimes||t.props.filterTime)&&mM(r,t.props)||(a=(i=t.props).onChange)===null||a===void 0||a.call(i,r)},t.isSelectedTime=function(r){return t.props.selected&&TM(t.props.selected,r)},t.isDisabledTime=function(r){return(t.props.minTime||t.props.maxTime)&&gM(r,t.props)||(t.props.excludeTimes||t.props.includeTimes||t.props.filterTime)&&mM(r,t.props)},t.liClasses=function(r){var i,a=["react-datepicker__time-list-item",t.props.timeClassName?t.props.timeClassName(r):void 0];return t.isSelectedTime(r)&&a.push("react-datepicker__time-list-item--selected"),t.isDisabledTime(r)&&a.push("react-datepicker__time-list-item--disabled"),t.props.injectTimes&&(Aa(r)*3600+Ra(r)*60+Ml(r))%(((i=t.props.intervals)!==null&&i!==void 0?i:e.defaultProps.intervals)*60)!==0&&a.push("react-datepicker__time-list-item--injected"),a.join(" ")},t.handleOnKeyDown=function(r,i){var a,s;r.key===$e.Space&&(r.preventDefault(),r.key=$e.Enter),(r.key===$e.ArrowUp||r.key===$e.ArrowLeft)&&r.target instanceof HTMLElement&&r.target.previousSibling&&(r.preventDefault(),r.target.previousSibling instanceof HTMLElement&&r.target.previousSibling.focus()),(r.key===$e.ArrowDown||r.key===$e.ArrowRight)&&r.target instanceof HTMLElement&&r.target.nextSibling&&(r.preventDefault(),r.target.nextSibling instanceof HTMLElement&&r.target.nextSibling.focus()),r.key===$e.Enter&&t.handleClick(i),(s=(a=t.props).handleOnKeyDown)===null||s===void 0||s.call(a,r)},t.renderTimes=function(){for(var r,i=[],a=typeof t.props.format=="string"?t.props.format:"p",s=(r=t.props.intervals)!==null&&r!==void 0?r:e.defaultProps.intervals,c=t.props.selected||t.props.openToDate||an(),u=xm(c),f=t.props.injectTimes&&t.props.injectTimes.sort(function(x,S){return x.getTime()-S.getTime()}),h=60*qN(c),g=h/s,v=0;v<g;v++){var y=pm(u,v*s);if(i.push(y),f){var _=UN(u,y,v,s,f);i=i.concat(_)}}var w=i.reduce(function(x,S){return S.getTime()<=c.getTime()?S:x},i[0]);return i.map(function(x){return p.createElement("li",{key:x.valueOf(),onClick:t.handleClick.bind(t,x),className:t.liClasses(x),ref:function(S){x===w&&(t.centerLi=S)},onKeyDown:function(S){t.handleOnKeyDown(S,x)},tabIndex:x===w?0:-1,role:"option","aria-selected":t.isSelectedTime(x
334)?"true":void 0,"aria-disabled":t.isDisabledTime(x)?"true":void 0},Hn(x,a,t.props.locale))})},t.renderTimeCaption=function(){return t.props.showTimeCaption===!1?p.createElement(p.Fragment,null):p.createElement("div",{className:"react-datepicker__header react-datepicker__header--time ".concat(t.props.showTimeSelectOnly?"react-datepicker__header--time--only":""),ref:function(r){t.header=r}},p.createElement("div",{className:"react-datepicker-time__header"},t.props.timeCaption))},t}return Object.defineProperty(e,"defaultProps",{get:function(){return{intervals:30,todayButton:null,timeCaption:"Time",showTimeCaption:!0}},enumerable:!1,configurable:!0}),e.prototype.componentDidMount=function(){this.scrollToTheSelectedTime(),this.observeDatePickerHeightChanges()},e.prototype.componentWillUnmount=function(){var t;(t=this.resizeObserver)===null||t===void 0||t.disconnect()},e.prototype.observeDatePickerHeightChanges=function(){var t=this,r=this.props.monthRef;this.updateContainerHeight(),r&&(this.resizeObserver=new ResizeObserver(function(){t.updateContainerHeight()}),this.resizeObserver.observe(r))},e.prototype.updateContainerHeight=function(){this.props.monthRef&&this.header&&this.setState({height:this.props.monthRef.clientHeight-this.header.clientHeight})},e.prototype.render=function(){var t=this,r,i=this.state.height;return p.createElement("div",{className:"react-datepicker__time-container ".concat(((r=this.props.todayButton)!==null&&r!==void 0?r:e.defaultProps.todayButton)?"react-datepicker__time-container--with-today-button":"")},this.renderTimeCaption(),p.createElement("div",{className:"react-datepicker__time"},p.createElement("div",{className:"react-datepicker__time-box"},p.createElement("ul",{className:"react-datepicker__time-list",ref:function(a){t.list=a},style:i?{height:i}:{},role:"listbox","aria-label":this.props.timeCaption},this.renderTimes()))))},e.calcCenterPosition=function(t,r){return r.offsetTop-(t/2-r.clientHeight/2)},e})(p.Component),kM=3,a7=(function(n){Fr(e,n);function e(t){var r=n.call(this,t)||this;return r.YEAR_REFS=xs([],Array(r.props.yearItemNumber),!0).map(function(){return(0,p.createRef)()}),r.isDisabled=function(i){return aa(i,{minDate:r.props.minDate,maxDate:r.props.maxDate,excludeDates:r.props.excludeDates,includeDates:r.props.includeDates,filterDate:r.props.filterDate})},r.isExcluded=function(i){return Pw(i,{excludeDates:r.props.excludeDates})},r.selectingDate=function(){var i;return(i=r.props.selectingDate)!==null&&i!==void 0?i:r.props.preSelection},r.updateFocusOnPaginate=function(i){var a=function(){var s,c;(c=(s=r.YEAR_REFS[i])===null||s===void 0?void 0:s.current)===null||c===void 0||c.focus()};window.requestAnimationFrame(a)},r.handleYearClick=function(i,a){r.props.onDayClick&&r.props.onDayClick(i,a)},r.handleYearNavigation=function(i,a){var s,c,u,f,h=r.props,g=h.date,v=h.yearItemNumber;if(!(g===void 0||v===void 0)){var y=Do(g,v).startPeriod;r.isDisabled(a)||r.isExcluded(a)||((c=(s=r.props).setPreSelection)===null||c===void 0||c.call(s,a),i-y<0?r.updateFocusOnPaginate(v-(y-i)):i-y>=v?r.updateFocusOnPaginate(Math.abs(v-(i-y))):(f=(u=r.YEAR_REFS[i-y])===null||u===void 0?void 0:u.current)===null||f===void 0||f.focus())}},r.isSameDay=function(i,a){return $t(i,a)},r.isCurrentYear=function(i){return i===Wt(an())},r.isRangeStart=function(i){return r.props.startDate&&r.props.endDate&&Ss(bs(an(),i),r.props.startDate)},r.isRangeEnd=function(i){return r.props.startDate&&r.props.endDate&&Ss(bs(an(),i),r.props.endDate)},r.isInRange=function(i){return Ay(i,r.props.startDate,r.props.endDate)},r.isInSelectingRange=function(i){var a=r.props,s=a.selectsStart,c=a.selectsEnd,u=a.selectsRange,f=a.startDate,h=a.endDate;return!(s||c||u)||!r.selectingDate()?!1:s&&h?Ay(i,r.selectingDate(),h):c&&f||u&&f&&!h?Ay(i,f,r.selectingDate()):!1},r.isSelectingRangeStart=function(i){var a;if(!r.isInSelectingRange(i))return!1;var s=r.props,c=s.startDate,u=s.selectsStart,f=bs(an(),i);return u?Ss(f,(a=r.selectingDate())!==null&&a!==void 0?a:null):Ss(f,c??null)},r.isSelectingRangeEnd=function(i){var a;if(!r.isInSelectingRange(i))return!1;var s=r.props,c=s.endDate,u=s.selectsEnd,f=s.selectsRange,h=bs(an(),i);return u||f?Ss(h,(a=r.selectingDate())!==null&&a!==void 0?a:null):Ss(h,c??null)},r.isKeyboardSelected=function(i){if(!(r.props.disabledKeyboardNavigation||r.props.date===void 0||r.props.preSelection==null)){var a=r.props,s=a.minDate,c=a.maxDate,u=a.excludeDates,f=a.includeDates,h=a.filterDate,g=a.selected,v=Sm(bs(r.props.date,i)),y=(s||c||u||f||h)&&Ry(i,r.props),_=!!g&&$t(v,Sm(g)),w=$t(v,Sm(r.props.preSelection));return!r.props.inline&&!_&&w&&!y}},r.isSelectedYear=function(i){var a=r.props,s=a.selectsMultiple,c=a.selected,u=a.selectedDates;return s?u?.some(function(f){return i===Wt(f)}):!!c&&i===Wt(c)},r.onYearClick=function(i,a){var s=r.props.date;s!==void 0&&r.handleYearClick(Sm(bs(s,a)),i)},r.onYearKeyDown=function(i,a){var s,c,u=i.key,f=r.props,h=f.date,g=f.yearItemNumber,v=f.handleOnKeyDown;if(u!==$e.Tab&&i.preventDefault(),!r.props.disabledKeyboardNavigation)switch(u){case $e.Enter:if(r.props.selected==null)break;r.onYearClick(i,a),(c=(s=r.props).setPreSelection)===null||c===void 0||c.c
334all(s,r.props.selected);break;case $e.ArrowRight:if(r.props.preSelection==null)break;r.handleYearNavigation(a+1,To(r.props.preSelection,1));break;case $e.ArrowLeft:if(r.props.preSelection==null)break;r.handleYearNavigation(a-1,cf(r.props.preSelection,1));break;case $e.ArrowUp:{if(h===void 0||g===void 0||r.props.preSelection==null)break;var y=Do(h,g).startPeriod,_=kM,w=a-_;if(w<y){var x=g%_;a>=y&&a<y+x?_=x:_+=x,w=a-_}r.handleYearNavigation(w,cf(r.props.preSelection,_));break}case $e.ArrowDown:{if(h===void 0||g===void 0||r.props.preSelection==null)break;var S=Do(h,g).endPeriod,_=kM,w=a+_;if(w>S){var x=g%_;a<=S&&a>S-x?_=x:_+=x,w=a+_}r.handleYearNavigation(w,To(r.props.preSelection,_));break}}v&&v(i)},r.getYearClassNames=function(i){var a=r.props,s=a.date,c=a.disabled,u=a.minDate,f=a.maxDate,h=a.excludeDates,g=a.includeDates,v=a.filterDate,y=a.yearClassName;return zr("react-datepicker__year-text","react-datepicker__year-".concat(i),s?y?.(bs(s,i)):void 0,{"react-datepicker__year-text--selected":r.isSelectedYear(i),"react-datepicker__year-text--disabled":(u||f||h||g||v||c)&&Ry(i,r.props),"react-datepicker__year-text--keyboard-selected":r.isKeyboardSelected(i),"react-datepicker__year-text--range-start":r.isRangeStart(i),"react-datepicker__year-text--range-end":r.isRangeEnd(i),"react-datepicker__year-text--in-range":r.isInRange(i),"react-datepicker__year-text--in-selecting-range":r.isInSelectingRange(i),"react-datepicker__year-text--selecting-range-start":r.isSelectingRangeStart(i),"react-datepicker__year-text--selecting-range-end":r.isSelectingRangeEnd(i),"react-datepicker__year-text--today":r.
334isCurrentYear(i)})},r.getYearTabIndex=function(i){if(r.props.disabledKeyboardNavigation||r.props.preSelection==null)return"-1";var a=Wt(r.props.preSelection),s=Ry(i,r.props);return i===a&&!s?"0":"-1"},r.getYearContent=function(i){return r.props.renderYearContent?r.props.renderYearContent(i):i},r}return e.prototype.render=function(){var t=this,r=[],i=this.props,a=i.date,s=i.yearItemNumber,c=i.onYearMouseEnter,u=i.onYearMouseLeave;if(a===void 0)return null;for(var f=Do(a,s),h=f.startPeriod,g=f.endPeriod,v=function(w){r.push(p.createElement("div",{ref:y.YEAR_REFS[w-h],onClick:function(x){t.onYearClick(x,w)},onKeyDown:function(x){DM(x)&&(x.preventDefault(),x.key=$e.Enter),t.onYearKeyDown(x,w)},tabIndex:Number(y.getYearTabIndex(w)),className:y.getYearClassNames(w),onMouseEnter:y.props.usePointerEvent?void 0:function(x){return c(x,w)},onPointerEnter:y.props.usePointerEvent?function(x){return c(x,w)}:void 0,onMouseLeave:y.props.usePointerEvent?void 0:function(x){return u(x,w)},onPointerLeave:y.props.usePointerEvent?function(x){return u(x,w)}:void 0,key:w,"aria-current":y.isCurrentYear(w)?"date":void 0},y.getYearContent(w)))},y=this,_=h;_<=g;_++)v(_);return p.createElement("div",{className:"react-datepicker__year"},p.createElement("div",{className:"react-datepicker__year-wrapper",onMouseLeave:this.props.usePointerEvent?void 0:this.props.clearSelectingDate,onPointerLeave:this.props.usePointerEvent?this.props.clearSelectingDate:void 0},r))},e})(p.Component);function s7(n,e,t,r){for(var i=[],a=0;a<2*e+1;a++){var s=n+e-a,c=!0;t&&(c=Wt(t)<=s),r&&c&&(c=Wt(r)>=s),c&&i.push(s)}return i}var o7=(function(n){Fr(e,n);function e(t){var r=n.call(this,t)||this;r.yearOptionButtonsRef={},r.handleOptionKeyDown=function(c,u){var f;switch(u.key){case"Enter":u.preventDefault(),r.onChange(c);break;case"Escape":u.preventDefault(),r.props.onCancel();break;case"ArrowUp":case"ArrowDown":{u.preventDefault();var h=c+(u.key==="ArrowUp"?1:-1);r.yearOptionButtonsRef[h]&&((f=r.yearOptionButtonsRef[h])===null||f===void 0||f.focus());break}}},r.renderOptions=function(){r.yearOptionButtonsRef={};var c=r.props.year,u=r.state.yearsList.map(function(g){return p.createElement("div",{ref:function(v){r.yearOptionButtonsRef[g]=v,g===c&&v?.focus()},role:"button",tabIndex:0,className:c===g?"react-datepicker__year-option react-datepicker__year-option--selected_year":"react-datepicker__year-option",key:g,onClick:r.onChange.bind(r,g),onKeyDown:r.handleOptionKeyDown.bind(r,g),"aria-selected":c===g?"true":void 0},c===g?p.createElement("span",{className:"react-datepicker__year-option--selected"},"\u2713"):"",g)}),f=r.props.minDate?Wt(r.props.minDate):null,h=r.props.maxDate?Wt(r.props.maxDate):null;return(!h||!r.state.yearsList.find(function(g){return g===h}))&&u.unshift(p.createElement("div",{className:"react-datepicker__year-option",key:"upcoming",onClick:r.incrementYears},p.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-upcoming"}))),(!f||!r.state.yearsList.find(function(g){return g===f}))&&u.push(p.createElement("div",{className:"react-datepicker__year-option",key:"previous",onClick:r.decrementYears},p.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-previous"}))),u},r.onChange=function(c){r.props.onChange(c)},r.handleClickOutside=function(){r.props.onCancel()},r.shiftYears=function(c){var u=r.state.yearsList.map(function(f){return f+c});r.setState({yearsList:u})},r.incrementYears=function(){return r.shiftYears(1)},r.decrementYears=function(){return r.shiftYears(-1)};var i=t.yearDropdownItemNumber,a=t.scrollableYearDropdown,s=i||(a?10:5);return r.state={yearsList:s7(r.props.year,s,r.props.minDate,r.props.maxDate)},r.dropdownRef=(0,p.createRef)(),r}return e.prototype.componentDidMount=function(){var t=this.dropdownRef.current;if(t){var r=t.children?Array.from(t.children):null,i=r?r.find(function(a){return a.ariaSelected}):null;t.scrollTop=i&&i instanceof HTMLElement?i.offsetTop+(i.clientHeight-t.clientHeight)/2:(t.scrollHeight-t.clientHeight)/2}},e.prototype.render=function(){var t=zr({"react-datepicker__year-dropdown":!0,"react-datepicker__year-dropdown--scrollable":this.props.scrollableYearDropdown});return p.createElement(Ty,{className:t,containerRef:this.dropdownRef,onClickOutside:this.handleClickOutside},this.renderOptions())},e})(p.Component),l7=(function(n){Fr(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.state={dropdownVisible:!1},t.renderSelectOptions=function(){for(var r=t.props.minDate?Wt(t.props.minDate):1900,i=t.props.maxDate?Wt(t.props.maxDate):2100,a=[],s=r;s<=i;s++)a.push(p.createElement("option",{key:s,value:s},s));return a},t.onSelectChange=function(r){t.onChange(parseInt(r.target.value))},t.renderSelectMode=function(){return p.createElement("select",{value:t.props.year,className:"react-datepicker__year-select",onChange:t.onSelectChange},t.renderSelectOptions())},t.renderReadView=function(r){return p.createElement("button",{key:"read",type:"button",style:{visibility:r?"visible":"hidden"},className:"react-datepicker__year-read-view",onClick:t.toggleDropdown},p.createElement("span",{className:"react-datepicker__year-read-view--down-arrow"}),p.createElement("span",{className:"react-datepicker__year-read-view--selected-year"},t.props.year))},t.renderDropdown=function(){return p.createElement(o7,Ut({key:"dropdown"},t.props,{onChange:t.onChange,onCancel:t.toggleDropdown}))},t.renderScrollMode=function(){var r=t.state.dropdownVisible,i=[t.renderReadView(!r)];return r&&i.unshift(t.renderDropdown()),i},t.onChange=function(r){t.toggleDropdown(),r!==t.props.year&&t.props.onChange(r)},t.toggleDropdown=function(r){t.setState({dropdownVisible:!t.state.dropdownVisible},function(){t.props.adjustDateOnChange&&t.handleYearChange(t.props.date,r)}
334)},t.handleYearChange=function(r,i){var a;(a=t.onSelect)===null||a===void 0||a.call(t,r,i),t.setOpen()},t.onSelect=function(r,i){var a,s;(s=(a=t.props).onSelect)===null||s===void 0||s.call(a,r,i)},t.setOpen=function(){var r,i;(i=(r=t.props).setOpen)===null||i===void 0||i.call(r,!0)},t}return e.prototype.render=function(){var t;switch(this.props.dropdownMode){case"scroll":t=this.renderScrollMode();break;case"select":t=this.renderSelectMode();break}return p.createElement("div",{className:"react-datepicker__year-dropdown-container react-datepicker__year-dropdown-container--".concat(this.props.dropdownMode)},t)},e})(p.Component),c7=["react-datepicker__year-select","react-datepicker__month-select","react-datepicker__month-year-select"],LM="react-datepicker-ignore-onclickoutside",u7=function(n){var e=(n.className||"").split(/\s+/);return c7.some(function(t){return e.indexOf(t)>=0})},d7=(function(n){Fr(e,n);function e(t){var r=n.call(this,t)||this;return r.monthContainer=void 0,r.handleClickOutside=function(i){r.props.onClickOutside(i)},r.setClickOutsideRef=function(){return r.containerRef.current},r.handleDropdownFocus=function(i){var a,s;u7(i.target)&&((s=(a=r.props).onDropdownFocus)===null||s===void 0||s.call(a,i))},r.getDateInView=function(){var i=r.props,a=i.preSelection,s=i.selected,c=i.openToDate,u=wM(r.props),f=EM(r.props),h=an(),g=c||s||a;return g||(u&&ys(h,u)?u:f&&Dl(h,f)?f:h)},r.increaseMonth=function(){r.setState(function(i){var a=i.date;return{date:Ia(a,1)}},function(){return r.handleMonthChange(r.state.date)})},r.decreaseMonth=function(){r.setState(function(i){var a=i.date;return{date:uu(a,1)}},function(){return r.handleMonthChange(r.state.date)})},r.handleDayClick=function(i,a,s){r.props.onSelect(i,a,s),r.props.setPreSelection&&r.props.setPreSelection(i)},r.handleDayMouseEnter=function(i){r.setState({selectingDate:i}),r.props.onDayMouseEnter&&r.props.onDayMouseEnter(i)},r.handleMonthMouseLeave=function(){r.setState({selectingDate:void 0}),r.props.onMonthMouseLeave&&r.props.onMonthMouseLeave()},r.handleYearMouseEnter=function(i,a){r.setState({selectingDate:bs(an(),a)}),r.props.onYearMouseEnter&&r.props.onYearMouseEnter(i,a)},r.handleYearMouseLeave=function(i,a){r.props.onYearMouseLeave&&r.props.onYearMouseLeave(i,a)},r.handleYearChange=function(i){var a,s,c,u;(s=(a=r.props).onYearChange)===null||s===void 0||s.call(a,i),r.setState({isRenderAriaLiveMessage:!0}),r.props.adjustDateOnChange&&(r.props.onSelect(i),(u=(c=r.props).setOpen)===null||u===void 0||u.call(c,!0)),r.props.setPreSelection&&r.props.setPreSelection(i)},r.getEnabledPreSelectionDateForMonth=function(i){if(!aa(i,r.props))return i;for(var a=Mo(i),s=RN(i),c=A8(s,a),u=null,f=0;f<=c;f++){var h=La(a,f);if(!aa(h,r.props)){u=h;break}}return u},r.handleMonthChange=function(i){var a,s,c,u=(a=r.getEnabledPreSelectionDateForMonth(i))!==null&&a!==void 0?a:i;r.handleCustomMonthChange(u),r.props.adjustDateOnChange&&(r.props.onSelect(u),(c=(s=r.props).setOpen)===null||c===void 0||c.call(s,!0)),r.props.setPreSelection&&r.props.setPreSelection(u)},r.handleCustomMonthChange=function(i){var a,s;(s=(a=r.props).onMonthChange)===null||s===void 0||s.call(a,i),r.setState({isRenderAriaLiveMessage:!0})},r.handleMonthYearChange=function(i){r.handleYearChange(i),r.handleMonthChange(i)},r.changeYear=function(i){r.setState(function(a){var s=a.date;return{date:bs(s,Number(i))}},function(){return r.handleYearChange(r.state.date)})},r.changeMonth=function(i){r.setState(function(a){var s=a.date;return{date:Fi(s,Number(i))}},function(){return r.handleMonthChange(r.state.date)})},r.changeMonthYear=function(i){r.setState(function(a){var s=a.date;return{date:bs(Fi(s,Si(i)),Wt(i))}},function(){return r.handleMonthYearChange(r.state.date)})},r.header=function(i){if(i===void 0&&(i=r.state.date),!Yi(i))return[];var a=r.props.disabled,s=Ll(i,r.props.locale,r.props.calendarStartDay),c=[];return r.props.showWeekNumbers&&c.push(p.createElement("div",{key:"W",className:"react-datepicker__day-name ".concat(a?"react-datepicker__day-name--disabled":""),role:"columnheader"},p.createElement("span",{className:"react-datepicker__sr-only"},"Week number"),p.createElement("span",{"aria-hidden":"true"},r.props.weekLabel||"#"))),c.concat([0,1,2,3,4,5,6].map(function(u){var f=La(s,u),h=r.formatWeekday(f,r.props.locale),g=r.props.weekDayClassName?r.props.weekDayClassName(f):void 0;return p.createElement("div",{key:u,role:"columnheader",className:zr("react-datepicker__day-name",g,a?"react-datepicker__day-name--disabled":"")},p.createElement("span",{className:"react-datepicker__sr-only"},Hn(f,"EEEE",r.props.locale)),p.createElement("span",{"aria-hidden":"true"},h))}))},r.formatWeekday=function(i,a){return r.props.formatWeekDay?IN(i,r.props.formatWeekDay,a):r.props.useWeekdaysShort?PN(i,a):NN(i,a)},r.decreaseYear=function(){r.setState(function(i){var a,s=i.date;return{date:cf(s,r.props.showYearPicker?(a=r.props.yearItemNumber)!==null&&a!==void 0?a:e.defaultProps.yearItemNumber:1)}},function(){return r.handleYearChange(r.state.date)})},r.clearSelectingDate=function(){r.setState({selectingDate:void 0})},r.renderPreviousButton=function(){var i,a,s;if(!r.props.renderCustomHeader){var c=(i=r.props.monthsShown)!==null&&i!==void 0?i:e.defaultProps.monthsShown,u=r.props.showPreviousMonths?c-1:0,f=(a=r.props.monthSelectedIn)!==null&&a!==void 0?a:u,h=uu(r.state.date,f),g;switch(!0){case r.props.disabled:g=!0;break;case r.props.showMonthYearPicker:g=bM(r.state.date,r.props);break;case r.props.showYearPicker:g=VN(r.state.date,r.props);break;case r.props.showQuarterYearPicker:g=zN(r.state.date,r.props);break;default:g=vM(h,r.props);break}if(!(!((s=r.props.forceShowMonthNavigation)!==null&&s!==void 0?s:e.defaultProps.forceShowMonthNavigation)&&!r.props.showDisabledMonthNavigation&&g||r.props.showTimeSelectOnly)){var v=["react-datepicker__navigation-icon","react-datepicker__navigation-icon--previous"],y=["react-datepicker__navigation","react-datepicker__navigation--previous"],_=r.decreaseMonth;(r.props.showMonthYearPicker||r.props.showQuarterYearPicker||r.props.showYearPicker)&&(_=r.decreaseYear),g&&r.props.showDisabledMonthNavigation&&(y.push("react-datepicker__navigation--previous--disabled"),_=void 0);var w=r.props.showMonthYearPicker||r.props.showQuarterYearPicker||r.props.showYearPicker,x=r.props,S=x.previousMonthButtonLabel,T=S===void 0?e.defaultProps.previousMonthButtonLabel:S,M=x.previousYearButtonLabel,C=M===void 0?e.defaultProps.previousYearButtonLabel:M,k=r.props,L=k.previousMonthAriaLabel,O=L===void 0?typeof T=="string"?T:"Previous Month":L,I=k.previousYearAriaLabel,P=I===void 0?typeof C=="string"?C:"Previous Year":I;return p.createElement("button",{type:"button",className:y.join(" "),onClick:_,onKeyDown:r.props.handleOnKeyDown,"aria-label":w?P:O},p.createElement("span",{className:v.join(" ")},w?C:T))}}},r.increaseYear=function(){r.setState(function(i){var a,s=i.date;return{date:To(s,r.props.showYearPicker?(a=r.props.yearItemNumber)!==null&&a!==void 0?a:e.defaultProps.yearItemNumber:1)}},function(){return r.handleYearChange(r.state.date)})},r.renderNextButton=function(){var i;if(!r.props.renderCustomHeader){var a;switch(!0){case r.props.disabled:a=!0;break;case r.props.showMonthYearPicker:a=_M(r.state.date,r.props);break;case r.props.showYearPicker:a=YN(r.state.date,r.props);break;case r.props.showQuarterYearPicker:a=FN(r.state.date,r.props);break;default:a=yM(r.state.date,r.props);break}if(!(!((i=r.props.forceShowMonthNavigation)!==null&&i!==void 0?i:e.defaultProps.forceShowMonthNavigation)&&!r.props.showDisabledMonthNavigation&&a||r.props.showTimeSelectOnly)){var s=["react-datepicker__navigation","react-datepicker__navigation--next"],c=["react-datepicker__navigation-icon","react-datepicker__navigation-icon--next"];r.props.showTimeSelect&&s.push("react-datepicker__navigation--next--with-time"),r.props.todayButton&&s.push("react-datepicker__navigation--next--with-today-button");var u=r.increaseMonth;(r.props.showMonthYearPicker||r.props.showQuarterYearPicker||r.props.showYearPicker)&&(u=r.increaseYear),a&&r.props.showDisabledMonthNavigation&&(s.push("react-datepicker__navigation--next--disabled"),u=void 0);var f=r.props.showMonthYearPicker||r.props.showQuarterYearPicker||r.props.showYearPicker,h=r.props,g=h.nextMonthButtonLabel,v=g===void 0?e.defaultProps.nextMonthButtonLabel:g,y=h.nextYearButtonLabel,_=y===void 0?e.defaultProps.nextYearButtonLabel:y,w=r.props,x=w.nextMonthAriaLabel,S=x===void 0?typeof v=="string"?v:"Next Month":x,T=w.nextYearAriaLabel,M=T===void 0?typeof _=="string"?_:"Next Year":T;return p.createElement("button",{type:"button",className:s.join(" "),onClick:u,onKeyDown:r.props.handleOnKeyDown,"aria-label":f?M:S},p.createElement("span",{className:c.join(" ")},f?_:v))}}},r.renderCurrentMonth=function(i){i===void 0&&(i=r.state.date);var a=["react-datepicker__current-month"];return r.props.showYearDropdown&&a.push("react-datepicker__current-month--hasYearDropdown"),r.props.showMonthDropdown&&a.push("react-datepicker__current-month--hasMonthDropdown"),r.props.showMonthYearDropdown&&a.push("react-datepicker__current-month--hasMonthYearDropdown"),p.createElement("h2",{className:a.join(" ")},Yi(i)?Hn(i,r.props.dateFormat,r.props.locale):"")},r.renderYearDropdown=function(i){if(i===void 0&&(i=!1),!(!r.props.showYearDropdown||i))return p.createElement(l7,Ut({},e.defaultProps,r.props,{date:r.state.date,onChange:r.changeYear,year:Wt(r.state.date)}))},r.renderMonthDropdown=function(i){if(i===void 0&&(i=!1),!(!r.props.showMonthDropdown||i))return p.createElement(e7,Ut({},e.defaultProps,r.props,{month:Si(r.state.date),onChange:r.changeMonth}))},r.renderMonthYearDropdown=function(i){if(i===void 0&&(i=!1),!(!r.props.showMonthYearDropdown||i))return p.createElement(r7,Ut({},e.defaultProps,r.props,{date:r.state.date,onChange:r.changeMonthYear}))},r.handleTodayButtonClick=function(i){r.props.onSelect(cM(),i),r.props.setPreSelection&&r.props.setPreSelection(cM())},r.renderTodayButton=function(){if(!(!r.props.todayButton||r.props.showTimeSelectOnly))return p.createElement("div",{className:"react-datepicker__today-button",onClick:r.handleTodayButtonClick},r.props.todayButton)},r.renderDayNamesHeader=function(i){return p.createElement("div",{className:"react-datepicker__day-names",role:"row"},r.header(i))},r.renderDefaultHeader=function(i){var a=i.monthDate,s=i.i;return p.createElement("div",{className:"react-datepicker__header ".concat(r.props.showTimeSelect?"react-datepicker__header--has-time-select":"")},r.renderCurrentMonth(a),p.createElement("div",{className:"react-datepicker__header__dropdown react-datepicker__header__dropdown--".concat(r.props.dropdownMode),onFocus:r.handleDropdownFocus},r.renderMonthDropdown(s!==0),r.renderMonthYearDropdown(s!==0),r.renderYearDropdown(s!==0)))},r.renderCustomHeader=function(i){var a,s,c=i.monthDate,u=i.i;if(r.props.showTimeSelect&&!r.state.monthContainer||r.props.showTimeSelectOnly)return null;var f=r.props,h=f.showYearPicker,g=f.yearItemNumber,v;if(h){var y=Do(c,g),_=y.startPeriod,w=y.endPeriod;v={startYear:_,endYear:w}}var x=vM(r.state.date,r.props),S=yM(r.state.date,r.props),T=bM(r.state.date,r.props),M=_M(r.state.date,r.props);return p.createElement("div",{className:"react-datepicker__header react-datepicker__header--custom",onFocus:r.props.onDropdownFocus},(s=(a=r.props).renderCustomHeader)===null||s===void 0?void 0:s.call(a,Ut(Ut(Ut({},r.state),h&&{visibleYearsRange:v}),{customHeaderCount:u,monthDate:c,changeMonth:r.changeMonth,changeYear:r.changeYear,decreaseMonth:r.decreaseMonth,increaseMonth:r.increaseMonth,decreaseYear:r.decreaseYear,increaseYear:r.increaseYear,prevMonthButtonDisabled:x,nextMonthButtonDisabled:S,prevYearButtonDisabled:T,nextYearButtonDisabled:M})))},r.renderYearHeader=function(i){var a=i.monthDate,s=r.props,c=s.showYearPicker,u=s.yearItemNumber,f=u===void 0?e.defaultProps.yearItemNumber:u,h=Do(a,f),g=h.startPeriod,v=h.endPeriod;return p.createElement("div",{className:"react-datepicker__header react-datepicker-year-header"},c?"".concat(g," - ").concat(v):Wt(a))},r.renderHeader=function(i){var a=i.monthDate,s=i.i,c=s===void 0?0:s,u={monthDate:a,i:c};switch(!0){case r.props.renderCustomHeader!==void 0:return r.renderCustomHeader(u);case(r.props.showMonthYearPicker||r.props.showQuarterYearPicker||r.props.showYearPicker):return r.renderYearHeader(u);default:return r.renderDefaultHeader(u)}},r.renderMonths=function(){var i,a;if(!(r.props.showTimeSelectOnly||r.props.showYearPicker)){for(var s=[],c=(i=r.props.monthsShown)!==null&&i!==void 0?i:e.defaultProps.monthsShown,u=r.props.showPreviousMonths?c-1:0,f=r.props.showMonthYearPicker||r.props.showQuarterYearPicker?To(r.state.date,u):uu(r.state.date,u),h=(a=r.props.monthSelectedIn)!==null&&a!==void 0?a:u,g=0;g<c;++g){var v=g-h+u,y=r.props.showMonthYearPicker||r.props.showQuarterYearPicker?To(f,v):Ia(f,v),_="month-".concat(g),w=g<c-1,x=g>0;s.push(p.createElement("div",{key:_,ref:function(S){r.monthContainer=S??void 0},className:"react-datepicker__month-container"},r.renderHeader({monthDate:y,i:g}),p.createElement(KN,Ut({},e.defaultProps,r.props,{containerRef:r.containerRef,ariaLabelPrefix:r.props.monthAriaLabelPrefix,day:y,onDayCl
334ick:r.handleDayClick,handleOnKeyDown:r.props.handleOnDayKeyDown,handleOnMonthKeyDown:r.props.handleOnKeyDown,onDayMouseEnter:r.handleDayMouseEnter,onMouseLeave:r.handleMonthMouseLeave,orderInDisplay:g,selectingDate:r.state.selectingDate,monthShowsDuplicateDaysEnd:w,monthShowsDuplicateDaysStart:x,dayNamesHeader:r.renderDayNamesHeader(y)}))))}return s}},r.renderYears=function(){if(!r.props.showTimeSelectOnly&&r.props.showYearPicker)return p.createElement("div",{className:"react-datepicker__year--container"},r.renderHeader({monthDate:r.state.date}),p.createElement(a7,Ut({},e.defaultProps,r.props,{selectingDate:r.state.selectingDate,date:r.state.date,onDayClick:r.handleDayClick,clearSelectingDate:r.clearSelectingDate,onYearMouseEnter:r.handleYearMouseEnter,onYearMouseLeave:r.handleYearMouseLeave})))},r.renderTimeSection=function(){if(r.props.showTimeSelect&&(r.state.monthContainer||r.props.showTimeSelectOnly))return p.createElement(i7,Ut({},e.defaultProps,r.props,{onChange:r.props.onTimeChange,format:r.props.timeFormat,intervals:r.props.timeIntervals,monthRef:r.state.monthContainer}))},r.renderInputTimeSection=function(){var i=r.props.selected?new Date(r.props.selected):void 0,a=i&&Yi(i)&&!!r.props.selected,s=a?"".concat(SM(i.getHours()),":").concat(SM(i.getMinutes())):"";if(r.props.showTimeInput)return p.createElement($N,Ut({},e.defaultProps,r.props,{date:i,timeString:s,onChange:r.props.onTimeChange}))},r.renderAriaLiveRegion=function(){var i;if(!Yi(r.state.date))return p.createElement("span",{role:"alert","aria-live":"polite",className:"react-datepicker__aria-live"});var a=Do(r.state.date,(i=r.props.yearItemNumber)!==null&&i!==void 0?i:e.defaultProps.yearItemNumber),s=a.startPeriod,c=a.endPeriod,u;return r.props.showYearPicker?u="".concat(s," - ").concat(c):r.props.showMonthYearPicker||r.props.showQuarterYearPicker?u=Wt(r.state.date):u="".concat(Nw(Si(r.state.date),r.props.locale)," ").concat(Wt(r.state.date)),p.createElement("span",{role:"alert","aria-live":"polite",className:"react-datepicker__aria-live"},r.state.isRenderAriaLiveMessage&&u)},r.renderChildren=function(){if(r.props.children)return p.createElement("div",{className:"react-datepicker__children-container"},r.props.children)},r.containerRef=(0,p.createRef)(),r.state={date:r.getDateInView(),selectingDate:void 0,monthContainer:void 0,isRenderAriaLiveMessage:!1},r}return Object.defineProperty(e,"defaultProps",{get:function(){return{monthsShown:1,forceShowMonthNavigation:!1,outsideClickIgnoreClass:LM,timeCaption:"Time",previousYearButtonLabel:"Previous Year",nextYearButtonLabel:"Next Year",previousMonthButtonLabel:"Previous Month",nextMonthButtonLabel:"Next Month",yearItemNumber:Em}},enumerable:!1,configurable:!0}),e.prototype.componentDidMount=function(){var t=this;this.props.showTimeSelect&&(this.assignMonthContainer=(function(){t.setState({monthContainer:t.monthContainer})})())},e.prototype.componentDidUpdate=function(t){var r=this;if(this.props.preSelection&&Yi(this.props.preSelection)&&(!$t(this.props.preSelection,t.preSelection)||this.props.monthSelectedIn!==t.monthSelectedIn)){var i=!oi(this.state.date,this.props.preSelection);this.setState({date:this.props.preSelection},function(){return i&&r.handleCustomMonthChange(r.state.date)})}else this.props.openToDate&&!$t(this.props.openToDate,t.openToDate)&&this.setState({date:this.props.openToDate})},e.prototype.render=function(){var t=this.props.container||TN;return p.createElement(Ty,{onClickOutside:this.handleClickOutside,style:{display:"contents"},ignoreClass:this.props.outsideClickIgnoreClass},p.createElement("div",{style:{display:"contents"},ref:this.containerRef},p.createElement(t,{className:zr("react-datepicker",this.props.className,{"react-datepicker--time-only":this.props.showTimeSelectOnly}),showTime:this.props.showTimeSelect||this.props.showTimeInput,showTimeSelectOnly:this.props.showTimeSelectOnly,inline:this.props.inline},this.renderAriaLiveRegion(),this.renderPreviousButton(),this.renderNextButton(),this.renderMonths(),this.renderYears(),this.renderTodayButton(),this.renderTimeSection(),this.renderInputTimeSection(),this.renderChildren())))},e})(p.Component),f7=function(n){var e=n.icon,t=n.className,r=t===void 0?"":t,i=n.onClick,a="react-datepicker__calendar-icon";if(typeof e=="string")return p.createElement("i",{className:"".concat(a," ").concat(e," ").concat(r),"aria-hidden":"true",onClick:i});if(p.isValidElement(e)){var s=e;return p.cloneElement(s,{className:"".concat(s.props.className||""," ").concat(a," ").concat(r),onClick:function(c){typeof s.props.onClick=="function"&&s.props.onClick(c),typeof i=="function"&&i(c)}})}return p.createElement("svg",{className:"".concat(a," ").concat(r),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",onClick:i},p.createElement("path",{d:"M96 32V64H48C21.5 64 0 85.5 0 112v48H448V112c0-26.5-21.5-48-48-48H352V32c0-17.7-14.3-32-32-32s-32 14.3-32 32V64H160V32c0-17.7-14.3-32-32-32S96 14.3 9
3346 32zM448 192H0V464c0 26.5 21.5 48 48 48H400c26.5 0 48-21.5 48-48V192z"}))},AM=(function(n){Fr(e,n);function e(t){var r=n.call(this,t)||this;return r.portalRoot=null,r.el=document.createElement("div"),r}return e.prototype.componentDidMount=function(){this.portalRoot=(this.props.portalHost||document).getElementById(this.props.portalId),this.portalRoot||(this.portalRoot=document.createElement("div"),this.portalRoot.setAttribute("id",this.props.portalId),(this.props.portalHost||document.body).appendChild(this.portalRoot)),this.portalRoot.appendChild(this.el)},e.prototype.componentWillUnmount=function(){this.portalRoot&&this.portalRoot.removeChild(this.el)},e.prototype.render=function(){return lT.createPortal(this.props.children,this.el)},e})(p.Component),h7="[tabindex], a, button, input, select, textarea",p7=function(n){return(n instanceof HTMLAnchorElement||!n.disabled)&&n.tabIndex!==-1},RM=(function(n){Fr(e,n);function e(t){var r=n.call(this,t)||this;return r.getTabChildren=function(){var i;return Array.prototype.slice.call((i=r.tabLoopRef.current)===null||i===void 0?void 0:i.querySelectorAll(h7),1,-1).filter(p7)},r.handleFocusStart=function(){var i=r.getTabChildren();i&&i.length>1&&i[i.length-1].focus()},r.handleFocusEnd=function(){var i=r.getTabChildren();i&&i.length>1&&i[0].focus()},r.tabLoopRef=(0,p.createRef)(),r}return e.prototype.render=function(){var t;return((t=this.props.enableTabLoop)!==null&&t!==void 0?t:e.defaultProps.enableTabLoop)?p.createElement("div",{className:"react-datepicker__tab-loop",ref:this.tabLoopRef},p.createElement("div",{className:"react-datepicker__tab-loop__start",tabIndex:0,onFocus:this.handleFocusStart}),this.props.children,p.createElement("div",{className:"react-datepicker__tab-loop__end",tabIndex:0,onFocus:this.handleFocusEnd})):this.props.children},e.defaultProps={enableTabLoop:!0},e})(p.Component);function m7(n){function e(t){var r,i=typeof t.hidePopper=="boolean"?t.hidePopper:!0,a=(0,p.useRef)(null),s=_N(Ut({open:!i,whileElementsMounted:BI,placement:t.popperPlacement,middleware:xs([qI({padding:15}),UI(10),$I({element:a})],(r=t.popperModifiers)!==null&&r!==void 0?r:[],!0)},t.popperProps)),c=Ut(Ut({},t),{hidePopper:i,popperProps:Ut(Ut({},s),{arrowRef:a})});return p.createElement(n,Ut({},c))}return e.displayName="withFloating(".concat(n.displayName||n.name||"Component",")"),e}var g7=function(n){var e=n.className,t=n.wrapperClassName,r=n.hidePopper,i=r===void 0?!0:r,a=n.popperComponent,s=n.targetComponent,c=n.enableTabLoop,u=n.popperOnKeyDown,f=n.portalId,h=n.portalHost,g=n.popperProps,v=n.showArrow,y=void 0;if(!i){var _=zr("react-datepicker-popper",e);y=p.createElement(RM,{enableTabLoop:c},p.createElement("div",{ref:g.refs.setFloating,style:g.floatingStyles,className:_,"data-placement":g.placement,onKeyDown:u},a,v&&p.createElement(tN,{ref:g.arrowRef,context:g.context,fill:"currentColor",strokeWidth:1,height:8,width:16,style:{transform:"translateY(-1px)"},className:"react-datepicker__triangle"})))}n.popperContainer&&(y=(0,p.createElement)(n.popperContainer,{},y)),f&&!i&&(y=p.createElement(AM,{portalId:f,portalHost:h},y));var w=zr("react-datepicker-wrapper",t);return p.createElement(p.Fragment,null,p.createElement("div",{ref:g.refs.setReference,className:w},s),y)},v7=m7(g7);function y7(n,e){return n&&e?Si(n)!==Si(e)||Wt(n)!==Wt(e):n!==e}var zw="Date input not valid.",Py=(function(n){Fr(e,n);function e(t){var r=n.call(this,t)||this;return r.calendar=null,r.input=null,r.getPreSelection=function(){return r.props.openToDate?r.props.openToDate:r.props.selectsEnd&&r.props.startDate?r.props.startDate:r.props.selectsStart&&r.props.endDate?r.props.endDate:an()},r.modifyHolidays=function(){var i;return(i=r.props.holidays)===null||i===void 0?void 0:i.reduce(function(a,s){var c=new Date(s.date);return Yi(c)?xs(xs([],a,!0),[Ut(Ut({},s),{date:c})],!1):a},[])},r.calcInitialState=function(){var i,a=r.getPreSelection(),s=wM(r.props),c=EM(r.props),u=s&&ys(a,xm(s))?s:c&&Dl(a,uM(c))?c:a;return{open:r.props.startOpen||!1,preventFocus:!1,inputValue:null,preSelection:(i=r.props.selectsRange?r.props.startDate:r.props.selected)!==null&&i!==void 0?i:u,highlightDates:xM(r.props.highlightDates),focused:!1,shouldFocusDayInline:!1,isRenderAriaLiveMessage:!1,wasHidden:!1}},r.getInputValue=function(){var i,a=r.props,s=a.locale,c=a.startDate,u=a.endDate,f=a.rangeSeparator,h=a.selected,g=a.selectedDates,v=a.selectsMultiple,y=a.selectsRange,_=a.value,w=(i=r.props.dateFormat)!==null&&i!==void 0?i:e.defaultProps.dateFormat,x=r.state.inputValue;
334return typeof _=="string"?_:typeof x=="string"?x:y?DN(c,u,{dateFormat:w,locale:s,rangeSeparator:f}):v?ON(g??[],{dateFormat:w,locale:s}):ji(h,{dateFormat:w,locale:s})},r.resetHiddenStatus=function(){r.setState(Ut(Ut({},r.state),{wasHidden:!1}))},r.setHiddenStatus=function(){r.setState(Ut(Ut({},r.state),{wasHidden:!0}))},r.setHiddenStateOnVisibilityHidden=function(){document.visibilityState==="hidden"&&r.setHiddenStatus()},r.clearPreventFocusTimeout=function(){r.preventFocusTimeout&&clearTimeout(r.preventFocusTimeout)},r.setFocus=function(){var i,a;(a=(i=r.input)===null||i===void 0?void 0:i.focus)===null||a===void 0||a.call(i,{preventScroll:!0})},r.setBlur=function(){var i,a;(a=(i=r.input)===null||i===void 0?void 0:i.blur)===null||a===void 0||a.call(i),r.cancelFocusInput()},r.deferBlur=function(){requestAnimationFrame(function(){r.setBlur()})},r.setOpen=function(i,a){a===void 0&&(a=!1),r.setState({open:i,preSelection:i&&r.state.open?r.state.preSelection:r.calcInitialState().preSelection,lastPreSelectChange:Fw},function(){i||r.setState(function(s){return{focused:a?s.focused:!1}},function(){!a&&r.deferBlur(),r.setState({inputValue:null})})})},r.inputOk=function(){return So(r.state.preSelection)},r.isCalendarOpen=function(){return r.props.open===void 0?r.state.open&&!r.props.disabled&&!r.props.readOnly:r.props.open},r.handleFocus=function(i){var a,s,c=r.state.wasHidden,u=c?r.state.open:!0;c&&r.resetHiddenStatus(),r.state.preventFocus||((s=(a=r.props).onFocus)===null||s===void 0||s.call(a,i),u&&!r.props.preventOpenOnFocus&&!r.props.readOnly&&r.setOpen(!0)),r.setState({focused:!0})},r.sendFocusBackToInput=function(){r.preventFocusTimeout&&r.clearPreventFocusTimeout(),r.setState({preventFocus:!0},function(){r.preventFocusTimeout=setTimeout(function(){r.setFocus(),r.setState({preventFocus:!1})})})}
334,r.cancelFocusInput=function(){clearTimeout(r.inputFocusTimeout),r.inputFocusTimeout=void 0},r.deferFocusInput=function(){r.cancelFocusInput(),r.inputFocusTimeout=setTimeout(function(){return r.setFocus()},1)},r.handleDropdownFocus=function(){r.cancelFocusInput()},r.resetInputValue=function(){r.setState(Ut(Ut({},r.state),{inputValue:null}))},r.handleBlur=function(i){var a,s;(!r.state.open||r.props.withPortal||r.props.showTimeInput)&&((s=(a=r.props).onBlur)===null||s===void 0||s.call(a,i)),r.resetInputValue(),r.state.open&&r.props.open===!1&&r.setOpen(!1),r.setState({focused:!1})},r.handleCalendarClickOutside=function(i){var a,s;r.props.inline||r.setOpen(!1),(s=(a=r.props).onClickOutside)===null||s===void 0||s.call(a,i),r.props.withPortal&&i.preventDefault()},r.handleChange=function(){for(var i,a,s,c,u,f=[],h=0;h<arguments.length;h++)f[h]=arguments[h];var g=f[0];if(!(r.props.onChangeRaw&&(r.props.onChangeRaw.apply(r,f),!g||typeof g.isDefaultPrevented!="function"||g.isDefaultPrevented()))){r.setState({inputValue:g?.target instanceof HTMLInputElement?g.target.value:null,lastPreSelectChange:b7});var v=r.props,y=v.selectsRange,_=v.startDate,w=v.endDate,x=(i=r.props.dateFormat)!==null&&i!==void 0?i:e.defaultProps.dateFormat,S=(a=r.props.strictParsing)!==null&&a!==void 0?a:e.defaultProps.strictParsing,T=g?.target instanceof HTMLInputElement?g.target.value:"";if(y){var M=r.props.rangeSeparator,C=M.trim(),k=T.split(x.includes(C)?M:C,2).map(function($){return $.trim()}),L=k[0],O=k[1],I=wf(L??"",x,r.props.locale,S),P=I?wf(O??"",x,r.props.locale,S):null,B=_?.getTime()!==I?.getTime(),H=w?.getTime()!==P?.getTime();if(!B&&!H||I&&aa(I,r.props)||P&&aa(P,r.props))return;(c=(s=r.props).onChange)===null||c===void 0||c.call(s,[I,P],g)}else{var F=wf(T,x,r.props.locale,S,(u=r.props.selected)!==null&&u!==void 0?u:void 0);(F||!T)&&r.setSelected(F,g,!0)}}},r.handleSelect=function(i,a,s){var c;if(!r.props.readOnly){var u=r.props,f=u.selectsRange,h=u.startDate,g=u.endDate,v=u.locale,y=u.swapRange,_=(c=r.props.dateFormat)!==null&&c!==void 0?c:e.defaultProps.dateFormat,w=!f||h&&!g&&(y||!Bw(i,h));if(r.props.shouldCloseOnSelect&&!r.props.showTimeSelect&&w&&r.sendFocusBackToInput(),r.props.onChangeRaw){var x=ji(i,{dateFormat:_,locale:v});r.props.onChangeRaw(a,{date:i,formattedDate:x})}r.setSelected(i,a,!1,s),r.props.showDateSelect&&r.setState({isRenderAriaLiveMessage:!0}),!r.props.shouldCloseOnSelect||r.props.showTimeSelect?r.setPreSelection(i):w&&r.setOpen(!1)}},r.setSelected=function(i,a,s,c){var u,f,h=i;if(r.props.showYearPicker){if(h!==null&&Ry(Wt(h),r.props))return}else if(r.props.showMonthYearPicker){if(h!==null&&hM(h,r.props))return}else if(h!==null&&aa(h,r.props))return;var g=r.props,v=g.onChange,y=g.selectsRange,_=g.startDate,w=g.endDate,x=g.selectsMultiple,S=g.selectedDates,T=g.minTime,M=g.swapRange;if(!mu(r.props.selected,h)||r.props.allowSameDay||y||x)if(h!==null&&(r.props.selected&&(!s||!r.props.showTimeSelect&&!r.props.showTimeSelectOnly&&!r.props.showTimeInput)&&(h=Dy(h,{hour:Aa(r.props.selected),minute:Ra(r.props.selected),second:Ml(r.props.selected)})),!s&&(r.props.showTimeSelect||r.props.showTimeSelectOnly)&&T&&(h=Dy(h,{hour:T.getHours(),minute:T.getMinutes(),second:T.getSeconds()})),r.props.inline||r.setState({preSelection:h}),r.props.focusSelectedMonth||r.setState({monthSelectedIn:c})),y){var C=!_&&!w,k=_&&!w,L=!_&&!!w,O=_&&w;C?v?.([h,null],a):k?h===null?v?.([null,null],a):Bw(h,_)?v?.(M?[h,_]:[h,null],a):v?.([_,h],a):L&&(h&&Bw(h,w)?v?.([h,w],a):v?.([h,null],a)),O&&v?.([h,null],a)}else if(x){if(h!==null)if(!S?.length)v?.([h],a);else{var I=S.some(function(B){return $t(B,h)});if(I){var P=S.filter(function(B){return!$t(B,h)});v?.(P,a)}else v?.(xs(xs([],S,!0),[h],!1),a)}}else v?.(h,a);s||((f=(u=r.props).onSelect)===null||f===void 0||f.call(u,h,a),r.setState({inputValue:null}))},r.setPreSelection=function(i){if(!r.props.readOnly){var a=So(r.props.minDate),s=So(r.props.maxDate),c=!0;if(i){var u=xm(i);if(a&&s)c=gu(i,r.props.minDate,r.props.maxDate);else if(a){var f=xm(r.props.minDate);c=Dl(i,f)||mu(u,f)}else if(s){var h=uM(r.props.maxDate);c=ys(i,h)||mu(u,h)}}c&&r.setState({preSelection:i})}},r.toggleCalendar=function(){r.setOpen(!r.state.open)},r.handleTimeChange=function(i){var a,s;if(!(r.props.selectsRange||r.props.selectsMultiple)){var c=r.props.selected?r.props.selected:r.getPreSelection(),u=r.props.selected?i:Dy(c,{hour:Aa(i),minute:Ra(i)});r.setState({preSelection:u}),(s=(a=r.props).onChange)===null||s===void 0||s.call(a,u),r.props.shouldCloseOnSelect&&!r.props.showTimeInput&&(r.sendFocusBackToInput(),r.setOpen(!1)),r.props.showTimeInput&&r.setOpen(!0),(r.props.showTimeSelectOnly||r.props.showTimeSelect)&&r.setState({isRenderAriaLiveMessage:!0}),r.setState({inputValue:null})}},r.onInputClick=function(){var i,a;!r.props.disabled&&!r.props.readOnly&&r.setOpen(!0),(a=(i=r.props).onInputClick)===null||a===void 0||a.call(i)},r.handleTimeOnlyArrowKey=function(i){var a,s,c,u,f=r.props.selected||r.state.preSelection||an(),h=(a=r.props.timeIntervals)!==null&&a!==void 0?a:30,g=(s=r.props.dateFormat)!==null&&s!==void 0?s:e.defaultProps.dateFormat,v=Array.isArray(g)?g[0]:g,y=xm(f),_=Aa(f)*60+Ra(f),w=1440-h,x;if(i===$e.ArrowUp){var S=Math.max(0,_-h);x=pm(y,S)}else{var S=Math.min(w,_+h);x=pm(y,S)}var T=Hn(x,v||e.defaultProps.dateFormat,r.props.locale);if(r.setState({preSelection:x,inputValue:T}),!(r.props.selectsRange||r.props.selectsMultiple)){var M=r.props.selected?r.props.selected:r.getPreSelection(),C=r.props.selected?x:Dy(M,{hour:Aa(x),minute:Ra(x)});(u=(c=r.props).onChange)===null||u===void 0||u.call(c,C),(r.props.showTimeSelectOnly||r.props.showTimeSelect)&&r.setState({isRenderAriaLiveMessage:!0}),requestAnimationFrame(function(){r.scrollToTimeOption(x)})}},r.handleTimeOnlyEnterKey=function(i){var a,s,c,u,f=i.target,h=f.value,g=(a=r.props.dateFormat)!==null&&a!==void 0?a:e.defaultProps.dateFormat,v=r.props.timeFormat||"p",y=r.state.preSelection||r.props.selected||an(),_=wf(h,g,r.props.locale,(s=r.props.strictParsing)!==null&&s!==void 0?s:!1,y),w=y;if(_&&Yi(_))w=_;else{var x=((c=r.calendar)===null||c===void 0?void 0:c.containerRef.current)instanceof Element&&r.calendar.containerRef.current.querySelector(".react-datepicker__time-list-item[tabindex='0']");
334if(x instanceof HTMLElement){var S=(u=x.textContent)===null||u===void 0?void 0:u.trim();if(S){var T=wf(S,v,r.props.locale,!1,y);T&&Yi(T)&&(w=T)}}}r.handleTimeChange(w),r.setOpen(!1),r.sendFocusBackToInput()},r.scrollToTimeOption=function(i){var a,s;if(!((a=r.calendar)===null||a===void 0)&&a.containerRef.current){for(var c=r.calendar.containerRef.current,u=Array.from(c.querySelectorAll(".react-datepicker__time-list-item")),f=null,h=1/0,g=r.props.timeFormat||"p",v=0,y=u;v<y.length;v++){var _=y[v],w=(s=_.textContent)===null||s===void 0?void 0:s.trim();if(w){var x=wf(w,g,r.props.locale,!1,i);if(x&&Yi(x)){if(TM(x,i)){f=_;break}var S=Math.abs(x.getTime()-i.getTime());S<h&&(h=S,f=_)}}}f&&(u.forEach(function(T){T.setAttribute("tabindex","-1")}),f.setAttribute("tabindex","0"),f.scrollIntoView({behavior:"smooth",block:"center"}))}},r.onInputKeyDown=function(i){var a,s,c,u,f,h;(s=(a=r.props).onKeyDown)===null||s===void 0||s.call(a,i);var g=i.key;if(!r.state.open&&!r.props.inline&&!r.props.preventOpenOnFocus){(g===$e.ArrowDown||g===$e.ArrowUp||g===$e.Enter)&&((c=r.onInputClick)===null||c===void 0||c.call(r));return}if(r.state.open&&r.props.showTimeSelectOnly){if(g===$e.ArrowDown||g===$e.ArrowUp){i.preventDefault(),r.handleTimeOnlyArrowKey(g);return}if(g===$e.Enter){i.preventDefault(),r.handleTimeOnlyEnterKey(i);return}}if(r.state.open){if(g===$e.ArrowDown||g===$e.ArrowUp){i.preventDefault();var v=r.props.showTimeSelectOnly?".react-datepicker__time-list-item[tabindex='0']":r.props.showWeekPicker&&r.props.showWeekNumbers?'.react-datepicker__week-number[tabindex="0"]':r.props.showFullMonthYearPicker||r.props.showMonthYearPicker?'.react-datepicker__month-text[tabindex="0"]':'.react-datepicker__day[tabindex="0"]',y=((u=r.calendar)===null||u===void 0?void 0:u.containerRef.current)instanceof Element&&r.calendar.containerRef.current.querySelector(v);y instanceof HTMLElement&&y.focus({preventScroll:!0});return}var _=an(r.state.preSelection);g===$e.Enter?(i.preventDefault(),i.target.blur(),r.inputOk()&&r.state.lastPreSelectChange===Fw?(r.handleSelect(_,i),!r.props.shouldCloseOnSelect&&r.setPreSelection(_)):r.setOpen(!1)):g===$e.Escape?(i.preventDefault(),i.target.blur(),r.sendFocusBackToInput(),r.setOpen(!1)):g===$e.Tab&&r.setOpen(!1),r.inputOk()||(h=(f=r.props).onInputError)===null||h===void 0||h.call(f,{code:1,msg:zw})}},r.onPortalKeyDown=function(i){var a=i.key;a===$e.Escape&&(i.preventDefault(),r.setState({preventFocus:!0},function(){r.setOpen(!1),setTimeout(function(){r.setFocus(),r.setState({preventFocus:!1})})}))},r.onDayKeyDown=function(i){var a,s,c,u,f,h,g=r.props,v=g.minDate,y=g.maxDate,_=g.disabledKeyboardNavigation,w=g.showWeekPicker,x=g.shouldCloseOnSelect,S=g.locale,T=g.calendarStartDay,M=g.adjustDateOnChange,C=g.inline;if((s=(a=r.props).onKeyDown)===null||s===void 0||s.call(a,i),!_){var k=i.key,L=i.shiftKey,O=an(r.state.preSelection),I=function(H,F){var $=F;switch(H){case $e.ArrowRight:$=w?ay(F,1):La(F,1);break;case $e.ArrowLeft:$=w?QC(F,1):R8(F,1);break;case $e.ArrowUp:$=QC(F,1);break;case $e.ArrowDown:$=ay(F,1);break;case $e.PageUp:$=L?cf(F,1):uu(F,1);break;case $e.PageDown:$=L?To(F,1):Ia(F,1);break;case $e.Home:$=Ll(F,S,T);break;case $e.End:$=AN(F);break}return $},P=function(H,F){for(var $=40,V=H,W=!1,ee=0,q=I(H,F);!W;){if(ee>=$){q=F;break}v&&q<v&&(V=$e.ArrowRight,q=aa(v,r.props)?I(V,q):v),y&&q>y&&(V=$e.ArrowLeft,q=aa(y,r.props)?I(V,q):y),aa(q,r.props)?((V===$e.PageUp||V===$e.Home)&&(V=$e.ArrowRight),(V===$e.PageDown||V===$e.End)&&(V=$e.ArrowLeft),q=I(V,q)):W=!0,ee++}return q};if(k===$e.Enter){i.preventDefault(),r.handleSelect(O,i),!x&&r.setPreSelection(O);return}else if(k===$e.Escape){i.preventDefault(),r.setOpen(!1),r.inputOk()||(u=(c=r.props).onInputError)===null||u===void 0||u.call(c,{code:1,msg:zw});return}var B=null;switch(k){case $e.ArrowLeft:case $e.ArrowRight:case $e.ArrowUp:case $e.ArrowDown:case $e.PageUp:case $e.PageDown:case $e.Home:case $e.End:B=P(k,O);break}if(!B){(h=(f=r.props).onInputError)===null||h===void 0||h.call(f,{code:1,msg:zw});return}i.preventDefault(),r.setState({lastPreSelectChange:Fw}),M&&r.setSelected(B),r.setPreSelection(B),C&&r.setState({shouldFocusDayInline:!0})}},r.onPopperKeyDown=function(i){var a=i.key;a===$e.Escape&&(i.preventDefault(),r.sendFocusBackToInput(),r.setOpen(!1))},r.onClearClick=function(i){i&&i.preventDefault&&i.preventDefault(),r.sendFocusBackToInput();var a=r.props,s=a.selectsRange,c=a.onChange;c?.(s?[null,null]:null,i),r.setState({inputValue:null})},r.clear=function(){r.onClearClick()},r.onScroll=function(i){typeof r.props.closeOnScroll=="boolean"&&r.props.closeOnScroll?(i.target===document||i.target===document.documentElement||i.target===document.body)&&r.setOpen(!1):typeof r.props.closeOnScroll=="function"&&r.props.closeOnScroll(i)&&r.setOpen(!1)},r.renderCalendar=function(){var i,a;return!r.props.inline&&!r.isCalendarOpen()?null:p.createElement(d7,Ut({showMonthYearDropdown:void 0,ref:function(s){r.calendar=s}},r.props,r.state,{setOpen:r.setOpen,dateFormat:(i=r.props.dateFormatCalendar)!==null&&i!==void 0?i:e.defaultProps.dateFormatCalendar,onSelect:r.handleSelect,onClickOutside:r.handleCalendarClickOutside,holidays:WN(r.modifyHolidays()),outsideClickIgnoreClass:r.props.outsideClickIgnoreClass,onDropdownFocus:r.handleDropdownFocus,onTimeChange:r.handleTimeChange,className:r.props.calendarClassName,container:r.props.calendarContainer,handleOnKeyDown:r.props.onKeyDown,handleOnDayKeyDown:r.onDayKeyDown,setPreSelection:r.setPreSelection,dropdownMode:(a=r.props.dropdownMode)!==null&&a!==void 0?a:e.defaultProps.dropdownMode}),r.props.children)},r.renderAriaLiveRegion=function(){var i,a=r.props.locale,s=(i=r.props.dateFormat)!==null&&i!==void 0?i:e.defaultProps.dateFormat,c=r.props.showTimeInput||r.props.showTimeSelect,u=c?"PPPPp":"PPPP",f;return r.props.selectsRange?f="Selected start date: ".concat(ji(r.props.startDate,{dateFormat:u,locale:a}),". ").concat(r.props.endDate?"End date: "+ji(r.props.endDate,{dateFormat:u,locale:a}):""):r.props.showTimeSelectOnly?f="Selected time: ".concat(ji(r.props.selected,{dateFormat:s,locale:a})):r.props.showYearPicker?f="Selected year: ".concat(ji(r.props.selected,{dateFormat:"yyyy",locale:a})):r.props.showMonthYearPicker?f="Selected month: ".concat(ji(r.props.selected,{dateFormat:"MMMM yyyy",locale:a})):r.props.showQuarterYearPicker?f="Selected quarter: ".concat(ji(r.props.selected,{dateFormat:"yyyy, QQQ",locale:a})):f="Selected date: ".concat(ji(r.props.selected,{dateFormat:u,locale:a})),p.createElement("span",{role:"alert","aria-live":"polite",className:"react-datepicker__aria-l
334ive"},f)},r.renderDateInput=function(){var i,a,s,c,u,f,h=zr(r.props.className,(i={},i[r.props.outsideClickIgnoreClass||e.defaultProps.outsideClickIgnoreClass]=r.state.open,i)),g=r.props.customInput||p.createElement("input",{type:"text"}),v=r.props.customInputRef||"ref",y={},_=(s=r.props["aria-describedby"])!==null&&s!==void 0?s:r.props.ariaDescribedBy,w=(c=r.props["aria-invalid"])!==null&&c!==void 0?c:r.props.ariaInvalid,x=(u=r.props["aria-labelledby"])!==null&&u!==void 0?u:r.props.ariaLabelledBy,S=(f=r.props["aria-required"])!==null&&f!==void 0?f:r.props.ariaRequired;return _!=null&&(y["aria-describedby"]=_),w!=null&&(y["aria-invalid"]=w),x!=null&&(y["aria-labelledby"]=x),S!=null&&(y["aria-required"]=S),(0,p.cloneElement)(g,Ut((a={},a[v]=function(T){r.input=T},a.value=r.getInputValue(),a.onBlur=r.handleBlur,a.onChange=r.handleChange,a.onClick=r.onInputClick,a.onFocus=r.handleFocus,a.onKeyDown=r.onInputKeyDown,a.id=r.props.id,a.name=r.props.name,a.form=r.props.form,a.autoFocus=r.props.autoFocus,a.placeholder=r.props.placeholderText,a.disabled=r.props.disabled,a.autoComplete=r.props.autoComplete,a.className=zr(g.props.className,h),a.title=r.props.title,a.readOnly=r.props.readOnly,a.required=r.props.required,a.tabIndex=r.props.tabIndex,a),y))},r.renderClearButton=function(){var i=r.props,a=i.isClearable,s=i.disabled,c=i.selected,u=i.startDate,f=i.endDate,h=i.clearButtonTitle,g=i.clearButtonClassName,v=g===void 0?"":g,y=i.ariaLabelClose,_=y===void 0?"Close":y,w=i.selectedDates,x=i.readOnly;return a&&!x&&(c!=null||u!=null||f!=null||w?.length)?p.createElement("button",{type:"button",className:zr("react-datepicker__close-icon",v,{"react-datepicker__close-icon--disabled":s}),disabled:s,"aria-label":_,onClick:r.onClearClick,title:h,tabIndex:-1}):null},r.state=r.calcInitialState(),r.preventFocusTimeout=void 0,r}return Object.defineProperty(e,"defaultProps",{get:function(){return{allowSameDay:!1,dateFormat:"MM/dd/yyyy",dateFormatCalendar:"LLLL yyyy",disabled:!1,disabledKeyboardNavigation:!1,dropdownMode:"scroll",preventOpenOnFocus:!1,monthsShown:1,outsideClickIgnoreClass:LM,readOnly:!1,rangeSeparator:oM,withPortal:!1,selectsDisabledDaysInRange:!1,shouldCloseOnSelect:!0,showTimeSelect:!1,showTimeInput:!1,showPreviousMonths:!1,showMonthYearPicker:!1,showFullMonthYearPicker:!1,showTwoColumnMonthYearPicker:!1,showFourColumnMonthYearPicker:!1,showYearPicker:!1,showQuarterYearPicker:!1,showWeekPicker:!1,strictParsing:!1,swapRange:!1,timeIntervals:30,timeCaption:"Time",previousMonthAriaLabel:"Previous Month",previousMonthButtonLabel:"Previous Month",nextMonthAriaLabel:"Next Month",nextMonthButtonLabel:"Next Month",previousYearAriaLabel:"Previous Year",previousYearButtonLabel:"Previous Year",nextYearAriaLabel:"Next Year",nextYearButtonLabel:"Next Year",timeInputLabel:"Time",enableTabLoop:!0,yearItemNumber:Em,focusSelectedMonth:!1,showPopperArrow:!0,excludeScrollbar:!0,customTimeInput:null,calendarStartDay:void 0,toggleCalendarOnIconClick:!1,usePointerEvent:!1}},enumerable:!1,configurable:!0}),e.prototype.componentDidMount=function(){window.addEventListener("scroll",this.onScroll,!0),document.addEventListener("visibilitychange",this.setHiddenStateOnVisibilityHidden)},e.prototype.componentDidUpdate=function(t,r){var i,a,s,c;t.inline&&y7(t.selected,this.props.selected)&&this.setPreSelection(this.props.selected),this.state.monthSelectedIn!==void 0&&t.monthsShown!==this.props.monthsShown&&this.setState({monthSelectedIn:0}),this.props.selectsRange&&this.state.monthSelectedIn!==0&&this.setState({monthSelectedIn:0}),t.highlightDates!==this.props.highlightDates&&this.setState({highlightDates:xM(this.props.highlightDates)}),!r.focused&&!mu(t.selected,this.props.selected)&&this.setState({inputValue:null}),r.open!==this.state.open&&(r.open===!1&&this.state.open===!0&&((a=(i=this.props).onCalendarOpen)===null||a===void 0||a.call(i)),r.open===!0&&this.state.open===!1&&((c=(s=this.props).onCalendarClose)===null||c===void 0||c.call(s)))},e.prototype.componentWillUnmount=function(){this.clearPreventFocusTimeout(),window.removeEventListener("scroll",this.onScroll,!0),document.removeEventListener("visibilitychange",this.setHiddenStateOnVisibilityHidden)},e.prototype.renderInputContainer=function(){var t=this.props,r=t.showIcon,i=t.icon,a=t.calendarIconClassname,s=t.calendarIconClassName,c=t.toggleCalendarOnIconClick,u=this.state.open;return a&&console.warn("calendarIconClassname props is deprecated. should use calendarIconClassName props."),p.createElement("div",{className:"react-datepicker__input-container".concat(r?" react-datepicker__view-calendar-icon":"")},r&&p.createElement(f7,Ut({icon:i,className:zr(s,!s&&a,u&&"react-datepicker-ignore-onclickoutside")},c?{onClick:this.toggleCalendar}:null)),this.state.isRenderAriaLiveMessage&&this.renderAriaLiveRegion(),this.renderDateInput(),this.renderClearButton())}
vendor: 15,071 bytes, line 334
334,e.prototype.render=function(){var t=this.renderCalendar();if(this.props.inline)return t;if(this.props.withPortal){var r=this.state.open?p.createElement(RM,{enableTabLoop:this.props.enableTabLoop},p.createElement("div",{className:"react-datepicker__portal",tabIndex:-1,onKeyDown:this.onPortalKeyDown},t)):null;return this.state.open&&this.props.portalId&&(r=p.createElement(AM,Ut({portalId:this.props.portalId},this.props),r)),p.createElement("div",null,this.renderInputContainer(),r)}return p.createElement(v7,Ut({},this.props,{className:this.props.popperClassName,hidePopper:!this.isCalendarOpen(),targetComponent:this.renderInputContainer(),popperComponent:t,popperOnKeyDown:this.onPopperKeyDown,showArrow:this.props.showPopperArrow}))},e})(p.Component),b7="input",Fw="navigate",_7={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},w7=function(e,t,r){var i,a=_7[e];return typeof a=="string"?i=a:t===1?i=a.one:i=a.other.replace("{{count}}",t.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+i:i+" ago":i};const E7=w7;function Sf(n){return function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.width?String(e.width):n.defaultWidth,r=n.formats[t]||n.formats[n.defaultWidth];return r}}var x7={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},S7={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},C7={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},T7={date:Sf({formats:x7,defaultWidth:"full"}),time:Sf({formats:S7,defaultWidth:"full"}),dateTime:Sf({formats:C7,defaultWidth:"full"})};const M7=T7;var D7={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},O7=function(e,t,r,i){return D7[e]};const k7=O7;function Cs(n){return function(e,t){var r=t!=null&&t.context?String(t.context):"standalone",i;if(r==="formatting"&&n.formattingValues){var a=n.defaultFormattingWidth||n.defaultWidth,s=t!=null&&t.width?String(t.width):a;i=n.formattingValues[s]||n.formattingValues[a]}else{var c=n.defaultWidth,u=t!=null&&t.width?String(t.width):n.defaultWidth;i=n.values[u]||n.values[c]}var f=n.argumentCallback?n.argumentCallback(e):e;return i[f]}}var L7={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},A7={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},R7={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},I7={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},N7={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},P7={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},B7=function(e,t){var r=Number(e),i=r%100;if(i>20||i<10)switch(i%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},H7={ordinalNumber:B7,era:Cs({values:L7,defaultWidth:"wide"}),quarter:Cs({values:A7,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:Cs({values:R7,defaultWidth:"wide"}),day:Cs({values:I7,defaultWidth:"wide"}),dayPeriod:Cs({values:N7,defaultWidth:"wide",formattingValues:P7,defaultFormattingWidth:"wide"})};const z7=H7;function Ts(n){return function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.width,i=r&&n.matchPatterns[r]||n.matchPatterns[n.defaultMatchWidth],a=e.match(i);if(!a)return null;var s=a[0],c=r&&n.parsePatterns[r]||n.parsePatterns[n.defaultParseWidth],u=Array.isArray(c)?V7(c,function(g){return g.test(s)}):F7(c,function(g){return g.test(s)}),f;f=n.valueCallback?n.valueCallback(u):u,f=t.valueCallback?t.valueCallback(f):f;var h=e.slice(s.length);return{value:f,rest:h}}}function F7(n,e){for(var t in n)if(n.hasOwnProperty(t)&&e(n[t]))return t}function V7(n,e){for(var t=0;t<n.length;t++)if(e(n[t]))return t}function IM(n){return function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=e.match(n.matchPattern);if(!r)return null;var i=r[0],a=e.match(n.parsePattern);if(!a)return null;var s=n.valueCallback?n.valueCallback(a[0]):a[0];s=t.valueCallback?t.valueCallback(s):s;var c=e.slice(i.length);return{value:s,rest:c}}}var Y7=/^(\d+)(th|st|nd|rd)?/i,j7=/\d+/i,W7={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},U7={any:[/^b/i,/^(a|c)/i]},q7={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},$7={any:[/1/i,/2/i,/3/i,/4/i]},G7={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},Z7={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},X7={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Q7={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},K7={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},J7={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},eP={ordinalNumber:IM({matchPattern:Y7,parsePattern:j7,valueCallback:function(e){return parseInt(e,10)}}),era:Ts({matchPatterns:W7,defaultMatchWidth:"wide",parsePatterns:U7,defaultParseWidth:"any"}),quarter:Ts({matchPatterns:q7,defaultMatchWidth:"wide",parsePatterns:$7,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:Ts({matchPatterns:G7,defaultMatchWidth:"wide",parsePatterns:Z7,defaultParseWidth:"any"}),day:Ts({matchPatterns:X7,defaultMatchWidth:"wide",parsePatterns:Q7,defaultParseWidth:"any"}),dayPeriod:Ts({matchPatterns:K7,defaultMatchWidth:"any",parsePatterns:J7,defaultParseWidth:"any"})},tP={code:"en-US",formatDistance:E7,formatLong:M7,formatRelative:k7,localize:z7,match:eP,options:{weekStartsOn:0,firstWeekContainsDate:1}};const NM=tP;var nP={lessThanXSeconds:{one:{regular:"m\xE9n\u011B ne\u017E sekunda",past:"p\u0159ed m\xE9n\u011B ne\u017E sekundou",future:"za m\xE9n\u011B ne\u017E sekundu"},few:{regular:"m\xE9n\u011B ne\u017E {{count}} sekundy",past:"p\u0159ed m\xE9n\u011B ne\u017E {{count}} sekundami",future:"za m\xE9n\u011B ne\u017E {{count}} sekundy"},many:{regular:"m\xE9n\u011B ne\u017E {{count}} sekund",past:"p\u0159ed m\xE9n\u011B ne\u017E {{count}} sekundami",future:"za m\xE9n\u011B ne\u017E {{count}} sekund"}},xSeconds:{one:{regular:"sekunda",past:"p\u0159ed sekundou",future:"za sekundu"},few:{regular:"{{count}} sekundy",past:"p\u0159ed {{count}} sekundami",future:"za {{count}} sekundy"},many:{regular:"{{count}} sekund",past:"p\u0159ed {{count}} sekundami",future:"za {{count}} sekund"}},halfAMinute:{type:"other",other:{regular:"p\u016Fl minuty",past:"p\u0159ed p\u016Fl minutou",future:"za p\u016Fl minuty"}},lessThanXMinutes:{one:{regular:"m\xE9n\u011B ne\u017E minuta",past:"p\u0159ed m\xE9n\u011B ne\u017E minutou",future:"za m\xE9n\u011B ne\u017E minutu"},few:{regular:"m\xE9n\u011B ne\u017E {{count}} minuty",past:"p\u0159ed m\xE9n\u011B ne\u017E {{count}} minutami",future:"za m\xE9n\u011B ne\u017E {{count}} minuty"},many:{regular:"m\xE9n\u011B ne\u017E {{count}} minut",past:"p\u0159ed m\xE9n\u011B ne\u017E {{count}} minutami",future:"za m\xE9n\u011B ne\u017E {{count}} minut"}},xMinutes:{one:{regular:"minuta",past:"p\u0159ed minutou",future:"za minutu"},few:{regular:"{{count}} minuty",past:"p\u0159ed {{count}} minutami",future:"za {{count}} minuty"},many:{regular:"{{count}} minut",past:"p\u0159ed {{count}} minutami",future:"za {{count}} minut"}},aboutXHours:{one:{regular:"p\u0159ibli\u017En\u011B hodina",past:"p\u0159ibli\u017En\u011B p\u0159ed hodinou",future:"p\u0159ibli\u017En\u011B za hodinu"},few:{regular:"p\u0159ibli\u017En\u011B {{count}} hodiny",past:"p\u0159ibli\u017En\u011B p\u0159ed {{count}} hodinami",future:"p\u0159ibli\u017En\u011B za {{count}} hodiny"},many:{regular:"p\u0159ibli\u017En\u011B {{count}} hodin",past:"p\u0159ibli\u017En\u011B p\u0159ed {{count}} hodinami",future:"p\u0159ibli\u017En\u011B za {{count}} hodin"}},xHours:{one:{regular:"hodina",past:"p\u0159ed hodinou",future:"za hodinu"},few:{regular:"{{count}} hodiny",past:"p\u0159ed {{count}} hodinami",future:"za {{count}} hodiny"},many:{regular:"{{count}} hodin",past:"p\u0159ed {{count}} hodinami",future:"za {{count}} hodin"}},xDays:{one:{regular:"den",past:"p\u0159ed dnem",future:"za den"},few:{regular:"{{count}} dny",past:"p\u0159ed {{count}} dny",future:"za {{count}} dny"},many:{regular:"{{count}} dn\xED",past:"p\u0159ed {{count}} dny",future:"za {{count}} dn\xED"}},aboutXWeeks:{one:{regular:"p\u0159ibli\u017En\u011B t\xFDden",past:"p\u0159ibli\u017En\u011B p\u0159ed t\xFDdnem",future:"p\u0159ibli\u017En\u011B za t\xFDden"},few:{regular:"p\u0159ibli\u017En\u011B {{count}} t\xFDdny",past:"p\u0159ibli\u017En\u011B p\u0159ed {{count}} t\xFDdny",future:"p\u0159ibli\u017En\u011B za {{count}} t\xFDdny"},many:{regular:"p\u0159ibli\u017En\u011B {{count}} t\xFDdn\u016F",past:"p\u0159ibli\u017En\u011B p\u0159ed {{count}} t\xFDdny",future:"p\u0159ibli\u017En\u011B za {{count}} t\xFDdn\u016F"}},xWeeks:{one:{regular:"t\xFDden",past:"p\u0159ed t\xFDdnem",future:"za t\xFDden"},few:{regular:"{{count}} t\xFDdny",past:"p\u0159ed {{count}} t\xFDdny",future:"za {{count}} t\xFDdny"},many:{regular:"{{count}} t\xFDdn\u016F",past:"p\u0159ed {{count}} t\xFDdny",future:"za {{count}} t\xFDdn\u016F"}},aboutXMonths:{one:{regular:"p\u0159ibli\u017En\u011B m\u011Bs\xEDc",past:"p\u0159ibli\u017En\u011B p\u0159ed m\u011Bs\xEDcem",future:"p\u0159ibli\u017En\u011B za m\u011Bs\xEDc"},few:{regular:"p\u0159ibli\u017En\u011B {{count}} m\u011Bs\xEDce",past:"p\u0159ibli\u017En\u011B p\u0159ed {{count}} m\u011Bs\xEDci",future:"p\u0159ibli\u017En\u011B za {{count}} m\u011Bs\xEDce"},many:{regular:"p\u0159ibli\u017En\u011B {{count}} m\u011Bs\xEDc\u016F",past:"p\u0159ibli\u017En\u011B p\u0159ed {{count}} m\u011Bs\xEDci",future:"p\u0159ibli\u017En\u011B za {{count}} m\u011Bs\xEDc\u016F"}},xMonths:{one:{regular:"m\u011Bs\xEDc",past:"p\u0159ed m\u011Bs\xEDcem",future:"za m\u011Bs\xEDc"},few:{regular:"{{count}} m\u011Bs\xEDce",past:"p\u0159ed {{count}} m\u011Bs\xEDci",future:"za {{count}} m\u011Bs\xEDce"},many:{regular:"{{count}} m\u011Bs\xEDc\u016F",past:"p\u0159ed {{count}} m\u011Bs\xEDci",future:"za {{count}} m\u011Bs\xEDc\u016F"}},aboutXYears:{one:{regular:"p\u0159ibli\u017En\u011B rok",past:"p\u0159ibli\u017En\u011B p\u0159ed rokem",future:"p\u0159ibli\u017En\u011B za rok"},few:{regular:"p\u0159ibli\u017En\u011B {{count}} roky",past:"p\u0159ibli\u017En\u011B p\u0159ed {{count}} roky",future:"p\u0159ibli\u017En\u011B za {{count}} roky"},many:{regular:"p\u0159ibli\u017En\u011B {{count}} rok\u016F",past:"p\u0159ibli\u017En\u011B p\u0159ed {{count}} roky",future:"p\u0159ibli\u017En\u011B za {{count}} rok\u016F"}},xYears:{one:{regular:"rok",past:"p\u0159ed rokem",future:"za rok"},few:{regular:"{{count}} roky",past:"p\u0159ed {{count}} roky",future:"za {{count}} roky"},many:{regular:"{{count}} rok\u016F",past:"p\u0159ed {{count}} roky",future:"za {{count}} rok\u016F"}},overXYears:{one:{regular:"v\xEDce ne\u017E rok",past:"p\u0159ed v\xEDce ne\u017E rokem",future:"za v\xEDce ne\u017E rok"},few:{regular:"v\xEDce ne\u017E {{count}} roky",past:"p\u0159ed v\xEDce ne\u017E {{count}} roky",future:"za v\xEDce ne\u017E {{count}} roky"},many:{regular:"v\xEDce ne\u017E {{count}} rok\u016F",past:"p\u0159ed v\xEDce ne\u017E {{count}} roky",future:"za v\xEDce ne\u017E {{count}} rok\u016F"}},almostXYears:{one:{regular:"skoro rok",past:"skoro p\u0159ed rokem",future:"skoro za rok"},few:{regular:"skoro {{count}} roky",past:"skoro p\u0159ed {{count}} roky",future:"skoro za {{count}} roky"},many:{regular:"skoro {{count}} rok\u016F",past:"skoro p\u0159ed {{count}} roky",future:"skoro za {{count}} rok\u016F"}}},rP=function(e,t,r){var i,a=nP[e];a.type==="other"?i=a.other:t===1?i=a.one:t>1&&t<5?i=a.few:i=a.many;var s=r?.addSuffix===!0,c=r?.comparison,u;return s&&c===-1?u=i.past:s&&c===1?u=i.future:u=i.regular,u.replace("{{count}}",String(t))};const iP=rP;var aP={full:"EEEE, d. MMMM yyyy",long:"d. MMMM yyyy",medium:"d. M. yyyy",short:"dd.MM.yyyy"},sP={full:"H:mm:ss zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},oP={full:"{{date}} 'v' {{time}}",long:"{{date}} 'v' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},lP={date:Sf({formats:aP,defaultWidth:"full"}),time:Sf({formats:sP,defaultWidth:"full"}),dateTime:Sf({formats:oP,defaultWidth:"full"})};const cP=lP;var uP=["ned\u011Bli","pond\u011Bl\xED","\xFAter\xFD","st\u0159edu","\u010Dtvrtek","p\xE1tek","sobotu"],dP={lastWeek:"'posledn\xED' eeee 've' p",yesterday:"'v\u010Dera v' p",today:"'dnes v' p",tomorrow:"'z\xEDtra v' p",nextWeek:function(e){var t=e.getUTCDay();return"'v "+uP[t]+" o' p"},other:"P"}
334,fP=function(e,t){var r=dP[e];return typeof r=="function"?r(t):r};const hP=fP;var pP={narrow:["p\u0159. n. l.","n. l."],abbreviated:["p\u0159. n. l.","n. l."],wide:["p\u0159ed na\u0161\xEDm letopo\u010Dtem","na\u0161eho letopo\u010Dtu"]},mP={narrow:["1","2","3","4"],abbreviated:["1. \u010Dtvrtlet\xED","2. \u010Dtvrtlet\xED","3. \u010Dtvrtlet\xED","4. \u010Dtvrtlet\xED"],wide:["1. \u010Dtvrtlet\xED","2. \u010Dtvrtlet\xED","3. \u010Dtvrtlet\xED","4. \u010Dtvrtlet\xED"]},gP={narrow:["L","\xDA","B","D","K","\u010C","\u010C","S","Z","\u0158","L","P"],abbreviated:["led","\xFAno","b\u0159e","dub","kv\u011B","\u010Dvn","\u010Dvc","srp","z\xE1\u0159","\u0159\xEDj","lis","pro"],wide:["leden","\xFAnor","b\u0159ezen","duben","kv\u011Bten","\u010Derven","\u010Dervenec","srpen","z\xE1\u0159\xED","\u0159\xEDjen","listopad","prosinec"]},vP={narrow:["L","\xDA","B","D","K","\u010C","\u010C","S","Z","\u0158","L","P"],abbreviated:["led","\xFAno","b\u0159e","dub","kv\u011B","\u010Dvn","\u010Dvc","srp","z\xE1\u0159","\u0159\xEDj","lis","pro"],wide:["ledna","\xFAnora","b\u0159ezna","dubna","kv\u011Btna","\u010Dervna","\u010Dervence","srpna","z\xE1\u0159\xED","\u0159\xEDjna","listopadu","prosince"]},yP={narrow:["ne","po","\xFAt","st","\u010Dt","p\xE1","so"],short:["ne","po","\xFAt","st","\u010Dt","p\xE1","so"],abbreviated:["ned","pon","\xFAte","st\u0159","\u010Dtv","p\xE1t","sob"],wide:["ned\u011Ble","pond\u011Bl\xED","\xFAter\xFD","st\u0159eda","\u010Dtvrtek","p\xE1tek","sobota"]},bP={narrow:{am:"dop.",pm:"odp.",midnight:"p\u016Flnoc",noon:"poledne",morning:"r\xE1no",afternoon:"odpoledne",evening:"ve\u010Der",night:"noc"},abbreviated:{am:"dop.",pm:"odp.",midnight:"p\u016Flnoc",noon:"poledne",morning:"r\xE1no",afternoon:"odpoledne",evening:"ve\u010Der",night:"noc"},wide:{am:"dopoledne",pm:"odpoledne",midnight:"p\u016Flnoc",noon:"poledne",morning:"r\xE1no",afternoon:"odpoledne",evening:"ve\u010Der",night:"noc"}},_P={narrow:{am:"dop.",pm:"odp.",midnight:"p\u016Flnoc",noon:"poledne",morning:"r\xE1no",afternoon:"odpoledne",evening:"ve\u010Der",night:"noc"},abbreviated:{am:"dop.",pm:"odp.",midnight:"p\u016Flnoc",noon:"poledne",morning:"r\xE1no",afternoon:"odpoledne",evening:"ve\u010Der",night:"noc"},wide:{am:"dopoledne",pm:"odpoledne",midnight:"p\u016Flnoc",noon:"poledne",morning:"r\xE1no",afternoon:"odpoledne",evening:"ve\u010Der",night:"noc"}},wP=function(e,t){var r=Number(e);return r+"."},EP={ordinalNumber:wP,era:Cs({values:pP,defaultWidth:"wide"}),quarter:Cs({values:mP,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:Cs({values:gP,defaultWidth:"wide",formattingValues:vP,defaultFormattingWidth:"wide"}),day:Cs({values:yP,defaultWidth:"wide"}),dayPeriod:Cs({values:bP,defaultWidth:"wide",formattingValues:_P,defaultFormattingWidth:"wide"})};const xP=EP;var SP=/^(\d+)\.?/i,CP=/\d+/i,TP={narrow:/^(p[řr](\.|ed) Kr\.|p[řr](\.|ed) n\. l\.|po Kr\.|n\. l\.)/i,abbreviated:/^(p[řr](\.|ed) Kr\.|p[řr](\.|ed) n\. l\.|po Kr\.|n\. l\.)/i,wide:/^(p[řr](\.|ed) Kristem|p[řr](\.|ed) na[šs][íi]m letopo[čc]tem|po Kristu|na[šs]eho letopo[čc]tu)/i},MP={any:[/^p[řr]/i,/^(po|n)/i]},DP={narrow:/^[1234]/i,abbreviated:/^[1234]\. [čc]tvrtlet[íi]/i,wide:/^[1234]\. [čc]tvrtlet[íi]/i},OP={any:[/1/i,/2/i,/3/i,/4/i]},kP={narrow:/^[lúubdkčcszřrlp]/i,abbreviated:/^(led|[úu]no|b[řr]e|dub|kv[ěe]|[čc]vn|[čc]vc|srp|z[áa][řr]|[řr][íi]j|lis|pro)/i,wide:/^(leden|ledna|[úu]nora?|b[řr]ezen|b[řr]ezna|duben|dubna|kv[ěe]ten|kv[ěe]tna|[čc]erven(ec|ce)?|[čc]ervna|srpen|srpna|z[áa][řr][íi]|[řr][íi]jen|[řr][íi]jna|listopad(a|u)?|prosinec|prosince)/i},LP={narrow:[/^l/i,/^[úu]/i,/^b/i,/^d/i,/^k/i,/^[čc]/i,/^[čc]/i,/^s/i,/^z/i,/^[řr]/i,/^l/i,/^p/i],any:[/^led/i,/^[úu]n/i,/^b[řr]e/i,/^dub/i,/^kv[ěe]/i,/^[čc]vn|[čc]erven(?!\w)|[čc]ervna/i,/^[čc]vc|[čc]erven(ec|ce)/i,/^srp/i,/^z[áa][řr]/i,/^[řr][íi]j/i,/^lis/i,/^pro/i]},AP={narrow:/^[npuúsčps]/i,short:/^(ne|po|[úu]t|st|[čc]t|p[áa]|so)/i,abbreviated:/^(ned|pon|[úu]te|st[rř]|[čc]tv|p[áa]t|sob)/i,wide:/^(ned[ěe]le|pond[ěe]l[íi]|[úu]ter[ýy]|st[řr]eda|[čc]tvrtek|p[áa]tek|sobota)/i}
334,RP={narrow:[/^n/i,/^p/i,/^[úu]/i,/^s/i,/^[čc]/i,/^p/i,/^s/i],any:[/^ne/i,/^po/i,/^[úu]t/i,/^st/i,/^[čc]t/i,/^p[áa]/i,/^so/i]},IP={any:/^dopoledne|dop\.?|odpoledne|odp\.?|p[ůu]lnoc|poledne|r[áa]no|odpoledne|ve[čc]er|(v )?noci?/i},NP={any:{am:/^dop/i,pm:/^odp/i,midnight:/^p[ůu]lnoc/i,noon:/^poledne/i,morning:/r[áa]no/i,afternoon:/odpoledne/i,evening:/ve[čc]er/i,night:/noc/i}},PP={ordinalNumber:IM({matchPattern:SP,parsePattern:CP,valueCallback:function(e){return parseInt(e,10)}}),era:Ts({matchPatterns:TP,defaultMatchWidth:"wide",parsePatterns:MP,defaultParseWidth:"any"}),quarter:Ts({matchPatterns:DP,defaultMatchWidth:"wide",parsePatterns:OP,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:Ts({matchPatterns:kP,defaultMatchWidth:"wide",parsePatterns:LP,defaultParseWidth:"any"}),day:Ts({matchPatterns:AP,defaultMatchWidth:"wide",parsePatterns:RP,defaultParseWidth:"any"}),dayPeriod:Ts({matchPatterns:IP,defaultMatchWidth:"any",parsePatterns:NP,defaultParseWidth:"any"})},BP={code:"cs",formatDistance:iP,formatLong:cP,formatRelative:hP,localize:xP,match:PP,options:{weekStartsOn:1,firstWeekContainsDate:4}};const Vw=BP;iu.register(X_,Q_,F_,rf,Z_,V0,$_);const HP={responsive:!0,maintainAspectRatio:!1,locale:"cs-CZ",plugins:{legend:{display:!1},title:{display:!1},tooltip:{callbacks:{label(n){let e=n.dataset.label||"";return e&&(e+=": "),n.parsed.y!==null&&(e+=Math.round(n.parsed.y*1e3)/1e3),e}}}},scales:{x:{display:!0},y:{offset:!0}},elements:{line:{borderWidth:1.5},point:{radius:1.5}}},zP=({currencyIso:n,cultureCode:e,localization:t,onDataChange:r,queryDate:i})=>{const a=i.slice(0,10),s=new Date(a),c=new Date(a),u=new Date(c.setFullYear(c.getFullYear()-1)),f=new Date,[h,g]=(0,p.useState)([]),[v,y]=(0,p.useState)([]),[_,w]=(0,p.useState)(u),[x,S]=(0,p.useState)(s),[T,M]=(0,p.useState)(u.toISOString().slice(0,10)),[C,k]=(0,p.useState)(s.toISOString().slice(0,10)),[L,O]=(0,p.useState)(!1),[I,P]=(0,p.useState)(!1),[B,H]=(0,p.useState)(1),F=async(Y,ae,ue)=>{const We=i??new Date().toJSON().slice(0,10),be={dateFrom:ae||We,dateTo:ue||We,cultureCode:e,timeFrame:Y??0,currencyIsoCode:n};try{const qe=await(await fetch(`${window.location.origin}/api/ExchangeRate/ChartData`,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json",__RequestVerificationToken:ko()},body:JSON.stringify(be)})).json(),je=[],ct=[];qe.payload.data&&Object.keys(qe.payload.data).forEach(ht=>{je.push(Math.round(qe.payload.data[ht].value*1e3)/1e3);const Ge=qe.payload.data[ht].date,Ze=new Date(Ge.replace(/-/g,"/")).toLocaleDateString("cs-cz");ct.push(Ze)}),g(je),y(ct)}catch(_e){console.error("Error fetching data:",_e)}},$=Y=>{H(Y);let ae=Y;I&&Y===12&&(ae=0);let ue=C||a,We=T||a;Y===0||Y===12||(ue=s.toJSON().slice(0,10),We=u.toJSON().slice(0,10),O(!1));const be={fromDate:ue,toDate:We,timeFrame:ae};I&&ae===0?F(ae,ue,We):F(ae),r(be)};e.toLowerCase()==="en-us"?dM("en",NM):dM("cs",Vw);const V=Y=>{if(!Y)return;H(12),w(Y);const ue=new Date(Y).toISOString().slice(0,10);M(ue),F(0,C,ue),r({fromDate:C||a,toDate:ue||a,timeFrame:0})},W=Y=>{if(!Y)return;H(12),S(Y);const ue=new Date(Y).toISOString().slice(0,10);k(ue),F(0,ue,T),r({fromDate:ue||a,toDate:T||a,timeFrame:0})},ee=()=>{O(!0),P(!0)};(0,p.useEffect)(()=>{F(1),re.multiple(Ns,document.querySelectorAll(".js-horizontal-panel"))},[]);const q={labels:v,datasets:[{data:h,borderColor:"#E00000",pointBackgroun
334dColor:"#E00000",pointBorderColor:"#E00000",backgroundColor:"#E00000",tension:.1,spanGaps:!0}]};return p.createElement("div",{className:"mb-12"},p.createElement("h3",{className:"mb-6 break-words text-2xl"},t.Chart_Title),p.createElement("div",{className:"-mt-3 sm:-mt-4"},p.createElement("div",{className:""},p.createElement("div",{className:"row"},p.createElement("div",{className:"sm:col-24"},p.createElement("div",{className:"horizontal-scroll__outer-container"},p.createElement("div",{className:"js-horizontal-panel relative sm:flex sm:justify-center"},p.createElement("ul",{className:"js-horizontal-panel-button-list horizontal-scroll__panel-wrapper",role:"tablist"},p.createElement("li",{className:"horizontal-scroll__panel-item","data-testid":"test-id"},p.createElement("button",{role:"tab",type:"button",className:`js-horizontal-panel-button horizontal-scroll__button tab__button tab__button ${B===1?"is-active":""}`,draggable:"false","aria-selected":B===1,onClick:()=>$(1)},p.createElement("span",{className:"text-xs text-grey-160 sm:text-base","data-testid":"accordion-widget-tabs-title-id-adcb3555-721d-4f93-a47b-ad9097ee81ba"},t.Chart_Button_1month))),p.createElement("li",{className:"horizontal-scroll__panel-item","data-testid":"test-id"},p.createElement("button",{role:"tab",type:"button",className:`js-horizontal-panel-button horizontal-scroll__button tab__button tab__button ${B===3?"is-active":""}`,draggable:"false","aria-selected":B===3,onClick:()=>$(3)},p.createElement("span",{className:"text-xs text-grey-160 sm:text-base","data-testid":"accordion-widget-tabs-title-id-adcb3555-721d-4f93-a47b-ad9097ee81ba"},t.Chart_Button_3months))),p.createElement("li",{className:"horizontal-scroll__panel-item","data-testid":"test-id"},p.createElement("button",{role:"tab",type:"button",className:`js-horizontal-panel-button horizontal-scroll__button tab__button tab__button ${B===6?"is-active":""}`,draggable:"false","aria-selected":B===6,onClick:()=>$(6)},p.createElement("span",{className:"text-xs text-grey-160 sm:text-base","data-testid":"accordion-widget-tabs-title-id-adcb3555-721d-4f93-a47b-ad9097ee81ba"},t.Chart_Button_6months))),p.createElement("li",{className:"horizontal-scroll__panel-item","data-testid":"test-id"},p.createElement("button",{role:"tab",type:"button",className:`js-horizontal-panel-button horizontal-scroll__button tab__button tab__button ${B===12?"is-active":""}`,draggable:"false","aria-selected":B===12,onClick:()=>{$(12),ee()}},p.createElement("span",{className:"text-xs text-grey-160 sm:text-base","data-testid":"accordion-widget-tabs-title-id-adcb3555-721d-4f93-a47b-ad9097ee81ba"},t.Chart_Button_custom)))),p.createElement("button",{className:"js-horizontal-panel-prev-button horizontal-scroll__button-arrow horizontal-scroll__button-prev hidden",type:"button","aria-label":"P\u0159edchoz\xED",tabIndex:-1,"data-testid":"tabs-widget-tabs-scroll-btn-id"},p.createElement("svg",{name:"arrow-right",className:"icon h-8 w-8 shrink-0 rotate-180 fill-red-corporate",role:"img",viewBox:"0 0 32 32"},p.createElement("path",{d:"M17.061 16L12.111 11.05L13.525 9.63599L19.889 16L13.525 22.364L12.111 20.95L17.061 16Z"}))),p.createElement("button",{className:"js-horizontal-panel-next-button horizontal-scroll__button-arrow horizontal-scroll__button-next hidden",type:"button","aria-label":"Dal\u0161\xED",tabIndex:-1,"data-testid":"tabs-widget-tabs-scroll-btn-id"},p.createElement("svg",{name:"arrow-right",className:"icon h-8 w-8 shrink-0 fill-red-corporate",role:"img",viewBox:"0 0 32 32"},p.createElement("path",{d:"M17.061 16L12.111 11.05L13.525 9.63599L19.889 16L13.525 22.364L12.111 20.95L17.061 16Z"}))))),p.createElement("div",{className:`${L?"flex":"hidden"} flex-wrap items-center justify-center sm:flex-nowrap`},p.createElement("div",{className:"mb-8 w-full sm:mb-3 sm:mr-8 sm:w-auto"},p.createElement("label",{className:"block max-w-xxs",htmlFor:"datepickerFrom"},p.createElement("span",{className:"mb-1.5 block text-2xs"},t.Chart_Button_from)),p.createElement(Py,{id:"datepickerFrom",selected:_,className:"h-12 rounded-xs border border-grey-30 !px-3 py-2.5 text-base outline-grey-80",onChange:Y=>V(Y),locale:"cs",dateFormat:"dd.MM.yyyy",maxDate:f,showIcon:!0,toggleCalendarOnIconClick:!0,icon:p.createElement("svg",{className:"!w-8 !h-8 !right-0",width:"32",height:"32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},p.createElement("path",{d:"M12.75 5.25v4.5h-1.5v-4.5h1.5Zm8 0v4.5h-1.5v-4.5h1.5Zm-14 7.84a.75.75 0 0 1 .75-.75h17a.75.75 0 0 1 0 1.5h-17a.75.75 0 0 1-.75-.75Z",fill:"#E00000"}),p.createElement("path",{d:"M8.737 9.385c-.64.69-.987 1.73-.987 3.115V21c0 1.385.346 2.425.987 3.115.631.68 1.656 1.135 3.263 1.135h8c1.607 0 2.631-.455 3.263-1.135.64-.69.987-1.73.987-3.115v-8.5c0-1.385-.346-2.425-.987-3.115C22.63 8.705 21.607 8.25 20 8.25h-8c-1.607 0-2.632.455-3.263 1.135Zm-1.1-1.02C8.633 7.295 10.108 6.75 12 6.75h8c1.893 0 3.369.545 4.362 1.615.984 1.06 1.388 2.52 1.388 4.135V21c0 1.615-.404 3.075-1.388 4.135-.993 1.07-2.469 1.615-4.362 1.615h-8c-1.893 0-3.368-.545-4.362-1.615-.984-1.06-1.388-2.52-1.388-4.135v-8.5c0-1.615.404-3.075 1.388-4.135Z",fill:"#E00000"}))})),p.createElement("div",{className:"mb-8 w-full sm:mb-3 sm:mr-8 sm:w-auto"},p.createElement("label",{className:"block max-w-xxs",htmlFor:"datepickerTo"},p.createElement("span",{className:"mb-1.5 block text-2xs"},t.Chart_Button_to)),p.createElement(Py,{id:"datepickerTo",selected:x,className:"h-12 rounded-xs border border-grey-30 !px-3 py-2.5 text-base outline-grey-80",onChange:Y=>W(Y),locale:"cs",dateFormat:"dd.MM.yyyy",maxDate:f,showIcon:!0,toggleCalendarOnIconClick:!0,icon:p.createElement("svg",{className:"!w-8 !h-8 !right-0",width:"32",height:"32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},p.createElement("path",{d:"M12.75 5.25v4.5h-1.5v-4.5h1.5Zm8 0v4.5h-1.5v-4.5h1.5Zm-14 7.84a.75.75 0 0 1 .75-.75h17a.75.75 0 0 1 0 1.5h-17a.75.75 0 0 1-.75-.75Z",fill:"#E00000"}),p.createElement("path",{d:"M8.737 9.385c-.64.69-.987 1.73-.987 3.115V21c0 1.385.346 2.425.987 3.115.631.68 1.656 1.135 3.263 1.135h8c1.607 0 2.631-.455 3.263-1.135.64-.69.987-1.73.987-3.115v-8.5c0-1.385-.346-2.425-.987-3.115C22.63 8.705 21.607 8.25 20 8.25h-8c-1.607 0-2.632.455-3.263 1.135Zm-1.1-1.02C8.633 7.295 10.108 6.75 12 6.75h8c1.893 0 3.369.545 4.362 1.615.984 1.06 1.388 2.52 1.388 4.135V21c0 1.615-.404 3.075-1.388 4.135-.993 1.07-2.469 1.615-4.362 1.615h-8c-1.893 0-3.368-.545-4.362-1.615-.984-1.06-1.388-2.52-1.388-4.135v-8.5c0-1.615.404-3.075 1.388-4.135Z",fill:"#E00000"}))}))))))),p.createElement("div",{className:"exchangeChart"},p.createElement(bC,{options:HP,data:q})))},vu=({localization:n,text:e,value:t})=>p.createElement("div",{className:"ex-rates-table-mobile__row"},p.createElement("span",null,ye(n,e)),p.createElement("span",null,t)),FP=({items:n,hasNextItems:e,isLoading:t,loadMoreItems:r,localization:i})=>p.createElement("div",{className:"ex-rates-table-mobile"},n.map(a=>p.createElement("div",{key:`mobile-key-${a.id}${a.curencyIso}${a.time}`,className:"ex-rates-table-mobile__box"},p.createElement("p",{className:"ex-rates-table-mobile__title"},p.createElement("span",null,ye(i,"History_Date")),p.createElement("span",null,a.date)),p.createElement(vu,{localization:i,text:"History_Time",value:a.time}),p.createElement(vu,{localization:i,text:"Mobile_History_KBMiddle",value:a.middleKBStr}),p.createElement(vu,{localization:i,text:"Mobile_History_CNBMiddle",value:a.middleCNBStr}),p.createElement(vu,{localization:i,text:"Mobile_History_CashBuy",value:a.cashBuyStr}),p.createElement(vu,{localization:i,text:"Mobile_History_CashSell",value:a.cashSellStr}),p.createElement(vu,{localization:i,text:"Mobile_History_NoCashBuy",value:a.nonCashBuyStr}),p.createElement(vu,{localization:i,text:"Mobile_History_NoCashSell",value:a.nonCashSellStr}))),e&&p.createElement("div",{className:"mt-8"},p.createElement(Ri,{template:"secondary",title:ye(i,"LoadMore"),type:"button",isLoading:t,onClick:r,dataTestId:"button-load-more-mobile"}))),Yw=({title:n,subTitle1:e,subTitle2:t,marginRight:r})=>p.createElement("div",{className:`
335        ex-rates-table-desktop__col
336        ex-rates-table-desktop__value
337        ex-rates-table-desktop__header__wrapper
338        ${r?"mr-8":"mr-0"}
339      `},p.createElement("div",{className:"ex-rates-table-desktop__header__title"},n),p.createElement("div",{className:"flex items-center justify-between"},p.createElement("span",{className:`\r
340            ex-rates-table-desktop__header__subtitle\r
341            ex-rates-table-desktop__value-inner\r
342            ex-rates-table-desktop__value-inner--header`},e),p.createElement("span",{className:`\r
343            ex-rates-table-desktop__header__subtitle\r
344            ex-rates-table-desktop__value-inner\r
345            ex-rates-table-desktop__value-inner--header`},t))),jw=({index:n,value1:e,value2:t,marginRight:r})=>p.createElement("div",{className:`
346        ex-rates-table-desktop__col
347        ex-rates-table-desktop__value
348        ex-rates-table-desktop__rate-wrapper
349        ${r?"mr-8":"mr-0"}
350      `},p.createElement("span",{className:`
351          ex-rates-table-desktop__value-inner
352          ex-rates-table-desktop__value-inner-${n}
353          ex-rates-table-desktop__rate-value
354        `},e),p.createElement("span",{className:`
355          ex-rates-table-desktop__value-inner
356          ex-rates-table-desktop__value-inner-${n}
357          ex-rates-table-desktop__rate-value
358        `},t)),VP=({items:n,hasNextItems:e,isLoading:t,loadMoreItems:r,localization:i})=>p.createElement("div",{className:"ex-rates-table-desktop"},p.createElement("div",{className:"ex-rates-table-desktop__header"},p.createElement("div",{className:`\r
359            ex-rates-table-desktop__col\r
360            ex-rates-table-desktop__name\r
361            ex-rates-table-desktop__name--header\r
362            mr-8`},p.createElement("div",{className:"ex-rates-table-desktop__header__date-time"},p.createElement("span",{className:`\r
363                ex-rates-table-desktop__header__subtitle\r
364                ex-rates-table-desktop__value-inner\r
365                ex-rates-table-desktop__value-inner--header`},ye(i,"History_Date")),p.createElement("span",{className:`\r
366                ex-rates-table-desktop__header__subtitle\r
367                ex-rates-table-desktop__value-inner\r
368                ex-rates-table-desktop__value-inner--header`}
368,ye(i,"History_Time")))),p.createElement(Yw,{title:ye(i,"Desktop_History_Middle"),subTitle1:ye(i,"Desktop_History_KB"),subTitle2:ye(i,"Desktop_History_CNB"),marginRight:!0}),p.createElement(Yw,{title:ye(i,"Desktop_History_ExchangeCash"),subTitle1:ye(i,"Desktop_History_Buy"),subTitle2:ye(i,"Desktop_History_Sell"),marginRight:!0}),p.createElement(Yw,{title:ye(i,"Desktop_History_ExchangeWire"),subTitle1:ye(i,"Desktop_History_Buy"),subTitle2:ye(i,"Desktop_History_Sell")})),n.map((a,s)=>p.createElement("div",{key:`table-key-${a.id}${a.curencyIso}${a.time}`,className:"ex-rates-table-desktop__item"},p.createElement("div",{className:`
369                ex-rates-table-desktop__col
370                ex-rates-table-desktop__name
371                ex-rates-table-desktop__name-${s}
372                ex-rates-table-desktop__name-date-time-wrapper
373              `},p.createElement("span",{className:"ex-rates-table-desktop__name-date-time-value"},a.date),p.createElement("span",{className:"ex-rates-table-desktop__name-date-time-value"},a.time)),p.createElement(jw,{index:s,value1:a.middleKBStr,value2:a.middleCNBStr,marginRight:!0}),p.createElement(jw,{index:s,value1:a.cashBuyStr,value2:a.cashSellStr,marginRight:!0}),p.createElement(jw,{index:s,value1:a.nonCashBuyStr,value2:a.nonCashSellStr}))),p.createElement("div",{className:"ex-rates-table-desktop__footer"},p.createElement("div",{"aria-hidden":"true",className:`\r
374            ex-rates-table-desktop__col\r
375            ex-rates-table-desktop__name\r
376            ex-rates-table-desktop__name--footer\r
377            mr-8`}),p.createElement("div",{"aria-hidden":"true",className:`\r
378            ex-rates-table-desktop__col\r
379            ex-rates-table-desktop__value\r
380            ex-rates-table-desktop__footer__wrapper\r
381            mr-8`}),p.createElement("div",{"aria-hidden":"true",className:`\r
382            ex-rates-table-desktop__col\r
383            ex-rates-table-desktop__value\r
384            ex-rates-table-desktop__footer__wrapper\r
385            mr-8`}),p.createElement("div",{"aria-hidden":"true",className:`\r
386            ex-rates-table-desktop__col\r
387            ex-rates-table-desktop__value\r
388            ex-rates-table-desktop__footer__wrapper`})),e&&p.createElement("div",{className:"mt-12"},p.createElement(Ri,{template:"secondary",title:ye(i,"LoadMore"),type:"button",isLoading:t,onClick:r,dataTestId:"button-load-more-desktop"}))),YP=({api:n,query:e,items:t,pagination:r,localization:i,cultureCode:a,baseUrl:s,currencyIso:c,downloads:u,iconsList:f,showChart:h})=>{const{hasNextItems:g,isLoadingMore:v,items:y,hasError:_,isLoading:w,loadMoreItemsExchangeRatesDetail:x}=Da({api:n,defaultQuery:e,defaultItems:t,defaultPagination:r,cultureCode:a,fetchBodyData:{baseUrl:s},currency:c,date:e}),[S,T]=(0,p.useState)({fromDate:e,toDate:e,timeFrame:"1"}),M=C=>{T(C)};return p.createElement(p.Fragment,null,h&&p.createElement(zP,{onDataChange:M,localization:i,currencyIso:c,cultureCode:a,queryDate:e,iconsList:f}),p.createElement("div",null,!h&&p.createElement("div",{className:"mb-6 text-2xl"},ye(i,"History_Title")," ",p.createElement("span",{className:"uppercase"},c)),_&&p.createElement("div",{className:"mb-12"},p.createElement(qn,{type:Ce.Error,text:ye(i,"TableError"),textAttributes:{role:"alert","aria-live":"assertive"}})),w?p.createElement("div",{className:"mb-12 flex items-center justify-center"},p.createElement(ls,null)):p.createElement("div",null,p.createElement(FP,{items:y,hasNextItems:g,isLoading:v,loadMoreItems:x,localization:i}),p.createElement(VP,{items:y,hasNextItems:g,isLoading:v,loadMoreItems:x,localization:i}))),p.createElement(Ic,{isVisible:u.isVisible,title:u.title,links:u.links,iconsList:f,apiUrl:u.apiUrl,cultureCode:a,fromDate:S.fromDate,toDate:S.toDate,timeFrame:S.timeFrame,currency:c}))},jP=({items:n,localization:e})=>n?p.createElement("table",{className:"table-rates--double table-rates mb-8 sm:mb-12"},p.createElement("thead",null,p.createElement("tr",null,p.createElement("th",{className:"pb-4","aria-label":"empty"}),p.createElement("th",{className:"pb-4"},e.Buying),p.createElement("th",{className:"pb-4"},e.Selling))),p.createElement("tbody",{className:"table__body"},n.map(t=>p.createElement("tr",{key:t.id},p.createElement("td",{className:"table__title border-b border-red-corporate pb-4"},p.createElement("strong",{className:"sm:mr-4"},t.currencyPair),p.createElement("span",{className:"text-2xs"},t.cardAssociation)),p.createElement("td",{"data-title":e.Buying},t.buyingMargin),p.createElement("td",{"data-title":e.Selling},t.sellingMargin))))):null,WP=(0,p.memo)(jP),UP=({api:n,data:e,localization:t,backButtonUrl:r,configuration:i,cultureCode:a,date:s,isQueryDate:c,iconsList:u})=>{const{calendar:f}=u,[h,g]=(0,p.useState)(c),[v,y]=(0,p.useState)("releaseTimeNoRecord"),[_,w]=(0,p.useState)(s),[x,S]=(0,p.useState)(!0),[T,M]=(0,p.useState)(e),[C,k]=(0,p.useState)(!1),L={date:_,cultureCode:a,configuration:i},O=10,I=new Date().getFullYear(),P=I-O,H=`0${new Date().getMonth()+1}`.slice(-2),$=`0${new Date().getDate().toString()}`.slice(-2),V=`${P}-01-01`,W=`${I}-${H}-${$}`,ee=ue=>{w(ue)},q=async()=>{const ue=await fetch(n,{method:"POST",headers:{"Content-Type":"application/json",__RequestVerificationToken:ko()},body:JSON.stringify(L)});if(ue.ok)return S(!0),ue.json();throw k(!0),S(!0),new Error("Data coud not be fetched!")},Y=()=>{S(!1),k(!1),q().then(ue=>{ue.payload.data.length>0?(M(ue.payload.data),w(ue.payload.responseDate),g(ue.payload.requestDateNotAvailable),y(ue.payload.localization.releaseTimeNoRecord),window.history.replaceState(null,"",`?date=${ue.payload.responseDate}`)):k(!0)}).catch(ue=>{k(!0)})},ae=h;return p.createElement("div",{className:"container"},p.createElement("div",{className:"-mx-8 mb-12 bg-white p-8 pb-12 shadow-tab sm:mx-0 sm:rounded sm:py-12 sm:px-0"},p.createElement("div",{className:"row"},p.createElement("div",{className:"sm:col-14 sm:offset-1"},p.createElement("div",{className:ae?"sm:flex sm:items-center":"sm:flex sm:items-end"},p.createElement("div",{className:"w-full"},p.createElement("div",{className:"mb-1.5 text-2xs"},ye(t,"DatePicker")),p.createElement("label",{htmlFor:"dataSelect",className:"mb-0 block sm:mr-8"},p.createElement("div",{className:"relative"},p.createElement("input",{type:"date",id:"dataSelect",name:"dataSelect",className:"date-picker-rates",min:V,max:W,value:_,onCh
vendor: 4,416 bytes, lines 388-389
388ange:ue=>{ee(ue.target.value)}}),p.createElement("div",{className:"pointer-events-none absolute right-[3px] top-[10px] w-[32px] bg-white"},p.createElement(un,{name:f.name,viewBox:f.viewbox,alt:f.alt,svg:f.svg,className:"inline h-[21.5px] w-[19.5px] bg-white fill-red-corporate"})))),ae&&p.createElement("div",{className:"mb-6 text-xs text-red-corporate sm:mb-0"},ye(t,v))),p.createElement("button",{type:"button",onClick:Y,className:`btn btn--primary ${ae?"mt-0":"mt-6 sm:mt-0"}`},ye(t,"ShowButton")))))),x?p.createElement("div",{className:"row"},p.createElement("div",{className:"sm:col-14 sm:offset-1"},C?p.createElement(qn,{type:Ce.Error,text:ye(t,"ErrorMessage"),textAttributes:{role:"alert","aria-live":"assertive"},className:"mb-12"}):p.createElement(WP,{items:T,localization:t}))):p.createElement(ls,{className:"mb-12"}),p.createElement("div",{className:"row"},p.createElement("div",{className:"sm:col-14 sm:offset-1"},p.createElement("a",{role:"button",href:r,className:"btn btn--secondary mb-12 inline-block"},ye(t,"BackButton")))))};function ft(n,e){if(e.length<n)throw new TypeError(n+" argument"+(n>1?"s":"")+" required, but only "+e.length+" present")}function Et(n){ft(1,arguments);var e=Object.prototype.toString.call(n);return n instanceof Date||Or(n)==="object"&&e==="[object Date]"?new Date(n.getTime()):typeof n=="number"||e==="[object Number]"?new Date(n):((typeof n=="string"||e==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function PM(n,e){(e==null||e>n.length)&&(e=n.length);for(var t=0,r=Array(e);t<e;t++)r[t]=n[t];return r}function qP(n,e){if(n){if(typeof n=="string")return PM(n,e);var t={}.toString.call(n).slice(8,-1);return t==="Object"&&n.constructor&&(t=n.constructor.name),t==="Map"||t==="Set"?Array.from(n):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?PM(n,e):void 0}}function BM(n,e){var t=typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(!t){if(Array.isArray(n)||(t=qP(n))||e&&n&&typeof n.length=="number"){t&&(n=t);var r=0,i=function(){};return{s:i,n:function(){return r>=n.length?{done:!0}:{done:!1,value:n[r++]}},e:function(f){throw f},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
389In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,s=!0,c=!1;return{s:function(){t=t.call(n)},n:function(){var f=t.next();return s=f.done,f},e:function(f){c=!0,a=f},f:function(){try{s||t.return==null||t.return()}finally{if(c)throw a}}}}const HM=NM;function zn(n){if(n===null||n===!0||n===!1)return NaN;var e=Number(n);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}function Mm(n,e){ft(2,arguments);var t=Et(n).getTime(),r=zn(e);return new Date(t+r)}function zM(n,e){ft(2,arguments);var t=zn(e);return Mm(n,-t)}function $P(n,e){if(n==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t]);return n}var FM=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},VM=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},GP=function(e,t){var r=e.match(/(P+)(p+)?/)||[],i=r[1],a=r[2];if(!a)return FM(e,t);var s;switch(i){case"P":s=t.dateTime({width:"short"});break;case"PP":s=t.dateTime({width:"medium"});break;case"PPP":s=t.dateTime({width:"long"});break;default:s=t.dateTime({width:"full"});break}return s.replace("{{date}}",FM(i,t)).replace("{{time}}",VM(a,t))},ZP={p:VM,P:GP};const Ww=ZP;function By(n){var e=new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()));return e.setUTCFullYear(n.getFullYear()),n.getTime()-e.getTime()}var XP=["D","DD"],QP=["YY","YYYY"];function YM(n){return XP.indexOf(n)!==-1}function jM(n){return QP.indexOf(n)!==-1}function Hy(n,e,t){if(n==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").
vendor: 32,808 bytes, line 389
389concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(n==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(n==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(e,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(n==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}function tt(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function nn(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),e&&It(n,e)}function zy(n){return zy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},zy(n)}function WM(){try{var n=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(WM=function(){return!!n})()}function KP(n,e){if(e&&(Or(e)=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return tt(n)}function rn(n){var e=WM();return function(){var t,r=zy(n);if(e){var i=zy(this).constructor;t=Reflect.construct(r,arguments,i)}else t=r.apply(this,arguments);return KP(this,t)}}function Xt(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function UM(n,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,AE(r.key),r)}}function Qt(n,e,t){return e&&UM(n.prototype,e),t&&UM(n,t),Object.defineProperty(n,"prototype",{writable:!1}),n}var JP=10,qM=(function(){function n(){Xt(this,n),Qe(this,"priority",void 0),Qe(this,"subPriority",0)}return Qt(n,[{key:"validate",value:function(t,r){return!0}}]),n})(),e9=(function(n){nn(t,n);var e=rn(t);function t(r,i,a,s,c){var u;return Xt(this,t),u=e.call(this),u.value=r,u.validateValue=i,u.setValue=a,u.priority=s,c&&(u.subPriority=c),u}return Qt(t,[{key:"validate",value:function(i,a){return this.validateValue(i,this.value,a)}},{key:"set",value:function(i,a,s){return this.setValue(i,a,this.value,s)}}]),t})(qM),t9=(function(n){nn(t,n);var e=rn(t);function t(){var r;Xt(this,t);for(var i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a)),Qe(tt(r),"priority",JP),Qe(tt(r),"subPriority",-1),r}return Qt(t,[{key:"set",value:function(i,a){if(a.timestampIsSet)return i;var s=new Date(0);return s.setFullYear(i.getUTCFullYear(),i.getUTCMonth(),i.getUTCDate()),s.setHours(i.getUTCHours(),i.getUTCMinutes(),i.getUTCSeconds(),i.getUTCMilliseconds()),s}}]),t})(qM),fn=(function(){function n(){Xt(this,n),Qe(this,"incompatibleTokens",void 0),Qe(this,"priority",void 0),Qe(this,"subPriority",void 0)}return Qt(n,[{key:"run",value:function(t,r,i,a){var s=this.parse(t,r,i,a);return s?{setter:new e9(s.value,this.validate,this.set,this.priority,this.subPriority),rest:s.rest}:null}},{key:"validate",value:function(t,r,i){return!0}}]),n})(),n9=(function(n){nn(t,n);var e=rn(t);function t(){var r;Xt(this,t);for(var i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a)),Qe(tt(r),"priority",140),Qe(tt(r),"incompatibleTokens",["R","u","t","T"]),r}return Qt(t,[{key:"parse",value:function(i,a,s){switch(a){case"G":case"GG":case"GGG":return s.era(i,{width:"abbreviated"})||s.era(i,{width:"narrow"});case"GGGGG":return s.era(i,{width:"narrow"});default:return s.era(i,{width:"wide"})||s.era(i,{width:"abbreviated"})||s.era(i,{width:"narrow"})}}},{key:"set",value:function(i,a,s){return a.era=s,i.setUTCFullYear(s,0,1),i.setUTCHours(0,0,0,0),i}}]),t})(fn),aj=7,r9=365.2425,i9=Math.pow(10,8)*24*60*60*1e3,Fy=6e4,Vy=36e5,a9=1e3,sj=-i9,oj=60,lj=3,cj=12,uj=4,s9=3600,dj=60,$M=s9*24,fj=$M*7,o9=$M*r9,l9=o9/12,hj=l9*3,dr={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},Ms={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function fr(n,e){return n&&{value:e(n.value),rest:n.rest}}function Gn(n,e){var t=e.match(n);return t?{value:parseInt(t[0],10),rest:e.slice(t[0].length)}:null}function Ds(n,e){var t=e.match(n);if(!t)return null;if(t[0]==="Z")return{value:0,rest:e.slice(1)};var r=t[1]==="+"?1:-1,i=t[2]?parseInt(t[2],10):0,a=t[3]?parseInt(t[3],10):0,s=t[5]?parseInt(t[5],10):0;return{value:r*(i*Vy+a*Fy+s*a9),rest:e.slice(t[0].length)}}function GM(n){return Gn(dr.anyDigitsSigned,n)}function ir(n,e){switch(n){case 1:return Gn(dr.singleDigit,e);case 2:return Gn(dr.twoDigits,e);case 3:return Gn(dr.threeDigits,e);case 4:return Gn(dr.fourDigits,e);default:return Gn(new RegExp("^\\d{1,"+n+"}"),e)}}function Yy(n,e){switch(n){case 1:return Gn(dr.singleDigitSigned,e);case 2:return Gn(dr.twoDigitsSigned,e);case 3:return Gn(dr.threeDigitsSigned,e);case 4:return Gn(dr.fourDigitsSigned,e);default:return Gn(new RegExp("^-?\\d{1,"+n+"}"),e)}}function Uw(n){switch(n){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}function ZM(n,e){var t=e>0,r=t?e:1-e,i;if(r<=50)i=n||100;else{var a=r+50,s=Math.floor(a/100)*100,c=n>=a%100;i=n+s-(c?100:0)}return t?i:1-i}function XM(n){return n%400===0||n%4===0&&n%100!==0}var c9=(function(n){nn(t,n);var e=rn(t);function t(){var r;Xt(this,t);for(var i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a)),Qe(tt(r),"priority",130),Qe(tt(r),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),r}return Qt(t,[{key:"parse",value:function(i,a,s){var c=function(f){return{year:f,isTwoDigitYear:a==="yy"}};switch(a){case"y":return fr(ir(4,i),c);case"yo":return fr(s.ordinalNumber(i,{unit:"year"}),c);default:return fr(ir(a.length,i),c)}}},{key:"validate",value:function(i,a){return a.isTwoDigitYear||a.year>0}},{key:"set",value:function(i,a,s){var c=i.getUTCFullYear();if(s.isTwoDigitYear){var u=ZM(s.year,c);return i.setUTCFullYear(u,0,1),i.setUTCHours(0,0,0,0),i}var f=!("era"in a)||a.era===1?s.year:1-s.year;return i.setUTCFullYear(f,0,1),i.setUTCHours(0,0,0,0),i}}]),t})(fn),QM={};function Al(){return QM}function pj(n){QM=n}function yu(n,e){var t,r,i,a,s,c,u,f;ft(1,arguments);var h=Al(),g=zn((t=(r=(i=(a=e?.weekStartsOn)!==null&&a!==void 0?a:e==null||(s=e.locale)===null||s===void 0||(c=s.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&i!==void 0?i:h.weekStartsOn)!==null&&r!==void 0?r:(u=h.locale)===null||u===void 0||(f=u.options)===null||f===void 0?void 0:f.weekStartsOn)!==null&&t!==void 0?t:0);if(!(g>=0&&g<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var v=Et(n),y=v.getUTCDay(),_=(y<g?7:0)+y-g;return v.setUTCDate(v.getUTCDate()-_),v.setUTCHours(0,0,0,0),v}function qw(n,e){var t,r,i,a,s,c,u,f;ft(1,arguments);var h=Et(n),g=h.getUTCFullYear(),v=Al(),y=zn((t=(r=(i=(a=e?.firstWeekContainsDate)!==null&&a!==void 0?a:e==null||(s=e.locale)===null||s===void 0||(c=s.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&i!==void 0?i:v.firstWeekContainsDate)!==null&&r!==void 0?r:(u=v.locale)===null||u===void 0||(f=u.options)===null||f===void 0?void 0:f.firstWeekContainsDate)!==null&&t!==void 0?t:1);if(!(y>=1&&y<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var _=new Date(0);_.setUTCFullYear(g+1,0,y),_.setUTCHours(0,0,0,0);var w=yu(_,e),x=new Date(0);x.setUTCFullYear(g,0,y),x.setUTCHours(0,0,0,0);var S=yu(x,e);return h.getTime()>=w.getTime()?g+1:h.getTime()>=S.getTime()?g:g-1}var u9=(function(n){nn(t,n);var e=rn(t);function t(){var r;Xt(this,t);for(var i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a)),Qe(tt(r),"priority",130),Qe(tt(r),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),r}return Qt(t,[{key:"parse",value:function(i,a,s){var c=function(f){return{year:f,isTwoDigitYear:a==="YY"}};switch(a){case"Y":return fr(ir(4,i),c);case"Yo":return fr(s.ordinalNumber(i,{unit:"year"}),c);default:return fr(ir(a.length,i),c)}}},{key:"validate",value:function(i,a){return a.isTwoDigitYear||a.year>0}},{key:"set",value:function(i,a,s,c){var u=qw(i,c);if(s.isTwoDigitYear){var f=ZM(s.year,u);return i.setUTCFullYear(f,0,c.firstWeekContainsDate),i.setUTCHours(0,0,0,0),yu(i,c)}var h=!("era"in a)||a.era===1?s.year:1-s.year;return i.setUTCFullYear(h,0,c.firstWeekContainsDate),i.setUTCHours(0,0,0,0),yu(i,c)}}]),t})(fn);function Cf(n){ft(1,arguments);var e=1,t=Et(n),r=t.getUTCDay(),i=(r<e?7:0)+r-e;return t.setUTCDate(t.getUTCDate()-i),t.setUTCHours(0,0,0,0),t}var d9=(function(n){nn(t,n);var e=rn(t);function t(){var r;Xt(this,t);for(var i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a)),Qe(tt(r),"priority",130),Qe(tt(r),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),r}return Qt(t,[{key:"parse",value:function(i,a){return Yy(a==="R"?4:a.length,i)}},{key:"set",value:function(i,a,s){var c=new Date(0);return c.setUTCFullYear(s,0,4),c.setUTCHours(0,0,0,0),Cf(c)}}]),t})(fn),f9=(function(n){nn(t,n);var e=rn(t);function t(){var r;Xt(this,t);for(var i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a)),Qe(tt(r),"priority",130),Qe(tt(r),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),r}return Qt(t,[{key:"parse",value:function(i,a){return Yy(a==="u"?4:a.length,i)}},{key:"set",value:function(i,a,s){return i.setUTCFullYear(s,0,1),i.setUTCHours(0,0,0,0),i}}]),t})(fn),h9=(function(n){nn(t,n);var e=rn(t);function t(){var r;Xt(this,t);for(var i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a)),Qe(tt(r),"priority",120),Qe(tt(r),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),r}return Qt(t,[{key:"parse",value:function(i,a,s){switch(a){case"Q":case"QQ":return ir(a.length,i);case"Qo":return s.ordinalNumber(i,{unit:"quarter"});case"QQQ":return s.quarter(i,{width:"abbreviated",context:"formatting"})||s.quarter(i,{width:"narrow",context:"formatting"});case"QQQQQ":return s.quarter(i,{width:"narrow",context:"formatting"});default:return s.quarter(i,{width:"wide",context:"formatting"})||s.quarter(i,{width:"abbreviated",context:"formatting"})||s.quarter(i,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(i,a){return a>=1&&a<=4}},{key:"set",value:function(i,a,s){return i.setUTCMonth((s-1)*3,1),i.setUTCHours(0,0,0,0),i}}]),t})(fn),p9=(function(n){nn(t,n);var e=rn(t);function t(){var r;Xt(this,t);for(var i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a)),Qe(tt(r),"priority",120),Qe(tt(r),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),r}return Qt(t,[{key:"parse",value:function(i,a,s){switch(a){case"q":case"qq":return ir(a.length,i);case"qo":return s.ordinalNumber(i,{unit:"quarter"});case"qqq":return s.quarter(i,{width:"abbreviated",context:"standalone"})||s.quarter(i,{width:"narrow",context:"standalone"});case"qqqqq":return s.quarter(i,{width:"narrow",context:"standalone"});default:return s.quarter(i,{width:"wide",context:"standalone"})||s.quarter(i,{width:"abbreviated",context:"standalone"})||s.quarter(i,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(i,a){return a>=1&&a<=4}},{key:"set",value:function(i,a,s){return i.setUTCMonth((s-1)*3,1),i.setUTCHours(0,0,0,0),i}}]),t})(fn),m9=(function(n){nn(t,n);var e=rn(t);function t(){var r;Xt(this,t);for(var i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a)),Qe(tt(r),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),Qe(tt(r),"priority",110),r}return Qt(t,[{key:"parse",value:function(i,a,s){var c=function(f){return f-1};switch(a){case"M":return fr(Gn(dr.month,i),c);case"MM":return fr(ir(2,i),c);case"Mo":return fr(s.ordinalNumber(i,{unit:"month"}),c);case"MMM":return s.month(i,{width:"abbreviated",context:"formatting"})||s.month(i,{width:"narrow",context:"formatting"});case"MMMMM":return s.month(i,{width:"narrow",context:"formatting"});default:return s.month(i,{width:"wide",context:"formatting"})||s.month(i,{width:"abbreviated",context:"formatting"})||s.month(i,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(i,a){return a>=0&&a<=11}},{key:"set",value:function(i,a,s){return i.setUTCMonth(s,1),i.setUTCHours(0,0,0,0),i}}]),t})(fn),g9=(function(n){nn(t,n);var e=rn(t);function t(){var r;Xt(this,t);for(var i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a)),Qe(tt(r),"priority",110),Qe(tt(r),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),r}return Qt(t,[{key:"parse",value:function(i,a,s){var c=function(f){return f-1};switch(a){case"L":return fr(Gn(dr.month,i),c);case"LL":return fr(ir(2,i),c);case"Lo":return fr(s.ordinalNumber(i,{unit:"month"}),c);case"LLL":return s.month(i,{width:"abbreviated",context:"standalone"})||s.month(i,{width:"narrow",context:"standalone"});case"LLLLL":return s.month(i,{width:"narrow",context:"standalone"});default:return s.month(i,{width:"wide",context:"standalone"})||s.month(i,{width:"abbreviated",context:"standalone"})||s.month(i,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(i,a){return a>=0&&a<=11}},{key:"set",value:function(i,a,s){return i.setUTCMonth(s,1),i.setUTCHours(0,0,0,0),i}}]),t})(fn);function v9(n,e){var t,r,i,a,s,c,u,f;ft(1,arguments);var h=Al(),g=zn((t=(r=(i=(a=e?.firstWeekContainsDate)!==null&&a!==void 0?a:e==null||(s=e.locale)===null||s===void 0||(c=s.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&i!==void 0?i:h.firstWeekContainsDate)!==null&&r!==void 0?r:(u=h.locale)===null||u===void 0||(f=u.options)===null||f===void 0?void 0:f.firstWeekContainsDate)!==null&&t!==void 0?t:1),v=qw(n,e),y=new Date(0);y.setUTCFullYear(v,0,g),y.setUTCHours(0,0,0,0);var _=yu(y,e);return _}var y9=6048e5;function KM(n,e){ft(1,arguments);var t=Et(n),r=yu(t,e).getTime()-v9(t,e).getTime();return Math.round(r/y9)+1}function b9(n,e,t){ft(2,arguments);var r=Et(n),i=zn(e),a=KM(r,t)-i;return r.setUTCDate(r.getUTCDate()-a*7),r}var _9=(function(n){nn(t,n);var e=rn(t);function t(){var r;Xt(this,t);for(var i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a)),Qe(tt(r),"priority",100),Qe(tt(r),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),r}return Qt(t,[{key:"parse",value:function(i,a,s){switch(a){case"w":return Gn(dr.week,i);case"wo":return s.ordinalNumber(i,{unit:"week"});default:return ir(a.length,i)}}},{key:"validate",value:function(i,a){return a>=1&&a<=53}},{key:"set",value:function(i,a,s,c){return yu(b9(i,s,c),c)}}]),t})(fn);function JM(n){ft(1,arguments);var e=Et(n),t=e.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(t+1,0,4),r.setUTCHours(0,0,0,0);var i=Cf(r),a=new Date(0);a.setUTCFullYear(t,0,4),a.setUTCHours(0,0,0,0);var s=Cf(a);return e.getTime()>=i.getTime()?t+1:e.getTime()>=s.getTime()?t:t-1}function w9(n){ft(1,arguments);var e=JM(n),t=new Date(0);t.setUTCFullYear(e,0,4),t.setUTCHours(0,0,0,0);var r=Cf(t);return r}var E9=6048e5;function eD(n){ft(1,arguments);var e=Et(n),t=Cf(e).getTime()-w9(e).getTime();return Math.round(t/E9)+1}function x9(n,e){ft(2,arguments);var t=Et(n),r=zn(e),i=eD(t)-r;return t.setUTCDate(t.getUTCDate()-i*7),t}var S9=(function(n){nn(t,n);var e=rn(t);function t(){var r;Xt(this,t);for(var i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a)),Qe(tt(r),"priority",100),Qe(tt(r),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),r}return Qt(t,[{key:"parse",value:function(i,a,s){switch(a){case"I":return Gn(dr.week,i);case"Io":return s.ordinalNumber(i,{unit:"week"});default:return ir(a.length,i)}}},{key:"validate",value:function(i,a){return a>=1&&a<=53}},{key:"set",value:function(i,a,s){return Cf(x9(i,s))}}]),t})(fn),C9=[31,28,31,30,31,30,31,31,30,31,30,31],T9=[31,29,31,30,31,30,31,31,30,31,30,31],M9=(function(n){nn(t,n);var e=rn(t);function t(){var r;Xt(this,t);for(var i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a)),Qe(tt(r),"priority",90),Qe(tt(r),"subPriority",1),Qe(tt(r),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),r}return Qt(t,[{key:"parse",value:function(i,a,s){switch(a){case"d":return Gn(dr.date,i);case"do":return s.ordinalNumber(i,{unit:"date"});default:return ir(a.length,i)}}},{key:"validate",value:function(i,a){var s=i.getUTCFullYear(),c=XM(s),u=i.getUTCMonth();return c?a>=1&&a<=T9[u]:a>=1&&a<=C9[u]}},{key:"set",value:function(i,a,s){return i.setUTCDate(s),i.setUTCHours(0,0,0,0),i}}]),t})(fn),D9=(function(n){nn(t,n);var e=rn(t);function t(){var r;Xt(this,t);for(var i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a)),Qe(tt(r),"priority",90),Qe(tt(r),"subpriority",1),Qe(tt(r),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),r}return Qt(t,[{key:"parse",value:function(i,a,s){switch(a){case"D":case"DD":return Gn(dr.dayOfYear,i);case"Do":return s.ordinalNumber(i,{unit:"date"});default:return ir(a.length,i)}}},{key:"validate",value:function(i,a){var s=i.getUTCFullYear(),c=XM(s);return c?a>=1&&a<=366:a>=1&&a<=365}},{key:"set",value:function(i,a,s){return i.setUTCMonth(0,s),i.setUTCHours(0,0,0,0),i}}]),t})(fn);function $w(n,e,t){var r,i,a,s,c,u,f,h;ft(2,arguments);var g=Al(),v=zn((r=(i=(a=(s=t?.weekStartsOn)!==null&&s!==void 0?s:t==null||(c=t.locale)===null||c===void 0||(u=c.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&a!==void 0?a:g.weekStartsOn)!==null&&i!==void 0?i:(f=g.locale)===null||f===void 0||(h=f.options)===null||h===void 0?void 0:h.weekStartsOn)!==null&&r!==void 0?r:0);if(!(v>=0&&v<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var y=Et(n),_=zn(e),w=y.getUTCDay(),x=_%7,S=(x+7)%7,T=(S<v?7:0)+_-w;return y.setUTCDate(y.getUTCDate()+T),y}var O9=(function(n){nn(t,n);var e=rn(t);function t(){var r;Xt(this,t);for(var i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a)),Qe(tt(r),"priority",90),Qe(tt(r),"incompatibleTokens",["D","i","e","c","t","T"]),r}return Qt(t,[{key:"parse",value:function(i,a,s){switch(a){case"E":case"EE":case"EEE":return s.day(i,{width:"abbreviated",context:"formatting"})||s.day(i,{width:"short",context:"formatting"})||s.day(i,{width:"narrow",context:"formatting"});case"EEEEE":return s.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return s.day(i,{width:"short",context:"formatting"})||s.day(i,{width:"narrow",context:"formatting"});default:return s.day(i,{width:"wide",context:"formatting"})||s.day(i,{width:"abbreviated",context:"formatting"})||s.day(i,{width:"short",context:"formatting"})||s.day(i,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(i,a){return a>=0&&a<=6}},{key:"set",value:function(i,a,s,c){return i=$w(i,s,c),i.setUTCHours(0,0,0,0),i}}]),t})(fn),k9=(function(n){nn(t,n);var e=rn(t);function t(){var r;Xt(this,t);for(var i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a)),Qe(tt(r),"priority",90),Qe(tt(r),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),r}return Qt(t,[{key:"parse",value:function(i,a,s,c){var u=function(h){var g=Math.floor((h-1)/7)*7;return(h+c.weekStartsOn+6)%7+g};switch(a){case"e":case"ee":return fr(ir(a.length,i),u);case"eo":return fr(s.ordinalNumber(i,{unit:"day"}),u);case"eee":return s.day(i,{width:"abbreviated",context:"formatting"})||s.day(i,{width:"short",context:"formatting"})||s.day(i,{width:"narrow",context:"formatting"});case"eeeee":return s.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return s.day(i,{width:"short",context:"formatting"})||s.day(i,{width:"narrow",context:"formatting"});default:return s.day(i,{width:"wide",context:"formatting"})||s.day(i,{width:"abbreviated",context:"formatting"})||s.day(i,{width:"short",context:"formatting"})||s.day(i,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(i,a){return a>=0&&a<=6}},{key:"set",value:function(i,a,s,c){return i=$w(i,s,c),i.setUTCHours(0,0,0,0),i}}]),t})(fn),L9=(function(n){nn(t,n);var e=rn(t);function t(){var r;Xt(this,t);for(var i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a)),Qe(tt(r),"priority",90),Qe(tt(r),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),r}return Qt(t,[{key:"parse",value:function(i,a,s,c){var u=function(h){var g=Math.floor((h-1)/7)*7;return(h+c.weekStartsOn+6)%7+g};switch(a){case"c":case"cc":return fr(ir(a.length,i),u);case"co":return fr(s.ordinalNumber(i,{unit:"day"}),u);case"ccc":return s.day(i,{width:"abbreviated",context:"standalone"})||s.day(i,{width:"short",context:"standalone"})||s.day(i,{width:"narrow",context:"standalone"});case"ccccc":return s.day(i,{width:"narrow",context:"standalone"});case"cccccc":return s.day(i,{width:"short",context:"standalone"})||s.day(i,{width:"narrow",context:"standalone"});default:return s.day(i,{width:"wide",context:"standalone"})||s.day(i,{width:"abbreviated",context:"standalone"})||s.day(i,{width:"short",context:"standalone"})||s.day(i,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(i,a){return a>=0&&a<=6}},{key:"set",value:function(i,a,s,c){return i=$w(i,s,c),i.setUTCHours(0,0,0,0),i}}]),t})(fn);function A9(n,e){ft(2,arguments);var t=zn(e);t%7===0&&(t=t-7);var r=1,i=Et(n),a=i.getUTCDay(),s=t%7,c=(s+7)%7,u=(c<r?7:0)+t-a;return i.setUTCDate(i.getUTCDate()+u),i}var R9=(function(n){nn(t,n);var e=rn(t);function t(){var r;Xt(this,t);for(var i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a)),Qe(tt(r),"priority",90),Qe(tt(r),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),r}return Qt(t,[{key:"parse",value:function(i,a,s){var c=function(f){return f===0?7:f};switch(a){case"i":case"ii":return ir(a.length,i);case"io":return s.ordinalNumber(i,{unit:"day"});case"iii":return fr(s.day(i,{width:"abbreviated",context:"formatting"})||s.day(i,{width:"short",context:"formatting"})||s.day(i,{width:"narrow",context:"formatting"}),c);case"iiiii":return fr(s.day(i,{width:"narrow",context:"formatting"}),c);case"iiiiii":return fr(s.day(i,{width:"short",context:"formatting"})||s.day(i,{width:"narrow",context:"formatting"}),c);default:return fr(s.day(i,{width:"wide",context:"formatting"})||s.day(i,{width:"abbreviated",context:"formatting"})||s.day(i,{width:"short",context:"formatting"})||s.day(i,{width:"narrow",context:"formatting"}),c)}}},{key:"validate",value:function(i,a){return a>=1&&a<=7}},{key:"set",value:function(i,a,s){return i=A9(i,s),i.setUTCHours(0,0,0,0),i}}]),t})(fn),I9=(function(n){nn(t,n);var e=rn(t);function t(){var r;Xt(this,t);for(var i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a)),Qe(tt(r),"priority",80),Qe(tt(r),"incompatibleTokens",["b","B","H","k","t","T"]),r}return Qt(t,[{key:"parse",value:function(i,a,s){switch(a){case"a":case"aa":case"aaa":return s.dayPeriod(i,{width:"abbreviated",context:"formatting"})||s.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaaa":return s.dayPeriod(i,{width:"narrow",context:"formatting"});default:return s.dayPeriod(i,{width:"wide",context:"formatting"})||s.dayPeriod(i,{width:"abbreviated",context:"formatting"})||s.dayPeriod(i,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(i,a,s){return i.setUTCHours(Uw(s),0,0,0),i}}]),t})(fn),N9=(function(n){nn(t,n);var e=rn(t);function t(){var r;Xt(this,t);for(var i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a)),Qe(tt(r),"priority",80),Qe(tt(r),"incompatibleTokens",["a","B","H","k","t","T"]),r}return Qt(t,[{key:"parse",value:function(i,a,s){switch(a){case"b":case"bb":case"bbb":return s.dayPeriod(i,{width:"abbreviated",context:"formatting"})||s.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbbb":return s.dayPeriod(i,{width:"narrow",context:"formatting"});default:return s.dayPeriod(i,{width:"wide",context:"formatting"})||s.dayPeriod(i,{width:"abbreviated",context:"formatting"})||s.dayPeriod(i,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(i,a,s){return i.setUTCHours(Uw(s),0,0,0),i}}]),t})(fn),P9=(function(n){nn(t,n);var e=rn(t);function t(){var r;Xt(this,t);for(var i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a)),Qe(tt(r),"priority",80),Qe(tt(r),"incompatibleTokens",["a","b","t","T"]),r}return Qt(t,[{key:"parse",value:function(i,a,s){switch(a){case"B":case"BB":case"BBB":return s.dayPeriod(i,{width:"abbreviated",context:"formatting"})||s.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBBB":return s.dayPeriod(i,{width:"narrow",context:"formatting"});default:return s.dayPeriod(i,{width:"wide",context:"formatting"})||s.dayPeriod(i,{width:"abbreviated",context:"formatting"})||s.dayPeriod(i,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(i,a,s){return i.setUTCHours(Uw(s),0,0,0),i}}]),t})(fn),B9=(function(n){nn(t,n);var e=rn(t);function t(){var r;Xt(this,t);for(var i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a)),Qe(tt(r),"priority",70),Qe(tt(r),"incompatibleTokens",["H","K","k","t","T"]),r}return Qt(t,[{key:"parse",value:function(i,a,s){switch(a){case"h":return Gn(dr.hour12h,i);case"ho":return s.ordinalNumber(i,{unit:"hour"});default:return ir(a.length,i)}}},{key:"validate",value:function(i,a){return a>=1&&a<=12}},{key:"set",value:function(i,a,s){var c=i.getUTCHours()>=12;return c&&s<12?i.setUTCHours(s+12,0,0,0):!c&&s===12?i.setUTCHours(0,0,0,0):i.setUTCHours(s,0,0,0),i}}]),t})(fn),H9=(function(n){nn(t,n);var e=rn(t);function t(){var r;Xt(this,t);for(var i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a)),Qe(tt(r),"priority",70),Qe(tt(r),"incompatibleTokens",["a","b","h","K","k","t","T"]),r}return Qt(t,[{key:"parse",value:function(i,a,s){switch(a){case"H":return Gn(dr.hour23h,i);case"Ho":return s.ordinalNumber(i,{unit:"hour"});default:return ir(a.length,i)}}},{key:"validate",value:function(i,a){return a>=0&&a<=23}},{key:"set",value:function(i,a,s){return i.setUTCHours(s,0,0,0),i}}]),t})(fn),z9=(function(n){nn(t,n);var e=rn(t);function t(){var r;Xt(this,t);for(var i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a)),Qe(tt(r),"priority",70),Qe(tt(r),"incompatibleTokens",["h","H","k","t","T"]),r}return Qt(t,[{key:"parse",value:function(i,a,s){switch(a){case"K":return Gn(dr.hour11h,i);case"Ko":return s.ordinalNumber(i,{unit:"hour"});default:return ir(a.length,i)}}},{key:"validate",value:function(i,a){return a>=0&&a<=11}},{key:"set",value:function(i,a,s){var c=i.getUTCHours()>=12;return c&&s<12?i.setUTCHours(s+12,0,0,0):i.setUTCHours(s,0,0,0),i}}]),t})(fn),F9=(function(n){nn(t,n);var e=rn(t);function t(){var r;Xt(this,t);for(var i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a)),Qe(tt(r),"priority",70),Qe(tt(r),"incompatibleTokens",["a","b","h","H","K","t","T"]),r}return Qt(t,[{key:"parse",value:function(i,a,s){switch(a){case"k":return Gn(dr.hour24h,i);case"ko":return s.ordinalNumber(i,{unit:"hour"});default:return ir(a.length,i)}}},{key:"validate",value:function(i,a){return a>=1&&a<=24}},{key:"set",value:function(i,a,s){var c=s<=24?s%24:s;return i.setUTCHours(c,0,0,0),i}}]),t})(fn),V9=(function(n){nn(t,n);var e=rn(t);function t(){var r;Xt(this,t);for(var i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a)),Qe(tt(r),"priority",60),Qe(tt(r),"incompatibleTokens",["t","T"]),r}return Qt(t,[{key:"parse",value:function(i,a,s){switch(a){case"m":return Gn(dr.minute,i);case"mo":return s.ordinalNumber(i,{unit:"minute"});default:return ir(a.length,i)}}},{key:"validate",value:function(i,a){return a>=0&&a<=59}},{key:"set",value:function(i,a,s){return i.setUTCMinutes(s,0,0),i}}]),t})(fn),Y9=(function(n){nn(t,n);var e=rn(t);function t(){var r;Xt(this,t);for(var i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a)),Qe(tt(r),"priority",50),Qe(tt(r),"incompatibleTokens",["t","T"]),r}return Qt(t,[{key:"parse",value:function(i,a,s){switch(a){case"s":return Gn(dr.second,i);case"so":return s.ordinalNumber(i,{unit:"second"});default:return ir(a.length,i)}}},{key:"validate",value:function(i,a){return a>=0&&a<=59}},{key:"set",value:function(i,a,s){return i.setUTCSeconds(s,0),i}}]),t})(fn),j9=(function(n){nn(t,n);var e=rn(t);function t(){var r;Xt(this,t);for(var i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a)),Qe(tt(r),"priority",30),Qe(tt(r),"incompatibleTokens",["t","T"]),r}return Qt(t,[{key:"parse",value:function(i,a){var s=function(u){return Math.floor(u*Math.pow(10,-a.length+3))};return fr(ir(a.length,i),s)}},{key:"set",value:function(i,a,s){return i.setUTCMilliseconds(s),i}}]),t})(fn),W9=(function(n){nn(t,n);var e=rn(t);function t(){var r;Xt(this,t);for(var i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a)),Qe(tt(r),"priority",10),Qe(tt(r),"incompatibleTokens",["t","T","x"]),r}return Qt(t,[{key:"parse",value:function(i,a){switch(a){case"X":return Ds(Ms.basicOptionalMinutes,i);case"XX":return Ds(Ms.basic,i);case"XXXX":return Ds(Ms.basicOptionalSeconds,i);case"XXXXX":return Ds(Ms.extendedOptionalSeconds,i);default:return Ds(Ms.extended,i)}}},{key:"set",value:function(i,a,s){return a.timestampIsSet?i:new Date(i.getTime()-s)}}]),t})(fn),U9=(function(n){nn(t,n);var e=rn(t);function t(){var r;Xt(this,t);for(var i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a)),Qe(tt(r),"priority",10),Qe(tt(r),"incompatibleTokens",["t","T","X"]),r}return Qt(t,[{key:"parse",value:function(i,a){switch(a){case"x":return Ds(Ms.basicOptionalMinutes,i);case"xx":return Ds(Ms.basic,i);case"xxxx":return Ds(Ms.basicOptionalSeconds,i);case"xxxxx":return Ds(Ms.extendedOptionalSeconds,i);default:return Ds(Ms.extended,i)}}},{key:"set",value:function(i,a,s){return a.timestampIsSet?i:new Date(i.getTime()-s)}}]),t})(fn),q9=(function(n){nn(t,n);var e=rn(t);function t(){var r;Xt(this,t);for(var i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a)),Qe(tt(r),"priority",40),Qe(tt(r),"incompatibleTokens","*"),r}return Qt(t,[{key:"parse",value:function(i){return GM(i)}},{key:"set",value:function(i,a,s){return[new Date(s*1e3),{timestampIsSet:!0}]}}]),t})(fn),$9=(function(n){nn(t,n);var e=rn(t);function t(){var r;Xt(this,t);for(var i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a)),Qe(tt(r),"priority",20),Qe(tt(r),"incompatibleTokens","*"),r}return Qt(t,[{key:"parse",value:function(i){return GM(i)}},{key:"set",value:function(i,a,s){return[new Date(s),{timestampIsSet:!0}]}}]),t})(fn),G9={G:new n9,y:new c9,Y:new u9,R:new d9,u:new f9,Q:new h9,q:new p9,M:new m9,L:new g9,w:new _9,I:new S9,d:new M9,D:new D9,E:new O9,e:new k9,c:new L9,i:new R9,a:new I9,b:new N9,B:new P9,h:new B9,H:new H9,K:new z9,k:new F9,m:ne
389w V9,s:new Y9,S:new j9,X:new W9,x:new U9,t:new q9,T:new $9},Z9=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,X9=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Q9=/^'([^]*?)'?$/,K9=/''/g,J9=/\S/,eB=/[a-zA-Z]/;function tB(n,e,t,r){var i,a,s,c,u,f,h,g,v,y,_,w,x,S,T,M,C,k;ft(3,arguments);var L=String(n),O=String(e),I=Al(),P=(i=(a=r?.locale)!==null&&a!==void 0?a:I.locale)!==null&&i!==void 0?i:HM;if(!P.match)throw new RangeError("locale must contain match property");var B=zn((s=(c=(u=(f=r?.firstWeekContainsDate)!==null&&f!==void 0?f:r==null||(h=r.locale)===null||h===void 0||(g=h.options)===null||g===void 0?void 0:g.firstWeekContainsDate)!==null&&u!==void 0?u:I.firstWeekContainsDate)!==null&&c!==void 0?c:(v=I.locale)===null||v===void 0||(y=v.options)===null||y===void 0?void 0:y.firstWeekContainsDate)!==null&&s!==void 0?s:1);if(!(B>=1&&B<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var H=zn((_=(w=(x=(S=r?.weekStartsOn)!==null&&S!==void 0?S:r==null||(T=r.locale)===null||T===void 0||(M=T.options)===null||M===void 0?void 0:M.weekStartsOn)!==null&&x!==void 0?x:I.weekStartsOn)!==null&&w!==void 0?w:(C=I.locale)===null||C===void 0||(k=C.options)===null||k===void 0?void 0:k.weekStartsOn)!==null&&_!==void 0?_:0);if(!(H>=0&&H<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(O==="")return L===""?Et(t):new Date(NaN);var F={firstWeekContainsDate:B,weekStartsOn:H,locale:P},$=[new t9],V=O.match(X9).map(function(Ge){var Re=Ge[0];if(Re in Ww){var Ze=Ww[Re];return Ze(Ge,P.formatLong)}return Ge}).join("").match(Z9),W=[],ee=BM(V),q;try{var Y=function(){var Re=q.value;!(r!=null&&r.useAdditionalWeekYearTokens)&&jM(Re)&&Hy(Re,O,n),!(r!=null&&r.useAdditionalDayOfYearTokens)&&YM(Re)&&Hy(Re,O,n);var Ze=Re[0],pe=G9[Ze];if(pe){var Ie=pe.incompatibleTokens;if(Array.isArray(Ie)){var Ke=W.find(function(Ot){return Ie.includes(Ot.token)||Ot.token===Ze});if(Ke)throw new RangeError("The format string mustn't contain `".concat(Ke.fullToken,"` and `").concat(Re,"` at the same time"))}else if(pe.incompatibleTokens==="*"&&W.length>0)throw new RangeError("The format string mustn't contain `".concat(Re,"` and any other token at the same time"));W.push({token:Ze,fullToken:Re});var nt=pe.run(L,Re,P.match,F);if(!nt)return{v:new Date(NaN)};$.push(nt.setter),L=nt.rest}else{if(Ze.match(eB))throw new RangeError("Format string contains an unescaped latin alphabet character `"+Ze+"`");if(Re==="''"?Re="'":Ze==="'"&&(Re=nB(Re)),L.indexOf(Re)===0)L=L.slice(Re.length);else return{v:new Date(NaN)}}};for(ee.s();!(q=ee.n()).done;){var ae=Y();if(Or(ae)==="object")return ae.v}}catch(Ge){ee.e(Ge)}finally{ee.f()}if(L.length>0&&J9.test(L))return new Date(NaN);var ue=$.map(function(Ge){return Ge.priority}).sort(function(Ge,Re){return Re-Ge}).filter(function(Ge,Re,Ze){return Ze.indexOf(Ge)===Re}).map(function(Ge){return $.filter(function(Re){return Re.priority===Ge}).sort(function(Re,Ze){return Ze.subPriority-Re.subPriority})}).map(function(Ge){return Ge[0]}),We=Et(t);if(isNaN(We.getTime()))return new Date(NaN);var be=zM(We,By(We)),_e={},qe=BM(ue),je;try{for(qe.s();!(je=qe.n()).done;){var ct=je.value;if(!ct.validate(be,F))return new Date(NaN);var ht=ct.set(be,_e,F);Array.isArray(ht)?(be=ht[0],$P(_e,ht[1])):be=ht}}catch(Ge){qe.e(Ge)}finally{qe.f()}return be}function nB(n){return n.match(Q9)[1].replace(K9,"'")}function rB(n,e){var t;ft(1,arguments);var r=zn((t=e?.additionalDigits)!==null&&t!==void 0?t:2);if(r!==2&&r!==1&&r!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(!(typeof n=="string"||Object.prototype.toString.call(n)==="[object String]"))return new Date(NaN);var i=oB(n),a;if(i.date){var s=lB(i.date,r);a=cB(s.restDateString,s.year)}if(!a||isNaN(a.getTime()))return new Date(NaN);var c=a.getTime(),u=0,f;if(i.time&&(u=uB(i.time),isNaN(u)))return new Date(NaN);if(i.timezone){if(f=dB(i.timezone),isNaN(f))return new Date(NaN)}else{var h=new Date(c+u),g=new Date(0);return g.setFullYear(h.getUTCFullYear(),h.getUTCMonth(),h.getUTCDate()),g.setHours(h.getUTCHours(),h.getUTCMinutes(),h.getUTCSeconds(),h.getUTCMilliseconds()),g}return new Date(c+u+f)}
389var jy={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},iB=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,aB=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,sB=/^([+-])(\d{2})(?::?(\d{2}))?$/;function oB(n){var e={},t=n.split(jy.dateTimeDelimiter),r;if(t.length>2)return e;if(/:/.test(t[0])?r=t[0]:(e.date=t[0],r=t[1],jy.timeZoneDelimiter.test(e.date)&&(e.date=n.split(jy.timeZoneDelimiter)[0],r=n.substr(e.date.length,n.length))),r){var i=jy.timezone.exec(r);i?(e.time=r.replace(i[1],""),e.timezone=i[1]):e.time=r}return e}function lB(n,e){var t=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+e)+"})|(\\d{2}|[+-]\\d{"+(2+e)+"})$)"),r=n.match(t);if(!r)return{year:NaN,restDateString:""};var i=r[1]?parseInt(r[1]):null,a=r[2]?parseInt(r[2]):null;return{year:a===null?i:a*100,restDateString:n.slice((r[1]||r[2]).length)}}function cB(n,e){if(e===null)return new Date(NaN);var t=n.match(iB);if(!t)return new Date(NaN);var r=!!t[4],i=Dm(t[1]),a=Dm(t[2])-1,s=Dm(t[3]),c=Dm(t[4]),u=Dm(t[5])-1;if(r)return gB(e,c,u)?fB(e,c,u):new Date(NaN);var f=new Date(0);return!pB(e,a,s)||!mB(e,i)?new Date(NaN):(f.setUTCFullYear(e,a,Math.max(i,s)),f)}function Dm(n){return n?parseInt(n):1}function uB(n){var e=n.match(aB);if(!e)return NaN;var t=Gw(e[1]),r=Gw(e[2]),i=Gw(e[3]);return vB(t,r,i)?t*Vy+r*Fy+i*1e3:NaN}function Gw(n){return n&&parseFloat(n.replace(",","."))||0}function dB(n){if(n==="Z")return 0;var e=n.match(sB);if(!e)return 0;var t=e[1]==="+"?-1:1,r=parseInt(e[2]),i=e[3]&&parseInt(e[3])||0;return yB(r,i)?t*(r*Vy+i*Fy):NaN}function fB(n,e,t){var r=new Date(0);r.setUTCFullYear(n,0,4);var i=r.getUTCDay()||7,a=(e-1)*7+t+1-i;return r.setUTCDate(r.getUTCDate()+a),r}var hB=[31,null,31,30,31,30,31,31,30,31,30,31];function tD(n){return n%400===0||n%4===0&&n%100!==0}function pB(n,e,t){return e>=0&&e<=11&&t>=1&&t<=(hB[e]||(tD(n)?29:28))}function mB(n,e){return e>=1&&e<=(tD(n)?366:365)}function gB(n,e,t){return e>=1&&e<=53&&t>=0&&t<=6}function vB(n,e,t){return n===24?e===0&&t===0:t>=0&&t<60&&e>=0&&e<60&&n>=0&&n<25}function yB(n,e){return e>=0&&e<=59}function bB(n){return ft(1,arguments),n instanceof Date||Or(n)==="object"&&Object.prototype.toString.call(n)==="[object Date]"}function nD(n){if(ft(1,arguments),!bB(n)&&typeof n!="number")return!1;var e=Et(n);return!isNaN(Number(e))}var _B=864e5;function wB(n){ft(1,arguments);var e=Et(n),t=e.getTime();e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0);var r=e.getTime(),i=t-r;return Math.floor(i/_B)+1}function wn(n,e){for(var t=n<0?"-":"",r=Math.abs(n).toString();r.length<e;)r="0"+r;return t+r}var EB={y:function(e,t){var r=e.getUTCFullYear(),i=r>0?r:1-r;return wn(t==="yy"?i%100:i,t.length)},M:function(e,t){var r=e.getUTCMonth();return t==="M"?String(r+1):wn(r+1,2)},d:function(e,t){return wn(e.getUTCDate(),t.length)},a:function(e,t){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];default:return r==="am"?"a.m.":"p.m."}},h:function(e,t){return wn(e.getUTCHours()%12||12,t.length)},H:function(e,t){return wn(e.getUTCHours(),t.length)},m:function(e,t){return wn(e.getUTCMinutes(),t.length)},s:function(e,t){return wn(e.getUTCSeconds(),t.length)},S:function(e,t){var r=t.length,i=e.getUTCMilliseconds(),a=Math.floor(i*Math.pow(10,r-3));return wn(a,t.length)}};const Rl=EB;var Tf={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},xB={G:function(e,t,r){var i=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(i,{width:"abbreviated"});case"GGGGG":return r.era(i,{width:"narrow"});default:return r.era(i,{width:"wide"})}},y:function(e,t,r){if(t==="yo"){var i=e.getUTCFullYear(),a=i>0?i:1-i;return r.ordinalNumber(a,{unit:"year"})}return Rl.y(e,t)},Y:function(e,t,r,i){var a=qw(e,i),s=a>0?a:1-a;if(t==="YY"){var c=s%100;return wn(c,2)}return t==="Yo"?r.ordinalNumber(s,{unit:"year"}):wn(s,t.length)},R:function(e,t){var r=JM(e);return wn(r,t.length)},u:function(e,t){var r=e.getUTCFullYear();return wn(r,t.length)},Q:function(e,t,r){var i=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(i);case"QQ":return wn(i,2);case"Qo":return r.ordinalNumber(i,{unit:"quarter"});case"QQQ":return r.quarter(i,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(i,{width:"narrow",context:"formatting"});default:return r.quarter(i,{width:"wide",context:"formatting"})}},q:function(e,t,r){var i=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(i);case"qq":return wn(i,2);case"qo":return r.ordinalNumber(i,{unit:"quarter"});case"qqq":return r.quarter(i,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(i,{width:"narrow",context:"standalone"});default:return r.quarter(i,{width:"wide",context:"standalone"})}},M:function(e,t,r){var i=e.getUTCMonth();switch(t){case"M":case"MM":return Rl.M(e,t);case"Mo":return r.ordinalNumber(i+1,{unit:"month"});case"MMM":return r.month(i,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(i,{width:"narrow",context:"formatting"});default:return r.month(i,{width:"wide",context:"formatting"})}},L:function(e,t,r){var i=e.getUTCMonth();switch(t){case"L":return String(i+1);case"LL":return wn(i+1,2);case"Lo":return r.ordinalNumber(i+1,{unit:"month"});case"LLL":return r.month(i,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(i,{width:"narrow",context:"standalone"});default:return r.month(i,{width:"wide",context:"standalone"})}},w:function(e,t,r,i){var a=KM(e,i);return t==="wo"?r.ordinalNumber(a,{unit:"week"}):wn(a,t.length)},I:function(e,t,r){var i=eD(e);return t==="Io"?r.ordinalNumber(i,{unit:"week"}):wn(i,t.length)},d:function(e,t,r){return t==="do"?r.ordinalNumber(e.getUTCDate(),{unit:"date"}):Rl.d(e,t)},D:function(e,t,r){var i=wB(e);return t==="Do"?r.ordinalNumber(i,{unit:"dayOfYear"}):wn(i,t.length)},E:function(e,t,r){var i=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return r.day(i,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(i,{width:"short",context:"formatting"});default:return r.day(i,{width:"wide",context:"formatting"})}},e:function(e,t,r,i){var a=e.getUTCDay(),s=(a-i.weekStartsOn+8)%7||7;switch(t){case"e":return String(s);case"ee":return wn(s,2);case"eo":return r.ordinalNumber(s,{unit:"day"});case"eee":return r.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(a,{width:"short",context:"formatting"});default:return r.day(a,{width:"wide",context:"formatting"})}},c:function(e,t,r,i){var a=e.getUTCDay(),s=(a-i.weekStartsOn+8)%7||7;switch(t){case"c":return String(s);case"cc":return wn(s,t.length);case"co":return r.ordinalNumber(s,{unit:"day"});case"ccc":return r.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(a,{width:"narrow",context:"standalone"});case"cccccc":return r.day(a,{width:"short",context:"standalone"});default:return r.day(a,{width:"wide",context:"standalone"})}},i:function(e,t,r){var i=e.getUTCDay(),a=i===0?7:i;switch(t){case"i":return String(a);case"ii":return wn(a,t.length);case"io":return r.ordinalNumber(a,{unit:"day"});case"iii":return r.day(i,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(i,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(i,{width:"short",context:"formatting"});default:return r.day(i,{width:"wide",context:"formatting"})}},a:function(e,t,r){var i=e.getUTCHours(),a=i/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(a,{width:"narrow",context:"formatting"});default:return r.dayPeriod(a,{width:"wide",context:"formatting"})}},b:function(e,t,r){var i=e.getUTCHours(),a;switch(i===12?a=Tf.noon:i===0?a=Tf.midnight:a=i/12>
389=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(a,{width:"narrow",context:"formatting"});default:return r.dayPeriod(a,{width:"wide",context:"formatting"})}},B:function(e,t,r){var i=e.getUTCHours(),a;switch(i>=17?a=Tf.evening:i>=12?a=Tf.afternoon:i>=4?a=Tf.morning:a=Tf.night,t){case"B":case"BB":case"BBB":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(a,{width:"narrow",context:"formatting"});default:return r.dayPeriod(a,{width:"wide",context:"formatting"})}},h:function(e,t,r){if(t==="ho"){var i=e.getUTCHours()%12;return i===0&&(i=12),r.ordinalNumber(i,{unit:"hour"})}return Rl.h(e,t)},H:function(e,t,r){return t==="Ho"?r.ordinalNumber(e.getUTCHours(),{unit:"hour"}):Rl.H(e,t)},K:function(e,t,r){var i=e.getUTCHours()%12;return t==="Ko"?r.ordinalNumber(i,{unit:"hour"}):wn(i,t.length)},k:function(e,t,r){var i=e.getUTCHours();return i===0&&(i=24),t==="ko"?r.ordinalNumber(i,{unit:"hour"}):wn(i,t.length)},m:function(e,t,r){return t==="mo"?r.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):Rl.m(e,t)},s:function(e,t,r){return t==="so"?r.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):Rl.s(e,t)},S:function(e,t){return Rl.S(e,t)},X:function(e,t,r,i){var a=i._originalDate||e,s=a.getTimezoneOffset();if(s===0)return"Z";switch(t){case"X":return iD(s);case"XXXX":case"XX":return bu(s);default:return bu(s,":")}},x:function(e,t,r,i){var a=i._originalDate||e,s=a.getTimezoneOffset();switch(t){case"x":return iD(s);case"xxxx":case"xx":return bu(s);default:return bu(s,":")}},O:function(e,t,r,i){var a=i._originalDate||e,s=a.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+rD(s,":");default:return"GMT"+bu(s,":")}},z:function(e,t,r,i){var a=i._originalDate||e,s=a.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+rD(s,":");default:return"GMT"+bu(s,":")}},t:function(e,t,r,i){var a=i._originalDate||e,s=Math.floor(a.getTime()/1e3);return wn(s,t.length)},T:function(e,t,r,i){var a=i._originalDate||e,s=a.getTime();return wn(s,t.length)}};function rD(n,e){var t=n>0?"-":"+",r=Math.abs(n),i=Math.floor(r/60),a=r%60;if(a===0)return t+String(i);var s=e||"";return t+String(i)+s+wn(a,2)}function iD(n,e){if(n%60===0){var t=n>0?"-":"+";return t+wn(Math.abs(n)/60,2)}return bu(n,e)}function bu(n,e){var t=e||"",r=n>0?"-":"+",i=Math.abs(n),a=wn(Math.floor(i/60),2),s=wn(i%60,2);return r+a+t+s}const SB=xB;var CB=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,TB=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,MB=/^'([^]*?)'?$/,DB=/''/g,OB=/[a-zA-Z]/;function kB(n,e,t){var r,i,a,s,c,u,f,h,g,v,y,_,w,x,S,T,M,C;ft(2,arguments);var k=String(e),L=Al(),O=(r=(i=t?.locale)!==null&&i!==void 0?i:L.locale)!==null&&r!==void 0?r:HM,I=zn((a=(s=(c=(u=t?.firstWeekContainsDate)!==null&&u!==void 0?u:t==null||(f=t.locale)===null||f===void 0||(h=f.options)===null||h===void 0?void 0:h.firstWeekContainsDate)!==null&&c!==void 0?c:L.firstWeekContainsDate)!==null&&s!==void 0?s:(g=L.locale)===null||g===void 0||(v=g.options)===null||v===void 0?void 0:v.firstWeekContainsDate)!==null&&a!==void 0?a:1);if(!(I>=1&&I<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var P=zn((y=(_=(w=(x=t?.weekStartsOn)!==null&&x!==void 0?x:t==null||(S=t.locale)===null||S===void 0||(T=S.options)===null||T===void 0?void 0:T.weekStartsOn)!==null&&w!==void 0?w:L.weekStartsOn)!==null&&_!==void 0?_:(M=L.locale)===null||M===void 0||(C=M.options)===null||C===void 0?void 0:C.weekStartsOn)!==null&&y!==void 0?y:0);if(!(P>=0&&P<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!O.localize)throw new RangeError("locale must contain localize property");if(!O.formatLong)throw new RangeError("locale must contain formatLong property");var B=Et(n);if(!nD(B))throw new RangeError("Invalid time value");var H=By(B),F=zM(B,H),$={firstWeekContainsDate:I,weekStartsOn:P,locale:O,_originalDate:B},V=k.match(TB).map(function(W){var ee=W[0];if(ee==="p"||ee==="P"){var q=Ww[ee];return q(W,O.formatLong)}return W}).join("").match(CB).map(function(W){if(W==="''")return"'";var ee=W[0];if(ee==="'")return LB(W);var q=SB[ee];if(q)return!(t!=null&&t.useAdditionalWeekYearTokens)&&jM(W)&&Hy(W,e,String(n)),!(t!=null&&t.useAdditionalDayOfYearTokens)&&YM(W)&&Hy(W,e,String(n)),q(F,W,O.localize,$);
389if(ee.match(OB))throw new RangeError("Format string contains an unescaped latin alphabet character `"+ee+"`");return W}).join("");return V}function LB(n){var e=n.match(MB);return e?e[1].replace(DB,"'"):n}function AB(n,e){ft(2,arguments);var t=zn(e);return Mm(n,t*1e3)}var RB=6e4;function IB(n,e){ft(2,arguments);var t=zn(e);return Mm(n,t*RB)}var NB=36e5;function PB(n,e){ft(2,arguments);var t=zn(e);return Mm(n,t*NB)}function aD(n,e){ft(2,arguments);var t=Et(n),r=zn(e);return isNaN(r)?new Date(NaN):(r&&t.setDate(t.getDate()+r),t)}function BB(n,e){ft(2,arguments);var t=zn(e),r=t*7;return aD(n,r)}function Zw(n,e){ft(2,arguments);var t=Et(n),r=zn(e);if(isNaN(r))return new Date(NaN);if(!r)return t;var i=t.getDate(),a=new Date(t.getTime());a.setMonth(t.getMonth()+r+1,0);var s=a.getDate();return i>=s?a:(t.setFullYear(a.getFullYear(),a.getMonth(),i),t)}function HB(n,e){ft(2,arguments);var t=zn(e),r=t*3;return Zw(n,r)}function zB(n,e){ft(2,arguments);var t=zn(e);return Zw(n,t*12)}function Wy(n,e){return ft(2,arguments),Et(n).getTime()-Et(e).getTime()}var sD={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(e){return e<0?Math.ceil(e):Math.floor(e)}},FB="trunc";function Om(n){return n?sD[n]:sD[FB]}function VB(n,e,t){ft(2,arguments);var r=Wy(n,e)/1e3;return Om(t?.roundingMethod)(r)}function YB(n,e,t){ft(2,arguments);var r=Wy(n,e)/Fy;return Om(t?.roundingMethod)(r)}function jB(n,e,t){ft(2,arguments);var r=Wy(n,e)/Vy;return Om(t?.roundingMethod)(r)}function Xw(n){ft(1,arguments);var e=Et(n);return e.setHours(0,0,0,0),e}var WB=864e5;function UB(n,e){ft(2,arguments);var t=Xw(n),r=Xw(e),i=t.getTime()-By(t),a=r.getTime()-By(r);return Math.round((i-a)/WB)}function oD(n,e){var t=n.getFullYear()-e.getFullYear()||n.getMonth()-e.getMonth()||n.getDate()-e.getDate()||n.getHours()-e.getHours()||n.getMinutes()-e.getMinutes()||n.getSeconds()-e.getSeconds()||n.getMilliseconds()-e.getMilliseconds();return t<0?-1:t>0?1:t}function lD(n,e){ft(2,arguments);var t=Et(n),r=Et(e),i=oD(t,r),a=Math.abs(UB(t,r));t.setDate(t.getDate()-i*a);var s=+(oD(t,r)===-i),c=i*(a-s);return c===0?0:c}function qB(n,e,t){ft(2,arguments);var r=lD(n,e)/7;return Om(t?.roundingMethod)(r)}function $B(n,e){ft(2,arguments);var t=Et(n),r=Et(e),i=t.getFullYear()-r.getFullYear(),a=t.getMonth()-r.getMonth();return i*12+a}function km(n,e){ft(2,arguments);var t=Et(n),r=Et(e),i=t.getTime()-r.getTime();return i<0?-1:i>0?1:i}function cD(n){ft(1,arguments);var e=Et(n);return e.setHours(23,59,59,999),e}function uD(n){ft(1,arguments);var e=Et(n),t=e.getMonth();return e.setFullYear(e.getFullYear(),t+1,0),e.setHours(23,59,59,999),e}function GB(n){ft(1,arguments);var e=Et(n);return cD(e).getTime()===uD(e).getTime()}function dD(n,e){ft(2,arguments);var t=Et(n),r=Et(e),i=km(t,r),a=Math.abs($B(t,r)),s;if(a<1)s=0;else{t.getMonth()===1&&t.getDate()>27&&t.setDate(30),t.setMonth(t.getMonth()-i*a);var c=km(t,r)===-i;GB(Et(n))&&a===1&&km(n,r)===1&&(c=!1),s=i*(a-Number(c))}return s===0?0:s}function ZB(n,e,t){ft(2,arguments);var r=dD(n,e)/3;return Om(t?.roundingMethod)(r)}function XB(n,e){ft(2,arguments);var t=Et(n),r=Et(e);return t.getFullYear()-r.getFullYear()}function QB(n,e){ft(2,arguments);var t=Et(n),r=Et(e),i=km(t,r),a=Math.abs(XB(t,r));t.setFullYear(1584),r.setFullYear(1584);var s=km(t,r)===-i,c=i*(a-Number(s));return c===0?0:c}function KB(n){ft(1,arguments);var e=Et(n);return e.setMilliseconds(0),e}function JB(n){ft(1,arguments);var e=Et(n);return e.setSeconds(0,0),e}function eH(n){ft(1,arguments);var e=Et(n);return e.setMinutes(0,0,0),e}function fD(n,e){var t,r,i,a,s,c,u,f;ft(1,arguments);var h=Al(),g=zn((t=(r=(i=(a=e?.weekStartsOn)!==null&&a!==void 0?a:e==null||(s=e.locale)===null||s===void 0||(c=s.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&i!==void 0?i:h.weekStartsOn)!==null&&r!==void 0?r:(u=h.locale)===null||u===void 0||(f=u.options)===null||f===void 0?void 0:f.weekStartsOn)!==null&&t!==void 0?t:0);if(!(g>=0&&g<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var v=Et(n),y=v.getDay(),_=(y<g?7:0)+y-g;return v.setDate(v.getDate()-_),v.setHours(0,0,0,0),v}function tH(n){ft(1,arguments);var e=Et(n);return e.setDate(1),e.setHours(0,0,0,0),e}function nH(n){ft(1,arguments);var e=Et(n),t=e.getMonth(),r=t-t%3;return e.setMonth(r,1),e.setHours(0,0,0,0),e}function rH(n){ft(1,arguments);var e=Et(n),t=new Date(0);return t.setFullYear(e.getFullYear(),0,1),t.setHours(0,0,0,0),t}function iH(n){ft(1,arguments);var e=Et(n);return e.setMilliseconds(999),e}function aH(n){ft(1,arguments);var e=Et(n);return e.setSeconds(59,999),e}function sH(n){ft(1,arguments);var e=Et(n);return e.setMinutes(59,59,999),e}function oH(n,e){var t,r,i,a,s,c,u,f;ft(1,arguments);var h=Al(),g=zn((t=(r=(i=(a=e?.weekStartsOn)!==null&&a!==void 0?a:e==null||(s=e.locale)===null||s===void 0||(c=s.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&i!==void 0?i:h.weekStartsOn)!==null&&r!==void 0?r:(u=h.locale)===null||u===void 0||(f=u.options)===null||f===void 0?void 0:f.weekStartsOn)!==null&&t!==void 0?t:0);if(!(g>=0&&g<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var v=Et(n),y=v.getDay(),_=(y<g?-7:0)+6-(y-g);return v.setDate(v.getDate()+_),v.setHours(23,59,59,999),v}function lH(n){ft(1,arguments);var e=Et(n),t=e.getMonth(),r=t-t%3+3;return e.setMonth(r,0),e.setHours(23,59,59,999),e}function cH(n){ft(1,arguments);var e=Et(n),t=e.getFullYear();return e.setFullYear(t+1,0,0),e.setHours(23,59,59,999),e}/*!
390 * chartjs-adapter-date-fns v3.0.0
391 * https://www.chartjs.org
392 * (c) 2022 chartjs-adapter-date-fns Contributors
393 * Released under the MIT license
394 */const uH={datetime:"MMM d, yyyy, h:mm:ss aaaa",millisecond:"h:mm:ss.SSS aaaa",second:"h:mm:ss aaaa",minute:"h:mm aaaa",hour:"ha",day:"MMM d",week:"PP",month:"MMM yyyy",quarter:"qqq - yyyy",year:"yyyy"};eS._date.override({_id:"date-fns",formats:function(){return uH},parse:function(n,e){if(n===null||typeof n>"u")return null;const t=typeof n;return t==="number"||n instanceof Date?n=Et(n):t==="string"&&(typeof e=="string"?n=tB(n,e,new Date,this.options):n=rB(n,this.options)),nD(n)?n.getTime():null}
394,format:function(n,e){return kB(n,e,this.options)},add:function(n,e,t){switch(t){case"millisecond":return Mm(n,e);case"second":return AB(n,e);case"minute":return IB(n,e);case"hour":return PB(n,e);case"day":return aD(n,e);case"week":return BB(n,e);case"month":return Zw(n,e);case"quarter":return HB(n,e);case"year":return zB(n,e);default:return n}},diff:function(n,e,t){switch(t){case"millisecond":return Wy(n,e);case"second":return VB(n,e);case"minute":return YB(n,e);case"hour":return jB(n,e);case"day":return lD(n,e);case"week":return qB(n,e);case"month":return dD(n,e);case"quarter":return ZB(n,e);case"year":return QB(n,e);default:return 0}},startOf:function(n,e,t){switch(e){case"second":return KB(n);case"minute":return JB(n);case"hour":return eH(n);case"day":return Xw(n);case"week":return fD(n);case"isoWeek":return fD(n,{weekStartsOn:+t});case"month":return tH(n);case"quarter":return nH(n);case"year":return rH(n);default:return n}},endOf:function(n,e){switch(e){case"second":return iH(n);case"minute":return aH(n);case"hour":return sH(n);case"day":return cD(n);case"week":return oH(n);case"month":return uD(n);case"quarter":return lH(n);case"year":return cH(n);default:return n}}}),iu.register(X_,Q_,F_,rf,Z_,V0,$_,$S,W0);const dH=({localization:n})=>{const e=(0,p.useRef)(null),t=new Date,r=(0,p.useMemo)(()=>new Date(t),[]),i=(0,p.useMemo)(()=>{const q=new Date(r);return q.setFullYear(q.getFullYear()-1),q},[r]),[a,s]=(0,p.useState)(""),[c,u]=(0,p.useState)([]),[f,h]=(0,p.useState)([]),[g,v]=(0,p.useState)(""),[y,_]=(0,p.useState)(""),[w,x]=(0,p.useState)(0),[S,T]=(0,p.useState)([]),[M,C]=(0,p.useState)([]),[k,L]=(0,p.useState)(i),[O,I]=(0,p.useState)(r),[P,B]=(0,p.useState)(!1),H=(0,p.useCallback)(()=>{if(!e.current)return;const{ctx:q,chartArea:Y}=e.current;if(!q||!Y)return;const ae=q.createLinearGradient(0,0,0,Y.bottom);ae.addColorStop(0,"rgba(38, 124, 41, 0.24)"),ae.addColorStop(1,"rgba(38, 124, 41, 0.00)"),s(ae)},[]);(0,p.useEffect)(()=>{const q=setTimeout(()=>{const Y=document.querySelectorAll(".js-horizontal-panel");re.multiple(Ns,Y)},100);return()=>clearTimeout(q)},[]),(0,p.useEffect)(()=>{var q;const Y=document.querySelector(".js-line-chart"),ae=Y?.dataset.widget_id,ue=(q=window.WIDGETS_CONFIG)===null||q===void 0?void 0:q[ae];ue&&(C(ue.fundCode||[]),T(ue.items||[]),v(ue.actualUnitValueStr||""),_(`${ue.dateFromStr} a\u017E ${ue.dateToStr}`),setTimeout(()=>{re.multiple(Ns,document.querySelectorAll(".js-horizontal-panel"))},50))},[]),(0,p.useEffect)(()=>{S.length&&(h(S.map(q=>q.value)),u(S.map(q=>q.valuationDate)))},[S]),(0,p.useEffect)(()=>{e.current&&H()},[c,f,H]),(0,p.useEffect)(()=>{const q=setTimeout(()=>{re.multiple(Ns,document.querySelectorAll(".js-horizontal-panel"))},10);return()=>clearTimeout(q)},[w]);const F=(0,p.useCallback)(async(q,Y,ae)=>{const ue={dateFrom:Y?.toISOString()||"2020-01-01T00:00:00Z",dateTo:ae?.toISOString()||"2025-01-01T00:00:00Z",fundCode:M,timeFrame:q};try{const be=await(await fetch(`${window.location.origin}/api/LineChart/List`,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json",__RequestVerificationToken:ko()},body:JSON.stringify(ue)})).json(),{items:_e}=be.payload||{};_e?.length&&(h(_e.map(qe=>qe.value)),u(_e.map(qe=>qe.valuationDate)))}catch(We){console.error("Error fetching chart data:",We)}},[M]),$=()=>{B(!0)},V=(q,Y)=>{if(x(q),Y){$(),F(12);return}B(!1),typeof q=="number"&&F(q),setTimeout(()=>{re.multiple(Ns,document.querySelectorAll(".js-horizontal-panel"))},10)},W=(0,p.useMemo)(()=>({labels:c,datasets:[{label:"Kurz",data:f,borderColor:"green",backgroundColor:a,pointRadius:0,tension:0,fill:!0,borderWidth:2}]}),[c,f,a]),ee={responsive:!0,plugins:{legend:{display:!1},tooltip:{callbacks:{label:q=>{const Y=q.parsed.y;return`${(Y%1===0?Y.toString():Y.toFixed(4).replace(/\.?0+$/,"")).replace(".",",")} ${n.LineChart_Currency}`}}}},scales:{x:{type:"time",time:{unit:"day",tooltipFormat:"d.M.yyyy",displayFormats:{day:"d.M.yyyy"}},ticks:{autoSkip:!0,maxRotation:45,minRotation:45},grid:{display:!1}},y:{offset:!0,ticks:{padding:8,crossAlign:"near",callback:q=>typeof q=="number"?q.toFixed(2).replace(".",","):q},grid:{tickLength:0,color:"#e0e0e0"},border:{display:!1}}},interaction:{intersect:!1,mode:"index"}};return p.createElement("div",null,p.createElement("div",{className:""},p.createElement("h3",{className:"mb-2 break-words text-2xl"},n.Chart_Title),p.createElement("div",{className:"mb-6 text-lg"},n.LineChart_Note_ActualValue," ",p.createElement("span",{className:"font-semibold"}
394,g," "),n.LineChart_Note_ForPeriod," ",p.createElement("span",{className:"font-semibold"},y)),p.createElement("div",{className:"-mt-3 sm:-mt-4"},p.createElement("div",{className:""},p.createElement("div",{className:"row"},p.createElement("div",{className:"sm:col-24 overflow-hidden pr-6"},p.createElement("div",{className:"horizontal-scroll__outer-container"},p.createElement("div",{className:"js-horizontal-panel relative sm:flex sm:justify-center"},p.createElement("ul",{className:"js-horizontal-panel-button-list horizontal-scroll__panel-wrapper",role:"tablist"},p.createElement("li",{className:"horizontal-scroll__panel-item"},p.createElement("button",{role:"tab",type:"button",className:`js-horizontal-panel-button horizontal-scroll__button tab__button ${w===6?"is-active":""}`,"aria-selected":w===6,onClick:()=>V(6)},p.createElement("span",{className:"text-xs text-grey-160 sm:text-base"},n.LineChart_Buttons_6M))),p.createElement("li",{className:"horizontal-scroll__panel-item"},p.createElement("button",{role:"tab",type:"button",className:`js-horizontal-panel-button horizontal-scroll__button tab__button ${w===12?"is-active":""}`,"aria-selected":w===12,onClick:()=>V(12)},p.createElement("span",{className:"text-xs text-grey-160 sm:text-base"},n.LineChart_Buttons_1Y))),p.createElement("li",{className:"horizontal-scroll__panel-item"},p.createElement("button",{role:"tab",type:"button",className:`js-horizontal-panel-button horizontal-scroll__button tab__button ${w===0?"is-active":""}`,"aria-selected":w===0,onClick:()=>V(0)},p.createElement("span",{className:"text-xs text-grey-160 sm:text-base"},n.LineChart_Buttons_FromBegin))),p.createElement("li",{className:"horizontal-scroll__panel-item"},p.createElement("button",{role:"tab",type:"button",className:`js-horizontal-panel-button horizontal-scroll__button tab__button ${w==="custom"?"is-active":""}`,"aria-selected":w==="custom",onClick:()=>V("custom",!0)},p.createElement("span",{className:"text-xs text-grey-160 sm:text-base"},n.LineChart_Buttons_Custom)))),p.createElement("button",{className:"js-horizontal-panel-prev-button horizontal-scroll__button-arrow horizontal-scroll__button-prev hidden",type:"button","aria-label":"P\u0159edchoz\xED",tabIndex:-1,"data-testid":"tabs-widget-tabs-scroll-btn-id"},p.createElement("svg",{name:"arrow-right",className:"icon h-8 w-8 shrink-0 rotate-180 fill-red-corporate",role:"img",viewBox:"0 0 32 32"},p.createElement("path",{d:"M17.061 16L12.111 11.05L13.525 9.63599L19.889 16L13.525 22.364L12.111 20.95L17.061 16Z"}))),p.createElement("button",{className:"js-horizontal-panel-next-button horizontal-scroll__button-arrow horizontal-scroll__button-next hidden",type:"button","aria-label":"Dal\u0161\xED",tabIndex:-1,"data-testid":"tabs-widget-tabs-scroll-btn-id"},p.createElement("svg",{name:"arrow-right",className:"icon h-8 w-8 shrink-0 fill-red-corporate",role:"img",viewBox:"0 0 32 32"},p.createElement("path",{d:"M17.061 16L12.111 11.05L13.525 9.63599L19.889 16L13.525 22.364L12.111 20.95L17.061 16Z"}))))),p.createElement("div",{className:`${P?"flex":"hidden"} flex-wrap items-center justify-center sm:flex-nowrap`},p.createElement("div",{className:"mb-8 w-full sm:mb-3 sm:mr-8 sm:w-auto"},p.createElement("label",{className:"block max-w-xxs",htmlFor:"datepickerFrom"},p.createElement("span",{className:"mb-1.5 block text-2xs"},n.LineChart_CustomDate_From)),p.createElement(Py,{id:"datepickerFrom",selected:k,className:"h-12 rounded-xs border border-grey-30 !px-3 py-2.5 text-base outline-grey-80",onChange:q=>{q&&(L(q),O&&F(void 0,q,O))},locale:Vw,dateFormat:"dd.MM.yyyy",maxDate:t,showIcon:!0,toggleCalendarOnIconClick:!0,icon:p.createElement("svg",{className:"!w-8 !h-8 !right-0",width:"32",height:"32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},p.createElement("path",{d:"M12.75 5.25v4.5h-1.5v-4.5h1.5Zm8 0v4.5h-1.5v-4.5h1.5Zm-14 7.84a.75.75 0 0 1 .75-.75h17a.75.75 0 0 1 0 1.5h-17a.75.75 0 0 1-.75-.75Z",fill:"#E00000"}),p.createElement("path",{d:"M8.737 9.385c-.64.69-.987 1.73-.987 3.115V21c0 1.385.346 2.425.987 3.115.631.68 1.656 1.135 3.263 1.135h8c1.607 0 2.631-.455 3.263-1.135.64-.69.987-1.73.987-3.115v-8.5c0-1.385-.346-2.425-.987-3.115C22.63 8.705 21.607 8.25 20 8.25h-8c-1.607 0-2.632.455-3.263 1.135Zm-1.1-1.02C8.633 7.295 10.108 6.75 12 6.75h8c1.893 0 3.369.545 4.362 1.615.984 1.06 1.388 2.52 1.388 4.135V21c0 1.615-.404 3.075-1.388 4.135-.993 1.07-2.469 1.615-4.362 1.615h-8c-1.893 0-3.368-.545-4.362-1.615-.984-1.06-1.388-2.52-1.388-4.135v-8.5c0-1.615.404-3.075 1.388-4.135Z",fill:"#E00000"}))})),p.createElement("div",{className:"mb-8 w-full sm:mb-3 sm:mr-8 sm:w-auto"},p.createElement("label",{className:"block max-w-xxs",htmlFor:"datepickerTo"},p.createElement("span",{className:"mb-1.5 block text-2xs"},n.LineChart_CustomDate_To)),p.createElement(Py,{id:"datepickerTo",selected:O,className:"h-12 rounded-xs border border-grey-30 !px-3 py-2.5 text-base outline-grey-80",onChange:q=>{q&&(I(q),k&&F(void 0,k,q))},locale:Vw,dateFormat:"dd.MM.yyyy",maxDate:t,showIcon:!0,toggleCalendarOnIconClick:!0,icon:p.createElement("svg",{className:"!w-8 !h-8 !right-0",width:"32",height:"32",fill:"none",xmlns:"http://www.w3.org/2000/svg"},p.createElement("path",{d:"M12.75 5.25v4.5h-1.5v-4.5h1.5Zm8 0v4.5h-1.5v-4.5h1.5Zm-14 7.84a.75.75 0 0 1 .75-.75h17a.75.75 0 0 1 0 1.5h-17a.75.75 0 0 1-.75-.75Z",fill:"#E00000"}),p.createElement("path",{d:"M8.737 9.385c-.64.69-.987 1.73-.987 3.115V21c0 1.385.346 2.425.987 3.115.631.68 1.656 1.135 3.263 1.135h8c1.607 0 2.631-.455 3.263-1.135.64-.69.987-1.73.987-3.115v-8.5c0-1.385-.346-2.425-.987-3.115C22.63 8.705 21.607 8.25 20 8.25h-8c-1.607 0-2.632.455-3.263 1.135Zm-1.1-1.02C8.633 7.295 10.108 6.75 12 6.75h8c1.893 0 3.369.545 4.362 1.615.984 1.06 1.388 2.52 1.388 4.135V21c0 1.615-.404 3.075-1.388 4.135-.993 1.07-2.469 1.615-4.362 1.615h-8c-1.893 0-3.368-.545-4.362-1.615-.984-1.06-1.388-2.52-1.388-4.135v-8.5c0-1.615.404-3.075 1.388-4.135Z",fill:"#E00000"}))}
394)))))))),p.createElement(bC,{className:"mb-12",ref:e,data:W,options:ee}))};iu.register(OS,V0);const fH=({label:n,value:e,color:t})=>p.createElement("div",{className:"flex items-center mb-4 last:mb-0"},p.createElement("div",{className:"mr-2.5 rounded-full w-3 h-3",style:{backgroundColor:t}}),p.createElement("span",{className:"text-base"},n," (",e.toString().replace(".",",")," %)")),hH=({container:n})=>{var e,t,r,i,a;const s=(0,p.useRef)(null),[c,u]=(0,p.useState)(!1),f=(t=(e=window.WIDGETS_CONFIG)===null||e===void 0?void 0:e[n.dataset.widget_id])!==null&&t!==void 0?t:{},h=(r=f.labels)!==null&&r!==void 0?r:[],g=(i=f.values)!==null&&i!==void 0?i:[],v=(a=f.colors)!==null&&a!==void 0?a:[],y=h.map((x,S)=>{var T,M;return{label:x,value:(T=g[S])!==null&&T!==void 0?T:0,color:(M=v[S])!==null&&M!==void 0?M:"#ccc"}}),_={labels:y.map(x=>x.label),datasets:[{data:y.map(x=>x.value),backgroundColor:y.map(x=>x.color),borderColor:"#fff",borderWidth:2}]},w={responsive:!0,cutout:"70%",plugins:{legend:{display:!1},tooltip:{callbacks:{label:x=>` ${x.parsed.toString().replace(".",",")} %`}}}};return(0,p.useEffect)(()=>{const x=new IntersectionObserver(([S])=>{S.isIntersecting&&(u(!0),x.disconnect())},{threshold:.3});return s.current&&x.observe(s.current),()=>x.disconnect()},[]),p.createElement("div",{ref:s,className:"flex flex-col sm:flex-row sm:items-center gap-8 sm:gap-12 mb-12"},p.createElement("div",{className:"w-64 h-64"},c&&p.createElement(h4,{data:_,options:w})),p.createElement("div",null,y.map(x=>p.createElement(fH,{key:x.label,label:x.label,value:x.value,color:x.color}))))};Je();const pH=new URLSearchParams(window.location.search);re.single(Gy,document.querySelector(".js-downloadable-qr-container")),re.single(Zu,document.querySelector(".js-search-desktop")),re.single(yh,document.querySelector(".js-tabs")),re.single(Pa,document.querySelector(".js-cookie")),re.single(Tg,document.querySelector(".js-tabs-detail-branches")),re.single(bh,document.querySelector(".js-megaMenu")),re.single(al,document.querySelector(".js-appStore")),re.single(gv,document.querySelector(".js-appStoreRedirect")),re.single(wv,document.querySelector(".js-marketingAlertStripe")),re.single(Vv,document.querySelector(".js-form-unsubscribe")),pH.has("scrollTo")&&re.single(xu,document.querySelector("body")),re.multiple(Pl,document.querySelectorAll(".js-accordion-item")),re.multiple(Ec,document.querySelectorAll(".js-tooltip-static")),re.multiple(Qy,document.querySelectorAll(".js-tabs")),re.multiple(Gu,document.querySelectorAll(".js-comparator")),re.multiple(Sg,document.querySelectorAll(".js-hamburger")),re.multiple(Ns,document.querySelectorAll(".js-horizontal-panel")),re.multiple(gh,document.querySelectorAll(".js-tile")),re.multiple(Af,document.querySelectorAll(".lazyload")),re.multiple(Rf,document.querySelectorAll(".lazyloadvideo")),re.multiple($a,document.querySelectorAll(".js-collapse")),re.multiple(xg,document.querySelectorAll(".js-cta")),re.multiple($r,document.querySelectorAll(".js-lightgallery")),re.multiple(Td,document.querySelectorAll("[data-analytics]")),re.multiple(rp,document.querySelectorAll(".sticky")),re.multiple(Md,document.querySelectorAll("[data-analytics-view]")),re.multiple(as,document.querySelectorAll("[data-analytics-personalizable]")),re.multiple(ss,document.querySelectorAll("[data-analytics-content]")),re.multiple(Ev,document.querySelectorAll(".js-interactiveComponent")),re.multiple(mp,document.querySelectorAll(".js-interactiveComponentMobile")),re.multiple(ip,document.querySelectorAll(".js-marketingAlertStripe-mob")),re.multiple(Nd,document.querySelectorAll(".js-button-kentico")),re.multiple($s,document.querySelectorAll(".js-form-builder")),K.single(Hc,document.querySelector(".js-transparent-list")),K.single(Cp,document.querySelector(".js-transparent-detail")),K.single(i3,document.querySelector(".js-article-list")),K.single(a3,document.querySelector(".js-calculator")),K.single(d3,document.querySelector(".js-search-list")),K.single(m3,document.querySelector(".js-tabs-branches-atms")),K.single(z3,document.querySelector(".js-detail-map")),K.single(B3,document.querySelector(".js-branches-search")),K.single(H3,document.querySelector(".js-branches-results-detail")),K.single(S3,document.querySelector(".js-atms-search")),K.single(F3,document.querySelector(".js-atms-results-detail")),K.single($3,document.querySelector(".js-exchange-rates-list")),K.single(K3,document.querySelector(".js-exchange-rates-list-sk")),K.single(YP,document.querySelector(".js-exchange-rates-detail")),K.single(UP,document.querySelector(".js-fx-profit-margin")),K.multiple(JO,document.querySelectorAll(".js-gallery-lightbox"),!1),K.multiple(qv,document.querySelectorAll(".js-tooltip-kentico")),K.multiple(hH,document.querySelectorAll(".js-donut-chart")),K.multiple(dH,document.querySelectorAll(".js-line-chart")),window.setSas&&window.setSas()})()})();
395
396//# sourceMappingURL=app.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.