mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
2 lines
No EOL
507 KiB
JavaScript
2 lines
No EOL
507 KiB
JavaScript
/*! For license information please see bundle.js.LICENSE.txt */
|
||
(()=>{var e,t,n={7162:(e,t,n)=>{e.exports=n(5047)},6279:function(e,t){var n="undefined"!=typeof self?self:this,r=function(){function e(){this.fetch=!1,this.DOMException=n.DOMException}return e.prototype=n,new e}();!function(e){!function(t){var n="URLSearchParams"in e,r="Symbol"in e&&"iterator"in Symbol,o="FileReader"in e&&"Blob"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),i="FormData"in e,a="ArrayBuffer"in e;if(a)var l=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],u=ArrayBuffer.isView||function(e){return e&&l.indexOf(Object.prototype.toString.call(e))>-1};function s(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function c(e){return"string"!=typeof e&&(e=String(e)),e}function f(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return r&&(t[Symbol.iterator]=function(){return t}),t}function d(e){this.map={},e instanceof d?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 h(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function p(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function g(e){var t=new FileReader,n=p(t);return t.readAsArrayBuffer(e),n}function v(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function m(){return this.bodyUsed=!1,this._initBody=function(e){var t;this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:o&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:i&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:n&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():a&&o&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=v(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):a&&(ArrayBuffer.prototype.isPrototypeOf(e)||u(e))?this._bodyArrayBuffer=v(e):this._bodyText=e=Object.prototype.toString.call(e):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):n&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},o&&(this.blob=function(){var e=h(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)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?h(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(g)}),this.text=function(){var e,t,n,r=h(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,n=p(t=new FileReader),t.readAsText(e),n;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},i&&(this.formData=function(){return this.text().then(w)}),this.json=function(){return this.text().then(JSON.parse)},this}d.prototype.append=function(e,t){e=s(e),t=c(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},d.prototype.delete=function(e){delete this.map[s(e)]},d.prototype.get=function(e){return e=s(e),this.has(e)?this.map[e]:null},d.prototype.has=function(e){return this.map.hasOwnProperty(s(e))},d.prototype.set=function(e,t){this.map[s(e)]=c(t)},d.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},d.prototype.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),f(e)},d.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),f(e)},d.prototype.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),f(e)},r&&(d.prototype[Symbol.iterator]=d.prototype.entries);var y=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function b(e,t){var n,r,o=(t=t||{}).body;if(e instanceof b){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new d(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,o||null==e._bodyInit||(o=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new d(t.headers)),this.method=(r=(n=t.method||this.method||"GET").toUpperCase(),y.indexOf(r)>-1?r:n),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(o)}function w(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),o=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(o))}})),t}function _(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 d(t.headers),this.url=t.url||"",this._initBody(e)}b.prototype.clone=function(){return new b(this,{body:this._bodyInit})},m.call(b.prototype),m.call(_.prototype),_.prototype.clone=function(){return new _(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new d(this.headers),url:this.url})},_.error=function(){var e=new _(null,{status:0,statusText:""});return e.type="error",e};var x=[301,302,303,307,308];_.redirect=function(e,t){if(-1===x.indexOf(t))throw new RangeError("Invalid status code");return new _(null,{status:t,headers:{location:e}})},t.DOMException=e.DOMException;try{new t.DOMException}catch(e){t.DOMException=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function E(e,n){return new Promise((function(r,i){var a=new b(e,n);if(a.signal&&a.signal.aborted)return i(new t.DOMException("Aborted","AbortError"));var l=new XMLHttpRequest;function u(){l.abort()}l.onload=function(){var e,t,n={status:l.status,statusText:l.statusText,headers:(e=l.getAllResponseHeaders()||"",t=new d,e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(e){var n=e.split(":"),r=n.shift().trim();if(r){var o=n.join(":").trim();t.append(r,o)}})),t)};n.url="responseURL"in l?l.responseURL:n.headers.get("X-Request-URL");var o="response"in l?l.response:l.responseText;r(new _(o,n))},l.onerror=function(){i(new TypeError("Network request failed"))},l.ontimeout=function(){i(new TypeError("Network request failed"))},l.onabort=function(){i(new t.DOMException("Aborted","AbortError"))},l.open(a.method,a.url,!0),"include"===a.credentials?l.withCredentials=!0:"omit"===a.credentials&&(l.withCredentials=!1),"responseType"in l&&o&&(l.responseType="blob"),a.headers.forEach((function(e,t){l.setRequestHeader(t,e)})),a.signal&&(a.signal.addEventListener("abort",u),l.onreadystatechange=function(){4===l.readyState&&a.signal.removeEventListener("abort",u)}),l.send(void 0===a._bodyInit?null:a._bodyInit)}))}E.polyfill=!0,e.fetch||(e.fetch=E,e.Headers=d,e.Request=b,e.Response=_),t.Headers=d,t.Request=b,t.Response=_,t.fetch=E,Object.defineProperty(t,"__esModule",{value:!0})}({})}(r),r.fetch.ponyfill=!0,delete r.fetch.polyfill;var o=r;(t=o.fetch).default=o.fetch,t.fetch=o.fetch,t.Headers=o.Headers,t.Request=o.Request,t.Response=o.Response,e.exports=t},3139:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(9601),o=n.n(r),i=n(2609),a=n.n(i)()(o());a.push([e.id,".article-inner-css * {\n max-width: 100%;\n}\n\n:root {\n color-scheme: light dark;\n}\n\n.highlight {\n color: var(--colors-highlightText);\n background-color: var(--colors-highlightBackground);\n cursor: pointer;\n}\n\n.highlight_with_note {\n color: var(--colors-highlightText);\n border-bottom: 2px var(--colors-highlightBackground) solid;\n border-radius: 2px;\n cursor: pointer;\n}\n\n.article-inner-css .highlight_with_note .highlight_note_button {\n display: unset !important;\n margin: 0px !important;\n max-width: unset !important;\n height: unset !important;\n padding: 0px 8px;\n cursor: pointer;\n}\n/* \non smaller screens we display the note icon\n@media (max-width: 768px) {\n .highlight_with_note.last_element:after { \n content: url(/static/icons/highlight-note-icon.svg);\n padding: 0 3px;\n cursor: pointer;\n }\n} */\n\n.article-inner-css h1,\n.article-inner-css h2,\n.article-inner-css h3,\n.article-inner-css h4,\n.article-inner-css h5,\n.article-inner-css h6 {\n margin-block-start: 0.83em;\n margin-block-end: 0.83em;\n margin-inline-start: 0px;\n margin-inline-end: 0px;\n line-height: var(--line-height);\n font-size: var(--text-font-size);\n color: var(--headers-color);\n font-weight: bold;\n}\n.article-inner-css h1 {\n font-size: 1.5em !important;\n line-height: 1.4em !important;\n}\n.article-inner-css h2 {\n font-size: 1.43em !important;\n}\n.article-inner-css h3 {\n font-size: 1.25em !important;\n}\n.article-inner-css h4,\n.article-inner-css h5,\n.article-inner-css h6 {\n font-size: 1em !important;\n margin: 1em 0 !important;\n}\n\n.article-inner-css .scrollable {\n overflow: auto;\n}\n\n.article-inner-css div {\n line-height: var(--line-height);\n /* font-size: var(--text-font-size); */\n color: var(--font-color);\n}\n\n.article-inner-css p {\n font-family: var(--text-font-family);\n font-style: normal;\n font-weight: normal;\n\n color: var(--font-color);\n\n display: block;\n margin-block-start: 1em;\n margin-block-end: 1em;\n margin-inline-start: 0px;\n margin-inline-end: 0px;\n\n > img {\n display: block;\n margin: 0.5em auto !important;\n max-width: 100% !important;\n }\n\n > iframe {\n width: 100%;\n height: 350px;\n }\n}\n\n.article-inner-css section {\n line-height: 1.65em;\n font-size: var(--text-font-size);\n}\n\n.article-inner-css blockquote {\n display: block;\n border-left: 1px solid var(--font-color-transparent);\n padding-left: 16px;\n font-style: italic;\n margin-inline-start: 0px;\n > * {\n font-style: italic;\n }\n p:last-of-type {\n margin-bottom: 0;\n }\n}\n\n.article-inner-css a {\n color: var(--font-color-readerFont);\n}\n\n.article-inner-css .highlight a {\n color: var(--colors-highlightText);\n}\n\n.article-inner-css figure {\n * {\n color: var(--font-color-transparent);\n }\n\n margin: 30px 0;\n font-size: 0.75em;\n line-height: 1.5em;\n\n figcaption {\n color: var(--font-color);\n opacity: 0.7;\n margin: 10px 20px 10px 0;\n }\n\n figcaption * {\n color: var(--font-color);\n opacity: 0.7;\n }\n figcaption a {\n color: var(--font-color);\n /* margin: 10px 20px 10px 0; */\n opacity: 0.6;\n }\n\n > div {\n max-width: 100%;\n }\n}\n\n.article-inner-css figure[aria-label='media'] {\n margin: var(--figure-margin);\n display: flex;\n flex-direction: column;\n align-items: center;\n}\n\n.article-inner-css hr {\n margin-bottom: var(--hr-margin);\n border: none;\n}\n\n.article-inner-css table {\n display: block;\n word-break: normal;\n white-space: nowrap;\n border: 1px solid rgb(216, 216, 216);\n border-spacing: 0;\n border-collapse: collapse;\n font-size: 0.8rem;\n margin: auto;\n line-height: 1.5em;\n font-size: 0.9em;\n max-width: -moz-fit-content;\n max-width: fit-content;\n margin: 0 auto;\n overflow-x: auto;\n caption {\n margin: 0.5em 0;\n }\n th {\n border: 1px solid rgb(216, 216, 216);\n background-color: var(--table-header-color);\n padding: 5px;\n }\n td {\n border: 1px solid rgb(216, 216, 216);\n padding: 0.5em;\n padding: 5px;\n }\n\n p {\n margin: 0;\n padding: 0;\n }\n\n img {\n display: block;\n margin: 0.5em auto !important;\n max-width: 100% !important;\n }\n}\n\n.article-inner-css ul,\n.article-inner-css ol {\n margin-block-start: 1em;\n margin-block-end: 1em;\n margin-inline-start: 0px;\n margin-inline-end: 0px;\n padding-inline-start: 40px;\n margin-top: 18px;\n\n font-family: var(--text-font-family);\n font-style: normal;\n font-weight: normal;\n\n line-height: var(--line-height);\n font-size: var(--text-font-size);\n\n color: var(--font-color);\n}\n\n.article-inner-css li {\n word-break: break-word;\n ol,\n ul {\n margin: 0;\n }\n}\n\n.article-inner-css sup,\n.article-inner-css sub {\n position: relative;\n a {\n color: inherit;\n pointer-events: none;\n }\n}\n\n.article-inner-css sup {\n top: -0.3em;\n}\n\n.article-inner-css sub {\n bottom: 0.3em;\n}\n\n.article-inner-css cite {\n font-style: normal;\n}\n\n.article-inner-css .page {\n width: 100%;\n}\n\n/* Collapse excess whitespace. */\n.page p > p:empty,\n.page div > p:empty,\n.page p > div:empty,\n.page div > div:empty,\n.page p + br,\n.page p > br:only-child,\n.page div > br:only-child,\n.page img + br {\n display: none;\n}\n\n.article-inner-css video {\n max-width: 100%;\n}\n\n.article-inner-css dl {\n display: block;\n margin-block-start: 1em;\n margin-block-end: 1em;\n margin-inline-start: 0px;\n margin-inline-end: 0px;\n}\n\n.article-inner-css dd {\n display: block;\n margin-inline-start: 40px;\n}\n\n.article-inner-css pre,\n.article-inner-css code {\n vertical-align: bottom;\n word-wrap: initial;\n font-family: 'SF Mono', monospace !important;\n white-space: pre;\n direction: ltr;\n unicode-bidi: embed;\n color: var(--font-color);\n max-width: -moz-fit-content;\n margin: 0;\n overflow-x: auto;\n word-wrap: normal;\n border-radius: 4px;\n}\n\n.article-inner-css img {\n display: block;\n margin: 0.5em auto !important;\n max-width: 100% !important;\n height: auto;\n}\n\n.article-inner-css .page {\n text-align: start;\n word-wrap: break-word;\n\n font-size: var(--text-font-size);\n line-height: var(--line-height);\n}\n\n.article-inner-css .omnivore-instagram-embed {\n img {\n margin: 0 !important;\n }\n}\n\n\n",""]);const l=a},8936:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(9601),o=n.n(r),i=n(2609),a=n.n(i)()(o());a.push([e.id,"html,\nbody {\n padding: 0;\n margin: 0;\n font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen,\n Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n line-height: 1.6;\n font-size: 18px;\n}\n\n.disable-webkit-callout {\n -webkit-touch-callout: none;\n}\n\n*,\n*::before,\n*::after {\n box-sizing: border-box;\n}\n\ndiv#appleid-signin {\n min-width: 300px;\n min-height: 40px;\n}\n\n@font-face {\n font-family: 'Inter';\n font-weight: 200;\n font-style: normal;\n src: url(Inter-ExtraLight-200.ttf);\n}\n\n@font-face {\n font-family: 'Inter';\n font-weight: 300;\n font-style: normal;\n src: url(Inter-Light-300.ttf);\n}\n\n@font-face {\n font-family: 'Inter';\n font-weight: 400;\n font-style: normal;\n src: url(Inter-Regular-400.ttf);\n}\n\n@font-face {\n font-family: 'Inter';\n font-weight: 500;\n font-style: normal;\n src: url(Inter-Medium-500.ttf);\n}\n\n@font-face {\n font-family: 'Inter';\n font-weight: 600;\n font-style: normal;\n src: url(Inter-SemiBold-600.ttf);\n}\n\n@font-face {\n font-family: 'Inter';\n font-weight: 700;\n font-style: normal;\n src: url(Inter-Bold-700.ttf);\n}\n\n@font-face {\n font-family: 'Inter';\n font-weight: 800;\n font-style: normal;\n src: url(Inter-ExtraBold-800.ttf);\n}\n\n@font-face {\n font-family: 'Inter';\n font-weight: 900;\n font-style: normal;\n src: url(Inter-Black-900.ttf);\n}\n\n@font-face {\n font-family: 'SF Mono';\n font-weight: 400;\n font-style: normal;\n src: url(SFMonoRegular.otf);\n}\n\n.dropdown-arrow {\n display: inline-block;\n width: 0;\n height: 0;\n vertical-align: middle;\n border-style: solid;\n border-width: 4px 4px 0;\n border-right-color: transparent;\n border-bottom-color: transparent;\n border-left-color: transparent;\n}\n",""]);const l=a},2609:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,r,o,i){"string"==typeof e&&(e=[[null,e,void 0]]);var a={};if(r)for(var l=0;l<this.length;l++){var u=this[l][0];null!=u&&(a[u]=!0)}for(var s=0;s<e.length;s++){var c=[].concat(e[s]);r&&a[c[0]]||(void 0!==i&&(void 0===c[5]||(c[1]="@layer".concat(c[5].length>0?" ".concat(c[5]):""," {").concat(c[1],"}")),c[5]=i),n&&(c[2]?(c[1]="@media ".concat(c[2]," {").concat(c[1],"}"),c[2]=n):c[2]=n),o&&(c[4]?(c[1]="@supports (".concat(c[4],") {").concat(c[1],"}"),c[4]=o):c[4]="".concat(o)),t.push(c))}},t}},9601:e=>{"use strict";e.exports=function(e){return e[1]}},1427:e=>{var t=function(){this.Diff_Timeout=1,this.Diff_EditCost=4,this.Match_Threshold=.5,this.Match_Distance=1e3,this.Patch_DeleteThreshold=.5,this.Patch_Margin=4,this.Match_MaxBits=32},n=-1;t.Diff=function(e,t){return[e,t]},t.prototype.diff_main=function(e,n,r,o){void 0===o&&(o=this.Diff_Timeout<=0?Number.MAX_VALUE:(new Date).getTime()+1e3*this.Diff_Timeout);var i=o;if(null==e||null==n)throw new Error("Null input. (diff_main)");if(e==n)return e?[new t.Diff(0,e)]:[];void 0===r&&(r=!0);var a=r,l=this.diff_commonPrefix(e,n),u=e.substring(0,l);e=e.substring(l),n=n.substring(l),l=this.diff_commonSuffix(e,n);var s=e.substring(e.length-l);e=e.substring(0,e.length-l),n=n.substring(0,n.length-l);var c=this.diff_compute_(e,n,a,i);return u&&c.unshift(new t.Diff(0,u)),s&&c.push(new t.Diff(0,s)),this.diff_cleanupMerge(c),c},t.prototype.diff_compute_=function(e,r,o,i){var a;if(!e)return[new t.Diff(1,r)];if(!r)return[new t.Diff(n,e)];var l=e.length>r.length?e:r,u=e.length>r.length?r:e,s=l.indexOf(u);if(-1!=s)return a=[new t.Diff(1,l.substring(0,s)),new t.Diff(0,u),new t.Diff(1,l.substring(s+u.length))],e.length>r.length&&(a[0][0]=a[2][0]=n),a;if(1==u.length)return[new t.Diff(n,e),new t.Diff(1,r)];var c=this.diff_halfMatch_(e,r);if(c){var f=c[0],d=c[1],h=c[2],p=c[3],g=c[4],v=this.diff_main(f,h,o,i),m=this.diff_main(d,p,o,i);return v.concat([new t.Diff(0,g)],m)}return o&&e.length>100&&r.length>100?this.diff_lineMode_(e,r,i):this.diff_bisect_(e,r,i)},t.prototype.diff_lineMode_=function(e,r,o){var i=this.diff_linesToChars_(e,r);e=i.chars1,r=i.chars2;var a=i.lineArray,l=this.diff_main(e,r,!1,o);this.diff_charsToLines_(l,a),this.diff_cleanupSemantic(l),l.push(new t.Diff(0,""));for(var u=0,s=0,c=0,f="",d="";u<l.length;){switch(l[u][0]){case 1:c++,d+=l[u][1];break;case n:s++,f+=l[u][1];break;case 0:if(s>=1&&c>=1){l.splice(u-s-c,s+c),u=u-s-c;for(var h=this.diff_main(f,d,!1,o),p=h.length-1;p>=0;p--)l.splice(u,0,h[p]);u+=h.length}c=0,s=0,f="",d=""}u++}return l.pop(),l},t.prototype.diff_bisect_=function(e,r,o){for(var i=e.length,a=r.length,l=Math.ceil((i+a)/2),u=l,s=2*l,c=new Array(s),f=new Array(s),d=0;d<s;d++)c[d]=-1,f[d]=-1;c[u+1]=0,f[u+1]=0;for(var h=i-a,p=h%2!=0,g=0,v=0,m=0,y=0,b=0;b<l&&!((new Date).getTime()>o);b++){for(var w=-b+g;w<=b-v;w+=2){for(var _=u+w,x=(O=w==-b||w!=b&&c[_-1]<c[_+1]?c[_+1]:c[_-1]+1)-w;O<i&&x<a&&e.charAt(O)==r.charAt(x);)O++,x++;if(c[_]=O,O>i)v+=2;else if(x>a)g+=2;else if(p&&(k=u+h-w)>=0&&k<s&&-1!=f[k]&&O>=(S=i-f[k]))return this.diff_bisectSplit_(e,r,O,x,o)}for(var E=-b+m;E<=b-y;E+=2){for(var S,k=u+E,C=(S=E==-b||E!=b&&f[k-1]<f[k+1]?f[k+1]:f[k-1]+1)-E;S<i&&C<a&&e.charAt(i-S-1)==r.charAt(a-C-1);)S++,C++;if(f[k]=S,S>i)y+=2;else if(C>a)m+=2;else if(!p){var O;if((_=u+h-E)>=0&&_<s&&-1!=c[_])if(x=u+(O=c[_])-_,O>=(S=i-S))return this.diff_bisectSplit_(e,r,O,x,o)}}}return[new t.Diff(n,e),new t.Diff(1,r)]},t.prototype.diff_bisectSplit_=function(e,t,n,r,o){var i=e.substring(0,n),a=t.substring(0,r),l=e.substring(n),u=t.substring(r),s=this.diff_main(i,a,!1,o),c=this.diff_main(l,u,!1,o);return s.concat(c)},t.prototype.diff_linesToChars_=function(e,t){var n=[],r={};function o(e){for(var t="",o=0,a=-1,l=n.length;a<e.length-1;){-1==(a=e.indexOf("\n",o))&&(a=e.length-1);var u=e.substring(o,a+1);(r.hasOwnProperty?r.hasOwnProperty(u):void 0!==r[u])?t+=String.fromCharCode(r[u]):(l==i&&(u=e.substring(o),a=e.length),t+=String.fromCharCode(l),r[u]=l,n[l++]=u),o=a+1}return t}n[0]="";var i=4e4,a=o(e);return i=65535,{chars1:a,chars2:o(t),lineArray:n}},t.prototype.diff_charsToLines_=function(e,t){for(var n=0;n<e.length;n++){for(var r=e[n][1],o=[],i=0;i<r.length;i++)o[i]=t[r.charCodeAt(i)];e[n][1]=o.join("")}},t.prototype.diff_commonPrefix=function(e,t){if(!e||!t||e.charAt(0)!=t.charAt(0))return 0;for(var n=0,r=Math.min(e.length,t.length),o=r,i=0;n<o;)e.substring(i,o)==t.substring(i,o)?i=n=o:r=o,o=Math.floor((r-n)/2+n);return o},t.prototype.diff_commonSuffix=function(e,t){if(!e||!t||e.charAt(e.length-1)!=t.charAt(t.length-1))return 0;for(var n=0,r=Math.min(e.length,t.length),o=r,i=0;n<o;)e.substring(e.length-o,e.length-i)==t.substring(t.length-o,t.length-i)?i=n=o:r=o,o=Math.floor((r-n)/2+n);return o},t.prototype.diff_commonOverlap_=function(e,t){var n=e.length,r=t.length;if(0==n||0==r)return 0;n>r?e=e.substring(n-r):n<r&&(t=t.substring(0,n));var o=Math.min(n,r);if(e==t)return o;for(var i=0,a=1;;){var l=e.substring(o-a),u=t.indexOf(l);if(-1==u)return i;a+=u,0!=u&&e.substring(o-a)!=t.substring(0,a)||(i=a,a++)}},t.prototype.diff_halfMatch_=function(e,t){if(this.Diff_Timeout<=0)return null;var n=e.length>t.length?e:t,r=e.length>t.length?t:e;if(n.length<4||2*r.length<n.length)return null;var o=this;function i(e,t,n){for(var r,i,a,l,u=e.substring(n,n+Math.floor(e.length/4)),s=-1,c="";-1!=(s=t.indexOf(u,s+1));){var f=o.diff_commonPrefix(e.substring(n),t.substring(s)),d=o.diff_commonSuffix(e.substring(0,n),t.substring(0,s));c.length<d+f&&(c=t.substring(s-d,s)+t.substring(s,s+f),r=e.substring(0,n-d),i=e.substring(n+f),a=t.substring(0,s-d),l=t.substring(s+f))}return 2*c.length>=e.length?[r,i,a,l,c]:null}var a,l,u,s,c,f=i(n,r,Math.ceil(n.length/4)),d=i(n,r,Math.ceil(n.length/2));return f||d?(a=d?f&&f[4].length>d[4].length?f:d:f,e.length>t.length?(l=a[0],u=a[1],s=a[2],c=a[3]):(s=a[0],c=a[1],l=a[2],u=a[3]),[l,u,s,c,a[4]]):null},t.prototype.diff_cleanupSemantic=function(e){for(var r=!1,o=[],i=0,a=null,l=0,u=0,s=0,c=0,f=0;l<e.length;)0==e[l][0]?(o[i++]=l,u=c,s=f,c=0,f=0,a=e[l][1]):(1==e[l][0]?c+=e[l][1].length:f+=e[l][1].length,a&&a.length<=Math.max(u,s)&&a.length<=Math.max(c,f)&&(e.splice(o[i-1],0,new t.Diff(n,a)),e[o[i-1]+1][0]=1,i--,l=--i>0?o[i-1]:-1,u=0,s=0,c=0,f=0,a=null,r=!0)),l++;for(r&&this.diff_cleanupMerge(e),this.diff_cleanupSemanticLossless(e),l=1;l<e.length;){if(e[l-1][0]==n&&1==e[l][0]){var d=e[l-1][1],h=e[l][1],p=this.diff_commonOverlap_(d,h),g=this.diff_commonOverlap_(h,d);p>=g?(p>=d.length/2||p>=h.length/2)&&(e.splice(l,0,new t.Diff(0,h.substring(0,p))),e[l-1][1]=d.substring(0,d.length-p),e[l+1][1]=h.substring(p),l++):(g>=d.length/2||g>=h.length/2)&&(e.splice(l,0,new t.Diff(0,d.substring(0,g))),e[l-1][0]=1,e[l-1][1]=h.substring(0,h.length-g),e[l+1][0]=n,e[l+1][1]=d.substring(g),l++),l++}l++}},t.prototype.diff_cleanupSemanticLossless=function(e){function n(e,n){if(!e||!n)return 6;var r=e.charAt(e.length-1),o=n.charAt(0),i=r.match(t.nonAlphaNumericRegex_),a=o.match(t.nonAlphaNumericRegex_),l=i&&r.match(t.whitespaceRegex_),u=a&&o.match(t.whitespaceRegex_),s=l&&r.match(t.linebreakRegex_),c=u&&o.match(t.linebreakRegex_),f=s&&e.match(t.blanklineEndRegex_),d=c&&n.match(t.blanklineStartRegex_);return f||d?5:s||c?4:i&&!l&&u?3:l||u?2:i||a?1:0}for(var r=1;r<e.length-1;){if(0==e[r-1][0]&&0==e[r+1][0]){var o=e[r-1][1],i=e[r][1],a=e[r+1][1],l=this.diff_commonSuffix(o,i);if(l){var u=i.substring(i.length-l);o=o.substring(0,o.length-l),i=u+i.substring(0,i.length-l),a=u+a}for(var s=o,c=i,f=a,d=n(o,i)+n(i,a);i.charAt(0)===a.charAt(0);){o+=i.charAt(0),i=i.substring(1)+a.charAt(0),a=a.substring(1);var h=n(o,i)+n(i,a);h>=d&&(d=h,s=o,c=i,f=a)}e[r-1][1]!=s&&(s?e[r-1][1]=s:(e.splice(r-1,1),r--),e[r][1]=c,f?e[r+1][1]=f:(e.splice(r+1,1),r--))}r++}},t.nonAlphaNumericRegex_=/[^a-zA-Z0-9]/,t.whitespaceRegex_=/\s/,t.linebreakRegex_=/[\r\n]/,t.blanklineEndRegex_=/\n\r?\n$/,t.blanklineStartRegex_=/^\r?\n\r?\n/,t.prototype.diff_cleanupEfficiency=function(e){for(var r=!1,o=[],i=0,a=null,l=0,u=!1,s=!1,c=!1,f=!1;l<e.length;)0==e[l][0]?(e[l][1].length<this.Diff_EditCost&&(c||f)?(o[i++]=l,u=c,s=f,a=e[l][1]):(i=0,a=null),c=f=!1):(e[l][0]==n?f=!0:c=!0,a&&(u&&s&&c&&f||a.length<this.Diff_EditCost/2&&u+s+c+f==3)&&(e.splice(o[i-1],0,new t.Diff(n,a)),e[o[i-1]+1][0]=1,i--,a=null,u&&s?(c=f=!0,i=0):(l=--i>0?o[i-1]:-1,c=f=!1),r=!0)),l++;r&&this.diff_cleanupMerge(e)},t.prototype.diff_cleanupMerge=function(e){e.push(new t.Diff(0,""));for(var r,o=0,i=0,a=0,l="",u="";o<e.length;)switch(e[o][0]){case 1:a++,u+=e[o][1],o++;break;case n:i++,l+=e[o][1],o++;break;case 0:i+a>1?(0!==i&&0!==a&&(0!==(r=this.diff_commonPrefix(u,l))&&(o-i-a>0&&0==e[o-i-a-1][0]?e[o-i-a-1][1]+=u.substring(0,r):(e.splice(0,0,new t.Diff(0,u.substring(0,r))),o++),u=u.substring(r),l=l.substring(r)),0!==(r=this.diff_commonSuffix(u,l))&&(e[o][1]=u.substring(u.length-r)+e[o][1],u=u.substring(0,u.length-r),l=l.substring(0,l.length-r))),o-=i+a,e.splice(o,i+a),l.length&&(e.splice(o,0,new t.Diff(n,l)),o++),u.length&&(e.splice(o,0,new t.Diff(1,u)),o++),o++):0!==o&&0==e[o-1][0]?(e[o-1][1]+=e[o][1],e.splice(o,1)):o++,a=0,i=0,l="",u=""}""===e[e.length-1][1]&&e.pop();var s=!1;for(o=1;o<e.length-1;)0==e[o-1][0]&&0==e[o+1][0]&&(e[o][1].substring(e[o][1].length-e[o-1][1].length)==e[o-1][1]?(e[o][1]=e[o-1][1]+e[o][1].substring(0,e[o][1].length-e[o-1][1].length),e[o+1][1]=e[o-1][1]+e[o+1][1],e.splice(o-1,1),s=!0):e[o][1].substring(0,e[o+1][1].length)==e[o+1][1]&&(e[o-1][1]+=e[o+1][1],e[o][1]=e[o][1].substring(e[o+1][1].length)+e[o+1][1],e.splice(o+1,1),s=!0)),o++;s&&this.diff_cleanupMerge(e)},t.prototype.diff_xIndex=function(e,t){var r,o=0,i=0,a=0,l=0;for(r=0;r<e.length&&(1!==e[r][0]&&(o+=e[r][1].length),e[r][0]!==n&&(i+=e[r][1].length),!(o>t));r++)a=o,l=i;return e.length!=r&&e[r][0]===n?l:l+(t-a)},t.prototype.diff_prettyHtml=function(e){for(var t=[],r=/&/g,o=/</g,i=/>/g,a=/\n/g,l=0;l<e.length;l++){var u=e[l][0],s=e[l][1].replace(r,"&").replace(o,"<").replace(i,">").replace(a,"¶<br>");switch(u){case 1:t[l]='<ins style="background:#e6ffe6;">'+s+"</ins>";break;case n:t[l]='<del style="background:#ffe6e6;">'+s+"</del>";break;case 0:t[l]="<span>"+s+"</span>"}}return t.join("")},t.prototype.diff_text1=function(e){for(var t=[],n=0;n<e.length;n++)1!==e[n][0]&&(t[n]=e[n][1]);return t.join("")},t.prototype.diff_text2=function(e){for(var t=[],r=0;r<e.length;r++)e[r][0]!==n&&(t[r]=e[r][1]);return t.join("")},t.prototype.diff_levenshtein=function(e){for(var t=0,r=0,o=0,i=0;i<e.length;i++){var a=e[i][0],l=e[i][1];switch(a){case 1:r+=l.length;break;case n:o+=l.length;break;case 0:t+=Math.max(r,o),r=0,o=0}}return t+Math.max(r,o)},t.prototype.diff_toDelta=function(e){for(var t=[],r=0;r<e.length;r++)switch(e[r][0]){case 1:t[r]="+"+encodeURI(e[r][1]);break;case n:t[r]="-"+e[r][1].length;break;case 0:t[r]="="+e[r][1].length}return t.join("\t").replace(/%20/g," ")},t.prototype.diff_fromDelta=function(e,r){for(var o=[],i=0,a=0,l=r.split(/\t/g),u=0;u<l.length;u++){var s=l[u].substring(1);switch(l[u].charAt(0)){case"+":try{o[i++]=new t.Diff(1,decodeURI(s))}catch(e){throw new Error("Illegal escape in diff_fromDelta: "+s)}break;case"-":case"=":var c=parseInt(s,10);if(isNaN(c)||c<0)throw new Error("Invalid number in diff_fromDelta: "+s);var f=e.substring(a,a+=c);"="==l[u].charAt(0)?o[i++]=new t.Diff(0,f):o[i++]=new t.Diff(n,f);break;default:if(l[u])throw new Error("Invalid diff operation in diff_fromDelta: "+l[u])}}if(a!=e.length)throw new Error("Delta length ("+a+") does not equal source text length ("+e.length+").");return o},t.prototype.match_main=function(e,t,n){if(null==e||null==t||null==n)throw new Error("Null input. (match_main)");return n=Math.max(0,Math.min(n,e.length)),e==t?0:e.length?e.substring(n,n+t.length)==t?n:this.match_bitap_(e,t,n):-1},t.prototype.match_bitap_=function(e,t,n){if(t.length>this.Match_MaxBits)throw new Error("Pattern too long for this browser.");var r=this.match_alphabet_(t),o=this;function i(e,r){var i=e/t.length,a=Math.abs(n-r);return o.Match_Distance?i+a/o.Match_Distance:a?1:i}var a=this.Match_Threshold,l=e.indexOf(t,n);-1!=l&&(a=Math.min(i(0,l),a),-1!=(l=e.lastIndexOf(t,n+t.length))&&(a=Math.min(i(0,l),a)));var u,s,c=1<<t.length-1;l=-1;for(var f,d=t.length+e.length,h=0;h<t.length;h++){for(u=0,s=d;u<s;)i(h,n+s)<=a?u=s:d=s,s=Math.floor((d-u)/2+u);d=s;var p=Math.max(1,n-s+1),g=Math.min(n+s,e.length)+t.length,v=Array(g+2);v[g+1]=(1<<h)-1;for(var m=g;m>=p;m--){var y=r[e.charAt(m-1)];if(v[m]=0===h?(v[m+1]<<1|1)&y:(v[m+1]<<1|1)&y|(f[m+1]|f[m])<<1|1|f[m+1],v[m]&c){var b=i(h,m-1);if(b<=a){if(a=b,!((l=m-1)>n))break;p=Math.max(1,2*n-l)}}}if(i(h+1,n)>a)break;f=v}return l},t.prototype.match_alphabet_=function(e){for(var t={},n=0;n<e.length;n++)t[e.charAt(n)]=0;for(n=0;n<e.length;n++)t[e.charAt(n)]|=1<<e.length-n-1;return t},t.prototype.patch_addContext_=function(e,n){if(0!=n.length){if(null===e.start2)throw Error("patch not initialized");for(var r=n.substring(e.start2,e.start2+e.length1),o=0;n.indexOf(r)!=n.lastIndexOf(r)&&r.length<this.Match_MaxBits-this.Patch_Margin-this.Patch_Margin;)o+=this.Patch_Margin,r=n.substring(e.start2-o,e.start2+e.length1+o);o+=this.Patch_Margin;var i=n.substring(e.start2-o,e.start2);i&&e.diffs.unshift(new t.Diff(0,i));var a=n.substring(e.start2+e.length1,e.start2+e.length1+o);a&&e.diffs.push(new t.Diff(0,a)),e.start1-=i.length,e.start2-=i.length,e.length1+=i.length+a.length,e.length2+=i.length+a.length}},t.prototype.patch_make=function(e,r,o){var i,a;if("string"==typeof e&&"string"==typeof r&&void 0===o)i=e,(a=this.diff_main(i,r,!0)).length>2&&(this.diff_cleanupSemantic(a),this.diff_cleanupEfficiency(a));else if(e&&"object"==typeof e&&void 0===r&&void 0===o)a=e,i=this.diff_text1(a);else if("string"==typeof e&&r&&"object"==typeof r&&void 0===o)i=e,a=r;else{if("string"!=typeof e||"string"!=typeof r||!o||"object"!=typeof o)throw new Error("Unknown call format to patch_make.");i=e,a=o}if(0===a.length)return[];for(var l=[],u=new t.patch_obj,s=0,c=0,f=0,d=i,h=i,p=0;p<a.length;p++){var g=a[p][0],v=a[p][1];switch(s||0===g||(u.start1=c,u.start2=f),g){case 1:u.diffs[s++]=a[p],u.length2+=v.length,h=h.substring(0,f)+v+h.substring(f);break;case n:u.length1+=v.length,u.diffs[s++]=a[p],h=h.substring(0,f)+h.substring(f+v.length);break;case 0:v.length<=2*this.Patch_Margin&&s&&a.length!=p+1?(u.diffs[s++]=a[p],u.length1+=v.length,u.length2+=v.length):v.length>=2*this.Patch_Margin&&s&&(this.patch_addContext_(u,d),l.push(u),u=new t.patch_obj,s=0,d=h,c=f)}1!==g&&(c+=v.length),g!==n&&(f+=v.length)}return s&&(this.patch_addContext_(u,d),l.push(u)),l},t.prototype.patch_deepCopy=function(e){for(var n=[],r=0;r<e.length;r++){var o=e[r],i=new t.patch_obj;i.diffs=[];for(var a=0;a<o.diffs.length;a++)i.diffs[a]=new t.Diff(o.diffs[a][0],o.diffs[a][1]);i.start1=o.start1,i.start2=o.start2,i.length1=o.length1,i.length2=o.length2,n[r]=i}return n},t.prototype.patch_apply=function(e,t){if(0==e.length)return[t,[]];e=this.patch_deepCopy(e);var r=this.patch_addPadding(e);t=r+t+r,this.patch_splitMax(e);for(var o=0,i=[],a=0;a<e.length;a++){var l,u,s=e[a].start2+o,c=this.diff_text1(e[a].diffs),f=-1;if(c.length>this.Match_MaxBits?-1!=(l=this.match_main(t,c.substring(0,this.Match_MaxBits),s))&&(-1==(f=this.match_main(t,c.substring(c.length-this.Match_MaxBits),s+c.length-this.Match_MaxBits))||l>=f)&&(l=-1):l=this.match_main(t,c,s),-1==l)i[a]=!1,o-=e[a].length2-e[a].length1;else if(i[a]=!0,o=l-s,c==(u=-1==f?t.substring(l,l+c.length):t.substring(l,f+this.Match_MaxBits)))t=t.substring(0,l)+this.diff_text2(e[a].diffs)+t.substring(l+c.length);else{var d=this.diff_main(c,u,!1);if(c.length>this.Match_MaxBits&&this.diff_levenshtein(d)/c.length>this.Patch_DeleteThreshold)i[a]=!1;else{this.diff_cleanupSemanticLossless(d);for(var h,p=0,g=0;g<e[a].diffs.length;g++){var v=e[a].diffs[g];0!==v[0]&&(h=this.diff_xIndex(d,p)),1===v[0]?t=t.substring(0,l+h)+v[1]+t.substring(l+h):v[0]===n&&(t=t.substring(0,l+h)+t.substring(l+this.diff_xIndex(d,p+v[1].length))),v[0]!==n&&(p+=v[1].length)}}}}return[t=t.substring(r.length,t.length-r.length),i]},t.prototype.patch_addPadding=function(e){for(var n=this.Patch_Margin,r="",o=1;o<=n;o++)r+=String.fromCharCode(o);for(o=0;o<e.length;o++)e[o].start1+=n,e[o].start2+=n;var i=e[0],a=i.diffs;if(0==a.length||0!=a[0][0])a.unshift(new t.Diff(0,r)),i.start1-=n,i.start2-=n,i.length1+=n,i.length2+=n;else if(n>a[0][1].length){var l=n-a[0][1].length;a[0][1]=r.substring(a[0][1].length)+a[0][1],i.start1-=l,i.start2-=l,i.length1+=l,i.length2+=l}return 0==(a=(i=e[e.length-1]).diffs).length||0!=a[a.length-1][0]?(a.push(new t.Diff(0,r)),i.length1+=n,i.length2+=n):n>a[a.length-1][1].length&&(l=n-a[a.length-1][1].length,a[a.length-1][1]+=r.substring(0,l),i.length1+=l,i.length2+=l),r},t.prototype.patch_splitMax=function(e){for(var r=this.Match_MaxBits,o=0;o<e.length;o++)if(!(e[o].length1<=r)){var i=e[o];e.splice(o--,1);for(var a=i.start1,l=i.start2,u="";0!==i.diffs.length;){var s=new t.patch_obj,c=!0;for(s.start1=a-u.length,s.start2=l-u.length,""!==u&&(s.length1=s.length2=u.length,s.diffs.push(new t.Diff(0,u)));0!==i.diffs.length&&s.length1<r-this.Patch_Margin;){var f=i.diffs[0][0],d=i.diffs[0][1];1===f?(s.length2+=d.length,l+=d.length,s.diffs.push(i.diffs.shift()),c=!1):f===n&&1==s.diffs.length&&0==s.diffs[0][0]&&d.length>2*r?(s.length1+=d.length,a+=d.length,c=!1,s.diffs.push(new t.Diff(f,d)),i.diffs.shift()):(d=d.substring(0,r-s.length1-this.Patch_Margin),s.length1+=d.length,a+=d.length,0===f?(s.length2+=d.length,l+=d.length):c=!1,s.diffs.push(new t.Diff(f,d)),d==i.diffs[0][1]?i.diffs.shift():i.diffs[0][1]=i.diffs[0][1].substring(d.length))}u=(u=this.diff_text2(s.diffs)).substring(u.length-this.Patch_Margin);var h=this.diff_text1(i.diffs).substring(0,this.Patch_Margin);""!==h&&(s.length1+=h.length,s.length2+=h.length,0!==s.diffs.length&&0===s.diffs[s.diffs.length-1][0]?s.diffs[s.diffs.length-1][1]+=h:s.diffs.push(new t.Diff(0,h))),c||e.splice(++o,0,s)}}},t.prototype.patch_toText=function(e){for(var t=[],n=0;n<e.length;n++)t[n]=e[n];return t.join("")},t.prototype.patch_fromText=function(e){var r=[];if(!e)return r;for(var o=e.split("\n"),i=0,a=/^@@ -(\d+),?(\d*) \+(\d+),?(\d*) @@$/;i<o.length;){var l=o[i].match(a);if(!l)throw new Error("Invalid patch string: "+o[i]);var u=new t.patch_obj;for(r.push(u),u.start1=parseInt(l[1],10),""===l[2]?(u.start1--,u.length1=1):"0"==l[2]?u.length1=0:(u.start1--,u.length1=parseInt(l[2],10)),u.start2=parseInt(l[3],10),""===l[4]?(u.start2--,u.length2=1):"0"==l[4]?u.length2=0:(u.start2--,u.length2=parseInt(l[4],10)),i++;i<o.length;){var s=o[i].charAt(0);try{var c=decodeURI(o[i].substring(1))}catch(e){throw new Error("Illegal escape in patch_fromText: "+c)}if("-"==s)u.diffs.push(new t.Diff(n,c));else if("+"==s)u.diffs.push(new t.Diff(1,c));else if(" "==s)u.diffs.push(new t.Diff(0,c));else{if("@"==s)break;if(""!==s)throw new Error('Invalid patch mode "'+s+'" in: '+c)}i++}}return r},(t.patch_obj=function(){this.diffs=[],this.start1=null,this.start2=null,this.length1=0,this.length2=0}).prototype.toString=function(){for(var e,t=["@@ -"+(0===this.length1?this.start1+",0":1==this.length1?this.start1+1:this.start1+1+","+this.length1)+" +"+(0===this.length2?this.start2+",0":1==this.length2?this.start2+1:this.start2+1+","+this.length2)+" @@\n"],r=0;r<this.diffs.length;r++){switch(this.diffs[r][0]){case 1:e="+";break;case n:e="-";break;case 0:e=" "}t[r+1]=e+encodeURI(this.diffs[r][1])+"\n"}return t.join("").replace(/%20/g," ")},e.exports=t,e.exports.diff_match_patch=t,e.exports.DIFF_DELETE=n,e.exports.DIFF_INSERT=1,e.exports.DIFF_EQUAL=0},7570:e=>{"use strict";e.exports=function(e){var t=e.uri,n=e.name,r=e.type;this.uri=t,this.name=n,this.type=r}},2929:(e,t,n)=>{"use strict";var r=n(1278);e.exports=function e(t,n,o){var i;void 0===n&&(n=""),void 0===o&&(o=r);var a=new Map;function l(e,t){var n=a.get(t);n?n.push.apply(n,e):a.set(t,e)}if(o(t))i=null,l([n],t);else{var u=n?n+".":"";if("undefined"!=typeof FileList&&t instanceof FileList)i=Array.prototype.map.call(t,(function(e,t){return l([""+u+t],e),null}));else if(Array.isArray(t))i=t.map((function(t,n){var r=e(t,""+u+n,o);return r.files.forEach(l),r.clone}));else if(t&&t.constructor===Object)for(var s in i={},t){var c=e(t[s],""+u+s,o);c.files.forEach(l),i[s]=c.clone}else i=t}return{clone:i,files:a}}},9384:(e,t,n)=>{"use strict";t.ReactNativeFile=n(7570),t.extractFiles=n(2929),t.isExtractableFile=n(1278)},1278:(e,t,n)=>{"use strict";var r=n(7570);e.exports=function(e){return"undefined"!=typeof File&&e instanceof File||"undefined"!=typeof Blob&&e instanceof Blob||e instanceof r}},1688:e=>{e.exports="object"==typeof self?self.FormData:window.FormData},1170:function(e,t){var n,r;void 0===(r="function"==typeof(n=function(){var e=function(){},t={},n={},r={};function o(e,t){if(e){var o=r[e];if(n[e]=t,o)for(;o.length;)o[0](e,t),o.splice(0,1)}}function i(t,n){t.call&&(t={success:t}),n.length?(t.error||e)(n):(t.success||e)(t)}function a(t,n,r,o){var i,l,u=document,s=r.async,c=(r.numRetries||0)+1,f=r.before||e,d=t.replace(/[\?|#].*$/,""),h=t.replace(/^(css|img)!/,"");o=o||0,/(^css!|\.css$)/.test(d)?((l=u.createElement("link")).rel="stylesheet",l.href=h,(i="hideFocus"in l)&&l.relList&&(i=0,l.rel="preload",l.as="style")):/(^img!|\.(png|gif|jpg|svg|webp)$)/.test(d)?(l=u.createElement("img")).src=h:((l=u.createElement("script")).src=t,l.async=void 0===s||s),l.onload=l.onerror=l.onbeforeload=function(e){var u=e.type[0];if(i)try{l.sheet.cssText.length||(u="e")}catch(e){18!=e.code&&(u="e")}if("e"==u){if((o+=1)<c)return a(t,n,r,o)}else if("preload"==l.rel&&"style"==l.as)return l.rel="stylesheet";n(t,u,e.defaultPrevented)},!1!==f(t,l)&&u.head.appendChild(l)}function l(e,n,r){var l,u;if(n&&n.trim&&(l=n),u=(l?r:n)||{},l){if(l in t)throw"LoadJS";t[l]=!0}function s(t,n){!function(e,t,n){var r,o,i=(e=e.push?e:[e]).length,l=i,u=[];for(r=function(e,n,r){if("e"==n&&u.push(e),"b"==n){if(!r)return;u.push(e)}--i||t(u)},o=0;o<l;o++)a(e[o],r,n)}(e,(function(e){i(u,e),t&&i({success:t,error:n},e),o(l,e)}),u)}if(u.returnPromise)return new Promise(s);s()}return l.ready=function(e,t){return function(e,t){e=e.push?e:[e];var o,i,a,l=[],u=e.length,s=u;for(o=function(e,n){n.length&&l.push(e),--s||t(l)};u--;)i=e[u],(a=n[i])?o(i,a):(r[i]=r[i]||[]).push(o)}(e,(function(e){i(t,e)})),l},l.done=function(e){o(e,[])},l.reset=function(){t={},n={},r={}},l.isDefined=function(e){return e in t},l})?n.apply(t,[]):n)||(e.exports=r)},6635:function(e,t,n){var r;e=n.nmd(e),function(){var o,i="Expected a function",a="__lodash_hash_undefined__",l="__lodash_placeholder__",u=32,s=128,c=1/0,f=9007199254740991,d=NaN,h=4294967295,p=[["ary",s],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",u],["partialRight",64],["rearg",256]],g="[object Arguments]",v="[object Array]",m="[object Boolean]",y="[object Date]",b="[object Error]",w="[object Function]",_="[object GeneratorFunction]",x="[object Map]",E="[object Number]",S="[object Object]",k="[object Promise]",C="[object RegExp]",O="[object Set]",P="[object String]",T="[object Symbol]",R="[object WeakMap]",j="[object ArrayBuffer]",A="[object DataView]",L="[object Float32Array]",I="[object Float64Array]",D="[object Int8Array]",N="[object Int16Array]",M="[object Int32Array]",z="[object Uint8Array]",F="[object Uint8ClampedArray]",$="[object Uint16Array]",U="[object Uint32Array]",B=/\b__p \+= '';/g,H=/\b(__p \+=) '' \+/g,W=/(__e\(.*?\)|\b__t\)) \+\n'';/g,V=/&(?:amp|lt|gt|quot|#39);/g,q=/[&<>"']/g,K=RegExp(V.source),X=RegExp(q.source),G=/<%-([\s\S]+?)%>/g,Y=/<%([\s\S]+?)%>/g,Q=/<%=([\s\S]+?)%>/g,Z=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,J=/^\w*$/,ee=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,te=/[\\^$.*+?()[\]{}|]/g,ne=RegExp(te.source),re=/^\s+/,oe=/\s/,ie=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ae=/\{\n\/\* \[wrapped with (.+)\] \*/,le=/,? & /,ue=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,se=/[()=,{}\[\]\/\s]/,ce=/\\(\\)?/g,fe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,de=/\w*$/,he=/^[-+]0x[0-9a-f]+$/i,pe=/^0b[01]+$/i,ge=/^\[object .+?Constructor\]$/,ve=/^0o[0-7]+$/i,me=/^(?:0|[1-9]\d*)$/,ye=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,be=/($^)/,we=/['\n\r\u2028\u2029\\]/g,_e="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",xe="a-z\\xdf-\\xf6\\xf8-\\xff",Ee="A-Z\\xc0-\\xd6\\xd8-\\xde",Se="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",ke="["+Se+"]",Ce="["+_e+"]",Oe="\\d+",Pe="["+xe+"]",Te="[^\\ud800-\\udfff"+Se+Oe+"\\u2700-\\u27bf"+xe+Ee+"]",Re="\\ud83c[\\udffb-\\udfff]",je="[^\\ud800-\\udfff]",Ae="(?:\\ud83c[\\udde6-\\uddff]){2}",Le="[\\ud800-\\udbff][\\udc00-\\udfff]",Ie="["+Ee+"]",De="(?:"+Pe+"|"+Te+")",Ne="(?:"+Ie+"|"+Te+")",Me="(?:['’](?:d|ll|m|re|s|t|ve))?",ze="(?:['’](?:D|LL|M|RE|S|T|VE))?",Fe="(?:"+Ce+"|"+Re+")?",$e="[\\ufe0e\\ufe0f]?",Ue=$e+Fe+"(?:\\u200d(?:"+[je,Ae,Le].join("|")+")"+$e+Fe+")*",Be="(?:"+["[\\u2700-\\u27bf]",Ae,Le].join("|")+")"+Ue,He="(?:"+[je+Ce+"?",Ce,Ae,Le,"[\\ud800-\\udfff]"].join("|")+")",We=RegExp("['’]","g"),Ve=RegExp(Ce,"g"),qe=RegExp(Re+"(?="+Re+")|"+He+Ue,"g"),Ke=RegExp([Ie+"?"+Pe+"+"+Me+"(?="+[ke,Ie,"$"].join("|")+")",Ne+"+"+ze+"(?="+[ke,Ie+De,"$"].join("|")+")",Ie+"?"+De+"+"+Me,Ie+"+"+ze,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Oe,Be].join("|"),"g"),Xe=RegExp("[\\u200d\\ud800-\\udfff"+_e+"\\ufe0e\\ufe0f]"),Ge=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Ye=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Qe=-1,Ze={};Ze[L]=Ze[I]=Ze[D]=Ze[N]=Ze[M]=Ze[z]=Ze[F]=Ze[$]=Ze[U]=!0,Ze[g]=Ze[v]=Ze[j]=Ze[m]=Ze[A]=Ze[y]=Ze[b]=Ze[w]=Ze[x]=Ze[E]=Ze[S]=Ze[C]=Ze[O]=Ze[P]=Ze[R]=!1;var Je={};Je[g]=Je[v]=Je[j]=Je[A]=Je[m]=Je[y]=Je[L]=Je[I]=Je[D]=Je[N]=Je[M]=Je[x]=Je[E]=Je[S]=Je[C]=Je[O]=Je[P]=Je[T]=Je[z]=Je[F]=Je[$]=Je[U]=!0,Je[b]=Je[w]=Je[R]=!1;var et={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},tt=parseFloat,nt=parseInt,rt="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,ot="object"==typeof self&&self&&self.Object===Object&&self,it=rt||ot||Function("return this")(),at=t&&!t.nodeType&&t,lt=at&&e&&!e.nodeType&&e,ut=lt&<.exports===at,st=ut&&rt.process,ct=function(){try{return lt&<.require&<.require("util").types||st&&st.binding&&st.binding("util")}catch(e){}}(),ft=ct&&ct.isArrayBuffer,dt=ct&&ct.isDate,ht=ct&&ct.isMap,pt=ct&&ct.isRegExp,gt=ct&&ct.isSet,vt=ct&&ct.isTypedArray;function mt(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function yt(e,t,n,r){for(var o=-1,i=null==e?0:e.length;++o<i;){var a=e[o];t(r,a,n(a),e)}return r}function bt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function wt(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function _t(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function xt(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}function Et(e,t){return!(null==e||!e.length)&&Lt(e,t,0)>-1}function St(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}function kt(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}function Ct(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}function Ot(e,t,n,r){var o=-1,i=null==e?0:e.length;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}function Pt(e,t,n,r){var o=null==e?0:e.length;for(r&&o&&(n=e[--o]);o--;)n=t(n,e[o],o,e);return n}function Tt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var Rt=Mt("length");function jt(e,t,n){var r;return n(e,(function(e,n,o){if(t(e,n,o))return r=n,!1})),r}function At(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}function Lt(e,t,n){return t==t?function(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}(e,t,n):At(e,Dt,n)}function It(e,t,n,r){for(var o=n-1,i=e.length;++o<i;)if(r(e[o],t))return o;return-1}function Dt(e){return e!=e}function Nt(e,t){var n=null==e?0:e.length;return n?$t(e,t)/n:d}function Mt(e){return function(t){return null==t?o:t[e]}}function zt(e){return function(t){return null==e?o:e[t]}}function Ft(e,t,n,r,o){return o(e,(function(e,o,i){n=r?(r=!1,e):t(n,e,o,i)})),n}function $t(e,t){for(var n,r=-1,i=e.length;++r<i;){var a=t(e[r]);a!==o&&(n=n===o?a:n+a)}return n}function Ut(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Bt(e){return e?e.slice(0,ln(e)+1).replace(re,""):e}function Ht(e){return function(t){return e(t)}}function Wt(e,t){return kt(t,(function(t){return e[t]}))}function Vt(e,t){return e.has(t)}function qt(e,t){for(var n=-1,r=e.length;++n<r&&Lt(t,e[n],0)>-1;);return n}function Kt(e,t){for(var n=e.length;n--&&Lt(t,e[n],0)>-1;);return n}function Xt(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}var Gt=zt({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),Yt=zt({"&":"&","<":"<",">":">",'"':""","'":"'"});function Qt(e){return"\\"+et[e]}function Zt(e){return Xe.test(e)}function Jt(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function en(e,t){return function(n){return e(t(n))}}function tn(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n];a!==t&&a!==l||(e[n]=l,i[o++]=n)}return i}function nn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function rn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function on(e){return Zt(e)?function(e){for(var t=qe.lastIndex=0;qe.test(e);)++t;return t}(e):Rt(e)}function an(e){return Zt(e)?function(e){return e.match(qe)||[]}(e):function(e){return e.split("")}(e)}function ln(e){for(var t=e.length;t--&&oe.test(e.charAt(t)););return t}var un=zt({"&":"&","<":"<",">":">",""":'"',"'":"'"}),sn=function e(t){var n,r=(t=null==t?it:sn.defaults(it.Object(),t,sn.pick(it,Ye))).Array,oe=t.Date,_e=t.Error,xe=t.Function,Ee=t.Math,Se=t.Object,ke=t.RegExp,Ce=t.String,Oe=t.TypeError,Pe=r.prototype,Te=xe.prototype,Re=Se.prototype,je=t["__core-js_shared__"],Ae=Te.toString,Le=Re.hasOwnProperty,Ie=0,De=(n=/[^.]+$/.exec(je&&je.keys&&je.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",Ne=Re.toString,Me=Ae.call(Se),ze=it._,Fe=ke("^"+Ae.call(Le).replace(te,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),$e=ut?t.Buffer:o,Ue=t.Symbol,Be=t.Uint8Array,He=$e?$e.allocUnsafe:o,qe=en(Se.getPrototypeOf,Se),Xe=Se.create,et=Re.propertyIsEnumerable,rt=Pe.splice,ot=Ue?Ue.isConcatSpreadable:o,at=Ue?Ue.iterator:o,lt=Ue?Ue.toStringTag:o,st=function(){try{var e=ci(Se,"defineProperty");return e({},"",{}),e}catch(e){}}(),ct=t.clearTimeout!==it.clearTimeout&&t.clearTimeout,Rt=oe&&oe.now!==it.Date.now&&oe.now,zt=t.setTimeout!==it.setTimeout&&t.setTimeout,cn=Ee.ceil,fn=Ee.floor,dn=Se.getOwnPropertySymbols,hn=$e?$e.isBuffer:o,pn=t.isFinite,gn=Pe.join,vn=en(Se.keys,Se),mn=Ee.max,yn=Ee.min,bn=oe.now,wn=t.parseInt,_n=Ee.random,xn=Pe.reverse,En=ci(t,"DataView"),Sn=ci(t,"Map"),kn=ci(t,"Promise"),Cn=ci(t,"Set"),On=ci(t,"WeakMap"),Pn=ci(Se,"create"),Tn=On&&new On,Rn={},jn=Fi(En),An=Fi(Sn),Ln=Fi(kn),In=Fi(Cn),Dn=Fi(On),Nn=Ue?Ue.prototype:o,Mn=Nn?Nn.valueOf:o,zn=Nn?Nn.toString:o;function Fn(e){if(nl(e)&&!Va(e)&&!(e instanceof Hn)){if(e instanceof Bn)return e;if(Le.call(e,"__wrapped__"))return $i(e)}return new Bn(e)}var $n=function(){function e(){}return function(t){if(!tl(t))return{};if(Xe)return Xe(t);e.prototype=t;var n=new e;return e.prototype=o,n}}();function Un(){}function Bn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=o}function Hn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=h,this.__views__=[]}function Wn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Vn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function qn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Kn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new qn;++t<n;)this.add(e[t])}function Xn(e){var t=this.__data__=new Vn(e);this.size=t.size}function Gn(e,t){var n=Va(e),r=!n&&Wa(e),o=!n&&!r&&Ga(e),i=!n&&!r&&!o&&cl(e),a=n||r||o||i,l=a?Ut(e.length,Ce):[],u=l.length;for(var s in e)!t&&!Le.call(e,s)||a&&("length"==s||o&&("offset"==s||"parent"==s)||i&&("buffer"==s||"byteLength"==s||"byteOffset"==s)||mi(s,u))||l.push(s);return l}function Yn(e){var t=e.length;return t?e[qr(0,t-1)]:o}function Qn(e,t){return Ii(Po(e),ar(t,0,e.length))}function Zn(e){return Ii(Po(e))}function Jn(e,t,n){(n!==o&&!Ua(e[t],n)||n===o&&!(t in e))&&or(e,t,n)}function er(e,t,n){var r=e[t];Le.call(e,t)&&Ua(r,n)&&(n!==o||t in e)||or(e,t,n)}function tr(e,t){for(var n=e.length;n--;)if(Ua(e[n][0],t))return n;return-1}function nr(e,t,n,r){return fr(e,(function(e,o,i){t(r,e,n(e),i)})),r}function rr(e,t){return e&&To(t,Al(t),e)}function or(e,t,n){"__proto__"==t&&st?st(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function ir(e,t){for(var n=-1,i=t.length,a=r(i),l=null==e;++n<i;)a[n]=l?o:Ol(e,t[n]);return a}function ar(e,t,n){return e==e&&(n!==o&&(e=e<=n?e:n),t!==o&&(e=e>=t?e:t)),e}function lr(e,t,n,r,i,a){var l,u=1&t,s=2&t,c=4&t;if(n&&(l=i?n(e,r,i,a):n(e)),l!==o)return l;if(!tl(e))return e;var f=Va(e);if(f){if(l=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&Le.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!u)return Po(e,l)}else{var d=hi(e),h=d==w||d==_;if(Ga(e))return xo(e,u);if(d==S||d==g||h&&!i){if(l=s||h?{}:gi(e),!u)return s?function(e,t){return To(e,di(e),t)}(e,function(e,t){return e&&To(t,Ll(t),e)}(l,e)):function(e,t){return To(e,fi(e),t)}(e,rr(l,e))}else{if(!Je[d])return i?e:{};l=function(e,t,n){var r,o=e.constructor;switch(t){case j:return Eo(e);case m:case y:return new o(+e);case A:return function(e,t){var n=t?Eo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case L:case I:case D:case N:case M:case z:case F:case $:case U:return So(e,n);case x:return new o;case E:case P:return new o(e);case C:return function(e){var t=new e.constructor(e.source,de.exec(e));return t.lastIndex=e.lastIndex,t}(e);case O:return new o;case T:return r=e,Mn?Se(Mn.call(r)):{}}}(e,d,u)}}a||(a=new Xn);var p=a.get(e);if(p)return p;a.set(e,l),ll(e)?e.forEach((function(r){l.add(lr(r,t,n,r,e,a))})):rl(e)&&e.forEach((function(r,o){l.set(o,lr(r,t,n,o,e,a))}));var v=f?o:(c?s?ri:ni:s?Ll:Al)(e);return bt(v||e,(function(r,o){v&&(r=e[o=r]),er(l,o,lr(r,t,n,o,e,a))})),l}function ur(e,t,n){var r=n.length;if(null==e)return!r;for(e=Se(e);r--;){var i=n[r],a=t[i],l=e[i];if(l===o&&!(i in e)||!a(l))return!1}return!0}function sr(e,t,n){if("function"!=typeof e)throw new Oe(i);return Ri((function(){e.apply(o,n)}),t)}function cr(e,t,n,r){var o=-1,i=Et,a=!0,l=e.length,u=[],s=t.length;if(!l)return u;n&&(t=kt(t,Ht(n))),r?(i=St,a=!1):t.length>=200&&(i=Vt,a=!1,t=new Kn(t));e:for(;++o<l;){var c=e[o],f=null==n?c:n(c);if(c=r||0!==c?c:0,a&&f==f){for(var d=s;d--;)if(t[d]===f)continue e;u.push(c)}else i(t,f,r)||u.push(c)}return u}Fn.templateSettings={escape:G,evaluate:Y,interpolate:Q,variable:"",imports:{_:Fn}},Fn.prototype=Un.prototype,Fn.prototype.constructor=Fn,Bn.prototype=$n(Un.prototype),Bn.prototype.constructor=Bn,Hn.prototype=$n(Un.prototype),Hn.prototype.constructor=Hn,Wn.prototype.clear=function(){this.__data__=Pn?Pn(null):{},this.size=0},Wn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Wn.prototype.get=function(e){var t=this.__data__;if(Pn){var n=t[e];return n===a?o:n}return Le.call(t,e)?t[e]:o},Wn.prototype.has=function(e){var t=this.__data__;return Pn?t[e]!==o:Le.call(t,e)},Wn.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Pn&&t===o?a:t,this},Vn.prototype.clear=function(){this.__data__=[],this.size=0},Vn.prototype.delete=function(e){var t=this.__data__,n=tr(t,e);return!(n<0||(n==t.length-1?t.pop():rt.call(t,n,1),--this.size,0))},Vn.prototype.get=function(e){var t=this.__data__,n=tr(t,e);return n<0?o:t[n][1]},Vn.prototype.has=function(e){return tr(this.__data__,e)>-1},Vn.prototype.set=function(e,t){var n=this.__data__,r=tr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},qn.prototype.clear=function(){this.size=0,this.__data__={hash:new Wn,map:new(Sn||Vn),string:new Wn}},qn.prototype.delete=function(e){var t=ui(this,e).delete(e);return this.size-=t?1:0,t},qn.prototype.get=function(e){return ui(this,e).get(e)},qn.prototype.has=function(e){return ui(this,e).has(e)},qn.prototype.set=function(e,t){var n=ui(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Kn.prototype.add=Kn.prototype.push=function(e){return this.__data__.set(e,a),this},Kn.prototype.has=function(e){return this.__data__.has(e)},Xn.prototype.clear=function(){this.__data__=new Vn,this.size=0},Xn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Xn.prototype.get=function(e){return this.__data__.get(e)},Xn.prototype.has=function(e){return this.__data__.has(e)},Xn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Vn){var r=n.__data__;if(!Sn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new qn(r)}return n.set(e,t),this.size=n.size,this};var fr=Ao(br),dr=Ao(wr,!0);function hr(e,t){var n=!0;return fr(e,(function(e,r,o){return n=!!t(e,r,o)})),n}function pr(e,t,n){for(var r=-1,i=e.length;++r<i;){var a=e[r],l=t(a);if(null!=l&&(u===o?l==l&&!sl(l):n(l,u)))var u=l,s=a}return s}function gr(e,t){var n=[];return fr(e,(function(e,r,o){t(e,r,o)&&n.push(e)})),n}function vr(e,t,n,r,o){var i=-1,a=e.length;for(n||(n=vi),o||(o=[]);++i<a;){var l=e[i];t>0&&n(l)?t>1?vr(l,t-1,n,r,o):Ct(o,l):r||(o[o.length]=l)}return o}var mr=Lo(),yr=Lo(!0);function br(e,t){return e&&mr(e,t,Al)}function wr(e,t){return e&&yr(e,t,Al)}function _r(e,t){return xt(t,(function(t){return Za(e[t])}))}function xr(e,t){for(var n=0,r=(t=yo(t,e)).length;null!=e&&n<r;)e=e[zi(t[n++])];return n&&n==r?e:o}function Er(e,t,n){var r=t(e);return Va(e)?r:Ct(r,n(e))}function Sr(e){return null==e?e===o?"[object Undefined]":"[object Null]":lt&< in Se(e)?function(e){var t=Le.call(e,lt),n=e[lt];try{e[lt]=o;var r=!0}catch(e){}var i=Ne.call(e);return r&&(t?e[lt]=n:delete e[lt]),i}(e):function(e){return Ne.call(e)}(e)}function kr(e,t){return e>t}function Cr(e,t){return null!=e&&Le.call(e,t)}function Or(e,t){return null!=e&&t in Se(e)}function Pr(e,t,n){for(var i=n?St:Et,a=e[0].length,l=e.length,u=l,s=r(l),c=1/0,f=[];u--;){var d=e[u];u&&t&&(d=kt(d,Ht(t))),c=yn(d.length,c),s[u]=!n&&(t||a>=120&&d.length>=120)?new Kn(u&&d):o}d=e[0];var h=-1,p=s[0];e:for(;++h<a&&f.length<c;){var g=d[h],v=t?t(g):g;if(g=n||0!==g?g:0,!(p?Vt(p,v):i(f,v,n))){for(u=l;--u;){var m=s[u];if(!(m?Vt(m,v):i(e[u],v,n)))continue e}p&&p.push(v),f.push(g)}}return f}function Tr(e,t,n){var r=null==(e=Ci(e,t=yo(t,e)))?e:e[zi(Qi(t))];return null==r?o:mt(r,e,n)}function Rr(e){return nl(e)&&Sr(e)==g}function jr(e,t,n,r,i){return e===t||(null==e||null==t||!nl(e)&&!nl(t)?e!=e&&t!=t:function(e,t,n,r,i,a){var l=Va(e),u=Va(t),s=l?v:hi(e),c=u?v:hi(t),f=(s=s==g?S:s)==S,d=(c=c==g?S:c)==S,h=s==c;if(h&&Ga(e)){if(!Ga(t))return!1;l=!0,f=!1}if(h&&!f)return a||(a=new Xn),l||cl(e)?ei(e,t,n,r,i,a):function(e,t,n,r,o,i,a){switch(n){case A:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case j:return!(e.byteLength!=t.byteLength||!i(new Be(e),new Be(t)));case m:case y:case E:return Ua(+e,+t);case b:return e.name==t.name&&e.message==t.message;case C:case P:return e==t+"";case x:var l=Jt;case O:var u=1&r;if(l||(l=nn),e.size!=t.size&&!u)return!1;var s=a.get(e);if(s)return s==t;r|=2,a.set(e,t);var c=ei(l(e),l(t),r,o,i,a);return a.delete(e),c;case T:if(Mn)return Mn.call(e)==Mn.call(t)}return!1}(e,t,s,n,r,i,a);if(!(1&n)){var p=f&&Le.call(e,"__wrapped__"),w=d&&Le.call(t,"__wrapped__");if(p||w){var _=p?e.value():e,k=w?t.value():t;return a||(a=new Xn),i(_,k,n,r,a)}}return!!h&&(a||(a=new Xn),function(e,t,n,r,i,a){var l=1&n,u=ni(e),s=u.length;if(s!=ni(t).length&&!l)return!1;for(var c=s;c--;){var f=u[c];if(!(l?f in t:Le.call(t,f)))return!1}var d=a.get(e),h=a.get(t);if(d&&h)return d==t&&h==e;var p=!0;a.set(e,t),a.set(t,e);for(var g=l;++c<s;){var v=e[f=u[c]],m=t[f];if(r)var y=l?r(m,v,f,t,e,a):r(v,m,f,e,t,a);if(!(y===o?v===m||i(v,m,n,r,a):y)){p=!1;break}g||(g="constructor"==f)}if(p&&!g){var b=e.constructor,w=t.constructor;b==w||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof w&&w instanceof w||(p=!1)}return a.delete(e),a.delete(t),p}(e,t,n,r,i,a))}(e,t,n,r,jr,i))}function Ar(e,t,n,r){var i=n.length,a=i,l=!r;if(null==e)return!a;for(e=Se(e);i--;){var u=n[i];if(l&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++i<a;){var s=(u=n[i])[0],c=e[s],f=u[1];if(l&&u[2]){if(c===o&&!(s in e))return!1}else{var d=new Xn;if(r)var h=r(c,f,s,e,t,d);if(!(h===o?jr(f,c,3,r,d):h))return!1}}return!0}function Lr(e){return!(!tl(e)||(t=e,De&&De in t))&&(Za(e)?Fe:ge).test(Fi(e));var t}function Ir(e){return"function"==typeof e?e:null==e?ou:"object"==typeof e?Va(e)?Fr(e[0],e[1]):zr(e):hu(e)}function Dr(e){if(!xi(e))return vn(e);var t=[];for(var n in Se(e))Le.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Nr(e,t){return e<t}function Mr(e,t){var n=-1,o=Ka(e)?r(e.length):[];return fr(e,(function(e,r,i){o[++n]=t(e,r,i)})),o}function zr(e){var t=si(e);return 1==t.length&&t[0][2]?Si(t[0][0],t[0][1]):function(n){return n===e||Ar(n,e,t)}}function Fr(e,t){return bi(e)&&Ei(t)?Si(zi(e),t):function(n){var r=Ol(n,e);return r===o&&r===t?Pl(n,e):jr(t,r,3)}}function $r(e,t,n,r,i){e!==t&&mr(t,(function(a,l){if(i||(i=new Xn),tl(a))!function(e,t,n,r,i,a,l){var u=Pi(e,n),s=Pi(t,n),c=l.get(s);if(c)Jn(e,n,c);else{var f=a?a(u,s,n+"",e,t,l):o,d=f===o;if(d){var h=Va(s),p=!h&&Ga(s),g=!h&&!p&&cl(s);f=s,h||p||g?Va(u)?f=u:Xa(u)?f=Po(u):p?(d=!1,f=xo(s,!0)):g?(d=!1,f=So(s,!0)):f=[]:il(s)||Wa(s)?(f=u,Wa(u)?f=yl(u):tl(u)&&!Za(u)||(f=gi(s))):d=!1}d&&(l.set(s,f),i(f,s,r,a,l),l.delete(s)),Jn(e,n,f)}}(e,t,l,n,$r,r,i);else{var u=r?r(Pi(e,l),a,l+"",e,t,i):o;u===o&&(u=a),Jn(e,l,u)}}),Ll)}function Ur(e,t){var n=e.length;if(n)return mi(t+=t<0?n:0,n)?e[t]:o}function Br(e,t,n){t=t.length?kt(t,(function(e){return Va(e)?function(t){return xr(t,1===e.length?e[0]:e)}:e})):[ou];var r=-1;t=kt(t,Ht(li()));var o=Mr(e,(function(e,n,o){var i=kt(t,(function(t){return t(e)}));return{criteria:i,index:++r,value:e}}));return function(e,t){var r=e.length;for(e.sort((function(e,t){return function(e,t,n){for(var r=-1,o=e.criteria,i=t.criteria,a=o.length,l=n.length;++r<a;){var u=ko(o[r],i[r]);if(u)return r>=l?u:u*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}));r--;)e[r]=e[r].value;return e}(o)}function Hr(e,t,n){for(var r=-1,o=t.length,i={};++r<o;){var a=t[r],l=xr(e,a);n(l,a)&&Qr(i,yo(a,e),l)}return i}function Wr(e,t,n,r){var o=r?It:Lt,i=-1,a=t.length,l=e;for(e===t&&(t=Po(t)),n&&(l=kt(e,Ht(n)));++i<a;)for(var u=0,s=t[i],c=n?n(s):s;(u=o(l,c,u,r))>-1;)l!==e&&rt.call(l,u,1),rt.call(e,u,1);return e}function Vr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var o=t[n];if(n==r||o!==i){var i=o;mi(o)?rt.call(e,o,1):so(e,o)}}return e}function qr(e,t){return e+fn(_n()*(t-e+1))}function Kr(e,t){var n="";if(!e||t<1||t>f)return n;do{t%2&&(n+=e),(t=fn(t/2))&&(e+=e)}while(t);return n}function Xr(e,t){return ji(ki(e,t,ou),e+"")}function Gr(e){return Yn(Ul(e))}function Yr(e,t){var n=Ul(e);return Ii(n,ar(t,0,n.length))}function Qr(e,t,n,r){if(!tl(e))return e;for(var i=-1,a=(t=yo(t,e)).length,l=a-1,u=e;null!=u&&++i<a;){var s=zi(t[i]),c=n;if("__proto__"===s||"constructor"===s||"prototype"===s)return e;if(i!=l){var f=u[s];(c=r?r(f,s,u):o)===o&&(c=tl(f)?f:mi(t[i+1])?[]:{})}er(u,s,c),u=u[s]}return e}var Zr=Tn?function(e,t){return Tn.set(e,t),e}:ou,Jr=st?function(e,t){return st(e,"toString",{configurable:!0,enumerable:!1,value:tu(t),writable:!0})}:ou;function eo(e){return Ii(Ul(e))}function to(e,t,n){var o=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=r(i);++o<i;)a[o]=e[o+t];return a}function no(e,t){var n;return fr(e,(function(e,r,o){return!(n=t(e,r,o))})),!!n}function ro(e,t,n){var r=0,o=null==e?r:e.length;if("number"==typeof t&&t==t&&o<=2147483647){for(;r<o;){var i=r+o>>>1,a=e[i];null!==a&&!sl(a)&&(n?a<=t:a<t)?r=i+1:o=i}return o}return oo(e,t,ou,n)}function oo(e,t,n,r){var i=0,a=null==e?0:e.length;if(0===a)return 0;for(var l=(t=n(t))!=t,u=null===t,s=sl(t),c=t===o;i<a;){var f=fn((i+a)/2),d=n(e[f]),h=d!==o,p=null===d,g=d==d,v=sl(d);if(l)var m=r||g;else m=c?g&&(r||h):u?g&&h&&(r||!p):s?g&&h&&!p&&(r||!v):!p&&!v&&(r?d<=t:d<t);m?i=f+1:a=f}return yn(a,4294967294)}function io(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var a=e[n],l=t?t(a):a;if(!n||!Ua(l,u)){var u=l;i[o++]=0===a?0:a}}return i}function ao(e){return"number"==typeof e?e:sl(e)?d:+e}function lo(e){if("string"==typeof e)return e;if(Va(e))return kt(e,lo)+"";if(sl(e))return zn?zn.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function uo(e,t,n){var r=-1,o=Et,i=e.length,a=!0,l=[],u=l;if(n)a=!1,o=St;else if(i>=200){var s=t?null:Xo(e);if(s)return nn(s);a=!1,o=Vt,u=new Kn}else u=t?[]:l;e:for(;++r<i;){var c=e[r],f=t?t(c):c;if(c=n||0!==c?c:0,a&&f==f){for(var d=u.length;d--;)if(u[d]===f)continue e;t&&u.push(f),l.push(c)}else o(u,f,n)||(u!==l&&u.push(f),l.push(c))}return l}function so(e,t){return null==(e=Ci(e,t=yo(t,e)))||delete e[zi(Qi(t))]}function co(e,t,n,r){return Qr(e,t,n(xr(e,t)),r)}function fo(e,t,n,r){for(var o=e.length,i=r?o:-1;(r?i--:++i<o)&&t(e[i],i,e););return n?to(e,r?0:i,r?i+1:o):to(e,r?i+1:0,r?o:i)}function ho(e,t){var n=e;return n instanceof Hn&&(n=n.value()),Ot(t,(function(e,t){return t.func.apply(t.thisArg,Ct([e],t.args))}),n)}function po(e,t,n){var o=e.length;if(o<2)return o?uo(e[0]):[];for(var i=-1,a=r(o);++i<o;)for(var l=e[i],u=-1;++u<o;)u!=i&&(a[i]=cr(a[i]||l,e[u],t,n));return uo(vr(a,1),t,n)}function go(e,t,n){for(var r=-1,i=e.length,a=t.length,l={};++r<i;){var u=r<a?t[r]:o;n(l,e[r],u)}return l}function vo(e){return Xa(e)?e:[]}function mo(e){return"function"==typeof e?e:ou}function yo(e,t){return Va(e)?e:bi(e,t)?[e]:Mi(bl(e))}var bo=Xr;function wo(e,t,n){var r=e.length;return n=n===o?r:n,!t&&n>=r?e:to(e,t,n)}var _o=ct||function(e){return it.clearTimeout(e)};function xo(e,t){if(t)return e.slice();var n=e.length,r=He?He(n):new e.constructor(n);return e.copy(r),r}function Eo(e){var t=new e.constructor(e.byteLength);return new Be(t).set(new Be(e)),t}function So(e,t){var n=t?Eo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function ko(e,t){if(e!==t){var n=e!==o,r=null===e,i=e==e,a=sl(e),l=t!==o,u=null===t,s=t==t,c=sl(t);if(!u&&!c&&!a&&e>t||a&&l&&s&&!u&&!c||r&&l&&s||!n&&s||!i)return 1;if(!r&&!a&&!c&&e<t||c&&n&&i&&!r&&!a||u&&n&&i||!l&&i||!s)return-1}return 0}function Co(e,t,n,o){for(var i=-1,a=e.length,l=n.length,u=-1,s=t.length,c=mn(a-l,0),f=r(s+c),d=!o;++u<s;)f[u]=t[u];for(;++i<l;)(d||i<a)&&(f[n[i]]=e[i]);for(;c--;)f[u++]=e[i++];return f}function Oo(e,t,n,o){for(var i=-1,a=e.length,l=-1,u=n.length,s=-1,c=t.length,f=mn(a-u,0),d=r(f+c),h=!o;++i<f;)d[i]=e[i];for(var p=i;++s<c;)d[p+s]=t[s];for(;++l<u;)(h||i<a)&&(d[p+n[l]]=e[i++]);return d}function Po(e,t){var n=-1,o=e.length;for(t||(t=r(o));++n<o;)t[n]=e[n];return t}function To(e,t,n,r){var i=!n;n||(n={});for(var a=-1,l=t.length;++a<l;){var u=t[a],s=r?r(n[u],e[u],u,n,e):o;s===o&&(s=e[u]),i?or(n,u,s):er(n,u,s)}return n}function Ro(e,t){return function(n,r){var o=Va(n)?yt:nr,i=t?t():{};return o(n,e,li(r,2),i)}}function jo(e){return Xr((function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:o,l=i>2?n[2]:o;for(a=e.length>3&&"function"==typeof a?(i--,a):o,l&&yi(n[0],n[1],l)&&(a=i<3?o:a,i=1),t=Se(t);++r<i;){var u=n[r];u&&e(t,u,r,a)}return t}))}function Ao(e,t){return function(n,r){if(null==n)return n;if(!Ka(n))return e(n,r);for(var o=n.length,i=t?o:-1,a=Se(n);(t?i--:++i<o)&&!1!==r(a[i],i,a););return n}}function Lo(e){return function(t,n,r){for(var o=-1,i=Se(t),a=r(t),l=a.length;l--;){var u=a[e?l:++o];if(!1===n(i[u],u,i))break}return t}}function Io(e){return function(t){var n=Zt(t=bl(t))?an(t):o,r=n?n[0]:t.charAt(0),i=n?wo(n,1).join(""):t.slice(1);return r[e]()+i}}function Do(e){return function(t){return Ot(Zl(Wl(t).replace(We,"")),e,"")}}function No(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=$n(e.prototype),r=e.apply(n,t);return tl(r)?r:n}}function Mo(e){return function(t,n,r){var i=Se(t);if(!Ka(t)){var a=li(n,3);t=Al(t),n=function(e){return a(i[e],e,i)}}var l=e(t,n,r);return l>-1?i[a?t[l]:l]:o}}function zo(e){return ti((function(t){var n=t.length,r=n,a=Bn.prototype.thru;for(e&&t.reverse();r--;){var l=t[r];if("function"!=typeof l)throw new Oe(i);if(a&&!u&&"wrapper"==ii(l))var u=new Bn([],!0)}for(r=u?r:n;++r<n;){var s=ii(l=t[r]),c="wrapper"==s?oi(l):o;u=c&&wi(c[0])&&424==c[1]&&!c[4].length&&1==c[9]?u[ii(c[0])].apply(u,c[3]):1==l.length&&wi(l)?u[s]():u.thru(l)}return function(){var e=arguments,r=e[0];if(u&&1==e.length&&Va(r))return u.plant(r).value();for(var o=0,i=n?t[o].apply(this,e):r;++o<n;)i=t[o].call(this,i);return i}}))}function Fo(e,t,n,i,a,l,u,c,f,d){var h=t&s,p=1&t,g=2&t,v=24&t,m=512&t,y=g?o:No(e);return function o(){for(var s=arguments.length,b=r(s),w=s;w--;)b[w]=arguments[w];if(v)var _=ai(o),x=Xt(b,_);if(i&&(b=Co(b,i,a,v)),l&&(b=Oo(b,l,u,v)),s-=x,v&&s<d){var E=tn(b,_);return qo(e,t,Fo,o.placeholder,n,b,E,c,f,d-s)}var S=p?n:this,k=g?S[e]:e;return s=b.length,c?b=Oi(b,c):m&&s>1&&b.reverse(),h&&f<s&&(b.length=f),this&&this!==it&&this instanceof o&&(k=y||No(k)),k.apply(S,b)}}function $o(e,t){return function(n,r){return function(e,t,n,r){return br(e,(function(e,o,i){t(r,n(e),o,i)})),r}(n,e,t(r),{})}}function Uo(e,t){return function(n,r){var i;if(n===o&&r===o)return t;if(n!==o&&(i=n),r!==o){if(i===o)return r;"string"==typeof n||"string"==typeof r?(n=lo(n),r=lo(r)):(n=ao(n),r=ao(r)),i=e(n,r)}return i}}function Bo(e){return ti((function(t){return t=kt(t,Ht(li())),Xr((function(n){var r=this;return e(t,(function(e){return mt(e,r,n)}))}))}))}function Ho(e,t){var n=(t=t===o?" ":lo(t)).length;if(n<2)return n?Kr(t,e):t;var r=Kr(t,cn(e/on(t)));return Zt(t)?wo(an(r),0,e).join(""):r.slice(0,e)}function Wo(e){return function(t,n,i){return i&&"number"!=typeof i&&yi(t,n,i)&&(n=i=o),t=pl(t),n===o?(n=t,t=0):n=pl(n),function(e,t,n,o){for(var i=-1,a=mn(cn((t-e)/(n||1)),0),l=r(a);a--;)l[o?a:++i]=e,e+=n;return l}(t,n,i=i===o?t<n?1:-1:pl(i),e)}}function Vo(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=ml(t),n=ml(n)),e(t,n)}}function qo(e,t,n,r,i,a,l,s,c,f){var d=8&t;t|=d?u:64,4&(t&=~(d?64:u))||(t&=-4);var h=[e,t,i,d?a:o,d?l:o,d?o:a,d?o:l,s,c,f],p=n.apply(o,h);return wi(e)&&Ti(p,h),p.placeholder=r,Ai(p,e,t)}function Ko(e){var t=Ee[e];return function(e,n){if(e=ml(e),(n=null==n?0:yn(gl(n),292))&&pn(e)){var r=(bl(e)+"e").split("e");return+((r=(bl(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var Xo=Cn&&1/nn(new Cn([,-0]))[1]==c?function(e){return new Cn(e)}:su;function Go(e){return function(t){var n=hi(t);return n==x?Jt(t):n==O?rn(t):function(e,t){return kt(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Yo(e,t,n,a,c,f,d,h){var p=2&t;if(!p&&"function"!=typeof e)throw new Oe(i);var g=a?a.length:0;if(g||(t&=-97,a=c=o),d=d===o?d:mn(gl(d),0),h=h===o?h:gl(h),g-=c?c.length:0,64&t){var v=a,m=c;a=c=o}var y=p?o:oi(e),b=[e,t,n,a,c,v,m,f,d,h];if(y&&function(e,t){var n=e[1],r=t[1],o=n|r,i=o<131,a=r==s&&8==n||r==s&&256==n&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!i&&!a)return e;1&r&&(e[2]=t[2],o|=1&n?0:4);var u=t[3];if(u){var c=e[3];e[3]=c?Co(c,u,t[4]):u,e[4]=c?tn(e[3],l):t[4]}(u=t[5])&&(c=e[5],e[5]=c?Oo(c,u,t[6]):u,e[6]=c?tn(e[5],l):t[6]),(u=t[7])&&(e[7]=u),r&s&&(e[8]=null==e[8]?t[8]:yn(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=o}(b,y),e=b[0],t=b[1],n=b[2],a=b[3],c=b[4],!(h=b[9]=b[9]===o?p?0:e.length:mn(b[9]-g,0))&&24&t&&(t&=-25),t&&1!=t)w=8==t||16==t?function(e,t,n){var i=No(e);return function a(){for(var l=arguments.length,u=r(l),s=l,c=ai(a);s--;)u[s]=arguments[s];var f=l<3&&u[0]!==c&&u[l-1]!==c?[]:tn(u,c);return(l-=f.length)<n?qo(e,t,Fo,a.placeholder,o,u,f,o,o,n-l):mt(this&&this!==it&&this instanceof a?i:e,this,u)}}(e,t,h):t!=u&&33!=t||c.length?Fo.apply(o,b):function(e,t,n,o){var i=1&t,a=No(e);return function t(){for(var l=-1,u=arguments.length,s=-1,c=o.length,f=r(c+u),d=this&&this!==it&&this instanceof t?a:e;++s<c;)f[s]=o[s];for(;u--;)f[s++]=arguments[++l];return mt(d,i?n:this,f)}}(e,t,n,a);else var w=function(e,t,n){var r=1&t,o=No(e);return function t(){return(this&&this!==it&&this instanceof t?o:e).apply(r?n:this,arguments)}}(e,t,n);return Ai((y?Zr:Ti)(w,b),e,t)}function Qo(e,t,n,r){return e===o||Ua(e,Re[n])&&!Le.call(r,n)?t:e}function Zo(e,t,n,r,i,a){return tl(e)&&tl(t)&&(a.set(t,e),$r(e,t,o,Zo,a),a.delete(t)),e}function Jo(e){return il(e)?o:e}function ei(e,t,n,r,i,a){var l=1&n,u=e.length,s=t.length;if(u!=s&&!(l&&s>u))return!1;var c=a.get(e),f=a.get(t);if(c&&f)return c==t&&f==e;var d=-1,h=!0,p=2&n?new Kn:o;for(a.set(e,t),a.set(t,e);++d<u;){var g=e[d],v=t[d];if(r)var m=l?r(v,g,d,t,e,a):r(g,v,d,e,t,a);if(m!==o){if(m)continue;h=!1;break}if(p){if(!Tt(t,(function(e,t){if(!Vt(p,t)&&(g===e||i(g,e,n,r,a)))return p.push(t)}))){h=!1;break}}else if(g!==v&&!i(g,v,n,r,a)){h=!1;break}}return a.delete(e),a.delete(t),h}function ti(e){return ji(ki(e,o,qi),e+"")}function ni(e){return Er(e,Al,fi)}function ri(e){return Er(e,Ll,di)}var oi=Tn?function(e){return Tn.get(e)}:su;function ii(e){for(var t=e.name+"",n=Rn[t],r=Le.call(Rn,t)?n.length:0;r--;){var o=n[r],i=o.func;if(null==i||i==e)return o.name}return t}function ai(e){return(Le.call(Fn,"placeholder")?Fn:e).placeholder}function li(){var e=Fn.iteratee||iu;return e=e===iu?Ir:e,arguments.length?e(arguments[0],arguments[1]):e}function ui(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function si(e){for(var t=Al(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,Ei(o)]}return t}function ci(e,t){var n=function(e,t){return null==e?o:e[t]}(e,t);return Lr(n)?n:o}var fi=dn?function(e){return null==e?[]:(e=Se(e),xt(dn(e),(function(t){return et.call(e,t)})))}:vu,di=dn?function(e){for(var t=[];e;)Ct(t,fi(e)),e=qe(e);return t}:vu,hi=Sr;function pi(e,t,n){for(var r=-1,o=(t=yo(t,e)).length,i=!1;++r<o;){var a=zi(t[r]);if(!(i=null!=e&&n(e,a)))break;e=e[a]}return i||++r!=o?i:!!(o=null==e?0:e.length)&&el(o)&&mi(a,o)&&(Va(e)||Wa(e))}function gi(e){return"function"!=typeof e.constructor||xi(e)?{}:$n(qe(e))}function vi(e){return Va(e)||Wa(e)||!!(ot&&e&&e[ot])}function mi(e,t){var n=typeof e;return!!(t=null==t?f:t)&&("number"==n||"symbol"!=n&&me.test(e))&&e>-1&&e%1==0&&e<t}function yi(e,t,n){if(!tl(n))return!1;var r=typeof t;return!!("number"==r?Ka(n)&&mi(t,n.length):"string"==r&&t in n)&&Ua(n[t],e)}function bi(e,t){if(Va(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!sl(e))||J.test(e)||!Z.test(e)||null!=t&&e in Se(t)}function wi(e){var t=ii(e),n=Fn[t];if("function"!=typeof n||!(t in Hn.prototype))return!1;if(e===n)return!0;var r=oi(n);return!!r&&e===r[0]}(En&&hi(new En(new ArrayBuffer(1)))!=A||Sn&&hi(new Sn)!=x||kn&&hi(kn.resolve())!=k||Cn&&hi(new Cn)!=O||On&&hi(new On)!=R)&&(hi=function(e){var t=Sr(e),n=t==S?e.constructor:o,r=n?Fi(n):"";if(r)switch(r){case jn:return A;case An:return x;case Ln:return k;case In:return O;case Dn:return R}return t});var _i=je?Za:mu;function xi(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Re)}function Ei(e){return e==e&&!tl(e)}function Si(e,t){return function(n){return null!=n&&n[e]===t&&(t!==o||e in Se(n))}}function ki(e,t,n){return t=mn(t===o?e.length-1:t,0),function(){for(var o=arguments,i=-1,a=mn(o.length-t,0),l=r(a);++i<a;)l[i]=o[t+i];i=-1;for(var u=r(t+1);++i<t;)u[i]=o[i];return u[t]=n(l),mt(e,this,u)}}function Ci(e,t){return t.length<2?e:xr(e,to(t,0,-1))}function Oi(e,t){for(var n=e.length,r=yn(t.length,n),i=Po(e);r--;){var a=t[r];e[r]=mi(a,n)?i[a]:o}return e}function Pi(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var Ti=Li(Zr),Ri=zt||function(e,t){return it.setTimeout(e,t)},ji=Li(Jr);function Ai(e,t,n){var r=t+"";return ji(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(ie,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return bt(p,(function(n){var r="_."+n[0];t&n[1]&&!Et(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(ae);return t?t[1].split(le):[]}(r),n)))}function Li(e){var t=0,n=0;return function(){var r=bn(),i=16-(r-n);if(n=r,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(o,arguments)}}function Ii(e,t){var n=-1,r=e.length,i=r-1;for(t=t===o?r:t;++n<t;){var a=qr(n,i),l=e[a];e[a]=e[n],e[n]=l}return e.length=t,e}var Di,Ni,Mi=(Di=Da((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(ee,(function(e,n,r,o){t.push(r?o.replace(ce,"$1"):n||e)})),t}),(function(e){return 500===Ni.size&&Ni.clear(),e})),Ni=Di.cache,Di);function zi(e){if("string"==typeof e||sl(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Fi(e){if(null!=e){try{return Ae.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function $i(e){if(e instanceof Hn)return e.clone();var t=new Bn(e.__wrapped__,e.__chain__);return t.__actions__=Po(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Ui=Xr((function(e,t){return Xa(e)?cr(e,vr(t,1,Xa,!0)):[]})),Bi=Xr((function(e,t){var n=Qi(t);return Xa(n)&&(n=o),Xa(e)?cr(e,vr(t,1,Xa,!0),li(n,2)):[]})),Hi=Xr((function(e,t){var n=Qi(t);return Xa(n)&&(n=o),Xa(e)?cr(e,vr(t,1,Xa,!0),o,n):[]}));function Wi(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:gl(n);return o<0&&(o=mn(r+o,0)),At(e,li(t,3),o)}function Vi(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r-1;return n!==o&&(i=gl(n),i=n<0?mn(r+i,0):yn(i,r-1)),At(e,li(t,3),i,!0)}function qi(e){return null!=e&&e.length?vr(e,1):[]}function Ki(e){return e&&e.length?e[0]:o}var Xi=Xr((function(e){var t=kt(e,vo);return t.length&&t[0]===e[0]?Pr(t):[]})),Gi=Xr((function(e){var t=Qi(e),n=kt(e,vo);return t===Qi(n)?t=o:n.pop(),n.length&&n[0]===e[0]?Pr(n,li(t,2)):[]})),Yi=Xr((function(e){var t=Qi(e),n=kt(e,vo);return(t="function"==typeof t?t:o)&&n.pop(),n.length&&n[0]===e[0]?Pr(n,o,t):[]}));function Qi(e){var t=null==e?0:e.length;return t?e[t-1]:o}var Zi=Xr(Ji);function Ji(e,t){return e&&e.length&&t&&t.length?Wr(e,t):e}var ea=ti((function(e,t){var n=null==e?0:e.length,r=ir(e,t);return Vr(e,kt(t,(function(e){return mi(e,n)?+e:e})).sort(ko)),r}));function ta(e){return null==e?e:xn.call(e)}var na=Xr((function(e){return uo(vr(e,1,Xa,!0))})),ra=Xr((function(e){var t=Qi(e);return Xa(t)&&(t=o),uo(vr(e,1,Xa,!0),li(t,2))})),oa=Xr((function(e){var t=Qi(e);return t="function"==typeof t?t:o,uo(vr(e,1,Xa,!0),o,t)}));function ia(e){if(!e||!e.length)return[];var t=0;return e=xt(e,(function(e){if(Xa(e))return t=mn(e.length,t),!0})),Ut(t,(function(t){return kt(e,Mt(t))}))}function aa(e,t){if(!e||!e.length)return[];var n=ia(e);return null==t?n:kt(n,(function(e){return mt(t,o,e)}))}var la=Xr((function(e,t){return Xa(e)?cr(e,t):[]})),ua=Xr((function(e){return po(xt(e,Xa))})),sa=Xr((function(e){var t=Qi(e);return Xa(t)&&(t=o),po(xt(e,Xa),li(t,2))})),ca=Xr((function(e){var t=Qi(e);return t="function"==typeof t?t:o,po(xt(e,Xa),o,t)})),fa=Xr(ia),da=Xr((function(e){var t=e.length,n=t>1?e[t-1]:o;return n="function"==typeof n?(e.pop(),n):o,aa(e,n)}));function ha(e){var t=Fn(e);return t.__chain__=!0,t}function pa(e,t){return t(e)}var ga=ti((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,i=function(t){return ir(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Hn&&mi(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:pa,args:[i],thisArg:o}),new Bn(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(o),e}))):this.thru(i)})),va=Ro((function(e,t,n){Le.call(e,n)?++e[n]:or(e,n,1)})),ma=Mo(Wi),ya=Mo(Vi);function ba(e,t){return(Va(e)?bt:fr)(e,li(t,3))}function wa(e,t){return(Va(e)?wt:dr)(e,li(t,3))}var _a=Ro((function(e,t,n){Le.call(e,n)?e[n].push(t):or(e,n,[t])})),xa=Xr((function(e,t,n){var o=-1,i="function"==typeof t,a=Ka(e)?r(e.length):[];return fr(e,(function(e){a[++o]=i?mt(t,e,n):Tr(e,t,n)})),a})),Ea=Ro((function(e,t,n){or(e,n,t)}));function Sa(e,t){return(Va(e)?kt:Mr)(e,li(t,3))}var ka=Ro((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]})),Ca=Xr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&yi(e,t[0],t[1])?t=[]:n>2&&yi(t[0],t[1],t[2])&&(t=[t[0]]),Br(e,vr(t,1),[])})),Oa=Rt||function(){return it.Date.now()};function Pa(e,t,n){return t=n?o:t,t=e&&null==t?e.length:t,Yo(e,s,o,o,o,o,t)}function Ta(e,t){var n;if("function"!=typeof t)throw new Oe(i);return e=gl(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=o),n}}var Ra=Xr((function(e,t,n){var r=1;if(n.length){var o=tn(n,ai(Ra));r|=u}return Yo(e,r,t,n,o)})),ja=Xr((function(e,t,n){var r=3;if(n.length){var o=tn(n,ai(ja));r|=u}return Yo(t,r,e,n,o)}));function Aa(e,t,n){var r,a,l,u,s,c,f=0,d=!1,h=!1,p=!0;if("function"!=typeof e)throw new Oe(i);function g(t){var n=r,i=a;return r=a=o,f=t,u=e.apply(i,n)}function v(e){return f=e,s=Ri(y,t),d?g(e):u}function m(e){var n=e-c;return c===o||n>=t||n<0||h&&e-f>=l}function y(){var e=Oa();if(m(e))return b(e);s=Ri(y,function(e){var n=t-(e-c);return h?yn(n,l-(e-f)):n}(e))}function b(e){return s=o,p&&r?g(e):(r=a=o,u)}function w(){var e=Oa(),n=m(e);if(r=arguments,a=this,c=e,n){if(s===o)return v(c);if(h)return _o(s),s=Ri(y,t),g(c)}return s===o&&(s=Ri(y,t)),u}return t=ml(t)||0,tl(n)&&(d=!!n.leading,l=(h="maxWait"in n)?mn(ml(n.maxWait)||0,t):l,p="trailing"in n?!!n.trailing:p),w.cancel=function(){s!==o&&_o(s),f=0,r=c=a=s=o},w.flush=function(){return s===o?u:b(Oa())},w}var La=Xr((function(e,t){return sr(e,1,t)})),Ia=Xr((function(e,t,n){return sr(e,ml(t)||0,n)}));function Da(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Oe(i);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(Da.Cache||qn),n}function Na(e){if("function"!=typeof e)throw new Oe(i);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Da.Cache=qn;var Ma=bo((function(e,t){var n=(t=1==t.length&&Va(t[0])?kt(t[0],Ht(li())):kt(vr(t,1),Ht(li()))).length;return Xr((function(r){for(var o=-1,i=yn(r.length,n);++o<i;)r[o]=t[o].call(this,r[o]);return mt(e,this,r)}))})),za=Xr((function(e,t){var n=tn(t,ai(za));return Yo(e,u,o,t,n)})),Fa=Xr((function(e,t){var n=tn(t,ai(Fa));return Yo(e,64,o,t,n)})),$a=ti((function(e,t){return Yo(e,256,o,o,o,t)}));function Ua(e,t){return e===t||e!=e&&t!=t}var Ba=Vo(kr),Ha=Vo((function(e,t){return e>=t})),Wa=Rr(function(){return arguments}())?Rr:function(e){return nl(e)&&Le.call(e,"callee")&&!et.call(e,"callee")},Va=r.isArray,qa=ft?Ht(ft):function(e){return nl(e)&&Sr(e)==j};function Ka(e){return null!=e&&el(e.length)&&!Za(e)}function Xa(e){return nl(e)&&Ka(e)}var Ga=hn||mu,Ya=dt?Ht(dt):function(e){return nl(e)&&Sr(e)==y};function Qa(e){if(!nl(e))return!1;var t=Sr(e);return t==b||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!il(e)}function Za(e){if(!tl(e))return!1;var t=Sr(e);return t==w||t==_||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Ja(e){return"number"==typeof e&&e==gl(e)}function el(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=f}function tl(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function nl(e){return null!=e&&"object"==typeof e}var rl=ht?Ht(ht):function(e){return nl(e)&&hi(e)==x};function ol(e){return"number"==typeof e||nl(e)&&Sr(e)==E}function il(e){if(!nl(e)||Sr(e)!=S)return!1;var t=qe(e);if(null===t)return!0;var n=Le.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Ae.call(n)==Me}var al=pt?Ht(pt):function(e){return nl(e)&&Sr(e)==C},ll=gt?Ht(gt):function(e){return nl(e)&&hi(e)==O};function ul(e){return"string"==typeof e||!Va(e)&&nl(e)&&Sr(e)==P}function sl(e){return"symbol"==typeof e||nl(e)&&Sr(e)==T}var cl=vt?Ht(vt):function(e){return nl(e)&&el(e.length)&&!!Ze[Sr(e)]},fl=Vo(Nr),dl=Vo((function(e,t){return e<=t}));function hl(e){if(!e)return[];if(Ka(e))return ul(e)?an(e):Po(e);if(at&&e[at])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[at]());var t=hi(e);return(t==x?Jt:t==O?nn:Ul)(e)}function pl(e){return e?(e=ml(e))===c||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function gl(e){var t=pl(e),n=t%1;return t==t?n?t-n:t:0}function vl(e){return e?ar(gl(e),0,h):0}function ml(e){if("number"==typeof e)return e;if(sl(e))return d;if(tl(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=tl(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Bt(e);var n=pe.test(e);return n||ve.test(e)?nt(e.slice(2),n?2:8):he.test(e)?d:+e}function yl(e){return To(e,Ll(e))}function bl(e){return null==e?"":lo(e)}var wl=jo((function(e,t){if(xi(t)||Ka(t))To(t,Al(t),e);else for(var n in t)Le.call(t,n)&&er(e,n,t[n])})),_l=jo((function(e,t){To(t,Ll(t),e)})),xl=jo((function(e,t,n,r){To(t,Ll(t),e,r)})),El=jo((function(e,t,n,r){To(t,Al(t),e,r)})),Sl=ti(ir),kl=Xr((function(e,t){e=Se(e);var n=-1,r=t.length,i=r>2?t[2]:o;for(i&&yi(t[0],t[1],i)&&(r=1);++n<r;)for(var a=t[n],l=Ll(a),u=-1,s=l.length;++u<s;){var c=l[u],f=e[c];(f===o||Ua(f,Re[c])&&!Le.call(e,c))&&(e[c]=a[c])}return e})),Cl=Xr((function(e){return e.push(o,Zo),mt(Dl,o,e)}));function Ol(e,t,n){var r=null==e?o:xr(e,t);return r===o?n:r}function Pl(e,t){return null!=e&&pi(e,t,Or)}var Tl=$o((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Ne.call(t)),e[t]=n}),tu(ou)),Rl=$o((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=Ne.call(t)),Le.call(e,t)?e[t].push(n):e[t]=[n]}),li),jl=Xr(Tr);function Al(e){return Ka(e)?Gn(e):Dr(e)}function Ll(e){return Ka(e)?Gn(e,!0):function(e){if(!tl(e))return function(e){var t=[];if(null!=e)for(var n in Se(e))t.push(n);return t}(e);var t=xi(e),n=[];for(var r in e)("constructor"!=r||!t&&Le.call(e,r))&&n.push(r);return n}(e)}var Il=jo((function(e,t,n){$r(e,t,n)})),Dl=jo((function(e,t,n,r){$r(e,t,n,r)})),Nl=ti((function(e,t){var n={};if(null==e)return n;var r=!1;t=kt(t,(function(t){return t=yo(t,e),r||(r=t.length>1),t})),To(e,ri(e),n),r&&(n=lr(n,7,Jo));for(var o=t.length;o--;)so(n,t[o]);return n})),Ml=ti((function(e,t){return null==e?{}:function(e,t){return Hr(e,t,(function(t,n){return Pl(e,n)}))}(e,t)}));function zl(e,t){if(null==e)return{};var n=kt(ri(e),(function(e){return[e]}));return t=li(t),Hr(e,n,(function(e,n){return t(e,n[0])}))}var Fl=Go(Al),$l=Go(Ll);function Ul(e){return null==e?[]:Wt(e,Al(e))}var Bl=Do((function(e,t,n){return t=t.toLowerCase(),e+(n?Hl(t):t)}));function Hl(e){return Ql(bl(e).toLowerCase())}function Wl(e){return(e=bl(e))&&e.replace(ye,Gt).replace(Ve,"")}var Vl=Do((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),ql=Do((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Kl=Io("toLowerCase"),Xl=Do((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()})),Gl=Do((function(e,t,n){return e+(n?" ":"")+Ql(t)})),Yl=Do((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Ql=Io("toUpperCase");function Zl(e,t,n){return e=bl(e),(t=n?o:t)===o?function(e){return Ge.test(e)}(e)?function(e){return e.match(Ke)||[]}(e):function(e){return e.match(ue)||[]}(e):e.match(t)||[]}var Jl=Xr((function(e,t){try{return mt(e,o,t)}catch(e){return Qa(e)?e:new _e(e)}})),eu=ti((function(e,t){return bt(t,(function(t){t=zi(t),or(e,t,Ra(e[t],e))})),e}));function tu(e){return function(){return e}}var nu=zo(),ru=zo(!0);function ou(e){return e}function iu(e){return Ir("function"==typeof e?e:lr(e,1))}var au=Xr((function(e,t){return function(n){return Tr(n,e,t)}})),lu=Xr((function(e,t){return function(n){return Tr(e,n,t)}}));function uu(e,t,n){var r=Al(t),o=_r(t,r);null!=n||tl(t)&&(o.length||!r.length)||(n=t,t=e,e=this,o=_r(t,Al(t)));var i=!(tl(n)&&"chain"in n&&!n.chain),a=Za(e);return bt(o,(function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(i||t){var n=e(this.__wrapped__),o=n.__actions__=Po(this.__actions__);return o.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Ct([this.value()],arguments))})})),e}function su(){}var cu=Bo(kt),fu=Bo(_t),du=Bo(Tt);function hu(e){return bi(e)?Mt(zi(e)):function(e){return function(t){return xr(t,e)}}(e)}var pu=Wo(),gu=Wo(!0);function vu(){return[]}function mu(){return!1}var yu,bu=Uo((function(e,t){return e+t}),0),wu=Ko("ceil"),_u=Uo((function(e,t){return e/t}),1),xu=Ko("floor"),Eu=Uo((function(e,t){return e*t}),1),Su=Ko("round"),ku=Uo((function(e,t){return e-t}),0);return Fn.after=function(e,t){if("function"!=typeof t)throw new Oe(i);return e=gl(e),function(){if(--e<1)return t.apply(this,arguments)}},Fn.ary=Pa,Fn.assign=wl,Fn.assignIn=_l,Fn.assignInWith=xl,Fn.assignWith=El,Fn.at=Sl,Fn.before=Ta,Fn.bind=Ra,Fn.bindAll=eu,Fn.bindKey=ja,Fn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Va(e)?e:[e]},Fn.chain=ha,Fn.chunk=function(e,t,n){t=(n?yi(e,t,n):t===o)?1:mn(gl(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var a=0,l=0,u=r(cn(i/t));a<i;)u[l++]=to(e,a,a+=t);return u},Fn.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,o=[];++t<n;){var i=e[t];i&&(o[r++]=i)}return o},Fn.concat=function(){var e=arguments.length;if(!e)return[];for(var t=r(e-1),n=arguments[0],o=e;o--;)t[o-1]=arguments[o];return Ct(Va(n)?Po(n):[n],vr(t,1))},Fn.cond=function(e){var t=null==e?0:e.length,n=li();return e=t?kt(e,(function(e){if("function"!=typeof e[1])throw new Oe(i);return[n(e[0]),e[1]]})):[],Xr((function(n){for(var r=-1;++r<t;){var o=e[r];if(mt(o[0],this,n))return mt(o[1],this,n)}}))},Fn.conforms=function(e){return function(e){var t=Al(e);return function(n){return ur(n,e,t)}}(lr(e,1))},Fn.constant=tu,Fn.countBy=va,Fn.create=function(e,t){var n=$n(e);return null==t?n:rr(n,t)},Fn.curry=function e(t,n,r){var i=Yo(t,8,o,o,o,o,o,n=r?o:n);return i.placeholder=e.placeholder,i},Fn.curryRight=function e(t,n,r){var i=Yo(t,16,o,o,o,o,o,n=r?o:n);return i.placeholder=e.placeholder,i},Fn.debounce=Aa,Fn.defaults=kl,Fn.defaultsDeep=Cl,Fn.defer=La,Fn.delay=Ia,Fn.difference=Ui,Fn.differenceBy=Bi,Fn.differenceWith=Hi,Fn.drop=function(e,t,n){var r=null==e?0:e.length;return r?to(e,(t=n||t===o?1:gl(t))<0?0:t,r):[]},Fn.dropRight=function(e,t,n){var r=null==e?0:e.length;return r?to(e,0,(t=r-(t=n||t===o?1:gl(t)))<0?0:t):[]},Fn.dropRightWhile=function(e,t){return e&&e.length?fo(e,li(t,3),!0,!0):[]},Fn.dropWhile=function(e,t){return e&&e.length?fo(e,li(t,3),!0):[]},Fn.fill=function(e,t,n,r){var i=null==e?0:e.length;return i?(n&&"number"!=typeof n&&yi(e,t,n)&&(n=0,r=i),function(e,t,n,r){var i=e.length;for((n=gl(n))<0&&(n=-n>i?0:i+n),(r=r===o||r>i?i:gl(r))<0&&(r+=i),r=n>r?0:vl(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},Fn.filter=function(e,t){return(Va(e)?xt:gr)(e,li(t,3))},Fn.flatMap=function(e,t){return vr(Sa(e,t),1)},Fn.flatMapDeep=function(e,t){return vr(Sa(e,t),c)},Fn.flatMapDepth=function(e,t,n){return n=n===o?1:gl(n),vr(Sa(e,t),n)},Fn.flatten=qi,Fn.flattenDeep=function(e){return null!=e&&e.length?vr(e,c):[]},Fn.flattenDepth=function(e,t){return null!=e&&e.length?vr(e,t=t===o?1:gl(t)):[]},Fn.flip=function(e){return Yo(e,512)},Fn.flow=nu,Fn.flowRight=ru,Fn.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var o=e[t];r[o[0]]=o[1]}return r},Fn.functions=function(e){return null==e?[]:_r(e,Al(e))},Fn.functionsIn=function(e){return null==e?[]:_r(e,Ll(e))},Fn.groupBy=_a,Fn.initial=function(e){return null!=e&&e.length?to(e,0,-1):[]},Fn.intersection=Xi,Fn.intersectionBy=Gi,Fn.intersectionWith=Yi,Fn.invert=Tl,Fn.invertBy=Rl,Fn.invokeMap=xa,Fn.iteratee=iu,Fn.keyBy=Ea,Fn.keys=Al,Fn.keysIn=Ll,Fn.map=Sa,Fn.mapKeys=function(e,t){var n={};return t=li(t,3),br(e,(function(e,r,o){or(n,t(e,r,o),e)})),n},Fn.mapValues=function(e,t){var n={};return t=li(t,3),br(e,(function(e,r,o){or(n,r,t(e,r,o))})),n},Fn.matches=function(e){return zr(lr(e,1))},Fn.matchesProperty=function(e,t){return Fr(e,lr(t,1))},Fn.memoize=Da,Fn.merge=Il,Fn.mergeWith=Dl,Fn.method=au,Fn.methodOf=lu,Fn.mixin=uu,Fn.negate=Na,Fn.nthArg=function(e){return e=gl(e),Xr((function(t){return Ur(t,e)}))},Fn.omit=Nl,Fn.omitBy=function(e,t){return zl(e,Na(li(t)))},Fn.once=function(e){return Ta(2,e)},Fn.orderBy=function(e,t,n,r){return null==e?[]:(Va(t)||(t=null==t?[]:[t]),Va(n=r?o:n)||(n=null==n?[]:[n]),Br(e,t,n))},Fn.over=cu,Fn.overArgs=Ma,Fn.overEvery=fu,Fn.overSome=du,Fn.partial=za,Fn.partialRight=Fa,Fn.partition=ka,Fn.pick=Ml,Fn.pickBy=zl,Fn.property=hu,Fn.propertyOf=function(e){return function(t){return null==e?o:xr(e,t)}},Fn.pull=Zi,Fn.pullAll=Ji,Fn.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Wr(e,t,li(n,2)):e},Fn.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?Wr(e,t,o,n):e},Fn.pullAt=ea,Fn.range=pu,Fn.rangeRight=gu,Fn.rearg=$a,Fn.reject=function(e,t){return(Va(e)?xt:gr)(e,Na(li(t,3)))},Fn.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,o=[],i=e.length;for(t=li(t,3);++r<i;){var a=e[r];t(a,r,e)&&(n.push(a),o.push(r))}return Vr(e,o),n},Fn.rest=function(e,t){if("function"!=typeof e)throw new Oe(i);return Xr(e,t=t===o?t:gl(t))},Fn.reverse=ta,Fn.sampleSize=function(e,t,n){return t=(n?yi(e,t,n):t===o)?1:gl(t),(Va(e)?Qn:Yr)(e,t)},Fn.set=function(e,t,n){return null==e?e:Qr(e,t,n)},Fn.setWith=function(e,t,n,r){return r="function"==typeof r?r:o,null==e?e:Qr(e,t,n,r)},Fn.shuffle=function(e){return(Va(e)?Zn:eo)(e)},Fn.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&yi(e,t,n)?(t=0,n=r):(t=null==t?0:gl(t),n=n===o?r:gl(n)),to(e,t,n)):[]},Fn.sortBy=Ca,Fn.sortedUniq=function(e){return e&&e.length?io(e):[]},Fn.sortedUniqBy=function(e,t){return e&&e.length?io(e,li(t,2)):[]},Fn.split=function(e,t,n){return n&&"number"!=typeof n&&yi(e,t,n)&&(t=n=o),(n=n===o?h:n>>>0)?(e=bl(e))&&("string"==typeof t||null!=t&&!al(t))&&!(t=lo(t))&&Zt(e)?wo(an(e),0,n):e.split(t,n):[]},Fn.spread=function(e,t){if("function"!=typeof e)throw new Oe(i);return t=null==t?0:mn(gl(t),0),Xr((function(n){var r=n[t],o=wo(n,0,t);return r&&Ct(o,r),mt(e,this,o)}))},Fn.tail=function(e){var t=null==e?0:e.length;return t?to(e,1,t):[]},Fn.take=function(e,t,n){return e&&e.length?to(e,0,(t=n||t===o?1:gl(t))<0?0:t):[]},Fn.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?to(e,(t=r-(t=n||t===o?1:gl(t)))<0?0:t,r):[]},Fn.takeRightWhile=function(e,t){return e&&e.length?fo(e,li(t,3),!1,!0):[]},Fn.takeWhile=function(e,t){return e&&e.length?fo(e,li(t,3)):[]},Fn.tap=function(e,t){return t(e),e},Fn.throttle=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new Oe(i);return tl(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Aa(e,t,{leading:r,maxWait:t,trailing:o})},Fn.thru=pa,Fn.toArray=hl,Fn.toPairs=Fl,Fn.toPairsIn=$l,Fn.toPath=function(e){return Va(e)?kt(e,zi):sl(e)?[e]:Po(Mi(bl(e)))},Fn.toPlainObject=yl,Fn.transform=function(e,t,n){var r=Va(e),o=r||Ga(e)||cl(e);if(t=li(t,4),null==n){var i=e&&e.constructor;n=o?r?new i:[]:tl(e)&&Za(i)?$n(qe(e)):{}}return(o?bt:br)(e,(function(e,r,o){return t(n,e,r,o)})),n},Fn.unary=function(e){return Pa(e,1)},Fn.union=na,Fn.unionBy=ra,Fn.unionWith=oa,Fn.uniq=function(e){return e&&e.length?uo(e):[]},Fn.uniqBy=function(e,t){return e&&e.length?uo(e,li(t,2)):[]},Fn.uniqWith=function(e,t){return t="function"==typeof t?t:o,e&&e.length?uo(e,o,t):[]},Fn.unset=function(e,t){return null==e||so(e,t)},Fn.unzip=ia,Fn.unzipWith=aa,Fn.update=function(e,t,n){return null==e?e:co(e,t,mo(n))},Fn.updateWith=function(e,t,n,r){return r="function"==typeof r?r:o,null==e?e:co(e,t,mo(n),r)},Fn.values=Ul,Fn.valuesIn=function(e){return null==e?[]:Wt(e,Ll(e))},Fn.without=la,Fn.words=Zl,Fn.wrap=function(e,t){return za(mo(t),e)},Fn.xor=ua,Fn.xorBy=sa,Fn.xorWith=ca,Fn.zip=fa,Fn.zipObject=function(e,t){return go(e||[],t||[],er)},Fn.zipObjectDeep=function(e,t){return go(e||[],t||[],Qr)},Fn.zipWith=da,Fn.entries=Fl,Fn.entriesIn=$l,Fn.extend=_l,Fn.extendWith=xl,uu(Fn,Fn),Fn.add=bu,Fn.attempt=Jl,Fn.camelCase=Bl,Fn.capitalize=Hl,Fn.ceil=wu,Fn.clamp=function(e,t,n){return n===o&&(n=t,t=o),n!==o&&(n=(n=ml(n))==n?n:0),t!==o&&(t=(t=ml(t))==t?t:0),ar(ml(e),t,n)},Fn.clone=function(e){return lr(e,4)},Fn.cloneDeep=function(e){return lr(e,5)},Fn.cloneDeepWith=function(e,t){return lr(e,5,t="function"==typeof t?t:o)},Fn.cloneWith=function(e,t){return lr(e,4,t="function"==typeof t?t:o)},Fn.conformsTo=function(e,t){return null==t||ur(e,t,Al(t))},Fn.deburr=Wl,Fn.defaultTo=function(e,t){return null==e||e!=e?t:e},Fn.divide=_u,Fn.endsWith=function(e,t,n){e=bl(e),t=lo(t);var r=e.length,i=n=n===o?r:ar(gl(n),0,r);return(n-=t.length)>=0&&e.slice(n,i)==t},Fn.eq=Ua,Fn.escape=function(e){return(e=bl(e))&&X.test(e)?e.replace(q,Yt):e},Fn.escapeRegExp=function(e){return(e=bl(e))&&ne.test(e)?e.replace(te,"\\$&"):e},Fn.every=function(e,t,n){var r=Va(e)?_t:hr;return n&&yi(e,t,n)&&(t=o),r(e,li(t,3))},Fn.find=ma,Fn.findIndex=Wi,Fn.findKey=function(e,t){return jt(e,li(t,3),br)},Fn.findLast=ya,Fn.findLastIndex=Vi,Fn.findLastKey=function(e,t){return jt(e,li(t,3),wr)},Fn.floor=xu,Fn.forEach=ba,Fn.forEachRight=wa,Fn.forIn=function(e,t){return null==e?e:mr(e,li(t,3),Ll)},Fn.forInRight=function(e,t){return null==e?e:yr(e,li(t,3),Ll)},Fn.forOwn=function(e,t){return e&&br(e,li(t,3))},Fn.forOwnRight=function(e,t){return e&&wr(e,li(t,3))},Fn.get=Ol,Fn.gt=Ba,Fn.gte=Ha,Fn.has=function(e,t){return null!=e&&pi(e,t,Cr)},Fn.hasIn=Pl,Fn.head=Ki,Fn.identity=ou,Fn.includes=function(e,t,n,r){e=Ka(e)?e:Ul(e),n=n&&!r?gl(n):0;var o=e.length;return n<0&&(n=mn(o+n,0)),ul(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&Lt(e,t,n)>-1},Fn.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:gl(n);return o<0&&(o=mn(r+o,0)),Lt(e,t,o)},Fn.inRange=function(e,t,n){return t=pl(t),n===o?(n=t,t=0):n=pl(n),function(e,t,n){return e>=yn(t,n)&&e<mn(t,n)}(e=ml(e),t,n)},Fn.invoke=jl,Fn.isArguments=Wa,Fn.isArray=Va,Fn.isArrayBuffer=qa,Fn.isArrayLike=Ka,Fn.isArrayLikeObject=Xa,Fn.isBoolean=function(e){return!0===e||!1===e||nl(e)&&Sr(e)==m},Fn.isBuffer=Ga,Fn.isDate=Ya,Fn.isElement=function(e){return nl(e)&&1===e.nodeType&&!il(e)},Fn.isEmpty=function(e){if(null==e)return!0;if(Ka(e)&&(Va(e)||"string"==typeof e||"function"==typeof e.splice||Ga(e)||cl(e)||Wa(e)))return!e.length;var t=hi(e);if(t==x||t==O)return!e.size;if(xi(e))return!Dr(e).length;for(var n in e)if(Le.call(e,n))return!1;return!0},Fn.isEqual=function(e,t){return jr(e,t)},Fn.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:o)?n(e,t):o;return r===o?jr(e,t,o,n):!!r},Fn.isError=Qa,Fn.isFinite=function(e){return"number"==typeof e&&pn(e)},Fn.isFunction=Za,Fn.isInteger=Ja,Fn.isLength=el,Fn.isMap=rl,Fn.isMatch=function(e,t){return e===t||Ar(e,t,si(t))},Fn.isMatchWith=function(e,t,n){return n="function"==typeof n?n:o,Ar(e,t,si(t),n)},Fn.isNaN=function(e){return ol(e)&&e!=+e},Fn.isNative=function(e){if(_i(e))throw new _e("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Lr(e)},Fn.isNil=function(e){return null==e},Fn.isNull=function(e){return null===e},Fn.isNumber=ol,Fn.isObject=tl,Fn.isObjectLike=nl,Fn.isPlainObject=il,Fn.isRegExp=al,Fn.isSafeInteger=function(e){return Ja(e)&&e>=-9007199254740991&&e<=f},Fn.isSet=ll,Fn.isString=ul,Fn.isSymbol=sl,Fn.isTypedArray=cl,Fn.isUndefined=function(e){return e===o},Fn.isWeakMap=function(e){return nl(e)&&hi(e)==R},Fn.isWeakSet=function(e){return nl(e)&&"[object WeakSet]"==Sr(e)},Fn.join=function(e,t){return null==e?"":gn.call(e,t)},Fn.kebabCase=Vl,Fn.last=Qi,Fn.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r;return n!==o&&(i=(i=gl(n))<0?mn(r+i,0):yn(i,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,i):At(e,Dt,i,!0)},Fn.lowerCase=ql,Fn.lowerFirst=Kl,Fn.lt=fl,Fn.lte=dl,Fn.max=function(e){return e&&e.length?pr(e,ou,kr):o},Fn.maxBy=function(e,t){return e&&e.length?pr(e,li(t,2),kr):o},Fn.mean=function(e){return Nt(e,ou)},Fn.meanBy=function(e,t){return Nt(e,li(t,2))},Fn.min=function(e){return e&&e.length?pr(e,ou,Nr):o},Fn.minBy=function(e,t){return e&&e.length?pr(e,li(t,2),Nr):o},Fn.stubArray=vu,Fn.stubFalse=mu,Fn.stubObject=function(){return{}},Fn.stubString=function(){return""},Fn.stubTrue=function(){return!0},Fn.multiply=Eu,Fn.nth=function(e,t){return e&&e.length?Ur(e,gl(t)):o},Fn.noConflict=function(){return it._===this&&(it._=ze),this},Fn.noop=su,Fn.now=Oa,Fn.pad=function(e,t,n){e=bl(e);var r=(t=gl(t))?on(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return Ho(fn(o),n)+e+Ho(cn(o),n)},Fn.padEnd=function(e,t,n){e=bl(e);var r=(t=gl(t))?on(e):0;return t&&r<t?e+Ho(t-r,n):e},Fn.padStart=function(e,t,n){e=bl(e);var r=(t=gl(t))?on(e):0;return t&&r<t?Ho(t-r,n)+e:e},Fn.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),wn(bl(e).replace(re,""),t||0)},Fn.random=function(e,t,n){if(n&&"boolean"!=typeof n&&yi(e,t,n)&&(t=n=o),n===o&&("boolean"==typeof t?(n=t,t=o):"boolean"==typeof e&&(n=e,e=o)),e===o&&t===o?(e=0,t=1):(e=pl(e),t===o?(t=e,e=0):t=pl(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var i=_n();return yn(e+i*(t-e+tt("1e-"+((i+"").length-1))),t)}return qr(e,t)},Fn.reduce=function(e,t,n){var r=Va(e)?Ot:Ft,o=arguments.length<3;return r(e,li(t,4),n,o,fr)},Fn.reduceRight=function(e,t,n){var r=Va(e)?Pt:Ft,o=arguments.length<3;return r(e,li(t,4),n,o,dr)},Fn.repeat=function(e,t,n){return t=(n?yi(e,t,n):t===o)?1:gl(t),Kr(bl(e),t)},Fn.replace=function(){var e=arguments,t=bl(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Fn.result=function(e,t,n){var r=-1,i=(t=yo(t,e)).length;for(i||(i=1,e=o);++r<i;){var a=null==e?o:e[zi(t[r])];a===o&&(r=i,a=n),e=Za(a)?a.call(e):a}return e},Fn.round=Su,Fn.runInContext=e,Fn.sample=function(e){return(Va(e)?Yn:Gr)(e)},Fn.size=function(e){if(null==e)return 0;if(Ka(e))return ul(e)?on(e):e.length;var t=hi(e);return t==x||t==O?e.size:Dr(e).length},Fn.snakeCase=Xl,Fn.some=function(e,t,n){var r=Va(e)?Tt:no;return n&&yi(e,t,n)&&(t=o),r(e,li(t,3))},Fn.sortedIndex=function(e,t){return ro(e,t)},Fn.sortedIndexBy=function(e,t,n){return oo(e,t,li(n,2))},Fn.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=ro(e,t);if(r<n&&Ua(e[r],t))return r}return-1},Fn.sortedLastIndex=function(e,t){return ro(e,t,!0)},Fn.sortedLastIndexBy=function(e,t,n){return oo(e,t,li(n,2),!0)},Fn.sortedLastIndexOf=function(e,t){if(null!=e&&e.length){var n=ro(e,t,!0)-1;if(Ua(e[n],t))return n}return-1},Fn.startCase=Gl,Fn.startsWith=function(e,t,n){return e=bl(e),n=null==n?0:ar(gl(n),0,e.length),t=lo(t),e.slice(n,n+t.length)==t},Fn.subtract=ku,Fn.sum=function(e){return e&&e.length?$t(e,ou):0},Fn.sumBy=function(e,t){return e&&e.length?$t(e,li(t,2)):0},Fn.template=function(e,t,n){var r=Fn.templateSettings;n&&yi(e,t,n)&&(t=o),e=bl(e),t=xl({},t,r,Qo);var i,a,l=xl({},t.imports,r.imports,Qo),u=Al(l),s=Wt(l,u),c=0,f=t.interpolate||be,d="__p += '",h=ke((t.escape||be).source+"|"+f.source+"|"+(f===Q?fe:be).source+"|"+(t.evaluate||be).source+"|$","g"),p="//# sourceURL="+(Le.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Qe+"]")+"\n";e.replace(h,(function(t,n,r,o,l,u){return r||(r=o),d+=e.slice(c,u).replace(we,Qt),n&&(i=!0,d+="' +\n__e("+n+") +\n'"),l&&(a=!0,d+="';\n"+l+";\n__p += '"),r&&(d+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),c=u+t.length,t})),d+="';\n";var g=Le.call(t,"variable")&&t.variable;if(g){if(se.test(g))throw new _e("Invalid `variable` option passed into `_.template`")}else d="with (obj) {\n"+d+"\n}\n";d=(a?d.replace(B,""):d).replace(H,"$1").replace(W,"$1;"),d="function("+(g||"obj")+") {\n"+(g?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+d+"return __p\n}";var v=Jl((function(){return xe(u,p+"return "+d).apply(o,s)}));if(v.source=d,Qa(v))throw v;return v},Fn.times=function(e,t){if((e=gl(e))<1||e>f)return[];var n=h,r=yn(e,h);t=li(t),e-=h;for(var o=Ut(r,t);++n<e;)t(n);return o},Fn.toFinite=pl,Fn.toInteger=gl,Fn.toLength=vl,Fn.toLower=function(e){return bl(e).toLowerCase()},Fn.toNumber=ml,Fn.toSafeInteger=function(e){return e?ar(gl(e),-9007199254740991,f):0===e?e:0},Fn.toString=bl,Fn.toUpper=function(e){return bl(e).toUpperCase()},Fn.trim=function(e,t,n){if((e=bl(e))&&(n||t===o))return Bt(e);if(!e||!(t=lo(t)))return e;var r=an(e),i=an(t);return wo(r,qt(r,i),Kt(r,i)+1).join("")},Fn.trimEnd=function(e,t,n){if((e=bl(e))&&(n||t===o))return e.slice(0,ln(e)+1);if(!e||!(t=lo(t)))return e;var r=an(e);return wo(r,0,Kt(r,an(t))+1).join("")},Fn.trimStart=function(e,t,n){if((e=bl(e))&&(n||t===o))return e.replace(re,"");if(!e||!(t=lo(t)))return e;var r=an(e);return wo(r,qt(r,an(t))).join("")},Fn.truncate=function(e,t){var n=30,r="...";if(tl(t)){var i="separator"in t?t.separator:i;n="length"in t?gl(t.length):n,r="omission"in t?lo(t.omission):r}var a=(e=bl(e)).length;if(Zt(e)){var l=an(e);a=l.length}if(n>=a)return e;var u=n-on(r);if(u<1)return r;var s=l?wo(l,0,u).join(""):e.slice(0,u);if(i===o)return s+r;if(l&&(u+=s.length-u),al(i)){if(e.slice(u).search(i)){var c,f=s;for(i.global||(i=ke(i.source,bl(de.exec(i))+"g")),i.lastIndex=0;c=i.exec(f);)var d=c.index;s=s.slice(0,d===o?u:d)}}else if(e.indexOf(lo(i),u)!=u){var h=s.lastIndexOf(i);h>-1&&(s=s.slice(0,h))}return s+r},Fn.unescape=function(e){return(e=bl(e))&&K.test(e)?e.replace(V,un):e},Fn.uniqueId=function(e){var t=++Ie;return bl(e)+t},Fn.upperCase=Yl,Fn.upperFirst=Ql,Fn.each=ba,Fn.eachRight=wa,Fn.first=Ki,uu(Fn,(yu={},br(Fn,(function(e,t){Le.call(Fn.prototype,t)||(yu[t]=e)})),yu),{chain:!1}),Fn.VERSION="4.17.21",bt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Fn[e].placeholder=Fn})),bt(["drop","take"],(function(e,t){Hn.prototype[e]=function(n){n=n===o?1:mn(gl(n),0);var r=this.__filtered__&&!t?new Hn(this):this.clone();return r.__filtered__?r.__takeCount__=yn(n,r.__takeCount__):r.__views__.push({size:yn(n,h),type:e+(r.__dir__<0?"Right":"")}),r},Hn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),bt(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;Hn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:li(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),bt(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Hn.prototype[e]=function(){return this[n](1).value()[0]}})),bt(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Hn.prototype[e]=function(){return this.__filtered__?new Hn(this):this[n](1)}})),Hn.prototype.compact=function(){return this.filter(ou)},Hn.prototype.find=function(e){return this.filter(e).head()},Hn.prototype.findLast=function(e){return this.reverse().find(e)},Hn.prototype.invokeMap=Xr((function(e,t){return"function"==typeof e?new Hn(this):this.map((function(n){return Tr(n,e,t)}))})),Hn.prototype.reject=function(e){return this.filter(Na(li(e)))},Hn.prototype.slice=function(e,t){e=gl(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Hn(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==o&&(n=(t=gl(t))<0?n.dropRight(-t):n.take(t-e)),n)},Hn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Hn.prototype.toArray=function(){return this.take(h)},br(Hn.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),i=Fn[r?"take"+("last"==t?"Right":""):t],a=r||/^find/.test(t);i&&(Fn.prototype[t]=function(){var t=this.__wrapped__,l=r?[1]:arguments,u=t instanceof Hn,s=l[0],c=u||Va(t),f=function(e){var t=i.apply(Fn,Ct([e],l));return r&&d?t[0]:t};c&&n&&"function"==typeof s&&1!=s.length&&(u=c=!1);var d=this.__chain__,h=!!this.__actions__.length,p=a&&!d,g=u&&!h;if(!a&&c){t=g?t:new Hn(this);var v=e.apply(t,l);return v.__actions__.push({func:pa,args:[f],thisArg:o}),new Bn(v,d)}return p&&g?e.apply(this,l):(v=this.thru(f),p?r?v.value()[0]:v.value():v)})})),bt(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Pe[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);Fn.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var o=this.value();return t.apply(Va(o)?o:[],e)}return this[n]((function(n){return t.apply(Va(n)?n:[],e)}))}})),br(Hn.prototype,(function(e,t){var n=Fn[t];if(n){var r=n.name+"";Le.call(Rn,r)||(Rn[r]=[]),Rn[r].push({name:t,func:n})}})),Rn[Fo(o,2).name]=[{name:"wrapper",func:o}],Hn.prototype.clone=function(){var e=new Hn(this.__wrapped__);return e.__actions__=Po(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Po(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Po(this.__views__),e},Hn.prototype.reverse=function(){if(this.__filtered__){var e=new Hn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Hn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Va(e),r=t<0,o=n?e.length:0,i=function(e,t,n){for(var r=-1,o=n.length;++r<o;){var i=n[r],a=i.size;switch(i.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=yn(t,e+a);break;case"takeRight":e=mn(e,t-a)}}return{start:e,end:t}}(0,o,this.__views__),a=i.start,l=i.end,u=l-a,s=r?l:a-1,c=this.__iteratees__,f=c.length,d=0,h=yn(u,this.__takeCount__);if(!n||!r&&o==u&&h==u)return ho(e,this.__actions__);var p=[];e:for(;u--&&d<h;){for(var g=-1,v=e[s+=t];++g<f;){var m=c[g],y=m.iteratee,b=m.type,w=y(v);if(2==b)v=w;else if(!w){if(1==b)continue e;break e}}p[d++]=v}return p},Fn.prototype.at=ga,Fn.prototype.chain=function(){return ha(this)},Fn.prototype.commit=function(){return new Bn(this.value(),this.__chain__)},Fn.prototype.next=function(){this.__values__===o&&(this.__values__=hl(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?o:this.__values__[this.__index__++]}},Fn.prototype.plant=function(e){for(var t,n=this;n instanceof Un;){var r=$i(n);r.__index__=0,r.__values__=o,t?i.__wrapped__=r:t=r;var i=r;n=n.__wrapped__}return i.__wrapped__=e,t},Fn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Hn){var t=e;return this.__actions__.length&&(t=new Hn(this)),(t=t.reverse()).__actions__.push({func:pa,args:[ta],thisArg:o}),new Bn(t,this.__chain__)}return this.thru(ta)},Fn.prototype.toJSON=Fn.prototype.valueOf=Fn.prototype.value=function(){return ho(this.__wrapped__,this.__actions__)},Fn.prototype.first=Fn.prototype.head,at&&(Fn.prototype[at]=function(){return this}),Fn}();it._=sn,(r=function(){return sn}.call(t,n,t,e))===o||(e.exports=r)}.call(this)},9410:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isEqualNode=o,t.default=function(){let e=null;return{mountedInstances:new Set,updateHead:t=>{const n=e=Promise.resolve().then((()=>{if(n!==e)return;e=null;const i={};t.forEach((e=>{if("link"===e.type&&e.props["data-optimized-fonts"]){if(document.querySelector(`style[data-href="${e.props["data-href"]}"]`))return;e.props.href=e.props["data-href"],e.props["data-href"]=void 0}const t=i[e.type]||[];t.push(e),i[e.type]=t}));const a=i.title?i.title[0]:null;let l="";if(a){const{children:e}=a.props;l="string"==typeof e?e:Array.isArray(e)?e.join(""):""}l!==document.title&&(document.title=l),["meta","base","link","style","script"].forEach((e=>{!function(e,t){const n=document.getElementsByTagName("head")[0],i=n.querySelector("meta[name=next-head-count]"),a=Number(i.content),l=[];for(let t=0,n=i.previousElementSibling;t<a;t++,n=(null==n?void 0:n.previousElementSibling)||null){var u;(null==n||null===(u=n.tagName)||void 0===u?void 0:u.toLowerCase())===e&&l.push(n)}const s=t.map(r).filter((e=>{for(let t=0,n=l.length;t<n;t++)if(o(l[t],e))return l.splice(t,1),!1;return!0}));l.forEach((e=>{var t;return null===(t=e.parentNode)||void 0===t?void 0:t.removeChild(e)})),s.forEach((e=>n.insertBefore(e,i))),i.content=(a-l.length+s.length).toString()}(e,i[e]||[])}))}))}}},t.DOMAttributeNames=void 0;const n={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv",noModule:"noModule"};function r({type:e,props:t}){const r=document.createElement(e);for(const o in t){if(!t.hasOwnProperty(o))continue;if("children"===o||"dangerouslySetInnerHTML"===o)continue;if(void 0===t[o])continue;const i=n[o]||o.toLowerCase();"script"!==e||"async"!==i&&"defer"!==i&&"noModule"!==i?r.setAttribute(i,t[o]):r[i]=!!t[o]}const{children:o,dangerouslySetInnerHTML:i}=t;return i?r.innerHTML=i.__html||"":o&&(r.textContent="string"==typeof o?o:Array.isArray(o)?o.join(""):""),r}function o(e,t){if(e instanceof HTMLElement&&t instanceof HTMLElement){const n=t.getAttribute("nonce");if(n&&!e.getAttribute("nonce")){const r=t.cloneNode(!0);return r.setAttribute("nonce",""),r.nonce=n,n===e.nonce&&e.isEqualNode(r)}}return e.isEqualNode(t)}t.DOMAttributeNames=n},1119:(e,t)=>{"use strict";function n(e){return e.endsWith("/")&&"/"!==e?e.slice(0,-1):e}Object.defineProperty(t,"__esModule",{value:!0}),t.removePathTrailingSlash=n,t.normalizePathTrailingSlash=void 0;const r=window.omnivoreEnv.__NEXT_TRAILING_SLASH?e=>/\.[^/]+\/?$/.test(e)?n(e):e.endsWith("/")?e:e+"/":n;t.normalizePathTrailingSlash=r},1976:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.cancelIdleCallback=t.requestIdleCallback=void 0;const n="undefined"!=typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(e){let t=Date.now();return setTimeout((function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})}),1)};t.requestIdleCallback=n;const r="undefined"!=typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(e){return clearTimeout(e)};t.cancelIdleCallback=r},7928:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.markAssetError=s,t.isAssetError=function(e){return e&&u in e},t.getClientBuildManifest=f,t.getMiddlewareManifest=function(){return self.__MIDDLEWARE_MANIFEST?Promise.resolve(self.__MIDDLEWARE_MANIFEST):c(new Promise((e=>{const t=self.__MIDDLEWARE_MANIFEST_CB;self.__MIDDLEWARE_MANIFEST_CB=()=>{e(self.__MIDDLEWARE_MANIFEST),t&&t()}})),i,s(new Error("Failed to load client middleware manifest")))},t.createRouteLoader=function(e){const t=new Map,n=new Map,r=new Map,u=new Map;function f(e){{let t=n.get(e);return t||(document.querySelector(`script[src^="${e}"]`)?Promise.resolve():(n.set(e,t=function(e,t){return new Promise(((n,r)=>{(t=document.createElement("script")).onload=n,t.onerror=()=>r(s(new Error(`Failed to load script: ${e}`))),t.crossOrigin=window.omnivoreEnv.__NEXT_CROSS_ORIGIN,t.src=e,document.body.appendChild(t)}))}(e)),t))}}function h(e){let t=r.get(e);return t||(r.set(e,t=fetch(e).then((t=>{if(!t.ok)throw new Error(`Failed to load stylesheet: ${e}`);return t.text().then((t=>({href:e,content:t})))})).catch((e=>{throw s(e)}))),t)}return{whenEntrypoint:e=>a(e,t),onEntrypoint(e,n){(n?Promise.resolve().then((()=>n())).then((e=>({component:e&&e.default||e,exports:e})),(e=>({error:e}))):Promise.resolve(void 0)).then((n=>{const r=t.get(e);r&&"resolve"in r?n&&(t.set(e,n),r.resolve(n)):(n?t.set(e,n):t.delete(e),u.delete(e))}))},loadRoute(n,r){return a(n,u,(()=>c(d(e,n).then((({scripts:e,css:r})=>Promise.all([t.has(n)?[]:Promise.all(e.map(f)),Promise.all(r.map(h))]))).then((e=>this.whenEntrypoint(n).then((t=>({entrypoint:t,styles:e[1]}))))),i,s(new Error(`Route did not complete loading: ${n}`))).then((({entrypoint:e,styles:t})=>{const n=Object.assign({styles:t},e);return"error"in e?e:n})).catch((e=>{if(r)throw e;return{error:e}})).finally((()=>{}))))},prefetch(t){let n;return(n=navigator.connection)&&(n.saveData||/2g/.test(n.effectiveType))?Promise.resolve():d(e,t).then((e=>Promise.all(l?e.scripts.map((e=>{return t=e,n="script",new Promise(((e,o)=>{const i=`\n link[rel="prefetch"][href^="${t}"],\n link[rel="preload"][href^="${t}"],\n script[src^="${t}"]`;if(document.querySelector(i))return e();(r=document.createElement("link")).as=n,r.rel="prefetch",r.crossOrigin=window.omnivoreEnv.__NEXT_CROSS_ORIGIN,r.onload=e,r.onerror=o,r.href=t,document.head.appendChild(r)}));var t,n,r})):[]))).then((()=>{o.requestIdleCallback((()=>this.loadRoute(t,!0).catch((()=>{}))))})).catch((()=>{}))}}},(r=n(9983))&&r.__esModule;var r,o=n(1976);const i=3800;function a(e,t,n){let r,o=t.get(e);if(o)return"future"in o?o.future:Promise.resolve(o);const i=new Promise((e=>{r=e}));return t.set(e,o={resolve:r,future:i}),n?n().then((e=>(r(e),e))).catch((n=>{throw t.delete(e),n})):i}const l=function(e){try{return e=document.createElement("link"),!!window.MSInputMethodContext&&!!document.documentMode||e.relList.supports("prefetch")}catch(e){return!1}}(),u=Symbol("ASSET_LOAD_ERROR");function s(e){return Object.defineProperty(e,u,{})}function c(e,t,n){return new Promise(((r,i)=>{let a=!1;e.then((e=>{a=!0,r(e)})).catch(i),o.requestIdleCallback((()=>setTimeout((()=>{a||i(n)}),t)))}))}function f(){return self.__BUILD_MANIFEST?Promise.resolve(self.__BUILD_MANIFEST):c(new Promise((e=>{const t=self.__BUILD_MANIFEST_CB;self.__BUILD_MANIFEST_CB=()=>{e(self.__BUILD_MANIFEST),t&&t()}})),i,s(new Error("Failed to load client build manifest")))}function d(e,t){return f().then((n=>{if(!(t in n))throw s(new Error(`Failed to lookup route: ${t}`));const r=n[t].map((t=>e+"/_next/"+encodeURI(t)));return{scripts:r.filter((e=>e.endsWith(".js"))),css:r.filter((e=>e.endsWith(".css")))}}))}},9518:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Router",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"withRouter",{enumerable:!0,get:function(){return l.default}}),t.useRouter=function(){return r.default.useContext(i.RouterContext)},t.createRouter=function(...e){return s.router=new o.default(...e),s.readyCallbacks.forEach((e=>e())),s.readyCallbacks=[],s.router},t.makePublicRouterInstance=function(e){const t=e,n={};for(const e of c)"object"!=typeof t[e]?n[e]=t[e]:n[e]=Object.assign(Array.isArray(t[e])?[]:{},t[e]);return n.events=o.default.events,f.forEach((e=>{n[e]=(...n)=>t[e](...n)})),n},t.default=void 0;var r=u(n(2784)),o=u(n(6640)),i=n(6510),a=u(n(274)),l=u(n(9564));function u(e){return e&&e.__esModule?e:{default:e}}const s={router:null,readyCallbacks:[],ready(e){if(this.router)return e();"undefined"!=typeof window&&this.readyCallbacks.push(e)}},c=["pathname","route","query","asPath","components","isFallback","basePath","locale","locales","defaultLocale","isReady","isPreview","isLocaleDomain","domainLocales"],f=["push","replace","reload","back","prefetch","beforePopState"];function d(){if(!s.router)throw new Error('No router instance found.\nYou should only use "next/router" on the client side of your app.\n');return s.router}Object.defineProperty(s,"events",{get:()=>o.default.events}),c.forEach((e=>{Object.defineProperty(s,e,{get:()=>d()[e]})})),f.forEach((e=>{s[e]=(...t)=>d()[e](...t)})),["routeChangeStart","beforeHistoryChange","routeChangeComplete","routeChangeError","hashChangeStart","hashChangeComplete"].forEach((e=>{s.ready((()=>{o.default.events.on(e,((...t)=>{const n=`on${e.charAt(0).toUpperCase()}${e.substring(1)}`,r=s;if(r[n])try{r[n](...t)}catch(e){console.error(`Error when running the Router event: ${n}`),console.error(a.default(e)?`${e.message}\n${e.stack}`:e+"")}}))}))}));var h=s;t.default=h},9515:(e,t,n)=>{"use strict";t.default=void 0;var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(n(2784)),o=n(7177),i=n(9410),a=n(1976);function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){l(e,t,n[t])}))}return e}const s=new Map,c=new Set,f=["onLoad","dangerouslySetInnerHTML","children","onError","strategy"],d=e=>{const{src:t,id:n,onLoad:r=(()=>{}),dangerouslySetInnerHTML:o,children:a="",strategy:l="afterInteractive",onError:u}=e,d=n||t;if(d&&c.has(d))return;if(s.has(t))return c.add(d),void s.get(t).then(r,u);const h=document.createElement("script"),p=new Promise(((e,t)=>{h.addEventListener("load",(function(t){e(),r&&r.call(this,t)})),h.addEventListener("error",(function(e){t(e)}))})).catch((function(e){u&&u(e)}));t&&s.set(t,p),c.add(d),o?h.innerHTML=o.__html||"":a?h.textContent="string"==typeof a?a:Array.isArray(a)?a.join(""):"":t&&(h.src=t);for(const[t,n]of Object.entries(e)){if(void 0===n||f.includes(t))continue;const e=i.DOMAttributeNames[t]||t.toLowerCase();h.setAttribute(e,n)}h.setAttribute("data-nscript",l),document.body.appendChild(h)};t.default=function(e){const{src:t="",onLoad:n=(()=>{}),dangerouslySetInnerHTML:i,strategy:l="afterInteractive",onError:s}=e,f=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,["src","onLoad","dangerouslySetInnerHTML","strategy","onError"]),{updateScripts:h,scripts:p,getIsSsr:g}=r.useContext(o.HeadManagerContext);return r.useEffect((()=>{"afterInteractive"===l?d(e):"lazyOnload"===l&&function(e){"complete"===document.readyState?a.requestIdleCallback((()=>d(e))):window.addEventListener("load",(()=>{a.requestIdleCallback((()=>d(e)))}))}(e)}),[e,l]),"beforeInteractive"===l&&(h?(p.beforeInteractive=(p.beforeInteractive||[]).concat([u({src:t,onLoad:n,onError:s},f)]),h(p)):g&&g()?c.add(f.id||t):g&&!g()&&d(e)),null}},9564:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){function t(t){return o.default.createElement(e,Object.assign({router:i.useRouter()},t))}return t.getInitialProps=e.getInitialProps,t.origGetInitialProps=e.origGetInitialProps,t};var r,o=(r=n(2784))&&r.__esModule?r:{default:r},i=n(9518)},9264:(e,t)=>{"use strict";function n(e,t){void 0===t&&(t={});for(var n=function(e){for(var t=[],n=0;n<e.length;){var r=e[n];if("*"!==r&&"+"!==r&&"?"!==r)if("\\"!==r)if("{"!==r)if("}"!==r)if(":"!==r)if("("!==r)t.push({type:"CHAR",index:n,value:e[n++]});else{var o=1,i="";if("?"===e[l=n+1])throw new TypeError('Pattern cannot start with "?" at '+l);for(;l<e.length;)if("\\"!==e[l]){if(")"===e[l]){if(0==--o){l++;break}}else if("("===e[l]&&(o++,"?"!==e[l+1]))throw new TypeError("Capturing groups are not allowed at "+l);i+=e[l++]}else i+=e[l++]+e[l++];if(o)throw new TypeError("Unbalanced pattern at "+n);if(!i)throw new TypeError("Missing pattern at "+n);t.push({type:"PATTERN",index:n,value:i}),n=l}else{for(var a="",l=n+1;l<e.length;){var u=e.charCodeAt(l);if(!(u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122||95===u))break;a+=e[l++]}if(!a)throw new TypeError("Missing parameter name at "+n);t.push({type:"NAME",index:n,value:a}),n=l}else t.push({type:"CLOSE",index:n,value:e[n++]});else t.push({type:"OPEN",index:n,value:e[n++]});else t.push({type:"ESCAPED_CHAR",index:n++,value:e[n++]});else t.push({type:"MODIFIER",index:n,value:e[n++]})}return t.push({type:"END",index:n,value:""}),t}(e),r=t.prefixes,o=void 0===r?"./":r,a="[^"+i(t.delimiter||"/#?")+"]+?",l=[],u=0,s=0,c="",f=function(e){if(s<n.length&&n[s].type===e)return n[s++].value},d=function(e){var t=f(e);if(void 0!==t)return t;var r=n[s],o=r.type,i=r.index;throw new TypeError("Unexpected "+o+" at "+i+", expected "+e)},h=function(){for(var e,t="";e=f("CHAR")||f("ESCAPED_CHAR");)t+=e;return t};s<n.length;){var p=f("CHAR"),g=f("NAME"),v=f("PATTERN");if(g||v){var m=p||"";-1===o.indexOf(m)&&(c+=m,m=""),c&&(l.push(c),c=""),l.push({name:g||u++,prefix:m,suffix:"",pattern:v||a,modifier:f("MODIFIER")||""})}else{var y=p||f("ESCAPED_CHAR");if(y)c+=y;else if(c&&(l.push(c),c=""),f("OPEN")){m=h();var b=f("NAME")||"",w=f("PATTERN")||"",_=h();d("CLOSE"),l.push({name:b||(w?u++:""),pattern:b&&!w?a:w,prefix:m,suffix:_,modifier:f("MODIFIER")||""})}else d("END")}}return l}function r(e,t){void 0===t&&(t={});var n=a(t),r=t.encode,o=void 0===r?function(e){return e}:r,i=t.validate,l=void 0===i||i,u=e.map((function(e){if("object"==typeof e)return new RegExp("^(?:"+e.pattern+")$",n)}));return function(t){for(var n="",r=0;r<e.length;r++){var i=e[r];if("string"!=typeof i){var a=t?t[i.name]:void 0,s="?"===i.modifier||"*"===i.modifier,c="*"===i.modifier||"+"===i.modifier;if(Array.isArray(a)){if(!c)throw new TypeError('Expected "'+i.name+'" to not repeat, but got an array');if(0===a.length){if(s)continue;throw new TypeError('Expected "'+i.name+'" to not be empty')}for(var f=0;f<a.length;f++){var d=o(a[f],i);if(l&&!u[r].test(d))throw new TypeError('Expected all "'+i.name+'" to match "'+i.pattern+'", but got "'+d+'"');n+=i.prefix+d+i.suffix}}else if("string"!=typeof a&&"number"!=typeof a){if(!s){var h=c?"an array":"a string";throw new TypeError('Expected "'+i.name+'" to be '+h)}}else{if(d=o(String(a),i),l&&!u[r].test(d))throw new TypeError('Expected "'+i.name+'" to match "'+i.pattern+'", but got "'+d+'"');n+=i.prefix+d+i.suffix}}else n+=i}return n}}function o(e,t,n){void 0===n&&(n={});var r=n.decode,o=void 0===r?function(e){return e}:r;return function(n){var r=e.exec(n);if(!r)return!1;for(var i=r[0],a=r.index,l=Object.create(null),u=function(e){if(void 0===r[e])return"continue";var n=t[e-1];"*"===n.modifier||"+"===n.modifier?l[n.name]=r[e].split(n.prefix+n.suffix).map((function(e){return o(e,n)})):l[n.name]=o(r[e],n)},s=1;s<r.length;s++)u(s);return{path:i,index:a,params:l}}}function i(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function a(e){return e&&e.sensitive?"":"i"}function l(e,t,n){void 0===n&&(n={});for(var r=n.strict,o=void 0!==r&&r,l=n.start,u=void 0===l||l,s=n.end,c=void 0===s||s,f=n.encode,d=void 0===f?function(e){return e}:f,h="["+i(n.endsWith||"")+"]|$",p="["+i(n.delimiter||"/#?")+"]",g=u?"^":"",v=0,m=e;v<m.length;v++){var y=m[v];if("string"==typeof y)g+=i(d(y));else{var b=i(d(y.prefix)),w=i(d(y.suffix));if(y.pattern)if(t&&t.push(y),b||w)if("+"===y.modifier||"*"===y.modifier){var _="*"===y.modifier?"?":"";g+="(?:"+b+"((?:"+y.pattern+")(?:"+w+b+"(?:"+y.pattern+"))*)"+w+")"+_}else g+="(?:"+b+"("+y.pattern+")"+w+")"+y.modifier;else g+="("+y.pattern+")"+y.modifier;else g+="(?:"+b+w+")"+y.modifier}}if(c)o||(g+=p+"?"),g+=n.endsWith?"(?="+h+")":"$";else{var x=e[e.length-1],E="string"==typeof x?p.indexOf(x[x.length-1])>-1:void 0===x;o||(g+="(?:"+p+"(?="+h+"))?"),E||(g+="(?="+p+"|"+h+")")}return new RegExp(g,a(n))}function u(e,t,r){return e instanceof RegExp?function(e,t){if(!t)return e;var n=e.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)t.push({name:r,prefix:"",suffix:"",modifier:"",pattern:""});return e}(e,t):Array.isArray(e)?function(e,t,n){var r=e.map((function(e){return u(e,t,n).source}));return new RegExp("(?:"+r.join("|")+")",a(n))}(e,t,r):function(e,t,r){return l(n(e,r),t,r)}(e,t,r)}Object.defineProperty(t,"__esModule",{value:!0}),t.parse=n,t.compile=function(e,t){return r(n(e,t),t)},t.tokensToFunction=r,t.match=function(e,t){var n=[];return o(u(e,n,t),n,t)},t.regexpToFunction=o,t.tokensToRegexp=l,t.pathToRegexp=u},274:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=o,t.getProperError=function(e){return o(e)?e:new Error(r.isPlainObject(e)?JSON.stringify(e):e+"")};var r=n(9910);function o(e){return"object"==typeof e&&null!==e&&"name"in e&&"message"in e}},4863:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.normalizePathSep=o,t.denormalizePagePath=function(e){return(e=o(e)).startsWith("/index/")&&!r.isDynamicRoute(e)?e=e.slice(6):"/index"===e&&(e="/"),e};var r=n(9150);function o(e){return e.replace(/\\/g,"/")}},8058:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.escapeStringRegexp=function(e){return e.replace(/[|\\{}()[\]^$+*?.-]/g,"\\$&")}},7177:(e,t,n)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.HeadManagerContext=void 0;const o=((r=n(2784))&&r.__esModule?r:{default:r}).default.createContext({});t.HeadManagerContext=o},927:(e,t)=>{"use strict";t.D=function(e,t,n){let r;if(e){n&&(n=n.toLowerCase());for(const a of e){var o,i;if(t===(null===(o=a.domain)||void 0===o?void 0:o.split(":")[0].toLowerCase())||n===a.defaultLocale.toLowerCase()||(null===(i=a.locales)||void 0===i?void 0:i.some((e=>e.toLowerCase()===n)))){r=a;break}}}return r}},816:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.normalizeLocalePath=function(e,t){let n;const r=e.split("/");return(t||[]).some((t=>!(!r[1]||r[1].toLowerCase()!==t.toLowerCase()||(n=t,r.splice(1,1),e=r.join("/")||"/",0)))),{pathname:e,detectedLocale:n}}},9910:(e,t)=>{"use strict";function n(e){return Object.prototype.toString.call(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.getObjectClassLabel=n,t.isPlainObject=function(e){if("[object Object]"!==n(e))return!1;const t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}},7471:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){const e=Object.create(null);return{on(t,n){(e[t]||(e[t]=[])).push(n)},off(t,n){e[t]&&e[t].splice(e[t].indexOf(n)>>>0,1)},emit(t,...n){(e[t]||[]).slice().map((e=>{e(...n)}))}}}},6510:(e,t,n)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.RouterContext=void 0;const o=((r=n(2784))&&r.__esModule?r:{default:r}).default.createContext(null);t.RouterContext=o},6640:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getDomainLocale=function(e,t,n,r){if(window.omnivoreEnv.__NEXT_I18N_SUPPORT){t=t||l.normalizeLocalePath(e,n).detectedLocale;const o=y(r,void 0,t);return!!o&&`http${o.http?"":"s"}://${o.domain}${b||""}${t===o.defaultLocale?"":`/${t}`}${e}`}return!1},t.addLocale=x,t.delLocale=E,t.hasBasePath=k,t.addBasePath=C,t.delBasePath=O,t.isLocalURL=P,t.interpolateAs=T,t.resolveHref=j,t.default=void 0;var r=n(1119),o=n(7928),i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(n(274)),a=n(4863),l=n(816),u=m(n(7471)),s=n(1624),c=n(7482),f=n(1577),d=n(646),h=m(n(5317)),p=n(3107),g=n(4794),v=n(2763);function m(e){return e&&e.__esModule?e:{default:e}}let y;window.omnivoreEnv.__NEXT_I18N_SUPPORT&&(y=n(927).D);const b=window.omnivoreEnv.__NEXT_ROUTER_BASEPATH||"";function w(){return Object.assign(new Error("Route Cancelled"),{cancelled:!0})}function _(e,t){if(!e.startsWith("/")||!t)return e;const n=S(e);return r.normalizePathTrailingSlash(`${t}${n}`)+e.substr(n.length)}function x(e,t,n){if(window.omnivoreEnv.__NEXT_I18N_SUPPORT){const r=S(e).toLowerCase(),o=t&&t.toLowerCase();return t&&t!==n&&!r.startsWith("/"+o+"/")&&r!=="/"+o?_(e,"/"+t):e}return e}function E(e,t){if(window.omnivoreEnv.__NEXT_I18N_SUPPORT){const n=S(e),r=n.toLowerCase(),o=t&&t.toLowerCase();return t&&(r.startsWith("/"+o+"/")||r==="/"+o)?(n.length===t.length+1?"/":"")+e.substr(t.length+1):e}return e}function S(e){const t=e.indexOf("?"),n=e.indexOf("#");return(t>-1||n>-1)&&(e=e.substring(0,t>-1?t:n)),e}function k(e){return(e=S(e))===b||e.startsWith(b+"/")}function C(e){return _(e,b)}function O(e){return(e=e.slice(b.length)).startsWith("/")||(e=`/${e}`),e}function P(e){if(e.startsWith("/")||e.startsWith("#")||e.startsWith("?"))return!0;try{const t=s.getLocationOrigin(),n=new URL(e,t);return n.origin===t&&k(n.pathname)}catch(e){return!1}}function T(e,t,n){let r="";const o=g.getRouteRegex(e),i=o.groups,a=(t!==e?p.getRouteMatcher(o)(t):"")||n;r=e;const l=Object.keys(i);return l.every((e=>{let t=a[e]||"";const{repeat:n,optional:o}=i[e];let l=`[${n?"...":""}${e}]`;return o&&(l=`${t?"":"/"}[${l}]`),n&&!Array.isArray(t)&&(t=[t]),(o||e in a)&&(r=r.replace(l,n?t.map((e=>encodeURIComponent(e))).join("/"):encodeURIComponent(t))||"/")}))||(r=""),{params:l,result:r}}function R(e,t){const n={};return Object.keys(e).forEach((r=>{t.includes(r)||(n[r]=e[r])})),n}function j(e,t,n){let o,i="string"==typeof t?t:s.formatWithValidation(t);const a=i.match(/^[a-zA-Z]{1,}:\/\//),l=a?i.substr(a[0].length):i;if((l.split("?")[0]||"").match(/(\/\/|\\)/)){console.error(`Invalid href passed to next/router: ${i}, repeated forward-slashes (//) or backslashes \\ are not valid in the href`);const e=s.normalizeRepeatedSlashes(l);i=(a?a[0]:"")+e}if(!P(i))return n?[i]:i;try{o=new URL(i.startsWith("#")?e.asPath:e.pathname,"http://n")}catch(e){o=new URL("/","http://n")}try{const e=new URL(i,o);e.pathname=r.normalizePathTrailingSlash(e.pathname);let t="";if(c.isDynamicRoute(e.pathname)&&e.searchParams&&n){const n=d.searchParamsToUrlQuery(e.searchParams),{result:r,params:o}=T(e.pathname,e.pathname,n);r&&(t=s.formatWithValidation({pathname:r,hash:e.hash,query:R(n,o)}))}const a=e.origin===o.origin?e.href.slice(e.origin.length):e.href;return n?[a,t||a]:a}catch(e){return n?[i]:i}}function A(e){const t=s.getLocationOrigin();return e.startsWith(t)?e.substring(t.length):e}function L(e,t,n){let[r,o]=j(e,t,!0);const i=s.getLocationOrigin(),a=r.startsWith(i),l=o&&o.startsWith(i);r=A(r),o=o?A(o):o;const u=a?r:C(r),c=n?A(j(e,n)):o||r;return{url:u,as:l?c:C(c)}}function I(e,t){const n=r.removePathTrailingSlash(a.denormalizePagePath(e));return"/404"===n||"/_error"===n?e:(t.includes(n)||t.some((t=>{if(c.isDynamicRoute(t)&&g.getRouteRegex(t).re.test(n))return e=t,!0})),r.removePathTrailingSlash(e))}const D=window.omnivoreEnv.__NEXT_SCROLL_RESTORATION&&"undefined"!=typeof window&&"scrollRestoration"in window.history&&!!function(){try{let e="__next";return sessionStorage.setItem(e,e),sessionStorage.removeItem(e),!0}catch(e){}}(),N=Symbol("SSG_DATA_NOT_FOUND");function M(e,t,n){return fetch(e,{credentials:"same-origin"}).then((r=>{if(!r.ok){if(t>1&&r.status>=500)return M(e,t-1,n);if(404===r.status)return r.json().then((e=>{if(e.notFound)return{notFound:N};throw new Error("Failed to load static props")}));throw new Error("Failed to load static props")}return n.text?r.text():r.json()}))}function z(e,t,n,r,i){const{href:a}=new URL(e,window.location.href);return void 0!==r[a]?r[a]:r[a]=M(e,t?3:1,{text:n}).catch((e=>{throw t||o.markAssetError(e),e})).then((e=>(i||delete r[a],e))).catch((e=>{throw delete r[a],e}))}class F{constructor(e,t,n,{initialProps:o,pageLoader:i,App:a,wrapApp:l,Component:u,err:d,subscription:h,isFallback:p,locale:g,locales:v,defaultLocale:m,domainLocales:w,isPreview:_}){this.sdc={},this.sdr={},this.sde={},this._idx=0,this.onPopState=e=>{const t=e.state;if(!t){const{pathname:e,query:t}=this;return void this.changeState("replaceState",s.formatWithValidation({pathname:C(e),query:t}),s.getURL())}if(!t.__N)return;let n;const{url:r,as:o,options:i,idx:a}=t;if(window.omnivoreEnv.__NEXT_SCROLL_RESTORATION&&D&&this._idx!==a){try{sessionStorage.setItem("__next_scroll_"+this._idx,JSON.stringify({x:self.pageXOffset,y:self.pageYOffset}))}catch{}try{const e=sessionStorage.getItem("__next_scroll_"+a);n=JSON.parse(e)}catch{n={x:0,y:0}}}this._idx=a;const{pathname:l}=f.parseRelativeUrl(r);this.isSsr&&o===C(this.asPath)&&l===C(this.pathname)||this._bps&&!this._bps(t)||this.change("replaceState",r,o,Object.assign({},i,{shallow:i.shallow&&this._shallow,locale:i.locale||this.defaultLocale}),n)};const x=r.removePathTrailingSlash(e);var E;this.components={},"/_error"!==e&&(this.components[x]={Component:u,initial:!0,props:o,err:d,__N_SSG:o&&o.__N_SSG,__N_SSP:o&&o.__N_SSP,__N_RSC:!!(null===(E=u)||void 0===E?void 0:E.__next_rsc__)}),this.components["/_app"]={Component:a,styleSheets:[]},this.events=F.events,this.pageLoader=i;const S=c.isDynamicRoute(e)&&self.__NEXT_DATA__.autoExport;if(this.basePath=b,this.sub=h,this.clc=null,this._wrapApp=l,this.isSsr=!0,this.isLocaleDomain=!1,this.isReady=!(!(self.__NEXT_DATA__.gssp||self.__NEXT_DATA__.gip||self.__NEXT_DATA__.appGip&&!self.__NEXT_DATA__.gsp)&&(S||self.location.search||window.omnivoreEnv.__NEXT_HAS_REWRITES)),window.omnivoreEnv.__NEXT_I18N_SUPPORT&&(this.locales=v,this.defaultLocale=m,this.domainLocales=w,this.isLocaleDomain=!!y(w,self.location.hostname)),this.state={route:x,pathname:e,query:t,asPath:S?e:n,isPreview:!!_,locale:window.omnivoreEnv.__NEXT_I18N_SUPPORT?g:void 0,isFallback:p},"undefined"!=typeof window){if("//"!==n.substr(0,2)){const r={locale:g};r._shouldResolveHref=n!==e,this.changeState("replaceState",s.formatWithValidation({pathname:C(e),query:t}),s.getURL(),r)}window.addEventListener("popstate",this.onPopState),window.omnivoreEnv.__NEXT_SCROLL_RESTORATION&&D&&(window.history.scrollRestoration="manual")}}reload(){window.location.reload()}back(){window.history.back()}push(e,t,n={}){if(window.omnivoreEnv.__NEXT_SCROLL_RESTORATION&&D)try{sessionStorage.setItem("__next_scroll_"+this._idx,JSON.stringify({x:self.pageXOffset,y:self.pageYOffset}))}catch{}return({url:e,as:t}=L(this,e,t)),this.change("pushState",e,t,n)}replace(e,t,n={}){return({url:e,as:t}=L(this,e,t)),this.change("replaceState",e,t,n)}async change(e,t,n,a,u){if(!P(t))return window.location.href=t,!1;const d=a._h||a._shouldResolveHref||S(t)===S(n),v={...this.state};a._h&&(this.isReady=!0);const m=v.locale;if(window.omnivoreEnv.__NEXT_I18N_SUPPORT){v.locale=!1===a.locale?this.defaultLocale:a.locale||v.locale,void 0===a.locale&&(a.locale=v.locale);const e=f.parseRelativeUrl(k(n)?O(n):n),r=l.normalizeLocalePath(e.pathname,this.locales);r.detectedLocale&&(v.locale=r.detectedLocale,e.pathname=C(e.pathname),n=s.formatWithValidation(e),t=C(l.normalizeLocalePath(k(t)?O(t):t,this.locales).pathname));let o=!1;window.omnivoreEnv.__NEXT_I18N_SUPPORT&&((null===(W=this.locales)||void 0===W?void 0:W.includes(v.locale))||(e.pathname=x(e.pathname,v.locale),window.location.href=s.formatWithValidation(e),o=!0));const i=y(this.domainLocales,void 0,v.locale);if(window.omnivoreEnv.__NEXT_I18N_SUPPORT&&!o&&i&&this.isLocaleDomain&&self.location.hostname!==i.domain){const e=O(n);window.location.href=`http${i.http?"":"s"}://${i.domain}${C(`${v.locale===i.defaultLocale?"":`/${v.locale}`}${"/"===e?"":e}`||"/")}`,o=!0}if(o)return new Promise((()=>{}))}a._h||(this.isSsr=!1),s.ST&&performance.mark("routeChange");const{shallow:b=!1,scroll:w=!0}=a,_={shallow:b};this._inFlightRoute&&this.abortComponentLoad(this._inFlightRoute,_),n=C(x(k(n)?O(n):n,a.locale,this.defaultLocale));const j=E(k(n)?O(n):n,v.locale);this._inFlightRoute=n;let A=m!==v.locale;if(!a._h&&this.onlyAHashChange(j)&&!A)return v.asPath=j,F.events.emit("hashChangeStart",n,_),this.changeState(e,t,n,{...a,scroll:!1}),w&&this.scrollToHash(j),this.set(v,this.components[v.route],null),F.events.emit("hashChangeComplete",n,_),!0;let D,M,z=f.parseRelativeUrl(t),{pathname:$,query:U}=z;try{[D,{__rewrites:M}]=await Promise.all([this.pageLoader.getPageList(),o.getClientBuildManifest(),this.pageLoader.getMiddlewareList()])}catch(e){return window.location.href=n,!1}this.urlIsNew(j)||A||(e="replaceState");let B=n;if($=$?r.removePathTrailingSlash(O($)):$,d&&"/_error"!==$)if(a._shouldResolveHref=!0,window.omnivoreEnv.__NEXT_HAS_REWRITES&&n.startsWith("/")){const e=h.default(C(x(j,v.locale)),D,M,U,(e=>I(e,D)),this.locales);if(e.externalDest)return location.href=n,!0;B=e.asPath,e.matchedPage&&e.resolvedHref&&($=e.resolvedHref,z.pathname=C($),t=s.formatWithValidation(z))}else z.pathname=I($,D),z.pathname!==$&&($=z.pathname,z.pathname=C($),t=s.formatWithValidation(z));if(!P(n))return window.location.href=n,!1;if(B=E(O(B),v.locale),1!==a._h||c.isDynamicRoute(r.removePathTrailingSlash($))){const r=await this._preflightRequest({as:n,cache:!0,pages:D,pathname:$,query:U,locale:v.locale,isPreview:v.isPreview});if("rewrite"===r.type)U={...U,...r.parsedAs.query},B=r.asPath,$=r.resolvedHref,z.pathname=r.resolvedHref,t=s.formatWithValidation(z);else{if("redirect"===r.type&&r.newAs)return this.change(e,r.newUrl,r.newAs,a);if("redirect"===r.type&&r.destination)return window.location.href=r.destination,new Promise((()=>{}));if("refresh"===r.type&&n!==window.location.pathname)return window.location.href=n,new Promise((()=>{}))}}const H=r.removePathTrailingSlash($);if(c.isDynamicRoute(H)){const e=f.parseRelativeUrl(B),r=e.pathname,o=g.getRouteRegex(H),i=p.getRouteMatcher(o)(r),a=H===r,l=a?T(H,r,U):{};if(!i||a&&!l.result){const e=Object.keys(o.groups).filter((e=>!U[e]));if(e.length>0)throw new Error((a?`The provided \`href\` (${t}) value is missing query values (${e.join(", ")}) to be interpolated properly. `:`The provided \`as\` value (${r}) is incompatible with the \`href\` value (${H}). `)+"Read more: https://nextjs.org/docs/messages/"+(a?"href-interpolation-failed":"incompatible-href-as"))}else a?n=s.formatWithValidation(Object.assign({},e,{pathname:l.result,query:R(U,l.params)})):Object.assign(U,i)}F.events.emit("routeChangeStart",n,_);try{var W,V;let r=await this.getRouteInfo(H,$,U,n,B,_,v.locale,v.isPreview),{error:o,props:i,__N_SSG:l,__N_SSP:s}=r;if((l||s)&&i){if(i.pageProps&&i.pageProps.__N_REDIRECT){const t=i.pageProps.__N_REDIRECT;if(t.startsWith("/")&&!1!==i.pageProps.__N_REDIRECT_BASE_PATH){const n=f.parseRelativeUrl(t);n.pathname=I(n.pathname,D);const{url:r,as:o}=L(this,t,t);return this.change(e,r,o,a)}return window.location.href=t,new Promise((()=>{}))}if(v.isPreview=!!i.__N_PREVIEW,i.notFound===N){let e;try{await this.fetchComponent("/404"),e="/404"}catch(t){e="/_error"}r=await this.getRouteInfo(e,e,U,n,B,{shallow:!1},v.locale,v.isPreview)}}F.events.emit("beforeHistoryChange",n,_),this.changeState(e,t,n,a),a._h&&"/_error"===$&&500===(null===(W=self.__NEXT_DATA__.props)||void 0===W||null===(V=W.pageProps)||void 0===V?void 0:V.statusCode)&&(null==i?void 0:i.pageProps)&&(i.pageProps.statusCode=500);const c=a.shallow&&v.route===H;var q;const d=(null!==(q=a.scroll)&&void 0!==q?q:!c)?{x:0,y:0}:null;if(await this.set({...v,route:H,pathname:$,query:U,asPath:j,isFallback:!1},r,null!=u?u:d).catch((e=>{if(!e.cancelled)throw e;o=o||e})),o)throw F.events.emit("routeChangeError",o,j,_),o;return window.omnivoreEnv.__NEXT_I18N_SUPPORT&&v.locale&&(document.documentElement.lang=v.locale),F.events.emit("routeChangeComplete",n,_),!0}catch(e){if(i.default(e)&&e.cancelled)return!1;throw e}}changeState(e,t,n,r={}){"pushState"===e&&s.getURL()===n||(this._shallow=r.shallow,window.history[e]({url:t,as:n,options:r,__N:!0,idx:this._idx="pushState"!==e?this._idx:this._idx+1},"",n))}async handleRouteInfoError(e,t,n,r,a,l){if(e.cancelled)throw e;if(o.isAssetError(e)||l)throw F.events.emit("routeChangeError",e,r,a),window.location.href=r,w();try{let r,o,i;void 0!==r&&void 0!==o||({page:r,styleSheets:o}=await this.fetchComponent("/_error"));const a={props:i,Component:r,styleSheets:o,err:e,error:e};if(!a.props)try{a.props=await this.getInitialProps(r,{err:e,pathname:t,query:n})}catch(e){console.error("Error in error page `getInitialProps`: ",e),a.props={}}return a}catch(e){return this.handleRouteInfoError(i.default(e)?e:new Error(e+""),t,n,r,a,!0)}}async getRouteInfo(e,t,n,r,o,a,l,u){try{const i=this.components[e];if(a.shallow&&i&&this.route===e)return i;let c;i&&!("initial"in i)&&(c=i);const f=c||await this.fetchComponent(e).then((e=>({Component:e.page,styleSheets:e.styleSheets,__N_SSG:e.mod.__N_SSG,__N_SSP:e.mod.__N_SSP,__N_RSC:!!e.page.__next_rsc__}))),{Component:d,__N_SSG:h,__N_SSP:p,__N_RSC:g}=f;let v;(h||p||g)&&(v=this.pageLoader.getDataHref({href:s.formatWithValidation({pathname:t,query:n}),asPath:o,ssg:h,rsc:g,locale:l}));const m=await this._getData((()=>h||p?z(v,this.isSsr,!1,h?this.sdc:this.sdr,!!h&&!u):this.getInitialProps(d,{pathname:t,query:n,asPath:r,locale:l,locales:this.locales,defaultLocale:this.defaultLocale})));if(g){const{fresh:e,data:t}=await this._getData((()=>this._getFlightData(v)));m.pageProps=Object.assign(m.pageProps,{__flight_serialized__:t,__flight_fresh__:e})}return f.props=m,this.components[e]=f,f}catch(e){return this.handleRouteInfoError(i.getProperError(e),t,n,r,a)}}set(e,t,n){return this.state=e,this.sub(t,this.components["/_app"].Component,n)}beforePopState(e){this._bps=e}onlyAHashChange(e){if(!this.asPath)return!1;const[t,n]=this.asPath.split("#"),[r,o]=e.split("#");return!(!o||t!==r||n!==o)||t===r&&n!==o}scrollToHash(e){const[,t=""]=e.split("#");if(""===t||"top"===t)return void window.scrollTo(0,0);const n=document.getElementById(t);if(n)return void n.scrollIntoView();const r=document.getElementsByName(t)[0];r&&r.scrollIntoView()}urlIsNew(e){return this.asPath!==e}async prefetch(e,t=e,n={}){let i=f.parseRelativeUrl(e),{pathname:a,query:u}=i;if(window.omnivoreEnv.__NEXT_I18N_SUPPORT&&!1===n.locale){a=l.normalizeLocalePath(a,this.locales).pathname,i.pathname=a,e=s.formatWithValidation(i);let r=f.parseRelativeUrl(t);const o=l.normalizeLocalePath(r.pathname,this.locales);r.pathname=o.pathname,n.locale=o.detectedLocale||this.defaultLocale,t=s.formatWithValidation(r)}const c=await this.pageLoader.getPageList();let d=t;if(window.omnivoreEnv.__NEXT_HAS_REWRITES&&t.startsWith("/")){let n;({__rewrites:n}=await o.getClientBuildManifest());const r=h.default(C(x(t,this.locale)),c,n,i.query,(e=>I(e,c)),this.locales);if(r.externalDest)return;d=E(O(r.asPath),this.locale),r.matchedPage&&r.resolvedHref&&(a=r.resolvedHref,i.pathname=a,e=s.formatWithValidation(i))}else i.pathname=I(i.pathname,c),i.pathname!==a&&(a=i.pathname,i.pathname=a,e=s.formatWithValidation(i));const p=await this._preflightRequest({as:C(t),cache:!0,pages:c,pathname:a,query:u,locale:this.locale,isPreview:this.isPreview});"rewrite"===p.type&&(i.pathname=p.resolvedHref,a=p.resolvedHref,u={...u,...p.parsedAs.query},d=p.asPath,e=s.formatWithValidation(i));const g=r.removePathTrailingSlash(a);await Promise.all([this.pageLoader._isSsg(g).then((t=>!!t&&z(this.pageLoader.getDataHref({href:e,asPath:d,ssg:!0,locale:void 0!==n.locale?n.locale:this.locale}),!1,!1,this.sdc,!0))),this.pageLoader[n.priority?"loadPage":"prefetch"](g)])}async fetchComponent(e){let t=!1;const n=this.clc=()=>{t=!0},r=()=>{if(t){const t=new Error(`Abort fetching component for route: "${e}"`);throw t.cancelled=!0,t}n===this.clc&&(this.clc=null)};try{const t=await this.pageLoader.loadPage(e);return r(),t}catch(e){throw r(),e}}_getData(e){let t=!1;const n=()=>{t=!0};return this.clc=n,e().then((e=>{if(n===this.clc&&(this.clc=null),t){const e=new Error("Loading initial props cancelled");throw e.cancelled=!0,e}return e}))}_getFlightData(e){return z(e,!0,!0,this.sdc,!1).then((e=>({fresh:!0,data:e})))}async _preflightRequest(e){const t=E(k(e.as)?O(e.as):e.as,e.locale);if(!(await this.pageLoader.getMiddlewareList()).some((([e,n])=>p.getRouteMatcher(v.getMiddlewareRegex(e,!n))(t))))return{type:"next"};const n=await this._getPreflightData({preflightHref:e.as,shouldCache:e.cache,isPreview:e.isPreview});if(n.rewrite){if(!n.rewrite.startsWith("/"))return{type:"redirect",destination:e.as};const t=f.parseRelativeUrl(l.normalizeLocalePath(k(n.rewrite)?O(n.rewrite):n.rewrite,this.locales).pathname),o=r.removePathTrailingSlash(t.pathname);let i,a;return e.pages.includes(o)?(i=!0,a=o):(a=I(o,e.pages),a!==t.pathname&&e.pages.includes(a)&&(i=!0)),{type:"rewrite",asPath:t.pathname,parsedAs:t,matchedPage:i,resolvedHref:a}}if(n.redirect){if(n.redirect.startsWith("/")){const e=r.removePathTrailingSlash(l.normalizeLocalePath(k(n.redirect)?O(n.redirect):n.redirect,this.locales).pathname),{url:t,as:o}=L(this,e,e);return{type:"redirect",newUrl:t,newAs:o}}return{type:"redirect",destination:n.redirect}}return n.refresh&&!n.ssr?{type:"refresh"}:{type:"next"}}_getPreflightData(e){const{preflightHref:t,shouldCache:n=!1,isPreview:r}=e,{href:o}=new URL(t,window.location.href);return!r&&n&&this.sde[o]?Promise.resolve(this.sde[o]):fetch(t,{method:"HEAD",credentials:"same-origin",headers:{"x-middleware-preflight":"1"}}).then((e=>{if(!e.ok)throw new Error("Failed to preflight request");return{cache:e.headers.get("x-middleware-cache"),redirect:e.headers.get("Location"),refresh:e.headers.has("x-middleware-refresh"),rewrite:e.headers.get("x-middleware-rewrite"),ssr:!!e.headers.get("x-middleware-ssr")}})).then((e=>(n&&"no-cache"!==e.cache&&(this.sde[o]=e),e))).catch((e=>{throw delete this.sde[o],e}))}getInitialProps(e,t){const{Component:n}=this.components["/_app"],r=this._wrapApp(n);return t.AppTree=r,s.loadGetInitialProps(n,{AppTree:r,Component:e,router:this,ctx:t})}abortComponentLoad(e,t){this.clc&&(F.events.emit("routeChangeError",w(),e,t),this.clc(),this.clc=null)}get route(){return this.state.route}get pathname(){return this.state.pathname}get query(){return this.state.query}get asPath(){return this.state.asPath}get locale(){return this.state.locale}get isFallback(){return this.state.isFallback}get isPreview(){return this.state.isPreview}}F.events=u.default(),t.default=F},6555:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatUrl=function(e){let{auth:t,hostname:n}=e,i=e.protocol||"",a=e.pathname||"",l=e.hash||"",u=e.query||"",s=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?s=t+e.host:n&&(s=t+(~n.indexOf(":")?`[${n}]`:n),e.port&&(s+=":"+e.port)),u&&"object"==typeof u&&(u=String(r.urlQueryToSearchParams(u)));let c=e.search||u&&`?${u}`||"";return i&&":"!==i.substr(-1)&&(i+=":"),e.slashes||(!i||o.test(i))&&!1!==s?(s="//"+(s||""),a&&"/"!==a[0]&&(a="/"+a)):s||(s=""),l&&"#"!==l[0]&&(l="#"+l),c&&"?"!==c[0]&&(c="?"+c),a=a.replace(/[?#]/g,encodeURIComponent),c=c.replace("#","%23"),`${i}${s}${a}${c}${l}`};var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(n(646));const o=/https?|ftp|gopher|file/},9983:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t=""){return("/"===e?"/index":/^\/index(\/|$)/.test(e)?`/index${e}`:`${e}`)+t}},2763:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getMiddlewareRegex=function(e,t=!0){const n=r.getParametrizedRoute(e);let o=t?"(?!_next).*":"",i=t?"(?:(/.*)?)":"";return"routeKeys"in n?"/"===n.parameterizedRoute?{groups:{},namedRegex:`^/${o}$`,re:new RegExp(`^/${o}$`),routeKeys:{}}:{groups:n.groups,namedRegex:`^${n.namedParameterizedRoute}${i}$`,re:new RegExp(`^${n.parameterizedRoute}${i}$`),routeKeys:n.routeKeys}:"/"===n.parameterizedRoute?{groups:{},re:new RegExp(`^/${o}$`)}:{groups:{},re:new RegExp(`^${n.parameterizedRoute}${i}$`)}};var r=n(4794)},9150:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getMiddlewareRegex",{enumerable:!0,get:function(){return r.getMiddlewareRegex}}),Object.defineProperty(t,"getRouteMatcher",{enumerable:!0,get:function(){return o.getRouteMatcher}}),Object.defineProperty(t,"getRouteRegex",{enumerable:!0,get:function(){return i.getRouteRegex}}),Object.defineProperty(t,"getSortedRoutes",{enumerable:!0,get:function(){return a.getSortedRoutes}}),Object.defineProperty(t,"isDynamicRoute",{enumerable:!0,get:function(){return l.isDynamicRoute}});var r=n(2763),o=n(3107),i=n(4794),a=n(9036),l=n(7482)},7482:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isDynamicRoute=function(e){return n.test(e)};const n=/\/\[[^/]+?\](?=\/|$)/},1577:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseRelativeUrl=function(e,t){const n=new URL("undefined"==typeof window?"http://n":r.getLocationOrigin()),i=t?new URL(t,n):n,{pathname:a,searchParams:l,search:u,hash:s,href:c,origin:f}=new URL(e,i);if(f!==n.origin)throw new Error(`invariant: invalid relative URL, router received ${e}`);return{pathname:a,query:o.searchParamsToUrlQuery(l),search:u,hash:s,href:c.slice(n.origin.length)}};var r=n(1624),o=n(646)},2011:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseUrl=function(e){if(e.startsWith("/"))return o.parseRelativeUrl(e);const t=new URL(e);return{hash:t.hash,hostname:t.hostname,href:t.href,pathname:t.pathname,port:t.port,protocol:t.protocol,query:r.searchParamsToUrlQuery(t.searchParams),search:t.search}};var r=n(646),o=n(1577)},1095:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.customRouteMatcherOptions=t.matcherOptions=t.pathToRegexp=void 0;var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(n(9264));t.pathToRegexp=r;const o={sensitive:!1,delimiter:"/"};t.matcherOptions=o;const i={...o,strict:!0};t.customRouteMatcherOptions=i,t.default=(e=!1)=>(t,n)=>{const a=[];let l=r.pathToRegexp(t,a,e?i:o);if(n){const e=n(l.source);l=new RegExp(e,l.flags)}const u=r.regexpToFunction(l,a);return(t,n)=>{const r=null!=t&&u(t);if(!r)return!1;if(e)for(const e of a)"number"==typeof e.name&&delete r.params[e.name];return{...n,...r.params}}}},9716:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.matchHas=function(e,t,n){const r={};return!!t.every((t=>{let o,i=t.key;switch(t.type){case"header":i=i.toLowerCase(),o=e.headers[i];break;case"cookie":o=e.cookies[t.key];break;case"query":o=n[i];break;case"host":{const{host:t}=(null==e?void 0:e.headers)||{};o=null==t?void 0:t.split(":")[0].toLowerCase();break}}if(!t.value&&o)return r[function(e){let t="";for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);(r>64&&r<91||r>96&&r<123)&&(t+=e[n])}return t}(i)]=o,!0;if(o){const e=new RegExp(`^${t.value}$`),n=Array.isArray(o)?o.slice(-1)[0].match(e):o.match(e);if(n)return Array.isArray(n)&&(n.groups?Object.keys(n.groups).forEach((e=>{r[e]=n.groups[e]})):"host"===t.type&&n[0]&&(r.host=n[0])),!0}return!1}))&&r},t.compileNonPath=a,t.prepareDestination=function(e){const t=Object.assign({},e.query);delete t.__nextLocale,delete t.__nextDefaultLocale;let n=e.destination;for(const r of Object.keys({...e.params,...t}))u=r,n=n.replace(new RegExp(`:${o.escapeStringRegexp(u)}`,"g"),`__ESC_COLON_${u}`);var u;const s=i.parseUrl(n),c=s.query,f=l(`${s.pathname}${s.hash||""}`),d=l(s.hostname||""),h=[],p=[];r.pathToRegexp(f,h),r.pathToRegexp(d,p);const g=[];h.forEach((e=>g.push(e.name))),p.forEach((e=>g.push(e.name)));const v=r.compile(f,{validate:!1}),m=r.compile(d,{validate:!1});for(const[t,n]of Object.entries(c))Array.isArray(n)?c[t]=n.map((t=>a(l(t),e.params))):c[t]=a(l(n),e.params);let y,b=Object.keys(e.params).filter((e=>"nextInternalLocale"!==e));if(e.appendParamsToQuery&&!b.some((e=>g.includes(e))))for(const t of b)t in c||(c[t]=e.params[t]);try{y=v(e.params);const[t,n]=y.split("#");s.hostname=m(e.params),s.pathname=t,s.hash=`${n?"#":""}${n||""}`,delete s.search}catch(e){if(e.message.match(/Expected .*? to not repeat, but got an array/))throw new Error("To use a multi-match in the destination you must add `*` at the end of the param name to signify it should repeat. https://nextjs.org/docs/messages/invalid-multi-match");throw e}return s.query={...t,...s.query},{newUrl:y,parsedDestination:s}};var r=n(9264),o=n(8058),i=n(2011);function a(e,t){if(!e.includes(":"))return e;for(const n of Object.keys(t))e.includes(`:${n}`)&&(e=e.replace(new RegExp(`:${n}\\*`,"g"),`:${n}--ESCAPED_PARAM_ASTERISKS`).replace(new RegExp(`:${n}\\?`,"g"),`:${n}--ESCAPED_PARAM_QUESTION`).replace(new RegExp(`:${n}\\+`,"g"),`:${n}--ESCAPED_PARAM_PLUS`).replace(new RegExp(`:${n}(?!\\w)`,"g"),`--ESCAPED_PARAM_COLON${n}`));return e=e.replace(/(:|\*|\?|\+|\(|\)|\{|\})/g,"\\$1").replace(/--ESCAPED_PARAM_PLUS/g,"+").replace(/--ESCAPED_PARAM_COLON/g,":").replace(/--ESCAPED_PARAM_QUESTION/g,"?").replace(/--ESCAPED_PARAM_ASTERISKS/g,"*"),r.compile(`/${e}`,{validate:!1})(t).substr(1)}function l(e){return e.replace(/__ESC_COLON_/gi,":")}},646:(e,t)=>{"use strict";function n(e){return"string"==typeof e||"number"==typeof e&&!isNaN(e)||"boolean"==typeof e?String(e):""}Object.defineProperty(t,"__esModule",{value:!0}),t.searchParamsToUrlQuery=function(e){const t={};return e.forEach(((e,n)=>{void 0===t[n]?t[n]=e:Array.isArray(t[n])?t[n].push(e):t[n]=[t[n],e]})),t},t.urlQueryToSearchParams=function(e){const t=new URLSearchParams;return Object.entries(e).forEach((([e,r])=>{Array.isArray(r)?r.forEach((r=>t.append(e,n(r)))):t.set(e,n(r))})),t},t.assign=function(e,...t){return t.forEach((t=>{Array.from(t.keys()).forEach((t=>e.delete(t))),t.forEach(((t,n)=>e.append(n,t)))})),e}},5317:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n,r,o,f){let d,h=!1,p=!1,g=u.parseRelativeUrl(e),v=a.removePathTrailingSlash(l.normalizeLocalePath(s.delBasePath(g.pathname),f).pathname);const m=n=>{let u=c(n.source)(g.pathname);if(n.has&&u){const e=i.matchHas({headers:{host:document.location.hostname},cookies:document.cookie.split("; ").reduce(((e,t)=>{const[n,...r]=t.split("=");return e[n]=r.join("="),e}),{})},n.has,g.query);e?Object.assign(u,e):u=!1}if(u){if(!n.destination)return p=!0,!0;const c=i.prepareDestination({appendParamsToQuery:!0,destination:n.destination,params:u,query:r});if(g=c.parsedDestination,e=c.newUrl,Object.assign(r,c.parsedDestination.query),v=a.removePathTrailingSlash(l.normalizeLocalePath(s.delBasePath(e),f).pathname),t.includes(v))return h=!0,d=v,!0;if(d=o(v),d!==e&&t.includes(d))return h=!0,!0}};let y=!1;for(let e=0;e<n.beforeFiles.length;e++)y=m(n.beforeFiles[e])||!1;if(h=t.includes(v),!h){if(!y)for(let e=0;e<n.afterFiles.length;e++)if(m(n.afterFiles[e])){y=!0;break}if(y||(d=o(v),h=t.includes(d),y=h),!y)for(let e=0;e<n.fallback.length;e++)if(m(n.fallback[e])){y=!0;break}}return{asPath:e,parsedAs:g,matchedPage:h,resolvedHref:d,externalDest:p}};var r,o=(r=n(1095))&&r.__esModule?r:{default:r},i=n(9716),a=n(1119),l=n(816),u=n(1577),s=n(6640);const c=o.default(!0)},3107:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getRouteMatcher=function(e){const{re:t,groups:n}=e;return e=>{const o=t.exec(e);if(!o)return!1;const i=e=>{try{return decodeURIComponent(e)}catch(e){throw new r.DecodeError("failed to decode param")}},a={};return Object.keys(n).forEach((e=>{const t=n[e],r=o[t.pos];void 0!==r&&(a[e]=~r.indexOf("/")?r.split("/").map((e=>i(e))):t.repeat?[i(r)]:i(r))})),a}};var r=n(1624)},4794:(e,t)=>{"use strict";function n(e){return e.replace(/[|\\{}()[\]^$+*?.-]/g,"\\$&")}function r(e){const t=e.startsWith("[")&&e.endsWith("]");t&&(e=e.slice(1,-1));const n=e.startsWith("...");return n&&(e=e.slice(3)),{key:e,repeat:n,optional:t}}function o(e){const t=(e.replace(/\/$/,"")||"/").slice(1).split("/"),o={};let i=1;const a=t.map((e=>{if(e.startsWith("[")&&e.endsWith("]")){const{key:t,optional:n,repeat:a}=r(e.slice(1,-1));return o[t]={pos:i++,repeat:a,optional:n},a?n?"(?:/(.+?))?":"/(.+?)":"/([^/]+?)"}return`/${n(e)}`})).join("");if("undefined"==typeof window){let e=97,i=1;const l=()=>{let t="";for(let n=0;n<i;n++)t+=String.fromCharCode(e),e++,e>122&&(i++,e=97);return t},u={};return{parameterizedRoute:a,namedParameterizedRoute:t.map((e=>{if(e.startsWith("[")&&e.endsWith("]")){const{key:t,optional:n,repeat:o}=r(e.slice(1,-1));let i=t.replace(/\W/g,""),a=!1;return(0===i.length||i.length>30)&&(a=!0),isNaN(parseInt(i.substr(0,1)))||(a=!0),a&&(i=l()),u[i]=t,o?n?`(?:/(?<${i}>.+?))?`:`/(?<${i}>.+?)`:`/(?<${i}>[^/]+?)`}return`/${n(e)}`})).join(""),groups:o,routeKeys:u}}return{parameterizedRoute:a,groups:o}}Object.defineProperty(t,"__esModule",{value:!0}),t.getParametrizedRoute=o,t.getRouteRegex=function(e){const t=o(e);return"routeKeys"in t?{re:new RegExp(`^${t.parameterizedRoute}(?:/)?$`),groups:t.groups,routeKeys:t.routeKeys,namedRegex:`^${t.namedParameterizedRoute}(?:/)?$`}:{re:new RegExp(`^${t.parameterizedRoute}(?:/)?$`),groups:t.groups}}},9036:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getSortedRoutes=function(e){const t=new n;return e.forEach((e=>t.insert(e))),t.smoosh()};class n{insert(e){this._insert(e.split("/").filter(Boolean),[],!1)}smoosh(){return this._smoosh()}_smoosh(e="/"){const t=[...this.children.keys()].sort();null!==this.slugName&&t.splice(t.indexOf("[]"),1),null!==this.restSlugName&&t.splice(t.indexOf("[...]"),1),null!==this.optionalRestSlugName&&t.splice(t.indexOf("[[...]]"),1);const n=t.map((t=>this.children.get(t)._smoosh(`${e}${t}/`))).reduce(((e,t)=>[...e,...t]),[]);if(null!==this.slugName&&n.push(...this.children.get("[]")._smoosh(`${e}[${this.slugName}]/`)),!this.placeholder){const t="/"===e?"/":e.slice(0,-1);if(null!=this.optionalRestSlugName)throw new Error(`You cannot define a route with the same specificity as a optional catch-all route ("${t}" and "${t}[[...${this.optionalRestSlugName}]]").`);n.unshift(t)}return null!==this.restSlugName&&n.push(...this.children.get("[...]")._smoosh(`${e}[...${this.restSlugName}]/`)),null!==this.optionalRestSlugName&&n.push(...this.children.get("[[...]]")._smoosh(`${e}[[...${this.optionalRestSlugName}]]/`)),n}_insert(e,t,r){if(0===e.length)return void(this.placeholder=!1);if(r)throw new Error("Catch-all must be the last part of the URL.");let o=e[0];if(o.startsWith("[")&&o.endsWith("]")){let i=o.slice(1,-1),a=!1;if(i.startsWith("[")&&i.endsWith("]")&&(i=i.slice(1,-1),a=!0),i.startsWith("...")&&(i=i.substring(3),r=!0),i.startsWith("[")||i.endsWith("]"))throw new Error(`Segment names may not start or end with extra brackets ('${i}').`);if(i.startsWith("."))throw new Error(`Segment names may not start with erroneous periods ('${i}').`);function l(e,n){if(null!==e&&e!==n)throw new Error(`You cannot use different slug names for the same dynamic path ('${e}' !== '${n}').`);t.forEach((e=>{if(e===n)throw new Error(`You cannot have the same slug name "${n}" repeat within a single dynamic path`);if(e.replace(/\W/g,"")===o.replace(/\W/g,""))throw new Error(`You cannot have the slug names "${e}" and "${n}" differ only by non-word symbols within a single dynamic path`)})),t.push(n)}if(r)if(a){if(null!=this.restSlugName)throw new Error(`You cannot use both an required and optional catch-all route at the same level ("[...${this.restSlugName}]" and "${e[0]}" ).`);l(this.optionalRestSlugName,i),this.optionalRestSlugName=i,o="[[...]]"}else{if(null!=this.optionalRestSlugName)throw new Error(`You cannot use both an optional and required catch-all route at the same level ("[[...${this.optionalRestSlugName}]]" and "${e[0]}").`);l(this.restSlugName,i),this.restSlugName=i,o="[...]"}else{if(a)throw new Error(`Optional route parameters are not yet supported ("${e[0]}").`);l(this.slugName,i),this.slugName=i,o="[]"}}this.children.has(o)||this.children.set(o,new n),this.children.get(o)._insert(e.slice(1),t,r)}constructor(){this.placeholder=!0,this.children=new Map,this.slugName=null,this.restSlugName=null,this.optionalRestSlugName=null}}},1624:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.execOnce=function(e){let t,n=!1;return(...r)=>(n||(n=!0,t=e(...r)),t)},t.getLocationOrigin=i,t.getURL=function(){const{href:e}=window.location,t=i();return e.substring(t.length)},t.getDisplayName=a,t.isResSent=l,t.normalizeRepeatedSlashes=function(e){const t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?`?${t.slice(1).join("?")}`:"")},t.loadGetInitialProps=async function e(t,n){const r=n.res||n.ctx&&n.ctx.res;if(!t.getInitialProps)return n.ctx&&n.Component?{pageProps:await e(n.Component,n.ctx)}:{};const o=await t.getInitialProps(n);if(r&&l(r))return o;if(!o){const e=`"${a(t)}.getInitialProps()" should resolve to an object. But found "${o}" instead.`;throw new Error(e)}return o},t.formatWithValidation=function(e){return o.formatUrl(e)},t.HtmlContext=t.ST=t.SP=t.urlObjectKeys=void 0;var r=n(2784),o=n(6555);function i(){const{protocol:e,hostname:t,port:n}=window.location;return`${e}//${t}${n?":"+n:""}`}function a(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function l(e){return e.finished||e.headersSent}t.urlObjectKeys=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];const u="undefined"!=typeof performance;t.SP=u;const s=u&&"function"==typeof performance.mark&&"function"==typeof performance.measure;t.ST=s;class c extends Error{}t.DecodeError=c;const f=r.createContext(null);t.HtmlContext=f},5632:(e,t,n)=>{e.exports=n(9518)},5847:(e,t,n)=>{e.exports=n(9515)},7320:e=>{"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function o(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,i){for(var a,l,u=o(e),s=1;s<arguments.length;s++){for(var c in a=Object(arguments[s]))n.call(a,c)&&(u[c]=a[c]);if(t){l=t(a);for(var f=0;f<l.length;f++)r.call(a,l[f])&&(u[l[f]]=a[l[f]])}}return u}},2967:(e,t,n)=>{"use strict";var r=n(2784),o=n(7320),i=n(4616);function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!r)throw Error(a(227));var l=new Set,u={};function s(e,t){c(e,t),c(e+"Capture",t)}function c(e,t){for(u[e]=t,e=0;e<t.length;e++)l.add(t[e])}var f=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),d=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,h=Object.prototype.hasOwnProperty,p={},g={};function v(e,t,n,r,o,i,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var m={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){m[e]=new v(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];m[t]=new v(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){m[e]=new v(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){m[e]=new v(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){m[e]=new v(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){m[e]=new v(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){m[e]=new v(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){m[e]=new v(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){m[e]=new v(e,5,!1,e.toLowerCase(),null,!1,!1)}));var y=/[\-:]([a-z])/g;function b(e){return e[1].toUpperCase()}function w(e,t,n,r){var o=m.hasOwnProperty(t)?m[t]:null;(null!==o?0===o.type:!r&&2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1]))||(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!h.call(g,e)||!h.call(p,e)&&(d.test(e)?g[e]=!0:(p[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(y,b);m[t]=new v(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(y,b);m[t]=new v(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(y,b);m[t]=new v(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){m[e]=new v(e,1,!1,e.toLowerCase(),null,!1,!1)})),m.xlinkHref=new v("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){m[e]=new v(e,1,!1,e.toLowerCase(),null,!0,!0)}));var _=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,x=60103,E=60106,S=60107,k=60108,C=60114,O=60109,P=60110,T=60112,R=60113,j=60120,A=60115,L=60116,I=60121,D=60128,N=60129,M=60130,z=60131;if("function"==typeof Symbol&&Symbol.for){var F=Symbol.for;x=F("react.element"),E=F("react.portal"),S=F("react.fragment"),k=F("react.strict_mode"),C=F("react.profiler"),O=F("react.provider"),P=F("react.context"),T=F("react.forward_ref"),R=F("react.suspense"),j=F("react.suspense_list"),A=F("react.memo"),L=F("react.lazy"),I=F("react.block"),F("react.scope"),D=F("react.opaque.id"),N=F("react.debug_trace_mode"),M=F("react.offscreen"),z=F("react.legacy_hidden")}var $,U="function"==typeof Symbol&&Symbol.iterator;function B(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=U&&e[U]||e["@@iterator"])?e:null}function H(e){if(void 0===$)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);$=t&&t[1]||""}return"\n"+$+e}var W=!1;function V(e,t){if(!e||W)return"";W=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(e){if(e&&r&&"string"==typeof e.stack){for(var o=e.stack.split("\n"),i=r.stack.split("\n"),a=o.length-1,l=i.length-1;1<=a&&0<=l&&o[a]!==i[l];)l--;for(;1<=a&&0<=l;a--,l--)if(o[a]!==i[l]){if(1!==a||1!==l)do{if(a--,0>--l||o[a]!==i[l])return"\n"+o[a].replace(" at new "," at ")}while(1<=a&&0<=l);break}}}finally{W=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?H(e):""}function q(e){switch(e.tag){case 5:return H(e.type);case 16:return H("Lazy");case 13:return H("Suspense");case 19:return H("SuspenseList");case 0:case 2:case 15:return V(e.type,!1);case 11:return V(e.type.render,!1);case 22:return V(e.type._render,!1);case 1:return V(e.type,!0);default:return""}}function K(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case S:return"Fragment";case E:return"Portal";case C:return"Profiler";case k:return"StrictMode";case R:return"Suspense";case j:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case P:return(e.displayName||"Context")+".Consumer";case O:return(e._context.displayName||"Context")+".Provider";case T:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case A:return K(e.type);case I:return K(e._render);case L:t=e._payload,e=e._init;try{return K(e(t))}catch(e){}}return null}function X(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function G(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function Y(e){e._valueTracker||(e._valueTracker=function(e){var t=G(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function Q(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=G(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function Z(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function J(e,t){var n=t.checked;return o({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function ee(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=X(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function te(e,t){null!=(t=t.checked)&&w(e,"checked",t,!1)}function ne(e,t){te(e,t);var n=X(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?oe(e,t.type,n):t.hasOwnProperty("defaultValue")&&oe(e,t.type,X(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function re(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function oe(e,t,n){"number"===t&&Z(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function ie(e,t){return e=o({children:void 0},t),(t=function(e){var t="";return r.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function ae(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+X(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function le(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(a(91));return o({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ue(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(a(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(a(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:X(n)}}function se(e,t){var n=X(t.value),r=X(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ce(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var fe="http://www.w3.org/1999/xhtml";function de(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function he(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?de(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var pe,ge,ve=(ge=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((pe=pe||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=pe.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return ge(e,t)}))}:ge);function me(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var ye={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},be=["Webkit","ms","Moz","O"];function we(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||ye.hasOwnProperty(e)&&ye[e]?(""+t).trim():t+"px"}function _e(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=we(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(ye).forEach((function(e){be.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),ye[t]=ye[e]}))}));var xe=o({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Ee(e,t){if(t){if(xe[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(a(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(a(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(a(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(a(62))}}function Se(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function ke(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Ce=null,Oe=null,Pe=null;function Te(e){if(e=Jr(e)){if("function"!=typeof Ce)throw Error(a(280));var t=e.stateNode;t&&(t=to(t),Ce(e.stateNode,e.type,t))}}function Re(e){Oe?Pe?Pe.push(e):Pe=[e]:Oe=e}function je(){if(Oe){var e=Oe,t=Pe;if(Pe=Oe=null,Te(e),t)for(e=0;e<t.length;e++)Te(t[e])}}function Ae(e,t){return e(t)}function Le(e,t,n,r,o){return e(t,n,r,o)}function Ie(){}var De=Ae,Ne=!1,Me=!1;function ze(){null===Oe&&null===Pe||(Ie(),je())}function Fe(e,t){var n=e.stateNode;if(null===n)return null;var r=to(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(a(231,t,typeof n));return n}var $e=!1;if(f)try{var Ue={};Object.defineProperty(Ue,"passive",{get:function(){$e=!0}}),window.addEventListener("test",Ue,Ue),window.removeEventListener("test",Ue,Ue)}catch(ge){$e=!1}function Be(e,t,n,r,o,i,a,l,u){var s=Array.prototype.slice.call(arguments,3);try{t.apply(n,s)}catch(e){this.onError(e)}}var He=!1,We=null,Ve=!1,qe=null,Ke={onError:function(e){He=!0,We=e}};function Xe(e,t,n,r,o,i,a,l,u){He=!1,We=null,Be.apply(Ke,arguments)}function Ge(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(1026&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Ye(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function Qe(e){if(Ge(e)!==e)throw Error(a(188))}function Ze(e){if(e=function(e){var t=e.alternate;if(!t){if(null===(t=Ge(e)))throw Error(a(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var i=o.alternate;if(null===i){if(null!==(r=o.return)){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return Qe(o),e;if(i===r)return Qe(o),t;i=i.sibling}throw Error(a(188))}if(n.return!==r.return)n=o,r=i;else{for(var l=!1,u=o.child;u;){if(u===n){l=!0,n=o,r=i;break}if(u===r){l=!0,r=o,n=i;break}u=u.sibling}if(!l){for(u=i.child;u;){if(u===n){l=!0,n=i,r=o;break}if(u===r){l=!0,r=i,n=o;break}u=u.sibling}if(!l)throw Error(a(189))}}if(n.alternate!==r)throw Error(a(190))}if(3!==n.tag)throw Error(a(188));return n.stateNode.current===n?e:t}(e),!e)return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function Je(e,t){for(var n=e.alternate;null!==t;){if(t===e||t===n)return!0;t=t.return}return!1}var et,tt,nt,rt,ot=!1,it=[],at=null,lt=null,ut=null,st=new Map,ct=new Map,ft=[],dt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function ht(e,t,n,r,o){return{blockedOn:e,domEventName:t,eventSystemFlags:16|n,nativeEvent:o,targetContainers:[r]}}function pt(e,t){switch(e){case"focusin":case"focusout":at=null;break;case"dragenter":case"dragleave":lt=null;break;case"mouseover":case"mouseout":ut=null;break;case"pointerover":case"pointerout":st.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ct.delete(t.pointerId)}}function gt(e,t,n,r,o,i){return null===e||e.nativeEvent!==i?(e=ht(t,n,r,o,i),null!==t&&null!==(t=Jr(t))&&tt(t),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function vt(e){var t=Zr(e.target);if(null!==t){var n=Ge(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Ye(n)))return e.blockedOn=t,void rt(e.lanePriority,(function(){i.unstable_runWithPriority(e.priority,(function(){nt(n)}))}))}else if(3===t&&n.stateNode.hydrate)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function mt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Zt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=Jr(n))&&tt(t),e.blockedOn=n,!1;t.shift()}return!0}function yt(e,t,n){mt(e)&&n.delete(t)}function bt(){for(ot=!1;0<it.length;){var e=it[0];if(null!==e.blockedOn){null!==(e=Jr(e.blockedOn))&&et(e);break}for(var t=e.targetContainers;0<t.length;){var n=Zt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n){e.blockedOn=n;break}t.shift()}null===e.blockedOn&&it.shift()}null!==at&&mt(at)&&(at=null),null!==lt&&mt(lt)&&(lt=null),null!==ut&&mt(ut)&&(ut=null),st.forEach(yt),ct.forEach(yt)}function wt(e,t){e.blockedOn===t&&(e.blockedOn=null,ot||(ot=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,bt)))}function _t(e){function t(t){return wt(t,e)}if(0<it.length){wt(it[0],e);for(var n=1;n<it.length;n++){var r=it[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==at&&wt(at,e),null!==lt&&wt(lt,e),null!==ut&&wt(ut,e),st.forEach(t),ct.forEach(t),n=0;n<ft.length;n++)(r=ft[n]).blockedOn===e&&(r.blockedOn=null);for(;0<ft.length&&null===(n=ft[0]).blockedOn;)vt(n),null===n.blockedOn&&ft.shift()}function xt(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Et={animationend:xt("Animation","AnimationEnd"),animationiteration:xt("Animation","AnimationIteration"),animationstart:xt("Animation","AnimationStart"),transitionend:xt("Transition","TransitionEnd")},St={},kt={};function Ct(e){if(St[e])return St[e];if(!Et[e])return e;var t,n=Et[e];for(t in n)if(n.hasOwnProperty(t)&&t in kt)return St[e]=n[t];return e}f&&(kt=document.createElement("div").style,"AnimationEvent"in window||(delete Et.animationend.animation,delete Et.animationiteration.animation,delete Et.animationstart.animation),"TransitionEvent"in window||delete Et.transitionend.transition);var Ot=Ct("animationend"),Pt=Ct("animationiteration"),Tt=Ct("animationstart"),Rt=Ct("transitionend"),jt=new Map,At=new Map,Lt=["abort","abort",Ot,"animationEnd",Pt,"animationIteration",Tt,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",Rt,"transitionEnd","waiting","waiting"];function It(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],o=e[n+1];o="on"+(o[0].toUpperCase()+o.slice(1)),At.set(r,t),jt.set(r,o),s(o,[r])}}(0,i.unstable_now)();var Dt=8;function Nt(e){if(0!=(1&e))return Dt=15,1;if(0!=(2&e))return Dt=14,2;if(0!=(4&e))return Dt=13,4;var t=24&e;return 0!==t?(Dt=12,t):0!=(32&e)?(Dt=11,32):0!=(t=192&e)?(Dt=10,t):0!=(256&e)?(Dt=9,256):0!=(t=3584&e)?(Dt=8,t):0!=(4096&e)?(Dt=7,4096):0!=(t=4186112&e)?(Dt=6,t):0!=(t=62914560&e)?(Dt=5,t):67108864&e?(Dt=4,67108864):0!=(134217728&e)?(Dt=3,134217728):0!=(t=805306368&e)?(Dt=2,t):0!=(1073741824&e)?(Dt=1,1073741824):(Dt=8,e)}function Mt(e,t){var n=e.pendingLanes;if(0===n)return Dt=0;var r=0,o=0,i=e.expiredLanes,a=e.suspendedLanes,l=e.pingedLanes;if(0!==i)r=i,o=Dt=15;else if(0!=(i=134217727&n)){var u=i&~a;0!==u?(r=Nt(u),o=Dt):0!=(l&=i)&&(r=Nt(l),o=Dt)}else 0!=(i=n&~a)?(r=Nt(i),o=Dt):0!==l&&(r=Nt(l),o=Dt);if(0===r)return 0;if(r=n&((0>(r=31-Ht(r))?0:1<<r)<<1)-1,0!==t&&t!==r&&0==(t&a)){if(Nt(t),o<=Dt)return t;Dt=o}if(0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-Ht(t)),r|=e[n],t&=~o;return r}function zt(e){return 0!=(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function Ft(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return 0===(e=$t(24&~t))?Ft(10,t):e;case 10:return 0===(e=$t(192&~t))?Ft(8,t):e;case 8:return 0===(e=$t(3584&~t))&&0===(e=$t(4186112&~t))&&(e=512),e;case 2:return 0===(t=$t(805306368&~t))&&(t=268435456),t}throw Error(a(358,e))}function $t(e){return e&-e}function Ut(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Bt(e,t,n){e.pendingLanes|=t;var r=t-1;e.suspendedLanes&=r,e.pingedLanes&=r,(e=e.eventTimes)[t=31-Ht(t)]=n}var Ht=Math.clz32?Math.clz32:function(e){return 0===e?32:31-(Wt(e)/Vt|0)|0},Wt=Math.log,Vt=Math.LN2,qt=i.unstable_UserBlockingPriority,Kt=i.unstable_runWithPriority,Xt=!0;function Gt(e,t,n,r){Ne||Ie();var o=Qt,i=Ne;Ne=!0;try{Le(o,e,t,n,r)}finally{(Ne=i)||ze()}}function Yt(e,t,n,r){Kt(qt,Qt.bind(null,e,t,n,r))}function Qt(e,t,n,r){var o;if(Xt)if((o=0==(4&t))&&0<it.length&&-1<dt.indexOf(e))e=ht(null,e,t,n,r),it.push(e);else{var i=Zt(e,t,n,r);if(null===i)o&&pt(e,r);else{if(o){if(-1<dt.indexOf(e))return e=ht(i,e,t,n,r),void it.push(e);if(function(e,t,n,r,o){switch(t){case"focusin":return at=gt(at,e,t,n,r,o),!0;case"dragenter":return lt=gt(lt,e,t,n,r,o),!0;case"mouseover":return ut=gt(ut,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return st.set(i,gt(st.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,ct.set(i,gt(ct.get(i)||null,e,t,n,r,o)),!0}return!1}(i,e,t,n,r))return;pt(e,r)}jr(e,t,r,null,n)}}}function Zt(e,t,n,r){var o=ke(r);if(null!==(o=Zr(o))){var i=Ge(o);if(null===i)o=null;else{var a=i.tag;if(13===a){if(null!==(o=Ye(i)))return o;o=null}else if(3===a){if(i.stateNode.hydrate)return 3===i.tag?i.stateNode.containerInfo:null;o=null}else i!==o&&(o=null)}}return jr(e,t,r,o,n),null}var Jt=null,en=null,tn=null;function nn(){if(tn)return tn;var e,t,n=en,r=n.length,o="value"in Jt?Jt.value:Jt.textContent,i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===o[i-t];t++);return tn=o.slice(e,1<t?1-t:void 0)}function rn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function on(){return!0}function an(){return!1}function ln(e){function t(t,n,r,o,i){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(o):o[a]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?on:an,this.isPropagationStopped=an,this}return o(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=on)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=on)},persist:function(){},isPersistent:on}),t}var un,sn,cn,fn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},dn=ln(fn),hn=o({},fn,{view:0,detail:0}),pn=ln(hn),gn=o({},hn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Cn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==cn&&(cn&&"mousemove"===e.type?(un=e.screenX-cn.screenX,sn=e.screenY-cn.screenY):sn=un=0,cn=e),un)},movementY:function(e){return"movementY"in e?e.movementY:sn}}),vn=ln(gn),mn=ln(o({},gn,{dataTransfer:0})),yn=ln(o({},hn,{relatedTarget:0})),bn=ln(o({},fn,{animationName:0,elapsedTime:0,pseudoElement:0})),wn=ln(o({},fn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}})),_n=ln(o({},fn,{data:0})),xn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},En={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Sn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function kn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Sn[e])&&!!t[e]}function Cn(){return kn}var On=ln(o({},hn,{key:function(e){if(e.key){var t=xn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=rn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?En[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Cn,charCode:function(e){return"keypress"===e.type?rn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?rn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}})),Pn=ln(o({},gn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Tn=ln(o({},hn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Cn})),Rn=ln(o({},fn,{propertyName:0,elapsedTime:0,pseudoElement:0})),jn=ln(o({},gn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),An=[9,13,27,32],Ln=f&&"CompositionEvent"in window,In=null;f&&"documentMode"in document&&(In=document.documentMode);var Dn=f&&"TextEvent"in window&&!In,Nn=f&&(!Ln||In&&8<In&&11>=In),Mn=String.fromCharCode(32),zn=!1;function Fn(e,t){switch(e){case"keyup":return-1!==An.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function $n(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Un=!1,Bn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Hn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Bn[e.type]:"textarea"===t}function Wn(e,t,n,r){Re(r),0<(t=Lr(t,"onChange")).length&&(n=new dn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Vn=null,qn=null;function Kn(e){kr(e,0)}function Xn(e){if(Q(eo(e)))return e}function Gn(e,t){if("change"===e)return t}var Yn=!1;if(f){var Qn;if(f){var Zn="oninput"in document;if(!Zn){var Jn=document.createElement("div");Jn.setAttribute("oninput","return;"),Zn="function"==typeof Jn.oninput}Qn=Zn}else Qn=!1;Yn=Qn&&(!document.documentMode||9<document.documentMode)}function er(){Vn&&(Vn.detachEvent("onpropertychange",tr),qn=Vn=null)}function tr(e){if("value"===e.propertyName&&Xn(qn)){var t=[];if(Wn(t,qn,e,ke(e)),e=Kn,Ne)e(t);else{Ne=!0;try{Ae(e,t)}finally{Ne=!1,ze()}}}}function nr(e,t,n){"focusin"===e?(er(),qn=n,(Vn=t).attachEvent("onpropertychange",tr)):"focusout"===e&&er()}function rr(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Xn(qn)}function or(e,t){if("click"===e)return Xn(t)}function ir(e,t){if("input"===e||"change"===e)return Xn(t)}var ar="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},lr=Object.prototype.hasOwnProperty;function ur(e,t){if(ar(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!lr.call(t,n[r])||!ar(e[n[r]],t[n[r]]))return!1;return!0}function sr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function cr(e,t){var n,r=sr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=sr(r)}}function fr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?fr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function dr(){for(var e=window,t=Z();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=Z((e=t.contentWindow).document)}return t}function hr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var pr=f&&"documentMode"in document&&11>=document.documentMode,gr=null,vr=null,mr=null,yr=!1;function br(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;yr||null==gr||gr!==Z(r)||(r="selectionStart"in(r=gr)&&hr(r)?{start:r.selectionStart,end:r.selectionEnd}:{anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},mr&&ur(mr,r)||(mr=r,0<(r=Lr(vr,"onSelect")).length&&(t=new dn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=gr)))}It("cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focusin focus focusout blur input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),It("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),It(Lt,2);for(var wr="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),_r=0;_r<wr.length;_r++)At.set(wr[_r],0);c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),s("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),s("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),s("onBeforeInput",["compositionend","keypress","textInput","paste"]),s("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),s("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),s("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var xr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Er=new Set("cancel close invalid load scroll toggle".split(" ").concat(xr));function Sr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,o,i,l,u,s){if(Xe.apply(this,arguments),He){if(!He)throw Error(a(198));var c=We;He=!1,We=null,Ve||(Ve=!0,qe=c)}}(r,t,void 0,e),e.currentTarget=null}function kr(e,t){t=0!=(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var a=r.length-1;0<=a;a--){var l=r[a],u=l.instance,s=l.currentTarget;if(l=l.listener,u!==i&&o.isPropagationStopped())break e;Sr(o,l,s),i=u}else for(a=0;a<r.length;a++){if(u=(l=r[a]).instance,s=l.currentTarget,l=l.listener,u!==i&&o.isPropagationStopped())break e;Sr(o,l,s),i=u}}}if(Ve)throw e=qe,Ve=!1,qe=null,e}function Cr(e,t){var n=no(t),r=e+"__bubble";n.has(r)||(Rr(t,e,2,!1),n.add(r))}var Or="_reactListening"+Math.random().toString(36).slice(2);function Pr(e){e[Or]||(e[Or]=!0,l.forEach((function(t){Er.has(t)||Tr(t,!1,e,null),Tr(t,!0,e,null)})))}function Tr(e,t,n,r){var o=4<arguments.length&&void 0!==arguments[4]?arguments[4]:0,i=n;if("selectionchange"===e&&9!==n.nodeType&&(i=n.ownerDocument),null!==r&&!t&&Er.has(e)){if("scroll"!==e)return;o|=2,i=r}var a=no(i),l=e+"__"+(t?"capture":"bubble");a.has(l)||(t&&(o|=4),Rr(i,e,o,t),a.add(l))}function Rr(e,t,n,r){var o=At.get(t);switch(void 0===o?2:o){case 0:o=Gt;break;case 1:o=Yt;break;default:o=Qt}n=o.bind(null,t,n,e),o=void 0,!$e||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function jr(e,t,n,r,o){var i=r;if(0==(1&t)&&0==(2&t)&&null!==r)e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var l=r.stateNode.containerInfo;if(l===o||8===l.nodeType&&l.parentNode===o)break;if(4===a)for(a=r.return;null!==a;){var u=a.tag;if((3===u||4===u)&&((u=a.stateNode.containerInfo)===o||8===u.nodeType&&u.parentNode===o))return;a=a.return}for(;null!==l;){if(null===(a=Zr(l)))return;if(5===(u=a.tag)||6===u){r=i=a;continue e}l=l.parentNode}}r=r.return}!function(e,t,n){if(Me)return e();Me=!0;try{De(e,t,n)}finally{Me=!1,ze()}}((function(){var r=i,o=ke(n),a=[];e:{var l=jt.get(e);if(void 0!==l){var u=dn,s=e;switch(e){case"keypress":if(0===rn(n))break e;case"keydown":case"keyup":u=On;break;case"focusin":s="focus",u=yn;break;case"focusout":s="blur",u=yn;break;case"beforeblur":case"afterblur":u=yn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":u=vn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":u=mn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":u=Tn;break;case Ot:case Pt:case Tt:u=bn;break;case Rt:u=Rn;break;case"scroll":u=pn;break;case"wheel":u=jn;break;case"copy":case"cut":case"paste":u=wn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":u=Pn}var c=0!=(4&t),f=!c&&"scroll"===e,d=c?null!==l?l+"Capture":null:l;c=[];for(var h,p=r;null!==p;){var g=(h=p).stateNode;if(5===h.tag&&null!==g&&(h=g,null!==d&&null!=(g=Fe(p,d))&&c.push(Ar(p,g,h))),f)break;p=p.return}0<c.length&&(l=new u(l,s,null,n,o),a.push({event:l,listeners:c}))}}if(0==(7&t)){if(u="mouseout"===e||"pointerout"===e,(!(l="mouseover"===e||"pointerover"===e)||0!=(16&t)||!(s=n.relatedTarget||n.fromElement)||!Zr(s)&&!s[Yr])&&(u||l)&&(l=o.window===o?o:(l=o.ownerDocument)?l.defaultView||l.parentWindow:window,u?(u=r,null!==(s=(s=n.relatedTarget||n.toElement)?Zr(s):null)&&(s!==(f=Ge(s))||5!==s.tag&&6!==s.tag)&&(s=null)):(u=null,s=r),u!==s)){if(c=vn,g="onMouseLeave",d="onMouseEnter",p="mouse","pointerout"!==e&&"pointerover"!==e||(c=Pn,g="onPointerLeave",d="onPointerEnter",p="pointer"),f=null==u?l:eo(u),h=null==s?l:eo(s),(l=new c(g,p+"leave",u,n,o)).target=f,l.relatedTarget=h,g=null,Zr(o)===r&&((c=new c(d,p+"enter",s,n,o)).target=h,c.relatedTarget=f,g=c),f=g,u&&s)e:{for(d=s,p=0,h=c=u;h;h=Ir(h))p++;for(h=0,g=d;g;g=Ir(g))h++;for(;0<p-h;)c=Ir(c),p--;for(;0<h-p;)d=Ir(d),h--;for(;p--;){if(c===d||null!==d&&c===d.alternate)break e;c=Ir(c),d=Ir(d)}c=null}else c=null;null!==u&&Dr(a,l,u,c,!1),null!==s&&null!==f&&Dr(a,f,s,c,!0)}if("select"===(u=(l=r?eo(r):window).nodeName&&l.nodeName.toLowerCase())||"input"===u&&"file"===l.type)var v=Gn;else if(Hn(l))if(Yn)v=ir;else{v=rr;var m=nr}else(u=l.nodeName)&&"input"===u.toLowerCase()&&("checkbox"===l.type||"radio"===l.type)&&(v=or);switch(v&&(v=v(e,r))?Wn(a,v,n,o):(m&&m(e,l,r),"focusout"===e&&(m=l._wrapperState)&&m.controlled&&"number"===l.type&&oe(l,"number",l.value)),m=r?eo(r):window,e){case"focusin":(Hn(m)||"true"===m.contentEditable)&&(gr=m,vr=r,mr=null);break;case"focusout":mr=vr=gr=null;break;case"mousedown":yr=!0;break;case"contextmenu":case"mouseup":case"dragend":yr=!1,br(a,n,o);break;case"selectionchange":if(pr)break;case"keydown":case"keyup":br(a,n,o)}var y;if(Ln)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else Un?Fn(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(Nn&&"ko"!==n.locale&&(Un||"onCompositionStart"!==b?"onCompositionEnd"===b&&Un&&(y=nn()):(en="value"in(Jt=o)?Jt.value:Jt.textContent,Un=!0)),0<(m=Lr(r,b)).length&&(b=new _n(b,e,null,n,o),a.push({event:b,listeners:m}),(y||null!==(y=$n(n)))&&(b.data=y))),(y=Dn?function(e,t){switch(e){case"compositionend":return $n(t);case"keypress":return 32!==t.which?null:(zn=!0,Mn);case"textInput":return(e=t.data)===Mn&&zn?null:e;default:return null}}(e,n):function(e,t){if(Un)return"compositionend"===e||!Ln&&Fn(e,t)?(e=nn(),tn=en=Jt=null,Un=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Nn&&"ko"!==t.locale?null:t.data}}(e,n))&&0<(r=Lr(r,"onBeforeInput")).length&&(o=new _n("onBeforeInput","beforeinput",null,n,o),a.push({event:o,listeners:r}),o.data=y)}kr(a,t)}))}function Ar(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Lr(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,i=o.stateNode;5===o.tag&&null!==i&&(o=i,null!=(i=Fe(e,n))&&r.unshift(Ar(e,i,o)),null!=(i=Fe(e,t))&&r.push(Ar(e,i,o))),e=e.return}return r}function Ir(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Dr(e,t,n,r,o){for(var i=t._reactName,a=[];null!==n&&n!==r;){var l=n,u=l.alternate,s=l.stateNode;if(null!==u&&u===r)break;5===l.tag&&null!==s&&(l=s,o?null!=(u=Fe(n,i))&&a.unshift(Ar(n,u,l)):o||null!=(u=Fe(n,i))&&a.push(Ar(n,u,l))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}function Nr(){}var Mr=null,zr=null;function Fr(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function $r(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var Ur="function"==typeof setTimeout?setTimeout:void 0,Br="function"==typeof clearTimeout?clearTimeout:void 0;function Hr(e){(1===e.nodeType||9===e.nodeType&&null!=(e=e.body))&&(e.textContent="")}function Wr(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function Vr(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var qr=0,Kr=Math.random().toString(36).slice(2),Xr="__reactFiber$"+Kr,Gr="__reactProps$"+Kr,Yr="__reactContainer$"+Kr,Qr="__reactEvents$"+Kr;function Zr(e){var t=e[Xr];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Yr]||n[Xr]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Vr(e);null!==e;){if(n=e[Xr])return n;e=Vr(e)}return t}n=(e=n).parentNode}return null}function Jr(e){return!(e=e[Xr]||e[Yr])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function eo(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(a(33))}function to(e){return e[Gr]||null}function no(e){var t=e[Qr];return void 0===t&&(t=e[Qr]=new Set),t}var ro=[],oo=-1;function io(e){return{current:e}}function ao(e){0>oo||(e.current=ro[oo],ro[oo]=null,oo--)}function lo(e,t){oo++,ro[oo]=e.current,e.current=t}var uo={},so=io(uo),co=io(!1),fo=uo;function ho(e,t){var n=e.type.contextTypes;if(!n)return uo;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function po(e){return null!=e.childContextTypes}function go(){ao(co),ao(so)}function vo(e,t,n){if(so.current!==uo)throw Error(a(168));lo(so,t),lo(co,n)}function mo(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var i in r=r.getChildContext())if(!(i in e))throw Error(a(108,K(t)||"Unknown",i));return o({},n,r)}function yo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||uo,fo=so.current,lo(so,e),lo(co,co.current),!0}function bo(e,t,n){var r=e.stateNode;if(!r)throw Error(a(169));n?(e=mo(e,t,fo),r.__reactInternalMemoizedMergedChildContext=e,ao(co),ao(so),lo(so,e)):ao(co),lo(co,n)}var wo=null,_o=null,xo=i.unstable_runWithPriority,Eo=i.unstable_scheduleCallback,So=i.unstable_cancelCallback,ko=i.unstable_shouldYield,Co=i.unstable_requestPaint,Oo=i.unstable_now,Po=i.unstable_getCurrentPriorityLevel,To=i.unstable_ImmediatePriority,Ro=i.unstable_UserBlockingPriority,jo=i.unstable_NormalPriority,Ao=i.unstable_LowPriority,Lo=i.unstable_IdlePriority,Io={},Do=void 0!==Co?Co:function(){},No=null,Mo=null,zo=!1,Fo=Oo(),$o=1e4>Fo?Oo:function(){return Oo()-Fo};function Uo(){switch(Po()){case To:return 99;case Ro:return 98;case jo:return 97;case Ao:return 96;case Lo:return 95;default:throw Error(a(332))}}function Bo(e){switch(e){case 99:return To;case 98:return Ro;case 97:return jo;case 96:return Ao;case 95:return Lo;default:throw Error(a(332))}}function Ho(e,t){return e=Bo(e),xo(e,t)}function Wo(e,t,n){return e=Bo(e),Eo(e,t,n)}function Vo(){if(null!==Mo){var e=Mo;Mo=null,So(e)}qo()}function qo(){if(!zo&&null!==No){zo=!0;var e=0;try{var t=No;Ho(99,(function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}})),No=null}catch(t){throw null!==No&&(No=No.slice(e+1)),Eo(To,Vo),t}finally{zo=!1}}}var Ko=_.ReactCurrentBatchConfig;function Xo(e,t){if(e&&e.defaultProps){for(var n in t=o({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var Go=io(null),Yo=null,Qo=null,Zo=null;function Jo(){Zo=Qo=Yo=null}function ei(e){var t=Go.current;ao(Go),e.type._context._currentValue=t}function ti(e,t){for(;null!==e;){var n=e.alternate;if((e.childLanes&t)===t){if(null===n||(n.childLanes&t)===t)break;n.childLanes|=t}else e.childLanes|=t,null!==n&&(n.childLanes|=t);e=e.return}}function ni(e,t){Yo=e,Zo=Qo=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(La=!0),e.firstContext=null)}function ri(e,t){if(Zo!==e&&!1!==t&&0!==t)if("number"==typeof t&&1073741823!==t||(Zo=e,t=1073741823),t={context:e,observedBits:t,next:null},null===Qo){if(null===Yo)throw Error(a(308));Qo=t,Yo.dependencies={lanes:0,firstContext:t,responders:null}}else Qo=Qo.next=t;return e._currentValue}var oi=!1;function ii(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function ai(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function li(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function ui(e,t){if(null!==(e=e.updateQueue)){var n=(e=e.shared).pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function si(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,i=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===i?o=i=a:i=i.next=a,n=n.next}while(null!==n);null===i?o=i=t:i=i.next=t}else o=i=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function ci(e,t,n,r){var i=e.updateQueue;oi=!1;var a=i.firstBaseUpdate,l=i.lastBaseUpdate,u=i.shared.pending;if(null!==u){i.shared.pending=null;var s=u,c=s.next;s.next=null,null===l?a=c:l.next=c,l=s;var f=e.alternate;if(null!==f){var d=(f=f.updateQueue).lastBaseUpdate;d!==l&&(null===d?f.firstBaseUpdate=c:d.next=c,f.lastBaseUpdate=s)}}if(null!==a){for(d=i.baseState,l=0,f=c=s=null;;){u=a.lane;var h=a.eventTime;if((r&u)===u){null!==f&&(f=f.next={eventTime:h,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var p=e,g=a;switch(u=t,h=n,g.tag){case 1:if("function"==typeof(p=g.payload)){d=p.call(h,d,u);break e}d=p;break e;case 3:p.flags=-4097&p.flags|64;case 0:if(null==(u="function"==typeof(p=g.payload)?p.call(h,d,u):p))break e;d=o({},d,u);break e;case 2:oi=!0}}null!==a.callback&&(e.flags|=32,null===(u=i.effects)?i.effects=[a]:u.push(a))}else h={eventTime:h,lane:u,tag:a.tag,payload:a.payload,callback:a.callback,next:null},null===f?(c=f=h,s=d):f=f.next=h,l|=u;if(null===(a=a.next)){if(null===(u=i.shared.pending))break;a=u.next,u.next=null,i.lastBaseUpdate=u,i.shared.pending=null}}null===f&&(s=d),i.baseState=s,i.firstBaseUpdate=c,i.lastBaseUpdate=f,Dl|=l,e.lanes=l,e.memoizedState=d}}function fi(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(null!==o){if(r.callback=null,r=n,"function"!=typeof o)throw Error(a(191,o));o.call(r)}}}var di=(new r.Component).refs;function hi(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:o({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var pi={isMounted:function(e){return!!(e=e._reactInternals)&&Ge(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=au(),o=lu(e),i=li(r,o);i.payload=t,null!=n&&(i.callback=n),ui(e,i),uu(e,o,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=au(),o=lu(e),i=li(r,o);i.tag=1,i.payload=t,null!=n&&(i.callback=n),ui(e,i),uu(e,o,r)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=au(),r=lu(e),o=li(n,r);o.tag=2,null!=t&&(o.callback=t),ui(e,o),uu(e,r,n)}};function gi(e,t,n,r,o,i,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!(t.prototype&&t.prototype.isPureReactComponent&&ur(n,r)&&ur(o,i))}function vi(e,t,n){var r=!1,o=uo,i=t.contextType;return"object"==typeof i&&null!==i?i=ri(i):(o=po(t)?fo:so.current,i=(r=null!=(r=t.contextTypes))?ho(e,o):uo),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=pi,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function mi(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&pi.enqueueReplaceState(t,t.state,null)}function yi(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=di,ii(e);var i=t.contextType;"object"==typeof i&&null!==i?o.context=ri(i):(i=po(t)?fo:so.current,o.context=ho(e,i)),ci(e,n,o,r),o.state=e.memoizedState,"function"==typeof(i=t.getDerivedStateFromProps)&&(hi(e,t,i,n),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&pi.enqueueReplaceState(o,o.state,null),ci(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4)}var bi=Array.isArray;function wi(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(a(309));var r=n.stateNode}if(!r)throw Error(a(147,e));var o=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===o?t.ref:(t=function(e){var t=r.refs;t===di&&(t=r.refs={}),null===e?delete t[o]:t[o]=e},t._stringRef=o,t)}if("string"!=typeof e)throw Error(a(284));if(!n._owner)throw Error(a(290,e))}return e}function _i(e,t){if("textarea"!==e.type)throw Error(a(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t))}function xi(e){function t(t,n){if(e){var r=t.lastEffect;null!==r?(r.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.flags=8}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=$u(e,t)).index=0,e.sibling=null,e}function i(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags=2,n):r:(t.flags=2,n):n}function l(t){return e&&null===t.alternate&&(t.flags=2),t}function u(e,t,n,r){return null===t||6!==t.tag?((t=Wu(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function s(e,t,n,r){return null!==t&&t.elementType===n.type?((r=o(t,n.props)).ref=wi(e,t,n),r.return=e,r):((r=Uu(n.type,n.key,n.props,null,e.mode,r)).ref=wi(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Vu(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function f(e,t,n,r,i){return null===t||7!==t.tag?((t=Bu(n,e.mode,r,i)).return=e,t):((t=o(t,n)).return=e,t)}function d(e,t,n){if("string"==typeof t||"number"==typeof t)return(t=Wu(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case x:return(n=Uu(t.type,t.key,t.props,null,e.mode,n)).ref=wi(e,null,t),n.return=e,n;case E:return(t=Vu(t,e.mode,n)).return=e,t}if(bi(t)||B(t))return(t=Bu(t,e.mode,n,null)).return=e,t;_i(e,t)}return null}function h(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n||"number"==typeof n)return null!==o?null:u(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case x:return n.key===o?n.type===S?f(e,t,n.props.children,r,o):s(e,t,n,r):null;case E:return n.key===o?c(e,t,n,r):null}if(bi(n)||B(n))return null!==o?null:f(e,t,n,r,null);_i(e,n)}return null}function p(e,t,n,r,o){if("string"==typeof r||"number"==typeof r)return u(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case x:return e=e.get(null===r.key?n:r.key)||null,r.type===S?f(t,e,r.props.children,o,r.key):s(t,e,r,o);case E:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o)}if(bi(r)||B(r))return f(t,e=e.get(n)||null,r,o,null);_i(t,r)}return null}function g(o,a,l,u){for(var s=null,c=null,f=a,g=a=0,v=null;null!==f&&g<l.length;g++){f.index>g?(v=f,f=null):v=f.sibling;var m=h(o,f,l[g],u);if(null===m){null===f&&(f=v);break}e&&f&&null===m.alternate&&t(o,f),a=i(m,a,g),null===c?s=m:c.sibling=m,c=m,f=v}if(g===l.length)return n(o,f),s;if(null===f){for(;g<l.length;g++)null!==(f=d(o,l[g],u))&&(a=i(f,a,g),null===c?s=f:c.sibling=f,c=f);return s}for(f=r(o,f);g<l.length;g++)null!==(v=p(f,o,g,l[g],u))&&(e&&null!==v.alternate&&f.delete(null===v.key?g:v.key),a=i(v,a,g),null===c?s=v:c.sibling=v,c=v);return e&&f.forEach((function(e){return t(o,e)})),s}function v(o,l,u,s){var c=B(u);if("function"!=typeof c)throw Error(a(150));if(null==(u=c.call(u)))throw Error(a(151));for(var f=c=null,g=l,v=l=0,m=null,y=u.next();null!==g&&!y.done;v++,y=u.next()){g.index>v?(m=g,g=null):m=g.sibling;var b=h(o,g,y.value,s);if(null===b){null===g&&(g=m);break}e&&g&&null===b.alternate&&t(o,g),l=i(b,l,v),null===f?c=b:f.sibling=b,f=b,g=m}if(y.done)return n(o,g),c;if(null===g){for(;!y.done;v++,y=u.next())null!==(y=d(o,y.value,s))&&(l=i(y,l,v),null===f?c=y:f.sibling=y,f=y);return c}for(g=r(o,g);!y.done;v++,y=u.next())null!==(y=p(g,o,v,y.value,s))&&(e&&null!==y.alternate&&g.delete(null===y.key?v:y.key),l=i(y,l,v),null===f?c=y:f.sibling=y,f=y);return e&&g.forEach((function(e){return t(o,e)})),c}return function(e,r,i,u){var s="object"==typeof i&&null!==i&&i.type===S&&null===i.key;s&&(i=i.props.children);var c="object"==typeof i&&null!==i;if(c)switch(i.$$typeof){case x:e:{for(c=i.key,s=r;null!==s;){if(s.key===c){if(7===s.tag){if(i.type===S){n(e,s.sibling),(r=o(s,i.props.children)).return=e,e=r;break e}}else if(s.elementType===i.type){n(e,s.sibling),(r=o(s,i.props)).ref=wi(e,s,i),r.return=e,e=r;break e}n(e,s);break}t(e,s),s=s.sibling}i.type===S?((r=Bu(i.props.children,e.mode,u,i.key)).return=e,e=r):((u=Uu(i.type,i.key,i.props,null,e.mode,u)).ref=wi(e,r,i),u.return=e,e=u)}return l(e);case E:e:{for(s=i.key;null!==r;){if(r.key===s){if(4===r.tag&&r.stateNode.containerInfo===i.containerInfo&&r.stateNode.implementation===i.implementation){n(e,r.sibling),(r=o(r,i.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=Vu(i,e.mode,u)).return=e,e=r}return l(e)}if("string"==typeof i||"number"==typeof i)return i=""+i,null!==r&&6===r.tag?(n(e,r.sibling),(r=o(r,i)).return=e,e=r):(n(e,r),(r=Wu(i,e.mode,u)).return=e,e=r),l(e);if(bi(i))return g(e,r,i,u);if(B(i))return v(e,r,i,u);if(c&&_i(e,i),void 0===i&&!s)switch(e.tag){case 1:case 22:case 0:case 11:case 15:throw Error(a(152,K(e.type)||"Component"))}return n(e,r)}}var Ei=xi(!0),Si=xi(!1),ki={},Ci=io(ki),Oi=io(ki),Pi=io(ki);function Ti(e){if(e===ki)throw Error(a(174));return e}function Ri(e,t){switch(lo(Pi,t),lo(Oi,e),lo(Ci,ki),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:he(null,"");break;default:t=he(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}ao(Ci),lo(Ci,t)}function ji(){ao(Ci),ao(Oi),ao(Pi)}function Ai(e){Ti(Pi.current);var t=Ti(Ci.current),n=he(t,e.type);t!==n&&(lo(Oi,e),lo(Ci,n))}function Li(e){Oi.current===e&&(ao(Ci),ao(Oi))}var Ii=io(0);function Di(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(64&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Ni=null,Mi=null,zi=!1;function Fi(e,t){var n=zu(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.flags=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function $i(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);default:return!1}}function Ui(e){if(zi){var t=Mi;if(t){var n=t;if(!$i(e,t)){if(!(t=Wr(n.nextSibling))||!$i(e,t))return e.flags=-1025&e.flags|2,zi=!1,void(Ni=e);Fi(Ni,n)}Ni=e,Mi=Wr(t.firstChild)}else e.flags=-1025&e.flags|2,zi=!1,Ni=e}}function Bi(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Ni=e}function Hi(e){if(e!==Ni)return!1;if(!zi)return Bi(e),zi=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!$r(t,e.memoizedProps))for(t=Mi;t;)Fi(e,t),t=Wr(t.nextSibling);if(Bi(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(a(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){Mi=Wr(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}Mi=null}}else Mi=Ni?Wr(e.stateNode.nextSibling):null;return!0}function Wi(){Mi=Ni=null,zi=!1}var Vi=[];function qi(){for(var e=0;e<Vi.length;e++)Vi[e]._workInProgressVersionPrimary=null;Vi.length=0}var Ki=_.ReactCurrentDispatcher,Xi=_.ReactCurrentBatchConfig,Gi=0,Yi=null,Qi=null,Zi=null,Ji=!1,ea=!1;function ta(){throw Error(a(321))}function na(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!ar(e[n],t[n]))return!1;return!0}function ra(e,t,n,r,o,i){if(Gi=i,Yi=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Ki.current=null===e||null===e.memoizedState?Ta:Ra,e=n(r,o),ea){i=0;do{if(ea=!1,!(25>i))throw Error(a(301));i+=1,Zi=Qi=null,t.updateQueue=null,Ki.current=ja,e=n(r,o)}while(ea)}if(Ki.current=Pa,t=null!==Qi&&null!==Qi.next,Gi=0,Zi=Qi=Yi=null,Ji=!1,t)throw Error(a(300));return e}function oa(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Zi?Yi.memoizedState=Zi=e:Zi=Zi.next=e,Zi}function ia(){if(null===Qi){var e=Yi.alternate;e=null!==e?e.memoizedState:null}else e=Qi.next;var t=null===Zi?Yi.memoizedState:Zi.next;if(null!==t)Zi=t,Qi=e;else{if(null===e)throw Error(a(310));e={memoizedState:(Qi=e).memoizedState,baseState:Qi.baseState,baseQueue:Qi.baseQueue,queue:Qi.queue,next:null},null===Zi?Yi.memoizedState=Zi=e:Zi=Zi.next=e}return Zi}function aa(e,t){return"function"==typeof t?t(e):t}function la(e){var t=ia(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=Qi,o=r.baseQueue,i=n.pending;if(null!==i){if(null!==o){var l=o.next;o.next=i.next,i.next=l}r.baseQueue=o=i,n.pending=null}if(null!==o){o=o.next,r=r.baseState;var u=l=i=null,s=o;do{var c=s.lane;if((Gi&c)===c)null!==u&&(u=u.next={lane:0,action:s.action,eagerReducer:s.eagerReducer,eagerState:s.eagerState,next:null}),r=s.eagerReducer===e?s.eagerState:e(r,s.action);else{var f={lane:c,action:s.action,eagerReducer:s.eagerReducer,eagerState:s.eagerState,next:null};null===u?(l=u=f,i=r):u=u.next=f,Yi.lanes|=c,Dl|=c}s=s.next}while(null!==s&&s!==o);null===u?i=r:u.next=l,ar(r,t.memoizedState)||(La=!0),t.memoizedState=r,t.baseState=i,t.baseQueue=u,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function ua(e){var t=ia(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(null!==o){n.pending=null;var l=o=o.next;do{i=e(i,l.action),l=l.next}while(l!==o);ar(i,t.memoizedState)||(La=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function sa(e,t,n){var r=t._getVersion;r=r(t._source);var o=t._workInProgressVersionPrimary;if(null!==o?e=o===r:(e=e.mutableReadLanes,(e=(Gi&e)===e)&&(t._workInProgressVersionPrimary=r,Vi.push(t))),e)return n(t._source);throw Vi.push(t),Error(a(350))}function ca(e,t,n,r){var o=Ol;if(null===o)throw Error(a(349));var i=t._getVersion,l=i(t._source),u=Ki.current,s=u.useState((function(){return sa(o,t,n)})),c=s[1],f=s[0];s=Zi;var d=e.memoizedState,h=d.refs,p=h.getSnapshot,g=d.source;d=d.subscribe;var v=Yi;return e.memoizedState={refs:h,source:t,subscribe:r},u.useEffect((function(){h.getSnapshot=n,h.setSnapshot=c;var e=i(t._source);if(!ar(l,e)){e=n(t._source),ar(f,e)||(c(e),e=lu(v),o.mutableReadLanes|=e&o.pendingLanes),e=o.mutableReadLanes,o.entangledLanes|=e;for(var r=o.entanglements,a=e;0<a;){var u=31-Ht(a),s=1<<u;r[u]|=e,a&=~s}}}),[n,t,r]),u.useEffect((function(){return r(t._source,(function(){var e=h.getSnapshot,n=h.setSnapshot;try{n(e(t._source));var r=lu(v);o.mutableReadLanes|=r&o.pendingLanes}catch(e){n((function(){throw e}))}}))}),[t,r]),ar(p,n)&&ar(g,t)&&ar(d,r)||((e={pending:null,dispatch:null,lastRenderedReducer:aa,lastRenderedState:f}).dispatch=c=Oa.bind(null,Yi,e),s.queue=e,s.baseQueue=null,f=sa(o,t,n),s.memoizedState=s.baseState=f),f}function fa(e,t,n){return ca(ia(),e,t,n)}function da(e){var t=oa();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:aa,lastRenderedState:e}).dispatch=Oa.bind(null,Yi,e),[t.memoizedState,e]}function ha(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=Yi.updateQueue)?(t={lastEffect:null},Yi.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function pa(e){return e={current:e},oa().memoizedState=e}function ga(){return ia().memoizedState}function va(e,t,n,r){var o=oa();Yi.flags|=e,o.memoizedState=ha(1|t,n,void 0,void 0===r?null:r)}function ma(e,t,n,r){var o=ia();r=void 0===r?null:r;var i=void 0;if(null!==Qi){var a=Qi.memoizedState;if(i=a.destroy,null!==r&&na(r,a.deps))return void ha(t,n,i,r)}Yi.flags|=e,o.memoizedState=ha(1|t,n,i,r)}function ya(e,t){return va(516,4,e,t)}function ba(e,t){return ma(516,4,e,t)}function wa(e,t){return ma(4,2,e,t)}function _a(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function xa(e,t,n){return n=null!=n?n.concat([e]):null,ma(4,2,_a.bind(null,t,e),n)}function Ea(){}function Sa(e,t){var n=ia();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&na(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function ka(e,t){var n=ia();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&na(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Ca(e,t){var n=Uo();Ho(98>n?98:n,(function(){e(!0)})),Ho(97<n?97:n,(function(){var n=Xi.transition;Xi.transition=1;try{e(!1),t()}finally{Xi.transition=n}}))}function Oa(e,t,n){var r=au(),o=lu(e),i={lane:o,action:n,eagerReducer:null,eagerState:null,next:null},a=t.pending;if(null===a?i.next=i:(i.next=a.next,a.next=i),t.pending=i,a=e.alternate,e===Yi||null!==a&&a===Yi)ea=Ji=!0;else{if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=t.lastRenderedReducer))try{var l=t.lastRenderedState,u=a(l,n);if(i.eagerReducer=a,i.eagerState=u,ar(u,l))return}catch(e){}uu(e,o,r)}}var Pa={readContext:ri,useCallback:ta,useContext:ta,useEffect:ta,useImperativeHandle:ta,useLayoutEffect:ta,useMemo:ta,useReducer:ta,useRef:ta,useState:ta,useDebugValue:ta,useDeferredValue:ta,useTransition:ta,useMutableSource:ta,useOpaqueIdentifier:ta,unstable_isNewReconciler:!1},Ta={readContext:ri,useCallback:function(e,t){return oa().memoizedState=[e,void 0===t?null:t],e},useContext:ri,useEffect:ya,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,va(4,2,_a.bind(null,t,e),n)},useLayoutEffect:function(e,t){return va(4,2,e,t)},useMemo:function(e,t){var n=oa();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=oa();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e=(e=r.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=Oa.bind(null,Yi,e),[r.memoizedState,e]},useRef:pa,useState:da,useDebugValue:Ea,useDeferredValue:function(e){var t=da(e),n=t[0],r=t[1];return ya((function(){var t=Xi.transition;Xi.transition=1;try{r(e)}finally{Xi.transition=t}}),[e]),n},useTransition:function(){var e=da(!1),t=e[0];return pa(e=Ca.bind(null,e[1])),[e,t]},useMutableSource:function(e,t,n){var r=oa();return r.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:n},ca(r,e,t,n)},useOpaqueIdentifier:function(){if(zi){var e=!1,t=function(e){return{$$typeof:D,toString:e,valueOf:e}}((function(){throw e||(e=!0,n("r:"+(qr++).toString(36))),Error(a(355))})),n=da(t)[1];return 0==(2&Yi.mode)&&(Yi.flags|=516,ha(5,(function(){n("r:"+(qr++).toString(36))}),void 0,null)),t}return da(t="r:"+(qr++).toString(36)),t},unstable_isNewReconciler:!1},Ra={readContext:ri,useCallback:Sa,useContext:ri,useEffect:ba,useImperativeHandle:xa,useLayoutEffect:wa,useMemo:ka,useReducer:la,useRef:ga,useState:function(){return la(aa)},useDebugValue:Ea,useDeferredValue:function(e){var t=la(aa),n=t[0],r=t[1];return ba((function(){var t=Xi.transition;Xi.transition=1;try{r(e)}finally{Xi.transition=t}}),[e]),n},useTransition:function(){var e=la(aa)[0];return[ga().current,e]},useMutableSource:fa,useOpaqueIdentifier:function(){return la(aa)[0]},unstable_isNewReconciler:!1},ja={readContext:ri,useCallback:Sa,useContext:ri,useEffect:ba,useImperativeHandle:xa,useLayoutEffect:wa,useMemo:ka,useReducer:ua,useRef:ga,useState:function(){return ua(aa)},useDebugValue:Ea,useDeferredValue:function(e){var t=ua(aa),n=t[0],r=t[1];return ba((function(){var t=Xi.transition;Xi.transition=1;try{r(e)}finally{Xi.transition=t}}),[e]),n},useTransition:function(){var e=ua(aa)[0];return[ga().current,e]},useMutableSource:fa,useOpaqueIdentifier:function(){return ua(aa)[0]},unstable_isNewReconciler:!1},Aa=_.ReactCurrentOwner,La=!1;function Ia(e,t,n,r){t.child=null===e?Si(t,null,n,r):Ei(t,e.child,n,r)}function Da(e,t,n,r,o){n=n.render;var i=t.ref;return ni(t,o),r=ra(e,t,n,r,i,o),null===e||La?(t.flags|=1,Ia(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~o,Ja(e,t,o))}function Na(e,t,n,r,o,i){if(null===e){var a=n.type;return"function"!=typeof a||Fu(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Uu(n.type,null,r,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,Ma(e,t,a,r,o,i))}return a=e.child,0==(o&i)&&(o=a.memoizedProps,(n=null!==(n=n.compare)?n:ur)(o,r)&&e.ref===t.ref)?Ja(e,t,i):(t.flags|=1,(e=$u(a,r)).ref=t.ref,e.return=t,t.child=e)}function Ma(e,t,n,r,o,i){if(null!==e&&ur(e.memoizedProps,r)&&e.ref===t.ref){if(La=!1,0==(i&o))return t.lanes=e.lanes,Ja(e,t,i);0!=(16384&e.flags)&&(La=!0)}return $a(e,t,n,r,i)}function za(e,t,n){var r=t.pendingProps,o=r.children,i=null!==e?e.memoizedState:null;if("hidden"===r.mode||"unstable-defer-without-hiding"===r.mode)if(0==(4&t.mode))t.memoizedState={baseLanes:0},vu(0,n);else{if(0==(1073741824&n))return e=null!==i?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},vu(0,e),null;t.memoizedState={baseLanes:0},vu(0,null!==i?i.baseLanes:n)}else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,vu(0,r);return Ia(e,t,o,n),t.child}function Fa(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=128)}function $a(e,t,n,r,o){var i=po(n)?fo:so.current;return i=ho(t,i),ni(t,o),n=ra(e,t,n,r,i,o),null===e||La?(t.flags|=1,Ia(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-517,e.lanes&=~o,Ja(e,t,o))}function Ua(e,t,n,r,o){if(po(n)){var i=!0;yo(t)}else i=!1;if(ni(t,o),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),vi(t,n,r),yi(t,n,r,o),r=!0;else if(null===e){var a=t.stateNode,l=t.memoizedProps;a.props=l;var u=a.context,s=n.contextType;s="object"==typeof s&&null!==s?ri(s):ho(t,s=po(n)?fo:so.current);var c=n.getDerivedStateFromProps,f="function"==typeof c||"function"==typeof a.getSnapshotBeforeUpdate;f||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(l!==r||u!==s)&&mi(t,a,r,s),oi=!1;var d=t.memoizedState;a.state=d,ci(t,r,a,o),u=t.memoizedState,l!==r||d!==u||co.current||oi?("function"==typeof c&&(hi(t,n,c,r),u=t.memoizedState),(l=oi||gi(t,n,l,r,d,u,s))?(f||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4)):("function"==typeof a.componentDidMount&&(t.flags|=4),t.memoizedProps=r,t.memoizedState=u),a.props=r,a.state=u,a.context=s,r=l):("function"==typeof a.componentDidMount&&(t.flags|=4),r=!1)}else{a=t.stateNode,ai(e,t),l=t.memoizedProps,s=t.type===t.elementType?l:Xo(t.type,l),a.props=s,f=t.pendingProps,d=a.context,u="object"==typeof(u=n.contextType)&&null!==u?ri(u):ho(t,u=po(n)?fo:so.current);var h=n.getDerivedStateFromProps;(c="function"==typeof h||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(l!==f||d!==u)&&mi(t,a,r,u),oi=!1,d=t.memoizedState,a.state=d,ci(t,r,a,o);var p=t.memoizedState;l!==f||d!==p||co.current||oi?("function"==typeof h&&(hi(t,n,h,r),p=t.memoizedState),(s=oi||gi(t,n,s,r,d,p,u))?(c||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,p,u),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,p,u)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=256)):("function"!=typeof a.componentDidUpdate||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=256),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=u,r=s):("function"!=typeof a.componentDidUpdate||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=256),r=!1)}return Ba(e,t,n,r,i,o)}function Ba(e,t,n,r,o,i){Fa(e,t);var a=0!=(64&t.flags);if(!r&&!a)return o&&bo(t,n,!1),Ja(e,t,i);r=t.stateNode,Aa.current=t;var l=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=Ei(t,e.child,null,i),t.child=Ei(t,null,l,i)):Ia(e,t,l,i),t.memoizedState=r.state,o&&bo(t,n,!0),t.child}function Ha(e){var t=e.stateNode;t.pendingContext?vo(0,t.pendingContext,t.pendingContext!==t.context):t.context&&vo(0,t.context,!1),Ri(e,t.containerInfo)}var Wa,Va,qa,Ka={dehydrated:null,retryLane:0};function Xa(e,t,n){var r,o=t.pendingProps,i=Ii.current,a=!1;return(r=0!=(64&t.flags))||(r=(null===e||null!==e.memoizedState)&&0!=(2&i)),r?(a=!0,t.flags&=-65):null!==e&&null===e.memoizedState||void 0===o.fallback||!0===o.unstable_avoidThisFallback||(i|=1),lo(Ii,1&i),null===e?(void 0!==o.fallback&&Ui(t),e=o.children,i=o.fallback,a?(e=Ga(t,e,i,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Ka,e):"number"==typeof o.unstable_expectedLoadTime?(e=Ga(t,e,i,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Ka,t.lanes=33554432,e):((n=Hu({mode:"visible",children:e},t.mode,n,null)).return=t,t.child=n)):(e.memoizedState,a?(o=function(e,t,n,r,o){var i=t.mode,a=e.child;e=a.sibling;var l={mode:"hidden",children:n};return 0==(2&i)&&t.child!==a?((n=t.child).childLanes=0,n.pendingProps=l,null!==(a=n.lastEffect)?(t.firstEffect=n.firstEffect,t.lastEffect=a,a.nextEffect=null):t.firstEffect=t.lastEffect=null):n=$u(a,l),null!==e?r=$u(e,r):(r=Bu(r,i,o,null)).flags|=2,r.return=t,n.return=t,n.sibling=r,t.child=n,r}(e,t,o.children,o.fallback,n),a=t.child,i=e.child.memoizedState,a.memoizedState=null===i?{baseLanes:n}:{baseLanes:i.baseLanes|n},a.childLanes=e.childLanes&~n,t.memoizedState=Ka,o):(n=function(e,t,n,r){var o=e.child;return e=o.sibling,n=$u(o,{mode:"visible",children:n}),0==(2&t.mode)&&(n.lanes=r),n.return=t,n.sibling=null,null!==e&&(e.nextEffect=null,e.flags=8,t.firstEffect=t.lastEffect=e),t.child=n}(e,t,o.children,n),t.memoizedState=null,n))}function Ga(e,t,n,r){var o=e.mode,i=e.child;return t={mode:"hidden",children:t},0==(2&o)&&null!==i?(i.childLanes=0,i.pendingProps=t):i=Hu(t,o,0,null),n=Bu(n,o,r,null),i.return=e,n.return=e,i.sibling=n,e.child=i,n}function Ya(e,t){e.lanes|=t;var n=e.alternate;null!==n&&(n.lanes|=t),ti(e.return,t)}function Qa(e,t,n,r,o,i){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o,lastEffect:i}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=o,a.lastEffect=i)}function Za(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(Ia(e,t,r.children,n),0!=(2&(r=Ii.current)))r=1&r|2,t.flags|=64;else{if(null!==e&&0!=(64&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Ya(e,n);else if(19===e.tag)Ya(e,n);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(lo(Ii,r),0==(2&t.mode))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===Di(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Qa(t,!1,o,n,i,t.lastEffect);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===Di(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Qa(t,!0,n,null,i,t.lastEffect);break;case"together":Qa(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function Ja(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Dl|=t.lanes,0!=(n&t.childLanes)){if(null!==e&&t.child!==e.child)throw Error(a(153));if(null!==t.child){for(n=$u(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=$u(e,e.pendingProps)).return=t;n.sibling=null}return t.child}return null}function el(e,t){if(!zi)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function tl(e,t,n){var r=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:case 17:return po(t.type)&&go(),null;case 3:return ji(),ao(co),ao(so),qi(),(r=t.stateNode).pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(Hi(t)?t.flags|=4:r.hydrate||(t.flags|=256)),null;case 5:Li(t);var i=Ti(Pi.current);if(n=t.type,null!==e&&null!=t.stateNode)Va(e,t,n,r),e.ref!==t.ref&&(t.flags|=128);else{if(!r){if(null===t.stateNode)throw Error(a(166));return null}if(e=Ti(Ci.current),Hi(t)){r=t.stateNode,n=t.type;var l=t.memoizedProps;switch(r[Xr]=t,r[Gr]=l,n){case"dialog":Cr("cancel",r),Cr("close",r);break;case"iframe":case"object":case"embed":Cr("load",r);break;case"video":case"audio":for(e=0;e<xr.length;e++)Cr(xr[e],r);break;case"source":Cr("error",r);break;case"img":case"image":case"link":Cr("error",r),Cr("load",r);break;case"details":Cr("toggle",r);break;case"input":ee(r,l),Cr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!l.multiple},Cr("invalid",r);break;case"textarea":ue(r,l),Cr("invalid",r)}for(var s in Ee(n,l),e=null,l)l.hasOwnProperty(s)&&(i=l[s],"children"===s?"string"==typeof i?r.textContent!==i&&(e=["children",i]):"number"==typeof i&&r.textContent!==""+i&&(e=["children",""+i]):u.hasOwnProperty(s)&&null!=i&&"onScroll"===s&&Cr("scroll",r));switch(n){case"input":Y(r),re(r,l,!0);break;case"textarea":Y(r),ce(r);break;case"select":case"option":break;default:"function"==typeof l.onClick&&(r.onclick=Nr)}r=e,t.updateQueue=r,null!==r&&(t.flags|=4)}else{switch(s=9===i.nodeType?i:i.ownerDocument,e===fe&&(e=de(n)),e===fe?"script"===n?((e=s.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),"select"===n&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[Xr]=t,e[Gr]=r,Wa(e,t),t.stateNode=e,s=Se(n,r),n){case"dialog":Cr("cancel",e),Cr("close",e),i=r;break;case"iframe":case"object":case"embed":Cr("load",e),i=r;break;case"video":case"audio":for(i=0;i<xr.length;i++)Cr(xr[i],e);i=r;break;case"source":Cr("error",e),i=r;break;case"img":case"image":case"link":Cr("error",e),Cr("load",e),i=r;break;case"details":Cr("toggle",e),i=r;break;case"input":ee(e,r),i=J(e,r),Cr("invalid",e);break;case"option":i=ie(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=o({},r,{value:void 0}),Cr("invalid",e);break;case"textarea":ue(e,r),i=le(e,r),Cr("invalid",e);break;default:i=r}Ee(n,i);var c=i;for(l in c)if(c.hasOwnProperty(l)){var f=c[l];"style"===l?_e(e,f):"dangerouslySetInnerHTML"===l?null!=(f=f?f.__html:void 0)&&ve(e,f):"children"===l?"string"==typeof f?("textarea"!==n||""!==f)&&me(e,f):"number"==typeof f&&me(e,""+f):"suppressContentEditableWarning"!==l&&"suppressHydrationWarning"!==l&&"autoFocus"!==l&&(u.hasOwnProperty(l)?null!=f&&"onScroll"===l&&Cr("scroll",e):null!=f&&w(e,l,f,s))}switch(n){case"input":Y(e),re(e,r,!1);break;case"textarea":Y(e),ce(e);break;case"option":null!=r.value&&e.setAttribute("value",""+X(r.value));break;case"select":e.multiple=!!r.multiple,null!=(l=r.value)?ae(e,!!r.multiple,l,!1):null!=r.defaultValue&&ae(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof i.onClick&&(e.onclick=Nr)}Fr(n,r)&&(t.flags|=4)}null!==t.ref&&(t.flags|=128)}return null;case 6:if(e&&null!=t.stateNode)qa(0,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(a(166));n=Ti(Pi.current),Ti(Ci.current),Hi(t)?(r=t.stateNode,n=t.memoizedProps,r[Xr]=t,r.nodeValue!==n&&(t.flags|=4)):((r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[Xr]=t,t.stateNode=r)}return null;case 13:return ao(Ii),r=t.memoizedState,0!=(64&t.flags)?(t.lanes=n,t):(r=null!==r,n=!1,null===e?void 0!==t.memoizedProps.fallback&&Hi(t):n=null!==e.memoizedState,r&&!n&&0!=(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!=(1&Ii.current)?0===Al&&(Al=3):(0!==Al&&3!==Al||(Al=4),null===Ol||0==(134217727&Dl)&&0==(134217727&Nl)||du(Ol,Tl))),(r||n)&&(t.flags|=4),null);case 4:return ji(),null===e&&Pr(t.stateNode.containerInfo),null;case 10:return ei(t),null;case 19:if(ao(Ii),null===(r=t.memoizedState))return null;if(l=0!=(64&t.flags),null===(s=r.rendering))if(l)el(r,!1);else{if(0!==Al||null!==e&&0!=(64&e.flags))for(e=t.child;null!==e;){if(null!==(s=Di(e))){for(t.flags|=64,el(r,!1),null!==(l=s.updateQueue)&&(t.updateQueue=l,t.flags|=4),null===r.lastEffect&&(t.firstEffect=null),t.lastEffect=r.lastEffect,r=n,n=t.child;null!==n;)e=r,(l=n).flags&=2,l.nextEffect=null,l.firstEffect=null,l.lastEffect=null,null===(s=l.alternate)?(l.childLanes=0,l.lanes=e,l.child=null,l.memoizedProps=null,l.memoizedState=null,l.updateQueue=null,l.dependencies=null,l.stateNode=null):(l.childLanes=s.childLanes,l.lanes=s.lanes,l.child=s.child,l.memoizedProps=s.memoizedProps,l.memoizedState=s.memoizedState,l.updateQueue=s.updateQueue,l.type=s.type,e=s.dependencies,l.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return lo(Ii,1&Ii.current|2),t.child}e=e.sibling}null!==r.tail&&$o()>$l&&(t.flags|=64,l=!0,el(r,!1),t.lanes=33554432)}else{if(!l)if(null!==(e=Di(s))){if(t.flags|=64,l=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),el(r,!0),null===r.tail&&"hidden"===r.tailMode&&!s.alternate&&!zi)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*$o()-r.renderingStartTime>$l&&1073741824!==n&&(t.flags|=64,l=!0,el(r,!1),t.lanes=33554432);r.isBackwards?(s.sibling=t.child,t.child=s):(null!==(n=r.last)?n.sibling=s:t.child=s,r.last=s)}return null!==r.tail?(n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=$o(),n.sibling=null,t=Ii.current,lo(Ii,l?1&t|2:1&t),n):null;case 23:case 24:return mu(),null!==e&&null!==e.memoizedState!=(null!==t.memoizedState)&&"unstable-defer-without-hiding"!==r.mode&&(t.flags|=4),null}throw Error(a(156,t.tag))}function nl(e){switch(e.tag){case 1:po(e.type)&&go();var t=e.flags;return 4096&t?(e.flags=-4097&t|64,e):null;case 3:if(ji(),ao(co),ao(so),qi(),0!=(64&(t=e.flags)))throw Error(a(285));return e.flags=-4097&t|64,e;case 5:return Li(e),null;case 13:return ao(Ii),4096&(t=e.flags)?(e.flags=-4097&t|64,e):null;case 19:return ao(Ii),null;case 4:return ji(),null;case 10:return ei(e),null;case 23:case 24:return mu(),null;default:return null}}function rl(e,t){try{var n="",r=t;do{n+=q(r),r=r.return}while(r);var o=n}catch(e){o="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:o}}function ol(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}Wa=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Va=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Ti(Ci.current);var a,l=null;switch(n){case"input":i=J(e,i),r=J(e,r),l=[];break;case"option":i=ie(e,i),r=ie(e,r),l=[];break;case"select":i=o({},i,{value:void 0}),r=o({},r,{value:void 0}),l=[];break;case"textarea":i=le(e,i),r=le(e,r),l=[];break;default:"function"!=typeof i.onClick&&"function"==typeof r.onClick&&(e.onclick=Nr)}for(f in Ee(n,r),n=null,i)if(!r.hasOwnProperty(f)&&i.hasOwnProperty(f)&&null!=i[f])if("style"===f){var s=i[f];for(a in s)s.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else"dangerouslySetInnerHTML"!==f&&"children"!==f&&"suppressContentEditableWarning"!==f&&"suppressHydrationWarning"!==f&&"autoFocus"!==f&&(u.hasOwnProperty(f)?l||(l=[]):(l=l||[]).push(f,null));for(f in r){var c=r[f];if(s=null!=i?i[f]:void 0,r.hasOwnProperty(f)&&c!==s&&(null!=c||null!=s))if("style"===f)if(s){for(a in s)!s.hasOwnProperty(a)||c&&c.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in c)c.hasOwnProperty(a)&&s[a]!==c[a]&&(n||(n={}),n[a]=c[a])}else n||(l||(l=[]),l.push(f,n)),n=c;else"dangerouslySetInnerHTML"===f?(c=c?c.__html:void 0,s=s?s.__html:void 0,null!=c&&s!==c&&(l=l||[]).push(f,c)):"children"===f?"string"!=typeof c&&"number"!=typeof c||(l=l||[]).push(f,""+c):"suppressContentEditableWarning"!==f&&"suppressHydrationWarning"!==f&&(u.hasOwnProperty(f)?(null!=c&&"onScroll"===f&&Cr("scroll",e),l||s===c||(l=[])):"object"==typeof c&&null!==c&&c.$$typeof===D?c.toString():(l=l||[]).push(f,c))}n&&(l=l||[]).push("style",n);var f=l;(t.updateQueue=f)&&(t.flags|=4)}},qa=function(e,t,n,r){n!==r&&(t.flags|=4)};var il="function"==typeof WeakMap?WeakMap:Map;function al(e,t,n){(n=li(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Wl||(Wl=!0,Vl=r),ol(0,t)},n}function ll(e,t,n){(n=li(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var o=t.value;n.payload=function(){return ol(0,t),r(o)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===ql?ql=new Set([this]):ql.add(this),ol(0,t));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}var ul="function"==typeof WeakSet?WeakSet:Set;function sl(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){Iu(e,t)}else t.current=null}function cl(e,t){switch(t.tag){case 0:case 11:case 15:case 22:case 5:case 6:case 4:case 17:return;case 1:if(256&t.flags&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:Xo(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:return void(256&t.flags&&Hr(t.stateNode.containerInfo))}throw Error(a(163))}function fl(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{if(3==(3&e.tag)){var r=e.create;e.destroy=r()}e=e.next}while(e!==t)}if(null!==(t=null!==(t=n.updateQueue)?t.lastEffect:null)){e=t=t.next;do{var o=e;r=o.next,0!=(4&(o=o.tag))&&0!=(1&o)&&(ju(n,e),Ru(n,e)),e=r}while(e!==t)}return;case 1:return e=n.stateNode,4&n.flags&&(null===t?e.componentDidMount():(r=n.elementType===n.type?t.memoizedProps:Xo(n.type,t.memoizedProps),e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate))),void(null!==(t=n.updateQueue)&&fi(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:case 1:e=n.child.stateNode}fi(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.flags&&Fr(n.type,n.memoizedProps)&&e.focus());case 6:case 4:case 12:case 19:case 17:case 20:case 21:case 23:case 24:return;case 13:return void(null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&_t(n)))))}throw Error(a(163))}function dl(e,t){for(var n=e;;){if(5===n.tag){var r=n.stateNode;if(t)"function"==typeof(r=r.style).setProperty?r.setProperty("display","none","important"):r.display="none";else{r=n.stateNode;var o=n.memoizedProps.style;o=null!=o&&o.hasOwnProperty("display")?o.display:null,r.style.display=we("display",o)}}else if(6===n.tag)n.stateNode.nodeValue=t?"":n.memoizedProps;else if((23!==n.tag&&24!==n.tag||null===n.memoizedState||n===e)&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function hl(e,t){if(_o&&"function"==typeof _o.onCommitFiberUnmount)try{_o.onCommitFiberUnmount(wo,t)}catch(e){}switch(t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var n=e=e.next;do{var r=n,o=r.destroy;if(r=r.tag,void 0!==o)if(0!=(4&r))ju(t,n);else{r=t;try{o()}catch(e){Iu(r,e)}}n=n.next}while(n!==e)}break;case 1:if(sl(t),"function"==typeof(e=t.stateNode).componentWillUnmount)try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(e){Iu(t,e)}break;case 5:sl(t);break;case 4:bl(e,t)}}function pl(e){e.alternate=null,e.child=null,e.dependencies=null,e.firstEffect=null,e.lastEffect=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.return=null,e.updateQueue=null}function gl(e){return 5===e.tag||3===e.tag||4===e.tag}function vl(e){e:{for(var t=e.return;null!==t;){if(gl(t))break e;t=t.return}throw Error(a(160))}var n=t;switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:t=t.containerInfo,r=!0;break;default:throw Error(a(161))}16&n.flags&&(me(t,""),n.flags&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||gl(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.flags)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.flags)){n=n.stateNode;break e}}r?ml(e,n,t):yl(e,n,t)}function ml(e,t,n){var r=e.tag,o=5===r||6===r;if(o)e=o?e.stateNode:e.stateNode.instance,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=Nr));else if(4!==r&&null!==(e=e.child))for(ml(e,t,n),e=e.sibling;null!==e;)ml(e,t,n),e=e.sibling}function yl(e,t,n){var r=e.tag,o=5===r||6===r;if(o)e=o?e.stateNode:e.stateNode.instance,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(yl(e,t,n),e=e.sibling;null!==e;)yl(e,t,n),e=e.sibling}function bl(e,t){for(var n,r,o=t,i=!1;;){if(!i){i=o.return;e:for(;;){if(null===i)throw Error(a(160));switch(n=i.stateNode,i.tag){case 5:r=!1;break e;case 3:case 4:n=n.containerInfo,r=!0;break e}i=i.return}i=!0}if(5===o.tag||6===o.tag){e:for(var l=e,u=o,s=u;;)if(hl(l,s),null!==s.child&&4!==s.tag)s.child.return=s,s=s.child;else{if(s===u)break e;for(;null===s.sibling;){if(null===s.return||s.return===u)break e;s=s.return}s.sibling.return=s.return,s=s.sibling}r?(l=n,u=o.stateNode,8===l.nodeType?l.parentNode.removeChild(u):l.removeChild(u)):n.removeChild(o.stateNode)}else if(4===o.tag){if(null!==o.child){n=o.stateNode.containerInfo,r=!0,o.child.return=o,o=o.child;continue}}else if(hl(e,o),null!==o.child){o.child.return=o,o=o.child;continue}if(o===t)break;for(;null===o.sibling;){if(null===o.return||o.return===t)return;4===(o=o.return).tag&&(i=!1)}o.sibling.return=o.return,o=o.sibling}}function wl(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:var n=t.updateQueue;if(null!==(n=null!==n?n.lastEffect:null)){var r=n=n.next;do{3==(3&r.tag)&&(e=r.destroy,r.destroy=void 0,void 0!==e&&e()),r=r.next}while(r!==n)}return;case 1:case 12:case 17:return;case 5:if(null!=(n=t.stateNode)){r=t.memoizedProps;var o=null!==e?e.memoizedProps:r;e=t.type;var i=t.updateQueue;if(t.updateQueue=null,null!==i){for(n[Gr]=r,"input"===e&&"radio"===r.type&&null!=r.name&&te(n,r),Se(e,o),t=Se(e,r),o=0;o<i.length;o+=2){var l=i[o],u=i[o+1];"style"===l?_e(n,u):"dangerouslySetInnerHTML"===l?ve(n,u):"children"===l?me(n,u):w(n,l,u,t)}switch(e){case"input":ne(n,r);break;case"textarea":se(n,r);break;case"select":e=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(i=r.value)?ae(n,!!r.multiple,i,!1):e!==!!r.multiple&&(null!=r.defaultValue?ae(n,!!r.multiple,r.defaultValue,!0):ae(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(a(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((n=t.stateNode).hydrate&&(n.hydrate=!1,_t(n.containerInfo)));case 13:return null!==t.memoizedState&&(Fl=$o(),dl(t.child,!0)),void _l(t);case 19:return void _l(t);case 23:case 24:return void dl(t,null!==t.memoizedState)}throw Error(a(163))}function _l(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new ul),t.forEach((function(t){var r=Nu.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function xl(e,t){return null!==e&&(null===(e=e.memoizedState)||null!==e.dehydrated)&&null!==(t=t.memoizedState)&&null===t.dehydrated}var El=Math.ceil,Sl=_.ReactCurrentDispatcher,kl=_.ReactCurrentOwner,Cl=0,Ol=null,Pl=null,Tl=0,Rl=0,jl=io(0),Al=0,Ll=null,Il=0,Dl=0,Nl=0,Ml=0,zl=null,Fl=0,$l=1/0;function Ul(){$l=$o()+500}var Bl,Hl=null,Wl=!1,Vl=null,ql=null,Kl=!1,Xl=null,Gl=90,Yl=[],Ql=[],Zl=null,Jl=0,eu=null,tu=-1,nu=0,ru=0,ou=null,iu=!1;function au(){return 0!=(48&Cl)?$o():-1!==tu?tu:tu=$o()}function lu(e){if(0==(2&(e=e.mode)))return 1;if(0==(4&e))return 99===Uo()?1:2;if(0===nu&&(nu=Il),0!==Ko.transition){0!==ru&&(ru=null!==zl?zl.pendingLanes:0),e=nu;var t=4186112&~ru;return 0==(t&=-t)&&0==(t=(e=4186112&~e)&-e)&&(t=8192),t}return e=Uo(),e=Ft(0!=(4&Cl)&&98===e?12:e=function(e){switch(e){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}(e),nu)}function uu(e,t,n){if(50<Jl)throw Jl=0,eu=null,Error(a(185));if(null===(e=su(e,t)))return null;Bt(e,t,n),e===Ol&&(Nl|=t,4===Al&&du(e,Tl));var r=Uo();1===t?0!=(8&Cl)&&0==(48&Cl)?hu(e):(cu(e,n),0===Cl&&(Ul(),Vo())):(0==(4&Cl)||98!==r&&99!==r||(null===Zl?Zl=new Set([e]):Zl.add(e)),cu(e,n)),zl=e}function su(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}function cu(e,t){for(var n=e.callbackNode,r=e.suspendedLanes,o=e.pingedLanes,i=e.expirationTimes,l=e.pendingLanes;0<l;){var u=31-Ht(l),s=1<<u,c=i[u];if(-1===c){if(0==(s&r)||0!=(s&o)){c=t,Nt(s);var f=Dt;i[u]=10<=f?c+250:6<=f?c+5e3:-1}}else c<=t&&(e.expiredLanes|=s);l&=~s}if(r=Mt(e,e===Ol?Tl:0),t=Dt,0===r)null!==n&&(n!==Io&&So(n),e.callbackNode=null,e.callbackPriority=0);else{if(null!==n){if(e.callbackPriority===t)return;n!==Io&&So(n)}15===t?(n=hu.bind(null,e),null===No?(No=[n],Mo=Eo(To,qo)):No.push(n),n=Io):14===t?n=Wo(99,hu.bind(null,e)):(n=function(e){switch(e){case 15:case 14:return 99;case 13:case 12:case 11:case 10:return 98;case 9:case 8:case 7:case 6:case 4:case 5:return 97;case 3:case 2:case 1:return 95;case 0:return 90;default:throw Error(a(358,e))}}(t),n=Wo(n,fu.bind(null,e))),e.callbackPriority=t,e.callbackNode=n}}function fu(e){if(tu=-1,ru=nu=0,0!=(48&Cl))throw Error(a(327));var t=e.callbackNode;if(Tu()&&e.callbackNode!==t)return null;var n=Mt(e,e===Ol?Tl:0);if(0===n)return null;var r=n,o=Cl;Cl|=16;var i=wu();for(Ol===e&&Tl===r||(Ul(),yu(e,r));;)try{Eu();break}catch(t){bu(e,t)}if(Jo(),Sl.current=i,Cl=o,null!==Pl?r=0:(Ol=null,Tl=0,r=Al),0!=(Il&Nl))yu(e,0);else if(0!==r){if(2===r&&(Cl|=64,e.hydrate&&(e.hydrate=!1,Hr(e.containerInfo)),0!==(n=zt(e))&&(r=_u(e,n))),1===r)throw t=Ll,yu(e,0),du(e,n),cu(e,$o()),t;switch(e.finishedWork=e.current.alternate,e.finishedLanes=n,r){case 0:case 1:throw Error(a(345));case 2:case 5:Cu(e);break;case 3:if(du(e,n),(62914560&n)===n&&10<(r=Fl+500-$o())){if(0!==Mt(e,0))break;if(((o=e.suspendedLanes)&n)!==n){au(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=Ur(Cu.bind(null,e),r);break}Cu(e);break;case 4:if(du(e,n),(4186112&n)===n)break;for(r=e.eventTimes,o=-1;0<n;){var l=31-Ht(n);i=1<<l,(l=r[l])>o&&(o=l),n&=~i}if(n=o,10<(n=(120>(n=$o()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*El(n/1960))-n)){e.timeoutHandle=Ur(Cu.bind(null,e),n);break}Cu(e);break;default:throw Error(a(329))}}return cu(e,$o()),e.callbackNode===t?fu.bind(null,e):null}function du(e,t){for(t&=~Ml,t&=~Nl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Ht(t),r=1<<n;e[n]=-1,t&=~r}}function hu(e){if(0!=(48&Cl))throw Error(a(327));if(Tu(),e===Ol&&0!=(e.expiredLanes&Tl)){var t=Tl,n=_u(e,t);0!=(Il&Nl)&&(n=_u(e,t=Mt(e,t)))}else n=_u(e,t=Mt(e,0));if(0!==e.tag&&2===n&&(Cl|=64,e.hydrate&&(e.hydrate=!1,Hr(e.containerInfo)),0!==(t=zt(e))&&(n=_u(e,t))),1===n)throw n=Ll,yu(e,0),du(e,t),cu(e,$o()),n;return e.finishedWork=e.current.alternate,e.finishedLanes=t,Cu(e),cu(e,$o()),null}function pu(e,t){var n=Cl;Cl|=1;try{return e(t)}finally{0===(Cl=n)&&(Ul(),Vo())}}function gu(e,t){var n=Cl;Cl&=-2,Cl|=8;try{return e(t)}finally{0===(Cl=n)&&(Ul(),Vo())}}function vu(e,t){lo(jl,Rl),Rl|=t,Il|=t}function mu(){Rl=jl.current,ao(jl)}function yu(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,Br(n)),null!==Pl)for(n=Pl.return;null!==n;){var r=n;switch(r.tag){case 1:null!=(r=r.type.childContextTypes)&&go();break;case 3:ji(),ao(co),ao(so),qi();break;case 5:Li(r);break;case 4:ji();break;case 13:case 19:ao(Ii);break;case 10:ei(r);break;case 23:case 24:mu()}n=n.return}Ol=e,Pl=$u(e.current,null),Tl=Rl=Il=t,Al=0,Ll=null,Ml=Nl=Dl=0}function bu(e,t){for(;;){var n=Pl;try{if(Jo(),Ki.current=Pa,Ji){for(var r=Yi.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null),r=r.next}Ji=!1}if(Gi=0,Zi=Qi=Yi=null,ea=!1,kl.current=null,null===n||null===n.return){Al=1,Ll=t,Pl=null;break}e:{var i=e,a=n.return,l=n,u=t;if(t=Tl,l.flags|=2048,l.firstEffect=l.lastEffect=null,null!==u&&"object"==typeof u&&"function"==typeof u.then){var s=u;if(0==(2&l.mode)){var c=l.alternate;c?(l.updateQueue=c.updateQueue,l.memoizedState=c.memoizedState,l.lanes=c.lanes):(l.updateQueue=null,l.memoizedState=null)}var f=0!=(1&Ii.current),d=a;do{var h;if(h=13===d.tag){var p=d.memoizedState;if(null!==p)h=null!==p.dehydrated;else{var g=d.memoizedProps;h=void 0!==g.fallback&&(!0!==g.unstable_avoidThisFallback||!f)}}if(h){var v=d.updateQueue;if(null===v){var m=new Set;m.add(s),d.updateQueue=m}else v.add(s);if(0==(2&d.mode)){if(d.flags|=64,l.flags|=16384,l.flags&=-2981,1===l.tag)if(null===l.alternate)l.tag=17;else{var y=li(-1,1);y.tag=2,ui(l,y)}l.lanes|=1;break e}u=void 0,l=t;var b=i.pingCache;if(null===b?(b=i.pingCache=new il,u=new Set,b.set(s,u)):void 0===(u=b.get(s))&&(u=new Set,b.set(s,u)),!u.has(l)){u.add(l);var w=Du.bind(null,i,s,l);s.then(w,w)}d.flags|=4096,d.lanes=t;break e}d=d.return}while(null!==d);u=Error((K(l.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display.")}5!==Al&&(Al=2),u=rl(u,l),d=a;do{switch(d.tag){case 3:i=u,d.flags|=4096,t&=-t,d.lanes|=t,si(d,al(0,i,t));break e;case 1:i=u;var _=d.type,x=d.stateNode;if(0==(64&d.flags)&&("function"==typeof _.getDerivedStateFromError||null!==x&&"function"==typeof x.componentDidCatch&&(null===ql||!ql.has(x)))){d.flags|=4096,t&=-t,d.lanes|=t,si(d,ll(d,i,t));break e}}d=d.return}while(null!==d)}ku(n)}catch(e){t=e,Pl===n&&null!==n&&(Pl=n=n.return);continue}break}}function wu(){var e=Sl.current;return Sl.current=Pa,null===e?Pa:e}function _u(e,t){var n=Cl;Cl|=16;var r=wu();for(Ol===e&&Tl===t||yu(e,t);;)try{xu();break}catch(t){bu(e,t)}if(Jo(),Cl=n,Sl.current=r,null!==Pl)throw Error(a(261));return Ol=null,Tl=0,Al}function xu(){for(;null!==Pl;)Su(Pl)}function Eu(){for(;null!==Pl&&!ko();)Su(Pl)}function Su(e){var t=Bl(e.alternate,e,Rl);e.memoizedProps=e.pendingProps,null===t?ku(e):Pl=t,kl.current=null}function ku(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(2048&t.flags)){if(null!==(n=tl(n,t,Rl)))return void(Pl=n);if(24!==(n=t).tag&&23!==n.tag||null===n.memoizedState||0!=(1073741824&Rl)||0==(4&n.mode)){for(var r=0,o=n.child;null!==o;)r|=o.lanes|o.childLanes,o=o.sibling;n.childLanes=r}null!==e&&0==(2048&e.flags)&&(null===e.firstEffect&&(e.firstEffect=t.firstEffect),null!==t.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=t.firstEffect),e.lastEffect=t.lastEffect),1<t.flags&&(null!==e.lastEffect?e.lastEffect.nextEffect=t:e.firstEffect=t,e.lastEffect=t))}else{if(null!==(n=nl(t)))return n.flags&=2047,void(Pl=n);null!==e&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}if(null!==(t=t.sibling))return void(Pl=t);Pl=t=e}while(null!==t);0===Al&&(Al=5)}function Cu(e){var t=Uo();return Ho(99,Ou.bind(null,e,t)),null}function Ou(e,t){do{Tu()}while(null!==Xl);if(0!=(48&Cl))throw Error(a(327));var n=e.finishedWork;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(a(177));e.callbackNode=null;var r=n.lanes|n.childLanes,o=r,i=e.pendingLanes&~o;e.pendingLanes=o,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=o,e.mutableReadLanes&=o,e.entangledLanes&=o,o=e.entanglements;for(var l=e.eventTimes,u=e.expirationTimes;0<i;){var s=31-Ht(i),c=1<<s;o[s]=0,l[s]=-1,u[s]=-1,i&=~c}if(null!==Zl&&0==(24&r)&&Zl.has(e)&&Zl.delete(e),e===Ol&&(Pl=Ol=null,Tl=0),1<n.flags?null!==n.lastEffect?(n.lastEffect.nextEffect=n,r=n.firstEffect):r=n:r=n.firstEffect,null!==r){if(o=Cl,Cl|=32,kl.current=null,Mr=Xt,hr(l=dr())){if("selectionStart"in l)u={start:l.selectionStart,end:l.selectionEnd};else e:if(u=(u=l.ownerDocument)&&u.defaultView||window,(c=u.getSelection&&u.getSelection())&&0!==c.rangeCount){u=c.anchorNode,i=c.anchorOffset,s=c.focusNode,c=c.focusOffset;try{u.nodeType,s.nodeType}catch(e){u=null;break e}var f=0,d=-1,h=-1,p=0,g=0,v=l,m=null;t:for(;;){for(var y;v!==u||0!==i&&3!==v.nodeType||(d=f+i),v!==s||0!==c&&3!==v.nodeType||(h=f+c),3===v.nodeType&&(f+=v.nodeValue.length),null!==(y=v.firstChild);)m=v,v=y;for(;;){if(v===l)break t;if(m===u&&++p===i&&(d=f),m===s&&++g===c&&(h=f),null!==(y=v.nextSibling))break;m=(v=m).parentNode}v=y}u=-1===d||-1===h?null:{start:d,end:h}}else u=null;u=u||{start:0,end:0}}else u=null;zr={focusedElem:l,selectionRange:u},Xt=!1,ou=null,iu=!1,Hl=r;do{try{Pu()}catch(e){if(null===Hl)throw Error(a(330));Iu(Hl,e),Hl=Hl.nextEffect}}while(null!==Hl);ou=null,Hl=r;do{try{for(l=e;null!==Hl;){var b=Hl.flags;if(16&b&&me(Hl.stateNode,""),128&b){var w=Hl.alternate;if(null!==w){var _=w.ref;null!==_&&("function"==typeof _?_(null):_.current=null)}}switch(1038&b){case 2:vl(Hl),Hl.flags&=-3;break;case 6:vl(Hl),Hl.flags&=-3,wl(Hl.alternate,Hl);break;case 1024:Hl.flags&=-1025;break;case 1028:Hl.flags&=-1025,wl(Hl.alternate,Hl);break;case 4:wl(Hl.alternate,Hl);break;case 8:bl(l,u=Hl);var x=u.alternate;pl(u),null!==x&&pl(x)}Hl=Hl.nextEffect}}catch(e){if(null===Hl)throw Error(a(330));Iu(Hl,e),Hl=Hl.nextEffect}}while(null!==Hl);if(_=zr,w=dr(),b=_.focusedElem,l=_.selectionRange,w!==b&&b&&b.ownerDocument&&fr(b.ownerDocument.documentElement,b)){null!==l&&hr(b)&&(w=l.start,void 0===(_=l.end)&&(_=w),"selectionStart"in b?(b.selectionStart=w,b.selectionEnd=Math.min(_,b.value.length)):(_=(w=b.ownerDocument||document)&&w.defaultView||window).getSelection&&(_=_.getSelection(),u=b.textContent.length,x=Math.min(l.start,u),l=void 0===l.end?x:Math.min(l.end,u),!_.extend&&x>l&&(u=l,l=x,x=u),u=cr(b,x),i=cr(b,l),u&&i&&(1!==_.rangeCount||_.anchorNode!==u.node||_.anchorOffset!==u.offset||_.focusNode!==i.node||_.focusOffset!==i.offset)&&((w=w.createRange()).setStart(u.node,u.offset),_.removeAllRanges(),x>l?(_.addRange(w),_.extend(i.node,i.offset)):(w.setEnd(i.node,i.offset),_.addRange(w))))),w=[];for(_=b;_=_.parentNode;)1===_.nodeType&&w.push({element:_,left:_.scrollLeft,top:_.scrollTop});for("function"==typeof b.focus&&b.focus(),b=0;b<w.length;b++)(_=w[b]).element.scrollLeft=_.left,_.element.scrollTop=_.top}Xt=!!Mr,zr=Mr=null,e.current=n,Hl=r;do{try{for(b=e;null!==Hl;){var E=Hl.flags;if(36&E&&fl(b,Hl.alternate,Hl),128&E){w=void 0;var S=Hl.ref;if(null!==S){var k=Hl.stateNode;Hl.tag,w=k,"function"==typeof S?S(w):S.current=w}}Hl=Hl.nextEffect}}catch(e){if(null===Hl)throw Error(a(330));Iu(Hl,e),Hl=Hl.nextEffect}}while(null!==Hl);Hl=null,Do(),Cl=o}else e.current=n;if(Kl)Kl=!1,Xl=e,Gl=t;else for(Hl=r;null!==Hl;)t=Hl.nextEffect,Hl.nextEffect=null,8&Hl.flags&&((E=Hl).sibling=null,E.stateNode=null),Hl=t;if(0===(r=e.pendingLanes)&&(ql=null),1===r?e===eu?Jl++:(Jl=0,eu=e):Jl=0,n=n.stateNode,_o&&"function"==typeof _o.onCommitFiberRoot)try{_o.onCommitFiberRoot(wo,n,void 0,64==(64&n.current.flags))}catch(e){}if(cu(e,$o()),Wl)throw Wl=!1,e=Vl,Vl=null,e;return 0!=(8&Cl)||Vo(),null}function Pu(){for(;null!==Hl;){var e=Hl.alternate;iu||null===ou||(0!=(8&Hl.flags)?Je(Hl,ou)&&(iu=!0):13===Hl.tag&&xl(e,Hl)&&Je(Hl,ou)&&(iu=!0));var t=Hl.flags;0!=(256&t)&&cl(e,Hl),0==(512&t)||Kl||(Kl=!0,Wo(97,(function(){return Tu(),null}))),Hl=Hl.nextEffect}}function Tu(){if(90!==Gl){var e=97<Gl?97:Gl;return Gl=90,Ho(e,Au)}return!1}function Ru(e,t){Yl.push(t,e),Kl||(Kl=!0,Wo(97,(function(){return Tu(),null})))}function ju(e,t){Ql.push(t,e),Kl||(Kl=!0,Wo(97,(function(){return Tu(),null})))}function Au(){if(null===Xl)return!1;var e=Xl;if(Xl=null,0!=(48&Cl))throw Error(a(331));var t=Cl;Cl|=32;var n=Ql;Ql=[];for(var r=0;r<n.length;r+=2){var o=n[r],i=n[r+1],l=o.destroy;if(o.destroy=void 0,"function"==typeof l)try{l()}catch(e){if(null===i)throw Error(a(330));Iu(i,e)}}for(n=Yl,Yl=[],r=0;r<n.length;r+=2){o=n[r],i=n[r+1];try{var u=o.create;o.destroy=u()}catch(e){if(null===i)throw Error(a(330));Iu(i,e)}}for(u=e.current.firstEffect;null!==u;)e=u.nextEffect,u.nextEffect=null,8&u.flags&&(u.sibling=null,u.stateNode=null),u=e;return Cl=t,Vo(),!0}function Lu(e,t,n){ui(e,t=al(0,t=rl(n,t),1)),t=au(),null!==(e=su(e,1))&&(Bt(e,1,t),cu(e,t))}function Iu(e,t){if(3===e.tag)Lu(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){Lu(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===ql||!ql.has(r))){var o=ll(n,e=rl(t,e),1);if(ui(n,o),o=au(),null!==(n=su(n,1)))Bt(n,1,o),cu(n,o);else if("function"==typeof r.componentDidCatch&&(null===ql||!ql.has(r)))try{r.componentDidCatch(t,e)}catch(e){}break}}n=n.return}}function Du(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=au(),e.pingedLanes|=e.suspendedLanes&n,Ol===e&&(Tl&n)===n&&(4===Al||3===Al&&(62914560&Tl)===Tl&&500>$o()-Fl?yu(e,0):Ml|=n),cu(e,t)}function Nu(e,t){var n=e.stateNode;null!==n&&n.delete(t),0==(t=0)&&(0==(2&(t=e.mode))?t=1:0==(4&t)?t=99===Uo()?1:2:(0===nu&&(nu=Il),0===(t=$t(62914560&~nu))&&(t=4194304))),n=au(),null!==(e=su(e,t))&&(Bt(e,t,n),cu(e,n))}function Mu(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function zu(e,t,n,r){return new Mu(e,t,n,r)}function Fu(e){return!(!(e=e.prototype)||!e.isReactComponent)}function $u(e,t){var n=e.alternate;return null===n?((n=zu(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Uu(e,t,n,r,o,i){var l=2;if(r=e,"function"==typeof e)Fu(e)&&(l=1);else if("string"==typeof e)l=5;else e:switch(e){case S:return Bu(n.children,o,i,t);case N:l=8,o|=16;break;case k:l=8,o|=1;break;case C:return(e=zu(12,n,t,8|o)).elementType=C,e.type=C,e.lanes=i,e;case R:return(e=zu(13,n,t,o)).type=R,e.elementType=R,e.lanes=i,e;case j:return(e=zu(19,n,t,o)).elementType=j,e.lanes=i,e;case M:return Hu(n,o,i,t);case z:return(e=zu(24,n,t,o)).elementType=z,e.lanes=i,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case O:l=10;break e;case P:l=9;break e;case T:l=11;break e;case A:l=14;break e;case L:l=16,r=null;break e;case I:l=22;break e}throw Error(a(130,null==e?e:typeof e,""))}return(t=zu(l,n,t,o)).elementType=e,t.type=r,t.lanes=i,t}function Bu(e,t,n,r){return(e=zu(7,e,r,t)).lanes=n,e}function Hu(e,t,n,r){return(e=zu(23,e,r,t)).elementType=M,e.lanes=n,e}function Wu(e,t,n){return(e=zu(6,e,null,t)).lanes=n,e}function Vu(e,t,n){return(t=zu(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function qu(e,t,n){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=Ut(0),this.expirationTimes=Ut(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ut(0),this.mutableSourceEagerHydrationData=null}function Ku(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:E,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}function Xu(e,t,n,r){var o=t.current,i=au(),l=lu(o);e:if(n){t:{if(Ge(n=n._reactInternals)!==n||1!==n.tag)throw Error(a(170));var u=n;do{switch(u.tag){case 3:u=u.stateNode.context;break t;case 1:if(po(u.type)){u=u.stateNode.__reactInternalMemoizedMergedChildContext;break t}}u=u.return}while(null!==u);throw Error(a(171))}if(1===n.tag){var s=n.type;if(po(s)){n=mo(n,s,u);break e}}n=u}else n=uo;return null===t.context?t.context=n:t.pendingContext=n,(t=li(i,l)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),ui(o,t),uu(o,l,i),l}function Gu(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Yu(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Qu(e,t){Yu(e,t),(e=e.alternate)&&Yu(e,t)}function Zu(e,t,n){var r=null!=n&&null!=n.hydrationOptions&&n.hydrationOptions.mutableSources||null;if(n=new qu(e,t,null!=n&&!0===n.hydrate),t=zu(3,null,null,2===t?7:1===t?3:0),n.current=t,t.stateNode=n,ii(t),e[Yr]=n.current,Pr(8===e.nodeType?e.parentNode:e),r)for(e=0;e<r.length;e++){var o=(t=r[e])._getVersion;o=o(t._source),null==n.mutableSourceEagerHydrationData?n.mutableSourceEagerHydrationData=[t,o]:n.mutableSourceEagerHydrationData.push(t,o)}this._internalRoot=n}function Ju(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function es(e,t,n,r,o){var i=n._reactRootContainer;if(i){var a=i._internalRoot;if("function"==typeof o){var l=o;o=function(){var e=Gu(a);l.call(e)}}Xu(t,a,e,o)}else{if(i=n._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new Zu(e,0,t?{hydrate:!0}:void 0)}(n,r),a=i._internalRoot,"function"==typeof o){var u=o;o=function(){var e=Gu(a);u.call(e)}}gu((function(){Xu(t,a,e,o)}))}return Gu(a)}function ts(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Ju(t))throw Error(a(200));return Ku(e,t,null,n)}Bl=function(e,t,n){var r=t.lanes;if(null!==e)if(e.memoizedProps!==t.pendingProps||co.current)La=!0;else{if(0==(n&r)){switch(La=!1,t.tag){case 3:Ha(t),Wi();break;case 5:Ai(t);break;case 1:po(t.type)&&yo(t);break;case 4:Ri(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value;var o=t.type._context;lo(Go,o._currentValue),o._currentValue=r;break;case 13:if(null!==t.memoizedState)return 0!=(n&t.child.childLanes)?Xa(e,t,n):(lo(Ii,1&Ii.current),null!==(t=Ja(e,t,n))?t.sibling:null);lo(Ii,1&Ii.current);break;case 19:if(r=0!=(n&t.childLanes),0!=(64&e.flags)){if(r)return Za(e,t,n);t.flags|=64}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),lo(Ii,Ii.current),r)break;return null;case 23:case 24:return t.lanes=0,za(e,t,n)}return Ja(e,t,n)}La=0!=(16384&e.flags)}else La=!1;switch(t.lanes=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,o=ho(t,so.current),ni(t,n),o=ra(null,t,r,e,o,n),t.flags|=1,"object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,po(r)){var i=!0;yo(t)}else i=!1;t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,ii(t);var l=r.getDerivedStateFromProps;"function"==typeof l&&hi(t,r,l,e),o.updater=pi,t.stateNode=o,o._reactInternals=t,yi(t,r,e,n),t=Ba(null,t,r,!0,i,n)}else t.tag=0,Ia(null,t,o,n),t=t.child;return t;case 16:o=t.elementType;e:{switch(null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,o=(i=o._init)(o._payload),t.type=o,i=t.tag=function(e){if("function"==typeof e)return Fu(e)?1:0;if(null!=e){if((e=e.$$typeof)===T)return 11;if(e===A)return 14}return 2}(o),e=Xo(o,e),i){case 0:t=$a(null,t,o,e,n);break e;case 1:t=Ua(null,t,o,e,n);break e;case 11:t=Da(null,t,o,e,n);break e;case 14:t=Na(null,t,o,Xo(o.type,e),r,n);break e}throw Error(a(306,o,""))}return t;case 0:return r=t.type,o=t.pendingProps,$a(e,t,r,o=t.elementType===r?o:Xo(r,o),n);case 1:return r=t.type,o=t.pendingProps,Ua(e,t,r,o=t.elementType===r?o:Xo(r,o),n);case 3:if(Ha(t),r=t.updateQueue,null===e||null===r)throw Error(a(282));if(r=t.pendingProps,o=null!==(o=t.memoizedState)?o.element:null,ai(e,t),ci(t,r,null,n),(r=t.memoizedState.element)===o)Wi(),t=Ja(e,t,n);else{if((i=(o=t.stateNode).hydrate)&&(Mi=Wr(t.stateNode.containerInfo.firstChild),Ni=t,i=zi=!0),i){if(null!=(e=o.mutableSourceEagerHydrationData))for(o=0;o<e.length;o+=2)(i=e[o])._workInProgressVersionPrimary=e[o+1],Vi.push(i);for(n=Si(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|1024,n=n.sibling}else Ia(e,t,r,n),Wi();t=t.child}return t;case 5:return Ai(t),null===e&&Ui(t),r=t.type,o=t.pendingProps,i=null!==e?e.memoizedProps:null,l=o.children,$r(r,o)?l=null:null!==i&&$r(r,i)&&(t.flags|=16),Fa(e,t),Ia(e,t,l,n),t.child;case 6:return null===e&&Ui(t),null;case 13:return Xa(e,t,n);case 4:return Ri(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Ei(t,null,r,n):Ia(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,Da(e,t,r,o=t.elementType===r?o:Xo(r,o),n);case 7:return Ia(e,t,t.pendingProps,n),t.child;case 8:case 12:return Ia(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,o=t.pendingProps,l=t.memoizedProps,i=o.value;var u=t.type._context;if(lo(Go,u._currentValue),u._currentValue=i,null!==l)if(u=l.value,0==(i=ar(u,i)?0:0|("function"==typeof r._calculateChangedBits?r._calculateChangedBits(u,i):1073741823))){if(l.children===o.children&&!co.current){t=Ja(e,t,n);break e}}else for(null!==(u=t.child)&&(u.return=t);null!==u;){var s=u.dependencies;if(null!==s){l=u.child;for(var c=s.firstContext;null!==c;){if(c.context===r&&0!=(c.observedBits&i)){1===u.tag&&((c=li(-1,n&-n)).tag=2,ui(u,c)),u.lanes|=n,null!==(c=u.alternate)&&(c.lanes|=n),ti(u.return,n),s.lanes|=n;break}c=c.next}}else l=10===u.tag&&u.type===t.type?null:u.child;if(null!==l)l.return=u;else for(l=u;null!==l;){if(l===t){l=null;break}if(null!==(u=l.sibling)){u.return=l.return,l=u;break}l=l.return}u=l}Ia(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=(i=t.pendingProps).children,ni(t,n),r=r(o=ri(o,i.unstable_observedBits)),t.flags|=1,Ia(e,t,r,n),t.child;case 14:return i=Xo(o=t.type,t.pendingProps),Na(e,t,o,i=Xo(o.type,i),r,n);case 15:return Ma(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Xo(r,o),null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,po(r)?(e=!0,yo(t)):e=!1,ni(t,n),vi(t,r,o),yi(t,r,o,n),Ba(null,t,r,!0,e,n);case 19:return Za(e,t,n);case 23:case 24:return za(e,t,n)}throw Error(a(156,t.tag))},Zu.prototype.render=function(e){Xu(e,this._internalRoot,null,null)},Zu.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;Xu(null,e,null,(function(){t[Yr]=null}))},et=function(e){13===e.tag&&(uu(e,4,au()),Qu(e,4))},tt=function(e){13===e.tag&&(uu(e,67108864,au()),Qu(e,67108864))},nt=function(e){if(13===e.tag){var t=au(),n=lu(e);uu(e,n,t),Qu(e,n)}},rt=function(e,t){return t()},Ce=function(e,t,n){switch(t){case"input":if(ne(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=to(r);if(!o)throw Error(a(90));Q(r),ne(r,o)}}}break;case"textarea":se(e,n);break;case"select":null!=(t=n.value)&&ae(e,!!n.multiple,t,!1)}},Ae=pu,Le=function(e,t,n,r,o){var i=Cl;Cl|=4;try{return Ho(98,e.bind(null,t,n,r,o))}finally{0===(Cl=i)&&(Ul(),Vo())}},Ie=function(){0==(49&Cl)&&(function(){if(null!==Zl){var e=Zl;Zl=null,e.forEach((function(e){e.expiredLanes|=24&e.pendingLanes,cu(e,$o())}))}Vo()}(),Tu())},De=function(e,t){var n=Cl;Cl|=2;try{return e(t)}finally{0===(Cl=n)&&(Ul(),Vo())}};var ns={Events:[Jr,eo,to,Re,je,Tu,{current:!1}]},rs={findFiberByHostInstance:Zr,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},os={bundleType:rs.bundleType,version:rs.version,rendererPackageName:rs.rendererPackageName,rendererConfig:rs.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:_.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Ze(e))?null:e.stateNode},findFiberByHostInstance:rs.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var is=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!is.isDisabled&&is.supportsFiber)try{wo=is.inject(os),_o=is}catch(ge){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ns,t.createPortal=ts,t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(a(188));throw Error(a(268,Object.keys(e)))}return null===(e=Ze(t))?null:e.stateNode},t.flushSync=function(e,t){var n=Cl;if(0!=(48&n))return e(t);Cl|=1;try{if(e)return Ho(99,e.bind(null,t))}finally{Cl=n,Vo()}},t.hydrate=function(e,t,n){if(!Ju(t))throw Error(a(200));return es(null,e,t,!0,n)},t.render=function(e,t,n){if(!Ju(t))throw Error(a(200));return es(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Ju(e))throw Error(a(40));return!!e._reactRootContainer&&(gu((function(){es(null,null,e,!1,(function(){e._reactRootContainer=null,e[Yr]=null}))})),!0)},t.unstable_batchedUpdates=pu,t.unstable_createPortal=function(e,t){return ts(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Ju(n))throw Error(a(200));if(null==e||void 0===e._reactInternals)throw Error(a(38));return es(e,t,n,!1,r)},t.version="17.0.2"},8316:(e,t,n)=>{"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(2967)},1837:(e,t,n)=>{"use strict";n(7320);var r=n(2784),o=60103;if(t.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var i=Symbol.for;o=i("react.element"),t.Fragment=i("react.fragment")}var a=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l=Object.prototype.hasOwnProperty,u={key:!0,ref:!0,__self:!0,__source:!0};function s(e,t,n){var r,i={},s=null,c=null;for(r in void 0!==n&&(s=""+n),void 0!==t.key&&(s=""+t.key),void 0!==t.ref&&(c=t.ref),t)l.call(t,r)&&!u.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===i[r]&&(i[r]=t[r]);return{$$typeof:o,type:e,key:s,ref:c,props:i,_owner:a.current}}t.jsx=s,t.jsxs=s},3426:(e,t,n)=>{"use strict";var r=n(7320),o=60103,i=60106;t.Fragment=60107,t.StrictMode=60108,t.Profiler=60114;var a=60109,l=60110,u=60112;t.Suspense=60113;var s=60115,c=60116;if("function"==typeof Symbol&&Symbol.for){var f=Symbol.for;o=f("react.element"),i=f("react.portal"),t.Fragment=f("react.fragment"),t.StrictMode=f("react.strict_mode"),t.Profiler=f("react.profiler"),a=f("react.provider"),l=f("react.context"),u=f("react.forward_ref"),t.Suspense=f("react.suspense"),s=f("react.memo"),c=f("react.lazy")}var d="function"==typeof Symbol&&Symbol.iterator;function h(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g={};function v(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||p}function m(){}function y(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||p}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(h(85));this.updater.enqueueSetState(this,e,t,"setState")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},m.prototype=v.prototype;var b=y.prototype=new m;b.constructor=y,r(b,v.prototype),b.isPureReactComponent=!0;var w={current:null},_=Object.prototype.hasOwnProperty,x={key:!0,ref:!0,__self:!0,__source:!0};function E(e,t,n){var r,i={},a=null,l=null;if(null!=t)for(r in void 0!==t.ref&&(l=t.ref),void 0!==t.key&&(a=""+t.key),t)_.call(t,r)&&!x.hasOwnProperty(r)&&(i[r]=t[r]);var u=arguments.length-2;if(1===u)i.children=n;else if(1<u){for(var s=Array(u),c=0;c<u;c++)s[c]=arguments[c+2];i.children=s}if(e&&e.defaultProps)for(r in u=e.defaultProps)void 0===i[r]&&(i[r]=u[r]);return{$$typeof:o,type:e,key:a,ref:l,props:i,_owner:w.current}}function S(e){return"object"==typeof e&&null!==e&&e.$$typeof===o}var k=/\/+/g;function C(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function O(e,t,n,r,a){var l=typeof e;"undefined"!==l&&"boolean"!==l||(e=null);var u=!1;if(null===e)u=!0;else switch(l){case"string":case"number":u=!0;break;case"object":switch(e.$$typeof){case o:case i:u=!0}}if(u)return a=a(u=e),e=""===r?"."+C(u,0):r,Array.isArray(a)?(n="",null!=e&&(n=e.replace(k,"$&/")+"/"),O(a,t,n,"",(function(e){return e}))):null!=a&&(S(a)&&(a=function(e,t){return{$$typeof:o,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,n+(!a.key||u&&u.key===a.key?"":(""+a.key).replace(k,"$&/")+"/")+e)),t.push(a)),1;if(u=0,r=""===r?".":r+":",Array.isArray(e))for(var s=0;s<e.length;s++){var c=r+C(l=e[s],s);u+=O(l,t,n,c,a)}else if(c=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=d&&e[d]||e["@@iterator"])?e:null}(e),"function"==typeof c)for(e=c.call(e),s=0;!(l=e.next()).done;)u+=O(l=l.value,t,n,c=r+C(l,s++),a);else if("object"===l)throw t=""+e,Error(h(31,"[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t));return u}function P(e,t,n){if(null==e)return e;var r=[],o=0;return O(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function T(e){if(-1===e._status){var t=e._result;t=t(),e._status=0,e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}if(1===e._status)return e._result;throw e._result}var R={current:null};function j(){var e=R.current;if(null===e)throw Error(h(321));return e}var A={ReactCurrentDispatcher:R,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:w,IsSomeRendererActing:{current:!1},assign:r};t.Children={map:P,forEach:function(e,t,n){P(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return P(e,(function(){t++})),t},toArray:function(e){return P(e,(function(e){return e}))||[]},only:function(e){if(!S(e))throw Error(h(143));return e}},t.Component=v,t.PureComponent=y,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=A,t.cloneElement=function(e,t,n){if(null==e)throw Error(h(267,e));var i=r({},e.props),a=e.key,l=e.ref,u=e._owner;if(null!=t){if(void 0!==t.ref&&(l=t.ref,u=w.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(c in t)_.call(t,c)&&!x.hasOwnProperty(c)&&(i[c]=void 0===t[c]&&void 0!==s?s[c]:t[c])}var c=arguments.length-2;if(1===c)i.children=n;else if(1<c){s=Array(c);for(var f=0;f<c;f++)s[f]=arguments[f+2];i.children=s}return{$$typeof:o,type:e.type,key:a,ref:l,props:i,_owner:u}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:l,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:a,_context:e},e.Consumer=e},t.createElement=E,t.createFactory=function(e){var t=E.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:u,render:e}},t.isValidElement=S,t.lazy=function(e){return{$$typeof:c,_payload:{_status:-1,_result:e},_init:T}},t.memo=function(e,t){return{$$typeof:s,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return j().useCallback(e,t)},t.useContext=function(e,t){return j().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return j().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return j().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return j().useLayoutEffect(e,t)},t.useMemo=function(e,t){return j().useMemo(e,t)},t.useReducer=function(e,t,n){return j().useReducer(e,t,n)},t.useRef=function(e){return j().useRef(e)},t.useState=function(e){return j().useState(e)},t.version="17.0.2"},2784:(e,t,n)=>{"use strict";e.exports=n(3426)},2322:(e,t,n)=>{"use strict";e.exports=n(1837)},5047:e=>{var t=function(e){"use strict";var t,n=Object.prototype,r=n.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function s(e,t,n,r){var o=t&&t.prototype instanceof v?t:v,i=Object.create(o.prototype),a=new P(r||[]);return i._invoke=function(e,t,n){var r=f;return function(o,i){if(r===h)throw new Error("Generator is already running");if(r===p){if("throw"===o)throw i;return R()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var l=k(a,n);if(l){if(l===g)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===f)throw r=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=h;var u=c(e,t,n);if("normal"===u.type){if(r=n.done?p:d,u.arg===g)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r=p,n.method="throw",n.arg=u.arg)}}}(e,n,a),i}function c(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=s;var f="suspendedStart",d="suspendedYield",h="executing",p="completed",g={};function v(){}function m(){}function y(){}var b={};u(b,i,(function(){return this}));var w=Object.getPrototypeOf,_=w&&w(w(T([])));_&&_!==n&&r.call(_,i)&&(b=_);var x=y.prototype=v.prototype=Object.create(b);function E(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function n(o,i,a,l){var u=c(e[o],e,i);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==typeof f&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){n("next",e,a,l)}),(function(e){n("throw",e,a,l)})):t.resolve(f).then((function(e){s.value=e,a(s)}),(function(e){return n("throw",e,a,l)}))}l(u.arg)}var o;this._invoke=function(e,r){function i(){return new t((function(t,o){n(e,r,t,o)}))}return o=o?o.then(i,i):i()}}function k(e,n){var r=e.iterator[n.method];if(r===t){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=t,k(e,n),"throw"===n.method))return g;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return g}var o=c(r,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,g;var i=o.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function C(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(C,this),this.reset(!0)}function T(e){if(e){var n=e[i];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}return{next:R}}function R(){return{value:t,done:!0}}return m.prototype=y,u(x,"constructor",y),u(y,"constructor",m),m.displayName=u(y,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,u(e,l,"GeneratorFunction")),e.prototype=Object.create(x),e},e.awrap=function(e){return{__await:e}},E(S.prototype),u(S.prototype,a,(function(){return this})),e.AsyncIterator=S,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new S(s(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(x),u(x,l,"Generator"),u(x,i,(function(){return this})),u(x,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=T,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(O),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return l.type="throw",l.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],l=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=r.call(a,"catchLoc"),s=r.call(a,"finallyLoc");if(u&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;O(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:T(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),g}},e}(e.exports);try{regeneratorRuntime=t}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}},6475:(e,t)=>{"use strict";var n,r,o,i;if("object"==typeof performance&&"function"==typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var l=Date,u=l.now();t.unstable_now=function(){return l.now()-u}}if("undefined"==typeof window||"function"!=typeof MessageChannel){var s=null,c=null,f=function(){if(null!==s)try{var e=t.unstable_now();s(!0,e),s=null}catch(e){throw setTimeout(f,0),e}};n=function(e){null!==s?setTimeout(n,0,e):(s=e,setTimeout(f,0))},r=function(e,t){c=setTimeout(e,t)},o=function(){clearTimeout(c)},t.unstable_shouldYield=function(){return!1},i=t.unstable_forceFrameRate=function(){}}else{var d=window.setTimeout,h=window.clearTimeout;if("undefined"!=typeof console){var p=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),"function"!=typeof p&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var g=!1,v=null,m=-1,y=5,b=0;t.unstable_shouldYield=function(){return t.unstable_now()>=b},i=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):y=0<e?Math.floor(1e3/e):5};var w=new MessageChannel,_=w.port2;w.port1.onmessage=function(){if(null!==v){var e=t.unstable_now();b=e+y;try{v(!0,e)?_.postMessage(null):(g=!1,v=null)}catch(e){throw _.postMessage(null),e}}else g=!1},n=function(e){v=e,g||(g=!0,_.postMessage(null))},r=function(e,n){m=d((function(){e(t.unstable_now())}),n)},o=function(){h(m),m=-1}}function x(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,o=e[r];if(!(void 0!==o&&0<k(o,t)))break e;e[r]=t,e[n]=o,n=r}}function E(e){return void 0===(e=e[0])?null:e}function S(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length;r<o;){var i=2*(r+1)-1,a=e[i],l=i+1,u=e[l];if(void 0!==a&&0>k(a,n))void 0!==u&&0>k(u,a)?(e[r]=u,e[l]=n,r=l):(e[r]=a,e[i]=n,r=i);else{if(!(void 0!==u&&0>k(u,n)))break e;e[r]=u,e[l]=n,r=l}}}return t}return null}function k(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var C=[],O=[],P=1,T=null,R=3,j=!1,A=!1,L=!1;function I(e){for(var t=E(O);null!==t;){if(null===t.callback)S(O);else{if(!(t.startTime<=e))break;S(O),t.sortIndex=t.expirationTime,x(C,t)}t=E(O)}}function D(e){if(L=!1,I(e),!A)if(null!==E(C))A=!0,n(N);else{var t=E(O);null!==t&&r(D,t.startTime-e)}}function N(e,n){A=!1,L&&(L=!1,o()),j=!0;var i=R;try{for(I(n),T=E(C);null!==T&&(!(T.expirationTime>n)||e&&!t.unstable_shouldYield());){var a=T.callback;if("function"==typeof a){T.callback=null,R=T.priorityLevel;var l=a(T.expirationTime<=n);n=t.unstable_now(),"function"==typeof l?T.callback=l:T===E(C)&&S(C),I(n)}else S(C);T=E(C)}if(null!==T)var u=!0;else{var s=E(O);null!==s&&r(D,s.startTime-n),u=!1}return u}finally{T=null,R=i,j=!1}}var M=i;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){A||j||(A=!0,n(N))},t.unstable_getCurrentPriorityLevel=function(){return R},t.unstable_getFirstCallbackNode=function(){return E(C)},t.unstable_next=function(e){switch(R){case 1:case 2:case 3:var t=3;break;default:t=R}var n=R;R=t;try{return e()}finally{R=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=M,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=R;R=e;try{return t()}finally{R=n}},t.unstable_scheduleCallback=function(e,i,a){var l=t.unstable_now();switch(a="object"==typeof a&&null!==a&&"number"==typeof(a=a.delay)&&0<a?l+a:l,e){case 1:var u=-1;break;case 2:u=250;break;case 5:u=1073741823;break;case 4:u=1e4;break;default:u=5e3}return e={id:P++,callback:i,priorityLevel:e,startTime:a,expirationTime:u=a+u,sortIndex:-1},a>l?(e.sortIndex=a,x(O,e),null===E(C)&&e===E(O)&&(L?o():L=!0,r(D,a-l))):(e.sortIndex=u,x(C,e),A||j||(A=!0,n(N))),e},t.unstable_wrapCallback=function(e){var t=R;return function(){var n=R;R=t;try{return e.apply(this,arguments)}finally{R=n}}}},4616:(e,t,n)=>{"use strict";e.exports=n(6475)},6062:e=>{"use strict";var t=[];function n(e){for(var n=-1,r=0;r<t.length;r++)if(t[r].identifier===e){n=r;break}return n}function r(e,r){for(var i={},a=[],l=0;l<e.length;l++){var u=e[l],s=r.base?u[0]+r.base:u[0],c=i[s]||0,f="".concat(s," ").concat(c);i[s]=c+1;var d=n(f),h={css:u[1],media:u[2],sourceMap:u[3],supports:u[4],layer:u[5]};if(-1!==d)t[d].references++,t[d].updater(h);else{var p=o(h,r);r.byIndex=l,t.splice(l,0,{identifier:f,updater:p,references:1})}a.push(f)}return a}function o(e,t){var n=t.domAPI(t);return n.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;n.update(e=t)}else n.remove()}}e.exports=function(e,o){var i=r(e=e||[],o=o||{});return function(e){e=e||[];for(var a=0;a<i.length;a++){var l=n(i[a]);t[l].references--}for(var u=r(e,o),s=0;s<i.length;s++){var c=n(i[s]);0===t[c].references&&(t[c].updater(),t.splice(c,1))}i=u}}},6793:e=>{"use strict";var t={};e.exports=function(e,n){var r=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(n)}},1173:e=>{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},7892:(e,t,n)=>{"use strict";e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},4036:e=>{"use strict";e.exports=function(e){var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var r="";n.supports&&(r+="@supports (".concat(n.supports,") {")),n.media&&(r+="@media ".concat(n.media," {"));var o=void 0!==n.layer;o&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,o&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var i=n.sourceMap;i&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),t.styleTagTransform(r,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},2464:e=>{"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},7757:(e,t,n)=>{e.exports=n(5047)},6122:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=n(9384),i=r(n(1688)),a=function(e){return o.isExtractableFile(e)||null!==e&&"object"==typeof e&&"function"==typeof e.pipe};t.default=function(e,t,n){var r=o.extractFiles({query:e,variables:t,operationName:n},"",a),l=r.clone,u=r.files;if(0===u.size){if(!Array.isArray(e))return JSON.stringify(l);if(void 0!==t&&!Array.isArray(t))throw new Error("Cannot create request body with given variable type, array expected");var s=e.reduce((function(e,n,r){return e.push({query:n,variables:t?t[r]:void 0}),e}),[]);return JSON.stringify(s)}var c=new("undefined"==typeof FormData?i.default:FormData);c.append("operations",JSON.stringify(l));var f={},d=0;return u.forEach((function(e){f[++d]=e})),c.append("map",JSON.stringify(f)),d=0,u.forEach((function(e,t){c.append(""+ ++d,t)})),c}},820:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)},o=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return i(t,e),t},l=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function l(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,l)}u((r=r.apply(e,t||[])).next())}))},u=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,l])}}},s=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},c=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.gql=t.batchRequests=t.request=t.rawRequest=t.GraphQLClient=t.ClientError=void 0;var f=a(n(6279)),d=f,h=n(7008),p=c(n(6122)),g=n(8124),v=n(8124);Object.defineProperty(t,"ClientError",{enumerable:!0,get:function(){return v.ClientError}});var m=function(e){var t={};return e&&("undefined"!=typeof Headers&&e instanceof Headers||e instanceof d.Headers?t=function(e){var t={};return e.forEach((function(e,n){t[n]=e})),t}(e):Array.isArray(e)?e.forEach((function(e){var n=e[0],r=e[1];t[n]=r})):t=e),t},y=function(e){return e.replace(/([\s,]|#[^\n\r]+)+/g," ").trim()},b=function(e){var t=e.url,n=e.query,o=e.variables,i=e.operationName,a=e.headers,s=e.fetch,c=e.fetchOptions;return l(void 0,void 0,void 0,(function(){var e;return u(this,(function(l){switch(l.label){case 0:return e=p.default(n,o,i),[4,s(t,r({method:"POST",headers:r(r({},"string"==typeof e?{"Content-Type":"application/json"}:{}),a),body:e},c))];case 1:return[2,l.sent()]}}))}))},w=function(e){var t=e.url,n=e.query,o=e.variables,i=e.operationName,a=e.headers,s=e.fetch,c=e.fetchOptions;return l(void 0,void 0,void 0,(function(){var e;return u(this,(function(l){switch(l.label){case 0:return e=function(e){var t=e.query,n=e.variables,r=e.operationName;if(!Array.isArray(t)){var o=["query="+encodeURIComponent(y(t))];return n&&o.push("variables="+encodeURIComponent(JSON.stringify(n))),r&&o.push("operationName="+encodeURIComponent(r)),o.join("&")}if(void 0!==n&&!Array.isArray(n))throw new Error("Cannot create query with given variable type, array expected");var i=t.reduce((function(e,t,r){return e.push({query:y(t),variables:n?JSON.stringify(n[r]):void 0}),e}),[]);return"query="+encodeURIComponent(JSON.stringify(i))}({query:n,variables:o,operationName:i}),[4,s(t+"?"+e,r({method:"GET",headers:a},c))];case 1:return[2,l.sent()]}}))}))},_=function(){function e(e,t){this.url=e,this.options=t||{}}return e.prototype.rawRequest=function(e,t,n){var o=this.options,i=o.headers,a=o.fetch,l=void 0===a?f.default:a,u=o.method,c=void 0===u?"POST":u,d=s(o,["headers","fetch","method"]);return x({url:this.url,query:e,variables:t,headers:r(r({},m(i)),m(n)),operationName:void 0,fetch:l,method:c,fetchOptions:d})},e.prototype.request=function(e,t,n){return l(this,void 0,void 0,(function(){var o,i,a,l,c,d,h,p,g,v,y;return u(this,(function(u){switch(u.label){case 0:return o=this.options,i=o.headers,a=o.fetch,l=void 0===a?f.default:a,c=o.method,d=void 0===c?"POST":c,h=s(o,["headers","fetch","method"]),p=this.url,g=k(e),v=g.query,y=g.operationName,[4,x({url:p,query:v,variables:t,headers:r(r({},m(i)),m(n)),operationName:y,fetch:l,method:d,fetchOptions:h})];case 1:return[2,u.sent().data]}}))}))},e.prototype.batchRequests=function(e,t){return l(this,void 0,void 0,(function(){var n,o,i,a,l,c,d,h,p,g;return u(this,(function(u){switch(u.label){case 0:return n=this.options,o=n.headers,i=n.fetch,a=void 0===i?f.default:i,l=n.method,c=void 0===l?"POST":l,d=s(n,["headers","fetch","method"]),h=this.url,p=e.map((function(e){return k(e.document).query})),g=e.map((function(e){return e.variables})),[4,x({url:h,query:p,variables:g,headers:r(r({},m(o)),m(t)),operationName:void 0,fetch:a,method:c,fetchOptions:d})];case 1:return[2,u.sent().data]}}))}))},e.prototype.setHeaders=function(e){return this.options.headers=e,this},e.prototype.setHeader=function(e,t){var n,r=this.options.headers;return r?r[e]=t:this.options.headers=((n={})[e]=t,n),this},e.prototype.setEndpoint=function(e){return this.url=e,this},e}();function x(e){var t=e.url,n=e.query,o=e.variables,i=e.headers,a=e.operationName,s=e.fetch,c=e.method,f=void 0===c?"POST":c,d=e.fetchOptions;return l(this,void 0,void 0,(function(){var e,l,c,h,p,v,m,y;return u(this,(function(u){switch(u.label){case 0:return e="POST"===f.toUpperCase()?b:w,l=Array.isArray(n),[4,e({url:t,query:n,variables:o,operationName:a,headers:i,fetch:s,fetchOptions:d})];case 1:return[4,S(c=u.sent())];case 2:if(h=u.sent(),p=l&&Array.isArray(h)?!h.some((function(e){return!e.data})):!!h.data,c.ok&&!h.errors&&p)return v=c.headers,m=c.status,[2,r(r({},l?{data:h}:h),{headers:v,status:m})];throw y="string"==typeof h?{error:h}:h,new g.ClientError(r(r({},y),{status:c.status,headers:c.headers}),{query:n,variables:o})}}))}))}function E(e,t,n,r){return l(this,void 0,void 0,(function(){return u(this,(function(o){return[2,new _(e).request(t,n,r)]}))}))}function S(e){var t=e.headers.get("Content-Type");return t&&t.startsWith("application/json")?e.json():e.text()}function k(e){var t;if("string"==typeof e)return{query:e};var n=void 0,r=e.definitions.filter((function(e){return"OperationDefinition"===e.kind}));return 1===r.length&&(n=null===(t=r[0].name)||void 0===t?void 0:t.value),{query:h.print(e),operationName:n}}t.GraphQLClient=_,t.rawRequest=function(e,t,n,r){return l(this,void 0,void 0,(function(){return u(this,(function(o){return[2,new _(e).rawRequest(t,n,r)]}))}))},t.request=E,t.batchRequests=function(e,t,n){return l(this,void 0,void 0,(function(){return u(this,(function(r){return[2,new _(e).batchRequests(t,n)]}))}))},t.default=E,t.gql=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return e.reduce((function(e,n,r){return""+e+n+(r in t?t[r]:"")}),"")}},8124:function(e,t){"use strict";var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.ClientError=void 0;var o=function(e){function t(n,r){var o=this,i=t.extractMessage(n)+": "+JSON.stringify({response:n,request:r});return o=e.call(this,i)||this,Object.setPrototypeOf(o,t.prototype),o.response=n,o.request=r,"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(o,t),o}return r(t,e),t.extractMessage=function(e){try{return e.errors[0].message}catch(t){return"GraphQL Error (Code: "+e.status+")"}},t}(Error);t.ClientError=o},8978:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.prototype.toJSON;"function"==typeof t||(0,r.default)(0),e.prototype.inspect=t,o.default&&(e.prototype[o.default]=t)};var r=i(n(7949)),o=i(n(3919));function i(e){return e&&e.__esModule?e:{default:e}}},8882:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return a(e,[])};var r,o=(r=n(3919))&&r.__esModule?r:{default:r};function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function a(e,t){switch(i(e)){case"string":return JSON.stringify(e);case"function":return e.name?"[function ".concat(e.name,"]"):"[function]";case"object":return null===e?"null":function(e,t){if(-1!==t.indexOf(e))return"[Circular]";var n=[].concat(t,[e]),r=function(e){var t=e[String(o.default)];return"function"==typeof t?t:"function"==typeof e.inspect?e.inspect:void 0}(e);if(void 0!==r){var i=r.call(e);if(i!==e)return"string"==typeof i?i:a(i,n)}else if(Array.isArray(e))return function(e,t){if(0===e.length)return"[]";if(t.length>2)return"[Array]";for(var n=Math.min(10,e.length),r=e.length-n,o=[],i=0;i<n;++i)o.push(a(e[i],t));return 1===r?o.push("... 1 more item"):r>1&&o.push("... ".concat(r," more items")),"["+o.join(", ")+"]"}(e,n);return function(e,t){var n=Object.keys(e);return 0===n.length?"{}":t.length>2?"["+function(e){var t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){var n=e.constructor.name;if("string"==typeof n&&""!==n)return n}return t}(e)+"]":"{ "+n.map((function(n){return n+": "+a(e[n],t)})).join(", ")+" }"}(e,n)}(e,t);default:return String(e)}}},7949:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(!Boolean(e))throw new Error(null!=t?t:"Unexpected invariant triggered.")}},3919:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):void 0;t.default=n},1258:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isNode=function(e){return null!=e&&"string"==typeof e.kind},t.Token=t.Location=void 0;var r,o=(r=n(8978))&&r.__esModule?r:{default:r},i=function(){function e(e,t,n){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=n}return e.prototype.toJSON=function(){return{start:this.start,end:this.end}},e}();t.Location=i,(0,o.default)(i);var a=function(){function e(e,t,n,r,o,i,a){this.kind=e,this.start=t,this.end=n,this.line=r,this.column=o,this.value=a,this.prev=i,this.next=null}return e.prototype.toJSON=function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}},e}();t.Token=a,(0,o.default)(a)},6486:(e,t)=>{"use strict";function n(e){for(var t=0;t<e.length;++t)if(" "!==e[t]&&"\t"!==e[t])return!1;return!0}function r(e){for(var t,n=!0,r=!0,o=0,i=null,a=0;a<e.length;++a)switch(e.charCodeAt(a)){case 13:10===e.charCodeAt(a+1)&&++a;case 10:n=!1,r=!0,o=0;break;case 9:case 32:++o;break;default:r&&!n&&(null===i||o<i)&&(i=o),r=!1}return null!==(t=i)&&void 0!==t?t:0}Object.defineProperty(t,"__esModule",{value:!0}),t.dedentBlockStringValue=function(e){var t=e.split(/\r\n|[\n\r]/g),o=r(e);if(0!==o)for(var i=1;i<t.length;i++)t[i]=t[i].slice(o);for(var a=0;a<t.length&&n(t[a]);)++a;for(var l=t.length;l>a&&n(t[l-1]);)--l;return t.slice(a,l).join("\n")},t.getBlockStringIndentation=r,t.printBlockString=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=-1===e.indexOf("\n"),o=" "===e[0]||"\t"===e[0],i='"'===e[e.length-1],a="\\"===e[e.length-1],l=!r||i||a||n,u="";return!l||r&&o||(u+="\n"+t),u+=t?e.replace(/\n/g,"\n"+t):e,l&&(u+="\n"),'"""'+u.replace(/"""/g,'\\"""')+'"""'}},7008:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.print=function(e){return(0,r.visit)(e,{leave:i})};var r=n(9898),o=n(6486),i={Name:function(e){return e.value},Variable:function(e){return"$"+e.name},Document:function(e){return l(e.definitions,"\n\n")+"\n"},OperationDefinition:function(e){var t=e.operation,n=e.name,r=s("(",l(e.variableDefinitions,", "),")"),o=l(e.directives," "),i=e.selectionSet;return n||o||r||"query"!==t?l([t,l([n,r]),o,i]," "):i},VariableDefinition:function(e){var t=e.variable,n=e.type,r=e.defaultValue,o=e.directives;return t+": "+n+s(" = ",r)+s(" ",l(o," "))},SelectionSet:function(e){return u(e.selections)},Field:function(e){var t=e.alias,n=e.name,r=e.arguments,o=e.directives,i=e.selectionSet,a=s("",t,": ")+n,u=a+s("(",l(r,", "),")");return u.length>80&&(u=a+s("(\n",c(l(r,"\n")),"\n)")),l([u,l(o," "),i]," ")},Argument:function(e){return e.name+": "+e.value},FragmentSpread:function(e){return"..."+e.name+s(" ",l(e.directives," "))},InlineFragment:function(e){var t=e.typeCondition,n=e.directives,r=e.selectionSet;return l(["...",s("on ",t),l(n," "),r]," ")},FragmentDefinition:function(e){var t=e.name,n=e.typeCondition,r=e.variableDefinitions,o=e.directives,i=e.selectionSet;return"fragment ".concat(t).concat(s("(",l(r,", "),")")," ")+"on ".concat(n," ").concat(s("",l(o," ")," "))+i},IntValue:function(e){return e.value},FloatValue:function(e){return e.value},StringValue:function(e,t){var n=e.value;return e.block?(0,o.printBlockString)(n,"description"===t?"":" "):JSON.stringify(n)},BooleanValue:function(e){return e.value?"true":"false"},NullValue:function(){return"null"},EnumValue:function(e){return e.value},ListValue:function(e){return"["+l(e.values,", ")+"]"},ObjectValue:function(e){return"{"+l(e.fields,", ")+"}"},ObjectField:function(e){return e.name+": "+e.value},Directive:function(e){return"@"+e.name+s("(",l(e.arguments,", "),")")},NamedType:function(e){return e.name},ListType:function(e){return"["+e.type+"]"},NonNullType:function(e){return e.type+"!"},SchemaDefinition:a((function(e){var t=e.directives,n=e.operationTypes;return l(["schema",l(t," "),u(n)]," ")})),OperationTypeDefinition:function(e){return e.operation+": "+e.type},ScalarTypeDefinition:a((function(e){return l(["scalar",e.name,l(e.directives," ")]," ")})),ObjectTypeDefinition:a((function(e){var t=e.name,n=e.interfaces,r=e.directives,o=e.fields;return l(["type",t,s("implements ",l(n," & ")),l(r," "),u(o)]," ")})),FieldDefinition:a((function(e){var t=e.name,n=e.arguments,r=e.type,o=e.directives;return t+(d(n)?s("(\n",c(l(n,"\n")),"\n)"):s("(",l(n,", "),")"))+": "+r+s(" ",l(o," "))})),InputValueDefinition:a((function(e){var t=e.name,n=e.type,r=e.defaultValue,o=e.directives;return l([t+": "+n,s("= ",r),l(o," ")]," ")})),InterfaceTypeDefinition:a((function(e){var t=e.name,n=e.interfaces,r=e.directives,o=e.fields;return l(["interface",t,s("implements ",l(n," & ")),l(r," "),u(o)]," ")})),UnionTypeDefinition:a((function(e){var t=e.name,n=e.directives,r=e.types;return l(["union",t,l(n," "),r&&0!==r.length?"= "+l(r," | "):""]," ")})),EnumTypeDefinition:a((function(e){var t=e.name,n=e.directives,r=e.values;return l(["enum",t,l(n," "),u(r)]," ")})),EnumValueDefinition:a((function(e){return l([e.name,l(e.directives," ")]," ")})),InputObjectTypeDefinition:a((function(e){var t=e.name,n=e.directives,r=e.fields;return l(["input",t,l(n," "),u(r)]," ")})),DirectiveDefinition:a((function(e){var t=e.name,n=e.arguments,r=e.repeatable,o=e.locations;return"directive @"+t+(d(n)?s("(\n",c(l(n,"\n")),"\n)"):s("(",l(n,", "),")"))+(r?" repeatable":"")+" on "+l(o," | ")})),SchemaExtension:function(e){var t=e.directives,n=e.operationTypes;return l(["extend schema",l(t," "),u(n)]," ")},ScalarTypeExtension:function(e){return l(["extend scalar",e.name,l(e.directives," ")]," ")},ObjectTypeExtension:function(e){var t=e.name,n=e.interfaces,r=e.directives,o=e.fields;return l(["extend type",t,s("implements ",l(n," & ")),l(r," "),u(o)]," ")},InterfaceTypeExtension:function(e){var t=e.name,n=e.interfaces,r=e.directives,o=e.fields;return l(["extend interface",t,s("implements ",l(n," & ")),l(r," "),u(o)]," ")},UnionTypeExtension:function(e){var t=e.name,n=e.directives,r=e.types;return l(["extend union",t,l(n," "),r&&0!==r.length?"= "+l(r," | "):""]," ")},EnumTypeExtension:function(e){var t=e.name,n=e.directives,r=e.values;return l(["extend enum",t,l(n," "),u(r)]," ")},InputObjectTypeExtension:function(e){var t=e.name,n=e.directives,r=e.fields;return l(["extend input",t,l(n," "),u(r)]," ")}};function a(e){return function(t){return l([t.description,e(t)],"\n")}}function l(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return null!==(t=null==e?void 0:e.filter((function(e){return e})).join(n))&&void 0!==t?t:""}function u(e){return s("{\n",c(l(e,"\n")),"\n}")}function s(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return null!=t&&""!==t?e+t+n:""}function c(e){return s(" ",e.replace(/\n/g,"\n "))}function f(e){return-1!==e.indexOf("\n")}function d(e){return null!=e&&e.some(f)}},9898:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.visit=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:a,r=void 0,s=Array.isArray(e),c=[e],f=-1,d=[],h=void 0,p=void 0,g=void 0,v=[],m=[],y=e;do{var b=++f===c.length,w=b&&0!==d.length;if(b){if(p=0===m.length?void 0:v[v.length-1],h=g,g=m.pop(),w){if(s)h=h.slice();else{for(var _={},x=0,E=Object.keys(h);x<E.length;x++){var S=E[x];_[S]=h[S]}h=_}for(var k=0,C=0;C<d.length;C++){var O=d[C][0],P=d[C][1];s&&(O-=k),s&&null===P?(h.splice(O,1),k++):h[O]=P}}f=r.index,c=r.keys,d=r.edits,s=r.inArray,r=r.prev}else{if(p=g?s?f:c[f]:void 0,null==(h=g?g[p]:y))continue;g&&v.push(p)}var T,R=void 0;if(!Array.isArray(h)){if(!(0,i.isNode)(h))throw new Error("Invalid AST Node: ".concat((0,o.default)(h),"."));var j=u(t,h.kind,b);if(j){if((R=j.call(t,h,p,g,v,m))===l)break;if(!1===R){if(!b){v.pop();continue}}else if(void 0!==R&&(d.push([p,R]),!b)){if(!(0,i.isNode)(R)){v.pop();continue}h=R}}}void 0===R&&w&&d.push([p,h]),b?v.pop():(r={inArray:s,index:f,keys:c,edits:d,prev:r},c=(s=Array.isArray(h))?h:null!==(T=n[h.kind])&&void 0!==T?T:[],f=-1,d=[],g&&m.push(g),g=h)}while(void 0!==r);return 0!==d.length&&(y=d[d.length-1][1]),y},t.visitInParallel=function(e){var t=new Array(e.length);return{enter:function(n){for(var r=0;r<e.length;r++)if(null==t[r]){var o=u(e[r],n.kind,!1);if(o){var i=o.apply(e[r],arguments);if(!1===i)t[r]=n;else if(i===l)t[r]=l;else if(void 0!==i)return i}}},leave:function(n){for(var r=0;r<e.length;r++)if(null==t[r]){var o=u(e[r],n.kind,!0);if(o){var i=o.apply(e[r],arguments);if(i===l)t[r]=l;else if(void 0!==i&&!1!==i)return i}}else t[r]===n&&(t[r]=null)}}},t.getVisitFn=u,t.BREAK=t.QueryDocumentKeys=void 0;var r,o=(r=n(8882))&&r.__esModule?r:{default:r},i=n(1258),a={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]};t.QueryDocumentKeys=a;var l=Object.freeze({});function u(e,t,n){var r=e[t];if(r){if(!n&&"function"==typeof r)return r;var o=n?r.leave:r.enter;if("function"==typeof o)return o}else{var i=n?e.leave:e.enter;if(i){if("function"==typeof i)return i;var a=i[t];if("function"==typeof a)return a}}}t.BREAK=l}},r={};function o(e){var t=r[e];if(void 0!==t)return t.exports;var i=r[e]={id:e,loaded:!1,exports:{}};return n[e].call(i.exports,i,i.exports,o),i.loaded=!0,i.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,o.t=function(n,r){if(1&r&&(n=this(n)),8&r)return n;if("object"==typeof n&&n){if(4&r&&n.__esModule)return n;if(16&r&&"function"==typeof n.then)return n}var i=Object.create(null);o.r(i);var a={};e=e||[null,t({}),t([]),t(t)];for(var l=2&r&&n;"object"==typeof l&&!~e.indexOf(l);l=t(l))Object.getOwnPropertyNames(l).forEach((e=>a[e]=()=>n[e]));return a.default=()=>n,o.d(i,a),i},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{"use strict";function e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function t(e,t,n,r,o,i,a){try{var l=e[i](a),u=l.value}catch(e){return void n(e)}l.done?t(u):Promise.resolve(u).then(r,o)}var n,r=o(7757),i=o.n(r),a=o(2784),l=o.t(a,2),u=o(8316),s="colors",c="sizes",f="space",d={gap:f,gridGap:f,columnGap:f,gridColumnGap:f,rowGap:f,gridRowGap:f,inset:f,insetBlock:f,insetBlockEnd:f,insetBlockStart:f,insetInline:f,insetInlineEnd:f,insetInlineStart:f,margin:f,marginTop:f,marginRight:f,marginBottom:f,marginLeft:f,marginBlock:f,marginBlockEnd:f,marginBlockStart:f,marginInline:f,marginInlineEnd:f,marginInlineStart:f,padding:f,paddingTop:f,paddingRight:f,paddingBottom:f,paddingLeft:f,paddingBlock:f,paddingBlockEnd:f,paddingBlockStart:f,paddingInline:f,paddingInlineEnd:f,paddingInlineStart:f,top:f,right:f,bottom:f,left:f,scrollMargin:f,scrollMarginTop:f,scrollMarginRight:f,scrollMarginBottom:f,scrollMarginLeft:f,scrollMarginX:f,scrollMarginY:f,scrollMarginBlock:f,scrollMarginBlockEnd:f,scrollMarginBlockStart:f,scrollMarginInline:f,scrollMarginInlineEnd:f,scrollMarginInlineStart:f,scrollPadding:f,scrollPaddingTop:f,scrollPaddingRight:f,scrollPaddingBottom:f,scrollPaddingLeft:f,scrollPaddingX:f,scrollPaddingY:f,scrollPaddingBlock:f,scrollPaddingBlockEnd:f,scrollPaddingBlockStart:f,scrollPaddingInline:f,scrollPaddingInlineEnd:f,scrollPaddingInlineStart:f,fontSize:"fontSizes",background:s,backgroundColor:s,backgroundImage:s,borderImage:s,border:s,borderBlock:s,borderBlockEnd:s,borderBlockStart:s,borderBottom:s,borderBottomColor:s,borderColor:s,borderInline:s,borderInlineEnd:s,borderInlineStart:s,borderLeft:s,borderLeftColor:s,borderRight:s,borderRightColor:s,borderTop:s,borderTopColor:s,caretColor:s,color:s,columnRuleColor:s,fill:s,outline:s,outlineColor:s,stroke:s,textDecorationColor:s,fontFamily:"fonts",fontWeight:"fontWeights",lineHeight:"lineHeights",letterSpacing:"letterSpacings",blockSize:c,minBlockSize:c,maxBlockSize:c,inlineSize:c,minInlineSize:c,maxInlineSize:c,width:c,minWidth:c,maxWidth:c,height:c,minHeight:c,maxHeight:c,flexBasis:c,gridTemplateColumns:c,gridTemplateRows:c,borderWidth:"borderWidths",borderTopWidth:"borderWidths",borderRightWidth:"borderWidths",borderBottomWidth:"borderWidths",borderLeftWidth:"borderWidths",borderStyle:"borderStyles",borderTopStyle:"borderStyles",borderRightStyle:"borderStyles",borderBottomStyle:"borderStyles",borderLeftStyle:"borderStyles",borderRadius:"radii",borderTopLeftRadius:"radii",borderTopRightRadius:"radii",borderBottomRightRadius:"radii",borderBottomLeftRadius:"radii",boxShadow:"shadows",textShadow:"shadows",transition:"transitions",zIndex:"zIndices"},h=(e,t)=>"function"==typeof t?{"()":Function.prototype.toString.call(t)}:t,p=()=>{const e=Object.create(null);return(t,n,...r)=>{const o=(e=>JSON.stringify(e,h))(t);return o in e?e[o]:e[o]=n(t,...r)}},g=Symbol.for("sxs.internal"),v=(e,t)=>Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)),m=e=>{for(const t in e)return!0;return!1},{hasOwnProperty:y}=Object.prototype,b=e=>e.includes("-")?e:e.replace(/[A-Z]/g,(e=>"-"+e.toLowerCase())),w=/\s+(?![^()]*\))/,_=e=>t=>e(..."string"==typeof t?String(t).split(w):[t]),x={appearance:e=>({WebkitAppearance:e,appearance:e}),backfaceVisibility:e=>({WebkitBackfaceVisibility:e,backfaceVisibility:e}),backdropFilter:e=>({WebkitBackdropFilter:e,backdropFilter:e}),backgroundClip:e=>({WebkitBackgroundClip:e,backgroundClip:e}),boxDecorationBreak:e=>({WebkitBoxDecorationBreak:e,boxDecorationBreak:e}),clipPath:e=>({WebkitClipPath:e,clipPath:e}),content:e=>({content:e.includes('"')||e.includes("'")||/^([A-Za-z]+\([^]*|[^]*-quote|inherit|initial|none|normal|revert|unset)$/.test(e)?e:`"${e}"`}),hyphens:e=>({WebkitHyphens:e,hyphens:e}),maskImage:e=>({WebkitMaskImage:e,maskImage:e}),maskSize:e=>({WebkitMaskSize:e,maskSize:e}),tabSize:e=>({MozTabSize:e,tabSize:e}),textSizeAdjust:e=>({WebkitTextSizeAdjust:e,textSizeAdjust:e}),userSelect:e=>({WebkitUserSelect:e,userSelect:e}),marginBlock:_(((e,t)=>({marginBlockStart:e,marginBlockEnd:t||e}))),marginInline:_(((e,t)=>({marginInlineStart:e,marginInlineEnd:t||e}))),maxSize:_(((e,t)=>({maxBlockSize:e,maxInlineSize:t||e}))),minSize:_(((e,t)=>({minBlockSize:e,minInlineSize:t||e}))),paddingBlock:_(((e,t)=>({paddingBlockStart:e,paddingBlockEnd:t||e}))),paddingInline:_(((e,t)=>({paddingInlineStart:e,paddingInlineEnd:t||e})))},E=/([\d.]+)([^]*)/,S=(e,t)=>e.length?e.reduce(((e,n)=>(e.push(...t.map((e=>e.includes("&")?e.replace(/&/g,/[ +>|~]/.test(n)&&/&.*&/.test(e)?`:is(${n})`:n):n+" "+e))),e)),[]):t,k=(e,t)=>e in C&&"string"==typeof t?t.replace(/^((?:[^]*[^\w-])?)(fit-content|stretch)((?:[^\w-][^]*)?)$/,((t,n,r,o)=>n+("stretch"===r?`-moz-available${o};${b(e)}:${n}-webkit-fill-available`:`-moz-fit-content${o};${b(e)}:${n}fit-content`)+o)):String(t),C={blockSize:1,height:1,inlineSize:1,maxBlockSize:1,maxHeight:1,maxInlineSize:1,maxWidth:1,minBlockSize:1,minHeight:1,minInlineSize:1,minWidth:1,width:1},O=e=>e?e+"-":"",P=(e,t,n)=>e.replace(/([+-])?((?:\d+(?:\.\d*)?|\.\d+)(?:[Ee][+-]?\d+)?)?(\$|--)([$\w-]+)/g,((e,r,o,i,a)=>"$"==i==!!o?e:(r||"--"==i?"calc(":"")+"var(--"+("$"===i?O(t)+(a.includes("$")?"":O(n))+a.replace(/\$/g,"-"):a)+")"+(r||"--"==i?"*"+(r||"")+(o||"1")+")":""))),T=/\s*,\s*(?![^()]*\))/,R=Object.prototype.toString,j=(e,t,n,r,o)=>{let i,a,l;const u=(e,t,n)=>{let s,c;const f=e=>{for(s in e){const p=64===s.charCodeAt(0),g=p&&Array.isArray(e[s])?e[s]:[e[s]];for(c of g){const e=/[A-Z]/.test(h=s)?h:h.replace(/-[^]/g,(e=>e[1].toUpperCase())),g="object"==typeof c&&c&&c.toString===R&&(!r.utils[e]||!t.length);if(e in r.utils&&!g){const t=r.utils[e];if(t!==a){a=t,f(t(c)),a=null;continue}}else if(e in x){const t=x[e];if(t!==l){l=t,f(t(c)),l=null;continue}}if(p&&(d=s.slice(1)in r.media?"@media "+r.media[s.slice(1)]:s,s=d.replace(/\(\s*([\w-]+)\s*(=|<|<=|>|>=)\s*([\w-]+)\s*(?:(<|<=|>|>=)\s*([\w-]+)\s*)?\)/g,((e,t,n,r,o,i)=>{const a=E.test(t),l=.0625*(a?-1:1),[u,s]=a?[r,t]:[t,r];return"("+("="===n[0]?"":">"===n[0]===a?"max-":"min-")+u+":"+("="!==n[0]&&1===n.length?s.replace(E,((e,t,r)=>Number(t)+l*(">"===n?1:-1)+r)):s)+(o?") and ("+(">"===o[0]?"min-":"max-")+u+":"+(1===o.length?i.replace(E,((e,t,n)=>Number(t)+l*(">"===o?-1:1)+n)):i):"")+")"}))),g){const e=p?n.concat(s):[...n],r=p?[...t]:S(t,s.split(T));void 0!==i&&o(A(...i)),i=void 0,u(c,r,e)}else void 0===i&&(i=[[],t,n]),s=p||36!==s.charCodeAt(0)?s:`--${O(r.prefix)}${s.slice(1).replace(/\$/g,"-")}`,c=g?c:"number"==typeof c?c&&e in L?String(c)+"px":String(c):P(k(e,null==c?"":c),r.prefix,r.themeMap[e]),i[0].push(`${p?`${s} `:`${b(s)}:`}${c}`)}}var d,h};f(e),void 0!==i&&o(A(...i)),i=void 0};u(e,t,n)},A=(e,t,n)=>`${n.map((e=>`${e}{`)).join("")}${t.length?`${t.join(",")}{`:""}${e.join(";")}${t.length?"}":""}${Array(n.length?n.length+1:0).join("}")}`,L={animationDelay:1,animationDuration:1,backgroundSize:1,blockSize:1,border:1,borderBlock:1,borderBlockEnd:1,borderBlockEndWidth:1,borderBlockStart:1,borderBlockStartWidth:1,borderBlockWidth:1,borderBottom:1,borderBottomLeftRadius:1,borderBottomRightRadius:1,borderBottomWidth:1,borderEndEndRadius:1,borderEndStartRadius:1,borderInlineEnd:1,borderInlineEndWidth:1,borderInlineStart:1,borderInlineStartWidth:1,borderInlineWidth:1,borderLeft:1,borderLeftWidth:1,borderRadius:1,borderRight:1,borderRightWidth:1,borderSpacing:1,borderStartEndRadius:1,borderStartStartRadius:1,borderTop:1,borderTopLeftRadius:1,borderTopRightRadius:1,borderTopWidth:1,borderWidth:1,bottom:1,columnGap:1,columnRule:1,columnRuleWidth:1,columnWidth:1,containIntrinsicSize:1,flexBasis:1,fontSize:1,gap:1,gridAutoColumns:1,gridAutoRows:1,gridTemplateColumns:1,gridTemplateRows:1,height:1,inlineSize:1,inset:1,insetBlock:1,insetBlockEnd:1,insetBlockStart:1,insetInline:1,insetInlineEnd:1,insetInlineStart:1,left:1,letterSpacing:1,margin:1,marginBlock:1,marginBlockEnd:1,marginBlockStart:1,marginBottom:1,marginInline:1,marginInlineEnd:1,marginInlineStart:1,marginLeft:1,marginRight:1,marginTop:1,maxBlockSize:1,maxHeight:1,maxInlineSize:1,maxWidth:1,minBlockSize:1,minHeight:1,minInlineSize:1,minWidth:1,offsetDistance:1,offsetRotate:1,outline:1,outlineOffset:1,outlineWidth:1,overflowClipMargin:1,padding:1,paddingBlock:1,paddingBlockEnd:1,paddingBlockStart:1,paddingBottom:1,paddingInline:1,paddingInlineEnd:1,paddingInlineStart:1,paddingLeft:1,paddingRight:1,paddingTop:1,perspective:1,right:1,rowGap:1,scrollMargin:1,scrollMarginBlock:1,scrollMarginBlockEnd:1,scrollMarginBlockStart:1,scrollMarginBottom:1,scrollMarginInline:1,scrollMarginInlineEnd:1,scrollMarginInlineStart:1,scrollMarginLeft:1,scrollMarginRight:1,scrollMarginTop:1,scrollPadding:1,scrollPaddingBlock:1,scrollPaddingBlockEnd:1,scrollPaddingBlockStart:1,scrollPaddingBottom:1,scrollPaddingInline:1,scrollPaddingInlineEnd:1,scrollPaddingInlineStart:1,scrollPaddingLeft:1,scrollPaddingRight:1,scrollPaddingTop:1,shapeMargin:1,textDecoration:1,textDecorationThickness:1,textIndent:1,textUnderlineOffset:1,top:1,transitionDelay:1,transitionDuration:1,verticalAlign:1,width:1,wordSpacing:1},I=e=>String.fromCharCode(e+(e>25?39:97)),D=e=>(e=>{let t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=I(t%52)+n;return I(t%52)+n})(((e,t)=>{let n=t.length;for(;n;)e=33*e^t.charCodeAt(--n);return e})(5381,JSON.stringify(e))>>>0),N=p(),M=(e,t)=>N(e,(()=>(...n)=>{let r={type:null,composers:new Set};for(const t of n)if(null!=t)if(t[g]){null==r.type&&(r.type=t[g].type);for(const e of t[g].composers)r.composers.add(e)}else t.constructor!==Object||t.$$typeof?null==r.type&&(r.type=t):r.composers.add(z(t,e));return null==r.type&&(r.type="span"),r.composers.size||r.composers.add(["PJLV",{},[],[],{},[]]),F(e,r,t)})),z=({variants:e,compoundVariants:t,defaultVariants:n,...r},o)=>{const i=`${O(o.prefix)}c-${D(r)}`,a=[],l=[],u=Object.create(null),s=[];for(const e in n)u[e]=String(n[e]);if("object"==typeof e&&e)for(const t in e){c=u,f=t,y.call(c,f)||(u[t]="undefined");const n=e[t];for(const e in n){const r={[t]:String(e)};"undefined"===String(e)&&s.push(t);const o=n[e],i=[r,o,!m(o)];a.push(i)}}var c,f;if("object"==typeof t&&t)for(const e of t){let{css:t,...n}=e;t="object"==typeof t&&t||{};for(const e in n)n[e]=String(n[e]);const r=[n,t,!m(t)];l.push(r)}return[i,r,a,l,u,s]},F=(e,t,n)=>{const[r,o,i,a]=$(t.composers),l=`.${r}${o.length>1?`:where(.${o.slice(1).join(".")})`:""}`,u=u=>{u="object"==typeof u&&u||B;const{css:s,...c}=u,f={};for(const e in i)if(delete c[e],e in u){let t=u[e];"object"==typeof t&&t?f[e]={"@initial":i[e],...t}:(t=String(t),f[e]="undefined"!==t||a.has(e)?t:i[e])}else f[e]=i[e];const d=new Set([...o]);for(const[r,o,i,a]of t.composers){n.rules.styled.cache.has(r)||(n.rules.styled.cache.add(r),j(o,[`.${r}`],[],e,(e=>{n.rules.styled.apply(e)})));const t=U(i,f,e.media),l=U(a,f,e.media,!0);for(const o of t)if(void 0!==o)for(const[t,i]of o){const o=`${r}-${D(i)}-${t}`;d.add(o),n.rules.onevar.cache.has(o)||(n.rules.onevar.cache.add(o),j(i,[`.${o}`],[],e,(e=>{n.rules.onevar.apply(e)})))}for(const t of l)if(void 0!==t)for(const[o,i]of t){const t=`${r}-${D(i)}-${o}`;d.add(t),n.rules.allvar.cache.has(t)||(n.rules.allvar.cache.add(t),j(i,[`.${t}`],[],e,(e=>{n.rules.allvar.apply(e)})))}}if("object"==typeof s&&s){const t=`${r}-i${D(s)}-css`;d.add(t),n.rules.inline.cache.has(t)||(n.rules.inline.cache.add(t),j(s,[`.${t}`],[],e,(e=>{n.rules.inline.apply(e)})))}for(const e of String(u.className||"").trim().split(/\s+/))e&&d.add(e);const h=c.className=[...d].join(" ");return{type:t.type,className:h,selector:l,props:c,toString:()=>h}};return v(u,{className:r,selector:l,[g]:t,toString:()=>(n.rules.styled.cache.has(r)||u(),r)})},$=e=>{let t="";const n=[],r={},o=[];for(const[i,,,,a,l]of e){""===t&&(t=i),n.push(i),o.push(...l);for(const e in a){const t=a[e];(void 0===r[e]||"undefined"!==t||l.includes(t))&&(r[e]=t)}}return[t,n,r,new Set(o)]},U=(e,t,n,r)=>{const o=[];e:for(let[i,a,l]of e){if(l)continue;let e,u=0;for(e in i){const r=i[e];let o=t[e];if(o!==r){if("object"!=typeof o||!o)continue e;{let e,t=0;for(const i in o)r===String(o[i])&&("@initial"!==i&&(a={[i in n?n[i]:i]:a}),u+=t,e=!0),++t;if(!e)continue e}}}(o[u]=o[u]||[]).push([r?"cv":`${e}-${i[e]}`,a])}return o},B={},H=p(),W=(e,t)=>H(e,(()=>(...n)=>{const r=()=>{for(let r of n){r="object"==typeof r&&r||{};let n=D(r);if(!t.rules.global.cache.has(n)){if(t.rules.global.cache.add(n),"@import"in r){let e=[].indexOf.call(t.sheet.cssRules,t.rules.themed.group)-1;for(let n of[].concat(r["@import"]))n=n.includes('"')||n.includes("'")?n:`"${n}"`,t.sheet.insertRule(`@import ${n};`,e++);delete r["@import"]}j(r,[],[],e,(e=>{t.rules.global.apply(e)}))}}return""};return v(r,{toString:r})})),V=p(),q=(e,t)=>V(e,(()=>n=>{const r=`${O(e.prefix)}k-${D(n)}`,o=()=>{if(!t.rules.global.cache.has(r)){t.rules.global.cache.add(r);const o=[];j(n,[],[],e,(e=>o.push(e)));const i=`@keyframes ${r}{${o.join("")}}`;t.rules.global.apply(i)}return r};return v(o,{get name(){return o()},toString:o})})),K=class{constructor(e,t,n,r){this.token=null==e?"":String(e),this.value=null==t?"":String(t),this.scale=null==n?"":String(n),this.prefix=null==r?"":String(r)}get computedValue(){return"var("+this.variable+")"}get variable(){return"--"+O(this.prefix)+O(this.scale)+this.token}toString(){return this.computedValue}},X=p(),G=(e,t)=>X(e,(()=>(n,r)=>{r="object"==typeof n&&n||Object(r);const o=`.${n=(n="string"==typeof n?n:"")||`${O(e.prefix)}t-${D(r)}`}`,i={},a=[];for(const t in r){i[t]={};for(const n in r[t]){const o=`--${O(e.prefix)}${t}-${n}`,l=P(String(r[t][n]),e.prefix,t);i[t][n]=new K(n,l,t,e.prefix),a.push(`${o}:${l}`)}}const l=()=>{if(a.length&&!t.rules.themed.cache.has(n)){t.rules.themed.cache.add(n);const o=`${r===e.theme?":root,":""}.${n}{${a.join(";")}}`;t.rules.themed.apply(o)}return n};return{...i,get className(){return l()},selector:o,toString:l}})),Y=["themed","global","styled","onevar","allvar","inline"],Q=e=>{let t;const n=()=>{if(t){const{rules:e,sheet:n}=t;if(!n.deleteRule){for(;3===Object(Object(n.cssRules)[0]).type;)n.cssRules.splice(0,1);n.cssRules=[]}for(const t in e)delete e[t];n.ownerRule&&(n.ownerRule.textContent=n.ownerRule.textContent)}const r=Object(e).styleSheets||[];for(const e of r)if(!e.href||e.href.startsWith(location.origin)){for(let r=0,o=e.cssRules;o[r];++r){const i=Object(o[r]);if(1!==i.type)continue;const a=Object(o[r+1]);if(4!==a.type)continue;++r;const{cssText:l}=i;if(!l.startsWith("--sxs"))continue;const u=l.slice(14,-3).trim().split(/\s+/),s=Y[u[0]];s&&(t||(t={sheet:e,reset:n,rules:{}}),t.rules[s]={group:a,index:r,cache:new Set(u)})}if(t)break}if(!t){const r=(e,t)=>({type:t,cssRules:[],insertRule(e,t){this.cssRules.splice(t,0,r(e,{import:3,undefined:1}[(e.toLowerCase().match(/^@([a-z]+)/)||[])[1]]||4))},get cssText(){return"@media{}"===e?`@media{${[].map.call(this.cssRules,(e=>e.cssText)).join("")}}`:e}});t={sheet:e?(e.head||e).appendChild(document.createElement("style")).sheet:r("","text/css"),rules:{},reset:n,toString(){const{cssRules:e}=t.sheet;return[].map.call(e,((n,r)=>{const{cssText:o}=n;let i="";if(o.startsWith("--sxs"))return"";if(e[r-1]&&(i=e[r-1].cssText).startsWith("--sxs")){if(!n.cssRules.length)return"";for(const e in t.rules)if(t.rules[e].group===n)return`--sxs{--sxs:${[...t.rules[e].cache].join(" ")}}${o}`;return n.cssRules.length?`${i}${o}`:""}return o})).join("")}}}const{sheet:o,rules:i}=t;if(!i.inline){const e=o.cssRules.length;o.insertRule("@media{}",e),o.insertRule("--sxs{--sxs:5}",e),i.inline={index:e,group:o.cssRules[e+1],cache:new Set([5])}}if(Z(i.inline),!i.allvar){const e=i.inline.index;o.insertRule("@media{}",e),o.insertRule("--sxs{--sxs:4}",e),i.allvar={index:e,group:o.cssRules[e+1],cache:new Set([4])}}if(Z(i.allvar),!i.onevar){const e=i.allvar.index;o.insertRule("@media{}",e),o.insertRule("--sxs{--sxs:3}",e),i.onevar={index:e,group:o.cssRules[e+1],cache:new Set([3])}}if(Z(i.onevar),!i.styled){const e=i.onevar.index;o.insertRule("@media{}",e),o.insertRule("--sxs{--sxs:2}",e),i.styled={index:e,group:o.cssRules[e+1],cache:new Set([2])}}if(Z(i.styled),!i.global){const e=i.styled.index;o.insertRule("@media{}",e),o.insertRule("--sxs{--sxs:1}",e),i.global={index:e,group:o.cssRules[e+1],cache:new Set([1])}}if(Z(i.global),!i.themed){const e=i.global.index;o.insertRule("@media{}",e),o.insertRule("--sxs{--sxs:0}",e),i.themed={index:e,group:o.cssRules[e+1],cache:new Set([0])}}Z(i.themed)};return n(),t},Z=e=>{const t=e.group;let n=t.cssRules.length;e.apply=e=>{try{t.insertRule(e,n),++n}catch{}}},J=p(),ee=p(),te=e=>{const t=(e=>{let t=!1;const n=J(e,(e=>{t=!0;const n="prefix"in(e="object"==typeof e&&e||{})?String(e.prefix):"",r="object"==typeof e.media&&e.media||{},o="object"==typeof e.root?e.root||null:globalThis.document||null,i="object"==typeof e.theme&&e.theme||{},a={prefix:n,media:r,theme:i,themeMap:"object"==typeof e.themeMap&&e.themeMap||{...d},utils:"object"==typeof e.utils&&e.utils||{}},l=Q(o),u={css:M(a,l),globalCss:W(a,l),keyframes:q(a,l),createTheme:G(a,l),reset(){l.reset(),u.theme.toString()},theme:{},sheet:l,config:a,prefix:n,getCssText:l.toString,toString:l.toString};return String(u.theme=u.createTheme(i)),u}));return t||n.reset(),n})(e);return t.styled=(({config:e,sheet:t})=>ee(e,(()=>{const n=M(e,t);return(...e)=>{const t=n(...e),r=t[g].type,o=a.forwardRef(((e,n)=>{const o=e&&e.as||r,i=t(e).props;return delete i.as,i.ref=n,a.createElement(o,i)}));return o.className=t.className,o.displayName=`Styled.${r.displayName||r.name||r}`,o.selector=t.selector,o.toString=()=>t.selector,o[g]=t[g],o}})))(t),t},ne=(...e)=>(n||(n=te())).createTheme(...e);const re="hsl(0 0% 0% / 0.439)";function oe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ie(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oe(Object(n),!0).forEach((function(t){ae(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ae(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var le,ue;(ue=le||(le={})).Lighter="White",ue.Light="LightGray",ue.Dark="Gray",ue.Darker="Dark";var se=te({utils:{bg:function(e){return{backgroundColor:e}},p:function(e){return{padding:e}},pt:function(e){return{paddingTop:e}},pb:function(e){return{paddingBottom:e}},pl:function(e){return{paddingLeft:e}},pr:function(e){return{paddingRight:e}},px:function(e){return{paddingLeft:e,paddingRight:e}},py:function(e){return{paddingTop:e,paddingBottom:e}},m:function(e){return{margin:e}},mt:function(e){return{marginTop:e}},mb:function(e){return{marginBottom:e}},ml:function(e){return{marginLeft:e}},mr:function(e){return{marginRight:e}},mx:function(e){return{marginLeft:e,marginRight:e}},my:function(e){return{marginTop:e,marginBottom:e}}},theme:{fonts:{inter:"Inter, sans-serif"},fontSizes:{1:"0.75em",2:"0.875em",3:"1em",4:"1.25em",5:"1.5em",6:"2em"},space:{1:"0.25em",2:"0.5em",3:"1em",4:"2em",5:"4em",6:"8em"},sizes:{1:"0.25em",2:"0.5em",3:"1em",4:"2em",5:"4em",6:"8em"},radii:{1:"0.125em",2:"0.25em",3:"0.5em",round:"9999px"},fontWeights:{},lineHeights:{},letterSpacings:{},borderWidths:{},borderStyles:{},shadows:{panelShadow:"0px 4px 18px rgba(120, 123, 134, 0.12)"},zIndices:{},transitions:{},colors:ie(ie(ie({},{yellow1:"hsl(60 54.0% 98.5%)",yellow2:"hsl(52 100% 95.5%)",yellow3:"hsl(55 100% 90.9%)",yellow4:"hsl(54 100% 86.6%)",yellow5:"hsl(52 97.9% 82.0%)",yellow6:"hsl(50 89.4% 76.1%)",yellow7:"hsl(47 80.4% 68.0%)",yellow8:"hsl(48 100% 46.1%)",yellow9:"hsl(53 92.0% 50.0%)",yellow10:"hsl(50 100% 48.5%)",yellow11:"hsl(42 100% 29.0%)",yellow12:"hsl(40 55.0% 13.5%)"}),{orange1:"hsl(24 70.0% 99.0%)",orange2:"hsl(24 83.3% 97.6%)",orange3:"hsl(24 100% 95.3%)",orange4:"hsl(25 100% 92.2%)",orange5:"hsl(25 100% 88.2%)",orange6:"hsl(25 100% 82.8%)",orange7:"hsl(24 100% 75.3%)",orange8:"hsl(24 94.5% 64.3%)",orange9:"hsl(24 94.0% 50.0%)",orange10:"hsl(24 100% 46.5%)",orange11:"hsl(24 100% 37.0%)",orange12:"hsl(15 60.0% 17.0%)"}),{},{grayBase:"#F8F8F8",grayBg:"#FFFFFF",grayBgActive:"#e6e6e6",grayBorder:"rgba(0, 0, 0, 0.06)",grayTextContrast:"#3A3939",graySolid:"#9C9B9A",grayBgSubtle:"hsl(0 0% 97.3%)",grayBgHover:"hsl(0 0% 93.0%)",grayLine:"hsl(0 0% 88.7%)",grayBorderHover:"hsl(0 0% 78.0%)",graySolidHover:"hsl(0 0% 52.3%)",grayText:"hsl(0 0% 43.5%)",overlay:re,highlightBackground:"rgba(255, 210, 52, 0.65)",highlight:"#FFD234",highlightText:"#3D3D3D",error:"#FA5E4A",omnivoreRed:"#FA5E4A;",omnivoreGray:"#3D3D3D",omnivoreOrange:"#FF9B3E",omnivorePeach:"rgb(255, 212, 146)",omnivoreYellow:"rgb(255, 234, 159)",omnivoreLightGray:"rgb(125, 125, 125)",omnivoreCtaYellow:"rgb(255, 210, 52)",readerBg:"#E5E5E5",readerFont:"#3D3D3D",readerFontTransparent:"rgba(61,61,61,0.65)",readerHeader:"3D3D3D",readerTableHeader:"#FFFFFF",avatarBg:"#FFFFFF",avatarFont:"#0A0806"})},media:{xsmDown:"(max-width: 375px)",smDown:"(max-width: 575px)",mdDown:"(max-width: 768px)",sm:"(min-width: 576px)",md:"(min-width: 768px)",lg:"(min-width: 992px)",xl:"(min-width: 1200px)"}}),ce=se.styled,fe=(se.css,se.theme),de=(se.getCssText,se.globalCss),he=se.keyframes,pe=(se.config,{colors:ie(ie(ie({},{yellow1:"hsl(45 100% 5.5%)",yellow2:"hsl(46 100% 6.7%)",yellow3:"hsl(45 100% 8.7%)",yellow4:"hsl(45 100% 10.4%)",yellow5:"hsl(47 100% 12.1%)",yellow6:"hsl(49 100% 14.3%)",yellow7:"hsl(49 90.3% 18.4%)",yellow8:"hsl(50 100% 22.0%)",yellow9:"hsl(53 92.0% 50.0%)",yellow10:"hsl(54 100% 68.0%)",yellow11:"hsl(48 100% 47.0%)",yellow12:"hsl(53 100% 91.0%)"}),{orange1:"hsl(30 70.0% 7.2%)",orange2:"hsl(28 100% 8.4%)",orange3:"hsl(26 91.1% 11.6%)",orange4:"hsl(25 88.3% 14.1%)",orange5:"hsl(24 87.6% 16.6%)",orange6:"hsl(24 88.6% 19.8%)",orange7:"hsl(24 92.4% 24.0%)",orange8:"hsl(25 100% 29.0%)",orange9:"hsl(24 94.0% 50.0%)",orange10:"hsl(24 100% 58.5%)",orange11:"hsl(24 100% 62.2%)",orange12:"hsl(24 97.0% 93.2%)"}),{},{grayBase:"#252525",grayBg:"#3B3938",grayBgActive:"#4f4d4c",grayTextContrast:"#D8D7D7",grayBorder:"rgba(255, 255, 255, 0.06)",graySolid:"#9C9B9A",grayBgSubtle:"hsl(0 0% 11.0%)",grayBgHover:"hsl(0 0% 15.8%)",grayLine:"hsl(0 0% 20.5%)",grayBorderHover:"hsl(0 0% 31.2%)",graySolidHover:"hsl(0 0% 49.4%)",grayText:"hsl(0 0% 62.8%)",overlay:re,highlightBackground:"#867740",highlight:"#FFD234",highlightText:"white",error:"#FA5E4A",readerBg:"#303030",readerFont:"#b9b9b9",readerFontTransparent:"rgba(185,185,185,0.65)",readerHeader:"#b9b9b9",readerTableHeader:"#FFFFFF",avatarBg:"#000000",avatarFont:"rgba(255, 255, 255, 0.8)"})}),ge=ne(le.Dark,pe),ve=ne(le.Darker,pe),me=ne(le.Lighter,{});function ye(...e){return t=>e.forEach((e=>function(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}(e,t)))}function be(...e){return a.useCallback(ye(...e),e)}function we(){return we=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},we.apply(this,arguments)}de({"*":{"&:focus":{outline:"none"},"&:focus-visible":{outline:"none"}},".article-inner-css":{"::selection":{background:"$highlightBackground"}}});const _e=a.forwardRef(((e,t)=>{const{children:n,...r}=e;return a.Children.toArray(n).some(Se)?a.createElement(a.Fragment,null,a.Children.map(n,(e=>Se(e)?a.createElement(xe,we({},r,{ref:t}),e.props.children):e))):a.createElement(xe,we({},r,{ref:t}),n)}));_e.displayName="Slot";const xe=a.forwardRef(((e,t)=>{const{children:n,...r}=e;return a.isValidElement(n)?a.cloneElement(n,{...ke(r,n.props),ref:ye(t,n.ref)}):a.Children.count(n)>1?a.Children.only(null):null}));xe.displayName="SlotClone";const Ee=({children:e})=>a.createElement(a.Fragment,null,e);function Se(e){return a.isValidElement(e)&&e.type===Ee}function ke(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?n[r]=(...e)=>{null==i||i(...e),null==o||o(...e)}:"style"===r?n[r]={...o,...i}:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}const Ce=["a","button","div","h2","h3","img","li","nav","p","span","svg","ul"].reduce(((e,t)=>({...e,[t]:a.forwardRef(((e,n)=>{const{asChild:r,...o}=e,i=r?_e:t;return a.useEffect((()=>{window[Symbol.for("radix-ui")]=!0}),[]),e.as&&console.error(Oe),a.createElement(i,we({},o,{ref:n}))}))})),{}),Oe="Warning: The `as` prop has been removed in favour of `asChild`. For details, see https://radix-ui.com/docs/primitives/overview/styling#changing-the-rendered-element",Pe="horizontal",Te=["horizontal","vertical"],Re=a.forwardRef(((e,t)=>{const{decorative:n,orientation:r=Pe,...o}=e,i=je(r)?r:Pe,l=n?{role:"none"}:{"aria-orientation":"vertical"===i?i:void 0,role:"separator"};return a.createElement(Ce.div,we({"data-orientation":i},l,o,{ref:t}))}));function je(e){return Te.includes(e)}Re.propTypes={orientation(e,t,n){const r=e[t],o=String(r);return r&&!je(r)?new Error(function(e,t){return`Invalid prop \`orientation\` of value \`${e}\` supplied to \`${t}\`, expected one of:\n - horizontal\n - vertical\n\nDefaulting to \`${Pe}\`.`}(o,n)):null}};const Ae=Re;var Le=o(2322),Ie={alignment:{start:{alignItems:"flex-start"},center:{alignItems:"center"},end:{alignItems:"end"}},distribution:{around:{justifyContent:"space-around"},between:{justifyContent:"space-between"},evenly:{justifyContent:"space-evenly"},start:{justifyContent:"flex-start"},center:{justifyContent:"center"},end:{justifyContent:"flex-end"}}},De=ce("div",{}),Ne=ce("span",{}),Me=ce("a",{}),ze=ce("blockquote",{}),Fe=ce(De,{display:"flex",flexDirection:"row",variants:Ie,defaultVariants:{alignment:"start",distribution:"around"}}),$e=ce(De,{display:"flex",flexDirection:"column",variants:Ie,defaultVariants:{alignment:"start",distribution:"around"}}),Ue=ce(Ae,{backgroundColor:"$grayLine","&[data-orientation=horizontal]":{height:1,width:"100%"},"&[data-orientation=vertical]":{height:"100%",width:1}}),Be=["omnivore-highlight-id","data-twitter-tweet-id","data-instagram-id"];function He(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return We(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?We(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function We(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Ve=o(7162),qe=o.n(Ve),Ke=o(1170),Xe=o.n(Ke);function Ge(){return Ge=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ge.apply(this,arguments)}var Ye="twttr",Qe=!("undefined"==typeof window||!window.document||!window.document.createElement);function Ze(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function Je(e){var t=(0,a.useRef)();return function(e,t){if(Ze(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var o=0;o<n.length;o++)if(!Object.prototype.hasOwnProperty.call(t,n[o])||!Ze(e[n[o]],t[n[o]]))return!1;return!0}(e,t.current)||(t.current=e),t.current}function et(e){return"object"==typeof e?Ge({},e):e}function tt(e,t,n,r,o,i,a){try{var l=e[i](a),u=l.value}catch(e){return void n(e)}l.done?t(u):Promise.resolve(u).then(r,o)}Qe&&Xe()("https://platform.twitter.com/widgets.js",Ye);var nt="twdiv";var rt=function(e){var t=e.tweetId,n=e.options,r=e.onLoad,o=e.renderError,i=function(e,t,n,r){var o=(0,a.useState)(null),i=o[0],l=o[1],u=(0,a.useRef)(null);if(!Qe)return{ref:u,error:i};var s=[e,Je(t),Je(n)];return(0,a.useEffect)((function(){l(null);var o,i=!1;if(u.current){var a=function(){var o,a=(o=qe().mark((function o(){var a,s;return qe().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(u&&u.current){o.next=2;break}return o.abrupt("return");case 2:return(a=document.createElement("div")).setAttribute(nt,"yes"),u.current.appendChild(a),o.prev=5,o.next=8,new Promise((function(e,t){var n=function(){return t(new Error("Could not load remote twitter widgets js"))};Xe().ready(Ye,{success:function(){var t=window.twttr;t&&t.widgets||n(),e(t.widgets)},error:n})}));case 8:return s=o.sent,o.next=11,s[e](et(t),a,et(n));case 11:if(o.sent||i){o.next=14;break}throw new Error("Twitter could not create widget. If it is a Timeline or Tweet, ensure the screenName/tweetId exists.");case 14:o.next=21;break;case 16:return o.prev=16,o.t0=o.catch(5),console.error(o.t0),l(o.t0),o.abrupt("return");case 21:if(u&&u.current){o.next=23;break}return o.abrupt("return");case 23:if(!i){o.next=26;break}return a&&a.remove(),o.abrupt("return");case 26:r&&r();case 27:case"end":return o.stop()}}),o,null,[[5,16]])})),function(){var e=this,t=arguments;return new Promise((function(n,r){var i=o.apply(e,t);function a(e){tt(i,n,r,a,l,"next",e)}function l(e){tt(i,n,r,a,l,"throw",e)}a(void 0)}))});return function(){return a.apply(this,arguments)}}();(o=u.current)&&o.querySelectorAll("*").forEach((function(e){e.hasAttribute("twdiv")&&e.remove()})),a()}return function(){i=!0}}),s),{ref:u,error:i}}("createTweet",t,n,r),l=i.ref,u=i.error;return a.createElement("div",{ref:l},u&&o&&o(u))},ot=o(820);function it(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function l(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,l)}u((r=r.apply(e,t||[])).next())}))}function at(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,l])}}}var lt,ut,st,ct,ft,dt,ht,pt,gt,vt,mt,yt,bt,wt=function(){},_t=wt(),xt=Object,Et=function(e){return e===_t},St=function(e){return"function"==typeof e},kt=function(e,t){return xt.assign({},e,t)},Ct="undefined",Ot=function(){return typeof window!=Ct},Pt=new WeakMap,Tt=0,Rt=function(e){var t,n,r=typeof e,o=e&&e.constructor,i=o==Date;if(xt(e)!==e||i||o==RegExp)t=i?e.toJSON():"symbol"==r?e.toString():"string"==r?JSON.stringify(e):""+e;else{if(t=Pt.get(e))return t;if(t=++Tt+"~",Pt.set(e,t),o==Array){for(t="@",n=0;n<e.length;n++)t+=Rt(e[n])+",";Pt.set(e,t)}if(o==xt){t="#";for(var a=xt.keys(e).sort();!Et(n=a.pop());)Et(e[n])||(t+=n+":"+Rt(e[n])+",");Pt.set(e,t)}}return t},jt=!0,At=Ot(),Lt=typeof document!=Ct,It=At&&window.addEventListener?window.addEventListener.bind(window):wt,Dt=Lt?document.addEventListener.bind(document):wt,Nt=At&&window.removeEventListener?window.removeEventListener.bind(window):wt,Mt=Lt?document.removeEventListener.bind(document):wt,zt={isOnline:function(){return jt},isVisible:function(){var e=Lt&&document.visibilityState;return Et(e)||"hidden"!==e}},Ft={initFocus:function(e){return Dt("visibilitychange",e),It("focus",e),function(){Mt("visibilitychange",e),Nt("focus",e)}},initReconnect:function(e){var t=function(){jt=!0,e()},n=function(){jt=!1};return It("online",t),It("offline",n),function(){Nt("online",t),Nt("offline",n)}}},$t=!Ot()||"Deno"in window,Ut=$t?a.useEffect:a.useLayoutEffect,Bt="undefined"!=typeof navigator&&navigator.connection,Ht=!$t&&Bt&&(["slow-2g","2g"].includes(Bt.effectiveType)||Bt.saveData),Wt=function(e){if(St(e))try{e=e()}catch(t){e=""}var t=[].concat(e);return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?Rt(e):"",t,e?"$swr$"+e:""]},Vt=new WeakMap,qt=function(e,t,n,r,o,i,a){void 0===a&&(a=!0);var l=Vt.get(e),u=l[0],s=l[1],c=l[3],f=u[t],d=s[t];if(a&&d)for(var h=0;h<d.length;++h)d[h](n,r,o);return i&&(delete c[t],f&&f[0])?f[0](2).then((function(){return e.get(t)})):e.get(t)},Kt=0,Xt=function(){return++Kt},Gt=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return it(void 0,void 0,void 0,(function(){var t,n,r,o,i,a,l,u,s,c,f,d,h,p,g,v,m,y,b,w;return at(this,(function(_){switch(_.label){case 0:if(t=e[0],n=e[1],r=e[2],o=e[3],a=!!Et((i="boolean"==typeof o?{revalidate:o}:o||{}).populateCache)||i.populateCache,l=!1!==i.revalidate,u=!1!==i.rollbackOnError,s=i.optimisticData,c=Wt(n),f=c[0],d=c[2],!f)return[2];if(h=Vt.get(t),p=h[2],e.length<3)return[2,qt(t,f,t.get(f),_t,_t,l,!0)];if(g=r,m=Xt(),p[f]=[m,0],y=!Et(s),b=t.get(f),y&&(t.set(f,s),qt(t,f,s)),St(g))try{g=g(t.get(f))}catch(e){v=e}return g&&St(g.then)?[4,g.catch((function(e){v=e}))]:[3,2];case 1:if(g=_.sent(),m!==p[f][0]){if(v)throw v;return[2,g]}v&&y&&u&&(a=!0,g=b,t.set(f,b)),_.label=2;case 2:return a&&(v||(St(a)&&(g=a(g,b)),t.set(f,g)),t.set(d,kt(t.get(d),{error:v}))),p[f][1]=Xt(),[4,qt(t,f,g,v,_t,l,!!a)];case 3:if(w=_.sent(),v)throw v;return[2,a?w:g]}}))}))},Yt=function(e,t){for(var n in e)e[n][0]&&e[n][0](t)},Qt=function(e,t){if(!Vt.has(e)){var n=kt(Ft,t),r={},o=Gt.bind(_t,e),i=wt;if(Vt.set(e,[r,{},{},{},o]),!$t){var a=n.initFocus(setTimeout.bind(_t,Yt.bind(_t,r,0))),l=n.initReconnect(setTimeout.bind(_t,Yt.bind(_t,r,1)));i=function(){a&&a(),l&&l(),Vt.delete(e)}}return[e,o,i]}return[e,Vt.get(e)[4]]},Zt=Qt(new Map),Jt=Zt[0],en=Zt[1],tn=kt({onLoadingSlow:wt,onSuccess:wt,onError:wt,onErrorRetry:function(e,t,n,r,o){var i=n.errorRetryCount,a=o.retryCount,l=~~((Math.random()+.5)*(1<<(a<8?a:8)))*n.errorRetryInterval;!Et(i)&&a>i||setTimeout(r,l,o)},onDiscarded:wt,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:Ht?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:Ht?5e3:3e3,compare:function(e,t){return Rt(e)==Rt(t)},isPaused:function(){return!1},cache:Jt,mutate:en,fallback:{}},zt),nn=function(e,t){var n=kt(e,t);if(t){var r=e.use,o=e.fallback,i=t.use,a=t.fallback;r&&i&&(n.use=r.concat(i)),o&&a&&(n.fallback=kt(o,a))}return n},rn=(0,a.createContext)({}),on=function(e){return St(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}]},an=function(){return kt(tn,(0,a.useContext)(rn))},ln=function(e,t,n){var r=t[e]||(t[e]=[]);return r.push(n),function(){var e=r.indexOf(n);e>=0&&(r[e]=r[r.length-1],r.pop())}},un={dedupe:!0},sn=(xt.defineProperty((function(e){var t=e.value,n=nn((0,a.useContext)(rn),t),r=t&&t.provider,o=(0,a.useState)((function(){return r?Qt(r(n.cache||Jt),t):_t}))[0];return o&&(n.cache=o[0],n.mutate=o[1]),Ut((function(){return o?o[2]:_t}),[]),(0,a.createElement)(rn.Provider,kt(e,{value:n}))}),"default",{value:tn}),lt=function(e,t,n){var r=n.cache,o=n.compare,i=n.fallbackData,l=n.suspense,u=n.revalidateOnMount,s=n.refreshInterval,c=n.refreshWhenHidden,f=n.refreshWhenOffline,d=Vt.get(r),h=d[0],p=d[1],g=d[2],v=d[3],m=Wt(e),y=m[0],b=m[1],w=m[2],_=(0,a.useRef)(!1),x=(0,a.useRef)(!1),E=(0,a.useRef)(y),S=(0,a.useRef)(t),k=(0,a.useRef)(n),C=function(){return k.current},O=function(){return C().isVisible()&&C().isOnline()},P=function(e){return r.set(w,kt(r.get(w),e))},T=r.get(y),R=Et(i)?n.fallback[y]:i,j=Et(T)?R:T,A=r.get(w)||{},L=A.error,I=!_.current,D=function(){return I&&!Et(u)?u:!C().isPaused()&&(l?!Et(j):Et(j)||n.revalidateIfStale)},N=!(!y||!t)&&(!!A.isValidating||I&&D()),M=function(e,t){var n=(0,a.useState)({})[1],r=(0,a.useRef)(e),o=(0,a.useRef)({data:!1,error:!1,isValidating:!1}),i=(0,a.useCallback)((function(e){var i=!1,a=r.current;for(var l in e){var u=l;a[u]!==e[u]&&(a[u]=e[u],o.current[u]&&(i=!0))}i&&!t.current&&n({})}),[]);return Ut((function(){r.current=e})),[r,o.current,i]}({data:j,error:L,isValidating:N},x),z=M[0],F=M[1],$=M[2],U=(0,a.useCallback)((function(e){return it(void 0,void 0,void 0,(function(){var t,i,a,l,u,s,c,f,d,h,p,m,w;return at(this,(function(k){switch(k.label){case 0:if(t=S.current,!y||!t||x.current||C().isPaused())return[2,!1];l=!0,u=e||{},s=!v[y]||!u.dedupe,c=function(){return!x.current&&y===E.current&&_.current},f=function(){var e=v[y];e&&e[1]===a&&delete v[y]},d={isValidating:!1},h=function(){P({isValidating:!1}),c()&&$(d)},P({isValidating:!0}),$({isValidating:!0}),k.label=1;case 1:return k.trys.push([1,3,,4]),s&&(qt(r,y,z.current.data,z.current.error,!0),n.loadingTimeout&&!r.get(y)&&setTimeout((function(){l&&c()&&C().onLoadingSlow(y,n)}),n.loadingTimeout),v[y]=[t.apply(void 0,b),Xt()]),w=v[y],i=w[0],a=w[1],[4,i];case 2:return i=k.sent(),s&&setTimeout(f,n.dedupingInterval),v[y]&&v[y][1]===a?(P({error:_t}),d.error=_t,p=g[y],!Et(p)&&(a<=p[0]||a<=p[1]||0===p[1])?(h(),s&&c()&&C().onDiscarded(y),[2,!1]):(o(z.current.data,i)?d.data=z.current.data:d.data=i,o(r.get(y),i)||r.set(y,i),s&&c()&&C().onSuccess(i,y,n),[3,4])):(s&&c()&&C().onDiscarded(y),[2,!1]);case 3:return m=k.sent(),f(),C().isPaused()||(P({error:m}),d.error=m,s&&c()&&(C().onError(m,y,n),("boolean"==typeof n.shouldRetryOnError&&n.shouldRetryOnError||St(n.shouldRetryOnError)&&n.shouldRetryOnError(m))&&O()&&C().onErrorRetry(m,y,n,U,{retryCount:(u.retryCount||0)+1,dedupe:!0}))),[3,4];case 4:return l=!1,h(),c()&&s&&qt(r,y,d.data,d.error,!1),[2,!0]}}))}))}),[y]),B=(0,a.useCallback)(Gt.bind(_t,r,(function(){return E.current})),[]);if(Ut((function(){S.current=t,k.current=n})),Ut((function(){if(y){var e=y!==E.current,t=U.bind(_t,un),n=0,r=ln(y,p,(function(e,t,n){$(kt({error:t,isValidating:n},o(z.current.data,e)?_t:{data:e}))})),i=ln(y,h,(function(e){if(0==e){var r=Date.now();C().revalidateOnFocus&&r>n&&O()&&(n=r+C().focusThrottleInterval,t())}else if(1==e)C().revalidateOnReconnect&&O()&&t();else if(2==e)return U()}));return x.current=!1,E.current=y,_.current=!0,e&&$({data:j,error:L,isValidating:N}),D()&&(Et(j)||$t?t():(a=t,Ot()&&typeof window.requestAnimationFrame!=Ct?window.requestAnimationFrame(a):setTimeout(a,1))),function(){x.current=!0,r(),i()}}var a}),[y,U]),Ut((function(){var e;function t(){var t=St(s)?s(j):s;t&&-1!==e&&(e=setTimeout(n,t))}function n(){z.current.error||!c&&!C().isVisible()||!f&&!C().isOnline()?t():U(un).then(t)}return t(),function(){e&&(clearTimeout(e),e=-1)}}),[s,c,f,U]),(0,a.useDebugValue)(j),l&&Et(j)&&y)throw S.current=t,k.current=n,x.current=!1,Et(L)?U(un):L;return{mutate:B,get data(){return F.data=!0,j},get error(){return F.error=!0,L},get isValidating(){return F.isValidating=!0,N}}},function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=an(),r=on(e),o=r[0],i=r[1],a=r[2],l=nn(n,a),u=lt,s=l.use;if(s)for(var c=s.length;c-- >0;)u=s[c](u);return u(o,i||l.fetcher,l)}),cn={prod:{webBaseURL:null!==(ut=window.omnivoreEnv.NEXT_PUBLIC_BASE_URL)&&void 0!==ut?ut:"",serverBaseURL:null!==(st=window.omnivoreEnv.NEXT_PUBLIC_SERVER_BASE_URL)&&void 0!==st?st:"",highlightsBaseURL:null!==(ct=window.omnivoreEnv.NEXT_PUBLIC_HIGHLIGHTS_BASE_URL)&&void 0!==ct?ct:""},dev:{webBaseURL:null!==(ft=window.omnivoreEnv.NEXT_PUBLIC_DEV_BASE_URL)&&void 0!==ft?ft:"",serverBaseURL:null!==(dt=window.omnivoreEnv.NEXT_PUBLIC_DEV_SERVER_BASE_URL)&&void 0!==dt?dt:"",highlightsBaseURL:null!==(ht=window.omnivoreEnv.NEXT_PUBLIC_DEV_HIGHLIGHTS_BASE_URL)&&void 0!==ht?ht:""},demo:{webBaseURL:null!==(pt=window.omnivoreEnv.NEXT_PUBLIC_DEMO_BASE_URL)&&void 0!==pt?pt:"",serverBaseURL:null!==(gt=window.omnivoreEnv.NEXT_PUBLIC_DEMO_SERVER_BASE_URL)&&void 0!==gt?gt:"",highlightsBaseURL:null!==(vt=window.omnivoreEnv.NEXT_PUBLIC_DEMO_HIGHLIGHTS_BASE_URL)&&void 0!==vt?vt:""},local:{webBaseURL:null!==(mt=window.omnivoreEnv.NEXT_PUBLIC_LOCAL_BASE_URL)&&void 0!==mt?mt:"",serverBaseURL:null!==(yt=window.omnivoreEnv.NEXT_PUBLIC_LOCAL_SERVER_BASE_URL)&&void 0!==yt?yt:"",highlightsBaseURL:null!==(bt=window.omnivoreEnv.NEXT_PUBLIC_LOCAL_HIGHLIGHTS_BASE_URL)&&void 0!==bt?bt:""}};function fn(e){var t=cn[hn].serverBaseURL;if(0==t.length)throw new Error("Couldn't find environment variable for server base url in ".concat(e," environment"));return t}var dn,hn=window.omnivoreEnv.NEXT_PUBLIC_APP_ENV||"prod",pn=(window.omnivoreEnv.SENTRY_DSN||window.omnivoreEnv.NEXT_PUBLIC_SENTRY_DSN,window.omnivoreEnv.NEXT_PUBLIC_PSPDFKIT_LICENSE_KEY,window.omnivoreEnv.SSO_JWT_SECRET,"".concat(cn[hn].serverBaseURL,"local"==hn?"/api/auth/gauth-redirect-localhost":"/api/auth/vercel/gauth-redirect"),"".concat(cn[hn].serverBaseURL,"local"==hn?"/api/auth/apple-redirect-localhost":"/api/auth/vercel/apple-redirect"),window.omnivoreEnv.NEXT_PUBLIC_INTERCOM_APP_ID,window.omnivoreEnv.NEXT_PUBLIC_SEGMENT_API_KEY,"prod"==hn?window.omnivoreEnv.NEXT_PUBLIC_GOOGLE_ID:window.omnivoreEnv.NEXT_PUBLIC_DEV_GOOGLE_ID,"".concat(fn(hn),"/api/graphql")),gn="".concat(fn(hn),"/api"),vn=(function(e){if(0==cn[hn].highlightsBaseURL.length)throw new Error("Couldn't find environment variable for highlights base url in ".concat(e," environment"))}(hn),function(e){var t=cn[hn].webBaseURL;if(0==t.length)throw new Error("Couldn't find environment variable for web base url in ".concat(e," environment"));return t}(hn));function mn(e,t,n,r,o,i,a){try{var l=e[i](a),u=l.value}catch(e){return void n(e)}l.done?t(u):Promise.resolve(u).then(r,o)}function yn(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){mn(i,r,o,a,l,"next",e)}function l(e){mn(i,r,o,a,l,"throw",e)}a(void 0)}))}}function bn(){var e,t,n=(null===(e=window)||void 0===e?void 0:e.localStorage.getItem("authToken"))||void 0,r=(null===(t=window)||void 0===t?void 0:t.localStorage.getItem("pendingUserAuth"))||void 0;return n?{authorization:n}:r?{pendingUserAuth:r}:{}}function wn(e,t){return _n(e,t,!1)}function _n(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];n&&xn();var r=new ot.GraphQLClient(pn,{credentials:"include",mode:"cors"});return r.request(e,t,bn())}function xn(){return En.apply(this,arguments)}function En(){return(En=yn(regeneratorRuntime.mark((function e(){var t,n,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("undefined"!=typeof window){e.next=2;break}return e.abrupt("return");case 2:if(!window.localStorage.getItem("authVerified")){e.next=4;break}return e.abrupt("return");case 4:return e.prev=4,e.next=7,fetch("".concat(gn,"/auth/verify"),{credentials:"include",mode:"cors",headers:bn()});case 7:if(200===(t=e.sent).status){e.next=10;break}return e.abrupt("return");case 10:return e.next=12,t.json();case 12:n=e.sent,r=n.authStatus,e.t0=r,e.next="AUTHENTICATED"===e.t0?17:"PENDING_USER"===e.t0?19:"NOT_AUTHENTICATED"===e.t0?21:22;break;case 17:return window.localStorage.setItem("authVerified","true"),e.abrupt("break",22);case 19:return"/confirm-profile"!==window.location.pathname&&(window.location.href="/confirm-profile"),e.abrupt("break",22);case 21:"/login"!==window.location.pathname&&(window.location.href="/login?errorCodes=AUTH_FAILED");case 22:e.next=27;break;case 24:return e.prev=24,e.t1=e.catch(4),e.abrupt("return");case 27:case"end":return e.stop()}}),e,null,[[4,24]])})))).apply(this,arguments)}var Sn,kn,Cn,On=(0,ot.gql)(dn||(Sn=["\n query GetUserPersonalization {\n getUserPersonalization {\n ... on GetUserPersonalizationSuccess {\n userPersonalization {\n id\n theme\n margin\n fontSize\n fontFamily\n libraryLayoutType\n librarySortOrder\n }\n }\n ... on GetUserPersonalizationError {\n errorCodes\n }\n }\n }\n"],kn||(kn=Sn.slice(0)),dn=Object.freeze(Object.defineProperties(Sn,{raw:{value:Object.freeze(kn)}}))));function Pn(e){en(On,{getUserPersonalization:{userPersonalization:e}},!1)}function Tn(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function Rn(e,t,n,r,o,i,a){try{var l=e[i](a),u=l.value}catch(e){return void n(e)}l.done?t(u):Promise.resolve(u).then(r,o)}function jn(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Rn(i,r,o,a,l,"next",e)}function l(e){Rn(i,r,o,a,l,"throw",e)}a(void 0)}))}}function An(e){return Ln.apply(this,arguments)}function Ln(){return Ln=jn(regeneratorRuntime.mark((function e(t){var n,r,o,i,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=(0,ot.gql)(Cn||(Cn=Tn(["\n mutation SetUserPersonalization($input: SetUserPersonalizationInput!) {\n setUserPersonalization(input: $input) {\n ... on SetUserPersonalizationSuccess {\n updatedUserPersonalization {\n id\n theme\n fontSize\n fontFamily\n margin\n libraryLayoutType\n librarySortOrder\n }\n }\n ... on SetUserPersonalizationError {\n errorCodes\n }\n }\n }\n "]))),e.prev=1,e.next=4,_n(n,{input:t});case 4:if(o=e.sent,null==(i=o)||null===(r=i.setUserPersonalization)||void 0===r||!r.updatedUserPersonalization){e.next=9;break}return Pn(i.setUserPersonalization.updatedUserPersonalization),e.abrupt("return",null===(a=i.setUserPersonalization)||void 0===a?void 0:a.updatedUserPersonalization);case 9:return e.abrupt("return",void 0);case 12:return e.prev=12,e.t0=e.catch(1),e.abrupt("return",void 0);case 15:case"end":return e.stop()}}),e,null,[[1,12]])}))),Ln.apply(this,arguments)}var In="theme";function Dn(e){"undefined"!=typeof window&&(Nn(e),An({theme:e}))}function Nn(e){"undefined"!=typeof window&&window.localStorage.setItem(In,e),document.body.classList.remove(me,le.Light,ge,ve),document.body.classList.add(e)}function Mn(){switch(function(){if("undefined"!=typeof window)return window.localStorage.getItem(In)}()){case le.Light:return"Light";case le.Dark:return"Dark";case le.Darker:return"Darker";case le.Lighter:return"Lighter";default:return""}}function zn(){var e=Mn();return"Dark"===e||"Darker"===e}var Fn=o(6635);function $n(e,t,n,r,o,i,a){try{var l=e[i](a),u=l.value}catch(e){return void n(e)}l.done?t(u):Promise.resolve(u).then(r,o)}function Un(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Bn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Bn(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Bn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Hn(e){var t=zn()?"dark":"default",n=Un((0,a.useState)(e.initialReadingProgress),2),r=n[0],o=n[1],i=Un((0,a.useState)(e.initialAnchorIndex),2),l=i[0],s=i[1],c=Un((0,a.useState)(!0),2),f=c[0],d=c[1],h=(0,a.useRef)(null);!function(e,t){(0,a.useEffect)((function(){var n=function(e){if(!e||0==e.childNodes.length)return[];for(var t=[e],n=[],r=function(){var e=t.pop();if((null==e?void 0:e.nodeType)!==Node.ELEMENT_NODE||Be.some((function(t){return e.hasAttribute(t)})))return"continue";n.push(e),[].slice.call(e.childNodes).reverse().forEach((function(e){t.push(e)}))};t.length>0;)r();return n.shift(),n.forEach((function(e,t){e.setAttribute("data-omnivore-anchor-idx",(t+1).toString())})),n}(e.current),r=new IntersectionObserver((function(e){var n=0,r=1e5;if(e.forEach((function(e){var t=e.target.getAttribute("data-omnivore-anchor-idx")||"0";e.isIntersecting&&1===e.intersectionRatio&&e.boundingClientRect.top<r&&(r=e.boundingClientRect.top,n=parseInt(t))})),n>0){for(var o=n;o-1>0;){var i=document.querySelector("[data-omnivore-anchor-idx='".concat((o-1).toString(),"']"));if(!i)throw new Error("Unable to find previous intersection element!");var a=i.getBoundingClientRect();if(!(a.top>=0&&a.left>=0&&a.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&a.right<=(window.innerWidth||document.documentElement.clientWidth)))break;o-=1}t(o)}}),{root:null,rootMargin:"0px",threshold:[1]});return null==n||n.forEach((function(e){r.observe(e)})),function(){r.disconnect()}}),[e,t])}(h,s);var p=(0,a.useMemo)((function(){return(0,Fn.debounce)((function(e){console.log("setReadingProgress",e),o(e)}),2e3)}),[]);(0,a.useEffect)((function(){return function(){p.cancel()}}),[]),(0,a.useEffect)((function(){var t;(t=regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r){t.next=2;break}return t.abrupt("return");case 2:return t.next=4,e.articleMutations.articleReadingProgressMutation({id:e.articleId,readingProgressPercent:r>100?100:r,readingProgressAnchorIndex:l});case 4:case"end":return t.stop()}}),t)})),function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function a(e){$n(i,r,o,a,l,"next",e)}function l(e){$n(i,r,o,a,l,"throw",e)}a(void 0)}))})()}),[e.articleId,r]),(0,a.useEffect)((function(){var e,t;void 0!==(null===(e=window)||void 0===e?void 0:e.webkit)&&(null===(t=window.webkit.messageHandlers.readingProgressUpdate)||void 0===t||t.postMessage({progress:r}))}),[r]);var g=function(e,t){var n=He((0,a.useState)(null),2),r=n[0],o=n[1];!function(e,t,n){var r=(0,a.useRef)(void 0),o=He((0,a.useState)({x:0,y:0}),2),i=o[0],l=o[1];(0,a.useEffect)((function(){var o,a=function(){var n,o,a,u,s,c,f={x:null!==(n=null!==(o=null==t?void 0:t.scrollLeft)&&void 0!==o?o:null===(a=window)||void 0===a?void 0:a.scrollX)&&void 0!==n?n:0,y:null!==(u=null!==(s=null==t?void 0:t.scrollTop)&&void 0!==s?s:null===(c=window)||void 0===c?void 0:c.scrollY)&&void 0!==u?u:0};e({current:f,previous:i}),l(f),r.current=void 0},u=function(){void 0===r.current&&(r.current=setTimeout(a,n))};return null===(o=null!=t?t:window)||void 0===o||o.addEventListener("scroll",u),function(){var e;return null===(e=null!=t?t:window)||void 0===e?void 0:e.removeEventListener("scroll",u)}}),[i,n,e,t])}(e,r,t);var i=(0,a.useRef)(null);return(0,a.useCallback)((function(e){o(e),i.current=e}),[])}((function(t){var n=e.scrollElementRef.current;if(n){var r=(t.current.y+n.clientHeight)/n.scrollHeight;p(100*r)}else if(window&&window.document.scrollingElement){var o=window.scrollY/window.document.scrollingElement.scrollHeight;p(100*(o>.92?1:o))}}),1e3),v=(0,a.useCallback)((function(e,t){if(t){var n=t.clientWidth+140;if(!e.closest("blockquote, table")){var r=parseFloat(e.getAttribute("width")||"");(r=isNaN(r)?e.naturalWidth:r)>n&&(e.style.setProperty("width","".concat(Math.min(r,n),"px")),e.style.setProperty("max-width","unset"),e.style.setProperty("margin-left","-".concat(Math.round(70),"px")))}}}),[]);(0,a.useEffect)((function(){g(e.scrollElementRef.current)}),[e.scrollElementRef,g]),(0,a.useEffect)((function(){if("undefined"!=typeof window&&f&&(d(!1),!(e.initialReadingProgress&&e.initialReadingProgress>=98))){var t=document.querySelector("[data-omnivore-anchor-idx='".concat(e.initialAnchorIndex.toString(),"']"));if(t){var n,r=function(e){var t=0;if(e.offsetParent){do{t+=e.offsetTop}while(e=e.offsetParent);return t}return 0};e.scrollElementRef.current?null===(n=e.scrollElementRef.current)||void 0===n||n.scroll(0,r(t)):window.document.documentElement.scroll(0,r(t))}}}),[e.initialAnchorIndex,e.initialReadingProgress,e.scrollElementRef,f]),(0,a.useEffect)((function(){var e,t;"function"==typeof(null===(e=window)||void 0===e||null===(t=e.MathJax)||void 0===t?void 0:t.typeset)&&window.MathJax.typeset(),Array.from(document.getElementsByClassName("tweet-placeholder")).forEach((function(e){(0,u.render)((0,Le.jsx)(rt,{tweetId:e.getAttribute("data-tweet-id")||"",options:{theme:zn()?"dark":"light",align:"center"}}),e)}))}),[]);var m=(0,a.useCallback)((function(){var e,t=null===(e=h.current)||void 0===e?void 0:e.querySelectorAll("img");null==t||t.forEach((function(e){v(e,h.current)}))}),[v]);return(0,a.useEffect)((function(){return window.addEventListener("load",m),function(){window.removeEventListener("load",m)}}),[m]),(0,Le.jsxs)(Le.Fragment,{children:[(0,Le.jsx)("link",{rel:"stylesheet",href:"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.4.0/styles/".concat(t,".min.css")}),(0,Le.jsx)(De,{ref:h,css:{maxWidth:"100%"},className:"article-inner-css",dangerouslySetInnerHTML:{__html:e.content}})]})}var Wn=ce("p",{fontFamily:"Inter",fontWeight:"normal",lineHeight:"120%",color:"$grayTextContrast",variants:{style:{body:{fontSize:"$2",lineHeight:"1.25"},logoTitle:{fontFamily:"Inter",fontWeight:700,fontSize:"18px",textTransform:"uppercase",letterSpacing:"0.15em"},bodyBold:{fontWeight:"bold",fontSize:"$2",lineHeight:"1.25"},headline:{fontSize:"$4","@md":{fontSize:"$6"}},fixedHeadline:{fontSize:"$6",fontWeight:"500"},subHeadline:{fontSize:"$5"},boldHeadline:{fontWeight:"bold",fontSize:"$4","@md":{fontSize:"$6"},margin:0},modalHeadline:{fontWeight:"500",fontSize:"16px",lineHeight:"1",color:"$grayText",margin:0},footnote:{fontSize:"$1"},shareTitle:{fontSize:"$1",fontWeight:"600",color:"$grayText"},shareSubtitle:{fontSize:"$1",color:"$grayText"},listTitle:{fontSize:"16px",fontWeight:"500",color:"$grayTextContrast",lineHeight:"1.5",wordBreak:"break-word"},caption:{color:"$grayText",fontSize:"12px",lineHeight:"1.5",wordBreak:"break-word"},captionLink:{fontSize:"$2",textDecoration:"underline",lineHeight:"1.5",cursor:"pointer"},highlightAuthor:{fontSize:"14px",fontWeight:"600",lineHeight:"1.5",margin:"0px",color:"$omnivoreGray"},highlightTitle:{fontSize:"14px",fontWeight:"400",lineHeight:"1.5",margin:"0px",color:"$omnivoreGray"},navLink:{m:0,fontSize:"$1",fontWeight:400,color:"$graySolid",cursor:"pointer","&:hover":{opacity:.7}},controlButton:{color:"$grayText",fontWeight:"500",fontFamily:"inter",fontSize:"14px"},menuTitle:{fontSize:13,pt:"0px",m:"0px",borderRadius:3,cursor:"default",color:"$grayText"},error:{color:"$error",fontSize:"$2",lineHeight:"1.25"}}},defaultVariants:{style:"footnote"}});function Vn(e){var t,n,r,o=e.style||"footnote";return(0,Le.jsx)(De,{children:(0,Le.jsxs)(Wn,{style:o,css:{wordBreak:"break-word"},children:[(n=e.href,r=e.author,r?"".concat(function(e){return"By ".concat("string"==typeof(t=e)?t.replace(/(<([^>]+)>)/gi,""):"");var t}(r),", ").concat(new URL(n).hostname):new URL(n).origin)," ",(0,Le.jsx)("span",{style:{position:"relative",bottom:1},children:"• "})," ",(t=e.rawDisplayDate,new Intl.DateTimeFormat("en-US",{dateStyle:"long"}).format(new Date(t)))," ",!e.hideButton&&(0,Le.jsxs)(Le.Fragment,{children:[(0,Le.jsx)("span",{style:{position:"relative",bottom:1},children:"• "})," ",(0,Le.jsx)(Me,{href:e.href,target:"_blank",rel:"noreferrer",css:{textDecoration:"underline",color:"$grayTextContrast"},children:"See original"})]})]})})}ce("li",{fontFamily:"Inter",fontWeight:"normal",lineHeight:"1.35",color:"$grayTextContrast"}),ce("ul",{fontFamily:"Inter",fontWeight:"normal",lineHeight:"1.35",color:"$grayTextContrast"});var qn=o(1427);function Kn(e,t){for(var n=0,r=e.length-1;n<r;){var o=e[r]-e[n],i=r-n,a=t-e[n];if(a<0)throw new Error("Unable to find text node");if(!o)return n;var l=n+Math.floor(a*i/o);if(t<e[l])r=l;else{if(!(t>=e[l+1]))return l;n=l+1}}throw new Error("Unable to find text node")}var Xn="omnivore-highlight-id",Gn="omnivore-highlight-note-id",Yn="omnivore_highlight",Qn="article-container",Zn=/^(a|b|basefont|bdo|big|em|font|i|s|small|span|strike|strong|su[bp]|tt|u|code|mark)$/i,Jn=new RegExp("<".concat(Yn,">([\\s\\S]*)<\\/").concat(Yn,">"),"i"),er=2e3;function tr(e,t,n,r,o){var i,a=ar({patch:e}),l=a.prefix,u=a.suffix,s=a.highlightTextStart,c=a.highlightTextEnd,f=a.textNodes,d=a.textNodeIndex,h="";if(ur(t).length)return{prefix:l,suffix:u,quote:h,startLocation:s,endLocation:c};for(var p=function(){var e=lr({textNodes:f,startingTextNodeIndex:d,highlightTextStart:s,highlightTextEnd:c}),a=e.node,l=e.textPartsToHighlight,u=e.startsParagraph,p=a.parentNode,g=a.nextSibling;null==p||p.removeChild(a),l.forEach((function(e,a){var l=e.highlight,s=e.text.replace(/\n/g,""),c=document.createTextNode(s);if(l){s&&(u&&!a&&h&&(h+="\n"),h+=s);var f=document.createElement("span");return f.className=n?"highlight_with_note":"highlight",f.setAttribute(Xn,t),r&&f.setAttribute("style","background-color: ".concat(r," !important")),o&&f.setAttribute("title",o),f.appendChild(c),i=f,null==p?void 0:p.insertBefore(f,g)}return null==p?void 0:p.insertBefore(c,g)})),d++};c>f[d].startIndex;)p();if(n&&i){i.classList.add("last_element");var g=function(){var e="http://www.w3.org/2000/svg",t=document.createElementNS(e,"svg");t.setAttribute("viewBox","0 0 14 14"),t.setAttribute("width","14"),t.setAttribute("height","14"),t.setAttribute("fill","none");var n=document.createElementNS(e,"path");return n.setAttribute("d","M1 5.66602C1 3.7804 1 2.83759 1.58579 2.2518C2.17157 1.66602 3.11438 1.66602 5 1.66602H9C10.8856 1.66602 11.8284 1.66602 12.4142 2.2518C13 2.83759 13 3.7804 13 5.66602V7.66601C13 9.55163 13 10.4944 12.4142 11.0802C11.8284 11.666 10.8856 11.666 9 11.666H4.63014C4.49742 11.666 4.43106 11.666 4.36715 11.6701C3.92582 11.6984 3.50632 11.8722 3.17425 12.1642C3.12616 12.2065 3.07924 12.2534 2.98539 12.3473V12.3473C2.75446 12.5782 2.639 12.6937 2.55914 12.7475C1.96522 13.1481 1.15512 12.8125 1.01838 12.1093C1 12.0148 1 11.8515 1 11.5249V5.66602Z"),n.setAttribute("stroke","rgba(255, 210, 52, 0.8)"),n.setAttribute("stroke-width","1.8"),n.setAttribute("stroke-linejoin","round"),t.appendChild(n),t}();g.setAttribute(Gn,t);var v=document.createElement("div");v.className="highlight_note_button",v.appendChild(g),v.setAttribute(Gn,t),v.setAttribute("width","14px"),v.setAttribute("height","14px"),i.appendChild(v)}return{prefix:l,suffix:u,quote:h,startLocation:s,endLocation:c}}function nr(e){var t=document.getElementById(Qn);if(!t)throw new Error("Unable to find article content element");var n=new Range,r=new Range,o=new Range;o.selectNode(t),n.setStart(o.startContainer,o.startOffset),n.setEnd(e.startContainer,e.startOffset),r.setStart(e.endContainer,e.endOffset),r.setEnd(o.endContainer,o.endOffset);var i="".concat(n.toString(),"<").concat(Yn,">").concat(e.toString(),"</").concat(Yn,">").concat(r.toString()),a=new qn.diff_match_patch,l=a.patch_toText(a.patch_make(o.toString(),i));if(!l)throw new Error("Invalid patch");return l}function rr(e){var t=nr(e),n=ir(t);return[n.highlightTextStart,n.highlightTextEnd]}var or=function(e){var t=(null==e?void 0:e.current)||document.getElementById(Qn);if(!t)throw new Error("Unable to find article content element");var n=0,r="",o=!1,i=[];return t.childNodes.forEach((function e(t){var a;t.nodeType===Node.TEXT_NODE?(i.push({startIndex:n,node:t,startsParagraph:o}),n+=(null===(a=t.nodeValue)||void 0===a?void 0:a.length)||0,r+=t.nodeValue,o=!1):(Zn.test(t.tagName)||(o=!0),t.childNodes.forEach(e))})),i.push({startIndex:n,node:document.createTextNode("")}),{textNodes:i,articleText:r}},ir=function(e){if(!e)throw new Error("Invalid patch");var t,n=or().articleText,r=new qn.diff_match_patch,o=r.patch_apply(r.patch_fromText(e),n);if(o[1][0])t=Jn.exec(o[0]);else{r.Match_Threshold=.5,r.Match_Distance=4e3;var i=r.patch_apply(r.patch_fromText(e),n);if(!i[1][0])throw new Error("Unable to find the highlight");t=Jn.exec(i[0])}if(!t)throw new Error("Unable to find the highlight from patch");var a=t.index;return{highlightTextStart:a,highlightTextEnd:a+t[1].length,matchingHighlightContent:t}};function ar(e){var t=e.patch;if(!t)throw new Error("Invalid patch");var n=or().textNodes,r=ir(t),o=r.highlightTextStart,i=r.highlightTextEnd,a=Kn(n.map((function(e){return e.startIndex})),o),l=Kn(n.map((function(e){return e.startIndex})),i);return{prefix:sr({textNodes:n,startingTextNodeIndex:a,startingOffset:o-n[a].startIndex,side:"prefix"}),suffix:sr({textNodes:n,startingTextNodeIndex:l,startingOffset:i-n[l].startIndex,side:"suffix"}),highlightTextStart:o,highlightTextEnd:i,textNodes:n,textNodeIndex:a}}var lr=function(e){var t=e.textNodes,n=e.startingTextNodeIndex,r=e.highlightTextStart,o=e.highlightTextEnd,i=t[n],a=i.node,l=i.startIndex,u=i.startsParagraph,s=a.nodeValue||"",c=r-l,f=o-l,d=[];return c>0&&d.push({text:s.substring(0,c),highlight:!1}),d.push({text:s.substring(c,f),highlight:!0}),f<=s.length&&d.push({text:s.substring(f),highlight:!1}),{node:a,textPartsToHighlight:d,startsParagraph:u}},ur=function(e){return Array.from(document.querySelectorAll("[".concat(Xn,"='").concat(e,"']")))},sr=function(e){var t,n=e.textNodes,r=e.startingTextNodeIndex,o=e.startingOffset,i="prefix"===e.side,a=r,l=function e(){var t=n[a+=i?-1:1],r=t.node,o=t.startsParagraph,l=r.nodeValue||"";return i?o||l.length>er?l:e()+l:!n[a+1]||n[a+1].startsParagraph||l.length>er?l:l+e()},u=n[r],s=u.startsParagraph,c=u.node.nodeValue||"",f=i?c.substring(0,o):c.substring(o);return(t=i?s?f:l()+f:!n[a+1]||n[a+1].startsParagraph?f:f+l()).length<=er?t:i?t.slice(t.length-er):t.substring(0,er)},cr=function(e){var t=ar({patch:e}),n=t.highlightTextStart;return t.highlightTextEnd-n<2e3};function fr(e,t,n,r,o,i,a){try{var l=e[i](a),u=l.value}catch(e){return void n(e)}l.done?t(u):Promise.resolve(u).then(r,o)}function dr(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){fr(i,r,o,a,l,"next",e)}function l(e){fr(i,r,o,a,l,"throw",e)}a(void 0)}))}}function hr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return pr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?pr(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function pr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function gr(){return vr.apply(this,arguments)}function vr(){return(vr=dr(regeneratorRuntime.mark((function e(){var t,n,r,o,i,a,l,u;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,new Promise((function(e){setTimeout((function(){e(document.getSelection())}),100)}));case 2:if(!(!(t=e.sent)||t.isCollapsed||t.rangeCount<=0)){e.next=5;break}return e.abrupt("return",void 0);case 5:if(n=document.getElementById("article-container")){e.next=8;break}throw new Error("Unable to find the article content element");case 8:return(r=new Range).selectNode(n),o=t.getRangeAt(0),i=o.compareBoundaryPoints(Range.START_TO_START,r),a=o.compareBoundaryPoints(Range.END_TO_END,r),l=i>=0&&a<=0,u=o.startContainer===t.focusNode&&o.endOffset===t.anchorOffset,e.abrupt("return",l?{range:o,isReverseSelected:u,selection:t}:void 0);case 16:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var mr=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if("undefined"==typeof window||!e)return{left:0,top:0,right:0,bottom:0,width:0,height:0};var n=e.getClientRects();if(!n||!n.length)return{left:0,top:0,right:0,bottom:0,width:0,height:0};var r=n[t?0:n.length-1];return{left:window.scrollX+r.left,top:window.scrollY+r.top,right:window.scrollX+r.right,bottom:window.scrollY+r.bottom,width:r.width,height:r.height}},yr=ce("button",{fontFamily:"inter",fontSize:"$2",lineHeight:"1.25",color:"$grayText",variants:{style:{ctaYellow:{borderRadius:"$3",px:"$3",py:"$2",border:"1px solid $yellow3",bg:"$yellow3","&:hover":{bg:"$yellow4",border:"1px solid $grayBorderHover"}},ctaDarkYellow:{border:0,fontSize:"14px",fontWeight:500,fontStyle:"normal",fontFamily:"Inter",borderRadius:"8px",cursor:"pointer",color:"$omnivoreGray",bg:"$omnivoreCtaYellow",p:"10px 12px"},ctaLightGray:{border:0,fontSize:"14px",fontWeight:500,fontStyle:"normal",fontFamily:"Inter",borderRadius:"8px",cursor:"pointer",color:"$omnivoreGray",p:"10px 10px",bg:"rgb(125, 125, 125, 0)","&:hover":{bg:"rgb(47, 47, 47, 0.1)",".ctaButtonIcon":{visibility:"visible"}},"@md":{bg:"rgb(125, 125, 125, 0.1)"},".ctaButtonIcon":{visibility:"hidden"}},ctaGray:{border:0,fontSize:"14px",fontWeight:500,fontStyle:"normal",fontFamily:"Inter",borderRadius:"8px",cursor:"pointer",color:"$omnivoreGray",bg:"$grayBgActive",p:"10px 12px"},ctaWhite:{borderRadius:"$3",px:"$3",py:"$2",cursor:"pointer",border:"1px solid $grayBgSubtle",bg:"$grayBgSubtle","&:hover":{border:"1px solid $grayBorderHover"}},modalOption:{style:"ghost",height:"52px",width:"100%",textAlign:"left",verticalAlign:"middle",color:"#0A0806",backgroundColor:"unset",outlineColor:"rgba(0, 0, 0, 0)",border:"1px solid rgba(0, 0, 0, 0.06)",cursor:"pointer","&:focus":{outline:"none"}},ctaSecondary:{color:"$grayText",border:"none",bg:"transparent","&:hover":{opacity:.8}},ctaPill:{borderRadius:"$3",px:"$3",py:"$2",border:"1px solid $grayBorder",bg:"$grayBgActive","&:hover":{bg:"$grayBgHover",border:"1px solid $grayBorderHover"}},circularIcon:{mx:"$1",display:"flex",alignItems:"center",fontWeight:500,height:44,width:44,borderRadius:"50%",justifyContent:"center",textAlign:"center",background:"$grayBase",cursor:"pointer",border:"none",opacity:.9,"&:hover":{opacity:1}},squareIcon:{mx:"$1",display:"flex",alignItems:"center",fontWeight:500,height:44,width:44,justifyContent:"center",textAlign:"center",background:"$grayBase",cursor:"pointer",border:"none",borderRight:"1px solid $grayText",opacity:.9,"&:hover":{opacity:1}},plainIcon:{bg:"transparent",border:"none",cursor:"pointer","&:hover":{opacity:.8}},ghost:{color:"transparent",border:"none",bg:"transparent","&:hover":{opacity:.8}},themeSwitch:{p:"0px",m:"4px",ml:"0px",width:"24px",height:"24px",fontSize:"14px",borderRadius:"4px",border:"1px solid rgb(243, 243, 243)","&:hover":{transform:"scale(1.2)"}}}},defaultVariants:{style:"ctaWhite"}}),br=new WeakMap,wr=new WeakMap,_r={},xr=0,Er=function(e,t,n){void 0===t&&(t=function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body}(e)),void 0===n&&(n="data-aria-hidden");var r=Array.isArray(e)?e:[e];_r[n]||(_r[n]=new WeakMap);var o=_r[n],i=[],a=new Set,l=function(e){e&&!a.has(e)&&(a.add(e),l(e.parentNode))};r.forEach(l);var u=function(e){!e||r.indexOf(e)>=0||Array.prototype.forEach.call(e.children,(function(e){if(a.has(e))u(e);else{var t=e.getAttribute("aria-hidden"),r=null!==t&&"false"!==t,l=(br.get(e)||0)+1,s=(o.get(e)||0)+1;br.set(e,l),o.set(e,s),i.push(e),1===l&&r&&wr.set(e,!0),1===s&&e.setAttribute(n,"true"),r||e.setAttribute("aria-hidden","true")}}))};return u(t),a.clear(),xr++,function(){i.forEach((function(e){var t=br.get(e)-1,r=o.get(e)-1;br.set(e,t),o.set(e,r),t||(wr.has(e)||e.removeAttribute("aria-hidden"),wr.delete(e)),r||e.removeAttribute(n)})),--xr||(br=new WeakMap,br=new WeakMap,wr=new WeakMap,_r={})}},Sr=function(){return Sr=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Sr.apply(this,arguments)},kr="right-scroll-bar-position",Cr="width-before-scroll-bar",Or=function(){return Or=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Or.apply(this,arguments)};function Pr(e){return e}var Tr=function(e){void 0===e&&(e={});var t=function(e,t){void 0===t&&(t=Pr);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var o=t(e,r);return n.push(o),function(){n=n.filter((function(e){return e!==o}))}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var o=n;n=[],o.forEach(e),t=n}var i=function(){var n=t;t=[],n.forEach(e)},a=function(){return Promise.resolve().then(i)};a(),n={push:function(e){t.push(e),a()},filter:function(e){return t=t.filter(e),n}}}};return o}(null);return t.options=Or({async:!0,ssr:!1},e),t}();var Rr=function(){},jr=a.forwardRef((function(e,t){var n=a.useRef(null),r=a.useState({onScrollCapture:Rr,onWheelCapture:Rr,onTouchMoveCapture:Rr}),o=r[0],i=r[1],l=e.forwardProps,u=e.children,s=e.className,c=e.removeScrollBar,f=e.enabled,d=e.shards,h=e.sideCar,p=e.noIsolation,g=e.inert,v=e.allowPinchZoom,m=e.as,y=void 0===m?"div":m,b=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),w=h,_=function(e,t){return n=t,r=function(t){return e.forEach((function(e){return function(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}(e,t)}))},(o=(0,a.useState)((function(){return{value:n,callback:r,facade:{get current(){return o.value},set current(e){var t=o.value;t!==e&&(o.value=e,o.callback(e,t))}}}}))[0]).callback=r,o.facade;var n,r,o}([n,t]),x=Sr({},b,o);return a.createElement(a.Fragment,null,f&&a.createElement(w,{sideCar:Tr,removeScrollBar:c,shards:d,noIsolation:p,inert:g,setCallbacks:i,allowPinchZoom:!!v,lockRef:n}),l?a.cloneElement(a.Children.only(u),Sr({},x,{ref:_})):a.createElement(y,Sr({},x,{className:s,ref:_}),u))}));jr.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},jr.classNames={fullWidth:Cr,zeroRight:kr};var Ar=function(e){var t=e.sideCar,n=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return a.createElement(r,Or({},n))};Ar.isSideCarExport=!0;var Lr=function(){var e=0,t=null;return{add:function(n){var r;0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=o.nc;return t&&e.setAttribute("nonce",t),e}())&&(function(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}(t,n),r=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(r)),e++},remove:function(){!--e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Ir=function(){var e,t=(e=Lr(),function(t){a.useEffect((function(){return e.add(t),function(){e.remove()}}),[])});return function(e){var n=e.styles;return t(n),null}},Dr={left:0,top:0,right:0,gap:0},Nr=function(e){return parseInt(e||"",10)||0},Mr=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return Dr;var t=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[Nr(n),Nr(r),Nr(o)]}(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},zr=Ir(),Fr=function(e,t,n,r){var o=e.left,i=e.top,a=e.right,l=e.gap;return void 0===n&&(n="margin"),"\n .with-scroll-bars-hidden {\n overflow: hidden "+r+";\n padding-right: "+l+"px "+r+";\n }\n body {\n overflow: hidden "+r+";\n "+[t&&"position: relative "+r+";","margin"===n&&"\n padding-left: "+o+"px;\n padding-top: "+i+"px;\n padding-right: "+a+"px;\n margin-left:0;\n margin-top:0;\n margin-right: "+l+"px "+r+";\n ","padding"===n&&"padding-right: "+l+"px "+r+";"].filter(Boolean).join("")+"\n }\n \n ."+kr+" {\n right: "+l+"px "+r+";\n }\n \n ."+Cr+" {\n margin-right: "+l+"px "+r+";\n }\n \n ."+kr+" ."+kr+" {\n right: 0 "+r+";\n }\n \n ."+Cr+" ."+Cr+" {\n margin-right: 0 "+r+";\n }\n \n body {\n --removed-body-scroll-bar-size: "+l+"px;\n }\n"},$r=function(e){var t=a.useState(Mr(e.gapMode)),n=t[0],r=t[1];a.useEffect((function(){r(Mr(e.gapMode))}),[e.gapMode]);var o=e.noRelative,i=e.noImportant,l=e.gapMode,u=void 0===l?"margin":l;return a.createElement(zr,{styles:Fr(n,!o,u,i?"":"!important")})},Ur=function(e,t){var n=t;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),Br(e,n)){var r=Hr(e,n);if(r[1]>r[2])return!0}n=n.parentNode}while(n&&n!==document.body);return!1},Br=function(e,t){return"v"===e?function(e){var t=window.getComputedStyle(e);return"hidden"!==t.overflowY&&!(t.overflowY===t.overflowX&&"visible"===t.overflowY)}(t):function(e){var t=window.getComputedStyle(e);return"range"===e.type||"hidden"!==t.overflowX&&!(t.overflowY===t.overflowX&&"visible"===t.overflowX)}(t)},Hr=function(e,t){return"v"===e?function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]}(t):function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t)},Wr=!1;if("undefined"!=typeof window)try{var Vr=Object.defineProperty({},"passive",{get:function(){return Wr=!0,!0}});window.addEventListener("test",Vr,Vr),window.removeEventListener("test",Vr,Vr)}catch(e){Wr=!1}var qr=!!Wr&&{passive:!1},Kr=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Xr=function(e){return[e.deltaX,e.deltaY]},Gr=function(e){return e&&"current"in e?e.current:e},Yr=function(e){return"\n .block-interactivity-"+e+" {pointer-events: none;}\n .allow-interactivity-"+e+" {pointer-events: all;}\n"},Qr=0,Zr=[];const Jr=(eo=function(e){var t=a.useRef([]),n=a.useRef([0,0]),r=a.useRef(),o=a.useState(Qr++)[0],i=a.useState((function(){return Ir()}))[0],l=a.useRef(e);a.useEffect((function(){l.current=e}),[e]),a.useEffect((function(){if(e.inert){document.body.classList.add("block-interactivity-"+o);var t=[e.lockRef.current].concat((e.shards||[]).map(Gr)).filter(Boolean);return t.forEach((function(e){return e.classList.add("allow-interactivity-"+o)})),function(){document.body.classList.remove("block-interactivity-"+o),t.forEach((function(e){return e.classList.remove("allow-interactivity-"+o)}))}}}),[e.inert,e.lockRef.current,e.shards]);var u=a.useCallback((function(e,t){if("touches"in e&&2===e.touches.length)return!l.current.allowPinchZoom;var o,i=Kr(e),a=n.current,u="deltaX"in e?e.deltaX:a[0]-i[0],s="deltaY"in e?e.deltaY:a[1]-i[1],c=e.target,f=Math.abs(u)>Math.abs(s)?"h":"v",d=Ur(f,c);if(!d)return!0;if(d?o=f:(o="v"===f?"h":"v",d=Ur(f,c)),!d)return!1;if(!r.current&&"changedTouches"in e&&(u||s)&&(r.current=o),!o)return!0;var h=r.current||o;return function(e,t,n,r,o){var i=r,a=n.target,l=t.contains(a),u=!1,s=i>0,c=0,f=0;do{var d=Hr(e,a),h=d[0],p=d[1]-d[2]-h;(h||p)&&Br(e,a)&&(c+=p,f+=h),a=a.parentNode}while(!l&&a!==document.body||l&&(t.contains(a)||t===a));return(s&&(0===c||!1)||!s&&(0===f||!1))&&(u=!0),u}(h,t,e,"h"===h?u:s)}),[]),s=a.useCallback((function(e){var n=e;if(Zr.length&&Zr[Zr.length-1]===i){var r="deltaY"in n?Xr(n):Kr(n),o=t.current.filter((function(e){return e.name===n.type&&e.target===n.target&&function(e,t){return e[0]===t[0]&&e[1]===t[1]}(e.delta,r)}))[0];if(o&&o.should)n.preventDefault();else if(!o){var a=(l.current.shards||[]).map(Gr).filter(Boolean).filter((function(e){return e.contains(n.target)}));(a.length>0?u(n,a[0]):!l.current.noIsolation)&&n.preventDefault()}}}),[]),c=a.useCallback((function(e,n,r,o){var i={name:e,delta:n,target:r,should:o};t.current.push(i),setTimeout((function(){t.current=t.current.filter((function(e){return e!==i}))}),1)}),[]),f=a.useCallback((function(e){n.current=Kr(e),r.current=void 0}),[]),d=a.useCallback((function(t){c(t.type,Xr(t),t.target,u(t,e.lockRef.current))}),[]),h=a.useCallback((function(t){c(t.type,Kr(t),t.target,u(t,e.lockRef.current))}),[]);a.useEffect((function(){return Zr.push(i),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:h}),document.addEventListener("wheel",s,qr),document.addEventListener("touchmove",s,qr),document.addEventListener("touchstart",f,qr),function(){Zr=Zr.filter((function(e){return e!==i})),document.removeEventListener("wheel",s,qr),document.removeEventListener("touchmove",s,qr),document.removeEventListener("touchstart",f,qr)}}),[]);var p=e.removeScrollBar,g=e.inert;return a.createElement(a.Fragment,null,g?a.createElement(i,{styles:Yr(o)}):null,p?a.createElement($r,{gapMode:"margin"}):null)},Tr.useMedium(eo),Ar);var eo,to=a.forwardRef((function(e,t){return a.createElement(jr,Sr({},e,{ref:t,sideCar:Jr}))}));to.classNames=jr.classNames;const no=to,ro=Boolean(null===globalThis||void 0===globalThis?void 0:globalThis.document)?a.useLayoutEffect:()=>{},oo=l["useId".toString()]||(()=>{});let io=0;function ao(e){const[t,n]=a.useState(oo());return ro((()=>{e||n((e=>null!=e?e:String(io++)))}),[e]),e||(t?`radix-${t}`:"")}const lo=e=>{const{present:t,children:n}=e,r=function(e){const[t,n]=a.useState(),r=a.useRef({}),o=a.useRef(e),i=a.useRef("none"),l=e?"mounted":"unmounted",[u,s]=function(e,t){return a.useReducer(((e,n)=>{const r=t[e][n];return null!=r?r:e}),e)}(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return a.useEffect((()=>{const e=uo(r.current);i.current="mounted"===u?e:"none"}),[u]),ro((()=>{const t=r.current,n=o.current;if(n!==e){const r=i.current,a=uo(t);if(e)s("MOUNT");else if("none"===a||"none"===(null==t?void 0:t.display))s("UNMOUNT");else{const e=r!==a;s(n&&e?"ANIMATION_OUT":"UNMOUNT")}o.current=e}}),[e,s]),ro((()=>{if(t){const e=e=>{const n=uo(r.current).includes(e.animationName);e.target===t&&n&&s("ANIMATION_END")},n=e=>{e.target===t&&(i.current=uo(r.current))};return t.addEventListener("animationstart",n),t.addEventListener("animationcancel",e),t.addEventListener("animationend",e),()=>{t.removeEventListener("animationstart",n),t.removeEventListener("animationcancel",e),t.removeEventListener("animationend",e)}}}),[t,s]),{isPresent:["mounted","unmountSuspended"].includes(u),ref:a.useCallback((e=>{e&&(r.current=getComputedStyle(e)),n(e)}),[])}}(t),o="function"==typeof n?n({present:r.isPresent}):a.Children.only(n),i=be(r.ref,o.ref);return"function"==typeof n||r.isPresent?a.cloneElement(o,{ref:i}):null};function uo(e){return(null==e?void 0:e.animationName)||"none"}lo.displayName="Presence";let so=0;function co(){a.useEffect((()=>{var e,t;const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(e=n[0])&&void 0!==e?e:fo()),document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:fo()),so++,()=>{1===so&&document.querySelectorAll("[data-radix-focus-guard]").forEach((e=>e.remove())),so--}}),[])}function fo(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}const ho=["a","button","div","h2","h3","img","li","nav","p","span","svg","ul"].reduce(((e,t)=>({...e,[t]:a.forwardRef(((e,n)=>{const{asChild:r,...o}=e,i=r?_e:t;return a.useEffect((()=>{window[Symbol.for("radix-ui")]=!0}),[]),e.as&&console.error(po),a.createElement(i,we({},o,{ref:n}))}))})),{}),po="Warning: The `as` prop has been removed in favour of `asChild`. For details, see https://radix-ui.com/docs/primitives/overview/styling#changing-the-rendered-element",go=a.forwardRef(((e,t)=>{var n,r;const{containerRef:o,style:i,...l}=e,s=null!==(n=null==o?void 0:o.current)&&void 0!==n?n:null===globalThis||void 0===globalThis||null===(r=globalThis.document)||void 0===r?void 0:r.body,[,c]=a.useState({});return ro((()=>{c({})}),[]),s?u.createPortal(a.createElement(ho.div,we({"data-radix-portal":""},l,{ref:t,style:s===document.body?{position:"absolute",top:0,left:0,zIndex:2147483647,...i}:void 0})),s):null}));function vo(e){const t=a.useRef(e);return a.useEffect((()=>{t.current=e})),a.useMemo((()=>(...e)=>{var n;return null===(n=t.current)||void 0===n?void 0:n.call(t,...e)}),[])}const mo={bubbles:!1,cancelable:!0},yo=a.forwardRef(((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...l}=e,[u,s]=a.useState(null),c=vo(o),f=vo(i),d=a.useRef(null),h=be(t,(e=>s(e))),p=a.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;a.useEffect((()=>{if(r){function e(e){if(p.paused||!u)return;const t=e.target;u.contains(t)?d.current=t:xo(d.current,{select:!0})}function t(e){!p.paused&&u&&(u.contains(e.relatedTarget)||xo(d.current,{select:!0}))}return document.addEventListener("focusin",e),document.addEventListener("focusout",t),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t)}}}),[r,u,p.paused]),a.useEffect((()=>{if(u){Eo.add(p);const e=document.activeElement;if(!u.contains(e)){const t=new Event("focusScope.autoFocusOnMount",mo);u.addEventListener("focusScope.autoFocusOnMount",c),u.dispatchEvent(t),t.defaultPrevented||(function(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(xo(r,{select:t}),document.activeElement!==n)return}(bo(u).filter((e=>"A"!==e.tagName)),{select:!0}),document.activeElement===e&&xo(u))}return()=>{u.removeEventListener("focusScope.autoFocusOnMount",c),setTimeout((()=>{const t=new Event("focusScope.autoFocusOnUnmount",mo);u.addEventListener("focusScope.autoFocusOnUnmount",f),u.dispatchEvent(t),t.defaultPrevented||xo(null!=e?e:document.body,{select:!0}),u.removeEventListener("focusScope.autoFocusOnUnmount",f),Eo.remove(p)}),0)}}}),[u,c,f,p]);const g=a.useCallback((e=>{if(!n&&!r)return;if(p.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){const t=e.currentTarget,[r,i]=function(e){const t=bo(e);return[wo(t,e),wo(t.reverse(),e)]}(t);r&&i?e.shiftKey||o!==i?e.shiftKey&&o===r&&(e.preventDefault(),n&&xo(i,{select:!0})):(e.preventDefault(),n&&xo(r,{select:!0})):o===t&&e.preventDefault()}}),[n,r,p.paused]);return a.createElement(ho.div,we({tabIndex:-1},l,{ref:h,onKeyDown:g}))}));function bo(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function wo(e,t){for(const n of e)if(!_o(n,{upTo:t}))return n}function _o(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function xo(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&function(e){return e instanceof HTMLInputElement&&"select"in e}(e)&&t&&e.select()}}const Eo=function(){let e=[];return{add(t){const n=e[0];t!==n&&(null==n||n.pause()),e=So(e,t),e.unshift(t)},remove(t){var n;e=So(e,t),null===(n=e[0])||void 0===n||n.resume()}}}();function So(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}function ko(e){const t=vo(e);a.useEffect((()=>{const e=e=>{"Escape"===e.key&&t(e)};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)}),[t])}let Co,Oo=0;function Po(e,t){const n=a.createContext(t);function r(e){const{children:t,...r}=e,o=a.useMemo((()=>r),Object.values(r));return a.createElement(n.Provider,{value:o},t)}return r.displayName=e+"Provider",[r,function(r){const o=a.useContext(n);if(o)return o;if(void 0!==t)return t;throw new Error(`\`${r}\` must be used within \`${e}\``)}]}function To(e,t=[]){let n=[];const r=()=>{const t=n.map((e=>a.createContext(e)));return function(n){const r=(null==n?void 0:n[e])||t;return a.useMemo((()=>({[`__scope${e}`]:{...n,[e]:r}})),[n,r])}};return r.scopeName=e,[function(t,r){const o=a.createContext(r),i=n.length;function l(t){const{scope:n,children:r,...l}=t,u=(null==n?void 0:n[e][i])||o,s=a.useMemo((()=>l),Object.values(l));return a.createElement(u.Provider,{value:s},r)}return n=[...n,r],l.displayName=t+"Provider",[l,function(n,l){const u=(null==l?void 0:l[e][i])||o,s=a.useContext(u);if(s)return s;if(void 0!==r)return r;throw new Error(`\`${n}\` must be used within \`${t}\``)}]},Ro(r,...t)]}function Ro(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map((e=>({useScope:e(),scopeName:e.scopeName})));return function(e){const r=n.reduce(((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]})),{});return a.useMemo((()=>({[`__scope${t.scopeName}`]:r})),[r])}};return n.scopeName=t.scopeName,n}function jo(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(null==e||e(r),!1===n||!r.defaultPrevented)return null==t?void 0:t(r)}}const[Ao,Lo]=Bo(),[Io,Do]=Ho(),[No,Mo]=Bo(),[zo,Fo]=Ho(),$o=a.forwardRef(((e,t)=>{const n=0===Do(),r=a.createElement(Uo,we({},e,{ref:t}));return n?a.createElement(Ao,null,a.createElement(No,null,r)):r})),Uo=a.forwardRef(((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:l,onDismiss:u,...s}=e,c=Lo(),f=Do()+1,d=f===c,h=Mo(n),p=Fo()+(n?1:0),g=p<h;(function({disabled:e}){const t=a.useRef(!1),n=a.useRef(!1);a.useEffect((()=>{const e=e=>{const r="mouse"===e.pointerType;t.current=!r,n.current=r&&0===e.button},r=()=>{t.current=!1,n.current=!1};return document.addEventListener("pointerdown",e),document.addEventListener("pointerup",r),()=>{document.removeEventListener("pointerdown",e),document.removeEventListener("pointerup",r)}}),[]),ro((()=>{if(e){function r(){Oo--,0===Oo&&(document.body.style.pointerEvents=Co)}return 0===Oo&&(Co=document.body.style.pointerEvents),document.body.style.pointerEvents="none",Oo++,()=>{t.current?document.addEventListener("click",r,{once:!0}):n.current?document.addEventListener("pointerup",r,{once:!0}):r()}}}),[e])})({disabled:n}),ko((e=>{d&&(null==r||r(e),e.defaultPrevented||null==u||u())}));const{onPointerDownCapture:v}=function(e){const t=vo((e=>{g||(null==o||o(e),null==l||l(e),e.defaultPrevented||null==u||u())})),n=a.useRef(!1);return a.useEffect((()=>{const e=e=>{const r=e.target;if(r&&!n.current){const n=new CustomEvent("dismissableLayer.pointerDownOutside",{bubbles:!1,cancelable:!0,detail:{originalEvent:e}});r.addEventListener("dismissableLayer.pointerDownOutside",t,{once:!0}),r.dispatchEvent(n)}n.current=!1},r=window.setTimeout((()=>{document.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(r),document.removeEventListener("pointerdown",e)}}),[t]),{onPointerDownCapture:()=>n.current=!0}}(),{onBlurCapture:m,onFocusCapture:y}=function(e){const t=vo((e=>{null==i||i(e),null==l||l(e),e.defaultPrevented||null==u||u()})),n=a.useRef(!1);return a.useEffect((()=>{const e=e=>{const r=e.target;if(r&&!n.current){const n=new CustomEvent("dismissableLayer.focusOutside",{bubbles:!1,cancelable:!0,detail:{originalEvent:e}});r.addEventListener("dismissableLayer.focusOutside",t,{once:!0}),r.dispatchEvent(n)}};return document.addEventListener("focusin",e),()=>document.removeEventListener("focusin",e)}),[t]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}(),b=h>0&&!g;return a.createElement(Io,{runningCount:f},a.createElement(zo,{runningCount:p},a.createElement(ho.div,we({},s,{ref:t,style:{pointerEvents:b?"auto":void 0,...s.style},onPointerDownCapture:jo(e.onPointerDownCapture,v),onBlurCapture:jo(e.onBlurCapture,m),onFocusCapture:jo(e.onFocusCapture,y)}))))}));function Bo(e){const[t,n]=Po("TotalLayerCount",{total:0,onTotalIncrease:()=>{},onTotalDecrease:()=>{}});return[({children:e})=>{const[n,r]=a.useState(0);return a.createElement(t,{total:n,onTotalIncrease:a.useCallback((()=>r((e=>e+1))),[]),onTotalDecrease:a.useCallback((()=>r((e=>e-1))),[])},e)},function(e=!0){const{total:t,onTotalIncrease:r,onTotalDecrease:o}=n("TotalLayerCountConsumer");return a.useLayoutEffect((()=>{if(e)return r(),()=>o()}),[e,r,o]),t}]}function Ho(e){const[t,n]=Po("RunningLayerCount",{count:0});return[e=>{const{children:n,runningCount:r}=e;return a.createElement(t,{count:r},n)},function(){return n("RunningLayerCountConsumer").count||0}]}const Wo=a.forwardRef(((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return a.createElement(ho.svg,we({},i,{ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?n:a.createElement("polygon",{points:"0,0 30,0 15,10"}))}));function Vo(e){const[t,n]=a.useState(void 0);return a.useEffect((()=>{if(e){const t=new ResizeObserver((t=>{if(!Array.isArray(t))return;if(!t.length)return;const r=t[0];let o,i;if("borderBoxSize"in r){const e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;o=t.inlineSize,i=t.blockSize}else{const t=e.getBoundingClientRect();o=t.width,i=t.height}n({width:o,height:i})}));return t.observe(e,{box:"border-box"}),()=>{n(void 0),t.unobserve(e)}}}),[e]),t}let qo;const Ko=new Map;function Xo(){const e=[];Ko.forEach(((t,n)=>{const r=n.getBoundingClientRect();var o,i;i=r,((o=t.rect).width!==i.width||o.height!==i.height||o.top!==i.top||o.right!==i.right||o.bottom!==i.bottom||o.left!==i.left)&&(t.rect=r,e.push(t))})),e.forEach((e=>{e.callbacks.forEach((t=>t(e.rect)))})),qo=requestAnimationFrame(Xo)}function Go(e,t,n){const r=e["x"===n?"left":"top"],o="x"===n?"width":"height",i=e[o],a=t[o];return{before:r-a,start:r,center:r+(i-a)/2,end:r+i-a,after:r+i}}function Yo(e){return{position:"absolute",top:0,left:0,minWidth:"max-content",willChange:"transform",transform:`translate3d(${Math.round(e.x+window.scrollX)}px, ${Math.round(e.y+window.scrollY)}px, 0)`}}function Qo(e,t,n,r,o){const i="top"===t||"bottom"===t,a=o?o.width:0,l=o?o.height:0,u=a/2+r;let s="",c="";return i?(s={start:`${u}px`,center:"center",end:e.width-u+"px"}[n],c="top"===t?`${e.height+l}px`:-l+"px"):(s="left"===t?`${e.width+l}px`:-l+"px",c={start:`${u}px`,center:"center",end:e.height-u+"px"}[n]),`${s} ${c}`}const Zo={position:"fixed",top:0,left:0,opacity:0,transform:"translate3d(0, -200%, 0)"},Jo={position:"absolute",opacity:0};function ei({popperSize:e,arrowSize:t,arrowOffset:n,side:r,align:o}){const i=(e.width-t.width)/2,a=(e.height-t.width)/2,l={top:0,right:90,bottom:180,left:-90}[r],u=Math.max(t.width,t.height),s={width:`${u}px`,height:`${u}px`,transform:`rotate(${l}deg)`,willChange:"transform",position:"absolute",[r]:"100%",direction:ti(r,o)};return"top"!==r&&"bottom"!==r||("start"===o&&(s.left=`${n}px`),"center"===o&&(s.left=`${i}px`),"end"===o&&(s.right=`${n}px`)),"left"!==r&&"right"!==r||("start"===o&&(s.top=`${n}px`),"center"===o&&(s.top=`${a}px`),"end"===o&&(s.bottom=`${n}px`)),s}function ti(e,t){return("top"!==e&&"right"!==e||"end"!==t)&&("bottom"!==e&&"left"!==e||"end"===t)?"ltr":"rtl"}function ni(e){return{top:"bottom",right:"left",bottom:"top",left:"right"}[e]}function ri(e,t){return{top:e.top<t.top,right:e.right>t.right,bottom:e.bottom>t.bottom,left:e.left<t.left}}const[oi,ii]=To("Popper"),[ai,li]=oi("Popper"),ui=a.forwardRef(((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=li("PopperAnchor",n),l=a.useRef(null),u=be(t,l);return a.useEffect((()=>{i.onAnchorChange((null==r?void 0:r.current)||l.current)})),r?null:a.createElement(ho.div,we({},o,{ref:u}))})),[si,ci]=oi("PopperContent"),fi=a.forwardRef(((e,t)=>{const{__scopePopper:n,side:r="bottom",sideOffset:o,align:i="center",alignOffset:l,collisionTolerance:u,avoidCollisions:s=!0,...c}=e,f=li("PopperContent",n),[d,h]=a.useState(),p=function(e){const[t,n]=a.useState();return a.useEffect((()=>{if(e){const t=function(e,t){const n=Ko.get(e);return void 0===n?(Ko.set(e,{rect:{},callbacks:[t]}),1===Ko.size&&(qo=requestAnimationFrame(Xo))):(n.callbacks.push(t),t(e.getBoundingClientRect())),()=>{const n=Ko.get(e);if(void 0===n)return;const r=n.callbacks.indexOf(t);r>-1&&n.callbacks.splice(r,1),0===n.callbacks.length&&(Ko.delete(e),0===Ko.size&&cancelAnimationFrame(qo))}}(e,n);return()=>{n(void 0),t()}}}),[e]),t}(f.anchor),[g,v]=a.useState(null),m=Vo(g),[y,b]=a.useState(null),w=Vo(y),_=be(t,(e=>v(e))),x=function(){const[e,t]=a.useState(void 0);return a.useEffect((()=>{let e;function n(){t({width:window.innerWidth,height:window.innerHeight})}function r(){window.clearTimeout(e),e=window.setTimeout(n,100)}return n(),window.addEventListener("resize",r),()=>window.removeEventListener("resize",r)}),[]),e}(),E=x?DOMRect.fromRect({...x,x:0,y:0}):void 0,{popperStyles:S,arrowStyles:k,placedSide:C,placedAlign:O}=function({anchorRect:e,popperSize:t,arrowSize:n,arrowOffset:r=0,side:o,sideOffset:i=0,align:a,alignOffset:l=0,shouldAvoidCollisions:u=!0,collisionBoundariesRect:s,collisionTolerance:c=0}){if(!e||!t||!s)return{popperStyles:Zo,arrowStyles:Jo};const f=function(e,t,n=0,r=0,o){const i=o?o.height:0,a=Go(t,e,"x"),l=Go(t,e,"y"),u=l.before-n-i,s=l.after+n+i,c=a.before-n-i,f=a.after+n+i;return{top:{start:{x:a.start+r,y:u},center:{x:a.center,y:u},end:{x:a.end-r,y:u}},right:{start:{x:f,y:l.start+r},center:{x:f,y:l.center},end:{x:f,y:l.end-r}},bottom:{start:{x:a.start+r,y:s},center:{x:a.center,y:s},end:{x:a.end-r,y:s}},left:{start:{x:c,y:l.start+r},center:{x:c,y:l.center},end:{x:c,y:l.end-r}}}}(t,e,i,l,n),d=f[o][a];if(!1===u){const e=Yo(d);let i=Jo;return n&&(i=ei({popperSize:t,arrowSize:n,arrowOffset:r,side:o,align:a})),{popperStyles:{...e,"--radix-popper-transform-origin":Qo(t,o,a,r,n)},arrowStyles:i,placedSide:o,placedAlign:a}}const h=DOMRect.fromRect({...t,...d}),p=(g=s,v=c,DOMRect.fromRect({width:g.width-2*v,height:g.height-2*v,x:g.left+v,y:g.top+v}));var g,v;const m=ri(h,p),y=f[ni(o)][a],b=function(e,t,n){const r=ni(e);return t[e]&&!n[r]?r:e}(o,m,ri(DOMRect.fromRect({...t,...y}),p)),w=function(e,t,n,r,o){const i="top"===n||"bottom"===n,a=i?"left":"top",l=i?"right":"bottom",u=i?"width":"height",s=t[u]>e[u];return"start"!==r&&"center"!==r||!(o[a]&&s||o[l]&&!s)?"end"!==r&&"center"!==r||!(o[l]&&s||o[a]&&!s)?r:"start":"end"}(t,e,o,a,m),_=Yo(f[b][w]);let x=Jo;return n&&(x=ei({popperSize:t,arrowSize:n,arrowOffset:r,side:b,align:w})),{popperStyles:{..._,"--radix-popper-transform-origin":Qo(t,b,w,r,n)},arrowStyles:x,placedSide:b,placedAlign:w}}({anchorRect:p,popperSize:m,arrowSize:w,arrowOffset:d,side:r,sideOffset:o,align:i,alignOffset:l,shouldAvoidCollisions:s,collisionBoundariesRect:E,collisionTolerance:u}),P=void 0!==C;return a.createElement("div",{style:S,"data-radix-popper-content-wrapper":""},a.createElement(si,{scope:n,arrowStyles:k,onArrowChange:b,onArrowOffsetChange:h},a.createElement(ho.div,we({"data-side":C,"data-align":O},c,{style:{...c.style,animation:P?void 0:"none"},ref:_}))))})),di=a.forwardRef((function(e,t){const{__scopePopper:n,offset:r,...o}=e,i=ci("PopperArrow",n),{onArrowOffsetChange:l}=i;return a.useEffect((()=>l(r)),[l,r]),a.createElement("span",{style:{...i.arrowStyles,pointerEvents:"none"}},a.createElement("span",{ref:i.onArrowChange,style:{display:"inline-block",verticalAlign:"top",pointerEvents:"auto"}},a.createElement(Wo,we({},o,{ref:t,style:{...o.style,display:"block"}}))))})),hi=e=>{const{__scopePopper:t,children:n}=e,[r,o]=a.useState(null);return a.createElement(ai,{scope:t,anchor:r,onAnchorChange:o},n)},pi=ui,gi=fi,vi=di;function mi({prop:e,defaultProp:t,onChange:n=(()=>{})}){const[r,o]=function({defaultProp:e,onChange:t}){const n=a.useState(e),[r]=n,o=a.useRef(r),i=vo(t);return a.useEffect((()=>{o.current!==r&&(i(r),o.current=r)}),[r,o,i]),n}({defaultProp:t,onChange:n}),i=void 0!==e,l=i?e:r,u=vo(n);return[l,a.useCallback((t=>{if(i){const n=t,r="function"==typeof t?n(e):t;r!==e&&u(r)}else o(t)}),[i,e,o,u])]}const[yi,bi]=To("Popover",[ii]),wi=ii(),[_i,xi]=yi("Popover"),Ei=a.forwardRef(((e,t)=>{const{__scopePopover:n,...r}=e,o=xi("PopoverAnchor",n),i=wi(n),{onCustomAnchorAdd:l,onCustomAnchorRemove:u}=o;return a.useEffect((()=>(l(),()=>u())),[l,u]),a.createElement(pi,we({},i,r,{ref:t}))})),Si=a.forwardRef(((e,t)=>{const{forceMount:n,...r}=e,o=xi("PopoverContent",e.__scopePopover);return a.createElement(lo,{present:n||o.open},o.modal?a.createElement(ki,we({},r,{ref:t})):a.createElement(Ci,we({},r,{ref:t})))})),ki=a.forwardRef(((e,t)=>{const{allowPinchZoom:n,portalled:r=!0,...o}=e,i=xi("PopoverContent",e.__scopePopover),l=a.useRef(null),u=be(t,l),s=a.useRef(!1);a.useEffect((()=>{const e=l.current;if(e)return Er(e)}),[]);const c=r?go:a.Fragment;return a.createElement(c,null,a.createElement(no,{allowPinchZoom:n},a.createElement(Oi,we({},o,{ref:u,trapFocus:i.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:jo(e.onCloseAutoFocus,(e=>{var t;e.preventDefault(),s.current||null===(t=i.triggerRef.current)||void 0===t||t.focus()})),onPointerDownOutside:jo(e.onPointerDownOutside,(e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;s.current=r}),{checkForDefaultPrevented:!1}),onFocusOutside:jo(e.onFocusOutside,(e=>e.preventDefault()),{checkForDefaultPrevented:!1})}))))})),Ci=a.forwardRef(((e,t)=>{const{portalled:n=!0,...r}=e,o=xi("PopoverContent",e.__scopePopover),i=a.useRef(!1),l=n?go:a.Fragment;return a.createElement(l,null,a.createElement(Oi,we({},r,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var n,r;null===(n=e.onCloseAutoFocus)||void 0===n||n.call(e,t),t.defaultPrevented||(i.current||null===(r=o.triggerRef.current)||void 0===r||r.focus(),t.preventDefault()),i.current=!1},onInteractOutside:t=>{var n,r;null===(n=e.onInteractOutside)||void 0===n||n.call(e,t),t.defaultPrevented||(i.current=!0);const a=t.target;(null===(r=o.triggerRef.current)||void 0===r?void 0:r.contains(a))&&t.preventDefault()}})))})),Oi=a.forwardRef(((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,disableOutsidePointerEvents:l,onEscapeKeyDown:u,onPointerDownOutside:s,onFocusOutside:c,onInteractOutside:f,...d}=e,h=xi("PopoverContent",n),p=wi(n);return co(),a.createElement(yo,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i},a.createElement($o,{asChild:!0,disableOutsidePointerEvents:l,onInteractOutside:f,onEscapeKeyDown:u,onPointerDownOutside:s,onFocusOutside:c,onDismiss:()=>h.onOpenChange(!1)},a.createElement(gi,we({"data-state":Pi(h.open),role:"dialog",id:h.contentId},p,d,{ref:t,style:{...d.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)"}}))))}));function Pi(e){return e?"open":"closed"}const Ti=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:l=!1}=e,u=wi(t),s=a.useRef(null),[c,f]=a.useState(!1),[d=!1,h]=mi({prop:r,defaultProp:o,onChange:i});return a.createElement(hi,u,a.createElement(_i,{scope:t,contentId:ao(),triggerRef:s,open:d,onOpenChange:h,onOpenToggle:a.useCallback((()=>h((e=>!e))),[h]),hasCustomAnchor:c,onCustomAnchorAdd:a.useCallback((()=>f(!0)),[]),onCustomAnchorRemove:a.useCallback((()=>f(!1)),[]),modal:l},n))},Ri=Ei,ji=Si,Ai=a.forwardRef(((e,t)=>{const{__scopePopover:n,...r}=e,o=wi(n);return a.createElement(vi,we({},o,r,{ref:t}))}));function Li(e){var t=ce(Ri,{position:"absolute",left:e.xAnchorCoordinate,top:e.yAnchorCoordinate}),n=ce(Ai,{fill:"$grayBase"});return(0,Le.jsxs)(Ti,{defaultOpen:!0,modal:!0,children:[(0,Le.jsx)(t,{}),(0,Le.jsxs)(ji,{onOpenAutoFocus:function(t){e.preventAutoFocus&&t.preventDefault()},children:[e.children,(0,Le.jsx)(n,{})]})]})}function Ii(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=Di(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}function Di(e,t){if(e){if("string"==typeof e)return Ni(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ni(e,t):void 0}}function Ni(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Mi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function zi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Mi(Object(n),!0).forEach((function(t){Fi(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Fi(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var $i,Ui=["INPUT","TEXTAREA"];!function(e){e[e.SET_KEY_DOWN=0]="SET_KEY_DOWN",e[e.SET_KEY_UP=1]="SET_KEY_UP"}($i||($i={}));var Bi,Hi=function(e,t){switch(t.type){case $i.SET_KEY_DOWN:return zi(zi({},e),{},Fi({},t.key,!0));case $i.SET_KEY_UP:return zi(zi({},e),{},Fi({},t.key,!1));default:return e}},Wi=function(e){var t,n,r=(0,a.useMemo)((function(){var t={};return e.forEach((function(e){e.shortcutKeys.forEach((function(e){e.split("|").forEach((function(e){t[e.toLowerCase()]=!1}))}))})),t}),[e]),o=(t=(0,a.useReducer)(Hi,r),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}}(t,n)||Di(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],l=o[1],u=(0,a.useCallback)((function(t,n){var r=!1;return e.forEach((function(e){if(!n||e.ignoreDisabledTargets){var o=zi({},t),i=e.shortcutKeys.every((function(e){var t,n=Ii(e.split("|"));try{for(n.s();!(t=n.n()).done;){var r=t.value;if(o[r])return delete o[r],!0}}catch(e){n.e(e)}finally{n.f()}return!1}));i&&!Object.values(o).some((function(e){return e}))&&(e.callback(),r=!0,e.shortcutKeys.forEach((function(t,n){if(!(0===n&&e.shortcutKeys.length>1)){var r,o=Ii(t.split("|"));try{for(o.s();!(r=o.n()).done;){var i=r.value;l({type:$i.SET_KEY_UP,key:i})}}catch(e){o.e(e)}finally{o.f()}}})))}})),r}),[e]),s=(0,a.useCallback)((function(e){var t=e.target;if(e.key){var n=e.key.toLowerCase();void 0!==i[n]&&(!1===i[n]&&l({type:$i.SET_KEY_DOWN,key:n}),u(zi(zi({},i),{},Fi({},n,!0)),Ui.includes(t.tagName))&&e.preventDefault())}}),[u,i]),c=(0,a.useCallback)((function(e){if(e.key){var t=e.key.toLowerCase();void 0!==i[t]&&!0===i[t]&&setTimeout((function(){return l({type:$i.SET_KEY_UP,key:t})}),800)}}),[i]);(0,a.useEffect)((function(){if("undefined"!=typeof window)return window.addEventListener("keydown",s,!0),function(){return window.removeEventListener("keydown",s,!0)}}),[s]),(0,a.useEffect)((function(){if("undefined"!=typeof window)return window.addEventListener("keyup",c,!0),function(){return window.removeEventListener("keyup",c,!0)}}),[c])};function Vi(e){return(0,Le.jsxs)("svg",{width:e.size,height:e.size,viewBox:"0 0 ".concat(e.size," ").concat(e.size),fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,Le.jsx)("path",{d:"M14.7199 2.74244C15.152 2.32902 15.8353 2.33658 16.2581 2.75945L20.7394 7.24074C21.1623 7.66361 21.1699 8.34686 20.7564 8.77898L11.7989 18.1418C11.3723 18.5876 10.6625 18.5955 10.2262 18.1592L7.78297 15.7159L5.33972 13.2727C4.90341 12.8364 4.91126 12.1266 5.35711 11.7L14.7199 2.74244Z",stroke:e.strokeColor,strokeWidth:"1"}),(0,Le.jsx)("path",{d:"M5.09048 13.3025C5.09501 13.2734 5.10425 13.26 5.11136 13.252C5.12081 13.2414 5.13656 13.2299 5.15827 13.2228C5.17998 13.2157 5.19948 13.2157 5.2134 13.2187C5.22386 13.221 5.23917 13.2263 5.26 13.2471L10.2542 18.2413C10.275 18.2621 10.2803 18.2775 10.2826 18.2879C10.2856 18.3018 10.2856 18.3213 10.2785 18.3431C10.2714 18.3648 10.2599 18.3805 10.2493 18.39C10.2413 18.3971 10.228 18.4063 10.1989 18.4108L5.94449 19.074C5.91295 19.0789 5.88095 19.0684 5.85838 19.0459L4.45545 17.6429C4.43288 17.6204 4.42244 17.5884 4.42736 17.5568L5.09048 13.3025Z",stroke:e.strokeColor,strokeWidth:"1"}),(0,Le.jsx)("path",{d:"M4.31512 17.8822C4.39323 17.8041 4.51986 17.8041 4.59796 17.8822L5.6157 18.8999C5.69381 18.978 5.69381 19.1046 5.6157 19.1827L4.37041 20.428C4.29231 20.5061 4.16568 20.5061 4.08757 20.428L3.06983 19.4103C2.99173 19.3322 2.99173 19.2056 3.06983 19.1275L4.31512 17.8822Z",stroke:e.strokeColor,strokeWidth:"1"})]})}function qi(e){return(0,Le.jsxs)("svg",{width:e.size,height:e.size,viewBox:"0 0 ".concat(e.size," ").concat(e.size),fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,Le.jsx)("path",{d:"M3 8C3 6.11438 3 5.17157 3.58579 4.58579C4.17157 4 5.11438 4 7 4H17C18.8856 4 19.8284 4 20.4142 4.58579C21 5.17157 21 6.11438 21 8V15C21 16.8856 21 17.8284 20.4142 18.4142C19.8284 19 18.8856 19 17 19H8.44521C7.83771 19 7.53395 19 7.25198 19.0849C7.12378 19.1235 6.99978 19.1748 6.88184 19.2382C6.62244 19.3776 6.40765 19.5923 5.97808 20.0219V20.0219C4.90967 21.0903 4.37546 21.6245 3.90841 21.5816C3.70708 21.5631 3.51609 21.484 3.36063 21.3547C3 21.0548 3 20.2993 3 18.7884V8Z",stroke:e.strokeColor,strokeLinejoin:"round"}),(0,Le.jsx)("ellipse",{cx:"9",cy:"11.5",rx:"1.5",ry:"1.5",fill:e.strokeColor}),(0,Le.jsx)("ellipse",{cx:"15",cy:"11.5",rx:"1.5",ry:"1.5",fill:e.strokeColor})]})}function Ki(e){return(0,Le.jsx)("svg",{width:e.size,height:e.size,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Le.jsx)("path",{d:"M11.6663 8.33333L11.4163 14.1667M8.58301 14.1667L8.33301 8.33333M4.99967 5L5.70854 15.633C5.77858 16.6836 6.65119 17.5 7.70411 17.5H12.2952C13.3482 17.5 14.2208 16.6836 14.2908 15.633L14.9997 5M4.99967 5H7.49967M4.99967 5H3.33301M14.9997 5H16.6663M14.9997 5H12.4997M12.4997 5V4.5C12.4997 3.39543 11.6042 2.5 10.4997 2.5H9.49967C8.3951 2.5 7.49967 3.39543 7.49967 4.5V5M12.4997 5H7.49967",stroke:e.strokeColor,strokeWidth:"1",strokeLinecap:"round",strokeLinejoin:"round"})})}function Xi(){return navigator.userAgent.includes("Android")}function Gi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Yi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Gi(Object(n),!0).forEach((function(t){Qi(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Qi(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Zi(e){return e.isTouchscreenDevice?(0,Le.jsx)(De,{css:{width:"100%",maxWidth:"240px",height:"48px",position:"fixed",background:"$grayBg",borderRadius:"4px",border:"1px solid $grayBorder",boxShadow:"0px 0px 9px -2px rgba(32, 31, 29, 0.09), 0px 7px 12px rgba(32, 31, 29, 0.07)",bottom:"calc(38px + env(safe-area-inset-bottom, 40px))","@smDown":{maxWidth:"80%",bottom:"calc(28px + ".concat(Xi()?30:0,"px + env(safe-area-inset-bottom, 40px))")}},children:(0,Le.jsx)(Ji,Yi({},e))}):(0,Le.jsx)(Li,{xAnchorCoordinate:e.anchorCoordinates.pageX,yAnchorCoordinate:e.anchorCoordinates.pageY,preventAutoFocus:!1,children:(0,Le.jsx)(Ji,Yi({},e))})}function Ji(e){var t;Wi((t=function(t){switch(t){case"createHighlight":e.handleButtonClick("create");break;case"openNoteModal":e.handleButtonClick("comment")}},[{shortcutKeys:["shift","h"],actionDescription:"Highlight selected text",shortcutKeyDescription:"shift + h",callback:function(){return t("createHighlight")}},{shortcutKeys:["shift","c"],actionDescription:"Annotate selected text",shortcutKeyDescription:"shift + c",callback:function(){return setTimeout((function(){return t("openNoteModal")}),0)}}]));var n=ce("div",{width:"1px",maxWidth:"1px",height:"100%",background:"$grayBorder"});return(0,Le.jsxs)(Fe,{distribution:"evenly",alignment:"center",css:{height:"100%",alignItems:"center",width:e.isTouchscreenDevice?"100%":"auto"},children:[e.isNewHighlight?(0,Le.jsx)(yr,{style:"plainIcon",title:"Create Highlight",onClick:function(){return e.handleButtonClick("create")},css:{flexDirection:"column",height:"100%",m:0,p:0,pt:"6px",alignItems:"baseline"},children:(0,Le.jsxs)(Fe,{css:{height:"100%",alignItems:"center"},children:[(0,Le.jsx)(Vi,{size:28,strokeColor:fe.colors.readerFont.toString()}),(0,Le.jsx)(Wn,{style:"body",css:{pb:"4px",pl:"12px",m:"0px",color:"$readerFont",fontWeight:"400",fontSize:"16px"},children:"Highlight"})]})}):(0,Le.jsx)(yr,{style:"plainIcon",title:"Remove Highlight",onClick:function(){return e.handleButtonClick("delete")},css:{color:"$readerFont",height:"100%",m:0,p:0,pt:"6px"},children:(0,Le.jsx)(Ki,{size:28,strokeColor:fe.colors.readerFont.toString()})}),(0,Le.jsx)(n,{}),(0,Le.jsx)(yr,{style:"plainIcon",title:"Add Note to Highlight",onClick:function(){return e.handleButtonClick("comment")},css:{color:"$readerFont",height:"100%",m:0,p:0,pt:"6px"},children:(0,Le.jsx)(qi,{size:28,strokeColor:fe.colors.readerFont.toString()})})]})}function ea(e,t){e.forEach((function(e){var t,n=(t=e,Array.from(document.querySelectorAll("[".concat(Xn,"='").concat(t,"']")))),r=function(e){return Array.from(document.querySelectorAll("[".concat(Gn,"='").concat(e,"']")))}(e);r.forEach((function(e){e.remove()})),n.forEach((function(e){if("IMG"===e.nodeName)e.classList.remove("highlight-image");else if(e.childNodes){for(;e.hasChildNodes();){var t=e.firstChild;if(t){if(e.removeChild(t),!e.parentNode)throw new Error("highlight span has no parent node");e.parentNode.insertBefore(t,e.nextSibling)}}e.remove()}else{var n,r=document.createTextNode(e.textContent||"");null===(n=e.parentElement)||void 0===n||n.replaceChild(r,e)}}))}))}var ta=new Uint8Array(16);function na(){if(!Bi&&!(Bi="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Bi(ta)}const ra=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,oa=function(e){return"string"==typeof e&&ra.test(e)};for(var ia=[],aa=0;aa<256;++aa)ia.push((aa+256).toString(16).substr(1));const la=function(e,t,n){var r=(e=e||{}).random||(e.rng||na)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var o=0;o<16;++o)t[n+o]=r[o];return t}return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(ia[e[t+0]]+ia[e[t+1]]+ia[e[t+2]]+ia[e[t+3]]+"-"+ia[e[t+4]]+ia[e[t+5]]+"-"+ia[e[t+6]]+ia[e[t+7]]+"-"+ia[e[t+8]]+ia[e[t+9]]+"-"+ia[e[t+10]]+ia[e[t+11]]+ia[e[t+12]]+ia[e[t+13]]+ia[e[t+14]]+ia[e[t+15]]).toLowerCase();if(!oa(n))throw TypeError("Stringified UUID is invalid");return n}(r)};let ua=(e=21)=>{let t="",n=crypto.getRandomValues(new Uint8Array(e));for(;e--;){let r=63&n[e];t+=r<36?r.toString(36):r<62?(r-26).toString(36).toUpperCase():r<63?"_":"-"}return t};function sa(e){var t=e.startContainer.nodeValue,n=e.endContainer.nodeValue,r=fa(e.startOffset,!1,t),o=fa(e.endOffset,!0,n);try{e.setStart(e.startContainer,r),e.setEnd(e.endContainer,o)}catch(e){console.warn("Unable to snap selection to the next word")}}var ca=function(e){return!!e&&/\s/.test(e)};function fa(e,t,n){if(!n)return e;var r=n.split(""),o=e;if(t){if(ca(r[o-1]))return o-1;for(;o<n.length;){if(ca(r[o]))return o;o++}}else{if(ca(r[o]))return o+1;for(;o>0;){if(ca(r[o-1]))return o;o--}}return o}function da(e){return function(e){if(Array.isArray(e))return ha(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 ha(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ha(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ha(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function pa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ga(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pa(Object(n),!0).forEach((function(t){va(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pa(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function va(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ma(e,t,n,r,o,i,a){try{var l=e[i](a),u=l.value}catch(e){return void n(e)}l.done?t(u):Promise.resolve(u).then(r,o)}function ya(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){ma(i,r,o,a,l,"next",e)}function l(e){ma(i,r,o,a,l,"throw",e)}a(void 0)}))}}function ba(e,t){return wa.apply(this,arguments)}function wa(){return(wa=ya(regeneratorRuntime.mark((function e(t,n){var r,o,i,a,l,u,s,c,f,d,h,p;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.selection.selection){e.next=2;break}return e.abrupt("return",{});case 2:if(r=t.selection.overlapHighlights.length>0,o=t.selection,i=o.range,a=o.selection,sa(i),l=la(),u=nr(i),cr(u)){e.next=9;break}return e.abrupt("return",{errorMessage:"Highlight is too long"});case 9:if(a.isCollapsed||a.collapseToStart(),s=[],t.annotation&&s.push(t.annotation),r&&(t.selection.overlapHighlights.forEach((function(e){var n=t.existingHighlights.find((function(t){return t.id===e})),r=null==n?void 0:n.annotation;r&&s.push(r)})),ea(t.selection.overlapHighlights,t.highlightStartEndOffsets)),c=tr(u,l,s.length>0),f={prefix:c.prefix,suffix:c.suffix,quote:c.quote,id:l,shortId:ua(8),patch:u,annotation:s.length>0?s.join("\n"):void 0,articleId:t.articleId},h=t.existingHighlights,!r){e.next=23;break}return e.next=19,n.mergeHighlightMutation(ga(ga({},f),{},{overlapHighlightIdList:t.selection.overlapHighlights}));case 19:d=e.sent,h=t.existingHighlights.filter((function(e){return!t.selection.overlapHighlights.includes(e.id)})),e.next=26;break;case 23:return e.next=25,n.createHighlightMutation(f);case 25:d=e.sent;case 26:if(!d){e.next=31;break}return p=[].concat(da(h),[d]),e.abrupt("return",{highlights:p,newHighlightIndex:p.length>0?p.length-1:void 0});case 31:return e.abrupt("return",{highlights:t.existingHighlights,errorMessage:"Could not create highlight"});case 32:case"end":return e.stop()}}),e)})))).apply(this,arguments)}const _a=["a","button","div","h2","h3","img","li","nav","ol","p","span","svg","ul"].reduce(((e,t)=>({...e,[t]:a.forwardRef(((e,n)=>{const{asChild:r,...o}=e,i=r?_e:t;return a.useEffect((()=>{window[Symbol.for("radix-ui")]=!0}),[]),a.createElement(i,we({},o,{ref:n}))}))})),{}),xa=e=>{const{present:t,children:n}=e,r=function(e){const[t,n]=a.useState(),r=a.useRef({}),o=a.useRef(e),i=a.useRef("none"),l=e?"mounted":"unmounted",[u,s]=function(e,t){return a.useReducer(((e,n)=>{const r=t[e][n];return null!=r?r:e}),e)}(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return a.useEffect((()=>{const e=Ea(r.current);i.current="mounted"===u?e:"none"}),[u]),ro((()=>{const t=r.current,n=o.current;if(n!==e){const r=i.current,a=Ea(t);if(e)s("MOUNT");else if("none"===a||"none"===(null==t?void 0:t.display))s("UNMOUNT");else{const e=r!==a;s(n&&e?"ANIMATION_OUT":"UNMOUNT")}o.current=e}}),[e,s]),ro((()=>{if(t){const e=e=>{const n=Ea(r.current).includes(e.animationName);e.target===t&&n&&s("ANIMATION_END")},n=e=>{e.target===t&&(i.current=Ea(r.current))};return t.addEventListener("animationstart",n),t.addEventListener("animationcancel",e),t.addEventListener("animationend",e),()=>{t.removeEventListener("animationstart",n),t.removeEventListener("animationcancel",e),t.removeEventListener("animationend",e)}}s("ANIMATION_END")}),[t,s]),{isPresent:["mounted","unmountSuspended"].includes(u),ref:a.useCallback((e=>{e&&(r.current=getComputedStyle(e)),n(e)}),[])}}(t),o="function"==typeof n?n({present:r.isPresent}):a.Children.only(n),i=be(r.ref,o.ref);return"function"==typeof n||r.isPresent?a.cloneElement(o,{ref:i}):null};function Ea(e){return(null==e?void 0:e.animationName)||"none"}xa.displayName="Presence";const Sa={bubbles:!1,cancelable:!0},ka=a.forwardRef(((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...l}=e,[u,s]=a.useState(null),c=vo(o),f=vo(i),d=a.useRef(null),h=be(t,(e=>s(e))),p=a.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;a.useEffect((()=>{if(r){function e(e){if(p.paused||!u)return;const t=e.target;u.contains(t)?d.current=t:Ta(d.current,{select:!0})}function t(e){!p.paused&&u&&(u.contains(e.relatedTarget)||Ta(d.current,{select:!0}))}return document.addEventListener("focusin",e),document.addEventListener("focusout",t),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t)}}}),[r,u,p.paused]),a.useEffect((()=>{if(u){Ra.add(p);const e=document.activeElement;if(!u.contains(e)){const t=new Event("focusScope.autoFocusOnMount",Sa);u.addEventListener("focusScope.autoFocusOnMount",c),u.dispatchEvent(t),t.defaultPrevented||(function(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Ta(r,{select:t}),document.activeElement!==n)return}(Ca(u).filter((e=>"A"!==e.tagName)),{select:!0}),document.activeElement===e&&Ta(u))}return()=>{u.removeEventListener("focusScope.autoFocusOnMount",c),setTimeout((()=>{const t=new Event("focusScope.autoFocusOnUnmount",Sa);u.addEventListener("focusScope.autoFocusOnUnmount",f),u.dispatchEvent(t),t.defaultPrevented||Ta(null!=e?e:document.body,{select:!0}),u.removeEventListener("focusScope.autoFocusOnUnmount",f),Ra.remove(p)}),0)}}}),[u,c,f,p]);const g=a.useCallback((e=>{if(!n&&!r)return;if(p.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){const t=e.currentTarget,[r,i]=function(e){const t=Ca(e);return[Oa(t,e),Oa(t.reverse(),e)]}(t);r&&i?e.shiftKey||o!==i?e.shiftKey&&o===r&&(e.preventDefault(),n&&Ta(i,{select:!0})):(e.preventDefault(),n&&Ta(r,{select:!0})):o===t&&e.preventDefault()}}),[n,r,p.paused]);return a.createElement(_a.div,we({tabIndex:-1},l,{ref:h,onKeyDown:g}))}));function Ca(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Oa(e,t){for(const n of e)if(!Pa(n,{upTo:t}))return n}function Pa(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function Ta(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&function(e){return e instanceof HTMLInputElement&&"select"in e}(e)&&t&&e.select()}}const Ra=function(){let e=[];return{add(t){const n=e[0];t!==n&&(null==n||n.pause()),e=ja(e,t),e.unshift(t)},remove(t){var n;e=ja(e,t),null===(n=e[0])||void 0===n||n.resume()}}}();function ja(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}let Aa,La=0;const Ia=a.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Da=a.forwardRef(((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:l,onDismiss:u,...s}=e,c=a.useContext(Ia),[f,d]=a.useState(null),[,h]=a.useState({}),p=be(t,(e=>d(e))),g=Array.from(c.layers),[v]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),m=g.indexOf(v),y=f?g.indexOf(f):-1,b=c.layersWithOutsidePointerEventsDisabled.size>0,w=y>=m,_=function(e){const t=vo((e=>{const t=e.target,n=[...c.branches].some((e=>e.contains(t)));w&&!n&&(null==o||o(e),null==l||l(e),e.defaultPrevented||null==u||u())})),n=a.useRef(!1);return a.useEffect((()=>{const e=e=>{e.target&&!n.current&&Ma("dismissableLayer.pointerDownOutside",t,{originalEvent:e}),n.current=!1},r=window.setTimeout((()=>{document.addEventListener("pointerdown",e)}),0);return()=>{window.clearTimeout(r),document.removeEventListener("pointerdown",e)}}),[t]),{onPointerDownCapture:()=>n.current=!0}}(),x=function(e){const t=vo((e=>{const t=e.target;[...c.branches].some((e=>e.contains(t)))||(null==i||i(e),null==l||l(e),e.defaultPrevented||null==u||u())})),n=a.useRef(!1);return a.useEffect((()=>{const e=e=>{e.target&&!n.current&&Ma("dismissableLayer.focusOutside",t,{originalEvent:e})};return document.addEventListener("focusin",e),()=>document.removeEventListener("focusin",e)}),[t]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}();return ko((e=>{y===c.layers.size-1&&(null==r||r(e),e.defaultPrevented||null==u||u())})),function({disabled:e}){const t=a.useRef(!1);ro((()=>{if(e){function n(){La--,0===La&&(document.body.style.pointerEvents=Aa)}function r(e){t.current="mouse"!==e.pointerType}return 0===La&&(Aa=document.body.style.pointerEvents),document.body.style.pointerEvents="none",La++,document.addEventListener("pointerup",r),()=>{t.current?document.addEventListener("click",n,{once:!0}):n(),document.removeEventListener("pointerup",r)}}}),[e])}({disabled:n}),a.useEffect((()=>{f&&(n&&c.layersWithOutsidePointerEventsDisabled.add(f),c.layers.add(f),Na())}),[f,n,c]),a.useEffect((()=>()=>{f&&(c.layers.delete(f),c.layersWithOutsidePointerEventsDisabled.delete(f),Na())}),[f,c]),a.useEffect((()=>{const e=()=>h({});return document.addEventListener("dismissableLayer.update",e),()=>document.removeEventListener("dismissableLayer.update",e)}),[]),a.createElement(_a.div,we({},s,{ref:p,style:{pointerEvents:b?w?"auto":"none":void 0,...e.style},onFocusCapture:jo(e.onFocusCapture,x.onFocusCapture),onBlurCapture:jo(e.onBlurCapture,x.onBlurCapture),onPointerDownCapture:jo(e.onPointerDownCapture,_.onPointerDownCapture)}))}));function Na(){const e=new Event("dismissableLayer.update");document.dispatchEvent(e)}function Ma(e,t,n){const r=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});return t&&r.addEventListener(e,t,{once:!0}),!r.dispatchEvent(o)}const za=l["useId".toString()]||(()=>{});let Fa=0;function $a(e){const[t,n]=a.useState(za());return ro((()=>{e||n((e=>null!=e?e:String(Fa++)))}),[e]),e||(t?`radix-${t}`:"")}const[Ua,Ba]=To("Dialog"),[Ha,Wa]=Ua("Dialog"),Va=a.forwardRef(((e,t)=>{const{forceMount:n,...r}=e,o=Wa("DialogOverlay",e.__scopeDialog);return o.modal?a.createElement(xa,{present:n||o.open},a.createElement(qa,we({},r,{ref:t}))):null})),qa=a.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,o=Wa("DialogOverlay",n);return a.createElement(no,{as:_e,allowPinchZoom:o.allowPinchZoom,shards:[o.contentRef]},a.createElement(_a.div,we({"data-state":Qa(o.open)},r,{ref:t,style:{pointerEvents:"auto",...r.style}})))})),Ka=a.forwardRef(((e,t)=>{const{forceMount:n,...r}=e,o=Wa("DialogContent",e.__scopeDialog);return a.createElement(xa,{present:n||o.open},o.modal?a.createElement(Xa,we({},r,{ref:t})):a.createElement(Ga,we({},r,{ref:t})))})),Xa=a.forwardRef(((e,t)=>{const n=Wa("DialogContent",e.__scopeDialog),r=a.useRef(null),o=be(t,n.contentRef,r);return a.useEffect((()=>{const e=r.current;if(e)return Er(e)}),[]),a.createElement(Ya,we({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:jo(e.onCloseAutoFocus,(e=>{var t;e.preventDefault(),null===(t=n.triggerRef.current)||void 0===t||t.focus()})),onPointerDownOutside:jo(e.onPointerDownOutside,(e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()})),onFocusOutside:jo(e.onFocusOutside,(e=>e.preventDefault()))}))})),Ga=a.forwardRef(((e,t)=>{const n=Wa("DialogContent",e.__scopeDialog),r=a.useRef(!1);return a.createElement(Ya,we({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var o,i;null===(o=e.onCloseAutoFocus)||void 0===o||o.call(e,t),t.defaultPrevented||(r.current||null===(i=n.triggerRef.current)||void 0===i||i.focus(),t.preventDefault()),r.current=!1},onInteractOutside:t=>{var o,i;null===(o=e.onInteractOutside)||void 0===o||o.call(e,t),t.defaultPrevented||(r.current=!0);const a=t.target;(null===(i=n.triggerRef.current)||void 0===i?void 0:i.contains(a))&&t.preventDefault()}}))})),Ya=a.forwardRef(((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,...l}=e,u=Wa("DialogContent",n),s=be(t,a.useRef(null));return co(),a.createElement(a.Fragment,null,a.createElement(ka,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i},a.createElement(Da,we({role:"dialog",id:u.contentId,"aria-describedby":u.descriptionId,"aria-labelledby":u.titleId,"data-state":Qa(u.open)},l,{ref:s,onDismiss:()=>u.onOpenChange(!1)}))),!1)}));function Qa(e){return e?"open":"closed"}const[Za,Ja]=Po("DialogTitleWarning",{contentName:"DialogContent",titleName:"DialogTitle",docsSlug:"dialog"}),el=Va,tl=Ka;var nl=ce((e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:l=!0,allowPinchZoom:u}=e,s=a.useRef(null),c=a.useRef(null),[f=!1,d]=mi({prop:r,defaultProp:o,onChange:i});return a.createElement(Ha,{scope:t,triggerRef:s,contentRef:c,contentId:$a(),titleId:$a(),descriptionId:$a(),open:f,onOpenChange:d,onOpenToggle:a.useCallback((()=>d((e=>!e))),[d]),modal:l,allowPinchZoom:u},n)}),{}),rl=he({"0%":{opacity:0},"100%":{opacity:1}}),ol=ce(el,{backgroundColor:"$overlay",position:"fixed",inset:0,"@media (prefers-reduced-motion: no-preference)":{animation:"".concat(rl," 150ms cubic-bezier(0.16, 1, 0.3, 1)")}}),il=he({"0%":{opacity:0,transform:"translate(-50%, -48%) scale(.96)"},"100%":{opacity:1,transform:"translate(-50%, -50%) scale(1)"}}),al=ce(tl,{backgroundColor:"$grayBg",borderRadius:6,boxShadow:"hsl(206 22% 7% / 35%) 0px 10px 38px -10px, hsl(206 22% 7% / 20%) 0px 10px 20px -15px",position:"fixed","&:focus":{outline:"none"}}),ll=ce(al,{top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:"90vw",maxWidth:"600px",maxHeight:"85vh",p:"$1","@media (prefers-reduced-motion: no-preference)":{animation:"".concat(il," 150ms cubic-bezier(0.16, 1, 0.3, 1)"),willChange:"transform"},"@smDown":{maxWidth:"95%",width:"95%"}});function ul(e){var t=(0,a.useMemo)((function(){return e.highlight.quote.split("\n")}),[e.highlight.quote]),n=ce(ze,{margin:"0px 0px 24px 0px",fontSize:"14px",lineHeight:"1.5",fontFamily:"Inter",color:"$omnivoreGray"});return(0,Le.jsxs)($e,{css:{width:"100%",bg:"$omnivoreYellow",p:"20px"},children:[(0,Le.jsxs)(n,{children:[e.highlight.prefix,(0,Le.jsx)(Ne,{css:{bg:"$highlight",p:"1px",borderRadius:"2px"},children:t.map((function(e,n){return(0,Le.jsxs)(a.Fragment,{children:[e,n!==t.length-1&&(0,Le.jsxs)(Le.Fragment,{children:[(0,Le.jsx)("br",{}),(0,Le.jsx)("br",{})]})]},n)}))}),e.highlight.suffix]}),(0,Le.jsxs)(De,{css:{},children:[e.author&&(0,Le.jsx)(Wn,{style:"highlightAuthor",children:e.author}),(0,Le.jsx)(Wn,{style:"highlightTitle",children:e.title})]})]})}var sl,cl=ce("textarea",{outline:"none",border:"none",overflow:"auto",resize:"none",background:"unset",color:"$grayText",fontSize:"$3",fontFamily:"inter",lineHeight:"1.35","&::placeholder":{opacity:.7}});function fl(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function dl(e,t,n,r,o,i,a){try{var l=e[i](a),u=l.value}catch(e){return void n(e)}l.done?t(u):Promise.resolve(u).then(r,o)}function hl(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){dl(i,r,o,a,l,"next",e)}function l(e){dl(i,r,o,a,l,"throw",e)}a(void 0)}))}}function pl(e){return gl.apply(this,arguments)}function gl(){return gl=hl(regeneratorRuntime.mark((function e(t){var n,r,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=(0,ot.gql)(sl||(sl=fl(["\n mutation UpdateHighlight($input: UpdateHighlightInput!) {\n updateHighlight(input: $input) {\n ... on UpdateHighlightSuccess {\n highlight {\n id\n }\n }\n\n ... on UpdateHighlightError {\n errorCodes\n }\n }\n }\n "]))),e.prev=1,e.next=4,_n(n,{input:t});case 4:return r=e.sent,o=r,e.abrupt("return",null==o?void 0:o.updateHighlight.highlight.id);case 9:return e.prev=9,e.t0=e.catch(1),e.abrupt("return",void 0);case 12:case"end":return e.stop()}}),e,null,[[1,9]])}))),gl.apply(this,arguments)}ce(cl,{borderRadius:"6px",border:"1px solid $grayBorder",p:"$3",fontSize:"$1"});let vl,ml,yl,bl={data:""},wl=e=>"object"==typeof window?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||bl,_l=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,xl=/\/\*[^]*?\*\/|\s\s+|\n/g,El=(e,t)=>{let n="",r="",o="";for(let i in e){let a=e[i];"@"==i[0]?"i"==i[1]?n=i+" "+a+";":r+="f"==i[1]?El(a,i):i+"{"+El(a,"k"==i[1]?"":t)+"}":"object"==typeof a?r+=El(a,t?t.replace(/([^,])+/g,(e=>i.replace(/(^:.*)|([^,])+/g,(t=>/&/.test(t)?t.replace(/&/g,e):e?e+" "+t:t)))):i):null!=a&&(i=/^--/.test(i)?i:i.replace(/[A-Z]/g,"-$&").toLowerCase(),o+=El.p?El.p(i,a):i+":"+a+";")}return n+(t&&o?t+"{"+o+"}":o)+r},Sl={},kl=e=>{if("object"==typeof e){let t="";for(let n in e)t+=n+kl(e[n]);return t}return e},Cl=(e,t,n,r,o)=>{let i=kl(e),a=Sl[i]||(Sl[i]=(e=>{let t=0,n=11;for(;t<e.length;)n=101*n+e.charCodeAt(t++)>>>0;return"go"+n})(i));if(!Sl[a]){let t=i!==e?e:(e=>{let t,n=[{}];for(;t=_l.exec(e.replace(xl,""));)t[4]?n.shift():t[3]?n.unshift(n[0][t[3]]=n[0][t[3]]||{}):n[0][t[1]]=t[2];return n[0]})(e);Sl[a]=El(o?{["@keyframes "+a]:t}:t,n?"":"."+a)}return((e,t,n)=>{-1==t.data.indexOf(e)&&(t.data=n?e+t.data:t.data+e)})(Sl[a],t,r),a},Ol=(e,t,n)=>e.reduce(((e,r,o)=>{let i=t[o];if(i&&i.call){let e=i(n),t=e&&e.props&&e.props.className||/^go/.test(e)&&e;i=t?"."+t:e&&"object"==typeof e?e.props?"":El(e,""):!1===e?"":e}return e+r+(null==i?"":i)}),"");function Pl(e){let t=this||{},n=e.call?e(t.p):e;return Cl(n.unshift?n.raw?Ol(n,[].slice.call(arguments,1),t.p):n.reduce(((e,n)=>Object.assign(e,n&&n.call?n(t.p):n)),{}):n,wl(t.target),t.g,t.o,t.k)}function Tl(){return Tl=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Tl.apply(this,arguments)}Pl.bind({g:1}),Pl.bind({k:1});var Rl,jl=function(e,t){return function(e){return"function"==typeof e}(e)?e(t):e},Al=function(){var e=0;return function(){return(++e).toString()}}();!function(e){e[e.ADD_TOAST=0]="ADD_TOAST",e[e.UPDATE_TOAST=1]="UPDATE_TOAST",e[e.UPSERT_TOAST=2]="UPSERT_TOAST",e[e.DISMISS_TOAST=3]="DISMISS_TOAST",e[e.REMOVE_TOAST=4]="REMOVE_TOAST",e[e.START_PAUSE=5]="START_PAUSE",e[e.END_PAUSE=6]="END_PAUSE"}(Rl||(Rl={}));var Ll,Il=new Map,Dl=function(e){if(!Il.has(e)){var t=setTimeout((function(){Il.delete(e),Fl({type:Rl.REMOVE_TOAST,toastId:e})}),1e3);Il.set(e,t)}},Nl=function e(t,n){switch(n.type){case Rl.ADD_TOAST:return Tl({},t,{toasts:[n.toast].concat(t.toasts).slice(0,20)});case Rl.UPDATE_TOAST:return n.toast.id&&function(e){var t=Il.get(e);t&&clearTimeout(t)}(n.toast.id),Tl({},t,{toasts:t.toasts.map((function(e){return e.id===n.toast.id?Tl({},e,n.toast):e}))});case Rl.UPSERT_TOAST:var r=n.toast;return t.toasts.find((function(e){return e.id===r.id}))?e(t,{type:Rl.UPDATE_TOAST,toast:r}):e(t,{type:Rl.ADD_TOAST,toast:r});case Rl.DISMISS_TOAST:var o=n.toastId;return o?Dl(o):t.toasts.forEach((function(e){Dl(e.id)})),Tl({},t,{toasts:t.toasts.map((function(e){return e.id===o||void 0===o?Tl({},e,{visible:!1}):e}))});case Rl.REMOVE_TOAST:return void 0===n.toastId?Tl({},t,{toasts:[]}):Tl({},t,{toasts:t.toasts.filter((function(e){return e.id!==n.toastId}))});case Rl.START_PAUSE:return Tl({},t,{pausedAt:n.time});case Rl.END_PAUSE:var i=n.time-(t.pausedAt||0);return Tl({},t,{pausedAt:void 0,toasts:t.toasts.map((function(e){return Tl({},e,{pauseDuration:e.pauseDuration+i})}))})}},Ml=[],zl={toasts:[],pausedAt:void 0},Fl=function(e){zl=Nl(zl,e),Ml.forEach((function(e){e(zl)}))},$l=function(e){return function(t,n){var r=function(e,t,n){return void 0===t&&(t="blank"),Tl({createdAt:Date.now(),visible:!0,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0},n,{id:(null==n?void 0:n.id)||Al()})}(t,e,n);return Fl({type:Rl.UPSERT_TOAST,toast:r}),r.id}},Ul=function(e,t){return $l("blank")(e,t)};Ul.error=$l("error"),Ul.success=$l("success"),Ul.loading=$l("loading"),Ul.custom=$l("custom"),Ul.dismiss=function(e){Fl({type:Rl.DISMISS_TOAST,toastId:e})},Ul.remove=function(e){return Fl({type:Rl.REMOVE_TOAST,toastId:e})},Ul.promise=function(e,t,n){var r=Ul.loading(t.loading,Tl({},n,null==n?void 0:n.loading));return e.then((function(e){return Ul.success(jl(t.success,e),Tl({id:r},n,null==n?void 0:n.success)),e})).catch((function(e){Ul.error(jl(t.error,e),Tl({id:r},n,null==n?void 0:n.error))})),e},Ll=a.createElement,El.p=void 0,vl=Ll,ml=void 0,yl=void 0;const Bl=Ul;function Hl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Wl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Hl(Object(n),!0).forEach((function(t){Vl(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Vl(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ql(e,t,n,r,o,i,a){try{var l=e[i](a),u=l.value}catch(e){return void n(e)}l.done?t(u):Promise.resolve(u).then(r,o)}function Kl(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){ql(i,r,o,a,l,"next",e)}function l(e){ql(i,r,o,a,l,"throw",e)}a(void 0)}))}}function Xl(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Gl(e){var t,n,r,o,i,l=(o=(0,a.useState)(null!==(t=null===(n=e.highlight)||void 0===n?void 0:n.annotation)&&void 0!==t?t:""),i=2,function(e){if(Array.isArray(e))return e}(o)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}}(o,i)||function(e,t){if(e){if("string"==typeof e)return Xl(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Xl(e,t):void 0}}(o,i)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),u=l[0],s=l[1];!function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=(0,a.useCallback)((function(r){var o=r.key.toLowerCase();if(e&&"enter"===o){if(n&&!r.metaKey&&!r.ctrlKey)return;e()}else t&&"escape"===o&&t()}),[t,e]);(0,a.useEffect)((function(){if("undefined"!=typeof window)return window.addEventListener("keydown",r),function(){window.removeEventListener("keydown",r)}}),[r])}((function(){g()}),void 0,!0);var c,f,d,h=e.highlight?(c=null===(r=e.highlight)||void 0===r?void 0:r.updatedAt,f="Updated ",(d=Math.ceil((new Date).valueOf()-new Date(c).valueOf())/1e3)<60?"".concat(f," a few seconds ago"):d<3600?"".concat(f," ").concat(Math.floor(d/60)," minutes ago"):d<86400?"".concat(f," ").concat(Math.floor(d/3600)," hours ago"):d<604800?"".concat(f," ").concat(Math.floor(d/86400)," days ago"):d<2592e3?"".concat(f," ").concat(Math.floor(d/604800)," weeks ago"):d<31536e3?"".concat(f," ").concat(Math.floor(d/2592e3)," months ago"):d<31536e4?"".concat(f," ").concat(Math.floor(d/31536e3)," years ago"):d<31536e5?"".concat(f," ").concat(Math.floor(d/31536e4)," decades ago"):""):void 0,p=(0,a.useCallback)((function(e){s(e.target.value)}),[s]),g=(0,a.useCallback)(Kl(regeneratorRuntime.mark((function t(){var n,r,o;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(u==(null===(n=e.highlight)||void 0===n?void 0:n.annotation)||null===(r=e.highlight)||void 0===r||!r.id){t.next=5;break}return t.next=3,pl({highlightId:null===(o=e.highlight)||void 0===o?void 0:o.id,annotation:u});case 3:t.sent?(e.onUpdate(Wl(Wl({},e.highlight),{},{annotation:u})),e.onOpenChange(!1)):Bl.error("Error updating your note",{position:"bottom-right"});case 5:if(e.highlight||!e.createHighlightForNote){t.next=12;break}return t.next=8,e.createHighlightForNote(u);case 8:t.sent?e.onOpenChange(!0):Bl.error("Error saving highlight",{position:"bottom-right"}),t.next=13;break;case 12:e.onOpenChange(!1);case 13:case"end":return t.stop()}}),t)}))),[u,e]);return(0,Le.jsxs)(nl,{defaultOpen:!0,onOpenChange:e.onOpenChange,children:[(0,Le.jsx)(ol,{}),(0,Le.jsxs)(ll,{css:{overflow:"auto"},onPointerDownOutside:function(e){e.preventDefault()},children:[(0,Le.jsx)(Yl,{headlineText:"Notes",saveNoteChanges:g,onOpenChange:e.onOpenChange}),e.highlight&&(0,Le.jsx)(De,{css:{width:"100%","@mdDown":{display:"none"}},children:(0,Le.jsx)(ul,Wl(Wl({},e),{},{highlight:e.highlight}))}),(0,Le.jsx)(cl,{css:{mt:"$2",width:"95%",p:"$1",height:"$6"},autoFocus:!0,placeholder:"Add your note here",value:u,onChange:p,maxLength:4e3}),h?(0,Le.jsx)(Wn,{style:"caption",children:h}):null]})]})}function Yl(e){return(0,Le.jsxs)(De,{css:{display:"grid",gridTemplateColumns:"1fr auto 1fr"},children:[(0,Le.jsx)(yr,{style:"ctaSecondary",onClick:function(){e.onOpenChange(!1)},css:{justifySelf:"start"},children:"Cancel"}),(0,Le.jsxs)(Fe,{alignment:"center",children:[(0,Le.jsx)(qi,{size:24,strokeColor:fe.colors.grayTextContrast.toString()}),(0,Le.jsxs)(Wn,{children:[" ",e.headlineText]})]}),(0,Le.jsx)(yr,{style:"ctaSecondary",onClick:e.saveNoteChanges,css:{justifySelf:"end"},children:"Save"})]})}function Ql(e){return(0,Le.jsx)("svg",{width:e.size,height:e.size,viewBox:"0 0 ".concat(e.size," ").concat(e.size),fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Le.jsx)("path",{d:"M1.33398 1.33301L6.00065 5.99967M6.00065 5.99967L10.6673 10.6663M6.00065 5.99967L10.6673 1.33301M6.00065 5.99967L1.33398 10.6663",stroke:e.strokeColor,strokeLinecap:"round",strokeLinejoin:"round"})})}function Zl(e){return(0,Le.jsx)("svg",{width:26,height:26,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Le.jsx)("path",{d:"M24 12C24 5.37258 18.6274 0 12 0C5.37258 0 0 5.37258 0 12C0 17.9895 4.3882 22.954 10.125 23.8542V15.4688H7.07812V12H10.125V9.35625C10.125 6.34875 11.9166 4.6875 14.6576 4.6875C15.9701 4.6875 17.3438 4.92188 17.3438 4.92188V7.875H15.8306C14.34 7.875 13.875 8.80008 13.875 9.75V12H17.2031L16.6711 15.4688H13.875V23.8542C19.6118 22.954 24 17.9895 24 12Z",fill:e.color})})}function Jl(e){return(0,Le.jsx)("svg",{width:"28",height:"20",viewBox:"0 0 24 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Le.jsx)("path",{d:"M7.55016 19.7507C16.6045 19.7507 21.5583 12.2474 21.5583 5.74259C21.5583 5.53166 21.5536 5.31603 21.5442 5.10509C22.5079 4.40819 23.3395 3.54499 24 2.55603C23.1025 2.95533 22.1496 3.21611 21.1739 3.32947C22.2013 2.71364 22.9705 1.7462 23.3391 0.606499C22.3726 1.17929 21.3156 1.58334 20.2134 1.80134C19.4708 1.01229 18.489 0.489849 17.4197 0.314783C16.3504 0.139718 15.2532 0.321783 14.2977 0.832829C13.3423 1.34387 12.5818 2.15544 12.1338 3.14204C11.6859 4.12865 11.5754 5.23535 11.8195 6.29103C9.86249 6.19282 7.94794 5.68444 6.19998 4.79883C4.45203 3.91322 2.90969 2.67017 1.67297 1.15025C1.0444 2.23398 0.852057 3.51638 1.13503 4.73682C1.418 5.95727 2.15506 7.02418 3.19641 7.72072C2.41463 7.6959 1.64998 7.48541 0.965625 7.10665V7.16759C0.964925 8.30488 1.3581 9.40732 2.07831 10.2875C2.79852 11.1677 3.80132 11.7713 4.91625 11.9957C4.19206 12.1939 3.43198 12.2227 2.69484 12.0801C3.00945 13.0582 3.62157 13.9136 4.44577 14.5271C5.26997 15.1405 6.26512 15.4813 7.29234 15.502C5.54842 16.8718 3.39417 17.6149 1.17656 17.6113C0.783287 17.6107 0.390399 17.5866 0 17.5392C2.25286 18.9845 4.87353 19.7521 7.55016 19.7507Z",fill:e.color})})}function eu(e){return(0,Le.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,Le.jsx)("rect",{x:"7.5",y:"7.5",width:"13",height:"13",rx:"1.5",stroke:e.strokeColor}),(0,Le.jsx)("path",{d:"M16 4H7C5.34315 4 4 5.34315 4 7V15",stroke:e.strokeColor,strokeLinecap:"round"}),e.isCompleted&&(0,Le.jsx)("path",{d:"M16 12.666L13.3333 15.3327L12 13.9993",stroke:e.strokeColor,strokeLinecap:"round",strokeLinejoin:"round"})]})}function tu(e,t,n,r,o,i,a){try{var l=e[i](a),u=l.value}catch(e){return void n(e)}l.done?t(u):Promise.resolve(u).then(r,o)}function nu(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){tu(i,r,o,a,l,"next",e)}function l(e){tu(i,r,o,a,l,"throw",e)}a(void 0)}))}}function ru(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var ou=function(e,t){var n,r,o=(n=(0,a.useState)(!1),r=2,function(e){if(Array.isArray(e))return e}(n)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}}(n,r)||function(e,t){if(e){if("string"==typeof e)return ru(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ru(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],l=o[1],u=e||("undefined"!=typeof window?window.location.toString():""),s=(0,a.useCallback)(nu(regeneratorRuntime.mark((function e(){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,navigator.clipboard.writeText(u);case 2:e.sent,l(!0),window.setTimeout((function(){return l(!1)}),5e3),null===(n=window.analytics)||void 0===n||n.track("link_copied",{link:u,type:t});case 6:case"end":return e.stop()}}),e)}))),[u,t]);return{link:u,copyLink:s,isLinkCopied:i}};function iu(e){var t=ou(e.url,e.type),n=t.copyLink,r=t.isLinkCopied;return(0,Le.jsxs)(nl,{defaultOpen:!0,onOpenChange:e.onOpenChange,children:[(0,Le.jsx)(ol,{}),(0,Le.jsx)(ll,{onPointerDownOutside:function(e){e.preventDefault()},css:{overflow:"auto",p:"0"},children:(0,Le.jsxs)($e,{distribution:"start",css:{p:"0"},children:[(0,Le.jsxs)(Fe,{distribution:"between",alignment:"center",css:{width:"100%"},children:[(0,Le.jsx)(Wn,{style:"modalHeadline",css:{p:"16px"},children:e.modalTitle}),(0,Le.jsx)(yr,{css:{pt:"16px",pr:"16px"},style:"ghost",onClick:function(){e.onOpenChange(!1)},children:(0,Le.jsx)(Ql,{size:20,strokeColor:fe.colors.grayText.toString()})})]}),e.children,(0,Le.jsx)(Wn,{style:"logoTitle",css:{pl:"16px",color:"$grayText",fontSize:"11px"},children:"SHARE"}),(0,Le.jsxs)(Fe,{alignment:"start",distribution:"start",css:{p:"16px",width:"100%",gap:"16px",mb:"0px"},children:[(0,Le.jsx)(Me,{target:"_blank",css:{height:"100%"},referrerPolicy:"no-referrer",href:"https://www.facebook.com/sharer/sharer.php?u=".concat(e.url,"&t=").concat(e.title,"&display=page"),children:(0,Le.jsx)(Zl,{color:fe.colors.grayText.toString()})}),(0,Le.jsx)(Me,{target:"_blank",css:{height:"100%",pl:"8px",pt:"4px"},referrerPolicy:"no-referrer",href:"https://twitter.com/intent/tweet?text=".concat(e.title,"&url=").concat(e.url),children:(0,Le.jsx)(Jl,{color:fe.colors.grayText.toString()})}),(0,Le.jsx)(De,{css:{marginLeft:"auto"},children:(0,Le.jsxs)(yr,{onClick:n,style:"plainIcon",css:{pl:"16px",color:"$grayText",fontSize:"11px",height:"100%",display:"flex",alignItems:"center"},children:[(0,Le.jsx)("span",{style:{paddingTop:"4px",paddingRight:"8px"},children:"Copy URL"}),(0,Le.jsx)(eu,{strokeColor:fe.colors.grayText.toString(),isCompleted:r})]})})]})]})})]})}function au(e){return(0,Le.jsx)(iu,{url:e.url,type:"highlight",modalTitle:"Share Highlight",title:e.title,description:e.description,onOpenChange:e.onOpenChange,children:(0,Le.jsx)(ul,{title:e.title,author:e.author,highlight:e.highlight})})}function lu(e){var t;return(0,Le.jsxs)(nl,{defaultOpen:!0,onOpenChange:e.onOpenChange,children:[(0,Le.jsx)(ol,{}),(0,Le.jsx)(ll,{css:{bg:"$grayBg",maxWidth:"20em"},children:(0,Le.jsxs)($e,{alignment:"center",distribution:"center",css:{p:"$2"},children:[e.icon?e.icon:null,(0,Le.jsx)(Wn,{children:e.message}),(0,Le.jsxs)(Fe,{distribution:"center",css:{pt:"$2"},children:[(0,Le.jsx)(yr,{style:"ctaPill",css:{mr:"$2"},onClick:function(){return e.onOpenChange(!1)},children:"Cancel"}),(0,Le.jsx)(yr,{style:"ctaPill",onClick:e.onAccept,children:null!==(t=e.acceptButtonLabel)&&void 0!==t?t:"Confirm"})]})]})})]})}var uu=(0,a.createContext)({color:"currentColor",size:"1em",weight:"regular",mirrored:!1});function su(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}var cu=(0,a.forwardRef)((function(e,t){var n=e.alt,r=e.color,o=e.size,i=e.weight,l=e.mirrored,u=e.children,s=e.renderPath,c=su(e,["alt","color","size","weight","mirrored","children","renderPath"]),f=(0,a.useContext)(uu),d=f.color,h=void 0===d?"currentColor":d,p=f.size,g=f.weight,v=void 0===g?"regular":g,m=f.mirrored,y=void 0!==m&&m,b=su(f,["color","size","weight","mirrored"]);return a.createElement("svg",Object.assign({ref:t,xmlns:"http://www.w3.org/2000/svg",width:null!=o?o:p,height:null!=o?o:p,fill:null!=r?r:h,viewBox:"0 0 256 256",transform:l||y?"scale(-1, 1)":void 0},b,c),!!n&&a.createElement("title",null,n),u,a.createElement("rect",{width:"256",height:"256",fill:"none"}),s(null!=i?i:v,null!=r?r:h))}));cu.displayName="IconBase";const fu=cu;var du=new Map;du.set("bold",(function(e){return a.createElement(a.Fragment,null,a.createElement("line",{x1:"216",y1:"60",x2:"40",y2:"60",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"24"}),a.createElement("line",{x1:"104",y1:"104",x2:"104",y2:"168",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"24"}),a.createElement("line",{x1:"152",y1:"104",x2:"152",y2:"168",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"24"}),a.createElement("path",{d:"M200,60V208a8,8,0,0,1-8,8H64a8,8,0,0,1-8-8V60",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"24"}),a.createElement("path",{d:"M168,60V36a16,16,0,0,0-16-16H104A16,16,0,0,0,88,36V60",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"24"}))})),du.set("duotone",(function(e){return a.createElement(a.Fragment,null,a.createElement("path",{d:"M200,56V208a8,8,0,0,1-8,8H64a8,8,0,0,1-8-8V56Z",opacity:"0.2"}),a.createElement("line",{x1:"216",y1:"56",x2:"40",y2:"56",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),a.createElement("line",{x1:"104",y1:"104",x2:"104",y2:"168",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),a.createElement("line",{x1:"152",y1:"104",x2:"152",y2:"168",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),a.createElement("path",{d:"M200,56V208a8,8,0,0,1-8,8H64a8,8,0,0,1-8-8V56",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),a.createElement("path",{d:"M168,56V40a16,16,0,0,0-16-16H104A16,16,0,0,0,88,40V56",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}))})),du.set("fill",(function(){return a.createElement(a.Fragment,null,a.createElement("path",{d:"M216,48H176V40a24.1,24.1,0,0,0-24-24H104A24.1,24.1,0,0,0,80,40v8H40a8,8,0,0,0,0,16h8V208a16,16,0,0,0,16,16H192a16,16,0,0,0,16-16V64h8a8,8,0,0,0,0-16ZM112,168a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm48,0a8,8,0,0,1-16,0V104a8,8,0,0,1,16,0Zm0-120H96V40a8,8,0,0,1,8-8h48a8,8,0,0,1,8,8Z"}))})),du.set("light",(function(e){return a.createElement(a.Fragment,null,a.createElement("line",{x1:"216",y1:"56",x2:"40",y2:"56",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"12"}),a.createElement("line",{x1:"104",y1:"104",x2:"104",y2:"168",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"12"}),a.createElement("line",{x1:"152",y1:"104",x2:"152",y2:"168",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"12"}),a.createElement("path",{d:"M200,56V208a8,8,0,0,1-8,8H64a8,8,0,0,1-8-8V56",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"12"}),a.createElement("path",{d:"M168,56V40a16,16,0,0,0-16-16H104A16,16,0,0,0,88,40V56",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"12"}))})),du.set("thin",(function(e){return a.createElement(a.Fragment,null,a.createElement("line",{x1:"216",y1:"56",x2:"40",y2:"56",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"8"}),a.createElement("line",{x1:"104",y1:"104",x2:"104",y2:"168",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"8"}),a.createElement("line",{x1:"152",y1:"104",x2:"152",y2:"168",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"8"}),a.createElement("path",{d:"M200,56V208a8,8,0,0,1-8,8H64a8,8,0,0,1-8-8V56",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"8"}),a.createElement("path",{d:"M168,56V40a16,16,0,0,0-16-16H104A16,16,0,0,0,88,40V56",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"8"}))})),du.set("regular",(function(e){return a.createElement(a.Fragment,null,a.createElement("line",{x1:"216",y1:"56",x2:"40",y2:"56",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),a.createElement("line",{x1:"104",y1:"104",x2:"104",y2:"168",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),a.createElement("line",{x1:"152",y1:"104",x2:"152",y2:"168",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),a.createElement("path",{d:"M200,56V208a8,8,0,0,1-8,8H64a8,8,0,0,1-8-8V56",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),a.createElement("path",{d:"M168,56V40a16,16,0,0,0-16-16H104A16,16,0,0,0,88,40V56",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}))}));var hu=function(e,t){return function(e,t,n){var r=n.get(e);return r?r(t):(console.error('Unsupported icon weight. Choose from "thin", "light", "regular", "bold", "fill", or "duotone".'),null)}(e,t,du)},pu=(0,a.forwardRef)((function(e,t){return a.createElement(fu,Object.assign({ref:t},e,{renderPath:hu}))}));pu.displayName="Trash";const gu=pu;function vu(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return mu(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?mu(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function mu(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function yu(e){return(0,Le.jsxs)(nl,{defaultOpen:!0,onOpenChange:e.onOpenChange,children:[(0,Le.jsx)(ol,{}),(0,Le.jsx)(ll,{onPointerDownOutside:function(e){e.preventDefault()},css:{overflow:"auto",p:"0"},children:(0,Le.jsxs)($e,{distribution:"start",css:{height:"100%"},children:[(0,Le.jsxs)(Fe,{distribution:"between",alignment:"center",css:{width:"100%"},children:[(0,Le.jsx)(Wn,{style:"modalHeadline",css:{p:"16px"},children:"All your highlights and notes"}),(0,Le.jsx)(yr,{css:{pt:"16px",pr:"16px"},style:"ghost",onClick:function(){e.onOpenChange(!1)},children:(0,Le.jsx)(Ql,{size:20,strokeColor:fe.colors.grayText.toString()})})]}),(0,Le.jsxs)(De,{css:{overflow:"auto",mt:"$2",width:"100%"},children:[e.highlights.map((function(t){return(0,Le.jsx)(bu,{highlight:t,deleteHighlightAction:function(){return e.deleteHighlightAction(t.id)}},t.id)})),0===e.highlights.length&&(0,Le.jsx)(Ne,{css:{textAlign:"center",width:"100%"},children:(0,Le.jsx)(Wn,{css:{mb:"40px"},children:"You have not added any highlights or notes to this document"})})]})]})})]})}function bu(e){var t,n=vu((0,a.useState)(!1),2),r=n[0],o=n[1],i=vu((0,a.useState)(!1),2),l=i[0],u=i[1],s=vu((0,a.useState)(null!==(t=e.highlight.annotation)&&void 0!==t?t:""),2),c=s[0],f=s[1],d=(0,a.useCallback)((function(e){f(e.target.value)}),[f]),h=function(){return(0,Le.jsx)(Fe,{alignment:"center",distribution:"end",css:{width:"100%",pt:"$2"},children:(0,Le.jsx)(yr,{style:"ghost",onClick:function(){return u(!0)},children:(0,Le.jsx)(gu,{width:18,height:18,color:fe.colors.grayText.toString()})})})},p=function(){return(0,Le.jsxs)($e,{css:{width:"100%"},children:[(0,Le.jsx)(cl,{css:{mx:"21px",my:"$3",width:"95%",p:"$1",minHeight:"$6"},autoFocus:!0,placeholder:"Add your note here",value:c,onChange:d,maxLength:4e3}),(0,Le.jsxs)(Fe,{alignment:"center",distribution:"end",css:{width:"100%"},children:[(0,Le.jsx)(yr,{style:"ctaPill",css:{mr:"$2"},onClick:function(){return o(!1)},children:"Cancel"}),(0,Le.jsx)(yr,{style:"ctaDarkYellow",children:"Save"})]})]})};return(0,Le.jsx)(Le.Fragment,{children:(0,Le.jsxs)($e,{children:[(0,Le.jsx)(ul,{highlight:e.highlight}),e.highlight.annotation&&!r?(0,Le.jsx)(Wn,{css:{px:"24px"},children:e.highlight.annotation}):null,r?(0,Le.jsx)(p,{}):(0,Le.jsx)(h,{}),(0,Le.jsx)(Ue,{css:{mt:"$2",mb:"$4"}}),l?(0,Le.jsx)(lu,{message:"Are you sure you want to delete this highlight?",onAccept:function(){u(!1),e.deleteHighlightAction()},onOpenChange:function(){return u(!1)},icon:(0,Le.jsx)(Ki,{size:40,strokeColor:fe.colors.grayTextContrast.toString()})}):null]})})}var wu,_u=function(){return(0,a.useMemo)((function(){var e;return"undefined"!=typeof window&&!(!Xi()&&!(["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document))&&"function"==typeof(null===(e=navigator)||void 0===e?void 0:e.share)}),[])};function xu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Eu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xu(Object(n),!0).forEach((function(t){Su(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Su(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ku(e,t,n,r,o,i,a){try{var l=e[i](a),u=l.value}catch(e){return void n(e)}l.done?t(u):Promise.resolve(u).then(r,o)}function Cu(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){ku(i,r,o,a,l,"next",e)}function l(e){ku(i,r,o,a,l,"throw",e)}a(void 0)}))}}function Ou(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}}(e,t)||Pu(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Pu(e,t){if(e){if("string"==typeof e)return Tu(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Tu(e,t):void 0}}function Tu(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ru(e){var t=Ou((0,a.useState)(e.highlights),2),n=t[0],r=t[1],o=Ou((0,a.useState)({highlightModalAction:"none"}),2),i=o[0],l=o[1],u=Ou((0,a.useState)([]),2),s=u[0],c=u[1],f=(0,a.useRef)({pageX:0,pageY:0}),d=Ou((0,a.useState)(void 0),2),h=d[0],p=d[1],g=function(e,t){var n=hr((0,a.useState)(null),2),r=n[0],o=n[1],i=(0,a.useCallback)(function(){var t=dr(regeneratorRuntime.mark((function t(n){var r,i,a,l,u,s,c,f,d,h,p,g,v,m,y,b,w,_,x,E;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,gr();case 2:if(i=t.sent){t.next=5;break}return t.abrupt("return",setTimeout((function(){o(null)}),100));case 5:if(a=i.range,l=i.isReverseSelected,u=i.selection,s=rr(a),c=hr(s,2),f=c[0],d=c[1],h=mr(a,l),p=!1,g=[],e.sort((function(e,t){return e.start<t.start?-1:e.start>t.start?1:0})).forEach((function(e){f>=e.start&&d<=e.end?p=!0:f<=e.end&&e.start<=d&&g.push(e)})),v=null,!g.length){t.next=21;break}if(_=!1,f<=g[0].start?(m=a.startContainer,y=a.startOffset):(x=ur(g[0].id),m=x.shift(),y=0),d>=g[g.length-1].end?(b=a.endContainer,w=a.endOffset):(E=ur(g[g.length-1].id),b=E.pop(),w=0,_=!0),m&&b){t.next=18;break}throw new Error("Failed to query node for computing new merged range");case 18:(v=new Range).setStart(m,y),_?v.setEndAfter(b):v.setEnd(b,w);case 21:if(!p){t.next=23;break}return t.abrupt("return",setTimeout((function(){o(null)}),100));case 23:return t.abrupt("return",o({selection:u,mouseEvent:n,range:null!==(r=v)&&void 0!==r?r:a,focusPosition:{x:h[l?"left":"right"],y:h[l?"top":"bottom"],isReverseSelected:l},overlapHighlights:g.map((function(e){return e.id}))}));case 24:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),[e]);return(0,a.useEffect)((function(){return document.addEventListener("mouseup",i),document.addEventListener("touchend",i),document.addEventListener("contextmenu",i),function(){document.removeEventListener("mouseup",i),document.removeEventListener("touchend",i),document.removeEventListener("contextmenu",i)}}),[e,i,false]),[r,o]}(s),v=Ou(g,2),m=v[0],y=v[1],b=_u();(0,a.useEffect)((function(){var e=[];n.forEach((function(t){try{var n=function(e){var t=function(e){return tr(e.patch,e.id,!!e.annotation,void 0,void 0)}(e),n=t.startLocation,r=t.endLocation;return{id:e.id,start:n,end:r}}(t);e.push(n)}catch(e){console.error(e)}})),c(e)}),[n,c]);var w=(0,a.useCallback)(function(){var t=Cu(regeneratorRuntime.mark((function t(o){var i;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i=o||(null==h?void 0:h.id)){t.next=3;break}return t.abrupt("return");case 3:return t.next=5,e.articleMutations.deleteHighlightMutation(i);case 5:t.sent?(ea(n.map((function(e){return e.id}))),r(n.filter((function(e){return e.id!==i}))),p(void 0)):console.error("Failed to delete highlight");case 7:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),[h,n,s]),_=(0,a.useCallback)((function(e){ea([e.id]);var t,o=n.filter((function(t){return t.id!==e.id}));r([].concat(function(e){if(Array.isArray(e))return Tu(e)}(t=o)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||Pu(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),[e]))}),[n,s]),x=(0,a.useCallback)((function(t){var n;null===(n=navigator)||void 0===n||n.share({title:e.articleTitle,url:"".concat(e.highlightsBaseURL,"/").concat(t)}).then((function(){p(void 0)})).catch((function(e){console.log(e),p(void 0)}))}),[e.articleTitle,e.highlightsBaseURL]),E=(0,a.useCallback)((function(t){var n,r,o,i,a,u,s;void 0!==(null===(n=window)||void 0===n||null===(r=n.webkit)||void 0===r?void 0:r.messageHandlers.highlightAction)&&e.highlightBarDisabled?null===(o=window)||void 0===o||null===(i=o.webkit)||void 0===i||null===(a=i.messageHandlers.highlightAction)||void 0===a||a.postMessage({actionID:"annotate",annotation:null!==(u=null===(s=t.highlight)||void 0===s?void 0:s.annotation)&&void 0!==u?u:""}):(t.createHighlightForNote=function(){var e=Cu(regeneratorRuntime.mark((function e(n){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.selectionData){e.next=2;break}return e.abrupt("return",void 0);case 2:return e.next=4,S(t.selectionData,n);case 4:return e.abrupt("return",e.sent);case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),l(t))}),[e.highlightBarDisabled]),S=function(){var t=Cu(regeneratorRuntime.mark((function t(o,i){var a;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,ba({selection:o,articleId:e.articleId,existingHighlights:n,highlightStartEndOffsets:s,annotation:i},e.articleMutations);case 2:if((a=t.sent).highlights&&0!=a.highlights.length){t.next=6;break}return console.error("Failed to create highlight"),t.abrupt("return",void 0);case 6:if(y(null),r(a.highlights),void 0!==a.newHighlightIndex){t.next=11;break}return l({highlightModalAction:"none"}),t.abrupt("return",void 0);case 11:return t.abrupt("return",a.highlights[a.newHighlightIndex]);case 12:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}(),k=(0,a.useCallback)(function(){var e=Cu(regeneratorRuntime.mark((function e(t,n){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(m){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,S(m,n);case 4:e.sent||Bl.error("Error saving highlight",{position:"bottom-right"});case 6:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),[x,n,E,e.articleId,m,y,b,s]),C=(0,a.useCallback)((function(e){var t=e.target,r=e.pageX,o=e.pageY;if(t&&(null==t?void 0:t.nodeType)===Node.ELEMENT_NODE)if(f.current={pageX:r,pageY:o},t.hasAttribute(Xn)){var i=t.getAttribute(Xn),a=n.find((function(e){return e.id===i}));if(a){var l,u,s,c=t.getBoundingClientRect();null===(l=window)||void 0===l||null===(u=l.webkit)||void 0===u||null===(s=u.messageHandlers.viewerAction)||void 0===s||s.postMessage({actionID:"showMenu",rectX:c.x,rectY:c.y,rectWidth:c.width,rectHeight:c.height}),p(a)}}else if(t.hasAttribute(Gn)){var d=t.getAttribute(Gn),h=n.find((function(e){return e.id===d}));E({highlight:h,highlightModalAction:"addComment"})}else p(void 0)}),[n,s]);(0,a.useEffect)((function(){if("undefined"!=typeof window)return document.addEventListener("click",C),function(){return document.removeEventListener("click",C)}}),[C]);var O,P,T,R,j,A,L=(0,a.useCallback)((function(t){switch(t){case"delete":w();break;case"create":k("none");break;case"comment":e.highlightBarDisabled||h?E({highlight:h,highlightModalAction:"addComment"}):E({highlight:void 0,selectionData:m||void 0,highlightModalAction:"addComment"});break;case"share":var n,r,o;e.isAppleAppEmbed&&(null===(n=window)||void 0===n||null===(r=n.webkit)||void 0===r||null===(o=r.messageHandlers.highlightAction)||void 0===o||o.postMessage({actionID:"share",highlightID:null==h?void 0:h.id})),h?b?x(h.shortId):l({highlight:h,highlightModalAction:"share"}):k("share");break;case"unshare":console.log("unshare")}}),[k,h,x,E,e.highlightBarDisabled,e.isAppleAppEmbed,w,b]);return(0,a.useEffect)((function(){var t=function(){L("comment")},n=function(){L("create")},r=function(){L("share")},o=function(){L("delete")},i=function(){p(void 0)},a=function(){var e=Cu(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!h){e.next=4;break}return e.next=3,navigator.clipboard.writeText(h.quote);case 3:p(void 0);case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),l=function(){var t=Cu(regeneratorRuntime.mark((function t(n){var r,o,i;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!h){t.next=9;break}return i=null!==(r=n.annotation)&&void 0!==r?r:"",t.next=4,e.articleMutations.updateHighlightMutation({highlightId:h.id,annotation:null!==(o=n.annotation)&&void 0!==o?o:""});case 4:t.sent?_(Eu(Eu({},h),{},{annotation:i})):console.log("failed to change annotation for highlight with id",h.id),p(void 0),t.next=10;break;case 9:k("none",n.annotation);case 10:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}();return document.addEventListener("annotate",t),document.addEventListener("highlight",n),document.addEventListener("share",r),document.addEventListener("remove",o),document.addEventListener("copyHighlight",a),document.addEventListener("dismissHighlight",i),document.addEventListener("saveAnnotation",l),function(){document.removeEventListener("annotate",t),document.removeEventListener("highlight",n),document.removeEventListener("share",r),document.removeEventListener("remove",o),document.removeEventListener("copyHighlight",a),document.removeEventListener("dismissHighlight",i),document.removeEventListener("saveAnnotation",l)}})),"addComment"==(null==i?void 0:i.highlightModalAction)?(0,Le.jsx)(Gl,{highlight:i.highlight,author:e.articleAuthor,title:e.articleTitle,onUpdate:_,onOpenChange:function(){return l({highlightModalAction:"none"})},createHighlightForNote:null==i?void 0:i.createHighlightForNote}):"share"==(null==i?void 0:i.highlightModalAction)&&i.highlight?(0,Le.jsx)(au,{url:"".concat(e.highlightsBaseURL,"/").concat(i.highlight.shortId),title:e.articleTitle,author:e.articleAuthor,highlight:i.highlight,onOpenChange:function(){l({highlightModalAction:"none"})}}):e.highlightBarDisabled||!h&&!m?e.showNotesSidebar?(0,Le.jsx)(yu,{highlights:n,onOpenChange:function(){return e.setShowNotesSidebar(!1)},deleteHighlightAction:function(e){w(e)}}):(0,Le.jsx)(Le.Fragment,{}):(0,Le.jsx)(Le.Fragment,{children:(0,Le.jsx)(Zi,{anchorCoordinates:{pageX:null!==(O=null!==(P=null===(T=f.current)||void 0===T?void 0:T.pageX)&&void 0!==P?P:null==m?void 0:m.focusPosition.x)&&void 0!==O?O:0,pageY:null!==(R=null!==(j=null===(A=f.current)||void 0===A?void 0:A.pageY)&&void 0!==j?j:null==m?void 0:m.focusPosition.y)&&void 0!==R?R:0},isNewHighlight:!!m,handleButtonClick:L,isSharedToFeed:null!=(null==h?void 0:h.sharedAt),isTouchscreenDevice:!0})})}function ju(e,t,n,r,o,i,a){try{var l=e[i](a),u=l.value}catch(e){return void n(e)}l.done?t(u):Promise.resolve(u).then(r,o)}function Au(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){ju(i,r,o,a,l,"next",e)}function l(e){ju(i,r,o,a,l,"throw",e)}a(void 0)}))}}function Lu(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Iu(e){var t,n,r=(t=(0,a.useState)(""),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}}(t,n)||function(e,t){if(e){if("string"==typeof e)return Lu(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Lu(e,t):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),o=r[0],i=r[1],l=(0,a.useCallback)((function(e){i(e.target.value)}),[i]),u=(0,a.useCallback)(Au(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.onCommit(o),e.onOpenChange(!1);case 2:case"end":return t.stop()}}),t)}))),[o,e]);return(0,Le.jsxs)(nl,{defaultOpen:!0,onOpenChange:e.onOpenChange,children:[(0,Le.jsx)(ol,{}),(0,Le.jsxs)(ll,{onPointerDownOutside:function(e){e.preventDefault()},css:{overflow:"auto"},children:[(0,Le.jsxs)(De,{css:{display:"grid",gridTemplateColumns:"1fr auto 1fr",px:"$2"},children:[(0,Le.jsx)(yr,{style:"ctaSecondary",onClick:function(){e.onOpenChange(!1)},css:{justifySelf:"start"},children:"Cancel"}),(0,Le.jsx)(Fe,{alignment:"center",children:(0,Le.jsx)(Wn,{children:"Report Issue"})}),(0,Le.jsx)(yr,{style:"ctaSecondary",onClick:u,css:{justifySelf:"end"},children:"Submit"})]}),(0,Le.jsx)(cl,{css:{mt:"$2",width:"95%",p:"$1",minHeight:"$6"},autoFocus:!0,placeholder:"Add any additional comments (optional)",value:o,onChange:l,maxLength:1e3})]})]})}function Du(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function Nu(e,t,n,r,o,i,a){try{var l=e[i](a),u=l.value}catch(e){return void n(e)}l.done?t(u):Promise.resolve(u).then(r,o)}function Mu(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Nu(i,r,o,a,l,"next",e)}function l(e){Nu(i,r,o,a,l,"throw",e)}a(void 0)}))}}function zu(){return zu=Mu(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=(0,ot.gql)(wu||(wu=Du(["\n mutation ReportItem($input: ReportItemInput!) {\n reportItem(input: $input) {\n ... on ReportItemResult {\n message\n }\n }\n }\n "]))),e.prev=1,e.next=4,wn(n,{input:t});case 4:return e.abrupt("return",!0);case 7:return e.prev=7,e.t0=e.catch(1),e.abrupt("return",!1);case 10:case"end":return e.stop()}}),e,null,[[1,7]])}))),zu.apply(this,arguments)}function Fu(e){var t=ou(e.articleShareURL,"link"),n=(t.copyLink,t.isLinkCopied,_u());return(0,a.useCallback)((function(){var t;n?null===(t=navigator)||void 0===t||t.share({title:e.articleTitle,url:e.articleShareURL}).then((function(){})).catch((function(){})):e.setShowShareArticleModal(!0)}),[e,n]),(0,Le.jsx)(Fe,{distribution:"between",alignment:"center",css:{gap:"$2"},children:e.hasHighlights&&(0,Le.jsx)(yr,{style:"plainIcon",onClick:function(){return e.setShowNotesSidebar(!0)},title:"View all your highlights and notes",children:(0,Le.jsx)(qi,{size:24,strokeColor:fe.colors.grayTextContrast.toString()})})})}var $u,Uu,Bu=ce("img",{borderRadius:"$2",objectFit:"cover",cursor:"pointer"});function Hu(e){return(0,Le.jsxs)(Fe,{alignment:"start",distribution:"start",css:{background:"white",width:"100%",p:"10px 0px 10px 0px",boxShadow:"rgb(120 123 134 / 12%) 0px 4px 18px"},children:[e.imageURL&&(0,Le.jsx)(Bu,{src:e.imageURL,alt:"Preview Image",width:120,height:120,onError:function(e){e.target.style.display="none"}}),(0,Le.jsx)($e,{children:(0,Le.jsxs)(De,{css:{pl:"16px",width:"100%",color:"black"},children:[(0,Le.jsx)(Wn,{style:"shareTitle",children:e.title}),(0,Le.jsx)(Vn,{style:"shareSubtitle",hideButton:!0,author:e.author,rawDisplayDate:e.publishedAt,href:e.originalArticleUrl})]})})]})}function Wu(e){return(0,Le.jsx)(iu,{url:e.url,type:"link",modalTitle:"Share Article",title:e.title,description:e.description,onOpenChange:e.onOpenChange,children:(0,Le.jsx)(Hu,{url:e.url,title:e.title,imageURL:e.imageURL,author:e.author,publishedAt:e.publishedAt,originalArticleUrl:e.originalArticleUrl,description:e.description})})}function Vu(e){var t,n,r=(t=e.color,[(n=parseInt(t.substring(1),16))>>16&255,n>>8&255,255&n]);return(0,Le.jsx)(Wn,{css:{margin:"4px",borderRadius:"32px",color:e.color,padding:"4px 8px 4px 8px",border:"1px solid rgba(".concat(r[0],", ").concat(r[1],", ").concat(r[2],", 0.40)"),backgroundColor:"rgba(".concat(r[0],", ").concat(r[1],", ").concat(r[2],", 0.20)")},children:e.text})}function qu(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function Ku(e,t,n,r,o,i,a){try{var l=e[i](a),u=l.value}catch(e){return void n(e)}l.done?t(u):Promise.resolve(u).then(r,o)}function Xu(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Ku(i,r,o,a,l,"next",e)}function l(e){Ku(i,r,o,a,l,"throw",e)}a(void 0)}))}}function Gu(e,t){return Yu.apply(this,arguments)}function Yu(){return Yu=Xu(regeneratorRuntime.mark((function e(t,n){var r,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=(0,ot.gql)(Uu||(Uu=qu(["\n mutation SetLabels($input: SetLabelsInput!) {\n setLabels(input: $input) {\n ... on SetLabelsSuccess {\n labels {\n id\n }\n }\n ... on SetLabelsError {\n errorCodes\n }\n }\n }\n "]))),e.prev=1,e.next=4,_n(r,{input:{pageId:t,labelIds:n}});case 4:return o=e.sent,console.log(o),e.abrupt("return",o);case 9:return e.prev=9,e.t0=e.catch(1),console.log("SetLabelsOutput error",e.t0),e.abrupt("return",void 0);case 13:case"end":return e.stop()}}),e,null,[[1,9]])}))),Yu.apply(this,arguments)}function Qu(e){return function(e){if(Array.isArray(e))return ts(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||es(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Zu(e,t,n,r,o,i,a){try{var l=e[i](a),u=l.value}catch(e){return void n(e)}l.done?t(u):Promise.resolve(u).then(r,o)}function Ju(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Zu(i,r,o,a,l,"next",e)}function l(e){Zu(i,r,o,a,l,"throw",e)}a(void 0)}))}}function es(e,t){if(e){if("string"==typeof e)return ts(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ts(e,t):void 0}}function ts(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ns(e){var t,n,r=(t=(0,a.useState)(e.labels),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}}(t,n)||es(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),o=r[0],i=r[1],l=function(){var e=(0,ot.gql)($u||($u=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n query GetLabels {\n labels {\n ... on LabelsSuccess {\n labels {\n id\n name\n color\n description\n createdAt\n }\n }\n ... on LabelsError {\n errorCodes\n }\n }\n }\n "]))),t=sn(e,wn),n=t.data,r=t.mutate,o=t.error,i=t.isValidating;try{var a;if(n)return{isValidating:i,labels:null===(a=n.labels)||void 0===a?void 0:a.labels,revalidate:function(){r()}}}catch(o){console.log("error",o)}return{isValidating:!1,labels:[],revalidate:function(){}}}().labels,u=(0,a.useCallback)(Ju(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Gu(e.article.id,o);case 2:n=t.sent,console.log("result of setting labels",n),e.onOpenChange(!1),e.setLabels(o);case 6:case"end":return t.stop()}}),t)}))),[e,o]),s=(0,a.useCallback)((function(e){var t=e.target.value;e.target.checked?i([].concat(Qu(o),[t])):i(o.filter((function(e){return e!==t})))}),[o]);return(0,Le.jsxs)(nl,{defaultOpen:!0,onOpenChange:u,children:[(0,Le.jsx)(ol,{}),(0,Le.jsx)(ll,{onPointerDownOutside:function(e){e.preventDefault()},css:{overflow:"auto",p:"0"},children:(0,Le.jsxs)($e,{distribution:"start",css:{p:"0"},children:[(0,Le.jsxs)(Fe,{distribution:"between",alignment:"center",css:{width:"100%"},children:[(0,Le.jsx)(Wn,{style:"modalHeadline",css:{p:"16px"},children:"Edit Labels"}),(0,Le.jsx)(yr,{css:{pt:"16px",pr:"16px"},style:"ghost",onClick:function(){e.onOpenChange(!1)},children:(0,Le.jsx)(Ql,{size:20,strokeColor:fe.colors.grayText.toString()})})]}),l&&l.map((function(e){return(0,Le.jsxs)(Fe,{css:{height:"50px",verticalAlign:"middle"},onClick:function(){o.includes(e.id)?i(o.filter((function(t){return t!==e.id}))):i([].concat(Qu(o),[e.id]))},children:[(0,Le.jsx)(Vu,{color:e.color,text:e.name}),(0,Le.jsx)("input",{type:"checkbox",value:e.id,onChange:s,checked:o.includes(e.id)})]},e.id)})),(0,Le.jsx)(Fe,{css:{width:"100%",mb:"16px"},alignment:"center",children:(0,Le.jsx)(yr,{style:"ctaDarkYellow",onClick:u,children:"Save"})})]})})]})}var rs=o(5847),os=o(5632);function is(e,t,n,r,o,i,a){try{var l=e[i](a),u=l.value}catch(e){return void n(e)}l.done?t(u):Promise.resolve(u).then(r,o)}function as(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){is(i,r,o,a,l,"next",e)}function l(e){is(i,r,o,a,l,"throw",e)}a(void 0)}))}}function ls(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,l=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(l)throw o}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return us(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?us(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function us(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ss(e){var t,n,r,o,i,l,u,s,c=(0,os.useRouter)(),f=ls((0,a.useState)(!1),2),d=f[0],h=f[1],p=ls((0,a.useState)(!1),2),g=p[0],v=p[1],m=ls((0,a.useState)(!1),2),y=m[0],b=m[1],w=ls((0,a.useState)(!1),2),_=w[0],x=w[1],E=ls((0,a.useState)(null!==(t=e.fontSize)&&void 0!==t?t:20),2),S=E[0],k=E[1],C=ls((0,a.useState)((null===(n=e.article.labels)||void 0===n?void 0:n.map((function(e){return e.id})))||[]),2),O=C[0],P=C[1],T=function(){var e=as(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return k(t),e.next=3,An({fontSize:t});case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();Wi(function(e,t){return[{shortcutKeys:["o"],actionDescription:"Open original article page",shortcutKeyDescription:"o",callback:function(){return t("openOriginalArticle")}},{shortcutKeys:["u"],actionDescription:"Back to library",shortcutKeyDescription:"u",callback:function(){return null==e?void 0:e.push("/home")}},{shortcutKeys:["+"],actionDescription:"Increase font size",shortcutKeyDescription:"+",callback:function(){return t("incrementFontSize")}},{shortcutKeys:["-"],actionDescription:"Decrease font size",shortcutKeyDescription:"-",callback:function(){return t("decrementFontSize")}},{shortcutKeys:["l"],actionDescription:"Edit labels",shortcutKeyDescription:"l",callback:function(){return t("editLabels")}}]}(c,function(){var t=as(regeneratorRuntime.mark((function t(n){var r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:t.t0=n,t.next="openOriginalArticle"===t.t0?3:"incrementFontSize"===t.t0?6:"decrementFontSize"===t.t0?9:"editLabels"===t.t0?12:14;break;case 3:return(r=e.article.url)&&window.open(r,"_blank"),t.abrupt("break",14);case 6:return t.next=8,T(Math.min(S+2,28));case 8:case 11:return t.abrupt("break",14);case 9:return t.next=11,T(Math.max(S-2,10));case 12:return v(!0),t.abrupt("break",14);case 14:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}())),(0,a.useEffect)((function(){var e=function(){var e=as(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,T(Math.min(S+2,28));case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),t=function(){var e=as(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,T(Math.max(S-2,10));case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),n=function(){Nn(le.Dark)},r=function(){Nn(le.Light)};return document.addEventListener("increaseFontSize",e),document.addEventListener("decreaseFontSize",t),document.addEventListener("switchToDarkMode",n),document.addEventListener("switchToLightMode",r),function(){document.removeEventListener("increaseFontSize",e),document.removeEventListener("decreaseFontSize",t),document.removeEventListener("switchToDarkMode",n),document.removeEventListener("switchToLightMode",r)}})),(0,a.useEffect)((function(){var t;null===(t=window.analytics)||void 0===t||t.track("link_read",{link:e.article.id,slug:e.article.slug,url:e.article.originalArticleUrl})}),[e.article]);var R={margin:null!==(r=e.margin)&&void 0!==r?r:140,fontSize:S,fontFamily:null!==(o=e.fontFamily)&&void 0!==o?o:"inter",readerFontColor:fe.colors.readerFont.toString(),readerFontColorTransparent:fe.colors.readerFontTransparent.toString(),readerTableHeaderColor:fe.colors.readerTableHeader.toString(),readerHeadersColor:fe.colors.readerHeader.toString()};return(0,Le.jsxs)(Le.Fragment,{children:[!e.isAppleAppEmbed&&(0,Le.jsxs)(Le.Fragment,{children:[(0,Le.jsx)(rs.default,{async:!0,src:"/static/scripts/mathJaxConfiguration.js"}),(0,Le.jsx)(rs.default,{async:!0,id:"MathJax-script",src:"https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"})]}),(0,Le.jsxs)(De,{id:"article-container",css:{padding:"16px",maxWidth:"94%","--text-font-family":R.fontFamily,"--text-font-size":"".concat(R.fontSize,"px"),"--line-height":"150%","--blockquote-padding":"0.5em 1em","--blockquote-icon-font-size":"1.3rem","--figure-margin":"1.6rem auto","--hr-margin":"1em","--font-color":R.readerFontColor,"--font-color-transparent":R.readerFontColorTransparent,"--table-header-color":R.readerTableHeaderColor,"--headers-color":R.readerHeadersColor,"@sm":{"--blockquote-padding":"1em 2em","--blockquote-icon-font-size":"1.7rem","--figure-margin":"2.6875rem auto","--hr-margin":"2em",margin:"30px ".concat(R.margin/2,"px")},"@md":{maxWidth:"92%"},"@lg":{margin:"30px 0",width:"auto",maxWidth:1024-R.margin}},children:[(0,Le.jsxs)($e,{alignment:"start",distribution:"start",children:[(0,Le.jsx)(Wn,{style:"boldHeadline",css:{fontFamily:R.fontFamily},children:e.article.title}),(0,Le.jsx)(Vn,{rawDisplayDate:null!==(i=e.article.publishedAt)&&void 0!==i?i:e.article.createdAt,author:e.article.author,href:e.article.url}),(0,Le.jsx)(Fu,{articleTitle:e.article.title,articleShareURL:e.highlightsBaseURL,setShowNotesSidebar:b,setShowShareArticleModal:h,hasHighlights:(null===(l=e.article.highlights)||void 0===l?void 0:l.length)>0})]}),(0,Le.jsx)(Hn,{articleId:e.article.id,content:e.article.content,initialAnchorIndex:e.article.readingProgressAnchorIndex,scrollElementRef:e.scrollElementRef,articleMutations:e.articleMutations}),(0,Le.jsxs)(yr,{style:"ghost",css:{p:0,my:"$4",color:"$error",fontSize:"$1","&:hover":{opacity:.8}},onClick:function(){return x(!0)},children:["Report issues with this page -",">"]}),(0,Le.jsx)(De,{css:{height:"100px"}})]}),(0,Le.jsx)(Ru,{viewerUsername:e.viewerUsername,highlights:e.article.highlights,articleTitle:e.article.title,articleAuthor:null!==(u=e.article.author)&&void 0!==u?u:"",articleId:e.article.id,isAppleAppEmbed:e.isAppleAppEmbed,highlightBarDisabled:e.highlightBarDisabled,showNotesSidebar:y,highlightsBaseURL:e.highlightsBaseURL,setShowNotesSidebar:b,articleMutations:e.articleMutations}),_?(0,Le.jsx)(Iu,{onCommit:function(t){!function(e){zu.apply(this,arguments)}({pageId:e.article.id,itemUrl:e.article.url,reportTypes:["CONTENT_DISPLAY"],reportComment:t})},onOpenChange:function(e){return x(e)}}):null,d&&(0,Le.jsx)(Wu,{url:"".concat(vn,"/").concat(e.viewerUsername,"/").concat(e.article.slug,"/highlights?r=true"),title:e.article.title,imageURL:e.article.image,author:e.article.author,publishedAt:null!==(s=e.article.publishedAt)&&void 0!==s?s:e.article.createdAt,description:e.article.description,originalArticleUrl:e.article.originalArticleUrl,onOpenChange:function(e){return h(e)}}),g&&(0,Le.jsx)(ns,{labels:O,article:e.article,onOpenChange:function(){v(!1)},setLabels:function(e){P(e)}})]})}var cs=o(6062),fs=o.n(cs),ds=o(4036),hs=o.n(ds),ps=o(6793),gs=o.n(ps),vs=o(7892),ms=o.n(vs),ys=o(1173),bs=o.n(ys),ws=o(2464),_s=o.n(ws),xs=o(8936),Es={};Es.styleTagTransform=_s(),Es.setAttributes=ms(),Es.insert=gs().bind(null,"head"),Es.domAPI=hs(),Es.insertStyleElement=bs(),fs()(xs.Z,Es),xs.Z&&xs.Z.locals&&xs.Z.locals;var Ss=o(3139),ks={};function Cs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Os(t){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?Cs(Object(r),!0).forEach((function(n){e(t,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Cs(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}ks.styleTagTransform=_s(),ks.setAttributes=ms(),ks.insert=gs().bind(null,"head"),ks.domAPI=hs(),ks.insertStyleElement=bs(),fs()(Ss.Z,ks),Ss.Z&&Ss.Z.locals&&Ss.Z.locals;var Ps=function(){var e,n=(e=i().mark((function e(t,n){var r,o,a,l;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,null===(r=window)||void 0===r||null===(o=r.webkit)||void 0===o||null===(a=o.messageHandlers.articleAction)||void 0===a?void 0:a.postMessage(Os({actionID:t},n));case 2:return l=e.sent,console.log("action result",l,l.result),e.abrupt("return",l.result);case 5:case"end":return e.stop()}}),e)})),function(){var n=this,r=arguments;return new Promise((function(o,i){var a=e.apply(n,r);function l(e){t(a,o,i,l,u,"next",e)}function u(e){t(a,o,i,l,u,"throw",e)}l(void 0)}))});return function(e,t){return n.apply(this,arguments)}}(),Ts=function(){var e;return function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if("undefined"!=typeof window){var t=window.localStorage.getItem(In);t&&Object.values(le).includes(t)&&(e?Dn(t):Nn(t))}}(!1),(0,Le.jsx)(Le.Fragment,{children:(0,Le.jsx)(De,{css:{overflowY:"auto",height:"100%",width:"100vw"},children:(0,Le.jsx)($e,{alignment:"center",distribution:"center",className:"disable-webkit-callout",children:(0,Le.jsx)(ss,{viewerUsername:"test",article:window.omnivoreArticle,scrollElementRef:a.createRef(),isAppleAppEmbed:!0,highlightBarDisabled:!0,highlightsBaseURL:"https://example.com",fontSize:null!==(e=window.fontSize)&&void 0!==e?e:18,margin:0,articleMutations:{createHighlightMutation:function(e){return Ps("createHighlight",e)},deleteHighlightMutation:function(e){return Ps("deleteHighlight",{highlightId:e})},mergeHighlightMutation:function(e){return Ps("mergeHighlight",e)},updateHighlightMutation:function(e){return Ps("updateHighlight",e)},articleReadingProgressMutation:function(e){return Ps("articleReadingProgress",e)}}})})})})};u.render((0,Le.jsx)(Ts,{}),document.getElementById("root"))})()})(); |