(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[637],{4098:function(e,t){var r,n="undefined"!=typeof self?self:this,i=function(){function e(){this.fetch=!1,this.DOMException=n.DOMException}return e.prototype=n,new e}();r=i,function(e){var t={searchParams:"URLSearchParams"in r,iterable:"Symbol"in r&&"iterator"in Symbol,blob:"FileReader"in r&&"Blob"in r&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in r,arrayBuffer:"ArrayBuffer"in r};if(t.arrayBuffer)var n=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],i=ArrayBuffer.isView||function(e){return e&&n.indexOf(Object.prototype.toString.call(e))>-1};function o(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(e))throw TypeError("Invalid character in header field name");return e.toLowerCase()}function s(e){return"string"!=typeof e&&(e=String(e)),e}function a(e){var r={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return t.iterable&&(r[Symbol.iterator]=function(){return r}),r}function l(e){this.map={},e instanceof l?e.forEach(function(e,t){this.append(t,e)},this):Array.isArray(e)?e.forEach(function(e){this.append(e[0],e[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function u(e){if(e.bodyUsed)return Promise.reject(TypeError("Already read"));e.bodyUsed=!0}function c(e){return new Promise(function(t,r){e.onload=function(){t(e.result)},e.onerror=function(){r(e.error)}})}function d(e){var t=new FileReader,r=c(t);return t.readAsArrayBuffer(e),r}function h(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function f(){return this.bodyUsed=!1,this._initBody=function(e){if(this._bodyInit=e,e){if("string"==typeof e)this._bodyText=e;else if(t.blob&&Blob.prototype.isPrototypeOf(e))this._bodyBlob=e;else if(t.formData&&FormData.prototype.isPrototypeOf(e))this._bodyFormData=e;else if(t.searchParams&&URLSearchParams.prototype.isPrototypeOf(e))this._bodyText=e.toString();else{var r;t.arrayBuffer&&t.blob&&(r=e)&&DataView.prototype.isPrototypeOf(r)?(this._bodyArrayBuffer=h(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):t.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(e)||i(e))?this._bodyArrayBuffer=h(e):this._bodyText=e=Object.prototype.toString.call(e)}}else this._bodyText="";!this.headers.get("content-type")&&("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):t.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},t.blob&&(this.blob=function(){var e=u(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(!this._bodyFormData)return Promise.resolve(new Blob([this._bodyText]));throw Error("could not read FormData body as blob")},this.arrayBuffer=function(){return this._bodyArrayBuffer?u(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(d)}),this.text=function(){var e,t,r,n=u(this);if(n)return n;if(this._bodyBlob)return e=this._bodyBlob,r=c(t=new FileReader),t.readAsText(e),r;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),r=Array(t.length),n=0;n-1?n:r),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw TypeError("Body not allowed for GET or HEAD requests");this._initBody(i)}function g(e){var t=new FormData;return e.trim().split("&").forEach(function(e){if(e){var r=e.split("="),n=r.shift().replace(/\+/g," "),i=r.join("=").replace(/\+/g," ");t.append(decodeURIComponent(n),decodeURIComponent(i))}}),t}function v(e,t){t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new l(t.headers),this.url=t.url||"",this._initBody(e)}m.prototype.clone=function(){return new m(this,{body:this._bodyInit})},f.call(m.prototype),f.call(v.prototype),v.prototype.clone=function(){return new v(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new l(this.headers),url:this.url})},v.error=function(){var e=new v(null,{status:0,statusText:""});return e.type="error",e};var y=[301,302,303,307,308];v.redirect=function(e,t){if(-1===y.indexOf(t))throw RangeError("Invalid status code");return new v(null,{status:t,headers:{location:e}})},e.DOMException=r.DOMException;try{new e.DOMException}catch(t){e.DOMException=function(e,t){this.message=e,this.name=t;var r=Error(e);this.stack=r.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function b(r,n){return new Promise(function(i,o){var s=new m(r,n);if(s.signal&&s.signal.aborted)return o(new e.DOMException("Aborted","AbortError"));var a=new XMLHttpRequest;function u(){a.abort()}a.onload=function(){var e,t,r={status:a.status,statusText:a.statusText,headers:(e=a.getAllResponseHeaders()||"",t=new l,e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach(function(e){var r=e.split(":"),n=r.shift().trim();if(n){var i=r.join(":").trim();t.append(n,i)}}),t)};r.url="responseURL"in a?a.responseURL:r.headers.get("X-Request-URL");var n="response"in a?a.response:a.responseText;i(new v(n,r))},a.onerror=function(){o(TypeError("Network request failed"))},a.ontimeout=function(){o(TypeError("Network request failed"))},a.onabort=function(){o(new e.DOMException("Aborted","AbortError"))},a.open(s.method,s.url,!0),"include"===s.credentials?a.withCredentials=!0:"omit"===s.credentials&&(a.withCredentials=!1),"responseType"in a&&t.blob&&(a.responseType="blob"),s.headers.forEach(function(e,t){a.setRequestHeader(t,e)}),s.signal&&(s.signal.addEventListener("abort",u),a.onreadystatechange=function(){4===a.readyState&&s.signal.removeEventListener("abort",u)}),a.send(void 0===s._bodyInit?null:s._bodyInit)})}b.polyfill=!0,r.fetch||(r.fetch=b,r.Headers=l,r.Request=m,r.Response=v),e.Headers=l,e.Request=m,e.Response=v,e.fetch=b,Object.defineProperty(e,"__esModule",{value:!0})}({}),i.fetch.ponyfill=!0,delete i.fetch.polyfill,(t=i.fetch).default=i.fetch,t.fetch=i.fetch,t.Headers=i.Headers,t.Request=i.Request,t.Response=i.Response,e.exports=t},5677:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){let r=o.default,i={loading:e=>{let{error:t,isLoading:r,pastDelay:n}=e;return null}};e instanceof Promise?i.loader=()=>e:"function"==typeof e?i.loader=e:"object"==typeof e&&(i=n({},i,e)),i=n({},i,t);let l=i.loader,u=()=>null!=l?l().then(s):Promise.resolve(s(()=>null));return(i.loadableGenerated&&(i=n({},i,i.loadableGenerated),delete i.loadableGenerated),"boolean"!=typeof i.ssr||i.ssr)?r(n({},i,{loader:u})):(delete i.webpack,delete i.modules,a(r,i))},t.noSSR=a;var n=r(6495).Z,i=r(2648).Z,o=(i(r(7294)),i(r(8976)));function s(e){return{default:(null==e?void 0:e.default)||e}}function a(e,t){return delete t.webpack,delete t.modules,e(t)}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},2254:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LoadableContext=void 0;var n=(0,r(2648).Z)(r(7294));let i=n.default.createContext(null);t.LoadableContext=i},8976:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(6495).Z,i=(0,r(2648).Z)(r(7294)),o=r(2254);let s=[],a=[],l=!1;function u(e){let t=e(),r={loading:!0,loaded:null,error:null};return r.promise=t.then(e=>(r.loading=!1,r.loaded=e,e)).catch(e=>{throw r.loading=!1,r.error=e,e}),r}class c{promise(){return this._res.promise}retry(){this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};let{_res:e,_opts:t}=this;e.loading&&("number"==typeof t.delay&&(0===t.delay?this._state.pastDelay=!0:this._delay=setTimeout(()=>{this._update({pastDelay:!0})},t.delay)),"number"==typeof t.timeout&&(this._timeout=setTimeout(()=>{this._update({timedOut:!0})},t.timeout))),this._res.promise.then(()=>{this._update({}),this._clearTimeouts()}).catch(e=>{this._update({}),this._clearTimeouts()}),this._update({})}_update(e){this._state=n({},this._state,{error:this._res.error,loaded:this._res.loaded,loading:this._res.loading},e),this._callbacks.forEach(e=>e())}_clearTimeouts(){clearTimeout(this._delay),clearTimeout(this._timeout)}getCurrentValue(){return this._state}subscribe(e){return this._callbacks.add(e),()=>{this._callbacks.delete(e)}}constructor(e,t){this._loadFn=e,this._opts=t,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}}function d(e){return function(e,t){let r=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null},t),n=null;function s(){if(!n){let t=new c(e,r);n={getCurrentValue:t.getCurrentValue.bind(t),subscribe:t.subscribe.bind(t),retry:t.retry.bind(t),promise:t.promise.bind(t)}}return n.promise()}if(!l){let e=r.webpack?r.webpack():r.modules;e&&a.push(t=>{for(let r of e)if(-1!==t.indexOf(r))return s()})}function u(e,t){!function(){s();let e=i.default.useContext(o.LoadableContext);e&&Array.isArray(r.modules)&&r.modules.forEach(t=>{e(t)})}();let a=i.default.useSyncExternalStore(n.subscribe,n.getCurrentValue,n.getCurrentValue);return i.default.useImperativeHandle(t,()=>({retry:n.retry}),[]),i.default.useMemo(()=>{var t;return a.loading||a.error?i.default.createElement(r.loading,{isLoading:a.loading,pastDelay:a.pastDelay,timedOut:a.timedOut,error:a.error,retry:n.retry}):a.loaded?i.default.createElement((t=a.loaded)&&t.default?t.default:t,e):null},[e,a])}return u.preload=()=>s(),u.displayName="LoadableComponent",i.default.forwardRef(u)}(u,e)}function h(e,t){let r=[];for(;e.length;){let n=e.pop();r.push(n(t))}return Promise.all(r).then(()=>{if(e.length)return h(e,t)})}d.preloadAll=()=>new Promise((e,t)=>{h(s).then(e,t)}),d.preloadReady=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return new Promise(t=>{let r=()=>(l=!0,t());h(a,e).then(r,r)})},window.__NEXT_PRELOADREADY=d.preloadReady,t.default=d},1876:function(e){!function(){var t={675:function(e,t){"use strict";t.byteLength=function(e){var t=l(e),r=t[0],n=t[1];return(r+n)*3/4-n},t.toByteArray=function(e){var t,r,o=l(e),s=o[0],a=o[1],u=new i((s+a)*3/4-a),c=0,d=a>0?s-4:s;for(r=0;r>16&255,u[c++]=t>>8&255,u[c++]=255&t;return 2===a&&(t=n[e.charCodeAt(r)]<<2|n[e.charCodeAt(r+1)]>>4,u[c++]=255&t),1===a&&(t=n[e.charCodeAt(r)]<<10|n[e.charCodeAt(r+1)]<<4|n[e.charCodeAt(r+2)]>>2,u[c++]=t>>8&255,u[c++]=255&t),u},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,o=[],s=0,a=n-i;s>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return o.join("")}(e,s,s+16383>a?a:s+16383));return 1===i?o.push(r[(t=e[n-1])>>2]+r[t<<4&63]+"=="):2===i&&o.push(r[(t=(e[n-2]<<8)+e[n-1])>>10]+r[t>>4&63]+r[t<<2&63]+"="),o.join("")};for(var r=[],n=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,a=o.length;s0)throw Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");-1===r&&(r=t);var n=r===t?0:4-r%4;return[r,n]}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},72:function(e,t,r){"use strict";/*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT */var n=r(675),i=r(783),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function s(e){if(e>2147483647)throw RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,a.prototype),t}function a(e,t,r){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return c(e)}return l(e,t,r)}function l(e,t,r){if("string"==typeof e)return function(e,t){if(("string"!=typeof t||""===t)&&(t="utf8"),!a.isEncoding(t))throw TypeError("Unknown encoding: "+t);var r=0|f(e,t),n=s(r),i=n.write(e,t);return i!==r&&(n=n.slice(0,i)),n}(e,t);if(ArrayBuffer.isView(e))return d(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(R(e,ArrayBuffer)||e&&R(e.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(R(e,SharedArrayBuffer)||e&&R(e.buffer,SharedArrayBuffer)))return function(e,t,r){var n;if(t<0||e.byteLength=2147483647)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function f(e,t){if(a.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||R(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return k(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return P(e).length;default:if(i)return n?-1:k(e).length;t=(""+t).toLowerCase(),i=!0}}function p(e,t,r){var i,o,s=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===r||r>this.length)&&(r=this.length),r<=0||(r>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var i="",o=t;o2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),(o=r=+r)!=o&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return -1;r=e.length-1}else if(r<0){if(!i)return -1;r=0}if("string"==typeof t&&(t=a.from(t,n)),a.isBuffer(t))return 0===t.length?-1:v(e,t,r,n,i);if("number"==typeof t)return(t&=255,"function"==typeof Uint8Array.prototype.indexOf)?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):v(e,[t],r,n,i);throw TypeError("val must be string, number or Buffer")}function v(e,t,r,n,i){var o,s=1,a=e.length,l=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return -1;s=2,a/=2,l/=2,r/=2}function u(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(i){var c=-1;for(o=r;oa&&(r=a-l),o=r;o>=0;o--){for(var d=!0,h=0;h239?4:u>223?3:u>191?2:1;if(i+d<=r)switch(d){case 1:u<128&&(c=u);break;case 2:(192&(o=e[i+1]))==128&&(l=(31&u)<<6|63&o)>127&&(c=l);break;case 3:o=e[i+1],s=e[i+2],(192&o)==128&&(192&s)==128&&(l=(15&u)<<12|(63&o)<<6|63&s)>2047&&(l<55296||l>57343)&&(c=l);break;case 4:o=e[i+1],s=e[i+2],a=e[i+3],(192&o)==128&&(192&s)==128&&(192&a)==128&&(l=(15&u)<<18|(63&o)<<12|(63&s)<<6|63&a)>65535&&l<1114112&&(c=l)}null===c?(c=65533,d=1):c>65535&&(c-=65536,n.push(c>>>10&1023|55296),c=56320|1023&c),n.push(c),i+=d}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);for(var r="",n=0;nr)throw RangeError("Trying to access beyond buffer length")}function S(e,t,r,n,i,o){if(!a.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw RangeError("Index out of range")}function w(e,t,r,n,i,o){if(r+n>e.length||r<0)throw RangeError("Index out of range")}function x(e,t,r,n,o){return t=+t,r>>>=0,o||w(e,t,r,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,r,n,23,4),r+4}function E(e,t,r,n,o){return t=+t,r>>>=0,o||w(e,t,r,8,17976931348623157e292,-17976931348623157e292),i.write(e,t,r,n,52,8),r+8}t.Buffer=a,t.SlowBuffer=function(e){return+e!=e&&(e=0),a.alloc(+e)},t.INSPECT_MAX_BYTES=50,t.kMaxLength=2147483647,a.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),a.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(a.prototype,"parent",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.buffer}}),Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.byteOffset}}),a.poolSize=8192,a.from=function(e,t,r){return l(e,t,r)},Object.setPrototypeOf(a.prototype,Uint8Array.prototype),Object.setPrototypeOf(a,Uint8Array),a.alloc=function(e,t,r){return(u(e),e<=0)?s(e):void 0!==t?"string"==typeof r?s(e).fill(t,r):s(e).fill(t):s(e)},a.allocUnsafe=function(e){return c(e)},a.allocUnsafeSlow=function(e){return c(e)},a.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==a.prototype},a.compare=function(e,t){if(R(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),R(t,Uint8Array)&&(t=a.from(t,t.offset,t.byteLength)),!a.isBuffer(e)||!a.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var r=e.length,n=t.length,i=0,o=Math.min(r,n);ir&&(e+=" ... "),""},o&&(a.prototype[o]=a.prototype.inspect),a.prototype.compare=function(e,t,r,n,i){if(R(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),!a.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return -1;if(t>=r)return 1;if(t>>>=0,r>>>=0,n>>>=0,i>>>=0,this===e)return 0;for(var o=i-n,s=r-t,l=Math.min(o,s),u=this.slice(n,i),c=e.slice(t,r),d=0;d>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var i,o,s,a,l,u,c,d,h,f,p,m,g=this.length-t;if((void 0===r||r>g)&&(r=g),e.length>0&&(r<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var v=!1;;)switch(n){case"hex":return function(e,t,r,n){r=Number(r)||0;var i=e.length-r;n?(n=Number(n))>i&&(n=i):n=i;var o=t.length;n>o/2&&(n=o/2);for(var s=0;s>8,i.push(r%256),i.push(n);return i}(e,this.length-p),this,p,m);default:if(v)throw TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),v=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},a.prototype.slice=function(e,t){var r=this.length;e=~~e,t=void 0===t?r:~~t,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),t<0?(t+=r)<0&&(t=0):t>r&&(t=r),t>>=0,t>>>=0,r||b(e,t,this.length);for(var n=this[e],i=1,o=0;++o>>=0,t>>>=0,r||b(e,t,this.length);for(var n=this[e+--t],i=1;t>0&&(i*=256);)n+=this[e+--t]*i;return n},a.prototype.readUInt8=function(e,t){return e>>>=0,t||b(e,1,this.length),this[e]},a.prototype.readUInt16LE=function(e,t){return e>>>=0,t||b(e,2,this.length),this[e]|this[e+1]<<8},a.prototype.readUInt16BE=function(e,t){return e>>>=0,t||b(e,2,this.length),this[e]<<8|this[e+1]},a.prototype.readUInt32LE=function(e,t){return e>>>=0,t||b(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},a.prototype.readUInt32BE=function(e,t){return e>>>=0,t||b(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},a.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||b(e,t,this.length);for(var n=this[e],i=1,o=0;++o=(i*=128)&&(n-=Math.pow(2,8*t)),n},a.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||b(e,t,this.length);for(var n=t,i=1,o=this[e+--n];n>0&&(i*=256);)o+=this[e+--n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},a.prototype.readInt8=function(e,t){return(e>>>=0,t||b(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},a.prototype.readInt16LE=function(e,t){e>>>=0,t||b(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},a.prototype.readInt16BE=function(e,t){e>>>=0,t||b(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},a.prototype.readInt32LE=function(e,t){return e>>>=0,t||b(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},a.prototype.readInt32BE=function(e,t){return e>>>=0,t||b(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},a.prototype.readFloatLE=function(e,t){return e>>>=0,t||b(e,4,this.length),i.read(this,e,!0,23,4)},a.prototype.readFloatBE=function(e,t){return e>>>=0,t||b(e,4,this.length),i.read(this,e,!1,23,4)},a.prototype.readDoubleLE=function(e,t){return e>>>=0,t||b(e,8,this.length),i.read(this,e,!0,52,8)},a.prototype.readDoubleBE=function(e,t){return e>>>=0,t||b(e,8,this.length),i.read(this,e,!1,52,8)},a.prototype.writeUIntLE=function(e,t,r,n){if(e=+e,t>>>=0,r>>>=0,!n){var i=Math.pow(2,8*r)-1;S(this,e,t,r,i,0)}var o=1,s=0;for(this[t]=255&e;++s>>=0,r>>>=0,!n){var i=Math.pow(2,8*r)-1;S(this,e,t,r,i,0)}var o=r-1,s=1;for(this[t+o]=255&e;--o>=0&&(s*=256);)this[t+o]=e/s&255;return t+r},a.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||S(this,e,t,1,255,0),this[t]=255&e,t+1},a.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||S(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},a.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||S(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},a.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||S(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},a.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||S(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},a.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var i=Math.pow(2,8*r-1);S(this,e,t,r,i-1,-i)}var o=0,s=1,a=0;for(this[t]=255&e;++o>0)-a&255;return t+r},a.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var i=Math.pow(2,8*r-1);S(this,e,t,r,i-1,-i)}var o=r-1,s=1,a=0;for(this[t+o]=255&e;--o>=0&&(s*=256);)e<0&&0===a&&0!==this[t+o+1]&&(a=1),this[t+o]=(e/s>>0)-a&255;return t+r},a.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||S(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},a.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||S(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},a.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||S(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},a.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||S(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},a.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||S(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},a.prototype.writeFloatLE=function(e,t,r){return x(this,e,t,!0,r)},a.prototype.writeFloatBE=function(e,t,r){return x(this,e,t,!1,r)},a.prototype.writeDoubleLE=function(e,t,r){return E(this,e,t,!0,r)},a.prototype.writeDoubleBE=function(e,t,r){return E(this,e,t,!1,r)},a.prototype.copy=function(e,t,r,n){if(!a.isBuffer(e))throw TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n=this.length)throw RangeError("Index out of range");if(n<0)throw RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t=0;--o)e[o+t]=this[o+r];else Uint8Array.prototype.set.call(e,this.subarray(r,n),t);return i},a.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw TypeError("encoding must be a string");if("string"==typeof n&&!a.isEncoding(n))throw TypeError("Unknown encoding: "+n);if(1===e.length){var i,o=e.charCodeAt(0);("utf8"===n&&o<128||"latin1"===n)&&(e=o)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(i=t;i55295&&r<57344){if(!i){if(r>56319||s+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return o}function T(e){for(var t=[],r=0;r=t.length)&&!(i>=e.length);++i)t[i+r]=e[i];return i}function R(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}var A=function(){for(var e="0123456789abcdef",t=Array(256),r=0;r<16;++r)for(var n=16*r,i=0;i<16;++i)t[n+i]=e[r]+e[i];return t}()},783:function(e,t){/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */t.read=function(e,t,r,n,i){var o,s,a=8*i-n-1,l=(1<>1,c=-7,d=r?i-1:0,h=r?-1:1,f=e[t+d];for(d+=h,o=f&(1<<-c)-1,f>>=-c,c+=a;c>0;o=256*o+e[t+d],d+=h,c-=8);for(s=o&(1<<-c)-1,o>>=-c,c+=n;c>0;s=256*s+e[t+d],d+=h,c-=8);if(0===o)o=1-u;else{if(o===l)return s?NaN:(f?-1:1)*(1/0);s+=Math.pow(2,n),o-=u}return(f?-1:1)*s*Math.pow(2,o-n)},t.write=function(e,t,r,n,i,o){var s,a,l,u=8*o-i-1,c=(1<>1,h=23===i?5960464477539062e-23:0,f=n?0:o-1,p=n?1:-1,m=t<0||0===t&&1/t<0?1:0;for(isNaN(t=Math.abs(t))||t===1/0?(a=isNaN(t)?1:0,s=c):(s=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-s))<1&&(s--,l*=2),s+d>=1?t+=h/l:t+=h*Math.pow(2,1-d),t*l>=2&&(s++,l/=2),s+d>=c?(a=0,s=c):s+d>=1?(a=(t*l-1)*Math.pow(2,i),s+=d):(a=t*Math.pow(2,d-1)*Math.pow(2,i),s=0));i>=8;e[r+f]=255&a,f+=p,a/=256,i-=8);for(s=s<0;e[r+f]=255&s,f+=p,s/=256,u-=8);e[r+f-p]|=128*m}}},r={};function n(e){var i=r[e];if(void 0!==i)return i.exports;var o=r[e]={exports:{}},s=!0;try{t[e](o,o.exports,n),s=!1}finally{s&&delete r[e]}return o.exports}n.ab="//";var i=n(72);e.exports=i}()},100:function(){},7479:function(){},5152:function(e,t,r){e.exports=r(5677)},9008:function(e,t,r){e.exports=r(2636)},8777:function(e,t,r){"use strict";r.d(t,{Mi:function(){return eV},P1:function(){return ed},iR:function(){return eW},jp:function(){return es},sj:function(){return Q}});var n=r(7294);function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function o(e){for(var t=1;t=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function m(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var r,n=h(e);if(t){var i=h(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return m(e)}(this,r)}}function v(e){return function(e){if(Array.isArray(e))return y(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return y(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?y(e,t):void 0}}(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r1&&void 0!==arguments[1]?arguments[1]:function(){return{}},r=function(r){function i(e,r){var n;return s(this,i),(n=a.call(this,e,r)).state=t(o({},r.state)),n.updateStateProps=n.updateStateProps.bind(m(n)),n}d(i,r);var a=g(i);return l(i,[{key:"componentDidMount",value:function(){this.context.subscribe(this.updateStateProps)}},{key:"shouldComponentUpdate",value:function(e,t){return!z(t,this.state)||!z(e,this.props)}},{key:"componentWillUnmount",value:function(){this.context.unsubscribe(this.updateStateProps)}},{key:"updateStateProps",value:function(){this.setState(t(o({},this.context.state)))}},{key:"render",value:function(){var t=this,r=Y(this.state,this.props);return n.createElement(e,c({ref:function(e){t.instance=e}},r,{carouselStore:{getStoreState:this.context.getStoreState,masterSpinnerError:this.context.masterSpinnerError,masterSpinnerSuccess:this.context.masterSpinnerSuccess,setStoreState:this.context.setStoreState,subscribeMasterSpinner:this.context.subscribeMasterSpinner,unsubscribeAllMasterSpinner:this.context.unsubscribeAllMasterSpinner,unsubscribeMasterSpinner:this.context.unsubscribeMasterSpinner}}),this.props.children)}}]),i}(n.Component);return u(r,"contextType",Z),u(r,"propTypes",{children:I.children}),u(r,"defaultProps",{children:null}),r}w.resetWarningCache=S;var L=function(){function e(e,t,r,n,i,o){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==o){var s=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 s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:w,resetWarningCache:S};return r.PropTypes=r,r},M=b(function(e){e.exports=L()}),N="loading",D="success",j="error",I={children:M.oneOfType([M.arrayOf(M.node),M.node]),direction:M.oneOf(["forward","backward"]),height:function(e,t){var r=e[t];return"vertical"!==e.orientation||null!==r&&"number"==typeof r?null:Error("Missing required property '".concat(t,"' when orientation is vertical. You must supply a number representing the height in pixels"))},orientation:M.oneOf(["horizontal","vertical"]),isBgImage:function(e,t){return!0===e[t]&&"img"===e.tag?Error("HTML img elements should not have a backgroundImage. Please use ".concat(t," for other block-level HTML tags, like div, a, section, etc...")):null}},F=function(e){var t=e.min;return Math.min(e.max,Math.max(t,e.x))},_={buttonBack:"buttonBack___1mlaL"},B=["carouselStore","className","currentSlide","disabled","onClick","step","totalSlides","visibleSlides","infinite"],V=function(e){function t(e){var n;return s(this,t),(n=r.call(this,e)).handleOnClick=n.handleOnClick.bind(m(n)),n}d(t,e);var r=g(t);return l(t,[{key:"handleOnClick",value:function(e){var t=this.props,r=t.carouselStore,n=t.currentSlide,i=t.onClick,o=t.step,s=t.infinite,a=t.visibleSlides,l=t.totalSlides-a,u=Math.max(n-o,0);s&&(u=0===n?l:u),r.setStoreState({currentSlide:u,isPlaying:!1},null!==i&&i.call(this,e))}},{key:"render",value:function(){var e=this.props,r=(e.carouselStore,e.className),i=(e.currentSlide,e.disabled,e.onClick,e.step,e.totalSlides,e.visibleSlides,e.infinite),o=p(e,B),s=x([_.buttonBack,"carousel__back-button",r]),a=t.setDisabled(this.props.disabled,this.props.currentSlide,i);return n.createElement("button",c({type:"button","aria-label":"previous",className:s,onClick:this.handleOnClick,disabled:a},o),this.props.children)}}],[{key:"setDisabled",value:function(e,t,r){return null!==e?e:0===t&&!r}}]),t}(n.Component);u(V,"propTypes",{carouselStore:M.object.isRequired,children:I.children.isRequired,className:M.string,currentSlide:M.number.isRequired,disabled:M.bool,onClick:M.func,step:M.number.isRequired,totalSlides:M.number.isRequired,visibleSlides:M.number.isRequired,infinite:M.bool}),u(V,"defaultProps",{className:null,disabled:null,onClick:null,infinite:!1});var U=b(function(e,t){var r={}.toString,n="undefined"!=typeof window?window.Node:Function;e.exports=t=function(e){var t=typeof e;if("object"!=t)return t;if("object"==(t=i[r.call(e)]))return e instanceof Map?"map":e instanceof Set?"set":"object";if(t)return t;if(e instanceof n)switch(e.nodeType){case 1:return"element";case 3:return"text-node";case 9:return"document";case 11:return"document-fragment";default:return"dom-node"}};var i=t.types={"[object Function]":"function","[object Date]":"date","[object RegExp]":"regexp","[object Arguments]":"arguments","[object Array]":"array","[object Set]":"set","[object String]":"string","[object Null]":"null","[object Undefined]":"undefined","[object Number]":"number","[object Boolean]":"boolean","[object Object]":"object","[object Map]":"map","[object Text]":"text-node","[object Uint8Array]":"bit-array","[object Uint16Array]":"bit-array","[object Uint32Array]":"bit-array","[object Uint8ClampedArray]":"bit-array","[object Error]":"error","[object FormData]":"form-data","[object File]":"file","[object Blob]":"blob"}}),H=(U.types,{});H.number=function(e,t){return e!=e&&t!=t},H.function=function(e,t,r){return e.toString()===t.toString()&&H.object(e,t,r)&&O(e.prototype,t.prototype)},H.date=function(e,t){return+e==+t},H.regexp=function(e,t){return e.toString()===t.toString()},H.element=function(e,t){return e.outerHTML===t.outerHTML},H.textnode=function(e,t){return e.textContent===t.textContent},H.arguments=H["bit-array"]=H.array=k(function(e,t,r){var n=e.length;if(n!==t.length)return!1;for(r.push([e,t]);n--;)if(!O(e[n],t[n],r))return!1;return!0}),H.object=k(function(e,t,r){if("function"==typeof e.equal)return r.push([e,t]),e.equal(t,r);var n=T(e),i=T(t),o=n.length;if(o!==i.length)return!1;for(n.sort(),i.sort();o--;)if(n[o]!==i[o])return!1;for(r.push([e,t]),o=n.length;o--;){var s=n[o];if(!O(e[s],t[s],r))return!1}return!0});var z=O,q=function(e){var t;return!!e&&"object"==typeof e&&!("[object RegExp]"===(t=Object.prototype.toString.call(e))||"[object Date]"===t||e.$$typeof===$)},$="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;R.all=function(e,t){if(!Array.isArray(e))throw Error("first argument should be an array");return e.reduce(function(e,r){return R(e,r,t)},{})};var W,Y=R,Z=n.createContext(),K=function e(t){return Object.freeze(t),Object.getOwnPropertyNames(t).forEach(function(r){!t.hasOwnProperty(r)||null===t[r]||"object"!=typeof t[r]&&"function"!=typeof t[r]||Object.isFrozen(t[r])||e(t[r])}),t},X={masterSpinnerFinished:!1},G=function(){function e(t){s(this,e),this.state=K(Y(X,t)),this.subscriptions=[],this.masterSpinnerSubscriptions={},this.setStoreState=this.setStoreState.bind(this),this.getStoreState=this.getStoreState.bind(this),this.subscribe=this.subscribe.bind(this),this.unsubscribe=this.unsubscribe.bind(this),this.updateSubscribers=this.updateSubscribers.bind(this),this.subscribeMasterSpinner=this.subscribeMasterSpinner.bind(this),this.unsubscribeMasterSpinner=this.unsubscribeMasterSpinner.bind(this),this.unsubscribeAllMasterSpinner=this.unsubscribeAllMasterSpinner.bind(this),this.masterSpinnerSuccess=this.masterSpinnerSuccess.bind(this),this.masterSpinnerError=this.masterSpinnerError.bind(this)}return l(e,[{key:"setStoreState",value:function(e,t){this.state=K(Y(this.state,e)),this.updateSubscribers(t)}},{key:"getStoreState",value:function(){return Y({},this.state)}},{key:"subscribe",value:function(e){this.subscriptions.push(e)}},{key:"unsubscribe",value:function(e){var t=this.subscriptions.indexOf(e);-1!==t&&this.subscriptions.splice(t,1)}},{key:"updateSubscribers",value:function(e){this.subscriptions.forEach(function(e){return e()}),"function"==typeof e&&e(this.getStoreState())}},{key:"subscribeMasterSpinner",value:function(e){-1===Object.keys(this.masterSpinnerSubscriptions).indexOf(e)&&(this.masterSpinnerSubscriptions[e]={success:!1,error:!1,complete:!1})}},{key:"unsubscribeMasterSpinner",value:function(e){return -1!==Object.keys(this.masterSpinnerSubscriptions).indexOf(e)&&(this.setMasterSpinnerFinished(),delete this.masterSpinnerSubscriptions[e])}},{key:"unsubscribeAllMasterSpinner",value:function(){this.masterSpinnerSubscriptions={},this.setMasterSpinnerFinished()}},{key:"masterSpinnerSuccess",value:function(e){this.masterSpinnerSubscriptions[e].success=!0,this.masterSpinnerSubscriptions[e].complete=!0,this.setMasterSpinnerFinished()}},{key:"masterSpinnerError",value:function(e){this.masterSpinnerSubscriptions[e].error=!0,this.masterSpinnerSubscriptions[e].complete=!0,this.setMasterSpinnerFinished()}},{key:"setMasterSpinnerFinished",value:function(){this.setStoreState({masterSpinnerFinished:this.isMasterSpinnerFinished()})}},{key:"isMasterSpinnerFinished",value:function(){var e=this;return 0===Object.keys(this.masterSpinnerSubscriptions).filter(function(t){return!0!==e.masterSpinnerSubscriptions[t].complete}).length}}]),e}(),J=["children","className","currentSlide","disableAnimation","disableKeyboard","hasMasterSpinner","interval","isPageScrollLocked","isPlaying","lockOnWindowScroll","naturalSlideHeight","naturalSlideWidth","orientation","playDirection","step","dragStep","tag","totalSlides","touchEnabled","dragEnabled","visibleSlides","infinite","isIntrinsicHeight"],Q=(u(W=function(e){function t(e){if(s(this,t),i=r.call(this,e),e.isIntrinsicHeight&&"horizontal"!==e.orientation)throw Error('isIntrinsicHeight can only be used in "horizontal" orientation. See Readme for more information.');var n,i,o={currentSlide:e.currentSlide,disableAnimation:e.disableAnimation,disableKeyboard:e.disableKeyboard,hasMasterSpinner:e.hasMasterSpinner,imageErrorCount:0,imageSuccessCount:0,interval:e.interval,isPageScrollLocked:e.isPageScrollLocked,isPlaying:e.isPlaying,lockOnWindowScroll:e.lockOnWindowScroll,masterSpinnerThreshold:0,naturalSlideHeight:e.naturalSlideHeight,naturalSlideWidth:e.naturalSlideWidth,orientation:e.orientation,playDirection:e.playDirection,privateUnDisableAnimation:!1,slideSize:100/e.totalSlides*(n=e.visibleSlides)/n,slideTraySize:100*e.totalSlides/e.visibleSlides,step:e.step,dragStep:e.dragStep,totalSlides:e.totalSlides,touchEnabled:e.touchEnabled,dragEnabled:e.dragEnabled,visibleSlides:e.visibleSlides,infinite:e.infinite,isIntrinsicHeight:e.isIntrinsicHeight};return i.carouselStore=new G(o),i}d(t,e);var r=g(t);return l(t,[{key:"componentDidUpdate",value:function(e){var t,r=this,n={};["currentSlide","disableAnimation","disableKeyboard","hasMasterSpinner","interval","isPlaying","naturalSlideHeight","naturalSlideWidth","lockOnWindowScroll","orientation","playDirection","step","dragStep","totalSlides","touchEnabled","dragEnabled","visibleSlides"].forEach(function(t){e[t]!==r.props[t]&&(n[t]=r.props[t])}),this.props.currentSlide===e.currentSlide||this.props.disableAnimation||(n.disableAnimation=!0,n.privateUnDisableAnimation=!0),this.props.totalSlides===e.totalSlides&&this.props.visibleSlides===e.visibleSlides||(n.slideSize=100/this.props.totalSlides*(t=this.props.visibleSlides)/t,n.slideTraySize=100*this.props.totalSlides/this.props.visibleSlides),this.carouselStore.state.currentSlide>=this.props.totalSlides&&(n.currentSlide=Math.max(this.props.totalSlides-1,0)),Object.keys(n).length>0&&this.carouselStore.setStoreState(n)}},{key:"componentWillUnmount",value:function(){this.carouselStore.unsubscribeAllMasterSpinner()}},{key:"getStore",value:function(){return this.carouselStore}},{key:"render",value:function(){var e=this.props,t=(e.children,e.className,e.currentSlide,e.disableAnimation,e.disableKeyboard,e.hasMasterSpinner,e.interval,e.isPageScrollLocked,e.isPlaying,e.lockOnWindowScroll,e.naturalSlideHeight,e.naturalSlideWidth,e.orientation,e.playDirection,e.step,e.dragStep,e.tag),r=(e.totalSlides,e.touchEnabled,e.dragEnabled,e.visibleSlides,e.infinite,e.isIntrinsicHeight,p(e,J)),i=x(["carousel",this.props.className]);return n.createElement(t,c({className:i},r),n.createElement(Z.Provider,{value:this.carouselStore},this.props.children))}}]),t}(n.Component),"propTypes",{children:I.children.isRequired,className:M.string,currentSlide:M.number,disableAnimation:M.bool,disableKeyboard:M.bool,hasMasterSpinner:M.bool,interval:M.number,isPageScrollLocked:M.bool,isPlaying:M.bool,lockOnWindowScroll:M.bool,naturalSlideHeight:M.number.isRequired,naturalSlideWidth:M.number.isRequired,orientation:I.orientation,playDirection:I.direction,step:M.number,dragStep:M.number,tag:M.string,totalSlides:M.number.isRequired,touchEnabled:M.bool,dragEnabled:M.bool,visibleSlides:M.number,infinite:M.bool,isIntrinsicHeight:M.bool}),u(W,"defaultProps",{className:null,currentSlide:0,disableAnimation:!1,disableKeyboard:!1,hasMasterSpinner:!1,interval:5e3,isPageScrollLocked:!1,isPlaying:!1,lockOnWindowScroll:!1,orientation:"horizontal",playDirection:"forward",step:1,dragStep:1,tag:"div",touchEnabled:!0,dragEnabled:!0,visibleSlides:1,infinite:!1,isIntrinsicHeight:!1}),W);Z.Consumer;var ee,et,er,en,ei,eo,es=A(V,function(e){return{currentSlide:e.currentSlide,step:e.step,totalSlides:e.totalSlides,visibleSlides:e.visibleSlides,infinite:e.infinite}}),ea={buttonFirst:"buttonFirst___2rhFr"},el=["carouselStore","className","currentSlide","disabled","onClick","totalSlides"],eu=(A((u(ee=function(e){function t(){var e;return s(this,t),(e=r.call(this)).handleOnClick=e.handleOnClick.bind(m(e)),e}d(t,e);var r=g(t);return l(t,[{key:"handleOnClick",value:function(e){var t=this.props,r=t.carouselStore,n=t.onClick;r.setStoreState({currentSlide:0,isPlaying:!1},null!==n&&n.call(this,e))}},{key:"render",value:function(){var e=this.props,t=(e.carouselStore,e.className),r=e.currentSlide,i=e.disabled,o=(e.onClick,e.totalSlides,p(e,el)),s=x([ea.buttonFirst,"carousel__first-button",t]);return n.createElement("button",c({type:"button","aria-label":"first",className:s,onClick:this.handleOnClick,disabled:null!==i?i:0===r},o),this.props.children)}}]),t}(n.Component),"propTypes",{carouselStore:M.object.isRequired,children:I.children.isRequired,className:M.string,currentSlide:M.number.isRequired,disabled:M.bool,onClick:M.func,totalSlides:M.number.isRequired}),u(ee,"defaultProps",{className:null,disabled:null,onClick:null}),ee),function(e){return{currentSlide:e.currentSlide,totalSlides:e.totalSlides}}),{buttonNext:"buttonNext___2mOCa"}),ec=["carouselStore","className","currentSlide","disabled","onClick","step","totalSlides","visibleSlides","infinite"],ed=A((u(et=function(e){function t(e){var n;return s(this,t),(n=r.call(this,e)).handleOnClick=n.handleOnClick.bind(m(n)),n}d(t,e);var r=g(t);return l(t,[{key:"handleOnClick",value:function(e){var t=this.props,r=t.currentSlide,n=t.onClick,i=t.step,o=t.carouselStore,s=t.infinite,a=t.totalSlides-t.visibleSlides,l=Math.min(i+r,a);s&&(l=a===r?0:l),o.setStoreState({currentSlide:l,isPlaying:!1},null!==n&&n.call(this,e))}},{key:"render",value:function(){var e=this.props,r=(e.carouselStore,e.className),i=e.currentSlide,o=e.disabled,s=(e.onClick,e.step,e.totalSlides),a=e.visibleSlides,l=e.infinite,u=p(e,ec),d=x([eu.buttonNext,"carousel__next-button",r]),h=t.setDisabled(o,i,a,s,l);return n.createElement("button",c({type:"button","aria-label":"next",className:d,onClick:this.handleOnClick,disabled:h},u),this.props.children)}}],[{key:"setDisabled",value:function(e,t,r,n,i){return null!==e?e:t>=n-r&&!i}}]),t}(n.PureComponent),"propTypes",{carouselStore:M.object.isRequired,children:I.children.isRequired,className:M.string,currentSlide:M.number.isRequired,disabled:M.bool,onClick:M.func,step:M.number.isRequired,totalSlides:M.number.isRequired,visibleSlides:M.number.isRequired,infinite:M.bool}),u(et,"defaultProps",{className:null,disabled:null,onClick:null,infinite:!1}),et),function(e){return{currentSlide:e.currentSlide,step:e.step,totalSlides:e.totalSlides,visibleSlides:e.visibleSlides,infinite:e.infinite}}),eh={buttonLast:"buttonLast___2yuh0"},ef=["carouselStore","className","currentSlide","disabled","onClick","totalSlides","visibleSlides"],ep=(A((u(er=function(e){function t(){var e;return s(this,t),(e=r.call(this)).handleOnClick=e.handleOnClick.bind(m(e)),e}d(t,e);var r=g(t);return l(t,[{key:"handleOnClick",value:function(e){var t=this.props,r=t.carouselStore,n=t.onClick,i=t.totalSlides,o=t.visibleSlides;r.setStoreState({currentSlide:i-o,isPlaying:!1},null!==n&&n.call(this,e))}},{key:"render",value:function(){var e=this.props,t=(e.carouselStore,e.className),r=e.currentSlide,i=e.disabled,o=(e.onClick,e.totalSlides),s=e.visibleSlides,a=p(e,ef),l=x([eh.buttonLast,"carousel__last-button",t]);return n.createElement("button",c({type:"button","aria-label":"last",className:l,onClick:this.handleOnClick,disabled:null!==i?i:r>=o-s},a),this.props.children)}}]),t}(n.Component),"propTypes",{carouselStore:M.object.isRequired,children:I.children.isRequired,className:M.string,currentSlide:M.number.isRequired,disabled:M.bool,onClick:M.func,totalSlides:M.number.isRequired,visibleSlides:M.number.isRequired}),u(er,"defaultProps",{className:null,disabled:null,onClick:null}),er),function(e){return{currentSlide:e.currentSlide,totalSlides:e.totalSlides,visibleSlides:e.visibleSlides}}),{buttonNext:"buttonNext___3Lm3s"}),em=["carouselStore","children","childrenPaused","childrenPlaying","className","isPlaying","onClick"],eg=(A((u(en=function(e){function t(e){var n;return s(this,t),(n=r.call(this,e)).handleOnClick=n.handleOnClick.bind(m(n)),n}d(t,e);var r=g(t);return l(t,[{key:"handleOnClick",value:function(e){var t=this.props.onClick;this.props.carouselStore.setStoreState({isPlaying:!this.props.isPlaying},null!==t&&t.call(this,e))}},{key:"render",value:function(){var e=this.props,t=(e.carouselStore,e.children,e.childrenPaused),r=e.childrenPlaying,i=e.className,o=e.isPlaying,s=(e.onClick,p(e,em)),a=x([ep.buttonNext,"carousel__play-button",i]);return n.createElement("button",c({type:"button","aria-label":"play",className:a,onClick:this.handleOnClick},s),o&&r,!o&&t,this.props.children)}}]),t}(n.PureComponent),"propTypes",{carouselStore:M.object.isRequired,children:M.node,childrenPaused:M.node,childrenPlaying:M.node,className:M.string,isPlaying:M.bool.isRequired,onClick:M.func}),u(en,"defaultProps",{children:null,childrenPaused:null,childrenPlaying:null,className:null,onClick:null}),en),function(e){return{isPlaying:e.isPlaying}}),{dot:"dot___3c3SI"}),ev=["carouselStore","children","className","currentSlide","disabled","onClick","selected","slide","totalSlides","visibleSlides"],ey=A((u(ei=function(e){function t(e){var n;return s(this,t),(n=r.call(this,e)).handleOnClick=n.handleOnClick.bind(m(n)),n}d(t,e);var r=g(t);return l(t,[{key:"handleOnClick",value:function(e){var t=this.props,r=t.carouselStore,n=t.onClick,i=t.slide,o=t.totalSlides,s=t.visibleSlides;r.setStoreState({currentSlide:i>=o-s?o-s:i,isPlaying:!1},null!==n&&n.call(this,e))}},{key:"render",value:function(){var e=this.props,t=(e.carouselStore,e.children,e.className),r=e.currentSlide,i=e.disabled,o=(e.onClick,e.selected),s=e.slide,a=(e.totalSlides,e.visibleSlides),l=p(e,ev),u=s>=r&&s=t&&c=r-i?r-i:c;u.push(n.createElement(ey,{key:c,slide:m,selected:f,disabled:!!o&&f},n.createElement("span",{className:x["carousel__dot-group-dot"]},this.props.dotNumbers&&c+1)))}return u}},{key:"render",value:function(){var e=this.props,t=(e.carouselStore,e.children),r=e.className,i=(e.currentSlide,e.dotNumbers,e.totalSlides,e.visibleSlides,e.disableActiveDots,e.showAsSelectedForCurrentSlideOnly,e.renderDots,p(e,ew)),o=x([eb.DotGroup,"carousel__dot-group",r]);return n.createElement("div",c({className:o},i),this.renderDots(),t)}}]),t}(n.Component),"propTypes",{children:I.children,className:M.string,currentSlide:M.number.isRequired,carouselStore:M.object.isRequired,totalSlides:M.number.isRequired,visibleSlides:M.number.isRequired,dotNumbers:M.bool,disableActiveDots:M.bool,showAsSelectedForCurrentSlideOnly:M.bool,renderDots:M.func}),u(eo,"defaultProps",{children:null,className:null,dotNumbers:!1,disableActiveDots:!0,showAsSelectedForCurrentSlideOnly:!1,renderDots:null}),eo),eE=(A(ex,function(e){return{currentSlide:e.currentSlide,totalSlides:e.totalSlides,visibleSlides:e.visibleSlides}}),{image:"image___xtQGH"}),eO=["src","alt"],ek=["carouselStore","children","className","hasMasterSpinner","isBgImage","onError","onLoad","renderError","renderLoading","style","tag"],eT=function(e){function t(e){var n;return s(this,t),(n=r.call(this,e)).state={imageStatus:N},n.handleImageLoad=n.handleImageLoad.bind(m(n)),n.handleImageError=n.handleImageError.bind(m(n)),n.image=null,n}d(t,e);var r=g(t);return l(t,[{key:"componentDidMount",value:function(){t.subscribeMasterSpinner(this.props),this.initImage()}},{key:"componentDidUpdate",value:function(e){e.src!==this.props.src&&(t.unsubscribeMasterSpinner(e),t.subscribeMasterSpinner(this.props),this.initImage())}},{key:"componentWillUnmount",value:function(){t.unsubscribeMasterSpinner(this.props),this.image.removeEventListener("load",this.handleImageLoad),this.image.removeEventListener("error",this.handleImageError),this.image=null}},{key:"initImage",value:function(){if(this.setState({imageStatus:N}),this.image=document.createElement("img"),this.image.addEventListener("load",this.handleImageLoad,!1),this.image.addEventListener("error",this.handleImageError,!1),this.image.src=this.props.src,this.image.readyState||this.image.complete){var e=this.image.src;this.image.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///ywAAAAAAQABAAACAUwAOw==",this.image.src=e}}},{key:"handleImageLoad",value:function(e){this.setState({imageStatus:D}),this.props.hasMasterSpinner&&this.props.carouselStore.masterSpinnerSuccess(this.props.src),this.props.onLoad&&this.props.onLoad(e)}},{key:"handleImageError",value:function(e){this.setState({imageStatus:j}),this.props.hasMasterSpinner&&this.props.carouselStore.masterSpinnerError(this.props.src),this.props.onError&&this.props.onError(e)}},{key:"tempTag",value:function(){return"img"===this.props.tag?"div":this.props.tag}},{key:"customRender",value:function(e){return"function"==typeof this.props[e]?this.props[e]():this.props.children}},{key:"renderLoading",value:function(e){var t=this.tempTag(),r=x([eE.image,eE.imageLoading,"carousel__image",this.props.isBgImage&&"carousel__image--with-background","carousel__image--loading",this.props.className]);return n.createElement(t,c({className:r},e),this.customRender("renderLoading"))}},{key:"renderError",value:function(e){var t=this.tempTag(),r=x([eE.image,eE.imageError,"carousel__image",this.props.isBgImage&&"carousel__image--with-background","carousel__image--error",this.props.className]);return n.createElement(t,c({className:r},e),this.customRender("renderError"))}},{key:"renderSuccess",value:function(e){var t=this.props,r=t.style,i=t.tag,o=x([eE.image,"carousel__image",this.props.isBgImage&&"carousel__image--with-background","carousel__image--success",this.props.className]),s=c({},r),a=e;if("img"!==i){var l=e.src;e.alt,a=p(e,eO),s=c({},r,{backgroundImage:'url("'.concat(l,'")'),backgroundSize:"cover"})}return n.createElement(i,c({className:o,style:s},a),this.props.children)}},{key:"render",value:function(){var e=this.props,t=(e.carouselStore,e.children,e.className,e.hasMasterSpinner,e.isBgImage,e.onError,e.onLoad,e.renderError,e.renderLoading,e.style,e.tag,p(e,ek));switch(this.state.imageStatus){case N:return this.renderLoading(t);case D:return this.renderSuccess(t);case j:return this.renderError(t);default:throw Error("unknown value for this.state.imageStatus")}}}],[{key:"subscribeMasterSpinner",value:function(e){e.hasMasterSpinner&&e.carouselStore.subscribeMasterSpinner(e.src)}},{key:"unsubscribeMasterSpinner",value:function(e){e.hasMasterSpinner&&e.carouselStore.unsubscribeMasterSpinner(e.src)}}]),t}(n.Component);u(eT,"propTypes",{alt:M.string,carouselStore:M.object.isRequired,children:I.children,className:M.string,hasMasterSpinner:M.bool.isRequired,isBgImage:I.isBgImage,onError:M.func,onLoad:M.func,renderError:M.func,renderLoading:M.func,src:M.string.isRequired,style:M.object,tag:M.string}),u(eT,"defaultProps",{alt:"",children:null,className:null,isBgImage:!1,onError:null,onLoad:null,renderError:null,renderLoading:null,style:null,tag:"img"});var eP,eC,eR,eA,eL=A(eT,function(e){return{hasMasterSpinner:e.hasMasterSpinner,orientation:e.orientation}}),eM={spinner:"spinner___27VUp",spin:"spin___S3UuE"},eN=["className"],eD=(u(eP=function(e){function t(){return s(this,t),r.apply(this,arguments)}d(t,e);var r=g(t);return l(t,[{key:"render",value:function(){var e=this.props,t=e.className,r=p(e,eN),i=x([eM.spinner,"carousel__spinner",t]);return n.createElement("div",c({className:i},r))}}]),t}(n.PureComponent),"propTypes",{className:M.string}),u(eP,"defaultProps",{className:null}),eP),ej={container:"container___2O72F",overlay:"overlay___IV4qY",hover:"hover___MYy31",zoom:"zoom___3kqYk",loading:"loading___1pvNI",imageLoadingSpinnerContainer:"imageLoadingSpinnerContainer___3UIPD"},eI=["alt","bgImageProps","bgImageTag","carouselStore","className","imageClassName","overlayClassName","isPinchZoomEnabled","spinner","src","srcZoomed","tag"],eF=(u(eC=function(e){function t(e){var n;return s(this,t),(n=r.call(this,e)).state={isImageLoading:!0,isHovering:!1,isZooming:!1,x:null,y:null,scale:1},n.tpCache={},n.handleImageComplete=n.handleImageComplete.bind(m(n)),n.handleOnMouseMove=n.handleOnMouseMove.bind(m(n)),n.handleOnMouseOut=n.handleOnMouseOut.bind(m(n)),n.handleOnMouseOver=n.handleOnMouseOver.bind(m(n)),n.handleOnTouchEnd=n.handleOnTouchEnd.bind(m(n)),n.handleOnTouchMove=n.handleOnTouchMove.bind(m(n)),n.handleOnTouchStart=n.handleOnTouchStart.bind(m(n)),n}d(t,e);var r=g(t);return l(t,[{key:"componentDidUpdate",value:function(e,t){!1===t.isZooming&&!0===this.state.isZooming&&this.props.carouselStore.setStoreState({isPageScrollLocked:!0}),!0===t.isZooming&&!1===this.state.isZooming&&this.props.carouselStore.setStoreState({isPageScrollLocked:!1})}},{key:"handleImageComplete",value:function(){this.setState({isImageLoading:!1})}},{key:"handleOnMouseOver",value:function(){this.state.isZooming||this.setState({isHovering:!0,scale:2})}},{key:"handleOnMouseOut",value:function(){this.state.isZooming||this.setState({isHovering:!1,scale:1})}},{key:"handleOnMouseMove",value:function(e){if(!this.state.isZooming){var t=E(e.nativeEvent.offsetX/e.target.offsetWidth*100),r=E(e.nativeEvent.offsetY/e.target.offsetHeight*100);this.setState({x:t,y:r})}}},{key:"handleOnTouchStart",value:function(e){var t=this;this.props.isPinchZoomEnabled&&(v(e.targetTouches).forEach(function(e){t.tpCache[e.identifier]={clientX:e.clientX,clientY:e.clientY}}),this.setState(function(e){return{isZooming:e.isZooming||Object.keys(t.tpCache).length>1}}))}},{key:"handleOnTouchMove",value:function(e){var r=this;if(this.state.isZooming){e.persist();var n=v(e.targetTouches).filter(function(e){return r.tpCache[e.identifier]}).slice(0,2);if(2===n.length){e.stopPropagation();var i=e.target.getBoundingClientRect(),s=n[0].identifier,a=n[1].identifier,l={x1:this.tpCache[s].clientX,y1:this.tpCache[s].clientY,x2:this.tpCache[a].clientX,y2:this.tpCache[a].clientY};l.distance=t.distanceBetweenTwoTouches(o({},l));var u=t.midpointBetweenTwoTouches(o({},l));l.cx=u.x,l.cy=u.y;var c={x1:n[0].clientX,y1:n[0].clientY,x2:n[1].clientX,y2:n[1].clientY};c.distance=t.distanceBetweenTwoTouches(o({},c));var d=t.midpointBetweenTwoTouches(o({},c));c.cx=d.x,c.cy=d.y;var h=E(F({min:0,max:100,x:(c.cx-i.left)/i.width*100})),f=E(F({min:0,max:100,x:(c.cy-i.top)/i.height*100})),p=function(e){return F({min:1,max:3,x:e.scale+(c.distance-l.distance)/100})};this.setState(function(e){return{isZooming:1!==p(e),scale:p(e),x:h,y:f}})}}}},{key:"handleOnTouchEnd",value:function(e){var t=this;this.props.isPinchZoomEnabled&&(v(e.changedTouches).forEach(function(e){delete t.tpCache[e.identifier]}),0===Object.keys(this.tpCache).length&&this.setState({isZooming:!1}))}},{key:"renderLoading",value:function(){if(this.state.isImageLoading){var e=this.props.spinner;return n.createElement("div",{className:x([ej.imageLoadingSpinnerContainer,"carousel__image-loading-spinner-container"])},e&&e(),!e&&n.createElement(eD,null))}return null}},{key:"render",value:function(){var e=this.props,t=e.alt,r=e.bgImageProps,i=e.bgImageTag,o=(e.carouselStore,e.className),s=e.imageClassName,a=e.overlayClassName,l=(e.isPinchZoomEnabled,e.spinner,e.src),u=e.srcZoomed,d=e.tag,h=p(e,eI),f=x([ej.container,o]),m=x([ej.image,"carousel__zoom-image",s]),g=x([ej.overlay,"carousel__zoom-image-overlay",this.state.isHovering&&ej.hover,this.state.isZooming&&ej.zoom,this.state.isHovering&&"carousel__zoom-image-overlay--hovering",this.state.isZooming&&"carousel__zoom-image-overlay--zooming",a]),v={};return(this.state.isHovering||this.state.isZooming)&&(v.transformOrigin="".concat(this.state.x," ").concat(this.state.y),v.transform="scale(".concat(this.state.scale,")")),n.createElement(d,c({className:f},h),n.createElement(eL,c({alt:t,className:m,tag:i,src:l,onLoad:this.handleImageComplete,onError:this.handleImageComplete},r)),n.createElement(eL,{className:g,tag:"div",src:u||l,style:v,isBgImage:!0,onFocus:this.handleOnMouseOver,onMouseOver:this.handleOnMouseOver,onBlur:this.handleOnMouseOut,onMouseOut:this.handleOnMouseOut,onMouseMove:this.handleOnMouseMove,onTouchStart:this.handleOnTouchStart,onTouchEnd:this.handleOnTouchEnd,onTouchMove:this.handleOnTouchMove}),this.renderLoading())}}],[{key:"midpointBetweenTwoTouches",value:function(e){var t=e.x1,r=e.y1;return{x:(t+e.x2)/2,y:(r+e.y2)/2}}},{key:"distanceBetweenTwoTouches",value:function(e){var t=e.x1,r=e.y1;return Math.sqrt(Math.pow(e.x2-t,2)+Math.pow(e.y2-r,2))}}]),t}(n.Component),"propTypes",{alt:M.string,bgImageProps:M.object,bgImageTag:M.string,carouselStore:M.object.isRequired,className:M.string,imageClassName:M.string,overlayClassName:M.string,spinner:M.func,src:M.string.isRequired,srcZoomed:M.string,tag:M.string,isPinchZoomEnabled:M.bool}),u(eC,"defaultProps",{alt:void 0,bgImageProps:{},bgImageTag:"div",className:null,imageClassName:null,overlayClassName:null,isPinchZoomEnabled:!0,spinner:null,srcZoomed:null,tag:"div"}),eC),e_=(A(eF,function(){return{}}),{slide:"slide___3-Nqo",slideHorizontal:"slideHorizontal___1NzNV",slideInner:"slideInner___2mfX9",focusRing:"focusRing___1airF"}),eB=["ariaLabel","carouselStore","children","className","classNameHidden","classNameVisible","currentSlide","index","innerClassName","innerTag","naturalSlideHeight","naturalSlideWidth","onBlur","onFocus","orientation","slideSize","style","tabIndex","tag","totalSlides","visibleSlides","isIntrinsicHeight"],eV=A((u(eR=function(e){function t(e){var n;return s(this,t),(n=r.call(this,e)).handleOnFocus=n.handleOnFocus.bind(m(n)),n.handleOnBlur=n.handleOnBlur.bind(m(n)),n.state={focused:!1},n}d(t,e);var r=g(t);return l(t,[{key:"isVisible",value:function(){var e=this.props,t=e.currentSlide,r=e.index,n=e.visibleSlides;return r>=t&&r=r.props.horizontalPixelThreshold}})})}},{key:"fakeOnDragEnd",value:function(){window.cancelAnimationFrame.call(window,this.moveTimer),this.computeCurrentSlide(),"vertical"===this.props.orientation&&this.props.carouselStore.setStoreState({isPageScrollLocked:!1}),this.setState({deltaX:0,deltaY:0,isBeingTouchDragged:!1,isBeingMouseDragged:!1}),this.isDocumentScrolling=!this.props.lockOnWindowScroll&&null}},{key:"callCallback",value:function(e,t){var r=this.props.trayProps;r&&"function"==typeof r[e]&&(t.persist(),r[e](t))}},{key:"handleOnMouseDown",value:function(e){if(!this.props.dragEnabled)return void this.callCallback("onMouseDown",e);e.preventDefault(),this.fakeOnDragStart({screenX:e.screenX,screenY:e.screenY,mouseDrag:!0}),this.callCallback("onMouseDown",e)}},{key:"handleOnMouseMove",value:function(e){this.state.isBeingMouseDragged&&(this.setState({cancelNextClick:!0}),e.preventDefault(),this.fakeOnDragMove(e.screenX,e.screenY))}},{key:"handleOnMouseUp",value:function(e){this.state.isBeingMouseDragged&&(e.preventDefault(),this.fakeOnDragEnd())}},{key:"handleOnClickCapture",value:function(e){if(!this.state.cancelNextClick)return void this.callCallback("onClickCapture",e);e.preventDefault(),this.setState({cancelNextClick:!1}),this.callCallback("onClickCapture",e)}},{key:"handleOnTouchStart",value:function(e){if(!this.props.touchEnabled)return void this.callCallback("onTouchStart",e);"vertical"===this.props.orientation&&e.preventDefault();var t=e.targetTouches[0];this.fakeOnDragStart({screenX:t.screenX,screenY:t.screenY,touchDrag:!0}),this.callCallback("onTouchStart",e)}},{key:"handleDocumentScroll",value:function(){var e=this;this.props.touchEnabled&&(this.isDocumentScrolling=!0,window.clearTimeout(this.scrollStopTimer),this.scrollStopTimer=window.setTimeout(function(){e.isDocumentScrolling=!1},66))}},{key:"handleOnTouchMove",value:function(e){if(!this.props.touchEnabled||this.props.lockOnWindowScroll&&this.isDocumentScrolling)return void this.callCallback("onTouchMove",e);window.cancelAnimationFrame.call(window,this.moveTimer);var t=e.targetTouches[0];t&&(this.fakeOnDragMove(t.screenX,t.screenY),this.callCallback("onTouchMove",e))}},{key:"forward",value:function(){var e=this.props;return Math.min(e.currentSlide+e.step,e.totalSlides-e.visibleSlides)}},{key:"backward",value:function(){var e=this.props;return Math.max(e.currentSlide-e.step,0)}},{key:"handleOnKeyDown",value:function(e){var t=e.keyCode,r=this.props,n=r.carouselStore,i=r.currentSlide,o=r.disableKeyboard,s=r.totalSlides,a=r.visibleSlides,l={};!0===o||s<=a||(37===t&&(e.preventDefault(),this.focus(),l.currentSlide=Math.max(0,i-1),l.isPlaying=!1),39===t&&(e.preventDefault(),this.focus(),l.currentSlide=Math.min(s-a,i+1),l.isPlaying=!1),n.setStoreState(l))}},{key:"playForward",value:function(){var e=this.props,t=e.carouselStore,r=e.currentSlide;t.setStoreState({currentSlide:this.forward()===r?0:this.forward()})}},{key:"playBackward",value:function(){var e=this.props,t=e.carouselStore,r=e.currentSlide,n=e.totalSlides,i=e.visibleSlides;t.setStoreState({currentSlide:this.backward()===r?n-i:this.backward()})}},{key:"play",value:function(){var e=this.props.playDirection;this.interval=setInterval("forward"===e?this.playForward:this.playBackward,this.props.interval)}},{key:"stop",value:function(){window.clearInterval(this.interval),this.interval=null}},{key:"lockScroll",value:function(){var e=new eU;this.scrollParent=e.getScrollParent(this.sliderTrayElement),this.scrollParent&&(this.originalOverflow=this.originalOverflow||this.scrollParent.style.overflow,this.scrollParent.style.overflow="hidden")}},{key:"unlockScroll",value:function(){this.scrollParent&&(this.scrollParent.style.overflow=this.originalOverflow,this.originalOverflow=null,this.scrollParent=null)}},{key:"blockWindowScroll",value:function(e){this.state.preventingVerticalScroll&&(e.preventDefault(),e.stopImmediatePropagation())}},{key:"computeCurrentSlide",value:function(){var e=t.slideSizeInPx(this.props.orientation,this.sliderTrayElement.clientWidth,this.sliderTrayElement.clientHeight,this.props.totalSlides),r=t.slidesMoved(this.props.moveThreshold,this.props.orientation,this.state.deltaX,this.state.deltaY,e,this.props.dragStep),n=this.props.totalSlides-Math.min(this.props.totalSlides,this.props.visibleSlides),i=F({min:0,max:n,x:this.props.currentSlide+r});this.props.infinite&&(this.props.currentSlide>=n&&r>0&&(i=0),0===this.props.currentSlide&&r<0&&(i=n)),this.props.carouselStore.setStoreState({currentSlide:i})}},{key:"focus",value:function(){this.sliderElement.focus()}},{key:"handleOnTouchEnd",value:function(e){this.endTouchMove(),this.callCallback("onTouchEnd",e)}},{key:"handleOnTouchCancel",value:function(e){this.endTouchMove(),this.callCallback("onTouchCancel",e)}},{key:"endTouchMove",value:function(){this.props.touchEnabled&&this.fakeOnDragEnd()}},{key:"renderMasterSpinner",value:function(){var e=this.props,t=e.hasMasterSpinner,r=e.masterSpinnerFinished,i=e.spinner;return t&&!r?("function"==typeof this.props.onMasterSpinner&&this.props.onMasterSpinner(),n.createElement("div",{className:x([eH.masterSpinnerContainer,"carousel__master-spinner-container"])},i&&i(),!i&&n.createElement(eD,null))):null}},{key:"render",value:function(){var e=this,t=this.props,r=t.ariaLabel,i=(t.carouselStore,t.children),o=t.className,s=t.classNameAnimation,a=t.classNameTray,l=t.classNameTrayWrap,u=t.currentSlide,d=t.disableAnimation,h=(t.disableKeyboard,t.dragEnabled,t.hasMasterSpinner,t.interval,t.isPageScrollLocked,t.isPlaying,t.lockOnWindowScroll,t.masterSpinnerFinished,t.moveThreshold,t.naturalSlideHeight),f=t.naturalSlideWidth,m=(t.onMasterSpinner,t.orientation),g=(t.playDirection,t.privateUnDisableAnimation,t.slideSize),v=t.slideTraySize,y=(t.spinner,t.style),b=t.tabIndex,S=(t.totalSlides,t.touchEnabled,t.trayProps),w=t.trayTag,O=t.visibleSlides,k=t.isIntrinsicHeight,T=p(t,ez),P=c({},y),C={};"vertical"===m&&(C.height=0,C.paddingBottom=E(100*h*O/f),C.width=E(100));var R={},A=E(-(g*u*1));(this.state.isBeingTouchDragged||this.state.isBeingMouseDragged||d)&&(R.transition="none"),k&&(R.display="flex",R.alignItems="stretch"),"vertical"===m?(R.transform="translateY(".concat(A,") translateY(").concat(this.state.deltaY,"px)"),R.width=E(100),R.flexDirection="column"):(R.width=E(v),R.transform="translateX(".concat(A,") translateX(").concat(this.state.deltaX,"px)"),R.flexDirection="row");var L=x(["vertical"===m?eH.verticalSlider:eH.horizontalSlider,"carousel__slider","vertical"===m?"carousel__slider--vertical":"carousel__slider--horizontal",o]),M=x([eH.sliderTrayWrap,"carousel__slider-tray-wrapper","vertical"===m?eH.verticalSlideTrayWrap:eH.horizontalTrayWrap,"vertical"===m?"carousel__slider-tray-wrap--vertical":"carousel__slider-tray-wrap--horizontal",l]),N=x([eH.sliderTray,s||eH.sliderAnimation,"carousel__slider-tray","vertical"===m?eH.verticalTray:eH.horizontalTray,"vertical"===m?"carousel__slider-tray--vertical":"carousel__slider-tray--horizontal",a]),D=(T.dragStep,T.step,T.infinite,T.preventVerticalScrollOnTouch,T.preventingVerticalScroll,T.horizontalPixelThreshold,T.verticalPixelThreshold,p(T,eq)),j=(S.className,S.onClickCapture,S.onMouseDown,S.onTouchCancel,S.onTouchEnd,S.onTouchMove,S.onTouchStart,S.ref,S.style,p(S,e$));return n.createElement("div",c({ref:function(t){e.sliderElement=t},className:L,"aria-live":"polite","aria-label":r,style:P,tabIndex:null!==b?b:0,onKeyDown:this.handleOnKeyDown,role:"listbox"},D),n.createElement("div",{className:M,style:C},n.createElement(w,c({ref:this.getSliderRef,className:N,style:R,onTouchStart:this.handleOnTouchStart,onTouchMove:this.handleOnTouchMove,onTouchEnd:this.handleOnTouchEnd,onTouchCancel:this.handleOnTouchCancel,onMouseDown:this.handleOnMouseDown,onClickCapture:this.handleOnClickCapture},j),i),this.renderMasterSpinner()))}}],[{key:"slideSizeInPx",value:function(e,t,r,n){return("horizontal"===e?t:r)/n}},{key:"slidesMoved",value:function(e,t,r,n,i,o){var s="horizontal"===t?r:n,a=Math.max(Math.abs(s)>=i*e?o:0,Math.abs(Math.round(s/i)));if(s<0)return a;var l=-a;return 0===l?0:l}}]),t}(n.Component),"propTypes",{ariaLabel:M.string,carouselStore:M.object.isRequired,children:M.node.isRequired,className:M.string,classNameAnimation:M.string,classNameTray:M.string,classNameTrayWrap:M.string,currentSlide:M.number.isRequired,disableAnimation:M.bool,disableKeyboard:M.bool,dragEnabled:M.bool.isRequired,dragStep:M.number,hasMasterSpinner:M.bool.isRequired,infinite:M.bool,interval:M.number.isRequired,isPageScrollLocked:M.bool.isRequired,isPlaying:M.bool.isRequired,lockOnWindowScroll:M.bool.isRequired,preventVerticalScrollOnTouch:M.bool,horizontalPixelThreshold:M.number,verticalPixelThreshold:M.number,masterSpinnerFinished:M.bool.isRequired,moveThreshold:M.number,naturalSlideHeight:M.number.isRequired,naturalSlideWidth:M.number.isRequired,onMasterSpinner:M.func,orientation:I.orientation.isRequired,playDirection:I.direction.isRequired,privateUnDisableAnimation:M.bool,slideSize:M.number.isRequired,slideTraySize:M.number.isRequired,spinner:M.func,step:M.number.isRequired,style:M.object,tabIndex:M.number,totalSlides:M.number.isRequired,touchEnabled:M.bool.isRequired,trayProps:M.shape({className:M.string,onClickCapture:M.func,onMouseDown:M.func,onTouchCancel:M.func,onTouchEnd:M.func,onTouchMove:M.func,onTouchStart:M.func,ref:M.shape({}),style:M.string}),trayTag:M.string,visibleSlides:M.number,isIntrinsicHeight:M.bool}),u(eA,"defaultProps",{ariaLabel:"slider",className:null,classNameAnimation:null,classNameTray:null,classNameTrayWrap:null,disableAnimation:!1,disableKeyboard:!1,dragStep:1,infinite:!1,preventVerticalScrollOnTouch:!0,horizontalPixelThreshold:15,verticalPixelThreshold:10,moveThreshold:.1,onMasterSpinner:null,privateUnDisableAnimation:!1,spinner:null,style:{},tabIndex:null,trayProps:{},trayTag:"div",visibleSlides:1,isIntrinsicHeight:!1}),eA),function(e){return{currentSlide:e.currentSlide,disableAnimation:e.disableAnimation,privateUnDisableAnimation:e.privateUnDisableAnimation,disableKeyboard:e.disableKeyboard,dragEnabled:e.dragEnabled,hasMasterSpinner:e.hasMasterSpinner,infinite:e.infinite,interval:e.interval,isPageScrollLocked:e.isPageScrollLocked,isPlaying:e.isPlaying,lockOnWindowScroll:e.lockOnWindowScroll,preventingVerticalScroll:e.preventingVerticalScroll,masterSpinnerFinished:e.masterSpinnerFinished,naturalSlideHeight:e.naturalSlideHeight,naturalSlideWidth:e.naturalSlideWidth,orientation:e.orientation,playDirection:e.playDirection,slideSize:e.slideSize,slideTraySize:e.slideTraySize,step:e.step,dragStep:e.dragStep,totalSlides:e.totalSlides,touchEnabled:e.touchEnabled,visibleSlides:e.visibleSlides,isIntrinsicHeight:e.isIntrinsicHeight}})},8357:function(e,t,r){"use strict";r.d(t,{w_:function(){return l}});var n=r(7294),i={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},o=n.createContext&&n.createContext(i),s=function(){return(s=Object.assign||function(e){for(var t,r=1,n=arguments.length;rt.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);it.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};function l(e){return function(t){return n.createElement(u,s({attr:s({},e.attr)},t),function e(t){return t&&t.map(function(t,r){return n.createElement(t.tag,s({key:r},t.attr),e(t.child))})}(e.child))}}function u(e){var t=function(t){var r,i=e.attr,o=e.size,l=e.title,u=a(e,["attr","size","title"]),c=o||t.size||"1em";return t.className&&(r=t.className),e.className&&(r=(r?r+" ":"")+e.className),n.createElement("svg",s({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,i,u,{className:r,style:s(s({color:e.color||t.color},t.style),e.style),height:c,width:c,xmlns:"http://www.w3.org/2000/svg"}),l&&n.createElement("title",null,l),e.children)};return void 0!==o?n.createElement(o.Consumer,null,function(e){return t(e)}):t(i)}},1739:function(e){e.exports={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}},3154:function(e,t,r){var n;if("function"==typeof fetch&&(n=void 0!==r.g&&r.g.fetch?r.g.fetch:"undefined"!=typeof window&&window.fetch?window.fetch:fetch),"undefined"==typeof window||void 0===window.document){var i=n||r(4098);i.default&&(i=i.default),t.default=i,e.exports=t.default}},7978:function(e,t,r){"use strict";r.d(t,{h:function(){return Z}});var n,i,o,s,a,l=r(7294),u=r(6723),c=r(3855);function d(e,t){let[r,n]=(0,l.useState)(e),i=(0,c.E)(e);return(0,u.e)(()=>n(i.current),[i,n,...t]),r}var h=r(4192),f=r(3781),p=r(9946),m=r(9650);function g(e){var t;if(e.type)return e.type;let r=null!=(t=e.as)?t:"button";if("string"==typeof r&&"button"===r.toLowerCase())return"button"}var v=r(3784),y=r(1591),b=((n=b||{})[n.First=0]="First",n[n.Previous=1]="Previous",n[n.Next=2]="Next",n[n.Last=3]="Last",n[n.Specific=4]="Specific",n[n.Nothing=5]="Nothing",n),S=r(9362),w=r(2351),x=r(4103),E=r(2984),O=r(8689),k=r(4575),T=r(6045),P=r(6567),C=r(1363),R=r(1147),A=r(6599);function L(e){return[e.screenX,e.screenY]}var M=r(8657),N=((i=N||{})[i.Open=0]="Open",i[i.Closed=1]="Closed",i),D=((o=D||{})[o.Single=0]="Single",o[o.Multi=1]="Multi",o),j=((s=j||{})[s.Pointer=0]="Pointer",s[s.Other=1]="Other",s),I=((a=I||{})[a.OpenCombobox=0]="OpenCombobox",a[a.CloseCombobox=1]="CloseCombobox",a[a.GoToOption=2]="GoToOption",a[a.RegisterOption=3]="RegisterOption",a[a.UnregisterOption=4]="UnregisterOption",a[a.RegisterLabel=5]="RegisterLabel",a);function F(e,t=e=>e){let r=null!==e.activeOptionIndex?e.options[e.activeOptionIndex]:null,n=(0,k.z2)(t(e.options.slice()),e=>e.dataRef.current.domRef.current),i=r?n.indexOf(r):null;return -1===i&&(i=null),{options:n,activeOptionIndex:i}}let _={1(e){var t;return null!=(t=e.dataRef.current)&&t.disabled||1===e.comboboxState?e:{...e,activeOptionIndex:null,comboboxState:1}},0(e){var t;if(null!=(t=e.dataRef.current)&&t.disabled||0===e.comboboxState)return e;let r=e.activeOptionIndex;if(e.dataRef.current){let{isSelected:t}=e.dataRef.current,n=e.options.findIndex(e=>t(e.dataRef.current.value));-1!==n&&(r=n)}return{...e,comboboxState:0,activeOptionIndex:r}},2(e,t){var r,n,i,o;if(null!=(r=e.dataRef.current)&&r.disabled||null!=(n=e.dataRef.current)&&n.optionsRef.current&&!(null!=(i=e.dataRef.current)&&i.optionsPropsRef.current.static)&&1===e.comboboxState)return e;let s=F(e);if(null===s.activeOptionIndex){let e=s.options.findIndex(e=>!e.dataRef.current.disabled);-1!==e&&(s.activeOptionIndex=e)}let a=function(e,t){let r=t.resolveItems();if(r.length<=0)return null;let n=t.resolveActiveIndex(),i=null!=n?n:-1,o=(()=>{switch(e.focus){case 0:return r.findIndex(e=>!t.resolveDisabled(e));case 1:{let e=r.slice().reverse().findIndex((e,r,n)=>(-1===i||!(n.length-r-1>=i))&&!t.resolveDisabled(e));return -1===e?e:r.length-1-e}case 2:return r.findIndex((e,r)=>!(r<=i)&&!t.resolveDisabled(e));case 3:{let e=r.slice().reverse().findIndex(e=>!t.resolveDisabled(e));return -1===e?e:r.length-1-e}case 4:return r.findIndex(r=>t.resolveId(r)===e.id);case 5:return null;default:!function(e){throw Error("Unexpected object: "+e)}(e)}})();return -1===o?n:o}(t,{resolveItems:()=>s.options,resolveActiveIndex:()=>s.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});return{...e,...s,activeOptionIndex:a,activationTrigger:null!=(o=t.trigger)?o:1}},3:(e,t)=>{var r,n;let i={id:t.id,dataRef:t.dataRef},o=F(e,e=>[...e,i]);null===e.activeOptionIndex&&null!=(r=e.dataRef.current)&&r.isSelected(t.dataRef.current.value)&&(o.activeOptionIndex=o.options.indexOf(i));let s={...e,...o,activationTrigger:1};return null!=(n=e.dataRef.current)&&n.__demoMode&&void 0===e.dataRef.current.value&&(s.activeOptionIndex=0),s},4:(e,t)=>{let r=F(e,e=>{let r=e.findIndex(e=>e.id===t.id);return -1!==r&&e.splice(r,1),e});return{...e,...r,activationTrigger:1}},5:(e,t)=>({...e,labelId:t.id})},B=(0,l.createContext)(null);function V(e){let t=(0,l.useContext)(B);if(null===t){let t=Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,V),t}return t}B.displayName="ComboboxActionsContext";let U=(0,l.createContext)(null);function H(e){let t=(0,l.useContext)(U);if(null===t){let t=Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,H),t}return t}function z(e,t){return(0,E.E)(t.type,_,e,t)}U.displayName="ComboboxDataContext";let q=l.Fragment,$=w.AN.RenderStrategy|w.AN.Static,W=(0,w.yV)(function(e,t){let{value:r,defaultValue:n,onChange:i,form:o,name:s,by:a=(e,t)=>e===t,disabled:c=!1,__demoMode:d=!1,nullable:p=!1,multiple:g=!1,...v}=e,[y=g?[]:void 0,S]=(0,R.q)(r,i,n),[x,k]=(0,l.useReducer)(z,{dataRef:(0,l.createRef)(),comboboxState:d?0:1,options:[],activeOptionIndex:null,activationTrigger:1,labelId:null}),C=(0,l.useRef)(!1),A=(0,l.useRef)({static:!1,hold:!1}),L=(0,l.useRef)(null),M=(0,l.useRef)(null),N=(0,l.useRef)(null),D=(0,l.useRef)(null),j=(0,f.z)("string"==typeof a?(e,t)=>(null==e?void 0:e[a])===(null==t?void 0:t[a]):a),I=(0,l.useCallback)(e=>(0,E.E)(F.mode,{1:()=>y.some(t=>j(t,e)),0:()=>j(y,e)}),[y]),F=(0,l.useMemo)(()=>({...x,optionsPropsRef:A,labelRef:L,inputRef:M,buttonRef:N,optionsRef:D,value:y,defaultValue:n,disabled:c,mode:g?1:0,get activeOptionIndex(){if(C.current&&null===x.activeOptionIndex&&x.options.length>0){let e=x.options.findIndex(e=>!e.dataRef.current.disabled);if(-1!==e)return e}return x.activeOptionIndex},compare:j,isSelected:I,nullable:p,__demoMode:d}),[y,n,c,g,p,d,x]),_=(0,l.useRef)(null!==F.activeOptionIndex?F.options[F.activeOptionIndex]:null);(0,l.useEffect)(()=>{let e=null!==F.activeOptionIndex?F.options[F.activeOptionIndex]:null;_.current!==e&&(_.current=e)}),(0,u.e)(()=>{x.dataRef.current=F},[F]),(0,m.O)([F.buttonRef,F.inputRef,F.optionsRef],()=>J.closeCombobox(),0===F.comboboxState);let V=(0,l.useMemo)(()=>({open:0===F.comboboxState,disabled:c,activeIndex:F.activeOptionIndex,activeOption:null===F.activeOptionIndex?null:F.options[F.activeOptionIndex].dataRef.current.value,value:y}),[F,c,y]),H=(0,f.z)(e=>{let t=F.options.find(t=>t.id===e);t&&G(t.dataRef.current.value)}),$=(0,f.z)(()=>{if(null!==F.activeOptionIndex){let{dataRef:e,id:t}=F.options[F.activeOptionIndex];G(e.current.value),J.goToOption(b.Specific,t)}}),W=(0,f.z)(()=>{k({type:0}),C.current=!0}),Y=(0,f.z)(()=>{k({type:1}),C.current=!1}),Z=(0,f.z)((e,t,r)=>(C.current=!1,e===b.Specific?k({type:2,focus:b.Specific,id:t,trigger:r}):k({type:2,focus:e,trigger:r}))),K=(0,f.z)((e,t)=>(k({type:3,id:e,dataRef:t}),()=>{var t;(null==(t=_.current)?void 0:t.id)===e&&(C.current=!0),k({type:4,id:e})})),X=(0,f.z)(e=>(k({type:5,id:e}),()=>k({type:5,id:null}))),G=(0,f.z)(e=>(0,E.E)(F.mode,{0:()=>null==S?void 0:S(e),1(){let t=F.value.slice(),r=t.findIndex(t=>j(t,e));return -1===r?t.push(e):t.splice(r,1),null==S?void 0:S(t)}})),J=(0,l.useMemo)(()=>({onChange:G,registerOption:K,registerLabel:X,goToOption:Z,closeCombobox:Y,openCombobox:W,selectActiveOption:$,selectOption:H}),[]),Q=(0,l.useRef)(null),ee=(0,h.G)();return(0,l.useEffect)(()=>{Q.current&&void 0!==n&&ee.addEventListener(Q.current,"reset",()=>{G(n)})},[Q,G]),l.createElement(B.Provider,{value:J},l.createElement(U.Provider,{value:F},l.createElement(P.up,{value:(0,E.E)(F.comboboxState,{0:P.ZM.Open,1:P.ZM.Closed})},null!=s&&null!=y&&(0,O.t)({[s]:y}).map(([e,t],r)=>l.createElement(T._,{features:T.A.Hidden,ref:0===r?e=>{var t;Q.current=null!=(t=null==e?void 0:e.closest("form"))?t:null}:void 0,...(0,w.oA)({key:e,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:o,name:e,value:t})})),(0,w.sY)({ourProps:null===t?{}:{ref:t},theirProps:v,slot:V,defaultTag:q,name:"Combobox"}))))}),Y=(0,w.yV)(function(e,t){var r;let n=H("Combobox.Button"),i=V("Combobox.Button"),o=(0,v.T)(n.buttonRef,t),s=(0,p.M)(),{id:a=`headlessui-combobox-button-${s}`,...c}=e,m=(0,h.G)(),y=(0,f.z)(e=>{switch(e.key){case C.R.ArrowDown:return e.preventDefault(),e.stopPropagation(),1===n.comboboxState&&i.openCombobox(),m.nextFrame(()=>{var e;return null==(e=n.inputRef.current)?void 0:e.focus({preventScroll:!0})});case C.R.ArrowUp:return e.preventDefault(),e.stopPropagation(),1===n.comboboxState&&(i.openCombobox(),m.nextFrame(()=>{n.value||i.goToOption(b.Last)})),m.nextFrame(()=>{var e;return null==(e=n.inputRef.current)?void 0:e.focus({preventScroll:!0})});case C.R.Escape:return 0!==n.comboboxState?void 0:(e.preventDefault(),n.optionsRef.current&&!n.optionsPropsRef.current.static&&e.stopPropagation(),i.closeCombobox(),m.nextFrame(()=>{var e;return null==(e=n.inputRef.current)?void 0:e.focus({preventScroll:!0})}));default:return}}),S=(0,f.z)(e=>{if((0,x.P)(e.currentTarget))return e.preventDefault();0===n.comboboxState?i.closeCombobox():(e.preventDefault(),i.openCombobox()),m.nextFrame(()=>{var e;return null==(e=n.inputRef.current)?void 0:e.focus({preventScroll:!0})})}),E=d(()=>{if(n.labelId)return[n.labelId,a].join(" ")},[n.labelId,a]),O=(0,l.useMemo)(()=>({open:0===n.comboboxState,disabled:n.disabled,value:n.value}),[n]),k={ref:o,id:a,type:function(e,t){let[r,n]=(0,l.useState)(()=>g(e));return(0,u.e)(()=>{n(g(e))},[e.type,e.as]),(0,u.e)(()=>{r||t.current&&t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&n("button")},[r,t]),r}(e,n.buttonRef),tabIndex:-1,"aria-haspopup":"listbox","aria-controls":null==(r=n.optionsRef.current)?void 0:r.id,"aria-expanded":n.disabled?void 0:0===n.comboboxState,"aria-labelledby":E,disabled:n.disabled,onClick:S,onKeyDown:y};return(0,w.sY)({ourProps:k,theirProps:c,slot:O,defaultTag:"button",name:"Combobox.Button"})}),Z=Object.assign(W,{Input:(0,w.yV)(function(e,t){var r,n,i,o,s;let a=(0,p.M)(),{id:u=`headlessui-combobox-input-${a}`,onChange:c,displayValue:m,type:g="text",...y}=e,S=H("Combobox.Input"),x=V("Combobox.Input"),O=(0,v.T)(S.inputRef,t),k=(0,l.useRef)(!1),T=(0,h.G)(),P="function"==typeof m&&void 0!==S.value?null!=(s=m(S.value))?s:"":"string"==typeof S.value?S.value:"";(0,A.q)(([e,t],[r,n])=>{k.current||S.inputRef.current&&(0===n&&1===t||e!==r)&&(S.inputRef.current.value=e)},[P,S.comboboxState]),(0,A.q)(([e],[t])=>{if(0===e&&1===t){let e=S.inputRef.current;if(!e)return;let t=e.value,{selectionStart:r,selectionEnd:n,selectionDirection:i}=e;e.value="",e.value=t,null!==i?e.setSelectionRange(r,n,i):e.setSelectionRange(r,n)}},[S.comboboxState]);let R=(0,l.useRef)(!1),L=(0,f.z)(()=>{R.current=!0}),M=(0,f.z)(()=>{setTimeout(()=>{R.current=!1})}),N=(0,f.z)(e=>{switch(k.current=!0,e.key){case C.R.Backspace:case C.R.Delete:if(0!==S.mode||!S.nullable)return;let t=e.currentTarget;T.requestAnimationFrame(()=>{""===t.value&&(x.onChange(null),S.optionsRef.current&&(S.optionsRef.current.scrollTop=0),x.goToOption(b.Nothing))});break;case C.R.Enter:if(k.current=!1,0!==S.comboboxState||R.current)return;if(e.preventDefault(),e.stopPropagation(),null===S.activeOptionIndex){x.closeCombobox();return}x.selectActiveOption(),0===S.mode&&x.closeCombobox();break;case C.R.ArrowDown:return k.current=!1,e.preventDefault(),e.stopPropagation(),(0,E.E)(S.comboboxState,{0:()=>{x.goToOption(b.Next)},1:()=>{x.openCombobox()}});case C.R.ArrowUp:return k.current=!1,e.preventDefault(),e.stopPropagation(),(0,E.E)(S.comboboxState,{0:()=>{x.goToOption(b.Previous)},1:()=>{x.openCombobox(),T.nextFrame(()=>{S.value||x.goToOption(b.Last)})}});case C.R.Home:if(e.shiftKey)break;return k.current=!1,e.preventDefault(),e.stopPropagation(),x.goToOption(b.First);case C.R.PageUp:return k.current=!1,e.preventDefault(),e.stopPropagation(),x.goToOption(b.First);case C.R.End:if(e.shiftKey)break;return k.current=!1,e.preventDefault(),e.stopPropagation(),x.goToOption(b.Last);case C.R.PageDown:return k.current=!1,e.preventDefault(),e.stopPropagation(),x.goToOption(b.Last);case C.R.Escape:return k.current=!1,0!==S.comboboxState?void 0:(e.preventDefault(),S.optionsRef.current&&!S.optionsPropsRef.current.static&&e.stopPropagation(),x.closeCombobox());case C.R.Tab:if(k.current=!1,0!==S.comboboxState)return;0===S.mode&&x.selectActiveOption(),x.closeCombobox()}}),D=(0,f.z)(e=>{x.openCombobox(),null==c||c(e)}),j=(0,f.z)(()=>{k.current=!1}),I=d(()=>{if(S.labelId)return[S.labelId].join(" ")},[S.labelId]),F=(0,l.useMemo)(()=>({open:0===S.comboboxState,disabled:S.disabled}),[S]),_={ref:O,id:u,role:"combobox",type:g,"aria-controls":null==(r=S.optionsRef.current)?void 0:r.id,"aria-expanded":S.disabled?void 0:0===S.comboboxState,"aria-activedescendant":null===S.activeOptionIndex||null==(n=S.options[S.activeOptionIndex])?void 0:n.id,"aria-labelledby":I,"aria-autocomplete":"list",defaultValue:null!=(o=null!=(i=e.defaultValue)?i:void 0!==S.defaultValue?null==m?void 0:m(S.defaultValue):null)?o:S.defaultValue,disabled:S.disabled,onCompositionStart:L,onCompositionEnd:M,onKeyDown:N,onChange:D,onBlur:j};return(0,w.sY)({ourProps:_,theirProps:y,slot:F,defaultTag:"input",name:"Combobox.Input"})}),Button:Y,Label:(0,w.yV)(function(e,t){let r=(0,p.M)(),{id:n=`headlessui-combobox-label-${r}`,...i}=e,o=H("Combobox.Label"),s=V("Combobox.Label"),a=(0,v.T)(o.labelRef,t);(0,u.e)(()=>s.registerLabel(n),[n]);let c=(0,f.z)(()=>{var e;return null==(e=o.inputRef.current)?void 0:e.focus({preventScroll:!0})}),d=(0,l.useMemo)(()=>({open:0===o.comboboxState,disabled:o.disabled}),[o]);return(0,w.sY)({ourProps:{ref:a,id:n,onClick:c},theirProps:i,slot:d,defaultTag:"label",name:"Combobox.Label"})}),Options:(0,w.yV)(function(e,t){let r=(0,p.M)(),{id:n=`headlessui-combobox-options-${r}`,hold:i=!1,...o}=e,s=H("Combobox.Options"),a=(0,v.T)(s.optionsRef,t),c=(0,P.oJ)(),h=null!==c?(c&P.ZM.Open)===P.ZM.Open:0===s.comboboxState;(0,u.e)(()=>{var t;s.optionsPropsRef.current.static=null!=(t=e.static)&&t},[s.optionsPropsRef,e.static]),(0,u.e)(()=>{s.optionsPropsRef.current.hold=i},[s.optionsPropsRef,i]),(0,y.B)({container:s.optionsRef.current,enabled:0===s.comboboxState,accept:e=>"option"===e.getAttribute("role")?NodeFilter.FILTER_REJECT:e.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT,walk(e){e.setAttribute("role","none")}});let f=d(()=>{var e,t;return null!=(t=s.labelId)?t:null==(e=s.buttonRef.current)?void 0:e.id},[s.labelId,s.buttonRef.current]),m=(0,l.useMemo)(()=>({open:0===s.comboboxState}),[s]),g={"aria-labelledby":f,role:"listbox","aria-multiselectable":1===s.mode||void 0,id:n,ref:a};return(0,w.sY)({ourProps:g,theirProps:o,slot:m,defaultTag:"ul",features:$,visible:h,name:"Combobox.Options"})}),Option:(0,w.yV)(function(e,t){var r,n;let i;let o=(0,p.M)(),{id:s=`headlessui-combobox-option-${o}`,disabled:a=!1,value:d,...h}=e,m=H("Combobox.Option"),g=V("Combobox.Option"),y=null!==m.activeOptionIndex&&m.options[m.activeOptionIndex].id===s,x=m.isSelected(d),E=(0,l.useRef)(null),O=(0,c.E)({disabled:a,value:d,domRef:E,textValue:null==(n=null==(r=E.current)?void 0:r.textContent)?void 0:n.toLowerCase()}),k=(0,v.T)(t,E),T=(0,f.z)(()=>g.selectOption(s));(0,u.e)(()=>g.registerOption(s,O),[O,s]);let P=(0,l.useRef)(!m.__demoMode);(0,u.e)(()=>{if(!m.__demoMode)return;let e=(0,S.k)();return e.requestAnimationFrame(()=>{P.current=!0}),e.dispose},[]),(0,u.e)(()=>{if(0!==m.comboboxState||!y||!P.current||0===m.activationTrigger)return;let e=(0,S.k)();return e.requestAnimationFrame(()=>{var e,t;null==(t=null==(e=E.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})}),e.dispose},[E,y,m.comboboxState,m.activationTrigger,m.activeOptionIndex]);let C=(0,f.z)(e=>{if(a)return e.preventDefault();T(),0===m.mode&&g.closeCombobox(),(0,M.tq)()||requestAnimationFrame(()=>{var e;return null==(e=m.inputRef.current)?void 0:e.focus()})}),R=(0,f.z)(()=>{if(a)return g.goToOption(b.Nothing);g.goToOption(b.Specific,s)}),A=(i=(0,l.useRef)([-1,-1]),{wasMoved(e){let t=L(e);return(i.current[0]!==t[0]||i.current[1]!==t[1])&&(i.current=t,!0)},update(e){i.current=L(e)}}),N=(0,f.z)(e=>A.update(e)),D=(0,f.z)(e=>{A.wasMoved(e)&&(a||y||g.goToOption(b.Specific,s,0))}),j=(0,f.z)(e=>{A.wasMoved(e)&&(a||y&&(m.optionsPropsRef.current.hold||g.goToOption(b.Nothing)))}),I=(0,l.useMemo)(()=>({active:y,selected:x,disabled:a}),[y,x,a]);return(0,w.sY)({ourProps:{id:s,ref:k,role:"option",tabIndex:!0===a?void 0:-1,"aria-disabled":!0===a||void 0,"aria-selected":x,disabled:void 0,onClick:C,onFocus:R,onPointerEnter:N,onMouseEnter:N,onPointerMove:D,onMouseMove:D,onPointerLeave:j,onMouseLeave:j},theirProps:h,slot:I,defaultTag:"li",name:"Combobox.Option"})})})},9516:function(e,t,r){"use strict";r.d(t,{d:function(){return d},f:function(){return c}});var n=r(7294),i=r(9946),o=r(2351),s=r(6723),a=r(3784),l=r(3781);let u=(0,n.createContext)(null);function c(){let[e,t]=(0,n.useState)([]);return[e.length>0?e.join(" "):void 0,(0,n.useMemo)(()=>function(e){let r=(0,l.z)(e=>(t(t=>[...t,e]),()=>t(t=>{let r=t.slice(),n=r.indexOf(e);return -1!==n&&r.splice(n,1),r}))),i=(0,n.useMemo)(()=>({register:r,slot:e.slot,name:e.name,props:e.props}),[r,e.slot,e.name,e.props]);return n.createElement(u.Provider,{value:i},e.children)},[t])]}let d=Object.assign((0,o.yV)(function(e,t){let r=(0,i.M)(),{id:l=`headlessui-description-${r}`,...c}=e,d=function e(){let t=(0,n.useContext)(u);if(null===t){let t=Error("You used a component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,e),t}return t}(),h=(0,a.T)(t);(0,s.e)(()=>d.register(l),[l,d.register]);let f={ref:h,...d.props,id:l};return(0,o.sY)({ourProps:f,theirProps:c,slot:d.slot||{},defaultTag:"p",name:d.name||"Description"})}),{})},8479:function(e,t,r){"use strict";let n,i;r.d(t,{V:function(){return eg}});var o,s,a,l,u,c,d=r(7294),h=r.t(d,2),f=r(2984),p=r(2351),m=r(3784),g=r(1363),v=r(4103),y=r(9946),b=r(2180),S=r(6045),w=r(4575),x=r(3781),E=r(3855),O=((o=O||{})[o.Forwards=0]="Forwards",o[o.Backwards=1]="Backwards",o),k=r(4879),T=r(5466);function P(...e){return(0,d.useMemo)(()=>(0,T.r)(...e),[...e])}function C(e,t,r,n){let i=(0,E.E)(r);(0,d.useEffect)(()=>{function r(e){i.current(e)}return(e=null!=e?e:window).addEventListener(t,r,n),()=>e.removeEventListener(t,r,n)},[e,t,n])}var R=r(1021),A=r(6599),L=r(4192);function M(e){if(!e)return new Set;if("function"==typeof e)return new Set(e());let t=new Set;for(let r of e.current)r.current instanceof HTMLElement&&t.add(r.current);return t}var N=((s=N||{})[s.None=1]="None",s[s.InitialFocus=2]="InitialFocus",s[s.TabLock=4]="TabLock",s[s.FocusLock=8]="FocusLock",s[s.RestoreFocus=16]="RestoreFocus",s[s.All=30]="All",s);let D=Object.assign((0,p.yV)(function(e,t){var r,n;let i,o,s=(0,d.useRef)(null),a=(0,m.T)(s,t),{initialFocus:l,containers:u,features:c=30,...h}=e;(0,b.H)()||(c=1);let g=P(s);!function({ownerDocument:e},t){let r=function(e=!0){let t=(0,d.useRef)(j.slice());return(0,A.q)(([e],[r])=>{!0===r&&!1===e&&(0,R.Y)(()=>{t.current.splice(0)}),!1===r&&!0===e&&(t.current=j.slice())},[e,j,t]),(0,x.z)(()=>{var e;return null!=(e=t.current.find(e=>null!=e&&e.isConnected))?e:null})}(t);(0,A.q)(()=>{t||(null==e?void 0:e.activeElement)===(null==e?void 0:e.body)&&(0,w.C5)(r())},[t]);let n=(0,d.useRef)(!1);(0,d.useEffect)(()=>(n.current=!1,()=>{n.current=!0,(0,R.Y)(()=>{n.current&&(0,w.C5)(r())})}),[])}({ownerDocument:g},!!(16&c));let v=function({ownerDocument:e,container:t,initialFocus:r},n){let i=(0,d.useRef)(null),o=(0,k.t)();return(0,A.q)(()=>{if(!n)return;let s=t.current;s&&(0,R.Y)(()=>{if(!o.current)return;let t=null==e?void 0:e.activeElement;if(null!=r&&r.current){if((null==r?void 0:r.current)===t){i.current=t;return}}else if(s.contains(t)){i.current=t;return}null!=r&&r.current?(0,w.C5)(r.current):(0,w.jA)(s,w.TO.First)===w.fE.Error&&console.warn("There are no focusable elements inside the "),i.current=null==e?void 0:e.activeElement})},[n]),i}({ownerDocument:g,container:s,initialFocus:l},!!(2&c));!function({ownerDocument:e,container:t,containers:r,previousActiveElement:n},i){let o=(0,k.t)();C(null==e?void 0:e.defaultView,"focus",e=>{if(!i||!o.current)return;let s=M(r);t.current instanceof HTMLElement&&s.add(t.current);let a=n.current;if(!a)return;let l=e.target;l&&l instanceof HTMLElement?I(s,l)?(n.current=l,(0,w.C5)(l)):(e.preventDefault(),e.stopPropagation(),(0,w.C5)(a)):(0,w.C5)(n.current)},!0)}({ownerDocument:g,container:s,containers:u,previousActiveElement:v},!!(8&c));let y=(i=(0,d.useRef)(0),r="keydown",n=e=>{"Tab"===e.key&&(i.current=e.shiftKey?1:0)},o=(0,E.E)(n),(0,d.useEffect)(()=>{function e(e){o.current(e)}return window.addEventListener(r,e,!0),()=>window.removeEventListener(r,e,!0)},[r,!0]),i),T=(0,x.z)(e=>{let t=s.current;t&&(0,f.E)(y.current,{[O.Forwards]:()=>{(0,w.jA)(t,w.TO.First,{skipElements:[e.relatedTarget]})},[O.Backwards]:()=>{(0,w.jA)(t,w.TO.Last,{skipElements:[e.relatedTarget]})}})}),N=(0,L.G)(),D=(0,d.useRef)(!1);return d.createElement(d.Fragment,null,!!(4&c)&&d.createElement(S._,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:T,features:S.A.Focusable}),(0,p.sY)({ourProps:{ref:a,onKeyDown(e){"Tab"==e.key&&(D.current=!0,N.requestAnimationFrame(()=>{D.current=!1}))},onBlur(e){let t=M(u);s.current instanceof HTMLElement&&t.add(s.current);let r=e.relatedTarget;r instanceof HTMLElement&&"true"!==r.dataset.headlessuiFocusGuard&&(I(t,r)||(D.current?(0,w.jA)(s.current,(0,f.E)(y.current,{[O.Forwards]:()=>w.TO.Next,[O.Backwards]:()=>w.TO.Previous})|w.TO.WrapAround,{relativeTo:e.target}):e.target instanceof HTMLElement&&(0,w.C5)(e.target)))}},theirProps:h,defaultTag:"div",name:"FocusTrap"}),!!(4&c)&&d.createElement(S._,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:T,features:S.A.Focusable}))}),{features:N}),j=[];function I(e,t){for(let r of e)if(r.contains(t))return!0;return!1}!function(e){function t(){"loading"!==document.readyState&&(e(),document.removeEventListener("DOMContentLoaded",t))}"undefined"!=typeof window&&"undefined"!=typeof document&&(document.addEventListener("DOMContentLoaded",t),t())}(()=>{function e(e){e.target instanceof HTMLElement&&e.target!==document.body&&j[0]!==e.target&&(j.unshift(e.target),(j=j.filter(e=>null!=e&&e.isConnected)).splice(10))}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})});var F=r(3935),_=r(6723);let B=(0,d.createContext)(!1);function V(e){return d.createElement(B.Provider,{value:e.force},e.children)}var U=r(7896);let H=d.Fragment,z=d.Fragment,q=(0,d.createContext)(null),$=Object.assign((0,p.yV)(function(e,t){let r=(0,d.useRef)(null),n=(0,m.T)((0,m.h)(e=>{r.current=e}),t),i=P(r),o=function(e){let t=(0,d.useContext)(B),r=(0,d.useContext)(q),n=P(e),[i,o]=(0,d.useState)(()=>{if(!t&&null!==r||U.O.isServer)return null;let e=null==n?void 0:n.getElementById("headlessui-portal-root");if(e)return e;if(null===n)return null;let i=n.createElement("div");return i.setAttribute("id","headlessui-portal-root"),n.body.appendChild(i)});return(0,d.useEffect)(()=>{null!==i&&(null!=n&&n.body.contains(i)||null==n||n.body.appendChild(i))},[i,n]),(0,d.useEffect)(()=>{t||null!==r&&o(r.current)},[r,o,t]),i}(r),[s]=(0,d.useState)(()=>{var e;return U.O.isServer?null:null!=(e=null==i?void 0:i.createElement("div"))?e:null}),a=(0,b.H)(),l=(0,d.useRef)(!1);return(0,_.e)(()=>{if(l.current=!1,!(!o||!s))return o.contains(s)||(s.setAttribute("data-headlessui-portal",""),o.appendChild(s)),()=>{l.current=!0,(0,R.Y)(()=>{var e;l.current&&o&&s&&(s instanceof Node&&o.contains(s)&&o.removeChild(s),o.childNodes.length<=0&&(null==(e=o.parentElement)||e.removeChild(o)))})}},[o,s]),a&&o&&s?(0,F.createPortal)((0,p.sY)({ourProps:{ref:n},theirProps:e,defaultTag:H,name:"Portal"}),s):null}),{Group:(0,p.yV)(function(e,t){let{target:r,...n}=e,i={ref:(0,m.T)(t)};return d.createElement(q.Provider,{value:r},(0,p.sY)({ourProps:i,theirProps:n,defaultTag:z,name:"Popover.Group"}))})});var W=r(9516),Y=r(6567);let Z=(0,d.createContext)(()=>{});Z.displayName="StackContext";var K=((a=K||{})[a.Add=0]="Add",a[a.Remove=1]="Remove",a);function X({children:e,onUpdate:t,type:r,element:n,enabled:i}){let o=(0,d.useContext)(Z),s=(0,x.z)((...e)=>{null==t||t(...e),o(...e)});return(0,_.e)(()=>{let e=void 0===i||!0===i;return e&&s(0,r,n),()=>{e&&s(1,r,n)}},[s,r,n,i]),d.createElement(Z.Provider,{value:s},e)}var G=r(9650);let{useState:J,useEffect:Q,useLayoutEffect:ee,useDebugValue:et}=h;"undefined"!=typeof window&&void 0!==window.document&&window.document.createElement;let er=h.useSyncExternalStore;var en=r(9362),ei=r(8657);let eo=(l={PUSH(e,t){var r;let n=null!=(r=this.get(e))?r:{doc:e,count:0,d:(0,en.k)(),meta:new Set};return n.count++,n.meta.add(t),this.set(e,n),this},POP(e,t){let r=this.get(e);return r&&(r.count--,r.meta.delete(t)),this},SCROLL_PREVENT({doc:e,d:t,meta:r}){let n,i;let o={doc:e,d:t,meta:function(e){let t={};for(let r of e)Object.assign(t,r(t));return t}(r)},s=[(0,ei.gn)()?{before(){n=window.pageYOffset},after({doc:e,d:t,meta:r}){function i(e){return r.containers.flatMap(e=>e()).some(t=>t.contains(e))}t.style(e.body,"marginTop",`-${n}px`),window.scrollTo(0,0);let o=null;t.addEventListener(e,"click",t=>{if(t.target instanceof HTMLElement)try{let r=t.target.closest("a");if(!r)return;let{hash:n}=new URL(r.href),s=e.querySelector(n);s&&!i(s)&&(o=s)}catch{}},!0),t.addEventListener(e,"touchmove",e=>{e.target instanceof HTMLElement&&!i(e.target)&&e.preventDefault()},{passive:!1}),t.add(()=>{window.scrollTo(0,window.pageYOffset+n),o&&o.isConnected&&(o.scrollIntoView({block:"nearest"}),o=null)})}}:{},{before({doc:e}){var t;let r=e.documentElement;i=(null!=(t=e.defaultView)?t:window).innerWidth-r.clientWidth},after({doc:e,d:t}){let r=e.documentElement,n=i-(r.clientWidth-r.offsetWidth);t.style(r,"paddingRight",`${n}px`)}},{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}];s.forEach(({before:e})=>null==e?void 0:e(o)),s.forEach(({after:e})=>null==e?void 0:e(o))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}},n=new Map,i=new Set,{getSnapshot:()=>n,subscribe:e=>(i.add(e),()=>i.delete(e)),dispatch(e,...t){let r=l[e].call(n,...t);r&&(n=r,i.forEach(e=>e()))}});eo.subscribe(()=>{let e=eo.getSnapshot(),t=new Map;for(let[r]of e)t.set(r,r.documentElement.style.overflow);for(let r of e.values()){let e="hidden"===t.get(r.doc),n=0!==r.count;(n&&!e||!n&&e)&&eo.dispatch(r.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",r),0===r.count&&eo.dispatch("TEARDOWN",r)}});let es=new Map,ea=new Map;function el(e,t=!0){(0,_.e)(()=>{var r;if(!t)return;let n="function"==typeof e?e():e.current;if(!n)return;let i=null!=(r=ea.get(n))?r:0;return ea.set(n,i+1),0!==i||(es.set(n,{"aria-hidden":n.getAttribute("aria-hidden"),inert:n.inert}),n.setAttribute("aria-hidden","true"),n.inert=!0),function(){var e;if(!n)return;let t=null!=(e=ea.get(n))?e:1;if(1===t?ea.delete(n):ea.set(n,t-1),1!==t)return;let r=es.get(n);r&&(null===r["aria-hidden"]?n.removeAttribute("aria-hidden"):n.setAttribute("aria-hidden",r["aria-hidden"]),n.inert=r.inert,es.delete(n))}},[e,t])}var eu=((u=eu||{})[u.Open=0]="Open",u[u.Closed=1]="Closed",u),ec=((c=ec||{})[c.SetTitleId=0]="SetTitleId",c);let ed={0:(e,t)=>e.titleId===t.id?e:{...e,titleId:t.id}},eh=(0,d.createContext)(null);function ef(e){let t=(0,d.useContext)(eh);if(null===t){let t=Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,ef),t}return t}function ep(e,t){return(0,f.E)(t.type,ed,e,t)}eh.displayName="DialogContext";let em=p.AN.RenderStrategy|p.AN.Static,eg=Object.assign((0,p.yV)(function(e,t){let r=(0,y.M)(),{id:n=`headlessui-dialog-${r}`,open:i,onClose:o,initialFocus:s,__demoMode:a=!1,...l}=e,[u,c]=(0,d.useState)(0),h=(0,Y.oJ)();void 0===i&&null!==h&&(i=(h&Y.ZM.Open)===Y.ZM.Open);let v=(0,d.useRef)(null),w=(0,m.T)(v,t),E=(0,d.useRef)(null),O=P(v),k=e.hasOwnProperty("open")||null!==h,T=e.hasOwnProperty("onClose");if(!k&&!T)throw Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!k)throw Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!T)throw Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");if("boolean"!=typeof i)throw Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${i}`);if("function"!=typeof o)throw Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${o}`);let R=i?0:1,[A,L]=(0,d.useReducer)(ep,{titleId:null,descriptionId:null,panelRef:(0,d.createRef)()}),M=(0,x.z)(()=>o(!1)),N=(0,x.z)(e=>L({type:0,id:e})),j=!!(0,b.H)()&&!a&&0===R,I=u>1,F=null!==(0,d.useContext)(eh),B=null!==h&&(h&Y.ZM.Closing)===Y.ZM.Closing;el((0,d.useCallback)(()=>{var e,t;return null!=(t=Array.from(null!=(e=null==O?void 0:O.querySelectorAll("body > *"))?e:[]).find(e=>"headlessui-portal-root"!==e.id&&e.contains(E.current)&&e instanceof HTMLElement))?t:null},[E]),!F&&!B&&j),el((0,d.useCallback)(()=>{var e,t;return null!=(t=Array.from(null!=(e=null==O?void 0:O.querySelectorAll("[data-headlessui-portal]"))?e:[]).find(e=>e.contains(E.current)&&e instanceof HTMLElement))?t:null},[E]),!!I||j);let U=(0,x.z)(()=>{var e,t;return[...Array.from(null!=(e=null==O?void 0:O.querySelectorAll("html > *, body > *, [data-headlessui-portal]"))?e:[]).filter(e=>!(e===document.body||e===document.head||!(e instanceof HTMLElement)||e.contains(E.current)||A.panelRef.current&&e.contains(A.panelRef.current))),null!=(t=A.panelRef.current)?t:v.current]});(0,G.O)(()=>U(),M,!(!j||I));let H=!(I||0!==R);C(null==O?void 0:O.defaultView,"keydown",e=>{H&&(e.defaultPrevented||e.key===g.R.Escape&&(e.preventDefault(),e.stopPropagation(),M()))}),function(e,t,r=()=>[document.body]){var n;let i,o;n=e=>{var t;return{containers:[...null!=(t=e.containers)?t:[],r]}},i=er(eo.subscribe,eo.getSnapshot,eo.getSnapshot),(o=e?i.get(e):void 0)&&o.count,(0,_.e)(()=>{if(!(!e||!t))return eo.dispatch("PUSH",e,n),()=>eo.dispatch("POP",e,n)},[t,e])}(O,!(B||0!==R||F),U),(0,d.useEffect)(()=>{if(0!==R||!v.current)return;let e=new ResizeObserver(e=>{for(let t of e){let e=t.target.getBoundingClientRect();0===e.x&&0===e.y&&0===e.width&&0===e.height&&M()}});return e.observe(v.current),()=>e.disconnect()},[R,v,M]);let[z,q]=(0,W.f)(),Z=(0,d.useMemo)(()=>[{dialogState:R,close:M,setTitleId:N},A],[R,A,M,N]),J=(0,d.useMemo)(()=>({open:0===R}),[R]),Q={ref:w,id:n,role:"dialog","aria-modal":0===R||void 0,"aria-labelledby":A.titleId,"aria-describedby":z};return d.createElement(X,{type:"Dialog",enabled:0===R,element:v,onUpdate:(0,x.z)((e,t)=>{"Dialog"===t&&(0,f.E)(e,{[K.Add]:()=>c(e=>e+1),[K.Remove]:()=>c(e=>e-1)})})},d.createElement(V,{force:!0},d.createElement($,null,d.createElement(eh.Provider,{value:Z},d.createElement($.Group,{target:v},d.createElement(V,{force:!1},d.createElement(q,{slot:J,name:"Dialog.Description"},d.createElement(D,{initialFocus:s,containers:U,features:j?(0,f.E)(I?"parent":"leaf",{parent:D.features.RestoreFocus,leaf:D.features.All&~D.features.FocusLock}):D.features.None},(0,p.sY)({ourProps:Q,theirProps:l,slot:J,defaultTag:"div",features:em,visible:0===R,name:"Dialog"})))))))),d.createElement(S._,{features:S.A.Hidden,ref:E}))}),{Backdrop:(0,p.yV)(function(e,t){let r=(0,y.M)(),{id:n=`headlessui-dialog-backdrop-${r}`,...i}=e,[{dialogState:o},s]=ef("Dialog.Backdrop"),a=(0,m.T)(t);(0,d.useEffect)(()=>{if(null===s.panelRef.current)throw Error("A component is being used, but a component is missing.")},[s.panelRef]);let l=(0,d.useMemo)(()=>({open:0===o}),[o]);return d.createElement(V,{force:!0},d.createElement($,null,(0,p.sY)({ourProps:{ref:a,id:n,"aria-hidden":!0},theirProps:i,slot:l,defaultTag:"div",name:"Dialog.Backdrop"})))}),Panel:(0,p.yV)(function(e,t){let r=(0,y.M)(),{id:n=`headlessui-dialog-panel-${r}`,...i}=e,[{dialogState:o},s]=ef("Dialog.Panel"),a=(0,m.T)(t,s.panelRef),l=(0,d.useMemo)(()=>({open:0===o}),[o]),u=(0,x.z)(e=>{e.stopPropagation()});return(0,p.sY)({ourProps:{ref:a,id:n,onClick:u},theirProps:i,slot:l,defaultTag:"div",name:"Dialog.Panel"})}),Overlay:(0,p.yV)(function(e,t){let r=(0,y.M)(),{id:n=`headlessui-dialog-overlay-${r}`,...i}=e,[{dialogState:o,close:s}]=ef("Dialog.Overlay"),a=(0,m.T)(t),l=(0,x.z)(e=>{if(e.target===e.currentTarget){if((0,v.P)(e.currentTarget))return e.preventDefault();e.preventDefault(),e.stopPropagation(),s()}}),u=(0,d.useMemo)(()=>({open:0===o}),[o]);return(0,p.sY)({ourProps:{ref:a,id:n,"aria-hidden":!0,onClick:l},theirProps:i,slot:u,defaultTag:"div",name:"Dialog.Overlay"})}),Title:(0,p.yV)(function(e,t){let r=(0,y.M)(),{id:n=`headlessui-dialog-title-${r}`,...i}=e,[{dialogState:o,setTitleId:s}]=ef("Dialog.Title"),a=(0,m.T)(t);(0,d.useEffect)(()=>(s(n),()=>s(null)),[n,s]);let l=(0,d.useMemo)(()=>({open:0===o}),[o]);return(0,p.sY)({ourProps:{ref:a,id:n},theirProps:i,slot:l,defaultTag:"h2",name:"Dialog.Title"})}),Description:W.d})},1363:function(e,t,r){"use strict";r.d(t,{R:function(){return i}});var n,i=((n=i||{}).Space=" ",n.Enter="Enter",n.Escape="Escape",n.Backspace="Backspace",n.Delete="Delete",n.ArrowLeft="ArrowLeft",n.ArrowUp="ArrowUp",n.ArrowRight="ArrowRight",n.ArrowDown="ArrowDown",n.Home="Home",n.End="End",n.PageUp="PageUp",n.PageDown="PageDown",n.Tab="Tab",n)},3879:function(e,t,r){"use strict";r.d(t,{E:function(){return N}});var n,i,o=r(7294),s=r(2351),a=r(9946),l=r(2984),u=r(6723),c=r(1363),d=r(4575),h=r(4227),f=r(3784),p=r(3781);let m=(0,o.createContext)(null);function g(){let[e,t]=(0,o.useState)([]);return[e.length>0?e.join(" "):void 0,(0,o.useMemo)(()=>function(e){let r=(0,p.z)(e=>(t(t=>[...t,e]),()=>t(t=>{let r=t.slice(),n=r.indexOf(e);return -1!==n&&r.splice(n,1),r}))),n=(0,o.useMemo)(()=>({register:r,slot:e.slot,name:e.name,props:e.props}),[r,e.slot,e.name,e.props]);return o.createElement(m.Provider,{value:n},e.children)},[t])]}let v=Object.assign((0,s.yV)(function(e,t){let r=(0,a.M)(),{id:n=`headlessui-label-${r}`,passive:i=!1,...l}=e,c=function e(){let t=(0,o.useContext)(m);if(null===t){let t=Error("You used a