arize-phoenix 5.1.5__py3-none-any.whl → 5.1.6__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of arize-phoenix might be problematic. Click here for more details.

@@ -54,7 +54,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
54
54
  * @copyright 2009-2013 Jeremy Ashkenas, DocumentCloud Inc.
55
55
  * @license MIT
56
56
  */function Mee(e,t){var n=ab.length?ab.pop():[],r=ob.length?ob.pop():[],i=Kx(e,t,n,r);return n.length=0,r.length=0,ab.push(n),ob.push(r),i}function Kx(e,t,n,r){if(e===t)return e!==0||1/e==1/t;if(e==null||t==null||typeof e!="object"||typeof t!="object")return!1;var i=Object.prototype.toString,a=i.call(e);if(a!=i.call(t))return!1;switch(a){case"[object String]":return e==String(t);case"[object Number]":return isNaN(e)||isNaN(t)?!1:e==Number(t);case"[object Date]":case"[object Boolean]":return+e==+t;case"[object RegExp]":return e.source==t.source&&e.global==t.global&&e.multiline==t.multiline&&e.ignoreCase==t.ignoreCase}for(var o=n.length;o--;)if(n[o]==e)return r[o]==t;n.push(e),r.push(t);var l=0;if(a==="[object Array]"){if(l=e.length,l!==t.length)return!1;for(;l--;)if(!Kx(e[l],t[l],n,r))return!1}else{if(e.constructor!==t.constructor)return!1;if(e.hasOwnProperty("valueOf")&&t.hasOwnProperty("valueOf"))return e.valueOf()==t.valueOf();var s=Object.keys(e);if(s.length!=Object.keys(t).length)return!1;for(var u=0;u<s.length;u++)if(!Kx(e[s[u]],t[s[u]],n,r))return!1}return n.pop(),r.pop(),!0}var Ha=Mee,Lee=Pa,Fee=Vs,Nee=Fee.getFragmentVariables,Ug=en,zee=Ug.CLIENT_EDGE_TRAVERSAL_PATH,Uee=Ug.FRAGMENT_OWNER_KEY,qee=Ug.FRAGMENT_POINTER_IS_WITHIN_UNMATCHED_TYPE_REFINEMENT,jee=Ug.FRAGMENTS_KEY,ZU=Ug.ID_KEY,WU=Ha,Qs=qe;function S1(e,t){typeof t=="object"&&t!==null&&!Array.isArray(t)||Qs(!1);var n=t[ZU],r=t[jee],i=t[Uee],a=t[zee];if(typeof n=="string"&&typeof r=="object"&&r!==null&&typeof r[e.name]=="object"&&r[e.name]!==null&&typeof i=="object"&&i!==null&&(a==null||Array.isArray(a))){var o=i,l=a,s=r[e.name],u=Nee(e,o.variables,s),c=s[qee]===!0;return JU(e,n,u,o,c,l)}return null}function XU(e,t){var n=null;return t.forEach(function(r,i){var a=r!=null?S1(e,r):null;a!=null&&(n=n||[],n.push(a))}),n==null?null:{kind:"PluralReaderSelector",selectors:n}}function YU(e,t){return t==null?t:e.metadata&&e.metadata.plural===!0?(Array.isArray(t)||Qs(!1),XU(e,t)):(Array.isArray(t)&&Qs(!1),S1(e,t))}function Vee(e,t){var n={};for(var r in e)if(e.hasOwnProperty(r)){var i=e[r],a=t[r];n[r]=YU(i,a)}return n}function Zee(e,t){var n={};for(var r in e)if(e.hasOwnProperty(r)){var i=e[r],a=t[r];n[r]=GU(i,a)}return n}function GU(e,t){return t==null?t:e.metadata&&e.metadata.plural===!0?(Array.isArray(t)||Qs(!1),Wee(e,t)):(Array.isArray(t)&&Qs(!1),BU(e,t))}function Wee(e,t){var n=null;return t.forEach(function(r){var i=r!=null?BU(e,r):null;i!=null&&(n=n||[],n.push(i))}),n}function BU(e,t){typeof t=="object"&&t!==null&&!Array.isArray(t)||Qs(!1);var n=t[ZU];return typeof n=="string"?n:null}function Xee(e,t){var n={};for(var r in e)if(e.hasOwnProperty(r)){var i=e[r],a=t[r],o=HU(i,a);Object.assign(n,o)}return n}function HU(e,t){var n;return t==null?{}:((n=e.metadata)===null||n===void 0?void 0:n.plural)===!0?(Array.isArray(t)||Qs(!1),KU(e,t)):(Array.isArray(t)&&Qs(!1),jR(e,t)||{})}function jR(e,t){var n=S1(e,t);return n?n.variables:null}function KU(e,t){var n={};return t.forEach(function(r,i){if(r!=null){var a=jR(e,r);a!=null&&Object.assign(n,a)}}),n}function ZA(e,t){return e.dataID===t.dataID&&e.node===t.node&&WU(e.variables,t.variables)&&Yee(e.owner,t.owner)&&(!Lee.ENABLE_STRICT_EQUAL_SELECTORS||e.isWithinUnmatchedTypeRefinement===t.isWithinUnmatchedTypeRefinement&&Gee(e.clientEdgeTraversalPath,t.clientEdgeTraversalPath))}function Yee(e,t){return e===t?!0:e.identifier===t.identifier&&WU(e.cacheConfig,t.cacheConfig)}function Gee(e,t){if(e===t)return!0;if(e==null||t==null||e.length!==t.length)return!1;for(var n=e.length;n--;){var r=e[n],i=t[n];if(r!==i&&(r==null||i==null||r.clientEdgeDestinationID!==i.clientEdgeDestinationID||r.readerClientEdge!==i.readerClientEdge))return!1}return!0}function Bee(e,t){return e===t?!0:e==null?t==null:t==null?e==null:e.kind==="SingularReaderSelector"&&t.kind==="SingularReaderSelector"?ZA(e,t):e.kind==="PluralReaderSelector"&&t.kind==="PluralReaderSelector"?e.selectors.length===t.selectors.length&&e.selectors.every(function(n,r){return ZA(n,t.selectors[r])}):!1}function JU(e,t,n,r){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,a=arguments.length>5?arguments[5]:void 0;return{kind:"SingularReaderSelector",dataID:t,isWithinUnmatchedTypeRefinement:i,clientEdgeTraversalPath:a??null,node:e,variables:n,owner:r}}function Hee(e,t,n){return{dataID:t,node:e,variables:n}}var Ml={areEqualSelectors:Bee,createReaderSelector:JU,createNormalizationSelector:Hee,getDataIDsFromFragment:GU,getDataIDsFromObject:Zee,getSingularSelector:S1,getPluralSelector:XU,getSelector:YU,getSelectorsFromObject:Vee,getVariablesFromSingularFragment:jR,getVariablesFromPluralFragment:KU,getVariablesFromFragment:HU,getVariablesFromObject:Xee},Kee=MU,Jee=Vs,ete=Jee.getOperationVariables,e6=Ml,tte=e6.createNormalizationSelector,nte=e6.createReaderSelector,rte=en,ite=rte.ROOT_ID;function ate(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:ite,i=e.operation,a=ete(i,e.params.providedVariables,t),o=t6(e,a,n),l={fragment:nte(e.fragment,r,a,o),request:o,root:tte(i,r,a)};return l}function t6(e,t,n){var r={identifier:Kee(e.params,t),node:e,variables:t,cacheConfig:n};return r}var bc={createOperationDescriptor:ate,createRequestDescriptor:t6},ote=nt.default,VR=ote(er),Df=y1;var lte=Object.freeze({RANGE_ADD:"RANGE_ADD",RANGE_DELETE:"RANGE_DELETE",NODE_DELETE:"NODE_DELETE"}),ste=Object.freeze({APPEND:"append",PREPEND:"prepend"});function ute(e,t,n,r){var i=n?[n]:[],a=r?[r]:[];return e.forEach(function(o){switch(o.type){case"NODE_DELETE":var l=cte(o,t);l&&(i.push(l),a.push(l));break;case"RANGE_ADD":var s=fte(o,t);s&&(i.push(s),a.push(s));break;case"RANGE_DELETE":var u=dte(o,t);u&&(i.push(u),a.push(u));break}}),{optimisticUpdater:function(l,s){i.forEach(function(u){u(l,s)})},updater:function(l,s){a.forEach(function(u){u(l,s)})}}}function cte(e,t){var n=e.deletedIDFieldName,r=ZR(t);return r?function(i,a){var o=i.getRootField(r);if(o){var l=o.getValue(n),s=Array.isArray(l)?l:[l];s.forEach(function(u){u&&typeof u=="string"&&i.delete(u)})}}:null}function fte(e,t){var n=e.parentID,r=e.connectionInfo,i=e.edgeName;if(!n)return null;var a=ZR(t);return!r||!a?null:function(o,l){var s=o.get(n);if(s){var u=o.getRootField(a);if(u){var c=u.getLinkedRecord(i),f=(0,VR.default)(r),p;try{for(f.s();!(p=f.n()).done;){var g=p.value;if(c){var v=Df.getConnection(s,g.key,g.filters);if(v){var m=Df.buildConnectionEdge(o,v,c);if(m)switch(g.rangeBehavior){case"append":Df.insertEdgeAfter(v,m);break;case"prepend":Df.insertEdgeBefore(v,m);break;default:break}}}}}catch(_){f.e(_)}finally{f.f()}}}}}function dte(e,t){var n=e.parentID,r=e.connectionKeys,i=e.pathToConnection,a=e.deletedIDFieldName;if(!n)return null;var o=ZR(t);return o?function(l,s){if(s){var u=[],c=s[o];if(c&&Array.isArray(a)){var f=(0,VR.default)(a),p;try{for(f.s();!(p=f.n()).done;){var g=p.value;c&&typeof c=="object"&&(c=c[g])}}catch(v){f.e(v)}finally{f.f()}Array.isArray(c)?c.forEach(function(v){v&&v.id&&typeof v=="object"&&typeof v.id=="string"&&u.push(v.id)}):c&&c.id&&typeof c.id=="string"&&u.push(c.id)}else c&&typeof a=="string"&&typeof c=="object"&&(c=c[a],typeof c=="string"?u.push(c):Array.isArray(c)&&c.forEach(function(v){typeof v=="string"&&u.push(v)}));hte(n,r,i,l,u)}}:null}function hte(e,t,n,r,i){var a=r.get(e);if(a&&!(n.length<2)){for(var o=a,l=1;l<n.length-1;l++)o&&(o=o.getLinkedRecord(n[l]));if(!(!t||!o)){var s=(0,VR.default)(t),u;try{var c=function(){var p=u.value,g=Df.getConnection(o,p.key,p.filters);g&&i.forEach(function(v){Df.deleteNode(g,v)})};for(s.s();!(u=s.n()).done;)c()}catch(f){s.e(f)}finally{s.f()}}}}function ZR(e){return e.fragment.selections&&e.fragment.selections.length>0&&e.fragment.selections[0].kind==="LinkedField"?e.fragment.selections[0].name:null}var b1={MutationTypes:lte,RangeOperations:ste,convert:ute},pte=Uo,gte=pte.getRequest,vte=qR,mte=bc,Ote=mte.createOperationDescriptor,yte=b1,_te=qe;function Ste(e,t){vte(e)||_te(!1);var n=gte(t.mutation);if(n.params.operationKind!=="mutation")throw new Error("commitMutation: Expected mutation operation");var r=t.optimisticUpdater,i=t.configs,a=t.optimisticResponse,o=t.variables,l=Ote(n,o);if(i){var s=yte.convert(i,n,r);r=s.optimisticUpdater}return e.applyMutation({operation:l,response:a,updater:r})}var bte=Ste;function wte(e,t){e.commitUpdate(t)}var $te=wte,xte=nt.default;xte(un);var mr=Xi;mr.ACTOR_CHANGE;mr.CLIENT_COMPONENT;mr.CLIENT_EDGE_TO_CLIENT_OBJECT;mr.CLIENT_EXTENSION;mr.CONDITION;mr.DEFER;mr.FRAGMENT_SPREAD;mr.INLINE_FRAGMENT;mr.LINKED_FIELD;mr.LINKED_HANDLE;mr.MODULE_IMPORT;mr.RELAY_LIVE_RESOLVER;mr.RELAY_RESOLVER;mr.SCALAR_FIELD;mr.SCALAR_HANDLE;mr.STREAM;mr.TYPE_DISCRIMINATOR;var Pte=nt.default,WA=Pte(yc),Ete=Uo,Rte=Ete.getRequest,kte=zo,Tte=kte.generateUniqueClientID,Cte=qR,Qte=bc,Ate=Qte.createOperationDescriptor,Ite=b1,Dte=qe;function Mte(e,t){Cte(e)||Dte(!1);var n=Rte(t.mutation);if(n.params.operationKind!=="mutation")throw new Error("commitMutation: Expected mutation operation");if(n.kind!=="Request")throw new Error("commitMutation: Expected mutation to be of type request");var r=t.optimisticResponse,i=t.optimisticUpdater,a=t.updater,o=t.configs,l=t.cacheConfig,s=t.onError,u=t.onUnsubscribe,c=t.variables,f=t.uploadables,p=Ate(n,c,l,Tte());if(typeof r=="function"&&(r=r()),o){var g=Ite.convert(o,n,i,a);i=g.optimisticUpdater,a=g.updater}var v=[],m=e.executeMutation({operation:p,optimisticResponse:r,optimisticUpdater:i,updater:a,uploadables:f}).subscribe({next:function(O){var S;Array.isArray(O)?O.forEach(function(b){b.errors&&v.push.apply(v,(0,WA.default)(b.errors))}):O.errors&&v.push.apply(v,(0,WA.default)(O.errors)),(S=t.onNext)===null||S===void 0||S.call(t)},complete:function(){var O=t.onCompleted;if(O){var S=e.lookup(p.fragment);O(S.data,v.length!==0?v:null)}},error:s,unsubscribe:u});return{dispose:m.unsubscribe}}var Lte=Mte,Fte=typeof WeakMap=="function",lb=Fte?new WeakMap:new Map;function n6(e,t){if(t!=null){var n={};return Object.assign(n,e),Object.keys(t).forEach(function(r){var i=t[r].get,a=i();if(!lb.has(i))lb.set(i,a),n[r]=a;else{var o=lb.get(i);n[r]=o}}),n}else return e}n6.tests_only_resetDebugCache=void 0;var r6=n6;function Nte(e){return!!e&&typeof e.then=="function"}var i6=Nte,zte=i6,pl=Wte,ug=function(){e.create=function(r){return new e(r)};function e(n){this._source=n}e.onUnhandledError=function(r){pl=r},e.from=function(r){return Ute(r)?qte(r):zte(r)?jte(r):Vte(r)};var t=e.prototype;return t.catch=function(r){var i=this;return e.create(function(a){var o;return i.subscribe({start:function(s){o=s},next:a.next,complete:a.complete,error:function(s){try{r(s).subscribe({start:function(c){o=c},next:a.next,complete:a.complete,error:a.error})}catch(u){a.error(u,!0)}}}),function(){return o.unsubscribe()}})},t.concat=function(r){var i=this;return e.create(function(a){var o;return i.subscribe({start:function(s){o=s},next:a.next,error:a.error,complete:function(){o=r.subscribe(a)}}),function(){o&&o.unsubscribe()}})},t.do=function(r){var i=this;return e.create(function(a){var o=function(s){return function(){try{r[s]&&r[s].apply(r,arguments)}catch(u){pl(u,!0)}a[s]&&a[s].apply(a,arguments)}};return i.subscribe({start:o("start"),next:o("next"),error:o("error"),complete:o("complete"),unsubscribe:o("unsubscribe")})})},t.finally=function(r){var i=this;return e.create(function(a){var o=i.subscribe(a);return function(){o.unsubscribe(),r()}})},t.ifEmpty=function(r){var i=this;return e.create(function(a){var o=!1,l;return l=i.subscribe({next:function(u){o=!0,a.next(u)},error:a.error,complete:function(){o?a.complete():l=r.subscribe(a)}}),function(){l&&l.unsubscribe()}})},t.subscribe=function(r){return Zte(this._source,r)},t.map=function(r){var i=this;return e.create(function(a){var o=i.subscribe({complete:a.complete,error:a.error,next:function(s){try{var u=r(s);a.next(u)}catch(c){a.error(c,!0)}}});return function(){o.unsubscribe()}})},t.mergeMap=function(r){var i=this;return e.create(function(a){var o=[];function l(u){this._sub=u,o.push(u)}function s(){o.splice(o.indexOf(this._sub),1),o.length===0&&a.complete()}return i.subscribe({start:l,next:function(c){try{a.closed||e.from(r(c)).subscribe({start:l,next:a.next,error:a.error,complete:s})}catch(f){a.error(f,!0)}},error:a.error,complete:s}),function(){o.forEach(function(u){return u.unsubscribe()}),o.length=0}})},t.poll=function(r){var i=this;return e.create(function(a){var o,l,s=function u(){o=i.subscribe({next:a.next,error:a.error,complete:function(){l=setTimeout(u,r)}})};return s(),function(){clearTimeout(l),o.unsubscribe()}})},t.toPromise=function(){var r=this;return new Promise(function(i,a){var o=!1;r.subscribe({next:function(s){o||(o=!0,i(s))},error:a,complete:i})})},e}();function Ute(e){return typeof e=="object"&&e!==null&&typeof e.subscribe=="function"}function qte(e){return e instanceof ug?e:ug.create(function(t){return e.subscribe(t)})}function jte(e){return ug.create(function(t){e.then(function(n){t.next(n),t.complete()},t.error)})}function Vte(e){return ug.create(function(t){t.next(e),t.complete()})}function Zte(e,t){var n=!1,r,i=function(u){return Object.defineProperty(u,"closed",{get:function(){return n}})};function a(){if(r){if(r.unsubscribe)r.unsubscribe();else try{r()}catch(s){pl(s,!0)}r=void 0}}var o=i({unsubscribe:function(){if(!n){n=!0;try{t.unsubscribe&&t.unsubscribe(o)}catch(u){pl(u,!0)}finally{a()}}}});try{t.start&&t.start(o)}catch(s){pl(s,!0)}if(n)return o;var l=i({next:function(u){if(!n&&t.next)try{t.next(u)}catch(c){pl(c,!0)}},error:function(u,c){if(n||!t.error)n=!0,pl(u,c||!1),a();else{n=!0;try{t.error(u)}catch(f){pl(f,!0)}finally{a()}}},complete:function(){if(!n){n=!0;try{t.complete&&t.complete()}catch(u){pl(u,!0)}finally{a()}}}});try{r=e(l)}catch(s){l.error(s,!0)}return n&&a(),o}function Wte(e,t){}var wc=ug,XA=wc;function Xte(e){return function(n,r,i,a,o){var l=e(n,r,i,a,o);return l instanceof Error?XA.create(function(s){return s.error(l)}):XA.from(l)}}var Yte={convertFetch:Xte},Gte=r6,Bte=Yte,Hte=Bte.convertFetch,sb=qe;function Kte(e,t){var n=Hte(e);function r(i,a,o,l,s){var u=Gte(a,i.providedVariables);if(i.operationKind==="subscription")return t||sb(!1),l&&sb(!1),t(i,u,o);var c=o.poll;return c!=null?(l&&sb(!1),n(i,u,{force:!0}).poll(c)):n(i,u,o,l,s)}return{execute:r}}var Jte={create:Kte},ene=nt.default,ts=ene(un),tne=Td,YA=qe,nne=function(){function e(n){var r=n.size,i=n.ttl;r>0||YA(!1),i>0||YA(!1),this._responses=new Map,this._size=r,this._ttl=i}var t=e.prototype;return t.clear=function(){this._responses.clear()},t.get=function(r,i){var a=this,o=GA(r,i);this._responses.forEach(function(s,u){rne(s.fetchTime,a._ttl)||a._responses.delete(u)});var l=this._responses.get(o);return l==null?null:Array.isArray(l.payload)?l.payload.map(function(s){return(0,ts.default)((0,ts.default)({},s),{},{extensions:(0,ts.default)((0,ts.default)({},s.extensions),{},{cacheTimestamp:l.fetchTime})})}):(0,ts.default)((0,ts.default)({},l.payload),{},{extensions:(0,ts.default)((0,ts.default)({},l.payload.extensions),{},{cacheTimestamp:l.fetchTime})})},t.set=function(r,i,a){var o=Date.now(),l=GA(r,i);if(this._responses.delete(l),this._responses.set(l,{fetchTime:o,payload:a}),this._responses.size>this._size){var s=this._responses.keys().next();s.done||this._responses.delete(s.value)}},e}();function GA(e,t){return JSON.stringify(tne({queryID:e,variables:t}))}function rne(e,t){return e+t>=Date.now()}var ine=nne,a6={exports:{}};(function(e){function t(n,r){if(n==null)return{};var i={};for(var a in n)if({}.hasOwnProperty.call(n,a)){if(r.includes(a))continue;i[a]=n[a]}return i}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(a6);var qg=a6.exports,o6={exports:{}},l6={exports:{}};(function(e){function t(n,r){return e.exports=t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,a){return i.__proto__=a,i},e.exports.__esModule=!0,e.exports.default=e.exports,t(n,r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(l6);var WR=l6.exports;(function(e){var t=WR;function n(r,i){r.prototype=Object.create(i.prototype),r.prototype.constructor=r,t(r,i)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(o6);var jg=o6.exports,s6={exports:{}},u6={exports:{}};(function(e){function t(n){return e.exports=t=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(u6);var ane=u6.exports,c6={exports:{}};(function(e){function t(n){try{return Function.toString.call(n).indexOf("[native code]")!==-1}catch{return typeof n=="function"}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(c6);var one=c6.exports,f6={exports:{}},d6={exports:{}};(function(e){function t(){try{var n=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(e.exports=t=function(){return!!n},e.exports.__esModule=!0,e.exports.default=e.exports)()}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(d6);var lne=d6.exports;(function(e){var t=lne,n=WR;function r(i,a,o){if(t())return Reflect.construct.apply(null,arguments);var l=[null];l.push.apply(l,a);var s=new(i.bind.apply(i,l));return o&&n(s,o.prototype),s}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports})(f6);var sne=f6.exports;(function(e){var t=ane,n=WR,r=one,i=sne;function a(o){var l=typeof Map=="function"?new Map:void 0;return e.exports=a=function(u){if(u===null||!r(u))return u;if(typeof u!="function")throw new TypeError("Super expression must either be null or a function");if(l!==void 0){if(l.has(u))return l.get(u);l.set(u,c)}function c(){return i(u,arguments,t(this).constructor)}return c.prototype=Object.create(u.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),n(c,u)},e.exports.__esModule=!0,e.exports.default=e.exports,a(o)}e.exports=a,e.exports.__esModule=!0,e.exports.default=e.exports})(s6);var une=s6.exports,Qd=nt.default,BA=Qd(un),cne=Qd(qg),h6=Qd(er),fne=Qd(jg),dne=Qd(une),hne=Qd(yc),pne=["path","locations"],gne=Pa,Ty=Symbol("$SELF"),vne=function(e){(0,fne.default)(t,e);function t(n){var r,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return r=e.call(this,n)||this,r.name="RelayFieldError",r.message=n,r.errors=i,r}return t}((0,dne.default)(Error));function mne(e){if(e==null||!gne.ENABLE_FIELD_ERROR_HANDLING)return null;var t=new Map,n=(0,h6.default)(e),r;try{for(n.s();!(r=n.n()).done;){var i=r.value,a=i.path,o=i.locations,l=(0,cne.default)(i,pne);if(a!=null){var s=a.length;if(s!==0){for(var u=s-1,c=t,f=0;f<u;f++){var p=a[f],g=c.get(p);if(g instanceof Map){c=g;continue}var v=new Map;Array.isArray(g)&&v.set(Ty,g),c.set(p,v),c=v}var m=a[u],_=c.get(m);_ instanceof Map&&(c=_,_=c.get(m),m=Ty),Array.isArray(_)?_.push(l):c.set(m,[l])}}}}catch(O){n.e(O)}finally{n.f()}return t}function One(e,t){var n=e.get(t);if(n==null)return null;if(Array.isArray(n))return n;var r=[];return p6(n,r),r}function p6(e,t){var n=(0,h6.default)(e),r;try{for(n.s();!(r=n.n()).done;){var i=r.value,a=i[0],o=i[1],l=t.length;if(Array.isArray(o)?t.push.apply(t,(0,hne.default)(o)):p6(o,t),a!==Ty)for(var s=t.length,u=l;u<s;u++){var c=t[u];c.path==null?t[u]=(0,BA.default)((0,BA.default)({},c),{},{path:[a]}):c.path.unshift(a)}}}catch(f){n.e(f)}finally{n.f()}}function yne(e,t){var n=e.get(t);return n instanceof Map?n:null}var g6={SELF:Ty,buildErrorTrie:mne,getNestedErrorTrieByKey:yne,getErrorsByKey:One,RelayFieldError:vne},v6=nt.default,HA=v6(er),_ne=g6,KA=v6(Pa);function Sne(e,t,n,r){var i=(0,HA.default)(n),a;try{for(i.s();!(a=i.n()).done;){var o=a.value;e.relayFieldLogger({kind:"relay_resolver.error",owner:o.field.owner,fieldPath:o.field.path,error:o.error})}}catch(_){i.e(_)}finally{i.f()}if(KA.default.ENABLE_FIELD_ERROR_HANDLING&&r!=null){if(r!=null){var l=(0,HA.default)(r),s;try{for(l.s();!(s=l.n()).done;){var u=s.value,c=u.path,f=u.owner,p=u.error;e.relayFieldLogger({kind:"relay_field_payload.error",owner:f,fieldPath:c,error:p})}}catch(_){l.e(_)}finally{l.f()}}if(KA.default.ENABLE_FIELD_ERROR_HANDLING_THROW_BY_DEFAULT)throw new _ne.RelayFieldError("Relay: Unexpected response payload - this object includes an errors property in which you can access the underlying errors",r.map(function(_){_.path,_.owner;var O=_.error;return O}))}if(t!=null)switch(t.action){case"THROW":{var g=t.field,v=g.path,m=g.owner;throw e.relayFieldLogger({kind:"missing_field.throw",owner:m,fieldPath:v}),new Error("Relay: Missing @required value at path '".concat(v,"' in '").concat(m,"'."))}case"LOG":t.fields.forEach(function(_){var O=_.path,S=_.owner;e.relayFieldLogger({kind:"missing_field.log",owner:S,fieldPath:O})});break;default:t.action}}var XR=Sne,m6=nt.default,bne=m6(er),Pm=m6(ei),wne=wc,$ne=qe,xne=function(){function e(){var n=this;(0,Pm.default)(this,"_complete",!1),(0,Pm.default)(this,"_events",[]),(0,Pm.default)(this,"_sinks",new Set),(0,Pm.default)(this,"_subscription",[]),this._observable=wne.create(function(r){n._sinks.add(r);for(var i=n._events,a=0;a<i.length&&!r.closed;a++){var o=i[a];switch(o.kind){case"complete":r.complete();break;case"error":r.error(o.error);break;case"next":r.next(o.data);break;default:o.kind,$ne(!1)}}return function(){n._sinks.delete(r)}})}var t=e.prototype;return t.complete=function(){this._complete!==!0&&(this._complete=!0,this._events.push({kind:"complete"}),this._sinks.forEach(function(r){return r.complete()}))},t.error=function(r){this._complete!==!0&&(this._complete=!0,this._events.push({kind:"error",error:r}),this._sinks.forEach(function(i){return i.error(r)}))},t.next=function(r){this._complete!==!0&&(this._events.push({kind:"next",data:r}),this._sinks.forEach(function(i){return i.next(r)}))},t.subscribe=function(r){var i=this._observable.subscribe(r);return this._subscription.push(i),i},t.unsubscribe=function(){var r=(0,bne.default)(this._subscription),i;try{for(r.s();!(i=r.n()).done;){var a=i.value;a.unsubscribe()}}catch(o){r.e(o)}finally{r.f()}this._subscription=[]},t.getObserverCount=function(){return this._sinks.size},e}(),O6=xne,YR=wc,JA=O6,y6=qe,Pne=typeof WeakMap=="function",eI=Pne?new WeakMap:new Map;function Ene(e,t){return _6(e,t.request.identifier,function(){return e.execute({operation:t})})}function _6(e,t,n){return YR.create(function(r){var i=GR(e),a=i.get(t);return a||n().finally(function(){return i.delete(t)}).subscribe({start:function(l){a={identifier:t,subject:new JA,subjectForInFlightStatus:new JA,subscription:l,promise:null},i.set(t,a)},next:function(l){var s=Em(i,t);s.subject.next(l),s.subjectForInFlightStatus.next(l)},error:function(l){var s=Em(i,t);s.subject.error(l),s.subjectForInFlightStatus.error(l)},complete:function(){var l=Em(i,t);l.subject.complete(),l.subjectForInFlightStatus.complete()},unsubscribe:function(l){var s=Em(i,t);s.subject.unsubscribe(),s.subjectForInFlightStatus.unsubscribe()}}),a==null&&y6(!1),Rne(i,a).subscribe(r)})}function Rne(e,t){return YR.create(function(n){var r=t.subject.subscribe(n);return function(){r.unsubscribe();var i=e.get(t.identifier);if(i){var a=i.subscription;a!=null&&i.subject.getObserverCount()===0&&(a.unsubscribe(),e.delete(t.identifier))}}})}function S6(e,t,n){return YR.create(function(r){var i=n.subjectForInFlightStatus.subscribe({error:r.error,next:function(o){if(!e.isRequestActive(n.identifier)){r.complete();return}r.next()},complete:r.complete,unsubscribe:r.complete});return function(){i.unsubscribe()}})}function kne(e,t){var n=GR(e),r=n.get(t.identifier);if(!r||!e.isRequestActive(r.identifier))return null;var i=new Promise(function(a,o){var l=!1;S6(e,n,r).subscribe({complete:a,error:o,next:function(u){l&&a(u)}}),l=!0});return i}function Tne(e,t){var n=GR(e),r=n.get(t.identifier);return!r||!e.isRequestActive(r.identifier)?null:S6(e,n,r)}function GR(e){var t=eI.get(e);if(t!=null)return t;var n=new Map;return eI.set(e,n),n}function Em(e,t){var n=e.get(t);return n==null&&y6(!1),n}var BR={fetchQuery:Ene,fetchQueryDeduped:_6,getPromiseForActiveRequest:kne,getObservableForActiveRequest:Tne},Cne=nt.default,Qne=Cne(un),Ane=wc,Ine=bc,Dne=Ine.createOperationDescriptor,Mne=XR,Lne=BR,Fne=Uo,Nne=Fne.getRequest,zne=qe;function Une(e,t,n,r){var i,a=Nne(t);a.params.operationKind!=="query"&&zne(!1);var o=(0,Qne.default)({force:!0},r==null?void 0:r.networkCacheConfig),l=Dne(a,n,o),s=(i=r==null?void 0:r.fetchPolicy)!==null&&i!==void 0?i:"network-only";function u(c){return Mne(e,c.missingRequiredFields,c.relayResolverErrors,c.errorResponseFields),c.data}switch(s){case"network-only":return tI(e,l).map(u);case"store-or-network":return e.check(l).status==="available"?Ane.from(e.lookup(l.fragment)).map(u):tI(e,l).map(u);default:throw new Error("fetchQuery: Invalid fetchPolicy "+s)}}function tI(e,t){return Lne.fetchQuery(e,t).map(function(){return e.lookup(t.fragment)})}var qne=Une,jne=bc,Vne=jne.createOperationDescriptor,Zne=Uo,Wne=Zne.getRequest;function Xne(e,t,n,r){var i=Wne(t);if(i.params.operationKind!=="query")throw new Error("fetchQuery: Expected query operation");var a=Vne(i,n,r);return e.execute({operation:a}).map(function(){return e.lookup(a.fragment).data}).toPromise()}var Yne=Xne,Gne=function(){function e(){this._preloadableQueries=new Map,this._callbacks=new Map}var t=e.prototype;return t.set=function(r,i){this._preloadableQueries.set(r,i);var a=this._callbacks.get(r);a!=null&&a.forEach(function(o){try{o(i)}catch(l){setTimeout(function(){throw l},0)}})},t.get=function(r){return this._preloadableQueries.get(r)},t.onLoad=function(r,i){var a,o=(a=this._callbacks.get(r))!==null&&a!==void 0?a:new Set;o.add(i);var l=function(){o.delete(i)};return this._callbacks.set(r,o),{dispose:l}},t.clear=function(){this._preloadableQueries.clear()},e}(),Bne=new Gne,Hne=Bne,Kne=BR,Jne=Kne.getPromiseForActiveRequest;function ere(e,t,n){var r,i,a=[],o=Jne(e,n);if(o!=null)a=[n];else{var l,s,u=e.getOperationTracker().getPendingOperationsAffectingOwner(n);a=(l=u==null?void 0:u.pendingOperations)!==null&&l!==void 0?l:[],o=(s=u==null?void 0:u.promise)!==null&&s!==void 0?s:null}if(!o)return null;var c=(r=(i=a)===null||i===void 0?void 0:i.map(function(g){return g.node.params.name}).join(","))!==null&&r!==void 0?r:null;(c==null||c.length===0)&&(c="Unknown pending operation");var f=t.name,p=c===f?"Relay(".concat(c,")"):"Relay(".concat(c,":").concat(f,")");return o.displayName=p,e.__log({name:"pendingoperation.found",fragment:t,fragmentOwner:n,pendingOperations:a}),{promise:o,pendingOperations:a}}var b6=ere;function tre(e,t){return e===t&&(e===null||typeof e!="object")}var w6=tre;function nre(e,t){return Jx(e,t,!0)}function Jx(e,t,n){if(e===t||typeof e!="object"||!e||e.constructor!==Object&&!Array.isArray(e)||typeof t!="object"||!t||t.constructor!==Object&&!Array.isArray(t))return t;var r=!1,i=Array.isArray(e)?e:null,a=Array.isArray(t)?t:null;if(i&&a){var o=n&&!Object.isFrozen(a);r=a.reduce(function(p,g,v){var m=i[v],_=Jx(m,g,o);return _!==a[v]&&o&&(a[v]=_),p&&_===i[v]},!0)&&i.length===a.length}else if(!i&&!a){var l=e,s=t,u=Object.keys(l),c=Object.keys(s),f=n&&!Object.isFrozen(s);r=c.reduce(function(p,g){var v=l[g],m=Jx(v,s[g],f);return m!==s[g]&&f&&(s[g]=m),p&&m===l[g]},!0)&&u.length===c.length}return r?e:t}var w1=nre,$6=nt.default,nI=$6(un),HR=$6(ei),rre=b6,ire=XR,are=w6,ore=w1,x6=Pa,lre=bc,sre=lre.createRequestDescriptor,KR=Ml,ure=KR.areEqualSelectors,cre=KR.createReaderSelector,fre=KR.getSelectorsFromObject,dre=Ha,rI=qe,hre=function(){function e(n,r,i,a,o){var l=this;(0,HR.default)(this,"_onChange",function(){l._stale=!0,typeof l._callback=="function"&&l._callback()}),this._callback=a,this._context=n,this._data={},this._fragments=r,this._props={},this._resolvers={},this._stale=!1,this._rootIsQueryRenderer=o,this.setProps(i)}var t=e.prototype;return t.dispose=function(){for(var r in this._resolvers)this._resolvers.hasOwnProperty(r)&&P6(this._resolvers[r])},t.resolve=function(){if(this._stale){var r=this._data,i;for(var a in this._resolvers)if(this._resolvers.hasOwnProperty(a)){var o=this._resolvers[a],l=r[a];if(o){var s=o.resolve();(i||s!==l)&&(i=i||(0,nI.default)({},r),i[a]=s)}else{var u=this._props[a],c=u!==void 0?u:null;(i||!are(c,l))&&(i=i||(0,nI.default)({},r),i[a]=c)}}this._data=i||r,this._stale=!1}return this._data},t.setCallback=function(r,i){this._callback=i,x6.ENABLE_CONTAINERS_SUBSCRIBE_ON_COMMIT===!0&&this.setProps(r)},t.setProps=function(r){this._props={};var i=fre(this._fragments,r);for(var a in i)if(i.hasOwnProperty(a)){var o=i[a],l=this._resolvers[a];o==null?(l!=null&&l.dispose(),l=null):o.kind==="PluralReaderSelector"?l==null?l=new iI(this._context.environment,this._rootIsQueryRenderer,o,this._callback!=null,this._onChange):(l instanceof iI||rI(!1),l.setSelector(o)):l==null?l=new eP(this._context.environment,this._rootIsQueryRenderer,o,this._callback!=null,this._onChange):(l instanceof eP||rI(!1),l.setSelector(o)),this._props[a]=r[a],this._resolvers[a]=l}this._stale=!0},t.setVariables=function(r,i){for(var a in this._resolvers)if(this._resolvers.hasOwnProperty(a)){var o=this._resolvers[a];o&&o.setVariables(r,i)}this._stale=!0},e}(),eP=function(){function e(n,r,i,a,o){var l=this;(0,HR.default)(this,"_onChange",function(u){l._data=u.data,l._isMissingData=u.isMissingData,l._missingRequiredFields=u.missingRequiredFields,l._errorResponseFields=u.errorResponseFields,l._relayResolverErrors=u.relayResolverErrors,l._callback()});var s=n.lookup(i);this._callback=o,this._data=s.data,this._isMissingData=s.isMissingData,this._missingRequiredFields=s.missingRequiredFields,this._errorResponseFields=s.errorResponseFields,this._relayResolverErrors=s.relayResolverErrors,this._environment=n,this._rootIsQueryRenderer=r,this._selector=i,x6.ENABLE_CONTAINERS_SUBSCRIBE_ON_COMMIT===!0?a&&(this._subscription=n.subscribe(s,this._onChange)):this._subscription=n.subscribe(s,this._onChange)}var t=e.prototype;return t.dispose=function(){this._subscription&&(this._subscription.dispose(),this._subscription=null)},t.resolve=function(){if(this._isMissingData===!0){var r=rre(this._environment,this._selector.node,this._selector.owner),i=r==null?void 0:r.promise;if(i!=null&&!this._rootIsQueryRenderer){var a,o=(a=r==null?void 0:r.pendingOperations)!==null&&a!==void 0?a:[];throw this._environment.__log({name:"suspense.fragment",data:this._data,fragment:this._selector.node,isRelayHooks:!1,isMissingData:this._isMissingData,isPromiseCached:!1,pendingOperations:o}),i}}return ire(this._environment,this._missingRequiredFields,this._relayResolverErrors,this._errorResponseFields),this._data},t.setSelector=function(r){if(!(this._subscription!=null&&ure(r,this._selector))){this.dispose();var i=this._environment.lookup(r);this._data=ore(this._data,i.data),this._isMissingData=i.isMissingData,this._missingRequiredFields=i.missingRequiredFields,this._errorResponseFields=i.errorResponseFields,this._relayResolverErrors=i.relayResolverErrors,this._selector=r,this._subscription=this._environment.subscribe(i,this._onChange)}},t.setVariables=function(r,i){if(!dre(r,this._selector.variables)){var a=sre(i,r),o=cre(this._selector.node,this._selector.dataID,r,a);this.setSelector(o)}},e}(),iI=function(){function e(n,r,i,a,o){var l=this;(0,HR.default)(this,"_onChange",function(s){l._stale=!0,l._callback()}),this._callback=o,this._data=[],this._environment=n,this._resolvers=[],this._stale=!0,this._rootIsQueryRenderer=r,this._subscribeOnConstruction=a,this.setSelector(i)}var t=e.prototype;return t.dispose=function(){this._resolvers.forEach(P6)},t.resolve=function(){if(this._stale){for(var r=this._data,i,a=0;a<this._resolvers.length;a++){var o=r[a],l=this._resolvers[a].resolve();(i||l!==o)&&(i=i||r.slice(0,a),i.push(l))}!i&&this._resolvers.length!==r.length&&(i=r.slice(0,this._resolvers.length)),this._data=i||r,this._stale=!1}return this._data},t.setSelector=function(r){for(var i=r.selectors;this._resolvers.length>i.length;){var a=this._resolvers.pop();a.dispose()}for(var o=0;o<i.length;o++)o<this._resolvers.length?this._resolvers[o].setSelector(i[o]):this._resolvers[o]=new eP(this._environment,this._rootIsQueryRenderer,i[o],this._subscribeOnConstruction,this._onChange);this._stale=!0},t.setVariables=function(r,i){this._resolvers.forEach(function(a){return a.setVariables(r,i)}),this._stale=!0},e}();function P6(e){e&&e.dispose()}var pre=hre,gre=pre;function vre(e,t,n,r,i,a){return new gre(e,n,r,a,i)}var mre=vre,Ore=qe,ub,aI;function yre(e){return ub||(ub=e.createContext(null),aI=e),e!==aI&&Ore(!1),ub}var _re=yre,E6=Object.freeze({__LIVE_RESOLVER_SUSPENSE_SENTINEL:!0});function Sre(){return E6}function bre(e){return e===E6}var JR={isSuspenseSentinel:bre,suspenseSentinel:Sre},$1=nt.default,wre=$1(ei),oI=$1(qg),lI=$1(jU),hs=$1(un),$re=DU,R6=zo,k6=R6.generateClientObjectClientID;R6.isClientID;var xre=JR,T6=xre.isSuspenseSentinel,Ll=en,tP=Ll.ACTOR_IDENTIFIER_KEY,fr=Ll.ERRORS_KEY,ek=Ll.ID_KEY,Pre=Ll.INVALIDATED_AT_KEY,As=Ll.REF_KEY,fd=Ll.REFS_KEY,C6=Ll.RELAY_RESOLVER_VALUE_KEY;Ll.ROOT_ID;var tk=Ll.TYPENAME_KEY,cb=Ha,ic=qe;function Ere(e){return(0,hs.default)({},e)}function Rre(e,t){for(var n in e)e.hasOwnProperty(n)&&n!==ek&&n!==tk&&(t[n]=e[n])}function kre(e,t){var n={};return n[ek]=e,n[tk]=t,n}function Tre(e){return e}function Cre(e){return e[ek]}function Qre(e){return fr in e?Object.keys(e).filter(function(t){return t!==fr}):Object.keys(e)}function Are(e){return e[tk]}function Ire(e,t){var n;return(n=e[fr])===null||n===void 0?void 0:n[t]}function nk(e,t){var n=e[t];return n&&typeof n=="object"&&(!n.hasOwnProperty(As)&&!n.hasOwnProperty(fd)||ic(!1)),n}function Dre(e,t){return t in e}function Mre(e,t){var n=e[t];if(n==null)return n;var r=n;return typeof r=="object"&&r&&typeof r[As]=="string"||ic(!1),r[As]}function Lre(e,t){var n=e[t];if(n==null)return!1;var r=n;return typeof r=="object"&&r&&typeof r[As]=="string"}function Fre(e,t){var n=e[t];return n==null?n:(typeof n=="object"&&Array.isArray(n[fd])||ic(!1),n[fd])}function Nre(e,t){var n=e[t];return n==null?!1:typeof n=="object"&&Array.isArray(n[fd])&&n[fd].every(function(r){return typeof r=="string"})}function zre(e){if(e==null)return null;var t=e[Pre];return typeof t!="number"?null:t}function Ure(e,t){var n,r=e[fr],i=t[fr],a=null;if(r==null&&i==null){var o;for(var l in t)(a||!cb(e[l],t[l]))&&(a=a!==null?a:(0,hs.default)({},e),a[l]=t[l]);return(o=a)!==null&&o!==void 0?o:e}for(var s in t)if(s!==fr){var u=t[s],c=i==null?void 0:i[s];if(a==null){var f=e[s],p=r==null?void 0:r[s];if(cb(f,u)&&cb(p,c))continue;a=(0,hs.default)({},e),r!=null&&(a[fr]=(0,hs.default)({},r))}A6(a,s,u),Q6(a,s,c)}return(n=a)!==null&&n!==void 0?n:e}function qre(e,t){if(fr in e||fr in t){var n=e[fr],r=(0,oI.default)(e,[fr].map(lI.default)),i=t[fr],a=(0,oI.default)(t,[fr].map(lI.default)),o=(0,hs.default)((0,hs.default)({},r),a);if(n==null&&i==null)return o;var l={};for(var s in n)a.hasOwnProperty(s)||(l[s]=n[s]);for(var u in i)l[u]=i[u];for(var c in l){o[fr]=l;break}return o}else return(0,hs.default)((0,hs.default)({},e),t)}function jre(e){$re(e)}function Q6(e,t,n){var r=e[fr];if(n!=null&&n.length>0)r==null?e[fr]=(0,wre.default)({},t,n):r[t]=n;else if(r!=null&&delete r[t]){for(var i in r)if(r.hasOwnProperty(i))return;delete e[fr]}}function A6(e,t,n){e[t]=n}function Vre(e,t,n){var r={};r[As]=n,e[t]=r}function Zre(e,t,n){var r={};r[fd]=n,e[t]=r}function Wre(e,t,n,r){var i={};i[As]=r,i[tP]=n,e[t]=i}function Xre(e,t){var n=e[t];return n==null?n:(typeof n=="object"&&typeof n[As]=="string"&&n[tP]!=null||ic(!1),[n[tP],n[As]])}function Yre(e,t){var n=nk(e,C6);return n==null||T6(n)?null:(typeof n=="object"&&(n=n.id),typeof n!="string"&&ic(!1),k6(t,n))}function Gre(e,t){var n=nk(e,C6);return n==null||T6(n)?null:(Array.isArray(n)||ic(!1),n.map(function(r){return r==null?null:(typeof r=="object"&&(r=r.id),typeof r!="string"&&ic(!1),k6(t,r))}))}function Bre(e){return e}var $i={clone:Ere,copyFields:Rre,create:kre,freeze:jre,fromObject:Tre,getDataID:Cre,getErrors:Ire,getFields:Qre,getInvalidationEpoch:zre,getLinkedRecordID:Mre,getLinkedRecordIDs:Fre,getType:Are,getValue:nk,hasValue:Dre,hasLinkedRecordID:Lre,hasLinkedRecordIDs:Nre,merge:qre,setErrors:Q6,setValue:A6,setLinkedRecordID:Vre,setLinkedRecordIDs:Zre,update:Ure,getActorLinkedRecordID:Xre,setActorLinkedRecordID:Wre,getResolverLinkedRecordID:Yre,getResolverLinkedRecordIDs:Gre,toJSON:Bre},Hre={EXISTENT:"EXISTENT",NONEXISTENT:"NONEXISTENT",UNKNOWN:"UNKNOWN"},x1=Hre,Kre=nt.default,Jre=Kre(er),sI=$i,rk=x1,eie=rk.EXISTENT,tie=rk.NONEXISTENT,nie=rk.UNKNOWN,rie=function(){function e(n){var r=this;this._records=new Map,n!=null&&Object.keys(n).forEach(function(i){var a=n[i],o=sI.fromObject(a);r._records.set(i,o)})}e.create=function(r){return new e(r)};var t=e.prototype;return t.clear=function(){this._records=new Map},t.delete=function(r){this._records.set(r,null)},t.get=function(r){return this._records.get(r)},t.getRecordIDs=function(){return Array.from(this._records.keys())},t.getStatus=function(r){return this._records.has(r)?this._records.get(r)==null?tie:eie:nie},t.has=function(r){return this._records.has(r)},t.remove=function(r){this._records.delete(r)},t.set=function(r,i){this._records.set(r,i)},t.size=function(){return this._records.size},t.toJSON=function(){var r={},i=(0,Jre.default)(this._records),a;try{for(i.s();!(a=i.n()).done;){var o=a.value,l=o[0],s=o[1];r[l]=sI.toJSON(s)}}catch(u){i.e(u)}finally{i.f()}return r},e}(),Ad=rie,iie=qe,I6="INTERNAL_ACTOR_IDENTIFIER_DO_NOT_USE";function aie(e){e!==I6&&iie(!1)}var ik={assertInternalActorIdentifier:aie,getActorIdentifier:function(t){return t},getDefaultActorIdentifier:function(){throw new Error("Not Implemented")},INTERNAL_ACTOR_IDENTIFIER_DO_NOT_USE:I6},nP="actor_key",oie=ik,lie=oie.getActorIdentifier;function sie(e){if(e!=null&&typeof e=="object"&&typeof e[nP]=="string")return lie(e[nP])}var uie={ACTOR_IDENTIFIER_FIELD_NAME:nP,getActorIdentifierFromPayload:sie},D6="client:__type:",cie="__TypeSchema";function fie(e){return D6+e}function die(e){return e.indexOf(D6)===0}var P1={generateTypeID:fie,isTypeID:die,TYPE_SCHEMA_TYPE:cie},M6=nt.default,hie=M6(er),Ph=M6(yc),L6=uie;L6.ACTOR_IDENTIFIER_FIELD_NAME;var pie=L6.getActorIdentifierFromPayload,Or=Xi,gie=Or.ACTOR_CHANGE,vie=Or.CLIENT_COMPONENT,mie=Or.CLIENT_EDGE_TO_CLIENT_OBJECT,Oie=Or.CLIENT_EXTENSION,yie=Or.CONDITION,_ie=Or.DEFER,Sie=Or.FRAGMENT_SPREAD,bie=Or.INLINE_FRAGMENT,uI=Or.LINKED_FIELD,wie=Or.LINKED_HANDLE,$ie=Or.MODULE_IMPORT,xie=Or.RELAY_LIVE_RESOLVER,Pie=Or.RELAY_RESOLVER,cI=Or.SCALAR_FIELD,Eie=Or.SCALAR_HANDLE,Rie=Or.STREAM,kie=Or.TYPE_DISCRIMINATOR,F6=zo,fb=F6.generateClientID;F6.isClientID;var Tie=Vs,Cie=Tie.getLocalVariables,ak=g6,Qie=ak.buildErrorTrie,Aie=ak.getErrorsByKey,fI=ak.getNestedErrorTrieByKey,wt=$i,Iie=Ml,Die=Iie.createNormalizationSelector,$c=en;$c.ROOT_ID;var Mie=$c.TYPENAME_KEY,dI=$c.getArgumentValues,Lie=$c.getHandleStorageKey,Fie=$c.getModuleComponentKey,Nie=$c.getModuleOperationKey,db=$c.getStorageKey,N6=P1,hb=N6.TYPE_SCHEMA_TYPE,pb=N6.generateTypeID,ui=qe;function zie(e,t,n,r,i){var a=t.dataID,o=t.node,l=t.variables,s=new Uie(e,l,r);return s.normalizeResponse(o,a,n,i)}var Uie=function(){function e(n,r,i){this._actorIdentifier=i.actorIdentifier,this._getDataId=i.getDataID,this._handleFieldPayloads=[],this._treatMissingFieldsAsNull=i.treatMissingFieldsAsNull,this._incrementalPlaceholders=[],this._isClientExtension=!1,this._isUnmatchedAbstractType=!1,this._followupPayloads=[],this._path=i.path?(0,Ph.default)(i.path):[],this._recordSource=n,this._variables=r,this._shouldProcessClientComponents=i.shouldProcessClientComponents}var t=e.prototype;return t.normalizeResponse=function(r,i,a,o){var l=this._recordSource.get(i);return l||ui(!1),this._assignClientAbstractTypes(r),this._errorTrie=Qie(o),this._traverseSelections(r,l,a),{errors:o,fieldPayloads:this._handleFieldPayloads,incrementalPlaceholders:this._incrementalPlaceholders,followupPayloads:this._followupPayloads,source:this._recordSource,isFinal:!1}},t._assignClientAbstractTypes=function(r){var i=r.clientAbstractTypes;if(i!=null)for(var a=0,o=Object.keys(i);a<o.length;a++){var l=o[a],s=(0,hie.default)(i[l]),u;try{for(s.s();!(u=s.n()).done;){var c=u.value,f=pb(c),p=this._recordSource.get(f);p==null&&(p=wt.create(f,hb),this._recordSource.set(f,p)),wt.setValue(p,l,!0)}}catch(g){s.e(g)}finally{s.f()}}},t._getVariableValue=function(r){return this._variables.hasOwnProperty(r)||ui(!1),this._variables[r]},t._getRecordType=function(r){var i=r[Mie];return i==null&&ui(!1),i},t._traverseSelections=function(r,i,a){for(var o=0;o<r.selections.length;o++){var l=r.selections[o];switch(l.kind){case cI:case uI:this._normalizeField(l,i,a);break;case yie:var s=!!this._getVariableValue(l.condition);s===l.passingValue&&this._traverseSelections(l,i,a);break;case Sie:{var u=this._variables;this._variables=Cie(this._variables,l.fragment.argumentDefinitions,l.args),this._traverseSelections(l.fragment,i,a),this._variables=u;break}case bie:{var c=l.abstractKey;if(c==null){var f=wt.getType(i);f===l.type&&this._traverseSelections(l,i,a)}else{var p=a.hasOwnProperty(c),g=wt.getType(i),v=pb(g),m=this._recordSource.get(v);m==null&&(m=wt.create(v,hb),this._recordSource.set(v,m)),wt.setValue(m,c,p),p&&this._traverseSelections(l,i,a)}break}case kie:{var _=l.abstractKey,O=a.hasOwnProperty(_),S=wt.getType(i),b=pb(S),P=this._recordSource.get(b);P==null&&(P=wt.create(b,hb),this._recordSource.set(b,P)),wt.setValue(P,_,O);break}case wie:case Eie:var E=l.args?dI(l.args,this._variables):{},$=db(l,this._variables),Q=Lie(l,this._variables);this._handleFieldPayloads.push({args:E,dataID:wt.getDataID(i),fieldKey:$,handle:l.handle,handleKey:Q,handleArgs:l.handleArgs?dI(l.handleArgs,this._variables):{}});break;case $ie:this._normalizeModuleImport(l,i,a);break;case _ie:this._normalizeDefer(l,i,a);break;case Rie:this._normalizeStream(l,i,a);break;case Oie:var k=this._isClientExtension;this._isClientExtension=!0,this._traverseSelections(l,i,a),this._isClientExtension=k;break;case vie:if(this._shouldProcessClientComponents===!1)break;this._traverseSelections(l.fragment,i,a);break;case gie:this._normalizeActorChange(l,i,a);break;case Pie:this._normalizeResolver(l,i,a);break;case xie:this._normalizeResolver(l,i,a);break;case mie:this._normalizeResolver(l.backingField,i,a);break;default:ui(!1)}}},t._normalizeResolver=function(r,i,a){r.fragment!=null&&this._traverseSelections(r.fragment,i,a)},t._normalizeDefer=function(r,i,a){var o=r.if===null||this._getVariableValue(r.if);o===!1?this._traverseSelections(r,i,a):this._incrementalPlaceholders.push({kind:"defer",data:a,label:r.label,path:(0,Ph.default)(this._path),selector:Die(r,wt.getDataID(i),this._variables),typeName:wt.getType(i),actorIdentifier:this._actorIdentifier})},t._normalizeStream=function(r,i,a){this._traverseSelections(r,i,a);var o=r.if===null||this._getVariableValue(r.if);o===!0&&this._incrementalPlaceholders.push({kind:"stream",label:r.label,path:(0,Ph.default)(this._path),parentID:wt.getDataID(i),node:r,variables:this._variables,actorIdentifier:this._actorIdentifier})},t._normalizeModuleImport=function(r,i,a){typeof a=="object"&&a||ui(!1);var o=wt.getType(i),l=Fie(r.documentName),s=r.componentModuleProvider||a[l];wt.setValue(i,l,s??null);var u=Nie(r.documentName),c=r.operationModuleProvider||a[u];wt.setValue(i,u,c??null),c!=null&&this._followupPayloads.push({kind:"ModuleImportPayload",args:r.args,data:a,dataID:wt.getDataID(i),operationReference:c,path:(0,Ph.default)(this._path),typeName:o,variables:this._variables,actorIdentifier:this._actorIdentifier})},t._normalizeField=function(r,i,a){typeof a=="object"&&a||ui(!1);var o=r.alias||r.name,l=db(r,this._variables),s=a[o];if(s==null){if(s===void 0){var u=this._isClientExtension||this._isUnmatchedAbstractType;if(u)return;if(!this._treatMissingFieldsAsNull)return}wt.setValue(i,l,null);var c=this._errorTrie;if(c!=null){var f=Aie(c,o);f!=null&&wt.setErrors(i,l,f)}return}if(r.kind===cI)wt.setValue(i,l,s);else if(r.kind===uI){this._path.push(o);var p=this._errorTrie;this._errorTrie=p==null?null:fI(p,o),r.plural?this._normalizePluralLink(r,i,l,s):this._normalizeLink(r,i,l,s),this._errorTrie=p,this._path.pop()}else ui(!1)},t._normalizeActorChange=function(r,i,a){var o,l=r.linkedField;typeof a=="object"&&a||ui(!1);var s=l.alias||l.name,u=db(l,this._variables),c=a[s];if(c==null){if(c===void 0){var f=this._isClientExtension||this._isUnmatchedAbstractType;if(f)return;if(!this._treatMissingFieldsAsNull)return}wt.setValue(i,u,null);return}var p=pie(c);if(p==null){wt.setValue(i,u,null);return}var g=(o=l.concreteType)!==null&&o!==void 0?o:this._getRecordType(c),v=this._getDataId(c,g)||wt.getLinkedRecordID(i,u)||fb(wt.getDataID(i),u);typeof v!="string"&&ui(!1),wt.setActorLinkedRecordID(i,u,p,v),this._followupPayloads.push({kind:"ActorPayload",data:c,dataID:v,path:[].concat((0,Ph.default)(this._path),[s]),typeName:g,variables:this._variables,node:l,actorIdentifier:p})},t._normalizeLink=function(r,i,a,o){var l;typeof o=="object"&&o||ui(!1);var s=this._getDataId(o,(l=r.concreteType)!==null&&l!==void 0?l:this._getRecordType(o))||wt.getLinkedRecordID(i,a)||fb(wt.getDataID(i),a);typeof s!="string"&&ui(!1),wt.setLinkedRecordID(i,a,s);var u=this._recordSource.get(s);if(!u){var c=r.concreteType||this._getRecordType(o);u=wt.create(s,c),this._recordSource.set(s,u)}this._traverseSelections(r,u,o)},t._normalizePluralLink=function(r,i,a,o){var l=this;Array.isArray(o)||ui(!1);var s=wt.getLinkedRecordIDs(i,a),u=[];o.forEach(function(c,f){var p;if(c==null){u.push(c);return}l._path.push(String(f));var g=l._errorTrie;l._errorTrie=g==null?null:fI(g,f),typeof c!="object"&&ui(!1);var v=l._getDataId(c,(p=r.concreteType)!==null&&p!==void 0?p:l._getRecordType(c))||s&&s[f]||fb(wt.getDataID(i),a,f);typeof v!="string"&&ui(!1),u.push(v);var m=l._recordSource.get(v);if(!m){var _=r.concreteType||l._getRecordType(c);m=wt.create(v,_),l._recordSource.set(v,m)}l._traverseSelections(r,m,c),l._errorTrie=g,l._path.pop()}),wt.setLinkedRecordIDs(i,a,u)},t._validateRecordType=function(r,i,a){var o;(o=i.concreteType)!==null&&o!==void 0||this._getRecordType(a),wt.getDataID(r)},t._validateConflictingFieldsWithIdenticalId=function(r,i,a){},t._validateConflictingLinkedFieldsWithIdenticalId=function(r,i,a){},e}(),qie={normalize:zie},E1=nt.default,hI=E1(un),jie=E1($i),Vie=E1(Ad),Zie=E1(qie);function Wie(e,t,n,r){var i,a=e.data,o=e.errors,l=Vie.default.create(),s=jie.default.create(t.dataID,n);l.set(t.dataID,s);var u=Zie.default.normalize(l,t,a,r,o);return(0,hI.default)((0,hI.default)({},u),{},{isFinal:((i=e.extensions)===null||i===void 0?void 0:i.is_final)===!0})}var z6=Wie,Xie=Uo,Yie=Xie.getInlineDataFragment,Gie=en,Bie=Gie.FRAGMENTS_KEY,pI=qe;function Hie(e,t){var n,r=Yie(e);if(t==null)return t;typeof t!="object"&&pI(!1);var i=(n=t[Bie])===null||n===void 0?void 0:n[r.name];return i==null&&pI(!1),i}var Kie=Hie,Jie=1e5;function eae(){return Jie++}var U6=eae,tae=U6;function nae(e,t){return{execute:function(r,i,a,o){var l=tae(),s={start:function(f){e.__log({name:"network.start",networkRequestId:l,params:r,variables:i,cacheConfig:a})},next:function(f){e.__log({name:"network.next",networkRequestId:l,response:f})},error:function(f){e.__log({name:"network.error",networkRequestId:l,error:f})},complete:function(){e.__log({name:"network.complete",networkRequestId:l})},unsubscribe:function(){e.__log({name:"network.unsubscribe",networkRequestId:l})}},u=function(f){e.__log({name:"network.info",networkRequestId:l,info:f})};return t.execute(r,i,a,o,u).do(s)}}}var rae=nae,iae=nt.default,Eh=iae(er),aae=qe,oae=function(){function e(){this._ownersToPendingOperations=new Map,this._pendingOperationsToOwners=new Map,this._ownersToPendingPromise=new Map}var t=e.prototype;return t.update=function(r,i){if(i.size!==0){var a=r.identifier,o=new Set,l=(0,Eh.default)(i),s;try{for(l.s();!(s=l.n()).done;){var u=s.value,c=u.identifier,f=this._ownersToPendingOperations.get(c);f!=null?f.has(a)||(f.set(a,r),o.add(c)):(this._ownersToPendingOperations.set(c,new Map([[a,r]])),o.add(c))}}catch(_){l.e(_)}finally{l.f()}if(o.size!==0){var p=this._pendingOperationsToOwners.get(a)||new Set,g=(0,Eh.default)(o),v;try{for(g.s();!(v=g.n()).done;){var m=v.value;this._resolveOwnerResolvers(m),p.add(m)}}catch(_){g.e(_)}finally{g.f()}this._pendingOperationsToOwners.set(a,p)}}},t.complete=function(r){var i=r.identifier,a=this._pendingOperationsToOwners.get(i);if(a!=null){var o=new Set,l=new Set,s=(0,Eh.default)(a),u;try{for(s.s();!(u=s.n()).done;){var c=u.value,f=this._ownersToPendingOperations.get(c);f&&(f.delete(i),f.size>0?l.add(c):o.add(c))}}catch(S){s.e(S)}finally{s.f()}var p=(0,Eh.default)(o),g;try{for(p.s();!(g=p.n()).done;){var v=g.value;this._resolveOwnerResolvers(v),this._ownersToPendingOperations.delete(v)}}catch(S){p.e(S)}finally{p.f()}var m=(0,Eh.default)(l),_;try{for(m.s();!(_=m.n()).done;){var O=_.value;this._resolveOwnerResolvers(O)}}catch(S){m.e(S)}finally{m.f()}this._pendingOperationsToOwners.delete(i)}},t._resolveOwnerResolvers=function(r){var i=this._ownersToPendingPromise.get(r);i!=null&&i.resolve(),this._ownersToPendingPromise.delete(r)},t.getPendingOperationsAffectingOwner=function(r){var i=r.identifier,a=this._ownersToPendingOperations.get(i);if(a==null||a.size===0)return null;var o=this._ownersToPendingPromise.get(i);if(o!=null)return{promise:o.promise,pendingOperations:o.pendingOperations};var l,s=new Promise(function(c){l=c});l==null&&aae(!1);var u=Array.from(a.values());return this._ownersToPendingPromise.set(i,{promise:s,resolve:l,pendingOperations:u}),{promise:s,pendingOperations:u}},e}(),q6=oae;function lae(e){var t=typeof Eo<"u"?Eo:typeof window<"u"?window:void 0,n=t&&t.__RELAY_DEVTOOLS_HOOK__;n&&n.registerEnvironment(e)}var sae=lae,uae=zo,cae=uae.generateClientID,fae=en,dae=fae.ROOT_ID,hae=cae(dae,"viewer"),pae="Viewer",ok={VIEWER_ID:hae,VIEWER_TYPE:pae},j6=ok,gae=j6.VIEWER_ID,vae=j6.VIEWER_TYPE;function mae(e,t){return t===vae&&e.id==null?gae:e.id}var V6=mae,Oae=function(t){},yae=Oae,Z6=Xi,_ae=Z6.REQUEST,Sae=Z6.SPLIT_OPERATION;function bae(e){switch(e.kind){case _ae:return e.operation;case Sae:default:return e}}var lk=bae;function gI(e,t,n){for(var r=arguments.length,i=new Array(r>3?r-3:0),a=3;a<r;a++)i[a-3]=arguments[a];var o=0,l=n.replace(/%s/g,function(){return String(i[o++])}),s=new Error(l),u=Object.assign(s,{name:t,messageFormat:n,messageParams:i,type:e,taalOpcodes:[2,2]});if(u.stack===void 0)try{throw u}catch{}return u}var W6={create:function(t,n){for(var r=arguments.length,i=new Array(r>2?r-2:0),a=2;a<r;a++)i[a-2]=arguments[a];return gI.apply(void 0,["error",t,n].concat(i))},createWarning:function(t,n){for(var r=arguments.length,i=new Array(r>2?r-2:0),a=2;a<r;a++)i[a-2]=arguments[a];return gI.apply(void 0,["warn",t,n].concat(i))}},gb,vb,wae=typeof window<"u"&&typeof((gb=window)===null||gb===void 0||(vb=gb.performance)===null||vb===void 0?void 0:vb.now)=="function";function vI(){return wae?window.performance.now():Date.now()}function $ae(e){var t=vI(),n=e();return[vI()-t,n]}var xae=$ae,X6=nt.default,Rh=X6(er),kh=X6(yc),mb=wc,Pae=U6,Ob=lk,Eae=W6,mI=Pa,Rae=Td,OI=xae,Y6=zo,yI=Y6.generateClientID,kae=Y6.generateUniqueClientID,Tae=Vs,Cae=Tae.getLocalVariables,Rm=$i,G6=Ml,yb=G6.createNormalizationSelector,Qae=G6.createReaderSelector,_b=Ad,sk=en,_I=sk.ROOT_TYPE,Aae=sk.TYPENAME_KEY,Iae=sk.getStorageKey,kn=qe;function Dae(e){return new Mae(e)}var Mae=function(){function e(n){var r=this,i=n.actorIdentifier,a=n.getDataID,o=n.getPublishQueue,l=n.getStore,s=n.isClientPayload,u=n.operation,c=n.operationExecutions,f=n.operationLoader,p=n.operationTracker,g=n.optimisticConfig,v=n.scheduler,m=n.shouldProcessClientComponents,_=n.sink,O=n.source,S=n.treatMissingFieldsAsNull,b=n.updater,P=n.log,E=n.normalizeResponse;this._actorIdentifier=i,this._getDataID=a,this._treatMissingFieldsAsNull=S,this._incrementalPayloadsPending=!1,this._incrementalResults=new Map,this._log=P,this._executeId=Pae(),this._nextSubscriptionId=0,this._operation=u,this._operationExecutions=c,this._operationLoader=f,this._operationTracker=p,this._operationUpdateEpochs=new Map,this._optimisticUpdates=null,this._pendingModulePayloadsCount=0,this._getPublishQueue=o,this._scheduler=v,this._sink=_,this._source=new Map,this._state="started",this._getStore=l,this._subscriptions=new Map,this._updater=b,this._isClientPayload=s===!0,this._isSubscriptionOperation=this._operation.request.node.params.operationKind==="subscription",this._shouldProcessClientComponents=m,this._retainDisposables=new Map,this._seenActors=new Set,this._completeFns=[],this._normalizeResponse=E;var $=this._nextSubscriptionId++;O.subscribe({complete:function(){return r._complete($)},error:function(k){return r._error(k)},next:function(k){try{r._next($,k)}catch(D){_.error(D)}},start:function(k){var D;r._start($,k),r._log({name:"execute.start",executeId:r._executeId,params:r._operation.request.node.params,variables:r._operation.request.variables,cacheConfig:(D=r._operation.request.cacheConfig)!==null&&D!==void 0?D:{}})}}),g!=null&&this._processOptimisticResponse(g.response!=null?{data:g.response}:null,g.updater,!1)}var t=e.prototype;return t.cancel=function(){var r=this;if(this._state!=="completed"){this._state="completed",this._operationExecutions.delete(this._operation.request.identifier),this._subscriptions.size!==0&&(this._subscriptions.forEach(function(a){return a.unsubscribe()}),this._subscriptions.clear());var i=this._optimisticUpdates;i!==null&&(this._optimisticUpdates=null,i.forEach(function(a){return r._getPublishQueueAndSaveActor().revertUpdate(a)}),this._runPublishQueue()),this._incrementalResults.clear(),this._asyncStoreUpdateDisposable!=null&&(this._asyncStoreUpdateDisposable.dispose(),this._asyncStoreUpdateDisposable=null),this._completeFns=[],this._completeOperationTracker(),this._disposeRetainedData()}},t._updateActiveState=function(){var r;switch(this._state){case"started":{r="active";break}case"loading_incremental":{r="active";break}case"completed":{r="inactive";break}case"loading_final":{r=this._pendingModulePayloadsCount>0?"active":"inactive";break}default:this._state,kn(!1)}this._operationExecutions.set(this._operation.request.identifier,r)},t._schedule=function(r){var i=this,a=this._scheduler;if(a!=null){var o=this._nextSubscriptionId++;mb.create(function(l){var s=a.schedule(function(){try{r(),l.complete()}catch(u){l.error(u)}});return function(){return a.cancel(s)}}).subscribe({complete:function(){return i._complete(o)},error:function(s){return i._error(s)},start:function(s){return i._start(o,s)}})}else r()},t._complete=function(r){this._subscriptions.delete(r),this._subscriptions.size===0&&(this.cancel(),this._sink.complete(),this._log({name:"execute.complete",executeId:this._executeId}))},t._error=function(r){this.cancel(),this._sink.error(r),this._log({name:"execute.error",executeId:this._executeId,error:r})},t._start=function(r,i){this._subscriptions.set(r,i),this._updateActiveState()},t._next=function(r,i){var a=this;this._schedule(function(){var o=OI(function(){a._handleNext(i),a._maybeCompleteSubscriptionOperationTracking()}),l=o[0];a._log({name:"execute.next",executeId:a._executeId,response:i,duration:l})})},t._handleErrorResponse=function(r){var i=this,a=[];return r.forEach(function(o){if(!(o.data===null&&o.extensions!=null&&!o.hasOwnProperty("errors")))if(o.data==null){var l=o.hasOwnProperty("errors")&&o.errors!=null?o.errors:null,s=l?l.map(function(f){var p=f.message;return p}).join(`
57
- `):"(No errors)",u=Eae.create("RelayNetwork","No data returned for operation `"+i._operation.request.node.params.name+"`, got error(s):\n"+s+"\n\nSee the error `source` property for more information.");throw u.source={errors:l,operation:i._operation.request.node,variables:i._operation.request.variables},u.stack,u}else{var c=o;a.push(c)}}),a},t._handleOptimisticResponses=function(r){var i;if(r.length>1)return r.some(function(l){var s;return((s=l.extensions)===null||s===void 0?void 0:s.isOptimistic)===!0})&&kn(!1),!1;var a=r[0],o=((i=a.extensions)===null||i===void 0?void 0:i.isOptimistic)===!0;return o&&this._state!=="started"&&kn(!1),o?(this._processOptimisticResponse(a,null,this._treatMissingFieldsAsNull),this._sink.next(a),!0):!1},t._handleNext=function(r){if(this._state!=="completed"){this._seenActors.clear();var i=Array.isArray(r)?r:[r],a=this._handleErrorResponse(i);if(a.length===0){var o=i.some(function(_){var O;return((O=_.extensions)===null||O===void 0?void 0:O.is_final)===!0});o&&(this._state="loading_final",this._updateActiveState(),this._incrementalPayloadsPending=!1),this._sink.next(r);return}var l=this._handleOptimisticResponses(a);if(!l){var s=Lae(a),u=s[0],c=s[1],f=u.length>0;if(f){if(this._isSubscriptionOperation){var p=kae();this._operation={request:this._operation.request,fragment:Qae(this._operation.fragment.node,p,this._operation.fragment.variables,this._operation.fragment.owner),root:yb(this._operation.root.node,p,this._operation.root.variables)}}var g=this._processResponses(u);this._processPayloadFollowups(g)}if(c.length>0){var v=this._processIncrementalResponses(c);this._processPayloadFollowups(v)}this._isSubscriptionOperation&&(a[0].extensions==null?a[0].extensions={__relay_subscription_root_id:this._operation.fragment.dataID}:a[0].extensions.__relay_subscription_root_id=this._operation.fragment.dataID);var m=this._runPublishQueue(f?this._operation:void 0);f&&this._incrementalPayloadsPending&&this._retainData(),this._updateOperationTracker(m),this._sink.next(r)}}},t._processOptimisticResponse=function(r,i,a){var o=this;if(this._optimisticUpdates!==null&&kn(!1),!(r==null&&i==null)){var l=[];if(r){var s=this._normalizeResponse(r,this._operation.root,_I,{actorIdentifier:this._actorIdentifier,getDataID:this._getDataID,path:[],shouldProcessClientComponents:this._shouldProcessClientComponents,treatMissingFieldsAsNull:a});SI(s),l.push({operation:this._operation,payload:s,updater:i}),this._processOptimisticFollowups(s,l)}else i&&l.push({operation:this._operation,payload:{errors:null,fieldPayloads:null,incrementalPlaceholders:null,followupPayloads:null,source:_b.create(),isFinal:!1},updater:i});this._optimisticUpdates=l,l.forEach(function(c){return o._getPublishQueueAndSaveActor().applyUpdate(c)});var u=this._runPublishQueue();mI.ENABLE_OPERATION_TRACKER_OPTIMISTIC_UPDATES&&this._updateOperationTracker(u)}},t._processOptimisticFollowups=function(r,i){if(r.followupPayloads&&r.followupPayloads.length){var a=r.followupPayloads,o=(0,Rh.default)(a),l;try{for(o.s();!(l=o.n()).done;){var s=l.value;switch(s.kind){case"ModuleImportPayload":var u=this._expectOperationLoader(),c=u.get(s.operationReference);if(c==null)this._processAsyncOptimisticModuleImport(s);else{var f=this._processOptimisticModuleImport(c,s);i.push.apply(i,(0,kh.default)(f))}break;case"ActorPayload":break;default:kn(!1)}}}catch(p){o.e(p)}finally{o.f()}}},t._normalizeFollowupPayload=function(r,i){var a;i.kind==="SplitOperation"&&r.kind==="ModuleImportPayload"?a=Cae(r.variables,i.argumentDefinitions,r.args):a=r.variables;var o=yb(i,r.dataID,a);return this._normalizeResponse({data:r.data},o,r.typeName,{actorIdentifier:this._actorIdentifier,getDataID:this._getDataID,path:r.path,treatMissingFieldsAsNull:this._treatMissingFieldsAsNull,shouldProcessClientComponents:this._shouldProcessClientComponents})},t._processOptimisticModuleImport=function(r,i){var a=Ob(r),o=[],l=this._normalizeFollowupPayload(i,a);return SI(l),o.push({operation:this._operation,payload:l,updater:null}),this._processOptimisticFollowups(l,o),o},t._processAsyncOptimisticModuleImport=function(r){var i=this;this._expectOperationLoader().load(r.operationReference).then(function(a){if(!(a==null||i._state!=="started")){var o=i._processOptimisticModuleImport(a,r);if(o.forEach(function(s){return i._getPublishQueueAndSaveActor().applyUpdate(s)}),i._optimisticUpdates!=null){var l;(l=i._optimisticUpdates).push.apply(l,(0,kh.default)(o)),i._runPublishQueue()}}})},t._processResponses=function(r){var i=this;return this._optimisticUpdates!==null&&(this._optimisticUpdates.forEach(function(a){i._getPublishQueueAndSaveActor().revertUpdate(a)}),this._optimisticUpdates=null),this._incrementalPayloadsPending=!1,this._incrementalResults.clear(),this._source.clear(),r.map(function(a){var o=i._normalizeResponse(a,i._operation.root,_I,{actorIdentifier:i._actorIdentifier,getDataID:i._getDataID,path:[],treatMissingFieldsAsNull:i._treatMissingFieldsAsNull,shouldProcessClientComponents:i._shouldProcessClientComponents});return i._getPublishQueueAndSaveActor().commitPayload(i._operation,o,i._updater),o})},t._processPayloadFollowups=function(r){var i=this;this._state!=="completed"&&r.forEach(function(a){var o=a.incrementalPlaceholders,l=a.followupPayloads,s=a.isFinal;if(i._state=s?"loading_final":"loading_incremental",i._updateActiveState(),s&&(i._incrementalPayloadsPending=!1),l&&l.length!==0&&l.forEach(function(c){var f,p=i._actorIdentifier;i._actorIdentifier=(f=c.actorIdentifier)!==null&&f!==void 0?f:i._actorIdentifier,i._processFollowupPayload(c),i._actorIdentifier=p}),o&&o.length!==0&&(i._incrementalPayloadsPending=i._state!=="loading_final",o.forEach(function(c){var f,p=i._actorIdentifier;i._actorIdentifier=(f=c.actorIdentifier)!==null&&f!==void 0?f:i._actorIdentifier,i._processIncrementalPlaceholder(a,c),i._actorIdentifier=p}),i._isClientPayload||i._state==="loading_final")){var u=[];o.forEach(function(c){c.kind==="defer"&&u.push(i._processDeferResponse(c.label,c.path,c,{data:c.data}))}),u.length>0&&i._processPayloadFollowups(u)}})},t._maybeCompleteSubscriptionOperationTracking=function(){this._isSubscriptionOperation&&this._pendingModulePayloadsCount===0&&this._incrementalPayloadsPending===!1&&this._completeOperationTracker()},t._processFollowupPayload=function(r){var i=this;switch(r.kind){case"ModuleImportPayload":var a=this._expectOperationLoader(),o=a.get(r.operationReference);if(o!=null)this._processFollowupPayloadWithNormalizationNode(r,Ob(o));else{var l=this._nextSubscriptionId++;this._pendingModulePayloadsCount++;var s=function(){i._pendingModulePayloadsCount--,i._maybeCompleteSubscriptionOperationTracking()},u=mb.from(new Promise(function(c,f){a.load(r.operationReference).then(c,f)}));mb.create(function(c){var f,p=u.subscribe({next:function(v){if(v!=null){var m=function(){try{var S=Ob(v),b=mI.BATCH_ASYNC_MODULE_UPDATES_FN,P=b!=null&&i._pendingModulePayloadsCount>1,E=OI(function(){if(i._handleFollowupPayload(r,S),P)i._scheduleAsyncStoreUpdate(b,c.complete);else{var Q=i._runPublishQueue();i._updateOperationTracker(Q)}}),$=E[0];i._log({name:"execute.async.module",executeId:i._executeId,operationName:S.name,duration:$}),P||c.complete()}catch(Q){c.error(Q)}},_=i._scheduler;_==null?m():f=_.schedule(m)}else c.complete()},error:c.error});return function(){p.unsubscribe(),i._scheduler!=null&&f!=null&&i._scheduler.cancel(f)}}).subscribe({complete:function(){i._complete(l),s()},error:function(f){i._error(f),s()},start:function(f){return i._start(l,f)}})}break;case"ActorPayload":this._processFollowupPayloadWithNormalizationNode(r,r.node);break;default:kn(!1)}},t._processFollowupPayloadWithNormalizationNode=function(r,i){this._handleFollowupPayload(r,i),this._maybeCompleteSubscriptionOperationTracking()},t._handleFollowupPayload=function(r,i){var a=this._normalizeFollowupPayload(r,i);this._getPublishQueueAndSaveActor().commitPayload(this._operation,a),this._processPayloadFollowups([a])},t._processIncrementalPlaceholder=function(r,i){var a,o=i.label,l=i.path,s=l.map(String).join("."),u=this._incrementalResults.get(o);u==null&&(u=new Map,this._incrementalResults.set(o,u));var c=u.get(s),f=c!=null&&c.kind==="response"?c.responses:null;u.set(s,{kind:"placeholder",placeholder:i});var p;i.kind==="stream"?p=i.parentID:i.kind==="defer"?p=i.selector.dataID:kn(!1);var g=r.source.get(p),v=((a=r.fieldPayloads)!==null&&a!==void 0?a:[]).filter(function(E){var $=yI(E.dataID,E.fieldKey);return E.dataID===p||$===p});g==null&&kn(!1);var m,_,O=this._source.get(p);if(O!=null){m=Rm.update(O.record,g);var S=new Map,b=function($){var Q=Fae($);S.set(Q,$)};O.fieldPayloads.forEach(b),v.forEach(b),_=Array.from(S.values())}else m=g,_=v;if(this._source.set(p,{record:m,fieldPayloads:_}),f!=null){var P=this._processIncrementalResponses(f);this._processPayloadFollowups(P)}},t._processIncrementalResponses=function(r){var i=this,a=[];return r.forEach(function(o){var l=o.label,s=o.path,u=o.response,c=i._incrementalResults.get(l);if(c==null&&(c=new Map,i._incrementalResults.set(l,c)),l.indexOf("$defer$")!==-1){var f=s.map(String).join("."),p=c.get(f);if(p==null){p={kind:"response",responses:[o]},c.set(f,p);return}else if(p.kind==="response"){p.responses.push(o);return}var g=p.placeholder;g.kind!=="defer"&&kn(!1),a.push(i._processDeferResponse(l,s,g,u))}else{var v=s.slice(0,-2).map(String).join("."),m=c.get(v);if(m==null){m={kind:"response",responses:[o]},c.set(v,m);return}else if(m.kind==="response"){m.responses.push(o);return}var _=m.placeholder;_.kind!=="stream"&&kn(!1),a.push(i._processStreamResponse(l,s,_,u))}}),a},t._processDeferResponse=function(r,i,a,o){var l,s=a.selector.dataID,u=this._actorIdentifier;this._actorIdentifier=(l=a.actorIdentifier)!==null&&l!==void 0?l:this._actorIdentifier;var c=this._normalizeResponse(o,a.selector,a.typeName,{actorIdentifier:this._actorIdentifier,getDataID:this._getDataID,path:a.path,treatMissingFieldsAsNull:this._treatMissingFieldsAsNull,shouldProcessClientComponents:this._shouldProcessClientComponents});this._getPublishQueueAndSaveActor().commitPayload(this._operation,c);var f=this._source.get(s);f==null&&kn(!1);var p=f.fieldPayloads;if(p.length!==0){var g,v={errors:null,fieldPayloads:p,incrementalPlaceholders:null,followupPayloads:null,source:_b.create(),isFinal:((g=o.extensions)===null||g===void 0?void 0:g.is_final)===!0};this._getPublishQueueAndSaveActor().commitPayload(this._operation,v)}return this._actorIdentifier=u,c},t._processStreamResponse=function(r,i,a,o){var l=a.parentID,s=a.node,u=a.variables,c=a.actorIdentifier,f=this._actorIdentifier;this._actorIdentifier=c??this._actorIdentifier;var p=s.selections[0];p!=null&&p.kind==="LinkedField"&&p.plural===!0||kn(!1);var g=this._normalizeStreamItem(o,l,p,u,i,a.path),v=g.fieldPayloads,m=g.itemID,_=g.itemIndex,O=g.prevIDs,S=g.relayPayload,b=g.storageKey;if(this._getPublishQueueAndSaveActor().commitPayload(this._operation,S,function(E){var $=E.get(l);if($!=null){var Q=$.getLinkedRecords(b);if(Q!=null&&!(Q.length!==O.length||Q.some(function(D,T){return O[T]!==(D&&D.getDataID())}))){var k=(0,kh.default)(Q);k[_]=E.get(m),$.setLinkedRecords(k,b)}}}),v.length!==0){var P={errors:null,fieldPayloads:v,incrementalPlaceholders:null,followupPayloads:null,source:_b.create(),isFinal:!1};this._getPublishQueueAndSaveActor().commitPayload(this._operation,P)}return this._actorIdentifier=f,S},t._normalizeStreamItem=function(r,i,a,o,l,s){var u,c,f,p,g=r.data;typeof g!="object"&&kn(!1);var v=(u=a.alias)!==null&&u!==void 0?u:a.name,m=Iae(a,o),_=this._source.get(i);_==null&&kn(!1);var O=_.record,S=_.fieldPayloads,b=Rm.getLinkedRecordIDs(O,m);b==null&&kn(!1);var P=l[l.length-1],E=parseInt(P,10);E===P&&E>=0||kn(!1);var $=(c=a.concreteType)!==null&&c!==void 0?c:g[Aae];typeof $!="string"&&kn(!1);var Q=(f=(p=this._getDataID(g,$))!==null&&p!==void 0?p:b==null?void 0:b[E])!==null&&f!==void 0?f:yI(i,m,E);typeof Q!="string"&&kn(!1);var k=yb(a,Q,o),D=Rm.clone(O),T=(0,kh.default)(b);T[E]=Q,Rm.setLinkedRecordIDs(D,m,T),this._source.set(i,{record:D,fieldPayloads:S});var A=this._normalizeResponse(r,k,$,{actorIdentifier:this._actorIdentifier,getDataID:this._getDataID,path:[].concat((0,kh.default)(s),[v,String(E)]),treatMissingFieldsAsNull:this._treatMissingFieldsAsNull,shouldProcessClientComponents:this._shouldProcessClientComponents});return{fieldPayloads:S,itemID:Q,itemIndex:E,prevIDs:b,relayPayload:A,storageKey:m}},t._scheduleAsyncStoreUpdate=function(r,i){var a=this;this._completeFns.push(i),this._asyncStoreUpdateDisposable==null&&(this._asyncStoreUpdateDisposable=r(function(){a._asyncStoreUpdateDisposable=null;var o=a._runPublishQueue();a._updateOperationTracker(o);var l=(0,Rh.default)(a._completeFns),s;try{for(l.s();!(s=l.n()).done;){var u=s.value;u()}}catch(c){l.e(c)}finally{l.f()}a._completeFns=[]}))},t._updateOperationTracker=function(r){r!=null&&r.length>0&&this._operationTracker.update(this._operation.request,new Set(r))},t._completeOperationTracker=function(){this._operationTracker.complete(this._operation.request)},t._getPublishQueueAndSaveActor=function(){return this._seenActors.add(this._actorIdentifier),this._getPublishQueue(this._actorIdentifier)},t._getActorsToVisit=function(){return this._seenActors.size===0?new Set([this._actorIdentifier]):this._seenActors},t._runPublishQueue=function(r){var i=new Set,a=(0,Rh.default)(this._getActorsToVisit()),o;try{for(a.s();!(o=a.n()).done;){var l=o.value,s=this._getPublishQueue(l).run(r);s.forEach(function(u){return i.add(u)})}}catch(u){a.e(u)}finally{a.f()}return Array.from(i)},t._retainData=function(){var r=(0,Rh.default)(this._getActorsToVisit()),i;try{for(r.s();!(i=r.n()).done;){var a=i.value;this._retainDisposables.has(a)||this._retainDisposables.set(a,this._getStore(a).retain(this._operation))}}catch(o){r.e(o)}finally{r.f()}},t._disposeRetainedData=function(){var r=(0,Rh.default)(this._retainDisposables.values()),i;try{for(r.s();!(i=r.n()).done;){var a=i.value;a.dispose()}}catch(o){r.e(o)}finally{r.f()}this._retainDisposables.clear()},t._expectOperationLoader=function(){var r=this._operationLoader;return r||kn(!1),r},e}();function Lae(e){var t=[],n=[];return e.forEach(function(r){if(r.path!=null||r.label!=null){var i=r.label,a=r.path;(i==null||a==null)&&kn(!1),n.push({label:i,path:a,response:r})}else t.push(r)}),[t,n]}function Fae(e){var t;return(t=JSON.stringify(Rae(e)))!==null&&t!==void 0?t:""}function SI(e){var t=e.incrementalPlaceholders;t!=null&&t.length!==0&&kn(!1)}var Nae={execute:Dae},Rr=$i,zae=x1,bI=zae.EXISTENT,Sb=qe,Uae=function(){function e(n,r){this.__sources=[r,n],this._base=n,this._sink=r}var t=e.prototype;return t.unstable_getRawRecordWithChanges=function(r){var i=this._base.get(r),a=this._sink.get(r);if(a===void 0){if(i==null)return i;var o=Rr.clone(i);return o}else{if(a===null)return null;if(i!=null){var l=Rr.update(i,a);return l}else{var s=Rr.clone(a);return s}}},t._getSinkRecord=function(r){var i=this._sink.get(r);if(!i){var a=this._base.get(r);a||Sb(!1),i=Rr.create(r,Rr.getType(a)),this._sink.set(r,i)}return i},t.copyFields=function(r,i){var a=this._sink.get(r),o=this._base.get(r);a||o||Sb(!1);var l=this._getSinkRecord(i);o&&Rr.copyFields(o,l),a&&Rr.copyFields(a,l)},t.copyFieldsFromRecord=function(r,i){var a=this._getSinkRecord(i);Rr.copyFields(r,a)},t.create=function(r,i){this._base.getStatus(r)!==bI&&this._sink.getStatus(r)!==bI||Sb(!1);var a=Rr.create(r,i);this._sink.set(r,a)},t.delete=function(r){this._sink.delete(r)},t.getStatus=function(r){return this._sink.has(r)?this._sink.getStatus(r):this._base.getStatus(r)},t.getType=function(r){for(var i=0;i<this.__sources.length;i++){var a=this.__sources[i].get(r);if(a)return Rr.getType(a);if(a===null)return null}},t.getValue=function(r,i){for(var a=0;a<this.__sources.length;a++){var o=this.__sources[a].get(r);if(o){var l=Rr.getValue(o,i);if(l!==void 0)return l}else if(o===null)return null}},t.setValue=function(r,i,a){var o=this._getSinkRecord(r);Rr.setValue(o,i,a)},t.getLinkedRecordID=function(r,i){for(var a=0;a<this.__sources.length;a++){var o=this.__sources[a].get(r);if(o){var l=Rr.getLinkedRecordID(o,i);if(l!==void 0)return l}else if(o===null)return null}},t.setLinkedRecordID=function(r,i,a){var o=this._getSinkRecord(r);Rr.setLinkedRecordID(o,i,a)},t.getLinkedRecordIDs=function(r,i){for(var a=0;a<this.__sources.length;a++){var o=this.__sources[a].get(r);if(o){var l=Rr.getLinkedRecordIDs(o,i);if(l!==void 0)return l}else if(o===null)return null}},t.setLinkedRecordIDs=function(r,i,a){var o=this._getSinkRecord(r);Rr.setLinkedRecordIDs(o,i,a)},e}(),B6=Uae,qae=nt.default,R1=qae(er),jae=en,dd=jae.getArgumentValues,tr=Xi,Vae=tr.ACTOR_CHANGE,Zae=tr.ALIASED_FRAGMENT_SPREAD,Wae=tr.ALIASED_INLINE_FRAGMENT_SPREAD,Xae=tr.CLIENT_EDGE_TO_CLIENT_OBJECT,Yae=tr.CLIENT_EDGE_TO_SERVER_OBJECT,Gae=tr.CLIENT_EXTENSION,Bae=tr.CONDITION,Hae=tr.DEFER,Kae=tr.FRAGMENT_SPREAD,Jae=tr.INLINE_DATA_FRAGMENT_SPREAD,eoe=tr.INLINE_FRAGMENT,toe=tr.LINKED_FIELD,noe=tr.MODULE_IMPORT,roe=tr.RELAY_LIVE_RESOLVER,ioe=tr.RELAY_RESOLVER,aoe=tr.REQUIRED_FIELD,ooe=tr.SCALAR_FIELD,loe=tr.STREAM,soe=["id","__id","__typename","js"];function uoe(e,t,n,r,i){var a={};return cg(a,e,t,n,r,i),a}function cg(e,t,n,r,i,a){var o,l=(0,R1.default)(r),s;try{var u=function(){var g=s.value;switch(g.kind){case toe:g.plural?Object.defineProperty(e,(c=g.alias)!==null&&c!==void 0?c:g.name,{get:doe(g,n,t,i,a),set:coe(g,n,t,i)}):Object.defineProperty(e,(f=g.alias)!==null&&f!==void 0?f:g.name,{get:hoe(g,n,t,i,a),set:foe(g,n,t,i)});break;case ooe:var v=(o=g.alias)!==null&&o!==void 0?o:g.name;Object.defineProperty(e,v,{get:function(){var _,O=dd((_=g.args)!==null&&_!==void 0?_:[],n),S=t.getValue(g.name,O);return S==null&&(S=voe(g,O,t,i,a)),S},set:soe.includes(g.name)?void 0:function(m){var _,O=dd((_=g.args)!==null&&_!==void 0?_:[],n);t.setValue__UNSAFE(m,g.name,O)}});break;case eoe:t.getType()===g.type&&cg(e,t,n,g.selections,i,a);break;case Gae:cg(e,t,n,g.selections,i,a);break;case Kae:break;case Bae:case Vae:case Zae:case Jae:case Wae:case Xae:case Yae:case Hae:case noe:case roe:case aoe:case loe:case ioe:throw new Error("Encountered an unexpected ReaderSelection variant in RelayRecordSourceProxy. This indicates a bug in Relay.");default:throw g.kind,new Error("Encountered an unexpected ReaderSelection variant in RelayRecordSourceProxy. This indicates a bug in Relay.")}};for(l.s();!(s=l.n()).done;){var c,f;u()}}catch(p){l.e(p)}finally{l.f()}}function coe(e,t,n,r){return function(a){var o,l=dd((o=e.args)!==null&&o!==void 0?o:[],t);if(a==null)throw new Error("Do not assign null to plural linked fields; assign an empty array instead.");var s=a.map(function(u){if(u==null)throw new Error("When assigning an array of items, none of the items should be null or undefined.");var c=u.__id;if(c==null)throw new Error("The __id field must be present on each item passed to the setter. This indicates a bug in Relay.");var f=r.get(c);if(f==null)throw new Error("Did not find item with data id ".concat(c," in the store."));return f});n.setLinkedRecords(s,e.name,l)}}function foe(e,t,n,r){return function(a){var o,l=dd((o=e.args)!==null&&o!==void 0?o:[],t);if(a==null)n.setValue(a,e.name,l);else{var s=a.__id;if(s==null)throw new Error("The __id field must be present on the argument. This indicates a bug in Relay.");var u=r.get(s);if(u==null)throw new Error("Did not find item with data id ".concat(s," in the store."));n.setLinkedRecord(u,e.name,l)}}}function doe(e,t,n,r,i){return function(){var a,o=dd((a=e.args)!==null&&a!==void 0?a:[],t),l=n.getLinkedRecords(e.name,o);return l===void 0&&(l=goe(e,o,n,r,i)),l!=null?l.map(function(s){if(s!=null){var u={};return cg(u,s,t,e.selections,r,i),u}else return s}):l}}function hoe(e,t,n,r,i){return function(){var a,o=dd((a=e.args)!==null&&a!==void 0?a:[],t),l=n.getLinkedRecord(e.name,o);if(l===void 0&&(l=poe(e,o,n,r,i)),l!=null){var s={};return cg(s,l,t,e.selections,r,i),s}else return l}}function poe(e,t,n,r,i){var a=(0,R1.default)(i),o;try{for(a.s();!(o=a.n()).done;){var l=o.value;if(l.kind==="linked"){var s=l.handle(e,n,t,r);if(s!=null)return r.get(s)}}}catch(u){a.e(u)}finally{a.f()}}function goe(e,t,n,r,i){var a=(0,R1.default)(i),o;try{for(a.s();!(o=a.n()).done;){var l=o.value;if(l.kind==="pluralLinked"){var s=l.handle(e,n,t,r);if(s!=null)return s.map(function(u){if(u!=null)return r.get(u)})}}}catch(u){a.e(u)}finally{a.f()}}function voe(e,t,n,r,i){var a=(0,R1.default)(i),o;try{for(a.s();!(o=a.n()).done;){var l=o.value;if(l.kind==="scalar"){var s=l.handle(e,n,t,r);if(s!==void 0)return s}}}catch(u){a.e(u)}finally{a.f()}}var H6={createUpdatableProxy:uoe},moe=Uo,Ooe=moe.getFragment,yoe=Ml,_oe=yoe.getVariablesFromFragment,Soe=en,boe=Soe.ID_KEY,woe=H6,$oe=woe.createUpdatableProxy,xoe=qe;function Poe(e,t,n,r){var i=Ooe(e),a=_oe(i,t),o=t[boe],l=n.get(o);return l==null&&xoe(!1),{updatableData:$oe(l,a,i.selections,n,r)}}var K6={readUpdatableFragment:Poe},Eoe=Uo,Roe=Eoe.getUpdatableQuery,koe=H6,Toe=koe.createUpdatableProxy;function Coe(e,t,n,r){var i=Roe(e);return{updatableData:Toe(n.getRoot(),t,i.fragment.selections,n,r)}}var J6={readUpdatableQuery:Coe},Qoe=zo,Aoe=Qoe.generateClientID,Ioe=en,pu=Ioe.getStableStorageKey,km=qe,Doe=function(){function e(n,r,i){this._dataID=i,this._mutator=r,this._source=n}var t=e.prototype;return t.copyFieldsFrom=function(r){this._mutator.copyFields(r.getDataID(),this._dataID)},t.getDataID=function(){return this._dataID},t.getType=function(){var r=this._mutator.getType(this._dataID);return r==null&&km(!1),r},t.getValue=function(r,i){var a=pu(r,i);return this._mutator.getValue(this._dataID,a)},t.setValue=function(r,i,a){return e7(r)||km(!1),this.setValue__UNSAFE(r,i,a)},t.setValue__UNSAFE=function(r,i,a){var o=pu(i,a);return this._mutator.setValue(this._dataID,o,r),this},t.getLinkedRecord=function(r,i){var a=pu(r,i),o=this._mutator.getLinkedRecordID(this._dataID,a);return o!=null?this._source.get(o):o},t.setLinkedRecord=function(r,i,a){r instanceof e||km(!1);var o=pu(i,a),l=r.getDataID();return this._mutator.setLinkedRecordID(this._dataID,o,l),this},t.getOrCreateLinkedRecord=function(r,i,a){var o=this.getLinkedRecord(r,a);if(!o){var l,s=pu(r,a),u=Aoe(this.getDataID(),s);o=(l=this._source.get(u))!==null&&l!==void 0?l:this._source.create(u,i),this.setLinkedRecord(o,r,a)}return o},t.getLinkedRecords=function(r,i){var a=this,o=pu(r,i),l=this._mutator.getLinkedRecordIDs(this._dataID,o);return l==null?l:l.map(function(s){return s!=null?a._source.get(s):s})},t.setLinkedRecords=function(r,i,a){Array.isArray(r)||km(!1);var o=pu(i,a),l=r.map(function(s){return s&&s.getDataID()});return this._mutator.setLinkedRecordIDs(this._dataID,o,l),this},t.invalidateRecord=function(){this._source.markIDForInvalidation(this._dataID)},e}();function e7(e){return e==null||typeof e!="object"||Array.isArray(e)&&e.every(e7)}var Moe=Doe,Loe=$i,t7=x1,bb=t7.EXISTENT,wI=t7.NONEXISTENT,n7=en,wb=n7.ROOT_ID,$I=n7.ROOT_TYPE,Foe=K6,Noe=Foe.readUpdatableFragment,zoe=J6,Uoe=zoe.readUpdatableQuery,qoe=Moe,Tm=qe,joe=function(){function e(n,r,i,a){this.__mutator=n,this._handlerProvider=i||null,this._proxies={},this._getDataID=r,this._invalidatedStore=!1,this._idsMarkedForInvalidation=new Set,this._missingFieldHandlers=a}var t=e.prototype;return t.publishSource=function(r,i){var a=this,o=r.getRecordIDs();o.forEach(function(l){var s=r.getStatus(l);if(s===bb){var u=r.get(l);u&&(a.__mutator.getStatus(l)!==bb&&a.create(l,Loe.getType(u)),a.__mutator.copyFieldsFromRecord(u,l))}else s===wI&&a.delete(l)}),i&&i.length&&i.forEach(function(l){var s=a._handlerProvider&&a._handlerProvider(l.handle);s||Tm(!1),s.update(a,l)})},t.create=function(r,i){this.__mutator.create(r,i),delete this._proxies[r];var a=this.get(r);return a||Tm(!1),a},t.delete=function(r){r===wb&&Tm(!1),delete this._proxies[r],this.__mutator.delete(r)},t.get=function(r){if(!this._proxies.hasOwnProperty(r)){var i=this.__mutator.getStatus(r);i===bb?this._proxies[r]=new qoe(this,this.__mutator,r):this._proxies[r]=i===wI?null:void 0}return this._proxies[r]},t.getRoot=function(){var r=this.get(wb);return r||(r=this.create(wb,$I)),r&&r.getType()===$I||Tm(!1),r},t.invalidateStore=function(){this._invalidatedStore=!0},t.isStoreMarkedForInvalidation=function(){return this._invalidatedStore},t.markIDForInvalidation=function(r){this._idsMarkedForInvalidation.add(r)},t.getIDsMarkedForInvalidation=function(){return this._idsMarkedForInvalidation},t.readUpdatableQuery=function(r,i){return Uoe(r,i,this,this._missingFieldHandlers)},t.readUpdatableFragment=function(r,i){return Noe(r,i,this,this._missingFieldHandlers)},e}(),r7=joe,i7=en,Voe=i7.ROOT_TYPE,xI=i7.getStorageKey,Zoe=K6,Woe=Zoe.readUpdatableFragment,Xoe=J6,Yoe=Xoe.readUpdatableQuery,PI=qe,Goe=function(){function e(n,r,i,a){this.__mutator=n,this.__recordSource=r,this._readSelector=i,this._missingFieldHandlers=a}var t=e.prototype;return t.create=function(r,i){return this.__recordSource.create(r,i)},t.delete=function(r){this.__recordSource.delete(r)},t.get=function(r){return this.__recordSource.get(r)},t.getRoot=function(){return this.__recordSource.getRoot()},t.getOperationRoot=function(){var r=this.__recordSource.get(this._readSelector.dataID);return r||(r=this.__recordSource.create(this._readSelector.dataID,Voe)),r},t._getRootField=function(r,i,a){var o=r.node.selections.find(function(l){return l.kind==="LinkedField"&&l.name===i||l.kind==="RequiredField"&&l.field.name===i});return o&&o.kind==="RequiredField"&&(o=o.field),o&&o.kind==="LinkedField"||PI(!1),o.plural!==a&&PI(!1),o},t.getRootField=function(r){var i=this._getRootField(this._readSelector,r,!1),a=xI(i,this._readSelector.variables);return this.getOperationRoot().getLinkedRecord(a)},t.getPluralRootField=function(r){var i=this._getRootField(this._readSelector,r,!0),a=xI(i,this._readSelector.variables);return this.getOperationRoot().getLinkedRecords(a)},t.invalidateStore=function(){this.__recordSource.invalidateStore()},t.readUpdatableQuery=function(r,i){return Yoe(r,i,this,this._missingFieldHandlers)},t.readUpdatableFragment=function(r,i){return Woe(r,i,this,this._missingFieldHandlers)},e}(),Boe=Goe,Hoe=function(t){typeof t=="object"&&t!=null&&(Array.isArray(t)||t.constructor===Object)&&Object.freeze(t)},Koe=nt.default,$b=Koe(er),Joe=w1,ele=Xi,tle=ele.RELAY_LIVE_RESOLVER,nle=Pa,rle=Hoe,ile=zo,EI=ile.generateClientID,ci=$i,Vg=en,RI=Vg.RELAY_RESOLVER_ERROR_KEY,kI=Vg.RELAY_RESOLVER_INVALIDATION_KEY,xb=Vg.RELAY_RESOLVER_SNAPSHOT_KEY,TI=Vg.RELAY_RESOLVER_VALUE_KEY,CI=Vg.getStorageKey,Mf=qe,QI=new Set,ale=function(){function e(){}var t=e.prototype;return t.readFromCacheOrEvaluate=function(r,i,a,o,l){i.kind===tle&&Mf(!1);var s=o(),u=s.resolverResult,c=s.snapshot,f=s.error;return[u,void 0,f,c,void 0,void 0]},t.invalidateDataIDs=function(r){},t.ensureClientRecord=function(r,i){Mf(!1)},t.notifyUpdatedSubscribers=function(r){},e}();function Pb(e,t,n){var r=e.get(t);r||(r=new Set,e.set(t,r)),r.add(n)}var ole=function(){function e(n){this._resolverIDToRecordIDs=new Map,this._recordIDToResolverIDs=new Map,this._getRecordSource=n}var t=e.prototype;return t.readFromCacheOrEvaluate=function(r,i,a,o,l){var s=this._getRecordSource(),u=s.get(r);u==null&&Mf(!1);var c=CI(i,a),f=ci.getLinkedRecordID(u,c),p=f==null?null:s.get(f);if(p==null||this._isInvalid(p,l)){var g;f=(g=f)!==null&&g!==void 0?g:EI(r,c),p=ci.create(f,"__RELAY_RESOLVER__");var v=o();nle.ENABLE_SHALLOW_FREEZE_RESOLVER_VALUES&&rle(v.resolverResult),ci.setValue(p,TI,v.resolverResult),ci.setValue(p,xb,v.snapshot),ci.setValue(p,RI,v.error),s.set(f,p);var m=s.get(r);m==null&&Mf(!1);var _=ci.clone(m);if(ci.setLinkedRecordID(_,c,f),s.set(r,_),i.fragment!=null){var O,S=CI(i.fragment,a),b=EI(r,S);Pb(this._resolverIDToRecordIDs,b,f),Pb(this._recordIDToResolverIDs,r,b);var P=(O=v.snapshot)===null||O===void 0?void 0:O.seenRecords;if(P!=null){var E=(0,$b.default)(P),$;try{for(E.s();!($=E.n()).done;){var Q=$.value;Pb(this._recordIDToResolverIDs,Q,b)}}catch(A){E.e(A)}finally{E.f()}}}}var k=ci.getValue(p,TI),D=ci.getValue(p,xb),T=ci.getValue(p,RI);return[k,f,T,D,void 0,void 0]},t.invalidateDataIDs=function(r){for(var i=this._getRecordSource(),a=new Set,o=Array.from(r);o.length;){var l=o.pop();r.add(l);var s=(0,$b.default)((c=this._recordIDToResolverIDs.get(l))!==null&&c!==void 0?c:QI),u;try{for(s.s();!(u=s.n()).done;){var c,f=u.value;if(!a.has(f)){var p=(0,$b.default)((v=this._resolverIDToRecordIDs.get(f))!==null&&v!==void 0?v:QI),g;try{for(p.s();!(g=p.n()).done;){var v,m=g.value;this._markInvalidatedResolverRecord(m,i,r),a.has(m)||o.push(m)}}catch(_){p.e(_)}finally{p.f()}}}}catch(_){s.e(_)}finally{s.f()}}},t._markInvalidatedResolverRecord=function(r,i,a){var o=i.get(r);if(o){var l=ci.clone(o);ci.setValue(l,kI,!0),i.set(r,l)}},t._isInvalid=function(r,i){if(!ci.getValue(r,kI))return!1;var a=ci.getValue(r,xb),o=a==null?void 0:a.data,l=a==null?void 0:a.selector;if(o==null||l==null)return!0;var s=i(l),u=s.data,c=Joe(o,u);return c!==o},t.ensureClientRecord=function(r,i){Mf(!1)},t.notifyUpdatedSubscribers=function(r){Mf(!1)},e}(),a7={NoopResolverCache:ale,RecordResolverCache:ole},lle=Uo,sle=lle.getFragment,ule=Ml,cle=ule.getSelector,AI=qe,Rp=[];function fle(e,t){Rp.push(e);try{return t()}finally{Rp.pop()}}function dle(e,t){if(!Rp.length)throw new Error("readFragment should be called only from within a Relay Resolver function.");var n=Rp[Rp.length-1],r=sle(e),i=cle(r,t);i==null&&AI(!1),i.kind!=="SingularReaderSelector"&&AI(!1);var a=n.getDataForResolverFragment(i,t),o=a.data,l=a.isMissingData;if(l)throw o7;return o}var o7={},l7={readFragment:dle,withResolverContext:fle,RESOLVER_FRAGMENT_MISSING_DATA_SENTINEL:o7},uk=nt.default,hle=uk(ei),Th=uk(er),Ch=uk(yc),nr=Xi,ple=nr.ACTOR_CHANGE,gle=nr.ALIASED_FRAGMENT_SPREAD,vle=nr.ALIASED_INLINE_FRAGMENT_SPREAD,Cy=nr.CLIENT_EDGE_TO_CLIENT_OBJECT,II=nr.CLIENT_EDGE_TO_SERVER_OBJECT,mle=nr.CLIENT_EXTENSION,Ole=nr.CONDITION,yle=nr.DEFER,_le=nr.FRAGMENT_SPREAD,Sle=nr.INLINE_DATA_FRAGMENT_SPREAD,ble=nr.INLINE_FRAGMENT,DI=nr.LINKED_FIELD,wle=nr.MODULE_IMPORT,MI=nr.RELAY_LIVE_RESOLVER,LI=nr.RELAY_RESOLVER,$le=nr.REQUIRED_FIELD,FI=nr.SCALAR_FIELD,xle=nr.STREAM,la=Pa,Ple=JR,Ele=Ple.isSuspenseSentinel,Rle=Vs,kr=$i,qo=en,kle=qo.CLIENT_EDGE_TRAVERSAL_PATH,Tle=qo.FRAGMENT_OWNER_KEY,Cle=qo.FRAGMENT_PROP_NAME_KEY,Cm=qo.FRAGMENTS_KEY,Qm=qo.ID_KEY,Qle=qo.MODULE_COMPONENT_KEY,Ale=qo.ROOT_ID,jO=qo.getArgumentValues,Ile=qo.getModuleComponentKey,Am=qo.getStorageKey,Dle=a7,Mle=Dle.NoopResolverCache,s7=l7,Lle=s7.RESOLVER_FRAGMENT_MISSING_DATA_SENTINEL,Fle=s7.withResolverContext,Nle=P1,zle=Nle.generateTypeID,Wr=qe;function u7(e,t,n){var r=new Ule(e,t,n??new Mle);return r.read()}var Ule=function(){function e(n,r,i){var a;this._clientEdgeTraversalPath=la.ENABLE_CLIENT_EDGES&&(a=r.clientEdgeTraversalPath)!==null&&a!==void 0&&a.length?(0,Ch.default)(r.clientEdgeTraversalPath):[],this._missingClientEdges=[],this._missingLiveResolverFields=[],this._isMissingData=!1,this._isWithinUnmatchedTypeRefinement=!1,this._missingRequiredFields=null,this._errorResponseFields=null,this._owner=r.owner,this._recordSource=n,this._seenRecords=new Set,this._selector=r,this._variables=r.variables,this._resolverCache=i,this._resolverErrors=[],this._fragmentName=r.node.name,this._updatedDataIDs=new Set}var t=e.prototype;return t.read=function(){var r=this._selector,i=r.node,a=r.dataID,o=r.isWithinUnmatchedTypeRefinement,l=i.abstractKey,s=this._recordSource.get(a),u=!o;if(u&&l==null&&s!=null){var c=kr.getType(s);c!==i.type&&a!==Ale&&(u=!1)}if(u&&l!=null&&s!=null){var f=this._implementsInterface(s,l);f===!1?u=!1:f==null&&(this._isMissingData=!0)}this._isWithinUnmatchedTypeRefinement=!u;var p=this._traverse(i,a,null);return this._updatedDataIDs.size>0&&(this._resolverCache.notifyUpdatedSubscribers(this._updatedDataIDs),this._updatedDataIDs.clear()),{data:p,isMissingData:this._isMissingData&&u,missingClientEdges:la.ENABLE_CLIENT_EDGES&&this._missingClientEdges.length?this._missingClientEdges:null,missingLiveResolverFields:this._missingLiveResolverFields,seenRecords:this._seenRecords,selector:this._selector,missingRequiredFields:this._missingRequiredFields,relayResolverErrors:this._resolverErrors,errorResponseFields:this._errorResponseFields}},t._maybeAddErrorResponseFields=function(r,i){if(la.ENABLE_FIELD_ERROR_HANDLING){var a=kr.getErrors(r,i);if(a!=null){var o=this._fragmentName;this._errorResponseFields==null&&(this._errorResponseFields=[]);var l=(0,Th.default)(a),s;try{for(l.s();!(s=l.n()).done;){var u,c=s.value;this._errorResponseFields.push({owner:o,path:((u=c.path)!==null&&u!==void 0?u:[]).join("."),error:c})}}catch(f){l.e(f)}finally{l.f()}}}},t._markDataAsMissing=function(){if(this._isMissingData=!0,la.ENABLE_CLIENT_EDGES&&this._clientEdgeTraversalPath.length){var r=this._clientEdgeTraversalPath[this._clientEdgeTraversalPath.length-1];r!==null&&this._missingClientEdges.push({request:r.readerClientEdge.operation,clientEdgeDestinationID:r.clientEdgeDestinationID})}},t._traverse=function(r,i,a){var o=this._recordSource.get(i);if(this._seenRecords.add(i),o==null)return o===void 0&&this._markDataAsMissing(),o;var l=a||{},s=this._traverseSelections(r.selections,o,l);return s?l:null},t._getVariableValue=function(r){return this._variables.hasOwnProperty(r)||Wr(!1),this._variables[r]},t._maybeReportUnexpectedNull=function(r,i){var a;if(((a=this._missingRequiredFields)===null||a===void 0?void 0:a.action)!=="THROW"){var o=this._fragmentName;switch(i){case"THROW":this._missingRequiredFields={action:i,field:{path:r,owner:o}};return;case"LOG":this._missingRequiredFields==null?this._missingRequiredFields={action:i,fields:[{path:r,owner:o}]}:this._missingRequiredFields={action:i,fields:[].concat((0,Ch.default)(this._missingRequiredFields.fields),[{path:r,owner:o}])};return}}},t._traverseSelections=function(r,i,a){for(var o=0;o<r.length;o++){var l=r[o];switch(l.kind){case $le:{var s=this._readRequiredField(l,i,a);if(s==null){var u=l.action;return u!=="NONE"&&this._maybeReportUnexpectedNull(l.path,u),!1}break}case FI:this._readScalar(l,i,a);break;case DI:l.plural?this._readPluralLink(l,i,a):this._readLink(l,i,a);break;case Ole:var c=!!this._getVariableValue(l.condition);if(c===l.passingValue){var f=this._traverseSelections(l.selections,i,a);if(!f)return!1}break;case ble:{if(this._readInlineFragment(l,i,a)===!1)return!1;break}case MI:case LI:{if(!la.ENABLE_RELAY_RESOLVERS)throw new Error("Relay Resolver fields are not yet supported.");this._readResolverField(l,i,a);break}case _le:this._createFragmentPointer(l,i,a);break;case gle:a[l.name]=this._createAliasedFragmentSpread(l,i);break;case vle:{var p=this._readInlineFragment(l.fragment,i,{});p===!1&&(p=null),a[l.name]=p;break}case wle:this._readModuleImport(l,i,a);break;case Sle:this._createInlineDataOrResolverFragmentPointer(l,i,a);break;case yle:case mle:{var g=this._isMissingData,v=this._missingClientEdges.length;la.ENABLE_CLIENT_EDGES&&this._clientEdgeTraversalPath.push(null);var m=this._traverseSelections(l.selections,i,a);if(this._isMissingData=g||this._missingClientEdges.length>v||this._missingLiveResolverFields.length>0,la.ENABLE_CLIENT_EDGES&&this._clientEdgeTraversalPath.pop(),!m)return!1;break}case xle:{var _=this._traverseSelections(l.selections,i,a);if(!_)return!1;break}case ple:this._readActorChange(l,i,a);break;case Cy:case II:if(la.ENABLE_CLIENT_EDGES)this._readClientEdge(l,i,a);else throw new Error("Client edges are not yet supported.");break;default:Wr(!1)}}return!0},t._readRequiredField=function(r,i,a){switch(r.field.kind){case FI:return this._readScalar(r.field,i,a);case DI:return r.field.plural?this._readPluralLink(r.field,i,a):this._readLink(r.field,i,a);case LI:if(!la.ENABLE_RELAY_RESOLVERS)throw new Error("Relay Resolver fields are not yet supported.");return this._readResolverField(r.field,i,a);case MI:if(!la.ENABLE_RELAY_RESOLVERS)throw new Error("Relay Resolver fields are not yet supported.");return this._readResolverField(r.field,i,a);case Cy:case II:if(!la.ENABLE_RELAY_RESOLVERS)throw new Error("Relay Resolver fields are not yet supported.");return this._readClientEdge(r.field,i,a);default:r.field.kind,Wr(!1)}},t._readResolverField=function(r,i,a){var o,l=kr.getDataID(i),s=this._readResolverFieldImpl(r,l),u=(o=r.alias)!==null&&o!==void 0?o:r.name;return a[u]=s,s},t._readResolverFieldImpl=function(r,i){var a=this,o=r.fragment,l,s=function(S){return l!=null?{data:l.data,isMissingData:l.isMissingData}:(l=u7(a._recordSource,S,a._resolverCache),{data:l.data,isMissingData:l.isMissingData})},u=function(){if(o!=null){var S={__id:i,__fragmentOwner:a._owner,__fragments:(0,hle.default)({},o.name,o.args?jO(o.args,a._variables):{})},b={getDataForResolverFragment:s};return Fle(b,function(){var Q=NI(r,a._variables,S),k=Q[0],D=Q[1];return{resolverResult:k,snapshot:l,error:D}})}else{var P=NI(r,a._variables,null),E=P[0],$=P[1];return{resolverResult:E,snapshot:void 0,error:$}}},c=this._resolverCache.readFromCacheOrEvaluate(i,r,this._variables,u,s),f=c[0],p=c[1],g=c[2],v=c[3],m=c[4],_=c[5];return this._propogateResolverMetadata(r.path,v,g,p,m,_),f},t._propogateResolverMetadata=function(r,i,a,o,l,s){if(i!=null){if(i.missingRequiredFields!=null&&this._addMissingRequiredFields(i.missingRequiredFields),i.missingClientEdges!=null){var u=(0,Th.default)(i.missingClientEdges),c;try{for(u.s();!(c=u.n()).done;){var f=c.value;this._missingClientEdges.push(f)}}catch(E){u.e(E)}finally{u.f()}}if(i.missingLiveResolverFields!=null){this._isMissingData=this._isMissingData||i.missingLiveResolverFields.length>0;var p=(0,Th.default)(i.missingLiveResolverFields),g;try{for(p.s();!(g=p.n()).done;){var v=g.value;this._missingLiveResolverFields.push(v)}}catch(E){p.e(E)}finally{p.f()}}var m=(0,Th.default)(i.relayResolverErrors),_;try{for(m.s();!(_=m.n()).done;){var O=_.value;this._resolverErrors.push(O)}}catch(E){m.e(E)}finally{m.f()}this._isMissingData=this._isMissingData||i.isMissingData}if(a&&this._resolverErrors.push({field:{path:r,owner:this._fragmentName},error:a}),o!=null&&this._seenRecords.add(o),l!=null&&(this._isMissingData=!0,this._missingLiveResolverFields.push({path:"".concat(this._fragmentName,".").concat(r),liveStateID:l})),s!=null){var S=(0,Th.default)(s),b;try{for(S.s();!(b=S.n()).done;){var P=b.value;this._updatedDataIDs.add(P)}}catch(E){S.e(E)}finally{S.f()}}},t._readClientEdge=function(r,i,a){var o=this,l,s=r.backingField;s.kind==="ClientExtension"&&Wr(!1);var u=(l=s.alias)!==null&&l!==void 0?l:s.name,c={};this._traverseSelections([s],i,c);var f=c[u];if(f==null||Ele(f))return a[u]=f,f;var p=qle(r,f);switch(p.kind){case"PluralConcrete":var g=Vle(r,p.ids,this._resolverCache),v=g;if(r.modelResolver!=null){var m=r.modelResolver;v=g.map(function(Q){var k=o._readResolverFieldImpl(m,Q);return k!=null?Q:null})}this._clientEdgeTraversalPath.push(null);var _=this._readLinkedIds(r.linkedField,v,i,a);return this._clientEdgeTraversalPath.pop(),a[u]=_,_;case"SingularConcrete":var O=jle(r,p.id,this._resolverCache),S=O[0],b=O[1];if(r.modelResolver!=null){var P=this._readResolverFieldImpl(r.modelResolver,S);if(P==null)return a[u]=null,null}this._clientEdgeTraversalPath.push(b);var E=a[u];E==null||typeof E=="object"||Wr(!1);var $=this._traverse(r.linkedField,S,E);return this._clientEdgeTraversalPath.pop(),a[u]=$,$;default:p.kind}},t._readScalar=function(r,i,a){var o,l=(o=r.alias)!==null&&o!==void 0?o:r.name,s=Am(r,this._variables),u=kr.getValue(i,s);return u===null?this._maybeAddErrorResponseFields(i,s):u===void 0&&this._markDataAsMissing(),a[l]=u,u},t._readLink=function(r,i,a){var o,l=(o=r.alias)!==null&&o!==void 0?o:r.name,s=Am(r,this._variables),u=kr.getLinkedRecordID(i,s);if(u==null)return a[l]=u,u===null?this._maybeAddErrorResponseFields(i,s):u===void 0&&this._markDataAsMissing(),u;var c=a[l];c==null||typeof c=="object"||Wr(!1);var f=this._traverse(r,u,c);return a[l]=f,f},t._readActorChange=function(r,i,a){var o,l=(o=r.alias)!==null&&o!==void 0?o:r.name,s=Am(r,this._variables),u=kr.getActorLinkedRecordID(i,s);if(u==null)return a[l]=u,u===void 0?this._markDataAsMissing():u===null&&this._maybeAddErrorResponseFields(i,s),a[l];var c=u[0],f=u[1],p={};return this._createFragmentPointer(r.fragmentSpread,kr.fromObject({__id:f}),p),a[l]={__fragmentRef:p,__viewer:c},a[l]},t._readPluralLink=function(r,i,a){var o=Am(r,this._variables),l=kr.getLinkedRecordIDs(i,o);return l===null&&this._maybeAddErrorResponseFields(i,o),this._readLinkedIds(r,l,i,a)},t._readLinkedIds=function(r,i,a,o){var l=this,s,u=(s=r.alias)!==null&&s!==void 0?s:r.name;if(i==null)return o[u]=i,i===void 0&&this._markDataAsMissing(),i;var c=o[u];c==null||Array.isArray(c)||Wr(!1);var f=c||[];return i.forEach(function(p,g){if(p==null){p===void 0&&l._markDataAsMissing(),f[g]=p;return}var v=f[g];v==null||typeof v=="object"||Wr(!1),f[g]=l._traverse(r,p,v)}),o[u]=f,f},t._readModuleImport=function(r,i,a){var o=Ile(r.documentName),l=kr.getValue(i,o);if(l==null){l===void 0&&this._markDataAsMissing();return}this._createFragmentPointer({kind:"FragmentSpread",name:r.fragmentName,args:r.args},i,a),a[Cle]=r.fragmentPropName,a[Qle]=l},t._createAliasedFragmentSpread=function(r,i){var a=r.abstractKey;if(a==null){var o=kr.getType(i);if(o==null||o!==r.type)return null}else{var l=this._implementsInterface(i,a);if(l===!1)return null;if(l==null){this._markDataAsMissing();return}}var s={};return this._createFragmentPointer(r.fragment,i,s),kr.fromObject(s)},t._readInlineFragment=function(r,i,a){var o=r.abstractKey;if(o==null){var l=kr.getType(i);if(l==null||l!==r.type)return null;var s=this._traverseSelections(r.selections,i,a);if(!s)return!1}else{var u=this._implementsInterface(i,o),c=this._isMissingData,f=this._isWithinUnmatchedTypeRefinement;if(this._isWithinUnmatchedTypeRefinement=f||u===!1,this._traverseSelections(r.selections,i,a),this._isWithinUnmatchedTypeRefinement=f,u===!1){this._isMissingData=c;return}else if(u==null)return this._markDataAsMissing(),null}return a},t._createFragmentPointer=function(r,i,a){var o=a[Cm];o==null&&(o=a[Cm]={}),typeof o=="object"&&o!=null||Wr(!1),a[Qm]==null&&(a[Qm]=kr.getDataID(i)),o[r.name]=jO(r.args,this._variables,this._isWithinUnmatchedTypeRefinement),a[Tle]=this._owner,la.ENABLE_CLIENT_EDGES&&this._clientEdgeTraversalPath.length>0&&this._clientEdgeTraversalPath[this._clientEdgeTraversalPath.length-1]!==null&&(a[kle]=(0,Ch.default)(this._clientEdgeTraversalPath))},t._createInlineDataOrResolverFragmentPointer=function(r,i,a){var o=a[Cm];o==null&&(o=a[Cm]={}),typeof o=="object"&&o!=null||Wr(!1),a[Qm]==null&&(a[Qm]=kr.getDataID(i));var l={},s=this._fragmentName;this._fragmentName=r.name;var u=this._variables,c=r.args?jO(r.args,this._variables):{};this._variables=Rle.getFragmentVariables(r,this._owner.variables,c),this._traverseSelections(r.selections,i,l),this._variables=u,this._fragmentName=s,o[r.name]=l},t._addMissingRequiredFields=function(r){if(this._missingRequiredFields==null){this._missingRequiredFields=r;return}if(this._missingRequiredFields.action!=="THROW"){if(r.action==="THROW"){this._missingRequiredFields=r;return}this._missingRequiredFields={action:"LOG",fields:[].concat((0,Ch.default)(this._missingRequiredFields.fields),(0,Ch.default)(r.fields))}}},t._implementsInterface=function(r,i){var a=kr.getType(r),o=this._recordSource.get(zle(a)),l=o!=null?kr.getValue(o,i):null;return l},e}();function NI(e,t,n){var r=typeof e.resolverModule=="function"?e.resolverModule:e.resolverModule.default,i=null,a=null;try{var o=[];e.fragment!=null&&o.push(n);var l=e.args?jO(e.args,t):void 0;o.push(l),i=r.apply(null,o)}catch(s){s===Lle?i=void 0:a=s}return[i,a]}function qle(e,t){return e.linkedField.plural?(Array.isArray(t)||Wr(!1),{kind:"PluralConcrete",ids:t.map(function(n){return zI(n)})}):{kind:"SingularConcrete",id:zI(t)}}function jle(e,t,n){if(e.kind===Cy)if(e.backingField.normalizationInfo==null){var r=e.concreteType;return r==null&&Wr(!1),[n.ensureClientRecord(t,r),null]}else return[t,null];else return[t,{readerClientEdge:e,clientEdgeDestinationID:t}]}function Vle(e,t,n){if(e.kind===Cy)if(e.backingField.normalizationInfo==null){var r=e.concreteType;return r==null&&Wr(!1),t.map(function(i){return n.ensureClientRecord(i,r)})}else return t;else Wr(!1)}function zI(e,t){if(typeof e=="string")return e;if(typeof e=="object"&&e!=null&&typeof e.id=="string")return e.id;Wr(!1)}var ck={read:u7},Eb,Rb,kb=B6,Tb=r7,UI=Boe,Zle=ck,qI=Ad,Cb=qe,Qb=typeof Eo<"u"?Eo:typeof window<"u"?window:void 0,Ab=(Eb=Qb==null||(Rb=Qb.ErrorUtils)===null||Rb===void 0?void 0:Rb.applyWithGuard)!==null&&Eb!==void 0?Eb:function(e,t,n,r,i){return e.apply(t,n)},Wle=function(){function e(n,r,i,a){this._hasStoreSnapshot=!1,this._handlerProvider=r||null,this._pendingBackupRebase=!1,this._pendingData=new Set,this._pendingOptimisticUpdates=new Set,this._store=n,this._appliedOptimisticUpdates=new Set,this._gcHold=null,this._getDataID=i,this._missingFieldHandlers=a}var t=e.prototype;return t.applyUpdate=function(r){!this._appliedOptimisticUpdates.has(r)&&!this._pendingOptimisticUpdates.has(r)||Cb(!1),this._pendingOptimisticUpdates.add(r)},t.revertUpdate=function(r){this._pendingOptimisticUpdates.has(r)?this._pendingOptimisticUpdates.delete(r):this._appliedOptimisticUpdates.has(r)&&(this._pendingBackupRebase=!0,this._appliedOptimisticUpdates.delete(r))},t.revertAll=function(){this._pendingBackupRebase=!0,this._pendingOptimisticUpdates.clear(),this._appliedOptimisticUpdates.clear()},t.commitPayload=function(r,i,a){this._pendingBackupRebase=!0,this._pendingData.add({kind:"payload",operation:r,payload:i,updater:a})},t.commitUpdate=function(r){this._pendingBackupRebase=!0,this._pendingData.add({kind:"updater",updater:r})},t.commitSource=function(r){this._pendingBackupRebase=!0,this._pendingData.add({kind:"source",source:r})},t.run=function(r){var i=this._appliedOptimisticUpdates===0&&!!this._gcHold,a=!this._pendingBackupRebase&&this._pendingOptimisticUpdates.size===0&&!i;if(a)return[];this._pendingBackupRebase&&this._hasStoreSnapshot&&(this._store.restore(),this._hasStoreSnapshot=!1);var o=this._commitData();return(this._pendingOptimisticUpdates.size||this._pendingBackupRebase&&this._appliedOptimisticUpdates.size)&&(this._hasStoreSnapshot||(this._store.snapshot(),this._hasStoreSnapshot=!0),this._applyUpdates()),this._pendingBackupRebase=!1,this._appliedOptimisticUpdates.size>0?this._gcHold||(this._gcHold=this._store.holdGC()):this._gcHold&&(this._gcHold.dispose(),this._gcHold=null),this._store.notify(r,o)},t._publishSourceFromPayload=function(r){var i=this,a=r.payload,o=r.operation,l=r.updater,s=a.source,u=a.fieldPayloads,c=new kb(this._store.getSource(),s),f=new Tb(c,this._getDataID,this._handlerProvider,this._missingFieldHandlers);if(u&&u.length&&u.forEach(function(_){var O=i._handlerProvider&&i._handlerProvider(_.handle);O||Cb(!1),O.update(f,_)}),l){var p=o.fragment;p==null&&Cb(!1);var g=new UI(c,f,p,this._missingFieldHandlers),v=jI(s,p);l(g,v)}var m=f.getIDsMarkedForInvalidation();return this._store.publish(s,m),f.isStoreMarkedForInvalidation()},t._commitData=function(){var r=this;if(!this._pendingData.size)return!1;var i=!1;return this._pendingData.forEach(function(a){if(a.kind==="payload"){var o=r._publishSourceFromPayload(a);i=i||o}else if(a.kind==="source"){var l=a.source;r._store.publish(l)}else{var s=a.updater,u=qI.create(),c=new kb(r._store.getSource(),u),f=new Tb(c,r._getDataID,r._handlerProvider,r._missingFieldHandlers);Ab(s,null,[f],null,"RelayPublishQueue:commitData"),i=i||f.isStoreMarkedForInvalidation();var p=f.getIDsMarkedForInvalidation();r._store.publish(u,p)}}),this._pendingData.clear(),i},t._applyUpdates=function(){var r=this,i=qI.create(),a=new kb(this._store.getSource(),i),o=new Tb(a,this._getDataID,this._handlerProvider,this._missingFieldHandlers),l=function(u){if(u.storeUpdater){var c=u.storeUpdater;Ab(c,null,[o],null,"RelayPublishQueue:applyUpdates")}else{var f=u.operation,p=u.payload,g=u.updater,v=p.source,m=p.fieldPayloads;if(v&&o.publishSource(v,m),g){var _;v&&(_=jI(v,f.fragment));var O=new UI(a,o,f.fragment,r._missingFieldHandlers);Ab(g,null,[O,_],null,"RelayPublishQueue:applyUpdates")}}};this._pendingBackupRebase&&this._appliedOptimisticUpdates.size&&this._appliedOptimisticUpdates.forEach(l),this._pendingOptimisticUpdates.size&&(this._pendingOptimisticUpdates.forEach(function(s){l(s),r._appliedOptimisticUpdates.add(s)}),this._pendingOptimisticUpdates.clear()),this._store.publish(i)},e}();function jI(e,t){var n=Zle.read(e,t).data;return n}var Xle=Wle,Yle=nt.default,VI=Yle(un),Gle=kU,c7=ik,ZI=c7.INTERNAL_ACTOR_IDENTIFIER_DO_NOT_USE,Im=c7.assertInternalActorIdentifier,Ib=wc,WI=rae,Ble=q6,Hle=sae,Kle=V6,Jle=yae,ese=z6,tse=Nae,nse=Xle,rse=Ad,f7=function(){function e(n){var r=this,i,a,o,l,s,u,c,f,p,g;this.configName=n.configName,this._treatMissingFieldsAsNull=n.treatMissingFieldsAsNull===!0;var v=n.operationLoader;this.__log=(i=n.log)!==null&&i!==void 0?i:ase,this.relayFieldLogger=(a=n.relayFieldLogger)!==null&&a!==void 0?a:Jle,this._defaultRenderPolicy=(o=n.UNSTABLE_defaultRenderPolicy)!==null&&o!==void 0?o:"partial",this._operationLoader=v,this._operationExecutions=new Map,this._network=WI(this,n.network),this._getDataID=(l=n.getDataID)!==null&&l!==void 0?l:Kle,this._missingFieldHandlers=(s=n.missingFieldHandlers)!==null&&s!==void 0?s:[],this._publishQueue=new nse(n.store,(u=n.handlerProvider)!==null&&u!==void 0?u:Gle,this._getDataID,this._missingFieldHandlers),this._scheduler=(c=n.scheduler)!==null&&c!==void 0?c:null,this._store=n.store,this.options=n.options,this._isServer=(f=n.isServer)!==null&&f!==void 0?f:!1,this._normalizeResponse=(p=n.normalizeResponse)!==null&&p!==void 0?p:ese,this.__setNet=function(m){return r._network=WI(r,m)},this._operationTracker=(g=n.operationTracker)!==null&&g!==void 0?g:new Ble,this._shouldProcessClientComponents=n.shouldProcessClientComponents,Hle(this)}var t=e.prototype;return t.getStore=function(){return this._store},t.getNetwork=function(){return this._network},t.getOperationTracker=function(){return this._operationTracker},t.getScheduler=function(){return this._scheduler},t.isRequestActive=function(r){var i=this._operationExecutions.get(r);return i==="active"},t.UNSTABLE_getDefaultRenderPolicy=function(){return this._defaultRenderPolicy},t.applyUpdate=function(r){var i=this,a=function(){i._scheduleUpdates(function(){i._publishQueue.revertUpdate(r),i._publishQueue.run()})};return this._scheduleUpdates(function(){i._publishQueue.applyUpdate(r),i._publishQueue.run()}),{dispose:a}},t.revertUpdate=function(r){var i=this;this._scheduleUpdates(function(){i._publishQueue.revertUpdate(r),i._publishQueue.run()})},t.replaceUpdate=function(r,i){var a=this;this._scheduleUpdates(function(){a._publishQueue.revertUpdate(r),a._publishQueue.applyUpdate(i),a._publishQueue.run()})},t.applyMutation=function(r){var i=this._execute({createSource:function(){return Ib.create(function(o){})},isClientPayload:!1,operation:r.operation,optimisticConfig:r,updater:null}).subscribe({});return{dispose:function(){return i.unsubscribe()}}},t.check=function(r){return this._missingFieldHandlers.length===0&&!ise(r)?this._store.check(r):this._checkSelectorAndHandleMissingFields(r,this._missingFieldHandlers)},t.commitPayload=function(r,i){this._execute({createSource:function(){return Ib.from({data:i})},isClientPayload:!0,operation:r,optimisticConfig:null,updater:null}).subscribe({})},t.commitUpdate=function(r){var i=this;this._scheduleUpdates(function(){i._publishQueue.commitUpdate(r),i._publishQueue.run()})},t.lookup=function(r){return this._store.lookup(r)},t.subscribe=function(r,i){return this._store.subscribe(r,i)},t.retain=function(r){return this._store.retain(r)},t.isServer=function(){return this._isServer},t._checkSelectorAndHandleMissingFields=function(r,i){var a=this,o=rse.create(),l=this._store.getSource(),s=this._store.check(r,{handlers:i,defaultActorIdentifier:ZI,getSourceForActor:function(c){return Im(c),l},getTargetForActor:function(c){return Im(c),o}});return o.size()>0&&this._scheduleUpdates(function(){a._publishQueue.commitSource(o),a._publishQueue.run()}),s},t._scheduleUpdates=function(r){var i=this._scheduler;i!=null?i.schedule(r):r()},t.execute=function(r){var i=this,a=r.operation;return this._execute({createSource:function(){return i.getNetwork().execute(a.request.node.params,a.request.variables,a.request.cacheConfig||{},null)},isClientPayload:!1,operation:a,optimisticConfig:null,updater:null})},t.executeSubscription=function(r){var i=this,a=r.operation,o=r.updater;return this._execute({createSource:function(){return i.getNetwork().execute(a.request.node.params,a.request.variables,a.request.cacheConfig||{},null)},isClientPayload:!1,operation:a,optimisticConfig:null,updater:o})},t.executeMutation=function(r){var i=this,a=r.operation,o=r.optimisticResponse,l=r.optimisticUpdater,s=r.updater,u=r.uploadables,c;return(o||l)&&(c={operation:a,response:o,updater:l}),this._execute({createSource:function(){return i.getNetwork().execute(a.request.node.params,a.request.variables,(0,VI.default)((0,VI.default)({},a.request.cacheConfig),{},{force:!0}),u)},isClientPayload:!1,operation:a,optimisticConfig:c,updater:s})},t.executeWithSource=function(r){var i=r.operation,a=r.source;return this._execute({createSource:function(){return a},isClientPayload:!1,operation:i,optimisticConfig:null,updater:null})},t.toJSON=function(){var r;return"RelayModernEnvironment(".concat((r=this.configName)!==null&&r!==void 0?r:"",")")},t._execute=function(r){var i=this,a=r.createSource,o=r.isClientPayload,l=r.operation,s=r.optimisticConfig,u=r.updater,c=this._publishQueue,f=this._store;return Ib.create(function(p){var g=tse.execute({actorIdentifier:ZI,getDataID:i._getDataID,isClientPayload:o,log:i.__log,operation:l,operationExecutions:i._operationExecutions,operationLoader:i._operationLoader,operationTracker:i._operationTracker,optimisticConfig:s,getPublishQueue:function(m){return Im(m),c},scheduler:i._scheduler,shouldProcessClientComponents:i._shouldProcessClientComponents,sink:p,source:a(),getStore:function(m){return Im(m),f},treatMissingFieldsAsNull:i._treatMissingFieldsAsNull,updater:u,normalizeResponse:i._normalizeResponse});return function(){return g.cancel()}})},e}();function ise(e){return e.root.node.kind==="Operation"&&e.root.node.clientAbstractTypes!=null}f7.prototype["@@RelayModernEnvironment"]=!0;function ase(){}var ose=f7,lse=Promise.resolve();function sse(e){lse.then(e).catch(use)}function use(e){setTimeout(function(){throw e},0)}var cse=sse,fse=Xi,XI=fse.LINKED_FIELD,dse=en,hse=dse.getHandleStorageKey,pse=Ha,gse=qe;function vse(e,t,n){var r=t.find(function(a){return a.kind===XI&&a.name===e.name&&a.alias===e.alias&&pse(a.args,e.args)});r&&r.kind===XI||gse(!1);var i=hse(e,n);return{kind:"LinkedField",alias:r.alias,name:i,storageKey:i,args:null,concreteType:r.concreteType,plural:r.plural,selections:r.selections}}var d7=vse,mse=Xi,YI=mse.SCALAR_FIELD,Ose=en,yse=Ose.getHandleStorageKey,_se=Ha,Sse=qe;function bse(e,t,n){var r=t.find(function(a){return a.kind===YI&&a.name===e.name&&a.alias===e.alias&&_se(a.args,e.args)});r&&r.kind===YI||Sse(!1);var i=yse(e,n);return{kind:"ScalarField",alias:r.alias,name:i,storageKey:i,args:null}}var wse=bse,$se=nt.default,Dm=$se(er),xse=B6,Pse=r7,Ese=lk,yr=Xi,Rse=zo,kse=Rse.isClientID,Tse=d7,Cse=wse,Qse=Vs,GI=Qse.getLocalVariables,BI=$i,h7=x1,Db=h7.EXISTENT,Ase=h7.UNKNOWN,fk=en,p7=P1,Ise=p7.TYPE_SCHEMA_TYPE,Mb=p7.generateTypeID,Qh=qe,Dse=yr.ACTOR_CHANGE,Mse=yr.CONDITION,Lse=yr.CLIENT_COMPONENT,Fse=yr.CLIENT_EXTENSION,Nse=yr.CLIENT_EDGE_TO_CLIENT_OBJECT,zse=yr.DEFER,Use=yr.FRAGMENT_SPREAD,qse=yr.INLINE_FRAGMENT,jse=yr.LINKED_FIELD,Vse=yr.LINKED_HANDLE,Zse=yr.MODULE_IMPORT,Wse=yr.RELAY_RESOLVER,Xse=yr.RELAY_LIVE_RESOLVER,Yse=yr.SCALAR_FIELD,Gse=yr.SCALAR_HANDLE,Bse=yr.STREAM,Hse=yr.TYPE_DISCRIMINATOR,Kse=fk.getModuleOperationKey,Mm=fk.getStorageKey,Lb=fk.getArgumentValues;function Jse(e,t,n,r,i,a,o,l){var s=r.dataID,u=r.node,c=r.variables,f=new eue(e,t,n,c,i,a,o,l);return f.check(u,s)}var eue=function(){function e(n,r,i,a,o,l,s,u){this._getSourceForActor=n,this._getTargetForActor=r,this._getDataID=s,this._source=n(i),this._mutatorRecordSourceProxyCache=new Map;var c=this._getMutatorAndRecordProxyForActor(i),f=c[0],p=c[1];this._mostRecentlyInvalidatedAt=null,this._handlers=o,this._mutator=f,this._operationLoader=l??null,this._recordSourceProxy=p,this._recordWasMissing=!1,this._variables=a,this._shouldProcessClientComponents=u}var t=e.prototype;return t._getMutatorAndRecordProxyForActor=function(r){var i=this._mutatorRecordSourceProxyCache.get(r);if(i==null){var a=this._getTargetForActor(r),o=new xse(this._getSourceForActor(r),a),l=new Pse(o,this._getDataID,void 0,this._handlers);i=[o,l],this._mutatorRecordSourceProxyCache.set(r,i)}return i},t.check=function(r,i){return this._assignClientAbstractTypes(r),this._traverse(r,i),this._recordWasMissing===!0?{status:"missing",mostRecentlyInvalidatedAt:this._mostRecentlyInvalidatedAt}:{status:"available",mostRecentlyInvalidatedAt:this._mostRecentlyInvalidatedAt}},t._getVariableValue=function(r){return this._variables.hasOwnProperty(r)||Qh(!1),this._variables[r]},t._handleMissing=function(){this._recordWasMissing=!0},t._handleMissingScalarField=function(r,i){if(!(r.name==="id"&&r.alias==null&&kse(i))){var a=r.args!=null?Lb(r.args,this._variables):{},o=(0,Dm.default)(this._handlers),l;try{for(o.s();!(l=o.n()).done;){var s=l.value;if(s.kind==="scalar"){var u=s.handle(r,this._recordSourceProxy.get(i),a,this._recordSourceProxy);if(u!==void 0)return u}}}catch(c){o.e(c)}finally{o.f()}this._handleMissing()}},t._handleMissingLinkField=function(r,i){var a=r.args!=null?Lb(r.args,this._variables):{},o=(0,Dm.default)(this._handlers),l;try{for(o.s();!(l=o.n()).done;){var s=l.value;if(s.kind==="linked"){var u=s.handle(r,this._recordSourceProxy.get(i),a,this._recordSourceProxy);if(u!==void 0&&(u===null||this._mutator.getStatus(u)===Db))return u}}}catch(c){o.e(c)}finally{o.f()}this._handleMissing()},t._handleMissingPluralLinkField=function(r,i){var a=this,o=r.args!=null?Lb(r.args,this._variables):{},l=(0,Dm.default)(this._handlers),s;try{for(l.s();!(s=l.n()).done;){var u=s.value;if(u.kind==="pluralLinked"){var c=u.handle(r,this._recordSourceProxy.get(i),o,this._recordSourceProxy);if(c!=null){var f=c.every(function(p){return p!=null&&a._mutator.getStatus(p)===Db});if(f)return c}else if(c===null)return null}}}catch(p){l.e(p)}finally{l.f()}this._handleMissing()},t._traverse=function(r,i){var a=this._mutator.getStatus(i);if(a===Ase&&this._handleMissing(),a===Db){var o=this._source.get(i),l=BI.getInvalidationEpoch(o);l!=null&&(this._mostRecentlyInvalidatedAt=this._mostRecentlyInvalidatedAt!=null?Math.max(this._mostRecentlyInvalidatedAt,l):l),this._traverseSelections(r.selections,i)}},t._traverseSelections=function(r,i){var a=this;r.forEach(function(o){switch(o.kind){case Yse:a._checkScalar(o,i);break;case jse:o.plural?a._checkPluralLink(o,i):a._checkLink(o,i);break;case Dse:a._checkActorChange(o.linkedField,i);break;case Mse:var l=!!a._getVariableValue(o.condition);l===o.passingValue&&a._traverseSelections(o.selections,i);break;case qse:{var s=o.abstractKey;if(s==null){var u=a._mutator.getType(i);u===o.type&&a._traverseSelections(o.selections,i)}else{var c=a._mutator.getType(i);c==null&&Qh(!1);var f=Mb(c),p=a._mutator.getValue(f,s);p===!0?a._traverseSelections(o.selections,i):p==null&&a._handleMissing()}break}case Vse:{var g=Tse(o,r,a._variables);g.plural?a._checkPluralLink(g,i):a._checkLink(g,i);break}case Gse:{var v=Cse(o,r,a._variables);a._checkScalar(v,i);break}case Zse:a._checkModuleImport(o,i);break;case zse:case Bse:a._traverseSelections(o.selections,i);break;case Use:var m=a._variables;a._variables=GI(a._variables,o.fragment.argumentDefinitions,o.args),a._traverseSelections(o.fragment.selections,i),a._variables=m;break;case Fse:var _=a._recordWasMissing;a._traverseSelections(o.selections,i),a._recordWasMissing=_;break;case Hse:var O=o.abstractKey,S=a._mutator.getType(i);S==null&&Qh(!1);var b=Mb(S),P=a._mutator.getValue(b,O);P==null&&a._handleMissing();break;case Lse:if(a._shouldProcessClientComponents===!1)break;a._traverseSelections(o.fragment.selections,i);break;case Wse:a._checkResolver(o,i);break;case Xse:a._checkResolver(o,i);break;case Nse:a._checkResolver(o.backingField,i);break;default:Qh(!1)}})},t._checkResolver=function(r,i){r.fragment&&this._traverseSelections([r.fragment],i)},t._checkModuleImport=function(r,i){var a=this._operationLoader;a===null&&Qh(!1);var o=Kse(r.documentName),l=this._mutator.getValue(i,o);if(l==null){l===void 0&&this._handleMissing();return}var s=a.get(l);if(s!=null){var u=Ese(s),c=this._variables;this._variables=GI(this._variables,u.argumentDefinitions,r.args),this._traverse(u,i),this._variables=c}else this._handleMissing()},t._checkScalar=function(r,i){var a=Mm(r,this._variables),o=this._mutator.getValue(i,a);o===void 0&&(o=this._handleMissingScalarField(r,i),o!==void 0&&this._mutator.setValue(i,a,o))},t._checkLink=function(r,i){var a=Mm(r,this._variables),o=this._mutator.getLinkedRecordID(i,a);o===void 0&&(o=this._handleMissingLinkField(r,i),o!=null?this._mutator.setLinkedRecordID(i,a,o):o===null&&this._mutator.setValue(i,a,null)),o!=null&&this._traverse(r,o)},t._checkPluralLink=function(r,i){var a=this,o=Mm(r,this._variables),l=this._mutator.getLinkedRecordIDs(i,o);l===void 0&&(l=this._handleMissingPluralLinkField(r,i),l!=null?this._mutator.setLinkedRecordIDs(i,o,l):l===null&&this._mutator.setValue(i,o,null)),l&&l.forEach(function(s){s!=null&&a._traverse(r,s)})},t._checkActorChange=function(r,i){var a=Mm(r,this._variables),o=this._source.get(i),l=o!=null?BI.getActorLinkedRecordID(o,a):o;if(l==null)l===void 0&&this._handleMissing();else{var s=l[0],u=l[1],c=this._source,f=this._mutator,p=this._recordSourceProxy,g=this._getMutatorAndRecordProxyForActor(s),v=g[0],m=g[1];this._source=this._getSourceForActor(s),this._mutator=v,this._recordSourceProxy=m,this._assignClientAbstractTypes(r),this._traverse(r,u),this._source=c,this._mutator=f,this._recordSourceProxy=p}},t._assignClientAbstractTypes=function(r){var i=r.clientAbstractTypes;if(i!=null)for(var a=0,o=Object.keys(i);a<o.length;a++){var l=o[a],s=(0,Dm.default)(i[l]),u;try{for(s.s();!(u=s.n()).done;){var c=u.value,f=Mb(c);this._source.get(f)==null&&this._mutator.create(f,Ise),this._mutator.getValue(f,l)==null&&this._mutator.setValue(f,l,!0)}}catch(p){s.e(p)}finally{s.f()}}},e}(),tue={check:Jse},nue=nt.default,rue=nue(un),g7=$i,HI=Ad,iue=qe,Fb=g7.fromObject(Object.freeze({__UNPUBLISH_RECORD_SENTINEL:!0})),v7=function(){function e(n){this._base=n,this._sink=HI.create()}var t=e.prototype;return t.has=function(r){if(this._sink.has(r)){var i=this._sink.get(r);return i!==Fb}else return this._base.has(r)},t.get=function(r){if(this._sink.has(r)){var i=this._sink.get(r);return i===Fb?void 0:i}else return this._base.get(r)},t.getStatus=function(r){var i=this.get(r);return i===void 0?"UNKNOWN":i===null?"NONEXISTENT":"EXISTENT"},t.clear=function(){this._base=HI.create(),this._sink.clear()},t.delete=function(r){this._sink.delete(r)},t.remove=function(r){this._sink.set(r,Fb)},t.set=function(r,i){this._sink.set(r,i)},t.getRecordIDs=function(){return Object.keys(this.toJSON())},t.size=function(){return Object.keys(this.toJSON()).length},t.toJSON=function(){var r=this,i=(0,rue.default)({},this._base.toJSON());return this._sink.getRecordIDs().forEach(function(a){var o=r.get(a);o===void 0?delete i[a]:i[a]=g7.toJSON(o)}),i},t.getOptimisticRecordIDs=function(){return new Set(this._sink.getRecordIDs())},e}();function aue(e){return new v7(e)}function oue(e){return e instanceof v7||iue(!1),e.getOptimisticRecordIDs()}var lue={create:aue,getOptimisticRecordIDs:oue},sue=$i,uue=en,cue=uue.RELAY_RESOLVER_OUTPUT_TYPE_RECORD_IDS,fue=qe;function due(e){var t=sue.getValue(e,cue);return t==null?null:(t instanceof Set||fue(!1),t)}var hue=due,pue=nt.default,KI=pue(er),gue=lk,_r=Xi,vue=d7,mue=hue,Oue=Vs,JI=Oue.getLocalVariables,il=$i,dk=en,yue=P1,eD=yue.generateTypeID,Nb=qe,_ue=_r.ACTOR_CHANGE,Sue=_r.CONDITION,bue=_r.CLIENT_COMPONENT,wue=_r.CLIENT_EXTENSION,$ue=_r.DEFER,xue=_r.FRAGMENT_SPREAD,Pue=_r.INLINE_FRAGMENT,Eue=_r.LINKED_FIELD,Rue=_r.MODULE_IMPORT,kue=_r.LINKED_HANDLE,Tue=_r.SCALAR_FIELD,Cue=_r.SCALAR_HANDLE,Que=_r.STREAM,Aue=_r.TYPE_DISCRIMINATOR,Iue=_r.RELAY_RESOLVER,Due=_r.RELAY_LIVE_RESOLVER,Mue=_r.CLIENT_EDGE_TO_CLIENT_OBJECT,zb=dk.getStorageKey,Lue=dk.getModuleOperationKey;function Fue(e,t,n,r,i){var a=t.dataID,o=t.node,l=t.variables,s=new Nue(e,l,n,r,i);s.mark(o,a)}var Nue=function(){function e(n,r,i,a,o){this._operationLoader=a??null,this._operationName=null,this._recordSource=n,this._references=i,this._variables=r,this._shouldProcessClientComponents=o}var t=e.prototype;return t.mark=function(r,i){(r.kind==="Operation"||r.kind==="SplitOperation")&&(this._operationName=r.name),this._traverse(r,i)},t._traverse=function(r,i){this._references.add(i);var a=this._recordSource.get(i);a!=null&&this._traverseSelections(r.selections,a)},t._getVariableValue=function(r){return this._variables.hasOwnProperty(r)||Nb(!1),this._variables[r]},t._traverseSelections=function(r,i){var a=this;r.forEach(function(o){switch(o.kind){case _ue:a._traverseLink(o.linkedField,i);break;case Eue:o.plural?a._traversePluralLink(o,i):a._traverseLink(o,i);break;case Sue:var l=!!a._getVariableValue(o.condition);l===o.passingValue&&a._traverseSelections(o.selections,i);break;case Pue:if(o.abstractKey==null){var s=il.getType(i);(s!=null&&s===o.type||s===dk.ROOT_TYPE)&&a._traverseSelections(o.selections,i)}else{var u=il.getType(i),c=eD(u);a._references.add(c),a._traverseSelections(o.selections,i)}break;case xue:var f=a._variables;a._variables=JI(a._variables,o.fragment.argumentDefinitions,o.args),a._traverseSelections(o.fragment.selections,i),a._variables=f;break;case kue:var p=vue(o,r,a._variables);p.plural?a._traversePluralLink(p,i):a._traverseLink(p,i);break;case $ue:case Que:a._traverseSelections(o.selections,i);break;case Tue:case Cue:break;case Aue:{var g=il.getType(i),v=eD(g);a._references.add(v);break}case Rue:a._traverseModuleImport(o,i);break;case wue:a._traverseSelections(o.selections,i);break;case bue:if(a._shouldProcessClientComponents===!1)break;a._traverseSelections(o.fragment.selections,i);break;case Iue:a._traverseResolverField(o,i);break;case Due:a._traverseResolverField(o,i);break;case Mue:a._traverseClientEdgeToClientObject(o,i);break;default:Nb(!1)}})},t._traverseClientEdgeToClientObject=function(r,i){var a=this._traverseResolverField(r.backingField,i);if(a!=null){var o=this._recordSource.get(a);if(o!=null)if(r.backingField.isOutputType){var l=mue(o);if(l!=null){var s=(0,KI.default)(l),u;try{for(s.s();!(u=s.n()).done;){var c=u.value;this._references.add(c)}}catch(S){s.e(S)}finally{s.f()}}}else{var f=r.linkedField,p=f.concreteType;if(p==null)return;if(f.plural){var g=il.getResolverLinkedRecordIDs(o,p);if(g!=null){var v=(0,KI.default)(g),m;try{for(v.s();!(m=v.n()).done;){var _=m.value;_!=null&&this._traverse(f,_)}}catch(S){v.e(S)}finally{v.f()}}}else{var O=il.getResolverLinkedRecordID(o,p);O!=null&&this._traverse(f,O)}}}},t._traverseResolverField=function(r,i){var a=zb(r,this._variables),o=il.getLinkedRecordID(i,a);o!=null&&this._references.add(o);var l=r.fragment;return l!=null&&this._traverseSelections([l],i),o},t._traverseModuleImport=function(r,i){var a=this._operationLoader;a===null&&Nb(!1);var o=Lue(r.documentName),l=il.getValue(i,o);if(l!=null){var s=a.get(l);if(s!=null){var u=gue(s),c=this._variables;this._variables=JI(this._variables,u.argumentDefinitions,r.args),this._traverseSelections(u.selections,i),this._variables=c}}},t._traverseLink=function(r,i){var a=zb(r,this._variables),o=il.getLinkedRecordID(i,a);o!=null&&this._traverse(r,o)},t._traversePluralLink=function(r,i){var a=this,o=zb(r,this._variables),l=il.getLinkedRecordIDs(i,o);l!=null&&l.forEach(function(s){s!=null&&a._traverse(r,s)})},e}(),zue={mark:Fue},Uue=Symbol.iterator;function que(e,t){for(var n=e[Uue](),r=n.next();!r.done;){var i=r.value;if(t.has(i))return!0;r=n.next()}return!1}var jue=que,Vue=en,Zue=Vue.ROOT_ID,Wue=ok,Xue=Wue.VIEWER_ID,Yue=Symbol.iterator;function Gue(e,t){for(var n=e[Yue](),r=n.next();!r.done;){var i=r.value;if(t.has(i)&&i!==Zue&&i!==Xue)return!0;r=n.next()}return!1}var Bue=Gue,tD=w1,nD=Pa,Hue=jue,Kue=Bue,rD=ck,Jue=function(){function e(n,r){this._subscriptions=new Set,this.__log=n,this._resolverCache=r}var t=e.prototype;return t.subscribe=function(r,i){var a=this,o={backup:null,callback:i,snapshot:r,stale:!1},l=function(){a._subscriptions.delete(o)};return this._subscriptions.add(o),{dispose:l}},t.snapshotSubscriptions=function(r){var i=this;this._subscriptions.forEach(function(a){if(!a.stale){a.backup=a.snapshot;return}var o=a.snapshot,l=rD.read(r,o.selector,i._resolverCache),s=tD(o.data,l.data);l.data=s,a.backup=l})},t.restoreSubscriptions=function(){this._subscriptions.forEach(function(r){var i=r.backup;r.backup=null,i?(i.data!==r.snapshot.data&&(r.stale=!0),r.snapshot={data:r.snapshot.data,isMissingData:i.isMissingData,missingClientEdges:i.missingClientEdges,missingLiveResolverFields:i.missingLiveResolverFields,seenRecords:i.seenRecords,selector:i.selector,missingRequiredFields:i.missingRequiredFields,relayResolverErrors:i.relayResolverErrors,errorResponseFields:i.errorResponseFields}):r.stale=!0})},t.updateSubscriptions=function(r,i,a,o){var l=this,s=i.size!==0;this._subscriptions.forEach(function(u){var c=l._updateSubscription(r,u,i,s,o);c!=null&&a.push(c)})},t._updateSubscription=function(r,i,a,o,l){var s=i.backup,u=i.callback,c=i.snapshot,f=i.stale,p=o&&Hue(c.seenRecords,a);if(!(!f&&!p)){var g=p||!s?rD.read(r,c.selector,this._resolverCache):s,v=tD(c.data,g.data);if(g={data:v,isMissingData:g.isMissingData,missingClientEdges:g.missingClientEdges,missingLiveResolverFields:g.missingLiveResolverFields,seenRecords:g.seenRecords,selector:g.selector,missingRequiredFields:g.missingRequiredFields,relayResolverErrors:g.relayResolverErrors,errorResponseFields:g.errorResponseFields},i.snapshot=g,i.stale=!1,g.data!==c.data)return this.__log&&nD.ENABLE_NOTIFY_SUBSCRIPTION&&this.__log({name:"store.notify.subscription",sourceOperation:l,snapshot:c,nextSnapshot:g}),u(g),c.selector.owner;if(nD.ENABLE_LOOSE_SUBSCRIPTION_ATTRIBUTION&&(f||Kue(c.seenRecords,a)))return c.selector.owner}},e}(),ece=Jue,m7=nt.default,iD=m7(er),tce=m7(ei),O7=ik,nce=O7.INTERNAL_ACTOR_IDENTIFIER_DO_NOT_USE,aD=O7.assertInternalActorIdentifier,rce=Pa,ice=cse,ace=tue,oce=V6,Lf=$i,lce=lue,sce=ck,uce=zue,cce=ece,fce=en,y7=en,Ub=y7.ROOT_ID,dce=y7.ROOT_TYPE,hce=a7,pce=hce.RecordResolverCache,oD=qe,gce=10,vce=function(){function e(n,r){var i=this,a,o,l,s,u;(0,tce.default)(this,"_gcStep",function(){i._gcRun&&(i._gcRun.next().done?i._gcRun=null:i._gcScheduler(i._gcStep))}),this._currentWriteEpoch=0,this._gcHoldCounter=0,this._gcReleaseBufferSize=(a=r==null?void 0:r.gcReleaseBufferSize)!==null&&a!==void 0?a:gce,this._gcRun=null,this._gcScheduler=(o=r==null?void 0:r.gcScheduler)!==null&&o!==void 0?o:ice,this._getDataID=(l=r==null?void 0:r.getDataID)!==null&&l!==void 0?l:oce,this._globalInvalidationEpoch=null,this._invalidationSubscriptions=new Set,this._invalidatedRecordIDs=new Set,this.__log=(s=r==null?void 0:r.log)!==null&&s!==void 0?s:null,this._queryCacheExpirationTime=r==null?void 0:r.queryCacheExpirationTime,this._operationLoader=(u=r==null?void 0:r.operationLoader)!==null&&u!==void 0?u:null,this._optimisticSource=null,this._recordSource=n,this._releaseBuffer=[],this._roots=new Map,this._shouldScheduleGC=!1,this._resolverCache=new pce(function(){return i._getMutableRecordSource()}),this._storeSubscriptions=new cce(r==null?void 0:r.log,this._resolverCache),this._updatedRecordIDs=new Set,this._shouldProcessClientComponents=r==null?void 0:r.shouldProcessClientComponents,mce(this._recordSource)}var t=e.prototype;return t.getSource=function(){var r;return(r=this._optimisticSource)!==null&&r!==void 0?r:this._recordSource},t._getMutableRecordSource=function(){var r;return(r=this._optimisticSource)!==null&&r!==void 0?r:this._recordSource},t.check=function(r,i){var a,o,l,s,u=r.root,c=this._getMutableRecordSource(),f=this._globalInvalidationEpoch,p=this._roots.get(r.request.identifier),g=p!=null?p.epoch:null;if(f!=null&&(g==null||g<=f))return{status:"stale"};var v=(a=i==null?void 0:i.handlers)!==null&&a!==void 0?a:[],m=(o=i==null?void 0:i.getSourceForActor)!==null&&o!==void 0?o:function(S){return aD(S),c},_=(l=i==null?void 0:i.getTargetForActor)!==null&&l!==void 0?l:function(S){return aD(S),c},O=ace.check(m,_,(s=i==null?void 0:i.defaultActorIdentifier)!==null&&s!==void 0?s:nce,u,v,this._operationLoader,this._getDataID,this._shouldProcessClientComponents);return yce(O,g,p==null?void 0:p.fetchTime,this._queryCacheExpirationTime)},t.retain=function(r){var i=this,a=r.request.identifier,o=!1,l=function(){if(!o){o=!0;var c=i._roots.get(a);if(c!=null&&(c.refCount--,c.refCount===0)){var f=i._queryCacheExpirationTime,p=c.fetchTime!=null&&f!=null&&c.fetchTime<=Date.now()-f;if(p)i._roots.delete(a),i.scheduleGC();else if(i._releaseBuffer.push(a),i._releaseBuffer.length>i._gcReleaseBufferSize){var g=i._releaseBuffer.shift();i._roots.delete(g),i.scheduleGC()}}}},s=this._roots.get(a);return s!=null?(s.refCount===0&&(this._releaseBuffer=this._releaseBuffer.filter(function(u){return u!==a})),s.refCount+=1):this._roots.set(a,{operation:r,refCount:1,epoch:null,fetchTime:null}),{dispose:l}},t.lookup=function(r){var i=this.getSource(),a=sce.read(i,r,this._resolverCache);return a},t.notify=function(r,i){var a=this,o=this.__log;o!=null&&o({name:"store.notify.start",sourceOperation:r}),this._currentWriteEpoch++,i===!0&&(this._globalInvalidationEpoch=this._currentWriteEpoch),rce.ENABLE_RELAY_RESOLVERS&&this._resolverCache.invalidateDataIDs(this._updatedRecordIDs);var l=this.getSource(),s=[];if(this._storeSubscriptions.updateSubscriptions(l,this._updatedRecordIDs,s,r),this._invalidationSubscriptions.forEach(function(p){a._updateInvalidationSubscription(p,i===!0)}),o!=null&&o({name:"store.notify.complete",sourceOperation:r,updatedRecordIDs:this._updatedRecordIDs,invalidatedRecordIDs:this._invalidatedRecordIDs}),this._updatedRecordIDs.clear(),this._invalidatedRecordIDs.clear(),r!=null){var u=r.request.identifier,c=this._roots.get(u);if(c!=null)c.epoch=this._currentWriteEpoch,c.fetchTime=Date.now();else if(r.request.node.params.operationKind==="query"&&this._gcReleaseBufferSize>0&&this._releaseBuffer.length<this._gcReleaseBufferSize){var f={operation:r,refCount:0,epoch:this._currentWriteEpoch,fetchTime:Date.now()};this._releaseBuffer.push(u),this._roots.set(u,f)}}return s},t.publish=function(r,i){var a=this._getMutableRecordSource();Oce(a,r,this._currentWriteEpoch+1,i,this._updatedRecordIDs,this._invalidatedRecordIDs);var o=this.__log;o!=null&&o({name:"store.publish",source:r,optimistic:a===this._optimisticSource})},t.subscribe=function(r,i){return this._storeSubscriptions.subscribe(r,i)},t.holdGC=function(){var r=this;this._gcRun&&(this._gcRun=null,this._shouldScheduleGC=!0),this._gcHoldCounter++;var i=function(){r._gcHoldCounter>0&&(r._gcHoldCounter--,r._gcHoldCounter===0&&r._shouldScheduleGC&&(r.scheduleGC(),r._shouldScheduleGC=!1))};return{dispose:i}},t.toJSON=function(){return"RelayModernStore()"},t.getEpoch=function(){return this._currentWriteEpoch},t.__getUpdatedRecordIDs=function(){return this._updatedRecordIDs},t.lookupInvalidationState=function(r){var i=this,a=new Map;return r.forEach(function(o){var l,s=i.getSource().get(o);a.set(o,(l=Lf.getInvalidationEpoch(s))!==null&&l!==void 0?l:null)}),a.set("global",this._globalInvalidationEpoch),{dataIDs:r,invalidations:a}},t.checkInvalidationState=function(r){var i=this.lookupInvalidationState(r.dataIDs),a=i.invalidations,o=r.invalidations;if(a.get("global")!==o.get("global"))return!0;var l=(0,iD.default)(r.dataIDs),s;try{for(l.s();!(s=l.n()).done;){var u=s.value;if(a.get(u)!==o.get(u))return!0}}catch(c){l.e(c)}finally{l.f()}return!1},t.subscribeToInvalidationState=function(r,i){var a=this,o={callback:i,invalidationState:r},l=function(){a._invalidationSubscriptions.delete(o)};return this._invalidationSubscriptions.add(o),{dispose:l}},t._updateInvalidationSubscription=function(r,i){var a=this,o=r.callback,l=r.invalidationState,s=l.dataIDs,u=i||s.some(function(c){return a._invalidatedRecordIDs.has(c)});u&&o()},t.snapshot=function(){this._optimisticSource!=null&&oD(!1);var r=this.__log;r!=null&&r({name:"store.snapshot"}),this._storeSubscriptions.snapshotSubscriptions(this.getSource()),this._gcRun&&(this._gcRun=null,this._shouldScheduleGC=!0),this._optimisticSource=lce.create(this.getSource())},t.restore=function(){this._optimisticSource==null&&oD(!1);var r=this.__log;r!=null&&r({name:"store.restore"}),this._optimisticSource=null,this._shouldScheduleGC&&this.scheduleGC(),this._storeSubscriptions.restoreSubscriptions()},t.scheduleGC=function(){if(this._gcHoldCounter>0){this._shouldScheduleGC=!0;return}this._gcRun||(this._gcRun=this._collect(),this._gcScheduler(this._gcStep))},t.__gc=function(){if(this._optimisticSource==null)for(var r=this._collect();!r.next().done;);},t._collect=function*(){e:for(;;){var r=this._currentWriteEpoch,i=new Set,a=(0,iD.default)(this._roots.values()),o;try{for(a.s();!(o=a.n()).done;){var l=o.value.operation,s=l.root;if(uce.mark(this._recordSource,s,i,this._operationLoader,this._shouldProcessClientComponents),yield,r!==this._currentWriteEpoch)continue e}}catch(g){a.e(g)}finally{a.f()}var u=this.__log;if(u!=null&&u({name:"store.gc",references:i}),i.size===0)this._recordSource.clear();else for(var c=this._recordSource.getRecordIDs(),f=0;f<c.length;f++){var p=c[f];i.has(p)||this._recordSource.remove(p)}return}},e}();function mce(e){if(!e.has(Ub)){var t=Lf.create(Ub,dce);e.set(Ub,t)}}function Oce(e,t,n,r,i,a){r&&r.forEach(function(p){var g=e.get(p),v=t.get(p);if(v!==null){var m;g!=null?m=Lf.clone(g):m=v!=null?Lf.clone(v):null,m&&(Lf.setValue(m,fce.INVALIDATED_AT_KEY,n),a.add(p),e.set(p,m))}});for(var o=t.getRecordIDs(),l=0;l<o.length;l++){var s=o[l],u=t.get(s),c=e.get(s);if(u&&c){var f=Lf.update(c,u);f!==c&&(i.add(s),e.set(s,f))}else u===null?(e.delete(s),c!==null&&i.add(s)):u&&(e.set(s,u),i.add(s))}}function yce(e,t,n,r){var i=e.mostRecentlyInvalidatedAt,a=e.status;if(typeof i=="number"&&(t==null||i>t))return{status:"stale"};if(a==="missing")return{status:"missing"};if(n!=null&&r!=null){var o=n<=Date.now()-r;if(o)return{status:"stale"}}return{status:"available",fetchTime:n??null}}var _ce=vce,Sce=b1,bce=Uo,wce=bce.getRequest,$ce=bc,xce=$ce.createOperationDescriptor,Pce=Ml,Ece=Pce.createReaderSelector;function Rce(e,t){var n=wce(t.subscription);if(n.params.operationKind!=="subscription")throw new Error("requestSubscription: Must use Subscription operation");var r=t.configs,i=t.onCompleted,a=t.onError,o=t.onNext,l=t.variables,s=t.cacheConfig,u=xce(n,l,s),c=r?Sce.convert(r,n,null,t.updater):t,f=c.updater,p=e.executeSubscription({operation:u,updater:f}).subscribe({next:function(v){if(o!=null){var m=u.fragment,_;if(Array.isArray(v)){var O,S;_=(O=v[0])===null||O===void 0||(S=O.extensions)===null||S===void 0?void 0:S.__relay_subscription_root_id}else{var b;_=(b=v.extensions)===null||b===void 0?void 0:b.__relay_subscription_root_id}typeof _=="string"&&(m=Ece(m.node,_,m.variables,m.owner));var P=e.lookup(m).data;o(P)}},error:a,complete:i});return{dispose:p.unsubscribe}}var kce=Rce,Tce=nt.default,Cce=Tce(un),_7=en,Qce=_7.getModuleComponentKey,Ace=_7.getModuleOperationKey;function Ice(e,t,n,r){var i=(0,Cce.default)({},r);return i[Qce(e)]=n,i[Ace(e)]=t,i}var Dce=Ice,Mce=Object.prototype.hasOwnProperty;function Lce(e){for(var t in e)if(Mce.call(e,t))return!1;return!0}var Fce=Lce,hk=Ml,Nce=hk.getDataIDsFromFragment,zce=hk.getSelector,Uce=hk.getVariablesFromFragment,qce=Fce,Ah=Pa,lD=Td,jce=uU,sD=jce.intern;function Vce(e,t){var n=zce(e,t),r=n==null?"null":n.kind==="SingularReaderSelector"?n.owner.identifier:"["+n.selectors.map(function(u){return u.owner.identifier}).join(",")+"]",i=Uce(e,t),a=Nce(e,t);if(Ah.ENABLE_GETFRAGMENTIDENTIFIER_OPTIMIZATION){var o=typeof a>"u"?"missing":a==null?"null":Array.isArray(a)?"["+a.join(",")+"]":a;return o=Ah.STRING_INTERN_LEVEL<=1?o:sD(o,Ah.MAX_DATA_ID_LENGTH),r+"/"+e.name+"/"+(i==null||qce(i)?"{}":JSON.stringify(lD(i)))+"/"+o}else{var l,s=(l=JSON.stringify(a))!==null&&l!==void 0?l:"missing";return s=Ah.STRING_INTERN_LEVEL<=1?s:sD(s,Ah.MAX_DATA_ID_LENGTH),r+"/"+e.name+"/"+JSON.stringify(lD(i))+"/"+s}}var Zce=Vce,Ih=qe;function Wce(e,t){var n,r;((n=e.metadata)===null||n===void 0?void 0:n.plural)===!0&&Ih(!1);var i=(r=e.metadata)===null||r===void 0?void 0:r.refetch;i==null&&Ih(!1);var a=i.operation.default?i.operation.default:i.operation,o=i.fragmentPathInResult;typeof a=="string"&&Ih(!1);var l=i.identifierInfo;return l!=null&&(l.identifierField==null||typeof l.identifierField=="string"||Ih(!1),l.identifierQueryVariableName==null||typeof l.identifierQueryVariableName=="string"||Ih(!1)),{fragmentRefPathInResponse:o,identifierInfo:l,refetchableRequest:a,refetchMetadata:i}}var S7=Wce,Xce=S7,qb=qe;function Yce(e,t){var n,r,i=Xce(e),a=i.refetchableRequest,o=i.refetchMetadata,l=o.connection;l==null&&qb(!1);var s=l.path,u=((n=(r=e.metadata)===null||r===void 0?void 0:r.connection)!==null&&n!==void 0?n:[])[0];u==null&&qb(!1);var c=o.identifierInfo;return(c==null?void 0:c.identifierField)==null||typeof c.identifierField=="string"||qb(!1),{connectionPathInFragmentData:s,identifierField:c==null?void 0:c.identifierField,paginationRequest:a,paginationMetadata:l,stream:u.stream===!0}}var Gce=Yce,b7=nt.default,Lm=b7(ei),Jc=b7(un),uD=qe;function Bce(e,t,n,r,i,a){var o,l=a.backward,s=a.forward;if(e==="backward"){var u;l!=null&&l.count!=null&&l.cursor!=null||uD(!1);var c=(0,Jc.default)((0,Jc.default)((0,Jc.default)({},r),i),{},(u={},(0,Lm.default)(u,l.cursor,n),(0,Lm.default)(u,l.count,t),u));return s&&s.cursor&&(c[s.cursor]=null),s&&s.count&&(c[s.count]=null),c}s!=null&&s.count!=null&&s.cursor!=null||uD(!1);var f=(0,Jc.default)((0,Jc.default)((0,Jc.default)({},r),i),{},(o={},(0,Lm.default)(o,s.cursor,n),(0,Lm.default)(o,s.count,t),o));return l&&l.cursor&&(f[l.cursor]=null),l&&l.count&&(f[l.count]=null),f}var Hce=Bce,Kce=nt.default,Jce=Kce(er),cD=qe;function efe(e,t){var n=e,r=(0,Jce.default)(t),i;try{for(r.s();!(i=r.n()).done;){var a=i.value;if(n==null)return null;typeof a=="number"?(Array.isArray(n)||cD(!1),n=n[a]):(typeof n=="object"&&!Array.isArray(n)||cD(!1),n=n[a])}}catch(o){r.e(o)}finally{r.f()}return n}var tfe=efe,ef={},nfe={stop:function(){}},rfe={profile:function(t,n){var r=ef[t];if(r&&r.length>0){for(var i=[],a=r.length-1;a>=0;a--){var o=r[a](t,n);i.unshift(o)}return{stop:function(s){i.forEach(function(u){return u(s)})}}}return nfe},attachProfileHandler:function(t,n){ef.hasOwnProperty(t)||(ef[t]=[]),ef[t].push(n)},detachProfileHandler:function(t,n){ef.hasOwnProperty(t)&&ife(ef[t],n)}};function ife(e,t){var n=e.indexOf(t);n!==-1&&e.splice(n,1)}var afe=rfe,ofe=y1,lfe=zR,sfe=RU,ufe=kU,cfe=bte,ffe=$te,dfe=Lte,fD=b1,hfe=Jte,pfe=wc,gfe=ine,vfe=qne,mfe=Yne,Fm=BR,co=Uo,Ofe=Hne,pk=zo,yfe=pk.generateClientID,_fe=pk.generateUniqueClientID,Sfe=pk.isClientID,bfe=mre,wfe=_re,w7=JR,$fe=w7.isSuspenseSentinel,xfe=w7.suspenseSentinel,Pfe=qR,Efe=z6,Rfe=Kie,dD=Vs,kfe=ose,hD=bc,Tfe=$i,Ti=Ml,Cfe=_ce,Qfe=q6,Afe=Ad,sa=en,Ife=l7,pD=ok,Dfe=kce,Mfe=Dce,Lfe=DU,Ffe=Zce,Nfe=Gce,zfe=Hce,Ufe=b6,qfe=S7,jfe=FR,Vfe=MU,Zfe=tfe,Wfe=XR,Xfe=i6,Yfe=w6,Gfe=w1,Bfe=Xi,Hfe=yU,Kfe=W6,Jfe=Pa,ede=afe,tde=O6,nde=Td,rde=r6,ide={Environment:kfe,Network:hfe,Observable:pfe,QueryResponseCache:gfe,RecordSource:Afe,Record:Tfe,ReplaySubject:tde,Store:Cfe,areEqualSelectors:Ti.areEqualSelectors,createFragmentSpecResolver:bfe,createNormalizationSelector:Ti.createNormalizationSelector,createOperationDescriptor:hD.createOperationDescriptor,createReaderSelector:Ti.createReaderSelector,createRequestDescriptor:hD.createRequestDescriptor,getArgumentValues:sa.getArgumentValues,getDataIDsFromFragment:Ti.getDataIDsFromFragment,getDataIDsFromObject:Ti.getDataIDsFromObject,getNode:co.getNode,getFragment:co.getFragment,getInlineDataFragment:co.getInlineDataFragment,getModuleComponentKey:sa.getModuleComponentKey,getModuleOperationKey:sa.getModuleOperationKey,getPaginationFragment:co.getPaginationFragment,getPluralSelector:Ti.getPluralSelector,getRefetchableFragment:co.getRefetchableFragment,getRequest:co.getRequest,getRequestIdentifier:Vfe,getSelector:Ti.getSelector,getSelectorsFromObject:Ti.getSelectorsFromObject,getSingularSelector:Ti.getSingularSelector,getStorageKey:sa.getStorageKey,getVariablesFromFragment:Ti.getVariablesFromFragment,getVariablesFromObject:Ti.getVariablesFromObject,getVariablesFromPluralFragment:Ti.getVariablesFromPluralFragment,getVariablesFromSingularFragment:Ti.getVariablesFromSingularFragment,handlePotentialSnapshotErrors:Wfe,graphql:co.graphql,isFragment:co.isFragment,isInlineDataFragment:co.isInlineDataFragment,isSuspenseSentinel:$fe,suspenseSentinel:xfe,isRequest:co.isRequest,readInlineData:Rfe,MutationTypes:fD.MutationTypes,RangeOperations:fD.RangeOperations,DefaultHandlerProvider:ufe,ConnectionHandler:ofe,MutationHandlers:sfe,VIEWER_ID:pD.VIEWER_ID,VIEWER_TYPE:pD.VIEWER_TYPE,applyOptimisticMutation:cfe,commitLocalUpdate:ffe,commitMutation:dfe,fetchQuery:vfe,fetchQuery_DEPRECATED:mfe,isRelayModernEnvironment:Pfe,requestSubscription:Dfe,ConnectionInterface:lfe,PreloadableQueryRegistry:Ofe,RelayProfiler:ede,createPayloadFor3DField:Mfe,RelayConcreteNode:Bfe,RelayError:Kfe,RelayFeatureFlags:Jfe,DEFAULT_HANDLE_KEY:Hfe.DEFAULT_HANDLE_KEY,FRAGMENTS_KEY:sa.FRAGMENTS_KEY,FRAGMENT_OWNER_KEY:sa.FRAGMENT_OWNER_KEY,ID_KEY:sa.ID_KEY,REF_KEY:sa.REF_KEY,REFS_KEY:sa.REFS_KEY,ROOT_ID:sa.ROOT_ID,ROOT_TYPE:sa.ROOT_TYPE,TYPENAME_KEY:sa.TYPENAME_KEY,deepFreeze:Lfe,generateClientID:yfe,generateUniqueClientID:_fe,getRelayHandleKey:jfe,isClientID:Sfe,isPromise:Xfe,isScalarAndEqual:Yfe,recycleNodesInto:Gfe,stableCopy:nde,getFragmentIdentifier:Ffe,getRefetchMetadata:qfe,getPaginationMetadata:Nfe,getPaginationVariables:zfe,getPendingOperationsForFragment:Ufe,getValueAtPath:Zfe,__internal:{ResolverFragments:Ife,OperationTracker:Qfe,createRelayContext:wfe,getOperationVariables:dD.getOperationVariables,getLocalVariables:dD.getLocalVariables,fetchQuery:Fm.fetchQuery,fetchQueryDeduped:Fm.fetchQueryDeduped,getPromiseForActiveRequest:Fm.getPromiseForActiveRequest,getObservableForActiveRequest:Fm.getObservableForActiveRequest,normalizeResponse:Efe,withProvidedVariables:rde}},tn=ide,ade=R,ode=tn,lde=ode.__internal.createRelayContext,Zs=lde(ade),$7={exports:{}};(function(e){function t(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})($7);var k1=$7.exports,x7={exports:{}};(function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(n){for(var r=1;r<arguments.length;r++){var i=arguments[r];for(var a in i)({}).hasOwnProperty.call(i,a)&&(n[a]=i[a])}return n},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(x7);var gk=x7.exports,gD=qe;function sde(e,t){t&&typeof t=="object"||gD(!1);for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];r&&(typeof r=="object"||typeof r=="function")||gD(!1)}}var ude=sde;function P7(e){return e.displayName||e.name||"Component"}function cde(e){return"Relay("+P7(e)+")"}var T1={getComponentName:P7,getContainerName:cde},fde=R,vk=fde.createContext({rootIsQueryRenderer:!1}),dde=nt.default,hde=dde(gk),pde=ude,E7=T1,gde=E7.getComponentName,vde=E7.getContainerName,mde=Zs,Ode=vk,yde=qe,rP=R,_de=tn,Sde=_de.getFragment,vD=rP.useContext;function bde(e,t,n){var r=vde(e);pde(gde(e),t);var i={};for(var a in t)i[a]=Sde(t[a]);var o=n(e,i);o.displayName=r;function l(u,c){var f,p=vD(mde);p==null&&yde(!1);var g=vD(Ode);return rP.createElement(o,(0,hde.default)({},u,{__relayContext:p,__rootIsQueryRenderer:(f=g==null?void 0:g.rootIsQueryRenderer)!==null&&f!==void 0?f:!1,componentRef:u.componentRef||c}))}l.displayName=r;var s=rP.forwardRef(l);return s}var mk=bde;function wde(e){return typeof e=="object"&&e!==null&&typeof e.check=="function"&&typeof e.lookup=="function"&&typeof e.retain=="function"&&typeof e.execute=="function"&&typeof e.subscribe=="function"}var $de=wde,xde=$de,Pde=qe;function Ede(e){return R7(e)||Pde(!1),e}function R7(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)&&xde(e.environment)}var Ok={assertRelayContext:Ede,isRelayContext:R7},Zg=nt.default,jb=Zg(un),Rde=Zg(qg),kde=Zg(k1),Tde=Zg(jg),mD=Zg(ei),Cde=["componentRef","__relayContext","__rootIsQueryRenderer"],Qde=mk,Ade=T1,Ide=Ade.getContainerName,Dde=Ok,OD=Dde.assertRelayContext,Mde=Ha,yD=R,yk=tn,_D=yk.createFragmentSpecResolver,SD=yk.getDataIDsFromObject,Lde=yk.isScalarAndEqual;function Fde(e,t){var n,r=Ide(e);return n=function(i){(0,Tde.default)(a,i);function a(l){var s,u;u=i.call(this,l)||this,(0,mD.default)((0,kde.default)(u),"_handleFragmentDataUpdate",function(){var g=u.state.resolver;u.setState(function(v){return g===v.resolver?{data:v.resolver.resolve(),relayProp:Nm(v.relayProp.environment)}:null})});var c=OD(l.__relayContext),f=(s=l.__rootIsQueryRenderer)!==null&&s!==void 0?s:!1,p=_D(c,r,t,l,f);return u.state={data:p.resolve(),prevProps:l,prevPropsContext:c,relayProp:Nm(c.environment),resolver:p},u}a.getDerivedStateFromProps=function(s,u){var c,f=u.prevProps,p=OD(s.__relayContext),g=(c=s.__rootIsQueryRenderer)!==null&&c!==void 0?c:!1,v=SD(t,f),m=SD(t,s),_=u.resolver;if(u.prevPropsContext.environment!==p.environment||!Mde(v,m))return _=_D(p,r,t,s,g),{data:_.resolve(),prevPropsContext:p,prevProps:s,relayProp:Nm(p.environment),resolver:_};_.setProps(s);var O=_.resolve();return O!==u.data?{data:O,prevProps:s,prevPropsContext:p,relayProp:Nm(p.environment)}:null};var o=a.prototype;return o.componentDidMount=function(){this._subscribeToNewResolverAndRerenderIfStoreHasChanged()},o.componentDidUpdate=function(s,u){this.state.resolver!==u.resolver?(u.resolver.dispose(),this._subscribeToNewResolverAndRerenderIfStoreHasChanged()):this._rerenderIfStoreHasChanged()},o.componentWillUnmount=function(){this.state.resolver.dispose()},o.shouldComponentUpdate=function(s,u){if(u.data!==this.state.data)return!0;for(var c=Object.keys(s),f=0;f<c.length;f++){var p=c[f];if(p==="__relayContext"){if(u.prevPropsContext.environment!==this.state.prevPropsContext.environment)return!0}else if(!t.hasOwnProperty(p)&&!Lde(s[p],this.props[p]))return!0}return!1},o._rerenderIfStoreHasChanged=function(){var s=this.state,u=s.data,c=s.resolver,f=c.resolve();u!==f&&this.setState({data:f})},o._subscribeToNewResolverAndRerenderIfStoreHasChanged=function(){var s=this.state,u=s.data,c=s.resolver,f=c.resolve();c.setCallback(this.props,this._handleFragmentDataUpdate),u!==f&&this.setState({data:f})},o.render=function(){var s=this.props,u=s.componentRef;s.__relayContext,s.__rootIsQueryRenderer;var c=(0,Rde.default)(s,Cde);return yD.createElement(e,(0,jb.default)((0,jb.default)((0,jb.default)({},c),this.state.data),{},{ref:u,relay:this.state.relayProp}))},a}(yD.Component),(0,mD.default)(n,"displayName",r),n}function Nm(e){return{environment:e}}function Nde(e,t){return Qde(e,t,Fde)}var zde={createContainer:Nde},Ude=Zs,qde=vk,jde=Ha,ac=R,_k=tn,Vde=_k.createOperationDescriptor;_k.deepFreeze;var Zde=_k.getRequest,Wde=ac.useLayoutEffect,Xde=ac.useState,bD=ac.useRef,Vb=ac.useMemo,Yde={rootIsQueryRenderer:!0};function Gde(e){var t=ac.useRef(e);return jde(t.current,e)||(t.current=e),t.current}function Bde(e){var t=e.environment,n=e.query,r=e.variables,i=e.render,a=Gde(r),o=Vb(function(){var g=Zde(n);return Vde(g,a)},[n,a]),l=Vb(function(){return{environment:t}},[t]),s=bD(null),u=Xde(null),c=u[1],f=bD(null),p=Vb(function(){t.check(o);var g=t.lookup(o.fragment);s.current=g.data;var v=t.retain(o),m=t.subscribe(g,function(S){s.current=S.data,c(s.current)}),_=!1;function O(){_||(_=!0,f.current=null,v.dispose(),m.dispose())}return f.current&&f.current(),f.current=O,g},[t,o]);return Wde(function(){var g=f.current;return function(){g&&g()}},[p]),ac.createElement(Ude.Provider,{value:l},ac.createElement(qde.Provider,{value:Yde},i({props:s.current})))}var Hde=Bde,Kde=nt.default,wD=Kde(un),Jde=tn,ehe=Jde.getSelector;function the(e,t){var n={};return Object.keys(e).forEach(function(r){var i,a,o,l=e[r],s=t[r],u=ehe(l,s),c=u!=null&&u.kind==="PluralReaderSelector"?(i=(a=u.selectors[0])===null||a===void 0?void 0:a.owner.variables)!==null&&i!==void 0?i:{}:(o=u==null?void 0:u.owner.variables)!==null&&o!==void 0?o:{};n=(0,wD.default)((0,wD.default)({},n),c)}),n}var k7=the,nhe=nt.default,$D=nhe(ei),Zb=qe,Sk=tn,rhe=Sk.__internal.fetchQuery,ihe=Sk.createOperationDescriptor,ahe=Sk.isRelayModernEnvironment,ohe=function(){function e(n){(0,$D.default)(this,"_selectionReferences",[]),(0,$D.default)(this,"_didFetchFinish",!1),n!=null&&(this._cacheSelectionReference=n.cacheSelectionReference,this._selectionReferences=n.selectionReferences)}var t=e.prototype;return t.getSelectionReferences=function(){return{cacheSelectionReference:this._cacheSelectionReference,selectionReferences:this._selectionReferences}},t.lookupInStore=function(r,i,a){return(a==="store-and-network"||a==="store-or-network")&&r.check(i).status==="available"?(this._retainCachedOperation(r,i),r.lookup(i.fragment)):null},t.getFetchResult=function(){if(this._didFetchFinish){if(this._error!=null)return{error:this._error};if(this._snapshot!=null)return{snapshot:this._snapshot}}else return null},t.execute=function(r){var i=this,a=r.environment,o=r.operation,l=r.preservePreviousReferences,s=l===void 0?!1:l,u=a.retain(o),c=function(){i._selectionReferences=i._selectionReferences.concat(u)},f=function(){s||i.disposeSelectionReferences(),i._selectionReferences=i._selectionReferences.concat(u)},p=function(){i._selectionReferences=i._selectionReferences.concat(u)};return ahe(a)?rhe(a,o).do({error:c,complete:f,unsubscribe:p}):a.execute({operation:o}).do({error:c,complete:f,unsubscribe:p})},t.setOnDataChange=function(r){this._fetchOptions||Zb(!1),typeof r=="function"&&(this._fetchOptions.onDataChangeCallbacks=this._fetchOptions.onDataChangeCallbacks||[],this._fetchOptions.onDataChangeCallbacks.push(r),this._didFetchFinish&&(this._error!=null?r({error:this._error}):this._snapshot!=null&&r({snapshot:this._snapshot})))},t.fetch=function(r,i){var a=this,o=r.environment,l=r.operation,s=r.onDataChange,u=!1,c;this.disposeRequest();var f=this._fetchOptions&&this._fetchOptions.onDataChangeCallbacks;this._fetchOptions={environment:o,onDataChangeCallbacks:f||[],operation:l},s&&this._fetchOptions.onDataChangeCallbacks.indexOf(s)===-1&&this._fetchOptions.onDataChangeCallbacks.push(s);var p=i?ihe(l.request.node,l.request.variables,i):l,g=this.execute({environment:o,operation:p}).finally(function(){a._pendingRequest=null}).subscribe({next:function(){a._didFetchFinish=!0,a._error=null,a._onQueryDataAvailable({notifyFirstResult:u})},error:function(m){a._didFetchFinish=!0,a._error=m,a._snapshot=null;var _=a._fetchOptions&&a._fetchOptions.onDataChangeCallbacks;u?_&&_.forEach(function(O){O({error:m})}):c=m}});if(this._pendingRequest={dispose:function(){g.unsubscribe()}},u=!0,c)throw c;return this._snapshot},t.retry=function(r){return this._fetchOptions||Zb(!1),this.fetch({environment:this._fetchOptions.environment,operation:this._fetchOptions.operation,onDataChange:null},r)},t.dispose=function(){this.disposeRequest(),this.disposeSelectionReferences()},t.disposeRequest=function(){this._error=null,this._snapshot=null,this._pendingRequest&&this._pendingRequest.dispose(),this._rootSubscription&&(this._rootSubscription.dispose(),this._rootSubscription=null)},t._retainCachedOperation=function(r,i){this._disposeCacheSelectionReference(),this._cacheSelectionReference=r.retain(i)},t._disposeCacheSelectionReference=function(){this._cacheSelectionReference&&this._cacheSelectionReference.dispose(),this._cacheSelectionReference=null},t.disposeSelectionReferences=function(){this._disposeCacheSelectionReference(),this._selectionReferences.forEach(function(r){return r.dispose()}),this._selectionReferences=[]},t._onQueryDataAvailable=function(r){var i=this,a=r.notifyFirstResult;this._fetchOptions||Zb(!1);var o=this._fetchOptions,l=o.environment,s=o.onDataChangeCallbacks,u=o.operation;if(!this._snapshot&&(this._snapshot=l.lookup(u.fragment),this._rootSubscription=l.subscribe(this._snapshot,function(f){if(i._fetchOptions!=null){var p=i._fetchOptions.onDataChangeCallbacks;Array.isArray(p)&&p.forEach(function(g){return g({snapshot:f})})}}),this._snapshot&&a&&Array.isArray(s))){var c=this._snapshot;s.forEach(function(f){return f({snapshot:c})})}},e}(),bk=ohe,Id=nt.default,lhe=Id(gk),Wb=Id(qg),Dh=Id(k1),she=Id(jg),wu=Id(ei),Vr=Id(un),uhe=["componentRef"],che=["componentRef","__relayContext","__rootIsQueryRenderer"],fhe=["componentRef","__relayContext","__rootIsQueryRenderer"],dhe=mk,Xb=k7,T7=T1,hhe=T7.getComponentName,phe=T7.getContainerName,ghe=Zs,vhe=bk,mhe=Ok,Yb=mhe.assertRelayContext,Gb=Ha,$o=qe,Bb=R,Fl=tn,xD=Fl.ConnectionInterface,PD=Fl.Observable,zm=Fl.RelayFeatureFlags,Um=Fl.createFragmentSpecResolver,Ohe=Fl.createOperationDescriptor,ED=Fl.getDataIDsFromObject,yhe=Fl.getRequest,_he=Fl.getVariablesFromObject,She=Fl.isScalarAndEqual,RD="forward";function bhe(e){var t=e.path;return t||$o(!1),function(n){for(var r=n[e.fragmentName],i=0;i<t.length;i++){if(!r||typeof r!="object")return null;r=r[t[i]]}return r}}function whe(e){var t=e.count;return t||$o(!1),function(n,r){return(0,Vr.default)((0,Vr.default)({},n),{},(0,wu.default)({},t,r))}}function $he(e){var t=null,n=!1;for(var r in e){var i=e[r],a=i.metadata&&i.metadata.connection;i.metadata!==void 0&&(n=!0),a&&(a.length!==1&&$o(!1),t&&$o(!1),t=(0,Vr.default)((0,Vr.default)({},a[0]),{},{fragmentName:r}))}return!n||t!==null||$o(!1),t||{}}function kD(e){return typeof e=="function"?{error:e,complete:e,unsubscribe:function(n){typeof e=="function"&&e()}}:e||{}}function xhe(e,t,n){var r;hhe(e);var i=phe(e),a=$he(t),o=n.getConnectionFromProps||bhe(a),l=n.direction||a.direction;l||$o(!1);var s=n.getFragmentVariables||whe(a);return r=function(u){(0,she.default)(c,u);function c(p){var g,v;v=u.call(this,p)||this,(0,wu.default)((0,Dh.default)(v),"_handleFragmentDataUpdate",function(){v.setState({data:v._resolver.resolve()})}),(0,wu.default)((0,Dh.default)(v),"_hasMore",function(){var O=v._getConnectionData();return!!(O&&O.hasMore&&O.cursor)}),(0,wu.default)((0,Dh.default)(v),"_isLoading",function(){return!!v._refetchSubscription}),(0,wu.default)((0,Dh.default)(v),"_refetchConnection",function(O,S,b){if(!v._canFetchPage("refetchConnection"))return{dispose:function(){}};v._refetchVariables=b;var P={count:O,cursor:null,totalCount:O},E=v._fetchPage(P,kD(S),{force:!0});return{dispose:E.unsubscribe}}),(0,wu.default)((0,Dh.default)(v),"_loadMore",function(O,S,b){if(!v._canFetchPage("loadMore"))return{dispose:function(){}};var P=kD(S),E=v._getConnectionData();if(!E)return PD.create(function(A){return A.complete()}).subscribe(P),null;var $=E.edgeCount+O;if(b&&b.force)return v._refetchConnection($,S);var Q=xD.get();Q.END_CURSOR,Q.START_CURSOR;var k=E.cursor,D={count:O,cursor:k,totalCount:$},T=v._fetchPage(D,P,b);return{dispose:T.unsubscribe}});var m=Yb(p.__relayContext),_=(g=p.__rootIsQueryRenderer)!==null&&g!==void 0?g:!1;return v._isARequestInFlight=!1,v._refetchSubscription=null,v._refetchVariables=null,zm.ENABLE_CONTAINERS_SUBSCRIBE_ON_COMMIT===!0?v._resolver=Um(m,i,t,p,_):v._resolver=Um(m,i,t,p,_,v._handleFragmentDataUpdate),v.state={data:v._resolver.resolve(),prevContext:m,contextForChildren:m,relayProp:v._buildRelayProp(m),resolverGeneration:0},v._isUnmounted=!1,v._hasFetched=!1,v}var f=c.prototype;return f.componentDidMount=function(){this._isUnmounted=!1,zm.ENABLE_CONTAINERS_SUBSCRIBE_ON_COMMIT===!0&&this._subscribeToNewResolverAndRerenderIfStoreHasChanged()},f.componentDidUpdate=function(g,v){zm.ENABLE_CONTAINERS_SUBSCRIBE_ON_COMMIT===!0&&(v.resolverGeneration!==this.state.resolverGeneration?this._subscribeToNewResolverAndRerenderIfStoreHasChanged():this._rerenderIfStoreHasChanged())},f.UNSAFE_componentWillReceiveProps=function(g){var v=this,m,_=Yb(g.__relayContext),O=(m=g.__rootIsQueryRenderer)!==null&&m!==void 0?m:!1,S=ED(t,this.props),b=ED(t,g),P=Xb(t,this.props),E=Xb(t,g);_.environment!==this.state.prevContext.environment||!Gb(P,E)||!Gb(S,b)?(this._cleanup(),zm.ENABLE_CONTAINERS_SUBSCRIBE_ON_COMMIT===!0?this._resolver=Um(_,i,t,g,O):this._resolver=Um(_,i,t,g,O,this._handleFragmentDataUpdate),this.setState(function(Q){return{prevContext:_,contextForChildren:_,relayProp:v._buildRelayProp(_),resolverGeneration:Q.resolverGeneration+1}})):this._hasFetched||this._resolver.setProps(g);var $=this._resolver.resolve();$!==this.state.data&&this.setState({data:$})},f.componentWillUnmount=function(){this._isUnmounted=!0,this._cleanup()},f.shouldComponentUpdate=function(g,v){if(v.data!==this.state.data||v.relayProp!==this.state.relayProp||v.resolverGeneration!==this.state.resolverGeneration)return!0;for(var m=Object.keys(g),_=0;_<m.length;_++){var O=m[_];if(O==="__relayContext"){if(v.prevContext.environment!==this.state.prevContext.environment)return!0}else if(!t.hasOwnProperty(O)&&!She(g[O],this.props[O]))return!0}return!1},f._buildRelayProp=function(g){return{hasMore:this._hasMore,isLoading:this._isLoading,loadMore:this._loadMore,refetchConnection:this._refetchConnection,environment:g.environment}},f._rerenderIfStoreHasChanged=function(){var g=this.state.data,v=this._resolver.resolve();g!==v&&this.setState({data:v})},f._subscribeToNewResolverAndRerenderIfStoreHasChanged=function(){var g=this.state.data,v=this._resolver.resolve();this._resolver.setCallback(this.props,this._handleFragmentDataUpdate),g!==v&&this.setState({data:v})},f._getConnectionData=function(){var g=this.props;g.componentRef;var v=(0,Wb.default)(g,uhe),m=(0,Vr.default)((0,Vr.default)({},v),this.state.data),_=o(m);if(_==null)return null;var O=xD.get(),S=O.EDGES,b=O.PAGE_INFO,P=O.HAS_NEXT_PAGE,E=O.HAS_PREV_PAGE,$=O.END_CURSOR,Q=O.START_CURSOR;typeof _!="object"&&$o(!1);var k=_[S],D=_[b];if(k==null||D==null)return null;Array.isArray(k)||$o(!1),typeof D!="object"&&$o(!1);var T=l===RD?D[P]:D[E],A=l===RD?D[$]:D[Q];return typeof T!="boolean"||k.length!==0&&typeof A>"u"?null:{cursor:A,edgeCount:k.length,hasMore:T}},f._getQueryFetcher=function(){return this._queryFetcher||(this._queryFetcher=new vhe),this._queryFetcher},f._canFetchPage=function(g){return!this._isUnmounted},f._fetchPage=function(g,v,m){var _=this,O=Yb(this.props.__relayContext),S=O.environment,b=this.props;b.componentRef,b.__relayContext,b.__rootIsQueryRenderer;var P=(0,Wb.default)(b,che),E=(0,Vr.default)((0,Vr.default)({},P),this.state.data),$,Q=Xb(t,P);$=_he(t,P),$=(0,Vr.default)((0,Vr.default)((0,Vr.default)({},Q),$),this._refetchVariables);var k=n.getVariables(E,{count:g.count,cursor:g.cursor},$);typeof k=="object"&&k!==null||$o(!1),k=(0,Vr.default)((0,Vr.default)({},k),this._refetchVariables),$=(0,Vr.default)((0,Vr.default)({},k),$);var D=m?{force:!!m.force}:void 0;D!=null&&(m==null?void 0:m.metadata)!=null&&(D.metadata=m==null?void 0:m.metadata);var T=yhe(n.query),A=Ohe(T,k,D),M=null;this._refetchSubscription&&this._refetchSubscription.unsubscribe(),this._hasFetched=!0;var L=function(B,V){var U=_._resolver.resolve();_._resolver.setVariables(s($,g.totalCount),A.request.node);var G=_._resolver.resolve();Gb(U,G)?V():_.setState({data:G,contextForChildren:{environment:_.props.__relayContext.environment}},V)},N=function(){_._refetchSubscription===M&&(_._refetchSubscription=null,_._isARequestInFlight=!1)};return this._isARequestInFlight=!0,M=this._getQueryFetcher().execute({environment:S,operation:A,preservePreviousReferences:!0}).mergeMap(function(j){return PD.create(function(B){L(j,function(){B.next(),B.complete()})})}).do({error:N,complete:N,unsubscribe:N}).subscribe(v||{}),this._refetchSubscription=this._isARequestInFlight?M:null,M},f._cleanup=function(){this._resolver.dispose(),this._refetchVariables=null,this._hasFetched=!1,this._refetchSubscription&&(this._refetchSubscription.unsubscribe(),this._refetchSubscription=null,this._isARequestInFlight=!1),this._queryFetcher&&this._queryFetcher.dispose()},f.render=function(){var g=this.props,v=g.componentRef;g.__relayContext,g.__rootIsQueryRenderer;var m=(0,Wb.default)(g,fhe);return Bb.createElement(ghe.Provider,{value:this.state.contextForChildren},Bb.createElement(e,(0,lhe.default)({},m,this.state.data,{ref:v,relay:this.state.relayProp})))},c}(Bb.Component),(0,wu.default)(r,"displayName",i),r}function Phe(e,t,n){return dhe(e,t,function(r,i){return xhe(r,i,n)})}var Ehe={createContainer:Phe},C1=nt.default,C7=C1(un),Rhe=C1(k1),khe=C1(jg),The=C1(ei),Che=Zs,Qy=bk,Qhe=vk,Ahe=Ha,Hb=R,wk=tn,Ihe=wk.createOperationDescriptor;wk.deepFreeze;var $k=wk.getRequest,da={},Dhe={rootIsQueryRenderer:!0},Mhe=function(e){(0,khe.default)(t,e);function t(r){var i;i=e.call(this,r)||this,(0,The.default)((0,Rhe.default)(i),"_handleDataChange",function(c){var f=c.error==null?null:c.error,p=c.snapshot==null?null:c.snapshot;i.setState(function(g){var v=g.requestCacheKey;return v&&delete da[v],p===g.snapshot&&f===g.error?null:{renderProps:VO(f,p,g.queryFetcher,g.retryCallbacks),snapshot:p,requestCacheKey:null}})});var a={handleDataChange:null,handleRetryAfterError:null},o,l;if(r.query){var s=r.query,u=$k(s);l=xk(u.params,r.variables),o=da[l]?da[l].queryFetcher:new Qy}else o=new Qy;return i._maybeHiddenOrFastRefresh=!1,i.state=(0,C7.default)({prevPropsEnvironment:r.environment,prevPropsVariables:r.variables,prevQuery:r.query,queryFetcher:o,retryCallbacks:a},Q7(r,o,a,l)),i}t.getDerivedStateFromProps=function(i,a){return a.prevQuery!==i.query||a.prevPropsEnvironment!==i.environment||!Ahe(a.prevPropsVariables,i.variables)?TD(i,a):null};var n=t.prototype;return n.componentDidMount=function(){var i=this;if(this._maybeHiddenOrFastRefresh===!0){this._maybeHiddenOrFastRefresh=!1,this.setState(function(u){var c=TD(i.props,u),f=c.requestCacheKey,p=c.queryFetcher;return f!=null&&da[f]!=null&&p.setOnDataChange(i._handleDataChange),c});return}var a=this.state,o=a.retryCallbacks,l=a.queryFetcher,s=a.requestCacheKey;s&&delete da[s],o.handleDataChange=this._handleDataChange,o.handleRetryAfterError=function(u){return i.setState(function(c){var f=c.requestCacheKey;return f&&delete da[f],{renderProps:iP(),requestCacheKey:null}})},this.props.query&&l.setOnDataChange(this._handleDataChange)},n.componentDidUpdate=function(i,a){var o=this.state,l=o.queryFetcher,s=o.requestCacheKey;s&&(delete da[s],delete this.state.requestCacheKey),this.props.query&&l!==a.queryFetcher&&l.setOnDataChange(this._handleDataChange)},n.componentWillUnmount=function(){this.state.queryFetcher.dispose(),this._maybeHiddenOrFastRefresh=!0},n.shouldComponentUpdate=function(i,a){return i.render!==this.props.render||a.renderProps!==this.state.renderProps},n.render=function(){var i=this.state,a=i.renderProps,o=i.relayContext;return Hb.createElement(Che.Provider,{value:o},Hb.createElement(Qhe.Provider,{value:Dhe},this.props.render(a)))},t}(Hb.Component);function iP(){return{error:null,props:null,retry:null}}function Lhe(){return{error:null,props:{},retry:null}}function VO(e,t,n,r){return{error:e||null,props:t?t.data:null,retry:function(a){var o=n.retry(a);o&&typeof r.handleDataChange=="function"?r.handleDataChange({snapshot:o}):e&&typeof r.handleRetryAfterError=="function"&&r.handleRetryAfterError(e)}}}function xk(e,t){return JSON.stringify({id:e.cacheID?e.cacheID:e.id,variables:t})}function TD(e,t){var n=e.query,r=t.queryFetcher.getSelectionReferences();t.queryFetcher.disposeRequest();var i;if(n){var a=$k(n),o=xk(a.params,e.variables);i=da[o]?da[o].queryFetcher:new Qy(r)}else i=new Qy(r);return(0,C7.default)({prevQuery:e.query,prevPropsEnvironment:e.environment,prevPropsVariables:e.variables,queryFetcher:i},Q7(e,i,t.retryCallbacks))}function Q7(e,t,n,r){var i=e.environment,a=e.query,o=e.variables,l=e.cacheConfig,s=i;if(a){var u=$k(a),c=Ihe(u,o,l),f={environment:s};if(typeof r=="string"&&da[r]){var p=da[r].snapshot;return p?{error:null,relayContext:f,renderProps:VO(null,p,t,n),snapshot:p,requestCacheKey:r}:{error:null,relayContext:f,renderProps:iP(),snapshot:null,requestCacheKey:r}}try{var g=t.lookupInStore(s,c,e.fetchPolicy),v=t.fetch({environment:s,onDataChange:null,operation:c}),m=v||g;return r=r||xk(u.params,e.variables),da[r]={queryFetcher:t,snapshot:m},m?{error:null,relayContext:f,renderProps:VO(null,m,t,n),snapshot:m,requestCacheKey:r}:{error:null,relayContext:f,renderProps:iP(),snapshot:null,requestCacheKey:r}}catch(O){return{error:O,relayContext:f,renderProps:VO(O,null,t,n),snapshot:null,requestCacheKey:r}}}else{t.dispose();var _={environment:s};return{error:null,relayContext:_,renderProps:Lhe(),requestCacheKey:null}}}var Fhe=Mhe,Dd=nt.default,Nhe=Dd(gk),zhe=Dd(qg),tf=Dd(un),CD=Dd(k1),Uhe=Dd(jg),Kb=Dd(ei),qhe=["componentRef","__relayContext","__rootIsQueryRenderer"],jhe=mk,Jb=k7,Vhe=T1,Zhe=Vhe.getContainerName,Whe=Zs,Xhe=bk,Yhe=Ok,ew=Yhe.assertRelayContext,QD=Ha,tw=R,xc=tn,Ghe=xc.Observable,AD=xc.createFragmentSpecResolver,Bhe=xc.createOperationDescriptor,ID=xc.getDataIDsFromObject,Hhe=xc.getRequest,Khe=xc.getVariablesFromObject,Jhe=xc.isScalarAndEqual;function epe(e,t,n){var r,i=Zhe(e);return r=function(a){(0,Uhe.default)(o,a);function o(s){var u,c;c=a.call(this,s)||this,(0,Kb.default)((0,CD.default)(c),"_handleFragmentDataUpdate",function(){var v=c.state.resolver;c.setState(function(m){return v===m.resolver?{data:m.resolver.resolve()}:null})}),(0,Kb.default)((0,CD.default)(c),"_refetch",function(v,m,_,O){if(c._isUnmounted)return{dispose:function(){}};var S=ew(c.props.__relayContext),b=S.environment,P=Jb(t,c.props),E=typeof v=="function"?v(c._getFragmentVariables()):v;E=(0,tf.default)((0,tf.default)({},P),E);var $=m?(0,tf.default)((0,tf.default)({},E),m):E,Q=O?{force:!!O.force}:void 0;Q!=null&&(O==null?void 0:O.metadata)!=null&&(Q.metadata=O==null?void 0:O.metadata);var k=typeof _=="function"?{next:_,error:_}:_||{},D=Hhe(n),T=Bhe(D,E,Q);c.state.localVariables=E,c._refetchSubscription&&c._refetchSubscription.unsubscribe();var A,M=c._getQueryFetcher().lookupInStore(b,T,O==null?void 0:O.fetchPolicy);return M!=null?(c.state.resolver.setVariables($,T.request.node),c.setState(function(L){return{data:L.resolver.resolve(),contextForChildren:{environment:c.props.__relayContext.environment}}},function(){k.next&&k.next(),k.complete&&k.complete()}),{dispose:function(){}}):(c._getQueryFetcher().execute({environment:b,operation:T,preservePreviousReferences:!0}).mergeMap(function(L){return c.state.resolver.setVariables($,T.request.node),Ghe.create(function(N){return c.setState(function(j){return{data:j.resolver.resolve(),contextForChildren:{environment:c.props.__relayContext.environment}}},function(){N.next(),N.complete()})})}).finally(function(){c._refetchSubscription===A&&(c._refetchSubscription=null)}).subscribe((0,tf.default)((0,tf.default)({},k),{},{start:function(N){c._refetchSubscription=A=N,k.start&&k.start(N)}})),{dispose:function(){A&&A.unsubscribe()}})});var f=ew(s.__relayContext),p=(u=s.__rootIsQueryRenderer)!==null&&u!==void 0?u:!1;c._refetchSubscription=null;var g=AD(f,i,t,s,p);return c.state={data:g.resolve(),localVariables:null,prevProps:s,prevPropsContext:f,contextForChildren:f,relayProp:DD(f.environment,c._refetch),resolver:g},c._isUnmounted=!1,c}var l=o.prototype;return l.componentDidMount=function(){this._isUnmounted=!1,this._subscribeToNewResolverAndRerenderIfStoreHasChanged()},l.componentDidUpdate=function(u,c){this.state.resolver!==c.resolver?(c.resolver.dispose(),this._queryFetcher&&this._queryFetcher.dispose(),this._refetchSubscription&&this._refetchSubscription.unsubscribe(),this._subscribeToNewResolverAndRerenderIfStoreHasChanged()):this._rerenderIfStoreHasChanged()},o.getDerivedStateFromProps=function(u,c){var f,p=c.prevProps,g=ew(u.__relayContext),v=(f=u.__rootIsQueryRenderer)!==null&&f!==void 0?f:!1,m=ID(t,p),_=ID(t,u),O=Jb(t,p),S=Jb(t,u),b=c.resolver;if(c.prevPropsContext.environment!==g.environment||!QD(O,S)||!QD(m,_))return b=AD(g,i,t,u,v),{data:b.resolve(),localVariables:null,prevProps:u,prevPropsContext:g,contextForChildren:g,relayProp:DD(g.environment,c.relayProp.refetch),resolver:b};c.localVariables||b.setProps(u);var P=b.resolve();return P!==c.data?{data:P,prevProps:u}:null},l.componentWillUnmount=function(){this._isUnmounted=!0,this.state.resolver.dispose(),this._queryFetcher&&this._queryFetcher.dispose(),this._refetchSubscription&&this._refetchSubscription.unsubscribe()},l.shouldComponentUpdate=function(u,c){if(c.data!==this.state.data||c.relayProp!==this.state.relayProp)return!0;for(var f=Object.keys(u),p=0;p<f.length;p++){var g=f[p];if(g==="__relayContext"){if(this.state.prevPropsContext.environment!==c.prevPropsContext.environment)return!0}else if(!t.hasOwnProperty(g)&&!Jhe(u[g],this.props[g]))return!0}return!1},l._rerenderIfStoreHasChanged=function(){var u=this.state,c=u.data,f=u.resolver,p=f.resolve();c!==p&&this.setState({data:p})},l._subscribeToNewResolverAndRerenderIfStoreHasChanged=function(){var u=this.state,c=u.data,f=u.resolver,p=f.resolve();f.setCallback(this.props,this._handleFragmentDataUpdate),c!==p&&this.setState({data:p})},l._getFragmentVariables=function(){return Khe(t,this.props)},l._getQueryFetcher=function(){return this._queryFetcher||(this._queryFetcher=new Xhe),this._queryFetcher},l.render=function(){var u=this.props,c=u.componentRef;u.__relayContext,u.__rootIsQueryRenderer;var f=(0,zhe.default)(u,qhe),p=this.state,g=p.relayProp,v=p.contextForChildren;return tw.createElement(Whe.Provider,{value:v},tw.createElement(e,(0,Nhe.default)({},f,this.state.data,{ref:c,relay:g})))},o}(tw.Component),(0,Kb.default)(r,"displayName",i),r}function DD(e,t){return{environment:e,refetch:t}}function tpe(e,t,n){return jhe(e,t,function(r,i){return epe(r,i,n)})}var npe={createContainer:tpe},rpe=R,ipe=rpe.createContext({wrapPrepareQueryResource:function(t){return t()}}),Q1=ipe,ape=Zs,ope=qe,lpe=R,spe=lpe.useContext;function upe(){var e=spe(ape);return e==null&&ope(!1),e.environment}var Yi=upe,cpe=Q1,fpe=Yi,dpe=R,A7=R,hpe=A7.useContext,ppe=A7.useEffect;function gpe(e){var t=e.entryPointReference,n=e.props,r=t.getComponent,i=t.queries,a=t.entryPoints,o=t.extraProps,l=t.rootModuleID,s=r(),u=hpe(cpe),c=fpe();return ppe(function(){c.__log({name:"entrypoint.root.consume",profilerContext:u,rootModuleID:l})},[c,u,l]),dpe.createElement(s,{entryPoints:a,extraProps:o,props:n,queries:i})}var vpe=gpe,mpe=nt.default,MD=mpe(un),Ope=qe,I7=R,Ws=tn,LD=Ws.__internal.fetchQueryDeduped,FD=Ws.Observable,ND=Ws.PreloadableQueryRegistry,zD=Ws.RelayFeatureFlags,UD=Ws.ReplaySubject,qD=Ws.createOperationDescriptor,ype=Ws.getRequest,_pe=Ws.getRequestIdentifier,jD=null,VD=100001;function Spe(){if(jD===null){var e,t;jD=(e=I7.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||e===void 0||(t=e.ReactCurrentDispatcher)===null||t===void 0?void 0:t.current}}function bpe(e,t,n,r,i){var a,o,l;(a=I7.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||a===void 0||(o=a.ReactCurrentDispatcher)===null||o===void 0||o.current,VD++;var s=(l=r==null?void 0:r.fetchPolicy)!==null&&l!==void 0?l:"store-or-network",u=(0,MD.default)((0,MD.default)({},r==null?void 0:r.networkCacheConfig),{},{force:!0}),c,f=!1,p=function(Z,F){return f=!0,e.executeWithSource({operation:Z,source:F})},g=new UD,v=FD.create(function(X){return g.subscribe(X)}),m,_=null,O=!1,S=function(Z){O=!0;var F,ue=new UD;if(zD.ENABLE_LOAD_QUERY_REQUEST_DEDUPING===!0){var ge="raw-network-request-"+_pe(Z,n);F=LD(e,ge,function(){var ce=e.getNetwork();return ce.execute(Z,n,u)})}else{var de=e.getNetwork();F=de.execute(Z,n,u)}var Qe=F.subscribe({error:function(ve){_=ve,ue.error(ve)},next:function(ve){ue.next(ve)},complete:function(){ue.complete()}}),Ae=Qe.unsubscribe;return m=Ae,FD.create(function(ce){var ve=ue.subscribe(ce);return function(){ve.unsubscribe(),m()}})},b,P=function(Z,F){zD.ENABLE_LOAD_QUERY_REQUEST_DEDUPING===!0&&(O=!0);var ue=LD(e,Z.request.identifier,F).subscribe({error:function(de){g.error(de)},next:function(de){g.next(de)},complete:function(){g.complete()}});b=ue.unsubscribe},E=function(Z){var F=qD(Z,n,u);if(c=e.retain(F),s!=="store-only"){var ue=s!=="store-or-network"||e.check(F).status!=="available";ue&&P(F,function(){var ge=S(Z.params),de=p(F,ge);return de})}},$,Q,k;if(t.kind==="PreloadableConcreteRequest"){var D=t;$=D.params;var T=$;k=T.id,k===null&&Ope(!1);var A=ND.get(k);if(A!=null)E(A);else{var M=s==="store-only"?null:S($),L=ND.onLoad(k,function(X){Q();var Z=qD(X,n,u);c=e.retain(Z),M!=null&&P(Z,function(){return p(Z,M)})});Q=L.dispose}}else{var N=t,j=ype(N);$=j.params,k=$.cacheID!=null?$.cacheID:$.id,E(j)}var B=!1,V=!1,U=!1,G=function(){V||(c&&c.dispose(),V=!0)},I=function(){U||(f?b&&b():m&&m(),Q&&Q(),U=!0)};return{kind:"PreloadedQuery",environment:e,environmentProviderOptions:i,dispose:function(){B||(G(),I(),B=!0)},releaseQuery:G,cancelNetworkRequest:I,fetchKey:VD,id:k,get isDisposed(){return B||V},get networkError(){return _},name:$.name,networkCacheConfig:u,fetchPolicy:s,source:O?v:void 0,variables:n}}var Pc={loadQuery:bpe,useTrackLoadQueryInRender:Spe},wpe=Pc,$pe=wpe.loadQuery;function D7(e,t,n){var r=null;t.root.getModuleIfRequired()==null&&(r=t.root.load());var i=t.getPreloadProps(n),a=i.queries,o=i.entryPoints,l=i.extraProps,s={},u={};if(a!=null){var c=Object.keys(a);c.forEach(function(g){var v=a[g],m=v.environmentProviderOptions,_=v.options,O=v.parameters,S=v.variables,b=e.getEnvironment(m);s[g]=$pe(b,O,S,{fetchPolicy:_==null?void 0:_.fetchPolicy,networkCacheConfig:_==null?void 0:_.networkCacheConfig,__nameForWarning:"loadEntryPoint"},m)})}if(o!=null){var f=Object.keys(o);f.forEach(function(g){var v=o[g];if(v!=null){var m=v.entryPoint,_=v.entryPointParams;u[g]=D7(e,m,_)}})}var p=!1;return{dispose:function(){p||(s!=null&&Object.values(s).forEach(function(v){var m=v.dispose;m()}),u!=null&&Object.values(u).forEach(function(v){var m=v.dispose;m()}),p=!0)},entryPoints:u,extraProps:l??null,getComponent:function(){var v=t.root.getModuleIfRequired();if(v==null){var m;throw r=(m=r)!==null&&m!==void 0?m:t.root.load(),r}var _=v.default!=null?v.default:v;return _},get isDisposed(){return p},queries:s,rootModuleID:t.root.getModuleId()}}var M7=D7,xpe=Zs,L7=R,Ppe=L7.useMemo;function Epe(e){var t=e.children,n=e.environment,r=e.getEnvironmentForActor,i=Ppe(function(){return{environment:n,getEnvironmentForActor:r}},[n,r]);return L7.createElement(xpe.Provider,{value:i},t)}var Rpe=Epe,F7=null;function kpe(e){F7=e}function Tpe(){return F7}var A1={inject:kpe,get:Tpe},Cpe=R,Qpe=Cpe.useMemo;function Ape(e){return Qpe(function(){return{current:e}},[])}var N7=Ape,Ipe=qe,Dpe=function(){function e(n){this._capacity=n,this._capacity>0||Ipe(!1),this._map=new Map}var t=e.prototype;return t.set=function(r,i){if(this._map.delete(r),this._map.set(r,i),this._map.size>this._capacity){var a=this._map.keys().next();a.done||this._map.delete(a.value)}},t.get=function(r){var i=this._map.get(r);return i!=null&&(this._map.delete(r),this._map.set(r,i)),i},t.has=function(r){return this._map.has(r)},t.delete=function(r){this._map.delete(r)},t.size=function(){return this._map.size},t.capacity=function(){return this._capacity-this._map.size},t.clear=function(){this._map.clear()},e}();function Mpe(e){return new Dpe(e)}var z7={create:Mpe},Lpe=nt.default,nw=Lpe(ei),Fpe=5*60*1e3,Npe=function(){function e(n){var r=this;(0,nw.default)(this,"_retainCount",0),(0,nw.default)(this,"_retainDisposable",null),(0,nw.default)(this,"_releaseTemporaryRetain",null),this._retain=function(i){return r._retainCount++,r._retainCount===1&&(r._retainDisposable=n(i)),{dispose:function(){r._retainCount=Math.max(0,r._retainCount-1),r._retainCount===0&&r._retainDisposable!=null&&(r._retainDisposable.dispose(),r._retainDisposable=null)}}}}var t=e.prototype;return t.temporaryRetain=function(r){var i=this,a;if(r.isServer())return{dispose:function(){}};var o=this._retain(r),l=null,s=function(){clearTimeout(l),l=null,i._releaseTemporaryRetain=null,o.dispose()};return l=setTimeout(s,Fpe),(a=this._releaseTemporaryRetain)===null||a===void 0||a.call(this),this._releaseTemporaryRetain=s,{dispose:function(){var c;(c=i._releaseTemporaryRetain)===null||c===void 0||c.call(i)}}},t.permanentRetain=function(r){var i=this._retain(r);return this.releaseTemporaryRetain(),i},t.releaseTemporaryRetain=function(){var r;(r=this._releaseTemporaryRetain)===null||r===void 0||r.call(this),this._releaseTemporaryRetain=null},t.getRetainCount=function(){return this._retainCount},e}(),U7=Npe,q7=nt.default,qm=q7(un),j7=q7(ei),zpe=z7,Upe=U7,qpe=qe,jpe=tn,Vpe=jpe.isPromise,Zpe=1e3,V7="store-or-network",Z7="store-and-network",Wpe=typeof WeakMap=="function";function Ay(e){return e.request.node.params.metadata.live!==void 0}function aP(e,t,n,r,i){var a=n??(Ay(t)?Z7:V7),o=r??e.UNSTABLE_getDefaultRenderPolicy(),l="".concat(a,"-").concat(o,"-").concat(t.request.identifier);return i!=null?"".concat(l,"-").concat(i):l}function ZD(e,t){var n={__id:e.fragment.dataID,__fragments:(0,j7.default)({},e.fragment.node.name,e.request.variables),__fragmentOwner:e.request};return{cacheIdentifier:t,fragmentNode:e.request.node.fragment,fragmentRef:n,operation:e}}var Xpe=2e5;function rw(e,t,n,r,i,a){var o=Ay(t),l=r,s=i,u=new Upe(function(f){var p=f.retain(t);return{dispose:function(){o&&s!=null&&s.unsubscribe(),p.dispose(),a(c)}}}),c={cacheIdentifier:e,id:Xpe++,processedPayloadsCount:0,operationAvailability:n,getValue:function(){return l},setValue:function(p){l=p},setNetworkSubscription:function(p){o&&s!=null&&s.unsubscribe(),s=p},temporaryRetain:function(p){return u.temporaryRetain(p)},permanentRetain:function(p){return u.permanentRetain(p)},releaseTemporaryRetain:function(){u.releaseTemporaryRetain()}};return c}var Ype=function(){function e(n){var r=this;(0,j7.default)(this,"_clearCacheEntry",function(i){r._cache.delete(i.cacheIdentifier)}),this._environment=n,this._cache=zpe.create(Zpe)}var t=e.prototype;return t.prepare=function(r,i,a,o,l,s,u){var c=aP(this._environment,r,a,o,s);return this.prepareWithIdentifier(c,r,i,a,o,l,u)},t.prepareWithIdentifier=function(r,i,a,o,l,s,u){var c=this._environment,f=o??(Ay(i)?Z7:V7),p=l??c.UNSTABLE_getDefaultRenderPolicy(),g=this._cache.get(r),v=null,m=g!=null;g==null&&(g=this._fetchAndSaveQuery(r,i,a,f,p,u,(0,qm.default)((0,qm.default)({},s),{},{unsubscribe:function(S){v!=null&&v.dispose();var b=s==null?void 0:s.unsubscribe;b&&b(S)}}))),v=g.temporaryRetain(c);var _=g.getValue();if(Vpe(_))throw c.__log({name:"suspense.query",fetchPolicy:f,isPromiseCached:m,operation:i,queryAvailability:g.operationAvailability,renderPolicy:p}),_;if(_ instanceof Error)throw _;return _},t.retain=function(r,i){var a=this._environment,o=r.cacheIdentifier,l=r.operation,s=this._getOrCreateCacheEntry(o,l,null,r,null),u=s.permanentRetain(a);return a.__log({name:"queryresource.retain",profilerContext:i,resourceID:s.id}),{dispose:function(){u.dispose()}}},t.releaseTemporaryRetain=function(r){var i=this._cache.get(r.cacheIdentifier);i!=null&&i.releaseTemporaryRetain()},t.TESTS_ONLY__getCacheEntry=function(r,i,a,o){var l=this._environment,s=aP(l,r,i,a,o);return this._cache.get(s)},t._getOrCreateCacheEntry=function(r,i,a,o,l){var s=this._cache.get(r);return s==null&&(s=rw(r,i,a,o,l,this._clearCacheEntry),this._cache.set(r,s)),s},t._fetchAndSaveQuery=function(r,i,a,o,l,s,u){var c=this,f=this._environment,p=f.check(i),g=p.status,v=g==="available",m=v||l==="partial"&&g!=="stale",_,O,S=function(){};switch(o){case"store-only":{_=!1,O=!0;break}case"store-or-network":{_=!v,O=m;break}case"store-and-network":{_=!0,O=m;break}case"network-only":default:{_=!0,O=!1;break}}if(O){var b=ZD(i,r),P=rw(r,i,p,b,null,this._clearCacheEntry);this._cache.set(r,P)}if(_){var E=ZD(i,r),$;a.subscribe({start:function(M){$=M;var L=c._cache.get(r);L&&L.setNetworkSubscription($);var N=u==null?void 0:u.start;if(N){var j=(0,qm.default)((0,qm.default)({},M),{},{unsubscribe:function(){Ay(i)&&M.unsubscribe()}});N(j)}},next:function(){var M=c._getOrCreateCacheEntry(r,i,p,E,$);M.processedPayloadsCount+=1,M.setValue(E),S();var L=u==null?void 0:u.next;if(L!=null){var N=f.lookup(i.fragment);L(N)}},error:function(M){var L=c._getOrCreateCacheEntry(r,i,p,M,$);L.processedPayloadsCount===0&&L.setValue(M),S(),$=null,L.setNetworkSubscription(null);var N=u==null?void 0:u.error;N&&N(M)},complete:function(){S(),$=null;var M=c._cache.get(r);M&&M.setNetworkSubscription(null);var L=u==null?void 0:u.complete;L&&L()},unsubscribe:u==null?void 0:u.unsubscribe});var Q=this._cache.get(r);if(!Q){var k=new Promise(function(A){S=A});k.displayName="Relay("+i.fragment.node.name+")",Q=rw(r,i,p,k,$,this._clearCacheEntry),this._cache.set(r,Q)}}else{var D=u==null?void 0:u.complete;D&&D()}var T=this._cache.get(r);return T==null&&qpe(!1),f.__log({name:"queryresource.fetch",resourceID:T.id,operation:i,profilerContext:s,fetchPolicy:o,renderPolicy:l,queryAvailability:p,shouldFetch:_}),T},e}();function W7(e){return new Ype(e)}var WD=Wpe?new WeakMap:new Map;function Gpe(e){var t=WD.get(e);if(t)return t;var n=W7(e);return WD.set(e,n),n}var Pk={createQueryResource:W7,getQueryResourceForEnvironment:Gpe,getQueryCacheIdentifier:aP},Ek=nt.default,jm=Ek(un),XD=Ek(ei),Vm=Ek(yc),Bpe=z7,Hpe=Pk,YD=Hpe.getQueryResourceForEnvironment,Kpe=U7,hf=qe,jo=tn,X7=jo.__internal,Jpe=X7.fetchQuery,ege=X7.getPromiseForActiveRequest,fo=jo.RelayFeatureFlags,tge=jo.createOperationDescriptor,nge=jo.getFragmentIdentifier,rge=jo.getPendingOperationsForFragment,ige=jo.getSelector,age=jo.getVariablesFromFragment,GD=jo.handlePotentialSnapshotErrors,iw=jo.isPromise,BD=jo.recycleNodesInto,oge=typeof WeakMap=="function",lge=1e6,HD=Object.freeze([]);function KD(e){return Array.isArray(e)?e.some(function(t){return t.isMissingData}):e.isMissingData}function sge(e){var t,n;return Array.isArray(e)?e.some(function(r){var i,a;return((i=(a=r.missingClientEdges)===null||a===void 0?void 0:a.length)!==null&&i!==void 0?i:0)>0}):((t=(n=e.missingClientEdges)===null||n===void 0?void 0:n.length)!==null&&t!==void 0?t:0)>0}function JD(e){return Array.isArray(e)?e.map(function(t){return t.missingLiveResolverFields}).filter(Boolean).flat():e.missingLiveResolverFields}function uge(e,t){Array.isArray(e)?e.forEach(t):t(e)}function gu(e,t,n){return Array.isArray(t)?{cacheKey:e,snapshot:t,data:t.map(function(r){return r.data}),isMissingData:KD(t),storeEpoch:n}:{cacheKey:e,snapshot:t,data:t.data,isMissingData:KD(t),storeEpoch:n}}var cge=function(){function e(n){(0,XD.default)(this,"_cache",new Map),(0,XD.default)(this,"_retainCounts",new Map),this._environment=n}var t=e.prototype;return t.get=function(r){var i,a;return(i=(a=this._cache.get(r))===null||a===void 0?void 0:a[0])!==null&&i!==void 0?i:void 0},t.recordQueryResults=function(r,i){var a=this,o=this._cache.get(r);if(o){var s=o[0],u=o[1];i.forEach(function(c){s.push(c)}),u.temporaryRetain(this._environment)}else{var l=new Kpe(function(){return a._retain(r)});this._cache.set(r,[i,l]),l.temporaryRetain(this._environment)}},t._retain=function(r){var i=this,a,o=((a=this._retainCounts.get(r))!==null&&a!==void 0?a:0)+1;return this._retainCounts.set(r,o),{dispose:function(){var s,u=((s=i._retainCounts.get(r))!==null&&s!==void 0?s:0)-1;u>0?i._retainCounts.set(r,u):(i._retainCounts.delete(r),i._cache.delete(r))}}},e}(),fge=function(){function e(n){this._environment=n,this._cache=Bpe.create(lge),fo.ENABLE_CLIENT_EDGES&&(this._clientEdgeQueryResultsCache=new cge(n))}var t=e.prototype;return t.read=function(r,i,a,o){return this.readWithIdentifier(r,i,nge(r,i),a,o)},t.readWithIdentifier=function(r,i,a,o,l){var s=this,u,c,f,p,g=this._environment;if(i==null)return{cacheKey:a,data:null,isMissingData:!1,snapshot:null,storeEpoch:0};var v=g.getStore().getEpoch();if((r==null||(u=r.metadata)===null||u===void 0?void 0:u.plural)===!0&&(Array.isArray(i)||hf(!1),i.length===0))return{cacheKey:a,data:HD,isMissingData:!1,snapshot:HD,storeEpoch:v};var m=this._cache.get(a);if(m!=null){var _;if(m.kind==="pending"&&iw(m.promise))throw g.__log({name:"suspense.fragment",data:m.result.data,fragment:r,isRelayHooks:!0,isMissingData:m.result.isMissingData,isPromiseCached:!0,pendingOperations:m.pendingOperations}),m.promise;if(m.kind==="done"&&m.result.snapshot&&!((_=JD(m.result.snapshot))!==null&&_!==void 0&&_.length))return this._throwOrLogErrorsInSnapshot(m.result.snapshot),m.result.isMissingData&&g.__log({name:"fragmentresource.missing_data",data:m.result.data,fragment:r,isRelayHooks:!0,cached:!0}),m.result}var O=ige(r,i);O==null&&hf(!1);var S=null,b=null;if(fo.ENABLE_RELAY_OPERATION_TRACKER_SUSPENSE&&m!=null&&m.kind==="missing"?(S=m.result,b=m.snapshot):(b=O.kind==="PluralReaderSelector"?O.selectors.map(function(j){return g.lookup(j)}):g.lookup(O),S=gu(a,b,v)),!S.isMissingData)return this._throwOrLogErrorsInSnapshot(b),this._cache.set(a,{kind:"done",result:S}),S;var P=null;if(fo.ENABLE_CLIENT_EDGES&&((c=r.metadata)===null||c===void 0?void 0:c.hasClientEdges)===!0&&sge(b)){P=[];var E=YD(this._environment),$=[];uge(b,function(j){var B;(B=j.missingClientEdges)===null||B===void 0||B.forEach(function(V){var U,G=V.request,I=V.clientEdgeDestinationID,X=s._performClientEdgeQuery(E,r,i,G,I),Z=X.queryResult,F=X.requestDescriptor;$.push(Z),(U=P)===null||U===void 0||U.push(F)})}),this._clientEdgeQueryResultsCache==null&&hf(!1),this._clientEdgeQueryResultsCache.recordQueryResults(a,$)}var Q=[];fo.ENABLE_CLIENT_EDGES&&P&&(Q=P.map(function(j){return ege(s._environment,j)}).filter(Boolean));var k=O.kind==="PluralReaderSelector"?O.selectors[0].owner:O.owner,D=this._getAndSavePromiseForFragmentRequestInFlight(a,r,k,S),T=D==null?void 0:D.promise,A=(f=(p=JD(b))===null||p===void 0?void 0:p.map(function(j){var B=j.liveStateID,V=g.getStore();return V.getLiveResolverPromise(B)}))!==null&&f!==void 0?f:[];if(Q.length||A.length||iw(T)){var M,L;g.__log({name:"suspense.fragment",data:S.data,fragment:r,isRelayHooks:!0,isPromiseCached:!1,isMissingData:S.isMissingData,pendingOperations:[].concat((0,Vm.default)((M=D==null?void 0:D.pendingOperations)!==null&&M!==void 0?M:[]),(0,Vm.default)((L=P)!==null&&L!==void 0?L:[]))});var N=[];if(Q.length>0&&(N=N.concat(Q)),A.length>0&&(N=N.concat(A)),N.length>0)throw T&&N.push(T),Promise.all(N);if(T)throw T}return fo.ENABLE_RELAY_OPERATION_TRACKER_SUSPENSE&&S.isMissingData&&this._cache.set(a,{kind:"done",result:S}),this._throwOrLogErrorsInSnapshot(b),g.__log({name:"fragmentresource.missing_data",data:S.data,fragment:r,isRelayHooks:!0,cached:!1}),gu(a,b,v)},t._performClientEdgeQuery=function(r,i,a,o,l){var s=age(i,a),u=(0,jm.default)((0,jm.default)({},s),{},{id:l}),c=tge(o,u,{}),f=Jpe(this._environment,c),p=r.prepare(c,f);return{requestDescriptor:c.request,queryResult:p}},t._throwOrLogErrorsInSnapshot=function(r){var i=this;Array.isArray(r)?r.forEach(function(a){GD(i._environment,a.missingRequiredFields,a.relayResolverErrors,a.errorResponseFields)}):GD(this._environment,r.missingRequiredFields,r.relayResolverErrors,r.errorResponseFields)},t.readSpec=function(r,i,a){var o={};for(var l in r)o[l]=this.read(r[l],i[l],a,l);return o},t.subscribe=function(r,i){var a=this,o=this._environment,l=r.cacheKey,s=r.snapshot;if(!s)return{dispose:function(){}};var u=this.checkMissedUpdates(r),c=u[0],f=u[1];c&&i();var p=[];if(Array.isArray(s)?(Array.isArray(f)||hf(!1),f.forEach(function(O,S){p.push(o.subscribe(O,function(b){var P=o.getStore().getEpoch();a._updatePluralSnapshot(l,f,b,S,P),i()}))})):(f!=null&&!Array.isArray(f)||hf(!1),p.push(o.subscribe(f,function(O){var S=o.getStore().getEpoch(),b=gu(l,O,S);fo.ENABLE_RELAY_OPERATION_TRACKER_SUSPENSE&&b.isMissingData?a._cache.set(l,{kind:"missing",result:b,snapshot:O}):a._cache.set(l,{kind:"done",result:gu(l,O,S)}),i()}))),fo.ENABLE_CLIENT_EDGES){var g,v,m=(g=(v=this._clientEdgeQueryResultsCache)===null||v===void 0?void 0:v.get(l))!==null&&g!==void 0?g:void 0;if(m!=null&&m.length){var _=YD(this._environment);m.forEach(function(O){p.push(_.retain(O))})}}return{dispose:function(){p.forEach(function(S){return S.dispose()}),a._cache.delete(l)}}},t.subscribeSpec=function(r,i){var a=this,o=Object.keys(r).map(function(l){return a.subscribe(r[l],i)});return{dispose:function(){o.forEach(function(s){s.dispose()})}}},t.checkMissedUpdates=function(r){var i=this._environment,a=r.snapshot;if(!a)return[!1,null];var o=null;if(o=i.getStore().getEpoch(),r.storeEpoch===o)return[!1,r.snapshot];var l=r.cacheKey;if(Array.isArray(a)){var s=!1,u=[];if(a.forEach(function(O,S){var b=i.lookup(O.selector),P=O.data,E=b.data,$=BD(P,E);$!==P&&(b=(0,jm.default)((0,jm.default)({},b),{},{data:$}),s=!0),u[S]=b}),s){var c=gu(l,u,o);fo.ENABLE_RELAY_OPERATION_TRACKER_SUSPENSE&&c.isMissingData?this._cache.set(l,{kind:"missing",result:c,snapshot:u}):this._cache.set(l,{kind:"done",result:c})}return[s,u]}var f=i.lookup(a.selector),p=a.data,g=f.data,v=BD(p,g),m={data:v,isMissingData:f.isMissingData,missingClientEdges:f.missingClientEdges,missingLiveResolverFields:f.missingLiveResolverFields,seenRecords:f.seenRecords,selector:f.selector,missingRequiredFields:f.missingRequiredFields,relayResolverErrors:f.relayResolverErrors,errorResponseFields:f.errorResponseFields};if(v!==p){var _=gu(l,m,o);fo.ENABLE_RELAY_OPERATION_TRACKER_SUSPENSE&&_.isMissingData?this._cache.set(l,{kind:"missing",result:_,snapshot:m}):this._cache.set(l,{kind:"done",result:_})}return[v!==p,m]},t.checkMissedUpdatesSpec=function(r){var i=this;return Object.keys(r).some(function(a){return i.checkMissedUpdates(r[a])[0]})},t._getAndSavePromiseForFragmentRequestInFlight=function(r,i,a,o){var l=this,s=rge(this._environment,i,a);if(s==null)return null;var u=s.promise,c=s.pendingOperations,f=u.then(function(){l._cache.delete(r)}).catch(function(p){l._cache.delete(r)});return f.displayName=u.displayName,this._cache.set(r,{kind:"pending",pendingOperations:c,promise:f,result:o}),{promise:f,pendingOperations:c}},t._updatePluralSnapshot=function(r,i,a,o,l){var s,u=this._cache.get(r);if(iw(u)){eM(a.selector.node.name);return}var c=u==null||(s=u.result)===null||s===void 0?void 0:s.snapshot;if(c&&!Array.isArray(c)){eM(a.selector.node.name);return}var f=c?(0,Vm.default)(c):(0,Vm.default)(i);f[o]=a;var p=gu(r,f,l);fo.ENABLE_RELAY_OPERATION_TRACKER_SUSPENSE&&p.isMissingData?this._cache.set(r,{kind:"missing",result:p,snapshot:f}):this._cache.set(r,{kind:"done",result:p})},e}();function eM(e){hf(!1)}function Y7(e){return new fge(e)}var tM=oge?new WeakMap:new Map;function dge(e){var t=tM.get(e);if(t)return t;var n=Y7(e);return tM.set(e,n),n}var G7={createFragmentResource:Y7,getFragmentResourceForEnvironment:dge},hge=Yi,nM=N7,pge=G7,gge=pge.getFragmentResourceForEnvironment,B7=R,vge=B7.useEffect,mge=B7.useState,H7=tn,Oge=H7.RelayFeatureFlags,yge=H7.getFragmentIdentifier;function _ge(e,t,n){var r=hge(),i=gge(r),a=nM(!1),o=mge(0),l=o[1],s=yge(e,t),u=i.readWithIdentifier(e,t,s,n),c=nM(!0);function f(){c.current=!0;var v=i.checkMissedUpdates(u)[0];v&&g()}function p(){c.current=!1}function g(){a.current===!1||c.current===!1||l(function(v){return v+1})}return vge(function(){a.current=!0;var v=i.subscribe(u,g);return function(){a.current=!1,v.dispose()}},[r,s]),Oge.LOG_MISSING_RECORDS_IN_PROD&&t!=null&&(u.data===void 0||Array.isArray(u.data)&&u.data.length>0&&u.data.every(function(v){return v===void 0})),{data:u.data,disableStoreUpdates:p,enableStoreUpdates:f}}var Rk=_ge,rM=N7,K7=R,aw=K7.useCallback,Sge=K7.useEffect;function bge(){var e=rM(null),t=rM(!1),n=aw(function(){e.current!=null&&(e.current.unsubscribe(),e.current=null),t.current=!1},[]),r=aw(function(a){e.current=a,t.current=!0},[]),i=aw(function(){e.current=null,t.current=!1},[]);return Sge(function(){return n},[n]),{isFetchingRef:t,startFetch:r,disposeFetch:n,completeFetch:i}}var J7=bge,wge=A1,$ge=Rk,xge=Q1,eq=Pk,Pge=eq.getQueryCacheIdentifier,Ege=eq.getQueryResourceForEnvironment,Rge=J7,kge=Yi,I1=R,Tge=I1.useContext,ow=I1.useEffect,Cge=I1.useState,Qge=I1.useRef;function Age(e){var t=e.query,n=e.componentDisplayName,r=e.fetchObservable,i=e.fetchPolicy,a=e.fetchKey,o=e.renderPolicy,l=kge(),s=Tge(xge),u=Ege(l),c=Cge(0),f=c[0],p=c[1],g=Rge(),v=g.startFetch,m=g.completeFetch,_="".concat(f,"-").concat(a??""),O=Pge(l,t,i,o,_),S=s.wrapPrepareQueryResource(function(){return u.prepareWithIdentifier(O,t,r,i,o,{start:v,complete:m,error:m},s)}),b=Qge(!1);ow(function(){return function(){b.current=!0}},[]),ow(function(){if(b.current===!0){b.current=!1,p(function(k){return k+1});return}var Q=u.retain(S,s);return function(){Q.dispose()}},[l,O]),ow(function(){u.releaseTemporaryRetain(S)});var P=S.fragmentNode,E=S.fragmentRef,$=Ige(P,E,n);return $}function Ige(e,t,n){var r=wge.get();if(r&&r.useFragment__internal)return r.useFragment__internal(e,t,n);var i=$ge(e,t,n),a=i.data;return a}var tq=Age,Dge=Ha,Mge=R,Lge=Mge.useState;function Fge(e){var t=Lge(e),n=t[0],r=t[1];return Dge(e,n)?n:(r(e),e)}var Nge=Fge,iM=Nge,zge=R,nq=tn,Uge=nq.createOperationDescriptor,qge=nq.getRequest,jge=zge.useMemo;function Vge(e,t,n){var r=iM(t),i=iM(n||{});return jge(function(){return Uge(qge(e),r,i)},[e,r,i])}var rq=Vge,Zge=Pc,Wge=Zge.useTrackLoadQueryInRender,Xge=tq,Yge=rq,Gge=Yi,Bge=tn,Hge=Bge.__internal.fetchQuery;function Kge(e,t,n){Wge();var r=Gge(),i=Yge(e,t,n&&n.networkCacheConfig?n.networkCacheConfig:{force:!0}),a=Xge({componentDisplayName:"useLazyLoadQuery()",fetchKey:n==null?void 0:n.fetchKey,fetchObservable:Hge(r,i),fetchPolicy:n==null?void 0:n.fetchPolicy,query:i,renderPolicy:n==null?void 0:n.UNSTABLE_renderPolicy});return a}var iq=Kge,Jge=nt.default,aM=Jge(un),eve=iq;function tve(e,t,n){var r=e;return eve(r,t,(0,aM.default)((0,aM.default)({},n),{},{fetchPolicy:"store-only"}))}var nve=tve,aq=R,rve=aq.useEffect,ive=aq.useRef;function ave(){var e=ive(!0);return rve(function(){return e.current=!0,function(){e.current=!1}},[]),e}var Wg=ave,ove=nt.default,oM=ove(er),lve=M7,sve=Pc,uve=sve.useTrackLoadQueryInRender,cve=Wg,D1=R,lM=D1.useCallback,lw=D1.useEffect,sM=D1.useRef,uM=D1.useState,fve={kind:"NullEntryPointReference"};function dve(e,t,n){var r,i,a,o;uve();var l=(r=n==null||(i=n.TEST_ONLY__initialEntryPointData)===null||i===void 0?void 0:i.entryPointReference)!==null&&r!==void 0?r:fve,s=(a=n==null||(o=n.TEST_ONLY__initialEntryPointData)===null||o===void 0?void 0:o.entryPointParams)!==null&&a!==void 0?a:null,u=cve(),c=sM(new Set([l])),f=uM(l),p=f[0],g=f[1],v=uM(s),m=v[0],_=v[1],O=lM(function(){if(u.current){var P={kind:"NullEntryPointReference"};c.current.add(P),g(P)}},[g,u]),S=lM(function(P){if(u.current){var E=lve(e,t,P);c.current.add(E),g(E),_(P)}},[e,t,g,u]),b=sM(!1);return lw(function(){return function(){b.current=!0}},[]),lw(function(){if(b.current===!0){b.current=!1,p.kind!=="NullEntryPointReference"&&m!=null&&S(m);return}var P=c.current;if(u.current){var E=(0,oM.default)(P),$;try{for(E.s();!($=E.n()).done;){var Q=$.value;if(Q===p)break;P.delete(Q),Q.kind!=="NullEntryPointReference"&&Q.dispose()}}catch(k){E.e(k)}finally{E.f()}}},[p,m,S,u]),lw(function(){return function(){var E=(0,oM.default)(c.current),$;try{for(E.s();!($=E.n()).done;){var Q=$.value;Q.kind!=="NullEntryPointReference"&&Q.dispose()}}catch(k){E.e(k)}finally{E.f()}}},[]),[p.kind==="NullEntryPointReference"?null:p,S,O]}var hve=dve,pve=A1,gve=Rk,vve=Pc,mve=vve.useTrackLoadQueryInRender,Ove=R;Ove.useDebugValue;var yve=tn,_ve=yve.getFragment;function Sve(e,t){mve();var n=_ve(e),r=gve(n,t,"useFragment()"),i=r.data;return i}function bve(e,t){var n=pve.get();return n?n.useFragment(e,t):Sve(e,t)}var wve=bve,$ve=nt.default,cM=$ve(un),xve=Wg,Pve=Yi,M1=R,Eve=tn,Rve=Eve.commitMutation,kve=M1.useState,Tve=M1.useEffect,sw=M1.useRef,fM=M1.useCallback;function Cve(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Rve,n=Pve(),r=xve(),i=sw(n),a=sw(e),o=sw(new Set),l=kve(!1),s=l[0],u=l[1],c=fM(function(p){i.current===n&&a.current===e&&(o.current.delete(p),r.current&&u(o.current.size>0))},[n,r,e]);Tve(function(){(i.current!==n||a.current!==e)&&(o.current=new Set,r.current&&u(!1),i.current=n,a.current=e)},[n,r,e]);var f=fM(function(p){r.current&&u(!0);var g=t(n,(0,cM.default)((0,cM.default)({},p),{},{mutation:e,onCompleted:function(m,_){var O;c(g),(O=p.onCompleted)===null||O===void 0||O.call(p,m,_)},onError:function(m){var _;c(g),(_=p.onError)===null||_===void 0||_.call(p,m)},onUnsubscribe:function(){var m;c(g),(m=p.onUnsubscribe)===null||m===void 0||m.call(p)},onNext:function(){var m;(m=p.onNext)===null||m===void 0||m.call(p)}}));return o.current.add(g),g},[c,t,n,r,e]);return[f,s]}var Qve=Cve,Ave=nt.default,dM=Ave(er),oq=Pc,Ive=oq.loadQuery,Dve=oq.useTrackLoadQueryInRender,Mve=Wg,Lve=Yi,L1=R,hM=L1.useCallback,uw=L1.useEffect,pM=L1.useRef,gM=L1.useState,Fve=tn,Nve=Fve.getRequest,cw={kind:"NullQueryReference"};function vM(e){if(e.kind==="PreloadableConcreteRequest")return e.params.metadata.live!==void 0;var t=Nve(e);return t.params.metadata.live!==void 0}function zve(e,t){var n=t??cw,r=Lve();Dve();var i=Mve(),a=pM(new Set([n])),o=gM(function(){return n}),l=o[0],s=o[1],u=gM(function(){return n}),c=u[0],f=u[1];n!==c&&(a.current.add(n),f(n),s(n));var p=hM(function(){i.current&&(a.current.add(cw),s(cw))},[i]),g=hM(function(m,_){var O=_!=null&&_.hasOwnProperty("__environment")?{fetchPolicy:_.fetchPolicy,networkCacheConfig:_.networkCacheConfig,__nameForWarning:_.__nameForWarning}:_;if(i.current){var S,b=Ive((S=_==null?void 0:_.__environment)!==null&&S!==void 0?S:r,e,m,O);a.current.add(b),s(b)}},[r,e,s,i]),v=pM(!1);return uw(function(){return function(){v.current=!0}},[]),uw(function(){if(v.current===!0){v.current=!1,l.kind!=="NullQueryReference"&&g(l.variables,{fetchPolicy:l.fetchPolicy,networkCacheConfig:l.networkCacheConfig});return}var m=a.current;if(i.current){var _=(0,dM.default)(m),O;try{for(_.s();!(O=_.n()).done;){var S=O.value;if(S===l)break;m.delete(S),S.kind!=="NullQueryReference"&&(vM(e)?S.dispose&&S.dispose():S.releaseQuery&&S.releaseQuery())}}catch(b){_.e(b)}finally{_.f()}}},[l,i,g,e]),uw(function(){return function(){var _=(0,dM.default)(a.current),O;try{for(_.s();!(O=_.n()).done;){var S=O.value;S.kind!=="NullQueryReference"&&(vM(e)?S.dispose&&S.dispose():S.releaseQuery&&S.releaseQuery())}}catch(b){_.e(b)}finally{_.f()}}},[e]),[l.kind==="NullQueryReference"?null:l,g,p]}var lq=zve,Uve=nt.default,kp=Uve(un),qve=Q1,jve=Pk,Vve=jve.getQueryResourceForEnvironment,Zve=Wg,Wve=lq,Xve=Yi,Yve=G7,Gve=Yve.getFragmentResourceForEnvironment,Bve=Rk,Hve=qe,kk=R,Kve=kk.useCallback,Jve=kk.useContext,eme=kk.useReducer,Md=tn,tme=Md.__internal.fetchQuery,nme=Md.createOperationDescriptor,rme=Md.getFragmentIdentifier,mM=Md.getRefetchMetadata,ime=Md.getSelector,ame=Md.getValueAtPath;function ome(e,t){switch(t.type){case"refetch":{var n;return(0,kp.default)((0,kp.default)({},e),{},{fetchPolicy:t.fetchPolicy,mirroredEnvironment:(n=t.refetchEnvironment)!==null&&n!==void 0?n:e.mirroredEnvironment,onComplete:t.onComplete,refetchEnvironment:t.refetchEnvironment,refetchQuery:t.refetchQuery,renderPolicy:t.renderPolicy})}case"reset":return{fetchPolicy:void 0,mirroredEnvironment:t.environment,mirroredFragmentIdentifier:t.fragmentIdentifier,onComplete:void 0,refetchQuery:null,renderPolicy:void 0};default:throw t.type,new Error("useRefetchableFragmentNode: Unexpected action type")}}function lme(e,t,n){var r=Xve(),i=mM(e,n),a=i.refetchableRequest,o=i.fragmentRefPathInResponse,l=rme(e,t),s=eme(ome,{fetchPolicy:void 0,mirroredEnvironment:r,mirroredFragmentIdentifier:l,onComplete:void 0,refetchEnvironment:null,refetchQuery:null,renderPolicy:void 0}),u=s[0],c=s[1],f=u.fetchPolicy,p=u.mirroredEnvironment,g=u.mirroredFragmentIdentifier,v=u.onComplete,m=u.refetchEnvironment,_=u.refetchQuery,O=u.renderPolicy,S=m??r,b=Vve(S),P=Gve(S),E=Jve(qve),$=S!==p||l!==g,Q=Wve(a),k=Q[0],D=Q[1],T=Q[2],A=t,M=mM(e,n),L=M.identifierInfo;if($)c({type:"reset",environment:S,fragmentIdentifier:l}),T();else if(_!=null&&k!=null){var N=function(ge){v&&v(ge??null)},j=k.source!=null?k.source:tme(S,_),B=E.wrapPrepareQueryResource(function(){return b.prepare(_,j,f,O,{error:N,complete:function(){N()}},k.fetchKey,E)}),V=P.read(B.fragmentNode,B.fragmentRef,n).data;V==null&&Hve(!1);var U=ame(V,o);A=U}var G=Bve(e,A,n),I=G.data,X=G.disableStoreUpdates,Z=G.enableStoreUpdates,F=sme(n,c,T,I,l,e,o,L,D,t,a);return{fragmentData:I,fragmentRef:A,refetch:F,disableStoreUpdates:X,enableStoreUpdates:Z}}function sme(e,t,n,r,i,a,o,l,s,u,c){var f=Zve(),p=(l==null?void 0:l.identifierField)!=null&&r!=null&&typeof r=="object"?r[l.identifierField]:null;return Kve(function(g,v){if(f.current!==!0)return{dispose:function(){}};var m=v==null?void 0:v.__environment,_=v==null?void 0:v.fetchPolicy,O=v==null?void 0:v.UNSTABLE_renderPolicy,S=v==null?void 0:v.onComplete,b=ime(a,u),P,E;if(b==null)P={},E={};else if(b.kind==="PluralReaderSelector"){var $,Q,k,D;P=($=(Q=b.selectors[0])===null||Q===void 0?void 0:Q.owner.variables)!==null&&$!==void 0?$:{},E=(k=(D=b.selectors[0])===null||D===void 0?void 0:D.variables)!==null&&k!==void 0?k:{}}else P=b.owner.variables,E=b.variables;var T=(0,kp.default)((0,kp.default)((0,kp.default)({},P),E),g);l!=null&&!g.hasOwnProperty(l.identifierQueryVariableName)&&(T[l.identifierQueryVariableName]=p);var A=nme(c,T,{force:!0});return s(A.request.variables,{fetchPolicy:_,__environment:m,__nameForWarning:"refetch"}),t({type:"refetch",fetchPolicy:_,onComplete:S,refetchEnvironment:m,refetchQuery:A,renderPolicy:O}),{dispose:n}},[i,t,n,p,s])}var sq=lme,ume=Yi,cme=qe,Tk=R,uq=tn,fme=uq.__internal.getObservableForActiveRequest,dme=uq.getSelector,hme=Tk.useEffect,pme=Tk.useState,gme=Tk.useMemo;function vme(e,t){var n=ume(),r=gme(function(){var l=dme(e,t);return l==null?null:(l.kind!=="SingularReaderSelector"&&cme(!1),fme(n,l.owner))},[n,e,t]),i=pme(r!=null),a=i[0],o=i[1];return hme(function(){var l;if(o(r!=null),r!=null){var s=function(){o(!1)};l=r.subscribe({complete:s,error:s})}return function(){l&&l.unsubscribe()}},[r]),a}var mme=vme,Ome=nt.default,Mh=Ome(un),yme=J7,_me=Wg,Sme=mme,bme=Yi,up=qe,Ck=R,wme=Ck.useCallback,$me=Ck.useEffect,OM=Ck.useState,Ec=tn,xme=Ec.__internal.fetchQuery,Pme=Ec.ConnectionInterface,Eme=Ec.createOperationDescriptor,Rme=Ec.getPaginationVariables,kme=Ec.getRefetchMetadata,Tme=Ec.getSelector,Cme=Ec.getValueAtPath;function Qme(e){var t=e.direction,n=e.fragmentNode,r=e.fragmentRef,i=e.fragmentIdentifier,a=e.fragmentData,o=e.connectionPathInFragmentData,l=e.paginationRequest,s=e.paginationMetadata,u=e.componentDisplayName,c=e.observer,f=e.onReset,p=bme(),g=yme(),v=g.isFetchingRef,m=g.startFetch,_=g.disposeFetch,O=g.completeFetch,S=kme(n,u),b=S.identifierInfo,P=(b==null?void 0:b.identifierField)!=null&&a!=null&&typeof a=="object"?a[b.identifierField]:null,E=_me(),$=OM(p),Q=$[0],k=$[1],D=OM(i),T=D[0],A=D[1],M=Sme(n,r),L=p!==Q||i!==T;L&&(_(),f(),k(p),A(i));var N=Ame(t,n,a,o),j=N.cursor,B=N.hasMore;$me(function(){return function(){_()}},[_]);var V=wme(function(U,G){var I=G==null?void 0:G.onComplete;if(E.current!==!0)return{dispose:function(){}};var X=Tme(n,r);if(v.current===!0||a==null||M)return I&&I(null),{dispose:function(){}};X!=null&&X.kind!=="PluralReaderSelector"||up(!1);var Z=X.owner.variables,F=X.variables,ue=G==null?void 0:G.UNSTABLE_extraVariables,ge=(0,Mh.default)((0,Mh.default)({},Z),F),de=Rme(t,U,j,ge,(0,Mh.default)({},ue),s);b!=null&&(de[b.identifierQueryVariableName]=P);var Qe=Eme(l,de,{force:!0});return xme(p,Qe).subscribe((0,Mh.default)((0,Mh.default)({},c),{},{start:function(ce){m(ce),c.start&&c.start(ce)},complete:function(){O(),c.complete&&c.complete(),I&&I(null)},error:function(ce){O(),c.error&&c.error(ce),I&&I(ce)}})),{dispose:_}},[p,P,t,j,m,_,O,v,M,a,n.name,r,u]);return[V,B,_]}function Ame(e,t,n,r){var i,a,o=Pme.get(),l=o.EDGES,s=o.PAGE_INFO,u=o.HAS_NEXT_PAGE,c=o.HAS_PREV_PAGE,f=o.END_CURSOR,p=o.START_CURSOR,g=Cme(n,r);if(g==null)return{cursor:null,hasMore:!1};typeof g!="object"&&up(!1);var v=g[l],m=g[s];if(v==null||m==null)return{cursor:null,hasMore:!1};Array.isArray(v)||up(!1),typeof m!="object"&&up(!1);var _=e==="forward"?(i=m[f])!==null&&i!==void 0?i:null:(a=m[p])!==null&&a!==void 0?a:null;_===null||typeof _=="string"||up(!1);var O;return e==="forward"?O=_!=null&&m[u]===!0:O=_!=null&&m[c]===!0,{cursor:_,hasMore:O}}var Ime=Qme,Dme=nt.default,Iy=Dme(un),Mme=A1,Lme=sq,Fme=Ime,Qk=R,Nme=Qk.useCallback;Qk.useDebugValue;var zme=Qk.useState,Ak=tn,Ume=Ak.getFragment,qme=Ak.getFragmentIdentifier,jme=Ak.getPaginationMetadata;function Vme(e,t){var n=Ume(e),r="usePaginationFragment()",i=jme(n,r),a=i.connectionPathInFragmentData,o=i.paginationRequest,l=i.paginationMetadata,s=Lme(n,t,r),u=s.fragmentData,c=s.fragmentRef,f=s.refetch,p=qme(n,c),g=yM({componentDisplayName:r,connectionPathInFragmentData:a,direction:"backward",fragmentData:u,fragmentIdentifier:p,fragmentNode:n,fragmentRef:c,paginationMetadata:l,paginationRequest:o}),v=g[0],m=g[1],_=g[2],O=g[3],S=yM({componentDisplayName:r,connectionPathInFragmentData:a,direction:"forward",fragmentData:u,fragmentIdentifier:p,fragmentNode:n,fragmentRef:c,paginationMetadata:l,paginationRequest:o}),b=S[0],P=S[1],E=S[2],$=S[3],Q=Nme(function(k,D){return $(),O(),f(k,(0,Iy.default)((0,Iy.default)({},D),{},{__environment:void 0}))},[$,O,f]);return{data:u,loadNext:b,loadPrevious:v,hasNext:P,hasPrevious:m,isLoadingNext:E,isLoadingPrevious:_,refetch:Q}}function yM(e){var t=zme(!1),n=t[0],r=t[1],i={start:function(){return r(!0)},complete:function(){return r(!1)},error:function(){return r(!1)}},a=function(){return r(!1)},o=Fme((0,Iy.default)((0,Iy.default)({},e),{},{observer:i,onReset:a})),l=o[0],s=o[1],u=o[2];return[l,s,n,u]}function Zme(e,t){var n=Mme.get();return n?n.usePaginationFragment(e,t):Vme(e,t)}var Wme=Zme,Xme=Pc,Yme=Xme.useTrackLoadQueryInRender,Gme=tq,Bme=rq,Hme=Yi,Kme=qe,Jme=R;Jme.useDebugValue;var eOe=tn,cq=eOe.__internal,tOe=cq.fetchQueryDeduped,nOe=cq.fetchQuery;function rOe(e,t,n){Yme();var r=Hme(),i=t.fetchKey,a=t.fetchPolicy,o=t.source,l=t.variables,s=t.networkCacheConfig,u=Bme(e,l,s),c;if(t.kind==="PreloadedQuery_DEPRECATED")u.request.node.params.name!==t.name&&Kme(!1),c={componentDisplayName:"usePreloadedQuery()",fetchKey:i,fetchObservable:tOe(r,u.request.identifier,function(){return r===t.environment&&o!=null?r.executeWithSource({operation:u,source:o}):r.execute({operation:u})}),fetchPolicy:a,query:u,renderPolicy:n==null?void 0:n.UNSTABLE_renderPolicy};else{var f=nOe(r,u),p;o!=null&&r===t.environment?p=o.ifEmpty(f):(t.environment,p=f),c={componentDisplayName:"usePreloadedQuery()",fetchObservable:p,fetchKey:i,fetchPolicy:a,query:u,renderPolicy:n==null?void 0:n.UNSTABLE_renderPolicy}}var g=Gme(c);return g}var iOe=rOe,aOe=A1,oOe=sq,lOe=R;lOe.useDebugValue;var sOe=tn,uOe=sOe.getFragment;function cOe(e,t){var n=uOe(e),r=oOe(n,t,"useRefetchableFragment()"),i=r.fragmentData,a=r.refetch;return[i,a]}function fOe(e,t){var n=aOe.get();return n?n.useRefetchableFragment(e,t):cOe(e,t)}var dOe=fOe,hOe=Yi,fq=R,pOe=fq.useEffect,gOe=fq.useRef;function vOe(e,t){var n=hOe(),r=gOe(null),i=Array.from(e).sort().join("");return pOe(function(){var a=n.getStore(),o=a.lookupInvalidationState(e),l=a.subscribeToInvalidationState(o,t);return r.current=l,function(){return l.dispose()}},[i,t,n]),{dispose:function(){r.current!=null&&r.current.dispose()}}}var mOe=vOe,OOe=Yi,yOe=R,_Oe=yOe.useEffect,SOe=tn,bOe=SOe.requestSubscription;function wOe(e,t){var n=t??bOe,r=OOe();_Oe(function(){var i=n(r,e),a=i.dispose;return a},[r,e,n])}var $Oe=wOe,xOe=Zs,POe=zde,EOe=Hde,ROe=Ehe,kOe=Fhe,TOe=npe,COe=vpe,QOe=M7,AOe=Pc,IOe=AOe.loadQuery,DOe=Q1,MOe=Rpe,LOe=nve,FOe=hve,NOe=wve,zOe=iq,UOe=Qve,qOe=Wme,jOe=iOe,VOe=lq,ZOe=dOe,WOe=Yi,XOe=mOe,YOe=$Oe,Da=tn,GOe={ConnectionHandler:Da.ConnectionHandler,QueryRenderer:kOe,LocalQueryRenderer:EOe,MutationTypes:Da.MutationTypes,RangeOperations:Da.RangeOperations,ReactRelayContext:xOe,applyOptimisticMutation:Da.applyOptimisticMutation,commitLocalUpdate:Da.commitLocalUpdate,commitMutation:Da.commitMutation,createFragmentContainer:POe.createContainer,createPaginationContainer:ROe.createContainer,createRefetchContainer:TOe.createContainer,fetchQuery_DEPRECATED:Da.fetchQuery_DEPRECATED,graphql:Da.graphql,readInlineData:Da.readInlineData,requestSubscription:Da.requestSubscription,EntryPointContainer:COe,RelayEnvironmentProvider:MOe,ProfilerContext:DOe,fetchQuery:Da.fetchQuery,loadQuery:IOe,loadEntryPoint:QOe,useClientQuery:LOe,useFragment:NOe,useLazyLoadQuery:zOe,useEntryPointLoader:FOe,useQueryLoader:VOe,useMutation:UOe,usePaginationFragment:qOe,usePreloadedQuery:jOe,useRefetchableFragment:ZOe,useRelayEnvironment:WOe,useSubscribeToInvalidationState:XOe,useSubscription:YOe},RWe=GOe,kWe=function(t,n){var r=arguments;if(n==null||!Dg.call(n,"css"))return R.createElement.apply(void 0,r);var i=r.length,a=new Array(i);a[0]=XE,a[1]=WE(t,n);for(var o=2;o<i;o++)a[o]=r[o];return R.createElement.apply(null,a)},TWe=aN(function(e,t){var n=e.styles,r=ZE([n],void 0,R.useContext(iy)),i=R.useRef();return AQ(function(){var a=t.key+"-global",o=new t.sheet.constructor({key:a,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),l=!1,s=document.querySelector('style[data-emotion="'+a+" "+r.name+'"]');return t.sheet.tags.length&&(o.before=t.sheet.tags[0]),s!==null&&(l=!0,s.setAttribute("data-emotion",a),o.hydrate([s])),i.current=[o,l],function(){o.flush()}},[t]),AQ(function(){var a=i.current,o=a[0],l=a[1];if(l){a[1]=!1;return}if(r.next!==void 0&&tN(t,r.next,!0),o.tags.length){var s=o.tags[o.tags.length-1].nextElementSibling;o.before=s,o.flush()}t.insert("",r,o,!1)},[t,r.name]),null});function BOe(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return ZE(t)}var CWe=function(){var t=BOe.apply(void 0,arguments),n="animation-"+t.name;return{name:n,styles:"@keyframes "+n+"{"+t.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}};const qt=typeof document<"u"?pe.useLayoutEffect:()=>{};function pr(e){const t=R.useRef(null);return qt(()=>{t.current=e},[e]),R.useCallback((...n)=>{const r=t.current;return r==null?void 0:r(...n)},[])}function HOe(e){let[t,n]=R.useState(e),r=R.useRef(null),i=pr(()=>{if(!r.current)return;let o=r.current.next();if(o.done){r.current=null;return}t===o.value?i():n(o.value)});qt(()=>{r.current&&i()});let a=pr(o=>{r.current=o(t),i()});return[t,a]}const Dy={prefix:String(Math.round(Math.random()*1e10)),current:0},dq=pe.createContext(Dy),KOe=pe.createContext(!1);let JOe=!!(typeof window<"u"&&window.document&&window.document.createElement),fw=new WeakMap;function eye(e=!1){let t=R.useContext(dq),n=R.useRef(null);if(n.current===null&&!e){var r,i;let a=(i=pe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||i===void 0||(r=i.ReactCurrentOwner)===null||r===void 0?void 0:r.current;if(a){let o=fw.get(a);o==null?fw.set(a,{id:t.current,state:a.memoizedState}):a.memoizedState!==o.state&&(t.current=o.id,fw.delete(a))}n.current=++t.current}return n.current}function tye(e){let t=R.useContext(dq);t===Dy&&!JOe&&console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let n=eye(!!e),r=`react-aria${t.prefix}`;return e||`${r}-${n}`}function nye(e){let t=pe.useId(),[n]=R.useState(Ik()),r=n?"react-aria":`react-aria${Dy.prefix}`;return e||`${r}-${t}`}const rye=typeof pe.useId=="function"?nye:tye;function iye(){return!1}function aye(){return!0}function oye(e){return()=>{}}function Ik(){return typeof pe.useSyncExternalStore=="function"?pe.useSyncExternalStore(oye,iye,aye):R.useContext(KOe)}let lye=!!(typeof window<"u"&&window.document&&window.document.createElement),My=new Map;function $a(e){let[t,n]=R.useState(e),r=R.useRef(null),i=rye(t),a=R.useCallback(o=>{r.current=o},[]);return lye&&My.set(i,a),qt(()=>{let o=i;return()=>{My.delete(o)}},[i]),R.useEffect(()=>{let o=r.current;o&&(r.current=null,n(o))}),i}function sye(e,t){if(e===t)return e;let n=My.get(e);if(n)return n(t),t;let r=My.get(t);return r?(r(e),e):t}function Rs(e=[]){let t=$a(),[n,r]=HOe(t),i=R.useCallback(()=>{r(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,r]);return qt(i,[t,i,...e]),n}function oc(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}const ln=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},Oa=e=>e&&"window"in e&&e.window===e?e:ln(e).defaultView||window;function hq(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=hq(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function pq(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=hq(e))&&(r&&(r+=" "),r+=t);return r}function mt(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];for(let i in r){let a=t[i],o=r[i];typeof a=="function"&&typeof o=="function"&&i[0]==="o"&&i[1]==="n"&&i.charCodeAt(2)>=65&&i.charCodeAt(2)<=90?t[i]=oc(a,o):(i==="className"||i==="UNSAFE_className")&&typeof a=="string"&&typeof o=="string"?t[i]=pq(a,o):i==="id"&&a&&o?t.id=sye(a,o):t[i]=o!==void 0?o:a}}return t}const uye=new Set(["id"]),cye=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),fye=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),dye=/^(data-.*)$/;function Fr(e,t={}){let{labelable:n,isLink:r,propNames:i}=t,a={};for(const o in e)Object.prototype.hasOwnProperty.call(e,o)&&(uye.has(o)||n&&cye.has(o)||r&&fye.has(o)||i!=null&&i.has(o)||dye.test(o))&&(a[o]=e[o]);return a}function Ro(e){if(hye())e.focus({preventScroll:!0});else{let t=pye(e);e.focus(),gye(t)}}let Zm=null;function hye(){if(Zm==null){Zm=!1;try{document.createElement("div").focus({get preventScroll(){return Zm=!0,!0}})}catch{}}return Zm}function pye(e){let t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}function gye(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}function F1(e){var t;return typeof window>"u"||window.navigator==null?!1:((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands.some(n=>e.test(n.brand)))||e.test(window.navigator.userAgent)}function Dk(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function Is(){return Dk(/^Mac/i)}function vye(){return Dk(/^iPhone/i)}function gq(){return Dk(/^iPad/i)||Is()&&navigator.maxTouchPoints>1}function N1(){return vye()||gq()}function mye(){return Is()||N1()}function Mk(){return F1(/AppleWebKit/i)&&!Oye()}function Oye(){return F1(/Chrome/i)}function vq(){return F1(/Android/i)}function yye(){return F1(/Firefox/i)}const _ye=R.createContext({isNative:!0,open:wye,useHref:e=>e});function Xg(){return R.useContext(_ye)}function Sye(e,t){let n=e.getAttribute("target");return(!n||n==="_self")&&e.origin===location.origin&&!e.hasAttribute("download")&&!t.metaKey&&!t.ctrlKey&&!t.altKey&&!t.shiftKey}function lc(e,t,n=!0){var r,i;let{metaKey:a,ctrlKey:o,altKey:l,shiftKey:s}=t;yye()&&(!((i=window.event)===null||i===void 0||(r=i.type)===null||r===void 0)&&r.startsWith("key"))&&e.target==="_blank"&&(Is()?a=!0:o=!0);let u=Mk()&&Is()&&!gq()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:a,ctrlKey:o,altKey:l,shiftKey:s}):new MouseEvent("click",{metaKey:a,ctrlKey:o,altKey:l,shiftKey:s,bubbles:!0,cancelable:!0});lc.isOpening=n,Ro(e),e.dispatchEvent(u),lc.isOpening=!1}lc.isOpening=!1;function bye(e,t){if(e instanceof HTMLAnchorElement)t(e);else if(e.hasAttribute("data-href")){let n=document.createElement("a");n.href=e.getAttribute("data-href"),e.hasAttribute("data-target")&&(n.target=e.getAttribute("data-target")),e.hasAttribute("data-rel")&&(n.rel=e.getAttribute("data-rel")),e.hasAttribute("data-download")&&(n.download=e.getAttribute("data-download")),e.hasAttribute("data-ping")&&(n.ping=e.getAttribute("data-ping")),e.hasAttribute("data-referrer-policy")&&(n.referrerPolicy=e.getAttribute("data-referrer-policy")),e.appendChild(n),t(n),e.removeChild(n)}}function wye(e,t){bye(e,n=>lc(n,t))}function Lk(e){let t=Xg();return{href:e!=null&&e.href?t.useHref(e==null?void 0:e.href):void 0,target:e==null?void 0:e.target,rel:e==null?void 0:e.rel,download:e==null?void 0:e.download,ping:e==null?void 0:e.ping,referrerPolicy:e==null?void 0:e.referrerPolicy}}let pf=new Map,oP=new Set;function _M(){if(typeof window>"u")return;function e(r){return"propertyName"in r}let t=r=>{if(!e(r)||!r.target)return;let i=pf.get(r.target);i||(i=new Set,pf.set(r.target,i),r.target.addEventListener("transitioncancel",n,{once:!0})),i.add(r.propertyName)},n=r=>{if(!e(r)||!r.target)return;let i=pf.get(r.target);if(i&&(i.delete(r.propertyName),i.size===0&&(r.target.removeEventListener("transitioncancel",n),pf.delete(r.target)),pf.size===0)){for(let a of oP)a();oP.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState!=="loading"?_M():document.addEventListener("DOMContentLoaded",_M));function mq(e){requestAnimationFrame(()=>{pf.size===0?e():oP.add(e)})}function Yg(){let e=R.useRef(new Map),t=R.useCallback((i,a,o,l)=>{let s=l!=null&&l.once?(...u)=>{e.current.delete(o),o(...u)}:o;e.current.set(o,{type:a,eventTarget:i,fn:s,options:l}),i.addEventListener(a,o,l)},[]),n=R.useCallback((i,a,o,l)=>{var s;let u=((s=e.current.get(o))===null||s===void 0?void 0:s.fn)||o;i.removeEventListener(a,u,l),e.current.delete(o)},[]),r=R.useCallback(()=>{e.current.forEach((i,a)=>{n(i.eventTarget,i.type,a,i.options)})},[n]);return R.useEffect(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function Oq(e,t){let{id:n,"aria-label":r,"aria-labelledby":i}=e;return n=$a(n),i&&r?i=[...new Set([n,...i.trim().split(/\s+/)])].join(" "):i&&(i=i.trim().split(/\s+/).join(" ")),!r&&!i&&t&&(r=t),{id:n,"aria-label":r,"aria-labelledby":i}}function yq(e){const t=R.useRef(null);return R.useMemo(()=>({get current(){return t.current},set current(n){t.current=n,typeof e=="function"?e(n):e&&(e.current=n)}}),[e])}function $ye(){return typeof window.ResizeObserver<"u"}function _q(e){const{ref:t,onResize:n}=e;R.useEffect(()=>{let r=t==null?void 0:t.current;if(r)if($ye()){const i=new window.ResizeObserver(a=>{a.length&&n()});return i.observe(r),()=>{r&&i.unobserve(r)}}else return window.addEventListener("resize",n,!1),()=>{window.removeEventListener("resize",n,!1)}},[n,t])}function Fk(e,t){qt(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function fg(e,t){let n=window.getComputedStyle(e),r=/(auto|scroll)/.test(n.overflow+n.overflowX+n.overflowY);return r&&t&&(r=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),r}function Sq(e,t){let n=e;for(fg(n,t)&&(n=n.parentElement);n&&!fg(n,t);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}function xye(e,t){const n=[];for(;e&&e!==document.documentElement;)fg(e,t)&&n.push(e),e=e.parentElement;return n}let Pye=0;const dw=new Map;function Eye(e){let[t,n]=R.useState();return qt(()=>{if(!e)return;let r=dw.get(e);if(r)n(r.element.id);else{let i=`react-aria-description-${Pye++}`;n(i);let a=document.createElement("div");a.id=i,a.style.display="none",a.textContent=e,document.body.appendChild(a),r={refCount:0,element:a},dw.set(e,r)}return r.refCount++,()=>{r&&--r.refCount===0&&(r.element.remove(),dw.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function Rye(e,t,n,r){let i=pr(n),a=n==null;R.useEffect(()=>{if(a||!e.current)return;let o=e.current;return o.addEventListener(t,i,r),()=>{o.removeEventListener(t,i,r)}},[e,t,r,a,i])}function bq(e,t){let n=SM(e,t,"left"),r=SM(e,t,"top"),i=t.offsetWidth,a=t.offsetHeight,o=e.scrollLeft,l=e.scrollTop,{borderTopWidth:s,borderLeftWidth:u}=getComputedStyle(e),c=e.scrollLeft+parseInt(u,10),f=e.scrollTop+parseInt(s,10),p=c+e.clientWidth,g=f+e.clientHeight;n<=o?o=n-parseInt(u,10):n+i>p&&(o+=n+i-p),r<=f?l=r-parseInt(s,10):r+a>g&&(l+=r+a-g),e.scrollLeft=o,e.scrollTop=l}function SM(e,t,n){const r=n==="left"?"offsetLeft":"offsetTop";let i=0;for(;t.offsetParent&&(i+=t[r],t.offsetParent!==e);){if(t.offsetParent.contains(e)){i-=e[r];break}t=t.offsetParent}return i}function bM(e,t){if(document.contains(e)){let o=document.scrollingElement||document.documentElement;if(window.getComputedStyle(o).overflow==="hidden"){let s=xye(e);for(let u of s)bq(u,e)}else{var n;let{left:s,top:u}=e.getBoundingClientRect();e==null||(n=e.scrollIntoView)===null||n===void 0||n.call(e,{block:"nearest"});let{left:c,top:f}=e.getBoundingClientRect();if(Math.abs(s-c)>1||Math.abs(u-f)>1){var r,i,a;t==null||(i=t.containingElement)===null||i===void 0||(r=i.scrollIntoView)===null||r===void 0||r.call(i,{block:"center",inline:"center"}),(a=e.scrollIntoView)===null||a===void 0||a.call(e,{block:"nearest"})}}}}function lP(e){return e.mozInputSource===0&&e.isTrusted?!0:vq()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function kye(e){return!vq()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function Gg(e,t,n){let r=R.useRef(t),i=pr(()=>{n&&n(r.current)});R.useEffect(()=>{var a;let o=e==null||(a=e.current)===null||a===void 0?void 0:a.form;return o==null||o.addEventListener("reset",i),()=>{o==null||o.removeEventListener("reset",i)}},[e,i])}function Xs(e,t,n){let[r,i]=R.useState(e||t),a=R.useRef(e!==void 0),o=e!==void 0;R.useEffect(()=>{let u=a.current;u!==o&&console.warn(`WARN: A component changed from ${u?"controlled":"uncontrolled"} to ${o?"controlled":"uncontrolled"}.`),a.current=o},[o]);let l=o?e:r,s=R.useCallback((u,...c)=>{let f=(p,...g)=>{n&&(Object.is(l,p)||n(p,...g)),o||(l=p)};typeof u=="function"?(console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),i((g,...v)=>{let m=u(o?l:g,...v);return f(m,...c),o?g:m})):(o||i(u),f(u,...c))},[o,l,n]);return[l,s]}function sc(e,t=-1/0,n=1/0){return Math.min(Math.max(e,t),n)}function Wm(e,t){let n=e,r=t.toString(),i=r.indexOf("."),a=i>=0?r.length-i:0;if(a>0){let o=Math.pow(10,a);n=Math.round(n*o)/o}return n}function Lh(e,t,n,r){t=Number(t),n=Number(n);let i=(e-(isNaN(t)?0:t))%r,a=Wm(Math.abs(i)*2>=r?e+Math.sign(i)*(r-Math.abs(i)):e-i,r);return isNaN(t)?!isNaN(n)&&a>n&&(a=Math.floor(Wm(n/r,r))*r):a<t?a=t:!isNaN(n)&&a>n&&(a=t+Math.floor(Wm((n-t)/r,r))*r),a=Wm(a,r),a}const Ff={top:"top",bottom:"top",left:"left",right:"left"},Ly={top:"bottom",bottom:"top",left:"right",right:"left"},Tye={top:"left",left:"top"},sP={top:"height",left:"width"},wq={width:"totalWidth",height:"totalHeight"},Xm={};let fi=typeof document<"u"&&window.visualViewport;function wM(e){let t=0,n=0,r=0,i=0,a=0,o=0,l={},s=(fi==null?void 0:fi.scale)>1;if(e.tagName==="BODY"){let f=document.documentElement;r=f.clientWidth,i=f.clientHeight;var u;t=(u=fi==null?void 0:fi.width)!==null&&u!==void 0?u:r;var c;n=(c=fi==null?void 0:fi.height)!==null&&c!==void 0?c:i,l.top=f.scrollTop||e.scrollTop,l.left=f.scrollLeft||e.scrollLeft,fi&&(a=fi.offsetTop,o=fi.offsetLeft)}else({width:t,height:n,top:a,left:o}=Kf(e)),l.top=e.scrollTop,l.left=e.scrollLeft,r=t,i=n;return Mk()&&(e.tagName==="BODY"||e.tagName==="HTML")&&s&&(l.top=0,l.left=0,a=fi.pageTop,o=fi.pageLeft),{width:t,height:n,totalWidth:r,totalHeight:i,scroll:l,top:a,left:o}}function Cye(e){return{top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}}function $M(e,t,n,r,i,a,o){let l=i.scroll[e],s=r[sP[e]],u=r.scroll[Ff[e]]+a,c=s+r.scroll[Ff[e]]-a,f=t-l+o[e]-r[Ff[e]],p=t-l+n+o[e]-r[Ff[e]];return f<u?u-f:p>c?Math.max(c-p,u-f):0}function Qye(e){let t=window.getComputedStyle(e);return{top:parseInt(t.marginTop,10)||0,bottom:parseInt(t.marginBottom,10)||0,left:parseInt(t.marginLeft,10)||0,right:parseInt(t.marginRight,10)||0}}function xM(e){if(Xm[e])return Xm[e];let[t,n]=e.split(" "),r=Ff[t]||"right",i=Tye[r];Ff[n]||(n="center");let a=sP[r],o=sP[i];return Xm[e]={placement:t,crossPlacement:n,axis:r,crossAxis:i,size:a,crossSize:o},Xm[e]}function hw(e,t,n,r,i,a,o,l,s,u){let{placement:c,crossPlacement:f,axis:p,crossAxis:g,size:v,crossSize:m}=r,_={};_[g]=e[g],f==="center"?_[g]+=(e[m]-n[m])/2:f!==g&&(_[g]+=e[m]-n[m]),_[g]+=a;const O=e[g]-n[m]+s+u,S=e[g]+e[m]-s-u;if(_[g]=sc(_[g],O,S),c===p){const b=l?o[v]:t[wq[v]];_[Ly[p]]=Math.floor(b-e[p]+i)}else _[p]=Math.floor(e[p]+e[v]+i);return _}function Aye(e,t,n,r,i,a,o,l){const s=r?n.height:t[wq.height];let u=e.top!=null?n.top+e.top:n.top+(s-e.bottom-o),c=l!=="top"?Math.max(0,t.height+t.top+t.scroll.top-u-(i.top+i.bottom+a)):Math.max(0,u+o-(t.top+t.scroll.top)-(i.top+i.bottom+a));return Math.min(t.height-a*2,c)}function PM(e,t,n,r,i,a){let{placement:o,axis:l,size:s}=a;return o===l?Math.max(0,n[l]-e[l]-e.scroll[l]+t[l]-r[l]-r[Ly[l]]-i):Math.max(0,e[s]+e[l]+e.scroll[l]-t[l]-n[l]-n[s]-r[l]-r[Ly[l]]-i)}function Iye(e,t,n,r,i,a,o,l,s,u,c,f,p,g,v,m){let _=xM(e),{size:O,crossAxis:S,crossSize:b,placement:P,crossPlacement:E}=_,$=hw(t,l,n,_,c,f,u,p,v,m),Q=c,k=PM(l,u,t,i,a+c,_);if(o&&r[O]>k){let G=xM(`${Ly[P]} ${E}`),I=hw(t,l,n,G,c,f,u,p,v,m);PM(l,u,t,i,a+c,G)>k&&(_=G,$=I,Q=c)}let D="bottom";_.axis==="top"?_.placement==="top"?D="top":_.placement==="bottom"&&(D="bottom"):_.crossAxis==="top"&&(_.crossPlacement==="top"?D="bottom":_.crossPlacement==="bottom"&&(D="top"));let T=$M(S,$[S],n[b],l,s,a,u);$[S]+=T;let A=Aye($,l,u,p,i,a,n.height,D);g&&g<A&&(A=g),n.height=Math.min(n.height,A),$=hw(t,l,n,_,Q,f,u,p,v,m),T=$M(S,$[S],n[b],l,s,a,u),$[S]+=T;let M={},L=t[S]+.5*t[b]-$[S];const N=v/2+m,j=n[b]-v/2-m,B=t[S]-$[S]+v/2,V=t[S]+t[b]-$[S]-v/2,U=sc(L,B,V);return M[S]=sc(U,N,j),{position:$,maxHeight:A,arrowOffsetLeft:M.left,arrowOffsetTop:M.top,placement:_.placement}}function Dye(e){let{placement:t,targetNode:n,overlayNode:r,scrollNode:i,padding:a,shouldFlip:o,boundaryElement:l,offset:s,crossOffset:u,maxHeight:c,arrowSize:f=0,arrowBoundaryOffset:p=0}=e,g=r instanceof HTMLElement?Mye(r):document.documentElement,v=g===document.documentElement;const m=window.getComputedStyle(g).position;let _=!!m&&m!=="static",O=v?Kf(n):EM(n,g);if(!v){let{marginTop:k,marginLeft:D}=window.getComputedStyle(n);O.top+=parseInt(k,10)||0,O.left+=parseInt(D,10)||0}let S=Kf(r),b=Qye(r);S.width+=b.left+b.right,S.height+=b.top+b.bottom;let P=Cye(i),E=wM(l),$=wM(g),Q=l.tagName==="BODY"?Kf(g):EM(g,l);return g.tagName==="HTML"&&l.tagName==="BODY"&&($.scroll.top=0,$.scroll.left=0),Iye(t,O,S,P,b,a,o,E,$,Q,s,u,_,c,f,p)}function Kf(e){let{top:t,left:n,width:r,height:i}=e.getBoundingClientRect(),{scrollTop:a,scrollLeft:o,clientTop:l,clientLeft:s}=document.documentElement;return{top:t+a-l,left:n+o-s,width:r,height:i}}function EM(e,t){let n=window.getComputedStyle(e),r;if(n.position==="fixed"){let{top:i,left:a,width:o,height:l}=e.getBoundingClientRect();r={top:i,left:a,width:o,height:l}}else{r=Kf(e);let i=Kf(t),a=window.getComputedStyle(t);i.top+=(parseInt(a.borderTopWidth,10)||0)-t.scrollTop,i.left+=(parseInt(a.borderLeftWidth,10)||0)-t.scrollLeft,r.top-=i.top,r.left-=i.left}return r.top-=parseInt(n.marginTop,10)||0,r.left-=parseInt(n.marginLeft,10)||0,r}function Mye(e){let t=e.offsetParent;if(t&&t===document.body&&window.getComputedStyle(t).position==="static"&&!RM(t)&&(t=document.documentElement),t==null)for(t=e.parentElement;t&&!RM(t);)t=t.parentElement;return t||document.documentElement}function RM(e){let t=window.getComputedStyle(e);return t.transform!=="none"||/transform|perspective/.test(t.willChange)||t.filter!=="none"||t.contain==="paint"||"backdropFilter"in t&&t.backdropFilter!=="none"||"WebkitBackdropFilter"in t&&t.WebkitBackdropFilter!=="none"}const $q=new WeakMap;function Lye(e){let{triggerRef:t,isOpen:n,onClose:r}=e;R.useEffect(()=>{if(!n||r===null)return;let i=a=>{let o=a.target;if(!t.current||o instanceof Node&&!o.contains(t.current))return;let l=r||$q.get(t.current);l&&l()};return window.addEventListener("scroll",i,!0),()=>{window.removeEventListener("scroll",i,!0)}},[n,r,t])}const Fye=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),Nye=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function zye(e){if(Intl.Locale){let n=new Intl.Locale(e).maximize(),r=typeof n.getTextInfo=="function"?n.getTextInfo():n.textInfo;if(r)return r.direction==="rtl";if(n.script)return Fye.has(n.script)}let t=e.split("-")[0];return Nye.has(t)}const Uye=Symbol.for("react-aria.i18n.locale");function xq(){let e=typeof window<"u"&&window[Uye]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:zye(e)?"rtl":"ltr"}}let uP=xq(),cp=new Set;function kM(){uP=xq();for(let e of cp)e(uP)}function qye(){let e=Ik(),[t,n]=R.useState(uP);return R.useEffect(()=>(cp.size===0&&window.addEventListener("languagechange",kM),cp.add(n),()=>{cp.delete(n),cp.size===0&&window.removeEventListener("languagechange",kM)}),[]),e?{locale:"en-US",direction:"ltr"}:t}const jye=pe.createContext(null);function Vo(){let e=qye();return R.useContext(jye)||e}const Vye=Symbol.for("react-aria.i18n.locale"),Zye=Symbol.for("react-aria.i18n.strings");let nf;class z1{getStringForLocale(t,n){let i=this.getStringsForLocale(n)[t];if(!i)throw new Error(`Could not find intl message ${t} in ${n} locale`);return i}getStringsForLocale(t){let n=this.strings[t];return n||(n=Wye(t,this.strings,this.defaultLocale),this.strings[t]=n),n}static getGlobalDictionaryForPackage(t){if(typeof window>"u")return null;let n=window[Vye];if(nf===void 0){let i=window[Zye];if(!i)return null;nf={};for(let a in i)nf[a]=new z1({[n]:i[a]},n)}let r=nf==null?void 0:nf[t];if(!r)throw new Error(`Strings for package "${t}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return r}constructor(t,n="en-US"){this.strings=Object.fromEntries(Object.entries(t).filter(([,r])=>r)),this.defaultLocale=n}}function Wye(e,t,n="en-US"){if(t[e])return t[e];let r=Xye(e);if(t[r])return t[r];for(let i in t)if(i.startsWith(r+"-"))return t[i];return t[n]}function Xye(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}const TM=new Map,CM=new Map;class Yye{format(t,n){let r=this.strings.getStringForLocale(t,this.locale);return typeof r=="function"?r(n,this):r}plural(t,n,r="cardinal"){let i=n["="+t];if(i)return typeof i=="function"?i():i;let a=this.locale+":"+r,o=TM.get(a);o||(o=new Intl.PluralRules(this.locale,{type:r}),TM.set(a,o));let l=o.select(t);return i=n[l]||n.other,typeof i=="function"?i():i}number(t){let n=CM.get(this.locale);return n||(n=new Intl.NumberFormat(this.locale),CM.set(this.locale,n)),n.format(t)}select(t,n){let r=t[n]||t.other;return typeof r=="function"?r():r}constructor(t,n){this.locale=t,this.strings=n}}const QM=new WeakMap;function Gye(e){let t=QM.get(e);return t||(t=new z1(e),QM.set(e,t)),t}function Bye(e,t){return t&&z1.getGlobalDictionaryForPackage(t)||Gye(e)}function Nk(e,t){let{locale:n}=Vo(),r=Bye(e,t);return R.useMemo(()=>new Yye(n,r),[n,r])}function Hye(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Kye(e,t,n){Hye(e,t),t.set(e,n)}let pw=new Map,cP=!1;try{cP=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let Fy=!1;try{Fy=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const Pq={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class Jye{format(t){let n="";if(!cP&&this.options.signDisplay!=null?n=t0e(this.numberFormatter,this.options.signDisplay,t):n=this.numberFormatter.format(t),this.options.style==="unit"&&!Fy){var r;let{unit:i,unitDisplay:a="short",locale:o}=this.resolvedOptions();if(!i)return n;let l=(r=Pq[i])===null||r===void 0?void 0:r[a];n+=l[o]||l.default}return n}formatToParts(t){return this.numberFormatter.formatToParts(t)}formatRange(t,n){if(typeof this.numberFormatter.formatRange=="function")return this.numberFormatter.formatRange(t,n);if(n<t)throw new RangeError("End date must be >= start date");return`${this.format(t)} – ${this.format(n)}`}formatRangeToParts(t,n){if(typeof this.numberFormatter.formatRangeToParts=="function")return this.numberFormatter.formatRangeToParts(t,n);if(n<t)throw new RangeError("End date must be >= start date");let r=this.numberFormatter.formatToParts(t),i=this.numberFormatter.formatToParts(n);return[...r.map(a=>({...a,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...i.map(a=>({...a,source:"endRange"}))]}resolvedOptions(){let t=this.numberFormatter.resolvedOptions();return!cP&&this.options.signDisplay!=null&&(t={...t,signDisplay:this.options.signDisplay}),!Fy&&this.options.style==="unit"&&(t={...t,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),t}constructor(t,n={}){this.numberFormatter=e0e(t,n),this.options=n}}function e0e(e,t={}){let{numberingSystem:n}=t;if(n&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${n}`),t.style==="unit"&&!Fy){var r;let{unit:o,unitDisplay:l="short"}=t;if(!o)throw new Error('unit option must be provided with style: "unit"');if(!(!((r=Pq[o])===null||r===void 0)&&r[l]))throw new Error(`Unsupported unit ${o} with unitDisplay = ${l}`);t={...t,style:"decimal"}}let i=e+(t?Object.entries(t).sort((o,l)=>o[0]<l[0]?-1:1).join():"");if(pw.has(i))return pw.get(i);let a=new Intl.NumberFormat(e,t);return pw.set(i,a),a}function t0e(e,t,n){if(t==="auto")return e.format(n);if(t==="never")return e.format(Math.abs(n));{let r=!1;if(t==="always"?r=n>0||Object.is(n,0):t==="exceptZero"&&(Object.is(n,-0)||Object.is(n,0)?n=Math.abs(n):r=n>0),r){let i=e.format(-n),a=e.format(n),o=i.replace(a,"").replace(/\u200e|\u061C/,"");return[...o].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),i.replace(a,"!!!").replace(o,"+").replace("!!!",a)}else return e.format(n)}}function n0e(e={}){let{locale:t}=Vo();return R.useMemo(()=>new Jye(t,e),[t,e])}let gw=new Map;function Eq(e){let{locale:t}=Vo(),n=t+(e?Object.entries(e).sort((i,a)=>i[0]<a[0]?-1:1).join():"");if(gw.has(n))return gw.get(n);let r=new Intl.Collator(t,e);return gw.set(n,r),r}let Rn=typeof document<"u"&&window.visualViewport;function QWe(e){let{direction:t}=Vo(),{arrowSize:n=0,targetRef:r,overlayRef:i,scrollRef:a=i,placement:o="bottom",containerPadding:l=12,shouldFlip:s=!0,boundaryElement:u=typeof document<"u"?document.body:null,offset:c=0,crossOffset:f=0,shouldUpdatePosition:p=!0,isOpen:g=!0,onClose:v,maxHeight:m,arrowBoundaryOffset:_=0}=e,[O,S]=R.useState({position:{},arrowOffsetLeft:void 0,arrowOffsetTop:void 0,maxHeight:void 0,placement:void 0}),b=[p,o,i.current,r.current,a.current,l,s,u,c,f,g,t,m,_,n],P=R.useRef(Rn==null?void 0:Rn.scale);R.useEffect(()=>{g&&(P.current=Rn==null?void 0:Rn.scale)},[g]);let E=R.useCallback(()=>{if(p===!1||!g||!i.current||!r.current||!a.current||!u||(Rn==null?void 0:Rn.scale)!==P.current)return;let k=i.current;if(!m&&i.current){var D;k.style.top="0px",k.style.bottom="";var T;k.style.maxHeight=((T=(D=window.visualViewport)===null||D===void 0?void 0:D.height)!==null&&T!==void 0?T:window.innerHeight)+"px"}let A=Dye({placement:i0e(o,t),overlayNode:i.current,targetNode:r.current,scrollNode:a.current,padding:l,shouldFlip:s,boundaryElement:u,offset:c,crossOffset:f,maxHeight:m,arrowSize:n,arrowBoundaryOffset:_});k.style.top="",k.style.bottom="",Object.keys(A.position).forEach(M=>k.style[M]=A.position[M]+"px"),k.style.maxHeight=A.maxHeight!=null?A.maxHeight+"px":void 0,S(A)},b);qt(E,b),r0e(E),_q({ref:i,onResize:E});let $=R.useRef(!1);qt(()=>{let k,D=()=>{$.current=!0,clearTimeout(k),k=setTimeout(()=>{$.current=!1},500),E()},T=()=>{$.current&&D()};return Rn==null||Rn.addEventListener("resize",D),Rn==null||Rn.addEventListener("scroll",T),()=>{Rn==null||Rn.removeEventListener("resize",D),Rn==null||Rn.removeEventListener("scroll",T)}},[E]);let Q=R.useCallback(()=>{$.current||v()},[v,$]);return Lye({triggerRef:r,isOpen:g,onClose:v&&Q}),{overlayProps:{style:{position:"absolute",zIndex:1e5,...O.position,maxHeight:O.maxHeight}},placement:O.placement,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:O.arrowOffsetLeft,top:O.arrowOffsetTop}},updatePosition:E}}function r0e(e){qt(()=>(window.addEventListener("resize",e,!1),()=>{window.removeEventListener("resize",e,!1)}),[e])}function i0e(e,t){return t==="rtl"?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")}let Nf="default",fP="",ZO=new WeakMap;function dP(e){if(N1()){if(Nf==="default"){const t=ln(e);fP=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}Nf="disabled"}else(e instanceof HTMLElement||e instanceof SVGElement)&&(ZO.set(e,e.style.userSelect),e.style.userSelect="none")}function fp(e){if(N1()){if(Nf!=="disabled")return;Nf="restoring",setTimeout(()=>{mq(()=>{if(Nf==="restoring"){const t=ln(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=fP||""),fP="",Nf="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&ZO.has(e)){let t=ZO.get(e);e.style.userSelect==="none"&&(e.style.userSelect=t),e.getAttribute("style")===""&&e.removeAttribute("style"),ZO.delete(e)}}const Ny=pe.createContext({register:()=>{}});Ny.displayName="PressResponderContext";function a0e(e,t){return t.get?t.get.call(e):t.value}function Rq(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function o0e(e,t){var n=Rq(e,t,"get");return a0e(e,n)}function l0e(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}}function AM(e,t,n){var r=Rq(e,t,"set");return l0e(e,r,n),n}function s0e(e){let t=R.useContext(Ny);if(t){let{register:n,...r}=t;e=mt(r,e),n()}return Fk(t,e.ref),e}var Ym=new WeakMap;class Gm{continuePropagation(){AM(this,Ym,!1)}get shouldStopPropagation(){return o0e(this,Ym)}constructor(t,n,r){Kye(this,Ym,{writable:!0,value:void 0}),AM(this,Ym,!0),this.type=t,this.pointerType=n,this.target=r.currentTarget,this.shiftKey=r.shiftKey,this.metaKey=r.metaKey,this.ctrlKey=r.ctrlKey,this.altKey=r.altKey}}const IM=Symbol("linkClicked");function kl(e){let{onPress:t,onPressChange:n,onPressStart:r,onPressEnd:i,onPressUp:a,isDisabled:o,isPressed:l,preventFocusOnPress:s,shouldCancelOnPointerExit:u,allowTextSelectionOnPress:c,ref:f,...p}=s0e(e),[g,v]=R.useState(!1),m=R.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:_,removeAllGlobalListeners:O}=Yg(),S=pr((k,D)=>{let T=m.current;if(o||T.didFirePressStart)return!1;let A=!0;if(T.isTriggeringEvent=!0,r){let M=new Gm("pressstart",D,k);r(M),A=M.shouldStopPropagation}return n&&n(!0),T.isTriggeringEvent=!1,T.didFirePressStart=!0,v(!0),A}),b=pr((k,D,T=!0)=>{let A=m.current;if(!A.didFirePressStart)return!1;A.ignoreClickAfterPress=!0,A.didFirePressStart=!1,A.isTriggeringEvent=!0;let M=!0;if(i){let L=new Gm("pressend",D,k);i(L),M=L.shouldStopPropagation}if(n&&n(!1),v(!1),t&&T&&!o){let L=new Gm("press",D,k);t(L),M&&(M=L.shouldStopPropagation)}return A.isTriggeringEvent=!1,M}),P=pr((k,D)=>{let T=m.current;if(o)return!1;if(a){T.isTriggeringEvent=!0;let A=new Gm("pressup",D,k);return a(A),T.isTriggeringEvent=!1,A.shouldStopPropagation}return!0}),E=pr(k=>{let D=m.current;D.isPressed&&D.target&&(D.isOverTarget&&D.pointerType!=null&&b(al(D.target,k),D.pointerType,!1),D.isPressed=!1,D.isOverTarget=!1,D.activePointerId=null,D.pointerType=null,O(),c||fp(D.target))}),$=pr(k=>{u&&E(k)}),Q=R.useMemo(()=>{let k=m.current,D={onKeyDown(A){if(vw(A.nativeEvent,A.currentTarget)&&A.currentTarget.contains(A.target)){var M;MM(A.target,A.key)&&A.preventDefault();let L=!0;if(!k.isPressed&&!A.repeat){k.target=A.currentTarget,k.isPressed=!0,L=S(A,"keyboard");let N=A.currentTarget,j=B=>{vw(B,N)&&!B.repeat&&N.contains(B.target)&&k.target&&P(al(k.target,B),"keyboard")};_(ln(A.currentTarget),"keyup",oc(j,T),!0)}L&&A.stopPropagation(),A.metaKey&&Is()&&((M=k.metaKeyEvents)===null||M===void 0||M.set(A.key,A.nativeEvent))}else A.key==="Meta"&&(k.metaKeyEvents=new Map)},onClick(A){if(!(A&&!A.currentTarget.contains(A.target))&&A&&A.button===0&&!k.isTriggeringEvent&&!lc.isOpening){let M=!0;if(o&&A.preventDefault(),!k.ignoreClickAfterPress&&!k.ignoreEmulatedMouseEvents&&!k.isPressed&&(k.pointerType==="virtual"||lP(A.nativeEvent))){!o&&!s&&Ro(A.currentTarget);let L=S(A,"virtual"),N=P(A,"virtual"),j=b(A,"virtual");M=L&&N&&j}k.ignoreEmulatedMouseEvents=!1,k.ignoreClickAfterPress=!1,M&&A.stopPropagation()}}},T=A=>{var M;if(k.isPressed&&k.target&&vw(A,k.target)){var L;MM(A.target,A.key)&&A.preventDefault();let j=A.target;b(al(k.target,A),"keyboard",k.target.contains(j)),O(),A.key!=="Enter"&&zk(k.target)&&k.target.contains(j)&&!A[IM]&&(A[IM]=!0,lc(k.target,A,!1)),k.isPressed=!1,(L=k.metaKeyEvents)===null||L===void 0||L.delete(A.key)}else if(A.key==="Meta"&&(!((M=k.metaKeyEvents)===null||M===void 0)&&M.size)){var N;let j=k.metaKeyEvents;k.metaKeyEvents=void 0;for(let B of j.values())(N=k.target)===null||N===void 0||N.dispatchEvent(new KeyboardEvent("keyup",B))}};if(typeof PointerEvent<"u"){D.onPointerDown=N=>{if(N.button!==0||!N.currentTarget.contains(N.target))return;if(kye(N.nativeEvent)){k.pointerType="virtual";return}mw(N.currentTarget)&&N.preventDefault(),k.pointerType=N.pointerType;let j=!0;k.isPressed||(k.isPressed=!0,k.isOverTarget=!0,k.activePointerId=N.pointerId,k.target=N.currentTarget,!o&&!s&&Ro(N.currentTarget),c||dP(k.target),j=S(N,k.pointerType),_(ln(N.currentTarget),"pointermove",A,!1),_(ln(N.currentTarget),"pointerup",M,!1),_(ln(N.currentTarget),"pointercancel",L,!1)),j&&N.stopPropagation()},D.onMouseDown=N=>{N.currentTarget.contains(N.target)&&N.button===0&&(mw(N.currentTarget)&&N.preventDefault(),N.stopPropagation())},D.onPointerUp=N=>{!N.currentTarget.contains(N.target)||k.pointerType==="virtual"||N.button===0&&rf(N,N.currentTarget)&&P(N,k.pointerType||N.pointerType)};let A=N=>{N.pointerId===k.activePointerId&&(k.target&&rf(N,k.target)?!k.isOverTarget&&k.pointerType!=null&&(k.isOverTarget=!0,S(al(k.target,N),k.pointerType)):k.target&&k.isOverTarget&&k.pointerType!=null&&(k.isOverTarget=!1,b(al(k.target,N),k.pointerType,!1),$(N)))},M=N=>{N.pointerId===k.activePointerId&&k.isPressed&&N.button===0&&k.target&&(rf(N,k.target)&&k.pointerType!=null?b(al(k.target,N),k.pointerType):k.isOverTarget&&k.pointerType!=null&&b(al(k.target,N),k.pointerType,!1),k.isPressed=!1,k.isOverTarget=!1,k.activePointerId=null,k.pointerType=null,O(),c||fp(k.target))},L=N=>{E(N)};D.onDragStart=N=>{N.currentTarget.contains(N.target)&&E(N)}}else{D.onMouseDown=L=>{if(L.button!==0||!L.currentTarget.contains(L.target))return;if(mw(L.currentTarget)&&L.preventDefault(),k.ignoreEmulatedMouseEvents){L.stopPropagation();return}k.isPressed=!0,k.isOverTarget=!0,k.target=L.currentTarget,k.pointerType=lP(L.nativeEvent)?"virtual":"mouse",!o&&!s&&Ro(L.currentTarget),S(L,k.pointerType)&&L.stopPropagation(),_(ln(L.currentTarget),"mouseup",A,!1)},D.onMouseEnter=L=>{if(!L.currentTarget.contains(L.target))return;let N=!0;k.isPressed&&!k.ignoreEmulatedMouseEvents&&k.pointerType!=null&&(k.isOverTarget=!0,N=S(L,k.pointerType)),N&&L.stopPropagation()},D.onMouseLeave=L=>{if(!L.currentTarget.contains(L.target))return;let N=!0;k.isPressed&&!k.ignoreEmulatedMouseEvents&&k.pointerType!=null&&(k.isOverTarget=!1,N=b(L,k.pointerType,!1),$(L)),N&&L.stopPropagation()},D.onMouseUp=L=>{L.currentTarget.contains(L.target)&&!k.ignoreEmulatedMouseEvents&&L.button===0&&P(L,k.pointerType||"mouse")};let A=L=>{if(L.button===0){if(k.isPressed=!1,O(),k.ignoreEmulatedMouseEvents){k.ignoreEmulatedMouseEvents=!1;return}k.target&&rf(L,k.target)&&k.pointerType!=null?b(al(k.target,L),k.pointerType):k.target&&k.isOverTarget&&k.pointerType!=null&&b(al(k.target,L),k.pointerType,!1),k.isOverTarget=!1}};D.onTouchStart=L=>{if(!L.currentTarget.contains(L.target))return;let N=u0e(L.nativeEvent);if(!N)return;k.activePointerId=N.identifier,k.ignoreEmulatedMouseEvents=!0,k.isOverTarget=!0,k.isPressed=!0,k.target=L.currentTarget,k.pointerType="touch",!o&&!s&&Ro(L.currentTarget),c||dP(k.target),S(L,k.pointerType)&&L.stopPropagation(),_(Oa(L.currentTarget),"scroll",M,!0)},D.onTouchMove=L=>{if(!L.currentTarget.contains(L.target))return;if(!k.isPressed){L.stopPropagation();return}let N=DM(L.nativeEvent,k.activePointerId),j=!0;N&&rf(N,L.currentTarget)?!k.isOverTarget&&k.pointerType!=null&&(k.isOverTarget=!0,j=S(L,k.pointerType)):k.isOverTarget&&k.pointerType!=null&&(k.isOverTarget=!1,j=b(L,k.pointerType,!1),$(L)),j&&L.stopPropagation()},D.onTouchEnd=L=>{if(!L.currentTarget.contains(L.target))return;if(!k.isPressed){L.stopPropagation();return}let N=DM(L.nativeEvent,k.activePointerId),j=!0;N&&rf(N,L.currentTarget)&&k.pointerType!=null?(P(L,k.pointerType),j=b(L,k.pointerType)):k.isOverTarget&&k.pointerType!=null&&(j=b(L,k.pointerType,!1)),j&&L.stopPropagation(),k.isPressed=!1,k.activePointerId=null,k.isOverTarget=!1,k.ignoreEmulatedMouseEvents=!0,k.target&&!c&&fp(k.target),O()},D.onTouchCancel=L=>{L.currentTarget.contains(L.target)&&(L.stopPropagation(),k.isPressed&&E(L))};let M=L=>{k.isPressed&&L.target.contains(k.target)&&E({currentTarget:k.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};D.onDragStart=L=>{L.currentTarget.contains(L.target)&&E(L)}}return D},[_,o,s,O,c,E,$,b,S,P]);return R.useEffect(()=>()=>{var k;c||fp((k=m.current.target)!==null&&k!==void 0?k:void 0)},[c]),{isPressed:l||g,pressProps:mt(p,Q)}}function zk(e){return e.tagName==="A"&&e.hasAttribute("href")}function vw(e,t){const{key:n,code:r}=e,i=t,a=i.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||r==="Space")&&!(i instanceof Oa(i).HTMLInputElement&&!kq(i,n)||i instanceof Oa(i).HTMLTextAreaElement||i.isContentEditable)&&!((a==="link"||!a&&zk(i))&&n!=="Enter")}function u0e(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}function DM(e,t){const n=e.changedTouches;for(let r=0;r<n.length;r++){const i=n[r];if(i.identifier===t)return i}return null}function al(e,t){return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey}}function c0e(e){let t=0,n=0;return e.width!==void 0?t=e.width/2:e.radiusX!==void 0&&(t=e.radiusX),e.height!==void 0?n=e.height/2:e.radiusY!==void 0&&(n=e.radiusY),{top:e.clientY-n,right:e.clientX+t,bottom:e.clientY+n,left:e.clientX-t}}function f0e(e,t){return!(e.left>t.right||t.left>e.right||e.top>t.bottom||t.top>e.bottom)}function rf(e,t){let n=t.getBoundingClientRect(),r=c0e(e);return f0e(n,r)}function mw(e){return!(e instanceof HTMLElement)||!e.hasAttribute("draggable")}function MM(e,t){return e instanceof HTMLInputElement?!kq(e,t):e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!zk(e)}const d0e=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function kq(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":d0e.has(e.type)}const AWe=pe.forwardRef(({children:e,...t},n)=>{let r=R.useRef(!1),i=R.useContext(Ny);n=yq(n||(i==null?void 0:i.ref));let a=mt(i||{},{...t,ref:n,register(){r.current=!0,i&&i.register()}});return Fk(i,n),R.useEffect(()=>{r.current||(console.warn("A PressResponder was rendered without a pressable child. Either call the usePress hook, or wrap your DOM node with <Pressable> component."),r.current=!0)},[]),pe.createElement(Ny.Provider,{value:a},e)});class h0e{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(t,n){this.nativeEvent=n,this.target=n.target,this.currentTarget=n.currentTarget,this.relatedTarget=n.relatedTarget,this.bubbles=n.bubbles,this.cancelable=n.cancelable,this.defaultPrevented=n.defaultPrevented,this.eventPhase=n.eventPhase,this.isTrusted=n.isTrusted,this.timeStamp=n.timeStamp,this.type=t}}function Tq(e){let t=R.useRef({isFocused:!1,observer:null});qt(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=pr(r=>{e==null||e(r)});return R.useCallback(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){t.current.isFocused=!0;let i=r.target,a=o=>{t.current.isFocused=!1,i.disabled&&n(new h0e("blur",o)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};i.addEventListener("focusout",a,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&i.disabled){var o;(o=t.current.observer)===null||o===void 0||o.disconnect();let l=i===document.activeElement?null:document.activeElement;i.dispatchEvent(new FocusEvent("blur",{relatedTarget:l})),i.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:l}))}}),t.current.observer.observe(i,{attributes:!0,attributeFilter:["disabled"]})}},[n])}function Uk(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:i}=e;const a=R.useCallback(s=>{if(s.target===s.currentTarget)return r&&r(s),i&&i(!1),!0},[r,i]),o=Tq(a),l=R.useCallback(s=>{const u=ln(s.target);s.target===s.currentTarget&&u.activeElement===s.target&&(n&&n(s),i&&i(!0),o(s))},[i,n,o]);return{focusProps:{onFocus:!t&&(n||i||r)?l:void 0,onBlur:!t&&(r||i)?a:void 0}}}let Tl=null,dg=new Set,Tp=new Map,uc=!1,hP=!1;const p0e={Tab:!0,Escape:!0};function U1(e,t){for(let n of dg)n(e,t)}function g0e(e){return!(e.metaKey||!Is()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function zy(e){uc=!0,g0e(e)&&(Tl="keyboard",U1("keyboard",e))}function ga(e){Tl="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(uc=!0,U1("pointer",e))}function Cq(e){lP(e)&&(uc=!0,Tl="virtual")}function Qq(e){e.target===window||e.target===document||(!uc&&!hP&&(Tl="virtual",U1("virtual",e)),uc=!1,hP=!1)}function Aq(){uc=!1,hP=!0}function Uy(e){if(typeof window>"u"||Tp.get(Oa(e)))return;const t=Oa(e),n=ln(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){uc=!0,r.apply(this,arguments)},n.addEventListener("keydown",zy,!0),n.addEventListener("keyup",zy,!0),n.addEventListener("click",Cq,!0),t.addEventListener("focus",Qq,!0),t.addEventListener("blur",Aq,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",ga,!0),n.addEventListener("pointermove",ga,!0),n.addEventListener("pointerup",ga,!0)):(n.addEventListener("mousedown",ga,!0),n.addEventListener("mousemove",ga,!0),n.addEventListener("mouseup",ga,!0)),t.addEventListener("beforeunload",()=>{Iq(e)},{once:!0}),Tp.set(t,{focus:r})}const Iq=(e,t)=>{const n=Oa(e),r=ln(e);t&&r.removeEventListener("DOMContentLoaded",t),Tp.has(n)&&(n.HTMLElement.prototype.focus=Tp.get(n).focus,r.removeEventListener("keydown",zy,!0),r.removeEventListener("keyup",zy,!0),r.removeEventListener("click",Cq,!0),n.removeEventListener("focus",Qq,!0),n.removeEventListener("blur",Aq,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",ga,!0),r.removeEventListener("pointermove",ga,!0),r.removeEventListener("pointerup",ga,!0)):(r.removeEventListener("mousedown",ga,!0),r.removeEventListener("mousemove",ga,!0),r.removeEventListener("mouseup",ga,!0)),Tp.delete(n))};function v0e(e){const t=ln(e);let n;return t.readyState!=="loading"?Uy(e):(n=()=>{Uy(e)},t.addEventListener("DOMContentLoaded",n)),()=>Iq(e,n)}typeof document<"u"&&v0e();function hd(){return Tl!=="pointer"}function pd(){return Tl}function qk(e){Tl=e,U1(e,null)}function m0e(){Uy();let[e,t]=R.useState(Tl);return R.useEffect(()=>{let n=()=>{t(Tl)};return dg.add(n),()=>{dg.delete(n)}},[]),Ik()?null:e}const O0e=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function y0e(e,t,n){var r;const i=typeof window<"u"?Oa(n==null?void 0:n.target).HTMLInputElement:HTMLInputElement,a=typeof window<"u"?Oa(n==null?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,o=typeof window<"u"?Oa(n==null?void 0:n.target).HTMLElement:HTMLElement,l=typeof window<"u"?Oa(n==null?void 0:n.target).KeyboardEvent:KeyboardEvent;return e=e||(n==null?void 0:n.target)instanceof i&&!O0e.has(n==null||(r=n.target)===null||r===void 0?void 0:r.type)||(n==null?void 0:n.target)instanceof a||(n==null?void 0:n.target)instanceof o&&(n==null?void 0:n.target.isContentEditable),!(e&&t==="keyboard"&&n instanceof l&&!p0e[n.key])}function _0e(e,t,n){Uy(),R.useEffect(()=>{let r=(i,a)=>{y0e(!!(n!=null&&n.isTextInput),i,a)&&e(hd())};return dg.add(r),()=>{dg.delete(r)}},t)}function Bg(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:i}=e,a=R.useRef({isFocusWithin:!1}),o=R.useCallback(u=>{a.current.isFocusWithin&&!u.currentTarget.contains(u.relatedTarget)&&(a.current.isFocusWithin=!1,n&&n(u),i&&i(!1))},[n,i,a]),l=Tq(o),s=R.useCallback(u=>{!a.current.isFocusWithin&&document.activeElement===u.target&&(r&&r(u),i&&i(!0),a.current.isFocusWithin=!0,l(u))},[r,i,l]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:s,onBlur:o}}}let qy=!1,Ow=0;function pP(){qy=!0,setTimeout(()=>{qy=!1},50)}function LM(e){e.pointerType==="touch"&&pP()}function S0e(){if(!(typeof document>"u"))return typeof PointerEvent<"u"?document.addEventListener("pointerup",LM):document.addEventListener("touchend",pP),Ow++,()=>{Ow--,!(Ow>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",LM):document.removeEventListener("touchend",pP))}}function q1(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:i}=e,[a,o]=R.useState(!1),l=R.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;R.useEffect(S0e,[]);let{hoverProps:s,triggerHoverEnd:u}=R.useMemo(()=>{let c=(g,v)=>{if(l.pointerType=v,i||v==="touch"||l.isHovered||!g.currentTarget.contains(g.target))return;l.isHovered=!0;let m=g.currentTarget;l.target=m,t&&t({type:"hoverstart",target:m,pointerType:v}),n&&n(!0),o(!0)},f=(g,v)=>{if(l.pointerType="",l.target=null,v==="touch"||!l.isHovered)return;l.isHovered=!1;let m=g.currentTarget;r&&r({type:"hoverend",target:m,pointerType:v}),n&&n(!1),o(!1)},p={};return typeof PointerEvent<"u"?(p.onPointerEnter=g=>{qy&&g.pointerType==="mouse"||c(g,g.pointerType)},p.onPointerLeave=g=>{!i&&g.currentTarget.contains(g.target)&&f(g,g.pointerType)}):(p.onTouchStart=()=>{l.ignoreEmulatedMouseEvents=!0},p.onMouseEnter=g=>{!l.ignoreEmulatedMouseEvents&&!qy&&c(g,"mouse"),l.ignoreEmulatedMouseEvents=!1},p.onMouseLeave=g=>{!i&&g.currentTarget.contains(g.target)&&f(g,"mouse")}),{hoverProps:p,triggerHoverEnd:f}},[t,n,r,i,l]);return R.useEffect(()=>{i&&u({currentTarget:l.target},l.pointerType)},[i]),{hoverProps:s,isHovered:a}}function b0e(e){let{ref:t,onInteractOutside:n,isDisabled:r,onInteractOutsideStart:i}=e,a=R.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),o=pr(s=>{n&&Bm(s,t)&&(i&&i(s),a.current.isPointerDown=!0)}),l=pr(s=>{n&&n(s)});R.useEffect(()=>{let s=a.current;if(r)return;const u=t.current,c=ln(u);if(typeof PointerEvent<"u"){let f=p=>{s.isPointerDown&&Bm(p,t)&&l(p),s.isPointerDown=!1};return c.addEventListener("pointerdown",o,!0),c.addEventListener("pointerup",f,!0),()=>{c.removeEventListener("pointerdown",o,!0),c.removeEventListener("pointerup",f,!0)}}else{let f=g=>{s.ignoreEmulatedMouseEvents?s.ignoreEmulatedMouseEvents=!1:s.isPointerDown&&Bm(g,t)&&l(g),s.isPointerDown=!1},p=g=>{s.ignoreEmulatedMouseEvents=!0,s.isPointerDown&&Bm(g,t)&&l(g),s.isPointerDown=!1};return c.addEventListener("mousedown",o,!0),c.addEventListener("mouseup",f,!0),c.addEventListener("touchstart",o,!0),c.addEventListener("touchend",p,!0),()=>{c.removeEventListener("mousedown",o,!0),c.removeEventListener("mouseup",f,!0),c.removeEventListener("touchstart",o,!0),c.removeEventListener("touchend",p,!0)}}},[t,r,o,l])}function Bm(e,t){if(e.button>0)return!1;if(e.target){const n=e.target.ownerDocument;if(!n||!n.documentElement.contains(e.target)||e.target.closest("[data-react-aria-top-layer]"))return!1}return t.current&&!t.current.contains(e.target)}function FM(e){if(!e)return;let t=!0;return n=>{let r={...n,preventDefault(){n.preventDefault()},isDefaultPrevented(){return n.isDefaultPrevented()},stopPropagation(){console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior.")},continuePropagation(){t=!1}};e(r),t&&n.stopPropagation()}}function jk(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:FM(e.onKeyDown),onKeyUp:FM(e.onKeyUp)}}}function Dq(e){let{onMoveStart:t,onMove:n,onMoveEnd:r}=e,i=R.useRef({didMove:!1,lastPosition:null,id:null}),{addGlobalListener:a,removeGlobalListener:o}=Yg(),l=pr((c,f,p,g)=>{p===0&&g===0||(i.current.didMove||(i.current.didMove=!0,t==null||t({type:"movestart",pointerType:f,shiftKey:c.shiftKey,metaKey:c.metaKey,ctrlKey:c.ctrlKey,altKey:c.altKey})),n==null||n({type:"move",pointerType:f,deltaX:p,deltaY:g,shiftKey:c.shiftKey,metaKey:c.metaKey,ctrlKey:c.ctrlKey,altKey:c.altKey}))}),s=pr((c,f)=>{fp(),i.current.didMove&&(r==null||r({type:"moveend",pointerType:f,shiftKey:c.shiftKey,metaKey:c.metaKey,ctrlKey:c.ctrlKey,altKey:c.altKey}))});return{moveProps:R.useMemo(()=>{let c={},f=()=>{dP(),i.current.didMove=!1};if(typeof PointerEvent>"u"){let g=O=>{if(O.button===0){var S,b,P,E;l(O,"mouse",O.pageX-((P=(S=i.current.lastPosition)===null||S===void 0?void 0:S.pageX)!==null&&P!==void 0?P:0),O.pageY-((E=(b=i.current.lastPosition)===null||b===void 0?void 0:b.pageY)!==null&&E!==void 0?E:0)),i.current.lastPosition={pageX:O.pageX,pageY:O.pageY}}},v=O=>{O.button===0&&(s(O,"mouse"),o(window,"mousemove",g,!1),o(window,"mouseup",v,!1))};c.onMouseDown=O=>{O.button===0&&(f(),O.stopPropagation(),O.preventDefault(),i.current.lastPosition={pageX:O.pageX,pageY:O.pageY},a(window,"mousemove",g,!1),a(window,"mouseup",v,!1))};let m=O=>{let S=[...O.changedTouches].findIndex(({identifier:Q})=>Q===i.current.id);if(S>=0){var b,P;let{pageX:Q,pageY:k}=O.changedTouches[S];var E,$;l(O,"touch",Q-((E=(b=i.current.lastPosition)===null||b===void 0?void 0:b.pageX)!==null&&E!==void 0?E:0),k-(($=(P=i.current.lastPosition)===null||P===void 0?void 0:P.pageY)!==null&&$!==void 0?$:0)),i.current.lastPosition={pageX:Q,pageY:k}}},_=O=>{[...O.changedTouches].findIndex(({identifier:b})=>b===i.current.id)>=0&&(s(O,"touch"),i.current.id=null,o(window,"touchmove",m),o(window,"touchend",_),o(window,"touchcancel",_))};c.onTouchStart=O=>{if(O.changedTouches.length===0||i.current.id!=null)return;let{pageX:S,pageY:b,identifier:P}=O.changedTouches[0];f(),O.stopPropagation(),O.preventDefault(),i.current.lastPosition={pageX:S,pageY:b},i.current.id=P,a(window,"touchmove",m,!1),a(window,"touchend",_,!1),a(window,"touchcancel",_,!1)}}else{let g=m=>{if(m.pointerId===i.current.id){var _,O;let P=m.pointerType||"mouse";var S,b;l(m,P,m.pageX-((S=(_=i.current.lastPosition)===null||_===void 0?void 0:_.pageX)!==null&&S!==void 0?S:0),m.pageY-((b=(O=i.current.lastPosition)===null||O===void 0?void 0:O.pageY)!==null&&b!==void 0?b:0)),i.current.lastPosition={pageX:m.pageX,pageY:m.pageY}}},v=m=>{if(m.pointerId===i.current.id){let _=m.pointerType||"mouse";s(m,_),i.current.id=null,o(window,"pointermove",g,!1),o(window,"pointerup",v,!1),o(window,"pointercancel",v,!1)}};c.onPointerDown=m=>{m.button===0&&i.current.id==null&&(f(),m.stopPropagation(),m.preventDefault(),i.current.lastPosition={pageX:m.pageX,pageY:m.pageY},i.current.id=m.pointerId,a(window,"pointermove",g,!1),a(window,"pointerup",v,!1),a(window,"pointercancel",v,!1))}}let p=(g,v,m)=>{f(),l(g,"keyboard",v,m),s(g,"keyboard")};return c.onKeyDown=g=>{switch(g.key){case"Left":case"ArrowLeft":g.preventDefault(),g.stopPropagation(),p(g,-1,0);break;case"Right":case"ArrowRight":g.preventDefault(),g.stopPropagation(),p(g,1,0);break;case"Up":case"ArrowUp":g.preventDefault(),g.stopPropagation(),p(g,0,-1);break;case"Down":case"ArrowDown":g.preventDefault(),g.stopPropagation(),p(g,0,1);break}},c},[i,a,o,l,s])}}const w0e=500;function Mq(e){let{isDisabled:t,onLongPressStart:n,onLongPressEnd:r,onLongPress:i,threshold:a=w0e,accessibilityDescription:o}=e;const l=R.useRef();let{addGlobalListener:s,removeGlobalListener:u}=Yg(),{pressProps:c}=kl({isDisabled:t,onPressStart(p){if(p.continuePropagation(),(p.pointerType==="mouse"||p.pointerType==="touch")&&(n&&n({...p,type:"longpressstart"}),l.current=setTimeout(()=>{p.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),i&&i({...p,type:"longpress"}),l.current=void 0},a),p.pointerType==="touch")){let g=v=>{v.preventDefault()};s(p.target,"contextmenu",g,{once:!0}),s(window,"pointerup",()=>{setTimeout(()=>{u(p.target,"contextmenu",g)},30)},{once:!0})}},onPressEnd(p){l.current&&clearTimeout(l.current),r&&(p.pointerType==="mouse"||p.pointerType==="touch")&&r({...p,type:"longpressend"})}}),f=Eye(i&&!t?o:void 0);return{longPressProps:mt(c,f)}}function cc(e){const t=ln(e);if(pd()==="virtual"){let n=t.activeElement;mq(()=>{t.activeElement===n&&e.isConnected&&Ro(e)})}else Ro(e)}function $0e(e){const t=Oa(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:n,visibility:r}=e.style,i=n!=="none"&&r!=="hidden"&&r!=="collapse";if(i){const{getComputedStyle:a}=e.ownerDocument.defaultView;let{display:o,visibility:l}=a(e);i=o!=="none"&&l!=="hidden"&&l!=="collapse"}return i}function x0e(e,t){return!e.hasAttribute("hidden")&&!e.hasAttribute("data-react-aria-prevent-focus")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function Lq(e,t){return e.nodeName!=="#comment"&&$0e(e)&&x0e(e,t)&&(!e.parentElement||Lq(e.parentElement,e))}const NM=pe.createContext(null);let Gt=null;function IWe(e){let{children:t,contain:n,restoreFocus:r,autoFocus:i}=e,a=R.useRef(null),o=R.useRef(null),l=R.useRef([]),{parentNode:s}=R.useContext(NM)||{},u=R.useMemo(()=>new gP({scopeRef:l}),[l]);qt(()=>{let p=s||Dn.root;if(Dn.getTreeNode(p.scopeRef)&&Gt&&!Vy(Gt,p.scopeRef)){let g=Dn.getTreeNode(Gt);g&&(p=g)}p.addChild(u),Dn.addNode(u)},[u,s]),qt(()=>{let p=Dn.getTreeNode(l);p&&(p.contain=!!n)},[n]),qt(()=>{var p;let g=(p=a.current)===null||p===void 0?void 0:p.nextSibling,v=[];for(;g&&g!==o.current;)v.push(g),g=g.nextSibling;l.current=v},[t]),Q0e(l,r,n),k0e(l,n),I0e(l,r,n),C0e(l,i),R.useEffect(()=>{const p=ln(l.current?l.current[0]:void 0).activeElement;let g=null;if(Ir(p,l.current)){for(let v of Dn.traverse())v.scopeRef&&Ir(p,v.scopeRef.current)&&(g=v);g===Dn.getTreeNode(l)&&(Gt=g.scopeRef)}},[l]),qt(()=>()=>{var p,g,v;let m=(v=(g=Dn.getTreeNode(l))===null||g===void 0||(p=g.parent)===null||p===void 0?void 0:p.scopeRef)!==null&&v!==void 0?v:null;(l===Gt||Vy(l,Gt))&&(!m||Dn.getTreeNode(m))&&(Gt=m),Dn.removeTreeNode(l)},[l]);let c=R.useMemo(()=>P0e(l),[]),f=R.useMemo(()=>({focusManager:c,parentNode:u}),[u,c]);return pe.createElement(NM.Provider,{value:f},pe.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:a}),t,pe.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:o}))}function P0e(e){return{focusNext(t={}){let n=e.current,{from:r,tabbable:i,wrap:a,accept:o}=t,l=r||ln(n[0]).activeElement,s=n[0].previousElementSibling,u=Fu(n),c=ko(u,{tabbable:i,accept:o},n);c.currentNode=Ir(l,n)?l:s;let f=c.nextNode();return!f&&a&&(c.currentNode=s,f=c.nextNode()),f&&_l(f,!0),f},focusPrevious(t={}){let n=e.current,{from:r,tabbable:i,wrap:a,accept:o}=t,l=r||ln(n[0]).activeElement,s=n[n.length-1].nextElementSibling,u=Fu(n),c=ko(u,{tabbable:i,accept:o},n);c.currentNode=Ir(l,n)?l:s;let f=c.previousNode();return!f&&a&&(c.currentNode=s,f=c.previousNode()),f&&_l(f,!0),f},focusFirst(t={}){let n=e.current,{tabbable:r,accept:i}=t,a=Fu(n),o=ko(a,{tabbable:r,accept:i},n);o.currentNode=n[0].previousElementSibling;let l=o.nextNode();return l&&_l(l,!0),l},focusLast(t={}){let n=e.current,{tabbable:r,accept:i}=t,a=Fu(n),o=ko(a,{tabbable:r,accept:i},n);o.currentNode=n[n.length-1].nextElementSibling;let l=o.previousNode();return l&&_l(l,!0),l}}}const Vk=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[contenteditable]"],E0e=Vk.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";Vk.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const R0e=Vk.join(':not([hidden]):not([tabindex="-1"]),');function Fu(e){return e[0].parentElement}function dp(e){let t=Dn.getTreeNode(Gt);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function k0e(e,t){let n=R.useRef(),r=R.useRef();qt(()=>{let i=e.current;if(!t){r.current&&(cancelAnimationFrame(r.current),r.current=void 0);return}const a=ln(i?i[0]:void 0);let o=u=>{if(u.key!=="Tab"||u.altKey||u.ctrlKey||u.metaKey||!dp(e)||u.isComposing)return;let c=a.activeElement,f=e.current;if(!f||!Ir(c,f))return;let p=Fu(f),g=ko(p,{tabbable:!0},f);if(!c)return;g.currentNode=c;let v=u.shiftKey?g.previousNode():g.nextNode();v||(g.currentNode=u.shiftKey?f[f.length-1].nextElementSibling:f[0].previousElementSibling,v=u.shiftKey?g.previousNode():g.nextNode()),u.preventDefault(),v&&_l(v,!0)},l=u=>{(!Gt||Vy(Gt,e))&&Ir(u.target,e.current)?(Gt=e,n.current=u.target):dp(e)&&!jy(u.target,e)?n.current?n.current.focus():Gt&&Gt.current&&Zy(Gt.current):dp(e)&&(n.current=u.target)},s=u=>{r.current&&cancelAnimationFrame(r.current),r.current=requestAnimationFrame(()=>{if(a.activeElement&&dp(e)&&!jy(a.activeElement,e))if(Gt=e,a.body.contains(u.target)){var c;n.current=u.target,(c=n.current)===null||c===void 0||c.focus()}else Gt.current&&Zy(Gt.current)})};return a.addEventListener("keydown",o,!1),a.addEventListener("focusin",l,!1),i==null||i.forEach(u=>u.addEventListener("focusin",l,!1)),i==null||i.forEach(u=>u.addEventListener("focusout",s,!1)),()=>{a.removeEventListener("keydown",o,!1),a.removeEventListener("focusin",l,!1),i==null||i.forEach(u=>u.removeEventListener("focusin",l,!1)),i==null||i.forEach(u=>u.removeEventListener("focusout",s,!1))}},[e,t]),qt(()=>()=>{r.current&&cancelAnimationFrame(r.current)},[r])}function Fq(e){return jy(e)}function Ir(e,t){return!e||!t?!1:t.some(n=>n.contains(e))}function jy(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of Dn.traverse(Dn.getTreeNode(t)))if(n&&Ir(e,n.current))return!0;return!1}function T0e(e){return jy(e,Gt)}function Vy(e,t){var n;let r=(n=Dn.getTreeNode(t))===null||n===void 0?void 0:n.parent;for(;r;){if(r.scopeRef===e)return!0;r=r.parent}return!1}function _l(e,t=!1){if(e!=null&&!t)try{cc(e)}catch{}else if(e!=null)try{e.focus()}catch{}}function Zy(e,t=!0){let n=e[0].previousElementSibling,r=Fu(e),i=ko(r,{tabbable:t},e);i.currentNode=n;let a=i.nextNode();t&&!a&&(r=Fu(e),i=ko(r,{tabbable:!1},e),i.currentNode=n,a=i.nextNode()),_l(a)}function C0e(e,t){const n=pe.useRef(t);R.useEffect(()=>{if(n.current){Gt=e;const r=ln(e.current?e.current[0]:void 0);!Ir(r.activeElement,Gt.current)&&e.current&&Zy(e.current)}n.current=!1},[e])}function Q0e(e,t,n){qt(()=>{if(t||n)return;let r=e.current;const i=ln(r?r[0]:void 0);let a=o=>{let l=o.target;Ir(l,e.current)?Gt=e:Fq(l)||(Gt=null)};return i.addEventListener("focusin",a,!1),r==null||r.forEach(o=>o.addEventListener("focusin",a,!1)),()=>{i.removeEventListener("focusin",a,!1),r==null||r.forEach(o=>o.removeEventListener("focusin",a,!1))}},[e,t,n])}function A0e(e){let t=Dn.getTreeNode(Gt);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return(t==null?void 0:t.scopeRef)===e}function I0e(e,t,n){const r=R.useRef(typeof document<"u"?ln(e.current?e.current[0]:void 0).activeElement:null);qt(()=>{let i=e.current;const a=ln(i?i[0]:void 0);if(!t||n)return;let o=()=>{(!Gt||Vy(Gt,e))&&Ir(a.activeElement,e.current)&&(Gt=e)};return a.addEventListener("focusin",o,!1),i==null||i.forEach(l=>l.addEventListener("focusin",o,!1)),()=>{a.removeEventListener("focusin",o,!1),i==null||i.forEach(l=>l.removeEventListener("focusin",o,!1))}},[e,n]),qt(()=>{const i=ln(e.current?e.current[0]:void 0);if(!t)return;let a=o=>{if(o.key!=="Tab"||o.altKey||o.ctrlKey||o.metaKey||!dp(e)||o.isComposing)return;let l=i.activeElement;if(!Ir(l,e.current))return;let s=Dn.getTreeNode(e);if(!s)return;let u=s.nodeToRestore,c=ko(i.body,{tabbable:!0});c.currentNode=l;let f=o.shiftKey?c.previousNode():c.nextNode();if((!u||!i.body.contains(u)||u===i.body)&&(u=void 0,s.nodeToRestore=void 0),(!f||!Ir(f,e.current))&&u){c.currentNode=u;do f=o.shiftKey?c.previousNode():c.nextNode();while(Ir(f,e.current));o.preventDefault(),o.stopPropagation(),f?_l(f,!0):Fq(u)?_l(u,!0):l.blur()}};return n||i.addEventListener("keydown",a,!0),()=>{n||i.removeEventListener("keydown",a,!0)}},[e,t,n]),qt(()=>{const i=ln(e.current?e.current[0]:void 0);if(!t)return;let a=Dn.getTreeNode(e);if(a){var o;return a.nodeToRestore=(o=r.current)!==null&&o!==void 0?o:void 0,()=>{let l=Dn.getTreeNode(e);if(!l)return;let s=l.nodeToRestore;if(t&&s&&(Ir(i.activeElement,e.current)||i.activeElement===i.body&&A0e(e))){let u=Dn.clone();requestAnimationFrame(()=>{if(i.activeElement===i.body){let c=u.getTreeNode(e);for(;c;){if(c.nodeToRestore&&c.nodeToRestore.isConnected){_l(c.nodeToRestore);return}c=c.parent}for(c=u.getTreeNode(e);c;){if(c.scopeRef&&c.scopeRef.current&&Dn.getTreeNode(c.scopeRef)){Zy(c.scopeRef.current,!0);return}c=c.parent}}})}}}},[e,t])}function ko(e,t,n){let r=t!=null&&t.tabbable?R0e:E0e,i=ln(e).createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode(a){var o;return!(t==null||(o=t.from)===null||o===void 0)&&o.contains(a)?NodeFilter.FILTER_REJECT:a.matches(r)&&Lq(a)&&(!n||Ir(a,n))&&(!(t!=null&&t.accept)||t.accept(a))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t!=null&&t.from&&(i.currentNode=t.from),i}class Zk{get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,n,r){let i=this.fastMap.get(n??null);if(!i)return;let a=new gP({scopeRef:t});i.addChild(a),a.parent=i,this.fastMap.set(t,a),r&&(a.nodeToRestore=r)}addNode(t){this.fastMap.set(t.scopeRef,t)}removeTreeNode(t){if(t===null)return;let n=this.fastMap.get(t);if(!n)return;let r=n.parent;for(let a of this.traverse())a!==n&&n.nodeToRestore&&a.nodeToRestore&&n.scopeRef&&n.scopeRef.current&&Ir(a.nodeToRestore,n.scopeRef.current)&&(a.nodeToRestore=n.nodeToRestore);let i=n.children;r&&(r.removeChild(n),i.size>0&&i.forEach(a=>r&&r.addChild(a))),this.fastMap.delete(n.scopeRef)}*traverse(t=this.root){if(t.scopeRef!=null&&(yield t),t.children.size>0)for(let n of t.children)yield*this.traverse(n)}clone(){var t;let n=new Zk;var r;for(let i of this.traverse())n.addTreeNode(i.scopeRef,(r=(t=i.parent)===null||t===void 0?void 0:t.scopeRef)!==null&&r!==void 0?r:null,i.nodeToRestore);return n}constructor(){this.fastMap=new Map,this.root=new gP({scopeRef:null}),this.fastMap.set(null,this.root)}}class gP{addChild(t){this.children.add(t),t.parent=this}removeChild(t){this.children.delete(t),t.parent=void 0}constructor(t){this.children=new Set,this.contain=!1,this.scopeRef=t.scopeRef}}let Dn=new Zk;function D0e(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,i=R.useRef({isFocused:!1,isFocusVisible:t||hd()}),[a,o]=R.useState(!1),[l,s]=R.useState(()=>i.current.isFocused&&i.current.isFocusVisible),u=R.useCallback(()=>s(i.current.isFocused&&i.current.isFocusVisible),[]),c=R.useCallback(g=>{i.current.isFocused=g,o(g),u()},[u]);_0e(g=>{i.current.isFocusVisible=g,u()},[],{isTextInput:n});let{focusProps:f}=Uk({isDisabled:r,onFocusChange:c}),{focusWithinProps:p}=Bg({isDisabled:!r,onFocusWithinChange:c});return{isFocused:a,isFocusVisible:l,focusProps:r?p:f}}function DWe(e){let{children:t,focusClass:n,focusRingClass:r}=e,{isFocused:i,isFocusVisible:a,focusProps:o}=D0e(e),l=pe.Children.only(t);return pe.cloneElement(l,mt(l.props,{...o,className:pq({[n||""]:i,[r||""]:a})}))}let Nq=pe.createContext(null);function M0e(e){let t=R.useContext(Nq)||{};Fk(t,e);let{ref:n,...r}=t;return r}function L0e(e,t){let{children:n,...r}=e,i=yq(t),a={...r,ref:i};return pe.createElement(Nq.Provider,{value:a},n)}let MWe=pe.forwardRef(L0e);function Rc(e,t){let{focusProps:n}=Uk(e),{keyboardProps:r}=jk(e),i=mt(n,r),a=M0e(t),o=e.isDisabled?{}:a,l=R.useRef(e.autoFocus);return R.useEffect(()=>{l.current&&t.current&&cc(t.current),l.current=!1},[t]),{focusableProps:mt({...i,tabIndex:e.excludeFromTabOrder&&!e.isDisabled?-1:void 0},o)}}const ol=[];function LWe(e,t){let{onClose:n,shouldCloseOnBlur:r,isOpen:i,isDismissable:a=!1,isKeyboardDismissDisabled:o=!1,shouldCloseOnInteractOutside:l}=e;R.useEffect(()=>(i&&ol.push(t),()=>{let v=ol.indexOf(t);v>=0&&ol.splice(v,1)}),[i,t]);let s=()=>{ol[ol.length-1]===t&&n&&n()},u=v=>{(!l||l(v.target))&&ol[ol.length-1]===t&&(v.stopPropagation(),v.preventDefault())},c=v=>{(!l||l(v.target))&&(ol[ol.length-1]===t&&(v.stopPropagation(),v.preventDefault()),s())},f=v=>{v.key==="Escape"&&!o&&!v.nativeEvent.isComposing&&(v.stopPropagation(),v.preventDefault(),s())};b0e({ref:t,onInteractOutside:a&&i?c:null,onInteractOutsideStart:u});let{focusWithinProps:p}=Bg({isDisabled:!r,onBlurWithin:v=>{!v.relatedTarget||T0e(v.relatedTarget)||(!l||l(v.relatedTarget))&&n()}}),g=v=>{v.target===v.currentTarget&&v.preventDefault()};return{overlayProps:{onKeyDown:f,...p},underlayProps:{onPointerDown:g}}}function F0e(e,t,n){let{type:r}=e,{isOpen:i}=t;R.useEffect(()=>{n&&n.current&&$q.set(n.current,t.close)});let a;r==="menu"?a=!0:r==="listbox"&&(a="listbox");let o=$a();return{triggerProps:{"aria-haspopup":a,"aria-expanded":i,"aria-controls":i?o:null,onPress:t.toggle},overlayProps:{id:o}}}const yw=typeof document<"u"&&window.visualViewport,N0e=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let Hm=0,_w;function FWe(e={}){let{isDisabled:t}=e;qt(()=>{if(!t)return Hm++,Hm===1&&(N1()?_w=U0e():_w=z0e()),()=>{Hm--,Hm===0&&_w()}},[t])}function z0e(){return oc(zf(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),zf(document.documentElement,"overflow","hidden"))}function U0e(){let e,t,n=u=>{e=Sq(u.target,!0),!(e===document.documentElement&&e===document.body)&&e instanceof HTMLElement&&window.getComputedStyle(e).overscrollBehavior==="auto"&&(t=zf(e,"overscrollBehavior","contain"))},r=u=>{if(!e||e===document.documentElement||e===document.body){u.preventDefault();return}e.scrollHeight===e.clientHeight&&e.scrollWidth===e.clientWidth&&u.preventDefault()},i=u=>{let c=u.target;UM(c)&&c!==document.activeElement&&(u.preventDefault(),l(),c.style.transform="translateY(-2000px)",c.focus(),requestAnimationFrame(()=>{c.style.transform=""})),t&&t()},a=u=>{let c=u.target;UM(c)&&(l(),c.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{c.style.transform="",yw&&(yw.height<window.innerHeight?requestAnimationFrame(()=>{zM(c)}):yw.addEventListener("resize",()=>zM(c),{once:!0}))}))},o=null,l=()=>{if(o)return;let u=()=>{window.scrollTo(0,0)},c=window.pageXOffset,f=window.pageYOffset;o=oc(Fh(window,"scroll",u),zf(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),zf(document.documentElement,"overflow","hidden"),zf(document.body,"marginTop",`-${f}px`),()=>{window.scrollTo(c,f)}),window.scrollTo(0,0)},s=oc(Fh(document,"touchstart",n,{passive:!1,capture:!0}),Fh(document,"touchmove",r,{passive:!1,capture:!0}),Fh(document,"touchend",i,{passive:!1,capture:!0}),Fh(document,"focus",a,!0));return()=>{t==null||t(),o==null||o(),s()}}function zf(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function Fh(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function zM(e){let t=document.scrollingElement||document.documentElement;for(;e&&e!==t;){let n=Sq(e);if(n!==document.documentElement&&n!==document.body&&n!==e){let r=n.getBoundingClientRect().top,i=e.getBoundingClientRect().top;i>r+e.clientHeight&&(n.scrollTop+=i-r)}e=n.parentElement}}function UM(e){return e instanceof HTMLInputElement&&!N0e.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}const Wy=pe.createContext(null);function q0e(e){let{children:t}=e,n=R.useContext(Wy),[r,i]=R.useState(0),a=R.useMemo(()=>({parent:n,modalCount:r,addModal(){i(o=>o+1),n&&n.addModal()},removeModal(){i(o=>o-1),n&&n.removeModal()}}),[n,r]);return pe.createElement(Wy.Provider,{value:a},t)}function j0e(){let e=R.useContext(Wy);return{modalProviderProps:{"aria-hidden":e&&e.modalCount>0?!0:null}}}function V0e(e){let{modalProviderProps:t}=j0e();return pe.createElement("div",{"data-overlay-container":!0,...e,...t})}function NWe(e){return pe.createElement(q0e,null,pe.createElement(V0e,e))}function zWe(e){let t=R.useContext(Wy);if(!t)throw new Error("Modal is not contained within a provider");return R.useEffect(()=>{if(!(!t||!t.parent))return t.parent.addModal(),()=>{t&&t.parent&&t.parent.removeModal()}},[t,t.parent,void 0]),{modalProps:{"data-ismodal":!0}}}var zq={};zq={dismiss:"تجاهل"};var Uq={};Uq={dismiss:"Отхвърляне"};var qq={};qq={dismiss:"Odstranit"};var jq={};jq={dismiss:"Luk"};var Vq={};Vq={dismiss:"Schließen"};var Zq={};Zq={dismiss:"Απόρριψη"};var Wq={};Wq={dismiss:"Dismiss"};var Xq={};Xq={dismiss:"Descartar"};var Yq={};Yq={dismiss:"Lõpeta"};var Gq={};Gq={dismiss:"Hylkää"};var Bq={};Bq={dismiss:"Rejeter"};var Hq={};Hq={dismiss:"התעלם"};var Kq={};Kq={dismiss:"Odbaci"};var Jq={};Jq={dismiss:"Elutasítás"};var ej={};ej={dismiss:"Ignora"};var tj={};tj={dismiss:"閉じる"};var nj={};nj={dismiss:"무시"};var rj={};rj={dismiss:"Atmesti"};var ij={};ij={dismiss:"Nerādīt"};var aj={};aj={dismiss:"Lukk"};var oj={};oj={dismiss:"Negeren"};var lj={};lj={dismiss:"Zignoruj"};var sj={};sj={dismiss:"Descartar"};var uj={};uj={dismiss:"Dispensar"};var cj={};cj={dismiss:"Revocare"};var fj={};fj={dismiss:"Пропустить"};var dj={};dj={dismiss:"Zrušiť"};var hj={};hj={dismiss:"Opusti"};var pj={};pj={dismiss:"Odbaci"};var gj={};gj={dismiss:"Avvisa"};var vj={};vj={dismiss:"Kapat"};var mj={};mj={dismiss:"Скасувати"};var Oj={};Oj={dismiss:"取消"};var yj={};yj={dismiss:"關閉"};var _j={};_j={"ar-AE":zq,"bg-BG":Uq,"cs-CZ":qq,"da-DK":jq,"de-DE":Vq,"el-GR":Zq,"en-US":Wq,"es-ES":Xq,"et-EE":Yq,"fi-FI":Gq,"fr-FR":Bq,"he-IL":Hq,"hr-HR":Kq,"hu-HU":Jq,"it-IT":ej,"ja-JP":tj,"ko-KR":nj,"lt-LT":rj,"lv-LV":ij,"nb-NO":aj,"nl-NL":oj,"pl-PL":lj,"pt-BR":sj,"pt-PT":uj,"ro-RO":cj,"ru-RU":fj,"sk-SK":dj,"sl-SI":hj,"sr-SP":pj,"sv-SE":gj,"tr-TR":vj,"uk-UA":mj,"zh-CN":Oj,"zh-TW":yj};const qM={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"};function Sj(e={}){let{style:t,isFocusable:n}=e,[r,i]=R.useState(!1),{focusWithinProps:a}=Bg({isDisabled:!n,onFocusWithinChange:l=>i(l)}),o=R.useMemo(()=>r?t:t?{...qM,...t}:qM,[r]);return{visuallyHiddenProps:{...a,style:o}}}function Z0e(e){let{children:t,elementType:n="div",isFocusable:r,style:i,...a}=e,{visuallyHiddenProps:o}=Sj(e);return pe.createElement(n,mt(a,o),t)}function W0e(e){return e&&e.__esModule?e.default:e}function UWe(e){let{onDismiss:t,...n}=e,r=Nk(W0e(_j),"@react-aria/overlays"),i=Oq(n,r.format("dismiss")),a=()=>{t&&t()};return pe.createElement(Z0e,null,pe.createElement("button",{...i,tabIndex:-1,onClick:a,style:{width:1,height:1}}))}const X0e=pe.createContext(null);function Y0e(){let e=R.useContext(X0e),t=e==null?void 0:e.setContain;qt(()=>{t==null||t(!0)},[t])}function Wk(e){let[t,n]=Xs(e.isOpen,e.defaultOpen||!1,e.onOpenChange);const r=R.useCallback(()=>{n(!0)},[n]),i=R.useCallback(()=>{n(!1)},[n]),a=R.useCallback(()=>{n(!t)},[n,t]);return{isOpen:t,setOpen:n,open:r,close:i,toggle:a}}function qWe(e,t){let{role:n="dialog"}=e,r=Rs();r=e["aria-label"]?void 0:r;let i=R.useRef(!1);return R.useEffect(()=>{if(t.current&&!t.current.contains(document.activeElement)){cc(t.current);let a=setTimeout(()=>{document.activeElement===t.current&&(i.current=!0,t.current&&(t.current.blur(),cc(t.current)),i.current=!1)},500);return()=>{clearTimeout(a)}}},[t]),Y0e(),{dialogProps:{...Fr(e,{labelable:!0}),role:n,tabIndex:-1,"aria-labelledby":e["aria-labelledby"]||r,onBlur:a=>{i.current&&a.stopPropagation()}},titleProps:{id:r}}}function Xk(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}function hg(e,t){return hg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},hg(e,t)}function j1(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,hg(e,t)}var bj={exports:{}},G0e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",B0e=G0e,H0e=B0e;function wj(){}function $j(){}$j.resetWarningCache=wj;var K0e=function(){function e(r,i,a,o,l,s){if(s!==H0e){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:$j,resetWarningCache:wj};return n.PropTypes=n,n};bj.exports=K0e();var J0e=bj.exports;const dt=St(J0e),jM={disabled:!1},Xy=pe.createContext(null);var xj=function(t){return t.scrollTop},hp="unmounted",$u="exited",xu="entering",gf="entered",vP="exiting",Nl=function(e){j1(t,e);function t(r,i){var a;a=e.call(this,r,i)||this;var o=i,l=o&&!o.isMounting?r.enter:r.appear,s;return a.appearStatus=null,r.in?l?(s=$u,a.appearStatus=xu):s=gf:r.unmountOnExit||r.mountOnEnter?s=hp:s=$u,a.state={status:s},a.nextCallback=null,a}t.getDerivedStateFromProps=function(i,a){var o=i.in;return o&&a.status===hp?{status:$u}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(i){var a=null;if(i!==this.props){var o=this.state.status;this.props.in?o!==xu&&o!==gf&&(a=xu):(o===xu||o===gf)&&(a=vP)}this.updateStatus(!1,a)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var i=this.props.timeout,a,o,l;return a=o=l=i,i!=null&&typeof i!="number"&&(a=i.exit,o=i.enter,l=i.appear!==void 0?i.appear:o),{exit:a,enter:o,appear:l}},n.updateStatus=function(i,a){if(i===void 0&&(i=!1),a!==null)if(this.cancelNextCallback(),a===xu){if(this.props.unmountOnExit||this.props.mountOnEnter){var o=this.props.nodeRef?this.props.nodeRef.current:$m.findDOMNode(this);o&&xj(o)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===$u&&this.setState({status:hp})},n.performEnter=function(i){var a=this,o=this.props.enter,l=this.context?this.context.isMounting:i,s=this.props.nodeRef?[l]:[$m.findDOMNode(this),l],u=s[0],c=s[1],f=this.getTimeouts(),p=l?f.appear:f.enter;if(!i&&!o||jM.disabled){this.safeSetState({status:gf},function(){a.props.onEntered(u)});return}this.props.onEnter(u,c),this.safeSetState({status:xu},function(){a.props.onEntering(u,c),a.onTransitionEnd(p,function(){a.safeSetState({status:gf},function(){a.props.onEntered(u,c)})})})},n.performExit=function(){var i=this,a=this.props.exit,o=this.getTimeouts(),l=this.props.nodeRef?void 0:$m.findDOMNode(this);if(!a||jM.disabled){this.safeSetState({status:$u},function(){i.props.onExited(l)});return}this.props.onExit(l),this.safeSetState({status:vP},function(){i.props.onExiting(l),i.onTransitionEnd(o.exit,function(){i.safeSetState({status:$u},function(){i.props.onExited(l)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(i,a){a=this.setNextCallback(a),this.setState(i,a)},n.setNextCallback=function(i){var a=this,o=!0;return this.nextCallback=function(l){o&&(o=!1,a.nextCallback=null,i(l))},this.nextCallback.cancel=function(){o=!1},this.nextCallback},n.onTransitionEnd=function(i,a){this.setNextCallback(a);var o=this.props.nodeRef?this.props.nodeRef.current:$m.findDOMNode(this),l=i==null&&!this.props.addEndListener;if(!o||l){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var s=this.props.nodeRef?[this.nextCallback]:[o,this.nextCallback],u=s[0],c=s[1];this.props.addEndListener(u,c)}i!=null&&setTimeout(this.nextCallback,i)},n.render=function(){var i=this.state.status;if(i===hp)return null;var a=this.props,o=a.children;a.in,a.mountOnEnter,a.unmountOnExit,a.appear,a.enter,a.exit,a.timeout,a.addEndListener,a.onEnter,a.onEntering,a.onEntered,a.onExit,a.onExiting,a.onExited,a.nodeRef;var l=Xk(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return pe.createElement(Xy.Provider,{value:null},typeof o=="function"?o(i,l):pe.cloneElement(pe.Children.only(o),l))},t}(pe.Component);Nl.contextType=Xy;Nl.propTypes={};function af(){}Nl.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:af,onEntering:af,onEntered:af,onExit:af,onExiting:af,onExited:af};Nl.UNMOUNTED=hp;Nl.EXITED=$u;Nl.ENTERING=xu;Nl.ENTERED=gf;Nl.EXITING=vP;function Pj(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=Pj(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function jWe(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=Pj(e))&&(r&&(r+=" "),r+=t);return r}function Ej(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function mP(e){return mP=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},mP(e)}function e1e(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function Rj(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Rj=function(){return!!e})()}function t1e(e,t,n){if(Rj())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var i=new(e.bind.apply(e,r));return n&&hg(i,n.prototype),i}function OP(e){var t=typeof Map=="function"?new Map:void 0;return OP=function(r){if(r===null||!e1e(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(r))return t.get(r);t.set(r,i)}function i(){return t1e(r,arguments,mP(this).constructor)}return i.prototype=Object.create(r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),hg(i,r)},OP(e)}var To=function(e){j1(t,e);function t(n){var r;return r=e.call(this,"An error occurred. See https://github.com/styled-components/polished/blob/main/src/internalHelpers/errors.md#"+n+" for more information.")||this,Ej(r)}return t}(OP(Error));function Sw(e){return Math.round(e*255)}function n1e(e,t,n){return Sw(e)+","+Sw(t)+","+Sw(n)}function pg(e,t,n,r){if(r===void 0&&(r=n1e),t===0)return r(n,n,n);var i=(e%360+360)%360/60,a=(1-Math.abs(2*n-1))*t,o=a*(1-Math.abs(i%2-1)),l=0,s=0,u=0;i>=0&&i<1?(l=a,s=o):i>=1&&i<2?(l=o,s=a):i>=2&&i<3?(s=a,u=o):i>=3&&i<4?(s=o,u=a):i>=4&&i<5?(l=o,u=a):i>=5&&i<6&&(l=a,u=o);var c=n-a/2,f=l+c,p=s+c,g=u+c;return r(f,p,g)}var VM={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};function r1e(e){if(typeof e!="string")return e;var t=e.toLowerCase();return VM[t]?"#"+VM[t]:e}var i1e=/^#[a-fA-F0-9]{6}$/,a1e=/^#[a-fA-F0-9]{8}$/,o1e=/^#[a-fA-F0-9]{3}$/,l1e=/^#[a-fA-F0-9]{4}$/,bw=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,s1e=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,u1e=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,c1e=/^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;function gd(e){if(typeof e!="string")throw new To(3);var t=r1e(e);if(t.match(i1e))return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16)};if(t.match(a1e)){var n=parseFloat((parseInt(""+t[7]+t[8],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16),alpha:n}}if(t.match(o1e))return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16)};if(t.match(l1e)){var r=parseFloat((parseInt(""+t[4]+t[4],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16),alpha:r}}var i=bw.exec(t);if(i)return{red:parseInt(""+i[1],10),green:parseInt(""+i[2],10),blue:parseInt(""+i[3],10)};var a=s1e.exec(t.substring(0,50));if(a)return{red:parseInt(""+a[1],10),green:parseInt(""+a[2],10),blue:parseInt(""+a[3],10),alpha:parseFloat(""+a[4])>1?parseFloat(""+a[4])/100:parseFloat(""+a[4])};var o=u1e.exec(t);if(o){var l=parseInt(""+o[1],10),s=parseInt(""+o[2],10)/100,u=parseInt(""+o[3],10)/100,c="rgb("+pg(l,s,u)+")",f=bw.exec(c);if(!f)throw new To(4,t,c);return{red:parseInt(""+f[1],10),green:parseInt(""+f[2],10),blue:parseInt(""+f[3],10)}}var p=c1e.exec(t.substring(0,50));if(p){var g=parseInt(""+p[1],10),v=parseInt(""+p[2],10)/100,m=parseInt(""+p[3],10)/100,_="rgb("+pg(g,v,m)+")",O=bw.exec(_);if(!O)throw new To(4,t,_);return{red:parseInt(""+O[1],10),green:parseInt(""+O[2],10),blue:parseInt(""+O[3],10),alpha:parseFloat(""+p[4])>1?parseFloat(""+p[4])/100:parseFloat(""+p[4])}}throw new To(5)}function f1e(e){var t=e.red/255,n=e.green/255,r=e.blue/255,i=Math.max(t,n,r),a=Math.min(t,n,r),o=(i+a)/2;if(i===a)return e.alpha!==void 0?{hue:0,saturation:0,lightness:o,alpha:e.alpha}:{hue:0,saturation:0,lightness:o};var l,s=i-a,u=o>.5?s/(2-i-a):s/(i+a);switch(i){case t:l=(n-r)/s+(n<r?6:0);break;case n:l=(r-t)/s+2;break;default:l=(t-n)/s+4;break}return l*=60,e.alpha!==void 0?{hue:l,saturation:u,lightness:o,alpha:e.alpha}:{hue:l,saturation:u,lightness:o}}function Ys(e){return f1e(gd(e))}var d1e=function(t){return t.length===7&&t[1]===t[2]&&t[3]===t[4]&&t[5]===t[6]?"#"+t[1]+t[3]+t[5]:t},yP=d1e;function Pu(e){var t=e.toString(16);return t.length===1?"0"+t:t}function ww(e){return Pu(Math.round(e*255))}function h1e(e,t,n){return yP("#"+ww(e)+ww(t)+ww(n))}function Yy(e,t,n){return pg(e,t,n,h1e)}function p1e(e,t,n){if(typeof e=="number"&&typeof t=="number"&&typeof n=="number")return Yy(e,t,n);if(typeof e=="object"&&t===void 0&&n===void 0)return Yy(e.hue,e.saturation,e.lightness);throw new To(1)}function g1e(e,t,n,r){if(typeof e=="number"&&typeof t=="number"&&typeof n=="number"&&typeof r=="number")return r>=1?Yy(e,t,n):"rgba("+pg(e,t,n)+","+r+")";if(typeof e=="object"&&t===void 0&&n===void 0&&r===void 0)return e.alpha>=1?Yy(e.hue,e.saturation,e.lightness):"rgba("+pg(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new To(2)}function _P(e,t,n){if(typeof e=="number"&&typeof t=="number"&&typeof n=="number")return yP("#"+Pu(e)+Pu(t)+Pu(n));if(typeof e=="object"&&t===void 0&&n===void 0)return yP("#"+Pu(e.red)+Pu(e.green)+Pu(e.blue));throw new To(6)}function V1(e,t,n,r){if(typeof e=="string"&&typeof t=="number"){var i=gd(e);return"rgba("+i.red+","+i.green+","+i.blue+","+t+")"}else{if(typeof e=="number"&&typeof t=="number"&&typeof n=="number"&&typeof r=="number")return r>=1?_P(e,t,n):"rgba("+e+","+t+","+n+","+r+")";if(typeof e=="object"&&t===void 0&&n===void 0&&r===void 0)return e.alpha>=1?_P(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")"}throw new To(7)}var v1e=function(t){return typeof t.red=="number"&&typeof t.green=="number"&&typeof t.blue=="number"&&(typeof t.alpha!="number"||typeof t.alpha>"u")},m1e=function(t){return typeof t.red=="number"&&typeof t.green=="number"&&typeof t.blue=="number"&&typeof t.alpha=="number"},O1e=function(t){return typeof t.hue=="number"&&typeof t.saturation=="number"&&typeof t.lightness=="number"&&(typeof t.alpha!="number"||typeof t.alpha>"u")},y1e=function(t){return typeof t.hue=="number"&&typeof t.saturation=="number"&&typeof t.lightness=="number"&&typeof t.alpha=="number"};function Gs(e){if(typeof e!="object")throw new To(8);if(m1e(e))return V1(e);if(v1e(e))return _P(e);if(y1e(e))return g1e(e);if(O1e(e))return p1e(e);throw new To(8)}function kj(e,t,n){return function(){var i=n.concat(Array.prototype.slice.call(arguments));return i.length>=t?e.apply(this,i):kj(e,t,i)}}function Gi(e){return kj(e,e.length,[])}function _1e(e,t){if(t==="transparent")return t;var n=Ys(t);return Gs(gn({},n,{hue:n.hue+parseFloat(e)}))}Gi(_1e);function Ld(e,t,n){return Math.max(e,Math.min(t,n))}function S1e(e,t){if(t==="transparent")return t;var n=Ys(t);return Gs(gn({},n,{lightness:Ld(0,1,n.lightness-parseFloat(e))}))}var b1e=Gi(S1e),VWe=b1e;function w1e(e,t){if(t==="transparent")return t;var n=Ys(t);return Gs(gn({},n,{saturation:Ld(0,1,n.saturation-parseFloat(e))}))}Gi(w1e);function $1e(e,t){if(t==="transparent")return t;var n=Ys(t);return Gs(gn({},n,{lightness:Ld(0,1,n.lightness+parseFloat(e))}))}var x1e=Gi($1e),ZWe=x1e;function P1e(e,t,n){if(t==="transparent")return n;if(n==="transparent")return t;if(e===0)return n;var r=gd(t),i=gn({},r,{alpha:typeof r.alpha=="number"?r.alpha:1}),a=gd(n),o=gn({},a,{alpha:typeof a.alpha=="number"?a.alpha:1}),l=i.alpha-o.alpha,s=parseFloat(e)*2-1,u=s*l===-1?s:s+l,c=1+s*l,f=(u/c+1)/2,p=1-f,g={red:Math.floor(i.red*f+o.red*p),green:Math.floor(i.green*f+o.green*p),blue:Math.floor(i.blue*f+o.blue*p),alpha:i.alpha*parseFloat(e)+o.alpha*(1-parseFloat(e))};return V1(g)}var E1e=Gi(P1e),Tj=E1e;function R1e(e,t){if(t==="transparent")return t;var n=gd(t),r=typeof n.alpha=="number"?n.alpha:1,i=gn({},n,{alpha:Ld(0,1,(r*100+parseFloat(e)*100)/100)});return V1(i)}Gi(R1e);function k1e(e,t){if(t==="transparent")return t;var n=Ys(t);return Gs(gn({},n,{saturation:Ld(0,1,n.saturation+parseFloat(e))}))}Gi(k1e);function T1e(e,t){return t==="transparent"?t:Gs(gn({},Ys(t),{hue:parseFloat(e)}))}Gi(T1e);function C1e(e,t){return t==="transparent"?t:Gs(gn({},Ys(t),{lightness:parseFloat(e)}))}Gi(C1e);function Q1e(e,t){return t==="transparent"?t:Gs(gn({},Ys(t),{saturation:parseFloat(e)}))}Gi(Q1e);function A1e(e,t){return t==="transparent"?t:Tj(parseFloat(e),"rgb(0, 0, 0)",t)}var I1e=Gi(A1e),WWe=I1e;function D1e(e,t){return t==="transparent"?t:Tj(parseFloat(e),"rgb(255, 255, 255)",t)}Gi(D1e);function M1e(e,t){if(t==="transparent")return t;var n=gd(t),r=typeof n.alpha=="number"?n.alpha:1,i=gn({},n,{alpha:Ld(0,1,+(r*100-parseFloat(e)*100).toFixed(2)/100)});return V1(i)}var L1e=Gi(M1e),XWe=L1e;function YWe(e,t){let{elementType:n="button",isDisabled:r,onPress:i,onPressStart:a,onPressEnd:o,onPressUp:l,onPressChange:s,preventFocusOnPress:u,allowFocusWhenDisabled:c,onClick:f,href:p,target:g,rel:v,type:m="button"}=e,_;n==="button"?_={type:m,disabled:r}:_={role:"button",tabIndex:r?void 0:0,href:n==="a"&&r?void 0:p,target:n==="a"?g:void 0,type:n==="input"?m:void 0,disabled:n==="input"?r:void 0,"aria-disabled":!r||n==="input"?void 0:r,rel:n==="a"?v:void 0};let{pressProps:O,isPressed:S}=kl({onPressStart:a,onPressEnd:o,onPressChange:s,onPress:i,onPressUp:l,isDisabled:r,preventFocusOnPress:u,ref:t}),{focusableProps:b}=Rc(e,t);c&&(b.tabIndex=r?-1:b.tabIndex);let P=mt(b,O,Fr(e,{labelable:!0}));return{isPressed:S,buttonProps:mt(_,P,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],onClick:E=>{f&&(f(E),console.warn("onClick is deprecated, please use onPress"))}})}}function GWe(e,t){let n=Fr(e,{labelable:!0}),{hoverProps:r}=q1({onHoverStart:()=>t==null?void 0:t.open(!0),onHoverEnd:()=>t==null?void 0:t.close()});return{tooltipProps:mt(n,r,{role:"tooltip"})}}function BWe(e,t,n){let{isDisabled:r,trigger:i}=e,a=$a(),o=R.useRef(!1),l=R.useRef(!1),s=()=>{(o.current||l.current)&&t.open(l.current)},u=O=>{!o.current&&!l.current&&t.close(O)};R.useEffect(()=>{let O=S=>{n&&n.current&&S.key==="Escape"&&(S.stopPropagation(),t.close(!0))};if(t.isOpen)return document.addEventListener("keydown",O,!0),()=>{document.removeEventListener("keydown",O,!0)}},[n,t]);let c=()=>{i!=="focus"&&(pd()==="pointer"?o.current=!0:o.current=!1,s())},f=()=>{i!=="focus"&&(l.current=!1,o.current=!1,u())},p=()=>{l.current=!1,o.current=!1,u(!0)},g=()=>{hd()&&(l.current=!0,s())},v=()=>{l.current=!1,o.current=!1,u(!0)},{hoverProps:m}=q1({isDisabled:r,onHoverStart:c,onHoverEnd:f}),{focusableProps:_}=Rc({isDisabled:r,onFocus:g,onBlur:v},n);return{triggerProps:{"aria-describedby":t.isOpen?a:void 0,...mt(_,m,{onPointerDown:p,onKeyDown:p})},tooltipProps:{id:a}}}const F1e=1500,ZM=500;let vu={},N1e=0,Nh=!1,ll=null,mu=null;function HWe(e={}){let{delay:t=F1e,closeDelay:n=ZM}=e,{isOpen:r,open:i,close:a}=Wk(e),o=R.useMemo(()=>`${++N1e}`,[]),l=R.useRef(),s=()=>{vu[o]=f},u=()=>{for(let g in vu)g!==o&&(vu[g](!0),delete vu[g])},c=()=>{clearTimeout(l.current),l.current=null,u(),s(),Nh=!0,i(),ll&&(clearTimeout(ll),ll=null),mu&&(clearTimeout(mu),mu=null)},f=g=>{g||n<=0?(clearTimeout(l.current),l.current=null,a()):l.current||(l.current=setTimeout(()=>{l.current=null,a()},n)),ll&&(clearTimeout(ll),ll=null),Nh&&(mu&&clearTimeout(mu),mu=setTimeout(()=>{delete vu[o],mu=null,Nh=!1},Math.max(ZM,n)))},p=()=>{u(),s(),!r&&!ll&&!Nh?ll=setTimeout(()=>{ll=null,Nh=!0,c()},t):r||c()};return R.useEffect(()=>()=>{clearTimeout(l.current),vu[o]&&delete vu[o]},[o]),{isOpen:r,open:g=>{!g&&t>0&&!l.current?p():c()},close:f}}const Cj={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},Qj={...Cj,customError:!0,valid:!1},zh={isInvalid:!1,validationDetails:Cj,validationErrors:[]},z1e=R.createContext({}),WM="__formValidationState"+Date.now();function Yk(e){if(e[WM]){let{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:a}=e[WM];return{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:a}}return U1e(e)}function U1e(e){let{isInvalid:t,validationState:n,name:r,value:i,builtinValidation:a,validate:o,validationBehavior:l="aria"}=e;n&&(t||(t=n==="invalid"));let s=t!==void 0?{isInvalid:t,validationErrors:[],validationDetails:Qj}:null,u=R.useMemo(()=>XM(q1e(o,i)),[o,i]);a!=null&&a.validationDetails.valid&&(a=null);let c=R.useContext(z1e),f=R.useMemo(()=>r?Array.isArray(r)?r.flatMap(T=>SP(c[T])):SP(c[r]):[],[c,r]),[p,g]=R.useState(c),[v,m]=R.useState(!1);c!==p&&(g(c),m(!1));let _=R.useMemo(()=>XM(v?[]:f),[v,f]),O=R.useRef(zh),[S,b]=R.useState(zh),P=R.useRef(zh),E=()=>{if(!$)return;Q(!1);let T=u||a||O.current;$w(T,P.current)||(P.current=T,b(T))},[$,Q]=R.useState(!1);return R.useEffect(E),{realtimeValidation:s||_||u||a||zh,displayValidation:l==="native"?s||_||S:s||_||u||a||S,updateValidation(T){l==="aria"&&!$w(S,T)?b(T):O.current=T},resetValidation(){let T=zh;$w(T,P.current)||(P.current=T,b(T)),l==="native"&&Q(!1),m(!0)},commitValidation(){l==="native"&&Q(!0),m(!0)}}}function SP(e){return e?Array.isArray(e)?e:[e]:[]}function q1e(e,t){if(typeof e=="function"){let n=e(t);if(n&&typeof n!="boolean")return SP(n)}return[]}function XM(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:Qj}:null}function $w(e,t){return e===t?!0:e&&t&&e.isInvalid===t.isInvalid&&e.validationErrors.length===t.validationErrors.length&&e.validationErrors.every((n,r)=>n===t.validationErrors[r])&&Object.entries(e.validationDetails).every(([n,r])=>t.validationDetails[n]===r)}let j1e=Math.round(Math.random()*1e10),V1e=0;function KWe(e){let t=R.useMemo(()=>e.name||`radio-group-${j1e}-${++V1e}`,[e.name]);var n;let[r,i]=Xs(e.value,(n=e.defaultValue)!==null&&n!==void 0?n:null,e.onChange),[a,o]=R.useState(null),l=Yk({...e,value:r}),s=c=>{!e.isReadOnly&&!e.isDisabled&&(i(c),l.commitValidation())},u=l.displayValidation.isInvalid;return{...l,name:t,selectedValue:r,setSelectedValue:s,lastFocusedValue:a,setLastFocusedValue:o,isDisabled:e.isDisabled||!1,isReadOnly:e.isReadOnly||!1,isRequired:e.isRequired||!1,validationState:e.validationState||(u?"invalid":null),isInvalid:u}}const Aj=new WeakMap;function Gk(e,t,n){let{validationBehavior:r,focus:i}=e;qt(()=>{if(r==="native"&&(n!=null&&n.current)){let s=t.realtimeValidation.isInvalid?t.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";n.current.setCustomValidity(s),n.current.hasAttribute("title")||(n.current.title=""),t.realtimeValidation.isInvalid||t.updateValidation(W1e(n.current))}});let a=pr(()=>{t.resetValidation()}),o=pr(s=>{var u;t.displayValidation.isInvalid||t.commitValidation();let c=n==null||(u=n.current)===null||u===void 0?void 0:u.form;if(!s.defaultPrevented&&n&&c&&X1e(c)===n.current){var f;i?i():(f=n.current)===null||f===void 0||f.focus(),qk("keyboard")}s.preventDefault()}),l=pr(()=>{t.commitValidation()});R.useEffect(()=>{let s=n==null?void 0:n.current;if(!s)return;let u=s.form;return s.addEventListener("invalid",o),s.addEventListener("change",l),u==null||u.addEventListener("reset",a),()=>{s.removeEventListener("invalid",o),s.removeEventListener("change",l),u==null||u.removeEventListener("reset",a)}},[n,o,l,a,r])}function Z1e(e){let t=e.validity;return{badInput:t.badInput,customError:t.customError,patternMismatch:t.patternMismatch,rangeOverflow:t.rangeOverflow,rangeUnderflow:t.rangeUnderflow,stepMismatch:t.stepMismatch,tooLong:t.tooLong,tooShort:t.tooShort,typeMismatch:t.typeMismatch,valueMissing:t.valueMissing,valid:t.valid}}function W1e(e){return{isInvalid:!e.validity.valid,validationDetails:Z1e(e),validationErrors:e.validationMessage?[e.validationMessage]:[]}}function X1e(e){for(let t=0;t<e.elements.length;t++){let n=e.elements[t];if(!n.validity.valid)return n}return null}function JWe(e,t,n){let{value:r,children:i,"aria-label":a,"aria-labelledby":o}=e;const l=e.isDisabled||t.isDisabled;let s=i!=null,u=a!=null||o!=null;!s&&!u&&console.warn("If you do not provide children, you must specify an aria-label for accessibility");let c=t.selectedValue===r,f=k=>{k.stopPropagation(),t.setSelectedValue(r)},{pressProps:p,isPressed:g}=kl({isDisabled:l}),{pressProps:v,isPressed:m}=kl({isDisabled:l,onPress(){t.setSelectedValue(r)}}),{focusableProps:_}=Rc(mt(e,{onFocus:()=>t.setLastFocusedValue(r)}),n),O=mt(p,_),S=Fr(e,{labelable:!0}),b=-1;t.selectedValue!=null?t.selectedValue===r&&(b=0):(t.lastFocusedValue===r||t.lastFocusedValue==null)&&(b=0),l&&(b=void 0);let{name:P,descriptionId:E,errorMessageId:$,validationBehavior:Q}=Aj.get(t);return Gg(n,t.selectedValue,t.setSelectedValue),Gk({validationBehavior:Q},t,n),{labelProps:mt(v,{onClick:k=>k.preventDefault()}),inputProps:mt(S,{...O,type:"radio",name:P,tabIndex:b,disabled:l,required:t.isRequired&&Q==="native",checked:c,value:r,onChange:f,"aria-describedby":[e["aria-describedby"],t.isInvalid?$:null,E].filter(Boolean).join(" ")||void 0}),isDisabled:l,isSelected:c,isPressed:g||m}}function Hg(e){let{id:t,label:n,"aria-labelledby":r,"aria-label":i,labelElementType:a="label"}=e;t=$a(t);let o=$a(),l={};n?(r=r?`${o} ${r}`:o,l={id:o,htmlFor:a==="label"?t:void 0}):!r&&!i&&console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility");let s=Oq({id:t,"aria-label":i,"aria-labelledby":r});return{labelProps:l,fieldProps:s}}function Bk(e){let{description:t,errorMessage:n,isInvalid:r,validationState:i}=e,{labelProps:a,fieldProps:o}=Hg(e),l=Rs([!!t,!!n,r,i]),s=Rs([!!t,!!n,r,i]);return o=mt(o,{"aria-describedby":[l,s,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:a,fieldProps:o,descriptionProps:{id:l},errorMessageProps:{id:s}}}function eXe(e,t){let{name:n,isReadOnly:r,isRequired:i,isDisabled:a,orientation:o="vertical",validationBehavior:l="aria"}=e,{direction:s}=Vo(),{isInvalid:u,validationErrors:c,validationDetails:f}=t.displayValidation,{labelProps:p,fieldProps:g,descriptionProps:v,errorMessageProps:m}=Bk({...e,labelElementType:"span",isInvalid:t.isInvalid,errorMessage:e.errorMessage||c}),_=Fr(e,{labelable:!0}),{focusWithinProps:O}=Bg({onBlurWithin(P){var E;(E=e.onBlur)===null||E===void 0||E.call(e,P),t.selectedValue||t.setLastFocusedValue(null)},onFocusWithin:e.onFocus,onFocusWithinChange:e.onFocusChange}),S=P=>{let E;switch(P.key){case"ArrowRight":s==="rtl"&&o!=="vertical"?E="prev":E="next";break;case"ArrowLeft":s==="rtl"&&o!=="vertical"?E="next":E="prev";break;case"ArrowDown":E="next";break;case"ArrowUp":E="prev";break;default:return}P.preventDefault();let $=ko(P.currentTarget,{from:P.target}),Q;E==="next"?(Q=$.nextNode(),Q||($.currentNode=P.currentTarget,Q=$.firstChild())):(Q=$.previousNode(),Q||($.currentNode=P.currentTarget,Q=$.lastChild())),Q&&(Q.focus(),t.setSelectedValue(Q.value))},b=$a(n);return Aj.set(t,{name:b,descriptionId:v.id,errorMessageId:m.id,validationBehavior:l}),{radioGroupProps:mt(_,{role:"radiogroup",onKeyDown:S,"aria-invalid":t.isInvalid||void 0,"aria-errormessage":e["aria-errormessage"],"aria-readonly":r||void 0,"aria-required":i||void 0,"aria-disabled":a||void 0,"aria-orientation":o,...g,...O}),labelProps:p,descriptionProps:v,errorMessageProps:m,isInvalid:u,validationErrors:c,validationDetails:f}}class YM{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(t){let n=this.keyMap.get(t);return n?n.prevKey:null}getKeyAfter(t){let n=this.keyMap.get(t);return n?n.nextKey:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(t){return this.keyMap.get(t)}at(t){const n=[...this.getKeys()];return this.getItem(n[t])}getChildren(t){let n=this.keyMap.get(t);return(n==null?void 0:n.childNodes)||[]}constructor(t){this.keyMap=new Map,this.iterable=t;let n=a=>{if(this.keyMap.set(a.key,a),a.childNodes&&a.type==="section")for(let o of a.childNodes)n(o)};for(let a of t)n(a);let r,i=0;for(let[a,o]of this.keyMap)r?(r.nextKey=a,o.prevKey=r.key):(this.firstKey=a,o.prevKey=void 0),o.type==="item"&&(o.index=i++),r=o,r.nextKey=void 0;this.lastKey=r==null?void 0:r.key}}class Na extends Set{constructor(t,n,r){super(t),t instanceof Na?(this.anchorKey=n||t.anchorKey,this.currentKey=r||t.currentKey):(this.anchorKey=n,this.currentKey=r)}}function Y1e(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}function Ij(e){let{selectionMode:t="none",disallowEmptySelection:n,allowDuplicateSelectionEvents:r,selectionBehavior:i="toggle",disabledBehavior:a="all"}=e,o=R.useRef(!1),[,l]=R.useState(!1),s=R.useRef(null),u=R.useRef(null),[,c]=R.useState(null),f=R.useMemo(()=>GM(e.selectedKeys),[e.selectedKeys]),p=R.useMemo(()=>GM(e.defaultSelectedKeys,new Na),[e.defaultSelectedKeys]),[g,v]=Xs(f,p,e.onSelectionChange),m=R.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[_,O]=R.useState(i);i==="replace"&&_==="toggle"&&typeof g=="object"&&g.size===0&&O("replace");let S=R.useRef(i);return R.useEffect(()=>{i!==S.current&&(O(i),S.current=i)},[i]),{selectionMode:t,disallowEmptySelection:n,selectionBehavior:_,setSelectionBehavior:O,get isFocused(){return o.current},setFocused(b){o.current=b,l(b)},get focusedKey(){return s.current},get childFocusStrategy(){return u.current},setFocusedKey(b,P="first"){s.current=b,u.current=P,c(b)},selectedKeys:g,setSelectedKeys(b){(r||!Y1e(b,g))&&v(b)},disabledKeys:m,disabledBehavior:a}}function GM(e,t){return e?e==="all"?"all":new Na(e):t}function Dj(e){return null}Dj.getCollectionNode=function*(t,n){let{childItems:r,title:i,children:a}=t,o=t.title||t.children,l=t.textValue||(typeof o=="string"?o:"")||t["aria-label"]||"";!l&&!(n!=null&&n.suppressTextValueWarning)&&console.warn("<Item> with non-plain text contents is unsupported by type to select for accessibility. Please add a `textValue` prop."),yield{type:"item",props:t,rendered:o,textValue:l,"aria-label":t["aria-label"],hasChildNodes:G1e(t),*childNodes(){if(r)for(let s of r)yield{type:"item",value:s};else if(i){let s=[];pe.Children.forEach(a,u=>{s.push({type:"item",element:u})}),yield*s}}}};function G1e(e){return e.hasChildItems!=null?e.hasChildItems:!!(e.childItems||e.title&&pe.Children.count(e.children)>0)}let tXe=Dj;function Mj(e){return null}Mj.getCollectionNode=function*(t){let{children:n,title:r,items:i}=t;yield{type:"section",props:t,hasChildNodes:!0,rendered:r,"aria-label":t["aria-label"],*childNodes(){if(typeof n=="function"){if(!i)throw new Error("props.children was a function but props.items is missing");for(let a of i)yield{type:"item",value:a,renderer:n}}else{let a=[];pe.Children.forEach(n,o=>{a.push({type:"item",element:o})}),yield*a}}}};let nXe=Mj;class B1e{build(t,n){return this.context=n,BM(()=>this.iterateCollection(t))}*iterateCollection(t){let{children:n,items:r}=t;if(typeof n=="function"){if(!r)throw new Error("props.children was a function but props.items is missing");for(let i of t.items)yield*this.getFullNode({value:i},{renderer:n})}else{let i=[];pe.Children.forEach(n,o=>{i.push(o)});let a=0;for(let o of i){let l=this.getFullNode({element:o,index:a},{});for(let s of l)a++,yield s}}}getKey(t,n,r,i){if(t.key!=null)return t.key;if(n.type==="cell"&&n.key!=null)return`${i}${n.key}`;let a=n.value;if(a!=null){var o;let l=(o=a.key)!==null&&o!==void 0?o:a.id;if(l==null)throw new Error("No key found for item");return l}return i?`${i}.${n.index}`:`$.${n.index}`}getChildState(t,n){return{renderer:n.renderer||t.renderer}}*getFullNode(t,n,r,i){let a=t.element;if(!a&&t.value&&n&&n.renderer){let s=this.cache.get(t.value);if(s&&(!s.shouldInvalidate||!s.shouldInvalidate(this.context))){s.index=t.index,s.parentKey=i?i.key:null,yield s;return}a=n.renderer(t.value)}if(pe.isValidElement(a)){let s=a.type;if(typeof s!="function"&&typeof s.getCollectionNode!="function"){let p=typeof a.type=="function"?a.type.name:a.type;throw new Error(`Unknown element <${p}> in collection.`)}let u=s.getCollectionNode(a.props,this.context),c=t.index,f=u.next();for(;!f.done&&f.value;){let p=f.value;t.index=c;let g=p.key;g||(g=p.element?null:this.getKey(a,t,n,r));let m=[...this.getFullNode({...p,key:g,index:c,wrapper:H1e(t.wrapper,p.wrapper)},this.getChildState(n,p),r?`${r}${a.key}`:a.key,i)];for(let _ of m){if(_.value=p.value||t.value,_.value&&this.cache.set(_.value,_),t.type&&_.type!==t.type)throw new Error(`Unsupported type <${xw(_.type)}> in <${xw(i.type)}>. Only <${xw(t.type)}> is supported.`);c++,yield _}f=u.next(m)}return}if(t.key==null)return;let o=this,l={type:t.type,props:t.props,key:t.key,parentKey:i?i.key:null,value:t.value,level:i?i.level+1:0,index:t.index,rendered:t.rendered,textValue:t.textValue,"aria-label":t["aria-label"],wrapper:t.wrapper,shouldInvalidate:t.shouldInvalidate,hasChildNodes:t.hasChildNodes,childNodes:BM(function*(){if(!t.hasChildNodes)return;let s=0;for(let u of t.childNodes()){u.key!=null&&(u.key=`${l.key}${u.key}`),u.index=s;let c=o.getFullNode(u,o.getChildState(n,u),l.key,l);for(let f of c)s++,yield f}})};yield l}constructor(){this.cache=new WeakMap}}function BM(e){let t=[],n=null;return{*[Symbol.iterator](){for(let r of t)yield r;n||(n=e());for(let r of n)t.push(r),yield r}}}function H1e(e,t){if(e&&t)return n=>e(t(n));if(e)return e;if(t)return t}function xw(e){return e[0].toUpperCase()+e.slice(1)}function Lj(e,t,n){let r=R.useMemo(()=>new B1e,[]),{children:i,items:a,collection:o}=e;return R.useMemo(()=>{if(o)return o;let s=r.build({children:i,items:a},n);return t(s)},[r,i,a,o,n,t])}function Gy(e,t){return typeof t.getChildren=="function"?t.getChildren(e.key):e.childNodes}function K1e(e){return J1e(e)}function J1e(e,t){for(let n of e)return n}function Pw(e,t,n){if(t.parentKey===n.parentKey)return t.index-n.index;let r=[...HM(e,t),t],i=[...HM(e,n),n],a=r.slice(0,i.length).findIndex((o,l)=>o!==i[l]);return a!==-1?(t=r[a],n=i[a],t.index-n.index):r.findIndex(o=>o===n)>=0?1:(i.findIndex(o=>o===t)>=0,-1)}function HM(e,t){let n=[];for(;(t==null?void 0:t.parentKey)!=null;)t=e.getItem(t.parentKey),n.unshift(t);return n}const KM=new WeakMap;function Fj(e){let t=KM.get(e);if(t!=null)return t;t=0;let n=r=>{for(let i of r)i.type==="section"?n(Gy(i,e)):t++};return n(e),KM.set(e,t),t}class Nj{get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(t){this.state.setSelectionBehavior(t)}get isFocused(){return this.state.isFocused}setFocused(t){this.state.setFocused(t)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(t,n){(t==null||this.collection.getItem(t))&&this.state.setFocusedKey(t,n)}get selectedKeys(){return this.state.selectedKeys==="all"?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(t){return this.state.selectionMode==="none"?!1:(t=this.getKey(t),this.state.selectedKeys==="all"?this.canSelectItem(t):this.state.selectedKeys.has(t))}get isEmpty(){return this.state.selectedKeys!=="all"&&this.state.selectedKeys.size===0}get isSelectAll(){if(this.isEmpty)return!1;if(this.state.selectedKeys==="all")return!0;if(this._isSelectAll!=null)return this._isSelectAll;let t=this.getSelectAllKeys(),n=this.state.selectedKeys;return this._isSelectAll=t.every(r=>n.has(r)),this._isSelectAll}get firstSelectedKey(){let t=null;for(let n of this.state.selectedKeys){let r=this.collection.getItem(n);(!t||r&&Pw(this.collection,r,t)<0)&&(t=r)}return t==null?void 0:t.key}get lastSelectedKey(){let t=null;for(let n of this.state.selectedKeys){let r=this.collection.getItem(n);(!t||r&&Pw(this.collection,r,t)>0)&&(t=r)}return t==null?void 0:t.key}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"){this.replaceSelection(t);return}t=this.getKey(t);let n;if(this.state.selectedKeys==="all")n=new Na([t],t,t);else{let r=this.state.selectedKeys,i=r.anchorKey||t;n=new Na(r,i,t);for(let a of this.getKeyRange(i,r.currentKey||t))n.delete(a);for(let a of this.getKeyRange(t,i))this.canSelectItem(a)&&n.add(a)}this.state.setSelectedKeys(n)}getKeyRange(t,n){let r=this.collection.getItem(t),i=this.collection.getItem(n);return r&&i?Pw(this.collection,r,i)<=0?this.getKeyRangeInternal(t,n):this.getKeyRangeInternal(n,t):[]}getKeyRangeInternal(t,n){let r=[],i=t;for(;i;){let a=this.collection.getItem(i);if((a&&a.type==="item"||a.type==="cell"&&this.allowsCellSelection)&&r.push(i),i===n)return r;i=this.collection.getKeyAfter(i)}return[]}getKey(t){let n=this.collection.getItem(t);if(!n||n.type==="cell"&&this.allowsCellSelection)return t;for(;n.type!=="item"&&n.parentKey!=null;)n=this.collection.getItem(n.parentKey);return!n||n.type!=="item"?null:n.key}toggleSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"&&!this.isSelected(t)){this.replaceSelection(t);return}if(t=this.getKey(t),t==null)return;let n=new Na(this.state.selectedKeys==="all"?this.getSelectAllKeys():this.state.selectedKeys);n.has(t)?n.delete(t):this.canSelectItem(t)&&(n.add(t),n.anchorKey=t,n.currentKey=t),!(this.disallowEmptySelection&&n.size===0)&&this.state.setSelectedKeys(n)}replaceSelection(t){if(this.selectionMode==="none"||(t=this.getKey(t),t==null))return;let n=this.canSelectItem(t)?new Na([t],t,t):new Na;this.state.setSelectedKeys(n)}setSelectedKeys(t){if(this.selectionMode==="none")return;let n=new Na;for(let r of t)if(r=this.getKey(r),r!=null&&(n.add(r),this.selectionMode==="single"))break;this.state.setSelectedKeys(n)}getSelectAllKeys(){let t=[],n=r=>{for(;r;){if(this.canSelectItem(r)){let i=this.collection.getItem(r);i.type==="item"&&t.push(r),i.hasChildNodes&&(this.allowsCellSelection||i.type!=="item")&&n(K1e(Gy(i,this.collection)).key)}r=this.collection.getKeyAfter(r)}};return n(this.collection.getFirstKey()),t}selectAll(){!this.isSelectAll&&this.selectionMode==="multiple"&&this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&(this.state.selectedKeys==="all"||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new Na)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(t,n){this.selectionMode!=="none"&&(this.selectionMode==="single"?this.isSelected(t)&&!this.disallowEmptySelection?this.toggleSelection(t):this.replaceSelection(t):this.selectionBehavior==="toggle"||n&&(n.pointerType==="touch"||n.pointerType==="virtual")?this.toggleSelection(t):this.replaceSelection(t))}isSelectionEqual(t){if(t===this.state.selectedKeys)return!0;let n=this.selectedKeys;if(t.size!==n.size)return!1;for(let r of t)if(!n.has(r))return!1;for(let r of n)if(!t.has(r))return!1;return!0}canSelectItem(t){var n;if(this.state.selectionMode==="none"||this.state.disabledKeys.has(t))return!1;let r=this.collection.getItem(t);return!(!r||!(r==null||(n=r.props)===null||n===void 0)&&n.isDisabled||r.type==="cell"&&!this.allowsCellSelection)}isDisabled(t){var n,r;return this.state.disabledBehavior==="all"&&(this.state.disabledKeys.has(t)||!!(!((r=this.collection.getItem(t))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.isDisabled))}isLink(t){var n,r;return!!(!((r=this.collection.getItem(t))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.href)}getItemProps(t){var n;return(n=this.collection.getItem(t))===null||n===void 0?void 0:n.props}constructor(t,n,r){this.collection=t,this.state=n;var i;this.allowsCellSelection=(i=r==null?void 0:r.allowsCellSelection)!==null&&i!==void 0?i:!1,this._isSelectAll=null}}function e_e(e){let{filter:t}=e,n=Ij(e),r=R.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),i=R.useCallback(u=>t?new YM(t(u)):new YM(u),[t]),a=R.useMemo(()=>({suppressTextValueWarning:e.suppressTextValueWarning}),[e.suppressTextValueWarning]),o=Lj(e,i,a),l=R.useMemo(()=>new Nj(o,n),[o,n]);const s=R.useRef(null);return R.useEffect(()=>{if(n.focusedKey!=null&&!o.getItem(n.focusedKey)){const u=s.current.getItem(n.focusedKey),c=[...s.current.getKeys()].map(m=>{const _=s.current.getItem(m);return _.type==="item"?_:null}).filter(m=>m!==null),f=[...o.getKeys()].map(m=>{const _=o.getItem(m);return _.type==="item"?_:null}).filter(m=>m!==null),p=c.length-f.length;let g=Math.min(p>1?Math.max(u.index-p+1,0):u.index,f.length-1),v;for(;g>=0;){if(!l.isDisabled(f[g].key)){v=f[g];break}g<f.length-1?g++:(g>u.index&&(g=u.index),g--)}n.setFocusedKey(v?v.key:null)}s.current=o},[o,l,n,n.focusedKey]),{collection:o,disabledKeys:r,selectionManager:l}}function t_e(e){var t;let[n,r]=Xs(e.selectedKey,(t=e.defaultSelectedKey)!==null&&t!==void 0?t:null,e.onSelectionChange),i=R.useMemo(()=>n!=null?[n]:[],[n]),{collection:a,disabledKeys:o,selectionManager:l}=e_e({...e,selectionMode:"single",disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:i,onSelectionChange:u=>{var c;let f=(c=u.values().next().value)!==null&&c!==void 0?c:null;f===n&&e.onSelectionChange&&e.onSelectionChange(f),r(f)}}),s=n!=null?a.getItem(n):null;return{collection:a,disabledKeys:o,selectionManager:l,selectedKey:n,setSelectedKey:r,selectedItem:s}}const Hk=new WeakMap;function n_e(e){return typeof e=="string"?e.replace(/\s*/g,""):""+e}function r_e(e,t){let n=Hk.get(e);if(!n)throw new Error("Unknown list");return`${n.id}-option-${n_e(t)}`}function bP(e){return mye()?e.altKey:e.ctrlKey}function vf(e){return Is()?e.metaKey:e.ctrlKey}const i_e=1e3;function zj(e){let{keyboardDelegate:t,selectionManager:n,onTypeSelect:r}=e,i=R.useRef({search:"",timeout:null}).current,a=o=>{let l=a_e(o.key);if(!l||o.ctrlKey||o.metaKey||!o.currentTarget.contains(o.target))return;l===" "&&i.search.trim().length>0&&(o.preventDefault(),"continuePropagation"in o||o.stopPropagation()),i.search+=l;let s=t.getKeyForSearch(i.search,n.focusedKey);s==null&&(s=t.getKeyForSearch(i.search)),s!=null&&(n.setFocusedKey(s),r&&r(s)),clearTimeout(i.timeout),i.timeout=setTimeout(()=>{i.search=""},i_e)};return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?a:null}}}function a_e(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}function o_e(e){let{selectionManager:t,keyboardDelegate:n,ref:r,autoFocus:i=!1,shouldFocusWrap:a=!1,disallowEmptySelection:o=!1,disallowSelectAll:l=!1,selectOnFocus:s=t.selectionBehavior==="replace",disallowTypeAhead:u=!1,shouldUseVirtualFocus:c,allowsTabNavigation:f=!1,isVirtualized:p,scrollRef:g=r,linkBehavior:v="action"}=e,{direction:m}=Vo(),_=Xg(),O=T=>{if(T.altKey&&T.key==="Tab"&&T.preventDefault(),!r.current.contains(T.target))return;const A=(I,X)=>{if(I!=null){if(t.isLink(I)&&v==="selection"&&s&&!bP(T)){g1.flushSync(()=>{t.setFocusedKey(I,X)});let Z=g.current.querySelector(`[data-key="${CSS.escape(I.toString())}"]`),F=t.getItemProps(I);_.open(Z,T,F.href,F.routerOptions);return}if(t.setFocusedKey(I,X),t.isLink(I)&&v==="override")return;T.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(I):s&&!bP(T)&&t.replaceSelection(I)}};switch(T.key){case"ArrowDown":if(n.getKeyBelow){var M,L;T.preventDefault();let I=t.focusedKey!=null?n.getKeyBelow(t.focusedKey):(M=n.getFirstKey)===null||M===void 0?void 0:M.call(n);I==null&&a&&(I=(L=n.getFirstKey)===null||L===void 0?void 0:L.call(n,t.focusedKey)),A(I)}break;case"ArrowUp":if(n.getKeyAbove){var N,j;T.preventDefault();let I=t.focusedKey!=null?n.getKeyAbove(t.focusedKey):(N=n.getLastKey)===null||N===void 0?void 0:N.call(n);I==null&&a&&(I=(j=n.getLastKey)===null||j===void 0?void 0:j.call(n,t.focusedKey)),A(I)}break;case"ArrowLeft":if(n.getKeyLeftOf){var B,V;T.preventDefault();let I=n.getKeyLeftOf(t.focusedKey);I==null&&a&&(I=m==="rtl"?(B=n.getFirstKey)===null||B===void 0?void 0:B.call(n,t.focusedKey):(V=n.getLastKey)===null||V===void 0?void 0:V.call(n,t.focusedKey)),A(I,m==="rtl"?"first":"last")}break;case"ArrowRight":if(n.getKeyRightOf){var U,G;T.preventDefault();let I=n.getKeyRightOf(t.focusedKey);I==null&&a&&(I=m==="rtl"?(U=n.getLastKey)===null||U===void 0?void 0:U.call(n,t.focusedKey):(G=n.getFirstKey)===null||G===void 0?void 0:G.call(n,t.focusedKey)),A(I,m==="rtl"?"last":"first")}break;case"Home":if(n.getFirstKey){T.preventDefault();let I=n.getFirstKey(t.focusedKey,vf(T));t.setFocusedKey(I),vf(T)&&T.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(I):s&&t.replaceSelection(I)}break;case"End":if(n.getLastKey){T.preventDefault();let I=n.getLastKey(t.focusedKey,vf(T));t.setFocusedKey(I),vf(T)&&T.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(I):s&&t.replaceSelection(I)}break;case"PageDown":if(n.getKeyPageBelow){T.preventDefault();let I=n.getKeyPageBelow(t.focusedKey);A(I)}break;case"PageUp":if(n.getKeyPageAbove){T.preventDefault();let I=n.getKeyPageAbove(t.focusedKey);A(I)}break;case"a":vf(T)&&t.selectionMode==="multiple"&&l!==!0&&(T.preventDefault(),t.selectAll());break;case"Escape":!o&&t.selectedKeys.size!==0&&(T.stopPropagation(),T.preventDefault(),t.clearSelection());break;case"Tab":if(!f){if(T.shiftKey)r.current.focus();else{let I=ko(r.current,{tabbable:!0}),X,Z;do Z=I.lastChild(),Z&&(X=Z);while(Z);X&&!X.contains(document.activeElement)&&Ro(X)}break}}},S=R.useRef({top:0,left:0});Rye(g,"scroll",p?null:()=>{S.current={top:g.current.scrollTop,left:g.current.scrollLeft}});let b=T=>{if(t.isFocused){T.currentTarget.contains(T.target)||t.setFocused(!1);return}if(T.currentTarget.contains(T.target)){if(t.setFocused(!0),t.focusedKey==null){let L=j=>{j!=null&&(t.setFocusedKey(j),s&&t.replaceSelection(j))},N=T.relatedTarget;var A,M;N&&T.currentTarget.compareDocumentPosition(N)&Node.DOCUMENT_POSITION_FOLLOWING?L((A=t.lastSelectedKey)!==null&&A!==void 0?A:n.getLastKey()):L((M=t.firstSelectedKey)!==null&&M!==void 0?M:n.getFirstKey())}else p||(g.current.scrollTop=S.current.top,g.current.scrollLeft=S.current.left);if(!p&&t.focusedKey!=null){let L=g.current.querySelector(`[data-key="${CSS.escape(t.focusedKey.toString())}"]`);L&&(L.contains(document.activeElement)||Ro(L),pd()==="keyboard"&&bM(L,{containingElement:r.current}))}}},P=T=>{T.currentTarget.contains(T.relatedTarget)||t.setFocused(!1)};const E=R.useRef(i);R.useEffect(()=>{if(E.current){let T=null;i==="first"&&(T=n.getFirstKey()),i==="last"&&(T=n.getLastKey());let A=t.selectedKeys;if(A.size){for(let M of A)if(t.canSelectItem(M)){T=M;break}}t.setFocused(!0),t.setFocusedKey(T),T==null&&!c&&cc(r.current)}},[]);let $=R.useRef(t.focusedKey);R.useEffect(()=>{let T=pd();if(t.isFocused&&t.focusedKey!=null&&(g!=null&&g.current)){let A=g.current.querySelector(`[data-key="${CSS.escape(t.focusedKey.toString())}"]`);A&&(T==="keyboard"||E.current)&&(p||bq(g.current,A),T!=="virtual"&&bM(A,{containingElement:r.current}))}t.isFocused&&t.focusedKey==null&&$.current!=null&&cc(r.current),$.current=t.focusedKey,E.current=!1},[p,g,t.focusedKey,t.isFocused,r]);let Q={onKeyDown:O,onFocus:b,onBlur:P,onMouseDown(T){g.current===T.target&&T.preventDefault()}},{typeSelectProps:k}=zj({keyboardDelegate:n,selectionManager:t});u||(Q=mt(k,Q));let D;return c||(D=t.focusedKey==null?0:-1),{collectionProps:{...Q,tabIndex:D}}}function Uj(e){let{selectionManager:t,key:n,ref:r,shouldSelectOnPressUp:i,shouldUseVirtualFocus:a,focus:o,isDisabled:l,onAction:s,allowsDifferentPressOrigin:u,linkBehavior:c="action"}=e,f=Xg(),p=V=>{if(V.pointerType==="keyboard"&&bP(V))t.toggleSelection(n);else{if(t.selectionMode==="none")return;if(t.isLink(n)){if(c==="selection"){let U=t.getItemProps(n);f.open(r.current,V,U.href,U.routerOptions),t.setSelectedKeys(t.selectedKeys);return}else if(c==="override"||c==="none")return}t.selectionMode==="single"?t.isSelected(n)&&!t.disallowEmptySelection?t.toggleSelection(n):t.replaceSelection(n):V&&V.shiftKey?t.extendSelection(n):t.selectionBehavior==="toggle"||V&&(vf(V)||V.pointerType==="touch"||V.pointerType==="virtual")?t.toggleSelection(n):t.replaceSelection(n)}};R.useEffect(()=>{n===t.focusedKey&&t.isFocused&&!a&&(o?o():document.activeElement!==r.current&&cc(r.current))},[r,n,t.focusedKey,t.childFocusStrategy,t.isFocused,a]),l=l||t.isDisabled(n);let g={};!a&&!l?g={tabIndex:n===t.focusedKey?0:-1,onFocus(V){V.target===r.current&&t.setFocusedKey(n)}}:l&&(g.onMouseDown=V=>{V.preventDefault()});let v=t.isLink(n)&&c==="override",m=t.isLink(n)&&c!=="selection"&&c!=="none",_=!l&&t.canSelectItem(n)&&!v,O=(s||m)&&!l,S=O&&(t.selectionBehavior==="replace"?!_:!_||t.isEmpty),b=O&&_&&t.selectionBehavior==="replace",P=S||b,E=R.useRef(null),$=P&&_,Q=R.useRef(!1),k=R.useRef(!1),D=V=>{if(s&&s(),m){let U=t.getItemProps(n);f.open(r.current,V,U.href,U.routerOptions)}},T={};i?(T.onPressStart=V=>{E.current=V.pointerType,Q.current=$,V.pointerType==="keyboard"&&(!P||e3())&&p(V)},u?(T.onPressUp=S?null:V=>{V.pointerType!=="keyboard"&&_&&p(V)},T.onPress=S?D:null):T.onPress=V=>{if(S||b&&V.pointerType!=="mouse"){if(V.pointerType==="keyboard"&&!JM())return;D(V)}else V.pointerType!=="keyboard"&&_&&p(V)}):(T.onPressStart=V=>{E.current=V.pointerType,Q.current=$,k.current=S,_&&(V.pointerType==="mouse"&&!S||V.pointerType==="keyboard"&&(!O||e3()))&&p(V)},T.onPress=V=>{(V.pointerType==="touch"||V.pointerType==="pen"||V.pointerType==="virtual"||V.pointerType==="keyboard"&&P&&JM()||V.pointerType==="mouse"&&k.current)&&(P?D(V):_&&p(V))}),g["data-key"]=n,T.preventFocusOnPress=a;let{pressProps:A,isPressed:M}=kl(T),L=b?V=>{E.current==="mouse"&&(V.stopPropagation(),V.preventDefault(),D(V))}:void 0,{longPressProps:N}=Mq({isDisabled:!$,onLongPress(V){V.pointerType==="touch"&&(p(V),t.setSelectionBehavior("toggle"))}}),j=V=>{E.current==="touch"&&Q.current&&V.preventDefault()},B=t.isLink(n)?V=>{lc.isOpening||V.preventDefault()}:void 0;return{itemProps:mt(g,_||S?A:{},$?N:{},{onDoubleClick:L,onDragStartCapture:j,onClick:B}),isPressed:M,isSelected:t.isSelected(n),isFocused:t.isFocused&&t.focusedKey===n,isDisabled:l,allowsSelection:_,hasAction:P}}function JM(){let e=window.event;return(e==null?void 0:e.key)==="Enter"}function e3(){let e=window.event;return(e==null?void 0:e.key)===" "||(e==null?void 0:e.code)==="Space"}class qj{isDisabled(t){var n;return this.disabledBehavior==="all"&&(((n=t.props)===null||n===void 0?void 0:n.isDisabled)||this.disabledKeys.has(t.key))}getNextKey(t){for(t=this.collection.getKeyAfter(t);t!=null;){let n=this.collection.getItem(t);if(n.type==="item"&&!this.isDisabled(n))return t;t=this.collection.getKeyAfter(t)}return null}getPreviousKey(t){for(t=this.collection.getKeyBefore(t);t!=null;){let n=this.collection.getItem(t);if(n.type==="item"&&!this.isDisabled(n))return t;t=this.collection.getKeyBefore(t)}return null}findKey(t,n,r){let i=this.getItem(t);if(!i)return null;let a=i.getBoundingClientRect();do t=n(t),i=this.getItem(t);while(i&&r(a,i.getBoundingClientRect()));return t}isSameRow(t,n){return t.top===n.top||t.left!==n.left}isSameColumn(t,n){return t.left===n.left||t.top!==n.top}getKeyBelow(t){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,n=>this.getNextKey(n),this.isSameRow):this.getNextKey(t)}getKeyAbove(t){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,n=>this.getPreviousKey(n),this.isSameRow):this.getPreviousKey(t)}getNextColumn(t,n){return n?this.getPreviousKey(t):this.getNextKey(t)}getKeyRightOf(t){return this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="rtl"):this.findKey(t,n=>this.getNextColumn(n,this.direction==="rtl"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="rtl"):null}getKeyLeftOf(t){return this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="ltr"):this.findKey(t,n=>this.getNextColumn(n,this.direction==="ltr"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="ltr"):null}getFirstKey(){let t=this.collection.getFirstKey();for(;t!=null;){let n=this.collection.getItem(t);if((n==null?void 0:n.type)==="item"&&!this.isDisabled(n))return t;t=this.collection.getKeyAfter(t)}return null}getLastKey(){let t=this.collection.getLastKey();for(;t!=null;){let n=this.collection.getItem(t);if(n.type==="item"&&!this.isDisabled(n))return t;t=this.collection.getKeyBefore(t)}return null}getItem(t){return t!==null?this.ref.current.querySelector(`[data-key="${CSS.escape(t.toString())}"]`):null}getKeyPageAbove(t){let n=this.ref.current,r=this.getItem(t);if(!r)return null;if(!fg(n))return this.getFirstKey();let i=n.getBoundingClientRect(),a=r.getBoundingClientRect();if(this.orientation==="horizontal"){let o=i.x-n.scrollLeft,l=Math.max(0,a.x-o+a.width-i.width);for(;r&&a.x-o>l;)t=this.getKeyAbove(t),r=t==null?null:this.getItem(t),a=r==null?void 0:r.getBoundingClientRect()}else{let o=i.y-n.scrollTop,l=Math.max(0,a.y-o+a.height-i.height);for(;r&&a.y-o>l;)t=this.getKeyAbove(t),r=t==null?null:this.getItem(t),a=r==null?void 0:r.getBoundingClientRect()}return t??this.getFirstKey()}getKeyPageBelow(t){let n=this.ref.current,r=this.getItem(t);if(!r)return null;if(!fg(n))return this.getLastKey();let i=n.getBoundingClientRect(),a=r.getBoundingClientRect();if(this.orientation==="horizontal"){let o=i.x-n.scrollLeft,l=Math.min(n.scrollWidth,a.x-o-a.width+i.width);for(;r&&a.x-o<l;)t=this.getKeyBelow(t),r=t==null?null:this.getItem(t),a=r==null?void 0:r.getBoundingClientRect()}else{let o=i.y-n.scrollTop,l=Math.min(n.scrollHeight,a.y-o-a.height+i.height);for(;r&&a.y-o<l;)t=this.getKeyBelow(t),r=t==null?null:this.getItem(t),a=r==null?void 0:r.getBoundingClientRect()}return t??this.getLastKey()}getKeyForSearch(t,n){if(!this.collator)return null;let r=this.collection,i=n||this.getFirstKey();for(;i!=null;){let a=r.getItem(i),o=a.textValue.slice(0,t.length);if(a.textValue&&this.collator.compare(o,t)===0)return i;i=this.getKeyBelow(i)}return null}constructor(...t){if(t.length===1){let n=t[0];this.collection=n.collection,this.ref=n.ref,this.collator=n.collator,this.disabledKeys=n.disabledKeys||new Set,this.disabledBehavior=n.disabledBehavior||"all",this.orientation=n.orientation,this.direction=n.direction,this.layout=n.layout||"stack"}else this.collection=t[0],this.disabledKeys=t[1],this.ref=t[2],this.collator=t[3],this.layout="stack",this.orientation="vertical",this.disabledBehavior="all";this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}}function jj(e){let{selectionManager:t,collection:n,disabledKeys:r,ref:i,keyboardDelegate:a}=e,o=Eq({usage:"search",sensitivity:"base"}),l=t.disabledBehavior,s=R.useMemo(()=>a||new qj({collection:n,disabledKeys:r,disabledBehavior:l,ref:i,collator:o}),[a,n,r,i,o,l]),{collectionProps:u}=o_e({...e,ref:i,selectionManager:t,keyboardDelegate:s});return{listProps:u}}function rXe(e,t,n){let r=Fr(e,{labelable:!0}),i=e.selectionBehavior||"toggle",a=e.linkBehavior||(i==="replace"?"action":"override");i==="toggle"&&a==="action"&&(a="override");let{listProps:o}=jj({...e,ref:n,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,linkBehavior:a}),{focusWithinProps:l}=Bg({onFocusWithin:e.onFocus,onBlurWithin:e.onBlur,onFocusWithinChange:e.onFocusChange}),s=$a(e.id);Hk.set(t,{id:s,shouldUseVirtualFocus:e.shouldUseVirtualFocus,shouldSelectOnPressUp:e.shouldSelectOnPressUp,shouldFocusOnHover:e.shouldFocusOnHover,isVirtualized:e.isVirtualized,onAction:e.onAction,linkBehavior:a});let{labelProps:u,fieldProps:c}=Hg({...e,id:s,labelElementType:"span"});return{labelProps:u,listBoxProps:mt(r,l,t.selectionManager.selectionMode==="multiple"?{"aria-multiselectable":"true"}:{},{role:"listbox",...mt(c,o)})}}function iXe(e,t,n){var r,i;let{key:a}=e,o=Hk.get(t);var l;let s=(l=e.isDisabled)!==null&&l!==void 0?l:t.selectionManager.isDisabled(a);var u;let c=(u=e.isSelected)!==null&&u!==void 0?u:t.selectionManager.isSelected(a);var f;let p=(f=e.shouldSelectOnPressUp)!==null&&f!==void 0?f:o==null?void 0:o.shouldSelectOnPressUp;var g;let v=(g=e.shouldFocusOnHover)!==null&&g!==void 0?g:o==null?void 0:o.shouldFocusOnHover;var m;let _=(m=e.shouldUseVirtualFocus)!==null&&m!==void 0?m:o==null?void 0:o.shouldUseVirtualFocus;var O;let S=(O=e.isVirtualized)!==null&&O!==void 0?O:o==null?void 0:o.isVirtualized,b=Rs(),P=Rs(),E={role:"option","aria-disabled":s||void 0,"aria-selected":t.selectionManager.selectionMode!=="none"?c:void 0};Is()&&Mk()||(E["aria-label"]=e["aria-label"],E["aria-labelledby"]=b,E["aria-describedby"]=P);let $=t.collection.getItem(a);if(S){let B=Number($==null?void 0:$.index);E["aria-posinset"]=Number.isNaN(B)?void 0:B+1,E["aria-setsize"]=Fj(t.collection)}let Q=o!=null&&o.onAction?()=>{var B;return o==null||(B=o.onAction)===null||B===void 0?void 0:B.call(o,a)}:void 0,{itemProps:k,isPressed:D,isFocused:T,hasAction:A,allowsSelection:M}=Uj({selectionManager:t.selectionManager,key:a,ref:n,shouldSelectOnPressUp:p,allowsDifferentPressOrigin:p&&v,isVirtualized:S,shouldUseVirtualFocus:_,isDisabled:s,onAction:Q||!($==null||(r=$.props)===null||r===void 0)&&r.onAction?oc($==null||(i=$.props)===null||i===void 0?void 0:i.onAction,Q):void 0,linkBehavior:o==null?void 0:o.linkBehavior}),{hoverProps:L}=q1({isDisabled:s||!v,onHoverStart(){hd()||(t.selectionManager.setFocused(!0),t.selectionManager.setFocusedKey(a))}}),N=Fr($==null?void 0:$.props);delete N.id;let j=Lk($==null?void 0:$.props);return{optionProps:{...E,...mt(N,k,L,j),id:r_e(t,a)},labelProps:{id:b},descriptionProps:{id:P},isFocused:T,isFocusVisible:T&&hd(),isSelected:c,isDisabled:s,isPressed:D,allowsSelection:M,hasAction:A}}function aXe(e){let{heading:t,"aria-label":n}=e,r=$a();return{itemProps:{role:"presentation"},headingProps:t?{id:r,role:"presentation"}:{},groupProps:{role:"group","aria-label":n,"aria-labelledby":t?r:void 0}}}class l_e{shouldInvalidate(t,n){return t.width!==n.width||t.height!==n.height}validate(t){}getInitialLayoutInfo(t){return t}getFinalLayoutInfo(t){return t}}class Tu{copy(){let t=new Tu(this.type,this.key,this.rect.copy());return t.estimatedSize=this.estimatedSize,t.opacity=this.opacity,t.transform=this.transform,t.parentKey=this.parentKey,t.isSticky=this.isSticky,t.zIndex=this.zIndex,t.allowOverflow=this.allowOverflow,t}constructor(t,n,r){this.type=t,this.key=n,this.parentKey=null,this.rect=r,this.estimatedSize=!1,this.isSticky=!1,this.opacity=1,this.transform=null,this.zIndex=0,this.allowOverflow=!1}}class vi{copy(){return new vi(this.x,this.y)}equals(t){return this.x===t.x&&this.y===t.y}isOrigin(){return this.x===0&&this.y===0}constructor(t=0,n=0){this.x=t,this.y=n}}class mn{get maxX(){return this.x+this.width}get maxY(){return this.y+this.height}get area(){return this.width*this.height}get topLeft(){return new vi(this.x,this.y)}get topRight(){return new vi(this.maxX,this.y)}get bottomLeft(){return new vi(this.x,this.maxY)}get bottomRight(){return new vi(this.maxX,this.maxY)}intersects(t){return this.x<=t.x+t.width&&t.x<=this.x+this.width&&this.y<=t.y+t.height&&t.y<=this.y+this.height}containsRect(t){return this.x<=t.x&&this.y<=t.y&&this.maxX>=t.maxX&&this.maxY>=t.maxY}containsPoint(t){return this.x<=t.x&&this.y<=t.y&&this.maxX>=t.x&&this.maxY>=t.y}getCornerInRect(t){for(let n of["topLeft","topRight","bottomLeft","bottomRight"])if(t.containsPoint(this[n]))return n;return null}equals(t){return t.x===this.x&&t.y===this.y&&t.width===this.width&&t.height===this.height}pointEquals(t){return this.x===t.x&&this.y===t.y}sizeEquals(t){return this.width===t.width&&this.height===t.height}union(t){let n=Math.min(this.x,t.x),r=Math.min(this.y,t.y),i=Math.max(this.maxX,t.maxX)-n,a=Math.max(this.maxY,t.maxY)-r;return new mn(n,r,i,a)}intersection(t){if(!this.intersects(t))return new mn(0,0,0,0);let n=Math.max(this.x,t.x),r=Math.max(this.y,t.y);return new mn(n,r,Math.min(this.maxX,t.maxX)-n,Math.min(this.maxY,t.maxY)-r)}copy(){return new mn(this.x,this.y,this.width,this.height)}constructor(t=0,n=0,r=0,i=0){this.x=t,this.y=n,this.width=r,this.height=i}}class fc{copy(){return new fc(this.width,this.height)}equals(t){return this.width===t.width&&this.height===t.height}get area(){return this.width*this.height}constructor(t=0,n=0){this.width=t,this.height=n}}let s_e=0;class u_e{prepareForReuse(){this.content=null,this.rendered=null,this.layoutInfo=null}constructor(t){this.virtualizer=t,this.key=++s_e}}let mf=typeof window<"u"?window.performance:null,t3=mf&&(mf.now||mf.webkitNow||mf.msNow||mf.mozNow),Ew=t3?t3.bind(mf):function(){return Date.now?Date.now():new Date().getTime()},Rw;function c_e(e,t,n,r,i){let a=!1,o,l=new Promise(s=>{let u=Ew(),c=t.x-e.x,f=t.y-e.y;o=requestAnimationFrame(function p(g){Rw==null&&(Rw=g>1e12!=Ew()>1e12),Rw&&(g=Ew());let v=g-u;v>n?(i(t),s()):i(new vi(e.x+c*r(v/n),e.y+f*r(v/n)))!==!1&&!a&&(o=requestAnimationFrame(p))})});return l.cancel=function(){a=!0,cancelAnimationFrame(o)},l}function f_e(e){return Math.sin(e*Math.PI/2)}function n3(e,t){let n=new Set;for(let r of e.keys())t.has(r)||n.add(r);return n}function d_e(e,t){let n=n3(e,t),r=n3(t,e),i=new Set;for(let a of e.keys())t.has(a)&&i.add(a);return{toRemove:n,toAdd:r,toUpdate:i}}function*h_e(...e){for(let t of e)yield*t}function p_e(e,t){if(e===t)return!0;if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}class Km{addSample(t){this.count++,this.value+=(t-this.value)/this.count}constructor(){this.count=0,this.value=0}}class g_e{setVisibleRect(t){let n=performance.now()-this.startTime;n<500&&(this.averageTime.addSample(n),t.x!==this.visibleRect.x&&n>0&&(this.velocity.x=(t.x-this.visibleRect.x)/n),t.y!==this.visibleRect.y&&n>0&&(this.velocity.y=(t.y-this.visibleRect.y)/n)),this.startTime=performance.now(),this.visibleRect=t}collectMetrics(){let t=performance.now()-this.startTime;if(t<500&&this.averagePerf.addSample(t),this.visibleRect.height>0){let n=Math.abs(this.velocity.y*(this.averageTime.value+this.averagePerf.value));this.overscanY.addSample(n)}if(this.visibleRect.width>0){let n=Math.abs(this.velocity.x*(this.averageTime.value+this.averagePerf.value));this.overscanX.addSample(n)}}getOverscannedRect(){let t=this.visibleRect.copy(),n=Math.round(Math.min(this.visibleRect.height*2,this.overscanY.value)/100)*100;this.velocity.y>0?(t.y-=n*.2,t.height+=n+n*.2):(t.y-=n,t.height+=n+n*.2);let r=Math.round(Math.min(this.visibleRect.width*2,this.overscanX.value)/100)*100;return this.velocity.x>0?(t.x-=r*.2,t.width+=r+r*.2):(t.x-=r,t.width+=r+r*.2),t}constructor(){this.startTime=0,this.averagePerf=new Km,this.averageTime=new Km,this.velocity=new vi(5,5),this.overscanX=new Km,this.overscanY=new Km,this.visibleRect=new mn}}class v_e{constructor(){this.level=0,this.actions=[],this.animated=!0,this.initialMap=new Map,this.finalMap=new Map,this.initialLayoutInfo=new Map,this.finalLayoutInfo=new Map,this.removed=new Map,this.toRemove=new Map}}class m_e{_setContentSize(t){this._contentSize=t,this.delegate.setContentSize(t)}_setContentOffset(t){let n=new mn(t.x,t.y,this._visibleRect.width,this._visibleRect.height);this.delegate.setVisibleRect(n)}get contentSize(){return this._contentSize}get visibleRect(){return this._visibleRect}set visibleRect(t){this._setVisibleRect(t)}_setVisibleRect(t,n=!1){let r=this._visibleRect;if(t.equals(r))return;this.shouldOverscan&&this._overscanManager.setVisibleRect(t);let i=this.layout&&this.layout.shouldInvalidate(t,this._visibleRect);this._resetAnimatedContentOffset(),this._visibleRect=t,i?this.relayoutNow({offsetChanged:!t.pointEquals(r),sizeChanged:!t.sizeEquals(r)}):this.updateSubviews(n)}get collection(){return this._collection}set collection(t){this._setData(t)}_setData(t){t!==this._collection&&(this._collection?this._runTransaction(()=>{this._collection=t},this.transitionDuration>0):(this._collection=t,this.reloadData()))}reloadData(){this.relayout({contentChanged:!0})}getItem(t){return this._collection?this._collection.getItem(t):null}get persistedKeys(){return this._persistedKeys}set persistedKeys(t){p_e(t,this._persistedKeys)||(this._persistedKeys=t,this.updateSubviews())}isPersistedKey(t){if(this._persistedKeys.has(t))return!0;for(let n of this._persistedKeys)for(;n!=null;){let r=this.layout.getLayoutInfo(n);if(!r)break;if(n=r.parentKey,n===t)return!0}return!1}get layout(){return this._layout}set layout(t){this.setLayout(t)}setLayout(t,n=!1){if(t===this._layout)return;let r=()=>{this._layout&&(this._layout.virtualizer=null),t.virtualizer=this,this._layout=t};n?this._runTransaction(r):(r(),this.relayout())}_getReuseType(t,n){if(t.type==="item"&&n){let r=this.delegate.getType?this.delegate.getType(n):"item",i=r==="item"?"item":t.type+"_"+r;return{type:r,reuseType:i}}return{type:t.type,reuseType:t.type}}getReusableView(t){let n=this.getItem(t.key),{reuseType:r}=this._getReuseType(t,n);this._reusableViews[r]||(this._reusableViews[r]=[]);let i=this._reusableViews[r],a=i.length>0?i.pop():new u_e(this);return a.viewType=r,this._animatedContentOffset.isOrigin()||(t=t.copy(),t.rect.x+=this._animatedContentOffset.x,t.rect.y+=this._animatedContentOffset.y),a.layoutInfo=t,this._renderView(a),a}_renderView(t){let{type:n,key:r}=t.layoutInfo;t.content=this.getItem(r),t.rendered=this._renderContent(n,t.content)}_renderContent(t,n){let r=this._renderedContent.get(n);if(r!=null)return r;let i=this.delegate.renderView(t,n);return n&&this._renderedContent.set(n,i),i}get visibleViews(){return Array.from(this._visibleViews.values())}getView(t){return this._visibleViews.get(t)||null}getViewsOfType(t){return this.visibleViews.filter(n=>n.layoutInfo&&n.layoutInfo.type===t)}keyForView(t){return t&&t.layoutInfo?t.layoutInfo.key:null}keyAtPoint(t){let n=new mn(t.x,t.y,1,1),r=this.layout.getVisibleLayoutInfos(n);for(let i of r)if(i.rect.intersects(n))return i.key;return null}willUnmount(){cancelAnimationFrame(this._relayoutRaf)}relayout(t={}){if(!(this._scrollAnimation||typeof requestAnimationFrame>"u")){if(this._invalidationContext){Object.assign(this._invalidationContext,t);return}this._invalidationContext=t}}relayoutNow(t=this._invalidationContext||{}){if(this._relayoutRaf&&(cancelAnimationFrame(this._relayoutRaf),this._relayoutRaf=null,t={...this._invalidationContext,...t}),this._invalidationContext=null,!this.layout||!this._collection||this._scrollAnimation)return;let n=this._getScrollAnchor();typeof t.beforeLayout=="function"&&t.beforeLayout(),this.layout.validate(t),this._setContentSize(this.layout.getContentSize()),typeof t.afterLayout=="function"&&t.afterLayout();let r=this.getVisibleRect(),i=this._restoreScrollAnchor(n,t),a=t.contentChanged?0:i.x,o=t.contentChanged?0:i.y;a=Math.max(0,Math.min(this.contentSize.width-r.width,a)),o=Math.max(0,Math.min(this.contentSize.height-r.height,o));let l=!1;if(a!==r.x||o!==r.y?t.animated||!this._animatedContentOffset.isOrigin()?(this._animatedContentOffset.x+=r.x-a,this._animatedContentOffset.y+=r.y-o,l=this.updateSubviews(t.contentChanged)):this._setContentOffset(new vi(a,o)):l=this.updateSubviews(t.contentChanged),t.transaction&&t.animated||this._applyLayoutInfos(),t.animated&&l){this._enableTransitions(),setTimeout(()=>{if(this._disableTransitions(),!this._animatedContentOffset.isOrigin()){let{x:u,y:c}=this.getVisibleRect();this._resetAnimatedContentOffset(),this._setContentOffset(new vi(u,c))}typeof t.afterAnimation=="function"&&t.afterAnimation()},this.transitionDuration+100);return}else typeof t.afterAnimation=="function"&&t.afterAnimation()}_correctItemOrder(){if(!(this._isScrolling||this._transaction))for(let t of this._visibleLayoutInfos.keys()){let n=this._visibleViews.get(t);this._children.delete(n),this._children.add(n)}}_enableTransitions(){this.delegate.beginAnimations()}_disableTransitions(){this.delegate.endAnimations()}_getScrollAnchor(){if(!this.anchorScrollPosition)return null;let t=this.getVisibleRect();if(this.delegate.getScrollAnchor){let r=this.delegate.getScrollAnchor(t);if(r!=null){let i=this.layout.getLayoutInfo(r),a=i.rect.getCornerInRect(t);if(a){let o=i.key,l=i.rect[a].y-t.y;return{key:o,layoutInfo:i,corner:a,offset:l}}}}if(t.y===0&&!this.anchorScrollPositionAtTop)return null;let n=null;for(let[r,i]of this._visibleViews){let a=i.layoutInfo;if(a&&a.rect.area>0){let o=a.rect.getCornerInRect(t);if(o){let l=a.rect[o].y-t.y;(!n||l<n.offset)&&(n={key:r,layoutInfo:a,corner:o,offset:l})}}}return n}_restoreScrollAnchor(t,n){let r=this.getVisibleRect();if(t){var i;let a=!((i=n.transaction)===null||i===void 0)&&i.animated?n.transaction.finalMap.get(t.key):this.layout.getLayoutInfo(t.layoutInfo.key);if(a){let o=a.rect[t.corner].y-r.y-t.offset;r.y+=o}}return r}getVisibleRect(){let t=this.visibleRect,n=t.x-this._animatedContentOffset.x,r=t.y-this._animatedContentOffset.y;return new mn(n,r,t.width,t.height)}getVisibleLayoutInfos(){Object.getOwnPropertyNames(window.HTMLElement.prototype).includes("clientWidth"),Object.getOwnPropertyNames(window.HTMLElement.prototype).includes("clientHeight");let t;return t=this.shouldOverscan?this._overscanManager.getOverscannedRect():this.getVisibleRect(),this._visibleLayoutInfos=this._getLayoutInfoMap(t),this._visibleLayoutInfos}_getLayoutInfoMap(t,n=!1){let r=this.layout.getVisibleLayoutInfos(t),i=new Map;for(let a of r)n&&(a=a.copy()),i.set(a.key,a);return i}updateSubviews(t=!1){if(!this._collection)return;let n=this.getVisibleLayoutInfos(),r=this._visibleViews,i,a,o;if(t)i=n,a=r,o=new Set;else{({toAdd:i,toRemove:a,toUpdate:o}=d_e(r,n));for(let u of o){let c=r.get(u);if(!c||!c.layoutInfo)continue;let f=this.getItem(n.get(u).key);if(c.content===f)o.delete(u);else{let{reuseType:p}=this._getReuseType(c.layoutInfo,f);c.viewType!==p&&(o.delete(u),i.add(u),a.add(u))}}if(i.size===0&&a.size===0&&o.size===0){this._transaction&&this._applyLayoutInfos();return}}let l=new Set;for(let u of a.keys()){let c=this._visibleViews.get(u);c&&(l.add(c),this._visibleViews.delete(u),this._transaction?this._transaction.toRemove.set(u,c):this.reuseView(c))}for(let u of i.keys()){let c=n.get(u),f;this._transaction&&(this._transaction.initialLayoutInfo.has(u)&&(c=this._transaction.initialLayoutInfo.get(u)),f=this._transaction.toRemove.get(u),f&&(this._transaction.toRemove.delete(u),this._applyLayoutInfo(f,c))),f||(f=this.getReusableView(c),l.has(f)||this._children.add(f)),this._visibleViews.set(u,f),l.delete(f)}for(let u of o){let c=r.get(u);this._renderedContent.delete(u),this._renderView(c)}this._transaction||this.removeViews(l),this._correctItemOrder(),this._flushVisibleViews();let s=this._transaction&&(i.size>0||a.size>0||this._hasLayoutUpdates());return s&&requestAnimationFrame(()=>{this._transaction&&requestAnimationFrame(()=>this._applyLayoutInfos())}),s}afterRender(){this._transactionQueue.length>0?this._processTransactionQueue():this._invalidationContext&&this.relayoutNow(),this.shouldOverscan&&this._overscanManager.collectMetrics()}_flushVisibleViews(){let t=new Map([[null,[]]]);for(let u of this._children){var n,r,i,a,o;((n=u.layoutInfo)===null||n===void 0?void 0:n.parentKey)!=null&&!t.has(u.layoutInfo.parentKey)&&t.set(u.layoutInfo.parentKey,[]),(r=t.get((i=u.layoutInfo)===null||i===void 0?void 0:i.parentKey))===null||r===void 0||r.push(u),t.has((a=u.layoutInfo)===null||a===void 0?void 0:a.key)||t.set((o=u.layoutInfo)===null||o===void 0?void 0:o.key,[])}let l=(u,c)=>c.map(f=>{let p=t.get(f.layoutInfo.key);return this.delegate.renderWrapper(u,f,p,g=>l(f,g))}),s=l(null,t.get(null));this.delegate.setVisibleViews(s)}_applyLayoutInfo(t,n){return t.layoutInfo===n?!1:(t.layoutInfo=n,!0)}_applyLayoutInfos(){let t=!1;for(let n of this._visibleViews.values()){let r=n.layoutInfo;if((r==null?void 0:r.key)!=null){let i=this.layout.getLayoutInfo(r.key);this._applyLayoutInfo(n,i)&&(t=!0)}}if(this._transaction){for(let n of this._transaction.toRemove.values()){let r=n.layoutInfo;if((r==null?void 0:r.key)!=null){let i=this.layout.getLayoutInfo(r.key);this._applyLayoutInfo(n,i)&&(t=!0)}}for(let n of this._transaction.removed.values()){let r=n.layoutInfo,i=this._transaction.finalLayoutInfo.get(r.key)||r;i=this.layout.getFinalLayoutInfo(i.copy()),this._applyLayoutInfo(n,i)&&(t=!0)}}t&&this._flushVisibleViews()}_hasLayoutUpdates(){if(!this._transaction)return!1;for(let t of this._visibleViews.values()){let n=t.layoutInfo;if(!n)return!0;let r=this.layout.getLayoutInfo(n.key);if(!n.rect.equals(r.rect)||n.opacity!==r.opacity||n.transform!==r.transform)return!0}return!1}reuseView(t){t.prepareForReuse(),this._reusableViews[t.viewType].push(t)}removeViews(t){for(let n of t)this._children.delete(n)}updateItemSize(t,n){if(!this.layout.updateItemSize)return;if(this._scrollAnimation){this._sizeUpdateQueue.set(t,n);return}this.layout.updateItemSize(t,n)&&this.relayout()}startScrolling(){this._isScrolling=!0}endScrolling(){this._isScrolling=!1,this._correctItemOrder(),this._flushVisibleViews()}_resetAnimatedContentOffset(){this._animatedContentOffset.isOrigin()||(this._animatedContentOffset=new vi(0,0),this._applyLayoutInfos())}scrollToItem(t,n){if(t==null)return;let r=this.layout.getLayoutInfo(t);if(!r)return;let{duration:i=300,shouldScrollX:a=!0,shouldScrollY:o=!0,offsetX:l=0,offsetY:s=0}=n,u=this.visibleRect.x,c=this.visibleRect.y,f=r.rect.x-l,p=r.rect.y-s,g=u+this.visibleRect.width,v=c+this.visibleRect.height;return a&&(f<=u||g===0?u=f:r.rect.maxX>g&&(u+=r.rect.maxX-g)),o&&(p<=c||v===0?c=p:r.rect.maxY>v&&(c+=r.rect.maxY-v)),this.scrollTo(new vi(u,c),i)}scrollTo(t,n=300){return this._scrollAnimation&&(this._scrollAnimation.cancel(),this._scrollAnimation=null),n<=0||this.visibleRect.pointEquals(t)?(this._setContentOffset(t),Promise.resolve()):(this.startScrolling(),this._scrollAnimation=c_e(this.visibleRect,t,n,f_e,r=>{this._setContentOffset(r)}),this._scrollAnimation.then(()=>{this._scrollAnimation=null;for(let[r,i]of this._sizeUpdateQueue)this.updateItemSize(r,i);this._sizeUpdateQueue.clear(),this.relayout(),this._processTransactionQueue(),this.endScrolling()}),this._scrollAnimation)}_runTransaction(t,n){this._startTransaction(),this._nextTransaction&&this._nextTransaction.actions.push(t),this._endTransaction(n)}_startTransaction(){this._nextTransaction||(this._nextTransaction=new v_e),this._nextTransaction.level++}_endTransaction(t){return!this._nextTransaction||(t!=null&&(this._nextTransaction.animated=t),--this._nextTransaction.level>0)?!1:this._nextTransaction.actions.length===0?(this._nextTransaction=null,!1):(this._nextTransaction.animated==null&&(this._nextTransaction.animated=!0),this._transactionQueue.push(this._nextTransaction),this._nextTransaction=null,!0)}_processTransactionQueue(){if(this._transaction||this._scrollAnimation)return;let t=this._transactionQueue.shift();t&&this._performTransaction(t)}_getContentRect(){return new mn(0,0,this.contentSize.width,this.contentSize.height)}_performTransaction(t){this._transaction=t,this.relayoutNow({transaction:t,animated:t.animated,beforeLayout:()=>{t.animated&&(t.initialMap=this._getLayoutInfoMap(this._getContentRect(),!0));for(let n of t.actions)n()},afterLayout:()=>{t.animated?(t.finalMap=this._getLayoutInfoMap(this._getContentRect()),this._setupTransactionAnimations(t)):this._transaction=null},afterAnimation:()=>{if(t.toRemove.size>0||t.removed.size>0)for(let n of h_e(t.toRemove.values(),t.removed.values()))this._children.delete(n),this.reuseView(n);this._transaction=null,this._correctItemOrder(),this._flushVisibleViews(),this._processTransactionQueue()}})}_setupTransactionAnimations(t){let{initialMap:n,finalMap:r}=t;for(let[i,a]of n)r.has(i)?t.initialLayoutInfo.set(i,a):t.finalLayoutInfo.set(a.key,a);for(let[i,a]of r)if(!n.has(i)){let o=this.layout.getInitialLayoutInfo(a.copy());t.initialLayoutInfo.set(i,o)}for(let[i,a]of this._visibleViews)!r.has(i)&&a.layoutInfo.rect.width>0&&(t.removed.set(i,a),this._visibleViews.delete(i),a.layoutInfo&&(t.finalLayoutInfo.has(a.layoutInfo.key)||t.finalLayoutInfo.set(a.layoutInfo.key,a.layoutInfo)))}constructor(t={}){this._contentSize=new fc,this._visibleRect=new mn,this._reusableViews={},this._visibleLayoutInfos=new Map,this._visibleViews=new Map,this._renderedContent=new WeakMap,this._children=new Set,this._invalidationContext=null,this._overscanManager=new g_e,this._persistedKeys=new Set,this._scrollAnimation=null,this._isScrolling=!1,this._sizeUpdateQueue=new Map,this._animatedContentOffset=new vi(0,0),this._transaction=null,this._nextTransaction=null,this._transactionQueue=[];var n;this.transitionDuration=(n=t.transitionDuration)!==null&&n!==void 0?n:500,this.anchorScrollPosition=t.anchorScrollPosition||!1,this.anchorScrollPositionAtTop=t.anchorScrollPositionAtTop||!1,this.shouldOverscan=t.shouldOverscan!==!1;for(let r of["delegate","size","layout","collection"])t[r]&&(this[r]=t[r])}}function O_e(e){let[t,n]=R.useState([]),[r,i]=R.useState(new fc),[a,o]=R.useState(!1),[l,s]=R.useState(!1),u=R.useMemo(()=>new m_e,[]);u.delegate={setVisibleViews:n,setVisibleRect(v){u.visibleRect=v,e.onVisibleRectChange(v)},setContentSize:i,renderView:e.renderView,renderWrapper:e.renderWrapper,beginAnimations:()=>o(!0),endAnimations:()=>o(!1),getScrollAnchor:e.getScrollAnchor},u.layout=e.layout,u.collection=e.collection,u.transitionDuration=e.transitionDuration,qt(()=>{u.afterRender()}),R.useEffect(()=>()=>u.willUnmount(),[]);let c=R.useCallback(v=>{u.visibleRect=v},[u]),f=R.useCallback(()=>{u.startScrolling(),s(!0)},[u]),p=R.useCallback(()=>{u.endScrolling(),s(!1)},[u]);return R.useMemo(()=>({virtualizer:u,visibleViews:t,setVisibleRect:c,contentSize:r,isAnimating:a,isScrolling:l,startScrolling:f,endScrolling:p}),[u,t,c,r,a,l,f,p])}const r3=48;class oXe extends l_e{getLayoutInfo(t){let n=this.layoutInfos.get(t);return!n&&this.validRect.area<this.contentSize.area&&this.lastCollection&&(this.lastValidRect=this.validRect,this.validRect=new mn(0,0,1/0,1/0),this.rootNodes=this.buildCollection(),this.validRect=new mn(0,0,this.contentSize.width,this.contentSize.height),n=this.layoutInfos.get(t)),n}getVisibleLayoutInfos(t){!this.validRect.containsRect(t)&&this.lastCollection&&(this.lastValidRect=this.validRect,this.validRect=this.validRect.union(t),this.rootNodes=this.buildCollection());let n=[],r=i=>{for(let a of i)this.isVisible(a,t)&&(n.push(a.layoutInfo),a.header&&n.push(a.header),a.children&&r(a.children))};return r(this.rootNodes),n}isVisible(t,n){return t.layoutInfo.rect.intersects(n)||t.layoutInfo.isSticky||this.virtualizer.isPersistedKey(t.layoutInfo.key)}shouldInvalidateEverything(t){return t.sizeChanged}validate(t){if(this.collection=this.virtualizer.collection,this.invalidateEverything=this.shouldInvalidateEverything(t),this.invalidateEverything&&(this.lastValidRect=this.validRect,this.validRect=this.virtualizer.getVisibleRect()),this.rootNodes=this.buildCollection(),this.lastCollection&&this.collection!==this.lastCollection){for(let r of this.lastCollection.getKeys())if(!this.collection.getItem(r)){let i=this.layoutNodes.get(r);if(i){var n;this.layoutInfos.delete(i.layoutInfo.key),this.layoutInfos.delete((n=i.header)===null||n===void 0?void 0:n.key),this.layoutNodes.delete(r)}}}this.lastWidth=this.virtualizer.visibleRect.width,this.lastCollection=this.collection,this.invalidateEverything=!1}buildCollection(){let t=this.padding,n=0,r=[];for(let l of this.collection){var i;let s=(i=this.rowHeight)!==null&&i!==void 0?i:this.estimatedRowHeight;if(l.type==="item"&&t+s<this.validRect.y&&!this.isValid(l,t)){t+=s,n++;continue}let u=this.buildChild(l,0,t);if(t=u.layoutInfo.rect.maxY,r.push(u),l.type==="item"&&t>this.validRect.maxY){t+=(this.collection.size-(r.length+n))*s;break}}if(this.isLoading){var a;let l=new mn(0,t,this.virtualizer.visibleRect.width,(a=this.loaderHeight)!==null&&a!==void 0?a:this.virtualizer.visibleRect.height),s=new Tu("loader","loader",l);this.layoutInfos.set("loader",s),r.push({layoutInfo:s}),t=s.rect.maxY}if(r.length===0){var o;let l=new mn(0,t,this.virtualizer.visibleRect.width,(o=this.placeholderHeight)!==null&&o!==void 0?o:this.virtualizer.visibleRect.height),s=new Tu("placeholder","placeholder",l);this.layoutInfos.set("placeholder",s),r.push({layoutInfo:s}),t=s.rect.maxY}return this.contentSize=new fc(this.virtualizer.visibleRect.width,t+this.padding),r}isValid(t,n){let r=this.layoutNodes.get(t.key);return!this.invalidateEverything&&r&&r.node===t&&n===(r.header||r.layoutInfo).rect.y&&r.layoutInfo.rect.intersects(this.lastValidRect)&&r.validRect.containsRect(r.layoutInfo.rect.intersection(this.validRect))}buildChild(t,n,r){if(this.isValid(t,r))return this.layoutNodes.get(t.key);let i=this.buildNode(t,n,r);i.node=t;var a;return i.layoutInfo.parentKey=(a=t.parentKey)!==null&&a!==void 0?a:null,this.layoutInfos.set(i.layoutInfo.key,i.layoutInfo),i.header&&this.layoutInfos.set(i.header.key,i.header),this.layoutNodes.set(t.key,i),i}buildNode(t,n,r){switch(t.type){case"section":return this.buildSection(t,n,r);case"item":return this.buildItem(t,n,r)}}buildSection(t,n,r){let i=this.virtualizer.visibleRect.width,a=this.headingHeight,o=!1;if(a==null){let m=this.layoutNodes.get(t.key);if(m&&m.header){let _=this.collection.getItem(t.key),O=this.lastCollection?this.lastCollection.getItem(t.key):null;a=m.header.rect.height,o=i!==this.lastWidth||_!==O||m.header.estimatedSize}else a=t.rendered?this.estimatedHeadingHeight:0,o=!0}a==null&&(a=r3);let l=new mn(0,r,i,a),s=new Tu("header",t.key+":header",l);s.estimatedSize=o,s.parentKey=t.key,r+=s.rect.height;let u=new mn(0,r,i,0),c=new Tu(t.type,t.key,u),f=r,p=0,g=[];for(let m of Gy(t,this.collection)){var v;let _=(v=this.rowHeight)!==null&&v!==void 0?v:this.estimatedRowHeight;if(r+_<this.validRect.y&&!this.isValid(t,r)){r+=_,p++;continue}let O=this.buildChild(m,n,r);if(r=O.layoutInfo.rect.maxY,g.push(O),r>this.validRect.maxY){r+=([...Gy(t,this.collection)].length-(g.length+p))*_;break}}return u.height=r-f,{header:s,layoutInfo:c,children:g,validRect:c.rect.intersection(this.validRect)}}buildItem(t,n,r){let i=this.virtualizer.visibleRect.width,a=this.rowHeight,o=!1;if(a==null){let u=this.layoutNodes.get(t.key);u?(a=u.layoutInfo.rect.height,o=i!==this.lastWidth||t!==u.node||u.layoutInfo.estimatedSize):(a=this.estimatedRowHeight,o=!0)}a==null&&(a=r3),typeof this.indentationForItem=="function"&&(n+=this.indentationForItem(this.collection,t.key)||0);let l=new mn(n,r,i-n,a),s=new Tu(t.type,t.key,l);return s.allowOverflow=!0,s.estimatedSize=o,{layoutInfo:s,validRect:s.rect}}updateItemSize(t,n){let r=this.layoutInfos.get(t);if(!r)return!1;if(r.estimatedSize=!1,r.rect.height!==n.height){let i=r.copy();i.rect.height=n.height,this.layoutInfos.set(t,i),this.updateLayoutNode(t,r,i);let a=this.collection.getItem(r.parentKey);for(;a;)this.updateLayoutNode(a.key,r,i),a=this.collection.getItem(a.parentKey);return!0}return!1}updateLayoutNode(t,n,r){let i=this.layoutNodes.get(t);i&&(i.validRect=new mn,i.header===n?i.header=r:i.layoutInfo===n&&(i.layoutInfo=r))}getContentSize(){return this.contentSize}getKeyAbove(t){let n=this.collection;for(t=n.getKeyBefore(t);t!=null;){let r=n.getItem(t);if(r.type==="item"&&(this.allowDisabledKeyFocus||!this.disabledKeys.has(r.key)))return t;t=n.getKeyBefore(t)}}getKeyBelow(t){let n=this.collection;for(t=n.getKeyAfter(t);t!=null;){let r=n.getItem(t);if(r.type==="item"&&(this.allowDisabledKeyFocus||!this.disabledKeys.has(r.key)))return t;t=n.getKeyAfter(t)}}getKeyPageAbove(t){let n=this.getLayoutInfo(t);if(n){let r=Math.max(0,n.rect.y+n.rect.height-this.virtualizer.visibleRect.height);for(;n&&n.rect.y>r;){let i=this.getKeyAbove(n.key);n=this.getLayoutInfo(i)}if(n)return n.key}return this.getFirstKey()}getKeyPageBelow(t){let n=this.getLayoutInfo(t??this.getFirstKey());if(n){let r=Math.min(this.virtualizer.contentSize.height,n.rect.y-n.rect.height+this.virtualizer.visibleRect.height);for(;n&&n.rect.y<r;){let i=this.getKeyBelow(n.key);n=this.getLayoutInfo(i)}if(n)return n.key}return this.getLastKey()}getFirstKey(){let t=this.collection,n=t.getFirstKey();for(;n!=null;){let r=t.getItem(n);if(r.type==="item"&&(this.allowDisabledKeyFocus||!this.disabledKeys.has(r.key)))return n;n=t.getKeyAfter(n)}}getLastKey(){let t=this.collection,n=t.getLastKey();for(;n!=null;){let r=t.getItem(n);if(r.type==="item"&&(this.allowDisabledKeyFocus||!this.disabledKeys.has(r.key)))return n;n=t.getKeyBefore(n)}}getKeyForSearch(t,n){if(!this.collator)return null;let r=this.collection,i=n||this.getFirstKey();for(;i!=null;){let a=r.getItem(i),o=a.textValue.slice(0,t.length);if(a.textValue&&this.collator.compare(o,t)===0)return i;i=this.getKeyBelow(i)}return null}getInitialLayoutInfo(t){return t.opacity=0,t.transform="scale3d(0.8, 0.8, 0.8)",t}getFinalLayoutInfo(t){return t.opacity=0,t.transform="scale3d(0.8, 0.8, 0.8)",t}getDropTargetFromPoint(t,n,r){t+=this.virtualizer.visibleRect.x,n+=this.virtualizer.visibleRect.y;let i=this.virtualizer.keyAtPoint(new vi(t,n));if(i==null||this.collection.size===0)return{type:"root"};let a=this.getLayoutInfo(i),o=a.rect,l={type:"item",key:a.key,dropPosition:"on"};return r(l)?n<=o.y+10&&r({...l,dropPosition:"before"})?l.dropPosition="before":n>=o.maxY-10&&r({...l,dropPosition:"after"})&&(l.dropPosition="after"):n<=o.y+o.height/2&&r({...l,dropPosition:"before"})?l.dropPosition="before":r({...l,dropPosition:"after"})&&(l.dropPosition="after"),l}constructor(t={}){super(),this.disabledKeys=new Set,this.allowDisabledKeyFocus=!1,this.rowHeight=t.rowHeight,this.estimatedRowHeight=t.estimatedRowHeight,this.headingHeight=t.headingHeight,this.estimatedHeadingHeight=t.estimatedHeadingHeight,this.padding=t.padding||0,this.indentationForItem=t.indentationForItem,this.collator=t.collator,this.loaderHeight=t.loaderHeight,this.placeholderHeight=t.placeholderHeight,this.layoutInfos=new Map,this.layoutNodes=new Map,this.rootNodes=[],this.lastWidth=0,this.lastCollection=null,this.allowDisabledKeyFocus=t.allowDisabledKeyFocus,this.lastValidRect=new mn,this.validRect=new mn,this.contentSize=new fc}}let of=null;function y_e(e=!1){if(of===null||e){const t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";const r=document.createElement("div"),i=r.style;return i.width="100px",i.height="100px",t.appendChild(r),document.body.appendChild(t),t.scrollLeft>0?of="positive-descending":(t.scrollLeft=1,t.scrollLeft===0?of="negative":of="positive-ascending"),document.body.removeChild(t),of}return of}function __e(e,t){let{scrollLeft:n}=e;if(t==="rtl"){let{scrollWidth:r,clientWidth:i}=e;switch(y_e()){case"negative":n=-n;break;case"positive-descending":n=r-i-n;break}}return n}let S_e=pe.version.startsWith("16.")||pe.version.startsWith("17.");function b_e(e,t){let{contentSize:n,onVisibleRectChange:r,children:i,innerStyle:a,sizeToFit:o,onScrollStart:l,onScrollEnd:s,scrollDirection:u="both",...c}=e,f=R.useRef();t=t||f;let p=R.useRef({scrollTop:0,scrollLeft:0,scrollEndTime:0,scrollTimeout:null,width:0,height:0,isScrolling:!1}).current,{direction:g}=Vo(),[v,m]=R.useState(!1),_=R.useCallback(E=>{E.target===E.currentTarget&&(e.onScroll&&e.onScroll(E),g1.flushSync(()=>{let $=E.currentTarget.scrollTop,Q=__e(E.currentTarget,g);p.scrollTop=Math.max(0,Math.min($,n.height-p.height)),p.scrollLeft=Math.max(0,Math.min(Q,n.width-p.width)),r(new mn(p.scrollLeft,p.scrollTop,p.width,p.height)),p.isScrolling||(p.isScrolling=!0,m(!0),l&&l());let k=Date.now();p.scrollEndTime<=k+50&&(p.scrollEndTime=k+300,clearTimeout(p.scrollTimeout),p.scrollTimeout=setTimeout(()=>{p.isScrolling=!1,m(!1),p.scrollTimeout=null,s&&s()},300))}))},[e,g,p,n,r,l,s]);R.useEffect(()=>()=>{clearTimeout(p.scrollTimeout)},[]);let O=R.useCallback(()=>{let E=t.current;if(!E)return;Object.getOwnPropertyNames(window.HTMLElement.prototype).includes("clientWidth"),Object.getOwnPropertyNames(window.HTMLElement.prototype).includes("clientHeight");let $=E.clientWidth,Q=E.clientHeight;o&&n.width>0&&n.height>0&&(o==="width"?$=Math.min($,n.width):o==="height"&&(Q=Math.min(Q,n.height))),(p.width!==$||p.height!==Q)&&(p.width=$,p.height=Q,r(new mn(p.scrollLeft,p.scrollTop,$,Q)))},[r,t,p,o,n]);qt(()=>{O()},[O]);let S=R.useRef();_q({ref:t,onResize:()=>{var E,$;S_e?($=(E=S).current)!==null&&$!==void 0||(E.current=requestAnimationFrame(()=>{O(),S.current=null})):O()}}),R.useEffect(()=>()=>{S.current&&cancelAnimationFrame(S.current)},[]);let P={padding:0,...c.style};return u==="horizontal"?(P.overflowX="auto",P.overflowY="hidden"):u==="vertical"||n.width===p.width?(P.overflowY="auto",P.overflowX="hidden"):P.overflow="auto",a={width:Number.isFinite(n.width)?n.width:void 0,height:Number.isFinite(n.height)?n.height:void 0,pointerEvents:v?"none":"auto",position:"relative",...a},pe.createElement("div",{...c,style:P,ref:t,onScroll:_},pe.createElement("div",{role:"presentation",style:a},i))}const w_e=pe.forwardRef(b_e);function $_e(e){let{layoutInfo:t,virtualizer:n,ref:r}=e,i=R.useCallback(()=>{let a=x_e(r.current);n.updateItemSize(t.key,a)},[n,t.key,r]);return qt(()=>{t.estimatedSize&&i()}),{updateSize:i}}function x_e(e){let t=e.style.height;e.style.height="";let n=new fc(e.scrollWidth,e.scrollHeight);return e.style.height=t,n}function P_e(e){let{className:t,layoutInfo:n,virtualizer:r,parent:i,children:a}=e,{direction:o}=Vo(),l=R.useRef();return $_e({layoutInfo:n,virtualizer:r,ref:l}),pe.createElement("div",{role:"presentation",ref:l,className:t,style:E_e(n,o,i)},a)}let i3=new WeakMap;function E_e(e,t,n){let r=t==="rtl"?"right":"left",i=i3.get(e);if(i&&i[r]!=null){if(!n)return i;let l=e.rect.y-n.rect.y,s=e.rect.x-n.rect.x;if(i.top===l&&i[r]===s)return i}let a={top:e.rect.y-(n?n.rect.y:0),[r]:e.rect.x-(n?n.rect.x:0),width:e.rect.width,height:e.rect.height};Object.entries(a).forEach(([l,s])=>{Number.isFinite(s)||(a[l]=void 0)});let o={position:e.isSticky?"sticky":"absolute",display:e.isSticky?"inline-block":void 0,overflow:e.allowOverflow?"visible":"hidden",transition:"all",WebkitTransition:"all",WebkitTransitionDuration:"inherit",transitionDuration:"inherit",opacity:e.opacity,zIndex:e.zIndex,transform:e.transform,contain:"size layout style",...a};return i3.set(e,o),o}function R_e(e,t){let{children:n,renderWrapper:r,layout:i,collection:a,sizeToFit:o,scrollDirection:l,transitionDuration:s,isLoading:u,onLoadMore:c,focusedKey:f,shouldUseVirtualFocus:p,scrollToItem:g,autoFocus:v,...m}=e,_=R.useRef();t=t||_;let O=O_e({transitionDuration:s,layout:i,collection:a,renderView:n,renderWrapper:r||T_e,onVisibleRectChange(P){t.current.scrollLeft=P.x,t.current.scrollTop=P.y}}),{virtualizerProps:S,scrollViewProps:b}=k_e(e,O,t);return pe.createElement(w_e,{...mt(m,S,b),ref:t,innerStyle:O.isAnimating?{transition:`none ${O.virtualizer.transitionDuration}ms`}:void 0,contentSize:O.contentSize,onScrollStart:O.startScrolling,onScrollEnd:O.endScrolling,sizeToFit:o,scrollDirection:l},O.visibleViews)}function k_e(e,t,n){let{focusedKey:r,scrollToItem:i,shouldUseVirtualFocus:a,isLoading:o,onLoadMore:l}=e,{virtualizer:s}=t,u=R.useRef(null),c=R.useRef(!1),f=R.useRef(e.autoFocus);R.useEffect(()=>{if(s.visibleRect.height===0)return;let b=pd();r!==u.current&&(b!=="pointer"||f.current)&&(f.current=!1,i?i(r):s.scrollToItem(r,{duration:0})),u.current=r},[r,s.visibleRect.height,s,u,i,n]),s.persistedKeys=R.useMemo(()=>r?new Set([r]):new Set,[r]);let p=R.useCallback(b=>{let P=pd();!c.current&&n.current.contains(b.target)&&P!=="pointer"&&(i?i(r):s.scrollToItem(r,{duration:0})),c.current=b.target!==n.current},[n,s,r,i]),g=R.useCallback(b=>{c.current=n.current.contains(b.relatedTarget)},[n]),v;a||(v=r!=null?-1:0,s.collection.size===0&&e.tabIndex!=null&&(v=e.tabIndex));let m=R.useRef(o),_=R.useRef(e),O=R.useCallback(b=>{if(t.setVisibleRect(b),!m.current&&l){let P=t.virtualizer.contentSize.height-b.height*2;b.y>P&&(m.current=!0,l())}},[l,t]),S=R.useRef(0);return qt(()=>{if(t.isAnimating)return;let b=m.current;e!==_.current&&(m.current=o,_.current=e),!m.current&&l&&t.contentSize.height>0&&t.contentSize.height<=t.virtualizer.visibleRect.height&&(b||t.contentSize.height!==S.current)&&(m.current=!0,l()),S.current=t.contentSize.height},[t.contentSize,t.isAnimating,t.virtualizer,o,l,e]),{virtualizerProps:{tabIndex:v,onFocus:p,onBlur:g},scrollViewProps:{onVisibleRectChange:O}}}const lXe=pe.forwardRef(R_e);function T_e(e,t){return pe.createElement(P_e,{key:t.key,layoutInfo:t.layoutInfo,virtualizer:t.virtualizer,parent:e==null?void 0:e.layoutInfo},t.rendered)}function sXe(e){let t=Fr(e,{labelable:!0}),n;return e.orientation==="vertical"&&(n="vertical"),e.elementType!=="hr"?{separatorProps:{...t,role:"separator","aria-orientation":n}}:{separatorProps:t}}var Vj={};Vj={longPressMessage:"اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة"};var Zj={};Zj={longPressMessage:"Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто"};var Wj={};Wj={longPressMessage:"Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku"};var Xj={};Xj={longPressMessage:"Langt tryk eller tryk på Alt + pil ned for at åbne menuen"};var Yj={};Yj={longPressMessage:"Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen"};var Gj={};Gj={longPressMessage:"Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού"};var Bj={};Bj={longPressMessage:"Long press or press Alt + ArrowDown to open menu"};var Hj={};Hj={longPressMessage:"Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú"};var Kj={};Kj={longPressMessage:"Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool"};var Jj={};Jj={longPressMessage:"Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli"};var eV={};eV={longPressMessage:"Appuyez de manière prolongée ou appuyez sur Alt + Flèche vers le bas pour ouvrir le menu."};var tV={};tV={longPressMessage:"לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט"};var nV={};nV={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika"};var rV={};rV={longPressMessage:"Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához"};var iV={};iV={longPressMessage:"Premere a lungo o premere Alt + Freccia giù per aprire il menu"};var aV={};aV={longPressMessage:"長押しまたは Alt+下矢印キーでメニューを開く"};var oV={};oV={longPressMessage:"길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기"};var lV={};lV={longPressMessage:"Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“."};var sV={};sV={longPressMessage:"Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa"};var uV={};uV={longPressMessage:"Langt trykk eller trykk Alt + PilNed for å åpne menyen"};var cV={};cV={longPressMessage:"Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen"};var fV={};fV={longPressMessage:"Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu"};var dV={};dV={longPressMessage:"Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu"};var hV={};hV={longPressMessage:"Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu"};var pV={};pV={longPressMessage:"Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul"};var gV={};gV={longPressMessage:"Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню"};var vV={};vV={longPressMessage:"Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol"};var mV={};mV={longPressMessage:"Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol"};var OV={};OV={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni"};var yV={};yV={longPressMessage:"Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn"};var _V={};_V={longPressMessage:"Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın"};var SV={};SV={longPressMessage:"Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню"};var bV={};bV={longPressMessage:"长按或按 Alt + 向下方向键以打开菜单"};var wV={};wV={longPressMessage:"長按或按 Alt+向下鍵以開啟功能表"};var $V={};$V={"ar-AE":Vj,"bg-BG":Zj,"cs-CZ":Wj,"da-DK":Xj,"de-DE":Yj,"el-GR":Gj,"en-US":Bj,"es-ES":Hj,"et-EE":Kj,"fi-FI":Jj,"fr-FR":eV,"he-IL":tV,"hr-HR":nV,"hu-HU":rV,"it-IT":iV,"ja-JP":aV,"ko-KR":oV,"lt-LT":lV,"lv-LV":sV,"nb-NO":uV,"nl-NL":cV,"pl-PL":fV,"pt-BR":dV,"pt-PT":hV,"ro-RO":pV,"ru-RU":gV,"sk-SK":vV,"sl-SI":mV,"sr-SP":OV,"sv-SE":yV,"tr-TR":_V,"uk-UA":SV,"zh-CN":bV,"zh-TW":wV};function C_e(e){return e&&e.__esModule?e.default:e}function Q_e(e,t,n){let{type:r="menu",isDisabled:i,trigger:a="press"}=e,o=$a(),{triggerProps:l,overlayProps:s}=F0e({type:r},t,n),u=g=>{if(!i&&!(a==="longPress"&&!g.altKey)&&n&&n.current)switch(g.key){case"Enter":case" ":if(a==="longPress")return;case"ArrowDown":"continuePropagation"in g||g.stopPropagation(),g.preventDefault(),t.toggle("first");break;case"ArrowUp":"continuePropagation"in g||g.stopPropagation(),g.preventDefault(),t.toggle("last");break;default:"continuePropagation"in g&&g.continuePropagation()}},c=Nk(C_e($V),"@react-aria/menu"),{longPressProps:f}=Mq({isDisabled:i||a!=="longPress",accessibilityDescription:c.format("longPressMessage"),onLongPressStart(){t.close()},onLongPress(){t.open("first")}}),p={onPressStart(g){g.pointerType!=="touch"&&g.pointerType!=="keyboard"&&!i&&t.open(g.pointerType==="virtual"?"first":null)},onPress(g){g.pointerType==="touch"&&!i&&t.toggle()}};return delete l.onPress,{menuTriggerProps:{...l,...a==="press"?p:f,id:o,onKeyDown:u},menuProps:{...s,"aria-labelledby":o,autoFocus:t.focusStrategy||!0,onClose:t.close}}}const xV=new WeakMap;function uXe(e,t,n){let{shouldFocusWrap:r=!0,onKeyDown:i,onKeyUp:a,...o}=e;!e["aria-label"]&&!e["aria-labelledby"]&&console.warn("An aria-label or aria-labelledby prop is required for accessibility.");let l=Fr(e,{labelable:!0}),{listProps:s}=jj({...o,ref:n,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,shouldFocusWrap:r,linkBehavior:"override"});return xV.set(t,{onClose:e.onClose,onAction:e.onAction}),{menuProps:mt(l,{onKeyDown:i,onKeyUp:a},{role:"menu",...s,onKeyDown:u=>{u.key!=="Escape"&&s.onKeyDown(u)}})}}function cXe(e,t,n){let{key:r,closeOnSelect:i,isVirtualized:a,"aria-haspopup":o,onPressStart:l,onPressUp:s,onPress:u,onPressChange:c,onPressEnd:f,onHoverStart:p,onHoverChange:g,onHoverEnd:v,onKeyDown:m,onKeyUp:_,onFocus:O,onFocusChange:S,onBlur:b}=e,P=!!o;var E;let $=(E=e.isDisabled)!==null&&E!==void 0?E:t.selectionManager.isDisabled(r);var Q;let k=(Q=e.isSelected)!==null&&Q!==void 0?Q:t.selectionManager.isSelected(r),D=xV.get(t),T=t.collection.getItem(r),A=e.onClose||D.onClose,M=Xg(),L=ve=>{var me;P||(!(T==null||(me=T.props)===null||me===void 0)&&me.onAction&&T.props.onAction(),e.onAction?e.onAction(r):D.onAction&&D.onAction(r),ve.target instanceof HTMLAnchorElement&&M.open(ve.target,ve,T.props.href,T.props.routerOptions))},N="menuitem";P||(t.selectionManager.selectionMode==="single"?N="menuitemradio":t.selectionManager.selectionMode==="multiple"&&(N="menuitemcheckbox"));let j=Rs(),B=Rs(),V=Rs(),U={"aria-disabled":$||void 0,role:N,"aria-label":e["aria-label"],"aria-labelledby":j,"aria-describedby":[B,V].filter(Boolean).join(" ")||void 0,"aria-controls":e["aria-controls"],"aria-haspopup":o,"aria-expanded":e["aria-expanded"]};t.selectionManager.selectionMode!=="none"&&!P&&(U["aria-checked"]=k),a&&(U["aria-posinset"]=T==null?void 0:T.index,U["aria-setsize"]=Fj(t.collection));let G=ve=>{ve.pointerType==="keyboard"&&L(ve),l==null||l(ve)},I=ve=>{ve.pointerType!=="keyboard"&&(L(ve),!P&&A&&(i??(t.selectionManager.selectionMode!=="multiple"||t.selectionManager.isLink(r)))&&A()),s==null||s(ve)},{itemProps:X,isFocused:Z}=Uj({selectionManager:t.selectionManager,key:r,ref:n,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,linkBehavior:"none"}),{pressProps:F,isPressed:ue}=kl({onPressStart:G,onPress:u,onPressUp:I,onPressChange:c,onPressEnd:f,isDisabled:$}),{hoverProps:ge}=q1({isDisabled:$,onHoverStart(ve){hd()||(t.selectionManager.setFocused(!0),t.selectionManager.setFocusedKey(r)),p==null||p(ve)},onHoverChange:g,onHoverEnd:v}),{keyboardProps:de}=jk({onKeyDown:ve=>{if(ve.repeat){ve.continuePropagation();return}switch(ve.key){case" ":!$&&t.selectionManager.selectionMode==="none"&&!P&&i!==!1&&A&&A();break;case"Enter":!$&&i!==!1&&!P&&A&&A();break;default:P||ve.continuePropagation(),m==null||m(ve);break}},onKeyUp:_}),{focusProps:Qe}=Uk({onBlur:b,onFocus:O,onFocusChange:S}),Ae=Fr(T.props);delete Ae.id;let ce=Lk(T.props);return{menuItemProps:{...U,...mt(Ae,ce,P?{onFocus:X.onFocus,"data-key":X["data-key"]}:X,F,ge,de,Qe),tabIndex:X.tabIndex!=null?-1:void 0},labelProps:{id:j},descriptionProps:{id:B},keyboardShortcutProps:{id:V},isFocused:Z,isSelected:k,isPressed:ue,isDisabled:$}}function fXe(e){let{heading:t,"aria-label":n}=e,r=$a();return{itemProps:{role:"presentation"},headingProps:t?{id:r,role:"presentation"}:{},groupProps:{role:"group","aria-label":n,"aria-labelledby":t?r:void 0}}}const PV=new WeakMap;function dXe(e,t,n){let{keyboardDelegate:r,isDisabled:i,isRequired:a,name:o,validationBehavior:l="aria"}=e,s=Eq({usage:"search",sensitivity:"base"}),u=R.useMemo(()=>r||new qj(t.collection,t.disabledKeys,null,s),[r,t.collection,t.disabledKeys,s]),{menuTriggerProps:c,menuProps:f}=Q_e({isDisabled:i,type:"listbox"},t,n),p=k=>{switch(k.key){case"ArrowLeft":{k.preventDefault();let D=t.selectedKey!=null?u.getKeyAbove(t.selectedKey):u.getFirstKey();D&&t.setSelectedKey(D);break}case"ArrowRight":{k.preventDefault();let D=t.selectedKey!=null?u.getKeyBelow(t.selectedKey):u.getFirstKey();D&&t.setSelectedKey(D);break}}},{typeSelectProps:g}=zj({keyboardDelegate:u,selectionManager:t.selectionManager,onTypeSelect(k){t.setSelectedKey(k)}}),{isInvalid:v,validationErrors:m,validationDetails:_}=t.displayValidation,{labelProps:O,fieldProps:S,descriptionProps:b,errorMessageProps:P}=Bk({...e,labelElementType:"span",isInvalid:v,errorMessage:e.errorMessage||m});g.onKeyDown=g.onKeyDownCapture,delete g.onKeyDownCapture;let E=Fr(e,{labelable:!0}),$=mt(g,c,S),Q=$a();return PV.set(t,{isDisabled:i,isRequired:a,name:o,validationBehavior:l}),{labelProps:{...O,onClick:()=>{e.isDisabled||(n.current.focus(),qk("keyboard"))}},triggerProps:mt(E,{...$,isDisabled:i,onKeyDown:oc($.onKeyDown,p,e.onKeyDown),onKeyUp:e.onKeyUp,"aria-labelledby":[Q,$["aria-labelledby"],$["aria-label"]&&!$["aria-labelledby"]?$.id:null].filter(Boolean).join(" "),onFocus(k){t.isFocused||(e.onFocus&&e.onFocus(k),e.onFocusChange&&e.onFocusChange(!0),t.setFocused(!0))},onBlur(k){t.isOpen||(e.onBlur&&e.onBlur(k),e.onFocusChange&&e.onFocusChange(!1),t.setFocused(!1))}}),valueProps:{id:Q},menuProps:{...f,autoFocus:t.focusStrategy||!0,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,disallowEmptySelection:!0,linkBehavior:"selection",onBlur:k=>{k.currentTarget.contains(k.relatedTarget)||(e.onBlur&&e.onBlur(k),e.onFocusChange&&e.onFocusChange(!1),t.setFocused(!1))},"aria-labelledby":[S["aria-labelledby"],$["aria-label"]&&!S["aria-labelledby"]?$.id:null].filter(Boolean).join(" ")},descriptionProps:b,errorMessageProps:P,isInvalid:v,validationErrors:m,validationDetails:_}}function A_e(e,t,n){let r=PV.get(t)||{},{autoComplete:i,name:a=r.name,isDisabled:o=r.isDisabled}=e,{validationBehavior:l,isRequired:s}=r,u=m0e(),{visuallyHiddenProps:c}=Sj();Gg(e.selectRef,t.selectedKey,t.setSelectedKey),Gk({validationBehavior:l,focus:()=>n.current.focus()},t,e.selectRef);var f;return{containerProps:{...c,"aria-hidden":!0,"data-react-aria-prevent-focus":!0,"data-a11y-ignore":"aria-hidden-focus"},inputProps:{type:"text",tabIndex:u==null||t.isFocused||t.isOpen?-1:0,style:{fontSize:16},onFocus:()=>n.current.focus(),disabled:o},selectProps:{tabIndex:-1,autoComplete:i,disabled:o,required:l==="native"&&s,name:a,value:(f=t.selectedKey)!==null&&f!==void 0?f:"",onChange:p=>t.setSelectedKey(p.target.value)}}}function hXe(e){let{state:t,triggerRef:n,label:r,name:i,isDisabled:a}=e,o=R.useRef(null),{containerProps:l,inputProps:s,selectProps:u}=A_e({...e,selectRef:o},t,n);var c;return t.collection.size<=300?pe.createElement("div",{...l,"data-testid":"hidden-select-container"},pe.createElement("input",s),pe.createElement("label",null,r,pe.createElement("select",{...u,ref:o},pe.createElement("option",null),[...t.collection.getKeys()].map(f=>{let p=t.collection.getItem(f);if(p.type==="item")return pe.createElement("option",{key:p.key,value:p.key},p.textValue)})))):i?pe.createElement("input",{type:"hidden",autoComplete:u.autoComplete,name:i,disabled:a,value:(c=t.selectedKey)!==null&&c!==void 0?c:""}):null}function pXe(e){let t=Wk(e),[n,r]=R.useState(null),i=t_e({...e,onSelectionChange:s=>{e.onSelectionChange!=null&&e.onSelectionChange(s),t.close(),a.commitValidation()}}),a=Yk({...e,value:i.selectedKey}),[o,l]=R.useState(!1);return{...a,...i,...t,focusStrategy:n,open(s=null){i.collection.size!==0&&(r(s),t.open())},toggle(s=null){i.collection.size!==0&&(r(s),t.toggle())},isFocused:o,setFocused:l}}function I_e(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function D_e(e,t){e.classList?e.classList.add(t):I_e(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function a3(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function M_e(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=a3(e.className,t):e.setAttribute("class",a3(e.className&&e.className.baseVal||"",t))}var L_e=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return D_e(t,r)})},kw=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return M_e(t,r)})},EV=function(e){j1(t,e);function t(){for(var r,i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return r=e.call.apply(e,[this].concat(a))||this,r.appliedClasses={appear:{},enter:{},exit:{}},r.onEnter=function(l,s){var u=r.resolveArguments(l,s),c=u[0],f=u[1];r.removeClasses(c,"exit"),r.addClass(c,f?"appear":"enter","base"),r.props.onEnter&&r.props.onEnter(l,s)},r.onEntering=function(l,s){var u=r.resolveArguments(l,s),c=u[0],f=u[1],p=f?"appear":"enter";r.addClass(c,p,"active"),r.props.onEntering&&r.props.onEntering(l,s)},r.onEntered=function(l,s){var u=r.resolveArguments(l,s),c=u[0],f=u[1],p=f?"appear":"enter";r.removeClasses(c,p),r.addClass(c,p,"done"),r.props.onEntered&&r.props.onEntered(l,s)},r.onExit=function(l){var s=r.resolveArguments(l),u=s[0];r.removeClasses(u,"appear"),r.removeClasses(u,"enter"),r.addClass(u,"exit","base"),r.props.onExit&&r.props.onExit(l)},r.onExiting=function(l){var s=r.resolveArguments(l),u=s[0];r.addClass(u,"exit","active"),r.props.onExiting&&r.props.onExiting(l)},r.onExited=function(l){var s=r.resolveArguments(l),u=s[0];r.removeClasses(u,"exit"),r.addClass(u,"exit","done"),r.props.onExited&&r.props.onExited(l)},r.resolveArguments=function(l,s){return r.props.nodeRef?[r.props.nodeRef.current,l]:[l,s]},r.getClassNames=function(l){var s=r.props.classNames,u=typeof s=="string",c=u&&s?s+"-":"",f=u?""+c+l:s[l],p=u?f+"-active":s[l+"Active"],g=u?f+"-done":s[l+"Done"];return{baseClassName:f,activeClassName:p,doneClassName:g}},r}var n=t.prototype;return n.addClass=function(i,a,o){var l=this.getClassNames(a)[o+"ClassName"],s=this.getClassNames("enter"),u=s.doneClassName;a==="appear"&&o==="done"&&u&&(l+=" "+u),o==="active"&&i&&xj(i),l&&(this.appliedClasses[a][o]=l,L_e(i,l))},n.removeClasses=function(i,a){var o=this.appliedClasses[a],l=o.base,s=o.active,u=o.done;this.appliedClasses[a]={},l&&kw(i,l),s&&kw(i,s),u&&kw(i,u)},n.render=function(){var i=this.props;i.classNames;var a=Xk(i,["classNames"]);return pe.createElement(Nl,gn({},a,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(pe.Component);EV.defaultProps={classNames:""};EV.propTypes={};function Kk(e,t){var n=function(a){return t&&R.isValidElement(a)?t(a):a},r=Object.create(null);return e&&R.Children.map(e,function(i){return i}).forEach(function(i){r[i.key]=n(i)}),r}function F_e(e,t){e=e||{},t=t||{};function n(c){return c in t?t[c]:e[c]}var r=Object.create(null),i=[];for(var a in e)a in t?i.length&&(r[a]=i,i=[]):i.push(a);var o,l={};for(var s in t){if(r[s])for(o=0;o<r[s].length;o++){var u=r[s][o];l[r[s][o]]=n(u)}l[s]=n(s)}for(o=0;o<i.length;o++)l[i[o]]=n(i[o]);return l}function Nu(e,t,n){return n[t]!=null?n[t]:e.props[t]}function N_e(e,t){return Kk(e.children,function(n){return R.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:Nu(n,"appear",e),enter:Nu(n,"enter",e),exit:Nu(n,"exit",e)})})}function z_e(e,t,n){var r=Kk(e.children),i=F_e(t,r);return Object.keys(i).forEach(function(a){var o=i[a];if(R.isValidElement(o)){var l=a in t,s=a in r,u=t[a],c=R.isValidElement(u)&&!u.props.in;s&&(!l||c)?i[a]=R.cloneElement(o,{onExited:n.bind(null,o),in:!0,exit:Nu(o,"exit",e),enter:Nu(o,"enter",e)}):!s&&l&&!c?i[a]=R.cloneElement(o,{in:!1}):s&&l&&R.isValidElement(u)&&(i[a]=R.cloneElement(o,{onExited:n.bind(null,o),in:u.props.in,exit:Nu(o,"exit",e),enter:Nu(o,"enter",e)}))}}),i}var U_e=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},q_e={component:"div",childFactory:function(t){return t}},RV=function(e){j1(t,e);function t(r,i){var a;a=e.call(this,r,i)||this;var o=a.handleExited.bind(Ej(a));return a.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},a}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(i,a){var o=a.children,l=a.handleExited,s=a.firstRender;return{children:s?N_e(i,l):z_e(i,o,l),firstRender:!1}},n.handleExited=function(i,a){var o=Kk(this.props.children);i.key in o||(i.props.onExited&&i.props.onExited(a),this.mounted&&this.setState(function(l){var s=gn({},l.children);return delete s[i.key],{children:s}}))},n.render=function(){var i=this.props,a=i.component,o=i.childFactory,l=Xk(i,["component","childFactory"]),s=this.state.contextValue,u=U_e(this.state.children).map(o);return delete l.appear,delete l.enter,delete l.exit,a===null?pe.createElement(Xy.Provider,{value:s},u):pe.createElement(Xy.Provider,{value:s},pe.createElement(a,l,u))},t}(pe.Component);RV.propTypes={};RV.defaultProps=q_e;function gXe(e,t){let{inputElementType:n="input",isDisabled:r=!1,isRequired:i=!1,isReadOnly:a=!1,type:o="text",validationBehavior:l="aria"}=e,[s,u]=Xs(e.value,e.defaultValue||"",e.onChange),{focusableProps:c}=Rc(e,t),f=Yk({...e,value:s}),{isInvalid:p,validationErrors:g,validationDetails:v}=f.displayValidation,{labelProps:m,fieldProps:_,descriptionProps:O,errorMessageProps:S}=Bk({...e,isInvalid:p,errorMessage:e.errorMessage||g}),b=Fr(e,{labelable:!0});const P={type:o,pattern:e.pattern};return Gg(t,s,u),Gk(e,f,t),R.useEffect(()=>{if(t.current instanceof Oa(t.current).HTMLTextAreaElement){let E=t.current;Object.defineProperty(E,"defaultValue",{get:()=>E.value,set:()=>{},configurable:!0})}},[t]),{labelProps:m,inputProps:mt(b,n==="input"&&P,{disabled:r,readOnly:a,required:i&&l==="native","aria-required":i&&l==="aria"||void 0,"aria-invalid":p||void 0,"aria-errormessage":e["aria-errormessage"],"aria-activedescendant":e["aria-activedescendant"],"aria-autocomplete":e["aria-autocomplete"],"aria-haspopup":e["aria-haspopup"],value:s,onChange:E=>u(E.target.value),autoComplete:e.autoComplete,autoCapitalize:e.autoCapitalize,maxLength:e.maxLength,minLength:e.minLength,name:e.name,placeholder:e.placeholder,inputMode:e.inputMode,onCopy:e.onCopy,onCut:e.onCut,onPaste:e.onPaste,onCompositionEnd:e.onCompositionEnd,onCompositionStart:e.onCompositionStart,onCompositionUpdate:e.onCompositionUpdate,onSelect:e.onSelect,onBeforeInput:e.onBeforeInput,onInput:e.onInput,...c,..._}),descriptionProps:O,errorMessageProps:S,isInvalid:p,validationErrors:g,validationDetails:v}}function vXe(e){let t=Wk(e),[n,r]=R.useState(null),[i,a]=R.useState([]),o=()=>{a([]),t.close()};return{focusStrategy:n,...t,open(u=null){r(u),t.open()},toggle(u=null){r(u),t.toggle()},close(){o()},expandedKeysStack:i,openSubmenu:(u,c)=>{a(f=>c>f.length?f:[...f.slice(0,c),u])},closeSubmenu:(u,c)=>{a(f=>f[c]===u?f.slice(0,c):f)}}}class j_e{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(t){let n=this.keyMap.get(t);return n?n.prevKey:null}getKeyAfter(t){let n=this.keyMap.get(t);return n?n.nextKey:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(t){return this.keyMap.get(t)}at(t){const n=[...this.getKeys()];return this.getItem(n[t])}constructor(t,{expandedKeys:n}={}){this.keyMap=new Map,this.iterable=t,n=n||new Set;let r=o=>{if(this.keyMap.set(o.key,o),o.childNodes&&(o.type==="section"||n.has(o.key)))for(let l of o.childNodes)r(l)};for(let o of t)r(o);let i,a=0;for(let[o,l]of this.keyMap)i?(i.nextKey=o,l.prevKey=i.key):(this.firstKey=o,l.prevKey=void 0),l.type==="item"&&(l.index=a++),i=l,i.nextKey=void 0;this.lastKey=i==null?void 0:i.key}}function mXe(e){let{onExpandedChange:t}=e,[n,r]=Xs(e.expandedKeys?new Set(e.expandedKeys):void 0,e.defaultExpandedKeys?new Set(e.defaultExpandedKeys):new Set,t),i=Ij(e),a=R.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),o=Lj(e,R.useCallback(s=>new j_e(s,{expandedKeys:n}),[n]),null);return R.useEffect(()=>{i.focusedKey!=null&&!o.getItem(i.focusedKey)&&i.setFocusedKey(null)},[o,i.focusedKey]),{collection:o,expandedKeys:n,disabledKeys:a,toggleKey:s=>{r(V_e(n,s))},setExpandedKeys:r,selectionManager:new Nj(o,i)}}function V_e(e,t){let n=new Set(e);return n.has(t)?n.delete(t):n.add(t),n}function Z_e(e,t){let{elementType:n="a",onPress:r,onPressStart:i,onPressEnd:a,onClick:o,isDisabled:l,...s}=e,u={};n!=="a"&&(u={role:"link",tabIndex:l?void 0:0});let{focusableProps:c}=Rc(e,t),{pressProps:f,isPressed:p}=kl({onPress:r,onPressStart:i,onPressEnd:a,isDisabled:l,ref:t}),g=Fr(s,{labelable:!0}),v=mt(c,f),m=Xg(),_=Lk(e);return{isPressed:p,linkProps:mt(g,_,{...v,...u,"aria-disabled":l||void 0,"aria-current":e["aria-current"],onClick:O=>{var S;(S=f.onClick)===null||S===void 0||S.call(f,O),o&&(o(O),console.warn("onClick is deprecated, please use onPress")),!m.isNative&&O.currentTarget instanceof HTMLAnchorElement&&O.currentTarget.href&&!O.isDefaultPrevented()&&Sye(O.currentTarget,O)&&e.href&&(O.preventDefault(),m.open(O.currentTarget,O,e.href,e.routerOptions))}})}}function OXe(e,t){let{isCurrent:n,isDisabled:r,"aria-current":i,elementType:a="a",...o}=e,{linkProps:l}=Z_e({isDisabled:r||n,elementType:a,...o},t),s=/^h[1-6]$/.test(a),u={};return s||(u=l),n&&(u["aria-current"]=i||"page",u.tabIndex=e.autoFocus?-1:void 0),{itemProps:{"aria-disabled":r,...u}}}var kV={};kV={breadcrumbs:"عناصر الواجهة"};var TV={};TV={breadcrumbs:"Трохи хляб"};var CV={};CV={breadcrumbs:"Popis cesty"};var QV={};QV={breadcrumbs:"Brødkrummer"};var AV={};AV={breadcrumbs:"Breadcrumbs"};var IV={};IV={breadcrumbs:"Πλοηγήσεις breadcrumb"};var DV={};DV={breadcrumbs:"Breadcrumbs"};var MV={};MV={breadcrumbs:"Migas de pan"};var LV={};LV={breadcrumbs:"Lingiread"};var FV={};FV={breadcrumbs:"Navigointilinkit"};var NV={};NV={breadcrumbs:"Chemin de navigation"};var zV={};zV={breadcrumbs:"שבילי ניווט"};var UV={};UV={breadcrumbs:"Navigacijski putovi"};var qV={};qV={breadcrumbs:"Morzsamenü"};var jV={};jV={breadcrumbs:"Breadcrumb"};var VV={};VV={breadcrumbs:"パンくずリスト"};var ZV={};ZV={breadcrumbs:"탐색 표시"};var WV={};WV={breadcrumbs:"Naršymo kelias"};var XV={};XV={breadcrumbs:"Atpakaļceļi"};var YV={};YV={breadcrumbs:"Navigasjonsstier"};var GV={};GV={breadcrumbs:"Broodkruimels"};var BV={};BV={breadcrumbs:"Struktura nawigacyjna"};var HV={};HV={breadcrumbs:"Caminho detalhado"};var KV={};KV={breadcrumbs:"Categorias"};var JV={};JV={breadcrumbs:"Miez de pâine"};var e8={};e8={breadcrumbs:"Навигация"};var t8={};t8={breadcrumbs:"Navigačné prvky Breadcrumbs"};var n8={};n8={breadcrumbs:"Drobtine"};var r8={};r8={breadcrumbs:"Putanje navigacije"};var i8={};i8={breadcrumbs:"Sökvägar"};var a8={};a8={breadcrumbs:"İçerik haritaları"};var o8={};o8={breadcrumbs:"Навігаційна стежка"};var l8={};l8={breadcrumbs:"导航栏"};var s8={};s8={breadcrumbs:"導覽列"};var u8={};u8={"ar-AE":kV,"bg-BG":TV,"cs-CZ":CV,"da-DK":QV,"de-DE":AV,"el-GR":IV,"en-US":DV,"es-ES":MV,"et-EE":LV,"fi-FI":FV,"fr-FR":NV,"he-IL":zV,"hr-HR":UV,"hu-HU":qV,"it-IT":jV,"ja-JP":VV,"ko-KR":ZV,"lt-LT":WV,"lv-LV":XV,"nb-NO":YV,"nl-NL":GV,"pl-PL":BV,"pt-BR":HV,"pt-PT":KV,"ro-RO":JV,"ru-RU":e8,"sk-SK":t8,"sl-SI":n8,"sr-SP":r8,"sv-SE":i8,"tr-TR":a8,"uk-UA":o8,"zh-CN":l8,"zh-TW":s8};function W_e(e){return e&&e.__esModule?e.default:e}function yXe(e){let{"aria-label":t,...n}=e,r=Nk(W_e(u8),"@react-aria/breadcrumbs");return{navProps:{...Fr(n,{labelable:!0}),"aria-label":t||r.format("breadcrumbs")}}}const X_e=0,Y_e=100,G_e=1;function _Xe(e){const{isDisabled:t=!1,minValue:n=X_e,maxValue:r=Y_e,numberFormatter:i,step:a=G_e,orientation:o="horizontal"}=e;let l=R.useMemo(()=>{let X=(r-n)/10;return X=Lh(X,0,X+a,a),Math.max(X,a)},[a,r,n]),s=R.useCallback(X=>X==null?void 0:X.map((Z,F)=>{let ue=F===0?n:Z[F-1],ge=F===X.length-1?r:Z[F+1];return Lh(Z,ue,ge,a)}),[n,r,a]),u=R.useMemo(()=>s(l3(e.value)),[e.value]),c=R.useMemo(()=>{var X;return s((X=l3(e.defaultValue))!==null&&X!==void 0?X:[n])},[e.defaultValue,n]),f=s3(e.value,e.defaultValue,e.onChange),p=s3(e.value,e.defaultValue,e.onChangeEnd);const[g,v]=Xs(u,c,f),[m,_]=R.useState(new Array(g.length).fill(!1)),O=R.useRef(new Array(g.length).fill(!0)),[S,b]=R.useState(void 0),P=R.useRef(g),E=R.useRef(m);let $=X=>{P.current=X,v(X)},Q=X=>{E.current=X,_(X)};function k(X){return(X-n)/(r-n)}function D(X){return X===0?n:g[X-1]}function T(X){return X===g.length-1?r:g[X+1]}function A(X){return O.current[X]}function M(X,Z){O.current[X]=Z}function L(X,Z){if(t||!A(X))return;const F=D(X),ue=T(X);Z=Lh(Z,F,ue,a);let ge=o3(P.current,X,Z);$(ge)}function N(X,Z){if(t||!A(X))return;Z&&(P.current=g);const F=E.current[X];E.current=o3(E.current,X,Z),Q(E.current),p&&F&&!E.current.some(Boolean)&&p(P.current)}function j(X){return i.format(X)}function B(X,Z){L(X,U(Z))}function V(X){return Math.round((X-n)/a)*a+n}function U(X){const Z=X*(r-n)+n;return sc(V(Z),n,r)}function G(X,Z=1){let F=Math.max(Z,a);L(X,Lh(g[X]+F,n,r,a))}function I(X,Z=1){let F=Math.max(Z,a);L(X,Lh(g[X]-F,n,r,a))}return{values:g,getThumbValue:X=>g[X],setThumbValue:L,setThumbPercent:B,isThumbDragging:X=>m[X],setThumbDragging:N,focusedThumb:S,setFocusedThumb:b,getThumbPercent:X=>k(g[X]),getValuePercent:k,getThumbValueLabel:X=>j(g[X]),getFormattedValue:j,getThumbMinValue:D,getThumbMaxValue:T,getPercentValue:U,isThumbEditable:A,setThumbEditable:M,incrementThumb:G,decrementThumb:I,step:a,pageSize:l,orientation:o,isDisabled:t}}function o3(e,t,n){return e[t]===n?e:[...e.slice(0,t),n,...e.slice(t+1)]}function l3(e){if(e!=null)return Array.isArray(e)?e:[e]}function s3(e,t,n){return r=>{typeof e=="number"||typeof t=="number"?n==null||n(r[0]):n==null||n(r)}}const Jk=new WeakMap;function wP(e,t){let n=Jk.get(e);if(!n)throw new Error("Unknown slider state");return`${n.id}-${t}`}function SXe(e,t,n){let{labelProps:r,fieldProps:i}=Hg(e),a=e.orientation==="vertical";var o;Jk.set(t,{id:(o=r.id)!==null&&o!==void 0?o:i.id,"aria-describedby":e["aria-describedby"],"aria-details":e["aria-details"]});let{direction:l}=Vo(),{addGlobalListener:s,removeGlobalListener:u}=Yg();const c=R.useRef(null),f=l==="rtl",p=R.useRef(null),{moveProps:g}=Dq({onMoveStart(){p.current=null},onMove({deltaX:O,deltaY:S}){let{height:b,width:P}=n.current.getBoundingClientRect(),E=a?b:P;p.current==null&&(p.current=t.getThumbPercent(c.current)*E);let $=a?S:O;if((a||f)&&($=-$),p.current+=$,c.current!=null&&n.current){const Q=sc(p.current/E,0,1);t.setThumbPercent(c.current,Q)}},onMoveEnd(){c.current!=null&&(t.setThumbDragging(c.current,!1),c.current=null)}});let v=R.useRef(void 0),m=(O,S,b,P)=>{if(n.current&&!e.isDisabled&&t.values.every((E,$)=>!t.isThumbDragging($))){let{height:E,width:$,top:Q,left:k}=n.current.getBoundingClientRect(),D=a?E:$,L=((a?P:b)-(a?Q:k))/D;(l==="rtl"||a)&&(L=1-L);let N=t.getPercentValue(L),j,B=t.values.findIndex(V=>N-V<0);if(B===0)j=B;else if(B===-1)j=t.values.length-1;else{let V=t.values[B-1],U=t.values[B];Math.abs(V-N)<Math.abs(U-N)?j=B-1:j=B}j>=0&&t.isThumbEditable(j)?(O.preventDefault(),c.current=j,t.setFocusedThumb(j),v.current=S,t.setThumbDragging(c.current,!0),t.setThumbValue(j,N),s(window,"mouseup",_,!1),s(window,"touchend",_,!1),s(window,"pointerup",_,!1)):c.current=null}},_=O=>{var S,b;((b=O.pointerId)!==null&&b!==void 0?b:(S=O.changedTouches)===null||S===void 0?void 0:S[0].identifier)===v.current&&(c.current!=null&&(t.setThumbDragging(c.current,!1),c.current=null),u(window,"mouseup",_,!1),u(window,"touchend",_,!1),u(window,"pointerup",_,!1))};return"htmlFor"in r&&r.htmlFor&&(delete r.htmlFor,r.onClick=()=>{var O;(O=document.getElementById(wP(t,0)))===null||O===void 0||O.focus(),qk("keyboard")}),{labelProps:r,groupProps:{role:"group",...i},trackProps:mt({onMouseDown(O){O.button!==0||O.altKey||O.ctrlKey||O.metaKey||m(O,void 0,O.clientX,O.clientY)},onPointerDown(O){O.pointerType==="mouse"&&(O.button!==0||O.altKey||O.ctrlKey||O.metaKey)||m(O,O.pointerId,O.clientX,O.clientY)},onTouchStart(O){m(O,O.changedTouches[0].identifier,O.changedTouches[0].clientX,O.changedTouches[0].clientY)},style:{position:"relative",touchAction:"none"}},g),outputProps:{htmlFor:t.values.map((O,S)=>wP(t,S)).join(" "),"aria-live":"off"}}}function bXe(e,t){let{index:n=0,isRequired:r,validationState:i,isInvalid:a,trackRef:o,inputRef:l,orientation:s=t.orientation,name:u}=e,c=e.isDisabled||t.isDisabled,f=s==="vertical",{direction:p}=Vo(),{addGlobalListener:g,removeGlobalListener:v}=Yg(),m=Jk.get(t);var _;const{labelProps:O,fieldProps:S}=Hg({...e,id:wP(t,n),"aria-labelledby":`${m.id} ${(_=e["aria-labelledby"])!==null&&_!==void 0?_:""}`.trim()}),b=t.values[n],P=R.useCallback(()=>{l.current&&Ro(l.current)},[l]),E=t.focusedThumb===n;R.useEffect(()=>{E&&P()},[E,P]);let $=p==="rtl",Q=R.useRef(null),{keyboardProps:k}=jk({onKeyDown(B){let{getThumbMaxValue:V,getThumbMinValue:U,decrementThumb:G,incrementThumb:I,setThumbValue:X,setThumbDragging:Z,pageSize:F}=t;if(!/^(PageUp|PageDown|Home|End)$/.test(B.key)){B.continuePropagation();return}switch(B.preventDefault(),Z(n,!0),B.key){case"PageUp":I(n,F);break;case"PageDown":G(n,F);break;case"Home":X(n,U(n));break;case"End":X(n,V(n));break}Z(n,!1)}}),{moveProps:D}=Dq({onMoveStart(){Q.current=null,t.setThumbDragging(n,!0)},onMove({deltaX:B,deltaY:V,pointerType:U,shiftKey:G}){const{getThumbPercent:I,setThumbPercent:X,decrementThumb:Z,incrementThumb:F,step:ue,pageSize:ge}=t;let{width:de,height:Qe}=o.current.getBoundingClientRect(),Ae=f?Qe:de;if(Q.current==null&&(Q.current=I(n)*Ae),U==="keyboard")B>0&&$||B<0&&!$||V>0?Z(n,G?ge:ue):F(n,G?ge:ue);else{let ce=f?V:B;(f||$)&&(ce=-ce),Q.current+=ce,X(n,sc(Q.current/Ae,0,1))}},onMoveEnd(){t.setThumbDragging(n,!1)}});t.setThumbEditable(n,!c);const{focusableProps:T}=Rc(mt(e,{onFocus:()=>t.setFocusedThumb(n),onBlur:()=>t.setFocusedThumb(void 0)}),l);let A=R.useRef(void 0),M=B=>{P(),A.current=B,t.setThumbDragging(n,!0),g(window,"mouseup",L,!1),g(window,"touchend",L,!1),g(window,"pointerup",L,!1)},L=B=>{var V,U;((U=B.pointerId)!==null&&U!==void 0?U:(V=B.changedTouches)===null||V===void 0?void 0:V[0].identifier)===A.current&&(P(),t.setThumbDragging(n,!1),v(window,"mouseup",L,!1),v(window,"touchend",L,!1),v(window,"pointerup",L,!1))},N=t.getThumbPercent(n);(f||p==="rtl")&&(N=1-N);let j=c?{}:mt(k,D,{onMouseDown:B=>{B.button!==0||B.altKey||B.ctrlKey||B.metaKey||M()},onPointerDown:B=>{B.button!==0||B.altKey||B.ctrlKey||B.metaKey||M(B.pointerId)},onTouchStart:B=>{M(B.changedTouches[0].identifier)}});return Gg(l,b,B=>{t.setThumbValue(n,B)}),{inputProps:mt(T,S,{type:"range",tabIndex:c?void 0:0,min:t.getThumbMinValue(n),max:t.getThumbMaxValue(n),step:t.step,value:b,name:u,disabled:c,"aria-orientation":s,"aria-valuetext":t.getThumbValueLabel(n),"aria-required":r||void 0,"aria-invalid":a||i==="invalid"||void 0,"aria-errormessage":e["aria-errormessage"],"aria-describedby":[m["aria-describedby"],e["aria-describedby"]].filter(Boolean).join(" "),"aria-details":[m["aria-details"],e["aria-details"]].filter(Boolean).join(" "),onChange:B=>{t.setThumbValue(n,parseFloat(B.target.value))}}),thumbProps:{...j,style:{position:"absolute",[f?"top":"left"]:`${N*100}%`,transform:"translate(-50%, -50%)",touchAction:"none"}},labelProps:O,isDragging:t.isThumbDragging(n),isDisabled:c,isFocused:E}}function wXe(e){let{value:t=0,minValue:n=0,maxValue:r=100,valueLabel:i,isIndeterminate:a,formatOptions:o={style:"percent"}}=e,l=Fr(e,{labelable:!0}),{labelProps:s,fieldProps:u}=Hg({...e,labelElementType:"span"});t=sc(t,n,r);let c=(t-n)/(r-n),f=n0e(o);if(!a&&!i){let p=o.style==="percent"?c:t;i=f.format(p)}return{progressBarProps:mt(l,{...u,"aria-valuenow":a?void 0:t,"aria-valuemin":n,"aria-valuemax":r,"aria-valuetext":a?void 0:i,role:"progressbar"}),labelProps:s}}function B_e(e,t,n){let{isDisabled:r=!1,isReadOnly:i=!1,value:a,name:o,children:l,"aria-label":s,"aria-labelledby":u,validationState:c="valid",isInvalid:f}=e,p=$=>{$.stopPropagation(),t.setSelected($.target.checked)},g=l!=null,v=s!=null||u!=null;!g&&!v&&console.warn("If you do not provide children, you must specify an aria-label for accessibility");let{pressProps:m,isPressed:_}=kl({isDisabled:r}),{pressProps:O,isPressed:S}=kl({isDisabled:r||i,onPress(){t.toggle()}}),{focusableProps:b}=Rc(e,n),P=mt(m,b),E=Fr(e,{labelable:!0});return Gg(n,t.isSelected,t.setSelected),{labelProps:mt(O,{onClick:$=>$.preventDefault()}),inputProps:mt(E,{"aria-invalid":f||c==="invalid"||void 0,"aria-errormessage":e["aria-errormessage"],"aria-controls":e["aria-controls"],"aria-readonly":i||void 0,onChange:p,disabled:r,...a==null?{}:{value:a},name:o,type:"checkbox",...P}),isSelected:t.isSelected,isPressed:_||S,isDisabled:r,isReadOnly:i,isInvalid:f||c==="invalid"}}function $Xe(e,t,n){let{labelProps:r,inputProps:i,isSelected:a,isPressed:o,isDisabled:l,isReadOnly:s}=B_e(e,t,n);return{labelProps:r,inputProps:{...i,role:"switch",checked:a},isSelected:a,isPressed:o,isDisabled:l,isReadOnly:s}}function xXe(e={}){let{isReadOnly:t}=e,[n,r]=Xs(e.isSelected,e.defaultSelected||!1,e.onChange);function i(o){t||r(o)}function a(){t||r(!n)}return{isSelected:n,setSelected:i,toggle:a}}function $P(){return $P=Object.assign?Object.assign.bind():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},$P.apply(this,arguments)}var c8=["shift","alt","meta","mod","ctrl"],H_e={esc:"escape",return:"enter",".":"period",",":"comma","-":"slash"," ":"space","`":"backquote","#":"backslash","+":"bracketright",ShiftLeft:"shift",ShiftRight:"shift",AltLeft:"alt",AltRight:"alt",MetaLeft:"meta",MetaRight:"meta",OSLeft:"meta",OSRight:"meta",ControlLeft:"ctrl",ControlRight:"ctrl"};function ps(e){return(H_e[e]||e).trim().toLowerCase().replace(/key|digit|numpad|arrow/,"")}function K_e(e){return c8.includes(e)}function Tw(e,t){return t===void 0&&(t=","),e.split(t)}function Cw(e,t,n){t===void 0&&(t="+");var r=e.toLocaleLowerCase().split(t).map(function(o){return ps(o)}),i={alt:r.includes("alt"),ctrl:r.includes("ctrl")||r.includes("control"),shift:r.includes("shift"),meta:r.includes("meta"),mod:r.includes("mod")},a=r.filter(function(o){return!c8.includes(o)});return $P({},i,{keys:a,description:n})}(function(){typeof document<"u"&&(document.addEventListener("keydown",function(e){e.key!==void 0&&f8([ps(e.key),ps(e.code)])}),document.addEventListener("keyup",function(e){e.key!==void 0&&d8([ps(e.key),ps(e.code)])})),typeof window<"u"&&window.addEventListener("blur",function(){gs.clear()})})();var gs=new Set;function eT(e){return Array.isArray(e)}function J_e(e,t){t===void 0&&(t=",");var n=eT(e)?e:e.split(t);return n.every(function(r){return gs.has(r.trim().toLowerCase())})}function f8(e){var t=Array.isArray(e)?e:[e];gs.has("meta")&&gs.forEach(function(n){return!K_e(n)&&gs.delete(n.toLowerCase())}),t.forEach(function(n){return gs.add(n.toLowerCase())})}function d8(e){var t=Array.isArray(e)?e:[e];e==="meta"?gs.clear():t.forEach(function(n){return gs.delete(n.toLowerCase())})}function eSe(e,t,n){(typeof n=="function"&&n(e,t)||n===!0)&&e.preventDefault()}function tSe(e,t,n){return typeof n=="function"?n(e,t):n===!0||n===void 0}function nSe(e){return h8(e,["input","textarea","select"])}function h8(e,t){var n=e.target;t===void 0&&(t=!1);var r=n&&n.tagName;return eT(t)?!!(r&&t&&t.some(function(i){return i.toLowerCase()===r.toLowerCase()})):!!(r&&t&&t===!0)}function rSe(e,t){return e.length===0&&t?(console.warn('A hotkey has the "scopes" option set, however no active scopes were found. If you want to use the global scopes feature, you need to wrap your app in a <HotkeysProvider>'),!0):t?e.some(function(n){return t.includes(n)})||e.includes("*"):!0}var iSe=function(t,n,r){r===void 0&&(r=!1);var i=n.alt,a=n.meta,o=n.mod,l=n.shift,s=n.ctrl,u=n.keys,c=t.key,f=t.code,p=t.ctrlKey,g=t.metaKey,v=t.shiftKey,m=t.altKey,_=ps(f),O=c.toLowerCase();if(!(u!=null&&u.includes(_))&&!(u!=null&&u.includes(O))&&!["ctrl","control","unknown","meta","alt","shift","os"].includes(_))return!1;if(!r){if(i===!m&&O!=="alt"||l===!v&&O!=="shift")return!1;if(o){if(!g&&!p)return!1}else if(a===!g&&O!=="meta"&&O!=="os"||s===!p&&O!=="ctrl"&&O!=="control")return!1}return u&&u.length===1&&(u.includes(O)||u.includes(_))?!0:u?J_e(u):!u},aSe=R.createContext(void 0),oSe=function(){return R.useContext(aSe)};function p8(e,t){return e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(e).length===Object.keys(t).length&&Object.keys(e).reduce(function(n,r){return n&&p8(e[r],t[r])},!0):e===t}var lSe=R.createContext({hotkeys:[],enabledScopes:[],toggleScope:function(){},enableScope:function(){},disableScope:function(){}}),sSe=function(){return R.useContext(lSe)};function uSe(e){var t=R.useRef(void 0);return p8(t.current,e)||(t.current=e),t.current}var u3=function(t){t.stopPropagation(),t.preventDefault(),t.stopImmediatePropagation()},cSe=typeof window<"u"?R.useLayoutEffect:R.useEffect;function PXe(e,t,n,r){var i=R.useRef(null),a=R.useRef(!1),o=n instanceof Array?r instanceof Array?void 0:r:n,l=eT(e)?e.join(o==null?void 0:o.splitKey):e,s=n instanceof Array?n:r instanceof Array?r:void 0,u=R.useCallback(t,s??[]),c=R.useRef(u);s?c.current=u:c.current=t;var f=uSe(o),p=sSe(),g=p.enabledScopes,v=oSe();return cSe(function(){if(!((f==null?void 0:f.enabled)===!1||!rSe(g,f==null?void 0:f.scopes))){var m=function(P,E){var $;if(E===void 0&&(E=!1),!(nSe(P)&&!h8(P,f==null?void 0:f.enableOnFormTags))){if(i.current!==null){var Q=i.current.getRootNode();if((Q instanceof Document||Q instanceof ShadowRoot)&&Q.activeElement!==i.current&&!i.current.contains(Q.activeElement)){u3(P);return}}($=P.target)!=null&&$.isContentEditable&&!(f!=null&&f.enableOnContentEditable)||Tw(l,f==null?void 0:f.splitKey).forEach(function(k){var D,T=Cw(k,f==null?void 0:f.combinationKey);if(iSe(P,T,f==null?void 0:f.ignoreModifiers)||(D=T.keys)!=null&&D.includes("*")){if(f!=null&&f.ignoreEventWhen!=null&&f.ignoreEventWhen(P)||E&&a.current)return;if(eSe(P,T,f==null?void 0:f.preventDefault),!tSe(P,T,f==null?void 0:f.enabled)){u3(P);return}c.current(P,T),E||(a.current=!0)}})}},_=function(P){P.key!==void 0&&(f8(ps(P.code)),((f==null?void 0:f.keydown)===void 0&&(f==null?void 0:f.keyup)!==!0||f!=null&&f.keydown)&&m(P))},O=function(P){P.key!==void 0&&(d8(ps(P.code)),a.current=!1,f!=null&&f.keyup&&m(P,!0))},S=i.current||(o==null?void 0:o.document)||document;return S.addEventListener("keyup",O),S.addEventListener("keydown",_),v&&Tw(l,f==null?void 0:f.splitKey).forEach(function(b){return v.addHotkey(Cw(b,f==null?void 0:f.combinationKey,f==null?void 0:f.description))}),function(){S.removeEventListener("keyup",O),S.removeEventListener("keydown",_),v&&Tw(l,f==null?void 0:f.splitKey).forEach(function(b){return v.removeHotkey(Cw(b,f==null?void 0:f.combinationKey,f==null?void 0:f.description))})}}},[l,f,g]),i}function EXe(e,t,n=Object.is){const r=e.getState(),i=R.useMemo(()=>t(r),[r,t]),[[a,o],l]=R.useReducer((s,u)=>{if(u)return[i,e];const c=e.getState();if(Object.is(r,c)&&s[1]===e)return s;const f=t(c);return n(s[0],f)&&s[1]===e?s:[f,e]},void 0,()=>[i,e]);return R.useEffect(()=>{const s=e.subscribe(l);return l(),s},[e]),o!==e?(l(!0),i):(n(a,i)||l(!0),a)}var fSe={BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const c3=e=>{let t;const n=new Set,r=(c,f)=>{const p=typeof c=="function"?c(t):c;if(!Object.is(p,t)){const g=t;t=f??(typeof p!="object"||p===null)?p:Object.assign({},t,p),n.forEach(v=>v(t,g))}},i=()=>t,s={setState:r,getState:i,getInitialState:()=>u,subscribe:c=>(n.add(c),()=>n.delete(c)),destroy:()=>{(fSe?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}},u=t=e(r,i,s);return s},dSe=e=>e?c3(e):c3;var g8={exports:{}},v8={},m8={exports:{}},O8={};/**
57
+ `):"(No errors)",u=Eae.create("RelayNetwork","No data returned for operation `"+i._operation.request.node.params.name+"`, got error(s):\n"+s+"\n\nSee the error `source` property for more information.");throw u.source={errors:l,operation:i._operation.request.node,variables:i._operation.request.variables},u.stack,u}else{var c=o;a.push(c)}}),a},t._handleOptimisticResponses=function(r){var i;if(r.length>1)return r.some(function(l){var s;return((s=l.extensions)===null||s===void 0?void 0:s.isOptimistic)===!0})&&kn(!1),!1;var a=r[0],o=((i=a.extensions)===null||i===void 0?void 0:i.isOptimistic)===!0;return o&&this._state!=="started"&&kn(!1),o?(this._processOptimisticResponse(a,null,this._treatMissingFieldsAsNull),this._sink.next(a),!0):!1},t._handleNext=function(r){if(this._state!=="completed"){this._seenActors.clear();var i=Array.isArray(r)?r:[r],a=this._handleErrorResponse(i);if(a.length===0){var o=i.some(function(_){var O;return((O=_.extensions)===null||O===void 0?void 0:O.is_final)===!0});o&&(this._state="loading_final",this._updateActiveState(),this._incrementalPayloadsPending=!1),this._sink.next(r);return}var l=this._handleOptimisticResponses(a);if(!l){var s=Lae(a),u=s[0],c=s[1],f=u.length>0;if(f){if(this._isSubscriptionOperation){var p=kae();this._operation={request:this._operation.request,fragment:Qae(this._operation.fragment.node,p,this._operation.fragment.variables,this._operation.fragment.owner),root:yb(this._operation.root.node,p,this._operation.root.variables)}}var g=this._processResponses(u);this._processPayloadFollowups(g)}if(c.length>0){var v=this._processIncrementalResponses(c);this._processPayloadFollowups(v)}this._isSubscriptionOperation&&(a[0].extensions==null?a[0].extensions={__relay_subscription_root_id:this._operation.fragment.dataID}:a[0].extensions.__relay_subscription_root_id=this._operation.fragment.dataID);var m=this._runPublishQueue(f?this._operation:void 0);f&&this._incrementalPayloadsPending&&this._retainData(),this._updateOperationTracker(m),this._sink.next(r)}}},t._processOptimisticResponse=function(r,i,a){var o=this;if(this._optimisticUpdates!==null&&kn(!1),!(r==null&&i==null)){var l=[];if(r){var s=this._normalizeResponse(r,this._operation.root,_I,{actorIdentifier:this._actorIdentifier,getDataID:this._getDataID,path:[],shouldProcessClientComponents:this._shouldProcessClientComponents,treatMissingFieldsAsNull:a});SI(s),l.push({operation:this._operation,payload:s,updater:i}),this._processOptimisticFollowups(s,l)}else i&&l.push({operation:this._operation,payload:{errors:null,fieldPayloads:null,incrementalPlaceholders:null,followupPayloads:null,source:_b.create(),isFinal:!1},updater:i});this._optimisticUpdates=l,l.forEach(function(c){return o._getPublishQueueAndSaveActor().applyUpdate(c)});var u=this._runPublishQueue();mI.ENABLE_OPERATION_TRACKER_OPTIMISTIC_UPDATES&&this._updateOperationTracker(u)}},t._processOptimisticFollowups=function(r,i){if(r.followupPayloads&&r.followupPayloads.length){var a=r.followupPayloads,o=(0,Rh.default)(a),l;try{for(o.s();!(l=o.n()).done;){var s=l.value;switch(s.kind){case"ModuleImportPayload":var u=this._expectOperationLoader(),c=u.get(s.operationReference);if(c==null)this._processAsyncOptimisticModuleImport(s);else{var f=this._processOptimisticModuleImport(c,s);i.push.apply(i,(0,kh.default)(f))}break;case"ActorPayload":break;default:kn(!1)}}}catch(p){o.e(p)}finally{o.f()}}},t._normalizeFollowupPayload=function(r,i){var a;i.kind==="SplitOperation"&&r.kind==="ModuleImportPayload"?a=Cae(r.variables,i.argumentDefinitions,r.args):a=r.variables;var o=yb(i,r.dataID,a);return this._normalizeResponse({data:r.data},o,r.typeName,{actorIdentifier:this._actorIdentifier,getDataID:this._getDataID,path:r.path,treatMissingFieldsAsNull:this._treatMissingFieldsAsNull,shouldProcessClientComponents:this._shouldProcessClientComponents})},t._processOptimisticModuleImport=function(r,i){var a=Ob(r),o=[],l=this._normalizeFollowupPayload(i,a);return SI(l),o.push({operation:this._operation,payload:l,updater:null}),this._processOptimisticFollowups(l,o),o},t._processAsyncOptimisticModuleImport=function(r){var i=this;this._expectOperationLoader().load(r.operationReference).then(function(a){if(!(a==null||i._state!=="started")){var o=i._processOptimisticModuleImport(a,r);if(o.forEach(function(s){return i._getPublishQueueAndSaveActor().applyUpdate(s)}),i._optimisticUpdates!=null){var l;(l=i._optimisticUpdates).push.apply(l,(0,kh.default)(o)),i._runPublishQueue()}}})},t._processResponses=function(r){var i=this;return this._optimisticUpdates!==null&&(this._optimisticUpdates.forEach(function(a){i._getPublishQueueAndSaveActor().revertUpdate(a)}),this._optimisticUpdates=null),this._incrementalPayloadsPending=!1,this._incrementalResults.clear(),this._source.clear(),r.map(function(a){var o=i._normalizeResponse(a,i._operation.root,_I,{actorIdentifier:i._actorIdentifier,getDataID:i._getDataID,path:[],treatMissingFieldsAsNull:i._treatMissingFieldsAsNull,shouldProcessClientComponents:i._shouldProcessClientComponents});return i._getPublishQueueAndSaveActor().commitPayload(i._operation,o,i._updater),o})},t._processPayloadFollowups=function(r){var i=this;this._state!=="completed"&&r.forEach(function(a){var o=a.incrementalPlaceholders,l=a.followupPayloads,s=a.isFinal;if(i._state=s?"loading_final":"loading_incremental",i._updateActiveState(),s&&(i._incrementalPayloadsPending=!1),l&&l.length!==0&&l.forEach(function(c){var f,p=i._actorIdentifier;i._actorIdentifier=(f=c.actorIdentifier)!==null&&f!==void 0?f:i._actorIdentifier,i._processFollowupPayload(c),i._actorIdentifier=p}),o&&o.length!==0&&(i._incrementalPayloadsPending=i._state!=="loading_final",o.forEach(function(c){var f,p=i._actorIdentifier;i._actorIdentifier=(f=c.actorIdentifier)!==null&&f!==void 0?f:i._actorIdentifier,i._processIncrementalPlaceholder(a,c),i._actorIdentifier=p}),i._isClientPayload||i._state==="loading_final")){var u=[];o.forEach(function(c){c.kind==="defer"&&u.push(i._processDeferResponse(c.label,c.path,c,{data:c.data}))}),u.length>0&&i._processPayloadFollowups(u)}})},t._maybeCompleteSubscriptionOperationTracking=function(){this._isSubscriptionOperation&&this._pendingModulePayloadsCount===0&&this._incrementalPayloadsPending===!1&&this._completeOperationTracker()},t._processFollowupPayload=function(r){var i=this;switch(r.kind){case"ModuleImportPayload":var a=this._expectOperationLoader(),o=a.get(r.operationReference);if(o!=null)this._processFollowupPayloadWithNormalizationNode(r,Ob(o));else{var l=this._nextSubscriptionId++;this._pendingModulePayloadsCount++;var s=function(){i._pendingModulePayloadsCount--,i._maybeCompleteSubscriptionOperationTracking()},u=mb.from(new Promise(function(c,f){a.load(r.operationReference).then(c,f)}));mb.create(function(c){var f,p=u.subscribe({next:function(v){if(v!=null){var m=function(){try{var S=Ob(v),b=mI.BATCH_ASYNC_MODULE_UPDATES_FN,P=b!=null&&i._pendingModulePayloadsCount>1,E=OI(function(){if(i._handleFollowupPayload(r,S),P)i._scheduleAsyncStoreUpdate(b,c.complete);else{var Q=i._runPublishQueue();i._updateOperationTracker(Q)}}),$=E[0];i._log({name:"execute.async.module",executeId:i._executeId,operationName:S.name,duration:$}),P||c.complete()}catch(Q){c.error(Q)}},_=i._scheduler;_==null?m():f=_.schedule(m)}else c.complete()},error:c.error});return function(){p.unsubscribe(),i._scheduler!=null&&f!=null&&i._scheduler.cancel(f)}}).subscribe({complete:function(){i._complete(l),s()},error:function(f){i._error(f),s()},start:function(f){return i._start(l,f)}})}break;case"ActorPayload":this._processFollowupPayloadWithNormalizationNode(r,r.node);break;default:kn(!1)}},t._processFollowupPayloadWithNormalizationNode=function(r,i){this._handleFollowupPayload(r,i),this._maybeCompleteSubscriptionOperationTracking()},t._handleFollowupPayload=function(r,i){var a=this._normalizeFollowupPayload(r,i);this._getPublishQueueAndSaveActor().commitPayload(this._operation,a),this._processPayloadFollowups([a])},t._processIncrementalPlaceholder=function(r,i){var a,o=i.label,l=i.path,s=l.map(String).join("."),u=this._incrementalResults.get(o);u==null&&(u=new Map,this._incrementalResults.set(o,u));var c=u.get(s),f=c!=null&&c.kind==="response"?c.responses:null;u.set(s,{kind:"placeholder",placeholder:i});var p;i.kind==="stream"?p=i.parentID:i.kind==="defer"?p=i.selector.dataID:kn(!1);var g=r.source.get(p),v=((a=r.fieldPayloads)!==null&&a!==void 0?a:[]).filter(function(E){var $=yI(E.dataID,E.fieldKey);return E.dataID===p||$===p});g==null&&kn(!1);var m,_,O=this._source.get(p);if(O!=null){m=Rm.update(O.record,g);var S=new Map,b=function($){var Q=Fae($);S.set(Q,$)};O.fieldPayloads.forEach(b),v.forEach(b),_=Array.from(S.values())}else m=g,_=v;if(this._source.set(p,{record:m,fieldPayloads:_}),f!=null){var P=this._processIncrementalResponses(f);this._processPayloadFollowups(P)}},t._processIncrementalResponses=function(r){var i=this,a=[];return r.forEach(function(o){var l=o.label,s=o.path,u=o.response,c=i._incrementalResults.get(l);if(c==null&&(c=new Map,i._incrementalResults.set(l,c)),l.indexOf("$defer$")!==-1){var f=s.map(String).join("."),p=c.get(f);if(p==null){p={kind:"response",responses:[o]},c.set(f,p);return}else if(p.kind==="response"){p.responses.push(o);return}var g=p.placeholder;g.kind!=="defer"&&kn(!1),a.push(i._processDeferResponse(l,s,g,u))}else{var v=s.slice(0,-2).map(String).join("."),m=c.get(v);if(m==null){m={kind:"response",responses:[o]},c.set(v,m);return}else if(m.kind==="response"){m.responses.push(o);return}var _=m.placeholder;_.kind!=="stream"&&kn(!1),a.push(i._processStreamResponse(l,s,_,u))}}),a},t._processDeferResponse=function(r,i,a,o){var l,s=a.selector.dataID,u=this._actorIdentifier;this._actorIdentifier=(l=a.actorIdentifier)!==null&&l!==void 0?l:this._actorIdentifier;var c=this._normalizeResponse(o,a.selector,a.typeName,{actorIdentifier:this._actorIdentifier,getDataID:this._getDataID,path:a.path,treatMissingFieldsAsNull:this._treatMissingFieldsAsNull,shouldProcessClientComponents:this._shouldProcessClientComponents});this._getPublishQueueAndSaveActor().commitPayload(this._operation,c);var f=this._source.get(s);f==null&&kn(!1);var p=f.fieldPayloads;if(p.length!==0){var g,v={errors:null,fieldPayloads:p,incrementalPlaceholders:null,followupPayloads:null,source:_b.create(),isFinal:((g=o.extensions)===null||g===void 0?void 0:g.is_final)===!0};this._getPublishQueueAndSaveActor().commitPayload(this._operation,v)}return this._actorIdentifier=u,c},t._processStreamResponse=function(r,i,a,o){var l=a.parentID,s=a.node,u=a.variables,c=a.actorIdentifier,f=this._actorIdentifier;this._actorIdentifier=c??this._actorIdentifier;var p=s.selections[0];p!=null&&p.kind==="LinkedField"&&p.plural===!0||kn(!1);var g=this._normalizeStreamItem(o,l,p,u,i,a.path),v=g.fieldPayloads,m=g.itemID,_=g.itemIndex,O=g.prevIDs,S=g.relayPayload,b=g.storageKey;if(this._getPublishQueueAndSaveActor().commitPayload(this._operation,S,function(E){var $=E.get(l);if($!=null){var Q=$.getLinkedRecords(b);if(Q!=null&&!(Q.length!==O.length||Q.some(function(D,T){return O[T]!==(D&&D.getDataID())}))){var k=(0,kh.default)(Q);k[_]=E.get(m),$.setLinkedRecords(k,b)}}}),v.length!==0){var P={errors:null,fieldPayloads:v,incrementalPlaceholders:null,followupPayloads:null,source:_b.create(),isFinal:!1};this._getPublishQueueAndSaveActor().commitPayload(this._operation,P)}return this._actorIdentifier=f,S},t._normalizeStreamItem=function(r,i,a,o,l,s){var u,c,f,p,g=r.data;typeof g!="object"&&kn(!1);var v=(u=a.alias)!==null&&u!==void 0?u:a.name,m=Iae(a,o),_=this._source.get(i);_==null&&kn(!1);var O=_.record,S=_.fieldPayloads,b=Rm.getLinkedRecordIDs(O,m);b==null&&kn(!1);var P=l[l.length-1],E=parseInt(P,10);E===P&&E>=0||kn(!1);var $=(c=a.concreteType)!==null&&c!==void 0?c:g[Aae];typeof $!="string"&&kn(!1);var Q=(f=(p=this._getDataID(g,$))!==null&&p!==void 0?p:b==null?void 0:b[E])!==null&&f!==void 0?f:yI(i,m,E);typeof Q!="string"&&kn(!1);var k=yb(a,Q,o),D=Rm.clone(O),T=(0,kh.default)(b);T[E]=Q,Rm.setLinkedRecordIDs(D,m,T),this._source.set(i,{record:D,fieldPayloads:S});var A=this._normalizeResponse(r,k,$,{actorIdentifier:this._actorIdentifier,getDataID:this._getDataID,path:[].concat((0,kh.default)(s),[v,String(E)]),treatMissingFieldsAsNull:this._treatMissingFieldsAsNull,shouldProcessClientComponents:this._shouldProcessClientComponents});return{fieldPayloads:S,itemID:Q,itemIndex:E,prevIDs:b,relayPayload:A,storageKey:m}},t._scheduleAsyncStoreUpdate=function(r,i){var a=this;this._completeFns.push(i),this._asyncStoreUpdateDisposable==null&&(this._asyncStoreUpdateDisposable=r(function(){a._asyncStoreUpdateDisposable=null;var o=a._runPublishQueue();a._updateOperationTracker(o);var l=(0,Rh.default)(a._completeFns),s;try{for(l.s();!(s=l.n()).done;){var u=s.value;u()}}catch(c){l.e(c)}finally{l.f()}a._completeFns=[]}))},t._updateOperationTracker=function(r){r!=null&&r.length>0&&this._operationTracker.update(this._operation.request,new Set(r))},t._completeOperationTracker=function(){this._operationTracker.complete(this._operation.request)},t._getPublishQueueAndSaveActor=function(){return this._seenActors.add(this._actorIdentifier),this._getPublishQueue(this._actorIdentifier)},t._getActorsToVisit=function(){return this._seenActors.size===0?new Set([this._actorIdentifier]):this._seenActors},t._runPublishQueue=function(r){var i=new Set,a=(0,Rh.default)(this._getActorsToVisit()),o;try{for(a.s();!(o=a.n()).done;){var l=o.value,s=this._getPublishQueue(l).run(r);s.forEach(function(u){return i.add(u)})}}catch(u){a.e(u)}finally{a.f()}return Array.from(i)},t._retainData=function(){var r=(0,Rh.default)(this._getActorsToVisit()),i;try{for(r.s();!(i=r.n()).done;){var a=i.value;this._retainDisposables.has(a)||this._retainDisposables.set(a,this._getStore(a).retain(this._operation))}}catch(o){r.e(o)}finally{r.f()}},t._disposeRetainedData=function(){var r=(0,Rh.default)(this._retainDisposables.values()),i;try{for(r.s();!(i=r.n()).done;){var a=i.value;a.dispose()}}catch(o){r.e(o)}finally{r.f()}this._retainDisposables.clear()},t._expectOperationLoader=function(){var r=this._operationLoader;return r||kn(!1),r},e}();function Lae(e){var t=[],n=[];return e.forEach(function(r){if(r.path!=null||r.label!=null){var i=r.label,a=r.path;(i==null||a==null)&&kn(!1),n.push({label:i,path:a,response:r})}else t.push(r)}),[t,n]}function Fae(e){var t;return(t=JSON.stringify(Rae(e)))!==null&&t!==void 0?t:""}function SI(e){var t=e.incrementalPlaceholders;t!=null&&t.length!==0&&kn(!1)}var Nae={execute:Dae},Rr=$i,zae=x1,bI=zae.EXISTENT,Sb=qe,Uae=function(){function e(n,r){this.__sources=[r,n],this._base=n,this._sink=r}var t=e.prototype;return t.unstable_getRawRecordWithChanges=function(r){var i=this._base.get(r),a=this._sink.get(r);if(a===void 0){if(i==null)return i;var o=Rr.clone(i);return o}else{if(a===null)return null;if(i!=null){var l=Rr.update(i,a);return l}else{var s=Rr.clone(a);return s}}},t._getSinkRecord=function(r){var i=this._sink.get(r);if(!i){var a=this._base.get(r);a||Sb(!1),i=Rr.create(r,Rr.getType(a)),this._sink.set(r,i)}return i},t.copyFields=function(r,i){var a=this._sink.get(r),o=this._base.get(r);a||o||Sb(!1);var l=this._getSinkRecord(i);o&&Rr.copyFields(o,l),a&&Rr.copyFields(a,l)},t.copyFieldsFromRecord=function(r,i){var a=this._getSinkRecord(i);Rr.copyFields(r,a)},t.create=function(r,i){this._base.getStatus(r)!==bI&&this._sink.getStatus(r)!==bI||Sb(!1);var a=Rr.create(r,i);this._sink.set(r,a)},t.delete=function(r){this._sink.delete(r)},t.getStatus=function(r){return this._sink.has(r)?this._sink.getStatus(r):this._base.getStatus(r)},t.getType=function(r){for(var i=0;i<this.__sources.length;i++){var a=this.__sources[i].get(r);if(a)return Rr.getType(a);if(a===null)return null}},t.getValue=function(r,i){for(var a=0;a<this.__sources.length;a++){var o=this.__sources[a].get(r);if(o){var l=Rr.getValue(o,i);if(l!==void 0)return l}else if(o===null)return null}},t.setValue=function(r,i,a){var o=this._getSinkRecord(r);Rr.setValue(o,i,a)},t.getLinkedRecordID=function(r,i){for(var a=0;a<this.__sources.length;a++){var o=this.__sources[a].get(r);if(o){var l=Rr.getLinkedRecordID(o,i);if(l!==void 0)return l}else if(o===null)return null}},t.setLinkedRecordID=function(r,i,a){var o=this._getSinkRecord(r);Rr.setLinkedRecordID(o,i,a)},t.getLinkedRecordIDs=function(r,i){for(var a=0;a<this.__sources.length;a++){var o=this.__sources[a].get(r);if(o){var l=Rr.getLinkedRecordIDs(o,i);if(l!==void 0)return l}else if(o===null)return null}},t.setLinkedRecordIDs=function(r,i,a){var o=this._getSinkRecord(r);Rr.setLinkedRecordIDs(o,i,a)},e}(),B6=Uae,qae=nt.default,R1=qae(er),jae=en,dd=jae.getArgumentValues,tr=Xi,Vae=tr.ACTOR_CHANGE,Zae=tr.ALIASED_FRAGMENT_SPREAD,Wae=tr.ALIASED_INLINE_FRAGMENT_SPREAD,Xae=tr.CLIENT_EDGE_TO_CLIENT_OBJECT,Yae=tr.CLIENT_EDGE_TO_SERVER_OBJECT,Gae=tr.CLIENT_EXTENSION,Bae=tr.CONDITION,Hae=tr.DEFER,Kae=tr.FRAGMENT_SPREAD,Jae=tr.INLINE_DATA_FRAGMENT_SPREAD,eoe=tr.INLINE_FRAGMENT,toe=tr.LINKED_FIELD,noe=tr.MODULE_IMPORT,roe=tr.RELAY_LIVE_RESOLVER,ioe=tr.RELAY_RESOLVER,aoe=tr.REQUIRED_FIELD,ooe=tr.SCALAR_FIELD,loe=tr.STREAM,soe=["id","__id","__typename","js"];function uoe(e,t,n,r,i){var a={};return cg(a,e,t,n,r,i),a}function cg(e,t,n,r,i,a){var o,l=(0,R1.default)(r),s;try{var u=function(){var g=s.value;switch(g.kind){case toe:g.plural?Object.defineProperty(e,(c=g.alias)!==null&&c!==void 0?c:g.name,{get:doe(g,n,t,i,a),set:coe(g,n,t,i)}):Object.defineProperty(e,(f=g.alias)!==null&&f!==void 0?f:g.name,{get:hoe(g,n,t,i,a),set:foe(g,n,t,i)});break;case ooe:var v=(o=g.alias)!==null&&o!==void 0?o:g.name;Object.defineProperty(e,v,{get:function(){var _,O=dd((_=g.args)!==null&&_!==void 0?_:[],n),S=t.getValue(g.name,O);return S==null&&(S=voe(g,O,t,i,a)),S},set:soe.includes(g.name)?void 0:function(m){var _,O=dd((_=g.args)!==null&&_!==void 0?_:[],n);t.setValue__UNSAFE(m,g.name,O)}});break;case eoe:t.getType()===g.type&&cg(e,t,n,g.selections,i,a);break;case Gae:cg(e,t,n,g.selections,i,a);break;case Kae:break;case Bae:case Vae:case Zae:case Jae:case Wae:case Xae:case Yae:case Hae:case noe:case roe:case aoe:case loe:case ioe:throw new Error("Encountered an unexpected ReaderSelection variant in RelayRecordSourceProxy. This indicates a bug in Relay.");default:throw g.kind,new Error("Encountered an unexpected ReaderSelection variant in RelayRecordSourceProxy. This indicates a bug in Relay.")}};for(l.s();!(s=l.n()).done;){var c,f;u()}}catch(p){l.e(p)}finally{l.f()}}function coe(e,t,n,r){return function(a){var o,l=dd((o=e.args)!==null&&o!==void 0?o:[],t);if(a==null)throw new Error("Do not assign null to plural linked fields; assign an empty array instead.");var s=a.map(function(u){if(u==null)throw new Error("When assigning an array of items, none of the items should be null or undefined.");var c=u.__id;if(c==null)throw new Error("The __id field must be present on each item passed to the setter. This indicates a bug in Relay.");var f=r.get(c);if(f==null)throw new Error("Did not find item with data id ".concat(c," in the store."));return f});n.setLinkedRecords(s,e.name,l)}}function foe(e,t,n,r){return function(a){var o,l=dd((o=e.args)!==null&&o!==void 0?o:[],t);if(a==null)n.setValue(a,e.name,l);else{var s=a.__id;if(s==null)throw new Error("The __id field must be present on the argument. This indicates a bug in Relay.");var u=r.get(s);if(u==null)throw new Error("Did not find item with data id ".concat(s," in the store."));n.setLinkedRecord(u,e.name,l)}}}function doe(e,t,n,r,i){return function(){var a,o=dd((a=e.args)!==null&&a!==void 0?a:[],t),l=n.getLinkedRecords(e.name,o);return l===void 0&&(l=goe(e,o,n,r,i)),l!=null?l.map(function(s){if(s!=null){var u={};return cg(u,s,t,e.selections,r,i),u}else return s}):l}}function hoe(e,t,n,r,i){return function(){var a,o=dd((a=e.args)!==null&&a!==void 0?a:[],t),l=n.getLinkedRecord(e.name,o);if(l===void 0&&(l=poe(e,o,n,r,i)),l!=null){var s={};return cg(s,l,t,e.selections,r,i),s}else return l}}function poe(e,t,n,r,i){var a=(0,R1.default)(i),o;try{for(a.s();!(o=a.n()).done;){var l=o.value;if(l.kind==="linked"){var s=l.handle(e,n,t,r);if(s!=null)return r.get(s)}}}catch(u){a.e(u)}finally{a.f()}}function goe(e,t,n,r,i){var a=(0,R1.default)(i),o;try{for(a.s();!(o=a.n()).done;){var l=o.value;if(l.kind==="pluralLinked"){var s=l.handle(e,n,t,r);if(s!=null)return s.map(function(u){if(u!=null)return r.get(u)})}}}catch(u){a.e(u)}finally{a.f()}}function voe(e,t,n,r,i){var a=(0,R1.default)(i),o;try{for(a.s();!(o=a.n()).done;){var l=o.value;if(l.kind==="scalar"){var s=l.handle(e,n,t,r);if(s!==void 0)return s}}}catch(u){a.e(u)}finally{a.f()}}var H6={createUpdatableProxy:uoe},moe=Uo,Ooe=moe.getFragment,yoe=Ml,_oe=yoe.getVariablesFromFragment,Soe=en,boe=Soe.ID_KEY,woe=H6,$oe=woe.createUpdatableProxy,xoe=qe;function Poe(e,t,n,r){var i=Ooe(e),a=_oe(i,t),o=t[boe],l=n.get(o);return l==null&&xoe(!1),{updatableData:$oe(l,a,i.selections,n,r)}}var K6={readUpdatableFragment:Poe},Eoe=Uo,Roe=Eoe.getUpdatableQuery,koe=H6,Toe=koe.createUpdatableProxy;function Coe(e,t,n,r){var i=Roe(e);return{updatableData:Toe(n.getRoot(),t,i.fragment.selections,n,r)}}var J6={readUpdatableQuery:Coe},Qoe=zo,Aoe=Qoe.generateClientID,Ioe=en,pu=Ioe.getStableStorageKey,km=qe,Doe=function(){function e(n,r,i){this._dataID=i,this._mutator=r,this._source=n}var t=e.prototype;return t.copyFieldsFrom=function(r){this._mutator.copyFields(r.getDataID(),this._dataID)},t.getDataID=function(){return this._dataID},t.getType=function(){var r=this._mutator.getType(this._dataID);return r==null&&km(!1),r},t.getValue=function(r,i){var a=pu(r,i);return this._mutator.getValue(this._dataID,a)},t.setValue=function(r,i,a){return e7(r)||km(!1),this.setValue__UNSAFE(r,i,a)},t.setValue__UNSAFE=function(r,i,a){var o=pu(i,a);return this._mutator.setValue(this._dataID,o,r),this},t.getLinkedRecord=function(r,i){var a=pu(r,i),o=this._mutator.getLinkedRecordID(this._dataID,a);return o!=null?this._source.get(o):o},t.setLinkedRecord=function(r,i,a){r instanceof e||km(!1);var o=pu(i,a),l=r.getDataID();return this._mutator.setLinkedRecordID(this._dataID,o,l),this},t.getOrCreateLinkedRecord=function(r,i,a){var o=this.getLinkedRecord(r,a);if(!o){var l,s=pu(r,a),u=Aoe(this.getDataID(),s);o=(l=this._source.get(u))!==null&&l!==void 0?l:this._source.create(u,i),this.setLinkedRecord(o,r,a)}return o},t.getLinkedRecords=function(r,i){var a=this,o=pu(r,i),l=this._mutator.getLinkedRecordIDs(this._dataID,o);return l==null?l:l.map(function(s){return s!=null?a._source.get(s):s})},t.setLinkedRecords=function(r,i,a){Array.isArray(r)||km(!1);var o=pu(i,a),l=r.map(function(s){return s&&s.getDataID()});return this._mutator.setLinkedRecordIDs(this._dataID,o,l),this},t.invalidateRecord=function(){this._source.markIDForInvalidation(this._dataID)},e}();function e7(e){return e==null||typeof e!="object"||Array.isArray(e)&&e.every(e7)}var Moe=Doe,Loe=$i,t7=x1,bb=t7.EXISTENT,wI=t7.NONEXISTENT,n7=en,wb=n7.ROOT_ID,$I=n7.ROOT_TYPE,Foe=K6,Noe=Foe.readUpdatableFragment,zoe=J6,Uoe=zoe.readUpdatableQuery,qoe=Moe,Tm=qe,joe=function(){function e(n,r,i,a){this.__mutator=n,this._handlerProvider=i||null,this._proxies={},this._getDataID=r,this._invalidatedStore=!1,this._idsMarkedForInvalidation=new Set,this._missingFieldHandlers=a}var t=e.prototype;return t.publishSource=function(r,i){var a=this,o=r.getRecordIDs();o.forEach(function(l){var s=r.getStatus(l);if(s===bb){var u=r.get(l);u&&(a.__mutator.getStatus(l)!==bb&&a.create(l,Loe.getType(u)),a.__mutator.copyFieldsFromRecord(u,l))}else s===wI&&a.delete(l)}),i&&i.length&&i.forEach(function(l){var s=a._handlerProvider&&a._handlerProvider(l.handle);s||Tm(!1),s.update(a,l)})},t.create=function(r,i){this.__mutator.create(r,i),delete this._proxies[r];var a=this.get(r);return a||Tm(!1),a},t.delete=function(r){r===wb&&Tm(!1),delete this._proxies[r],this.__mutator.delete(r)},t.get=function(r){if(!this._proxies.hasOwnProperty(r)){var i=this.__mutator.getStatus(r);i===bb?this._proxies[r]=new qoe(this,this.__mutator,r):this._proxies[r]=i===wI?null:void 0}return this._proxies[r]},t.getRoot=function(){var r=this.get(wb);return r||(r=this.create(wb,$I)),r&&r.getType()===$I||Tm(!1),r},t.invalidateStore=function(){this._invalidatedStore=!0},t.isStoreMarkedForInvalidation=function(){return this._invalidatedStore},t.markIDForInvalidation=function(r){this._idsMarkedForInvalidation.add(r)},t.getIDsMarkedForInvalidation=function(){return this._idsMarkedForInvalidation},t.readUpdatableQuery=function(r,i){return Uoe(r,i,this,this._missingFieldHandlers)},t.readUpdatableFragment=function(r,i){return Noe(r,i,this,this._missingFieldHandlers)},e}(),r7=joe,i7=en,Voe=i7.ROOT_TYPE,xI=i7.getStorageKey,Zoe=K6,Woe=Zoe.readUpdatableFragment,Xoe=J6,Yoe=Xoe.readUpdatableQuery,PI=qe,Goe=function(){function e(n,r,i,a){this.__mutator=n,this.__recordSource=r,this._readSelector=i,this._missingFieldHandlers=a}var t=e.prototype;return t.create=function(r,i){return this.__recordSource.create(r,i)},t.delete=function(r){this.__recordSource.delete(r)},t.get=function(r){return this.__recordSource.get(r)},t.getRoot=function(){return this.__recordSource.getRoot()},t.getOperationRoot=function(){var r=this.__recordSource.get(this._readSelector.dataID);return r||(r=this.__recordSource.create(this._readSelector.dataID,Voe)),r},t._getRootField=function(r,i,a){var o=r.node.selections.find(function(l){return l.kind==="LinkedField"&&l.name===i||l.kind==="RequiredField"&&l.field.name===i});return o&&o.kind==="RequiredField"&&(o=o.field),o&&o.kind==="LinkedField"||PI(!1),o.plural!==a&&PI(!1),o},t.getRootField=function(r){var i=this._getRootField(this._readSelector,r,!1),a=xI(i,this._readSelector.variables);return this.getOperationRoot().getLinkedRecord(a)},t.getPluralRootField=function(r){var i=this._getRootField(this._readSelector,r,!0),a=xI(i,this._readSelector.variables);return this.getOperationRoot().getLinkedRecords(a)},t.invalidateStore=function(){this.__recordSource.invalidateStore()},t.readUpdatableQuery=function(r,i){return Yoe(r,i,this,this._missingFieldHandlers)},t.readUpdatableFragment=function(r,i){return Woe(r,i,this,this._missingFieldHandlers)},e}(),Boe=Goe,Hoe=function(t){typeof t=="object"&&t!=null&&(Array.isArray(t)||t.constructor===Object)&&Object.freeze(t)},Koe=nt.default,$b=Koe(er),Joe=w1,ele=Xi,tle=ele.RELAY_LIVE_RESOLVER,nle=Pa,rle=Hoe,ile=zo,EI=ile.generateClientID,ci=$i,Vg=en,RI=Vg.RELAY_RESOLVER_ERROR_KEY,kI=Vg.RELAY_RESOLVER_INVALIDATION_KEY,xb=Vg.RELAY_RESOLVER_SNAPSHOT_KEY,TI=Vg.RELAY_RESOLVER_VALUE_KEY,CI=Vg.getStorageKey,Mf=qe,QI=new Set,ale=function(){function e(){}var t=e.prototype;return t.readFromCacheOrEvaluate=function(r,i,a,o,l){i.kind===tle&&Mf(!1);var s=o(),u=s.resolverResult,c=s.snapshot,f=s.error;return[u,void 0,f,c,void 0,void 0]},t.invalidateDataIDs=function(r){},t.ensureClientRecord=function(r,i){Mf(!1)},t.notifyUpdatedSubscribers=function(r){},e}();function Pb(e,t,n){var r=e.get(t);r||(r=new Set,e.set(t,r)),r.add(n)}var ole=function(){function e(n){this._resolverIDToRecordIDs=new Map,this._recordIDToResolverIDs=new Map,this._getRecordSource=n}var t=e.prototype;return t.readFromCacheOrEvaluate=function(r,i,a,o,l){var s=this._getRecordSource(),u=s.get(r);u==null&&Mf(!1);var c=CI(i,a),f=ci.getLinkedRecordID(u,c),p=f==null?null:s.get(f);if(p==null||this._isInvalid(p,l)){var g;f=(g=f)!==null&&g!==void 0?g:EI(r,c),p=ci.create(f,"__RELAY_RESOLVER__");var v=o();nle.ENABLE_SHALLOW_FREEZE_RESOLVER_VALUES&&rle(v.resolverResult),ci.setValue(p,TI,v.resolverResult),ci.setValue(p,xb,v.snapshot),ci.setValue(p,RI,v.error),s.set(f,p);var m=s.get(r);m==null&&Mf(!1);var _=ci.clone(m);if(ci.setLinkedRecordID(_,c,f),s.set(r,_),i.fragment!=null){var O,S=CI(i.fragment,a),b=EI(r,S);Pb(this._resolverIDToRecordIDs,b,f),Pb(this._recordIDToResolverIDs,r,b);var P=(O=v.snapshot)===null||O===void 0?void 0:O.seenRecords;if(P!=null){var E=(0,$b.default)(P),$;try{for(E.s();!($=E.n()).done;){var Q=$.value;Pb(this._recordIDToResolverIDs,Q,b)}}catch(A){E.e(A)}finally{E.f()}}}}var k=ci.getValue(p,TI),D=ci.getValue(p,xb),T=ci.getValue(p,RI);return[k,f,T,D,void 0,void 0]},t.invalidateDataIDs=function(r){for(var i=this._getRecordSource(),a=new Set,o=Array.from(r);o.length;){var l=o.pop();r.add(l);var s=(0,$b.default)((c=this._recordIDToResolverIDs.get(l))!==null&&c!==void 0?c:QI),u;try{for(s.s();!(u=s.n()).done;){var c,f=u.value;if(!a.has(f)){var p=(0,$b.default)((v=this._resolverIDToRecordIDs.get(f))!==null&&v!==void 0?v:QI),g;try{for(p.s();!(g=p.n()).done;){var v,m=g.value;this._markInvalidatedResolverRecord(m,i,r),a.has(m)||o.push(m)}}catch(_){p.e(_)}finally{p.f()}}}}catch(_){s.e(_)}finally{s.f()}}},t._markInvalidatedResolverRecord=function(r,i,a){var o=i.get(r);if(o){var l=ci.clone(o);ci.setValue(l,kI,!0),i.set(r,l)}},t._isInvalid=function(r,i){if(!ci.getValue(r,kI))return!1;var a=ci.getValue(r,xb),o=a==null?void 0:a.data,l=a==null?void 0:a.selector;if(o==null||l==null)return!0;var s=i(l),u=s.data,c=Joe(o,u);return c!==o},t.ensureClientRecord=function(r,i){Mf(!1)},t.notifyUpdatedSubscribers=function(r){Mf(!1)},e}(),a7={NoopResolverCache:ale,RecordResolverCache:ole},lle=Uo,sle=lle.getFragment,ule=Ml,cle=ule.getSelector,AI=qe,Rp=[];function fle(e,t){Rp.push(e);try{return t()}finally{Rp.pop()}}function dle(e,t){if(!Rp.length)throw new Error("readFragment should be called only from within a Relay Resolver function.");var n=Rp[Rp.length-1],r=sle(e),i=cle(r,t);i==null&&AI(!1),i.kind!=="SingularReaderSelector"&&AI(!1);var a=n.getDataForResolverFragment(i,t),o=a.data,l=a.isMissingData;if(l)throw o7;return o}var o7={},l7={readFragment:dle,withResolverContext:fle,RESOLVER_FRAGMENT_MISSING_DATA_SENTINEL:o7},uk=nt.default,hle=uk(ei),Th=uk(er),Ch=uk(yc),nr=Xi,ple=nr.ACTOR_CHANGE,gle=nr.ALIASED_FRAGMENT_SPREAD,vle=nr.ALIASED_INLINE_FRAGMENT_SPREAD,Cy=nr.CLIENT_EDGE_TO_CLIENT_OBJECT,II=nr.CLIENT_EDGE_TO_SERVER_OBJECT,mle=nr.CLIENT_EXTENSION,Ole=nr.CONDITION,yle=nr.DEFER,_le=nr.FRAGMENT_SPREAD,Sle=nr.INLINE_DATA_FRAGMENT_SPREAD,ble=nr.INLINE_FRAGMENT,DI=nr.LINKED_FIELD,wle=nr.MODULE_IMPORT,MI=nr.RELAY_LIVE_RESOLVER,LI=nr.RELAY_RESOLVER,$le=nr.REQUIRED_FIELD,FI=nr.SCALAR_FIELD,xle=nr.STREAM,la=Pa,Ple=JR,Ele=Ple.isSuspenseSentinel,Rle=Vs,kr=$i,qo=en,kle=qo.CLIENT_EDGE_TRAVERSAL_PATH,Tle=qo.FRAGMENT_OWNER_KEY,Cle=qo.FRAGMENT_PROP_NAME_KEY,Cm=qo.FRAGMENTS_KEY,Qm=qo.ID_KEY,Qle=qo.MODULE_COMPONENT_KEY,Ale=qo.ROOT_ID,jO=qo.getArgumentValues,Ile=qo.getModuleComponentKey,Am=qo.getStorageKey,Dle=a7,Mle=Dle.NoopResolverCache,s7=l7,Lle=s7.RESOLVER_FRAGMENT_MISSING_DATA_SENTINEL,Fle=s7.withResolverContext,Nle=P1,zle=Nle.generateTypeID,Wr=qe;function u7(e,t,n){var r=new Ule(e,t,n??new Mle);return r.read()}var Ule=function(){function e(n,r,i){var a;this._clientEdgeTraversalPath=la.ENABLE_CLIENT_EDGES&&(a=r.clientEdgeTraversalPath)!==null&&a!==void 0&&a.length?(0,Ch.default)(r.clientEdgeTraversalPath):[],this._missingClientEdges=[],this._missingLiveResolverFields=[],this._isMissingData=!1,this._isWithinUnmatchedTypeRefinement=!1,this._missingRequiredFields=null,this._errorResponseFields=null,this._owner=r.owner,this._recordSource=n,this._seenRecords=new Set,this._selector=r,this._variables=r.variables,this._resolverCache=i,this._resolverErrors=[],this._fragmentName=r.node.name,this._updatedDataIDs=new Set}var t=e.prototype;return t.read=function(){var r=this._selector,i=r.node,a=r.dataID,o=r.isWithinUnmatchedTypeRefinement,l=i.abstractKey,s=this._recordSource.get(a),u=!o;if(u&&l==null&&s!=null){var c=kr.getType(s);c!==i.type&&a!==Ale&&(u=!1)}if(u&&l!=null&&s!=null){var f=this._implementsInterface(s,l);f===!1?u=!1:f==null&&(this._isMissingData=!0)}this._isWithinUnmatchedTypeRefinement=!u;var p=this._traverse(i,a,null);return this._updatedDataIDs.size>0&&(this._resolverCache.notifyUpdatedSubscribers(this._updatedDataIDs),this._updatedDataIDs.clear()),{data:p,isMissingData:this._isMissingData&&u,missingClientEdges:la.ENABLE_CLIENT_EDGES&&this._missingClientEdges.length?this._missingClientEdges:null,missingLiveResolverFields:this._missingLiveResolverFields,seenRecords:this._seenRecords,selector:this._selector,missingRequiredFields:this._missingRequiredFields,relayResolverErrors:this._resolverErrors,errorResponseFields:this._errorResponseFields}},t._maybeAddErrorResponseFields=function(r,i){if(la.ENABLE_FIELD_ERROR_HANDLING){var a=kr.getErrors(r,i);if(a!=null){var o=this._fragmentName;this._errorResponseFields==null&&(this._errorResponseFields=[]);var l=(0,Th.default)(a),s;try{for(l.s();!(s=l.n()).done;){var u,c=s.value;this._errorResponseFields.push({owner:o,path:((u=c.path)!==null&&u!==void 0?u:[]).join("."),error:c})}}catch(f){l.e(f)}finally{l.f()}}}},t._markDataAsMissing=function(){if(this._isMissingData=!0,la.ENABLE_CLIENT_EDGES&&this._clientEdgeTraversalPath.length){var r=this._clientEdgeTraversalPath[this._clientEdgeTraversalPath.length-1];r!==null&&this._missingClientEdges.push({request:r.readerClientEdge.operation,clientEdgeDestinationID:r.clientEdgeDestinationID})}},t._traverse=function(r,i,a){var o=this._recordSource.get(i);if(this._seenRecords.add(i),o==null)return o===void 0&&this._markDataAsMissing(),o;var l=a||{},s=this._traverseSelections(r.selections,o,l);return s?l:null},t._getVariableValue=function(r){return this._variables.hasOwnProperty(r)||Wr(!1),this._variables[r]},t._maybeReportUnexpectedNull=function(r,i){var a;if(((a=this._missingRequiredFields)===null||a===void 0?void 0:a.action)!=="THROW"){var o=this._fragmentName;switch(i){case"THROW":this._missingRequiredFields={action:i,field:{path:r,owner:o}};return;case"LOG":this._missingRequiredFields==null?this._missingRequiredFields={action:i,fields:[{path:r,owner:o}]}:this._missingRequiredFields={action:i,fields:[].concat((0,Ch.default)(this._missingRequiredFields.fields),[{path:r,owner:o}])};return}}},t._traverseSelections=function(r,i,a){for(var o=0;o<r.length;o++){var l=r[o];switch(l.kind){case $le:{var s=this._readRequiredField(l,i,a);if(s==null){var u=l.action;return u!=="NONE"&&this._maybeReportUnexpectedNull(l.path,u),!1}break}case FI:this._readScalar(l,i,a);break;case DI:l.plural?this._readPluralLink(l,i,a):this._readLink(l,i,a);break;case Ole:var c=!!this._getVariableValue(l.condition);if(c===l.passingValue){var f=this._traverseSelections(l.selections,i,a);if(!f)return!1}break;case ble:{if(this._readInlineFragment(l,i,a)===!1)return!1;break}case MI:case LI:{if(!la.ENABLE_RELAY_RESOLVERS)throw new Error("Relay Resolver fields are not yet supported.");this._readResolverField(l,i,a);break}case _le:this._createFragmentPointer(l,i,a);break;case gle:a[l.name]=this._createAliasedFragmentSpread(l,i);break;case vle:{var p=this._readInlineFragment(l.fragment,i,{});p===!1&&(p=null),a[l.name]=p;break}case wle:this._readModuleImport(l,i,a);break;case Sle:this._createInlineDataOrResolverFragmentPointer(l,i,a);break;case yle:case mle:{var g=this._isMissingData,v=this._missingClientEdges.length;la.ENABLE_CLIENT_EDGES&&this._clientEdgeTraversalPath.push(null);var m=this._traverseSelections(l.selections,i,a);if(this._isMissingData=g||this._missingClientEdges.length>v||this._missingLiveResolverFields.length>0,la.ENABLE_CLIENT_EDGES&&this._clientEdgeTraversalPath.pop(),!m)return!1;break}case xle:{var _=this._traverseSelections(l.selections,i,a);if(!_)return!1;break}case ple:this._readActorChange(l,i,a);break;case Cy:case II:if(la.ENABLE_CLIENT_EDGES)this._readClientEdge(l,i,a);else throw new Error("Client edges are not yet supported.");break;default:Wr(!1)}}return!0},t._readRequiredField=function(r,i,a){switch(r.field.kind){case FI:return this._readScalar(r.field,i,a);case DI:return r.field.plural?this._readPluralLink(r.field,i,a):this._readLink(r.field,i,a);case LI:if(!la.ENABLE_RELAY_RESOLVERS)throw new Error("Relay Resolver fields are not yet supported.");return this._readResolverField(r.field,i,a);case MI:if(!la.ENABLE_RELAY_RESOLVERS)throw new Error("Relay Resolver fields are not yet supported.");return this._readResolverField(r.field,i,a);case Cy:case II:if(!la.ENABLE_RELAY_RESOLVERS)throw new Error("Relay Resolver fields are not yet supported.");return this._readClientEdge(r.field,i,a);default:r.field.kind,Wr(!1)}},t._readResolverField=function(r,i,a){var o,l=kr.getDataID(i),s=this._readResolverFieldImpl(r,l),u=(o=r.alias)!==null&&o!==void 0?o:r.name;return a[u]=s,s},t._readResolverFieldImpl=function(r,i){var a=this,o=r.fragment,l,s=function(S){return l!=null?{data:l.data,isMissingData:l.isMissingData}:(l=u7(a._recordSource,S,a._resolverCache),{data:l.data,isMissingData:l.isMissingData})},u=function(){if(o!=null){var S={__id:i,__fragmentOwner:a._owner,__fragments:(0,hle.default)({},o.name,o.args?jO(o.args,a._variables):{})},b={getDataForResolverFragment:s};return Fle(b,function(){var Q=NI(r,a._variables,S),k=Q[0],D=Q[1];return{resolverResult:k,snapshot:l,error:D}})}else{var P=NI(r,a._variables,null),E=P[0],$=P[1];return{resolverResult:E,snapshot:void 0,error:$}}},c=this._resolverCache.readFromCacheOrEvaluate(i,r,this._variables,u,s),f=c[0],p=c[1],g=c[2],v=c[3],m=c[4],_=c[5];return this._propogateResolverMetadata(r.path,v,g,p,m,_),f},t._propogateResolverMetadata=function(r,i,a,o,l,s){if(i!=null){if(i.missingRequiredFields!=null&&this._addMissingRequiredFields(i.missingRequiredFields),i.missingClientEdges!=null){var u=(0,Th.default)(i.missingClientEdges),c;try{for(u.s();!(c=u.n()).done;){var f=c.value;this._missingClientEdges.push(f)}}catch(E){u.e(E)}finally{u.f()}}if(i.missingLiveResolverFields!=null){this._isMissingData=this._isMissingData||i.missingLiveResolverFields.length>0;var p=(0,Th.default)(i.missingLiveResolverFields),g;try{for(p.s();!(g=p.n()).done;){var v=g.value;this._missingLiveResolverFields.push(v)}}catch(E){p.e(E)}finally{p.f()}}var m=(0,Th.default)(i.relayResolverErrors),_;try{for(m.s();!(_=m.n()).done;){var O=_.value;this._resolverErrors.push(O)}}catch(E){m.e(E)}finally{m.f()}this._isMissingData=this._isMissingData||i.isMissingData}if(a&&this._resolverErrors.push({field:{path:r,owner:this._fragmentName},error:a}),o!=null&&this._seenRecords.add(o),l!=null&&(this._isMissingData=!0,this._missingLiveResolverFields.push({path:"".concat(this._fragmentName,".").concat(r),liveStateID:l})),s!=null){var S=(0,Th.default)(s),b;try{for(S.s();!(b=S.n()).done;){var P=b.value;this._updatedDataIDs.add(P)}}catch(E){S.e(E)}finally{S.f()}}},t._readClientEdge=function(r,i,a){var o=this,l,s=r.backingField;s.kind==="ClientExtension"&&Wr(!1);var u=(l=s.alias)!==null&&l!==void 0?l:s.name,c={};this._traverseSelections([s],i,c);var f=c[u];if(f==null||Ele(f))return a[u]=f,f;var p=qle(r,f);switch(p.kind){case"PluralConcrete":var g=Vle(r,p.ids,this._resolverCache),v=g;if(r.modelResolver!=null){var m=r.modelResolver;v=g.map(function(Q){var k=o._readResolverFieldImpl(m,Q);return k!=null?Q:null})}this._clientEdgeTraversalPath.push(null);var _=this._readLinkedIds(r.linkedField,v,i,a);return this._clientEdgeTraversalPath.pop(),a[u]=_,_;case"SingularConcrete":var O=jle(r,p.id,this._resolverCache),S=O[0],b=O[1];if(r.modelResolver!=null){var P=this._readResolverFieldImpl(r.modelResolver,S);if(P==null)return a[u]=null,null}this._clientEdgeTraversalPath.push(b);var E=a[u];E==null||typeof E=="object"||Wr(!1);var $=this._traverse(r.linkedField,S,E);return this._clientEdgeTraversalPath.pop(),a[u]=$,$;default:p.kind}},t._readScalar=function(r,i,a){var o,l=(o=r.alias)!==null&&o!==void 0?o:r.name,s=Am(r,this._variables),u=kr.getValue(i,s);return u===null?this._maybeAddErrorResponseFields(i,s):u===void 0&&this._markDataAsMissing(),a[l]=u,u},t._readLink=function(r,i,a){var o,l=(o=r.alias)!==null&&o!==void 0?o:r.name,s=Am(r,this._variables),u=kr.getLinkedRecordID(i,s);if(u==null)return a[l]=u,u===null?this._maybeAddErrorResponseFields(i,s):u===void 0&&this._markDataAsMissing(),u;var c=a[l];c==null||typeof c=="object"||Wr(!1);var f=this._traverse(r,u,c);return a[l]=f,f},t._readActorChange=function(r,i,a){var o,l=(o=r.alias)!==null&&o!==void 0?o:r.name,s=Am(r,this._variables),u=kr.getActorLinkedRecordID(i,s);if(u==null)return a[l]=u,u===void 0?this._markDataAsMissing():u===null&&this._maybeAddErrorResponseFields(i,s),a[l];var c=u[0],f=u[1],p={};return this._createFragmentPointer(r.fragmentSpread,kr.fromObject({__id:f}),p),a[l]={__fragmentRef:p,__viewer:c},a[l]},t._readPluralLink=function(r,i,a){var o=Am(r,this._variables),l=kr.getLinkedRecordIDs(i,o);return l===null&&this._maybeAddErrorResponseFields(i,o),this._readLinkedIds(r,l,i,a)},t._readLinkedIds=function(r,i,a,o){var l=this,s,u=(s=r.alias)!==null&&s!==void 0?s:r.name;if(i==null)return o[u]=i,i===void 0&&this._markDataAsMissing(),i;var c=o[u];c==null||Array.isArray(c)||Wr(!1);var f=c||[];return i.forEach(function(p,g){if(p==null){p===void 0&&l._markDataAsMissing(),f[g]=p;return}var v=f[g];v==null||typeof v=="object"||Wr(!1),f[g]=l._traverse(r,p,v)}),o[u]=f,f},t._readModuleImport=function(r,i,a){var o=Ile(r.documentName),l=kr.getValue(i,o);if(l==null){l===void 0&&this._markDataAsMissing();return}this._createFragmentPointer({kind:"FragmentSpread",name:r.fragmentName,args:r.args},i,a),a[Cle]=r.fragmentPropName,a[Qle]=l},t._createAliasedFragmentSpread=function(r,i){var a=r.abstractKey;if(a==null){var o=kr.getType(i);if(o==null||o!==r.type)return null}else{var l=this._implementsInterface(i,a);if(l===!1)return null;if(l==null){this._markDataAsMissing();return}}var s={};return this._createFragmentPointer(r.fragment,i,s),kr.fromObject(s)},t._readInlineFragment=function(r,i,a){var o=r.abstractKey;if(o==null){var l=kr.getType(i);if(l==null||l!==r.type)return null;var s=this._traverseSelections(r.selections,i,a);if(!s)return!1}else{var u=this._implementsInterface(i,o),c=this._isMissingData,f=this._isWithinUnmatchedTypeRefinement;if(this._isWithinUnmatchedTypeRefinement=f||u===!1,this._traverseSelections(r.selections,i,a),this._isWithinUnmatchedTypeRefinement=f,u===!1){this._isMissingData=c;return}else if(u==null)return this._markDataAsMissing(),null}return a},t._createFragmentPointer=function(r,i,a){var o=a[Cm];o==null&&(o=a[Cm]={}),typeof o=="object"&&o!=null||Wr(!1),a[Qm]==null&&(a[Qm]=kr.getDataID(i)),o[r.name]=jO(r.args,this._variables,this._isWithinUnmatchedTypeRefinement),a[Tle]=this._owner,la.ENABLE_CLIENT_EDGES&&this._clientEdgeTraversalPath.length>0&&this._clientEdgeTraversalPath[this._clientEdgeTraversalPath.length-1]!==null&&(a[kle]=(0,Ch.default)(this._clientEdgeTraversalPath))},t._createInlineDataOrResolverFragmentPointer=function(r,i,a){var o=a[Cm];o==null&&(o=a[Cm]={}),typeof o=="object"&&o!=null||Wr(!1),a[Qm]==null&&(a[Qm]=kr.getDataID(i));var l={},s=this._fragmentName;this._fragmentName=r.name;var u=this._variables,c=r.args?jO(r.args,this._variables):{};this._variables=Rle.getFragmentVariables(r,this._owner.variables,c),this._traverseSelections(r.selections,i,l),this._variables=u,this._fragmentName=s,o[r.name]=l},t._addMissingRequiredFields=function(r){if(this._missingRequiredFields==null){this._missingRequiredFields=r;return}if(this._missingRequiredFields.action!=="THROW"){if(r.action==="THROW"){this._missingRequiredFields=r;return}this._missingRequiredFields={action:"LOG",fields:[].concat((0,Ch.default)(this._missingRequiredFields.fields),(0,Ch.default)(r.fields))}}},t._implementsInterface=function(r,i){var a=kr.getType(r),o=this._recordSource.get(zle(a)),l=o!=null?kr.getValue(o,i):null;return l},e}();function NI(e,t,n){var r=typeof e.resolverModule=="function"?e.resolverModule:e.resolverModule.default,i=null,a=null;try{var o=[];e.fragment!=null&&o.push(n);var l=e.args?jO(e.args,t):void 0;o.push(l),i=r.apply(null,o)}catch(s){s===Lle?i=void 0:a=s}return[i,a]}function qle(e,t){return e.linkedField.plural?(Array.isArray(t)||Wr(!1),{kind:"PluralConcrete",ids:t.map(function(n){return zI(n)})}):{kind:"SingularConcrete",id:zI(t)}}function jle(e,t,n){if(e.kind===Cy)if(e.backingField.normalizationInfo==null){var r=e.concreteType;return r==null&&Wr(!1),[n.ensureClientRecord(t,r),null]}else return[t,null];else return[t,{readerClientEdge:e,clientEdgeDestinationID:t}]}function Vle(e,t,n){if(e.kind===Cy)if(e.backingField.normalizationInfo==null){var r=e.concreteType;return r==null&&Wr(!1),t.map(function(i){return n.ensureClientRecord(i,r)})}else return t;else Wr(!1)}function zI(e,t){if(typeof e=="string")return e;if(typeof e=="object"&&e!=null&&typeof e.id=="string")return e.id;Wr(!1)}var ck={read:u7},Eb,Rb,kb=B6,Tb=r7,UI=Boe,Zle=ck,qI=Ad,Cb=qe,Qb=typeof Eo<"u"?Eo:typeof window<"u"?window:void 0,Ab=(Eb=Qb==null||(Rb=Qb.ErrorUtils)===null||Rb===void 0?void 0:Rb.applyWithGuard)!==null&&Eb!==void 0?Eb:function(e,t,n,r,i){return e.apply(t,n)},Wle=function(){function e(n,r,i,a){this._hasStoreSnapshot=!1,this._handlerProvider=r||null,this._pendingBackupRebase=!1,this._pendingData=new Set,this._pendingOptimisticUpdates=new Set,this._store=n,this._appliedOptimisticUpdates=new Set,this._gcHold=null,this._getDataID=i,this._missingFieldHandlers=a}var t=e.prototype;return t.applyUpdate=function(r){!this._appliedOptimisticUpdates.has(r)&&!this._pendingOptimisticUpdates.has(r)||Cb(!1),this._pendingOptimisticUpdates.add(r)},t.revertUpdate=function(r){this._pendingOptimisticUpdates.has(r)?this._pendingOptimisticUpdates.delete(r):this._appliedOptimisticUpdates.has(r)&&(this._pendingBackupRebase=!0,this._appliedOptimisticUpdates.delete(r))},t.revertAll=function(){this._pendingBackupRebase=!0,this._pendingOptimisticUpdates.clear(),this._appliedOptimisticUpdates.clear()},t.commitPayload=function(r,i,a){this._pendingBackupRebase=!0,this._pendingData.add({kind:"payload",operation:r,payload:i,updater:a})},t.commitUpdate=function(r){this._pendingBackupRebase=!0,this._pendingData.add({kind:"updater",updater:r})},t.commitSource=function(r){this._pendingBackupRebase=!0,this._pendingData.add({kind:"source",source:r})},t.run=function(r){var i=this._appliedOptimisticUpdates===0&&!!this._gcHold,a=!this._pendingBackupRebase&&this._pendingOptimisticUpdates.size===0&&!i;if(a)return[];this._pendingBackupRebase&&this._hasStoreSnapshot&&(this._store.restore(),this._hasStoreSnapshot=!1);var o=this._commitData();return(this._pendingOptimisticUpdates.size||this._pendingBackupRebase&&this._appliedOptimisticUpdates.size)&&(this._hasStoreSnapshot||(this._store.snapshot(),this._hasStoreSnapshot=!0),this._applyUpdates()),this._pendingBackupRebase=!1,this._appliedOptimisticUpdates.size>0?this._gcHold||(this._gcHold=this._store.holdGC()):this._gcHold&&(this._gcHold.dispose(),this._gcHold=null),this._store.notify(r,o)},t._publishSourceFromPayload=function(r){var i=this,a=r.payload,o=r.operation,l=r.updater,s=a.source,u=a.fieldPayloads,c=new kb(this._store.getSource(),s),f=new Tb(c,this._getDataID,this._handlerProvider,this._missingFieldHandlers);if(u&&u.length&&u.forEach(function(_){var O=i._handlerProvider&&i._handlerProvider(_.handle);O||Cb(!1),O.update(f,_)}),l){var p=o.fragment;p==null&&Cb(!1);var g=new UI(c,f,p,this._missingFieldHandlers),v=jI(s,p);l(g,v)}var m=f.getIDsMarkedForInvalidation();return this._store.publish(s,m),f.isStoreMarkedForInvalidation()},t._commitData=function(){var r=this;if(!this._pendingData.size)return!1;var i=!1;return this._pendingData.forEach(function(a){if(a.kind==="payload"){var o=r._publishSourceFromPayload(a);i=i||o}else if(a.kind==="source"){var l=a.source;r._store.publish(l)}else{var s=a.updater,u=qI.create(),c=new kb(r._store.getSource(),u),f=new Tb(c,r._getDataID,r._handlerProvider,r._missingFieldHandlers);Ab(s,null,[f],null,"RelayPublishQueue:commitData"),i=i||f.isStoreMarkedForInvalidation();var p=f.getIDsMarkedForInvalidation();r._store.publish(u,p)}}),this._pendingData.clear(),i},t._applyUpdates=function(){var r=this,i=qI.create(),a=new kb(this._store.getSource(),i),o=new Tb(a,this._getDataID,this._handlerProvider,this._missingFieldHandlers),l=function(u){if(u.storeUpdater){var c=u.storeUpdater;Ab(c,null,[o],null,"RelayPublishQueue:applyUpdates")}else{var f=u.operation,p=u.payload,g=u.updater,v=p.source,m=p.fieldPayloads;if(v&&o.publishSource(v,m),g){var _;v&&(_=jI(v,f.fragment));var O=new UI(a,o,f.fragment,r._missingFieldHandlers);Ab(g,null,[O,_],null,"RelayPublishQueue:applyUpdates")}}};this._pendingBackupRebase&&this._appliedOptimisticUpdates.size&&this._appliedOptimisticUpdates.forEach(l),this._pendingOptimisticUpdates.size&&(this._pendingOptimisticUpdates.forEach(function(s){l(s),r._appliedOptimisticUpdates.add(s)}),this._pendingOptimisticUpdates.clear()),this._store.publish(i)},e}();function jI(e,t){var n=Zle.read(e,t).data;return n}var Xle=Wle,Yle=nt.default,VI=Yle(un),Gle=kU,c7=ik,ZI=c7.INTERNAL_ACTOR_IDENTIFIER_DO_NOT_USE,Im=c7.assertInternalActorIdentifier,Ib=wc,WI=rae,Ble=q6,Hle=sae,Kle=V6,Jle=yae,ese=z6,tse=Nae,nse=Xle,rse=Ad,f7=function(){function e(n){var r=this,i,a,o,l,s,u,c,f,p,g;this.configName=n.configName,this._treatMissingFieldsAsNull=n.treatMissingFieldsAsNull===!0;var v=n.operationLoader;this.__log=(i=n.log)!==null&&i!==void 0?i:ase,this.relayFieldLogger=(a=n.relayFieldLogger)!==null&&a!==void 0?a:Jle,this._defaultRenderPolicy=(o=n.UNSTABLE_defaultRenderPolicy)!==null&&o!==void 0?o:"partial",this._operationLoader=v,this._operationExecutions=new Map,this._network=WI(this,n.network),this._getDataID=(l=n.getDataID)!==null&&l!==void 0?l:Kle,this._missingFieldHandlers=(s=n.missingFieldHandlers)!==null&&s!==void 0?s:[],this._publishQueue=new nse(n.store,(u=n.handlerProvider)!==null&&u!==void 0?u:Gle,this._getDataID,this._missingFieldHandlers),this._scheduler=(c=n.scheduler)!==null&&c!==void 0?c:null,this._store=n.store,this.options=n.options,this._isServer=(f=n.isServer)!==null&&f!==void 0?f:!1,this._normalizeResponse=(p=n.normalizeResponse)!==null&&p!==void 0?p:ese,this.__setNet=function(m){return r._network=WI(r,m)},this._operationTracker=(g=n.operationTracker)!==null&&g!==void 0?g:new Ble,this._shouldProcessClientComponents=n.shouldProcessClientComponents,Hle(this)}var t=e.prototype;return t.getStore=function(){return this._store},t.getNetwork=function(){return this._network},t.getOperationTracker=function(){return this._operationTracker},t.getScheduler=function(){return this._scheduler},t.isRequestActive=function(r){var i=this._operationExecutions.get(r);return i==="active"},t.UNSTABLE_getDefaultRenderPolicy=function(){return this._defaultRenderPolicy},t.applyUpdate=function(r){var i=this,a=function(){i._scheduleUpdates(function(){i._publishQueue.revertUpdate(r),i._publishQueue.run()})};return this._scheduleUpdates(function(){i._publishQueue.applyUpdate(r),i._publishQueue.run()}),{dispose:a}},t.revertUpdate=function(r){var i=this;this._scheduleUpdates(function(){i._publishQueue.revertUpdate(r),i._publishQueue.run()})},t.replaceUpdate=function(r,i){var a=this;this._scheduleUpdates(function(){a._publishQueue.revertUpdate(r),a._publishQueue.applyUpdate(i),a._publishQueue.run()})},t.applyMutation=function(r){var i=this._execute({createSource:function(){return Ib.create(function(o){})},isClientPayload:!1,operation:r.operation,optimisticConfig:r,updater:null}).subscribe({});return{dispose:function(){return i.unsubscribe()}}},t.check=function(r){return this._missingFieldHandlers.length===0&&!ise(r)?this._store.check(r):this._checkSelectorAndHandleMissingFields(r,this._missingFieldHandlers)},t.commitPayload=function(r,i){this._execute({createSource:function(){return Ib.from({data:i})},isClientPayload:!0,operation:r,optimisticConfig:null,updater:null}).subscribe({})},t.commitUpdate=function(r){var i=this;this._scheduleUpdates(function(){i._publishQueue.commitUpdate(r),i._publishQueue.run()})},t.lookup=function(r){return this._store.lookup(r)},t.subscribe=function(r,i){return this._store.subscribe(r,i)},t.retain=function(r){return this._store.retain(r)},t.isServer=function(){return this._isServer},t._checkSelectorAndHandleMissingFields=function(r,i){var a=this,o=rse.create(),l=this._store.getSource(),s=this._store.check(r,{handlers:i,defaultActorIdentifier:ZI,getSourceForActor:function(c){return Im(c),l},getTargetForActor:function(c){return Im(c),o}});return o.size()>0&&this._scheduleUpdates(function(){a._publishQueue.commitSource(o),a._publishQueue.run()}),s},t._scheduleUpdates=function(r){var i=this._scheduler;i!=null?i.schedule(r):r()},t.execute=function(r){var i=this,a=r.operation;return this._execute({createSource:function(){return i.getNetwork().execute(a.request.node.params,a.request.variables,a.request.cacheConfig||{},null)},isClientPayload:!1,operation:a,optimisticConfig:null,updater:null})},t.executeSubscription=function(r){var i=this,a=r.operation,o=r.updater;return this._execute({createSource:function(){return i.getNetwork().execute(a.request.node.params,a.request.variables,a.request.cacheConfig||{},null)},isClientPayload:!1,operation:a,optimisticConfig:null,updater:o})},t.executeMutation=function(r){var i=this,a=r.operation,o=r.optimisticResponse,l=r.optimisticUpdater,s=r.updater,u=r.uploadables,c;return(o||l)&&(c={operation:a,response:o,updater:l}),this._execute({createSource:function(){return i.getNetwork().execute(a.request.node.params,a.request.variables,(0,VI.default)((0,VI.default)({},a.request.cacheConfig),{},{force:!0}),u)},isClientPayload:!1,operation:a,optimisticConfig:c,updater:s})},t.executeWithSource=function(r){var i=r.operation,a=r.source;return this._execute({createSource:function(){return a},isClientPayload:!1,operation:i,optimisticConfig:null,updater:null})},t.toJSON=function(){var r;return"RelayModernEnvironment(".concat((r=this.configName)!==null&&r!==void 0?r:"",")")},t._execute=function(r){var i=this,a=r.createSource,o=r.isClientPayload,l=r.operation,s=r.optimisticConfig,u=r.updater,c=this._publishQueue,f=this._store;return Ib.create(function(p){var g=tse.execute({actorIdentifier:ZI,getDataID:i._getDataID,isClientPayload:o,log:i.__log,operation:l,operationExecutions:i._operationExecutions,operationLoader:i._operationLoader,operationTracker:i._operationTracker,optimisticConfig:s,getPublishQueue:function(m){return Im(m),c},scheduler:i._scheduler,shouldProcessClientComponents:i._shouldProcessClientComponents,sink:p,source:a(),getStore:function(m){return Im(m),f},treatMissingFieldsAsNull:i._treatMissingFieldsAsNull,updater:u,normalizeResponse:i._normalizeResponse});return function(){return g.cancel()}})},e}();function ise(e){return e.root.node.kind==="Operation"&&e.root.node.clientAbstractTypes!=null}f7.prototype["@@RelayModernEnvironment"]=!0;function ase(){}var ose=f7,lse=Promise.resolve();function sse(e){lse.then(e).catch(use)}function use(e){setTimeout(function(){throw e},0)}var cse=sse,fse=Xi,XI=fse.LINKED_FIELD,dse=en,hse=dse.getHandleStorageKey,pse=Ha,gse=qe;function vse(e,t,n){var r=t.find(function(a){return a.kind===XI&&a.name===e.name&&a.alias===e.alias&&pse(a.args,e.args)});r&&r.kind===XI||gse(!1);var i=hse(e,n);return{kind:"LinkedField",alias:r.alias,name:i,storageKey:i,args:null,concreteType:r.concreteType,plural:r.plural,selections:r.selections}}var d7=vse,mse=Xi,YI=mse.SCALAR_FIELD,Ose=en,yse=Ose.getHandleStorageKey,_se=Ha,Sse=qe;function bse(e,t,n){var r=t.find(function(a){return a.kind===YI&&a.name===e.name&&a.alias===e.alias&&_se(a.args,e.args)});r&&r.kind===YI||Sse(!1);var i=yse(e,n);return{kind:"ScalarField",alias:r.alias,name:i,storageKey:i,args:null}}var wse=bse,$se=nt.default,Dm=$se(er),xse=B6,Pse=r7,Ese=lk,yr=Xi,Rse=zo,kse=Rse.isClientID,Tse=d7,Cse=wse,Qse=Vs,GI=Qse.getLocalVariables,BI=$i,h7=x1,Db=h7.EXISTENT,Ase=h7.UNKNOWN,fk=en,p7=P1,Ise=p7.TYPE_SCHEMA_TYPE,Mb=p7.generateTypeID,Qh=qe,Dse=yr.ACTOR_CHANGE,Mse=yr.CONDITION,Lse=yr.CLIENT_COMPONENT,Fse=yr.CLIENT_EXTENSION,Nse=yr.CLIENT_EDGE_TO_CLIENT_OBJECT,zse=yr.DEFER,Use=yr.FRAGMENT_SPREAD,qse=yr.INLINE_FRAGMENT,jse=yr.LINKED_FIELD,Vse=yr.LINKED_HANDLE,Zse=yr.MODULE_IMPORT,Wse=yr.RELAY_RESOLVER,Xse=yr.RELAY_LIVE_RESOLVER,Yse=yr.SCALAR_FIELD,Gse=yr.SCALAR_HANDLE,Bse=yr.STREAM,Hse=yr.TYPE_DISCRIMINATOR,Kse=fk.getModuleOperationKey,Mm=fk.getStorageKey,Lb=fk.getArgumentValues;function Jse(e,t,n,r,i,a,o,l){var s=r.dataID,u=r.node,c=r.variables,f=new eue(e,t,n,c,i,a,o,l);return f.check(u,s)}var eue=function(){function e(n,r,i,a,o,l,s,u){this._getSourceForActor=n,this._getTargetForActor=r,this._getDataID=s,this._source=n(i),this._mutatorRecordSourceProxyCache=new Map;var c=this._getMutatorAndRecordProxyForActor(i),f=c[0],p=c[1];this._mostRecentlyInvalidatedAt=null,this._handlers=o,this._mutator=f,this._operationLoader=l??null,this._recordSourceProxy=p,this._recordWasMissing=!1,this._variables=a,this._shouldProcessClientComponents=u}var t=e.prototype;return t._getMutatorAndRecordProxyForActor=function(r){var i=this._mutatorRecordSourceProxyCache.get(r);if(i==null){var a=this._getTargetForActor(r),o=new xse(this._getSourceForActor(r),a),l=new Pse(o,this._getDataID,void 0,this._handlers);i=[o,l],this._mutatorRecordSourceProxyCache.set(r,i)}return i},t.check=function(r,i){return this._assignClientAbstractTypes(r),this._traverse(r,i),this._recordWasMissing===!0?{status:"missing",mostRecentlyInvalidatedAt:this._mostRecentlyInvalidatedAt}:{status:"available",mostRecentlyInvalidatedAt:this._mostRecentlyInvalidatedAt}},t._getVariableValue=function(r){return this._variables.hasOwnProperty(r)||Qh(!1),this._variables[r]},t._handleMissing=function(){this._recordWasMissing=!0},t._handleMissingScalarField=function(r,i){if(!(r.name==="id"&&r.alias==null&&kse(i))){var a=r.args!=null?Lb(r.args,this._variables):{},o=(0,Dm.default)(this._handlers),l;try{for(o.s();!(l=o.n()).done;){var s=l.value;if(s.kind==="scalar"){var u=s.handle(r,this._recordSourceProxy.get(i),a,this._recordSourceProxy);if(u!==void 0)return u}}}catch(c){o.e(c)}finally{o.f()}this._handleMissing()}},t._handleMissingLinkField=function(r,i){var a=r.args!=null?Lb(r.args,this._variables):{},o=(0,Dm.default)(this._handlers),l;try{for(o.s();!(l=o.n()).done;){var s=l.value;if(s.kind==="linked"){var u=s.handle(r,this._recordSourceProxy.get(i),a,this._recordSourceProxy);if(u!==void 0&&(u===null||this._mutator.getStatus(u)===Db))return u}}}catch(c){o.e(c)}finally{o.f()}this._handleMissing()},t._handleMissingPluralLinkField=function(r,i){var a=this,o=r.args!=null?Lb(r.args,this._variables):{},l=(0,Dm.default)(this._handlers),s;try{for(l.s();!(s=l.n()).done;){var u=s.value;if(u.kind==="pluralLinked"){var c=u.handle(r,this._recordSourceProxy.get(i),o,this._recordSourceProxy);if(c!=null){var f=c.every(function(p){return p!=null&&a._mutator.getStatus(p)===Db});if(f)return c}else if(c===null)return null}}}catch(p){l.e(p)}finally{l.f()}this._handleMissing()},t._traverse=function(r,i){var a=this._mutator.getStatus(i);if(a===Ase&&this._handleMissing(),a===Db){var o=this._source.get(i),l=BI.getInvalidationEpoch(o);l!=null&&(this._mostRecentlyInvalidatedAt=this._mostRecentlyInvalidatedAt!=null?Math.max(this._mostRecentlyInvalidatedAt,l):l),this._traverseSelections(r.selections,i)}},t._traverseSelections=function(r,i){var a=this;r.forEach(function(o){switch(o.kind){case Yse:a._checkScalar(o,i);break;case jse:o.plural?a._checkPluralLink(o,i):a._checkLink(o,i);break;case Dse:a._checkActorChange(o.linkedField,i);break;case Mse:var l=!!a._getVariableValue(o.condition);l===o.passingValue&&a._traverseSelections(o.selections,i);break;case qse:{var s=o.abstractKey;if(s==null){var u=a._mutator.getType(i);u===o.type&&a._traverseSelections(o.selections,i)}else{var c=a._mutator.getType(i);c==null&&Qh(!1);var f=Mb(c),p=a._mutator.getValue(f,s);p===!0?a._traverseSelections(o.selections,i):p==null&&a._handleMissing()}break}case Vse:{var g=Tse(o,r,a._variables);g.plural?a._checkPluralLink(g,i):a._checkLink(g,i);break}case Gse:{var v=Cse(o,r,a._variables);a._checkScalar(v,i);break}case Zse:a._checkModuleImport(o,i);break;case zse:case Bse:a._traverseSelections(o.selections,i);break;case Use:var m=a._variables;a._variables=GI(a._variables,o.fragment.argumentDefinitions,o.args),a._traverseSelections(o.fragment.selections,i),a._variables=m;break;case Fse:var _=a._recordWasMissing;a._traverseSelections(o.selections,i),a._recordWasMissing=_;break;case Hse:var O=o.abstractKey,S=a._mutator.getType(i);S==null&&Qh(!1);var b=Mb(S),P=a._mutator.getValue(b,O);P==null&&a._handleMissing();break;case Lse:if(a._shouldProcessClientComponents===!1)break;a._traverseSelections(o.fragment.selections,i);break;case Wse:a._checkResolver(o,i);break;case Xse:a._checkResolver(o,i);break;case Nse:a._checkResolver(o.backingField,i);break;default:Qh(!1)}})},t._checkResolver=function(r,i){r.fragment&&this._traverseSelections([r.fragment],i)},t._checkModuleImport=function(r,i){var a=this._operationLoader;a===null&&Qh(!1);var o=Kse(r.documentName),l=this._mutator.getValue(i,o);if(l==null){l===void 0&&this._handleMissing();return}var s=a.get(l);if(s!=null){var u=Ese(s),c=this._variables;this._variables=GI(this._variables,u.argumentDefinitions,r.args),this._traverse(u,i),this._variables=c}else this._handleMissing()},t._checkScalar=function(r,i){var a=Mm(r,this._variables),o=this._mutator.getValue(i,a);o===void 0&&(o=this._handleMissingScalarField(r,i),o!==void 0&&this._mutator.setValue(i,a,o))},t._checkLink=function(r,i){var a=Mm(r,this._variables),o=this._mutator.getLinkedRecordID(i,a);o===void 0&&(o=this._handleMissingLinkField(r,i),o!=null?this._mutator.setLinkedRecordID(i,a,o):o===null&&this._mutator.setValue(i,a,null)),o!=null&&this._traverse(r,o)},t._checkPluralLink=function(r,i){var a=this,o=Mm(r,this._variables),l=this._mutator.getLinkedRecordIDs(i,o);l===void 0&&(l=this._handleMissingPluralLinkField(r,i),l!=null?this._mutator.setLinkedRecordIDs(i,o,l):l===null&&this._mutator.setValue(i,o,null)),l&&l.forEach(function(s){s!=null&&a._traverse(r,s)})},t._checkActorChange=function(r,i){var a=Mm(r,this._variables),o=this._source.get(i),l=o!=null?BI.getActorLinkedRecordID(o,a):o;if(l==null)l===void 0&&this._handleMissing();else{var s=l[0],u=l[1],c=this._source,f=this._mutator,p=this._recordSourceProxy,g=this._getMutatorAndRecordProxyForActor(s),v=g[0],m=g[1];this._source=this._getSourceForActor(s),this._mutator=v,this._recordSourceProxy=m,this._assignClientAbstractTypes(r),this._traverse(r,u),this._source=c,this._mutator=f,this._recordSourceProxy=p}},t._assignClientAbstractTypes=function(r){var i=r.clientAbstractTypes;if(i!=null)for(var a=0,o=Object.keys(i);a<o.length;a++){var l=o[a],s=(0,Dm.default)(i[l]),u;try{for(s.s();!(u=s.n()).done;){var c=u.value,f=Mb(c);this._source.get(f)==null&&this._mutator.create(f,Ise),this._mutator.getValue(f,l)==null&&this._mutator.setValue(f,l,!0)}}catch(p){s.e(p)}finally{s.f()}}},e}(),tue={check:Jse},nue=nt.default,rue=nue(un),g7=$i,HI=Ad,iue=qe,Fb=g7.fromObject(Object.freeze({__UNPUBLISH_RECORD_SENTINEL:!0})),v7=function(){function e(n){this._base=n,this._sink=HI.create()}var t=e.prototype;return t.has=function(r){if(this._sink.has(r)){var i=this._sink.get(r);return i!==Fb}else return this._base.has(r)},t.get=function(r){if(this._sink.has(r)){var i=this._sink.get(r);return i===Fb?void 0:i}else return this._base.get(r)},t.getStatus=function(r){var i=this.get(r);return i===void 0?"UNKNOWN":i===null?"NONEXISTENT":"EXISTENT"},t.clear=function(){this._base=HI.create(),this._sink.clear()},t.delete=function(r){this._sink.delete(r)},t.remove=function(r){this._sink.set(r,Fb)},t.set=function(r,i){this._sink.set(r,i)},t.getRecordIDs=function(){return Object.keys(this.toJSON())},t.size=function(){return Object.keys(this.toJSON()).length},t.toJSON=function(){var r=this,i=(0,rue.default)({},this._base.toJSON());return this._sink.getRecordIDs().forEach(function(a){var o=r.get(a);o===void 0?delete i[a]:i[a]=g7.toJSON(o)}),i},t.getOptimisticRecordIDs=function(){return new Set(this._sink.getRecordIDs())},e}();function aue(e){return new v7(e)}function oue(e){return e instanceof v7||iue(!1),e.getOptimisticRecordIDs()}var lue={create:aue,getOptimisticRecordIDs:oue},sue=$i,uue=en,cue=uue.RELAY_RESOLVER_OUTPUT_TYPE_RECORD_IDS,fue=qe;function due(e){var t=sue.getValue(e,cue);return t==null?null:(t instanceof Set||fue(!1),t)}var hue=due,pue=nt.default,KI=pue(er),gue=lk,_r=Xi,vue=d7,mue=hue,Oue=Vs,JI=Oue.getLocalVariables,il=$i,dk=en,yue=P1,eD=yue.generateTypeID,Nb=qe,_ue=_r.ACTOR_CHANGE,Sue=_r.CONDITION,bue=_r.CLIENT_COMPONENT,wue=_r.CLIENT_EXTENSION,$ue=_r.DEFER,xue=_r.FRAGMENT_SPREAD,Pue=_r.INLINE_FRAGMENT,Eue=_r.LINKED_FIELD,Rue=_r.MODULE_IMPORT,kue=_r.LINKED_HANDLE,Tue=_r.SCALAR_FIELD,Cue=_r.SCALAR_HANDLE,Que=_r.STREAM,Aue=_r.TYPE_DISCRIMINATOR,Iue=_r.RELAY_RESOLVER,Due=_r.RELAY_LIVE_RESOLVER,Mue=_r.CLIENT_EDGE_TO_CLIENT_OBJECT,zb=dk.getStorageKey,Lue=dk.getModuleOperationKey;function Fue(e,t,n,r,i){var a=t.dataID,o=t.node,l=t.variables,s=new Nue(e,l,n,r,i);s.mark(o,a)}var Nue=function(){function e(n,r,i,a,o){this._operationLoader=a??null,this._operationName=null,this._recordSource=n,this._references=i,this._variables=r,this._shouldProcessClientComponents=o}var t=e.prototype;return t.mark=function(r,i){(r.kind==="Operation"||r.kind==="SplitOperation")&&(this._operationName=r.name),this._traverse(r,i)},t._traverse=function(r,i){this._references.add(i);var a=this._recordSource.get(i);a!=null&&this._traverseSelections(r.selections,a)},t._getVariableValue=function(r){return this._variables.hasOwnProperty(r)||Nb(!1),this._variables[r]},t._traverseSelections=function(r,i){var a=this;r.forEach(function(o){switch(o.kind){case _ue:a._traverseLink(o.linkedField,i);break;case Eue:o.plural?a._traversePluralLink(o,i):a._traverseLink(o,i);break;case Sue:var l=!!a._getVariableValue(o.condition);l===o.passingValue&&a._traverseSelections(o.selections,i);break;case Pue:if(o.abstractKey==null){var s=il.getType(i);(s!=null&&s===o.type||s===dk.ROOT_TYPE)&&a._traverseSelections(o.selections,i)}else{var u=il.getType(i),c=eD(u);a._references.add(c),a._traverseSelections(o.selections,i)}break;case xue:var f=a._variables;a._variables=JI(a._variables,o.fragment.argumentDefinitions,o.args),a._traverseSelections(o.fragment.selections,i),a._variables=f;break;case kue:var p=vue(o,r,a._variables);p.plural?a._traversePluralLink(p,i):a._traverseLink(p,i);break;case $ue:case Que:a._traverseSelections(o.selections,i);break;case Tue:case Cue:break;case Aue:{var g=il.getType(i),v=eD(g);a._references.add(v);break}case Rue:a._traverseModuleImport(o,i);break;case wue:a._traverseSelections(o.selections,i);break;case bue:if(a._shouldProcessClientComponents===!1)break;a._traverseSelections(o.fragment.selections,i);break;case Iue:a._traverseResolverField(o,i);break;case Due:a._traverseResolverField(o,i);break;case Mue:a._traverseClientEdgeToClientObject(o,i);break;default:Nb(!1)}})},t._traverseClientEdgeToClientObject=function(r,i){var a=this._traverseResolverField(r.backingField,i);if(a!=null){var o=this._recordSource.get(a);if(o!=null)if(r.backingField.isOutputType){var l=mue(o);if(l!=null){var s=(0,KI.default)(l),u;try{for(s.s();!(u=s.n()).done;){var c=u.value;this._references.add(c)}}catch(S){s.e(S)}finally{s.f()}}}else{var f=r.linkedField,p=f.concreteType;if(p==null)return;if(f.plural){var g=il.getResolverLinkedRecordIDs(o,p);if(g!=null){var v=(0,KI.default)(g),m;try{for(v.s();!(m=v.n()).done;){var _=m.value;_!=null&&this._traverse(f,_)}}catch(S){v.e(S)}finally{v.f()}}}else{var O=il.getResolverLinkedRecordID(o,p);O!=null&&this._traverse(f,O)}}}},t._traverseResolverField=function(r,i){var a=zb(r,this._variables),o=il.getLinkedRecordID(i,a);o!=null&&this._references.add(o);var l=r.fragment;return l!=null&&this._traverseSelections([l],i),o},t._traverseModuleImport=function(r,i){var a=this._operationLoader;a===null&&Nb(!1);var o=Lue(r.documentName),l=il.getValue(i,o);if(l!=null){var s=a.get(l);if(s!=null){var u=gue(s),c=this._variables;this._variables=JI(this._variables,u.argumentDefinitions,r.args),this._traverseSelections(u.selections,i),this._variables=c}}},t._traverseLink=function(r,i){var a=zb(r,this._variables),o=il.getLinkedRecordID(i,a);o!=null&&this._traverse(r,o)},t._traversePluralLink=function(r,i){var a=this,o=zb(r,this._variables),l=il.getLinkedRecordIDs(i,o);l!=null&&l.forEach(function(s){s!=null&&a._traverse(r,s)})},e}(),zue={mark:Fue},Uue=Symbol.iterator;function que(e,t){for(var n=e[Uue](),r=n.next();!r.done;){var i=r.value;if(t.has(i))return!0;r=n.next()}return!1}var jue=que,Vue=en,Zue=Vue.ROOT_ID,Wue=ok,Xue=Wue.VIEWER_ID,Yue=Symbol.iterator;function Gue(e,t){for(var n=e[Yue](),r=n.next();!r.done;){var i=r.value;if(t.has(i)&&i!==Zue&&i!==Xue)return!0;r=n.next()}return!1}var Bue=Gue,tD=w1,nD=Pa,Hue=jue,Kue=Bue,rD=ck,Jue=function(){function e(n,r){this._subscriptions=new Set,this.__log=n,this._resolverCache=r}var t=e.prototype;return t.subscribe=function(r,i){var a=this,o={backup:null,callback:i,snapshot:r,stale:!1},l=function(){a._subscriptions.delete(o)};return this._subscriptions.add(o),{dispose:l}},t.snapshotSubscriptions=function(r){var i=this;this._subscriptions.forEach(function(a){if(!a.stale){a.backup=a.snapshot;return}var o=a.snapshot,l=rD.read(r,o.selector,i._resolverCache),s=tD(o.data,l.data);l.data=s,a.backup=l})},t.restoreSubscriptions=function(){this._subscriptions.forEach(function(r){var i=r.backup;r.backup=null,i?(i.data!==r.snapshot.data&&(r.stale=!0),r.snapshot={data:r.snapshot.data,isMissingData:i.isMissingData,missingClientEdges:i.missingClientEdges,missingLiveResolverFields:i.missingLiveResolverFields,seenRecords:i.seenRecords,selector:i.selector,missingRequiredFields:i.missingRequiredFields,relayResolverErrors:i.relayResolverErrors,errorResponseFields:i.errorResponseFields}):r.stale=!0})},t.updateSubscriptions=function(r,i,a,o){var l=this,s=i.size!==0;this._subscriptions.forEach(function(u){var c=l._updateSubscription(r,u,i,s,o);c!=null&&a.push(c)})},t._updateSubscription=function(r,i,a,o,l){var s=i.backup,u=i.callback,c=i.snapshot,f=i.stale,p=o&&Hue(c.seenRecords,a);if(!(!f&&!p)){var g=p||!s?rD.read(r,c.selector,this._resolverCache):s,v=tD(c.data,g.data);if(g={data:v,isMissingData:g.isMissingData,missingClientEdges:g.missingClientEdges,missingLiveResolverFields:g.missingLiveResolverFields,seenRecords:g.seenRecords,selector:g.selector,missingRequiredFields:g.missingRequiredFields,relayResolverErrors:g.relayResolverErrors,errorResponseFields:g.errorResponseFields},i.snapshot=g,i.stale=!1,g.data!==c.data)return this.__log&&nD.ENABLE_NOTIFY_SUBSCRIPTION&&this.__log({name:"store.notify.subscription",sourceOperation:l,snapshot:c,nextSnapshot:g}),u(g),c.selector.owner;if(nD.ENABLE_LOOSE_SUBSCRIPTION_ATTRIBUTION&&(f||Kue(c.seenRecords,a)))return c.selector.owner}},e}(),ece=Jue,m7=nt.default,iD=m7(er),tce=m7(ei),O7=ik,nce=O7.INTERNAL_ACTOR_IDENTIFIER_DO_NOT_USE,aD=O7.assertInternalActorIdentifier,rce=Pa,ice=cse,ace=tue,oce=V6,Lf=$i,lce=lue,sce=ck,uce=zue,cce=ece,fce=en,y7=en,Ub=y7.ROOT_ID,dce=y7.ROOT_TYPE,hce=a7,pce=hce.RecordResolverCache,oD=qe,gce=10,vce=function(){function e(n,r){var i=this,a,o,l,s,u;(0,tce.default)(this,"_gcStep",function(){i._gcRun&&(i._gcRun.next().done?i._gcRun=null:i._gcScheduler(i._gcStep))}),this._currentWriteEpoch=0,this._gcHoldCounter=0,this._gcReleaseBufferSize=(a=r==null?void 0:r.gcReleaseBufferSize)!==null&&a!==void 0?a:gce,this._gcRun=null,this._gcScheduler=(o=r==null?void 0:r.gcScheduler)!==null&&o!==void 0?o:ice,this._getDataID=(l=r==null?void 0:r.getDataID)!==null&&l!==void 0?l:oce,this._globalInvalidationEpoch=null,this._invalidationSubscriptions=new Set,this._invalidatedRecordIDs=new Set,this.__log=(s=r==null?void 0:r.log)!==null&&s!==void 0?s:null,this._queryCacheExpirationTime=r==null?void 0:r.queryCacheExpirationTime,this._operationLoader=(u=r==null?void 0:r.operationLoader)!==null&&u!==void 0?u:null,this._optimisticSource=null,this._recordSource=n,this._releaseBuffer=[],this._roots=new Map,this._shouldScheduleGC=!1,this._resolverCache=new pce(function(){return i._getMutableRecordSource()}),this._storeSubscriptions=new cce(r==null?void 0:r.log,this._resolverCache),this._updatedRecordIDs=new Set,this._shouldProcessClientComponents=r==null?void 0:r.shouldProcessClientComponents,mce(this._recordSource)}var t=e.prototype;return t.getSource=function(){var r;return(r=this._optimisticSource)!==null&&r!==void 0?r:this._recordSource},t._getMutableRecordSource=function(){var r;return(r=this._optimisticSource)!==null&&r!==void 0?r:this._recordSource},t.check=function(r,i){var a,o,l,s,u=r.root,c=this._getMutableRecordSource(),f=this._globalInvalidationEpoch,p=this._roots.get(r.request.identifier),g=p!=null?p.epoch:null;if(f!=null&&(g==null||g<=f))return{status:"stale"};var v=(a=i==null?void 0:i.handlers)!==null&&a!==void 0?a:[],m=(o=i==null?void 0:i.getSourceForActor)!==null&&o!==void 0?o:function(S){return aD(S),c},_=(l=i==null?void 0:i.getTargetForActor)!==null&&l!==void 0?l:function(S){return aD(S),c},O=ace.check(m,_,(s=i==null?void 0:i.defaultActorIdentifier)!==null&&s!==void 0?s:nce,u,v,this._operationLoader,this._getDataID,this._shouldProcessClientComponents);return yce(O,g,p==null?void 0:p.fetchTime,this._queryCacheExpirationTime)},t.retain=function(r){var i=this,a=r.request.identifier,o=!1,l=function(){if(!o){o=!0;var c=i._roots.get(a);if(c!=null&&(c.refCount--,c.refCount===0)){var f=i._queryCacheExpirationTime,p=c.fetchTime!=null&&f!=null&&c.fetchTime<=Date.now()-f;if(p)i._roots.delete(a),i.scheduleGC();else if(i._releaseBuffer.push(a),i._releaseBuffer.length>i._gcReleaseBufferSize){var g=i._releaseBuffer.shift();i._roots.delete(g),i.scheduleGC()}}}},s=this._roots.get(a);return s!=null?(s.refCount===0&&(this._releaseBuffer=this._releaseBuffer.filter(function(u){return u!==a})),s.refCount+=1):this._roots.set(a,{operation:r,refCount:1,epoch:null,fetchTime:null}),{dispose:l}},t.lookup=function(r){var i=this.getSource(),a=sce.read(i,r,this._resolverCache);return a},t.notify=function(r,i){var a=this,o=this.__log;o!=null&&o({name:"store.notify.start",sourceOperation:r}),this._currentWriteEpoch++,i===!0&&(this._globalInvalidationEpoch=this._currentWriteEpoch),rce.ENABLE_RELAY_RESOLVERS&&this._resolverCache.invalidateDataIDs(this._updatedRecordIDs);var l=this.getSource(),s=[];if(this._storeSubscriptions.updateSubscriptions(l,this._updatedRecordIDs,s,r),this._invalidationSubscriptions.forEach(function(p){a._updateInvalidationSubscription(p,i===!0)}),o!=null&&o({name:"store.notify.complete",sourceOperation:r,updatedRecordIDs:this._updatedRecordIDs,invalidatedRecordIDs:this._invalidatedRecordIDs}),this._updatedRecordIDs.clear(),this._invalidatedRecordIDs.clear(),r!=null){var u=r.request.identifier,c=this._roots.get(u);if(c!=null)c.epoch=this._currentWriteEpoch,c.fetchTime=Date.now();else if(r.request.node.params.operationKind==="query"&&this._gcReleaseBufferSize>0&&this._releaseBuffer.length<this._gcReleaseBufferSize){var f={operation:r,refCount:0,epoch:this._currentWriteEpoch,fetchTime:Date.now()};this._releaseBuffer.push(u),this._roots.set(u,f)}}return s},t.publish=function(r,i){var a=this._getMutableRecordSource();Oce(a,r,this._currentWriteEpoch+1,i,this._updatedRecordIDs,this._invalidatedRecordIDs);var o=this.__log;o!=null&&o({name:"store.publish",source:r,optimistic:a===this._optimisticSource})},t.subscribe=function(r,i){return this._storeSubscriptions.subscribe(r,i)},t.holdGC=function(){var r=this;this._gcRun&&(this._gcRun=null,this._shouldScheduleGC=!0),this._gcHoldCounter++;var i=function(){r._gcHoldCounter>0&&(r._gcHoldCounter--,r._gcHoldCounter===0&&r._shouldScheduleGC&&(r.scheduleGC(),r._shouldScheduleGC=!1))};return{dispose:i}},t.toJSON=function(){return"RelayModernStore()"},t.getEpoch=function(){return this._currentWriteEpoch},t.__getUpdatedRecordIDs=function(){return this._updatedRecordIDs},t.lookupInvalidationState=function(r){var i=this,a=new Map;return r.forEach(function(o){var l,s=i.getSource().get(o);a.set(o,(l=Lf.getInvalidationEpoch(s))!==null&&l!==void 0?l:null)}),a.set("global",this._globalInvalidationEpoch),{dataIDs:r,invalidations:a}},t.checkInvalidationState=function(r){var i=this.lookupInvalidationState(r.dataIDs),a=i.invalidations,o=r.invalidations;if(a.get("global")!==o.get("global"))return!0;var l=(0,iD.default)(r.dataIDs),s;try{for(l.s();!(s=l.n()).done;){var u=s.value;if(a.get(u)!==o.get(u))return!0}}catch(c){l.e(c)}finally{l.f()}return!1},t.subscribeToInvalidationState=function(r,i){var a=this,o={callback:i,invalidationState:r},l=function(){a._invalidationSubscriptions.delete(o)};return this._invalidationSubscriptions.add(o),{dispose:l}},t._updateInvalidationSubscription=function(r,i){var a=this,o=r.callback,l=r.invalidationState,s=l.dataIDs,u=i||s.some(function(c){return a._invalidatedRecordIDs.has(c)});u&&o()},t.snapshot=function(){this._optimisticSource!=null&&oD(!1);var r=this.__log;r!=null&&r({name:"store.snapshot"}),this._storeSubscriptions.snapshotSubscriptions(this.getSource()),this._gcRun&&(this._gcRun=null,this._shouldScheduleGC=!0),this._optimisticSource=lce.create(this.getSource())},t.restore=function(){this._optimisticSource==null&&oD(!1);var r=this.__log;r!=null&&r({name:"store.restore"}),this._optimisticSource=null,this._shouldScheduleGC&&this.scheduleGC(),this._storeSubscriptions.restoreSubscriptions()},t.scheduleGC=function(){if(this._gcHoldCounter>0){this._shouldScheduleGC=!0;return}this._gcRun||(this._gcRun=this._collect(),this._gcScheduler(this._gcStep))},t.__gc=function(){if(this._optimisticSource==null)for(var r=this._collect();!r.next().done;);},t._collect=function*(){e:for(;;){var r=this._currentWriteEpoch,i=new Set,a=(0,iD.default)(this._roots.values()),o;try{for(a.s();!(o=a.n()).done;){var l=o.value.operation,s=l.root;if(uce.mark(this._recordSource,s,i,this._operationLoader,this._shouldProcessClientComponents),yield,r!==this._currentWriteEpoch)continue e}}catch(g){a.e(g)}finally{a.f()}var u=this.__log;if(u!=null&&u({name:"store.gc",references:i}),i.size===0)this._recordSource.clear();else for(var c=this._recordSource.getRecordIDs(),f=0;f<c.length;f++){var p=c[f];i.has(p)||this._recordSource.remove(p)}return}},e}();function mce(e){if(!e.has(Ub)){var t=Lf.create(Ub,dce);e.set(Ub,t)}}function Oce(e,t,n,r,i,a){r&&r.forEach(function(p){var g=e.get(p),v=t.get(p);if(v!==null){var m;g!=null?m=Lf.clone(g):m=v!=null?Lf.clone(v):null,m&&(Lf.setValue(m,fce.INVALIDATED_AT_KEY,n),a.add(p),e.set(p,m))}});for(var o=t.getRecordIDs(),l=0;l<o.length;l++){var s=o[l],u=t.get(s),c=e.get(s);if(u&&c){var f=Lf.update(c,u);f!==c&&(i.add(s),e.set(s,f))}else u===null?(e.delete(s),c!==null&&i.add(s)):u&&(e.set(s,u),i.add(s))}}function yce(e,t,n,r){var i=e.mostRecentlyInvalidatedAt,a=e.status;if(typeof i=="number"&&(t==null||i>t))return{status:"stale"};if(a==="missing")return{status:"missing"};if(n!=null&&r!=null){var o=n<=Date.now()-r;if(o)return{status:"stale"}}return{status:"available",fetchTime:n??null}}var _ce=vce,Sce=b1,bce=Uo,wce=bce.getRequest,$ce=bc,xce=$ce.createOperationDescriptor,Pce=Ml,Ece=Pce.createReaderSelector;function Rce(e,t){var n=wce(t.subscription);if(n.params.operationKind!=="subscription")throw new Error("requestSubscription: Must use Subscription operation");var r=t.configs,i=t.onCompleted,a=t.onError,o=t.onNext,l=t.variables,s=t.cacheConfig,u=xce(n,l,s),c=r?Sce.convert(r,n,null,t.updater):t,f=c.updater,p=e.executeSubscription({operation:u,updater:f}).subscribe({next:function(v){if(o!=null){var m=u.fragment,_;if(Array.isArray(v)){var O,S;_=(O=v[0])===null||O===void 0||(S=O.extensions)===null||S===void 0?void 0:S.__relay_subscription_root_id}else{var b;_=(b=v.extensions)===null||b===void 0?void 0:b.__relay_subscription_root_id}typeof _=="string"&&(m=Ece(m.node,_,m.variables,m.owner));var P=e.lookup(m).data;o(P)}},error:a,complete:i});return{dispose:p.unsubscribe}}var kce=Rce,Tce=nt.default,Cce=Tce(un),_7=en,Qce=_7.getModuleComponentKey,Ace=_7.getModuleOperationKey;function Ice(e,t,n,r){var i=(0,Cce.default)({},r);return i[Qce(e)]=n,i[Ace(e)]=t,i}var Dce=Ice,Mce=Object.prototype.hasOwnProperty;function Lce(e){for(var t in e)if(Mce.call(e,t))return!1;return!0}var Fce=Lce,hk=Ml,Nce=hk.getDataIDsFromFragment,zce=hk.getSelector,Uce=hk.getVariablesFromFragment,qce=Fce,Ah=Pa,lD=Td,jce=uU,sD=jce.intern;function Vce(e,t){var n=zce(e,t),r=n==null?"null":n.kind==="SingularReaderSelector"?n.owner.identifier:"["+n.selectors.map(function(u){return u.owner.identifier}).join(",")+"]",i=Uce(e,t),a=Nce(e,t);if(Ah.ENABLE_GETFRAGMENTIDENTIFIER_OPTIMIZATION){var o=typeof a>"u"?"missing":a==null?"null":Array.isArray(a)?"["+a.join(",")+"]":a;return o=Ah.STRING_INTERN_LEVEL<=1?o:sD(o,Ah.MAX_DATA_ID_LENGTH),r+"/"+e.name+"/"+(i==null||qce(i)?"{}":JSON.stringify(lD(i)))+"/"+o}else{var l,s=(l=JSON.stringify(a))!==null&&l!==void 0?l:"missing";return s=Ah.STRING_INTERN_LEVEL<=1?s:sD(s,Ah.MAX_DATA_ID_LENGTH),r+"/"+e.name+"/"+JSON.stringify(lD(i))+"/"+s}}var Zce=Vce,Ih=qe;function Wce(e,t){var n,r;((n=e.metadata)===null||n===void 0?void 0:n.plural)===!0&&Ih(!1);var i=(r=e.metadata)===null||r===void 0?void 0:r.refetch;i==null&&Ih(!1);var a=i.operation.default?i.operation.default:i.operation,o=i.fragmentPathInResult;typeof a=="string"&&Ih(!1);var l=i.identifierInfo;return l!=null&&(l.identifierField==null||typeof l.identifierField=="string"||Ih(!1),l.identifierQueryVariableName==null||typeof l.identifierQueryVariableName=="string"||Ih(!1)),{fragmentRefPathInResponse:o,identifierInfo:l,refetchableRequest:a,refetchMetadata:i}}var S7=Wce,Xce=S7,qb=qe;function Yce(e,t){var n,r,i=Xce(e),a=i.refetchableRequest,o=i.refetchMetadata,l=o.connection;l==null&&qb(!1);var s=l.path,u=((n=(r=e.metadata)===null||r===void 0?void 0:r.connection)!==null&&n!==void 0?n:[])[0];u==null&&qb(!1);var c=o.identifierInfo;return(c==null?void 0:c.identifierField)==null||typeof c.identifierField=="string"||qb(!1),{connectionPathInFragmentData:s,identifierField:c==null?void 0:c.identifierField,paginationRequest:a,paginationMetadata:l,stream:u.stream===!0}}var Gce=Yce,b7=nt.default,Lm=b7(ei),Jc=b7(un),uD=qe;function Bce(e,t,n,r,i,a){var o,l=a.backward,s=a.forward;if(e==="backward"){var u;l!=null&&l.count!=null&&l.cursor!=null||uD(!1);var c=(0,Jc.default)((0,Jc.default)((0,Jc.default)({},r),i),{},(u={},(0,Lm.default)(u,l.cursor,n),(0,Lm.default)(u,l.count,t),u));return s&&s.cursor&&(c[s.cursor]=null),s&&s.count&&(c[s.count]=null),c}s!=null&&s.count!=null&&s.cursor!=null||uD(!1);var f=(0,Jc.default)((0,Jc.default)((0,Jc.default)({},r),i),{},(o={},(0,Lm.default)(o,s.cursor,n),(0,Lm.default)(o,s.count,t),o));return l&&l.cursor&&(f[l.cursor]=null),l&&l.count&&(f[l.count]=null),f}var Hce=Bce,Kce=nt.default,Jce=Kce(er),cD=qe;function efe(e,t){var n=e,r=(0,Jce.default)(t),i;try{for(r.s();!(i=r.n()).done;){var a=i.value;if(n==null)return null;typeof a=="number"?(Array.isArray(n)||cD(!1),n=n[a]):(typeof n=="object"&&!Array.isArray(n)||cD(!1),n=n[a])}}catch(o){r.e(o)}finally{r.f()}return n}var tfe=efe,ef={},nfe={stop:function(){}},rfe={profile:function(t,n){var r=ef[t];if(r&&r.length>0){for(var i=[],a=r.length-1;a>=0;a--){var o=r[a](t,n);i.unshift(o)}return{stop:function(s){i.forEach(function(u){return u(s)})}}}return nfe},attachProfileHandler:function(t,n){ef.hasOwnProperty(t)||(ef[t]=[]),ef[t].push(n)},detachProfileHandler:function(t,n){ef.hasOwnProperty(t)&&ife(ef[t],n)}};function ife(e,t){var n=e.indexOf(t);n!==-1&&e.splice(n,1)}var afe=rfe,ofe=y1,lfe=zR,sfe=RU,ufe=kU,cfe=bte,ffe=$te,dfe=Lte,fD=b1,hfe=Jte,pfe=wc,gfe=ine,vfe=qne,mfe=Yne,Fm=BR,co=Uo,Ofe=Hne,pk=zo,yfe=pk.generateClientID,_fe=pk.generateUniqueClientID,Sfe=pk.isClientID,bfe=mre,wfe=_re,w7=JR,$fe=w7.isSuspenseSentinel,xfe=w7.suspenseSentinel,Pfe=qR,Efe=z6,Rfe=Kie,dD=Vs,kfe=ose,hD=bc,Tfe=$i,Ti=Ml,Cfe=_ce,Qfe=q6,Afe=Ad,sa=en,Ife=l7,pD=ok,Dfe=kce,Mfe=Dce,Lfe=DU,Ffe=Zce,Nfe=Gce,zfe=Hce,Ufe=b6,qfe=S7,jfe=FR,Vfe=MU,Zfe=tfe,Wfe=XR,Xfe=i6,Yfe=w6,Gfe=w1,Bfe=Xi,Hfe=yU,Kfe=W6,Jfe=Pa,ede=afe,tde=O6,nde=Td,rde=r6,ide={Environment:kfe,Network:hfe,Observable:pfe,QueryResponseCache:gfe,RecordSource:Afe,Record:Tfe,ReplaySubject:tde,Store:Cfe,areEqualSelectors:Ti.areEqualSelectors,createFragmentSpecResolver:bfe,createNormalizationSelector:Ti.createNormalizationSelector,createOperationDescriptor:hD.createOperationDescriptor,createReaderSelector:Ti.createReaderSelector,createRequestDescriptor:hD.createRequestDescriptor,getArgumentValues:sa.getArgumentValues,getDataIDsFromFragment:Ti.getDataIDsFromFragment,getDataIDsFromObject:Ti.getDataIDsFromObject,getNode:co.getNode,getFragment:co.getFragment,getInlineDataFragment:co.getInlineDataFragment,getModuleComponentKey:sa.getModuleComponentKey,getModuleOperationKey:sa.getModuleOperationKey,getPaginationFragment:co.getPaginationFragment,getPluralSelector:Ti.getPluralSelector,getRefetchableFragment:co.getRefetchableFragment,getRequest:co.getRequest,getRequestIdentifier:Vfe,getSelector:Ti.getSelector,getSelectorsFromObject:Ti.getSelectorsFromObject,getSingularSelector:Ti.getSingularSelector,getStorageKey:sa.getStorageKey,getVariablesFromFragment:Ti.getVariablesFromFragment,getVariablesFromObject:Ti.getVariablesFromObject,getVariablesFromPluralFragment:Ti.getVariablesFromPluralFragment,getVariablesFromSingularFragment:Ti.getVariablesFromSingularFragment,handlePotentialSnapshotErrors:Wfe,graphql:co.graphql,isFragment:co.isFragment,isInlineDataFragment:co.isInlineDataFragment,isSuspenseSentinel:$fe,suspenseSentinel:xfe,isRequest:co.isRequest,readInlineData:Rfe,MutationTypes:fD.MutationTypes,RangeOperations:fD.RangeOperations,DefaultHandlerProvider:ufe,ConnectionHandler:ofe,MutationHandlers:sfe,VIEWER_ID:pD.VIEWER_ID,VIEWER_TYPE:pD.VIEWER_TYPE,applyOptimisticMutation:cfe,commitLocalUpdate:ffe,commitMutation:dfe,fetchQuery:vfe,fetchQuery_DEPRECATED:mfe,isRelayModernEnvironment:Pfe,requestSubscription:Dfe,ConnectionInterface:lfe,PreloadableQueryRegistry:Ofe,RelayProfiler:ede,createPayloadFor3DField:Mfe,RelayConcreteNode:Bfe,RelayError:Kfe,RelayFeatureFlags:Jfe,DEFAULT_HANDLE_KEY:Hfe.DEFAULT_HANDLE_KEY,FRAGMENTS_KEY:sa.FRAGMENTS_KEY,FRAGMENT_OWNER_KEY:sa.FRAGMENT_OWNER_KEY,ID_KEY:sa.ID_KEY,REF_KEY:sa.REF_KEY,REFS_KEY:sa.REFS_KEY,ROOT_ID:sa.ROOT_ID,ROOT_TYPE:sa.ROOT_TYPE,TYPENAME_KEY:sa.TYPENAME_KEY,deepFreeze:Lfe,generateClientID:yfe,generateUniqueClientID:_fe,getRelayHandleKey:jfe,isClientID:Sfe,isPromise:Xfe,isScalarAndEqual:Yfe,recycleNodesInto:Gfe,stableCopy:nde,getFragmentIdentifier:Ffe,getRefetchMetadata:qfe,getPaginationMetadata:Nfe,getPaginationVariables:zfe,getPendingOperationsForFragment:Ufe,getValueAtPath:Zfe,__internal:{ResolverFragments:Ife,OperationTracker:Qfe,createRelayContext:wfe,getOperationVariables:dD.getOperationVariables,getLocalVariables:dD.getLocalVariables,fetchQuery:Fm.fetchQuery,fetchQueryDeduped:Fm.fetchQueryDeduped,getPromiseForActiveRequest:Fm.getPromiseForActiveRequest,getObservableForActiveRequest:Fm.getObservableForActiveRequest,normalizeResponse:Efe,withProvidedVariables:rde}},tn=ide,ade=R,ode=tn,lde=ode.__internal.createRelayContext,Zs=lde(ade),$7={exports:{}};(function(e){function t(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})($7);var k1=$7.exports,x7={exports:{}};(function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(n){for(var r=1;r<arguments.length;r++){var i=arguments[r];for(var a in i)({}).hasOwnProperty.call(i,a)&&(n[a]=i[a])}return n},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(x7);var gk=x7.exports,gD=qe;function sde(e,t){t&&typeof t=="object"||gD(!1);for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];r&&(typeof r=="object"||typeof r=="function")||gD(!1)}}var ude=sde;function P7(e){return e.displayName||e.name||"Component"}function cde(e){return"Relay("+P7(e)+")"}var T1={getComponentName:P7,getContainerName:cde},fde=R,vk=fde.createContext({rootIsQueryRenderer:!1}),dde=nt.default,hde=dde(gk),pde=ude,E7=T1,gde=E7.getComponentName,vde=E7.getContainerName,mde=Zs,Ode=vk,yde=qe,rP=R,_de=tn,Sde=_de.getFragment,vD=rP.useContext;function bde(e,t,n){var r=vde(e);pde(gde(e),t);var i={};for(var a in t)i[a]=Sde(t[a]);var o=n(e,i);o.displayName=r;function l(u,c){var f,p=vD(mde);p==null&&yde(!1);var g=vD(Ode);return rP.createElement(o,(0,hde.default)({},u,{__relayContext:p,__rootIsQueryRenderer:(f=g==null?void 0:g.rootIsQueryRenderer)!==null&&f!==void 0?f:!1,componentRef:u.componentRef||c}))}l.displayName=r;var s=rP.forwardRef(l);return s}var mk=bde;function wde(e){return typeof e=="object"&&e!==null&&typeof e.check=="function"&&typeof e.lookup=="function"&&typeof e.retain=="function"&&typeof e.execute=="function"&&typeof e.subscribe=="function"}var $de=wde,xde=$de,Pde=qe;function Ede(e){return R7(e)||Pde(!1),e}function R7(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)&&xde(e.environment)}var Ok={assertRelayContext:Ede,isRelayContext:R7},Zg=nt.default,jb=Zg(un),Rde=Zg(qg),kde=Zg(k1),Tde=Zg(jg),mD=Zg(ei),Cde=["componentRef","__relayContext","__rootIsQueryRenderer"],Qde=mk,Ade=T1,Ide=Ade.getContainerName,Dde=Ok,OD=Dde.assertRelayContext,Mde=Ha,yD=R,yk=tn,_D=yk.createFragmentSpecResolver,SD=yk.getDataIDsFromObject,Lde=yk.isScalarAndEqual;function Fde(e,t){var n,r=Ide(e);return n=function(i){(0,Tde.default)(a,i);function a(l){var s,u;u=i.call(this,l)||this,(0,mD.default)((0,kde.default)(u),"_handleFragmentDataUpdate",function(){var g=u.state.resolver;u.setState(function(v){return g===v.resolver?{data:v.resolver.resolve(),relayProp:Nm(v.relayProp.environment)}:null})});var c=OD(l.__relayContext),f=(s=l.__rootIsQueryRenderer)!==null&&s!==void 0?s:!1,p=_D(c,r,t,l,f);return u.state={data:p.resolve(),prevProps:l,prevPropsContext:c,relayProp:Nm(c.environment),resolver:p},u}a.getDerivedStateFromProps=function(s,u){var c,f=u.prevProps,p=OD(s.__relayContext),g=(c=s.__rootIsQueryRenderer)!==null&&c!==void 0?c:!1,v=SD(t,f),m=SD(t,s),_=u.resolver;if(u.prevPropsContext.environment!==p.environment||!Mde(v,m))return _=_D(p,r,t,s,g),{data:_.resolve(),prevPropsContext:p,prevProps:s,relayProp:Nm(p.environment),resolver:_};_.setProps(s);var O=_.resolve();return O!==u.data?{data:O,prevProps:s,prevPropsContext:p,relayProp:Nm(p.environment)}:null};var o=a.prototype;return o.componentDidMount=function(){this._subscribeToNewResolverAndRerenderIfStoreHasChanged()},o.componentDidUpdate=function(s,u){this.state.resolver!==u.resolver?(u.resolver.dispose(),this._subscribeToNewResolverAndRerenderIfStoreHasChanged()):this._rerenderIfStoreHasChanged()},o.componentWillUnmount=function(){this.state.resolver.dispose()},o.shouldComponentUpdate=function(s,u){if(u.data!==this.state.data)return!0;for(var c=Object.keys(s),f=0;f<c.length;f++){var p=c[f];if(p==="__relayContext"){if(u.prevPropsContext.environment!==this.state.prevPropsContext.environment)return!0}else if(!t.hasOwnProperty(p)&&!Lde(s[p],this.props[p]))return!0}return!1},o._rerenderIfStoreHasChanged=function(){var s=this.state,u=s.data,c=s.resolver,f=c.resolve();u!==f&&this.setState({data:f})},o._subscribeToNewResolverAndRerenderIfStoreHasChanged=function(){var s=this.state,u=s.data,c=s.resolver,f=c.resolve();c.setCallback(this.props,this._handleFragmentDataUpdate),u!==f&&this.setState({data:f})},o.render=function(){var s=this.props,u=s.componentRef;s.__relayContext,s.__rootIsQueryRenderer;var c=(0,Rde.default)(s,Cde);return yD.createElement(e,(0,jb.default)((0,jb.default)((0,jb.default)({},c),this.state.data),{},{ref:u,relay:this.state.relayProp}))},a}(yD.Component),(0,mD.default)(n,"displayName",r),n}function Nm(e){return{environment:e}}function Nde(e,t){return Qde(e,t,Fde)}var zde={createContainer:Nde},Ude=Zs,qde=vk,jde=Ha,ac=R,_k=tn,Vde=_k.createOperationDescriptor;_k.deepFreeze;var Zde=_k.getRequest,Wde=ac.useLayoutEffect,Xde=ac.useState,bD=ac.useRef,Vb=ac.useMemo,Yde={rootIsQueryRenderer:!0};function Gde(e){var t=ac.useRef(e);return jde(t.current,e)||(t.current=e),t.current}function Bde(e){var t=e.environment,n=e.query,r=e.variables,i=e.render,a=Gde(r),o=Vb(function(){var g=Zde(n);return Vde(g,a)},[n,a]),l=Vb(function(){return{environment:t}},[t]),s=bD(null),u=Xde(null),c=u[1],f=bD(null),p=Vb(function(){t.check(o);var g=t.lookup(o.fragment);s.current=g.data;var v=t.retain(o),m=t.subscribe(g,function(S){s.current=S.data,c(s.current)}),_=!1;function O(){_||(_=!0,f.current=null,v.dispose(),m.dispose())}return f.current&&f.current(),f.current=O,g},[t,o]);return Wde(function(){var g=f.current;return function(){g&&g()}},[p]),ac.createElement(Ude.Provider,{value:l},ac.createElement(qde.Provider,{value:Yde},i({props:s.current})))}var Hde=Bde,Kde=nt.default,wD=Kde(un),Jde=tn,ehe=Jde.getSelector;function the(e,t){var n={};return Object.keys(e).forEach(function(r){var i,a,o,l=e[r],s=t[r],u=ehe(l,s),c=u!=null&&u.kind==="PluralReaderSelector"?(i=(a=u.selectors[0])===null||a===void 0?void 0:a.owner.variables)!==null&&i!==void 0?i:{}:(o=u==null?void 0:u.owner.variables)!==null&&o!==void 0?o:{};n=(0,wD.default)((0,wD.default)({},n),c)}),n}var k7=the,nhe=nt.default,$D=nhe(ei),Zb=qe,Sk=tn,rhe=Sk.__internal.fetchQuery,ihe=Sk.createOperationDescriptor,ahe=Sk.isRelayModernEnvironment,ohe=function(){function e(n){(0,$D.default)(this,"_selectionReferences",[]),(0,$D.default)(this,"_didFetchFinish",!1),n!=null&&(this._cacheSelectionReference=n.cacheSelectionReference,this._selectionReferences=n.selectionReferences)}var t=e.prototype;return t.getSelectionReferences=function(){return{cacheSelectionReference:this._cacheSelectionReference,selectionReferences:this._selectionReferences}},t.lookupInStore=function(r,i,a){return(a==="store-and-network"||a==="store-or-network")&&r.check(i).status==="available"?(this._retainCachedOperation(r,i),r.lookup(i.fragment)):null},t.getFetchResult=function(){if(this._didFetchFinish){if(this._error!=null)return{error:this._error};if(this._snapshot!=null)return{snapshot:this._snapshot}}else return null},t.execute=function(r){var i=this,a=r.environment,o=r.operation,l=r.preservePreviousReferences,s=l===void 0?!1:l,u=a.retain(o),c=function(){i._selectionReferences=i._selectionReferences.concat(u)},f=function(){s||i.disposeSelectionReferences(),i._selectionReferences=i._selectionReferences.concat(u)},p=function(){i._selectionReferences=i._selectionReferences.concat(u)};return ahe(a)?rhe(a,o).do({error:c,complete:f,unsubscribe:p}):a.execute({operation:o}).do({error:c,complete:f,unsubscribe:p})},t.setOnDataChange=function(r){this._fetchOptions||Zb(!1),typeof r=="function"&&(this._fetchOptions.onDataChangeCallbacks=this._fetchOptions.onDataChangeCallbacks||[],this._fetchOptions.onDataChangeCallbacks.push(r),this._didFetchFinish&&(this._error!=null?r({error:this._error}):this._snapshot!=null&&r({snapshot:this._snapshot})))},t.fetch=function(r,i){var a=this,o=r.environment,l=r.operation,s=r.onDataChange,u=!1,c;this.disposeRequest();var f=this._fetchOptions&&this._fetchOptions.onDataChangeCallbacks;this._fetchOptions={environment:o,onDataChangeCallbacks:f||[],operation:l},s&&this._fetchOptions.onDataChangeCallbacks.indexOf(s)===-1&&this._fetchOptions.onDataChangeCallbacks.push(s);var p=i?ihe(l.request.node,l.request.variables,i):l,g=this.execute({environment:o,operation:p}).finally(function(){a._pendingRequest=null}).subscribe({next:function(){a._didFetchFinish=!0,a._error=null,a._onQueryDataAvailable({notifyFirstResult:u})},error:function(m){a._didFetchFinish=!0,a._error=m,a._snapshot=null;var _=a._fetchOptions&&a._fetchOptions.onDataChangeCallbacks;u?_&&_.forEach(function(O){O({error:m})}):c=m}});if(this._pendingRequest={dispose:function(){g.unsubscribe()}},u=!0,c)throw c;return this._snapshot},t.retry=function(r){return this._fetchOptions||Zb(!1),this.fetch({environment:this._fetchOptions.environment,operation:this._fetchOptions.operation,onDataChange:null},r)},t.dispose=function(){this.disposeRequest(),this.disposeSelectionReferences()},t.disposeRequest=function(){this._error=null,this._snapshot=null,this._pendingRequest&&this._pendingRequest.dispose(),this._rootSubscription&&(this._rootSubscription.dispose(),this._rootSubscription=null)},t._retainCachedOperation=function(r,i){this._disposeCacheSelectionReference(),this._cacheSelectionReference=r.retain(i)},t._disposeCacheSelectionReference=function(){this._cacheSelectionReference&&this._cacheSelectionReference.dispose(),this._cacheSelectionReference=null},t.disposeSelectionReferences=function(){this._disposeCacheSelectionReference(),this._selectionReferences.forEach(function(r){return r.dispose()}),this._selectionReferences=[]},t._onQueryDataAvailable=function(r){var i=this,a=r.notifyFirstResult;this._fetchOptions||Zb(!1);var o=this._fetchOptions,l=o.environment,s=o.onDataChangeCallbacks,u=o.operation;if(!this._snapshot&&(this._snapshot=l.lookup(u.fragment),this._rootSubscription=l.subscribe(this._snapshot,function(f){if(i._fetchOptions!=null){var p=i._fetchOptions.onDataChangeCallbacks;Array.isArray(p)&&p.forEach(function(g){return g({snapshot:f})})}}),this._snapshot&&a&&Array.isArray(s))){var c=this._snapshot;s.forEach(function(f){return f({snapshot:c})})}},e}(),bk=ohe,Id=nt.default,lhe=Id(gk),Wb=Id(qg),Dh=Id(k1),she=Id(jg),wu=Id(ei),Vr=Id(un),uhe=["componentRef"],che=["componentRef","__relayContext","__rootIsQueryRenderer"],fhe=["componentRef","__relayContext","__rootIsQueryRenderer"],dhe=mk,Xb=k7,T7=T1,hhe=T7.getComponentName,phe=T7.getContainerName,ghe=Zs,vhe=bk,mhe=Ok,Yb=mhe.assertRelayContext,Gb=Ha,$o=qe,Bb=R,Fl=tn,xD=Fl.ConnectionInterface,PD=Fl.Observable,zm=Fl.RelayFeatureFlags,Um=Fl.createFragmentSpecResolver,Ohe=Fl.createOperationDescriptor,ED=Fl.getDataIDsFromObject,yhe=Fl.getRequest,_he=Fl.getVariablesFromObject,She=Fl.isScalarAndEqual,RD="forward";function bhe(e){var t=e.path;return t||$o(!1),function(n){for(var r=n[e.fragmentName],i=0;i<t.length;i++){if(!r||typeof r!="object")return null;r=r[t[i]]}return r}}function whe(e){var t=e.count;return t||$o(!1),function(n,r){return(0,Vr.default)((0,Vr.default)({},n),{},(0,wu.default)({},t,r))}}function $he(e){var t=null,n=!1;for(var r in e){var i=e[r],a=i.metadata&&i.metadata.connection;i.metadata!==void 0&&(n=!0),a&&(a.length!==1&&$o(!1),t&&$o(!1),t=(0,Vr.default)((0,Vr.default)({},a[0]),{},{fragmentName:r}))}return!n||t!==null||$o(!1),t||{}}function kD(e){return typeof e=="function"?{error:e,complete:e,unsubscribe:function(n){typeof e=="function"&&e()}}:e||{}}function xhe(e,t,n){var r;hhe(e);var i=phe(e),a=$he(t),o=n.getConnectionFromProps||bhe(a),l=n.direction||a.direction;l||$o(!1);var s=n.getFragmentVariables||whe(a);return r=function(u){(0,she.default)(c,u);function c(p){var g,v;v=u.call(this,p)||this,(0,wu.default)((0,Dh.default)(v),"_handleFragmentDataUpdate",function(){v.setState({data:v._resolver.resolve()})}),(0,wu.default)((0,Dh.default)(v),"_hasMore",function(){var O=v._getConnectionData();return!!(O&&O.hasMore&&O.cursor)}),(0,wu.default)((0,Dh.default)(v),"_isLoading",function(){return!!v._refetchSubscription}),(0,wu.default)((0,Dh.default)(v),"_refetchConnection",function(O,S,b){if(!v._canFetchPage("refetchConnection"))return{dispose:function(){}};v._refetchVariables=b;var P={count:O,cursor:null,totalCount:O},E=v._fetchPage(P,kD(S),{force:!0});return{dispose:E.unsubscribe}}),(0,wu.default)((0,Dh.default)(v),"_loadMore",function(O,S,b){if(!v._canFetchPage("loadMore"))return{dispose:function(){}};var P=kD(S),E=v._getConnectionData();if(!E)return PD.create(function(A){return A.complete()}).subscribe(P),null;var $=E.edgeCount+O;if(b&&b.force)return v._refetchConnection($,S);var Q=xD.get();Q.END_CURSOR,Q.START_CURSOR;var k=E.cursor,D={count:O,cursor:k,totalCount:$},T=v._fetchPage(D,P,b);return{dispose:T.unsubscribe}});var m=Yb(p.__relayContext),_=(g=p.__rootIsQueryRenderer)!==null&&g!==void 0?g:!1;return v._isARequestInFlight=!1,v._refetchSubscription=null,v._refetchVariables=null,zm.ENABLE_CONTAINERS_SUBSCRIBE_ON_COMMIT===!0?v._resolver=Um(m,i,t,p,_):v._resolver=Um(m,i,t,p,_,v._handleFragmentDataUpdate),v.state={data:v._resolver.resolve(),prevContext:m,contextForChildren:m,relayProp:v._buildRelayProp(m),resolverGeneration:0},v._isUnmounted=!1,v._hasFetched=!1,v}var f=c.prototype;return f.componentDidMount=function(){this._isUnmounted=!1,zm.ENABLE_CONTAINERS_SUBSCRIBE_ON_COMMIT===!0&&this._subscribeToNewResolverAndRerenderIfStoreHasChanged()},f.componentDidUpdate=function(g,v){zm.ENABLE_CONTAINERS_SUBSCRIBE_ON_COMMIT===!0&&(v.resolverGeneration!==this.state.resolverGeneration?this._subscribeToNewResolverAndRerenderIfStoreHasChanged():this._rerenderIfStoreHasChanged())},f.UNSAFE_componentWillReceiveProps=function(g){var v=this,m,_=Yb(g.__relayContext),O=(m=g.__rootIsQueryRenderer)!==null&&m!==void 0?m:!1,S=ED(t,this.props),b=ED(t,g),P=Xb(t,this.props),E=Xb(t,g);_.environment!==this.state.prevContext.environment||!Gb(P,E)||!Gb(S,b)?(this._cleanup(),zm.ENABLE_CONTAINERS_SUBSCRIBE_ON_COMMIT===!0?this._resolver=Um(_,i,t,g,O):this._resolver=Um(_,i,t,g,O,this._handleFragmentDataUpdate),this.setState(function(Q){return{prevContext:_,contextForChildren:_,relayProp:v._buildRelayProp(_),resolverGeneration:Q.resolverGeneration+1}})):this._hasFetched||this._resolver.setProps(g);var $=this._resolver.resolve();$!==this.state.data&&this.setState({data:$})},f.componentWillUnmount=function(){this._isUnmounted=!0,this._cleanup()},f.shouldComponentUpdate=function(g,v){if(v.data!==this.state.data||v.relayProp!==this.state.relayProp||v.resolverGeneration!==this.state.resolverGeneration)return!0;for(var m=Object.keys(g),_=0;_<m.length;_++){var O=m[_];if(O==="__relayContext"){if(v.prevContext.environment!==this.state.prevContext.environment)return!0}else if(!t.hasOwnProperty(O)&&!She(g[O],this.props[O]))return!0}return!1},f._buildRelayProp=function(g){return{hasMore:this._hasMore,isLoading:this._isLoading,loadMore:this._loadMore,refetchConnection:this._refetchConnection,environment:g.environment}},f._rerenderIfStoreHasChanged=function(){var g=this.state.data,v=this._resolver.resolve();g!==v&&this.setState({data:v})},f._subscribeToNewResolverAndRerenderIfStoreHasChanged=function(){var g=this.state.data,v=this._resolver.resolve();this._resolver.setCallback(this.props,this._handleFragmentDataUpdate),g!==v&&this.setState({data:v})},f._getConnectionData=function(){var g=this.props;g.componentRef;var v=(0,Wb.default)(g,uhe),m=(0,Vr.default)((0,Vr.default)({},v),this.state.data),_=o(m);if(_==null)return null;var O=xD.get(),S=O.EDGES,b=O.PAGE_INFO,P=O.HAS_NEXT_PAGE,E=O.HAS_PREV_PAGE,$=O.END_CURSOR,Q=O.START_CURSOR;typeof _!="object"&&$o(!1);var k=_[S],D=_[b];if(k==null||D==null)return null;Array.isArray(k)||$o(!1),typeof D!="object"&&$o(!1);var T=l===RD?D[P]:D[E],A=l===RD?D[$]:D[Q];return typeof T!="boolean"||k.length!==0&&typeof A>"u"?null:{cursor:A,edgeCount:k.length,hasMore:T}},f._getQueryFetcher=function(){return this._queryFetcher||(this._queryFetcher=new vhe),this._queryFetcher},f._canFetchPage=function(g){return!this._isUnmounted},f._fetchPage=function(g,v,m){var _=this,O=Yb(this.props.__relayContext),S=O.environment,b=this.props;b.componentRef,b.__relayContext,b.__rootIsQueryRenderer;var P=(0,Wb.default)(b,che),E=(0,Vr.default)((0,Vr.default)({},P),this.state.data),$,Q=Xb(t,P);$=_he(t,P),$=(0,Vr.default)((0,Vr.default)((0,Vr.default)({},Q),$),this._refetchVariables);var k=n.getVariables(E,{count:g.count,cursor:g.cursor},$);typeof k=="object"&&k!==null||$o(!1),k=(0,Vr.default)((0,Vr.default)({},k),this._refetchVariables),$=(0,Vr.default)((0,Vr.default)({},k),$);var D=m?{force:!!m.force}:void 0;D!=null&&(m==null?void 0:m.metadata)!=null&&(D.metadata=m==null?void 0:m.metadata);var T=yhe(n.query),A=Ohe(T,k,D),M=null;this._refetchSubscription&&this._refetchSubscription.unsubscribe(),this._hasFetched=!0;var L=function(B,V){var U=_._resolver.resolve();_._resolver.setVariables(s($,g.totalCount),A.request.node);var G=_._resolver.resolve();Gb(U,G)?V():_.setState({data:G,contextForChildren:{environment:_.props.__relayContext.environment}},V)},N=function(){_._refetchSubscription===M&&(_._refetchSubscription=null,_._isARequestInFlight=!1)};return this._isARequestInFlight=!0,M=this._getQueryFetcher().execute({environment:S,operation:A,preservePreviousReferences:!0}).mergeMap(function(j){return PD.create(function(B){L(j,function(){B.next(),B.complete()})})}).do({error:N,complete:N,unsubscribe:N}).subscribe(v||{}),this._refetchSubscription=this._isARequestInFlight?M:null,M},f._cleanup=function(){this._resolver.dispose(),this._refetchVariables=null,this._hasFetched=!1,this._refetchSubscription&&(this._refetchSubscription.unsubscribe(),this._refetchSubscription=null,this._isARequestInFlight=!1),this._queryFetcher&&this._queryFetcher.dispose()},f.render=function(){var g=this.props,v=g.componentRef;g.__relayContext,g.__rootIsQueryRenderer;var m=(0,Wb.default)(g,fhe);return Bb.createElement(ghe.Provider,{value:this.state.contextForChildren},Bb.createElement(e,(0,lhe.default)({},m,this.state.data,{ref:v,relay:this.state.relayProp})))},c}(Bb.Component),(0,wu.default)(r,"displayName",i),r}function Phe(e,t,n){return dhe(e,t,function(r,i){return xhe(r,i,n)})}var Ehe={createContainer:Phe},C1=nt.default,C7=C1(un),Rhe=C1(k1),khe=C1(jg),The=C1(ei),Che=Zs,Qy=bk,Qhe=vk,Ahe=Ha,Hb=R,wk=tn,Ihe=wk.createOperationDescriptor;wk.deepFreeze;var $k=wk.getRequest,da={},Dhe={rootIsQueryRenderer:!0},Mhe=function(e){(0,khe.default)(t,e);function t(r){var i;i=e.call(this,r)||this,(0,The.default)((0,Rhe.default)(i),"_handleDataChange",function(c){var f=c.error==null?null:c.error,p=c.snapshot==null?null:c.snapshot;i.setState(function(g){var v=g.requestCacheKey;return v&&delete da[v],p===g.snapshot&&f===g.error?null:{renderProps:VO(f,p,g.queryFetcher,g.retryCallbacks),snapshot:p,requestCacheKey:null}})});var a={handleDataChange:null,handleRetryAfterError:null},o,l;if(r.query){var s=r.query,u=$k(s);l=xk(u.params,r.variables),o=da[l]?da[l].queryFetcher:new Qy}else o=new Qy;return i._maybeHiddenOrFastRefresh=!1,i.state=(0,C7.default)({prevPropsEnvironment:r.environment,prevPropsVariables:r.variables,prevQuery:r.query,queryFetcher:o,retryCallbacks:a},Q7(r,o,a,l)),i}t.getDerivedStateFromProps=function(i,a){return a.prevQuery!==i.query||a.prevPropsEnvironment!==i.environment||!Ahe(a.prevPropsVariables,i.variables)?TD(i,a):null};var n=t.prototype;return n.componentDidMount=function(){var i=this;if(this._maybeHiddenOrFastRefresh===!0){this._maybeHiddenOrFastRefresh=!1,this.setState(function(u){var c=TD(i.props,u),f=c.requestCacheKey,p=c.queryFetcher;return f!=null&&da[f]!=null&&p.setOnDataChange(i._handleDataChange),c});return}var a=this.state,o=a.retryCallbacks,l=a.queryFetcher,s=a.requestCacheKey;s&&delete da[s],o.handleDataChange=this._handleDataChange,o.handleRetryAfterError=function(u){return i.setState(function(c){var f=c.requestCacheKey;return f&&delete da[f],{renderProps:iP(),requestCacheKey:null}})},this.props.query&&l.setOnDataChange(this._handleDataChange)},n.componentDidUpdate=function(i,a){var o=this.state,l=o.queryFetcher,s=o.requestCacheKey;s&&(delete da[s],delete this.state.requestCacheKey),this.props.query&&l!==a.queryFetcher&&l.setOnDataChange(this._handleDataChange)},n.componentWillUnmount=function(){this.state.queryFetcher.dispose(),this._maybeHiddenOrFastRefresh=!0},n.shouldComponentUpdate=function(i,a){return i.render!==this.props.render||a.renderProps!==this.state.renderProps},n.render=function(){var i=this.state,a=i.renderProps,o=i.relayContext;return Hb.createElement(Che.Provider,{value:o},Hb.createElement(Qhe.Provider,{value:Dhe},this.props.render(a)))},t}(Hb.Component);function iP(){return{error:null,props:null,retry:null}}function Lhe(){return{error:null,props:{},retry:null}}function VO(e,t,n,r){return{error:e||null,props:t?t.data:null,retry:function(a){var o=n.retry(a);o&&typeof r.handleDataChange=="function"?r.handleDataChange({snapshot:o}):e&&typeof r.handleRetryAfterError=="function"&&r.handleRetryAfterError(e)}}}function xk(e,t){return JSON.stringify({id:e.cacheID?e.cacheID:e.id,variables:t})}function TD(e,t){var n=e.query,r=t.queryFetcher.getSelectionReferences();t.queryFetcher.disposeRequest();var i;if(n){var a=$k(n),o=xk(a.params,e.variables);i=da[o]?da[o].queryFetcher:new Qy(r)}else i=new Qy(r);return(0,C7.default)({prevQuery:e.query,prevPropsEnvironment:e.environment,prevPropsVariables:e.variables,queryFetcher:i},Q7(e,i,t.retryCallbacks))}function Q7(e,t,n,r){var i=e.environment,a=e.query,o=e.variables,l=e.cacheConfig,s=i;if(a){var u=$k(a),c=Ihe(u,o,l),f={environment:s};if(typeof r=="string"&&da[r]){var p=da[r].snapshot;return p?{error:null,relayContext:f,renderProps:VO(null,p,t,n),snapshot:p,requestCacheKey:r}:{error:null,relayContext:f,renderProps:iP(),snapshot:null,requestCacheKey:r}}try{var g=t.lookupInStore(s,c,e.fetchPolicy),v=t.fetch({environment:s,onDataChange:null,operation:c}),m=v||g;return r=r||xk(u.params,e.variables),da[r]={queryFetcher:t,snapshot:m},m?{error:null,relayContext:f,renderProps:VO(null,m,t,n),snapshot:m,requestCacheKey:r}:{error:null,relayContext:f,renderProps:iP(),snapshot:null,requestCacheKey:r}}catch(O){return{error:O,relayContext:f,renderProps:VO(O,null,t,n),snapshot:null,requestCacheKey:r}}}else{t.dispose();var _={environment:s};return{error:null,relayContext:_,renderProps:Lhe(),requestCacheKey:null}}}var Fhe=Mhe,Dd=nt.default,Nhe=Dd(gk),zhe=Dd(qg),tf=Dd(un),CD=Dd(k1),Uhe=Dd(jg),Kb=Dd(ei),qhe=["componentRef","__relayContext","__rootIsQueryRenderer"],jhe=mk,Jb=k7,Vhe=T1,Zhe=Vhe.getContainerName,Whe=Zs,Xhe=bk,Yhe=Ok,ew=Yhe.assertRelayContext,QD=Ha,tw=R,xc=tn,Ghe=xc.Observable,AD=xc.createFragmentSpecResolver,Bhe=xc.createOperationDescriptor,ID=xc.getDataIDsFromObject,Hhe=xc.getRequest,Khe=xc.getVariablesFromObject,Jhe=xc.isScalarAndEqual;function epe(e,t,n){var r,i=Zhe(e);return r=function(a){(0,Uhe.default)(o,a);function o(s){var u,c;c=a.call(this,s)||this,(0,Kb.default)((0,CD.default)(c),"_handleFragmentDataUpdate",function(){var v=c.state.resolver;c.setState(function(m){return v===m.resolver?{data:m.resolver.resolve()}:null})}),(0,Kb.default)((0,CD.default)(c),"_refetch",function(v,m,_,O){if(c._isUnmounted)return{dispose:function(){}};var S=ew(c.props.__relayContext),b=S.environment,P=Jb(t,c.props),E=typeof v=="function"?v(c._getFragmentVariables()):v;E=(0,tf.default)((0,tf.default)({},P),E);var $=m?(0,tf.default)((0,tf.default)({},E),m):E,Q=O?{force:!!O.force}:void 0;Q!=null&&(O==null?void 0:O.metadata)!=null&&(Q.metadata=O==null?void 0:O.metadata);var k=typeof _=="function"?{next:_,error:_}:_||{},D=Hhe(n),T=Bhe(D,E,Q);c.state.localVariables=E,c._refetchSubscription&&c._refetchSubscription.unsubscribe();var A,M=c._getQueryFetcher().lookupInStore(b,T,O==null?void 0:O.fetchPolicy);return M!=null?(c.state.resolver.setVariables($,T.request.node),c.setState(function(L){return{data:L.resolver.resolve(),contextForChildren:{environment:c.props.__relayContext.environment}}},function(){k.next&&k.next(),k.complete&&k.complete()}),{dispose:function(){}}):(c._getQueryFetcher().execute({environment:b,operation:T,preservePreviousReferences:!0}).mergeMap(function(L){return c.state.resolver.setVariables($,T.request.node),Ghe.create(function(N){return c.setState(function(j){return{data:j.resolver.resolve(),contextForChildren:{environment:c.props.__relayContext.environment}}},function(){N.next(),N.complete()})})}).finally(function(){c._refetchSubscription===A&&(c._refetchSubscription=null)}).subscribe((0,tf.default)((0,tf.default)({},k),{},{start:function(N){c._refetchSubscription=A=N,k.start&&k.start(N)}})),{dispose:function(){A&&A.unsubscribe()}})});var f=ew(s.__relayContext),p=(u=s.__rootIsQueryRenderer)!==null&&u!==void 0?u:!1;c._refetchSubscription=null;var g=AD(f,i,t,s,p);return c.state={data:g.resolve(),localVariables:null,prevProps:s,prevPropsContext:f,contextForChildren:f,relayProp:DD(f.environment,c._refetch),resolver:g},c._isUnmounted=!1,c}var l=o.prototype;return l.componentDidMount=function(){this._isUnmounted=!1,this._subscribeToNewResolverAndRerenderIfStoreHasChanged()},l.componentDidUpdate=function(u,c){this.state.resolver!==c.resolver?(c.resolver.dispose(),this._queryFetcher&&this._queryFetcher.dispose(),this._refetchSubscription&&this._refetchSubscription.unsubscribe(),this._subscribeToNewResolverAndRerenderIfStoreHasChanged()):this._rerenderIfStoreHasChanged()},o.getDerivedStateFromProps=function(u,c){var f,p=c.prevProps,g=ew(u.__relayContext),v=(f=u.__rootIsQueryRenderer)!==null&&f!==void 0?f:!1,m=ID(t,p),_=ID(t,u),O=Jb(t,p),S=Jb(t,u),b=c.resolver;if(c.prevPropsContext.environment!==g.environment||!QD(O,S)||!QD(m,_))return b=AD(g,i,t,u,v),{data:b.resolve(),localVariables:null,prevProps:u,prevPropsContext:g,contextForChildren:g,relayProp:DD(g.environment,c.relayProp.refetch),resolver:b};c.localVariables||b.setProps(u);var P=b.resolve();return P!==c.data?{data:P,prevProps:u}:null},l.componentWillUnmount=function(){this._isUnmounted=!0,this.state.resolver.dispose(),this._queryFetcher&&this._queryFetcher.dispose(),this._refetchSubscription&&this._refetchSubscription.unsubscribe()},l.shouldComponentUpdate=function(u,c){if(c.data!==this.state.data||c.relayProp!==this.state.relayProp)return!0;for(var f=Object.keys(u),p=0;p<f.length;p++){var g=f[p];if(g==="__relayContext"){if(this.state.prevPropsContext.environment!==c.prevPropsContext.environment)return!0}else if(!t.hasOwnProperty(g)&&!Jhe(u[g],this.props[g]))return!0}return!1},l._rerenderIfStoreHasChanged=function(){var u=this.state,c=u.data,f=u.resolver,p=f.resolve();c!==p&&this.setState({data:p})},l._subscribeToNewResolverAndRerenderIfStoreHasChanged=function(){var u=this.state,c=u.data,f=u.resolver,p=f.resolve();f.setCallback(this.props,this._handleFragmentDataUpdate),c!==p&&this.setState({data:p})},l._getFragmentVariables=function(){return Khe(t,this.props)},l._getQueryFetcher=function(){return this._queryFetcher||(this._queryFetcher=new Xhe),this._queryFetcher},l.render=function(){var u=this.props,c=u.componentRef;u.__relayContext,u.__rootIsQueryRenderer;var f=(0,zhe.default)(u,qhe),p=this.state,g=p.relayProp,v=p.contextForChildren;return tw.createElement(Whe.Provider,{value:v},tw.createElement(e,(0,Nhe.default)({},f,this.state.data,{ref:c,relay:g})))},o}(tw.Component),(0,Kb.default)(r,"displayName",i),r}function DD(e,t){return{environment:e,refetch:t}}function tpe(e,t,n){return jhe(e,t,function(r,i){return epe(r,i,n)})}var npe={createContainer:tpe},rpe=R,ipe=rpe.createContext({wrapPrepareQueryResource:function(t){return t()}}),Q1=ipe,ape=Zs,ope=qe,lpe=R,spe=lpe.useContext;function upe(){var e=spe(ape);return e==null&&ope(!1),e.environment}var Yi=upe,cpe=Q1,fpe=Yi,dpe=R,A7=R,hpe=A7.useContext,ppe=A7.useEffect;function gpe(e){var t=e.entryPointReference,n=e.props,r=t.getComponent,i=t.queries,a=t.entryPoints,o=t.extraProps,l=t.rootModuleID,s=r(),u=hpe(cpe),c=fpe();return ppe(function(){c.__log({name:"entrypoint.root.consume",profilerContext:u,rootModuleID:l})},[c,u,l]),dpe.createElement(s,{entryPoints:a,extraProps:o,props:n,queries:i})}var vpe=gpe,mpe=nt.default,MD=mpe(un),Ope=qe,I7=R,Ws=tn,LD=Ws.__internal.fetchQueryDeduped,FD=Ws.Observable,ND=Ws.PreloadableQueryRegistry,zD=Ws.RelayFeatureFlags,UD=Ws.ReplaySubject,qD=Ws.createOperationDescriptor,ype=Ws.getRequest,_pe=Ws.getRequestIdentifier,jD=null,VD=100001;function Spe(){if(jD===null){var e,t;jD=(e=I7.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||e===void 0||(t=e.ReactCurrentDispatcher)===null||t===void 0?void 0:t.current}}function bpe(e,t,n,r,i){var a,o,l;(a=I7.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||a===void 0||(o=a.ReactCurrentDispatcher)===null||o===void 0||o.current,VD++;var s=(l=r==null?void 0:r.fetchPolicy)!==null&&l!==void 0?l:"store-or-network",u=(0,MD.default)((0,MD.default)({},r==null?void 0:r.networkCacheConfig),{},{force:!0}),c,f=!1,p=function(Z,F){return f=!0,e.executeWithSource({operation:Z,source:F})},g=new UD,v=FD.create(function(X){return g.subscribe(X)}),m,_=null,O=!1,S=function(Z){O=!0;var F,ue=new UD;if(zD.ENABLE_LOAD_QUERY_REQUEST_DEDUPING===!0){var ge="raw-network-request-"+_pe(Z,n);F=LD(e,ge,function(){var ce=e.getNetwork();return ce.execute(Z,n,u)})}else{var de=e.getNetwork();F=de.execute(Z,n,u)}var Qe=F.subscribe({error:function(ve){_=ve,ue.error(ve)},next:function(ve){ue.next(ve)},complete:function(){ue.complete()}}),Ae=Qe.unsubscribe;return m=Ae,FD.create(function(ce){var ve=ue.subscribe(ce);return function(){ve.unsubscribe(),m()}})},b,P=function(Z,F){zD.ENABLE_LOAD_QUERY_REQUEST_DEDUPING===!0&&(O=!0);var ue=LD(e,Z.request.identifier,F).subscribe({error:function(de){g.error(de)},next:function(de){g.next(de)},complete:function(){g.complete()}});b=ue.unsubscribe},E=function(Z){var F=qD(Z,n,u);if(c=e.retain(F),s!=="store-only"){var ue=s!=="store-or-network"||e.check(F).status!=="available";ue&&P(F,function(){var ge=S(Z.params),de=p(F,ge);return de})}},$,Q,k;if(t.kind==="PreloadableConcreteRequest"){var D=t;$=D.params;var T=$;k=T.id,k===null&&Ope(!1);var A=ND.get(k);if(A!=null)E(A);else{var M=s==="store-only"?null:S($),L=ND.onLoad(k,function(X){Q();var Z=qD(X,n,u);c=e.retain(Z),M!=null&&P(Z,function(){return p(Z,M)})});Q=L.dispose}}else{var N=t,j=ype(N);$=j.params,k=$.cacheID!=null?$.cacheID:$.id,E(j)}var B=!1,V=!1,U=!1,G=function(){V||(c&&c.dispose(),V=!0)},I=function(){U||(f?b&&b():m&&m(),Q&&Q(),U=!0)};return{kind:"PreloadedQuery",environment:e,environmentProviderOptions:i,dispose:function(){B||(G(),I(),B=!0)},releaseQuery:G,cancelNetworkRequest:I,fetchKey:VD,id:k,get isDisposed(){return B||V},get networkError(){return _},name:$.name,networkCacheConfig:u,fetchPolicy:s,source:O?v:void 0,variables:n}}var Pc={loadQuery:bpe,useTrackLoadQueryInRender:Spe},wpe=Pc,$pe=wpe.loadQuery;function D7(e,t,n){var r=null;t.root.getModuleIfRequired()==null&&(r=t.root.load());var i=t.getPreloadProps(n),a=i.queries,o=i.entryPoints,l=i.extraProps,s={},u={};if(a!=null){var c=Object.keys(a);c.forEach(function(g){var v=a[g],m=v.environmentProviderOptions,_=v.options,O=v.parameters,S=v.variables,b=e.getEnvironment(m);s[g]=$pe(b,O,S,{fetchPolicy:_==null?void 0:_.fetchPolicy,networkCacheConfig:_==null?void 0:_.networkCacheConfig,__nameForWarning:"loadEntryPoint"},m)})}if(o!=null){var f=Object.keys(o);f.forEach(function(g){var v=o[g];if(v!=null){var m=v.entryPoint,_=v.entryPointParams;u[g]=D7(e,m,_)}})}var p=!1;return{dispose:function(){p||(s!=null&&Object.values(s).forEach(function(v){var m=v.dispose;m()}),u!=null&&Object.values(u).forEach(function(v){var m=v.dispose;m()}),p=!0)},entryPoints:u,extraProps:l??null,getComponent:function(){var v=t.root.getModuleIfRequired();if(v==null){var m;throw r=(m=r)!==null&&m!==void 0?m:t.root.load(),r}var _=v.default!=null?v.default:v;return _},get isDisposed(){return p},queries:s,rootModuleID:t.root.getModuleId()}}var M7=D7,xpe=Zs,L7=R,Ppe=L7.useMemo;function Epe(e){var t=e.children,n=e.environment,r=e.getEnvironmentForActor,i=Ppe(function(){return{environment:n,getEnvironmentForActor:r}},[n,r]);return L7.createElement(xpe.Provider,{value:i},t)}var Rpe=Epe,F7=null;function kpe(e){F7=e}function Tpe(){return F7}var A1={inject:kpe,get:Tpe},Cpe=R,Qpe=Cpe.useMemo;function Ape(e){return Qpe(function(){return{current:e}},[])}var N7=Ape,Ipe=qe,Dpe=function(){function e(n){this._capacity=n,this._capacity>0||Ipe(!1),this._map=new Map}var t=e.prototype;return t.set=function(r,i){if(this._map.delete(r),this._map.set(r,i),this._map.size>this._capacity){var a=this._map.keys().next();a.done||this._map.delete(a.value)}},t.get=function(r){var i=this._map.get(r);return i!=null&&(this._map.delete(r),this._map.set(r,i)),i},t.has=function(r){return this._map.has(r)},t.delete=function(r){this._map.delete(r)},t.size=function(){return this._map.size},t.capacity=function(){return this._capacity-this._map.size},t.clear=function(){this._map.clear()},e}();function Mpe(e){return new Dpe(e)}var z7={create:Mpe},Lpe=nt.default,nw=Lpe(ei),Fpe=5*60*1e3,Npe=function(){function e(n){var r=this;(0,nw.default)(this,"_retainCount",0),(0,nw.default)(this,"_retainDisposable",null),(0,nw.default)(this,"_releaseTemporaryRetain",null),this._retain=function(i){return r._retainCount++,r._retainCount===1&&(r._retainDisposable=n(i)),{dispose:function(){r._retainCount=Math.max(0,r._retainCount-1),r._retainCount===0&&r._retainDisposable!=null&&(r._retainDisposable.dispose(),r._retainDisposable=null)}}}}var t=e.prototype;return t.temporaryRetain=function(r){var i=this,a;if(r.isServer())return{dispose:function(){}};var o=this._retain(r),l=null,s=function(){clearTimeout(l),l=null,i._releaseTemporaryRetain=null,o.dispose()};return l=setTimeout(s,Fpe),(a=this._releaseTemporaryRetain)===null||a===void 0||a.call(this),this._releaseTemporaryRetain=s,{dispose:function(){var c;(c=i._releaseTemporaryRetain)===null||c===void 0||c.call(i)}}},t.permanentRetain=function(r){var i=this._retain(r);return this.releaseTemporaryRetain(),i},t.releaseTemporaryRetain=function(){var r;(r=this._releaseTemporaryRetain)===null||r===void 0||r.call(this),this._releaseTemporaryRetain=null},t.getRetainCount=function(){return this._retainCount},e}(),U7=Npe,q7=nt.default,qm=q7(un),j7=q7(ei),zpe=z7,Upe=U7,qpe=qe,jpe=tn,Vpe=jpe.isPromise,Zpe=1e3,V7="store-or-network",Z7="store-and-network",Wpe=typeof WeakMap=="function";function Ay(e){return e.request.node.params.metadata.live!==void 0}function aP(e,t,n,r,i){var a=n??(Ay(t)?Z7:V7),o=r??e.UNSTABLE_getDefaultRenderPolicy(),l="".concat(a,"-").concat(o,"-").concat(t.request.identifier);return i!=null?"".concat(l,"-").concat(i):l}function ZD(e,t){var n={__id:e.fragment.dataID,__fragments:(0,j7.default)({},e.fragment.node.name,e.request.variables),__fragmentOwner:e.request};return{cacheIdentifier:t,fragmentNode:e.request.node.fragment,fragmentRef:n,operation:e}}var Xpe=2e5;function rw(e,t,n,r,i,a){var o=Ay(t),l=r,s=i,u=new Upe(function(f){var p=f.retain(t);return{dispose:function(){o&&s!=null&&s.unsubscribe(),p.dispose(),a(c)}}}),c={cacheIdentifier:e,id:Xpe++,processedPayloadsCount:0,operationAvailability:n,getValue:function(){return l},setValue:function(p){l=p},setNetworkSubscription:function(p){o&&s!=null&&s.unsubscribe(),s=p},temporaryRetain:function(p){return u.temporaryRetain(p)},permanentRetain:function(p){return u.permanentRetain(p)},releaseTemporaryRetain:function(){u.releaseTemporaryRetain()}};return c}var Ype=function(){function e(n){var r=this;(0,j7.default)(this,"_clearCacheEntry",function(i){r._cache.delete(i.cacheIdentifier)}),this._environment=n,this._cache=zpe.create(Zpe)}var t=e.prototype;return t.prepare=function(r,i,a,o,l,s,u){var c=aP(this._environment,r,a,o,s);return this.prepareWithIdentifier(c,r,i,a,o,l,u)},t.prepareWithIdentifier=function(r,i,a,o,l,s,u){var c=this._environment,f=o??(Ay(i)?Z7:V7),p=l??c.UNSTABLE_getDefaultRenderPolicy(),g=this._cache.get(r),v=null,m=g!=null;g==null&&(g=this._fetchAndSaveQuery(r,i,a,f,p,u,(0,qm.default)((0,qm.default)({},s),{},{unsubscribe:function(S){v!=null&&v.dispose();var b=s==null?void 0:s.unsubscribe;b&&b(S)}}))),v=g.temporaryRetain(c);var _=g.getValue();if(Vpe(_))throw c.__log({name:"suspense.query",fetchPolicy:f,isPromiseCached:m,operation:i,queryAvailability:g.operationAvailability,renderPolicy:p}),_;if(_ instanceof Error)throw _;return _},t.retain=function(r,i){var a=this._environment,o=r.cacheIdentifier,l=r.operation,s=this._getOrCreateCacheEntry(o,l,null,r,null),u=s.permanentRetain(a);return a.__log({name:"queryresource.retain",profilerContext:i,resourceID:s.id}),{dispose:function(){u.dispose()}}},t.releaseTemporaryRetain=function(r){var i=this._cache.get(r.cacheIdentifier);i!=null&&i.releaseTemporaryRetain()},t.TESTS_ONLY__getCacheEntry=function(r,i,a,o){var l=this._environment,s=aP(l,r,i,a,o);return this._cache.get(s)},t._getOrCreateCacheEntry=function(r,i,a,o,l){var s=this._cache.get(r);return s==null&&(s=rw(r,i,a,o,l,this._clearCacheEntry),this._cache.set(r,s)),s},t._fetchAndSaveQuery=function(r,i,a,o,l,s,u){var c=this,f=this._environment,p=f.check(i),g=p.status,v=g==="available",m=v||l==="partial"&&g!=="stale",_,O,S=function(){};switch(o){case"store-only":{_=!1,O=!0;break}case"store-or-network":{_=!v,O=m;break}case"store-and-network":{_=!0,O=m;break}case"network-only":default:{_=!0,O=!1;break}}if(O){var b=ZD(i,r),P=rw(r,i,p,b,null,this._clearCacheEntry);this._cache.set(r,P)}if(_){var E=ZD(i,r),$;a.subscribe({start:function(M){$=M;var L=c._cache.get(r);L&&L.setNetworkSubscription($);var N=u==null?void 0:u.start;if(N){var j=(0,qm.default)((0,qm.default)({},M),{},{unsubscribe:function(){Ay(i)&&M.unsubscribe()}});N(j)}},next:function(){var M=c._getOrCreateCacheEntry(r,i,p,E,$);M.processedPayloadsCount+=1,M.setValue(E),S();var L=u==null?void 0:u.next;if(L!=null){var N=f.lookup(i.fragment);L(N)}},error:function(M){var L=c._getOrCreateCacheEntry(r,i,p,M,$);L.processedPayloadsCount===0&&L.setValue(M),S(),$=null,L.setNetworkSubscription(null);var N=u==null?void 0:u.error;N&&N(M)},complete:function(){S(),$=null;var M=c._cache.get(r);M&&M.setNetworkSubscription(null);var L=u==null?void 0:u.complete;L&&L()},unsubscribe:u==null?void 0:u.unsubscribe});var Q=this._cache.get(r);if(!Q){var k=new Promise(function(A){S=A});k.displayName="Relay("+i.fragment.node.name+")",Q=rw(r,i,p,k,$,this._clearCacheEntry),this._cache.set(r,Q)}}else{var D=u==null?void 0:u.complete;D&&D()}var T=this._cache.get(r);return T==null&&qpe(!1),f.__log({name:"queryresource.fetch",resourceID:T.id,operation:i,profilerContext:s,fetchPolicy:o,renderPolicy:l,queryAvailability:p,shouldFetch:_}),T},e}();function W7(e){return new Ype(e)}var WD=Wpe?new WeakMap:new Map;function Gpe(e){var t=WD.get(e);if(t)return t;var n=W7(e);return WD.set(e,n),n}var Pk={createQueryResource:W7,getQueryResourceForEnvironment:Gpe,getQueryCacheIdentifier:aP},Ek=nt.default,jm=Ek(un),XD=Ek(ei),Vm=Ek(yc),Bpe=z7,Hpe=Pk,YD=Hpe.getQueryResourceForEnvironment,Kpe=U7,hf=qe,jo=tn,X7=jo.__internal,Jpe=X7.fetchQuery,ege=X7.getPromiseForActiveRequest,fo=jo.RelayFeatureFlags,tge=jo.createOperationDescriptor,nge=jo.getFragmentIdentifier,rge=jo.getPendingOperationsForFragment,ige=jo.getSelector,age=jo.getVariablesFromFragment,GD=jo.handlePotentialSnapshotErrors,iw=jo.isPromise,BD=jo.recycleNodesInto,oge=typeof WeakMap=="function",lge=1e6,HD=Object.freeze([]);function KD(e){return Array.isArray(e)?e.some(function(t){return t.isMissingData}):e.isMissingData}function sge(e){var t,n;return Array.isArray(e)?e.some(function(r){var i,a;return((i=(a=r.missingClientEdges)===null||a===void 0?void 0:a.length)!==null&&i!==void 0?i:0)>0}):((t=(n=e.missingClientEdges)===null||n===void 0?void 0:n.length)!==null&&t!==void 0?t:0)>0}function JD(e){return Array.isArray(e)?e.map(function(t){return t.missingLiveResolverFields}).filter(Boolean).flat():e.missingLiveResolverFields}function uge(e,t){Array.isArray(e)?e.forEach(t):t(e)}function gu(e,t,n){return Array.isArray(t)?{cacheKey:e,snapshot:t,data:t.map(function(r){return r.data}),isMissingData:KD(t),storeEpoch:n}:{cacheKey:e,snapshot:t,data:t.data,isMissingData:KD(t),storeEpoch:n}}var cge=function(){function e(n){(0,XD.default)(this,"_cache",new Map),(0,XD.default)(this,"_retainCounts",new Map),this._environment=n}var t=e.prototype;return t.get=function(r){var i,a;return(i=(a=this._cache.get(r))===null||a===void 0?void 0:a[0])!==null&&i!==void 0?i:void 0},t.recordQueryResults=function(r,i){var a=this,o=this._cache.get(r);if(o){var s=o[0],u=o[1];i.forEach(function(c){s.push(c)}),u.temporaryRetain(this._environment)}else{var l=new Kpe(function(){return a._retain(r)});this._cache.set(r,[i,l]),l.temporaryRetain(this._environment)}},t._retain=function(r){var i=this,a,o=((a=this._retainCounts.get(r))!==null&&a!==void 0?a:0)+1;return this._retainCounts.set(r,o),{dispose:function(){var s,u=((s=i._retainCounts.get(r))!==null&&s!==void 0?s:0)-1;u>0?i._retainCounts.set(r,u):(i._retainCounts.delete(r),i._cache.delete(r))}}},e}(),fge=function(){function e(n){this._environment=n,this._cache=Bpe.create(lge),fo.ENABLE_CLIENT_EDGES&&(this._clientEdgeQueryResultsCache=new cge(n))}var t=e.prototype;return t.read=function(r,i,a,o){return this.readWithIdentifier(r,i,nge(r,i),a,o)},t.readWithIdentifier=function(r,i,a,o,l){var s=this,u,c,f,p,g=this._environment;if(i==null)return{cacheKey:a,data:null,isMissingData:!1,snapshot:null,storeEpoch:0};var v=g.getStore().getEpoch();if((r==null||(u=r.metadata)===null||u===void 0?void 0:u.plural)===!0&&(Array.isArray(i)||hf(!1),i.length===0))return{cacheKey:a,data:HD,isMissingData:!1,snapshot:HD,storeEpoch:v};var m=this._cache.get(a);if(m!=null){var _;if(m.kind==="pending"&&iw(m.promise))throw g.__log({name:"suspense.fragment",data:m.result.data,fragment:r,isRelayHooks:!0,isMissingData:m.result.isMissingData,isPromiseCached:!0,pendingOperations:m.pendingOperations}),m.promise;if(m.kind==="done"&&m.result.snapshot&&!((_=JD(m.result.snapshot))!==null&&_!==void 0&&_.length))return this._throwOrLogErrorsInSnapshot(m.result.snapshot),m.result.isMissingData&&g.__log({name:"fragmentresource.missing_data",data:m.result.data,fragment:r,isRelayHooks:!0,cached:!0}),m.result}var O=ige(r,i);O==null&&hf(!1);var S=null,b=null;if(fo.ENABLE_RELAY_OPERATION_TRACKER_SUSPENSE&&m!=null&&m.kind==="missing"?(S=m.result,b=m.snapshot):(b=O.kind==="PluralReaderSelector"?O.selectors.map(function(j){return g.lookup(j)}):g.lookup(O),S=gu(a,b,v)),!S.isMissingData)return this._throwOrLogErrorsInSnapshot(b),this._cache.set(a,{kind:"done",result:S}),S;var P=null;if(fo.ENABLE_CLIENT_EDGES&&((c=r.metadata)===null||c===void 0?void 0:c.hasClientEdges)===!0&&sge(b)){P=[];var E=YD(this._environment),$=[];uge(b,function(j){var B;(B=j.missingClientEdges)===null||B===void 0||B.forEach(function(V){var U,G=V.request,I=V.clientEdgeDestinationID,X=s._performClientEdgeQuery(E,r,i,G,I),Z=X.queryResult,F=X.requestDescriptor;$.push(Z),(U=P)===null||U===void 0||U.push(F)})}),this._clientEdgeQueryResultsCache==null&&hf(!1),this._clientEdgeQueryResultsCache.recordQueryResults(a,$)}var Q=[];fo.ENABLE_CLIENT_EDGES&&P&&(Q=P.map(function(j){return ege(s._environment,j)}).filter(Boolean));var k=O.kind==="PluralReaderSelector"?O.selectors[0].owner:O.owner,D=this._getAndSavePromiseForFragmentRequestInFlight(a,r,k,S),T=D==null?void 0:D.promise,A=(f=(p=JD(b))===null||p===void 0?void 0:p.map(function(j){var B=j.liveStateID,V=g.getStore();return V.getLiveResolverPromise(B)}))!==null&&f!==void 0?f:[];if(Q.length||A.length||iw(T)){var M,L;g.__log({name:"suspense.fragment",data:S.data,fragment:r,isRelayHooks:!0,isPromiseCached:!1,isMissingData:S.isMissingData,pendingOperations:[].concat((0,Vm.default)((M=D==null?void 0:D.pendingOperations)!==null&&M!==void 0?M:[]),(0,Vm.default)((L=P)!==null&&L!==void 0?L:[]))});var N=[];if(Q.length>0&&(N=N.concat(Q)),A.length>0&&(N=N.concat(A)),N.length>0)throw T&&N.push(T),Promise.all(N);if(T)throw T}return fo.ENABLE_RELAY_OPERATION_TRACKER_SUSPENSE&&S.isMissingData&&this._cache.set(a,{kind:"done",result:S}),this._throwOrLogErrorsInSnapshot(b),g.__log({name:"fragmentresource.missing_data",data:S.data,fragment:r,isRelayHooks:!0,cached:!1}),gu(a,b,v)},t._performClientEdgeQuery=function(r,i,a,o,l){var s=age(i,a),u=(0,jm.default)((0,jm.default)({},s),{},{id:l}),c=tge(o,u,{}),f=Jpe(this._environment,c),p=r.prepare(c,f);return{requestDescriptor:c.request,queryResult:p}},t._throwOrLogErrorsInSnapshot=function(r){var i=this;Array.isArray(r)?r.forEach(function(a){GD(i._environment,a.missingRequiredFields,a.relayResolverErrors,a.errorResponseFields)}):GD(this._environment,r.missingRequiredFields,r.relayResolverErrors,r.errorResponseFields)},t.readSpec=function(r,i,a){var o={};for(var l in r)o[l]=this.read(r[l],i[l],a,l);return o},t.subscribe=function(r,i){var a=this,o=this._environment,l=r.cacheKey,s=r.snapshot;if(!s)return{dispose:function(){}};var u=this.checkMissedUpdates(r),c=u[0],f=u[1];c&&i();var p=[];if(Array.isArray(s)?(Array.isArray(f)||hf(!1),f.forEach(function(O,S){p.push(o.subscribe(O,function(b){var P=o.getStore().getEpoch();a._updatePluralSnapshot(l,f,b,S,P),i()}))})):(f!=null&&!Array.isArray(f)||hf(!1),p.push(o.subscribe(f,function(O){var S=o.getStore().getEpoch(),b=gu(l,O,S);fo.ENABLE_RELAY_OPERATION_TRACKER_SUSPENSE&&b.isMissingData?a._cache.set(l,{kind:"missing",result:b,snapshot:O}):a._cache.set(l,{kind:"done",result:gu(l,O,S)}),i()}))),fo.ENABLE_CLIENT_EDGES){var g,v,m=(g=(v=this._clientEdgeQueryResultsCache)===null||v===void 0?void 0:v.get(l))!==null&&g!==void 0?g:void 0;if(m!=null&&m.length){var _=YD(this._environment);m.forEach(function(O){p.push(_.retain(O))})}}return{dispose:function(){p.forEach(function(S){return S.dispose()}),a._cache.delete(l)}}},t.subscribeSpec=function(r,i){var a=this,o=Object.keys(r).map(function(l){return a.subscribe(r[l],i)});return{dispose:function(){o.forEach(function(s){s.dispose()})}}},t.checkMissedUpdates=function(r){var i=this._environment,a=r.snapshot;if(!a)return[!1,null];var o=null;if(o=i.getStore().getEpoch(),r.storeEpoch===o)return[!1,r.snapshot];var l=r.cacheKey;if(Array.isArray(a)){var s=!1,u=[];if(a.forEach(function(O,S){var b=i.lookup(O.selector),P=O.data,E=b.data,$=BD(P,E);$!==P&&(b=(0,jm.default)((0,jm.default)({},b),{},{data:$}),s=!0),u[S]=b}),s){var c=gu(l,u,o);fo.ENABLE_RELAY_OPERATION_TRACKER_SUSPENSE&&c.isMissingData?this._cache.set(l,{kind:"missing",result:c,snapshot:u}):this._cache.set(l,{kind:"done",result:c})}return[s,u]}var f=i.lookup(a.selector),p=a.data,g=f.data,v=BD(p,g),m={data:v,isMissingData:f.isMissingData,missingClientEdges:f.missingClientEdges,missingLiveResolverFields:f.missingLiveResolverFields,seenRecords:f.seenRecords,selector:f.selector,missingRequiredFields:f.missingRequiredFields,relayResolverErrors:f.relayResolverErrors,errorResponseFields:f.errorResponseFields};if(v!==p){var _=gu(l,m,o);fo.ENABLE_RELAY_OPERATION_TRACKER_SUSPENSE&&_.isMissingData?this._cache.set(l,{kind:"missing",result:_,snapshot:m}):this._cache.set(l,{kind:"done",result:_})}return[v!==p,m]},t.checkMissedUpdatesSpec=function(r){var i=this;return Object.keys(r).some(function(a){return i.checkMissedUpdates(r[a])[0]})},t._getAndSavePromiseForFragmentRequestInFlight=function(r,i,a,o){var l=this,s=rge(this._environment,i,a);if(s==null)return null;var u=s.promise,c=s.pendingOperations,f=u.then(function(){l._cache.delete(r)}).catch(function(p){l._cache.delete(r)});return f.displayName=u.displayName,this._cache.set(r,{kind:"pending",pendingOperations:c,promise:f,result:o}),{promise:f,pendingOperations:c}},t._updatePluralSnapshot=function(r,i,a,o,l){var s,u=this._cache.get(r);if(iw(u)){eM(a.selector.node.name);return}var c=u==null||(s=u.result)===null||s===void 0?void 0:s.snapshot;if(c&&!Array.isArray(c)){eM(a.selector.node.name);return}var f=c?(0,Vm.default)(c):(0,Vm.default)(i);f[o]=a;var p=gu(r,f,l);fo.ENABLE_RELAY_OPERATION_TRACKER_SUSPENSE&&p.isMissingData?this._cache.set(r,{kind:"missing",result:p,snapshot:f}):this._cache.set(r,{kind:"done",result:p})},e}();function eM(e){hf(!1)}function Y7(e){return new fge(e)}var tM=oge?new WeakMap:new Map;function dge(e){var t=tM.get(e);if(t)return t;var n=Y7(e);return tM.set(e,n),n}var G7={createFragmentResource:Y7,getFragmentResourceForEnvironment:dge},hge=Yi,nM=N7,pge=G7,gge=pge.getFragmentResourceForEnvironment,B7=R,vge=B7.useEffect,mge=B7.useState,H7=tn,Oge=H7.RelayFeatureFlags,yge=H7.getFragmentIdentifier;function _ge(e,t,n){var r=hge(),i=gge(r),a=nM(!1),o=mge(0),l=o[1],s=yge(e,t),u=i.readWithIdentifier(e,t,s,n),c=nM(!0);function f(){c.current=!0;var v=i.checkMissedUpdates(u)[0];v&&g()}function p(){c.current=!1}function g(){a.current===!1||c.current===!1||l(function(v){return v+1})}return vge(function(){a.current=!0;var v=i.subscribe(u,g);return function(){a.current=!1,v.dispose()}},[r,s]),Oge.LOG_MISSING_RECORDS_IN_PROD&&t!=null&&(u.data===void 0||Array.isArray(u.data)&&u.data.length>0&&u.data.every(function(v){return v===void 0})),{data:u.data,disableStoreUpdates:p,enableStoreUpdates:f}}var Rk=_ge,rM=N7,K7=R,aw=K7.useCallback,Sge=K7.useEffect;function bge(){var e=rM(null),t=rM(!1),n=aw(function(){e.current!=null&&(e.current.unsubscribe(),e.current=null),t.current=!1},[]),r=aw(function(a){e.current=a,t.current=!0},[]),i=aw(function(){e.current=null,t.current=!1},[]);return Sge(function(){return n},[n]),{isFetchingRef:t,startFetch:r,disposeFetch:n,completeFetch:i}}var J7=bge,wge=A1,$ge=Rk,xge=Q1,eq=Pk,Pge=eq.getQueryCacheIdentifier,Ege=eq.getQueryResourceForEnvironment,Rge=J7,kge=Yi,I1=R,Tge=I1.useContext,ow=I1.useEffect,Cge=I1.useState,Qge=I1.useRef;function Age(e){var t=e.query,n=e.componentDisplayName,r=e.fetchObservable,i=e.fetchPolicy,a=e.fetchKey,o=e.renderPolicy,l=kge(),s=Tge(xge),u=Ege(l),c=Cge(0),f=c[0],p=c[1],g=Rge(),v=g.startFetch,m=g.completeFetch,_="".concat(f,"-").concat(a??""),O=Pge(l,t,i,o,_),S=s.wrapPrepareQueryResource(function(){return u.prepareWithIdentifier(O,t,r,i,o,{start:v,complete:m,error:m},s)}),b=Qge(!1);ow(function(){return function(){b.current=!0}},[]),ow(function(){if(b.current===!0){b.current=!1,p(function(k){return k+1});return}var Q=u.retain(S,s);return function(){Q.dispose()}},[l,O]),ow(function(){u.releaseTemporaryRetain(S)});var P=S.fragmentNode,E=S.fragmentRef,$=Ige(P,E,n);return $}function Ige(e,t,n){var r=wge.get();if(r&&r.useFragment__internal)return r.useFragment__internal(e,t,n);var i=$ge(e,t,n),a=i.data;return a}var tq=Age,Dge=Ha,Mge=R,Lge=Mge.useState;function Fge(e){var t=Lge(e),n=t[0],r=t[1];return Dge(e,n)?n:(r(e),e)}var Nge=Fge,iM=Nge,zge=R,nq=tn,Uge=nq.createOperationDescriptor,qge=nq.getRequest,jge=zge.useMemo;function Vge(e,t,n){var r=iM(t),i=iM(n||{});return jge(function(){return Uge(qge(e),r,i)},[e,r,i])}var rq=Vge,Zge=Pc,Wge=Zge.useTrackLoadQueryInRender,Xge=tq,Yge=rq,Gge=Yi,Bge=tn,Hge=Bge.__internal.fetchQuery;function Kge(e,t,n){Wge();var r=Gge(),i=Yge(e,t,n&&n.networkCacheConfig?n.networkCacheConfig:{force:!0}),a=Xge({componentDisplayName:"useLazyLoadQuery()",fetchKey:n==null?void 0:n.fetchKey,fetchObservable:Hge(r,i),fetchPolicy:n==null?void 0:n.fetchPolicy,query:i,renderPolicy:n==null?void 0:n.UNSTABLE_renderPolicy});return a}var iq=Kge,Jge=nt.default,aM=Jge(un),eve=iq;function tve(e,t,n){var r=e;return eve(r,t,(0,aM.default)((0,aM.default)({},n),{},{fetchPolicy:"store-only"}))}var nve=tve,aq=R,rve=aq.useEffect,ive=aq.useRef;function ave(){var e=ive(!0);return rve(function(){return e.current=!0,function(){e.current=!1}},[]),e}var Wg=ave,ove=nt.default,oM=ove(er),lve=M7,sve=Pc,uve=sve.useTrackLoadQueryInRender,cve=Wg,D1=R,lM=D1.useCallback,lw=D1.useEffect,sM=D1.useRef,uM=D1.useState,fve={kind:"NullEntryPointReference"};function dve(e,t,n){var r,i,a,o;uve();var l=(r=n==null||(i=n.TEST_ONLY__initialEntryPointData)===null||i===void 0?void 0:i.entryPointReference)!==null&&r!==void 0?r:fve,s=(a=n==null||(o=n.TEST_ONLY__initialEntryPointData)===null||o===void 0?void 0:o.entryPointParams)!==null&&a!==void 0?a:null,u=cve(),c=sM(new Set([l])),f=uM(l),p=f[0],g=f[1],v=uM(s),m=v[0],_=v[1],O=lM(function(){if(u.current){var P={kind:"NullEntryPointReference"};c.current.add(P),g(P)}},[g,u]),S=lM(function(P){if(u.current){var E=lve(e,t,P);c.current.add(E),g(E),_(P)}},[e,t,g,u]),b=sM(!1);return lw(function(){return function(){b.current=!0}},[]),lw(function(){if(b.current===!0){b.current=!1,p.kind!=="NullEntryPointReference"&&m!=null&&S(m);return}var P=c.current;if(u.current){var E=(0,oM.default)(P),$;try{for(E.s();!($=E.n()).done;){var Q=$.value;if(Q===p)break;P.delete(Q),Q.kind!=="NullEntryPointReference"&&Q.dispose()}}catch(k){E.e(k)}finally{E.f()}}},[p,m,S,u]),lw(function(){return function(){var E=(0,oM.default)(c.current),$;try{for(E.s();!($=E.n()).done;){var Q=$.value;Q.kind!=="NullEntryPointReference"&&Q.dispose()}}catch(k){E.e(k)}finally{E.f()}}},[]),[p.kind==="NullEntryPointReference"?null:p,S,O]}var hve=dve,pve=A1,gve=Rk,vve=Pc,mve=vve.useTrackLoadQueryInRender,Ove=R;Ove.useDebugValue;var yve=tn,_ve=yve.getFragment;function Sve(e,t){mve();var n=_ve(e),r=gve(n,t,"useFragment()"),i=r.data;return i}function bve(e,t){var n=pve.get();return n?n.useFragment(e,t):Sve(e,t)}var wve=bve,$ve=nt.default,cM=$ve(un),xve=Wg,Pve=Yi,M1=R,Eve=tn,Rve=Eve.commitMutation,kve=M1.useState,Tve=M1.useEffect,sw=M1.useRef,fM=M1.useCallback;function Cve(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Rve,n=Pve(),r=xve(),i=sw(n),a=sw(e),o=sw(new Set),l=kve(!1),s=l[0],u=l[1],c=fM(function(p){i.current===n&&a.current===e&&(o.current.delete(p),r.current&&u(o.current.size>0))},[n,r,e]);Tve(function(){(i.current!==n||a.current!==e)&&(o.current=new Set,r.current&&u(!1),i.current=n,a.current=e)},[n,r,e]);var f=fM(function(p){r.current&&u(!0);var g=t(n,(0,cM.default)((0,cM.default)({},p),{},{mutation:e,onCompleted:function(m,_){var O;c(g),(O=p.onCompleted)===null||O===void 0||O.call(p,m,_)},onError:function(m){var _;c(g),(_=p.onError)===null||_===void 0||_.call(p,m)},onUnsubscribe:function(){var m;c(g),(m=p.onUnsubscribe)===null||m===void 0||m.call(p)},onNext:function(){var m;(m=p.onNext)===null||m===void 0||m.call(p)}}));return o.current.add(g),g},[c,t,n,r,e]);return[f,s]}var Qve=Cve,Ave=nt.default,dM=Ave(er),oq=Pc,Ive=oq.loadQuery,Dve=oq.useTrackLoadQueryInRender,Mve=Wg,Lve=Yi,L1=R,hM=L1.useCallback,uw=L1.useEffect,pM=L1.useRef,gM=L1.useState,Fve=tn,Nve=Fve.getRequest,cw={kind:"NullQueryReference"};function vM(e){if(e.kind==="PreloadableConcreteRequest")return e.params.metadata.live!==void 0;var t=Nve(e);return t.params.metadata.live!==void 0}function zve(e,t){var n=t??cw,r=Lve();Dve();var i=Mve(),a=pM(new Set([n])),o=gM(function(){return n}),l=o[0],s=o[1],u=gM(function(){return n}),c=u[0],f=u[1];n!==c&&(a.current.add(n),f(n),s(n));var p=hM(function(){i.current&&(a.current.add(cw),s(cw))},[i]),g=hM(function(m,_){var O=_!=null&&_.hasOwnProperty("__environment")?{fetchPolicy:_.fetchPolicy,networkCacheConfig:_.networkCacheConfig,__nameForWarning:_.__nameForWarning}:_;if(i.current){var S,b=Ive((S=_==null?void 0:_.__environment)!==null&&S!==void 0?S:r,e,m,O);a.current.add(b),s(b)}},[r,e,s,i]),v=pM(!1);return uw(function(){return function(){v.current=!0}},[]),uw(function(){if(v.current===!0){v.current=!1,l.kind!=="NullQueryReference"&&g(l.variables,{fetchPolicy:l.fetchPolicy,networkCacheConfig:l.networkCacheConfig});return}var m=a.current;if(i.current){var _=(0,dM.default)(m),O;try{for(_.s();!(O=_.n()).done;){var S=O.value;if(S===l)break;m.delete(S),S.kind!=="NullQueryReference"&&(vM(e)?S.dispose&&S.dispose():S.releaseQuery&&S.releaseQuery())}}catch(b){_.e(b)}finally{_.f()}}},[l,i,g,e]),uw(function(){return function(){var _=(0,dM.default)(a.current),O;try{for(_.s();!(O=_.n()).done;){var S=O.value;S.kind!=="NullQueryReference"&&(vM(e)?S.dispose&&S.dispose():S.releaseQuery&&S.releaseQuery())}}catch(b){_.e(b)}finally{_.f()}}},[e]),[l.kind==="NullQueryReference"?null:l,g,p]}var lq=zve,Uve=nt.default,kp=Uve(un),qve=Q1,jve=Pk,Vve=jve.getQueryResourceForEnvironment,Zve=Wg,Wve=lq,Xve=Yi,Yve=G7,Gve=Yve.getFragmentResourceForEnvironment,Bve=Rk,Hve=qe,kk=R,Kve=kk.useCallback,Jve=kk.useContext,eme=kk.useReducer,Md=tn,tme=Md.__internal.fetchQuery,nme=Md.createOperationDescriptor,rme=Md.getFragmentIdentifier,mM=Md.getRefetchMetadata,ime=Md.getSelector,ame=Md.getValueAtPath;function ome(e,t){switch(t.type){case"refetch":{var n;return(0,kp.default)((0,kp.default)({},e),{},{fetchPolicy:t.fetchPolicy,mirroredEnvironment:(n=t.refetchEnvironment)!==null&&n!==void 0?n:e.mirroredEnvironment,onComplete:t.onComplete,refetchEnvironment:t.refetchEnvironment,refetchQuery:t.refetchQuery,renderPolicy:t.renderPolicy})}case"reset":return{fetchPolicy:void 0,mirroredEnvironment:t.environment,mirroredFragmentIdentifier:t.fragmentIdentifier,onComplete:void 0,refetchQuery:null,renderPolicy:void 0};default:throw t.type,new Error("useRefetchableFragmentNode: Unexpected action type")}}function lme(e,t,n){var r=Xve(),i=mM(e,n),a=i.refetchableRequest,o=i.fragmentRefPathInResponse,l=rme(e,t),s=eme(ome,{fetchPolicy:void 0,mirroredEnvironment:r,mirroredFragmentIdentifier:l,onComplete:void 0,refetchEnvironment:null,refetchQuery:null,renderPolicy:void 0}),u=s[0],c=s[1],f=u.fetchPolicy,p=u.mirroredEnvironment,g=u.mirroredFragmentIdentifier,v=u.onComplete,m=u.refetchEnvironment,_=u.refetchQuery,O=u.renderPolicy,S=m??r,b=Vve(S),P=Gve(S),E=Jve(qve),$=S!==p||l!==g,Q=Wve(a),k=Q[0],D=Q[1],T=Q[2],A=t,M=mM(e,n),L=M.identifierInfo;if($)c({type:"reset",environment:S,fragmentIdentifier:l}),T();else if(_!=null&&k!=null){var N=function(ge){v&&v(ge??null)},j=k.source!=null?k.source:tme(S,_),B=E.wrapPrepareQueryResource(function(){return b.prepare(_,j,f,O,{error:N,complete:function(){N()}},k.fetchKey,E)}),V=P.read(B.fragmentNode,B.fragmentRef,n).data;V==null&&Hve(!1);var U=ame(V,o);A=U}var G=Bve(e,A,n),I=G.data,X=G.disableStoreUpdates,Z=G.enableStoreUpdates,F=sme(n,c,T,I,l,e,o,L,D,t,a);return{fragmentData:I,fragmentRef:A,refetch:F,disableStoreUpdates:X,enableStoreUpdates:Z}}function sme(e,t,n,r,i,a,o,l,s,u,c){var f=Zve(),p=(l==null?void 0:l.identifierField)!=null&&r!=null&&typeof r=="object"?r[l.identifierField]:null;return Kve(function(g,v){if(f.current!==!0)return{dispose:function(){}};var m=v==null?void 0:v.__environment,_=v==null?void 0:v.fetchPolicy,O=v==null?void 0:v.UNSTABLE_renderPolicy,S=v==null?void 0:v.onComplete,b=ime(a,u),P,E;if(b==null)P={},E={};else if(b.kind==="PluralReaderSelector"){var $,Q,k,D;P=($=(Q=b.selectors[0])===null||Q===void 0?void 0:Q.owner.variables)!==null&&$!==void 0?$:{},E=(k=(D=b.selectors[0])===null||D===void 0?void 0:D.variables)!==null&&k!==void 0?k:{}}else P=b.owner.variables,E=b.variables;var T=(0,kp.default)((0,kp.default)((0,kp.default)({},P),E),g);l!=null&&!g.hasOwnProperty(l.identifierQueryVariableName)&&(T[l.identifierQueryVariableName]=p);var A=nme(c,T,{force:!0});return s(A.request.variables,{fetchPolicy:_,__environment:m,__nameForWarning:"refetch"}),t({type:"refetch",fetchPolicy:_,onComplete:S,refetchEnvironment:m,refetchQuery:A,renderPolicy:O}),{dispose:n}},[i,t,n,p,s])}var sq=lme,ume=Yi,cme=qe,Tk=R,uq=tn,fme=uq.__internal.getObservableForActiveRequest,dme=uq.getSelector,hme=Tk.useEffect,pme=Tk.useState,gme=Tk.useMemo;function vme(e,t){var n=ume(),r=gme(function(){var l=dme(e,t);return l==null?null:(l.kind!=="SingularReaderSelector"&&cme(!1),fme(n,l.owner))},[n,e,t]),i=pme(r!=null),a=i[0],o=i[1];return hme(function(){var l;if(o(r!=null),r!=null){var s=function(){o(!1)};l=r.subscribe({complete:s,error:s})}return function(){l&&l.unsubscribe()}},[r]),a}var mme=vme,Ome=nt.default,Mh=Ome(un),yme=J7,_me=Wg,Sme=mme,bme=Yi,up=qe,Ck=R,wme=Ck.useCallback,$me=Ck.useEffect,OM=Ck.useState,Ec=tn,xme=Ec.__internal.fetchQuery,Pme=Ec.ConnectionInterface,Eme=Ec.createOperationDescriptor,Rme=Ec.getPaginationVariables,kme=Ec.getRefetchMetadata,Tme=Ec.getSelector,Cme=Ec.getValueAtPath;function Qme(e){var t=e.direction,n=e.fragmentNode,r=e.fragmentRef,i=e.fragmentIdentifier,a=e.fragmentData,o=e.connectionPathInFragmentData,l=e.paginationRequest,s=e.paginationMetadata,u=e.componentDisplayName,c=e.observer,f=e.onReset,p=bme(),g=yme(),v=g.isFetchingRef,m=g.startFetch,_=g.disposeFetch,O=g.completeFetch,S=kme(n,u),b=S.identifierInfo,P=(b==null?void 0:b.identifierField)!=null&&a!=null&&typeof a=="object"?a[b.identifierField]:null,E=_me(),$=OM(p),Q=$[0],k=$[1],D=OM(i),T=D[0],A=D[1],M=Sme(n,r),L=p!==Q||i!==T;L&&(_(),f(),k(p),A(i));var N=Ame(t,n,a,o),j=N.cursor,B=N.hasMore;$me(function(){return function(){_()}},[_]);var V=wme(function(U,G){var I=G==null?void 0:G.onComplete;if(E.current!==!0)return{dispose:function(){}};var X=Tme(n,r);if(v.current===!0||a==null||M)return I&&I(null),{dispose:function(){}};X!=null&&X.kind!=="PluralReaderSelector"||up(!1);var Z=X.owner.variables,F=X.variables,ue=G==null?void 0:G.UNSTABLE_extraVariables,ge=(0,Mh.default)((0,Mh.default)({},Z),F),de=Rme(t,U,j,ge,(0,Mh.default)({},ue),s);b!=null&&(de[b.identifierQueryVariableName]=P);var Qe=Eme(l,de,{force:!0});return xme(p,Qe).subscribe((0,Mh.default)((0,Mh.default)({},c),{},{start:function(ce){m(ce),c.start&&c.start(ce)},complete:function(){O(),c.complete&&c.complete(),I&&I(null)},error:function(ce){O(),c.error&&c.error(ce),I&&I(ce)}})),{dispose:_}},[p,P,t,j,m,_,O,v,M,a,n.name,r,u]);return[V,B,_]}function Ame(e,t,n,r){var i,a,o=Pme.get(),l=o.EDGES,s=o.PAGE_INFO,u=o.HAS_NEXT_PAGE,c=o.HAS_PREV_PAGE,f=o.END_CURSOR,p=o.START_CURSOR,g=Cme(n,r);if(g==null)return{cursor:null,hasMore:!1};typeof g!="object"&&up(!1);var v=g[l],m=g[s];if(v==null||m==null)return{cursor:null,hasMore:!1};Array.isArray(v)||up(!1),typeof m!="object"&&up(!1);var _=e==="forward"?(i=m[f])!==null&&i!==void 0?i:null:(a=m[p])!==null&&a!==void 0?a:null;_===null||typeof _=="string"||up(!1);var O;return e==="forward"?O=_!=null&&m[u]===!0:O=_!=null&&m[c]===!0,{cursor:_,hasMore:O}}var Ime=Qme,Dme=nt.default,Iy=Dme(un),Mme=A1,Lme=sq,Fme=Ime,Qk=R,Nme=Qk.useCallback;Qk.useDebugValue;var zme=Qk.useState,Ak=tn,Ume=Ak.getFragment,qme=Ak.getFragmentIdentifier,jme=Ak.getPaginationMetadata;function Vme(e,t){var n=Ume(e),r="usePaginationFragment()",i=jme(n,r),a=i.connectionPathInFragmentData,o=i.paginationRequest,l=i.paginationMetadata,s=Lme(n,t,r),u=s.fragmentData,c=s.fragmentRef,f=s.refetch,p=qme(n,c),g=yM({componentDisplayName:r,connectionPathInFragmentData:a,direction:"backward",fragmentData:u,fragmentIdentifier:p,fragmentNode:n,fragmentRef:c,paginationMetadata:l,paginationRequest:o}),v=g[0],m=g[1],_=g[2],O=g[3],S=yM({componentDisplayName:r,connectionPathInFragmentData:a,direction:"forward",fragmentData:u,fragmentIdentifier:p,fragmentNode:n,fragmentRef:c,paginationMetadata:l,paginationRequest:o}),b=S[0],P=S[1],E=S[2],$=S[3],Q=Nme(function(k,D){return $(),O(),f(k,(0,Iy.default)((0,Iy.default)({},D),{},{__environment:void 0}))},[$,O,f]);return{data:u,loadNext:b,loadPrevious:v,hasNext:P,hasPrevious:m,isLoadingNext:E,isLoadingPrevious:_,refetch:Q}}function yM(e){var t=zme(!1),n=t[0],r=t[1],i={start:function(){return r(!0)},complete:function(){return r(!1)},error:function(){return r(!1)}},a=function(){return r(!1)},o=Fme((0,Iy.default)((0,Iy.default)({},e),{},{observer:i,onReset:a})),l=o[0],s=o[1],u=o[2];return[l,s,n,u]}function Zme(e,t){var n=Mme.get();return n?n.usePaginationFragment(e,t):Vme(e,t)}var Wme=Zme,Xme=Pc,Yme=Xme.useTrackLoadQueryInRender,Gme=tq,Bme=rq,Hme=Yi,Kme=qe,Jme=R;Jme.useDebugValue;var eOe=tn,cq=eOe.__internal,tOe=cq.fetchQueryDeduped,nOe=cq.fetchQuery;function rOe(e,t,n){Yme();var r=Hme(),i=t.fetchKey,a=t.fetchPolicy,o=t.source,l=t.variables,s=t.networkCacheConfig,u=Bme(e,l,s),c;if(t.kind==="PreloadedQuery_DEPRECATED")u.request.node.params.name!==t.name&&Kme(!1),c={componentDisplayName:"usePreloadedQuery()",fetchKey:i,fetchObservable:tOe(r,u.request.identifier,function(){return r===t.environment&&o!=null?r.executeWithSource({operation:u,source:o}):r.execute({operation:u})}),fetchPolicy:a,query:u,renderPolicy:n==null?void 0:n.UNSTABLE_renderPolicy};else{var f=nOe(r,u),p;o!=null&&r===t.environment?p=o.ifEmpty(f):(t.environment,p=f),c={componentDisplayName:"usePreloadedQuery()",fetchObservable:p,fetchKey:i,fetchPolicy:a,query:u,renderPolicy:n==null?void 0:n.UNSTABLE_renderPolicy}}var g=Gme(c);return g}var iOe=rOe,aOe=A1,oOe=sq,lOe=R;lOe.useDebugValue;var sOe=tn,uOe=sOe.getFragment;function cOe(e,t){var n=uOe(e),r=oOe(n,t,"useRefetchableFragment()"),i=r.fragmentData,a=r.refetch;return[i,a]}function fOe(e,t){var n=aOe.get();return n?n.useRefetchableFragment(e,t):cOe(e,t)}var dOe=fOe,hOe=Yi,fq=R,pOe=fq.useEffect,gOe=fq.useRef;function vOe(e,t){var n=hOe(),r=gOe(null),i=Array.from(e).sort().join("");return pOe(function(){var a=n.getStore(),o=a.lookupInvalidationState(e),l=a.subscribeToInvalidationState(o,t);return r.current=l,function(){return l.dispose()}},[i,t,n]),{dispose:function(){r.current!=null&&r.current.dispose()}}}var mOe=vOe,OOe=Yi,yOe=R,_Oe=yOe.useEffect,SOe=tn,bOe=SOe.requestSubscription;function wOe(e,t){var n=t??bOe,r=OOe();_Oe(function(){var i=n(r,e),a=i.dispose;return a},[r,e,n])}var $Oe=wOe,xOe=Zs,POe=zde,EOe=Hde,ROe=Ehe,kOe=Fhe,TOe=npe,COe=vpe,QOe=M7,AOe=Pc,IOe=AOe.loadQuery,DOe=Q1,MOe=Rpe,LOe=nve,FOe=hve,NOe=wve,zOe=iq,UOe=Qve,qOe=Wme,jOe=iOe,VOe=lq,ZOe=dOe,WOe=Yi,XOe=mOe,YOe=$Oe,Da=tn,GOe={ConnectionHandler:Da.ConnectionHandler,QueryRenderer:kOe,LocalQueryRenderer:EOe,MutationTypes:Da.MutationTypes,RangeOperations:Da.RangeOperations,ReactRelayContext:xOe,applyOptimisticMutation:Da.applyOptimisticMutation,commitLocalUpdate:Da.commitLocalUpdate,commitMutation:Da.commitMutation,createFragmentContainer:POe.createContainer,createPaginationContainer:ROe.createContainer,createRefetchContainer:TOe.createContainer,fetchQuery_DEPRECATED:Da.fetchQuery_DEPRECATED,graphql:Da.graphql,readInlineData:Da.readInlineData,requestSubscription:Da.requestSubscription,EntryPointContainer:COe,RelayEnvironmentProvider:MOe,ProfilerContext:DOe,fetchQuery:Da.fetchQuery,loadQuery:IOe,loadEntryPoint:QOe,useClientQuery:LOe,useFragment:NOe,useLazyLoadQuery:zOe,useEntryPointLoader:FOe,useQueryLoader:VOe,useMutation:UOe,usePaginationFragment:qOe,usePreloadedQuery:jOe,useRefetchableFragment:ZOe,useRelayEnvironment:WOe,useSubscribeToInvalidationState:XOe,useSubscription:YOe},RWe=GOe,kWe=function(t,n){var r=arguments;if(n==null||!Dg.call(n,"css"))return R.createElement.apply(void 0,r);var i=r.length,a=new Array(i);a[0]=XE,a[1]=WE(t,n);for(var o=2;o<i;o++)a[o]=r[o];return R.createElement.apply(null,a)},TWe=aN(function(e,t){var n=e.styles,r=ZE([n],void 0,R.useContext(iy)),i=R.useRef();return AQ(function(){var a=t.key+"-global",o=new t.sheet.constructor({key:a,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),l=!1,s=document.querySelector('style[data-emotion="'+a+" "+r.name+'"]');return t.sheet.tags.length&&(o.before=t.sheet.tags[0]),s!==null&&(l=!0,s.setAttribute("data-emotion",a),o.hydrate([s])),i.current=[o,l],function(){o.flush()}},[t]),AQ(function(){var a=i.current,o=a[0],l=a[1];if(l){a[1]=!1;return}if(r.next!==void 0&&tN(t,r.next,!0),o.tags.length){var s=o.tags[o.tags.length-1].nextElementSibling;o.before=s,o.flush()}t.insert("",r,o,!1)},[t,r.name]),null});function BOe(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return ZE(t)}var CWe=function(){var t=BOe.apply(void 0,arguments),n="animation-"+t.name;return{name:n,styles:"@keyframes "+n+"{"+t.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}};const qt=typeof document<"u"?pe.useLayoutEffect:()=>{};function pr(e){const t=R.useRef(null);return qt(()=>{t.current=e},[e]),R.useCallback((...n)=>{const r=t.current;return r==null?void 0:r(...n)},[])}function HOe(e){let[t,n]=R.useState(e),r=R.useRef(null),i=pr(()=>{if(!r.current)return;let o=r.current.next();if(o.done){r.current=null;return}t===o.value?i():n(o.value)});qt(()=>{r.current&&i()});let a=pr(o=>{r.current=o(t),i()});return[t,a]}const Dy={prefix:String(Math.round(Math.random()*1e10)),current:0},dq=pe.createContext(Dy),KOe=pe.createContext(!1);let JOe=!!(typeof window<"u"&&window.document&&window.document.createElement),fw=new WeakMap;function eye(e=!1){let t=R.useContext(dq),n=R.useRef(null);if(n.current===null&&!e){var r,i;let a=(i=pe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||i===void 0||(r=i.ReactCurrentOwner)===null||r===void 0?void 0:r.current;if(a){let o=fw.get(a);o==null?fw.set(a,{id:t.current,state:a.memoizedState}):a.memoizedState!==o.state&&(t.current=o.id,fw.delete(a))}n.current=++t.current}return n.current}function tye(e){let t=R.useContext(dq);t===Dy&&!JOe&&console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let n=eye(!!e),r=`react-aria${t.prefix}`;return e||`${r}-${n}`}function nye(e){let t=pe.useId(),[n]=R.useState(Ik()),r=n?"react-aria":`react-aria${Dy.prefix}`;return e||`${r}-${t}`}const rye=typeof pe.useId=="function"?nye:tye;function iye(){return!1}function aye(){return!0}function oye(e){return()=>{}}function Ik(){return typeof pe.useSyncExternalStore=="function"?pe.useSyncExternalStore(oye,iye,aye):R.useContext(KOe)}let lye=!!(typeof window<"u"&&window.document&&window.document.createElement),My=new Map;function $a(e){let[t,n]=R.useState(e),r=R.useRef(null),i=rye(t),a=R.useCallback(o=>{r.current=o},[]);return lye&&My.set(i,a),qt(()=>{let o=i;return()=>{My.delete(o)}},[i]),R.useEffect(()=>{let o=r.current;o&&(r.current=null,n(o))}),i}function sye(e,t){if(e===t)return e;let n=My.get(e);if(n)return n(t),t;let r=My.get(t);return r?(r(e),e):t}function Rs(e=[]){let t=$a(),[n,r]=HOe(t),i=R.useCallback(()=>{r(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,r]);return qt(i,[t,i,...e]),n}function oc(...e){return(...t)=>{for(let n of e)typeof n=="function"&&n(...t)}}const ln=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},Oa=e=>e&&"window"in e&&e.window===e?e:ln(e).defaultView||window;function hq(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=hq(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function pq(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=hq(e))&&(r&&(r+=" "),r+=t);return r}function mt(...e){let t={...e[0]};for(let n=1;n<e.length;n++){let r=e[n];for(let i in r){let a=t[i],o=r[i];typeof a=="function"&&typeof o=="function"&&i[0]==="o"&&i[1]==="n"&&i.charCodeAt(2)>=65&&i.charCodeAt(2)<=90?t[i]=oc(a,o):(i==="className"||i==="UNSAFE_className")&&typeof a=="string"&&typeof o=="string"?t[i]=pq(a,o):i==="id"&&a&&o?t.id=sye(a,o):t[i]=o!==void 0?o:a}}return t}const uye=new Set(["id"]),cye=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),fye=new Set(["href","hrefLang","target","rel","download","ping","referrerPolicy"]),dye=/^(data-.*)$/;function Fr(e,t={}){let{labelable:n,isLink:r,propNames:i}=t,a={};for(const o in e)Object.prototype.hasOwnProperty.call(e,o)&&(uye.has(o)||n&&cye.has(o)||r&&fye.has(o)||i!=null&&i.has(o)||dye.test(o))&&(a[o]=e[o]);return a}function Ro(e){if(hye())e.focus({preventScroll:!0});else{let t=pye(e);e.focus(),gye(t)}}let Zm=null;function hye(){if(Zm==null){Zm=!1;try{document.createElement("div").focus({get preventScroll(){return Zm=!0,!0}})}catch{}}return Zm}function pye(e){let t=e.parentNode,n=[],r=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==r;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&n.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return r instanceof HTMLElement&&n.push({element:r,scrollTop:r.scrollTop,scrollLeft:r.scrollLeft}),n}function gye(e){for(let{element:t,scrollTop:n,scrollLeft:r}of e)t.scrollTop=n,t.scrollLeft=r}function F1(e){var t;return typeof window>"u"||window.navigator==null?!1:((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands.some(n=>e.test(n.brand)))||e.test(window.navigator.userAgent)}function Dk(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function Is(){return Dk(/^Mac/i)}function vye(){return Dk(/^iPhone/i)}function gq(){return Dk(/^iPad/i)||Is()&&navigator.maxTouchPoints>1}function N1(){return vye()||gq()}function mye(){return Is()||N1()}function Mk(){return F1(/AppleWebKit/i)&&!Oye()}function Oye(){return F1(/Chrome/i)}function vq(){return F1(/Android/i)}function yye(){return F1(/Firefox/i)}const _ye=R.createContext({isNative:!0,open:wye,useHref:e=>e});function Xg(){return R.useContext(_ye)}function Sye(e,t){let n=e.getAttribute("target");return(!n||n==="_self")&&e.origin===location.origin&&!e.hasAttribute("download")&&!t.metaKey&&!t.ctrlKey&&!t.altKey&&!t.shiftKey}function lc(e,t,n=!0){var r,i;let{metaKey:a,ctrlKey:o,altKey:l,shiftKey:s}=t;yye()&&(!((i=window.event)===null||i===void 0||(r=i.type)===null||r===void 0)&&r.startsWith("key"))&&e.target==="_blank"&&(Is()?a=!0:o=!0);let u=Mk()&&Is()&&!gq()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:a,ctrlKey:o,altKey:l,shiftKey:s}):new MouseEvent("click",{metaKey:a,ctrlKey:o,altKey:l,shiftKey:s,bubbles:!0,cancelable:!0});lc.isOpening=n,Ro(e),e.dispatchEvent(u),lc.isOpening=!1}lc.isOpening=!1;function bye(e,t){if(e instanceof HTMLAnchorElement)t(e);else if(e.hasAttribute("data-href")){let n=document.createElement("a");n.href=e.getAttribute("data-href"),e.hasAttribute("data-target")&&(n.target=e.getAttribute("data-target")),e.hasAttribute("data-rel")&&(n.rel=e.getAttribute("data-rel")),e.hasAttribute("data-download")&&(n.download=e.getAttribute("data-download")),e.hasAttribute("data-ping")&&(n.ping=e.getAttribute("data-ping")),e.hasAttribute("data-referrer-policy")&&(n.referrerPolicy=e.getAttribute("data-referrer-policy")),e.appendChild(n),t(n),e.removeChild(n)}}function wye(e,t){bye(e,n=>lc(n,t))}function Lk(e){let t=Xg();return{href:e!=null&&e.href?t.useHref(e==null?void 0:e.href):void 0,target:e==null?void 0:e.target,rel:e==null?void 0:e.rel,download:e==null?void 0:e.download,ping:e==null?void 0:e.ping,referrerPolicy:e==null?void 0:e.referrerPolicy}}let pf=new Map,oP=new Set;function _M(){if(typeof window>"u")return;function e(r){return"propertyName"in r}let t=r=>{if(!e(r)||!r.target)return;let i=pf.get(r.target);i||(i=new Set,pf.set(r.target,i),r.target.addEventListener("transitioncancel",n,{once:!0})),i.add(r.propertyName)},n=r=>{if(!e(r)||!r.target)return;let i=pf.get(r.target);if(i&&(i.delete(r.propertyName),i.size===0&&(r.target.removeEventListener("transitioncancel",n),pf.delete(r.target)),pf.size===0)){for(let a of oP)a();oP.clear()}};document.body.addEventListener("transitionrun",t),document.body.addEventListener("transitionend",n)}typeof document<"u"&&(document.readyState!=="loading"?_M():document.addEventListener("DOMContentLoaded",_M));function mq(e){requestAnimationFrame(()=>{pf.size===0?e():oP.add(e)})}function Yg(){let e=R.useRef(new Map),t=R.useCallback((i,a,o,l)=>{let s=l!=null&&l.once?(...u)=>{e.current.delete(o),o(...u)}:o;e.current.set(o,{type:a,eventTarget:i,fn:s,options:l}),i.addEventListener(a,o,l)},[]),n=R.useCallback((i,a,o,l)=>{var s;let u=((s=e.current.get(o))===null||s===void 0?void 0:s.fn)||o;i.removeEventListener(a,u,l),e.current.delete(o)},[]),r=R.useCallback(()=>{e.current.forEach((i,a)=>{n(i.eventTarget,i.type,a,i.options)})},[n]);return R.useEffect(()=>r,[r]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:r}}function Oq(e,t){let{id:n,"aria-label":r,"aria-labelledby":i}=e;return n=$a(n),i&&r?i=[...new Set([n,...i.trim().split(/\s+/)])].join(" "):i&&(i=i.trim().split(/\s+/).join(" ")),!r&&!i&&t&&(r=t),{id:n,"aria-label":r,"aria-labelledby":i}}function yq(e){const t=R.useRef(null);return R.useMemo(()=>({get current(){return t.current},set current(n){t.current=n,typeof e=="function"?e(n):e&&(e.current=n)}}),[e])}function $ye(){return typeof window.ResizeObserver<"u"}function _q(e){const{ref:t,onResize:n}=e;R.useEffect(()=>{let r=t==null?void 0:t.current;if(r)if($ye()){const i=new window.ResizeObserver(a=>{a.length&&n()});return i.observe(r),()=>{r&&i.unobserve(r)}}else return window.addEventListener("resize",n,!1),()=>{window.removeEventListener("resize",n,!1)}},[n,t])}function Fk(e,t){qt(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref&&(e.ref.current=null)}})}function fg(e,t){let n=window.getComputedStyle(e),r=/(auto|scroll)/.test(n.overflow+n.overflowX+n.overflowY);return r&&t&&(r=e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth),r}function Sq(e,t){let n=e;for(fg(n,t)&&(n=n.parentElement);n&&!fg(n,t);)n=n.parentElement;return n||document.scrollingElement||document.documentElement}function xye(e,t){const n=[];for(;e&&e!==document.documentElement;)fg(e,t)&&n.push(e),e=e.parentElement;return n}let Pye=0;const dw=new Map;function Eye(e){let[t,n]=R.useState();return qt(()=>{if(!e)return;let r=dw.get(e);if(r)n(r.element.id);else{let i=`react-aria-description-${Pye++}`;n(i);let a=document.createElement("div");a.id=i,a.style.display="none",a.textContent=e,document.body.appendChild(a),r={refCount:0,element:a},dw.set(e,r)}return r.refCount++,()=>{r&&--r.refCount===0&&(r.element.remove(),dw.delete(e))}},[e]),{"aria-describedby":e?t:void 0}}function Rye(e,t,n,r){let i=pr(n),a=n==null;R.useEffect(()=>{if(a||!e.current)return;let o=e.current;return o.addEventListener(t,i,r),()=>{o.removeEventListener(t,i,r)}},[e,t,r,a,i])}function bq(e,t){let n=SM(e,t,"left"),r=SM(e,t,"top"),i=t.offsetWidth,a=t.offsetHeight,o=e.scrollLeft,l=e.scrollTop,{borderTopWidth:s,borderLeftWidth:u}=getComputedStyle(e),c=e.scrollLeft+parseInt(u,10),f=e.scrollTop+parseInt(s,10),p=c+e.clientWidth,g=f+e.clientHeight;n<=o?o=n-parseInt(u,10):n+i>p&&(o+=n+i-p),r<=f?l=r-parseInt(s,10):r+a>g&&(l+=r+a-g),e.scrollLeft=o,e.scrollTop=l}function SM(e,t,n){const r=n==="left"?"offsetLeft":"offsetTop";let i=0;for(;t.offsetParent&&(i+=t[r],t.offsetParent!==e);){if(t.offsetParent.contains(e)){i-=e[r];break}t=t.offsetParent}return i}function bM(e,t){if(document.contains(e)){let o=document.scrollingElement||document.documentElement;if(window.getComputedStyle(o).overflow==="hidden"){let s=xye(e);for(let u of s)bq(u,e)}else{var n;let{left:s,top:u}=e.getBoundingClientRect();e==null||(n=e.scrollIntoView)===null||n===void 0||n.call(e,{block:"nearest"});let{left:c,top:f}=e.getBoundingClientRect();if(Math.abs(s-c)>1||Math.abs(u-f)>1){var r,i,a;t==null||(i=t.containingElement)===null||i===void 0||(r=i.scrollIntoView)===null||r===void 0||r.call(i,{block:"center",inline:"center"}),(a=e.scrollIntoView)===null||a===void 0||a.call(e,{block:"nearest"})}}}}function lP(e){return e.mozInputSource===0&&e.isTrusted?!0:vq()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function kye(e){return!vq()&&e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function Gg(e,t,n){let r=R.useRef(t),i=pr(()=>{n&&n(r.current)});R.useEffect(()=>{var a;let o=e==null||(a=e.current)===null||a===void 0?void 0:a.form;return o==null||o.addEventListener("reset",i),()=>{o==null||o.removeEventListener("reset",i)}},[e,i])}function Xs(e,t,n){let[r,i]=R.useState(e||t),a=R.useRef(e!==void 0),o=e!==void 0;R.useEffect(()=>{let u=a.current;u!==o&&console.warn(`WARN: A component changed from ${u?"controlled":"uncontrolled"} to ${o?"controlled":"uncontrolled"}.`),a.current=o},[o]);let l=o?e:r,s=R.useCallback((u,...c)=>{let f=(p,...g)=>{n&&(Object.is(l,p)||n(p,...g)),o||(l=p)};typeof u=="function"?(console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),i((g,...v)=>{let m=u(o?l:g,...v);return f(m,...c),o?g:m})):(o||i(u),f(u,...c))},[o,l,n]);return[l,s]}function sc(e,t=-1/0,n=1/0){return Math.min(Math.max(e,t),n)}function Wm(e,t){let n=e,r=t.toString(),i=r.indexOf("."),a=i>=0?r.length-i:0;if(a>0){let o=Math.pow(10,a);n=Math.round(n*o)/o}return n}function Lh(e,t,n,r){t=Number(t),n=Number(n);let i=(e-(isNaN(t)?0:t))%r,a=Wm(Math.abs(i)*2>=r?e+Math.sign(i)*(r-Math.abs(i)):e-i,r);return isNaN(t)?!isNaN(n)&&a>n&&(a=Math.floor(Wm(n/r,r))*r):a<t?a=t:!isNaN(n)&&a>n&&(a=t+Math.floor(Wm((n-t)/r,r))*r),a=Wm(a,r),a}const Ff={top:"top",bottom:"top",left:"left",right:"left"},Ly={top:"bottom",bottom:"top",left:"right",right:"left"},Tye={top:"left",left:"top"},sP={top:"height",left:"width"},wq={width:"totalWidth",height:"totalHeight"},Xm={};let fi=typeof document<"u"&&window.visualViewport;function wM(e){let t=0,n=0,r=0,i=0,a=0,o=0,l={},s=(fi==null?void 0:fi.scale)>1;if(e.tagName==="BODY"){let f=document.documentElement;r=f.clientWidth,i=f.clientHeight;var u;t=(u=fi==null?void 0:fi.width)!==null&&u!==void 0?u:r;var c;n=(c=fi==null?void 0:fi.height)!==null&&c!==void 0?c:i,l.top=f.scrollTop||e.scrollTop,l.left=f.scrollLeft||e.scrollLeft,fi&&(a=fi.offsetTop,o=fi.offsetLeft)}else({width:t,height:n,top:a,left:o}=Kf(e)),l.top=e.scrollTop,l.left=e.scrollLeft,r=t,i=n;return Mk()&&(e.tagName==="BODY"||e.tagName==="HTML")&&s&&(l.top=0,l.left=0,a=fi.pageTop,o=fi.pageLeft),{width:t,height:n,totalWidth:r,totalHeight:i,scroll:l,top:a,left:o}}function Cye(e){return{top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}}function $M(e,t,n,r,i,a,o){let l=i.scroll[e],s=r[sP[e]],u=r.scroll[Ff[e]]+a,c=s+r.scroll[Ff[e]]-a,f=t-l+o[e]-r[Ff[e]],p=t-l+n+o[e]-r[Ff[e]];return f<u?u-f:p>c?Math.max(c-p,u-f):0}function Qye(e){let t=window.getComputedStyle(e);return{top:parseInt(t.marginTop,10)||0,bottom:parseInt(t.marginBottom,10)||0,left:parseInt(t.marginLeft,10)||0,right:parseInt(t.marginRight,10)||0}}function xM(e){if(Xm[e])return Xm[e];let[t,n]=e.split(" "),r=Ff[t]||"right",i=Tye[r];Ff[n]||(n="center");let a=sP[r],o=sP[i];return Xm[e]={placement:t,crossPlacement:n,axis:r,crossAxis:i,size:a,crossSize:o},Xm[e]}function hw(e,t,n,r,i,a,o,l,s,u){let{placement:c,crossPlacement:f,axis:p,crossAxis:g,size:v,crossSize:m}=r,_={};_[g]=e[g],f==="center"?_[g]+=(e[m]-n[m])/2:f!==g&&(_[g]+=e[m]-n[m]),_[g]+=a;const O=e[g]-n[m]+s+u,S=e[g]+e[m]-s-u;if(_[g]=sc(_[g],O,S),c===p){const b=l?o[v]:t[wq[v]];_[Ly[p]]=Math.floor(b-e[p]+i)}else _[p]=Math.floor(e[p]+e[v]+i);return _}function Aye(e,t,n,r,i,a,o,l){const s=r?n.height:t[wq.height];let u=e.top!=null?n.top+e.top:n.top+(s-e.bottom-o),c=l!=="top"?Math.max(0,t.height+t.top+t.scroll.top-u-(i.top+i.bottom+a)):Math.max(0,u+o-(t.top+t.scroll.top)-(i.top+i.bottom+a));return Math.min(t.height-a*2,c)}function PM(e,t,n,r,i,a){let{placement:o,axis:l,size:s}=a;return o===l?Math.max(0,n[l]-e[l]-e.scroll[l]+t[l]-r[l]-r[Ly[l]]-i):Math.max(0,e[s]+e[l]+e.scroll[l]-t[l]-n[l]-n[s]-r[l]-r[Ly[l]]-i)}function Iye(e,t,n,r,i,a,o,l,s,u,c,f,p,g,v,m){let _=xM(e),{size:O,crossAxis:S,crossSize:b,placement:P,crossPlacement:E}=_,$=hw(t,l,n,_,c,f,u,p,v,m),Q=c,k=PM(l,u,t,i,a+c,_);if(o&&r[O]>k){let G=xM(`${Ly[P]} ${E}`),I=hw(t,l,n,G,c,f,u,p,v,m);PM(l,u,t,i,a+c,G)>k&&(_=G,$=I,Q=c)}let D="bottom";_.axis==="top"?_.placement==="top"?D="top":_.placement==="bottom"&&(D="bottom"):_.crossAxis==="top"&&(_.crossPlacement==="top"?D="bottom":_.crossPlacement==="bottom"&&(D="top"));let T=$M(S,$[S],n[b],l,s,a,u);$[S]+=T;let A=Aye($,l,u,p,i,a,n.height,D);g&&g<A&&(A=g),n.height=Math.min(n.height,A),$=hw(t,l,n,_,Q,f,u,p,v,m),T=$M(S,$[S],n[b],l,s,a,u),$[S]+=T;let M={},L=t[S]+.5*t[b]-$[S];const N=v/2+m,j=n[b]-v/2-m,B=t[S]-$[S]+v/2,V=t[S]+t[b]-$[S]-v/2,U=sc(L,B,V);return M[S]=sc(U,N,j),{position:$,maxHeight:A,arrowOffsetLeft:M.left,arrowOffsetTop:M.top,placement:_.placement}}function Dye(e){let{placement:t,targetNode:n,overlayNode:r,scrollNode:i,padding:a,shouldFlip:o,boundaryElement:l,offset:s,crossOffset:u,maxHeight:c,arrowSize:f=0,arrowBoundaryOffset:p=0}=e,g=r instanceof HTMLElement?Mye(r):document.documentElement,v=g===document.documentElement;const m=window.getComputedStyle(g).position;let _=!!m&&m!=="static",O=v?Kf(n):EM(n,g);if(!v){let{marginTop:k,marginLeft:D}=window.getComputedStyle(n);O.top+=parseInt(k,10)||0,O.left+=parseInt(D,10)||0}let S=Kf(r),b=Qye(r);S.width+=b.left+b.right,S.height+=b.top+b.bottom;let P=Cye(i),E=wM(l),$=wM(g),Q=l.tagName==="BODY"?Kf(g):EM(g,l);return g.tagName==="HTML"&&l.tagName==="BODY"&&($.scroll.top=0,$.scroll.left=0),Iye(t,O,S,P,b,a,o,E,$,Q,s,u,_,c,f,p)}function Kf(e){let{top:t,left:n,width:r,height:i}=e.getBoundingClientRect(),{scrollTop:a,scrollLeft:o,clientTop:l,clientLeft:s}=document.documentElement;return{top:t+a-l,left:n+o-s,width:r,height:i}}function EM(e,t){let n=window.getComputedStyle(e),r;if(n.position==="fixed"){let{top:i,left:a,width:o,height:l}=e.getBoundingClientRect();r={top:i,left:a,width:o,height:l}}else{r=Kf(e);let i=Kf(t),a=window.getComputedStyle(t);i.top+=(parseInt(a.borderTopWidth,10)||0)-t.scrollTop,i.left+=(parseInt(a.borderLeftWidth,10)||0)-t.scrollLeft,r.top-=i.top,r.left-=i.left}return r.top-=parseInt(n.marginTop,10)||0,r.left-=parseInt(n.marginLeft,10)||0,r}function Mye(e){let t=e.offsetParent;if(t&&t===document.body&&window.getComputedStyle(t).position==="static"&&!RM(t)&&(t=document.documentElement),t==null)for(t=e.parentElement;t&&!RM(t);)t=t.parentElement;return t||document.documentElement}function RM(e){let t=window.getComputedStyle(e);return t.transform!=="none"||/transform|perspective/.test(t.willChange)||t.filter!=="none"||t.contain==="paint"||"backdropFilter"in t&&t.backdropFilter!=="none"||"WebkitBackdropFilter"in t&&t.WebkitBackdropFilter!=="none"}const $q=new WeakMap;function Lye(e){let{triggerRef:t,isOpen:n,onClose:r}=e;R.useEffect(()=>{if(!n||r===null)return;let i=a=>{let o=a.target;if(!t.current||o instanceof Node&&!o.contains(t.current))return;let l=r||$q.get(t.current);l&&l()};return window.addEventListener("scroll",i,!0),()=>{window.removeEventListener("scroll",i,!0)}},[n,r,t])}const Fye=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),Nye=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function zye(e){if(Intl.Locale){let n=new Intl.Locale(e).maximize(),r=typeof n.getTextInfo=="function"?n.getTextInfo():n.textInfo;if(r)return r.direction==="rtl";if(n.script)return Fye.has(n.script)}let t=e.split("-")[0];return Nye.has(t)}const Uye=Symbol.for("react-aria.i18n.locale");function xq(){let e=typeof window<"u"&&window[Uye]||typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:zye(e)?"rtl":"ltr"}}let uP=xq(),cp=new Set;function kM(){uP=xq();for(let e of cp)e(uP)}function qye(){let e=Ik(),[t,n]=R.useState(uP);return R.useEffect(()=>(cp.size===0&&window.addEventListener("languagechange",kM),cp.add(n),()=>{cp.delete(n),cp.size===0&&window.removeEventListener("languagechange",kM)}),[]),e?{locale:"en-US",direction:"ltr"}:t}const jye=pe.createContext(null);function Vo(){let e=qye();return R.useContext(jye)||e}const Vye=Symbol.for("react-aria.i18n.locale"),Zye=Symbol.for("react-aria.i18n.strings");let nf;class z1{getStringForLocale(t,n){let i=this.getStringsForLocale(n)[t];if(!i)throw new Error(`Could not find intl message ${t} in ${n} locale`);return i}getStringsForLocale(t){let n=this.strings[t];return n||(n=Wye(t,this.strings,this.defaultLocale),this.strings[t]=n),n}static getGlobalDictionaryForPackage(t){if(typeof window>"u")return null;let n=window[Vye];if(nf===void 0){let i=window[Zye];if(!i)return null;nf={};for(let a in i)nf[a]=new z1({[n]:i[a]},n)}let r=nf==null?void 0:nf[t];if(!r)throw new Error(`Strings for package "${t}" were not included by LocalizedStringProvider. Please add it to the list passed to createLocalizedStringDictionary.`);return r}constructor(t,n="en-US"){this.strings=Object.fromEntries(Object.entries(t).filter(([,r])=>r)),this.defaultLocale=n}}function Wye(e,t,n="en-US"){if(t[e])return t[e];let r=Xye(e);if(t[r])return t[r];for(let i in t)if(i.startsWith(r+"-"))return t[i];return t[n]}function Xye(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}const TM=new Map,CM=new Map;class Yye{format(t,n){let r=this.strings.getStringForLocale(t,this.locale);return typeof r=="function"?r(n,this):r}plural(t,n,r="cardinal"){let i=n["="+t];if(i)return typeof i=="function"?i():i;let a=this.locale+":"+r,o=TM.get(a);o||(o=new Intl.PluralRules(this.locale,{type:r}),TM.set(a,o));let l=o.select(t);return i=n[l]||n.other,typeof i=="function"?i():i}number(t){let n=CM.get(this.locale);return n||(n=new Intl.NumberFormat(this.locale),CM.set(this.locale,n)),n.format(t)}select(t,n){let r=t[n]||t.other;return typeof r=="function"?r():r}constructor(t,n){this.locale=t,this.strings=n}}const QM=new WeakMap;function Gye(e){let t=QM.get(e);return t||(t=new z1(e),QM.set(e,t)),t}function Bye(e,t){return t&&z1.getGlobalDictionaryForPackage(t)||Gye(e)}function Nk(e,t){let{locale:n}=Vo(),r=Bye(e,t);return R.useMemo(()=>new Yye(n,r),[n,r])}function Hye(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Kye(e,t,n){Hye(e,t),t.set(e,n)}let pw=new Map,cP=!1;try{cP=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let Fy=!1;try{Fy=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const Pq={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class Jye{format(t){let n="";if(!cP&&this.options.signDisplay!=null?n=t0e(this.numberFormatter,this.options.signDisplay,t):n=this.numberFormatter.format(t),this.options.style==="unit"&&!Fy){var r;let{unit:i,unitDisplay:a="short",locale:o}=this.resolvedOptions();if(!i)return n;let l=(r=Pq[i])===null||r===void 0?void 0:r[a];n+=l[o]||l.default}return n}formatToParts(t){return this.numberFormatter.formatToParts(t)}formatRange(t,n){if(typeof this.numberFormatter.formatRange=="function")return this.numberFormatter.formatRange(t,n);if(n<t)throw new RangeError("End date must be >= start date");return`${this.format(t)} – ${this.format(n)}`}formatRangeToParts(t,n){if(typeof this.numberFormatter.formatRangeToParts=="function")return this.numberFormatter.formatRangeToParts(t,n);if(n<t)throw new RangeError("End date must be >= start date");let r=this.numberFormatter.formatToParts(t),i=this.numberFormatter.formatToParts(n);return[...r.map(a=>({...a,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...i.map(a=>({...a,source:"endRange"}))]}resolvedOptions(){let t=this.numberFormatter.resolvedOptions();return!cP&&this.options.signDisplay!=null&&(t={...t,signDisplay:this.options.signDisplay}),!Fy&&this.options.style==="unit"&&(t={...t,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),t}constructor(t,n={}){this.numberFormatter=e0e(t,n),this.options=n}}function e0e(e,t={}){let{numberingSystem:n}=t;if(n&&e.includes("-nu-")&&(e.includes("-u-")||(e+="-u-"),e+=`-nu-${n}`),t.style==="unit"&&!Fy){var r;let{unit:o,unitDisplay:l="short"}=t;if(!o)throw new Error('unit option must be provided with style: "unit"');if(!(!((r=Pq[o])===null||r===void 0)&&r[l]))throw new Error(`Unsupported unit ${o} with unitDisplay = ${l}`);t={...t,style:"decimal"}}let i=e+(t?Object.entries(t).sort((o,l)=>o[0]<l[0]?-1:1).join():"");if(pw.has(i))return pw.get(i);let a=new Intl.NumberFormat(e,t);return pw.set(i,a),a}function t0e(e,t,n){if(t==="auto")return e.format(n);if(t==="never")return e.format(Math.abs(n));{let r=!1;if(t==="always"?r=n>0||Object.is(n,0):t==="exceptZero"&&(Object.is(n,-0)||Object.is(n,0)?n=Math.abs(n):r=n>0),r){let i=e.format(-n),a=e.format(n),o=i.replace(a,"").replace(/\u200e|\u061C/,"");return[...o].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),i.replace(a,"!!!").replace(o,"+").replace("!!!",a)}else return e.format(n)}}function n0e(e={}){let{locale:t}=Vo();return R.useMemo(()=>new Jye(t,e),[t,e])}let gw=new Map;function Eq(e){let{locale:t}=Vo(),n=t+(e?Object.entries(e).sort((i,a)=>i[0]<a[0]?-1:1).join():"");if(gw.has(n))return gw.get(n);let r=new Intl.Collator(t,e);return gw.set(n,r),r}let Rn=typeof document<"u"&&window.visualViewport;function QWe(e){let{direction:t}=Vo(),{arrowSize:n=0,targetRef:r,overlayRef:i,scrollRef:a=i,placement:o="bottom",containerPadding:l=12,shouldFlip:s=!0,boundaryElement:u=typeof document<"u"?document.body:null,offset:c=0,crossOffset:f=0,shouldUpdatePosition:p=!0,isOpen:g=!0,onClose:v,maxHeight:m,arrowBoundaryOffset:_=0}=e,[O,S]=R.useState({position:{},arrowOffsetLeft:void 0,arrowOffsetTop:void 0,maxHeight:void 0,placement:void 0}),b=[p,o,i.current,r.current,a.current,l,s,u,c,f,g,t,m,_,n],P=R.useRef(Rn==null?void 0:Rn.scale);R.useEffect(()=>{g&&(P.current=Rn==null?void 0:Rn.scale)},[g]);let E=R.useCallback(()=>{if(p===!1||!g||!i.current||!r.current||!a.current||!u||(Rn==null?void 0:Rn.scale)!==P.current)return;let k=i.current;if(!m&&i.current){var D;k.style.top="0px",k.style.bottom="";var T;k.style.maxHeight=((T=(D=window.visualViewport)===null||D===void 0?void 0:D.height)!==null&&T!==void 0?T:window.innerHeight)+"px"}let A=Dye({placement:i0e(o,t),overlayNode:i.current,targetNode:r.current,scrollNode:a.current,padding:l,shouldFlip:s,boundaryElement:u,offset:c,crossOffset:f,maxHeight:m,arrowSize:n,arrowBoundaryOffset:_});k.style.top="",k.style.bottom="",Object.keys(A.position).forEach(M=>k.style[M]=A.position[M]+"px"),k.style.maxHeight=A.maxHeight!=null?A.maxHeight+"px":void 0,S(A)},b);qt(E,b),r0e(E),_q({ref:i,onResize:E});let $=R.useRef(!1);qt(()=>{let k,D=()=>{$.current=!0,clearTimeout(k),k=setTimeout(()=>{$.current=!1},500),E()},T=()=>{$.current&&D()};return Rn==null||Rn.addEventListener("resize",D),Rn==null||Rn.addEventListener("scroll",T),()=>{Rn==null||Rn.removeEventListener("resize",D),Rn==null||Rn.removeEventListener("scroll",T)}},[E]);let Q=R.useCallback(()=>{$.current||v()},[v,$]);return Lye({triggerRef:r,isOpen:g,onClose:v&&Q}),{overlayProps:{style:{position:"absolute",zIndex:1e5,...O.position,maxHeight:O.maxHeight}},placement:O.placement,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:O.arrowOffsetLeft,top:O.arrowOffsetTop}},updatePosition:E}}function r0e(e){qt(()=>(window.addEventListener("resize",e,!1),()=>{window.removeEventListener("resize",e,!1)}),[e])}function i0e(e,t){return t==="rtl"?e.replace("start","right").replace("end","left"):e.replace("start","left").replace("end","right")}let Nf="default",fP="",ZO=new WeakMap;function dP(e){if(N1()){if(Nf==="default"){const t=ln(e);fP=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}Nf="disabled"}else(e instanceof HTMLElement||e instanceof SVGElement)&&(ZO.set(e,e.style.userSelect),e.style.userSelect="none")}function fp(e){if(N1()){if(Nf!=="disabled")return;Nf="restoring",setTimeout(()=>{mq(()=>{if(Nf==="restoring"){const t=ln(e);t.documentElement.style.webkitUserSelect==="none"&&(t.documentElement.style.webkitUserSelect=fP||""),fP="",Nf="default"}})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&ZO.has(e)){let t=ZO.get(e);e.style.userSelect==="none"&&(e.style.userSelect=t),e.getAttribute("style")===""&&e.removeAttribute("style"),ZO.delete(e)}}const Ny=pe.createContext({register:()=>{}});Ny.displayName="PressResponderContext";function a0e(e,t){return t.get?t.get.call(e):t.value}function Rq(e,t,n){if(!t.has(e))throw new TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function o0e(e,t){var n=Rq(e,t,"get");return a0e(e,n)}function l0e(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}}function AM(e,t,n){var r=Rq(e,t,"set");return l0e(e,r,n),n}function s0e(e){let t=R.useContext(Ny);if(t){let{register:n,...r}=t;e=mt(r,e),n()}return Fk(t,e.ref),e}var Ym=new WeakMap;class Gm{continuePropagation(){AM(this,Ym,!1)}get shouldStopPropagation(){return o0e(this,Ym)}constructor(t,n,r){Kye(this,Ym,{writable:!0,value:void 0}),AM(this,Ym,!0),this.type=t,this.pointerType=n,this.target=r.currentTarget,this.shiftKey=r.shiftKey,this.metaKey=r.metaKey,this.ctrlKey=r.ctrlKey,this.altKey=r.altKey}}const IM=Symbol("linkClicked");function kl(e){let{onPress:t,onPressChange:n,onPressStart:r,onPressEnd:i,onPressUp:a,isDisabled:o,isPressed:l,preventFocusOnPress:s,shouldCancelOnPointerExit:u,allowTextSelectionOnPress:c,ref:f,...p}=s0e(e),[g,v]=R.useState(!1),m=R.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:_,removeAllGlobalListeners:O}=Yg(),S=pr((k,D)=>{let T=m.current;if(o||T.didFirePressStart)return!1;let A=!0;if(T.isTriggeringEvent=!0,r){let M=new Gm("pressstart",D,k);r(M),A=M.shouldStopPropagation}return n&&n(!0),T.isTriggeringEvent=!1,T.didFirePressStart=!0,v(!0),A}),b=pr((k,D,T=!0)=>{let A=m.current;if(!A.didFirePressStart)return!1;A.ignoreClickAfterPress=!0,A.didFirePressStart=!1,A.isTriggeringEvent=!0;let M=!0;if(i){let L=new Gm("pressend",D,k);i(L),M=L.shouldStopPropagation}if(n&&n(!1),v(!1),t&&T&&!o){let L=new Gm("press",D,k);t(L),M&&(M=L.shouldStopPropagation)}return A.isTriggeringEvent=!1,M}),P=pr((k,D)=>{let T=m.current;if(o)return!1;if(a){T.isTriggeringEvent=!0;let A=new Gm("pressup",D,k);return a(A),T.isTriggeringEvent=!1,A.shouldStopPropagation}return!0}),E=pr(k=>{let D=m.current;D.isPressed&&D.target&&(D.isOverTarget&&D.pointerType!=null&&b(al(D.target,k),D.pointerType,!1),D.isPressed=!1,D.isOverTarget=!1,D.activePointerId=null,D.pointerType=null,O(),c||fp(D.target))}),$=pr(k=>{u&&E(k)}),Q=R.useMemo(()=>{let k=m.current,D={onKeyDown(A){if(vw(A.nativeEvent,A.currentTarget)&&A.currentTarget.contains(A.target)){var M;MM(A.target,A.key)&&A.preventDefault();let L=!0;if(!k.isPressed&&!A.repeat){k.target=A.currentTarget,k.isPressed=!0,L=S(A,"keyboard");let N=A.currentTarget,j=B=>{vw(B,N)&&!B.repeat&&N.contains(B.target)&&k.target&&P(al(k.target,B),"keyboard")};_(ln(A.currentTarget),"keyup",oc(j,T),!0)}L&&A.stopPropagation(),A.metaKey&&Is()&&((M=k.metaKeyEvents)===null||M===void 0||M.set(A.key,A.nativeEvent))}else A.key==="Meta"&&(k.metaKeyEvents=new Map)},onClick(A){if(!(A&&!A.currentTarget.contains(A.target))&&A&&A.button===0&&!k.isTriggeringEvent&&!lc.isOpening){let M=!0;if(o&&A.preventDefault(),!k.ignoreClickAfterPress&&!k.ignoreEmulatedMouseEvents&&!k.isPressed&&(k.pointerType==="virtual"||lP(A.nativeEvent))){!o&&!s&&Ro(A.currentTarget);let L=S(A,"virtual"),N=P(A,"virtual"),j=b(A,"virtual");M=L&&N&&j}k.ignoreEmulatedMouseEvents=!1,k.ignoreClickAfterPress=!1,M&&A.stopPropagation()}}},T=A=>{var M;if(k.isPressed&&k.target&&vw(A,k.target)){var L;MM(A.target,A.key)&&A.preventDefault();let j=A.target;b(al(k.target,A),"keyboard",k.target.contains(j)),O(),A.key!=="Enter"&&zk(k.target)&&k.target.contains(j)&&!A[IM]&&(A[IM]=!0,lc(k.target,A,!1)),k.isPressed=!1,(L=k.metaKeyEvents)===null||L===void 0||L.delete(A.key)}else if(A.key==="Meta"&&(!((M=k.metaKeyEvents)===null||M===void 0)&&M.size)){var N;let j=k.metaKeyEvents;k.metaKeyEvents=void 0;for(let B of j.values())(N=k.target)===null||N===void 0||N.dispatchEvent(new KeyboardEvent("keyup",B))}};if(typeof PointerEvent<"u"){D.onPointerDown=N=>{if(N.button!==0||!N.currentTarget.contains(N.target))return;if(kye(N.nativeEvent)){k.pointerType="virtual";return}mw(N.currentTarget)&&N.preventDefault(),k.pointerType=N.pointerType;let j=!0;k.isPressed||(k.isPressed=!0,k.isOverTarget=!0,k.activePointerId=N.pointerId,k.target=N.currentTarget,!o&&!s&&Ro(N.currentTarget),c||dP(k.target),j=S(N,k.pointerType),_(ln(N.currentTarget),"pointermove",A,!1),_(ln(N.currentTarget),"pointerup",M,!1),_(ln(N.currentTarget),"pointercancel",L,!1)),j&&N.stopPropagation()},D.onMouseDown=N=>{N.currentTarget.contains(N.target)&&N.button===0&&(mw(N.currentTarget)&&N.preventDefault(),N.stopPropagation())},D.onPointerUp=N=>{!N.currentTarget.contains(N.target)||k.pointerType==="virtual"||N.button===0&&rf(N,N.currentTarget)&&P(N,k.pointerType||N.pointerType)};let A=N=>{N.pointerId===k.activePointerId&&(k.target&&rf(N,k.target)?!k.isOverTarget&&k.pointerType!=null&&(k.isOverTarget=!0,S(al(k.target,N),k.pointerType)):k.target&&k.isOverTarget&&k.pointerType!=null&&(k.isOverTarget=!1,b(al(k.target,N),k.pointerType,!1),$(N)))},M=N=>{N.pointerId===k.activePointerId&&k.isPressed&&N.button===0&&k.target&&(rf(N,k.target)&&k.pointerType!=null?b(al(k.target,N),k.pointerType):k.isOverTarget&&k.pointerType!=null&&b(al(k.target,N),k.pointerType,!1),k.isPressed=!1,k.isOverTarget=!1,k.activePointerId=null,k.pointerType=null,O(),c||fp(k.target))},L=N=>{E(N)};D.onDragStart=N=>{N.currentTarget.contains(N.target)&&E(N)}}else{D.onMouseDown=L=>{if(L.button!==0||!L.currentTarget.contains(L.target))return;if(mw(L.currentTarget)&&L.preventDefault(),k.ignoreEmulatedMouseEvents){L.stopPropagation();return}k.isPressed=!0,k.isOverTarget=!0,k.target=L.currentTarget,k.pointerType=lP(L.nativeEvent)?"virtual":"mouse",!o&&!s&&Ro(L.currentTarget),S(L,k.pointerType)&&L.stopPropagation(),_(ln(L.currentTarget),"mouseup",A,!1)},D.onMouseEnter=L=>{if(!L.currentTarget.contains(L.target))return;let N=!0;k.isPressed&&!k.ignoreEmulatedMouseEvents&&k.pointerType!=null&&(k.isOverTarget=!0,N=S(L,k.pointerType)),N&&L.stopPropagation()},D.onMouseLeave=L=>{if(!L.currentTarget.contains(L.target))return;let N=!0;k.isPressed&&!k.ignoreEmulatedMouseEvents&&k.pointerType!=null&&(k.isOverTarget=!1,N=b(L,k.pointerType,!1),$(L)),N&&L.stopPropagation()},D.onMouseUp=L=>{L.currentTarget.contains(L.target)&&!k.ignoreEmulatedMouseEvents&&L.button===0&&P(L,k.pointerType||"mouse")};let A=L=>{if(L.button===0){if(k.isPressed=!1,O(),k.ignoreEmulatedMouseEvents){k.ignoreEmulatedMouseEvents=!1;return}k.target&&rf(L,k.target)&&k.pointerType!=null?b(al(k.target,L),k.pointerType):k.target&&k.isOverTarget&&k.pointerType!=null&&b(al(k.target,L),k.pointerType,!1),k.isOverTarget=!1}};D.onTouchStart=L=>{if(!L.currentTarget.contains(L.target))return;let N=u0e(L.nativeEvent);if(!N)return;k.activePointerId=N.identifier,k.ignoreEmulatedMouseEvents=!0,k.isOverTarget=!0,k.isPressed=!0,k.target=L.currentTarget,k.pointerType="touch",!o&&!s&&Ro(L.currentTarget),c||dP(k.target),S(L,k.pointerType)&&L.stopPropagation(),_(Oa(L.currentTarget),"scroll",M,!0)},D.onTouchMove=L=>{if(!L.currentTarget.contains(L.target))return;if(!k.isPressed){L.stopPropagation();return}let N=DM(L.nativeEvent,k.activePointerId),j=!0;N&&rf(N,L.currentTarget)?!k.isOverTarget&&k.pointerType!=null&&(k.isOverTarget=!0,j=S(L,k.pointerType)):k.isOverTarget&&k.pointerType!=null&&(k.isOverTarget=!1,j=b(L,k.pointerType,!1),$(L)),j&&L.stopPropagation()},D.onTouchEnd=L=>{if(!L.currentTarget.contains(L.target))return;if(!k.isPressed){L.stopPropagation();return}let N=DM(L.nativeEvent,k.activePointerId),j=!0;N&&rf(N,L.currentTarget)&&k.pointerType!=null?(P(L,k.pointerType),j=b(L,k.pointerType)):k.isOverTarget&&k.pointerType!=null&&(j=b(L,k.pointerType,!1)),j&&L.stopPropagation(),k.isPressed=!1,k.activePointerId=null,k.isOverTarget=!1,k.ignoreEmulatedMouseEvents=!0,k.target&&!c&&fp(k.target),O()},D.onTouchCancel=L=>{L.currentTarget.contains(L.target)&&(L.stopPropagation(),k.isPressed&&E(L))};let M=L=>{k.isPressed&&L.target.contains(k.target)&&E({currentTarget:k.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};D.onDragStart=L=>{L.currentTarget.contains(L.target)&&E(L)}}return D},[_,o,s,O,c,E,$,b,S,P]);return R.useEffect(()=>()=>{var k;c||fp((k=m.current.target)!==null&&k!==void 0?k:void 0)},[c]),{isPressed:l||g,pressProps:mt(p,Q)}}function zk(e){return e.tagName==="A"&&e.hasAttribute("href")}function vw(e,t){const{key:n,code:r}=e,i=t,a=i.getAttribute("role");return(n==="Enter"||n===" "||n==="Spacebar"||r==="Space")&&!(i instanceof Oa(i).HTMLInputElement&&!kq(i,n)||i instanceof Oa(i).HTMLTextAreaElement||i.isContentEditable)&&!((a==="link"||!a&&zk(i))&&n!=="Enter")}function u0e(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}function DM(e,t){const n=e.changedTouches;for(let r=0;r<n.length;r++){const i=n[r];if(i.identifier===t)return i}return null}function al(e,t){return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey}}function c0e(e){let t=0,n=0;return e.width!==void 0?t=e.width/2:e.radiusX!==void 0&&(t=e.radiusX),e.height!==void 0?n=e.height/2:e.radiusY!==void 0&&(n=e.radiusY),{top:e.clientY-n,right:e.clientX+t,bottom:e.clientY+n,left:e.clientX-t}}function f0e(e,t){return!(e.left>t.right||t.left>e.right||e.top>t.bottom||t.top>e.bottom)}function rf(e,t){let n=t.getBoundingClientRect(),r=c0e(e);return f0e(n,r)}function mw(e){return!(e instanceof HTMLElement)||!e.hasAttribute("draggable")}function MM(e,t){return e instanceof HTMLInputElement?!kq(e,t):e instanceof HTMLButtonElement?e.type!=="submit"&&e.type!=="reset":!zk(e)}const d0e=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function kq(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":d0e.has(e.type)}const AWe=pe.forwardRef(({children:e,...t},n)=>{let r=R.useRef(!1),i=R.useContext(Ny);n=yq(n||(i==null?void 0:i.ref));let a=mt(i||{},{...t,ref:n,register(){r.current=!0,i&&i.register()}});return Fk(i,n),R.useEffect(()=>{r.current||(console.warn("A PressResponder was rendered without a pressable child. Either call the usePress hook, or wrap your DOM node with <Pressable> component."),r.current=!0)},[]),pe.createElement(Ny.Provider,{value:a},e)});class h0e{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(t,n){this.nativeEvent=n,this.target=n.target,this.currentTarget=n.currentTarget,this.relatedTarget=n.relatedTarget,this.bubbles=n.bubbles,this.cancelable=n.cancelable,this.defaultPrevented=n.defaultPrevented,this.eventPhase=n.eventPhase,this.isTrusted=n.isTrusted,this.timeStamp=n.timeStamp,this.type=t}}function Tq(e){let t=R.useRef({isFocused:!1,observer:null});qt(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=pr(r=>{e==null||e(r)});return R.useCallback(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){t.current.isFocused=!0;let i=r.target,a=o=>{t.current.isFocused=!1,i.disabled&&n(new h0e("blur",o)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};i.addEventListener("focusout",a,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&i.disabled){var o;(o=t.current.observer)===null||o===void 0||o.disconnect();let l=i===document.activeElement?null:document.activeElement;i.dispatchEvent(new FocusEvent("blur",{relatedTarget:l})),i.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:l}))}}),t.current.observer.observe(i,{attributes:!0,attributeFilter:["disabled"]})}},[n])}function Uk(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:i}=e;const a=R.useCallback(s=>{if(s.target===s.currentTarget)return r&&r(s),i&&i(!1),!0},[r,i]),o=Tq(a),l=R.useCallback(s=>{const u=ln(s.target);s.target===s.currentTarget&&u.activeElement===s.target&&(n&&n(s),i&&i(!0),o(s))},[i,n,o]);return{focusProps:{onFocus:!t&&(n||i||r)?l:void 0,onBlur:!t&&(r||i)?a:void 0}}}let Tl=null,dg=new Set,Tp=new Map,uc=!1,hP=!1;const p0e={Tab:!0,Escape:!0};function U1(e,t){for(let n of dg)n(e,t)}function g0e(e){return!(e.metaKey||!Is()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function zy(e){uc=!0,g0e(e)&&(Tl="keyboard",U1("keyboard",e))}function ga(e){Tl="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(uc=!0,U1("pointer",e))}function Cq(e){lP(e)&&(uc=!0,Tl="virtual")}function Qq(e){e.target===window||e.target===document||(!uc&&!hP&&(Tl="virtual",U1("virtual",e)),uc=!1,hP=!1)}function Aq(){uc=!1,hP=!0}function Uy(e){if(typeof window>"u"||Tp.get(Oa(e)))return;const t=Oa(e),n=ln(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){uc=!0,r.apply(this,arguments)},n.addEventListener("keydown",zy,!0),n.addEventListener("keyup",zy,!0),n.addEventListener("click",Cq,!0),t.addEventListener("focus",Qq,!0),t.addEventListener("blur",Aq,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",ga,!0),n.addEventListener("pointermove",ga,!0),n.addEventListener("pointerup",ga,!0)):(n.addEventListener("mousedown",ga,!0),n.addEventListener("mousemove",ga,!0),n.addEventListener("mouseup",ga,!0)),t.addEventListener("beforeunload",()=>{Iq(e)},{once:!0}),Tp.set(t,{focus:r})}const Iq=(e,t)=>{const n=Oa(e),r=ln(e);t&&r.removeEventListener("DOMContentLoaded",t),Tp.has(n)&&(n.HTMLElement.prototype.focus=Tp.get(n).focus,r.removeEventListener("keydown",zy,!0),r.removeEventListener("keyup",zy,!0),r.removeEventListener("click",Cq,!0),n.removeEventListener("focus",Qq,!0),n.removeEventListener("blur",Aq,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",ga,!0),r.removeEventListener("pointermove",ga,!0),r.removeEventListener("pointerup",ga,!0)):(r.removeEventListener("mousedown",ga,!0),r.removeEventListener("mousemove",ga,!0),r.removeEventListener("mouseup",ga,!0)),Tp.delete(n))};function v0e(e){const t=ln(e);let n;return t.readyState!=="loading"?Uy(e):(n=()=>{Uy(e)},t.addEventListener("DOMContentLoaded",n)),()=>Iq(e,n)}typeof document<"u"&&v0e();function hd(){return Tl!=="pointer"}function pd(){return Tl}function qk(e){Tl=e,U1(e,null)}function m0e(){Uy();let[e,t]=R.useState(Tl);return R.useEffect(()=>{let n=()=>{t(Tl)};return dg.add(n),()=>{dg.delete(n)}},[]),Ik()?null:e}const O0e=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function y0e(e,t,n){var r;const i=typeof window<"u"?Oa(n==null?void 0:n.target).HTMLInputElement:HTMLInputElement,a=typeof window<"u"?Oa(n==null?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,o=typeof window<"u"?Oa(n==null?void 0:n.target).HTMLElement:HTMLElement,l=typeof window<"u"?Oa(n==null?void 0:n.target).KeyboardEvent:KeyboardEvent;return e=e||(n==null?void 0:n.target)instanceof i&&!O0e.has(n==null||(r=n.target)===null||r===void 0?void 0:r.type)||(n==null?void 0:n.target)instanceof a||(n==null?void 0:n.target)instanceof o&&(n==null?void 0:n.target.isContentEditable),!(e&&t==="keyboard"&&n instanceof l&&!p0e[n.key])}function _0e(e,t,n){Uy(),R.useEffect(()=>{let r=(i,a)=>{y0e(!!(n!=null&&n.isTextInput),i,a)&&e(hd())};return dg.add(r),()=>{dg.delete(r)}},t)}function Bg(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:i}=e,a=R.useRef({isFocusWithin:!1}),o=R.useCallback(u=>{a.current.isFocusWithin&&!u.currentTarget.contains(u.relatedTarget)&&(a.current.isFocusWithin=!1,n&&n(u),i&&i(!1))},[n,i,a]),l=Tq(o),s=R.useCallback(u=>{!a.current.isFocusWithin&&document.activeElement===u.target&&(r&&r(u),i&&i(!0),a.current.isFocusWithin=!0,l(u))},[r,i,l]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:s,onBlur:o}}}let qy=!1,Ow=0;function pP(){qy=!0,setTimeout(()=>{qy=!1},50)}function LM(e){e.pointerType==="touch"&&pP()}function S0e(){if(!(typeof document>"u"))return typeof PointerEvent<"u"?document.addEventListener("pointerup",LM):document.addEventListener("touchend",pP),Ow++,()=>{Ow--,!(Ow>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",LM):document.removeEventListener("touchend",pP))}}function q1(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:i}=e,[a,o]=R.useState(!1),l=R.useRef({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;R.useEffect(S0e,[]);let{hoverProps:s,triggerHoverEnd:u}=R.useMemo(()=>{let c=(g,v)=>{if(l.pointerType=v,i||v==="touch"||l.isHovered||!g.currentTarget.contains(g.target))return;l.isHovered=!0;let m=g.currentTarget;l.target=m,t&&t({type:"hoverstart",target:m,pointerType:v}),n&&n(!0),o(!0)},f=(g,v)=>{if(l.pointerType="",l.target=null,v==="touch"||!l.isHovered)return;l.isHovered=!1;let m=g.currentTarget;r&&r({type:"hoverend",target:m,pointerType:v}),n&&n(!1),o(!1)},p={};return typeof PointerEvent<"u"?(p.onPointerEnter=g=>{qy&&g.pointerType==="mouse"||c(g,g.pointerType)},p.onPointerLeave=g=>{!i&&g.currentTarget.contains(g.target)&&f(g,g.pointerType)}):(p.onTouchStart=()=>{l.ignoreEmulatedMouseEvents=!0},p.onMouseEnter=g=>{!l.ignoreEmulatedMouseEvents&&!qy&&c(g,"mouse"),l.ignoreEmulatedMouseEvents=!1},p.onMouseLeave=g=>{!i&&g.currentTarget.contains(g.target)&&f(g,"mouse")}),{hoverProps:p,triggerHoverEnd:f}},[t,n,r,i,l]);return R.useEffect(()=>{i&&u({currentTarget:l.target},l.pointerType)},[i]),{hoverProps:s,isHovered:a}}function b0e(e){let{ref:t,onInteractOutside:n,isDisabled:r,onInteractOutsideStart:i}=e,a=R.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),o=pr(s=>{n&&Bm(s,t)&&(i&&i(s),a.current.isPointerDown=!0)}),l=pr(s=>{n&&n(s)});R.useEffect(()=>{let s=a.current;if(r)return;const u=t.current,c=ln(u);if(typeof PointerEvent<"u"){let f=p=>{s.isPointerDown&&Bm(p,t)&&l(p),s.isPointerDown=!1};return c.addEventListener("pointerdown",o,!0),c.addEventListener("pointerup",f,!0),()=>{c.removeEventListener("pointerdown",o,!0),c.removeEventListener("pointerup",f,!0)}}else{let f=g=>{s.ignoreEmulatedMouseEvents?s.ignoreEmulatedMouseEvents=!1:s.isPointerDown&&Bm(g,t)&&l(g),s.isPointerDown=!1},p=g=>{s.ignoreEmulatedMouseEvents=!0,s.isPointerDown&&Bm(g,t)&&l(g),s.isPointerDown=!1};return c.addEventListener("mousedown",o,!0),c.addEventListener("mouseup",f,!0),c.addEventListener("touchstart",o,!0),c.addEventListener("touchend",p,!0),()=>{c.removeEventListener("mousedown",o,!0),c.removeEventListener("mouseup",f,!0),c.removeEventListener("touchstart",o,!0),c.removeEventListener("touchend",p,!0)}}},[t,r,o,l])}function Bm(e,t){if(e.button>0)return!1;if(e.target){const n=e.target.ownerDocument;if(!n||!n.documentElement.contains(e.target)||e.target.closest("[data-react-aria-top-layer]"))return!1}return t.current&&!t.current.contains(e.target)}function FM(e){if(!e)return;let t=!0;return n=>{let r={...n,preventDefault(){n.preventDefault()},isDefaultPrevented(){return n.isDefaultPrevented()},stopPropagation(){console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior.")},continuePropagation(){t=!1}};e(r),t&&n.stopPropagation()}}function jk(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:FM(e.onKeyDown),onKeyUp:FM(e.onKeyUp)}}}function Dq(e){let{onMoveStart:t,onMove:n,onMoveEnd:r}=e,i=R.useRef({didMove:!1,lastPosition:null,id:null}),{addGlobalListener:a,removeGlobalListener:o}=Yg(),l=pr((c,f,p,g)=>{p===0&&g===0||(i.current.didMove||(i.current.didMove=!0,t==null||t({type:"movestart",pointerType:f,shiftKey:c.shiftKey,metaKey:c.metaKey,ctrlKey:c.ctrlKey,altKey:c.altKey})),n==null||n({type:"move",pointerType:f,deltaX:p,deltaY:g,shiftKey:c.shiftKey,metaKey:c.metaKey,ctrlKey:c.ctrlKey,altKey:c.altKey}))}),s=pr((c,f)=>{fp(),i.current.didMove&&(r==null||r({type:"moveend",pointerType:f,shiftKey:c.shiftKey,metaKey:c.metaKey,ctrlKey:c.ctrlKey,altKey:c.altKey}))});return{moveProps:R.useMemo(()=>{let c={},f=()=>{dP(),i.current.didMove=!1};if(typeof PointerEvent>"u"){let g=O=>{if(O.button===0){var S,b,P,E;l(O,"mouse",O.pageX-((P=(S=i.current.lastPosition)===null||S===void 0?void 0:S.pageX)!==null&&P!==void 0?P:0),O.pageY-((E=(b=i.current.lastPosition)===null||b===void 0?void 0:b.pageY)!==null&&E!==void 0?E:0)),i.current.lastPosition={pageX:O.pageX,pageY:O.pageY}}},v=O=>{O.button===0&&(s(O,"mouse"),o(window,"mousemove",g,!1),o(window,"mouseup",v,!1))};c.onMouseDown=O=>{O.button===0&&(f(),O.stopPropagation(),O.preventDefault(),i.current.lastPosition={pageX:O.pageX,pageY:O.pageY},a(window,"mousemove",g,!1),a(window,"mouseup",v,!1))};let m=O=>{let S=[...O.changedTouches].findIndex(({identifier:Q})=>Q===i.current.id);if(S>=0){var b,P;let{pageX:Q,pageY:k}=O.changedTouches[S];var E,$;l(O,"touch",Q-((E=(b=i.current.lastPosition)===null||b===void 0?void 0:b.pageX)!==null&&E!==void 0?E:0),k-(($=(P=i.current.lastPosition)===null||P===void 0?void 0:P.pageY)!==null&&$!==void 0?$:0)),i.current.lastPosition={pageX:Q,pageY:k}}},_=O=>{[...O.changedTouches].findIndex(({identifier:b})=>b===i.current.id)>=0&&(s(O,"touch"),i.current.id=null,o(window,"touchmove",m),o(window,"touchend",_),o(window,"touchcancel",_))};c.onTouchStart=O=>{if(O.changedTouches.length===0||i.current.id!=null)return;let{pageX:S,pageY:b,identifier:P}=O.changedTouches[0];f(),O.stopPropagation(),O.preventDefault(),i.current.lastPosition={pageX:S,pageY:b},i.current.id=P,a(window,"touchmove",m,!1),a(window,"touchend",_,!1),a(window,"touchcancel",_,!1)}}else{let g=m=>{if(m.pointerId===i.current.id){var _,O;let P=m.pointerType||"mouse";var S,b;l(m,P,m.pageX-((S=(_=i.current.lastPosition)===null||_===void 0?void 0:_.pageX)!==null&&S!==void 0?S:0),m.pageY-((b=(O=i.current.lastPosition)===null||O===void 0?void 0:O.pageY)!==null&&b!==void 0?b:0)),i.current.lastPosition={pageX:m.pageX,pageY:m.pageY}}},v=m=>{if(m.pointerId===i.current.id){let _=m.pointerType||"mouse";s(m,_),i.current.id=null,o(window,"pointermove",g,!1),o(window,"pointerup",v,!1),o(window,"pointercancel",v,!1)}};c.onPointerDown=m=>{m.button===0&&i.current.id==null&&(f(),m.stopPropagation(),m.preventDefault(),i.current.lastPosition={pageX:m.pageX,pageY:m.pageY},i.current.id=m.pointerId,a(window,"pointermove",g,!1),a(window,"pointerup",v,!1),a(window,"pointercancel",v,!1))}}let p=(g,v,m)=>{f(),l(g,"keyboard",v,m),s(g,"keyboard")};return c.onKeyDown=g=>{switch(g.key){case"Left":case"ArrowLeft":g.preventDefault(),g.stopPropagation(),p(g,-1,0);break;case"Right":case"ArrowRight":g.preventDefault(),g.stopPropagation(),p(g,1,0);break;case"Up":case"ArrowUp":g.preventDefault(),g.stopPropagation(),p(g,0,-1);break;case"Down":case"ArrowDown":g.preventDefault(),g.stopPropagation(),p(g,0,1);break}},c},[i,a,o,l,s])}}const w0e=500;function Mq(e){let{isDisabled:t,onLongPressStart:n,onLongPressEnd:r,onLongPress:i,threshold:a=w0e,accessibilityDescription:o}=e;const l=R.useRef();let{addGlobalListener:s,removeGlobalListener:u}=Yg(),{pressProps:c}=kl({isDisabled:t,onPressStart(p){if(p.continuePropagation(),(p.pointerType==="mouse"||p.pointerType==="touch")&&(n&&n({...p,type:"longpressstart"}),l.current=setTimeout(()=>{p.target.dispatchEvent(new PointerEvent("pointercancel",{bubbles:!0})),i&&i({...p,type:"longpress"}),l.current=void 0},a),p.pointerType==="touch")){let g=v=>{v.preventDefault()};s(p.target,"contextmenu",g,{once:!0}),s(window,"pointerup",()=>{setTimeout(()=>{u(p.target,"contextmenu",g)},30)},{once:!0})}},onPressEnd(p){l.current&&clearTimeout(l.current),r&&(p.pointerType==="mouse"||p.pointerType==="touch")&&r({...p,type:"longpressend"})}}),f=Eye(i&&!t?o:void 0);return{longPressProps:mt(c,f)}}function cc(e){const t=ln(e);if(pd()==="virtual"){let n=t.activeElement;mq(()=>{t.activeElement===n&&e.isConnected&&Ro(e)})}else Ro(e)}function $0e(e){const t=Oa(e);if(!(e instanceof t.HTMLElement)&&!(e instanceof t.SVGElement))return!1;let{display:n,visibility:r}=e.style,i=n!=="none"&&r!=="hidden"&&r!=="collapse";if(i){const{getComputedStyle:a}=e.ownerDocument.defaultView;let{display:o,visibility:l}=a(e);i=o!=="none"&&l!=="hidden"&&l!=="collapse"}return i}function x0e(e,t){return!e.hasAttribute("hidden")&&!e.hasAttribute("data-react-aria-prevent-focus")&&(e.nodeName==="DETAILS"&&t&&t.nodeName!=="SUMMARY"?e.hasAttribute("open"):!0)}function Lq(e,t){return e.nodeName!=="#comment"&&$0e(e)&&x0e(e,t)&&(!e.parentElement||Lq(e.parentElement,e))}const NM=pe.createContext(null);let Gt=null;function IWe(e){let{children:t,contain:n,restoreFocus:r,autoFocus:i}=e,a=R.useRef(null),o=R.useRef(null),l=R.useRef([]),{parentNode:s}=R.useContext(NM)||{},u=R.useMemo(()=>new gP({scopeRef:l}),[l]);qt(()=>{let p=s||Dn.root;if(Dn.getTreeNode(p.scopeRef)&&Gt&&!Vy(Gt,p.scopeRef)){let g=Dn.getTreeNode(Gt);g&&(p=g)}p.addChild(u),Dn.addNode(u)},[u,s]),qt(()=>{let p=Dn.getTreeNode(l);p&&(p.contain=!!n)},[n]),qt(()=>{var p;let g=(p=a.current)===null||p===void 0?void 0:p.nextSibling,v=[];for(;g&&g!==o.current;)v.push(g),g=g.nextSibling;l.current=v},[t]),Q0e(l,r,n),k0e(l,n),I0e(l,r,n),C0e(l,i),R.useEffect(()=>{const p=ln(l.current?l.current[0]:void 0).activeElement;let g=null;if(Ir(p,l.current)){for(let v of Dn.traverse())v.scopeRef&&Ir(p,v.scopeRef.current)&&(g=v);g===Dn.getTreeNode(l)&&(Gt=g.scopeRef)}},[l]),qt(()=>()=>{var p,g,v;let m=(v=(g=Dn.getTreeNode(l))===null||g===void 0||(p=g.parent)===null||p===void 0?void 0:p.scopeRef)!==null&&v!==void 0?v:null;(l===Gt||Vy(l,Gt))&&(!m||Dn.getTreeNode(m))&&(Gt=m),Dn.removeTreeNode(l)},[l]);let c=R.useMemo(()=>P0e(l),[]),f=R.useMemo(()=>({focusManager:c,parentNode:u}),[u,c]);return pe.createElement(NM.Provider,{value:f},pe.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:a}),t,pe.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:o}))}function P0e(e){return{focusNext(t={}){let n=e.current,{from:r,tabbable:i,wrap:a,accept:o}=t,l=r||ln(n[0]).activeElement,s=n[0].previousElementSibling,u=Fu(n),c=ko(u,{tabbable:i,accept:o},n);c.currentNode=Ir(l,n)?l:s;let f=c.nextNode();return!f&&a&&(c.currentNode=s,f=c.nextNode()),f&&_l(f,!0),f},focusPrevious(t={}){let n=e.current,{from:r,tabbable:i,wrap:a,accept:o}=t,l=r||ln(n[0]).activeElement,s=n[n.length-1].nextElementSibling,u=Fu(n),c=ko(u,{tabbable:i,accept:o},n);c.currentNode=Ir(l,n)?l:s;let f=c.previousNode();return!f&&a&&(c.currentNode=s,f=c.previousNode()),f&&_l(f,!0),f},focusFirst(t={}){let n=e.current,{tabbable:r,accept:i}=t,a=Fu(n),o=ko(a,{tabbable:r,accept:i},n);o.currentNode=n[0].previousElementSibling;let l=o.nextNode();return l&&_l(l,!0),l},focusLast(t={}){let n=e.current,{tabbable:r,accept:i}=t,a=Fu(n),o=ko(a,{tabbable:r,accept:i},n);o.currentNode=n[n.length-1].nextElementSibling;let l=o.previousNode();return l&&_l(l,!0),l}}}const Vk=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[contenteditable]"],E0e=Vk.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";Vk.push('[tabindex]:not([tabindex="-1"]):not([disabled])');const R0e=Vk.join(':not([hidden]):not([tabindex="-1"]),');function Fu(e){return e[0].parentElement}function dp(e){let t=Dn.getTreeNode(Gt);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function k0e(e,t){let n=R.useRef(),r=R.useRef();qt(()=>{let i=e.current;if(!t){r.current&&(cancelAnimationFrame(r.current),r.current=void 0);return}const a=ln(i?i[0]:void 0);let o=u=>{if(u.key!=="Tab"||u.altKey||u.ctrlKey||u.metaKey||!dp(e)||u.isComposing)return;let c=a.activeElement,f=e.current;if(!f||!Ir(c,f))return;let p=Fu(f),g=ko(p,{tabbable:!0},f);if(!c)return;g.currentNode=c;let v=u.shiftKey?g.previousNode():g.nextNode();v||(g.currentNode=u.shiftKey?f[f.length-1].nextElementSibling:f[0].previousElementSibling,v=u.shiftKey?g.previousNode():g.nextNode()),u.preventDefault(),v&&_l(v,!0)},l=u=>{(!Gt||Vy(Gt,e))&&Ir(u.target,e.current)?(Gt=e,n.current=u.target):dp(e)&&!jy(u.target,e)?n.current?n.current.focus():Gt&&Gt.current&&Zy(Gt.current):dp(e)&&(n.current=u.target)},s=u=>{r.current&&cancelAnimationFrame(r.current),r.current=requestAnimationFrame(()=>{if(a.activeElement&&dp(e)&&!jy(a.activeElement,e))if(Gt=e,a.body.contains(u.target)){var c;n.current=u.target,(c=n.current)===null||c===void 0||c.focus()}else Gt.current&&Zy(Gt.current)})};return a.addEventListener("keydown",o,!1),a.addEventListener("focusin",l,!1),i==null||i.forEach(u=>u.addEventListener("focusin",l,!1)),i==null||i.forEach(u=>u.addEventListener("focusout",s,!1)),()=>{a.removeEventListener("keydown",o,!1),a.removeEventListener("focusin",l,!1),i==null||i.forEach(u=>u.removeEventListener("focusin",l,!1)),i==null||i.forEach(u=>u.removeEventListener("focusout",s,!1))}},[e,t]),qt(()=>()=>{r.current&&cancelAnimationFrame(r.current)},[r])}function Fq(e){return jy(e)}function Ir(e,t){return!e||!t?!1:t.some(n=>n.contains(e))}function jy(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of Dn.traverse(Dn.getTreeNode(t)))if(n&&Ir(e,n.current))return!0;return!1}function T0e(e){return jy(e,Gt)}function Vy(e,t){var n;let r=(n=Dn.getTreeNode(t))===null||n===void 0?void 0:n.parent;for(;r;){if(r.scopeRef===e)return!0;r=r.parent}return!1}function _l(e,t=!1){if(e!=null&&!t)try{cc(e)}catch{}else if(e!=null)try{e.focus()}catch{}}function Zy(e,t=!0){let n=e[0].previousElementSibling,r=Fu(e),i=ko(r,{tabbable:t},e);i.currentNode=n;let a=i.nextNode();t&&!a&&(r=Fu(e),i=ko(r,{tabbable:!1},e),i.currentNode=n,a=i.nextNode()),_l(a)}function C0e(e,t){const n=pe.useRef(t);R.useEffect(()=>{if(n.current){Gt=e;const r=ln(e.current?e.current[0]:void 0);!Ir(r.activeElement,Gt.current)&&e.current&&Zy(e.current)}n.current=!1},[e])}function Q0e(e,t,n){qt(()=>{if(t||n)return;let r=e.current;const i=ln(r?r[0]:void 0);let a=o=>{let l=o.target;Ir(l,e.current)?Gt=e:Fq(l)||(Gt=null)};return i.addEventListener("focusin",a,!1),r==null||r.forEach(o=>o.addEventListener("focusin",a,!1)),()=>{i.removeEventListener("focusin",a,!1),r==null||r.forEach(o=>o.removeEventListener("focusin",a,!1))}},[e,t,n])}function A0e(e){let t=Dn.getTreeNode(Gt);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return(t==null?void 0:t.scopeRef)===e}function I0e(e,t,n){const r=R.useRef(typeof document<"u"?ln(e.current?e.current[0]:void 0).activeElement:null);qt(()=>{let i=e.current;const a=ln(i?i[0]:void 0);if(!t||n)return;let o=()=>{(!Gt||Vy(Gt,e))&&Ir(a.activeElement,e.current)&&(Gt=e)};return a.addEventListener("focusin",o,!1),i==null||i.forEach(l=>l.addEventListener("focusin",o,!1)),()=>{a.removeEventListener("focusin",o,!1),i==null||i.forEach(l=>l.removeEventListener("focusin",o,!1))}},[e,n]),qt(()=>{const i=ln(e.current?e.current[0]:void 0);if(!t)return;let a=o=>{if(o.key!=="Tab"||o.altKey||o.ctrlKey||o.metaKey||!dp(e)||o.isComposing)return;let l=i.activeElement;if(!Ir(l,e.current))return;let s=Dn.getTreeNode(e);if(!s)return;let u=s.nodeToRestore,c=ko(i.body,{tabbable:!0});c.currentNode=l;let f=o.shiftKey?c.previousNode():c.nextNode();if((!u||!i.body.contains(u)||u===i.body)&&(u=void 0,s.nodeToRestore=void 0),(!f||!Ir(f,e.current))&&u){c.currentNode=u;do f=o.shiftKey?c.previousNode():c.nextNode();while(Ir(f,e.current));o.preventDefault(),o.stopPropagation(),f?_l(f,!0):Fq(u)?_l(u,!0):l.blur()}};return n||i.addEventListener("keydown",a,!0),()=>{n||i.removeEventListener("keydown",a,!0)}},[e,t,n]),qt(()=>{const i=ln(e.current?e.current[0]:void 0);if(!t)return;let a=Dn.getTreeNode(e);if(a){var o;return a.nodeToRestore=(o=r.current)!==null&&o!==void 0?o:void 0,()=>{let l=Dn.getTreeNode(e);if(!l)return;let s=l.nodeToRestore;if(t&&s&&(Ir(i.activeElement,e.current)||i.activeElement===i.body&&A0e(e))){let u=Dn.clone();requestAnimationFrame(()=>{if(i.activeElement===i.body){let c=u.getTreeNode(e);for(;c;){if(c.nodeToRestore&&c.nodeToRestore.isConnected){_l(c.nodeToRestore);return}c=c.parent}for(c=u.getTreeNode(e);c;){if(c.scopeRef&&c.scopeRef.current&&Dn.getTreeNode(c.scopeRef)){Zy(c.scopeRef.current,!0);return}c=c.parent}}})}}}},[e,t])}function ko(e,t,n){let r=t!=null&&t.tabbable?R0e:E0e,i=ln(e).createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode(a){var o;return!(t==null||(o=t.from)===null||o===void 0)&&o.contains(a)?NodeFilter.FILTER_REJECT:a.matches(r)&&Lq(a)&&(!n||Ir(a,n))&&(!(t!=null&&t.accept)||t.accept(a))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return t!=null&&t.from&&(i.currentNode=t.from),i}class Zk{get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,n,r){let i=this.fastMap.get(n??null);if(!i)return;let a=new gP({scopeRef:t});i.addChild(a),a.parent=i,this.fastMap.set(t,a),r&&(a.nodeToRestore=r)}addNode(t){this.fastMap.set(t.scopeRef,t)}removeTreeNode(t){if(t===null)return;let n=this.fastMap.get(t);if(!n)return;let r=n.parent;for(let a of this.traverse())a!==n&&n.nodeToRestore&&a.nodeToRestore&&n.scopeRef&&n.scopeRef.current&&Ir(a.nodeToRestore,n.scopeRef.current)&&(a.nodeToRestore=n.nodeToRestore);let i=n.children;r&&(r.removeChild(n),i.size>0&&i.forEach(a=>r&&r.addChild(a))),this.fastMap.delete(n.scopeRef)}*traverse(t=this.root){if(t.scopeRef!=null&&(yield t),t.children.size>0)for(let n of t.children)yield*this.traverse(n)}clone(){var t;let n=new Zk;var r;for(let i of this.traverse())n.addTreeNode(i.scopeRef,(r=(t=i.parent)===null||t===void 0?void 0:t.scopeRef)!==null&&r!==void 0?r:null,i.nodeToRestore);return n}constructor(){this.fastMap=new Map,this.root=new gP({scopeRef:null}),this.fastMap.set(null,this.root)}}class gP{addChild(t){this.children.add(t),t.parent=this}removeChild(t){this.children.delete(t),t.parent=void 0}constructor(t){this.children=new Set,this.contain=!1,this.scopeRef=t.scopeRef}}let Dn=new Zk;function D0e(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,i=R.useRef({isFocused:!1,isFocusVisible:t||hd()}),[a,o]=R.useState(!1),[l,s]=R.useState(()=>i.current.isFocused&&i.current.isFocusVisible),u=R.useCallback(()=>s(i.current.isFocused&&i.current.isFocusVisible),[]),c=R.useCallback(g=>{i.current.isFocused=g,o(g),u()},[u]);_0e(g=>{i.current.isFocusVisible=g,u()},[],{isTextInput:n});let{focusProps:f}=Uk({isDisabled:r,onFocusChange:c}),{focusWithinProps:p}=Bg({isDisabled:!r,onFocusWithinChange:c});return{isFocused:a,isFocusVisible:l,focusProps:r?p:f}}function DWe(e){let{children:t,focusClass:n,focusRingClass:r}=e,{isFocused:i,isFocusVisible:a,focusProps:o}=D0e(e),l=pe.Children.only(t);return pe.cloneElement(l,mt(l.props,{...o,className:pq({[n||""]:i,[r||""]:a})}))}let Nq=pe.createContext(null);function M0e(e){let t=R.useContext(Nq)||{};Fk(t,e);let{ref:n,...r}=t;return r}function L0e(e,t){let{children:n,...r}=e,i=yq(t),a={...r,ref:i};return pe.createElement(Nq.Provider,{value:a},n)}let MWe=pe.forwardRef(L0e);function Rc(e,t){let{focusProps:n}=Uk(e),{keyboardProps:r}=jk(e),i=mt(n,r),a=M0e(t),o=e.isDisabled?{}:a,l=R.useRef(e.autoFocus);return R.useEffect(()=>{l.current&&t.current&&cc(t.current),l.current=!1},[t]),{focusableProps:mt({...i,tabIndex:e.excludeFromTabOrder&&!e.isDisabled?-1:void 0},o)}}const ol=[];function LWe(e,t){let{onClose:n,shouldCloseOnBlur:r,isOpen:i,isDismissable:a=!1,isKeyboardDismissDisabled:o=!1,shouldCloseOnInteractOutside:l}=e;R.useEffect(()=>(i&&ol.push(t),()=>{let v=ol.indexOf(t);v>=0&&ol.splice(v,1)}),[i,t]);let s=()=>{ol[ol.length-1]===t&&n&&n()},u=v=>{(!l||l(v.target))&&ol[ol.length-1]===t&&(v.stopPropagation(),v.preventDefault())},c=v=>{(!l||l(v.target))&&(ol[ol.length-1]===t&&(v.stopPropagation(),v.preventDefault()),s())},f=v=>{v.key==="Escape"&&!o&&!v.nativeEvent.isComposing&&(v.stopPropagation(),v.preventDefault(),s())};b0e({ref:t,onInteractOutside:a&&i?c:null,onInteractOutsideStart:u});let{focusWithinProps:p}=Bg({isDisabled:!r,onBlurWithin:v=>{!v.relatedTarget||T0e(v.relatedTarget)||(!l||l(v.relatedTarget))&&n()}}),g=v=>{v.target===v.currentTarget&&v.preventDefault()};return{overlayProps:{onKeyDown:f,...p},underlayProps:{onPointerDown:g}}}function F0e(e,t,n){let{type:r}=e,{isOpen:i}=t;R.useEffect(()=>{n&&n.current&&$q.set(n.current,t.close)});let a;r==="menu"?a=!0:r==="listbox"&&(a="listbox");let o=$a();return{triggerProps:{"aria-haspopup":a,"aria-expanded":i,"aria-controls":i?o:null,onPress:t.toggle},overlayProps:{id:o}}}const yw=typeof document<"u"&&window.visualViewport,N0e=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);let Hm=0,_w;function FWe(e={}){let{isDisabled:t}=e;qt(()=>{if(!t)return Hm++,Hm===1&&(N1()?_w=U0e():_w=z0e()),()=>{Hm--,Hm===0&&_w()}},[t])}function z0e(){return oc(zf(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),zf(document.documentElement,"overflow","hidden"))}function U0e(){let e,t,n=u=>{e=Sq(u.target,!0),!(e===document.documentElement&&e===document.body)&&e instanceof HTMLElement&&window.getComputedStyle(e).overscrollBehavior==="auto"&&(t=zf(e,"overscrollBehavior","contain"))},r=u=>{if(!e||e===document.documentElement||e===document.body){u.preventDefault();return}e.scrollHeight===e.clientHeight&&e.scrollWidth===e.clientWidth&&u.preventDefault()},i=u=>{let c=u.target;UM(c)&&c!==document.activeElement&&(u.preventDefault(),l(),c.style.transform="translateY(-2000px)",c.focus(),requestAnimationFrame(()=>{c.style.transform=""})),t&&t()},a=u=>{let c=u.target;UM(c)&&(l(),c.style.transform="translateY(-2000px)",requestAnimationFrame(()=>{c.style.transform="",yw&&(yw.height<window.innerHeight?requestAnimationFrame(()=>{zM(c)}):yw.addEventListener("resize",()=>zM(c),{once:!0}))}))},o=null,l=()=>{if(o)return;let u=()=>{window.scrollTo(0,0)},c=window.pageXOffset,f=window.pageYOffset;o=oc(Fh(window,"scroll",u),zf(document.documentElement,"paddingRight",`${window.innerWidth-document.documentElement.clientWidth}px`),zf(document.documentElement,"overflow","hidden"),zf(document.body,"marginTop",`-${f}px`),()=>{window.scrollTo(c,f)}),window.scrollTo(0,0)},s=oc(Fh(document,"touchstart",n,{passive:!1,capture:!0}),Fh(document,"touchmove",r,{passive:!1,capture:!0}),Fh(document,"touchend",i,{passive:!1,capture:!0}),Fh(document,"focus",a,!0));return()=>{t==null||t(),o==null||o(),s()}}function zf(e,t,n){let r=e.style[t];return e.style[t]=n,()=>{e.style[t]=r}}function Fh(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function zM(e){let t=document.scrollingElement||document.documentElement;for(;e&&e!==t;){let n=Sq(e);if(n!==document.documentElement&&n!==document.body&&n!==e){let r=n.getBoundingClientRect().top,i=e.getBoundingClientRect().top;i>r+e.clientHeight&&(n.scrollTop+=i-r)}e=n.parentElement}}function UM(e){return e instanceof HTMLInputElement&&!N0e.has(e.type)||e instanceof HTMLTextAreaElement||e instanceof HTMLElement&&e.isContentEditable}const Wy=pe.createContext(null);function q0e(e){let{children:t}=e,n=R.useContext(Wy),[r,i]=R.useState(0),a=R.useMemo(()=>({parent:n,modalCount:r,addModal(){i(o=>o+1),n&&n.addModal()},removeModal(){i(o=>o-1),n&&n.removeModal()}}),[n,r]);return pe.createElement(Wy.Provider,{value:a},t)}function j0e(){let e=R.useContext(Wy);return{modalProviderProps:{"aria-hidden":e&&e.modalCount>0?!0:null}}}function V0e(e){let{modalProviderProps:t}=j0e();return pe.createElement("div",{"data-overlay-container":!0,...e,...t})}function NWe(e){return pe.createElement(q0e,null,pe.createElement(V0e,e))}function zWe(e){let t=R.useContext(Wy);if(!t)throw new Error("Modal is not contained within a provider");return R.useEffect(()=>{if(!(!t||!t.parent))return t.parent.addModal(),()=>{t&&t.parent&&t.parent.removeModal()}},[t,t.parent,void 0]),{modalProps:{"data-ismodal":!0}}}var zq={};zq={dismiss:"تجاهل"};var Uq={};Uq={dismiss:"Отхвърляне"};var qq={};qq={dismiss:"Odstranit"};var jq={};jq={dismiss:"Luk"};var Vq={};Vq={dismiss:"Schließen"};var Zq={};Zq={dismiss:"Απόρριψη"};var Wq={};Wq={dismiss:"Dismiss"};var Xq={};Xq={dismiss:"Descartar"};var Yq={};Yq={dismiss:"Lõpeta"};var Gq={};Gq={dismiss:"Hylkää"};var Bq={};Bq={dismiss:"Rejeter"};var Hq={};Hq={dismiss:"התעלם"};var Kq={};Kq={dismiss:"Odbaci"};var Jq={};Jq={dismiss:"Elutasítás"};var ej={};ej={dismiss:"Ignora"};var tj={};tj={dismiss:"閉じる"};var nj={};nj={dismiss:"무시"};var rj={};rj={dismiss:"Atmesti"};var ij={};ij={dismiss:"Nerādīt"};var aj={};aj={dismiss:"Lukk"};var oj={};oj={dismiss:"Negeren"};var lj={};lj={dismiss:"Zignoruj"};var sj={};sj={dismiss:"Descartar"};var uj={};uj={dismiss:"Dispensar"};var cj={};cj={dismiss:"Revocare"};var fj={};fj={dismiss:"Пропустить"};var dj={};dj={dismiss:"Zrušiť"};var hj={};hj={dismiss:"Opusti"};var pj={};pj={dismiss:"Odbaci"};var gj={};gj={dismiss:"Avvisa"};var vj={};vj={dismiss:"Kapat"};var mj={};mj={dismiss:"Скасувати"};var Oj={};Oj={dismiss:"取消"};var yj={};yj={dismiss:"關閉"};var _j={};_j={"ar-AE":zq,"bg-BG":Uq,"cs-CZ":qq,"da-DK":jq,"de-DE":Vq,"el-GR":Zq,"en-US":Wq,"es-ES":Xq,"et-EE":Yq,"fi-FI":Gq,"fr-FR":Bq,"he-IL":Hq,"hr-HR":Kq,"hu-HU":Jq,"it-IT":ej,"ja-JP":tj,"ko-KR":nj,"lt-LT":rj,"lv-LV":ij,"nb-NO":aj,"nl-NL":oj,"pl-PL":lj,"pt-BR":sj,"pt-PT":uj,"ro-RO":cj,"ru-RU":fj,"sk-SK":dj,"sl-SI":hj,"sr-SP":pj,"sv-SE":gj,"tr-TR":vj,"uk-UA":mj,"zh-CN":Oj,"zh-TW":yj};const qM={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"};function Sj(e={}){let{style:t,isFocusable:n}=e,[r,i]=R.useState(!1),{focusWithinProps:a}=Bg({isDisabled:!n,onFocusWithinChange:l=>i(l)}),o=R.useMemo(()=>r?t:t?{...qM,...t}:qM,[r]);return{visuallyHiddenProps:{...a,style:o}}}function Z0e(e){let{children:t,elementType:n="div",isFocusable:r,style:i,...a}=e,{visuallyHiddenProps:o}=Sj(e);return pe.createElement(n,mt(a,o),t)}function W0e(e){return e&&e.__esModule?e.default:e}function UWe(e){let{onDismiss:t,...n}=e,r=Nk(W0e(_j),"@react-aria/overlays"),i=Oq(n,r.format("dismiss")),a=()=>{t&&t()};return pe.createElement(Z0e,null,pe.createElement("button",{...i,tabIndex:-1,onClick:a,style:{width:1,height:1}}))}const X0e=pe.createContext(null);function Y0e(){let e=R.useContext(X0e),t=e==null?void 0:e.setContain;qt(()=>{t==null||t(!0)},[t])}function Wk(e){let[t,n]=Xs(e.isOpen,e.defaultOpen||!1,e.onOpenChange);const r=R.useCallback(()=>{n(!0)},[n]),i=R.useCallback(()=>{n(!1)},[n]),a=R.useCallback(()=>{n(!t)},[n,t]);return{isOpen:t,setOpen:n,open:r,close:i,toggle:a}}function qWe(e,t){let{role:n="dialog"}=e,r=Rs();r=e["aria-label"]?void 0:r;let i=R.useRef(!1);return R.useEffect(()=>{if(t.current&&!t.current.contains(document.activeElement)){cc(t.current);let a=setTimeout(()=>{document.activeElement===t.current&&(i.current=!0,t.current&&(t.current.blur(),cc(t.current)),i.current=!1)},500);return()=>{clearTimeout(a)}}},[t]),Y0e(),{dialogProps:{...Fr(e,{labelable:!0}),role:n,tabIndex:-1,"aria-labelledby":e["aria-labelledby"]||r,onBlur:a=>{i.current&&a.stopPropagation()}},titleProps:{id:r}}}function Xk(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}function hg(e,t){return hg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},hg(e,t)}function j1(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,hg(e,t)}var bj={exports:{}},G0e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",B0e=G0e,H0e=B0e;function wj(){}function $j(){}$j.resetWarningCache=wj;var K0e=function(){function e(r,i,a,o,l,s){if(s!==H0e){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:$j,resetWarningCache:wj};return n.PropTypes=n,n};bj.exports=K0e();var J0e=bj.exports;const dt=St(J0e),jM={disabled:!1},Xy=pe.createContext(null);var xj=function(t){return t.scrollTop},hp="unmounted",$u="exited",xu="entering",gf="entered",vP="exiting",Nl=function(e){j1(t,e);function t(r,i){var a;a=e.call(this,r,i)||this;var o=i,l=o&&!o.isMounting?r.enter:r.appear,s;return a.appearStatus=null,r.in?l?(s=$u,a.appearStatus=xu):s=gf:r.unmountOnExit||r.mountOnEnter?s=hp:s=$u,a.state={status:s},a.nextCallback=null,a}t.getDerivedStateFromProps=function(i,a){var o=i.in;return o&&a.status===hp?{status:$u}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(i){var a=null;if(i!==this.props){var o=this.state.status;this.props.in?o!==xu&&o!==gf&&(a=xu):(o===xu||o===gf)&&(a=vP)}this.updateStatus(!1,a)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var i=this.props.timeout,a,o,l;return a=o=l=i,i!=null&&typeof i!="number"&&(a=i.exit,o=i.enter,l=i.appear!==void 0?i.appear:o),{exit:a,enter:o,appear:l}},n.updateStatus=function(i,a){if(i===void 0&&(i=!1),a!==null)if(this.cancelNextCallback(),a===xu){if(this.props.unmountOnExit||this.props.mountOnEnter){var o=this.props.nodeRef?this.props.nodeRef.current:$m.findDOMNode(this);o&&xj(o)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===$u&&this.setState({status:hp})},n.performEnter=function(i){var a=this,o=this.props.enter,l=this.context?this.context.isMounting:i,s=this.props.nodeRef?[l]:[$m.findDOMNode(this),l],u=s[0],c=s[1],f=this.getTimeouts(),p=l?f.appear:f.enter;if(!i&&!o||jM.disabled){this.safeSetState({status:gf},function(){a.props.onEntered(u)});return}this.props.onEnter(u,c),this.safeSetState({status:xu},function(){a.props.onEntering(u,c),a.onTransitionEnd(p,function(){a.safeSetState({status:gf},function(){a.props.onEntered(u,c)})})})},n.performExit=function(){var i=this,a=this.props.exit,o=this.getTimeouts(),l=this.props.nodeRef?void 0:$m.findDOMNode(this);if(!a||jM.disabled){this.safeSetState({status:$u},function(){i.props.onExited(l)});return}this.props.onExit(l),this.safeSetState({status:vP},function(){i.props.onExiting(l),i.onTransitionEnd(o.exit,function(){i.safeSetState({status:$u},function(){i.props.onExited(l)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(i,a){a=this.setNextCallback(a),this.setState(i,a)},n.setNextCallback=function(i){var a=this,o=!0;return this.nextCallback=function(l){o&&(o=!1,a.nextCallback=null,i(l))},this.nextCallback.cancel=function(){o=!1},this.nextCallback},n.onTransitionEnd=function(i,a){this.setNextCallback(a);var o=this.props.nodeRef?this.props.nodeRef.current:$m.findDOMNode(this),l=i==null&&!this.props.addEndListener;if(!o||l){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var s=this.props.nodeRef?[this.nextCallback]:[o,this.nextCallback],u=s[0],c=s[1];this.props.addEndListener(u,c)}i!=null&&setTimeout(this.nextCallback,i)},n.render=function(){var i=this.state.status;if(i===hp)return null;var a=this.props,o=a.children;a.in,a.mountOnEnter,a.unmountOnExit,a.appear,a.enter,a.exit,a.timeout,a.addEndListener,a.onEnter,a.onEntering,a.onEntered,a.onExit,a.onExiting,a.onExited,a.nodeRef;var l=Xk(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return pe.createElement(Xy.Provider,{value:null},typeof o=="function"?o(i,l):pe.cloneElement(pe.Children.only(o),l))},t}(pe.Component);Nl.contextType=Xy;Nl.propTypes={};function af(){}Nl.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:af,onEntering:af,onEntered:af,onExit:af,onExiting:af,onExited:af};Nl.UNMOUNTED=hp;Nl.EXITED=$u;Nl.ENTERING=xu;Nl.ENTERED=gf;Nl.EXITING=vP;function Pj(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=Pj(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function jWe(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=Pj(e))&&(r&&(r+=" "),r+=t);return r}function Ej(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function mP(e){return mP=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},mP(e)}function e1e(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function Rj(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Rj=function(){return!!e})()}function t1e(e,t,n){if(Rj())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var i=new(e.bind.apply(e,r));return n&&hg(i,n.prototype),i}function OP(e){var t=typeof Map=="function"?new Map:void 0;return OP=function(r){if(r===null||!e1e(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(r))return t.get(r);t.set(r,i)}function i(){return t1e(r,arguments,mP(this).constructor)}return i.prototype=Object.create(r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),hg(i,r)},OP(e)}var To=function(e){j1(t,e);function t(n){var r;return r=e.call(this,"An error occurred. See https://github.com/styled-components/polished/blob/main/src/internalHelpers/errors.md#"+n+" for more information.")||this,Ej(r)}return t}(OP(Error));function Sw(e){return Math.round(e*255)}function n1e(e,t,n){return Sw(e)+","+Sw(t)+","+Sw(n)}function pg(e,t,n,r){if(r===void 0&&(r=n1e),t===0)return r(n,n,n);var i=(e%360+360)%360/60,a=(1-Math.abs(2*n-1))*t,o=a*(1-Math.abs(i%2-1)),l=0,s=0,u=0;i>=0&&i<1?(l=a,s=o):i>=1&&i<2?(l=o,s=a):i>=2&&i<3?(s=a,u=o):i>=3&&i<4?(s=o,u=a):i>=4&&i<5?(l=o,u=a):i>=5&&i<6&&(l=a,u=o);var c=n-a/2,f=l+c,p=s+c,g=u+c;return r(f,p,g)}var VM={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};function r1e(e){if(typeof e!="string")return e;var t=e.toLowerCase();return VM[t]?"#"+VM[t]:e}var i1e=/^#[a-fA-F0-9]{6}$/,a1e=/^#[a-fA-F0-9]{8}$/,o1e=/^#[a-fA-F0-9]{3}$/,l1e=/^#[a-fA-F0-9]{4}$/,bw=/^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i,s1e=/^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i,u1e=/^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,c1e=/^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;function gd(e){if(typeof e!="string")throw new To(3);var t=r1e(e);if(t.match(i1e))return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16)};if(t.match(a1e)){var n=parseFloat((parseInt(""+t[7]+t[8],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16),alpha:n}}if(t.match(o1e))return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16)};if(t.match(l1e)){var r=parseFloat((parseInt(""+t[4]+t[4],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16),alpha:r}}var i=bw.exec(t);if(i)return{red:parseInt(""+i[1],10),green:parseInt(""+i[2],10),blue:parseInt(""+i[3],10)};var a=s1e.exec(t.substring(0,50));if(a)return{red:parseInt(""+a[1],10),green:parseInt(""+a[2],10),blue:parseInt(""+a[3],10),alpha:parseFloat(""+a[4])>1?parseFloat(""+a[4])/100:parseFloat(""+a[4])};var o=u1e.exec(t);if(o){var l=parseInt(""+o[1],10),s=parseInt(""+o[2],10)/100,u=parseInt(""+o[3],10)/100,c="rgb("+pg(l,s,u)+")",f=bw.exec(c);if(!f)throw new To(4,t,c);return{red:parseInt(""+f[1],10),green:parseInt(""+f[2],10),blue:parseInt(""+f[3],10)}}var p=c1e.exec(t.substring(0,50));if(p){var g=parseInt(""+p[1],10),v=parseInt(""+p[2],10)/100,m=parseInt(""+p[3],10)/100,_="rgb("+pg(g,v,m)+")",O=bw.exec(_);if(!O)throw new To(4,t,_);return{red:parseInt(""+O[1],10),green:parseInt(""+O[2],10),blue:parseInt(""+O[3],10),alpha:parseFloat(""+p[4])>1?parseFloat(""+p[4])/100:parseFloat(""+p[4])}}throw new To(5)}function f1e(e){var t=e.red/255,n=e.green/255,r=e.blue/255,i=Math.max(t,n,r),a=Math.min(t,n,r),o=(i+a)/2;if(i===a)return e.alpha!==void 0?{hue:0,saturation:0,lightness:o,alpha:e.alpha}:{hue:0,saturation:0,lightness:o};var l,s=i-a,u=o>.5?s/(2-i-a):s/(i+a);switch(i){case t:l=(n-r)/s+(n<r?6:0);break;case n:l=(r-t)/s+2;break;default:l=(t-n)/s+4;break}return l*=60,e.alpha!==void 0?{hue:l,saturation:u,lightness:o,alpha:e.alpha}:{hue:l,saturation:u,lightness:o}}function Ys(e){return f1e(gd(e))}var d1e=function(t){return t.length===7&&t[1]===t[2]&&t[3]===t[4]&&t[5]===t[6]?"#"+t[1]+t[3]+t[5]:t},yP=d1e;function Pu(e){var t=e.toString(16);return t.length===1?"0"+t:t}function ww(e){return Pu(Math.round(e*255))}function h1e(e,t,n){return yP("#"+ww(e)+ww(t)+ww(n))}function Yy(e,t,n){return pg(e,t,n,h1e)}function p1e(e,t,n){if(typeof e=="number"&&typeof t=="number"&&typeof n=="number")return Yy(e,t,n);if(typeof e=="object"&&t===void 0&&n===void 0)return Yy(e.hue,e.saturation,e.lightness);throw new To(1)}function g1e(e,t,n,r){if(typeof e=="number"&&typeof t=="number"&&typeof n=="number"&&typeof r=="number")return r>=1?Yy(e,t,n):"rgba("+pg(e,t,n)+","+r+")";if(typeof e=="object"&&t===void 0&&n===void 0&&r===void 0)return e.alpha>=1?Yy(e.hue,e.saturation,e.lightness):"rgba("+pg(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new To(2)}function _P(e,t,n){if(typeof e=="number"&&typeof t=="number"&&typeof n=="number")return yP("#"+Pu(e)+Pu(t)+Pu(n));if(typeof e=="object"&&t===void 0&&n===void 0)return yP("#"+Pu(e.red)+Pu(e.green)+Pu(e.blue));throw new To(6)}function V1(e,t,n,r){if(typeof e=="string"&&typeof t=="number"){var i=gd(e);return"rgba("+i.red+","+i.green+","+i.blue+","+t+")"}else{if(typeof e=="number"&&typeof t=="number"&&typeof n=="number"&&typeof r=="number")return r>=1?_P(e,t,n):"rgba("+e+","+t+","+n+","+r+")";if(typeof e=="object"&&t===void 0&&n===void 0&&r===void 0)return e.alpha>=1?_P(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")"}throw new To(7)}var v1e=function(t){return typeof t.red=="number"&&typeof t.green=="number"&&typeof t.blue=="number"&&(typeof t.alpha!="number"||typeof t.alpha>"u")},m1e=function(t){return typeof t.red=="number"&&typeof t.green=="number"&&typeof t.blue=="number"&&typeof t.alpha=="number"},O1e=function(t){return typeof t.hue=="number"&&typeof t.saturation=="number"&&typeof t.lightness=="number"&&(typeof t.alpha!="number"||typeof t.alpha>"u")},y1e=function(t){return typeof t.hue=="number"&&typeof t.saturation=="number"&&typeof t.lightness=="number"&&typeof t.alpha=="number"};function Gs(e){if(typeof e!="object")throw new To(8);if(m1e(e))return V1(e);if(v1e(e))return _P(e);if(y1e(e))return g1e(e);if(O1e(e))return p1e(e);throw new To(8)}function kj(e,t,n){return function(){var i=n.concat(Array.prototype.slice.call(arguments));return i.length>=t?e.apply(this,i):kj(e,t,i)}}function Gi(e){return kj(e,e.length,[])}function _1e(e,t){if(t==="transparent")return t;var n=Ys(t);return Gs(gn({},n,{hue:n.hue+parseFloat(e)}))}Gi(_1e);function Ld(e,t,n){return Math.max(e,Math.min(t,n))}function S1e(e,t){if(t==="transparent")return t;var n=Ys(t);return Gs(gn({},n,{lightness:Ld(0,1,n.lightness-parseFloat(e))}))}var b1e=Gi(S1e),VWe=b1e;function w1e(e,t){if(t==="transparent")return t;var n=Ys(t);return Gs(gn({},n,{saturation:Ld(0,1,n.saturation-parseFloat(e))}))}Gi(w1e);function $1e(e,t){if(t==="transparent")return t;var n=Ys(t);return Gs(gn({},n,{lightness:Ld(0,1,n.lightness+parseFloat(e))}))}var x1e=Gi($1e),ZWe=x1e;function P1e(e,t,n){if(t==="transparent")return n;if(n==="transparent")return t;if(e===0)return n;var r=gd(t),i=gn({},r,{alpha:typeof r.alpha=="number"?r.alpha:1}),a=gd(n),o=gn({},a,{alpha:typeof a.alpha=="number"?a.alpha:1}),l=i.alpha-o.alpha,s=parseFloat(e)*2-1,u=s*l===-1?s:s+l,c=1+s*l,f=(u/c+1)/2,p=1-f,g={red:Math.floor(i.red*f+o.red*p),green:Math.floor(i.green*f+o.green*p),blue:Math.floor(i.blue*f+o.blue*p),alpha:i.alpha*parseFloat(e)+o.alpha*(1-parseFloat(e))};return V1(g)}var E1e=Gi(P1e),Tj=E1e;function R1e(e,t){if(t==="transparent")return t;var n=gd(t),r=typeof n.alpha=="number"?n.alpha:1,i=gn({},n,{alpha:Ld(0,1,(r*100+parseFloat(e)*100)/100)});return V1(i)}Gi(R1e);function k1e(e,t){if(t==="transparent")return t;var n=Ys(t);return Gs(gn({},n,{saturation:Ld(0,1,n.saturation+parseFloat(e))}))}Gi(k1e);function T1e(e,t){return t==="transparent"?t:Gs(gn({},Ys(t),{hue:parseFloat(e)}))}Gi(T1e);function C1e(e,t){return t==="transparent"?t:Gs(gn({},Ys(t),{lightness:parseFloat(e)}))}Gi(C1e);function Q1e(e,t){return t==="transparent"?t:Gs(gn({},Ys(t),{saturation:parseFloat(e)}))}Gi(Q1e);function A1e(e,t){return t==="transparent"?t:Tj(parseFloat(e),"rgb(0, 0, 0)",t)}var I1e=Gi(A1e),WWe=I1e;function D1e(e,t){return t==="transparent"?t:Tj(parseFloat(e),"rgb(255, 255, 255)",t)}Gi(D1e);function M1e(e,t){if(t==="transparent")return t;var n=gd(t),r=typeof n.alpha=="number"?n.alpha:1,i=gn({},n,{alpha:Ld(0,1,+(r*100-parseFloat(e)*100).toFixed(2)/100)});return V1(i)}var L1e=Gi(M1e),XWe=L1e;function YWe(e,t){let{elementType:n="button",isDisabled:r,onPress:i,onPressStart:a,onPressEnd:o,onPressUp:l,onPressChange:s,preventFocusOnPress:u,allowFocusWhenDisabled:c,onClick:f,href:p,target:g,rel:v,type:m="button"}=e,_;n==="button"?_={type:m,disabled:r}:_={role:"button",tabIndex:r?void 0:0,href:n==="a"&&r?void 0:p,target:n==="a"?g:void 0,type:n==="input"?m:void 0,disabled:n==="input"?r:void 0,"aria-disabled":!r||n==="input"?void 0:r,rel:n==="a"?v:void 0};let{pressProps:O,isPressed:S}=kl({onPressStart:a,onPressEnd:o,onPressChange:s,onPress:i,onPressUp:l,isDisabled:r,preventFocusOnPress:u,ref:t}),{focusableProps:b}=Rc(e,t);c&&(b.tabIndex=r?-1:b.tabIndex);let P=mt(b,O,Fr(e,{labelable:!0}));return{isPressed:S,buttonProps:mt(_,P,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],onClick:E=>{f&&(f(E),console.warn("onClick is deprecated, please use onPress"))}})}}function GWe(e,t){let n=Fr(e,{labelable:!0}),{hoverProps:r}=q1({onHoverStart:()=>t==null?void 0:t.open(!0),onHoverEnd:()=>t==null?void 0:t.close()});return{tooltipProps:mt(n,r,{role:"tooltip"})}}function BWe(e,t,n){let{isDisabled:r,trigger:i}=e,a=$a(),o=R.useRef(!1),l=R.useRef(!1),s=()=>{(o.current||l.current)&&t.open(l.current)},u=O=>{!o.current&&!l.current&&t.close(O)};R.useEffect(()=>{let O=S=>{n&&n.current&&S.key==="Escape"&&(S.stopPropagation(),t.close(!0))};if(t.isOpen)return document.addEventListener("keydown",O,!0),()=>{document.removeEventListener("keydown",O,!0)}},[n,t]);let c=()=>{i!=="focus"&&(pd()==="pointer"?o.current=!0:o.current=!1,s())},f=()=>{i!=="focus"&&(l.current=!1,o.current=!1,u())},p=()=>{l.current=!1,o.current=!1,u(!0)},g=()=>{hd()&&(l.current=!0,s())},v=()=>{l.current=!1,o.current=!1,u(!0)},{hoverProps:m}=q1({isDisabled:r,onHoverStart:c,onHoverEnd:f}),{focusableProps:_}=Rc({isDisabled:r,onFocus:g,onBlur:v},n);return{triggerProps:{"aria-describedby":t.isOpen?a:void 0,...mt(_,m,{onPointerDown:p,onKeyDown:p})},tooltipProps:{id:a}}}const F1e=1500,ZM=500;let vu={},N1e=0,Nh=!1,ll=null,mu=null;function HWe(e={}){let{delay:t=F1e,closeDelay:n=ZM}=e,{isOpen:r,open:i,close:a}=Wk(e),o=R.useMemo(()=>`${++N1e}`,[]),l=R.useRef(),s=()=>{vu[o]=f},u=()=>{for(let g in vu)g!==o&&(vu[g](!0),delete vu[g])},c=()=>{clearTimeout(l.current),l.current=null,u(),s(),Nh=!0,i(),ll&&(clearTimeout(ll),ll=null),mu&&(clearTimeout(mu),mu=null)},f=g=>{g||n<=0?(clearTimeout(l.current),l.current=null,a()):l.current||(l.current=setTimeout(()=>{l.current=null,a()},n)),ll&&(clearTimeout(ll),ll=null),Nh&&(mu&&clearTimeout(mu),mu=setTimeout(()=>{delete vu[o],mu=null,Nh=!1},Math.max(ZM,n)))},p=()=>{u(),s(),!r&&!ll&&!Nh?ll=setTimeout(()=>{ll=null,Nh=!0,c()},t):r||c()};return R.useEffect(()=>()=>{clearTimeout(l.current),vu[o]&&delete vu[o]},[o]),{isOpen:r,open:g=>{!g&&t>0&&!l.current?p():c()},close:f}}const Cj={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!0},Qj={...Cj,customError:!0,valid:!1},zh={isInvalid:!1,validationDetails:Cj,validationErrors:[]},z1e=R.createContext({}),WM="__formValidationState"+Date.now();function Yk(e){if(e[WM]){let{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:a}=e[WM];return{realtimeValidation:t,displayValidation:n,updateValidation:r,resetValidation:i,commitValidation:a}}return U1e(e)}function U1e(e){let{isInvalid:t,validationState:n,name:r,value:i,builtinValidation:a,validate:o,validationBehavior:l="aria"}=e;n&&(t||(t=n==="invalid"));let s=t!==void 0?{isInvalid:t,validationErrors:[],validationDetails:Qj}:null,u=R.useMemo(()=>XM(q1e(o,i)),[o,i]);a!=null&&a.validationDetails.valid&&(a=null);let c=R.useContext(z1e),f=R.useMemo(()=>r?Array.isArray(r)?r.flatMap(T=>SP(c[T])):SP(c[r]):[],[c,r]),[p,g]=R.useState(c),[v,m]=R.useState(!1);c!==p&&(g(c),m(!1));let _=R.useMemo(()=>XM(v?[]:f),[v,f]),O=R.useRef(zh),[S,b]=R.useState(zh),P=R.useRef(zh),E=()=>{if(!$)return;Q(!1);let T=u||a||O.current;$w(T,P.current)||(P.current=T,b(T))},[$,Q]=R.useState(!1);return R.useEffect(E),{realtimeValidation:s||_||u||a||zh,displayValidation:l==="native"?s||_||S:s||_||u||a||S,updateValidation(T){l==="aria"&&!$w(S,T)?b(T):O.current=T},resetValidation(){let T=zh;$w(T,P.current)||(P.current=T,b(T)),l==="native"&&Q(!1),m(!0)},commitValidation(){l==="native"&&Q(!0),m(!0)}}}function SP(e){return e?Array.isArray(e)?e:[e]:[]}function q1e(e,t){if(typeof e=="function"){let n=e(t);if(n&&typeof n!="boolean")return SP(n)}return[]}function XM(e){return e.length?{isInvalid:!0,validationErrors:e,validationDetails:Qj}:null}function $w(e,t){return e===t?!0:e&&t&&e.isInvalid===t.isInvalid&&e.validationErrors.length===t.validationErrors.length&&e.validationErrors.every((n,r)=>n===t.validationErrors[r])&&Object.entries(e.validationDetails).every(([n,r])=>t.validationDetails[n]===r)}let j1e=Math.round(Math.random()*1e10),V1e=0;function KWe(e){let t=R.useMemo(()=>e.name||`radio-group-${j1e}-${++V1e}`,[e.name]);var n;let[r,i]=Xs(e.value,(n=e.defaultValue)!==null&&n!==void 0?n:null,e.onChange),[a,o]=R.useState(null),l=Yk({...e,value:r}),s=c=>{!e.isReadOnly&&!e.isDisabled&&(i(c),l.commitValidation())},u=l.displayValidation.isInvalid;return{...l,name:t,selectedValue:r,setSelectedValue:s,lastFocusedValue:a,setLastFocusedValue:o,isDisabled:e.isDisabled||!1,isReadOnly:e.isReadOnly||!1,isRequired:e.isRequired||!1,validationState:e.validationState||(u?"invalid":null),isInvalid:u}}const Aj=new WeakMap;function Gk(e,t,n){let{validationBehavior:r,focus:i}=e;qt(()=>{if(r==="native"&&(n!=null&&n.current)){let s=t.realtimeValidation.isInvalid?t.realtimeValidation.validationErrors.join(" ")||"Invalid value.":"";n.current.setCustomValidity(s),n.current.hasAttribute("title")||(n.current.title=""),t.realtimeValidation.isInvalid||t.updateValidation(W1e(n.current))}});let a=pr(()=>{t.resetValidation()}),o=pr(s=>{var u;t.displayValidation.isInvalid||t.commitValidation();let c=n==null||(u=n.current)===null||u===void 0?void 0:u.form;if(!s.defaultPrevented&&n&&c&&X1e(c)===n.current){var f;i?i():(f=n.current)===null||f===void 0||f.focus(),qk("keyboard")}s.preventDefault()}),l=pr(()=>{t.commitValidation()});R.useEffect(()=>{let s=n==null?void 0:n.current;if(!s)return;let u=s.form;return s.addEventListener("invalid",o),s.addEventListener("change",l),u==null||u.addEventListener("reset",a),()=>{s.removeEventListener("invalid",o),s.removeEventListener("change",l),u==null||u.removeEventListener("reset",a)}},[n,o,l,a,r])}function Z1e(e){let t=e.validity;return{badInput:t.badInput,customError:t.customError,patternMismatch:t.patternMismatch,rangeOverflow:t.rangeOverflow,rangeUnderflow:t.rangeUnderflow,stepMismatch:t.stepMismatch,tooLong:t.tooLong,tooShort:t.tooShort,typeMismatch:t.typeMismatch,valueMissing:t.valueMissing,valid:t.valid}}function W1e(e){return{isInvalid:!e.validity.valid,validationDetails:Z1e(e),validationErrors:e.validationMessage?[e.validationMessage]:[]}}function X1e(e){for(let t=0;t<e.elements.length;t++){let n=e.elements[t];if(!n.validity.valid)return n}return null}function JWe(e,t,n){let{value:r,children:i,"aria-label":a,"aria-labelledby":o}=e;const l=e.isDisabled||t.isDisabled;let s=i!=null,u=a!=null||o!=null;!s&&!u&&console.warn("If you do not provide children, you must specify an aria-label for accessibility");let c=t.selectedValue===r,f=k=>{k.stopPropagation(),t.setSelectedValue(r)},{pressProps:p,isPressed:g}=kl({isDisabled:l}),{pressProps:v,isPressed:m}=kl({isDisabled:l,onPress(){t.setSelectedValue(r)}}),{focusableProps:_}=Rc(mt(e,{onFocus:()=>t.setLastFocusedValue(r)}),n),O=mt(p,_),S=Fr(e,{labelable:!0}),b=-1;t.selectedValue!=null?t.selectedValue===r&&(b=0):(t.lastFocusedValue===r||t.lastFocusedValue==null)&&(b=0),l&&(b=void 0);let{name:P,descriptionId:E,errorMessageId:$,validationBehavior:Q}=Aj.get(t);return Gg(n,t.selectedValue,t.setSelectedValue),Gk({validationBehavior:Q},t,n),{labelProps:mt(v,{onClick:k=>k.preventDefault()}),inputProps:mt(S,{...O,type:"radio",name:P,tabIndex:b,disabled:l,required:t.isRequired&&Q==="native",checked:c,value:r,onChange:f,"aria-describedby":[e["aria-describedby"],t.isInvalid?$:null,E].filter(Boolean).join(" ")||void 0}),isDisabled:l,isSelected:c,isPressed:g||m}}function Hg(e){let{id:t,label:n,"aria-labelledby":r,"aria-label":i,labelElementType:a="label"}=e;t=$a(t);let o=$a(),l={};n?(r=r?`${o} ${r}`:o,l={id:o,htmlFor:a==="label"?t:void 0}):!r&&!i&&console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility");let s=Oq({id:t,"aria-label":i,"aria-labelledby":r});return{labelProps:l,fieldProps:s}}function Bk(e){let{description:t,errorMessage:n,isInvalid:r,validationState:i}=e,{labelProps:a,fieldProps:o}=Hg(e),l=Rs([!!t,!!n,r,i]),s=Rs([!!t,!!n,r,i]);return o=mt(o,{"aria-describedby":[l,s,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:a,fieldProps:o,descriptionProps:{id:l},errorMessageProps:{id:s}}}function eXe(e,t){let{name:n,isReadOnly:r,isRequired:i,isDisabled:a,orientation:o="vertical",validationBehavior:l="aria"}=e,{direction:s}=Vo(),{isInvalid:u,validationErrors:c,validationDetails:f}=t.displayValidation,{labelProps:p,fieldProps:g,descriptionProps:v,errorMessageProps:m}=Bk({...e,labelElementType:"span",isInvalid:t.isInvalid,errorMessage:e.errorMessage||c}),_=Fr(e,{labelable:!0}),{focusWithinProps:O}=Bg({onBlurWithin(P){var E;(E=e.onBlur)===null||E===void 0||E.call(e,P),t.selectedValue||t.setLastFocusedValue(null)},onFocusWithin:e.onFocus,onFocusWithinChange:e.onFocusChange}),S=P=>{let E;switch(P.key){case"ArrowRight":s==="rtl"&&o!=="vertical"?E="prev":E="next";break;case"ArrowLeft":s==="rtl"&&o!=="vertical"?E="next":E="prev";break;case"ArrowDown":E="next";break;case"ArrowUp":E="prev";break;default:return}P.preventDefault();let $=ko(P.currentTarget,{from:P.target}),Q;E==="next"?(Q=$.nextNode(),Q||($.currentNode=P.currentTarget,Q=$.firstChild())):(Q=$.previousNode(),Q||($.currentNode=P.currentTarget,Q=$.lastChild())),Q&&(Q.focus(),t.setSelectedValue(Q.value))},b=$a(n);return Aj.set(t,{name:b,descriptionId:v.id,errorMessageId:m.id,validationBehavior:l}),{radioGroupProps:mt(_,{role:"radiogroup",onKeyDown:S,"aria-invalid":t.isInvalid||void 0,"aria-errormessage":e["aria-errormessage"],"aria-readonly":r||void 0,"aria-required":i||void 0,"aria-disabled":a||void 0,"aria-orientation":o,...g,...O}),labelProps:p,descriptionProps:v,errorMessageProps:m,isInvalid:u,validationErrors:c,validationDetails:f}}class YM{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(t){let n=this.keyMap.get(t);return n?n.prevKey:null}getKeyAfter(t){let n=this.keyMap.get(t);return n?n.nextKey:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(t){return this.keyMap.get(t)}at(t){const n=[...this.getKeys()];return this.getItem(n[t])}getChildren(t){let n=this.keyMap.get(t);return(n==null?void 0:n.childNodes)||[]}constructor(t){this.keyMap=new Map,this.iterable=t;let n=a=>{if(this.keyMap.set(a.key,a),a.childNodes&&a.type==="section")for(let o of a.childNodes)n(o)};for(let a of t)n(a);let r,i=0;for(let[a,o]of this.keyMap)r?(r.nextKey=a,o.prevKey=r.key):(this.firstKey=a,o.prevKey=void 0),o.type==="item"&&(o.index=i++),r=o,r.nextKey=void 0;this.lastKey=r==null?void 0:r.key}}class Na extends Set{constructor(t,n,r){super(t),t instanceof Na?(this.anchorKey=n||t.anchorKey,this.currentKey=r||t.currentKey):(this.anchorKey=n,this.currentKey=r)}}function Y1e(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}function Ij(e){let{selectionMode:t="none",disallowEmptySelection:n,allowDuplicateSelectionEvents:r,selectionBehavior:i="toggle",disabledBehavior:a="all"}=e,o=R.useRef(!1),[,l]=R.useState(!1),s=R.useRef(null),u=R.useRef(null),[,c]=R.useState(null),f=R.useMemo(()=>GM(e.selectedKeys),[e.selectedKeys]),p=R.useMemo(()=>GM(e.defaultSelectedKeys,new Na),[e.defaultSelectedKeys]),[g,v]=Xs(f,p,e.onSelectionChange),m=R.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),[_,O]=R.useState(i);i==="replace"&&_==="toggle"&&typeof g=="object"&&g.size===0&&O("replace");let S=R.useRef(i);return R.useEffect(()=>{i!==S.current&&(O(i),S.current=i)},[i]),{selectionMode:t,disallowEmptySelection:n,selectionBehavior:_,setSelectionBehavior:O,get isFocused(){return o.current},setFocused(b){o.current=b,l(b)},get focusedKey(){return s.current},get childFocusStrategy(){return u.current},setFocusedKey(b,P="first"){s.current=b,u.current=P,c(b)},selectedKeys:g,setSelectedKeys(b){(r||!Y1e(b,g))&&v(b)},disabledKeys:m,disabledBehavior:a}}function GM(e,t){return e?e==="all"?"all":new Na(e):t}function Dj(e){return null}Dj.getCollectionNode=function*(t,n){let{childItems:r,title:i,children:a}=t,o=t.title||t.children,l=t.textValue||(typeof o=="string"?o:"")||t["aria-label"]||"";!l&&!(n!=null&&n.suppressTextValueWarning)&&console.warn("<Item> with non-plain text contents is unsupported by type to select for accessibility. Please add a `textValue` prop."),yield{type:"item",props:t,rendered:o,textValue:l,"aria-label":t["aria-label"],hasChildNodes:G1e(t),*childNodes(){if(r)for(let s of r)yield{type:"item",value:s};else if(i){let s=[];pe.Children.forEach(a,u=>{s.push({type:"item",element:u})}),yield*s}}}};function G1e(e){return e.hasChildItems!=null?e.hasChildItems:!!(e.childItems||e.title&&pe.Children.count(e.children)>0)}let tXe=Dj;function Mj(e){return null}Mj.getCollectionNode=function*(t){let{children:n,title:r,items:i}=t;yield{type:"section",props:t,hasChildNodes:!0,rendered:r,"aria-label":t["aria-label"],*childNodes(){if(typeof n=="function"){if(!i)throw new Error("props.children was a function but props.items is missing");for(let a of i)yield{type:"item",value:a,renderer:n}}else{let a=[];pe.Children.forEach(n,o=>{a.push({type:"item",element:o})}),yield*a}}}};let nXe=Mj;class B1e{build(t,n){return this.context=n,BM(()=>this.iterateCollection(t))}*iterateCollection(t){let{children:n,items:r}=t;if(typeof n=="function"){if(!r)throw new Error("props.children was a function but props.items is missing");for(let i of t.items)yield*this.getFullNode({value:i},{renderer:n})}else{let i=[];pe.Children.forEach(n,o=>{i.push(o)});let a=0;for(let o of i){let l=this.getFullNode({element:o,index:a},{});for(let s of l)a++,yield s}}}getKey(t,n,r,i){if(t.key!=null)return t.key;if(n.type==="cell"&&n.key!=null)return`${i}${n.key}`;let a=n.value;if(a!=null){var o;let l=(o=a.key)!==null&&o!==void 0?o:a.id;if(l==null)throw new Error("No key found for item");return l}return i?`${i}.${n.index}`:`$.${n.index}`}getChildState(t,n){return{renderer:n.renderer||t.renderer}}*getFullNode(t,n,r,i){let a=t.element;if(!a&&t.value&&n&&n.renderer){let s=this.cache.get(t.value);if(s&&(!s.shouldInvalidate||!s.shouldInvalidate(this.context))){s.index=t.index,s.parentKey=i?i.key:null,yield s;return}a=n.renderer(t.value)}if(pe.isValidElement(a)){let s=a.type;if(typeof s!="function"&&typeof s.getCollectionNode!="function"){let p=typeof a.type=="function"?a.type.name:a.type;throw new Error(`Unknown element <${p}> in collection.`)}let u=s.getCollectionNode(a.props,this.context),c=t.index,f=u.next();for(;!f.done&&f.value;){let p=f.value;t.index=c;let g=p.key;g||(g=p.element?null:this.getKey(a,t,n,r));let m=[...this.getFullNode({...p,key:g,index:c,wrapper:H1e(t.wrapper,p.wrapper)},this.getChildState(n,p),r?`${r}${a.key}`:a.key,i)];for(let _ of m){if(_.value=p.value||t.value,_.value&&this.cache.set(_.value,_),t.type&&_.type!==t.type)throw new Error(`Unsupported type <${xw(_.type)}> in <${xw(i.type)}>. Only <${xw(t.type)}> is supported.`);c++,yield _}f=u.next(m)}return}if(t.key==null)return;let o=this,l={type:t.type,props:t.props,key:t.key,parentKey:i?i.key:null,value:t.value,level:i?i.level+1:0,index:t.index,rendered:t.rendered,textValue:t.textValue,"aria-label":t["aria-label"],wrapper:t.wrapper,shouldInvalidate:t.shouldInvalidate,hasChildNodes:t.hasChildNodes,childNodes:BM(function*(){if(!t.hasChildNodes)return;let s=0;for(let u of t.childNodes()){u.key!=null&&(u.key=`${l.key}${u.key}`),u.index=s;let c=o.getFullNode(u,o.getChildState(n,u),l.key,l);for(let f of c)s++,yield f}})};yield l}constructor(){this.cache=new WeakMap}}function BM(e){let t=[],n=null;return{*[Symbol.iterator](){for(let r of t)yield r;n||(n=e());for(let r of n)t.push(r),yield r}}}function H1e(e,t){if(e&&t)return n=>e(t(n));if(e)return e;if(t)return t}function xw(e){return e[0].toUpperCase()+e.slice(1)}function Lj(e,t,n){let r=R.useMemo(()=>new B1e,[]),{children:i,items:a,collection:o}=e;return R.useMemo(()=>{if(o)return o;let s=r.build({children:i,items:a},n);return t(s)},[r,i,a,o,n,t])}function Gy(e,t){return typeof t.getChildren=="function"?t.getChildren(e.key):e.childNodes}function K1e(e){return J1e(e)}function J1e(e,t){for(let n of e)return n}function Pw(e,t,n){if(t.parentKey===n.parentKey)return t.index-n.index;let r=[...HM(e,t),t],i=[...HM(e,n),n],a=r.slice(0,i.length).findIndex((o,l)=>o!==i[l]);return a!==-1?(t=r[a],n=i[a],t.index-n.index):r.findIndex(o=>o===n)>=0?1:(i.findIndex(o=>o===t)>=0,-1)}function HM(e,t){let n=[];for(;(t==null?void 0:t.parentKey)!=null;)t=e.getItem(t.parentKey),n.unshift(t);return n}const KM=new WeakMap;function Fj(e){let t=KM.get(e);if(t!=null)return t;t=0;let n=r=>{for(let i of r)i.type==="section"?n(Gy(i,e)):t++};return n(e),KM.set(e,t),t}class Nj{get selectionMode(){return this.state.selectionMode}get disallowEmptySelection(){return this.state.disallowEmptySelection}get selectionBehavior(){return this.state.selectionBehavior}setSelectionBehavior(t){this.state.setSelectionBehavior(t)}get isFocused(){return this.state.isFocused}setFocused(t){this.state.setFocused(t)}get focusedKey(){return this.state.focusedKey}get childFocusStrategy(){return this.state.childFocusStrategy}setFocusedKey(t,n){(t==null||this.collection.getItem(t))&&this.state.setFocusedKey(t,n)}get selectedKeys(){return this.state.selectedKeys==="all"?new Set(this.getSelectAllKeys()):this.state.selectedKeys}get rawSelection(){return this.state.selectedKeys}isSelected(t){return this.state.selectionMode==="none"?!1:(t=this.getKey(t),this.state.selectedKeys==="all"?this.canSelectItem(t):this.state.selectedKeys.has(t))}get isEmpty(){return this.state.selectedKeys!=="all"&&this.state.selectedKeys.size===0}get isSelectAll(){if(this.isEmpty)return!1;if(this.state.selectedKeys==="all")return!0;if(this._isSelectAll!=null)return this._isSelectAll;let t=this.getSelectAllKeys(),n=this.state.selectedKeys;return this._isSelectAll=t.every(r=>n.has(r)),this._isSelectAll}get firstSelectedKey(){let t=null;for(let n of this.state.selectedKeys){let r=this.collection.getItem(n);(!t||r&&Pw(this.collection,r,t)<0)&&(t=r)}return t==null?void 0:t.key}get lastSelectedKey(){let t=null;for(let n of this.state.selectedKeys){let r=this.collection.getItem(n);(!t||r&&Pw(this.collection,r,t)>0)&&(t=r)}return t==null?void 0:t.key}get disabledKeys(){return this.state.disabledKeys}get disabledBehavior(){return this.state.disabledBehavior}extendSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"){this.replaceSelection(t);return}t=this.getKey(t);let n;if(this.state.selectedKeys==="all")n=new Na([t],t,t);else{let r=this.state.selectedKeys,i=r.anchorKey||t;n=new Na(r,i,t);for(let a of this.getKeyRange(i,r.currentKey||t))n.delete(a);for(let a of this.getKeyRange(t,i))this.canSelectItem(a)&&n.add(a)}this.state.setSelectedKeys(n)}getKeyRange(t,n){let r=this.collection.getItem(t),i=this.collection.getItem(n);return r&&i?Pw(this.collection,r,i)<=0?this.getKeyRangeInternal(t,n):this.getKeyRangeInternal(n,t):[]}getKeyRangeInternal(t,n){let r=[],i=t;for(;i;){let a=this.collection.getItem(i);if((a&&a.type==="item"||a.type==="cell"&&this.allowsCellSelection)&&r.push(i),i===n)return r;i=this.collection.getKeyAfter(i)}return[]}getKey(t){let n=this.collection.getItem(t);if(!n||n.type==="cell"&&this.allowsCellSelection)return t;for(;n.type!=="item"&&n.parentKey!=null;)n=this.collection.getItem(n.parentKey);return!n||n.type!=="item"?null:n.key}toggleSelection(t){if(this.selectionMode==="none")return;if(this.selectionMode==="single"&&!this.isSelected(t)){this.replaceSelection(t);return}if(t=this.getKey(t),t==null)return;let n=new Na(this.state.selectedKeys==="all"?this.getSelectAllKeys():this.state.selectedKeys);n.has(t)?n.delete(t):this.canSelectItem(t)&&(n.add(t),n.anchorKey=t,n.currentKey=t),!(this.disallowEmptySelection&&n.size===0)&&this.state.setSelectedKeys(n)}replaceSelection(t){if(this.selectionMode==="none"||(t=this.getKey(t),t==null))return;let n=this.canSelectItem(t)?new Na([t],t,t):new Na;this.state.setSelectedKeys(n)}setSelectedKeys(t){if(this.selectionMode==="none")return;let n=new Na;for(let r of t)if(r=this.getKey(r),r!=null&&(n.add(r),this.selectionMode==="single"))break;this.state.setSelectedKeys(n)}getSelectAllKeys(){let t=[],n=r=>{for(;r;){if(this.canSelectItem(r)){let i=this.collection.getItem(r);i.type==="item"&&t.push(r),i.hasChildNodes&&(this.allowsCellSelection||i.type!=="item")&&n(K1e(Gy(i,this.collection)).key)}r=this.collection.getKeyAfter(r)}};return n(this.collection.getFirstKey()),t}selectAll(){!this.isSelectAll&&this.selectionMode==="multiple"&&this.state.setSelectedKeys("all")}clearSelection(){!this.disallowEmptySelection&&(this.state.selectedKeys==="all"||this.state.selectedKeys.size>0)&&this.state.setSelectedKeys(new Na)}toggleSelectAll(){this.isSelectAll?this.clearSelection():this.selectAll()}select(t,n){this.selectionMode!=="none"&&(this.selectionMode==="single"?this.isSelected(t)&&!this.disallowEmptySelection?this.toggleSelection(t):this.replaceSelection(t):this.selectionBehavior==="toggle"||n&&(n.pointerType==="touch"||n.pointerType==="virtual")?this.toggleSelection(t):this.replaceSelection(t))}isSelectionEqual(t){if(t===this.state.selectedKeys)return!0;let n=this.selectedKeys;if(t.size!==n.size)return!1;for(let r of t)if(!n.has(r))return!1;for(let r of n)if(!t.has(r))return!1;return!0}canSelectItem(t){var n;if(this.state.selectionMode==="none"||this.state.disabledKeys.has(t))return!1;let r=this.collection.getItem(t);return!(!r||!(r==null||(n=r.props)===null||n===void 0)&&n.isDisabled||r.type==="cell"&&!this.allowsCellSelection)}isDisabled(t){var n,r;return this.state.disabledBehavior==="all"&&(this.state.disabledKeys.has(t)||!!(!((r=this.collection.getItem(t))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.isDisabled))}isLink(t){var n,r;return!!(!((r=this.collection.getItem(t))===null||r===void 0||(n=r.props)===null||n===void 0)&&n.href)}getItemProps(t){var n;return(n=this.collection.getItem(t))===null||n===void 0?void 0:n.props}constructor(t,n,r){this.collection=t,this.state=n;var i;this.allowsCellSelection=(i=r==null?void 0:r.allowsCellSelection)!==null&&i!==void 0?i:!1,this._isSelectAll=null}}function e_e(e){let{filter:t}=e,n=Ij(e),r=R.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),i=R.useCallback(u=>t?new YM(t(u)):new YM(u),[t]),a=R.useMemo(()=>({suppressTextValueWarning:e.suppressTextValueWarning}),[e.suppressTextValueWarning]),o=Lj(e,i,a),l=R.useMemo(()=>new Nj(o,n),[o,n]);const s=R.useRef(null);return R.useEffect(()=>{if(n.focusedKey!=null&&!o.getItem(n.focusedKey)){const u=s.current.getItem(n.focusedKey),c=[...s.current.getKeys()].map(m=>{const _=s.current.getItem(m);return _.type==="item"?_:null}).filter(m=>m!==null),f=[...o.getKeys()].map(m=>{const _=o.getItem(m);return _.type==="item"?_:null}).filter(m=>m!==null),p=c.length-f.length;let g=Math.min(p>1?Math.max(u.index-p+1,0):u.index,f.length-1),v;for(;g>=0;){if(!l.isDisabled(f[g].key)){v=f[g];break}g<f.length-1?g++:(g>u.index&&(g=u.index),g--)}n.setFocusedKey(v?v.key:null)}s.current=o},[o,l,n,n.focusedKey]),{collection:o,disabledKeys:r,selectionManager:l}}function t_e(e){var t;let[n,r]=Xs(e.selectedKey,(t=e.defaultSelectedKey)!==null&&t!==void 0?t:null,e.onSelectionChange),i=R.useMemo(()=>n!=null?[n]:[],[n]),{collection:a,disabledKeys:o,selectionManager:l}=e_e({...e,selectionMode:"single",disallowEmptySelection:!0,allowDuplicateSelectionEvents:!0,selectedKeys:i,onSelectionChange:u=>{var c;let f=(c=u.values().next().value)!==null&&c!==void 0?c:null;f===n&&e.onSelectionChange&&e.onSelectionChange(f),r(f)}}),s=n!=null?a.getItem(n):null;return{collection:a,disabledKeys:o,selectionManager:l,selectedKey:n,setSelectedKey:r,selectedItem:s}}const Hk=new WeakMap;function n_e(e){return typeof e=="string"?e.replace(/\s*/g,""):""+e}function r_e(e,t){let n=Hk.get(e);if(!n)throw new Error("Unknown list");return`${n.id}-option-${n_e(t)}`}function bP(e){return mye()?e.altKey:e.ctrlKey}function vf(e){return Is()?e.metaKey:e.ctrlKey}const i_e=1e3;function zj(e){let{keyboardDelegate:t,selectionManager:n,onTypeSelect:r}=e,i=R.useRef({search:"",timeout:null}).current,a=o=>{let l=a_e(o.key);if(!l||o.ctrlKey||o.metaKey||!o.currentTarget.contains(o.target))return;l===" "&&i.search.trim().length>0&&(o.preventDefault(),"continuePropagation"in o||o.stopPropagation()),i.search+=l;let s=t.getKeyForSearch(i.search,n.focusedKey);s==null&&(s=t.getKeyForSearch(i.search)),s!=null&&(n.setFocusedKey(s),r&&r(s)),clearTimeout(i.timeout),i.timeout=setTimeout(()=>{i.search=""},i_e)};return{typeSelectProps:{onKeyDownCapture:t.getKeyForSearch?a:null}}}function a_e(e){return e.length===1||!/^[A-Z]/i.test(e)?e:""}function o_e(e){let{selectionManager:t,keyboardDelegate:n,ref:r,autoFocus:i=!1,shouldFocusWrap:a=!1,disallowEmptySelection:o=!1,disallowSelectAll:l=!1,selectOnFocus:s=t.selectionBehavior==="replace",disallowTypeAhead:u=!1,shouldUseVirtualFocus:c,allowsTabNavigation:f=!1,isVirtualized:p,scrollRef:g=r,linkBehavior:v="action"}=e,{direction:m}=Vo(),_=Xg(),O=T=>{if(T.altKey&&T.key==="Tab"&&T.preventDefault(),!r.current.contains(T.target))return;const A=(I,X)=>{if(I!=null){if(t.isLink(I)&&v==="selection"&&s&&!bP(T)){g1.flushSync(()=>{t.setFocusedKey(I,X)});let Z=g.current.querySelector(`[data-key="${CSS.escape(I.toString())}"]`),F=t.getItemProps(I);_.open(Z,T,F.href,F.routerOptions);return}if(t.setFocusedKey(I,X),t.isLink(I)&&v==="override")return;T.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(I):s&&!bP(T)&&t.replaceSelection(I)}};switch(T.key){case"ArrowDown":if(n.getKeyBelow){var M,L;T.preventDefault();let I=t.focusedKey!=null?n.getKeyBelow(t.focusedKey):(M=n.getFirstKey)===null||M===void 0?void 0:M.call(n);I==null&&a&&(I=(L=n.getFirstKey)===null||L===void 0?void 0:L.call(n,t.focusedKey)),A(I)}break;case"ArrowUp":if(n.getKeyAbove){var N,j;T.preventDefault();let I=t.focusedKey!=null?n.getKeyAbove(t.focusedKey):(N=n.getLastKey)===null||N===void 0?void 0:N.call(n);I==null&&a&&(I=(j=n.getLastKey)===null||j===void 0?void 0:j.call(n,t.focusedKey)),A(I)}break;case"ArrowLeft":if(n.getKeyLeftOf){var B,V;T.preventDefault();let I=n.getKeyLeftOf(t.focusedKey);I==null&&a&&(I=m==="rtl"?(B=n.getFirstKey)===null||B===void 0?void 0:B.call(n,t.focusedKey):(V=n.getLastKey)===null||V===void 0?void 0:V.call(n,t.focusedKey)),A(I,m==="rtl"?"first":"last")}break;case"ArrowRight":if(n.getKeyRightOf){var U,G;T.preventDefault();let I=n.getKeyRightOf(t.focusedKey);I==null&&a&&(I=m==="rtl"?(U=n.getLastKey)===null||U===void 0?void 0:U.call(n,t.focusedKey):(G=n.getFirstKey)===null||G===void 0?void 0:G.call(n,t.focusedKey)),A(I,m==="rtl"?"last":"first")}break;case"Home":if(n.getFirstKey){T.preventDefault();let I=n.getFirstKey(t.focusedKey,vf(T));t.setFocusedKey(I),vf(T)&&T.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(I):s&&t.replaceSelection(I)}break;case"End":if(n.getLastKey){T.preventDefault();let I=n.getLastKey(t.focusedKey,vf(T));t.setFocusedKey(I),vf(T)&&T.shiftKey&&t.selectionMode==="multiple"?t.extendSelection(I):s&&t.replaceSelection(I)}break;case"PageDown":if(n.getKeyPageBelow){T.preventDefault();let I=n.getKeyPageBelow(t.focusedKey);A(I)}break;case"PageUp":if(n.getKeyPageAbove){T.preventDefault();let I=n.getKeyPageAbove(t.focusedKey);A(I)}break;case"a":vf(T)&&t.selectionMode==="multiple"&&l!==!0&&(T.preventDefault(),t.selectAll());break;case"Escape":!o&&t.selectedKeys.size!==0&&(T.stopPropagation(),T.preventDefault(),t.clearSelection());break;case"Tab":if(!f){if(T.shiftKey)r.current.focus();else{let I=ko(r.current,{tabbable:!0}),X,Z;do Z=I.lastChild(),Z&&(X=Z);while(Z);X&&!X.contains(document.activeElement)&&Ro(X)}break}}},S=R.useRef({top:0,left:0});Rye(g,"scroll",p?null:()=>{S.current={top:g.current.scrollTop,left:g.current.scrollLeft}});let b=T=>{if(t.isFocused){T.currentTarget.contains(T.target)||t.setFocused(!1);return}if(T.currentTarget.contains(T.target)){if(t.setFocused(!0),t.focusedKey==null){let L=j=>{j!=null&&(t.setFocusedKey(j),s&&t.replaceSelection(j))},N=T.relatedTarget;var A,M;N&&T.currentTarget.compareDocumentPosition(N)&Node.DOCUMENT_POSITION_FOLLOWING?L((A=t.lastSelectedKey)!==null&&A!==void 0?A:n.getLastKey()):L((M=t.firstSelectedKey)!==null&&M!==void 0?M:n.getFirstKey())}else p||(g.current.scrollTop=S.current.top,g.current.scrollLeft=S.current.left);if(!p&&t.focusedKey!=null){let L=g.current.querySelector(`[data-key="${CSS.escape(t.focusedKey.toString())}"]`);L&&(L.contains(document.activeElement)||Ro(L),pd()==="keyboard"&&bM(L,{containingElement:r.current}))}}},P=T=>{T.currentTarget.contains(T.relatedTarget)||t.setFocused(!1)};const E=R.useRef(i);R.useEffect(()=>{if(E.current){let T=null;i==="first"&&(T=n.getFirstKey()),i==="last"&&(T=n.getLastKey());let A=t.selectedKeys;if(A.size){for(let M of A)if(t.canSelectItem(M)){T=M;break}}t.setFocused(!0),t.setFocusedKey(T),T==null&&!c&&cc(r.current)}},[]);let $=R.useRef(t.focusedKey);R.useEffect(()=>{let T=pd();if(t.isFocused&&t.focusedKey!=null&&(g!=null&&g.current)){let A=g.current.querySelector(`[data-key="${CSS.escape(t.focusedKey.toString())}"]`);A&&(T==="keyboard"||E.current)&&(p||bq(g.current,A),T!=="virtual"&&bM(A,{containingElement:r.current}))}t.isFocused&&t.focusedKey==null&&$.current!=null&&cc(r.current),$.current=t.focusedKey,E.current=!1},[p,g,t.focusedKey,t.isFocused,r]);let Q={onKeyDown:O,onFocus:b,onBlur:P,onMouseDown(T){g.current===T.target&&T.preventDefault()}},{typeSelectProps:k}=zj({keyboardDelegate:n,selectionManager:t});u||(Q=mt(k,Q));let D;return c||(D=t.focusedKey==null?0:-1),{collectionProps:{...Q,tabIndex:D}}}function Uj(e){let{selectionManager:t,key:n,ref:r,shouldSelectOnPressUp:i,shouldUseVirtualFocus:a,focus:o,isDisabled:l,onAction:s,allowsDifferentPressOrigin:u,linkBehavior:c="action"}=e,f=Xg(),p=V=>{if(V.pointerType==="keyboard"&&bP(V))t.toggleSelection(n);else{if(t.selectionMode==="none")return;if(t.isLink(n)){if(c==="selection"){let U=t.getItemProps(n);f.open(r.current,V,U.href,U.routerOptions),t.setSelectedKeys(t.selectedKeys);return}else if(c==="override"||c==="none")return}t.selectionMode==="single"?t.isSelected(n)&&!t.disallowEmptySelection?t.toggleSelection(n):t.replaceSelection(n):V&&V.shiftKey?t.extendSelection(n):t.selectionBehavior==="toggle"||V&&(vf(V)||V.pointerType==="touch"||V.pointerType==="virtual")?t.toggleSelection(n):t.replaceSelection(n)}};R.useEffect(()=>{n===t.focusedKey&&t.isFocused&&!a&&(o?o():document.activeElement!==r.current&&cc(r.current))},[r,n,t.focusedKey,t.childFocusStrategy,t.isFocused,a]),l=l||t.isDisabled(n);let g={};!a&&!l?g={tabIndex:n===t.focusedKey?0:-1,onFocus(V){V.target===r.current&&t.setFocusedKey(n)}}:l&&(g.onMouseDown=V=>{V.preventDefault()});let v=t.isLink(n)&&c==="override",m=t.isLink(n)&&c!=="selection"&&c!=="none",_=!l&&t.canSelectItem(n)&&!v,O=(s||m)&&!l,S=O&&(t.selectionBehavior==="replace"?!_:!_||t.isEmpty),b=O&&_&&t.selectionBehavior==="replace",P=S||b,E=R.useRef(null),$=P&&_,Q=R.useRef(!1),k=R.useRef(!1),D=V=>{if(s&&s(),m){let U=t.getItemProps(n);f.open(r.current,V,U.href,U.routerOptions)}},T={};i?(T.onPressStart=V=>{E.current=V.pointerType,Q.current=$,V.pointerType==="keyboard"&&(!P||e3())&&p(V)},u?(T.onPressUp=S?null:V=>{V.pointerType!=="keyboard"&&_&&p(V)},T.onPress=S?D:null):T.onPress=V=>{if(S||b&&V.pointerType!=="mouse"){if(V.pointerType==="keyboard"&&!JM())return;D(V)}else V.pointerType!=="keyboard"&&_&&p(V)}):(T.onPressStart=V=>{E.current=V.pointerType,Q.current=$,k.current=S,_&&(V.pointerType==="mouse"&&!S||V.pointerType==="keyboard"&&(!O||e3()))&&p(V)},T.onPress=V=>{(V.pointerType==="touch"||V.pointerType==="pen"||V.pointerType==="virtual"||V.pointerType==="keyboard"&&P&&JM()||V.pointerType==="mouse"&&k.current)&&(P?D(V):_&&p(V))}),g["data-key"]=n,T.preventFocusOnPress=a;let{pressProps:A,isPressed:M}=kl(T),L=b?V=>{E.current==="mouse"&&(V.stopPropagation(),V.preventDefault(),D(V))}:void 0,{longPressProps:N}=Mq({isDisabled:!$,onLongPress(V){V.pointerType==="touch"&&(p(V),t.setSelectionBehavior("toggle"))}}),j=V=>{E.current==="touch"&&Q.current&&V.preventDefault()},B=t.isLink(n)?V=>{lc.isOpening||V.preventDefault()}:void 0;return{itemProps:mt(g,_||S?A:{},$?N:{},{onDoubleClick:L,onDragStartCapture:j,onClick:B}),isPressed:M,isSelected:t.isSelected(n),isFocused:t.isFocused&&t.focusedKey===n,isDisabled:l,allowsSelection:_,hasAction:P}}function JM(){let e=window.event;return(e==null?void 0:e.key)==="Enter"}function e3(){let e=window.event;return(e==null?void 0:e.key)===" "||(e==null?void 0:e.code)==="Space"}class qj{isDisabled(t){var n;return this.disabledBehavior==="all"&&(((n=t.props)===null||n===void 0?void 0:n.isDisabled)||this.disabledKeys.has(t.key))}getNextKey(t){for(t=this.collection.getKeyAfter(t);t!=null;){let n=this.collection.getItem(t);if(n.type==="item"&&!this.isDisabled(n))return t;t=this.collection.getKeyAfter(t)}return null}getPreviousKey(t){for(t=this.collection.getKeyBefore(t);t!=null;){let n=this.collection.getItem(t);if(n.type==="item"&&!this.isDisabled(n))return t;t=this.collection.getKeyBefore(t)}return null}findKey(t,n,r){let i=this.getItem(t);if(!i)return null;let a=i.getBoundingClientRect();do t=n(t),i=this.getItem(t);while(i&&r(a,i.getBoundingClientRect()));return t}isSameRow(t,n){return t.top===n.top||t.left!==n.left}isSameColumn(t,n){return t.left===n.left||t.top!==n.top}getKeyBelow(t){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,n=>this.getNextKey(n),this.isSameRow):this.getNextKey(t)}getKeyAbove(t){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(t,n=>this.getPreviousKey(n),this.isSameRow):this.getPreviousKey(t)}getNextColumn(t,n){return n?this.getPreviousKey(t):this.getNextKey(t)}getKeyRightOf(t){return this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="rtl"):this.findKey(t,n=>this.getNextColumn(n,this.direction==="rtl"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="rtl"):null}getKeyLeftOf(t){return this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(t,this.direction==="ltr"):this.findKey(t,n=>this.getNextColumn(n,this.direction==="ltr"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(t,this.direction==="ltr"):null}getFirstKey(){let t=this.collection.getFirstKey();for(;t!=null;){let n=this.collection.getItem(t);if((n==null?void 0:n.type)==="item"&&!this.isDisabled(n))return t;t=this.collection.getKeyAfter(t)}return null}getLastKey(){let t=this.collection.getLastKey();for(;t!=null;){let n=this.collection.getItem(t);if(n.type==="item"&&!this.isDisabled(n))return t;t=this.collection.getKeyBefore(t)}return null}getItem(t){return t!==null?this.ref.current.querySelector(`[data-key="${CSS.escape(t.toString())}"]`):null}getKeyPageAbove(t){let n=this.ref.current,r=this.getItem(t);if(!r)return null;if(!fg(n))return this.getFirstKey();let i=n.getBoundingClientRect(),a=r.getBoundingClientRect();if(this.orientation==="horizontal"){let o=i.x-n.scrollLeft,l=Math.max(0,a.x-o+a.width-i.width);for(;r&&a.x-o>l;)t=this.getKeyAbove(t),r=t==null?null:this.getItem(t),a=r==null?void 0:r.getBoundingClientRect()}else{let o=i.y-n.scrollTop,l=Math.max(0,a.y-o+a.height-i.height);for(;r&&a.y-o>l;)t=this.getKeyAbove(t),r=t==null?null:this.getItem(t),a=r==null?void 0:r.getBoundingClientRect()}return t??this.getFirstKey()}getKeyPageBelow(t){let n=this.ref.current,r=this.getItem(t);if(!r)return null;if(!fg(n))return this.getLastKey();let i=n.getBoundingClientRect(),a=r.getBoundingClientRect();if(this.orientation==="horizontal"){let o=i.x-n.scrollLeft,l=Math.min(n.scrollWidth,a.x-o-a.width+i.width);for(;r&&a.x-o<l;)t=this.getKeyBelow(t),r=t==null?null:this.getItem(t),a=r==null?void 0:r.getBoundingClientRect()}else{let o=i.y-n.scrollTop,l=Math.min(n.scrollHeight,a.y-o-a.height+i.height);for(;r&&a.y-o<l;)t=this.getKeyBelow(t),r=t==null?null:this.getItem(t),a=r==null?void 0:r.getBoundingClientRect()}return t??this.getLastKey()}getKeyForSearch(t,n){if(!this.collator)return null;let r=this.collection,i=n||this.getFirstKey();for(;i!=null;){let a=r.getItem(i),o=a.textValue.slice(0,t.length);if(a.textValue&&this.collator.compare(o,t)===0)return i;i=this.getKeyBelow(i)}return null}constructor(...t){if(t.length===1){let n=t[0];this.collection=n.collection,this.ref=n.ref,this.collator=n.collator,this.disabledKeys=n.disabledKeys||new Set,this.disabledBehavior=n.disabledBehavior||"all",this.orientation=n.orientation,this.direction=n.direction,this.layout=n.layout||"stack"}else this.collection=t[0],this.disabledKeys=t[1],this.ref=t[2],this.collator=t[3],this.layout="stack",this.orientation="vertical",this.disabledBehavior="all";this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}}function jj(e){let{selectionManager:t,collection:n,disabledKeys:r,ref:i,keyboardDelegate:a}=e,o=Eq({usage:"search",sensitivity:"base"}),l=t.disabledBehavior,s=R.useMemo(()=>a||new qj({collection:n,disabledKeys:r,disabledBehavior:l,ref:i,collator:o}),[a,n,r,i,o,l]),{collectionProps:u}=o_e({...e,ref:i,selectionManager:t,keyboardDelegate:s});return{listProps:u}}function rXe(e,t,n){let r=Fr(e,{labelable:!0}),i=e.selectionBehavior||"toggle",a=e.linkBehavior||(i==="replace"?"action":"override");i==="toggle"&&a==="action"&&(a="override");let{listProps:o}=jj({...e,ref:n,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,linkBehavior:a}),{focusWithinProps:l}=Bg({onFocusWithin:e.onFocus,onBlurWithin:e.onBlur,onFocusWithinChange:e.onFocusChange}),s=$a(e.id);Hk.set(t,{id:s,shouldUseVirtualFocus:e.shouldUseVirtualFocus,shouldSelectOnPressUp:e.shouldSelectOnPressUp,shouldFocusOnHover:e.shouldFocusOnHover,isVirtualized:e.isVirtualized,onAction:e.onAction,linkBehavior:a});let{labelProps:u,fieldProps:c}=Hg({...e,id:s,labelElementType:"span"});return{labelProps:u,listBoxProps:mt(r,l,t.selectionManager.selectionMode==="multiple"?{"aria-multiselectable":"true"}:{},{role:"listbox",...mt(c,o)})}}function iXe(e,t,n){var r,i;let{key:a}=e,o=Hk.get(t);var l;let s=(l=e.isDisabled)!==null&&l!==void 0?l:t.selectionManager.isDisabled(a);var u;let c=(u=e.isSelected)!==null&&u!==void 0?u:t.selectionManager.isSelected(a);var f;let p=(f=e.shouldSelectOnPressUp)!==null&&f!==void 0?f:o==null?void 0:o.shouldSelectOnPressUp;var g;let v=(g=e.shouldFocusOnHover)!==null&&g!==void 0?g:o==null?void 0:o.shouldFocusOnHover;var m;let _=(m=e.shouldUseVirtualFocus)!==null&&m!==void 0?m:o==null?void 0:o.shouldUseVirtualFocus;var O;let S=(O=e.isVirtualized)!==null&&O!==void 0?O:o==null?void 0:o.isVirtualized,b=Rs(),P=Rs(),E={role:"option","aria-disabled":s||void 0,"aria-selected":t.selectionManager.selectionMode!=="none"?c:void 0};Is()&&Mk()||(E["aria-label"]=e["aria-label"],E["aria-labelledby"]=b,E["aria-describedby"]=P);let $=t.collection.getItem(a);if(S){let B=Number($==null?void 0:$.index);E["aria-posinset"]=Number.isNaN(B)?void 0:B+1,E["aria-setsize"]=Fj(t.collection)}let Q=o!=null&&o.onAction?()=>{var B;return o==null||(B=o.onAction)===null||B===void 0?void 0:B.call(o,a)}:void 0,{itemProps:k,isPressed:D,isFocused:T,hasAction:A,allowsSelection:M}=Uj({selectionManager:t.selectionManager,key:a,ref:n,shouldSelectOnPressUp:p,allowsDifferentPressOrigin:p&&v,isVirtualized:S,shouldUseVirtualFocus:_,isDisabled:s,onAction:Q||!($==null||(r=$.props)===null||r===void 0)&&r.onAction?oc($==null||(i=$.props)===null||i===void 0?void 0:i.onAction,Q):void 0,linkBehavior:o==null?void 0:o.linkBehavior}),{hoverProps:L}=q1({isDisabled:s||!v,onHoverStart(){hd()||(t.selectionManager.setFocused(!0),t.selectionManager.setFocusedKey(a))}}),N=Fr($==null?void 0:$.props);delete N.id;let j=Lk($==null?void 0:$.props);return{optionProps:{...E,...mt(N,k,L,j),id:r_e(t,a)},labelProps:{id:b},descriptionProps:{id:P},isFocused:T,isFocusVisible:T&&hd(),isSelected:c,isDisabled:s,isPressed:D,allowsSelection:M,hasAction:A}}function aXe(e){let{heading:t,"aria-label":n}=e,r=$a();return{itemProps:{role:"presentation"},headingProps:t?{id:r,role:"presentation"}:{},groupProps:{role:"group","aria-label":n,"aria-labelledby":t?r:void 0}}}class l_e{shouldInvalidate(t,n){return t.width!==n.width||t.height!==n.height}validate(t){}getInitialLayoutInfo(t){return t}getFinalLayoutInfo(t){return t}}class Tu{copy(){let t=new Tu(this.type,this.key,this.rect.copy());return t.estimatedSize=this.estimatedSize,t.opacity=this.opacity,t.transform=this.transform,t.parentKey=this.parentKey,t.isSticky=this.isSticky,t.zIndex=this.zIndex,t.allowOverflow=this.allowOverflow,t}constructor(t,n,r){this.type=t,this.key=n,this.parentKey=null,this.rect=r,this.estimatedSize=!1,this.isSticky=!1,this.opacity=1,this.transform=null,this.zIndex=0,this.allowOverflow=!1}}class vi{copy(){return new vi(this.x,this.y)}equals(t){return this.x===t.x&&this.y===t.y}isOrigin(){return this.x===0&&this.y===0}constructor(t=0,n=0){this.x=t,this.y=n}}class mn{get maxX(){return this.x+this.width}get maxY(){return this.y+this.height}get area(){return this.width*this.height}get topLeft(){return new vi(this.x,this.y)}get topRight(){return new vi(this.maxX,this.y)}get bottomLeft(){return new vi(this.x,this.maxY)}get bottomRight(){return new vi(this.maxX,this.maxY)}intersects(t){return this.x<=t.x+t.width&&t.x<=this.x+this.width&&this.y<=t.y+t.height&&t.y<=this.y+this.height}containsRect(t){return this.x<=t.x&&this.y<=t.y&&this.maxX>=t.maxX&&this.maxY>=t.maxY}containsPoint(t){return this.x<=t.x&&this.y<=t.y&&this.maxX>=t.x&&this.maxY>=t.y}getCornerInRect(t){for(let n of["topLeft","topRight","bottomLeft","bottomRight"])if(t.containsPoint(this[n]))return n;return null}equals(t){return t.x===this.x&&t.y===this.y&&t.width===this.width&&t.height===this.height}pointEquals(t){return this.x===t.x&&this.y===t.y}sizeEquals(t){return this.width===t.width&&this.height===t.height}union(t){let n=Math.min(this.x,t.x),r=Math.min(this.y,t.y),i=Math.max(this.maxX,t.maxX)-n,a=Math.max(this.maxY,t.maxY)-r;return new mn(n,r,i,a)}intersection(t){if(!this.intersects(t))return new mn(0,0,0,0);let n=Math.max(this.x,t.x),r=Math.max(this.y,t.y);return new mn(n,r,Math.min(this.maxX,t.maxX)-n,Math.min(this.maxY,t.maxY)-r)}copy(){return new mn(this.x,this.y,this.width,this.height)}constructor(t=0,n=0,r=0,i=0){this.x=t,this.y=n,this.width=r,this.height=i}}class fc{copy(){return new fc(this.width,this.height)}equals(t){return this.width===t.width&&this.height===t.height}get area(){return this.width*this.height}constructor(t=0,n=0){this.width=t,this.height=n}}let s_e=0;class u_e{prepareForReuse(){this.content=null,this.rendered=null,this.layoutInfo=null}constructor(t){this.virtualizer=t,this.key=++s_e}}let mf=typeof window<"u"?window.performance:null,t3=mf&&(mf.now||mf.webkitNow||mf.msNow||mf.mozNow),Ew=t3?t3.bind(mf):function(){return Date.now?Date.now():new Date().getTime()},Rw;function c_e(e,t,n,r,i){let a=!1,o,l=new Promise(s=>{let u=Ew(),c=t.x-e.x,f=t.y-e.y;o=requestAnimationFrame(function p(g){Rw==null&&(Rw=g>1e12!=Ew()>1e12),Rw&&(g=Ew());let v=g-u;v>n?(i(t),s()):i(new vi(e.x+c*r(v/n),e.y+f*r(v/n)))!==!1&&!a&&(o=requestAnimationFrame(p))})});return l.cancel=function(){a=!0,cancelAnimationFrame(o)},l}function f_e(e){return Math.sin(e*Math.PI/2)}function n3(e,t){let n=new Set;for(let r of e.keys())t.has(r)||n.add(r);return n}function d_e(e,t){let n=n3(e,t),r=n3(t,e),i=new Set;for(let a of e.keys())t.has(a)&&i.add(a);return{toRemove:n,toAdd:r,toUpdate:i}}function*h_e(...e){for(let t of e)yield*t}function p_e(e,t){if(e===t)return!0;if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}class Km{addSample(t){this.count++,this.value+=(t-this.value)/this.count}constructor(){this.count=0,this.value=0}}class g_e{setVisibleRect(t){let n=performance.now()-this.startTime;n<500&&(this.averageTime.addSample(n),t.x!==this.visibleRect.x&&n>0&&(this.velocity.x=(t.x-this.visibleRect.x)/n),t.y!==this.visibleRect.y&&n>0&&(this.velocity.y=(t.y-this.visibleRect.y)/n)),this.startTime=performance.now(),this.visibleRect=t}collectMetrics(){let t=performance.now()-this.startTime;if(t<500&&this.averagePerf.addSample(t),this.visibleRect.height>0){let n=Math.abs(this.velocity.y*(this.averageTime.value+this.averagePerf.value));this.overscanY.addSample(n)}if(this.visibleRect.width>0){let n=Math.abs(this.velocity.x*(this.averageTime.value+this.averagePerf.value));this.overscanX.addSample(n)}}getOverscannedRect(){let t=this.visibleRect.copy(),n=Math.round(Math.min(this.visibleRect.height*2,this.overscanY.value)/100)*100;this.velocity.y>0?(t.y-=n*.2,t.height+=n+n*.2):(t.y-=n,t.height+=n+n*.2);let r=Math.round(Math.min(this.visibleRect.width*2,this.overscanX.value)/100)*100;return this.velocity.x>0?(t.x-=r*.2,t.width+=r+r*.2):(t.x-=r,t.width+=r+r*.2),t}constructor(){this.startTime=0,this.averagePerf=new Km,this.averageTime=new Km,this.velocity=new vi(5,5),this.overscanX=new Km,this.overscanY=new Km,this.visibleRect=new mn}}class v_e{constructor(){this.level=0,this.actions=[],this.animated=!0,this.initialMap=new Map,this.finalMap=new Map,this.initialLayoutInfo=new Map,this.finalLayoutInfo=new Map,this.removed=new Map,this.toRemove=new Map}}class m_e{_setContentSize(t){this._contentSize=t,this.delegate.setContentSize(t)}_setContentOffset(t){let n=new mn(t.x,t.y,this._visibleRect.width,this._visibleRect.height);this.delegate.setVisibleRect(n)}get contentSize(){return this._contentSize}get visibleRect(){return this._visibleRect}set visibleRect(t){this._setVisibleRect(t)}_setVisibleRect(t,n=!1){let r=this._visibleRect;if(t.equals(r))return;this.shouldOverscan&&this._overscanManager.setVisibleRect(t);let i=this.layout&&this.layout.shouldInvalidate(t,this._visibleRect);this._resetAnimatedContentOffset(),this._visibleRect=t,i?this.relayoutNow({offsetChanged:!t.pointEquals(r),sizeChanged:!t.sizeEquals(r)}):this.updateSubviews(n)}get collection(){return this._collection}set collection(t){this._setData(t)}_setData(t){t!==this._collection&&(this._collection?this._runTransaction(()=>{this._collection=t},this.transitionDuration>0):(this._collection=t,this.reloadData()))}reloadData(){this.relayout({contentChanged:!0})}getItem(t){return this._collection?this._collection.getItem(t):null}get persistedKeys(){return this._persistedKeys}set persistedKeys(t){p_e(t,this._persistedKeys)||(this._persistedKeys=t,this.updateSubviews())}isPersistedKey(t){if(this._persistedKeys.has(t))return!0;for(let n of this._persistedKeys)for(;n!=null;){let r=this.layout.getLayoutInfo(n);if(!r)break;if(n=r.parentKey,n===t)return!0}return!1}get layout(){return this._layout}set layout(t){this.setLayout(t)}setLayout(t,n=!1){if(t===this._layout)return;let r=()=>{this._layout&&(this._layout.virtualizer=null),t.virtualizer=this,this._layout=t};n?this._runTransaction(r):(r(),this.relayout())}_getReuseType(t,n){if(t.type==="item"&&n){let r=this.delegate.getType?this.delegate.getType(n):"item",i=r==="item"?"item":t.type+"_"+r;return{type:r,reuseType:i}}return{type:t.type,reuseType:t.type}}getReusableView(t){let n=this.getItem(t.key),{reuseType:r}=this._getReuseType(t,n);this._reusableViews[r]||(this._reusableViews[r]=[]);let i=this._reusableViews[r],a=i.length>0?i.pop():new u_e(this);return a.viewType=r,this._animatedContentOffset.isOrigin()||(t=t.copy(),t.rect.x+=this._animatedContentOffset.x,t.rect.y+=this._animatedContentOffset.y),a.layoutInfo=t,this._renderView(a),a}_renderView(t){let{type:n,key:r}=t.layoutInfo;t.content=this.getItem(r),t.rendered=this._renderContent(n,t.content)}_renderContent(t,n){let r=this._renderedContent.get(n);if(r!=null)return r;let i=this.delegate.renderView(t,n);return n&&this._renderedContent.set(n,i),i}get visibleViews(){return Array.from(this._visibleViews.values())}getView(t){return this._visibleViews.get(t)||null}getViewsOfType(t){return this.visibleViews.filter(n=>n.layoutInfo&&n.layoutInfo.type===t)}keyForView(t){return t&&t.layoutInfo?t.layoutInfo.key:null}keyAtPoint(t){let n=new mn(t.x,t.y,1,1),r=this.layout.getVisibleLayoutInfos(n);for(let i of r)if(i.rect.intersects(n))return i.key;return null}willUnmount(){cancelAnimationFrame(this._relayoutRaf)}relayout(t={}){if(!(this._scrollAnimation||typeof requestAnimationFrame>"u")){if(this._invalidationContext){Object.assign(this._invalidationContext,t);return}this._invalidationContext=t}}relayoutNow(t=this._invalidationContext||{}){if(this._relayoutRaf&&(cancelAnimationFrame(this._relayoutRaf),this._relayoutRaf=null,t={...this._invalidationContext,...t}),this._invalidationContext=null,!this.layout||!this._collection||this._scrollAnimation)return;let n=this._getScrollAnchor();typeof t.beforeLayout=="function"&&t.beforeLayout(),this.layout.validate(t),this._setContentSize(this.layout.getContentSize()),typeof t.afterLayout=="function"&&t.afterLayout();let r=this.getVisibleRect(),i=this._restoreScrollAnchor(n,t),a=t.contentChanged?0:i.x,o=t.contentChanged?0:i.y;a=Math.max(0,Math.min(this.contentSize.width-r.width,a)),o=Math.max(0,Math.min(this.contentSize.height-r.height,o));let l=!1;if(a!==r.x||o!==r.y?t.animated||!this._animatedContentOffset.isOrigin()?(this._animatedContentOffset.x+=r.x-a,this._animatedContentOffset.y+=r.y-o,l=this.updateSubviews(t.contentChanged)):this._setContentOffset(new vi(a,o)):l=this.updateSubviews(t.contentChanged),t.transaction&&t.animated||this._applyLayoutInfos(),t.animated&&l){this._enableTransitions(),setTimeout(()=>{if(this._disableTransitions(),!this._animatedContentOffset.isOrigin()){let{x:u,y:c}=this.getVisibleRect();this._resetAnimatedContentOffset(),this._setContentOffset(new vi(u,c))}typeof t.afterAnimation=="function"&&t.afterAnimation()},this.transitionDuration+100);return}else typeof t.afterAnimation=="function"&&t.afterAnimation()}_correctItemOrder(){if(!(this._isScrolling||this._transaction))for(let t of this._visibleLayoutInfos.keys()){let n=this._visibleViews.get(t);this._children.delete(n),this._children.add(n)}}_enableTransitions(){this.delegate.beginAnimations()}_disableTransitions(){this.delegate.endAnimations()}_getScrollAnchor(){if(!this.anchorScrollPosition)return null;let t=this.getVisibleRect();if(this.delegate.getScrollAnchor){let r=this.delegate.getScrollAnchor(t);if(r!=null){let i=this.layout.getLayoutInfo(r),a=i.rect.getCornerInRect(t);if(a){let o=i.key,l=i.rect[a].y-t.y;return{key:o,layoutInfo:i,corner:a,offset:l}}}}if(t.y===0&&!this.anchorScrollPositionAtTop)return null;let n=null;for(let[r,i]of this._visibleViews){let a=i.layoutInfo;if(a&&a.rect.area>0){let o=a.rect.getCornerInRect(t);if(o){let l=a.rect[o].y-t.y;(!n||l<n.offset)&&(n={key:r,layoutInfo:a,corner:o,offset:l})}}}return n}_restoreScrollAnchor(t,n){let r=this.getVisibleRect();if(t){var i;let a=!((i=n.transaction)===null||i===void 0)&&i.animated?n.transaction.finalMap.get(t.key):this.layout.getLayoutInfo(t.layoutInfo.key);if(a){let o=a.rect[t.corner].y-r.y-t.offset;r.y+=o}}return r}getVisibleRect(){let t=this.visibleRect,n=t.x-this._animatedContentOffset.x,r=t.y-this._animatedContentOffset.y;return new mn(n,r,t.width,t.height)}getVisibleLayoutInfos(){Object.getOwnPropertyNames(window.HTMLElement.prototype).includes("clientWidth"),Object.getOwnPropertyNames(window.HTMLElement.prototype).includes("clientHeight");let t;return t=this.shouldOverscan?this._overscanManager.getOverscannedRect():this.getVisibleRect(),this._visibleLayoutInfos=this._getLayoutInfoMap(t),this._visibleLayoutInfos}_getLayoutInfoMap(t,n=!1){let r=this.layout.getVisibleLayoutInfos(t),i=new Map;for(let a of r)n&&(a=a.copy()),i.set(a.key,a);return i}updateSubviews(t=!1){if(!this._collection)return;let n=this.getVisibleLayoutInfos(),r=this._visibleViews,i,a,o;if(t)i=n,a=r,o=new Set;else{({toAdd:i,toRemove:a,toUpdate:o}=d_e(r,n));for(let u of o){let c=r.get(u);if(!c||!c.layoutInfo)continue;let f=this.getItem(n.get(u).key);if(c.content===f)o.delete(u);else{let{reuseType:p}=this._getReuseType(c.layoutInfo,f);c.viewType!==p&&(o.delete(u),i.add(u),a.add(u))}}if(i.size===0&&a.size===0&&o.size===0){this._transaction&&this._applyLayoutInfos();return}}let l=new Set;for(let u of a.keys()){let c=this._visibleViews.get(u);c&&(l.add(c),this._visibleViews.delete(u),this._transaction?this._transaction.toRemove.set(u,c):this.reuseView(c))}for(let u of i.keys()){let c=n.get(u),f;this._transaction&&(this._transaction.initialLayoutInfo.has(u)&&(c=this._transaction.initialLayoutInfo.get(u)),f=this._transaction.toRemove.get(u),f&&(this._transaction.toRemove.delete(u),this._applyLayoutInfo(f,c))),f||(f=this.getReusableView(c),l.has(f)||this._children.add(f)),this._visibleViews.set(u,f),l.delete(f)}for(let u of o){let c=r.get(u);this._renderedContent.delete(u),this._renderView(c)}this._transaction||this.removeViews(l),this._correctItemOrder(),this._flushVisibleViews();let s=this._transaction&&(i.size>0||a.size>0||this._hasLayoutUpdates());return s&&requestAnimationFrame(()=>{this._transaction&&requestAnimationFrame(()=>this._applyLayoutInfos())}),s}afterRender(){this._transactionQueue.length>0?this._processTransactionQueue():this._invalidationContext&&this.relayoutNow(),this.shouldOverscan&&this._overscanManager.collectMetrics()}_flushVisibleViews(){let t=new Map([[null,[]]]);for(let u of this._children){var n,r,i,a,o;((n=u.layoutInfo)===null||n===void 0?void 0:n.parentKey)!=null&&!t.has(u.layoutInfo.parentKey)&&t.set(u.layoutInfo.parentKey,[]),(r=t.get((i=u.layoutInfo)===null||i===void 0?void 0:i.parentKey))===null||r===void 0||r.push(u),t.has((a=u.layoutInfo)===null||a===void 0?void 0:a.key)||t.set((o=u.layoutInfo)===null||o===void 0?void 0:o.key,[])}let l=(u,c)=>c.map(f=>{let p=t.get(f.layoutInfo.key);return this.delegate.renderWrapper(u,f,p,g=>l(f,g))}),s=l(null,t.get(null));this.delegate.setVisibleViews(s)}_applyLayoutInfo(t,n){return t.layoutInfo===n?!1:(t.layoutInfo=n,!0)}_applyLayoutInfos(){let t=!1;for(let n of this._visibleViews.values()){let r=n.layoutInfo;if((r==null?void 0:r.key)!=null){let i=this.layout.getLayoutInfo(r.key);this._applyLayoutInfo(n,i)&&(t=!0)}}if(this._transaction){for(let n of this._transaction.toRemove.values()){let r=n.layoutInfo;if((r==null?void 0:r.key)!=null){let i=this.layout.getLayoutInfo(r.key);this._applyLayoutInfo(n,i)&&(t=!0)}}for(let n of this._transaction.removed.values()){let r=n.layoutInfo,i=this._transaction.finalLayoutInfo.get(r.key)||r;i=this.layout.getFinalLayoutInfo(i.copy()),this._applyLayoutInfo(n,i)&&(t=!0)}}t&&this._flushVisibleViews()}_hasLayoutUpdates(){if(!this._transaction)return!1;for(let t of this._visibleViews.values()){let n=t.layoutInfo;if(!n)return!0;let r=this.layout.getLayoutInfo(n.key);if(!n.rect.equals(r.rect)||n.opacity!==r.opacity||n.transform!==r.transform)return!0}return!1}reuseView(t){t.prepareForReuse(),this._reusableViews[t.viewType].push(t)}removeViews(t){for(let n of t)this._children.delete(n)}updateItemSize(t,n){if(!this.layout.updateItemSize)return;if(this._scrollAnimation){this._sizeUpdateQueue.set(t,n);return}this.layout.updateItemSize(t,n)&&this.relayout()}startScrolling(){this._isScrolling=!0}endScrolling(){this._isScrolling=!1,this._correctItemOrder(),this._flushVisibleViews()}_resetAnimatedContentOffset(){this._animatedContentOffset.isOrigin()||(this._animatedContentOffset=new vi(0,0),this._applyLayoutInfos())}scrollToItem(t,n){if(t==null)return;let r=this.layout.getLayoutInfo(t);if(!r)return;let{duration:i=300,shouldScrollX:a=!0,shouldScrollY:o=!0,offsetX:l=0,offsetY:s=0}=n,u=this.visibleRect.x,c=this.visibleRect.y,f=r.rect.x-l,p=r.rect.y-s,g=u+this.visibleRect.width,v=c+this.visibleRect.height;return a&&(f<=u||g===0?u=f:r.rect.maxX>g&&(u+=r.rect.maxX-g)),o&&(p<=c||v===0?c=p:r.rect.maxY>v&&(c+=r.rect.maxY-v)),this.scrollTo(new vi(u,c),i)}scrollTo(t,n=300){return this._scrollAnimation&&(this._scrollAnimation.cancel(),this._scrollAnimation=null),n<=0||this.visibleRect.pointEquals(t)?(this._setContentOffset(t),Promise.resolve()):(this.startScrolling(),this._scrollAnimation=c_e(this.visibleRect,t,n,f_e,r=>{this._setContentOffset(r)}),this._scrollAnimation.then(()=>{this._scrollAnimation=null;for(let[r,i]of this._sizeUpdateQueue)this.updateItemSize(r,i);this._sizeUpdateQueue.clear(),this.relayout(),this._processTransactionQueue(),this.endScrolling()}),this._scrollAnimation)}_runTransaction(t,n){this._startTransaction(),this._nextTransaction&&this._nextTransaction.actions.push(t),this._endTransaction(n)}_startTransaction(){this._nextTransaction||(this._nextTransaction=new v_e),this._nextTransaction.level++}_endTransaction(t){return!this._nextTransaction||(t!=null&&(this._nextTransaction.animated=t),--this._nextTransaction.level>0)?!1:this._nextTransaction.actions.length===0?(this._nextTransaction=null,!1):(this._nextTransaction.animated==null&&(this._nextTransaction.animated=!0),this._transactionQueue.push(this._nextTransaction),this._nextTransaction=null,!0)}_processTransactionQueue(){if(this._transaction||this._scrollAnimation)return;let t=this._transactionQueue.shift();t&&this._performTransaction(t)}_getContentRect(){return new mn(0,0,this.contentSize.width,this.contentSize.height)}_performTransaction(t){this._transaction=t,this.relayoutNow({transaction:t,animated:t.animated,beforeLayout:()=>{t.animated&&(t.initialMap=this._getLayoutInfoMap(this._getContentRect(),!0));for(let n of t.actions)n()},afterLayout:()=>{t.animated?(t.finalMap=this._getLayoutInfoMap(this._getContentRect()),this._setupTransactionAnimations(t)):this._transaction=null},afterAnimation:()=>{if(t.toRemove.size>0||t.removed.size>0)for(let n of h_e(t.toRemove.values(),t.removed.values()))this._children.delete(n),this.reuseView(n);this._transaction=null,this._correctItemOrder(),this._flushVisibleViews(),this._processTransactionQueue()}})}_setupTransactionAnimations(t){let{initialMap:n,finalMap:r}=t;for(let[i,a]of n)r.has(i)?t.initialLayoutInfo.set(i,a):t.finalLayoutInfo.set(a.key,a);for(let[i,a]of r)if(!n.has(i)){let o=this.layout.getInitialLayoutInfo(a.copy());t.initialLayoutInfo.set(i,o)}for(let[i,a]of this._visibleViews)!r.has(i)&&a.layoutInfo.rect.width>0&&(t.removed.set(i,a),this._visibleViews.delete(i),a.layoutInfo&&(t.finalLayoutInfo.has(a.layoutInfo.key)||t.finalLayoutInfo.set(a.layoutInfo.key,a.layoutInfo)))}constructor(t={}){this._contentSize=new fc,this._visibleRect=new mn,this._reusableViews={},this._visibleLayoutInfos=new Map,this._visibleViews=new Map,this._renderedContent=new WeakMap,this._children=new Set,this._invalidationContext=null,this._overscanManager=new g_e,this._persistedKeys=new Set,this._scrollAnimation=null,this._isScrolling=!1,this._sizeUpdateQueue=new Map,this._animatedContentOffset=new vi(0,0),this._transaction=null,this._nextTransaction=null,this._transactionQueue=[];var n;this.transitionDuration=(n=t.transitionDuration)!==null&&n!==void 0?n:500,this.anchorScrollPosition=t.anchorScrollPosition||!1,this.anchorScrollPositionAtTop=t.anchorScrollPositionAtTop||!1,this.shouldOverscan=t.shouldOverscan!==!1;for(let r of["delegate","size","layout","collection"])t[r]&&(this[r]=t[r])}}function O_e(e){let[t,n]=R.useState([]),[r,i]=R.useState(new fc),[a,o]=R.useState(!1),[l,s]=R.useState(!1),u=R.useMemo(()=>new m_e,[]);u.delegate={setVisibleViews:n,setVisibleRect(v){u.visibleRect=v,e.onVisibleRectChange(v)},setContentSize:i,renderView:e.renderView,renderWrapper:e.renderWrapper,beginAnimations:()=>o(!0),endAnimations:()=>o(!1),getScrollAnchor:e.getScrollAnchor},u.layout=e.layout,u.collection=e.collection,u.transitionDuration=e.transitionDuration,qt(()=>{u.afterRender()}),R.useEffect(()=>()=>u.willUnmount(),[]);let c=R.useCallback(v=>{u.visibleRect=v},[u]),f=R.useCallback(()=>{u.startScrolling(),s(!0)},[u]),p=R.useCallback(()=>{u.endScrolling(),s(!1)},[u]);return R.useMemo(()=>({virtualizer:u,visibleViews:t,setVisibleRect:c,contentSize:r,isAnimating:a,isScrolling:l,startScrolling:f,endScrolling:p}),[u,t,c,r,a,l,f,p])}const r3=48;class oXe extends l_e{getLayoutInfo(t){let n=this.layoutInfos.get(t);return!n&&this.validRect.area<this.contentSize.area&&this.lastCollection&&(this.lastValidRect=this.validRect,this.validRect=new mn(0,0,1/0,1/0),this.rootNodes=this.buildCollection(),this.validRect=new mn(0,0,this.contentSize.width,this.contentSize.height),n=this.layoutInfos.get(t)),n}getVisibleLayoutInfos(t){!this.validRect.containsRect(t)&&this.lastCollection&&(this.lastValidRect=this.validRect,this.validRect=this.validRect.union(t),this.rootNodes=this.buildCollection());let n=[],r=i=>{for(let a of i)this.isVisible(a,t)&&(n.push(a.layoutInfo),a.header&&n.push(a.header),a.children&&r(a.children))};return r(this.rootNodes),n}isVisible(t,n){return t.layoutInfo.rect.intersects(n)||t.layoutInfo.isSticky||this.virtualizer.isPersistedKey(t.layoutInfo.key)}shouldInvalidateEverything(t){return t.sizeChanged}validate(t){if(this.collection=this.virtualizer.collection,this.invalidateEverything=this.shouldInvalidateEverything(t),this.invalidateEverything&&(this.lastValidRect=this.validRect,this.validRect=this.virtualizer.getVisibleRect()),this.rootNodes=this.buildCollection(),this.lastCollection&&this.collection!==this.lastCollection){for(let r of this.lastCollection.getKeys())if(!this.collection.getItem(r)){let i=this.layoutNodes.get(r);if(i){var n;this.layoutInfos.delete(i.layoutInfo.key),this.layoutInfos.delete((n=i.header)===null||n===void 0?void 0:n.key),this.layoutNodes.delete(r)}}}this.lastWidth=this.virtualizer.visibleRect.width,this.lastCollection=this.collection,this.invalidateEverything=!1}buildCollection(){let t=this.padding,n=0,r=[];for(let l of this.collection){var i;let s=(i=this.rowHeight)!==null&&i!==void 0?i:this.estimatedRowHeight;if(l.type==="item"&&t+s<this.validRect.y&&!this.isValid(l,t)){t+=s,n++;continue}let u=this.buildChild(l,0,t);if(t=u.layoutInfo.rect.maxY,r.push(u),l.type==="item"&&t>this.validRect.maxY){t+=(this.collection.size-(r.length+n))*s;break}}if(this.isLoading){var a;let l=new mn(0,t,this.virtualizer.visibleRect.width,(a=this.loaderHeight)!==null&&a!==void 0?a:this.virtualizer.visibleRect.height),s=new Tu("loader","loader",l);this.layoutInfos.set("loader",s),r.push({layoutInfo:s}),t=s.rect.maxY}if(r.length===0){var o;let l=new mn(0,t,this.virtualizer.visibleRect.width,(o=this.placeholderHeight)!==null&&o!==void 0?o:this.virtualizer.visibleRect.height),s=new Tu("placeholder","placeholder",l);this.layoutInfos.set("placeholder",s),r.push({layoutInfo:s}),t=s.rect.maxY}return this.contentSize=new fc(this.virtualizer.visibleRect.width,t+this.padding),r}isValid(t,n){let r=this.layoutNodes.get(t.key);return!this.invalidateEverything&&r&&r.node===t&&n===(r.header||r.layoutInfo).rect.y&&r.layoutInfo.rect.intersects(this.lastValidRect)&&r.validRect.containsRect(r.layoutInfo.rect.intersection(this.validRect))}buildChild(t,n,r){if(this.isValid(t,r))return this.layoutNodes.get(t.key);let i=this.buildNode(t,n,r);i.node=t;var a;return i.layoutInfo.parentKey=(a=t.parentKey)!==null&&a!==void 0?a:null,this.layoutInfos.set(i.layoutInfo.key,i.layoutInfo),i.header&&this.layoutInfos.set(i.header.key,i.header),this.layoutNodes.set(t.key,i),i}buildNode(t,n,r){switch(t.type){case"section":return this.buildSection(t,n,r);case"item":return this.buildItem(t,n,r)}}buildSection(t,n,r){let i=this.virtualizer.visibleRect.width,a=this.headingHeight,o=!1;if(a==null){let m=this.layoutNodes.get(t.key);if(m&&m.header){let _=this.collection.getItem(t.key),O=this.lastCollection?this.lastCollection.getItem(t.key):null;a=m.header.rect.height,o=i!==this.lastWidth||_!==O||m.header.estimatedSize}else a=t.rendered?this.estimatedHeadingHeight:0,o=!0}a==null&&(a=r3);let l=new mn(0,r,i,a),s=new Tu("header",t.key+":header",l);s.estimatedSize=o,s.parentKey=t.key,r+=s.rect.height;let u=new mn(0,r,i,0),c=new Tu(t.type,t.key,u),f=r,p=0,g=[];for(let m of Gy(t,this.collection)){var v;let _=(v=this.rowHeight)!==null&&v!==void 0?v:this.estimatedRowHeight;if(r+_<this.validRect.y&&!this.isValid(t,r)){r+=_,p++;continue}let O=this.buildChild(m,n,r);if(r=O.layoutInfo.rect.maxY,g.push(O),r>this.validRect.maxY){r+=([...Gy(t,this.collection)].length-(g.length+p))*_;break}}return u.height=r-f,{header:s,layoutInfo:c,children:g,validRect:c.rect.intersection(this.validRect)}}buildItem(t,n,r){let i=this.virtualizer.visibleRect.width,a=this.rowHeight,o=!1;if(a==null){let u=this.layoutNodes.get(t.key);u?(a=u.layoutInfo.rect.height,o=i!==this.lastWidth||t!==u.node||u.layoutInfo.estimatedSize):(a=this.estimatedRowHeight,o=!0)}a==null&&(a=r3),typeof this.indentationForItem=="function"&&(n+=this.indentationForItem(this.collection,t.key)||0);let l=new mn(n,r,i-n,a),s=new Tu(t.type,t.key,l);return s.allowOverflow=!0,s.estimatedSize=o,{layoutInfo:s,validRect:s.rect}}updateItemSize(t,n){let r=this.layoutInfos.get(t);if(!r)return!1;if(r.estimatedSize=!1,r.rect.height!==n.height){let i=r.copy();i.rect.height=n.height,this.layoutInfos.set(t,i),this.updateLayoutNode(t,r,i);let a=this.collection.getItem(r.parentKey);for(;a;)this.updateLayoutNode(a.key,r,i),a=this.collection.getItem(a.parentKey);return!0}return!1}updateLayoutNode(t,n,r){let i=this.layoutNodes.get(t);i&&(i.validRect=new mn,i.header===n?i.header=r:i.layoutInfo===n&&(i.layoutInfo=r))}getContentSize(){return this.contentSize}getKeyAbove(t){let n=this.collection;for(t=n.getKeyBefore(t);t!=null;){let r=n.getItem(t);if(r.type==="item"&&(this.allowDisabledKeyFocus||!this.disabledKeys.has(r.key)))return t;t=n.getKeyBefore(t)}}getKeyBelow(t){let n=this.collection;for(t=n.getKeyAfter(t);t!=null;){let r=n.getItem(t);if(r.type==="item"&&(this.allowDisabledKeyFocus||!this.disabledKeys.has(r.key)))return t;t=n.getKeyAfter(t)}}getKeyPageAbove(t){let n=this.getLayoutInfo(t);if(n){let r=Math.max(0,n.rect.y+n.rect.height-this.virtualizer.visibleRect.height);for(;n&&n.rect.y>r;){let i=this.getKeyAbove(n.key);n=this.getLayoutInfo(i)}if(n)return n.key}return this.getFirstKey()}getKeyPageBelow(t){let n=this.getLayoutInfo(t??this.getFirstKey());if(n){let r=Math.min(this.virtualizer.contentSize.height,n.rect.y-n.rect.height+this.virtualizer.visibleRect.height);for(;n&&n.rect.y<r;){let i=this.getKeyBelow(n.key);n=this.getLayoutInfo(i)}if(n)return n.key}return this.getLastKey()}getFirstKey(){let t=this.collection,n=t.getFirstKey();for(;n!=null;){let r=t.getItem(n);if(r.type==="item"&&(this.allowDisabledKeyFocus||!this.disabledKeys.has(r.key)))return n;n=t.getKeyAfter(n)}}getLastKey(){let t=this.collection,n=t.getLastKey();for(;n!=null;){let r=t.getItem(n);if(r.type==="item"&&(this.allowDisabledKeyFocus||!this.disabledKeys.has(r.key)))return n;n=t.getKeyBefore(n)}}getKeyForSearch(t,n){if(!this.collator)return null;let r=this.collection,i=n||this.getFirstKey();for(;i!=null;){let a=r.getItem(i),o=a.textValue.slice(0,t.length);if(a.textValue&&this.collator.compare(o,t)===0)return i;i=this.getKeyBelow(i)}return null}getInitialLayoutInfo(t){return t.opacity=0,t.transform="scale3d(0.8, 0.8, 0.8)",t}getFinalLayoutInfo(t){return t.opacity=0,t.transform="scale3d(0.8, 0.8, 0.8)",t}getDropTargetFromPoint(t,n,r){t+=this.virtualizer.visibleRect.x,n+=this.virtualizer.visibleRect.y;let i=this.virtualizer.keyAtPoint(new vi(t,n));if(i==null||this.collection.size===0)return{type:"root"};let a=this.getLayoutInfo(i),o=a.rect,l={type:"item",key:a.key,dropPosition:"on"};return r(l)?n<=o.y+10&&r({...l,dropPosition:"before"})?l.dropPosition="before":n>=o.maxY-10&&r({...l,dropPosition:"after"})&&(l.dropPosition="after"):n<=o.y+o.height/2&&r({...l,dropPosition:"before"})?l.dropPosition="before":r({...l,dropPosition:"after"})&&(l.dropPosition="after"),l}constructor(t={}){super(),this.disabledKeys=new Set,this.allowDisabledKeyFocus=!1,this.rowHeight=t.rowHeight,this.estimatedRowHeight=t.estimatedRowHeight,this.headingHeight=t.headingHeight,this.estimatedHeadingHeight=t.estimatedHeadingHeight,this.padding=t.padding||0,this.indentationForItem=t.indentationForItem,this.collator=t.collator,this.loaderHeight=t.loaderHeight,this.placeholderHeight=t.placeholderHeight,this.layoutInfos=new Map,this.layoutNodes=new Map,this.rootNodes=[],this.lastWidth=0,this.lastCollection=null,this.allowDisabledKeyFocus=t.allowDisabledKeyFocus,this.lastValidRect=new mn,this.validRect=new mn,this.contentSize=new fc}}let of=null;function y_e(e=!1){if(of===null||e){const t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";const r=document.createElement("div"),i=r.style;return i.width="100px",i.height="100px",t.appendChild(r),document.body.appendChild(t),t.scrollLeft>0?of="positive-descending":(t.scrollLeft=1,t.scrollLeft===0?of="negative":of="positive-ascending"),document.body.removeChild(t),of}return of}function __e(e,t){let{scrollLeft:n}=e;if(t==="rtl"){let{scrollWidth:r,clientWidth:i}=e;switch(y_e()){case"negative":n=-n;break;case"positive-descending":n=r-i-n;break}}return n}let S_e=pe.version.startsWith("16.")||pe.version.startsWith("17.");function b_e(e,t){let{contentSize:n,onVisibleRectChange:r,children:i,innerStyle:a,sizeToFit:o,onScrollStart:l,onScrollEnd:s,scrollDirection:u="both",...c}=e,f=R.useRef();t=t||f;let p=R.useRef({scrollTop:0,scrollLeft:0,scrollEndTime:0,scrollTimeout:null,width:0,height:0,isScrolling:!1}).current,{direction:g}=Vo(),[v,m]=R.useState(!1),_=R.useCallback(E=>{E.target===E.currentTarget&&(e.onScroll&&e.onScroll(E),g1.flushSync(()=>{let $=E.currentTarget.scrollTop,Q=__e(E.currentTarget,g);p.scrollTop=Math.max(0,Math.min($,n.height-p.height)),p.scrollLeft=Math.max(0,Math.min(Q,n.width-p.width)),r(new mn(p.scrollLeft,p.scrollTop,p.width,p.height)),p.isScrolling||(p.isScrolling=!0,m(!0),l&&l());let k=Date.now();p.scrollEndTime<=k+50&&(p.scrollEndTime=k+300,clearTimeout(p.scrollTimeout),p.scrollTimeout=setTimeout(()=>{p.isScrolling=!1,m(!1),p.scrollTimeout=null,s&&s()},300))}))},[e,g,p,n,r,l,s]);R.useEffect(()=>()=>{clearTimeout(p.scrollTimeout)},[]);let O=R.useCallback(()=>{let E=t.current;if(!E)return;Object.getOwnPropertyNames(window.HTMLElement.prototype).includes("clientWidth"),Object.getOwnPropertyNames(window.HTMLElement.prototype).includes("clientHeight");let $=E.clientWidth,Q=E.clientHeight;o&&n.width>0&&n.height>0&&(o==="width"?$=Math.min($,n.width):o==="height"&&(Q=Math.min(Q,n.height))),(p.width!==$||p.height!==Q)&&(p.width=$,p.height=Q,r(new mn(p.scrollLeft,p.scrollTop,$,Q)))},[r,t,p,o,n]);qt(()=>{O()},[O]);let S=R.useRef();_q({ref:t,onResize:()=>{var E,$;S_e?($=(E=S).current)!==null&&$!==void 0||(E.current=requestAnimationFrame(()=>{O(),S.current=null})):O()}}),R.useEffect(()=>()=>{S.current&&cancelAnimationFrame(S.current)},[]);let P={padding:0,...c.style};return u==="horizontal"?(P.overflowX="auto",P.overflowY="hidden"):u==="vertical"||n.width===p.width?(P.overflowY="auto",P.overflowX="hidden"):P.overflow="auto",a={width:Number.isFinite(n.width)?n.width:void 0,height:Number.isFinite(n.height)?n.height:void 0,pointerEvents:v?"none":"auto",position:"relative",...a},pe.createElement("div",{...c,style:P,ref:t,onScroll:_},pe.createElement("div",{role:"presentation",style:a},i))}const w_e=pe.forwardRef(b_e);function $_e(e){let{layoutInfo:t,virtualizer:n,ref:r}=e,i=R.useCallback(()=>{let a=x_e(r.current);n.updateItemSize(t.key,a)},[n,t.key,r]);return qt(()=>{t.estimatedSize&&i()}),{updateSize:i}}function x_e(e){let t=e.style.height;e.style.height="";let n=new fc(e.scrollWidth,e.scrollHeight);return e.style.height=t,n}function P_e(e){let{className:t,layoutInfo:n,virtualizer:r,parent:i,children:a}=e,{direction:o}=Vo(),l=R.useRef();return $_e({layoutInfo:n,virtualizer:r,ref:l}),pe.createElement("div",{role:"presentation",ref:l,className:t,style:E_e(n,o,i)},a)}let i3=new WeakMap;function E_e(e,t,n){let r=t==="rtl"?"right":"left",i=i3.get(e);if(i&&i[r]!=null){if(!n)return i;let l=e.rect.y-n.rect.y,s=e.rect.x-n.rect.x;if(i.top===l&&i[r]===s)return i}let a={top:e.rect.y-(n?n.rect.y:0),[r]:e.rect.x-(n?n.rect.x:0),width:e.rect.width,height:e.rect.height};Object.entries(a).forEach(([l,s])=>{Number.isFinite(s)||(a[l]=void 0)});let o={position:e.isSticky?"sticky":"absolute",display:e.isSticky?"inline-block":void 0,overflow:e.allowOverflow?"visible":"hidden",transition:"all",WebkitTransition:"all",WebkitTransitionDuration:"inherit",transitionDuration:"inherit",opacity:e.opacity,zIndex:e.zIndex,transform:e.transform,contain:"size layout style",...a};return i3.set(e,o),o}function R_e(e,t){let{children:n,renderWrapper:r,layout:i,collection:a,sizeToFit:o,scrollDirection:l,transitionDuration:s,isLoading:u,onLoadMore:c,focusedKey:f,shouldUseVirtualFocus:p,scrollToItem:g,autoFocus:v,...m}=e,_=R.useRef();t=t||_;let O=O_e({transitionDuration:s,layout:i,collection:a,renderView:n,renderWrapper:r||T_e,onVisibleRectChange(P){t.current.scrollLeft=P.x,t.current.scrollTop=P.y}}),{virtualizerProps:S,scrollViewProps:b}=k_e(e,O,t);return pe.createElement(w_e,{...mt(m,S,b),ref:t,innerStyle:O.isAnimating?{transition:`none ${O.virtualizer.transitionDuration}ms`}:void 0,contentSize:O.contentSize,onScrollStart:O.startScrolling,onScrollEnd:O.endScrolling,sizeToFit:o,scrollDirection:l},O.visibleViews)}function k_e(e,t,n){let{focusedKey:r,scrollToItem:i,shouldUseVirtualFocus:a,isLoading:o,onLoadMore:l}=e,{virtualizer:s}=t,u=R.useRef(null),c=R.useRef(!1),f=R.useRef(e.autoFocus);R.useEffect(()=>{if(s.visibleRect.height===0)return;let b=pd();r!==u.current&&(b!=="pointer"||f.current)&&(f.current=!1,i?i(r):s.scrollToItem(r,{duration:0})),u.current=r},[r,s.visibleRect.height,s,u,i,n]),s.persistedKeys=R.useMemo(()=>r?new Set([r]):new Set,[r]);let p=R.useCallback(b=>{let P=pd();!c.current&&n.current.contains(b.target)&&P!=="pointer"&&(i?i(r):s.scrollToItem(r,{duration:0})),c.current=b.target!==n.current},[n,s,r,i]),g=R.useCallback(b=>{c.current=n.current.contains(b.relatedTarget)},[n]),v;a||(v=r!=null?-1:0,s.collection.size===0&&e.tabIndex!=null&&(v=e.tabIndex));let m=R.useRef(o),_=R.useRef(e),O=R.useCallback(b=>{if(t.setVisibleRect(b),!m.current&&l){let P=t.virtualizer.contentSize.height-b.height*2;b.y>P&&(m.current=!0,l())}},[l,t]),S=R.useRef(0);return qt(()=>{if(t.isAnimating)return;let b=m.current;e!==_.current&&(m.current=o,_.current=e),!m.current&&l&&t.contentSize.height>0&&t.contentSize.height<=t.virtualizer.visibleRect.height&&(b||t.contentSize.height!==S.current)&&(m.current=!0,l()),S.current=t.contentSize.height},[t.contentSize,t.isAnimating,t.virtualizer,o,l,e]),{virtualizerProps:{tabIndex:v,onFocus:p,onBlur:g},scrollViewProps:{onVisibleRectChange:O}}}const lXe=pe.forwardRef(R_e);function T_e(e,t){return pe.createElement(P_e,{key:t.key,layoutInfo:t.layoutInfo,virtualizer:t.virtualizer,parent:e==null?void 0:e.layoutInfo},t.rendered)}function sXe(e){let t=Fr(e,{labelable:!0}),n;return e.orientation==="vertical"&&(n="vertical"),e.elementType!=="hr"?{separatorProps:{...t,role:"separator","aria-orientation":n}}:{separatorProps:t}}var Vj={};Vj={longPressMessage:"اضغط مطولاً أو اضغط على Alt + السهم لأسفل لفتح القائمة"};var Zj={};Zj={longPressMessage:"Натиснете продължително или натиснете Alt+ стрелка надолу, за да отворите менюто"};var Wj={};Wj={longPressMessage:"Dlouhým stiskem nebo stisknutím kláves Alt + šipka dolů otevřete nabídku"};var Xj={};Xj={longPressMessage:"Langt tryk eller tryk på Alt + pil ned for at åbne menuen"};var Yj={};Yj={longPressMessage:"Drücken Sie lange oder drücken Sie Alt + Nach-unten, um das Menü zu öffnen"};var Gj={};Gj={longPressMessage:"Πιέστε παρατεταμένα ή πατήστε Alt + κάτω βέλος για να ανοίξετε το μενού"};var Bj={};Bj={longPressMessage:"Long press or press Alt + ArrowDown to open menu"};var Hj={};Hj={longPressMessage:"Mantenga pulsado o pulse Alt + flecha abajo para abrir el menú"};var Kj={};Kj={longPressMessage:"Menüü avamiseks vajutage pikalt või vajutage klahve Alt + allanool"};var Jj={};Jj={longPressMessage:"Avaa valikko painamalla pohjassa tai näppäinyhdistelmällä Alt + Alanuoli"};var eV={};eV={longPressMessage:"Appuyez de manière prolongée ou appuyez sur Alt + Flèche vers le bas pour ouvrir le menu."};var tV={};tV={longPressMessage:"לחץ לחיצה ארוכה או הקש Alt + ArrowDown כדי לפתוח את התפריט"};var nV={};nV={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dolje za otvaranje izbornika"};var rV={};rV={longPressMessage:"Nyomja meg hosszan, vagy nyomja meg az Alt + lefele nyíl gombot a menü megnyitásához"};var iV={};iV={longPressMessage:"Premere a lungo o premere Alt + Freccia giù per aprire il menu"};var aV={};aV={longPressMessage:"長押しまたは Alt+下矢印キーでメニューを開く"};var oV={};oV={longPressMessage:"길게 누르거나 Alt + 아래쪽 화살표를 눌러 메뉴 열기"};var lV={};lV={longPressMessage:"Norėdami atidaryti meniu, nuspaudę palaikykite arba paspauskite „Alt + ArrowDown“."};var sV={};sV={longPressMessage:"Lai atvērtu izvēlni, turiet nospiestu vai nospiediet taustiņu kombināciju Alt + lejupvērstā bultiņa"};var uV={};uV={longPressMessage:"Langt trykk eller trykk Alt + PilNed for å åpne menyen"};var cV={};cV={longPressMessage:"Druk lang op Alt + pijl-omlaag of druk op Alt om het menu te openen"};var fV={};fV={longPressMessage:"Naciśnij i przytrzymaj lub naciśnij klawisze Alt + Strzałka w dół, aby otworzyć menu"};var dV={};dV={longPressMessage:"Pressione e segure ou pressione Alt + Seta para baixo para abrir o menu"};var hV={};hV={longPressMessage:"Prima continuamente ou prima Alt + Seta Para Baixo para abrir o menu"};var pV={};pV={longPressMessage:"Apăsați lung sau apăsați pe Alt + săgeată în jos pentru a deschide meniul"};var gV={};gV={longPressMessage:"Нажмите и удерживайте или нажмите Alt + Стрелка вниз, чтобы открыть меню"};var vV={};vV={longPressMessage:"Ponuku otvoríte dlhým stlačením alebo stlačením klávesu Alt + klávesu so šípkou nadol"};var mV={};mV={longPressMessage:"Za odprtje menija pritisnite in držite gumb ali pritisnite Alt+puščica navzdol"};var OV={};OV={longPressMessage:"Dugo pritisnite ili pritisnite Alt + strelicu prema dole da otvorite meni"};var yV={};yV={longPressMessage:"Håll nedtryckt eller tryck på Alt + pil nedåt för att öppna menyn"};var _V={};_V={longPressMessage:"Menüyü açmak için uzun basın veya Alt + Aşağı Ok tuşuna basın"};var SV={};SV={longPressMessage:"Довго або звичайно натисніть комбінацію клавіш Alt і стрілка вниз, щоб відкрити меню"};var bV={};bV={longPressMessage:"长按或按 Alt + 向下方向键以打开菜单"};var wV={};wV={longPressMessage:"長按或按 Alt+向下鍵以開啟功能表"};var $V={};$V={"ar-AE":Vj,"bg-BG":Zj,"cs-CZ":Wj,"da-DK":Xj,"de-DE":Yj,"el-GR":Gj,"en-US":Bj,"es-ES":Hj,"et-EE":Kj,"fi-FI":Jj,"fr-FR":eV,"he-IL":tV,"hr-HR":nV,"hu-HU":rV,"it-IT":iV,"ja-JP":aV,"ko-KR":oV,"lt-LT":lV,"lv-LV":sV,"nb-NO":uV,"nl-NL":cV,"pl-PL":fV,"pt-BR":dV,"pt-PT":hV,"ro-RO":pV,"ru-RU":gV,"sk-SK":vV,"sl-SI":mV,"sr-SP":OV,"sv-SE":yV,"tr-TR":_V,"uk-UA":SV,"zh-CN":bV,"zh-TW":wV};function C_e(e){return e&&e.__esModule?e.default:e}function Q_e(e,t,n){let{type:r="menu",isDisabled:i,trigger:a="press"}=e,o=$a(),{triggerProps:l,overlayProps:s}=F0e({type:r},t,n),u=g=>{if(!i&&!(a==="longPress"&&!g.altKey)&&n&&n.current)switch(g.key){case"Enter":case" ":if(a==="longPress")return;case"ArrowDown":"continuePropagation"in g||g.stopPropagation(),g.preventDefault(),t.toggle("first");break;case"ArrowUp":"continuePropagation"in g||g.stopPropagation(),g.preventDefault(),t.toggle("last");break;default:"continuePropagation"in g&&g.continuePropagation()}},c=Nk(C_e($V),"@react-aria/menu"),{longPressProps:f}=Mq({isDisabled:i||a!=="longPress",accessibilityDescription:c.format("longPressMessage"),onLongPressStart(){t.close()},onLongPress(){t.open("first")}}),p={onPressStart(g){g.pointerType!=="touch"&&g.pointerType!=="keyboard"&&!i&&t.open(g.pointerType==="virtual"?"first":null)},onPress(g){g.pointerType==="touch"&&!i&&t.toggle()}};return delete l.onPress,{menuTriggerProps:{...l,...a==="press"?p:f,id:o,onKeyDown:u},menuProps:{...s,"aria-labelledby":o,autoFocus:t.focusStrategy||!0,onClose:t.close}}}const xV=new WeakMap;function uXe(e,t,n){let{shouldFocusWrap:r=!0,onKeyDown:i,onKeyUp:a,...o}=e;!e["aria-label"]&&!e["aria-labelledby"]&&console.warn("An aria-label or aria-labelledby prop is required for accessibility.");let l=Fr(e,{labelable:!0}),{listProps:s}=jj({...o,ref:n,selectionManager:t.selectionManager,collection:t.collection,disabledKeys:t.disabledKeys,shouldFocusWrap:r,linkBehavior:"override"});return xV.set(t,{onClose:e.onClose,onAction:e.onAction}),{menuProps:mt(l,{onKeyDown:i,onKeyUp:a},{role:"menu",...s,onKeyDown:u=>{u.key!=="Escape"&&s.onKeyDown(u)}})}}function cXe(e,t,n){let{key:r,closeOnSelect:i,isVirtualized:a,"aria-haspopup":o,onPressStart:l,onPressUp:s,onPress:u,onPressChange:c,onPressEnd:f,onHoverStart:p,onHoverChange:g,onHoverEnd:v,onKeyDown:m,onKeyUp:_,onFocus:O,onFocusChange:S,onBlur:b}=e,P=!!o;var E;let $=(E=e.isDisabled)!==null&&E!==void 0?E:t.selectionManager.isDisabled(r);var Q;let k=(Q=e.isSelected)!==null&&Q!==void 0?Q:t.selectionManager.isSelected(r),D=xV.get(t),T=t.collection.getItem(r),A=e.onClose||D.onClose,M=Xg(),L=ve=>{var me;P||(!(T==null||(me=T.props)===null||me===void 0)&&me.onAction&&T.props.onAction(),e.onAction?e.onAction(r):D.onAction&&D.onAction(r),ve.target instanceof HTMLAnchorElement&&M.open(ve.target,ve,T.props.href,T.props.routerOptions))},N="menuitem";P||(t.selectionManager.selectionMode==="single"?N="menuitemradio":t.selectionManager.selectionMode==="multiple"&&(N="menuitemcheckbox"));let j=Rs(),B=Rs(),V=Rs(),U={"aria-disabled":$||void 0,role:N,"aria-label":e["aria-label"],"aria-labelledby":j,"aria-describedby":[B,V].filter(Boolean).join(" ")||void 0,"aria-controls":e["aria-controls"],"aria-haspopup":o,"aria-expanded":e["aria-expanded"]};t.selectionManager.selectionMode!=="none"&&!P&&(U["aria-checked"]=k),a&&(U["aria-posinset"]=T==null?void 0:T.index,U["aria-setsize"]=Fj(t.collection));let G=ve=>{ve.pointerType==="keyboard"&&L(ve),l==null||l(ve)},I=ve=>{ve.pointerType!=="keyboard"&&(L(ve),!P&&A&&(i??(t.selectionManager.selectionMode!=="multiple"||t.selectionManager.isLink(r)))&&A()),s==null||s(ve)},{itemProps:X,isFocused:Z}=Uj({selectionManager:t.selectionManager,key:r,ref:n,shouldSelectOnPressUp:!0,allowsDifferentPressOrigin:!0,linkBehavior:"none"}),{pressProps:F,isPressed:ue}=kl({onPressStart:G,onPress:u,onPressUp:I,onPressChange:c,onPressEnd:f,isDisabled:$}),{hoverProps:ge}=q1({isDisabled:$,onHoverStart(ve){hd()||(t.selectionManager.setFocused(!0),t.selectionManager.setFocusedKey(r)),p==null||p(ve)},onHoverChange:g,onHoverEnd:v}),{keyboardProps:de}=jk({onKeyDown:ve=>{if(ve.repeat){ve.continuePropagation();return}switch(ve.key){case" ":!$&&t.selectionManager.selectionMode==="none"&&!P&&i!==!1&&A&&A();break;case"Enter":!$&&i!==!1&&!P&&A&&A();break;default:P||ve.continuePropagation(),m==null||m(ve);break}},onKeyUp:_}),{focusProps:Qe}=Uk({onBlur:b,onFocus:O,onFocusChange:S}),Ae=Fr(T.props);delete Ae.id;let ce=Lk(T.props);return{menuItemProps:{...U,...mt(Ae,ce,P?{onFocus:X.onFocus,"data-key":X["data-key"]}:X,F,ge,de,Qe),tabIndex:X.tabIndex!=null?-1:void 0},labelProps:{id:j},descriptionProps:{id:B},keyboardShortcutProps:{id:V},isFocused:Z,isSelected:k,isPressed:ue,isDisabled:$}}function fXe(e){let{heading:t,"aria-label":n}=e,r=$a();return{itemProps:{role:"presentation"},headingProps:t?{id:r,role:"presentation"}:{},groupProps:{role:"group","aria-label":n,"aria-labelledby":t?r:void 0}}}const PV=new WeakMap;function dXe(e,t,n){let{keyboardDelegate:r,isDisabled:i,isRequired:a,name:o,validationBehavior:l="aria"}=e,s=Eq({usage:"search",sensitivity:"base"}),u=R.useMemo(()=>r||new qj(t.collection,t.disabledKeys,null,s),[r,t.collection,t.disabledKeys,s]),{menuTriggerProps:c,menuProps:f}=Q_e({isDisabled:i,type:"listbox"},t,n),p=k=>{switch(k.key){case"ArrowLeft":{k.preventDefault();let D=t.selectedKey!=null?u.getKeyAbove(t.selectedKey):u.getFirstKey();D&&t.setSelectedKey(D);break}case"ArrowRight":{k.preventDefault();let D=t.selectedKey!=null?u.getKeyBelow(t.selectedKey):u.getFirstKey();D&&t.setSelectedKey(D);break}}},{typeSelectProps:g}=zj({keyboardDelegate:u,selectionManager:t.selectionManager,onTypeSelect(k){t.setSelectedKey(k)}}),{isInvalid:v,validationErrors:m,validationDetails:_}=t.displayValidation,{labelProps:O,fieldProps:S,descriptionProps:b,errorMessageProps:P}=Bk({...e,labelElementType:"span",isInvalid:v,errorMessage:e.errorMessage||m});g.onKeyDown=g.onKeyDownCapture,delete g.onKeyDownCapture;let E=Fr(e,{labelable:!0}),$=mt(g,c,S),Q=$a();return PV.set(t,{isDisabled:i,isRequired:a,name:o,validationBehavior:l}),{labelProps:{...O,onClick:()=>{e.isDisabled||(n.current.focus(),qk("keyboard"))}},triggerProps:mt(E,{...$,isDisabled:i,onKeyDown:oc($.onKeyDown,p,e.onKeyDown),onKeyUp:e.onKeyUp,"aria-labelledby":[Q,$["aria-labelledby"],$["aria-label"]&&!$["aria-labelledby"]?$.id:null].filter(Boolean).join(" "),onFocus(k){t.isFocused||(e.onFocus&&e.onFocus(k),e.onFocusChange&&e.onFocusChange(!0),t.setFocused(!0))},onBlur(k){t.isOpen||(e.onBlur&&e.onBlur(k),e.onFocusChange&&e.onFocusChange(!1),t.setFocused(!1))}}),valueProps:{id:Q},menuProps:{...f,autoFocus:t.focusStrategy||!0,shouldSelectOnPressUp:!0,shouldFocusOnHover:!0,disallowEmptySelection:!0,linkBehavior:"selection",onBlur:k=>{k.currentTarget.contains(k.relatedTarget)||(e.onBlur&&e.onBlur(k),e.onFocusChange&&e.onFocusChange(!1),t.setFocused(!1))},"aria-labelledby":[S["aria-labelledby"],$["aria-label"]&&!S["aria-labelledby"]?$.id:null].filter(Boolean).join(" ")},descriptionProps:b,errorMessageProps:P,isInvalid:v,validationErrors:m,validationDetails:_}}function A_e(e,t,n){let r=PV.get(t)||{},{autoComplete:i,name:a=r.name,isDisabled:o=r.isDisabled}=e,{validationBehavior:l,isRequired:s}=r,u=m0e(),{visuallyHiddenProps:c}=Sj();Gg(e.selectRef,t.selectedKey,t.setSelectedKey),Gk({validationBehavior:l,focus:()=>n.current.focus()},t,e.selectRef);var f;return{containerProps:{...c,"aria-hidden":!0,"data-react-aria-prevent-focus":!0,"data-a11y-ignore":"aria-hidden-focus"},inputProps:{type:"text",tabIndex:u==null||t.isFocused||t.isOpen?-1:0,style:{fontSize:16},onFocus:()=>n.current.focus(),disabled:o},selectProps:{tabIndex:-1,autoComplete:i,disabled:o,required:l==="native"&&s,name:a,value:(f=t.selectedKey)!==null&&f!==void 0?f:"",onChange:p=>t.setSelectedKey(p.target.value)}}}function hXe(e){let{state:t,triggerRef:n,label:r,name:i,isDisabled:a}=e,o=R.useRef(null),{containerProps:l,inputProps:s,selectProps:u}=A_e({...e,selectRef:o},t,n);var c;return t.collection.size<=300?pe.createElement("div",{...l,"data-testid":"hidden-select-container"},pe.createElement("input",s),pe.createElement("label",null,r,pe.createElement("select",{...u,ref:o},pe.createElement("option",null),[...t.collection.getKeys()].map(f=>{let p=t.collection.getItem(f);if(p.type==="item")return pe.createElement("option",{key:p.key,value:p.key},p.textValue)})))):i?pe.createElement("input",{type:"hidden",autoComplete:u.autoComplete,name:i,disabled:a,value:(c=t.selectedKey)!==null&&c!==void 0?c:""}):null}function pXe(e){let t=Wk(e),[n,r]=R.useState(null),i=t_e({...e,onSelectionChange:s=>{e.onSelectionChange!=null&&e.onSelectionChange(s),t.close(),a.commitValidation()}}),a=Yk({...e,value:i.selectedKey}),[o,l]=R.useState(!1);return{...a,...i,...t,focusStrategy:n,open(s=null){i.collection.size!==0&&(r(s),t.open())},toggle(s=null){i.collection.size!==0&&(r(s),t.toggle())},isFocused:o,setFocused:l}}function I_e(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function D_e(e,t){e.classList?e.classList.add(t):I_e(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function a3(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function M_e(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=a3(e.className,t):e.setAttribute("class",a3(e.className&&e.className.baseVal||"",t))}var L_e=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return D_e(t,r)})},kw=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return M_e(t,r)})},EV=function(e){j1(t,e);function t(){for(var r,i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return r=e.call.apply(e,[this].concat(a))||this,r.appliedClasses={appear:{},enter:{},exit:{}},r.onEnter=function(l,s){var u=r.resolveArguments(l,s),c=u[0],f=u[1];r.removeClasses(c,"exit"),r.addClass(c,f?"appear":"enter","base"),r.props.onEnter&&r.props.onEnter(l,s)},r.onEntering=function(l,s){var u=r.resolveArguments(l,s),c=u[0],f=u[1],p=f?"appear":"enter";r.addClass(c,p,"active"),r.props.onEntering&&r.props.onEntering(l,s)},r.onEntered=function(l,s){var u=r.resolveArguments(l,s),c=u[0],f=u[1],p=f?"appear":"enter";r.removeClasses(c,p),r.addClass(c,p,"done"),r.props.onEntered&&r.props.onEntered(l,s)},r.onExit=function(l){var s=r.resolveArguments(l),u=s[0];r.removeClasses(u,"appear"),r.removeClasses(u,"enter"),r.addClass(u,"exit","base"),r.props.onExit&&r.props.onExit(l)},r.onExiting=function(l){var s=r.resolveArguments(l),u=s[0];r.addClass(u,"exit","active"),r.props.onExiting&&r.props.onExiting(l)},r.onExited=function(l){var s=r.resolveArguments(l),u=s[0];r.removeClasses(u,"exit"),r.addClass(u,"exit","done"),r.props.onExited&&r.props.onExited(l)},r.resolveArguments=function(l,s){return r.props.nodeRef?[r.props.nodeRef.current,l]:[l,s]},r.getClassNames=function(l){var s=r.props.classNames,u=typeof s=="string",c=u&&s?s+"-":"",f=u?""+c+l:s[l],p=u?f+"-active":s[l+"Active"],g=u?f+"-done":s[l+"Done"];return{baseClassName:f,activeClassName:p,doneClassName:g}},r}var n=t.prototype;return n.addClass=function(i,a,o){var l=this.getClassNames(a)[o+"ClassName"],s=this.getClassNames("enter"),u=s.doneClassName;a==="appear"&&o==="done"&&u&&(l+=" "+u),o==="active"&&i&&xj(i),l&&(this.appliedClasses[a][o]=l,L_e(i,l))},n.removeClasses=function(i,a){var o=this.appliedClasses[a],l=o.base,s=o.active,u=o.done;this.appliedClasses[a]={},l&&kw(i,l),s&&kw(i,s),u&&kw(i,u)},n.render=function(){var i=this.props;i.classNames;var a=Xk(i,["classNames"]);return pe.createElement(Nl,gn({},a,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(pe.Component);EV.defaultProps={classNames:""};EV.propTypes={};function Kk(e,t){var n=function(a){return t&&R.isValidElement(a)?t(a):a},r=Object.create(null);return e&&R.Children.map(e,function(i){return i}).forEach(function(i){r[i.key]=n(i)}),r}function F_e(e,t){e=e||{},t=t||{};function n(c){return c in t?t[c]:e[c]}var r=Object.create(null),i=[];for(var a in e)a in t?i.length&&(r[a]=i,i=[]):i.push(a);var o,l={};for(var s in t){if(r[s])for(o=0;o<r[s].length;o++){var u=r[s][o];l[r[s][o]]=n(u)}l[s]=n(s)}for(o=0;o<i.length;o++)l[i[o]]=n(i[o]);return l}function Nu(e,t,n){return n[t]!=null?n[t]:e.props[t]}function N_e(e,t){return Kk(e.children,function(n){return R.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:Nu(n,"appear",e),enter:Nu(n,"enter",e),exit:Nu(n,"exit",e)})})}function z_e(e,t,n){var r=Kk(e.children),i=F_e(t,r);return Object.keys(i).forEach(function(a){var o=i[a];if(R.isValidElement(o)){var l=a in t,s=a in r,u=t[a],c=R.isValidElement(u)&&!u.props.in;s&&(!l||c)?i[a]=R.cloneElement(o,{onExited:n.bind(null,o),in:!0,exit:Nu(o,"exit",e),enter:Nu(o,"enter",e)}):!s&&l&&!c?i[a]=R.cloneElement(o,{in:!1}):s&&l&&R.isValidElement(u)&&(i[a]=R.cloneElement(o,{onExited:n.bind(null,o),in:u.props.in,exit:Nu(o,"exit",e),enter:Nu(o,"enter",e)}))}}),i}var U_e=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},q_e={component:"div",childFactory:function(t){return t}},RV=function(e){j1(t,e);function t(r,i){var a;a=e.call(this,r,i)||this;var o=a.handleExited.bind(Ej(a));return a.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},a}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(i,a){var o=a.children,l=a.handleExited,s=a.firstRender;return{children:s?N_e(i,l):z_e(i,o,l),firstRender:!1}},n.handleExited=function(i,a){var o=Kk(this.props.children);i.key in o||(i.props.onExited&&i.props.onExited(a),this.mounted&&this.setState(function(l){var s=gn({},l.children);return delete s[i.key],{children:s}}))},n.render=function(){var i=this.props,a=i.component,o=i.childFactory,l=Xk(i,["component","childFactory"]),s=this.state.contextValue,u=U_e(this.state.children).map(o);return delete l.appear,delete l.enter,delete l.exit,a===null?pe.createElement(Xy.Provider,{value:s},u):pe.createElement(Xy.Provider,{value:s},pe.createElement(a,l,u))},t}(pe.Component);RV.propTypes={};RV.defaultProps=q_e;function gXe(e,t){let{inputElementType:n="input",isDisabled:r=!1,isRequired:i=!1,isReadOnly:a=!1,type:o="text",validationBehavior:l="aria"}=e,[s,u]=Xs(e.value,e.defaultValue||"",e.onChange),{focusableProps:c}=Rc(e,t),f=Yk({...e,value:s}),{isInvalid:p,validationErrors:g,validationDetails:v}=f.displayValidation,{labelProps:m,fieldProps:_,descriptionProps:O,errorMessageProps:S}=Bk({...e,isInvalid:p,errorMessage:e.errorMessage||g}),b=Fr(e,{labelable:!0});const P={type:o,pattern:e.pattern};return Gg(t,s,u),Gk(e,f,t),R.useEffect(()=>{if(t.current instanceof Oa(t.current).HTMLTextAreaElement){let E=t.current;Object.defineProperty(E,"defaultValue",{get:()=>E.value,set:()=>{},configurable:!0})}},[t]),{labelProps:m,inputProps:mt(b,n==="input"&&P,{disabled:r,readOnly:a,required:i&&l==="native","aria-required":i&&l==="aria"||void 0,"aria-invalid":p||void 0,"aria-errormessage":e["aria-errormessage"],"aria-activedescendant":e["aria-activedescendant"],"aria-autocomplete":e["aria-autocomplete"],"aria-haspopup":e["aria-haspopup"],value:s,onChange:E=>u(E.target.value),autoComplete:e.autoComplete,autoCapitalize:e.autoCapitalize,maxLength:e.maxLength,minLength:e.minLength,name:e.name,placeholder:e.placeholder,inputMode:e.inputMode,onCopy:e.onCopy,onCut:e.onCut,onPaste:e.onPaste,onCompositionEnd:e.onCompositionEnd,onCompositionStart:e.onCompositionStart,onCompositionUpdate:e.onCompositionUpdate,onSelect:e.onSelect,onBeforeInput:e.onBeforeInput,onInput:e.onInput,...c,..._}),descriptionProps:O,errorMessageProps:S,isInvalid:p,validationErrors:g,validationDetails:v}}function vXe(e){let t=Wk(e),[n,r]=R.useState(null),[i,a]=R.useState([]),o=()=>{a([]),t.close()};return{focusStrategy:n,...t,open(u=null){r(u),t.open()},toggle(u=null){r(u),t.toggle()},close(){o()},expandedKeysStack:i,openSubmenu:(u,c)=>{a(f=>c>f.length?f:[...f.slice(0,c),u])},closeSubmenu:(u,c)=>{a(f=>f[c]===u?f.slice(0,c):f)}}}class j_e{*[Symbol.iterator](){yield*this.iterable}get size(){return this.keyMap.size}getKeys(){return this.keyMap.keys()}getKeyBefore(t){let n=this.keyMap.get(t);return n?n.prevKey:null}getKeyAfter(t){let n=this.keyMap.get(t);return n?n.nextKey:null}getFirstKey(){return this.firstKey}getLastKey(){return this.lastKey}getItem(t){return this.keyMap.get(t)}at(t){const n=[...this.getKeys()];return this.getItem(n[t])}constructor(t,{expandedKeys:n}={}){this.keyMap=new Map,this.iterable=t,n=n||new Set;let r=o=>{if(this.keyMap.set(o.key,o),o.childNodes&&(o.type==="section"||n.has(o.key)))for(let l of o.childNodes)r(l)};for(let o of t)r(o);let i,a=0;for(let[o,l]of this.keyMap)i?(i.nextKey=o,l.prevKey=i.key):(this.firstKey=o,l.prevKey=void 0),l.type==="item"&&(l.index=a++),i=l,i.nextKey=void 0;this.lastKey=i==null?void 0:i.key}}function mXe(e){let{onExpandedChange:t}=e,[n,r]=Xs(e.expandedKeys?new Set(e.expandedKeys):void 0,e.defaultExpandedKeys?new Set(e.defaultExpandedKeys):new Set,t),i=Ij(e),a=R.useMemo(()=>e.disabledKeys?new Set(e.disabledKeys):new Set,[e.disabledKeys]),o=Lj(e,R.useCallback(s=>new j_e(s,{expandedKeys:n}),[n]),null);return R.useEffect(()=>{i.focusedKey!=null&&!o.getItem(i.focusedKey)&&i.setFocusedKey(null)},[o,i.focusedKey]),{collection:o,expandedKeys:n,disabledKeys:a,toggleKey:s=>{r(V_e(n,s))},setExpandedKeys:r,selectionManager:new Nj(o,i)}}function V_e(e,t){let n=new Set(e);return n.has(t)?n.delete(t):n.add(t),n}function Z_e(e,t){let{elementType:n="a",onPress:r,onPressStart:i,onPressEnd:a,onClick:o,isDisabled:l,...s}=e,u={};n!=="a"&&(u={role:"link",tabIndex:l?void 0:0});let{focusableProps:c}=Rc(e,t),{pressProps:f,isPressed:p}=kl({onPress:r,onPressStart:i,onPressEnd:a,isDisabled:l,ref:t}),g=Fr(s,{labelable:!0}),v=mt(c,f),m=Xg(),_=Lk(e);return{isPressed:p,linkProps:mt(g,_,{...v,...u,"aria-disabled":l||void 0,"aria-current":e["aria-current"],onClick:O=>{var S;(S=f.onClick)===null||S===void 0||S.call(f,O),o&&(o(O),console.warn("onClick is deprecated, please use onPress")),!m.isNative&&O.currentTarget instanceof HTMLAnchorElement&&O.currentTarget.href&&!O.isDefaultPrevented()&&Sye(O.currentTarget,O)&&e.href&&(O.preventDefault(),m.open(O.currentTarget,O,e.href,e.routerOptions))}})}}function OXe(e,t){let{isCurrent:n,isDisabled:r,"aria-current":i,elementType:a="a",...o}=e,{linkProps:l}=Z_e({isDisabled:r||n,elementType:a,...o},t),s=/^h[1-6]$/.test(a),u={};return s||(u=l),n&&(u["aria-current"]=i||"page",u.tabIndex=e.autoFocus?-1:void 0),{itemProps:{"aria-disabled":r,...u}}}var kV={};kV={breadcrumbs:"عناصر الواجهة"};var TV={};TV={breadcrumbs:"Трохи хляб"};var CV={};CV={breadcrumbs:"Popis cesty"};var QV={};QV={breadcrumbs:"Brødkrummer"};var AV={};AV={breadcrumbs:"Breadcrumbs"};var IV={};IV={breadcrumbs:"Πλοηγήσεις breadcrumb"};var DV={};DV={breadcrumbs:"Breadcrumbs"};var MV={};MV={breadcrumbs:"Migas de pan"};var LV={};LV={breadcrumbs:"Lingiread"};var FV={};FV={breadcrumbs:"Navigointilinkit"};var NV={};NV={breadcrumbs:"Chemin de navigation"};var zV={};zV={breadcrumbs:"שבילי ניווט"};var UV={};UV={breadcrumbs:"Navigacijski putovi"};var qV={};qV={breadcrumbs:"Morzsamenü"};var jV={};jV={breadcrumbs:"Breadcrumb"};var VV={};VV={breadcrumbs:"パンくずリスト"};var ZV={};ZV={breadcrumbs:"탐색 표시"};var WV={};WV={breadcrumbs:"Naršymo kelias"};var XV={};XV={breadcrumbs:"Atpakaļceļi"};var YV={};YV={breadcrumbs:"Navigasjonsstier"};var GV={};GV={breadcrumbs:"Broodkruimels"};var BV={};BV={breadcrumbs:"Struktura nawigacyjna"};var HV={};HV={breadcrumbs:"Caminho detalhado"};var KV={};KV={breadcrumbs:"Categorias"};var JV={};JV={breadcrumbs:"Miez de pâine"};var e8={};e8={breadcrumbs:"Навигация"};var t8={};t8={breadcrumbs:"Navigačné prvky Breadcrumbs"};var n8={};n8={breadcrumbs:"Drobtine"};var r8={};r8={breadcrumbs:"Putanje navigacije"};var i8={};i8={breadcrumbs:"Sökvägar"};var a8={};a8={breadcrumbs:"İçerik haritaları"};var o8={};o8={breadcrumbs:"Навігаційна стежка"};var l8={};l8={breadcrumbs:"导航栏"};var s8={};s8={breadcrumbs:"導覽列"};var u8={};u8={"ar-AE":kV,"bg-BG":TV,"cs-CZ":CV,"da-DK":QV,"de-DE":AV,"el-GR":IV,"en-US":DV,"es-ES":MV,"et-EE":LV,"fi-FI":FV,"fr-FR":NV,"he-IL":zV,"hr-HR":UV,"hu-HU":qV,"it-IT":jV,"ja-JP":VV,"ko-KR":ZV,"lt-LT":WV,"lv-LV":XV,"nb-NO":YV,"nl-NL":GV,"pl-PL":BV,"pt-BR":HV,"pt-PT":KV,"ro-RO":JV,"ru-RU":e8,"sk-SK":t8,"sl-SI":n8,"sr-SP":r8,"sv-SE":i8,"tr-TR":a8,"uk-UA":o8,"zh-CN":l8,"zh-TW":s8};function W_e(e){return e&&e.__esModule?e.default:e}function yXe(e){let{"aria-label":t,...n}=e,r=Nk(W_e(u8),"@react-aria/breadcrumbs");return{navProps:{...Fr(n,{labelable:!0}),"aria-label":t||r.format("breadcrumbs")}}}const X_e=0,Y_e=100,G_e=1;function _Xe(e){const{isDisabled:t=!1,minValue:n=X_e,maxValue:r=Y_e,numberFormatter:i,step:a=G_e,orientation:o="horizontal"}=e;let l=R.useMemo(()=>{let X=(r-n)/10;return X=Lh(X,0,X+a,a),Math.max(X,a)},[a,r,n]),s=R.useCallback(X=>X==null?void 0:X.map((Z,F)=>{let ue=F===0?n:Z[F-1],ge=F===X.length-1?r:Z[F+1];return Lh(Z,ue,ge,a)}),[n,r,a]),u=R.useMemo(()=>s(l3(e.value)),[e.value]),c=R.useMemo(()=>{var X;return s((X=l3(e.defaultValue))!==null&&X!==void 0?X:[n])},[e.defaultValue,n]),f=s3(e.value,e.defaultValue,e.onChange),p=s3(e.value,e.defaultValue,e.onChangeEnd);const[g,v]=Xs(u,c,f),[m,_]=R.useState(new Array(g.length).fill(!1)),O=R.useRef(new Array(g.length).fill(!0)),[S,b]=R.useState(void 0),P=R.useRef(g),E=R.useRef(m);let $=X=>{P.current=X,v(X)},Q=X=>{E.current=X,_(X)};function k(X){return(X-n)/(r-n)}function D(X){return X===0?n:g[X-1]}function T(X){return X===g.length-1?r:g[X+1]}function A(X){return O.current[X]}function M(X,Z){O.current[X]=Z}function L(X,Z){if(t||!A(X))return;const F=D(X),ue=T(X);Z=Lh(Z,F,ue,a);let ge=o3(P.current,X,Z);$(ge)}function N(X,Z){if(t||!A(X))return;Z&&(P.current=g);const F=E.current[X];E.current=o3(E.current,X,Z),Q(E.current),p&&F&&!E.current.some(Boolean)&&p(P.current)}function j(X){return i.format(X)}function B(X,Z){L(X,U(Z))}function V(X){return Math.round((X-n)/a)*a+n}function U(X){const Z=X*(r-n)+n;return sc(V(Z),n,r)}function G(X,Z=1){let F=Math.max(Z,a);L(X,Lh(g[X]+F,n,r,a))}function I(X,Z=1){let F=Math.max(Z,a);L(X,Lh(g[X]-F,n,r,a))}return{values:g,getThumbValue:X=>g[X],setThumbValue:L,setThumbPercent:B,isThumbDragging:X=>m[X],setThumbDragging:N,focusedThumb:S,setFocusedThumb:b,getThumbPercent:X=>k(g[X]),getValuePercent:k,getThumbValueLabel:X=>j(g[X]),getFormattedValue:j,getThumbMinValue:D,getThumbMaxValue:T,getPercentValue:U,isThumbEditable:A,setThumbEditable:M,incrementThumb:G,decrementThumb:I,step:a,pageSize:l,orientation:o,isDisabled:t}}function o3(e,t,n){return e[t]===n?e:[...e.slice(0,t),n,...e.slice(t+1)]}function l3(e){if(e!=null)return Array.isArray(e)?e:[e]}function s3(e,t,n){return r=>{typeof e=="number"||typeof t=="number"?n==null||n(r[0]):n==null||n(r)}}const Jk=new WeakMap;function wP(e,t){let n=Jk.get(e);if(!n)throw new Error("Unknown slider state");return`${n.id}-${t}`}function SXe(e,t,n){let{labelProps:r,fieldProps:i}=Hg(e),a=e.orientation==="vertical";var o;Jk.set(t,{id:(o=r.id)!==null&&o!==void 0?o:i.id,"aria-describedby":e["aria-describedby"],"aria-details":e["aria-details"]});let{direction:l}=Vo(),{addGlobalListener:s,removeGlobalListener:u}=Yg();const c=R.useRef(null),f=l==="rtl",p=R.useRef(null),{moveProps:g}=Dq({onMoveStart(){p.current=null},onMove({deltaX:O,deltaY:S}){let{height:b,width:P}=n.current.getBoundingClientRect(),E=a?b:P;p.current==null&&(p.current=t.getThumbPercent(c.current)*E);let $=a?S:O;if((a||f)&&($=-$),p.current+=$,c.current!=null&&n.current){const Q=sc(p.current/E,0,1);t.setThumbPercent(c.current,Q)}},onMoveEnd(){c.current!=null&&(t.setThumbDragging(c.current,!1),c.current=null)}});let v=R.useRef(void 0),m=(O,S,b,P)=>{if(n.current&&!e.isDisabled&&t.values.every((E,$)=>!t.isThumbDragging($))){let{height:E,width:$,top:Q,left:k}=n.current.getBoundingClientRect(),D=a?E:$,L=((a?P:b)-(a?Q:k))/D;(l==="rtl"||a)&&(L=1-L);let N=t.getPercentValue(L),j,B=t.values.findIndex(V=>N-V<0);if(B===0)j=B;else if(B===-1)j=t.values.length-1;else{let V=t.values[B-1],U=t.values[B];Math.abs(V-N)<Math.abs(U-N)?j=B-1:j=B}j>=0&&t.isThumbEditable(j)?(O.preventDefault(),c.current=j,t.setFocusedThumb(j),v.current=S,t.setThumbDragging(c.current,!0),t.setThumbValue(j,N),s(window,"mouseup",_,!1),s(window,"touchend",_,!1),s(window,"pointerup",_,!1)):c.current=null}},_=O=>{var S,b;((b=O.pointerId)!==null&&b!==void 0?b:(S=O.changedTouches)===null||S===void 0?void 0:S[0].identifier)===v.current&&(c.current!=null&&(t.setThumbDragging(c.current,!1),c.current=null),u(window,"mouseup",_,!1),u(window,"touchend",_,!1),u(window,"pointerup",_,!1))};return"htmlFor"in r&&r.htmlFor&&(delete r.htmlFor,r.onClick=()=>{var O;(O=document.getElementById(wP(t,0)))===null||O===void 0||O.focus(),qk("keyboard")}),{labelProps:r,groupProps:{role:"group",...i},trackProps:mt({onMouseDown(O){O.button!==0||O.altKey||O.ctrlKey||O.metaKey||m(O,void 0,O.clientX,O.clientY)},onPointerDown(O){O.pointerType==="mouse"&&(O.button!==0||O.altKey||O.ctrlKey||O.metaKey)||m(O,O.pointerId,O.clientX,O.clientY)},onTouchStart(O){m(O,O.changedTouches[0].identifier,O.changedTouches[0].clientX,O.changedTouches[0].clientY)},style:{position:"relative",touchAction:"none"}},g),outputProps:{htmlFor:t.values.map((O,S)=>wP(t,S)).join(" "),"aria-live":"off"}}}function bXe(e,t){let{index:n=0,isRequired:r,validationState:i,isInvalid:a,trackRef:o,inputRef:l,orientation:s=t.orientation,name:u}=e,c=e.isDisabled||t.isDisabled,f=s==="vertical",{direction:p}=Vo(),{addGlobalListener:g,removeGlobalListener:v}=Yg(),m=Jk.get(t);var _;const{labelProps:O,fieldProps:S}=Hg({...e,id:wP(t,n),"aria-labelledby":`${m.id} ${(_=e["aria-labelledby"])!==null&&_!==void 0?_:""}`.trim()}),b=t.values[n],P=R.useCallback(()=>{l.current&&Ro(l.current)},[l]),E=t.focusedThumb===n;R.useEffect(()=>{E&&P()},[E,P]);let $=p==="rtl",Q=R.useRef(null),{keyboardProps:k}=jk({onKeyDown(B){let{getThumbMaxValue:V,getThumbMinValue:U,decrementThumb:G,incrementThumb:I,setThumbValue:X,setThumbDragging:Z,pageSize:F}=t;if(!/^(PageUp|PageDown|Home|End)$/.test(B.key)){B.continuePropagation();return}switch(B.preventDefault(),Z(n,!0),B.key){case"PageUp":I(n,F);break;case"PageDown":G(n,F);break;case"Home":X(n,U(n));break;case"End":X(n,V(n));break}Z(n,!1)}}),{moveProps:D}=Dq({onMoveStart(){Q.current=null,t.setThumbDragging(n,!0)},onMove({deltaX:B,deltaY:V,pointerType:U,shiftKey:G}){const{getThumbPercent:I,setThumbPercent:X,decrementThumb:Z,incrementThumb:F,step:ue,pageSize:ge}=t;let{width:de,height:Qe}=o.current.getBoundingClientRect(),Ae=f?Qe:de;if(Q.current==null&&(Q.current=I(n)*Ae),U==="keyboard")B>0&&$||B<0&&!$||V>0?Z(n,G?ge:ue):F(n,G?ge:ue);else{let ce=f?V:B;(f||$)&&(ce=-ce),Q.current+=ce,X(n,sc(Q.current/Ae,0,1))}},onMoveEnd(){t.setThumbDragging(n,!1)}});t.setThumbEditable(n,!c);const{focusableProps:T}=Rc(mt(e,{onFocus:()=>t.setFocusedThumb(n),onBlur:()=>t.setFocusedThumb(void 0)}),l);let A=R.useRef(void 0),M=B=>{P(),A.current=B,t.setThumbDragging(n,!0),g(window,"mouseup",L,!1),g(window,"touchend",L,!1),g(window,"pointerup",L,!1)},L=B=>{var V,U;((U=B.pointerId)!==null&&U!==void 0?U:(V=B.changedTouches)===null||V===void 0?void 0:V[0].identifier)===A.current&&(P(),t.setThumbDragging(n,!1),v(window,"mouseup",L,!1),v(window,"touchend",L,!1),v(window,"pointerup",L,!1))},N=t.getThumbPercent(n);(f||p==="rtl")&&(N=1-N);let j=c?{}:mt(k,D,{onMouseDown:B=>{B.button!==0||B.altKey||B.ctrlKey||B.metaKey||M()},onPointerDown:B=>{B.button!==0||B.altKey||B.ctrlKey||B.metaKey||M(B.pointerId)},onTouchStart:B=>{M(B.changedTouches[0].identifier)}});return Gg(l,b,B=>{t.setThumbValue(n,B)}),{inputProps:mt(T,S,{type:"range",tabIndex:c?void 0:0,min:t.getThumbMinValue(n),max:t.getThumbMaxValue(n),step:t.step,value:b,name:u,disabled:c,"aria-orientation":s,"aria-valuetext":t.getThumbValueLabel(n),"aria-required":r||void 0,"aria-invalid":a||i==="invalid"||void 0,"aria-errormessage":e["aria-errormessage"],"aria-describedby":[m["aria-describedby"],e["aria-describedby"]].filter(Boolean).join(" "),"aria-details":[m["aria-details"],e["aria-details"]].filter(Boolean).join(" "),onChange:B=>{t.setThumbValue(n,parseFloat(B.target.value))}}),thumbProps:{...j,style:{position:"absolute",[f?"top":"left"]:`${N*100}%`,transform:"translate(-50%, -50%)",touchAction:"none"}},labelProps:O,isDragging:t.isThumbDragging(n),isDisabled:c,isFocused:E}}function wXe(e){let{value:t=0,minValue:n=0,maxValue:r=100,valueLabel:i,isIndeterminate:a,formatOptions:o={style:"percent"}}=e,l=Fr(e,{labelable:!0}),{labelProps:s,fieldProps:u}=Hg({...e,labelElementType:"span"});t=sc(t,n,r);let c=(t-n)/(r-n),f=n0e(o);if(!a&&!i){let p=o.style==="percent"?c:t;i=f.format(p)}return{progressBarProps:mt(l,{...u,"aria-valuenow":a?void 0:t,"aria-valuemin":n,"aria-valuemax":r,"aria-valuetext":a?void 0:i,role:"progressbar"}),labelProps:s}}function B_e(e,t,n){let{isDisabled:r=!1,isReadOnly:i=!1,value:a,name:o,children:l,"aria-label":s,"aria-labelledby":u,validationState:c="valid",isInvalid:f}=e,p=$=>{$.stopPropagation(),t.setSelected($.target.checked)},g=l!=null,v=s!=null||u!=null;!g&&!v&&console.warn("If you do not provide children, you must specify an aria-label for accessibility");let{pressProps:m,isPressed:_}=kl({isDisabled:r}),{pressProps:O,isPressed:S}=kl({isDisabled:r||i,onPress(){t.toggle()}}),{focusableProps:b}=Rc(e,n),P=mt(m,b),E=Fr(e,{labelable:!0});return Gg(n,t.isSelected,t.setSelected),{labelProps:mt(O,{onClick:$=>$.preventDefault()}),inputProps:mt(E,{"aria-invalid":f||c==="invalid"||void 0,"aria-errormessage":e["aria-errormessage"],"aria-controls":e["aria-controls"],"aria-readonly":i||void 0,onChange:p,disabled:r,...a==null?{}:{value:a},name:o,type:"checkbox",...P}),isSelected:t.isSelected,isPressed:_||S,isDisabled:r,isReadOnly:i,isInvalid:f||c==="invalid"}}function $Xe(e,t,n){let{labelProps:r,inputProps:i,isSelected:a,isPressed:o,isDisabled:l,isReadOnly:s}=B_e(e,t,n);return{labelProps:r,inputProps:{...i,role:"switch",checked:a},isSelected:a,isPressed:o,isDisabled:l,isReadOnly:s}}function xXe(e={}){let{isReadOnly:t}=e,[n,r]=Xs(e.isSelected,e.defaultSelected||!1,e.onChange);function i(o){t||r(o)}function a(){t||r(!n)}return{isSelected:n,setSelected:i,toggle:a}}function $P(){return $P=Object.assign?Object.assign.bind():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},$P.apply(this,arguments)}var c8=["shift","alt","meta","mod","ctrl"],H_e={esc:"escape",return:"enter",".":"period",",":"comma","-":"slash"," ":"space","`":"backquote","#":"backslash","+":"bracketright",ShiftLeft:"shift",ShiftRight:"shift",AltLeft:"alt",AltRight:"alt",MetaLeft:"meta",MetaRight:"meta",OSLeft:"meta",OSRight:"meta",ControlLeft:"ctrl",ControlRight:"ctrl"};function ps(e){return(H_e[e]||e).trim().toLowerCase().replace(/key|digit|numpad|arrow/,"")}function K_e(e){return c8.includes(e)}function Tw(e,t){return t===void 0&&(t=","),e.split(t)}function Cw(e,t,n){t===void 0&&(t="+");var r=e.toLocaleLowerCase().split(t).map(function(o){return ps(o)}),i={alt:r.includes("alt"),ctrl:r.includes("ctrl")||r.includes("control"),shift:r.includes("shift"),meta:r.includes("meta"),mod:r.includes("mod")},a=r.filter(function(o){return!c8.includes(o)});return $P({},i,{keys:a,description:n})}(function(){typeof document<"u"&&(document.addEventListener("keydown",function(e){e.key!==void 0&&f8([ps(e.key),ps(e.code)])}),document.addEventListener("keyup",function(e){e.key!==void 0&&d8([ps(e.key),ps(e.code)])})),typeof window<"u"&&window.addEventListener("blur",function(){gs.clear()})})();var gs=new Set;function eT(e){return Array.isArray(e)}function J_e(e,t){t===void 0&&(t=",");var n=eT(e)?e:e.split(t);return n.every(function(r){return gs.has(r.trim().toLowerCase())})}function f8(e){var t=Array.isArray(e)?e:[e];gs.has("meta")&&gs.forEach(function(n){return!K_e(n)&&gs.delete(n.toLowerCase())}),t.forEach(function(n){return gs.add(n.toLowerCase())})}function d8(e){var t=Array.isArray(e)?e:[e];e==="meta"?gs.clear():t.forEach(function(n){return gs.delete(n.toLowerCase())})}function eSe(e,t,n){(typeof n=="function"&&n(e,t)||n===!0)&&e.preventDefault()}function tSe(e,t,n){return typeof n=="function"?n(e,t):n===!0||n===void 0}function nSe(e){return h8(e,["input","textarea","select"])}function h8(e,t){var n=e.target;t===void 0&&(t=!1);var r=n&&n.tagName;return eT(t)?!!(r&&t&&t.some(function(i){return i.toLowerCase()===r.toLowerCase()})):!!(r&&t&&t===!0)}function rSe(e,t){return e.length===0&&t?(console.warn('A hotkey has the "scopes" option set, however no active scopes were found. If you want to use the global scopes feature, you need to wrap your app in a <HotkeysProvider>'),!0):t?e.some(function(n){return t.includes(n)})||e.includes("*"):!0}var iSe=function(t,n,r){r===void 0&&(r=!1);var i=n.alt,a=n.meta,o=n.mod,l=n.shift,s=n.ctrl,u=n.keys,c=t.key,f=t.code,p=t.ctrlKey,g=t.metaKey,v=t.shiftKey,m=t.altKey,_=ps(f),O=c.toLowerCase();if(!(u!=null&&u.includes(_))&&!(u!=null&&u.includes(O))&&!["ctrl","control","unknown","meta","alt","shift","os"].includes(_))return!1;if(!r){if(i===!m&&O!=="alt"||l===!v&&O!=="shift")return!1;if(o){if(!g&&!p)return!1}else if(a===!g&&O!=="meta"&&O!=="os"||s===!p&&O!=="ctrl"&&O!=="control")return!1}return u&&u.length===1&&(u.includes(O)||u.includes(_))?!0:u?J_e(u):!u},aSe=R.createContext(void 0),oSe=function(){return R.useContext(aSe)};function p8(e,t){return e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(e).length===Object.keys(t).length&&Object.keys(e).reduce(function(n,r){return n&&p8(e[r],t[r])},!0):e===t}var lSe=R.createContext({hotkeys:[],enabledScopes:[],toggleScope:function(){},enableScope:function(){},disableScope:function(){}}),sSe=function(){return R.useContext(lSe)};function uSe(e){var t=R.useRef(void 0);return p8(t.current,e)||(t.current=e),t.current}var u3=function(t){t.stopPropagation(),t.preventDefault(),t.stopImmediatePropagation()},cSe=typeof window<"u"?R.useLayoutEffect:R.useEffect;function PXe(e,t,n,r){var i=R.useRef(null),a=R.useRef(!1),o=n instanceof Array?r instanceof Array?void 0:r:n,l=eT(e)?e.join(o==null?void 0:o.splitKey):e,s=n instanceof Array?n:r instanceof Array?r:void 0,u=R.useCallback(t,s??[]),c=R.useRef(u);s?c.current=u:c.current=t;var f=uSe(o),p=sSe(),g=p.enabledScopes,v=oSe();return cSe(function(){if(!((f==null?void 0:f.enabled)===!1||!rSe(g,f==null?void 0:f.scopes))){var m=function(P,E){var $;if(E===void 0&&(E=!1),!(nSe(P)&&!h8(P,f==null?void 0:f.enableOnFormTags))){if(i.current!==null){var Q=i.current.getRootNode();if((Q instanceof Document||Q instanceof ShadowRoot)&&Q.activeElement!==i.current&&!i.current.contains(Q.activeElement)){u3(P);return}}($=P.target)!=null&&$.isContentEditable&&!(f!=null&&f.enableOnContentEditable)||Tw(l,f==null?void 0:f.splitKey).forEach(function(k){var D,T=Cw(k,f==null?void 0:f.combinationKey);if(iSe(P,T,f==null?void 0:f.ignoreModifiers)||(D=T.keys)!=null&&D.includes("*")){if(f!=null&&f.ignoreEventWhen!=null&&f.ignoreEventWhen(P)||E&&a.current)return;if(eSe(P,T,f==null?void 0:f.preventDefault),!tSe(P,T,f==null?void 0:f.enabled)){u3(P);return}c.current(P,T),E||(a.current=!0)}})}},_=function(P){P.key!==void 0&&(f8(ps(P.code)),((f==null?void 0:f.keydown)===void 0&&(f==null?void 0:f.keyup)!==!0||f!=null&&f.keydown)&&m(P))},O=function(P){P.key!==void 0&&(d8(ps(P.code)),a.current=!1,f!=null&&f.keyup&&m(P,!0))},S=i.current||(o==null?void 0:o.document)||document;return S.addEventListener("keyup",O),S.addEventListener("keydown",_),v&&Tw(l,f==null?void 0:f.splitKey).forEach(function(b){return v.addHotkey(Cw(b,f==null?void 0:f.combinationKey,f==null?void 0:f.description))}),function(){S.removeEventListener("keyup",O),S.removeEventListener("keydown",_),v&&Tw(l,f==null?void 0:f.splitKey).forEach(function(b){return v.removeHotkey(Cw(b,f==null?void 0:f.combinationKey,f==null?void 0:f.description))})}}},[l,f,g]),i}function EXe(e,t,n=Object.is){const r=e.getState(),i=R.useMemo(()=>t(r),[r,t]),[[a,o],l]=R.useReducer((s,u)=>{if(u)return[i,e];const c=e.getState();if(Object.is(r,c)&&s[1]===e)return s;const f=t(c);return n(s[0],f)&&s[1]===e?s:[f,e]},void 0,()=>[i,e]);return R.useEffect(()=>{const s=e.subscribe(l);return l(),s},[e]),o!==e?(l(!0),i):(n(a,i)||l(!0),a)}var fSe={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1};const c3=e=>{let t;const n=new Set,r=(c,f)=>{const p=typeof c=="function"?c(t):c;if(!Object.is(p,t)){const g=t;t=f??(typeof p!="object"||p===null)?p:Object.assign({},t,p),n.forEach(v=>v(t,g))}},i=()=>t,s={setState:r,getState:i,getInitialState:()=>u,subscribe:c=>(n.add(c),()=>n.delete(c)),destroy:()=>{(fSe?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}},u=t=e(r,i,s);return s},dSe=e=>e?c3(e):c3;var g8={exports:{}},v8={},m8={exports:{}},O8={};/**
58
58
  * @license React
59
59
  * use-sync-external-store-shim.production.min.js
60
60
  *
@@ -70,7 +70,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
70
70
  *
71
71
  * This source code is licensed under the MIT license found in the
72
72
  * LICENSE file in the root directory of this source tree.
73
- */var Z1=R,wSe=bSe;function $Se(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var xSe=typeof Object.is=="function"?Object.is:$Se,PSe=wSe.useSyncExternalStore,ESe=Z1.useRef,RSe=Z1.useEffect,kSe=Z1.useMemo,TSe=Z1.useDebugValue;v8.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var a=ESe(null);if(a.current===null){var o={hasValue:!1,value:null};a.current=o}else o=a.current;a=kSe(function(){function s(g){if(!u){if(u=!0,c=g,g=r(g),i!==void 0&&o.hasValue){var v=o.value;if(i(v,g))return f=v}return f=g}if(v=f,xSe(c,g))return v;var m=r(g);return i!==void 0&&i(v,m)?v:(c=g,f=m)}var u=!1,c,f,p=n===void 0?null:n;return[function(){return s(t())},p===null?void 0:function(){return s(p())}]},[t,n,r,i]);var l=PSe(e,a[0],a[1]);return RSe(function(){o.hasValue=!0,o.value=l},[l]),TSe(l),l};g8.exports=v8;var CSe=g8.exports;const QSe=St(CSe);var y8={BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const{useDebugValue:ASe}=pe,{useSyncExternalStoreWithSelector:ISe}=QSe;let f3=!1;const DSe=e=>e;function MSe(e,t=DSe,n){(y8?"production":void 0)!=="production"&&n&&!f3&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),f3=!0);const r=ISe(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return ASe(r),r}const d3=e=>{(y8?"production":void 0)!=="production"&&typeof e!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const t=typeof e=="function"?dSe(e):e,n=(r,i)=>MSe(t,r,i);return Object.assign(n,t),n},RXe=e=>e?d3(e):d3;var WO={BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const xP=new Map,Jm=e=>{const t=xP.get(e);return t?Object.fromEntries(Object.entries(t.stores).map(([n,r])=>[n,r.getState()])):{}},LSe=(e,t,n)=>{if(e===void 0)return{type:"untracked",connection:t.connect(n)};const r=xP.get(n.name);if(r)return{type:"tracked",store:e,...r};const i={connection:t.connect(n),stores:{}};return xP.set(n.name,i),{type:"tracked",store:e,...i}},FSe=(e,t={})=>(n,r,i)=>{const{enabled:a,anonymousActionType:o,store:l,...s}=t;let u;try{u=(a??(WO?"production":void 0)!=="production")&&window.__REDUX_DEVTOOLS_EXTENSION__}catch{}if(!u)return(WO?"production":void 0)!=="production"&&a&&console.warn("[zustand devtools middleware] Please install/enable Redux devtools extension"),e(n,r,i);const{connection:c,...f}=LSe(l,u,s);let p=!0;i.setState=(m,_,O)=>{const S=n(m,_);if(!p)return S;const b=O===void 0?{type:o||"anonymous"}:typeof O=="string"?{type:O}:O;return l===void 0?(c==null||c.send(b,r()),S):(c==null||c.send({...b,type:`${l}/${b.type}`},{...Jm(s.name),[l]:i.getState()}),S)};const g=(...m)=>{const _=p;p=!1,n(...m),p=_},v=e(i.setState,r,i);if(f.type==="untracked"?c==null||c.init(v):(f.stores[f.store]=i,c==null||c.init(Object.fromEntries(Object.entries(f.stores).map(([m,_])=>[m,m===f.store?v:_.getState()])))),i.dispatchFromDevtools&&typeof i.dispatch=="function"){let m=!1;const _=i.dispatch;i.dispatch=(...O)=>{(WO?"production":void 0)!=="production"&&O[0].type==="__setState"&&!m&&(console.warn('[zustand devtools middleware] "__setState" action type is reserved to set state from the devtools. Avoid using it.'),m=!0),_(...O)}}return c.subscribe(m=>{var _;switch(m.type){case"ACTION":if(typeof m.payload!="string"){console.error("[zustand devtools middleware] Unsupported action format");return}return Aw(m.payload,O=>{if(O.type==="__setState"){if(l===void 0){g(O.state);return}Object.keys(O.state).length!==1&&console.error(`
73
+ */var Z1=R,wSe=bSe;function $Se(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var xSe=typeof Object.is=="function"?Object.is:$Se,PSe=wSe.useSyncExternalStore,ESe=Z1.useRef,RSe=Z1.useEffect,kSe=Z1.useMemo,TSe=Z1.useDebugValue;v8.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var a=ESe(null);if(a.current===null){var o={hasValue:!1,value:null};a.current=o}else o=a.current;a=kSe(function(){function s(g){if(!u){if(u=!0,c=g,g=r(g),i!==void 0&&o.hasValue){var v=o.value;if(i(v,g))return f=v}return f=g}if(v=f,xSe(c,g))return v;var m=r(g);return i!==void 0&&i(v,m)?v:(c=g,f=m)}var u=!1,c,f,p=n===void 0?null:n;return[function(){return s(t())},p===null?void 0:function(){return s(p())}]},[t,n,r,i]);var l=PSe(e,a[0],a[1]);return RSe(function(){o.hasValue=!0,o.value=l},[l]),TSe(l),l};g8.exports=v8;var CSe=g8.exports;const QSe=St(CSe);var y8={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1};const{useDebugValue:ASe}=pe,{useSyncExternalStoreWithSelector:ISe}=QSe;let f3=!1;const DSe=e=>e;function MSe(e,t=DSe,n){(y8?"production":void 0)!=="production"&&n&&!f3&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),f3=!0);const r=ISe(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return ASe(r),r}const d3=e=>{(y8?"production":void 0)!=="production"&&typeof e!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const t=typeof e=="function"?dSe(e):e,n=(r,i)=>MSe(t,r,i);return Object.assign(n,t),n},RXe=e=>e?d3(e):d3;var WO={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1};const xP=new Map,Jm=e=>{const t=xP.get(e);return t?Object.fromEntries(Object.entries(t.stores).map(([n,r])=>[n,r.getState()])):{}},LSe=(e,t,n)=>{if(e===void 0)return{type:"untracked",connection:t.connect(n)};const r=xP.get(n.name);if(r)return{type:"tracked",store:e,...r};const i={connection:t.connect(n),stores:{}};return xP.set(n.name,i),{type:"tracked",store:e,...i}},FSe=(e,t={})=>(n,r,i)=>{const{enabled:a,anonymousActionType:o,store:l,...s}=t;let u;try{u=(a??(WO?"production":void 0)!=="production")&&window.__REDUX_DEVTOOLS_EXTENSION__}catch{}if(!u)return(WO?"production":void 0)!=="production"&&a&&console.warn("[zustand devtools middleware] Please install/enable Redux devtools extension"),e(n,r,i);const{connection:c,...f}=LSe(l,u,s);let p=!0;i.setState=(m,_,O)=>{const S=n(m,_);if(!p)return S;const b=O===void 0?{type:o||"anonymous"}:typeof O=="string"?{type:O}:O;return l===void 0?(c==null||c.send(b,r()),S):(c==null||c.send({...b,type:`${l}/${b.type}`},{...Jm(s.name),[l]:i.getState()}),S)};const g=(...m)=>{const _=p;p=!1,n(...m),p=_},v=e(i.setState,r,i);if(f.type==="untracked"?c==null||c.init(v):(f.stores[f.store]=i,c==null||c.init(Object.fromEntries(Object.entries(f.stores).map(([m,_])=>[m,m===f.store?v:_.getState()])))),i.dispatchFromDevtools&&typeof i.dispatch=="function"){let m=!1;const _=i.dispatch;i.dispatch=(...O)=>{(WO?"production":void 0)!=="production"&&O[0].type==="__setState"&&!m&&(console.warn('[zustand devtools middleware] "__setState" action type is reserved to set state from the devtools. Avoid using it.'),m=!0),_(...O)}}return c.subscribe(m=>{var _;switch(m.type){case"ACTION":if(typeof m.payload!="string"){console.error("[zustand devtools middleware] Unsupported action format");return}return Aw(m.payload,O=>{if(O.type==="__setState"){if(l===void 0){g(O.state);return}Object.keys(O.state).length!==1&&console.error(`
74
74
  [zustand devtools middleware] Unsupported __setState action format.
75
75
  When using 'store' option in devtools(), the 'state' should have only one key, which is a value of 'store' that was passed in devtools(),
76
76
  and value of this only key should be a state object. Example: { "type": "__setState", "state": { "abc123Store": { "foo": "bar" } } }