UNPKG

@bikematrix/web-components

Version:
1 lines 572 kB
var BikeMatrix=function(){"use strict";var Vr,W,fo,ho,Wt,go,mo,_n,bo,jr={},vo=[],ac=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Di=Array.isArray;function ft(r,e){for(var t in e)r[t]=e[t];return r}function wo(r){var e=r.parentNode;e&&e.removeChild(r)}function R(r,e,t){var i,n,s,o={};for(s in e)s=="key"?i=e[s]:s=="ref"?n=e[s]:o[s]=e[s];if(arguments.length>2&&(o.children=arguments.length>3?Vr.call(arguments,2):t),typeof r=="function"&&r.defaultProps!=null)for(s in r.defaultProps)o[s]===void 0&&(o[s]=r.defaultProps[s]);return Ur(r,o,i,n,null)}function Ur(r,e,t,i,n){var s={type:r,props:e,key:t,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:n??++fo,__i:-1,__u:0};return n==null&&W.vnode!=null&&W.vnode(s),s}function lc(){return{current:null}}function $(r){return r.children}function Xe(r,e){this.props=r,this.context=e}function ur(r,e){if(e==null)return r.__?ur(r.__,r.__i+1):null;for(var t;e<r.__k.length;e++)if((t=r.__k[e])!=null&&t.__e!=null)return t.__e;return typeof r.type=="function"?ur(r):null}function xo(r){var e,t;if((r=r.__)!=null&&r.__c!=null){for(r.__e=r.__c.base=null,e=0;e<r.__k.length;e++)if((t=r.__k[e])!=null&&t.__e!=null){r.__e=r.__c.base=t.__e;break}return xo(r)}}function yn(r){(!r.__d&&(r.__d=!0)&&Wt.push(r)&&!Ai.__r++||go!==W.debounceRendering)&&((go=W.debounceRendering)||mo)(Ai)}function Ai(){var r,e,t,i,n,s,o,a,l;for(Wt.sort(_n);r=Wt.shift();)r.__d&&(e=Wt.length,i=void 0,s=(n=(t=r).__v).__e,a=[],l=[],(o=t.__P)&&((i=ft({},n)).__v=n.__v+1,W.vnode&&W.vnode(i),Cn(o,i,n,t.__n,o.ownerSVGElement!==void 0,32&n.__u?[s]:null,a,s??ur(n),!!(32&n.__u),l),i.__v=n.__v,i.__.__k[i.__i]=i,Ao(a,i,l),i.__e!=s&&xo(i)),Wt.length>e&&Wt.sort(_n));Ai.__r=0}function _o(r,e,t,i,n,s,o,a,l,u,c){var d,h,f,v,g,w=i&&i.__k||vo,b=e.length;for(t.__d=l,uc(t,e,w),l=t.__d,d=0;d<b;d++)(f=t.__k[d])!=null&&typeof f!="boolean"&&typeof f!="function"&&(h=f.__i===-1?jr:w[f.__i]||jr,f.__i=d,Cn(r,f,h,n,s,o,a,l,u,c),v=f.__e,f.ref&&h.ref!=f.ref&&(h.ref&&kn(h.ref,null,f),c.push(f.ref,f.__c||v,f)),g==null&&v!=null&&(g=v),65536&f.__u||h.__k===f.__k?l=yo(f,l,r):typeof f.type=="function"&&f.__d!==void 0?l=f.__d:v&&(l=v.nextSibling),f.__d=void 0,f.__u&=-196609);t.__d=l,t.__e=g}function uc(r,e,t){var i,n,s,o,a,l=e.length,u=t.length,c=u,d=0;for(r.__k=[],i=0;i<l;i++)o=i+d,(n=r.__k[i]=(n=e[i])==null||typeof n=="boolean"||typeof n=="function"?null:typeof n=="string"||typeof n=="number"||typeof n=="bigint"||n.constructor==String?Ur(null,n,null,null,null):Di(n)?Ur($,{children:n},null,null,null):n.constructor===void 0&&n.__b>0?Ur(n.type,n.props,n.key,n.ref?n.ref:null,n.__v):n)!=null?(n.__=r,n.__b=r.__b+1,a=cc(n,t,o,c),n.__i=a,s=null,a!==-1&&(c--,(s=t[a])&&(s.__u|=131072)),s==null||s.__v===null?(a==-1&&d--,typeof n.type!="function"&&(n.__u|=65536)):a!==o&&(a===o+1?d++:a>o?c>l-o?d+=a-o:d--:a<o?a==o-1&&(d=a-o):d=0,a!==i+d&&(n.__u|=65536))):(s=t[o])&&s.key==null&&s.__e&&!(131072&s.__u)&&(s.__e==r.__d&&(r.__d=ur(s)),Dn(s,s,!1),t[o]=null,c--);if(c)for(i=0;i<u;i++)(s=t[i])!=null&&!(131072&s.__u)&&(s.__e==r.__d&&(r.__d=ur(s)),Dn(s,s))}function yo(r,e,t){var i,n;if(typeof r.type=="function"){for(i=r.__k,n=0;i&&n<i.length;n++)i[n]&&(i[n].__=r,e=yo(i[n],e,t));return e}r.__e!=e&&(t.insertBefore(r.__e,e||null),e=r.__e);do e=e&&e.nextSibling;while(e!=null&&e.nodeType===8);return e}function ht(r,e){return e=e||[],r==null||typeof r=="boolean"||(Di(r)?r.some(function(t){ht(t,e)}):e.push(r)),e}function cc(r,e,t,i){var n=r.key,s=r.type,o=t-1,a=t+1,l=e[t];if(l===null||l&&n==l.key&&s===l.type&&!(131072&l.__u))return t;if(i>(l!=null&&!(131072&l.__u)?1:0))for(;o>=0||a<e.length;){if(o>=0){if((l=e[o])&&!(131072&l.__u)&&n==l.key&&s===l.type)return o;o--}if(a<e.length){if((l=e[a])&&!(131072&l.__u)&&n==l.key&&s===l.type)return a;a++}}return-1}function Co(r,e,t){e[0]==="-"?r.setProperty(e,t??""):r[e]=t==null?"":typeof t!="number"||ac.test(e)?t:t+"px"}function Si(r,e,t,i,n){var s;e:if(e==="style")if(typeof t=="string")r.style.cssText=t;else{if(typeof i=="string"&&(r.style.cssText=i=""),i)for(e in i)t&&e in t||Co(r.style,e,"");if(t)for(e in t)i&&t[e]===i[e]||Co(r.style,e,t[e])}else if(e[0]==="o"&&e[1]==="n")s=e!==(e=e.replace(/(PointerCapture)$|Capture$/i,"$1")),e=e.toLowerCase()in r?e.toLowerCase().slice(2):e.slice(2),r.l||(r.l={}),r.l[e+s]=t,t?i?t.u=i.u:(t.u=Date.now(),r.addEventListener(e,s?Do:ko,s)):r.removeEventListener(e,s?Do:ko,s);else{if(n)e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(e!=="width"&&e!=="height"&&e!=="href"&&e!=="list"&&e!=="form"&&e!=="tabIndex"&&e!=="download"&&e!=="rowSpan"&&e!=="colSpan"&&e!=="role"&&e in r)try{r[e]=t??"";break e}catch{}typeof t=="function"||(t==null||t===!1&&e[4]!=="-"?r.removeAttribute(e):r.setAttribute(e,t))}}function ko(r){if(this.l){var e=this.l[r.type+!1];if(r.t){if(r.t<=e.u)return}else r.t=Date.now();return e(W.event?W.event(r):r)}}function Do(r){if(this.l)return this.l[r.type+!0](W.event?W.event(r):r)}function Cn(r,e,t,i,n,s,o,a,l,u){var c,d,h,f,v,g,w,b,m,x,_,y,k,A,C,D=e.type;if(e.constructor!==void 0)return null;128&t.__u&&(l=!!(32&t.__u),s=[a=e.__e=t.__e]),(c=W.__b)&&c(e);e:if(typeof D=="function")try{if(b=e.props,m=(c=D.contextType)&&i[c.__c],x=c?m?m.props.value:c.__:i,t.__c?w=(d=e.__c=t.__c).__=d.__E:("prototype"in D&&D.prototype.render?e.__c=d=new D(b,x):(e.__c=d=new Xe(b,x),d.constructor=D,d.render=pc),m&&m.sub(d),d.props=b,d.state||(d.state={}),d.context=x,d.__n=i,h=d.__d=!0,d.__h=[],d._sb=[]),d.__s==null&&(d.__s=d.state),D.getDerivedStateFromProps!=null&&(d.__s==d.state&&(d.__s=ft({},d.__s)),ft(d.__s,D.getDerivedStateFromProps(b,d.__s))),f=d.props,v=d.state,d.__v=e,h)D.getDerivedStateFromProps==null&&d.componentWillMount!=null&&d.componentWillMount(),d.componentDidMount!=null&&d.__h.push(d.componentDidMount);else{if(D.getDerivedStateFromProps==null&&b!==f&&d.componentWillReceiveProps!=null&&d.componentWillReceiveProps(b,x),!d.__e&&(d.shouldComponentUpdate!=null&&d.shouldComponentUpdate(b,d.__s,x)===!1||e.__v===t.__v)){for(e.__v!==t.__v&&(d.props=b,d.state=d.__s,d.__d=!1),e.__e=t.__e,e.__k=t.__k,e.__k.forEach(function(S){S&&(S.__=e)}),_=0;_<d._sb.length;_++)d.__h.push(d._sb[_]);d._sb=[],d.__h.length&&o.push(d);break e}d.componentWillUpdate!=null&&d.componentWillUpdate(b,d.__s,x),d.componentDidUpdate!=null&&d.__h.push(function(){d.componentDidUpdate(f,v,g)})}if(d.context=x,d.props=b,d.__P=r,d.__e=!1,y=W.__r,k=0,"prototype"in D&&D.prototype.render){for(d.state=d.__s,d.__d=!1,y&&y(e),c=d.render(d.props,d.state,d.context),A=0;A<d._sb.length;A++)d.__h.push(d._sb[A]);d._sb=[]}else do d.__d=!1,y&&y(e),c=d.render(d.props,d.state,d.context),d.state=d.__s;while(d.__d&&++k<25);d.state=d.__s,d.getChildContext!=null&&(i=ft(ft({},i),d.getChildContext())),h||d.getSnapshotBeforeUpdate==null||(g=d.getSnapshotBeforeUpdate(f,v)),_o(r,Di(C=c!=null&&c.type===$&&c.key==null?c.props.children:c)?C:[C],e,t,i,n,s,o,a,l,u),d.base=e.__e,e.__u&=-161,d.__h.length&&o.push(d),w&&(d.__E=d.__=null)}catch(S){e.__v=null,l||s!=null?(e.__e=a,e.__u|=l?160:32,s[s.indexOf(a)]=null):(e.__e=t.__e,e.__k=t.__k),W.__e(S,e,t)}else s==null&&e.__v===t.__v?(e.__k=t.__k,e.__e=t.__e):e.__e=dc(t.__e,e,t,i,n,s,o,l,u);(c=W.diffed)&&c(e)}function Ao(r,e,t){e.__d=void 0;for(var i=0;i<t.length;i++)kn(t[i],t[++i],t[++i]);W.__c&&W.__c(e,r),r.some(function(n){try{r=n.__h,n.__h=[],r.some(function(s){s.call(n)})}catch(s){W.__e(s,n.__v)}})}function dc(r,e,t,i,n,s,o,a,l){var u,c,d,h,f,v,g,w=t.props,b=e.props,m=e.type;if(m==="svg"&&(n=!0),s!=null){for(u=0;u<s.length;u++)if((f=s[u])&&"setAttribute"in f==!!m&&(m?f.localName===m:f.nodeType===3)){r=f,s[u]=null;break}}if(r==null){if(m===null)return document.createTextNode(b);r=n?document.createElementNS("http://www.w3.org/2000/svg",m):document.createElement(m,b.is&&b),s=null,a=!1}if(m===null)w===b||a&&r.data===b||(r.data=b);else{if(s=s&&Vr.call(r.childNodes),w=t.props||jr,!a&&s!=null)for(w={},u=0;u<r.attributes.length;u++)w[(f=r.attributes[u]).name]=f.value;for(u in w)f=w[u],u=="children"||(u=="dangerouslySetInnerHTML"?d=f:u==="key"||u in b||Si(r,u,null,f,n));for(u in b)f=b[u],u=="children"?h=f:u=="dangerouslySetInnerHTML"?c=f:u=="value"?v=f:u=="checked"?g=f:u==="key"||a&&typeof f!="function"||w[u]===f||Si(r,u,f,w[u],n);if(c)a||d&&(c.__html===d.__html||c.__html===r.innerHTML)||(r.innerHTML=c.__html),e.__k=[];else if(d&&(r.innerHTML=""),_o(r,Di(h)?h:[h],e,t,i,n&&m!=="foreignObject",s,o,s?s[0]:t.__k&&ur(t,0),a,l),s!=null)for(u=s.length;u--;)s[u]!=null&&wo(s[u]);a||(u="value",v!==void 0&&(v!==r[u]||m==="progress"&&!v||m==="option"&&v!==w[u])&&Si(r,u,v,w[u],!1),u="checked",g!==void 0&&g!==r[u]&&Si(r,u,g,w[u],!1))}return r}function kn(r,e,t){try{typeof r=="function"?r(e):r.current=e}catch(i){W.__e(i,t)}}function Dn(r,e,t){var i,n;if(W.unmount&&W.unmount(r),(i=r.ref)&&(i.current&&i.current!==r.__e||kn(i,null,e)),(i=r.__c)!=null){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(s){W.__e(s,e)}i.base=i.__P=null,r.__c=void 0}if(i=r.__k)for(n=0;n<i.length;n++)i[n]&&Dn(i[n],e,t||typeof r.type!="function");t||r.__e==null||wo(r.__e),r.__=r.__e=r.__d=void 0}function pc(r,e,t){return this.constructor(r,t)}function Bt(r,e,t){var i,n,s,o;W.__&&W.__(r,e),n=(i=typeof t=="function")?null:t&&t.__k||e.__k,s=[],o=[],Cn(e,r=(!i&&t||e).__k=R($,null,[r]),n||jr,jr,e.ownerSVGElement!==void 0,!i&&t?[t]:n?null:e.firstChild?Vr.call(e.childNodes):null,s,!i&&t?t:n?n.__e:e.firstChild,i,o),Ao(s,r,o)}function An(r,e){Bt(r,e,An)}function Sn(r,e,t){var i,n,s,o,a=ft({},r.props);for(s in r.type&&r.type.defaultProps&&(o=r.type.defaultProps),e)s=="key"?i=e[s]:s=="ref"?n=e[s]:a[s]=e[s]===void 0&&o!==void 0?o[s]:e[s];return arguments.length>2&&(a.children=arguments.length>3?Vr.call(arguments,2):t),Ur(r.type,a,i||r.key,n||r.ref,null)}function Hr(r,e){var t={__c:e="__cC"+bo++,__:r,Consumer:function(i,n){return i.children(n)},Provider:function(i){var n,s;return this.getChildContext||(n=[],(s={})[e]=this,this.getChildContext=function(){return s},this.shouldComponentUpdate=function(o){this.props.value!==o.value&&n.some(function(a){a.__e=!0,yn(a)})},this.sub=function(o){n.push(o);var a=o.componentWillUnmount;o.componentWillUnmount=function(){n.splice(n.indexOf(o),1),a&&a.call(o)}}),i.children}};return t.Provider.__=t.Consumer.contextType=t}Vr=vo.slice,W={__e:function(r,e,t,i){for(var n,s,o;e=e.__;)if((n=e.__c)&&!n.__)try{if((s=n.constructor)&&s.getDerivedStateFromError!=null&&(n.setState(s.getDerivedStateFromError(r)),o=n.__d),n.componentDidCatch!=null&&(n.componentDidCatch(r,i||{}),o=n.__d),o)return n.__E=n}catch(a){r=a}throw r}},fo=0,ho=function(r){return r!=null&&r.constructor==null},Xe.prototype.setState=function(r,e){var t;t=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=ft({},this.state),typeof r=="function"&&(r=r(ft({},t),this.props)),r&&ft(t,r),r!=null&&this.__v&&(e&&this._sb.push(e),yn(this))},Xe.prototype.forceUpdate=function(r){this.__v&&(this.__e=!0,r&&this.__h.push(r),yn(this))},Xe.prototype.render=$,Wt=[],mo=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,_n=function(r,e){return r.__v.__b-e.__v.__b},Ai.__r=0,bo=0;function En(){return(En=Object.assign?Object.assign.bind():function(r){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(r[i]=t[i])}return r}).apply(this,arguments)}var fc=["context","children"];function hc(r){this.getChildContext=function(){return r.context};var e=r.children,t=function(i,n){if(i==null)return{};var s,o,a={},l=Object.keys(i);for(o=0;o<l.length;o++)n.indexOf(s=l[o])>=0||(a[s]=i[s]);return a}(r,fc);return Sn(e,t)}function gc(){var r=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(r),this._vdom=R(hc,En({},this._props,{context:r.detail.context}),function e(t,i){if(t.nodeType===3)return t.data;if(t.nodeType!==1)return null;var n=[],s={},o=0,a=t.attributes,l=t.childNodes;for(o=a.length;o--;)a[o].name!=="slot"&&(s[a[o].name]=a[o].value,s[So(a[o].name)]=a[o].value);for(o=l.length;o--;){var u=e(l[o],null),c=l[o].slot;c?s[c]=R(Eo,{name:c},u):n[o]=u}var d=i?R(Eo,null,n):n;return R(i||t.nodeName.toLowerCase(),s,d)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?An:Bt)(this._vdom,this._root)}function So(r){return r.replace(/-(\w)/g,function(e,t){return t?t.toUpperCase():""})}function mc(r,e,t){if(this._vdom){var i={};i[r]=t=t??void 0,i[So(r)]=t,this._vdom=Sn(this._vdom,i),Bt(this._vdom,this._root)}}function bc(){Bt(this._vdom=null,this._root)}function Eo(r,e){var t=this;return R("slot",En({},r,{ref:function(i){i?(t.ref=i,t._listener||(t._listener=function(n){n.stopPropagation(),n.detail.context=e},i.addEventListener("_preact",t._listener))):t.ref.removeEventListener("_preact",t._listener)}}))}function vc(r,e,t,i){function n(){var s=Reflect.construct(HTMLElement,[],n);return s._vdomComponent=r,s._root=i&&i.shadow?s.attachShadow({mode:i.mode||"open"}):s,s}return(n.prototype=Object.create(HTMLElement.prototype)).constructor=n,n.prototype.connectedCallback=gc,n.prototype.attributeChangedCallback=mc,n.prototype.disconnectedCallback=bc,t=t||r.observedAttributes||Object.keys(r.propTypes||{}),n.observedAttributes=t,t.forEach(function(s){Object.defineProperty(n.prototype,s,{get:function(){return this._vdom.props[s]},set:function(o){this._vdom?this.attributeChangedCallback(s,null,o):(this._props||(this._props={}),this._props[s]=o,this.connectedCallback());var a=typeof o;o!=null&&a!=="string"&&a!=="boolean"&&a!=="number"||this.setAttribute(s,o)}})}),customElements.define(e||r.tagName||r.displayName||r.name,n)}var Lt,se,Bn,Bo,cr=0,Lo=[],Ei=[],ue=W,To=ue.__b,Fo=ue.__r,No=ue.diffed,Mo=ue.__c,Po=ue.unmount,Oo=ue.__;function dr(r,e){ue.__h&&ue.__h(se,r,cr||e),cr=0;var t=se.__H||(se.__H={__:[],__h:[]});return r>=t.__.length&&t.__.push({__V:Ei}),t.__[r]}function O(r){return cr=1,Io(qo,r)}function Io(r,e,t){var i=dr(Lt++,2);if(i.t=r,!i.__c&&(i.__=[t?t(e):qo(void 0,e),function(a){var l=i.__N?i.__N[0]:i.__[0],u=i.t(l,a);l!==u&&(i.__N=[u,i.__[1]],i.__c.setState({}))}],i.__c=se,!se.u)){var n=function(a,l,u){if(!i.__c.__H)return!0;var c=i.__c.__H.__.filter(function(h){return!!h.__c});if(c.every(function(h){return!h.__N}))return!s||s.call(this,a,l,u);var d=!1;return c.forEach(function(h){if(h.__N){var f=h.__[0];h.__=h.__N,h.__N=void 0,f!==h.__[0]&&(d=!0)}}),!(!d&&i.__c.props===a)&&(!s||s.call(this,a,l,u))};se.u=!0;var s=se.shouldComponentUpdate,o=se.componentWillUpdate;se.componentWillUpdate=function(a,l,u){if(this.__e){var c=s;s=void 0,n(a,l,u),s=c}o&&o.call(this,a,l,u)},se.shouldComponentUpdate=n}return i.__N||i.__}function U(r,e){var t=dr(Lt++,3);!ue.__s&&Tn(t.__H,e)&&(t.__=r,t.i=e,se.__H.__h.push(t))}function pr(r,e){var t=dr(Lt++,4);!ue.__s&&Tn(t.__H,e)&&(t.__=r,t.i=e,se.__h.push(t))}function Y(r){return cr=5,it(function(){return{current:r}},[])}function wc(r,e,t){cr=6,pr(function(){return typeof r=="function"?(r(e()),function(){return r(null)}):r?(r.current=e(),function(){return r.current=null}):void 0},t==null?t:t.concat(r))}function it(r,e){var t=dr(Lt++,7);return Tn(t.__H,e)?(t.__V=r(),t.i=e,t.__h=r,t.__V):t.__}function Ro(r,e){return cr=8,it(function(){return r},e)}function Bi(r){var e=se.context[r.__c],t=dr(Lt++,9);return t.c=r,e?(t.__==null&&(t.__=!0,e.sub(se)),e.props.value):r.__}function xc(r,e){ue.useDebugValue&&ue.useDebugValue(e?e(r):r)}function _c(){var r=dr(Lt++,11);if(!r.__){for(var e=se.__v;e!==null&&!e.__m&&e.__!==null;)e=e.__;var t=e.__m||(e.__m=[0,0]);r.__="P"+t[0]+"-"+t[1]++}return r.__}function yc(){for(var r;r=Lo.shift();)if(r.__P&&r.__H)try{r.__H.__h.forEach(Li),r.__H.__h.forEach(Ln),r.__H.__h=[]}catch(e){r.__H.__h=[],ue.__e(e,r.__v)}}ue.__b=function(r){se=null,To&&To(r)},ue.__=function(r,e){r&&e.__k&&e.__k.__m&&(r.__m=e.__k.__m),Oo&&Oo(r,e)},ue.__r=function(r){Fo&&Fo(r),Lt=0;var e=(se=r.__c).__H;e&&(Bn===se?(e.__h=[],se.__h=[],e.__.forEach(function(t){t.__N&&(t.__=t.__N),t.__V=Ei,t.__N=t.i=void 0})):(e.__h.forEach(Li),e.__h.forEach(Ln),e.__h=[],Lt=0)),Bn=se},ue.diffed=function(r){No&&No(r);var e=r.__c;e&&e.__H&&(e.__H.__h.length&&(Lo.push(e)!==1&&Bo===ue.requestAnimationFrame||((Bo=ue.requestAnimationFrame)||Cc)(yc)),e.__H.__.forEach(function(t){t.i&&(t.__H=t.i),t.__V!==Ei&&(t.__=t.__V),t.i=void 0,t.__V=Ei})),Bn=se=null},ue.__c=function(r,e){e.some(function(t){try{t.__h.forEach(Li),t.__h=t.__h.filter(function(i){return!i.__||Ln(i)})}catch(i){e.some(function(n){n.__h&&(n.__h=[])}),e=[],ue.__e(i,t.__v)}}),Mo&&Mo(r,e)},ue.unmount=function(r){Po&&Po(r);var e,t=r.__c;t&&t.__H&&(t.__H.__.forEach(function(i){try{Li(i)}catch(n){e=n}}),t.__H=void 0,e&&ue.__e(e,t.__v))};var zo=typeof requestAnimationFrame=="function";function Cc(r){var e,t=function(){clearTimeout(i),zo&&cancelAnimationFrame(e),setTimeout(r)},i=setTimeout(t,100);zo&&(e=requestAnimationFrame(t))}function Li(r){var e=se,t=r.__c;typeof t=="function"&&(r.__c=void 0,t()),se=e}function Ln(r){var e=se;r.__c=r.__(),se=e}function Tn(r,e){return!r||r.length!==e.length||e.some(function(t,i){return t!==r[i]})}function qo(r,e){return typeof e=="function"?e(r):e}function $o(r,e){for(var t in e)r[t]=e[t];return r}function Fn(r,e){for(var t in r)if(t!=="__source"&&!(t in e))return!0;for(var i in e)if(i!=="__source"&&r[i]!==e[i])return!0;return!1}function Nn(r,e){this.props=r,this.context=e}function kc(r,e){function t(n){var s=this.props.ref,o=s==n.ref;return!o&&s&&(s.call?s(null):s.current=null),e?!e(this.props,n)||!o:Fn(this.props,n)}function i(n){return this.shouldComponentUpdate=t,R(r,n)}return i.displayName="Memo("+(r.displayName||r.name)+")",i.prototype.isReactComponent=!0,i.__f=!0,i}(Nn.prototype=new Xe).isPureReactComponent=!0,Nn.prototype.shouldComponentUpdate=function(r,e){return Fn(this.props,r)||Fn(this.state,e)};var Vo=W.__b;W.__b=function(r){r.type&&r.type.__f&&r.ref&&(r.props.ref=r.ref,r.ref=null),Vo&&Vo(r)};var Dc=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Mn(r){function e(t){var i=$o({},t);return delete i.ref,r(i,t.ref||null)}return e.$$typeof=Dc,e.render=e,e.prototype.isReactComponent=e.__f=!0,e.displayName="ForwardRef("+(r.displayName||r.name)+")",e}var jo=function(r,e){return r==null?null:ht(ht(r).map(e))},Uo={map:jo,forEach:jo,count:function(r){return r?ht(r).length:0},only:function(r){var e=ht(r);if(e.length!==1)throw"Children.only";return e[0]},toArray:ht},Ac=W.__e;W.__e=function(r,e,t,i){if(r.then){for(var n,s=e;s=s.__;)if((n=s.__c)&&n.__c)return e.__e==null&&(e.__e=t.__e,e.__k=t.__k),n.__c(r,e)}Ac(r,e,t,i)};var Ho=W.unmount;function Go(r,e,t){return r&&(r.__c&&r.__c.__H&&(r.__c.__H.__.forEach(function(i){typeof i.__c=="function"&&i.__c()}),r.__c.__H=null),(r=$o({},r)).__c!=null&&(r.__c.__P===t&&(r.__c.__P=e),r.__c=null),r.__k=r.__k&&r.__k.map(function(i){return Go(i,e,t)})),r}function Wo(r,e,t){return r&&t&&(r.__v=null,r.__k=r.__k&&r.__k.map(function(i){return Wo(i,e,t)}),r.__c&&r.__c.__P===e&&(r.__e&&t.appendChild(r.__e),r.__c.__e=!0,r.__c.__P=t)),r}function Ti(){this.__u=0,this.t=null,this.__b=null}function Yo(r){var e=r.__.__c;return e&&e.__a&&e.__a(r)}function Sc(r){var e,t,i;function n(s){if(e||(e=r()).then(function(o){t=o.default||o},function(o){i=o}),i)throw i;if(!t)throw e;return R(t,s)}return n.displayName="Lazy",n.__f=!0,n}function Gr(){this.u=null,this.o=null}W.unmount=function(r){var e=r.__c;e&&e.__R&&e.__R(),e&&32&r.__u&&(r.type=null),Ho&&Ho(r)},(Ti.prototype=new Xe).__c=function(r,e){var t=e.__c,i=this;i.t==null&&(i.t=[]),i.t.push(t);var n=Yo(i.__v),s=!1,o=function(){s||(s=!0,t.__R=null,n?n(a):a())};t.__R=o;var a=function(){if(!--i.__u){if(i.state.__a){var l=i.state.__a;i.__v.__k[0]=Wo(l,l.__c.__P,l.__c.__O)}var u;for(i.setState({__a:i.__b=null});u=i.t.pop();)u.forceUpdate()}};i.__u++||32&e.__u||i.setState({__a:i.__b=i.__v.__k[0]}),r.then(o,o)},Ti.prototype.componentWillUnmount=function(){this.t=[]},Ti.prototype.render=function(r,e){if(this.__b){if(this.__v.__k){var t=document.createElement("div"),i=this.__v.__k[0].__c;this.__v.__k[0]=Go(this.__b,t,i.__O=i.__P)}this.__b=null}var n=e.__a&&R($,null,r.fallback);return n&&(n.__u&=-33),[R($,null,e.__a?null:r.children),n]};var Ko=function(r,e,t){if(++t[1]===t[0]&&r.o.delete(e),r.props.revealOrder&&(r.props.revealOrder[0]!=="t"||!r.o.size))for(t=r.u;t;){for(;t.length>3;)t.pop()();if(t[1]<t[0])break;r.u=t=t[2]}};function Ec(r){return this.getChildContext=function(){return r.context},r.children}function Bc(r){var e=this,t=r.i;e.componentWillUnmount=function(){Bt(null,e.l),e.l=null,e.i=null},e.i&&e.i!==t&&e.componentWillUnmount(),e.l||(e.i=t,e.l={nodeType:1,parentNode:t,childNodes:[],appendChild:function(i){this.childNodes.push(i),e.i.appendChild(i)},insertBefore:function(i,n){this.childNodes.push(i),e.i.appendChild(i)},removeChild:function(i){this.childNodes.splice(this.childNodes.indexOf(i)>>>1,1),e.i.removeChild(i)}}),Bt(R(Ec,{context:e.context},r.__v),e.l)}function Lc(r,e){var t=R(Bc,{__v:r,i:e});return t.containerInfo=e,t}(Gr.prototype=new Xe).__a=function(r){var e=this,t=Yo(e.__v),i=e.o.get(r);return i[0]++,function(n){var s=function(){e.props.revealOrder?(i.push(n),Ko(e,r,i)):n()};t?t(s):s()}},Gr.prototype.render=function(r){this.u=null,this.o=new Map;var e=ht(r.children);r.revealOrder&&r.revealOrder[0]==="b"&&e.reverse();for(var t=e.length;t--;)this.o.set(e[t],this.u=[1,0,this.u]);return r.children},Gr.prototype.componentDidUpdate=Gr.prototype.componentDidMount=function(){var r=this;this.o.forEach(function(e,t){Ko(r,t,e)})};var Zo=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,Tc=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Fc=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Nc=/[A-Z0-9]/g,Mc=typeof document<"u",Pc=function(r){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(r)};function Oc(r,e,t){return e.__k==null&&(e.textContent=""),Bt(r,e),typeof t=="function"&&t(),r?r.__c:null}function Ic(r,e,t){return An(r,e),typeof t=="function"&&t(),r?r.__c:null}Xe.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(r){Object.defineProperty(Xe.prototype,r,{configurable:!0,get:function(){return this["UNSAFE_"+r]},set:function(e){Object.defineProperty(this,r,{configurable:!0,writable:!0,value:e})}})});var Xo=W.event;function Rc(){}function zc(){return this.cancelBubble}function qc(){return this.defaultPrevented}W.event=function(r){return Xo&&(r=Xo(r)),r.persist=Rc,r.isPropagationStopped=zc,r.isDefaultPrevented=qc,r.nativeEvent=r};var Pn,$c={enumerable:!1,configurable:!0,get:function(){return this.class}},Jo=W.vnode;W.vnode=function(r){typeof r.type=="string"&&function(e){var t=e.props,i=e.type,n={};for(var s in t){var o=t[s];if(!(s==="value"&&"defaultValue"in t&&o==null||Mc&&s==="children"&&i==="noscript"||s==="class"||s==="className")){var a=s.toLowerCase();s==="defaultValue"&&"value"in t&&t.value==null?s="value":s==="download"&&o===!0?o="":a==="translate"&&o==="no"?o=!1:a==="ondoubleclick"?s="ondblclick":a!=="onchange"||i!=="input"&&i!=="textarea"||Pc(t.type)?a==="onfocus"?s="onfocusin":a==="onblur"?s="onfocusout":Fc.test(s)?s=a:i.indexOf("-")===-1&&Tc.test(s)?s=s.replace(Nc,"-$&").toLowerCase():o===null&&(o=void 0):a=s="oninput",a==="oninput"&&n[s=a]&&(s="oninputCapture"),n[s]=o}}i=="select"&&n.multiple&&Array.isArray(n.value)&&(n.value=ht(t.children).forEach(function(l){l.props.selected=n.value.indexOf(l.props.value)!=-1})),i=="select"&&n.defaultValue!=null&&(n.value=ht(t.children).forEach(function(l){l.props.selected=n.multiple?n.defaultValue.indexOf(l.props.value)!=-1:n.defaultValue==l.props.value})),t.class&&!t.className?(n.class=t.class,Object.defineProperty(n,"className",$c)):(t.className&&!t.class||t.class&&t.className)&&(n.class=n.className=t.className),e.props=n}(r),r.$$typeof=Zo,Jo&&Jo(r)};var Qo=W.__r;W.__r=function(r){Qo&&Qo(r),Pn=r.__c};var ea=W.diffed;W.diffed=function(r){ea&&ea(r);var e=r.props,t=r.__e;t!=null&&r.type==="textarea"&&"value"in e&&e.value!==t.value&&(t.value=e.value==null?"":e.value),Pn=null};var Vc={ReactCurrentDispatcher:{current:{readContext:function(r){return Pn.__n[r.__c].props.value}}}};function jc(r){return R.bind(null,r)}function Tt(r){return!!r&&r.$$typeof===Zo}function Uc(r){return Tt(r)&&r.type===$}function ta(r){return Tt(r)?Sn.apply(null,arguments):r}function Hc(r){return!!r.__k&&(Bt(null,r),!0)}function Gc(r){return r&&(r.base||r.nodeType===1&&r)||null}var Wc=function(r,e){return r(e)},Yc=function(r,e){return r(e)},Kc=$;function ra(r){r()}function Zc(r){return r}function Xc(){return[!1,ra]}var Jc=pr,Qc=Tt;function ed(r,e){var t=e(),i=O({h:{__:t,v:e}}),n=i[0].h,s=i[1];return pr(function(){n.__=t,n.v=e,On(n)&&s({h:n})},[r,t,e]),U(function(){return On(n)&&s({h:n}),r(function(){On(n)&&s({h:n})})},[r]),t}function On(r){var e,t,i=r.v,n=r.__;try{var s=i();return!((e=n)===(t=s)&&(e!==0||1/e==1/t)||e!=e&&t!=t)}catch{return!0}}var be={useState:O,useId:_c,useReducer:Io,useEffect:U,useLayoutEffect:pr,useInsertionEffect:Jc,useTransition:Xc,useDeferredValue:Zc,useSyncExternalStore:ed,startTransition:ra,useRef:Y,useImperativeHandle:wc,useMemo:it,useCallback:Ro,useContext:Bi,useDebugValue:xc,version:"17.0.2",Children:Uo,render:Oc,hydrate:Ic,unmountComponentAtNode:Hc,createPortal:Lc,createElement:R,createContext:Hr,createFactory:jc,cloneElement:ta,createRef:lc,Fragment:$,isValidElement:Tt,isElement:Qc,isFragment:Uc,findDOMNode:Gc,Component:Xe,PureComponent:Nn,memo:kc,forwardRef:Mn,flushSync:Yc,unstable_batchedUpdates:Wc,StrictMode:Kc,Suspense:Ti,SuspenseList:Gr,lazy:Sc,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Vc},In=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ia(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var td={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0};const rd=ia(td);var id=/\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?(".*?"|'.*?')/g;function na(r){var e={type:"tag",name:"",voidElement:!1,attrs:{},children:[]},t=r.match(/<\/?([^\s]+?)[/\s>]/);if(t&&(e.name=t[1],(rd[t[1]]||r.charAt(r.length-2)==="/")&&(e.voidElement=!0),e.name.startsWith("!--"))){var i=r.indexOf("-->");return{type:"comment",comment:i!==-1?r.slice(4,i):""}}for(var n=new RegExp(id),s=null;(s=n.exec(r))!==null;)if(s[0].trim())if(s[1]){var o=s[1].trim(),a=[o,""];o.indexOf("=")>-1&&(a=o.split("=")),e.attrs[a[0]]=a[1],n.lastIndex--}else s[2]&&(e.attrs[s[2]]=s[3].trim().substring(1,s[3].length-1));return e}var nd=/<[a-zA-Z0-9\-\!\/](?:"[^"]*"|'[^']*'|[^'">])*>/g,sd=/^\s*$/,od=Object.create(null);function sa(r,e){switch(e.type){case"text":return r+e.content;case"tag":return r+="<"+e.name+(e.attrs?function(t){var i=[];for(var n in t)i.push(n+'="'+t[n]+'"');return i.length?" "+i.join(" "):""}(e.attrs):"")+(e.voidElement?"/>":">"),e.voidElement?r:r+e.children.reduce(sa,"")+"</"+e.name+">";case"comment":return r+"<!--"+e.comment+"-->"}}var ad={parse:function(r,e){e||(e={}),e.components||(e.components=od);var t,i=[],n=[],s=-1,o=!1;if(r.indexOf("<")!==0){var a=r.indexOf("<");i.push({type:"text",content:a===-1?r:r.substring(0,a)})}return r.replace(nd,function(l,u){if(o){if(l!=="</"+t.name+">")return;o=!1}var c,d=l.charAt(1)!=="/",h=l.startsWith("<!--"),f=u+l.length,v=r.charAt(f);if(h){var g=na(l);return s<0?(i.push(g),i):((c=n[s]).children.push(g),i)}if(d&&(s++,(t=na(l)).type==="tag"&&e.components[t.name]&&(t.type="component",o=!0),t.voidElement||o||!v||v==="<"||t.children.push({type:"text",content:r.slice(f,r.indexOf("<",f))}),s===0&&i.push(t),(c=n[s-1])&&c.children.push(t),n[s]=t),(!d||t.voidElement)&&(s>-1&&(t.voidElement||t.name===l.slice(2,-1))&&(s--,t=s===-1?i:n[s]),!o&&v!=="<"&&v)){c=s===-1?i:n[s].children;var w=r.indexOf("<",f),b=r.slice(f,w===-1?void 0:w);sd.test(b)&&(b=" "),(w>-1&&s+c.length>=0||b!==" ")&&c.push({type:"text",content:b})}}),i},stringify:function(r){return r.reduce(function(e,t){return e+sa("",t)},"")}};const Fi=(...r)=>{console!=null&&console.warn&&(Ge(r[0])&&(r[0]=`react-i18next:: ${r[0]}`),console.warn(...r))},oa={},Ni=(...r)=>{Ge(r[0])&&oa[r[0]]||(Ge(r[0])&&(oa[r[0]]=new Date),Fi(...r))},aa=(r,e)=>()=>{if(r.isInitialized)e();else{const t=()=>{setTimeout(()=>{r.off("initialized",t)},0),e()};r.on("initialized",t)}},la=(r,e,t)=>{r.loadNamespaces(e,aa(r,t))},ua=(r,e,t,i)=>{Ge(t)&&(t=[t]),t.forEach(n=>{r.options.ns.indexOf(n)<0&&r.options.ns.push(n)}),r.loadLanguages(e,aa(r,i))},ld=(r,e,t={})=>!e.languages||!e.languages.length?(Ni("i18n.languages were undefined or empty",e.languages),!0):e.hasLoadedNamespace(r,{lng:t.lng,precheck:(i,n)=>{var s;if(((s=t.bindI18n)==null?void 0:s.indexOf("languageChanging"))>-1&&i.services.backendConnector.backend&&i.isLanguageChangingTo&&!n(i.isLanguageChangingTo,r))return!1}}),Ge=r=>typeof r=="string",fr=r=>typeof r=="object"&&r!==null,ud=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,cd={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},dd=r=>cd[r];let Rn={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:r=>r.replace(ud,dd)};const pd=(r={})=>{Rn={...Rn,...r}},ca=()=>Rn;let da;const fd=r=>{da=r},Ft=()=>da,zn=(r,e)=>{var i;if(!r)return!1;const t=((i=r.props)==null?void 0:i.children)??r.children;return e?t.length>0:!!t},qn=r=>{var t,i;if(!r)return[];const e=((t=r.props)==null?void 0:t.children)??r.children;return(i=r.props)!=null&&i.i18nIsDynamicList?hr(e):e},hd=r=>Array.isArray(r)&&r.every(Tt),hr=r=>Array.isArray(r)?r:[r],gd=(r,e)=>{const t={...e};return t.props=Object.assign(r.props,e.props),t},pa=(r,e)=>{if(!r)return"";let t="";const i=hr(r),n=e!=null&&e.transSupportBasicHtmlNodes?e.transKeepBasicHtmlNodesFor??[]:[];return i.forEach((s,o)=>{if(Ge(s))t+=`${s}`;else if(Tt(s)){const{props:a,type:l}=s,u=Object.keys(a).length,c=n.indexOf(l)>-1,d=a.children;if(!d&&c&&!u)t+=`<${l}/>`;else if(!d&&(!c||u)||a.i18nIsDynamicList)t+=`<${o}></${o}>`;else if(c&&u===1&&Ge(d))t+=`<${l}>${d}</${l}>`;else{const h=pa(d,e);t+=`<${o}>${h}</${o}>`}}else if(s===null)Fi("Trans: the passed in value is invalid - seems you passed in a null child.");else if(fr(s)){const{format:a,...l}=s,u=Object.keys(l);if(u.length===1){const c=a?`${u[0]}, ${a}`:u[0];t+=`{{${c}}}`}else Fi("react-i18next: the passed in object contained more than one variable - the object should look like {{ value, format }} where format is optional.",s)}else Fi("Trans: the passed in value is invalid - seems you passed in a variable like {number} - please pass in variables for interpolation as full objects like {{number}}.",s)}),t},md=(r,e,t,i,n,s)=>{if(e==="")return[];const o=i.transKeepBasicHtmlNodesFor||[],a=e&&new RegExp(o.map(w=>`<${w}`).join("|")).test(e);if(!r&&!a&&!s)return[e];const l={},u=w=>{hr(w).forEach(m=>{Ge(m)||(zn(m)?u(qn(m)):fr(m)&&!Tt(m)&&Object.assign(l,m))})};u(r);const c=ad.parse(`<0>${e}</0>`),d={...l,...n},h=(w,b,m)=>{var y;const x=qn(w),_=v(x,b.children,m);return hd(x)&&_.length===0||(y=w.props)!=null&&y.i18nIsDynamicList?x:_},f=(w,b,m,x,_)=>{w.dummy?(w.children=b,m.push(ta(w,{key:x},_?void 0:b))):m.push(...Uo.map([w],y=>{const k={...y.props};return delete k.i18nIsDynamicList,R(y.type,{...k,key:x,ref:y.ref},_?null:b)}))},v=(w,b,m)=>{const x=hr(w);return hr(b).reduce((y,k,A)=>{var D,S;const C=((S=(D=k.children)==null?void 0:D[0])==null?void 0:S.content)&&t.services.interpolator.interpolate(k.children[0].content,d,t.language);if(k.type==="tag"){let T=x[parseInt(k.name,10)];m.length===1&&!T&&(T=m[0][k.name]),T||(T={});const L=Object.keys(k.attrs).length!==0?gd({props:k.attrs},T):T,F=Tt(L),M=F&&zn(k,!0)&&!k.voidElement,N=a&&fr(L)&&L.dummy&&!F,q=fr(r)&&Object.hasOwnProperty.call(r,k.name);if(Ge(L)){const P=t.services.interpolator.interpolate(L,d,t.language);y.push(P)}else if(zn(L)||M){const P=h(L,k,m);f(L,P,y,A)}else if(N){const P=v(x,k.children,m);f(L,P,y,A)}else if(Number.isNaN(parseFloat(k.name)))if(q){const P=h(L,k,m);f(L,P,y,A,k.voidElement)}else if(i.transSupportBasicHtmlNodes&&o.indexOf(k.name)>-1)if(k.voidElement)y.push(R(k.name,{key:`${k.name}-${A}`}));else{const P=v(x,k.children,m);y.push(R(k.name,{key:`${k.name}-${A}`},P))}else if(k.voidElement)y.push(`<${k.name} />`);else{const P=v(x,k.children,m);y.push(`<${k.name}>${P}</${k.name}>`)}else if(fr(L)&&!F){const P=k.children[0]?C:null;P&&y.push(P)}else f(L,C,y,A,k.children.length!==1||!C)}else if(k.type==="text"){const T=i.transWrapTextNodes,L=s?i.unescape(t.services.interpolator.interpolate(k.content,d,t.language)):t.services.interpolator.interpolate(k.content,d,t.language);T?y.push(R(T,{key:`${k.name}-${A}`},L)):y.push(L)}return y},[])},g=v([{dummy:!0,children:r||[]}],c,hr(r||[]));return qn(g[0])};function bd({children:r,count:e,parent:t,i18nKey:i,context:n,tOptions:s={},values:o,defaults:a,components:l,ns:u,i18n:c,t:d,shouldUnescape:h,...f}){var T,L,F,M,N,q;const v=c||Ft();if(!v)return Ni("You will need to pass in an i18next instance by using i18nextReactModule"),r;const g=d||v.t.bind(v)||(P=>P),w={...ca(),...(T=v.options)==null?void 0:T.react};let b=u||g.ns||((L=v.options)==null?void 0:L.defaultNS);b=Ge(b)?[b]:b||["translation"];const m=pa(r,w),x=a||m||w.transEmptyNodeValue||i,{hashTransKey:_}=w,y=i||(_?_(m||x):m||x);(M=(F=v.options)==null?void 0:F.interpolation)!=null&&M.defaultVariables&&(o=o&&Object.keys(o).length>0?{...o,...v.options.interpolation.defaultVariables}:{...v.options.interpolation.defaultVariables});const k=o||e!==void 0&&!((q=(N=v.options)==null?void 0:N.interpolation)!=null&&q.alwaysFormat)||!r?s.interpolation:{interpolation:{...s.interpolation,prefix:"#$?",suffix:"?$#"}},A={...s,context:n||s.context,count:e,...o,...k,defaultValue:x,ns:b},C=y?g(y,A):x;l&&Object.keys(l).forEach(P=>{const E=l[P];if(typeof E.type=="function"||!E.props||!E.props.children||C.indexOf(`${P}/>`)<0&&C.indexOf(`${P} />`)<0)return;function B(){return R($,null,E)}l[P]=R(B)});const D=md(l||r,C,v,w,A,h),S=t??w.defaultTransParent;return S?R(S,f,D):D}const vd={type:"3rdParty",init(r){pd(r.options.react),fd(r)}},fa=Hr();class wd{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach(t=>{this.usedNamespaces[t]||(this.usedNamespaces[t]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}function ha({children:r,count:e,parent:t,i18nKey:i,context:n,tOptions:s={},values:o,defaults:a,components:l,ns:u,i18n:c,t:d,shouldUnescape:h,...f}){var m;const{i18n:v,defaultNS:g}=Bi(fa)||{},w=c||v||Ft(),b=d||(w==null?void 0:w.t.bind(w));return bd({children:r,count:e,parent:t,i18nKey:i,context:n,tOptions:s,values:o,defaults:a,components:l,ns:u||(b==null?void 0:b.ns)||g||((m=w==null?void 0:w.options)==null?void 0:m.defaultNS),i18n:w,t:d,shouldUnescape:h,...f})}const xd=(r,e)=>{const t=Y();return U(()=>{t.current=e?t.current:r},[r,e]),t.current},ga=(r,e,t,i)=>r.getFixedT(e,t,i),_d=(r,e,t,i)=>Ro(ga(r,e,t,i),[r,e,t,i]),ee=(r,e={})=>{var _,y,k,A;const{i18n:t}=e,{i18n:i,defaultNS:n}=Bi(fa)||{},s=t||i||Ft();if(s&&!s.reportNamespaces&&(s.reportNamespaces=new wd),!s){Ni("You will need to pass in an i18next instance by using initReactI18next");const C=(S,T)=>Ge(T)?T:fr(T)&&Ge(T.defaultValue)?T.defaultValue:Array.isArray(S)?S[S.length-1]:S,D=[C,{},!1];return D.t=C,D.i18n={},D.ready=!1,D}(_=s.options.react)!=null&&_.wait&&Ni("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const o={...ca(),...s.options.react,...e},{useSuspense:a,keyPrefix:l}=o;let u=r||n||((y=s.options)==null?void 0:y.defaultNS);u=Ge(u)?[u]:u||["translation"],(A=(k=s.reportNamespaces).addUsedNamespaces)==null||A.call(k,u);const c=(s.isInitialized||s.initializedStoreOnce)&&u.every(C=>ld(C,s,o)),d=_d(s,e.lng||null,o.nsMode==="fallback"?u:u[0],l),h=()=>d,f=()=>ga(s,e.lng||null,o.nsMode==="fallback"?u:u[0],l),[v,g]=O(h);let w=u.join();e.lng&&(w=`${e.lng}${w}`);const b=xd(w),m=Y(!0);U(()=>{const{bindI18n:C,bindI18nStore:D}=o;m.current=!0,!c&&!a&&(e.lng?ua(s,e.lng,u,()=>{m.current&&g(f)}):la(s,u,()=>{m.current&&g(f)})),c&&b&&b!==w&&m.current&&g(f);const S=()=>{m.current&&g(f)};return C&&(s==null||s.on(C,S)),D&&(s==null||s.store.on(D,S)),()=>{m.current=!1,s&&(C==null||C.split(" ").forEach(T=>s.off(T,S))),D&&s&&D.split(" ").forEach(T=>s.store.off(T,S))}},[s,w]),U(()=>{m.current&&c&&g(h)},[s,l,c]);const x=[v,s,c];if(x.t=v,x.i18n=s,x.ready=c,c||!c&&!a)return x;throw new Promise(C=>{e.lng?ua(s,e.lng,u,()=>C()):la(s,u,()=>C())})};var yd=Symbol.for("preact-signals");function Mi(){if(Nt>1)Nt--;else{for(var r,e=!1;Wr!==void 0;){var t=Wr;for(Wr=void 0,$n++;t!==void 0;){var i=t.o;if(t.o=void 0,t.f&=-3,!(8&t.f)&&ba(t))try{t.c()}catch(n){e||(r=n,e=!0)}t=i}}if($n=0,Nt--,e)throw r}}function Cd(r){if(Nt>0)return r();Nt++;try{return r()}finally{Mi()}}var re=void 0,Wr=void 0,Nt=0,$n=0,Pi=0;function ma(r){if(re!==void 0){var e=r.n;if(e===void 0||e.t!==re)return e={i:0,S:r,p:re.s,n:void 0,t:re,e:void 0,x:void 0,r:e},re.s!==void 0&&(re.s.n=e),re.s=e,r.n=e,32&re.f&&r.S(e),e;if(e.i===-1)return e.i=0,e.n!==void 0&&(e.n.p=e.p,e.p!==void 0&&(e.p.n=e.n),e.p=re.s,e.n=void 0,re.s.n=e,re.s=e),e}}function xe(r){this.v=r,this.i=0,this.n=void 0,this.t=void 0}xe.prototype.brand=yd,xe.prototype.h=function(){return!0},xe.prototype.S=function(r){this.t!==r&&r.e===void 0&&(r.x=this.t,this.t!==void 0&&(this.t.e=r),this.t=r)},xe.prototype.U=function(r){if(this.t!==void 0){var e=r.e,t=r.x;e!==void 0&&(e.x=t,r.e=void 0),t!==void 0&&(t.e=e,r.x=void 0),r===this.t&&(this.t=t)}},xe.prototype.subscribe=function(r){var e=this;return jn(function(){var t=e.value,i=re;re=void 0;try{r(t)}finally{re=i}})},xe.prototype.valueOf=function(){return this.value},xe.prototype.toString=function(){return this.value+""},xe.prototype.toJSON=function(){return this.value},xe.prototype.peek=function(){var r=re;re=void 0;try{return this.value}finally{re=r}},Object.defineProperty(xe.prototype,"value",{get:function(){var r=ma(this);return r!==void 0&&(r.i=this.i),this.v},set:function(r){if(r!==this.v){if($n>100)throw new Error("Cycle detected");this.v=r,this.i++,Pi++,Nt++;try{for(var e=this.t;e!==void 0;e=e.x)e.t.N()}finally{Mi()}}}});function Ce(r){return new xe(r)}function ba(r){for(var e=r.s;e!==void 0;e=e.n)if(e.S.i!==e.i||!e.S.h()||e.S.i!==e.i)return!0;return!1}function va(r){for(var e=r.s;e!==void 0;e=e.n){var t=e.S.n;if(t!==void 0&&(e.r=t),e.S.n=e,e.i=-1,e.n===void 0){r.s=e;break}}}function wa(r){for(var e=r.s,t=void 0;e!==void 0;){var i=e.p;e.i===-1?(e.S.U(e),i!==void 0&&(i.n=e.n),e.n!==void 0&&(e.n.p=i)):t=e,e.S.n=e.r,e.r!==void 0&&(e.r=void 0),e=i}r.s=t}function gr(r){xe.call(this,void 0),this.x=r,this.s=void 0,this.g=Pi-1,this.f=4}(gr.prototype=new xe).h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===Pi))return!0;if(this.g=Pi,this.f|=1,this.i>0&&!ba(this))return this.f&=-2,!0;var r=re;try{va(this),re=this;var e=this.x();(16&this.f||this.v!==e||this.i===0)&&(this.v=e,this.f&=-17,this.i++)}catch(t){this.v=t,this.f|=16,this.i++}return re=r,wa(this),this.f&=-2,!0},gr.prototype.S=function(r){if(this.t===void 0){this.f|=36;for(var e=this.s;e!==void 0;e=e.n)e.S.S(e)}xe.prototype.S.call(this,r)},gr.prototype.U=function(r){if(this.t!==void 0&&(xe.prototype.U.call(this,r),this.t===void 0)){this.f&=-33;for(var e=this.s;e!==void 0;e=e.n)e.S.U(e)}},gr.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var r=this.t;r!==void 0;r=r.x)r.t.N()}},Object.defineProperty(gr.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var r=ma(this);if(this.h(),r!==void 0&&(r.i=this.i),16&this.f)throw this.v;return this.v}});function kd(r){return new gr(r)}function xa(r){var e=r.u;if(r.u=void 0,typeof e=="function"){Nt++;var t=re;re=void 0;try{e()}catch(i){throw r.f&=-2,r.f|=8,Vn(r),i}finally{re=t,Mi()}}}function Vn(r){for(var e=r.s;e!==void 0;e=e.n)e.S.U(e);r.x=void 0,r.s=void 0,xa(r)}function Dd(r){if(re!==this)throw new Error("Out-of-order effect");wa(this),re=r,this.f&=-2,8&this.f&&Vn(this),Mi()}function Yr(r){this.x=r,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32}Yr.prototype.c=function(){var r=this.S();try{if(8&this.f||this.x===void 0)return;var e=this.x();typeof e=="function"&&(this.u=e)}finally{r()}},Yr.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,xa(this),va(this),Nt++;var r=re;return re=this,Dd.bind(this,r)},Yr.prototype.N=function(){2&this.f||(this.f|=2,this.o=Wr,Wr=this)},Yr.prototype.d=function(){this.f|=8,1&this.f||Vn(this)};function jn(r){var e=new Yr(r);try{e.c()}catch(t){throw e.d(),t}return e.d.bind(e)}var Un;function mr(r,e){W[r]=e.bind(null,W[r]||function(){})}function Oi(r){Un&&Un(),Un=r&&r.S()}function _a(r){var e=this,t=r.data,i=Sd(t);i.value=t;var n=it(function(){for(var s=e.__v;s=s.__;)if(s.__c){s.__c.__$f|=4;break}return e.__$u.c=function(){var o,a=e.__$u.S(),l=n.value;a(),ho(l)||((o=e.base)==null?void 0:o.nodeType)!==3?(e.__$f|=1,e.setState({})):e.base.data=l},kd(function(){var o=i.value.value;return o===0?0:o===!0?"":o||""})},[]);return n.value}_a.displayName="_st",Object.defineProperties(xe.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:_a},props:{configurable:!0,get:function(){return{data:this}}},__b:{configurable:!0,value:1}}),mr("__b",function(r,e){if(typeof e.type=="string"){var t,i=e.props;for(var n in i)if(n!=="children"){var s=i[n];s instanceof xe&&(t||(e.__np=t={}),t[n]=s,i[n]=s.peek())}}r(e)}),mr("__r",function(r,e){Oi();var t,i=e.__c;i&&(i.__$f&=-2,(t=i.__$u)===void 0&&(i.__$u=t=function(n){var s;return jn(function(){s=this}),s.c=function(){i.__$f|=1,i.setState({})},s}())),Oi(t),r(e)}),mr("__e",function(r,e,t,i){Oi(),r(e,t,i)}),mr("diffed",function(r,e){Oi();var t;if(typeof e.type=="string"&&(t=e.__e)){var i=e.__np,n=e.props;if(i){var s=t.U;if(s)for(var o in s){var a=s[o];a!==void 0&&!(o in i)&&(a.d(),s[o]=void 0)}else t.U=s={};for(var l in i){var u=s[l],c=i[l];u===void 0?(u=Ad(t,l,c,n),s[l]=u):u.o(c,n)}}}r(e)});function Ad(r,e,t,i){var n=e in r&&r.ownerSVGElement===void 0,s=Ce(t);return{o:function(o,a){s.value=o,i=a},d:jn(function(){var o=s.value.value;i[e]!==o&&(i[e]=o,n?r[e]=o:o?r.setAttribute(e,o):r.removeAttribute(e))})}}mr("unmount",function(r,e){if(typeof e.type=="string"){var t=e.__e;if(t){var i=t.U;if(i){t.U=void 0;for(var n in i){var s=i[n];s&&s.d()}}}}else{var o=e.__c;if(o){var a=o.__$u;a&&(o.__$u=void 0,a.d())}}r(e)}),mr("__h",function(r,e,t,i){(i<3||i===9)&&(e.__$f|=2),r(e,t,i)}),Xe.prototype.shouldComponentUpdate=function(r,e){var t=this.__$u;if(!(t&&t.s!==void 0||4&this.__$f)||3&this.__$f)return!0;for(var i in e)return!0;for(var n in r)if(n!=="__source"&&r[n]!==this.props[n])return!0;for(var s in this.props)if(!(s in r))return!0;return!1};function Sd(r){return it(function(){return Ce(r)},[])}const Hn=Ce(!1),Z=Ce(null),br=Ce([]),vr=Ce(!1),Ee=Ce(!1),wr=Ce([]),Je=Ce(!1),Ii=Ce(null),ke=Ce(null),Ri=Ce(!1),zi=Ce(!0),gt=Ce(!1),Ed=()=>{Cd(()=>{Z.value=null,br.value=[],vr.value=!1,Ee.value=!1,wr.value=[],Je.value=!1,Ii.value=null,ke.value=null,Ri.value=!1,zi.value=!0,gt.value=!1})},Gn="bm_currentBike",Bd="v2",Ld="https://cdn.bikematrix.io",Td="1.0.2",ya={isShopify:!1,skuField:"sku",apiUrl:"https://api.bikematrix.io/proxy/v3/",apiKey:"",apiToken:"",currentCollectionHandle:"",categories:[],collections:[],pageType:"index",showHomePageCollection:!1,showSearchPageCollection:!1,designMode:!1,bikeSelectorBrands:"",productsCollections:{},isHomePage:!1,isSearchPage:!1,products:{},collectionUrl:"",compatiblityListCurrentPage:0,showCompatibleList:!0,delayCompatibleListInitialization:!1,sku:"",productCollections:[],logLevel:"none",virtualWorkshop:!0,internalLink:"",showBrowseCategoryButtons:!0,browseCompatibilityUrl:""},Be=function(r){return new URL(r,Ld).toString()};function Ca(r){var e,t,i="";if(typeof r=="string"||typeof r=="number")i+=r;else if(typeof r=="object")if(Array.isArray(r)){var n=r.length;for(e=0;e<n;e++)r[e]&&(t=Ca(r[e]))&&(i&&(i+=" "),i+=t)}else for(t in r)r[t]&&(i&&(i+=" "),i+=t);return i}function Fd(){for(var r,e,t=0,i="",n=arguments.length;t<n;t++)(r=arguments[t])&&(e=Ca(r))&&(i&&(i+=" "),i+=e);return i}const Wn="-";function Nd(r){const e=Pd(r),{conflictingClassGroups:t,conflictingClassGroupModifiers:i}=r;function n(o){const a=o.split(Wn);return a[0]===""&&a.length!==1&&a.shift(),ka(a,e)||Md(o)}function s(o,a){const l=t[o]||[];return a&&i[o]?[...l,...i[o]]:l}return{getClassGroupId:n,getConflictingClassGroupIds:s}}function ka(r,e){var o;if(r.length===0)return e.classGroupId;const t=r[0],i=e.nextPart.get(t),n=i?ka(r.slice(1),i):void 0;if(n)return n;if(e.validators.length===0)return;const s=r.join(Wn);return(o=e.validators.find(({validator:a})=>a(s)))==null?void 0:o.classGroupId}const Da=/^\[(.+)\]$/;function Md(r){if(Da.test(r)){const e=Da.exec(r)[1],t=e==null?void 0:e.substring(0,e.indexOf(":"));if(t)return"arbitrary.."+t}}function Pd(r){const{theme:e,prefix:t}=r,i={nextPart:new Map,validators:[]};return Id(Object.entries(r.classGroups),t).forEach(([s,o])=>{Yn(o,i,s,e)}),i}function Yn(r,e,t,i){r.forEach(n=>{if(typeof n=="string"){const s=n===""?e:Aa(e,n);s.classGroupId=t;return}if(typeof n=="function"){if(Od(n)){Yn(n(i),e,t,i);return}e.validators.push({validator:n,classGroupId:t});return}Object.entries(n).forEach(([s,o])=>{Yn(o,Aa(e,s),t,i)})})}function Aa(r,e){let t=r;return e.split(Wn).forEach(i=>{t.nextPart.has(i)||t.nextPart.set(i,{nextPart:new Map,validators:[]}),t=t.nextPart.get(i)}),t}function Od(r){return r.isThemeGetter}function Id(r,e){return e?r.map(([t,i])=>{const n=i.map(s=>typeof s=="string"?e+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([o,a])=>[e+o,a])):s);return[t,n]}):r}function Rd(r){if(r<1)return{get:()=>{},set:()=>{}};let e=0,t=new Map,i=new Map;function n(s,o){t.set(s,o),e++,e>r&&(e=0,i=t,t=new Map)}return{get(s){let o=t.get(s);if(o!==void 0)return o;if((o=i.get(s))!==void 0)return n(s,o),o},set(s,o){t.has(s)?t.set(s,o):n(s,o)}}}const Sa="!";function zd(r){const e=r.separator,t=e.length===1,i=e[0],n=e.length;return function(o){const a=[];let l=0,u=0,c;for(let g=0;g<o.length;g++){let w=o[g];if(l===0){if(w===i&&(t||o.slice(g,g+n)===e)){a.push(o.slice(u,g)),u=g+n;continue}if(w==="/"){c=g;continue}}w==="["?l++:w==="]"&&l--}const d=a.length===0?o:o.substring(u),h=d.startsWith(Sa),f=h?d.substring(1):d,v=c&&c>u?c-u:void 0;return{modifiers:a,hasImportantModifier:h,baseClassName:f,maybePostfixModifierPosition:v}}}function qd(r){if(r.length<=1)return r;const e=[];let t=[];return r.forEach(i=>{i[0]==="["?(e.push(...t.sort(),i),t=[]):t.push(i)}),e.push(...t.sort()),e}function $d(r){return{cache:Rd(r.cacheSize),splitModifiers:zd(r),...Nd(r)}}const Vd=/\s+/;function jd(r,e){const{splitModifiers:t,getClassGroupId:i,getConflictingClassGroupIds:n}=e,s=new Set;return r.trim().split(Vd).map(o=>{const{modifiers:a,hasImportantModifier:l,baseClassName:u,maybePostfixModifierPosition:c}=t(o);let d=i(c?u.substring(0,c):u),h=!!c;if(!d){if(!c)return{isTailwindClass:!1,originalClassName:o};if(d=i(u),!d)return{isTailwindClass:!1,originalClassName:o};h=!1}const f=qd(a).join(":");return{isTailwindClass:!0,modifierId:l?f+Sa:f,classGroupId:d,originalClassName:o,hasPostfixModifier:h}}).reverse().filter(o=>{if(!o.isTailwindClass)return!0;const{modifierId:a,classGroupId:l,hasPostfixModifier:u}=o,c=a+l;return s.has(c)?!1:(s.add(c),n(l,u).forEach(d=>s.add(a+d)),!0)}).reverse().map(o=>o.originalClassName).join(" ")}function Ud(){let r=0,e,t,i="";for(;r<arguments.length;)(e=arguments[r++])&&(t=Ea(e))&&(i&&(i+=" "),i+=t);return i}function Ea(r){if(typeof r=="string")return r;let e,t="";for(let i=0;i<r.length;i++)r[i]&&(e=Ea(r[i]))&&(t&&(t+=" "),t+=e);return t}function Hd(r,...e){let t,i,n,s=o;function o(l){const u=e.reduce((c,d)=>d(c),r());return t=$d(u),i=t.cache.get,n=t.cache.set,s=a,a(l)}function a(l){const u=i(l);if(u)return u;const c=jd(l,t);return n(l,c),c}return function(){return s(Ud.apply(null,arguments))}}function oe(r){const e=t=>t[r]||[];return e.isThemeGetter=!0,e}const Ba=/^\[(?:([a-z-]+):)?(.+)\]$/i,Gd=/^\d+\/\d+$/,Wd=new Set(["px","full","screen"]),Yd=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Kd=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Zd=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Xd=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Jd=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function mt(r){return Yt(r)||Wd.has(r)||Gd.test(r)}function Mt(r){return xr(r,"length",op)}function Yt(r){return!!r&&!Number.isNaN(Number(r))}function qi(r){return xr(r,"number",Yt)}function Kr(r){return!!r&&Number.isInteger(Number(r))}function Qd(r){return r.endsWith("%")&&Yt(r.slice(0,-1))}function K(r){return Ba.test(r)}function Pt(r){return Yd.test(r)}const ep=new Set(["length","size","percentage"]);function tp(r){return xr(r,ep,La)}function rp(r){return xr(r,"position",La)}const ip=new Set(["image","url"]);function np(r){return xr(r,ip,lp)}function sp(r){return xr(r,"",ap)}function Zr(){return!0}function xr(r,e,t){const i=Ba.exec(r);return i?i[1]?typeof e=="string"?i[1]===e:e.has(i[1]):t(i[2]):!1}function op(r){return Kd.test(r)&&!Zd.test(r)}function La(){return!1}function ap(r){return Xd.test(r)}function lp(r){return Jd.test(r)}function up(){const r=oe("colors"),e=oe("spacing"),t=oe("blur"),i=oe("brightness"),n=oe("borderColor"),s=oe("borderRadius"),o=oe("borderSpacing"),a=oe("borderWidth"),l=oe("contrast"),u=oe("grayscale"),c=oe("hueRotate"),d=oe("invert"),h=oe("gap"),f=oe("gradientColorStops"),v=oe("gradientColorStopPositions"),g=oe("inset"),w=oe("margin"),b=oe("opacity"),m=oe("padding")