omnivore/apple/OmnivoreKit/Sources/Views/Resources/bundle.js
2022-06-29 22:09:52 -07:00

2 lines
No EOL
484 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]"],s=ArrayBuffer.isView||function(e){return e&&l.indexOf(Object.prototype.toString.call(e))>-1};function u(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 p(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function h(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=h(t);return t.readAsArrayBuffer(e),n}function m(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function v(){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=m(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):a&&(ArrayBuffer.prototype.isPrototypeOf(e)||s(e))?this._bodyArrayBuffer=m(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=p(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?p(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(g)}),this.text=function(){var e,t,n,r=p(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,n=h(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=u(e),t=c(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},d.prototype.delete=function(e){delete this.map[u(e)]},d.prototype.get=function(e){return e=u(e),this.has(e)?this.map[e]:null},d.prototype.has=function(e){return this.map.hasOwnProperty(u(e))},d.prototype.set=function(e,t){this.map[u(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 x(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})},v.call(b.prototype),v.call(x.prototype),x.prototype.clone=function(){return new x(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new d(this.headers),url:this.url})},x.error=function(){var e=new x(null,{status:0,statusText:""});return e.type="error",e};var E=[301,302,303,307,308];x.redirect=function(e,t){if(-1===E.indexOf(t))throw new RangeError("Invalid status code");return new x(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 k(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 s(){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 x(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",s),l.onreadystatechange=function(){4===l.readyState&&a.signal.removeEventListener("abort",s)}),l.send(void 0===a._bodyInit?null:a._bodyInit)}))}k.polyfill=!0,e.fetch||(e.fetch=k,e.Headers=d,e.Request=b,e.Response=x),t.Headers=d,t.Request=b,t.Response=x,t.fetch=k,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},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),s=e.substring(0,l);e=e.substring(l),n=n.substring(l),l=this.diff_commonSuffix(e,n);var u=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 s&&c.unshift(new t.Diff(0,s)),u&&c.push(new t.Diff(0,u)),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,s=e.length>r.length?r:e,u=l.indexOf(s);if(-1!=u)return a=[new t.Diff(1,l.substring(0,u)),new t.Diff(0,s),new t.Diff(1,l.substring(u+s.length))],e.length>r.length&&(a[0][0]=a[2][0]=n),a;if(1==s.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],p=c[2],h=c[3],g=c[4],m=this.diff_main(f,p,o,i),v=this.diff_main(d,h,o,i);return m.concat([new t.Diff(0,g)],v)}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 s=0,u=0,c=0,f="",d="";s<l.length;){switch(l[s][0]){case 1:c++,d+=l[s][1];break;case n:u++,f+=l[s][1];break;case 0:if(u>=1&&c>=1){l.splice(s-u-c,u+c),s=s-u-c;for(var p=this.diff_main(f,d,!1,o),h=p.length-1;h>=0;h--)l.splice(s,0,p[h]);s+=p.length}c=0,u=0,f="",d=""}s++}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),s=l,u=2*l,c=new Array(u),f=new Array(u),d=0;d<u;d++)c[d]=-1,f[d]=-1;c[s+1]=0,f[s+1]=0;for(var p=i-a,h=p%2!=0,g=0,m=0,v=0,y=0,b=0;b<l&&!((new Date).getTime()>o);b++){for(var w=-b+g;w<=b-m;w+=2){for(var x=s+w,E=(C=w==-b||w!=b&&c[x-1]<c[x+1]?c[x+1]:c[x-1]+1)-w;C<i&&E<a&&e.charAt(C)==r.charAt(E);)C++,E++;if(c[x]=C,C>i)m+=2;else if(E>a)g+=2;else if(h&&(_=s+p-w)>=0&&_<u&&-1!=f[_]&&C>=(S=i-f[_]))return this.diff_bisectSplit_(e,r,C,E,o)}for(var k=-b+v;k<=b-y;k+=2){for(var S,_=s+k,O=(S=k==-b||k!=b&&f[_-1]<f[_+1]?f[_+1]:f[_-1]+1)-k;S<i&&O<a&&e.charAt(i-S-1)==r.charAt(a-O-1);)S++,O++;if(f[_]=S,S>i)y+=2;else if(O>a)v+=2;else if(!h){var C;if((x=s+p-k)>=0&&x<u&&-1!=c[x])if(E=s+(C=c[x])-x,C>=(S=i-S))return this.diff_bisectSplit_(e,r,C,E,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),s=t.substring(r),u=this.diff_main(i,a,!1,o),c=this.diff_main(l,s,!1,o);return u.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 s=e.substring(o,a+1);(r.hasOwnProperty?r.hasOwnProperty(s):void 0!==r[s])?t+=String.fromCharCode(r[s]):(l==i&&(s=e.substring(o),a=e.length),t+=String.fromCharCode(l),r[s]=l,n[l++]=s),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),s=t.indexOf(l);if(-1==s)return i;a+=s,0!=s&&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,s=e.substring(n,n+Math.floor(e.length/4)),u=-1,c="";-1!=(u=t.indexOf(s,u+1));){var f=o.diff_commonPrefix(e.substring(n),t.substring(u)),d=o.diff_commonSuffix(e.substring(0,n),t.substring(0,u));c.length<d+f&&(c=t.substring(u-d,u)+t.substring(u,u+f),r=e.substring(0,n-d),i=e.substring(n+f),a=t.substring(0,u-d),l=t.substring(u+f))}return 2*c.length>=e.length?[r,i,a,l,c]:null}var a,l,s,u,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],s=a[1],u=a[2],c=a[3]):(u=a[0],c=a[1],l=a[2],s=a[3]),[l,s,u,c,a[4]]):null},t.prototype.diff_cleanupSemantic=function(e){for(var r=!1,o=[],i=0,a=null,l=0,s=0,u=0,c=0,f=0;l<e.length;)0==e[l][0]?(o[i++]=l,s=c,u=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(s,u)&&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,s=0,u=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],p=e[l][1],h=this.diff_commonOverlap_(d,p),g=this.diff_commonOverlap_(p,d);h>=g?(h>=d.length/2||h>=p.length/2)&&(e.splice(l,0,new t.Diff(0,p.substring(0,h))),e[l-1][1]=d.substring(0,d.length-h),e[l+1][1]=p.substring(h),l++):(g>=d.length/2||g>=p.length/2)&&(e.splice(l,0,new t.Diff(0,d.substring(0,g))),e[l-1][0]=1,e[l-1][1]=p.substring(0,p.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_),s=a&&o.match(t.whitespaceRegex_),u=l&&r.match(t.linebreakRegex_),c=s&&o.match(t.linebreakRegex_),f=u&&e.match(t.blanklineEndRegex_),d=c&&n.match(t.blanklineStartRegex_);return f||d?5:u||c?4:i&&!l&&s?3:l||s?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 s=i.substring(i.length-l);o=o.substring(0,o.length-l),i=s+i.substring(0,i.length-l),a=s+a}for(var u=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 p=n(o,i)+n(i,a);p>=d&&(d=p,u=o,c=i,f=a)}e[r-1][1]!=u&&(u?e[r-1][1]=u:(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,s=!1,u=!1,c=!1,f=!1;l<e.length;)0==e[l][0]?(e[l][1].length<this.Diff_EditCost&&(c||f)?(o[i++]=l,s=c,u=f,a=e[l][1]):(i=0,a=null),c=f=!1):(e[l][0]==n?f=!0:c=!0,a&&(s&&u&&c&&f||a.length<this.Diff_EditCost/2&&s+u+c+f==3)&&(e.splice(o[i-1],0,new t.Diff(n,a)),e[o[i-1]+1][0]=1,i--,a=null,s&&u?(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="",s="";o<e.length;)switch(e[o][0]){case 1:a++,s+=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(s,l))&&(o-i-a>0&&0==e[o-i-a-1][0]?e[o-i-a-1][1]+=s.substring(0,r):(e.splice(0,0,new t.Diff(0,s.substring(0,r))),o++),s=s.substring(r),l=l.substring(r)),0!==(r=this.diff_commonSuffix(s,l))&&(e[o][1]=s.substring(s.length-r)+e[o][1],s=s.substring(0,s.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++),s.length&&(e.splice(o,0,new t.Diff(1,s)),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="",s=""}""===e[e.length-1][1]&&e.pop();var u=!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),u=!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),u=!0)),o++;u&&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 s=e[l][0],u=e[l][1].replace(r,"&amp;").replace(o,"&lt;").replace(i,"&gt;").replace(a,"&para;<br>");switch(s){case 1:t[l]='<ins style="background:#e6ffe6;">'+u+"</ins>";break;case n:t[l]='<del style="background:#ffe6e6;">'+u+"</del>";break;case 0:t[l]="<span>"+u+"</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),s=0;s<l.length;s++){var u=l[s].substring(1);switch(l[s].charAt(0)){case"+":try{o[i++]=new t.Diff(1,decodeURI(u))}catch(e){throw new Error("Illegal escape in diff_fromDelta: "+u)}break;case"-":case"=":var c=parseInt(u,10);if(isNaN(c)||c<0)throw new Error("Invalid number in diff_fromDelta: "+u);var f=e.substring(a,a+=c);"="==l[s].charAt(0)?o[i++]=new t.Diff(0,f):o[i++]=new t.Diff(n,f);break;default:if(l[s])throw new Error("Invalid diff operation in diff_fromDelta: "+l[s])}}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 s,u,c=1<<t.length-1;l=-1;for(var f,d=t.length+e.length,p=0;p<t.length;p++){for(s=0,u=d;s<u;)i(p,n+u)<=a?s=u:d=u,u=Math.floor((d-s)/2+s);d=u;var h=Math.max(1,n-u+1),g=Math.min(n+u,e.length)+t.length,m=Array(g+2);m[g+1]=(1<<p)-1;for(var v=g;v>=h;v--){var y=r[e.charAt(v-1)];if(m[v]=0===p?(m[v+1]<<1|1)&y:(m[v+1]<<1|1)&y|(f[v+1]|f[v])<<1|1|f[v+1],m[v]&c){var b=i(p,v-1);if(b<=a){if(a=b,!((l=v-1)>n))break;h=Math.max(1,2*n-l)}}}if(i(p+1,n)>a)break;f=m}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=[],s=new t.patch_obj,u=0,c=0,f=0,d=i,p=i,h=0;h<a.length;h++){var g=a[h][0],m=a[h][1];switch(u||0===g||(s.start1=c,s.start2=f),g){case 1:s.diffs[u++]=a[h],s.length2+=m.length,p=p.substring(0,f)+m+p.substring(f);break;case n:s.length1+=m.length,s.diffs[u++]=a[h],p=p.substring(0,f)+p.substring(f+m.length);break;case 0:m.length<=2*this.Patch_Margin&&u&&a.length!=h+1?(s.diffs[u++]=a[h],s.length1+=m.length,s.length2+=m.length):m.length>=2*this.Patch_Margin&&u&&(this.patch_addContext_(s,d),l.push(s),s=new t.patch_obj,u=0,d=p,c=f)}1!==g&&(c+=m.length),g!==n&&(f+=m.length)}return u&&(this.patch_addContext_(s,d),l.push(s)),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,s,u=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),u))&&(-1==(f=this.match_main(t,c.substring(c.length-this.Match_MaxBits),u+c.length-this.Match_MaxBits))||l>=f)&&(l=-1):l=this.match_main(t,c,u),-1==l)i[a]=!1,o-=e[a].length2-e[a].length1;else if(i[a]=!0,o=l-u,c==(s=-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,s,!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 p,h=0,g=0;g<e[a].diffs.length;g++){var m=e[a].diffs[g];0!==m[0]&&(p=this.diff_xIndex(d,h)),1===m[0]?t=t.substring(0,l+p)+m[1]+t.substring(l+p):m[0]===n&&(t=t.substring(0,l+p)+t.substring(l+this.diff_xIndex(d,h+m[1].length))),m[0]!==n&&(h+=m[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,s="";0!==i.diffs.length;){var u=new t.patch_obj,c=!0;for(u.start1=a-s.length,u.start2=l-s.length,""!==s&&(u.length1=u.length2=s.length,u.diffs.push(new t.Diff(0,s)));0!==i.diffs.length&&u.length1<r-this.Patch_Margin;){var f=i.diffs[0][0],d=i.diffs[0][1];1===f?(u.length2+=d.length,l+=d.length,u.diffs.push(i.diffs.shift()),c=!1):f===n&&1==u.diffs.length&&0==u.diffs[0][0]&&d.length>2*r?(u.length1+=d.length,a+=d.length,c=!1,u.diffs.push(new t.Diff(f,d)),i.diffs.shift()):(d=d.substring(0,r-u.length1-this.Patch_Margin),u.length1+=d.length,a+=d.length,0===f?(u.length2+=d.length,l+=d.length):c=!1,u.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))}s=(s=this.diff_text2(u.diffs)).substring(s.length-this.Patch_Margin);var p=this.diff_text1(i.diffs).substring(0,this.Patch_Margin);""!==p&&(u.length1+=p.length,u.length2+=p.length,0!==u.diffs.length&&0===u.diffs[u.diffs.length-1][0]?u.diffs[u.diffs.length-1][1]+=p:u.diffs.push(new t.Diff(0,p))),c||e.splice(++o,0,u)}}},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 s=new t.patch_obj;for(r.push(s),s.start1=parseInt(l[1],10),""===l[2]?(s.start1--,s.length1=1):"0"==l[2]?s.length1=0:(s.start1--,s.length1=parseInt(l[2],10)),s.start2=parseInt(l[3],10),""===l[4]?(s.start2--,s.length2=1):"0"==l[4]?s.length2=0:(s.start2--,s.length2=parseInt(l[4],10)),i++;i<o.length;){var u=o[i].charAt(0);try{var c=decodeURI(o[i].substring(1))}catch(e){throw new Error("Illegal escape in patch_fromText: "+c)}if("-"==u)s.diffs.push(new t.Diff(n,c));else if("+"==u)s.diffs.push(new t.Diff(1,c));else if(" "==u)s.diffs.push(new t.Diff(0,c));else{if("@"==u)break;if(""!==u)throw new Error('Invalid patch mode "'+u+'" 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 s=n?n+".":"";if("undefined"!=typeof FileList&&t instanceof FileList)i=Array.prototype.map.call(t,(function(e,t){return l([""+s+t],e),null}));else if(Array.isArray(t))i=t.map((function(t,n){var r=e(t,""+s+n,o);return r.files.forEach(l),r.clone}));else if(t&&t.constructor===Object)for(var u in i={},t){var c=e(t[u],""+s+u,o);c.files.forEach(l),i[u]=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},8749: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,s=r.files;if(0===s.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 u=e.reduce((function(e,n,r){return e.push({query:n,variables:t?t[r]:void 0}),e}),[]);return JSON.stringify(u)}var c=new("undefined"==typeof FormData?i.default:FormData);c.append("operations",JSON.stringify(l));var f={},d=0;return s.forEach((function(e){f[++d]=e})),c.append("map",JSON.stringify(f)),d=0,s.forEach((function(e,t){c.append(""+ ++d,t)})),c}},6647: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{s(r.next(e))}catch(e){i(e)}}function l(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,l)}s((r=r.apply(e,t||[])).next())}))},s=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])}}},u=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,p=n(3083),h=c(n(8749)),g=n(8328),m=n(8328);Object.defineProperty(t,"ClientError",{enumerable:!0,get:function(){return m.ClientError}});var v=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,u=e.fetch,c=e.fetchOptions;return l(void 0,void 0,void 0,(function(){var e;return s(this,(function(l){switch(l.label){case 0:return e=h.default(n,o,i),[4,u(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,u=e.fetch,c=e.fetchOptions;return l(void 0,void 0,void 0,(function(){var e;return s(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,u(t+"?"+e,r({method:"GET",headers:a},c))];case 1:return[2,l.sent()]}}))}))},x=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,s=o.method,c=void 0===s?"POST":s,d=u(o,["headers","fetch","method"]);return E({url:this.url,query:e,variables:t,headers:r(r({},v(i)),v(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,p,h,g,m,y;return s(this,(function(s){switch(s.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,p=u(o,["headers","fetch","method"]),h=this.url,g=_(e),m=g.query,y=g.operationName,[4,E({url:h,query:m,variables:t,headers:r(r({},v(i)),v(n)),operationName:y,fetch:l,method:d,fetchOptions:p})];case 1:return[2,s.sent().data]}}))}))},e.prototype.batchRequests=function(e,t){return l(this,void 0,void 0,(function(){var n,o,i,a,l,c,d,p,h,g;return s(this,(function(s){switch(s.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=u(n,["headers","fetch","method"]),p=this.url,h=e.map((function(e){return _(e.document).query})),g=e.map((function(e){return e.variables})),[4,E({url:p,query:h,variables:g,headers:r(r({},v(o)),v(t)),operationName:void 0,fetch:a,method:c,fetchOptions:d})];case 1:return[2,s.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 E(e){var t=e.url,n=e.query,o=e.variables,i=e.headers,a=e.operationName,u=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,p,h,m,v,y;return s(this,(function(s){switch(s.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:u,fetchOptions:d})];case 1:return[4,S(c=s.sent())];case 2:if(p=s.sent(),h=l&&Array.isArray(p)?!p.some((function(e){return!e.data})):!!p.data,c.ok&&!p.errors&&h)return m=c.headers,v=c.status,[2,r(r({},l?{data:p}:p),{headers:m,status:v})];throw y="string"==typeof p?{error:p}:p,new g.ClientError(r(r({},y),{status:c.status,headers:c.headers}),{query:n,variables:o})}}))}))}function k(e,t,n,r){return l(this,void 0,void 0,(function(){return s(this,(function(o){return[2,new x(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 _(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:p.print(e),operationName:n}}t.GraphQLClient=x,t.rawRequest=function(e,t,n,r){return l(this,void 0,void 0,(function(){return s(this,(function(o){return[2,new x(e).rawRequest(t,n,r)]}))}))},t.request=k,t.batchRequests=function(e,t,n){return l(this,void 0,void 0,(function(){return s(this,(function(r){return[2,new x(e).batchRequests(t,n)]}))}))},t.default=k,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]:"")}),"")}},8328: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},2678:(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(5006)),o=i(n(8019));function i(e){return e&&e.__esModule?e:{default:e}}},8048:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return a(e,[])};var r,o=(r=n(8019))&&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)}}},5006:(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.")}},8019:(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},4560:(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(2678))&&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)},9501:(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,s="";return!l||r&&o||(s+="\n"+t),s+=t?e.replace(/\n/g,"\n"+t):e,l&&(s+="\n"),'"""'+s.replace(/"""/g,'\\"""')+'"""'}},3083:(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(2624),o=n(9501),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=u("(",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+u(" = ",r)+u(" ",l(o," "))},SelectionSet:function(e){return s(e.selections)},Field:function(e){var t=e.alias,n=e.name,r=e.arguments,o=e.directives,i=e.selectionSet,a=u("",t,": ")+n,s=a+u("(",l(r,", "),")");return s.length>80&&(s=a+u("(\n",c(l(r,"\n")),"\n)")),l([s,l(o," "),i]," ")},Argument:function(e){return e.name+": "+e.value},FragmentSpread:function(e){return"..."+e.name+u(" ",l(e.directives," "))},InlineFragment:function(e){var t=e.typeCondition,n=e.directives,r=e.selectionSet;return l(["...",u("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(u("(",l(r,", "),")")," ")+"on ".concat(n," ").concat(u("",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+u("(",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," "),s(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,u("implements ",l(n," & ")),l(r," "),s(o)]," ")})),FieldDefinition:a((function(e){var t=e.name,n=e.arguments,r=e.type,o=e.directives;return t+(d(n)?u("(\n",c(l(n,"\n")),"\n)"):u("(",l(n,", "),")"))+": "+r+u(" ",l(o," "))})),InputValueDefinition:a((function(e){var t=e.name,n=e.type,r=e.defaultValue,o=e.directives;return l([t+": "+n,u("= ",r),l(o," ")]," ")})),InterfaceTypeDefinition:a((function(e){var t=e.name,n=e.interfaces,r=e.directives,o=e.fields;return l(["interface",t,u("implements ",l(n," & ")),l(r," "),s(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," "),s(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," "),s(r)]," ")})),DirectiveDefinition:a((function(e){var t=e.name,n=e.arguments,r=e.repeatable,o=e.locations;return"directive @"+t+(d(n)?u("(\n",c(l(n,"\n")),"\n)"):u("(",l(n,", "),")"))+(r?" repeatable":"")+" on "+l(o," | ")})),SchemaExtension:function(e){var t=e.directives,n=e.operationTypes;return l(["extend schema",l(t," "),s(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,u("implements ",l(n," & ")),l(r," "),s(o)]," ")},InterfaceTypeExtension:function(e){var t=e.name,n=e.interfaces,r=e.directives,o=e.fields;return l(["extend interface",t,u("implements ",l(n," & ")),l(r," "),s(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," "),s(r)]," ")},InputObjectTypeExtension:function(e){var t=e.name,n=e.directives,r=e.fields;return l(["extend input",t,l(n," "),s(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 s(e){return u("{\n",c(l(e,"\n")),"\n}")}function u(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return null!=t&&""!==t?e+t+n:""}function c(e){return u(" ",e.replace(/\n/g,"\n "))}function f(e){return-1!==e.indexOf("\n")}function d(e){return null!=e&&e.some(f)}},2624:(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,u=Array.isArray(e),c=[e],f=-1,d=[],p=void 0,h=void 0,g=void 0,m=[],v=[],y=e;do{var b=++f===c.length,w=b&&0!==d.length;if(b){if(h=0===v.length?void 0:m[m.length-1],p=g,g=v.pop(),w){if(u)p=p.slice();else{for(var x={},E=0,k=Object.keys(p);E<k.length;E++){var S=k[E];x[S]=p[S]}p=x}for(var _=0,O=0;O<d.length;O++){var C=d[O][0],P=d[O][1];u&&(C-=_),u&&null===P?(p.splice(C,1),_++):p[C]=P}}f=r.index,c=r.keys,d=r.edits,u=r.inArray,r=r.prev}else{if(h=g?u?f:c[f]:void 0,null==(p=g?g[h]:y))continue;g&&m.push(h)}var L,T=void 0;if(!Array.isArray(p)){if(!(0,i.isNode)(p))throw new Error("Invalid AST Node: ".concat((0,o.default)(p),"."));var j=s(t,p.kind,b);if(j){if((T=j.call(t,p,h,g,m,v))===l)break;if(!1===T){if(!b){m.pop();continue}}else if(void 0!==T&&(d.push([h,T]),!b)){if(!(0,i.isNode)(T)){m.pop();continue}p=T}}}void 0===T&&w&&d.push([h,p]),b?m.pop():(r={inArray:u,index:f,keys:c,edits:d,prev:r},c=(u=Array.isArray(p))?p:null!==(L=n[p.kind])&&void 0!==L?L:[],f=-1,d=[],g&&v.push(g),g=p)}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=s(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=s(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=s,t.BREAK=t.QueryDocumentKeys=void 0;var r,o=(r=n(8048))&&r.__esModule?r:{default:r},i=n(4560),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 s(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},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,s=document,u=r.async,c=(r.numRetries||0)+1,f=r.before||e,d=t.replace(/[\?|#].*$/,""),p=t.replace(/^(css|img)!/,"");o=o||0,/(^css!|\.css$)/.test(d)?((l=s.createElement("link")).rel="stylesheet",l.href=p,(i="hideFocus"in l)&&l.relList&&(i=0,l.rel="preload",l.as="style")):/(^img!|\.(png|gif|jpg|svg|webp)$)/.test(d)?(l=s.createElement("img")).src=p:((l=s.createElement("script")).src=t,l.async=void 0===u||u),l.onload=l.onerror=l.onbeforeload=function(e){var s=e.type[0];if(i)try{l.sheet.cssText.length||(s="e")}catch(e){18!=e.code&&(s="e")}if("e"==s){if((o+=1)<c)return a(t,n,r,o)}else if("preload"==l.rel&&"style"==l.as)return l.rel="stylesheet";n(t,s,e.defaultPrevented)},!1!==f(t,l)&&s.head.appendChild(l)}function l(e,n,r){var l,s;if(n&&n.trim&&(l=n),s=(l?r:n)||{},l){if(l in t)throw"LoadJS";t[l]=!0}function u(t,n){!function(e,t,n){var r,o,i=(e=e.push?e:[e]).length,l=i,s=[];for(r=function(e,n,r){if("e"==n&&s.push(e),"b"==n){if(!r)return;s.push(e)}--i||t(s)},o=0;o<l;o++)a(e[o],r,n)}(e,(function(e){i(s,e),t&&i({success:t,error:n},e),o(l,e)}),s)}if(s.returnPromise)return new Promise(u);u()}return l.ready=function(e,t){return function(e,t){e=e.push?e:[e];var o,i,a,l=[],s=e.length,u=s;for(o=function(e,n){n.length&&l.push(e),--u||t(l)};s--;)i=e[s],(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)},857:(e,t,n)=>{var r=n(7772).Symbol;e.exports=r},3366:(e,t,n)=>{var r=n(857),o=n(2107),i=n(7157),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?o(e):i(e)}},1704:(e,t,n)=>{var r=n(2153),o=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(o,""):e}},1242:(e,t,n)=>{var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},2107:(e,t,n)=>{var r=n(857),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,l=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,l),n=e[l];try{e[l]=void 0;var r=!0}catch(e){}var o=a.call(e);return r&&(t?e[l]=n:delete e[l]),o}},7157:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},7772:(e,t,n)=>{var r=n(1242),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},2153:e=>{var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},4073:(e,t,n)=>{var r=n(9259),o=n(1100),i=n(7642),a=Math.max,l=Math.min;e.exports=function(e,t,n){var s,u,c,f,d,p,h=0,g=!1,m=!1,v=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function y(t){var n=s,r=u;return s=u=void 0,h=t,f=e.apply(r,n)}function b(e){return h=e,d=setTimeout(x,t),g?y(e):f}function w(e){var n=e-p;return void 0===p||n>=t||n<0||m&&e-h>=c}function x(){var e=o();if(w(e))return E(e);d=setTimeout(x,function(e){var n=t-(e-p);return m?l(n,c-(e-h)):n}(e))}function E(e){return d=void 0,v&&s?y(e):(s=u=void 0,f)}function k(){var e=o(),n=w(e);if(s=arguments,u=this,p=e,n){if(void 0===d)return b(p);if(m)return clearTimeout(d),d=setTimeout(x,t),y(p)}return void 0===d&&(d=setTimeout(x,t)),f}return t=i(t)||0,r(n)&&(g=!!n.leading,c=(m="maxWait"in n)?a(i(n.maxWait)||0,t):c,v="trailing"in n?!!n.trailing:v),k.cancel=function(){void 0!==d&&clearTimeout(d),h=0,s=p=u=d=void 0},k.flush=function(){return void 0===d?f:E(o())},k}},9259:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},5125:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},4795:(e,t,n)=>{var r=n(3366),o=n(5125);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==r(e)}},1100:(e,t,n)=>{var r=n(7772);e.exports=function(){return r.Date.now()}},7642:(e,t,n)=>{var r=n(1704),o=n(9259),i=n(4795),a=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,s=/^0o[0-7]+$/i,u=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return NaN;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=l.test(e);return n||s.test(e)?u(e.slice(2),n?2:8):a.test(e)?NaN:+e}},9410:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),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 s;(null==n||null===(s=n.tagName)||void 0===s?void 0:s.toLowerCase())===e&&l.push(n)}const u=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)})),u.forEach((e=>n.insertBefore(e,i))),i.content=(a-l.length+u.length).toString()}(e,i[e]||[])}))}))}}},t.isEqualNode=o,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,("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&(Object.assign(t.default,t),e.exports=t.default)},104:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var{src:t,sizes:n,unoptimized:r=!1,priority:o=!1,loading:c,lazyRoot:f=null,lazyBoundary:v="200px",className:E,quality:S,width:_,height:O,style:C,objectFit:P,objectPosition:L,onLoadingComplete:T,placeholder:j="empty",blurDataURL:R}=e,A=p(e,["src","sizes","unoptimized","priority","loading","lazyRoot","lazyBoundary","className","quality","width","height","style","objectFit","objectPosition","onLoadingComplete","placeholder","blurDataURL"]);const I=i.useContext(u.ImageConfigContext),M=i.useMemo((()=>{const e=h||I||l.imageConfigDefault,t=[...e.deviceSizes,...e.imageSizes].sort(((e,t)=>e-t)),n=e.deviceSizes.sort(((e,t)=>e-t));return d({},e,{allSizes:t,deviceSizes:n})}),[I]);let D=A,N=n?"responsive":"intrinsic";"layout"in D&&(D.layout&&(N=D.layout),delete D.layout);let F=x;if("loader"in D){if(D.loader){const e=D.loader;F=t=>{const{config:n}=t,r=p(t,["config"]);return e(r)}}delete D.loader}let z="";if(function(e){return"object"==typeof e&&(y(e)||function(e){return void 0!==e.src}(e))}(t)){const e=y(t)?t.default:t;if(!e.src)throw new Error(`An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received ${JSON.stringify(e)}`);if(R=R||e.blurDataURL,z=e.src,!(N&&"fill"===N||(O=O||e.height,_=_||e.width,e.height&&e.width)))throw new Error(`An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received ${JSON.stringify(e)}`)}t="string"==typeof t?t:z;const $=w(_),B=w(O),U=w(S);let W=!o&&("lazy"===c||void 0===c);(t.startsWith("data:")||t.startsWith("blob:"))&&(r=!0,W=!1),"undefined"!=typeof window&&g.has(t)&&(W=!1);const[H,V]=i.useState(!1),[q,X,K]=s.useIntersection({rootRef:f,rootMargin:v,disabled:!W}),Y=!W||X,G={boxSizing:"border-box",display:"block",overflow:"hidden",width:"initial",height:"initial",background:"none",opacity:1,border:0,margin:0,padding:0},Q={boxSizing:"border-box",display:"block",width:"initial",height:"initial",background:"none",opacity:1,border:0,margin:0,padding:0};let Z,J=!1;const ee={position:"absolute",top:0,left:0,bottom:0,right:0,boxSizing:"border-box",padding:0,border:"none",margin:"auto",display:"block",width:0,height:0,minWidth:"100%",maxWidth:"100%",minHeight:"100%",maxHeight:"100%",objectFit:P,objectPosition:L},te=Object.assign({},C,"raw"===N?{}:ee),ne="blur"!==j||H?{}:{filter:"blur(20px)",backgroundSize:P||"cover",backgroundImage:`url("${R}")`,backgroundPosition:L||"0% 0%"};if("fill"===N)G.display="block",G.position="absolute",G.top=0,G.left=0,G.bottom=0,G.right=0;else if(void 0!==$&&void 0!==B){const e=B/$,t=isNaN(e)?"100%":100*e+"%";"responsive"===N?(G.display="block",G.position="relative",J=!0,Q.paddingTop=t):"intrinsic"===N?(G.display="inline-block",G.position="relative",G.maxWidth="100%",J=!0,Q.maxWidth="100%",Z=`data:image/svg+xml,%3csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20version=%271.1%27%20width=%27${$}%27%20height=%27${B}%27/%3e`):"fixed"===N&&(G.display="inline-block",G.position="relative",G.width=$,G.height=B)}let re={src:m,srcSet:void 0,sizes:void 0};Y&&(re=b({config:M,src:t,unoptimized:r,layout:N,width:$,quality:U,sizes:n,loader:F}));let oe=t,ie="imagesrcset",ae="imagesizes";window.omnivoreEnv.__NEXT_REACT_ROOT&&(ie="imageSrcSet",ae="imageSizes");const le={[ie]:re.srcSet,[ae]:re.sizes},se="undefined"==typeof window?i.default.useEffect:i.default.useLayoutEffect,ue=i.useRef(T),ce=i.useRef(t);i.useEffect((()=>{ue.current=T}),[T]),se((()=>{ce.current!==t&&(K(),ce.current=t)}),[K,t]);const fe=d({isLazy:W,imgAttributes:re,heightInt:B,widthInt:$,qualityInt:U,layout:N,className:E,imgStyle:te,blurStyle:ne,loading:c,config:M,unoptimized:r,placeholder:j,loader:F,srcString:oe,onLoadingCompleteRef:ue,setBlurComplete:V,setIntersection:q,isVisible:Y},D);return i.default.createElement(i.default.Fragment,null,"raw"===N?i.default.createElement(k,Object.assign({},fe)):i.default.createElement("span",{style:G},J?i.default.createElement("span",{style:Q},Z?i.default.createElement("img",{style:{display:"block",maxWidth:"100%",width:"initial",height:"initial",background:"none",opacity:1,border:0,margin:0,padding:0},alt:"","aria-hidden":!0,src:Z}):null):null,i.default.createElement(k,Object.assign({},fe))),o?i.default.createElement(a.default,null,i.default.createElement("link",Object.assign({key:"__nimg-"+re.src+re.srcSet+re.sizes,rel:"preload",as:"image",href:re.srcSet?void 0:re.src},le))):null)};var r,o,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(2784)),a=(r=n(5977))&&r.__esModule?r:{default:r},l=n(8467),s=n(3321),u=n(4329),c=(n(1624),n(1119));function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d(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){f(e,t,n[t])}))}return e}function p(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}null===(o=window.omnivoreEnv.__NEXT_IMAGE_OPTS)||void 0===o||o.experimentalLayoutRaw;const h=window.omnivoreEnv.__NEXT_IMAGE_OPTS,g=new Set;new Map;const m="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7";"undefined"==typeof window&&(n.g.__NEXT_IMAGE_IMPORTED=!0);const v=new Map([["default",function({config:e,src:t,width:n,quality:r}){return t.endsWith(".svg")&&!e.dangerouslyAllowSVG?t:`${c.normalizePathTrailingSlash(e.path)}?url=${encodeURIComponent(t)}&w=${n}&q=${r||75}`}],["imgix",function({config:e,src:t,width:n,quality:r}){const o=new URL(`${e.path}${S(t)}`),i=o.searchParams;return i.set("auto",i.get("auto")||"format"),i.set("fit",i.get("fit")||"max"),i.set("w",i.get("w")||n.toString()),r&&i.set("q",r.toString()),o.href}],["cloudinary",function({config:e,src:t,width:n,quality:r}){const o=["f_auto","c_limit","w_"+n,"q_"+(r||"auto")].join(",")+"/";return`${e.path}${o}${S(t)}`}],["akamai",function({config:e,src:t,width:n}){return`${e.path}${S(t)}?imwidth=${n}`}],["custom",function({src:e}){throw new Error(`Image with src "${e}" is missing "loader" prop.\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader`)}]]);function y(e){return void 0!==e.default}function b({config:e,src:t,unoptimized:n,layout:r,width:o,quality:i,sizes:a,loader:l}){if(n)return{src:t,srcSet:void 0,sizes:void 0};const{widths:s,kind:u}=function({deviceSizes:e,allSizes:t},n,r,o){if(o&&("fill"===r||"responsive"===r||"raw"===r)){const n=/(^|\s)(1?\d?\d)vw/g,r=[];for(let e;e=n.exec(o);e)r.push(parseInt(e[2]));if(r.length){const n=.01*Math.min(...r);return{widths:t.filter((t=>t>=e[0]*n)),kind:"w"}}return{widths:t,kind:"w"}}return"number"!=typeof n||"fill"===r||"responsive"===r?{widths:e,kind:"w"}:{widths:[...new Set([n,2*n].map((e=>t.find((t=>t>=e))||t[t.length-1])))],kind:"x"}}(e,o,r,a),c=s.length-1;return{sizes:a||"w"!==u?a:"100vw",srcSet:s.map(((n,r)=>`${l({config:e,src:t,quality:i,width:n})} ${"w"===u?n:r+1}${u}`)).join(", "),src:l({config:e,src:t,quality:i,width:s[c]})}}function w(e){return"number"==typeof e?e:"string"==typeof e?parseInt(e,10):void 0}function x(e){var t;const n=(null===(t=e.config)||void 0===t?void 0:t.loader)||"default",r=v.get(n);if(r)return r(e);throw new Error(`Unknown "loader" found in "next.config.js". Expected: ${l.VALID_LOADERS.join(", ")}. Received: ${n}`)}function E(e,t,n,r,o,i){e&&e.src!==m&&e["data-loaded-src"]!==t&&(e["data-loaded-src"]=t,("decode"in e?e.decode():Promise.resolve()).catch((()=>{})).then((()=>{if(e.parentNode&&(g.add(t),"blur"===r&&i(!0),null==o?void 0:o.current)){const{naturalWidth:t,naturalHeight:n}=e;o.current({naturalWidth:t,naturalHeight:n})}})))}const k=e=>{var{imgAttributes:t,heightInt:n,widthInt:r,qualityInt:o,layout:a,className:l,imgStyle:s,blurStyle:u,isLazy:c,placeholder:f,loading:h,srcString:g,config:m,unoptimized:v,loader:y,onLoadingCompleteRef:w,setBlurComplete:x,setIntersection:k,onLoad:S,onError:_,isVisible:O}=e,C=p(e,["imgAttributes","heightInt","widthInt","qualityInt","layout","className","imgStyle","blurStyle","isLazy","placeholder","loading","srcString","config","unoptimized","loader","onLoadingCompleteRef","setBlurComplete","setIntersection","onLoad","onError","isVisible"]);return i.default.createElement(i.default.Fragment,null,i.default.createElement("img",Object.assign({},C,t,"raw"===a?{height:n,width:r}:{},{decoding:"async","data-nimg":a,className:l,style:d({},s,u),ref:i.useCallback((e=>{k(e),(null==e?void 0:e.complete)&&E(e,g,0,f,w,x)}),[k,g,a,f,w,x]),onLoad:e=>{E(e.currentTarget,g,0,f,w,x),S&&S(e)},onError:e=>{"blur"===f&&x(!0),_&&_(e)}})),(c||"blur"===f)&&i.default.createElement("noscript",null,i.default.createElement("img",Object.assign({},C,b({config:m,src:g,unoptimized:v,layout:a,width:r,quality:o,sizes:t.sizes,loader:y}),"raw"===a?{height:n,width:r}:{},{decoding:"async","data-nimg":a,style:s,className:l,loading:h||"lazy"}))))};function S(e){return"/"===e[0]?e.slice(1):e}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&(Object.assign(t.default,t),e.exports=t.default)},4529:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(2784))&&r.__esModule?r:{default:r},i=n(6640),a=n(9518),l=n(3321);const s={};function u(e,t,n,r){if("undefined"==typeof window||!e)return;if(!i.isLocalURL(t))return;e.prefetch(t,n,r).catch((e=>{}));const o=r&&void 0!==r.locale?r.locale:e&&e.locale;s[t+"%"+n+(o?"%"+o:"")]=!0}var c=o.default.forwardRef(((e,t)=>{const{legacyBehavior:n=!0!==Boolean(window.omnivoreEnv.__NEXT_NEW_LINK_BEHAVIOR)}=e;let r;const{href:c,as:f,children:d,prefetch:p,passHref:h,replace:g,shallow:m,scroll:v,locale:y,onClick:b,onMouseEnter:w}=e,x=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,["href","as","children","prefetch","passHref","replace","shallow","scroll","locale","onClick","onMouseEnter"]);r=d,n&&"string"==typeof r&&(r=o.default.createElement("a",null,r));const E=!1!==p,k=a.useRouter(),{href:S,as:_}=o.default.useMemo((()=>{const[e,t]=i.resolveHref(k,c,!0);return{href:e,as:f?i.resolveHref(k,f):t||e}}),[k,c,f]),O=o.default.useRef(S),C=o.default.useRef(_);let P;n&&(P=o.default.Children.only(r));const L=n?P&&"object"==typeof P&&P.ref:t,[T,j,R]=l.useIntersection({rootMargin:"200px"}),A=o.default.useCallback((e=>{C.current===_&&O.current===S||(R(),C.current=_,O.current=S),T(e),L&&("function"==typeof L?L(e):"object"==typeof L&&(L.current=e))}),[_,L,S,R,T]);o.default.useEffect((()=>{const e=j&&E&&i.isLocalURL(S),t=void 0!==y?y:k&&k.locale,n=s[S+"%"+_+(t?"%"+t:"")];e&&!n&&u(k,S,_,{locale:t})}),[_,S,j,y,E,k]);const I={ref:A,onClick:e=>{n||"function"!=typeof b||b(e),n&&P.props&&"function"==typeof P.props.onClick&&P.props.onClick(e),e.defaultPrevented||function(e,t,n,r,o,a,l,s){const{nodeName:u}=e.currentTarget;("A"!==u.toUpperCase()||!function(e){const{target:t}=e.currentTarget;return t&&"_self"!==t||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)&&i.isLocalURL(n))&&(e.preventDefault(),t[o?"replace":"push"](n,r,{shallow:a,locale:s,scroll:l}))}(e,k,S,_,g,m,v,y)},onMouseEnter:e=>{n||"function"!=typeof w||w(e),n&&P.props&&"function"==typeof P.props.onMouseEnter&&P.props.onMouseEnter(e),i.isLocalURL(S)&&u(k,S,_,{priority:!0})}};if(!n||h||"a"===P.type&&!("href"in P.props)){const e=void 0!==y?y:k&&k.locale,t=k&&k.isLocaleDomain&&i.getDomainLocale(_,e,k&&k.locales,k&&k.domainLocales);I.href=t||i.addBasePath(i.addLocale(_,e,k&&k.defaultLocale))}return n?o.default.cloneElement(P,I):o.default.createElement("a",Object.assign({},x,I),r)}));t.default=c,("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&(Object.assign(t.default,t),e.exports=t.default)},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,("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&(Object.assign(t.default,t),e.exports=t.default)},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,("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&(Object.assign(t.default,t),e.exports=t.default)},7928:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.markAssetError=u,t.isAssetError=function(e){return e&&s 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,u(new Error("Failed to load client middleware manifest")))},t.createRouteLoader=function(e){const t=new Map,n=new Map,r=new Map,s=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(u(new Error(`Failed to load script: ${e}`))),t.crossOrigin=window.omnivoreEnv.__NEXT_CROSS_ORIGIN,t.src=e,document.body.appendChild(t)}))}(e)),t))}}function p(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 u(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),s.delete(e))}))},loadRoute(n,r){return a(n,s,(()=>c(d(e,n).then((({scripts:e,css:r})=>Promise.all([t.has(n)?[]:Promise.all(e.map(f)),Promise.all(r.map(p))]))).then((e=>this.whenEntrypoint(n).then((t=>({entrypoint:t,styles:e[1]}))))),i,u(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}}(),s=Symbol("ASSET_LOAD_ERROR");function u(e){return Object.defineProperty(e,s,{})}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,u(new Error("Failed to load client build manifest")))}function d(e,t){return f().then((n=>{if(!(t in n))throw u(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")))}}))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&(Object.assign(t.default,t),e.exports=t.default)},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 u.router=new o.default(...e),u.readyCallbacks.forEach((e=>e())),u.readyCallbacks=[],u.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=s(n(2784)),o=s(n(6640)),i=n(6510),a=s(n(274)),l=s(n(9564));function s(e){return e&&e.__esModule?e:{default:e}}const u={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(!u.router)throw new Error('No router instance found.\nYou should only use "next/router" on the client side of your app.\n');return u.router}Object.defineProperty(u,"events",{get:()=>o.default.events}),c.forEach((e=>{Object.defineProperty(u,e,{get:()=>d()[e]})})),f.forEach((e=>{u[e]=(...t)=>d()[e](...t)})),["routeChangeStart","beforeHistoryChange","routeChangeComplete","routeChangeError","hashChangeStart","hashChangeComplete"].forEach((e=>{u.ready((()=>{o.default.events.on(e,((...t)=>{const n=`on${e.charAt(0).toUpperCase()}${e.substring(1)}`,r=u;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 p=u;t.default=p,("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&(Object.assign(t.default,t),e.exports=t.default)},9515:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.handleClientScriptLoad=p,t.initScriptLoader=function(e){e.forEach(p),[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')].forEach((e=>{const t=e.id||e.getAttribute("src");c.add(t)}))},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 s(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 u=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:s}=e,d=n||t;if(d&&c.has(d))return;if(u.has(t))return c.add(d),void u.get(t).then(r,s);const p=document.createElement("script"),h=new Promise(((e,t)=>{p.addEventListener("load",(function(t){e(),r&&r.call(this,t)})),p.addEventListener("error",(function(e){t(e)}))})).catch((function(e){s&&s(e)}));t&&u.set(t,h),c.add(d),o?p.innerHTML=o.__html||"":a?p.textContent="string"==typeof a?a:Array.isArray(a)?a.join(""):"":t&&(p.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();p.setAttribute(e,n)}"worker"===l&&p.setAttribute("type","text/partytown"),p.setAttribute("data-nscript",l),document.body.appendChild(p)};function p(e){const{strategy:t="afterInteractive"}=e;"lazyOnload"===t?window.addEventListener("load",(()=>{a.requestIdleCallback((()=>d(e)))})):d(e)}t.default=function(e){const{src:t="",onLoad:n=(()=>{}),strategy:i="afterInteractive",onError:l}=e,u=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","strategy","onError"]),{updateScripts:f,scripts:p,getIsSsr:h}=r.useContext(o.HeadManagerContext);return r.useEffect((()=>{"afterInteractive"===i?d(e):"lazyOnload"===i&&function(e){"complete"===document.readyState?a.requestIdleCallback((()=>d(e))):window.addEventListener("load",(()=>{a.requestIdleCallback((()=>d(e)))}))}(e)}),[e,i]),"beforeInteractive"!==i&&"worker"!==i||(f?(p[i]=(p[i]||[]).concat([s({src:t,onLoad:n,onError:l},u)]),f(p)):h&&h()?c.add(u.id||t):h&&!h()&&d(e)),null},("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&(Object.assign(t.default,t),e.exports=t.default)},3321:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useIntersection=function({rootRef:e,rootMargin:t,disabled:n}){const s=n||!i,u=r.useRef(),[c,f]=r.useState(!1),[d,p]=r.useState(e?e.current:null),h=r.useCallback((e=>{u.current&&(u.current(),u.current=void 0),s||c||e&&e.tagName&&(u.current=function(e,t,n){const{id:r,observer:o,elements:i}=function(e){const t={root:e.root||null,margin:e.rootMargin||""};let n,r=l.find((e=>e.root===t.root&&e.margin===t.margin));if(r?n=a.get(r):(n=a.get(t),l.push(t)),n)return n;const o=new Map,i=new IntersectionObserver((e=>{e.forEach((e=>{const t=o.get(e.target),n=e.isIntersecting||e.intersectionRatio>0;t&&n&&t(n)}))}),e);return a.set(t,n={id:t,observer:i,elements:o}),n}(n);return i.set(e,(e=>e&&f(e))),o.observe(e),function(){if(i.delete(e),o.unobserve(e),0===i.size){o.disconnect(),a.delete(r);let e=l.findIndex((e=>e.root===r.root&&e.margin===r.margin));e>-1&&l.splice(e,1)}}}(e,0,{root:d,rootMargin:t}))}),[s,d,t,c]),g=r.useCallback((()=>{f(!1)}),[]);return r.useEffect((()=>{if(!i&&!c){const e=o.requestIdleCallback((()=>f(!0)));return()=>o.cancelIdleCallback(e)}}),[c]),r.useEffect((()=>{e&&p(e.current)}),[e]),[h,c,g]};var r=n(2784),o=n(1976);const i="undefined"!=typeof IntersectionObserver,a=new Map,l=[];("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&(Object.assign(t.default,t),e.exports=t.default)},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);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&(Object.assign(t.default,t),e.exports=t.default)},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 s=e.charCodeAt(l);if(!(s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122||95===s))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=[],s=0,u=0,c="",f=function(e){if(u<n.length&&n[u].type===e)return n[u++].value},d=function(e){var t=f(e);if(void 0!==t)return t;var r=n[u],o=r.type,i=r.index;throw new TypeError("Unexpected "+o+" at "+i+", expected "+e)},p=function(){for(var e,t="";e=f("CHAR")||f("ESCAPED_CHAR");)t+=e;return t};u<n.length;){var h=f("CHAR"),g=f("NAME"),m=f("PATTERN");if(g||m){var v=h||"";-1===o.indexOf(v)&&(c+=v,v=""),c&&(l.push(c),c=""),l.push({name:g||s++,prefix:v,suffix:"",pattern:m||a,modifier:f("MODIFIER")||""})}else{var y=h||f("ESCAPED_CHAR");if(y)c+=y;else if(c&&(l.push(c),c=""),f("OPEN")){v=p();var b=f("NAME")||"",w=f("PATTERN")||"",x=p();d("CLOSE"),l.push({name:b||(w?s++:""),pattern:b&&!w?a:w,prefix:v,suffix:x,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,s=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,u="?"===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(u)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&&!s[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(!u){var p=c?"an array":"a string";throw new TypeError('Expected "'+i.name+'" to be '+p)}}else{if(d=o(String(a),i),l&&!s[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),s=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)},u=1;u<r.length;u++)s(u);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,s=void 0===l||l,u=n.end,c=void 0===u||u,f=n.encode,d=void 0===f?function(e){return e}:f,p="["+i(n.endsWith||"")+"]|$",h="["+i(n.delimiter||"/#?")+"]",g=s?"^":"",m=0,v=e;m<v.length;m++){var y=v[m];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 x="*"===y.modifier?"?":"";g+="(?:"+b+"((?:"+y.pattern+")(?:"+w+b+"(?:"+y.pattern+"))*)"+w+")"+x}else g+="(?:"+b+"("+y.pattern+")"+w+")"+y.modifier;else g+="("+y.pattern+")"+y.modifier;else g+="(?:"+b+w+")"+y.modifier}}if(c)o||(g+=h+"?"),g+=n.endsWith?"(?="+p+")":"$";else{var E=e[e.length-1],k="string"==typeof E?h.indexOf(E[E.length-1])>-1:void 0===E;o||(g+="(?:"+h+"(?="+p+"))?"),k||(g+="(?="+h+"|"+p+")")}return new RegExp(g,a(n))}function s(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 s(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(s(e,n,t),n,t)},t.regexpToFunction=o,t.tokensToRegexp=l,t.pathToRegexp=s},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}},1719:(e,t,n)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.AmpStateContext=void 0;const o=((r=n(2784))&&r.__esModule?r:{default:r}).default.createContext({});t.AmpStateContext=o},9739:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isInAmpMode=a,t.useAmp=function(){return a(o.default.useContext(i.AmpStateContext))};var r,o=(r=n(2784))&&r.__esModule?r:{default:r},i=n(1719);function a({ampFirst:e=!1,hybrid:t=!1,hasQuery:n=!1}={}){return e||t&&n}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&(Object.assign(t.default,t),e.exports=t.default)},8058:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.escapeStringRegexp=function(e){return n.test(e)?e.replace(r,"\\$&"):e};const n=/[|\\{}()[\]^$+*?.-]/,r=/[|\\{}()[\]^$+*?.-]/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},5977:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaultHead=u,t.default=void 0;var r,o=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)),i=(r=n(1889))&&r.__esModule?r:{default:r},a=n(1719),l=n(7177),s=n(9739);function u(e=!1){const t=[o.default.createElement("meta",{charSet:"utf-8"})];return e||t.push(o.default.createElement("meta",{name:"viewport",content:"width=device-width"})),t}function c(e,t){return"string"==typeof t||"number"==typeof t?e:t.type===o.default.Fragment?e.concat(o.default.Children.toArray(t.props.children).reduce(((e,t)=>"string"==typeof t||"number"==typeof t?e:e.concat(t)),[])):e.concat(t)}n(1624);const f=["name","httpEquiv","charSet","itemProp"];function d(e,t){return e.reduce(((e,t)=>{const n=o.default.Children.toArray(t.props.children);return e.concat(n)}),[]).reduce(c,[]).reverse().concat(u(t.inAmpMode)).filter(function(){const e=new Set,t=new Set,n=new Set,r={};return o=>{let i=!0,a=!1;if(o.key&&"number"!=typeof o.key&&o.key.indexOf("$")>0){a=!0;const t=o.key.slice(o.key.indexOf("$")+1);e.has(t)?i=!1:e.add(t)}switch(o.type){case"title":case"base":t.has(o.type)?i=!1:t.add(o.type);break;case"meta":for(let e=0,t=f.length;e<t;e++){const t=f[e];if(o.props.hasOwnProperty(t))if("charSet"===t)n.has(t)?i=!1:n.add(t);else{const e=o.props[t],n=r[t]||new Set;"name"===t&&a||!n.has(e)?(n.add(e),r[t]=n):i=!1}}}return i}}()).reverse().map(((e,n)=>{const r=e.key||n;if(window.omnivoreEnv.__NEXT_OPTIMIZE_FONTS&&!t.inAmpMode&&"link"===e.type&&e.props.href&&["https://fonts.googleapis.com/css","https://use.typekit.net/"].some((t=>e.props.href.startsWith(t)))){const t={...e.props||{}};return t["data-href"]=t.href,t.href=void 0,t["data-optimized-fonts"]=!0,o.default.cloneElement(e,t)}return o.default.cloneElement(e,{key:r})}))}t.default=function({children:e}){const t=o.useContext(a.AmpStateContext),n=o.useContext(l.HeadManagerContext);return o.default.createElement(i.default,{reduceComponentsToState:d,headManager:n,inAmpMode:s.isInAmpMode(t)},e)},("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&(Object.assign(t.default,t),e.exports=t.default)},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}}},4329:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ImageConfigContext=void 0;var r,o=(r=n(2784))&&r.__esModule?r:{default:r},i=n(8467);const a=o.default.createContext(i.imageConfigDefault);t.ImageConfigContext=a},8467:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.imageConfigDefault=t.VALID_LOADERS=void 0,t.VALID_LOADERS=["default","imgix","cloudinary","akamai","custom"];t.imageConfigDefault={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",domains:[],disableStaticImages:!1,minimumCacheTTL:60,formats:["image/webp"],dangerouslyAllowSVG:!1,contentSecurityPolicy:"script-src 'none'; frame-src 'none'; sandbox;"}},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)}))}}}},997:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.denormalizePagePath=function(e){let t=o.normalizePathSep(e);return t.startsWith("/index/")&&!r.isDynamicRoute(t)?t.slice(6):"/index"!==t?t:"/"};var r=n(9150),o=n(9356)},9356:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.normalizePathSep=function(e){return e.replace(/\\/g,"/")}},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||s.normalizeLocalePath(e,n).detectedLocale;const o=w(r,void 0,t);return!!o&&`http${o.http?"":"s"}://${o.domain}${x||""}${t===o.defaultLocale?"":`/${t}`}${e}`}return!1},t.addLocale=_,t.delLocale=O,t.hasBasePath=P,t.addBasePath=L,t.delBasePath=T,t.isLocalURL=j,t.interpolateAs=R,t.resolveHref=I,t.default=void 0;var r=n(1119),o=n(7928),i=n(9515),a=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)),l=n(997),s=n(816),u=b(n(7471)),c=n(1624),f=n(7482),d=n(1577),p=n(646),h=b(n(5317)),g=n(3107),m=n(4794),v=n(2763),y=n(6555);function b(e){return e&&e.__esModule?e:{default:e}}let w;window.omnivoreEnv.__NEXT_I18N_SUPPORT&&(w=n(927).D);const x=window.omnivoreEnv.__NEXT_ROUTER_BASEPATH||"";function E(){return Object.assign(new Error("Route Cancelled"),{cancelled:!0})}function k(e,t){if(!e.startsWith("/")||!t)return e;const n=C(e);return r.normalizePathTrailingSlash(`${t}${n}`)+e.slice(n.length)}function S(e,t){return(e=C(e))===t||e.startsWith(t+"/")}function _(e,t,n){if(window.omnivoreEnv.__NEXT_I18N_SUPPORT&&t&&t!==n){const n=C(e).toLowerCase();if(!S(n,"/"+t.toLowerCase())&&!S(n,"/api"))return k(e,"/"+t)}return e}function O(e,t){if(window.omnivoreEnv.__NEXT_I18N_SUPPORT){const n=C(e),r=n.toLowerCase(),o=t&&t.toLowerCase();return t&&(r.startsWith("/"+o+"/")||r==="/"+o)?(n.length===t.length+1?"/":"")+e.slice(t.length+1):e}return e}function C(e){const t=e.indexOf("?"),n=e.indexOf("#");return(t>-1||n>-1)&&(e=e.substring(0,t>-1?t:n)),e}function P(e){return S(e,x)}function L(e){return k(e,x)}function T(e){return(e=e.slice(x.length)).startsWith("/")||(e=`/${e}`),e}function j(e){if(e.startsWith("/")||e.startsWith("#")||e.startsWith("?"))return!0;try{const t=c.getLocationOrigin(),n=new URL(e,t);return n.origin===t&&P(n.pathname)}catch(e){return!1}}function R(e,t,n){let r="";const o=m.getRouteRegex(e),i=o.groups,a=(t!==e?g.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 A(e,t){const n={};return Object.keys(e).forEach((r=>{t.includes(r)||(n[r]=e[r])})),n}function I(e,t,n){let o,i="string"==typeof t?t:y.formatWithValidation(t);const a=i.match(/^[a-zA-Z]{1,}:\/\//),l=a?i.slice(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=c.normalizeRepeatedSlashes(l);i=(a?a[0]:"")+e}if(!j(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(f.isDynamicRoute(e.pathname)&&e.searchParams&&n){const n=p.searchParamsToUrlQuery(e.searchParams),{result:r,params:o}=R(e.pathname,e.pathname,n);r&&(t=y.formatWithValidation({pathname:r,hash:e.hash,query:A(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 M(e){const t=c.getLocationOrigin();return e.startsWith(t)?e.substring(t.length):e}function D(e,t,n){let[r,o]=I(e,t,!0);const i=c.getLocationOrigin(),a=r.startsWith(i),l=o&&o.startsWith(i);r=M(r),o=o?M(o):o;const s=a?r:L(r),u=n?M(I(e,n)):o||r;return{url:s,as:l?u:L(u)}}function N(e,t){const n=r.removePathTrailingSlash(l.denormalizePagePath(e));return"/404"===n||"/_error"===n?e:(t.includes(n)||t.some((t=>{if(f.isDynamicRoute(t)&&m.getRouteRegex(t).re.test(n))return e=t,!0})),r.removePathTrailingSlash(e))}const F=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){}}(),z=Symbol("SSG_DATA_NOT_FOUND");function $(e,t,n){return fetch(e,{credentials:"same-origin"}).then((r=>{if(!r.ok){if(t>1&&r.status>=500)return $(e,t-1,n);if(404===r.status)return r.json().then((e=>{if(e.notFound)return{notFound:z};throw new Error("Failed to load static props")}));throw new Error("Failed to load static props")}return n.text?r.text():r.json()}))}function B(e,t,n,r,i){const{href:a}=new URL(e,window.location.href);return void 0!==r[a]?r[a]:r[a]=$(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 U{constructor(e,t,n,{initialProps:o,pageLoader:i,App:a,wrapApp:l,Component:s,err:u,subscription:p,isFallback:h,locale:g,locales:m,defaultLocale:v,domainLocales:b,isPreview:E,isRsc:k}){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",y.formatWithValidation({pathname:L(e),query:t}),c.getURL())}if(!t.__N)return;let n;const{url:r,as:o,options:i,idx:a}=t;if(window.omnivoreEnv.__NEXT_SCROLL_RESTORATION&&F&&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}=d.parseRelativeUrl(r);this.isSsr&&o===L(this.asPath)&&l===L(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 S=r.removePathTrailingSlash(e);this.components={},"/_error"!==e&&(this.components[S]={Component:s,initial:!0,props:o,err:u,__N_SSG:o&&o.__N_SSG,__N_SSP:o&&o.__N_SSP,__N_RSC:!!k}),this.components["/_app"]={Component:a,styleSheets:[]},this.events=U.events,this.pageLoader=i;const _=f.isDynamicRoute(e)&&self.__NEXT_DATA__.autoExport;if(this.basePath=x,this.sub=p,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)&&(_||self.location.search||window.omnivoreEnv.__NEXT_HAS_REWRITES)),window.omnivoreEnv.__NEXT_I18N_SUPPORT&&(this.locales=m,this.defaultLocale=v,this.domainLocales=b,this.isLocaleDomain=!!w(b,self.location.hostname)),this.state={route:S,pathname:e,query:t,asPath:_?e:n,isPreview:!!E,locale:window.omnivoreEnv.__NEXT_I18N_SUPPORT?g:void 0,isFallback:h},"undefined"!=typeof window){if(!n.startsWith("//")){const r={locale:g};r._shouldResolveHref=n!==e,this.changeState("replaceState",y.formatWithValidation({pathname:L(e),query:t}),c.getURL(),r)}window.addEventListener("popstate",this.onPopState),window.omnivoreEnv.__NEXT_SCROLL_RESTORATION&&F&&(window.history.scrollRestoration="manual")}}reload(){window.location.reload()}back(){window.history.back()}push(e,t,n={}){if(window.omnivoreEnv.__NEXT_SCROLL_RESTORATION&&F)try{sessionStorage.setItem("__next_scroll_"+this._idx,JSON.stringify({x:self.pageXOffset,y:self.pageYOffset}))}catch{}return({url:e,as:t}=D(this,e,t)),this.change("pushState",e,t,n)}replace(e,t,n={}){return({url:e,as:t}=D(this,e,t)),this.change("replaceState",e,t,n)}async change(e,t,n,l,u){if(!j(t))return window.location.href=t,!1;const p=l._h||l._shouldResolveHref||C(t)===C(n),v={...this.state};l._h&&(this.isReady=!0);const b=v.locale;if(window.omnivoreEnv.__NEXT_I18N_SUPPORT){v.locale=!1===l.locale?this.defaultLocale:l.locale||v.locale,void 0===l.locale&&(l.locale=v.locale);const e=d.parseRelativeUrl(P(n)?T(n):n),r=s.normalizeLocalePath(e.pathname,this.locales);r.detectedLocale&&(v.locale=r.detectedLocale,e.pathname=L(e.pathname),n=y.formatWithValidation(e),t=L(s.normalizeLocalePath(P(t)?T(t):t,this.locales).pathname));let o=!1;var x;window.omnivoreEnv.__NEXT_I18N_SUPPORT&&((null===(x=this.locales)||void 0===x?void 0:x.includes(v.locale))||(e.pathname=_(e.pathname,v.locale),window.location.href=y.formatWithValidation(e),o=!0));const i=w(this.domainLocales,void 0,v.locale);if(window.omnivoreEnv.__NEXT_I18N_SUPPORT&&!o&&i&&this.isLocaleDomain&&self.location.hostname!==i.domain){const e=T(n);window.location.href=`http${i.http?"":"s"}://${i.domain}${L(`${v.locale===i.defaultLocale?"":`/${v.locale}`}${"/"===e?"":e}`||"/")}`,o=!0}if(o)return new Promise((()=>{}))}l._h||(this.isSsr=!1),c.ST&&performance.mark("routeChange");const{shallow:E=!1,scroll:k=!0}=l,S={shallow:E};this._inFlightRoute&&this.abortComponentLoad(this._inFlightRoute,S),n=L(_(P(n)?T(n):n,l.locale,this.defaultLocale));const I=O(P(n)?T(n):n,v.locale);this._inFlightRoute=n;let M=b!==v.locale;if(!l._h&&this.onlyAHashChange(I)&&!M)return v.asPath=I,U.events.emit("hashChangeStart",n,S),this.changeState(e,t,n,{...l,scroll:!1}),k&&this.scrollToHash(I),this.set(v,this.components[v.route],null),U.events.emit("hashChangeComplete",n,S),!0;let F,$,B=d.parseRelativeUrl(t),{pathname:W,query:H}=B;try{[F,{__rewrites:$}]=await Promise.all([this.pageLoader.getPageList(),o.getClientBuildManifest(),this.pageLoader.getMiddlewareList()])}catch(e){return window.location.href=n,!1}this.urlIsNew(I)||M||(e="replaceState");let V=n;if(W=W?r.removePathTrailingSlash(T(W)):W,p&&"/_error"!==W)if(l._shouldResolveHref=!0,window.omnivoreEnv.__NEXT_HAS_REWRITES&&n.startsWith("/")){const e=h.default(L(_(I,v.locale)),F,$,H,(e=>N(e,F)),this.locales);if(e.externalDest)return location.href=n,!0;V=e.asPath,e.matchedPage&&e.resolvedHref&&(W=e.resolvedHref,B.pathname=L(W),t=y.formatWithValidation(B))}else B.pathname=N(W,F),B.pathname!==W&&(W=B.pathname,B.pathname=L(W),t=y.formatWithValidation(B));if(!j(n))return window.location.href=n,!1;if(V=O(T(V),v.locale),(!l.shallow||1===l._h)&&(1!==l._h||f.isDynamicRoute(r.removePathTrailingSlash(W)))){const r=await this._preflightRequest({as:n,cache:!0,pages:F,pathname:W,query:H,locale:v.locale,isPreview:v.isPreview});if("rewrite"===r.type)H={...H,...r.parsedAs.query},V=r.asPath,W=r.resolvedHref,B.pathname=r.resolvedHref,t=y.formatWithValidation(B);else{if("redirect"===r.type&&r.newAs)return this.change(e,r.newUrl,r.newAs,l);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 q=r.removePathTrailingSlash(W);if(f.isDynamicRoute(q)){const e=d.parseRelativeUrl(V),r=e.pathname,o=m.getRouteRegex(q),i=g.getRouteMatcher(o)(r),a=q===r,l=a?R(q,r,H):{};if(!i||a&&!l.result){const e=Object.keys(o.groups).filter((e=>!H[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 (${q}). `)+"Read more: https://nextjs.org/docs/messages/"+(a?"href-interpolation-failed":"incompatible-href-as"))}else a?n=y.formatWithValidation(Object.assign({},e,{pathname:l.result,query:A(H,l.params)})):Object.assign(H,i)}U.events.emit("routeChangeStart",n,S);try{var X,K;let r=await this.getRouteInfo(q,W,H,n,V,S,v.locale,v.isPreview),{error:o,props:a,__N_SSG:s,__N_SSP:c}=r;const f=r.Component;if(f&&f.unstable_scriptLoader&&[].concat(f.unstable_scriptLoader()).forEach((e=>{i.handleClientScriptLoad(e.props)})),(s||c)&&a){if(a.pageProps&&a.pageProps.__N_REDIRECT){const t=a.pageProps.__N_REDIRECT;if(t.startsWith("/")&&!1!==a.pageProps.__N_REDIRECT_BASE_PATH){const n=d.parseRelativeUrl(t);n.pathname=N(n.pathname,F);const{url:r,as:o}=D(this,t,t);return this.change(e,r,o,l)}return window.location.href=t,new Promise((()=>{}))}if(v.isPreview=!!a.__N_PREVIEW,a.notFound===z){let e;try{await this.fetchComponent("/404"),e="/404"}catch(t){e="/_error"}r=await this.getRouteInfo(e,e,H,n,V,{shallow:!1},v.locale,v.isPreview)}}U.events.emit("beforeHistoryChange",n,S),this.changeState(e,t,n,l),l._h&&"/_error"===W&&500===(null===(X=self.__NEXT_DATA__.props)||void 0===X||null===(K=X.pageProps)||void 0===K?void 0:K.statusCode)&&(null==a?void 0:a.pageProps)&&(a.pageProps.statusCode=500);const p=l.shallow&&v.route===q;var Y;const h=(null!==(Y=l.scroll)&&void 0!==Y?Y:!p)?{x:0,y:0}:null;if(await this.set({...v,route:q,pathname:W,query:H,asPath:I,isFallback:!1},r,null!=u?u:h).catch((e=>{if(!e.cancelled)throw e;o=o||e})),o)throw U.events.emit("routeChangeError",o,I,S),o;return window.omnivoreEnv.__NEXT_I18N_SUPPORT&&v.locale&&(document.documentElement.lang=v.locale),U.events.emit("routeChangeComplete",n,S),!0}catch(e){if(a.default(e)&&e.cancelled)return!1;throw e}}changeState(e,t,n,r={}){"pushState"===e&&c.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,i,l){if(e.cancelled)throw e;if(o.isAssetError(e)||l)throw U.events.emit("routeChangeError",e,r,i),window.location.href=r,E();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(a.default(e)?e:new Error(e+""),t,n,r,i,!0)}}async getRouteInfo(e,t,n,r,o,i,l,s){try{const a=this.components[e];if(i.shallow&&a&&this.route===e)return a;let u;a&&!("initial"in a)&&(u=a);const c=u||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.mod.__next_rsc__}))),{Component:f,__N_SSG:d,__N_SSP:p,__N_RSC:h}=c;let g;const m=p&&h;(d||p||h)&&(g=this.pageLoader.getDataHref({href:y.formatWithValidation({pathname:t,query:n}),asPath:o,ssg:d,flight:m,locale:l}));const v=await this._getData((()=>(d||p||h)&&!m?B(g,this.isSsr,!1,d?this.sdc:this.sdr,!!d&&!s):this.getInitialProps(f,{pathname:t,query:n,asPath:r,locale:l,locales:this.locales,defaultLocale:this.defaultLocale})));if(h)if(m){const{data:e}=await this._getData((()=>this._getFlightData(g)));v.pageProps=Object.assign(v.pageProps,{__flight__:e})}else{const{__flight__:e}=v;v.pageProps=Object.assign({},v.pageProps,{__flight__:e})}return c.props=v,this.components[e]=c,c}catch(e){return this.handleRouteInfoError(a.getProperError(e),t,n,r,i)}}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=d.parseRelativeUrl(e),{pathname:a,query:l}=i;if(window.omnivoreEnv.__NEXT_I18N_SUPPORT&&!1===n.locale){a=s.normalizeLocalePath(a,this.locales).pathname,i.pathname=a,e=y.formatWithValidation(i);let r=d.parseRelativeUrl(t);const o=s.normalizeLocalePath(r.pathname,this.locales);r.pathname=o.pathname,n.locale=o.detectedLocale||this.defaultLocale,t=y.formatWithValidation(r)}const u=await this.pageLoader.getPageList();let c=t;if(window.omnivoreEnv.__NEXT_HAS_REWRITES&&t.startsWith("/")){let n;({__rewrites:n}=await o.getClientBuildManifest());const r=h.default(L(_(t,this.locale)),u,n,i.query,(e=>N(e,u)),this.locales);if(r.externalDest)return;c=O(T(r.asPath),this.locale),r.matchedPage&&r.resolvedHref&&(a=r.resolvedHref,i.pathname=a,e=y.formatWithValidation(i))}else i.pathname=N(i.pathname,u),i.pathname!==a&&(a=i.pathname,i.pathname=a,e=y.formatWithValidation(i));const f=await this._preflightRequest({as:L(t),cache:!0,pages:u,pathname:a,query:l,locale:this.locale,isPreview:this.isPreview});"rewrite"===f.type&&(i.pathname=f.resolvedHref,a=f.resolvedHref,l={...l,...f.parsedAs.query},c=f.asPath,e=y.formatWithValidation(i));const p=r.removePathTrailingSlash(a);await Promise.all([this.pageLoader._isSsg(p).then((t=>!!t&&B(this.pageLoader.getDataHref({href:e,asPath:c,ssg:!0,locale:void 0!==n.locale?n.locale:this.locale}),!1,!1,this.sdc,!0))),this.pageLoader[n.priority?"loadPage":"prefetch"](p)])}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 B(e,!0,!0,this.sdc,!1).then((e=>({data:e})))}async _preflightRequest(e){const t=C(e.as),n=O(P(t)?T(t):t,e.locale);if(!(await this.pageLoader.getMiddlewareList()).some((([e,t])=>g.getRouteMatcher(v.getMiddlewareRegex(e,!t))(n))))return{type:"next"};const o=_(e.as,e.locale);let i;try{i=await this._getPreflightData({preflightHref:o,shouldCache:e.cache,isPreview:e.isPreview})}catch(t){return{type:"redirect",destination:e.as}}if(i.rewrite){if(!i.rewrite.startsWith("/"))return{type:"redirect",destination:e.as};const t=d.parseRelativeUrl(s.normalizeLocalePath(P(i.rewrite)?T(i.rewrite):i.rewrite,this.locales).pathname),n=r.removePathTrailingSlash(t.pathname);let o,a;return e.pages.includes(n)?(o=!0,a=n):(a=N(n,e.pages),a!==t.pathname&&e.pages.includes(a)&&(o=!0)),{type:"rewrite",asPath:t.pathname,parsedAs:t,matchedPage:o,resolvedHref:a}}if(i.redirect){if(i.redirect.startsWith("/")){const e=r.removePathTrailingSlash(s.normalizeLocalePath(P(i.redirect)?T(i.redirect):i.redirect,this.locales).pathname),{url:t,as:n}=D(this,e,e);return{type:"redirect",newUrl:t,newAs:n}}return{type:"redirect",destination:i.redirect}}return i.refresh&&!i.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,c.loadGetInitialProps(n,{AppTree:r,Component:e,router:this,ctx:t})}abortComponentLoad(e,t){this.clc&&(U.events.emit("routeChangeError",E(),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}}t.default=U,U.events=u.default()},6555:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatUrl=i,t.formatWithValidation=function(e){return i(e)},t.urlObjectKeys=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(646));const o=/https?|ftp|gopher|file/;function i(e){let{auth:t,hostname:n}=e,i=e.protocol||"",a=e.pathname||"",l=e.hash||"",s=e.query||"",u=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?u=t+e.host:n&&(u=t+(~n.indexOf(":")?`[${n}]`:n),e.port&&(u+=":"+e.port)),s&&"object"==typeof s&&(s=String(r.urlQueryToSearchParams(s)));let c=e.search||s&&`?${s}`||"";return i&&!i.endsWith(":")&&(i+=":"),e.slashes||(!i||o.test(i))&&!1!==u?(u="//"+(u||""),a&&"/"!==a[0]&&(a="/"+a)):u||(u=""),l&&"#"!==l[0]&&(l="#"+l),c&&"?"!==c[0]&&(c="?"+c),a=a.replace(/[?#]/g,encodeURIComponent),c=c.replace("#","%23"),`${i}${u}${a}${c}${l}`}t.urlObjectKeys=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"]},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:s,hash:u,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:s,hash:u,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.getPathMatch=function(e,t){const n=[],o=r.pathToRegexp(e,n,{delimiter:"/",sensitive:!1,strict:null==t?void 0:t.strict}),i=r.regexpToFunction((null==t?void 0:t.regexModifier)?new RegExp(t.regexModifier(o.source),o.flags):o,n);return(e,r)=>{const o=null!=e&&i(e);if(!o)return!1;if(null==t?void 0:t.removeUnnamedParams)for(const e of n)"number"==typeof e.name&&delete o.params[e.name];return{...r,...o.params}}};var r=n(9264)},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}))s=r,n=n.replace(new RegExp(`:${o.escapeStringRegexp(s)}`,"g"),`__ESC_COLON_${s}`);var s;const u=i.parseUrl(n),c=u.query,f=l(`${u.pathname}${u.hash||""}`),d=l(u.hostname||""),p=[],h=[];r.pathToRegexp(f,p),r.pathToRegexp(d,h);const g=[];p.forEach((e=>g.push(e.name))),h.forEach((e=>g.push(e.name)));const m=r.compile(f,{validate:!1}),v=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=m(e.params);const[t,n]=y.split("#");u.hostname=v(e.params),u.pathname=t,u.hash=`${n?"#":""}${n||""}`,delete u.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 u.query={...t,...u.query},{newUrl:y,destQuery:c,parsedDestination:u}};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).slice(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,u,c,f){let d,p=!1,h=!1,g=l.parseRelativeUrl(e),m=i.removePathTrailingSlash(a.normalizeLocalePath(s.delBasePath(g.pathname),f).pathname);const v=n=>{let l=r.getPathMatch(n.source,{removeUnnamedParams:!0,strict:!0})(g.pathname);if(n.has&&l){const e=o.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(l,e):l=!1}if(l){if(!n.destination)return h=!0,!0;const r=o.prepareDestination({appendParamsToQuery:!0,destination:n.destination,params:l,query:u});if(g=r.parsedDestination,e=r.newUrl,Object.assign(u,r.parsedDestination.query),m=i.removePathTrailingSlash(a.normalizeLocalePath(s.delBasePath(e),f).pathname),t.includes(m))return p=!0,d=m,!0;if(d=c(m),d!==e&&t.includes(d))return p=!0,!0}};let y=!1;for(let e=0;e<n.beforeFiles.length;e++)v(n.beforeFiles[e]);if(p=t.includes(m),!p){if(!y)for(let e=0;e<n.afterFiles.length;e++)if(v(n.afterFiles[e])){y=!0;break}if(y||(d=c(m),p=t.includes(d),y=p),!y)for(let e=0;e<n.fallback.length;e++)if(v(n.fallback[e])){y=!0;break}}return{asPath:e,parsedAs:g,matchedPage:p,resolvedHref:d,externalDest:h}};var r=n(1095),o=n(9716),i=n(1119),a=n(816),l=n(1577),s=n(6640)},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,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getParametrizedRoute=i,t.getRouteRegex=function(e){const t=i(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}};var r=n(8058);function o(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 i(e){const t=(e.replace(/\/$/,"")||"/").slice(1).split("/"),n={};let i=1;const a=t.map((e=>{if(e.startsWith("[")&&e.endsWith("]")){const{key:t,optional:r,repeat:a}=o(e.slice(1,-1));return n[t]={pos:i++,repeat:a,optional:r},a?r?"(?:/(.+?))?":"/(.+?)":"/([^/]+?)"}return`/${r.escapeStringRegexp(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},s={};return{parameterizedRoute:a,namedParameterizedRoute:t.map((e=>{if(e.startsWith("[")&&e.endsWith("]")){const{key:t,optional:n,repeat:r}=o(e.slice(1,-1));let i=t.replace(/\W/g,""),a=!1;return(0===i.length||i.length>30)&&(a=!0),isNaN(parseInt(i.slice(0,1)))||(a=!0),a&&(i=l()),s[i]=t,r?n?`(?:/(?<${i}>.+?))?`:`/(?<${i}>.+?)`:`/(?<${i}>[^/]+?)`}return`/${r.escapeStringRegexp(e)}`})).join(""),groups:n,routeKeys:s}}return{parameterizedRoute:a,groups:n}}},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}}},1889:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),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));const o="undefined"==typeof window;class i extends r.Component{constructor(e){super(e),this.emitChange=()=>{this._hasHeadManager&&this.props.headManager.updateHead(this.props.reduceComponentsToState([...this.props.headManager.mountedInstances],this.props))},this._hasHeadManager=this.props.headManager&&this.props.headManager.mountedInstances,o&&this._hasHeadManager&&(this.props.headManager.mountedInstances.add(this),this.emitChange())}componentDidMount(){this._hasHeadManager&&this.props.headManager.mountedInstances.add(this),this.emitChange()}componentDidUpdate(){this.emitChange()}componentWillUnmount(){this._hasHeadManager&&this.props.headManager.mountedInstances.delete(this),this.emitChange()}render(){return null}}t.default=i},1624:(e,t)=>{"use strict";function n(){const{protocol:e,hostname:t,port:n}=window.location;return`${e}//${t}${n?":"+n:""}`}function r(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function o(e){return e.finished||e.headersSent}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=n,t.getURL=function(){const{href:e}=window.location,t=n();return e.substring(t.length)},t.getDisplayName=r,t.isResSent=o,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 i=n.res||n.ctx&&n.ctx.res;if(!t.getInitialProps)return n.ctx&&n.Component?{pageProps:await e(n.Component,n.ctx)}:{};const a=await t.getInitialProps(n);if(i&&o(i))return a;if(!a){const e=`"${r(t)}.getInitialProps()" should resolve to an object. But found "${a}" instead.`;throw new Error(e)}return a},t.ST=t.SP=t.warnOnce=void 0,t.warnOnce=e=>{};const i="undefined"!=typeof performance;t.SP=i;const a=i&&"function"==typeof performance.mark&&"function"==typeof performance.measure;t.ST=a;class l extends Error{}t.DecodeError=l;class s extends Error{}t.NormalizeError=s},6577:(e,t,n)=>{n(104)},9097:(e,t,n)=>{n(4529)},5632:(e,t,n)=>{e.exports=n(9518)},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,s=o(e),u=1;u<arguments.length;u++){for(var c in a=Object(arguments[u]))n.call(a,c)&&(s[c]=a[c]);if(t){l=t(a);for(var f=0;f<l.length;f++)r.call(a,l[f])&&(s[l[f]]=a[l[f]])}}return s}},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,s={};function u(e,t){c(e,t),c(e+"Capture",t)}function c(e,t){for(s[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]*$/,p=Object.prototype.hasOwnProperty,h={},g={};function m(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 v={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){v[e]=new m(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];v[t]=new m(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){v[e]=new m(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){v[e]=new m(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){v[e]=new m(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){v[e]=new m(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){v[e]=new m(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){v[e]=new m(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){v[e]=new m(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=v.hasOwnProperty(t)?v[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!!p.call(g,e)||!p.call(h,e)&&(d.test(e)?g[e]=!0:(h[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);v[t]=new m(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);v[t]=new m(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);v[t]=new m(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){v[e]=new m(e,1,!1,e.toLowerCase(),null,!1,!1)})),v.xlinkHref=new m("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){v[e]=new m(e,1,!1,e.toLowerCase(),null,!0,!0)}));var x=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,E=60103,k=60106,S=60107,_=60108,O=60114,C=60109,P=60110,L=60112,T=60113,j=60120,R=60115,A=60116,I=60121,M=60128,D=60129,N=60130,F=60131;if("function"==typeof Symbol&&Symbol.for){var z=Symbol.for;E=z("react.element"),k=z("react.portal"),S=z("react.fragment"),_=z("react.strict_mode"),O=z("react.profiler"),C=z("react.provider"),P=z("react.context"),L=z("react.forward_ref"),T=z("react.suspense"),j=z("react.suspense_list"),R=z("react.memo"),A=z("react.lazy"),I=z("react.block"),z("react.scope"),M=z("react.opaque.id"),D=z("react.debug_trace_mode"),N=z("react.offscreen"),F=z("react.legacy_hidden")}var $,B="function"==typeof Symbol&&Symbol.iterator;function U(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=B&&e[B]||e["@@iterator"])?e:null}function W(e){if(void 0===$)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);$=t&&t[1]||""}return"\n"+$+e}var H=!1;function V(e,t){if(!e||H)return"";H=!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{H=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?W(e):""}function q(e){switch(e.tag){case 5:return W(e.type);case 16:return W("Lazy");case 13:return W("Suspense");case 19:return W("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 X(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 k:return"Portal";case O:return"Profiler";case _:return"StrictMode";case T:return"Suspense";case j:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case P:return(e.displayName||"Context")+".Consumer";case C:return(e._context.displayName||"Context")+".Provider";case L:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case R:return X(e.type);case I:return X(e._render);case A:t=e._payload,e=e._init;try{return X(e(t))}catch(e){}}return null}function K(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function Y(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function G(e){e._valueTracker||(e._valueTracker=function(e){var t=Y(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=Y(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=K(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=K(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,K(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=""+K(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 se(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:K(n)}}function ue(e,t){var n=K(t.value),r=K(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 pe(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 he,ge,me=(ge=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((he=he||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=he.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 ve(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 xe(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 Ee=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 ke(e,t){if(t){if(Ee[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 _e(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Oe=null,Ce=null,Pe=null;function Le(e){if(e=Jr(e)){if("function"!=typeof Oe)throw Error(a(280));var t=e.stateNode;t&&(t=to(t),Oe(e.stateNode,e.type,t))}}function Te(e){Ce?Pe?Pe.push(e):Pe=[e]:Ce=e}function je(){if(Ce){var e=Ce,t=Pe;if(Pe=Ce=null,Le(e),t)for(e=0;e<t.length;e++)Le(t[e])}}function Re(e,t){return e(t)}function Ae(e,t,n,r,o){return e(t,n,r,o)}function Ie(){}var Me=Re,De=!1,Ne=!1;function Fe(){null===Ce&&null===Pe||(Ie(),je())}function ze(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 Be={};Object.defineProperty(Be,"passive",{get:function(){$e=!0}}),window.addEventListener("test",Be,Be),window.removeEventListener("test",Be,Be)}catch(ge){$e=!1}function Ue(e,t,n,r,o,i,a,l,s){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(e){this.onError(e)}}var We=!1,He=null,Ve=!1,qe=null,Xe={onError:function(e){We=!0,He=e}};function Ke(e,t,n,r,o,i,a,l,s){We=!1,He=null,Ue.apply(Xe,arguments)}function Ye(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 Ge(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(Ye(e)!==e)throw Error(a(188))}function Ze(e){if(e=function(e){var t=e.alternate;if(!t){if(null===(t=Ye(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,s=o.child;s;){if(s===n){l=!0,n=o,r=i;break}if(s===r){l=!0,r=o,n=i;break}s=s.sibling}if(!l){for(s=i.child;s;){if(s===n){l=!0,n=i,r=o;break}if(s===r){l=!0,r=i,n=o;break}s=s.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,st=null,ut=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 pt(e,t,n,r,o){return{blockedOn:e,domEventName:t,eventSystemFlags:16|n,nativeEvent:o,targetContainers:[r]}}function ht(e,t){switch(e){case"focusin":case"focusout":at=null;break;case"dragenter":case"dragleave":lt=null;break;case"mouseover":case"mouseout":st=null;break;case"pointerover":case"pointerout":ut.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=pt(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 mt(e){var t=Zr(e.target);if(null!==t){var n=Ye(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Ge(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 vt(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){vt(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&&vt(at)&&(at=null),null!==lt&&vt(lt)&&(lt=null),null!==st&&vt(st)&&(st=null),ut.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 xt(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!==st&&wt(st,e),ut.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;)mt(n),null===n.blockedOn&&ft.shift()}function Et(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var kt={animationend:Et("Animation","AnimationEnd"),animationiteration:Et("Animation","AnimationIteration"),animationstart:Et("Animation","AnimationStart"),transitionend:Et("Transition","TransitionEnd")},St={},_t={};function Ot(e){if(St[e])return St[e];if(!kt[e])return e;var t,n=kt[e];for(t in n)if(n.hasOwnProperty(t)&&t in _t)return St[e]=n[t];return e}f&&(_t=document.createElement("div").style,"AnimationEvent"in window||(delete kt.animationend.animation,delete kt.animationiteration.animation,delete kt.animationstart.animation),"TransitionEvent"in window||delete kt.transitionend.transition);var Ct=Ot("animationend"),Pt=Ot("animationiteration"),Lt=Ot("animationstart"),Tt=Ot("transitionend"),jt=new Map,Rt=new Map,At=["abort","abort",Ct,"animationEnd",Pt,"animationIteration",Lt,"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",Tt,"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)),Rt.set(r,t),jt.set(r,o),u(o,[r])}}(0,i.unstable_now)();var Mt=8;function Dt(e){if(0!=(1&e))return Mt=15,1;if(0!=(2&e))return Mt=14,2;if(0!=(4&e))return Mt=13,4;var t=24&e;return 0!==t?(Mt=12,t):0!=(32&e)?(Mt=11,32):0!=(t=192&e)?(Mt=10,t):0!=(256&e)?(Mt=9,256):0!=(t=3584&e)?(Mt=8,t):0!=(4096&e)?(Mt=7,4096):0!=(t=4186112&e)?(Mt=6,t):0!=(t=62914560&e)?(Mt=5,t):67108864&e?(Mt=4,67108864):0!=(134217728&e)?(Mt=3,134217728):0!=(t=805306368&e)?(Mt=2,t):0!=(1073741824&e)?(Mt=1,1073741824):(Mt=8,e)}function Nt(e,t){var n=e.pendingLanes;if(0===n)return Mt=0;var r=0,o=0,i=e.expiredLanes,a=e.suspendedLanes,l=e.pingedLanes;if(0!==i)r=i,o=Mt=15;else if(0!=(i=134217727&n)){var s=i&~a;0!==s?(r=Dt(s),o=Mt):0!=(l&=i)&&(r=Dt(l),o=Mt)}else 0!=(i=n&~a)?(r=Dt(i),o=Mt):0!==l&&(r=Dt(l),o=Mt);if(0===r)return 0;if(r=n&((0>(r=31-Wt(r))?0:1<<r)<<1)-1,0!==t&&t!==r&&0==(t&a)){if(Dt(t),o<=Mt)return t;Mt=o}if(0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-Wt(t)),r|=e[n],t&=~o;return r}function Ft(e){return 0!=(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function zt(e,t){switch(e){case 15:return 1;case 14:return 2;case 12:return 0===(e=$t(24&~t))?zt(10,t):e;case 10:return 0===(e=$t(192&~t))?zt(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 Bt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ut(e,t,n){e.pendingLanes|=t;var r=t-1;e.suspendedLanes&=r,e.pingedLanes&=r,(e=e.eventTimes)[t=31-Wt(t)]=n}var Wt=Math.clz32?Math.clz32:function(e){return 0===e?32:31-(Ht(e)/Vt|0)|0},Ht=Math.log,Vt=Math.LN2,qt=i.unstable_UserBlockingPriority,Xt=i.unstable_runWithPriority,Kt=!0;function Yt(e,t,n,r){De||Ie();var o=Qt,i=De;De=!0;try{Ae(o,e,t,n,r)}finally{(De=i)||Fe()}}function Gt(e,t,n,r){Xt(qt,Qt.bind(null,e,t,n,r))}function Qt(e,t,n,r){var o;if(Kt)if((o=0==(4&t))&&0<it.length&&-1<dt.indexOf(e))e=pt(null,e,t,n,r),it.push(e);else{var i=Zt(e,t,n,r);if(null===i)o&&ht(e,r);else{if(o){if(-1<dt.indexOf(e))return e=pt(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 st=gt(st,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return ut.set(i,gt(ut.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;ht(e,r)}jr(e,t,r,null,n)}}}function Zt(e,t,n,r){var o=_e(r);if(null!==(o=Zr(o))){var i=Ye(o);if(null===i)o=null;else{var a=i.tag;if(13===a){if(null!==(o=Ge(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 sn,un,cn,fn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},dn=ln(fn),pn=o({},fn,{view:0,detail:0}),hn=ln(pn),gn=o({},pn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:On,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?(sn=e.screenX-cn.screenX,un=e.screenY-cn.screenY):un=sn=0,cn=e),sn)},movementY:function(e){return"movementY"in e?e.movementY:un}}),mn=ln(gn),vn=ln(o({},gn,{dataTransfer:0})),yn=ln(o({},pn,{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}})),xn=ln(o({},fn,{data:0})),En={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},kn={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 _n(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Sn[e])&&!!t[e]}function On(){return _n}var Cn=ln(o({},pn,{key:function(e){if(e.key){var t=En[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?kn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:On,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})),Ln=ln(o({},pn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:On})),Tn=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})),Rn=[9,13,27,32],An=f&&"CompositionEvent"in window,In=null;f&&"documentMode"in document&&(In=document.documentMode);var Mn=f&&"TextEvent"in window&&!In,Dn=f&&(!An||In&&8<In&&11>=In),Nn=String.fromCharCode(32),Fn=!1;function zn(e,t){switch(e){case"keyup":return-1!==Rn.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 Bn=!1,Un={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 Wn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Un[e.type]:"textarea"===t}function Hn(e,t,n,r){Te(r),0<(t=Ar(t,"onChange")).length&&(n=new dn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Vn=null,qn=null;function Xn(e){_r(e,0)}function Kn(e){if(Q(eo(e)))return e}function Yn(e,t){if("change"===e)return t}var Gn=!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;Gn=Qn&&(!document.documentMode||9<document.documentMode)}function er(){Vn&&(Vn.detachEvent("onpropertychange",tr),qn=Vn=null)}function tr(e){if("value"===e.propertyName&&Kn(qn)){var t=[];if(Hn(t,qn,e,_e(e)),e=Xn,De)e(t);else{De=!0;try{Re(e,t)}finally{De=!1,Fe()}}}}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 Kn(qn)}function or(e,t){if("click"===e)return Kn(t)}function ir(e,t){if("input"===e||"change"===e)return Kn(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 sr(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 ur(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function cr(e,t){var n,r=ur(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=ur(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 pr(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 hr=f&&"documentMode"in document&&11>=document.documentMode,gr=null,mr=null,vr=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)&&pr(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},vr&&sr(vr,r)||(vr=r,0<(r=Ar(mr,"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(At,2);for(var wr="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),xr=0;xr<wr.length;xr++)Rt.set(wr[xr],0);c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),u("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),u("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),u("onBeforeInput",["compositionend","keypress","textInput","paste"]),u("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Er="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),kr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Er));function Sr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,o,i,l,s,u){if(Ke.apply(this,arguments),We){if(!We)throw Error(a(198));var c=He;We=!1,He=null,Ve||(Ve=!0,qe=c)}}(r,t,void 0,e),e.currentTarget=null}function _r(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],s=l.instance,u=l.currentTarget;if(l=l.listener,s!==i&&o.isPropagationStopped())break e;Sr(o,l,u),i=s}else for(a=0;a<r.length;a++){if(s=(l=r[a]).instance,u=l.currentTarget,l=l.listener,s!==i&&o.isPropagationStopped())break e;Sr(o,l,u),i=s}}}if(Ve)throw e=qe,Ve=!1,qe=null,e}function Or(e,t){var n=no(t),r=e+"__bubble";n.has(r)||(Tr(t,e,2,!1),n.add(r))}var Cr="_reactListening"+Math.random().toString(36).slice(2);function Pr(e){e[Cr]||(e[Cr]=!0,l.forEach((function(t){kr.has(t)||Lr(t,!1,e,null),Lr(t,!0,e,null)})))}function Lr(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&&kr.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),Tr(i,e,o,t),a.add(l))}function Tr(e,t,n,r){var o=Rt.get(t);switch(void 0===o?2:o){case 0:o=Yt;break;case 1:o=Gt;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 s=a.tag;if((3===s||4===s)&&((s=a.stateNode.containerInfo)===o||8===s.nodeType&&s.parentNode===o))return;a=a.return}for(;null!==l;){if(null===(a=Zr(l)))return;if(5===(s=a.tag)||6===s){r=i=a;continue e}l=l.parentNode}}r=r.return}!function(e,t,n){if(Ne)return e();Ne=!0;try{Me(e,t,n)}finally{Ne=!1,Fe()}}((function(){var r=i,o=_e(n),a=[];e:{var l=jt.get(e);if(void 0!==l){var s=dn,u=e;switch(e){case"keypress":if(0===rn(n))break e;case"keydown":case"keyup":s=Cn;break;case"focusin":u="focus",s=yn;break;case"focusout":u="blur",s=yn;break;case"beforeblur":case"afterblur":s=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":s=mn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":s=vn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":s=Ln;break;case Ct:case Pt:case Lt:s=bn;break;case Tt:s=Tn;break;case"scroll":s=hn;break;case"wheel":s=jn;break;case"copy":case"cut":case"paste":s=wn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":s=Pn}var c=0!=(4&t),f=!c&&"scroll"===e,d=c?null!==l?l+"Capture":null:l;c=[];for(var p,h=r;null!==h;){var g=(p=h).stateNode;if(5===p.tag&&null!==g&&(p=g,null!==d&&null!=(g=ze(h,d))&&c.push(Rr(h,g,p))),f)break;h=h.return}0<c.length&&(l=new s(l,u,null,n,o),a.push({event:l,listeners:c}))}}if(0==(7&t)){if(s="mouseout"===e||"pointerout"===e,(!(l="mouseover"===e||"pointerover"===e)||0!=(16&t)||!(u=n.relatedTarget||n.fromElement)||!Zr(u)&&!u[Gr])&&(s||l)&&(l=o.window===o?o:(l=o.ownerDocument)?l.defaultView||l.parentWindow:window,s?(s=r,null!==(u=(u=n.relatedTarget||n.toElement)?Zr(u):null)&&(u!==(f=Ye(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(s=null,u=r),s!==u)){if(c=mn,g="onMouseLeave",d="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(c=Pn,g="onPointerLeave",d="onPointerEnter",h="pointer"),f=null==s?l:eo(s),p=null==u?l:eo(u),(l=new c(g,h+"leave",s,n,o)).target=f,l.relatedTarget=p,g=null,Zr(o)===r&&((c=new c(d,h+"enter",u,n,o)).target=p,c.relatedTarget=f,g=c),f=g,s&&u)e:{for(d=u,h=0,p=c=s;p;p=Ir(p))h++;for(p=0,g=d;g;g=Ir(g))p++;for(;0<h-p;)c=Ir(c),h--;for(;0<p-h;)d=Ir(d),p--;for(;h--;){if(c===d||null!==d&&c===d.alternate)break e;c=Ir(c),d=Ir(d)}c=null}else c=null;null!==s&&Mr(a,l,s,c,!1),null!==u&&null!==f&&Mr(a,f,u,c,!0)}if("select"===(s=(l=r?eo(r):window).nodeName&&l.nodeName.toLowerCase())||"input"===s&&"file"===l.type)var m=Yn;else if(Wn(l))if(Gn)m=ir;else{m=rr;var v=nr}else(s=l.nodeName)&&"input"===s.toLowerCase()&&("checkbox"===l.type||"radio"===l.type)&&(m=or);switch(m&&(m=m(e,r))?Hn(a,m,n,o):(v&&v(e,l,r),"focusout"===e&&(v=l._wrapperState)&&v.controlled&&"number"===l.type&&oe(l,"number",l.value)),v=r?eo(r):window,e){case"focusin":(Wn(v)||"true"===v.contentEditable)&&(gr=v,mr=r,vr=null);break;case"focusout":vr=mr=gr=null;break;case"mousedown":yr=!0;break;case"contextmenu":case"mouseup":case"dragend":yr=!1,br(a,n,o);break;case"selectionchange":if(hr)break;case"keydown":case"keyup":br(a,n,o)}var y;if(An)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 Bn?zn(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(Dn&&"ko"!==n.locale&&(Bn||"onCompositionStart"!==b?"onCompositionEnd"===b&&Bn&&(y=nn()):(en="value"in(Jt=o)?Jt.value:Jt.textContent,Bn=!0)),0<(v=Ar(r,b)).length&&(b=new xn(b,e,null,n,o),a.push({event:b,listeners:v}),(y||null!==(y=$n(n)))&&(b.data=y))),(y=Mn?function(e,t){switch(e){case"compositionend":return $n(t);case"keypress":return 32!==t.which?null:(Fn=!0,Nn);case"textInput":return(e=t.data)===Nn&&Fn?null:e;default:return null}}(e,n):function(e,t){if(Bn)return"compositionend"===e||!An&&zn(e,t)?(e=nn(),tn=en=Jt=null,Bn=!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 Dn&&"ko"!==t.locale?null:t.data}}(e,n))&&0<(r=Ar(r,"onBeforeInput")).length&&(o=new xn("onBeforeInput","beforeinput",null,n,o),a.push({event:o,listeners:r}),o.data=y)}_r(a,t)}))}function Rr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Ar(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=ze(e,n))&&r.unshift(Rr(e,i,o)),null!=(i=ze(e,t))&&r.push(Rr(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 Mr(e,t,n,r,o){for(var i=t._reactName,a=[];null!==n&&n!==r;){var l=n,s=l.alternate,u=l.stateNode;if(null!==s&&s===r)break;5===l.tag&&null!==u&&(l=u,o?null!=(s=ze(n,i))&&a.unshift(Rr(n,s,l)):o||null!=(s=ze(n,i))&&a.push(Rr(n,s,l))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}function Dr(){}var Nr=null,Fr=null;function zr(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 Br="function"==typeof setTimeout?setTimeout:void 0,Ur="function"==typeof clearTimeout?clearTimeout:void 0;function Wr(e){(1===e.nodeType||9===e.nodeType&&null!=(e=e.body))&&(e.textContent="")}function Hr(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,Xr=Math.random().toString(36).slice(2),Kr="__reactFiber$"+Xr,Yr="__reactProps$"+Xr,Gr="__reactContainer$"+Xr,Qr="__reactEvents$"+Xr;function Zr(e){var t=e[Kr];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Gr]||n[Kr]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Vr(e);null!==e;){if(n=e[Kr])return n;e=Vr(e)}return t}n=(e=n).parentNode}return null}function Jr(e){return!(e=e[Kr]||e[Gr])||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[Yr]||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 so={},uo=io(so),co=io(!1),fo=so;function po(e,t){var n=e.type.contextTypes;if(!n)return so;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 ho(e){return null!=e.childContextTypes}function go(){ao(co),ao(uo)}function mo(e,t,n){if(uo.current!==so)throw Error(a(168));lo(uo,t),lo(co,n)}function vo(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,X(t)||"Unknown",i));return o({},n,r)}function yo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||so,fo=uo.current,lo(uo,e),lo(co,co.current),!0}function bo(e,t,n){var r=e.stateNode;if(!r)throw Error(a(169));n?(e=vo(e,t,fo),r.__reactInternalMemoizedMergedChildContext=e,ao(co),ao(uo),lo(uo,e)):ao(co),lo(co,n)}var wo=null,xo=null,Eo=i.unstable_runWithPriority,ko=i.unstable_scheduleCallback,So=i.unstable_cancelCallback,_o=i.unstable_shouldYield,Oo=i.unstable_requestPaint,Co=i.unstable_now,Po=i.unstable_getCurrentPriorityLevel,Lo=i.unstable_ImmediatePriority,To=i.unstable_UserBlockingPriority,jo=i.unstable_NormalPriority,Ro=i.unstable_LowPriority,Ao=i.unstable_IdlePriority,Io={},Mo=void 0!==Oo?Oo:function(){},Do=null,No=null,Fo=!1,zo=Co(),$o=1e4>zo?Co:function(){return Co()-zo};function Bo(){switch(Po()){case Lo:return 99;case To:return 98;case jo:return 97;case Ro:return 96;case Ao:return 95;default:throw Error(a(332))}}function Uo(e){switch(e){case 99:return Lo;case 98:return To;case 97:return jo;case 96:return Ro;case 95:return Ao;default:throw Error(a(332))}}function Wo(e,t){return e=Uo(e),Eo(e,t)}function Ho(e,t,n){return e=Uo(e),ko(e,t,n)}function Vo(){if(null!==No){var e=No;No=null,So(e)}qo()}function qo(){if(!Fo&&null!==Do){Fo=!0;var e=0;try{var t=Do;Wo(99,(function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}})),Do=null}catch(t){throw null!==Do&&(Do=Do.slice(e+1)),ko(Lo,Vo),t}finally{Fo=!1}}}var Xo=x.ReactCurrentBatchConfig;function Ko(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 Yo=io(null),Go=null,Qo=null,Zo=null;function Jo(){Zo=Qo=Go=null}function ei(e){var t=Yo.current;ao(Yo),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){Go=e,Zo=Qo=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(Aa=!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===Go)throw Error(a(308));Qo=t,Go.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 si(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 ui(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,s=i.shared.pending;if(null!==s){i.shared.pending=null;var u=s,c=u.next;u.next=null,null===l?a=c:l.next=c,l=u;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=u)}}if(null!==a){for(d=i.baseState,l=0,f=c=u=null;;){s=a.lane;var p=a.eventTime;if((r&s)===s){null!==f&&(f=f.next={eventTime:p,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var h=e,g=a;switch(s=t,p=n,g.tag){case 1:if("function"==typeof(h=g.payload)){d=h.call(p,d,s);break e}d=h;break e;case 3:h.flags=-4097&h.flags|64;case 0:if(null==(s="function"==typeof(h=g.payload)?h.call(p,d,s):h))break e;d=o({},d,s);break e;case 2:oi=!0}}null!==a.callback&&(e.flags|=32,null===(s=i.effects)?i.effects=[a]:s.push(a))}else p={eventTime:p,lane:s,tag:a.tag,payload:a.payload,callback:a.callback,next:null},null===f?(c=f=p,u=d):f=f.next=p,l|=s;if(null===(a=a.next)){if(null===(s=i.shared.pending))break;a=s.next,s.next=null,i.lastBaseUpdate=s,i.shared.pending=null}}null===f&&(u=d),i.baseState=u,i.firstBaseUpdate=c,i.lastBaseUpdate=f,Ml|=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 pi(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 hi={isMounted:function(e){return!!(e=e._reactInternals)&&Ye(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=as(),o=ls(e),i=li(r,o);i.payload=t,null!=n&&(i.callback=n),si(e,i),ss(e,o,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=as(),o=ls(e),i=li(r,o);i.tag=1,i.payload=t,null!=n&&(i.callback=n),si(e,i),ss(e,o,r)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=as(),r=ls(e),o=li(n,r);o.tag=2,null!=t&&(o.callback=t),si(e,o),ss(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&&sr(n,r)&&sr(o,i))}function mi(e,t,n){var r=!1,o=so,i=t.contextType;return"object"==typeof i&&null!==i?i=ri(i):(o=ho(t)?fo:uo.current,i=(r=null!=(r=t.contextTypes))?po(e,o):so),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=hi,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function vi(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&&hi.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=ho(t)?fo:uo.current,o.context=po(e,i)),ci(e,n,o,r),o.state=e.memoizedState,"function"==typeof(i=t.getDerivedStateFromProps)&&(pi(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&&hi.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 xi(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 Ei(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=$s(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 s(e,t,n,r){return null===t||6!==t.tag?((t=Hs(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function u(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=Bs(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=Vs(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=Us(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=Hs(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case E:return(n=Bs(t.type,t.key,t.props,null,e.mode,n)).ref=wi(e,null,t),n.return=e,n;case k:return(t=Vs(t,e.mode,n)).return=e,t}if(bi(t)||U(t))return(t=Us(t,e.mode,n,null)).return=e,t;xi(e,t)}return null}function p(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n||"number"==typeof n)return null!==o?null:s(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case E:return n.key===o?n.type===S?f(e,t,n.props.children,r,o):u(e,t,n,r):null;case k:return n.key===o?c(e,t,n,r):null}if(bi(n)||U(n))return null!==o?null:f(e,t,n,r,null);xi(e,n)}return null}function h(e,t,n,r,o){if("string"==typeof r||"number"==typeof r)return s(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case E:return e=e.get(null===r.key?n:r.key)||null,r.type===S?f(t,e,r.props.children,o,r.key):u(t,e,r,o);case k:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o)}if(bi(r)||U(r))return f(t,e=e.get(n)||null,r,o,null);xi(t,r)}return null}function g(o,a,l,s){for(var u=null,c=null,f=a,g=a=0,m=null;null!==f&&g<l.length;g++){f.index>g?(m=f,f=null):m=f.sibling;var v=p(o,f,l[g],s);if(null===v){null===f&&(f=m);break}e&&f&&null===v.alternate&&t(o,f),a=i(v,a,g),null===c?u=v:c.sibling=v,c=v,f=m}if(g===l.length)return n(o,f),u;if(null===f){for(;g<l.length;g++)null!==(f=d(o,l[g],s))&&(a=i(f,a,g),null===c?u=f:c.sibling=f,c=f);return u}for(f=r(o,f);g<l.length;g++)null!==(m=h(f,o,g,l[g],s))&&(e&&null!==m.alternate&&f.delete(null===m.key?g:m.key),a=i(m,a,g),null===c?u=m:c.sibling=m,c=m);return e&&f.forEach((function(e){return t(o,e)})),u}function m(o,l,s,u){var c=U(s);if("function"!=typeof c)throw Error(a(150));if(null==(s=c.call(s)))throw Error(a(151));for(var f=c=null,g=l,m=l=0,v=null,y=s.next();null!==g&&!y.done;m++,y=s.next()){g.index>m?(v=g,g=null):v=g.sibling;var b=p(o,g,y.value,u);if(null===b){null===g&&(g=v);break}e&&g&&null===b.alternate&&t(o,g),l=i(b,l,m),null===f?c=b:f.sibling=b,f=b,g=v}if(y.done)return n(o,g),c;if(null===g){for(;!y.done;m++,y=s.next())null!==(y=d(o,y.value,u))&&(l=i(y,l,m),null===f?c=y:f.sibling=y,f=y);return c}for(g=r(o,g);!y.done;m++,y=s.next())null!==(y=h(g,o,m,y.value,u))&&(e&&null!==y.alternate&&g.delete(null===y.key?m:y.key),l=i(y,l,m),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,s){var u="object"==typeof i&&null!==i&&i.type===S&&null===i.key;u&&(i=i.props.children);var c="object"==typeof i&&null!==i;if(c)switch(i.$$typeof){case E:e:{for(c=i.key,u=r;null!==u;){if(u.key===c){if(7===u.tag){if(i.type===S){n(e,u.sibling),(r=o(u,i.props.children)).return=e,e=r;break e}}else if(u.elementType===i.type){n(e,u.sibling),(r=o(u,i.props)).ref=wi(e,u,i),r.return=e,e=r;break e}n(e,u);break}t(e,u),u=u.sibling}i.type===S?((r=Us(i.props.children,e.mode,s,i.key)).return=e,e=r):((s=Bs(i.type,i.key,i.props,null,e.mode,s)).ref=wi(e,r,i),s.return=e,e=s)}return l(e);case k:e:{for(u=i.key;null!==r;){if(r.key===u){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=Vs(i,e.mode,s)).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=Hs(i,e.mode,s)).return=e,e=r),l(e);if(bi(i))return g(e,r,i,s);if(U(i))return m(e,r,i,s);if(c&&xi(e,i),void 0===i&&!u)switch(e.tag){case 1:case 22:case 0:case 11:case 15:throw Error(a(152,X(e.type)||"Component"))}return n(e,r)}}var ki=Ei(!0),Si=Ei(!1),_i={},Oi=io(_i),Ci=io(_i),Pi=io(_i);function Li(e){if(e===_i)throw Error(a(174));return e}function Ti(e,t){switch(lo(Pi,t),lo(Ci,e),lo(Oi,_i),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:pe(null,"");break;default:t=pe(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}ao(Oi),lo(Oi,t)}function ji(){ao(Oi),ao(Ci),ao(Pi)}function Ri(e){Li(Pi.current);var t=Li(Oi.current),n=pe(t,e.type);t!==n&&(lo(Ci,e),lo(Oi,n))}function Ai(e){Ci.current===e&&(ao(Oi),ao(Ci))}var Ii=io(0);function Mi(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 Di=null,Ni=null,Fi=!1;function zi(e,t){var n=Fs(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 Bi(e){if(Fi){var t=Ni;if(t){var n=t;if(!$i(e,t)){if(!(t=Hr(n.nextSibling))||!$i(e,t))return e.flags=-1025&e.flags|2,Fi=!1,void(Di=e);zi(Di,n)}Di=e,Ni=Hr(t.firstChild)}else e.flags=-1025&e.flags|2,Fi=!1,Di=e}}function Ui(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Di=e}function Wi(e){if(e!==Di)return!1;if(!Fi)return Ui(e),Fi=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!$r(t,e.memoizedProps))for(t=Ni;t;)zi(e,t),t=Hr(t.nextSibling);if(Ui(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){Ni=Hr(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}Ni=null}}else Ni=Di?Hr(e.stateNode.nextSibling):null;return!0}function Hi(){Ni=Di=null,Fi=!1}var Vi=[];function qi(){for(var e=0;e<Vi.length;e++)Vi[e]._workInProgressVersionPrimary=null;Vi.length=0}var Xi=x.ReactCurrentDispatcher,Ki=x.ReactCurrentBatchConfig,Yi=0,Gi=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(Yi=i,Gi=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Xi.current=null===e||null===e.memoizedState?La:Ta,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,Xi.current=ja,e=n(r,o)}while(ea)}if(Xi.current=Pa,t=null!==Qi&&null!==Qi.next,Yi=0,Zi=Qi=Gi=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?Gi.memoizedState=Zi=e:Zi=Zi.next=e,Zi}function ia(){if(null===Qi){var e=Gi.alternate;e=null!==e?e.memoizedState:null}else e=Qi.next;var t=null===Zi?Gi.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?Gi.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 s=l=i=null,u=o;do{var c=u.lane;if((Yi&c)===c)null!==s&&(s=s.next={lane:0,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null}),r=u.eagerReducer===e?u.eagerState:e(r,u.action);else{var f={lane:c,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null};null===s?(l=s=f,i=r):s=s.next=f,Gi.lanes|=c,Ml|=c}u=u.next}while(null!==u&&u!==o);null===s?i=r:s.next=l,ar(r,t.memoizedState)||(Aa=!0),t.memoizedState=r,t.baseState=i,t.baseQueue=s,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function sa(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)||(Aa=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function ua(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=(Yi&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=Cl;if(null===o)throw Error(a(349));var i=t._getVersion,l=i(t._source),s=Xi.current,u=s.useState((function(){return ua(o,t,n)})),c=u[1],f=u[0];u=Zi;var d=e.memoizedState,p=d.refs,h=p.getSnapshot,g=d.source;d=d.subscribe;var m=Gi;return e.memoizedState={refs:p,source:t,subscribe:r},s.useEffect((function(){p.getSnapshot=n,p.setSnapshot=c;var e=i(t._source);if(!ar(l,e)){e=n(t._source),ar(f,e)||(c(e),e=ls(m),o.mutableReadLanes|=e&o.pendingLanes),e=o.mutableReadLanes,o.entangledLanes|=e;for(var r=o.entanglements,a=e;0<a;){var s=31-Wt(a),u=1<<s;r[s]|=e,a&=~u}}}),[n,t,r]),s.useEffect((function(){return r(t._source,(function(){var e=p.getSnapshot,n=p.setSnapshot;try{n(e(t._source));var r=ls(m);o.mutableReadLanes|=r&o.pendingLanes}catch(e){n((function(){throw e}))}}))}),[t,r]),ar(h,n)&&ar(g,t)&&ar(d,r)||((e={pending:null,dispatch:null,lastRenderedReducer:aa,lastRenderedState:f}).dispatch=c=Ca.bind(null,Gi,e),u.queue=e,u.baseQueue=null,f=ua(o,t,n),u.memoizedState=u.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=Ca.bind(null,Gi,e),[t.memoizedState,e]}function pa(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=Gi.updateQueue)?(t={lastEffect:null},Gi.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 ha(e){return e={current:e},oa().memoizedState=e}function ga(){return ia().memoizedState}function ma(e,t,n,r){var o=oa();Gi.flags|=e,o.memoizedState=pa(1|t,n,void 0,void 0===r?null:r)}function va(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 pa(t,n,i,r)}Gi.flags|=e,o.memoizedState=pa(1|t,n,i,r)}function ya(e,t){return ma(516,4,e,t)}function ba(e,t){return va(516,4,e,t)}function wa(e,t){return va(4,2,e,t)}function xa(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 Ea(e,t,n){return n=null!=n?n.concat([e]):null,va(4,2,xa.bind(null,t,e),n)}function ka(){}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 _a(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 Oa(e,t){var n=Bo();Wo(98>n?98:n,(function(){e(!0)})),Wo(97<n?97:n,(function(){var n=Ki.transition;Ki.transition=1;try{e(!1),t()}finally{Ki.transition=n}}))}function Ca(e,t,n){var r=as(),o=ls(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===Gi||null!==a&&a===Gi)ea=Ji=!0;else{if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=t.lastRenderedReducer))try{var l=t.lastRenderedState,s=a(l,n);if(i.eagerReducer=a,i.eagerState=s,ar(s,l))return}catch(e){}ss(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},La={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,ma(4,2,xa.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ma(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=Ca.bind(null,Gi,e),[r.memoizedState,e]},useRef:ha,useState:da,useDebugValue:ka,useDeferredValue:function(e){var t=da(e),n=t[0],r=t[1];return ya((function(){var t=Ki.transition;Ki.transition=1;try{r(e)}finally{Ki.transition=t}}),[e]),n},useTransition:function(){var e=da(!1),t=e[0];return ha(e=Oa.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(Fi){var e=!1,t=function(e){return{$$typeof:M,toString:e,valueOf:e}}((function(){throw e||(e=!0,n("r:"+(qr++).toString(36))),Error(a(355))})),n=da(t)[1];return 0==(2&Gi.mode)&&(Gi.flags|=516,pa(5,(function(){n("r:"+(qr++).toString(36))}),void 0,null)),t}return da(t="r:"+(qr++).toString(36)),t},unstable_isNewReconciler:!1},Ta={readContext:ri,useCallback:Sa,useContext:ri,useEffect:ba,useImperativeHandle:Ea,useLayoutEffect:wa,useMemo:_a,useReducer:la,useRef:ga,useState:function(){return la(aa)},useDebugValue:ka,useDeferredValue:function(e){var t=la(aa),n=t[0],r=t[1];return ba((function(){var t=Ki.transition;Ki.transition=1;try{r(e)}finally{Ki.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:Ea,useLayoutEffect:wa,useMemo:_a,useReducer:sa,useRef:ga,useState:function(){return sa(aa)},useDebugValue:ka,useDeferredValue:function(e){var t=sa(aa),n=t[0],r=t[1];return ba((function(){var t=Ki.transition;Ki.transition=1;try{r(e)}finally{Ki.transition=t}}),[e]),n},useTransition:function(){var e=sa(aa)[0];return[ga().current,e]},useMutableSource:fa,useOpaqueIdentifier:function(){return sa(aa)[0]},unstable_isNewReconciler:!1},Ra=x.ReactCurrentOwner,Aa=!1;function Ia(e,t,n,r){t.child=null===e?Si(t,null,n,r):ki(t,e.child,n,r)}function Ma(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||Aa?(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 Da(e,t,n,r,o,i){if(null===e){var a=n.type;return"function"!=typeof a||zs(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Bs(n.type,null,r,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,Na(e,t,a,r,o,i))}return a=e.child,0==(o&i)&&(o=a.memoizedProps,(n=null!==(n=n.compare)?n:sr)(o,r)&&e.ref===t.ref)?Ja(e,t,i):(t.flags|=1,(e=$s(a,r)).ref=t.ref,e.return=t,t.child=e)}function Na(e,t,n,r,o,i){if(null!==e&&sr(e.memoizedProps,r)&&e.ref===t.ref){if(Aa=!1,0==(i&o))return t.lanes=e.lanes,Ja(e,t,i);0!=(16384&e.flags)&&(Aa=!0)}return $a(e,t,n,r,i)}function Fa(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},ms(0,n);else{if(0==(1073741824&n))return e=null!==i?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e},ms(0,e),null;t.memoizedState={baseLanes:0},ms(0,null!==i?i.baseLanes:n)}else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,ms(0,r);return Ia(e,t,o,n),t.child}function za(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=ho(n)?fo:uo.current;return i=po(t,i),ni(t,o),n=ra(e,t,n,r,i,o),null===e||Aa?(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 Ba(e,t,n,r,o){if(ho(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),mi(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 s=a.context,u=n.contextType;u="object"==typeof u&&null!==u?ri(u):po(t,u=ho(n)?fo:uo.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||s!==u)&&vi(t,a,r,u),oi=!1;var d=t.memoizedState;a.state=d,ci(t,r,a,o),s=t.memoizedState,l!==r||d!==s||co.current||oi?("function"==typeof c&&(pi(t,n,c,r),s=t.memoizedState),(l=oi||gi(t,n,l,r,d,s,u))?(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=s),a.props=r,a.state=s,a.context=u,r=l):("function"==typeof a.componentDidMount&&(t.flags|=4),r=!1)}else{a=t.stateNode,ai(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:Ko(t.type,l),a.props=u,f=t.pendingProps,d=a.context,s="object"==typeof(s=n.contextType)&&null!==s?ri(s):po(t,s=ho(n)?fo:uo.current);var p=n.getDerivedStateFromProps;(c="function"==typeof p||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(l!==f||d!==s)&&vi(t,a,r,s),oi=!1,d=t.memoizedState,a.state=d,ci(t,r,a,o);var h=t.memoizedState;l!==f||d!==h||co.current||oi?("function"==typeof p&&(pi(t,n,p,r),h=t.memoizedState),(u=oi||gi(t,n,u,r,d,h,s))?(c||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,h,s),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,h,s)),"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=h),a.props=r,a.state=h,a.context=s,r=u):("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 Ua(e,t,n,r,i,o)}function Ua(e,t,n,r,o,i){za(e,t);var a=0!=(64&t.flags);if(!r&&!a)return o&&bo(t,n,!1),Ja(e,t,i);r=t.stateNode,Ra.current=t;var l=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=ki(t,e.child,null,i),t.child=ki(t,null,l,i)):Ia(e,t,l,i),t.memoizedState=r.state,o&&bo(t,n,!0),t.child}function Wa(e){var t=e.stateNode;t.pendingContext?mo(0,t.pendingContext,t.pendingContext!==t.context):t.context&&mo(0,t.context,!1),Ti(e,t.containerInfo)}var Ha,Va,qa,Xa={dehydrated:null,retryLane:0};function Ka(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&&Bi(t),e=o.children,i=o.fallback,a?(e=Ya(t,e,i,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Xa,e):"number"==typeof o.unstable_expectedLoadTime?(e=Ya(t,e,i,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Xa,t.lanes=33554432,e):((n=Ws({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=$s(a,l),null!==e?r=$s(e,r):(r=Us(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=Xa,o):(n=function(e,t,n,r){var o=e.child;return e=o.sibling,n=$s(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 Ya(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=Ws(t,o,0,null),n=Us(n,o,r,null),i.return=e,n.return=e,i.sibling=n,e.child=i,n}function Ga(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&&Ga(e,n);else if(19===e.tag)Ga(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===Mi(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===Mi(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),Ml|=t.lanes,0!=(n&t.childLanes)){if(null!==e&&t.child!==e.child)throw Error(a(153));if(null!==t.child){for(n=$s(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=$s(e,e.pendingProps)).return=t;n.sibling=null}return t.child}return null}function el(e,t){if(!Fi)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 ho(t.type)&&go(),null;case 3:return ji(),ao(co),ao(uo),qi(),(r=t.stateNode).pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(Wi(t)?t.flags|=4:r.hydrate||(t.flags|=256)),null;case 5:Ai(t);var i=Li(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=Li(Oi.current),Wi(t)){r=t.stateNode,n=t.type;var l=t.memoizedProps;switch(r[Kr]=t,r[Yr]=l,n){case"dialog":Or("cancel",r),Or("close",r);break;case"iframe":case"object":case"embed":Or("load",r);break;case"video":case"audio":for(e=0;e<Er.length;e++)Or(Er[e],r);break;case"source":Or("error",r);break;case"img":case"image":case"link":Or("error",r),Or("load",r);break;case"details":Or("toggle",r);break;case"input":ee(r,l),Or("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!l.multiple},Or("invalid",r);break;case"textarea":se(r,l),Or("invalid",r)}for(var u in ke(n,l),e=null,l)l.hasOwnProperty(u)&&(i=l[u],"children"===u?"string"==typeof i?r.textContent!==i&&(e=["children",i]):"number"==typeof i&&r.textContent!==""+i&&(e=["children",""+i]):s.hasOwnProperty(u)&&null!=i&&"onScroll"===u&&Or("scroll",r));switch(n){case"input":G(r),re(r,l,!0);break;case"textarea":G(r),ce(r);break;case"select":case"option":break;default:"function"==typeof l.onClick&&(r.onclick=Dr)}r=e,t.updateQueue=r,null!==r&&(t.flags|=4)}else{switch(u=9===i.nodeType?i:i.ownerDocument,e===fe&&(e=de(n)),e===fe?"script"===n?((e=u.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=u.createElement(n,{is:r.is}):(e=u.createElement(n),"select"===n&&(u=e,r.multiple?u.multiple=!0:r.size&&(u.size=r.size))):e=u.createElementNS(e,n),e[Kr]=t,e[Yr]=r,Ha(e,t),t.stateNode=e,u=Se(n,r),n){case"dialog":Or("cancel",e),Or("close",e),i=r;break;case"iframe":case"object":case"embed":Or("load",e),i=r;break;case"video":case"audio":for(i=0;i<Er.length;i++)Or(Er[i],e);i=r;break;case"source":Or("error",e),i=r;break;case"img":case"image":case"link":Or("error",e),Or("load",e),i=r;break;case"details":Or("toggle",e),i=r;break;case"input":ee(e,r),i=J(e,r),Or("invalid",e);break;case"option":i=ie(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=o({},r,{value:void 0}),Or("invalid",e);break;case"textarea":se(e,r),i=le(e,r),Or("invalid",e);break;default:i=r}ke(n,i);var c=i;for(l in c)if(c.hasOwnProperty(l)){var f=c[l];"style"===l?xe(e,f):"dangerouslySetInnerHTML"===l?null!=(f=f?f.__html:void 0)&&me(e,f):"children"===l?"string"==typeof f?("textarea"!==n||""!==f)&&ve(e,f):"number"==typeof f&&ve(e,""+f):"suppressContentEditableWarning"!==l&&"suppressHydrationWarning"!==l&&"autoFocus"!==l&&(s.hasOwnProperty(l)?null!=f&&"onScroll"===l&&Or("scroll",e):null!=f&&w(e,l,f,u))}switch(n){case"input":G(e),re(e,r,!1);break;case"textarea":G(e),ce(e);break;case"option":null!=r.value&&e.setAttribute("value",""+K(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=Dr)}zr(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=Li(Pi.current),Li(Oi.current),Wi(t)?(r=t.stateNode,n=t.memoizedProps,r[Kr]=t,r.nodeValue!==n&&(t.flags|=4)):((r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[Kr]=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&&Wi(t):n=null!==e.memoizedState,r&&!n&&0!=(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!=(1&Ii.current)?0===Rl&&(Rl=3):(0!==Rl&&3!==Rl||(Rl=4),null===Cl||0==(134217727&Ml)&&0==(134217727&Dl)||ds(Cl,Ll))),(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===(u=r.rendering))if(l)el(r,!1);else{if(0!==Rl||null!==e&&0!=(64&e.flags))for(e=t.child;null!==e;){if(null!==(u=Mi(e))){for(t.flags|=64,el(r,!1),null!==(l=u.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===(u=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=u.childLanes,l.lanes=u.lanes,l.child=u.child,l.memoizedProps=u.memoizedProps,l.memoizedState=u.memoizedState,l.updateQueue=u.updateQueue,l.type=u.type,e=u.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=Mi(u))){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&&!u.alternate&&!Fi)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?(u.sibling=t.child,t.child=u):(null!==(n=r.last)?n.sibling=u:t.child=u,r.last=u)}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 vs(),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:ho(e.type)&&go();var t=e.flags;return 4096&t?(e.flags=-4097&t|64,e):null;case 3:if(ji(),ao(co),ao(uo),qi(),0!=(64&(t=e.flags)))throw Error(a(285));return e.flags=-4097&t|64,e;case 5:return Ai(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 vs(),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}))}}Ha=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,Li(Oi.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=Dr)}for(f in ke(n,r),n=null,i)if(!r.hasOwnProperty(f)&&i.hasOwnProperty(f)&&null!=i[f])if("style"===f){var u=i[f];for(a in u)u.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else"dangerouslySetInnerHTML"!==f&&"children"!==f&&"suppressContentEditableWarning"!==f&&"suppressHydrationWarning"!==f&&"autoFocus"!==f&&(s.hasOwnProperty(f)?l||(l=[]):(l=l||[]).push(f,null));for(f in r){var c=r[f];if(u=null!=i?i[f]:void 0,r.hasOwnProperty(f)&&c!==u&&(null!=c||null!=u))if("style"===f)if(u){for(a in u)!u.hasOwnProperty(a)||c&&c.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in c)c.hasOwnProperty(a)&&u[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,u=u?u.__html:void 0,null!=c&&u!==c&&(l=l||[]).push(f,c)):"children"===f?"string"!=typeof c&&"number"!=typeof c||(l=l||[]).push(f,""+c):"suppressContentEditableWarning"!==f&&"suppressHydrationWarning"!==f&&(s.hasOwnProperty(f)?(null!=c&&"onScroll"===f&&Or("scroll",e),l||u===c||(l=[])):"object"==typeof c&&null!==c&&c.$$typeof===M?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(){Hl||(Hl=!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 sl="function"==typeof WeakSet?WeakSet:Set;function ul(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){Is(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:Ko(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:return void(256&t.flags&&Wr(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)&&(js(n,e),Ts(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:Ko(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&&zr(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&&xt(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 pl(e,t){if(xo&&"function"==typeof xo.onCommitFiberUnmount)try{xo.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))js(t,n);else{r=t;try{o()}catch(e){Is(r,e)}}n=n.next}while(n!==e)}break;case 1:if(ul(t),"function"==typeof(e=t.stateNode).componentWillUnmount)try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(e){Is(t,e)}break;case 5:ul(t);break;case 4:bl(e,t)}}function hl(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 ml(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&&(ve(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?vl(e,n,t):yl(e,n,t)}function vl(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=Dr));else if(4!==r&&null!==(e=e.child))for(vl(e,t,n),e=e.sibling;null!==e;)vl(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,s=o,u=s;;)if(pl(l,u),null!==u.child&&4!==u.tag)u.child.return=u,u=u.child;else{if(u===s)break e;for(;null===u.sibling;){if(null===u.return||u.return===s)break e;u=u.return}u.sibling.return=u.return,u=u.sibling}r?(l=n,s=o.stateNode,8===l.nodeType?l.parentNode.removeChild(s):l.removeChild(s)):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(pl(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[Yr]=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],s=i[o+1];"style"===l?xe(n,s):"dangerouslySetInnerHTML"===l?me(n,s):"children"===l?ve(n,s):w(n,l,s,t)}switch(e){case"input":ne(n,r);break;case"textarea":ue(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,xt(n.containerInfo)));case 13:return null!==t.memoizedState&&(zl=$o(),dl(t.child,!0)),void xl(t);case 19:return void xl(t);case 23:case 24:return void dl(t,null!==t.memoizedState)}throw Error(a(163))}function xl(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new sl),t.forEach((function(t){var r=Ds.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function El(e,t){return null!==e&&(null===(e=e.memoizedState)||null!==e.dehydrated)&&null!==(t=t.memoizedState)&&null===t.dehydrated}var kl=Math.ceil,Sl=x.ReactCurrentDispatcher,_l=x.ReactCurrentOwner,Ol=0,Cl=null,Pl=null,Ll=0,Tl=0,jl=io(0),Rl=0,Al=null,Il=0,Ml=0,Dl=0,Nl=0,Fl=null,zl=0,$l=1/0;function Bl(){$l=$o()+500}var Ul,Wl=null,Hl=!1,Vl=null,ql=null,Xl=!1,Kl=null,Yl=90,Gl=[],Ql=[],Zl=null,Jl=0,es=null,ts=-1,ns=0,rs=0,os=null,is=!1;function as(){return 0!=(48&Ol)?$o():-1!==ts?ts:ts=$o()}function ls(e){if(0==(2&(e=e.mode)))return 1;if(0==(4&e))return 99===Bo()?1:2;if(0===ns&&(ns=Il),0!==Xo.transition){0!==rs&&(rs=null!==Fl?Fl.pendingLanes:0),e=ns;var t=4186112&~rs;return 0==(t&=-t)&&0==(t=(e=4186112&~e)&-e)&&(t=8192),t}return e=Bo(),e=zt(0!=(4&Ol)&&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),ns)}function ss(e,t,n){if(50<Jl)throw Jl=0,es=null,Error(a(185));if(null===(e=us(e,t)))return null;Ut(e,t,n),e===Cl&&(Dl|=t,4===Rl&&ds(e,Ll));var r=Bo();1===t?0!=(8&Ol)&&0==(48&Ol)?ps(e):(cs(e,n),0===Ol&&(Bl(),Vo())):(0==(4&Ol)||98!==r&&99!==r||(null===Zl?Zl=new Set([e]):Zl.add(e)),cs(e,n)),Fl=e}function us(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 cs(e,t){for(var n=e.callbackNode,r=e.suspendedLanes,o=e.pingedLanes,i=e.expirationTimes,l=e.pendingLanes;0<l;){var s=31-Wt(l),u=1<<s,c=i[s];if(-1===c){if(0==(u&r)||0!=(u&o)){c=t,Dt(u);var f=Mt;i[s]=10<=f?c+250:6<=f?c+5e3:-1}}else c<=t&&(e.expiredLanes|=u);l&=~u}if(r=Nt(e,e===Cl?Ll:0),t=Mt,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=ps.bind(null,e),null===Do?(Do=[n],No=ko(Lo,qo)):Do.push(n),n=Io):14===t?n=Ho(99,ps.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=Ho(n,fs.bind(null,e))),e.callbackPriority=t,e.callbackNode=n}}function fs(e){if(ts=-1,rs=ns=0,0!=(48&Ol))throw Error(a(327));var t=e.callbackNode;if(Ls()&&e.callbackNode!==t)return null;var n=Nt(e,e===Cl?Ll:0);if(0===n)return null;var r=n,o=Ol;Ol|=16;var i=ws();for(Cl===e&&Ll===r||(Bl(),ys(e,r));;)try{ks();break}catch(t){bs(e,t)}if(Jo(),Sl.current=i,Ol=o,null!==Pl?r=0:(Cl=null,Ll=0,r=Rl),0!=(Il&Dl))ys(e,0);else if(0!==r){if(2===r&&(Ol|=64,e.hydrate&&(e.hydrate=!1,Wr(e.containerInfo)),0!==(n=Ft(e))&&(r=xs(e,n))),1===r)throw t=Al,ys(e,0),ds(e,n),cs(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:Os(e);break;case 3:if(ds(e,n),(62914560&n)===n&&10<(r=zl+500-$o())){if(0!==Nt(e,0))break;if(((o=e.suspendedLanes)&n)!==n){as(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=Br(Os.bind(null,e),r);break}Os(e);break;case 4:if(ds(e,n),(4186112&n)===n)break;for(r=e.eventTimes,o=-1;0<n;){var l=31-Wt(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*kl(n/1960))-n)){e.timeoutHandle=Br(Os.bind(null,e),n);break}Os(e);break;default:throw Error(a(329))}}return cs(e,$o()),e.callbackNode===t?fs.bind(null,e):null}function ds(e,t){for(t&=~Nl,t&=~Dl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Wt(t),r=1<<n;e[n]=-1,t&=~r}}function ps(e){if(0!=(48&Ol))throw Error(a(327));if(Ls(),e===Cl&&0!=(e.expiredLanes&Ll)){var t=Ll,n=xs(e,t);0!=(Il&Dl)&&(n=xs(e,t=Nt(e,t)))}else n=xs(e,t=Nt(e,0));if(0!==e.tag&&2===n&&(Ol|=64,e.hydrate&&(e.hydrate=!1,Wr(e.containerInfo)),0!==(t=Ft(e))&&(n=xs(e,t))),1===n)throw n=Al,ys(e,0),ds(e,t),cs(e,$o()),n;return e.finishedWork=e.current.alternate,e.finishedLanes=t,Os(e),cs(e,$o()),null}function hs(e,t){var n=Ol;Ol|=1;try{return e(t)}finally{0===(Ol=n)&&(Bl(),Vo())}}function gs(e,t){var n=Ol;Ol&=-2,Ol|=8;try{return e(t)}finally{0===(Ol=n)&&(Bl(),Vo())}}function ms(e,t){lo(jl,Tl),Tl|=t,Il|=t}function vs(){Tl=jl.current,ao(jl)}function ys(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,Ur(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(uo),qi();break;case 5:Ai(r);break;case 4:ji();break;case 13:case 19:ao(Ii);break;case 10:ei(r);break;case 23:case 24:vs()}n=n.return}Cl=e,Pl=$s(e.current,null),Ll=Tl=Il=t,Rl=0,Al=null,Nl=Dl=Ml=0}function bs(e,t){for(;;){var n=Pl;try{if(Jo(),Xi.current=Pa,Ji){for(var r=Gi.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null),r=r.next}Ji=!1}if(Yi=0,Zi=Qi=Gi=null,ea=!1,_l.current=null,null===n||null===n.return){Rl=1,Al=t,Pl=null;break}e:{var i=e,a=n.return,l=n,s=t;if(t=Ll,l.flags|=2048,l.firstEffect=l.lastEffect=null,null!==s&&"object"==typeof s&&"function"==typeof s.then){var u=s;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 p;if(p=13===d.tag){var h=d.memoizedState;if(null!==h)p=null!==h.dehydrated;else{var g=d.memoizedProps;p=void 0!==g.fallback&&(!0!==g.unstable_avoidThisFallback||!f)}}if(p){var m=d.updateQueue;if(null===m){var v=new Set;v.add(u),d.updateQueue=v}else m.add(u);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,si(l,y)}l.lanes|=1;break e}s=void 0,l=t;var b=i.pingCache;if(null===b?(b=i.pingCache=new il,s=new Set,b.set(u,s)):void 0===(s=b.get(u))&&(s=new Set,b.set(u,s)),!s.has(l)){s.add(l);var w=Ms.bind(null,i,u,l);u.then(w,w)}d.flags|=4096,d.lanes=t;break e}d=d.return}while(null!==d);s=Error((X(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!==Rl&&(Rl=2),s=rl(s,l),d=a;do{switch(d.tag){case 3:i=s,d.flags|=4096,t&=-t,d.lanes|=t,ui(d,al(0,i,t));break e;case 1:i=s;var x=d.type,E=d.stateNode;if(0==(64&d.flags)&&("function"==typeof x.getDerivedStateFromError||null!==E&&"function"==typeof E.componentDidCatch&&(null===ql||!ql.has(E)))){d.flags|=4096,t&=-t,d.lanes|=t,ui(d,ll(d,i,t));break e}}d=d.return}while(null!==d)}_s(n)}catch(e){t=e,Pl===n&&null!==n&&(Pl=n=n.return);continue}break}}function ws(){var e=Sl.current;return Sl.current=Pa,null===e?Pa:e}function xs(e,t){var n=Ol;Ol|=16;var r=ws();for(Cl===e&&Ll===t||ys(e,t);;)try{Es();break}catch(t){bs(e,t)}if(Jo(),Ol=n,Sl.current=r,null!==Pl)throw Error(a(261));return Cl=null,Ll=0,Rl}function Es(){for(;null!==Pl;)Ss(Pl)}function ks(){for(;null!==Pl&&!_o();)Ss(Pl)}function Ss(e){var t=Ul(e.alternate,e,Tl);e.memoizedProps=e.pendingProps,null===t?_s(e):Pl=t,_l.current=null}function _s(e){var t=e;do{var n=t.alternate;if(e=t.return,0==(2048&t.flags)){if(null!==(n=tl(n,t,Tl)))return void(Pl=n);if(24!==(n=t).tag&&23!==n.tag||null===n.memoizedState||0!=(1073741824&Tl)||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===Rl&&(Rl=5)}function Os(e){var t=Bo();return Wo(99,Cs.bind(null,e,t)),null}function Cs(e,t){do{Ls()}while(null!==Kl);if(0!=(48&Ol))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,s=e.expirationTimes;0<i;){var u=31-Wt(i),c=1<<u;o[u]=0,l[u]=-1,s[u]=-1,i&=~c}if(null!==Zl&&0==(24&r)&&Zl.has(e)&&Zl.delete(e),e===Cl&&(Pl=Cl=null,Ll=0),1<n.flags?null!==n.lastEffect?(n.lastEffect.nextEffect=n,r=n.firstEffect):r=n:r=n.firstEffect,null!==r){if(o=Ol,Ol|=32,_l.current=null,Nr=Kt,pr(l=dr())){if("selectionStart"in l)s={start:l.selectionStart,end:l.selectionEnd};else e:if(s=(s=l.ownerDocument)&&s.defaultView||window,(c=s.getSelection&&s.getSelection())&&0!==c.rangeCount){s=c.anchorNode,i=c.anchorOffset,u=c.focusNode,c=c.focusOffset;try{s.nodeType,u.nodeType}catch(e){s=null;break e}var f=0,d=-1,p=-1,h=0,g=0,m=l,v=null;t:for(;;){for(var y;m!==s||0!==i&&3!==m.nodeType||(d=f+i),m!==u||0!==c&&3!==m.nodeType||(p=f+c),3===m.nodeType&&(f+=m.nodeValue.length),null!==(y=m.firstChild);)v=m,m=y;for(;;){if(m===l)break t;if(v===s&&++h===i&&(d=f),v===u&&++g===c&&(p=f),null!==(y=m.nextSibling))break;v=(m=v).parentNode}m=y}s=-1===d||-1===p?null:{start:d,end:p}}else s=null;s=s||{start:0,end:0}}else s=null;Fr={focusedElem:l,selectionRange:s},Kt=!1,os=null,is=!1,Wl=r;do{try{Ps()}catch(e){if(null===Wl)throw Error(a(330));Is(Wl,e),Wl=Wl.nextEffect}}while(null!==Wl);os=null,Wl=r;do{try{for(l=e;null!==Wl;){var b=Wl.flags;if(16&b&&ve(Wl.stateNode,""),128&b){var w=Wl.alternate;if(null!==w){var x=w.ref;null!==x&&("function"==typeof x?x(null):x.current=null)}}switch(1038&b){case 2:ml(Wl),Wl.flags&=-3;break;case 6:ml(Wl),Wl.flags&=-3,wl(Wl.alternate,Wl);break;case 1024:Wl.flags&=-1025;break;case 1028:Wl.flags&=-1025,wl(Wl.alternate,Wl);break;case 4:wl(Wl.alternate,Wl);break;case 8:bl(l,s=Wl);var E=s.alternate;hl(s),null!==E&&hl(E)}Wl=Wl.nextEffect}}catch(e){if(null===Wl)throw Error(a(330));Is(Wl,e),Wl=Wl.nextEffect}}while(null!==Wl);if(x=Fr,w=dr(),b=x.focusedElem,l=x.selectionRange,w!==b&&b&&b.ownerDocument&&fr(b.ownerDocument.documentElement,b)){null!==l&&pr(b)&&(w=l.start,void 0===(x=l.end)&&(x=w),"selectionStart"in b?(b.selectionStart=w,b.selectionEnd=Math.min(x,b.value.length)):(x=(w=b.ownerDocument||document)&&w.defaultView||window).getSelection&&(x=x.getSelection(),s=b.textContent.length,E=Math.min(l.start,s),l=void 0===l.end?E:Math.min(l.end,s),!x.extend&&E>l&&(s=l,l=E,E=s),s=cr(b,E),i=cr(b,l),s&&i&&(1!==x.rangeCount||x.anchorNode!==s.node||x.anchorOffset!==s.offset||x.focusNode!==i.node||x.focusOffset!==i.offset)&&((w=w.createRange()).setStart(s.node,s.offset),x.removeAllRanges(),E>l?(x.addRange(w),x.extend(i.node,i.offset)):(w.setEnd(i.node,i.offset),x.addRange(w))))),w=[];for(x=b;x=x.parentNode;)1===x.nodeType&&w.push({element:x,left:x.scrollLeft,top:x.scrollTop});for("function"==typeof b.focus&&b.focus(),b=0;b<w.length;b++)(x=w[b]).element.scrollLeft=x.left,x.element.scrollTop=x.top}Kt=!!Nr,Fr=Nr=null,e.current=n,Wl=r;do{try{for(b=e;null!==Wl;){var k=Wl.flags;if(36&k&&fl(b,Wl.alternate,Wl),128&k){w=void 0;var S=Wl.ref;if(null!==S){var _=Wl.stateNode;Wl.tag,w=_,"function"==typeof S?S(w):S.current=w}}Wl=Wl.nextEffect}}catch(e){if(null===Wl)throw Error(a(330));Is(Wl,e),Wl=Wl.nextEffect}}while(null!==Wl);Wl=null,Mo(),Ol=o}else e.current=n;if(Xl)Xl=!1,Kl=e,Yl=t;else for(Wl=r;null!==Wl;)t=Wl.nextEffect,Wl.nextEffect=null,8&Wl.flags&&((k=Wl).sibling=null,k.stateNode=null),Wl=t;if(0===(r=e.pendingLanes)&&(ql=null),1===r?e===es?Jl++:(Jl=0,es=e):Jl=0,n=n.stateNode,xo&&"function"==typeof xo.onCommitFiberRoot)try{xo.onCommitFiberRoot(wo,n,void 0,64==(64&n.current.flags))}catch(e){}if(cs(e,$o()),Hl)throw Hl=!1,e=Vl,Vl=null,e;return 0!=(8&Ol)||Vo(),null}function Ps(){for(;null!==Wl;){var e=Wl.alternate;is||null===os||(0!=(8&Wl.flags)?Je(Wl,os)&&(is=!0):13===Wl.tag&&El(e,Wl)&&Je(Wl,os)&&(is=!0));var t=Wl.flags;0!=(256&t)&&cl(e,Wl),0==(512&t)||Xl||(Xl=!0,Ho(97,(function(){return Ls(),null}))),Wl=Wl.nextEffect}}function Ls(){if(90!==Yl){var e=97<Yl?97:Yl;return Yl=90,Wo(e,Rs)}return!1}function Ts(e,t){Gl.push(t,e),Xl||(Xl=!0,Ho(97,(function(){return Ls(),null})))}function js(e,t){Ql.push(t,e),Xl||(Xl=!0,Ho(97,(function(){return Ls(),null})))}function Rs(){if(null===Kl)return!1;var e=Kl;if(Kl=null,0!=(48&Ol))throw Error(a(331));var t=Ol;Ol|=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));Is(i,e)}}for(n=Gl,Gl=[],r=0;r<n.length;r+=2){o=n[r],i=n[r+1];try{var s=o.create;o.destroy=s()}catch(e){if(null===i)throw Error(a(330));Is(i,e)}}for(s=e.current.firstEffect;null!==s;)e=s.nextEffect,s.nextEffect=null,8&s.flags&&(s.sibling=null,s.stateNode=null),s=e;return Ol=t,Vo(),!0}function As(e,t,n){si(e,t=al(0,t=rl(n,t),1)),t=as(),null!==(e=us(e,1))&&(Ut(e,1,t),cs(e,t))}function Is(e,t){if(3===e.tag)As(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){As(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(si(n,o),o=as(),null!==(n=us(n,1)))Ut(n,1,o),cs(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 Ms(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=as(),e.pingedLanes|=e.suspendedLanes&n,Cl===e&&(Ll&n)===n&&(4===Rl||3===Rl&&(62914560&Ll)===Ll&&500>$o()-zl?ys(e,0):Nl|=n),cs(e,t)}function Ds(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===Bo()?1:2:(0===ns&&(ns=Il),0===(t=$t(62914560&~ns))&&(t=4194304))),n=as(),null!==(e=us(e,t))&&(Ut(e,t,n),cs(e,n))}function Ns(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 Fs(e,t,n,r){return new Ns(e,t,n,r)}function zs(e){return!(!(e=e.prototype)||!e.isReactComponent)}function $s(e,t){var n=e.alternate;return null===n?((n=Fs(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 Bs(e,t,n,r,o,i){var l=2;if(r=e,"function"==typeof e)zs(e)&&(l=1);else if("string"==typeof e)l=5;else e:switch(e){case S:return Us(n.children,o,i,t);case D:l=8,o|=16;break;case _:l=8,o|=1;break;case O:return(e=Fs(12,n,t,8|o)).elementType=O,e.type=O,e.lanes=i,e;case T:return(e=Fs(13,n,t,o)).type=T,e.elementType=T,e.lanes=i,e;case j:return(e=Fs(19,n,t,o)).elementType=j,e.lanes=i,e;case N:return Ws(n,o,i,t);case F:return(e=Fs(24,n,t,o)).elementType=F,e.lanes=i,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case C:l=10;break e;case P:l=9;break e;case L:l=11;break e;case R:l=14;break e;case A:l=16,r=null;break e;case I:l=22;break e}throw Error(a(130,null==e?e:typeof e,""))}return(t=Fs(l,n,t,o)).elementType=e,t.type=r,t.lanes=i,t}function Us(e,t,n,r){return(e=Fs(7,e,r,t)).lanes=n,e}function Ws(e,t,n,r){return(e=Fs(23,e,r,t)).elementType=N,e.lanes=n,e}function Hs(e,t,n){return(e=Fs(6,e,null,t)).lanes=n,e}function Vs(e,t,n){return(t=Fs(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function qs(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=Bt(0),this.expirationTimes=Bt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Bt(0),this.mutableSourceEagerHydrationData=null}function Xs(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:k,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}function Ks(e,t,n,r){var o=t.current,i=as(),l=ls(o);e:if(n){t:{if(Ye(n=n._reactInternals)!==n||1!==n.tag)throw Error(a(170));var s=n;do{switch(s.tag){case 3:s=s.stateNode.context;break t;case 1:if(ho(s.type)){s=s.stateNode.__reactInternalMemoizedMergedChildContext;break t}}s=s.return}while(null!==s);throw Error(a(171))}if(1===n.tag){var u=n.type;if(ho(u)){n=vo(n,u,s);break e}}n=s}else n=so;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),si(o,t),ss(o,l,i),l}function Ys(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Gs(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Qs(e,t){Gs(e,t),(e=e.alternate)&&Gs(e,t)}function Zs(e,t,n){var r=null!=n&&null!=n.hydrationOptions&&n.hydrationOptions.mutableSources||null;if(n=new qs(e,t,null!=n&&!0===n.hydrate),t=Fs(3,null,null,2===t?7:1===t?3:0),n.current=t,t.stateNode=n,ii(t),e[Gr]=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 Js(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function eu(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=Ys(a);l.call(e)}}Ks(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 Zs(e,0,t?{hydrate:!0}:void 0)}(n,r),a=i._internalRoot,"function"==typeof o){var s=o;o=function(){var e=Ys(a);s.call(e)}}gs((function(){Ks(t,a,e,o)}))}return Ys(a)}function tu(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Js(t))throw Error(a(200));return Xs(e,t,null,n)}Ul=function(e,t,n){var r=t.lanes;if(null!==e)if(e.memoizedProps!==t.pendingProps||co.current)Aa=!0;else{if(0==(n&r)){switch(Aa=!1,t.tag){case 3:Wa(t),Hi();break;case 5:Ri(t);break;case 1:ho(t.type)&&yo(t);break;case 4:Ti(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value;var o=t.type._context;lo(Yo,o._currentValue),o._currentValue=r;break;case 13:if(null!==t.memoizedState)return 0!=(n&t.child.childLanes)?Ka(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,Fa(e,t,n)}return Ja(e,t,n)}Aa=0!=(16384&e.flags)}else Aa=!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=po(t,uo.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,ho(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&&pi(t,r,l,e),o.updater=hi,t.stateNode=o,o._reactInternals=t,yi(t,r,e,n),t=Ua(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 zs(e)?1:0;if(null!=e){if((e=e.$$typeof)===L)return 11;if(e===R)return 14}return 2}(o),e=Ko(o,e),i){case 0:t=$a(null,t,o,e,n);break e;case 1:t=Ba(null,t,o,e,n);break e;case 11:t=Ma(null,t,o,e,n);break e;case 14:t=Da(null,t,o,Ko(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:Ko(r,o),n);case 1:return r=t.type,o=t.pendingProps,Ba(e,t,r,o=t.elementType===r?o:Ko(r,o),n);case 3:if(Wa(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)Hi(),t=Ja(e,t,n);else{if((i=(o=t.stateNode).hydrate)&&(Ni=Hr(t.stateNode.containerInfo.firstChild),Di=t,i=Fi=!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),Hi();t=t.child}return t;case 5:return Ri(t),null===e&&Bi(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),za(e,t),Ia(e,t,l,n),t.child;case 6:return null===e&&Bi(t),null;case 13:return Ka(e,t,n);case 4:return Ti(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=ki(t,null,r,n):Ia(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,Ma(e,t,r,o=t.elementType===r?o:Ko(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 s=t.type._context;if(lo(Yo,s._currentValue),s._currentValue=i,null!==l)if(s=l.value,0==(i=ar(s,i)?0:0|("function"==typeof r._calculateChangedBits?r._calculateChangedBits(s,i):1073741823))){if(l.children===o.children&&!co.current){t=Ja(e,t,n);break e}}else for(null!==(s=t.child)&&(s.return=t);null!==s;){var u=s.dependencies;if(null!==u){l=s.child;for(var c=u.firstContext;null!==c;){if(c.context===r&&0!=(c.observedBits&i)){1===s.tag&&((c=li(-1,n&-n)).tag=2,si(s,c)),s.lanes|=n,null!==(c=s.alternate)&&(c.lanes|=n),ti(s.return,n),u.lanes|=n;break}c=c.next}}else l=10===s.tag&&s.type===t.type?null:s.child;if(null!==l)l.return=s;else for(l=s;null!==l;){if(l===t){l=null;break}if(null!==(s=l.sibling)){s.return=l.return,l=s;break}l=l.return}s=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=Ko(o=t.type,t.pendingProps),Da(e,t,o,i=Ko(o.type,i),r,n);case 15:return Na(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ko(r,o),null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,ho(r)?(e=!0,yo(t)):e=!1,ni(t,n),mi(t,r,o),yi(t,r,o,n),Ua(null,t,r,!0,e,n);case 19:return Za(e,t,n);case 23:case 24:return Fa(e,t,n)}throw Error(a(156,t.tag))},Zs.prototype.render=function(e){Ks(e,this._internalRoot,null,null)},Zs.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;Ks(null,e,null,(function(){t[Gr]=null}))},et=function(e){13===e.tag&&(ss(e,4,as()),Qs(e,4))},tt=function(e){13===e.tag&&(ss(e,67108864,as()),Qs(e,67108864))},nt=function(e){if(13===e.tag){var t=as(),n=ls(e);ss(e,n,t),Qs(e,n)}},rt=function(e,t){return t()},Oe=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":ue(e,n);break;case"select":null!=(t=n.value)&&ae(e,!!n.multiple,t,!1)}},Re=hs,Ae=function(e,t,n,r,o){var i=Ol;Ol|=4;try{return Wo(98,e.bind(null,t,n,r,o))}finally{0===(Ol=i)&&(Bl(),Vo())}},Ie=function(){0==(49&Ol)&&(function(){if(null!==Zl){var e=Zl;Zl=null,e.forEach((function(e){e.expiredLanes|=24&e.pendingLanes,cs(e,$o())}))}Vo()}(),Ls())},Me=function(e,t){var n=Ol;Ol|=2;try{return e(t)}finally{0===(Ol=n)&&(Bl(),Vo())}};var nu={Events:[Jr,eo,to,Te,je,Ls,{current:!1}]},ru={findFiberByHostInstance:Zr,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},ou={bundleType:ru.bundleType,version:ru.version,rendererPackageName:ru.rendererPackageName,rendererConfig:ru.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:x.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Ze(e))?null:e.stateNode},findFiberByHostInstance:ru.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var iu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!iu.isDisabled&&iu.supportsFiber)try{wo=iu.inject(ou),xo=iu}catch(ge){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=nu,t.createPortal=tu,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=Ol;if(0!=(48&n))return e(t);Ol|=1;try{if(e)return Wo(99,e.bind(null,t))}finally{Ol=n,Vo()}},t.hydrate=function(e,t,n){if(!Js(t))throw Error(a(200));return eu(null,e,t,!0,n)},t.render=function(e,t,n){if(!Js(t))throw Error(a(200));return eu(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Js(e))throw Error(a(40));return!!e._reactRootContainer&&(gs((function(){eu(null,null,e,!1,(function(){e._reactRootContainer=null,e[Gr]=null}))})),!0)},t.unstable_batchedUpdates=hs,t.unstable_createPortal=function(e,t){return tu(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Js(n))throw Error(a(200));if(null==e||void 0===e._reactInternals)throw Error(a(38));return eu(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,s={key:!0,ref:!0,__self:!0,__source:!0};function u(e,t,n){var r,i={},u=null,c=null;for(r in void 0!==n&&(u=""+n),void 0!==t.key&&(u=""+t.key),void 0!==t.ref&&(c=t.ref),t)l.call(t,r)&&!s.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:u,ref:c,props:i,_owner:a.current}}t.jsx=u,t.jsxs=u},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,s=60112;t.Suspense=60113;var u=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"),s=f("react.forward_ref"),t.Suspense=f("react.suspense"),u=f("react.memo"),c=f("react.lazy")}var d="function"==typeof Symbol&&Symbol.iterator;function p(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 h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g={};function m(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||h}function v(){}function y(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||h}m.prototype.isReactComponent={},m.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(p(85));this.updater.enqueueSetState(this,e,t,"setState")},m.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},v.prototype=m.prototype;var b=y.prototype=new v;b.constructor=y,r(b,m.prototype),b.isPureReactComponent=!0;var w={current:null},x=Object.prototype.hasOwnProperty,E={key:!0,ref:!0,__self:!0,__source:!0};function k(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)x.call(t,r)&&!E.hasOwnProperty(r)&&(i[r]=t[r]);var s=arguments.length-2;if(1===s)i.children=n;else if(1<s){for(var u=Array(s),c=0;c<s;c++)u[c]=arguments[c+2];i.children=u}if(e&&e.defaultProps)for(r in s=e.defaultProps)void 0===i[r]&&(i[r]=s[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 _=/\/+/g;function O(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 C(e,t,n,r,a){var l=typeof e;"undefined"!==l&&"boolean"!==l||(e=null);var s=!1;if(null===e)s=!0;else switch(l){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case o:case i:s=!0}}if(s)return a=a(s=e),e=""===r?"."+O(s,0):r,Array.isArray(a)?(n="",null!=e&&(n=e.replace(_,"$&/")+"/"),C(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||s&&s.key===a.key?"":(""+a.key).replace(_,"$&/")+"/")+e)),t.push(a)),1;if(s=0,r=""===r?".":r+":",Array.isArray(e))for(var u=0;u<e.length;u++){var c=r+O(l=e[u],u);s+=C(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),u=0;!(l=e.next()).done;)s+=C(l=l.value,t,n,c=r+O(l,u++),a);else if("object"===l)throw t=""+e,Error(p(31,"[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t));return s}function P(e,t,n){if(null==e)return e;var r=[],o=0;return C(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function L(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 T={current:null};function j(){var e=T.current;if(null===e)throw Error(p(321));return e}var R={ReactCurrentDispatcher:T,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(p(143));return e}},t.Component=m,t.PureComponent=y,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=R,t.cloneElement=function(e,t,n){if(null==e)throw Error(p(267,e));var i=r({},e.props),a=e.key,l=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(l=t.ref,s=w.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var u=e.type.defaultProps;for(c in t)x.call(t,c)&&!E.hasOwnProperty(c)&&(i[c]=void 0===t[c]&&void 0!==u?u[c]:t[c])}var c=arguments.length-2;if(1===c)i.children=n;else if(1<c){u=Array(c);for(var f=0;f<c;f++)u[f]=arguments[f+2];i.children=u}return{$$typeof:o,type:e.type,key:a,ref:l,props:i,_owner:s}},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=k,t.createFactory=function(e){var t=k.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:s,render:e}},t.isValidElement=S,t.lazy=function(e){return{$$typeof:c,_payload:{_status:-1,_result:e},_init:L}},t.memo=function(e,t){return{$$typeof:u,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 s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var o=t&&t.prototype instanceof m?t:m,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===p)throw new Error("Generator is already running");if(r===h){if("throw"===o)throw i;return T()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var l=_(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=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=p;var s=c(e,t,n);if("normal"===s.type){if(r=n.done?h:d,s.arg===g)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(r=h,n.method="throw",n.arg=s.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=u;var f="suspendedStart",d="suspendedYield",p="executing",h="completed",g={};function m(){}function v(){}function y(){}var b={};s(b,i,(function(){return this}));var w=Object.getPrototypeOf,x=w&&w(w(L([])));x&&x!==n&&r.call(x,i)&&(b=x);var E=y.prototype=m.prototype=Object.create(b);function k(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function n(o,i,a,l){var s=c(e[o],e,i);if("throw"!==s.type){var u=s.arg,f=u.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){u.value=e,a(u)}),(function(e){return n("throw",e,a,l)}))}l(s.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 _(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,_(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 O(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 C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function L(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:T}}function T(){return{value:t,done:!0}}return v.prototype=y,s(E,"constructor",y),s(y,"constructor",v),v.displayName=s(y,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,s(e,l,"GeneratorFunction")),e.prototype=Object.create(E),e},e.awrap=function(e){return{__await:e}},k(S.prototype),s(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(u(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},k(E),s(E,l,"Generator"),s(E,i,(function(){return this})),s(E,"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=L,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(C),!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 s=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(s&&u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!u)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),C(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;C(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:L(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,s=l.now();t.unstable_now=function(){return l.now()-s}}if("undefined"==typeof window||"function"!=typeof MessageChannel){var u=null,c=null,f=function(){if(null!==u)try{var e=t.unstable_now();u(!0,e),u=null}catch(e){throw setTimeout(f,0),e}};n=function(e){null!==u?setTimeout(n,0,e):(u=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,p=window.clearTimeout;if("undefined"!=typeof console){var h=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 h&&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,m=null,v=-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,x=w.port2;w.port1.onmessage=function(){if(null!==m){var e=t.unstable_now();b=e+y;try{m(!0,e)?x.postMessage(null):(g=!1,m=null)}catch(e){throw x.postMessage(null),e}}else g=!1},n=function(e){m=e,g||(g=!0,x.postMessage(null))},r=function(e,n){v=d((function(){e(t.unstable_now())}),n)},o=function(){p(v),v=-1}}function E(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,o=e[r];if(!(void 0!==o&&0<_(o,t)))break e;e[r]=t,e[n]=o,n=r}}function k(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,s=e[l];if(void 0!==a&&0>_(a,n))void 0!==s&&0>_(s,a)?(e[r]=s,e[l]=n,r=l):(e[r]=a,e[i]=n,r=i);else{if(!(void 0!==s&&0>_(s,n)))break e;e[r]=s,e[l]=n,r=l}}}return t}return null}function _(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var O=[],C=[],P=1,L=null,T=3,j=!1,R=!1,A=!1;function I(e){for(var t=k(C);null!==t;){if(null===t.callback)S(C);else{if(!(t.startTime<=e))break;S(C),t.sortIndex=t.expirationTime,E(O,t)}t=k(C)}}function M(e){if(A=!1,I(e),!R)if(null!==k(O))R=!0,n(D);else{var t=k(C);null!==t&&r(M,t.startTime-e)}}function D(e,n){R=!1,A&&(A=!1,o()),j=!0;var i=T;try{for(I(n),L=k(O);null!==L&&(!(L.expirationTime>n)||e&&!t.unstable_shouldYield());){var a=L.callback;if("function"==typeof a){L.callback=null,T=L.priorityLevel;var l=a(L.expirationTime<=n);n=t.unstable_now(),"function"==typeof l?L.callback=l:L===k(O)&&S(O),I(n)}else S(O);L=k(O)}if(null!==L)var s=!0;else{var u=k(C);null!==u&&r(M,u.startTime-n),s=!1}return s}finally{L=null,T=i,j=!1}}var N=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(){R||j||(R=!0,n(D))},t.unstable_getCurrentPriorityLevel=function(){return T},t.unstable_getFirstCallbackNode=function(){return k(O)},t.unstable_next=function(e){switch(T){case 1:case 2:case 3:var t=3;break;default:t=T}var n=T;T=t;try{return e()}finally{T=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=N,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=T;T=e;try{return t()}finally{T=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 s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return e={id:P++,callback:i,priorityLevel:e,startTime:a,expirationTime:s=a+s,sortIndex:-1},a>l?(e.sortIndex=a,E(C,e),null===k(O)&&e===k(C)&&(A?o():A=!0,r(M,a-l))):(e.sortIndex=s,E(O,e),R||j||(R=!0,n(D))),e},t.unstable_wrapCallback=function(e){var t=T;return function(){var n=T;T=t;try{return e.apply(this,arguments)}finally{T=n}}}},4616:(e,t,n)=>{"use strict";e.exports=n(6475)},2778:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(8081),o=n.n(r),i=n(3645),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},7420:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var r=n(8081),o=n.n(r),i=n(3645),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: 'Lora';\n font-weight: 400;\n font-style: normal;\n src: url(Lora-Regular.ttf);\n}\n\n@font-face {\n font-family: 'Lora';\n font-weight: 700;\n font-style: normal;\n src: url(Lora-Bold.ttf);\n}\n\n@font-face {\n font-family: 'Lora';\n font-weight: 400;\n font-style: italic;\n src: url(Lora-Italic.ttf);\n}\n\n@font-face {\n font-family: 'Merriweather';\n font-weight: 400;\n font-style: normal;\n src: url(Merriweather-Regular.ttf);\n}\n\n@font-face {\n font-family: 'Merriweather';\n font-weight: 700;\n font-style: normal;\n src: url(Merriweather-Bold.ttf);\n}\n\n@font-face {\n font-family: 'Merriweather';\n font-weight: 400;\n font-style: italic;\n src: url(Merriweather-Italic.ttf);\n}\n\n@font-face {\n font-family: 'Open Sans';\n font-weight: 400;\n font-style: normal;\n src: url(OpenSans-Regular.ttf);\n}\n\n@font-face {\n font-family: 'Open Sans';\n font-weight: 700;\n font-style: normal;\n src: url(OpenSans-Bold.ttf);\n}\n\n@font-face {\n font-family: 'Open Sans';\n font-weight: 400;\n font-style: italic;\n src: url(OpenSans-Italic.ttf);\n}\n\n@font-face {\n font-family: 'Roboto';\n font-weight: 400;\n font-style: normal;\n src: url(Roboto-Regular.ttf);\n}\n\n@font-face {\n font-family: 'Roboto';\n font-weight: 700;\n font-style: normal;\n src: url(Roboto-Bold.ttf);\n}\n\n@font-face {\n font-family: 'Roboto';\n font-weight: 400;\n font-style: italic;\n src: url(Roboto-Italic.ttf);\n}\n\n@font-face {\n font-family: 'Crimson Text';\n font-weight: 400;\n font-style: normal;\n src: url(CrimsonText-Regular.ttf);\n}\n\n@font-face {\n font-family: 'Crimson Text';\n font-weight: 700;\n font-style: normal;\n src: url(CrimsonText-Bold.ttf);\n}\n\n@font-face {\n font-family: 'Crimson Text';\n font-weight: 400;\n font-style: italic;\n src: url(CrimsonText-Italic.ttf);\n}\n\n@font-face {\n font-family: 'OpenDyslexic';\n font-weight: 400;\n font-style: normal;\n src: url(OpenDyslexicAlta-Regular.otf);\n}\n\n@font-face {\n font-family: 'OpenDyslexic';\n font-weight: 700;\n font-style: normal;\n src: url(OpenDyslexicAlta-Bold.otf);\n}\n\n@font-face {\n font-family: 'OpenDyslexic';\n font-weight: 400;\n font-style: italic;\n src: url(OpenDyslexicAlta-Italic.otf);\n}\n\n@font-face {\n font-family: 'Source Serif Pro';\n font-weight: 400;\n font-style: normal;\n src: url(SourceSerifPro-Regular.ttf);\n}\n\n@font-face {\n font-family: 'Source Serif Pro';\n font-weight: 700;\n font-style: normal;\n src: url(SourceSerifPro-Bold.ttf);\n}\n\n@font-face {\n font-family: 'Source Serif Pro';\n font-weight: 400;\n font-style: italic;\n src: url(SourceSerifPro-Italic.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\n.slider {\n -webkit-appearance: none;\n appearance: none;\n width: 100%;\n height: 1px;\n background: var(--colors-grayBorderHover);\n}\n\n.slider::-webkit-slider-thumb {\n -webkit-appearance: none;\n appearance: none;\n width: 16px !important;\n height: 16px;\n border-radius: 50%;\n background: var(--colors-utilityTextContrast);\n cursor: pointer;\n}\n\n.slider::-moz-range-thumb {\n -webkit-appearance: none;\n width: 16px !important;\n height: 16px;\n border-radius: 50%;\n background: var(--colors-utilityTextContrast);\n cursor: pointer;\n}\n\ninput[type=range]::-webkit-slider-thumb {\n -webkit-appearance: none;\n border: none;\n height: 16px;\n width: 16px;\n border-radius: 50%;\n background: var(--colors-grayTextContrast);\n}\n\nbutton {\n padding: 0px;\n margin: 0px;\n}",""]);const l=a},3645: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 s=this[l][0];null!=s&&(a[s]=!0)}for(var u=0;u<e.length;u++){var c=[].concat(e[u]);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}},8081:e=>{"use strict";e.exports=function(e){return e[1]}},3379: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 s=e[l],u=r.base?s[0]+r.base:s[0],c=i[u]||0,f="".concat(u," ").concat(c);i[u]=c+1;var d=n(f),p={css:s[1],media:s[2],sourceMap:s[3],supports:s[4],layer:s[5]};if(-1!==d)t[d].references++,t[d].updater(p);else{var h=o(p,r);r.byIndex=l,t.splice(l,0,{identifier:f,updater:h,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 s=r(e,o),u=0;u<i.length;u++){var c=n(i[u]);0===t[c].references&&(t[c].updater(),t.splice(c,1))}i=s}}},569: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)}},9216:e=>{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},3565:(e,t,n)=>{"use strict";e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},7795: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)}}}},4589: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))}}}},r={};function o(e){var t=r[e];if(void 0!==t)return t.exports;var i=r[e]={id:e,exports:{}};return n[e].call(i.exports,i,i.exports,o),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})},(()=>{"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),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}var n,r,i,a=o(7162),l=o.n(a),s=o(2784),u=o.t(s,2),c=o(8316),f="colors",d="sizes",p="space",h={gap:p,gridGap:p,columnGap:p,gridColumnGap:p,rowGap:p,gridRowGap:p,inset:p,insetBlock:p,insetBlockEnd:p,insetBlockStart:p,insetInline:p,insetInlineEnd:p,insetInlineStart:p,margin:p,marginTop:p,marginRight:p,marginBottom:p,marginLeft:p,marginBlock:p,marginBlockEnd:p,marginBlockStart:p,marginInline:p,marginInlineEnd:p,marginInlineStart:p,padding:p,paddingTop:p,paddingRight:p,paddingBottom:p,paddingLeft:p,paddingBlock:p,paddingBlockEnd:p,paddingBlockStart:p,paddingInline:p,paddingInlineEnd:p,paddingInlineStart:p,top:p,right:p,bottom:p,left:p,scrollMargin:p,scrollMarginTop:p,scrollMarginRight:p,scrollMarginBottom:p,scrollMarginLeft:p,scrollMarginX:p,scrollMarginY:p,scrollMarginBlock:p,scrollMarginBlockEnd:p,scrollMarginBlockStart:p,scrollMarginInline:p,scrollMarginInlineEnd:p,scrollMarginInlineStart:p,scrollPadding:p,scrollPaddingTop:p,scrollPaddingRight:p,scrollPaddingBottom:p,scrollPaddingLeft:p,scrollPaddingX:p,scrollPaddingY:p,scrollPaddingBlock:p,scrollPaddingBlockEnd:p,scrollPaddingBlockStart:p,scrollPaddingInline:p,scrollPaddingInlineEnd:p,scrollPaddingInlineStart:p,fontSize:"fontSizes",background:f,backgroundColor:f,backgroundImage:f,borderImage:f,border:f,borderBlock:f,borderBlockEnd:f,borderBlockStart:f,borderBottom:f,borderBottomColor:f,borderColor:f,borderInline:f,borderInlineEnd:f,borderInlineStart:f,borderLeft:f,borderLeftColor:f,borderRight:f,borderRightColor:f,borderTop:f,borderTopColor:f,caretColor:f,color:f,columnRuleColor:f,fill:f,outline:f,outlineColor:f,stroke:f,textDecorationColor:f,fontFamily:"fonts",fontWeight:"fontWeights",lineHeight:"lineHeights",letterSpacing:"letterSpacings",blockSize:d,minBlockSize:d,maxBlockSize:d,inlineSize:d,minInlineSize:d,maxInlineSize:d,width:d,minWidth:d,maxWidth:d,height:d,minHeight:d,maxHeight:d,flexBasis:d,gridTemplateColumns:d,gridTemplateRows:d,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"},g=(e,t)=>"function"==typeof t?{"()":Function.prototype.toString.call(t)}:t,m=()=>{const e=Object.create(null);return(t,n,...r)=>{const o=(e=>JSON.stringify(e,g))(t);return o in e?e[o]:e[o]=n(t,...r)}},v=Symbol.for("sxs.internal"),y=(e,t)=>Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)),b=e=>{for(const t in e)return!0;return!1},{hasOwnProperty:w}=Object.prototype,x=e=>e.includes("-")?e:e.replace(/[A-Z]/g,(e=>"-"+e.toLowerCase())),E=/\s+(?![^()]*\))/,k=e=>t=>e(..."string"==typeof t?String(t).split(E):[t]),S={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:k(((e,t)=>({marginBlockStart:e,marginBlockEnd:t||e}))),marginInline:k(((e,t)=>({marginInlineStart:e,marginInlineEnd:t||e}))),maxSize:k(((e,t)=>({maxBlockSize:e,maxInlineSize:t||e}))),minSize:k(((e,t)=>({minBlockSize:e,minInlineSize:t||e}))),paddingBlock:k(((e,t)=>({paddingBlockStart:e,paddingBlockEnd:t||e}))),paddingInline:k(((e,t)=>({paddingInlineStart:e,paddingInlineEnd:t||e})))},_=/([\d.]+)([^]*)/,O=(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,C=(e,t)=>e in P&&"string"==typeof t?t.replace(/^((?:[^]*[^\w-])?)(fit-content|stretch)((?:[^\w-][^]*)?)$/,((t,n,r,o)=>n+("stretch"===r?`-moz-available${o};${x(e)}:${n}-webkit-fill-available`:`-moz-fit-content${o};${x(e)}:${n}fit-content`)+o)):String(t),P={blockSize:1,height:1,inlineSize:1,maxBlockSize:1,maxHeight:1,maxInlineSize:1,maxWidth:1,minBlockSize:1,minHeight:1,minInlineSize:1,minWidth:1,width:1},L=e=>e?e+"-":"",T=(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?L(t)+(a.includes("$")?"":L(n))+a.replace(/\$/g,"-"):a)+")"+(r||"--"==i?"*"+(r||"")+(o||"1")+")":""))),j=/\s*,\s*(?![^()]*\))/,R=Object.prototype.toString,A=(e,t,n,r,o)=>{let i,a,l;const s=(e,t,n)=>{let u,c;const f=e=>{for(u in e){const h=64===u.charCodeAt(0),g=h&&Array.isArray(e[u])?e[u]:[e[u]];for(c of g){const e=/[A-Z]/.test(p=u)?p:p.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 S){const t=S[e];if(t!==l){l=t,f(t(c)),l=null;continue}}if(h&&(d=u.slice(1)in r.media?"@media "+r.media[u.slice(1)]:u,u=d.replace(/\(\s*([\w-]+)\s*(=|<|<=|>|>=)\s*([\w-]+)\s*(?:(<|<=|>|>=)\s*([\w-]+)\s*)?\)/g,((e,t,n,r,o,i)=>{const a=_.test(t),l=.0625*(a?-1:1),[s,u]=a?[r,t]:[t,r];return"("+("="===n[0]?"":">"===n[0]===a?"max-":"min-")+s+":"+("="!==n[0]&&1===n.length?u.replace(_,((e,t,r)=>Number(t)+l*(">"===n?1:-1)+r)):u)+(o?") and ("+(">"===o[0]?"min-":"max-")+s+":"+(1===o.length?i.replace(_,((e,t,n)=>Number(t)+l*(">"===o?-1:1)+n)):i):"")+")"}))),g){const e=h?n.concat(u):[...n],r=h?[...t]:O(t,u.split(j));void 0!==i&&o(I(...i)),i=void 0,s(c,r,e)}else void 0===i&&(i=[[],t,n]),u=h||36!==u.charCodeAt(0)?u:`--${L(r.prefix)}${u.slice(1).replace(/\$/g,"-")}`,c=g?c:"number"==typeof c?c&&e in M?String(c)+"px":String(c):T(C(e,null==c?"":c),r.prefix,r.themeMap[e]),i[0].push(`${h?`${u} `:`${x(u)}:`}${c}`)}}var d,p};f(e),void 0!==i&&o(I(...i)),i=void 0};s(e,t,n)},I=(e,t,n)=>`${n.map((e=>`${e}{`)).join("")}${t.length?`${t.join(",")}{`:""}${e.join(";")}${t.length?"}":""}${Array(n.length?n.length+1:0).join("}")}`,M={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},D=e=>String.fromCharCode(e+(e>25?39:97)),N=e=>(e=>{let t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=D(t%52)+n;return D(t%52)+n})(((e,t)=>{let n=t.length;for(;n;)e=33*e^t.charCodeAt(--n);return e})(5381,JSON.stringify(e))>>>0),F=["themed","global","styled","onevar","resonevar","allvar","inline"],z=e=>{if(e.href&&!e.href.startsWith(location.origin))return!1;try{return!!e.cssRules}catch(e){return!1}},$=e=>{let t;const n=()=>{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("")},r=()=>{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]}const o=Object(e).styleSheets||[];for(const e of o)if(z(e)){for(let o=0,i=e.cssRules;i[o];++o){const a=Object(i[o]);if(1!==a.type)continue;const l=Object(i[o+1]);if(4!==l.type)continue;++o;const{cssText:s}=a;if(!s.startsWith("--sxs"))continue;const u=s.slice(14,-3).trim().split(/\s+/),c=F[u[0]];c&&(t||(t={sheet:e,reset:r,rules:{},toString:n}),t.rules[c]={group:l,index:o,cache:new Set(u)})}if(t)break}if(!t){const o=(e,t)=>({type:t,cssRules:[],insertRule(e,t){this.cssRules.splice(t,0,o(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:o("","text/css"),rules:{},reset:r,toString:n}}const{sheet:i,rules:a}=t;for(let e=F.length-1;e>=0;--e){const t=F[e];if(!a[t]){const n=F[e+1],r=a[n]?a[n].index:i.cssRules.length;i.insertRule("@media{}",r),i.insertRule(`--sxs{--sxs:${e}}`,r),a[t]={group:i.cssRules[r+1],index:r,cache:new Set([e])}}B(a[t])}};return r(),t},B=e=>{const t=e.group;let n=t.cssRules.length;e.apply=e=>{try{t.insertRule(e,n),++n}catch(e){}}},U=Symbol(),W=m(),H=(e,t)=>W(e,(()=>(...n)=>{let r={type:null,composers:new Set};for(const t of n)if(null!=t)if(t[v]){null==r.type&&(r.type=t[v].type);for(const e of t[v].composers)r.composers.add(e)}else t.constructor!==Object||t.$$typeof?null==r.type&&(r.type=t):r.composers.add(V(t,e));return null==r.type&&(r.type="span"),r.composers.size||r.composers.add(["PJLV",{},[],[],{},[]]),q(e,r,t)})),V=({variants:e,compoundVariants:t,defaultVariants:n,...r},o)=>{const i=`${L(o.prefix)}c-${N(r)}`,a=[],l=[],s=Object.create(null),u=[];for(const e in n)s[e]=String(n[e]);if("object"==typeof e&&e)for(const t in e){c=s,f=t,w.call(c,f)||(s[t]="undefined");const n=e[t];for(const e in n){const r={[t]:String(e)};"undefined"===String(e)&&u.push(t);const o=n[e],i=[r,o,!b(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,!b(t)];l.push(r)}return[i,r,a,l,s,u]},q=(e,t,n)=>{const[r,o,i,a]=X(t.composers),l="function"==typeof t.type||t.type.$$typeof?(e=>{function t(){for(let n=0;n<t[U].length;n++){const[r,o]=t[U][n];e.rules[r].apply(o)}return t[U]=[],null}return t[U]=[],t.rules={},F.forEach((e=>t.rules[e]={apply:n=>t[U].push([e,n])})),t})(n):null,s=(l||n).rules,u=`.${r}${o.length>1?`:where(.${o.slice(1).join(".")})`:""}`,c=c=>{c="object"==typeof c&&c||Y;const{css:f,...d}=c,p={};for(const e in i)if(delete d[e],e in c){let t=c[e];"object"==typeof t&&t?p[e]={"@initial":i[e],...t}:(t=String(t),p[e]="undefined"!==t||a.has(e)?t:i[e])}else p[e]=i[e];const h=new Set([...o]);for(const[r,o,i,a]of t.composers){n.rules.styled.cache.has(r)||(n.rules.styled.cache.add(r),A(o,[`.${r}`],[],e,(e=>{s.styled.apply(e)})));const t=K(i,p,e.media),l=K(a,p,e.media,!0);for(const o of t)if(void 0!==o)for(const[t,i,a]of o){const o=`${r}-${N(i)}-${t}`;h.add(o);const l=(a?n.rules.resonevar:n.rules.onevar).cache,u=a?s.resonevar:s.onevar;l.has(o)||(l.add(o),A(i,[`.${o}`],[],e,(e=>{u.apply(e)})))}for(const t of l)if(void 0!==t)for(const[o,i]of t){const t=`${r}-${N(i)}-${o}`;h.add(t),n.rules.allvar.cache.has(t)||(n.rules.allvar.cache.add(t),A(i,[`.${t}`],[],e,(e=>{s.allvar.apply(e)})))}}if("object"==typeof f&&f){const t=`${r}-i${N(f)}-css`;h.add(t),n.rules.inline.cache.has(t)||(n.rules.inline.cache.add(t),A(f,[`.${t}`],[],e,(e=>{s.inline.apply(e)})))}for(const e of String(c.className||"").trim().split(/\s+/))e&&h.add(e);const g=d.className=[...h].join(" ");return{type:t.type,className:g,selector:u,props:d,toString:()=>g,deferredInjector:l}};return y(c,{className:r,selector:u,[v]:t,toString:()=>(n.rules.styled.cache.has(r)||c(),r)})},X=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)]},K=(e,t,n,r)=>{const o=[];e:for(let[i,a,l]of e){if(l)continue;let e,s=0,u=!1;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,i=0;for(const a in o){if(r===String(o[a])){if("@initial"!==a){const e=a.slice(1);(t=t||[]).push(e in n?n[e]:a.replace(/^@media ?/,"")),u=!0}s+=i,e=!0}++i}if(t&&t.length&&(a={["@media "+t.join(", ")]:a}),!e)continue e}}}(o[s]=o[s]||[]).push([r?"cv":`${e}-${i[e]}`,a,u])}return o},Y={},G=m(),Q=(e,t)=>G(e,(()=>(...n)=>{const r=()=>{for(let r of n){r="object"==typeof r&&r||{};let n=N(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"]}A(r,[],[],e,(e=>{t.rules.global.apply(e)}))}}return""};return y(r,{toString:r})})),Z=m(),J=(e,t)=>Z(e,(()=>n=>{const r=`${L(e.prefix)}k-${N(n)}`,o=()=>{if(!t.rules.global.cache.has(r)){t.rules.global.cache.add(r);const o=[];A(n,[],[],e,(e=>o.push(e)));const i=`@keyframes ${r}{${o.join("")}}`;t.rules.global.apply(i)}return r};return y(o,{get name(){return o()},toString:o})})),ee=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"--"+L(this.prefix)+L(this.scale)+this.token}toString(){return this.computedValue}},te=m(),ne=(e,t)=>te(e,(()=>(n,r)=>{r="object"==typeof n&&n||Object(r);const o=`.${n=(n="string"==typeof n?n:"")||`${L(e.prefix)}t-${N(r)}`}`,i={},a=[];for(const t in r){i[t]={};for(const n in r[t]){const o=`--${L(e.prefix)}${t}-${n}`,l=T(String(r[t][n]),e.prefix,t);i[t][n]=new ee(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}})),re=m(),oe=m(),ie=e=>{const t=(e=>{let t=!1;const n=re(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||{...h},utils:"object"==typeof e.utils&&e.utils||{}},l=$(o),s={css:H(a,l),globalCss:Q(a,l),keyframes:J(a,l),createTheme:ne(a,l),reset(){l.reset(),s.theme.toString()},theme:{},sheet:l,config:a,prefix:n,getCssText:l.toString,toString:l.toString};return String(s.theme=s.createTheme(i)),s}));return t||n.reset(),n})(e);return t.styled=(({config:e,sheet:t})=>oe(e,(()=>{const n=H(e,t);return(...e)=>{const t=n(...e),r=t[v].type,o=s.forwardRef(((e,n)=>{const o=e&&e.as||r,{props:i,deferredInjector:a}=t(e);return delete i.as,i.ref=n,a?s.createElement(s.Fragment,null,s.createElement(o,i),s.createElement(a,null)):s.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[v]=t[v],o}})))(t),t},ae=()=>n||(n=ie()),le=(...e)=>ae().createTheme(...e),se=(...e)=>ae().keyframes(...e),ue=(...e)=>ae().styled(...e);(i=r||(r={})).Lighter="White",i.Light="LightGray",i.Dark="Gray",i.Darker="Dark";var ce=ie({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)",cardBoxShadow:"0px 0px 4px 0px rgba(0, 0, 0, 0.1)"},zIndices:{},transitions:{},colors:{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%)",grayText:"hsl(0 0% 43.5%)",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",readerFontHighContrast:"black",readerFontTransparent:"rgba(61,61,61,0.65)",readerHeader:"3D3D3D",readerTableHeader:"#FFFFFF",avatarBg:"#FFFFFF",avatarFont:"#0A0806",labelButtonsBg:"#F5F5F4",tooltipIcons:"#FDFAEC",textDefault:"rgba(10, 8, 6, 0.8)",textSubtle:"rgba(10, 8, 6, 0.65)",textNonEssential:"rgba(10, 8, 6, 0.4)",overlay:"rgba(63, 62, 60, 0.2)"}},media:{xsmDown:"(max-width: 375px)",smDown:"(max-width: 575px)",mdDown:"(max-width: 768px)",lgDown:"(max-width: 992px)",sm:"(min-width: 576px)",md:"(min-width: 768px)",lg:"(min-width: 992px)",xl:"(min-width: 1200px)"}}),fe=ce.styled,de=(ce.css,ce.theme),pe=(ce.getCssText,ce.globalCss),he=ce.keyframes,ge=(ce.config,{colors:{grayBase:"#252525",grayBg:"#3B3938",grayBgActive:"#4f4d4c",grayTextContrast:"#D8D7D7",grayBorder:"rgba(255, 255, 255, 0.06)",graySolid:"#9C9B9A",grayBgSubtle:"hsl(0 0% 9.8%)",grayBgHover:"hsl(0 0% 13.8%)",grayLine:"hsl(0 0% 19.9%)",grayBorderHover:"hsl(0 0% 31.2%)",grayText:"hsl(0 0% 62.8%)",highlightBackground:"#867740",highlight:"#FFD234",highlightText:"white",error:"#FA5E4A",readerBg:"#303030",readerFont:"#b9b9b9",readerFontHighContrast:"white",readerFontTransparent:"rgba(185,185,185,0.65)",readerHeader:"#b9b9b9",readerTableHeader:"#FFFFFF",tooltipIcons:"#5F5E58",avatarBg:"#000000",avatarFont:"rgba(255, 255, 255, 0.8)",textDefault:"rgba(255, 255, 255, 0.8)",textSubtle:"rgba(255, 255, 255, 0.65)",textNonEssential:"rgba(10, 8, 6, 0.4)",overlay:"rgba(10, 8, 6, 0.65)",labelButtonsBg:"#5F5E58"},shadows:{cardBoxShadow:"0px 0px 9px -2px rgba(255, 255, 255, 0.09), 0px 7px 12px rgba(255, 255, 255, 0.07)"}}),me=le(r.Dark,ge),ve=le(r.Darker,ge),ye=le(r.Lighter,{});function be(...e){return t=>e.forEach((e=>function(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}(e,t)))}function we(...e){return s.useCallback(be(...e),e)}function xe(){return xe=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},xe.apply(this,arguments)}pe({body:{backgroundColor:"$grayBase"},"*":{"&:focus":{outline:"none"},"&:focus-visible":{outline:"none"}},".article-inner-css":{"::selection":{background:"$highlightBackground"}}});const Ee=s.forwardRef(((e,t)=>{const{children:n,...r}=e;return s.Children.toArray(n).some(_e)?s.createElement(s.Fragment,null,s.Children.map(n,(e=>_e(e)?s.createElement(ke,xe({},r,{ref:t}),e.props.children):e))):s.createElement(ke,xe({},r,{ref:t}),n)}));Ee.displayName="Slot";const ke=s.forwardRef(((e,t)=>{const{children:n,...r}=e;return s.isValidElement(n)?s.cloneElement(n,{...Oe(r,n.props),ref:be(t,n.ref)}):s.Children.count(n)>1?s.Children.only(null):null}));ke.displayName="SlotClone";const Se=({children:e})=>s.createElement(s.Fragment,null,e);function _e(e){return s.isValidElement(e)&&e.type===Se}function Oe(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]:s.forwardRef(((e,n)=>{const{asChild:r,...o}=e,i=r?Ee:t;return s.useEffect((()=>{window[Symbol.for("radix-ui")]=!0}),[]),e.as&&console.error(Pe),s.createElement(i,xe({},o,{ref:n}))}))})),{}),Pe="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",Le="horizontal",Te=["horizontal","vertical"],je=s.forwardRef(((e,t)=>{const{decorative:n,orientation:r=Le,...o}=e,i=Re(r)?r:Le,a=n?{role:"none"}:{"aria-orientation":"vertical"===i?i:void 0,role:"separator"};return s.createElement(Ce.div,xe({"data-orientation":i},a,o,{ref:t}))}));function Re(e){return Te.includes(e)}je.propTypes={orientation(e,t,n){const r=e[t],o=String(r);return r&&!Re(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 \`${Le}\`.`}(o,n)):null}};const Ae=je;var Ie=o(2322),Me={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=fe("div",{}),Ne=fe("span",{}),Fe=fe("a",{}),ze=fe("blockquote",{}),$e=fe(De,{display:"flex",flexDirection:"row",variants:Me,defaultVariants:{alignment:"start",distribution:"around"}}),Be=fe(De,{display:"flex",flexDirection:"column",variants:Me,defaultVariants:{alignment:"start",distribution:"around"}}),Ue=fe(Ae,{backgroundColor:"$grayLine","&[data-orientation=horizontal]":{height:1,width:"100%"},"&[data-orientation=vertical]":{height:"100%",width:1}}),We=["omnivore-highlight-id","data-twitter-tweet-id","data-instagram-id"];function He(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(1170),qe=o.n(Ve);function Xe(){return Xe=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},Xe.apply(this,arguments)}var Ke="twttr",Ye=!("undefined"==typeof window||!window.document||!window.document.createElement);function Ge(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function Qe(e){var t=(0,s.useRef)();return function(e,t){if(Ge(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])||!Ge(e[n[o]],t[n[o]]))return!1;return!0}(e,t.current)||(t.current=e),t.current}function Ze(e){return"object"==typeof e?Xe({},e):e}function Je(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}Ye&&qe()("https://platform.twitter.com/widgets.js",Ke);var et="twdiv";var tt=function(e){var t=e.tweetId,n=e.options,r=e.onLoad,o=e.renderError,i=function(e,t,n,r){var o=(0,s.useState)(null),i=o[0],a=o[1],u=(0,s.useRef)(null);if(!Ye)return{ref:u,error:i};var c=[e,Qe(t),Qe(n)];return(0,s.useEffect)((function(){a(null);var o,i=!1;if(u.current){var s=function(){var o,s=(o=l().mark((function o(){var s,c;return l().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(s=document.createElement("div")).setAttribute(et,"yes"),u.current.appendChild(s),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"))};qe().ready(Ke,{success:function(){var t=window.twttr;t&&t.widgets||n(),e(t.widgets)},error:n})}));case 8:return c=o.sent,o.next=11,c[e](Ze(t),s,Ze(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),a(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 s&&s.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){Je(i,n,r,a,l,"next",e)}function l(e){Je(i,n,r,a,l,"throw",e)}a(void 0)}))});return function(){return s.apply(this,arguments)}}();(o=u.current)&&o.querySelectorAll("*").forEach((function(e){e.hasAttribute("twdiv")&&e.remove()})),s()}return function(){i=!0}}),c),{ref:u,error:i}}("createTweet",t,n,r),a=i.ref,u=i.error;return s.createElement("div",{ref:a},u&&o&&o(u))},nt=o(6647);function rt(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function l(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,l)}s((r=r.apply(e,t||[])).next())}))}function ot(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 it,at,lt,st,ut,ct,ft,dt,pt,ht,gt,mt,vt=function(){},yt=vt(),bt=Object,wt=function(e){return e===yt},xt=function(e){return"function"==typeof e},Et=function(e,t){return bt.assign({},e,t)},kt="undefined",St=function(){return typeof window!=kt},_t=new WeakMap,Ot=0,Ct=function(e){var t,n,r=typeof e,o=e&&e.constructor,i=o==Date;if(bt(e)!==e||i||o==RegExp)t=i?e.toJSON():"symbol"==r?e.toString():"string"==r?JSON.stringify(e):""+e;else{if(t=_t.get(e))return t;if(t=++Ot+"~",_t.set(e,t),o==Array){for(t="@",n=0;n<e.length;n++)t+=Ct(e[n])+",";_t.set(e,t)}if(o==bt){t="#";for(var a=bt.keys(e).sort();!wt(n=a.pop());)wt(e[n])||(t+=n+":"+Ct(e[n])+",");_t.set(e,t)}}return t},Pt=!0,Lt=St(),Tt=typeof document!=kt,jt=Lt&&window.addEventListener?window.addEventListener.bind(window):vt,Rt=Tt?document.addEventListener.bind(document):vt,At=Lt&&window.removeEventListener?window.removeEventListener.bind(window):vt,It=Tt?document.removeEventListener.bind(document):vt,Mt={isOnline:function(){return Pt},isVisible:function(){var e=Tt&&document.visibilityState;return wt(e)||"hidden"!==e}},Dt={initFocus:function(e){return Rt("visibilitychange",e),jt("focus",e),function(){It("visibilitychange",e),At("focus",e)}},initReconnect:function(e){var t=function(){Pt=!0,e()},n=function(){Pt=!1};return jt("online",t),jt("offline",n),function(){At("online",t),At("offline",n)}}},Nt=!St()||"Deno"in window,Ft=Nt?s.useEffect:s.useLayoutEffect,zt="undefined"!=typeof navigator&&navigator.connection,$t=!Nt&&zt&&(["slow-2g","2g"].includes(zt.effectiveType)||zt.saveData),Bt=function(e){if(xt(e))try{e=e()}catch(t){e=""}var t=[].concat(e);return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?Ct(e):"",t,e?"$swr$"+e:""]},Ut=new WeakMap,Wt=function(e,t,n,r,o,i,a){void 0===a&&(a=!0);var l=Ut.get(e),s=l[0],u=l[1],c=l[3],f=s[t],d=u[t];if(a&&d)for(var p=0;p<d.length;++p)d[p](n,r,o);return i&&(delete c[t],f&&f[0])?f[0](2).then((function(){return e.get(t)})):e.get(t)},Ht=0,Vt=function(){return++Ht},qt=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return rt(void 0,void 0,void 0,(function(){var t,n,r,o,i,a,l,s,u,c,f,d,p,h,g,m,v,y,b,w,x;return ot(this,(function(E){switch(E.label){case 0:if(t=e[0],n=e[1],r=e[2],o=e[3],a=!!wt((i="boolean"==typeof o?{revalidate:o}:o||{}).populateCache)||i.populateCache,l=!1!==i.revalidate,s=!1!==i.rollbackOnError,u=i.optimisticData,c=Bt(n),f=c[0],d=c[2],!f)return[2];if(p=Ut.get(t),h=p[2],e.length<3)return[2,Wt(t,f,t.get(f),yt,yt,l,!0)];if(g=r,v=Vt(),h[f]=[v,0],y=!wt(u),b=t.get(f),y&&(w=xt(u)?u(b):u,t.set(f,w),Wt(t,f,w)),xt(g))try{g=g(t.get(f))}catch(e){m=e}return g&&xt(g.then)?[4,g.catch((function(e){m=e}))]:[3,2];case 1:if(g=E.sent(),v!==h[f][0]){if(m)throw m;return[2,g]}m&&y&&s&&(a=!0,g=b,t.set(f,b)),E.label=2;case 2:return a&&(m||(xt(a)&&(g=a(g,b)),t.set(f,g)),t.set(d,Et(t.get(d),{error:m}))),h[f][1]=Vt(),[4,Wt(t,f,g,m,yt,l,!!a)];case 3:if(x=E.sent(),m)throw m;return[2,a?x:g]}}))}))},Xt=function(e,t){for(var n in e)e[n][0]&&e[n][0](t)},Kt=function(e,t){if(!Ut.has(e)){var n=Et(Dt,t),r={},o=qt.bind(yt,e),i=vt;if(Ut.set(e,[r,{},{},{},o]),!Nt){var a=n.initFocus(setTimeout.bind(yt,Xt.bind(yt,r,0))),l=n.initReconnect(setTimeout.bind(yt,Xt.bind(yt,r,1)));i=function(){a&&a(),l&&l(),Ut.delete(e)}}return[e,o,i]}return[e,Ut.get(e)[4]]},Yt=Kt(new Map),Gt=Yt[0],Qt=Yt[1],Zt=Et({onLoadingSlow:vt,onSuccess:vt,onError:vt,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;!wt(i)&&a>i||setTimeout(r,l,o)},onDiscarded:vt,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:$t?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:$t?5e3:3e3,compare:function(e,t){return Ct(e)==Ct(t)},isPaused:function(){return!1},cache:Gt,mutate:Qt,fallback:{}},Mt),Jt=(0,s.createContext)({}),en=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())}},tn={dedupe:!0},nn=(bt.defineProperty((function(e){var t=e.value,n=function(e,t){var n=Et(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=Et(o,a))}return n}((0,s.useContext)(Jt),t),r=t&&t.provider,o=(0,s.useState)((function(){return r?Kt(r(n.cache||Gt),t):yt}))[0];return o&&(n.cache=o[0],n.mutate=o[1]),Ft((function(){return o?o[2]:yt}),[]),(0,s.createElement)(Jt.Provider,Et(e,{value:n}))}),"default",{value:Zt}),function(e,t,n){var r=n.cache,o=n.compare,i=n.fallbackData,a=n.suspense,l=n.revalidateOnMount,u=n.refreshInterval,c=n.refreshWhenHidden,f=n.refreshWhenOffline,d=Ut.get(r),p=d[0],h=d[1],g=d[2],m=d[3],v=Bt(e),y=v[0],b=v[1],w=v[2],x=(0,s.useRef)(!1),E=(0,s.useRef)(!1),k=(0,s.useRef)(y),S=(0,s.useRef)(t),_=(0,s.useRef)(n),O=function(){return _.current},C=function(){return O().isVisible()&&O().isOnline()},P=function(e){return r.set(w,Et(r.get(w),e))},L=r.get(y),T=wt(i)?n.fallback[y]:i,j=wt(L)?T:L,R=r.get(w)||{},A=R.error,I=!x.current,M=function(){return I&&!wt(l)?l:!O().isPaused()&&(a?!wt(j)&&n.revalidateIfStale:wt(j)||n.revalidateIfStale)},D=!(!y||!t)&&(!!R.isValidating||I&&M()),N=function(e,t){var n=(0,s.useState)({})[1],r=(0,s.useRef)(e),o=(0,s.useRef)({data:!1,error:!1,isValidating:!1}),i=(0,s.useCallback)((function(e){var i=!1,a=r.current;for(var l in e){var s=l;a[s]!==e[s]&&(a[s]=e[s],o.current[s]&&(i=!0))}i&&!t.current&&n({})}),[]);return Ft((function(){r.current=e})),[r,o.current,i]}({data:j,error:A,isValidating:D},E),F=N[0],z=N[1],$=N[2],B=(0,s.useCallback)((function(e){return rt(void 0,void 0,void 0,(function(){var t,i,a,l,s,u,c,f,d,p,h,v,w;return ot(this,(function(_){switch(_.label){case 0:if(t=S.current,!y||!t||E.current||O().isPaused())return[2,!1];l=!0,s=e||{},u=!m[y]||!s.dedupe,c=function(){return!E.current&&y===k.current&&x.current},f=function(){var e=m[y];e&&e[1]===a&&delete m[y]},d={isValidating:!1},p=function(){P({isValidating:!1}),c()&&$(d)},P({isValidating:!0}),$({isValidating:!0}),_.label=1;case 1:return _.trys.push([1,3,,4]),u&&(Wt(r,y,F.current.data,F.current.error,!0),n.loadingTimeout&&!r.get(y)&&setTimeout((function(){l&&c()&&O().onLoadingSlow(y,n)}),n.loadingTimeout),m[y]=[t.apply(void 0,b),Vt()]),w=m[y],i=w[0],a=w[1],[4,i];case 2:return i=_.sent(),u&&setTimeout(f,n.dedupingInterval),m[y]&&m[y][1]===a?(P({error:yt}),d.error=yt,h=g[y],!wt(h)&&(a<=h[0]||a<=h[1]||0===h[1])?(p(),u&&c()&&O().onDiscarded(y),[2,!1]):(o(F.current.data,i)?d.data=F.current.data:d.data=i,o(r.get(y),i)||r.set(y,i),u&&c()&&O().onSuccess(i,y,n),[3,4])):(u&&c()&&O().onDiscarded(y),[2,!1]);case 3:return v=_.sent(),f(),O().isPaused()||(P({error:v}),d.error=v,u&&c()&&(O().onError(v,y,n),("boolean"==typeof n.shouldRetryOnError&&n.shouldRetryOnError||xt(n.shouldRetryOnError)&&n.shouldRetryOnError(v))&&C()&&O().onErrorRetry(v,y,n,B,{retryCount:(s.retryCount||0)+1,dedupe:!0}))),[3,4];case 4:return l=!1,p(),c()&&u&&Wt(r,y,d.data,d.error,!1),[2,!0]}}))}))}),[y]),U=(0,s.useCallback)(qt.bind(yt,r,(function(){return k.current})),[]);if(Ft((function(){S.current=t,_.current=n})),Ft((function(){if(y){var e=y!==k.current,t=B.bind(yt,tn),n=0,r=en(y,h,(function(e,t,n){$(Et({error:t,isValidating:n},o(F.current.data,e)?yt:{data:e}))})),i=en(y,p,(function(e){if(0==e){var r=Date.now();O().revalidateOnFocus&&r>n&&C()&&(n=r+O().focusThrottleInterval,t())}else if(1==e)O().revalidateOnReconnect&&C()&&t();else if(2==e)return B()}));return E.current=!1,k.current=y,x.current=!0,e&&$({data:j,error:A,isValidating:D}),M()&&(wt(j)||Nt?t():(a=t,St()&&typeof window.requestAnimationFrame!=kt?window.requestAnimationFrame(a):setTimeout(a,1))),function(){E.current=!0,r(),i()}}var a}),[y,B]),Ft((function(){var e;function t(){var t=xt(u)?u(j):u;t&&-1!==e&&(e=setTimeout(n,t))}function n(){F.current.error||!c&&!O().isVisible()||!f&&!O().isOnline()?t():B(tn).then(t)}return t(),function(){e&&(clearTimeout(e),e=-1)}}),[u,c,f,B]),(0,s.useDebugValue)(j),a&&wt(j)&&y)throw S.current=t,_.current=n,E.current=!1,wt(A)?B(tn):A;return{mutate:U,get data(){return z.data=!0,j},get error(){return z.error=!0,A},get isValidating(){return z.isValidating=!0,D}}},{prod:{webBaseURL:null!==(it=window.omnivoreEnv.NEXT_PUBLIC_BASE_URL)&&void 0!==it?it:"",serverBaseURL:null!==(at=window.omnivoreEnv.NEXT_PUBLIC_SERVER_BASE_URL)&&void 0!==at?at:"",highlightsBaseURL:null!==(lt=window.omnivoreEnv.NEXT_PUBLIC_HIGHLIGHTS_BASE_URL)&&void 0!==lt?lt:""},dev:{webBaseURL:null!==(st=window.omnivoreEnv.NEXT_PUBLIC_DEV_BASE_URL)&&void 0!==st?st:"",serverBaseURL:null!==(ut=window.omnivoreEnv.NEXT_PUBLIC_DEV_SERVER_BASE_URL)&&void 0!==ut?ut:"",highlightsBaseURL:null!==(ct=window.omnivoreEnv.NEXT_PUBLIC_DEV_HIGHLIGHTS_BASE_URL)&&void 0!==ct?ct:""},demo:{webBaseURL:null!==(ft=window.omnivoreEnv.NEXT_PUBLIC_DEMO_BASE_URL)&&void 0!==ft?ft:"",serverBaseURL:null!==(dt=window.omnivoreEnv.NEXT_PUBLIC_DEMO_SERVER_BASE_URL)&&void 0!==dt?dt:"",highlightsBaseURL:null!==(pt=window.omnivoreEnv.NEXT_PUBLIC_DEMO_HIGHLIGHTS_BASE_URL)&&void 0!==pt?pt:""},local:{webBaseURL:null!==(ht=window.omnivoreEnv.NEXT_PUBLIC_LOCAL_BASE_URL)&&void 0!==ht?ht:"",serverBaseURL:null!==(gt=window.omnivoreEnv.NEXT_PUBLIC_LOCAL_SERVER_BASE_URL)&&void 0!==gt?gt:"",highlightsBaseURL:null!==(mt=window.omnivoreEnv.NEXT_PUBLIC_LOCAL_HIGHLIGHTS_BASE_URL)&&void 0!==mt?mt:""}});function rn(e){var t=nn[an].serverBaseURL;if(0==t.length)throw new Error("Couldn't find environment variable for server base url in ".concat(e," environment"));return t}var on,an=window.omnivoreEnv.NEXT_PUBLIC_APP_ENV||"prod",ln=(window.omnivoreEnv.SENTRY_DSN||window.omnivoreEnv.NEXT_PUBLIC_SENTRY_DSN,window.omnivoreEnv.NEXT_PUBLIC_PSPDFKIT_LICENSE_KEY,window.omnivoreEnv.SSO_JWT_SECRET,"".concat(nn[an].serverBaseURL,"local"==an?"/api/auth/gauth-redirect-localhost":"/api/auth/vercel/gauth-redirect"),"".concat(nn[an].serverBaseURL,"local"==an?"/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"==an?window.omnivoreEnv.NEXT_PUBLIC_GOOGLE_ID:window.omnivoreEnv.NEXT_PUBLIC_DEV_GOOGLE_ID,"".concat(rn(an),"/api/graphql")),sn="".concat(rn(an),"/api");function un(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function cn(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){un(i,r,o,a,l,"next",e)}function l(e){un(i,r,o,a,l,"throw",e)}a(void 0)}))}}function fn(){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 dn(e,t){return pn(e,t,!1)}function pn(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];n&&hn();var r=new nt.GraphQLClient(ln,{credentials:"include",mode:"cors"});return r.request(e,t,fn())}function hn(){return gn.apply(this,arguments)}function gn(){return(gn=cn(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(sn,"/auth/verify"),{credentials:"include",mode:"cors",headers:fn()});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)}(function(e){if(0==nn[an].highlightsBaseURL.length)throw new Error("Couldn't find environment variable for highlights base url in ".concat(e," environment"))})(an),function(e){if(0==nn[an].webBaseURL.length)throw new Error("Couldn't find environment variable for web base url in ".concat(e," environment"))}(an);var mn,vn,yn,bn=(0,nt.gql)(on||(mn=["\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"],vn||(vn=mn.slice(0)),on=Object.freeze(Object.defineProperties(mn,{raw:{value:Object.freeze(vn)}}))));function wn(e){Qt(bn,{getUserPersonalization:{userPersonalization:e}},!1)}function xn(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function En(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function kn(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){En(i,r,o,a,l,"next",e)}function l(e){En(i,r,o,a,l,"throw",e)}a(void 0)}))}}function Sn(e){return _n.apply(this,arguments)}function _n(){return _n=kn(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,nt.gql)(yn||(yn=xn(["\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,pn(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 wn(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]])}))),_n.apply(this,arguments)}var On="theme";function Cn(e){"undefined"!=typeof window&&(Pn(e),Sn({theme:e}))}function Pn(e){"undefined"!=typeof window&&window.localStorage.setItem(On,e),document.body.classList.remove(ye,r.Light,me,ve),document.body.classList.add(e)}function Ln(){switch(function(){if("undefined"!=typeof window)return window.localStorage.getItem(On)}()){case r.Light:return"Light";case r.Dark:return"Dark";case r.Darker:return"Darker";case r.Lighter:return"Lighter";default:return""}}function Tn(){var e=Ln();return"Dark"===e||"Darker"===e}var jn=o(4073),Rn=o.n(jn);function An(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function In(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 Mn(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)?Mn(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 Mn(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 Dn(e){var t=Tn()?"dark":"default",n=In((0,s.useState)(e.initialReadingProgress),2),r=n[0],o=n[1],i=In((0,s.useState)(e.initialAnchorIndex),2),a=i[0],l=i[1],u=In((0,s.useState)(!0),2),f=u[0],d=u[1],p=(0,s.useRef)(null);!function(e,t){(0,s.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||We.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])}(p,l);var h=(0,s.useMemo)((function(){return Rn()((function(e){console.log("setReadingProgress",e),o(e)}),2e3)}),[]);(0,s.useEffect)((function(){return function(){h.cancel()}}),[]),(0,s.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:a});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){An(i,r,o,a,l,"next",e)}function l(e){An(i,r,o,a,l,"throw",e)}a(void 0)}))})()}),[e.articleId,r]),(0,s.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]),function(e,t){var n,r,o=(0,s.useRef)(void 0),i=(n=(0,s.useState)({x:0,y:0}),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 He(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)?He(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.")}()),a=i[0],l=i[1];(0,s.useEffect)((function(){var t=function(){var t,n,r,i,a,s,u={x:null!==(t=null!==(n=window.document.documentElement.scrollLeft)&&void 0!==n?n:null===(r=window)||void 0===r?void 0:r.scrollX)&&void 0!==t?t:0,y:null!==(i=null!==(a=window.document.documentElement.scrollTop)&&void 0!==a?a:null===(s=window)||void 0===s?void 0:s.scrollY)&&void 0!==i?i:0};e(),l(u),o.current=void 0},n=function(){void 0===o.current&&(o.current=setTimeout(t,1e3))};return window.addEventListener("scroll",n),function(){return window.removeEventListener("scroll",n)}}),[a,1e3,e])}((function(e){if(window&&window.document.scrollingElement){var t=window.scrollY/window.document.scrollingElement.scrollHeight;h(100*(t>.92?1:t))}}));var g=(0,s.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,s.useEffect)((function(){if("undefined"!=typeof window&&f&&(d(!1),!(e.highlightHref.current||e.initialReadingProgress&&e.initialReadingProgress>=98))){var t=e.highlightHref.current?document.querySelector('[omnivore-highlight-id="'.concat(e.highlightHref.current,'"]')):document.querySelector("[data-omnivore-anchor-idx='".concat(e.initialAnchorIndex.toString(),"']"));if(t){var n=function(e){var t=0;if(e.offsetParent){do{t+=e.offsetTop}while(e=e.offsetParent);return t}return 0}(t);window.document.documentElement.scroll(0,n-100)}}}),[e.initialAnchorIndex,e.initialReadingProgress,f]),(0,s.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,c.render)((0,Ie.jsx)(tt,{tweetId:e.getAttribute("data-tweet-id")||"",options:{theme:Tn()?"dark":"light",align:"center"}}),e)}))}),[]);var m=(0,s.useCallback)((function(){var e,t=null===(e=p.current)||void 0===e?void 0:e.querySelectorAll("img");null==t||t.forEach((function(e){g(e,p.current)}))}),[g]);return(0,s.useEffect)((function(){return window.addEventListener("load",m),function(){window.removeEventListener("load",m)}}),[m]),(0,Ie.jsxs)(Ie.Fragment,{children:[(0,Ie.jsx)("link",{rel:"stylesheet",href:"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.4.0/styles/".concat(t,".min.css")}),(0,Ie.jsx)(De,{ref:p,css:{maxWidth:"100%"},className:"article-inner-css","data-testid":"article-inner",dangerouslySetInnerHTML:{__html:e.content}})]})}var Nn=fe("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:"24px",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},modalTitle:{fontSize:"29px",lineHeight:"37.7px",color:"$textDefault",margin:0},boldText:{fontWeight:"600",fontSize:"16px",lineHeight:"1",color:"$textDefault"},shareHighlightModalAnnotation:{fontSize:"18px",lineHeight:"23.4px",color:"$textSubtle",m: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"},highlightTitleAndAuthor:{fontSize:"18px",fontStyle:"italic",lineHeight:"22.5px",letterSpacing:"0.01em",margin:"0px",color:"$textSubtle"},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 Fn(e){var t,n,r,o=e.style||"footnote";return(0,Ie.jsx)(De,{children:(0,Ie.jsxs)(Nn,{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,Ie.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,Ie.jsxs)(Ie.Fragment,{children:[(0,Ie.jsx)("span",{style:{position:"relative",bottom:1},children:"• "})," ",(0,Ie.jsx)(Fe,{href:e.href,target:"_blank",rel:"noreferrer",css:{textDecoration:"underline",color:"$grayTextContrast"},children:"See original"})]})]})})}fe("li",{fontFamily:"Inter",fontWeight:"normal",lineHeight:"1.35",color:"$grayTextContrast"}),fe("ul",{fontFamily:"Inter",fontWeight:"normal",lineHeight:"1.35",color:"$grayTextContrast"}),fe("img",{}),fe("a",{textDecoration:"none"}),fe("mark",{});var zn=o(1427);function $n(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 Bn="omnivore-highlight-id",Un="omnivore-highlight-note-id",Wn="omnivore_highlight",Hn="article-container",Vn=/^(a|b|basefont|bdo|big|em|font|i|s|small|span|strike|strong|su[bp]|tt|u|code|mark)$/i,qn=new RegExp("<".concat(Wn,">([\\s\\S]*)<\\/").concat(Wn,">"),"i"),Xn=2e3;function Kn(e,t,n,r,o){var i,a=Jn({patch:e}),l=a.prefix,s=a.suffix,u=a.highlightTextStart,c=a.highlightTextEnd,f=a.textNodes,d=a.textNodeIndex,p="";if(tr(t).length)return{prefix:l,suffix:s,quote:p,startLocation:u,endLocation:c};for(var h=function(){var e=er({textNodes:f,startingTextNodeIndex:d,highlightTextStart:u,highlightTextEnd:c}),a=e.node,l=e.textPartsToHighlight,s=e.startsParagraph,h=a.parentNode,g=a.nextSibling;null==h||h.removeChild(a),l.forEach((function(e,a){var l=e.highlight,u=e.text.replace(/\n/g,""),c=document.createTextNode(u);if(l){u&&(s&&!a&&p&&(p+="\n"),p+=u);var f=document.createElement("span");return f.className=n?"highlight_with_note":"highlight",f.setAttribute(Bn,t),r&&f.setAttribute("style","background-color: ".concat(r," !important")),o&&f.setAttribute("title",o),f.appendChild(c),i=f,null==h?void 0:h.insertBefore(f,g)}return null==h?void 0:h.insertBefore(c,g)})),d++};c>f[d].startIndex;)h();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(Un,t);var m=document.createElement("div");m.className="highlight_note_button",m.appendChild(g),m.setAttribute(Un,t),m.setAttribute("width","14px"),m.setAttribute("height","14px"),i.appendChild(m)}return{prefix:l,suffix:s,quote:p,startLocation:u,endLocation:c}}function Yn(e){var t=document.getElementById(Hn);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(Wn,">").concat(e.toString(),"</").concat(Wn,">").concat(r.toString()),a=new zn.diff_match_patch,l=a.patch_toText(a.patch_make(o.toString(),i));if(!l)throw new Error("Invalid patch");return l}function Gn(e){var t=Yn(e),n=Zn(t);return[n.highlightTextStart,n.highlightTextEnd]}var Qn=function(e){var t=(null==e?void 0:e.current)||document.getElementById(Hn);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):(Vn.test(t.tagName)||(o=!0),t.childNodes.forEach(e))})),i.push({startIndex:n,node:document.createTextNode("")}),{textNodes:i,articleText:r}},Zn=function(e){if(!e)throw new Error("Invalid patch");var t,n=Qn().articleText,r=new zn.diff_match_patch,o=r.patch_apply(r.patch_fromText(e),n);if(o[1][0])t=qn.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=qn.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 Jn(e){var t=e.patch;if(!t)throw new Error("Invalid patch");var n=Qn().textNodes,r=Zn(t),o=r.highlightTextStart,i=r.highlightTextEnd,a=$n(n.map((function(e){return e.startIndex})),o),l=$n(n.map((function(e){return e.startIndex})),i);return{prefix:nr({textNodes:n,startingTextNodeIndex:a,startingOffset:o-n[a].startIndex,side:"prefix"}),suffix:nr({textNodes:n,startingTextNodeIndex:l,startingOffset:i-n[l].startIndex,side:"suffix"}),highlightTextStart:o,highlightTextEnd:i,textNodes:n,textNodeIndex:a}}var er=function(e){var t=e.textNodes,n=e.startingTextNodeIndex,r=e.highlightTextStart,o=e.highlightTextEnd,i=t[n],a=i.node,l=i.startIndex,s=i.startsParagraph,u=a.nodeValue||"",c=r-l,f=o-l,d=[];return c>0&&d.push({text:u.substring(0,c),highlight:!1}),d.push({text:u.substring(c,f),highlight:!0}),f<=u.length&&d.push({text:u.substring(f),highlight:!1}),{node:a,textPartsToHighlight:d,startsParagraph:s}},tr=function(e){return Array.from(document.querySelectorAll("[".concat(Bn,"='").concat(e,"']")))},nr=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>Xn?l:e()+l:!n[a+1]||n[a+1].startsParagraph||l.length>Xn?l:l+e()},s=n[r],u=s.startsParagraph,c=s.node.nodeValue||"",f=i?c.substring(0,o):c.substring(o);return(t=i?u?f:l()+f:!n[a+1]||n[a+1].startsParagraph?f:f+l()).length<=Xn?t:i?t.slice(t.length-Xn):t.substring(0,Xn)},rr=function(e){var t=Jn({patch:e}),n=t.highlightTextStart;return t.highlightTextEnd-n<2e3};function or(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function ir(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){or(i,r,o,a,l,"next",e)}function l(e){or(i,r,o,a,l,"throw",e)}a(void 0)}))}}function ar(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 lr(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)?lr(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 lr(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 sr(){return ur.apply(this,arguments)}function ur(){return(ur=ir(regeneratorRuntime.mark((function e(){var t,n,r,o,i,a,l,s;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,s=o.startContainer===t.focusNode&&o.endOffset===t.anchorOffset,e.abrupt("return",l?{range:o,isReverseSelected:s,selection:t}:void 0);case 16:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var cr=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}};function fr(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=dr(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 dr(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}}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 hr(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 gr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hr(Object(n),!0).forEach((function(t){mr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function mr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var vr,yr=["INPUT","TEXTAREA"];!function(e){e[e.SET_KEY_DOWN=0]="SET_KEY_DOWN",e[e.SET_KEY_UP=1]="SET_KEY_UP"}(vr||(vr={}));var br=function(e,t){switch(t.type){case vr.SET_KEY_DOWN:return gr(gr({},e),{},mr({},t.key,!0));case vr.SET_KEY_UP:return gr(gr({},e),{},mr({},t.key,!1));default:return e}};function wr(){return navigator.userAgent.includes("Android")}var xr=new WeakMap,Er=new WeakMap,kr={},Sr=0,_r=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];kr[n]||(kr[n]=new WeakMap);var o=kr[n],i=[],a=new Set,l=function(e){e&&!a.has(e)&&(a.add(e),l(e.parentNode))};r.forEach(l);var s=function(e){!e||r.indexOf(e)>=0||Array.prototype.forEach.call(e.children,(function(e){if(a.has(e))s(e);else{var t=e.getAttribute("aria-hidden"),r=null!==t&&"false"!==t,l=(xr.get(e)||0)+1,u=(o.get(e)||0)+1;xr.set(e,l),o.set(e,u),i.push(e),1===l&&r&&Er.set(e,!0),1===u&&e.setAttribute(n,"true"),r||e.setAttribute("aria-hidden","true")}}))};return s(t),a.clear(),Sr++,function(){i.forEach((function(e){var t=xr.get(e)-1,r=o.get(e)-1;xr.set(e,t),o.set(e,r),t||(Er.has(e)||e.removeAttribute("aria-hidden"),Er.delete(e)),r||e.removeAttribute(n)})),--Sr||(xr=new WeakMap,xr=new WeakMap,Er=new WeakMap,kr={})}},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)},Cr="right-scroll-bar-position",Pr="width-before-scroll-bar",Lr=function(){return Lr=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},Lr.apply(this,arguments)};function Tr(e){return e}var jr=function(e){void 0===e&&(e={});var t=function(e,t){void 0===t&&(t=Tr);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=Lr({async:!0,ssr:!1},e),t}();var Rr=function(){},Ar=s.forwardRef((function(e,t){var n=s.useRef(null),r=s.useState({onScrollCapture:Rr,onWheelCapture:Rr,onTouchMoveCapture:Rr}),o=r[0],i=r[1],a=e.forwardProps,l=e.children,u=e.className,c=e.removeScrollBar,f=e.enabled,d=e.shards,p=e.sideCar,h=e.noIsolation,g=e.inert,m=e.allowPinchZoom,v=e.as,y=void 0===v?"div":v,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=p,x=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,s.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]),E=Or({},b,o);return s.createElement(s.Fragment,null,f&&s.createElement(w,{sideCar:jr,removeScrollBar:c,shards:d,noIsolation:h,inert:g,setCallbacks:i,allowPinchZoom:!!m,lockRef:n}),a?s.cloneElement(s.Children.only(l),Or({},E,{ref:x})):s.createElement(y,Or({},E,{className:u,ref:x}),l))}));Ar.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Ar.classNames={fullWidth:Pr,zeroRight:Cr};var Ir=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 s.createElement(r,Lr({},n))};Ir.isSideCarExport=!0;var Mr=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)}}},Dr=function(){var e,t=(e=Mr(),function(t){s.useEffect((function(){return e.add(t),function(){e.remove()}}),[])});return function(e){var n=e.styles;return t(n),null}},Nr={left:0,top:0,right:0,gap:0},Fr=function(e){return parseInt(e||"",10)||0},zr=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return Nr;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[Fr(n),Fr(r),Fr(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])}},$r=Dr(),Br=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 ."+Cr+" {\n right: "+l+"px "+r+";\n }\n \n ."+Pr+" {\n margin-right: "+l+"px "+r+";\n }\n \n ."+Cr+" ."+Cr+" {\n right: 0 "+r+";\n }\n \n ."+Pr+" ."+Pr+" {\n margin-right: 0 "+r+";\n }\n \n body {\n --removed-body-scroll-bar-size: "+l+"px;\n }\n"},Ur=function(e){var t=s.useState(zr(e.gapMode)),n=t[0],r=t[1];s.useEffect((function(){r(zr(e.gapMode))}),[e.gapMode]);var o=e.noRelative,i=e.noImportant,a=e.gapMode,l=void 0===a?"margin":a;return s.createElement($r,{styles:Br(n,!o,l,i?"":"!important")})},Wr=function(e,t){var n=t;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),Hr(e,n)){var r=Vr(e,n);if(r[1]>r[2])return!0}n=n.parentNode}while(n&&n!==document.body);return!1},Hr=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)},Vr=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)},qr=!1;if("undefined"!=typeof window)try{var Xr=Object.defineProperty({},"passive",{get:function(){return qr=!0,!0}});window.addEventListener("test",Xr,Xr),window.removeEventListener("test",Xr,Xr)}catch(e){qr=!1}var Kr=!!qr&&{passive:!1},Yr=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Gr=function(e){return[e.deltaX,e.deltaY]},Qr=function(e){return e&&"current"in e?e.current:e},Zr=function(e){return"\n .block-interactivity-"+e+" {pointer-events: none;}\n .allow-interactivity-"+e+" {pointer-events: all;}\n"},Jr=0,eo=[];const to=(no=function(e){var t=s.useRef([]),n=s.useRef([0,0]),r=s.useRef(),o=s.useState(Jr++)[0],i=s.useState((function(){return Dr()}))[0],a=s.useRef(e);s.useEffect((function(){a.current=e}),[e]),s.useEffect((function(){if(e.inert){document.body.classList.add("block-interactivity-"+o);var t=[e.lockRef.current].concat((e.shards||[]).map(Qr)).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 l=s.useCallback((function(e,t){if("touches"in e&&2===e.touches.length)return!a.current.allowPinchZoom;var o,i=Yr(e),l=n.current,s="deltaX"in e?e.deltaX:l[0]-i[0],u="deltaY"in e?e.deltaY:l[1]-i[1],c=e.target,f=Math.abs(s)>Math.abs(u)?"h":"v",d=Wr(f,c);if(!d)return!0;if(d?o=f:(o="v"===f?"h":"v",d=Wr(f,c)),!d)return!1;if(!r.current&&"changedTouches"in e&&(s||u)&&(r.current=o),!o)return!0;var p=r.current||o;return function(e,t,n,r,o){var i=r,a=n.target,l=t.contains(a),s=!1,u=i>0,c=0,f=0;do{var d=Vr(e,a),p=d[0],h=d[1]-d[2]-p;(p||h)&&Hr(e,a)&&(c+=h,f+=p),a=a.parentNode}while(!l&&a!==document.body||l&&(t.contains(a)||t===a));return(u&&(0===c||!1)||!u&&(0===f||!1))&&(s=!0),s}(p,t,e,"h"===p?s:u)}),[]),u=s.useCallback((function(e){var n=e;if(eo.length&&eo[eo.length-1]===i){var r="deltaY"in n?Gr(n):Yr(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 s=(a.current.shards||[]).map(Qr).filter(Boolean).filter((function(e){return e.contains(n.target)}));(s.length>0?l(n,s[0]):!a.current.noIsolation)&&n.preventDefault()}}}),[]),c=s.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=s.useCallback((function(e){n.current=Yr(e),r.current=void 0}),[]),d=s.useCallback((function(t){c(t.type,Gr(t),t.target,l(t,e.lockRef.current))}),[]),p=s.useCallback((function(t){c(t.type,Yr(t),t.target,l(t,e.lockRef.current))}),[]);s.useEffect((function(){return eo.push(i),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:p}),document.addEventListener("wheel",u,Kr),document.addEventListener("touchmove",u,Kr),document.addEventListener("touchstart",f,Kr),function(){eo=eo.filter((function(e){return e!==i})),document.removeEventListener("wheel",u,Kr),document.removeEventListener("touchmove",u,Kr),document.removeEventListener("touchstart",f,Kr)}}),[]);var h=e.removeScrollBar,g=e.inert;return s.createElement(s.Fragment,null,g?s.createElement(i,{styles:Zr(o)}):null,h?s.createElement(Ur,{gapMode:"margin"}):null)},jr.useMedium(no),Ir);var no,ro=s.forwardRef((function(e,t){return s.createElement(Ar,Or({},e,{ref:t,sideCar:to}))}));ro.classNames=Ar.classNames;const oo=ro,io=Boolean(null===globalThis||void 0===globalThis?void 0:globalThis.document)?s.useLayoutEffect:()=>{},ao=u["useId".toString()]||(()=>{});let lo=0;function so(e){const[t,n]=s.useState(ao());return io((()=>{e||n((e=>null!=e?e:String(lo++)))}),[e]),e||(t?`radix-${t}`:"")}const uo=e=>{const{present:t,children:n}=e,r=function(e){const[t,n]=s.useState(),r=s.useRef({}),o=s.useRef(e),i=s.useRef("none"),a=e?"mounted":"unmounted",[l,u]=function(e,t){return s.useReducer(((e,n)=>{const r=t[e][n];return null!=r?r:e}),e)}(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return s.useEffect((()=>{const e=co(r.current);i.current="mounted"===l?e:"none"}),[l]),io((()=>{const t=r.current,n=o.current;if(n!==e){const r=i.current,a=co(t);if(e)u("MOUNT");else if("none"===a||"none"===(null==t?void 0:t.display))u("UNMOUNT");else{const e=r!==a;u(n&&e?"ANIMATION_OUT":"UNMOUNT")}o.current=e}}),[e,u]),io((()=>{if(t){const e=e=>{const n=co(r.current).includes(e.animationName);e.target===t&&n&&u("ANIMATION_END")},n=e=>{e.target===t&&(i.current=co(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,u]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:s.useCallback((e=>{e&&(r.current=getComputedStyle(e)),n(e)}),[])}}(t),o="function"==typeof n?n({present:r.isPresent}):s.Children.only(n),i=we(r.ref,o.ref);return"function"==typeof n||r.isPresent?s.cloneElement(o,{ref:i}):null};function co(e){return(null==e?void 0:e.animationName)||"none"}uo.displayName="Presence";let fo=0;function po(){s.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:ho()),document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:ho()),fo++,()=>{1===fo&&document.querySelectorAll("[data-radix-focus-guard]").forEach((e=>e.remove())),fo--}}),[])}function ho(){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 go=["a","button","div","h2","h3","img","li","nav","p","span","svg","ul"].reduce(((e,t)=>({...e,[t]:s.forwardRef(((e,n)=>{const{asChild:r,...o}=e,i=r?Ee:t;return s.useEffect((()=>{window[Symbol.for("radix-ui")]=!0}),[]),e.as&&console.error(mo),s.createElement(i,xe({},o,{ref:n}))}))})),{}),mo="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",vo=s.forwardRef(((e,t)=>{var n,r;const{containerRef:o,style:i,...a}=e,l=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,[,u]=s.useState({});return io((()=>{u({})}),[]),l?c.createPortal(s.createElement(go.div,xe({"data-radix-portal":""},a,{ref:t,style:l===document.body?{position:"absolute",top:0,left:0,zIndex:2147483647,...i}:void 0})),l):null}));function yo(e){const t=s.useRef(e);return s.useEffect((()=>{t.current=e})),s.useMemo((()=>(...e)=>{var n;return null===(n=t.current)||void 0===n?void 0:n.call(t,...e)}),[])}const bo={bubbles:!1,cancelable:!0},wo=s.forwardRef(((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...a}=e,[l,u]=s.useState(null),c=yo(o),f=yo(i),d=s.useRef(null),p=we(t,(e=>u(e))),h=s.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;s.useEffect((()=>{if(r){function e(e){if(h.paused||!l)return;const t=e.target;l.contains(t)?d.current=t:So(d.current,{select:!0})}function t(e){!h.paused&&l&&(l.contains(e.relatedTarget)||So(d.current,{select:!0}))}return document.addEventListener("focusin",e),document.addEventListener("focusout",t),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t)}}}),[r,l,h.paused]),s.useEffect((()=>{if(l){_o.add(h);const e=document.activeElement;if(!l.contains(e)){const t=new Event("focusScope.autoFocusOnMount",bo);l.addEventListener("focusScope.autoFocusOnMount",c),l.dispatchEvent(t),t.defaultPrevented||(function(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(So(r,{select:t}),document.activeElement!==n)return}(xo(l).filter((e=>"A"!==e.tagName)),{select:!0}),document.activeElement===e&&So(l))}return()=>{l.removeEventListener("focusScope.autoFocusOnMount",c),setTimeout((()=>{const t=new Event("focusScope.autoFocusOnUnmount",bo);l.addEventListener("focusScope.autoFocusOnUnmount",f),l.dispatchEvent(t),t.defaultPrevented||So(null!=e?e:document.body,{select:!0}),l.removeEventListener("focusScope.autoFocusOnUnmount",f),_o.remove(h)}),0)}}}),[l,c,f,h]);const g=s.useCallback((e=>{if(!n&&!r)return;if(h.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=xo(e);return[Eo(t,e),Eo(t.reverse(),e)]}(t);r&&i?e.shiftKey||o!==i?e.shiftKey&&o===r&&(e.preventDefault(),n&&So(i,{select:!0})):(e.preventDefault(),n&&So(r,{select:!0})):o===t&&e.preventDefault()}}),[n,r,h.paused]);return s.createElement(go.div,xe({tabIndex:-1},a,{ref:p,onKeyDown:g}))}));function xo(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 Eo(e,t){for(const n of e)if(!ko(n,{upTo:t}))return n}function ko(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 So(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 _o=function(){let e=[];return{add(t){const n=e[0];t!==n&&(null==n||n.pause()),e=Oo(e,t),e.unshift(t)},remove(t){var n;e=Oo(e,t),null===(n=e[0])||void 0===n||n.resume()}}}();function Oo(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}function Co(e){const t=yo(e);s.useEffect((()=>{const e=e=>{"Escape"===e.key&&t(e)};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)}),[t])}let Po,Lo=0;function To(e,t){const n=s.createContext(t);function r(e){const{children:t,...r}=e,o=s.useMemo((()=>r),Object.values(r));return s.createElement(n.Provider,{value:o},t)}return r.displayName=e+"Provider",[r,function(r){const o=s.useContext(n);if(o)return o;if(void 0!==t)return t;throw new Error(`\`${r}\` must be used within \`${e}\``)}]}function jo(e,t=[]){let n=[];const r=()=>{const t=n.map((e=>s.createContext(e)));return function(n){const r=(null==n?void 0:n[e])||t;return s.useMemo((()=>({[`__scope${e}`]:{...n,[e]:r}})),[n,r])}};return r.scopeName=e,[function(t,r){const o=s.createContext(r),i=n.length;function a(t){const{scope:n,children:r,...a}=t,l=(null==n?void 0:n[e][i])||o,u=s.useMemo((()=>a),Object.values(a));return s.createElement(l.Provider,{value:u},r)}return n=[...n,r],a.displayName=t+"Provider",[a,function(n,a){const l=(null==a?void 0:a[e][i])||o,u=s.useContext(l);if(u)return u;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 s.useMemo((()=>({[`__scope${t.scopeName}`]:r})),[r])}};return n.scopeName=t.scopeName,n}function Ao(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[Io,Mo]=Ho(),[Do,No]=Vo(),[Fo,zo]=Ho(),[$o,Bo]=Vo(),Uo=s.forwardRef(((e,t)=>{const n=0===No(),r=s.createElement(Wo,xe({},e,{ref:t}));return n?s.createElement(Io,null,s.createElement(Fo,null,r)):r})),Wo=s.forwardRef(((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:a,onDismiss:l,...u}=e,c=Mo(),f=No()+1,d=f===c,p=zo(n),h=Bo()+(n?1:0),g=h<p;(function({disabled:e}){const t=s.useRef(!1),n=s.useRef(!1);s.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)}}),[]),io((()=>{if(e){function r(){Lo--,0===Lo&&(document.body.style.pointerEvents=Po)}return 0===Lo&&(Po=document.body.style.pointerEvents),document.body.style.pointerEvents="none",Lo++,()=>{t.current?document.addEventListener("click",r,{once:!0}):n.current?document.addEventListener("pointerup",r,{once:!0}):r()}}}),[e])})({disabled:n}),Co((e=>{d&&(null==r||r(e),e.defaultPrevented||null==l||l())}));const{onPointerDownCapture:m}=function(e){const t=yo((e=>{g||(null==o||o(e),null==a||a(e),e.defaultPrevented||null==l||l())})),n=s.useRef(!1);return s.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:v,onFocusCapture:y}=function(e){const t=yo((e=>{null==i||i(e),null==a||a(e),e.defaultPrevented||null==l||l()})),n=s.useRef(!1);return s.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=p>0&&!g;return s.createElement(Do,{runningCount:f},s.createElement($o,{runningCount:h},s.createElement(go.div,xe({},u,{ref:t,style:{pointerEvents:b?"auto":void 0,...u.style},onPointerDownCapture:Ao(e.onPointerDownCapture,m),onBlurCapture:Ao(e.onBlurCapture,v),onFocusCapture:Ao(e.onFocusCapture,y)}))))}));function Ho(e){const[t,n]=To("TotalLayerCount",{total:0,onTotalIncrease:()=>{},onTotalDecrease:()=>{}});return[({children:e})=>{const[n,r]=s.useState(0);return s.createElement(t,{total:n,onTotalIncrease:s.useCallback((()=>r((e=>e+1))),[]),onTotalDecrease:s.useCallback((()=>r((e=>e-1))),[])},e)},function(e=!0){const{total:t,onTotalIncrease:r,onTotalDecrease:o}=n("TotalLayerCountConsumer");return s.useLayoutEffect((()=>{if(e)return r(),()=>o()}),[e,r,o]),t}]}function Vo(e){const[t,n]=To("RunningLayerCount",{count:0});return[e=>{const{children:n,runningCount:r}=e;return s.createElement(t,{count:r},n)},function(){return n("RunningLayerCountConsumer").count||0}]}const qo=s.forwardRef(((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return s.createElement(go.svg,xe({},i,{ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?n:s.createElement("polygon",{points:"0,0 30,0 15,10"}))}));function Xo(e){const[t,n]=s.useState(void 0);return s.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 Ko;const Yo=new Map;function Go(){const e=[];Yo.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)))})),Ko=requestAnimationFrame(Go)}function Qo(e){const[t,n]=s.useState();return s.useEffect((()=>{if(e){const t=function(e,t){const n=Yo.get(e);return void 0===n?(Yo.set(e,{rect:{},callbacks:[t]}),1===Yo.size&&(Ko=requestAnimationFrame(Go))):(n.callbacks.push(t),t(e.getBoundingClientRect())),()=>{const n=Yo.get(e);if(void 0===n)return;const r=n.callbacks.indexOf(t);r>-1&&n.callbacks.splice(r,1),0===n.callbacks.length&&(Yo.delete(e),0===Yo.size&&cancelAnimationFrame(Ko))}}(e,n);return()=>{n(void 0),t()}}}),[e]),t}function Zo({anchorRect:e,popperSize:t,arrowSize:n,arrowOffset:r=0,side:o,sideOffset:i=0,align:a,alignOffset:l=0,shouldAvoidCollisions:s=!0,collisionBoundariesRect:u,collisionTolerance:c=0}){if(!e||!t||!u)return{popperStyles:ni,arrowStyles:ri};const f=function(e,t,n=0,r=0,o){const i=o?o.height:0,a=Jo(t,e,"x"),l=Jo(t,e,"y"),s=l.before-n-i,u=l.after+n+i,c=a.before-n-i,f=a.after+n+i;return{top:{start:{x:a.start+r,y:s},center:{x:a.center,y:s},end:{x:a.end-r,y:s}},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:u},center:{x:a.center,y:u},end:{x:a.end-r,y:u}},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===s){const e=ei(d);let i=ri;return n&&(i=oi({popperSize:t,arrowSize:n,arrowOffset:r,side:o,align:a})),{popperStyles:{...e,"--radix-popper-transform-origin":ti(t,o,a,r,n)},arrowStyles:i,placedSide:o,placedAlign:a}}const p=DOMRect.fromRect({...t,...d}),h=(g=u,m=c,DOMRect.fromRect({width:g.width-2*m,height:g.height-2*m,x:g.left+m,y:g.top+m}));var g,m;const v=li(p,h),y=f[ai(o)][a],b=function(e,t,n){const r=ai(e);return t[e]&&!n[r]?r:e}(o,v,li(DOMRect.fromRect({...t,...y}),h)),w=function(e,t,n,r,o){const i="top"===n||"bottom"===n,a=i?"left":"top",l=i?"right":"bottom",s=i?"width":"height",u=t[s]>e[s];return"start"!==r&&"center"!==r||!(o[a]&&u||o[l]&&!u)?"end"!==r&&"center"!==r||!(o[l]&&u||o[a]&&!u)?r:"start":"end"}(t,e,o,a,v),x=ei(f[b][w]);let E=ri;return n&&(E=oi({popperSize:t,arrowSize:n,arrowOffset:r,side:b,align:w})),{popperStyles:{...x,"--radix-popper-transform-origin":ti(t,b,w,r,n)},arrowStyles:E,placedSide:b,placedAlign:w}}function Jo(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 ei(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 ti(e,t,n,r,o){const i="top"===t||"bottom"===t,a=o?o.width:0,l=o?o.height:0,s=a/2+r;let u="",c="";return i?(u={start:`${s}px`,center:"center",end:e.width-s+"px"}[n],c="top"===t?`${e.height+l}px`:-l+"px"):(u="left"===t?`${e.width+l}px`:-l+"px",c={start:`${s}px`,center:"center",end:e.height-s+"px"}[n]),`${u} ${c}`}const ni={position:"fixed",top:0,left:0,opacity:0,transform:"translate3d(0, -200%, 0)"},ri={position:"absolute",opacity:0};function oi({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],s=Math.max(t.width,t.height),u={width:`${s}px`,height:`${s}px`,transform:`rotate(${l}deg)`,willChange:"transform",position:"absolute",[r]:"100%",direction:ii(r,o)};return"top"!==r&&"bottom"!==r||("start"===o&&(u.left=`${n}px`),"center"===o&&(u.left=`${i}px`),"end"===o&&(u.right=`${n}px`)),"left"!==r&&"right"!==r||("start"===o&&(u.top=`${n}px`),"center"===o&&(u.top=`${a}px`),"end"===o&&(u.bottom=`${n}px`)),u}function ii(e,t){return("top"!==e&&"right"!==e||"end"!==t)&&("bottom"!==e&&"left"!==e||"end"===t)?"ltr":"rtl"}function ai(e){return{top:"bottom",right:"left",bottom:"top",left:"right"}[e]}function li(e,t){return{top:e.top<t.top,right:e.right>t.right,bottom:e.bottom>t.bottom,left:e.left<t.left}}const[si,ui]=jo("Popper"),[ci,fi]=si("Popper"),di=s.forwardRef(((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=fi("PopperAnchor",n),a=s.useRef(null),l=we(t,a);return s.useEffect((()=>{i.onAnchorChange((null==r?void 0:r.current)||a.current)})),r?null:s.createElement(go.div,xe({},o,{ref:l}))})),[pi,hi]=si("PopperContent"),gi=s.forwardRef(((e,t)=>{const{__scopePopper:n,side:r="bottom",sideOffset:o,align:i="center",alignOffset:a,collisionTolerance:l,avoidCollisions:u=!0,...c}=e,f=fi("PopperContent",n),[d,p]=s.useState(),h=Qo(f.anchor),[g,m]=s.useState(null),v=Xo(g),[y,b]=s.useState(null),w=Xo(y),x=we(t,(e=>m(e))),E=function(){const[e,t]=s.useState(void 0);return s.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}(),k=E?DOMRect.fromRect({...E,x:0,y:0}):void 0,{popperStyles:S,arrowStyles:_,placedSide:O,placedAlign:C}=Zo({anchorRect:h,popperSize:v,arrowSize:w,arrowOffset:d,side:r,sideOffset:o,align:i,alignOffset:a,shouldAvoidCollisions:u,collisionBoundariesRect:k,collisionTolerance:l}),P=void 0!==O;return s.createElement("div",{style:S,"data-radix-popper-content-wrapper":""},s.createElement(pi,{scope:n,arrowStyles:_,onArrowChange:b,onArrowOffsetChange:p},s.createElement(go.div,xe({"data-side":O,"data-align":C},c,{style:{...c.style,animation:P?void 0:"none"},ref:x}))))})),mi=s.forwardRef((function(e,t){const{__scopePopper:n,offset:r,...o}=e,i=hi("PopperArrow",n),{onArrowOffsetChange:a}=i;return s.useEffect((()=>a(r)),[a,r]),s.createElement("span",{style:{...i.arrowStyles,pointerEvents:"none"}},s.createElement("span",{ref:i.onArrowChange,style:{display:"inline-block",verticalAlign:"top",pointerEvents:"auto"}},s.createElement(qo,xe({},o,{ref:t,style:{...o.style,display:"block"}}))))})),vi=e=>{const{__scopePopper:t,children:n}=e,[r,o]=s.useState(null);return s.createElement(ci,{scope:t,anchor:r,onAnchorChange:o},n)},yi=di,bi=gi,wi=mi;function xi({prop:e,defaultProp:t,onChange:n=(()=>{})}){const[r,o]=function({defaultProp:e,onChange:t}){const n=s.useState(e),[r]=n,o=s.useRef(r),i=yo(t);return s.useEffect((()=>{o.current!==r&&(i(r),o.current=r)}),[r,o,i]),n}({defaultProp:t,onChange:n}),i=void 0!==e,a=i?e:r,l=yo(n);return[a,s.useCallback((t=>{if(i){const n=t,r="function"==typeof t?n(e):t;r!==e&&l(r)}else o(t)}),[i,e,o,l])]}const[Ei,ki]=jo("Popover",[ui]),Si=ui(),[_i,Oi]=Ei("Popover"),Ci=s.forwardRef(((e,t)=>{const{__scopePopover:n,...r}=e,o=Oi("PopoverAnchor",n),i=Si(n),{onCustomAnchorAdd:a,onCustomAnchorRemove:l}=o;return s.useEffect((()=>(a(),()=>l())),[a,l]),s.createElement(yi,xe({},i,r,{ref:t}))})),Pi=s.forwardRef(((e,t)=>{const{forceMount:n,...r}=e,o=Oi("PopoverContent",e.__scopePopover);return s.createElement(uo,{present:n||o.open},o.modal?s.createElement(Li,xe({},r,{ref:t})):s.createElement(Ti,xe({},r,{ref:t})))})),Li=s.forwardRef(((e,t)=>{const{allowPinchZoom:n,portalled:r=!0,...o}=e,i=Oi("PopoverContent",e.__scopePopover),a=s.useRef(null),l=we(t,a),u=s.useRef(!1);s.useEffect((()=>{const e=a.current;if(e)return _r(e)}),[]);const c=r?vo:s.Fragment;return s.createElement(c,null,s.createElement(oo,{allowPinchZoom:n},s.createElement(ji,xe({},o,{ref:l,trapFocus:i.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Ao(e.onCloseAutoFocus,(e=>{var t;e.preventDefault(),u.current||null===(t=i.triggerRef.current)||void 0===t||t.focus()})),onPointerDownOutside:Ao(e.onPointerDownOutside,(e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;u.current=r}),{checkForDefaultPrevented:!1}),onFocusOutside:Ao(e.onFocusOutside,(e=>e.preventDefault()),{checkForDefaultPrevented:!1})}))))})),Ti=s.forwardRef(((e,t)=>{const{portalled:n=!0,...r}=e,o=Oi("PopoverContent",e.__scopePopover),i=s.useRef(!1),a=n?vo:s.Fragment;return s.createElement(a,null,s.createElement(ji,xe({},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()}})))})),ji=s.forwardRef(((e,t)=>{const{__scopePopover:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,disableOutsidePointerEvents:a,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:c,onInteractOutside:f,...d}=e,p=Oi("PopoverContent",n),h=Si(n);return po(),s.createElement(wo,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i},s.createElement(Uo,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:f,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:c,onDismiss:()=>p.onOpenChange(!1)},s.createElement(bi,xe({"data-state":Ri(p.open),role:"dialog",id:p.contentId},h,d,{ref:t,style:{...d.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)"}}))))}));function Ri(e){return e?"open":"closed"}const Ai=e=>{const{__scopePopover:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:a=!1}=e,l=Si(t),u=s.useRef(null),[c,f]=s.useState(!1),[d=!1,p]=xi({prop:r,defaultProp:o,onChange:i});return s.createElement(vi,l,s.createElement(_i,{scope:t,contentId:so(),triggerRef:u,open:d,onOpenChange:p,onOpenToggle:s.useCallback((()=>p((e=>!e))),[p]),hasCustomAnchor:c,onCustomAnchorAdd:s.useCallback((()=>f(!0)),[]),onCustomAnchorRemove:s.useCallback((()=>f(!1)),[]),modal:a},n))},Ii=Ci,Mi=Pi,Di=s.forwardRef(((e,t)=>{const{__scopePopover:n,...r}=e,o=Si(n);return s.createElement(wi,xe({},o,r,{ref:t}))}));function Ni(e){var t=fe(Ii,{position:"absolute",left:e.xAnchorCoordinate,top:e.yAnchorCoordinate}),n=fe(Di,{fill:"$grayBase"});return(0,Ie.jsxs)(Ai,{defaultOpen:!0,modal:!0,children:[(0,Ie.jsx)(t,{}),(0,Ie.jsxs)(Mi,{onOpenAutoFocus:function(t){e.preventAutoFocus&&t.preventDefault()},children:[e.children,(0,Ie.jsx)(n,{})]})]})}var Fi=fe("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:"$grayTextContrast",p:"10px 12px",bg:"rgb(125, 125, 125, 0.1)","&:hover":{bg:"rgb(47, 47, 47, 0.1)",".ctaButtonIcon":{visibility:"visible"}},".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"}},ctaModal:{height:"32px",verticalAlign:"middle",color:"$textDefault",backgroundColor:"$grayBase",fontWeight:"600",padding:"0px 12px",fontSize:"16px",border:"1px solid $grayBorder",cursor:"pointer",borderRadius:"8px","&: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}},articleActionIcon:{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"}});function zi(e){return(0,Ie.jsx)("svg",{width:e.size,height:e.size,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Ie.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 $i(e){return e.color,e.height,e.width,(0,Ie.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,Ie.jsx)("path",{d:"M4.5 20.25H8.68934C8.78783 20.25 8.88536 20.2306 8.97635 20.1929C9.06735 20.1552 9.15003 20.1 9.21967 20.0303L18 11.25L12.75 6.00001L3.96967 14.7803C3.90003 14.85 3.84478 14.9327 3.80709 15.0237C3.80379 15.0316 3.80063 15.0396 3.79761 15.0477C3.76615 15.1317 3.75 15.2208 3.75 15.3107V19.5C3.75 19.6989 3.82902 19.8897 3.96967 20.0303C4.11032 20.171 4.30109 20.25 4.5 20.25Z",fill:"#FFD234"}),(0,Ie.jsx)("path",{d:"M15.2197 3.53034L12.75 6.00001L18 11.25L20.4697 8.78034C20.6103 8.63969 20.6893 8.44892 20.6893 8.25001C20.6893 8.0511 20.6103 7.86033 20.4697 7.71968L16.2803 3.53034C16.1397 3.38969 15.9489 3.31067 15.75 3.31067C15.5511 3.31067 15.3603 3.38969 15.2197 3.53034Z",fill:"#FFD234"}),(0,Ie.jsx)("path",{d:"M8.68934 20.25H4.5C4.30109 20.25 4.11032 20.171 3.96967 20.0303C3.82902 19.8897 3.75 19.6989 3.75 19.5V15.3107C3.75 15.2122 3.7694 15.1147 3.80709 15.0237C3.84478 14.9327 3.90003 14.85 3.96967 14.7803L15.2197 3.53034C15.3603 3.38969 15.5511 3.31067 15.75 3.31067C15.9489 3.31067 16.1397 3.38969 16.2803 3.53034L20.4697 7.71968C20.6103 7.86033 20.6893 8.0511 20.6893 8.25001C20.6893 8.44892 20.6103 8.63969 20.4697 8.78034L9.21967 20.0303C9.15003 20.1 9.06735 20.1552 8.97635 20.1929C8.88536 20.2306 8.78783 20.25 8.68934 20.25Z",stroke:"#0A0806",strokeOpacity:"0.8",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,Ie.jsx)("path",{d:"M12.75 6L18 11.25",stroke:"#0A0806",strokeOpacity:"0.8",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,Ie.jsx)("path",{d:"M8.95223 20.2021L3.79785 15.0477",stroke:"black",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})}var Bi=(0,s.createContext)({color:"currentColor",size:"1em",weight:"regular",mirrored:!1}),Ui=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)};function Wi(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 Hi=(0,s.forwardRef)((function(e,t){var n=e.alt,r=e.color,o=e.size,i=e.weight,a=e.mirrored,l=e.children,u=e.renderPath,c=Wi(e,["alt","color","size","weight","mirrored","children","renderPath"]),f=(0,s.useContext)(Bi),d=f.color,p=void 0===d?"currentColor":d,h=f.size,g=f.weight,m=void 0===g?"regular":g,v=f.mirrored,y=void 0!==v&&v,b=Wi(f,["color","size","weight","mirrored"]);return s.createElement("svg",Object.assign({ref:t,xmlns:"http://www.w3.org/2000/svg",width:null!=o?o:h,height:null!=o?o:h,fill:null!=r?r:p,viewBox:"0 0 256 256",transform:a||y?"scale(-1, 1)":void 0},b,c),!!n&&s.createElement("title",null,n),l,s.createElement("rect",{width:"256",height:"256",fill:"none"}),u(null!=i?i:m,null!=r?r:p))}));Hi.displayName="IconBase";const Vi=Hi;var qi=new Map;qi.set("bold",(function(e){return s.createElement(s.Fragment,null,s.createElement("line",{x1:"96",y1:"108",x2:"160",y2:"108",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"24"}),s.createElement("line",{x1:"96",y1:"148",x2:"116",y2:"148",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"24"}),s.createElement("path",{d:"M156.7,216H48a8,8,0,0,1-8-8V48a8,8,0,0,1,8-8H208a8,8,0,0,1,8,8V156.7a7.9,7.9,0,0,1-2.3,5.6l-51.4,51.4A7.9,7.9,0,0,1,156.7,216Z",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"24"}),s.createElement("polyline",{points:"215.3 156 156 156 156 215.3",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"24"}))})),qi.set("duotone",(function(e){return s.createElement(s.Fragment,null,s.createElement("polygon",{points:"216 160 160 160 160 216 216 160",opacity:"0.2"}),s.createElement("line",{x1:"96",y1:"96",x2:"160",y2:"96",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),s.createElement("line",{x1:"96",y1:"128",x2:"160",y2:"128",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),s.createElement("line",{x1:"96",y1:"160",x2:"128",y2:"160",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),s.createElement("path",{d:"M156.7,216H48a8,8,0,0,1-8-8V48a8,8,0,0,1,8-8H208a8,8,0,0,1,8,8V156.7a7.9,7.9,0,0,1-2.3,5.6l-51.4,51.4A7.9,7.9,0,0,1,156.7,216Z",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),s.createElement("polyline",{points:"215.3 160 160 160 160 215.3",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}))})),qi.set("fill",(function(){return s.createElement(s.Fragment,null,s.createElement("path",{d:"M208,32H48A16,16,0,0,0,32,48V208a16,16,0,0,0,16,16H156.7a15.9,15.9,0,0,0,11.3-4.7L219.3,168a15.9,15.9,0,0,0,4.7-11.3V48A16,16,0,0,0,208,32ZM96,88h64a8,8,0,0,1,0,16H96a8,8,0,0,1,0-16Zm32,80H96a8,8,0,0,1,0-16h32a8,8,0,0,1,0,16ZM96,136a8,8,0,0,1,0-16h64a8,8,0,0,1,0,16Zm64,68.7V160h44.7Z"}))})),qi.set("light",(function(e){return s.createElement(s.Fragment,null,s.createElement("line",{x1:"96",y1:"96",x2:"160",y2:"96",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"12"}),s.createElement("line",{x1:"96",y1:"128",x2:"160",y2:"128",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"12"}),s.createElement("line",{x1:"96",y1:"160",x2:"128",y2:"160",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"12"}),s.createElement("path",{d:"M156.7,216H48a8,8,0,0,1-8-8V48a8,8,0,0,1,8-8H208a8,8,0,0,1,8,8V156.7a7.9,7.9,0,0,1-2.3,5.6l-51.4,51.4A7.9,7.9,0,0,1,156.7,216Z",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"12"}),s.createElement("polyline",{points:"215.3 160 160 160 160 215.3",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"12"}))})),qi.set("thin",(function(e){return s.createElement(s.Fragment,null,s.createElement("line",{x1:"96",y1:"96",x2:"160",y2:"96",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"8"}),s.createElement("line",{x1:"96",y1:"128",x2:"160",y2:"128",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"8"}),s.createElement("line",{x1:"96",y1:"160",x2:"128",y2:"160",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"8"}),s.createElement("path",{d:"M156.7,216H48a8,8,0,0,1-8-8V48a8,8,0,0,1,8-8H208a8,8,0,0,1,8,8V156.7a7.9,7.9,0,0,1-2.3,5.6l-51.4,51.4A7.9,7.9,0,0,1,156.7,216Z",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"8"}),s.createElement("polyline",{points:"215.3 160 160 160 160 215.3",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"8"}))})),qi.set("regular",(function(e){return s.createElement(s.Fragment,null,s.createElement("line",{x1:"96",y1:"96",x2:"160",y2:"96",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),s.createElement("line",{x1:"96",y1:"128",x2:"160",y2:"128",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),s.createElement("line",{x1:"96",y1:"160",x2:"128",y2:"160",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),s.createElement("path",{d:"M156.7,216H48a8,8,0,0,1-8-8V48a8,8,0,0,1,8-8H208a8,8,0,0,1,8,8V156.7a7.9,7.9,0,0,1-2.3,5.6l-51.4,51.4A7.9,7.9,0,0,1,156.7,216Z",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),s.createElement("polyline",{points:"215.3 160 160 160 160 215.3",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}))}));var Xi=function(e,t){return Ui(e,t,qi)},Ki=(0,s.forwardRef)((function(e,t){return s.createElement(Vi,Object.assign({ref:t},e,{renderPath:Xi}))}));Ki.displayName="Note";const Yi=Ki;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 Qi(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){Zi(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 Zi(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ji(e){return e.isTouchscreenDevice?(0,Ie.jsx)(De,{css:{width:"100%",maxWidth:"240px",height:"48px",position:"fixed",background:"$grayBg",borderRadius:"4px",border:"1px solid $grayBorder",boxShadow:de.shadows.cardBoxShadow.toString(),bottom:"calc(38px + env(safe-area-inset-bottom, 40px))","@smDown":{maxWidth:"80%",bottom:"calc(28px + ".concat(wr()?30:0,"px + env(safe-area-inset-bottom, 40px))")}},children:(0,Ie.jsx)(ea,Qi({},e))}):(0,Ie.jsx)(Ni,{xAnchorCoordinate:e.anchorCoordinates.pageX,yAnchorCoordinate:e.anchorCoordinates.pageY,preventAutoFocus:!1,children:(0,Ie.jsxs)(De,{children:["css=",{width:"350px",background:"$grayBg",borderRadius:"4px",border:"1px solid $grayBorder",boxShadow:"$cardBoxShadow"},(0,Ie.jsx)(ea,Qi({},e))]})})}function ea(e){var t,n,r,o,i,a,l,u,c,f,d;c=function(t){switch(t){case"createHighlight":e.handleButtonClick("create");break;case"openNoteModal":e.handleButtonClick("comment")}},t=[{shortcutKeys:["shift","h"],actionDescription:"Highlight selected text",shortcutKeyDescription:"shift + h",callback:function(){return c("createHighlight")}},{shortcutKeys:["shift","c"],actionDescription:"Annotate selected text",shortcutKeyDescription:"shift + c",callback:function(){return setTimeout((function(){return c("openNoteModal")}),0)}}],n=(0,s.useMemo)((function(){var e={};return t.forEach((function(t){t.shortcutKeys.forEach((function(t){t.split("|").forEach((function(t){e[t.toLowerCase()]=!1}))}))})),e}),[t]),f=(0,s.useReducer)(br,n),d=2,r=function(e){if(Array.isArray(e))return e}(f)||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}}(f,d)||dr(f,d)||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],a=(0,s.useCallback)((function(e,n){var r=!1;return t.forEach((function(t){if(!n||t.ignoreDisabledTargets){var o=gr({},e),a=t.shortcutKeys.every((function(e){var t,n=fr(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}));a&&!Object.values(o).some((function(e){return e}))&&(t.callback(),r=!0,t.shortcutKeys.forEach((function(e,n){if(!(0===n&&t.shortcutKeys.length>1)){var r,o=fr(e.split("|"));try{for(o.s();!(r=o.n()).done;){var a=r.value;i({type:vr.SET_KEY_UP,key:a})}}catch(e){o.e(e)}finally{o.f()}}})))}})),r}),[t]),l=(0,s.useCallback)((function(e){var t=e.target;if(e.key){var n=e.key.toLowerCase();void 0!==o[n]&&(!1===o[n]&&i({type:vr.SET_KEY_DOWN,key:n}),a(gr(gr({},o),{},mr({},n,!0)),yr.includes(t.tagName))&&e.preventDefault())}}),[a,o]),u=(0,s.useCallback)((function(e){if(e.key){var t=e.key.toLowerCase();void 0!==o[t]&&!0===o[t]&&setTimeout((function(){return i({type:vr.SET_KEY_UP,key:t})}),800)}}),[o]),(0,s.useEffect)((function(){if("undefined"!=typeof window)return window.addEventListener("keydown",l,!0),function(){return window.removeEventListener("keydown",l,!0)}}),[l]),(0,s.useEffect)((function(){if("undefined"!=typeof window)return window.addEventListener("keyup",u,!0),function(){return window.removeEventListener("keyup",u,!0)}}),[u]);var p=fe("div",{width:"1px",maxWidth:"1px",height:"100%",background:"$grayBorder"});return(0,Ie.jsxs)($e,{distribution:"evenly",alignment:"center",css:{height:"100%",alignItems:"center",width:e.isTouchscreenDevice?"100%":"auto"},children:[e.isNewHighlight?(0,Ie.jsx)(Fi,{style:"plainIcon",title:"Create Highlight",onClick:function(){return e.handleButtonClick("create")},css:{flexDirection:"column",height:"100%",m:0,p:0,alignItems:"baseline"},children:(0,Ie.jsxs)($e,{css:{height:"100%",alignItems:"center"},children:[(0,Ie.jsx)($i,{}),(0,Ie.jsx)(Nn,{style:"body",css:{pl:"12px",m:"0px",color:"$readerFont",fontWeight:"400",fontSize:"16px"},children:"Highlight"})]})}):(0,Ie.jsx)(Fi,{style:"plainIcon",title:"Remove Highlight",onClick:function(){return e.handleButtonClick("delete")},css:{color:"$readerFont",height:"100%",m:0,p:0,pt:"6px"},children:(0,Ie.jsx)(zi,{size:28,strokeColor:de.colors.readerFont.toString()})}),(0,Ie.jsx)(p,{}),(0,Ie.jsx)(Fi,{style:"plainIcon",title:"Add Note to Highlight",onClick:function(){return e.handleButtonClick("comment")},css:{color:"$readerFont",height:"100%",m:0,p:0},children:(0,Ie.jsxs)($e,{css:{height:"100%",alignItems:"center"},children:[(0,Ie.jsx)(Yi,{size:24,color:de.colors.readerFont.toString()}),(0,Ie.jsx)(Nn,{style:"body",css:{pl:"12px",m:"0px",color:"$readerFont",fontWeight:"400",fontSize:"16px"},children:"Note"})]})})]})}function ta(e,t){e.forEach((function(e){var t,n=(t=e,Array.from(document.querySelectorAll("[".concat(Bn,"='").concat(t,"']")))),r=function(e){return Array.from(document.querySelectorAll("[".concat(Un,"='").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 na,ra=new Uint8Array(16);function oa(){if(!na&&!(na="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 na(ra)}const ia=/^(?:[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,aa=function(e){return"string"==typeof e&&ia.test(e)};for(var la=[],sa=0;sa<256;++sa)la.push((sa+256).toString(16).substr(1));const ua=function(e,t,n){var r=(e=e||{}).random||(e.rng||oa)();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=(la[e[t+0]]+la[e[t+1]]+la[e[t+2]]+la[e[t+3]]+"-"+la[e[t+4]]+la[e[t+5]]+"-"+la[e[t+6]]+la[e[t+7]]+"-"+la[e[t+8]]+la[e[t+9]]+"-"+la[e[t+10]]+la[e[t+11]]+la[e[t+12]]+la[e[t+13]]+la[e[t+14]]+la[e[t+15]]).toLowerCase();if(!aa(n))throw TypeError("Stringified UUID is invalid");return n}(r)};let ca=(e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce(((e,t)=>e+((t&=63)<36?t.toString(36):t<62?(t-26).toString(36).toUpperCase():t>62?"-":"_")),"");function fa(e){var t=e.startContainer.nodeValue,n=e.endContainer.nodeValue,r=pa(e.startOffset,!1,t),o=pa(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 da=function(e){return!!e&&/\s/.test(e)};function pa(e,t,n){if(!n)return e;var r=n.split(""),o=e;if(t){if(da(r[o-1]))return o-1;for(;o<n.length;){if(da(r[o]))return o;o++}}else{if(da(r[o]))return o+1;for(;o>0;){if(da(r[o-1]))return o;o--}}return o}function ha(e){return function(e){if(Array.isArray(e))return ga(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 ga(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)?ga(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 ga(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 ma(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 va(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ma(Object(n),!0).forEach((function(t){ya(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ma(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ya(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ba(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function wa(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){ba(i,r,o,a,l,"next",e)}function l(e){ba(i,r,o,a,l,"throw",e)}a(void 0)}))}}function xa(e,t){return Ea.apply(this,arguments)}function Ea(){return(Ea=wa(regeneratorRuntime.mark((function e(t,n){var r,o,i,a,l,s,u,c,f,d,p,h;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,fa(i),l=ua(),s=Yn(i),rr(s)){e.next=9;break}return e.abrupt("return",{errorMessage:"Highlight is too long"});case 9:if(a.isCollapsed||a.collapseToStart(),u=[],t.annotation&&u.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&&u.push(r)})),ta(t.selection.overlapHighlights,t.highlightStartEndOffsets)),c=Kn(s,l,u.length>0),f={prefix:c.prefix,suffix:c.suffix,quote:c.quote,id:l,shortId:ca(8),patch:s,annotation:u.length>0?u.join("\n"):void 0,articleId:t.articleId},p=t.existingHighlights,!r){e.next=23;break}return e.next=19,n.mergeHighlightMutation(va(va({},f),{},{overlapHighlightIdList:t.selection.overlapHighlights}));case 19:d=e.sent,p=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 h=[].concat(ha(p),[d]),e.abrupt("return",{highlights:h,newHighlightIndex:h.length>0?h.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 ka=["a","button","div","h2","h3","img","li","nav","ol","p","span","svg","ul"].reduce(((e,t)=>({...e,[t]:s.forwardRef(((e,n)=>{const{asChild:r,...o}=e,i=r?Ee:t;return s.useEffect((()=>{window[Symbol.for("radix-ui")]=!0}),[]),s.createElement(i,xe({},o,{ref:n}))}))})),{}),Sa=e=>{const{present:t,children:n}=e,r=function(e){const[t,n]=s.useState(),r=s.useRef({}),o=s.useRef(e),i=s.useRef("none"),a=e?"mounted":"unmounted",[l,u]=function(e,t){return s.useReducer(((e,n)=>{const r=t[e][n];return null!=r?r:e}),e)}(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return s.useEffect((()=>{const e=_a(r.current);i.current="mounted"===l?e:"none"}),[l]),io((()=>{const t=r.current,n=o.current;if(n!==e){const r=i.current,a=_a(t);if(e)u("MOUNT");else if("none"===a||"none"===(null==t?void 0:t.display))u("UNMOUNT");else{const e=r!==a;u(n&&e?"ANIMATION_OUT":"UNMOUNT")}o.current=e}}),[e,u]),io((()=>{if(t){const e=e=>{const n=_a(r.current).includes(e.animationName);e.target===t&&n&&u("ANIMATION_END")},n=e=>{e.target===t&&(i.current=_a(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)}}u("ANIMATION_END")}),[t,u]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:s.useCallback((e=>{e&&(r.current=getComputedStyle(e)),n(e)}),[])}}(t),o="function"==typeof n?n({present:r.isPresent}):s.Children.only(n),i=we(r.ref,o.ref);return"function"==typeof n||r.isPresent?s.cloneElement(o,{ref:i}):null};function _a(e){return(null==e?void 0:e.animationName)||"none"}Sa.displayName="Presence";const Oa={bubbles:!1,cancelable:!0},Ca=s.forwardRef(((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...a}=e,[l,u]=s.useState(null),c=yo(o),f=yo(i),d=s.useRef(null),p=we(t,(e=>u(e))),h=s.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;s.useEffect((()=>{if(r){function e(e){if(h.paused||!l)return;const t=e.target;l.contains(t)?d.current=t:ja(d.current,{select:!0})}function t(e){!h.paused&&l&&(l.contains(e.relatedTarget)||ja(d.current,{select:!0}))}return document.addEventListener("focusin",e),document.addEventListener("focusout",t),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t)}}}),[r,l,h.paused]),s.useEffect((()=>{if(l){Ra.add(h);const e=document.activeElement;if(!l.contains(e)){const t=new Event("focusScope.autoFocusOnMount",Oa);l.addEventListener("focusScope.autoFocusOnMount",c),l.dispatchEvent(t),t.defaultPrevented||(function(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(ja(r,{select:t}),document.activeElement!==n)return}(Pa(l).filter((e=>"A"!==e.tagName)),{select:!0}),document.activeElement===e&&ja(l))}return()=>{l.removeEventListener("focusScope.autoFocusOnMount",c),setTimeout((()=>{const t=new Event("focusScope.autoFocusOnUnmount",Oa);l.addEventListener("focusScope.autoFocusOnUnmount",f),l.dispatchEvent(t),t.defaultPrevented||ja(null!=e?e:document.body,{select:!0}),l.removeEventListener("focusScope.autoFocusOnUnmount",f),Ra.remove(h)}),0)}}}),[l,c,f,h]);const g=s.useCallback((e=>{if(!n&&!r)return;if(h.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=Pa(e);return[La(t,e),La(t.reverse(),e)]}(t);r&&i?e.shiftKey||o!==i?e.shiftKey&&o===r&&(e.preventDefault(),n&&ja(i,{select:!0})):(e.preventDefault(),n&&ja(r,{select:!0})):o===t&&e.preventDefault()}}),[n,r,h.paused]);return s.createElement(ka.div,xe({tabIndex:-1},a,{ref:p,onKeyDown:g}))}));function Pa(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 La(e,t){for(const n of e)if(!Ta(n,{upTo:t}))return n}function Ta(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 ja(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=Aa(e,t),e.unshift(t)},remove(t){var n;e=Aa(e,t),null===(n=e[0])||void 0===n||n.resume()}}}();function Aa(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}let Ia,Ma=0;const Da=s.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Na=s.forwardRef(((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:a,onDismiss:l,...u}=e,c=s.useContext(Da),[f,d]=s.useState(null),[,p]=s.useState({}),h=we(t,(e=>d(e))),g=Array.from(c.layers),[m]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),v=g.indexOf(m),y=f?g.indexOf(f):-1,b=c.layersWithOutsidePointerEventsDisabled.size>0,w=y>=v,x=function(e){const t=yo((e=>{const t=e.target,n=[...c.branches].some((e=>e.contains(t)));w&&!n&&(null==o||o(e),null==a||a(e),e.defaultPrevented||null==l||l())})),n=s.useRef(!1);return s.useEffect((()=>{const e=e=>{e.target&&!n.current&&za("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}}(),E=function(e){const t=yo((e=>{const t=e.target;[...c.branches].some((e=>e.contains(t)))||(null==i||i(e),null==a||a(e),e.defaultPrevented||null==l||l())})),n=s.useRef(!1);return s.useEffect((()=>{const e=e=>{e.target&&!n.current&&za("dismissableLayer.focusOutside",t,{originalEvent:e})};return document.addEventListener("focusin",e),()=>document.removeEventListener("focusin",e)}),[t]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}();return Co((e=>{y===c.layers.size-1&&(null==r||r(e),e.defaultPrevented||null==l||l())})),function({disabled:e}){const t=s.useRef(!1);io((()=>{if(e){function n(){Ma--,0===Ma&&(document.body.style.pointerEvents=Ia)}function r(e){t.current="mouse"!==e.pointerType}return 0===Ma&&(Ia=document.body.style.pointerEvents),document.body.style.pointerEvents="none",Ma++,document.addEventListener("pointerup",r),()=>{t.current?document.addEventListener("click",n,{once:!0}):n(),document.removeEventListener("pointerup",r)}}}),[e])}({disabled:n}),s.useEffect((()=>{f&&(n&&c.layersWithOutsidePointerEventsDisabled.add(f),c.layers.add(f),Fa())}),[f,n,c]),s.useEffect((()=>()=>{f&&(c.layers.delete(f),c.layersWithOutsidePointerEventsDisabled.delete(f),Fa())}),[f,c]),s.useEffect((()=>{const e=()=>p({});return document.addEventListener("dismissableLayer.update",e),()=>document.removeEventListener("dismissableLayer.update",e)}),[]),s.createElement(ka.div,xe({},u,{ref:h,style:{pointerEvents:b?w?"auto":"none":void 0,...e.style},onFocusCapture:Ao(e.onFocusCapture,E.onFocusCapture),onBlurCapture:Ao(e.onBlurCapture,E.onBlurCapture),onPointerDownCapture:Ao(e.onPointerDownCapture,x.onPointerDownCapture)}))}));function Fa(){const e=new Event("dismissableLayer.update");document.dispatchEvent(e)}function za(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 $a=u["useId".toString()]||(()=>{});let Ba=0;function Ua(e){const[t,n]=s.useState($a());return io((()=>{e||n((e=>null!=e?e:String(Ba++)))}),[e]),e||(t?`radix-${t}`:"")}const[Wa,Ha]=jo("Dialog"),[Va,qa]=Wa("Dialog"),Xa=s.forwardRef(((e,t)=>{const{forceMount:n,...r}=e,o=qa("DialogOverlay",e.__scopeDialog);return o.modal?s.createElement(Sa,{present:n||o.open},s.createElement(Ka,xe({},r,{ref:t}))):null})),Ka=s.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,o=qa("DialogOverlay",n);return s.createElement(oo,{as:Ee,allowPinchZoom:o.allowPinchZoom,shards:[o.contentRef]},s.createElement(ka.div,xe({"data-state":Ja(o.open)},r,{ref:t,style:{pointerEvents:"auto",...r.style}})))})),Ya=s.forwardRef(((e,t)=>{const{forceMount:n,...r}=e,o=qa("DialogContent",e.__scopeDialog);return s.createElement(Sa,{present:n||o.open},o.modal?s.createElement(Ga,xe({},r,{ref:t})):s.createElement(Qa,xe({},r,{ref:t})))})),Ga=s.forwardRef(((e,t)=>{const n=qa("DialogContent",e.__scopeDialog),r=s.useRef(null),o=we(t,n.contentRef,r);return s.useEffect((()=>{const e=r.current;if(e)return _r(e)}),[]),s.createElement(Za,xe({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Ao(e.onCloseAutoFocus,(e=>{var t;e.preventDefault(),null===(t=n.triggerRef.current)||void 0===t||t.focus()})),onPointerDownOutside:Ao(e.onPointerDownOutside,(e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()})),onFocusOutside:Ao(e.onFocusOutside,(e=>e.preventDefault()))}))})),Qa=s.forwardRef(((e,t)=>{const n=qa("DialogContent",e.__scopeDialog),r=s.useRef(!1);return s.createElement(Za,xe({},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()}}))})),Za=s.forwardRef(((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,...a}=e,l=qa("DialogContent",n),u=we(t,s.useRef(null));return po(),s.createElement(s.Fragment,null,s.createElement(Ca,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i},s.createElement(Na,xe({role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":Ja(l.open)},a,{ref:u,onDismiss:()=>l.onOpenChange(!1)}))),!1)}));function Ja(e){return e?"open":"closed"}const[el,tl]=To("DialogTitleWarning",{contentName:"DialogContent",titleName:"DialogTitle",docsSlug:"dialog"}),nl=Xa,rl=Ya;var ol,il=fe((e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:a=!0,allowPinchZoom:l}=e,u=s.useRef(null),c=s.useRef(null),[f=!1,d]=xi({prop:r,defaultProp:o,onChange:i});return s.createElement(Va,{scope:t,triggerRef:u,contentRef:c,contentId:Ua(),titleId:Ua(),descriptionId:Ua(),open:f,onOpenChange:d,onOpenToggle:s.useCallback((()=>d((e=>!e))),[d]),modal:a,allowPinchZoom:l},n)}),{}),al=he({"0%":{opacity:0},"100%":{opacity:1}}),ll=fe(nl,{backgroundColor:"$overlay",width:"100vw",height:"100vh",position:"fixed",inset:0,"@media (prefers-reduced-motion: no-preference)":{animation:"".concat(al," 150ms cubic-bezier(0.16, 1, 0.3, 1)")}}),sl=(he({"0%":{opacity:0,transform:"translate(-50%, -48%) scale(.96)"},"100%":{opacity:1,transform:"translate(-50%, -50%) scale(1)"}}),fe(rl,{backgroundColor:"$grayBg",borderRadius:6,boxShadow:de.shadows.cardBoxShadow.toString(),position:"fixed","&:focus":{outline:"none"}})),ul=fe(sl,{top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:"90vw",maxWidth:"600px",maxHeight:"85vh","@smDown":{maxWidth:"95%",width:"95%"}}),cl=fe("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),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function pl(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 hl(e){return gl.apply(this,arguments)}function gl(){return gl=pl(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,nt.gql)(ol||(ol=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,pn(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)}fe(cl,{borderRadius:"6px",border:"1px solid $grayBorder",p:"$3",fontSize:"$1"});let ml,vl,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,xl=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,El=/\/\*[^]*?\*\/|\s\s+|\n/g,kl=(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]?kl(a,i):i+"{"+kl(a,"k"==i[1]?"":t)+"}":"object"==typeof a?r+=kl(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+=kl.p?kl.p(i,a):i+":"+a+";")}return n+(t&&o?t+"{"+o+"}":o)+r},Sl={},_l=e=>{if("object"==typeof e){let t="";for(let n in e)t+=n+_l(e[n]);return t}return e},Ol=(e,t,n,r,o)=>{let i=_l(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=xl.exec(e.replace(El,""));)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]=kl(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},Cl=(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?"":kl(e,""):!1===e?"":e}return e+r+(null==i?"":i)}),"");function Pl(e){let t=this||{},n=e.call?e(t.p):e;return Ol(n.unshift?n.raw?Cl(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 Ll(){return Ll=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},Ll.apply(this,arguments)}Pl.bind({g:1}),Pl.bind({k:1});var Tl,jl=function(e,t){return function(e){return"function"==typeof e}(e)?e(t):e},Rl=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"}(Tl||(Tl={}));var Al,Il=new Map,Ml=function(e){if(!Il.has(e)){var t=setTimeout((function(){Il.delete(e),zl({type:Tl.REMOVE_TOAST,toastId:e})}),1e3);Il.set(e,t)}},Dl=function e(t,n){switch(n.type){case Tl.ADD_TOAST:return Ll({},t,{toasts:[n.toast].concat(t.toasts).slice(0,20)});case Tl.UPDATE_TOAST:return n.toast.id&&function(e){var t=Il.get(e);t&&clearTimeout(t)}(n.toast.id),Ll({},t,{toasts:t.toasts.map((function(e){return e.id===n.toast.id?Ll({},e,n.toast):e}))});case Tl.UPSERT_TOAST:var r=n.toast;return t.toasts.find((function(e){return e.id===r.id}))?e(t,{type:Tl.UPDATE_TOAST,toast:r}):e(t,{type:Tl.ADD_TOAST,toast:r});case Tl.DISMISS_TOAST:var o=n.toastId;return o?Ml(o):t.toasts.forEach((function(e){Ml(e.id)})),Ll({},t,{toasts:t.toasts.map((function(e){return e.id===o||void 0===o?Ll({},e,{visible:!1}):e}))});case Tl.REMOVE_TOAST:return void 0===n.toastId?Ll({},t,{toasts:[]}):Ll({},t,{toasts:t.toasts.filter((function(e){return e.id!==n.toastId}))});case Tl.START_PAUSE:return Ll({},t,{pausedAt:n.time});case Tl.END_PAUSE:var i=n.time-(t.pausedAt||0);return Ll({},t,{pausedAt:void 0,toasts:t.toasts.map((function(e){return Ll({},e,{pauseDuration:e.pauseDuration+i})}))})}},Nl=[],Fl={toasts:[],pausedAt:void 0},zl=function(e){Fl=Dl(Fl,e),Nl.forEach((function(e){e(Fl)}))},$l=function(e){return function(t,n){var r=function(e,t,n){return void 0===t&&(t="blank"),Ll({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)||Rl()})}(t,e,n);return zl({type:Tl.UPSERT_TOAST,toast:r}),r.id}},Bl=function(e,t){return $l("blank")(e,t)};Bl.error=$l("error"),Bl.success=$l("success"),Bl.loading=$l("loading"),Bl.custom=$l("custom"),Bl.dismiss=function(e){zl({type:Tl.DISMISS_TOAST,toastId:e})},Bl.remove=function(e){return zl({type:Tl.REMOVE_TOAST,toastId:e})},Bl.promise=function(e,t,n){var r=Bl.loading(t.loading,Ll({},n,null==n?void 0:n.loading));return e.then((function(e){return Bl.success(jl(t.success,e),Ll({id:r},n,null==n?void 0:n.success)),e})).catch((function(e){Bl.error(jl(t.error,e),Ll({id:r},n,null==n?void 0:n.error))})),e},Al=s.createElement,kl.p=void 0,ml=Al,vl=void 0,yl=void 0;var Ul=new Map;Ul.set("bold",(function(e){return s.createElement(s.Fragment,null,s.createElement("polyline",{points:"172 104 113.3 160 84 132",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"24"}),s.createElement("circle",{cx:"128",cy:"128",r:"96",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"24"}))})),Ul.set("duotone",(function(e){return s.createElement(s.Fragment,null,s.createElement("circle",{cx:"128",cy:"128",r:"96",opacity:"0.2"}),s.createElement("polyline",{points:"172 104 113.3 160 84 132",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),s.createElement("circle",{cx:"128",cy:"128",r:"96",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}))})),Ul.set("fill",(function(){return s.createElement(s.Fragment,null,s.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.2,104.2,0,0,0,128,24Zm49.5,85.8-58.6,56a8.1,8.1,0,0,1-5.6,2.2,7.7,7.7,0,0,1-5.5-2.2l-29.3-28a8,8,0,1,1,11-11.6l23.8,22.7,53.2-50.7a8,8,0,0,1,11,11.6Z"}))})),Ul.set("light",(function(e){return s.createElement(s.Fragment,null,s.createElement("polyline",{points:"172 104 113.3 160 84 132",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"12"}),s.createElement("circle",{cx:"128",cy:"128",r:"96",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"12"}))})),Ul.set("thin",(function(e){return s.createElement(s.Fragment,null,s.createElement("polyline",{points:"172 104 113.3 160 84 132",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"8"}),s.createElement("circle",{cx:"128",cy:"128",r:"96",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"8"}))})),Ul.set("regular",(function(e){return s.createElement(s.Fragment,null,s.createElement("polyline",{points:"172 104 113.3 160 84 132",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),s.createElement("circle",{cx:"128",cy:"128",r:"96",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}))}));var Wl=function(e,t){return Ui(e,t,Ul)},Hl=(0,s.forwardRef)((function(e,t){return s.createElement(Vi,Object.assign({ref:t},e,{renderPath:Wl}))}));Hl.displayName="CheckCircle";const Vl=Hl;var ql=new Map;ql.set("bold",(function(e){return s.createElement(s.Fragment,null,s.createElement("circle",{cx:"128",cy:"128",r:"96",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"24"}),s.createElement("line",{x1:"128",y1:"80",x2:"128",y2:"132",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"24"}),s.createElement("circle",{cx:"128",cy:"172",r:"16"}))})),ql.set("duotone",(function(e){return s.createElement(s.Fragment,null,s.createElement("circle",{cx:"128",cy:"128",r:"96",opacity:"0.2"}),s.createElement("circle",{cx:"128",cy:"128",r:"96",fill:"none",stroke:e,strokeMiterlimit:"10",strokeWidth:"16"}),s.createElement("line",{x1:"128",y1:"80",x2:"128",y2:"136",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),s.createElement("circle",{cx:"128",cy:"172",r:"12"}))})),ql.set("fill",(function(){return s.createElement(s.Fragment,null,s.createElement("path",{d:"M128,24A104,104,0,1,0,232,128,104.2,104.2,0,0,0,128,24Zm-8,56a8,8,0,0,1,16,0v56a8,8,0,0,1-16,0Zm8,104a12,12,0,1,1,12-12A12,12,0,0,1,128,184Z"}))})),ql.set("light",(function(e){return s.createElement(s.Fragment,null,s.createElement("circle",{cx:"128",cy:"128",r:"96",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"12"}),s.createElement("line",{x1:"128",y1:"80",x2:"128",y2:"136",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"12"}),s.createElement("circle",{cx:"128",cy:"172",r:"10"}))})),ql.set("thin",(function(e){return s.createElement(s.Fragment,null,s.createElement("circle",{cx:"128",cy:"128",r:"96",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"8"}),s.createElement("line",{x1:"128",y1:"80",x2:"128",y2:"136",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"8"}),s.createElement("circle",{cx:"128",cy:"172",r:"8"}))})),ql.set("regular",(function(e){return s.createElement(s.Fragment,null,s.createElement("circle",{cx:"128",cy:"128",r:"96",fill:"none",stroke:e,strokeMiterlimit:"10",strokeWidth:"16"}),s.createElement("line",{x1:"128",y1:"80",x2:"128",y2:"136",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),s.createElement("circle",{cx:"128",cy:"172",r:"12"}))}));var Xl=function(e,t){return Ui(e,t,ql)},Kl=(0,s.forwardRef)((function(e,t){return s.createElement(Vi,Object.assign({ref:t},e,{renderPath:Xl}))}));Kl.displayName="WarningCircle";const Yl=Kl;var Gl=new Map;Gl.set("bold",(function(e){return s.createElement(s.Fragment,null,s.createElement("line",{x1:"200",y1:"56",x2:"56",y2:"200",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"24"}),s.createElement("line",{x1:"200",y1:"200",x2:"56",y2:"56",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"24"}))})),Gl.set("duotone",(function(e){return s.createElement(s.Fragment,null,s.createElement("line",{x1:"200",y1:"56",x2:"56",y2:"200",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),s.createElement("line",{x1:"200",y1:"200",x2:"56",y2:"56",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}))})),Gl.set("fill",(function(){return s.createElement(s.Fragment,null,s.createElement("path",{d:"M139.3,128l66.4-66.3a8.1,8.1,0,0,0-11.4-11.4L128,116.7,61.7,50.3A8.1,8.1,0,0,0,50.3,61.7L116.7,128,50.3,194.3a8.1,8.1,0,0,0,0,11.4,8.2,8.2,0,0,0,11.4,0L128,139.3l66.3,66.4a8.2,8.2,0,0,0,11.4,0,8.1,8.1,0,0,0,0-11.4Z"}))})),Gl.set("light",(function(e){return s.createElement(s.Fragment,null,s.createElement("line",{x1:"200",y1:"56",x2:"56",y2:"200",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"12"}),s.createElement("line",{x1:"200",y1:"200",x2:"56",y2:"56",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"12"}))})),Gl.set("thin",(function(e){return s.createElement(s.Fragment,null,s.createElement("line",{x1:"200",y1:"56",x2:"56",y2:"200",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"8"}),s.createElement("line",{x1:"200",y1:"200",x2:"56",y2:"56",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"8"}))})),Gl.set("regular",(function(e){return s.createElement(s.Fragment,null,s.createElement("line",{x1:"200",y1:"56",x2:"56",y2:"200",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),s.createElement("line",{x1:"200",y1:"200",x2:"56",y2:"56",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}))}));var Ql=function(e,t){return Ui(e,t,Gl)},Zl=(0,s.forwardRef)((function(e,t){return s.createElement(Vi,Object.assign({ref:t},e,{renderPath:Ql}))}));Zl.displayName="X";const Jl=Zl;function es(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 ts(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?es(Object(n),!0).forEach((function(t){ns(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):es(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ns(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var rs={minWidth:265,height:56,borderRadius:4,boxShadow:"0px 2px 8px rgba(32, 31, 29, 0.33)",margin:0,paddingLeft:6,paddingRight:6,paddingTop:12,paddingBottom:12},os=ue(De,{fontSize:14,fontWeight:"bolder",color:"white",flex:1,marginLeft:16}),is=ue($e,{width:"100%"}),as=function(e,t){return function(e,t,n,r){return Bl((function(t){var r=t.id;return(0,Ie.jsxs)(is,{alignment:"center",children:["success"===n?(0,Ie.jsx)(Vl,{size:24,color:"white"}):(0,Ie.jsx)(Yl,{size:24,color:"white"}),(0,Ie.jsx)(os,{children:e}),(0,Ie.jsx)($e,{distribution:"end",css:{marginLeft:16},children:(0,Ie.jsx)(Jl,{size:18,style:{cursor:"pointer"},color:"#CCEAC4",weight:"bold",onClick:function(){return Bl.dismiss(r)}})})]})}),ts({style:ts(ts({},rs),{},{background:t}),duration:2e3},r))}(e,"#cc0000","error",t)};function ls(e){return(0,Ie.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,Ie.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 ss(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 us(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ss(Object(n),!0).forEach((function(t){cs(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ss(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function cs(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fs(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function ds(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){fs(i,r,o,a,l,"next",e)}function l(e){fs(i,r,o,a,l,"throw",e)}a(void 0)}))}}function ps(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 hs(e){var t,n,r,o,i,a=(o=(0,s.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 ps(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)?ps(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.")}()),l=a[0],u=a[1];!function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=(0,s.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,s.useEffect)((function(){if("undefined"!=typeof window)return window.addEventListener("keydown",r),function(){window.removeEventListener("keydown",r)}}),[r])}((function(){h()}),void 0,!0),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"));var c,f,d,p=(0,s.useCallback)((function(e){u(e.target.value)}),[u]),h=(0,s.useCallback)(ds(regeneratorRuntime.mark((function t(){var n,r,o;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(l==(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,hl({highlightId:null===(o=e.highlight)||void 0===o?void 0:o.id,annotation:l});case 3:t.sent?(e.onUpdate(us(us({},e.highlight),{},{annotation:l})),e.onOpenChange(!1)):as("Error updating your note",{position:"bottom-right"});case 5:if(e.highlight||!e.createHighlightForNote){t.next=12;break}return t.next=8,e.createHighlightForNote(l);case 8:t.sent?e.onOpenChange(!0):as("Error saving highlight",{position:"bottom-right"}),t.next=13;break;case 12:e.onOpenChange(!1);case 13:case"end":return t.stop()}}),t)}))),[l,e]);return(0,Ie.jsxs)(il,{defaultOpen:!0,onOpenChange:e.onOpenChange,children:[(0,Ie.jsx)(ll,{}),(0,Ie.jsx)(ul,{css:{overflow:"auto"},onPointerDownOutside:function(e){e.preventDefault()},children:(0,Ie.jsxs)(Be,{children:[(0,Ie.jsxs)($e,{distribution:"between",alignment:"center",css:{width:"100%"},children:[(0,Ie.jsx)(Nn,{style:"modalHeadline",css:{p:"16px"},children:"Notes"}),(0,Ie.jsx)(Fi,{css:{pt:"16px",pr:"16px"},style:"ghost",onClick:function(){e.onOpenChange(!1)},children:(0,Ie.jsx)(ls,{size:20,strokeColor:de.colors.grayText.toString()})})]}),(0,Ie.jsx)(Ne,{css:{width:"100%",height:"1px",opacity:"0.2",backgroundColor:de.colors.grayText.toString()}}),(0,Ie.jsx)(cl,{css:{mt:"$2",width:"95%",p:"0px",height:"$6",marginLeft:"16px"},autoFocus:!0,placeholder:"Add your note here",value:l,onChange:p,maxLength:4e3}),(0,Ie.jsx)(Ne,{css:{width:"100%",height:"1px",opacity:"0.2",backgroundColor:de.colors.grayText.toString()}}),(0,Ie.jsx)($e,{alignment:"end",distribution:"end",css:{width:"100%",padding:"22px 22px 20px 0"},children:(0,Ie.jsx)(Fi,{style:"ctaDarkYellow",onClick:h,children:"Save"})})]})})]})}function gs(e){var t,n=(0,s.useMemo)((function(){return e.highlight.quote.split("\n")}),[e.highlight.quote]),r=null!==(t=e.highlight.annotation)&&void 0!==t?t:"",o=fe(ze,{margin:"0px 24px 16px 24px",fontSize:"18px",lineHeight:"27px",color:"$textDefault",cursor:"pointer"});return(0,Ie.jsxs)(Be,{css:{width:"100%",boxSizing:"border-box"},children:[r&&(0,Ie.jsx)(De,{css:{p:"16px",m:"16px",ml:"24px",mr:"24px",borderRadius:"6px",bg:"$grayBase"},children:(0,Ie.jsx)(Nn,{style:"shareHighlightModalAnnotation",children:r})}),(0,Ie.jsxs)(o,{onClick:function(){e.scrollToHighlight&&e.scrollToHighlight(e.highlight.id)},children:[e.highlight.prefix,(0,Ie.jsx)(Ne,{css:{bg:"$highlightBackground",p:"1px",borderRadius:"2px"},children:n.map((function(e,t){return(0,Ie.jsxs)(s.Fragment,{children:[e,t!==n.length-1&&(0,Ie.jsxs)(Ie.Fragment,{children:[(0,Ie.jsx)("br",{}),(0,Ie.jsx)("br",{})]})]},t)}))}),e.highlight.suffix]}),(0,Ie.jsx)(De,{css:{p:"24px",pt:"0",width:"100%",boxSizing:"border-box"},children:e.author&&e.title&&(0,Ie.jsx)(Nn,{style:"highlightTitleAndAuthor",children:e.title+e.author})})]})}function ms(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function vs(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){ms(i,r,o,a,l,"next",e)}function l(e){ms(i,r,o,a,l,"throw",e)}a(void 0)}))}}function ys(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 bs(e){return(0,Ie.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,Ie.jsx)("path",{d:"M18.75 5.75L5.25 19.25",stroke:e.strokeColor,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,Ie.jsx)("path",{d:"M18.75 19.25L5.25 5.75",stroke:e.strokeColor,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})}function ws(e){return(0,Ie.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,Ie.jsx)("path",{d:"M9.13628 18.637V10.8781C9.13628 10.2147 9.91506 9.8397 10.4342 10.3012L12.8283 13.7913C13.3186 14.1951 14.0108 14.1951 14.5012 13.7913L16.8375 10.33C17.3567 9.89738 18.1355 10.2435 18.1355 10.9069V15.0027C18.1355 16.9929 19.4623 18.6081 21.4525 18.6081H21.5101C23.2119 18.6081 24.6829 17.4544 25.0867 15.8103C25.2886 14.945 25.4617 14.0508 25.4617 13.3586C25.4329 6.58038 19.693 1.44624 12.8283 1.90774C7.00186 2.31154 2.30037 7.01303 1.89657 12.8394C1.43507 19.7042 6.85765 25.444 13.6647 25.444",stroke:e.strokeColor,strokeWidth:"2.29961",strokeMiterlimit:"10"})})}o(6577),o(9097);const xs=s.forwardRef(((e,t)=>s.createElement(ka.span,xe({},e,{ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}})))),Es=s.forwardRef(((e,t)=>{var n,r;const{containerRef:o,style:i,...a}=e,l=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,[,u]=s.useState({});return io((()=>{u({})}),[]),l?c.createPortal(s.createElement(ka.div,xe({"data-radix-portal":""},a,{ref:t,style:l===document.body?{position:"absolute",top:0,left:0,zIndex:2147483647,...i}:void 0})),l):null})),ks=s.forwardRef(((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return s.createElement(ka.svg,xe({},i,{ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?n:s.createElement("polygon",{points:"0,0 30,0 15,10"}))}));function Ss(e){const[t,n]=s.useState(void 0);return s.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"}),()=>t.unobserve(e)}n(void 0)}),[e]),t}const[_s,Os]=jo("Popper"),[Cs,Ps]=_s("Popper"),Ls=s.forwardRef(((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=Ps("PopperAnchor",n),a=s.useRef(null),l=we(t,a);return s.useEffect((()=>{i.onAnchorChange((null==r?void 0:r.current)||a.current)})),r?null:s.createElement(ka.div,xe({},o,{ref:l}))})),[Ts,js]=_s("PopperContent"),Rs=s.forwardRef(((e,t)=>{const{__scopePopper:n,side:r="bottom",sideOffset:o,align:i="center",alignOffset:a,collisionTolerance:l,avoidCollisions:u=!0,...c}=e,f=Ps("PopperContent",n),[d,p]=s.useState(),h=Qo(f.anchor),[g,m]=s.useState(null),v=Ss(g),[y,b]=s.useState(null),w=Ss(y),x=we(t,(e=>m(e))),E=function(){const[e,t]=s.useState(void 0);return s.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}(),k=E?DOMRect.fromRect({...E,x:0,y:0}):void 0,{popperStyles:S,arrowStyles:_,placedSide:O,placedAlign:C}=Zo({anchorRect:h,popperSize:v,arrowSize:w,arrowOffset:d,side:r,sideOffset:o,align:i,alignOffset:a,shouldAvoidCollisions:u,collisionBoundariesRect:k,collisionTolerance:l}),P=void 0!==O;return s.createElement("div",{style:S,"data-radix-popper-content-wrapper":""},s.createElement(Ts,{scope:n,arrowStyles:_,onArrowChange:b,onArrowOffsetChange:p},s.createElement(ka.div,xe({"data-side":O,"data-align":C},c,{style:{...c.style,animation:P?void 0:"none"},ref:x}))))})),As=s.forwardRef((function(e,t){const{__scopePopper:n,offset:r,...o}=e,i=js("PopperArrow",n),{onArrowOffsetChange:a}=i;return s.useEffect((()=>a(r)),[a,r]),s.createElement("span",{style:{...i.arrowStyles,pointerEvents:"none"}},s.createElement("span",{ref:i.onArrowChange,style:{display:"inline-block",verticalAlign:"top",pointerEvents:"auto"}},s.createElement(ks,xe({},o,{ref:t,style:{...o.style,display:"block"}}))))})),Is=e=>{const{__scopePopper:t,children:n}=e,[r,o]=s.useState(null);return s.createElement(Cs,{scope:t,anchor:r,onAnchorChange:o},n)},Ms=Ls,Ds=Rs,Ns=As;function Fs(e){const t=s.useRef({value:e,previous:e});return s.useMemo((()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous)),[e])}const[zs,$s]=jo("Tooltip",[Os]),Bs=Os(),[Us,Ws]=zs("TooltipProvider",{isOpenDelayed:!0,delayDuration:700,onOpen:()=>{},onClose:()=>{}}),[Hs,Vs]=zs("Tooltip"),qs=s.forwardRef(((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Vs("TooltipTrigger",n),i=Bs(n),a=we(t,o.onTriggerChange),l=s.useRef(!1),u=s.useCallback((()=>l.current=!1),[]);return s.useEffect((()=>()=>document.removeEventListener("mouseup",u)),[u]),s.createElement(Ms,xe({asChild:!0},i),s.createElement(ka.button,xe({"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute},r,{ref:a,onMouseEnter:Ao(e.onMouseEnter,o.onTriggerEnter),onMouseLeave:Ao(e.onMouseLeave,o.onClose),onMouseDown:Ao(e.onMouseDown,(()=>{o.onClose(),l.current=!0,document.addEventListener("mouseup",u,{once:!0})})),onFocus:Ao(e.onFocus,(()=>{l.current||o.onOpen()})),onBlur:Ao(e.onBlur,o.onClose),onClick:Ao(e.onClick,(e=>{0===e.detail&&o.onClose()}))})))})),Xs=s.forwardRef(((e,t)=>{const{forceMount:n,...r}=e,o=Vs("TooltipContent",e.__scopeTooltip);return s.createElement(Sa,{present:n||o.open},s.createElement(Ks,xe({ref:t},r)))})),Ks=s.forwardRef(((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,portalled:i=!0,...a}=e,l=Vs("TooltipContent",n),u=Bs(n),c=i?Es:s.Fragment,{onClose:f}=l;return Co((()=>f())),s.useEffect((()=>(document.addEventListener("tooltip.open",f),()=>document.removeEventListener("tooltip.open",f))),[f]),s.createElement(c,null,s.createElement(Ys,{__scopeTooltip:n}),s.createElement(Ds,xe({"data-state":l.stateAttribute},u,a,{ref:t,style:{...a.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)"}}),s.createElement(Se,null,r),s.createElement(xs,{id:l.contentId,role:"tooltip"},o||r)))}));function Ys(e){const{__scopeTooltip:t}=e,n=Vs("CheckTriggerMoved",t),r=Qo(n.trigger),o=null==r?void 0:r.left,i=Fs(o),a=null==r?void 0:r.top,l=Fs(a),u=n.onClose;return s.useEffect((()=>{(void 0!==i&&i!==o||void 0!==l&&l!==a)&&u()}),[u,i,l,o,a]),null}const Gs=qs,Qs=Xs,Zs=s.forwardRef(((e,t)=>{const{__scopeTooltip:n,...r}=e,o=Bs(n);return s.createElement(Ns,xe({},o,r,{ref:t}))}));var Js=["children","active","tooltipContent","tooltipSide","arrowStyles"];function eu(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 tu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?eu(Object(n),!0).forEach((function(t){nu(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function nu(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ru=se({"0%":{opacity:0,transform:"translateY(2px)"},"100%":{opacity:1,transform:"translateY(0)"}}),ou=se({"0%":{opacity:0,transform:"translateX(-2px)"},"100%":{opacity:1,transform:"translateX(0)"}}),iu=ue(Qs,{borderRadius:4,padding:"8px 13px",fontSize:12,color:"#FFFFFF",backgroundColor:"#1C1C1E","@media (prefers-reduced-motion: no-preference)":{animationDuration:"400ms",animationTimingFunction:"cubic-bezier(0.16, 1, 0.3, 1)",animationFillMode:"forwards",willChange:"transform, opacity",'&[data-state="delayed-open"]':{'&[data-side="top"]':{animationName:se({"0%":{opacity:0,transform:"translateY(-2px)"},"100%":{opacity:1,transform:"translateY(0)"}})},'&[data-side="right"]':{animationName:se({"0%":{opacity:0,transform:"translateX(2px)"},"100%":{opacity:1,transform:"translateX(0)"}})},'&[data-side="bottom"]':{animationName:ru},'&[data-side="left"]':{animationName:ou}}}}),au=ue(Zs,{fill:"#1C1C1E"}),lu=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o=!1,onOpenChange:i,delayDuration:a}=e,l=Ws("Tooltip",t),u=Bs(t),[c,f]=s.useState(null),d=Ua(),p=s.useRef(0),h=null!=a?a:l.delayDuration,g=s.useRef(!1),{onOpen:m,onClose:v}=l,[y=!1,b]=xi({prop:r,defaultProp:o,onChange:e=>{e&&(document.dispatchEvent(new CustomEvent("tooltip.open")),m()),null==i||i(e)}}),w=s.useMemo((()=>y?g.current?"delayed-open":"instant-open":"closed"),[y]),x=s.useCallback((()=>{window.clearTimeout(p.current),g.current=!1,b(!0)}),[b]),E=s.useCallback((()=>{window.clearTimeout(p.current),p.current=window.setTimeout((()=>{g.current=!0,b(!0)}),h)}),[h,b]);return s.useEffect((()=>()=>window.clearTimeout(p.current)),[]),s.createElement(Is,u,s.createElement(Hs,{scope:t,contentId:d,open:y,stateAttribute:w,trigger:c,onTriggerChange:f,onTriggerEnter:s.useCallback((()=>{l.isOpenDelayed?E():x()}),[l.isOpenDelayed,E,x]),onOpen:s.useCallback(x,[x]),onClose:s.useCallback((()=>{window.clearTimeout(p.current),b(!1),v()}),[b,v])},n))},su=Gs,uu=iu,cu=au,fu={backgroundColor:"#F9D354",color:"#0A0806"},du={fill:"#F9D354"},pu=function(e){var t=e.children,n=e.active,r=e.tooltipContent,o=e.tooltipSide,i=e.arrowStyles,a=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,Js);return(0,Ie.jsxs)(lu,{open:n,children:[(0,Ie.jsx)(su,{asChild:!0,children:t}),(0,Ie.jsxs)(uu,tu(tu({sideOffset:5,side:o,style:fu},a),{},{children:[r,(0,Ie.jsx)(cu,{style:null!=i?i:du})]}))]})},hu=new Map;hu.set("bold",(function(e){return s.createElement(s.Fragment,null,s.createElement("circle",{cx:"128",cy:"128",r:"96",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"24"}),s.createElement("path",{d:"M168,88H152a23.9,23.9,0,0,0-24,24V224",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"24"}),s.createElement("line",{x1:"96",y1:"144",x2:"160",y2:"144",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"24"}))})),hu.set("duotone",(function(e){return s.createElement(s.Fragment,null,s.createElement("circle",{cx:"128",cy:"128",r:"96",opacity:"0.2"}),s.createElement("circle",{cx:"128",cy:"128",r:"96",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),s.createElement("path",{d:"M168,88H152a23.9,23.9,0,0,0-24,24V224",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),s.createElement("line",{x1:"96",y1:"144",x2:"160",y2:"144",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}))})),hu.set("fill",(function(){return s.createElement(s.Fragment,null,s.createElement("path",{d:"M232,128a104.3,104.3,0,0,1-91.5,103.3,4.1,4.1,0,0,1-4.5-4V152h24a8,8,0,0,0,8-8.5,8.2,8.2,0,0,0-8.3-7.5H136V112a16,16,0,0,1,16-16h16a8,8,0,0,0,8-8.5,8.2,8.2,0,0,0-8.3-7.5H152a32,32,0,0,0-32,32v24H96a8,8,0,0,0-8,8.5,8.2,8.2,0,0,0,8.3,7.5H120v75.3a4,4,0,0,1-4.4,4C62.8,224.9,22,179,24.1,124.1A104,104,0,0,1,232,128Z"}))})),hu.set("light",(function(e){return s.createElement(s.Fragment,null,s.createElement("circle",{cx:"128",cy:"128",r:"96",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"12"}),s.createElement("path",{d:"M168,88H152a23.9,23.9,0,0,0-24,24V224",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"12"}),s.createElement("line",{x1:"96",y1:"144",x2:"160",y2:"144",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"12"}))})),hu.set("thin",(function(e){return s.createElement(s.Fragment,null,s.createElement("circle",{cx:"128",cy:"128",r:"96",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"8"}),s.createElement("path",{d:"M168,88H152a23.9,23.9,0,0,0-24,24V224",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"8"}),s.createElement("line",{x1:"96",y1:"144",x2:"160",y2:"144",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"8"}))})),hu.set("regular",(function(e){return s.createElement(s.Fragment,null,s.createElement("circle",{cx:"128",cy:"128",r:"96",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),s.createElement("path",{d:"M168,88H152a23.9,23.9,0,0,0-24,24V224",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),s.createElement("line",{x1:"96",y1:"144",x2:"160",y2:"144",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}))}));var gu=function(e,t){return Ui(e,t,hu)},mu=(0,s.forwardRef)((function(e,t){return s.createElement(Vi,Object.assign({ref:t},e,{renderPath:gu}))}));mu.displayName="FacebookLogo";const vu=mu;var yu=new Map;yu.set("bold",(function(e){return s.createElement(s.Fragment,null,s.createElement("path",{d:"M128,88c0-22,18.5-40.3,40.5-40a40,40,0,0,1,36.2,24H240l-32.3,32.3A127.9,127.9,0,0,1,80,224c-32,0-40-12-40-12s32-12,48-36c0,0-64-32-48-120,0,0,40,40,88,48Z",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"24"}))})),yu.set("duotone",(function(e){return s.createElement(s.Fragment,null,s.createElement("path",{d:"M128,88c0-22,18.5-40.3,40.5-40a40,40,0,0,1,36.2,24H240l-32.3,32.3A127.9,127.9,0,0,1,80,224c-32,0-40-12-40-12s32-12,48-36c0,0-64-32-48-120,0,0,40,40,88,48Z",opacity:"0.2"}),s.createElement("path",{d:"M128,88c0-22,18.5-40.3,40.5-40a40,40,0,0,1,36.2,24H240l-32.3,32.3A127.9,127.9,0,0,1,80,224c-32,0-40-12-40-12s32-12,48-36c0,0-64-32-48-120,0,0,40,40,88,48Z",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}))})),yu.set("fill",(function(){return s.createElement(s.Fragment,null,s.createElement("path",{d:"M245.7,77.7l-30.2,30.1C209.5,177.7,150.5,232,80,232c-14.5,0-26.5-2.3-35.6-6.8-7.3-3.7-10.3-7.6-11.1-8.8a8,8,0,0,1,3.9-11.9c.2-.1,23.8-9.1,39.1-26.4a108.6,108.6,0,0,1-24.7-24.4c-13.7-18.6-28.2-50.9-19.5-99.1a8.1,8.1,0,0,1,5.5-6.2,8,8,0,0,1,8.1,1.9c.3.4,33.6,33.2,74.3,43.8V88a48.3,48.3,0,0,1,48.6-48,48.2,48.2,0,0,1,41,24H240a8,8,0,0,1,7.4,4.9A8.4,8.4,0,0,1,245.7,77.7Z"}))})),yu.set("light",(function(e){return s.createElement(s.Fragment,null,s.createElement("path",{d:"M128,88c0-22,18.5-40.3,40.5-40a40,40,0,0,1,36.2,24H240l-32.3,32.3A127.9,127.9,0,0,1,80,224c-32,0-40-12-40-12s32-12,48-36c0,0-64-32-48-120,0,0,40,40,88,48Z",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"12"}))})),yu.set("thin",(function(e){return s.createElement(s.Fragment,null,s.createElement("path",{d:"M128,88c0-22,18.5-40.3,40.5-40a40,40,0,0,1,36.2,24H240l-32.3,32.3A127.9,127.9,0,0,1,80,224c-32,0-40-12-40-12s32-12,48-36c0,0-64-32-48-120,0,0,40,40,88,48Z",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"8"}))})),yu.set("regular",(function(e){return s.createElement(s.Fragment,null,s.createElement("path",{d:"M128,88c0-22,18.5-40.3,40.5-40a40,40,0,0,1,36.2,24H240l-32.3,32.3A127.9,127.9,0,0,1,80,224c-32,0-40-12-40-12s32-12,48-36c0,0-64-32-48-120,0,0,40,40,88,48Z",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}))}));var bu=function(e,t){return Ui(e,t,yu)},wu=(0,s.forwardRef)((function(e,t){return s.createElement(Vi,Object.assign({ref:t},e,{renderPath:bu}))}));wu.displayName="TwitterLogo";const xu=wu;function Eu(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 ku(e){var t,n,r=function(e,t){var n,r,o=(n=(0,s.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 ys(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)?ys(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],a=o[1],l=e||("undefined"!=typeof window?window.location.toString():""),u=(0,s.useCallback)(vs(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(l);case 2:e.sent,a(!0),window.setTimeout((function(){return a(!1)}),5e3),null===(n=window.analytics)||void 0===n||n.track("link_copied",{link:l,type:t});case 6:case"end":return e.stop()}}),e)}))),[l,t]);return{link:l,copyLink:u,isLinkCopied:i}}(e.url,e.type),o=r.copyLink,i=r.isLinkCopied,a=(t=(0,s.useState)(!1),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 Eu(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)?Eu(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.")}()),l=a[0],u=a[1],c=de.colors.grayText.toString();return(0,Ie.jsxs)(il,{defaultOpen:!0,onOpenChange:e.onOpenChange,children:[(0,Ie.jsx)(ll,{}),(0,Ie.jsx)(ul,{onPointerDownOutside:function(e){e.preventDefault()},css:{overflow:"auto",p:"0px",border:"1px solid $grayBorder",boxShadow:"none"},children:(0,Ie.jsxs)(Be,{distribution:"start",css:{p:"0"},children:[(0,Ie.jsxs)($e,{distribution:"between",alignment:"center",css:{width:"100%",pt:"24px",pl:"24px",pr:"24px",boxSizing:"border-box",pb:"16px"},children:[(0,Ie.jsx)(Nn,{style:"modalTitle",css:{p:"0"},children:e.modalTitle}),(0,Ie.jsx)(Fi,{css:{p:"0"},style:"ghost",onClick:function(){e.onOpenChange(!1)},children:(0,Ie.jsx)(bs,{size:24,strokeColor:c})})]}),e.children,(0,Ie.jsxs)($e,{alignment:"start",distribution:"start",css:{alignItems:"center",pt:"16px",pb:"16px",pl:"24px",pr:"24px",height:"64px",width:"100%",boxSizing:"border-box",gap:"8px",mb:"0px",bg:"$grayBg",borderTop:"1px solid $grayBorder",borderRadius:"0px 0px 6px 6px"},children:[(0,Ie.jsx)(Nn,{style:"boldText",css:{m:"0"},children:"Secret URL"}),(0,Ie.jsx)(pu,{tooltipContent:"Link copied!",tooltipSide:"top",active:i,style:{background:"linear-gradient(0deg, rgba(10, 8, 6, 0.8), rgba(10, 8, 6, 0.8)), #FFFFFF;"},arrowStyles:{fill:"linear-gradient(0deg, rgba(10, 8, 6, 0.8), rgba(10, 8, 6, 0.8)), #FFFFFF;"},children:(0,Ie.jsx)("button",{onClick:function(){u(!l)},className:"track",style:{display:"flex",padding:"2px",flexDirection:"".concat(l?"row-reverse":"row"),alignItems:"center",width:"40px",height:"24px",background:"".concat(l?"rgba(255, 210, 52, 1)":"rgba(10, 8, 6, 0.15)"),borderRadius:"12px",borderColor:de.colors.grayBorder.toString(),borderWidth:1,borderStyle:"solid"},children:(0,Ie.jsx)("div",{className:"thumb",style:{width:"20px",height:"20px",borderRadius:"20px",background:"rgba(255, 255, 255, 1)",border:"2px solid rgba(0, 0, 0, 0.06)"}})})}),l&&(0,Ie.jsx)(Fi,{style:"ctaModal",onClick:o,children:"Copy Link"}),(0,Ie.jsxs)(De,{css:{display:"flex",flexDirection:"row",marginLeft:"auto",gap:"24px",alignItems:"center"},children:[(0,Ie.jsx)(Fe,{target:"_blank",css:{height:"24px"},referrerPolicy:"no-referrer",href:"",children:(0,Ie.jsx)(ws,{size:26,strokeColor:de.colors.textNonEssential.toString()})}),(0,Ie.jsx)(Fe,{target:"_blank",css:{height:"24px"},referrerPolicy:"no-referrer",href:"https://www.facebook.com/sharer/sharer.php?u=".concat(e.url,"&t=").concat(e.title,"&display=page"),children:(0,Ie.jsx)(vu,{width:26,height:26,color:c})}),(0,Ie.jsx)(Fe,{target:"_blank",css:{height:"24px"},referrerPolicy:"no-referrer",href:"https://twitter.com/intent/tweet?text=".concat(e.title,"&url=").concat(e.url),children:(0,Ie.jsx)(xu,{width:26,height:26,color:c})})]})]})]})})]})}function Su(e){var t;return(0,Ie.jsx)(ku,{url:e.url,type:"highlight",modalTitle:"Share Highlight ".concat(null!==(t=e.highlight)&&void 0!==t&&t.annotation?"& Note":""),title:e.title,description:e.description,onOpenChange:e.onOpenChange,children:(0,Ie.jsx)(gs,{title:e.title,author:e.author,highlight:e.highlight})})}function _u(e){var t;return(0,Ie.jsxs)(il,{defaultOpen:!0,onOpenChange:e.onOpenChange,children:[(0,Ie.jsx)(ll,{}),(0,Ie.jsx)(ul,{css:{bg:"$grayBg",maxWidth:"20em"},children:(0,Ie.jsxs)(Be,{alignment:"center",distribution:"center",css:{p:"$2"},children:[e.icon?e.icon:null,(0,Ie.jsx)(Nn,{children:e.message}),(0,Ie.jsxs)($e,{distribution:"center",css:{pt:"$2"},children:[(0,Ie.jsx)(Fi,{style:"ctaPill",css:{mr:"$2"},onClick:function(){return e.onOpenChange(!1)},children:"Cancel"}),(0,Ie.jsx)(Fi,{style:"ctaPill",onClick:e.onAccept,children:null!==(t=e.acceptButtonLabel)&&void 0!==t?t:"Confirm"})]})]})})]})}var Ou=new Map;Ou.set("bold",(function(e){return s.createElement(s.Fragment,null,s.createElement("line",{x1:"216",y1:"60",x2:"40",y2:"60",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"24"}),s.createElement("line",{x1:"104",y1:"104",x2:"104",y2:"168",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"24"}),s.createElement("line",{x1:"152",y1:"104",x2:"152",y2:"168",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"24"}),s.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"}),s.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"}))})),Ou.set("duotone",(function(e){return s.createElement(s.Fragment,null,s.createElement("path",{d:"M200,56V208a8,8,0,0,1-8,8H64a8,8,0,0,1-8-8V56Z",opacity:"0.2"}),s.createElement("line",{x1:"216",y1:"56",x2:"40",y2:"56",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),s.createElement("line",{x1:"104",y1:"104",x2:"104",y2:"168",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),s.createElement("line",{x1:"152",y1:"104",x2:"152",y2:"168",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),s.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"}),s.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"}))})),Ou.set("fill",(function(){return s.createElement(s.Fragment,null,s.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"}))})),Ou.set("light",(function(e){return s.createElement(s.Fragment,null,s.createElement("line",{x1:"216",y1:"56",x2:"40",y2:"56",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"12"}),s.createElement("line",{x1:"104",y1:"104",x2:"104",y2:"168",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"12"}),s.createElement("line",{x1:"152",y1:"104",x2:"152",y2:"168",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"12"}),s.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"}),s.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"}))})),Ou.set("thin",(function(e){return s.createElement(s.Fragment,null,s.createElement("line",{x1:"216",y1:"56",x2:"40",y2:"56",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"8"}),s.createElement("line",{x1:"104",y1:"104",x2:"104",y2:"168",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"8"}),s.createElement("line",{x1:"152",y1:"104",x2:"152",y2:"168",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"8"}),s.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"}),s.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"}))})),Ou.set("regular",(function(e){return s.createElement(s.Fragment,null,s.createElement("line",{x1:"216",y1:"56",x2:"40",y2:"56",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),s.createElement("line",{x1:"104",y1:"104",x2:"104",y2:"168",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),s.createElement("line",{x1:"152",y1:"104",x2:"152",y2:"168",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),s.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"}),s.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 Cu=function(e,t){return Ui(e,t,Ou)},Pu=(0,s.forwardRef)((function(e,t){return s.createElement(Vi,Object.assign({ref:t},e,{renderPath:Cu}))}));Pu.displayName="Trash";const Lu=Pu;function Tu(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 ju(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)?ju(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 ju(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){return(0,Ie.jsxs)(il,{defaultOpen:!0,onOpenChange:e.onOpenChange,children:[(0,Ie.jsx)(ll,{}),(0,Ie.jsx)(ul,{onPointerDownOutside:function(t){t.preventDefault(),e.onOpenChange(!1)},css:{overflow:"auto",p:"0"},children:(0,Ie.jsxs)(Be,{distribution:"start",css:{height:"100%"},children:[(0,Ie.jsxs)($e,{distribution:"between",alignment:"center",css:{width:"100%"},children:[(0,Ie.jsx)(Nn,{style:"modalHeadline",css:{p:"16px"},children:"All your highlights and notes"}),(0,Ie.jsx)(Fi,{css:{pt:"16px",pr:"16px"},style:"ghost",onClick:function(){e.onOpenChange(!1)},children:(0,Ie.jsx)(ls,{size:20,strokeColor:de.colors.grayText.toString()})})]}),(0,Ie.jsxs)(De,{css:{overflow:"auto",mt:"$2",width:"100%"},children:[e.highlights.map((function(t){return(0,Ie.jsx)(Au,{highlight:t,showDelete:!!e.deleteHighlightAction,scrollToHighlight:e.scrollToHighlight,deleteHighlightAction:function(){e.deleteHighlightAction&&e.deleteHighlightAction(t.id)}},t.id)})),0===e.highlights.length&&(0,Ie.jsx)(Ne,{css:{textAlign:"center",width:"100%"},children:(0,Ie.jsx)(Nn,{css:{mb:"40px"},children:"You have not added any highlights or notes to this document"})})]})]})})]})}function Au(e){var t,n=Tu((0,s.useState)(!1),2),r=n[0],o=n[1],i=Tu((0,s.useState)(!1),2),a=i[0],l=i[1],u=Tu((0,s.useState)(null!==(t=e.highlight.annotation)&&void 0!==t?t:""),2),c=u[0],f=u[1],d=(0,s.useCallback)((function(e){f(e.target.value)}),[f]),p=function(){return(0,Ie.jsx)($e,{alignment:"center",distribution:"end",css:{width:"100%",pt:"$2"},children:e.showDelete&&(0,Ie.jsx)(Fi,{style:"ghost",onClick:function(){return l(!0)},children:(0,Ie.jsx)(Lu,{width:18,height:18,color:de.colors.grayText.toString()})})})},h=function(){return(0,Ie.jsxs)(Be,{css:{width:"100%"},children:[(0,Ie.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,Ie.jsxs)($e,{alignment:"center",distribution:"end",css:{width:"100%"},children:[(0,Ie.jsx)(Fi,{style:"ctaPill",css:{mr:"$2"},onClick:function(){return o(!1)},children:"Cancel"}),(0,Ie.jsx)(Fi,{style:"ctaDarkYellow",children:"Save"})]})]})};return(0,Ie.jsx)(Ie.Fragment,{children:(0,Ie.jsxs)(Be,{children:[(0,Ie.jsx)(gs,{scrollToHighlight:e.scrollToHighlight,highlight:e.highlight}),e.highlight.annotation&&!r?(0,Ie.jsx)(Nn,{css:{px:"24px"},children:e.highlight.annotation}):null,r?(0,Ie.jsx)(h,{}):(0,Ie.jsx)(p,{}),(0,Ie.jsx)(Ue,{css:{mt:"$2",mb:"$4"}}),a?(0,Ie.jsx)(_u,{message:"Are you sure you want to delete this highlight?",onAccept:function(){l(!1),e.deleteHighlightAction()},onOpenChange:function(){return l(!1)},icon:(0,Ie.jsx)(zi,{size:40,strokeColor:de.colors.grayTextContrast.toString()})}):null]})})}var Iu;function Mu(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 Du(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Mu(Object(n),!0).forEach((function(t){Nu(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Nu(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Fu(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function zu(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Fu(i,r,o,a,l,"next",e)}function l(e){Fu(i,r,o,a,l,"throw",e)}a(void 0)}))}}function $u(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)||Bu(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 Bu(e,t){if(e){if("string"==typeof e)return Uu(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)?Uu(e,t):void 0}}function Uu(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 Wu(e){var t=$u((0,s.useState)(e.highlights),2),n=t[0],r=t[1],o=$u((0,s.useState)({highlightModalAction:"none"}),2),i=o[0],a=o[1],l=$u((0,s.useState)([]),2),u=l[0],c=l[1],f=(0,s.useRef)({pageX:0,pageY:0}),d=$u((0,s.useState)(void 0),2),p=d[0],h=d[1],g=function(e,t){var n=ar((0,s.useState)(null),2),r=n[0],o=n[1],i=(0,s.useCallback)(function(){var t=ir(regeneratorRuntime.mark((function t(n){var r,i,a,l,s,u,c,f,d,p,h,g,m,v,y,b,w,x,E,k;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,sr();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,s=i.selection,u=Gn(a),c=ar(u,2),f=c[0],d=c[1],p=cr(a,l),h=!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?h=!0:f<=e.end&&e.start<=d&&g.push(e)})),m=null,!g.length){t.next=21;break}if(x=!1,f<=g[0].start?(v=a.startContainer,y=a.startOffset):(E=tr(g[0].id),v=E.shift(),y=0),d>=g[g.length-1].end?(b=a.endContainer,w=a.endOffset):(k=tr(g[g.length-1].id),b=k.pop(),w=0,x=!0),v&&b){t.next=18;break}throw new Error("Failed to query node for computing new merged range");case 18:(m=new Range).setStart(v,y),x?m.setEndAfter(b):m.setEnd(b,w);case 21:if(!h){t.next=23;break}return t.abrupt("return",setTimeout((function(){o(null)}),100));case 23:return t.abrupt("return",o({selection:s,mouseEvent:n,range:null!==(r=m)&&void 0!==r?r:a,focusPosition:{x:p[l?"left":"right"],y:p[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,s.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]}(u),m=$u(g,2),v=m[0],y=m[1],b=(0,s.useMemo)((function(){var e;return"undefined"!=typeof window&&!(!wr()&&!(["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)}),[]);(0,s.useEffect)((function(){var t=[];if(n.forEach((function(e){try{var n=function(e){var t=function(e){return Kn(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}}(e);t.push(n)}catch(e){console.error(e)}})),c(t),e.scrollToHighlight.current){var r=document.querySelector('[omnivore-highlight-id="'.concat(e.scrollToHighlight.current,'"]'));r&&r.scrollIntoView({behavior:"auto"})}}),[n,c]);var w=(0,s.useCallback)(function(){var t=zu(regeneratorRuntime.mark((function t(o){var i;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i=o||(null==p?void 0:p.id)){t.next=3;break}return t.abrupt("return");case 3:return t.next=5,e.articleMutations.deleteHighlightMutation(i);case 5:t.sent?(ta(n.map((function(e){return e.id}))),r(n.filter((function(e){return e.id!==i}))),h(void 0)):console.error("Failed to delete highlight");case 7:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),[p,n,u]),x=(0,s.useCallback)((function(e){ta([e.id]);var t,o=n.filter((function(t){return t.id!==e.id}));r([].concat(function(e){if(Array.isArray(e))return Uu(e)}(t=o)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||Bu(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,u]),E=(0,s.useCallback)((function(t){var n;null===(n=navigator)||void 0===n||n.share({title:e.articleTitle,url:"".concat(e.highlightsBaseURL,"/").concat(t)}).then((function(){h(void 0)})).catch((function(e){console.log(e),h(void 0)}))}),[e.articleTitle,e.highlightsBaseURL]),k=(0,s.useCallback)((function(t){var n,r,o,i,l,s,u;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===(l=i.messageHandlers.highlightAction)||void 0===l||l.postMessage({actionID:"annotate",annotation:null!==(s=null===(u=t.highlight)||void 0===u?void 0:u.annotation)&&void 0!==s?s:""}):(t.createHighlightForNote=function(){var e=zu(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)}}(),a(t))}),[e.highlightBarDisabled]),S=function(){var t=zu(regeneratorRuntime.mark((function t(o,i){var l;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,xa({selection:o,articleId:e.articleId,existingHighlights:n,highlightStartEndOffsets:u,annotation:i},e.articleMutations);case 2:if((l=t.sent).highlights&&0!=l.highlights.length){t.next=6;break}return console.error("Failed to create highlight"),t.abrupt("return",void 0);case 6:if(y(null),r(l.highlights),void 0!==l.newHighlightIndex){t.next=11;break}return a({highlightModalAction:"none"}),t.abrupt("return",void 0);case 11:return t.abrupt("return",l.highlights[l.newHighlightIndex]);case 12:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}(),_=(0,s.useCallback)(function(){var e=zu(regeneratorRuntime.mark((function e(t,n){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(v){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,S(v,n);case 4:e.sent||as("Error saving highlight",{position:"bottom-right"});case 6:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),[E,n,k,e.articleId,v,y,b,u]),O=(0,s.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(Bn)){var i=t.getAttribute(Bn),a=n.find((function(e){return e.id===i}));if(a){var l,s,u,c=t.getBoundingClientRect();null===(l=window)||void 0===l||null===(s=l.webkit)||void 0===s||null===(u=s.messageHandlers.viewerAction)||void 0===u||u.postMessage({actionID:"showMenu",rectX:c.x,rectY:c.y,rectWidth:c.width,rectHeight:c.height}),h(a)}}else if(t.hasAttribute(Un)){var d=t.getAttribute(Un),p=n.find((function(e){return e.id===d}));k({highlight:p,highlightModalAction:"addComment"})}else h(void 0)}),[n,u]);(0,s.useEffect)((function(){if("undefined"!=typeof window)return document.addEventListener("click",O),function(){return document.removeEventListener("click",O)}}),[O]);var C,P,L,T,j,R,A=(0,s.useCallback)((function(t){switch(t){case"delete":w();break;case"create":_("none");break;case"comment":e.highlightBarDisabled||p?k({highlight:p,highlightModalAction:"addComment"}):k({highlight:void 0,selectionData:v||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==p?void 0:p.id})),p?b?E(p.shortId):a({highlight:p,highlightModalAction:"share"}):_("share");break;case"unshare":console.log("unshare")}}),[_,p,E,k,e.highlightBarDisabled,e.isAppleAppEmbed,w,b]);return(0,s.useEffect)((function(){var t=function(){A("comment")},n=function(){A("create")},r=function(){A("share")},o=function(){A("delete")},i=function(){h(void 0)},a=function(){var e=zu(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!p){e.next=4;break}return e.next=3,navigator.clipboard.writeText(p.quote);case 3:h(void 0);case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),l=function(){var t=zu(regeneratorRuntime.mark((function t(n){var r,o,i;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!p){t.next=9;break}return i=null!==(r=n.annotation)&&void 0!==r?r:"",t.next=4,e.articleMutations.updateHighlightMutation({highlightId:p.id,annotation:null!==(o=n.annotation)&&void 0!==o?o:""});case 4:t.sent?x(Du(Du({},p),{},{annotation:i})):console.log("failed to change annotation for highlight with id",p.id),h(void 0),t.next=10;break;case 9:_("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,Ie.jsx)(hs,{highlight:i.highlight,author:e.articleAuthor,title:e.articleTitle,onUpdate:x,onOpenChange:function(){return a({highlightModalAction:"none"})},createHighlightForNote:null==i?void 0:i.createHighlightForNote}):"share"==(null==i?void 0:i.highlightModalAction)&&i.highlight?(0,Ie.jsx)(Su,{url:"".concat(e.highlightsBaseURL,"/").concat(i.highlight.shortId),title:e.articleTitle,author:e.articleAuthor,highlight:i.highlight,onOpenChange:function(){a({highlightModalAction:"none"})}}):e.highlightBarDisabled||!p&&!v?e.showHighlightsModal?(0,Ie.jsx)(Ru,{highlights:n,onOpenChange:function(){return e.setShowHighlightsModal(!1)},deleteHighlightAction:function(e){w(e)}}):(0,Ie.jsx)(Ie.Fragment,{}):(0,Ie.jsx)(Ie.Fragment,{children:(0,Ie.jsx)(Ji,{anchorCoordinates:{pageX:null!==(C=null!==(P=null===(L=f.current)||void 0===L?void 0:L.pageX)&&void 0!==P?P:null==v?void 0:v.focusPosition.x)&&void 0!==C?C:0,pageY:null!==(T=null!==(j=null===(R=f.current)||void 0===R?void 0:R.pageY)&&void 0!==j?j:null==v?void 0:v.focusPosition.y)&&void 0!==T?T:0},isNewHighlight:!!v,handleButtonClick:A,isSharedToFeed:null!=(null==p?void 0:p.sharedAt),isTouchscreenDevice:!0})})}function Hu(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function Vu(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Hu(i,r,o,a,l,"next",e)}function l(e){Hu(i,r,o,a,l,"throw",e)}a(void 0)}))}}function qu(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 Xu(e){var t,n,r=(t=(0,s.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 qu(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)?qu(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],a=(0,s.useCallback)((function(e){i(e.target.value)}),[i]),l=(0,s.useCallback)(Vu(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,Ie.jsxs)(il,{defaultOpen:!0,onOpenChange:e.onOpenChange,children:[(0,Ie.jsx)(ll,{}),(0,Ie.jsxs)(ul,{onPointerDownOutside:function(e){e.preventDefault()},css:{overflow:"auto"},children:[(0,Ie.jsxs)(De,{css:{display:"grid",gridTemplateColumns:"1fr auto 1fr",px:"$2"},children:[(0,Ie.jsx)(Fi,{style:"ctaSecondary",onClick:function(){e.onOpenChange(!1)},css:{justifySelf:"start"},children:"Cancel"}),(0,Ie.jsx)($e,{alignment:"center",children:(0,Ie.jsx)(Nn,{children:"Report Issue"})}),(0,Ie.jsx)(Fi,{style:"ctaSecondary",onClick:l,css:{justifySelf:"end"},children:"Submit"})]}),(0,Ie.jsx)(cl,{css:{mt:"$2",width:"95%",p:"$1",minHeight:"$6"},autoFocus:!0,placeholder:"Add any additional comments (optional)",value:o,onChange:a,maxLength:1e3})]})]})}function Ku(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function Yu(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function Gu(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Yu(i,r,o,a,l,"next",e)}function l(e){Yu(i,r,o,a,l,"throw",e)}a(void 0)}))}}function Qu(){return Qu=Gu(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=(0,nt.gql)(Iu||(Iu=Ku(["\n mutation ReportItem($input: ReportItemInput!) {\n reportItem(input: $input) {\n ... on ReportItemResult {\n message\n }\n }\n }\n "]))),e.prev=1,e.next=4,dn(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]])}))),Qu.apply(this,arguments)}var Zu=o(5632);function Ju(e){var t,n,r=(0,Zu.useRouter)(),o=(t=e.color,[(n=parseInt(t.substring(1),16))>>16&255,n>>8&255,255&n]);return(0,Ie.jsx)(Fi,{style:"plainIcon",onClick:function(t){r.push('/home?q=label:"'.concat(e.text,'"')),t.stopPropagation()},children:(0,Ie.jsx)(Ne,{css:{display:"inline-table",margin:"4px",borderRadius:"32px",color:e.color,fontSize:"12px",fontWeight:"bold",padding:"2px 5px 2px 5px",whiteSpace:"nowrap",cursor:"pointer",backgroundClip:"padding-box",border:"1px solid rgba(".concat(o[0],", ").concat(o[1],", ").concat(o[2],", 0.7)"),backgroundColor:"rgba(".concat(o[0],", ").concat(o[1],", ").concat(o[2],", 0.08)")},children:e.text})})}function ec(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function tc(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){ec(i,r,o,a,l,"next",e)}function l(e){ec(i,r,o,a,l,"throw",e)}a(void 0)}))}}function nc(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 rc(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)?rc(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 rc(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 oc(e){var t,n,o,i,a,l,u,c,f,d=nc((0,s.useState)(!1),2),p=d[0],h=d[1],g=nc((0,s.useState)(null!==(t=e.fontSize)&&void 0!==t?t:20),2),m=g[0],v=g[1],y=nc((0,s.useState)(null),2),b=y[0],w=y[1],x=nc((0,s.useState)(null),2),E=x[0],k=x[1],S=nc((0,s.useState)(null),2),_=S[0],O=S[1],C=nc((0,s.useState)(null!==(n=e.highContrastFont)&&void 0!==n&&n),2),P=C[0],L=C[1],T=(0,s.useRef)(window.location.hash?window.location.hash.split("#")[1]:null),j=function(){var e=tc(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(m===t){e.next=4;break}return v(t),e.next=4,Sn({fontSize:t});case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();(0,s.useEffect)((function(){var t;j(null!==(t=e.fontSize)&&void 0!==t?t:20)}),[e.fontSize]),(0,s.useEffect)((function(){var t=function(e){var t,n,r=null!==(t=null!==(n=e.lineHeight)&&void 0!==n?n:E)&&void 0!==t?t:150;r>=100&&r<=300&&k(r)},n=function(e){var t,n,r=null!==(t=null!==(n=e.maxWidthPercentage)&&void 0!==n?n:b)&&void 0!==t?t:100;r>=40&&r<=100&&w(r)},o=function(t){var n,r,o,i=null!==(n=null!==(r=null!==(o=t.fontFamily)&&void 0!==o?o:_)&&void 0!==r?r:e.fontFamily)&&void 0!==n?n:"inter";console.log("setting font fam to",t.fontFamily),O(i)},i=function(){var e=tc(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n="high"==t.fontContrast,L(n);case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),a=function(){var e=tc(regeneratorRuntime.mark((function e(t){var n,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:(r=null!==(n=t.fontSize)&&void 0!==n?n:18)>=10&&r<=28&&j(r);case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),l=function(e){var t;Pn(null!==(t=e.isDark)&&void 0!==t&&t?r.Dark:r.Light)},s=function(){navigator.share&&navigator.share({title:e.article.title,url:e.article.originalArticleUrl})};return document.addEventListener("updateFontFamily",o),document.addEventListener("updateLineHeight",t),document.addEventListener("updateMaxWidthPercentage",n),document.addEventListener("updateFontSize",a),document.addEventListener("updateColorMode",l),document.addEventListener("handleFontContrastChange",i),document.addEventListener("share",s),function(){document.removeEventListener("updateFontFamily",o),document.removeEventListener("updateLineHeight",t),document.removeEventListener("updateMaxWidthPercentage",n),document.removeEventListener("updateFontSize",a),document.removeEventListener("updateColorMode",l),document.removeEventListener("handleFontContrastChange",i),document.removeEventListener("share",s)}}));var R={fontSize:m,margin:null!==(o=e.margin)&&void 0!==o?o:360,maxWidthPercentage:null!=b?b:e.maxWidthPercentage,lineHeight:null!==(i=null!=E?E:e.lineHeight)&&void 0!==i?i:150,fontFamily:null!==(a=null!=_?_:e.fontFamily)&&void 0!==a?a:"inter",readerFontColor:P?de.colors.readerFontHighContrast.toString():de.colors.readerFont.toString(),readerFontColorTransparent:de.colors.readerFontTransparent.toString(),readerTableHeaderColor:de.colors.readerTableHeader.toString(),readerHeadersColor:de.colors.readerHeader.toString()};return(0,Ie.jsxs)(Ie.Fragment,{children:[(0,Ie.jsxs)(De,{id:"article-container",css:{padding:"16px",maxWidth:"".concat(null!==(l=R.maxWidthPercentage)&&void 0!==l?l:100,"%"),background:e.isAppleAppEmbed?"unset":de.colors.grayBg.toString(),"--text-font-family":R.fontFamily,"--text-font-size":"".concat(R.fontSize,"px"),"--line-height":"".concat(R.lineHeight,"%"),"--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 0px"},"@md":{maxWidth:R.maxWidthPercentage?"".concat(R.maxWidthPercentage,"%"):1024-R.margin}},children:[(0,Ie.jsxs)(Be,{alignment:"start",distribution:"start",children:[(0,Ie.jsx)(Nn,{style:"boldHeadline","data-testid":"article-headline",css:{fontFamily:R.fontFamily},children:e.article.title}),(0,Ie.jsx)(Fn,{rawDisplayDate:null!==(u=e.article.publishedAt)&&void 0!==u?u:e.article.createdAt,author:e.article.author,href:e.article.url}),e.labels?(0,Ie.jsx)(Ne,{css:{pb:"16px",width:"100%","&:empty":{display:"none"}},children:null===(c=e.labels)||void 0===c?void 0:c.map((function(e){return(0,Ie.jsx)(Ju,{text:e.name,color:e.color},e.id)}))}):null]}),(0,Ie.jsx)(Dn,{articleId:e.article.id,content:e.article.content,highlightHref:T,initialAnchorIndex:e.article.readingProgressAnchorIndex,articleMutations:e.articleMutations}),(0,Ie.jsxs)(Fi,{style:"ghost",css:{p:0,my:"$4",color:"$error",fontSize:"$1","&:hover":{opacity:.8}},onClick:function(){return h(!0)},children:["Report issues with this page -",">"]}),(0,Ie.jsx)(De,{css:{height:"100px"}})]}),(0,Ie.jsx)(Wu,{scrollToHighlight:T,highlights:e.article.highlights,articleTitle:e.article.title,articleAuthor:null!==(f=e.article.author)&&void 0!==f?f:"",articleId:e.article.id,isAppleAppEmbed:e.isAppleAppEmbed,highlightsBaseURL:e.highlightsBaseURL,highlightBarDisabled:e.highlightBarDisabled,showHighlightsModal:e.showHighlightsModal,setShowHighlightsModal:e.setShowHighlightsModal,articleMutations:e.articleMutations}),p?(0,Ie.jsx)(Xu,{onCommit:function(t){!function(e){Qu.apply(this,arguments)}({pageId:e.article.id,itemUrl:e.article.url,reportTypes:["CONTENT_DISPLAY"],reportComment:t})},onOpenChange:function(e){return h(e)}}):null]})}var ic=o(3379),ac=o.n(ic),lc=o(7795),sc=o.n(lc),uc=o(569),cc=o.n(uc),fc=o(3565),dc=o.n(fc),pc=o(9216),hc=o.n(pc),gc=o(4589),mc=o.n(gc),vc=o(7420),yc={};yc.styleTagTransform=mc(),yc.setAttributes=dc(),yc.insert=cc().bind(null,"head"),yc.domAPI=sc(),yc.insertStyleElement=hc(),ac()(vc.Z,yc),vc.Z&&vc.Z.locals&&vc.Z.locals;var bc=o(2778),wc={};function xc(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 Ec(t){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?xc(Object(r),!0).forEach((function(n){e(t,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):xc(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}wc.styleTagTransform=mc(),wc.setAttributes=dc(),wc.insert=cc().bind(null,"head"),wc.domAPI=sc(),wc.insertStyleElement=hc(),ac()(bc.Z,wc),bc.Z&&bc.Z.locals&&bc.Z.locals;var kc=function(){var e,n=(e=l().mark((function e(t,n){var r,o,i,a;return l().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===(i=o.messageHandlers.articleAction)||void 0===i?void 0:i.postMessage(Ec({actionID:t},n));case 2:return a=e.sent,console.log("action result",a,a.result),e.abrupt("return",a.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,s,"next",e)}function s(e){t(a,o,i,l,s,"throw",e)}l(void 0)}))});return function(e,t){return n.apply(this,arguments)}}(),Sc=function(){var e,t,n;return function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if("undefined"!=typeof window){var t=window.localStorage.getItem(On);t&&Object.values(r).includes(t)&&(e?Cn(t):Pn(t))}}(!1),(0,Ie.jsx)(Ie.Fragment,{children:(0,Ie.jsx)(De,{css:{overflowY:"auto",height:"100%",width:"100vw"},children:(0,Ie.jsx)(Be,{alignment:"center",distribution:"center",className:"disable-webkit-callout",children:(0,Ie.jsx)(oc,{article:window.omnivoreArticle,labels:window.omnivoreArticle.labels,isAppleAppEmbed:!0,highlightBarDisabled:!window.enableHighlightBar,highlightsBaseURL:"https://example.com",fontSize:null!==(e=window.fontSize)&&void 0!==e?e:18,fontFamily:null!==(t=window.fontFamily)&&void 0!==t?t:"inter",margin:window.margin,maxWidthPercentage:window.maxWidthPercentage,lineHeight:window.lineHeight,highContrastFont:null===(n=window.prefersHighContrastFont)||void 0===n||n,articleMutations:{createHighlightMutation:function(e){return kc("createHighlight",e)},deleteHighlightMutation:function(e){return kc("deleteHighlight",{highlightId:e})},mergeHighlightMutation:function(e){return kc("mergeHighlight",e)},updateHighlightMutation:function(e){return kc("updateHighlight",e)},articleReadingProgressMutation:function(e){return kc("articleReadingProgress",e)}}})})})})};c.render((0,Ie.jsx)(Sc,{}),document.getElementById("root"))})()})();