mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
2 lines
No EOL
541 KiB
JavaScript
2 lines
No EOL
541 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 d(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 f(e){this.map={},e instanceof f?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}f.prototype.append=function(e,t){e=u(e),t=c(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},f.prototype.delete=function(e){delete this.map[u(e)]},f.prototype.get=function(e){return e=u(e),this.has(e)?this.map[e]:null},f.prototype.has=function(e){return this.map.hasOwnProperty(u(e))},f.prototype.set=function(e,t){this.map[u(e)]=c(t)},f.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},f.prototype.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),d(e)},f.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),d(e)},f.prototype.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),d(e)},r&&(f.prototype[Symbol.iterator]=f.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 f(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 f(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 f(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 f(this.headers),url:this.url})},x.error=function(){var e=new x(null,{status:0,statusText:""});return e.type="error",e};var k=[301,302,303,307,308];x.redirect=function(e,t){if(-1===k.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 E(e,n){return new Promise((function(r,i){var a=new b(e,n);if(a.signal&&a.signal.aborted)return i(new t.DOMException("Aborted","AbortError"));var l=new XMLHttpRequest;function s(){l.abort()}l.onload=function(){var e,t,n={status:l.status,statusText:l.statusText,headers:(e=l.getAllResponseHeaders()||"",t=new f,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)}))}E.polyfill=!0,e.fetch||(e.fetch=E,e.Headers=f,e.Request=b,e.Response=x),t.Headers=f,t.Request=b,t.Response=x,t.fetch=E,Object.defineProperty(t,"__esModule",{value:!0})}({})}(r),r.fetch.ponyfill=!0,delete r.fetch.polyfill;var o=r;(t=o.fetch).default=o.fetch,t.fetch=o.fetch,t.Headers=o.Headers,t.Request=o.Request,t.Response=o.Response,e.exports=t},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 d=c[0],f=c[1],p=c[2],h=c[3],g=c[4],m=this.diff_main(d,p,o,i),v=this.diff_main(f,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,d="",f="";s<l.length;){switch(l[s][0]){case 1:c++,f+=l[s][1];break;case n:u++,d+=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(d,f,!1,o),h=p.length-1;h>=0;h--)l.splice(s,0,p[h]);s+=p.length}c=0,u=0,d="",f=""}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),d=new Array(u),f=0;f<u;f++)c[f]=-1,d[f]=-1;c[s+1]=0,d[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,k=(O=w==-b||w!=b&&c[x-1]<c[x+1]?c[x+1]:c[x-1]+1)-w;O<i&&k<a&&e.charAt(O)==r.charAt(k);)O++,k++;if(c[x]=O,O>i)m+=2;else if(k>a)g+=2;else if(h&&(_=s+p-w)>=0&&_<u&&-1!=d[_]&&O>=(S=i-d[_]))return this.diff_bisectSplit_(e,r,O,k,o)}for(var E=-b+v;E<=b-y;E+=2){for(var S,_=s+E,C=(S=E==-b||E!=b&&d[_-1]<d[_+1]?d[_+1]:d[_-1]+1)-E;S<i&&C<a&&e.charAt(i-S-1)==r.charAt(a-C-1);)S++,C++;if(d[_]=S,S>i)y+=2;else if(C>a)v+=2;else if(!h){var O;if((x=s+p-E)>=0&&x<u&&-1!=c[x])if(k=s+(O=c[x])-x,O>=(S=i-S))return this.diff_bisectSplit_(e,r,O,k,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 d=o.diff_commonPrefix(e.substring(n),t.substring(u)),f=o.diff_commonSuffix(e.substring(0,n),t.substring(0,u));c.length<f+d&&(c=t.substring(u-f,u)+t.substring(u,u+d),r=e.substring(0,n-f),i=e.substring(n+d),a=t.substring(0,u-f),l=t.substring(u+d))}return 2*c.length>=e.length?[r,i,a,l,c]:null}var a,l,s,u,c,d=i(n,r,Math.ceil(n.length/4)),f=i(n,r,Math.ceil(n.length/2));return d||f?(a=f?d&&d[4].length>f[4].length?d:f:d,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,d=0;l<e.length;)0==e[l][0]?(o[i++]=l,s=c,u=d,c=0,d=0,a=e[l][1]):(1==e[l][0]?c+=e[l][1].length:d+=e[l][1].length,a&&a.length<=Math.max(s,u)&&a.length<=Math.max(c,d)&&(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,d=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 f=e[l-1][1],p=e[l][1],h=this.diff_commonOverlap_(f,p),g=this.diff_commonOverlap_(p,f);h>=g?(h>=f.length/2||h>=p.length/2)&&(e.splice(l,0,new t.Diff(0,p.substring(0,h))),e[l-1][1]=f.substring(0,f.length-h),e[l+1][1]=p.substring(h),l++):(g>=f.length/2||g>=p.length/2)&&(e.splice(l,0,new t.Diff(0,f.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]=f.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_),d=u&&e.match(t.blanklineEndRegex_),f=c&&n.match(t.blanklineStartRegex_);return d||f?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,d=a,f=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>=f&&(f=p,u=o,c=i,d=a)}e[r-1][1]!=u&&(u?e[r-1][1]=u:(e.splice(r-1,1),r--),e[r][1]=c,d?e[r+1][1]=d:(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,d=!1;l<e.length;)0==e[l][0]?(e[l][1].length<this.Diff_EditCost&&(c||d)?(o[i++]=l,s=c,u=d,a=e[l][1]):(i=0,a=null),c=d=!1):(e[l][0]==n?d=!0:c=!0,a&&(s&&u&&c&&d||a.length<this.Diff_EditCost/2&&s+u+c+d==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=d=!0,i=0):(l=--i>0?o[i-1]:-1,c=d=!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,"&").replace(o,"<").replace(i,">").replace(a,"¶<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 d=e.substring(a,a+=c);"="==l[s].charAt(0)?o[i++]=new t.Diff(0,d):o[i++]=new t.Diff(n,d);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 d,f=t.length+e.length,p=0;p<t.length;p++){for(s=0,u=f;s<u;)i(p,n+u)<=a?s=u:f=u,u=Math.floor((f-s)/2+s);f=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|(d[v+1]|d[v])<<1|1|d[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;d=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,d=0,f=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=d),g){case 1:s.diffs[u++]=a[h],s.length2+=m.length,p=p.substring(0,d)+m+p.substring(d);break;case n:s.length1+=m.length,s.diffs[u++]=a[h],p=p.substring(0,d)+p.substring(d+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,f),l.push(s),s=new t.patch_obj,u=0,f=p,c=d)}1!==g&&(c+=m.length),g!==n&&(d+=m.length)}return u&&(this.patch_addContext_(s,f),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),d=-1;if(c.length>this.Match_MaxBits?-1!=(l=this.match_main(t,c.substring(0,this.Match_MaxBits),u))&&(-1==(d=this.match_main(t,c.substring(c.length-this.Match_MaxBits),u+c.length-this.Match_MaxBits))||l>=d)&&(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==d?t.substring(l,l+c.length):t.substring(l,d+this.Match_MaxBits)))t=t.substring(0,l)+this.diff_text2(e[a].diffs)+t.substring(l+c.length);else{var f=this.diff_main(c,s,!1);if(c.length>this.Match_MaxBits&&this.diff_levenshtein(f)/c.length>this.Patch_DeleteThreshold)i[a]=!1;else{this.diff_cleanupSemanticLossless(f);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(f,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(f,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 d=i.diffs[0][0],f=i.diffs[0][1];1===d?(u.length2+=f.length,l+=f.length,u.diffs.push(i.diffs.shift()),c=!1):d===n&&1==u.diffs.length&&0==u.diffs[0][0]&&f.length>2*r?(u.length1+=f.length,a+=f.length,c=!1,u.diffs.push(new t.Diff(d,f)),i.diffs.shift()):(f=f.substring(0,r-u.length1-this.Patch_Margin),u.length1+=f.length,a+=f.length,0===d?(u.length2+=f.length,l+=f.length):c=!1,u.diffs.push(new t.Diff(d,f)),f==i.diffs[0][1]?i.diffs.shift():i.diffs[0][1]=i.diffs[0][1].substring(f.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 d={},f=0;return s.forEach((function(e){d[++f]=e})),c.append("map",JSON.stringify(d)),f=0,s.forEach((function(e,t){c.append(""+ ++f,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 d=a(n(6279)),f=d,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 f.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?d.default:a,s=o.method,c=void 0===s?"POST":s,f=u(o,["headers","fetch","method"]);return k({url:this.url,query:e,variables:t,headers:r(r({},v(i)),v(n)),operationName:void 0,fetch:l,method:c,fetchOptions:f})},e.prototype.request=function(e,t,n){return l(this,void 0,void 0,(function(){var o,i,a,l,c,f,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?d.default:a,c=o.method,f=void 0===c?"POST":c,p=u(o,["headers","fetch","method"]),h=this.url,g=_(e),m=g.query,y=g.operationName,[4,k({url:h,query:m,variables:t,headers:r(r({},v(i)),v(n)),operationName:y,fetch:l,method:f,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,f,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?d.default:i,l=n.method,c=void 0===l?"POST":l,f=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,k({url:p,query:h,variables:g,headers:r(r({},v(o)),v(t)),operationName:void 0,fetch:a,method:c,fetchOptions:f})];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 k(e){var t=e.url,n=e.query,o=e.variables,i=e.headers,a=e.operationName,u=e.fetch,c=e.method,d=void 0===c?"POST":c,f=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"===d.toUpperCase()?b:w,l=Array.isArray(n),[4,e({url:t,query:n,variables:o,operationName:a,headers:i,fetch:u,fetchOptions:f})];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 E(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=E,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=E,t.gql=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return e.reduce((function(e,n,r){return""+e+n+(r in t?t[r]:"")}),"")}},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+(f(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+(f(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 d(e){return-1!==e.indexOf("\n")}function f(e){return null!=e&&e.some(d)}},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],d=-1,f=[],p=void 0,h=void 0,g=void 0,m=[],v=[],y=e;do{var b=++d===c.length,w=b&&0!==f.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={},k=0,E=Object.keys(p);k<E.length;k++){var S=E[k];x[S]=p[S]}p=x}for(var _=0,C=0;C<f.length;C++){var O=f[C][0],L=f[C][1];u&&(O-=_),u&&null===L?(p.splice(O,1),_++):p[O]=L}}d=r.index,c=r.keys,f=r.edits,u=r.inArray,r=r.prev}else{if(h=g?u?d:c[d]:void 0,null==(p=g?g[h]:y))continue;g&&m.push(h)}var P,j=void 0;if(!Array.isArray(p)){if(!(0,i.isNode)(p))throw new Error("Invalid AST Node: ".concat((0,o.default)(p),"."));var R=s(t,p.kind,b);if(R){if((j=R.call(t,p,h,g,m,v))===l)break;if(!1===j){if(!b){m.pop();continue}}else if(void 0!==j&&(f.push([h,j]),!b)){if(!(0,i.isNode)(j)){m.pop();continue}p=j}}}void 0===j&&w&&f.push([h,p]),b?m.pop():(r={inArray:u,index:d,keys:c,edits:f,prev:r},c=(u=Array.isArray(p))?p:null!==(P=n[p.kind])&&void 0!==P?P:[],d=-1,f=[],g&&v.push(g),g=p)}while(void 0!==r);return 0!==f.length&&(y=f[f.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,d=r.before||e,f=t.replace(/[\?|#].*$/,""),p=t.replace(/^(css|img)!/,"");o=o||0,/(^css!|\.css$)/.test(f)?((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(f)?(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!==d(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,d,f,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,d=e.apply(r,n)}function b(e){return h=e,f=setTimeout(x,t),g?y(e):d}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 k(e);f=setTimeout(x,function(e){var n=t-(e-p);return m?l(n,c-(e-h)):n}(e))}function k(e){return f=void 0,v&&s?y(e):(s=u=void 0,d)}function E(){var e=o(),n=w(e);if(s=arguments,u=this,p=e,n){if(void 0===f)return b(p);if(m)return clearTimeout(f),f=setTimeout(x,t),y(p)}return void 0===f&&(f=setTimeout(x,t)),d}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),E.cancel=function(){void 0!==f&&clearTimeout(f),h=0,s=p=u=f=void 0},E.flush=function(){return void 0===f?d:k(o())},E}},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:d=null,lazyBoundary:v="200px",className:k,quality:S,width:_,height:C,style:O,objectFit:L,objectPosition:P,onLoadingComplete:j,placeholder:R="empty",blurDataURL:T}=e,A=p(e,["src","sizes","unoptimized","priority","loading","lazyRoot","lazyBoundary","className","quality","width","height","style","objectFit","objectPosition","onLoadingComplete","placeholder","blurDataURL"]);const M=i.useContext(u.ImageConfigContext),I=i.useMemo((()=>{const e=h||M||l.imageConfigDefault,t=[...e.deviceSizes,...e.imageSizes].sort(((e,t)=>e-t)),n=e.deviceSizes.sort(((e,t)=>e-t));return f({},e,{allSizes:t,deviceSizes:n})}),[M]);let D=A,F=n?"responsive":"intrinsic";"layout"in D&&(D.layout&&(F=D.layout),delete D.layout);let N=x;if("loader"in D){if(D.loader){const e=D.loader;N=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(T=T||e.blurDataURL,z=e.src,!(F&&"fill"===F||(C=C||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(C),W=w(S);let H=!o&&("lazy"===c||void 0===c);(t.startsWith("data:")||t.startsWith("blob:"))&&(r=!0,H=!1),"undefined"!=typeof window&&g.has(t)&&(H=!1);const[U,V]=i.useState(!1),[q,G,K]=s.useIntersection({rootRef:d,rootMargin:v,disabled:!H}),X=!H||G,Y={boxSizing:"border-box",display:"block",overflow:"hidden",width:"initial",height:"initial",background:"none",opacity:1,border:0,margin:0,padding:0},Z={boxSizing:"border-box",display:"block",width:"initial",height:"initial",background:"none",opacity:1,border:0,margin:0,padding:0};let Q,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:L,objectPosition:P},te=Object.assign({},O,"raw"===F?{}:ee),ne="blur"!==R||U?{}:{filter:"blur(20px)",backgroundSize:L||"cover",backgroundImage:`url("${T}")`,backgroundPosition:P||"0% 0%"};if("fill"===F)Y.display="block",Y.position="absolute",Y.top=0,Y.left=0,Y.bottom=0,Y.right=0;else if(void 0!==$&&void 0!==B){const e=B/$,t=isNaN(e)?"100%":100*e+"%";"responsive"===F?(Y.display="block",Y.position="relative",J=!0,Z.paddingTop=t):"intrinsic"===F?(Y.display="inline-block",Y.position="relative",Y.maxWidth="100%",J=!0,Z.maxWidth="100%",Q=`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"===F&&(Y.display="inline-block",Y.position="relative",Y.width=$,Y.height=B)}let re={src:m,srcSet:void 0,sizes:void 0};X&&(re=b({config:I,src:t,unoptimized:r,layout:F,width:$,quality:W,sizes:n,loader:N}));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(j),ce=i.useRef(t);i.useEffect((()=>{ue.current=j}),[j]),se((()=>{ce.current!==t&&(K(),ce.current=t)}),[K,t]);const de=f({isLazy:H,imgAttributes:re,heightInt:B,widthInt:$,qualityInt:W,layout:F,className:k,imgStyle:te,blurStyle:ne,loading:c,config:I,unoptimized:r,placeholder:R,loader:N,srcString:oe,onLoadingCompleteRef:ue,setBlurComplete:V,setIntersection:q,isVisible:X},D);return i.default.createElement(i.default.Fragment,null,"raw"===F?i.default.createElement(E,Object.assign({},de)):i.default.createElement("span",{style:Y},J?i.default.createElement("span",{style:Z},Q?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:Q}):null):null,i.default.createElement(E,Object.assign({},de))),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 d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(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){d(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 k(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 E=e=>{var{imgAttributes:t,heightInt:n,widthInt:r,qualityInt:o,layout:a,className:l,imgStyle:s,blurStyle:u,isLazy:c,placeholder:d,loading:h,srcString:g,config:m,unoptimized:v,loader:y,onLoadingCompleteRef:w,setBlurComplete:x,setIntersection:E,onLoad:S,onError:_,isVisible:C}=e,O=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({},O,t,"raw"===a?{height:n,width:r}:{},{decoding:"async","data-nimg":a,className:l,style:f({},s,u),ref:i.useCallback((e=>{E(e),(null==e?void 0:e.complete)&&k(e,g,0,d,w,x)}),[E,g,a,d,w,x]),onLoad:e=>{k(e.currentTarget,g,0,d,w,x),S&&S(e)},onError:e=>{"blur"===d&&x(!0),_&&_(e)}})),(c||"blur"===d)&&i.default.createElement("noscript",null,i.default.createElement("img",Object.assign({},O,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:d,children:f,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=f,n&&"string"==typeof r&&(r=o.default.createElement("a",null,r));const k=!1!==p,E=a.useRouter(),{href:S,as:_}=o.default.useMemo((()=>{const[e,t]=i.resolveHref(E,c,!0);return{href:e,as:d?i.resolveHref(E,d):t||e}}),[E,c,d]),C=o.default.useRef(S),O=o.default.useRef(_);let L;n&&(L=o.default.Children.only(r));const P=n?L&&"object"==typeof L&&L.ref:t,[j,R,T]=l.useIntersection({rootMargin:"200px"}),A=o.default.useCallback((e=>{O.current===_&&C.current===S||(T(),O.current=_,C.current=S),j(e),P&&("function"==typeof P?P(e):"object"==typeof P&&(P.current=e))}),[_,P,S,T,j]);o.default.useEffect((()=>{const e=R&&k&&i.isLocalURL(S),t=void 0!==y?y:E&&E.locale,n=s[S+"%"+_+(t?"%"+t:"")];e&&!n&&u(E,S,_,{locale:t})}),[_,S,R,y,k,E]);const M={ref:A,onClick:e=>{n||"function"!=typeof b||b(e),n&&L.props&&"function"==typeof L.props.onClick&&L.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,E,S,_,g,m,v,y)},onMouseEnter:e=>{n||"function"!=typeof w||w(e),n&&L.props&&"function"==typeof L.props.onMouseEnter&&L.props.onMouseEnter(e),i.isLocalURL(S)&&u(E,S,_,{priority:!0})}};if(!n||h||"a"===L.type&&!("href"in L.props)){const e=void 0!==y?y:E&&E.locale,t=E&&E.isLocaleDomain&&i.getDomainLocale(_,e,E&&E.locales,E&&E.domainLocales);M.href=t||i.addBasePath(i.addLocale(_,e,E&&E.defaultLocale))}return n?o.default.cloneElement(L,M):o.default.createElement("a",Object.assign({},x,M),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=d,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 d(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(f(e,n).then((({scripts:e,css:r})=>Promise.all([t.has(n)?[]:Promise.all(e.map(d)),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():f(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 d(){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 f(e,t){return d().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,d.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"],d=["push","replace","reload","back","prefetch","beforePopState"];function f(){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:()=>f()[e]})})),d.forEach((e=>{u[e]=(...t)=>f()[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,d=["onLoad","dangerouslySetInnerHTML","children","onError","strategy"],f=e=>{const{src:t,id:n,onLoad:r=(()=>{}),dangerouslySetInnerHTML:o,children:a="",strategy:l="afterInteractive",onError:s}=e,f=n||t;if(f&&c.has(f))return;if(u.has(t))return c.add(f),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(f),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||d.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((()=>f(e)))})):f(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:d,scripts:p,getIsSsr:h}=r.useContext(o.HeadManagerContext);return r.useEffect((()=>{"afterInteractive"===i?f(e):"lazyOnload"===i&&function(e){"complete"===document.readyState?a.requestIdleCallback((()=>f(e))):window.addEventListener("load",(()=>{a.requestIdleCallback((()=>f(e)))}))}(e)}),[e,i]),"beforeInteractive"!==i&&"worker"!==i||(d?(p[i]=(p[i]||[]).concat([s({src:t,onLoad:n,onError:l},u)]),d(p)):h&&h()?c.add(u.id||t):h&&!h()&&f(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,d]=r.useState(!1),[f,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&&d(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:f,rootMargin:t}))}),[s,f,t,c]),g=r.useCallback((()=>{d(!1)}),[]);return r.useEffect((()=>{if(!i&&!c){const e=o.requestIdleCallback((()=>d(!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="",d=function(e){if(u<n.length&&n[u].type===e)return n[u++].value},f=function(e){var t=d(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=d("CHAR")||d("ESCAPED_CHAR");)t+=e;return t};u<n.length;){var h=d("CHAR"),g=d("NAME"),m=d("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:d("MODIFIER")||""})}else{var y=h||d("ESCAPED_CHAR");if(y)c+=y;else if(c&&(l.push(c),c=""),d("OPEN")){v=p();var b=d("NAME")||"",w=d("PATTERN")||"",x=p();f("CLOSE"),l.push({name:b||(w?s++:""),pattern:b&&!w?a:w,prefix:v,suffix:x,modifier:d("MODIFIER")||""})}else f("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 d=0;d<a.length;d++){var f=o(a[d],i);if(l&&!s[r].test(f))throw new TypeError('Expected all "'+i.name+'" to match "'+i.pattern+'", but got "'+f+'"');n+=i.prefix+f+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(f=o(String(a),i),l&&!s[r].test(f))throw new TypeError('Expected "'+i.name+'" to match "'+i.pattern+'", but got "'+f+'"');n+=i.prefix+f+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,d=n.encode,f=void 0===d?function(e){return e}:d,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(f(y));else{var b=i(f(y.prefix)),w=i(f(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 k=e[e.length-1],E="string"==typeof k?h.indexOf(k[k.length-1])>-1:void 0===k;o||(g+="(?:"+h+"(?="+p+"))?"),E||(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 d=["name","httpEquiv","charSet","itemProp"];function f(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=d.length;e<t;e++){const t=d[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:f,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=C,t.hasBasePath=L,t.addBasePath=P,t.delBasePath=j,t.isLocalURL=R,t.interpolateAs=T,t.resolveHref=M,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),d=n(7482),f=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 k(){return Object.assign(new Error("Route Cancelled"),{cancelled:!0})}function E(e,t){if(!e.startsWith("/")||!t)return e;const n=O(e);return r.normalizePathTrailingSlash(`${t}${n}`)+e.slice(n.length)}function S(e,t){return(e=O(e))===t||e.startsWith(t+"/")}function _(e,t,n){if(window.omnivoreEnv.__NEXT_I18N_SUPPORT&&t&&t!==n){const n=O(e).toLowerCase();if(!S(n,"/"+t.toLowerCase())&&!S(n,"/api"))return E(e,"/"+t)}return e}function C(e,t){if(window.omnivoreEnv.__NEXT_I18N_SUPPORT){const n=O(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 O(e){const t=e.indexOf("?"),n=e.indexOf("#");return(t>-1||n>-1)&&(e=e.substring(0,t>-1?t:n)),e}function L(e){return S(e,x)}function P(e){return E(e,x)}function j(e){return(e=e.slice(x.length)).startsWith("/")||(e=`/${e}`),e}function R(e){if(e.startsWith("/")||e.startsWith("#")||e.startsWith("?"))return!0;try{const t=c.getLocationOrigin(),n=new URL(e,t);return n.origin===t&&L(n.pathname)}catch(e){return!1}}function T(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 M(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(!R(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(d.isDynamicRoute(e.pathname)&&e.searchParams&&n){const n=p.searchParamsToUrlQuery(e.searchParams),{result:r,params:o}=T(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 I(e){const t=c.getLocationOrigin();return e.startsWith(t)?e.substring(t.length):e}function D(e,t,n){let[r,o]=M(e,t,!0);const i=c.getLocationOrigin(),a=r.startsWith(i),l=o&&o.startsWith(i);r=I(r),o=o?I(o):o;const s=a?r:P(r),u=n?I(M(e,n)):o||r;return{url:s,as:l?u:P(u)}}function F(e,t){const n=r.removePathTrailingSlash(l.denormalizePagePath(e));return"/404"===n||"/_error"===n?e:(t.includes(n)||t.some((t=>{if(d.isDynamicRoute(t)&&m.getRouteRegex(t).re.test(n))return e=t,!0})),r.removePathTrailingSlash(e))}const N=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 W{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:k,isRsc:E}){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:P(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&&N&&this._idx!==a){try{sessionStorage.setItem("__next_scroll_"+this._idx,JSON.stringify({x:self.pageXOffset,y:self.pageYOffset}))}catch{}try{const e=sessionStorage.getItem("__next_scroll_"+a);n=JSON.parse(e)}catch{n={x:0,y:0}}}this._idx=a;const{pathname:l}=f.parseRelativeUrl(r);this.isSsr&&o===P(this.asPath)&&l===P(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:!!E}),this.components["/_app"]={Component:a,styleSheets:[]},this.events=W.events,this.pageLoader=i;const _=d.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:!!k,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:P(e),query:t}),c.getURL(),r)}window.addEventListener("popstate",this.onPopState),window.omnivoreEnv.__NEXT_SCROLL_RESTORATION&&N&&(window.history.scrollRestoration="manual")}}reload(){window.location.reload()}back(){window.history.back()}push(e,t,n={}){if(window.omnivoreEnv.__NEXT_SCROLL_RESTORATION&&N)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(!R(t))return window.location.href=t,!1;const p=l._h||l._shouldResolveHref||O(t)===O(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=f.parseRelativeUrl(L(n)?j(n):n),r=s.normalizeLocalePath(e.pathname,this.locales);r.detectedLocale&&(v.locale=r.detectedLocale,e.pathname=P(e.pathname),n=y.formatWithValidation(e),t=P(s.normalizeLocalePath(L(t)?j(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=j(n);window.location.href=`http${i.http?"":"s"}://${i.domain}${P(`${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:k=!1,scroll:E=!0}=l,S={shallow:k};this._inFlightRoute&&this.abortComponentLoad(this._inFlightRoute,S),n=P(_(L(n)?j(n):n,l.locale,this.defaultLocale));const M=C(L(n)?j(n):n,v.locale);this._inFlightRoute=n;let I=b!==v.locale;if(!l._h&&this.onlyAHashChange(M)&&!I)return v.asPath=M,W.events.emit("hashChangeStart",n,S),this.changeState(e,t,n,{...l,scroll:!1}),E&&this.scrollToHash(M),this.set(v,this.components[v.route],null),W.events.emit("hashChangeComplete",n,S),!0;let N,$,B=f.parseRelativeUrl(t),{pathname:H,query:U}=B;try{[N,{__rewrites:$}]=await Promise.all([this.pageLoader.getPageList(),o.getClientBuildManifest(),this.pageLoader.getMiddlewareList()])}catch(e){return window.location.href=n,!1}this.urlIsNew(M)||I||(e="replaceState");let V=n;if(H=H?r.removePathTrailingSlash(j(H)):H,p&&"/_error"!==H)if(l._shouldResolveHref=!0,window.omnivoreEnv.__NEXT_HAS_REWRITES&&n.startsWith("/")){const e=h.default(P(_(M,v.locale)),N,$,U,(e=>F(e,N)),this.locales);if(e.externalDest)return location.href=n,!0;V=e.asPath,e.matchedPage&&e.resolvedHref&&(H=e.resolvedHref,B.pathname=P(H),t=y.formatWithValidation(B))}else B.pathname=F(H,N),B.pathname!==H&&(H=B.pathname,B.pathname=P(H),t=y.formatWithValidation(B));if(!R(n))return window.location.href=n,!1;if(V=C(j(V),v.locale),(!l.shallow||1===l._h)&&(1!==l._h||d.isDynamicRoute(r.removePathTrailingSlash(H)))){const r=await this._preflightRequest({as:n,cache:!0,pages:N,pathname:H,query:U,locale:v.locale,isPreview:v.isPreview});if("rewrite"===r.type)U={...U,...r.parsedAs.query},V=r.asPath,H=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(H);if(d.isDynamicRoute(q)){const e=f.parseRelativeUrl(V),r=e.pathname,o=m.getRouteRegex(q),i=g.getRouteMatcher(o)(r),a=q===r,l=a?T(q,r,U):{};if(!i||a&&!l.result){const e=Object.keys(o.groups).filter((e=>!U[e]));if(e.length>0)throw new Error((a?`The provided \`href\` (${t}) value is missing query values (${e.join(", ")}) to be interpolated properly. `:`The provided \`as\` value (${r}) is incompatible with the \`href\` value (${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(U,l.params)})):Object.assign(U,i)}W.events.emit("routeChangeStart",n,S);try{var G,K;let r=await this.getRouteInfo(q,H,U,n,V,S,v.locale,v.isPreview),{error:o,props:a,__N_SSG:s,__N_SSP:c}=r;const d=r.Component;if(d&&d.unstable_scriptLoader&&[].concat(d.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=f.parseRelativeUrl(t);n.pathname=F(n.pathname,N);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,U,n,V,{shallow:!1},v.locale,v.isPreview)}}W.events.emit("beforeHistoryChange",n,S),this.changeState(e,t,n,l),l._h&&"/_error"===H&&500===(null===(G=self.__NEXT_DATA__.props)||void 0===G||null===(K=G.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 X;const h=(null!==(X=l.scroll)&&void 0!==X?X:!p)?{x:0,y:0}:null;if(await this.set({...v,route:q,pathname:H,query:U,asPath:M,isFallback:!1},r,null!=u?u:h).catch((e=>{if(!e.cancelled)throw e;o=o||e})),o)throw W.events.emit("routeChangeError",o,M,S),o;return window.omnivoreEnv.__NEXT_I18N_SUPPORT&&v.locale&&(document.documentElement.lang=v.locale),W.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 W.events.emit("routeChangeError",e,r,i),window.location.href=r,k();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:d,__N_SSG:f,__N_SSP:p,__N_RSC:h}=c;let g;const m=p&&h;(f||p||h)&&(g=this.pageLoader.getDataHref({href:y.formatWithValidation({pathname:t,query:n}),asPath:o,ssg:f,flight:m,locale:l}));const v=await this._getData((()=>(f||p||h)&&!m?B(g,this.isSsr,!1,f?this.sdc:this.sdr,!!f&&!s):this.getInitialProps(d,{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=f.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=f.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(P(_(t,this.locale)),u,n,i.query,(e=>F(e,u)),this.locales);if(r.externalDest)return;c=C(j(r.asPath),this.locale),r.matchedPage&&r.resolvedHref&&(a=r.resolvedHref,i.pathname=a,e=y.formatWithValidation(i))}else i.pathname=F(i.pathname,u),i.pathname!==a&&(a=i.pathname,i.pathname=a,e=y.formatWithValidation(i));const d=await this._preflightRequest({as:P(t),cache:!0,pages:u,pathname:a,query:l,locale:this.locale,isPreview:this.isPreview});"rewrite"===d.type&&(i.pathname=d.resolvedHref,a=d.resolvedHref,l={...l,...d.parsedAs.query},c=d.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=O(e.as),n=C(L(t)?j(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=f.parseRelativeUrl(s.normalizeLocalePath(L(i.rewrite)?j(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=F(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(L(i.redirect)?j(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&&(W.events.emit("routeChangeError",k(),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=W,W.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:d}=new URL(e,i);if(d!==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,d=l(`${u.pathname}${u.hash||""}`),f=l(u.hostname||""),p=[],h=[];r.pathToRegexp(d,p),r.pathToRegexp(f,h);const g=[];p.forEach((e=>g.push(e.name))),h.forEach((e=>g.push(e.name)));const m=r.compile(d,{validate:!1}),v=r.compile(f,{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,d){let f,p=!1,h=!1,g=l.parseRelativeUrl(e),m=i.removePathTrailingSlash(a.normalizeLocalePath(s.delBasePath(g.pathname),d).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),d).pathname),t.includes(m))return p=!0,f=m,!0;if(f=c(m),f!==e&&t.includes(f))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||(f=c(m),p=t.includes(f),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:f,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)=>{e.exports=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 d=0;d<l.length;d++)r.call(a,l[d])&&(s[l[d]]=a[l[d]])}}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 d=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),f=/^[: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)&&(f.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,k=60103,E=60106,S=60107,_=60108,C=60114,O=60109,L=60110,P=60112,j=60113,R=60120,T=60115,A=60116,M=60121,I=60128,D=60129,F=60130,N=60131;if("function"==typeof Symbol&&Symbol.for){var z=Symbol.for;k=z("react.element"),E=z("react.portal"),S=z("react.fragment"),_=z("react.strict_mode"),C=z("react.profiler"),O=z("react.provider"),L=z("react.context"),P=z("react.forward_ref"),j=z("react.suspense"),R=z("react.suspense_list"),T=z("react.memo"),A=z("react.lazy"),M=z("react.block"),z("react.scope"),I=z("react.opaque.id"),D=z("react.debug_trace_mode"),F=z("react.offscreen"),N=z("react.legacy_hidden")}var $,B="function"==typeof Symbol&&Symbol.iterator;function W(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=B&&e[B]||e["@@iterator"])?e:null}function H(e){if(void 0===$)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);$=t&&t[1]||""}return"\n"+$+e}var U=!1;function V(e,t){if(!e||U)return"";U=!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{U=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?H(e):""}function q(e){switch(e.tag){case 5:return H(e.type);case 16:return H("Lazy");case 13:return H("Suspense");case 19:return H("SuspenseList");case 0:case 2:case 15:return V(e.type,!1);case 11:return V(e.type.render,!1);case 22:return V(e.type._render,!1);case 1:return V(e.type,!0);default:return""}}function G(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case S:return"Fragment";case E:return"Portal";case C:return"Profiler";case _:return"StrictMode";case j:return"Suspense";case R:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case L:return(e.displayName||"Context")+".Consumer";case O:return(e._context.displayName||"Context")+".Provider";case P:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case T:return G(e.type);case M:return G(e._render);case A:t=e._payload,e=e._init;try{return G(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 X(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function Y(e){e._valueTracker||(e._valueTracker=function(e){var t=X(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 Z(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=X(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function Q(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&&Q(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 de="http://www.w3.org/1999/xhtml";function fe(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?fe(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 ke=o({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Ee(e,t){if(t){if(ke[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 Ce=null,Oe=null,Le=null;function Pe(e){if(e=Jr(e)){if("function"!=typeof Ce)throw Error(a(280));var t=e.stateNode;t&&(t=to(t),Ce(e.stateNode,e.type,t))}}function je(e){Oe?Le?Le.push(e):Le=[e]:Oe=e}function Re(){if(Oe){var e=Oe,t=Le;if(Le=Oe=null,Pe(e),t)for(e=0;e<t.length;e++)Pe(t[e])}}function Te(e,t){return e(t)}function Ae(e,t,n,r,o){return e(t,n,r,o)}function Me(){}var Ie=Te,De=!1,Fe=!1;function Ne(){null===Oe&&null===Le||(Me(),Re())}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(d)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 We(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 He=!1,Ue=null,Ve=!1,qe=null,Ge={onError:function(e){He=!0,Ue=e}};function Ke(e,t,n,r,o,i,a,l,s){He=!1,Ue=null,We.apply(Ge,arguments)}function Xe(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!=(1026&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Ye(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&null!==(e=e.alternate)&&(t=e.memoizedState),null!==t)return t.dehydrated}return null}function Ze(e){if(Xe(e)!==e)throw Error(a(188))}function Qe(e){if(e=function(e){var t=e.alternate;if(!t){if(null===(t=Xe(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 Ze(o),e;if(i===r)return Ze(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,dt=[],ft="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=Qr(e.target);if(null!==t){var n=Xe(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Ye(n)))return e.blockedOn=t,void rt(e.lanePriority,(function(){i.unstable_runWithPriority(e.priority,(function(){nt(n)}))}))}else if(3===t&&n.stateNode.hydrate)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function vt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Qt(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=Qt(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<dt.length;n++)(r=dt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<dt.length&&null===(n=dt[0]).blockedOn;)mt(n),null===n.blockedOn&&dt.shift()}function kt(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Et={animationend:kt("Animation","AnimationEnd"),animationiteration:kt("Animation","AnimationIteration"),animationstart:kt("Animation","AnimationStart"),transitionend:kt("Transition","TransitionEnd")},St={},_t={};function Ct(e){if(St[e])return St[e];if(!Et[e])return e;var t,n=Et[e];for(t in n)if(n.hasOwnProperty(t)&&t in _t)return St[e]=n[t];return e}d&&(_t=document.createElement("div").style,"AnimationEvent"in window||(delete Et.animationend.animation,delete Et.animationiteration.animation,delete Et.animationstart.animation),"TransitionEvent"in window||delete Et.transitionend.transition);var Ot=Ct("animationend"),Lt=Ct("animationiteration"),Pt=Ct("animationstart"),jt=Ct("transitionend"),Rt=new Map,Tt=new Map,At=["abort","abort",Ot,"animationEnd",Lt,"animationIteration",Pt,"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",jt,"transitionEnd","waiting","waiting"];function Mt(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)),Tt.set(r,t),Rt.set(r,o),u(o,[r])}}(0,i.unstable_now)();var It=8;function Dt(e){if(0!=(1&e))return It=15,1;if(0!=(2&e))return It=14,2;if(0!=(4&e))return It=13,4;var t=24&e;return 0!==t?(It=12,t):0!=(32&e)?(It=11,32):0!=(t=192&e)?(It=10,t):0!=(256&e)?(It=9,256):0!=(t=3584&e)?(It=8,t):0!=(4096&e)?(It=7,4096):0!=(t=4186112&e)?(It=6,t):0!=(t=62914560&e)?(It=5,t):67108864&e?(It=4,67108864):0!=(134217728&e)?(It=3,134217728):0!=(t=805306368&e)?(It=2,t):0!=(1073741824&e)?(It=1,1073741824):(It=8,e)}function Ft(e,t){var n=e.pendingLanes;if(0===n)return It=0;var r=0,o=0,i=e.expiredLanes,a=e.suspendedLanes,l=e.pingedLanes;if(0!==i)r=i,o=It=15;else if(0!=(i=134217727&n)){var s=i&~a;0!==s?(r=Dt(s),o=It):0!=(l&=i)&&(r=Dt(l),o=It)}else 0!=(i=n&~a)?(r=Dt(i),o=It):0!==l&&(r=Dt(l),o=It);if(0===r)return 0;if(r=n&((0>(r=31-Ht(r))?0:1<<r)<<1)-1,0!==t&&t!==r&&0==(t&a)){if(Dt(t),o<=It)return t;It=o}if(0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-Ht(t)),r|=e[n],t&=~o;return r}function Nt(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 Wt(e,t,n){e.pendingLanes|=t;var r=t-1;e.suspendedLanes&=r,e.pingedLanes&=r,(e=e.eventTimes)[t=31-Ht(t)]=n}var Ht=Math.clz32?Math.clz32:function(e){return 0===e?32:31-(Ut(e)/Vt|0)|0},Ut=Math.log,Vt=Math.LN2,qt=i.unstable_UserBlockingPriority,Gt=i.unstable_runWithPriority,Kt=!0;function Xt(e,t,n,r){De||Me();var o=Zt,i=De;De=!0;try{Ae(o,e,t,n,r)}finally{(De=i)||Ne()}}function Yt(e,t,n,r){Gt(qt,Zt.bind(null,e,t,n,r))}function Zt(e,t,n,r){var o;if(Kt)if((o=0==(4&t))&&0<it.length&&-1<ft.indexOf(e))e=pt(null,e,t,n,r),it.push(e);else{var i=Qt(e,t,n,r);if(null===i)o&&ht(e,r);else{if(o){if(-1<ft.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)}Rr(e,t,r,null,n)}}}function Qt(e,t,n,r){var o=_e(r);if(null!==(o=Qr(o))){var i=Xe(o);if(null===i)o=null;else{var a=i.tag;if(13===a){if(null!==(o=Ye(i)))return o;o=null}else if(3===a){if(i.stateNode.hydrate)return 3===i.tag?i.stateNode.containerInfo:null;o=null}else i!==o&&(o=null)}}return Rr(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,dn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},fn=ln(dn),pn=o({},dn,{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:Cn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==cn&&(cn&&"mousemove"===e.type?(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({},dn,{animationName:0,elapsedTime:0,pseudoElement:0})),wn=ln(o({},dn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}})),xn=ln(o({},dn,{data:0})),kn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},En={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Sn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function _n(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Sn[e])&&!!t[e]}function Cn(){return _n}var On=ln(o({},pn,{key:function(e){if(e.key){var t=kn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=rn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?En[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Cn,charCode:function(e){return"keypress"===e.type?rn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?rn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}})),Ln=ln(o({},gn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Pn=ln(o({},pn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Cn})),jn=ln(o({},dn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Rn=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})),Tn=[9,13,27,32],An=d&&"CompositionEvent"in window,Mn=null;d&&"documentMode"in document&&(Mn=document.documentMode);var In=d&&"TextEvent"in window&&!Mn,Dn=d&&(!An||Mn&&8<Mn&&11>=Mn),Fn=String.fromCharCode(32),Nn=!1;function zn(e,t){switch(e){case"keyup":return-1!==Tn.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,Wn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Hn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Wn[e.type]:"textarea"===t}function Un(e,t,n,r){je(r),0<(t=Ar(t,"onChange")).length&&(n=new fn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Vn=null,qn=null;function Gn(e){_r(e,0)}function Kn(e){if(Z(eo(e)))return e}function Xn(e,t){if("change"===e)return t}var Yn=!1;if(d){var Zn;if(d){var Qn="oninput"in document;if(!Qn){var Jn=document.createElement("div");Jn.setAttribute("oninput","return;"),Qn="function"==typeof Jn.oninput}Zn=Qn}else Zn=!1;Yn=Zn&&(!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(Un(t,qn,e,_e(e)),e=Gn,De)e(t);else{De=!0;try{Te(e,t)}finally{De=!1,Ne()}}}}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 dr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?dr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function fr(){for(var e=window,t=Q();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=Q((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=d&&"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!==Q(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 fn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=gr)))}Mt("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),Mt("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),Mt(At,2);for(var wr="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),xr=0;xr<wr.length;xr++)Tt.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 kr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Er=new Set("cancel close invalid load scroll toggle".split(" ").concat(kr));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),He){if(!He)throw Error(a(198));var c=Ue;He=!1,Ue=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 Cr(e,t){var n=no(t),r=e+"__bubble";n.has(r)||(jr(t,e,2,!1),n.add(r))}var Or="_reactListening"+Math.random().toString(36).slice(2);function Lr(e){e[Or]||(e[Or]=!0,l.forEach((function(t){Er.has(t)||Pr(t,!1,e,null),Pr(t,!0,e,null)})))}function Pr(e,t,n,r){var o=4<arguments.length&&void 0!==arguments[4]?arguments[4]:0,i=n;if("selectionchange"===e&&9!==n.nodeType&&(i=n.ownerDocument),null!==r&&!t&&Er.has(e)){if("scroll"!==e)return;o|=2,i=r}var a=no(i),l=e+"__"+(t?"capture":"bubble");a.has(l)||(t&&(o|=4),jr(i,e,o,t),a.add(l))}function jr(e,t,n,r){var o=Tt.get(t);switch(void 0===o?2:o){case 0:o=Xt;break;case 1:o=Yt;break;default:o=Zt}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 Rr(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=Qr(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(Fe)return e();Fe=!0;try{Ie(e,t,n)}finally{Fe=!1,Ne()}}((function(){var r=i,o=_e(n),a=[];e:{var l=Rt.get(e);if(void 0!==l){var s=fn,u=e;switch(e){case"keypress":if(0===rn(n))break e;case"keydown":case"keyup":s=On;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=Pn;break;case Ot:case Lt:case Pt:s=bn;break;case jt:s=jn;break;case"scroll":s=hn;break;case"wheel":s=Rn;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=Ln}var c=0!=(4&t),d=!c&&"scroll"===e,f=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!==f&&null!=(g=ze(h,f))&&c.push(Tr(h,g,p))),d)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)||!Qr(u)&&!u[Yr])&&(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)?Qr(u):null)&&(u!==(d=Xe(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(s=null,u=r),s!==u)){if(c=mn,g="onMouseLeave",f="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(c=Ln,g="onPointerLeave",f="onPointerEnter",h="pointer"),d=null==s?l:eo(s),p=null==u?l:eo(u),(l=new c(g,h+"leave",s,n,o)).target=d,l.relatedTarget=p,g=null,Qr(o)===r&&((c=new c(f,h+"enter",u,n,o)).target=p,c.relatedTarget=d,g=c),d=g,s&&u)e:{for(f=u,h=0,p=c=s;p;p=Mr(p))h++;for(p=0,g=f;g;g=Mr(g))p++;for(;0<h-p;)c=Mr(c),h--;for(;0<p-h;)f=Mr(f),p--;for(;h--;){if(c===f||null!==f&&c===f.alternate)break e;c=Mr(c),f=Mr(f)}c=null}else c=null;null!==s&&Ir(a,l,s,c,!1),null!==u&&null!==d&&Ir(a,d,u,c,!0)}if("select"===(s=(l=r?eo(r):window).nodeName&&l.nodeName.toLowerCase())||"input"===s&&"file"===l.type)var m=Xn;else if(Hn(l))if(Yn)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))?Un(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":(Hn(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=In?function(e,t){switch(e){case"compositionend":return $n(t);case"keypress":return 32!==t.which?null:(Nn=!0,Fn);case"textInput":return(e=t.data)===Fn&&Nn?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 Tr(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(Tr(e,i,o)),null!=(i=ze(e,t))&&r.push(Tr(e,i,o))),e=e.return}return r}function Mr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Ir(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(Tr(n,s,l)):o||null!=(s=ze(n,i))&&a.push(Tr(n,s,l))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}function Dr(){}var Fr=null,Nr=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,Wr="function"==typeof clearTimeout?clearTimeout:void 0;function Hr(e){(1===e.nodeType||9===e.nodeType&&null!=(e=e.body))&&(e.textContent="")}function Ur(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,Gr=Math.random().toString(36).slice(2),Kr="__reactFiber$"+Gr,Xr="__reactProps$"+Gr,Yr="__reactContainer$"+Gr,Zr="__reactEvents$"+Gr;function Qr(e){var t=e[Kr];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Yr]||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[Yr])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function eo(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(a(33))}function to(e){return e[Xr]||null}function no(e){var t=e[Zr];return void 0===t&&(t=e[Zr]=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,G(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,ko=i.unstable_runWithPriority,Eo=i.unstable_scheduleCallback,So=i.unstable_cancelCallback,_o=i.unstable_shouldYield,Co=i.unstable_requestPaint,Oo=i.unstable_now,Lo=i.unstable_getCurrentPriorityLevel,Po=i.unstable_ImmediatePriority,jo=i.unstable_UserBlockingPriority,Ro=i.unstable_NormalPriority,To=i.unstable_LowPriority,Ao=i.unstable_IdlePriority,Mo={},Io=void 0!==Co?Co:function(){},Do=null,Fo=null,No=!1,zo=Oo(),$o=1e4>zo?Oo:function(){return Oo()-zo};function Bo(){switch(Lo()){case Po:return 99;case jo:return 98;case Ro:return 97;case To:return 96;case Ao:return 95;default:throw Error(a(332))}}function Wo(e){switch(e){case 99:return Po;case 98:return jo;case 97:return Ro;case 96:return To;case 95:return Ao;default:throw Error(a(332))}}function Ho(e,t){return e=Wo(e),ko(e,t)}function Uo(e,t,n){return e=Wo(e),Eo(e,t,n)}function Vo(){if(null!==Fo){var e=Fo;Fo=null,So(e)}qo()}function qo(){if(!No&&null!==Do){No=!0;var e=0;try{var t=Do;Ho(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)),Eo(Po,Vo),t}finally{No=!1}}}var Go=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 Xo=io(null),Yo=null,Zo=null,Qo=null;function Jo(){Qo=Zo=Yo=null}function ei(e){var t=Xo.current;ao(Xo),e.type._context._currentValue=t}function ti(e,t){for(;null!==e;){var n=e.alternate;if((e.childLanes&t)===t){if(null===n||(n.childLanes&t)===t)break;n.childLanes|=t}else e.childLanes|=t,null!==n&&(n.childLanes|=t);e=e.return}}function ni(e,t){Yo=e,Qo=Zo=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(Aa=!0),e.firstContext=null)}function ri(e,t){if(Qo!==e&&!1!==t&&0!==t)if("number"==typeof t&&1073741823!==t||(Qo=e,t=1073741823),t={context:e,observedBits:t,next:null},null===Zo){if(null===Yo)throw Error(a(308));Zo=t,Yo.dependencies={lanes:0,firstContext:t,responders:null}}else Zo=Zo.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 d=e.alternate;if(null!==d){var f=(d=d.updateQueue).lastBaseUpdate;f!==l&&(null===f?d.firstBaseUpdate=c:f.next=c,d.lastBaseUpdate=u)}}if(null!==a){for(f=i.baseState,l=0,d=c=u=null;;){s=a.lane;var p=a.eventTime;if((r&s)===s){null!==d&&(d=d.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)){f=h.call(p,f,s);break e}f=h;break e;case 3:h.flags=-4097&h.flags|64;case 0:if(null==(s="function"==typeof(h=g.payload)?h.call(p,f,s):h))break e;f=o({},f,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===d?(c=d=p,u=f):d=d.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===d&&(u=f),i.baseState=u,i.firstBaseUpdate=c,i.lastBaseUpdate=d,Il|=l,e.lanes=l,e.memoizedState=f}}function di(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 fi=(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)&&Xe(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=fi,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===fi&&(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 ki(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=Us(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 d(e,t,n,r,i){return null===t||7!==t.tag?((t=Ws(n,e.mode,r,i)).return=e,t):((t=o(t,n)).return=e,t)}function f(e,t,n){if("string"==typeof t||"number"==typeof t)return(t=Us(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case k:return(n=Bs(t.type,t.key,t.props,null,e.mode,n)).ref=wi(e,null,t),n.return=e,n;case E:return(t=Vs(t,e.mode,n)).return=e,t}if(bi(t)||W(t))return(t=Ws(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 k:return n.key===o?n.type===S?d(e,t,n.props.children,r,o):u(e,t,n,r):null;case E:return n.key===o?c(e,t,n,r):null}if(bi(n)||W(n))return null!==o?null:d(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 k:return e=e.get(null===r.key?n:r.key)||null,r.type===S?d(t,e,r.props.children,o,r.key):u(t,e,r,o);case E:return c(t,e=e.get(null===r.key?n:r.key)||null,r,o)}if(bi(r)||W(r))return d(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,d=a,g=a=0,m=null;null!==d&&g<l.length;g++){d.index>g?(m=d,d=null):m=d.sibling;var v=p(o,d,l[g],s);if(null===v){null===d&&(d=m);break}e&&d&&null===v.alternate&&t(o,d),a=i(v,a,g),null===c?u=v:c.sibling=v,c=v,d=m}if(g===l.length)return n(o,d),u;if(null===d){for(;g<l.length;g++)null!==(d=f(o,l[g],s))&&(a=i(d,a,g),null===c?u=d:c.sibling=d,c=d);return u}for(d=r(o,d);g<l.length;g++)null!==(m=h(d,o,g,l[g],s))&&(e&&null!==m.alternate&&d.delete(null===m.key?g:m.key),a=i(m,a,g),null===c?u=m:c.sibling=m,c=m);return e&&d.forEach((function(e){return t(o,e)})),u}function m(o,l,s,u){var c=W(s);if("function"!=typeof c)throw Error(a(150));if(null==(s=c.call(s)))throw Error(a(151));for(var d=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===d?c=b:d.sibling=b,d=b,g=v}if(y.done)return n(o,g),c;if(null===g){for(;!y.done;m++,y=s.next())null!==(y=f(o,y.value,u))&&(l=i(y,l,m),null===d?c=y:d.sibling=y,d=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===d?c=y:d.sibling=y,d=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 k: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=Ws(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 E: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=Us(i,e.mode,s)).return=e,e=r),l(e);if(bi(i))return g(e,r,i,s);if(W(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,G(e.type)||"Component"))}return n(e,r)}}var Ei=ki(!0),Si=ki(!1),_i={},Ci=io(_i),Oi=io(_i),Li=io(_i);function Pi(e){if(e===_i)throw Error(a(174));return e}function ji(e,t){switch(lo(Li,t),lo(Oi,e),lo(Ci,_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(Ci),lo(Ci,t)}function Ri(){ao(Ci),ao(Oi),ao(Li)}function Ti(e){Pi(Li.current);var t=Pi(Ci.current),n=pe(t,e.type);t!==n&&(lo(Oi,e),lo(Ci,n))}function Ai(e){Oi.current===e&&(ao(Ci),ao(Oi))}var Mi=io(0);function Ii(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,Fi=null,Ni=!1;function zi(e,t){var n=Ns(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(Ni){var t=Fi;if(t){var n=t;if(!$i(e,t)){if(!(t=Ur(n.nextSibling))||!$i(e,t))return e.flags=-1025&e.flags|2,Ni=!1,void(Di=e);zi(Di,n)}Di=e,Fi=Ur(t.firstChild)}else e.flags=-1025&e.flags|2,Ni=!1,Di=e}}function Wi(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Di=e}function Hi(e){if(e!==Di)return!1;if(!Ni)return Wi(e),Ni=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!$r(t,e.memoizedProps))for(t=Fi;t;)zi(e,t),t=Ur(t.nextSibling);if(Wi(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){Fi=Ur(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}Fi=null}}else Fi=Di?Ur(e.stateNode.nextSibling):null;return!0}function Ui(){Fi=Di=null,Ni=!1}var Vi=[];function qi(){for(var e=0;e<Vi.length;e++)Vi[e]._workInProgressVersionPrimary=null;Vi.length=0}var Gi=x.ReactCurrentDispatcher,Ki=x.ReactCurrentBatchConfig,Xi=0,Yi=null,Zi=null,Qi=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(Xi=i,Yi=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Gi.current=null===e||null===e.memoizedState?Pa:ja,e=n(r,o),ea){i=0;do{if(ea=!1,!(25>i))throw Error(a(301));i+=1,Qi=Zi=null,t.updateQueue=null,Gi.current=Ra,e=n(r,o)}while(ea)}if(Gi.current=La,t=null!==Zi&&null!==Zi.next,Xi=0,Qi=Zi=Yi=null,Ji=!1,t)throw Error(a(300));return e}function oa(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Qi?Yi.memoizedState=Qi=e:Qi=Qi.next=e,Qi}function ia(){if(null===Zi){var e=Yi.alternate;e=null!==e?e.memoizedState:null}else e=Zi.next;var t=null===Qi?Yi.memoizedState:Qi.next;if(null!==t)Qi=t,Zi=e;else{if(null===e)throw Error(a(310));e={memoizedState:(Zi=e).memoizedState,baseState:Zi.baseState,baseQueue:Zi.baseQueue,queue:Zi.queue,next:null},null===Qi?Yi.memoizedState=Qi=e:Qi=Qi.next=e}return Qi}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=Zi,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((Xi&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 d={lane:c,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null};null===s?(l=s=d,i=r):s=s.next=d,Yi.lanes|=c,Il|=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=(Xi&e)===e)&&(t._workInProgressVersionPrimary=r,Vi.push(t))),e)return n(t._source);throw Vi.push(t),Error(a(350))}function ca(e,t,n,r){var o=Ol;if(null===o)throw Error(a(349));var i=t._getVersion,l=i(t._source),s=Gi.current,u=s.useState((function(){return ua(o,t,n)})),c=u[1],d=u[0];u=Qi;var f=e.memoizedState,p=f.refs,h=p.getSnapshot,g=f.source;f=f.subscribe;var m=Yi;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(d,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-Ht(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(f,r)||((e={pending:null,dispatch:null,lastRenderedReducer:aa,lastRenderedState:d}).dispatch=c=Oa.bind(null,Yi,e),u.queue=e,u.baseQueue=null,d=ua(o,t,n),u.memoizedState=u.baseState=d),d}function da(e,t,n){return ca(ia(),e,t,n)}function fa(e){var t=oa();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:aa,lastRenderedState:e}).dispatch=Oa.bind(null,Yi,e),[t.memoizedState,e]}function pa(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=Yi.updateQueue)?(t={lastEffect:null},Yi.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function ha(e){return e={current:e},oa().memoizedState=e}function ga(){return ia().memoizedState}function ma(e,t,n,r){var o=oa();Yi.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!==Zi){var a=Zi.memoizedState;if(i=a.destroy,null!==r&&na(r,a.deps))return void pa(t,n,i,r)}Yi.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 ka(e,t,n){return n=null!=n?n.concat([e]):null,va(4,2,xa.bind(null,t,e),n)}function Ea(){}function Sa(e,t){var n=ia();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&na(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function _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 Ca(e,t){var n=Bo();Ho(98>n?98:n,(function(){e(!0)})),Ho(97<n?97:n,(function(){var n=Ki.transition;Ki.transition=1;try{e(!1),t()}finally{Ki.transition=n}}))}function Oa(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===Yi||null!==a&&a===Yi)ea=Ji=!0;else{if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=t.lastRenderedReducer))try{var l=t.lastRenderedState,s=a(l,n);if(i.eagerReducer=a,i.eagerState=s,ar(s,l))return}catch(e){}ss(e,o,r)}}var La={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},Pa={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=Oa.bind(null,Yi,e),[r.memoizedState,e]},useRef:ha,useState:fa,useDebugValue:Ea,useDeferredValue:function(e){var t=fa(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=fa(!1),t=e[0];return ha(e=Ca.bind(null,e[1])),[e,t]},useMutableSource:function(e,t,n){var r=oa();return r.memoizedState={refs:{getSnapshot:t,setSnapshot:null},source:e,subscribe:n},ca(r,e,t,n)},useOpaqueIdentifier:function(){if(Ni){var e=!1,t=function(e){return{$$typeof:I,toString:e,valueOf:e}}((function(){throw e||(e=!0,n("r:"+(qr++).toString(36))),Error(a(355))})),n=fa(t)[1];return 0==(2&Yi.mode)&&(Yi.flags|=516,pa(5,(function(){n("r:"+(qr++).toString(36))}),void 0,null)),t}return fa(t="r:"+(qr++).toString(36)),t},unstable_isNewReconciler:!1},ja={readContext:ri,useCallback:Sa,useContext:ri,useEffect:ba,useImperativeHandle:ka,useLayoutEffect:wa,useMemo:_a,useReducer:la,useRef:ga,useState:function(){return la(aa)},useDebugValue:Ea,useDeferredValue:function(e){var t=la(aa),n=t[0],r=t[1];return ba((function(){var t=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:da,useOpaqueIdentifier:function(){return la(aa)[0]},unstable_isNewReconciler:!1},Ra={readContext:ri,useCallback:Sa,useContext:ri,useEffect:ba,useImperativeHandle:ka,useLayoutEffect:wa,useMemo:_a,useReducer:sa,useRef:ga,useState:function(){return sa(aa)},useDebugValue:Ea,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:da,useOpaqueIdentifier:function(){return sa(aa)[0]},unstable_isNewReconciler:!1},Ta=x.ReactCurrentOwner,Aa=!1;function Ma(e,t,n,r){t.child=null===e?Si(t,null,n,r):Ei(t,e.child,n,r)}function Ia(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,Ma(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,Fa(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 Fa(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 Na(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 Ma(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,Ma(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,d="function"==typeof c||"function"==typeof a.getSnapshotBeforeUpdate;d||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(l!==r||s!==u)&&vi(t,a,r,u),oi=!1;var f=t.memoizedState;a.state=f,ci(t,r,a,o),s=t.memoizedState,l!==r||f!==s||co.current||oi?("function"==typeof c&&(pi(t,n,c,r),s=t.memoizedState),(l=oi||gi(t,n,l,r,f,s,u))?(d||"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,d=t.pendingProps,f=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!==d||f!==s)&&vi(t,a,r,s),oi=!1,f=t.memoizedState,a.state=f,ci(t,r,a,o);var h=t.memoizedState;l!==d||f!==h||co.current||oi?("function"==typeof p&&(pi(t,n,p,r),h=t.memoizedState),(u=oi||gi(t,n,u,r,f,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&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&f===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&&f===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=256),r=!1)}return Wa(e,t,n,r,i,o)}function Wa(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,Ta.current=t;var l=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=Ei(t,e.child,null,i),t.child=Ei(t,null,l,i)):Ma(e,t,l,i),t.memoizedState=r.state,o&&bo(t,n,!0),t.child}function Ha(e){var t=e.stateNode;t.pendingContext?mo(0,t.pendingContext,t.pendingContext!==t.context):t.context&&mo(0,t.context,!1),ji(e,t.containerInfo)}var Ua,Va,qa,Ga={dehydrated:null,retryLane:0};function Ka(e,t,n){var r,o=t.pendingProps,i=Mi.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(Mi,1&i),null===e?(void 0!==o.fallback&&Bi(t),e=o.children,i=o.fallback,a?(e=Xa(t,e,i,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Ga,e):"number"==typeof o.unstable_expectedLoadTime?(e=Xa(t,e,i,n),t.child.memoizedState={baseLanes:n},t.memoizedState=Ga,t.lanes=33554432,e):((n=Hs({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=Ws(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=Ga,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 Xa(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=Hs(t,o,0,null),n=Ws(n,o,r,null),i.return=e,n.return=e,i.sibling=n,e.child=i,n}function Ya(e,t){e.lanes|=t;var n=e.alternate;null!==n&&(n.lanes|=t),ti(e.return,t)}function Za(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 Qa(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(Ma(e,t,r.children,n),0!=(2&(r=Mi.current)))r=1&r|2,t.flags|=64;else{if(null!==e&&0!=(64&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Ya(e,n);else if(19===e.tag)Ya(e,n);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(lo(Mi,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===Ii(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Za(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===Ii(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Za(t,!0,n,null,i,t.lastEffect);break;case"together":Za(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),Il|=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(!Ni)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 Ri(),ao(co),ao(uo),qi(),(r=t.stateNode).pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(Hi(t)?t.flags|=4:r.hydrate||(t.flags|=256)),null;case 5:Ai(t);var i=Pi(Li.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=Pi(Ci.current),Hi(t)){r=t.stateNode,n=t.type;var l=t.memoizedProps;switch(r[Kr]=t,r[Xr]=l,n){case"dialog":Cr("cancel",r),Cr("close",r);break;case"iframe":case"object":case"embed":Cr("load",r);break;case"video":case"audio":for(e=0;e<kr.length;e++)Cr(kr[e],r);break;case"source":Cr("error",r);break;case"img":case"image":case"link":Cr("error",r),Cr("load",r);break;case"details":Cr("toggle",r);break;case"input":ee(r,l),Cr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!l.multiple},Cr("invalid",r);break;case"textarea":se(r,l),Cr("invalid",r)}for(var u in Ee(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&&Cr("scroll",r));switch(n){case"input":Y(r),re(r,l,!0);break;case"textarea":Y(r),ce(r);break;case"select":case"option":break;default:"function"==typeof l.onClick&&(r.onclick=Dr)}r=e,t.updateQueue=r,null!==r&&(t.flags|=4)}else{switch(u=9===i.nodeType?i:i.ownerDocument,e===de&&(e=fe(n)),e===de?"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[Xr]=r,Ua(e,t),t.stateNode=e,u=Se(n,r),n){case"dialog":Cr("cancel",e),Cr("close",e),i=r;break;case"iframe":case"object":case"embed":Cr("load",e),i=r;break;case"video":case"audio":for(i=0;i<kr.length;i++)Cr(kr[i],e);i=r;break;case"source":Cr("error",e),i=r;break;case"img":case"image":case"link":Cr("error",e),Cr("load",e),i=r;break;case"details":Cr("toggle",e),i=r;break;case"input":ee(e,r),i=J(e,r),Cr("invalid",e);break;case"option":i=ie(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=o({},r,{value:void 0}),Cr("invalid",e);break;case"textarea":se(e,r),i=le(e,r),Cr("invalid",e);break;default:i=r}Ee(n,i);var c=i;for(l in c)if(c.hasOwnProperty(l)){var d=c[l];"style"===l?xe(e,d):"dangerouslySetInnerHTML"===l?null!=(d=d?d.__html:void 0)&&me(e,d):"children"===l?"string"==typeof d?("textarea"!==n||""!==d)&&ve(e,d):"number"==typeof d&&ve(e,""+d):"suppressContentEditableWarning"!==l&&"suppressHydrationWarning"!==l&&"autoFocus"!==l&&(s.hasOwnProperty(l)?null!=d&&"onScroll"===l&&Cr("scroll",e):null!=d&&w(e,l,d,u))}switch(n){case"input":Y(e),re(e,r,!1);break;case"textarea":Y(e),ce(e);break;case"option":null!=r.value&&e.setAttribute("value",""+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=Pi(Li.current),Pi(Ci.current),Hi(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(Mi),r=t.memoizedState,0!=(64&t.flags)?(t.lanes=n,t):(r=null!==r,n=!1,null===e?void 0!==t.memoizedProps.fallback&&Hi(t):n=null!==e.memoizedState,r&&!n&&0!=(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!=(1&Mi.current)?0===Tl&&(Tl=3):(0!==Tl&&3!==Tl||(Tl=4),null===Ol||0==(134217727&Il)&&0==(134217727&Dl)||fs(Ol,Pl))),(r||n)&&(t.flags|=4),null);case 4:return Ri(),null===e&&Lr(t.stateNode.containerInfo),null;case 10:return ei(t),null;case 19:if(ao(Mi),null===(r=t.memoizedState))return null;if(l=0!=(64&t.flags),null===(u=r.rendering))if(l)el(r,!1);else{if(0!==Tl||null!==e&&0!=(64&e.flags))for(e=t.child;null!==e;){if(null!==(u=Ii(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(Mi,1&Mi.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=Ii(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&&!Ni)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=Mi.current,lo(Mi,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(Ri(),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(Mi),4096&(t=e.flags)?(e.flags=-4097&t|64,e):null;case 19:return ao(Mi),null;case 4:return Ri(),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}))}}Ua=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,Pi(Ci.current);var a,l=null;switch(n){case"input":i=J(e,i),r=J(e,r),l=[];break;case"option":i=ie(e,i),r=ie(e,r),l=[];break;case"select":i=o({},i,{value:void 0}),r=o({},r,{value:void 0}),l=[];break;case"textarea":i=le(e,i),r=le(e,r),l=[];break;default:"function"!=typeof i.onClick&&"function"==typeof r.onClick&&(e.onclick=Dr)}for(d in Ee(n,r),n=null,i)if(!r.hasOwnProperty(d)&&i.hasOwnProperty(d)&&null!=i[d])if("style"===d){var u=i[d];for(a in u)u.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else"dangerouslySetInnerHTML"!==d&&"children"!==d&&"suppressContentEditableWarning"!==d&&"suppressHydrationWarning"!==d&&"autoFocus"!==d&&(s.hasOwnProperty(d)?l||(l=[]):(l=l||[]).push(d,null));for(d in r){var c=r[d];if(u=null!=i?i[d]:void 0,r.hasOwnProperty(d)&&c!==u&&(null!=c||null!=u))if("style"===d)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(d,n)),n=c;else"dangerouslySetInnerHTML"===d?(c=c?c.__html:void 0,u=u?u.__html:void 0,null!=c&&u!==c&&(l=l||[]).push(d,c)):"children"===d?"string"!=typeof c&&"number"!=typeof c||(l=l||[]).push(d,""+c):"suppressContentEditableWarning"!==d&&"suppressHydrationWarning"!==d&&(s.hasOwnProperty(d)?(null!=c&&"onScroll"===d&&Cr("scroll",e),l||u===c||(l=[])):"object"==typeof c&&null!==c&&c.$$typeof===I?c.toString():(l=l||[]).push(d,c))}n&&(l=l||[]).push("style",n);var d=l;(t.updateQueue=d)&&(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(){Ul||(Ul=!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){Ms(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&&Hr(t.stateNode.containerInfo))}throw Error(a(163))}function dl(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)&&(Rs(n,e),js(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)&&di(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}di(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 fl(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))Rs(t,n);else{r=t;try{o()}catch(e){Ms(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){Ms(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[Xr]=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(),fl(t.child,!0)),void xl(t);case 19:return void xl(t);case 23:case 24:return void fl(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 kl(e,t){return null!==e&&(null===(e=e.memoizedState)||null!==e.dehydrated)&&null!==(t=t.memoizedState)&&null===t.dehydrated}var El=Math.ceil,Sl=x.ReactCurrentDispatcher,_l=x.ReactCurrentOwner,Cl=0,Ol=null,Ll=null,Pl=0,jl=0,Rl=io(0),Tl=0,Al=null,Ml=0,Il=0,Dl=0,Fl=0,Nl=null,zl=0,$l=1/0;function Bl(){$l=$o()+500}var Wl,Hl=null,Ul=!1,Vl=null,ql=null,Gl=!1,Kl=null,Xl=90,Yl=[],Zl=[],Ql=null,Jl=0,es=null,ts=-1,ns=0,rs=0,os=null,is=!1;function as(){return 0!=(48&Cl)?$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=Ml),0!==Go.transition){0!==rs&&(rs=null!==Nl?Nl.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&Cl)&&98===e?12:e=function(e){switch(e){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}(e),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;Wt(e,t,n),e===Ol&&(Dl|=t,4===Tl&&fs(e,Pl));var r=Bo();1===t?0!=(8&Cl)&&0==(48&Cl)?ps(e):(cs(e,n),0===Cl&&(Bl(),Vo())):(0==(4&Cl)||98!==r&&99!==r||(null===Ql?Ql=new Set([e]):Ql.add(e)),cs(e,n)),Nl=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-Ht(l),u=1<<s,c=i[s];if(-1===c){if(0==(u&r)||0!=(u&o)){c=t,Dt(u);var d=It;i[s]=10<=d?c+250:6<=d?c+5e3:-1}}else c<=t&&(e.expiredLanes|=u);l&=~u}if(r=Ft(e,e===Ol?Pl:0),t=It,0===r)null!==n&&(n!==Mo&&So(n),e.callbackNode=null,e.callbackPriority=0);else{if(null!==n){if(e.callbackPriority===t)return;n!==Mo&&So(n)}15===t?(n=ps.bind(null,e),null===Do?(Do=[n],Fo=Eo(Po,qo)):Do.push(n),n=Mo):14===t?n=Uo(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=Uo(n,ds.bind(null,e))),e.callbackPriority=t,e.callbackNode=n}}function ds(e){if(ts=-1,rs=ns=0,0!=(48&Cl))throw Error(a(327));var t=e.callbackNode;if(Ps()&&e.callbackNode!==t)return null;var n=Ft(e,e===Ol?Pl:0);if(0===n)return null;var r=n,o=Cl;Cl|=16;var i=ws();for(Ol===e&&Pl===r||(Bl(),ys(e,r));;)try{Es();break}catch(t){bs(e,t)}if(Jo(),Sl.current=i,Cl=o,null!==Ll?r=0:(Ol=null,Pl=0,r=Tl),0!=(Ml&Dl))ys(e,0);else if(0!==r){if(2===r&&(Cl|=64,e.hydrate&&(e.hydrate=!1,Hr(e.containerInfo)),0!==(n=Nt(e))&&(r=xs(e,n))),1===r)throw t=Al,ys(e,0),fs(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:Cs(e);break;case 3:if(fs(e,n),(62914560&n)===n&&10<(r=zl+500-$o())){if(0!==Ft(e,0))break;if(((o=e.suspendedLanes)&n)!==n){as(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=Br(Cs.bind(null,e),r);break}Cs(e);break;case 4:if(fs(e,n),(4186112&n)===n)break;for(r=e.eventTimes,o=-1;0<n;){var l=31-Ht(n);i=1<<l,(l=r[l])>o&&(o=l),n&=~i}if(n=o,10<(n=(120>(n=$o()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*El(n/1960))-n)){e.timeoutHandle=Br(Cs.bind(null,e),n);break}Cs(e);break;default:throw Error(a(329))}}return cs(e,$o()),e.callbackNode===t?ds.bind(null,e):null}function fs(e,t){for(t&=~Fl,t&=~Dl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Ht(t),r=1<<n;e[n]=-1,t&=~r}}function ps(e){if(0!=(48&Cl))throw Error(a(327));if(Ps(),e===Ol&&0!=(e.expiredLanes&Pl)){var t=Pl,n=xs(e,t);0!=(Ml&Dl)&&(n=xs(e,t=Ft(e,t)))}else n=xs(e,t=Ft(e,0));if(0!==e.tag&&2===n&&(Cl|=64,e.hydrate&&(e.hydrate=!1,Hr(e.containerInfo)),0!==(t=Nt(e))&&(n=xs(e,t))),1===n)throw n=Al,ys(e,0),fs(e,t),cs(e,$o()),n;return e.finishedWork=e.current.alternate,e.finishedLanes=t,Cs(e),cs(e,$o()),null}function hs(e,t){var n=Cl;Cl|=1;try{return e(t)}finally{0===(Cl=n)&&(Bl(),Vo())}}function gs(e,t){var n=Cl;Cl&=-2,Cl|=8;try{return e(t)}finally{0===(Cl=n)&&(Bl(),Vo())}}function ms(e,t){lo(Rl,jl),jl|=t,Ml|=t}function vs(){jl=Rl.current,ao(Rl)}function ys(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,Wr(n)),null!==Ll)for(n=Ll.return;null!==n;){var r=n;switch(r.tag){case 1:null!=(r=r.type.childContextTypes)&&go();break;case 3:Ri(),ao(co),ao(uo),qi();break;case 5:Ai(r);break;case 4:Ri();break;case 13:case 19:ao(Mi);break;case 10:ei(r);break;case 23:case 24:vs()}n=n.return}Ol=e,Ll=$s(e.current,null),Pl=jl=Ml=t,Tl=0,Al=null,Fl=Dl=Il=0}function bs(e,t){for(;;){var n=Ll;try{if(Jo(),Gi.current=La,Ji){for(var r=Yi.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null),r=r.next}Ji=!1}if(Xi=0,Qi=Zi=Yi=null,ea=!1,_l.current=null,null===n||null===n.return){Tl=1,Al=t,Ll=null;break}e:{var i=e,a=n.return,l=n,s=t;if(t=Pl,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 d=0!=(1&Mi.current),f=a;do{var p;if(p=13===f.tag){var h=f.memoizedState;if(null!==h)p=null!==h.dehydrated;else{var g=f.memoizedProps;p=void 0!==g.fallback&&(!0!==g.unstable_avoidThisFallback||!d)}}if(p){var m=f.updateQueue;if(null===m){var v=new Set;v.add(u),f.updateQueue=v}else m.add(u);if(0==(2&f.mode)){if(f.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=Is.bind(null,i,u,l);u.then(w,w)}f.flags|=4096,f.lanes=t;break e}f=f.return}while(null!==f);s=Error((G(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!==Tl&&(Tl=2),s=rl(s,l),f=a;do{switch(f.tag){case 3:i=s,f.flags|=4096,t&=-t,f.lanes|=t,ui(f,al(0,i,t));break e;case 1:i=s;var x=f.type,k=f.stateNode;if(0==(64&f.flags)&&("function"==typeof x.getDerivedStateFromError||null!==k&&"function"==typeof k.componentDidCatch&&(null===ql||!ql.has(k)))){f.flags|=4096,t&=-t,f.lanes|=t,ui(f,ll(f,i,t));break e}}f=f.return}while(null!==f)}_s(n)}catch(e){t=e,Ll===n&&null!==n&&(Ll=n=n.return);continue}break}}function ws(){var e=Sl.current;return Sl.current=La,null===e?La:e}function xs(e,t){var n=Cl;Cl|=16;var r=ws();for(Ol===e&&Pl===t||ys(e,t);;)try{ks();break}catch(t){bs(e,t)}if(Jo(),Cl=n,Sl.current=r,null!==Ll)throw Error(a(261));return Ol=null,Pl=0,Tl}function ks(){for(;null!==Ll;)Ss(Ll)}function Es(){for(;null!==Ll&&!_o();)Ss(Ll)}function Ss(e){var t=Wl(e.alternate,e,jl);e.memoizedProps=e.pendingProps,null===t?_s(e):Ll=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,jl)))return void(Ll=n);if(24!==(n=t).tag&&23!==n.tag||null===n.memoizedState||0!=(1073741824&jl)||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(Ll=n);null!==e&&(e.firstEffect=e.lastEffect=null,e.flags|=2048)}if(null!==(t=t.sibling))return void(Ll=t);Ll=t=e}while(null!==t);0===Tl&&(Tl=5)}function Cs(e){var t=Bo();return Ho(99,Os.bind(null,e,t)),null}function Os(e,t){do{Ps()}while(null!==Kl);if(0!=(48&Cl))throw Error(a(327));var n=e.finishedWork;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(a(177));e.callbackNode=null;var r=n.lanes|n.childLanes,o=r,i=e.pendingLanes&~o;e.pendingLanes=o,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=o,e.mutableReadLanes&=o,e.entangledLanes&=o,o=e.entanglements;for(var l=e.eventTimes,s=e.expirationTimes;0<i;){var u=31-Ht(i),c=1<<u;o[u]=0,l[u]=-1,s[u]=-1,i&=~c}if(null!==Ql&&0==(24&r)&&Ql.has(e)&&Ql.delete(e),e===Ol&&(Ll=Ol=null,Pl=0),1<n.flags?null!==n.lastEffect?(n.lastEffect.nextEffect=n,r=n.firstEffect):r=n:r=n.firstEffect,null!==r){if(o=Cl,Cl|=32,_l.current=null,Fr=Kt,pr(l=fr())){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 d=0,f=-1,p=-1,h=0,g=0,m=l,v=null;t:for(;;){for(var y;m!==s||0!==i&&3!==m.nodeType||(f=d+i),m!==u||0!==c&&3!==m.nodeType||(p=d+c),3===m.nodeType&&(d+=m.nodeValue.length),null!==(y=m.firstChild);)v=m,m=y;for(;;){if(m===l)break t;if(v===s&&++h===i&&(f=d),v===u&&++g===c&&(p=d),null!==(y=m.nextSibling))break;v=(m=v).parentNode}m=y}s=-1===f||-1===p?null:{start:f,end:p}}else s=null;s=s||{start:0,end:0}}else s=null;Nr={focusedElem:l,selectionRange:s},Kt=!1,os=null,is=!1,Hl=r;do{try{Ls()}catch(e){if(null===Hl)throw Error(a(330));Ms(Hl,e),Hl=Hl.nextEffect}}while(null!==Hl);os=null,Hl=r;do{try{for(l=e;null!==Hl;){var b=Hl.flags;if(16&b&&ve(Hl.stateNode,""),128&b){var w=Hl.alternate;if(null!==w){var x=w.ref;null!==x&&("function"==typeof x?x(null):x.current=null)}}switch(1038&b){case 2:ml(Hl),Hl.flags&=-3;break;case 6:ml(Hl),Hl.flags&=-3,wl(Hl.alternate,Hl);break;case 1024:Hl.flags&=-1025;break;case 1028:Hl.flags&=-1025,wl(Hl.alternate,Hl);break;case 4:wl(Hl.alternate,Hl);break;case 8:bl(l,s=Hl);var k=s.alternate;hl(s),null!==k&&hl(k)}Hl=Hl.nextEffect}}catch(e){if(null===Hl)throw Error(a(330));Ms(Hl,e),Hl=Hl.nextEffect}}while(null!==Hl);if(x=Nr,w=fr(),b=x.focusedElem,l=x.selectionRange,w!==b&&b&&b.ownerDocument&&dr(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,k=Math.min(l.start,s),l=void 0===l.end?k:Math.min(l.end,s),!x.extend&&k>l&&(s=l,l=k,k=s),s=cr(b,k),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(),k>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=!!Fr,Nr=Fr=null,e.current=n,Hl=r;do{try{for(b=e;null!==Hl;){var E=Hl.flags;if(36&E&&dl(b,Hl.alternate,Hl),128&E){w=void 0;var S=Hl.ref;if(null!==S){var _=Hl.stateNode;Hl.tag,w=_,"function"==typeof S?S(w):S.current=w}}Hl=Hl.nextEffect}}catch(e){if(null===Hl)throw Error(a(330));Ms(Hl,e),Hl=Hl.nextEffect}}while(null!==Hl);Hl=null,Io(),Cl=o}else e.current=n;if(Gl)Gl=!1,Kl=e,Xl=t;else for(Hl=r;null!==Hl;)t=Hl.nextEffect,Hl.nextEffect=null,8&Hl.flags&&((E=Hl).sibling=null,E.stateNode=null),Hl=t;if(0===(r=e.pendingLanes)&&(ql=null),1===r?e===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()),Ul)throw Ul=!1,e=Vl,Vl=null,e;return 0!=(8&Cl)||Vo(),null}function Ls(){for(;null!==Hl;){var e=Hl.alternate;is||null===os||(0!=(8&Hl.flags)?Je(Hl,os)&&(is=!0):13===Hl.tag&&kl(e,Hl)&&Je(Hl,os)&&(is=!0));var t=Hl.flags;0!=(256&t)&&cl(e,Hl),0==(512&t)||Gl||(Gl=!0,Uo(97,(function(){return Ps(),null}))),Hl=Hl.nextEffect}}function Ps(){if(90!==Xl){var e=97<Xl?97:Xl;return Xl=90,Ho(e,Ts)}return!1}function js(e,t){Yl.push(t,e),Gl||(Gl=!0,Uo(97,(function(){return Ps(),null})))}function Rs(e,t){Zl.push(t,e),Gl||(Gl=!0,Uo(97,(function(){return Ps(),null})))}function Ts(){if(null===Kl)return!1;var e=Kl;if(Kl=null,0!=(48&Cl))throw Error(a(331));var t=Cl;Cl|=32;var n=Zl;Zl=[];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));Ms(i,e)}}for(n=Yl,Yl=[],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));Ms(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 Cl=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))&&(Wt(e,1,t),cs(e,t))}function Ms(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)))Wt(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 Is(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=as(),e.pingedLanes|=e.suspendedLanes&n,Ol===e&&(Pl&n)===n&&(4===Tl||3===Tl&&(62914560&Pl)===Pl&&500>$o()-zl?ys(e,0):Fl|=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=Ml),0===(t=$t(62914560&~ns))&&(t=4194304))),n=as(),null!==(e=us(e,t))&&(Wt(e,t,n),cs(e,n))}function Fs(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 Ns(e,t,n,r){return new Fs(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=Ns(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 Ws(n.children,o,i,t);case D:l=8,o|=16;break;case _:l=8,o|=1;break;case C:return(e=Ns(12,n,t,8|o)).elementType=C,e.type=C,e.lanes=i,e;case j:return(e=Ns(13,n,t,o)).type=j,e.elementType=j,e.lanes=i,e;case R:return(e=Ns(19,n,t,o)).elementType=R,e.lanes=i,e;case F:return Hs(n,o,i,t);case N:return(e=Ns(24,n,t,o)).elementType=N,e.lanes=i,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case O:l=10;break e;case L:l=9;break e;case P:l=11;break e;case T:l=14;break e;case A:l=16,r=null;break e;case M:l=22;break e}throw Error(a(130,null==e?e:typeof e,""))}return(t=Ns(l,n,t,o)).elementType=e,t.type=r,t.lanes=i,t}function Ws(e,t,n,r){return(e=Ns(7,e,r,t)).lanes=n,e}function Hs(e,t,n,r){return(e=Ns(23,e,r,t)).elementType=F,e.lanes=n,e}function Us(e,t,n){return(e=Ns(6,e,null,t)).lanes=n,e}function Vs(e,t,n){return(t=Ns(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 Gs(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:E,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}function Ks(e,t,n,r){var o=t.current,i=as(),l=ls(o);e:if(n){t:{if(Xe(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 Xs(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Ys(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Zs(e,t){Ys(e,t),(e=e.alternate)&&Ys(e,t)}function Qs(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=Ns(3,null,null,2===t?7:1===t?3:0),n.current=t,t.stateNode=n,ii(t),e[Yr]=n.current,Lr(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=Xs(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 Qs(e,0,t?{hydrate:!0}:void 0)}(n,r),a=i._internalRoot,"function"==typeof o){var s=o;o=function(){var e=Xs(a);s.call(e)}}gs((function(){Ks(t,a,e,o)}))}return Xs(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 Gs(e,t,null,n)}Wl=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:Ha(t),Ui();break;case 5:Ti(t);break;case 1:ho(t.type)&&yo(t);break;case 4:ji(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value;var o=t.type._context;lo(Xo,o._currentValue),o._currentValue=r;break;case 13:if(null!==t.memoizedState)return 0!=(n&t.child.childLanes)?Ka(e,t,n):(lo(Mi,1&Mi.current),null!==(t=Ja(e,t,n))?t.sibling:null);lo(Mi,1&Mi.current);break;case 19:if(r=0!=(n&t.childLanes),0!=(64&e.flags)){if(r)return Qa(e,t,n);t.flags|=64}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),lo(Mi,Mi.current),r)break;return null;case 23:case 24:return t.lanes=0,Na(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=Wa(null,t,r,!0,i,n)}else t.tag=0,Ma(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)===P)return 11;if(e===T)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=Ia(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(Ha(t),r=t.updateQueue,null===e||null===r)throw Error(a(282));if(r=t.pendingProps,o=null!==(o=t.memoizedState)?o.element:null,ai(e,t),ci(t,r,null,n),(r=t.memoizedState.element)===o)Ui(),t=Ja(e,t,n);else{if((i=(o=t.stateNode).hydrate)&&(Fi=Ur(t.stateNode.containerInfo.firstChild),Di=t,i=Ni=!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 Ma(e,t,r,n),Ui();t=t.child}return t;case 5:return Ti(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),Ma(e,t,l,n),t.child;case 6:return null===e&&Bi(t),null;case 13:return Ka(e,t,n);case 4:return ji(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Ei(t,null,r,n):Ma(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,Ia(e,t,r,o=t.elementType===r?o:Ko(r,o),n);case 7:return Ma(e,t,t.pendingProps,n),t.child;case 8:case 12:return Ma(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(Xo,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}Ma(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,Ma(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 Fa(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),Wa(null,t,r,!0,e,n);case 19:return Qa(e,t,n);case 23:case 24:return Na(e,t,n)}throw Error(a(156,t.tag))},Qs.prototype.render=function(e){Ks(e,this._internalRoot,null,null)},Qs.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;Ks(null,e,null,(function(){t[Yr]=null}))},et=function(e){13===e.tag&&(ss(e,4,as()),Zs(e,4))},tt=function(e){13===e.tag&&(ss(e,67108864,as()),Zs(e,67108864))},nt=function(e){if(13===e.tag){var t=as(),n=ls(e);ss(e,n,t),Zs(e,n)}},rt=function(e,t){return t()},Ce=function(e,t,n){switch(t){case"input":if(ne(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=to(r);if(!o)throw Error(a(90));Z(r),ne(r,o)}}}break;case"textarea":ue(e,n);break;case"select":null!=(t=n.value)&&ae(e,!!n.multiple,t,!1)}},Te=hs,Ae=function(e,t,n,r,o){var i=Cl;Cl|=4;try{return Ho(98,e.bind(null,t,n,r,o))}finally{0===(Cl=i)&&(Bl(),Vo())}},Me=function(){0==(49&Cl)&&(function(){if(null!==Ql){var e=Ql;Ql=null,e.forEach((function(e){e.expiredLanes|=24&e.pendingLanes,cs(e,$o())}))}Vo()}(),Ps())},Ie=function(e,t){var n=Cl;Cl|=2;try{return e(t)}finally{0===(Cl=n)&&(Bl(),Vo())}};var nu={Events:[Jr,eo,to,je,Re,Ps,{current:!1}]},ru={findFiberByHostInstance:Qr,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=Qe(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=Qe(t))?null:e.stateNode},t.flushSync=function(e,t){var n=Cl;if(0!=(48&n))return e(t);Cl|=1;try{if(e)return Ho(99,e.bind(null,t))}finally{Cl=n,Vo()}},t.hydrate=function(e,t,n){if(!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[Yr]=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 d=Symbol.for;o=d("react.element"),i=d("react.portal"),t.Fragment=d("react.fragment"),t.StrictMode=d("react.strict_mode"),t.Profiler=d("react.profiler"),a=d("react.provider"),l=d("react.context"),s=d("react.forward_ref"),t.Suspense=d("react.suspense"),u=d("react.memo"),c=d("react.lazy")}var f="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,k={key:!0,ref:!0,__self:!0,__source:!0};function E(e,t,n){var r,i={},a=null,l=null;if(null!=t)for(r in void 0!==t.ref&&(l=t.ref),void 0!==t.key&&(a=""+t.key),t)x.call(t,r)&&!k.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 C(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function O(e,t,n,r,a){var l=typeof e;"undefined"!==l&&"boolean"!==l||(e=null);var 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?"."+C(s,0):r,Array.isArray(a)?(n="",null!=e&&(n=e.replace(_,"$&/")+"/"),O(a,t,n,"",(function(e){return e}))):null!=a&&(S(a)&&(a=function(e,t){return{$$typeof:o,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,n+(!a.key||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+C(l=e[u],u);s+=O(l,t,n,c,a)}else if(c=function(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=f&&e[f]||e["@@iterator"])?e:null}(e),"function"==typeof c)for(e=c.call(e),u=0;!(l=e.next()).done;)s+=O(l=l.value,t,n,c=r+C(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 L(e,t,n){if(null==e)return e;var r=[],o=0;return O(e,r,"","",(function(e){return t.call(n,e,o++)})),r}function P(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 j={current:null};function R(){var e=j.current;if(null===e)throw Error(p(321));return e}var T={ReactCurrentDispatcher:j,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:w,IsSomeRendererActing:{current:!1},assign:r};t.Children={map:L,forEach:function(e,t,n){L(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return L(e,(function(){t++})),t},toArray:function(e){return L(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=T,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)&&!k.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 d=0;d<c;d++)u[d]=arguments[d+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=E,t.createFactory=function(e){var t=E.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:s,render:e}},t.isValidElement=S,t.lazy=function(e){return{$$typeof:c,_payload:{_status:-1,_result:e},_init:P}},t.memo=function(e,t){return{$$typeof:u,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return R().useCallback(e,t)},t.useContext=function(e,t){return R().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return R().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return R().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return R().useLayoutEffect(e,t)},t.useMemo=function(e,t){return R().useMemo(e,t)},t.useReducer=function(e,t,n){return R().useReducer(e,t,n)},t.useRef=function(e){return R().useRef(e)},t.useState=function(e){return R().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 L(r||[]);return i._invoke=function(e,t,n){var r=d;return function(o,i){if(r===p)throw new Error("Generator is already running");if(r===h){if("throw"===o)throw i;return j()}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===d)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:f,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 d="suspendedStart",f="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(P([])));x&&x!==n&&r.call(x,i)&&(b=x);var k=y.prototype=m.prototype=Object.create(b);function E(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,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,l)}),(function(e){n("throw",e,a,l)})):t.resolve(d).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 C(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(C,this),this.reset(!0)}function P(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:j}}function j(){return{value:t,done:!0}}return v.prototype=y,s(k,"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(k),e},e.awrap=function(e){return{__await:e}},E(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()}))},E(k),s(k,l,"Generator"),s(k,i,(function(){return this})),s(k,"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=P,L.prototype={constructor:L,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(O),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return l.type="throw",l.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],l=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var 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),O(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;O(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:P(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,d=function(){if(null!==u)try{var e=t.unstable_now();u(!0,e),u=null}catch(e){throw setTimeout(d,0),e}};n=function(e){null!==u?setTimeout(n,0,e):(u=e,setTimeout(d,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 f=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=f((function(){e(t.unstable_now())}),n)},o=function(){p(v),v=-1}}function k(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 E(e){return void 0===(e=e[0])?null:e}function S(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length;r<o;){var i=2*(r+1)-1,a=e[i],l=i+1,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 C=[],O=[],L=1,P=null,j=3,R=!1,T=!1,A=!1;function M(e){for(var t=E(O);null!==t;){if(null===t.callback)S(O);else{if(!(t.startTime<=e))break;S(O),t.sortIndex=t.expirationTime,k(C,t)}t=E(O)}}function I(e){if(A=!1,M(e),!T)if(null!==E(C))T=!0,n(D);else{var t=E(O);null!==t&&r(I,t.startTime-e)}}function D(e,n){T=!1,A&&(A=!1,o()),R=!0;var i=j;try{for(M(n),P=E(C);null!==P&&(!(P.expirationTime>n)||e&&!t.unstable_shouldYield());){var a=P.callback;if("function"==typeof a){P.callback=null,j=P.priorityLevel;var l=a(P.expirationTime<=n);n=t.unstable_now(),"function"==typeof l?P.callback=l:P===E(C)&&S(C),M(n)}else S(C);P=E(C)}if(null!==P)var s=!0;else{var u=E(O);null!==u&&r(I,u.startTime-n),s=!1}return s}finally{P=null,j=i,R=!1}}var F=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(){T||R||(T=!0,n(D))},t.unstable_getCurrentPriorityLevel=function(){return j},t.unstable_getFirstCallbackNode=function(){return E(C)},t.unstable_next=function(e){switch(j){case 1:case 2:case 3:var t=3;break;default:t=j}var n=j;j=t;try{return e()}finally{j=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=F,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=j;j=e;try{return t()}finally{j=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:L++,callback:i,priorityLevel:e,startTime:a,expirationTime:s=a+s,sortIndex:-1},a>l?(e.sortIndex=a,k(O,e),null===E(C)&&e===E(O)&&(A?o():A=!0,r(I,a-l))):(e.sortIndex=s,k(C,e),T||R||(T=!0,n(D))),e},t.unstable_wrapCallback=function(e){var t=j;return function(){var n=j;j=t;try{return e.apply(this,arguments)}finally{j=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.speakingSection {\n color: var(--colors-highlightText);\n background-color: rgba(255, 210, 52, 0.2);\n}\n\n.highlight {\n color: var(--colors-highlightText);\n background-color: rgb(var(--colors-highlightBackground));\n cursor: pointer;\n}\n\n.highlight_with_note {\n color: var(--colors-highlightText);\n background-color: rgba(var(--colors-highlightBackground), 0.35);\n border-bottom: 2px rgb(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 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.article-inner-css .morning-brew-markets {\n max-width: 100% !important;\n}\n\n.article-inner-css .morning-brew-markets tbody{\n width: 100%;\n display: table;\n}\n\n.article-inner-css .morning-brew-markets td:nth-child(1) {\n width: 20%;\n}\n\n.article-inner-css .morning-brew-markets td:nth-child(2) {\n width: 30%;\n}\n\n.article-inner-css .morning-brew-markets td:nth-child(3) {\n width: 30%;\n}\n\n.article-inner-css .morning-brew-markets td:nth-child(4) {\n width: 20%;\n}\n\n.article-inner-css ._omnivore-static-tweet {\n color: #0F1419 !important;\n background: #ffffff !important;\n display: flex;\n flex-direction: column;\n gap: 12px;\n max-width: 550px;\n margin: 32px auto;\n border: 1px solid #e0e0e0;\n direction: ltr;\n border-radius: 8px;\n padding: 16px 16px ;\n box-sizing: border-box;\n -webkit-font-smoothing: subpixel-antialiased;\n}\n\n._omnivore-static-tweet ._omnivore-static-tweet-header {\n display: flex;\n align-items: center;\n flex-direction: row;\n gap: 12px;\n margin: unset;\n justify-content: flex-start;\n color: #0F1419 !important;\n}\n\n\n._omnivore-static-tweet-header ._omnivore-static-tweet-header-text {\n display: flex;\n flex-direction: column;\n color: #0F1419 !important;\n font-size: 14px;\n line-height: 20px;\n}\n\n._omnivore-static-tweet-header-text .tweet-author-name {\n font-weight: 600;\n}\n\n._omnivore-static-tweet-header-text .tweet-author-handle {\n color: #808080;\n}\n\n\n._omnivore-static-tweet ._omnivore-static-tweet-fake-link {\n color: #1da1f2;\n}\n\n._omnivore-static-tweet ._omnivore-static-tweet-text {\n font-size: 14px;\n line-height: 20px;\n color: #0F1419 !important;\n}\n\n._omnivore-static-tweet ._omnivore-static-tweet-link-top {\n text-decoration: none;\n}\n\n._omnivore-static-tweet ._omnivore-static-tweet-header-avatar {\n -ms-interpolation-mode: bicubic; \n border: none !important;\n border-radius: 50%;\n float: left;\n height: 48px;\n width: 48px;\n margin: unset !important;\n margin-right: 12px;\n max-width: 100%;\n vertical-align: middle;\n}\n\n._omnivore-static-tweet ._omnivore-static-tweet-link-bottom {\n display: flex;\n flex-direction: column;\n text-decoration: none;\n white-space: pre-wrap;\n}\n\n._omnivore-static-tweet ._omnivore-static-tweet-footer {\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n color: #808080;\n font-size: 14px;\n line-height: 20px;\n}\n\n._omnivore-static-tweet ._omnivore-static-tweet-footer hr {\n background: #e0e0e0;\n border: none;\n height: 1px;\n margin: 12px 0;\n padding: 0;\n width: 100%;\n color: #496F72;\n font-size: 14px;\n line-height: 20px;\n}\n\n._omnivore-static-tweet ._omnivore-static-tweet-author-handle {\n display: block;\n}\n\n._omnivore-static-tweet ._omnivore-static-tweet-ufi {\n display: flex;\n gap: 24px;\n align-items: center;\n}\n\n._omnivore-static-tweet ._omnivore-static-tweet-ufi .likes, .retweets {\n display: flex;\n gap: 4px;\n text-decoration: none;\n color: #808080;\n font-size: 14px;\n line-height: 20px;\n}\n\n._omnivore-static-tweet ._omnivore-static-tweet-photo {\n width: 100%;\n height: 100%;\n object-fit: cover;\n border-radius: 2px;\n}\n\n._omnivore-static-tweet .expanded-link {\n display: flex;\n flex-direction: column;\n text-decoration: none;\n border: 1px solid #e0e0e0;\n border-radius: 8px;\n box-sizing: border-box;\n overflow: hidden;\n}\n\n._omnivore-static-tweet .expanded-link-img {\n cursor: pointer;\n width: 100%;\n max-height: 280px;\n max-width: 100%;\n object-fit: cover;\n margin: 0px auto !important\n}\n\n._omnivore-static-tweet .expanded-link img {\n margin: 0px auto !important\n}\n\n._omnivore-static-tweet .expanded-link-bottom {\n display: flex;\n flex-direction: column;\n padding: 12px;\n gap: 2px;\n font-size: 14px;\n line-height: 20px;\n text-decoration: none;\n}\n\n.expanded-link-bottom .expanded-link-domain {\n color: #808080;\n text-transform: lowercase;\n text-decoration: none;\n}\n\n.expanded-link-bottom .expanded-link-title {\n color: #0F1419 !important;\n display: -webkit-box;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: 2;\n overflow: hidden;\n}\n\n.expanded-link-bottom .expanded-link-description {\n color: #808080;\n display: -webkit-box;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: 2;\n overflow: hidden;\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: 'Montserrat';\n font-weight: 400;\n font-style: normal;\n src: url(Montserrat-Regular.ttf);\n}\n\n@font-face {\n font-family: 'Montserrat';\n font-weight: 700;\n font-style: normal;\n src: url(Montserrat-Bold.ttf);\n}\n\n@font-face {\n font-family: 'Montserrat';\n font-weight: 400;\n font-style: italic;\n src: url(Montserrat-Italic.ttf);\n}\n\n@font-face {\n font-family: 'Georgia';\n font-weight: 400;\n font-style: normal;\n src: url(Georgia-Regular.ttf);\n}\n\n@font-face {\n font-family: 'Georgia';\n font-weight: 700;\n font-style: normal;\n src: url(Georgia-Bold.ttf);\n}\n\n@font-face {\n font-family: 'Georgia';\n font-weight: 400;\n font-style: italic;\n src: url(Georgia-Italic.ttf);\n}\n\n@font-face {\n font-family: 'Newsreader';\n font-weight: 400;\n font-style: normal;\n src: url(Newsreader-Regular.ttf);\n}\n\n@font-face {\n font-family: 'Newsreader';\n font-weight: 700;\n font-style: normal;\n src: url(Newsreader-Bold.ttf);\n}\n\n@font-face {\n font-family: 'Newsreader';\n font-weight: 400;\n font-style: italic;\n src: url(Newsreader-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\nselect {\n color: var(--colors-grayTextContrast);\n background-color: transparent;\n}\n\nselect option {\n background-color: transparent;\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}\n\n.omnivore-masonry-grid {\n display: -webkit-box; /* Not needed if autoprefixing */\n display: -ms-flexbox; /* Not needed if autoprefixing */\n display: flex;\n margin-left: -16px; /* gutter size offset */\n margin-right: 14px;\n width: auto;\n}\n.omnivore-masonry-grid_column {\n padding-left: 16px; /* gutter size */\n background-clip: padding-box;\n}\n\n/* .omnivore-masonry-grid_column > div {\n background: grey;\n margin-bottom: 16px;\n} */\n\n.ProgressRoot {\n overflow: hidden;\n background: var(--colors-omnivoreGray);\n border-radius: 99999px;\n height: 25px;\n transform: translateZ(0);\n}\n\n.ProgressIndicator {\n background-color: var(--colors-omnivoreCtaYellow) ;\n width: 100%;\n height: 100%;\n transition: transform 660ms cubic-bezier(0.65, 0, 0.35, 1);\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,d="".concat(u," ").concat(c);i[u]=c+1;var f=n(d),p={css:s[1],media:s[2],sourceMap:s[3],supports:s[4],layer:s[5]};if(-1!==f)t[f].references++,t[f].updater(p);else{var h=o(p,r);r.byIndex=l,t.splice(l,0,{identifier:d,updater:h,references:1})}a.push(d)}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){(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 t(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function n(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 r,i,a,l=o(7162),s=o.n(l),u=o(2784),c=o.t(u,2),d=o(8316),f="colors",p="sizes",h="space",g={gap:h,gridGap:h,columnGap:h,gridColumnGap:h,rowGap:h,gridRowGap:h,inset:h,insetBlock:h,insetBlockEnd:h,insetBlockStart:h,insetInline:h,insetInlineEnd:h,insetInlineStart:h,margin:h,marginTop:h,marginRight:h,marginBottom:h,marginLeft:h,marginBlock:h,marginBlockEnd:h,marginBlockStart:h,marginInline:h,marginInlineEnd:h,marginInlineStart:h,padding:h,paddingTop:h,paddingRight:h,paddingBottom:h,paddingLeft:h,paddingBlock:h,paddingBlockEnd:h,paddingBlockStart:h,paddingInline:h,paddingInlineEnd:h,paddingInlineStart:h,top:h,right:h,bottom:h,left:h,scrollMargin:h,scrollMarginTop:h,scrollMarginRight:h,scrollMarginBottom:h,scrollMarginLeft:h,scrollMarginX:h,scrollMarginY:h,scrollMarginBlock:h,scrollMarginBlockEnd:h,scrollMarginBlockStart:h,scrollMarginInline:h,scrollMarginInlineEnd:h,scrollMarginInlineStart:h,scrollPadding:h,scrollPaddingTop:h,scrollPaddingRight:h,scrollPaddingBottom:h,scrollPaddingLeft:h,scrollPaddingX:h,scrollPaddingY:h,scrollPaddingBlock:h,scrollPaddingBlockEnd:h,scrollPaddingBlockStart:h,scrollPaddingInline:h,scrollPaddingInlineEnd:h,scrollPaddingInlineStart:h,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:p,minBlockSize:p,maxBlockSize:p,inlineSize:p,minInlineSize:p,maxInlineSize:p,width:p,minWidth:p,maxWidth:p,height:p,minHeight:p,maxHeight:p,flexBasis:p,gridTemplateColumns:p,gridTemplateRows:p,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"},m=(e,t)=>"function"==typeof t?{"()":Function.prototype.toString.call(t)}:t,v=()=>{const e=Object.create(null);return(t,n,...r)=>{const o=(e=>JSON.stringify(e,m))(t);return o in e?e[o]:e[o]=n(t,...r)}},y=Symbol.for("sxs.internal"),b=(e,t)=>Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)),w=e=>{for(const t in e)return!0;return!1},{hasOwnProperty:x}=Object.prototype,k=e=>e.includes("-")?e:e.replace(/[A-Z]/g,(e=>"-"+e.toLowerCase())),E=/\s+(?![^()]*\))/,S=e=>t=>e(..."string"==typeof t?String(t).split(E):[t]),_={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:S(((e,t)=>({marginBlockStart:e,marginBlockEnd:t||e}))),marginInline:S(((e,t)=>({marginInlineStart:e,marginInlineEnd:t||e}))),maxSize:S(((e,t)=>({maxBlockSize:e,maxInlineSize:t||e}))),minSize:S(((e,t)=>({minBlockSize:e,minInlineSize:t||e}))),paddingBlock:S(((e,t)=>({paddingBlockStart:e,paddingBlockEnd:t||e}))),paddingInline:S(((e,t)=>({paddingInlineStart:e,paddingInlineEnd:t||e})))},C=/([\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,L=(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};${k(e)}:${n}-webkit-fill-available`:`-moz-fit-content${o};${k(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},j=e=>e?e+"-":"",R=(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?j(t)+(a.includes("$")?"":j(n))+a.replace(/\$/g,"-"):a)+")"+(r||"--"==i?"*"+(r||"")+(o||"1")+")":""))),T=/\s*,\s*(?![^()]*\))/,A=Object.prototype.toString,M=(e,t,n,r,o)=>{let i,a,l;const s=(e,t,n)=>{let u,c;const d=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===A&&(!r.utils[e]||!t.length);if(e in r.utils&&!g){const t=r.utils[e];if(t!==a){a=t,d(t(c)),a=null;continue}}else if(e in _){const t=_[e];if(t!==l){l=t,d(t(c)),l=null;continue}}if(h&&(f=u.slice(1)in r.media?"@media "+r.media[u.slice(1)]:u,u=f.replace(/\(\s*([\w-]+)\s*(=|<|<=|>|>=)\s*([\w-]+)\s*(?:(<|<=|>|>=)\s*([\w-]+)\s*)?\)/g,((e,t,n,r,o,i)=>{const a=C.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(C,((e,t,r)=>Number(t)+l*(">"===n?1:-1)+r)):u)+(o?") and ("+(">"===o[0]?"min-":"max-")+s+":"+(1===o.length?i.replace(C,((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(T));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:`--${j(r.prefix)}${u.slice(1).replace(/\$/g,"-")}`,c=g?c:"number"==typeof c?c&&e in D?String(c)+"px":String(c):R(L(e,null==c?"":c),r.prefix,r.themeMap[e]),i[0].push(`${h?`${u} `:`${k(u)}:`}${c}`)}}var f,p};d(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("}")}`,D={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},F=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=F(t%52)+n;return F(t%52)+n})(((e,t)=>{let n=t.length;for(;n;)e=33*e^t.charCodeAt(--n);return e})(5381,JSON.stringify(e))>>>0),z=["themed","global","styled","onevar","resonevar","allvar","inline"],$=e=>{if(e.href&&!e.href.startsWith(location.origin))return!1;try{return!!e.cssRules}catch(e){return!1}},B=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($(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=z[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=z.length-1;e>=0;--e){const t=z[e];if(!a[t]){const n=z[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])}}W(a[t])}};return r(),t},W=e=>{const t=e.group;let n=t.cssRules.length;e.apply=e=>{try{t.insertRule(e,n),++n}catch(e){}}},H=Symbol(),U=v(),V=(e,t)=>U(e,(()=>(...n)=>{let r={type:null,composers:new Set};for(const t of n)if(null!=t)if(t[y]){null==r.type&&(r.type=t[y].type);for(const e of t[y].composers)r.composers.add(e)}else t.constructor!==Object||t.$$typeof?null==r.type&&(r.type=t):r.composers.add(q(t,e));return null==r.type&&(r.type="span"),r.composers.size||r.composers.add(["PJLV",{},[],[],{},[]]),G(e,r,t)})),q=({variants:e,compoundVariants:t,defaultVariants:n,...r},o)=>{const i=`${j(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,d=t,x.call(c,d)||(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,!w(o)];a.push(i)}}var c,d;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,!w(t)];l.push(r)}return[i,r,a,l,s,u]},G=(e,t,n)=>{const[r,o,i,a]=K(t.composers),l="function"==typeof t.type||t.type.$$typeof?(e=>{function t(){for(let n=0;n<t[H].length;n++){const[r,o]=t[H][n];e.rules[r].apply(o)}return t[H]=[],null}return t[H]=[],t.rules={},z.forEach((e=>t.rules[e]={apply:n=>t[H].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:d,...f}=c,p={};for(const e in i)if(delete f[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),M(o,[`.${r}`],[],e,(e=>{s.styled.apply(e)})));const t=X(i,p,e.media),l=X(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),M(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),M(i,[`.${t}`],[],e,(e=>{s.allvar.apply(e)})))}}if("object"==typeof d&&d){const t=`${r}-i${N(d)}-css`;h.add(t),n.rules.inline.cache.has(t)||(n.rules.inline.cache.add(t),M(d,[`.${t}`],[],e,(e=>{s.inline.apply(e)})))}for(const e of String(c.className||"").trim().split(/\s+/))e&&h.add(e);const g=f.className=[...h].join(" ");return{type:t.type,className:g,selector:u,props:f,toString:()=>g,deferredInjector:l}};return b(c,{className:r,selector:u,[y]:t,toString:()=>(n.rules.styled.cache.has(r)||c(),r)})},K=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)]},X=(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={},Z=v(),Q=(e,t)=>Z(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"]}M(r,[],[],e,(e=>{t.rules.global.apply(e)}))}}return""};return b(r,{toString:r})})),J=v(),ee=(e,t)=>J(e,(()=>n=>{const r=`${j(e.prefix)}k-${N(n)}`,o=()=>{if(!t.rules.global.cache.has(r)){t.rules.global.cache.add(r);const o=[];M(n,[],[],e,(e=>o.push(e)));const i=`@keyframes ${r}{${o.join("")}}`;t.rules.global.apply(i)}return r};return b(o,{get name(){return o()},toString:o})})),te=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"--"+j(this.prefix)+j(this.scale)+this.token}toString(){return this.computedValue}},ne=v(),re=(e,t)=>ne(e,(()=>(n,r)=>{r="object"==typeof n&&n||Object(r);const o=`.${n=(n="string"==typeof n?n:"")||`${j(e.prefix)}t-${N(r)}`}`,i={},a=[];for(const t in r){i[t]={};for(const n in r[t]){const o=`--${j(e.prefix)}${t}-${n}`,l=R(String(r[t][n]),e.prefix,t);i[t][n]=new te(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}})),oe=v(),ie=v(),ae=e=>{const t=(e=>{let t=!1;const n=oe(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||{...g},utils:"object"==typeof e.utils&&e.utils||{}},l=B(o),s={css:V(a,l),globalCss:Q(a,l),keyframes:ee(a,l),createTheme:re(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})=>ie(e,(()=>{const n=V(e,t);return(...e)=>{const t=n(...e),r=t[y].type,o=u.forwardRef(((e,n)=>{const o=e&&e.as||r,{props:i,deferredInjector:a}=t(e);return delete i.as,i.ref=n,a?u.createElement(u.Fragment,null,u.createElement(o,i),u.createElement(a,null)):u.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[y]=t[y],o}})))(t),t},le=()=>r||(r=ae()),se=(...e)=>le().createTheme(...e),ue=(...e)=>le().keyframes(...e),ce=(...e)=>le().styled(...e);function de(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 fe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?de(Object(n),!0).forEach((function(t){pe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):de(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function pe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}(a=i||(i={})).Lighter="White",a.Light="LightGray",a.Dark="Gray",a.Darker="Dark",a.Sepia="Sepia",a.Charcoal="Charcoal";var he=ae({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 16px 25px 16px rgba(32, 31, 29, 0.1)"},zIndices:{},transitions:{},colors:{grayBase:"#F8F8F8",grayBg:"#FFFFFF",grayBgActive:"#e6e6e6",grayBorder:"#F0F0F0",lightBorder:"#F0F0F0",grayTextContrast:"#3A3939",graySolid:"#9C9B9A",textDefault:"rgba(255, 255, 255, 0.8)",utilityTextDefault:"#3B3938",utilityTextSubtle:"rgba(255, 255, 255, 0.65)",textNonessential:"rgba(10, 8, 6, 0.4)",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:"#3B3938",graySeparator:"#DADADA",grayProgressBackground:"#FFFFFF",highlightBackground:"250, 227, 146",recommendedHighlightBackground:"#E5FFE5",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:"white",readerFont:"#3D3D3D",readerFontHighContrast:"black",readerFontTransparent:"rgba(61,61,61,0.65)",readerHeader:"3D3D3D",readerTableHeader:"#FFFFFF",avatarBg:"#FFFFFF",avatarFont:"#0A0806",labelButtonsBg:"#F5F5F4",tooltipIcons:"#FDFAEC",textSubtle:"#605F5D",libraryBackground:"#FFFFFF",libraryActiveMenuItem:"#F8F8F8",border:"#F0F0F0",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)"}}),ge=he.styled,me=(he.css,he.theme),ve=(he.getCssText,he.globalCss),ye=he.keyframes,be=(he.config,{colors:{grayBase:"#252525",grayBg:"#3B3938",grayBgActive:"#4f4d4c",grayTextContrast:"#D8D7D7",grayBorder:"#323232",graySolid:"#9C9B9A",textDefault:"rgba(10, 8, 6, 0.8)",utilityTextDefault:"#CDCDCD",textNonessential:"rgba(97, 97, 97, 1)",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:"#CDCDCD",graySeparator:"#323232",grayProgressBackground:"#616161",highlightBackground:"134, 119, 64",recommendedHighlightBackground:"#1F4315",highlight:"#FFD234",highlightText:"white",error:"#FA5E4A",readerBg:"#303030",readerFont:"#b9b9b9",readerFontHighContrast:"white",readerHeader:"#b9b9b9",readerTableHeader:"#FFFFFF",tooltipIcons:"#5F5E58",avatarBg:"#000000",avatarFont:"rgba(255, 255, 255, 0.8)",textSubtle:"#AAAAAA",libraryBackground:"#252525",libraryActiveMenuItem:"#3B3938",border:"#323232",utilityTextSubtle:"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(5, 5, 5, 0.16), 0px 7px 12px rgba(0, 0, 0, 0.13)"}}),we=se(i.Dark,be),xe=se(i.Darker,be),ke=(se(i.Sepia,fe(fe({},be),{colors:{readerBg:"#F9F1DC",readerFont:"#554A34",readerFontHighContrast:"black",readerHeader:"554A34",readerTableHeader:"#FFFFFF"}})),se(i.Charcoal,fe(fe({},be),{colors:{readerBg:"#303030",readerFont:"#b9b9b9",readerFontHighContrast:"white",readerHeader:"#b9b9b9",readerTableHeader:"#FFFFFF"}})),se(i.Lighter,{}));function Ee(...e){return t=>e.forEach((e=>function(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}(e,t)))}function Se(...e){return u.useCallback(Ee(...e),e)}function _e(){return _e=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},_e.apply(this,arguments)}ve({body:{backgroundColor:"$grayBase"},"*":{"&:focus":{outline:"none"},"&:focus-visible":{outline:"none"}},".article-inner-css":{"::selection":{background:"rgb($highlightBackground)"}}});const Ce=u.forwardRef(((e,t)=>{const{children:n,...r}=e;return u.Children.toArray(n).some(Pe)?u.createElement(u.Fragment,null,u.Children.map(n,(e=>Pe(e)?u.createElement(Oe,_e({},r,{ref:t}),e.props.children):e))):u.createElement(Oe,_e({},r,{ref:t}),n)}));Ce.displayName="Slot";const Oe=u.forwardRef(((e,t)=>{const{children:n,...r}=e;return u.isValidElement(n)?u.cloneElement(n,{...je(r,n.props),ref:Ee(t,n.ref)}):u.Children.count(n)>1?u.Children.only(null):null}));Oe.displayName="SlotClone";const Le=({children:e})=>u.createElement(u.Fragment,null,e);function Pe(e){return u.isValidElement(e)&&e.type===Le}function je(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 Re=["a","button","div","h2","h3","img","li","nav","p","span","svg","ul"].reduce(((e,t)=>({...e,[t]:u.forwardRef(((e,n)=>{const{asChild:r,...o}=e,i=r?Ce:t;return u.useEffect((()=>{window[Symbol.for("radix-ui")]=!0}),[]),e.as&&console.error(Te),u.createElement(i,_e({},o,{ref:n}))}))})),{}),Te="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",Ae="horizontal",Me=["horizontal","vertical"],Ie=u.forwardRef(((e,t)=>{const{decorative:n,orientation:r=Ae,...o}=e,i=De(r)?r:Ae,a=n?{role:"none"}:{"aria-orientation":"vertical"===i?i:void 0,role:"separator"};return u.createElement(Re.div,_e({"data-orientation":i},a,o,{ref:t}))}));function De(e){return Me.includes(e)}Ie.propTypes={orientation(e,t,n){const r=e[t],o=String(r);return r&&!De(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 \`${Ae}\`.`}(o,n)):null}};const Fe=Ie;var Ne=o(2322),ze={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"}}},$e=ge("div",{}),Be=ge("span",{}),We=ge("a",{}),He=ge("blockquote",{}),Ue=ge($e,{display:"flex",flexDirection:"row",variants:ze,defaultVariants:{alignment:"start",distribution:"around"}}),Ve=ge($e,{display:"flex",flexDirection:"column",variants:ze,defaultVariants:{alignment:"start",distribution:"around"}});ge(Fe,{backgroundColor:"$grayLine","&[data-orientation=horizontal]":{height:1,width:"100%"},"&[data-orientation=vertical]":{height:"100%",width:1}});var qe=["omnivore-highlight-id","data-twitter-tweet-id","data-instagram-id"];function Ge(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 Ke=o(1170),Xe=o.n(Ke);function Ye(){return Ye=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},Ye.apply(this,arguments)}var Ze="twttr",Qe=!("undefined"==typeof window||!window.document||!window.document.createElement);function Je(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function et(e){var t=(0,u.useRef)();return function(e,t){if(Je(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])||!Je(e[n[o]],t[n[o]]))return!1;return!0}(e,t.current)||(t.current=e),t.current}function tt(e){return"object"==typeof e?Ye({},e):e}function nt(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)}Qe&&Xe()("https://platform.twitter.com/widgets.js",Ze);var rt="twdiv";var ot=function(e){var t=e.tweetId,n=e.options,r=e.onLoad,o=e.renderError,i=function(e,t,n,r){var o=(0,u.useState)(null),i=o[0],a=o[1],l=(0,u.useRef)(null);if(!Qe)return{ref:l,error:i};var c=[e,et(t),et(n)];return(0,u.useEffect)((function(){a(null);var o,i=!1;if(l.current){var u=function(){var o,u=(o=s().mark((function o(){var u,c;return s().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(l&&l.current){o.next=2;break}return o.abrupt("return");case 2:return(u=document.createElement("div")).setAttribute(rt,"yes"),l.current.appendChild(u),o.prev=5,o.next=8,new Promise((function(e,t){var n=function(){return t(new Error("Could not load remote twitter widgets js"))};Xe().ready(Ze,{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](tt(t),u,tt(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(l&&l.current){o.next=23;break}return o.abrupt("return");case 23:if(!i){o.next=26;break}return u&&u.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){nt(i,n,r,a,l,"next",e)}function l(e){nt(i,n,r,a,l,"throw",e)}a(void 0)}))});return function(){return u.apply(this,arguments)}}();(o=l.current)&&o.querySelectorAll("*").forEach((function(e){e.hasAttribute("twdiv")&&e.remove()})),u()}return function(){i=!0}}),c),{ref:l,error:i}}("createTweet",t,n,r),a=i.ref,l=i.error;return u.createElement("div",{ref:a},l&&o&&o(l))},it=o(6647);function at(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 lt(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 st,ut,ct,dt,ft,pt,ht,gt,mt,vt,yt,bt,wt,xt=function(){},kt=xt(),Et=Object,St=function(e){return e===kt},_t=function(e){return"function"==typeof e},Ct=function(e,t){return Et.assign({},e,t)},Ot="undefined",Lt=function(){return typeof window!=Ot},Pt=new WeakMap,jt=0,Rt=function(e){var t,n,r=typeof e,o=e&&e.constructor,i=o==Date;if(Et(e)!==e||i||o==RegExp)t=i?e.toJSON():"symbol"==r?e.toString():"string"==r?JSON.stringify(e):""+e;else{if(t=Pt.get(e))return t;if(t=++jt+"~",Pt.set(e,t),o==Array){for(t="@",n=0;n<e.length;n++)t+=Rt(e[n])+",";Pt.set(e,t)}if(o==Et){t="#";for(var a=Et.keys(e).sort();!St(n=a.pop());)St(e[n])||(t+=n+":"+Rt(e[n])+",");Pt.set(e,t)}}return t},Tt=!0,At=Lt(),Mt=typeof document!=Ot,It=At&&window.addEventListener?window.addEventListener.bind(window):xt,Dt=Mt?document.addEventListener.bind(document):xt,Ft=At&&window.removeEventListener?window.removeEventListener.bind(window):xt,Nt=Mt?document.removeEventListener.bind(document):xt,zt={isOnline:function(){return Tt},isVisible:function(){var e=Mt&&document.visibilityState;return St(e)||"hidden"!==e}},$t={initFocus:function(e){return Dt("visibilitychange",e),It("focus",e),function(){Nt("visibilitychange",e),Ft("focus",e)}},initReconnect:function(e){var t=function(){Tt=!0,e()},n=function(){Tt=!1};return It("online",t),It("offline",n),function(){Ft("online",t),Ft("offline",n)}}},Bt=!Lt()||"Deno"in window,Wt=Bt?u.useEffect:u.useLayoutEffect,Ht="undefined"!=typeof navigator&&navigator.connection,Ut=!Bt&&Ht&&(["slow-2g","2g"].includes(Ht.effectiveType)||Ht.saveData),Vt=function(e){if(_t(e))try{e=e()}catch(t){e=""}var t=[].concat(e);return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?Rt(e):"",t,e?"$swr$"+e:""]},qt=new WeakMap,Gt=function(e,t,n,r,o,i,a){void 0===a&&(a=!0);var l=qt.get(e),s=l[0],u=l[1],c=l[3],d=s[t],f=u[t];if(a&&f)for(var p=0;p<f.length;++p)f[p](n,r,o);return i&&(delete c[t],d&&d[0])?d[0](2).then((function(){return e.get(t)})):e.get(t)},Kt=0,Xt=function(){return++Kt},Yt=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return at(void 0,void 0,void 0,(function(){var t,n,r,o,i,a,l,s,u,c,d,f,p,h,g,m,v,y,b,w,x;return lt(this,(function(k){switch(k.label){case 0:if(t=e[0],n=e[1],r=e[2],o=e[3],a=!!St((i="boolean"==typeof o?{revalidate:o}:o||{}).populateCache)||i.populateCache,l=!1!==i.revalidate,s=!1!==i.rollbackOnError,u=i.optimisticData,c=Vt(n),d=c[0],f=c[2],!d)return[2];if(p=qt.get(t),h=p[2],e.length<3)return[2,Gt(t,d,t.get(d),kt,kt,l,!0)];if(g=r,v=Xt(),h[d]=[v,0],y=!St(u),b=t.get(d),y&&(w=_t(u)?u(b):u,t.set(d,w),Gt(t,d,w)),_t(g))try{g=g(t.get(d))}catch(e){m=e}return g&&_t(g.then)?[4,g.catch((function(e){m=e}))]:[3,2];case 1:if(g=k.sent(),v!==h[d][0]){if(m)throw m;return[2,g]}m&&y&&s&&(a=!0,g=b,t.set(d,b)),k.label=2;case 2:return a&&(m||(_t(a)&&(g=a(g,b)),t.set(d,g)),t.set(f,Ct(t.get(f),{error:m}))),h[d][1]=Xt(),[4,Gt(t,d,g,m,kt,l,!!a)];case 3:if(x=k.sent(),m)throw m;return[2,a?x:g]}}))}))},Zt=function(e,t){for(var n in e)e[n][0]&&e[n][0](t)},Qt=function(e,t){if(!qt.has(e)){var n=Ct($t,t),r={},o=Yt.bind(kt,e),i=xt;if(qt.set(e,[r,{},{},{},o]),!Bt){var a=n.initFocus(setTimeout.bind(kt,Zt.bind(kt,r,0))),l=n.initReconnect(setTimeout.bind(kt,Zt.bind(kt,r,1)));i=function(){a&&a(),l&&l(),qt.delete(e)}}return[e,o,i]}return[e,qt.get(e)[4]]},Jt=Qt(new Map),en=Jt[0],tn=Jt[1],nn=Ct({onLoadingSlow:xt,onSuccess:xt,onError:xt,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;!St(i)&&a>i||setTimeout(r,l,o)},onDiscarded:xt,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:Ut?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:Ut?5e3:3e3,compare:function(e,t){return Rt(e)==Rt(t)},isPaused:function(){return!1},cache:en,mutate:tn,fallback:{}},zt),rn=function(e,t){var n=Ct(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=Ct(o,a))}return n},on=(0,u.createContext)({}),an=function(e){return _t(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}]},ln=function(){return Ct(nn,(0,u.useContext)(on))},sn=function(e,t,n){var r=t[e]||(t[e]=[]);return r.push(n),function(){var e=r.indexOf(n);e>=0&&(r[e]=r[r.length-1],r.pop())}},un={dedupe:!0},cn=(Et.defineProperty((function(e){var t=e.value,n=rn((0,u.useContext)(on),t),r=t&&t.provider,o=(0,u.useState)((function(){return r?Qt(r(n.cache||en),t):kt}))[0];return o&&(n.cache=o[0],n.mutate=o[1]),Wt((function(){return o?o[2]:kt}),[]),(0,u.createElement)(on.Provider,Ct(e,{value:n}))}),"default",{value:nn}),st=function(e,t,n){var r=n.cache,o=n.compare,i=n.fallbackData,a=n.suspense,l=n.revalidateOnMount,s=n.refreshInterval,c=n.refreshWhenHidden,d=n.refreshWhenOffline,f=qt.get(r),p=f[0],h=f[1],g=f[2],m=f[3],v=Vt(e),y=v[0],b=v[1],w=v[2],x=(0,u.useRef)(!1),k=(0,u.useRef)(!1),E=(0,u.useRef)(y),S=(0,u.useRef)(t),_=(0,u.useRef)(n),C=function(){return _.current},O=function(){return C().isVisible()&&C().isOnline()},L=function(e){return r.set(w,Ct(r.get(w),e))},P=r.get(y),j=St(i)?n.fallback[y]:i,R=St(P)?j:P,T=r.get(w)||{},A=T.error,M=!x.current,I=function(){return M&&!St(l)?l:!C().isPaused()&&(a?!St(R)&&n.revalidateIfStale:St(R)||n.revalidateIfStale)},D=!(!y||!t)&&(!!T.isValidating||M&&I()),F=function(e,t){var n=(0,u.useState)({})[1],r=(0,u.useRef)(e),o=(0,u.useRef)({data:!1,error:!1,isValidating:!1}),i=(0,u.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 Wt((function(){r.current=e})),[r,o.current,i]}({data:R,error:A,isValidating:D},k),N=F[0],z=F[1],$=F[2],B=(0,u.useCallback)((function(e){return at(void 0,void 0,void 0,(function(){var t,i,a,l,s,u,c,d,f,p,h,v,w;return lt(this,(function(_){switch(_.label){case 0:if(t=S.current,!y||!t||k.current||C().isPaused())return[2,!1];l=!0,s=e||{},u=!m[y]||!s.dedupe,c=function(){return!k.current&&y===E.current&&x.current},d=function(){var e=m[y];e&&e[1]===a&&delete m[y]},f={isValidating:!1},p=function(){L({isValidating:!1}),c()&&$(f)},L({isValidating:!0}),$({isValidating:!0}),_.label=1;case 1:return _.trys.push([1,3,,4]),u&&(Gt(r,y,N.current.data,N.current.error,!0),n.loadingTimeout&&!r.get(y)&&setTimeout((function(){l&&c()&&C().onLoadingSlow(y,n)}),n.loadingTimeout),m[y]=[t.apply(void 0,b),Xt()]),w=m[y],i=w[0],a=w[1],[4,i];case 2:return i=_.sent(),u&&setTimeout(d,n.dedupingInterval),m[y]&&m[y][1]===a?(L({error:kt}),f.error=kt,h=g[y],!St(h)&&(a<=h[0]||a<=h[1]||0===h[1])?(p(),u&&c()&&C().onDiscarded(y),[2,!1]):(o(N.current.data,i)?f.data=N.current.data:f.data=i,o(r.get(y),i)||r.set(y,i),u&&c()&&C().onSuccess(i,y,n),[3,4])):(u&&c()&&C().onDiscarded(y),[2,!1]);case 3:return v=_.sent(),d(),C().isPaused()||(L({error:v}),f.error=v,u&&c()&&(C().onError(v,y,n),("boolean"==typeof n.shouldRetryOnError&&n.shouldRetryOnError||_t(n.shouldRetryOnError)&&n.shouldRetryOnError(v))&&O()&&C().onErrorRetry(v,y,n,B,{retryCount:(s.retryCount||0)+1,dedupe:!0}))),[3,4];case 4:return l=!1,p(),c()&&u&&Gt(r,y,f.data,f.error,!1),[2,!0]}}))}))}),[y]),W=(0,u.useCallback)(Yt.bind(kt,r,(function(){return E.current})),[]);if(Wt((function(){S.current=t,_.current=n})),Wt((function(){if(y){var e=y!==E.current,t=B.bind(kt,un),n=0,r=sn(y,h,(function(e,t,n){$(Ct({error:t,isValidating:n},o(N.current.data,e)?kt:{data:e}))})),i=sn(y,p,(function(e){if(0==e){var r=Date.now();C().revalidateOnFocus&&r>n&&O()&&(n=r+C().focusThrottleInterval,t())}else if(1==e)C().revalidateOnReconnect&&O()&&t();else if(2==e)return B()}));return k.current=!1,E.current=y,x.current=!0,e&&$({data:R,error:A,isValidating:D}),I()&&(St(R)||Bt?t():(a=t,Lt()&&typeof window.requestAnimationFrame!=Ot?window.requestAnimationFrame(a):setTimeout(a,1))),function(){k.current=!0,r(),i()}}var a}),[y,B]),Wt((function(){var e;function t(){var t=_t(s)?s(R):s;t&&-1!==e&&(e=setTimeout(n,t))}function n(){N.current.error||!c&&!C().isVisible()||!d&&!C().isOnline()?t():B(un).then(t)}return t(),function(){e&&(clearTimeout(e),e=-1)}}),[s,c,d,B]),(0,u.useDebugValue)(R),a&&St(R)&&y)throw S.current=t,_.current=n,k.current=!1,St(A)?B(un):A;return{mutate:W,get data(){return z.data=!0,R},get error(){return z.error=!0,A},get isValidating(){return z.isValidating=!0,D}}},function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=ln(),r=an(e),o=r[0],i=r[1],a=r[2],l=rn(n,a),s=st,u=l.use;if(u)for(var c=u.length;c-- >0;)s=u[c](s);return s(o,i||l.fetcher,l)}),dn={prod:{webBaseURL:null!==(ut=window.omnivoreEnv.NEXT_PUBLIC_BASE_URL)&&void 0!==ut?ut:"",serverBaseURL:null!==(ct=window.omnivoreEnv.NEXT_PUBLIC_SERVER_BASE_URL)&&void 0!==ct?ct:"",highlightsBaseURL:null!==(dt=window.omnivoreEnv.NEXT_PUBLIC_HIGHLIGHTS_BASE_URL)&&void 0!==dt?dt:""},dev:{webBaseURL:null!==(ft=window.omnivoreEnv.NEXT_PUBLIC_DEV_BASE_URL)&&void 0!==ft?ft:"",serverBaseURL:null!==(pt=window.omnivoreEnv.NEXT_PUBLIC_DEV_SERVER_BASE_URL)&&void 0!==pt?pt:"",highlightsBaseURL:null!==(ht=window.omnivoreEnv.NEXT_PUBLIC_DEV_HIGHLIGHTS_BASE_URL)&&void 0!==ht?ht:""},demo:{webBaseURL:null!==(gt=window.omnivoreEnv.NEXT_PUBLIC_DEMO_BASE_URL)&&void 0!==gt?gt:"",serverBaseURL:null!==(mt=window.omnivoreEnv.NEXT_PUBLIC_DEMO_SERVER_BASE_URL)&&void 0!==mt?mt:"",highlightsBaseURL:null!==(vt=window.omnivoreEnv.NEXT_PUBLIC_DEMO_HIGHLIGHTS_BASE_URL)&&void 0!==vt?vt:""},local:{webBaseURL:null!==(yt=window.omnivoreEnv.NEXT_PUBLIC_LOCAL_BASE_URL)&&void 0!==yt?yt:"",serverBaseURL:null!==(bt=window.omnivoreEnv.NEXT_PUBLIC_LOCAL_SERVER_BASE_URL)&&void 0!==bt?bt:"",highlightsBaseURL:null!==(wt=window.omnivoreEnv.NEXT_PUBLIC_LOCAL_HIGHLIGHTS_BASE_URL)&&void 0!==wt?wt:""}};function fn(e){var t=dn[hn].serverBaseURL;if(0==t.length)throw new Error("Couldn't find environment variable for server base url in ".concat(e," environment"));return t}var pn,hn=window.omnivoreEnv.NEXT_PUBLIC_APP_ENV||"prod",gn=(window.omnivoreEnv.SENTRY_DSN||window.omnivoreEnv.NEXT_PUBLIC_SENTRY_DSN,window.omnivoreEnv.NEXT_PUBLIC_PSPDFKIT_LICENSE_KEY,window.omnivoreEnv.SSO_JWT_SECRET,"".concat(dn[hn].serverBaseURL,"local"==hn?"/api/auth/gauth-redirect-localhost":"/api/auth/vercel/gauth-redirect"),"".concat(dn[hn].serverBaseURL,"local"==hn?"/api/auth/apple-redirect-localhost":"/api/auth/vercel/apple-redirect"),window.omnivoreEnv.NEXT_PUBLIC_INTERCOM_APP_ID,window.omnivoreEnv.NEXT_PUBLIC_SEGMENT_API_KEY,"prod"==hn?window.omnivoreEnv.NEXT_PUBLIC_GOOGLE_ID:window.omnivoreEnv.NEXT_PUBLIC_DEV_GOOGLE_ID,"".concat(fn(hn),"/api/graphql")),mn="".concat(fn(hn),"/api");function vn(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 yn(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){vn(i,r,o,a,l,"next",e)}function l(e){vn(i,r,o,a,l,"throw",e)}a(void 0)}))}}function bn(){var e,t,n=(null===(e=window)||void 0===e?void 0:e.localStorage.getItem("authToken"))||void 0,r=(null===(t=window)||void 0===t?void 0:t.localStorage.getItem("pendingUserAuth"))||void 0;return n?{authorization:n}:r?{pendingUserAuth:r}:{}}function wn(e,t){return xn(e,t,!1)}function xn(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];n&&kn();var r=new it.GraphQLClient(gn,{credentials:"include",mode:"cors"});return r.request(e,t,bn())}function kn(){return En.apply(this,arguments)}function En(){return(En=yn(regeneratorRuntime.mark((function e(){var t,n,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("undefined"!=typeof window){e.next=2;break}return e.abrupt("return");case 2:if(!window.localStorage.getItem("authVerified")){e.next=4;break}return e.abrupt("return");case 4:return e.prev=4,e.next=7,fetch("".concat(mn,"/auth/verify"),{credentials:"include",mode:"cors",headers:bn()});case 7:if(200===(t=e.sent).status){e.next=10;break}return e.abrupt("return");case 10:return e.next=12,t.json();case 12:n=e.sent,r=n.authStatus,e.t0=r,e.next="AUTHENTICATED"===e.t0?17:"PENDING_USER"===e.t0?19:"NOT_AUTHENTICATED"===e.t0?21:22;break;case 17:return window.localStorage.setItem("authVerified","true"),e.abrupt("break",22);case 19:return"/confirm-profile"!==window.location.pathname&&(window.location.href="/confirm-profile"),e.abrupt("break",22);case 21:"/login"!==window.location.pathname&&(window.location.href="/login?errorCodes=AUTH_FAILED");case 22:e.next=27;break;case 24:return e.prev=24,e.t1=e.catch(4),e.abrupt("return");case 27:case"end":return e.stop()}}),e,null,[[4,24]])})))).apply(this,arguments)}(function(e){if(0==dn[hn].highlightsBaseURL.length)throw new Error("Couldn't find environment variable for highlights base url in ".concat(e," environment"))})(hn),function(e){if(0==dn[hn].webBaseURL.length)throw new Error("Couldn't find environment variable for web base url in ".concat(e," environment"))}(hn);var Sn,_n,Cn,On=(0,it.gql)(pn||(Sn=["\n query GetUserPersonalization {\n getUserPersonalization {\n ... on GetUserPersonalizationSuccess {\n userPersonalization {\n id\n theme\n margin\n fontSize\n fontFamily\n libraryLayoutType\n librarySortOrder\n }\n }\n ... on GetUserPersonalizationError {\n errorCodes\n }\n }\n }\n"],_n||(_n=Sn.slice(0)),pn=Object.freeze(Object.defineProperties(Sn,{raw:{value:Object.freeze(_n)}}))));function Ln(e){tn(On,{getUserPersonalization:{userPersonalization:e}},!1)}function Pn(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function jn(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 Rn(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){jn(i,r,o,a,l,"next",e)}function l(e){jn(i,r,o,a,l,"throw",e)}a(void 0)}))}}function Tn(e){return An.apply(this,arguments)}function An(){return An=Rn(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,it.gql)(Cn||(Cn=Pn(["\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,xn(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 Ln(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]])}))),An.apply(this,arguments)}var Mn="theme";function In(e){"undefined"!=typeof window&&(Dn(e),Tn({theme:e}))}function Dn(e){"undefined"!=typeof window&&window.localStorage.setItem(Mn,e),document.body.classList.remove(ke,we,xe,i.Light,i.Dark,i.Darker,i.Lighter,i.Sepia,i.Charcoal),document.body.classList.add(e)}function Fn(){switch(function(){if("undefined"!=typeof window)return window.localStorage.getItem(Mn)}()){case i.Light:return"Light";case i.Dark:return"Dark";case i.Darker:return"Darker";case i.Lighter:return"Lighter";case i.Sepia:return"Sepia";case i.Charcoal:return"Charcoal";default:return""}}function Nn(){var e=Fn();return"Dark"===e||"Darker"===e}var zn=o(4073),$n=o.n(zn);function Bn(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 Wn(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 Hn(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)?Hn(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 Hn(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 Un(e){var t=Nn()?"dark":"default",n=Wn((0,u.useState)(e.initialReadingProgress),2),r=n[0],o=n[1],i=Wn((0,u.useState)(e.initialAnchorIndex),2),a=i[0],l=i[1],s=Wn((0,u.useState)(!0),2),c=s[0],f=s[1],p=(0,u.useRef)(null);!function(e,t){(0,u.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||qe.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,u.useMemo)((function(){return $n()((function(e){o(e)}),2e3)}),[]);(0,u.useEffect)((function(){return function(){h.cancel()}}),[]),(0,u.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){Bn(i,r,o,a,l,"next",e)}function l(e){Bn(i,r,o,a,l,"throw",e)}a(void 0)}))})()}),[e.articleId,r]),(0,u.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,u.useRef)(void 0),i=(n=(0,u.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 Ge(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)?Ge(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,u.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,u.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,u.useEffect)((function(){if("undefined"!=typeof window&&c&&(f(!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,c]),(0,u.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,d.render)((0,Ne.jsx)(ot,{tweetId:e.getAttribute("data-tweet-id")||"",options:{theme:Nn()?"dark":"light",align:"center"}}),e)}))}),[]);var m=(0,u.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,u.useEffect)((function(){return window.addEventListener("load",m),function(){window.removeEventListener("load",m)}}),[m]),(0,Ne.jsxs)(Ne.Fragment,{children:[(0,Ne.jsx)("link",{rel:"stylesheet",href:"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.4.0/styles/".concat(t,".min.css")}),(0,Ne.jsx)($e,{ref:p,css:{maxWidth:"100%"},className:"article-inner-css","data-testid":"article-inner",dangerouslySetInnerHTML:{__html:e.content}})]})}var Vn=ge("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"},recommendedByline:{fontWeight:"bold",fontSize:"13.5px",paddingTop:"4px",mt:"0px",mb:"16px",color:"$grayTextContrast"},userName:{fontWeight:"600",fontSize:"13.5px",paddingTop:"4px",my:"6px",color:"$grayText"},userNote:{fontSize:"16px",paddingTop:"0px",marginTop:"0px",lineHeight:"1.5",color:"$grayTextContrast"},headline:{fontSize:"$4","@md":{fontSize:"$6"}},fixedHeadline:{fontSize:"24px",fontWeight:"500"},subHeadline:{fontSize:"24px",fontWeight:"500"},boldHeadline:{fontWeight:"bold",fontSize:"$4","@md":{fontSize:"$6"},margin:0},modalHeadline:{fontWeight:"500",fontSize:"24px",lineHeight:"1",color:"$grayText",margin:0},modalTitle:{fontSize:"16px",fontWeight:"600",color:"$grayText",lineHeight:"1.50",margin:0},boldText:{fontWeight:"600",fontSize:"16px",lineHeight:"1",color:"$textDefault"},shareHighlightModalAnnotation:{fontSize:"18px",lineHeight:"23.4px",color:"$utilityTextSubtle",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"},action:{fontSize:"16px",fontWeight:"500",lineHeight:"1.5"},actionLink:{fontSize:"16px",fontWeight:"500",lineHeight:"1.5",textDecoration:"underline",cursor:"pointer"},navLink:{m:0,fontSize:"$1",fontWeight:400,color:"$graySolid",cursor:"pointer","&:hover":{opacity:.7}},controlButton:{color:"$grayText",fontWeight:"500",fontFamily:"inter",fontSize:"14px"},menuTitle:{pt:"0px",m:"0px",color:"$utilityTextDefault",fontSize:16,fontFamily:"inter",fontWeight:"500",lineHeight:"unset"},libraryHeader:{pt:"0px",m:"0px",fontSize:24,fontFamily:"inter",lineHeight:"unset",fontWeight:"bold",color:"$textSubtle"},aboutFooter:{pt:"0px",m:"0px",fontSize:24,fontFamily:"inter",lineHeight:"unset",fontWeight:"bold",color:"white"},error:{color:"$error",fontSize:"$2",lineHeight:"1.25"}}},defaultVariants:{style:"footnote"}}),qn=(ge("span",Vn),ge("li",{fontFamily:"Inter",fontWeight:"normal",lineHeight:"1.35",color:"$grayTextContrast"}),ge("ul",{fontFamily:"Inter",fontWeight:"normal",lineHeight:"1.35",color:"$grayTextContrast"}),ge("img",{}),ge("a",{textDecoration:"none"}),ge("mark",{}),Intl.DateTimeFormat().resolvedOptions().locale||"en-US");function Gn(e){var t,n=e.style||"footnote",r=function(e,t){var n=new URL(e).origin,r=Kn(e);if(t){var o="".concat(function(e){return"by ".concat("string"==typeof(t=e)?t.replace(/(<([^>]+)>)/gi,""):"");var t}(t));return r?o:"".concat(o,", ").concat(new URL(e).hostname)}if(!r)return n}(e.href,e.author);return(0,Ne.jsx)($e,{children:(0,Ne.jsxs)(Vn,{style:n,css:{wordBreak:"break-word"},children:[r," ",r&&(0,Ne.jsx)("span",{style:{position:"relative",bottom:1},children:"• "})," ",(t=e.rawDisplayDate,new Intl.DateTimeFormat(qn,{dateStyle:"long"}).format(new Date(t)))," ",!e.hideButton&&!Kn(e.href)&&(0,Ne.jsxs)(Ne.Fragment,{children:[(0,Ne.jsx)("span",{style:{position:"relative",bottom:1},children:"• "})," ",(0,Ne.jsx)(We,{href:e.href,target:"_blank",rel:"noreferrer",css:{textDecoration:"underline",color:"$grayTextContrast"},children:"See original"})]})]})})}function Kn(e){var t=new URL(e).origin;return-1!=["https://storage.googleapis.com","https://omnivore.app"].indexOf(t)}var Xn=o(1427);function Yn(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 Zn="omnivore-highlight-id",Qn="omnivore-highlight-note-id",Jn="omnivore_highlight",er="article-container",tr=/^(a|b|basefont|bdo|big|em|font|i|s|small|span|strike|strong|su[bp]|tt|u|code|mark)$/i,nr=new RegExp("<".concat(Jn,">([\\s\\S]*)<\\/").concat(Jn,">"),"i"),rr=2e3;function or(e,t,n,r,o){var i,a=ur({patch:e}),l=a.prefix,s=a.suffix,u=a.highlightTextStart,c=a.highlightTextEnd,d=a.textNodes,f=a.textNodeIndex,p="";if(dr(t).length)return{prefix:l,suffix:s,quote:p,startLocation:u,endLocation:c};for(var h=function(){var e=cr({textNodes:d,startingTextNodeIndex:f,highlightTextStart:u,highlightTextEnd:c}),a=e.node,l=e.textPartsToHighlight,s=e.startsParagraph,h=a.parentNode,g=a.nextSibling,m=!1,v=a instanceof HTMLElement?a:a.parentElement;v&&(m=window.getComputedStyle(v).whiteSpace.startsWith("pre")),null==h||h.removeChild(a),l.forEach((function(e,a){var l=e.highlight,u=e.text,c=m?u:u.replace(/\n/g,""),d=document.createTextNode(u);if(l){c&&(s&&!a&&p&&(p+="\n"),p+=c);var f=document.createElement("span");return f.className=n?"highlight_with_note":"highlight",f.setAttribute(Zn,t),r&&f.setAttribute("style","background-color: ".concat(r," !important")),o&&f.setAttribute("title",o),f.appendChild(d),i=f,null==h?void 0:h.insertBefore(f,g)}return null==h?void 0:h.insertBefore(d,g)})),f++};c>d[f].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(Qn,t);var m=document.createElement("div");m.className="highlight_note_button",m.appendChild(g),m.setAttribute(Qn,t),m.setAttribute("width","14px"),m.setAttribute("height","14px"),i.appendChild(m)}return{prefix:l,suffix:s,quote:p,startLocation:u,endLocation:c}}function ir(e){var t=document.getElementById(er);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(Jn,">").concat(e.toString(),"</").concat(Jn,">").concat(r.toString()),a=new Xn.diff_match_patch,l=a.patch_toText(a.patch_make(o.toString(),i));if(!l)throw new Error("Invalid patch");return l}function ar(e){var t=ir(e),n=sr(t);return[n.highlightTextStart,n.highlightTextEnd]}var lr=function(e){var t=(null==e?void 0:e.current)||document.getElementById(er);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):(tr.test(t.tagName)||(o=!0),t.childNodes.forEach(e))})),i.push({startIndex:n,node:document.createTextNode("")}),{textNodes:i,articleText:r}},sr=function(e){if(!e)throw new Error("Invalid patch");var t,n=lr().articleText,r=new Xn.diff_match_patch,o=r.patch_apply(r.patch_fromText(e),n);if(o[1][0])t=nr.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=nr.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 ur(e){var t=e.patch;if(!t)throw new Error("Invalid patch");var n=lr().textNodes,r=sr(t),o=r.highlightTextStart,i=r.highlightTextEnd,a=Yn(n.map((function(e){return e.startIndex})),o),l=Yn(n.map((function(e){return e.startIndex})),i);return{prefix:fr({textNodes:n,startingTextNodeIndex:a,startingOffset:o-n[a].startIndex,side:"prefix"}),suffix:fr({textNodes:n,startingTextNodeIndex:l,startingOffset:i-n[l].startIndex,side:"suffix"}),highlightTextStart:o,highlightTextEnd:i,textNodes:n,textNodeIndex:a}}var cr=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,d=o-l,f=[];return c>0&&f.push({text:u.substring(0,c),highlight:!1}),f.push({text:u.substring(c,d),highlight:!0}),d<=u.length&&f.push({text:u.substring(d),highlight:!1}),{node:a,textPartsToHighlight:f,startsParagraph:s}},dr=function(e){return Array.from(document.querySelectorAll("[".concat(Zn,"='").concat(e,"']")))},fr=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>rr?l:e()+l:!n[a+1]||n[a+1].startsParagraph||l.length>rr?l:l+e()},s=n[r],u=s.startsParagraph,c=s.node.nodeValue||"",d=i?c.substring(0,o):c.substring(o);return(t=i?u?d:l()+d:!n[a+1]||n[a+1].startsParagraph?d:d+l()).length<=rr?t:i?t.slice(t.length-rr):t.substring(0,rr)},pr=function(e){var t=ur({patch:e}),n=t.highlightTextStart;return t.highlightTextEnd-n<6e3};function hr(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 gr(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){hr(i,r,o,a,l,"next",e)}function l(e){hr(i,r,o,a,l,"throw",e)}a(void 0)}))}}function mr(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 vr(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)?vr(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 vr(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 yr(){return br.apply(this,arguments)}function br(){return(br=gr(regeneratorRuntime.mark((function e(){var t,n,r,o,i,a,l,s,u;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,new Promise((function(e){setTimeout((function(){e(document.getSelection())}),100)}));case 2:if(!(!(t=e.sent)||t.isCollapsed||t.rangeCount<=0)){e.next=5;break}return e.abrupt("return",void 0);case 5:if(n=document.getElementById("article-container"),r=document.getElementById("recommendations-container"),n){e.next=9;break}throw new Error("Unable to find the article content element");case 9:if((o=new Range).selectNode(n),i=t.getRangeAt(0),!r||!i.intersectsNode(r)){e.next=15;break}return console.log("attempt to highlight in recommendations area"),e.abrupt("return",void 0);case 15:return a=i.compareBoundaryPoints(Range.START_TO_START,o),l=i.compareBoundaryPoints(Range.END_TO_END,o),s=a>=0&&l<=0,u=i.startContainer===t.focusNode&&i.endOffset===t.anchorOffset,e.abrupt("return",s?{range:i,isReverseSelected:u,selection:t}:void 0);case 20:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var wr=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 xr(){return["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document}function kr(){return navigator.userAgent.includes("Android")}function Er(){return kr()||xr()}var Sr=ge("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 13px"},ctaOutlineYellow:{boxSizing:"border-box","-moz-box-sizing":"border-box","-webkit-box-sizing":"border-box",borderColor:"unset",border:"1px solid $omnivoreCtaYellow",fontSize:"14px",fontWeight:500,fontStyle:"normal",fontFamily:"Inter",borderRadius:"8px",cursor:"pointer",color:"$utilityTextDefault",bg:"transparent",p:"9px 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",cursor:"pointer","&:hover":{opacity:.8}},themeSwitch:{p:"0px",m:"0px",ml:"0px",width:"60px",height:"48px",fontSize:"14px",border:"unset",borderRadius:"6px","&:hover":{transform:"scale(1.1)",border:"2px solid #F9D354"},'&[data-state="selected"]':{border:"2px solid #F9D354"}}}},defaultVariants:{style:"ctaWhite"}});function _r(e){return e.color,e.height,e.width,(0,Ne.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,Ne.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,Ne.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,Ne.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,Ne.jsx)("path",{d:"M12.75 6L18 11.25",stroke:"#0A0806",strokeOpacity:"0.8",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,Ne.jsx)("path",{d:"M8.95223 20.2021L3.79785 15.0477",stroke:"black",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})}ge(Sr,{variants:{style:{ctaWhite:{color:"red",padding:"10px",display:"flex",justifyContent:"center",alignItems:"center",border:"1px solid $grayBorder",boxSizing:"border-box",borderRadius:6,width:40,height:40}}}});var Cr=(0,u.createContext)({color:"currentColor",size:"1em",weight:"regular",mirrored:!1}),Or=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 Lr(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 Pr=(0,u.forwardRef)((function(e,t){var n=e.alt,r=e.color,o=e.size,i=e.weight,a=e.mirrored,l=e.children,s=e.renderPath,c=Lr(e,["alt","color","size","weight","mirrored","children","renderPath"]),d=(0,u.useContext)(Cr),f=d.color,p=void 0===f?"currentColor":f,h=d.size,g=d.weight,m=void 0===g?"regular":g,v=d.mirrored,y=void 0!==v&&v,b=Lr(d,["color","size","weight","mirrored"]);return u.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&&u.createElement("title",null,n),l,u.createElement("rect",{width:"256",height:"256",fill:"none"}),s(null!=i?i:m,null!=r?r:p))}));Pr.displayName="IconBase";const jr=Pr;var Rr=new Map;Rr.set("bold",(function(e){return u.createElement(u.Fragment,null,u.createElement("line",{x1:"216",y1:"60",x2:"40",y2:"60",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"24"}),u.createElement("line",{x1:"104",y1:"104",x2:"104",y2:"168",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"24"}),u.createElement("line",{x1:"152",y1:"104",x2:"152",y2:"168",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"24"}),u.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"}),u.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"}))})),Rr.set("duotone",(function(e){return u.createElement(u.Fragment,null,u.createElement("path",{d:"M200,56V208a8,8,0,0,1-8,8H64a8,8,0,0,1-8-8V56Z",opacity:"0.2"}),u.createElement("line",{x1:"216",y1:"56",x2:"40",y2:"56",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),u.createElement("line",{x1:"104",y1:"104",x2:"104",y2:"168",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),u.createElement("line",{x1:"152",y1:"104",x2:"152",y2:"168",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),u.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"}),u.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"}))})),Rr.set("fill",(function(){return u.createElement(u.Fragment,null,u.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"}))})),Rr.set("light",(function(e){return u.createElement(u.Fragment,null,u.createElement("line",{x1:"216",y1:"56",x2:"40",y2:"56",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"12"}),u.createElement("line",{x1:"104",y1:"104",x2:"104",y2:"168",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"12"}),u.createElement("line",{x1:"152",y1:"104",x2:"152",y2:"168",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"12"}),u.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"}),u.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"}))})),Rr.set("thin",(function(e){return u.createElement(u.Fragment,null,u.createElement("line",{x1:"216",y1:"56",x2:"40",y2:"56",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"8"}),u.createElement("line",{x1:"104",y1:"104",x2:"104",y2:"168",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"8"}),u.createElement("line",{x1:"152",y1:"104",x2:"152",y2:"168",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"8"}),u.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"}),u.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"}))})),Rr.set("regular",(function(e){return u.createElement(u.Fragment,null,u.createElement("line",{x1:"216",y1:"56",x2:"40",y2:"56",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),u.createElement("line",{x1:"104",y1:"104",x2:"104",y2:"168",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),u.createElement("line",{x1:"152",y1:"104",x2:"152",y2:"168",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),u.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"}),u.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 Tr=function(e,t){return Or(e,t,Rr)},Ar=(0,u.forwardRef)((function(e,t){return u.createElement(jr,Object.assign({ref:t},e,{renderPath:Tr}))}));Ar.displayName="Trash";const Mr=Ar;var Ir=new Map;Ir.set("bold",(function(e){return u.createElement(u.Fragment,null,u.createElement("path",{d:"M122.7,25.9,42,42,25.9,122.7a8,8,0,0,0,2.2,7.2L132.5,234.3a7.9,7.9,0,0,0,11.3,0l90.5-90.5a7.9,7.9,0,0,0,0-11.3L129.9,28.1A8,8,0,0,0,122.7,25.9Z",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"24"}),u.createElement("circle",{cx:"84",cy:"84",r:"16"}))})),Ir.set("duotone",(function(e){return u.createElement(u.Fragment,null,u.createElement("path",{d:"M122.7,25.9,42,42,25.9,122.7a8,8,0,0,0,2.2,7.2L132.5,234.3a7.9,7.9,0,0,0,11.3,0l90.5-90.5a7.9,7.9,0,0,0,0-11.3L129.9,28.1A8,8,0,0,0,122.7,25.9Z",opacity:"0.2"}),u.createElement("path",{d:"M122.7,25.9,42,42,25.9,122.7a8,8,0,0,0,2.2,7.2L132.5,234.3a7.9,7.9,0,0,0,11.3,0l90.5-90.5a7.9,7.9,0,0,0,0-11.3L129.9,28.1A8,8,0,0,0,122.7,25.9Z",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),u.createElement("circle",{cx:"84",cy:"84",r:"12"}))})),Ir.set("fill",(function(){return u.createElement(u.Fragment,null,u.createElement("path",{d:"M240,126.9,135.5,22.4A15.9,15.9,0,0,0,121.1,18L40.4,34.2a7.9,7.9,0,0,0-6.2,6.2L18,121.1a15.9,15.9,0,0,0,4.4,14.4L126.9,240a15.9,15.9,0,0,0,22.6,0L240,149.5a15.9,15.9,0,0,0,0-22.6ZM84,96A12,12,0,1,1,96,84,12,12,0,0,1,84,96Z"}))})),Ir.set("light",(function(e){return u.createElement(u.Fragment,null,u.createElement("path",{d:"M122.7,25.9,42,42,25.9,122.7a8,8,0,0,0,2.2,7.2L132.5,234.3a7.9,7.9,0,0,0,11.3,0l90.5-90.5a7.9,7.9,0,0,0,0-11.3L129.9,28.1A8,8,0,0,0,122.7,25.9Z",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"12"}),u.createElement("circle",{cx:"84",cy:"84",r:"10"}))})),Ir.set("thin",(function(e){return u.createElement(u.Fragment,null,u.createElement("path",{d:"M122.7,25.9,42,42,25.9,122.7a8,8,0,0,0,2.2,7.2L132.5,234.3a7.9,7.9,0,0,0,11.3,0l90.5-90.5a7.9,7.9,0,0,0,0-11.3L129.9,28.1A8,8,0,0,0,122.7,25.9Z",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"8"}),u.createElement("circle",{cx:"84",cy:"84",r:"8"}))})),Ir.set("regular",(function(e){return u.createElement(u.Fragment,null,u.createElement("path",{d:"M122.7,25.9,42,42,25.9,122.7a8,8,0,0,0,2.2,7.2L132.5,234.3a7.9,7.9,0,0,0,11.3,0l90.5-90.5a7.9,7.9,0,0,0,0-11.3L129.9,28.1A8,8,0,0,0,122.7,25.9Z",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),u.createElement("circle",{cx:"84",cy:"84",r:"12"}))}));var Dr=function(e,t){return Or(e,t,Ir)},Fr=(0,u.forwardRef)((function(e,t){return u.createElement(jr,Object.assign({ref:t},e,{renderPath:Dr}))}));Fr.displayName="Tag";const Nr=Fr;var zr=new Map;zr.set("bold",(function(e){return u.createElement(u.Fragment,null,u.createElement("line",{x1:"96",y1:"108",x2:"160",y2:"108",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"24"}),u.createElement("line",{x1:"96",y1:"148",x2:"116",y2:"148",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"24"}),u.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"}),u.createElement("polyline",{points:"215.3 156 156 156 156 215.3",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"24"}))})),zr.set("duotone",(function(e){return u.createElement(u.Fragment,null,u.createElement("polygon",{points:"216 160 160 160 160 216 216 160",opacity:"0.2"}),u.createElement("line",{x1:"96",y1:"96",x2:"160",y2:"96",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),u.createElement("line",{x1:"96",y1:"128",x2:"160",y2:"128",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),u.createElement("line",{x1:"96",y1:"160",x2:"128",y2:"160",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),u.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"}),u.createElement("polyline",{points:"215.3 160 160 160 160 215.3",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}))})),zr.set("fill",(function(){return u.createElement(u.Fragment,null,u.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"}))})),zr.set("light",(function(e){return u.createElement(u.Fragment,null,u.createElement("line",{x1:"96",y1:"96",x2:"160",y2:"96",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"12"}),u.createElement("line",{x1:"96",y1:"128",x2:"160",y2:"128",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"12"}),u.createElement("line",{x1:"96",y1:"160",x2:"128",y2:"160",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"12"}),u.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"}),u.createElement("polyline",{points:"215.3 160 160 160 160 215.3",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"12"}))})),zr.set("thin",(function(e){return u.createElement(u.Fragment,null,u.createElement("line",{x1:"96",y1:"96",x2:"160",y2:"96",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"8"}),u.createElement("line",{x1:"96",y1:"128",x2:"160",y2:"128",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"8"}),u.createElement("line",{x1:"96",y1:"160",x2:"128",y2:"160",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"8"}),u.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"}),u.createElement("polyline",{points:"215.3 160 160 160 160 215.3",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"8"}))})),zr.set("regular",(function(e){return u.createElement(u.Fragment,null,u.createElement("line",{x1:"96",y1:"96",x2:"160",y2:"96",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),u.createElement("line",{x1:"96",y1:"128",x2:"160",y2:"128",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),u.createElement("line",{x1:"96",y1:"160",x2:"128",y2:"160",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),u.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"}),u.createElement("polyline",{points:"215.3 160 160 160 160 215.3",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}))}));var $r=function(e,t){return Or(e,t,zr)},Br=(0,u.forwardRef)((function(e,t){return u.createElement(jr,Object.assign({ref:t},e,{renderPath:$r}))}));Br.displayName="Note";const Wr=Br;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 Ur(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){Vr(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 Vr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qr(e){return e.displayAtBottom?(0,Ne.jsx)($e,{css:{width:"100%",maxWidth:e.isNewHighlight?"280px":"330px",height:"48px",position:"fixed",background:"$grayBg",borderRadius:"4px",border:"1px solid $grayBorder",boxShadow:me.shadows.cardBoxShadow.toString(),bottom:"calc(38px + env(safe-area-inset-bottom, 40px))","@smDown":{maxWidth:"85%",bottom:"calc(28px + ".concat(kr()?30:0,"px + env(safe-area-inset-bottom, 40px))")}},children:(0,Ne.jsx)(Gr,Ur({},e))}):(0,Ne.jsx)($e,{css:{width:"100%",maxWidth:e.isNewHighlight?"280px":"330px",height:"48px",position:"absolute",background:"$grayBg",borderRadius:"4px",border:"1px solid $grayBorder",boxShadow:me.shadows.cardBoxShadow.toString(),left:e.anchorCoordinates.pageX,top:e.anchorCoordinates.pageY},children:(0,Ne.jsx)(Gr,Ur({},e))})}function Gr(e){var t=ge("div",{width:"1px",maxWidth:"1px",height:"100%",background:"$grayBorder"});return(0,Ne.jsxs)(Ue,{distribution:"evenly",alignment:"center",css:{height:"100%",alignItems:"center",width:e.displayAtBottom?"100%":"auto"},children:[e.isNewHighlight?(0,Ne.jsx)(Sr,{style:"plainIcon",title:"Create Highlight",onClick:function(){return e.handleButtonClick("create")},css:{flexDirection:"column",height:"100%",m:0,p:0,alignItems:"baseline"},children:(0,Ne.jsxs)(Ue,{css:{height:"100%",alignItems:"center"},children:[(0,Ne.jsx)(_r,{}),(0,Ne.jsx)(Vn,{style:"body",css:{pl:"12px",m:"0px",color:"$readerFont",fontWeight:"400",fontSize:"16px"},children:"Highlight"})]})}):(0,Ne.jsxs)(Ne.Fragment,{children:[(0,Ne.jsx)(Sr,{style:"plainIcon",title:"Remove Highlight",onClick:function(){return e.handleButtonClick("delete")},css:{color:"$readerFont",height:"100%",m:0,p:0},children:(0,Ne.jsxs)(Ue,{css:{height:"100%",alignItems:"center"},children:[(0,Ne.jsx)(Mr,{size:24,color:me.colors.omnivoreRed.toString()}),(0,Ne.jsx)(Vn,{style:"body",css:{pl:"12px",m:"0px",color:"$readerFont",fontWeight:"400",fontSize:"16px"},children:"Delete"})]})}),(0,Ne.jsx)(t,{}),(0,Ne.jsx)(Sr,{style:"plainIcon",title:"Set Labels",onClick:function(){return e.handleButtonClick("setHighlightLabels")},css:{color:"$readerFont",height:"100%",m:0,p:0},children:(0,Ne.jsxs)(Ue,{css:{height:"100%",alignItems:"center"},children:[(0,Ne.jsx)(Nr,{size:24,color:me.colors.readerFont.toString()}),(0,Ne.jsx)(Vn,{style:"body",css:{pl:"12px",m:"0px",color:"$readerFont",fontWeight:"400",fontSize:"16px"},children:"Labels"})]})})]}),(0,Ne.jsx)(t,{}),(0,Ne.jsx)(Sr,{style:"plainIcon",title:"Add Note to Highlight",onClick:function(){return e.handleButtonClick("comment")},css:{color:"$readerFont",height:"100%",m:0,p:0},children:(0,Ne.jsxs)(Ue,{css:{height:"100%",alignItems:"center"},children:[(0,Ne.jsx)(Wr,{size:24,color:me.colors.readerFont.toString()}),(0,Ne.jsx)(Vn,{style:"body",css:{pl:"12px",m:"0px",color:"$readerFont",fontWeight:"400",fontSize:"16px"},children:"Note"})]})})]})}function Kr(e,t){e.forEach((function(e){var t,n=(t=e,Array.from(document.querySelectorAll("[".concat(Zn,"='").concat(t,"']")))),r=function(e){return Array.from(document.querySelectorAll("[".concat(Qn,"='").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 Xr,Yr=new Uint8Array(16);function Zr(){if(!Xr&&!(Xr="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 Xr(Yr)}const Qr=/^(?:[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,Jr=function(e){return"string"==typeof e&&Qr.test(e)};for(var eo=[],to=0;to<256;++to)eo.push((to+256).toString(16).substr(1));const no=function(e,t,n){var r=(e=e||{}).random||(e.rng||Zr)();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=(eo[e[t+0]]+eo[e[t+1]]+eo[e[t+2]]+eo[e[t+3]]+"-"+eo[e[t+4]]+eo[e[t+5]]+"-"+eo[e[t+6]]+eo[e[t+7]]+"-"+eo[e[t+8]]+eo[e[t+9]]+"-"+eo[e[t+10]]+eo[e[t+11]]+eo[e[t+12]]+eo[e[t+13]]+eo[e[t+14]]+eo[e[t+15]]).toLowerCase();if(!Jr(n))throw TypeError("Stringified UUID is invalid");return n}(r)};let ro=(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 oo(e){var t=e.startContainer.nodeValue,n=e.endContainer.nodeValue,r=!!e.toString().match(/[\u1C88\u3131-\uD79D]/gi),o=r?e.startOffset:ao(e.startOffset,!1,t),i=r?e.endOffset:ao(e.endOffset,!0,n);try{e.setStart(e.startContainer,o),e.setEnd(e.endContainer,i)}catch(e){console.warn("Unable to snap selection to the next word")}}var io=function(e){return!!e&&/\u2014|\u2013|,|\s/.test(e)};function ao(e,t,n){if(!n)return e;var r=n.split(""),o=e;if(t){if(io(r[o-1]))return o-1;for(;o<n.length;){if(io(r[o]))return o;o++}}else{if(io(r[o]))return o+1;for(;o>0;){if(io(r[o-1]))return o;o--}}return o}function lo(e){return function(e){if(Array.isArray(e))return so(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 so(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)?so(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 so(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 uo(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 co(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?uo(Object(n),!0).forEach((function(t){fo(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function fo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function po(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 ho(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){po(i,r,o,a,l,"next",e)}function l(e){po(i,r,o,a,l,"throw",e)}a(void 0)}))}}function go(e,t){return mo.apply(this,arguments)}function mo(){return(mo=ho(regeneratorRuntime.mark((function e(t,n){var r,o,i,a,l,s,u,c,d,f,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,oo(i),l=no(),s=ir(i),pr(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)})),Kr(t.selection.overlapHighlights,t.highlightStartEndOffsets)),c=or(s,l,u.length>0),d={prefix:c.prefix,suffix:c.suffix,quote:c.quote,id:l,shortId:ro(8),patch:s,annotation:u.length>0?u.join("\n"):void 0,articleId:t.articleId,highlightPositionPercent:t.highlightPositionPercent,highlightPositionAnchorIndex:t.highlightPositionAnchorIndex},p=t.existingHighlights,!r){e.next=23;break}return e.next=19,n.mergeHighlightMutation(co(co({},d),{},{overlapHighlightIdList:t.selection.overlapHighlights}));case 19:f=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(d);case 25:f=e.sent;case 26:if(!f){e.next=31;break}return h=[].concat(lo(p),[f]),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)}var vo=new WeakMap,yo=new WeakMap,bo={},wo=0,xo=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];bo[n]||(bo[n]=new WeakMap);var o=bo[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=(vo.get(e)||0)+1,u=(o.get(e)||0)+1;vo.set(e,l),o.set(e,u),i.push(e),1===l&&r&&yo.set(e,!0),1===u&&e.setAttribute(n,"true"),r||e.setAttribute("aria-hidden","true")}}))};return s(t),a.clear(),wo++,function(){i.forEach((function(e){var t=vo.get(e)-1,r=o.get(e)-1;vo.set(e,t),o.set(e,r),t||(yo.has(e)||e.removeAttribute("aria-hidden"),yo.delete(e)),r||e.removeAttribute(n)})),--wo||(vo=new WeakMap,vo=new WeakMap,yo=new WeakMap,bo={})}},ko=function(){return ko=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},ko.apply(this,arguments)};function Eo(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}var So="right-scroll-bar-position",_o="width-before-scroll-bar";function Co(e){return e}var Oo=function(e){void 0===e&&(e={});var t=function(e,t){void 0===t&&(t=Co);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=ko({async:!0,ssr:!1},e),t}();var Lo=function(){},Po=u.forwardRef((function(e,t){var n=u.useRef(null),r=u.useState({onScrollCapture:Lo,onWheelCapture:Lo,onTouchMoveCapture:Lo}),o=r[0],i=r[1],a=e.forwardProps,l=e.children,s=e.className,c=e.removeScrollBar,d=e.enabled,f=e.shards,p=e.sideCar,h=e.noIsolation,g=e.inert,m=e.allowPinchZoom,v=e.as,y=void 0===v?"div":v,b=Eo(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,u.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]),k=ko({},b,o);return u.createElement(u.Fragment,null,d&&u.createElement(w,{sideCar:Oo,removeScrollBar:c,shards:f,noIsolation:h,inert:g,setCallbacks:i,allowPinchZoom:!!m,lockRef:n}),a?u.cloneElement(u.Children.only(l),ko({},k,{ref:x})):u.createElement(y,ko({},k,{className:s,ref:x}),l))}));Po.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Po.classNames={fullWidth:_o,zeroRight:So};var jo=function(e){var t=e.sideCar,n=Eo(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 u.createElement(r,ko({},n))};jo.isSideCarExport=!0;var Ro=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)}}},To=function(){var e,t=(e=Ro(),function(t){u.useEffect((function(){return e.add(t),function(){e.remove()}}),[])});return function(e){var n=e.styles;return t(n),null}},Ao={left:0,top:0,right:0,gap:0},Mo=function(e){return parseInt(e||"",10)||0},Io=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return Ao;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[Mo(n),Mo(r),Mo(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])}},Do=To(),Fo=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 ."+So+" {\n right: "+l+"px "+r+";\n }\n \n ."+_o+" {\n margin-right: "+l+"px "+r+";\n }\n \n ."+So+" ."+So+" {\n right: 0 "+r+";\n }\n \n ."+_o+" ."+_o+" {\n margin-right: 0 "+r+";\n }\n \n body {\n --removed-body-scroll-bar-size: "+l+"px;\n }\n"},No=function(e){var t=u.useState(Io(e.gapMode)),n=t[0],r=t[1];u.useEffect((function(){r(Io(e.gapMode))}),[e.gapMode]);var o=e.noRelative,i=e.noImportant,a=e.gapMode,l=void 0===a?"margin":a;return u.createElement(Do,{styles:Fo(n,!o,l,i?"":"!important")})},zo=function(e,t){var n=t;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),$o(e,n)){var r=Bo(e,n);if(r[1]>r[2])return!0}n=n.parentNode}while(n&&n!==document.body);return!1},$o=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)},Bo=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)},Wo=!1;if("undefined"!=typeof window)try{var Ho=Object.defineProperty({},"passive",{get:function(){return Wo=!0,!0}});window.addEventListener("test",Ho,Ho),window.removeEventListener("test",Ho,Ho)}catch(e){Wo=!1}var Uo=!!Wo&&{passive:!1},Vo=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},qo=function(e){return[e.deltaX,e.deltaY]},Go=function(e){return e&&"current"in e?e.current:e},Ko=function(e){return"\n .block-interactivity-"+e+" {pointer-events: none;}\n .allow-interactivity-"+e+" {pointer-events: all;}\n"},Xo=0,Yo=[];const Zo=(Qo=function(e){var t=u.useRef([]),n=u.useRef([0,0]),r=u.useRef(),o=u.useState(Xo++)[0],i=u.useState((function(){return To()}))[0],a=u.useRef(e);u.useEffect((function(){a.current=e}),[e]),u.useEffect((function(){if(e.inert){document.body.classList.add("block-interactivity-"+o);var t=[e.lockRef.current].concat((e.shards||[]).map(Go)).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=u.useCallback((function(e,t){if("touches"in e&&2===e.touches.length)return!a.current.allowPinchZoom;var o,i=Vo(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,d=Math.abs(s)>Math.abs(u)?"h":"v",f=zo(d,c);if(!f)return!0;if(f?o=d:(o="v"===d?"h":"v",f=zo(d,c)),!f)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,d=0;do{var f=Bo(e,a),p=f[0],h=f[1]-f[2]-p;(p||h)&&$o(e,a)&&(c+=h,d+=p),a=a.parentNode}while(!l&&a!==document.body||l&&(t.contains(a)||t===a));return(u&&(0===c||!1)||!u&&(0===d||!1))&&(s=!0),s}(p,t,e,"h"===p?s:u)}),[]),s=u.useCallback((function(e){var n=e;if(Yo.length&&Yo[Yo.length-1]===i){var r="deltaY"in n?qo(n):Vo(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(Go).filter(Boolean).filter((function(e){return e.contains(n.target)}));(s.length>0?l(n,s[0]):!a.current.noIsolation)&&n.preventDefault()}}}),[]),c=u.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)}),[]),d=u.useCallback((function(e){n.current=Vo(e),r.current=void 0}),[]),f=u.useCallback((function(t){c(t.type,qo(t),t.target,l(t,e.lockRef.current))}),[]),p=u.useCallback((function(t){c(t.type,Vo(t),t.target,l(t,e.lockRef.current))}),[]);u.useEffect((function(){return Yo.push(i),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",s,Uo),document.addEventListener("touchmove",s,Uo),document.addEventListener("touchstart",d,Uo),function(){Yo=Yo.filter((function(e){return e!==i})),document.removeEventListener("wheel",s,Uo),document.removeEventListener("touchmove",s,Uo),document.removeEventListener("touchstart",d,Uo)}}),[]);var h=e.removeScrollBar,g=e.inert;return u.createElement(u.Fragment,null,g?u.createElement(i,{styles:Ko(o)}):null,h?u.createElement(No,{gapMode:"margin"}):null)},Oo.useMedium(Qo),jo);var Qo,Jo=u.forwardRef((function(e,t){return u.createElement(Po,ko({},e,{ref:t,sideCar:Zo}))}));Jo.classNames=Po.classNames;const ei=Jo;let ti=0;function ni(){u.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:ri()),document.body.insertAdjacentElement("beforeend",null!==(t=n[1])&&void 0!==t?t:ri()),ti++,()=>{1===ti&&document.querySelectorAll("[data-radix-focus-guard]").forEach((e=>e.remove())),ti--}}),[])}function ri(){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 oi=["a","button","div","h2","h3","img","li","nav","ol","p","span","svg","ul"].reduce(((e,t)=>({...e,[t]:u.forwardRef(((e,n)=>{const{asChild:r,...o}=e,i=r?Ce:t;return u.useEffect((()=>{window[Symbol.for("radix-ui")]=!0}),[]),u.createElement(i,_e({},o,{ref:n}))}))})),{}),ii=Boolean(null===globalThis||void 0===globalThis?void 0:globalThis.document)?u.useLayoutEffect:()=>{},ai=e=>{const{present:t,children:n}=e,r=function(e){const[t,n]=u.useState(),r=u.useRef({}),o=u.useRef(e),i=u.useRef("none"),a=e?"mounted":"unmounted",[l,s]=function(e,t){return u.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 u.useEffect((()=>{const e=li(r.current);i.current="mounted"===l?e:"none"}),[l]),ii((()=>{const t=r.current,n=o.current;if(n!==e){const r=i.current,a=li(t);if(e)s("MOUNT");else if("none"===a||"none"===(null==t?void 0:t.display))s("UNMOUNT");else{const e=r!==a;s(n&&e?"ANIMATION_OUT":"UNMOUNT")}o.current=e}}),[e,s]),ii((()=>{if(t){const e=e=>{const n=li(r.current).includes(e.animationName);e.target===t&&n&&s("ANIMATION_END")},n=e=>{e.target===t&&(i.current=li(r.current))};return t.addEventListener("animationstart",n),t.addEventListener("animationcancel",e),t.addEventListener("animationend",e),()=>{t.removeEventListener("animationstart",n),t.removeEventListener("animationcancel",e),t.removeEventListener("animationend",e)}}s("ANIMATION_END")}),[t,s]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:u.useCallback((e=>{e&&(r.current=getComputedStyle(e)),n(e)}),[])}}(t),o="function"==typeof n?n({present:r.isPresent}):u.Children.only(n),i=Se(r.ref,o.ref);return"function"==typeof n||r.isPresent?u.cloneElement(o,{ref:i}):null};function li(e){return(null==e?void 0:e.animationName)||"none"}function si(e){const t=u.useRef(e);return u.useEffect((()=>{t.current=e})),u.useMemo((()=>(...e)=>{var n;return null===(n=t.current)||void 0===n?void 0:n.call(t,...e)}),[])}ai.displayName="Presence";const ui={bubbles:!1,cancelable:!0},ci=u.forwardRef(((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...a}=e,[l,s]=u.useState(null),c=si(o),d=si(i),f=u.useRef(null),p=Se(t,(e=>s(e))),h=u.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;u.useEffect((()=>{if(r){function e(e){if(h.paused||!l)return;const t=e.target;l.contains(t)?f.current=t:hi(f.current,{select:!0})}function t(e){!h.paused&&l&&(l.contains(e.relatedTarget)||hi(f.current,{select:!0}))}return document.addEventListener("focusin",e),document.addEventListener("focusout",t),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t)}}}),[r,l,h.paused]),u.useEffect((()=>{if(l){gi.add(h);const e=document.activeElement;if(!l.contains(e)){const t=new Event("focusScope.autoFocusOnMount",ui);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(hi(r,{select:t}),document.activeElement!==n)return}(di(l).filter((e=>"A"!==e.tagName)),{select:!0}),document.activeElement===e&&hi(l))}return()=>{l.removeEventListener("focusScope.autoFocusOnMount",c),setTimeout((()=>{const t=new Event("focusScope.autoFocusOnUnmount",ui);l.addEventListener("focusScope.autoFocusOnUnmount",d),l.dispatchEvent(t),t.defaultPrevented||hi(null!=e?e:document.body,{select:!0}),l.removeEventListener("focusScope.autoFocusOnUnmount",d),gi.remove(h)}),0)}}}),[l,c,d,h]);const g=u.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=di(e);return[fi(t,e),fi(t.reverse(),e)]}(t);r&&i?e.shiftKey||o!==i?e.shiftKey&&o===r&&(e.preventDefault(),n&&hi(i,{select:!0})):(e.preventDefault(),n&&hi(r,{select:!0})):o===t&&e.preventDefault()}}),[n,r,h.paused]);return u.createElement(oi.div,_e({tabIndex:-1},a,{ref:p,onKeyDown:g}))}));function di(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 fi(e,t){for(const n of e)if(!pi(n,{upTo:t}))return n}function pi(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 hi(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 gi=function(){let e=[];return{add(t){const n=e[0];t!==n&&(null==n||n.pause()),e=mi(e,t),e.unshift(t)},remove(t){var n;e=mi(e,t),null===(n=e[0])||void 0===n||n.resume()}}}();function mi(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}function vi(e){const t=si(e);u.useEffect((()=>{const e=e=>{"Escape"===e.key&&t(e)};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)}),[t])}let yi,bi=0;function wi(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 xi=u.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),ki=u.forwardRef(((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:a,onDismiss:l,...s}=e,c=u.useContext(xi),[d,f]=u.useState(null),[,p]=u.useState({}),h=Se(t,(e=>f(e))),g=Array.from(c.layers),[m]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),v=g.indexOf(m),y=d?g.indexOf(d):-1,b=c.layersWithOutsidePointerEventsDisabled.size>0,w=y>=v,x=function(e){const t=si((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=u.useRef(!1);return u.useEffect((()=>{const e=e=>{e.target&&!n.current&&Si("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}}(),k=function(e){const t=si((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=u.useRef(!1);return u.useEffect((()=>{const e=e=>{e.target&&!n.current&&Si("dismissableLayer.focusOutside",t,{originalEvent:e})};return document.addEventListener("focusin",e),()=>document.removeEventListener("focusin",e)}),[t]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}();return vi((e=>{y===c.layers.size-1&&(null==r||r(e),e.defaultPrevented||null==l||l())})),function({disabled:e}){const t=u.useRef(!1);ii((()=>{if(e){function n(){bi--,0===bi&&(document.body.style.pointerEvents=yi)}function r(e){t.current="mouse"!==e.pointerType}return 0===bi&&(yi=document.body.style.pointerEvents),document.body.style.pointerEvents="none",bi++,document.addEventListener("pointerup",r),()=>{t.current?document.addEventListener("click",n,{once:!0}):n(),document.removeEventListener("pointerup",r)}}}),[e])}({disabled:n}),u.useEffect((()=>{d&&(n&&c.layersWithOutsidePointerEventsDisabled.add(d),c.layers.add(d),Ei())}),[d,n,c]),u.useEffect((()=>()=>{d&&(c.layers.delete(d),c.layersWithOutsidePointerEventsDisabled.delete(d),Ei())}),[d,c]),u.useEffect((()=>{const e=()=>p({});return document.addEventListener("dismissableLayer.update",e),()=>document.removeEventListener("dismissableLayer.update",e)}),[]),u.createElement(oi.div,_e({},s,{ref:h,style:{pointerEvents:b?w?"auto":"none":void 0,...e.style},onFocusCapture:wi(e.onFocusCapture,k.onFocusCapture),onBlurCapture:wi(e.onBlurCapture,k.onBlurCapture),onPointerDownCapture:wi(e.onPointerDownCapture,x.onPointerDownCapture)}))}));function Ei(){const e=new Event("dismissableLayer.update");document.dispatchEvent(e)}function Si(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)}function _i({prop:e,defaultProp:t,onChange:n=(()=>{})}){const[r,o]=function({defaultProp:e,onChange:t}){const n=u.useState(e),[r]=n,o=u.useRef(r),i=si(t);return u.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=si(n);return[a,u.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 Ci=c["useId".toString()]||(()=>{});let Oi=0;function Li(e){const[t,n]=u.useState(Ci());return ii((()=>{e||n((e=>null!=e?e:String(Oi++)))}),[e]),e||(t?`radix-${t}`:"")}function Pi(e,t=[]){let n=[];const r=()=>{const t=n.map((e=>u.createContext(e)));return function(n){const r=(null==n?void 0:n[e])||t;return u.useMemo((()=>({[`__scope${e}`]:{...n,[e]:r}})),[n,r])}};return r.scopeName=e,[function(t,r){const o=u.createContext(r),i=n.length;function a(t){const{scope:n,children:r,...a}=t,l=(null==n?void 0:n[e][i])||o,s=u.useMemo((()=>a),Object.values(a));return u.createElement(l.Provider,{value:s},r)}return n=[...n,r],a.displayName=t+"Provider",[a,function(n,a){const l=(null==a?void 0:a[e][i])||o,s=u.useContext(l);if(s)return s;if(void 0!==r)return r;throw new Error(`\`${n}\` must be used within \`${t}\``)}]},ji(r,...t)]}function ji(...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 u.useMemo((()=>({[`__scope${t.scopeName}`]:r})),[r])}};return n.scopeName=t.scopeName,n}const[Ri,Ti]=Pi("Dialog"),[Ai,Mi]=Ri("Dialog"),Ii=u.forwardRef(((e,t)=>{const{forceMount:n,...r}=e,o=Mi("DialogOverlay",e.__scopeDialog);return o.modal?u.createElement(ai,{present:n||o.open},u.createElement(Di,_e({},r,{ref:t}))):null})),Di=u.forwardRef(((e,t)=>{const{__scopeDialog:n,...r}=e,o=Mi("DialogOverlay",n);return u.createElement(ei,{as:Ce,allowPinchZoom:o.allowPinchZoom,shards:[o.contentRef]},u.createElement(oi.div,_e({"data-state":Bi(o.open)},r,{ref:t,style:{pointerEvents:"auto",...r.style}})))})),Fi=u.forwardRef(((e,t)=>{const{forceMount:n,...r}=e,o=Mi("DialogContent",e.__scopeDialog);return u.createElement(ai,{present:n||o.open},o.modal?u.createElement(Ni,_e({},r,{ref:t})):u.createElement(zi,_e({},r,{ref:t})))})),Ni=u.forwardRef(((e,t)=>{const n=Mi("DialogContent",e.__scopeDialog),r=u.useRef(null),o=Se(t,n.contentRef,r);return u.useEffect((()=>{const e=r.current;if(e)return xo(e)}),[]),u.createElement($i,_e({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:wi(e.onCloseAutoFocus,(e=>{var t;e.preventDefault(),null===(t=n.triggerRef.current)||void 0===t||t.focus()})),onPointerDownOutside:wi(e.onPointerDownOutside,(e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()})),onFocusOutside:wi(e.onFocusOutside,(e=>e.preventDefault()))}))})),zi=u.forwardRef(((e,t)=>{const n=Mi("DialogContent",e.__scopeDialog),r=u.useRef(!1);return u.createElement($i,_e({},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()}}))})),$i=u.forwardRef(((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:i,...a}=e,l=Mi("DialogContent",n),s=Se(t,u.useRef(null));return ni(),u.createElement(u.Fragment,null,u.createElement(ci,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:i},u.createElement(ki,_e({role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":Bi(l.open)},a,{ref:s,onDismiss:()=>l.onOpenChange(!1)}))),!1)}));function Bi(e){return e?"open":"closed"}const[Wi,Hi]=function(e,t){const n=u.createContext(t);function r(e){const{children:t,...r}=e,o=u.useMemo((()=>r),Object.values(r));return u.createElement(n.Provider,{value:o},t)}return r.displayName=e+"Provider",[r,function(r){const o=u.useContext(n);if(o)return o;if(void 0!==t)return t;throw new Error(`\`${r}\` must be used within \`${e}\``)}]}("DialogTitleWarning",{contentName:"DialogContent",titleName:"DialogTitle",docsSlug:"dialog"}),Ui=Ii,Vi=Fi;var qi=new Map;qi.set("bold",(function(e){return u.createElement(u.Fragment,null,u.createElement("line",{x1:"200",y1:"56",x2:"56",y2:"200",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"24"}),u.createElement("line",{x1:"200",y1:"200",x2:"56",y2:"56",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"24"}))})),qi.set("duotone",(function(e){return u.createElement(u.Fragment,null,u.createElement("line",{x1:"200",y1:"56",x2:"56",y2:"200",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),u.createElement("line",{x1:"200",y1:"200",x2:"56",y2:"56",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}))})),qi.set("fill",(function(){return u.createElement(u.Fragment,null,u.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"}))})),qi.set("light",(function(e){return u.createElement(u.Fragment,null,u.createElement("line",{x1:"200",y1:"56",x2:"56",y2:"200",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"12"}),u.createElement("line",{x1:"200",y1:"200",x2:"56",y2:"56",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"12"}))})),qi.set("thin",(function(e){return u.createElement(u.Fragment,null,u.createElement("line",{x1:"200",y1:"56",x2:"56",y2:"200",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"8"}),u.createElement("line",{x1:"200",y1:"200",x2:"56",y2:"56",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"8"}))})),qi.set("regular",(function(e){return u.createElement(u.Fragment,null,u.createElement("line",{x1:"200",y1:"56",x2:"56",y2:"200",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),u.createElement("line",{x1:"200",y1:"200",x2:"56",y2:"56",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}))}));var Gi=function(e,t){return Or(e,t,qi)},Ki=(0,u.forwardRef)((function(e,t){return u.createElement(jr,Object.assign({ref:t},e,{renderPath:Gi}))}));Ki.displayName="X";const Xi=Ki;var Yi,Zi,Qi=ge((e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:i,modal:a=!0,allowPinchZoom:l}=e,s=u.useRef(null),c=u.useRef(null),[d=!1,f]=_i({prop:r,defaultProp:o,onChange:i});return u.createElement(Ai,{scope:t,triggerRef:s,contentRef:c,contentId:Li(),titleId:Li(),descriptionId:Li(),open:d,onOpenChange:f,onOpenToggle:u.useCallback((()=>f((e=>!e))),[f]),modal:a,allowPinchZoom:l},n)}),{}),Ji=ye({"0%":{opacity:0},"100%":{opacity:1}}),ea=ge(Ui,{backgroundColor:"$overlay",width:"100vw",height:"100vh",position:"fixed",inset:0,"@media (prefers-reduced-motion: no-preference)":{animation:"".concat(Ji," 150ms cubic-bezier(0.16, 1, 0.3, 1)")}}),ta=ge(Vi,{backgroundColor:"$grayBg",borderRadius:6,boxShadow:me.shadows.cardBoxShadow.toString(),position:"fixed","&:focus":{outline:"none"},zIndex:"1"}),na=ge(ta,{top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:"90vw",maxWidth:"450px",maxHeight:"85vh","@smDown":{maxWidth:"95%",width:"95%"},zIndex:"10"}),ra=function(e){return(0,Ne.jsxs)(Ue,{distribution:"between",alignment:"center",css:{height:"68px",width:"100%"},children:[(0,Ne.jsx)(Vn,{style:"modalHeadline",children:e.title}),(0,Ne.jsx)(Sr,{css:{ml:"auto"},style:"ghost",onClick:function(){e.onOpenChange(!1)},children:(0,Ne.jsx)(Xi,{size:24,color:me.colors.textNonessential.toString()})})]})},oa=function(e){return(0,Ne.jsxs)(Ue,{alignment:"center",distribution:"end",css:{gap:"10px",width:"100%",height:"80px","input:focus":{outline:"5px auto -webkit-focus-ring-color"},"button:focus":{outline:"5px auto -webkit-focus-ring-color"}},children:[(0,Ne.jsx)(Sr,{style:"ctaOutlineYellow",type:"button",onClick:function(t){t.preventDefault(),e.onOpenChange(!1)},children:"Cancel"}),(0,Ne.jsx)(Sr,{style:"ctaDarkYellow",children:e.acceptButtonLabel||"Submit"})]})},ia=ge("textarea",{outline:"none",border:"none",overflow:"auto",resize:"none",background:"unset",color:"$grayText",fontSize:"$3",fontFamily:"inter",lineHeight:"1.35","&::placeholder":{opacity:.7}});function aa(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function la(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 sa(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){la(i,r,o,a,l,"next",e)}function l(e){la(i,r,o,a,l,"throw",e)}a(void 0)}))}}function ua(e){return ca.apply(this,arguments)}function ca(){return ca=sa(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,it.gql)(Yi||(Yi=aa(["\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,xn(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]])}))),ca.apply(this,arguments)}ge(ia,{borderRadius:"6px",border:"1px solid $grayBorder",p:"$3",fontSize:"$1"}),function(e){e[e.SET_KEY_DOWN=0]="SET_KEY_DOWN",e[e.SET_KEY_UP=1]="SET_KEY_UP"}(Zi||(Zi={}));let da,fa,pa,ha={data:""},ga=e=>"object"==typeof window?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||ha,ma=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,va=/\/\*[^]*?\*\/|\s\s+|\n/g,ya=(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]?ya(a,i):i+"{"+ya(a,"k"==i[1]?"":t)+"}":"object"==typeof a?r+=ya(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+=ya.p?ya.p(i,a):i+":"+a+";")}return n+(t&&o?t+"{"+o+"}":o)+r},ba={},wa=e=>{if("object"==typeof e){let t="";for(let n in e)t+=n+wa(e[n]);return t}return e},xa=(e,t,n,r,o)=>{let i=wa(e),a=ba[i]||(ba[i]=(e=>{let t=0,n=11;for(;t<e.length;)n=101*n+e.charCodeAt(t++)>>>0;return"go"+n})(i));if(!ba[a]){let t=i!==e?e:(e=>{let t,n=[{}];for(;t=ma.exec(e.replace(va,""));)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);ba[a]=ya(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)})(ba[a],t,r),a},ka=(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?"":ya(e,""):!1===e?"":e}return e+r+(null==i?"":i)}),"");function Ea(e){let t=this||{},n=e.call?e(t.p):e;return xa(n.unshift?n.raw?ka(n,[].slice.call(arguments,1),t.p):n.reduce(((e,n)=>Object.assign(e,n&&n.call?n(t.p):n)),{}):n,ga(t.target),t.g,t.o,t.k)}function Sa(){return Sa=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},Sa.apply(this,arguments)}Ea.bind({g:1}),Ea.bind({k:1});var _a,Ca=function(e,t){return function(e){return"function"==typeof e}(e)?e(t):e},Oa=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"}(_a||(_a={}));var La,Pa=new Map,ja=function(e){if(!Pa.has(e)){var t=setTimeout((function(){Pa.delete(e),Ma({type:_a.REMOVE_TOAST,toastId:e})}),1e3);Pa.set(e,t)}},Ra=function e(t,n){switch(n.type){case _a.ADD_TOAST:return Sa({},t,{toasts:[n.toast].concat(t.toasts).slice(0,20)});case _a.UPDATE_TOAST:return n.toast.id&&function(e){var t=Pa.get(e);t&&clearTimeout(t)}(n.toast.id),Sa({},t,{toasts:t.toasts.map((function(e){return e.id===n.toast.id?Sa({},e,n.toast):e}))});case _a.UPSERT_TOAST:var r=n.toast;return t.toasts.find((function(e){return e.id===r.id}))?e(t,{type:_a.UPDATE_TOAST,toast:r}):e(t,{type:_a.ADD_TOAST,toast:r});case _a.DISMISS_TOAST:var o=n.toastId;return o?ja(o):t.toasts.forEach((function(e){ja(e.id)})),Sa({},t,{toasts:t.toasts.map((function(e){return e.id===o||void 0===o?Sa({},e,{visible:!1}):e}))});case _a.REMOVE_TOAST:return void 0===n.toastId?Sa({},t,{toasts:[]}):Sa({},t,{toasts:t.toasts.filter((function(e){return e.id!==n.toastId}))});case _a.START_PAUSE:return Sa({},t,{pausedAt:n.time});case _a.END_PAUSE:var i=n.time-(t.pausedAt||0);return Sa({},t,{pausedAt:void 0,toasts:t.toasts.map((function(e){return Sa({},e,{pauseDuration:e.pauseDuration+i})}))})}},Ta=[],Aa={toasts:[],pausedAt:void 0},Ma=function(e){Aa=Ra(Aa,e),Ta.forEach((function(e){e(Aa)}))},Ia=function(e){return function(t,n){var r=function(e,t,n){return void 0===t&&(t="blank"),Sa({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)||Oa()})}(t,e,n);return Ma({type:_a.UPSERT_TOAST,toast:r}),r.id}},Da=function(e,t){return Ia("blank")(e,t)};Da.error=Ia("error"),Da.success=Ia("success"),Da.loading=Ia("loading"),Da.custom=Ia("custom"),Da.dismiss=function(e){Ma({type:_a.DISMISS_TOAST,toastId:e})},Da.remove=function(e){return Ma({type:_a.REMOVE_TOAST,toastId:e})},Da.promise=function(e,t,n){var r=Da.loading(t.loading,Sa({},n,null==n?void 0:n.loading));return e.then((function(e){return Da.success(Ca(t.success,e),Sa({id:r},n,null==n?void 0:n.success)),e})).catch((function(e){Da.error(Ca(t.error,e),Sa({id:r},n,null==n?void 0:n.error))})),e},La=u.createElement,ya.p=void 0,da=La,fa=void 0,pa=void 0;var Fa=new Map;Fa.set("bold",(function(e){return u.createElement(u.Fragment,null,u.createElement("polyline",{points:"172 104 113.3 160 84 132",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"24"}),u.createElement("circle",{cx:"128",cy:"128",r:"96",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"24"}))})),Fa.set("duotone",(function(e){return u.createElement(u.Fragment,null,u.createElement("circle",{cx:"128",cy:"128",r:"96",opacity:"0.2"}),u.createElement("polyline",{points:"172 104 113.3 160 84 132",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),u.createElement("circle",{cx:"128",cy:"128",r:"96",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}))})),Fa.set("fill",(function(){return u.createElement(u.Fragment,null,u.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"}))})),Fa.set("light",(function(e){return u.createElement(u.Fragment,null,u.createElement("polyline",{points:"172 104 113.3 160 84 132",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"12"}),u.createElement("circle",{cx:"128",cy:"128",r:"96",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"12"}))})),Fa.set("thin",(function(e){return u.createElement(u.Fragment,null,u.createElement("polyline",{points:"172 104 113.3 160 84 132",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"8"}),u.createElement("circle",{cx:"128",cy:"128",r:"96",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"8"}))})),Fa.set("regular",(function(e){return u.createElement(u.Fragment,null,u.createElement("polyline",{points:"172 104 113.3 160 84 132",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),u.createElement("circle",{cx:"128",cy:"128",r:"96",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}))}));var Na=function(e,t){return Or(e,t,Fa)},za=(0,u.forwardRef)((function(e,t){return u.createElement(jr,Object.assign({ref:t},e,{renderPath:Na}))}));za.displayName="CheckCircle";const $a=za;var Ba=new Map;Ba.set("bold",(function(e){return u.createElement(u.Fragment,null,u.createElement("circle",{cx:"128",cy:"128",r:"96",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"24"}),u.createElement("line",{x1:"128",y1:"80",x2:"128",y2:"132",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"24"}),u.createElement("circle",{cx:"128",cy:"172",r:"16"}))})),Ba.set("duotone",(function(e){return u.createElement(u.Fragment,null,u.createElement("circle",{cx:"128",cy:"128",r:"96",opacity:"0.2"}),u.createElement("circle",{cx:"128",cy:"128",r:"96",fill:"none",stroke:e,strokeMiterlimit:"10",strokeWidth:"16"}),u.createElement("line",{x1:"128",y1:"80",x2:"128",y2:"136",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),u.createElement("circle",{cx:"128",cy:"172",r:"12"}))})),Ba.set("fill",(function(){return u.createElement(u.Fragment,null,u.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"}))})),Ba.set("light",(function(e){return u.createElement(u.Fragment,null,u.createElement("circle",{cx:"128",cy:"128",r:"96",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"12"}),u.createElement("line",{x1:"128",y1:"80",x2:"128",y2:"136",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"12"}),u.createElement("circle",{cx:"128",cy:"172",r:"10"}))})),Ba.set("thin",(function(e){return u.createElement(u.Fragment,null,u.createElement("circle",{cx:"128",cy:"128",r:"96",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"8"}),u.createElement("line",{x1:"128",y1:"80",x2:"128",y2:"136",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"8"}),u.createElement("circle",{cx:"128",cy:"172",r:"8"}))})),Ba.set("regular",(function(e){return u.createElement(u.Fragment,null,u.createElement("circle",{cx:"128",cy:"128",r:"96",fill:"none",stroke:e,strokeMiterlimit:"10",strokeWidth:"16"}),u.createElement("line",{x1:"128",y1:"80",x2:"128",y2:"136",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),u.createElement("circle",{cx:"128",cy:"172",r:"12"}))}));var Wa=function(e,t){return Or(e,t,Ba)},Ha=(0,u.forwardRef)((function(e,t){return u.createElement(jr,Object.assign({ref:t},e,{renderPath:Wa}))}));Ha.displayName="WarningCircle";const Ua=Ha;function Va(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 qa(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Va(Object(n),!0).forEach((function(t){Ga(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Va(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ga(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ka={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},Xa=ce($e,{fontSize:14,fontWeight:"bolder",color:"white",flex:1,marginLeft:16}),Ya=ce(Ue,{width:"100%"}),Za=function(e,t,n,r){return Da((function(t){var r=t.id;return(0,Ne.jsxs)(Ya,{alignment:"center",children:["success"===n?(0,Ne.jsx)($a,{size:24,color:"white"}):(0,Ne.jsx)(Ua,{size:24,color:"white"}),(0,Ne.jsx)(Xa,{children:e}),(0,Ne.jsx)(Ue,{distribution:"end",css:{marginLeft:16},children:(0,Ne.jsx)(Xi,{size:18,style:{cursor:"pointer"},color:"#CCEAC4",weight:"bold",onClick:function(){return Da.dismiss(r)}})})]})}),qa({style:qa(qa({},Ka),{},{background:t}),duration:2e3},r))},Qa=function(e,t){return Za(e,"#55B938","success",t)},Ja=function(e,t){return Za(e,"#cc0000","error",t)};function el(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 tl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?el(Object(n),!0).forEach((function(t){nl(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):el(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function nl(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rl(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 ol(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){rl(i,r,o,a,l,"next",e)}function l(e){rl(i,r,o,a,l,"throw",e)}a(void 0)}))}}function il(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 al(e){var t,n,r,o,i,a=(o=(0,u.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 il(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)?il(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],s=a[1];!function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=(0,u.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,u.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,d="Updated ",(f=Math.ceil((new Date).valueOf()-new Date(c).valueOf())/1e3)<60?"".concat(d," a few seconds ago"):f<3600?"".concat(d," ").concat(Math.floor(f/60)," minutes ago"):f<86400?"".concat(d," ").concat(Math.floor(f/3600)," hours ago"):f<604800?"".concat(d," ").concat(Math.floor(f/86400)," days ago"):f<2592e3?"".concat(d," ").concat(Math.floor(f/604800)," weeks ago"):f<31536e3?"".concat(d," ").concat(Math.floor(f/2592e3)," months ago"):f<31536e4?"".concat(d," ").concat(Math.floor(f/31536e3)," years ago"):f<31536e5&&"".concat(d," ").concat(Math.floor(f/31536e4)," decades ago"));var c,d,f,p=(0,u.useCallback)((function(e){s(e.target.value)}),[s]),h=(0,u.useCallback)(ol(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,ua({highlightId:null===(o=e.highlight)||void 0===o?void 0:o.id,annotation:l});case 3:t.sent?(e.onUpdate(tl(tl({},e.highlight),{},{annotation:l})),e.onOpenChange(!1)):Ja("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):Ja("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,Ne.jsxs)(Qi,{defaultOpen:!0,onOpenChange:e.onOpenChange,children:[(0,Ne.jsx)(ea,{}),(0,Ne.jsx)(na,{css:{bg:"$grayBg",px:"24px"},onPointerDownOutside:function(e){e.preventDefault()},children:(0,Ne.jsx)("form",{onSubmit:function(t){t.preventDefault(),h(),e.onOpenChange(!1)},children:(0,Ne.jsxs)(Ve,{children:[(0,Ne.jsx)(ra,{title:"Notes",onOpenChange:e.onOpenChange}),(0,Ne.jsx)(ia,{css:{mt:"16px",p:"6px",width:"100%",height:"248px",fontSize:"14px",border:"1px solid $textNonessential",borderRadius:"6px"},autoFocus:!0,placeholder:"Add your note here",value:l,onChange:p,maxLength:4e3}),(0,Ne.jsx)(oa,{onOpenChange:e.onOpenChange,acceptButtonLabel:"Save"})]})})})]})}function ll(e,t,n){return Math.min(Math.max(e,n),t)}class sl extends Error{constructor(e){super(`Failed to parse color: "${e}"`)}}var ul=sl;function cl(e){if("string"!=typeof e)throw new ul(e);if("transparent"===e.trim().toLowerCase())return[0,0,0,0];let t=e.trim();t=yl.test(e)?function(e){const t=e.toLowerCase().trim(),n=fl[function(e){let t=5381,n=e.length;for(;n;)t=33*t^e.charCodeAt(--n);return(t>>>0)%2341}(t)];if(!n)throw new ul(e);return`#${n}`}(e):e;const n=hl.exec(t);if(n){const e=Array.from(n).slice(1);return[...e.slice(0,3).map((e=>parseInt(pl(e,2),16))),parseInt(pl(e[3]||"f",2),16)/255]}const r=gl.exec(t);if(r){const e=Array.from(r).slice(1);return[...e.slice(0,3).map((e=>parseInt(e,16))),parseInt(e[3]||"ff",16)/255]}const o=ml.exec(t);if(o){const e=Array.from(o).slice(1);return[...e.slice(0,3).map((e=>parseInt(e,10))),parseFloat(e[3]||"1")]}const i=vl.exec(t);if(i){const[t,n,r,o]=Array.from(i).slice(1).map(parseFloat);if(ll(0,100,n)!==n)throw new ul(e);if(ll(0,100,r)!==r)throw new ul(e);return[...wl(t,n,r),o||1]}throw new ul(e)}const dl=e=>parseInt(e.replace(/_/g,""),36),fl="1q29ehhb 1n09sgk7 1kl1ekf_ _yl4zsno 16z9eiv3 1p29lhp8 _bd9zg04 17u0____ _iw9zhe5 _to73___ _r45e31e _7l6g016 _jh8ouiv _zn3qba8 1jy4zshs 11u87k0u 1ro9yvyo 1aj3xael 1gz9zjz0 _3w8l4xo 1bf1ekf_ _ke3v___ _4rrkb__ 13j776yz _646mbhl _nrjr4__ _le6mbhl 1n37ehkb _m75f91n _qj3bzfz 1939yygw 11i5z6x8 _1k5f8xs 1509441m 15t5lwgf _ae2th1n _tg1ugcv 1lp1ugcv 16e14up_ _h55rw7n _ny9yavn _7a11xb_ 1ih442g9 _pv442g9 1mv16xof 14e6y7tu 1oo9zkds 17d1cisi _4v9y70f _y98m8kc 1019pq0v 12o9zda8 _348j4f4 1et50i2o _8epa8__ _ts6senj 1o350i2o 1mi9eiuo 1259yrp0 1ln80gnw _632xcoy 1cn9zldc _f29edu4 1n490c8q _9f9ziet 1b94vk74 _m49zkct 1kz6s73a 1eu9dtog _q58s1rz 1dy9sjiq __u89jo3 _aj5nkwg _ld89jo3 13h9z6wx _qa9z2ii _l119xgq _bs5arju 1hj4nwk9 1qt4nwk9 1ge6wau6 14j9zlcw 11p1edc_ _ms1zcxe _439shk6 _jt9y70f _754zsow 1la40eju _oq5p___ _x279qkz 1fa5r3rv _yd2d9ip _424tcku _8y1di2_ _zi2uabw _yy7rn9h 12yz980_ __39ljp6 1b59zg0x _n39zfzp 1fy9zest _b33k___ _hp9wq92 1il50hz4 _io472ub _lj9z3eo 19z9ykg0 _8t8iu3a 12b9bl4a 1ak5yw0o _896v4ku _tb8k8lv _s59zi6t _c09ze0p 1lg80oqn 1id9z8wb _238nba5 1kq6wgdi _154zssg _tn3zk49 _da9y6tc 1sg7cv4f _r12jvtt 1gq5fmkz 1cs9rvci _lp9jn1c _xw1tdnb 13f9zje6 16f6973h _vo7ir40 _bt5arjf _rc45e4t _hr4e100 10v4e100 _hc9zke2 _w91egv_ _sj2r1kk 13c87yx8 _vqpds__ _ni8ggk8 _tj9yqfb 1ia2j4r4 _7x9b10u 1fc9ld4j 1eq9zldr _5j9lhpx _ez9zl6o _md61fzm".split(" ").reduce(((e,t)=>{const n=dl(t.substring(0,3)),r=dl(t.substring(3)).toString(16);let o="";for(let e=0;e<6-r.length;e++)o+="0";return e[n]=`${o}${r}`,e}),{}),pl=(e,t)=>Array.from(Array(t)).map((()=>e)).join(""),hl=new RegExp(`^#${pl("([a-f0-9])",3)}([a-f0-9])?$`,"i"),gl=new RegExp(`^#${pl("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),ml=new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${pl(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),vl=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,yl=/^[a-z]+$/i,bl=e=>Math.round(255*e),wl=(e,t,n)=>{let r=n/100;if(0===t)return[r,r,r].map(bl);const o=(e%360+360)%360/60,i=(1-Math.abs(2*r-1))*(t/100),a=i*(1-Math.abs(o%2-1));let l=0,s=0,u=0;o>=0&&o<1?(l=i,s=a):o>=1&&o<2?(l=a,s=i):o>=2&&o<3?(s=i,u=a):o>=3&&o<4?(s=a,u=i):o>=4&&o<5?(l=a,u=i):o>=5&&o<6&&(l=i,u=a);const c=r-i/2;return[l+c,s+c,u+c].map(bl)};function xl(e,t){return function(e,t){const[n,r,o,i]=function(e){const[t,n,r,o]=cl(e).map(((e,t)=>3===t?e:e/255)),i=Math.max(t,n,r),a=Math.min(t,n,r),l=(i+a)/2;if(i===a)return[0,0,l,o];const s=i-a;return[60*(t===i?(n-r)/s+(n<r?6:0):n===i?(r-t)/s+2:(t-n)/s+4),l>.5?s/(2-i-a):s/(i+a),l,o]}(e);return function(e,t,n,r){return`hsla(${(e%360).toFixed()}, ${ll(0,100,100*t).toFixed()}%, ${ll(0,100,100*n).toFixed()}%, ${parseFloat(ll(0,1,r).toFixed(3))})`}(n,r,o-t,i)}(e,-t)}var kl=o(5632);function El(e){var t,n,r=(0,kl.useRouter)(),o=Nn(),i=function(e){if("transparent"===e)return 0;function t(e){const t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}const[n,r,o]=cl(e);return.2126*t(n)+.7152*t(r)+.0722*t(o)}(e.color),a=xl(e.color,.2),l=(t=e.color,[(n=parseInt(t.substring(1),16))>>16&255,n>>8&255,255&n]),s=i>.2?"rgba(".concat(l[0],", ").concat(l[1],", ").concat(l[2],", 1)"):a,u=i>.5?"#000000":"#ffffff";return(0,Ne.jsx)(Sr,{style:"plainIcon",onClick:function(t){r.push('/home?q=label:"'.concat(e.text,'"')),t.stopPropagation()},children:(0,Ne.jsx)(Be,{css:{display:"inline-table",margin:"4px",borderRadius:"4px",color:o?s:u,fontSize:"12px",fontWeight:"bold",padding:"2px 5px 2px 5px",whiteSpace:"nowrap",cursor:"pointer",backgroundClip:"padding-box",border:o?"1px solid ".concat(s):"1px solid rgba(".concat(l[0],", ").concat(l[1],", ").concat(l[2],", 0.7)"),backgroundColor:o?"rgba(".concat(l[0],", ").concat(l[1],", ").concat(l[2],", 0.08)"):e.color},children:e.text})})}function Sl(e){var t,n=(0,u.useMemo)((function(){return e.highlight.quote.split("\n")}),[e.highlight.quote]),r=ge(He,{margin:"0px 0px 0px 0px",fontSize:"18px",lineHeight:"27px",color:"$grayText",padding:"0px 16px",borderLeft:"2px solid $omnivoreCtaYellow"});return(0,Ne.jsx)(Ve,{css:{width:"100%",boxSizing:"border-box"},children:(0,Ne.jsxs)(r,{onClick:function(){e.scrollToHighlight&&e.scrollToHighlight(e.highlight.id)},children:[(0,Ne.jsx)(Be,{css:{p:"1px",borderRadius:"2px"},children:n.map((function(e,t){return(0,Ne.jsxs)(u.Fragment,{children:[e,t!==n.length-1&&(0,Ne.jsxs)(Ne.Fragment,{children:[(0,Ne.jsx)("br",{}),(0,Ne.jsx)("br",{})]})]},t)}))}),(0,Ne.jsx)($e,{css:{display:"block",pt:"16px"},children:null===(t=e.highlight.labels)||void 0===t?void 0:t.map((function(e,t){var n=e.name,r=e.color;return(0,Ne.jsx)(El,{text:n||"",color:r},t)}))})]})})}function _l(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 Cl(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){_l(i,r,o,a,l,"next",e)}function l(e){_l(i,r,o,a,l,"throw",e)}a(void 0)}))}}function Ol(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 Ll(e){return(0,Ne.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,Ne.jsx)("path",{d:"M18.75 5.75L5.25 19.25",stroke:e.strokeColor,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,Ne.jsx)("path",{d:"M18.75 19.25L5.25 5.75",stroke:e.strokeColor,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})}o(6577);var Pl=o(9097),jl=o.n(Pl);function Rl(e){return(0,Ne.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,Ne.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"})})}const Tl=u.forwardRef(((e,t)=>u.createElement(oi.span,_e({},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}})))),Al=u.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,[,s]=u.useState({});return ii((()=>{s({})}),[]),l?d.createPortal(u.createElement(oi.div,_e({"data-radix-portal":""},a,{ref:t,style:l===document.body?{position:"absolute",top:0,left:0,zIndex:2147483647,...i}:void 0})),l):null})),Ml=u.forwardRef(((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return u.createElement(oi.svg,_e({},i,{ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?n:u.createElement("polygon",{points:"0,0 30,0 15,10"}))})),Il=Ml;function Dl(e){const[t,n]=u.useState(void 0);return u.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}let Fl;const Nl=new Map;function zl(){const e=[];Nl.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)))})),Fl=requestAnimationFrame(zl)}function $l(e){const[t,n]=u.useState();return u.useEffect((()=>{if(e){const t=function(e,t){const n=Nl.get(e);return void 0===n?(Nl.set(e,{rect:{},callbacks:[t]}),1===Nl.size&&(Fl=requestAnimationFrame(zl))):(n.callbacks.push(t),t(e.getBoundingClientRect())),()=>{const n=Nl.get(e);if(void 0===n)return;const r=n.callbacks.indexOf(t);r>-1&&n.callbacks.splice(r,1),0===n.callbacks.length&&(Nl.delete(e),0===Nl.size&&cancelAnimationFrame(Fl))}}(e,n);return()=>{n(void 0),t()}}}),[e]),t}function Bl(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 Wl(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 Hl(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 Ul={position:"fixed",top:0,left:0,opacity:0,transform:"translate3d(0, -200%, 0)"},Vl={position:"absolute",opacity:0};function ql({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:Gl(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 Gl(e,t){return("top"!==e&&"right"!==e||"end"!==t)&&("bottom"!==e&&"left"!==e||"end"===t)?"ltr":"rtl"}function Kl(e){return{top:"bottom",right:"left",bottom:"top",left:"right"}[e]}function Xl(e,t){return{top:e.top<t.top,right:e.right>t.right,bottom:e.bottom>t.bottom,left:e.left<t.left}}const[Yl,Zl]=Pi("Popper"),[Ql,Jl]=Yl("Popper"),es=u.forwardRef(((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=Jl("PopperAnchor",n),a=u.useRef(null),l=Se(t,a);return u.useEffect((()=>{i.onAnchorChange((null==r?void 0:r.current)||a.current)})),r?null:u.createElement(oi.div,_e({},o,{ref:l}))})),[ts,ns]=Yl("PopperContent"),rs=u.forwardRef(((e,t)=>{const{__scopePopper:n,side:r="bottom",sideOffset:o,align:i="center",alignOffset:a,collisionTolerance:l,avoidCollisions:s=!0,...c}=e,d=Jl("PopperContent",n),[f,p]=u.useState(),h=$l(d.anchor),[g,m]=u.useState(null),v=Dl(g),[y,b]=u.useState(null),w=Dl(y),x=Se(t,(e=>m(e))),k=function(){const[e,t]=u.useState(void 0);return u.useEffect((()=>{let e;function n(){t({width:window.innerWidth,height:window.innerHeight})}function r(){window.clearTimeout(e),e=window.setTimeout(n,100)}return n(),window.addEventListener("resize",r),()=>window.removeEventListener("resize",r)}),[]),e}(),E=k?DOMRect.fromRect({...k,x:0,y:0}):void 0,{popperStyles:S,arrowStyles:_,placedSide:C,placedAlign:O}=function({anchorRect:e,popperSize:t,arrowSize:n,arrowOffset:r=0,side:o,sideOffset:i=0,align:a,alignOffset:l=0,shouldAvoidCollisions:s=!0,collisionBoundariesRect:u,collisionTolerance:c=0}){if(!e||!t||!u)return{popperStyles:Ul,arrowStyles:Vl};const d=function(e,t,n=0,r=0,o){const i=o?o.height:0,a=Bl(t,e,"x"),l=Bl(t,e,"y"),s=l.before-n-i,u=l.after+n+i,c=a.before-n-i,d=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:d,y:l.start+r},center:{x:d,y:l.center},end:{x:d,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),f=d[o][a];if(!1===s){const e=Wl(f);let i=Vl;return n&&(i=ql({popperSize:t,arrowSize:n,arrowOffset:r,side:o,align:a})),{popperStyles:{...e,"--radix-popper-transform-origin":Hl(t,o,a,r,n)},arrowStyles:i,placedSide:o,placedAlign:a}}const p=DOMRect.fromRect({...t,...f}),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=Xl(p,h),y=d[Kl(o)][a],b=function(e,t,n){const r=Kl(e);return t[e]&&!n[r]?r:e}(o,v,Xl(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=Wl(d[b][w]);let k=Vl;return n&&(k=ql({popperSize:t,arrowSize:n,arrowOffset:r,side:b,align:w})),{popperStyles:{...x,"--radix-popper-transform-origin":Hl(t,b,w,r,n)},arrowStyles:k,placedSide:b,placedAlign:w}}({anchorRect:h,popperSize:v,arrowSize:w,arrowOffset:f,side:r,sideOffset:o,align:i,alignOffset:a,shouldAvoidCollisions:s,collisionBoundariesRect:E,collisionTolerance:l}),L=void 0!==C;return u.createElement("div",{style:S,"data-radix-popper-content-wrapper":""},u.createElement(ts,{scope:n,arrowStyles:_,onArrowChange:b,onArrowOffsetChange:p},u.createElement(oi.div,_e({"data-side":C,"data-align":O},c,{style:{...c.style,animation:L?void 0:"none"},ref:x}))))})),os=u.forwardRef((function(e,t){const{__scopePopper:n,offset:r,...o}=e,i=ns("PopperArrow",n),{onArrowOffsetChange:a}=i;return u.useEffect((()=>a(r)),[a,r]),u.createElement("span",{style:{...i.arrowStyles,pointerEvents:"none"}},u.createElement("span",{ref:i.onArrowChange,style:{display:"inline-block",verticalAlign:"top",pointerEvents:"auto"}},u.createElement(Il,_e({},o,{ref:t,style:{...o.style,display:"block"}}))))})),is=e=>{const{__scopePopper:t,children:n}=e,[r,o]=u.useState(null);return u.createElement(Ql,{scope:t,anchor:r,onAnchorChange:o},n)},as=es,ls=rs,ss=os;function us(e){const t=u.useRef({value:e,previous:e});return u.useMemo((()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous)),[e])}const[cs,ds]=Pi("Tooltip",[Zl]),fs=Zl(),[ps,hs]=cs("TooltipProvider",{isOpenDelayed:!0,delayDuration:700,onOpen:()=>{},onClose:()=>{}}),[gs,ms]=cs("Tooltip"),vs=u.forwardRef(((e,t)=>{const{__scopeTooltip:n,...r}=e,o=ms("TooltipTrigger",n),i=fs(n),a=Se(t,o.onTriggerChange),l=u.useRef(!1),s=u.useCallback((()=>l.current=!1),[]);return u.useEffect((()=>()=>document.removeEventListener("mouseup",s)),[s]),u.createElement(as,_e({asChild:!0},i),u.createElement(oi.button,_e({"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute},r,{ref:a,onMouseEnter:wi(e.onMouseEnter,o.onTriggerEnter),onMouseLeave:wi(e.onMouseLeave,o.onClose),onMouseDown:wi(e.onMouseDown,(()=>{o.onClose(),l.current=!0,document.addEventListener("mouseup",s,{once:!0})})),onFocus:wi(e.onFocus,(()=>{l.current||o.onOpen()})),onBlur:wi(e.onBlur,o.onClose),onClick:wi(e.onClick,(e=>{0===e.detail&&o.onClose()}))})))})),ys=u.forwardRef(((e,t)=>{const{forceMount:n,...r}=e,o=ms("TooltipContent",e.__scopeTooltip);return u.createElement(ai,{present:n||o.open},u.createElement(bs,_e({ref:t},r)))})),bs=u.forwardRef(((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,portalled:i=!0,...a}=e,l=ms("TooltipContent",n),s=fs(n),c=i?Al:u.Fragment,{onClose:d}=l;return vi((()=>d())),u.useEffect((()=>(document.addEventListener("tooltip.open",d),()=>document.removeEventListener("tooltip.open",d))),[d]),u.createElement(c,null,u.createElement(ws,{__scopeTooltip:n}),u.createElement(ls,_e({"data-state":l.stateAttribute},s,a,{ref:t,style:{...a.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)"}}),u.createElement(Le,null,r),u.createElement(Tl,{id:l.contentId,role:"tooltip"},o||r)))}));function ws(e){const{__scopeTooltip:t}=e,n=ms("CheckTriggerMoved",t),r=$l(n.trigger),o=null==r?void 0:r.left,i=us(o),a=null==r?void 0:r.top,l=us(a),s=n.onClose;return u.useEffect((()=>{(void 0!==i&&i!==o||void 0!==l&&l!==a)&&s()}),[s,i,l,o,a]),null}const xs=vs,ks=ys,Es=u.forwardRef(((e,t)=>{const{__scopeTooltip:n,...r}=e,o=fs(n);return u.createElement(ss,_e({},o,r,{ref:t}))}));var Ss=["children","active","tooltipContent","tooltipSide","arrowStyles"];function _s(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 Cs(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_s(Object(n),!0).forEach((function(t){Os(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Os(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ls=ue({"0%":{opacity:0,transform:"translateY(2px)"},"100%":{opacity:1,transform:"translateY(0)"}}),Ps=ue({"0%":{opacity:0,transform:"translateX(-2px)"},"100%":{opacity:1,transform:"translateX(0)"}}),js=ce(ks,{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:ue({"0%":{opacity:0,transform:"translateY(-2px)"},"100%":{opacity:1,transform:"translateY(0)"}})},'&[data-side="right"]':{animationName:ue({"0%":{opacity:0,transform:"translateX(2px)"},"100%":{opacity:1,transform:"translateX(0)"}})},'&[data-side="bottom"]':{animationName:Ls},'&[data-side="left"]':{animationName:Ps}}}}),Rs=ce(Es,{fill:"#1C1C1E"}),Ts=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:o=!1,onOpenChange:i,delayDuration:a}=e,l=hs("Tooltip",t),s=fs(t),[c,d]=u.useState(null),f=Li(),p=u.useRef(0),h=null!=a?a:l.delayDuration,g=u.useRef(!1),{onOpen:m,onClose:v}=l,[y=!1,b]=_i({prop:r,defaultProp:o,onChange:e=>{e&&(document.dispatchEvent(new CustomEvent("tooltip.open")),m()),null==i||i(e)}}),w=u.useMemo((()=>y?g.current?"delayed-open":"instant-open":"closed"),[y]),x=u.useCallback((()=>{window.clearTimeout(p.current),g.current=!1,b(!0)}),[b]),k=u.useCallback((()=>{window.clearTimeout(p.current),p.current=window.setTimeout((()=>{g.current=!0,b(!0)}),h)}),[h,b]);return u.useEffect((()=>()=>window.clearTimeout(p.current)),[]),u.createElement(is,s,u.createElement(gs,{scope:t,contentId:f,open:y,stateAttribute:w,trigger:c,onTriggerChange:d,onTriggerEnter:u.useCallback((()=>{l.isOpenDelayed?k():x()}),[l.isOpenDelayed,k,x]),onOpen:u.useCallback(x,[x]),onClose:u.useCallback((()=>{window.clearTimeout(p.current),b(!1),v()}),[b,v])},n))},As=xs,Ms=js,Is=Rs,Ds={backgroundColor:"#F9D354",color:"#0A0806"},Fs={fill:"#F9D354"},Ns=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,Ss);return(0,Ne.jsxs)(Ts,{open:n,children:[(0,Ne.jsx)(As,{asChild:!0,children:t}),(0,Ne.jsxs)(Ms,Cs(Cs({sideOffset:5,side:o,style:Ds},a),{},{children:[r,(0,Ne.jsx)(Is,{style:null!=i?i:Fs})]}))]})},zs=new Map;zs.set("bold",(function(e){return u.createElement(u.Fragment,null,u.createElement("circle",{cx:"128",cy:"128",r:"96",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"24"}),u.createElement("path",{d:"M168,88H152a23.9,23.9,0,0,0-24,24V224",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"24"}),u.createElement("line",{x1:"96",y1:"144",x2:"160",y2:"144",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"24"}))})),zs.set("duotone",(function(e){return u.createElement(u.Fragment,null,u.createElement("circle",{cx:"128",cy:"128",r:"96",opacity:"0.2"}),u.createElement("circle",{cx:"128",cy:"128",r:"96",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),u.createElement("path",{d:"M168,88H152a23.9,23.9,0,0,0-24,24V224",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),u.createElement("line",{x1:"96",y1:"144",x2:"160",y2:"144",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}))})),zs.set("fill",(function(){return u.createElement(u.Fragment,null,u.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"}))})),zs.set("light",(function(e){return u.createElement(u.Fragment,null,u.createElement("circle",{cx:"128",cy:"128",r:"96",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"12"}),u.createElement("path",{d:"M168,88H152a23.9,23.9,0,0,0-24,24V224",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"12"}),u.createElement("line",{x1:"96",y1:"144",x2:"160",y2:"144",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"12"}))})),zs.set("thin",(function(e){return u.createElement(u.Fragment,null,u.createElement("circle",{cx:"128",cy:"128",r:"96",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"8"}),u.createElement("path",{d:"M168,88H152a23.9,23.9,0,0,0-24,24V224",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"8"}),u.createElement("line",{x1:"96",y1:"144",x2:"160",y2:"144",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"8"}))})),zs.set("regular",(function(e){return u.createElement(u.Fragment,null,u.createElement("circle",{cx:"128",cy:"128",r:"96",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),u.createElement("path",{d:"M168,88H152a23.9,23.9,0,0,0-24,24V224",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),u.createElement("line",{x1:"96",y1:"144",x2:"160",y2:"144",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}))}));var $s=function(e,t){return Or(e,t,zs)},Bs=(0,u.forwardRef)((function(e,t){return u.createElement(jr,Object.assign({ref:t},e,{renderPath:$s}))}));Bs.displayName="FacebookLogo";const Ws=Bs;var Hs=new Map;Hs.set("bold",(function(e){return u.createElement(u.Fragment,null,u.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"}))})),Hs.set("duotone",(function(e){return u.createElement(u.Fragment,null,u.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"}),u.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"}))})),Hs.set("fill",(function(){return u.createElement(u.Fragment,null,u.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"}))})),Hs.set("light",(function(e){return u.createElement(u.Fragment,null,u.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"}))})),Hs.set("thin",(function(e){return u.createElement(u.Fragment,null,u.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"}))})),Hs.set("regular",(function(e){return u.createElement(u.Fragment,null,u.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 Us=function(e,t){return Or(e,t,Hs)},Vs=(0,u.forwardRef)((function(e,t){return u.createElement(jr,Object.assign({ref:t},e,{renderPath:Us}))}));Vs.displayName="TwitterLogo";const qs=Vs;function Gs(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 Ks(e){var t,n,r=function(e,t){var n,r,o=(n=(0,u.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 Ol(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)?Ol(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():""),s=(0,u.useCallback)(Cl(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:s,isLinkCopied:i}}(e.url,e.type),o=r.copyLink,i=r.isLinkCopied,a=(t=(0,u.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 Gs(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)?Gs(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],s=a[1],c=me.colors.grayText.toString();return(0,Ne.jsxs)(Qi,{defaultOpen:!0,onOpenChange:e.onOpenChange,children:[(0,Ne.jsx)(ea,{}),(0,Ne.jsx)(na,{onPointerDownOutside:function(e){e.preventDefault()},css:{overflow:"auto",p:"0px",border:"1px solid $grayBorder",boxShadow:"none"},children:(0,Ne.jsxs)(Ve,{distribution:"start",css:{p:"0"},children:[(0,Ne.jsxs)(Ue,{distribution:"between",alignment:"center",css:{width:"100%",pt:"24px",pl:"24px",pr:"24px",boxSizing:"border-box",pb:"16px"},children:[(0,Ne.jsx)(Vn,{style:"modalTitle",css:{p:"0"},children:e.modalTitle}),(0,Ne.jsx)(Sr,{css:{p:"0"},style:"ghost",onClick:function(){e.onOpenChange(!1)},children:(0,Ne.jsx)(Ll,{size:24,strokeColor:c})})]}),e.children,(0,Ne.jsxs)(Ue,{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,Ne.jsx)(Vn,{style:"boldText",css:{m:"0"},children:"Secret URL"}),(0,Ne.jsx)(Ns,{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,Ne.jsx)("button",{onClick:function(){s(!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:me.colors.grayBorder.toString(),borderWidth:1,borderStyle:"solid"},children:(0,Ne.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,Ne.jsx)(Sr,{style:"ctaModal",onClick:o,children:"Copy Link"}),(0,Ne.jsxs)($e,{css:{display:"flex",flexDirection:"row",marginLeft:"auto",gap:"24px",alignItems:"center"},children:[(0,Ne.jsx)(We,{target:"_blank",css:{height:"24px"},referrerPolicy:"no-referrer",href:"",children:(0,Ne.jsx)(Rl,{size:26,strokeColor:me.colors.textNonEssential.toString()})}),(0,Ne.jsx)(We,{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,Ne.jsx)(Ws,{width:26,height:26,color:c})}),(0,Ne.jsx)(We,{target:"_blank",css:{height:"24px"},referrerPolicy:"no-referrer",href:"https://twitter.com/intent/tweet?text=".concat(e.title,"&url=").concat(e.url),children:(0,Ne.jsx)(qs,{width:26,height:26,color:c})})]})]})]})})]})}function Xs(e){var t;return(0,Ne.jsx)(Ks,{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,Ne.jsx)(Sl,{title:e.title,author:e.author,highlight:e.highlight})})}function Ys(e){return(0,Ne.jsx)("svg",{width:e.size,height:e.size,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Ne.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 Zs(e){var t;return(0,Ne.jsxs)(Qi,{defaultOpen:!0,onOpenChange:e.onOpenChange,children:[(0,Ne.jsx)(ea,{}),(0,Ne.jsx)(na,{css:{bg:"$grayBg",maxWidth:"20em",zIndex:"20"},children:(0,Ne.jsxs)(Ve,{alignment:"center",distribution:"center",css:{p:"$2"},children:[e.icon?e.icon:null,e.richMessage?e.richMessage:(0,Ne.jsx)(Vn,{children:e.message}),(0,Ne.jsxs)(Ue,{distribution:"center",css:{pt:"$2"},children:[(0,Ne.jsx)(Sr,{style:"ctaOutlineYellow",css:{mr:"$2"},onClick:function(){return e.onOpenChange(!1)},onKeyDown:function(t){"Enter"===t.key&&(t.preventDefault(),e.onOpenChange(!1))},children:e.cancelButtonLabel?e.cancelButtonLabel:"Cancel"}),(0,Ne.jsx)(Sr,{style:"ctaDarkYellow",onClick:e.onAccept,onKeyDown:function(t){"Enter"===t.key&&(t.preventDefault(),e.onAccept())},children:null!==(t=e.acceptButtonLabel)&&void 0!==t?t:"Confirm"})]})]})})]})}var Qs=new Map;Qs.set("bold",(function(){return u.createElement(u.Fragment,null,u.createElement("circle",{cx:"128",cy:"128",r:"16"}),u.createElement("circle",{cx:"64",cy:"128",r:"16"}),u.createElement("circle",{cx:"192",cy:"128",r:"16"}))})),Qs.set("duotone",(function(){return u.createElement(u.Fragment,null,u.createElement("circle",{cx:"128",cy:"128",r:"12"}),u.createElement("circle",{cx:"192",cy:"128",r:"12"}),u.createElement("circle",{cx:"64",cy:"128",r:"12"}))})),Qs.set("fill",(function(){return u.createElement(u.Fragment,null,u.createElement("path",{d:"M140,128a12,12,0,1,1-12-12A12,12,0,0,1,140,128Zm52-12a12,12,0,1,0,12,12A12,12,0,0,0,192,116ZM64,116a12,12,0,1,0,12,12A12,12,0,0,0,64,116Z"}))})),Qs.set("light",(function(){return u.createElement(u.Fragment,null,u.createElement("circle",{cx:"128",cy:"128",r:"10"}),u.createElement("circle",{cx:"64",cy:"128",r:"10"}),u.createElement("circle",{cx:"192",cy:"128",r:"10"}))})),Qs.set("thin",(function(){return u.createElement(u.Fragment,null,u.createElement("circle",{cx:"128",cy:"128",r:"8"}),u.createElement("circle",{cx:"64",cy:"128",r:"8"}),u.createElement("circle",{cx:"192",cy:"128",r:"8"}))})),Qs.set("regular",(function(){return u.createElement(u.Fragment,null,u.createElement("circle",{cx:"128",cy:"128",r:"12"}),u.createElement("circle",{cx:"192",cy:"128",r:"12"}),u.createElement("circle",{cx:"64",cy:"128",r:"12"}))}));var Js=function(e,t){return Or(e,t,Qs)},eu=(0,u.forwardRef)((function(e,t){return u.createElement(jr,Object.assign({ref:t},e,{renderPath:Js}))}));eu.displayName="DotsThree";const tu=eu;function nu(e){const t=e+"CollectionProvider",[n,r]=Pi(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),a=e+"CollectionSlot",l=u.forwardRef(((e,t)=>{const{scope:n,children:r}=e,o=Se(t,i(a,n).collectionRef);return u.createElement(Ce,{ref:o},r)})),s=e+"CollectionItemSlot",c="data-radix-collection-item",d=u.forwardRef(((e,t)=>{const{scope:n,children:r,...o}=e,a=u.useRef(null),l=Se(t,a),d=i(s,n);return u.useEffect((()=>(d.itemMap.set(a,{ref:a,...o}),()=>{d.itemMap.delete(a)}))),u.createElement(Ce,{[c]:"",ref:l},r)}));return[{Provider:e=>{const{scope:t,children:n}=e,r=u.useRef(null),i=u.useRef(new Map).current;return u.createElement(o,{scope:t,itemMap:i,collectionRef:r},n)},Slot:l,ItemSlot:d},function(t){const n=i(e+"CollectionConsumer",t);return u.useCallback((()=>{const e=n.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${c}]`));return Array.from(n.itemMap.values()).sort(((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current)))}),[n.collectionRef,n.itemMap])},r]}const ru={bubbles:!1,cancelable:!0},[ou,iu,au]=nu("RovingFocusGroup"),[lu,su]=Pi("RovingFocusGroup",[au]),[uu,cu]=lu("RovingFocusGroup"),du=u.forwardRef(((e,t)=>u.createElement(ou.Provider,{scope:e.__scopeRovingFocusGroup},u.createElement(ou.Slot,{scope:e.__scopeRovingFocusGroup},u.createElement(fu,_e({},e,{ref:t})))))),fu=u.forwardRef(((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,dir:o="ltr",loop:i=!1,currentTabStopId:a,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:s,onEntryFocus:c,...d}=e,f=u.useRef(null),p=Se(t,f),[h=null,g]=_i({prop:a,defaultProp:l,onChange:s}),[m,v]=u.useState(!1),y=si(c),b=iu(n),w=u.useRef(!1);return u.useEffect((()=>{const e=f.current;if(e)return e.addEventListener("rovingFocusGroup.onEntryFocus",y),()=>e.removeEventListener("rovingFocusGroup.onEntryFocus",y)}),[y]),u.createElement(uu,{scope:n,orientation:r,dir:o,loop:i,currentTabStopId:h,onItemFocus:u.useCallback((e=>g(e)),[g]),onItemShiftTab:u.useCallback((()=>v(!0)),[])},u.createElement(oi.div,_e({tabIndex:m?-1:0,"data-orientation":r},d,{ref:p,style:{outline:"none",...e.style},onMouseDown:wi(e.onMouseDown,(()=>{w.current=!0})),onFocus:wi(e.onFocus,(e=>{const t=!w.current;if(e.target===e.currentTarget&&t&&!m){const t=new Event("rovingFocusGroup.onEntryFocus",ru);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){const e=b().filter((e=>e.focusable));gu([e.find((e=>e.active)),e.find((e=>e.id===h)),...e].filter(Boolean).map((e=>e.ref.current)))}}w.current=!1})),onBlur:wi(e.onBlur,(()=>v(!1)))})))})),pu=u.forwardRef(((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,...i}=e,a=Li(),l=cu("RovingFocusGroupItem",n),s=l.currentTabStopId===a,c=iu(n);return u.createElement(ou.ItemSlot,{scope:n,id:a,focusable:r,active:o},u.createElement(oi.span,_e({tabIndex:s?0:-1,"data-orientation":l.orientation},i,{ref:t,onMouseDown:wi(e.onMouseDown,(e=>{r?l.onItemFocus(a):e.preventDefault()})),onFocus:wi(e.onFocus,(()=>l.onItemFocus(a))),onKeyDown:wi(e.onKeyDown,(e=>{if("Tab"===e.key&&e.shiftKey)return void l.onItemShiftTab();if(e.target!==e.currentTarget)return;const t=function(e,t,n){const r=function(e,t){return"rtl"!==t?e:"ArrowLeft"===e?"ArrowRight":"ArrowRight"===e?"ArrowLeft":e}(e.key,n);return"vertical"===t&&["ArrowLeft","ArrowRight"].includes(r)||"horizontal"===t&&["ArrowUp","ArrowDown"].includes(r)?void 0:hu[r]}(e,l.orientation,l.dir);if(void 0!==t){e.preventDefault();let o=c().filter((e=>e.focusable)).map((e=>e.ref.current));if("last"===t)o.reverse();else if("prev"===t||"next"===t){"prev"===t&&o.reverse();const i=o.indexOf(e.currentTarget);o=l.loop?(r=i+1,(n=o).map(((e,t)=>n[(r+t)%n.length]))):o.slice(i+1)}setTimeout((()=>gu(o)))}var n,r}))})))})),hu={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function gu(e){const t=document.activeElement;for(const n of e){if(n===t)return;if(n.focus(),document.activeElement!==t)return}}const mu=du,vu=pu,yu=["Enter"," "],bu=["ArrowUp","PageDown","End"],wu=["ArrowDown","PageUp","Home",...bu],xu={ltr:[...yu,"ArrowRight"],rtl:[...yu,"ArrowLeft"]},ku={ltr:["ArrowLeft"],rtl:["ArrowRight"]},[Eu,Su,_u]=nu("Menu"),[Cu,Ou]=Pi("Menu",[_u,Zl,su]),Lu=Zl(),Pu=su(),[ju,Ru]=Cu("Menu"),Tu=u.forwardRef(((e,t)=>{const{__scopeMenu:n,...r}=e,o=Lu(n);return u.createElement(as,_e({},o,r,{ref:t}))})),[Au,Mu]=Cu("MenuContent"),Iu=u.forwardRef(((e,t)=>{const{forceMount:n,...r}=e,o=Ru("MenuContent",e.__scopeMenu);return u.createElement(Eu.Provider,{scope:e.__scopeMenu},u.createElement(ai,{present:n||o.open},u.createElement(Eu.Slot,{scope:e.__scopeMenu},o.isSubmenu?u.createElement(zu,_e({},r,{ref:t})):u.createElement(Du,_e({},r,{ref:t})))))})),Du=u.forwardRef(((e,t)=>Ru("MenuContent",e.__scopeMenu).modal?u.createElement(Fu,_e({},e,{ref:t})):u.createElement(Nu,_e({},e,{ref:t})))),Fu=u.forwardRef(((e,t)=>{const n=Ru("MenuContent",e.__scopeMenu),r=u.useRef(null),o=Se(t,r);return u.useEffect((()=>{const e=r.current;if(e)return xo(e)}),[]),u.createElement($u,_e({},e,{ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:wi(e.onFocusOutside,(e=>e.preventDefault()),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)}))})),Nu=u.forwardRef(((e,t)=>{const n=Ru("MenuContent",e.__scopeMenu);return u.createElement($u,_e({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)}))})),zu=u.forwardRef(((e,t)=>{const n=Ru("MenuContent",e.__scopeMenu),r=u.useRef(null),o=Se(t,r);return n.isSubmenu?u.createElement($u,_e({id:n.contentId,"aria-labelledby":n.triggerId},e,{ref:o,align:"start",side:"rtl"===n.dir?"left":"right",portalled:!0,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{var t;n.isUsingKeyboardRef.current&&(null===(t=r.current)||void 0===t||t.focus()),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:wi(e.onFocusOutside,(e=>{e.target!==n.trigger&&n.onOpenChange(!1)})),onEscapeKeyDown:wi(e.onEscapeKeyDown,n.onRootClose),onKeyDown:wi(e.onKeyDown,(e=>{const t=e.currentTarget.contains(e.target),r=ku[n.dir].includes(e.key);var o;t&&r&&(n.onOpenChange(!1),null===(o=n.trigger)||void 0===o||o.focus(),e.preventDefault())}))})):null})),$u=u.forwardRef(((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:i,onCloseAutoFocus:a,disableOutsidePointerEvents:l,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:d,onInteractOutside:f,onDismiss:p,disableOutsideScroll:h,allowPinchZoom:g,portalled:m,...v}=e,y=Ru("MenuContent",n),b=Lu(n),w=Pu(n),x=Su(n),[k,E]=u.useState(null),S=u.useRef(null),_=Se(t,S,y.onContentChange),C=u.useRef(0),O=u.useRef(""),L=u.useRef(0),P=u.useRef(null),j=u.useRef("right"),R=u.useRef(0),T=m?Al:u.Fragment,A=h?ei:u.Fragment,M=h?{allowPinchZoom:g}:void 0;u.useEffect((()=>()=>window.clearTimeout(C.current)),[]),ni();const I=u.useCallback((e=>{var t,n;return j.current===(null===(t=P.current)||void 0===t?void 0:t.side)&&function(e,t){return!!t&&function(e,t){const{x:n,y:r}=e;let o=!1;for(let e=0,i=t.length-1;e<t.length;i=e++){const a=t[e].x,l=t[e].y,s=t[i].x,u=t[i].y;l>r!=u>r&&n<(s-a)*(r-l)/(u-l)+a&&(o=!o)}return o}({x:e.clientX,y:e.clientY},t)}(e,null===(n=P.current)||void 0===n?void 0:n.area)}),[]);return u.createElement(T,null,u.createElement(A,M,u.createElement(Au,{scope:n,searchRef:O,onItemEnter:u.useCallback((e=>{I(e)&&e.preventDefault()}),[I]),onItemLeave:u.useCallback((e=>{var t;I(e)||(null===(t=S.current)||void 0===t||t.focus(),E(null))}),[I]),onTriggerLeave:u.useCallback((e=>{I(e)&&e.preventDefault()}),[I]),pointerGraceTimerRef:L,onPointerGraceIntentChange:u.useCallback((e=>{P.current=e}),[])},u.createElement(ci,{asChild:!0,trapped:o,onMountAutoFocus:wi(i,(e=>{var t;e.preventDefault(),null===(t=S.current)||void 0===t||t.focus()})),onUnmountAutoFocus:a},u.createElement(ki,{asChild:!0,disableOutsidePointerEvents:l,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:d,onInteractOutside:f,onDismiss:p},u.createElement(mu,_e({asChild:!0},w,{dir:y.dir,orientation:"vertical",loop:r,currentTabStopId:k,onCurrentTabStopIdChange:E,onEntryFocus:e=>{y.isUsingKeyboardRef.current||e.preventDefault()}}),u.createElement(ls,_e({role:"menu","aria-orientation":"vertical","data-state":Xu(y.open),dir:y.dir},b,v,{ref:_,style:{outline:"none",...v.style},onKeyDown:wi(v.onKeyDown,(e=>{const t=e.target,n=e.currentTarget.contains(t),r=e.ctrlKey||e.altKey||e.metaKey,o=1===e.key.length;n&&("Tab"===e.key&&e.preventDefault(),!r&&o&&(e=>{var t,n;const r=O.current+e,o=x().filter((e=>!e.disabled)),i=document.activeElement,a=null===(t=o.find((e=>e.ref.current===i)))||void 0===t?void 0:t.textValue,l=function(e,t,n){const r=t.length>1&&Array.from(t).every((e=>e===t[0]))?t[0]:t,o=n?e.indexOf(n):-1;let i=(a=e,l=Math.max(o,0),a.map(((e,t)=>a[(l+t)%a.length])));var a,l;1===r.length&&(i=i.filter((e=>e!==n)));const s=i.find((e=>e.toLowerCase().startsWith(r.toLowerCase())));return s!==n?s:void 0}(o.map((e=>e.textValue)),r,a),s=null===(n=o.find((e=>e.textValue===l)))||void 0===n?void 0:n.ref.current;!function e(t){O.current=t,window.clearTimeout(C.current),""!==t&&(C.current=window.setTimeout((()=>e("")),1e3))}(r),s&&setTimeout((()=>s.focus()))})(e.key));const i=S.current;if(e.target!==i)return;if(!wu.includes(e.key))return;e.preventDefault();const a=x().filter((e=>!e.disabled)).map((e=>e.ref.current));bu.includes(e.key)&&a.reverse(),function(e){const t=document.activeElement;for(const n of e){if(n===t)return;if(n.focus(),document.activeElement!==t)return}}(a)})),onBlur:wi(e.onBlur,(e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(C.current),O.current="")})),onPointerMove:wi(e.onPointerMove,Yu((e=>{const t=e.target,n=R.current!==e.clientX;if(e.currentTarget.contains(t)&&n){const t=e.clientX>R.current?"right":"left";j.current=t,R.current=e.clientX}})))}))))))))})),Bu=u.forwardRef(((e,t)=>{const{__scopeMenu:n,...r}=e;return u.createElement(oi.div,_e({},r,{ref:t}))})),Wu=u.forwardRef(((e,t)=>{const{disabled:n=!1,onSelect:r,...o}=e,i=u.useRef(null),a=Ru("MenuItem",e.__scopeMenu),l=Mu("MenuItem",e.__scopeMenu),s=Se(t,i),c=u.useRef(!1);return u.createElement(Uu,_e({},o,{ref:s,disabled:n,onClick:wi(e.onClick,(()=>{const e=i.current;if(!n&&e){const t=new Event("menu.itemSelect",{bubbles:!0,cancelable:!0});e.addEventListener("menu.itemSelect",(e=>null==r?void 0:r(e)),{once:!0}),e.dispatchEvent(t),t.defaultPrevented?c.current=!1:a.onRootClose()}})),onPointerDown:t=>{var n;null===(n=e.onPointerDown)||void 0===n||n.call(e,t),c.current=!0},onPointerUp:wi(e.onPointerUp,(e=>{var t;c.current||null===(t=e.currentTarget)||void 0===t||t.click()})),onKeyDown:wi(e.onKeyDown,(e=>{const t=""!==l.searchRef.current;n||t&&" "===e.key||yu.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())}))}))})),Hu=u.forwardRef(((e,t)=>{const n=Ru("MenuSubTrigger",e.__scopeMenu),r=Mu("MenuSubTrigger",e.__scopeMenu),o=u.useRef(null),{pointerGraceTimerRef:i,onPointerGraceIntentChange:a}=r,l={__scopeMenu:e.__scopeMenu},s=u.useCallback((()=>{o.current&&window.clearTimeout(o.current),o.current=null}),[]);return u.useEffect((()=>s),[s]),u.useEffect((()=>{const e=i.current;return()=>{window.clearTimeout(e),a(null)}}),[i,a]),n.isSubmenu?u.createElement(Tu,_e({asChild:!0},l),u.createElement(Uu,_e({id:n.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":n.contentId,"data-state":Xu(n.open)},e,{ref:Ee(t,n.onTriggerChange),onClick:t=>{var r;null===(r=e.onClick)||void 0===r||r.call(e,t),e.disabled||t.defaultPrevented||(t.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:wi(e.onPointerMove,Yu((t=>{r.onItemEnter(t),t.defaultPrevented||e.disabled||n.open||o.current||(r.onPointerGraceIntentChange(null),o.current=window.setTimeout((()=>{n.onOpenChange(!0),s()}),100))}))),onPointerLeave:wi(e.onPointerLeave,Yu((e=>{var t;s();const o=null===(t=n.content)||void 0===t?void 0:t.getBoundingClientRect();if(o){var a;const t=null===(a=n.content)||void 0===a?void 0:a.dataset.side,l="right"===t,s=l?-5:5,u=o[l?"left":"right"],c=o[l?"right":"left"];r.onPointerGraceIntentChange({area:[{x:e.clientX+s,y:e.clientY},{x:u,y:o.top},{x:c,y:o.top},{x:c,y:o.bottom},{x:u,y:o.bottom}],side:t}),window.clearTimeout(i.current),i.current=window.setTimeout((()=>r.onPointerGraceIntentChange(null)),300)}else{if(r.onTriggerLeave(e),e.defaultPrevented)return;r.onPointerGraceIntentChange(null)}}))),onKeyDown:wi(e.onKeyDown,(t=>{const o=""!==r.searchRef.current;var i;e.disabled||o&&" "===t.key||xu[n.dir].includes(t.key)&&(n.onOpenChange(!0),null===(i=n.content)||void 0===i||i.focus(),t.preventDefault())}))}))):null})),Uu=u.forwardRef(((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...i}=e,a=Mu("MenuItem",n),l=Pu(n),s=u.useRef(null),c=Se(t,s),[d,f]=u.useState("");return u.useEffect((()=>{const e=s.current;var t;e&&f((null!==(t=e.textContent)&&void 0!==t?t:"").trim())}),[i.children]),u.createElement(Eu.ItemSlot,{scope:n,disabled:r,textValue:null!=o?o:d},u.createElement(vu,_e({asChild:!0},l,{focusable:!r}),u.createElement(oi.div,_e({role:"menuitem","aria-disabled":r||void 0,"data-disabled":r?"":void 0},i,{ref:c,onPointerMove:wi(e.onPointerMove,Yu((e=>{r?a.onItemLeave(e):(a.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus())}))),onPointerLeave:wi(e.onPointerLeave,Yu((e=>a.onItemLeave(e))))}))))})),[Vu,qu]=Cu("MenuRadioGroup",{value:void 0,onValueChange:()=>{}}),[Gu,Ku]=Cu("MenuItemIndicator",{checked:!1});function Xu(e){return e?"open":"closed"}function Yu(e){return t=>"mouse"===t.pointerType?e(t):void 0}const Zu=e=>{const{__scopeMenu:t,open:n=!1,children:r,onOpenChange:o,modal:i=!0}=e,a=Lu(t),[l,s]=u.useState(null),c=u.useRef(!1),d=si(o),f=function(e,t){const[n,r]=u.useState("ltr"),[o,i]=u.useState(),a=u.useRef(0);return u.useEffect((()=>{if(void 0===t&&null!=e&&e.parentElement){const t=getComputedStyle(e.parentElement);i(t)}}),[e,t]),u.useEffect((()=>(void 0===t&&function e(){a.current=requestAnimationFrame((()=>{const t=null==o?void 0:o.direction;t&&r(t),e()}))}(),()=>cancelAnimationFrame(a.current))),[o,t,r]),t||n}(l,e.dir);return u.useEffect((()=>{const e=()=>{c.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},t=()=>c.current=!1;return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",t,{capture:!0}),document.removeEventListener("pointermove",t,{capture:!0})}}),[]),u.createElement(is,a,u.createElement(ju,{scope:t,isSubmenu:!1,isUsingKeyboardRef:c,dir:f,open:n,onOpenChange:d,content:l,onContentChange:s,onRootClose:u.useCallback((()=>d(!1)),[d]),modal:i},r))},Qu=e=>{const{__scopeMenu:t,children:n,open:r=!1,onOpenChange:o}=e,i=Ru("MenuSub",t),a=Lu(t),[l,s]=u.useState(null),[c,d]=u.useState(null),f=si(o);return u.useEffect((()=>(!1===i.open&&f(!1),()=>f(!1))),[i.open,f]),u.createElement(is,a,u.createElement(ju,{scope:t,isSubmenu:!0,isUsingKeyboardRef:i.isUsingKeyboardRef,dir:i.dir,open:r,onOpenChange:f,content:c,onContentChange:d,onRootClose:i.onRootClose,contentId:Li(),trigger:l,onTriggerChange:s,triggerId:Li(),modal:!1},n))},Ju=Tu,ec=Hu,tc=Iu,nc=Bu,rc=Wu,oc=u.forwardRef(((e,t)=>{const{__scopeMenu:n,...r}=e;return u.createElement(oi.div,_e({role:"separator","aria-orientation":"horizontal"},r,{ref:t}))})),ic=u.forwardRef(((e,t)=>{const{__scopeMenu:n,...r}=e,o=Lu(n);return u.createElement(ss,_e({},o,r,{ref:t}))})),[ac,lc]=Pi("DropdownMenu",[Ou]),sc=Ou(),[uc,cc]=ac("DropdownMenu"),dc=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:o,onOpenChange:i,onOpenToggle:a,modal:l=!0}=e,s=sc(t),c=u.useRef(null);return u.createElement(uc,{scope:t,isRootMenu:!0,triggerId:Li(),triggerRef:c,contentId:Li(),open:o,onOpenChange:i,onOpenToggle:a,modal:l},u.createElement(Zu,_e({},s,{open:o,onOpenChange:i,dir:r,modal:l}),n))},fc=u.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,i=cc("DropdownMenuTrigger",n),a=sc(n);return i.isRootMenu?u.createElement(Ju,_e({asChild:!0},a),u.createElement(oi.button,_e({type:"button",id:i.triggerId,"aria-haspopup":"menu","aria-expanded":!!i.open||void 0,"aria-controls":i.open?i.contentId:void 0,"data-state":i.open?"open":"closed","data-disabled":r?"":void 0,disabled:r},o,{ref:Ee(t,i.triggerRef),onPointerDown:wi(e.onPointerDown,(e=>{r||0!==e.button||!1!==e.ctrlKey||(i.open||e.preventDefault(),i.onOpenToggle())})),onKeyDown:wi(e.onKeyDown,(e=>{r||(["Enter"," "].includes(e.key)&&i.onOpenToggle(),"ArrowDown"===e.key&&i.onOpenChange(!0),[" ","ArrowDown"].includes(e.key)&&e.preventDefault())}))}))):null})),[pc,hc]=ac("DropdownMenuContent",{isInsideContent:!1}),gc=u.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=cc("DropdownMenuContent",n),i=sc(n),a={...r,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)"}};return u.createElement(pc,{scope:n,isInsideContent:!0},o.isRootMenu?u.createElement(mc,_e({__scopeDropdownMenu:n},a,{ref:t})):u.createElement(tc,_e({},i,a,{ref:t})))})),mc=u.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,portalled:r=!0,...o}=e,i=cc("DropdownMenuContent",n),a=sc(n),l=u.useRef(!1);return i.isRootMenu?u.createElement(tc,_e({id:i.contentId,"aria-labelledby":i.triggerId},a,o,{ref:t,portalled:r,onCloseAutoFocus:wi(e.onCloseAutoFocus,(e=>{var t;l.current||null===(t=i.triggerRef.current)||void 0===t||t.focus(),l.current=!1,e.preventDefault()})),onInteractOutside:wi(e.onInteractOutside,(e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;i.modal&&!r||(l.current=!0)}))})):null})),vc=u.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=sc(n);return u.createElement(nc,_e({},o,r,{ref:t}))})),yc=u.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=sc(n);return u.createElement(rc,_e({},o,r,{ref:t}))})),bc=u.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=sc(n);return u.createElement(ec,_e({},o,r,{ref:t}))})),wc=u.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=sc(n);return u.createElement(oc,_e({},o,r,{ref:t}))})),xc=u.forwardRef(((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=sc(n);return u.createElement(ic,_e({},o,r,{ref:t}))})),kc=e=>{const{__scopeDropdownMenu:t,children:n,open:r,defaultOpen:o,onOpenChange:i}=e,a=hc("DropdownMenu",t),l=sc(t),[s=!1,c]=_i({prop:r,defaultProp:o,onChange:i}),d=u.useCallback((()=>c((e=>!e))),[c]);return a.isInsideContent?u.createElement(uc,{scope:t,isRootMenu:!1,open:s,onOpenChange:c,onOpenToggle:d},u.createElement(Qu,_e({},l,{open:s,onOpenChange:c}),n)):u.createElement(dc,_e({},e,{open:s,onOpenChange:c,onOpenToggle:d}),n)},Ec=fc,Sc=gc,_c=vc,Cc=bc,Oc=wc,Lc=xc;function Pc(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 jc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Rc,Tc={fontSize:"16px",fontWeight:"500",py:"12px",px:"24px",borderRadius:3,cursor:"default",color:"$utilityTextDefault","&:focus":{outline:"none",backgroundColor:"$grayBgHover"}},Ac=ge(yc,Tc),Mc=ge(Ec,{fontSize:"100%",border:0,padding:0,backgroundColor:"transparent","&:hover":{opacity:.7}}),Ic=(ge(Cc,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Pc(Object(n),!0).forEach((function(t){jc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({'&[data-state="open"]':{outline:"none",backgroundColor:"$grayBgHover"}},Tc)),ge(Sc,{width:195,backgroundColor:"$grayBg",borderRadius:"6px",outline:"1px solid #323232",border:"1px solid $grayBorder",boxShadow:"$cardBoxShadow","--arrow-visibility":"",'&[data-side="top"]':{"--arrow-visibility":"collapse"},'&[data-side="bottom"]':{"--arrow-top":-13},'&[data-align="start"]':{"--arrow-visibility":"collapse"},'&[data-align="center"]':{"--arrow-before-left":"auto","--arrow-before-right":"90px","--arrow-after-left":"auto","--arrow-after-right":"91px"},'&[data-align="end"]':{"--arrow-before-left":"auto","--arrow-before-right":"9px","--arrow-after-left":"auto","--arrow-after-right":"10px"},"&:before":{top:"calc(var(--arrow-top) * 1px - 2px)",left:"var(--arrow-before-left)",right:"var(--arrow-before-right)",border:"8px solid transparent",borderBottomColor:"$grayBorder"},"&:after":{top:"calc(var(--arrow-top) * 1px)",left:"var(--arrow-after-left)",right:"var(--arrow-after-right)",border:"7px solid transparent",borderBottomColor:"$grayBg"},"&:before, &:after":{visibility:"var(--arrow-visibility)",position:"absolute",display:"inline-block",content:""}})),Dc=ge(Lc,{visibility:"hidden"}),Fc=ge(_c,{color:"$utilityTextDefault",fontSize:13,padding:"5px 10px",cursor:"default"});function Nc(e){var t;return(0,Ne.jsx)(Ne.Fragment,{children:(0,Ne.jsx)(Ac,{onSelect:e.onSelect,children:null!==(t=e.title)&&void 0!==t?t:e.children})})}function zc(e){var t=e.children,n=e.align,r=e.triggerElement,o=e.labelText,i=e.disabled,a=void 0!==i&&i,l=e.side,s=void 0===l?"bottom":l,u=e.sideOffset,c=void 0===u?0:u,d=e.alignOffset,f=void 0===d?0:d,p=e.css,h=e.modal;return(0,Ne.jsxs)(kc,{modal:h,children:[(0,Ne.jsx)(Mc,{disabled:a,children:r}),(0,Ne.jsxs)(Ic,{css:p,onInteractOutside:function(e){document.activeElement.blur()},side:s,sideOffset:c,align:n||"center",alignOffset:f,children:[o&&(0,Ne.jsx)(Fc,{children:o}),t,(0,Ne.jsx)(Dc,{})]})]})}function $c(e){return(0,Ne.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,Ne.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"})})}ge(Oc,{height:"1px",margin:0,backgroundColor:"$grayBorder"});var Bc,Wc=(0,it.gql)(Rc||(Rc=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n fragment LabelFields on Label {\n id\n name\n color\n description\n createdAt\n }\n"])));var Hc=new Map;Hc.set("bold",(function(e){return u.createElement(u.Fragment,null,u.createElement("polyline",{points:"216 72 104 184 48 128",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"24"}))})),Hc.set("duotone",(function(e){return u.createElement(u.Fragment,null,u.createElement("polyline",{points:"216 72 104 184 48 128",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}))})),Hc.set("fill",(function(){return u.createElement(u.Fragment,null,u.createElement("path",{d:"M104,192a8.5,8.5,0,0,1-5.7-2.3l-56-56a8.1,8.1,0,0,1,11.4-11.4L104,172.7,210.3,66.3a8.1,8.1,0,0,1,11.4,11.4l-112,112A8.5,8.5,0,0,1,104,192Z"}))})),Hc.set("light",(function(e){return u.createElement(u.Fragment,null,u.createElement("polyline",{points:"216 72 104 184 48 128",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"12"}))})),Hc.set("thin",(function(e){return u.createElement(u.Fragment,null,u.createElement("polyline",{points:"216 72 104 184 48 128",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"8"}))})),Hc.set("regular",(function(e){return u.createElement(u.Fragment,null,u.createElement("polyline",{points:"216 72 104 184 48 128",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}))}));var Uc=function(e,t){return Or(e,t,Hc)},Vc=(0,u.forwardRef)((function(e,t){return u.createElement(jr,Object.assign({ref:t},e,{renderPath:Uc}))}));Vc.displayName="Check";const qc=Vc;var Gc=new Map;Gc.set("bold",(function(e){return u.createElement(u.Fragment,null,u.createElement("circle",{cx:"128",cy:"128",r:"96",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"24"}))})),Gc.set("duotone",(function(e){return u.createElement(u.Fragment,null,u.createElement("circle",{cx:"128",cy:"128",r:"96",opacity:"0.2"}),u.createElement("circle",{cx:"128",cy:"128",r:"96",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}))})),Gc.set("fill",(function(){return u.createElement(u.Fragment,null,u.createElement("circle",{cx:"128",cy:"128",r:"104"}))})),Gc.set("light",(function(e){return u.createElement(u.Fragment,null,u.createElement("circle",{cx:"128",cy:"128",r:"96",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"12"}))})),Gc.set("thin",(function(e){return u.createElement(u.Fragment,null,u.createElement("circle",{cx:"128",cy:"128",r:"96",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"8"}))})),Gc.set("regular",(function(e){return u.createElement(u.Fragment,null,u.createElement("circle",{cx:"128",cy:"128",r:"96",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}))}));var Kc=function(e,t){return Or(e,t,Gc)},Xc=(0,u.forwardRef)((function(e,t){return u.createElement(jr,Object.assign({ref:t},e,{renderPath:Kc}))}));Xc.displayName="Circle";const Yc=Xc;var Zc=new Map;Zc.set("bold",(function(e){return u.createElement(u.Fragment,null,u.createElement("path",{d:"M92.7,216H48a8,8,0,0,1-8-8V163.3a7.9,7.9,0,0,1,2.3-5.6l120-120a8,8,0,0,1,11.4,0l44.6,44.6a8,8,0,0,1,0,11.4l-120,120A7.9,7.9,0,0,1,92.7,216Z",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"24"}),u.createElement("line",{x1:"136",y1:"64",x2:"192",y2:"120",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"24"}))})),Zc.set("duotone",(function(e){return u.createElement(u.Fragment,null,u.createElement("path",{d:"M136,64l56,56,26.3-26.3a8,8,0,0,0,0-11.4L173.7,37.7a8,8,0,0,0-11.4,0Z",opacity:"0.2"}),u.createElement("line",{x1:"136",y1:"64",x2:"192",y2:"120",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),u.createElement("path",{d:"M92.7,216H48a8,8,0,0,1-8-8V163.3a7.9,7.9,0,0,1,2.3-5.6l120-120a8,8,0,0,1,11.4,0l44.6,44.6a8,8,0,0,1,0,11.4l-120,120A7.9,7.9,0,0,1,92.7,216Z",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}))})),Zc.set("fill",(function(){return u.createElement(u.Fragment,null,u.createElement("path",{d:"M224,76.7,179.7,32.3a16.6,16.6,0,0,0-11.3-5A16,16,0,0,0,156.7,32L130.3,58.3h0L36.7,152A15.9,15.9,0,0,0,32,163.3V208a16,16,0,0,0,16,16H92.7a16.1,16.1,0,0,0,11.3-4.7l120-120A16.1,16.1,0,0,0,224,76.7Zm-32,32L147.3,64,168,43.3,212.7,88Z"}))})),Zc.set("light",(function(e){return u.createElement(u.Fragment,null,u.createElement("path",{d:"M92.7,216H48a8,8,0,0,1-8-8V163.3a7.9,7.9,0,0,1,2.3-5.6l120-120a8,8,0,0,1,11.4,0l44.6,44.6a8,8,0,0,1,0,11.4l-120,120A7.9,7.9,0,0,1,92.7,216Z",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"12"}),u.createElement("line",{x1:"136",y1:"64",x2:"192",y2:"120",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"12"}))})),Zc.set("thin",(function(e){return u.createElement(u.Fragment,null,u.createElement("path",{d:"M92.7,216H48a8,8,0,0,1-8-8V163.3a7.9,7.9,0,0,1,2.3-5.6l120-120a8,8,0,0,1,11.4,0l44.6,44.6a8,8,0,0,1,0,11.4l-120,120A7.9,7.9,0,0,1,92.7,216Z",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"8"}),u.createElement("line",{x1:"136",y1:"64",x2:"192",y2:"120",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"8"}))})),Zc.set("regular",(function(e){return u.createElement(u.Fragment,null,u.createElement("path",{d:"M92.7,216H48a8,8,0,0,1-8-8V163.3a7.9,7.9,0,0,1,2.3-5.6l120-120a8,8,0,0,1,11.4,0l44.6,44.6a8,8,0,0,1,0,11.4l-120,120A7.9,7.9,0,0,1,92.7,216Z",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),u.createElement("line",{x1:"136",y1:"64",x2:"192",y2:"120",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}))}));var Qc=function(e,t){return Or(e,t,Zc)},Jc=(0,u.forwardRef)((function(e,t){return u.createElement(jr,Object.assign({ref:t},e,{renderPath:Qc}))}));Jc.displayName="PencilSimple";const ed=Jc;var td=new Map;td.set("bold",(function(e){return u.createElement(u.Fragment,null,u.createElement("line",{x1:"40",y1:"128",x2:"216",y2:"128",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"24"}),u.createElement("line",{x1:"128",y1:"40",x2:"128",y2:"216",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"24"}))})),td.set("duotone",(function(e){return u.createElement(u.Fragment,null,u.createElement("line",{x1:"40",y1:"128",x2:"216",y2:"128",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),u.createElement("line",{x1:"128",y1:"40",x2:"128",y2:"216",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}))})),td.set("fill",(function(){return u.createElement(u.Fragment,null,u.createElement("path",{d:"M216,120H136V40a8,8,0,0,0-16,0v80H40a8,8,0,0,0,0,16h80v80a8,8,0,0,0,16,0V136h80a8,8,0,0,0,0-16Z"}))})),td.set("light",(function(e){return u.createElement(u.Fragment,null,u.createElement("line",{x1:"40",y1:"128",x2:"216",y2:"128",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"12"}),u.createElement("line",{x1:"128",y1:"40",x2:"128",y2:"216",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"12"}))})),td.set("thin",(function(e){return u.createElement(u.Fragment,null,u.createElement("line",{x1:"40",y1:"128",x2:"216",y2:"128",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"8"}),u.createElement("line",{x1:"128",y1:"40",x2:"128",y2:"216",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"8"}))})),td.set("regular",(function(e){return u.createElement(u.Fragment,null,u.createElement("line",{x1:"40",y1:"128",x2:"216",y2:"128",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}),u.createElement("line",{x1:"128",y1:"40",x2:"128",y2:"216",fill:"none",stroke:e,strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"16"}))}));var nd=function(e,t){return Or(e,t,td)},rd=(0,u.forwardRef)((function(e,t){return u.createElement(jr,Object.assign({ref:t},e,{renderPath:nd}))}));rd.displayName="Plus";const od=rd;var id;function ad(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function ld(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 sd(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){ld(i,r,o,a,l,"next",e)}function l(e){ld(i,r,o,a,l,"throw",e)}a(void 0)}))}}function ud(e,t,n){return cd.apply(this,arguments)}function cd(){return cd=sd(regeneratorRuntime.mark((function e(t,n,r){var o,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=(0,it.gql)(id||(id=ad(['\n mutation {\n createLabel(\n input: {\n color: "','"\n name: "','"\n description: "','"\n }\n ) {\n ... on CreateLabelSuccess {\n label {\n id\n name\n color\n description\n createdAt\n }\n }\n ... on CreateLabelError {\n errorCodes\n }\n }\n }\n '])),n,t,r),e.prev=1,e.next=4,xn(o);case 4:return i=e.sent,console.log("created label",i),e.abrupt("return",i.errorCodes?void 0:i.createLabel.label);case 9:return e.prev=9,e.t0=e.catch(1),console.log("createLabelMutation error",e.t0),e.abrupt("return",void 0);case 13:case"end":return e.stop()}}),e,null,[[1,9]])}))),cd.apply(this,arguments)}var dd={"#FF5D99":{colorName:"red",text:"#B20042",border:"#FF5D9966",background:"#FF5D990D"},"#7CFF7B":{colorName:"green",text:"#01A800",border:"#7CFF7B66",background:"#7CFF7B0D"},"#FFD234":{colorName:"yellow",text:"#947300",border:"#FFD23466",background:"#FFD2340D"},"#7BE4FF":{colorName:"blue",text:"#007E9E",border:"#7BE4FF66",background:"#7BE4FF0D"},"#CE88EF":{colorName:"purple",text:"#B759E3",border:"#CE88EF66",background:"#CE88EF0D"},"#EF8C43":{colorName:"orange",text:"#F37417",border:"#EF8C4366",background:"#EF8C430D"},"custom color":{colorName:"custom color",text:"#A5A4A1",border:"#D8D7D566",background:"#D8D7D50D"}};function fd(e){return function(e){if(Array.isArray(e))return vd(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||md(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 pd(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 hd(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){pd(i,r,o,a,l,"next",e)}function l(e){pd(i,r,o,a,l,"throw",e)}a(void 0)}))}}function gd(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)||md(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 md(e,t){if(e){if("string"==typeof e)return vd(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)?vd(e,t):void 0}}function vd(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 yd,bd=ge("input",{width:"100%",fontSize:"16px",fontFamily:"inter",fontWeight:"normal",lineHeight:"1.8",color:"$grayTextContrast","&:focus":{outline:"none"}}),wd=ge("label",{display:"flex",justifyContent:"flex-start"});function xd(e){var t=(0,u.useRef)(null);return(0,u.useEffect)((function(){!Er()&&e.focused&&t.current&&t.current.focus()}),[e.focused]),(0,Ne.jsx)(Ve,{css:{width:"100%",my:"0px",borderBottom:"1px solid $grayBorder"},children:(0,Ne.jsx)($e,{css:{width:"100%",my:"14px",px:"14px"},children:(0,Ne.jsx)(bd,{ref:t,type:"text",tabIndex:e.focused&&!Er()?0:-1,autoFocus:!Er(),value:e.filterText,placeholder:"Filter for label",onChange:function(t){e.setFilterText(t.target.value)},onFocus:function(){e.resetFocusedIndex()},css:{border:"1px solid $grayBorder",borderRadius:"8px",width:"100%",bg:"transparent",fontSize:"16px",textIndent:"8px",marginBottom:"2px",color:"$grayTextContrast","&:focus":{outline:"none",boxShadow:"0px 0px 2px 2px rgba(255, 234, 159, 0.56)"}}})})})}function kd(e){var t=(0,u.useRef)(null),n=e.label,r=e.focused,o=e.selected;return(0,u.useEffect)((function(){e.focused&&t.current&&t.current.focus()}),[e.focused]),(0,Ne.jsxs)(wd,{ref:t,css:{width:"100%",height:"42px",borderBottom:"1px solid $grayBorder",bg:e.focused?"$grayBgActive":"unset"},tabIndex:e.focused?0:-1,onClick:function(r){var o;r.preventDefault(),e.toggleLabel(n),null===(o=t.current)||void 0===o||o.blur()},children:[(0,Ne.jsx)("input",{autoFocus:r,hidden:!0,type:"checkbox",checked:o,readOnly:!0}),(0,Ne.jsx)($e,{css:{pl:"10px",width:"32px",display:"flex",alignItems:"center"},children:o&&(0,Ne.jsx)(qc,{size:15,color:me.colors.grayText.toString(),weight:"bold"})}),(0,Ne.jsx)($e,{css:{width:"30px",height:"100%",display:"flex",alignItems:"center"},children:(0,Ne.jsx)(Yc,{width:22,height:22,color:n.color,weight:"fill"})}),(0,Ne.jsx)($e,{css:{overflow:"clip",height:"100%",display:"flex",alignItems:"center"},children:(0,Ne.jsx)(Vn,{style:"caption",children:n.name})}),(0,Ne.jsx)($e,{css:{pl:"10px",width:"40px",marginLeft:"auto",display:"flex",alignItems:"center"},children:o&&(0,Ne.jsx)($c,{size:14,strokeColor:me.colors.grayText.toString()})})]})}function Ed(e){var t=(0,u.useRef)(null);return(0,u.useEffect)((function(){e.focused&&t.current&&t.current.focus()}),[e.focused]),(0,Ne.jsx)(Ue,{ref:t,distribution:"start",alignment:"center",css:{width:"100%",height:"42px",bg:e.focused?"$grayBgActive":"unset",color:me.colors.grayText.toString(),"a:link":{textDecoration:"none"},"a:visited":{color:me.colors.grayText.toString()}},children:(0,Ne.jsxs)(Be,{css:{display:"flex",fontSize:"12px",padding:"33px",gap:"8px"},children:[(0,Ne.jsx)(ed,{size:18,color:me.colors.grayText.toString()}),(0,Ne.jsx)(jl(),{href:"/settings/labels",children:"Edit labels"})]})})}function Sd(e){var t=(0,kl.useRouter)(),n=gd((0,u.useState)(""),2),r=n[0],o=n[1],i=function(){var e=(0,it.gql)(Bc||(Bc=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n query GetLabels {\n labels {\n ... on LabelsSuccess {\n labels {\n ...LabelFields\n }\n }\n ... on LabelsError {\n errorCodes\n }\n }\n }\n ","\n "])),Wc),t=cn(e,wn),n=t.data,r=t.mutate,o=t.error,i=t.isValidating;try{var a;if(n)return{isValidating:i,labels:null===(a=n.labels)||void 0===a?void 0:a.labels,revalidate:function(){r()}}}catch(o){console.log("error",o)}return{isValidating:!1,labels:[],revalidate:function(){}}}(),a=i.labels,l=i.revalidate;(0,u.useEffect)((function(){h(void 0)}),[r]);var s=(0,u.useCallback)((function(t){return e.selectedLabels.some((function(e){return e.id===t.id}))}),[e.selectedLabels]),c=(0,u.useCallback)(function(){var t=hd(regeneratorRuntime.mark((function t(n){var r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:fd(e.selectedLabels),r=s(n)?e.selectedLabels.filter((function(e){return e.id!==n.id})):[].concat(fd(e.selectedLabels),[n]),e.setSelectedLabels(r),e.provider.labels=r,e.onLabelsUpdated&&e.onLabelsUpdated(r),l();case 6:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),[s,e]),d=(0,u.useMemo)((function(){return a?a.filter((function(e){return e.name.toLowerCase().includes(r.toLowerCase())})).sort((function(e,t){return e.name.localeCompare(t.name)})):[]}),[a,r]),f=gd((0,u.useState)(void 0),2),p=f[0],h=f[1],g=(0,u.useCallback)(function(){var e=hd(regeneratorRuntime.mark((function e(n){var o,i,a,l;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=d.length+1,"ArrowUp"===n.key&&(n.preventDefault(),i=p,i=p?Math.max(0,p-1):void 0,p!==o||r||(i=o-2),h(i)),"ArrowDown"!==n.key&&"Tab"!==n.key||(n.preventDefault(),a=p,a=void 0===p?0:Math.min(o,p+1),p!==o-2||r||(a=o),h(a)),"Enter"!==n.key){e.next=13;break}if(n.preventDefault(),p!==o){e.next=8;break}return t.push("/settings/labels"),e.abrupt("return");case 8:if(p!==o-1){e.next=12;break}return e.next=11,m();case 11:return e.abrupt("return");case 12:void 0!==p&&(l=d[p])&&c(l);case 13:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),[r,d,p,s,e]),m=(0,u.useCallback)(hd(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ud(r,(void 0,(n=Object.keys(dd).slice(0,-1))[Math.floor(Math.random()*n.length)]),"");case 2:(t=e.sent)?(Qa("Created label ".concat(t.name),{position:"bottom-right"}),c(t)):Ja("Failed to create label",{position:"bottom-right"});case 4:case"end":return e.stop()}var n}),e)}))),[r,e,c]);return(0,Ne.jsxs)(Ve,{distribution:"start",onKeyDown:g,css:{p:"0",width:"100%"},children:[(0,Ne.jsx)(xd,{focused:void 0===p,resetFocusedIndex:function(){return h(void 0)},setFilterText:o,filterText:r}),(0,Ne.jsx)(Ve,{distribution:"start",alignment:"start",css:{flexGrow:"1",overflow:"scroll",width:"100%",height:"294px"},children:d&&d.map((function(e,t){return(0,Ne.jsx)(kd,{label:e,focused:t===p,selected:s(e),toggleLabel:c},e.id)}))}),r&&(0,Ne.jsx)(Sr,{style:"modalOption",css:{pl:"26px",color:me.colors.grayText.toString(),height:"42px",borderBottom:"1px solid $grayBorder",bg:p===d.length?"$grayBgActive":"unset"},onClick:m,children:(0,Ne.jsxs)(Ue,{alignment:"center",distribution:"start",css:{gap:"8px"},children:[(0,Ne.jsx)(od,{size:18,color:me.colors.grayText.toString()}),(0,Ne.jsx)(Be,{css:{fontSize:"12px"},children:'Create new label "'.concat(r,'"')})]})}),(0,Ne.jsx)(Ed,{focused:p===d.length+1})]})}function _d(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 Cd(e){return Cd="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},Cd(e)}function Od(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)||Ld(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 Ld(e,t){if(e){if("string"==typeof e)return Pd(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)?Pd(e,t):void 0}}function Pd(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 jd(e){var t,n,r=Od((0,u.useState)(null!==(t=e.provider.labels)&&void 0!==t?t:[]),2),o=r[0],i=r[1],a=Od((0,u.useState)(null!==(n=e.provider.labels)&&void 0!==n?n:[]),2),l=a[0],s=a[1],c=function(e,t){if(e.length!==t.length)return!1;var n,r=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=Ld(e))){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}}}}(e);try{var o=function(){var e=n.value;if(!t.find((function(t){return e.id==t.id})))return{v:!1}};for(r.s();!(n=r.n()).done;){var i=o();if("object"===Cd(i))return i.v}}catch(e){r.e(e)}finally{r.f()}return!0},d=(0,u.useCallback)(function(){var t,n=(t=regeneratorRuntime.mark((function t(n){var r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(c(l,o)){t.next=6;break}return t.next=3,e.save(l);case 3:r=t.sent,e.onLabelsUpdated&&e.onLabelsUpdated(l),r||Ja("Error updating labels");case 6:e.onOpenChange(n);case 7: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){_d(i,r,o,a,l,"next",e)}function l(e){_d(i,r,o,a,l,"throw",e)}a(void 0)}))});return function(e){return n.apply(this,arguments)}}(),[e,l,o,s]);return(0,u.useEffect)((function(){c(l,o)||e.save(l).then((function(e){i(null!=e?e:[])})).catch((function(e){console.log("error saving labels: ",e)}))}),[l,i]),(0,Ne.jsxs)(Qi,{defaultOpen:!0,onOpenChange:d,children:[(0,Ne.jsx)(ea,{}),(0,Ne.jsx)(na,{css:{border:"1px solid $grayBorder"},onPointerDownOutside:function(e){e.preventDefault(),d(!1)},children:(0,Ne.jsxs)(Ve,{distribution:"start",css:{height:"100%"},children:[(0,Ne.jsx)(Be,{css:{p:"16px",width:"100%"},children:(0,Ne.jsx)(ra,{title:"Labels",onOpenChange:d})}),(0,Ne.jsx)(Sd,{provider:e.provider,selectedLabels:l,setSelectedLabels:s,onLabelsUpdated:e.onLabelsUpdated})]})})]})}function Rd(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function Td(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 Ad(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Td(i,r,o,a,l,"next",e)}function l(e){Td(i,r,o,a,l,"throw",e)}a(void 0)}))}}function Md(e,t){return Id.apply(this,arguments)}function Id(){return Id=Ad(regeneratorRuntime.mark((function e(t,n){var r,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=(0,it.gql)(yd||(yd=Rd(["\n mutation SetLabelsForHighlight($input: SetLabelsForHighlightInput!) {\n setLabelsForHighlight(input: $input) {\n ... on SetLabelsSuccess {\n labels {\n ...LabelFields\n }\n }\n ... on SetLabelsError {\n errorCodes\n }\n }\n }\n ","\n "])),Wc),console.log("setting label for highlight id: ",t,"labelIds",n),e.prev=2,e.next=5,xn(r,{input:{highlightId:t,labelIds:n}});case 5:return o=e.sent,console.log(" -- errorCodes",o.setLabelsForHighlight.errorCodes),e.abrupt("return",o.setLabelsForHighlight.errorCodes?void 0:o.setLabelsForHighlight.labels);case 10:return e.prev=10,e.t0=e.catch(2),console.log("setLabelsForHighlightInput error",e.t0),e.abrupt("return",void 0);case 14:case"end":return e.stop()}}),e,null,[[2,10]])}))),Id.apply(this,arguments)}function Dd(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 Fd(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Dd(i,r,o,a,l,"next",e)}function l(e){Dd(i,r,o,a,l,"throw",e)}a(void 0)}))}}function Nd(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 zd(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)?zd(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 zd(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 $d=function(e){return(new Xn.diff_match_patch).patch_fromText(e)[0].start1||void 0};function Bd(e){var t=Nd((0,u.useState)(void 0),2),n=t[0],r=t[1],o=Nd((0,u.useState)(void 0),2),i=o[0],a=o[1],l=Nd((0,u.useState)({}),2)[1],s=(0,u.useMemo)((function(){var t=function(e,t){return e<t?-1:e>t?1:0};return e.highlights.sort((function(e,n){if(e.highlightPositionPercent&&n.highlightPositionPercent)return t(e.highlightPositionPercent,n.highlightPositionPercent);try{var r=$d(e.patch),o=$d(n.patch);if(r&&o)return t(r,o)}catch(e){}return e.createdAt.localeCompare(n.createdAt)}))}),[e.highlights]);return(0,Ne.jsxs)(Qi,{defaultOpen:!0,onOpenChange:e.onOpenChange,children:[(0,Ne.jsx)(ea,{}),(0,Ne.jsx)(na,{onPointerDownOutside:function(t){t.preventDefault(),e.onOpenChange(!1)},css:{overflow:"auto",px:"24px"},children:(0,Ne.jsxs)(Ve,{distribution:"start",css:{height:"100%"},children:[(0,Ne.jsx)(ra,{title:"Notebook",onOpenChange:e.onOpenChange}),(0,Ne.jsxs)($e,{css:{overflow:"auto",width:"100%"},children:[s.map((function(t){return(0,Ne.jsx)(Wd,{highlight:t,showDelete:!!e.deleteHighlightAction,scrollToHighlight:e.scrollToHighlight,setSetLabelsTarget:a,setShowConfirmDeleteHighlightId:r,deleteHighlightAction:function(){e.deleteHighlightAction&&e.deleteHighlightAction(t.id)},updateHighlight:e.updateHighlight},t.id)})),0===s.length&&(0,Ne.jsx)(Be,{css:{textAlign:"center",width:"100%"},children:(0,Ne.jsx)(Vn,{css:{mb:"40px"},children:"You have not added any highlights or notes to this document"})})]})]})}),n&&(0,Ne.jsx)(Zs,{message:"Are you sure you want to delete this highlight?",onAccept:function(){e.deleteHighlightAction&&e.deleteHighlightAction(n),r(void 0)},onOpenChange:function(){return r(void 0)},icon:(0,Ne.jsx)(Ys,{size:40,strokeColor:me.colors.grayTextContrast.toString()})}),i&&(0,Ne.jsx)(jd,{provider:i,onOpenChange:function(e){a(void 0)},onLabelsUpdated:function(e){l({})},save:function(e){return Md(i.id,e.map((function(e){return e.id})))}})]})}function Wd(e){var t=Nd((0,u.useState)(!1),2),n=t[0],r=t[1],o=(0,u.useCallback)(Fd(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,navigator.clipboard.writeText(e.highlight.quote);case 2:case"end":return t.stop()}}),t)}))),[e.highlight]);return(0,Ne.jsx)(Ne.Fragment,{children:(0,Ne.jsxs)(Ve,{children:[(0,Ne.jsx)(Be,{css:{marginLeft:"auto"},children:(0,Ne.jsxs)(zc,{triggerElement:(0,Ne.jsx)(tu,{size:24,color:me.colors.readerFont.toString()}),children:[(0,Ne.jsx)(Nc,{onSelect:Fd(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,o();case 2:case"end":return e.stop()}}),e)}))),title:"Copy"}),(0,Ne.jsx)(Nc,{onSelect:function(){e.setSetLabelsTarget(e.highlight)},title:"Labels"}),(0,Ne.jsx)(Nc,{onSelect:function(){e.setShowConfirmDeleteHighlightId(e.highlight.id)},title:"Delete"})]})}),(0,Ne.jsx)(Sl,{scrollToHighlight:e.scrollToHighlight,highlight:e.highlight}),n?null:(0,Ne.jsx)(Vn,{css:{borderRadius:"6px",bg:"$grayBase",p:"16px",width:"100%",marginTop:"24px",color:"$grayText"},onClick:function(){return r(!0)},children:e.highlight.annotation?e.highlight.annotation:"Add your notes..."}),n&&(0,Ne.jsx)(Ud,{setIsEditing:r,highlight:e.highlight,updateHighlight:e.updateHighlight}),(0,Ne.jsx)(Be,{css:{mt:"$2",mb:"$4"}})]})})}var Hd,Ud=function(e){var t,n=Nd((0,u.useState)(null!==(t=e.highlight.annotation)&&void 0!==t?t:""),2),r=n[0],o=n[1],i=(0,u.useCallback)((function(e){o(e.target.value)}),[o]);return(0,Ne.jsxs)(Ve,{css:{width:"100%"},children:[(0,Ne.jsx)(ia,{css:{my:"$3",minHeight:"$6",borderRadius:"6px",bg:"$grayBase",p:"16px",width:"100%",marginTop:"16px",resize:"vertical"},autoFocus:!0,maxLength:4e3,value:r,placeholder:"Add your notes...",onChange:i}),(0,Ne.jsxs)(Ue,{alignment:"center",distribution:"end",css:{width:"100%"},children:[(0,Ne.jsx)(Sr,{style:"ctaPill",css:{mr:"$2"},onClick:function(){var t;e.setIsEditing(!1),o(null!==(t=e.highlight.annotation)&&void 0!==t?t:"")},children:"Cancel"}),(0,Ne.jsx)(Sr,{style:"ctaDarkYellow",onClick:function(){var t=Fd(regeneratorRuntime.mark((function t(n){var o;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n.preventDefault(),console.log("updating highlight"),t.prev=2,t.next=5,ua({highlightId:e.highlight.id,annotation:r});case 5:o=t.sent,console.log("result: "+o),o?(Qa("Note saved"),e.highlight.annotation=r,e.updateHighlight(e.highlight)):Ja("There was an error updating your highlight."),t.next=14;break;case 10:t.prev=10,t.t0=t.catch(2),console.log("error updating annoation",t.t0),Ja("There was an error updating your highlight.");case 14:e.setIsEditing(!1);case 15:case"end":return t.stop()}}),t,null,[[2,10]])})));return function(e){return t.apply(this,arguments)}}(),children:"Save"})]})]},"textEditor")};function Vd(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 qd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vd(Object(n),!0).forEach((function(t){Gd(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Gd(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Kd(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 Xd(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Kd(i,r,o,a,l,"next",e)}function l(e){Kd(i,r,o,a,l,"throw",e)}a(void 0)}))}}function Yd(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)||Zd(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 Zd(e,t){if(e){if("string"==typeof e)return Qd(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)?Qd(e,t):void 0}}function Qd(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 Jd(e){var t=Yd((0,u.useState)(e.highlights),2),n=t[0],r=t[1],o=Yd((0,u.useState)({highlightModalAction:"none"}),2),i=o[0],a=o[1],l=Yd((0,u.useState)([]),2),s=l[0],c=l[1],d=(0,u.useRef)({pageX:0,pageY:0}),f=Yd((0,u.useState)(void 0),2),p=f[0],h=f[1],g=function(e){var t=mr((0,u.useState)(null),2),n=t[0],r=t[1],o=(0,u.useCallback)(function(){var t=gr(regeneratorRuntime.mark((function t(n){var o,i,a,l,s,u,c,d,f,p,h,g,m,v,y,b,w,x,k,E,S,_,C;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return l={tapX:n.clientX,tapY:n.clientY},null===(o=window)||void 0===o||null===(i=o.AndroidWebKitMessenger)||void 0===i||i.handleIdentifiableMessage("userTap",JSON.stringify(l)),t.next=4,yr();case 4:if(s=t.sent){t.next=7;break}return t.abrupt("return",setTimeout((function(){r(null)}),100));case 7:if(u=s.range,c=s.isReverseSelected,d=s.selection,f=ar(u),p=mr(f,2),h=p[0],g=p[1],m=wr(u,c),v=!1,y=[],e.sort((function(e,t){return e.start<t.start?-1:e.start>t.start?1:0})).forEach((function(e){h>=e.start&&g<=e.end?v=!0:h<=e.end&&e.start<=g&&y.push(e)})),b=null,!y.length){t.next=23;break}if(S=!1,h<=y[0].start?(w=u.startContainer,x=u.startOffset):(_=dr(y[0].id),w=_.shift(),x=0),g>=y[y.length-1].end?(k=u.endContainer,E=u.endOffset):(C=dr(y[y.length-1].id),k=C.pop(),E=0,S=!0),w&&k){t.next=20;break}throw new Error("Failed to query node for computing new merged range");case 20:(b=new Range).setStart(w,x),S?b.setEndAfter(k):b.setEnd(k,E);case 23:if(!v){t.next=25;break}return t.abrupt("return",setTimeout((function(){r(null)}),100));case 25:return t.abrupt("return",r({selection:d,mouseEvent:n,range:null!==(a=b)&&void 0!==a?a:u,focusPosition:{x:m[c?"left":"right"],y:m[c?"top":"bottom"],isReverseSelected:c},overlapHighlights:y.map((function(e){return e.id}))}));case 26:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),[e]),i=(0,u.useCallback)(gr(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:null===(t=window.AndroidWebKitMessenger)||void 0===t||t.handleIdentifiableMessage("writeToClipboard",JSON.stringify({quote:null==n?void 0:n.selection.toString()}));case 1:case"end":return e.stop()}}),e)}))),[null==n?void 0:n.selection]);return(0,u.useEffect)((function(){return document.addEventListener("mouseup",o),document.addEventListener("touchend",o),document.addEventListener("contextmenu",o),document.addEventListener("copyTextSelection",i),function(){document.removeEventListener("mouseup",o),document.removeEventListener("touchend",o),document.removeEventListener("contextmenu",o),document.removeEventListener("copyTextSelection",i)}}),[e,o,i]),[n,r]}(s),m=Yd(g,2),v=m[0],y=m[1],b=Yd((0,u.useState)(void 0),2),w=b[0],x=b[1],k=(0,u.useMemo)((function(){var e;return"undefined"!=typeof window&&!(!kr()&&!xr())&&"function"==typeof(null===(e=navigator)||void 0===e?void 0:e.share)}),[]);(0,u.useEffect)((function(){var t=[];if(n.forEach((function(e){try{var n=function(e){var t=function(e){return or(e.patch,e.id,!!e.annotation,e.createdByMe?void 0:"var(--colors-recommendedHighlightBackground)",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 E=(0,u.useCallback)(function(){var t=Xd(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=4;break}return console.error("Failed to identify highlight to be removed"),t.abrupt("return");case 4:return t.next=6,e.articleMutations.deleteHighlightMutation(i);case 6:t.sent?(Kr(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 8:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),[p,n,s]),S=(0,u.useCallback)((function(e){Kr([e.id]);var t,o=n.filter((function(t){return t.id!==e.id}));r([].concat(function(e){if(Array.isArray(e))return Qd(e)}(t=o)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||Zd(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),[e]))}),[n,s]),_=(0,u.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]),C=(0,u.useCallback)((function(t){var n,r,o,i,l,s,u,c;if(void 0!==(null===(n=window)||void 0===n||null===(r=n.webkit)||void 0===r?void 0:r.messageHandlers.highlightAction)&&e.highlightBarDisabled)null===(i=window)||void 0===i||null===(l=i.webkit)||void 0===l||null===(s=l.messageHandlers.highlightAction)||void 0===s||s.postMessage({actionID:"annotate",annotation:null!==(u=null===(c=t.highlight)||void 0===c?void 0:c.annotation)&&void 0!==u?u:""});else if(void 0!==(null===(o=window)||void 0===o?void 0:o.AndroidWebKitMessenger)){var d,f;window.AndroidWebKitMessenger.handleIdentifiableMessage("annotate",JSON.stringify({annotation:null!==(d=null===(f=t.highlight)||void 0===f?void 0:f.annotation)&&void 0!==d?d:""}))}else t.createHighlightForNote=function(){var e=Xd(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,P(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]),O=function(e){if(e.rangeCount>0&&window&&window.document.scrollingElement){var t=(e.getRangeAt(0).getBoundingClientRect().y+window.scrollY)/window.document.scrollingElement.scrollHeight;return Math.min(Math.max(0,100*t),100)}},L=function(e){if(e.rangeCount>0)for(var t=(r=e.getRangeAt(0).startContainer).nodeType==Node.ELEMENT_NODE?r:r.parentElement;t;){var n=Number(t.getAttribute("data-omnivore-anchor-idx"));if(n>0)return n;t=t.parentElement}var r},P=function(){var t=Xd(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,go({selection:o,articleId:e.articleId,existingHighlights:n,highlightStartEndOffsets:s,annotation:i,highlightPositionPercent:O(o.selection),highlightPositionAnchorIndex:L(o.selection)},e.articleMutations);case 2:if(!(l=t.sent).errorMessage){t.next=5;break}throw"Failed to create highlight: "+l.errorMessage;case 5:if(l.highlights&&0!=l.highlights.length){t.next=8;break}return console.error("Failed to create highlight"),t.abrupt("return",void 0);case 8:if(y(null),r(l.highlights),void 0!==l.newHighlightIndex){t.next=13;break}return a({highlightModalAction:"none"}),t.abrupt("return",void 0);case 13:return t.abrupt("return",l.highlights[l.newHighlightIndex]);case 14:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}(),j=(0,u.useCallback)(function(){var e=Xd(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.prev=2,e.next=5,P(v,n);case 5:if(e.sent){e.next=9;break}throw Ja("Error saving highlight",{position:"bottom-right"}),"Error creating highlight";case 9:e.next=14;break;case 11:throw e.prev=11,e.t0=e.catch(2),e.t0;case 14:case"end":return e.stop()}}),e,null,[[2,11]])})));return function(t,n){return e.apply(this,arguments)}}(),[_,n,C,e.articleId,v,y,k,s]),R=(0,u.useCallback)((function(e){var t,r,o=e.target,i=e.pageX,a=e.pageY;if(o&&(null==o?void 0:o.nodeType)===Node.ELEMENT_NODE){var l={tapX:e.clientX,tapY:e.clientY};if(null===(t=window)||void 0===t||null===(r=t.AndroidWebKitMessenger)||void 0===r||r.handleIdentifiableMessage("userTap",JSON.stringify(l)),d.current={pageX:i,pageY:a},o.hasAttribute(Zn)){var s=o.getAttribute(Zn),u=n.find((function(e){return e.id===s}));if(u){var c,f,p,g,m;h(u);var v=o.getBoundingClientRect();null===(c=window)||void 0===c||null===(f=c.webkit)||void 0===f||null===(p=f.messageHandlers.viewerAction)||void 0===p||p.postMessage({actionID:"showMenu",rectX:v.x,rectY:v.y,rectWidth:v.width,rectHeight:v.height}),null===(g=window)||void 0===g||null===(m=g.AndroidWebKitMessenger)||void 0===m||m.handleIdentifiableMessage("existingHighlightTap",JSON.stringify(qd({},l)))}}else if(o.hasAttribute(Qn)){var y=o.getAttribute(Qn),b=n.find((function(e){return e.id===y}));C({highlight:b,highlightModalAction:"addComment"})}else h(void 0)}}),[n,s]);(0,u.useEffect)((function(){if("undefined"!=typeof window)return document.addEventListener("click",R),function(){return document.removeEventListener("click",R)}}),[R]);var T,A,M,I,D,F,N=(0,u.useCallback)(function(){var t=Xd(regeneratorRuntime.mark((function t(n){var r,o,i,l,s,u,c,d;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:t.t0=n,t.next="delete"===t.t0?3:"create"===t.t0?6:"comment"===t.t0?9:"share"===t.t0?11:"unshare"===t.t0?20:"setHighlightLabels"===t.t0?22:24;break;case 3:return t.next=5,E();case 5:case 8:case 19:return t.abrupt("break",24);case 6:return t.next=8,j("none");case 9:return e.highlightBarDisabled||p?C({highlight:p,highlightModalAction:"addComment"}):C({highlight:void 0,selectionData:v||void 0,highlightModalAction:"addComment"}),t.abrupt("break",24);case 11:if(e.isAppleAppEmbed&&(null===(i=window)||void 0===i||null===(l=i.webkit)||void 0===l||null===(s=l.messageHandlers.highlightAction)||void 0===s||s.postMessage({actionID:"share",highlightID:null==p?void 0:p.id})),null===(r=window)||void 0===r||null===(o=r.AndroidWebKitMessenger)||void 0===o||o.handleIdentifiableMessage("shareHighlight",JSON.stringify({highlightID:null==p?void 0:p.id})),!p){t.next=17;break}k?_(p.shortId):a({highlight:p,highlightModalAction:"share"}),t.next=19;break;case 17:return t.next=19,j("share");case 20:return console.log("unshare"),t.abrupt("break",24);case 22:return e.isAppleAppEmbed?null===(u=window)||void 0===u||null===(c=u.webkit)||void 0===c||null===(d=c.messageHandlers.highlightAction)||void 0===d||d.postMessage({actionID:"setHighlightLabels",highlightID:null==p?void 0:p.id}):x(p),t.abrupt("break",24);case 24:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),[j,p,_,C,e.highlightBarDisabled,e.isAppleAppEmbed,E,k]),z=function(t,n){var r,o,i;e.isAppleAppEmbed&&(null===(r=window)||void 0===r||null===(o=r.webkit)||void 0===o||null===(i=o.messageHandlers.highlightAction)||void 0===i||i.postMessage({actionID:"highlightError",highlightAction:t,highlightID:null==p?void 0:p.id,error:"string"==typeof n?n:JSON.stringify(n)}))},$=function(t){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:t,highlightID:null==p?void 0:p.id}))};return(0,u.useEffect)((function(){var t=function(){var e=Xd(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,N(t);case 3:e.next=8;break;case 5:e.prev=5,e.t0=e.catch(0),z(t,e.t0);case 8:case"end":return e.stop()}}),e,null,[[0,5]])})));return function(t){return e.apply(this,arguments)}}(),n=function(){var e=Xd(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t("comment");case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),r=function(){var e=Xd(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t("create");case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),o=function(){var e=Xd(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t("share");case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),i=function(){var e=Xd(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t("delete");case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),a=function(){h(void 0)},l=function(){N("setHighlightLabels")},s=function(){var e=Xd(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!p){e.next=8;break}if(!window.AndroidWebKitMessenger){e.next=5;break}window.AndroidWebKitMessenger.handleIdentifiableMessage("writeToClipboard",JSON.stringify({quote:p.quote})),e.next=7;break;case 5:return e.next=7,navigator.clipboard.writeText(p.quote);case 7:h(void 0);case 8:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),u=function(){var e=Xd(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=document.querySelector('[data-omnivore-anchor-idx="'.concat(t.anchorIdx,'"]')),document.querySelectorAll(".speakingSection").forEach((function(e){e!=n&&(null==e||e.classList.remove("speakingSection"))})),null==n||n.classList.add("speakingSection");case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),c=function(){var t=Xd(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=10;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?S(qd(qd({},p),{},{annotation:i})):(console.log("failed to change annotation for highlight with id",p.id),z("saveAnnotation","Failed to create highlight.")),h(void 0),$("noteCreated"),t.next=19;break;case 10:return t.prev=10,t.next=13,j("none",n.annotation);case 13:$("noteCreated"),t.next=19;break;case 16:t.prev=16,t.t0=t.catch(10),z("saveAnnotation",t.t0);case 19:case"end":return t.stop()}}),t,null,[[10,16]])})));return function(e){return t.apply(this,arguments)}}();return document.addEventListener("annotate",n),document.addEventListener("highlight",r),document.addEventListener("share",o),document.addEventListener("remove",i),document.addEventListener("copyHighlight",s),document.addEventListener("dismissHighlight",a),document.addEventListener("saveAnnotation",c),document.addEventListener("speakingSection",u),document.addEventListener("setHighlightLabels",l),function(){document.removeEventListener("annotate",n),document.removeEventListener("highlight",r),document.removeEventListener("share",o),document.removeEventListener("remove",i),document.removeEventListener("copyHighlight",s),document.removeEventListener("dismissHighlight",a),document.removeEventListener("saveAnnotation",c),document.removeEventListener("speakingSection",u),document.removeEventListener("setHighlightLabels",l)}})),"addComment"==(null==i?void 0:i.highlightModalAction)?(0,Ne.jsx)(al,{highlight:i.highlight,author:e.articleAuthor,title:e.articleTitle,onUpdate:S,onOpenChange:function(){return a({highlightModalAction:"none"})},createHighlightForNote:null==i?void 0:i.createHighlightForNote}):w?(0,Ne.jsx)(jd,{provider:w,onOpenChange:function(e){x(void 0)},save:function(e){return Md(w.id,e.map((function(e){return e.id})))}}):"share"==(null==i?void 0:i.highlightModalAction)&&i.highlight?(0,Ne.jsx)(Xs,{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,Ne.jsx)(Bd,{highlights:n,onOpenChange:function(){return e.setShowHighlightsModal(!1)},deleteHighlightAction:function(e){E(e)},updateHighlight:S}):(0,Ne.jsx)(Ne.Fragment,{}):(0,Ne.jsx)(Ne.Fragment,{children:(0,Ne.jsx)(qr,{anchorCoordinates:{pageX:null!==(T=null!==(A=null===(M=d.current)||void 0===M?void 0:M.pageX)&&void 0!==A?A:null==v?void 0:v.focusPosition.x)&&void 0!==T?T:0,pageY:null!==(I=null!==(D=null===(F=d.current)||void 0===F?void 0:F.pageY)&&void 0!==D?D:null==v?void 0:v.focusPosition.y)&&void 0!==I?I:0},isNewHighlight:!!v,handleButtonClick:N,isSharedToFeed:null!=(null==p?void 0:p.sharedAt),displayAtBottom:Er()})})}function ef(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 tf(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){ef(i,r,o,a,l,"next",e)}function l(e){ef(i,r,o,a,l,"throw",e)}a(void 0)}))}}function nf(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 rf(e){var t,n,r=(t=(0,u.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 nf(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)?nf(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,u.useCallback)((function(e){i(e.target.value)}),[i]),l=(0,u.useCallback)(tf(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,Ne.jsxs)(Qi,{defaultOpen:!0,onOpenChange:e.onOpenChange,children:[(0,Ne.jsx)(ea,{}),(0,Ne.jsxs)(na,{onPointerDownOutside:function(e){e.preventDefault()},css:{overflow:"auto"},children:[(0,Ne.jsxs)($e,{css:{display:"grid",gridTemplateColumns:"1fr auto 1fr",px:"$2"},children:[(0,Ne.jsx)(Sr,{style:"ctaSecondary",onClick:function(){e.onOpenChange(!1)},css:{justifySelf:"start"},children:"Cancel"}),(0,Ne.jsx)(Ue,{alignment:"center",children:(0,Ne.jsx)(Vn,{children:"Report Issue"})}),(0,Ne.jsx)(Sr,{style:"ctaSecondary",onClick:l,css:{justifySelf:"end"},children:"Submit"})]}),(0,Ne.jsx)(ia,{css:{mt:"$2",width:"95%",p:"$1",minHeight:"$6"},autoFocus:!0,placeholder:"Add any additional comments (optional)",value:o,onChange:a,maxLength:1e3})]})]})}function of(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function af(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 lf(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){af(i,r,o,a,l,"next",e)}function l(e){af(i,r,o,a,l,"throw",e)}a(void 0)}))}}function sf(){return sf=lf(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=(0,it.gql)(Hd||(Hd=of(["\n mutation ReportItem($input: ReportItemInput!) {\n reportItem(input: $input) {\n ... on ReportItemResult {\n message\n }\n }\n }\n "]))),e.prev=1,e.next=4,wn(n,{input:t});case 4:return e.abrupt("return",!0);case 7:return e.prev=7,e.t0=e.catch(1),e.abrupt("return",!1);case 10:case"end":return e.stop()}}),e,null,[[1,7]])}))),sf.apply(this,arguments)}const[uf,cf]=Pi("Avatar"),[df,ff]=uf("Avatar"),pf=u.forwardRef(((e,t)=>{const{__scopeAvatar:n,...r}=e,[o,i]=u.useState("idle");return u.createElement(df,{scope:n,imageLoadingStatus:o,onImageLoadingStatusChange:i},u.createElement(oi.span,_e({},r,{ref:t})))})),hf=u.forwardRef(((e,t)=>{const{__scopeAvatar:n,src:r,onLoadingStatusChange:o=(()=>{}),...i}=e,a=ff("AvatarImage",n),l=function(e){const[t,n]=u.useState("idle");return u.useEffect((()=>{if(!e)return void n("error");let t=!0;const r=new window.Image,o=e=>()=>{t&&n(e)};return n("loading"),r.onload=o("loaded"),r.onerror=o("error"),r.src=e,()=>{t=!1}}),[e]),t}(r),s=si((e=>{o(e),a.onImageLoadingStatusChange(e)}));return ii((()=>{"idle"!==l&&s(l)}),[l,s]),"loaded"===l?u.createElement(oi.img,_e({},i,{ref:t,src:r})):null})),gf=u.forwardRef(((e,t)=>{const{__scopeAvatar:n,delayMs:r,...o}=e,i=ff("AvatarFallback",n),[a,l]=u.useState(void 0===r);return u.useEffect((()=>{if(void 0!==r){const e=window.setTimeout((()=>l(!0)),r);return()=>window.clearTimeout(e)}}),[r]),a&&"loaded"!==i.imageLoadingStatus?u.createElement(oi.span,_e({},o,{ref:t})):null})),mf=hf,vf=gf;function yf(e){return(0,Ne.jsxs)(bf,{title:e.tooltip,css:{width:e.height,height:e.height,borderRadius:"50%"},children:[(0,Ne.jsx)(wf,{src:e.imageURL,css:{opacity:e.noFade?"unset":"48%"}}),(0,Ne.jsx)(xf,{children:e.fallbackText})]})}var bf=ge(pf,{display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle",overflow:"hidden",userSelect:"none",border:"1px solid $grayBorder"}),wf=ge(mf,{width:"100%",height:"100%",objectFit:"cover","&:hover":{opacity:"100%"}}),xf=ge(vf,{width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center",fontSize:"$2",fontWeight:700,backgroundColor:"$avatarBg",color:"$avatarFont"});function kf(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 Ef(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){kf(i,r,o,a,l,"next",e)}function l(e){kf(i,r,o,a,l,"throw",e)}a(void 0)}))}}function Sf(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 _f(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)?_f(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 _f(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 Cf=function(e){return(0,Ne.jsxs)(Ve,{id:"recommendations-container",css:{borderRadius:"6px",bg:"$grayBgSubtle",p:"16px",pt:"16px",pb:"2px",width:"100%",marginTop:"24px",color:"$grayText",lineHeight:"2.0"},children:[(0,Ne.jsx)(Ue,{css:{pb:"0px",mb:"0px"},children:(0,Ne.jsxs)(Vn,{style:"recommendedByline",css:{paddingTop:"0px",mb:"16px"},children:["Comments"," ",(0,Ne.jsxs)(Be,{css:{color:"grayText",fontWeight:"400"},children:[" "," ".concat(e.recommendationsWithNotes.length)]})]})}),e.recommendationsWithNotes.map((function(e,t){var n,r,o,i;return(0,Ne.jsx)(Ve,{alignment:"start",distribution:"start",css:{pt:"0px",pb:"8px"},children:(0,Ne.jsxs)(Ue,{children:[(0,Ne.jsx)(Be,{css:{verticalAlign:"top",minWidth:"28px",display:"flex"},children:(0,Ne.jsx)(yf,{imageURL:null===(n=e.user)||void 0===n?void 0:n.profileImageURL,height:"28px",noFade:!0,tooltip:null===(r=e.user)||void 0===r?void 0:r.name,fallbackText:null!==(o=null===(i=e.user)||void 0===i?void 0:i.username[0])&&void 0!==o?o:"U"})}),(0,Ne.jsx)(Vn,{style:"userNote",css:{pl:"16px"},children:e.note})]})},e.id)}))]})};function Of(e){var t,n,r,o,a,l,s,c,d,f=Sf((0,u.useState)(!1),2),p=f[0],h=f[1],g=Sf((0,u.useState)(null!==(t=e.fontSize)&&void 0!==t?t:20),2),m=g[0],v=g[1],y=Sf((0,u.useState)(null),2),b=y[0],w=y[1],x=Sf((0,u.useState)(null),2),k=x[0],E=x[1],S=Sf((0,u.useState)(null),2),_=S[0],C=S[1],O=Sf((0,u.useState)(null!==(n=e.highContrastFont)&&void 0!==n&&n),2),L=O[0],P=O[1],j=(0,u.useRef)(window.location.hash?window.location.hash.split("#")[1]:null),R=function(){var e=Ef(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,Tn({fontSize:t});case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();(0,u.useEffect)((function(){var t;R(null!==(t=e.fontSize)&&void 0!==t?t:20)}),[e.fontSize]),(0,u.useEffect)((function(){var t=function(e){var t,n,r=null!==(t=null!==(n=e.lineHeight)&&void 0!==n?n:k)&&void 0!==t?t:150;r>=100&&r<=300&&E(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)},r=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),C(i)},o=function(){var e=Ef(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n="high"==t.fontContrast,P(n);case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),a=function(){var e=Ef(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&&R(r);case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),l=function(){var e=Ef(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:(n=t.themeName)&&In(n);case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),s=function(e){var t;Dn("true"===(null!==(t=e.isDark)&&void 0!==t?t:"false")?i.Dark:i.Light)},u=function(){navigator.share&&navigator.share({title:e.article.title,url:e.article.originalArticleUrl})};return document.addEventListener("updateFontFamily",r),document.addEventListener("updateLineHeight",t),document.addEventListener("updateMaxWidthPercentage",n),document.addEventListener("updateTheme",l),document.addEventListener("updateFontSize",a),document.addEventListener("updateColorMode",s),document.addEventListener("handleFontContrastChange",o),document.addEventListener("share",u),function(){document.removeEventListener("updateFontFamily",r),document.removeEventListener("updateLineHeight",t),document.removeEventListener("updateMaxWidthPercentage",n),document.removeEventListener("updateTheme",l),document.removeEventListener("updateFontSize",a),document.removeEventListener("updateColorMode",s),document.removeEventListener("handleFontContrastChange",o),document.removeEventListener("share",u)}}));var T={fontSize:m,margin:null!==(r=e.margin)&&void 0!==r?r:360,maxWidthPercentage:null!=b?b:e.maxWidthPercentage,lineHeight:null!==(o=null!=k?k:e.lineHeight)&&void 0!==o?o:150,fontFamily:null!==(a=null!=_?_:e.fontFamily)&&void 0!==a?a:"inter",readerFontColor:L?me.colors.readerFontHighContrast.toString():me.colors.readerFont.toString(),readerTableHeaderColor:me.colors.readerTableHeader.toString(),readerHeadersColor:me.colors.readerHeader.toString()},A=(0,u.useMemo)((function(){var t,n;return null!==(t=null===(n=e.article.recommendations)||void 0===n?void 0:n.filter((function(e){return e.note})))&&void 0!==t?t:[]}),[e.article.recommendations]);return(0,Ne.jsxs)(Ne.Fragment,{children:[(0,Ne.jsxs)($e,{id:"article-container",css:{padding:"16px",maxWidth:"".concat(null!==(l=T.maxWidthPercentage)&&void 0!==l?l:100,"%"),background:e.isAppleAppEmbed?"unset":me.colors.readerBg.toString(),"--text-font-family":T.fontFamily,"--text-font-size":"".concat(T.fontSize,"px"),"--line-height":"".concat(T.lineHeight,"%"),"--blockquote-padding":"0.5em 1em","--blockquote-icon-font-size":"1.3rem","--figure-margin":"1.6rem auto","--hr-margin":"1em","--font-color":T.readerFontColor,"--table-header-color":T.readerTableHeaderColor,"--headers-color":T.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:T.maxWidthPercentage?"".concat(T.maxWidthPercentage,"%"):1024-T.margin}},children:[(0,Ne.jsxs)(Ve,{alignment:"start",distribution:"start",children:[(0,Ne.jsx)(Vn,{style:"boldHeadline","data-testid":"article-headline",css:{fontFamily:T.fontFamily,width:"100%",wordWrap:"break-word"},children:e.article.title}),(0,Ne.jsx)(Gn,{rawDisplayDate:null!==(s=e.article.publishedAt)&&void 0!==s?s:e.article.createdAt,author:e.article.author,href:e.article.url}),e.labels?(0,Ne.jsx)(Be,{css:{pb:"16px",width:"100%","&:empty":{display:"none"}},children:null===(c=e.labels)||void 0===c?void 0:c.map((function(e){return(0,Ne.jsx)(El,{text:e.name,color:e.color},e.id)}))}):null,A.length>0&&(0,Ne.jsx)(Cf,{recommendationsWithNotes:A})]}),(0,Ne.jsx)(Un,{articleId:e.article.id,content:e.article.content,highlightHref:j,initialAnchorIndex:e.article.readingProgressAnchorIndex,articleMutations:e.articleMutations}),(0,Ne.jsxs)(Sr,{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,Ne.jsx)($e,{css:{height:"100px"}})]}),(0,Ne.jsx)(Jd,{scrollToHighlight:j,highlights:e.article.highlights,articleTitle:e.article.title,articleAuthor:null!==(d=e.article.author)&&void 0!==d?d:"",articleId:e.article.id,isAppleAppEmbed:e.isAppleAppEmbed,highlightsBaseURL:e.highlightsBaseURL,highlightBarDisabled:e.highlightBarDisabled,showHighlightsModal:e.showHighlightsModal,setShowHighlightsModal:e.setShowHighlightsModal,articleMutations:e.articleMutations}),p?(0,Ne.jsx)(rf,{onCommit:function(t){!function(e){sf.apply(this,arguments)}({pageId:e.article.id,itemUrl:e.article.url,reportTypes:["CONTENT_DISPLAY"],reportComment:t})},onOpenChange:function(e){return h(e)}}):null]})}var Lf=o(3379),Pf=o.n(Lf),jf=o(7795),Rf=o.n(jf),Tf=o(569),Af=o.n(Tf),Mf=o(3565),If=o.n(Mf),Df=o(9216),Ff=o.n(Df),Nf=o(4589),zf=o.n(Nf),$f=o(7420),Bf={};Bf.styleTagTransform=zf(),Bf.setAttributes=If(),Bf.insert=Af().bind(null,"head"),Bf.domAPI=Rf(),Bf.insertStyleElement=Ff(),Pf()($f.Z,Bf),$f.Z&&$f.Z.locals&&$f.Z.locals;var Wf=o(2778),Hf={};function Uf(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 Vf(e){for(var n=1;n<arguments.length;n++){var r=null!=arguments[n]?arguments[n]:{};n%2?Uf(Object(r),!0).forEach((function(n){t(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Uf(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}Hf.styleTagTransform=zf(),Hf.setAttributes=If(),Hf.insert=Af().bind(null,"head"),Hf.domAPI=Rf(),Hf.insertStyleElement=Ff(),Pf()(Wf.Z,Hf),Wf.Z&&Wf.Z.locals&&Wf.Z.locals;var qf=function(){var e,t=(e=s().mark((function e(t,n){var r,o,i,a;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!window.webkit){e.next=8;break}return e.next=3,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(Vf({actionID:t},n));case 3:return a=e.sent,console.log("action result",a,a.result),e.abrupt("return",a.result);case 8:console.log("sending android a message",t,n),AndroidWebKitMessenger.handleIdentifiableMessage(t,JSON.stringify(n)),e.t0=t,e.next="createHighlight"===e.t0?13:"deleteHighlight"===e.t0?14:"mergeHighlight"===e.t0?15:"updateHighlight"===e.t0?16:"articleReadingProgress"===e.t0?17:18;break;case 13:return e.abrupt("return",n);case 14:case 16:case 17:case 18:return e.abrupt("return",!0);case 15:return e.abrupt("return",{id:n.id,shortID:n.shortId,quote:n.quote,patch:n.patch,createdByMe:!0,labels:[]});case 19:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(o,i){var a=e.apply(t,r);function l(e){n(a,o,i,l,s,"next",e)}function s(e){n(a,o,i,l,s,"throw",e)}l(void 0)}))});return function(e,n){return t.apply(this,arguments)}}(),Gf=function(){var t,n,r,o,a,l=(o=u.useState(window.omnivoreArticle.labels),a=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,a)||function(t,n){if(t){if("string"==typeof t)return e(t,n);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?e(t,n):void 0}}(o,a)||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.")}()),s=l[0],c=l[1];return function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if("undefined"!=typeof window){var t=window.themeKey||window.localStorage.getItem(Mn);t&&Object.values(i).includes(t)&&(e?In(t):Dn(t))}}(!1),document.addEventListener("updateLabels",(function(e){console.log("updating labels: ",e.labels),c(e.labels)})),(0,Ne.jsx)(Ne.Fragment,{children:(0,Ne.jsx)($e,{css:{overflowY:"auto",height:"100%",width:"100vw",paddingTop:window.webkit?0:"48px"},children:(0,Ne.jsx)(Ve,{alignment:"center",distribution:"center",className:"disable-webkit-callout",children:(0,Ne.jsx)(Of,{article:window.omnivoreArticle,labels:s,isAppleAppEmbed:!0,highlightBarDisabled:!window.enableHighlightBar,highlightsBaseURL:"https://example.com",fontSize:null!==(t=window.fontSize)&&void 0!==t?t:18,fontFamily:null!==(n=window.fontFamily)&&void 0!==n?n:"inter",margin:window.margin,maxWidthPercentage:window.maxWidthPercentage,lineHeight:window.lineHeight,highContrastFont:null===(r=window.prefersHighContrastFont)||void 0===r||r,articleMutations:{createHighlightMutation:function(e){return qf("createHighlight",e)},deleteHighlightMutation:function(e){return qf("deleteHighlight",{highlightId:e})},mergeHighlightMutation:function(e){return qf("mergeHighlight",e)},updateHighlightMutation:function(e){return qf("updateHighlight",e)},articleReadingProgressMutation:function(e){return qf("articleReadingProgress",e)}}})})})})};d.render((0,Ne.jsx)(Gf,{}),document.getElementById("root"))})()})(); |